@dcl/blog-site 0.3.1-24103023146.commit-2dbaf97 → 0.3.1-24473826569.commit-b003ca7

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.
Files changed (175) hide show
  1. package/assets/{QueryClientProvider-CaylTeJU.js → QueryClientProvider-COL_hK7X.js} +1 -1
  2. package/assets/SignInRedirect-BXiSxuzq.js +11 -0
  3. package/assets/{X-Duht4Iz6.js → X-le_324bT.js} +2 -2
  4. package/assets/{__federation_expose_App-MABV9ejQ.js → __federation_expose_App-BIkHFfNV.js} +1 -1
  5. package/assets/{__federation_fn_import-BOkD8n2P.js → __federation_fn_import-BVq5pY2g.js} +1 -1
  6. package/assets/__federation_shared_@dcl/hooks-BTGaRvFd.js +535 -0
  7. package/assets/__federation_shared_@dcl/schemas-DMXTEmDf.js +1 -0
  8. package/assets/__federation_shared_@emotion/react-ClQAzdUp.js +1 -0
  9. package/assets/__federation_shared_@emotion/{styled-CDI3vXYZ.js → styled-DqVyGVak.js} +1 -1
  10. package/assets/__federation_shared_decentraland-ui2-D-eg6Y-Z.js +358 -0
  11. package/assets/{__federation_shared_react-redux-Cz6uJTZg.js → __federation_shared_react-redux-DBpsOkjJ.js} +1 -1
  12. package/assets/{__federation_shared_react-router-dom-CC-GCyPC.js → __federation_shared_react-router-dom-DHUeCUPc.js} +1 -1
  13. package/assets/{__federation_shared_viem-N4jx8tpP.js → __federation_shared_viem-Dko2-sEK.js} +1 -1
  14. package/assets/{__federation_shared_wagmi-T79wv6wS.js → __federation_shared_wagmi-Cn5GVo3x.js} +1 -1
  15. package/assets/{add-2qvA7EiO.js → add-D1dmSQkT.js} +1 -1
  16. package/assets/{all-wallets-lXjoBtOu.js → all-wallets-D7ZW8z0W.js} +1 -1
  17. package/assets/{app-store-DYHc9uss.js → app-store-DXUKFVFe.js} +1 -1
  18. package/assets/{apple-trBstREI.js → apple-DIq1NPD9.js} +1 -1
  19. package/assets/{arrow-bottom-BWqJWXR-.js → arrow-bottom-460TXeJf.js} +1 -1
  20. package/assets/{arrow-bottom-circle-YjuLILdA.js → arrow-bottom-circle-CC70fB8z.js} +1 -1
  21. package/assets/{arrow-left-DhtuQend.js → arrow-left-BQ0dsbdA.js} +1 -1
  22. package/assets/{arrow-right-BvYZ2BiR.js → arrow-right-8nY7uwA-.js} +1 -1
  23. package/assets/{arrow-top-D28-F_Hg.js → arrow-top-B9sp1rrY.js} +1 -1
  24. package/assets/{auto-track-D9PR_g0H.js → auto-track-DkUeIWzK.js} +1 -1
  25. package/assets/{bank-DdnPzesM.js → bank-DIeswBBe.js} +1 -1
  26. package/assets/{basic-DmnKpYra.js → basic-O_880rjt.js} +1 -1
  27. package/assets/{biconomy-BuodyWlH.js → biconomy-B6KCdEMG.js} +1 -1
  28. package/assets/{browser-WTqp-RH-.js → browser-BLf4KEyW.js} +1 -1
  29. package/assets/{card-CUcjOncu.js → card-D8EE5Jj-.js} +1 -1
  30. package/assets/{ccip-BBJ3I8Xu.js → ccip-DK12c0R1.js} +1 -1
  31. package/assets/{checkmark-B0wthWje.js → checkmark-6GXbMfu0.js} +1 -1
  32. package/assets/{checkmark-bold-D3rJPOXJ.js → checkmark-bold-aY4y8YkK.js} +1 -1
  33. package/assets/{chevron-bottom-BdzTSFY2.js → chevron-bottom-CU2atHia.js} +1 -1
  34. package/assets/{chevron-left-C8bbhNcl.js → chevron-left-CMYKgteJ.js} +1 -1
  35. package/assets/{chevron-right-CCJu7F9K.js → chevron-right-DSqlSbLF.js} +1 -1
  36. package/assets/{chevron-top-CbTESKuW.js → chevron-top--LC04sW-.js} +1 -1
  37. package/assets/{chrome-store-DxK9ysyk.js → chrome-store-okUhgEDz.js} +1 -1
  38. package/assets/{clock-B1B6mod1.js → clock-DFiN_R95.js} +1 -1
  39. package/assets/{close-CA_w2TX7.js → close-I8fax_o0.js} +1 -1
  40. package/assets/{coinPlaceholder-DDHUZdwM.js → coinPlaceholder-CkjlkAlk.js} +1 -1
  41. package/assets/{compass-Dwx8PkuI.js → compass-Cmm-IgwK.js} +1 -1
  42. package/assets/{controller-1R1nrCkG.js → controller-C9vLFhgG.js} +2 -2
  43. package/assets/{copy-R0gnZxuz.js → copy-CJx_8wmR.js} +1 -1
  44. package/assets/{core-9XBuvaBL.js → core-BGnzhLwd.js} +3 -3
  45. package/assets/{createBundlerClient-LPapq7hJ.js → createBundlerClient-CLw70W8T.js} +1 -1
  46. package/assets/{createClient-BLcyKw9o.js → createClient-BxosFBTN.js} +1 -1
  47. package/assets/{cursor-buHR4MvG.js → cursor-BLRNlN9P.js} +1 -1
  48. package/assets/{cursor-transparent-BlSFN96v.js → cursor-transparent-sQ7KRm1T.js} +1 -1
  49. package/assets/{decimals-Bnh8vaOd.js → decimals-DSN2ezaI.js} +1 -1
  50. package/assets/{decimals-DKeocaSS.js → decimals-ZXRJ3NZH.js} +1 -1
  51. package/assets/{desktop-iLJ0yrPC.js → desktop-Cq9Q4PJu.js} +1 -1
  52. package/assets/{detectExtension-gGfjMoDV.js → detectExtension-DtOEyzLR.js} +1 -1
  53. package/assets/{disconnect-DmWVYzi9.js → disconnect-Q4CIgYaj.js} +1 -1
  54. package/assets/{discord-CdcA1Vi7.js → discord-BFkGngrw.js} +1 -1
  55. package/assets/{emotion-react.browser.esm-F9fz9FEy.js → emotion-react.browser.esm-CuRmxzDI.js} +1 -1
  56. package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-Sg-5vT-t.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-5PAiZm_X.js} +1 -1
  57. package/assets/{encode-CKwvXR_N.js → encode-Bw3iNfCX.js} +2 -2
  58. package/assets/{engine-DlI24UVK.js → engine-C9bXNE6k.js} +1 -1
  59. package/assets/{estimate-gas-BG6-Kqmv.js → estimate-gas-DKfjMwgj.js} +3 -3
  60. package/assets/{estimate-l1-fee-BgFRrIc9.js → estimate-l1-fee-C8GOcft6.js} +1 -1
  61. package/assets/{eth_getStorageAt-D61Vetgg.js → eth_getStorageAt-DLP3MFZC.js} +1 -1
  62. package/assets/{etherscan-GfR_ppjR.js → etherscan-WGcUpO-N.js} +1 -1
  63. package/assets/{exclamation-triangle-8iGJjWy8.js → exclamation-triangle-B7j3vyUf.js} +1 -1
  64. package/assets/{extension-D6ggRkmW.js → extension-KO7c6KpI.js} +1 -1
  65. package/assets/{external-link-DEfu-xG1.js → external-link-CY9fq540.js} +1 -1
  66. package/assets/{extractIPFS-BmrxUMAw.js → extractIPFS-CaNrw1G3.js} +1 -1
  67. package/assets/{facebook-CKEn1wyA.js → facebook-C4AmE2nx.js} +1 -1
  68. package/assets/{farcaster-BjW81SyT.js → farcaster-CQwGqHN5.js} +1 -1
  69. package/assets/{fee-data-B6rXatSB.js → fee-data-hqf9C_Iq.js} +1 -1
  70. package/assets/{fetchTokenMetadata-C3xqQZKk.js → fetchTokenMetadata-D6bwUi9C.js} +2 -2
  71. package/assets/{filters-DXEYimKv.js → filters-DQUZT2YK.js} +1 -1
  72. package/assets/{get-ecosystem-wallet-info-DTdvgTlD.js → get-ecosystem-wallet-info-CKFiqkc5.js} +1 -1
  73. package/assets/{getBalance-BhvXyjxq.js → getBalance-DvZhqMEV.js} +1 -1
  74. package/assets/{getInstalledModules-Diize_Jb.js → getInstalledModules-CP7yfLcd.js} +1 -1
  75. package/assets/{getNFT-DrIJlzTC.js → getNFT-DidYjmem.js} +2 -2
  76. package/assets/{getNFT-CT5tK0Ef.js → getNFT-DvCB6ap4.js} +1 -1
  77. package/assets/{github-BJf_xM2L.js → github-BIpJQrlC.js} +1 -1
  78. package/assets/{google-C2-k3hmM.js → google-un3Y6Ejx.js} +1 -1
  79. package/assets/{help-circle-DhiNMkUL.js → help-circle-B-zpwtLD.js} +1 -1
  80. package/assets/{id-D03_zXaW.js → id-B4_vIzsp.js} +1 -1
  81. package/assets/{image-j5GaEWNQ.js → image-Czc86Anh.js} +1 -1
  82. package/assets/{in-app-wallet-calls-DeGARlNz.js → in-app-wallet-calls-D7-Z3B5h.js} +1 -1
  83. package/assets/{index-CZdqu4HH.js → index-B7ehXAu4.js} +1 -1
  84. package/assets/{index-DT6Vj6dy.js → index-BhvB7qtA.js} +2 -2
  85. package/assets/{index-5ciQHCfO.js → index-BivApAxn.js} +1 -1
  86. package/assets/index-BjzJcZq6.js +1 -1
  87. package/assets/index-C3DFzjjm.js +8 -0
  88. package/assets/{index-jI5uKA2-.js → index-C8jSk8ge.js} +1 -1
  89. package/assets/{index-DDgA9b7k.js → index-CcXGB7H0.js} +1 -1
  90. package/assets/{index-CUrz5-ZQ.js → index-ClhPpkNy.js} +3 -3
  91. package/assets/index-DDxTHrtr.js +1 -0
  92. package/assets/{index-Bd_zGIWs.js → index-DMXpjhes.js} +2 -2
  93. package/assets/index-DU4RVPgw.js +1 -0
  94. package/assets/{index-BozJS3za.js → index-D_Y0vnSs.js} +1 -1
  95. package/assets/{index-DQ85yNMU.js → index-DdtNL2Jf.js} +1 -1
  96. package/assets/{index-L3jxSgGB.js → index-DpRa9Hdk.js} +1 -1
  97. package/assets/{index-uTf7Q5m-.js → index-DpyuVWzp.js} +1 -1
  98. package/assets/index-Dy0yjznp.js +1 -1
  99. package/assets/{index-D4ZoaFaW.js → index-vb2hjBpr.js} +1 -1
  100. package/assets/{index.es-vTDnK87g.js → index.es-C-HzyBbb.js} +1 -1
  101. package/assets/{index.es-CAWfybMT.js → index.es-C4Qj75ZL.js} +3 -3
  102. package/assets/{info-DYDmmmBF.js → info-Cpg1N2vM.js} +1 -1
  103. package/assets/{info-circle-CcOS1QbV.js → info-circle-D8V3i6qM.js} +1 -1
  104. package/assets/jsx-runtime-DncYoG30.js +1 -1
  105. package/assets/{lightbulb-Byuz2x7E.js → lightbulb-HefALNgp.js} +1 -1
  106. package/assets/{localBatchGatewayRequest-BOvl6QMW.js → localBatchGatewayRequest-CRqIDg0k.js} +1 -1
  107. package/assets/{mail-Dmlstk1E.js → mail-CgM9gIZJ.js} +1 -1
  108. package/assets/{mobile-BHFF9Tp-.js → mobile-U7c47SaE.js} +1 -1
  109. package/assets/{more-Uov13zHU.js → more-DdaQJYy6.js} +1 -1
  110. package/assets/{network-placeholder-DPsAlG2a.js → network-placeholder-CLxfhasD.js} +1 -1
  111. package/assets/{nftPlaceholder-CKa3uzSG.js → nftPlaceholder-DLJ8_zDF.js} +1 -1
  112. package/assets/{off-BvxFNTc7.js → off-BODMWvqU.js} +1 -1
  113. package/assets/{openzeppelin-BmJC0lXu.js → openzeppelin-CElS1w4j.js} +1 -1
  114. package/assets/{ownerOf-CaDY4Qro.js → ownerOf-4VKl6Zed.js} +1 -1
  115. package/assets/{parseNft-CwTDpy0g.js → parseNft-B3feBBr7.js} +2 -2
  116. package/assets/{play-store-COAN7GVZ.js → play-store-2WBMZoJX.js} +1 -1
  117. package/assets/{plus-YCFIwODs.js → plus-C8q1mNaL.js} +1 -1
  118. package/assets/preload-helper-DJT5ZcG4.js +1 -0
  119. package/assets/{qr-code-CQNjoP1_.js → qr-code-SA-iW5ew.js} +1 -1
  120. package/assets/{qr-overlay-C8VtIF-5.js → qr-overlay-YOF5zF1q.js} +1 -1
  121. package/assets/{recycle-horizontal-BXBBKttg.js → recycle-horizontal-DGKs-nfw.js} +1 -1
  122. package/assets/{refresh-DGzlkz4z.js → refresh--yNxoDBw.js} +1 -1
  123. package/assets/remoteEntry.js +1 -1
  124. package/assets/{reown-logo-41ZwC8Wb.js → reown-logo-BQIpKPKW.js} +1 -1
  125. package/assets/{resolveImplementation-DM6BHeji.js → resolveImplementation-DszFPOZ6.js} +1 -1
  126. package/assets/{search-DkZZHruy.js → search-FtLcOObA.js} +1 -1
  127. package/assets/{secp256k1-CmqR8ec3.js → secp256k1-DcA0Bweb.js} +1 -1
  128. package/assets/{send-DY97Hjge.js → send-CBJ-wiQ6.js} +1 -1
  129. package/assets/{send-batch-transaction-BLPmGB9M.js → send-batch-transaction-xxQ_5YMn.js} +1 -1
  130. package/assets/{send-eip712-transaction-t91PBSUH.js → send-eip712-transaction-DkxQV38B.js} +2 -2
  131. package/assets/{send-gasless-transaction-DRbTPij5.js → send-gasless-transaction-XxHEAsLB.js} +2 -2
  132. package/assets/{serializeTransaction-DePWMgRx.js → serializeTransaction-CMhv_BZC.js} +1 -1
  133. package/assets/{session-proposal-BPk-6kBm.js → session-proposal-Bd5Fj6z3.js} +1 -1
  134. package/assets/{session-request-mTPTFyu8.js → session-request-B70r2YF_.js} +2 -2
  135. package/assets/{signing-fd2Rp8P0.js → signing-QGcxSI_9.js} +3 -3
  136. package/assets/{swapHorizontal-4B3kHTpA.js → swapHorizontal-C1dSpyyi.js} +1 -1
  137. package/assets/{swapHorizontalBold-CLCm8M1r.js → swapHorizontalBold-Bh9HRSf4.js} +1 -1
  138. package/assets/{swapHorizontalMedium-pth8maKg.js → swapHorizontalMedium-C5fWd_xG.js} +1 -1
  139. package/assets/{swapHorizontalRoundedBold-D9RueXfE.js → swapHorizontalRoundedBold-DQYZ6GUV.js} +1 -1
  140. package/assets/{swapVertical-DgFWMAab.js → swapVertical-CwlEklWe.js} +1 -1
  141. package/assets/{telegram-CRzvpklN.js → telegram-D-nTXT2M.js} +1 -1
  142. package/assets/{thirdweb-BDeAJ4oX.js → thirdweb-DZCEFvuW.js} +3 -3
  143. package/assets/{three-dots-CAGpqs78.js → three-dots-C4qGqJn4.js} +1 -1
  144. package/assets/{totalSupply-BOyOYvTD.js → totalSupply-BqaCXbYX.js} +1 -1
  145. package/assets/{twitch-C0_LdJeE.js → twitch-mLqsOtOs.js} +1 -1
  146. package/assets/{twitterIcon-BA_gSMJq.js → twitterIcon-CtFxyGLw.js} +1 -1
  147. package/assets/{uid-QS91sMSf.js → uid-B6XGct9S.js} +3 -3
  148. package/assets/{verify-Doijrccq.js → verify-CeRpSmin.js} +1 -1
  149. package/assets/{verify-filled-Dzvol2nT.js → verify-filled-CjglFMsq.js} +1 -1
  150. package/assets/{w3m-modal-XdpZEDU9.js → w3m-modal-DR20hsnc.js} +1 -1
  151. package/assets/{wait-for-tx-receipt-tKiSk-wy.js → wait-for-tx-receipt-DQdcSdtK.js} +1 -1
  152. package/assets/{wallet-aBFrt0kW.js → wallet-9AiGsIL8.js} +1 -1
  153. package/assets/{wallet-placeholder-CLPfteFW.js → wallet-placeholder-CIamIV4f.js} +1 -1
  154. package/assets/{walletconnect-RkdjesgD.js → walletconnect--HLqlkm7.js} +1 -1
  155. package/assets/{wallets-z86vtyeQ.js → wallets-CQmzEszx.js} +5 -5
  156. package/assets/{warning-circle-C3Uif538.js → warning-circle-o-FTEWCj.js} +1 -1
  157. package/assets/{web-connector-Cf7r9kv3.js → web-connector-CzTxyAHe.js} +3 -3
  158. package/assets/{webSocket-C9MEjwL1.js → webSocket-CSarcF7y.js} +1 -1
  159. package/assets/{x-DMVfcf_O.js → x-CADCUMm6.js} +1 -1
  160. package/index.html +17 -17
  161. package/package.json +3 -3
  162. package/assets/SignInRedirect-Cq5V2cbN.js +0 -11
  163. package/assets/__federation_shared_@dcl/hooks-BWESDPD3.js +0 -535
  164. package/assets/__federation_shared_@dcl/schemas-CVwtHlVJ.js +0 -1
  165. package/assets/__federation_shared_@emotion/react-BQUlnVL8.js +0 -1
  166. package/assets/__federation_shared_decentraland-ui2-Dkip0j-u.js +0 -358
  167. package/assets/create-submenu-Bu20F8-Z.webp +0 -0
  168. package/assets/explore-submenu-BFVuYMi9.webp +0 -0
  169. package/assets/governance-submenu-VTIKvCIL.webp +0 -0
  170. package/assets/index-CpR9p5nk.js +0 -1
  171. package/assets/index-MYKNZAUu.js +0 -8
  172. package/assets/index-Tsk25L8E.js +0 -1
  173. package/assets/learn-submenu-sfxVP5Db.webp +0 -0
  174. package/assets/marketplace-submenu-CixWTv8_.webp +0 -0
  175. package/assets/preload-helper-CO43ckIt.js +0 -1
@@ -0,0 +1,535 @@
1
+ const __vite__fileDeps=["assets/index-BhvB7qtA.js","assets/preload-helper-DJT5ZcG4.js","assets/tslib.es6-DbvBTznf.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/inherits_browser-BlmhoU4v.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{c as ie}from"../_commonjsHelpers-C4iS2aBk.js";import{a as $w,d as eT,b as tT}from"../index-C3DFzjjm.js";import{r as nT}from"../___vite-browser-external_commonjs-proxy-BqV5D26a.js";import{_ as rT}from"../preload-helper-DJT5ZcG4.js";import{importShared as kn}from"../__federation_fn_import-BVq5pY2g.js";import{j as m_}from"../jsx-runtime-DncYoG30.js";import{b as Fe,d as pr,e as iT,c as Hr}from"../tslib.es6-DbvBTznf.js";var g_={},ep={};Object.defineProperty(ep,"__esModule",{value:!0});var y_={},Gu={},qu={},__={},Jd={exports:{}};/*! eth-connect {
3
+ "date": "2024-01-01T15:10:57.542Z",
4
+ "commit": "b2fa64415d297ccce86d2a5d59d8705388f77db9",
5
+ "ref": "refs/tags/6.2.4"
6
+ } */(function(e,t){(function(n,r){r(t)})(ie,function(n){function r(d){if(d.jsonrpc="2.0",!d.id||typeof d.id!="number"||Math.floor(d.id)!==d.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(d)}`);if(!d.method||typeof d.method!="string"||d.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(d)}`);if(!d.params||typeof d.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(d)}`);return d}var i={};function a(){let d,h;const y=new Promise((w,O)=>{d=P=>{w(P),y.isPending=!1},h=P=>{O(P),y.isPending=!1}}).catch(w=>Promise.reject(w));return y.resolve=d,y.reject=h,"finally"in y||(y.finally=w=>{y.then(w),y.catch(w)}),y.isPending=!0,y}Object.defineProperty(i,"__esModule",{value:!0});var s=i.future=a;i.default=a;var o={exports:{}};/**
7
+ * [js-sha3]{@link https://github.com/emn178/js-sha3}
8
+ *
9
+ * @version 0.8.0
10
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
11
+ * @copyright Chen, Yi-Cyuan 2015-2018
12
+ * @license MIT
13
+ */(function(d){(function(){var h="input is invalid type",y=typeof window=="object",w=y?window:{};w.JS_SHA3_NO_WINDOW&&(y=!1);var O=!y&&typeof self=="object";!w.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node?w=ie:O&&(w=self);var P=!w.JS_SHA3_NO_COMMON_JS&&d.exports,Q=!w.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",ye="0123456789abcdef".split(""),Pe=[4,1024,262144,67108864],Le=[0,8,16,24],_n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],Ut=[224,256,384,512],be=[128,256],sn=["hex","buffer","arrayBuffer","array","digest"],Ot={128:168,256:136};!w.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(p){return Object.prototype.toString.call(p)==="[object Array]"}),!Q||!w.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(p){return typeof p=="object"&&p.buffer&&p.buffer.constructor===ArrayBuffer});for(var Rt=function(p,E,I){return function(S){return new yt(p,E,p).update(S)[I]()}},dn=function(p,E,I){return function(S,R){return new yt(p,E,R).update(S)[I]()}},Lr=function(p,E,I){return function(S,R,N,M){return on["cshake"+p].update(S,R,N,M)[I]()}},yr=function(p,E,I){return function(S,R,N,M){return on["kmac"+p].update(S,R,N,M)[I]()}},fn=function(p,E,I,S){for(var R=0;R<sn.length;++R){var N=sn[R];p[N]=E(I,S,N)}return p},_r=function(p,E){var I=Rt(p,E,"hex");return I.create=function(){return new yt(p,E,p)},I.update=function(S){return I.create().update(S)},fn(I,Rt,p,E)},ai=[{name:"keccak",padding:[1,256,65536,16777216],bits:Ut,createMethod:_r},{name:"sha3",padding:[6,1536,393216,100663296],bits:Ut,createMethod:_r},{name:"shake",padding:[31,7936,2031616,520093696],bits:be,createMethod:function(p,E){var I=dn(p,E,"hex");return I.create=function(S){return new yt(p,E,S)},I.update=function(S,R){return I.create(R).update(S)},fn(I,dn,p,E)}},{name:"cshake",padding:Pe,bits:be,createMethod:function(p,E){var I=Ot[p],S=Lr(p,0,"hex");return S.create=function(R,N,M){return N||M?new yt(p,E,R).bytepad([N,M],I):on["shake"+p].create(R)},S.update=function(R,N,M,x){return S.create(N,M,x).update(R)},fn(S,Lr,p,E)}},{name:"kmac",padding:Pe,bits:be,createMethod:function(p,E){var I=Ot[p],S=yr(p,0,"hex");return S.create=function(R,N,M){return new Dn(p,E,N).bytepad(["KMAC",M],I).bytepad([R],I)},S.update=function(R,N,M,x){return S.create(R,M,x).update(N)},fn(S,yr,p,E)}}],on={},Dr=[],pn=0;pn<ai.length;++pn)for(var br=ai[pn],de=br.bits,Br=0;Br<de.length;++Br){var ha=br.name+"_"+de[Br];if(Dr.push(ha),on[ha]=br.createMethod(de[Br],br.padding),br.name!=="sha3"){var ma=br.name+de[Br];Dr.push(ma),on[ma]=on[ha]}}function yt(p,E,I){this.blocks=[],this.s=[],this.padding=E,this.outputBits=I,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(p<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=I>>5,this.extraBytes=(31&I)>>3;for(var S=0;S<50;++S)this.s[S]=0}function Dn(p,E,I){yt.call(this,p,E,I)}yt.prototype.update=function(p){if(this.finalized)throw new Error("finalize already called");var E,I=typeof p;if(I!=="string"){if(I!=="object")throw new Error(h);if(p===null)throw new Error(h);if(Q&&p.constructor===ArrayBuffer)p=new Uint8Array(p);else if(!(Array.isArray(p)||Q&&ArrayBuffer.isView(p)))throw new Error(h);E=!0}for(var S,R,N=this.blocks,M=this.byteCount,x=p.length,q=this.blockCount,V=0,he=this.s;V<x;){if(this.reset)for(this.reset=!1,N[0]=this.block,S=1;S<q+1;++S)N[S]=0;if(E)for(S=this.start;V<x&&S<M;++V)N[S>>2]|=p[V]<<Le[3&S++];else for(S=this.start;V<x&&S<M;++V)(R=p.charCodeAt(V))<128?N[S>>2]|=R<<Le[3&S++]:R<2048?(N[S>>2]|=(192|R>>6)<<Le[3&S++],N[S>>2]|=(128|63&R)<<Le[3&S++]):R<55296||R>=57344?(N[S>>2]|=(224|R>>12)<<Le[3&S++],N[S>>2]|=(128|R>>6&63)<<Le[3&S++],N[S>>2]|=(128|63&R)<<Le[3&S++]):(R=65536+((1023&R)<<10|1023&p.charCodeAt(++V)),N[S>>2]|=(240|R>>18)<<Le[3&S++],N[S>>2]|=(128|R>>12&63)<<Le[3&S++],N[S>>2]|=(128|R>>6&63)<<Le[3&S++],N[S>>2]|=(128|63&R)<<Le[3&S++]);if(this.lastByteIndex=S,S>=M){for(this.start=S-M,this.block=N[q],S=0;S<q;++S)he[S]^=N[S];v(he),this.reset=!0}else this.start=S}return this},yt.prototype.encode=function(p,E){var I=255&p,S=1,R=[I];for(I=255&(p>>=8);I>0;)R.unshift(I),I=255&(p>>=8),++S;return E?R.push(S):R.unshift(S),this.update(R),R.length},yt.prototype.encodeString=function(p){var E,I=typeof p;if(I!=="string"){if(I!=="object")throw new Error(h);if(p===null)throw new Error(h);if(Q&&p.constructor===ArrayBuffer)p=new Uint8Array(p);else if(!(Array.isArray(p)||Q&&ArrayBuffer.isView(p)))throw new Error(h);E=!0}var S=0,R=p.length;if(E)S=R;else for(var N=0;N<p.length;++N){var M=p.charCodeAt(N);M<128?S+=1:M<2048?S+=2:M<55296||M>=57344?S+=3:(M=65536+((1023&M)<<10|1023&p.charCodeAt(++N)),S+=4)}return S+=this.encode(8*S),this.update(p),S},yt.prototype.bytepad=function(p,E){for(var I=this.encode(E),S=0;S<p.length;++S)I+=this.encodeString(p[S]);var R=E-I%E,N=[];return N.length=R,this.update(N),this},yt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var p=this.blocks,E=this.lastByteIndex,I=this.blockCount,S=this.s;if(p[E>>2]|=this.padding[3&E],this.lastByteIndex===this.byteCount)for(p[0]=p[I],E=1;E<I+1;++E)p[E]=0;for(p[I-1]|=2147483648,E=0;E<I;++E)S[E]^=p[E];v(S)}},yt.prototype.toString=yt.prototype.hex=function(){this.finalize();for(var p,E=this.blockCount,I=this.s,S=this.outputBlocks,R=this.extraBytes,N=0,M=0,x="";M<S;){for(N=0;N<E&&M<S;++N,++M)p=I[N],x+=ye[p>>4&15]+ye[15&p]+ye[p>>12&15]+ye[p>>8&15]+ye[p>>20&15]+ye[p>>16&15]+ye[p>>28&15]+ye[p>>24&15];M%E==0&&(v(I),N=0)}return R&&(p=I[N],x+=ye[p>>4&15]+ye[15&p],R>1&&(x+=ye[p>>12&15]+ye[p>>8&15]),R>2&&(x+=ye[p>>20&15]+ye[p>>16&15])),x},yt.prototype.arrayBuffer=function(){this.finalize();var p,E=this.blockCount,I=this.s,S=this.outputBlocks,R=this.extraBytes,N=0,M=0,x=this.outputBits>>3;p=R?new ArrayBuffer(S+1<<2):new ArrayBuffer(x);for(var q=new Uint32Array(p);M<S;){for(N=0;N<E&&M<S;++N,++M)q[M]=I[N];M%E==0&&v(I)}return R&&(q[N]=I[N],p=p.slice(0,x)),p},yt.prototype.buffer=yt.prototype.arrayBuffer,yt.prototype.digest=yt.prototype.array=function(){this.finalize();for(var p,E,I=this.blockCount,S=this.s,R=this.outputBlocks,N=this.extraBytes,M=0,x=0,q=[];x<R;){for(M=0;M<I&&x<R;++M,++x)p=x<<2,E=S[M],q[p]=255&E,q[p+1]=E>>8&255,q[p+2]=E>>16&255,q[p+3]=E>>24&255;x%I==0&&v(S)}return N&&(p=x<<2,E=S[M],q[p]=255&E,N>1&&(q[p+1]=E>>8&255),N>2&&(q[p+2]=E>>16&255)),q},Dn.prototype=new yt,Dn.prototype.finalize=function(){return this.encode(this.outputBits,!0),yt.prototype.finalize.call(this)};var v=function(p){var E,I,S,R,N,M,x,q,V,he,ke,Ue,dt,Ct,Bt,ct,_t,zt,Fr,si,oi,bn,Er,cn,Xt,wt,Po,ko,Lo,Do,Bo,Fo,xo,Ho,Uo,jo,Vo,Go,qo,Wo,zo,Yo,Ko,Xo,Jo,Zo,Qo,$o,ec,tc,nc,rc,ic,ac,sc,oc,cc,uc,lc,dc,fc,pc,hc;for(S=0;S<48;S+=2)R=p[0]^p[10]^p[20]^p[30]^p[40],N=p[1]^p[11]^p[21]^p[31]^p[41],M=p[2]^p[12]^p[22]^p[32]^p[42],x=p[3]^p[13]^p[23]^p[33]^p[43],q=p[4]^p[14]^p[24]^p[34]^p[44],V=p[5]^p[15]^p[25]^p[35]^p[45],he=p[6]^p[16]^p[26]^p[36]^p[46],ke=p[7]^p[17]^p[27]^p[37]^p[47],E=(Ue=p[8]^p[18]^p[28]^p[38]^p[48])^(M<<1|x>>>31),I=(dt=p[9]^p[19]^p[29]^p[39]^p[49])^(x<<1|M>>>31),p[0]^=E,p[1]^=I,p[10]^=E,p[11]^=I,p[20]^=E,p[21]^=I,p[30]^=E,p[31]^=I,p[40]^=E,p[41]^=I,E=R^(q<<1|V>>>31),I=N^(V<<1|q>>>31),p[2]^=E,p[3]^=I,p[12]^=E,p[13]^=I,p[22]^=E,p[23]^=I,p[32]^=E,p[33]^=I,p[42]^=E,p[43]^=I,E=M^(he<<1|ke>>>31),I=x^(ke<<1|he>>>31),p[4]^=E,p[5]^=I,p[14]^=E,p[15]^=I,p[24]^=E,p[25]^=I,p[34]^=E,p[35]^=I,p[44]^=E,p[45]^=I,E=q^(Ue<<1|dt>>>31),I=V^(dt<<1|Ue>>>31),p[6]^=E,p[7]^=I,p[16]^=E,p[17]^=I,p[26]^=E,p[27]^=I,p[36]^=E,p[37]^=I,p[46]^=E,p[47]^=I,E=he^(R<<1|N>>>31),I=ke^(N<<1|R>>>31),p[8]^=E,p[9]^=I,p[18]^=E,p[19]^=I,p[28]^=E,p[29]^=I,p[38]^=E,p[39]^=I,p[48]^=E,p[49]^=I,Ct=p[0],Bt=p[1],Zo=p[11]<<4|p[10]>>>28,Qo=p[10]<<4|p[11]>>>28,ko=p[20]<<3|p[21]>>>29,Lo=p[21]<<3|p[20]>>>29,dc=p[31]<<9|p[30]>>>23,fc=p[30]<<9|p[31]>>>23,Yo=p[40]<<18|p[41]>>>14,Ko=p[41]<<18|p[40]>>>14,Ho=p[2]<<1|p[3]>>>31,Uo=p[3]<<1|p[2]>>>31,ct=p[13]<<12|p[12]>>>20,_t=p[12]<<12|p[13]>>>20,$o=p[22]<<10|p[23]>>>22,ec=p[23]<<10|p[22]>>>22,Do=p[33]<<13|p[32]>>>19,Bo=p[32]<<13|p[33]>>>19,pc=p[42]<<2|p[43]>>>30,hc=p[43]<<2|p[42]>>>30,ac=p[5]<<30|p[4]>>>2,sc=p[4]<<30|p[5]>>>2,jo=p[14]<<6|p[15]>>>26,Vo=p[15]<<6|p[14]>>>26,zt=p[25]<<11|p[24]>>>21,Fr=p[24]<<11|p[25]>>>21,tc=p[34]<<15|p[35]>>>17,nc=p[35]<<15|p[34]>>>17,Fo=p[45]<<29|p[44]>>>3,xo=p[44]<<29|p[45]>>>3,cn=p[6]<<28|p[7]>>>4,Xt=p[7]<<28|p[6]>>>4,oc=p[17]<<23|p[16]>>>9,cc=p[16]<<23|p[17]>>>9,Go=p[26]<<25|p[27]>>>7,qo=p[27]<<25|p[26]>>>7,si=p[36]<<21|p[37]>>>11,oi=p[37]<<21|p[36]>>>11,rc=p[47]<<24|p[46]>>>8,ic=p[46]<<24|p[47]>>>8,Xo=p[8]<<27|p[9]>>>5,Jo=p[9]<<27|p[8]>>>5,wt=p[18]<<20|p[19]>>>12,Po=p[19]<<20|p[18]>>>12,uc=p[29]<<7|p[28]>>>25,lc=p[28]<<7|p[29]>>>25,Wo=p[38]<<8|p[39]>>>24,zo=p[39]<<8|p[38]>>>24,bn=p[48]<<14|p[49]>>>18,Er=p[49]<<14|p[48]>>>18,p[0]=Ct^~ct&zt,p[1]=Bt^~_t&Fr,p[10]=cn^~wt&ko,p[11]=Xt^~Po&Lo,p[20]=Ho^~jo&Go,p[21]=Uo^~Vo&qo,p[30]=Xo^~Zo&$o,p[31]=Jo^~Qo&ec,p[40]=ac^~oc&uc,p[41]=sc^~cc&lc,p[2]=ct^~zt&si,p[3]=_t^~Fr&oi,p[12]=wt^~ko&Do,p[13]=Po^~Lo&Bo,p[22]=jo^~Go&Wo,p[23]=Vo^~qo&zo,p[32]=Zo^~$o&tc,p[33]=Qo^~ec&nc,p[42]=oc^~uc&dc,p[43]=cc^~lc&fc,p[4]=zt^~si&bn,p[5]=Fr^~oi&Er,p[14]=ko^~Do&Fo,p[15]=Lo^~Bo&xo,p[24]=Go^~Wo&Yo,p[25]=qo^~zo&Ko,p[34]=$o^~tc&rc,p[35]=ec^~nc&ic,p[44]=uc^~dc&pc,p[45]=lc^~fc&hc,p[6]=si^~bn&Ct,p[7]=oi^~Er&Bt,p[16]=Do^~Fo&cn,p[17]=Bo^~xo&Xt,p[26]=Wo^~Yo&Ho,p[27]=zo^~Ko&Uo,p[36]=tc^~rc&Xo,p[37]=nc^~ic&Jo,p[46]=dc^~pc&ac,p[47]=fc^~hc&sc,p[8]=bn^~Ct&ct,p[9]=Er^~Bt&_t,p[18]=Fo^~cn&wt,p[19]=xo^~Xt&Po,p[28]=Yo^~Ho&jo,p[29]=Ko^~Uo&Vo,p[38]=rc^~Xo&Zo,p[39]=ic^~Jo&Qo,p[48]=pc^~ac&oc,p[49]=hc^~sc&cc,p[0]^=_n[S],p[1]^=_n[S+1]};if(P)d.exports=on;else for(pn=0;pn<Dr.length;++pn)w[Dr[pn]]=on[Dr[pn]]})()})(o);var c=o.exports,u=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,f=Math.ceil,l=Math.floor,m="[BigNumber Error] ",g=m+"Number primitive has more than 15 significant digits: ",_=1e14,T=14,B=9007199254740991,U=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],J=1e7,K=1e9;function H(d){var h=0|d;return d>0||d===h?h:h-1}function F(d){for(var h,y,w=1,O=d.length,P=d[0]+"";w<O;){for(h=d[w++]+"",y=T-h.length;y--;h="0"+h);P+=h}for(O=P.length;P.charCodeAt(--O)===48;);return P.slice(0,O+1||1)}function k(d,h){var y,w,O=d.c,P=h.c,Q=d.s,ye=h.s,Pe=d.e,Le=h.e;if(!Q||!ye)return null;if(y=O&&!O[0],w=P&&!P[0],y||w)return y?w?0:-ye:Q;if(Q!=ye)return Q;if(y=Q<0,w=Pe==Le,!O||!P)return w?0:!O^y?1:-1;if(!w)return Pe>Le^y?1:-1;for(ye=(Pe=O.length)<(Le=P.length)?Pe:Le,Q=0;Q<ye;Q++)if(O[Q]!=P[Q])return O[Q]>P[Q]^y?1:-1;return Pe==Le?0:Pe>Le^y?1:-1}function j(d,h,y,w){if(d<h||d>y||d!==l(d))throw Error(m+(w||"Argument")+(typeof d=="number"?d<h||d>y?" out of range: ":" not an integer: ":" not a primitive number: ")+String(d))}function te(d){var h=d.c.length-1;return H(d.e/T)==h&&d.c[h]%2!=0}function L(d,h){return(d.length>1?d.charAt(0)+"."+d.slice(1):d)+(h<0?"e":"e+")+h}function G(d,h,y){var w,O;if(h<0){for(O=y+".";++h;O+=y);d=O+d}else if(++h>(w=d.length)){for(O=y,h-=w;--h;O+=y);d+=O}else h<w&&(d=d.slice(0,h)+"."+d.slice(h));return d}var W=function d(h){var y,w,O,P,Q,ye,Pe,Le,_n,Ut,be=de.prototype={constructor:de,toString:null,valueOf:null},sn=new de(1),Ot=20,Rt=4,dn=-7,Lr=21,yr=-1e7,fn=1e7,_r=!1,ai=1,on=0,Dr={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},pn="0123456789abcdefghijklmnopqrstuvwxyz",br=!0;function de(v,p){var E,I,S,R,N,M,x,q,V=this;if(!(V instanceof de))return new de(v,p);if(p==null){if(v&&v._isBigNumber===!0)return V.s=v.s,void(!v.c||v.e>fn?V.c=V.e=null:v.e<yr?V.c=[V.e=0]:(V.e=v.e,V.c=v.c.slice()));if((M=typeof v=="number")&&0*v==0){if(V.s=1/v<0?(v=-v,-1):1,v===~~v){for(R=0,N=v;N>=10;N/=10,R++);return void(R>fn?V.c=V.e=null:(V.e=R,V.c=[v]))}q=String(v)}else{if(!u.test(q=String(v)))return O(V,q,M);V.s=q.charCodeAt(0)==45?(q=q.slice(1),-1):1}(R=q.indexOf("."))>-1&&(q=q.replace(".","")),(N=q.search(/e/i))>0?(R<0&&(R=N),R+=+q.slice(N+1),q=q.substring(0,N)):R<0&&(R=q.length)}else{if(j(p,2,pn.length,"Base"),p==10&&br)return yt(V=new de(v),Ot+V.e+1,Rt);if(q=String(v),M=typeof v=="number"){if(0*v!=0)return O(V,q,M,p);if(V.s=1/v<0?(q=q.slice(1),-1):1,de.DEBUG&&q.replace(/^0\.0*|\./,"").length>15)throw Error(g+v)}else V.s=q.charCodeAt(0)===45?(q=q.slice(1),-1):1;for(E=pn.slice(0,p),R=N=0,x=q.length;N<x;N++)if(E.indexOf(I=q.charAt(N))<0){if(I=="."){if(N>R){R=x;continue}}else if(!S&&(q==q.toUpperCase()&&(q=q.toLowerCase())||q==q.toLowerCase()&&(q=q.toUpperCase()))){S=!0,N=-1,R=0;continue}return O(V,String(v),M,p)}M=!1,(R=(q=w(q,p,10,V.s)).indexOf("."))>-1?q=q.replace(".",""):R=q.length}for(N=0;q.charCodeAt(N)===48;N++);for(x=q.length;q.charCodeAt(--x)===48;);if(q=q.slice(N,++x)){if(x-=N,M&&de.DEBUG&&x>15&&(v>B||v!==l(v)))throw Error(g+V.s*v);if((R=R-N-1)>fn)V.c=V.e=null;else if(R<yr)V.c=[V.e=0];else{if(V.e=R,V.c=[],N=(R+1)%T,R<0&&(N+=T),N<x){for(N&&V.c.push(+q.slice(0,N)),x-=T;N<x;)V.c.push(+q.slice(N,N+=T));N=T-(q=q.slice(N)).length}else N-=x;for(;N--;q+="0");V.c.push(+q)}}else V.c=[V.e=0]}function Br(v,p,E,I){var S,R,N,M,x;if(E==null?E=Rt:j(E,0,8),!v.c)return v.toString();if(S=v.c[0],N=v.e,p==null)x=F(v.c),x=I==1||I==2&&(N<=dn||N>=Lr)?L(x,N):G(x,N,"0");else if(R=(v=yt(new de(v),p,E)).e,M=(x=F(v.c)).length,I==1||I==2&&(p<=R||R<=dn)){for(;M<p;x+="0",M++);x=L(x,R)}else if(p-=N,x=G(x,R,"0"),R+1>M){if(--p>0)for(x+=".";p--;x+="0");}else if((p+=R-M)>0)for(R+1==M&&(x+=".");p--;x+="0");return v.s<0&&S?"-"+x:x}function ha(v,p){for(var E,I=1,S=new de(v[0]);I<v.length;I++){if(!(E=new de(v[I])).s){S=E;break}p.call(S,E)&&(S=E)}return S}function ma(v,p,E){for(var I=1,S=p.length;!p[--S];p.pop());for(S=p[0];S>=10;S/=10,I++);return(E=I+E*T-1)>fn?v.c=v.e=null:E<yr?v.c=[v.e=0]:(v.e=E,v.c=p),v}function yt(v,p,E,I){var S,R,N,M,x,q,V,he=v.c,ke=U;if(he){e:{for(S=1,M=he[0];M>=10;M/=10,S++);if((R=p-S)<0)R+=T,N=p,V=(x=he[q=0])/ke[S-N-1]%10|0;else if((q=f((R+1)/T))>=he.length){if(!I)break e;for(;he.length<=q;he.push(0));x=V=0,S=1,N=(R%=T)-T+1}else{for(x=M=he[q],S=1;M>=10;M/=10,S++);V=(N=(R%=T)-T+S)<0?0:x/ke[S-N-1]%10|0}if(I=I||p<0||he[q+1]!=null||(N<0?x:x%ke[S-N-1]),I=E<4?(V||I)&&(E==0||E==(v.s<0?3:2)):V>5||V==5&&(E==4||I||E==6&&(R>0?N>0?x/ke[S-N]:0:he[q-1])%10&1||E==(v.s<0?8:7)),p<1||!he[0])return he.length=0,I?(p-=v.e+1,he[0]=ke[(T-p%T)%T],v.e=-p||0):he[0]=v.e=0,v;if(R==0?(he.length=q,M=1,q--):(he.length=q+1,M=ke[T-R],he[q]=N>0?l(x/ke[S-N]%ke[N])*M:0),I)for(;;){if(q==0){for(R=1,N=he[0];N>=10;N/=10,R++);for(N=he[0]+=M,M=1;N>=10;N/=10,M++);R!=M&&(v.e++,he[0]==_&&(he[0]=1));break}if(he[q]+=M,he[q]!=_)break;he[q--]=0,M=1}for(R=he.length;he[--R]===0;he.pop());}v.e>fn?v.c=v.e=null:v.e<yr&&(v.c=[v.e=0])}return v}function Dn(v){var p,E=v.e;return E===null?v.toString():(p=F(v.c),p=E<=dn||E>=Lr?L(p,E):G(p,E,"0"),v.s<0?"-"+p:p)}return de.clone=d,de.ROUND_UP=0,de.ROUND_DOWN=1,de.ROUND_CEIL=2,de.ROUND_FLOOR=3,de.ROUND_HALF_UP=4,de.ROUND_HALF_DOWN=5,de.ROUND_HALF_EVEN=6,de.ROUND_HALF_CEIL=7,de.ROUND_HALF_FLOOR=8,de.EUCLID=9,de.config=de.set=function(v){var p,E;if(v!=null){if(typeof v!="object")throw Error(m+"Object expected: "+v);if(v.hasOwnProperty(p="DECIMAL_PLACES")&&(j(E=v[p],0,K,p),Ot=E),v.hasOwnProperty(p="ROUNDING_MODE")&&(j(E=v[p],0,8,p),Rt=E),v.hasOwnProperty(p="EXPONENTIAL_AT")&&((E=v[p])&&E.pop?(j(E[0],-K,0,p),j(E[1],0,K,p),dn=E[0],Lr=E[1]):(j(E,-K,K,p),dn=-(Lr=E<0?-E:E))),v.hasOwnProperty(p="RANGE"))if((E=v[p])&&E.pop)j(E[0],-K,-1,p),j(E[1],1,K,p),yr=E[0],fn=E[1];else{if(j(E,-K,K,p),!E)throw Error(m+p+" cannot be zero: "+E);yr=-(fn=E<0?-E:E)}if(v.hasOwnProperty(p="CRYPTO")){if((E=v[p])!==!!E)throw Error(m+p+" not true or false: "+E);if(E){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw _r=!E,Error(m+"crypto unavailable");_r=E}else _r=E}if(v.hasOwnProperty(p="MODULO_MODE")&&(j(E=v[p],0,9,p),ai=E),v.hasOwnProperty(p="POW_PRECISION")&&(j(E=v[p],0,K,p),on=E),v.hasOwnProperty(p="FORMAT")){if(typeof(E=v[p])!="object")throw Error(m+p+" not an object: "+E);Dr=E}if(v.hasOwnProperty(p="ALPHABET")){if(typeof(E=v[p])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(E))throw Error(m+p+" invalid: "+E);br=E.slice(0,10)=="0123456789",pn=E}}return{DECIMAL_PLACES:Ot,ROUNDING_MODE:Rt,EXPONENTIAL_AT:[dn,Lr],RANGE:[yr,fn],CRYPTO:_r,MODULO_MODE:ai,POW_PRECISION:on,FORMAT:Dr,ALPHABET:pn}},de.isBigNumber=function(v){if(!v||v._isBigNumber!==!0)return!1;if(!de.DEBUG)return!0;var p,E,I=v.c,S=v.e,R=v.s;e:if({}.toString.call(I)=="[object Array]"){if((R===1||R===-1)&&S>=-K&&S<=K&&S===l(S)){if(I[0]===0){if(S===0&&I.length===1)return!0;break e}if((p=(S+1)%T)<1&&(p+=T),String(I[0]).length==p){for(p=0;p<I.length;p++)if((E=I[p])<0||E>=_||E!==l(E))break e;if(E!==0)return!0}}}else if(I===null&&S===null&&(R===null||R===1||R===-1))return!0;throw Error(m+"Invalid BigNumber: "+v)},de.maximum=de.max=function(){return ha(arguments,be.lt)},de.minimum=de.min=function(){return ha(arguments,be.gt)},de.random=(P=9007199254740992,Q=Math.random()*P&2097151?function(){return l(Math.random()*P)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(v){var p,E,I,S,R,N=0,M=[],x=new de(sn);if(v==null?v=Ot:j(v,0,K),S=f(v/T),_r)if(crypto.getRandomValues){for(p=crypto.getRandomValues(new Uint32Array(S*=2));N<S;)(R=131072*p[N]+(p[N+1]>>>11))>=9e15?(E=crypto.getRandomValues(new Uint32Array(2)),p[N]=E[0],p[N+1]=E[1]):(M.push(R%1e14),N+=2);N=S/2}else{if(!crypto.randomBytes)throw _r=!1,Error(m+"crypto unavailable");for(p=crypto.randomBytes(S*=7);N<S;)(R=281474976710656*(31&p[N])+1099511627776*p[N+1]+4294967296*p[N+2]+16777216*p[N+3]+(p[N+4]<<16)+(p[N+5]<<8)+p[N+6])>=9e15?crypto.randomBytes(7).copy(p,N):(M.push(R%1e14),N+=7);N=S/7}if(!_r)for(;N<S;)(R=Q())<9e15&&(M[N++]=R%1e14);for(S=M[--N],v%=T,S&&v&&(R=U[T-v],M[N]=l(S/R)*R);M[N]===0;M.pop(),N--);if(N<0)M=[I=0];else{for(I=-1;M[0]===0;M.splice(0,1),I-=T);for(N=1,R=M[0];R>=10;R/=10,N++);N<T&&(I-=T-N)}return x.e=I,x.c=M,x}),de.sum=function(){for(var v=1,p=arguments,E=new de(p[0]);v<p.length;)E=E.plus(p[v++]);return E},w=function(){var v="0123456789";function p(E,I,S,R){for(var N,M,x=[0],q=0,V=E.length;q<V;){for(M=x.length;M--;x[M]*=I);for(x[0]+=R.indexOf(E.charAt(q++)),N=0;N<x.length;N++)x[N]>S-1&&(x[N+1]==null&&(x[N+1]=0),x[N+1]+=x[N]/S|0,x[N]%=S)}return x.reverse()}return function(E,I,S,R,N){var M,x,q,V,he,ke,Ue,dt,Ct=E.indexOf("."),Bt=Ot,ct=Rt;for(Ct>=0&&(V=on,on=0,E=E.replace(".",""),ke=(dt=new de(I)).pow(E.length-Ct),on=V,dt.c=p(G(F(ke.c),ke.e,"0"),10,S,v),dt.e=dt.c.length),q=V=(Ue=p(E,I,S,N?(M=pn,v):(M=v,pn))).length;Ue[--V]==0;Ue.pop());if(!Ue[0])return M.charAt(0);if(Ct<0?--q:(ke.c=Ue,ke.e=q,ke.s=R,Ue=(ke=y(ke,dt,Bt,ct,S)).c,he=ke.r,q=ke.e),Ct=Ue[x=q+Bt+1],V=S/2,he=he||x<0||Ue[x+1]!=null,he=ct<4?(Ct!=null||he)&&(ct==0||ct==(ke.s<0?3:2)):Ct>V||Ct==V&&(ct==4||he||ct==6&&1&Ue[x-1]||ct==(ke.s<0?8:7)),x<1||!Ue[0])E=he?G(M.charAt(1),-Bt,M.charAt(0)):M.charAt(0);else{if(Ue.length=x,he)for(--S;++Ue[--x]>S;)Ue[x]=0,x||(++q,Ue=[1].concat(Ue));for(V=Ue.length;!Ue[--V];);for(Ct=0,E="";Ct<=V;E+=M.charAt(Ue[Ct++]));E=G(E,q,M.charAt(0))}return E}}(),y=function(){function v(I,S,R){var N,M,x,q,V=0,he=I.length,ke=S%J,Ue=S/J|0;for(I=I.slice();he--;)V=((M=ke*(x=I[he]%J)+(N=Ue*x+(q=I[he]/J|0)*ke)%J*J+V)/R|0)+(N/J|0)+Ue*q,I[he]=M%R;return V&&(I=[V].concat(I)),I}function p(I,S,R,N){var M,x;if(R!=N)x=R>N?1:-1;else for(M=x=0;M<R;M++)if(I[M]!=S[M]){x=I[M]>S[M]?1:-1;break}return x}function E(I,S,R,N){for(var M=0;R--;)I[R]-=M,M=I[R]<S[R]?1:0,I[R]=M*N+I[R]-S[R];for(;!I[0]&&I.length>1;I.splice(0,1));}return function(I,S,R,N,M){var x,q,V,he,ke,Ue,dt,Ct,Bt,ct,_t,zt,Fr,si,oi,bn,Er,cn=I.s==S.s?1:-1,Xt=I.c,wt=S.c;if(!(Xt&&Xt[0]&&wt&&wt[0]))return new de(I.s&&S.s&&(Xt?!wt||Xt[0]!=wt[0]:wt)?Xt&&Xt[0]==0||!wt?0*cn:cn/0:NaN);for(Bt=(Ct=new de(cn)).c=[],cn=R+(q=I.e-S.e)+1,M||(M=_,q=H(I.e/T)-H(S.e/T),cn=cn/T|0),V=0;wt[V]==(Xt[V]||0);V++);if(wt[V]>(Xt[V]||0)&&q--,cn<0)Bt.push(1),he=!0;else{for(si=Xt.length,bn=wt.length,V=0,cn+=2,(ke=l(M/(wt[0]+1)))>1&&(wt=v(wt,ke,M),Xt=v(Xt,ke,M),bn=wt.length,si=Xt.length),Fr=bn,_t=(ct=Xt.slice(0,bn)).length;_t<bn;ct[_t++]=0);Er=wt.slice(),Er=[0].concat(Er),oi=wt[0],wt[1]>=M/2&&oi++;do{if(ke=0,(x=p(wt,ct,bn,_t))<0){if(zt=ct[0],bn!=_t&&(zt=zt*M+(ct[1]||0)),(ke=l(zt/oi))>1)for(ke>=M&&(ke=M-1),dt=(Ue=v(wt,ke,M)).length,_t=ct.length;p(Ue,ct,dt,_t)==1;)ke--,E(Ue,bn<dt?Er:wt,dt,M),dt=Ue.length,x=1;else ke==0&&(x=ke=1),dt=(Ue=wt.slice()).length;if(dt<_t&&(Ue=[0].concat(Ue)),E(ct,Ue,_t,M),_t=ct.length,x==-1)for(;p(wt,ct,bn,_t)<1;)ke++,E(ct,bn<_t?Er:wt,_t,M),_t=ct.length}else x===0&&(ke++,ct=[0]);Bt[V++]=ke,ct[0]?ct[_t++]=Xt[Fr]||0:(ct=[Xt[Fr]],_t=1)}while((Fr++<si||ct[0]!=null)&&cn--);he=ct[0]!=null,Bt[0]||Bt.splice(0,1)}if(M==_){for(V=1,cn=Bt[0];cn>=10;cn/=10,V++);yt(Ct,R+(Ct.e=V+q*T-1)+1,N,he)}else Ct.e=q,Ct.r=+he;return Ct}}(),ye=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Pe=/^([^.]+)\.$/,Le=/^\.([^.]+)$/,_n=/^-?(Infinity|NaN)$/,Ut=/^\s*\+(?=[\w.])|^\s+|\s+$/g,O=function(v,p,E,I){var S,R=E?p:p.replace(Ut,"");if(_n.test(R))v.s=isNaN(R)?null:R<0?-1:1;else{if(!E&&(R=R.replace(ye,function(N,M,x){return S=(x=x.toLowerCase())=="x"?16:x=="b"?2:8,I&&I!=S?N:M}),I&&(S=I,R=R.replace(Pe,"$1").replace(Le,"0.$1")),p!=R))return new de(R,S);if(de.DEBUG)throw Error(m+"Not a"+(I?" base "+I:"")+" number: "+p);v.s=null}v.c=v.e=null},be.absoluteValue=be.abs=function(){var v=new de(this);return v.s<0&&(v.s=1),v},be.comparedTo=function(v,p){return k(this,new de(v,p))},be.decimalPlaces=be.dp=function(v,p){var E,I,S,R=this;if(v!=null)return j(v,0,K),p==null?p=Rt:j(p,0,8),yt(new de(R),v+R.e+1,p);if(!(E=R.c))return null;if(I=((S=E.length-1)-H(this.e/T))*T,S=E[S])for(;S%10==0;S/=10,I--);return I<0&&(I=0),I},be.dividedBy=be.div=function(v,p){return y(this,new de(v,p),Ot,Rt)},be.dividedToIntegerBy=be.idiv=function(v,p){return y(this,new de(v,p),0,1)},be.exponentiatedBy=be.pow=function(v,p){var E,I,S,R,N,M,x,q,V=this;if((v=new de(v)).c&&!v.isInteger())throw Error(m+"Exponent not an integer: "+Dn(v));if(p!=null&&(p=new de(p)),N=v.e>14,!V.c||!V.c[0]||V.c[0]==1&&!V.e&&V.c.length==1||!v.c||!v.c[0])return q=new de(Math.pow(+Dn(V),N?v.s*(2-te(v)):+Dn(v))),p?q.mod(p):q;if(M=v.s<0,p){if(p.c?!p.c[0]:!p.s)return new de(NaN);(I=!M&&V.isInteger()&&p.isInteger())&&(V=V.mod(p))}else{if(v.e>9&&(V.e>0||V.e<-1||(V.e==0?V.c[0]>1||N&&V.c[1]>=24e7:V.c[0]<8e13||N&&V.c[0]<=9999975e7)))return R=V.s<0&&te(v)?-0:0,V.e>-1&&(R=1/R),new de(M?1/R:R);on&&(R=f(on/T+2))}for(N?(E=new de(.5),M&&(v.s=1),x=te(v)):x=(S=Math.abs(+Dn(v)))%2,q=new de(sn);;){if(x){if(!(q=q.times(V)).c)break;R?q.c.length>R&&(q.c.length=R):I&&(q=q.mod(p))}if(S){if((S=l(S/2))===0)break;x=S%2}else if(yt(v=v.times(E),v.e+1,1),v.e>14)x=te(v);else{if((S=+Dn(v))==0)break;x=S%2}V=V.times(V),R?V.c&&V.c.length>R&&(V.c.length=R):I&&(V=V.mod(p))}return I?q:(M&&(q=sn.div(q)),p?q.mod(p):R?yt(q,on,Rt,void 0):q)},be.integerValue=function(v){var p=new de(this);return v==null?v=Rt:j(v,0,8),yt(p,p.e+1,v)},be.isEqualTo=be.eq=function(v,p){return k(this,new de(v,p))===0},be.isFinite=function(){return!!this.c},be.isGreaterThan=be.gt=function(v,p){return k(this,new de(v,p))>0},be.isGreaterThanOrEqualTo=be.gte=function(v,p){return(p=k(this,new de(v,p)))===1||p===0},be.isInteger=function(){return!!this.c&&H(this.e/T)>this.c.length-2},be.isLessThan=be.lt=function(v,p){return k(this,new de(v,p))<0},be.isLessThanOrEqualTo=be.lte=function(v,p){return(p=k(this,new de(v,p)))===-1||p===0},be.isNaN=function(){return!this.s},be.isNegative=function(){return this.s<0},be.isPositive=function(){return this.s>0},be.isZero=function(){return!!this.c&&this.c[0]==0},be.minus=function(v,p){var E,I,S,R,N=this,M=N.s;if(p=(v=new de(v,p)).s,!M||!p)return new de(NaN);if(M!=p)return v.s=-p,N.plus(v);var x=N.e/T,q=v.e/T,V=N.c,he=v.c;if(!x||!q){if(!V||!he)return V?(v.s=-p,v):new de(he?N:NaN);if(!V[0]||!he[0])return he[0]?(v.s=-p,v):new de(V[0]?N:Rt==3?-0:0)}if(x=H(x),q=H(q),V=V.slice(),M=x-q){for((R=M<0)?(M=-M,S=V):(q=x,S=he),S.reverse(),p=M;p--;S.push(0));S.reverse()}else for(I=(R=(M=V.length)<(p=he.length))?M:p,M=p=0;p<I;p++)if(V[p]!=he[p]){R=V[p]<he[p];break}if(R&&(S=V,V=he,he=S,v.s=-v.s),(p=(I=he.length)-(E=V.length))>0)for(;p--;V[E++]=0);for(p=_-1;I>M;){if(V[--I]<he[I]){for(E=I;E&&!V[--E];V[E]=p);--V[E],V[I]+=_}V[I]-=he[I]}for(;V[0]==0;V.splice(0,1),--q);return V[0]?ma(v,V,q):(v.s=Rt==3?-1:1,v.c=[v.e=0],v)},be.modulo=be.mod=function(v,p){var E,I,S=this;return v=new de(v,p),!S.c||!v.s||v.c&&!v.c[0]?new de(NaN):!v.c||S.c&&!S.c[0]?new de(S):(ai==9?(I=v.s,v.s=1,E=y(S,v,0,3),v.s=I,E.s*=I):E=y(S,v,0,ai),(v=S.minus(E.times(v))).c[0]||ai!=1||(v.s=S.s),v)},be.multipliedBy=be.times=function(v,p){var E,I,S,R,N,M,x,q,V,he,ke,Ue,dt,Ct,Bt,ct=this,_t=ct.c,zt=(v=new de(v,p)).c;if(!(_t&&zt&&_t[0]&&zt[0]))return!ct.s||!v.s||_t&&!_t[0]&&!zt||zt&&!zt[0]&&!_t?v.c=v.e=v.s=null:(v.s*=ct.s,_t&&zt?(v.c=[0],v.e=0):v.c=v.e=null),v;for(I=H(ct.e/T)+H(v.e/T),v.s*=ct.s,(x=_t.length)<(he=zt.length)&&(dt=_t,_t=zt,zt=dt,S=x,x=he,he=S),S=x+he,dt=[];S--;dt.push(0));for(Ct=_,Bt=J,S=he;--S>=0;){for(E=0,ke=zt[S]%Bt,Ue=zt[S]/Bt|0,R=S+(N=x);R>S;)E=((q=ke*(q=_t[--N]%Bt)+(M=Ue*q+(V=_t[N]/Bt|0)*ke)%Bt*Bt+dt[R]+E)/Ct|0)+(M/Bt|0)+Ue*V,dt[R--]=q%Ct;dt[R]=E}return E?++I:dt.splice(0,1),ma(v,dt,I)},be.negated=function(){var v=new de(this);return v.s=-v.s||null,v},be.plus=function(v,p){var E,I=this,S=I.s;if(p=(v=new de(v,p)).s,!S||!p)return new de(NaN);if(S!=p)return v.s=-p,I.minus(v);var R=I.e/T,N=v.e/T,M=I.c,x=v.c;if(!R||!N){if(!M||!x)return new de(S/0);if(!M[0]||!x[0])return x[0]?v:new de(M[0]?I:0*S)}if(R=H(R),N=H(N),M=M.slice(),S=R-N){for(S>0?(N=R,E=x):(S=-S,E=M),E.reverse();S--;E.push(0));E.reverse()}for((S=M.length)-(p=x.length)<0&&(E=x,x=M,M=E,p=S),S=0;p;)S=(M[--p]=M[p]+x[p]+S)/_|0,M[p]=_===M[p]?0:M[p]%_;return S&&(M=[S].concat(M),++N),ma(v,M,N)},be.precision=be.sd=function(v,p){var E,I,S,R=this;if(v!=null&&v!==!!v)return j(v,1,K),p==null?p=Rt:j(p,0,8),yt(new de(R),v,p);if(!(E=R.c))return null;if(I=(S=E.length-1)*T+1,S=E[S]){for(;S%10==0;S/=10,I--);for(S=E[0];S>=10;S/=10,I++);}return v&&R.e+1>I&&(I=R.e+1),I},be.shiftedBy=function(v){return j(v,-9007199254740991,B),this.times("1e"+v)},be.squareRoot=be.sqrt=function(){var v,p,E,I,S,R=this,N=R.c,M=R.s,x=R.e,q=Ot+4,V=new de("0.5");if(M!==1||!N||!N[0])return new de(!M||M<0&&(!N||N[0])?NaN:N?R:1/0);if((M=Math.sqrt(+Dn(R)))==0||M==1/0?(((p=F(N)).length+x)%2==0&&(p+="0"),M=Math.sqrt(+p),x=H((x+1)/2)-(x<0||x%2),E=new de(p=M==1/0?"5e"+x:(p=M.toExponential()).slice(0,p.indexOf("e")+1)+x)):E=new de(M+""),E.c[0]){for((M=(x=E.e)+q)<3&&(M=0);;)if(S=E,E=V.times(S.plus(y(R,S,q,1))),F(S.c).slice(0,M)===(p=F(E.c)).slice(0,M)){if(E.e<x&&--M,(p=p.slice(M-3,M+1))!="9999"&&(I||p!="4999")){+p&&(+p.slice(1)||p.charAt(0)!="5")||(yt(E,E.e+Ot+2,1),v=!E.times(E).eq(R));break}if(!I&&(yt(S,S.e+Ot+2,0),S.times(S).eq(R))){E=S;break}q+=4,M+=4,I=1}}return yt(E,E.e+Ot+1,Rt,v)},be.toExponential=function(v,p){return v!=null&&(j(v,0,K),v++),Br(this,v,p,1)},be.toFixed=function(v,p){return v!=null&&(j(v,0,K),v=v+this.e+1),Br(this,v,p)},be.toFormat=function(v,p,E){var I,S=this;if(E==null)v!=null&&p&&typeof p=="object"?(E=p,p=null):v&&typeof v=="object"?(E=v,v=p=null):E=Dr;else if(typeof E!="object")throw Error(m+"Argument not an object: "+E);if(I=S.toFixed(v,p),S.c){var R,N=I.split("."),M=+E.groupSize,x=+E.secondaryGroupSize,q=E.groupSeparator||"",V=N[0],he=N[1],ke=S.s<0,Ue=ke?V.slice(1):V,dt=Ue.length;if(x&&(R=M,M=x,x=R,dt-=R),M>0&&dt>0){for(R=dt%M||M,V=Ue.substr(0,R);R<dt;R+=M)V+=q+Ue.substr(R,M);x>0&&(V+=q+Ue.slice(R)),ke&&(V="-"+V)}I=he?V+(E.decimalSeparator||"")+((x=+E.fractionGroupSize)?he.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+(E.fractionGroupSeparator||"")):he):V}return(E.prefix||"")+I+(E.suffix||"")},be.toFraction=function(v){var p,E,I,S,R,N,M,x,q,V,he,ke,Ue=this,dt=Ue.c;if(v!=null&&(!(M=new de(v)).isInteger()&&(M.c||M.s!==1)||M.lt(sn)))throw Error(m+"Argument "+(M.isInteger()?"out of range: ":"not an integer: ")+Dn(M));if(!dt)return new de(Ue);for(p=new de(sn),q=E=new de(sn),I=x=new de(sn),ke=F(dt),R=p.e=ke.length-Ue.e-1,p.c[0]=U[(N=R%T)<0?T+N:N],v=!v||M.comparedTo(p)>0?R>0?p:q:M,N=fn,fn=1/0,M=new de(ke),x.c[0]=0;V=y(M,p,0,1),(S=E.plus(V.times(I))).comparedTo(v)!=1;)E=I,I=S,q=x.plus(V.times(S=q)),x=S,p=M.minus(V.times(S=p)),M=S;return S=y(v.minus(E),I,0,1),x=x.plus(S.times(q)),E=E.plus(S.times(I)),x.s=q.s=Ue.s,he=y(q,I,R*=2,Rt).minus(Ue).abs().comparedTo(y(x,E,R,Rt).minus(Ue).abs())<1?[q,I]:[x,E],fn=N,he},be.toNumber=function(){return+Dn(this)},be.toPrecision=function(v,p){return v!=null&&j(v,1,K),Br(this,v,p,2)},be.toString=function(v){var p,E=this,I=E.s,S=E.e;return S===null?I?(p="Infinity",I<0&&(p="-"+p)):p="NaN":(v==null?p=S<=dn||S>=Lr?L(F(E.c),S):G(F(E.c),S,"0"):v===10&&br?p=G(F((E=yt(new de(E),Ot+S+1,Rt)).c),E.e,"0"):(j(v,2,pn.length,"Base"),p=w(G(F(E.c),S,"0"),10,v,I,!0)),I<0&&E.c[0]&&(p="-"+p)),p},be.valueOf=be.toJSON=function(){return Dn(this)},be._isBigNumber=!0,be[Symbol.toStringTag]="BigNumber",be[Symbol.for("nodejs.util.inspect.custom")]=be.valueOf,h!=null&&de.set(h),de}();const z={ROUNDING_MODE:W.ROUND_DOWN};function ae(d){return new TextEncoder().encode(d)}function Ee(d){return typeof d=="string"?Ee(ve(d)):new TextDecoder().decode(d)}W.config(z);const pe="UNKNOWN_ERROR",le="INVALID_ARGUMENT";function $(d,h=pe,y={}){const w=[];Object.keys(y).forEach(Q=>{try{w.push(Q+"="+JSON.stringify(y[Q]))}catch{w.push(Q+"="+JSON.stringify(y[Q].toString()))}});const O=d;w.length&&(d+=" ("+w.join(", ")+")");const P=new Error(d);return P.reason=O,P.code=h,Object.keys(y).forEach(function(Q){P[Q]=y[Q]}),P}function ve(d){if(typeof d!="string")throw new Error("hexToBytes only accept strings, got: "+typeof d);if(d.substr(0,2)==="0x")return ve(d.substr(2));const h=new Uint8Array(Math.ceil(d.length/2));let y=0;for(let w=0;w<d.length;w+=2){const O=parseInt(d.substr(w,2),16);if(isNaN(O))throw new Error("Cannot read hex string:"+JSON.stringify(d));h[y]=O,y++}return h}function ge(d){return Array.from(d).map(h=>h.toString(16).padStart(2,"0")).join("")}function fe(d,h){if(typeof d=="string"){if(h&&h.encoding==="hex"&&typeof d=="string"){let y=d;y.length>2&&y.substr(0,2)==="0x"&&(y=y.substr(2));const w=ve(y);return c.keccak256(w)}return c.keccak256(ae(d))}return c.keccak256(d)}const Se={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function Xe(d,h,y){return new Array(h-d.length+1).join(y||"0")+d}function ce(d){let h="",y=0;const w=d.length;for(d.substring(0,2)==="0x"&&(y=2);y<w;y+=2){const O=parseInt(d.substr(y,2),16);h+=String.fromCharCode(O)}return h}function He(d){return qn(d)&&d.name&&d.name.indexOf("(")!==-1?d.name:d.name+"("+vt(!1,d.inputs||[]).join(",")+")"}function Et(...d){const h=d.reduce((O,P)=>O+P.length,0),y=new Uint8Array(h);let w=0;for(const O of d)y.set(O,w),w+=O.length;return y}function vt(d,h){const y=[];return h.forEach(function(w){if(typeof w.components=="object"){if(w.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let O="";const P=w.type.indexOf("[");P>=0&&(O=w.type.substring(P));const Q=vt(d,w.components);y.push("("+Q.join(",")+")"+O)}else y.push(w.type)}),y}function tn(d){const h=d.indexOf("("),y=d.indexOf(")");return h!==-1&&y!==-1?d.substr(0,h):d}function nn(d){const h=d.indexOf("("),y=d.indexOf(")");return h!==-1&&y!==-1?d.substr(h+1,y-h-1).replace(" ",""):""}function Gn(d){return d==null?d:Lt(d).toNumber()}function Ne(d){return Lt(d).toNumber()}function pt(d){return Nr(d)?d.toString(10):""+d}function gt(d){return typeof d=="string"&&!d.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(d)?"0x"+d:Je(d)}function Wt(d){if(typeof d=="string")return d.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(d)?Je(d):"0x"+ge(ae(d));if(d instanceof Uint8Array)return"0x"+ge(d);throw new Error(`toStringData: Error trying to convert ${d} (${typeof d}) to a hex string.`)}function nt(d){return typeof d=="boolean"?d:Lt(d).toNumber()!==0}function rt(d){const h=Lt(d),y=h.toString(16);return h.isLessThan(0)?"-0x"+y.substr(1):"0x"+y}function Je(d){if(Mr(d))return rt(+d);if(Nr(d))return rt(d);if(la(d)){const h=d;if(h.indexOf("-0x")===0)return rt(h);if(h.indexOf("0x")===0)return h;if(!isFinite(h))return ge(ae(h))}if(d instanceof Uint8Array)return"0x"+ge(d);if($n(d)||qn(d))throw new Error("toHex can only be called with scalar values, not objects or arrays");return rt(d)}function yn(d){const h=d?d.toLowerCase():"ether",y=Se[h];if(y===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(Se,null,2));return new W(y,10)}function Lt(d){let h=d||0;return Nr(h)?h:(typeof h=="string"&&(h=h.trim()),typeof h!="string"||h.indexOf("0x")!==0&&h.indexOf("-0x")!==0?h instanceof Uint8Array?new W(ge(h),16):new W(h,10):new W(h.replace("0x","").toLowerCase(),16))}function ti(d){return new W(new Array(d).fill("1").join(""),2)}function Qe(d,h=256){const y=Lt(d).integerValue();return y.isLessThan(0)?ti(h).plus(y).plus(1):y}function rn(d,h){return Xe(d.toString(2),h,"0")[0]==="1"}function et(d){if(typeof d!="string")throw $("invalid address",le,{arg:"address",value:d});if(d.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return d.trim().substring(0,2)!=="0x"&&(d="0x"+d),bs(d);throw $("invalid address",le,{arg:"address",value:d})}function Dt(d,h=256){if(rn(d,h)){const y=ti(h);return d.minus(y).minus(1)}return d}function ot(d){return/^0x[0-9a-f]{40}$/i.test(d)}function Ln(d){return!!/^(0x)?[0-9a-f]{40}$/i.test(d)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(d)&&!/^(0x)?[0-9A-F]{40}$/.test(d))||_s(d))}function _s(d){const h=d.replace("0x",""),y=fe(h.toLowerCase());for(let w=0;w<40;w++)if(parseInt(y[w],16)>7&&h[w].toUpperCase()!==h[w]||parseInt(y[w],16)<=7&&h[w].toLowerCase()!==h[w])return!1;return!0}function bs(d){if(d===void 0)return"";const h=d.toLowerCase().replace("0x",""),y=fe(h);let w="0x";for(let O=0;O<h.length;O++)parseInt(y[O],16)>7?w+=h[O].toUpperCase():w+=h[O];return w}function An(d){if(!Array.isArray(d))throw new Error(`Value was not an array: ${JSON.stringify(d)}`);return d}function Pi(d){return ot(d)?d:/^[0-9a-f]{40}$/.test(d)?"0x"+d:"0x"+Xe(Je(d).substr(2),40)}function Nr(d){return d instanceof W}function la(d){return typeof d=="string"||d&&d.constructor&&d.constructor.name==="String"}function qn(d){return d!==null&&!Array.isArray(d)&&typeof d=="object"}function Mr(d){return typeof d=="boolean"}function $n(d){return Array.isArray(d)}var da,ni;function Es(d,h){if(!d)throw new Error("jsonrpc method should be specified!");if(typeof d!="string")throw new Error(`jsonrpc must be a string, got ${typeof d}!`);return n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:d,params:h||[]}}function vs(d){return Array.isArray(d)?d.every(h):h(d);function h(y){return!!y&&(y.error===void 0||y.error===null)&&y.jsonrpc==="2.0"&&y.id!==null&&"result"in y&&y.result!==void 0}}n.TransactionStatus=void 0,(da=n.TransactionStatus||(n.TransactionStatus={})).pending="pending",da.confirmed="confirmed",da.failed="failed",n.TransactionType=void 0,(ni=n.TransactionType||(n.TransactionType={})).queued="queued",ni.dropped="dropped",ni.replaced="replaced",ni.pending="pending",ni.reverted="reverted",ni.confirmed="confirmed",n.messageId=0;function fa(d){return Lt(d)}function Ss(d){return d==="latest"||d==="pending"||d==="earliest"}function gr(d){return d===void 0?"latest":bt(d)}function bt(d){return d==null?null:Ss(d)?d:Je(d)}function Wn(d){return d.from&&(d.from=ee(d.from)),d.to&&(d.to=ee(d.to)),d.gasPrice!==void 0&&(d.gasPrice=rt(d.gasPrice)),d.gas!==void 0&&(d.gas=rt(d.gas)),d.value!==void 0&&(d.value=rt(d.value)),d.nonce!==void 0&&(d.nonce=rt(d.nonce)),d.data&&!d.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(d.data)&&(d.data="0x"+d.data),d}function er(d){if(typeof d!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(d));if(d.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(d));if(d.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(d));return d}function C(d){if(typeof d!="object")throw new Error("Did not provide transaction options");if(!d.from)throw new Error('Missing "from" in transaction options');return d.from=ee(d.from),d.to&&(d.to=ee(d.to)),d.gasPrice!==void 0&&(d.gasPrice=rt(d.gasPrice)),d.gas!==void 0&&(d.gas=rt(d.gas)),d.value!==void 0&&(d.value=rt(d.value)),d.nonce!==void 0&&(d.nonce=rt(d.nonce)),d.data&&!d.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(d.data)&&(d.data="0x"+d.data),d}function b(d){return d?(d.blockNumber!==null&&(d.blockNumber=Ne(d.blockNumber)),d.transactionIndex!==null&&(d.transactionIndex=Ne(d.transactionIndex)),d.nonce=Ne(d.nonce),d.gas=Ne(d.gas),d.gasPrice=Lt(d.gasPrice),d.value=Lt(d.value),d):null}function A(d){return d?(d.blockNumber!==null&&(d.blockNumber=Ne(d.blockNumber)),d.transactionIndex!==null&&(d.transactionIndex=Ne(d.transactionIndex)),d.cumulativeGasUsed=Ne(d.cumulativeGasUsed),d.gasUsed=Ne(d.gasUsed),d.logs&&$n(d.logs)&&(d.logs=d.logs.map(function(h){return Y(h)})),d.status=Ne(d.status||""),d):null}function D(d){return d?(d.gasLimit=Ne(d.gasLimit),d.gasUsed=Ne(d.gasUsed),d.size=Ne(d.size),d.timestamp=Ne(d.timestamp),d.number!==null&&(d.number=Ne(d.number)),d.difficulty=Lt(d.difficulty),d.totalDifficulty=Lt(d.totalDifficulty),$n(d.transactions)&&d.transactions.forEach(function(h,y){la(h)||(d.transactions[y]=b(h)||d.transactions[y])}),d):null}function Y(d){return d&&(d.blockNumber&&(d.blockNumber=Ne(d.blockNumber)),d.transactionIndex&&(d.transactionIndex=Ne(d.transactionIndex)),d.logIndex&&(d.logIndex=Ne(d.logIndex)),d)}function ee(d){if(ot(d))return d;if(Ln(d))return"0x"+d;throw new Error(`Invalid address: ${JSON.stringify(d)}`)}function me(d){return d}function _e(d){return d&&(d.startingBlock=Ne(d.startingBlock),d.currentBlock=Ne(d.currentBlock),d.highestBlock=Ne(d.highestBlock),d.knownStates&&(d.knownStates=Ne(d.knownStates),d.pulledStates=Ne(d.pulledStates)),d)}function De(d){if(d===null)throw $("cannot convert null value to array",le,{arg:"value",value:d});if(d instanceof Uint8Array)return new Uint8Array(d);if(typeof d=="string"){const h=d.match(/^(0x)?[0-9a-fA-F]*$/);if(!h)throw $("invalid hexidecimal string",le,{arg:"value",value:d});if(h[1]!=="0x")throw $("hex string must have 0x prefix",le,{arg:"value",value:d});(d=d.substring(2)).length%2&&(d="0"+d);const y=[];for(let w=0;w<d.length;w+=2)y.push(parseInt(d.substr(w,2),16));return new Uint8Array(y)}if(function(h){if(!h||parseInt(String(h.length))!==h.length||typeof h=="string")return!1;for(let y=0;y<h.length;y++){const w=h[y];if(w<0||w>=256||parseInt(String(w))!==w)return!1}return!0}(d))return new Uint8Array(d);throw $("invalid arrayify value",void 0,{arg:"value",value:d,type:typeof d})}function Me(d,h,y){Object.defineProperty(d,h,{enumerable:!0,value:y,writable:!1})}const ze=new W(-1),ut=new W(0),lt=new W(1),Vt=new W("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Ht(d){return function(h,y){function w(Q){return new Error('unexpected character "'+h[Q]+'" at position '+Q+' in "'+h+'"')}const O={type:"",name:"",state:{allowType:!0}};let P=O;for(let Q=0;Q<h.length;Q++){const ye=h[Q];switch(ye){case"(":if(!P.state.allowParams)throw w(Q);P.state.allowType=!1,P.type=an(P.type),P.components=[{type:"",name:"",parent:P,state:{allowType:!0}}],P=P.components[0];break;case")":delete P.state,P.name==="indexed"&&(P.indexed=!0,P.name=""),P.type=an(P.type);const Pe=P;if(P=P.parent,!P)throw w(Q);delete Pe.parent,P.state.allowParams=!1,P.state.allowName=!0,P.state.allowArray=!0;break;case",":delete P.state,P.name==="indexed"&&(P.indexed=!0,P.name=""),P.type=an(P.type);const Le={type:"",name:"",parent:P.parent,state:{allowType:!0}};P.parent.components.push(Le),delete P.parent,P=Le;break;case" ":P.state.allowType&&P.type!==""&&(P.type=an(P.type),delete P.state.allowType,P.state.allowName=!0,P.state.allowParams=!0),P.state.allowName&&P.name!==""&&(P.name==="indexed"?(P.indexed=!0,P.name=""):P.state.allowName=!1);break;case"[":if(!P.state.allowArray)throw w(Q);P.type+=ye,P.state.allowArray=!1,P.state.allowName=!1,P.state.readArray=!0;break;case"]":if(!P.state.readArray)throw w(Q);P.type+=ye,P.state.readArray=!1,P.state.allowArray=!0,P.state.allowName=!0;break;default:if(P.state.allowType)P.type+=ye,P.state.allowParams=!0,P.state.allowArray=!0;else if(P.state.allowName)P.name+=ye,delete P.state.allowArray;else{if(!P.state.readArray)throw w(Q);P.type+=ye}}}if(P.parent)throw new Error("unexpected eof");return delete O.state,P.name==="indexed"&&(P.indexed=!0,P.name=""),O.type=an(O.type),O}(d)}function an(d){return d.match(/^uint($|[^1-9])/)?d="uint256"+d.substring(4):d.match(/^int($|[^1-9])/)&&(d="int256"+d.substring(3)),d}const ri=new RegExp(/^bytes([0-9]*)$/),Pr=new RegExp(/^(u?int)([0-9]*)$/),ii=new RegExp(/^(.*)\[([0-9]*)\]$/),pa=function(d,h){const y=d.match(Pr);return y&&parseInt(y[2])<=48?h.toNumber():h};class On{constructor(h,y,w,O="",P){this.coerceFunc=h,this.name=y,this.type=w,this.localName=O,this.dynamic=P}}class ki extends On{constructor(h){super(h.coerceFunc,h.name,h.type,void 0,h.dynamic),Me(this,"coder",h)}encode(h){return this.coder.encode(h)}decode(h,y){return this.coder.decode(h,y)}}class Fh extends On{constructor(h,y){super(h,"null","",y,!1)}encode(h){return De([])}decode(h,y){if(y>h.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function Co(d,h){return new W(d.toString(2).substr(-h),2)}class xh extends On{constructor(h,y,w,O){const P=(w?"int":"uint")+8*y;super(h,P,P,O,!1),this.size=y,this.signed=w}encode(h){try{let y=Lt(h);if(this.signed){let O=Co(Vt,8*this.size-1);if(y.gt(O))throw new Error("out-of-bounds");if(O=O.plus(lt).multipliedBy(ze),y.lt(O))throw new Error("out-of-bounds")}else if(y.lt(ut)||y.gt(Co(Vt,8*this.size)))throw new Error("out-of-bounds");y=Co(Qe(y,8*this.size),8*this.size),this.signed&&(y=Qe(Dt(y,8*this.size),256));const w=Xe(Qe(y).toString(16),64);if(w.indexOf("NaN")!==-1)throw $("invalid number value, NaN",le,{arg:this.localName,coderType:this.name,value:h,v:y,twosComplement:Qe(y),twosComplement16:Qe(y).toString(16),pad:Xe(Qe(y).toString(16),64),size:this.size});return ve(w)}catch(y){throw $("invalid number value",le,{arg:this.localName,coderType:this.name,value:h,message:y.toString()})}}decode(h,y){if(h.length<y+32)throw $("insufficient data for "+this.name+" type",le,{arg:this.localName,coderType:this.name,value:Je(h.slice(y,y+32))});const w=32-this.size;let O=new W(ge(h.slice(y+w,y+32)),16);return O=this.signed?Dt(O,8*this.size):Co(O,8*this.size),{consumed:32,value:this.coerceFunc(this.name,O)}}}const kr=new xh(function(d,h){return h},32,!1,"none");class Hh extends On{constructor(h,y,w){const O="bytes"+y;super(h,O,O,w,!1),this.length=y}encode(h){const y=new Uint8Array(32);try{if(typeof h=="string"&&h.length%2!=0)throw new Error("hex string cannot be odd-length");const w=De(h);if(w.length>this.length)throw new Error("incorrect data length");y.set(w)}catch(w){throw $("invalid "+this.name+" value. Use hex strings or Uint8Array",le,{arg:this.localName,coderType:this.name,value:w.value||h,details:w.message})}return y}decode(h,y){if(h.length<y+32)throw $("insufficient data for "+this.name+" type",le,{arg:this.localName,coderType:this.name,value:Je(h.slice(y,y+32))});return{consumed:32,value:this.coerceFunc(this.name,h.slice(y,y+this.length))}}}function Uh(d){const h=32*Math.ceil(d.length/32),y=new Uint8Array(h-d.length);return Et(kr.encode(d.length),d,y)}function jh(d,h,y){if(d.length<h+32)throw $("insufficient data for dynamicBytes length",le,{arg:y,coderType:"dynamicBytes",value:Je(d.slice(h,h+32))});let w=kr.decode(d,h).value;try{w=w.toNumber()}catch(O){throw O("dynamic bytes count too large",le,{arg:y,coderType:"dynamicBytes",value:w.toString()})}if(d.length<h+32+w)throw $("insufficient data for dynamicBytes type",le,{arg:y,coderType:"dynamicBytes",value:Je(d.slice(h,h+32+w))});return{consumed:32+32*Math.ceil(w/32),value:d.slice(h+32,h+32+w)}}function No(d){return 32*Math.ceil(d/32)}function Vh(d,h){if(!Array.isArray(h)){if(!h||typeof h!="object")throw $("invalid tuple value",le,{coderType:"tuple",value:h});{const Pe=[];d.forEach(function(Le){Pe.push(h[Le.localName])}),h=Pe}}if(d.length!==h.length)throw $("types/value length mismatch",le,{coderType:"tuple",value:h});const y=[];d.forEach(function(Pe,Le){y.push({dynamic:Pe.dynamic,value:Pe.encode(h[Le])})});let w=0,O=0;y.forEach(function(Pe){Pe.dynamic?(w+=32,O+=No(Pe.value.length)):w+=No(Pe.value.length)});let P=0,Q=w;const ye=new Uint8Array(w+O);return y.forEach(function(Pe){Pe.dynamic?(ye.set(kr.encode(Q),P),P+=32,ye.set(Pe.value,Q),Q+=No(Pe.value.length)):(ye.set(Pe.value,P),P+=No(Pe.value.length))}),ye}class Xw extends Array{}class Jw extends On{constructor(h,y,w,O){super(h,"array",y.type+"["+(w>=0?w:"")+"]",O,w===-1||y.dynamic),this.coder=y,this.length=w}encode(h){if(!Array.isArray(h))throw $("expected array value",le,{arg:this.localName,coderType:"array",value:h});let y=this.length,w=new Uint8Array(0);y===-1&&(y=h.length,w=kr.encode(y)),function(P,Q,ye){if(ye||(ye=""),P<Q)throw $("missing argument"+ye,"MISSING_ARGUMENT",{count:P,expectedCount:Q});if(P>Q)throw $("too many arguments"+ye,"UNEXPECTED_ARGUMENT",{count:P,expectedCount:Q})}(y,h.length,"in coder array"+(this.localName?" "+this.localName:""));const O=[];for(let P=0;P<h.length;P++)O.push(this.coder);return Et(w,Vh(O,h))}decode(h,y){let w=0,O=this.length;if(O===-1){let ye;try{ye=kr.decode(h,y)}catch(Pe){throw $("insufficient data for dynamic array length",le,{arg:this.localName,coderType:"array",value:Pe.value})}try{O=ye.value.toNumber()}catch{throw $("array count too large",le,{arg:this.localName,coderType:"array",value:ye.value.toString()})}w+=ye.consumed,y+=ye.consumed}const P=[];for(let ye=0;ye<O;ye++)P.push(new ki(this.coder));const Q=function(ye,Pe,Le){const _n=Le;let Ut=0;const be=[];return ye.forEach(function(sn){let Ot;if(sn.dynamic){const Rt=kr.decode(Pe,Le);Ot=sn.decode(Pe,_n+Rt.value.toNumber()),Ot.consumed=Rt.consumed}else Ot=sn.decode(Pe,Le);Ot.value!==void 0&&be.push(Ot.value),Le+=Ot.consumed,Ut+=Ot.consumed}),{value:be,consumed:Ut}}(P,h,y);return Q.consumed+=w,Q.value=this.coerceFunc(this.type,Q.value),Q}}class Dl extends On{constructor(h,y,w){let O=!1;const P=[];y.forEach(function(Q){Q.dynamic&&(O=!0),P.push(Q.type)}),super(h,"tuple","tuple("+P.join(",")+")",w,O),this.coders=y}encode(h){return Vh(this.coders,h)}decode(h,y){const w=function(O,P,Q){const ye=Q;let Pe=0;const Le=new Xw;return O.forEach(function(_n){let Ut;if(_n.dynamic){const be=kr.decode(P,Q);Ut=_n.decode(P,ye+be.value.toNumber()),Ut.consumed=be.consumed}else Ut=_n.decode(P,Q);Ut.value!==void 0&&Le.push(Ut.value),Q+=Ut.consumed,Pe+=Ut.consumed}),O.forEach(function(_n,Ut){let be=_n.localName;be&&(be==="length"&&(be="_length"),Le[be]!==null&&Le[be]!==void 0||(Le[be]=Le[Ut]))}),{value:Le,consumed:Pe}}(this.coders,h,y);return w.value=this.coerceFunc(this.type,w.value),w}}const Zw={address:class extends On{constructor(d,h){super(d,"address","address",h,!1)}encode(d){const h=new Uint8Array(32),y=d.trim();if(!Ln(y))throw $("invalid address format",le,{arg:this.localName,coderType:"address",value:d});try{h.set(ve(ee(y)),12)}catch(w){throw $(`invalid address (${w.message})`,le,{arg:this.localName,coderType:"address",value:d})}return h}decode(d,h){if(d.length<h+32)throw $("insufficuent data for address type",le,{arg:this.localName,coderType:"address",value:Je(d.slice(h,h+32)),missingBytes:h+32-d.length});return{consumed:32,value:this.coerceFunc("address",et(Je(d.slice(h+12,h+32))))}}},bool:class extends On{constructor(d,h){super(d,"bool","bool",h,!1)}encode(d){return kr.encode(d?1:0)}decode(d,h){try{const y=kr.decode(d,h);return{consumed:y.consumed,value:this.coerceFunc("bool",!y.value.isZero())}}catch(y){throw y.reason==="insufficient data for uint256 type"?$("insufficient data for boolean type",le,{arg:this.localName,coderType:"boolean",value:y.value}):y}}},string:class extends On{constructor(d,h){super(d,"string","string",h,!0)}encode(d){if(typeof d!="string")throw $("invalid string value",le,{arg:this.localName,coderType:"string",value:d});return Uh(ae(d))}decode(d,h){const y=jh(d,h,this.localName);return y.value=this.coerceFunc("string",Ee(y.value)),y}},bytes:class extends On{constructor(d,h){super(d,"bytes","bytes",h,!0)}encode(d){try{return Uh(De(d))}catch(h){throw h("invalid bytes value",le,{arg:this.localName,coderType:"bytes",value:h.value})}}decode(d,h){const y=jh(d,h,this.localName);return y.value=this.coerceFunc("bytes",y.value),y}},function:class extends Hh{constructor(d,h){super(d,24,h)}}};function Mo(d,h){const y=Zw[h.type];if(y)return new y(d,h.name);let w=h.type.match(Pr);if(w){const O=parseInt(w[2]||"256");if(O===0||O>256||O%8!=0)throw $("invalid "+w[1]+" bit length",le,{arg:"param",value:h});return new xh(d,O/8,w[1]==="int",h.name)}if(w=h.type.match(ri),w){const O=parseInt(w[1]);if(O===0||O>32)throw $("invalid bytes length",le,{arg:"param",value:h});return new Hh(d,O,h.name)}if(w=h.type.match(ii),w){const O=Object.assign({},h),P=parseInt(w[2]||"-1");return O.type=w[1],new Jw(d,Mo(d,O),P,h.name)}if(h.type.substring(0,5)==="tuple")return function(O,P,Q){P||(P=[]);const ye=P.map(Pe=>Mo(O,Pe));return new Dl(O,ye,Q)}(d,h.components,h.name);if(h.type==="")return new Fh(d,h.name);throw $("invalid type",le,{arg:"type",value:h.type,fullType:h})}class Bl{constructor(h){(function(y,w){if(!(y instanceof w))throw $("missing new","MISSING_NEW",{name:w.name})})(this,Bl),h||(h=pa),Me(this,"coerceFunc",h)}encode(h,y){if(h.length!==y.length)throw $("types/values length mismatch",le,{count:{types:h.length,values:y.length},value:{types:h,values:y}});const w=h.map(O=>typeof O=="string"?Ht(O):O).map(O=>Mo(this.coerceFunc,O));return new Dl(this.coerceFunc,w,"_").encode(y)}decode(h,y){const w=h.map(O=>typeof O=="string"?Ht(O):O).map(O=>Mo(this.coerceFunc,O));return new Dl(this.coerceFunc,w,"_").decode(y,0).value}}const Gh=new Bl;var qh,Ie;function Ae(d,h,y,w){var O,P=arguments.length,Q=P<3?h:w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Q=Reflect.decorate(d,h,y,w);else for(var ye=d.length-1;ye>=0;ye--)(O=d[ye])&&(Q=(P<3?O(Q):P>3?O(h,y,Q):O(h,y))||Q);return P>3&&Q&&Object.defineProperty(h,y,Q),Q}function Oe(d,h){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(d,h)}n.coder=void 0,(qh=n.coder||(n.coder={})).encodeParams=function(d,h){return ge(Gh.encode(d,h))},qh.decodeParams=function(d,h){if(d.length>0&&(!h||h==="0x"||h==="0X"))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");return Gh.decode(d,ve("0x"+h.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class Be{constructor(h){this.callName=h.callName,this.params=h.params||0,this.inputFormatter=h.inputFormatter||null,this.outputFormatter=h.outputFormatter}validateArgs(h){if(h.length!==this.params)throw y=this.callName,w=h.length,O=this.params,new Error(`Invalid number of input parameters to RPC method "${y}" given: ${w}, expected: ${O}`);var y,w,O}formatInput(h){return this.inputFormatter?this.inputFormatter.map(function(y,w){return y?y(h[w]):h[w]}):h}formatOutput(h){return h!==null?this.outputFormatter(h):null}toPayload(h){const y=this.formatInput(h);return this.validateArgs(y),{method:this.callName,params:y}}async execute(h,...y){const w=this.toPayload(y);if(!h)throw new Error("Missing RequestManager in method#exec");const O=await h.sendAsync(w);return this.formatOutput(O)}}class Rn{constructor(h){this.getter=h.getter,this.outputFormatter=h.outputFormatter}formatOutput(h){return this.outputFormatter(h)}async execute(h,...y){const w=await h.sendAsync({method:this.getter,params:[]});return this.formatOutput(w)}}function Wh(d){return new Promise(h=>setTimeout(h,d))}n.eth=void 0,(Ie=n.eth||(n.eth={})).eth_getBalance=new Be({callName:"eth_getBalance",params:2,inputFormatter:[ee,gr],outputFormatter:fa}),Ie.eth_getStorageAt=new Be({callName:"eth_getStorageAt",params:3,inputFormatter:[ee,Je,gr],outputFormatter:gt}),Ie.eth_getCode=new Be({callName:"eth_getCode",params:2,inputFormatter:[ee,gr],outputFormatter:gt}),Ie.eth_getBlockByHash=new Be({callName:"eth_getBlockByHash",params:2,inputFormatter:[bt,function(d){return!!d}],outputFormatter:D}),Ie.eth_getBlockByNumber=new Be({callName:"eth_getBlockByNumber",params:2,inputFormatter:[bt,function(d){return!!d}],outputFormatter:D}),Ie.eth_getUncleByBlockHashAndIndex=new Be({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[bt,Je],outputFormatter:D}),Ie.eth_getUncleByBlockNumberAndIndex=new Be({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[bt,Je],outputFormatter:D}),Ie.eth_getBlockTransactionCountByHash=new Be({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[bt],outputFormatter:Ne}),Ie.eth_getBlockTransactionCountByNumber=new Be({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[bt],outputFormatter:Ne}),Ie.eth_getUncleCountByBlockHash=new Be({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[bt],outputFormatter:Ne}),Ie.eth_getUncleCountByBlockNumber=new Be({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[bt],outputFormatter:Ne}),Ie.eth_getTransactionByHash=new Be({callName:"eth_getTransactionByHash",params:1,inputFormatter:[er],outputFormatter:b}),Ie.eth_getTransactionByBlockHashAndIndex=new Be({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[bt,Je],outputFormatter:b}),Ie.eth_getTransactionByBlockNumberAndIndex=new Be({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[bt,Je],outputFormatter:b}),Ie.eth_getTransactionReceipt=new Be({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[er],outputFormatter:A}),Ie.eth_getTransactionCount=new Be({callName:"eth_getTransactionCount",params:2,inputFormatter:[ee,gr],outputFormatter:Ne}),Ie.eth_sendRawTransaction=new Be({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:gt}),Ie.web3_sha3=new Be({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:gt}),Ie.eth_sendTransaction=new Be({callName:"eth_sendTransaction",params:1,inputFormatter:[C],outputFormatter:gt}),Ie.eth_sign=new Be({callName:"eth_sign",params:2,inputFormatter:[ee,null],outputFormatter:gt}),Ie.eth_call=new Be({callName:"eth_call",params:2,inputFormatter:[Wn,gr],outputFormatter:gt}),Ie.eth_estimateGas=new Be({callName:"eth_estimateGas",params:1,inputFormatter:[Wn],outputFormatter:Ne}),Ie.eth_submitWork=new Be({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:nt}),Ie.eth_getWork=new Be({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:An}),Ie.eth_coinbase=new Rn({getter:"eth_coinbase",outputFormatter:Pi}),Ie.eth_mining=new Rn({getter:"eth_mining",outputFormatter:nt}),Ie.eth_hashrate=new Rn({getter:"eth_hashrate",outputFormatter:Ne}),Ie.eth_syncing=new Rn({getter:"eth_syncing",outputFormatter:_e}),Ie.eth_gasPrice=new Rn({getter:"eth_gasPrice",outputFormatter:fa}),Ie.eth_accounts=new Rn({getter:"eth_accounts",outputFormatter:An}),Ie.eth_blockNumber=new Rn({getter:"eth_blockNumber",outputFormatter:Ne}),Ie.eth_protocolVersion=new Rn({getter:"eth_protocolVersion",outputFormatter:Ne}),Ie.web3_clientVersion=new Rn({getter:"web3_clientVersion",outputFormatter:pt}),Ie.net_version=new Rn({getter:"net_version",outputFormatter:pt}),Ie.shh_version=new Be({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:Ne}),Ie.shh_post=new Be({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:nt}),Ie.personal_newAccount=new Be({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:Pi}),Ie.personal_importRawKey=new Be({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:Pi}),Ie.personal_sign=new Be({callName:"personal_sign",params:3,inputFormatter:[Wt,ee,null],outputFormatter:gt}),Ie.personal_ecRecover=new Be({callName:"personal_ecRecover",params:2,inputFormatter:[Wt,null],outputFormatter:Pi}),Ie.personal_unlockAccount=new Be({callName:"personal_unlockAccount",params:3,inputFormatter:[ee,null,Gn],outputFormatter:nt}),Ie.personal_sendTransaction=new Be({callName:"personal_sendTransaction",params:2,inputFormatter:[C,null],outputFormatter:gt}),Ie.personal_lockAccount=new Be({callName:"personal_lockAccount",params:1,inputFormatter:[ee],outputFormatter:nt}),Ie.personal_listAccounts=new Rn({getter:"personal_listAccounts",outputFormatter:An}),Ie.net_listening=new Rn({getter:"net_listening",outputFormatter:nt}),Ie.net_peerCount=new Rn({getter:"net_peerCount",outputFormatter:Ne}),Ie.eth_newFilter=new Be({callName:"eth_newFilter",params:1,inputFormatter:[me],outputFormatter:Je}),Ie.eth_getLogs=new Be({callName:"eth_getLogs",params:1,inputFormatter:[An],outputFormatter:An}),Ie.eth_newBlockFilter=new Be({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Je}),Ie.eth_newPendingTransactionFilter=new Be({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Je}),Ie.eth_uninstallFilter=new Be({callName:"eth_uninstallFilter",params:1,inputFormatter:[Je],outputFormatter:nt}),Ie.eth_getFilterLogs=new Be({callName:"eth_getFilterLogs",params:1,inputFormatter:[Je],outputFormatter:An}),Ie.eth_getFilterChanges=new Be({callName:"eth_getFilterChanges",params:1,inputFormatter:[Je],outputFormatter:An}),Ie.eth_submitHashrate=new Be({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:nt}),Ie.shh_newIdentity=new Be({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:gt}),Ie.shh_hasIdentity=new Be({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:nt}),Ie.shh_newGroup=new Be({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:gt}),Ie.shh_addToGroup=new Be({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:nt}),Ie.shh_newFilter=new Be({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Je}),Ie.shh_uninstallFilter=new Be({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:nt}),Ie.shh_getLogs=new Be({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:An}),Ie.shh_getFilterMessages=new Be({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:An}),Ie.shh_getFilterChanges=new Be({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:An}),Ie.shh_getMessages=new Be({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:An});function Re(d,h){const y=n.eth[h];if(!y)throw new Error(`Could not find the method/property named ${h.toString()}`);Object.defineProperty(d,h,{value:function(...w){return y.execute(this,...w)}})}class Te{constructor(h){this.provider=h,this.requests=new Map}async sendAsync(h){const y=await this.provider;if(!y)throw new Error("Provider not set or invalid");const w=Es(h.method,h.params),O=s();return this.requests.set(w.id,O),y.sendAsync(w,(P,Q)=>{this.requests.delete(w.id),P?O.reject(P):vs(Q)?O.resolve(Q.result):O.reject(function(ye){const Pe=ye&&ye.error&&ye.error.message?ye.error.message:"Invalid JSON RPC response: "+JSON.stringify(ye);return new Error(Pe)}(Q))}),O}setProvider(h){this.provider=h}async getConfirmedTransaction(h){const y=await this.waitForCompletion(h);if(this.isFailure(y))throw new Error(`Transaction "${h}" failed`);return y}async waitForCompletion(h,y){const w=er(h);if(await this.isTxDropped(w,y)){const O=await this.getTransactionAndReceipt(w);return Object.assign(Object.assign({},O),{status:n.TransactionStatus.failed})}for(;;){const O=await this.getTransactionAndReceipt(w);if(!this.isPending(O)&&O.receipt)return Object.assign(Object.assign({},O),{status:this.isFailure(O)?n.TransactionStatus.failed:n.TransactionStatus.confirmed});await Wh(2e3)}}async getTransaction(h){let y,w=null;const O=er(h);try{const Q=(await this.eth_accounts())[0];Q&&(w=await this.eth_getTransactionCount(Q,"latest"))}catch{w=null}try{if(y=await this.eth_getTransactionByHash(O),y===null)return null}catch{return null}if(y.blockNumber===null){if(w!==null){if(y.nonce<w)return{hash:O,type:n.TransactionType.replaced,nonce:y.nonce};if(y.nonce>w)return{hash:O,type:n.TransactionType.queued,nonce:y.nonce}}return Object.assign({type:n.TransactionType.pending},y)}let P;try{if(P=await this.eth_getTransactionReceipt(O),P===null||P.status===0)return Object.assign({type:n.TransactionType.reverted},y)}catch{return null}return Object.assign(Object.assign({type:n.TransactionType.confirmed},y),{receipt:P})}async isTxDropped(h,y=15){let w=y;for(;w>0;){if(await this.getTransactionAndReceipt(h)!==null)return!1;w-=1,await Wh(2e3)}return!0}async getTransactionAndReceipt(h){h=er(h);const[y,w]=await Promise.all([this.eth_getTransactionByHash(h),this.eth_getTransactionReceipt(h)]);return Object.assign(Object.assign({},y),{receipt:w})}isPending(h){return h&&h.blockNumber===null}isFailure(h){return h&&(!h.receipt||h.receipt.status===0)}}Ae([Re,Oe("design:type",Function)],Te.prototype,"web3_clientVersion",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"web3_sha3",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"net_version",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"net_peerCount",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"net_listening",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_protocolVersion",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_syncing",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_coinbase",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_mining",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_hashrate",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_gasPrice",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_accounts",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_blockNumber",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getBalance",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getStorageAt",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getTransactionCount",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getBlockTransactionCountByHash",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getBlockTransactionCountByNumber",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getUncleCountByBlockHash",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getUncleCountByBlockNumber",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getCode",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_sign",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_sendTransaction",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_sendRawTransaction",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_call",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_estimateGas",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getBlockByHash",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getBlockByNumber",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getTransactionByHash",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getTransactionReceipt",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getUncleByBlockHashAndIndex",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_newFilter",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_newBlockFilter",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_newPendingTransactionFilter",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_uninstallFilter",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getFilterChanges",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getFilterLogs",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getLogs",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_getWork",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_submitWork",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"eth_submitHashrate",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_post",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_version",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_newIdentity",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_hasIdentity",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_newGroup",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_addToGroup",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_newFilter",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_uninstallFilter",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_getFilterChanges",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"shh_getMessages",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"personal_unlockAccount",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"personal_newAccount",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"personal_listAccounts",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"personal_lockAccount",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"personal_importRawKey",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"personal_sendTransaction",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"personal_sign",void 0),Ae([Re,Oe("design:type",Function)],Te.prototype,"personal_ecRecover",void 0);class zh{constructor(h){this.json=h,this._inputTypes=h.inputs||[],this._outputTypes=h.outputs||[],this._constant=!!h.constant,this._payable=!!h.payable||h.stateMutability==="payable",this.needsToBeTransaction=this._payable||"constant"in h&&!h.constant||h.stateMutability==="nonpayable",this._name=He(h)}extractDefaultBlock(h){return h.length>this._inputTypes.length&&!qn(h[h.length-1])&&gr(h.pop())||"latest"}validateArgs(h){if(h.some(P=>P===void 0))throw new Error("Invalid call, some arguments are undefined");const y=h.filter(function(P){return!(qn(P)===!0&&$n(P)===!1&&Nr(P)===!1&&!(P instanceof Uint8Array))});if(y.length!==this._inputTypes.length)throw w=y.length,O=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${w}, expected: ${O}`);var w,O}toPayload(h){let y={to:void 0,data:void 0,value:void 0,from:void 0};h.length>this._inputTypes.length&&qn(h[h.length-1])&&(y=h.pop()),this.validateArgs(h);const w=this.signature();let O=n.coder.encodeParams(this._inputTypes,h);return O.indexOf("0x")===0&&(O=O.substr(2)),y.data="0x"+w+O,y}signature(){return fe(this._name).slice(0,8)}unpackOutput(h){if(!h)return;const y=h.length>=2?h.slice(2):h,w=n.coder.decodeParams(this._outputTypes,y);return w.length===1?w[0]:w}async execute(h,y,...w){if(!h)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const O=this.toPayload(w);if(O.to=y,O.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!O.from)throw new Error('Missing "from" in transaction options');return await h.eth_sendTransaction(O)}{const O=this.extractDefaultBlock(w),P=this.toPayload(w);P.to=y;const Q=await h.eth_call(P,O);return this.unpackOutput(Q)}}estimateGas(h,y,...w){if(!(h instanceof Te))throw new Error("estimateGas needs to receive a RequestManager as first argument");const O=this.toPayload(w);return O.to=y,h.eth_estimateGas(O)}displayName(){return tn(this._name)}typeName(){return nn(this._name)||"void"}attachToContract(h){const y=this.displayName(),w=Object.assign((...O)=>this.execute(h.requestManager,h.address,...O),{estimateGas:this.estimateGas.bind(this,h.requestManager,h.address),toPayload:(...O)=>this.toPayload(O),toRPCMessage:(...O)=>{const P=this.extractDefaultBlock(O),Q=this.toPayload(O);return Q.to=h.address,{method:"eth_call",params:[Q,P]}},unpackOutput:O=>this.unpackOutput(O)});h[y]||(h[y]=w),h[y][this.typeName()]=w}}function Yh(d){if(d==null)return null;const h=String(d).toString();return h.indexOf("0x")===0?h:ge(ae(h))}class Fl{constructor(h){this.requestManager=h,this.isStarted=!1,this.isDisposed=!1,this.formatter=y=>y,this.filterId=s(),this.callbacks=[],this.stopSemaphore=s()}async watch(h){if(this.isDisposed)throw new Error("The filter was disposed");h&&(this.callbacks.push(h),this.isStarted||await this.start())}async start(){if(this.isDisposed)throw new Error("The filter was disposed");if(!this.isStarted){this.isStarted=!0;try{const h=await this.getNewFilter();if(!h)throw new Error("Could not create a filter, response: "+JSON.stringify(h));this.filterId.resolve(h)}catch(h){throw h}this.stopSemaphore=s(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const h=await this.filterId;if(this.isStarted=!1,this.stopSemaphore&&await this.stopSemaphore,await this.uninstall()!==!0)throw new Error(`Couldn't stop the eth filter: ${h}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const y=await this.getChanges();y&&this.callbacks.forEach(w=>{this.formatter?y.forEach(O=>{w(this.formatter(O))}):y.forEach(O=>w(O))})}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=s(),setTimeout((h=()=>this.poll(),function(){h().catch(y=>console.error(y))}),500))}else this.stopSemaphore.resolve(1);var h}}class ws extends Fl{constructor(h,y,w=O=>O){super(h),this.requestManager=h,this.options=y,this.formatter=w,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map(function(O){return Yh(O)}),this.options={topics:this.options.topics,address:this.options.address?this.options.address:void 0,fromBlock:typeof this.options.fromBlock=="number"||typeof this.options.fromBlock=="string"?bt(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?bt(this.options.toBlock)||void 0:"latest"}}async getLogs(){this.isStarted||await this.start();const h=await this.filterId;return this.requestManager.eth_getFilterLogs(h)}async getNewFilter(){return this.requestManager.eth_newFilter(this.options)}async getChanges(){const h=await this.filterId;return this.requestManager.eth_getFilterChanges(h)}async uninstall(){const h=await this.filterId;return this.requestManager.eth_uninstallFilter(h)}}class xl{constructor(h,y,w){this.requestManager=h,this.address=w,this._anonymous=!1,this._params=y.inputs||[],this._name=He(y),this._anonymous=y.anonymous||!1}types(h){return this._params.filter(function(y){return y.indexed===h})}displayName(){return tn(this._name)}typeName(){return nn(this._name)||"void"}signature(){return fe(this._name)}encode(h={},y={}){const w={topics:[],address:this.address};y.fromBlock!==void 0&&(w.fromBlock=bt(y.fromBlock)||void 0),y.toBlock!==void 0&&(w.toBlock=bt(y.toBlock)||void 0),w.topics=w.topics||[],this._anonymous||w.topics.push("0x"+this.signature());const O=this._params.filter(function(P){return P.indexed===!0}).map(function(P){const Q=h[P.name];return Q==null?null:$n(Q)?Q.map(function(ye){return"0x"+n.coder.encodeParams([P],[ye])}):"0x"+n.coder.encodeParams([P],[Q])});return w.topics=w.topics.concat(O),w}decode(h){h.data=h.data||"",h.topics=h.topics||[];const y=(this._anonymous?h.topics:h.topics.slice(1)).map(function(ye){return ye.slice(2)}).join(""),w=n.coder.decodeParams(this.types(!0),y),O=h.data.slice(2),P=n.coder.decodeParams(this.types(!1),O),Q=this._params.reduce(function(ye,Pe){return ye[Pe.name]=Pe.indexed?w.shift():P.shift(),ye},{});return Object.assign(Object.assign({},Y(h)),{event:this.displayName(),address:h.address,args:Q})}async execute(h,y){const w=this.encode(h,y),O=this.decode.bind(this);return new ws(this.requestManager,w,O)}attachToContract(h){const y=this.execute.bind(this),w=this.displayName();h.events[w]||(h.events[w]=y),h.events[w][this.typeName()]=this.execute.bind(this,h)}}class Qw{constructor(h,y,w){this._requestManager=h,this._json=y,this._address=w}encode(h={}){const y={address:this._address};return h.fromBlock!==void 0&&(y.fromBlock=bt(h.fromBlock)||void 0),h.toBlock!==void 0&&(y.toBlock=bt(h.toBlock)||void 0),y}decode(h){h.data=h.data||"";const y=$n(h.topics)&&la(h.topics[0])?h.topics[0].slice(2):"",w=this._json.filter(function(O){return y===fe(He(O))})[0];return w?new xl(this._requestManager,w,this._address).decode(h):Y(h)}async execute(h){const y=this.encode(h),w=this.decode.bind(this);return new ws(this._requestManager,y,w)}getAllEventsFunction(){return this.execute.bind(this)}}class Kh{constructor(h,y,w){var O;this.requestManager=h,this.abi=y,this.address=w,this.events={},this.transactionHash=null,this.address=w,this.abi=y,(O=this).abi.filter(function(P){return P.type==="function"}).map(function(P){return new zh(P)}).forEach(function(P){P.attachToContract(O)}),this.allEvents=function(P){const Q=P.abi.filter(function(Pe){return Pe.type==="event"}),ye=new Qw(P.requestManager,Q,P.address);return Q.map(function(Pe){return new xl(P.requestManager,Pe,P.address)}).forEach(function(Pe){Pe.attachToContract(P)}),ye.getAllEventsFunction()}(this)}}n.AbstractFilter=Fl,n.BigNumber=W,n.Contract=Kh,n.ContractFactory=class{constructor(d,h){this.requestManager=d,this.abi=h}async deploy(...d){let h;const y=d[d.length-1];if(qn(y)&&!$n(y)&&(h=d.pop()),!h)throw new Error("Missing options object");if(!h.data||typeof h.data!="string")throw new Error("Invalid options.data");if(Ne(h.value)>0&&!(this.abi.filter(function(Le){return Le.type==="constructor"&&Le.inputs.length===d.length})[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const w=(O=this.abi,P=d,O.filter(function(Le){return Le.type==="constructor"&&Le.inputs&&Le.inputs.length===P.length}).map(function(Le){return Le.inputs||[]}).map(function(Le){return n.coder.encodeParams(Le,P)})[0]||"");var O,P;h.data+=w,h.gas||(h.gas=await this.requestManager.eth_estimateGas(h));const Q=await this.requestManager.eth_sendTransaction(h);if(!Q)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const ye=await async function(Le,_n){const Ut=s();let be=0;const sn=()=>{be++,be>50?Ut.reject(new Error("Contract transaction couldn't be found after 50 blocks")):Le.eth_getTransactionReceipt(_n).then(dn=>{dn&&dn.blockHash?Ut.resolve(dn):setTimeout(sn,1e3)},dn=>Ut.reject(dn))};sn();const Ot=await Ut,Rt=await Le.eth_getCode(Ot.contractAddress,"latest");if(Rt&&Rt.length>3)return Ot.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:Rt,receipt:Ot})}(this.requestManager,Q),Pe=await this.at(ye);return Pe.transactionHash=Q,Pe}async at(d){if(!Ln(d))throw new TypeError(`Invalid address ${JSON.stringify(d)}`);return new Kh(this.requestManager,this.abi,d)}},n.EthBlockFilter=class extends ws{constructor(d){super(d,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},n.EthFilter=ws,n.EthPendingTransactionFilter=class extends ws{constructor(d){super(d,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},n.HTTPProvider=class{constructor(d,h={}){this.host=d,this.options=h,this.debug=!1,this.host=d||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(d,h){try{let y=null;y=d instanceof Array?d.map(P=>r(P)):r(d);const w=this.options.fetch||globalThis.fetch;if(w===void 0)throw new Error("There is no global fetch object nor it was provided. Please install and import isomorphic-fetch");const O={body:JSON.stringify(y),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+O.body),w(this.host,O).then(async P=>{if(P.ok){const Q=await P.json();this.debug&&console.log("RECV << "+JSON.stringify(Q)),Q.error?h(Object.assign(new Error(Q.error.json||Q.error),Q.error)):h(null,Q)}else this.debug&&console.log("ERR << "+JSON.stringify(P)),h(new Error("External error. response code: "+P.status))},P=>{this.debug&&console.log("ERR << "+JSON.stringify(P)),h(P)})}catch(y){this.debug&&console.log("ERR << "+JSON.stringify(y)),h(y)}}},n.Method=Be,n.Property=Rn,n.RequestManager=Te,n.SHHFilter=class extends Fl{constructor(d,h){super(d),this.requestManager=d,this.options=h,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map(function(y){return Yh(y)}),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const d=await this.filterId;return this.requestManager.shh_getMessages(d)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const d=await this.filterId;return this.requestManager.shh_getFilterChanges(d)}async uninstall(){const d=await this.filterId;return this.requestManager.shh_uninstallFilter(d)}},n.SolidityEvent=xl,n.SolidityFunction=zh,n.WebSocketProvider=class{constructor(d,h={}){this.url=d,this.options=h,this.isDisposed=!1,this.responseCallbacks=new Map,this.notificationCallbacks=new Set,this.debug=!1,this.lastChunk="",this.connect()}dispose(){this.isDisposed=!0;const d=this.connection;this.timeout(new Error("Provider disposed.")),d.then(h=>h.close()).catch(h=>{this.debug&&console.error(h)})}send(){throw new Error("Sync requests are deprecated")}sendAsync(d,h){const y=[];let w;if(d instanceof Array)w=Promise.all(d.map(O=>{const P=s();try{const Q=r(O);y.push(Q),this.responseCallbacks.set(Q.id,P)}catch(Q){P.reject(Q)}return P}));else{const O=s();try{const P=r(d);y.push(P),this.responseCallbacks.set(P.id,O)}catch(P){O.reject(P)}w=O}w.then(O=>h(null,O),O=>h(O)),this.connection.then(O=>{y.forEach(P=>{const Q=JSON.stringify(P);this.debug&&console.log("SEND >> "+Q),O.send(Q)})},O=>{h(O)})}parseResponse(d){const h=[];return d.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(y=>{let w=y;this.lastChunk&&(w=this.lastChunk+w);let O=null;try{O=JSON.parse(w)}catch{return this.lastChunk=w,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout(()=>{this.timeout()},15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",O&&h.push(O)}),h}processMessage(d){if("id"in d){const h=d.id,y=this.responseCallbacks.get(h);if(!y)return void console.error("Error: Received a response for an unknown request",d);this.responseCallbacks.delete(h),d.error!==void 0&&d.error!==null?y.reject(Object.assign(new Error(d.error.message||d.error),d.error)):"result"in d&&y.resolve(d)}else this.notificationCallbacks.forEach(h=>h(null,d))}timeout(d){this.connection&&this.connection.isPending||(this.connection=s());const h=d||new Error("Connection timeout");this.responseCallbacks.forEach(y=>y.reject(h)),this.responseCallbacks.clear(),this.isDisposed||setTimeout(()=>this.connect(),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then(y=>y.close()).catch(y=>{this.debug&&console.error(y)}),this.connection&&this.connection.isPending||(this.connection=s()),this.lastChunk="";const d=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!d)throw new Error("Please provide a WebSocketConstructor");const h=new d(this.url,this.options.protocol);h.onopen=()=>{this.connection.resolve(h)},h.onerror=y=>{const w=new Error("Error in web socket");w.data=y,this.timeout(w)},h.onclose=y=>{this.timeout(new Error(`Connection closed (${y&&y.reason||"Unknown reason"})`))},h.onmessage=y=>{const w=typeof y.data=="string"?y.data:"";this.debug&&console.log("RECV << "+y.data),this.parseResponse(w).forEach(O=>{O instanceof Array?O.forEach(P=>this.processMessage(P)):this.processMessage(O)})}}},n.bytesToHex=ge,n.bytesToUtf8String=Ee,n.concatBytes=Et,n.default=Te,n.extractDisplayName=tn,n.extractTypeName=nn,n.fromAscii=function(d,h=0){let y="";for(let w=0;w<d.length;w++){const O=d.charCodeAt(w).toString(16);y+=O.length<2?"0"+O:O}return"0x"+y.padEnd(h,"0")},n.fromDecimal=rt,n.fromTwosComplement=Dt,n.fromWei=function(d,h){const y=Lt(d).dividedBy(yn(h));return Nr(d)?y:y.toString(10)},n.getAddress=et,n.getValueOfUnit=yn,n.hexToBytes=ve,n.inputAddressFormatter=ee,n.inputBlockNumberFormatter=bt,n.inputCallFormatter=Wn,n.inputDefaultBlockNumberFormatter=gr,n.inputFilterOptions=me,n.inputPostFormatter=function(d){return d?(d.ttl=rt(d.ttl),d.workToProve=rt(d.workToProve),d.priority=rt(d.priority),$n(d.topics)||(d.topics=d.topics?[d.topics]:[]),d.topics=d.topics.map(function(h){return h.indexOf("0x")===0?h:"0x"+ge(ae(h))}),d):null},n.inputTransactionFormatter=C,n.inputTransactionId=er,n.isAddress=Ln,n.isArray=$n,n.isBigNumber=Nr,n.isBloom=function(d){return!!/^(0x)?[0-9a-f]{512}$/i.test(d)&&!!/^(0x)?[0-9a-f]{512}$/i.test(d)},n.isBoolean=Mr,n.isChecksumAddress=_s,n.isFunction=function(d){return typeof d=="function"},n.isHex=function(d){return typeof d=="string"&&/^0x[0-9a-fA-F]+$/.test(d)},n.isJson=function(d){try{return!!JSON.parse(d)}catch{return!1}},n.isObject=qn,n.isPredefinedBlockNumber=Ss,n.isStrictAddress=ot,n.isString=la,n.isTopic=function(d){return!!/^(0x)?[0-9a-f]{64}$/i.test(d)&&!!/^(0x)?[0-9a-f]{64}$/i.test(d)},n.isValidResponse=vs,n.outputBigNumberFormatter=fa,n.outputBlockFormatter=D,n.outputLogFormatter=Y,n.outputPostFormatter=function(d){return d?(d.expiry=Ne(d.expiry),d.sent=Ne(d.sent),d.ttl=Ne(d.ttl),d.workProved=Ne(d.workProved),d.topics||(d.topics=[]),d.topics=d.topics.map(function(h){return ce(h)}),d):null},n.outputSyncingFormatter=_e,n.outputTransactionFormatter=b,n.outputTransactionReceiptFormatter=A,n.padLeft=Xe,n.padRight=function(d,h,y){return d+new Array(h-d.length+1).join(y||"0")},n.sha3=fe,n.signedIsNegative=rn,n.stringToUtf8Bytes=ae,n.toAddress=Pi,n.toArray=An,n.toAscii=ce,n.toBatchPayload=function(d){return d.map(function(h){return Es(h.method,h.params)})},n.toBigNumber=Lt,n.toBoolean=nt,n.toChecksumAddress=bs,n.toData=gt,n.toDecimal=Ne,n.toHex=Je,n.toJsonRpcRequest=Es,n.toNullDecimal=Gn,n.toString=pt,n.toStringData=Wt,n.toTwosComplement=Qe,n.toWei=function(d,h){const y=Lt(d).times(yn(h));return Nr(d)?y:y.toString(10)},n.transformToFullName=He,Object.defineProperty(n,"__esModule",{value:!0})})})(Jd,Jd.exports);var Wu=Jd.exports,zu={};Object.defineProperty(zu,"__esModule",{value:!0});zu.SignatureValidator=void 0;const aT=Wu;async function sT(e,t){const n=[{constant:!0,inputs:[{name:"hash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"magicValue",type:"bytes4"}],payable:!1,stateMutability:"view",type:"function"}];return await new aT.ContractFactory(e,n).at(t)}zu.SignatureValidator=sT;var b_={},E_={},v_={},S_={},w_={},ue={},tp=ie&&ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ue,"__esModule",{value:!0});ue.validateType=ue.generateLazyValidator=ue.Ajv=void 0;const T_=tp($w);ue.Ajv=T_.default;const oT=tp(eT),cT=tp(tT);function uT(e,t){let n=null;const r=(i,a)=>{if(!n){const s=new T_.default({$data:!0,allErrors:!0});(0,oT.default)(s),(0,cT.default)(s,{singleError:!0}),t?.forEach(o=>s.addKeyword(o)),n=s.compile(e),Object.defineProperty(r,"errors",{get(){return n?.errors}})}return n(i,a)};return r}ue.generateLazyValidator=uT;function lT(e,t){return e.validate(t)}ue.validateType=lT;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const t=ue;e.SCENE_UPDATE="SCENE_UPDATE",function(n){n.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.SceneUpdate||(e.SceneUpdate={}))})(w_);var I_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const t=ue;e.UPDATE="update",function(n){n.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.Update||(e.Update={}))})(I_);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(w_,e),n(I_,e)})(S_);var A_={},O_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const t=ue;(function(n){n.SCENE="scene",n.SMART_ITEM="smart-item",n.PORTABLE_EXPERIENCE="portable-experience",n.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.ProjectType||(e.ProjectType={}))})(O_);var R_={},eo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const t=ue;(function(n){n.UNIQUE="unique",n.MYTHIC="mythic",n.EXOTIC="exotic",n.LEGENDARY="legendary",n.EPIC="epic",n.RARE="rare",n.UNCOMMON="uncommon",n.COMMON="common"})(e.Rarity||(e.Rarity={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema);const r={[n.UNIQUE]:1,[n.MYTHIC]:10,[n.EXOTIC]:50,[n.LEGENDARY]:100,[n.EPIC]:1e3,[n.RARE]:5e3,[n.UNCOMMON]:1e4,[n.COMMON]:1e5},i={[n.UNIQUE]:"#FFE617",[n.MYTHIC]:"#FB7DE3",[n.EXOTIC]:"#E4FFB8",[n.LEGENDARY]:"#A657ED",[n.EPIC]:"#6397F2",[n.RARE]:"#3AD682",[n.UNCOMMON]:"#FF8563",[n.COMMON]:"#D4E0E0"},a={[n.UNIQUE]:"#FFB626",[n.MYTHIC]:"#FF63E1",[n.EXOTIC]:"#CAFF73",[n.LEGENDARY]:"#842DDA",[n.EPIC]:"#3D85E6",[n.RARE]:"#36CF75",[n.UNCOMMON]:"#ED6D4F",[n.COMMON]:"#ABC1C1"};function s(f){return r[f]}n.getMaxSupply=s;function o(f){return a[f]}n.getColor=o;function c(){return[n.UNIQUE,n.MYTHIC,n.EXOTIC,n.LEGENDARY,n.EPIC,n.RARE,n.UNCOMMON,n.COMMON]}n.getRarities=c;function u(f){return[i[f],a[f]]}n.getGradient=u}(e.Rarity||(e.Rarity={}))})(eo);var Ti={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const t=ue;(function(n){n.EYEBROWS="eyebrows",n.EYES="eyes",n.FACIAL_HAIR="facial_hair",n.HAIR="hair",n.BODY_SHAPE="body_shape",n.MOUTH="mouth",n.UPPER_BODY="upper_body",n.LOWER_BODY="lower_body",n.FEET="feet",n.EARRING="earring",n.EYEWEAR="eyewear",n.HAT="hat",n.HELMET="helmet",n.MASK="mask",n.TIARA="tiara",n.TOP_HEAD="top_head",n.SKIN="skin",n.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.WearableCategory||(e.WearableCategory={}))})(Ti);var Yu={},Ku={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const t=ue;(function(n){n.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",n.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.BodyShape||(e.BodyShape={}))})(Ku);var Xu={},np={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const t=ue;(function(n){n.HEAD="head",n.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.BodyPartCategory||(e.BodyPartCategory={}))})(np);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const t=Ti,n=ue,r=np;(function(i){i.schema={oneOf:[Object.assign({},t.WearableCategory.schema),Object.assign({},r.BodyPartCategory.schema)]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(Xu);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const t=ue,n=Ku,r=Xu;(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:r.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:r.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(Yu);var Ju={},C_={},rp={},Ii={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const t=ue;(function(n){n.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const r=(0,t.generateLazyValidator)(n.schema);n.validate=i=>r(i)})(e.Color3||(e.Color3={})),function(n){n.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const r=new RegExp(n.schema.pattern);n.validate=i=>r.test(i)}(e.EthAddress||(e.EthAddress={})),function(n){n.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const r=new RegExp(n.schema.pattern);n.validate=i=>r.test(i)}(e.IPFSv2||(e.IPFSv2={})),function(n){n.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const r=new RegExp(n.schema.pattern);n.validate=i=>r.test(i)}(e.IPFSv1||(e.IPFSv1={}))})(Ii);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const t=Ti,n=Ii,r=ue;var i;(function(c){c.schema={type:"object",required:["face256","body"],properties:{face256:n.IPFSv2.schema,body:n.IPFSv2.schema}},c.validate=(0,r.generateLazyValidator)(c.schema)})(i=e.Snapshots||(e.Snapshots={}));var a;(function(c){c.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:n.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:n.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:n.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:Object.assign(Object.assign({},i.schema),{nullable:!0})},additionalProperties:!0},c.validate=(0,r.generateLazyValidator)(c.schema)})(a=e.AvatarInfo||(e.AvatarInfo={}));var s;(function(c){c.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const u=new RegExp(c.schema.pattern,"i");c.validate=f=>u.test(f)})(s=e.LinkUrl||(e.LinkUrl={}));var o;(function(c){c.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:s.schema}}})(o=e.Link||(e.Link={})),function(c){c.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},nameColor:Object.assign(Object.assign({},n.Color3.schema),{nullable:!0}),description:{type:"string"},links:{type:"array",maxItems:5,items:o.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:n.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:a.schema},additionalProperties:!0},c.validate=(0,r.generateLazyValidator)(c.schema)}(e.Avatar||(e.Avatar={}))})(rp);var N_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const t=ue,n=rp;(function(r){r.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:n.Avatar.schema}},additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.Profile||(e.Profile={}))})(N_);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(rp,e),n(N_,e)})(C_);var M_={},ip={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const t=ue;e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],function(n){n.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.FeatureToggles||(e.FeatureToggles={}))})(ip);var ap={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const t=ue;(function(n){n.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(ap);var sp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const t=ue;(function(n){n.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},n.schemaValidator=(0,t.generateLazyValidator)(n.schema),n.validate=r=>n.schemaValidator(r)&&r.parcels.includes(r.base)})(e.SceneParcels||(e.SceneParcels={}))})(sp);var P_={},os={};Object.defineProperty(os,"__esModule",{value:!0});os.displayableProperties=void 0;os.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}};var op={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const t=ue;(function(n){n.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.Source||(e.Source={}))})(op);var cp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const t=ue;(function(n){n.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(cp);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const t=ue,n=os,r=ip,i=sp,a=op,s=cp,o=ap;var c;(function(u){u.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",u.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",u.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",u.USE_WEB3_API="USE_WEB3_API",u.USE_FETCH="USE_FETCH",u.USE_WEBSOCKET="USE_WEBSOCKET",u.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(c=e.RequiredPermission||(e.RequiredPermission={})),function(u){u.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},n.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},creator:{type:"string",nullable:!0,description:"Wallet address of the creator of the scene",pattern:"^(0x[a-fA-F0-9]{40})?$",errorMessage:"Creator must be a valid wallet address"},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},a.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:s.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(c)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},r.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},o.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:c.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},u.validate=(0,t.generateLazyValidator)(u.schema)}(e.Scene||(e.Scene={}))})(P_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var t=ip;Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return t.FeatureToggles}});var n=ap;Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return n.WorldConfiguration}});var r=sp;Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return r.SceneParcels}});var i=P_;Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var a=op;Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return a.Source}});var s=cp;Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return s.SpawnPoint}})})(M_);var Hl={},up={},lp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const t=ue;(function(n){n.EN="en",n.ES="es"})(e.Locale||(e.Locale={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.Locale||(e.Locale={}))})(lp);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const t=ue,n=lp;(function(r){r.schema={type:"object",properties:{code:n.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.I18N||(e.I18N={}))})(up);var dp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const t=ue;(function(n){n.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.Metrics||(e.Metrics={}))})(dp);var Zu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const t=eo,n=ue;e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:t.Rarity.schema};const r={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,n.generateLazyValidator)(r);function a(s){return i(s)}e.isStandard=a})(Zu);var Qu={},fp={},k_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const t=ue;(function(n){n.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.MerkleProof||(e.MerkleProof={}))})(k_);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(k_,e)})(fp);var $u={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const t=ue;var n;(function(l){l.SINGLE="single",l.ANY="any",l.MULTIPLE="multiple",l.RANGE="range"})(n=e.MappingType||(e.MappingType={}));var r;(function(l){l.MAINNET="mainnet",l.BASE_MAINNET="base_mainnet",l.BASE_SEPOLIA="base_sepolia",l.MONAD_MAINNET="monad_mainnet",l.MONAD_TESTNET="monad_testnet",l.APE_MAINNET="ape_mainnet",l.APE_CALDERA="ape_caldera",l.MATIC="matic",l.SEPOLIA="sepolia",l.AMOY="amoy"})(r=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(l){l.schema={type:"object",properties:{type:{type:"string",const:n.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},l.validate=(0,t.generateLazyValidator)(l.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var a;(function(l){l.schema={type:"object",properties:{type:{type:"string",const:n.ANY}},required:["type"],additionalProperties:!1},l.validate=(0,t.generateLazyValidator)(l.schema)})(a=e.AnyMapping||(e.AnyMapping={}));var s;(function(l){l._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(g,_){if(!_||!_.from||!_.to)return!1;let{to:T,from:B}=_;return(typeof B!="bigint"||typeof T!="bigint")&&(B=BigInt(B),T=BigInt(T)),B<=T},errors:!1},l.schema={type:"object",properties:{type:{type:"string",const:n.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},l.validate=(0,t.generateLazyValidator)(l.schema,[l._fromLessThanOrEqualTo])})(s=e.RangeMapping||(e.RangeMapping={}));var o;(function(l){l.schema={type:"object",properties:{type:{type:"string",const:n.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},l.validate=(0,t.generateLazyValidator)(l.schema)})(o=e.MultipleMapping||(e.MultipleMapping={}));var c;(function(l){l.schema={type:"object",properties:{type:{type:"string",enum:Object.values(n)}},required:["type"],oneOf:[i.schema,a.schema,s.schema,o.schema]},l.validate=(0,t.generateLazyValidator)(l.schema,[s._fromLessThanOrEqualTo])})(c=e.Mapping||(e.Mapping={})),function(l){l._isMappingsValid={keyword:"_isMappingsValid",validate:function(g,_){try{f(_)}catch{return!1}return!0},errors:!1},l.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:c.schema}},minProperties:1,required:[],additionalProperties:!1};const m=Object.values(r).reduce((g,_)=>(g[_]=l.innerSchema,g),{});l.schema={type:"object",properties:m,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},l.validate=(0,t.generateLazyValidator)(l.schema,[s._fromLessThanOrEqualTo,l._isMappingsValid])}(e.Mappings||(e.Mappings={}));class u extends Error{constructor(m,g,_){super(m),this.existingMapping=g,this.conflictingMapping=_}}e.AddMappingError=u;function f(l={}){const m={};for(const[F,k]of Object.entries(l)){m[F]={};for(const[j,te]of Object.entries(k))for(const L of te)K(F,j,L)}function g(){return JSON.parse(JSON.stringify(m))}function _(F,k,j){const te=BigInt(F);return te>=BigInt(k)&&te<=BigInt(j)}function T(F,k){switch(k.type){case n.SINGLE:return F.id===k.id;case n.MULTIPLE:return k.ids.includes(F.id);case n.RANGE:return _(F.id,k.from,k.to);default:return!1}}function B(F,k){switch(k.type){case n.SINGLE:return F.ids.includes(k.id);case n.MULTIPLE:return F.ids.some(j=>k.ids.includes(j));case n.RANGE:return F.ids.some(j=>_(j,k.from,k.to));default:return!1}}function U(F,k){switch(k.type){case n.SINGLE:return _(k.id,F.from,F.to);case n.MULTIPLE:return k.ids.some(j=>_(j,F.from,F.to));case n.RANGE:return BigInt(F.from)<=BigInt(k.to)&&BigInt(F.to)>=BigInt(k.from)}}function J(F,k){if(F.type===n.ANY||k.type===n.ANY)return!0;switch(F.type){case n.SINGLE:return T(F,k);case n.MULTIPLE:return B(F,k);case n.RANGE:return U(F,k)}}function K(F,k,j){var te,L;const G=k.toLowerCase();m[F]=(te=m[F])!==null&&te!==void 0?te:{},m[F][G]=(L=m[F][G])!==null&&L!==void 0?L:[];for(const W of m[F][G])if(J(W,j))throw new u(`Cannot add mapping to contract ${G} on network ${F} because it overlaps with existing mapping`,W,j);m[F][G].push(j)}function H(F,k,j){var te;return!((te=m[F])===null||te===void 0)&&te[k]?m[F][k].some(L=>{switch(L.type){case n.SINGLE:return L.id===j;case n.ANY:return!0;case n.MULTIPLE:return L.ids.includes(j);case n.RANGE:return BigInt(j)>=BigInt(L.from)&&BigInt(j)<=BigInt(L.to)}}):!1}return{addMapping:K,getMappings:g,includesNft:H}}e.createMappingsHelper=f})($u);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const t=ue,n=fp,r=$u;e.schema={type:"object",properties:{merkleProof:n.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},r.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(o,c){var u;const f=c;return!((u=f?.merkleProof)===null||u===void 0)&&u.hashingKeys?f.merkleProof.hashingKeys.every(l=>f.hasOwnProperty(l)):!1},errors:!1},a=(0,t.generateLazyValidator)(e.schema,[i,r.RangeMapping._fromLessThanOrEqualTo,r.Mappings._isMappingsValid]);function s(o){return a(o)}e.isThirdParty=s})(Qu);var L_={},D_={},ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.isBaseEmote=ar.isBaseAvatar=ar.requiredBaseItemProps=ar.baseItemProperties=void 0;const dT=up,fT=dp,pT=os;ar.baseItemProperties=Object.assign(Object.assign({},pT.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:dT.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},fT.Metrics.schema),{nullable:!0})});ar.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function hT(e){if(!e||!e.id)return!1;const t=e.id.split(":"),n=t[1]==="decentraland",r=t[3]==="base-avatars";return t.length===5&&n&&r}ar.isBaseAvatar=hT;function mT(e){if(!e||!e.id)return!1;const t=e.id.split(":");return t.length===5&&t[1]==="decentraland"&&t[3]==="base-emotes"}ar.isBaseEmote=mT;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const t=ue,n=Ti,r=Yu,i=ar,a=Zu,s=Qu,o=Xu,c=$u;(function(u){u.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),a.standardProperties),s.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:o.HideableWearableCategory.schema},hides:{type:"array",items:o.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:r.WearableRepresentation.schema,minItems:1},category:n.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const f={keyword:"_isThirdParty",validate:(m,g)=>!m||(0,s.isThirdParty)(g),errors:!1},l={keyword:"_isBaseAvatar",validate:(m,g)=>!m||(0,i.isBaseAvatar)(g),errors:!1};u.validate=(0,t.generateLazyValidator)(u.schema,[f,l,c.RangeMapping._fromLessThanOrEqualTo,c.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(D_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var t=Yu;Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return t.WearableRepresentation}});var n=D_;Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return n.Wearable}});var r=Ti;Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return r.WearableCategory}});var i=np;Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var a=Xu;Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return a.HideableWearableCategory}})})(L_);var Ul={},jl={},pp={},hp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const t=ue;(function(n){n.DANCE="dance",n.STUNT="stunt",n.GREETINGS="greetings",n.FUN="fun",n.POSES="poses",n.REACTIONS="reactions",n.HORROR="horror",n.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.EmoteCategory||(e.EmoteCategory={}))})(hp);var mp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const t=ue,n=Ku;(function(r){r.schema={type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(mp);var gp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutcomeGroup=e.StartAnimation=e.EmoteClip=e.ArmatureId=void 0;const t=ue;var n;(function(i){i.Armature="Armature",i.Armature_Prop="Armature_Prop",i.Armature_Other="Armature_Other"})(n=e.ArmatureId||(e.ArmatureId={})),function(i){i.schema={type:"string",enum:Object.values(i)},i.validate=(0,t.generateLazyValidator)(i.schema)}(n=e.ArmatureId||(e.ArmatureId={}));var r;(function(i){i.schema={type:"object",properties:{animation:{type:"string",minLength:1,errorMessage:"animation must be a non-empty string (GLB clip name)"}},required:["animation"],additionalProperties:!1,errorMessage:{required:{animation:"animation is required (GLB clip name)"}}},i.validate=(0,t.generateLazyValidator)(i.schema)})(r=e.EmoteClip||(e.EmoteClip={})),function(i){i.schema={type:"object",properties:{loop:{type:"boolean",errorMessage:"startAnimation.loop must be a boolean"},[n.Armature]:Object.assign(Object.assign({},r.schema),{errorMessage:"startAnimation.Armature is required and must contain valid animation data"}),[n.Armature_Prop]:Object.assign(Object.assign({},r.schema),{nullable:!0,errorMessage:"startAnimation.Armature_Prop must contain valid animation data when provided"}),audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["loop",n.Armature],additionalProperties:!1,errorMessage:{required:{loop:"startAnimation.loop is required",[n.Armature]:"startAnimation.Armature is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.StartAnimation||(e.StartAnimation={})),function(i){i.schema={type:"object",properties:{title:{type:"string",minLength:1,errorMessage:"outcome.title must be a non-empty string"},loop:{type:"boolean",errorMessage:"outcome.loop must be a boolean"},clips:{type:"object",properties:Object.values(n).reduce((a,s)=>(a[s]=Object.assign(Object.assign({},r.schema),{nullable:!0,errorMessage:`outcome.clips.${s} must contain valid animation data when provided`}),a),{}),additionalProperties:!0,minProperties:1,errorMessage:"outcome.clips must contain at least one armature animation"},audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["title","loop","clips"],additionalProperties:!1,errorMessage:{required:{title:"outcome.title is required",loop:"outcome.loop is required",clips:"outcome.clips is required"}}},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.OutcomeGroup||(e.OutcomeGroup={}))})(gp);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const t=hp,n=ue,r=mp,i=gp;(function(a){a.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:r.EmoteRepresentationADR74.schema,minItems:1},category:t.EmoteCategory.schema,loop:{type:"boolean"},startAnimation:Object.assign(Object.assign({},i.StartAnimation.schema),{nullable:!0}),randomizeOutcomes:{type:"boolean",nullable:!0},outcomes:{type:"array",items:i.OutcomeGroup.schema,minItems:1,maxItems:3,nullable:!0}},required:["category","tags","representations","loop"],dependencies:{startAnimation:["randomizeOutcomes","outcomes"],randomizeOutcomes:["startAnimation","outcomes"],outcomes:["startAnimation","randomizeOutcomes"]},additionalProperties:!0},a.validate=(0,n.generateLazyValidator)(a.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(pp);var Xh;function gT(){return Xh||(Xh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const t=x_(),n=ue,r=ar,i=Zu,a=Qu,s=pp;(function(o){o.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},r.baseItemProperties),i.standardProperties),a.schema.properties),{emoteDataADR74:s.EmoteDataADR74.schema}),additionalProperties:!0,required:[...r.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const c={keyword:"_isThirdParty",validate:(f,l)=>!f||(0,t.isThirdParty)(l),errors:!1},u={keyword:"_isBaseEmote",validate:(f,l)=>!f||(0,r.isBaseEmote)(l),errors:!1};o.validate=(0,n.generateLazyValidator)(o.schema,[c,u,t.RangeMapping._fromLessThanOrEqualTo,t.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))}(jl)),jl}var B_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const t=ue;(function(n){n.SIMPLE="simple",n.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.EmotePlayMode||(e.EmotePlayMode={}))})(B_);var F_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=void 0;const t=ue;(function(n){n.SIMPLE_OUTCOME="so",n.MULTIPLE_OUTCOME="mo",n.RANDOM_OUTCOME="ro"})(e.EmoteOutcomeType||(e.EmoteOutcomeType={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.EmoteOutcomeType||(e.EmoteOutcomeType={}))})(F_);var Jh;function yT(){return Jh||(Jh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=e.EmotePlayMode=e.EmoteCategory=e.StartAnimation=e.OutcomeGroup=e.EmoteClip=e.ArmatureId=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var t=gT();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return t.Emote}});var n=mp;Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return n.EmoteRepresentationADR74}});var r=pp;Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return r.EmoteDataADR74}});var i=gp;Object.defineProperty(e,"ArmatureId",{enumerable:!0,get:function(){return i.ArmatureId}}),Object.defineProperty(e,"EmoteClip",{enumerable:!0,get:function(){return i.EmoteClip}}),Object.defineProperty(e,"OutcomeGroup",{enumerable:!0,get:function(){return i.OutcomeGroup}}),Object.defineProperty(e,"StartAnimation",{enumerable:!0,get:function(){return i.StartAnimation}});var a=hp;Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return a.EmoteCategory}});var s=B_;Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return s.EmotePlayMode}});var o=F_;Object.defineProperty(e,"EmoteOutcomeType",{enumerable:!0,get:function(){return o.EmoteOutcomeType}})}(Ul)),Ul}var Zh;function x_(){return Zh||(Zh=1,function(e){var t=ie&&ie.__createBinding||(Object.create?function(u,f,l,m){m===void 0&&(m=l);var g=Object.getOwnPropertyDescriptor(f,l);(!g||("get"in g?!f.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return f[l]}}),Object.defineProperty(u,m,g)}:function(u,f,l,m){m===void 0&&(m=l),u[m]=f[l]}),n=ie&&ie.__exportStar||function(u,f){for(var l in u)l!=="default"&&!Object.prototype.hasOwnProperty.call(f,l)&&t(f,u,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var r=up;Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return r.I18N}});var i=lp;Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var a=dp;Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return a.Metrics}});var s=Ku;Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return s.BodyShape}});var o=Zu;Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return o.isStandard}});var c=Qu;Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return c.isThirdParty}}),n($u,e),n(L_,e),n(yT(),e)}(Hl)),Hl}var H_={},cs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const t=ue;var n;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(n=e.AuthLinkType||(e.AuthLinkType={}));var r;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(n)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:n.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,t.generateLazyValidator)(i.schema)})(r=e.AuthLink||(e.AuthLink={})),function(i){i.schema={type:"array",items:r.schema,minItems:1},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.AuthChain||(e.AuthChain={}))})(cs);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const t=Ii,n=cs,r=ue;(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:n.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,r.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:n.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:t.IPFSv1.schema}},{properties:{entityId:t.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,r.generateLazyValidator)(i.schema)}(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(H_);var yp={},_p={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const t=Ii,n=ue;(function(r){r.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]}},required:["file","hash"]},r.validate=(0,n.generateLazyValidator)(r.schema)})(e.ContentMapping||(e.ContentMapping={}))})(_p);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const t=Ii,n=_p,r=ue;(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[t.IPFSv1.schema,t.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:n.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,r.generateLazyValidator)(i.schema)}(e.Entity||(e.Entity={}))})(yp);var U_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const t=cs,n=ue;(function(r){r.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:t.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},r.validate=(0,n.generateLazyValidator)(r.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(U_);var j_={},V_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const t=Ti,n=Ii,r=ue;var i;(function(a){a.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:n.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:n.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:n.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:t.WearableCategory.schema}},additionalProperties:!0},a.validate=(0,r.generateLazyValidator)(a.schema)})(i=e.Outfit||(e.Outfit={})),function(a){a.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},a.validate=(0,r.generateLazyValidator)(a.schema)}(e.Outfits||(e.Outfits={}))})(V_);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(V_,e)})(j_);var G_={},bp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationOptOutScope=e.NotificationType=void 0,function(t){t.BADGE_GRANTED="badge_granted",t.BID_ACCEPTED="bid_accepted",t.BID_RECEIVED="bid_received",t.EVENTS_STARTED="events_started",t.EVENTS_STARTS_SOON="events_starts_soon",t.EVENT_CREATED="event_created",t.GOVERNANCE_ANNOUNCEMENT="governance_announcement",t.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",t.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",t.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",t.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",t.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",t.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",t.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",t.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",t.GOVERNANCE_TENDER_PASSED="governance_tender_passed",t.GOVERNANCE_WHALE_VOTE="governance_whale_vote",t.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",t.ITEM_SOLD="item_sold",t.ITEM_PUBLISHED="item_published",t.LAND_RENTAL_ENDED="rental_ended",t.LAND_RENTED="rental_started",t.REWARD_ASSIGNED="reward_assignment",t.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",t.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",t.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",t.REWARD_DELAYED="reward_delayed",t.REWARD_IN_PROGRESS="reward_in_progress",t.ROYALTIES_EARNED="royalties_earned",t.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",t.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",t.WORLDS_ACCESS_RESTORED="worlds_access_restored",t.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",t.WORLDS_MISSING_RESOURCES="worlds_missing_resources",t.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",t.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",t.CREDITS_GOAL_COMPLETED="credits_goal_completed",t.CREDITS_ON_DEMAND_GRANTED="credits_on_demand_granted",t.STREAMING_KEY_RESET="streaming_key_reset",t.STREAMING_KEY_REVOKE="streaming_key_revoke",t.STREAMING_KEY_EXPIRED="streaming_key_expired",t.STREAMING_TIME_EXCEEDED="streaming_time_exceeded",t.STREAMING_PLACE_UPDATED="streaming_place_updated",t.CREDITS_REMINDER_COMPLETE_GOALS="credits_reminder_complete_goals",t.CREDITS_REMINDER_CLAIM_CREDITS="credits_reminder_claim_credits",t.CREDITS_REMINDER_USAGE="credits_reminder_usage",t.CREDITS_REMINDER_USAGE_24_HOURS="credits_reminder_usage_24_hours",t.CREDITS_REMINDER_DO_NOT_MISS_OUT="credits_reminder_do_not_miss_out",t.CREDITS_NEW_SEASON_REMINDER="credits_new_season_reminder",t.REFERRAL_INVITED_USERS_ACCEPTED="referral_invited_users_accepted",t.REFERRAL_NEW_TIER_REACHED="referral_new_tier_reached",t.COMMUNITY_DELETED="community_deleted",t.COMMUNITY_DELETED_CONTENT_VIOLATION="community_deleted_content_violation",t.COMMUNITY_RENAMED="community_renamed",t.COMMUNITY_MEMBER_BANNED="community_member_banned",t.COMMUNITY_MEMBER_REMOVED="community_member_removed",t.COMMUNITY_REQUEST_TO_JOIN_RECEIVED="community_request_to_join_received",t.COMMUNITY_REQUEST_TO_JOIN_ACCEPTED="community_request_to_join_accepted",t.COMMUNITY_INVITE_RECEIVED="community_invite_received",t.COMMUNITY_OWNERSHIP_TRANSFERRED="community_ownership_transferred",t.COMMUNITY_POST_ADDED="community_post_added",t.COMMUNITY_VOICE_CHAT_STARTED="community_voice_chat_started",t.USER_BANNED_FROM_SCENE="user_banned_from_scene",t.USER_UNBANNED_FROM_SCENE="user_unbanned_from_scene",t.TRANSFER_RECEIVED="transfer_received",t.TIP_RECEIVED="tip_received",t.BANNED="banned",t.BAN_WARNING="ban_warning",t.BAN_LIFTED="ban_lifted"}(e.NotificationType||(e.NotificationType={})),function(t){t.COMMUNITY="community"}(e.NotificationOptOutScope||(e.NotificationOptOutScope={}))})(bp);var q_={},Ep={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const t=ue,n=bp,r={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(n.NotificationType).reduce((a,s)=>(a[s]=r,a),{});(function(a){a.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(n.NotificationType),additionalProperties:!1,properties:i}}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(Ep);var vp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,function(t){t.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const n=new RegExp(t.schema.pattern);t.validate=r=>n.test(r)}(e.Email||(e.Email={}))})(vp);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const t=ue,n=Ep,r=Ii,i=vp;(function(a){a.schema={type:"object",required:["address","details"],properties:{address:r.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:n.SubscriptionDetails.schema}},a.validate=(0,t.generateLazyValidator)(a.schema)})(e.Subscription||(e.Subscription={}))})(q_);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(bp,e),n(q_,e),n(Ep,e)})(G_);var W_={},mn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,function(t){(function(n){n.BLOCKCHAIN="blockchain",n.CATALYST_DEPLOYMENT="catalyst-deployment",n.WORLD="world",n.CLIENT="client",n.WEB="web",n.MARKETPLACE="marketplace",n.REWARDS="rewards",n.BADGE="badge",n.ASSET_BUNDLE="asset-bundle",n.SOCIAL_SERVICE="social-service",n.CREDITS_SERVICE="credits-service",n.STREAMING="streaming",n.COMMS="comms",n.REFERRAL="referral",n.COMMUNITY="community",n.CAMERA="camera",n.EVENT="event",n.GOVERNANCE="governance",n.MODERATION="moderation"})(t.Type||(t.Type={})),function(n){(function(r){r.BID_ACCEPTED="bid-accepted",r.ITEM_SOLD="item-sold",r.RENTAL_ENDED="land-rental-ended",r.RENTAL_STARTED="land-rental-started",r.ROYALTIES_EARNED="royalties-earned",r.COLLECTION_CREATED="collection-created",r.ITEM_PUBLISHED="item-published",r.TRANSFER_RECEIVED="transfer-received",r.TIP_RECEIVED="tip-received"})(n.Blockchain||(n.Blockchain={})),function(r){r.BID_RECEIVED="bid-received"}(n.Marketplace||(n.Marketplace={})),function(r){r.SCENE="scene",r.PROFILE="profile",r.WEARABLE="wearable",r.STORE="store",r.EMOTE="emote",r.OUTFITS="outfits"}(n.CatalystDeployment||(n.CatalystDeployment={})),function(r){r.DEPLOYMENT="deployment",r.WORLD_SETTINGS_CHANGED="world_settings_changed",r.WORLD_SCENES_UNDEPLOYMENT="world_scenes_undeployment",r.WORLD_UNDEPLOYMENT="world_undeployment",r.WORLD_SPAWN_COORDINATE_SET="world_spawn_coordinate_set",r.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",r.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",r.WORLDS_ACCESS_RESTORED="worlds_access_restored",r.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",r.WORLDS_MISSING_RESOURCES="worlds_missing_resources"}(n.Worlds||(n.Worlds={})),function(r){r.LOGGED_IN="logged-in",r.LOGGED_IN_CACHED="logged-in-cached",r.MOVE_TO_PARCEL="move-to-parcel",r.USED_EMOTE="used-emote",r.PASSPORT_OPENED="passport-opened",r.WALKED_DISTANCE="walked-distance",r.VERTICAL_HEIGHT_REACHED="vertical-height-reached"}(n.Client||(n.Client={})),function(r){r.AUTH_IDENTIFY="auth-identify"}(n.Web||(n.Web={})),function(r){r.REWARD_IN_PROGRESS="reward-in-progress",r.REWARD_ASSIGNED="reward-assigned",r.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",r.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",r.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",r.REWARD_DELAYED="reward-delayed"}(n.Rewards||(n.Rewards={})),function(r){r.GRANTED="badge-granted"}(n.Badge||(n.Badge={})),function(r){r.CONVERTED="converted",r.MANUALLY_QUEUED="manually-queued"}(n.AssetBundle||(n.AssetBundle={})),function(r){r.FRIENDSHIP_REQUEST="friendship-request",r.FRIENDSHIP_ACCEPTED="friendship-accepted"}(n.SocialService||(n.SocialService={})),function(r){r.CREDITS_GOAL_COMPLETED="credits-goal-completed",r.COMPLETE_GOALS_REMINDER="complete-goals-reminder",r.CLAIM_CREDITS_REMINDER="claim-credits-reminder",r.DO_NOT_MISS_OUT_REMINDER="do-not-miss-out-reminder",r.USAGE_REMINDER="usage-reminder",r.USAGE_24_HOURS_REMINDER="usage-24-hours-reminder",r.ON_DEMAND_CREDITS_GRANTED="on-demand-credits-granted",r.NEW_SEASON_REMINDER="new-season-reminder"}(n.CreditsService||(n.CreditsService={})),function(r){r.STREAMING_KEY_RESET="streaming-key-reset",r.STREAMING_KEY_REVOKE="streaming-key-revoke",r.STREAMING_KEY_EXPIRED="streaming-key-expired",r.STREAMING_TIME_EXCEEDED="streaming-time-exceeded",r.STREAMING_PLACE_UPDATED="streaming-place-updated",r.COMMUNITY_STREAMING_ENDED="community-streaming-ended"}(n.Streaming||(n.Streaming={})),function(r){r.USER_JOINED_ROOM="user-joined-room",r.USER_LEFT_ROOM="user-left-room",r.USER_BANNED_FROM_SCENE="user-banned-from-scene",r.USER_UNBANNED_FROM_SCENE="user-unbanned-from-scene"}(n.Comms||(n.Comms={})),function(r){r.REFERRAL_INVITED_USERS_ACCEPTED="referral-invited-users-accepted",r.REFERRAL_NEW_TIER_REACHED="referral-new-tier-reached"}(n.Referral||(n.Referral={})),function(r){r.DELETED="community-deleted",r.DELETED_CONTENT_VIOLATION="community-deleted-content-violation",r.RENAMED="community-renamed",r.MEMBER_BANNED="community-member-banned",r.MEMBER_LEFT="community-member-left",r.MEMBER_REMOVED="community-member-removed",r.REQUEST_TO_JOIN_RECEIVED="community-request-to-join-received",r.REQUEST_TO_JOIN_ACCEPTED="community-request-to-join-accepted",r.INVITE_RECEIVED="community-invite-received",r.OWNERSHIP_TRANSFERRED="community-ownership-transferred",r.POST_ADDED="community-post-added",r.VOICE_CHAT_STARTED="community-voice-chat-started"}(n.Community||(n.Community={})),function(r){r.PHOTO_TAKEN="photo-taken",r.PHOTO_PRIVACY_CHANGED="photo-privacy-changed"}(n.Camera||(n.Camera={})),function(r){r.EVENT_CREATED="event-created",r.EVENT_STARTS_SOON="event-starts-soon",r.EVENT_STARTED="event-started",r.EVENT_ENDED="event-ended"}(n.Event||(n.Event={})),function(r){r.PROPOSAL_ENACTED="governance_proposal_enacted",r.COAUTHOR_REQUESTED="governance_coauthor_requested",r.PITCH_PASSED="governance_pitch_passed",r.TENDER_PASSED="governance_tender_passed",r.AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",r.VOTING_ENDED_VOTER="governance_voting_ended_voter",r.NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",r.NEW_COMMENT_ON_PROJECT_UPDATED="governance_new_comment_on_project_update",r.WHALE_VOTE="governance_whale_vote",r.VOTED_ON_BEHALF="governance_voted_on_behalf",r.CLIFF_ENDED="governance_cliff_ended"}(n.Governance||(n.Governance={})),function(r){r.USER_BAN_CREATED="user-ban-created",r.USER_BAN_LIFTED="user-ban-lifted",r.USER_WARNING_CREATED="user-warning-created"}(n.Moderation||(n.Moderation={}))}(t.SubType||(t.SubType={}))}(e.Events||(e.Events={}))})(mn);var z_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TipReceivedEvent=e.TransferReceivedEvent=e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const t=ue,n=mn;(function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BLOCKCHAIN},subType:{type:"string",const:n.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BLOCKCHAIN},subType:{type:"string",const:n.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.ItemSoldEvent||(e.ItemSoldEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BLOCKCHAIN},subType:{type:"string",const:n.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BLOCKCHAIN},subType:{type:"string",const:n.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.RentalEndedEvent||(e.RentalEndedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BLOCKCHAIN},subType:{type:"string",const:n.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.RentalStartedEvent||(e.RentalStartedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BLOCKCHAIN},subType:{type:"string",const:n.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BLOCKCHAIN},subType:{type:"string",const:n.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BLOCKCHAIN},subType:{type:"string",const:n.Events.SubType.Blockchain.TRANSFER_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},tokenUri:{type:"string",nullable:!0}},required:["senderAddress","receiverAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.TransferReceivedEvent||(e.TransferReceivedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BLOCKCHAIN},subType:{type:"string",const:n.Events.SubType.Blockchain.TIP_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},amount:{type:"string"}},required:["senderAddress","receiverAddress","amount"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.TipReceivedEvent||(e.TipReceivedEvent={}))})(z_);var Y_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const t=cs,n=ue,r=yp,i=mn;(function(a){a.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:r.Entity.schema,authChain:t.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},a.validate=(0,n.generateLazyValidator)(a.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(Y_);var K_={};Object.defineProperty(K_,"__esModule",{value:!0});var X_={};Object.defineProperty(X_,"__esModule",{value:!0});var J_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const t=ue,n=mn;(function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.MARKETPLACE},subType:{type:"string",const:n.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(J_);var Z_={},ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.createEventSchema=void 0;function _T(e,t,n){return{type:"object",properties:{type:{type:"string",const:e},subType:{type:"string",const:t},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}ea.createEventSchema=_T;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const t=ue,n=mn,r=ea,i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},a={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(s){s.schema=(0,r.createEventSchema)(n.Events.Type.REWARDS,n.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),s.validate=(0,t.generateLazyValidator)(s.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),function(s){s.schema=(0,r.createEventSchema)(n.Events.Type.REWARDS,n.Events.SubType.Rewards.REWARD_ASSIGNED,i),s.validate=(0,t.generateLazyValidator)(s.schema)}(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),function(s){s.schema=(0,r.createEventSchema)(n.Events.Type.REWARDS,n.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,a),s.validate=(0,t.generateLazyValidator)(s.schema)}(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),function(s){s.schema=(0,r.createEventSchema)(n.Events.Type.REWARDS,n.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,a),s.validate=(0,t.generateLazyValidator)(s.schema)}(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),function(s){s.schema=(0,r.createEventSchema)(n.Events.Type.REWARDS,n.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,a),s.validate=(0,t.generateLazyValidator)(s.schema)}(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),function(s){s.schema=(0,r.createEventSchema)(n.Events.Type.REWARDS,n.Events.SubType.Rewards.REWARD_DELAYED,i),s.validate=(0,t.generateLazyValidator)(s.schema)}(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(Z_);var Q_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreditsClaimReminderEvent=e.CreditsDoNotMissOutReminderEvent=e.CreditsUsage24HoursReminderEvent=e.CreditsNewSeasonReminderEvent=e.CreditsUsageReminderEvent=e.CreditsCompleteGoalsReminderEvent=e.CreditsGoalCompletedEvent=e.CreditsOnDemandEvent=e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const t=ue,n=mn;(function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.BADGE},subType:{type:"string",const:n.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:n.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","statusCode","isLods","isWorld","version"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:n.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:n.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},message:{type:"string",nullable:!0}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:n.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:n.Events.SubType.CreditsService.ON_DEMAND_CREDITS_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creditsGranted:{type:"number",minimum:1},address:{type:"string"},granterAddress:{type:"string"}},required:["creditsGranted","address","granterAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CreditsOnDemandEvent||(e.CreditsOnDemandEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:n.Events.SubType.CreditsService.CREDITS_GOAL_COMPLETED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{goalId:{type:"string"},creditsObtained:{type:"number",minimum:0},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},address:{type:"string"}},required:["goalId","creditsObtained","seasonId","weekNumber","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CreditsGoalCompletedEvent||(e.CreditsGoalCompletedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:n.Events.SubType.CreditsService.COMPLETE_GOALS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},pendingGoalIds:{type:"array",items:{type:"string"},minItems:1}},required:["address","seasonId","weekNumber","pendingGoalIds"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CreditsCompleteGoalsReminderEvent||(e.CreditsCompleteGoalsReminderEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:n.Events.SubType.CreditsService.USAGE_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"},expirationDay:{type:"string"}},required:["address","creditsAmount","expirationDate","expirationDay"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CreditsUsageReminderEvent||(e.CreditsUsageReminderEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:n.Events.SubType.CreditsService.NEW_SEASON_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{addresses:{type:"array",items:{type:"string"}},seasonName:{type:"string"},startDate:{type:"string"},endDate:{type:"string"}},required:["addresses","seasonName","startDate","endDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CreditsNewSeasonReminderEvent||(e.CreditsNewSeasonReminderEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:n.Events.SubType.CreditsService.USAGE_24_HOURS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"}},required:["address","creditsAmount","expirationDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CreditsUsage24HoursReminderEvent||(e.CreditsUsage24HoursReminderEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:n.Events.SubType.CreditsService.DO_NOT_MISS_OUT_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CreditsDoNotMissOutReminderEvent||(e.CreditsDoNotMissOutReminderEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:n.Events.SubType.CreditsService.CLAIM_CREDITS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1}},required:["address","seasonId","weekNumber"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CreditsClaimReminderEvent||(e.CreditsClaimReminderEvent={}))})(Q_);var $_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityStreamingEndedEvent=e.StreamingPlaceUpdatedEvent=e.StreamingTimeExceededEvent=e.StreamingKeyExpiredEvent=e.StreamingKeyRevokeEvent=e.StreamingKeyResetEvent=void 0;const t=ue,n=mn,r=ea,i={type:"object",properties:{title:{type:"string"},description:{type:"string"},position:{type:"string"},worldName:{type:"string",nullable:!0},isWorld:{type:"boolean"},url:{type:"string"},address:{type:"string"},image:{type:"string"}},required:["position","isWorld","url","title","description","address","image"],additionalProperties:!1};(function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.STREAMING,n.Events.SubType.Streaming.STREAMING_KEY_RESET,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.StreamingKeyResetEvent||(e.StreamingKeyResetEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.STREAMING,n.Events.SubType.Streaming.STREAMING_KEY_REVOKE,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.StreamingKeyRevokeEvent||(e.StreamingKeyRevokeEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.STREAMING,n.Events.SubType.Streaming.STREAMING_KEY_EXPIRED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.StreamingKeyExpiredEvent||(e.StreamingKeyExpiredEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.STREAMING,n.Events.SubType.Streaming.STREAMING_TIME_EXCEEDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.StreamingTimeExceededEvent||(e.StreamingTimeExceededEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.STREAMING,n.Events.SubType.Streaming.STREAMING_PLACE_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.StreamingPlaceUpdatedEvent||(e.StreamingPlaceUpdatedEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.STREAMING,n.Events.SubType.Streaming.COMMUNITY_STREAMING_ENDED,{type:"object",properties:{communityId:{type:"string"},totalParticipants:{type:"number"}},required:["communityId","totalParticipants"],additionalProperties:!1}),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.CommunityStreamingEndedEvent||(e.CommunityStreamingEndedEvent={}))})($_);var eb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserUnbannedFromSceneEvent=e.UserBannedFromSceneEvent=e.UserLeftRoomEvent=e.UserJoinedRoomEvent=e.RoomType=void 0;const t=ue,n=mn;var r;(function(i){i.PRIVATE_MESSAGE="private-message",i.VOICE_CHAT="voice-chat",i.COMMUNITY_VOICE_CHAT="community-voice-chat",i.ISLAND="island",i.SCENE="scene",i.WORLD="world",i.UNKNOWN="unknown"})(r=e.RoomType||(e.RoomType={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMS},subType:{type:"string",const:n.Events.SubType.Comms.USER_JOINED_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{parcel:{type:"string"},sceneId:{type:"string"},userAddress:{type:"string"},realmName:{type:"string"},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(r)}},required:["parcel","sceneId","userAddress","realmName","isWorld","roomType"]}},required:["type","subType","key","timestamp","metadata"]},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.UserJoinedRoomEvent||(e.UserJoinedRoomEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMS},subType:{type:"string",const:n.Events.SubType.Comms.USER_LEFT_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},realmName:{type:"string"},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(r)},sceneId:{type:"string",nullable:!0},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0}},required:["isWorld","userAddress","realmName","roomType"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.UserLeftRoomEvent||(e.UserLeftRoomEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMS},subType:{type:"string",const:n.Events.SubType.Comms.USER_BANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.UserBannedFromSceneEvent||(e.UserBannedFromSceneEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMS},subType:{type:"string",const:n.Events.SubType.Comms.USER_UNBANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.UserUnbannedFromSceneEvent||(e.UserUnbannedFromSceneEvent={}))})(eb);var tb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReferralNewTierReachedEvent=e.ReferralInvitedUsersAcceptedEvent=void 0;const t=ue,n=mn,r=ea,i={type:"object",properties:{title:{type:"string"},description:{type:"string"},address:{type:"string"},tier:{type:"number",minimum:1},url:{type:"string"},image:{type:"string"},invitedUserAddress:{type:"string"},invitedUsers:{type:"number",minimum:1},rarity:{type:"string",nullable:!0}},required:["address","tier","url","title","description","image","invitedUserAddress"],additionalProperties:!1};(function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.REFERRAL,n.Events.SubType.Referral.REFERRAL_INVITED_USERS_ACCEPTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.ReferralInvitedUsersAcceptedEvent||(e.ReferralInvitedUsersAcceptedEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.REFERRAL,n.Events.SubType.Referral.REFERRAL_NEW_TIER_REACHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.ReferralNewTierReachedEvent||(e.ReferralNewTierReachedEvent={}))})(tb);var nb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityVoiceChatStartedEvent=e.CommunityOwnershipTransferredEvent=e.CommunityPostAddedEvent=e.CommunityInviteReceivedEvent=e.CommunityRequestToJoinAcceptedEvent=e.CommunityRequestToJoinReceivedEvent=e.CommunityMemberRemovedEvent=e.CommunityMemberLeftEvent=e.CommunityMemberBannedEvent=e.CommunityRenamedEvent=e.CommunityDeletedContentViolationEvent=e.CommunityDeletedEvent=void 0;const t=ue,n=mn;(function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.DELETED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","name","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.CommunityDeletedEvent||(e.CommunityDeletedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.DELETED_CONTENT_VIOLATION},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},ownerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","ownerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityDeletedContentViolationEvent||(e.CommunityDeletedContentViolationEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.RENAMED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},oldName:{type:"string"},newName:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","oldName","newName","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityRenamedEvent||(e.CommunityRenamedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.MEMBER_BANNED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityMemberBannedEvent||(e.CommunityMemberBannedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.MEMBER_LEFT},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},memberAddress:{type:"string"}},required:["id","memberAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityMemberLeftEvent||(e.CommunityMemberLeftEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.MEMBER_REMOVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityMemberRemovedEvent||(e.CommunityMemberRemovedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.REQUEST_TO_JOIN_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},memberName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","memberAddress","memberName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityRequestToJoinReceivedEvent||(e.CommunityRequestToJoinReceivedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.REQUEST_TO_JOIN_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityRequestToJoinAcceptedEvent||(e.CommunityRequestToJoinAcceptedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.INVITE_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityInviteReceivedEvent||(e.CommunityInviteReceivedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.POST_ADDED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},postId:{type:"string"},authorAddress:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["addressesToNotify","communityId","communityName","thumbnailUrl","postId","authorAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityPostAddedEvent||(e.CommunityPostAddedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.OWNERSHIP_TRANSFERRED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},oldOwnerAddress:{type:"string"},newOwnerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","oldOwnerAddress","newOwnerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityOwnershipTransferredEvent||(e.CommunityOwnershipTransferredEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.COMMUNITY},subType:{type:"string",const:n.Events.SubType.Community.VOICE_CHAT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.CommunityVoiceChatStartedEvent||(e.CommunityVoiceChatStartedEvent={}))})(nb);var rb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PhotoTakenEvent=e.PhotoPrivacyChangedEvent=void 0;const t=ue,n=mn;(function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CAMERA},subType:{type:"string",const:n.Events.SubType.Camera.PHOTO_PRIVACY_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"}},required:["userAddress","photoId","isPublic"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.PhotoPrivacyChangedEvent||(e.PhotoPrivacyChangedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.CAMERA},subType:{type:"string",const:n.Events.SubType.Camera.PHOTO_TAKEN},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sceneId:{type:"string"},userAddress:{type:"string"},realm:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"},users:{type:"array",items:{type:"object",properties:{address:{type:"string"},isEmoting:{type:"boolean"}},required:["address","isEmoting"],additionalProperties:!1}},placeId:{type:"string",nullable:!0}},required:["userAddress","realm","photoId","isPublic","users"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.PhotoTakenEvent||(e.PhotoTakenEvent={}))})(rb);var ib={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventEndedEvent=e.EventCreatedEvent=e.EventStartsSoonEvent=e.EventStartedEvent=void 0;const t=ue,n=mn;(function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.EVENT},subType:{type:"string",const:n.Events.SubType.Event.EVENT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},communityId:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.EventStartedEvent||(e.EventStartedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.EVENT},subType:{type:"string",const:n.Events.SubType.Event.EVENT_STARTS_SOON},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},startsAt:{type:"string"},endsAt:{type:"string"},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link","startsAt","endsAt"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.EventStartsSoonEvent||(e.EventStartsSoonEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.EVENT},subType:{type:"string",const:n.Events.SubType.Event.EVENT_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},communityId:{type:"string"},communityName:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.EventCreatedEvent||(e.EventCreatedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.EVENT},subType:{type:"string",const:n.Events.SubType.Event.EVENT_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{communityId:{type:"string",nullable:!0},totalAttendees:{type:"number"}},required:["totalAttendees"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.EventEndedEvent||(e.EventEndedEvent={}))})(ib);var ab={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GovernanceCliffEndedEvent=e.GovernanceVotedOnBehalfEvent=e.GovernanceWhaleVoteEvent=e.GovernanceNewCommentOnProjectUpdatedEvent=e.GovernanceNewCommentOnProposalEvent=e.GovernanceVotingEndedVoterEvent=e.GovernanceAuthoredProposalFinishedEvent=e.GovernanceTenderPassedEvent=e.GovernancePitchPassedEvent=e.GovernanceCoauthorRequestedEvent=e.GovernanceProposalEnactedEvent=void 0;const t=ue,n=mn,r=ea,i={type:"object",properties:{proposalId:{type:"string"},proposalTitle:{type:"string"},title:{type:"string"},description:{type:"string"},link:{type:"string"},address:{type:"string"}},required:["proposalId","proposalTitle","title","description","link","address"],additionalProperties:!1};(function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.PROPOSAL_ENACTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)})(e.GovernanceProposalEnactedEvent||(e.GovernanceProposalEnactedEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.COAUTHOR_REQUESTED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernanceCoauthorRequestedEvent||(e.GovernanceCoauthorRequestedEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.PITCH_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernancePitchPassedEvent||(e.GovernancePitchPassedEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.TENDER_PASSED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernanceTenderPassedEvent||(e.GovernanceTenderPassedEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.AUTHORED_PROPOSAL_FINISHED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernanceAuthoredProposalFinishedEvent||(e.GovernanceAuthoredProposalFinishedEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.VOTING_ENDED_VOTER,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernanceVotingEndedVoterEvent||(e.GovernanceVotingEndedVoterEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.NEW_COMMENT_ON_PROPOSAL,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernanceNewCommentOnProposalEvent||(e.GovernanceNewCommentOnProposalEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.NEW_COMMENT_ON_PROJECT_UPDATED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernanceNewCommentOnProjectUpdatedEvent||(e.GovernanceNewCommentOnProjectUpdatedEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.WHALE_VOTE,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernanceWhaleVoteEvent||(e.GovernanceWhaleVoteEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.VOTED_ON_BEHALF,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernanceVotedOnBehalfEvent||(e.GovernanceVotedOnBehalfEvent={})),function(a){a.schema=(0,r.createEventSchema)(n.Events.Type.GOVERNANCE,n.Events.SubType.Governance.CLIFF_ENDED,i),a.validate=(0,t.generateLazyValidator)(a.schema)}(e.GovernanceCliffEndedEvent||(e.GovernanceCliffEndedEvent={}))})(ab);var sb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldsMissingResourcesEvent=e.WorldsAccessRestrictedEvent=e.WorldsPermissionGrantedEvent=e.WorldsPermissionRevokedEvent=e.WorldsAccessRestoredEvent=e.WorldDeploymentEvent=e.WorldUndeploymentEvent=e.WorldScenesUndeploymentEvent=e.WorldSpawnCoordinateSetEvent=e.WorldSettingsChangedEvent=void 0;const t=cs,n=ue,r=mn;(function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.WORLD_SETTINGS_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},contentRating:{type:"string",nullable:!0},skyboxTime:{type:"number",nullable:!0},categories:{type:"array",items:{type:"string"},nullable:!0},singlePlayer:{type:"boolean",nullable:!0},showInPlaces:{type:"boolean",nullable:!0},thumbnailUrl:{type:"string",nullable:!0},accessType:{type:"string",nullable:!0}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}})(e.WorldSettingsChangedEvent||(e.WorldSettingsChangedEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.WORLD_SPAWN_COORDINATE_SET},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string",pattern:"^[a-zA-Z0-9_-]+\\.dcl\\.eth|[a-zA-Z0-9_-]+\\.eth$"},oldCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1,nullable:!0},newCoordinate:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"],additionalProperties:!1}},required:["name","oldCoordinate","newCoordinate"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,n.generateLazyValidator)(i.schema)}(e.WorldSpawnCoordinateSetEvent||(e.WorldSpawnCoordinateSetEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.WORLD_SCENES_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"},scenes:{type:"array",items:{type:"object",properties:{entityId:{type:"string"},baseParcel:{type:"string"}},required:["entityId","baseParcel"],additionalProperties:!1},minItems:1}},required:["worldName","scenes"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,n.generateLazyValidator)(i.schema)}(e.WorldScenesUndeploymentEvent||(e.WorldScenesUndeploymentEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.WORLD_UNDEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{worldName:{type:"string"}},required:["worldName"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,n.generateLazyValidator)(i.schema)}(e.WorldUndeploymentEvent||(e.WorldUndeploymentEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.DEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},entity:{type:"object",properties:{entityId:{type:"string"},authChain:t.AuthChain.schema},additionalProperties:!0,required:["entityId","authChain"]},contentServerUrls:{type:"array",items:{type:"string"},nullable:!0},force:{type:"boolean",nullable:!0},animation:{type:"string",nullable:!0},lods:{type:"array",items:{type:"string"},nullable:!0}},required:["type","subType","key","timestamp","entity"],additionalProperties:!1},i.validate=(0,n.generateLazyValidator)(i.schema)}(e.WorldDeploymentEvent||(e.WorldDeploymentEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.WORLDS_ACCESS_RESTORED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},attendee:{type:"string"}},required:["title","description","url","attendee"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,n.generateLazyValidator)(i.schema)}(e.WorldsAccessRestoredEvent||(e.WorldsAccessRestoredEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.WORLDS_PERMISSION_REVOKED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,n.generateLazyValidator)(i.schema)}(e.WorldsPermissionRevokedEvent||(e.WorldsPermissionRevokedEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.WORLDS_PERMISSION_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,n.generateLazyValidator)(i.schema)}(e.WorldsPermissionGrantedEvent||(e.WorldsPermissionGrantedEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.WORLDS_ACCESS_RESTRICTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,n.generateLazyValidator)(i.schema)}(e.WorldsAccessRestrictedEvent||(e.WorldsAccessRestrictedEvent={})),function(i){i.schema={type:"object",properties:{type:{type:"string",const:r.Events.Type.WORLD},subType:{type:"string",const:r.Events.SubType.Worlds.WORLDS_MISSING_RESOURCES},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","url","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,n.generateLazyValidator)(i.schema)}(e.WorldsMissingResourcesEvent||(e.WorldsMissingResourcesEvent={}))})(sb);var ob={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserWarningCreatedEvent=e.UserBanLiftedEvent=e.UserBanCreatedEvent=void 0;const t=ue,n=mn;(function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.MODERATION},subType:{type:"string",const:n.Events.SubType.Moderation.USER_BAN_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},bannedBy:{type:"string"},reason:{type:"string"},bannedAt:{type:"number",minimum:0},expiresAt:{type:"number",nullable:!0,minimum:0},customMessage:{type:"string",nullable:!0}},required:["id","bannedAddress","bannedBy","reason","bannedAt","expiresAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)})(e.UserBanCreatedEvent||(e.UserBanCreatedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.MODERATION},subType:{type:"string",const:n.Events.SubType.Moderation.USER_BAN_LIFTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},bannedAddress:{type:"string"},liftedBy:{type:"string"},liftedAt:{type:"number",minimum:0}},required:["id","bannedAddress","liftedBy","liftedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.UserBanLiftedEvent||(e.UserBanLiftedEvent={})),function(r){r.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.MODERATION},subType:{type:"string",const:n.Events.SubType.Moderation.USER_WARNING_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{id:{type:"string"},warnedAddress:{type:"string"},warnedBy:{type:"string"},reason:{type:"string"},warnedAt:{type:"number",minimum:0}},required:["id","warnedAddress","warnedBy","reason","warnedAt"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.UserWarningCreatedEvent||(e.UserWarningCreatedEvent={}))})(ob);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(mn,e),n(z_,e),n(Y_,e),n(K_,e),n(X_,e),n(J_,e),n(Z_,e),n(Q_,e),n($_,e),n(eb,e),n(tb,e),n(nb,e),n(rb,e),n(ib,e),n(ab,e),n(sb,e),n(ob,e)})(W_);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(C_,e),n(M_,e),n(x_(),e),n(os,e),n(fp,e),n(H_,e),n(yp,e),n(U_,e),n(j_,e),n(G_,e),n(W_,e)})(Ju);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const t=eo,n=Ti,r=Yu,i=ue,a=Ju;(function(s){s.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},t.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:n.WearableCategory.schema},hides:{type:"array",items:n.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:r.WearableRepresentation.schema,minItems:1},category:n.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:a.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},s.validate=(0,i.generateLazyValidator)(s.schema)})(e.WearableJson||(e.WearableJson={}))})(R_);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(O_,e),n(R_,e)})(A_);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(S_,e),n(A_,e)})(v_);var cb={},ub={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const t=ue;(function(n){n.MOST_SALES="most_sales",n.MOST_PURCHASES="most_purchases",n.MOST_SPENT="most_spent",n.MOST_EARNED="most_earned",n.MOST_ROYALTIES="most_royalties",n.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),function(n){n.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.Account||(e.Account={}))})(ub);var Vl={},Gl={},Qh;function lb(){return Qh||(Qh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const t=ue,n=hr();var r;(function(a){a.ETHEREUM_MAINNET="Ethereum Mainnet",a.ETHEREUM_ROPSTEN="Ropsten",a.ETHEREUM_RINKEBY="Rinkeby",a.ETHEREUM_GOERLI="Goerli",a.ETHEREUM_KOVAN="Kovan",a.ETHEREUM_SEPOLIA="Sepolia",a.MATIC_MAINNET="Polygon",a.MATIC_MUMBAI="Mumbai",a.MATIC_AMOY="Amoy",a.AVALANCHE_MAINNET="Avalanche",a.BINANCE_MAINNET="Binance Smart Chain",a.ARBITRUM_MAINNET="Arbitrum",a.OPTIMISM_MAINNET="Optimism",a.FANTOM_MAINNET="Fantom"})(r=e.ChainName||(e.ChainName={}));function i(a){switch(a){case r.ETHEREUM_MAINNET:return n.ChainId.ETHEREUM_MAINNET;case r.ETHEREUM_ROPSTEN:return n.ChainId.ETHEREUM_ROPSTEN;case r.ETHEREUM_RINKEBY:return n.ChainId.ETHEREUM_RINKEBY;case r.ETHEREUM_GOERLI:return n.ChainId.ETHEREUM_GOERLI;case r.ETHEREUM_KOVAN:return n.ChainId.ETHEREUM_KOVAN;case r.ETHEREUM_SEPOLIA:return n.ChainId.ETHEREUM_SEPOLIA;case r.MATIC_MAINNET:return n.ChainId.MATIC_MAINNET;case r.MATIC_MUMBAI:return n.ChainId.MATIC_MUMBAI;case r.MATIC_AMOY:return n.ChainId.MATIC_AMOY;case r.AVALANCHE_MAINNET:return n.ChainId.AVALANCHE_MAINNET;case r.BINANCE_MAINNET:return n.ChainId.BSC_MAINNET;case r.ARBITRUM_MAINNET:return n.ChainId.ARBITRUM_MAINNET;case r.OPTIMISM_MAINNET:return n.ChainId.OPTIMISM_MAINNET;case r.FANTOM_MAINNET:return n.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,function(a){a.schema={type:"string",enum:Object.values(a)},a.validate=(0,t.generateLazyValidator)(a.schema)}(r=e.ChainName||(e.ChainName={}))}(Gl)),Gl}var Jn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const t=ue;(function(n){n.ETHEREUM="ETHEREUM",n.MATIC="MATIC",n.AVALANCHE="AVALANCHE",n.BSC="BINANCE SMART CHAIN",n.OPTIMISM="OPTIMISM",n.ARBITRUM="ARBITRUM",n.FANTOM="FANTOM"})(e.Network||(e.Network={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.Network||(e.Network={}))})(Jn);var $h;function hr(){return $h||($h=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const t=ue,n=lb(),r=Jn;var i;(function(u){u[u.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",u[u.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",u[u.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",u[u.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",u[u.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",u[u.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",u[u.MATIC_MAINNET=137]="MATIC_MAINNET",u[u.MATIC_MUMBAI=80001]="MATIC_MUMBAI",u[u.MATIC_AMOY=80002]="MATIC_AMOY",u[u.BSC_MAINNET=56]="BSC_MAINNET",u[u.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",u[u.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",u[u.FANTOM_MAINNET=250]="FANTOM_MAINNET",u[u.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function a(u){switch(u){case i.ETHEREUM_MAINNET:return n.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return n.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return n.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return n.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return n.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return n.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return n.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return n.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return n.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return n.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return n.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return n.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return n.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return n.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=a;function s(u){switch(u){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=s;function o(u){const f={[r.Network.BSC]:i.BSC_MAINNET,[r.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[r.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[r.Network.FANTOM]:i.FANTOM_MAINNET,[r.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(u){case i.ETHEREUM_MAINNET:return Object.assign({[r.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[r.Network.MATIC]:i.MATIC_MAINNET},f);case i.ETHEREUM_ROPSTEN:return Object.assign({[r.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[r.Network.MATIC]:i.MATIC_MUMBAI},f);case i.ETHEREUM_RINKEBY:return Object.assign({[r.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[r.Network.MATIC]:i.MATIC_MUMBAI},f);case i.ETHEREUM_GOERLI:return Object.assign({[r.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[r.Network.MATIC]:i.MATIC_MUMBAI},f);case i.ETHEREUM_KOVAN:return Object.assign({[r.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[r.Network.MATIC]:i.MATIC_MUMBAI},f);case i.ETHEREUM_SEPOLIA:return Object.assign({[r.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[r.Network.MATIC]:i.MATIC_AMOY},f);case i.MATIC_MAINNET:return Object.assign({[r.Network.ETHEREUM]:i.MATIC_MAINNET,[r.Network.MATIC]:i.MATIC_MAINNET},f);case i.MATIC_MUMBAI:return Object.assign({[r.Network.ETHEREUM]:i.MATIC_MUMBAI,[r.Network.MATIC]:i.MATIC_MUMBAI},f);case i.MATIC_AMOY:return Object.assign({[r.Network.ETHEREUM]:i.MATIC_AMOY,[r.Network.MATIC]:i.MATIC_AMOY},f);default:return Object.assign({[r.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[r.Network.MATIC]:i.MATIC_MAINNET},f)}}e.getNetworkMapping=o;function c(u){switch(u){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return r.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return r.Network.MATIC;case i.BSC_MAINNET:return r.Network.BSC;case i.OPTIMISM_MAINNET:return r.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return r.Network.ARBITRUM;case i.FANTOM_MAINNET:return r.Network.FANTOM;case i.AVALANCHE_MAINNET:return r.Network.AVALANCHE}}e.getNetwork=c,function(u){u.schema={type:"number",enum:Object.values(u)},u.validate=(0,t.generateLazyValidator)(u.schema)}(i=e.ChainId||(e.ChainId={}))}(Vl)),Vl}var db={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const t=ue,n=hr(),r=Jn;(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:r.Network.schema,chainId:n.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.Collection||(e.Collection={}))})(db);var fb={},to={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const t=ue;(function(n){n.PARCEL="parcel",n.ESTATE="estate",n.WEARABLE="wearable",n.ENS="ens",n.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.NFTCategory||(e.NFTCategory={}))})(to);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const t=ue,n=hr(),r=Jn,i=to;(function(a){a.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),function(a){a.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:r.Network.schema,chainId:n.ChainId.schema},required:["name","address","category","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)}(e.Contract||(e.Contract={}))})(fb);var pb={},Sp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const t=ue,n=hr(),r=Ju,i=Jn,a=to,s=eo,o=Ti;(function(c){c.NAME="name",c.NEWEST="newest",c.RECENTLY_LISTED="recently_listed",c.RECENTLY_SOLD="recently_sold",c.CHEAPEST="cheapest",c.RENTAL_LISTING_DATE="rental_listing_date",c.RENTAL_DATE="rented_date",c.MAX_RENTAL_PRICE="max_rental_price",c.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),function(c){c.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema},category:o.WearableCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:r.BodyShape.schema},category:r.EmoteCategory.schema,description:{type:"string"},rarity:s.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"},outcomeType:{type:"string",nullable:!0}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:a.NFTCategory.schema,network:i.Network.schema,chainId:n.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},c.validate=(0,t.generateLazyValidator)(c.schema)}(e.NFT||(e.NFT={}))})(Sp);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const t=ue,n=hr(),r=Jn,i=Sp,a=to;(function(s){s.NAME="name",s.NEWEST="newest",s.RECENTLY_REVIEWED="recently_reviewed",s.RECENTLY_SOLD="recently_sold",s.RECENTLY_LISTED="recently_listed",s.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),function(s){s.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:a.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},tradeContractAddress:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:r.Network.schema,chainId:n.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},s.validate=(0,t.generateLazyValidator)(s.schema)}(e.Item||(e.Item={}))})(pb);var el={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const t=ue;(function(n){n.OPEN="open",n.SOLD="sold",n.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.ListingStatus||(e.ListingStatus={}))})(el);var hb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const t=ue;(function(n){n.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(hb);var mb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const t=ue,n=hr(),r=Jn;(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:r.Network.schema,chainId:n.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.Mint||(e.Mint={}))})(mb);var gb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,function(t){t.NEWEST="newest",t.RECENTLY_SOLD="recently_sold",t.CHEAPEST="cheapest",t.MOST_EXPENSIVE="most_expensive",t.RECENTLY_LISTED="recently_listed"}(e.CatalogSortBy||(e.CatalogSortBy={})),function(t){t.ASC="asc",t.DESC="desc"}(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(gb);var yb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const t=ue,n=hr(),r=el,i=Jn;(function(a){a.RECENTLY_LISTED="recently_listed",a.RECENTLY_UPDATED="recently_updated",a.CHEAPEST="cheapest",a.ISSUED_ID_ASC="issued_id_asc",a.ISSUED_ID_DESC="issued_id_desc",a.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),function(a){a.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:r.ListingStatus.schema,network:i.Network.schema,chainId:n.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},a.validate=(0,t.generateLazyValidator)(a.schema)}(e.Order||(e.Order={}))})(yb);var _b={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const t=ue;(function(n){n.INJECTED="injected",n.MAGIC="magic",n.MAGIC_TEST="magic_test",n.FORTMATIC="formatic",n.NETWORK="network",n.WALLET_CONNECT="wallet_connect",n.WALLET_CONNECT_V2="wallet_connect_v2",n.WALLET_LINK="wallet_link",n.METAMASK_MOBILE="metamask_mobile",n.AUTH_SERVER="auth_server",n.THIRDWEB="thirdweb"})(e.ProviderType||(e.ProviderType={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.ProviderType||(e.ProviderType={}))})(_b);var wp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const t=ue;(function(n){n.ORDER="order",n.BID="bid",n.MINT="mint"})(e.SaleType||(e.SaleType={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.SaleType||(e.SaleType={}))})(wp);var bb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const t=ue,n=hr(),r=wp,i=Jn;(function(a){a.RECENTLY_SOLD="recently_sold",a.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),function(a){a.schema={type:"object",properties:{id:{type:"string"},type:r.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:n.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},a.validate=(0,t.generateLazyValidator)(a.schema)}(e.Sale||(e.Sale={}))})(bb);var Eb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const t=ue,n=hr(),r=Jn;(function(a){a.OPEN="open",a.CANCELLED="cancelled",a.EXECUTED="executed",a.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),function(a){a.ASC="asc",a.DESC="desc"}(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),function(a){a.PARCEL="parcel",a.ESTATE="estate"}(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),function(a){a.LAND_CREATION_DATE="land_creation_date",a.RENTAL_LISTING_DATE="rental_listing_date",a.RENTAL_DATE="rented_date",a.NAME="name",a.MAX_RENTAL_PRICE="max_rental_price",a.MIN_RENTAL_PRICE="min_rental_price"}(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(a){a.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},a.validate=(0,t.generateLazyValidator)(a.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),function(a){a.schema={type:"object",properties:{network:r.Network.schema,chainId:n.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},a.validate=(0,t.generateLazyValidator)(a.schema)}(e.RentalListingCreation||(e.RentalListingCreation={}))})(Eb);var vb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,function(t){t.DATE="date",t.MOST_SALES="most_sales"}(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(vb);var Sb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const t=ue;(function(n){n.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.Store||(e.Store={}))})(Sb);var wb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const t=ue;(function(n){n.MALE="male",n.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),function(n){n.MALE="male",n.FEMALE="female",n.UNISEX="unisex"}(e.GenderFilterOption||(e.GenderFilterOption={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.WearableGender||(e.WearableGender={}))})(wb);var Tb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const t=ue;function n(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=n;function r(i,a){const s=n().validWorldRanges;for(const o of s)if(i>=o.xMin&&i<=o.xMax&&a>=o.yMin&&a<=o.yMax)return!0;return!1}e.isInsideWorldLimits=r,function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)}(e.World||(e.World={}))})(Tb);var Ib={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const t=ue,n=hr(),r=el,i=Jn;(function(a){a.RECENTLY_OFFERED="recently_offered",a.RECENTLY_UPDATED="recently_updated",a.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),function(a){const s={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:r.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:n.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};a.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...s.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},s.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...s.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},a.validate=(0,t.generateLazyValidator)(a.schema)}(e.Bid||(e.Bid={}))})(Ib);var Ab={};Object.defineProperty(Ab,"__esModule",{value:!0});var Ob={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,function(t){t.BID="bid",t.PUBLIC_NFT_ORDER="public_nft_order",t.PUBLIC_ITEM_ORDER="public_item_order"}(e.TradeType||(e.TradeType={})),function(t){t[t.ERC20=1]="ERC20",t[t.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",t[t.ERC721=3]="ERC721",t[t.COLLECTION_ITEM=4]="COLLECTION_ITEM"}(e.TradeAssetType||(e.TradeAssetType={})),function(t){t.SENT="sent",t.RECEIVED="received"}(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(Ob);var Rb={},Cb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const t=ue;(function(n){n.STATIC="static",n.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.PreviewCamera||(e.PreviewCamera={}))})(Cb);var Nb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewUnityMode=void 0,function(t){t.AUTH="authentication",t.BUILDER="builder",t.MARKETPLACE="marketplace",t.PROFILE="profile",t.CONFIG="configurator",t.JESUS="jesus"}(e.PreviewUnityMode||(e.PreviewUnityMode={}))})(Nb);var Mb={};Object.defineProperty(Mb,"__esModule",{value:!0});var Pb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const t=ue;(function(n){n.ANIMATION_PLAY="animation_play",n.ANIMATION_PAUSE="animation_pause",n.ANIMATION_LOOP="animation_loop",n.ANIMATION_END="animation_end",n.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(Pb);var kb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const t=ue;(function(n){n.IDLE="idle",n.WALK="walk",n.RUN="run",n.JUMP="jump",n.CLAP="clap",n.DAB="dab",n.DANCE="dance",n.FASHION="fashion",n.FASHION_2="fashion-2",n.FASHION_3="fashion-3",n.FASHION_4="fashion-4",n.LOVE="love",n.MONEY="money",n.FIST_PUMP="fist-pump",n.HEAD_EXPLODE="head-explode",n.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.PreviewEmote||(e.PreviewEmote={}))})(kb);var Lb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewRenderer=e.PreviewMessageType=void 0;const t=ue;(function(r){r.READY="ready",r.LOAD="load",r.ERROR="error",r.UPDATE="update",r.CONTROLLER_REQUEST="controller_request",r.CONTROLLER_RESPONSE="controller_response",r.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),function(r){r.BABYLON="babylon",r.UNITY="unity"}(e.PreviewRenderer||(e.PreviewRenderer={})),function(r){r.schema={type:"string",enum:Object.values(r)},r.validate=(0,t.generateLazyValidator)(r.schema)}(e.PreviewMessageType||(e.PreviewMessageType={}));const n=(r,i,a,s="*")=>{const o={type:i,payload:a};r.postMessage(o,s)};e.sendMessage=n})(Lb);var Db={};Object.defineProperty(Db,"__esModule",{value:!0});var Bb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const t=ue;(function(n){n.ORTHOGRAPHIC="orthographic",n.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.PreviewProjection||(e.PreviewProjection={}))})(Bb);var Fb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const t=ue;(function(n){n.TEXTURE="texture",n.WEARABLE="wearable",n.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,t.generateLazyValidator)(n.schema)}(e.PreviewType||(e.PreviewType={}))})(Fb);var xb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpringBoneParams=void 0;const t=ue;(function(n){n.schema={type:"object",properties:{stiffness:{type:"number",minimum:0,maximum:5},gravityPower:{type:"number",minimum:0,maximum:10},gravityDir:{type:"array",items:[{type:"number"},{type:"number"},{type:"number"}],minItems:3,maxItems:3},dragForce:{type:"number",minimum:0,maximum:1},center:{type:"integer",minimum:0,nullable:!0}},required:["stiffness","gravityPower","gravityDir","dragForce"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.SpringBoneParams||(e.SpringBoneParams={}))})(xb);var Hb={};Object.defineProperty(Hb,"__esModule",{value:!0});var Ub={};Object.defineProperty(Ub,"__esModule",{value:!0});var jb={};Object.defineProperty(jb,"__esModule",{value:!0});var Vb={};Object.defineProperty(Vb,"__esModule",{value:!0});var Gb={};Object.defineProperty(Gb,"__esModule",{value:!0});var qb={};Object.defineProperty(qb,"__esModule",{value:!0});var Wb={};Object.defineProperty(Wb,"__esModule",{value:!0});var zb={};Object.defineProperty(zb,"__esModule",{value:!0});(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(Cb,e),n(Nb,e),n(Mb,e),n(Pb,e),n(kb,e),n(Lb,e),n(Db,e),n(Bb,e),n(Fb,e),n(xb,e),n(Hb,e),n(Ub,e),n(jb,e),n(Vb,e),n(Gb,e),n(qb,e),n(Wb,e),n(zb,e)})(Rb);var Yb={},tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.isSysLink=void 0;const bT=e=>e!==null&&typeof e=="object"&&"sys"in e&&"id"in e.sys;tl.isSysLink=bT;var nl={};Object.defineProperty(nl,"__esModule",{value:!0});nl.ContentfulLocale=void 0;var Zd;(function(e){e.enUS="en-US",e.es="es",e.zh="zh"})(Zd||(Zd={}));nl.ContentfulLocale=Zd;var Kb={};Object.defineProperty(Kb,"__esModule",{value:!0});(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(tl,e),n(nl,e),n(Kb,e)})(Yb);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(G,W,z,ae){ae===void 0&&(ae=z);var Ee=Object.getOwnPropertyDescriptor(W,z);(!Ee||("get"in Ee?!W.__esModule:Ee.writable||Ee.configurable))&&(Ee={enumerable:!0,get:function(){return W[z]}}),Object.defineProperty(G,ae,Ee)}:function(G,W,z,ae){ae===void 0&&(ae=z),G[ae]=W[z]}),n=ie&&ie.__exportStar||function(G,W){for(var z in G)z!=="default"&&!Object.prototype.hasOwnProperty.call(W,z)&&t(W,G,z)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var r=ub;Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return r.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return r.AccountSortBy}});var i=hr();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var a=lb();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return a.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return a.getChainId}});var s=db;Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return s.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return s.CollectionSortBy}});var o=fb;Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return o.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return o.ContractSortBy}});var c=pb;Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return c.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return c.ItemSortBy}});var u=el;Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return u.ListingStatus}});var f=hb;Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return f.MetaTransaction}});var l=mb;Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return l.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return l.MintSortBy}});var m=Jn;Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return m.Network}});var g=to;Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return g.NFTCategory}});var _=Sp;Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return _.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return _.NFTSortBy}});var T=gb;Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return T.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return T.CatalogSortDirection}});var B=yb;Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return B.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return B.OrderSortBy}});var U=_b;Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return U.ProviderType}});var J=eo;Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return J.Rarity}});var K=wp;Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return K.SaleType}});var H=bb;Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return H.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return H.SaleSortBy}});var F=Eb;Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return F.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return F.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return F.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return F.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return F.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return F.PeriodCreation}});var k=vb;Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return k.AnalyticsDayDataSortBy}});var j=Sb;Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return j.Store}});var te=wb;Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return te.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return te.GenderFilterOption}});var L=Tb;Object.defineProperty(e,"World",{enumerable:!0,get:function(){return L.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return L.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return L.isInsideWorldLimits}}),n(Ib,e),n(Ab,e),n(Ob,e),n(Rb,e),n(Yb,e)})(cb);var Xb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const t=ue;(function(n){n.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(Xb);var Jb={},Zb={},no={};Object.defineProperty(no,"__esModule",{value:!0});no.isInExceptionBlock=void 0;function ET(e,t){return e>=62&&e<=150&&t>=151&&t<=158}function vT(e,t){return e>=151&&e<=162&&t>=144&&t<=158}function ST(e,t){return e>=151&&e<=163&&t>=59&&t<=143}function wT(e,t){return ET(e,t)||vT(e,t)||ST(e,t)}no.isInExceptionBlock=wT;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parcel=e.PARCEL_LIMITS=void 0;const t=ue,n=no;e.PARCEL_LIMITS={minX:-150,maxX:150,minY:-150,maxY:150},function(r){r._isInLimits={keyword:"_isInLimits",validate:function(g,_){return!_||typeof _.x!="number"||typeof _.y!="number"?!1:o(_)||(0,n.isInExceptionBlock)(_.x,_.y)},errors:!1},r.schema={type:"object",required:["x","y"],properties:{x:{type:"number"},y:{type:"number"}},_isInLimits:!0,additionalProperties:!1},r.validate=(0,t.generateLazyValidator)(r.schema,[r._isInLimits]);function i({x:m,y:g}){return`${m},${g}`}r.parcelToString=i;function a(m){const g=m.match(/^(-?\d+),(-?\d+)$/);if(!g)return null;const[,_,T]=g,B=parseInt(_,10),U=parseInt(T,10);return{x:B,y:U}}r.stringToParcel=a;function s(m){const g=a(m);return g?r.validate(g):!1}r.isParcelStringValid=s;function o(m){const{x:g,y:_}=m;return g>=e.PARCEL_LIMITS.minX&&g<=e.PARCEL_LIMITS.maxX&&_>=e.PARCEL_LIMITS.minY&&_<=e.PARCEL_LIMITS.maxY}r.isInStandardBounds=o;function c(m){return(0,n.isInExceptionBlock)(m.x,m.y)}r.isExceptionParcel=c;function u(m){return o(m)||c(m)}r.isInBounds=u;function f(m){return r.validate(m)}r.isValid=f;function l(m){const g=a(m);return g?r.validate(g):!1}r.isValidString=l}(e.Parcel||(e.Parcel={}))})(Zb);var Fa={};Object.defineProperty(Fa,"__esModule",{value:!0});Fa.validateUrlInstance=Fa.validateUrl=void 0;const TT={allowLocalhost:!1,allowedPorts:[]};function Qb(e,t=2){let n=e;for(let r=0;r<t;r++)try{n=decodeURIComponent(n)}catch{break}return n.normalize("NFKC")}function Fs(e){return/[\u0000-\u001F\u007F-\u009F\u202A-\u202E\u2066-\u2069]/.test(e)}function IT(e){return!!(e.username||e.password)}function Ca(e){return/\\/.test(e)}const AT=["80","443"];function OT(e,t){return!!e.port&&!t.includes(e.port)}function RT(e){const t=e.toLowerCase();return!!(t==="localhost"||t.endsWith(".local")||/^(127\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.|169\.254\.)/.test(t)||t==="::1"||t==="[::1]"||t.startsWith("fe80:")||t.startsWith("fc00:"))}function CT(e){if(e.startsWith("//"))return null;try{return{url:new URL(e),wasRelative:!1}}catch{try{return{url:new URL(e,"https://example.com"),wasRelative:!0}}catch{return null}}}function em(e){const t=Qb(String(e).toLowerCase());return!(Fs(t)||Ca(t))}function NT(e){return!(!e||e.includes("..")||e.includes("//")||Fs(e)||Ca(e))}function $b(e,t={}){const n=Object.assign(Object.assign({},TT),t),r=[...AT,...n.allowedPorts];if(!e||e.length===0||e.length>4096||Fs(e)||Ca(e))return!1;const i=Qb(e);if(Fs(i)||Ca(i)||e.startsWith("//"))return!1;const a=CT(e);if(!a)return!1;const{url:s,wasRelative:o}=a;if(s.protocol!=="http:"&&s.protocol!=="https:"&&s.protocol!==""||IT(s)||Ca(e)||Ca(s.href)||!o&&(OT(s,r)||!n.allowLocalhost&&s.hostname&&RT(s.hostname))||!NT(s.pathname)||s.pathname.length>2048)return!1;const c=Array.from(s.searchParams.entries());if(c.length>50||(s.search?s.search.startsWith("?")?s.search.length-1:s.search.length:0)>2048)return!1;for(const[f,l]of c)if(f.length===0||!em(f)||!em(l)||f.length>128||l.length>1024)return!1;return!(s.hash&&Fs(s.hash))}Fa.validateUrl=$b;function MT(e,t={}){return $b(e.toString(),t)}Fa.validateUrlInstance=MT;(function(e){var t=ie&&ie.__createBinding||(Object.create?function(r,i,a,s){s===void 0&&(s=a);var o=Object.getOwnPropertyDescriptor(i,a);(!o||("get"in o?!i.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(r,s,o)}:function(r,i,a,s){s===void 0&&(s=a),r[s]=i[a]}),n=ie&&ie.__exportStar||function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(Zb,e),n(no,e),n(Fa,e)})(Jb);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(s,o,c,u){u===void 0&&(u=c);var f=Object.getOwnPropertyDescriptor(o,c);(!f||("get"in f?!o.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(s,u,f)}:function(s,o,c,u){u===void 0&&(u=c),s[u]=o[c]}),n=ie&&ie.__setModuleDefault||(Object.create?function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}:function(s,o){s.default=o}),r=ie&&ie.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var c in s)c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)&&t(o,s,c);return n(o,s),o},i=ie&&ie.__exportStar||function(s,o){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const a=r(v_);e.sdk=a,i(ue,e),i(cb,e),i(Ju,e),i(Ii,e),i(Xb,e),i(cs,e),i(_p,e),i(vp,e),i(Jb,e)})(E_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const t=E_;Object.defineProperty(e,"AuthChain",{enumerable:!0,get:function(){return t.AuthChain}}),Object.defineProperty(e,"AuthLinkType",{enumerable:!0,get:function(){return t.AuthLinkType}}),Object.defineProperty(e,"AuthLink",{enumerable:!0,get:function(){return t.AuthLink}})})(b_);var rl={};Object.defineProperty(rl,"__esModule",{value:!0});rl.moveMinutes=void 0;function PT(e){const t=new Date;return t.setMinutes(t.getMinutes()+e),t}rl.moveMinutes=PT;var Tp={};Object.defineProperty(Tp,"__esModule",{value:!0});const Ts=Wu;class kT{constructor(t,n=!0){this.requestManager=t,this.checkedBlocks={},this.saveBlocks=n,n&&(this.savedBlocks={}),this.requests=0}async fillBlockTime(){const t=await this.getBlockWrapper("latest"),n=await this.getBlockWrapper(1);this.blockTime=(t.timestamp-n.timestamp)/Number(t.number)-1,this.firstTimestamp=n.timestamp}async getDate(t,n=!0){const r=t/1e3,i=Date.now()/1e3;if((typeof this.firstTimestamp>"u"||typeof this.blockTime>"u")&&await this.fillBlockTime(),r<this.firstTimestamp)return{block:1,timestamp:r};if(r>=i||r>this.savedBlocks.latest.timestamp)return{block:(0,Ts.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:r};this.checkedBlocks[r]=[];const a=await this.getBlockWrapper(Math.ceil((r-this.firstTimestamp/this.blockTime)/1e3));return{block:await this.findBetter(r,a,n),timestamp:r}}async findBetter(t,n,r,i=this.blockTime){if(await this.isBetterBlock(t,n,r))return n.number;const a=t-n.timestamp;let s=Math.ceil(a/i);s===0&&(s=a<0?-1:1);const o=await this.getBlockWrapper(this.getNextBlock(t,n.number,s));return i=Math.abs((n.timestamp-o.timestamp)/(n.number-o.number)),this.findBetter(t,o,r,i)}async isBetterBlock(t,n,r){const i=n.timestamp;if(r){if(i<t)return!1;const a=await this.getBlockWrapper(n.number-1);if(i>=t&&a.timestamp<t)return!0}else{if(i>=t)return!1;const a=await this.getBlockWrapper(n.number+1);if(i<t&&a.timestamp>=t)return!0}return!1}getNextBlock(t,n,r){const i=n+r;return this.checkedBlocks[t].includes(i)?this.getNextBlock(t,n,r<0?++r:--r):(this.checkedBlocks[t].push(i),i)}async getBlockWrapper(t){if(!this.saveBlocks){const r=await this.requestManager.eth_getBlockByNumber(t,!1);return{number:(0,Ts.toBigNumber)(r.number).toNumber(),timestamp:(0,Ts.toBigNumber)(r.timestamp).toNumber()}}if(this.savedBlocks[t.toString()])return this.savedBlocks[t];if(typeof t=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=t)return this.savedBlocks.latest;const{timestamp:n}=await this.requestManager.eth_getBlockByNumber(t,!1);return this.savedBlocks[t.toString()]={number:(0,Ts.toBigNumber)(t==="latest"?await this.requestManager.eth_blockNumber():t).toNumber(),timestamp:(0,Ts.toBigNumber)(n).toNumber()},this.requests++,this.savedBlocks[t.toString()]}}Tp.default=kT;var hn={},Ip={},eE={},ln={};Object.defineProperty(ln,"__esModule",{value:!0});ln.output=ln.exists=ln.hash=ln.bytes=ln.bool=ln.number=void 0;function lu(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}ln.number=lu;function tE(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}ln.bool=tE;function Ap(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}ln.bytes=Ap;function nE(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");lu(e.outputLen),lu(e.blockLen)}ln.hash=nE;function rE(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}ln.exists=rE;function iE(e,t){Ap(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}ln.output=iE;const LT={number:lu,bool:tE,bytes:Ap,hash:nE,exists:rE,output:iE};ln.default=LT;var xa={},il={};Object.defineProperty(il,"__esModule",{value:!0});il.crypto=void 0;il.crypto={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0};(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const t=il,n=H=>new Uint8Array(H.buffer,H.byteOffset,H.byteLength);e.u8=n;const r=H=>new Uint32Array(H.buffer,H.byteOffset,Math.floor(H.byteLength/4));e.u32=r;const i=H=>new DataView(H.buffer,H.byteOffset,H.byteLength);e.createView=i;const a=(H,F)=>H<<32-F|H>>>F;if(e.rotr=a,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},(H,F)=>F.toString(16).padStart(2,"0"));function o(H){if(!(H instanceof Uint8Array))throw new Error("Uint8Array expected");let F="";for(let k=0;k<H.length;k++)F+=s[H[k]];return F}e.bytesToHex=o;function c(H){if(typeof H!="string")throw new TypeError("hexToBytes: expected string, got "+typeof H);if(H.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const F=new Uint8Array(H.length/2);for(let k=0;k<F.length;k++){const j=k*2,te=H.slice(j,j+2),L=Number.parseInt(te,16);if(Number.isNaN(L)||L<0)throw new Error("Invalid byte sequence");F[k]=L}return F}e.hexToBytes=c;const u=async()=>{};e.nextTick=u;async function f(H,F,k){let j=Date.now();for(let te=0;te<H;te++){k(te);const L=Date.now()-j;L>=0&&L<F||(await(0,e.nextTick)(),j+=L)}}e.asyncLoop=f;function l(H){if(typeof H!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof H}`);return new TextEncoder().encode(H)}e.utf8ToBytes=l;function m(H){if(typeof H=="string"&&(H=l(H)),!(H instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof H})`);return H}e.toBytes=m;function g(...H){if(!H.every(j=>j instanceof Uint8Array))throw new Error("Uint8Array list expected");if(H.length===1)return H[0];const F=H.reduce((j,te)=>j+te.length,0),k=new Uint8Array(F);for(let j=0,te=0;j<H.length;j++){const L=H[j];k.set(L,te),te+=L.length}return k}e.concatBytes=g;class _{clone(){return this._cloneInto()}}e.Hash=_;const T=H=>Object.prototype.toString.call(H)==="[object Object]"&&H.constructor===Object;function B(H,F){if(F!==void 0&&(typeof F!="object"||!T(F)))throw new TypeError("Options should be object or undefined");return Object.assign(H,F)}e.checkOpts=B;function U(H){const F=j=>H().update(m(j)).digest(),k=H();return F.outputLen=k.outputLen,F.blockLen=k.blockLen,F.create=()=>H(),F}e.wrapConstructor=U;function J(H){const F=(j,te)=>H(te).update(m(j)).digest(),k=H({});return F.outputLen=k.outputLen,F.blockLen=k.blockLen,F.create=j=>H(j),F}e.wrapConstructorWithOpts=J;function K(H=32){if(t.crypto.web)return t.crypto.web.getRandomValues(new Uint8Array(H));if(t.crypto.node)return new Uint8Array(t.crypto.node.randomBytes(H).buffer);throw new Error("The environment doesn't have randomBytes function")}e.randomBytes=K})(xa);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const t=ln,n=xa;class r extends n.Hash{constructor(s,o){super(),this.finished=!1,this.destroyed=!1,t.default.hash(s);const c=(0,n.toBytes)(o);if(this.iHash=s.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const u=this.blockLen,f=new Uint8Array(u);f.set(c.length>u?s.create().update(c).digest():c);for(let l=0;l<f.length;l++)f[l]^=54;this.iHash.update(f),this.oHash=s.create();for(let l=0;l<f.length;l++)f[l]^=106;this.oHash.update(f),f.fill(0)}update(s){return t.default.exists(this),this.iHash.update(s),this}digestInto(s){t.default.exists(this),t.default.bytes(s,this.outputLen),this.finished=!0,this.iHash.digestInto(s),this.oHash.update(s),this.oHash.digestInto(s),this.destroy()}digest(){const s=new Uint8Array(this.oHash.outputLen);return this.digestInto(s),s}_cloneInto(s){s||(s=Object.create(Object.getPrototypeOf(this),{}));const{oHash:o,iHash:c,finished:u,destroyed:f,blockLen:l,outputLen:m}=this;return s=s,s.finished=u,s.destroyed=f,s.blockLen=l,s.outputLen=m,s.oHash=o._cloneInto(s.oHash),s.iHash=c._cloneInto(s.iHash),s}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const i=(a,s,o)=>new r(a,s).update(o).digest();e.hmac=i,e.hmac.create=(a,s)=>new r(a,s)})(eE);var Yi={},al={};Object.defineProperty(al,"__esModule",{value:!0});al.SHA2=void 0;const ql=ln,Is=xa;function DT(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const i=BigInt(32),a=BigInt(4294967295),s=Number(n>>i&a),o=Number(n&a),c=r?4:0,u=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+u,o,r)}class BT extends Is.Hash{constructor(t,n,r,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,Is.createView)(this.buffer)}update(t){ql.default.exists(this);const{view:n,buffer:r,blockLen:i}=this;t=(0,Is.toBytes)(t);const a=t.length;for(let s=0;s<a;){const o=Math.min(i-this.pos,a-s);if(o===i){const c=(0,Is.createView)(t);for(;i<=a-s;s+=i)this.process(c,s);continue}r.set(t.subarray(s,s+o),this.pos),this.pos+=o,s+=o,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){ql.default.exists(this),ql.default.output(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:i,isLE:a}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(r,0),s=0);for(let l=s;l<i;l++)n[l]=0;DT(r,i-8,BigInt(this.length*8),a),this.process(r,0);const o=(0,Is.createView)(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<u;l++)o.setUint32(4*l,f[l],a)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:i,finished:a,destroyed:s,pos:o}=this;return t.length=i,t.pos=o,t.finished=a,t.destroyed=s,i%n&&t.buffer.set(r),t}}al.SHA2=BT;Object.defineProperty(Yi,"__esModule",{value:!0});Yi.sha224=Yi.sha256=void 0;const FT=al,zn=xa,xT=(e,t,n)=>e&t^~e&n,HT=(e,t,n)=>e&t^e&n^t&n,UT=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ci=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ui=new Uint32Array(64);class aE extends FT.SHA2{constructor(){super(64,32,8,!1),this.A=ci[0]|0,this.B=ci[1]|0,this.C=ci[2]|0,this.D=ci[3]|0,this.E=ci[4]|0,this.F=ci[5]|0,this.G=ci[6]|0,this.H=ci[7]|0}get(){const{A:t,B:n,C:r,D:i,E:a,F:s,G:o,H:c}=this;return[t,n,r,i,a,s,o,c]}set(t,n,r,i,a,s,o,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=a|0,this.F=s|0,this.G=o|0,this.H=c|0}process(t,n){for(let l=0;l<16;l++,n+=4)ui[l]=t.getUint32(n,!1);for(let l=16;l<64;l++){const m=ui[l-15],g=ui[l-2],_=(0,zn.rotr)(m,7)^(0,zn.rotr)(m,18)^m>>>3,T=(0,zn.rotr)(g,17)^(0,zn.rotr)(g,19)^g>>>10;ui[l]=T+ui[l-7]+_+ui[l-16]|0}let{A:r,B:i,C:a,D:s,E:o,F:c,G:u,H:f}=this;for(let l=0;l<64;l++){const m=(0,zn.rotr)(o,6)^(0,zn.rotr)(o,11)^(0,zn.rotr)(o,25),g=f+m+xT(o,c,u)+UT[l]+ui[l]|0,T=((0,zn.rotr)(r,2)^(0,zn.rotr)(r,13)^(0,zn.rotr)(r,22))+HT(r,i,a)|0;f=u,u=c,c=o,o=s+g|0,s=a,a=i,i=r,r=g+T|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,s=s+this.D|0,o=o+this.E|0,c=c+this.F|0,u=u+this.G|0,f=f+this.H|0,this.set(r,i,a,s,o,c,u,f)}roundClean(){ui.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class jT extends aE{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}Yi.sha256=(0,zn.wrapConstructor)(()=>new aE);Yi.sha224=(0,zn.wrapConstructor)(()=>new jT);var Qd={};(function(e){/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.schnorr=e.verify=e.signSync=e.sign=e.getSharedSecret=e.recoverPublicKey=e.getPublicKey=e.Signature=e.Point=e.CURVE=void 0;const t=nT,n=BigInt(0),r=BigInt(1),i=BigInt(2),a=BigInt(3),s=BigInt(8),o=Object.freeze({a:n,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:r,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});e.CURVE=o;const c=(C,b)=>(C+b/i)/b,u={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(C){const{n:b}=o,A=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),D=-r*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Y=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ee=A,me=BigInt("0x100000000000000000000000000000000"),_e=c(ee*C,b),De=c(-D*C,b);let Me=ce(C-_e*A-De*Y,b),ze=ce(-_e*D-De*ee,b);const ut=Me>me,lt=ze>me;if(ut&&(Me=b-Me),lt&&(ze=b-ze),Me>me||ze>me)throw new Error("splitScalarEndo: Endomorphism failed, k="+C);return{k1neg:ut,k1:Me,k2neg:lt,k2:ze}}},f=32,l=32,m=32,g=f+1,_=2*f+1;function T(C){const{a:b,b:A}=o,D=ce(C*C),Y=ce(D*C);return ce(Y+b*C+A)}const B=o.a===n;class U extends Error{constructor(b){super(b)}}function J(C){if(!(C instanceof K))throw new TypeError("JacobianPoint expected")}class K{constructor(b,A,D){this.x=b,this.y=A,this.z=D}static fromAffine(b){if(!(b instanceof k))throw new TypeError("JacobianPoint#fromAffine: expected Point");return b.equals(k.ZERO)?K.ZERO:new K(b.x,b.y,r)}static toAffineBatch(b){const A=tn(b.map(D=>D.z));return b.map((D,Y)=>D.toAffine(A[Y]))}static normalizeZ(b){return K.toAffineBatch(b).map(K.fromAffine)}equals(b){J(b);const{x:A,y:D,z:Y}=this,{x:ee,y:me,z:_e}=b,De=ce(Y*Y),Me=ce(_e*_e),ze=ce(A*Me),ut=ce(ee*De),lt=ce(ce(D*_e)*Me),Vt=ce(ce(me*Y)*De);return ze===ut&&lt===Vt}negate(){return new K(this.x,ce(-this.y),this.z)}double(){const{x:b,y:A,z:D}=this,Y=ce(b*b),ee=ce(A*A),me=ce(ee*ee),_e=b+ee,De=ce(i*(ce(_e*_e)-Y-me)),Me=ce(a*Y),ze=ce(Me*Me),ut=ce(ze-i*De),lt=ce(Me*(De-ut)-s*me),Vt=ce(i*A*D);return new K(ut,lt,Vt)}add(b){J(b);const{x:A,y:D,z:Y}=this,{x:ee,y:me,z:_e}=b;if(ee===n||me===n)return this;if(A===n||D===n)return b;const De=ce(Y*Y),Me=ce(_e*_e),ze=ce(A*Me),ut=ce(ee*De),lt=ce(ce(D*_e)*Me),Vt=ce(ce(me*Y)*De),Ht=ce(ut-ze),an=ce(Vt-lt);if(Ht===n)return an===n?this.double():K.ZERO;const ri=ce(Ht*Ht),Pr=ce(Ht*ri),ii=ce(ze*ri),pa=ce(an*an-Pr-i*ii),On=ce(an*(ii-pa)-lt*Pr),ki=ce(Y*_e*Ht);return new K(pa,On,ki)}subtract(b){return this.add(b.negate())}multiplyUnsafe(b){const A=K.ZERO;if(typeof b=="bigint"&&b===n)return A;let D=Xe(b);if(D===r)return this;if(!B){let ut=A,lt=this;for(;D>n;)D&r&&(ut=ut.add(lt)),lt=lt.double(),D>>=r;return ut}let{k1neg:Y,k1:ee,k2neg:me,k2:_e}=u.splitScalar(D),De=A,Me=A,ze=this;for(;ee>n||_e>n;)ee&r&&(De=De.add(ze)),_e&r&&(Me=Me.add(ze)),ze=ze.double(),ee>>=r,_e>>=r;return Y&&(De=De.negate()),me&&(Me=Me.negate()),Me=new K(ce(Me.x*u.beta),Me.y,Me.z),De.add(Me)}precomputeWindow(b){const A=B?128/b+1:256/b+1,D=[];let Y=this,ee=Y;for(let me=0;me<A;me++){ee=Y,D.push(ee);for(let _e=1;_e<2**(b-1);_e++)ee=ee.add(Y),D.push(ee);Y=ee.double()}return D}wNAF(b,A){!A&&this.equals(K.BASE)&&(A=k.BASE);const D=A&&A._WINDOW_SIZE||1;if(256%D)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let Y=A&&F.get(A);Y||(Y=this.precomputeWindow(D),A&&D!==1&&(Y=K.normalizeZ(Y),F.set(A,Y)));let ee=K.ZERO,me=K.BASE;const _e=1+(B?128/D:256/D),De=2**(D-1),Me=BigInt(2**D-1),ze=2**D,ut=BigInt(D);for(let lt=0;lt<_e;lt++){const Vt=lt*De;let Ht=Number(b&Me);b>>=ut,Ht>De&&(Ht-=ze,b+=r);const an=Vt,ri=Vt+Math.abs(Ht)-1,Pr=lt%2!==0,ii=Ht<0;Ht===0?me=me.add(H(Pr,Y[an])):ee=ee.add(H(ii,Y[ri]))}return{p:ee,f:me}}multiply(b,A){let D=Xe(b),Y,ee;if(B){const{k1neg:me,k1:_e,k2neg:De,k2:Me}=u.splitScalar(D);let{p:ze,f:ut}=this.wNAF(_e,A),{p:lt,f:Vt}=this.wNAF(Me,A);ze=H(me,ze),lt=H(De,lt),lt=new K(ce(lt.x*u.beta),lt.y,lt.z),Y=ze.add(lt),ee=ut.add(Vt)}else{const{p:me,f:_e}=this.wNAF(D,A);Y=me,ee=_e}return K.normalizeZ([Y,ee])[0]}toAffine(b){const{x:A,y:D,z:Y}=this,ee=this.equals(K.ZERO);b==null&&(b=ee?s:vt(Y));const me=b,_e=ce(me*me),De=ce(_e*me),Me=ce(A*_e),ze=ce(D*De),ut=ce(Y*me);if(ee)return k.ZERO;if(ut!==r)throw new Error("invZ was invalid");return new k(Me,ze)}}K.BASE=new K(o.Gx,o.Gy,r),K.ZERO=new K(n,r,n);function H(C,b){const A=b.negate();return C?A:b}const F=new WeakMap;class k{constructor(b,A){this.x=b,this.y=A}_setWindowSize(b){this._WINDOW_SIZE=b,F.delete(this)}hasEvenY(){return this.y%i===n}static fromCompressedHex(b){const A=b.length===32,D=fe(A?b:b.subarray(1));if(!nt(D))throw new Error("Point is not on curve");const Y=T(D);let ee=Et(Y);const me=(ee&r)===r;A?me&&(ee=ce(-ee)):(b[0]&1)===1!==me&&(ee=ce(-ee));const _e=new k(D,ee);return _e.assertValidity(),_e}static fromUncompressedHex(b){const A=fe(b.subarray(1,f+1)),D=fe(b.subarray(f+1,f*2+1)),Y=new k(A,D);return Y.assertValidity(),Y}static fromHex(b){const A=Se(b),D=A.length,Y=A[0];if(D===f)return this.fromCompressedHex(A);if(D===g&&(Y===2||Y===3))return this.fromCompressedHex(A);if(D===_&&Y===4)return this.fromUncompressedHex(A);throw new Error(`Point.fromHex: received invalid point. Expected 32-${g} compressed bytes or ${_} uncompressed bytes, not ${D}`)}static fromPrivateKey(b){return k.BASE.multiply(Je(b))}static fromSignature(b,A,D){const{r:Y,s:ee}=Lt(A);if(![0,1,2,3].includes(D))throw new Error("Cannot recover: invalid recovery bit");const me=Gn(Se(b)),{n:_e}=o,De=D===2||D===3?Y+_e:Y,Me=vt(De,_e),ze=ce(-me*Me,_e),ut=ce(ee*Me,_e),lt=D&1?"03":"02",Vt=k.fromHex(lt+pe(De)),Ht=k.BASE.multiplyAndAddUnsafe(Vt,ze,ut);if(!Ht)throw new Error("Cannot recover signature: point at infinify");return Ht.assertValidity(),Ht}toRawBytes(b=!1){return ge(this.toHex(b))}toHex(b=!1){const A=pe(this.x);return b?`${this.hasEvenY()?"02":"03"}${A}`:`04${A}${pe(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const b="Point is not on elliptic curve",{x:A,y:D}=this;if(!nt(A)||!nt(D))throw new Error(b);const Y=ce(D*D),ee=T(A);if(ce(Y-ee)!==n)throw new Error(b)}equals(b){return this.x===b.x&&this.y===b.y}negate(){return new k(this.x,ce(-this.y))}double(){return K.fromAffine(this).double().toAffine()}add(b){return K.fromAffine(this).add(K.fromAffine(b)).toAffine()}subtract(b){return this.add(b.negate())}multiply(b){return K.fromAffine(this).multiply(b,this).toAffine()}multiplyAndAddUnsafe(b,A,D){const Y=K.fromAffine(this),ee=A===n||A===r||this!==k.BASE?Y.multiplyUnsafe(A):Y.multiply(A),me=K.fromAffine(b).multiplyUnsafe(D),_e=ee.add(me);return _e.equals(K.ZERO)?void 0:_e.toAffine()}}e.Point=k,k.BASE=new k(o.Gx,o.Gy),k.ZERO=new k(n,n);function j(C){return Number.parseInt(C[0],16)>=8?"00"+C:C}function te(C){if(C.length<2||C[0]!==2)throw new Error(`Invalid signature integer tag: ${ae(C)}`);const b=C[1],A=C.subarray(2,b+2);if(!b||A.length!==b)throw new Error("Invalid signature integer: wrong length");if(A[0]===0&&A[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:fe(A),left:C.subarray(b+2)}}function L(C){if(C.length<2||C[0]!=48)throw new Error(`Invalid signature tag: ${ae(C)}`);if(C[1]!==C.length-2)throw new Error("Invalid signature: incorrect length");const{data:b,left:A}=te(C.subarray(2)),{data:D,left:Y}=te(A);if(Y.length)throw new Error(`Invalid signature: left bytes after parsing: ${ae(Y)}`);return{r:b,s:D}}class G{constructor(b,A){this.r=b,this.s=A,this.assertValidity()}static fromCompact(b){const A=b instanceof Uint8Array,D="Signature.fromCompact";if(typeof b!="string"&&!A)throw new TypeError(`${D}: Expected string or Uint8Array`);const Y=A?ae(b):b;if(Y.length!==128)throw new Error(`${D}: Expected 64-byte hex`);return new G(ve(Y.slice(0,64)),ve(Y.slice(64,128)))}static fromDER(b){const A=b instanceof Uint8Array;if(typeof b!="string"&&!A)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:D,s:Y}=L(A?b:ge(b));return new G(D,Y)}static fromHex(b){return this.fromDER(b)}assertValidity(){const{r:b,s:A}=this;if(!Wt(b))throw new Error("Invalid Signature: r must be 0 < r < n");if(!Wt(A))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const b=o.n>>r;return this.s>b}normalizeS(){return this.hasHighS()?new G(this.r,ce(-this.s,o.n)):this}toDERRawBytes(){return ge(this.toDERHex())}toDERHex(){const b=j($(this.s)),A=j($(this.r)),D=b.length/2,Y=A.length/2,ee=$(D),me=$(Y);return`30${$(Y+D+4)}02${me}${A}02${ee}${b}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return ge(this.toCompactHex())}toCompactHex(){return pe(this.r)+pe(this.s)}}e.Signature=G;function W(...C){if(!C.every(D=>D instanceof Uint8Array))throw new Error("Uint8Array list expected");if(C.length===1)return C[0];const b=C.reduce((D,Y)=>D+Y.length,0),A=new Uint8Array(b);for(let D=0,Y=0;D<C.length;D++){const ee=C[D];A.set(ee,Y),Y+=ee.length}return A}const z=Array.from({length:256},(C,b)=>b.toString(16).padStart(2,"0"));function ae(C){if(!(C instanceof Uint8Array))throw new Error("Expected Uint8Array");let b="";for(let A=0;A<C.length;A++)b+=z[C[A]];return b}const Ee=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function pe(C){if(typeof C!="bigint")throw new Error("Expected bigint");if(!(n<=C&&C<Ee))throw new Error("Expected number 0 <= n < 2^256");return C.toString(16).padStart(64,"0")}function le(C){const b=ge(pe(C));if(b.length!==32)throw new Error("Error: expected 32 bytes");return b}function $(C){const b=C.toString(16);return b.length&1?`0${b}`:b}function ve(C){if(typeof C!="string")throw new TypeError("hexToNumber: expected string, got "+typeof C);return BigInt(`0x${C}`)}function ge(C){if(typeof C!="string")throw new TypeError("hexToBytes: expected string, got "+typeof C);if(C.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+C.length);const b=new Uint8Array(C.length/2);for(let A=0;A<b.length;A++){const D=A*2,Y=C.slice(D,D+2),ee=Number.parseInt(Y,16);if(Number.isNaN(ee)||ee<0)throw new Error("Invalid byte sequence");b[A]=ee}return b}function fe(C){return ve(ae(C))}function Se(C){return C instanceof Uint8Array?Uint8Array.from(C):ge(C)}function Xe(C){if(typeof C=="number"&&Number.isSafeInteger(C)&&C>0)return BigInt(C);if(typeof C=="bigint"&&Wt(C))return C;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function ce(C,b=o.P){const A=C%b;return A>=n?A:b+A}function He(C,b){const{P:A}=o;let D=C;for(;b-- >n;)D*=D,D%=A;return D}function Et(C){const{P:b}=o,A=BigInt(6),D=BigInt(11),Y=BigInt(22),ee=BigInt(23),me=BigInt(44),_e=BigInt(88),De=C*C*C%b,Me=De*De*C%b,ze=He(Me,a)*Me%b,ut=He(ze,a)*Me%b,lt=He(ut,i)*De%b,Vt=He(lt,D)*lt%b,Ht=He(Vt,Y)*Vt%b,an=He(Ht,me)*Ht%b,ri=He(an,_e)*an%b,Pr=He(ri,me)*Ht%b,ii=He(Pr,a)*Me%b,pa=He(ii,ee)*Vt%b,On=He(pa,A)*De%b,ki=He(On,i);if(ki*ki%b!==C)throw new Error("Cannot find square root");return ki}function vt(C,b=o.P){if(C===n||b<=n)throw new Error(`invert: expected positive integers, got n=${C} mod=${b}`);let A=ce(C,b),D=b,Y=n,ee=r;for(;A!==n;){const _e=D/A,De=D%A,Me=Y-ee*_e;D=A,A=De,Y=ee,ee=Me}if(D!==r)throw new Error("invert: does not exist");return ce(Y,b)}function tn(C,b=o.P){const A=new Array(C.length),D=C.reduce((ee,me,_e)=>me===n?ee:(A[_e]=ee,ce(ee*me,b)),r),Y=vt(D,b);return C.reduceRight((ee,me,_e)=>me===n?ee:(A[_e]=ce(ee*A[_e],b),ce(ee*me,b)),Y),A}function nn(C){const b=C.length*8-l*8,A=fe(C);return b>0?A>>BigInt(b):A}function Gn(C,b=!1){const A=nn(C);if(b)return A;const{n:D}=o;return A>=D?A-D:A}let Ne,pt;class gt{constructor(b,A){if(this.hashLen=b,this.qByteLen=A,typeof b!="number"||b<2)throw new Error("hashLen must be a number");if(typeof A!="number"||A<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(b).fill(1),this.k=new Uint8Array(b).fill(0),this.counter=0}hmac(...b){return e.utils.hmacSha256(this.k,...b)}hmacSync(...b){return pt(this.k,...b)}checkSync(){if(typeof pt!="function")throw new U("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(b=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),b),this.v=await this.hmac(this.v),b.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),b),this.v=await this.hmac(this.v))}reseedSync(b=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),b),this.v=this.hmacSync(this.v),b.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),b),this.v=this.hmacSync(this.v))}async generate(){this.incr();let b=0;const A=[];for(;b<this.qByteLen;){this.v=await this.hmac(this.v);const D=this.v.slice();A.push(D),b+=this.v.length}return W(...A)}generateSync(){this.checkSync(),this.incr();let b=0;const A=[];for(;b<this.qByteLen;){this.v=this.hmacSync(this.v);const D=this.v.slice();A.push(D),b+=this.v.length}return W(...A)}}function Wt(C){return n<C&&C<o.n}function nt(C){return n<C&&C<o.P}function rt(C,b,A,D=!0){const{n:Y}=o,ee=Gn(C,!0);if(!Wt(ee))return;const me=vt(ee,Y),_e=k.BASE.multiply(ee),De=ce(_e.x,Y);if(De===n)return;const Me=ce(me*ce(b+A*De,Y),Y);if(Me===n)return;let ze=new G(De,Me),ut=(_e.x===ze.r?0:2)|Number(_e.y&r);return D&&ze.hasHighS()&&(ze=ze.normalizeS(),ut^=1),{sig:ze,recovery:ut}}function Je(C){let b;if(typeof C=="bigint")b=C;else if(typeof C=="number"&&Number.isSafeInteger(C)&&C>0)b=BigInt(C);else if(typeof C=="string"){if(C.length!==2*l)throw new Error("Expected 32 bytes of private key");b=ve(C)}else if(C instanceof Uint8Array){if(C.length!==l)throw new Error("Expected 32 bytes of private key");b=fe(C)}else throw new TypeError("Expected valid private key");if(!Wt(b))throw new Error("Expected private key: 0 < key < n");return b}function yn(C){return C instanceof k?(C.assertValidity(),C):k.fromHex(C)}function Lt(C){if(C instanceof G)return C.assertValidity(),C;try{return G.fromDER(C)}catch{return G.fromCompact(C)}}function ti(C,b=!1){return k.fromPrivateKey(C).toRawBytes(b)}e.getPublicKey=ti;function Qe(C,b,A,D=!1){return k.fromSignature(C,b,A).toRawBytes(D)}e.recoverPublicKey=Qe;function rn(C){const b=C instanceof Uint8Array,A=typeof C=="string",D=(b||A)&&C.length;return b?D===g||D===_:A?D===g*2||D===_*2:C instanceof k}function et(C,b,A=!1){if(rn(C))throw new TypeError("getSharedSecret: first arg must be private key");if(!rn(b))throw new TypeError("getSharedSecret: second arg must be public key");const D=yn(b);return D.assertValidity(),D.multiply(Je(C)).toRawBytes(A)}e.getSharedSecret=et;function Dt(C){const b=C.length>f?C.slice(0,f):C;return fe(b)}function ot(C){const b=Dt(C),A=ce(b,o.n);return Ln(A<n?b:A)}function Ln(C){return le(C)}function _s(C,b,A){if(C==null)throw new Error(`sign: expected valid message hash, not "${C}"`);const D=Se(C),Y=Je(b),ee=[Ln(Y),ot(D)];if(A!=null){A===!0&&(A=e.utils.randomBytes(f));const De=Se(A);if(De.length!==f)throw new Error(`sign: Expected ${f} bytes of extra data`);ee.push(De)}const me=W(...ee),_e=Dt(D);return{seed:me,m:_e,d:Y}}function bs(C,b){const{sig:A,recovery:D}=C,{der:Y,recovered:ee}=Object.assign({canonical:!0,der:!0},b),me=Y?A.toDERRawBytes():A.toCompactRawBytes();return ee?[me,D]:me}async function An(C,b,A={}){const{seed:D,m:Y,d:ee}=_s(C,b,A.extraEntropy),me=new gt(m,l);await me.reseed(D);let _e;for(;!(_e=rt(await me.generate(),Y,ee,A.canonical));)await me.reseed();return bs(_e,A)}e.sign=An;function Pi(C,b,A={}){const{seed:D,m:Y,d:ee}=_s(C,b,A.extraEntropy),me=new gt(m,l);me.reseedSync(D);let _e;for(;!(_e=rt(me.generateSync(),Y,ee,A.canonical));)me.reseedSync();return bs(_e,A)}e.signSync=Pi;const Nr={strict:!0};function la(C,b,A,D=Nr){let Y;try{Y=Lt(C),b=Se(b)}catch{return!1}const{r:ee,s:me}=Y;if(D.strict&&Y.hasHighS())return!1;const _e=Gn(b);let De;try{De=yn(A)}catch{return!1}const{n:Me}=o,ze=vt(me,Me),ut=ce(_e*ze,Me),lt=ce(ee*ze,Me),Vt=k.BASE.multiplyAndAddUnsafe(De,ut,lt);return Vt?ce(Vt.x,Me)===ee:!1}e.verify=la;function qn(C){return ce(fe(C),o.n)}class Mr{constructor(b,A){this.r=b,this.s=A,this.assertValidity()}static fromHex(b){const A=Se(b);if(A.length!==64)throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${A.length}`);const D=fe(A.subarray(0,32)),Y=fe(A.subarray(32,64));return new Mr(D,Y)}assertValidity(){const{r:b,s:A}=this;if(!nt(b)||!Wt(A))throw new Error("Invalid signature")}toHex(){return pe(this.r)+pe(this.s)}toRawBytes(){return ge(this.toHex())}}function $n(C){return k.fromPrivateKey(C).toRawX()}class da{constructor(b,A,D=e.utils.randomBytes()){if(b==null)throw new TypeError(`sign: Expected valid message, not "${b}"`);this.m=Se(b);const{x:Y,scalar:ee}=this.getScalar(Je(A));if(this.px=Y,this.d=ee,this.rand=Se(D),this.rand.length!==32)throw new TypeError("sign: Expected 32 bytes of aux randomness")}getScalar(b){const A=k.fromPrivateKey(b),D=A.hasEvenY()?b:o.n-b;return{point:A,scalar:D,x:A.toRawX()}}initNonce(b,A){return le(b^fe(A))}finalizeNonce(b){const A=ce(fe(b),o.n);if(A===n)throw new Error("sign: Creation of signature failed. k is zero");const{point:D,x:Y,scalar:ee}=this.getScalar(A);return{R:D,rx:Y,k:ee}}finalizeSig(b,A,D,Y){return new Mr(b.x,ce(A+D*Y,o.n)).toRawBytes()}error(){throw new Error("sign: Invalid signature produced")}async calc(){const{m:b,d:A,px:D,rand:Y}=this,ee=e.utils.taggedHash,me=this.initNonce(A,await ee(Wn.aux,Y)),{R:_e,rx:De,k:Me}=this.finalizeNonce(await ee(Wn.nonce,me,D,b)),ze=qn(await ee(Wn.challenge,De,D,b)),ut=this.finalizeSig(_e,Me,ze,A);return await Ss(ut,b,D)||this.error(),ut}calcSync(){const{m:b,d:A,px:D,rand:Y}=this,ee=e.utils.taggedHashSync,me=this.initNonce(A,ee(Wn.aux,Y)),{R:_e,rx:De,k:Me}=this.finalizeNonce(ee(Wn.nonce,me,D,b)),ze=qn(ee(Wn.challenge,De,D,b)),ut=this.finalizeSig(_e,Me,ze,A);return gr(ut,b,D)||this.error(),ut}}async function ni(C,b,A){return new da(C,b,A).calc()}function Es(C,b,A){return new da(C,b,A).calcSync()}function vs(C,b,A){const D=C instanceof Mr,Y=D?C:Mr.fromHex(C);return D&&Y.assertValidity(),{...Y,m:Se(b),P:yn(A)}}function fa(C,b,A,D){const Y=k.BASE.multiplyAndAddUnsafe(b,Je(A),ce(-D,o.n));return!(!Y||!Y.hasEvenY()||Y.x!==C)}async function Ss(C,b,A){try{const{r:D,s:Y,m:ee,P:me}=vs(C,b,A),_e=qn(await e.utils.taggedHash(Wn.challenge,le(D),me.toRawX(),ee));return fa(D,me,Y,_e)}catch{return!1}}function gr(C,b,A){try{const{r:D,s:Y,m:ee,P:me}=vs(C,b,A),_e=qn(e.utils.taggedHashSync(Wn.challenge,le(D),me.toRawX(),ee));return fa(D,me,Y,_e)}catch(D){if(D instanceof U)throw D;return!1}}e.schnorr={Signature:Mr,getPublicKey:$n,sign:ni,verify:Ss,signSync:Es,verifySync:gr},k.BASE._setWindowSize(8);const bt={node:t,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},Wn={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},er={};e.utils={bytesToHex:ae,hexToBytes:ge,concatBytes:W,mod:ce,invert:vt,isValidPrivateKey(C){try{return Je(C),!0}catch{return!1}},_bigintTo32Bytes:le,_normalizePrivateKey:Je,hashToPrivateKey:C=>{C=Se(C);const b=l+8;if(C.length<b||C.length>1024)throw new Error("Expected valid bytes of private key as per FIPS 186");const A=ce(fe(C),o.n-r)+r;return le(A)},randomBytes:(C=32)=>{if(bt.web)return bt.web.getRandomValues(new Uint8Array(C));if(bt.node){const{randomBytes:b}=bt.node;return Uint8Array.from(b(C))}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>e.utils.hashToPrivateKey(e.utils.randomBytes(l+8)),precompute(C=8,b=k.BASE){const A=b===k.BASE?b:new k(b.x,b.y);return A._setWindowSize(C),A.multiply(a),A},sha256:async(...C)=>{if(bt.web){const b=await bt.web.subtle.digest("SHA-256",W(...C));return new Uint8Array(b)}else if(bt.node){const{createHash:b}=bt.node,A=b("sha256");return C.forEach(D=>A.update(D)),Uint8Array.from(A.digest())}else throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(C,...b)=>{if(bt.web){const A=await bt.web.subtle.importKey("raw",C,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),D=W(...b),Y=await bt.web.subtle.sign("HMAC",A,D);return new Uint8Array(Y)}else if(bt.node){const{createHmac:A}=bt.node,D=A("sha256",C);return b.forEach(Y=>D.update(Y)),Uint8Array.from(D.digest())}else throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(C,...b)=>{let A=er[C];if(A===void 0){const D=await e.utils.sha256(Uint8Array.from(C,Y=>Y.charCodeAt(0)));A=W(D,D),er[C]=A}return e.utils.sha256(A,...b)},taggedHashSync:(C,...b)=>{if(typeof Ne!="function")throw new U("sha256Sync is undefined, you need to set it");let A=er[C];if(A===void 0){const D=Ne(Uint8Array.from(C,Y=>Y.charCodeAt(0)));A=W(D,D),er[C]=A}return Ne(A,...b)},_JacobianPoint:K},Object.defineProperties(e.utils,{sha256Sync:{configurable:!1,get(){return Ne},set(C){Ne||(Ne=C)}},hmacSha256Sync:{configurable:!1,get(){return pt},set(C){pt||(pt=C)}}})})(Qd);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.schnorr=e.Signature=e.Point=e.CURVE=e.utils=e.getSharedSecret=e.recoverPublicKey=e.verify=e.signSync=e.sign=e.getPublicKey=void 0;const t=eE,n=Yi,r=Qd;var i=Qd;Object.defineProperty(e,"getPublicKey",{enumerable:!0,get:function(){return i.getPublicKey}}),Object.defineProperty(e,"sign",{enumerable:!0,get:function(){return i.sign}}),Object.defineProperty(e,"signSync",{enumerable:!0,get:function(){return i.signSync}}),Object.defineProperty(e,"verify",{enumerable:!0,get:function(){return i.verify}}),Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return i.recoverPublicKey}}),Object.defineProperty(e,"getSharedSecret",{enumerable:!0,get:function(){return i.getSharedSecret}}),Object.defineProperty(e,"utils",{enumerable:!0,get:function(){return i.utils}}),Object.defineProperty(e,"CURVE",{enumerable:!0,get:function(){return i.CURVE}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return i.Point}}),Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return i.Signature}}),Object.defineProperty(e,"schnorr",{enumerable:!0,get:function(){return i.schnorr}}),r.utils.hmacSha256Sync=(a,...s)=>{const o=t.hmac.create(n.sha256,a);return s.forEach(c=>o.update(c)),o.digest()}})(Ip);var Ke={};function tm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var du={exports:{}};du.exports;(function(e,t){var n=ie&&ie.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.wrapHash=t.equalsBytes=t.hexToBytes=t.bytesToUtf8=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0;const r=n(ln),i=xa,a=r.default.bool;t.assertBool=a;const s=r.default.bytes;t.assertBytes=s;var o=xa;Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return o.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return o.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return o.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return o.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return o.utf8ToBytes}});function c(m){if(!(m instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof m}`);return new TextDecoder().decode(m)}t.bytesToUtf8=c;function u(m){const g=m.startsWith("0x")?m.substring(2):m;return(0,i.hexToBytes)(g)}t.hexToBytes=u;function f(m,g){if(m.length!==g.length)return!1;for(let _=0;_<m.length;_++)if(m[_]!==g[_])return!1;return!0}t.equalsBytes=f;function l(m){return g=>(r.default.bytes(g),m(g))}t.wrapHash=l,t.crypto=(()=>{const m=typeof self=="object"&&"crypto"in self?self.crypto:void 0,g=typeof tm=="function"&&tm.bind(e);return{node:g&&!m?g("crypto"):void 0,web:m}})()})(du,du.exports);var VT=du.exports,GT=ie&&ie.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),qT=ie&&ie.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),WT=ie&&ie.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&GT(t,e,n);return qT(t,e),t};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.contextRandomize=Ke.ecdh=Ke.signatureNormalize=Ke.signatureImport=Ke.signatureExport=Ke.privateKeyTweakMul=Ke.publicKeyTweakMul=Ke.publicKeyTweakAdd=Ke.publicKeyCombine=Ke.publicKeyNegate=Ke.privateKeyNegate=Ke.privateKeyTweakAdd=Ke.ecdsaVerify=Ke.ecdsaRecover=Ke.ecdsaSign=Ke.publicKeyConvert=Ke.publicKeyVerify=Ke.publicKeyCreate=Ke.privateKeyVerify=Ke.createPrivateKey=Ke.createPrivateKeySync=void 0;const zT=Yi,Ft=WT(Ip),We=VT;function YT(e){if(typeof e!="string")throw new TypeError("hexToNumber: expected string, got "+typeof e);return BigInt(`0x${e}`)}const bi=e=>YT((0,We.toHex)(e)),sl=e=>e.toString(16).padStart(64,"0"),$d=e=>(0,We.hexToBytes)(sl(e)),{mod:sE}=Ft.utils,or=Ft.CURVE.n;function Kn(e=r=>new Uint8Array(r),t,n){return typeof e=="function"&&(e=e(t)),(0,We.assertBytes)(e,t),n&&e.set(n),e}function qs(e){return(0,We.assertBytes)(e,64),Ft.Signature.fromCompact(e)}function oE(){return Ft.utils.randomPrivateKey()}Ke.createPrivateKeySync=oE;async function KT(){return oE()}Ke.createPrivateKey=KT;function XT(e){return(0,We.assertBytes)(e,32),Ft.utils.isValidPrivateKey(e)}Ke.privateKeyVerify=XT;function JT(e,t=!0,n){(0,We.assertBytes)(e,32),(0,We.assertBool)(t);const r=Ft.getPublicKey(e,t);return Kn(n,t?33:65,r)}Ke.publicKeyCreate=JT;function ZT(e){(0,We.assertBytes)(e,33,65);try{return Ft.Point.fromHex(e),!0}catch{return!1}}Ke.publicKeyVerify=ZT;function QT(e,t=!0,n){(0,We.assertBytes)(e,33,65),(0,We.assertBool)(t);const r=Ft.Point.fromHex(e).toRawBytes(t);return Kn(n,t?33:65,r)}Ke.publicKeyConvert=QT;function $T(e,t,n={noncefn:void 0,data:void 0},r){if((0,We.assertBytes)(e,32),(0,We.assertBytes)(t,32),typeof n!="object"||n===null)throw new TypeError("secp256k1.ecdsaSign: options should be object");if(n&&(n.noncefn!==void 0||n.data!==void 0))throw new Error("Secp256k1: noncefn && data is unsupported");const[i,a]=Ft.signSync(e,t,{recovered:!0,der:!1});return{signature:Kn(r,64,i),recid:a}}Ke.ecdsaSign=$T;function eI(e,t,n,r=!0,i){(0,We.assertBytes)(n,32),(0,We.assertBool)(r);const a=qs(e).toHex(),s=Ft.Point.fromSignature(n,a,t);return Kn(i,r?33:65,s.toRawBytes(r))}Ke.ecdsaRecover=eI;function tI(e,t,n){(0,We.assertBytes)(e,64),(0,We.assertBytes)(t,32),(0,We.assertBytes)(n,33,65),(0,We.assertBytes)(e,64);const r=bi(e.slice(0,32)),i=bi(e.slice(32,64));if(r>=or||i>=or)throw new Error("Cannot parse signature");const a=Ft.Point.fromHex(n);let s;try{s=qs(e)}catch{return!1}return Ft.verify(s,t,a)}Ke.ecdsaVerify=tI;function nI(e,t){(0,We.assertBytes)(e,32),(0,We.assertBytes)(t,32);let n=bi(t);if(n===0n)throw new Error("Tweak must not be zero");if(n>=or)throw new Error("Tweak bigger than curve order");if(n+=bi(e),n>=or&&(n-=or),n===0n)throw new Error("The tweak was out of range or the resulted private key is invalid");return e.set((0,We.hexToBytes)(sl(n))),e}Ke.privateKeyTweakAdd=nI;function rI(e){(0,We.assertBytes)(e,32);const t=sE(-bi(e),or);return e.set((0,We.hexToBytes)(sl(t))),e}Ke.privateKeyNegate=rI;function iI(e,t=!0,n){(0,We.assertBytes)(e,33,65),(0,We.assertBool)(t);const r=Ft.Point.fromHex(e).negate();return Kn(n,t?33:65,r.toRawBytes(t))}Ke.publicKeyNegate=iI;function aI(e,t=!0,n){if(!Array.isArray(e)||!e.length)throw new TypeError(`Expected array with one or more items, not ${e}`);for(const i of e)(0,We.assertBytes)(i,33,65);(0,We.assertBool)(t);const r=e.map(i=>Ft.Point.fromHex(i)).reduce((i,a)=>i.add(a),Ft.Point.ZERO);if(r.equals(Ft.Point.ZERO))throw new Error("Combined result must not be zero");return Kn(n,t?33:65,r.toRawBytes(t))}Ke.publicKeyCombine=aI;function sI(e,t,n=!0,r){(0,We.assertBytes)(e,33,65),(0,We.assertBytes)(t,32),(0,We.assertBool)(n);const i=Ft.Point.fromHex(e),a=Ft.Point.fromPrivateKey(t),s=i.add(a);if(a.equals(Ft.Point.ZERO)||s.equals(Ft.Point.ZERO))throw new Error("Tweak must not be zero");return Kn(r,n?33:65,s.toRawBytes(n))}Ke.publicKeyTweakAdd=sI;function oI(e,t,n=!0,r){(0,We.assertBytes)(e,33,65),(0,We.assertBytes)(t,32),(0,We.assertBool)(n);const i=bi(t);if(i===0n)throw new Error("Tweak must not be zero");if(i<=1||i>=or)throw new Error("Tweak is zero or bigger than curve order");const a=Ft.Point.fromHex(e).multiply(i);return Kn(r,n?33:65,a.toRawBytes(n))}Ke.publicKeyTweakMul=oI;function cI(e,t){(0,We.assertBytes)(e,32),(0,We.assertBytes)(t,32);const n=bi(t);if(n<=1||n>=or)throw new Error("Tweak is zero or bigger than curve order");const r=sE(n*bi(e),or);if(r===0n)throw new Error("The tweak was out of range or the resulted private key is invalid");return e.set((0,We.hexToBytes)(sl(r))),e}Ke.privateKeyTweakMul=cI;function uI(e,t){const n=qs(e).toRawBytes();return Kn(t,72,qs(e).toRawBytes()).slice(0,n.length)}Ke.signatureExport=uI;function lI(e,t){(0,We.assertBytes)(e);const n=Ft.Signature.fromDER(e);return Kn(t,64,(0,We.hexToBytes)(n.toCompactHex()))}Ke.signatureImport=lI;function dI(e){const t=qs(e);return t.s>or/2n&&e.set($d(or-t.s),32),e}Ke.signatureNormalize=dI;function fI(e,t,n={},r){if((0,We.assertBytes)(e,33,65),(0,We.assertBytes)(t,32),typeof n!="object"||n===null)throw new TypeError("secp256k1.ecdh: options should be object");n.data!==void 0&&(0,We.assertBytes)(n.data);const i=Ft.Point.fromHex(Ft.getSharedSecret(t,e));if(n.hashfn===void 0)return Kn(r,32,(0,zT.sha256)(i.toRawBytes(!0)));if(typeof n.hashfn!="function")throw new TypeError("secp256k1.ecdh: options.hashfn should be function");n.xbuf!==void 0&&(0,We.assertBytes)(n.xbuf,32),n.ybuf!==void 0&&(0,We.assertBytes)(n.ybuf,32),(0,We.assertBytes)(r,32);const a=n.xbuf||new Uint8Array(32);a.set($d(i.x));const s=n.ybuf||new Uint8Array(32);s.set($d(i.y));const o=n.hashfn(a,s,n.data);if(!(o instanceof Uint8Array)||o.length!==32)throw new Error("secp256k1.ecdh: invalid options.hashfn output");return Kn(r,32,o)}Ke.ecdh=fI;function pI(e){e!==null&&(0,We.assertBytes)(e,32)}Ke.contextRandomize=pI;Object.defineProperty(hn,"__esModule",{value:!0});hn.createUnsafeIdentity=hn.computeAddress=hn.ethSign=hn.createEthereumMessageHash=hn.sign=hn.recoverAddressFromEthSignature=hn.recoverPublicKey=void 0;const xn=Wu,nm=Ip,cE=Ke;function uE(e,t){if(e.length!==65)throw new Error("Invalid signature length"+e.length);const n=e.slice(0,e.length-1),r=e[64]===28?1:0;return(0,cE.ecdsaRecover)(n,r,t,!1).slice(1)}hn.recoverPublicKey=uE;function hI(e){if(e.length!==65)throw new Error("Invalid ethereum signature");const t=e[64];if(t===0||t===1){const n=new Uint8Array(e);return n[64]=t+27,n}return e}function lE(e,t){if(typeof e=="string"){if((0,xn.isHex)(e))return lE((0,xn.hexToBytes)(e),t);throw new Error("String signatures must be encoded in hex")}return Rp(uE(hI(e),Op(t)))}hn.recoverAddressFromEthSignature=lE;function dE(e,t){const n=(0,cE.ecdsaSign)(t,e),r=n.recid===1?"1c":"1b";return(0,xn.toHex)(n.signature)+r}hn.sign=dE;function Op(e){const t=typeof e=="string"?(0,xn.stringToUtf8Bytes)(e):e,n=(0,xn.concatBytes)((0,xn.stringToUtf8Bytes)(`Ethereum Signed Message:
14
+ `),(0,xn.stringToUtf8Bytes)(String(t.length)),t);return(0,xn.hexToBytes)((0,xn.sha3)(n))}hn.createEthereumMessageHash=Op;function mI(e,t){return dE(e,Op(t))}hn.ethSign=mI;function Rp(e){const t=e.length===65&&e[0]===4?e.slice(1):e;return(0,xn.getAddress)((0,xn.sha3)(t).substring(24))}hn.computeAddress=Rp;function gI(){const e=nm.utils.randomPrivateKey(),t=(0,nm.getPublicKey)(e).slice(1),n=Rp(t);return{privateKey:(0,xn.bytesToHex)(e),publicKey:(0,xn.bytesToHex)(t),address:n}}hn.createUnsafeIdentity=gI;(function(e){var t=ie&&ie.__createBinding||(Object.create?function(L,G,W,z){z===void 0&&(z=W);var ae=Object.getOwnPropertyDescriptor(G,W);(!ae||("get"in ae?!G.__esModule:ae.writable||ae.configurable))&&(ae={enumerable:!0,get:function(){return G[W]}}),Object.defineProperty(L,z,ae)}:function(L,G,W,z){z===void 0&&(z=W),L[z]=G[W]}),n=ie&&ie.__setModuleDefault||(Object.create?function(L,G){Object.defineProperty(L,"default",{enumerable:!0,value:G})}:function(L,G){L.default=G}),r=ie&&ie.__importStar||function(L){if(L&&L.__esModule)return L;var G={};if(L!=null)for(var W in L)W!=="default"&&Object.prototype.hasOwnProperty.call(L,W)&&t(G,L,W);return n(G,L),G},i=ie&&ie.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(e,"__esModule",{value:!0}),e.isValidEIP1271Signature=e.parseEmphemeralPayload=e.getSignedIdentitySignatureType=e.getEphemeralSignatureType=e.EIP_1654_SIGNED_ENTITY_VALIDATOR=e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=e.ECDSA_SIGNED_ENTITY_VALIDATOR=e.SIGNER_VALIDATOR=e.Authenticator=e.ERC1654_MAGIC_VALUE=e.VALID_SIGNATURE=void 0;const a=r(Wu),s=zu,o=b_,c=rl,u=i(Tp),f=hn;e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const l=132;var m;(function(L){async function G(fe,Se,Xe,ce=Date.now()){let He="";if(!L.isValidAuthChain(Se))return{ok:!1,message:"ERROR: Malformed authChain"};for(const vt of Se){const tn=te(vt.type);try{const{nextAuthority:nn}=await tn(He,vt,{provider:Xe,dateToValidateExpirationInMillis:ce});He=nn||""}catch(nn){return{ok:!1,message:`ERROR. Link type: ${vt.type}. ${nn.message}.`}}}const Et=He===fe;return{ok:Et,message:Et?void 0:`ERROR: Invalid final authority. Expected: ${fe}. Current ${He}.`}}L.validateSignature=G;function W(fe){for(const[Se,Xe]of fe.entries())if(Se===0&&Xe.type!==o.AuthLinkType.SIGNER||Xe.type===o.AuthLinkType.SIGNER&&Se!==0)return!1;return!0}L.isValidAuthChain=W;function z(fe){return(0,a.hexToBytes)((0,a.sha3)((0,a.stringToUtf8Bytes)(fe)))}L.createEIP1271MessageHash=z;function ae(fe,Se,Xe){return[{type:o.AuthLinkType.SIGNER,payload:Se,signature:""},{type:H(Xe),payload:fe,signature:Xe}]}L.createSimpleAuthChain=ae;function Ee(fe,Se,Xe,ce){const He=(0,c.moveMinutes)(Xe),Et=L.getEphemeralMessage(Se.address,He),vt=L.createSignature(fe,Et),tn=L.createSignature(Se,ce);return[{type:o.AuthLinkType.SIGNER,payload:fe.address,signature:""},{type:o.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:Et,signature:vt},{type:o.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:ce,signature:tn}]}L.createAuthChain=Ee;async function pe(fe,Se,Xe,ce){const He=new Date;He.setMinutes(He.getMinutes()+Xe);const Et=L.getEphemeralMessage(Se.address,He),vt=await ce(Et),tn=[{type:o.AuthLinkType.SIGNER,payload:fe,signature:""},{type:K(vt),payload:Et,signature:vt}];return{ephemeralIdentity:Se,expiration:He,authChain:tn}}L.initializeAuthChain=pe;function le(fe,Se){const Xe=L.createSignature(fe.ephemeralIdentity,Se);return[...fe.authChain,{type:o.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:Se,signature:Xe}]}L.signPayload=le,L.createEthereumMessageHash=f.createEthereumMessageHash;function $(fe,Se){return(0,f.ethSign)((0,a.hexToBytes)(fe.privateKey),Se)}L.createSignature=$;function ve(fe){return fe.length>0&&fe[0].type===o.AuthLinkType.SIGNER?fe[0].payload:"Invalid-Owner-Address"}L.ownerAddress=ve;function ge(fe,Se){return`Decentraland Login
15
+ Ephemeral address: ${fe}
16
+ Expiration: ${Se.toISOString()}`}L.getEphemeralMessage=ge})(m=e.Authenticator||(e.Authenticator={}));const g=async(L,G)=>({nextAuthority:G.payload});e.SIGNER_VALIDATOR=g;const _=async(L,G)=>{if(!G.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const W=(0,f.recoverAddressFromEthSignature)(G.signature,G.payload),z=L.toLocaleLowerCase(),ae=W.toLocaleLowerCase();if(z===ae)return{nextAuthority:G.payload};throw new Error(`Invalid signer address. Expected: ${z}. Actual: ${ae}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=_;const T=async(L,G,W)=>{if(!G.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:z,ephemeralAddress:ae,expiration:Ee}=F(G.payload),pe=W.dateToValidateExpirationInMillis?W.dateToValidateExpirationInMillis:Date.now();if(Ee>pe){const le=(0,f.recoverAddressFromEthSignature)(G.signature,z),$=L.toLocaleLowerCase(),ve=le.toLocaleLowerCase();if($===ve)return{nextAuthority:ae};throw new Error(`Invalid signer address. Expected: ${$}. Actual: ${ve}`)}throw new Error(`Ephemeral key expired. Expiration: ${Ee}. Test: ${pe}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=T;const B=async(L,G,W)=>{if(!G.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:z,ephemeralAddress:ae,expiration:Ee}=F(G.payload),pe=W?.dateToValidateExpirationInMillis?W?.dateToValidateExpirationInMillis:Date.now();if(Ee>pe&&await j(W.provider,L,z,G.signature,pe))return{nextAuthority:ae};throw new Error(`Ephemeral key expired. Expiration: ${Ee}. Test: ${pe}`)};e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=B;const U=async(L,G,W)=>{if(!G.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(await j(W.provider,L,G.payload,G.signature,W.dateToValidateExpirationInMillis))return{nextAuthority:G.payload};throw new Error("Invalid validation")};e.EIP_1654_SIGNED_ENTITY_VALIDATOR=U;const J=async(L,G)=>({error:"Error Validator."});function K(L){return L.length===l?o.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:o.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}e.getEphemeralSignatureType=K;function H(L){return L.length===l?o.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:o.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}e.getSignedIdentitySignatureType=H;function F(L){const G=L.replace(/\r/g,""),W=G.split(`
17
+ `),z=W[1].substring(19),ae=W[2].substring(12),Ee=Date.parse(ae);return{message:G,ephemeralAddress:z,expiration:Ee}}e.parseEmphemeralPayload=F;async function k(L,G,W,z){const ae=m.createEIP1271MessageHash(G),Ee=(0,a.hexToBytes)(W);let pe;try{pe=(0,a.bytesToHex)(await L.isValidSignature(ae,Ee,z))}catch{}if(pe===e.ERC1654_MAGIC_VALUE)return!0;const le=(0,f.createEthereumMessageHash)(G);try{pe=(0,a.bytesToHex)(await L.isValidSignature(le,Ee,z))}catch{}return pe===e.ERC1654_MAGIC_VALUE}e.isValidEIP1271Signature=k;async function j(L,G,W,z,ae){if(!L)throw new Error("Missing provider");const Ee=new a.default(L),pe=await(0,s.SignatureValidator)(Ee,G);let le=await k(pe,W,z);if(le)return!0;const $=new u.default(Ee);try{const{block:ve}=await $.getDate(ae,!1);if(le=await k(pe,W,z,ve),le)return!0}catch(ve){throw new Error(`Invalid validation. Error: ${ve.message}`)}throw new Error(`Invalid validation. Expected: ${e.ERC1654_MAGIC_VALUE}. Actual: ${le}`)}function te(L){switch(L){case o.AuthLinkType.SIGNER:return e.SIGNER_VALIDATOR;case o.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:return e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR;case o.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:return e.ECDSA_SIGNED_ENTITY_VALIDATOR;case o.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL:return e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR;case o.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY:return e.EIP_1654_SIGNED_ENTITY_VALIDATOR;default:return J}}})(__);var ro={},As=function(e){return e&&e.Math===Math&&e},mr=As(typeof globalThis=="object"&&globalThis)||As(typeof window=="object"&&window)||As(typeof self=="object"&&self)||As(typeof ie=="object"&&ie)||As(typeof ie=="object"&&ie)||function(){return this}()||Function("return this")(),ta=function(e){try{return!!e()}catch{return!0}},yI=ta,ol=!yI(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),_I=ol,fE=Function.prototype,rm=fE.apply,im=fE.call,bI=typeof Reflect=="object"&&Reflect.apply||(_I?im.bind(rm):function(){return im.apply(rm,arguments)}),pE=ol,hE=Function.prototype,ef=hE.call,EI=pE&&hE.bind.bind(ef,ef),us=pE?EI:function(e){return function(){return ef.apply(e,arguments)}},mE=us,vI=mE({}.toString),SI=mE("".slice),gE=function(e){return SI(vI(e),8,-1)},wI=gE,TI=us,yE=function(e){if(wI(e)==="Function")return TI(e)},Wl=typeof document=="object"&&document.all,na=typeof Wl>"u"&&Wl!==void 0?function(e){return typeof e=="function"||e===Wl}:function(e){return typeof e=="function"},_E={},II=ta,io=!II(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),AI=ol,mc=Function.prototype.call,Cp=AI?mc.bind(mc):function(){return mc.apply(mc,arguments)},bE={},EE={}.propertyIsEnumerable,vE=Object.getOwnPropertyDescriptor,OI=vE&&!EE.call({1:2},1);bE.f=OI?function(t){var n=vE(this,t);return!!n&&n.enumerable}:EE;var SE=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},RI=us,CI=ta,NI=gE,zl=Object,MI=RI("".split),PI=CI(function(){return!zl("z").propertyIsEnumerable(0)})?function(e){return NI(e)==="String"?MI(e,""):zl(e)}:zl,wE=function(e){return e==null},kI=wE,LI=TypeError,TE=function(e){if(kI(e))throw new LI("Can't call method on "+e);return e},DI=PI,BI=TE,FI=function(e){return DI(BI(e))},xI=na,cl=function(e){return typeof e=="object"?e!==null:xI(e)},IE={},Yl=IE,Kl=mr,HI=na,am=function(e){return HI(e)?e:void 0},UI=function(e,t){return arguments.length<2?am(Yl[e])||am(Kl[e]):Yl[e]&&Yl[e][t]||Kl[e]&&Kl[e][t]},jI=us,VI=jI({}.isPrototypeOf),GI=mr,sm=GI.navigator,om=sm&&sm.userAgent,qI=om?String(om):"",AE=mr,Xl=qI,cm=AE.process,um=AE.Deno,lm=cm&&cm.versions||um&&um.version,dm=lm&&lm.v8,rr,fu;dm&&(rr=dm.split("."),fu=rr[0]>0&&rr[0]<4?1:+(rr[0]+rr[1]));!fu&&Xl&&(rr=Xl.match(/Edge\/(\d+)/),(!rr||rr[1]>=74)&&(rr=Xl.match(/Chrome\/(\d+)/),rr&&(fu=+rr[1])));var WI=fu,fm=WI,zI=ta,YI=mr,KI=YI.String,OE=!!Object.getOwnPropertySymbols&&!zI(function(){var e=Symbol("symbol detection");return!KI(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fm&&fm<41}),XI=OE,RE=XI&&!Symbol.sham&&typeof Symbol.iterator=="symbol",JI=UI,ZI=na,QI=VI,$I=RE,eA=Object,CE=$I?function(e){return typeof e=="symbol"}:function(e){var t=JI("Symbol");return ZI(t)&&QI(t.prototype,eA(e))},tA=String,nA=function(e){try{return tA(e)}catch{return"Object"}},rA=na,iA=nA,aA=TypeError,NE=function(e){if(rA(e))return e;throw new aA(iA(e)+" is not a function")},sA=NE,oA=wE,cA=function(e,t){var n=e[t];return oA(n)?void 0:sA(n)},Jl=Cp,Zl=na,Ql=cl,uA=TypeError,lA=function(e,t){var n,r;if(t==="string"&&Zl(n=e.toString)&&!Ql(r=Jl(n,e))||Zl(n=e.valueOf)&&!Ql(r=Jl(n,e))||t!=="string"&&Zl(n=e.toString)&&!Ql(r=Jl(n,e)))return r;throw new uA("Can't convert object to primitive value")},ME={exports:{}},pm=mr,dA=Object.defineProperty,fA=function(e,t){try{dA(pm,e,{value:t,configurable:!0,writable:!0})}catch{pm[e]=t}return t},pA=mr,hA=fA,hm="__core-js_shared__",mm=ME.exports=pA[hm]||hA(hm,{});(mm.versions||(mm.versions=[])).push({version:"3.49.0",mode:"pure",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});var mA=ME.exports,gm=mA,gA=function(e,t){return gm[e]||(gm[e]=t||{})},yA=TE,_A=Object,bA=function(e){return _A(yA(e))},EA=us,vA=bA,SA=EA({}.hasOwnProperty),Np=Object.hasOwn||function(t,n){return SA(vA(t),n)},wA=us,TA=0,IA=Math.random(),AA=wA(1.1.toString),OA=function(e){return"Symbol("+(e===void 0?"":e)+")_"+AA(++TA+IA,36)},RA=mr,CA=gA,ym=Np,NA=OA,MA=OE,PA=RE,Na=RA.Symbol,$l=CA("wks"),kA=PA?Na.for||Na:Na&&Na.withoutSetter||NA,LA=function(e){return ym($l,e)||($l[e]=MA&&ym(Na,e)?Na[e]:kA("Symbol."+e)),$l[e]},DA=Cp,_m=cl,bm=CE,BA=cA,FA=lA,xA=LA,HA=TypeError,UA=xA("toPrimitive"),jA=function(e,t){if(!_m(e)||bm(e))return e;var n=BA(e,UA),r;if(n){if(t===void 0&&(t="default"),r=DA(n,e,t),!_m(r)||bm(r))return r;throw new HA("Can't convert object to primitive value")}return t===void 0&&(t="number"),FA(e,t)},VA=jA,GA=CE,PE=function(e){var t=VA(e,"string");return GA(t)?t:t+""},qA=mr,Em=cl,tf=qA.document,WA=Em(tf)&&Em(tf.createElement),zA=function(e){return WA?tf.createElement(e):{}},YA=io,KA=ta,XA=zA,kE=!YA&&!KA(function(){return Object.defineProperty(XA("div"),"a",{get:function(){return 7}}).a!==7}),JA=io,ZA=Cp,QA=bE,$A=SE,eO=FI,tO=PE,nO=Np,rO=kE,vm=Object.getOwnPropertyDescriptor;_E.f=JA?vm:function(t,n){if(t=eO(t),n=tO(n),rO)try{return vm(t,n)}catch{}if(nO(t,n))return $A(!ZA(QA.f,t,n),t[n])};var iO=ta,aO=na,sO=/#|\.prototype\./,ao=function(e,t){var n=cO[oO(e)];return n===lO?!0:n===uO?!1:aO(t)?iO(t):!!t},oO=ao.normalize=function(e){return String(e).replace(sO,".").toLowerCase()},cO=ao.data={},uO=ao.NATIVE="N",lO=ao.POLYFILL="P",dO=ao,Sm=yE,fO=NE,pO=ol,hO=Sm(Sm.bind),mO=function(e,t){return fO(e),t===void 0?e:pO?hO(e,t):function(){return e.apply(t,arguments)}},LE={},gO=io,yO=ta,_O=gO&&yO(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),bO=cl,EO=String,vO=TypeError,SO=function(e){if(bO(e))return e;throw new vO(EO(e)+" is not an object")},wO=io,TO=kE,IO=_O,gc=SO,wm=PE,AO=TypeError,ed=Object.defineProperty,OO=Object.getOwnPropertyDescriptor,td="enumerable",nd="configurable",rd="writable";LE.f=wO?IO?function(t,n,r){if(gc(t),n=wm(n),gc(r),typeof t=="function"&&n==="prototype"&&"value"in r&&rd in r&&!r[rd]){var i=OO(t,n);i&&i[rd]&&(t[n]=r.value,r={configurable:nd in r?r[nd]:i[nd],enumerable:td in r?r[td]:i[td],writable:!1})}return ed(t,n,r)}:ed:function(t,n,r){if(gc(t),n=wm(n),gc(r),TO)try{return ed(t,n,r)}catch{}if("get"in r||"set"in r)throw new AO("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var RO=io,CO=LE,NO=SE,MO=RO?function(e,t,n){return CO.f(e,t,NO(1,n))}:function(e,t,n){return e[t]=n,e},Os=mr,PO=bI,kO=yE,LO=na,DO=_E.f,BO=dO,ga=IE,FO=mO,ya=MO,Tm=Np,xO=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return PO(e,this,arguments)};return t.prototype=e.prototype,t},HO=function(e,t){var n=e.target,r=e.global,i=e.stat,a=e.proto,s=r?Os:i?Os[n]:Os[n]&&Os[n].prototype,o=r?ga:ga[n]||ya(ga,n,{})[n],c=o.prototype,u,f,l,m,g,_,T,B,U;for(m in t)u=BO(r?m:n+(i?".":"#")+m,e.forced),f=!u&&s&&Tm(s,m),_=o[m],f&&(e.dontCallGetSet?(U=DO(s,m),T=U&&U.value):T=s[m]),g=f&&T?T:t[m],!(!u&&!a&&typeof _==typeof g)&&(e.bind&&f?B=FO(g,Os):e.wrap&&f?B=xO(g):a&&LO(g)?B=kO(g):B=g,(e.sham||g&&g.sham||_&&_.sham)&&ya(B,"sham",!0),ya(o,m,B),a&&(l=n+"Prototype",Tm(ga,l)||ya(ga,l,{}),ya(ga[l],m,g),e.real&&c&&(u||!c[m])&&ya(c,m,g)))},UO=HO,id=mr;UO({global:!0,forced:id.globalThis!==id},{globalThis:id});var jO=mr,VO=jO,GO=VO,qO=ie&&ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.getImplementation=void 0;var WO=qO(GO);function zO(e,t){var n,r=(n=e[t])!==null&&n!==void 0?n:WO.default[t];if(!r)throw new ReferenceError('"'+t+'" is not defined');return r}ro.getImplementation=zO;var YO=ie&&ie.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(qu,"__esModule",{value:!0});var KO=__,XO=ro,JO="x-identity-auth-chain-",ZO="x-identity-timestamp",QO="x-identity-metadata";function $O(e){e===void 0&&(e={});var t=(0,XO.getImplementation)(e,"Headers");return function(r,i,a,s,o){var c,u,f=new t(o),l=String(Date.now()),m=JSON.stringify(s),g=[i,a,l,m].join(":").toLowerCase(),_=0,T=KO.Authenticator.signPayload(r,g);try{for(var B=YO(T),U=B.next();!U.done;U=B.next()){var J=U.value;f.set(JO+_,JSON.stringify(J)),_++}}catch(K){c={error:K}}finally{try{U&&!U.done&&(u=B.return)&&u.call(B)}finally{if(c)throw c.error}}return f.set(ZO,l),f.set(QO,m),f}}qu.default=$O;var pu=ie&&ie.__assign||function(){return pu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pu.apply(this,arguments)},eR=ie&&ie.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},tR=ie&&ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gu,"__esModule",{value:!0});var nR=tR(qu),ad=ro;function rR(e){e===void 0&&(e={});var t=(0,nR.default)(e),n=(0,ad.getImplementation)(e,"URL"),r=(0,ad.getImplementation)(e,"Request"),i=(0,ad.getImplementation)(e,"fetch");return function(s,o){if(o&&o.identity){var c=o.identity,u=o.metadata,f=eR(o,["identity","metadata"]);if(typeof s=="string"||s instanceof n||globalThis.URL&&s instanceof globalThis.URL){var l=typeof s=="string"?new n(s):s,m=new r(l.toString(),pu(pu({},f),{headers:t(c,o.method||"GET",l.pathname,u||{},f?.headers)}));return i(m)}var g=new n(s.url),_=new r(s),T=t(c,s.method||"GET",g.pathname,u||{});return T.forEach(function(B,U){_.headers.set(U,B)}),i(_)}return i(s,o)}}Gu.default=rR;(function(e){var t=ie&&ie.__createBinding||(Object.create?function(s,o,c,u){u===void 0&&(u=c),Object.defineProperty(s,u,{enumerable:!0,get:function(){return o[c]}})}:function(s,o,c,u){u===void 0&&(u=c),s[u]=o[c]}),n=ie&&ie.__exportStar||function(s,o){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,s,c)},r=ie&&ie.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.signedHeaderFactory=e.signedFetchFactory=void 0,n(ep,e);var i=Gu;Object.defineProperty(e,"signedFetchFactory",{enumerable:!0,get:function(){return r(i).default}});var a=qu;Object.defineProperty(e,"signedHeaderFactory",{enumerable:!0,get:function(){return r(a).default}})})(y_);(function(e){var t=ie&&ie.__createBinding||(Object.create?function(a,s,o,c){c===void 0&&(c=o),Object.defineProperty(a,c,{enumerable:!0,get:function(){return s[o]}})}:function(a,s,o,c){c===void 0&&(c=o),a[c]=s[o]}),n=ie&&ie.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&t(s,a,o)},r=ie&&ie.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),n(ep,e),n(y_,e);var i=r(Gu);e.default=(0,i.default)()})(g_);const iR=50,aR=e=>({...e,timestamp:Number(e.timestamp)}),sR=(e,t)=>{const n=e,{url:r,limit:i=iR}=t,a=g_.signedFetchFactory();return{getNotifications:async()=>{const c=new URLSearchParams;c.append("limit",String(i));const u=`${r}/notifications?${c.toString()}`,f=await a(u,{identity:n,headers:{"Content-Type":"application/json"}});if(!f.ok)throw new Error(`Failed to fetch notifications: ${f.status}`);return((await f.json()).notifications??[]).map(aR)},markNotificationsAsRead:async c=>{const u=`${r}/notifications/read`,f=await a(u,{method:"PUT",identity:n,body:JSON.stringify({notificationIds:c}),headers:{"Content-Type":"application/json"}});if(!f.ok)throw new Error(`Failed to mark notifications as read: ${f.status}`)}}};var oR=" daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<!cam)scan|24x7|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bmanus-user/|\\bort/|\\bperl\\b|\\bsecurityheaders\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^bot|^bw/|^clamav[ /]|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\((?:compatible;)?(?:\\s?[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|functionize|grab|headless|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|mail\\.ru/|manager|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|xtate/",cR=/bot|crawl|http|lighthouse|scan|search|spider/i,Rs;function uR(){if(Rs instanceof RegExp)return Rs;try{Rs=new RegExp(oR,"i")}catch{Rs=cR}return Rs}function lR(e){return!!e&&uR().test(e)}const we=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ge=globalThis,Vr="9.47.1";function $r(){return so(Ge),Ge}function so(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Vr,t[Vr]=t[Vr]||{}}function oo(e,t,n=Ge){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Vr]=r[Vr]||{};return i[e]||(i[e]=t())}const Mp=["debug","info","warn","error","log","assert","trace"],dR="Sentry Logger ",hu={};function Ai(e){if(!("console"in Ge))return e();const t=Ge.console,n={},r=Object.keys(hu);r.forEach(i=>{const a=hu[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function fR(){kp().enabled=!0}function pR(){kp().enabled=!1}function DE(){return kp().enabled}function hR(...e){Pp("log",...e)}function mR(...e){Pp("warn",...e)}function gR(...e){Pp("error",...e)}function Pp(e,...t){we&&DE()&&Ai(()=>{Ge.console[e](`${dR}[${e}]:`,...t)})}function kp(){return we?oo("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const X={enable:fR,disable:pR,isEnabled:DE,log:hR,warn:mR,error:gR},BE=50,Or="?",Im=/\(error: (.*)\)/,Am=/captureMessage|captureException/;function FE(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const a=[],s=n.split(`
18
+ `);for(let o=r;o<s.length;o++){const c=s[o];if(c.length>1024)continue;const u=Im.test(c)?c.replace(Im,"$1"):c;if(!u.match(/\S*Error: /)){for(const f of t){const l=f(u);if(l){a.push(l);break}}if(a.length>=BE+i)break}}return _R(a.slice(i))}}function yR(e){return Array.isArray(e)?FE(...e):e}function _R(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(yc(t).function||"")&&t.pop(),t.reverse(),Am.test(yc(t).function||"")&&(t.pop(),Am.test(yc(t).function||"")&&t.pop()),t.slice(0,BE).map(n=>({...n,filename:n.filename||yc(t).filename,function:n.function||Or}))}function yc(e){return e[e.length-1]||{}}const sd="<anonymous>";function Wr(e){try{return!e||typeof e!="function"?sd:e.name||sd}catch{return sd}}function nf(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}}}const Wc={},Om={};function Oi(e,t){Wc[e]=Wc[e]||[],Wc[e].push(t)}function Ri(e,t){if(!Om[e]){Om[e]=!0;try{t()}catch(n){we&&X.error(`Error while instrumenting ${e}`,n)}}}function Yn(e,t){const n=e&&Wc[e];if(n)for(const r of n)try{r(t)}catch(i){we&&X.error(`Error while triggering instrumentation handler.
19
+ Type: ${e}
20
+ Name: ${Wr(r)}
21
+ Error:`,i)}}let od=null;function xE(e){const t="error";Oi(t,e),Ri(t,bR)}function bR(){od=Ge.onerror,Ge.onerror=function(e,t,n,r,i){return Yn("error",{column:r,error:i,line:n,msg:e,url:t}),od?od.apply(this,arguments):!1},Ge.onerror.__SENTRY_INSTRUMENTED__=!0}let cd=null;function HE(e){const t="unhandledrejection";Oi(t,e),Ri(t,ER)}function ER(){cd=Ge.onunhandledrejection,Ge.onunhandledrejection=function(e){return Yn("unhandledrejection",e),cd?cd.apply(this,arguments):!0},Ge.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const UE=Object.prototype.toString;function yi(e){switch(UE.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Yr(e,Error)}}function ls(e,t){return UE.call(e)===`[object ${t}]`}function jE(e){return ls(e,"ErrorEvent")}function Rm(e){return ls(e,"DOMError")}function vR(e){return ls(e,"DOMException")}function cr(e){return ls(e,"String")}function ul(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ha(e){return e===null||ul(e)||typeof e!="object"&&typeof e!="function"}function zr(e){return ls(e,"Object")}function ll(e){return typeof Event<"u"&&Yr(e,Event)}function SR(e){return typeof Element<"u"&&Yr(e,Element)}function wR(e){return ls(e,"RegExp")}function co(e){return!!(e?.then&&typeof e.then=="function")}function TR(e){return zr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Yr(e,t){try{return e instanceof t}catch{return!1}}function VE(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function GE(e){return typeof Request<"u"&&Yr(e,Request)}const Lp=Ge,IR=80;function Xn(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",c=o.length;let u;const f=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||IR;for(;n&&a++<r&&(u=AR(n,f),!(u==="html"||a>1&&s+i.length*c+u.length>=l));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return"<unknown>"}}function AR(e,t){const n=e,r=[];if(!n?.tagName)return"";if(Lp.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 i=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i?.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&cr(s)){const o=s.split(/\s+/);for(const c of o)r.push(`.${c}`)}}const a=["aria-label","type","name","title","alt"];for(const s of a){const o=n.getAttribute(s);o&&r.push(`[${s}="${o}"]`)}return r.join("")}function ra(){try{return Lp.document.location.href}catch{return""}}function qE(e){if(!Lp.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}function Ua(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ud(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,r);return a>r-5&&(a=r),a===r&&(i=Math.max(a-140,0)),n=n.slice(i,a),i>0&&(n=`'{snip} ${n}`),a<r&&(n+=" {snip}"),n}function mu(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{VE(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function OR(e,t,n=!1){return cr(e)?wR(t)?t.test(e):cr(t)?n?e===t:e.includes(t):!1:!1}function ur(e,t=[],n=!1){return t.some(r=>OR(e,r,n))}function Tn(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&WE(i,r);try{e[t]=i}catch{we&&X.log(`Failed to replace method "${t}" in object`,e)}}function Pn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{we&&X.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function WE(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Pn(e,"__sentry_original__",t)}catch{}}function Dp(e){return e.__sentry_original__}function zE(e){if(yi(e))return{message:e.message,name:e.name,stack:e.stack,...Nm(e)};if(ll(e)){const t={type:e.type,target:Cm(e.target),currentTarget:Cm(e.currentTarget),...Nm(e)};return typeof CustomEvent<"u"&&Yr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Cm(e){try{return SR(e)?Xn(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Nm(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 RR(e,t=40){const n=Object.keys(zE(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ua(r,t);for(let i=n.length;i>0;i--){const a=n.slice(0,i).join(", ");if(!(a.length>t))return i===n.length?a:Ua(a,t)}return""}function CR(){const e=Ge;return e.crypto||e.msCrypto}function In(e=CR()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function YE(e){return e.exception?.values?.[0]}function Fi(e){const{message:t,event_id:n}=e;if(t)return t;const r=YE(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function rf(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Ei(e,t){const n=YE(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i?.data,...t.data};n.mechanism.data=a}}function NR(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(s=>ud(s,0));const a=Math.min(r-1,i);t.context_line=ud(e[a],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(s=>ud(s,0))}function Mm(e){if(MR(e))return!0;try{Pn(e,"__sentry_captured__",!0)}catch{}return!1}function MR(e){try{return e.__sentry_captured__}catch{}}const KE=1e3;function ia(){return Date.now()/KE}function PR(){const{performance:e}=Ge;if(!e?.now||!e.timeOrigin)return ia;const t=e.timeOrigin;return()=>(t+e.now())/KE}let Pm;function Kt(){return(Pm??(Pm=PR()))()}let ld;function kR(){const{performance:e}=Ge;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,s=e.timing?.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):t,u=c<t;return a||u?i<=c?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[r,"dateNow"]}function gn(){return ld||(ld=kR()),ld[0]}function LR(e){const t=Kt(),n={sid:In(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>BR(n)};return e&&ja(n,e),n}function ja(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||Kt(),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:In()),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 DR(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),ja(e,n)}function BR(e){return{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 uo(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=uo(r[i],t[i],n-1));return r}function Kr(){return In()}function lo(){return In().substring(16)}const af="_sentrySpan";function Ki(e,t){t?Pn(e,af,t):delete e[af]}function Ws(e){return e[af]}const FR=100;class lr{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:Kr(),sampleRand:Math.random()}}clone(){const t=new lr;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._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Ki(t,Ws(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&&ja(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}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=n instanceof lr?n.getScopeData():zr(n)?t:void 0,{tags:i,extra:a,user:s,contexts:o,level:c,fingerprint:u=[],propagationContext:f}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...o},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),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._session=void 0,Ki(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Kr(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:FR;if(r<=0)return this;const i={timestamp:ia(),...t,message:t.message?Ua(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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:Ws(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=uo(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||In();if(!this._client)return we&&X.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r?.event_id||In();if(!this._client)return we&&X.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n?.event_id||In();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(we&&X.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)}}function xR(){return oo("defaultCurrentScope",()=>new lr)}function HR(){return oo("defaultIsolationScope",()=>new lr)}class UR{constructor(t,n){let r;t?r=t:r=new lr;let i;n?i=n:i=new lr,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return co(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(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 Va(){const e=$r(),t=so(e);return t.stack=t.stack||new UR(xR(),HR())}function jR(e){return Va().withScope(e)}function VR(e,t){const n=Va();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function km(e){return Va().withScope(()=>e(Va().getIsolationScope()))}function GR(){return{withIsolationScope:km,withScope:jR,withSetScope:VR,withSetIsolationScope:(e,t)=>km(t),getCurrentScope:()=>Va().getScope(),getIsolationScope:()=>Va().getIsolationScope()}}function Ci(e){const t=so(e);return t.acs?t.acs:GR()}function tt(){const e=$r();return Ci(e).getCurrentScope()}function $t(){const e=$r();return Ci(e).getIsolationScope()}function dl(){return oo("globalScope",()=>new lr)}function Zn(...e){const t=$r(),n=Ci(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function qR(...e){const t=$r(),n=Ci(t);if(e.length===2){const[r,i]=e;return r?n.withSetIsolationScope(r,i):n.withIsolationScope(i)}return n.withIsolationScope(e[0])}function Ce(){return tt().getClient()}function XE(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,a={trace_id:n,span_id:i||lo()};return r&&(a.parent_span_id=r),a}const Un="sentry.source",fl="sentry.sample_rate",JE="sentry.previous_trace_sample_rate",Vn="sentry.op",xt="sentry.origin",gu="sentry.idle_span_finish_reason",fo="sentry.measurement_unit",po="sentry.measurement_value",sf="sentry.custom_span_name",Bp="sentry.profile_id",ds="sentry.exclusive_time",WR="http.request.method",zR="url.full",YR="sentry.link.type",KR=0,Fp=1,qt=2;function ZE(e){if(e<400&&e>=100)return{code:Fp};if(e>=400&&e<500)switch(e){case 401:return{code:qt,message:"unauthenticated"};case 403:return{code:qt,message:"permission_denied"};case 404:return{code:qt,message:"not_found"};case 409:return{code:qt,message:"already_exists"};case 413:return{code:qt,message:"failed_precondition"};case 429:return{code:qt,message:"resource_exhausted"};case 499:return{code:qt,message:"cancelled"};default:return{code:qt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:qt,message:"unimplemented"};case 503:return{code:qt,message:"unavailable"};case 504:return{code:qt,message:"deadline_exceeded"};default:return{code:qt,message:"internal_error"}}return{code:qt,message:"unknown_error"}}function zs(e,t){e.setAttribute("http.response.status_code",t);const n=ZE(t);n.message!=="unknown_error"&&e.setStatus(n)}const QE="_sentryScope",$E="_sentryIsolationScope";function XR(e,t,n){e&&(Pn(e,$E,n),Pn(e,QE,t))}function yu(e){return{scope:e[QE],isolationScope:e[$E]}}const xp="sentry-",JR=/^sentry-/,ZR=8192;function ev(e){const t=QR(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(JR)){const s=i.slice(xp.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function tv(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${xp}${r}`]=i),n),{});return $R(t)}function QR(e){if(!(!e||!cr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Lm(n);return Object.entries(r).forEach(([i,a])=>{t[i]=a}),t},{}):Lm(e)}function Lm(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function $R(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>ZR?(we&&X.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}function Xi(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))return t}const nv=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function eC(e){if(!e)return;const t=e.match(nv);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function rv(e,t){const n=eC(e),r=ev(t);if(!n?.traceId)return{traceId:Kr(),sampleRand:Math.random()};const i=tC(n,r);r&&(r.sample_rand=i.toString());const{traceId:a,parentSpanId:s,parentSampled:o}=n;return{traceId:a,parentSpanId:s,sampled:o,dsc:r||{},sampleRand:i}}function iv(e=Kr(),t=lo(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function tC(e,t){const n=Xi(t?.sample_rand);if(n!==void 0)return n;const r=Xi(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const av=0,Hp=1;let Dm=!1;function nC(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,origin:o,links:c}=$e(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:s,origin:o,links:c}}function sv(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:$e(e).parent_span_id,a=yu(e).scope,s=r?a?.getPropagationContext().propagationSpanId||lo():t;return{parent_span_id:i,span_id:s,trace_id:n}}function ov(e){const{traceId:t,spanId:n}=e.spanContext(),r=aa(e);return iv(t,n,r)}function cv(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:a})=>({span_id:t,trace_id:n,sampled:r===Hp,attributes:a,...i}))}function qi(e){return typeof e=="number"?Bm(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Bm(e.getTime()):Kt()}function Bm(e){return e>9999999999?e/1e3:e}function $e(e){if(iC(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(rC(e)){const{attributes:r,startTime:i,name:a,endTime:s,status:o,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:u,start_timestamp:qi(i),timestamp:qi(s)||void 0,status:uv(o),op:r[Vn],origin:r[xt],links:cv(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function rC(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function iC(e){return typeof e.getSpanJSON=="function"}function aa(e){const{traceFlags:t}=e.spanContext();return t===Hp}function uv(e){if(!(!e||e.code===KR))return e.code===Fp?"ok":e.message||"unknown_error"}const Wi="_sentryChildSpans",of="_sentryRootSpan";function lv(e,t){const n=e[of]||e;Pn(t,of,n),e[Wi]?e[Wi].add(t):Pn(e,Wi,new Set([t]))}function aC(e,t){e[Wi]&&e[Wi].delete(t)}function xs(e){const t=new Set;function n(r){if(!t.has(r)&&aa(r)){t.add(r);const i=r[Wi]?Array.from(r[Wi]):[];for(const a of i)n(a)}}return n(e),Array.from(t)}function Qt(e){return e[of]||e}function en(){const e=$r(),t=Ci(e);return t.getActiveSpan?t.getActiveSpan():Ws(tt())}function cf(){Dm||(Ai(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),Dm=!0)}function sC(e,t){e.updateName(t),e.setAttributes({[Un]:"custom",[sf]:t})}let Fm=!1;function dv(){if(Fm)return;function e(){const t=en(),n=t&&Qt(t);if(n){const r="internal_error";we&&X.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:qt,message:r})}}e.tag="sentry_tracingErrorCallback",Fm=!0,xE(e),HE(e)}function vi(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Ce()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const pl="production",oC=/^o(\d+)\./,cC=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function uC(e){return e==="http"||e==="https"}function sa(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function fv(e){const t=cC.exec(e);if(!t){Ai(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a="",s="",o=""]=t.slice(1);let c="",u=o;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return pv({host:a,pass:i,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function pv(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function lC(e){if(!we)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(X.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?uC(r)?t&&isNaN(parseInt(t,10))?(X.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(X.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(X.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function dC(e){return e.match(oC)?.[1]}function hv(e){const t=typeof e=="string"?fv(e):pv(e);if(!(!t||!lC(t)))return t}const mv="_frozenDsc";function zc(e,t){Pn(e,mv,t)}function gv(e,t){const n=t.getOptions(),{publicKey:r,host:i}=t.getDsn()||{};let a;n.orgId?a=String(n.orgId):i&&(a=dC(i));const s={environment:n.environment||pl,release:n.release,public_key:r,trace_id:e,org_id:a};return t.emit("createDsc",s),s}function Up(e,t){const n=t.getPropagationContext();return n.dsc||gv(n.traceId,e)}function dr(e){const t=Ce();if(!t)return{};const n=Qt(e),r=$e(n),i=r.data,a=n.spanContext().traceState,s=a?.get("sentry.sample_rate")??i[fl]??i[JE];function o(_){return(typeof s=="number"||typeof s=="string")&&(_.sample_rate=`${s}`),_}const c=n[mv];if(c)return o(c);const u=a?.get("sentry.dsc"),f=u&&ev(u);if(f)return o(f);const l=gv(e.spanContext().traceId,t),m=i[Un],g=r.description;return m!=="url"&&g&&(l.transaction=g),vi()&&(l.sampled=String(aa(n)),l.sample_rand=a?.get("sentry.sample_rand")??yu(n).scope?.getPropagationContext().sampleRand.toString()),o(l),t.emit("createDsc",l,n),l}function fC(e){const t=dr(e);return tv(t)}class Xr{constructor(t={}){this._traceId=t.traceId||Kr(),this._spanId=t.spanId||lo()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:av}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Bn(e,t=100,n=1/0){try{return uf("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function yv(e,t=3,n=100*1024){const r=Bn(e,t);return gC(r)>n?yv(e,t-1,n):r}function uf(e,t,n=1/0,r=1/0,i=yC()){const[a,s]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const o=pC(e,t);if(!o.startsWith("[object "))return o;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 o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return uf("",g,c-1,r,i)}catch{}const f=Array.isArray(t)?[]:{};let l=0;const m=zE(t);for(const g in m){if(!Object.prototype.hasOwnProperty.call(m,g))continue;if(l>=r){f[g]="[MaxProperties ~]";break}const _=m[g];f[g]=uf(g,_,c-1,r,i),l++}return s(t),f}function pC(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(VE(t))return"[VueViewModel]";if(TR(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Wr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=hC(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function hC(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function mC(e){return~-encodeURI(e).split(/%..|./).length}function gC(e){return mC(JSON.stringify(e))}function yC(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function ei(e,t=[]){return[e,t]}function _C(e,t){const[n,r]=e;return[n,[...r,t]]}function Ji(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function xm(e,t){return Ji(e,(n,r)=>t.includes(r))}function _u(e){const t=so(Ge);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function bC(e){const t=so(Ge);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function bu(e){const[t,n]=e;let r=JSON.stringify(t);function i(a){typeof r=="string"?r=typeof a=="string"?r+a:[_u(r),a]:r.push(typeof a=="string"?_u(a):a)}for(const a of n){const[s,o]=a;if(i(`
22
+ ${JSON.stringify(s)}
23
+ `),typeof o=="string"||o instanceof Uint8Array)i(o);else{let c;try{c=JSON.stringify(o)}catch{c=JSON.stringify(Bn(o))}i(c)}}return typeof r=="string"?r:EC(r)}function EC(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function vC(e){let t=typeof e=="string"?_u(e):e;function n(s){const o=t.subarray(0,s);return t=t.subarray(s+1),o}function r(){let s=t.indexOf(10);return s<0&&(s=t.length),JSON.parse(bC(n(s)))}const i=r(),a=[];for(;t.length;){const s=r(),o=typeof s.length=="number"?s.length:void 0;a.push([s,o?n(o):r()])}return[i,a]}function SC(e){return[{type:"span"},e]}function wC(e){const t=typeof e.data=="string"?_u(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const TC={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",raw_security:"security",log:"log_item"};function Hm(e){return TC[e]}function jp(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function _v(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:sa(r)},...i&&{trace:i}}}function IC(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 AC(e,t,n,r){const i=jp(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:sa(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ei(a,[s])}function OC(e,t,n,r){const i=jp(n),a=e.type&&e.type!=="replay_event"?e.type:"event";IC(e,n?.sdk);const s=_v(e,i,r,t);return delete e.sdkProcessingMetadata,ei(s,[[{type:a},e]])}function RC(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=dr(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:sa(i)}},o=t?.getOptions().beforeSendSpan,c=o?f=>{const l=$e(f),m=o(l);return m||(cf(),l)}:$e,u=[];for(const f of e){const l=c(f);l&&u.push(SC(l))}return ei(s,u)}function CC(e){if(!we)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=$e(e),{spanId:i}=e.spanContext(),a=aa(e),s=Qt(e),o=s===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!o){const{op:f,description:l}=$e(s);u.push(`root ID: ${s.spanContext().spanId}`),f&&u.push(`root op: ${f}`),l&&u.push(`root description: ${l}`)}X.log(`${c}
24
+ ${u.join(`
25
+ `)}`)}function NC(e){if(!we)return;const{description:t="< unknown name >",op:n="< unknown op >"}=$e(e),{spanId:r}=e.spanContext(),a=Qt(e)===e,s=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${r}`;X.log(s)}function bv(e,t,n,r=en()){const i=r&&Qt(r);i&&(we&&X.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[po]:t,[fo]:n}))}function Um(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[fo],a=r[po];typeof i=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:i})}),t}const jm=1e3;class hl{constructor(t={}){this._traceId=t.traceId||Kr(),this._spanId=t.spanId||lo(),this._startTime=t.startTimestamp||Kt(),this._links=t.links,this._attributes={},this.setAttributes({[xt]:"manual",[Vn]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Hp:av}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=qi(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Un,"custom"),this}end(t){this._endTime||(this._endTime=qi(t),NC(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Vn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:uv(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[xt],profile_id:this._attributes[Bp],exclusive_time:this._attributes[ds],measurements:Um(this._events),is_segment:this._isStandaloneSpan&&Qt(this)===this||void 0,segment_id:this._isStandaloneSpan?Qt(this).spanContext().spanId:void 0,links:cv(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){we&&X.log("[Tracing] Adding an event to span:",t);const i=Vm(n)?n:r||Kt(),a=Vm(n)?{}:n||{},s={name:t,time:qi(i),attributes:a};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Ce();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Qt(this)))return;if(this._isStandaloneSpan){this._sampled?PC(RC([this],t)):(we&&X.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(yu(this).scope||tt()).captureEvent(r)}_convertSpanToTransaction(){if(!Gm($e(this)))return;this._name||(we&&X.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=yu(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const a=xs(this).filter(f=>f!==this&&!MC(f)).map(f=>$e(f)).filter(Gm),s=this._attributes[Un];delete this._attributes[sf],a.forEach(f=>{delete f.data[sf]});const o={contexts:{trace:nC(this)},spans:a.length>jm?a.sort((f,l)=>f.start_timestamp-l.start_timestamp).slice(0,jm):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:dr(this)},request:r,...s&&{transaction_info:{source:s}}},c=Um(this._events);return c&&Object.keys(c).length&&(we&&X.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),o.measurements=c),o}}function Vm(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Gm(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function MC(e){return e instanceof hl&&e.isStandaloneSpan()}function PC(e){const t=Ce();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Ev(e,t,n=()=>{}){let r;try{r=e()}catch(i){throw t(i),n(),i}return kC(r,t,n)}function kC(e,t,n){return co(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function LC(e,t,n){if(!vi(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:o=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):o}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const a=Xi(i);if(a===void 0)return we&&X.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return we&&X.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,r];const s=n<a;return s||we&&X.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[s,a,r]}const Eu="__SENTRY_SUPPRESS_TRACING__";function ml(e,t){const n=mo();if(n.startSpan)return n.startSpan(e,t);const r=Gp(e),{forceTransaction:i,parentSpan:a,scope:s}=e,o=s?.clone();return Zn(o,()=>vv(a)(()=>{const u=tt(),f=qp(u,a),m=e.onlyIfParent&&!f?new Xr:Vp({parentSpan:f,spanArguments:r,forceTransaction:i,scope:u});return Ki(u,m),Ev(()=>t(m),()=>{const{status:g}=$e(m);m.isRecording()&&(!g||g==="ok")&&m.setStatus({code:qt,message:"internal_error"})},()=>{m.end()})}))}function DC(e,t){const n=mo();if(n.startSpanManual)return n.startSpanManual(e,t);const r=Gp(e),{forceTransaction:i,parentSpan:a,scope:s}=e,o=s?.clone();return Zn(o,()=>vv(a)(()=>{const u=tt(),f=qp(u,a),m=e.onlyIfParent&&!f?new Xr:Vp({parentSpan:f,spanArguments:r,forceTransaction:i,scope:u});return Ki(u,m),Ev(()=>t(m,()=>m.end()),()=>{const{status:g}=$e(m);m.isRecording()&&(!g||g==="ok")&&m.setStatus({code:qt,message:"internal_error"})})}))}function oa(e){const t=mo();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Gp(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?s=>Zn(e.scope,s):i!==void 0?s=>ho(i,s):s=>s())(()=>{const s=tt(),o=qp(s,i);return e.onlyIfParent&&!o?new Xr:Vp({parentSpan:o,spanArguments:n,forceTransaction:r,scope:s})})}const BC=(e,t)=>{const n=$r(),r=Ci(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:i,baggage:a}=e;return Zn(s=>{const o=rv(i,a);return s.setPropagationContext(o),t()})};function ho(e,t){const n=mo();return n.withActiveSpan?n.withActiveSpan(e,t):Zn(r=>(Ki(r,e||void 0),t(r)))}function FC(e){const t=mo();return t.suppressTracing?t.suppressTracing(e):Zn(n=>{n.setSDKProcessingMetadata({[Eu]:!0});const r=e();return n.setSDKProcessingMetadata({[Eu]:void 0}),r})}function xC(e){return Zn(t=>(t.setPropagationContext({traceId:Kr(),sampleRand:Math.random()}),we&&X.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),ho(null,e)))}function Vp({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!vi()){const s=new Xr;if(n||!e){const o={sampled:"false",sample_rate:"0",transaction:t.name,...dr(s)};zc(s,o)}return s}const i=$t();let a;if(e&&!n)a=HC(e,r,t),lv(e,a);else if(e){const s=dr(e),{traceId:o,spanId:c}=e.spanContext(),u=aa(e);a=qm({traceId:o,parentSpanId:c,...t},r,u),zc(a,s)}else{const{traceId:s,dsc:o,parentSpanId:c,sampled:u}={...i.getPropagationContext(),...r.getPropagationContext()};a=qm({traceId:s,parentSpanId:c,...t},r,u),o&&zc(a,o)}return CC(a),XR(a,r,i),a}function Gp(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=qi(e.startTime),delete r.startTime,r}return n}function mo(){const e=$r();return Ci(e)}function qm(e,t,n){const r=Ce(),i=r?.getOptions()||{},{name:a=""}=e,s={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});const o=s.parentSampled??n,c=s.spanAttributes,u=t.getPropagationContext(),[f,l,m]=t.getScopeData().sdkProcessingMetadata[Eu]?[!1]:LC(i,{name:a,parentSampled:o,attributes:c,parentSampleRate:Xi(u.dsc?.sample_rate)},u.sampleRand),g=new hl({...e,attributes:{[Un]:"custom",[fl]:l!==void 0&&m?l:void 0,...c},sampled:f});return!f&&r&&(we&&X.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",g),g}function HC(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Eu]?!1:aa(e),s=a?new hl({...n,parentSpanId:r,traceId:i,sampled:a}):new Xr({traceId:i});lv(e,s);const o=Ce();return o&&(o.emit("spanStart",s),n.endTimestamp&&o.emit("spanEnd",s)),s}function qp(e,t){if(t)return t;if(t===null)return;const n=Ws(e);if(!n)return;const r=Ce();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Qt(n):n}function vv(e){return e!==void 0?t=>ho(e,t):t=>t()}const Yc={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},UC="heartbeatFailed",jC="idleTimeout",VC="finalTimeout",GC="externalFinish";function Sv(e,t={}){const n=new Map;let r=!1,i,a=GC,s=!t.disableAutoFinish;const o=[],{idleTimeout:c=Yc.idleTimeout,finalTimeout:u=Yc.finalTimeout,childSpanTimeout:f=Yc.childSpanTimeout,beforeSpanEnd:l}=t,m=Ce();if(!m||!vi()){const k=new Xr,j={sample_rate:"0",sampled:"false",...dr(k)};return zc(k,j),k}const g=tt(),_=en(),T=qC(e);T.end=new Proxy(T.end,{apply(k,j,te){if(l&&l(T),j instanceof Xr)return;const[L,...G]=te,W=L||Kt(),z=qi(W),ae=xs(T).filter(ve=>ve!==T);if(!ae.length)return F(z),Reflect.apply(k,j,[z,...G]);const Ee=ae.map(ve=>$e(ve).timestamp).filter(ve=>!!ve),pe=Ee.length?Math.max(...Ee):void 0,le=$e(T).start_timestamp,$=Math.min(le?le+u/1e3:1/0,Math.max(le||-1/0,Math.min(z,pe||1/0)));return F($),Reflect.apply(k,j,[$,...G])}});function B(){i&&(clearTimeout(i),i=void 0)}function U(k){B(),i=setTimeout(()=>{!r&&n.size===0&&s&&(a=jC,T.end(k))},c)}function J(k){i=setTimeout(()=>{!r&&s&&(a=UC,T.end(k))},f)}function K(k){B(),n.set(k,!0);const j=Kt();J(j+f/1e3)}function H(k){if(n.has(k)&&n.delete(k),n.size===0){const j=Kt();U(j+c/1e3)}}function F(k){r=!0,n.clear(),o.forEach(z=>z()),Ki(g,_);const j=$e(T),{start_timestamp:te}=j;if(!te)return;j.data[gu]||T.setAttribute(gu,a),X.log(`[Tracing] Idle span "${j.op}" finished`);const G=xs(T).filter(z=>z!==T);let W=0;G.forEach(z=>{z.isRecording()&&(z.setStatus({code:qt,message:"cancelled"}),z.end(k),we&&X.log("[Tracing] Cancelling span since span ended early",JSON.stringify(z,void 0,2)));const ae=$e(z),{timestamp:Ee=0,start_timestamp:pe=0}=ae,le=pe<=k,$=(u+c)/1e3,ve=Ee-pe<=$;if(we){const ge=JSON.stringify(z,void 0,2);le?ve||X.log("[Tracing] Discarding span since it finished after idle span final timeout",ge):X.log("[Tracing] Discarding span since it happened after idle span was finished",ge)}(!ve||!le)&&(aC(T,z),W++)}),W>0&&T.setAttribute("sentry.idle_span_discarded_spans",W)}return o.push(m.on("spanStart",k=>{if(r||k===T||$e(k).timestamp||k instanceof hl&&k.isStandaloneSpan())return;xs(T).includes(k)&&K(k.spanContext().spanId)})),o.push(m.on("spanEnd",k=>{r||H(k.spanContext().spanId)})),o.push(m.on("idleSpanEnableAutoFinish",k=>{k===T&&(s=!0,U(),n.size&&J())})),t.disableAutoFinish||U(),setTimeout(()=>{r||(T.setStatus({code:qt,message:"deadline_exceeded"}),a=VC,T.end())},u),T}function qC(e){const t=oa(e);return Ki(tt(),t),we&&X.log("[Tracing] Started span is an idle span"),t}const dd=0,Wm=1,zm=2;function Jr(e){return new Si(t=>{t(e)})}function vu(e){return new Si((t,n)=>{n(e)})}class Si{constructor(t){this._state=dd,this._handlers=[],this._runExecutor(t)}then(t,n){return new Si((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Si((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}_executeHandlers(){if(this._state===dd)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Wm&&n[1](this._value),this._state===zm&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(a,s)=>{if(this._state===dd){if(co(s)){s.then(r,i);return}this._state=a,this._value=s,this._executeHandlers()}},r=a=>{n(Wm,a)},i=a=>{n(zm,a)};try{t(r,i)}catch(a){i(a)}}}function lf(e,t,n,r=0){return new Si((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);we&&s.id&&o===null&&X.log(`Event processor "${s.id}" dropped event`),co(o)?o.then(c=>lf(e,c,n,r+1).then(i)).then(null,a):lf(e,o,n,r+1).then(i).then(null,a)}})}function WC(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;zC(e,t),r&&XC(e,r),JC(e,n),YC(e,i),KC(e,a)}function Su(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:u,eventProcessors:f,attachments:l,propagationContext:m,transactionName:g,span:_}=t;_c(e,"extra",n),_c(e,"tags",r),_c(e,"user",i),_c(e,"contexts",a),e.sdkProcessingMetadata=uo(e.sdkProcessingMetadata,o,2),s&&(e.level=s),g&&(e.transactionName=g),_&&(e.span=_),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...m}}function _c(e,t,n){e[t]=uo(e[t],n,1)}function zC(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),s&&(e.level=s),o&&e.type!=="transaction"&&(e.transaction=o)}function YC(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function KC(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function XC(e,t){e.contexts={trace:sv(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:dr(t),...e.sdkProcessingMetadata};const n=Qt(t),r=$e(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function JC(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let bc,Ym,Ec;function wv(e){const t=Ge._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ec&&n.length===Ym||(Ym=n.length,Ec=n.reduce((r,i)=>{bc||(bc={});const a=bc[i];if(a)r[a[0]]=a[1];else{const s=e(i);for(let o=s.length-1;o>=0;o--){const u=s[o]?.filename,f=t[i];if(u&&f){r[u]=f,bc[i]=[u,f];break}}}return r},{})),Ec}function ZC(e,t){const n=wv(e);if(!n)return[];const r=[];for(const i of t)i&&n[i]&&r.push({type:"sourcemap",code_file:i,debug_id:n[i]});return r}function Tv(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,c={...t,event_id:t.event_id||n.event_id||In(),timestamp:t.timestamp||ia()},u=n.integrations||e.integrations.map(B=>B.name);QC(c,e),tN(c,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&$C(c,e.stackParser);const f=rN(r,n.captureContext);n.mechanism&&Ei(c,n.mechanism);const l=i?i.getEventProcessors():[],m=dl().getScopeData();if(a){const B=a.getScopeData();Su(m,B)}if(f){const B=f.getScopeData();Su(m,B)}const g=[...n.attachments||[],...m.attachments];g.length&&(n.attachments=g),WC(c,m);const _=[...l,...m.eventProcessors];return lf(_,c,n).then(B=>(B&&eN(B),typeof s=="number"&&s>0?nN(B,s,o):B))}function QC(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||pl,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const s=e.request;s?.url&&(s.url=Ua(s.url,a))}function $C(e,t){const n=wv(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function eN(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})}),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,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function tN(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function nN(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Bn(i.data,t,n)}}))},...e.user&&{user:Bn(e.user,t,n)},...e.contexts&&{contexts:Bn(e.contexts,t,n)},...e.extra&&{extra:Bn(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Bn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:Bn(i.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Bn(e.contexts.flags,3,n)),r}function rN(e,t){if(!t)return e;const n=e?e.clone():new lr;return n.update(t),n}function iN(e){if(e)return aN(e)?{captureContext:e}:oN(e)?{captureContext:e}:e}function aN(e){return e instanceof lr||typeof e=="function"}const sN=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function oN(e){return Object.keys(e).some(t=>sN.includes(t))}function Zi(e,t){return tt().captureException(e,iN(t))}function wu(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return tt().captureMessage(e,n,r)}function go(e,t){return tt().captureEvent(e,t)}function Iv(e,t){$t().setContext(e,t)}function cN(e){$t().setExtras(e)}function uN(e,t){$t().setExtra(e,t)}function lN(e){$t().setTags(e)}function dN(e,t){$t().setTag(e,t)}function fN(e){$t().setUser(e)}function Av(){return $t().lastEventId()}async function pN(e){const t=Ce();return t?t.flush(e):(we&&X.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function hN(e){const t=Ce();return t?t.close(e):(we&&X.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function mN(){return!!Ce()}function Ov(){const e=Ce();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Rv(e){$t().addEventProcessor(e)}function df(e){const t=$t(),n=tt(),{userAgent:r}=Ge.navigator||{},i=LR({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),a=t.getSession();return a?.status==="ok"&&ja(a,{status:"exited"}),Wp(),t.setSession(i),i}function Wp(){const e=$t(),n=tt().getSession()||e.getSession();n&&DR(n),Cv(),e.setSession()}function Cv(){const e=$t(),t=Ce(),n=e.getSession();n&&t&&t.captureSession(n)}function ff(e=!1){if(e){Wp();return}Cv()}const gN="7";function Nv(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function yN(e){return`${Nv(e)}${e.projectId}/envelope/`}function _N(e,t){const n={sentry_version:gN};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Mv(e,t,n){return t||`${yN(e)}?${_N(e,n)}`}function bN(e,t){const n=hv(e);if(!n)return"";const r=`${Nv(n)}embed/error-page/`;let i=`dsn=${sa(n)}`;for(const a in t)if(a!=="dsn"&&a!=="onClose")if(a==="user"){const s=t.user;if(!s)continue;s.name&&(i+=`&name=${encodeURIComponent(s.name)}`),s.email&&(i+=`&email=${encodeURIComponent(s.email)}`)}else i+=`&${encodeURIComponent(a)}=${encodeURIComponent(t[a])}`;return`${r}?${i}`}const Km=[];function EN(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function vN(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;return EN(r)}function SN(e,t){const n={};return t.forEach(r=>{r&&Pv(e,r,n)}),n}function Xm(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Pv(e,t,n){if(n[t.name]){we&&X.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Km.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Km.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",(i,a)=>r(i,a,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}we&&X.log(`Integration installed: ${t.name}`)}function pf(e){const t=Ce();if(!t){we&&X.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function wN(e,t,n){const r=[{type:"client_report"},{timestamp:ia(),discarded_events:e}];return ei(t?{dsn:t}:{},[r])}function kv(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function TN(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:s,op:o}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:o,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[Bp],exclusive_time:s?.[ds],measurements:e.measurements,is_segment:!0}}function IN(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[Bp]:e.profile_id},...e.exclusive_time&&{[ds]:e.exclusive_time}}}},measurements:e.measurements}}const Jm="Not capturing exception because it's already been captured.",Zm="Discarded session because of missing or non-string release",Lv=Symbol.for("SentryInternalError"),Dv=Symbol.for("SentryDoNotSendEventError");function Kc(e){return{message:e,[Lv]:!0}}function fd(e){return{message:e,[Dv]:!0}}function Qm(e){return!!e&&typeof e=="object"&&Lv in e}function $m(e){return!!e&&typeof e=="object"&&Dv in e}class AN{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=hv(t.dsn):we&&X.warn("No DSN provided, client will not send events."),this._dsn){const n=Mv(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:n})}}captureException(t,n,r){const i=In();if(Mm(t))return we&&X.log(Jm),i;const a={event_id:i,...n};return this._process(this.eventFromException(t,a).then(s=>this._captureEvent(s,a,r))),a.event_id}captureMessage(t,n,r,i){const a={event_id:In(),...r},s=ul(t)?t:String(t),o=Ha(t)?this.eventFromMessage(s,n,a):this.eventFromException(t,a);return this._process(o.then(c=>this._captureEvent(c,a,i))),a.event_id}captureEvent(t,n,r){const i=In();if(n?.originalException&&Mm(n.originalException))return we&&X.log(Jm),i;const a={event_id:i,...n},s=t.sdkProcessingMetadata||{},o=s.capturedSpanScope,c=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,a,o||r,c)),a.event_id}captureSession(t){this.sendSession(t),ja(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(i=>r&&i))):Jr(!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];Pv(this,t,this._integrations),n||Xm(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=OC(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=_C(r,wC(a));const i=this.sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const{release:n,environment:r=pl}=this._options;if("aggregates"in t){const a=t.attrs||{};if(!a.release&&!n){we&&X.warn(Zm);return}a.release=a.release||n,a.environment=a.environment||r,t.attrs=a}else{if(!t.release&&!n){we&&X.warn(Zm);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=AC(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;we&&X.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(we&&X.error("Error while sending envelope:",n),n)):(we&&X.error("Transport disabled"),Jr({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=SN(this,t),Xm(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",i=!1;const a=n.exception?.values;if(a){i=!0;for(const c of a)if(c.mechanism?.handled===!1){r=!0;break}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(ja(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Si(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),Tv(a,t,n,r,this,i).then(o=>{if(o===null)return o;this.emit("postprocessEvent",o,n),o.contexts={trace:XE(r),...o.contexts};const c=Up(this,r);return o.sdkProcessingMetadata={dynamicSamplingContext:c,...o.sdkProcessingMetadata},o})}_captureEvent(t,n={},r=tt(),i=$t()){return we&&hf(t)&&X.log(`Captured error event \`${kv(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,i).then(a=>a.event_id,a=>{we&&($m(a)?X.log(a.message):Qm(a)?X.warn(a.message):X.warn(a))})}_processEvent(t,n,r,i){const a=this.getOptions(),{sampleRate:s}=a,o=Bv(t),c=hf(t),u=t.type||"error",f=`before send for type \`${u}\``,l=typeof s>"u"?void 0:Xi(s);if(c&&typeof l=="number"&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),vu(fd(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const m=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r,i).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",m),fd("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return g;const T=RN(this,a,g,n);return ON(T,f)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",m),o){const U=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",U)}throw fd(`${f} returned \`null\`, will not send event.`)}const _=r.getSession()||i.getSession();if(c&&_&&this._updateSessionFromEvent(_,g),o){const B=g.sdkProcessingMetadata?.spanCountBeforeProcessing||0,U=g.spans?g.spans.length:0,J=B-U;J>0&&this.recordDroppedEvent("before_send","span",J)}const T=g.transaction_info;if(o&&T&&g.transaction!==t.transaction){const B="custom";g.transaction_info={...T,source:B}}return this.sendEvent(g,n),g}).then(null,g=>{throw $m(g)||Qm(g)?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),Kc(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
26
+ 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[i,a]=n.split(":");return{reason:i,category:a,quantity:r}})}_flushOutcomes(){we&&X.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){we&&X.log("No outcomes to send");return}if(!this._dsn){we&&X.log("No dsn provided, will not send outcomes");return}we&&X.log("Sending outcomes:",t);const n=wN(t,this._options.tunnel&&sa(this._dsn));this.sendEnvelope(n)}}function ON(e,t){const n=`${t} must return \`null\` or a valid event.`;if(co(e))return e.then(r=>{if(!zr(r)&&r!==null)throw Kc(n);return r},r=>{throw Kc(`${t} rejected with ${r}`)});if(!zr(e)&&e!==null)throw Kc(n);return e}function RN(e,t,n,r){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:s}=t;let o=n;if(hf(o)&&i)return i(o,r);if(Bv(o)){if(s){const c=s(TN(o));if(c?o=uo(n,IN(c)):cf(),o.spans){const u=[];for(const f of o.spans){const l=s(f);l?u.push(l):(cf(),u.push(f))}o.spans=u}}if(a){if(o.spans){const c=o.spans.length;o.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return a(o,r)}}return o}function hf(e){return e.type===void 0}function Bv(e){return e.type==="transaction"}function CN(e,t){return t?Zn(t,()=>{const n=en(),r=n?sv(n):XE(t);return[n?dr(n):Up(e,t),r]}):[void 0,void 0]}const NN={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function MN(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function PN(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=sa(r)),ei(i,[MN(e)])}const kN=100;function LN(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function li(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function DN(e,t){const n=zp(),r=Fv(e);r===void 0?n.set(e,[t]):r.length>=kN?(Xc(e,r),n.set(e,[t])):n.set(e,[...r,t])}function mf(e,t=Ce(),n=tt(),r=DN){if(!t){we&&X.warn("No client available to capture log.");return}const{release:i,environment:a,enableLogs:s,beforeSendLog:o,_experiments:c}=t.getOptions();if(!(s??c?.enableLogs)){we&&X.warn("logging option not enabled, log will not be captured.");return}const f=o??c?.beforeSendLog,[,l]=CN(t,n),m={...e.attributes},{user:{id:g,email:_,username:T}}=BN(n);li(m,"user.id",g,!1),li(m,"user.email",_,!1),li(m,"user.name",T,!1),li(m,"sentry.release",i),li(m,"sentry.environment",a);const{name:B,version:U}=t.getSdkMetadata()?.sdk??{};li(m,"sentry.sdk.name",B),li(m,"sentry.sdk.version",U);const J=e.message;if(ul(J)){const{__sentry_template_string__:W,__sentry_template_values__:z=[]}=J;m["sentry.message.template"]=W,z.forEach((ae,Ee)=>{m[`sentry.message.parameter.${Ee}`]=ae})}const K=Ws(n);li(m,"sentry.trace.parent_span_id",K?.spanContext().spanId);const H={...e,attributes:m};t.emit("beforeCaptureLog",H);const F=f?Ai(()=>f(H)):H;if(!F){t.recordDroppedEvent("before_send","log_item",1),we&&X.warn("beforeSendLog returned null, log will not be captured.");return}const{level:k,message:j,attributes:te={},severityNumber:L}=F,G={timestamp:Kt(),level:k,body:j,trace_id:l?.trace_id,severity_number:L??NN[k],attributes:Object.keys(te).reduce((W,z)=>(W[z]=LN(te[z]),W),{})};r(t,G),t.emit("afterCaptureLog",F)}function Xc(e,t){const n=t??Fv(e)??[];if(n.length===0)return;const r=e.getOptions(),i=PN(n,r._metadata,r.tunnel,e.getDsn());zp().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function Fv(e){return zp().get(e)}function BN(e){const t=dl().getScopeData();return Su(t,$t().getScopeData()),Su(t,e.getScopeData()),t}function zp(){return oo("clientToLogBufferMap",()=>new WeakMap)}function FN(e,t){t.debug===!0&&(we?X.enable():Ai(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),tt().update(t.initialScope);const r=new e(t);return xv(r),r.init(),r}function xv(e){tt().setClient(e)}const Hv=Symbol.for("SentryBufferFullError");function xN(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return vu(Hv);const o=s();return t.indexOf(o)===-1&&t.push(o),o.then(()=>r(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new Si((o,c)=>{let u=t.length;if(!u)return o(!0);const f=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(l=>{Jr(l).then(()=>{--u||(clearTimeout(f),o(!0))},c)})})}return{$:t,add:i,drain:a}}const HN=60*1e3;function Uv(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?HN:r-t}function UN(e,t){return e[t]||e.all||0}function jv(e,t,n=Date.now()){return UN(e,t)>n}function Vv(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(a)for(const o of a.trim().split(",")){const[c,u,,,f]=o.split(":",5),l=parseInt(c,10),m=(isNaN(l)?60:l)*1e3;if(!u)i.all=r+m;else for(const g of u.split(";"))g==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(i[g]=r+m):i[g]=r+m}else s?i.all=r+Uv(s,r):t===429&&(i.all=r+60*1e3);return i}const jN=64;function Gv(e,t,n=xN(e.bufferSize||jN)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(Ji(s,(l,m)=>{const g=Hm(m);jv(r,g)?e.recordDroppedEvent("ratelimit_backoff",g):o.push(l)}),o.length===0)return Jr({});const c=ei(s[0],o),u=l=>{Ji(c,(m,g)=>{e.recordDroppedEvent(l,Hm(g))})},f=()=>t({body:bu(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&we&&X.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Vv(r,l),l),l=>{throw u("network_error"),we&&X.error("Encountered error running transport request:",l),l});return n.add(f).then(l=>l,l=>{if(l===Hv)return we&&X.error("Skipped sending event because buffer is full."),u("queue_overflow"),Jr({});throw l})}return{send:a,flush:i}}const pd=100,hd=5e3,VN=36e5;function GN(e){function t(...n){we&&X.log("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const i=n.createStore(n);let a=hd,s;function o(l,m,g){return xm(l,["client_report"])?!1:n.shouldStore?n.shouldStore(l,m,g):!0}function c(l){s&&clearTimeout(s),s=setTimeout(async()=>{s=void 0;const m=await i.shift();m&&(t("Attempting to send previously queued event"),m[0].sent_at=new Date().toISOString(),f(m,!0).catch(g=>{t("Failed to retry sending",g)}))},l),typeof s!="number"&&s.unref&&s.unref()}function u(){s||(c(a),a=Math.min(a*2,VN))}async function f(l,m=!1){if(!m&&xm(l,["replay_event","replay_recording"]))return await i.push(l),c(pd),{};try{if(n.shouldSend&&await n.shouldSend(l)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");const g=await r.send(l);let _=pd;if(g){if(g.headers?.["retry-after"])_=Uv(g.headers["retry-after"]);else if(g.headers?.["x-sentry-rate-limits"])_=6e4;else if((g.statusCode||0)>=400)return g}return c(_),a=hd,g}catch(g){if(await o(l,g,a))return m?await i.unshift(l):await i.push(l),u(),t("Error sending. Event queued.",g),{};throw g}}return n.flushAtStartup&&u(),{send:f,flush:l=>(l===void 0&&(a=hd,c(pd)),r.flush(l))}}}function qv(e,t){let n;return Ji(e,(r,i)=>(t.includes(i)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function qN(e,t){return n=>{const r=e(n);return{...r,send:async i=>{const a=qv(i,["event","transaction","profile","replay_event"]);return a&&(a.release=t),r.send(i)}}}}function WN(e,t){return ei(t?{...e[0],dsn:t}:e[0],e[1])}function zN(e,t){return n=>{const r=e(n),i=new Map;function a(c,u){const f=u?`${c}:${u}`:c;let l=i.get(f);if(!l){const m=fv(c);if(!m)return;const g=Mv(m,n.tunnel);l=u?qN(e,u)({...n,url:g}):e({...n,url:g}),i.set(f,l)}return[c,l]}async function s(c){function u(g){const _=g?.length?g:["event"];return qv(c,_)}const f=t({envelope:c,getEvent:u}).map(g=>typeof g=="string"?a(g,void 0):a(g.dsn,g.release)).filter(g=>!!g),l=f.length?f:[["",r]];return(await Promise.all(l.map(([g,_])=>_.send(WN(c,g)))))[0]}async function o(c){const u=[...i.values(),r];return(await Promise.all(u.map(l=>l.flush(c)))).every(l=>l)}return{send:s,flush:o}}}function Wv(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return KN(e,n)||YN(e,r)}function YN(e,t){return t?eg(e)===eg(t):!1}function KN(e,t){return t?e.includes(t.host):!1}function eg(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function zv(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const XN=zv;function JN(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function ZN(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function QN(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:Vr})),version:Vr}),e._metadata=i}function Yp(e={}){const t=e.client||Ce();if(!Ov()||!t)return{};const n=$r(),r=Ci(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||tt(),a=e.span||en(),s=a?ov(a):$N(i),o=a?dr(a):Up(t,i),c=tv(o);return nv.test(s)?{"sentry-trace":s,baggage:c}:(X.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function $N(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return iv(t,r,n)}function eM(e,t,n){let r,i,a;const s=n?.maxWait?Math.max(n.maxWait,t):0,o=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function f(){return i!==void 0||a!==void 0?c():r}function l(){return i&&clearTimeout(i),i=o(c,t),s&&a===void 0&&(a=o(c,s)),r}return l.cancel=u,l.flush=f,l}const tM=100;function Rr(e,t){const n=Ce(),r=$t();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=tM}=n.getOptions();if(a<=0)return;const o={timestamp:ia(),...e},c=i?Ai(()=>i(o,t)):o;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,a))}let tg;const nM="FunctionToString",ng=new WeakMap,rM=()=>({name:nM,setupOnce(){tg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Dp(this),n=ng.has(Ce())&&t!==void 0?t:this;return tg.apply(n,e)}}catch{}},setup(e){ng.set(e,!0)}}),Yv=rM,iM=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`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+$/,/^Java exception was raised during method invocation$/],aM="EventFilters",Kv=(e={})=>{let t;return{name:aM,setup(n){const r=n.getOptions();t=rg(e,r)},processEvent(n,r,i){if(!t){const a=i.getOptions();t=rg(e,a)}return sM(n,t)?null:n}}},Xv=(e={})=>({...Kv(e),name:"InboundFilters"});function rg(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:iM],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function sM(e,t){if(e.type){if(e.type==="transaction"&&cM(e,t.ignoreTransactions))return we&&X.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
27
+ Event: ${Fi(e)}`),!0}else{if(oM(e,t.ignoreErrors))return we&&X.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
28
+ Event: ${Fi(e)}`),!0;if(fM(e))return we&&X.warn(`Event dropped due to not having an error message, error type or stacktrace.
29
+ Event: ${Fi(e)}`),!0;if(uM(e,t.denyUrls))return we&&X.warn(`Event dropped due to being matched by \`denyUrls\` option.
30
+ Event: ${Fi(e)}.
31
+ Url: ${Tu(e)}`),!0;if(!lM(e,t.allowUrls))return we&&X.warn(`Event dropped due to not being matched by \`allowUrls\` option.
32
+ Event: ${Fi(e)}.
33
+ Url: ${Tu(e)}`),!0}return!1}function oM(e,t){return t?.length?kv(e).some(n=>ur(n,t)):!1}function cM(e,t){if(!t?.length)return!1;const n=e.transaction;return n?ur(n,t):!1}function uM(e,t){if(!t?.length)return!1;const n=Tu(e);return n?ur(n,t):!1}function lM(e,t){if(!t?.length)return!0;const n=Tu(e);return n?ur(n,t):!0}function dM(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 Tu(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?dM(n):null}catch{return we&&X.error(`Cannot extract url for event ${Fi(e)}`),null}}function fM(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function pM(e,t,n,r,i,a){if(!i.exception?.values||!a||!Yr(a.originalException,Error))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=gf(e,t,r,a.originalException,n,i.exception.values,s,0))}function gf(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let c=[...a];if(Yr(r[i],Error)){ig(s,o);const u=e(t,r[i]),f=c.length;ag(u,i,f,o),c=gf(e,t,n,r[i],i,[u,...c],u,f)}return Array.isArray(r.errors)&&r.errors.forEach((u,f)=>{if(Yr(u,Error)){ig(s,o);const l=e(t,u),m=c.length;ag(l,`errors[${f}]`,m,o),c=gf(e,t,n,u,i,[l,...c],l,m)}}),c}function ig(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 ag(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}}const Jv=new Map,sg=new Set;function hM(e){if(Ge._sentryModuleMetadata)for(const t of Object.keys(Ge._sentryModuleMetadata)){const n=Ge._sentryModuleMetadata[t];if(sg.has(t))continue;sg.add(t);const r=e(t);for(const i of r.reverse())if(i.filename){Jv.set(i.filename,n);break}}}function mM(e,t){return hM(e),Jv.get(t)}function Zv(e,t){try{t.exception.values.forEach(n=>{if(n.stacktrace)for(const r of n.stacktrace.frames||[]){if(!r.filename||r.module_metadata)continue;const i=mM(e,r.filename);i&&(r.module_metadata=i)}})}catch{}}function Qv(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}const gM=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{Ji(t,(n,r)=>{if(r==="event"){const i=Array.isArray(n)?n[1]:void 0;i&&(Qv(i),n[1]=i)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;Zv(n,t)})}});function Kp(e){const t="console";Oi(t,e),Ri(t,yM)}function yM(){"console"in Ge&&Mp.forEach(function(e){e in Ge.console&&Tn(Ge.console,e,function(t){return hu[e]=t,function(...n){Yn("console",{args:n,level:e}),hu[e]?.apply(Ge.console,n)}})})}function Xp(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const _M="CaptureConsole",bM=(e={})=>{const t=e.levels||Mp,n=e.handled??!0;return{name:_M,setup(r){"console"in Ge&&Kp(({args:i,level:a})=>{Ce()!==r||!t.includes(a)||vM(i,a,n)})}}},EM=bM;function vM(e,t,n){const r={level:Xp(t),extra:{arguments:e}};Zn(i=>{if(i.addEventProcessor(o=>(o.logger="console",Ei(o,{handled:n,type:"console"}),o)),t==="assert"){if(!e[0]){const o=`Assertion failed: ${mu(e.slice(1)," ")||"console.assert"}`;i.setExtra("arguments",e.slice(1)),wu(o,r)}return}const a=e.find(o=>o instanceof Error);if(a){Zi(a,r);return}const s=mu(e," ");wu(s,r)})}const SM="Dedupe",wM=()=>{let e;return{name:SM,processEvent(t){if(t.type)return t;try{if(TM(t,e))return we&&X.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},$v=wM;function TM(e,t){return t?!!(IM(e,t)||AM(e,t)):!1}function IM(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!t0(e,t)||!e0(e,t))}function AM(e,t){const n=og(t),r=og(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!t0(e,t)||!e0(e,t))}function e0(e,t){let n=nf(e),r=nf(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const a=r[i],s=n[i];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0}function t0(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 og(e){return e.exception?.values?.[0]}const OM="ExtraErrorData",RM=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:OM,processEvent(r,i,a){const{maxValueLength:s=250}=a.getOptions();return NM(r,i,t,n,s)}}},CM=RM;function NM(e,t={},n,r,i){if(!t.originalException||!yi(t.originalException))return e;const a=t.originalException.name||t.originalException.constructor.name,s=MM(t.originalException,r,i);if(s){const o={...e.contexts},c=Bn(s,n);return zr(c)&&(Pn(c,"__sentry_skip_normalization__",!0),o[a]=c),{...e,contexts:o}}return e}function MM(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const a of Object.keys(e)){if(r.indexOf(a)!==-1)continue;const s=e[a];i[a]=yi(s)||typeof s=="string"?Ua(`${s}`,n):s}if(t&&e.cause!==void 0&&(i.cause=yi(e.cause)?e.cause.toString():e.cause),typeof e.toJSON=="function"){const a=e.toJSON();for(const s of Object.keys(a)){const o=a[s];i[s]=yi(o)?o.toString():o}}return i}catch(r){we&&X.error("Unable to extract extra data from the Error object:",r)}return null}function PM(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const i=e[r];i==="."?e.splice(r,1):i===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const kM=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function LM(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=kM.exec(t);return n?n.slice(1):[]}function cg(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n=i.charAt(0)==="/")}return t=PM(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function ug(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function DM(e,t){e=cg(e).slice(1),t=cg(t).slice(1);const n=ug(e.split("/")),r=ug(t.split("/")),i=Math.min(n.length,r.length);let a=i;for(let o=0;o<i;o++)if(n[o]!==r[o]){a=o;break}let s=[];for(let o=a;o<n.length;o++)s.push("..");return s=s.concat(r.slice(a)),s.join("/")}function BM(e,t){return LM(e)[2]||""}const FM="RewriteFrames",xM=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in Ge&&!!Ge.window,i=e.iteratee||HM({isBrowser:r,root:t,prefix:n});function a(o){try{return{...o,exception:{...o.exception,values:o.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:s(c.stacktrace)}}))}}}catch{return o}}function s(o){return{...o,frames:o?.frames?.map(c=>i(c))}}return{name:FM,processEvent(o){let c=o;return o.exception&&Array.isArray(o.exception.values)&&(c=a(c)),c}}};function HM({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),a=/^\//.test(r.filename);if(e){if(t){const s=r.filename;s.indexOf(t)===0&&(r.filename=s.replace(t,n))}}else if(i||a){const s=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,o=t?DM(t,s):BM(s);r.filename=`${n}${o}`}return r}}const UM=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],jM=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],VM={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},n0=["select","insert","upsert","update","delete"];function gl(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function yl(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function GM(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function qM(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let i;return n?.startsWith("fts")?i="textSearch":n?.startsWith("plfts")?i="textSearch[plain]":n?.startsWith("phfts")?i="textSearch[phrase]":n?.startsWith("wfts")?i="textSearch[websearch]":i=n&&VM[n]||"filter",`${i}(${e}, ${r.join(".")})`}function lg(e,t=!1){return new Proxy(e,{apply(n,r,i){return ml({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[xt]:"auto.db.supabase",[Vn]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},a=>Reflect.apply(n,r,i).then(s=>(s&&typeof s=="object"&&"error"in s&&s.error?(a.setStatus({code:qt}),Zi(s.error,{mechanism:{handled:!1}})):a.setStatus({code:Fp}),a.end(),s)).catch(s=>{throw a.setStatus({code:qt}),a.end(),Zi(s,{mechanism:{handled:!1}}),s}).then(...i))}})}function WM(e){const t=e.auth;if(!(!t||yl(e.auth))){for(const n of UM){const r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=lg(r))}for(const n of jM){const r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=lg(r,!0))}gl(e.auth)}}function zM(e){yl(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){const i=Reflect.apply(t,n,r),a=i.constructor;return KM(a),i}}),gl(e.prototype.from))}function YM(e){yl(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){const i=n0,a=n,s=GM(a.method,a.headers);if(!i.includes(s)||!a?.url?.pathname||typeof a.url.pathname!="string")return Reflect.apply(t,n,r);const o=a.url.pathname.split("/"),c=o.length>0?o[o.length-1]:"",u=[];for(const[g,_]of a.url.searchParams.entries())u.push(qM(g,_));const f=Object.create(null);if(zr(a.body))for(const[g,_]of Object.entries(a.body))f[g]=_;const l=`${s==="select"?"":`${s}${f?"(...) ":""}`}${u.join(" ")} from(${c})`,m={"db.table":c,"db.schema":a.schema,"db.url":a.url.origin,"db.sdk":a.headers["X-Client-Info"],"db.system":"postgresql","db.operation":s,[xt]:"auto.db.supabase",[Vn]:"db"};return u.length&&(m["db.query"]=u),Object.keys(f).length&&(m["db.body"]=f),ml({name:l,attributes:m},g=>Reflect.apply(t,n,[]).then(_=>{if(g&&(_&&typeof _=="object"&&"status"in _&&zs(g,_.status||500),g.end()),_.error){const U=new Error(_.error.message);_.error.code&&(U.code=_.error.code),_.error.details&&(U.details=_.error.details);const J={};u.length&&(J.query=u),Object.keys(f).length&&(J.body=f),Zi(U,{contexts:{supabase:J}})}const T={type:"supabase",category:`db.${s}`,message:l},B={};return u.length&&(B.query=u),Object.keys(f).length&&(B.body=f),Object.keys(B).length&&(T.data=B),Rr(T),_},_=>{throw g&&(zs(g,500),g.end()),_}).then(...r))}}),gl(e.prototype.then))}function KM(e){for(const t of n0)yl(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,i){const a=Reflect.apply(n,r,i),s=a.constructor;return we&&X.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),YM(s),a}}),gl(e.prototype[t]))}const r0=e=>{if(!e){we&&X.warn("Supabase integration was not installed because no Supabase client was provided.");return}const t=e.constructor===Function?e:e.constructor;zM(t),WM(e)},XM="Supabase",JM=e=>({setupOnce(){r0(e)},name:XM}),ZM=e=>JM(e.supabaseClient),QM=10,$M="ZodErrors";function eP(e){return yi(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function tP(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function nP(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function rP(e){const t=new Set;for(const r of e.issues){const i=nP(r.path);i.length>0&&t.add(i)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const i=e.issues[0];i!==void 0&&"expected"in i&&typeof i.expected=="string"&&(r=i.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${Ua(n.join(", "),100)}`}function iP(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!eP(r.originalException)||r.originalException.issues.length===0)return n;try{const a=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(tP);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:a})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:rP(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":a.slice(0,e)}}}catch(i){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:i instanceof Error?`${i.name}: ${i.message}
34
+ ${i.stack}`:"unknown"}}}}}const aP=(e={})=>{const t=e.limit??QM;return{name:$M,processEvent(n,r){return iP(t,e.saveZodIssuesAsAttachment,n,r)}}},sP=aP,oP=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{Ji(n,(r,i)=>{if(i==="event"){const a=Array.isArray(r)?r[1]:void 0;a&&(Qv(a),r[1]=a)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;Zv(r,n)})},processEvent(t){const n=cP(t);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](a=>!a.some(s=>e.filterKeys.includes(s)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function cP(e){const t=nf(e);if(t)return t.filter(n=>!!n.filename).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(dg)).map(r=>r.slice(dg.length)):[])}const dg="_sentryBundlerPluginAppKey:",uP=100,lP=10,vc="flag.evaluation.";function yo(e){const n=tt().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function Ga(e,t,n=uP){const r=tt().getScopeData().contexts;r.flags||(r.flags={values:[]});const i=r.flags.values;dP(i,e,t,n)}function dP(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){we&&X.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const i=e.findIndex(a=>a.flag===t);i!==-1&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function qa(e,t,n=lP){if(typeof t!="boolean")return;const r=en();if(!r)return;const i=$e(r).data;if(`${vc}${e}`in i){r.setAttribute(`${vc}${e}`,t);return}Object.keys(i).filter(s=>s.startsWith(vc)).length<n&&r.setAttribute(`${vc}${e}`,t)}const fP=()=>({name:"FeatureFlags",processEvent(e,t,n){return yo(e)},addFeatureFlag(e,t){Ga(e,t),qa(e,t)}}),pP="thismessage:/";function i0(e){return"isRelative"in e}function a0(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?pP:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function hP(e){if(i0(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function zi(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 s0(e){return e.split(/[?#]/,1)[0]}function mP(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const{method:a,url:s}=e.fetchData,o=vi()&&t(s);if(e.endTimestamp&&o){const l=e.fetchData.__span;if(!l)return;const m=r[l];m&&(yP(m,e),delete r[l]);return}const c=!!en(),u=o&&c?oa(bP(s,a,i)):new Xr;if(e.fetchData.__span=u.spanContext().spanId,r[u.spanContext().spanId]=u,n(e.fetchData.url)){const l=e.args[0],m=e.args[1]||{},g=gP(l,m,vi()&&c?u:void 0);g&&(e.args[1]=m,m.headers=g)}const f=Ce();if(f){const l={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",u,l)}return u}function gP(e,t,n){const r=Yp({span:n}),i=r["sentry-trace"],a=r.baggage;if(!i)return;const s=t.headers||(GE(e)?e.headers:void 0);if(s)if(_P(s)){const o=new Headers(s);if(o.get("sentry-trace")||o.set("sentry-trace",i),a){const c=o.get("baggage");c?Sc(c)||o.set("baggage",`${c},${a}`):o.set("baggage",a)}return o}else if(Array.isArray(s)){const o=[...s];s.find(u=>u[0]==="sentry-trace")||o.push(["sentry-trace",i]);const c=s.find(u=>u[0]==="baggage"&&Sc(u[1]));return a&&!c&&o.push(["baggage",a]),o}else{const o="sentry-trace"in s?s["sentry-trace"]:void 0,c="baggage"in s?s.baggage:void 0,u=c?Array.isArray(c)?[...c]:[c]:[],f=c&&(Array.isArray(c)?c.find(l=>Sc(l)):Sc(c));return a&&!f&&u.push(a),{...s,"sentry-trace":o??i,baggage:u.length>0?u.join(","):void 0}}else return{...r}}function yP(e,t){if(t.response){zs(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:qt,message:"internal_error"});e.end()}function Sc(e){return e.split(",").some(t=>t.trim().startsWith(xp))}function _P(e){return typeof Headers<"u"&&Yr(e,Headers)}function bP(e,t,n){const r=a0(e);return{name:r?`${t} ${hP(r)}`:t,attributes:EP(e,r,t,n)}}function EP(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[xt]:r,[Vn]:"http.client"};return t&&(i0(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function o0(e,t={},n=tt()){const{message:r,name:i,email:a,url:s,source:o,associatedEventId:c,tags:u}=e,f={contexts:{feedback:{contact_email:a,name:i,message:r,url:s,source:o,associated_event_id:c}},type:"feedback",level:"info",tags:u},l=n?.getClient()||Ce();return l&&l.emit("beforeSendFeedback",f,t),n.captureEvent(f,t)}const vP="ConsoleLogs",fg={[xt]:"auto.console.logging"},SP=(e={})=>{const t=e.levels||Mp;return{name:vP,setup(n){const{enableLogs:r,_experiments:i,normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=n.getOptions();if(!(r??i?.enableLogs)){we&&X.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}Kp(({args:c,level:u})=>{if(Ce()!==n||!t.includes(u))return;if(u==="assert"){if(!c[0]){const l=c.slice(1),m=l.length>0?`Assertion failed: ${pg(l,a,s)}`:"Assertion failed";mf({level:"error",message:m,attributes:fg})}return}const f=u==="log";mf({level:f?"info":u,message:pg(c,a,s),severityNumber:f?10:void 0,attributes:fg})})}}},wP=SP;function pg(e,t,n){return"util"in Ge&&typeof Ge.util.format=="function"?Ge.util.format(...e):TP(e,t,n)}function TP(e,t,n){return e.map(r=>Ha(r)?String(r):JSON.stringify(Bn(r,t,n))).join(" ")}function c0(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Wa=Ge;function IP(){return"history"in Wa&&!!Wa.history}function AP(){if(!("fetch"in Wa))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function yf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function u0(){if(typeof EdgeRuntime=="string")return!0;if(!AP())return!1;if(yf(Wa.fetch))return!0;let e=!1;const t=Wa.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=yf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){we&&X.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function OP(){return"ReportingObserver"in Wa}function Jp(e,t){const n="fetch";Oi(n,e),Ri(n,()=>l0(void 0,t))}function RP(e){const t="fetch-body-resolved";Oi(t,e),Ri(t,()=>l0(NP))}function l0(e,t=!1){t&&!u0()||Tn(Ge,"fetch",function(n){return function(...r){const i=new Error,{method:a,url:s}=MP(r),o={args:r,fetchData:{method:a,url:s},startTimestamp:Kt()*1e3,virtualError:i,headers:PP(r)};return e||Yn("fetch",{...o}),n.apply(Ge,r).then(async c=>(e?e(c):Yn("fetch",{...o,endTimestamp:Kt()*1e3,response:c}),c),c=>{if(Yn("fetch",{...o,endTimestamp:Kt()*1e3,error:c}),yi(c)&&c.stack===void 0&&(c.stack=i.stack,Pn(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(o.fetchData.url);c.message=`${c.message} (${u.host})`}catch{}throw c})}})}async function CP(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let a=!0;for(;a;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(s),o&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(s)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function NP(e){let t;try{t=e.clone()}catch{return}CP(t,()=>{Yn("fetch-body-resolved",{endTimestamp:Kt()*1e3,response:e})})}function _f(e,t){return!!e&&typeof e=="object"&&!!e[t]}function hg(e){return typeof e=="string"?e:e?_f(e,"url")?e.url:e.toString?e.toString():"":""}function MP(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:hg(n),method:_f(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:hg(t),method:_f(t,"method")?String(t.method).toUpperCase():"GET"}}function PP(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(GE(t))return new Headers(t.headers)}catch{}}function kP(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function LP(){return"npm"}function DP(){return!kP()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function bf(){return typeof window<"u"&&(!DP()||BP())}function BP(){return Ge.process?.type==="renderer"}const ir=Ge,Tt=ir.document,Ds=ir.navigator,d0="Report a Bug",FP="Cancel",xP="Send Bug Report",HP="Confirm",UP="Report a Bug",jP="your.email@example.org",VP="Email",GP="What's the bug? What did you expect?",qP="Description",WP="Your Name",zP="Name",YP="Thank you for your report!",KP="(required)",XP="Add a screenshot",JP="Remove screenshot",ZP="widget",QP="api",$P=5e3,f0=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=Ce();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&tt().setTags(e.tags);const r=o0({source:QP,url:ra(),...e},t);return new Promise((i,a)=>{const s=setTimeout(()=>a("Unable to determine if Feedback was correctly sent."),3e4),o=n.on("afterSendEvent",(c,u)=>{if(c.event_id===r)return clearTimeout(s),o(),u&&typeof u.statusCode=="number"&&u.statusCode>=200&&u.statusCode<300?i(r):u&&typeof u.statusCode=="number"&&u.statusCode===0?a("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):u&&typeof u.statusCode=="number"&&u.statusCode===403?a("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):a("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")})})},Jc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ek(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ds.userAgent)||/Macintosh/i.test(Ds.userAgent)&&Ds.maxTouchPoints&&Ds.maxTouchPoints>1||!isSecureContext)}function wc(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function tk(e){const t=Tt.createElement("style");return t.textContent=`
35
+ .widget__actor {
36
+ position: fixed;
37
+ z-index: var(--z-index);
38
+ margin: var(--page-margin);
39
+ inset: var(--actor-inset);
40
+
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 8px;
44
+ padding: 16px;
45
+
46
+ font-family: inherit;
47
+ font-size: var(--font-size);
48
+ font-weight: 600;
49
+ line-height: 1.14em;
50
+ text-decoration: none;
51
+
52
+ background: var(--actor-background, var(--background));
53
+ border-radius: var(--actor-border-radius, 1.7em/50%);
54
+ border: var(--actor-border, var(--border));
55
+ box-shadow: var(--actor-box-shadow, var(--box-shadow));
56
+ color: var(--actor-color, var(--foreground));
57
+ fill: var(--actor-color, var(--foreground));
58
+ cursor: pointer;
59
+ opacity: 1;
60
+ transition: transform 0.2s ease-in-out;
61
+ transform: translate(0, 0) scale(1);
62
+ }
63
+ .widget__actor[aria-hidden="true"] {
64
+ opacity: 0;
65
+ pointer-events: none;
66
+ visibility: hidden;
67
+ transform: translate(0, 16px) scale(0.98);
68
+ }
69
+
70
+ .widget__actor:hover {
71
+ background: var(--actor-hover-background, var(--background));
72
+ filter: var(--interactive-filter);
73
+ }
74
+
75
+ .widget__actor svg {
76
+ width: 1.14em;
77
+ height: 1.14em;
78
+ }
79
+
80
+ @media (max-width: 600px) {
81
+ .widget__actor span {
82
+ display: none;
83
+ }
84
+ }
85
+ `,e&&t.setAttribute("nonce",e),t}function Hn(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const _a=20,nk="http://www.w3.org/2000/svg";function rk(){const e=o=>ir.document.createElementNS(nk,o),t=Hn(e("svg"),{width:`${_a}`,height:`${_a}`,viewBox:`0 0 ${_a} ${_a}`,fill:"var(--actor-color, var(--foreground))"}),n=Hn(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Hn(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const i=e("defs"),a=Hn(e("clipPath"),{id:"clip0_57_80"}),s=Hn(e("rect"),{width:`${_a}`,height:`${_a}`,fill:"white"});return a.appendChild(s),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(s),t}function ik({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const i=Tt.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||d0,i.appendChild(rk()),e){const s=Tt.createElement("span");s.appendChild(Tt.createTextNode(e)),i.appendChild(s)}const a=tk(r);return{el:i,appendToDom(){n.appendChild(a),n.appendChild(i)},removeFromDom(){i.remove(),a.remove()},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}const p0="rgba(88, 74, 192, 1)",ak={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:p0,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},mg={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:p0,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function gg(e){return`
86
+ --foreground: ${e.foreground};
87
+ --background: ${e.background};
88
+ --accent-foreground: ${e.accentForeground};
89
+ --accent-background: ${e.accentBackground};
90
+ --success-color: ${e.successColor};
91
+ --error-color: ${e.errorColor};
92
+ --border: ${e.border};
93
+ --box-shadow: ${e.boxShadow};
94
+ --outline: ${e.outline};
95
+ --interactive-filter: ${e.interactiveFilter};
96
+ `}function sk({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const i=Tt.createElement("style");return i.textContent=`
97
+ :host {
98
+ --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
99
+ --font-size: 14px;
100
+ --z-index: 100000;
101
+
102
+ --page-margin: 16px;
103
+ --inset: auto 0 0 auto;
104
+ --actor-inset: var(--inset);
105
+
106
+ font-family: var(--font-family);
107
+ font-size: var(--font-size);
108
+
109
+ ${e!=="system"?"color-scheme: only light;":""}
110
+
111
+ ${gg(e==="dark"?{...mg,...t}:{...ak,...n})}
112
+ }
113
+
114
+ ${e==="system"?`
115
+ @media (prefers-color-scheme: dark) {
116
+ :host {
117
+ ${gg({...mg,...t})}
118
+ }
119
+ }`:""}
120
+ }
121
+ `,r&&i.setAttribute("nonce",r),i}const h0=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:i="sentry-feedback",autoInject:a=!0,showBranding:s=!0,isEmailRequired:o=!1,isNameRequired:c=!1,showEmail:u=!0,showName:f=!0,enableScreenshot:l=!0,useSentryUser:m={email:"email",name:"username"},tags:g,styleNonce:_,scriptNonce:T,colorScheme:B="system",themeLight:U={},themeDark:J={},addScreenshotButtonLabel:K=XP,cancelButtonLabel:H=FP,confirmButtonLabel:F=HP,emailLabel:k=VP,emailPlaceholder:j=jP,formTitle:te=UP,isRequiredLabel:L=KP,messageLabel:G=qP,messagePlaceholder:W=GP,nameLabel:z=zP,namePlaceholder:ae=WP,removeScreenshotButtonLabel:Ee=JP,submitButtonLabel:pe=xP,successMessageText:le=YP,triggerLabel:$=d0,triggerAriaLabel:ve="",onFormOpen:ge,onFormClose:fe,onSubmitSuccess:Se,onSubmitError:Xe,onFormSubmitted:ce}={})=>{const He={id:i,autoInject:a,showBranding:s,isEmailRequired:o,isNameRequired:c,showEmail:u,showName:f,enableScreenshot:l,useSentryUser:m,tags:g,styleNonce:_,scriptNonce:T,colorScheme:B,themeDark:J,themeLight:U,triggerLabel:$,triggerAriaLabel:ve,cancelButtonLabel:H,submitButtonLabel:pe,confirmButtonLabel:F,formTitle:te,emailLabel:k,emailPlaceholder:j,messageLabel:G,messagePlaceholder:W,nameLabel:z,namePlaceholder:ae,successMessageText:le,isRequiredLabel:L,addScreenshotButtonLabel:K,removeScreenshotButtonLabel:Ee,onFormClose:fe,onFormOpen:ge,onSubmitError:Xe,onSubmitSuccess:Se,onFormSubmitted:ce};let Et=null,vt=[];const tn=pt=>{if(!Et){const gt=Tt.createElement("div");gt.id=String(pt.id),Tt.body.appendChild(gt),Et=gt.attachShadow({mode:"open"}),Et.appendChild(sk(pt))}return Et},nn=async pt=>{const gt=pt.enableScreenshot&&ek();let Wt,nt;try{Wt=(t?t():await e("feedbackModalIntegration",T))(),pf(Wt)}catch{throw Jc&&X.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Je=gt?n?n():await e("feedbackScreenshotIntegration",T):void 0;Je&&(nt=Je(),pf(nt))}catch{Jc&&X.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const rt=Wt.createDialog({options:{...pt,onFormClose:()=>{rt?.close(),pt.onFormClose?.()},onFormSubmitted:()=>{rt?.close(),pt.onFormSubmitted?.()}},screenshotIntegration:nt,sendFeedback:f0,shadow:tn(pt)});return rt},Gn=(pt,gt={})=>{const Wt=wc(He,gt),nt=typeof pt=="string"?Tt.querySelector(pt):typeof pt.addEventListener=="function"?pt:null;if(!nt)throw Jc&&X.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let rt=null;const Je=async()=>{rt||(rt=await nn({...Wt,onFormSubmitted:()=>{rt?.removeFromDom(),Wt.onFormSubmitted?.()}})),rt.appendToDom(),rt.open()};nt.addEventListener("click",Je);const yn=()=>{vt=vt.filter(Lt=>Lt!==yn),rt?.removeFromDom(),rt=null,nt.removeEventListener("click",Je)};return vt.push(yn),yn},Ne=(pt={})=>{const gt=wc(He,pt),Wt=tn(gt),nt=ik({triggerLabel:gt.triggerLabel,triggerAriaLabel:gt.triggerAriaLabel,shadow:Wt,styleNonce:_});return Gn(nt.el,{...gt,onFormOpen(){nt.hide()},onFormClose(){nt.show()},onFormSubmitted(){nt.show()}}),nt};return{name:"Feedback",setupOnce(){!bf()||!He.autoInject||(Tt.readyState==="loading"?Tt.addEventListener("DOMContentLoaded",()=>Ne().appendToDom()):Ne().appendToDom())},attachTo:Gn,createWidget(pt={}){const gt=Ne(wc(He,pt));return gt.appendToDom(),gt},async createForm(pt={}){return nn(wc(He,pt))},remove(){Et&&(Et.parentElement?.remove(),Et=null),vt.forEach(pt=>pt()),vt=[]}}};function ok(){return Ce()?.getIntegrationByName("Feedback")}var _l,At,m0,xi,yg,g0,Ef,Ys={},Zp=[],ck=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Qp=Array.isArray;function mi(e,t){for(var n in t)e[n]=t[n];return e}function y0(e){var t=e.parentNode;t&&t.removeChild(e)}function at(e,t,n){var r,i,a,s={};for(a in t)a=="key"?r=t[a]:a=="ref"?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?_l.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return Zc(e,s,r,i,null)}function Zc(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++m0,__i:-1,__u:0};return i==null&&At.vnode!=null&&At.vnode(a),a}function _o(e){return e.children}function Qc(e,t){this.props=e,this.context=t}function za(e,t){if(t==null)return e.__?za(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?za(e):null}function uk(e,t,n){var r,i=e.__v,a=i.__e,s=e.__P;if(s)return(r=mi({},i)).__v=i.__v+1,At.vnode&&At.vnode(r),$p(s,r,i,e.__n,s.ownerSVGElement!==void 0,32&i.__u?[a]:null,t,a??za(i),!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=a&&_0(r),r}function _0(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return _0(e)}}function _g(e){(!e.__d&&(e.__d=!0)&&xi.push(e)&&!Iu.__r++||yg!==At.debounceRendering)&&((yg=At.debounceRendering)||g0)(Iu)}function Iu(){var e,t,n,r=[],i=[];for(xi.sort(Ef);e=xi.shift();)e.__d&&(n=xi.length,t=uk(e,r,i)||t,n===0||xi.length>n?(vf(r,t,i),i.length=r.length=0,t=void 0,xi.sort(Ef)):t&&At.__c&&At.__c(t,Zp));t&&vf(r,t,i),Iu.__r=0}function b0(e,t,n,r,i,a,s,o,c,u,f){var l,m,g,_,T,B=r&&r.__k||Zp,U=t.length;for(n.__d=c,lk(n,t,B),c=n.__d,l=0;l<U;l++)(g=n.__k[l])!=null&&typeof g!="boolean"&&typeof g!="function"&&(m=g.__i===-1?Ys:B[g.__i]||Ys,g.__i=l,$p(e,g,m,i,a,s,o,c,u,f),_=g.__e,g.ref&&m.ref!=g.ref&&(m.ref&&eh(m.ref,null,g),f.push(g.ref,g.__c||_,g)),T==null&&_!=null&&(T=_),65536&g.__u||m.__k===g.__k?c=E0(g,c,e):typeof g.type=="function"&&g.__d!==void 0?c=g.__d:_&&(c=_.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=c,n.__e=T}function lk(e,t,n){var r,i,a,s,o,c=t.length,u=n.length,f=u,l=0;for(e.__k=[],r=0;r<c;r++)(i=e.__k[r]=(i=t[r])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Zc(null,i,null,null,i):Qp(i)?Zc(_o,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Zc(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,o=dk(i,n,s=r+l,f),i.__i=o,a=null,o!==-1&&(f--,(a=n[o])&&(a.__u|=131072)),a==null||a.__v===null?(o==-1&&l--,typeof i.type!="function"&&(i.__u|=65536)):o!==s&&(o===s+1?l++:o>s?f>c-s?l+=o-s:l--:l=o<s&&o==s-1?o-s:0,o!==r+l&&(i.__u|=65536))):(a=n[r])&&a.key==null&&a.__e&&(a.__e==e.__d&&(e.__d=za(a)),Sf(a,a,!1),n[r]=null,f--);if(f)for(r=0;r<u;r++)(a=n[r])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=za(a)),Sf(a,a))}function E0(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=E0(r[i],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function dk(e,t,n,r){var i=e.key,a=e.type,s=n-1,o=n+1,c=t[n];if(c===null||c&&i==c.key&&a===c.type)return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;s>=0||o<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&i==c.key&&a===c.type)return s;s--}if(o<t.length){if((c=t[o])&&!(131072&c.__u)&&i==c.key&&a===c.type)return o;o++}}return-1}function bg(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||ck.test(t)?n:n+"px"}function Tc(e,t,n,r,i){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||bg(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||bg(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?vg:Eg,a)):e.removeEventListener(t,a?vg:Eg,a);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Eg(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(At.event?At.event(e):e)}}function vg(e){if(this.l)return this.l[e.type+!0](At.event?At.event(e):e)}function $p(e,t,n,r,i,a,s,o,c,u){var f,l,m,g,_,T,B,U,J,K,H,F,k,j,te,L=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[o=t.__e=n.__e]),(f=At.__b)&&f(t);e:if(typeof L=="function")try{if(U=t.props,J=(f=L.contextType)&&r[f.__c],K=f?J?J.props.value:f.__:r,n.__c?B=(l=t.__c=n.__c).__=l.__E:("prototype"in L&&L.prototype.render?t.__c=l=new L(U,K):(t.__c=l=new Qc(U,K),l.constructor=L,l.render=pk),J&&J.sub(l),l.props=U,l.state||(l.state={}),l.context=K,l.__n=r,m=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),L.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=mi({},l.__s)),mi(l.__s,L.getDerivedStateFromProps(U,l.__s))),g=l.props,_=l.state,l.__v=t,m)L.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(L.getDerivedStateFromProps==null&&U!==g&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(U,K),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(U,l.__s,K)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=U,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(G){G&&(G.__=t)}),H=0;H<l._sb.length;H++)l.__h.push(l._sb[H]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(U,l.__s,K),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(g,_,T)})}if(l.context=K,l.props=U,l.__P=e,l.__e=!1,F=At.__r,k=0,"prototype"in L&&L.prototype.render){for(l.state=l.__s,l.__d=!1,F&&F(t),f=l.render(l.props,l.state,l.context),j=0;j<l._sb.length;j++)l.__h.push(l._sb[j]);l._sb=[]}else do l.__d=!1,F&&F(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++k<25);l.state=l.__s,l.getChildContext!=null&&(r=mi(mi({},r),l.getChildContext())),m||l.getSnapshotBeforeUpdate==null||(T=l.getSnapshotBeforeUpdate(g,_)),b0(e,Qp(te=f!=null&&f.type===_o&&f.key==null?f.props.children:f)?te:[te],t,n,r,i,a,s,o,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),B&&(l.__E=l.__=null)}catch(G){t.__v=null,c||a!=null?(t.__e=o,t.__u|=c?160:32,a[a.indexOf(o)]=null):(t.__e=n.__e,t.__k=n.__k),At.__e(G,t,n)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=fk(n.__e,t,n,r,i,a,s,c,u);(f=At.diffed)&&f(t)}function vf(e,t,n){for(var r=0;r<n.length;r++)eh(n[r],n[++r],n[++r]);At.__c&&At.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i)})}catch(a){At.__e(a,i.__v)}})}function fk(e,t,n,r,i,a,s,o,c){var u,f,l,m,g,_,T,B=n.props,U=t.props,J=t.type;if(J==="svg"&&(i=!0),a!=null){for(u=0;u<a.length;u++)if((g=a[u])&&"setAttribute"in g==!!J&&(J?g.localName===J:g.nodeType===3)){e=g,a[u]=null;break}}if(e==null){if(J===null)return document.createTextNode(U);e=i?document.createElementNS("http://www.w3.org/2000/svg",J):document.createElement(J,U.is&&U),a=null,o=!1}if(J===null)B===U||o&&e.data===U||(e.data=U);else{if(a=a&&_l.call(e.childNodes),B=n.props||Ys,!o&&a!=null)for(B={},u=0;u<e.attributes.length;u++)B[(g=e.attributes[u]).name]=g.value;for(u in B)g=B[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=g:u==="key"||u in U||Tc(e,u,null,g,i));for(u in U)g=U[u],u=="children"?m=g:u=="dangerouslySetInnerHTML"?f=g:u=="value"?_=g:u=="checked"?T=g:u==="key"||o&&typeof g!="function"||B[u]===g||Tc(e,u,g,B[u],i);if(f)o||l&&(f.__html===l.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),b0(e,Qp(m)?m:[m],t,n,r,i&&J!=="foreignObject",a,s,a?a[0]:n.__k&&za(n,0),o,c),a!=null)for(u=a.length;u--;)a[u]!=null&&y0(a[u]);o||(u="value",_!==void 0&&(_!==e[u]||J==="progress"&&!_||J==="option"&&_!==B[u])&&Tc(e,u,_,B[u],!1),u="checked",T!==void 0&&T!==e[u]&&Tc(e,u,T,B[u],!1))}return e}function eh(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){At.__e(r,n)}}function Sf(e,t,n){var r,i;if(At.unmount&&At.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||eh(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){At.__e(a,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Sf(r[i],t,n||typeof e.type!="function");n||e.__e==null||y0(e.__e),e.__=e.__e=e.__d=void 0}function pk(e,t,n){return this.constructor(e,n)}function hk(e,t,n){var r,i,a,s;At.__&&At.__(e,t),i=(r=!1)?null:t.__k,a=[],s=[],$p(t,e=t.__k=at(_o,null,[e]),i||Ys,Ys,t.ownerSVGElement!==void 0,i?null:t.firstChild?_l.call(t.childNodes):null,a,i?i.__e:t.firstChild,r,s),e.__d=void 0,vf(a,e,s)}_l=Zp.slice,At={__e:function(e,t,n,r){for(var i,a,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(o){e=o}throw e}},m0=0,Qc.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=mi({},this.state),typeof e=="function"&&(e=e(mi({},n),this.props)),e&&mi(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),_g(this))},Qc.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_g(this))},Qc.prototype.render=_o,xi=[],g0=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ef=function(e,t){return e.__v.__b-t.__v.__b},Iu.__r=0;var Zr,It,md,Sg,Ya=0,v0=[],$c=[],jt=At,wg=jt.__b,Tg=jt.__r,Ig=jt.diffed,Ag=jt.__c,Og=jt.unmount,Rg=jt.__;function ca(e,t){jt.__h&&jt.__h(It,e,Ya||t),Ya=0;var n=It.__H||(It.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:$c}),n.__[e]}function ji(e){return Ya=1,S0(T0,e)}function S0(e,t,n){var r=ca(Zr++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):T0(void 0,t),function(o){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,o);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=It,!It.u)){var i=function(o,c,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(m){return!!m.__c});if(f.every(function(m){return!m.__N}))return!a||a.call(this,o,c,u);var l=!1;return f.forEach(function(m){if(m.__N){var g=m.__[0];m.__=m.__N,m.__N=void 0,g!==m.__[0]&&(l=!0)}}),!(!l&&r.__c.props===o)&&(!a||a.call(this,o,c,u))};It.u=!0;var a=It.shouldComponentUpdate,s=It.componentWillUpdate;It.componentWillUpdate=function(o,c,u){if(this.__e){var f=a;a=void 0,i(o,c,u),a=f}s&&s.call(this,o,c,u)},It.shouldComponentUpdate=i}return r.__N||r.__}function mk(e,t){var n=ca(Zr++,3);!jt.__s&&th(n.__H,t)&&(n.__=e,n.i=t,It.__H.__h.push(n))}function w0(e,t){var n=ca(Zr++,4);!jt.__s&&th(n.__H,t)&&(n.__=e,n.i=t,It.__h.push(n))}function gk(e){return Ya=5,bo(function(){return{current:e}},[])}function yk(e,t,n){Ya=6,w0(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function bo(e,t){var n=ca(Zr++,7);return th(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ba(e,t){return Ya=8,bo(function(){return e},t)}function _k(e){var t=It.context[e.__c],n=ca(Zr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(It)),t.props.value):e.__}function bk(e,t){jt.useDebugValue&&jt.useDebugValue(t?t(e):e)}function Ek(e){var t=ca(Zr++,10),n=ji();return t.__=e,It.componentDidCatch||(It.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function vk(){var e=ca(Zr++,11);if(!e.__){for(var t=It.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Sk(){for(var e;e=v0.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eu),e.__H.__h.forEach(wf),e.__H.__h=[]}catch(t){e.__H.__h=[],jt.__e(t,e.__v)}}jt.__b=function(e){It=null,wg&&wg(e)},jt.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Rg&&Rg(e,t)},jt.__r=function(e){Tg&&Tg(e),Zr=0;var t=(It=e.__c).__H;t&&(md===It?(t.__h=[],It.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=$c,n.__N=n.i=void 0})):(t.__h.forEach(eu),t.__h.forEach(wf),t.__h=[],Zr=0)),md=It},jt.diffed=function(e){Ig&&Ig(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(v0.push(t)!==1&&Sg===jt.requestAnimationFrame||((Sg=jt.requestAnimationFrame)||wk)(Sk)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==$c&&(n.__=n.__V),n.i=void 0,n.__V=$c})),md=It=null},jt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(eu),n.__h=n.__h.filter(function(r){return!r.__||wf(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],jt.__e(r,n.__v)}}),Ag&&Ag(e,t)},jt.unmount=function(e){Og&&Og(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{eu(r)}catch(i){t=i}}),n.__H=void 0,t&&jt.__e(t,n.__v))};var Cg=typeof requestAnimationFrame=="function";function wk(e){var t,n=function(){clearTimeout(r),Cg&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Cg&&(t=requestAnimationFrame(n))}function eu(e){var t=It,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),It=t}function wf(e){var t=It;e.__c=e.__(),It=t}function th(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function T0(e,t){return typeof t=="function"?t(e):t}const Tk=Object.defineProperty({__proto__:null,useCallback:Ba,useContext:_k,useDebugValue:bk,useEffect:mk,useErrorBoundary:Ek,useId:vk,useImperativeHandle:yk,useLayoutEffect:w0,useMemo:bo,useReducer:S0,useRef:gk,useState:ji},Symbol.toStringTag,{value:"Module"}),Ik="http://www.w3.org/2000/svg";function Ak(){const e=r=>Tt.createElementNS(Ik,r),t=Hn(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Hn(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function Ok({options:e}){const t=bo(()=>({__html:Ak().outerHTML}),[]);return at("h2",{class:"dialog__header"},at("span",{class:"dialog__title"},e.formTitle),e.showBranding?at("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Rk(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function gd(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function Ck({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:a,onSubmitError:s,showEmail:o,showName:c,screenshotInput:u}){const{tags:f,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:m,cancelButtonLabel:g,emailLabel:_,emailPlaceholder:T,isEmailRequired:B,isNameRequired:U,messageLabel:J,messagePlaceholder:K,nameLabel:H,namePlaceholder:F,submitButtonLabel:k,isRequiredLabel:j}=e,[te,L]=ji(!1),[G,W]=ji(null),[z,ae]=ji(!1),Ee=u?.input,[pe,le]=ji(null),$=Ba(fe=>{le(fe),ae(!1)},[]),ve=Ba(fe=>{const Se=Rk(fe,{emailLabel:_,isEmailRequired:B,isNameRequired:U,messageLabel:J,nameLabel:H});return Se.length>0?W(`Please enter in the following required fields: ${Se.join(", ")}`):W(null),Se.length===0},[_,B,U,J,H]),ge=Ba(async fe=>{L(!0);try{if(fe.preventDefault(),!(fe.target instanceof HTMLFormElement))return;const Se=new FormData(fe.target),Xe=await(u&&z?u.value():void 0),ce={name:gd(Se,"name"),email:gd(Se,"email"),message:gd(Se,"message"),attachments:Xe?[Xe]:void 0};if(!ve(ce))return;try{const He=await i({name:ce.name,email:ce.email,message:ce.message,source:ZP,tags:f},{attachments:ce.attachments});a(ce,He)}catch(He){Jc&&X.error(He),W(He),s(He)}}finally{L(!1)}},[u&&z,a,s]);return at("form",{class:"form",onSubmit:ge},Ee&&z?at(Ee,{onError:$}):null,at("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:te},at("div",{class:"form__top"},G?at("div",{class:"form__error-container"},G):null,c?at("label",{for:"name",class:"form__label"},at(yd,{label:H,isRequiredLabel:j,isRequired:U}),at("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:F,required:U,type:"text"})):at("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),o?at("label",{for:"email",class:"form__label"},at(yd,{label:_,isRequiredLabel:j,isRequired:B}),at("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:T,required:B,type:"email"})):at("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),at("label",{for:"message",class:"form__label"},at(yd,{label:J,isRequiredLabel:j,isRequired:!0}),at("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:K,required:!0,rows:5})),Ee?at("label",{for:"screenshot",class:"form__label"},at("button",{class:"btn btn--default",disabled:te,type:"button",onClick:()=>{le(null),ae(fe=>!fe)}},z?m:l),pe?at("div",{class:"form__error-container"},pe.message):null):null),at("div",{class:"btn-group"},at("button",{class:"btn btn--primary",disabled:te,type:"submit"},k),at("button",{class:"btn btn--default",disabled:te,type:"button",onClick:r},g))))}function yd({label:e,isRequired:t,isRequiredLabel:n}){return at("span",{class:"form__label__text"},e,t&&at("span",{class:"form__label__text--required"},n))}const Ic=16,Ng=17,Nk="http://www.w3.org/2000/svg";function Mk(){const e=c=>ir.document.createElementNS(Nk,c),t=Hn(e("svg"),{width:`${Ic}`,height:`${Ng}`,viewBox:`0 0 ${Ic} ${Ng}`,fill:"inherit"}),n=Hn(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Hn(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=Hn(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(i,r);const a=e("defs"),s=Hn(e("clipPath"),{id:"clip0_57_156"}),o=Hn(e("rect"),{width:`${Ic}`,height:`${Ic}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(o),a.appendChild(s),t.appendChild(a).appendChild(s).appendChild(o),t}function Pk({open:e,onFormSubmitted:t,...n}){const r=n.options,i=bo(()=>({__html:Mk().outerHTML}),[]),[a,s]=ji(null),o=Ba(()=>{a&&(clearTimeout(a),s(null)),t()},[a]),c=Ba((u,f)=>{n.onSubmitSuccess(u,f),s(setTimeout(()=>{t(),s(null)},$P))},[t]);return at(_o,null,a?at("div",{class:"success__position",onClick:o},at("div",{class:"success__content"},r.successMessageText,at("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):at("dialog",{class:"dialog",onClick:r.onFormClose,open:e},at("div",{class:"dialog__position"},at("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},at(Ok,{options:r}),at(Ck,{...n,onSubmitSuccess:c})))))}const kk=`
122
+ .dialog {
123
+ position: fixed;
124
+ z-index: var(--z-index);
125
+ margin: 0;
126
+ inset: 0;
127
+
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ padding: 0;
132
+ height: 100vh;
133
+ width: 100vw;
134
+
135
+ color: var(--dialog-color, var(--foreground));
136
+ fill: var(--dialog-color, var(--foreground));
137
+ line-height: 1.75em;
138
+
139
+ background-color: rgba(0, 0, 0, 0.05);
140
+ border: none;
141
+ inset: 0;
142
+ opacity: 1;
143
+ transition: opacity 0.2s ease-in-out;
144
+ }
145
+
146
+ .dialog__position {
147
+ position: fixed;
148
+ z-index: var(--z-index);
149
+ inset: var(--dialog-inset);
150
+ padding: var(--page-margin);
151
+ display: flex;
152
+ max-height: calc(100vh - (2 * var(--page-margin)));
153
+ }
154
+ @media (max-width: 600px) {
155
+ .dialog__position {
156
+ inset: var(--page-margin);
157
+ padding: 0;
158
+ }
159
+ }
160
+
161
+ .dialog__position:has(.editor) {
162
+ inset: var(--page-margin);
163
+ padding: 0;
164
+ }
165
+
166
+ .dialog:not([open]) {
167
+ opacity: 0;
168
+ pointer-events: none;
169
+ visibility: hidden;
170
+ }
171
+ .dialog:not([open]) .dialog__content {
172
+ transform: translate(0, -16px) scale(0.98);
173
+ }
174
+
175
+ .dialog__content {
176
+ display: flex;
177
+ flex-direction: column;
178
+ gap: 16px;
179
+ padding: var(--dialog-padding, 24px);
180
+ max-width: 100%;
181
+ width: 100%;
182
+ max-height: 100%;
183
+ overflow: auto;
184
+
185
+ background: var(--dialog-background, var(--background));
186
+ border-radius: var(--dialog-border-radius, 20px);
187
+ border: var(--dialog-border, var(--border));
188
+ box-shadow: var(--dialog-box-shadow, var(--box-shadow));
189
+ transform: translate(0, 0) scale(1);
190
+ transition: transform 0.2s ease-in-out;
191
+ }
192
+
193
+ `,Lk=`
194
+ .dialog__header {
195
+ display: flex;
196
+ gap: 4px;
197
+ justify-content: space-between;
198
+ font-weight: var(--dialog-header-weight, 600);
199
+ margin: 0;
200
+ }
201
+ .dialog__title {
202
+ align-self: center;
203
+ width: var(--form-width, 272px);
204
+ }
205
+
206
+ @media (max-width: 600px) {
207
+ .dialog__title {
208
+ width: auto;
209
+ }
210
+ }
211
+
212
+ .dialog__position:has(.editor) .dialog__title {
213
+ width: auto;
214
+ }
215
+
216
+
217
+ .brand-link {
218
+ display: inline-flex;
219
+ }
220
+ .brand-link:focus-visible {
221
+ outline: var(--outline);
222
+ }
223
+ `,Dk=`
224
+ .form {
225
+ display: flex;
226
+ overflow: auto;
227
+ flex-direction: row;
228
+ gap: 16px;
229
+ flex: 1 0;
230
+ }
231
+
232
+ .form fieldset {
233
+ border: none;
234
+ margin: 0;
235
+ padding: 0;
236
+ }
237
+
238
+ .form__right {
239
+ flex: 0 0 auto;
240
+ display: flex;
241
+ overflow: auto;
242
+ flex-direction: column;
243
+ justify-content: space-between;
244
+ gap: 20px;
245
+ width: var(--form-width, 100%);
246
+ }
247
+
248
+ .dialog__position:has(.editor) .form__right {
249
+ width: var(--form-width, 272px);
250
+ }
251
+
252
+ .form__top {
253
+ display: flex;
254
+ flex-direction: column;
255
+ gap: 8px;
256
+ }
257
+
258
+ .form__error-container {
259
+ color: var(--error-color);
260
+ fill: var(--error-color);
261
+ }
262
+
263
+ .form__label {
264
+ display: flex;
265
+ flex-direction: column;
266
+ gap: 4px;
267
+ margin: 0px;
268
+ }
269
+
270
+ .form__label__text {
271
+ display: flex;
272
+ gap: 4px;
273
+ align-items: center;
274
+ }
275
+
276
+ .form__label__text--required {
277
+ font-size: 0.85em;
278
+ }
279
+
280
+ .form__input {
281
+ font-family: inherit;
282
+ line-height: inherit;
283
+ background: transparent;
284
+ box-sizing: border-box;
285
+ border: var(--input-border, var(--border));
286
+ border-radius: var(--input-border-radius, 6px);
287
+ color: var(--input-color, inherit);
288
+ fill: var(--input-color, inherit);
289
+ font-size: var(--input-font-size, inherit);
290
+ font-weight: var(--input-font-weight, 500);
291
+ padding: 6px 12px;
292
+ }
293
+
294
+ .form__input::placeholder {
295
+ opacity: 0.65;
296
+ color: var(--input-placeholder-color, inherit);
297
+ filter: var(--interactive-filter);
298
+ }
299
+
300
+ .form__input:focus-visible {
301
+ outline: var(--input-focus-outline, var(--outline));
302
+ }
303
+
304
+ .form__input--textarea {
305
+ font-family: inherit;
306
+ resize: vertical;
307
+ }
308
+
309
+ .error {
310
+ color: var(--error-color);
311
+ fill: var(--error-color);
312
+ }
313
+ `,Bk=`
314
+ .btn-group {
315
+ display: grid;
316
+ gap: 8px;
317
+ }
318
+
319
+ .btn {
320
+ line-height: inherit;
321
+ border: var(--button-border, var(--border));
322
+ border-radius: var(--button-border-radius, 6px);
323
+ cursor: pointer;
324
+ font-family: inherit;
325
+ font-size: var(--button-font-size, inherit);
326
+ font-weight: var(--button-font-weight, 600);
327
+ padding: var(--button-padding, 6px 16px);
328
+ }
329
+ .btn[disabled] {
330
+ opacity: 0.6;
331
+ pointer-events: none;
332
+ }
333
+
334
+ .btn--primary {
335
+ color: var(--button-primary-color, var(--accent-foreground));
336
+ fill: var(--button-primary-color, var(--accent-foreground));
337
+ background: var(--button-primary-background, var(--accent-background));
338
+ border: var(--button-primary-border, var(--border));
339
+ border-radius: var(--button-primary-border-radius, 6px);
340
+ font-weight: var(--button-primary-font-weight, 500);
341
+ }
342
+ .btn--primary:hover {
343
+ color: var(--button-primary-hover-color, var(--accent-foreground));
344
+ fill: var(--button-primary-hover-color, var(--accent-foreground));
345
+ background: var(--button-primary-hover-background, var(--accent-background));
346
+ filter: var(--interactive-filter);
347
+ }
348
+ .btn--primary:focus-visible {
349
+ background: var(--button-primary-hover-background, var(--accent-background));
350
+ filter: var(--interactive-filter);
351
+ outline: var(--button-primary-focus-outline, var(--outline));
352
+ }
353
+
354
+ .btn--default {
355
+ color: var(--button-color, var(--foreground));
356
+ fill: var(--button-color, var(--foreground));
357
+ background: var(--button-background, var(--background));
358
+ border: var(--button-border, var(--border));
359
+ border-radius: var(--button-border-radius, 6px);
360
+ font-weight: var(--button-font-weight, 500);
361
+ }
362
+ .btn--default:hover {
363
+ color: var(--button-color, var(--foreground));
364
+ fill: var(--button-color, var(--foreground));
365
+ background: var(--button-hover-background, var(--background));
366
+ filter: var(--interactive-filter);
367
+ }
368
+ .btn--default:focus-visible {
369
+ background: var(--button-hover-background, var(--background));
370
+ filter: var(--interactive-filter);
371
+ outline: var(--button-focus-outline, var(--outline));
372
+ }
373
+ `,Fk=`
374
+ .success__position {
375
+ position: fixed;
376
+ inset: var(--dialog-inset);
377
+ padding: var(--page-margin);
378
+ z-index: var(--z-index);
379
+ }
380
+ .success__content {
381
+ background: var(--success-background, var(--background));
382
+ border: var(--success-border, var(--border));
383
+ border-radius: var(--success-border-radius, 1.7em/50%);
384
+ box-shadow: var(--success-box-shadow, var(--box-shadow));
385
+ font-weight: var(--success-font-weight, 600);
386
+ color: var(--success-color);
387
+ fill: var(--success-color);
388
+ padding: 12px 24px;
389
+ line-height: 1.75em;
390
+
391
+ display: grid;
392
+ align-items: center;
393
+ grid-auto-flow: column;
394
+ gap: 6px;
395
+ cursor: default;
396
+ }
397
+
398
+ .success__icon {
399
+ display: flex;
400
+ }
401
+ `;function xk(e){const t=Tt.createElement("style");return t.textContent=`
402
+ :host {
403
+ --dialog-inset: var(--inset);
404
+ }
405
+
406
+ ${kk}
407
+ ${Lk}
408
+ ${Dk}
409
+ ${Bk}
410
+ ${Fk}
411
+ `,e&&t.setAttribute("nonce",e),t}function Hk(){const e=tt().getUser(),t=$t().getUser(),n=dl().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const Uk=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const i=r,a=e.useSentryUser,s=Hk(),o=Tt.createElement("div"),c=xk(e.styleNonce);let u="";const f={get el(){return o},appendToDom(){!i.contains(c)&&!i.contains(o)&&(i.appendChild(c),i.appendChild(o))},removeFromDom(){o.remove(),c.remove(),Tt.body.style.overflow=u},open(){m(!0),e.onFormOpen?.(),Ce()?.emit("openFeedbackWidget"),u=Tt.body.style.overflow,Tt.body.style.overflow="hidden"},close(){m(!1),Tt.body.style.overflow=u}},l=t?.createInput({h:at,hooks:Tk,dialog:f,options:e}),m=g=>{hk(at(Pk,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:a&&s?.[a.name]||"",defaultEmail:a&&s?.[a.email]||"",onFormClose:()=>{m(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(_,T)=>{m(!1),e.onSubmitSuccess?.(_,T)},onSubmitError:_=>{e.onSubmitError?.(_)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:g}),o)};return f}});function jk({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function Vk(e){const t=Tt.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
412
+ .editor {
413
+ display: flex;
414
+ flex-grow: 1;
415
+ flex-direction: column;
416
+ }
417
+
418
+ .editor__image-container {
419
+ justify-items: center;
420
+ padding: 15px;
421
+ position: relative;
422
+ height: 100%;
423
+ border-radius: var(--menu-border-radius, 6px);
424
+
425
+ background-color: ${n};
426
+ background-image: repeating-linear-gradient(
427
+ -145deg,
428
+ transparent,
429
+ transparent 8px,
430
+ ${n} 8px,
431
+ ${n} 11px
432
+ ),
433
+ repeating-linear-gradient(
434
+ -45deg,
435
+ transparent,
436
+ transparent 15px,
437
+ ${r} 15px,
438
+ ${r} 16px
439
+ );
440
+ }
441
+
442
+ .editor__canvas-container {
443
+ width: 100%;
444
+ height: 100%;
445
+ position: relative;
446
+ display: flex;
447
+ align-items: center;
448
+ justify-content: center;
449
+ }
450
+
451
+ .editor__canvas-container > * {
452
+ object-fit: contain;
453
+ position: absolute;
454
+ }
455
+
456
+ .editor__tool-container {
457
+ padding-top: 8px;
458
+ display: flex;
459
+ justify-content: center;
460
+ }
461
+
462
+ .editor__tool-bar {
463
+ display: flex;
464
+ gap: 8px;
465
+ }
466
+
467
+ .editor__tool {
468
+ display: flex;
469
+ padding: 8px 12px;
470
+ justify-content: center;
471
+ align-items: center;
472
+ border: var(--button-border, var(--border));
473
+ border-radius: var(--button-border-radius, 6px);
474
+ background: var(--button-background, var(--background));
475
+ color: var(--button-color, var(--foreground));
476
+ }
477
+
478
+ .editor__tool--active {
479
+ background: var(--button-primary-background, var(--accent-background));
480
+ color: var(--button-primary-color, var(--accent-foreground));
481
+ }
482
+
483
+ .editor__rect {
484
+ position: absolute;
485
+ z-index: 2;
486
+ }
487
+
488
+ .editor__rect button {
489
+ opacity: 0;
490
+ position: absolute;
491
+ top: -12px;
492
+ right: -12px;
493
+ cursor: pointer;
494
+ padding: 0;
495
+ z-index: 3;
496
+ border: none;
497
+ background: none;
498
+ }
499
+
500
+ .editor__rect:hover button {
501
+ opacity: 1;
502
+ }
503
+ `,e&&t.setAttribute("nonce",e),t}function Gk({h:e}){return function({action:n,setAction:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},"Highlight"),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},"Hide")))}}function qk({hooks:e}){function t(){const[n,r]=e.useState(ir.devicePixelRatio??1);return e.useEffect(()=>{const i=()=>{r(ir.devicePixelRatio)},a=matchMedia(`(resolution: ${ir.devicePixelRatio}dppx)`);return a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:i,onAfterScreenshot:a,onError:s}){const o=t();e.useEffect(()=>{(async()=>{r();const u=await Ds.mediaDevices.getDisplayMedia({video:{width:ir.innerWidth*o,height:ir.innerHeight*o},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),f=Tt.createElement("video");await new Promise((l,m)=>{f.srcObject=u,f.onloadedmetadata=()=>{i(f,o),u.getTracks().forEach(g=>g.stop()),l()},f.play().catch(m)}),a()})().catch(s)},[])}}function Wk(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function fi(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function _d(e,t){fi(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function bd(e,t,n){fi(e,{alpha:!0},(r,i)=>{n.length&&(i.fillStyle="rgba(0, 0, 0, 0.25)",i.fillRect(0,0,r.width,r.height)),n.forEach(a=>{Wk(a,i,t)})})}function zk({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){const a=qk({hooks:t}),s=Gk({h:e}),o=jk({h:e}),c={__html:Vk(i.styleNonce).innerText},u=r.el.style,f=({screenshot:l})=>{const[m,g]=t.useState("highlight"),[_,T]=t.useState([]),B=t.useRef(null),U=t.useRef(null),J=t.useRef(null),K=t.useRef(null),[H,F]=t.useState(1),k=t.useMemo(()=>{const z=Tt.getElementById(i.id);if(!z)return"white";const ae=getComputedStyle(z);return ae.getPropertyValue("--button-primary-background")||ae.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{const z=()=>{const ae=B.current;ae&&(fi(l.canvas,{alpha:!1},Ee=>{const pe=Math.min(ae.clientWidth/Ee.width,ae.clientHeight/Ee.height);F(pe)}),(ae.clientHeight===0||ae.clientWidth===0)&&setTimeout(z,0))};return z(),ir.addEventListener("resize",z),()=>{ir.removeEventListener("resize",z)}},[l]);const j=t.useCallback((z,ae)=>{fi(z,{alpha:!0},(Ee,pe)=>{pe.scale(ae,ae),Ee.width=l.canvas.width,Ee.height=l.canvas.height})},[l]);t.useEffect(()=>{j(U.current,l.dpi),_d(U.current,l.canvas)},[l]),t.useEffect(()=>{j(J.current,l.dpi),fi(J.current,{alpha:!0},(z,ae)=>{ae.clearRect(0,0,z.width,z.height)}),bd(J.current,k,_)},[_,k]),t.useEffect(()=>{j(n,l.dpi),_d(n,l.canvas),fi(Tt.createElement("canvas"),{alpha:!0},(z,ae)=>{ae.scale(l.dpi,l.dpi),z.width=l.canvas.width,z.height=l.canvas.height,bd(z,k,_),_d(n,z)})},[_,l,k]);const te=z=>{if(!m||!K.current)return;const ae=K.current.getBoundingClientRect(),Ee={type:m,x:z.offsetX/H,y:z.offsetY/H},pe=(ve,ge)=>{const fe=(ge.clientX-ae.x)/H,Se=(ge.clientY-ae.y)/H;return{type:ve.type,x:Math.min(ve.x,fe),y:Math.min(ve.y,Se),w:Math.abs(fe-ve.x),h:Math.abs(Se-ve.y)}},le=ve=>{fi(J.current,{alpha:!0},(ge,fe)=>{fe.clearRect(0,0,ge.width,ge.height)}),bd(J.current,k,[..._,pe(Ee,ve)])},$=ve=>{const ge=pe(Ee,ve);ge.w*H>=1&&ge.h*H>=1&&T(fe=>[...fe,ge]),Tt.removeEventListener("mousemove",le),Tt.removeEventListener("mouseup",$)};Tt.addEventListener("mousemove",le),Tt.addEventListener("mouseup",$)},L=t.useCallback(z=>ae=>{ae.preventDefault(),ae.stopPropagation(),T(Ee=>{const pe=[...Ee];return pe.splice(z,1),pe})},[]),G={width:`${l.canvas.width*H}px`,height:`${l.canvas.height*H}px`},W=z=>{z.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:B},e("canvas",{ref:U,id:"background",style:G}),e("canvas",{ref:J,id:"foreground",style:G}),e("div",{ref:K,onMouseDown:te,style:G},_.map((z,ae)=>e("div",{key:ae,class:"editor__rect",style:{top:`${z.y*H}px`,left:`${z.x*H}px`,width:`${z.w*H}px`,height:`${z.h*H}px`}},e("button",{"aria-label":"Remove",onClick:L(ae),onMouseDown:W,onMouseUp:W,type:"button"},e(o,null))))))),e(s,{action:m,setAction:g}))};return function({onError:m}){const[g,_]=t.useState();return a({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((T,B)=>{fi(Tt.createElement("canvas"),{alpha:!1},(U,J)=>{J.scale(B,B),U.width=T.videoWidth,U.height=T.videoHeight,J.drawImage(T,0,0,U.width,U.height),_({canvas:U,dpi:B})}),n.width=T.videoWidth,n.height=T.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(T=>{u.display="block",m(T)},[])}),g?e(f,{screenshot:g}):e("div",null)}}const Yk=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const i=Tt.createElement("canvas");return{input:zk({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{const a=await new Promise(s=>{i.toBlob(s,"image/png")});if(a)return{data:new Uint8Array(await a.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),xe=Ge;let Tf=0;function I0(){return Tf>0}function Kk(){Tf++,setTimeout(()=>{Tf--})}function Ka(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(Dp(e))return e}catch{return e}const r=function(...i){try{const a=i.map(s=>Ka(s,t));return e.apply(this,a)}catch(a){throw Kk(),Zn(s=>{s.addEventProcessor(o=>(t.mechanism&&(rf(o,void 0),Ei(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),Zi(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}WE(r,e),Pn(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function nh(){const e=ra(),{referrer:t}=xe.document||{},{userAgent:n}=xe.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const Xk={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},Mg=xe;async function A0(e,t){const n=Xk[e],r=Mg.Sentry=Mg.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const i=r[e];if(typeof i=="function"&&!("_isShim"in i))return i;const a=Jk(n),s=xe.document.createElement("script");s.src=a,s.crossOrigin="anonymous",s.referrerPolicy="strict-origin",t&&s.setAttribute("nonce",t);const o=new Promise((l,m)=>{s.addEventListener("load",()=>l()),s.addEventListener("error",m)}),c=xe.document.currentScript,u=xe.document.body||xe.document.head||c?.parentElement;if(u)u.appendChild(s);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await o}catch{throw new Error(`Error when loading integration: ${e}`)}const f=r[e];if(typeof f!="function")throw new Error(`Could not load integration: ${e}`);return f}function Jk(e){const n=Ce()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${Vr}/${e}.min.js`,n).toString()}const Zk=h0({lazyLoadIntegration:A0}),Pg=h0({getModalIntegration:()=>Uk,getScreenshotIntegration:()=>Yk});function fs(e,t,n,r){mf({level:e,message:t,attributes:n,severityNumber:r})}function Qk(e,t){fs("trace",e,t)}function $k(e,t){fs("debug",e,t)}function e1(e,t){fs("info",e,t)}function t1(e,t){fs("warn",e,t)}function n1(e,t){fs("error",e,t)}function r1(e,t){fs("fatal",e,t)}const i1=Object.freeze(Object.defineProperty({__proto__:null,debug:$k,error:n1,fatal:r1,fmt:XN,info:e1,trace:Qk,warn:t1},Symbol.toStringTag,{value:"Module"}));function bl(e,t){const n=rh(e,t),r={type:u1(t),value:l1(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function a1(e,t,n,r){const a=Ce()?.getOptions().normalizeDepth,s=p1(t),o={__serialized__:yv(t,a)};if(s)return{exception:{values:[bl(e,s)]},extra:o};const c={exception:{values:[{type:ll(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:d1(t,{isUnhandledRejection:r})}]},extra:o};if(n){const u=rh(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Ed(e,t){return{exception:{values:[bl(e,t)]}}}function rh(e,t){const n=t.stacktrace||t.stack||"",r=o1(t),i=c1(t);try{return e(n,r,i)}catch{}return[]}const s1=/Minified React error #\d+;/i;function o1(e){return e&&s1.test(e.message)?1:0}function c1(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function O0(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function u1(e){const t=e?.name;return!t&&O0(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function l1(e){const t=e?.message;return O0(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function R0(e,t,n,r){const i=n?.syntheticException||void 0,a=ih(e,t,i,r);return Ei(a),a.level="error",n?.event_id&&(a.event_id=n.event_id),Jr(a)}function C0(e,t,n="info",r,i){const a=r?.syntheticException||void 0,s=If(e,t,a,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),Jr(s)}function ih(e,t,n,r,i){let a;if(jE(t)&&t.error)return Ed(e,t.error);if(Rm(t)||vR(t)){const s=t;if("stack"in t)a=Ed(e,t);else{const o=s.name||(Rm(s)?"DOMError":"DOMException"),c=s.message?`${o}: ${s.message}`:o;a=If(e,c,n,r),rf(a,c)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return yi(t)?Ed(e,t):zr(t)||ll(t)?(a=a1(e,t,n,i),Ei(a,{synthetic:!0}),a):(a=If(e,t,n,r),rf(a,`${t}`),Ei(a,{synthetic:!0}),a)}function If(e,t,n,r){const i={};if(r&&n){const a=rh(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]}),Ei(i,{synthetic:!0})}if(ul(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function d1(e,{isUnhandledRejection:t}){const n=RR(e),r=t?"promise rejection":"exception";return jE(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ll(e)?`Event \`${f1(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function f1(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function p1(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const h1=5e3;class N0 extends AN{constructor(t){const n=m1(t),r=xe.SENTRY_SDK_SOURCE||LP();QN(n,"browser",["browser"],r),super(n);const{sendDefaultPii:i,sendClientReports:a,enableLogs:s,_experiments:o}=this._options,c=s??o?.enableLogs;xe.document&&(a||c)&&xe.document.addEventListener("visibilitychange",()=>{xe.document.visibilityState==="hidden"&&(a&&this._flushOutcomes(),c&&Xc(this))}),c&&(this.on("flush",()=>{Xc(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Xc(this)},h1)})),i&&(this.on("postprocessEvent",JN),this.on("beforeSendSession",ZN))}eventFromException(t,n){return R0(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return C0(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function m1(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:xe.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Xa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ze=Ge,g1=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ps=(e,t,n,r)=>{let i,a;return s=>{t.value>=0&&(s||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=g1(t.value,n),e(t)))}},y1=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Eo=(e=!0)=>{const t=Ze.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},hs=()=>Eo()?.activationStart??0,ms=(e,t=-1)=>{const n=Eo();let r="navigate";return n&&(Ze.document?.prerendering||hs()>0?r="prerender":Ze.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:y1(),navigationType:r}},vd=new WeakMap;function ah(e,t){return vd.get(e)||vd.set(e,new t),vd.get(e)}class Au{constructor(){Au.prototype.__init.call(this),Au.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const ua=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},El=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Hs=-1;const _1=()=>Ze.document?.visibilityState==="hidden"&&!Ze.document?.prerendering?0:1/0,Ou=e=>{Ze.document.visibilityState==="hidden"&&Hs>-1&&(Hs=e.type==="visibilitychange"?e.timeStamp:0,E1())},b1=()=>{addEventListener("visibilitychange",Ou,!0),addEventListener("prerenderingchange",Ou,!0)},E1=()=>{removeEventListener("visibilitychange",Ou,!0),removeEventListener("prerenderingchange",Ou,!0)},vl=()=>{if(Ze.document&&Hs<0){const e=hs();Hs=(Ze.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??_1(),b1()}return{get firstHiddenTime(){return Hs}}},vo=e=>{Ze.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},v1=[1800,3e3],S1=(e,t={})=>{vo(()=>{const n=vl(),r=ms("FCP");let i;const s=ua("paint",o=>{for(const c of o)c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-hs(),0),r.entries.push(c),i(!0)))});s&&(i=ps(e,r,v1,t.reportAllChanges))})},w1=[.1,.25],T1=(e,t={})=>{S1(El(()=>{const n=ms("CLS",0);let r;const i=ah(t,Au),a=o=>{for(const c of o)i._processEntry(c);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},s=ua("layout-shift",a);s&&(r=ps(e,n,w1,t.reportAllChanges),Ze.document?.addEventListener("visibilitychange",()=>{Ze.document?.visibilityState==="hidden"&&(a(s.takeRecords()),r(!0))}),Ze?.setTimeout?.(r))}))},Sl=e=>{const t=n=>{(n.type==="pagehide"||Ze.document?.visibilityState==="hidden")&&e(n)};Ze.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},I1=[100,300],A1=(e,t={})=>{vo(()=>{const n=vl(),r=ms("FID");let i;const a=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),i(!0))},s=c=>{c.forEach(a)},o=ua("first-input",s);i=ps(e,r,I1,t.reportAllChanges),o&&Sl(El(()=>{s(o.takeRecords()),o.disconnect()}))})};let M0=0,Sd=1/0,Ac=0;const O1=e=>{e.forEach(t=>{t.interactionId&&(Sd=Math.min(Sd,t.interactionId),Ac=Math.max(Ac,t.interactionId),M0=Ac?(Ac-Sd)/7+1:0)})};let Af;const P0=()=>Af?M0:performance.interactionCount||0,R1=()=>{"interactionCount"in performance||Af||(Af=ua("event",O1,{type:"event",buffered:!0,durationThreshold:0}))},wd=10;let k0=0;const C1=()=>P0()-k0;class Ru{constructor(){Ru.prototype.__init.call(this),Ru.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){k0=P0(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(C1()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<wd||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,a)=>a._latency-i._latency),this._longestInteractionList.length>wd){const i=this._longestInteractionList.splice(wd);for(const a of i)this._longestInteractionMap.delete(a.id)}this._onAfterProcessingINPCandidate?.(r)}}}const L0=e=>{const t=Ze.requestIdleCallback||Ze.setTimeout;Ze.document?.visibilityState==="hidden"?e():(e=El(e),t(e),Sl(e))},N1=[200,500],M1=40,P1=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&vo(()=>{R1();const n=ms("INP");let r;const i=ah(t,Ru),a=o=>{L0(()=>{for(const u of o)i._processEntry(u);const c=i._estimateP98LongestInteraction();c&&c._latency!==n.value&&(n.value=c._latency,n.entries=c.entries,r())})},s=ua("event",a,{durationThreshold:t.durationThreshold??M1});r=ps(e,n,N1,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),Sl(()=>{a(s.takeRecords()),r(!0)}))})};class k1{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const L1=[2500,4e3],D1=(e,t={})=>{vo(()=>{const n=vl(),r=ms("LCP");let i;const a=ah(t,k1),s=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)a._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-hs(),0),r.entries=[u],i())},o=ua("largest-contentful-paint",s);if(o){i=ps(e,r,L1,t.reportAllChanges);const c=El(()=>{s(o.takeRecords()),o.disconnect(),i(!0)});for(const u of["keydown","click","visibilitychange"])Ze.document&&addEventListener(u,()=>L0(c),{capture:!0,once:!0})}})},B1=[800,1800],Of=e=>{Ze.document?.prerendering?vo(()=>Of(e)):Ze.document?.readyState!=="complete"?addEventListener("load",()=>Of(e),!0):setTimeout(e)},F1=(e,t={})=>{const n=ms("TTFB"),r=ps(e,n,B1,t.reportAllChanges);Of(()=>{const i=Eo();i&&(n.value=Math.max(i.responseStart-hs(),0),n.entries=[i],r(!0))})},Us={},Cu={};let D0,B0,F0,x0,H0;function sh(e,t=!1){return So("cls",e,H1,D0,t)}function oh(e,t=!1){return So("lcp",e,j1,F0,t)}function U0(e){return So("fid",e,U1,B0)}function x1(e){return So("ttfb",e,V1,x0)}function j0(e){return So("inp",e,G1,H0)}function Qi(e,t){return V0(e,t),Cu[e]||(q1(e),Cu[e]=!0),G0(e,t)}function gs(e,t){const n=Us[e];if(n?.length)for(const r of n)try{r(t)}catch(i){Xa&&X.error(`Error while triggering instrumentation handler.
504
+ Type: ${e}
505
+ Name: ${Wr(r)}
506
+ Error:`,i)}}function H1(){return T1(e=>{gs("cls",{metric:e}),D0=e},{reportAllChanges:!0})}function U1(){return A1(e=>{gs("fid",{metric:e}),B0=e})}function j1(){return D1(e=>{gs("lcp",{metric:e}),F0=e},{reportAllChanges:!0})}function V1(){return F1(e=>{gs("ttfb",{metric:e}),x0=e})}function G1(){return P1(e=>{gs("inp",{metric:e}),H0=e})}function So(e,t,n,r,i=!1){V0(e,t);let a;return Cu[e]||(a=n(),Cu[e]=!0),r&&t({metric:r}),G0(e,t,i?a:void 0)}function q1(e){const t={};e==="event"&&(t.durationThreshold=0),ua(e,n=>{gs(e,{entries:n})},t)}function V0(e,t){Us[e]=Us[e]||[],Us[e].push(t)}function G0(e,t,n){return()=>{n&&n();const r=Us[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function W1(e){return"duration"in e}function Td(e){return typeof e=="number"&&isFinite(e)}function Qr(e,t,n,{...r}){const i=$e(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),ho(e,()=>{const a=oa({startTime:t,...r});return a&&a.end(n),a})}function ch(e){const t=Ce();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:a}=e,{release:s,environment:o,sendDefaultPii:c}=t.getOptions(),f=t.getIntegrationByName("Replay")?.getReplayId(),l=tt(),m=l.getUser(),g=m!==void 0?m.email||m.id||m.ip_address:void 0;let _;try{_=l.getScopeData().contexts.profile.profile_id}catch{}const T={release:s,environment:o,user:g||void 0,profile_id:_||void 0,replay_id:f||void 0,transaction:r,"user_agent.original":Ze.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...i};return oa({name:n,attributes:T,startTime:a,experimental:{standalone:!0}})}function wl(){return Ze.addEventListener&&Ze.performance}function kt(e){return e/1e3}function q0(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function W0(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function z0(e,t){let n,r=!1;function i(o){!r&&n&&t(o,n),r=!0}Sl(()=>{i("pagehide")});const a=e.on("beforeStartNavigationSpan",(o,c)=>{c?.isRedirect||(i("navigation"),a?.(),s?.())}),s=e.on("afterStartPageLoadSpan",o=>{n=o.spanContext().spanId,s?.()})}function z1(e){let t=0,n;if(!W0("layout-shift"))return;const r=sh(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(t=i.value,n=a)},!0);z0(e,(i,a)=>{Y1(t,n,a,i),r()})}function Y1(e,t,n,r){Xa&&X.log(`Sending CLS span (${e})`);const i=kt((gn()||0)+(t?.startTime||0)),a=tt().getScopeData().transactionName,s=t?Xn(t.sources[0]?.node):"Layout shift",o={[xt]:"auto.http.browser.cls",[Vn]:"ui.webvital.cls",[ds]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,f)=>{o[`cls.source.${f+1}`]=Xn(u.node)});const c=ch({name:s,transaction:a,attributes:o,startTime:i});c&&(c.addEvent("cls",{[fo]:"",[po]:e}),c.end(i))}function K1(e){let t=0,n;if(!W0("largest-contentful-paint"))return;const r=oh(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(t=i.value,n=a)},!0);z0(e,(i,a)=>{X1(t,n,a,i),r()})}function X1(e,t,n,r){Xa&&X.log(`Sending LCP span (${e})`);const i=kt((gn()||0)+(t?.startTime||0)),a=tt().getScopeData().transactionName,s=t?Xn(t.element):"Largest contentful paint",o={[xt]:"auto.http.browser.lcp",[Vn]:"ui.webvital.lcp",[ds]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(o["lcp.element"]=Xn(t.element)),t.id&&(o["lcp.id"]=t.id),t.url&&(o["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(o["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(o["lcp.renderTime"]=t.renderTime),t.size!=null&&(o["lcp.size"]=t.size));const c=ch({name:s,transaction:a,attributes:o,startTime:i});c&&(c.addEvent("lcp",{[fo]:"millisecond",[po]:e}),c.end(i))}const J1=2147483647;let kg=0,un={},Cn,Nu;function Z1({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=wl();if(r&&gn()){r.mark&&Ze.performance.mark("sentry-tracing-init");const i=rL(),a=t?K1(n):nL(),s=iL(),o=e?z1(n):tL();return()=>{i(),a?.(),s(),o?.()}}return()=>{}}function Q1(){Qi("longtask",({entries:e})=>{const t=en();if(!t)return;const{op:n,start_timestamp:r}=$e(t);for(const i of e){const a=kt(gn()+i.startTime),s=kt(i.duration);n==="navigation"&&r&&a<r||Qr(t,a,a+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[xt]:"auto.ui.browser.metrics"}})}})}function $1(){new PerformanceObserver(t=>{const n=en();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=kt(gn()+r.startTime),{start_timestamp:a,op:s}=$e(n);if(s==="navigation"&&a&&i<a)continue;const o=kt(r.duration),c={[xt]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:f,invokerType:l,sourceURL:m,sourceFunctionName:g,sourceCharPosition:_}=u;c["browser.script.invoker"]=f,c["browser.script.invoker_type"]=l,m&&(c["code.filepath"]=m),g&&(c["code.function"]=g),_!==-1&&(c["browser.script.source_char_position"]=_),Qr(n,i,i+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function eL(){Qi("event",({entries:e})=>{const t=en();if(t){for(const n of e)if(n.name==="click"){const r=kt(gn()+n.startTime),i=kt(n.duration),a={name:Xn(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[xt]:"auto.ui.browser.metrics"}},s=qE(n.target);s&&(a.attributes["ui.component_name"]=s),Qr(t,r,r+i,a)}}})}function tL(){return sh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(un.cls={value:e.value,unit:""},Nu=t)},!0)}function nL(){return oh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(un.lcp={value:e.value,unit:"millisecond"},Cn=t)},!0)}function rL(){return U0(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=kt(gn()),r=kt(t.startTime);un.fid={value:e.value,unit:"millisecond"},un["mark.fid"]={value:n+r,unit:"second"}})}function iL(){return x1(({metric:e})=>{e.entries[e.entries.length-1]&&(un.ttfb={value:e.value,unit:"millisecond"})})}function aL(e,t){const n=wl(),r=gn();if(!n?.getEntries||!r)return;const i=kt(r),a=n.getEntries(),{op:s,start_timestamp:o}=$e(e);if(a.slice(kg).forEach(c=>{const u=kt(c.startTime),f=kt(Math.max(0,c.duration));if(!(s==="navigation"&&o&&i+u<o))switch(c.entryType){case"navigation":{cL(e,c,i);break}case"mark":case"paint":case"measure":{sL(e,c,u,f,i,t.ignorePerformanceApiSpans);const l=vl(),m=c.startTime<l.firstHiddenTime;c.name==="first-paint"&&m&&(un.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&m&&(un.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{dL(e,c,c.name,u,f,i,t.ignoreResourceSpans);break}}}),kg=Math.max(a.length-1,0),fL(e),s==="pageload"){hL(un);const c=un["mark.fid"];c&&un.fid&&(Qr(e,c.value,c.value+kt(un.fid.value),{name:"first input delay",op:"ui.action",attributes:{[xt]:"auto.ui.browser.metrics"}}),delete un["mark.fid"]),t.recordClsOnPageloadSpan||delete un.cls,t.recordLcpOnPageloadSpan||delete un.lcp,Object.entries(un).forEach(([u,f])=>{bv(u,f.value,f.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",hs()),pL(e,t)}Cn=void 0,Nu=void 0,un={}}function sL(e,t,n,r,i,a){if(["mark","measure"].includes(t.entryType)&&ur(t.name,a))return;const s=Eo(!1),o=kt(s?s.requestStart:0),c=i+Math.max(n,o),u=i+n,f=u+r,l={[xt]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),oL(l,t),c<=f&&Qr(e,c,f,{name:t.name,op:t.entryType,attributes:l})}function oL(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&Ha(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(Ha(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function cL(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Oc(e,t,r,n)}),Oc(e,t,"secureConnection",n,"TLS/SSL"),Oc(e,t,"fetch",n,"cache"),Oc(e,t,"domainLookup",n,"DNS"),lL(e,t,n)}function Oc(e,t,n,r,i=n){const a=uL(n),s=t[a],o=t[`${n}Start`];!o||!s||Qr(e,r+kt(o),r+kt(s),{op:`browser.${i}`,name:t.name,attributes:{[xt]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function uL(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function lL(e,t,n){const r=n+kt(t.requestStart),i=n+kt(t.responseEnd),a=n+kt(t.responseStart);t.responseEnd&&(Qr(e,r,i,{op:"browser.request",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}),Qr(e,a,i,{op:"browser.response",name:t.name,attributes:{[xt]:"auto.ui.browser.metrics"}}))}function dL(e,t,n,r,i,a,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(o))return;const c=zi(n),u={[xt]:"auto.resource.browser.metrics"};Id(u,t,"transferSize","http.response_transfer_size"),Id(u,t,"encodedBodySize","http.response_content_length"),Id(u,t,"decodedBodySize","http.decoded_response_content_length");const f=t.deliveryType;f!=null&&(u["http.response_delivery_type"]=f);const l=t.renderBlockingStatus;if(l&&(u["resource.render_blocking_status"]=l),c.protocol&&(u["url.scheme"]=c.protocol.split(":").pop()),c.host&&(u["server.address"]=c.host),u["url.same_origin"]=n.includes(Ze.location.origin),t.nextHopProtocol!=null){const{name:_,version:T}=q0(t.nextHopProtocol);u["network.protocol.name"]=_,u["network.protocol.version"]=T}const m=a+r,g=m+i;Qr(e,m,g,{name:n.replace(Ze.location.origin,""),op:o,attributes:u})}function fL(e){const t=Ze.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Td(n.rtt)&&(un["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Td(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Td(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function pL(e,t){Cn&&t.recordLcpOnPageloadSpan&&(Cn.element&&e.setAttribute("lcp.element",Xn(Cn.element)),Cn.id&&e.setAttribute("lcp.id",Cn.id),Cn.url&&e.setAttribute("lcp.url",Cn.url.trim().slice(0,200)),Cn.loadTime!=null&&e.setAttribute("lcp.loadTime",Cn.loadTime),Cn.renderTime!=null&&e.setAttribute("lcp.renderTime",Cn.renderTime),e.setAttribute("lcp.size",Cn.size)),Nu?.sources&&t.recordClsOnPageloadSpan&&Nu.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,Xn(n.node)))}function Id(e,t,n,r){const i=t[n];i!=null&&i<J1&&(e[r]=i)}function hL(e){const t=Eo(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function mL(){return wl()&&gn()?Qi("element",gL):()=>{}}const gL=({entries:e})=>{const t=en(),n=t?Qt(t):void 0,r=n?$e(n).description:tt().getScopeData().transactionName;e.forEach(i=>{const a=i;if(!a.identifier)return;const s=a.name,o=a.renderTime,c=a.loadTime,[u,f]=c?[kt(c),"load-time"]:o?[kt(o),"render-time"]:[Kt(),"entry-emission"],l=s==="image-paint"?kt(Math.max(0,(o??0)-(c??0))):0,m={[xt]:"auto.ui.browser.elementtiming",[Vn]:"ui.elementtiming",[Un]:"component","sentry.span_start_time_source":f,"sentry.transaction_name":r,"element.id":a.id,"element.type":a.element?.tagName?.toLowerCase()||"unknown","element.size":a.naturalWidth&&a.naturalHeight?`${a.naturalWidth}x${a.naturalHeight}`:void 0,"element.render_time":o,"element.load_time":c,"element.url":a.url||void 0,"element.identifier":a.identifier,"element.paint_type":s};ml({name:`element[${a.identifier}]`,attributes:m,startTime:u,onlyIfParent:!0},g=>{g.end(u+l)})})},yL=1e3;let Lg,Rf,Cf;function Y0(e){const t="dom";Oi(t,e),Ri(t,_L)}function _L(){if(!Ze.document)return;const e=Yn.bind(null,"dom"),t=Dg(e,!0);Ze.document.addEventListener("click",t,!1),Ze.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=Ze[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(Tn(i,"addEventListener",function(a){return function(s,o,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[s]=u[s]||{refCount:0};if(!f.handler){const l=Dg(e);f.handler=l,a.call(this,s,l,c)}f.refCount++}catch{}return a.call(this,s,o,c)}}),Tn(i,"removeEventListener",function(a){return function(s,o,c){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[s];f&&(f.refCount--,f.refCount<=0&&(a.call(this,s,f.handler,c),f.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,s,o,c)}}))})}function bL(e){if(e.type!==Rf)return!1;try{if(!e.target||e.target._sentryId!==Cf)return!1}catch{}return!0}function EL(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Dg(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=vL(n);if(EL(n.type,r))return;Pn(n,"_sentryCaptured",!0),r&&!r._sentryId&&Pn(r,"_sentryId",In());const i=n.type==="keypress"?"input":n.type;bL(n)||(e({event:n,name:i,global:t}),Rf=n.type,Cf=r?r._sentryId:void 0),clearTimeout(Lg),Lg=Ze.setTimeout(()=>{Cf=void 0,Rf=void 0},yL)}}function vL(e){try{return e.target}catch{return null}}let Rc;function Tl(e){const t="history";Oi(t,e),Ri(t,SL)}function SL(){if(Ze.addEventListener("popstate",()=>{const t=Ze.location.href,n=Rc;if(Rc=t,n===t)return;Yn("history",{from:n,to:t})}),!IP())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Rc,a=wL(String(r));if(Rc=a,i===a)return t.apply(this,n);Yn("history",{from:i,to:a})}return t.apply(this,n)}}Tn(Ze.history,"pushState",e),Tn(Ze.history,"replaceState",e)}function wL(e){try{return new URL(e,Ze.location.origin).toString()}catch{return e}}const tu={};function uh(e){const t=tu[e];if(t)return t;let n=Ze[e];if(yf(n))return tu[e]=n.bind(Ze);const r=Ze.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const a=i.contentWindow;a?.[e]&&(n=a[e]),r.head.removeChild(i)}catch(i){Xa&&X.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(tu[e]=n.bind(Ze))}function Bg(e){tu[e]=void 0}function wo(...e){return uh("setTimeout")(...e)}const Ur="__sentry_xhr_v3__";function lh(e){const t="xhr";Oi(t,e),Ri(t,TL)}function TL(){if(!Ze.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,a=Kt()*1e3,s=cr(r[0])?r[0].toUpperCase():void 0,o=IL(r[1]);if(!s||!o)return t.apply(n,r);n[Ur]={method:s,url:o,request_headers:{}},s==="POST"&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Ur];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:Kt()*1e3,startTimestamp:a,xhr:n,virtualError:i};Yn("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,l){return c(),u.apply(f,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,l){const[m,g]=l,_=f[Ur];return _&&cr(m)&&cr(g)&&(_.request_headers[m.toLowerCase()]=g),u.apply(f,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Ur];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const a={startTimestamp:Kt()*1e3,xhr:n};return Yn("xhr",a),t.apply(n,r)}})}function IL(e){if(cr(e))return e;try{return e.toString()}catch{}}function K0(e){return new URLSearchParams(e).toString()}function Mu(e,t=X){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[K0(e)];if(!e)return[void 0]}catch(n){return Xa&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Xa&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function dh(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}const Ad=[],nu=new Map,AL=60;function OL(){if(wl()&&gn()){const t=RL();return()=>{t()}}return()=>{}}const Fg={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function RL(){return j0(CL)}const CL=({metric:e})=>{if(e.value==null)return;const t=kt(e.value);if(t>AL)return;const n=e.entries.find(_=>_.duration===e.value&&Fg[_.name]);if(!n)return;const{interactionId:r}=n,i=Fg[n.name],a=kt(gn()+n.startTime),s=en(),o=s?Qt(s):void 0,u=(r!=null?nu.get(r):void 0)||o,f=u?$e(u).description:tt().getScopeData().transactionName,l=Xn(n.target),m={[xt]:"auto.http.browser.inp",[Vn]:`ui.interaction.${i}`,[ds]:n.duration},g=ch({name:l,transaction:f,attributes:m,startTime:a});g&&(g.addEvent("inp",{[fo]:"millisecond",[po]:e.value}),g.end(a+t))};function NL(){const e=({entries:t})=>{const n=en(),r=n&&Qt(n);t.forEach(i=>{if(!W1(i)||!r)return;const a=i.interactionId;if(a!=null&&!nu.has(a)){if(Ad.length>10){const s=Ad.shift();nu.delete(s)}Ad.push(a),nu.set(a,r)}})};Qi("event",e),Qi("first-input",e)}function fh(e,t=uh("fetch")){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Bg("fetch"),vu("No fetch implementation available");try{return t(e.url,o).then(c=>(n-=s,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 Bg("fetch"),n-=s,r--,vu(c)}}return Gv(e,i)}const ML=10,PL=20,kL=30,LL=40,DL=50;function Ja(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?Or:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const BL=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,FL=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,xL=/\((\S*)(?::(\d+))(?::(\d+))\)/,HL=e=>{const t=BL.exec(e);if(t){const[,r,i,a]=t;return Ja(r,Or,+i,+a)}const n=FL.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=xL.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[i,a]=$0(n[1]||Or,n[2]);return Ja(a,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},X0=[kL,HL],UL=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jL=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,VL=e=>{const t=UL.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=jL.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||Or;return[i,r]=$0(i,r),Ja(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},J0=[DL,VL],GL=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qL=e=>{const t=GL.exec(e);return t?Ja(t[2],t[1]||Or,+t[3],t[4]?+t[4]:void 0):void 0},WL=[LL,qL],zL=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,YL=e=>{const t=zL.exec(e);return t?Ja(t[2],t[3]||Or,+t[1]):void 0},KL=[ML,YL],XL=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,JL=e=>{const t=XL.exec(e);return t?Ja(t[5],t[3]||t[4]||Or,+t[1],+t[2]):void 0},ZL=[PL,JL],Z0=[X0,J0],Q0=FE(...Z0),$0=(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]:Or,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function QL(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:sa(r)}},a=$L(e);return ei(i,[a])}function $L(e){return[{type:"user_report"},e]}const st=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Cc=1024,eD="Breadcrumbs",tD=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:eD,setup(n){t.console&&Kp(iD(n)),t.dom&&Y0(rD(n,t.dom)),t.xhr&&lh(aD(n)),t.fetch&&Jp(sD(n)),t.history&&Tl(oD(n)),t.sentry&&n.on("beforeSendEvent",nD(n))}}},eS=tD;function nD(e){return function(n){Ce()===e&&Rr({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Fi(n)},{event:n})}}function rD(e,t){return function(r){if(Ce()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>Cc&&(st&&X.warn(`\`dom.maxStringLength\` cannot exceed ${Cc}, but a value of ${o} was configured. Sentry will use ${Cc} instead.`),o=Cc),typeof s=="string"&&(s=[s]);try{const u=r.event,f=cD(u)?u.target:u;i=Xn(f,{keyAttrs:s,maxStringLength:o}),a=qE(f)}catch{i="<unknown>"}if(i.length===0)return;const c={category:`ui.${r.name}`,message:i};a&&(c.data={"ui.component_name":a}),Rr(c,{event:r.event,name:r.name,global:r.global})}}function iD(e){return function(n){if(Ce()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Xp(n.level),message:mu(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${mu(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Rr(r,{input:n.args,level:n.level})}}function aD(e){return function(n){if(Ce()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Ur];if(!r||!i||!a)return;const{method:s,url:o,status_code:c,body:u}=a,f={method:s,url:o,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},m={category:"xhr",data:f,type:"http",level:c0(c)};e.emit("beforeOutgoingRequestBreadcrumb",m,l),Rr(m,l)}}function sD(e){return function(n){if(Ce()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},o={category:"fetch",data:a,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,s),Rr(o,s)}else{const a=n.response,s={...n.fetchData,status_code:a?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,a?.status;const o={input:n.args,response:a,startTimestamp:r,endTimestamp:i},c={category:"fetch",data:s,type:"http",level:c0(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,o),Rr(c,o)}}}function oD(e){return function(n){if(Ce()!==e)return;let r=n.from,i=n.to;const a=zi(xe.location.href);let s=r?zi(r):void 0;const o=zi(i);s?.path||(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),Rr({category:"navigation",data:{from:r,to:i}})}}function cD(e){return!!e&&!!e.target}const uD=["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"],lD="BrowserApiErrors",dD=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:lD,setupOnce(){t.setTimeout&&Tn(xe,"setTimeout",xg),t.setInterval&&Tn(xe,"setInterval",xg),t.requestAnimationFrame&&Tn(xe,"requestAnimationFrame",fD),t.XMLHttpRequest&&"XMLHttpRequest"in xe&&Tn(XMLHttpRequest.prototype,"send",pD);const n=t.eventTarget;n&&(Array.isArray(n)?n:uD).forEach(i=>hD(i,t))}}},tS=dD;function xg(e){return function(...t){const n=t[0];return t[0]=Ka(n,{mechanism:{data:{function:Wr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function fD(e){return function(t){return e.apply(this,[Ka(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Wr(e)},handled:!1,type:"instrument"}})])}}function pD(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Tn(n,i,function(a){const s={mechanism:{data:{function:i,handler:Wr(a)},handled:!1,type:"instrument"}},o=Dp(a);return o&&(s.mechanism.data.handler=Wr(o)),Ka(a,s)})}),e.apply(this,t)}}function hD(e,t){const r=xe[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Tn(r,"addEventListener",function(i){return function(a,s,o){try{mD(s)&&(s.handleEvent=Ka(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Wr(s),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&gD(this,a,s),i.apply(this,[a,Ka(s,{mechanism:{data:{function:"addEventListener",handler:Wr(s),target:e},handled:!1,type:"instrument"}}),o])}}),Tn(r,"removeEventListener",function(i){return function(a,s,o){try{const c=s.__sentry_wrapped__;c&&i.call(this,a,c,o)}catch{}return i.call(this,a,s,o)}}))}function mD(e){return typeof e.handleEvent=="function"}function gD(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const nS=()=>({name:"BrowserSession",setupOnce(){if(typeof xe.document>"u"){st&&X.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}df({ignoreDuration:!0}),ff(),Tl(({from:e,to:t})=>{e!==void 0&&e!==t&&(df({ignoreDuration:!0}),ff())})}}),yD="GlobalHandlers",_D=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:yD,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(bD(n),Hg("onerror")),t.onunhandledrejection&&(ED(n),Hg("onunhandledrejection"))}}},rS=_D;function bD(e){xE(t=>{const{stackParser:n,attachStacktrace:r}=iS();if(Ce()!==e||I0())return;const{msg:i,url:a,line:s,column:o,error:c}=t,u=wD(ih(n,c||i,void 0,r,!1),a,s,o);u.level="error",go(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function ED(e){HE(t=>{const{stackParser:n,attachStacktrace:r}=iS();if(Ce()!==e||I0())return;const i=vD(t),a=Ha(i)?SD(i):ih(n,i,void 0,r,!0);a.level="error",go(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function vD(e){if(Ha(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 SD(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function wD(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},c=o.frames=o.frames||[],u=r,f=n,l=cr(t)&&t.length>0?t:ra();return c.length===0&&c.push({colno:u,filename:l,function:Or,in_app:!0,lineno:f}),e}function Hg(e){st&&X.log(`Global Handler attached: ${e}`)}function iS(){return Ce()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const aS=()=>({name:"HttpContext",preprocessEvent(e){if(!xe.navigator&&!xe.location&&!xe.document)return;const t=nh(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),TD="cause",ID=5,AD="LinkedErrors",OD=(e={})=>{const t=e.limit||ID,n=e.key||TD;return{name:AD,preprocessEvent(r,i,a){const s=a.getOptions();pM(bl,s.stackParser,n,t,r,i)}}},sS=OD;function RD(){return CD()?(st&&Ai(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function CD(){if(typeof xe.window>"u")return!1;const e=xe;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=ra(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(xe===xe.top&&r.some(a=>n.startsWith(`${a}://`)))}function oS(e){return[Xv(),Yv(),tS(),eS(),rS(),sS(),$v(),aS(),nS()]}function ND(e={}){const t=!e.skipBrowserExtensionCheck&&RD(),n={...e,enabled:t?!1:e.enabled,stackParser:yR(e.stackParser||Q0),integrations:vN({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?oS():e.defaultIntegrations}),transport:e.transport||fh};return FN(N0,n)}function MD(){}function PD(e){e()}function kD(e={}){const t=xe.document,n=t?.head||t?.body;if(!n){st&&X.error("[showReportDialog] Global document not defined");return}const r=tt(),a=Ce()?.getDsn();if(!a){st&&X.error("[showReportDialog] DSN not configured");return}const s={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Av()},o=xe.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=bN(a,s);const{onLoad:c,onClose:u}=s;if(c&&(o.onload=c),u){const f=l=>{if(l.data==="__sentry_reportdialog_closed__")try{u()}finally{xe.removeEventListener("message",f)}};xe.addEventListener("message",f)}n.appendChild(o)}const LD=Ge,DD="ReportingObserver",Ug=new WeakMap,BD=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(Ug.has(Ce()))for(const i of r)Zn(a=>{a.setExtra("url",i.url);const s=`ReportingObserver [${i.type}]`;let o="No details available";if(i.body){const c={};for(const u in i.body)c[u]=i.body[u];if(a.setExtra("body",c),i.type==="crash"){const u=i.body;o=[u.crashId||"",u.reason||""].join(" ").trim()||o}else o=i.body.message||o}wu(`${s}: ${o}`)})}return{name:DD,setupOnce(){if(!OP())return;new LD.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){Ug.set(r,!0)}}},FD=BD,xD="HttpClient",HD=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:xD,setup(n){KD(n,t),XD(n,t)}}},UD=HD;function jD(e,t,n,r,i){if(uS(e,n.status,n.url)){const a=JD(t,r);let s,o,c,u;dS()&&([s,c]=jg("Cookie",a),[o,u]=jg("Set-Cookie",n));const f=lS({url:a.url,method:a.method,status:n.status,requestHeaders:s,responseHeaders:o,requestCookies:c,responseCookies:u,error:i});go(f)}}function jg(e,t){const n=qD(t.headers);let r;try{const i=n[e]||n[e.toLowerCase()]||void 0;i&&(r=cS(i))}catch{}return[n,r]}function VD(e,t,n,r,i){if(uS(e,t.status,t.responseURL)){let a,s,o;if(dS()){try{const u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(s=cS(u))}catch{}try{o=WD(t)}catch{}a=r}const c=lS({url:t.responseURL,method:n,status:t.status,requestHeaders:a,responseHeaders:o,responseCookies:s,error:i});go(c)}}function GD(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function cS(e){return e.split("; ").reduce((t,n)=>{const[r,i]=n.split("=");return r&&i&&(t[r]=i),t},{})}function qD(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function WD(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
507
+ `).reduce((n,r)=>{const[i,a]=r.split(": ");return i&&a&&(n[i]=a),n},{}):{}}function zD(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function YD(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function KD(e,t){u0()&&Jp(n=>{if(Ce()!==e)return;const{response:r,args:i,error:a,virtualError:s}=n,[o,c]=i;r&&jD(t,o,r,c,a||s)},!1)}function XD(e,t){"XMLHttpRequest"in Ge&&lh(n=>{if(Ce()!==e)return;const{error:r,virtualError:i}=n,a=n.xhr,s=a[Ur];if(!s)return;const{method:o,request_headers:c}=s;try{VD(t,a,o,c,r||i)}catch(u){st&&X.warn("Error while extracting response event form XHR response",u)}})}function uS(e,t,n){return YD(e.failedRequestStatusCodes,t)&&zD(e.failedRequestTargets,n)&&!Wv(n,Ce())}function lS(e){const t=Ce(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,a={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:GD(e.responseHeaders)}}};return Ei(a,{type:"http.client",handled:!1}),a}function JD(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function dS(){const e=Ce();return e?!!e.getOptions().sendDefaultPii:!1}const Od=Ge,ZD=7,QD="ContextLines",$D=(e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:ZD;return{name:QD,processEvent(n){return t2(n,t)}}},e2=$D;function t2(e,t){const n=Od.document,r=Od.location&&s0(Od.location.href);if(!n||!r)return e;const i=e.exception?.values;if(!i?.length)return e;const a=n.documentElement.innerHTML;if(!a)return e;const s=["<!DOCTYPE html>","<html>",...a.split(`
508
+ `),"</html>"];return i.forEach(o=>{const c=o.stacktrace;c?.frames&&(c.frames=c.frames.map(u=>n2(u,s,r,t)))}),e}function n2(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||NR(t,e,r),e}const r2="GraphQLClient",i2=e=>({name:r2,setup(t){a2(t,e),s2(t,e)}});function a2(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{const a=$e(n).data||{};if(!(a[Vn]==="http.client"))return;const c=a[zR]||a["http.url"],u=a[WR]||a["http.method"];if(!cr(c)||!cr(u))return;const{endpoints:f}=t,l=ur(c,f),m=pS(r);if(l&&m){const g=hS(m);if(g){const _=fS(g);n.updateName(`${u} ${c} (${_})`),n.setAttribute("graphql.document",m)}}})}function s2(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{const{category:i,type:a,data:s}=n;if(a==="http"&&(i==="fetch"||i==="xhr")){const f=s?.url,{endpoints:l}=t,m=ur(f,l),g=pS(r);if(m&&s&&g){const _=hS(g);if(!s.graphql&&_){const T=fS(_);s["graphql.document"]=_.query,s["graphql.operation"]=T}}}})}function fS(e){const{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=o2(t);return r?`${i} ${r}`:`${i}`}function pS(e){const t="xhr"in e;let n;if(t){const r=e.xhr[Ur];n=r&&Mu(r.body)[0]}else{const r=dh(e.input);n=Mu(r)[0]}return n}function o2(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const i=e.match(n);return i?{operationType:i[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function hS(e){let t;try{const n=JSON.parse(e);!!n.query&&(t=n)}finally{return t}}const c2=i2,Mt=Ge,ph="sentryReplaySession",u2="replay_event",hh="Unable to send Replay",l2=3e5,d2=9e5,f2=5e3,p2=5500,h2=6e4,m2=5e3,g2=3,Vg=15e4,Nc=5e3,y2=3e3,_2=300,mh=2e7,b2=4999,E2=15e3,Gg=36e5;var v2=Object.defineProperty,S2=(e,t,n)=>t in e?v2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qg=(e,t,n)=>S2(e,typeof t!="symbol"?t+"":t,n),Zt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Zt||{});function w2(e){return e.nodeType===e.ELEMENT_NODE}function js(e){return e?.host?.shadowRoot===e}function Vs(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function T2(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function I2(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Pu(e){try{const t=e.rules||e.cssRules;return t?T2(Array.from(t,mS).join("")):null}catch{return null}}function A2(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}function mS(e){let t;if(R2(e))try{t=Pu(e.styleSheet)||I2(e)}catch{}else if(C2(e)){let n=e.cssText;const r=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=A2(e)),r&&(n=O2(n)),r||i)return n}return t||e.cssText}function O2(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function R2(e){return"styleSheet"in e}function C2(e){return"selectorText"in e}let gS=class{constructor(){qg(this,"idNodeMap",new Map),qg(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function N2(){return new gS}function Il({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Ks({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function Za(e){return e.toLowerCase()}function Nf(e){return e.toUpperCase()}const Wg="__rrweb_original__";function M2(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const a=t.getImageData,s=Wg in a?a[Wg]:a;if(new Uint32Array(s.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(c=>c!==0))return!1}return!0}function gh(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Za(t):null}function ku(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function yS(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const zg={};function _S(e){const t=zg[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(i)}catch{}return zg[e]=r.bind(window)}function Mf(...e){return _S("setTimeout")(...e)}function bS(...e){return _S("clearTimeout")(...e)}function ES(e){try{return e.contentDocument}catch{}}let P2=1;const k2=new RegExp("[^a-z0-9-_:]"),Xs=-2;function yh(){return P2++}function L2(e){if(e instanceof HTMLFormElement)return"form";const t=Za(e.tagName);return k2.test(t)?"div":t}function D2(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let ba,Yg;const B2=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,F2=/^(?:[a-z+]+:)?\/\//i,x2=/^www\..*/i,H2=/^(data:)([^,]*),(.*)/i;function Lu(e,t){return(e||"").replace(B2,(n,r,i,a,s,o)=>{const c=i||s||o,u=r||a||"";if(!c)return n;if(F2.test(c)||x2.test(c))return`url(${u}${c}${u})`;if(H2.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${D2(t)+c}${u})`;const f=t.split("/"),l=c.split("/");f.pop();for(const m of l)m!=="."&&(m===".."?f.pop():f.push(m));return`url(${u}${f.join("/")}${u})`})}const U2=/^[^ \t\n\r\u000c]+/,j2=/^[, \t\n\r\u000c]+/;function V2(e,t){if(t.trim()==="")return t;let n=0;function r(a){let s;const o=a.exec(t.substring(n));return o?(s=o[0],n+=s.length,s):""}const i=[];for(;r(j2),!(n>=t.length);){let a=r(U2);if(a.slice(-1)===",")a=Ma(e,a.substring(0,a.length-1)),i.push(a);else{let s="";a=Ma(e,a);let o=!1;for(;;){const c=t.charAt(n);if(c===""){i.push((a+s).trim());break}else if(o)c===")"&&(o=!1);else if(c===","){n+=1,i.push((a+s).trim());break}else c==="("&&(o=!0);s+=c,n+=1}}}return i.join(", ")}const Kg=new WeakMap;function Ma(e,t){return!t||t.trim()===""?t:Al(e,t)}function G2(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Al(e,t){let n=Kg.get(e);if(n||(n=e.createElement("a"),Kg.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function vS(e,t,n,r,i,a){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Ma(e,r):n==="srcset"?V2(e,r):n==="style"?Lu(r,Al(e)):t==="object"&&n==="data"?Ma(e,r):typeof a=="function"?a(n,r,i):r)}function SS(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function q2(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const a=e.classList[i];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function W2(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Vi(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Vi(e.parentNode,t,n,r+1)}function Pa(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(W2(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Qa(e,t,n,r,i,a){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let o=-1,c=-1;if(a){if(c=Vi(s,Pa(r,i)),c<0)return!0;o=Vi(s,Pa(t,n),c>=0?c:1/0)}else{if(o=Vi(s,Pa(t,n)),o<0)return!1;c=Vi(s,Pa(r,i),o>=0?o:1/0)}return o>=0?c>=0?o<=c:!0:c>=0?!1:!!a}catch{}return!!a}function z2(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!=="complete"){const o=Mf(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{bS(o),i=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return Mf(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Y2(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const a=Mf(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{bS(a),r=!0,t()})}function K2(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:f,maskTextSelector:l,unmaskTextSelector:m,inlineStylesheet:g,maskInputOptions:_={},maskTextFn:T,maskInputFn:B,dataURLOptions:U={},inlineImages:J,recordCanvas:K,keepIframeSrcFn:H,newlyAddedElement:F=!1}=t,k=X2(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Zt.Document,childNodes:[],compatMode:e.compatMode}:{type:Zt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Zt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return Z2(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:g,maskAttributeFn:c,maskInputOptions:_,maskInputFn:B,dataURLOptions:U,inlineImages:J,recordCanvas:K,keepIframeSrcFn:H,newlyAddedElement:F,rootId:k,maskTextClass:u,unmaskTextClass:f,maskTextSelector:l,unmaskTextSelector:m});case e.TEXT_NODE:return J2(e,{doc:n,maskAllText:o,maskTextClass:u,unmaskTextClass:f,maskTextSelector:l,unmaskTextSelector:m,maskTextFn:T,maskInputOptions:_,maskInputFn:B,rootId:k});case e.CDATA_SECTION_NODE:return{type:Zt.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:Zt.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function X2(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function J2(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:s,maskTextFn:o,maskInputOptions:c,maskInputFn:u,rootId:f}=t,l=e.parentNode&&e.parentNode.tagName;let m=e.textContent;const g=l==="STYLE"?!0:void 0,_=l==="SCRIPT"?!0:void 0,T=l==="TEXTAREA"?!0:void 0;if(g&&m){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(m=Pu(e.parentNode.sheet))}catch(U){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${U}`,e)}m=Lu(m,Al(t.doc))}_&&(m="SCRIPT_PLACEHOLDER");const B=Qa(e,r,a,i,s,n);if(!g&&!_&&!T&&m&&B&&(m=o?o(m,e.parentElement):m.replace(/[\S]/g,"*")),T&&m&&(c.textarea||B)&&(m=u?u(m,e.parentNode):m.replace(/[\S]/g,"*")),l==="OPTION"&&m){const U=Il({type:null,tagName:l,maskInputOptions:c});m=Ks({isMasked:Qa(e,r,a,i,s,U),element:e,value:m,maskInputFn:u})}return{type:Zt.Text,textContent:m||"",isStyle:g,rootId:f}}function Z2(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:s,maskInputOptions:o={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:f={},inlineImages:l,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:_=!1,rootId:T,maskTextClass:B,unmaskTextClass:U,maskTextSelector:J,unmaskTextSelector:K}=t,H=q2(e,r,i,a),F=L2(e);let k={};const j=e.attributes.length;for(let L=0;L<j;L++){const G=e.attributes[L];G.name&&!SS(F,G.name,G.value)&&(k[G.name]=vS(n,F,Za(G.name),G.value,e,c))}if(F==="link"&&s){const L=Array.from(n.styleSheets).find(W=>W.href===e.href);let G=null;L&&(G=Pu(L)),G&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=Lu(G,L.href))}if(F==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const L=Pu(e.sheet);L&&(k._cssText=Lu(L,Al(n)))}if(F==="input"||F==="textarea"||F==="select"||F==="option"){const L=e,G=gh(L),W=ku(L,Nf(F),G),z=L.checked;if(G!=="submit"&&G!=="button"&&W){const ae=Qa(L,B,J,U,K,Il({type:G,tagName:Nf(F),maskInputOptions:o}));k.value=Ks({isMasked:ae,element:L,value:W,maskInputFn:u})}z&&(k.checked=z)}if(F==="option"&&(e.selected&&!o.select?k.selected=!0:delete k.selected),F==="canvas"&&m){if(e.__context==="2d")M2(e)||(k.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){const L=e.toDataURL(f.type,f.quality),G=n.createElement("canvas");G.width=e.width,G.height=e.height;const W=G.toDataURL(f.type,f.quality);L!==W&&(k.rr_dataURL=L)}}if(F==="img"&&l){ba||(ba=n.createElement("canvas"),Yg=ba.getContext("2d"));const L=e,G=L.currentSrc||L.getAttribute("src")||"<unknown-src>",W=L.crossOrigin,z=()=>{L.removeEventListener("load",z);try{ba.width=L.naturalWidth,ba.height=L.naturalHeight,Yg.drawImage(L,0,0),k.rr_dataURL=ba.toDataURL(f.type,f.quality)}catch(ae){if(L.crossOrigin!=="anonymous"){L.crossOrigin="anonymous",L.complete&&L.naturalWidth!==0?z():L.addEventListener("load",z);return}else console.warn(`Cannot inline img src=${G}! Error: ${ae}`)}L.crossOrigin==="anonymous"&&(W?k.crossOrigin=W:L.removeAttribute("crossorigin"))};L.complete&&L.naturalWidth!==0?z():L.addEventListener("load",z)}if((F==="audio"||F==="video")&&(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),_||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),H){const{width:L,height:G}=e.getBoundingClientRect();k={class:k.class,rr_width:`${L}px`,rr_height:`${G}px`}}F==="iframe"&&!g(k.src)&&(!H&&!ES(e)&&(k.rr_src=k.src),delete k.src);let te;try{customElements.get(F)&&(te=!0)}catch{}return{type:Zt.Element,tagName:F,attributes:k,childNodes:[],isSVG:G2(e)||void 0,needBlock:H,rootId:T,isCustom:te}}function Nt(e){return e==null?"":e.toLowerCase()}function Q2(e,t){if(t.comment&&e.type===Zt.Comment)return!0;if(e.type===Zt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&yS(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Nt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Nt(e.attributes.name)==="application-name"||Nt(e.attributes.rel)==="icon"||Nt(e.attributes.rel)==="apple-touch-icon"||Nt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Nt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Nt(e.attributes.property).match(/^(og|twitter|fb):/)||Nt(e.attributes.name).match(/^(og|twitter):/)||Nt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Nt(e.attributes.name)==="robots"||Nt(e.attributes.name)==="googlebot"||Nt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Nt(e.attributes.name)==="author"||Nt(e.attributes.name)==="generator"||Nt(e.attributes.name)==="framework"||Nt(e.attributes.name)==="publisher"||Nt(e.attributes.name)==="progid"||Nt(e.attributes.property).match(/^article:/)||Nt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Nt(e.attributes.name)==="google-site-verification"||Nt(e.attributes.name)==="yandex-verification"||Nt(e.attributes.name)==="csrf-token"||Nt(e.attributes.name)==="p:domain_verify"||Nt(e.attributes.name)==="verify-v1"||Nt(e.attributes.name)==="verification"||Nt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ka(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:l,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:_={},maskAttributeFn:T,maskTextFn:B,maskInputFn:U,slimDOMOptions:J,dataURLOptions:K={},inlineImages:H=!1,recordCanvas:F=!1,onSerialize:k,onIframeLoad:j,iframeLoadTimeout:te=5e3,onBlockedImageLoad:L,onStylesheetLoad:G,stylesheetLoadTimeout:W=5e3,keepIframeSrcFn:z=()=>!1,newlyAddedElement:ae=!1}=t;let{preserveWhiteSpace:Ee=!0}=t;const pe=K2(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:l,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:T,maskTextFn:B,maskInputFn:U,dataURLOptions:K,inlineImages:H,recordCanvas:F,keepIframeSrcFn:z,newlyAddedElement:ae});if(!pe)return console.warn(e,"not serialized"),null;let le;r.hasNode(e)?le=r.getId(e):Q2(pe,J)||!Ee&&pe.type===Zt.Text&&!pe.isStyle&&!pe.textContent.replace(/^\s+|\s+$/gm,"").length?le=Xs:le=yh();const $=Object.assign(pe,{id:le});if(r.add(e,$),le===Xs)return null;k&&k(e);let ve=!m;if($.type===Zt.Element){ve=ve&&!$.needBlock;const ge=e.shadowRoot;ge&&Vs(ge)&&($.isShadowHost=!0)}if(($.type===Zt.Document||$.type===Zt.Element)&&ve){J.headWhitespace&&$.type===Zt.Element&&$.tagName==="head"&&(Ee=!1);const ge={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:l,skipChild:m,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:T,maskTextFn:B,maskInputFn:U,slimDOMOptions:J,dataURLOptions:K,inlineImages:H,recordCanvas:F,preserveWhiteSpace:Ee,onSerialize:k,onIframeLoad:j,iframeLoadTimeout:te,onBlockedImageLoad:L,onStylesheetLoad:G,stylesheetLoadTimeout:W,keepIframeSrcFn:z},fe=e.childNodes?Array.from(e.childNodes):[];for(const Se of fe){const Xe=ka(Se,ge);Xe&&$.childNodes.push(Xe)}if(w2(e)&&e.shadowRoot)for(const Se of Array.from(e.shadowRoot.childNodes)){const Xe=ka(Se,ge);Xe&&(Vs(e.shadowRoot)&&(Xe.isShadow=!0),$.childNodes.push(Xe))}}if(e.parentNode&&js(e.parentNode)&&Vs(e.parentNode)&&($.isShadow=!0),$.type===Zt.Element&&$.tagName==="iframe"&&!$.needBlock&&z2(e,()=>{const ge=ES(e);if(ge&&j){const fe=ka(ge,{doc:ge,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:T,maskTextFn:B,maskInputFn:U,slimDOMOptions:J,dataURLOptions:K,inlineImages:H,recordCanvas:F,preserveWhiteSpace:Ee,onSerialize:k,onIframeLoad:j,iframeLoadTimeout:te,onStylesheetLoad:G,stylesheetLoadTimeout:W,keepIframeSrcFn:z});fe&&j(e,fe)}},te),$.type===Zt.Element&&$.tagName==="img"&&!e.complete&&$.needBlock){const ge=e,fe=()=>{if(ge.isConnected&&!ge.complete&&L)try{const Se=ge.getBoundingClientRect();Se.width>0&&Se.height>0&&L(ge,$,Se)}catch{}ge.removeEventListener("load",fe)};ge.isConnected&&ge.addEventListener("load",fe)}return $.type===Zt.Element&&$.tagName==="link"&&typeof $.attributes.rel=="string"&&($.attributes.rel==="stylesheet"||$.attributes.rel==="preload"&&typeof $.attributes.href=="string"&&yS($.attributes.href)==="css")&&Y2(e,()=>{if(G){const ge=ka(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:T,maskTextFn:B,maskInputFn:U,slimDOMOptions:J,dataURLOptions:K,inlineImages:H,recordCanvas:F,preserveWhiteSpace:Ee,onSerialize:k,onIframeLoad:j,iframeLoadTimeout:te,onStylesheetLoad:G,stylesheetLoadTimeout:W,keepIframeSrcFn:z});ge&&G(e,ge)}},W),$.type===Zt.Element&&delete $.needBlock,$}function $2(e,t){const{mirror:n=new gS,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:s=!1,maskTextClass:o="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:f=null,inlineStylesheet:l=!0,inlineImages:m=!1,recordCanvas:g=!1,maskAllInputs:_=!1,maskAttributeFn:T,maskTextFn:B,maskInputFn:U,slimDOM:J=!1,dataURLOptions:K,preserveWhiteSpace:H,onSerialize:F,onIframeLoad:k,iframeLoadTimeout:j,onBlockedImageLoad:te,onStylesheetLoad:L,stylesheetLoadTimeout:G,keepIframeSrcFn:W=()=>!1}=t||{};return ka(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:o,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:l,maskInputOptions:_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:_===!1?{}:_,maskAttributeFn:T,maskTextFn:B,maskInputFn:U,slimDOMOptions:J===!0||J==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:J==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:J===!1?{}:J,dataURLOptions:K,inlineImages:m,recordCanvas:g,preserveWhiteSpace:H,onSerialize:F,onIframeLoad:k,iframeLoadTimeout:j,onBlockedImageLoad:te,onStylesheetLoad:L,stylesheetLoadTimeout:G,keepIframeSrcFn:W,newlyAddedElement:!1})}function wn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Aa=`Please stop import mirror directly. Instead of that,\r
509
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
510
+ or you can use record.mirror to access the mirror instance during recording.`;let Xg={map:{},getId(){return console.error(Aa),-1},getNode(){return console.error(Aa),null},removeNodeFromMap(){console.error(Aa)},has(){return console.error(Aa),!1},reset(){console.error(Aa)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Xg=new Proxy(Xg,{get(e,t,n){return t==="map"&&console.error(Aa),Reflect.get(e,t,n)}}));function Js(e,t,n={}){let r=null,i=0;return function(...a){const s=Date.now();!i&&n.leading===!1&&(i=s);const o=t-(s-i),c=this;o<=0||o>t?(r&&(sB(r),r=null),i=s,e.apply(c,a)):!r&&n.trailing!==!1&&(r=Ol(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},o))}}function wS(e,t,n,r,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){Ol(()=>{n.set.call(this,s)},0),a&&a.set&&a.set.call(this,s)}}),()=>wS(e,t,a||{},!0)}function _h(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let Du=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Du=()=>new Date().getTime());function TS(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function IS(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function AS(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function OS(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Fn(e,t,n,r,i){if(!e)return!1;const a=OS(e);if(!a)return!1;const s=Pa(t,n);if(!i){const u=r&&a.matches(r);return s(a)&&!u}const o=Vi(a,s);let c=-1;return o<0?!1:(r&&(c=Vi(a,Pa(null,r))),o>-1&&c<0?!0:o<c)}function eB(e,t){return t.getId(e)!==-1}function Rd(e,t){return t.getId(e)===Xs}function RS(e,t){if(js(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?RS(e.parentNode,t):!0:!0}function Pf(e){return!!e.changedTouches}function tB(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function CS(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function NS(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function kf(e){return!!e?.shadowRoot}class nB{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function MS(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function rB(e){let t=e,n;for(;n=MS(t);)t=n;return t}function iB(e){const t=e.ownerDocument;if(!t)return!1;const n=rB(e);return t.contains(n)}function PS(e){const t=e.ownerDocument;return t?t.contains(e)||iB(e):!1}const Jg={};function bh(e){const t=Jg[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(i)}catch{}return Jg[e]=r.bind(window)}function aB(...e){return bh("requestAnimationFrame")(...e)}function Ol(...e){return bh("setTimeout")(...e)}function sB(...e){return bh("clearTimeout")(...e)}var it=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(it||{}),qe=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(qe||{}),En=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(En||{}),xr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(xr||{}),Oa=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Oa||{});function Eh(e){try{return e.contentDocument}catch{}}function oB(e){try{return e.contentWindow}catch{}}function Zg(e){return"__ln"in e}class cB{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Zg(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Zg(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Qg=(e,t)=>`${e}@${t}`;class uB{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new cB,i=c=>{let u=c,f=Xs;for(;f===Xs;)u=u&&u.nextSibling,f=u&&this.mirror.getId(u);return f},a=c=>{if(!c.parentNode||!PS(c))return;const u=js(c.parentNode)?this.mirror.getId(MS(c)):this.mirror.getId(c.parentNode),f=i(c);if(u===-1||f===-1)return r.addNode(c);const l=ka(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{CS(m,this.mirror)&&!Fn(m,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(m),NS(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),kf(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(m,g)=>{Fn(m,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(m,g),m.contentWindow&&this.canvasManager.addWindow(m.contentWindow),this.shadowDomManager.observeAttachShadow(m))},onStylesheetLoad:(m,g)=>{this.stylesheetManager.attachLinkElement(m,g)},onBlockedImageLoad:(m,g,{width:_,height:T})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:g.id,attributes:{style:{width:`${_}px`,height:`${T}px`}}}]})}});l&&(t.push({parentId:u,nextId:f,node:l}),n.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)$g(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||a(c);for(const c of this.addedSet)!ey(this.droppedSet,c)&&!$g(this.removes,c,this.mirror)||ey(this.movedSet,c)?a(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){const u=this.mirror.getId(s.value.parentNode),f=i(s.value);u!==-1&&f!==-1&&(c=s)}if(!c){let u=r.tail;for(;u;){const f=u;if(u=u.previous,f){const l=this.mirror.getId(f.value.parentNode);if(i(f.value)===-1)continue;if(l!==-1){c=f;break}else{const g=f.value;if(g.parentNode&&g.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const _=g.parentNode.host;if(this.mirror.getId(_)!==-1){c=f;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),a(c.value)}const o={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const f=JSON.stringify(c.styleDiff),l=JSON.stringify(c._unchangedStyles);f.length<u.style.length&&(f+l).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=t=>{if(!Rd(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Qa(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,OS(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const s=gh(n),o=n.tagName;i=ku(n,o,s);const c=Il({maskInputOptions:this.maskInputOptions,tagName:o,type:s}),u=Qa(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);i=Ks({isMasked:u,element:n,value:i,maskInputFn:this.maskInputFn})}if(Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!Eh(n))r="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!SS(n.tagName,r)&&(a.attributes[r]=vS(this.doc,Za(n.tagName),Za(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const o of Array.from(n.style)){const c=n.style.getPropertyValue(o),u=n.style.getPropertyPriority(o);c!==s.style.getPropertyValue(o)||u!==s.style.getPropertyPriority(o)?u===""?a.styleDiff[o]=c:a.styleDiff[o]=[c,u]:a._unchangedStyles[o]=[c,u]}for(const o of Array.from(s.style))n.style.getPropertyValue(o)===""&&(a.styleDiff[o]=!1)}break}case"childList":{if(Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=js(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Rd(n,this.mirror)||!eB(n,this.mirror)||(this.addedSet.has(n)?(Lf(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||RS(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Qg(r,i)]?Lf(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:js(t.target)&&Vs(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Rd(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Qg(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Fn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),kf(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Lf(e,t){e.delete(t),t.childNodes?.forEach(n=>Lf(e,n))}function $g(e,t,n){return e.length===0?!1:lB(e,t,n)}function lB(e,t,n){let r=t.parentNode;for(;r;){const i=n.getId(r);if(e.some(a=>a.id===i))return!0;r=r.parentNode}return!1}function ey(e,t){return e.size===0?!1:kS(e,t)}function kS(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:kS(e,n):!1}let Gs;function dB(e){Gs=e}function fB(){Gs=void 0}const mt=e=>Gs?(...n)=>{try{return e(...n)}catch(r){if(Gs&&Gs(r)===!0)return()=>{};throw r}}:e,La=[];function To(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function LS(e,t){const n=new uB;La.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);const a=new r(mt(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function pB({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],o;const c=Js(mt(l=>{const m=Date.now()-o;e(s.map(g=>(g.timeOffset-=m,g)),l),s=[],o=null}),a),u=mt(Js(mt(l=>{const m=To(l),{clientX:g,clientY:_}=Pf(l)?l.changedTouches[0]:l;o||(o=Du()),s.push({x:g,y:_,id:r.getId(m),timeOffset:Du()-o}),c(typeof DragEvent<"u"&&l instanceof DragEvent?qe.Drag:l instanceof MouseEvent?qe.MouseMove:qe.TouchMove)}),i,{trailing:!1})),f=[wn("mousemove",u,n),wn("touchmove",u,n),wn("drag",u,n)];return mt(()=>{f.forEach(l=>l())})}function hB({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const o=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let u=null;const f=l=>m=>{const g=To(m);if(Fn(g,r,i,a,!0))return;let _=null,T=l;if("pointerType"in m){switch(m.pointerType){case"mouse":_=xr.Mouse;break;case"touch":_=xr.Touch;break;case"pen":_=xr.Pen;break}_===xr.Touch?En[l]===En.MouseDown?T="TouchStart":En[l]===En.MouseUp&&(T="TouchEnd"):xr.Pen}else Pf(m)&&(_=xr.Touch);_!==null?(u=_,(T.startsWith("Touch")&&_===xr.Touch||T.startsWith("Mouse")&&_===xr.Mouse)&&(_=null)):En[l]===En.Click&&(_=u,u=null);const B=Pf(m)?m.changedTouches[0]:m;if(!B)return;const U=n.getId(g),{clientX:J,clientY:K}=B;mt(e)({type:En[T],id:U,x:J,y:K,..._!==null&&{pointerType:_}})};return Object.keys(En).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&o[l]!==!1).forEach(l=>{let m=Za(l);const g=f(l);if(window.PointerEvent)switch(En[l]){case En.MouseDown:case En.MouseUp:m=m.replace("mouse","pointer");break;case En.TouchStart:case En.TouchEnd:return}c.push(wn(m,g,t))}),mt(()=>{c.forEach(l=>l())})}function DS({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){const o=mt(Js(mt(c=>{const u=To(c);if(!u||Fn(u,r,i,a,!0))return;const f=n.getId(u);if(u===t&&t.defaultView){const l=TS(t.defaultView);e({id:f,x:l.left,y:l.top})}else e({id:f,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return wn("scroll",o,t)}function mB({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=mt(Js(mt(()=>{const a=IS(),s=AS();(n!==a||r!==s)&&(e({width:Number(s),height:Number(a)}),n=a,r=s)}),200));return wn("resize",i,t)}const gB=["INPUT","TEXTAREA","SELECT"],ty=new WeakMap;function yB({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:s,ignoreSelector:o,maskInputOptions:c,maskInputFn:u,sampling:f,userTriggeredOnInput:l,maskTextClass:m,unmaskTextClass:g,maskTextSelector:_,unmaskTextSelector:T}){function B(j){let te=To(j);const L=j.isTrusted,G=te&&Nf(te.tagName);if(G==="OPTION"&&(te=te.parentElement),!te||!G||gB.indexOf(G)<0||Fn(te,r,i,a,!0))return;const W=te;if(W.classList.contains(s)||o&&W.matches(o))return;const z=gh(te);let ae=ku(W,G,z),Ee=!1;const pe=Il({maskInputOptions:c,tagName:G,type:z}),le=Qa(te,m,_,g,T,pe);(z==="radio"||z==="checkbox")&&(Ee=te.checked),ae=Ks({isMasked:le,element:te,value:ae,maskInputFn:u}),U(te,l?{text:ae,isChecked:Ee,userTriggered:L}:{text:ae,isChecked:Ee});const $=te.name;z==="radio"&&$&&Ee&&t.querySelectorAll(`input[type="radio"][name="${$}"]`).forEach(ve=>{if(ve!==te){const ge=Ks({isMasked:le,element:ve,value:ku(ve,G,z),maskInputFn:u});U(ve,l?{text:ge,isChecked:!Ee,userTriggered:!1}:{text:ge,isChecked:!Ee})}})}function U(j,te){const L=ty.get(j);if(!L||L.text!==te.text||L.isChecked!==te.isChecked){ty.set(j,te);const G=n.getId(j);mt(e)({...te,id:G})}}const K=(f.input==="last"?["change"]:["input","change"]).map(j=>wn(j,mt(B),t)),H=t.defaultView;if(!H)return()=>{K.forEach(j=>j())};const F=H.Object.getOwnPropertyDescriptor(H.HTMLInputElement.prototype,"value"),k=[[H.HTMLInputElement.prototype,"value"],[H.HTMLInputElement.prototype,"checked"],[H.HTMLSelectElement.prototype,"value"],[H.HTMLTextAreaElement.prototype,"value"],[H.HTMLSelectElement.prototype,"selectedIndex"],[H.HTMLOptionElement.prototype,"selected"]];return F&&F.set&&K.push(...k.map(j=>wS(j[0],j[1],{set(){mt(B)({target:this,isTrusted:!1})}},!1,H))),mt(()=>{K.forEach(j=>j())})}function Bu(e){const t=[];function n(r,i){if(Mc("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Mc("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Mc("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Mc("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(s)}return i}return n(e,t)}function pi(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function _B({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:mt((f,l,m)=>{const[g,_]=m,{id:T,styleId:B}=pi(l,t,n.styleMirror);return(T&&T!==-1||B&&B!==-1)&&e({id:T,styleId:B,adds:[{rule:g,index:_}]}),f.apply(l,m)})});const a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:mt((f,l,m)=>{const[g]=m,{id:_,styleId:T}=pi(l,t,n.styleMirror);return(_&&_!==-1||T&&T!==-1)&&e({id:_,styleId:T,removes:[{index:g}]}),f.apply(l,m)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:mt((f,l,m)=>{const[g]=m,{id:_,styleId:T}=pi(l,t,n.styleMirror);return(_&&_!==-1||T&&T!==-1)&&e({id:_,styleId:T,replace:g}),f.apply(l,m)})}));let o;r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:mt((f,l,m)=>{const[g]=m,{id:_,styleId:T}=pi(l,t,n.styleMirror);return(_&&_!==-1||T&&T!==-1)&&e({id:_,styleId:T,replaceSync:g}),f.apply(l,m)})}));const c={};Pc("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Pc("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Pc("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Pc("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([f,l])=>{u[f]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[f].insertRule,{apply:mt((m,g,_)=>{const[T,B]=_,{id:U,styleId:J}=pi(g.parentStyleSheet,t,n.styleMirror);return(U&&U!==-1||J&&J!==-1)&&e({id:U,styleId:J,adds:[{rule:T,index:[...Bu(g),B||0]}]}),m.apply(g,_)})}),l.prototype.deleteRule=new Proxy(u[f].deleteRule,{apply:mt((m,g,_)=>{const[T]=_,{id:B,styleId:U}=pi(g.parentStyleSheet,t,n.styleMirror);return(B&&B!==-1||U&&U!==-1)&&e({id:B,styleId:U,removes:[{index:[...Bu(g),T]}]}),m.apply(g,_)})})}),mt(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,s&&(r.CSSStyleSheet.prototype.replace=s),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach(([f,l])=>{l.prototype.insertRule=u[f].insertRule,l.prototype.deleteRule=u[f].deleteRule})})}function BS({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(s){const o=a.set?.call(this,s);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return o}}),mt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function bB({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:mt((o,c,u)=>{const[f,l,m]=u;if(n.has(f))return a.apply(c,[f,l,m]);const{id:g,styleId:_}=pi(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||_&&_!==-1)&&e({id:g,styleId:_,set:{property:f,value:l,priority:m},index:Bu(c.parentRule)}),o.apply(c,u)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:mt((o,c,u)=>{const[f]=u;if(n.has(f))return s.apply(c,[f]);const{id:l,styleId:m}=pi(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||m&&m!==-1)&&e({id:l,styleId:m,remove:{property:f},index:Bu(c.parentRule)}),o.apply(c,u)})}),mt(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=s})}function EB({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:s}){const o=mt(u=>Js(mt(f=>{const l=To(f);if(!l||Fn(l,t,n,r,!0))return;const{currentTime:m,volume:g,muted:_,playbackRate:T}=l;e({type:u,id:i.getId(l),currentTime:m,volume:g,muted:_,playbackRate:T})}),a.media||500)),c=[wn("play",o(Oa.Play),s),wn("pause",o(Oa.Pause),s),wn("seeked",o(Oa.Seeked),s),wn("volumechange",o(Oa.VolumeChange),s),wn("ratechange",o(Oa.RateChange),s)];return mt(()=>{c.forEach(u=>u())})}function vB({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(c,u,f){const l=new a(c,u,f);return i.set(l,{family:c,buffer:typeof u!="string",descriptors:f,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const s=_h(t.fonts,"add",function(o){return function(c){return Ol(mt(()=>{const u=i.get(c);u&&(e(u),i.delete(c))}),0),o.apply(this,[c])}});return r.push(()=>{n.FontFace=a}),r.push(s),mt(()=>{r.forEach(o=>o())})}function SB(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:s}=e;let o=!0;const c=mt(()=>{const u=t.getSelection();if(!u||o&&u?.isCollapsed)return;o=u.isCollapsed||!1;const f=[],l=u.rangeCount||0;for(let m=0;m<l;m++){const g=u.getRangeAt(m),{startContainer:_,startOffset:T,endContainer:B,endOffset:U}=g;Fn(_,r,i,a,!0)||Fn(B,r,i,a,!0)||f.push({start:n.getId(_),startOffset:T,end:n.getId(B),endOffset:U})}s({ranges:f})});return c(),wn("selectionchange",c)}function wB({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:_h(n.customElements,"define",function(i){return function(a,s,o){try{t({define:{name:a}})}catch{}return i.apply(this,[a,s,o])}})}function TB(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=LS(e,e.doc));const i=pB(e),a=hB(e),s=DS(e),o=mB(e,{win:n}),c=yB(e),u=EB(e);let f=()=>{},l=()=>{},m=()=>{},g=()=>{};e.recordDOM&&(f=_B(e,{win:n}),l=BS(e,e.doc),m=bB(e,{win:n}),e.collectFonts&&(g=vB(e)));const _=SB(e),T=wB(e),B=[];for(const U of e.plugins)B.push(U.observer(U.callback,n,U.options));return mt(()=>{La.forEach(U=>U.reset()),r?.disconnect(),i(),a(),s(),o(),c(),u(),f(),l(),m(),g(),_(),T(),B.forEach(U=>U())})}function Mc(e){return typeof window[e]<"u"}function Pc(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Df{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const a=r||this.getIdToRemoteIdMap(t),s=i||this.getRemoteIdToIdMap(t);let o=a.get(n);return o||(o=this.generateIdFn(),a.set(n,o),s.set(o,n)),o}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=i.get(n);return a||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class IB{constructor(){this.crossOriginIframeMirror=new Df(yh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class AB{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Df(yh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Df(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=Eh(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case it.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:it.IncrementalSnapshot,data:{source:qe.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case it.Meta:case it.Load:case it.DomContentLoaded:return!1;case it.Plugin:return n;case it.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case it.IncrementalSnapshot:switch(n.data.source){case qe.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case qe.Drag:case qe.TouchMove:case qe.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case qe.ViewportResize:return!1;case qe.MediaInteraction:case qe.MouseInteraction:case qe.Scroll:case qe.CanvasMutation:case qe.Input:return this.replaceIds(n.data,t,["id"]),n;case qe.StyleSheetRule:case qe.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case qe.Font:return n;case qe.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case qe.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,i){for(const a of i)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(r,n[a]):n[a]=t.getId(r,n[a]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Zt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class OB{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class RB{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Vs(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=LS({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(DS({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Ol(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(BS({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Eh(t),r=oB(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(_h(t.prototype,"attachShadow",function(i){return function(a){const s=i.call(this,a);return this.shadowRoot&&PS(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var ny="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",CB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var kc=0;kc<ny.length;kc++)CB[ny.charCodeAt(kc)]=kc;class ry{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class NB{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new nB,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const a of t){let s;this.styleMirror.has(a)?s=this.styleMirror.getId(a):(s=this.styleMirror.add(a),i.push({styleId:s,rules:Array.from(a.rules||CSSRule,(o,c)=>({rule:mS(o),index:c}))})),r.styleIds.push(s)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class MB{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,aB(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let Gt,Fu;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const tr=N2();function Gr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:f="rr-mask",unmaskTextClass:l=null,maskTextSelector:m=null,unmaskTextSelector:g=null,inlineStylesheet:_=!0,maskAllInputs:T,maskInputOptions:B,slimDOMOptions:U,maskAttributeFn:J,maskInputFn:K,maskTextFn:H,maxCanvasSize:F=null,packFn:k,sampling:j={},dataURLOptions:te={},mousemoveWait:L,recordDOM:G=!0,recordCanvas:W=!1,recordCrossOriginIframes:z=!1,recordAfter:ae=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:Ee=!1,collectFonts:pe=!1,inlineImages:le=!1,plugins:$,keepIframeSrcFn:ve=()=>!1,ignoreCSSAttributes:ge=new Set([]),errorHandler:fe,onMutation:Se,getCanvasManager:Xe}=e;dB(fe);const ce=z?window.parent===window:!0;let He=!1;if(!ce)try{window.parent.document&&(He=!1)}catch{He=!0}if(ce&&!t)throw new Error("emit function is required");if(!ce&&!He)return()=>{};L!==void 0&&j.mousemove===void 0&&(j.mousemove=L),tr.reset();const Et=T===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:B!==void 0?B:{},vt=U===!0||U==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:U==="all",headMetaDescKeywords:U==="all"}:U||{};tB();let tn,nn=0;const Gn=Qe=>{for(const rn of $||[])rn.eventProcessor&&(Qe=rn.eventProcessor(Qe));return k&&!He&&(Qe=k(Qe)),Qe};Gt=(Qe,rn)=>{const et=Qe;if(et.timestamp=Du(),La[0]?.isFrozen()&&et.type!==it.FullSnapshot&&!(et.type===it.IncrementalSnapshot&&et.data.source===qe.Mutation)&&La.forEach(Dt=>Dt.unfreeze()),ce)t?.(Gn(et),rn);else if(He){const Dt={type:"rrweb",event:Gn(et),origin:window.location.origin,isCheckout:rn};window.parent.postMessage(Dt,"*")}if(et.type===it.FullSnapshot)tn=et,nn=0;else if(et.type===it.IncrementalSnapshot){if(et.data.source===qe.Mutation&&et.data.isAttachIframe)return;nn++;const Dt=r&&nn>=r,ot=n&&tn&&et.timestamp-tn.timestamp>n;(Dt||ot)&&ti(!0)}};const Ne=Qe=>{Gt({type:it.IncrementalSnapshot,data:{source:qe.Mutation,...Qe}})},pt=Qe=>Gt({type:it.IncrementalSnapshot,data:{source:qe.Scroll,...Qe}}),gt=Qe=>Gt({type:it.IncrementalSnapshot,data:{source:qe.CanvasMutation,...Qe}}),Wt=Qe=>Gt({type:it.IncrementalSnapshot,data:{source:qe.AdoptedStyleSheet,...Qe}}),nt=new NB({mutationCb:Ne,adoptedStyleSheetCb:Wt}),rt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new IB:new AB({mirror:tr,mutationCb:Ne,stylesheetManager:nt,recordCrossOriginIframes:z,wrappedEmit:Gt});for(const Qe of $||[])Qe.getMirror&&Qe.getMirror({nodeMirror:tr,crossOriginIframeMirror:rt.crossOriginIframeMirror,crossOriginIframeStyleMirror:rt.crossOriginIframeStyleMirror});const Je=new MB,yn=kB(Xe,{mirror:tr,win:window,mutationCb:Qe=>Gt({type:it.IncrementalSnapshot,data:{source:qe.CanvasMutation,...Qe}}),recordCanvas:W,blockClass:i,blockSelector:a,unblockSelector:s,maxCanvasSize:F,sampling:j.canvas,dataURLOptions:te,errorHandler:fe}),Lt=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new OB:new RB({mutationCb:Ne,scrollCb:pt,bypassOptions:{onMutation:Se,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:f,unmaskTextClass:l,maskTextSelector:m,unmaskTextSelector:g,inlineStylesheet:_,maskInputOptions:Et,dataURLOptions:te,maskAttributeFn:J,maskTextFn:H,maskInputFn:K,recordCanvas:W,inlineImages:le,sampling:j,slimDOMOptions:vt,iframeManager:rt,stylesheetManager:nt,canvasManager:yn,keepIframeSrcFn:ve,processedNodeManager:Je},mirror:tr}),ti=(Qe=!1)=>{if(!G)return;Gt({type:it.Meta,data:{href:window.location.href,width:AS(),height:IS()}},Qe),nt.reset(),Lt.init(),La.forEach(et=>et.lock());const rn=$2(document,{mirror:tr,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:f,unmaskTextClass:l,maskTextSelector:m,unmaskTextSelector:g,inlineStylesheet:_,maskAllInputs:Et,maskAttributeFn:J,maskInputFn:K,maskTextFn:H,slimDOM:vt,dataURLOptions:te,recordCanvas:W,inlineImages:le,onSerialize:et=>{CS(et,tr)&&rt.addIframe(et),NS(et,tr)&&nt.trackLinkElement(et),kf(et)&&Lt.addShadowRoot(et.shadowRoot,document)},onIframeLoad:(et,Dt)=>{rt.attachIframe(et,Dt),et.contentWindow&&yn.addWindow(et.contentWindow),Lt.observeAttachShadow(et)},onStylesheetLoad:(et,Dt)=>{nt.attachLinkElement(et,Dt)},onBlockedImageLoad:(et,Dt,{width:ot,height:Ln})=>{Ne({adds:[],removes:[],texts:[],attributes:[{id:Dt.id,attributes:{style:{width:`${ot}px`,height:`${Ln}px`}}}]})},keepIframeSrcFn:ve});if(!rn)return console.warn("Failed to snapshot the document");Gt({type:it.FullSnapshot,data:{node:rn,initialOffset:TS(window)}}),La.forEach(et=>et.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&nt.adoptStyleSheets(document.adoptedStyleSheets,tr.getId(document))};Fu=ti;try{const Qe=[],rn=Dt=>mt(TB)({onMutation:Se,mutationCb:Ne,mousemoveCb:(ot,Ln)=>Gt({type:it.IncrementalSnapshot,data:{source:Ln,positions:ot}}),mouseInteractionCb:ot=>Gt({type:it.IncrementalSnapshot,data:{source:qe.MouseInteraction,...ot}}),scrollCb:pt,viewportResizeCb:ot=>Gt({type:it.IncrementalSnapshot,data:{source:qe.ViewportResize,...ot}}),inputCb:ot=>Gt({type:it.IncrementalSnapshot,data:{source:qe.Input,...ot}}),mediaInteractionCb:ot=>Gt({type:it.IncrementalSnapshot,data:{source:qe.MediaInteraction,...ot}}),styleSheetRuleCb:ot=>Gt({type:it.IncrementalSnapshot,data:{source:qe.StyleSheetRule,...ot}}),styleDeclarationCb:ot=>Gt({type:it.IncrementalSnapshot,data:{source:qe.StyleDeclaration,...ot}}),canvasMutationCb:gt,fontCb:ot=>Gt({type:it.IncrementalSnapshot,data:{source:qe.Font,...ot}}),selectionCb:ot=>{Gt({type:it.IncrementalSnapshot,data:{source:qe.Selection,...ot}})},customElementCb:ot=>{Gt({type:it.IncrementalSnapshot,data:{source:qe.CustomElement,...ot}})},blockClass:i,ignoreClass:o,ignoreSelector:c,maskAllText:u,maskTextClass:f,unmaskTextClass:l,maskTextSelector:m,unmaskTextSelector:g,maskInputOptions:Et,inlineStylesheet:_,sampling:j,recordDOM:G,recordCanvas:W,inlineImages:le,userTriggeredOnInput:Ee,collectFonts:pe,doc:Dt,maskAttributeFn:J,maskInputFn:K,maskTextFn:H,keepIframeSrcFn:ve,blockSelector:a,unblockSelector:s,slimDOMOptions:vt,dataURLOptions:te,mirror:tr,iframeManager:rt,stylesheetManager:nt,shadowDomManager:Lt,processedNodeManager:Je,canvasManager:yn,ignoreCSSAttributes:ge,plugins:$?.filter(ot=>ot.observer)?.map(ot=>({observer:ot.observer,options:ot.options,callback:Ln=>Gt({type:it.Plugin,data:{plugin:ot.name,payload:Ln}})}))||[]},{});rt.addLoadListener(Dt=>{try{Qe.push(rn(Dt.contentDocument))}catch(ot){console.warn(ot)}});const et=()=>{ti(),Qe.push(rn(document))};return document.readyState==="interactive"||document.readyState==="complete"?et():(Qe.push(wn("DOMContentLoaded",()=>{Gt({type:it.DomContentLoaded,data:{}}),ae==="DOMContentLoaded"&&et()})),Qe.push(wn("load",()=>{Gt({type:it.Load,data:{}}),ae==="load"&&et()},window))),()=>{Qe.forEach(Dt=>Dt()),Je.destroy(),Fu=void 0,fB()}}catch(Qe){console.warn(Qe)}}function PB(e){if(!Fu)throw new Error("please take full snapshot after start recording");Fu(e)}Gr.mirror=tr;Gr.takeFullSnapshot=PB;function kB(e,t){try{return e?e(t):new ry}catch{return console.warn("Unable to initialize CanvasManager"),new ry}}var iy;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(iy||(iy={}));const LB=3,DB=5;function vh(e){return e>9999999999?e:e*1e3}function Cd(e){return e>9999999999?e/1e3:e}function Io(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:it.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Bn(t,10,1e3)}}),t.category==="console")))}const BB="button,a";function FS(e){return e.closest(BB)||e}function xS(e){const t=HS(e);return!t||!(t instanceof Element)?t:FS(t)}function HS(e){return FB(e)?e.target:e}function FB(e){return typeof e=="object"&&!!e&&"target"in e}let hi;function xB(e){return hi||(hi=[],HB()),hi.push(e),()=>{const t=hi?hi.indexOf(e):-1;t>-1&&hi.splice(t,1)}}function HB(){Tn(Mt,"open",function(e){return function(...t){if(hi)try{hi.forEach(n=>n())}catch{}return e.apply(Mt,t)}})}const UB=new Set([qe.Mutation,qe.StyleSheetRule,qe.StyleDeclaration,qe.AdoptedStyleSheet,qe.CanvasMutation,qe.Selection,qe.MediaInteraction]);function jB(e,t,n){e.handleClick(t,n)}class VB{constructor(t,n,r=Io){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=xB(()=>{this._lastMutation=ay()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(qB(n,this._ignoreSelector)||!WB(t))return;const r={timestamp:Cd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Cd(t)}registerScroll(t=Date.now()){this._lastScroll=Cd(t)}registerClick(t){const n=FS(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=ay();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!i,{clickCount:s,clickBreadcrumb:o}=t;if(a){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",f={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:Mt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,f);return}if(s>1){const c={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:Mt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=wo(()=>this._checkClicks(),1e3)}}const GB=["A","BUTTON","INPUT"];function qB(e,t){return!!(!GB.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function WB(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function ay(){return Date.now()/1e3}function zB(e,t){try{if(!YB(t))return;const{source:n}=t.data;if(UB.has(n)&&e.registerMutation(t.timestamp),n===qe.Scroll&&e.registerScroll(t.timestamp),KB(t)){const{type:r,id:i}=t.data,a=Gr.mirror.getNode(i);a instanceof HTMLElement&&r===En.Click&&e.registerClick(a)}}catch{}}function YB(e){return e.type===LB}function KB(e){return e.data.source===qe.MouseInteraction}function Ir(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Sh=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Sh||{});const XB=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function JB(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(XB.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const ZB=e=>t=>{if(!e.isEnabled())return;const n=QB(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&jB(e.clickDetector,n,xS(t.event)),Io(e,n)};function US(e,t){const n=Gr.mirror.getId(e),r=n&&Gr.mirror.getNode(n),i=r&&Gr.mirror.getMeta(r),a=i&&eF(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(s=>s.type===Sh.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:JB(a.attributes)}}:{}}}function QB(e){const{target:t,message:n}=$B(e);return Ir({category:`ui.${e.name}`,...US(t,n)})}function $B(e){const t=e.name==="click";let n,r=null;try{r=t?xS(e.event):HS(e.event),n=Xn(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function eF(e){return e.type===Sh.Element}function tF(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=nF(t);n&&Io(e,n)}function nF(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:s}=e;if(!s||rF(s)||!a)return null;const o=t||r||i,c=a.length===1;if(!o&&c)return null;const u=Xn(s,{maxStringLength:200})||"<unknown>",f=US(s,u);return Ir({category:"ui.keyDown",message:u,data:{...f.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function rF(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const iF={resource:uF,paint:oF,navigation:cF};function Lc(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function aF(e){return e.map(sF).filter(Boolean)}function sF(e){const t=iF[e.entryType];return t?t(e):null}function $a(e){return((gn()||Mt.performance.timeOrigin)+e)/1e3}function oF(e){const{duration:t,entryType:n,name:r,startTime:i}=e,a=$a(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function cF(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:f,loadEventEnd:l,redirectCount:m,startTime:g,transferSize:_,type:T}=e;return i===0?null:{type:`${t}.${T}`,start:$a(g),end:$a(a),name:n,data:{size:_,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:f,loadEventEnd:l,domComplete:a,redirectCount:m}}}function uF(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:s,encodedBodySize:o,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:$a(a),end:$a(i),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:o}}}function lF(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Rl(e,"largest-contentful-paint",n)}function dF(e){return e.sources!==void 0}function fF(e){const t=[],n=[];for(const r of e.entries)if(dF(r)){const i=[];for(const a of r.sources)if(a.node){n.push(a.node);const s=Gr.mirror.getId(a.node);s&&i.push(s)}t.push({value:r.value,nodeIds:i.length?i:void 0})}return Rl(e,"cumulative-layout-shift",n,t)}function pF(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Rl(e,"first-input-delay",n)}function hF(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Rl(e,"interaction-to-next-paint",n)}function Rl(e,t,n,r){const i=e.value,a=e.rating,s=$a(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:a,nodeIds:n?n.map(o=>Gr.mirror.getId(o)):void 0,attributions:r}}}function mF(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(Qi(i,n))}),r.push(oh(Lc(lF,e)),sh(Lc(fF,e)),U0(Lc(pF,e)),j0(Lc(hF,e))),()=>{r.forEach(i=>i())}}const je=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gF='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function yF(){const e=new Blob([gF]);return URL.createObjectURL(e)}const sy=["log","warn","error"],ru="[Replay] ";function Nd(e,t="info"){Rr({category:"console",data:{logger:"replay"},level:t,message:`${ru}${e}`},{level:t})}function _F(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return je?(sy.forEach(r=>{n[r]=(...i)=>{X[r](ru,...i),t&&Nd(i.join(""),Xp(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),X.error(ru,r),e?Zi(r):t&&Nd(r,"error")},n.infoTick=(...r)=>{X.log(ru,...r),t&&setTimeout(()=>Nd(r[0]),0)}):sy.forEach(r=>{n[r]=()=>{}}),n}const Ve=_F();class wh extends Error{constructor(){super(`Event buffer exceeded maximum size of ${mh}.`)}}class jS{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>mh)throw new wh;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?vh(t):null}}class bF{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){je&&Ve.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,a)=>{const s=({data:o})=>{const c=o;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){je&&Ve.error("Error in compression worker: ",c.response),a(new Error("Error in compression worker"));return}i(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class EF{constructor(t){this._worker=new bF(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=vh(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>mh?Promise.reject(new wh):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{je&&Ve.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class vF{constructor(t){this._fallback=new jS,this._compression=new EF(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){je&&Ve.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,i=[];for(const a of t)i.push(this._compression.addEvent(a));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(a){je&&Ve.exception(a,"Failed to add events when switching buffers.")}}}function SF({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=wF(t);if(n)return n}return je&&Ve.log("Using simple buffer"),new jS}function wF(e){try{const t=e||TF();if(!t)return;je&&Ve.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new vF(n)}catch(t){je&&Ve.exception(t,"Failed to create compression worker")}}function TF(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?yF():""}function Th(){try{return"sessionStorage"in Mt&&!!Mt.sessionStorage}catch{return!1}}function IF(e){AF(),e.session=void 0}function AF(){if(Th())try{Mt.sessionStorage.removeItem(ph)}catch{}}function VS(e){return e===void 0?!1:Math.random()<e}function Ih(e){if(Th())try{Mt.sessionStorage.setItem(ph,JSON.stringify(e))}catch{}}function GS(e){const t=Date.now(),n=e.id||In(),r=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,s=e.sampled,o=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:a,sampled:s,previousSessionId:o}}function OF(e,t){return VS(e)?"session":t?"buffer":!1}function oy({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=OF(e,t),a=GS({sampled:i,previousSessionId:r});return n&&Ih(a),a}function RF(){if(!Th())return null;try{const e=Mt.sessionStorage.getItem(ph);if(!e)return null;const t=JSON.parse(e);return je&&Ve.infoTick("Loading existing session"),GS(t)}catch{return null}}function Bf(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function qS(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Bf(e.started,t,r)||Bf(e.lastActivity,n,r)}function WS(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!qS(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Md({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&RF();return i?WS(i,{sessionIdleExpire:e,maxReplayDuration:t})?(je&&Ve.infoTick("Session in sessionStorage is expired, creating new one..."),oy(r,{previousSessionId:i.id})):i:(je&&Ve.infoTick("Creating new session"),oy(r,{previousSessionId:n}))}function CF(e){return e.type===it.Custom}function Ah(e,t,n){return YS(e,t)?(zS(e,t,n),!0):!1}function NF(e,t,n){return YS(e,t)?zS(e,t,n):Promise.resolve(null)}async function zS(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const a=e.getOptions(),s=MF(t,a.beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(a){const s=a&&a instanceof wh,o=s?"addEventSizeExceeded":"addEvent";if(s&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:o});const c=Ce();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function YS(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=vh(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(je&&Ve.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function MF(e,t){try{if(typeof t=="function"&&CF(e))return t(e)}catch(n){return je&&Ve.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Oh(e){return!e.type}function Ff(e){return e.type==="transaction"}function PF(e){return e.type==="replay_event"}function cy(e){return e.type==="feedback"}function kF(e){return(t,n)=>{if(!e.isEnabled()||!Oh(t)&&!Ff(t))return;const r=n?.statusCode;if(!(!r||r<200||r>=300)){if(Ff(t)){LF(e,t);return}DF(e,t)}}}function LF(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function DF(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||wo(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function BF(e){return t=>{!e.isEnabled()||!Oh(t)||FF(e,t)}}function FF(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Ir({category:"replay.hydrate-error",data:{url:ra()}});Io(e,r)}}function xF(e){const t=Ce();t&&t.on("beforeAddBreadcrumb",n=>HF(e,n))}function HF(e,t){if(!e.isEnabled()||!KS(t))return;const n=UF(t);n&&Io(e,n)}function UF(e){return!KS(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?jF(e):Ir(e)}function jF(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Ir(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>Nc?(n=!0,`${i.slice(0,Nc)}…`):i;if(typeof i=="object")try{const a=Bn(i,7);return JSON.stringify(a).length>Nc?(n=!0,`${JSON.stringify(a,null,2).slice(0,Nc)}…`):a}catch{}return i});return Ir({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function KS(e){return!!e.category}function VF(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function XS(){const e=tt().getPropagationContext().dsc;e&&delete e.replay_id;const t=en();if(t){const n=dr(t);delete n.replay_id}}function GF(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:it.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function qF(e,t){return e.recordingMode!=="buffer"||t.message===hh||!t.exception||t.type?!1:VS(e.getOptions().errorSampleRate)}function WF(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:PF(t)?(delete t.breadcrumbs,t):!Oh(t)&&!Ff(t)&&!cy(t)?t:e.checkAndHandleExpiredSession()?cy(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),GF(e,t),t):VF(t,n)&&!e.getOptions()._experiments.captureExceptions?(je&&Ve.log("Ignoring error from rrweb internals",t),null):((qF(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(XS(),t),{id:"Replay"})}function Cl(e,t){return t.map(({type:n,start:r,end:i,name:a,data:s})=>{const o=e.throttledAddEvent({type:it.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:i,data:s}}});return typeof o=="string"?Promise.resolve(null):o})}function zF(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function YF(e){return t=>{if(!e.isEnabled())return;const n=zF(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Cl(e,[n]),!1)))}}function KF(e,t){return je&&e.getOptions()._experiments.traceInternals?!1:Wv(t,Ce())}function JS(e,t){e.isEnabled()&&t!==null&&(KF(e,t.name)||e.addUpdate(()=>(Cl(e,[t]),!0)))}function Nl(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=K0(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function ZS(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function xu(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function QS(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:s,request:o,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:s,request:o,response:c}}}function Zs(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function _i(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:a}=XF(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function xf(e,t){return Object.entries(e).reduce((n,[r,i])=>{const a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function XF(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Vg,n=JF(e);if(t){const r=e.slice(0,Vg);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function JF(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Hu(e,t){const n=ZF(e);return ur(n,t)}function ZF(e,t=Mt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Mt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function QF(e,t,n){try{const r=await ex(e,t,n),i=QS("resource.fetch",r);JS(n.replay,i)}catch(r){je&&Ve.exception(r,"Failed to capture fetch breadcrumb")}}function $F(e,t){const{input:n,response:r}=t,i=n?dh(n):void 0,a=Nl(i),s=r?ZS(r.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),s!==void 0&&(e.data.response_body_size=s)}async function ex(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:s,method:o,status_code:c=0,request_body_size:u,response_body_size:f}=e.data,l=Hu(s,n.networkDetailAllowUrls)&&!Hu(s,n.networkDetailDenyUrls),m=l?tx(n,t.input,u):Zs(u),g=await nx(l,n,t.response,f);return{startTimestamp:i,endTimestamp:a,url:s,method:o,statusCode:c,request:m,response:g}}function tx({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?ax(n,t):{};if(!e)return _i(i,r,void 0);const a=dh(n),[s,o]=Mu(a,Ve),c=_i(i,r,s);return o?xu(c,o):c}async function nx(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Zs(i);const a=r?$S(r.headers,n):{};if(!r||!t&&i!==void 0)return _i(a,i,void 0);const[s,o]=await ix(r),c=rx(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return o?xu(c,o):c}function rx(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const a=e?.length&&n===void 0?Nl(e):n;return r?t?_i(i,a,e):_i(i,a,void 0):Zs(a)}catch(a){return je&&Ve.exception(a,"Failed to serialize response body"),_i(i,n,void 0)}}async function ix(e){const t=sx(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await ox(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(je&&Ve.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(je&&Ve.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function $S(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function ax(e,t){return e.length===1&&typeof e[0]!="string"?uy(e[0],t):e.length===2?uy(e[1],t):{}}function uy(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?$S(n,t):Array.isArray(n)?{}:xf(n,t):{}}function sx(e){try{return e.clone()}catch(t){je&&Ve.exception(t,"Failed to clone response body")}}function ox(e){return new Promise((t,n)=>{const r=wo(()=>n(new Error("Timeout while trying to read response body")),500);cx(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function cx(e){return await e.text()}async function ux(e,t,n){try{const r=dx(e,t,n),i=QS("resource.xhr",r);JS(n.replay,i)}catch(r){je&&Ve.exception(r,"Failed to capture xhr breadcrumb")}}function lx(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=Nl(r),a=n.getResponseHeader("content-length")?ZS(n.getResponseHeader("content-length")):mx(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function dx(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:s,xhr:o}=t,{url:c,method:u,status_code:f=0,request_body_size:l,response_body_size:m}=e.data;if(!c)return null;if(!o||!Hu(c,n.networkDetailAllowUrls)||Hu(c,n.networkDetailDenyUrls)){const k=Zs(l),j=Zs(m);return{startTimestamp:i,endTimestamp:a,url:c,method:u,statusCode:f,request:k,response:j}}const g=o[Ur],_=g?xf(g.request_headers,n.networkRequestHeaders):{},T=xf(fx(o),n.networkResponseHeaders),[B,U]=n.networkCaptureBodies?Mu(s,Ve):[void 0],[J,K]=n.networkCaptureBodies?px(o):[void 0],H=_i(_,l,B),F=_i(T,m,J);return{startTimestamp:i,endTimestamp:a,url:c,method:u,statusCode:f,request:U?xu(H,U):H,response:K?xu(F,K):F}}function fx(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
511
+ `).reduce((n,r)=>{const[i,a]=r.split(": ");return a&&(n[i.toLowerCase()]=a),n},{}):{}}function px(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return hx(e.response,e.responseType)}catch(n){t.push(n)}return je&&Ve.warn("Failed to get xhr response body",...t),[void 0]}function hx(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return je&&Ve.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return je&&Ve.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function mx(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Nl(n)}catch{return}}function gx(e){const t=Ce();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s}=e.getOptions(),o={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,u)=>yx(o,c,u))}catch{}}function yx(e,t,n){if(t.data)try{_x(t)&&Ex(n)&&(lx(t,n),ux(t,n,e)),bx(t)&&vx(n)&&($F(t,n),QF(t,n,e))}catch(r){je&&Ve.exception(r,"Error when enriching network breadcrumb")}}function _x(e){return e.category==="xhr"}function bx(e){return e.category==="fetch"}function Ex(e){return e?.xhr}function vx(e){return e?.response}function Sx(e){const t=Ce();Y0(ZB(e)),Tl(YF(e)),xF(e),gx(e);const n=WF(e);Rv(n),t&&(t.on("beforeSendEvent",BF(e)),t.on("afterSendEvent",kF(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,i)=>{const a=e.getSessionId();i?.includeReplay&&e.isEnabled()&&a&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=a)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function wx(e){try{return Promise.all(Cl(e,[Tx(Mt.performance.memory)]))}catch{return[]}}function Tx(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Ix(e,t,n){return eM(e,t,{...n,setTimeoutImpl:wo})}const Dc=Ge.navigator;function Ax(){return/iPhone|iPad|iPod/i.test(Dc?.userAgent??"")||/Macintosh/i.test(Dc?.userAgent??"")&&Dc?.maxTouchPoints&&Dc?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function Ox(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){je&&Ve.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&zB(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!Ah(e,n,i))return!0;if(!i)return!1;const a=e.session;if(Cx(e,i),e.recordingMode==="buffer"&&a&&e.eventBuffer){const s=e.eventBuffer.getEarliestTimestamp();s&&(je&&Ve.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),a.started=s,e.getOptions().stickySession&&Ih(a))}return a?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function Rx(e){const t=e.getOptions();return{type:it.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function Cx(e,t){!t||!e.session||e.session.segmentId!==0||Ah(e,Rx(e),!1)}function Nx(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Mx(e,t,n,r){return ei(_v(e,jp(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function Px({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
512
+ `;if(typeof e=="string")n=`${r}${e}`;else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function kx({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:i};e.emit("preprocessEvent",r,a);const s=await Tv(e.getOptions(),r,a,t,e,$t());if(!s)return null;e.emit("postprocessEvent",s,a),s.platform=s.platform||"javascript";const o=e.getSdkMetadata(),{name:c,version:u}=o?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function Lx({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){const s=Px({recordingData:e,headers:{segment_id:n}}),{urls:o,errorIds:c,traceIds:u,initialTimestamp:f}=r,l=Ce(),m=tt(),g=l?.getTransport(),_=l?.getDsn();if(!l||!g||!_||!a.sampled)return Jr({});const T={type:u2,replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:o,replay_id:t,segment_id:n,replay_type:a.sampled},B=await kx({scope:m,client:l,replayId:t,event:T});if(!B)return l.recordDroppedEvent("event_processor","replay"),je&&Ve.log("An event processor returned `null`, will not send event."),Jr({});delete B.sdkProcessingMetadata;const U=Mx(B,s,_,l.getOptions().tunnel);let J;try{J=await g.send(U)}catch(H){const F=new Error(hh);try{F.cause=H}catch{}throw F}if(typeof J.statusCode=="number"&&(J.statusCode<200||J.statusCode>=300))throw new ew(J.statusCode);const K=Vv({},J);if(jv(K,"replay"))throw new Rh(K);return J}class ew extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Rh extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function tw(e,t={count:0,interval:m2}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Lx(e),!0}catch(i){if(i instanceof ew||i instanceof Rh)throw i;if(Iv("Replays",{_retryCount:t.count}),r&&r(i),t.count>=g2){const a=new Error(`${hh} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,s)=>{wo(async()=>{try{await tw(e,t),a(!0)}catch(o){s(o)}},t.interval)})}}const nw="__THROTTLED",Dx="__SKIPPED";function Bx(e,t,n){const r=new Map,i=o=>{const c=o-n;r.forEach((u,f)=>{f<c&&r.delete(f)})},a=()=>[...r.values()].reduce((o,c)=>o+c,0);let s=!1;return(...o)=>{const c=Math.floor(Date.now()/1e3);if(i(c),a()>=t){const f=s;return s=!0,f?Dx:nw}s=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...o)}}class Fx{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:l2,sessionIdleExpire:d2},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=Ix(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Bx((s,o)=>NF(this,s,o),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),a=r?{threshold:Math.min(y2,r),timeout:r,scrollTimeout:_2,ignoreSelector:i?i.join(","):""}:void 0;if(a&&(this.clickDetector=new VB(this,a)),je){const s=t._experiments;Ve.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{Mt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=Ir({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=Ir({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{tF(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){je&&Ve.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){je&&Ve.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",je&&Ve.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){je&&Ve.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){je&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}je&&Ve.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Md({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){je&&Ve.log("Buffering is in progress, call `flush()` to save the replay");return}je&&Ve.infoTick("Starting replay in buffer mode");const t=Md({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Gr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:h2}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Ox(this),...Ax(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{je&&Ve.log(`Stopping Replay${n?` triggered by ${n}`:""}`),XS(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,IF(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),je&&Ve.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),je&&Ve.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();je&&Ve.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Bf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Mt.location.pathname}${Mt.location.hash}${Mt.location.search}`,n=`${Mt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===nw){const i=Ir({category:"replay.throttled"});this.addUpdate(()=>!Ah(this,{type:DB,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||en(),n=t&&Qt(t),i=(n&&$e(n).data||{})[Un];if(!(!n||!i||!["route","custom"].includes(i)))return $e(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=SF({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Md({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return WS(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Mt.document.addEventListener("visibilitychange",this._handleVisibilityChange),Mt.addEventListener("blur",this._handleWindowBlur),Mt.addEventListener("focus",this._handleWindowFocus),Mt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Sx(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=mF(this)}_removeListeners(){try{Mt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Mt.removeEventListener("blur",this._handleWindowBlur),Mt.removeEventListener("focus",this._handleWindowFocus),Mt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||qS(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){je&&Ve.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:it.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=aF(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Cl(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){je&&Ve.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await wx(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await tw({replayId:t,recordingData:a,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Ce();if(r){const i=n instanceof Rh?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){je&&Ve.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const a=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(a||s){je&&Ve.log(`Session duration (${Math.floor(i/1e3)}s) is too ${a?"short":"long"}, not sending replay.`),a&&this._debouncedFlush();return}const o=this.eventBuffer;o&&this.session.segmentId===0&&!o.hasCheckout&&je&&Ve.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ih(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(o=>{const c=Nx(o.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,i=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,s=i&&r>i;if(r>a||s){const o=Ir({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(o)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Cs(e,t){return[...e,...t].join(",")}function xx({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const a=["base","iframe[srcdoc]:not([src])"],s=Cs(e,[".sentry-mask","[data-sentry-mask]"]),o=Cs(t,[]);return{maskTextSelector:s,unmaskTextSelector:o,blockSelector:Cs(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:Cs(r,[]),ignoreSelector:Cs(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Hx({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const ly='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Ux=["content-length","content-type","accept"];let dy=!1;const jx=e=>new Vx(e);class Vx{constructor({flushMinDelay:t=f2,flushMaxDelay:n=p2,minReplayDuration:r=b2,maxReplayDuration:i=Gg,stickySession:a=!0,useCompression:s=!0,workerUrl:o,_experiments:c={},maskAllText:u=!0,maskAllInputs:f=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:m=750,mutationLimit:g=1e4,slowClickTimeout:_=7e3,slowClickIgnoreSelectors:T=[],networkDetailAllowUrls:B=[],networkDetailDenyUrls:U=[],networkCaptureBodies:J=!0,networkRequestHeaders:K=[],networkResponseHeaders:H=[],mask:F=[],maskAttributes:k=["title","placeholder","aria-label"],unmask:j=[],block:te=[],unblock:L=[],ignore:G=[],maskFn:W,beforeAddRecordingEvent:z,beforeErrorSampling:ae,onError:Ee}={}){this.name="Replay";const pe=xx({mask:F,unmask:j,block:te,unblock:L,ignore:G});if(this._recordingOptions={maskAllInputs:f,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:W,maskInputFn:W,maskAttributeFn:(le,$,ve)=>Hx({maskAttributes:k,maskAllText:u,privacyOptions:pe,key:le,value:$,el:ve}),...pe,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:le=>{try{le.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,E2),maxReplayDuration:Math.min(i,Gg),stickySession:a,useCompression:s,workerUrl:o,blockAllMedia:l,maskAllInputs:f,maskAllText:u,mutationBreadcrumbLimit:m,mutationLimit:g,slowClickTimeout:_,slowClickIgnoreSelectors:T,networkDetailAllowUrls:B,networkDetailDenyUrls:U,networkCaptureBodies:J,networkRequestHeaders:fy(K),networkResponseHeaders:fy(H),beforeAddRecordingEvent:z,beforeErrorSampling:ae,onError:Ee,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ly}`:ly),this._isInitialized&&bf())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return dy}set _isInitialized(t){dy=t}afterAllSetup(t){!bf()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=Gx(this._initialOptions,t);this._replay=new Fx({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function Gx(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=Xi(n.replaysSessionSampleRate),a=Xi(n.replaysOnErrorSampleRate);return i==null&&a==null&&Ai(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function fy(e){return[...Ux,...e.map(t=>t.toLowerCase())]}function qx(){return Ce()?.getIntegrationByName("Replay")}var Wx=Object.defineProperty,zx=(e,t,n)=>t in e?Wx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,py=(e,t,n)=>zx(e,typeof t!="symbol"?t+"":t,n);class Yx{constructor(){py(this,"idNodeMap",new Map),py(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Kx(){return new Yx}function Xx(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Hf(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Hf(e.parentNode,t,n,r+1)}function hy(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Xx(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Ra=`Please stop import mirror directly. Instead of that,\r
513
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
514
+ or you can use record.mirror to access the mirror instance during recording.`;let my={map:{},getId(){return console.error(Ra),-1},getNode(){return console.error(Ra),null},removeNodeFromMap(){console.error(Ra)},has(){return console.error(Ra),!1},reset(){console.error(Ra)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(my=new Proxy(my,{get(e,t,n){return t==="map"&&console.error(Ra),Reflect.get(e,t,n)}}));function Ch(e,t,n,r,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){iw(()=>{n.set.call(this,s)},0),a&&a.set&&a.set.call(this,s)}}),()=>Ch(e,t,a||{},!0)}function Nh(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function Jx(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Ml(e,t,n,r,i){if(!e)return!1;const a=Jx(e);if(!a)return!1;const s=hy(t,n),o=Hf(a,s);let c=-1;return o<0?!1:(r&&(c=Hf(a,hy(null,r))),o>-1&&c<0?!0:o<c)}const gy={};function rw(e){const t=gy[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(i)}catch{}return gy[e]=r.bind(window)}function Li(...e){return rw("requestAnimationFrame")(...e)}function iw(...e){return rw("setTimeout")(...e)}var es=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(es||{});let iu;function Zx(e){iu=e}const Pd=e=>iu?(...n)=>{try{return e(...n)}catch(r){if(iu&&iu(r)===!0)return()=>{};throw r}}:e;var Da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qx=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Bc=0;Bc<Da.length;Bc++)Qx[Da.charCodeAt(Bc)]=Bc;var $x=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=Da[t[n]>>2],i+=Da[(t[n]&3)<<4|t[n+1]>>4],i+=Da[(t[n+1]&15)<<2|t[n+2]>>6],i+=Da[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const yy=new Map;function eH(e,t){let n=yy.get(e);return n||(n=new Map,yy.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const aw=(e,t,n)=>{if(!e||!(ow(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=eH(n,r);let a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function au(e,t,n){if(e instanceof Array)return e.map(r=>au(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=$x(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[au(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[au(e.data,t,n),e.width,e.height]};if(ow(e,t)||typeof e=="object"){const r=e.constructor.name,i=aw(e,t,n);return{rr_type:r,index:i}}}}return e}const sw=(e,t,n)=>e.map(r=>au(r,t,n)),ow=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function tH(e,t,n,r,i){const a=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const o of s)try{if(typeof t.CanvasRenderingContext2D.prototype[o]!="function")continue;const c=Nh(t.CanvasRenderingContext2D.prototype,o,function(u){return function(...f){return Ml(this.canvas,n,r,i,!0)||iw(()=>{const l=sw(f,t,this);e(this.canvas,{type:es["2D"],property:o,args:l})},0),u.apply(this,f)}});a.push(c)}catch{const c=Ch(t.CanvasRenderingContext2D.prototype,o,{set(u){e(this.canvas,{type:es["2D"],property:o,args:[u],setter:!0})}});a.push(c)}return()=>{a.forEach(o=>o())}}function nH(e){return e==="experimental-webgl"?"webgl":e}function _y(e,t,n,r,i){const a=[];try{const s=Nh(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(c,...u){if(!Ml(this,t,n,r,!0)){const f=nH(c);if("__context"in this||(this.__context=f),i&&["webgl","webgl2"].includes(f))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[c,...u])}});a.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(s=>s())}}function by(e,t,n,r,i,a,s,o){const c=[],u=Object.getOwnPropertyNames(e);for(const f of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))try{if(typeof e[f]!="function")continue;const l=Nh(e,f,function(m){return function(...g){const _=m.apply(this,g);if(aw(_,o,this),"tagName"in this.canvas&&!Ml(this.canvas,r,i,a,!0)){const T=sw(g,o,this),B={type:t,property:f,args:T};n(this.canvas,B)}return _}});c.push(l)}catch{const l=Ch(e,f,{set(m){n(this.canvas,{type:t,property:f,args:[m],setter:!0})}});c.push(l)}return c}function rH(e,t,n,r,i,a){const s=[];return s.push(...by(t.WebGLRenderingContext.prototype,es.WebGL,e,n,r,i,a,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...by(t.WebGL2RenderingContext.prototype,es.WebGL2,e,n,r,i,a,t)),()=>{s.forEach(o=>o())}}const iH='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function aH(){const e=new Blob([iH]);return URL.createObjectURL(e)}class sH{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(o,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(o)||this.pendingCanvasMutations.set(o,[]),this.pendingCanvasMutations.get(o).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:a,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&Zx(s),(a&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&Pd(()=>{a&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:a,recordCanvas:s,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(t)){if(o){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}Pd(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,i,a),s&&typeof n=="number"){const c=_y(t,r,i,a,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}Li(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(aH());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:a,type:s,width:o,height:c}=r;this.mutationCb({id:i,type:es["2D"],commands:[{property:"clearRect",args:[0,0,o,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:a}],type:s}]},0,0,o,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=Li(n)};t=Li(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const a=_y(t,n,r,i,!1),s=tH(this.processMutation.bind(this),t,n,r,i),o=rH(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{a(),s(),o()})}getCanvasElements(t,n,r){const i=[],a=s=>{s.querySelectorAll("canvas").forEach(o=>{Ml(o,t,n,r)||i.push(o)})};for(const s of this.windows){const o=s.deref();let c;try{c=o&&o.document}catch{}c&&a(c)}for(const s of this.shadowDoms){const o=s.deref();o&&a(o)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:a,blockSelector:s,unblockSelector:o,dataURLOptions:c,maxCanvasSize:u}=this.options,l=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(a,s,o)).forEach(_=>{const T=this.mirror.getId(_);if(!(!this.mirror.hasNode(_)||!_.width||!_.height||this.snapshotInProgressMap.get(T))){if(this.snapshotInProgressMap.set(T,!0),!n&&["webgl","webgl2"].includes(_.__context)){const B=_.getContext(_.__context);B?.getContextAttributes()?.preserveDrawingBuffer===!1&&B.clear(B.COLOR_BUFFER_BIT)}createImageBitmap(_).then(B=>{this.worker?.postMessage({id:T,bitmap:B,width:_.width,height:_.height,dataURLOptions:c,maxCanvasSize:u},[B])}).catch(B=>{Pd(()=>{throw this.snapshotInProgressMap.delete(T),B})()})}}),!0)}startPendingCanvasMutationFlusher(){Li(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Li(t)};Li(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Li(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(s=>{const{type:o,...c}=s;return c}),{type:a}=r[0];this.mutationCb({id:n,type:a,commands:i}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Kx();var Ey;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ey||(Ey={}));const vy={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},oH="ReplayCanvas",Fc=1280,cH=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Fc):Fc,n?Math.min(n,Fc):Fc]};let i;const a=new Promise(s=>i=s);return{name:oH,getOptions(){const{quality:s,enableManualSnapshot:o,maxCanvasSize:c}=r;return{enableManualSnapshot:o,recordCanvas:!0,getCanvasManager:u=>{const f=new sH({...u,enableManualSnapshot:o,maxCanvasSize:c,errorHandler:l=>{try{typeof l=="object"&&(l.__rrweb__=!0)}catch{}}});return i(f),f},...vy[s]||vy.medium}},async snapshot(s,o){(await a).snapshot(s,o)}}},uH=cH;function vr(e=0){return((gn()||performance.timeOrigin)+e)/1e3}function lH(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=q0(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return gn()?[...t,["http.request.redirect_start",vr(e.redirectStart)],["http.request.fetch_start",vr(e.fetchStart)],["http.request.domain_lookup_start",vr(e.domainLookupStart)],["http.request.domain_lookup_end",vr(e.domainLookupEnd)],["http.request.connect_start",vr(e.connectStart)],["http.request.secure_connection_start",vr(e.secureConnectionStart)],["http.request.connection_end",vr(e.connectEnd)],["http.request.request_start",vr(e.requestStart)],["http.request.response_start",vr(e.responseStart)],["http.request.response_end",vr(e.responseEnd)]]:t}const Sy=new WeakMap,kd=new Map,Mh={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function cw(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s,tracePropagationTargets:o,onRequestSpanStart:c}={...Mh,...t},u=typeof a=="function"?a:m=>!0,f=m=>fH(m,o),l={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(g=>{if(g.op==="http.client"){const _=kd.get(g.span_id);_&&(g.timestamp=_/1e3,kd.delete(g.span_id))}}),m)),i&&RP(m=>{if(m.response){const g=Sy.get(m.response);g&&m.endTimestamp&&kd.set(g,m.endTimestamp)}}),Jp(m=>{const g=mP(m,u,f,l);if(m.response&&m.fetchData.__span&&Sy.set(m.response,m.fetchData.__span),g){const _=uw(m.fetchData.url),T=_?zi(_).host:void 0;g.setAttributes({"http.url":_,"server.address":T}),s&&wy(g),c?.(g,{headers:m.headers})}})),r&&lh(m=>{const g=pH(m,u,f,l);if(g){s&&wy(g);let _;try{_=new Headers(m.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(g,{headers:_})}})}function dH(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function wy(e){const{url:t}=$e(e).data;if(!t||typeof t!="string")return;const n=Qi("resource",({entries:r})=>{r.forEach(i=>{dH(i)&&i.name.endsWith(t)&&(lH(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function fH(e,t){const n=ra();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const a=r.origin===i;return t?ur(r.toString(),t)||a&&ur(r.pathname,t):a}else{const r=!!e.match(/^\/(?!\/)/);return t?ur(e,t):r}}function pH(e,t,n,r){const i=e.xhr,a=i?.[Ur];if(!i||i.__sentry_own_request__||!a)return;const{url:s,method:o}=a,c=vi()&&t(s);if(e.endTimestamp&&c){const T=i.__sentry_xhr_span_id__;if(!T)return;const B=r[T];B&&a.status_code!==void 0&&(zs(B,a.status_code),B.end(),delete r[T]);return}const u=uw(s),f=zi(u||s),l=s0(s),m=!!en(),g=c&&m?oa({name:`${o} ${l}`,attributes:{url:s,type:"xhr","http.method":o,"http.url":u,"server.address":f?.host,[xt]:"auto.http.browser",[Vn]:"http.client",...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new Xr;i.__sentry_xhr_span_id__=g.spanContext().spanId,r[i.__sentry_xhr_span_id__]=g,n(s)&&hH(i,vi()&&m?g:void 0);const _=Ce();return _&&_.emit("beforeOutgoingRequestSpan",g,e),g}function hH(e,t){const{"sentry-trace":n,baggage:r}=Yp({span:t});n&&mH(e,n,r)}function mH(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const i=r?.baggage;(!i||!gH(i))&&e.setRequestHeader("baggage",n)}}catch{}}function gH(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function uw(e){try{return new URL(e,xe.location.origin).href}catch{return}}function yH(){xe.document?xe.document.addEventListener("visibilitychange",()=>{const e=en();if(!e)return;const t=Qt(e);if(xe.document.hidden&&t){const n="cancelled",{op:r,status:i}=$e(t);st&&X.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:qt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):st&&X.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const _H=3600,lw="sentry_previous_trace",bH="sentry.previous_trace";function EH(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?wH():void 0;e.on("spanStart",s=>{if(Qt(s)!==s)return;const o=tt().getPropagationContext();i=vH(i,s,o),r&&SH(i)});let a=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const o=tt(),c=o.getPropagationContext();if(a&&c.parentSpanId){a=!1;return}o.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(Uf(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=Uf(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[JE]:i.sampleRate}})}function vH(e,t,n){const r=$e(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[fl])}catch{return 0}}const a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=_H&&(st&&X.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[YR]:"previous_trace"}}),t.setAttribute(bH,`${s.traceId}-${s.spanId}-${Uf(s)?1:0}`)),a)}function SH(e){try{xe.sessionStorage.setItem(lw,JSON.stringify(e))}catch(t){st&&X.warn("Could not store previous trace in sessionStorage",t)}}function wH(){try{const e=xe.sessionStorage?.getItem(lw);return JSON.parse(e)}catch{return}}function Uf(e){return e.traceFlags===1}const TH="BrowserTracing",IH={...Yc,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...Mh},AH=(e={})=>{const t={name:void 0,source:void 0},n=xe.document,{enableInp:r,enableElementTiming:i,enableLongTask:a,enableLongAnimationFrame:s,_experiments:{enableInteractions:o,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:f,idleTimeout:l,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:_,traceFetch:T,traceXHR:B,trackFetchStreamPerformance:U,shouldCreateSpanForRequest:J,enableHTTPTimings:K,ignoreResourceSpans:H,ignorePerformanceApiSpans:F,instrumentPageLoad:k,instrumentNavigation:j,detectRedirects:te,linkPreviousTrace:L,consistentTraceSampling:G,onRequestSpanStart:W}={...IH,...e};let z,ae;function Ee(pe,le,$=!0){const ve=le.op==="pageload",ge=f?f(le):le,fe=ge.attributes||{};if(le.name!==ge.name&&(fe[Un]="custom",ge.attributes=fe),!$){const ce=ia();oa({...ge,startTime:ce}).end(ce);return}t.name=ge.name,t.source=fe[Un];const Se=Sv(ge,{idleTimeout:l,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:ve,beforeSpanEnd:ce=>{z?.(),aL(ce,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:H,ignorePerformanceApiSpans:F}),Iy(pe,void 0);const He=tt(),Et=He.getPropagationContext();He.setPropagationContext({...Et,traceId:Se.spanContext().traceId,sampled:aa(Se),dsc:dr(ce)})}});Iy(pe,Se);function Xe(){n&&["interactive","complete"].includes(n.readyState)&&pe.emit("idleSpanEnableAutoFinish",Se)}ve&&n&&(n.addEventListener("readystatechange",()=>{Xe()}),Xe())}return{name:TH,setup(pe){if(dv(),z=Z1({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:pe}),r&&OL(),i&&mL(),s&&Ge.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?$1():a&&Q1(),o&&eL(),te&&n){const $=()=>{ae=Kt()};addEventListener("click",$,{capture:!0}),addEventListener("keydown",$,{capture:!0,passive:!0})}function le(){const $=Qs(pe);$&&!$e($).timestamp&&(st&&X.log(`[Tracing] Finishing current active span with op: ${$e($).op}`),$.setAttribute(gu,"cancelled"),$.end())}pe.on("startNavigationSpan",($,ve)=>{if(Ce()!==pe)return;if(ve?.isRedirect){st&&X.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),Ee(pe,{op:"navigation.redirect",...$},!1);return}le(),$t().setPropagationContext({traceId:Kr(),sampleRand:Math.random()});const ge=tt();ge.setPropagationContext({traceId:Kr(),sampleRand:Math.random()}),ge.setSDKProcessingMetadata({normalizedRequest:void 0}),Ee(pe,{op:"navigation",...$})}),pe.on("startPageLoadSpan",($,ve={})=>{if(Ce()!==pe)return;le();const ge=ve.sentryTrace||Ty("sentry-trace"),fe=ve.baggage||Ty("baggage"),Se=rv(ge,fe),Xe=tt();Xe.setPropagationContext(Se),Xe.setSDKProcessingMetadata({normalizedRequest:nh()}),Ee(pe,{op:"pageload",...$})})},afterAllSetup(pe){let le=ra();if(L!=="off"&&EH(pe,{linkPreviousTrace:L,consistentTraceSampling:G}),xe.location){if(k){const $=gn();dw(pe,{name:xe.location.pathname,startTime:$?$/1e3:void 0,attributes:{[Un]:"url",[xt]:"auto.pageload.browser"}})}j&&Tl(({to:$,from:ve})=>{if(ve===void 0&&le?.indexOf($)!==-1){le=void 0;return}le=void 0;const ge=a0($),fe=Qs(pe),Se=fe&&te&&RH(fe,ae);fw(pe,{name:ge?.pathname||xe.location.pathname,attributes:{[Un]:"url",[xt]:"auto.navigation.browser"}},{url:$,isRedirect:Se})})}_&&yH(),o&&OH(pe,l,m,g,t),r&&NL(),cw(pe,{traceFetch:T,traceXHR:B,trackFetchStreamPerformance:U,tracePropagationTargets:pe.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:J,enableHTTPTimings:K,onRequestSpanStart:W})}}};function dw(e,t,n){e.emit("startPageLoadSpan",t,n),tt().setTransactionName(t.name);const r=Qs(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function fw(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const a=tt();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...nh(),url:r}}),Qs(e)}function Ty(e){return xe.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function OH(e,t,n,r,i){const a=xe.document;let s;const o=()=>{const c="ui.action.click",u=Qs(e);if(u){const f=$e(u).op;if(["navigation","pageload"].includes(f)){st&&X.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(gu,"interactionInterrupted"),s.end(),s=void 0),!i.name){st&&X.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=Sv({name:i.name,op:c,attributes:{[Un]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};a&&addEventListener("click",o,{capture:!0})}const pw="_sentry_idleSpan";function Qs(e){return e[pw]}function Iy(e,t){Pn(e,pw,t)}const Ay=.3;function RH(e,t){const n=$e(e),r=ia(),i=n.start_timestamp;return!(r-i>Ay||t&&r-t<=Ay)}function ts(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function CH(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=ts(n);return i=>r.then(a=>i(a.transaction(t,"readwrite").objectStore(t)))}function Ph(e){return ts(e.getAllKeys())}function NH(e,t,n){return e(r=>Ph(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),ts(r.transaction)}))}function MH(e,t,n){return e(r=>Ph(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),ts(r.transaction)}))}function PH(e){return e(t=>Ph(t).then(n=>{const r=n[0];if(r!=null)return ts(t.get(r)).then(i=>(t.delete(r),ts(t.transaction).then(()=>i)))}))}function kH(e){let t;function n(){return t==null&&(t=CH(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await bu(r);await NH(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await bu(r);await MH(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await PH(n());if(r)return vC(r)}catch{}}}}function LH(e){return t=>{const n=e({...t,createStore:kH});return xe.addEventListener("online",async r=>{await n.flush()}),n}}function DH(e=fh){return LH(GN(e))}const Oy=1e6,su=String(0),BH="main",Uu=xe.navigator;let hw="",mw="",gw="",jf=Uu?.userAgent||"",yw="";const FH=Uu?.language||Uu?.languages?.[0]||"";function xH(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const Ry=Uu?.userAgentData;xH(Ry)&&Ry.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(hw=e.platform||"",gw=e.architecture||"",yw=e.model||"",mw=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];jf=`${t.brand} ${t.version}`}}).catch(e=>{});function HH(e){return!("thread_metadata"in e)}function UH(e){return HH(e)?GH(e):e}function jH(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&st&&X.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function VH(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=jH(r),a=UH(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Kt()*1e3),o=typeof r.timestamp=="number"?r.timestamp*1e3:Kt()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||pl,runtime:{name:"javascript",version:xe.navigator.userAgent},os:{name:hw,version:mw,build_number:jf},device:{locale:FH,model:yw,manufacturer:jf,architecture:gw,is_emulator:!1},debug_meta:{images:zH(n.resources)},profile:a,transactions:[{name:r.transaction||"",id:r.event_id||In(),trace_id:i,active_thread_id:su,relative_start_ns:"0",relative_end_ns:((o-s)*1e6).toFixed(0)}]}}function _w(e){return $e(e).op==="pageload"}function GH(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[su]:{name:BH}}},i=e.samples[0];if(!i)return r;const a=i.timestamp,s=gn(),o=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=o-(s||o);return e.samples.forEach((u,f)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[f]={elapsed_since_start_ns:((u.timestamp+c-a)*Oy).toFixed(0),stack_id:t,thread_id:su};return}let l=e.stacks[u.stackId];const m=[];for(;l;){m.push(l.frameId);const _=e.frames[l.frameId];_&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:_.name,abs_path:typeof _.resourceId=="number"?e.resources[_.resourceId]:void 0,lineno:_.line,colno:_.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}const g={elapsed_since_start_ns:((u.timestamp+c-a)*Oy).toFixed(0),stack_id:n,thread_id:su};r.stacks[n]=m,r.samples[f]=g,n++}),r}function qH(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function WH(e){const t=[];return Ji(e,(n,r)=>{if(r==="transaction")for(let i=1;i<n.length;i++)n[i]?.contexts?.profile?.profile_id&&t.push(n[i])}),t}function zH(e){const r=Ce()?.getOptions()?.stackParser;return r?ZC(r,e):[]}function YH(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(st&&X.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(st&&X.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function KH(e){return e.samples.length<2?(st&&X.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(st&&X.log("[Profiling] Discarding profile because it contains no frames"),!1)}let bw=!1;const Ew=3e4;function XH(e){return typeof e=="function"}function JH(){const e=xe.Profiler;if(!XH(e)){st&&X.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(Ew/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{st&&(X.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),X.log("[Profiling] Disabling profiling for current user session.")),bw=!0}}function Cy(e){if(bw)return st&&X.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return st&&X.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=Ce()?.getOptions();if(!n)return st&&X.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return YH(r)?r?(r===!0?!0:Math.random()<r)?!0:(st&&X.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(st&&X.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(st&&X.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function ZH(e,t,n,r){return KH(n)?VH(e,t,n,r):null}const Gi=new Map;function QH(){return Gi.size}function $H(e){const t=Gi.get(e);return t&&Gi.delete(e),t}function eU(e,t){if(Gi.set(e,t),Gi.size>30){const n=Gi.keys().next().value;Gi.delete(n)}}function Ny(e){let t;_w(e)&&(t=Kt()*1e3);const n=JH();if(!n)return;st&&X.log(`[Profiling] started profiling span: ${$e(e).description}`);const r=In();tt().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(c=>{if(a&&(xe.clearTimeout(a),a=void 0),st&&X.log(`[Profiling] stopped profiling of span: ${$e(e).description}`),!c){st&&X.log(`[Profiling] profiler returned null profile for: ${$e(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}eU(r,c)}).catch(c=>{st&&X.log("[Profiling] error while stopping profiler:",c)})}let a=xe.setTimeout(()=>{st&&X.log("[Profiling] max profile duration elapsed, stopping profiling for:",$e(e).description),i()},Ew);const s=e.end.bind(e);function o(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}e.end=o}const tU="BrowserProfiling",nU=()=>({name:tU,setup(e){const t=en(),n=t&&Qt(t);n&&_w(n)&&Cy(n)&&Ny(n),e.on("spanStart",r=>{r===Qt(r)&&Cy(r)&&Ny(r)}),e.on("beforeEnvelope",r=>{if(!QH())return;const i=WH(r);if(!i.length)return;const a=[];for(const s of i){const o=s?.contexts,c=o?.profile?.profile_id,u=o?.profile?.start_timestamp;if(typeof c!="string"){st&&X.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){st&&X.log("[Profiling] cannot find profile for a span without a profile context");continue}o?.profile&&delete o.profile;const f=$H(c);if(!f){st&&X.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const l=ZH(c,u,f,s);l&&a.push(l)}qH(r,a)})}}),rU=nU,iU="SpotlightBrowser",aU=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:iU,setup:()=>{st&&X.log("Using Sidecar URL",t)},processEvent:n=>cU(n)?null:n,afterAllSetup:n=>{sU(n,t)}}};function sU(e,t){const n=uh("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){X.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:bu(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(a=>{a.status>=200&&a.status<400&&(r=0)},a=>{r++,X.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",a)})})}const oU=aU;function cU(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}const uU=()=>({name:"LaunchDarkly",processEvent(e,t,n){return yo(e)}});function lU(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Ga(e,t.value),qa(e,t.value)}}}const dU=()=>({name:"OpenFeature",processEvent(e,t,n){return yo(e)}});class fU{after(t,n){Ga(n.flagKey,n.value),qa(n.flagKey,n.value)}error(t,n,r){Ga(t.flagKey,t.defaultValue),qa(t.flagKey,t.defaultValue)}}const pU=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;Tn(t,"isEnabled",hU)},processEvent(t,n,r){return yo(t)}});function hU(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Ga(n,r),qa(n,r)):st&&X.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const mU=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Ga(n.gate.name,n.gate.value),qa(n.gate.name,n.gate.value)})},processEvent(t,n,r){return yo(t)}});async function gU(){const e=Ce();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const yU="WebWorker",_U=({worker:e})=>({name:yU,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>My(t))},addWorker:t=>My(t)});function My(e){e.addEventListener("message",t=>{EU(t.data)&&(t.stopImmediatePropagation(),st&&X.log("Sentry debugId web worker message received",t.data),xe._sentryDebugIds={...t.data._sentryDebugIds,...xe._sentryDebugIds})})}function bU({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function EU(e){return zr(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&(zr(e._sentryDebugIds)||e._sentryDebugIds===void 0)}const vU=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:N0,OpenFeatureIntegrationHook:fU,SDK_VERSION:Vr,SEMANTIC_ATTRIBUTE_SENTRY_OP:Vn,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:xt,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:fl,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:Un,Scope:lr,WINDOW:xe,addBreadcrumb:Rr,addEventProcessor:Rv,addIntegration:pf,breadcrumbsIntegration:eS,browserApiErrorsIntegration:tS,browserProfilingIntegration:rU,browserSessionIntegration:nS,browserTracingIntegration:AH,buildLaunchDarklyFlagUsedHandler:lU,captureConsoleIntegration:EM,captureEvent:go,captureException:Zi,captureFeedback:o0,captureMessage:wu,captureSession:ff,chromeStackLineParser:X0,close:hN,consoleLoggingIntegration:wP,contextLinesIntegration:e2,continueTrace:BC,createTransport:Gv,createUserFeedbackEnvelope:QL,dedupeIntegration:$v,defaultRequestInstrumentationOptions:Mh,defaultStackLineParsers:Z0,defaultStackParser:Q0,diagnoseSdkConnectivity:gU,endSession:Wp,eventFiltersIntegration:Kv,eventFromException:R0,eventFromMessage:C0,exceptionFromError:bl,extraErrorDataIntegration:CM,featureFlagsIntegration:fP,feedbackAsyncIntegration:Zk,feedbackIntegration:Pg,feedbackSyncIntegration:Pg,flush:pN,forceLoad:MD,functionToStringIntegration:Yv,geckoStackLineParser:J0,getActiveSpan:en,getClient:Ce,getCurrentScope:tt,getDefaultIntegrations:oS,getFeedback:ok,getGlobalScope:dl,getIsolationScope:$t,getReplay:qx,getRootSpan:Qt,getSpanDescendants:xs,getSpanStatusFromHttpCode:ZE,getTraceData:Yp,globalHandlersIntegration:rS,graphqlClientIntegration:c2,httpClientIntegration:UD,httpContextIntegration:aS,inboundFiltersIntegration:Xv,init:ND,instrumentOutgoingRequests:cw,instrumentSupabaseClient:r0,isEnabled:Ov,isInitialized:mN,lastEventId:Av,launchDarklyIntegration:uU,lazyLoadIntegration:A0,linkedErrorsIntegration:sS,logger:i1,makeBrowserOfflineTransport:DH,makeFetchTransport:fh,makeMultiplexedTransport:zN,moduleMetadataIntegration:gM,onLoad:PD,openFeatureIntegration:dU,opera10StackLineParser:KL,opera11StackLineParser:ZL,parameterize:zv,registerSpanErrorInstrumentation:dv,registerWebWorker:bU,replayCanvasIntegration:uH,replayIntegration:jx,reportingObserverIntegration:FD,rewriteFramesIntegration:xM,sendFeedback:f0,setContext:Iv,setCurrentClient:xv,setExtra:uN,setExtras:cN,setHttpStatus:zs,setMeasurement:bv,setTag:dN,setTags:lN,setUser:fN,showReportDialog:kD,spanToBaggageHeader:fC,spanToJSON:$e,spanToTraceHeader:ov,spotlightBrowserIntegration:oU,startBrowserTracingNavigationSpan:fw,startBrowserTracingPageLoadSpan:dw,startInactiveSpan:oa,startNewTrace:xC,startSession:df,startSpan:ml,startSpanManual:DC,statsigIntegration:mU,supabaseIntegration:ZM,suppressTracing:FC,thirdPartyErrorFilterIntegration:oP,unleashIntegration:pU,updateSpanName:sC,webWorkerIntegration:_U,winjsStackLineParser:WL,withActiveSpan:ho,withIsolationScope:qR,withScope:Zn,zodErrorsIntegration:sP},Symbol.toStringTag,{value:"Module"})),Pl=e=>{typeof window<"u"&&window.Sentry&&e(vU)},{useEffect:SU}=await kn("react"),vw=(e,t)=>SU(()=>{const n=e().catch(r=>{console.error("AsyncEffect error: ",r),Pl(i=>i.captureException("AsyncEffect error: "+r.message,{extra:r}))});return function(){n.then(r=>{typeof r=="function"&&r()})}},t),{createContext:wU,useMemo:TU,useRef:IU,useState:AU}=await kn("react"),Sw=wU(null),Uj=e=>{const{writeKey:t,userId:n,traits:r,children:i}=e,a=IU(null),[s,o]=AU(!1);vw(async()=>{if(!t){console.log("[Analytics] No writeKey provided");return}const u=navigator.userAgent;if(lR(u)){console.log("[Analytics] Skipping load: bot detected");return}try{const{AnalyticsBrowser:l}=await rT(async()=>{const{AnalyticsBrowser:m}=await import("../index-BhvB7qtA.js").then(g=>g.q);return{AnalyticsBrowser:m}},__vite__mapDeps([0,1,2,3,4]));a.current=l.load({writeKey:t}),n&&a.current.identify(n,r),o(!0)}catch(l){console.error("[Analytics] Failed to initialize:",l),a.current=null}},[t,n,r]);const c=TU(()=>!a.current||!s?{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}:{isInitialized:!0,track:(u,f)=>{a.current?.track(u,f)},identify:(u,f)=>{a.current?.identify(u,f)},page:(u,f)=>{a.current?.page(u,f)}},[s]);return m_.jsx(Sw.Provider,{value:c,children:i})},{createContext:OU}=await kn("react"),ww=OU(null);function wr(e,t){var n=t&&t.cache?t.cache:LU,r=t&&t.serializer?t.serializer:PU,i=t&&t.strategy?t.strategy:NU;return i(e,{cache:n,serializer:r})}function RU(e){return e==null||typeof e=="number"||typeof e=="boolean"}function CU(e,t,n,r){var i=RU(r)?r:n(r),a=t.get(i);return typeof a>"u"&&(a=e.call(this,r),t.set(i,a)),a}function Tw(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function Iw(e,t,n,r,i){return n.bind(t,e,r,i)}function NU(e,t){var n=e.length===1?CU:Tw;return Iw(e,this,n,t.cache.create(),t.serializer)}function MU(e,t){return Iw(e,this,Tw,t.cache.create(),t.serializer)}var PU=function(){return JSON.stringify(arguments)},kU=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),LU={create:function(){return new kU}},Tr={variadic:MU},ft;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ft||(ft={}));var Pt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Pt||(Pt={}));var ns;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ns||(ns={}));function Py(e){return e.type===Pt.literal}function DU(e){return e.type===Pt.argument}function Aw(e){return e.type===Pt.number}function Ow(e){return e.type===Pt.date}function Rw(e){return e.type===Pt.time}function Cw(e){return e.type===Pt.select}function Nw(e){return e.type===Pt.plural}function BU(e){return e.type===Pt.pound}function Mw(e){return e.type===Pt.tag}function Pw(e){return!!(e&&typeof e=="object"&&e.type===ns.number)}function Vf(e){return!!(e&&typeof e=="object"&&e.type===ns.dateTime)}var kw=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,FU=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function xU(e){var t={};return e.replace(FU,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var HU=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function UU(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(HU).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],c=s.slice(1),u=0,f=c;u<f.length;u++){var l=f[u];if(l.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:c})}return n}function jU(e){return e.replace(/^(.*?)-/,"")}var ky=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Lw=/^(@+)?(\+|#+)?[rs]?$/g,VU=/(\*)(0+)|(#+)(0+)|(0+)/g,Dw=/^(0+)$/;function Ly(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Lw,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Bw(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function GU(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Dw.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Dy(e){var t={},n=Bw(e);return n||t}function qU(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=jU(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Fe(Fe(Fe({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return Fe(Fe({},c),Dy(u))},{}));continue;case"engineering":t=Fe(Fe(Fe({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return Fe(Fe({},c),Dy(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(VU,function(c,u,f,l,m,g){if(u)t.minimumIntegerDigits=f.length;else{if(l&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Dw.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ky.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ky,function(c,u,f,l,m,g){return f==="*"?t.minimumFractionDigits=u.length:l&&l[0]==="#"?t.maximumFractionDigits=l.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=Fe(Fe({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Fe(Fe({},t),Ly(a)));continue}if(Lw.test(i.stem)){t=Fe(Fe({},t),Ly(i.stem));continue}var s=Bw(i.stem);s&&(t=Fe(Fe({},t),s));var o=GU(i.stem);o&&(t=Fe(Fe({},t),o))}return t}var xc={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function WU(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var s=1+(a&1),o=a<2?1:3+(a>>1),c="a",u=zU(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)n+=c;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function zU(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=xc[r||""]||xc[n||""]||xc["".concat(n,"-001")]||xc["001"];return i[0]}var Ld,YU=new RegExp("^".concat(kw.source,"*")),KU=new RegExp("".concat(kw.source,"*$"));function ht(e,t){return{start:e,end:t}}var XU=!!String.prototype.startsWith&&"_a".startsWith("a",1),JU=!!String.fromCodePoint,ZU=!!Object.fromEntries,QU=!!String.prototype.codePointAt,$U=!!String.prototype.trimStart,e3=!!String.prototype.trimEnd,t3=!!Number.isSafeInteger,n3=t3?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Gf=!0;try{var r3=xw("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Gf=((Ld=r3.exec("a"))===null||Ld===void 0?void 0:Ld[0])==="a"}catch{Gf=!1}var By=XU?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},qf=JU?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,s;i>a;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Fy=ZU?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],s=a[0],o=a[1];n[s]=o}return n},Fw=QU?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},i3=$U?function(t){return t.trimStart()}:function(t){return t.replace(YU,"")},a3=e3?function(t){return t.trimEnd()}:function(t){return t.replace(KU,"")};function xw(e,t){return new RegExp(e,t)}var Wf;if(Gf){var xy=xw("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wf=function(t,n){var r;xy.lastIndex=n;var i=xy.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Wf=function(t,n){for(var r=[];;){var i=Fw(t,n);if(i===void 0||Hw(i)||u3(i))break;r.push(i),n+=i>=65536?2:1}return qf.apply(void 0,r)};var s3=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:Pt.pound,location:ht(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ft.UNMATCHED_CLOSING_TAG,ht(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&zf(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Pt.literal,value:"<".concat(i,"/>"),location:ht(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!zf(this.char()))return this.error(ft.INVALID_TAG,ht(o,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ft.UNMATCHED_CLOSING_TAG,ht(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Pt.tag,value:i,children:s,location:ht(r,this.clonePosition())},err:null}:this.error(ft.INVALID_TAG,ht(o,this.clonePosition())))}else return this.error(ft.UNCLOSED_TAG,ht(r,this.clonePosition()))}else return this.error(ft.INVALID_TAG,ht(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&c3(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var c=ht(r,this.clonePosition());return{val:{type:Pt.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!o3(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return qf.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),qf(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ft.EMPTY_ARGUMENT,ht(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ft.MALFORMED_ARGUMENT,ht(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Pt.argument,value:i,location:ht(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(ft.MALFORMED_ARGUMENT,ht(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Wf(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),s=ht(t,a);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(o){case"":return this.error(ft.EXPECT_ARGUMENT_TYPE,ht(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var m=a3(l.val);if(m.length===0)return this.error(ft.EXPECT_ARGUMENT_STYLE,ht(this.clonePosition(),this.clonePosition()));var g=ht(f,this.clonePosition());u={style:m,styleLocation:g}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var T=ht(i,this.clonePosition());if(u&&By(u?.style,"::",0)){var B=i3(u.style.slice(2));if(o==="number"){var l=this.parseNumberSkeletonFromString(B,u.styleLocation);return l.err?l:{val:{type:Pt.number,value:r,location:T,style:l.val},err:null}}else{if(B.length===0)return this.error(ft.EXPECT_DATE_TIME_SKELETON,T);var U=B;this.locale&&(U=WU(B,this.locale));var m={type:ns.dateTime,pattern:U,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?xU(U):{}},J=o==="date"?Pt.date:Pt.time;return{val:{type:J,value:r,location:T,style:m},err:null}}}return{val:{type:o==="number"?Pt.number:o==="date"?Pt.date:Pt.time,value:r,location:T,style:(a=u?.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var K=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ft.EXPECT_SELECT_ARGUMENT_OPTIONS,ht(K,Fe({},K)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),F=0;if(o!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ht(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),H=this.parseIdentifierIfPossible(),F=l.val}var k=this.tryParsePluralOrSelectOptions(t,o,n,H);if(k.err)return k;var _=this.tryParseArgumentClose(i);if(_.err)return _;var j=ht(i,this.clonePosition());return o==="select"?{val:{type:Pt.select,value:r,options:Fy(k.val),location:j},err:null}:{val:{type:Pt.plural,value:r,options:Fy(k.val),offset:F,pluralType:o==="plural"?"cardinal":"ordinal",location:j},err:null}}default:return this.error(ft.INVALID_ARGUMENT_TYPE,ht(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ht(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=UU(t)}catch{return this.error(ft.INVALID_NUMBER_SKELETON,n)}return{val:{type:ns.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?qU(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,s=!1,o=[],c=new Set,u=i.value,f=i.location;;){if(u.length===0){var l=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;f=ht(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ht(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,n,r);if(_.err)return _;var T=this.tryParseArgumentClose(g);if(T.err)return T;o.push([u,{value:_.val,location:ht(g,this.clonePosition())}]),c.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,f=a.location}return o.length===0?this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ht(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ft.MISSING_OTHER_CLAUSE,ht(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var c=ht(i,this.clonePosition());return a?(s*=r,n3(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Fw(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(By(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Hw(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function zf(e){return e>=97&&e<=122||e>=65&&e<=90}function o3(e){return zf(e)||e===47}function c3(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Hw(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function u3(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Yf(e){e.forEach(function(t){if(delete t.location,Cw(t)||Nw(t))for(var n in t.options)delete t.options[n].location,Yf(t.options[n].value);else Aw(t)&&Pw(t.style)||(Ow(t)||Rw(t))&&Vf(t.style)?delete t.style.location:Mw(t)&&Yf(t.children)})}function l3(e,t){t===void 0&&(t={}),t=Fe({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new s3(e,t).parse();if(n.err){var r=SyntaxError(ft[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||Yf(n.val),n.val}var Cr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Cr||(Cr={}));var Ni=function(e){pr(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Hy=function(e){pr(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Cr.INVALID_VALUE,a)||this}return t}(Ni),d3=function(e){pr(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Cr.INVALID_VALUE,i)||this}return t}(Ni),f3=function(e){pr(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Cr.MISSING_VALUE,r)||this}return t}(Ni),vn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(vn||(vn={}));function p3(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==vn.literal||n.type!==vn.literal?t.push(n):r.value+=n.value,t},[])}function h3(e){return typeof e=="function"}function ou(e,t,n,r,i,a,s){if(e.length===1&&Py(e[0]))return[{type:vn.literal,value:e[0].value}];for(var o=[],c=0,u=e;c<u.length;c++){var f=u[c];if(Py(f)){o.push({type:vn.literal,value:f.value});continue}if(BU(f)){typeof a=="number"&&o.push({type:vn.literal,value:n.getNumberFormat(t).format(a)});continue}var l=f.value;if(!(i&&l in i))throw new f3(l,s);var m=i[l];if(DU(f)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),o.push({type:typeof m=="string"?vn.literal:vn.object,value:m});continue}if(Ow(f)){var g=typeof f.style=="string"?r.date[f.style]:Vf(f.style)?f.style.parsedOptions:void 0;o.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Rw(f)){var g=typeof f.style=="string"?r.time[f.style]:Vf(f.style)?f.style.parsedOptions:r.time.medium;o.push({type:vn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Aw(f)){var g=typeof f.style=="string"?r.number[f.style]:Pw(f.style)?f.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),o.push({type:vn.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(Mw(f)){var _=f.children,T=f.value,B=i[T];if(!h3(B))throw new d3(T,"function",s);var U=ou(_,t,n,r,i,a),J=B(U.map(function(F){return F.value}));Array.isArray(J)||(J=[J]),o.push.apply(o,J.map(function(F){return{type:typeof F=="string"?vn.literal:vn.object,value:F}}))}if(Cw(f)){var K=f.options[m]||f.options.other;if(!K)throw new Hy(f.value,m,Object.keys(f.options),s);o.push.apply(o,ou(K.value,t,n,r,i));continue}if(Nw(f)){var K=f.options["=".concat(m)];if(!K){if(!Intl.PluralRules)throw new Ni(`Intl.PluralRules is not available in this environment.
515
+ Try polyfilling it using "@formatjs/intl-pluralrules"
516
+ `,Cr.MISSING_INTL_API,s);var H=n.getPluralRules(t,{type:f.pluralType}).select(m-(f.offset||0));K=f.options[H]||f.options.other}if(!K)throw new Hy(f.value,m,Object.keys(f.options),s);o.push.apply(o,ou(K.value,t,n,r,i,m-(f.offset||0)));continue}}return p3(o)}function m3(e,t){return t?Fe(Fe(Fe({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Fe(Fe({},e[r]),t[r]||{}),n},{})):e}function g3(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=m3(e[r],t[r]),n},Fe({},e)):e}function Dd(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function y3(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:wr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Hr([void 0],n,!1)))},{cache:Dd(e.number),strategy:Tr.variadic}),getDateTimeFormat:wr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Hr([void 0],n,!1)))},{cache:Dd(e.dateTime),strategy:Tr.variadic}),getPluralRules:wr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Hr([void 0],n,!1)))},{cache:Dd(e.pluralRules),strategy:Tr.variadic})}}var Uw=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=a.formatToParts(c);if(u.length===1)return u[0].value;var f=u.reduce(function(l,m){return!l.length||m.type!==vn.literal||typeof l[l.length-1]!="string"?l.push(m.value):l[l.length-1]+=m.value,l},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return ou(a.ast,a.locales,a.formatters,a.formats,c,void 0,a.message)},this.resolvedOptions=function(){var c;return{locale:((c=a.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var o=iT(s,["formatters"]);this.ast=e.__parse(t,Fe(Fe({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=g3(e.formats,r),this.formatters=i&&i.formatters||y3(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=l3,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),$i;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})($i||($i={}));var Ao=function(e){pr(t,e);function t(n,r,i){var a=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
517
+ `).concat(s?`
518
+ `.concat(s.message,`
519
+ `).concat(s.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),_3=function(e){pr(t,e);function t(n,r){return e.call(this,$i.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Ao),b3=function(e){pr(t,e);function t(n,r){return e.call(this,$i.INVALID_CONFIG,n,r)||this}return t}(Ao),Uy=function(e){pr(t,e);function t(n,r){return e.call(this,$i.MISSING_DATA,n,r)||this}return t}(Ao),Qn=function(e){pr(t,e);function t(n,r,i){var a=e.call(this,$i.FORMAT_ERROR,"".concat(n,`
520
+ Locale: `).concat(r,`
521
+ `),i)||this;return a.locale=r,a}return t}(Ao),Bd=function(e){pr(t,e);function t(n,r,i,a){var s=e.call(this,"".concat(n,`
522
+ MessageID: `).concat(i?.id,`
523
+ Default Message: `).concat(i?.defaultMessage,`
524
+ Description: `).concat(i?.description,`
525
+ `),r,a)||this;return s.descriptor=i,s.locale=r,s}return t}(Qn),E3=function(e){pr(t,e);function t(n,r){var i=e.call(this,$i.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(Ao);function v3(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}function ys(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var S3=function(e){},w3=function(e){},T3={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:S3,onWarn:w3};function jw(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Di(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function I3(e){e===void 0&&(e=jw());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=wr(function(){for(var o,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((o=Intl.DateTimeFormat).bind.apply(o,Hr([void 0],c,!1)))},{cache:Di(e.dateTime),strategy:Tr.variadic}),a=wr(function(){for(var o,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((o=Intl.NumberFormat).bind.apply(o,Hr([void 0],c,!1)))},{cache:Di(e.number),strategy:Tr.variadic}),s=wr(function(){for(var o,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((o=Intl.PluralRules).bind.apply(o,Hr([void 0],c,!1)))},{cache:Di(e.pluralRules),strategy:Tr.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:wr(function(o,c,u,f){return new Uw(o,c,u,Fe({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:s}},f||{}))},{cache:Di(e.message),strategy:Tr.variadic}),getRelativeTimeFormat:wr(function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new(t.bind.apply(t,Hr([void 0],o,!1)))},{cache:Di(e.relativeTime),strategy:Tr.variadic}),getPluralRules:s,getListFormat:wr(function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new(n.bind.apply(n,Hr([void 0],o,!1)))},{cache:Di(e.list),strategy:Tr.variadic}),getDisplayNames:wr(function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new(r.bind.apply(r,Hr([void 0],o,!1)))},{cache:Di(e.displayNames),strategy:Tr.variadic})}}function kh(e,t,n,r){var i=e&&e[t],a;if(i&&(a=i[n]),a)return a;r(new _3("No ".concat(t," format named: ").concat(n)))}function Hc(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=Fe({timeZone:t},e[r]),n},{})}function jy(e,t){var n=Object.keys(Fe(Fe({},e),t));return n.reduce(function(r,i){return r[i]=Fe(Fe({},e[i]||{}),t[i]||{}),r},{})}function Vy(e,t){if(!t)return e;var n=Uw.formats;return Fe(Fe(Fe({},n),e),{date:jy(Hc(n.date,t),Hc(e.date||{},t)),time:jy(Hc(n.time,t),Hc(e.time||{},t))})}var Gy=function(e,t,n,r,i){var a=e.locale,s=e.formats,o=e.messages,c=e.defaultLocale,u=e.defaultFormats,f=e.fallbackOnEmptyString,l=e.onError,m=e.timeZone,g=e.defaultRichTextElements;n===void 0&&(n={id:""});var _=n.id,T=n.defaultMessage;v3(!!_,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var B=String(_),U=o&&Object.prototype.hasOwnProperty.call(o,B)&&o[B];if(Array.isArray(U)&&U.length===1&&U[0].type===Pt.literal)return U[0].value;if(!r&&U&&typeof U=="string"&&!g)return U.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=Fe(Fe({},g),r||{}),s=Vy(s,m),u=Vy(u,m),!U){if(f===!1&&U==="")return U;if((!T||a&&a.toLowerCase()!==c.toLowerCase())&&l(new E3(n,a)),T)try{var J=t.getMessageFormat(T,c,u,i);return J.format(r)}catch(K){return l(new Bd('Error formatting default message for: "'.concat(B,'", rendering default message verbatim'),a,n,K)),typeof T=="string"?T:B}return B}try{var J=t.getMessageFormat(U,a,s,Fe({formatters:t},i||{}));return J.format(r)}catch(K){l(new Bd('Error formatting message: "'.concat(B,'", using ').concat(T?"default message":"id"," as fallback."),a,n,K))}if(T)try{var J=t.getMessageFormat(T,c,u,i);return J.format(r)}catch(K){l(new Bd('Error formatting the default message for: "'.concat(B,'", rendering message verbatim'),a,n,K))}return typeof U=="string"?U:typeof T=="string"?T:B},A3=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Oo(e,t,n,r){var i=e.locale,a=e.formats,s=e.onError,o=e.timeZone;r===void 0&&(r={});var c=r.format,u=Fe(Fe({},o&&{timeZone:o}),c&&kh(a,t,c,s)),f=ys(r,A3,u);return t==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f=Fe(Fe({},f),{hour:"numeric",minute:"numeric"})),n(i,f)}function O3(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return Oo(e,"date",t,s).format(o)}catch(c){e.onError(new Qn("Error formatting date.",e.locale,c))}return String(o)}function R3(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return Oo(e,"time",t,s).format(o)}catch(c){e.onError(new Qn("Error formatting time.",e.locale,c))}return String(o)}function C3(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=n[2],o=s===void 0?{}:s,c=typeof i=="string"?new Date(i||0):i,u=typeof a=="string"?new Date(a||0):a;try{return Oo(e,"dateTimeRange",t,o).formatRange(c,u)}catch(f){e.onError(new Qn("Error formatting date time range.",e.locale,f))}return String(c)}function N3(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return Oo(e,"date",t,s).formatToParts(o)}catch(c){e.onError(new Qn("Error formatting date.",e.locale,c))}return[]}function M3(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=a===void 0?{}:a,o=typeof i=="string"?new Date(i||0):i;try{return Oo(e,"time",t,s).formatToParts(o)}catch(c){e.onError(new Qn("Error formatting time.",e.locale,c))}return[]}var P3=["style","type","fallback","languageDisplay"];function k3(e,t,n,r){var i=e.locale,a=e.onError,s=Intl.DisplayNames;s||a(new Ni(`Intl.DisplayNames is not available in this environment.
526
+ Try polyfilling it using "@formatjs/intl-displaynames"
527
+ `,Cr.MISSING_INTL_API));var o=ys(r,P3);try{return t(i,o).of(n)}catch(c){a(new Qn("Error formatting display name.",i,c))}}var L3=["type","style"],qy=Date.now();function D3(e){return"".concat(qy,"_").concat(e,"_").concat(qy)}function B3(e,t,n,r){r===void 0&&(r={});var i=Vw(e,t,n,r).reduce(function(a,s){var o=s.value;return typeof o!="string"?a.push(o):typeof a[a.length-1]=="string"?a[a.length-1]+=o:a.push(o),a},[]);return i.length===1?i[0]:i.length===0?"":i}function Vw(e,t,n,r){var i=e.locale,a=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||a(new Ni(`Intl.ListFormat is not available in this environment.
528
+ Try polyfilling it using "@formatjs/intl-listformat"
529
+ `,Cr.MISSING_INTL_API));var o=ys(r,L3);try{var c={},u=Array.from(n).map(function(f,l){if(typeof f=="object"&&f!==null){var m=D3(l);return c[m]=f,m}return String(f)});return t(i,o).formatToParts(u).map(function(f){return f.type==="literal"?f:Fe(Fe({},f),{value:c[f.value]||f.value})})}catch(f){a(new Qn("Error formatting list.",i,f))}return n}var F3=["type"];function x3(e,t,n,r){var i=e.locale,a=e.onError;r===void 0&&(r={}),Intl.PluralRules||a(new Ni(`Intl.PluralRules is not available in this environment.
530
+ Try polyfilling it using "@formatjs/intl-pluralrules"
531
+ `,Cr.MISSING_INTL_API));var s=ys(r,F3);try{return t(i,s).select(n)}catch(o){a(new Qn("Error formatting plural.",i,o))}return"other"}var H3=["numeric","style"];function U3(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var s=n.format,o=!!s&&kh(i,"relative",s,a)||{},c=ys(n,H3,o);return t(r,c)}function j3(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var a=Intl.RelativeTimeFormat;a||e.onError(new Ni(`Intl.RelativeTimeFormat is not available in this environment.
532
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
533
+ `,Cr.MISSING_INTL_API));try{return U3(e,t,i).format(n,r)}catch(s){e.onError(new Qn("Error formatting relative time.",e.locale,s))}return String(n)}var V3=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Gw(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var s=n.format,o=s&&kh(i,"number",s,a)||{},c=ys(n,V3,o);return t(r,c)}function G3(e,t,n,r){r===void 0&&(r={});try{return Gw(e,t,r).format(n)}catch(i){e.onError(new Qn("Error formatting number.",e.locale,i))}return String(n)}function q3(e,t,n,r){r===void 0&&(r={});try{return Gw(e,t,r).formatToParts(n)}catch(i){e.onError(new Qn("Error formatting number.",e.locale,i))}return[]}function W3(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function z3(e){e.onWarn&&e.defaultRichTextElements&&W3(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
534
+ Please consider using "@formatjs/cli" to pre-compile your messages for performance.
535
+ For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Fd(e,t){var n=I3(t),r=Fe(Fe({},T3),e),i=r.locale,a=r.defaultLocale,s=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new Uy('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new Uy('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new b3('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),z3(r),Fe(Fe({},r),{formatters:n,formatNumber:G3.bind(null,r,n.getNumberFormat),formatNumberToParts:q3.bind(null,r,n.getNumberFormat),formatRelativeTime:j3.bind(null,r,n.getRelativeTimeFormat),formatDate:O3.bind(null,r,n.getDateTimeFormat),formatDateToParts:N3.bind(null,r,n.getDateTimeFormat),formatTime:R3.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:C3.bind(null,r,n.getDateTimeFormat),formatTimeToParts:M3.bind(null,r,n.getDateTimeFormat),formatPlural:x3.bind(null,r,n.getPluralRules),formatMessage:Gy.bind(null,r,n),$t:Gy.bind(null,r,n),formatList:B3.bind(null,r,n.getListFormat),formatListToParts:Vw.bind(null,r,n.getListFormat),formatDisplayName:k3.bind(null,r,n.getDisplayNames)})}const{useCallback:Wy,useContext:Y3,useMemo:zy,useState:K3}=await kn("react"),xd=jw(),qw=(e,t="",n={})=>(Object.entries(e).forEach(([r,i])=>{const a=t?`${t}.${r}`:r;if(typeof i=="string"){n[a]=i;return}if(i&&typeof i=="object"&&!Array.isArray(i)){qw(i,a,n);return}console.error(`Invalid translation value for key "${a}". Expected string or nested object.`)}),n),X3=e=>{const t=Y3(ww);if(!e&&!t)throw new Error("useTranslation must be used with either options or within a TranslationProvider");if(!e&&t)return t;if(e&&!e.locale)throw new Error("locale is required when using useTranslation with options");if(e&&!e.translations)throw new Error("translations is required when using useTranslation with options");const n=e,[r,i]=K3({locale:n.locale,translations:n.translations,error:null}),a=zy(()=>{const u={};return Object.entries(r.translations).forEach(([f,l])=>{u[f]=qw(l)}),u},[r.translations]),s=zy(()=>{const u=a[r.locale],f=n.fallbackLocale&&a[n.fallbackLocale];if(!u&&f)return console.error(`No translations found for locale "${r.locale}". Using fallback locale "${n.fallbackLocale}".`),Fd({locale:r.locale,messages:f},xd);if(!u)return console.error(`No translations found for locale "${r.locale}". Using empty translations.`),Fd({locale:r.locale,messages:{}},xd);const m=n.fallbackLocale&&r.locale!==n.fallbackLocale&&f?{...f,...u}:u;return Fd({locale:r.locale,messages:m},xd)},[r.locale,a,n.fallbackLocale]),o=Wy((u,f)=>s.formatMessage({id:u},f),[s]),c=Wy(u=>{if(!r.translations[u]){console.error(`Locale "${u}" not found in translations. Available locales: ${Object.keys(r.translations).join(", ")}`),i(f=>({...f,error:`Locale "${u}" not found`}));return}i(f=>({...f,locale:u,error:null}))},[r.translations]);return{t:o,intl:s,locale:r.locale,setLocale:c,error:r.error}},{useMemo:J3}=await kn("react"),jj=e=>{const{locale:t,translations:n,fallbackLocale:r,children:i}=e,a=X3({locale:t,translations:n,fallbackLocale:r}),s=J3(()=>a,[a]);return m_.jsx(ww.Provider,{value:s,children:i})};var Z3="2.0.9",Q3=500,Yy="user-agent",rs="",Ky="?",Yt={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},Mn="browser",qr="cpu",Ar="device",sr="engine",jn="os",is="result",re="name",Z="type",oe="vendor",se="version",Sn="architecture",$s="major",ne="model",cu="console",Ye="mobile",St="tablet",Jt="smarttv",Sr="wearable",Uc="xr",Bs="embedded",$3="fetcher",Ea="inapp",Lh="brands",Hi="formFactors",Dh="fullVersionList",as="platform",Bh="platformVersion",kl="bitness",Mi="sec-ch-ua",ej=Mi+"-full-version-list",tj=Mi+"-arch",nj=Mi+"-"+kl,rj=Mi+"-form-factors",ij=Mi+"-"+Ye,aj=Mi+"-"+ne,Ww=Mi+"-"+as,sj=Ww+"-version",zw=[Lh,Dh,Ye,ne,as,Bh,Sn,Hi,kl],jc="Amazon",va="Apple",Xy="ASUS",Jy="BlackBerry",Bi="Google",Zy="Huawei",Hd="Lenovo",Qy="Honor",Vc="LG",Ud="Microsoft",jd="Motorola",$y="Nvidia",e_="OnePlus",Vd="OPPO",Ns="Samsung",t_="Sharp",Ms="Sony",Gd="Xiaomi",qd="Zebra",n_="Chrome",r_="Chromium",di="Chromecast",uu="Edge",Ps="Firefox",Sa="Opera",Wd="Facebook",i_="Sogou",wa="Mobile ",Ta=" Browser",Kf="Windows",oj=typeof window!==Yt.UNDEFINED,Nn=oj&&window.navigator?window.navigator:void 0,Ui=Nn&&Nn.userAgentData?Nn.userAgentData:void 0,cj=function(e,t){var n={},r=t;if(!ju(t)){r={};for(var i in t)for(var a in t[i])r[a]=t[i][a].concat(r[a]?r[a]:[])}for(var s in e)n[s]=r[s]&&r[s].length%2===0?r[s].concat(e[s]):e[s];return n},Ll=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Xf=function(e,t){if(typeof e===Yt.OBJECT&&e.length>0){for(var n in e)if(gi(t)==gi(e[n]))return!0;return!1}return Ro(e)?gi(t)==gi(e):!1},ju=function(e,t){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||(t?ju(e[n]):!1)},Ro=function(e){return typeof e===Yt.STRING},zd=function(e){if(e){for(var t=[],n=ss(/\\?\"/g,e).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var i=Vu(n[r]).split(";v=");t[r]={brand:i[0],version:i[1]}}else t[r]=Vu(n[r]);return t}},gi=function(e){return Ro(e)?e.toLowerCase():e},Jf=function(e){return Ro(e)?ss(/[^\d\.]/g,e).split(".")[0]:void 0},jr=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];typeof n==Yt.OBJECT&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this},ss=function(e,t){return Ro(t)?t.replace(e,rs):t},ks=function(e){return ss(/\\?\"/g,e)},Vu=function(e,t){return e=ss(/^\s\s*/,String(e)),typeof t===Yt.UNDEFINED?e:e.substring(0,t)},Zf=function(e,t){if(!(!e||!t))for(var n=0,r,i,a,s,o,c;n<t.length&&!o;){var u=t[n],f=t[n+1];for(r=i=0;r<u.length&&!o&&u[r];)if(o=u[r++].exec(e),o)for(a=0;a<f.length;a++)c=o[++i],s=f[a],typeof s===Yt.OBJECT&&s.length>0?s.length===2?typeof s[1]==Yt.FUNCTION?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:s.length>=3&&(typeof s[1]===Yt.FUNCTION&&!(s[1].exec&&s[1].test)?s.length>3?this[s[0]]=c?s[1].apply(this,s.slice(2)):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:s.length==3?this[s[0]]=c?c.replace(s[1],s[2]):void 0:s.length==4?this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):void 0:s.length>4&&(this[s[0]]=c?s[3].apply(this,[c.replace(s[1],s[2])].concat(s.slice(4))):void 0)):this[s]=c||void 0;n+=2}},nr=function(e,t){for(var n in t)if(typeof t[n]===Yt.OBJECT&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Xf(t[n][r],e))return n===Ky?void 0:n}else if(Xf(t[n],e))return n===Ky?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},a_={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},s_={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},uj={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},o_={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[se,[re,wa+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[se,[re,uu+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[se,[re,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[re,se],[/opios[\/ ]+([\w\.]+)/i],[se,[re,Sa+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[se,[re,Sa+" GX"]],[/\bopr\/([\w\.]+)/i],[se,[re,Sa]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[se,[re,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[se,[re,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[re,se],[/quark(?:pc)?\/([-\w\.]+)/i],[se,[re,"Quark"]],[/\bddg\/([\w\.]+)/i],[se,[re,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[se,[re,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[se,[re,"WeChat"]],[/konqueror\/([\w\.]+)/i],[se,[re,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[se,[re,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[se,[re,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[se,[re,"Smart "+Hd+Ta]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[re,/(.+)/,"$1 Secure"+Ta],se],[/norton\/([\w\.]+)/i],[se,[re,"Norton Private"+Ta]],[/\bfocus\/([\w\.]+)/i],[se,[re,Ps+" Focus"]],[/ mms\/([\w\.]+)$/i],[se,[re,Sa+" Neon"]],[/ opt\/([\w\.]+)$/i],[se,[re,Sa+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[se,[re,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[se,[re,"Dolphin"]],[/coast\/([\w\.]+)/i],[se,[re,Sa+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[se,[re,"MIUI"+Ta]],[/fxios\/([\w\.-]+)/i],[se,[re,wa+Ps]],[/\bqihoobrowser\/?([\w\.]*)/i],[se,[re,"360"]],[/\b(qq)\/([\w\.]+)/i],[[re,/(.+)/,"$1Browser"],se],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[re,/(.+)/,"$1"+Ta],se],[/samsungbrowser\/([\w\.]+)/i],[se,[re,Ns+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[se,[re,i_+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[re,i_+" Mobile"],se],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[re,se],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[re],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[se,re],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[re,Wd],se,[Z,Ea]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[re,se,[Z,Ea]],[/\bgsa\/([\w\.]+) .*safari\//i],[se,[re,"GSA"],[Z,Ea]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[se,[re,"TikTok"],[Z,Ea]],[/\[(linkedin)app\]/i],[re,[Z,Ea]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[re,/(.+)/,"Zalo"],se,[Z,Ea]],[/(chromium)[\/ ]([-\w\.]+)/i],[re,se],[/ome-(lighthouse)$/i],[re,[Z,$3]],[/headlesschrome(?:\/([\w\.]+)| )/i],[se,[re,n_+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[se,[re,uu+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[re,n_+" WebView"],se],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[se,[re,"Android"+Ta]],[/chrome\/([\w\.]+) mobile/i],[se,[re,wa+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[re,se],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[se,[re,wa+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[re,wa+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[se,re],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[re,[se,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[re,se],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[re,wa+Ps],se],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[re,"Netscape"],se],[/(wolvic|librewolf)\/([\w\.]+)/i],[re,se],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[se,[re,Ps+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[re,[se,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[re,[se,/[^\d\.]+./,rs]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Sn,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Sn,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Sn,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Sn,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Sn,"arm"]],[/ sun4\w[;\)]/i],[[Sn,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[Sn,/ower/,rs,gi]],[/mc680.0/i],[[Sn,"68k"]],[/winnt.+\[axp/i],[[Sn,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[ne,[oe,Ns],[Z,St]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[ne,[oe,Ns],[Z,Ye]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[ne,[oe,va],[Z,Ye]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[ne,[oe,va],[Z,St]],[/(macintosh);/i],[ne,[oe,va]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[ne,[oe,t_],[Z,Ye]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[ne,[oe,Qy],[Z,St]],[/honor([-\w ]+)[;\)]/i],[ne,[oe,Qy],[Z,Ye]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[ne,[oe,Zy],[Z,St]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[ne,[oe,Zy],[Z,Ye]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[ne,/_/g," "],[oe,Gd],[Z,St]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[ne,/_/g," "],[oe,Gd],[Z,Ye]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[ne,[oe,e_],[Z,Ye]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[ne,[oe,Vd],[Z,Ye]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[ne,[oe,nr,{OnePlus:["203","304","403","404","413","415"],"*":Vd}],[Z,St]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[ne,[oe,"BLU"],[Z,Ye]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[ne,[oe,"Vivo"],[Z,Ye]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[ne,[oe,"Realme"],[Z,Ye]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[ne,[oe,Hd],[Z,St]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[ne,[oe,Hd],[Z,Ye]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[ne,[oe,jd],[Z,Ye]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[ne,[oe,jd],[Z,St]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[ne,[oe,Vc],[Z,St]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[ne,[oe,Vc],[Z,Ye]],[/(nokia) (t[12][01])/i],[oe,ne,[Z,St]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[ne,/_/g," "],[Z,Ye],[oe,"Nokia"]],[/(pixel (c|tablet))\b/i],[ne,[oe,Bi],[Z,St]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[ne,[oe,Bi],[Z,Ye]],[/(google) (pixelbook( go)?)/i],[oe,ne],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[ne,[oe,Ms],[Z,Ye]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[ne,"Xperia Tablet"],[oe,Ms],[Z,St]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[ne,[oe,jc],[Z,St]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[ne,/(.+)/g,"Fire Phone $1"],[oe,jc],[Z,Ye]],[/(playbook);[-\w\),; ]+(rim)/i],[ne,oe,[Z,St]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[ne,[oe,Jy],[Z,Ye]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[ne,[oe,Xy],[Z,St]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[ne,[oe,Xy],[Z,Ye]],[/(nexus 9)/i],[ne,[oe,"HTC"],[Z,St]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[oe,[ne,/_/g," "],[Z,Ye]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[ne,[oe,"TCL"],[Z,St]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[ne,[oe,"TCL"],[Z,Ye]],[/(itel) ((\w+))/i],[[oe,gi],ne,[Z,nr,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[ne,[oe,"Acer"],[Z,St]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[ne,[oe,"Meizu"],[Z,Ye]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[ne,[oe,"Ulefone"],[Z,Ye]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[ne,[oe,"Energizer"],[Z,Ye]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[ne,[oe,"Cat"],[Z,Ye]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[ne,[oe,"Smartfren"],[Z,Ye]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[ne,[oe,"Nothing"],[Z,Ye]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[ne,[oe,"Archos"],[Z,St]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[ne,[oe,"Archos"],[Z,Ye]],[/; (n159v)/i],[ne,[oe,"HMD"],[Z,Ye]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[oe,ne,[Z,St]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[oe,ne,[Z,Ye]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[oe,ne,[Z,St]],[/(surface duo)/i],[ne,[oe,Ud],[Z,St]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[ne,[oe,"Fairphone"],[Z,Ye]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[ne,[oe,$y],[Z,St]],[/(sprint) (\w+)/i],[oe,ne,[Z,Ye]],[/(kin\.[onetw]{3})/i],[[ne,/\./g," "],[oe,Ud],[Z,Ye]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[ne,[oe,qd],[Z,St]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[ne,[oe,qd],[Z,Ye]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[oe,[Z,Jt]],[/hbbtv.+maple;(\d+)/i],[[ne,/^/,"SmartTV"],[oe,Ns],[Z,Jt]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[oe,ne,[Z,Jt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[oe,Vc],[Z,Jt]],[/(apple) ?tv/i],[oe,[ne,va+" TV"],[Z,Jt]],[/crkey.*devicetype\/chromecast/i],[[ne,di+" Third Generation"],[oe,Bi],[Z,Jt]],[/crkey.*devicetype\/([^/]*)/i],[[ne,/^/,"Chromecast "],[oe,Bi],[Z,Jt]],[/fuchsia.*crkey/i],[[ne,di+" Nest Hub"],[oe,Bi],[Z,Jt]],[/crkey/i],[[ne,di],[oe,Bi],[Z,Jt]],[/(portaltv)/i],[ne,[oe,Wd],[Z,Jt]],[/droid.+aft(\w+)( bui|\))/i],[ne,[oe,jc],[Z,Jt]],[/(shield \w+ tv)/i],[ne,[oe,$y],[Z,Jt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[ne,[oe,t_],[Z,Jt]],[/(bravia[\w ]+)( bui|\))/i],[ne,[oe,Ms],[Z,Jt]],[/(mi(tv|box)-?\w+) bui/i],[ne,[oe,Gd],[Z,Jt]],[/Hbbtv.*(technisat) (.*);/i],[oe,ne,[Z,Jt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[oe,/.+\/(\w+)/,"$1",nr,{LG:"lge"}],[ne,Vu],[Z,Jt]],[/(playstation \w+)/i],[ne,[oe,Ms],[Z,cu]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[ne,[oe,Ud],[Z,cu]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[oe,nr,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],ne,[Z,cu]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[ne,[oe,Ns],[Z,Sr]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[oe,ne,[Z,Sr]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[ne,[oe,Vd],[Z,Sr]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[ne,[oe,va],[Z,Sr]],[/(opwwe\d{3})/i],[ne,[oe,e_],[Z,Sr]],[/(moto 360)/i],[ne,[oe,jd],[Z,Sr]],[/(smartwatch 3)/i],[ne,[oe,Ms],[Z,Sr]],[/(g watch r)/i],[ne,[oe,Vc],[Z,Sr]],[/droid.+; (wt63?0{2,3})\)/i],[ne,[oe,qd],[Z,Sr]],[/droid.+; (glass) \d/i],[ne,[oe,Bi],[Z,Uc]],[/(pico) ([\w ]+) os\d/i],[oe,ne,[Z,Uc]],[/(quest( \d| pro)?s?).+vr/i],[ne,[oe,Wd],[Z,Uc]],[/mobile vr; rv.+firefox/i],[[Z,Uc]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[oe,[Z,Bs]],[/(aeobc)\b/i],[ne,[oe,jc],[Z,Bs]],[/(homepod).+mac os/i],[ne,[oe,va],[Z,Bs]],[/windows iot/i],[[Z,Bs]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[ne,[Z,Jt]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[Z,Jt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[ne,[Z,nr,{mobile:"Mobile",xr:"VR","*":St}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[Z,St]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[Z,Ye]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[ne,[oe,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[se,[re,uu+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[re,se],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[se,[re,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[re,se],[/ladybird\//i],[[re,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[se,re]],os:[[/(windows nt) (6\.[23]); arm/i],[[re,/N/,"R"],[se,nr,a_]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[re,se],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[se,/(;|\))/g,"",nr,a_],[re,Kf]],[/(windows ce)\/?([\d\.]*)/i],[re,se],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[se,/_/g,"."],[re,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[re,"macOS"],[se,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[se,[re,di+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[se,[re,di+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[se,[re,di+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[se,[re,di+" Linux"]],[/crkey\/([\d\.]+)/i],[se,[re,di]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[se,re],[/(ubuntu) ([\w\.]+) like android/i],[[re,/(.+)/,"$1 Touch"],se],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[re,se],[/\(bb(10);/i],[se,[re,Jy]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[se,[re,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[se,[re,Ps+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[se,[re,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[se,nr,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[re,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[se,[re,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[se,[re,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[se,[re,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[re,se],[/(sunos) ?([\d\.]*)/i],[[re,"Solaris"],se],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[re,se]]},Gc=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return jr.call(e.init,[[Mn,[re,se,$s,Z]],[qr,[Sn]],[Ar,[Z,ne,oe]],[sr,[re,se]],[jn,[re,se]]]),jr.call(e.isIgnore,[[Mn,[se,$s]],[sr,[se]],[jn,[se]]]),jr.call(e.isIgnoreRgx,[[Mn,/ ?browser$/i],[jn,/ ?os$/i]]),jr.call(e.toString,[[Mn,[re,se]],[qr,[Sn]],[Ar,[oe,ne]],[sr,[re,se]],[jn,[re,se]]]),e}(),lj=function(e,t){var n=Gc.init[t],r=Gc.isIgnore[t]||0,i=Gc.isIgnoreRgx[t]||0,a=Gc.toString[t]||0;function s(){jr.call(this,n)}return s.prototype.getItem=function(){return e},s.prototype.withClientHints=function(){return Ui?Ui.getHighEntropyValues(zw).then(function(o){return e.setCH(new Yw(o,!1)).parseCH().get()}):e.parseCH().get()},s.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=is&&(s.prototype.is=function(o){var c=!1;for(var u in this)if(this.hasOwnProperty(u)&&!Xf(r,u)&&gi(i?ss(i,this[u]):this[u])==gi(i?ss(i,o):o)){if(c=!0,o!=Yt.UNDEFINED)break}else if(o==Yt.UNDEFINED&&c){c=!c;break}return c},s.prototype.toString=function(){var o=rs;for(var c in a)typeof this[a[c]]!==Yt.UNDEFINED&&(o+=(o?" ":rs)+this[a[c]]);return o||Yt.UNDEFINED}),s.prototype.then=function(o){var c=this,u=function(){for(var l in c)c.hasOwnProperty(l)&&(this[l]=c[l])};u.prototype={is:s.prototype.is,toString:s.prototype.toString,withClientHints:s.prototype.withClientHints,withFeatureCheck:s.prototype.withFeatureCheck};var f=new u;return o(f),f},new s};function Yw(e,t){if(e=e||{},jr.call(this,zw),t)jr.call(this,[[Lh,zd(e[Mi])],[Dh,zd(e[ej])],[Ye,/\?1/.test(e[ij])],[ne,ks(e[aj])],[as,ks(e[Ww])],[Bh,ks(e[sj])],[Sn,ks(e[tj])],[Hi,zd(e[rj])],[kl,ks(e[nj])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==Yt.UNDEFINED&&(this[n]=e[n])}function wi(e,t,n,r){return jr.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",n],["data",lj(this,e)]]),this}wi.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data};wi.prototype.set=function(e,t){return this.data[e]=t,this};wi.prototype.setCH=function(e){return this.uaCH=e,this};wi.prototype.detectFeature=function(){if(Nn&&Nn.userAgent==this.ua)switch(this.itemType){case Mn:Nn.brave&&typeof Nn.brave.isBrave==Yt.FUNCTION&&this.set(re,"Brave");break;case Ar:!this.get(Z)&&Ui&&Ui[Ye]&&this.set(Z,Ye),this.get(ne)=="Macintosh"&&Nn&&typeof Nn.standalone!==Yt.UNDEFINED&&Nn.maxTouchPoints&&Nn.maxTouchPoints>2&&this.set(ne,"iPad").set(Z,St);break;case jn:!this.get(re)&&Ui&&Ui[as]&&this.set(re,Ui[as]);break;case is:var e=this.data,t=function(n){return e[n].getItem().detectFeature().get()};this.set(Mn,t(Mn)).set(qr,t(qr)).set(Ar,t(Ar)).set(sr,t(sr)).set(jn,t(jn))}return this};wi.prototype.parseUA=function(){switch(this.itemType!=is&&Zf.call(this.data,this.ua,this.rgxMap),this.itemType){case Mn:this.set($s,Jf(this.get(se)));break;case jn:if(this.get(re)=="iOS"&&this.get(se)=="18.6"){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(se,e[1])}break}return this};wi.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case Mn:case sr:var n=e[Dh]||e[Lh],r;if(n)for(var i=0;i<n.length;i++){var a=n[i].brand||n[i],s=n[i].version;this.itemType==Mn&&!/not.a.brand/i.test(a)&&(!r||/Chrom/.test(r)&&a!=r_||r==uu&&/WebView2/.test(a))&&(a=nr(a,uj),r=this.get(re),r&&!/Chrom/.test(r)&&/Chrom/.test(a)||this.set(re,a).set(se,s).set($s,Jf(s)),r=a),this.itemType==sr&&a==r_&&this.set(se,s)}break;case qr:var o=e[Sn];o&&(o&&e[kl]=="64"&&(o+="64"),Zf.call(this.data,o+";",t));break;case Ar:if(e[Ye]&&this.set(Z,Ye),e[ne]&&(this.set(ne,e[ne]),!this.get(Z)||!this.get(oe))){var c={};Zf.call(c,"droid 9; "+e[ne]+")",t),!this.get(Z)&&c.type&&this.set(Z,c.type),!this.get(oe)&&c.vendor&&this.set(oe,c.vendor)}if(e[Hi]){var u;if(typeof e[Hi]!="string")for(var f=0;!u&&f<e[Hi].length;)u=nr(e[Hi][f++],s_);else u=nr(e[Hi],s_);this.set(Z,u)}break;case jn:var l=e[as];if(l){var m=e[Bh];l==Kf&&(m=parseInt(Jf(m),10)>=13?"11":"10"),this.set(re,l).set(se,m)}this.get(re)==Kf&&e[ne]=="Xbox"&&this.set(re,"Xbox").set(se,void 0);break;case is:var g=this.data,_=function(T){return g[T].getItem().setCH(e).parseCH().get()};this.set(Mn,_(Mn)).set(qr,_(qr)).set(Ar,_(Ar)).set(sr,_(sr)).set(jn,_(jn))}return this};function fr(e,t,n){if(typeof e===Yt.OBJECT?(ju(e,!0)?(typeof t===Yt.OBJECT&&(n=t),t=e):(n=e,t=void 0),e=void 0):typeof e===Yt.STRING&&!ju(t,!0)&&(n=t,t=void 0),n)if(typeof n.append===Yt.FUNCTION){var r={};n.forEach(function(f,l){r[String(l).toLowerCase()]=f}),n=r}else{var i={};for(var a in n)n.hasOwnProperty(a)&&(i[String(a).toLowerCase()]=n[a]);n=i}if(!(this instanceof fr))return new fr(e,t,n).getResult();var s=typeof e===Yt.STRING?e:n&&n[Yy]?n[Yy]:Nn&&Nn.userAgent?Nn.userAgent:rs,o=new Yw(n,!0),c=t?cj(o_,t):o_,u=function(f){return f==is?function(){return new wi(f,s,c,o).set("ua",s).set(Mn,this.getBrowser()).set(qr,this.getCPU()).set(Ar,this.getDevice()).set(sr,this.getEngine()).set(jn,this.getOS()).get()}:function(){return new wi(f,s,c[f],o).parseUA().get()}};return jr.call(this,[["getBrowser",u(Mn)],["getCPU",u(qr)],["getDevice",u(Ar)],["getEngine",u(sr)],["getOS",u(jn)],["getResult",u(is)],["getUA",function(){return s}],["setUA",function(f){return Ro(f)&&(s=Vu(f,Q3)),this}]]).setUA(s),this}fr.VERSION=Z3;fr.BROWSER=Ll([re,se,$s,Z]);fr.CPU=Ll([Sn]);fr.DEVICE=Ll([ne,oe,Z,cu,Ye,Jt,St,Sr,Bs]);fr.ENGINE=fr.OS=Ll([re,se]);const dj=Object.freeze({"68K":"68k",ALPHA:"alpha",ARM:"arm",ARM_64:"arm64",ARM_HF:"armhf",AVR:"avr",AVR_32:"avr32",IA64:"ia64",IRIX:"irix",IRIX_64:"irix64",MIPS:"mips",MIPS_64:"mips64",PA_RISC:"pa-risc",PPC:"ppc",SPARC:"sparc",SPARC_64:"sparc64",X86:"ia32",X86_64:"amd64"}),fj=Object.freeze({AIX:"AIX",AMIGA_OS:"Amiga OS",ANDROID:"Android",ANDROID_X86:"Android-x86",ARCAOS:"ArcaOS",ARCH:"Arch",BADA:"Bada",BEOS:"BeOS",BLACKBERRY:"BlackBerry",CENTOS:"CentOS",CHROME_OS:"Chrome OS",CHROMECAST:"Chromecast",CHROMECAST_ANDROID:"Chromecast Android",CHROMECAST_FUCHSIA:"Chromecast Fuchsia",CHROMECAST_LINUX:"Chromecast Linux",CHROMECAST_SMARTSPEAKER:"Chromecast SmartSpeaker",CONTIKI:"Contiki",DEBIAN:"Debian",DEEPIN:"Deepin",DRAGONFLY:"DragonFly",ELEMENTARY_OS:"elementary OS",FEDORA:"Fedora",FIREFOX_OS:"Firefox OS",FREEBSD:"FreeBSD",FUCHSIA:"Fuchsia",GENTOO:"Gentoo",GHOSTBSD:"GhostBSD",GNU:"GNU",HAIKU:"Haiku",HARMONYOS:"HarmonyOS",HP_UX:"HP-UX",HURD:"Hurd",IOS:"iOS",JOLI:"Joli",KAIOS:"KaiOS",KNOPPIX:"Knoppix",KUBUNTU:"Kubuntu",LINPUS:"Linpus",LINSPIRE:"Linspire",LINUX:"Linux",MACOS:"macOS",MAEMO:"Maemo",MAGEIA:"Mageia",MANDRIVA:"Mandriva",MANJARO:"Manjaro",MEEGO:"MeeGo",MINIX:"Minix",MINT:"Mint",MORPH_OS:"Morph OS",NETBSD:"NetBSD",NETRANGE:"NetRange",NETTV:"NetTV",NINTENDO:"Nintendo",OPENHARMONY:"OpenHarmony",OPENBSD:"OpenBSD",OPENVMS:"OpenVMS",OS2:"OS/2",PALM:"Palm",PC_BSD:"PC-BSD",PCLINUXOS:"PCLinuxOS",PICO:"Pico",PLAN9:"Plan9",PLAYSTATION:"PlayStation",QNX:"QNX",RASPBIAN:"Raspbian",REDHAT:"RedHat",RIM_TABLET_OS:"RIM Tablet OS",RISC_OS:"RISC OS",SABAYON:"Sabayon",SAILFISH:"Sailfish",SERENITYOS:"SerenityOS",SERIES40:"Series40",SLACKWARE:"Slackware",SOLARIS:"Solaris",SUSE:"SUSE",SYMBIAN:"Symbian",TIZEN:"Tizen",UBUNTU:"Ubuntu",UBUNTU_TOUCH:"Ubuntu Touch",UNIX:"Unix",VECTORLINUX:"VectorLinux",VEGA_OS:"Vega OS",WATCHOS:"watchOS",WEBOS:"WebOS",WINDOWS:"Windows",WINDOWS_CE:"Windows CE",WINDOWS_IOT:"Windows IoT",WINDOWS_MOBILE:"Windows Mobile",WINDOWS_PHONE:"Windows Phone",WINDOWS_RT:"Windows RT",XBOX:"Xbox",XUBUNTU:"Xubuntu",ZENWALK:"Zenwalk"}),pj=e=>{const{os:t,cpu:n}=typeof e!="string"?e:{os:new fr(e).getOS(),cpu:new fr(e).getCPU()};if(t.is(fj.MACOS)){if(n.is(dj.ARM))return!0;if(typeof window<"u")try{const r=document.createElement("canvas"),i=r.getContext("webgl2")||r.getContext("webgl")||r.getContext("experimental-webgl");return i.getParameter(i.getExtension("WEBGL_debug_renderer_info").UNMASKED_RENDERER_WEBGL).match(/apple m\d/i)}catch{return!1}}return!1},{useState:c_}=await kn("react"),Ia="Unknown";let Yd,Kd=!1;function Vj(){const[e,t]=c_(!Kd),[n,r]=c_(Yd);return vw(async()=>{if(Kd)return;t(!0);const i=new fr(navigator.userAgent),a=i.getResult(),s={name:a.browser.name??Ia,version:a.browser.version??Ia},o={name:a.engine.name??Ia,version:a.engine.version??Ia},[c,u,f]=await Promise.all([a.withClientHints(),i.getOS().withClientHints(),i.getCPU().withClientHints()]),l={name:u.name??Ia,version:u.version??Ia};let m;f.architecture?m=f.architecture:m=l.name==="macOS"&&pj(c)?"arm64":"Unknown";const g={browser:s,engine:o,os:l,cpu:{architecture:m},mobile:i.getDevice().is("mobile"),tablet:i.getDevice().is("tablet")};Yd=g,Kd=!0,r(g),t(!1)},[]),[e,Yd??n]}const{useContext:hj}=await kn("react"),mj=()=>{const e=hj(Sw);if(!e)throw new Error("useAnalytics must be used within AnalyticsProvider");return e.isInitialized?{isInitialized:!0,track:e.track,identify:e.identify,page:e.page}:{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}},{useCallback:u_,useEffect:l_,useMemo:gj,useState:yj}=await kn("react"),Gj=()=>({version:0,loading:!1,time:0,error:null,loaded:!1,reload:()=>{},set:()=>{}}),_j=(e,t=[],n={})=>{const[r,i]=yj({version:0,loading:!1,value:n.initialValue??null,time:0,error:null}),a=u_(()=>{n.callWithTruthyDeps&&t.some(c=>!c)||i(c=>({...c,loading:!0,version:c.version+1}))},[r,n.callWithTruthyDeps,...t]);l_(()=>{a()},t),l_(()=>{if(!r.loading)return;let c=!1;const u=!1,f=Date.now();return Promise.resolve().then(()=>e()).then(l=>{c||i(m=>({...m,value:l,error:null,loading:u,time:Date.now()-f}))}).catch(l=>{console.error(l),Pl(m=>m.captureException(l)),!c&&i(m=>({...m,value:m.value,error:l,loading:u,time:Date.now()-f}))}),()=>{c=!0}},[r]);const s=u_(c=>{const u=typeof c=="function"?c(r.value):c;i(f=>({...f,value:u}))},[r]),o=gj(()=>({version:r.version,loading:r.loading,error:r.error,time:r.time,loaded:r.version!==0,reload:a,set:s}),[r,a,s]);return[r.value,o]},qj=_j,{useCallback:bj,useEffect:Ej,useState:vj}=await kn("react"),Wj=(e,t)=>{const[{loading:n,args:r},i]=vj({loading:!1,args:null});Ej(()=>{if(!n||r===null)return;let s=!1;return Promise.resolve().then(()=>e(...r)).then(()=>{s||i({loading:!1,args:null})}).catch(o=>{console.error(o),Pl(c=>c.captureException(o)),!s&&i({loading:!1,args:null})}),()=>{s=!0}},[n]);const a=bj((...s)=>{i({loading:!0,args:s})},[n,r,...t]);return[n,a]},{useCallback:Sj,useMemo:wj,useState:Tj}=await kn("react"),zj=(e,t)=>{const[n,r]=Tj([]),i=wj(()=>n.map(([s])=>s),[n]),a=Sj((s,...o)=>{if(n.find(([u])=>u===s))return;const c=Promise.resolve().then(()=>e(s,...o)).then(()=>{r(u=>u.filter(([f])=>f!==s))}).catch(u=>{console.error(u),Pl(f=>f.captureException(u)),r(f=>f.filter(([l])=>l!==s))});r(u=>[...u,[s,c]])},[n,...t]);return[i,a]},{useEffect:d_,useRef:f_}=await kn("react"),Yj=({onLoadMore:e,hasMore:t,isLoading:n,threshold:r=500,debounceMs:i=500})=>{const a=f_(e),s=f_(0);d_(()=>{a.current=e},[e]),d_(()=>{const o=()=>{const u=Date.now();if(u-s.current<i)return;const f=document.documentElement.scrollHeight,l=document.documentElement.scrollTop,m=document.documentElement.clientHeight;f-(l+m)<r&&t&&!n&&(s.current=u,a.current())};window.addEventListener("scroll",o,{passive:!0});const c=setTimeout(o,500);return()=>{window.removeEventListener("scroll",o),clearTimeout(c)}},[t,n,r,i])};var Qf;(function(e){e.NEWEST="newest",e.READ="read"})(Qf||(Qf={}));const Ij=(e,t)=>{try{const n=localStorage.getItem(e);return n===null?t:JSON.parse(n)}catch{return t}},Kw=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch{}},Kj=e=>{try{localStorage.removeItem(e)}catch{}},{useCallback:Ls,useEffect:qc,useMemo:Aj,useRef:p_,useState:Xd}=await kn("react"),Oj=6e4,$f="dcl_notifications_onboarding",Rj=()=>{const e=Ij($f,null);return e===null?(Kw($f,!0),!0):e},h_=()=>{Kw($f,!1)},Xj=e=>{const{identity:t,isNotificationsEnabled:n,notificationsUrl:r,availableNotificationTypes:i,queryIntervalMs:a=Oj,initialActiveTab:s=Qf.NEWEST,onError:o,renderProfile:c}=e,[u,f]=Xd({isLoading:!1,notifications:[]}),[l,m]=Xd(()=>({activeTab:s,isOnboarding:Rj(),isOpen:!1})),[g,_]=Xd(null),T=p_([]),B=p_(null);qc(()=>{T.current=u.notifications},[u.notifications]),qc(()=>{B.current=g},[g]);const U=Aj(()=>i?new Set(i):null,[i]),J=Ls(j=>Promise.resolve().then(()=>j.getNotifications()).then(te=>{const L=U?te.filter(W=>U.has(W.type)):te,G=L.some(W=>W.read);f(W=>({...W,isLoading:!1,notifications:L})),G&&(h_(),m(W=>W.isOnboarding?{...W,isOnboarding:!1}:W))}).catch(te=>{const L=te instanceof Error?te:new Error("Unknown error");console.error("Error fetching notifications:",L),o&&o(L),f(G=>({...G,isLoading:!1}))}),[U,o]);qc(()=>{if(!t){_(null);return}if(!r){const W=new Error("notificationsUrl is required");console.error("Notifications URL missing:",W),o&&o(W),_(null);return}const j=sR(t,{url:r});if(_(j),!n)return;let te=!1;f(W=>({...W,isLoading:!0}));const L=()=>{te||J(j)};L();const G=setInterval(L,a);return()=>{te=!0,clearInterval(G)}},[t,n,r,o,J,a]),qc(()=>{if(!!l.isOpen)return;const te=T.current,L=B.current;if(!L)return;const G=te.filter(z=>!z.read).map(z=>z.id);if(G.length===0)return;let W=!1;return Promise.resolve().then(()=>L.markNotificationsAsRead(G)).then(()=>{W||f(z=>({...z,notifications:z.notifications.map(ae=>({...ae,read:G.includes(ae.id)?!0:ae.read}))}))}).catch(z=>{if(W)return;const ae=z instanceof Error?z:new Error("Unknown error");console.error("Error marking notifications as read:",ae),o&&o(ae)}),()=>{W=!0}},[l.isOpen,o]);const K=Ls(()=>{h_(),m(j=>({...j,isOnboarding:!1}))},[]),H=Ls(()=>{m(j=>({...j,isOpen:!j.isOpen}))},[]),F=Ls(j=>{m(te=>({...te,activeTab:j}))},[]),k=Ls(j=>c?c(j):null,[c]);return{notifications:u.notifications,isLoading:u.isLoading,isModalOpen:l.isOpen,modalActiveTab:l.activeTab,isNotificationsOnboarding:l.isOnboarding,handleOnBegin:K,handleNotificationsOpen:H,handleOnChangeModalTab:F,handleRenderProfile:k}},{useEffect:Cj}=await kn("react"),Jj=e=>{const{page:t}=mj();Cj(()=>{t(e)},[t,e])},{useCallback:Nj,useState:Mj}=await kn("react"),Zj=e=>{const[t,n]=Mj(e),r=Nj(i=>n(a=>({...a,...i})),[]);return[t,r]};export{Sw as AnalyticsContext,Uj as AnalyticsProvider,ww as TranslationContext,jj as TranslationProvider,Rj as checkIsOnboarding,Gj as createAsyncMemoState,Gj as createAsyncStateState,sR as createNotificationsClient,Ij as getStorageItem,Kj as removeStorageItem,h_ as setOnboardingDone,Kw as setStorageItem,Vj as useAdvancedUserAgentData,mj as useAnalytics,vw as useAsyncEffect,qj as useAsyncMemo,_j as useAsyncState,Wj as useAsyncTask,zj as useAsyncTasks,Yj as useInfiniteScroll,Xj as useNotifications,Jj as usePageTracking,Zj as usePatchState,X3 as useTranslation};