@shopify/cli 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-6S5JVSRO.js +1 -0
- package/dist/analytics-E252SR3P.js +1 -0
- package/dist/assets/hydrogen/starter/package.json +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chokidar-VDIVGBZH.js → chokidar-5RWEYTNQ.js} +1 -1
- package/dist/{chunk-XU6CCL4P.js → chunk-2I62GKIH.js} +80 -80
- package/dist/{chunk-PGN5EZTI.js → chunk-2JFZ6GZC.js} +2 -2
- package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
- package/dist/chunk-2MCH43SL.js +11 -0
- package/dist/{chunk-BEXQB4RT.js → chunk-2SNT7U7B.js} +1 -1
- package/dist/{chunk-U2LQBJJL.js → chunk-2VIUGNYO.js} +1 -1
- package/dist/chunk-2Y6CYLKF.js +1 -0
- package/dist/{chunk-KHXDP3SF.js → chunk-3EHRA4LA.js} +1 -1
- package/dist/{chunk-GQG6WELZ.js → chunk-3EPQ6UOK.js} +6 -6
- package/dist/{chunk-ZHPXJRHR.js → chunk-3NO6PWNL.js} +1 -1
- package/dist/chunk-3TFUSDHY.js +370 -0
- package/dist/{chunk-SFMXFH33.js → chunk-46NA23I7.js} +1 -1
- package/dist/{chunk-C5U4NLNU.js → chunk-47URTBZF.js} +1 -1
- package/dist/chunk-4FEBSLSU.js +1 -0
- package/dist/{chunk-DCUAVLTM.js → chunk-4HB4VZJQ.js} +1 -1
- package/dist/{chunk-DU5LZYQX.js → chunk-4JARSKED.js} +1 -1
- package/dist/{chunk-IHUCBI6L.js → chunk-4KZRP2JP.js} +141 -141
- package/dist/{chunk-2GDACKZF.js → chunk-4P7PWLUN.js} +1 -1
- package/dist/{chunk-MYQQOOGA.js → chunk-4YCMEC5R.js} +1 -1
- package/dist/{chunk-Q2X7IXPQ.js → chunk-53ZA2HD3.js} +1 -1
- package/dist/{chunk-DE3WCNP6.js → chunk-57YF2UNT.js} +1 -1
- package/dist/{chunk-MOCD7GFI.js → chunk-5EFQILLF.js} +1 -1
- package/dist/chunk-5JPV3HPJ.js +1 -0
- package/dist/{chunk-OCYPWE2O.js → chunk-5LJ5H4TD.js} +1 -1
- package/dist/{chunk-JVMYTC3J.js → chunk-5Y2VD4I3.js} +1 -1
- package/dist/{chunk-YBFCDINU.js → chunk-6BX62FFE.js} +1 -1
- package/dist/{chunk-6ZMNEURG.js → chunk-6FJBCRVK.js} +1 -1
- package/dist/{chunk-2WDKXDFM.js → chunk-6Q5VRSRN.js} +1 -1
- package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
- package/dist/{chunk-BVFIJSD7.js → chunk-6SXB44CE.js} +1 -1
- package/dist/chunk-6UTUJKKC.js +16 -0
- package/dist/{chunk-E24W34C4.js → chunk-6YCGMS7X.js} +15 -15
- package/dist/chunk-72GN655L.js +1 -0
- package/dist/chunk-7CPECP5P.js +1 -0
- package/dist/{chunk-XH5FCMS5.js → chunk-7HAFBCL3.js} +1 -1
- package/dist/chunk-7XPFLQEM.js +1 -0
- package/dist/{chunk-DDVT2K7E.js → chunk-A3JE5LX3.js} +1 -1
- package/dist/{chunk-ASOT7VNB.js → chunk-AJ6VOBXU.js} +1 -1
- package/dist/{chunk-XWQ72WTQ.js → chunk-B2WK53GH.js} +1 -1
- package/dist/chunk-B34VYVGV.js +1 -0
- package/dist/chunk-B6SY4BIK.js +2 -0
- package/dist/{chunk-H7DDRARV.js → chunk-BBEHNPKK.js} +1 -1
- package/dist/{chunk-GKQ6CSJZ.js → chunk-BCTMBKAU.js} +1 -1
- package/dist/chunk-BGUHH7AW.js +10 -0
- package/dist/chunk-BOAGJ6P5.js +1 -0
- package/dist/chunk-C256W7D2.js +26 -0
- package/dist/chunk-CTNBSUVU.js +83 -0
- package/dist/{chunk-MQXSMZQZ.js → chunk-CXWLHQKA.js} +1 -1
- package/dist/chunk-DHU767C3.js +1 -0
- package/dist/{chunk-NGPJXONG.js → chunk-DKHMLETG.js} +1 -1
- package/dist/{chunk-QPJQ67GU.js → chunk-DODCPRXT.js} +144 -144
- package/dist/{chunk-QDYDB7DY.js → chunk-E3RDAVJT.js} +3 -3
- package/dist/chunk-E3RQCWSC.js +6 -0
- package/dist/{chunk-EDSKA6UB.js → chunk-EBZ6MDEM.js} +1 -1
- package/dist/chunk-ELJ7SKMH.js +1 -0
- package/dist/{chunk-FOPGI6GO.js → chunk-EQTULRM7.js} +1 -1
- package/dist/{chunk-SRAHMYWJ.js → chunk-ERCJPRN3.js} +1 -1
- package/dist/{chunk-M2AS5BWX.js → chunk-ESZS7L6O.js} +1 -1
- package/dist/{chunk-IBBFRL3Y.js → chunk-ET2O5DAS.js} +1 -1
- package/dist/chunk-EZ7EBYDT.js +684 -0
- package/dist/{chunk-AVMNXIXF.js → chunk-EZNJDFFK.js} +1 -1
- package/dist/chunk-F34LB7M4.js +20 -0
- package/dist/{chunk-QVYZZNAS.js → chunk-FE24P4UQ.js} +1 -1
- package/dist/chunk-FFSDGRAN.js +1 -0
- package/dist/{chunk-ALQKJAHP.js → chunk-FMTPUYSH.js} +1 -1
- package/dist/{chunk-IQYZAALJ.js → chunk-FPWLEGKZ.js} +1 -1
- package/dist/{chunk-APYASWBA.js → chunk-FT4HLDK7.js} +1 -1
- package/dist/{chunk-E7OLCSAL.js → chunk-G3YYMKWG.js} +1 -1
- package/dist/chunk-G7QW5OSQ.js +6 -0
- package/dist/{chunk-JO4ZHVOD.js → chunk-GCDEDRY7.js} +1 -1
- package/dist/{chunk-GAYQKMOM.js → chunk-GEE5MXHT.js} +1 -1
- package/dist/{chunk-IIHPONSQ.js → chunk-H4MYBJ6C.js} +1 -1
- package/dist/chunk-HDXBZLHH.js +8 -0
- package/dist/chunk-HSKB5OTM.js +1 -0
- package/dist/{chunk-5T3OVTF5.js → chunk-HT6MOPLW.js} +1 -1
- package/dist/chunk-HZXY7RWJ.js +19 -0
- package/dist/{chunk-WIXW233Y.js → chunk-IDAWPBJM.js} +1 -1
- package/dist/{chunk-UHJ65YFN.js → chunk-IDLDQ2JB.js} +1 -1
- package/dist/{chunk-KOB6T6NK.js → chunk-IKYZ5L3F.js} +1 -1
- package/dist/{chunk-O2PI2PYG.js → chunk-ILQXBASM.js} +1 -1
- package/dist/{chunk-O7MONSF7.js → chunk-IYU72M55.js} +1 -1
- package/dist/{chunk-JCNRQYRP.js → chunk-J3IHP46B.js} +2 -2
- package/dist/{chunk-UB5BVO76.js → chunk-J4KJQHNS.js} +1 -1
- package/dist/{chunk-3GMW7IEC.js → chunk-JHRZCUBE.js} +1 -1
- package/dist/chunk-JIBLEZ57.js +18 -0
- package/dist/{chunk-TXJEP4FB.js → chunk-JIKIYMCT.js} +1 -1
- package/dist/{chunk-MKCXLBQ4.js → chunk-JJTGHARS.js} +1 -1
- package/dist/chunk-JJZNUFPD.js +44 -0
- package/dist/{chunk-U7ZRDNZU.js → chunk-JQP3ZCAG.js} +1 -1
- package/dist/{chunk-5UXPTCSD.js → chunk-JS3X6BDT.js} +1 -1
- package/dist/{chunk-YZY4M6IH.js → chunk-K7IZMKBR.js} +1 -1
- package/dist/{chunk-5JCREGSD.js → chunk-KGZH4RFA.js} +1 -1
- package/dist/{chunk-JNEGEJH6.js → chunk-KO4FB4QU.js} +1 -1
- package/dist/chunk-KPRKIZ5M.js +3 -0
- package/dist/chunk-KUN74JD4.js +4 -0
- package/dist/chunk-KURWC4A5.js +16 -0
- package/dist/{chunk-XDEAZP2I.js → chunk-L3D2CASO.js} +1 -1
- package/dist/{chunk-P6S5YLOP.js → chunk-L7DZTIHJ.js} +1 -1
- package/dist/{chunk-QPY6WJTT.js → chunk-LBDAYBIF.js} +1 -1
- package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
- package/dist/{chunk-TDCY3BRI.js → chunk-LH3RIIOB.js} +1 -1
- package/dist/{chunk-BZAZMLII.js → chunk-LWRDNTAD.js} +1 -1
- package/dist/{chunk-MMKBIMMC.js → chunk-LWWBU7ET.js} +1 -1
- package/dist/chunk-M4BEPPA3.js +1 -0
- package/dist/chunk-M4YPMHIM.js +1 -0
- package/dist/{chunk-VSZS3FAJ.js → chunk-M5KKLAM6.js} +1 -1
- package/dist/{chunk-Q2UHGP2Z.js → chunk-MBLHXPGK.js} +1 -1
- package/dist/{chunk-3YCTWCHH.js → chunk-MDHJJVXA.js} +1 -1
- package/dist/{chunk-5U6MXSNY.js → chunk-MDXSLAIC.js} +1 -1
- package/dist/{chunk-NV5IDANV.js → chunk-NA2ERJIJ.js} +1 -1
- package/dist/chunk-NOKCVDYD.js +317 -0
- package/dist/chunk-O6XSWAP2.js +4 -0
- package/dist/{chunk-OVLTFTZW.js → chunk-OB62WVZ5.js} +1 -1
- package/dist/{chunk-UYNCJGMC.js → chunk-OT52JOML.js} +1 -1
- package/dist/chunk-OTT73YUA.js +5 -0
- package/dist/{chunk-ZVQBSXE4.js → chunk-OUUOML3D.js} +1 -1
- package/dist/{chunk-7ZLKT2TB.js → chunk-P7XC5HS2.js} +1 -1
- package/dist/{chunk-KC2TN7AR.js → chunk-PALG4SNB.js} +1 -1
- package/dist/{chunk-T5DF2GGD.js → chunk-PB37BTPE.js} +1 -1
- package/dist/{chunk-WO5YOBQ7.js → chunk-PWYRKTJ4.js} +1 -1
- package/dist/{chunk-H7PNMMDO.js → chunk-PXSX63RF.js} +1 -1
- package/dist/{chunk-QMSYJIAU.js → chunk-QDPDB5EP.js} +1 -1
- package/dist/{chunk-7XQDZF73.js → chunk-QG7TELFC.js} +1 -1
- package/dist/{chunk-OASPW2P2.js → chunk-QU5NL2QT.js} +1 -1
- package/dist/{chunk-DQE7XRCK.js → chunk-QV53BSQP.js} +1 -1
- package/dist/{chunk-CNOL26GA.js → chunk-QXXA2EQY.js} +1 -1
- package/dist/{chunk-T3AJL2M5.js → chunk-QZ5FMWZS.js} +1 -1
- package/dist/chunk-R26GJEH3.js +1 -0
- package/dist/{chunk-TDSR2X7X.js → chunk-RTW4RZWH.js} +2 -2
- package/dist/{chunk-FPCPFECH.js → chunk-SEV3S3WH.js} +1 -1
- package/dist/{chunk-YYHCPLBX.js → chunk-TAFOSPBW.js} +1 -1
- package/dist/{chunk-MCATVWHC.js → chunk-TAV2ENJY.js} +1 -1
- package/dist/{chunk-ZNWFTUFV.js → chunk-TQNALMQH.js} +1 -1
- package/dist/chunk-TR4OWSEX.js +77 -0
- package/dist/{chunk-RFDT525K.js → chunk-TUJNCWHZ.js} +1 -1
- package/dist/{chunk-2MNOWKMI.js → chunk-U564K7SX.js} +1 -1
- package/dist/chunk-UKQ7NE5V.js +1 -0
- package/dist/{chunk-ICFFBMFB.js → chunk-UM3OHLCX.js} +1 -1
- package/dist/{chunk-4TC4M4RC.js → chunk-V65P572N.js} +3 -3
- package/dist/chunk-VFIVXK53.js +2 -0
- package/dist/chunk-VVFPW4ZQ.js +2 -0
- package/dist/{chunk-TVU4YD2H.js → chunk-VYITPC34.js} +1 -1
- package/dist/{chunk-3QVXHF6I.js → chunk-VZKR2YFM.js} +1 -1
- package/dist/{chunk-WMDYHUPS.js → chunk-W2GMKXM7.js} +1 -1
- package/dist/{chunk-72K36DID.js → chunk-W4X3635B.js} +1 -1
- package/dist/chunk-W6ST525S.js +99 -0
- package/dist/{chunk-RIRSTGFU.js → chunk-WEEYQX3M.js} +1 -1
- package/dist/{chunk-KOUKBXOZ.js → chunk-WO7LKJCJ.js} +1 -1
- package/dist/{chunk-6XLVKD6Q.js → chunk-WPRAJ25Z.js} +1 -1
- package/dist/{chunk-LUG2BZJP.js → chunk-WR2ZQGUR.js} +1 -1
- package/dist/{chunk-5K4DONQJ.js → chunk-WWX265PC.js} +1 -1
- package/dist/chunk-XERJY4IG.js +103 -0
- package/dist/{chunk-GXUZ3V7S.js → chunk-XGCJWCC4.js} +1 -1
- package/dist/{chunk-PGKP7W5T.js → chunk-XGMPC7KK.js} +1 -1
- package/dist/chunk-XGRVAPLR.js +7 -0
- package/dist/{chunk-TC3JOEMA.js → chunk-Y2PC2BBJ.js} +60 -60
- package/dist/{chunk-ODH2U44N.js → chunk-Y4QC2YVE.js} +1 -1
- package/dist/chunk-YNJZ2VXV.js +5 -0
- package/dist/chunk-Z5DDPQ26.js +3 -0
- package/dist/{chunk-EXQXGSGY.js → chunk-ZK7VJZ6V.js} +1 -1
- package/dist/{chunk-COTYR5RC.js → chunk-ZLT4DPHN.js} +1 -1
- package/dist/{chunk-CGULQAB5.js → chunk-ZOBQKNGK.js} +1 -1
- package/dist/chunk-ZTE46E4Z.js +153 -0
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-N5P2ZEAD.js +1 -0
- package/dist/configs/all.yml +3 -0
- package/dist/configs/recommended.yml +3 -0
- package/dist/custom-oclif-loader-4ZAXX5MR.js +1 -0
- package/dist/data/filters.json +1 -1
- package/dist/data/objects.json +30 -3
- package/dist/data/shopify_system_translations.json +48 -4
- package/dist/deprecations-4TY4DNME.js +1 -0
- package/dist/dist-6ZJS4I57.js +1 -0
- package/dist/dist-7W2KJOYN.js +1 -0
- package/dist/environments-TR5WW2MD.js +1 -0
- package/dist/error-VJQM4MFE.js +1 -0
- package/dist/error-handler-IYGE3Z72.js +1 -0
- package/dist/{fs-7LCRIUF3.js → fs-EOQL26C3.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/{http-proxy-node16-X2WAMUT5.js → http-proxy-node16-A6AKKRQH.js} +1 -1
- package/dist/index.js +15 -15
- package/dist/is-global-RQCPBQA3.js +1 -0
- package/dist/{latest-version-32HXMWJ7.js → latest-version-LDWU5F7A.js} +7 -7
- package/dist/lib-2BR2WN7L.js +1 -0
- package/dist/lib-JKLF33A7.js +1 -0
- package/dist/{lib-NOROGV6N.js → lib-P3APEIHY.js} +1 -1
- package/dist/local-TW3HCZ2S.js +1 -0
- package/dist/local-storage-T6FKS53K.js +1 -0
- package/dist/{metadata-D5GLZOLV.js → metadata-TYZDEER5.js} +1 -1
- package/dist/{morph-QZGREMO2.js → morph-ABSWZEVT.js} +4 -4
- package/dist/node-package-manager-6SWUZILX.js +1 -0
- package/dist/notifications-system-SMHMV2UW.js +1 -0
- package/dist/out-53ABAVL7.js +1 -0
- package/dist/{output-FYS764MJ.js → output-JG5I2TEL.js} +1 -1
- package/dist/system-D4Z32GDS.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-6M3XZ6MR.js +1 -0
- package/dist/upgrade-EKAG4IV7.js +1 -0
- package/dist/version-6UBWZCNS.js +1 -0
- package/dist/version-XRU7TEAI.js +1 -0
- package/dist/{workerd-N25GY5MX.js → workerd-LXBSJULF.js} +1 -1
- package/oclif.manifest.json +612 -2
- package/package.json +11 -11
- package/dist/analytics-CIKTYXZ6.js +0 -1
- package/dist/analytics-DM7CBV2M.js +0 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-ByUl89Ab.ico +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +0 -51
- package/dist/assets/dev-console/extensions/dev-console/assets/index-DISeE29z.css +0 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +0 -19
- package/dist/assets/dev-console/index.html +0 -21
- package/dist/chunk-2FIDORHT.js +0 -5
- package/dist/chunk-2HZMOK4U.js +0 -836
- package/dist/chunk-2O22LZKV.js +0 -44
- package/dist/chunk-3SJHCEQR.js +0 -7
- package/dist/chunk-4E354M4H.js +0 -1
- package/dist/chunk-5C7HDTHJ.js +0 -1
- package/dist/chunk-5NY4HKJF.js +0 -103
- package/dist/chunk-5PLLJPEW.js +0 -3
- package/dist/chunk-6Y3QXASG.js +0 -22
- package/dist/chunk-6ZRHK4ON.js +0 -1
- package/dist/chunk-7USHLXEN.js +0 -2
- package/dist/chunk-AH2ZJ73H.js +0 -16
- package/dist/chunk-AI756VJI.js +0 -1
- package/dist/chunk-DA4LHFJQ.js +0 -26
- package/dist/chunk-DKKBJ4H5.js +0 -2
- package/dist/chunk-EAXEV45I.js +0 -2
- package/dist/chunk-ELIH6GCC.js +0 -1
- package/dist/chunk-EYDNSYYE.js +0 -370
- package/dist/chunk-FO6FNY6P.js +0 -5
- package/dist/chunk-G7QLHXVA.js +0 -19
- package/dist/chunk-H3QZN45D.js +0 -4
- package/dist/chunk-HHSUBF73.js +0 -1
- package/dist/chunk-HXYWEKMS.js +0 -2
- package/dist/chunk-IDKUJQIG.js +0 -11
- package/dist/chunk-IOU6EKTT.js +0 -1
- package/dist/chunk-IRH6IGFT.js +0 -567
- package/dist/chunk-IRTCLR3F.js +0 -10
- package/dist/chunk-J3KRY2SD.js +0 -1
- package/dist/chunk-JOYM7AEQ.js +0 -1
- package/dist/chunk-LKZ7ARYS.js +0 -18
- package/dist/chunk-N5HGT3TE.js +0 -4
- package/dist/chunk-NJOO5XJV.js +0 -1
- package/dist/chunk-NNOSZ447.js +0 -1
- package/dist/chunk-OHASEW7T.js +0 -1
- package/dist/chunk-PGODIZ64.js +0 -1
- package/dist/chunk-PTIJDS6I.js +0 -3
- package/dist/chunk-Q6LCSRIW.js +0 -1
- package/dist/chunk-SKM44SK5.js +0 -4
- package/dist/chunk-T6CC5WUU.js +0 -159
- package/dist/chunk-UZ7U322K.js +0 -283
- package/dist/chunk-VHAZBDFE.js +0 -21
- package/dist/chunk-VRRDIXFQ.js +0 -6
- package/dist/chunk-YB3SGPFF.js +0 -1
- package/dist/chunk-YJCJDCVP.js +0 -1
- package/dist/chunk-ZDQNCYRH.js +0 -5
- package/dist/conf-store-OC4XCP45.js +0 -1
- package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
- package/dist/deprecations-M5JGGK47.js +0 -1
- package/dist/dist-3SP7TISC.js +0 -1
- package/dist/dist-Z4H2OM7V.js +0 -1
- package/dist/environments-ZLSO534C.js +0 -1
- package/dist/error-ZBG2MA5U.js +0 -1
- package/dist/error-handler-MCUV4RZV.js +0 -1
- package/dist/is-global-RURDJZDU.js +0 -1
- package/dist/lib-QJDPPAWN.js +0 -1
- package/dist/lib-UCG2DNMS.js +0 -1
- package/dist/local-5AKD7T5X.js +0 -1
- package/dist/local-storage-TJU77VRQ.js +0 -1
- package/dist/node-package-manager-FA3Y6DPG.js +0 -1
- package/dist/notifications-system-76GJJAJP.js +0 -1
- package/dist/out-CDCY25QC.js +0 -1
- package/dist/system-KDM2BB7R.js +0 -1
- package/dist/ui-QIHGXICT.js +0 -1
- package/dist/upgrade-DY4L43H4.js +0 -1
- package/dist/version-LULWCT5R.js +0 -1
- package/dist/version-WIERCO5R.js +0 -1
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
import{b as mx}from"./chunk-ZDF5N422.js";import{a as $m,c as is,d as ix}from"./chunk-MPW2YJWU.js";import{l as Tx,m as Sx}from"./chunk-G7QW5OSQ.js";import{a as Ft,b as et,c as ax,d as sx,e as cx,f as ux,g as Yc,h as lx,i as px,j as dx,n as fx,p as Kc,q as _x}from"./chunk-WR2ZQGUR.js";import{J as Px,P as Xc,S as Nx,T as Mx,c as RJ,g as vx,h as PJ}from"./chunk-6YCGMS7X.js";import{a as En}from"./chunk-M4BEPPA3.js";import{b as $c,c as as,d as zc,e as gx,f as Wc}from"./chunk-VZKR2YFM.js";import{a as zm,b as Wm}from"./chunk-Y4QC2YVE.js";import{a as tx,b as Fm,c as Ym,e as rx,f as $r,h as nx,k as yx,m as fe,o as Ax,p as tt,q as xx,r as bx,s as Ox,t as Rx,u as Xm}from"./chunk-ZTE46E4Z.js";import{A as qm,B as WA,Bb as hx,C as XA,D as TJ,F as JA,Fb as ue,G as SJ,H as vJ,Hb as J,I as gJ,J as yJ,K as AJ,L as QA,M as ZA,Mb as Zn,N as os,Ob as kx,Pb as G,Sb as Bx,X as ex,a as rJ,d as nJ,e as oJ,f as iJ,g as aJ,h as sJ,i as cJ,j as uJ,k as lJ,l as pJ,o as dJ,p as fJ,q as YA,r as _J,s as mJ,t as KA,u as EJ,w as $A,x as hJ,yb as Ex,z as zA}from"./chunk-3TFUSDHY.js";import{e as FA}from"./chunk-A4SBXDZB.js";import{d as Ix,e as Lx,f as Jc,g as Jm,h as Cx,i as wx,o as Qm,p as Qc,r as Dx,s as Ux,u as Vx}from"./chunk-J3IHP46B.js";import{a as bJ,b as Km,c as ox,d as OJ}from"./chunk-T7KHS6RF.js";import{a as Gm,c as hn,e as jA,g as HA,h as qA,i as Fc}from"./chunk-UKQ7NE5V.js";import{d as jm,e as Hm,g as kA,h as BA,q as qc,s as GA}from"./chunk-773TIA5M.js";import{a as xJ}from"./chunk-CTNBSUVU.js";import{a as q,b as w,c as _,d as Qn,e as Se,f as N,g as l}from"./chunk-VKWPEFWQ.js";var cb=_((IVe,sb)=>{l();var ab=q("stream").Stream,W5=q("util");sb.exports=cr;function cr(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}W5.inherits(cr,ab);cr.create=function(t,e){var n=new this;e=e||{};for(var i in e)n[i]=e[i];n.source=t;var a=t.emit;return t.emit=function(){return n._handleEmit(arguments),a.apply(t,arguments)},t.on("error",function(){}),n.pauseStream&&t.pause(),n};Object.defineProperty(cr.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});cr.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};cr.prototype.resume=function(){this._released||this.release(),this.source.resume()};cr.prototype.pause=function(){this.source.pause()};cr.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};cr.prototype.pipe=function(){var t=ab.prototype.pipe.apply(this,arguments);return this.resume(),t};cr.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};cr.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var db=_((CVe,pb)=>{l();var X5=q("util"),lb=q("stream").Stream,ub=cb();pb.exports=Me;function Me(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}X5.inherits(Me,lb);Me.create=function(t){var e=new this;t=t||{};for(var n in t)e[n]=t[n];return e};Me.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Me.prototype.append=function(t){var e=Me.isStreamLike(t);if(e){if(!(t instanceof ub)){var n=ub.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=n}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Me.prototype.pipe=function(t,e){return lb.prototype.pipe.call(this,t,e),this.resume(),t};Me.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Me.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(n){var i=Me.isStreamLike(n);i&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Me.prototype._pipeNext=function(t){this._currentStream=t;var e=Me.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var n=t;this.write(n),this._getNext()};Me.prototype._handleErrors=function(t){var e=this;t.on("error",function(n){e._emitError(n)})};Me.prototype.write=function(t){this.emit("data",t)};Me.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Me.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Me.prototype.end=function(){this._reset(),this.emit("end")};Me.prototype.destroy=function(){this._reset(),this.emit("close")};Me.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Me.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Me.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Me.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var fb=_((DVe,J5)=>{J5.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var mb=_((UVe,_b)=>{l();_b.exports=fb()});var Tb=_(xt=>{"use strict";l();var su=mb(),Q5=q("path").extname,Eb=/^\s*([^;\s]*)(?:;|\s|$)/,Z5=/^text\//i;xt.charset=hb;xt.charsets={lookup:hb};xt.contentType=e9;xt.extension=t9;xt.extensions=Object.create(null);xt.lookup=r9;xt.types=Object.create(null);n9(xt.extensions,xt.types);function hb(t){if(!t||typeof t!="string")return!1;var e=Eb.exec(t),n=e&&su[e[1].toLowerCase()];return n&&n.charset?n.charset:e&&Z5.test(e[1])?"UTF-8":!1}function e9(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?xt.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var n=xt.charset(e);n&&(e+="; charset="+n.toLowerCase())}return e}function t9(t){if(!t||typeof t!="string")return!1;var e=Eb.exec(t),n=e&&xt.extensions[e[1].toLowerCase()];return!n||!n.length?!1:n[0]}function r9(t){if(!t||typeof t!="string")return!1;var e=Q5("x."+t).toLowerCase().substr(1);return e&&xt.types[e]||!1}function n9(t,e){var n=["nginx","apache",void 0,"iana"];Object.keys(su).forEach(function(a){var c=su[a],o=c.extensions;if(!(!o||!o.length)){t[a]=o;for(var r=0;r<o.length;r++){var s=o[r];if(e[s]){var u=n.indexOf(su[e[s]].source),p=n.indexOf(c.source);if(e[s]!=="application/octet-stream"&&(u>p||u===p&&e[s].substr(0,12)==="application/"))continue}e[s]=a}}})}});var vb=_((GVe,Sb)=>{l();Sb.exports=o9;function o9(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var iE=_((HVe,yb)=>{l();var gb=vb();yb.exports=i9;function i9(t){var e=!1;return gb(function(){e=!0}),function(i,a){e?t(i,a):gb(function(){t(i,a)})}}});var aE=_((FVe,Ab)=>{l();Ab.exports=a9;function a9(t){Object.keys(t.jobs).forEach(s9.bind(t)),t.jobs={}}function s9(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var sE=_((KVe,bb)=>{l();var xb=iE(),c9=aE();bb.exports=u9;function u9(t,e,n,i){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=l9(e,a,t[a],function(c,o){a in n.jobs&&(delete n.jobs[a],c?c9(n):n.results[a]=o,i(c,n.results))})}function l9(t,e,n,i){var a;return t.length==2?a=t(n,xb(i)):a=t(n,e,xb(i)),a}});var cE=_((zVe,Ob)=>{l();Ob.exports=p9;function p9(t,e){var n=!Array.isArray(t),i={index:0,keyedList:n||e?Object.keys(t):null,jobs:{},results:n?{}:[],size:n?Object.keys(t).length:t.length};return e&&i.keyedList.sort(n?e:function(a,c){return e(t[a],t[c])}),i}});var uE=_((XVe,Rb)=>{l();var d9=aE(),f9=iE();Rb.exports=_9;function _9(t){Object.keys(this.jobs).length&&(this.index=this.size,d9(this),f9(t)(null,this.results))}});var Nb=_((QVe,Pb)=>{l();var m9=sE(),E9=cE(),h9=uE();Pb.exports=T9;function T9(t,e,n){for(var i=E9(t);i.index<(i.keyedList||t).length;)m9(t,e,i,function(a,c){if(a){n(a,c);return}if(Object.keys(i.jobs).length===0){n(null,i.results);return}}),i.index++;return h9.bind(i,n)}});var lE=_((eke,cu)=>{l();var Mb=sE(),S9=cE(),v9=uE();cu.exports=g9;cu.exports.ascending=Ib;cu.exports.descending=y9;function g9(t,e,n,i){var a=S9(t,n);return Mb(t,e,a,function c(o,r){if(o){i(o,r);return}if(a.index++,a.index<(a.keyedList||t).length){Mb(t,e,a,c);return}i(null,a.results)}),v9.bind(a,i)}function Ib(t,e){return t<e?-1:t>e?1:0}function y9(t,e){return-1*Ib(t,e)}});var Cb=_((rke,Lb)=>{l();var A9=lE();Lb.exports=x9;function x9(t,e,n){return A9(t,e,null,n)}});var Db=_((oke,wb)=>{l();wb.exports={parallel:Nb(),serial:Cb(),serialOrdered:lE()}});var pE=_((ake,Ub)=>{"use strict";l();Ub.exports=Object});var kb=_((cke,Vb)=>{"use strict";l();Vb.exports=Error});var Gb=_((lke,Bb)=>{"use strict";l();Bb.exports=EvalError});var Hb=_((dke,jb)=>{"use strict";l();jb.exports=RangeError});var Fb=_((_ke,qb)=>{"use strict";l();qb.exports=ReferenceError});var Kb=_((Eke,Yb)=>{"use strict";l();Yb.exports=URIError});var zb=_((Tke,$b)=>{"use strict";l();$b.exports=Math.abs});var Xb=_((vke,Wb)=>{"use strict";l();Wb.exports=Math.floor});var Qb=_((yke,Jb)=>{"use strict";l();Jb.exports=Math.max});var eO=_((xke,Zb)=>{"use strict";l();Zb.exports=Math.min});var rO=_((Oke,tO)=>{"use strict";l();tO.exports=Math.pow});var oO=_((Pke,nO)=>{"use strict";l();nO.exports=Math.round});var aO=_((Mke,iO)=>{"use strict";l();iO.exports=Number.isNaN||function(e){return e!==e}});var cO=_((Lke,sO)=>{"use strict";l();var b9=aO();sO.exports=function(e){return b9(e)||e===0?e:e<0?-1:1}});var dE=_((wke,uO)=>{"use strict";l();uO.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;e[n]=a;for(var c in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var r=Object.getOwnPropertyDescriptor(e,n);if(r.value!==a||r.enumerable!==!0)return!1}return!0}});var dO=_((Uke,pO)=>{"use strict";l();var lO=typeof Symbol<"u"&&Symbol,O9=dE();pO.exports=function(){return typeof lO!="function"||typeof Symbol!="function"||typeof lO("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:O9()}});var fE=_((kke,fO)=>{"use strict";l();fO.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var _E=_((Gke,_O)=>{"use strict";l();var R9=pE();_O.exports=R9.getPrototypeOf||null});var hO=_((Hke,EO)=>{"use strict";l();var P9="Function.prototype.bind called on incompatible ",N9=Object.prototype.toString,M9=Math.max,I9="[object Function]",mO=function(e,n){for(var i=[],a=0;a<e.length;a+=1)i[a]=e[a];for(var c=0;c<n.length;c+=1)i[c+e.length]=n[c];return i},L9=function(e,n){for(var i=[],a=n||0,c=0;a<e.length;a+=1,c+=1)i[c]=e[a];return i},C9=function(t,e){for(var n="",i=0;i<t.length;i+=1)n+=t[i],i+1<t.length&&(n+=e);return n};EO.exports=function(e){var n=this;if(typeof n!="function"||N9.apply(n)!==I9)throw new TypeError(P9+n);for(var i=L9(arguments,1),a,c=function(){if(this instanceof a){var p=n.apply(this,mO(i,arguments));return Object(p)===p?p:this}return n.apply(e,mO(i,arguments))},o=M9(0,n.length-i.length),r=[],s=0;s<o;s++)r[s]="$"+s;if(a=Function("binder","return function ("+C9(r,",")+"){ return binder.apply(this,arguments); }")(c),n.prototype){var u=function(){};u.prototype=n.prototype,a.prototype=new u,u.prototype=null}return a}});var ps=_((Fke,TO)=>{"use strict";l();var w9=hO();TO.exports=Function.prototype.bind||w9});var uu=_((Kke,SO)=>{"use strict";l();SO.exports=Function.prototype.call});var mE=_((zke,vO)=>{"use strict";l();vO.exports=Function.prototype.apply});var yO=_((Xke,gO)=>{"use strict";l();gO.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var xO=_((Qke,AO)=>{"use strict";l();var D9=ps(),U9=mE(),V9=uu(),k9=yO();AO.exports=k9||D9.call(V9,U9)});var OO=_((eBe,bO)=>{"use strict";l();var B9=ps(),G9=Km(),j9=uu(),H9=xO();bO.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new G9("a function is required");return H9(B9,j9,e)}});var LO=_((rBe,IO)=>{"use strict";l();var q9=OO(),RO=ox(),NO;try{NO=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var EE=!!NO&&RO&&RO(Object.prototype,"__proto__"),MO=Object,PO=MO.getPrototypeOf;IO.exports=EE&&typeof EE.get=="function"?q9([EE.get]):typeof PO=="function"?function(e){return PO(e==null?e:MO(e))}:!1});var VO=_((oBe,UO)=>{"use strict";l();var CO=fE(),wO=_E(),DO=LO();UO.exports=CO?function(e){return CO(e)}:wO?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return wO(e)}:DO?function(e){return DO(e)}:null});var lu=_((aBe,kO)=>{"use strict";l();var F9=Function.prototype.call,Y9=Object.prototype.hasOwnProperty,K9=ps();kO.exports=K9.call(F9,Y9)});var YO=_((cBe,FO)=>{"use strict";l();var oe,$9=pE(),z9=kb(),W9=Gb(),X9=Hb(),J9=Fb(),Si=bJ(),Ti=Km(),Q9=Kb(),Z9=zb(),e7=Xb(),t7=Qb(),r7=eO(),n7=rO(),o7=oO(),i7=cO(),HO=Function,hE=function(t){try{return HO('"use strict"; return ('+t+").constructor;")()}catch{}},ds=ox(),a7=OJ(),TE=function(){throw new Ti},s7=ds?(function(){try{return arguments.callee,TE}catch{try{return ds(arguments,"callee").get}catch{return TE}}})():TE,Ei=dO()(),Fe=VO(),c7=_E(),u7=fE(),qO=mE(),fs=uu(),hi={},l7=typeof Uint8Array>"u"||!Fe?oe:Fe(Uint8Array),So={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?oe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?oe:ArrayBuffer,"%ArrayIteratorPrototype%":Ei&&Fe?Fe([][Symbol.iterator]()):oe,"%AsyncFromSyncIteratorPrototype%":oe,"%AsyncFunction%":hi,"%AsyncGenerator%":hi,"%AsyncGeneratorFunction%":hi,"%AsyncIteratorPrototype%":hi,"%Atomics%":typeof Atomics>"u"?oe:Atomics,"%BigInt%":typeof BigInt>"u"?oe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?oe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?oe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?oe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":z9,"%eval%":eval,"%EvalError%":W9,"%Float16Array%":typeof Float16Array>"u"?oe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?oe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?oe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?oe:FinalizationRegistry,"%Function%":HO,"%GeneratorFunction%":hi,"%Int8Array%":typeof Int8Array>"u"?oe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?oe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?oe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ei&&Fe?Fe(Fe([][Symbol.iterator]())):oe,"%JSON%":typeof JSON=="object"?JSON:oe,"%Map%":typeof Map>"u"?oe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ei||!Fe?oe:Fe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$9,"%Object.getOwnPropertyDescriptor%":ds,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?oe:Promise,"%Proxy%":typeof Proxy>"u"?oe:Proxy,"%RangeError%":X9,"%ReferenceError%":J9,"%Reflect%":typeof Reflect>"u"?oe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?oe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ei||!Fe?oe:Fe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?oe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ei&&Fe?Fe(""[Symbol.iterator]()):oe,"%Symbol%":Ei?Symbol:oe,"%SyntaxError%":Si,"%ThrowTypeError%":s7,"%TypedArray%":l7,"%TypeError%":Ti,"%Uint8Array%":typeof Uint8Array>"u"?oe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?oe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?oe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?oe:Uint32Array,"%URIError%":Q9,"%WeakMap%":typeof WeakMap>"u"?oe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?oe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?oe:WeakSet,"%Function.prototype.call%":fs,"%Function.prototype.apply%":qO,"%Object.defineProperty%":a7,"%Object.getPrototypeOf%":c7,"%Math.abs%":Z9,"%Math.floor%":e7,"%Math.max%":t7,"%Math.min%":r7,"%Math.pow%":n7,"%Math.round%":o7,"%Math.sign%":i7,"%Reflect.getPrototypeOf%":u7};if(Fe)try{null.error}catch(t){BO=Fe(Fe(t)),So["%Error.prototype%"]=BO}var BO,p7=function t(e){var n;if(e==="%AsyncFunction%")n=hE("async function () {}");else if(e==="%GeneratorFunction%")n=hE("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=hE("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&Fe&&(n=Fe(a.prototype))}return So[e]=n,n},GO={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_s=ps(),pu=lu(),d7=_s.call(fs,Array.prototype.concat),f7=_s.call(qO,Array.prototype.splice),jO=_s.call(fs,String.prototype.replace),du=_s.call(fs,String.prototype.slice),_7=_s.call(fs,RegExp.prototype.exec),m7=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E7=/\\(\\)?/g,h7=function(e){var n=du(e,0,1),i=du(e,-1);if(n==="%"&&i!=="%")throw new Si("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new Si("invalid intrinsic syntax, expected opening `%`");var a=[];return jO(e,m7,function(c,o,r,s){a[a.length]=r?jO(s,E7,"$1"):o||c}),a},T7=function(e,n){var i=e,a;if(pu(GO,i)&&(a=GO[i],i="%"+a[0]+"%"),pu(So,i)){var c=So[i];if(c===hi&&(c=p7(i)),typeof c>"u"&&!n)throw new Ti("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:c}}throw new Si("intrinsic "+e+" does not exist!")};FO.exports=function(e,n){if(typeof e!="string"||e.length===0)throw new Ti("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ti('"allowMissing" argument must be a boolean');if(_7(/^%?[^%]*%?$/,e)===null)throw new Si("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=h7(e),a=i.length>0?i[0]:"",c=T7("%"+a+"%",n),o=c.name,r=c.value,s=!1,u=c.alias;u&&(a=u[0],f7(i,d7([0,1],u)));for(var p=1,S=!0;p<i.length;p+=1){var A=i[p],O=du(A,0,1),I=du(A,-1);if((O==='"'||O==="'"||O==="`"||I==='"'||I==="'"||I==="`")&&O!==I)throw new Si("property names with quotes must have matching quotes");if((A==="constructor"||!S)&&(s=!0),a+="."+A,o="%"+a+"%",pu(So,o))r=So[o];else if(r!=null){if(!(A in r)){if(!n)throw new Ti("base intrinsic for "+e+" exists, but the property is not available.");return}if(ds&&p+1>=i.length){var F=ds(r,A);S=!!F,S&&"get"in F&&!("originalValue"in F.get)?r=F.get:r=r[A]}else S=pu(r,A),r=r[A];S&&!s&&(So[o]=r)}}return r}});var $O=_((lBe,KO)=>{"use strict";l();var S7=dE();KO.exports=function(){return S7()&&!!Symbol.toStringTag}});var XO=_((dBe,WO)=>{"use strict";l();var v7=YO(),zO=v7("%Object.defineProperty%",!0),g7=$O()(),y7=lu(),A7=Km(),fu=g7?Symbol.toStringTag:null;WO.exports=function(e,n){var i=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof i<"u"&&typeof i!="boolean"||typeof a<"u"&&typeof a!="boolean")throw new A7("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");fu&&(i||!y7(e,fu))&&(zO?zO(e,fu,{configurable:!a,enumerable:!1,value:n,writable:!1}):e[fu]=n)}});var QO=_((_Be,JO)=>{"use strict";l();JO.exports=function(t,e){return Object.keys(e).forEach(function(n){t[n]=t[n]||e[n]}),t}});var tR=_((EBe,eR)=>{"use strict";l();var yE=db(),x7=q("util"),SE=q("path"),b7=q("http"),O7=q("https"),R7=q("url").parse,P7=q("fs"),N7=q("stream").Stream,M7=q("crypto"),vE=Tb(),I7=Db(),L7=XO(),An=lu(),gE=QO();function ZO(t){return String(t).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}function ae(t){if(!(this instanceof ae))return new ae(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],yE.call(this),t=t||{};for(var e in t)this[e]=t[e]}x7.inherits(ae,yE);ae.LINE_BREAK=`\r
|
|
2
|
+
`;ae.DEFAULT_CONTENT_TYPE="application/octet-stream";ae.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var i=yE.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var a=this._multiPartHeader(t,e,n),c=this._multiPartFooter();i(a),i(e),i(c),this._trackLength(a,e,n)};ae.prototype._trackLength=function(t,e,n){var i=0;n.knownLength!=null?i+=Number(n.knownLength):Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ae.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&An(e,"httpVersion"))&&!(e instanceof N7))&&(n.knownLength||this._valuesToMeasure.push(e))};ae.prototype._lengthRetriever=function(t,e){An(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):P7.stat(t.path,function(n,i){if(n){e(n);return}var a=i.size-(t.start?t.start:0);e(null,a)}):An(t,"httpVersion")?e(null,Number(t.headers["content-length"])):An(t,"httpModule")?(t.on("response",function(n){t.pause(),e(null,Number(n.headers["content-length"]))}),t.resume()):e("Unknown stream")};ae.prototype._multiPartHeader=function(t,e,n){if(typeof n.header=="string")return n.header;var i=this._getContentDisposition(e,n),a=this._getContentType(e,n),c="",o={"Content-Disposition":["form-data",'name="'+ZO(t)+'"'].concat(i||[]),"Content-Type":[].concat(a||[])};typeof n.header=="object"&&gE(o,n.header);var r;for(var s in o)if(An(o,s)){if(r=o[s],r==null)continue;Array.isArray(r)||(r=[r]),r.length&&(c+=s+": "+r.join("; ")+ae.LINE_BREAK)}return"--"+this.getBoundary()+ae.LINE_BREAK+c+ae.LINE_BREAK};ae.prototype._getContentDisposition=function(t,e){var n;if(typeof e.filepath=="string"?n=SE.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?n=SE.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&An(t,"httpVersion")&&(n=SE.basename(t.client._httpMessage.path||"")),n)return'filename="'+ZO(n)+'"'};ae.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t&&t.name&&(n=vE.lookup(t.name)),!n&&t&&t.path&&(n=vE.lookup(t.path)),!n&&t&&t.readable&&An(t,"httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=vE.lookup(e.filepath||e.filename)),!n&&t&&typeof t=="object"&&(n=ae.DEFAULT_CONTENT_TYPE),n};ae.prototype._multiPartFooter=function(){return function(t){var e=ae.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};ae.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ae.LINE_BREAK};ae.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)An(t,e)&&(n[e.toLowerCase()]=t[e]);return n};ae.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};ae.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ae.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?t=Buffer.concat([t,this._streams[n]]):t=Buffer.concat([t,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ae.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ae.prototype._generateBoundary=function(){this._boundary="--------------------------"+M7.randomBytes(12).toString("hex")};ae.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ae.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ae.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}I7.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,i){if(n){t(n);return}i.forEach(function(a){e+=a}),t(null,e)})};ae.prototype.submit=function(t,e){var n,i,a={method:"post"};return typeof t=="string"?(t=R7(t),i=gE({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},a)):(i=gE(t,a),i.port||(i.port=i.protocol==="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol==="https:"?n=O7.request(i):n=b7.request(i),this.getLength(function(c,o){if(c&&c!=="Unknown stream"){this._error(c);return}if(o&&n.setHeader("Content-Length",o),this.pipe(n),e){var r,s=function(u,p){return n.removeListener("error",s),n.removeListener("response",r),e.call(this,u,p)};r=s.bind(this,null),n.on("error",s),n.on("response",r)}}.bind(this)),n};ae.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};ae.prototype.toString=function(){return"[object FormData]"};L7(ae.prototype,"FormData");eR.exports=ae});var ME=_((NE,MR)=>{l();(function(t,e){"use strict";typeof define=="function"&&define.amd?define("stackframe",[],e):typeof NE=="object"?MR.exports=e():t.StackFrame=e()})(NE,function(){"use strict";function t(O){return!isNaN(parseFloat(O))&&isFinite(O)}function e(O){return O.charAt(0).toUpperCase()+O.substring(1)}function n(O){return function(){return this[O]}}var i=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],c=["fileName","functionName","source"],o=["args"],r=["evalOrigin"],s=i.concat(a,c,o,r);function u(O){if(O)for(var I=0;I<s.length;I++)O[s[I]]!==void 0&&this["set"+e(s[I])](O[s[I]])}u.prototype={getArgs:function(){return this.args},setArgs:function(O){if(Object.prototype.toString.call(O)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=O},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(O){if(O instanceof u)this.evalOrigin=O;else if(O instanceof Object)this.evalOrigin=new u(O);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var O=this.getFileName()||"",I=this.getLineNumber()||"",F=this.getColumnNumber()||"",H=this.getFunctionName()||"";return this.getIsEval()?O?"[eval] ("+O+":"+I+":"+F+")":"[eval]:"+I+":"+F:H?H+" ("+O+":"+I+":"+F+")":O+":"+I+":"+F}},u.fromString=function(I){var F=I.indexOf("("),H=I.lastIndexOf(")"),z=I.substring(0,F),W=I.substring(F+1,H).split(","),de=I.substring(H+1);if(de.indexOf("@")===0)var se=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(de,""),ve=se[1],Pe=se[2],Yr=se[3];return new u({functionName:z,args:W||void 0,fileName:ve,lineNumber:Pe||void 0,columnNumber:Yr||void 0})};for(var p=0;p<i.length;p++)u.prototype["get"+e(i[p])]=n(i[p]),u.prototype["set"+e(i[p])]=(function(O){return function(I){this[O]=!!I}})(i[p]);for(var S=0;S<a.length;S++)u.prototype["get"+e(a[S])]=n(a[S]),u.prototype["set"+e(a[S])]=(function(O){return function(I){if(!t(I))throw new TypeError(O+" must be a Number");this[O]=Number(I)}})(a[S]);for(var A=0;A<c.length;A++)u.prototype["get"+e(c[A])]=n(c[A]),u.prototype["set"+e(c[A])]=(function(O){return function(I){this[O]=String(I)}})(c[A]);return u})});var LR=_((IE,IR)=>{l();(function(t,e){"use strict";typeof define=="function"&&define.amd?define("error-stack-parser",["stackframe"],e):typeof IE=="object"?IR.exports=e(ME()):t.ErrorStackParser=e(t.StackFrame)})(IE,function(e){"use strict";var n=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,a=/^(eval@)?(\[native code])?$/;return{parse:function(o){if(typeof o.stacktrace<"u"||typeof o["opera#sourceloc"]<"u")return this.parseOpera(o);if(o.stack&&o.stack.match(i))return this.parseV8OrIE(o);if(o.stack)return this.parseFFOrSafari(o);throw new Error("Cannot parse given Error object")},extractLocation:function(o){if(o.indexOf(":")===-1)return[o];var r=/(.+?)(?::(\d+))?(?::(\d+))?$/,s=r.exec(o.replace(/[()]/g,""));return[s[1],s[2]||void 0,s[3]||void 0]},parseV8OrIE:function(o){var r=o.stack.split(`
|
|
3
|
+
`).filter(function(s){return!!s.match(i)},this);return r.map(function(s){s.indexOf("(eval ")>-1&&(s=s.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var u=s.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),p=u.match(/ (\(.+\)$)/);u=p?u.replace(p[0],""):u;var S=this.extractLocation(p?p[1]:u),A=p&&u||void 0,O=["eval","<anonymous>"].indexOf(S[0])>-1?void 0:S[0];return new e({functionName:A,fileName:O,lineNumber:S[1],columnNumber:S[2],source:s})},this)},parseFFOrSafari:function(o){var r=o.stack.split(`
|
|
4
|
+
`).filter(function(s){return!s.match(a)},this);return r.map(function(s){if(s.indexOf(" > eval")>-1&&(s=s.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),s.indexOf("@")===-1&&s.indexOf(":")===-1)return new e({functionName:s});var u=/((.*".+"[^@]*)?[^@]*)(?:@)/,p=s.match(u),S=p&&p[1]?p[1]:void 0,A=this.extractLocation(s.replace(u,""));return new e({functionName:S,fileName:A[0],lineNumber:A[1],columnNumber:A[2],source:s})},this)},parseOpera:function(o){return!o.stacktrace||o.message.indexOf(`
|
|
5
|
+
`)>-1&&o.message.split(`
|
|
6
|
+
`).length>o.stacktrace.split(`
|
|
7
|
+
`).length?this.parseOpera9(o):o.stack?this.parseOpera11(o):this.parseOpera10(o)},parseOpera9:function(o){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,s=o.message.split(`
|
|
8
|
+
`),u=[],p=2,S=s.length;p<S;p+=2){var A=r.exec(s[p]);A&&u.push(new e({fileName:A[2],lineNumber:A[1],source:s[p]}))}return u},parseOpera10:function(o){for(var r=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,s=o.stacktrace.split(`
|
|
9
|
+
`),u=[],p=0,S=s.length;p<S;p+=2){var A=r.exec(s[p]);A&&u.push(new e({functionName:A[3]||void 0,fileName:A[2],lineNumber:A[1],source:s[p]}))}return u},parseOpera11:function(o){var r=o.stack.split(`
|
|
10
|
+
`).filter(function(s){return!!s.match(n)&&!s.match(/^Error created at/)},this);return r.map(function(s){var u=s.split("@"),p=this.extractLocation(u.pop()),S=u.shift()||"",A=S.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,O;S.match(/\(([^)]*)\)/)&&(O=S.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var I=O===void 0||O==="[arguments not available]"?void 0:O.split(",");return new e({functionName:A,args:I,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:s})},this)}}})});var wR=_((Sje,CR)=>{l();CR.exports=aQ;function aQ(t){switch(Object.prototype.toString.call(t)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return t instanceof Error}}});var UR=_((LE,DR)=>{l();(function(t,e){"use strict";typeof define=="function"&&define.amd?define("stack-generator",["stackframe"],e):typeof LE=="object"?DR.exports=e(ME()):t.StackGenerator=e(t.StackFrame)})(LE,function(t){return{backtrace:function(n){var i=[],a=10;typeof n=="object"&&typeof n.maxStackSize=="number"&&(a=n.maxStackSize);for(var c=arguments.callee;c&&i.length<a&&c.arguments;){for(var o=new Array(c.arguments.length),r=0;r<o.length;++r)o[r]=c.arguments[r];/function(?:\s+([\w$]+))+\s*\(/.test(c.toString())?i.push(new t({functionName:RegExp.$1||void 0,args:o})):i.push(new t({args:o}));try{c=c.caller}catch{break}}return i}}})});var BR=_((yje,kR)=>{l();kR.exports=VR;function VR(t,e){if(t&&e)return VR(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){n[i]=t[i]}),n;function n(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];var c=t.apply(this,i),o=i[i.length-1];return typeof c=="function"&&c!==o&&Object.keys(o).forEach(function(r){c[r]=o[r]}),c}}});var wE=_((xje,CE)=>{l();var GR=BR();CE.exports=GR(xu);CE.exports.strict=GR(jR);xu.proto=xu(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return xu(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return jR(this)},configurable:!0})});function xu(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function jR(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}});var FR=_((Oje,qR)=>{l();var sQ=wE(),cQ=function(){},uQ=global.Bare?queueMicrotask:process.nextTick.bind(process),lQ=function(t){return t.setHeader&&typeof t.abort=="function"},pQ=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},HR=function(t,e,n){if(typeof e=="function")return HR(t,null,e);e||(e={}),n=sQ(n||cQ);var i=t._writableState,a=t._readableState,c=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,r=!1,s=function(){t.writable||u()},u=function(){o=!1,c||n.call(t)},p=function(){c=!1,o||n.call(t)},S=function(H){n.call(t,H?new Error("exited with error code: "+H):null)},A=function(H){n.call(t,H)},O=function(){uQ(I)},I=function(){if(!r){if(c&&!(a&&a.ended&&!a.destroyed))return n.call(t,new Error("premature close"));if(o&&!(i&&i.ended&&!i.destroyed))return n.call(t,new Error("premature close"))}},F=function(){t.req.on("finish",u)};return lQ(t)?(t.on("complete",u),t.on("abort",O),t.req?F():t.on("request",F)):o&&!i&&(t.on("end",s),t.on("close",s)),pQ(t)&&t.on("exit",S),t.on("end",p),t.on("finish",u),e.error!==!1&&t.on("error",A),t.on("close",O),function(){r=!0,t.removeListener("complete",u),t.removeListener("abort",O),t.removeListener("request",F),t.req&&t.req.removeListener("finish",u),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",u),t.removeListener("exit",S),t.removeListener("end",p),t.removeListener("error",A),t.removeListener("close",O)}};qR.exports=HR});var $R=_((Pje,KR)=>{l();var dQ=wE(),fQ=FR(),bu;try{bu=q("fs")}catch{}var hs=function(){},_Q=typeof process>"u"?!1:/^v?\.0/.test(process.version),Ou=function(t){return typeof t=="function"},mQ=function(t){return!_Q||!bu?!1:(t instanceof(bu.ReadStream||hs)||t instanceof(bu.WriteStream||hs))&&Ou(t.close)},EQ=function(t){return t.setHeader&&Ou(t.abort)},hQ=function(t,e,n,i){i=dQ(i);var a=!1;t.on("close",function(){a=!0}),fQ(t,{readable:e,writable:n},function(o){if(o)return i(o);a=!0,i()});var c=!1;return function(o){if(!a&&!c){if(c=!0,mQ(t))return t.close(hs);if(EQ(t))return t.abort();if(Ou(t.destroy))return t.destroy();i(o||new Error("stream was destroyed"))}}},YR=function(t){t()},TQ=function(t,e){return t.pipe(e)},SQ=function(){var t=Array.prototype.slice.call(arguments),e=Ou(t[t.length-1]||hs)&&t.pop()||hs;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var n,i=t.map(function(a,c){var o=c<t.length-1,r=c>0;return hQ(a,o,r,function(s){n||(n=s),s&&i.forEach(YR),!o&&(i.forEach(YR),e(n))})});return t.reduce(TQ)};KR.exports=SQ});var WR=_((Mje,Ri)=>{l();var DE=q("stream"),vQ=q("util"),gQ=q("timers");Ri.exports=function(t,e){return Ri.exports.createStream(t,e)};Ri.exports.createStream=function(t,e){return t?zR(t,e):new On(e)};Ri.exports.createLineStream=function(t){return console.log("WARNING: byline#createLineStream is deprecated and will be removed soon"),zR(t)};function zR(t,e){if(!t)throw new Error("expected readStream");if(!t.readable)throw new Error("readStream must be readable");var n=new On(e);return t.pipe(n),n}Ri.exports.LineStream=On;function On(t){DE.Transform.call(this,t),t=t||{},this._readableState.objectMode=!0,this._lineBuffer=[],this._keepEmptyLines=t.keepEmptyLines||!1,this._lastChunkEndedWithCR=!1;var e=this;this.on("pipe",function(n){e.encoding||n instanceof DE.Readable&&(e.encoding=n._readableState.encoding)})}vQ.inherits(On,DE.Transform);On.prototype._transform=function(t,e,n){e=e||"utf8",Buffer.isBuffer(t)&&(e=="buffer"?(t=t.toString(),e="utf8"):t=t.toString(e)),this._chunkEncoding=e;var i=t.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g);this._lastChunkEndedWithCR&&t[0]==`
|
|
11
|
+
`&&i.shift(),this._lineBuffer.length>0&&(this._lineBuffer[this._lineBuffer.length-1]+=i[0],i.shift()),this._lastChunkEndedWithCR=t[t.length-1]=="\r",this._lineBuffer=this._lineBuffer.concat(i),this._pushBuffer(e,1,n)};On.prototype._pushBuffer=function(t,e,n){for(;this._lineBuffer.length>e;){var i=this._lineBuffer.shift();if((this._keepEmptyLines||i.length>0)&&!this.push(this._reencode(i,t))){var a=this;gQ.setImmediate(function(){a._pushBuffer(t,e,n)});return}}n()};On.prototype._flush=function(t){this._pushBuffer(this._chunkEncoding,0,t)};On.prototype._reencode=function(t,e){return this.encoding&&this.encoding!=e?new Buffer(t,e).toString(this.encoding):this.encoding?t:new Buffer(t,e)}});var JR=_((XR,UE)=>{l();(function(t){if(typeof XR=="object"&&typeof UE<"u")UE.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var e;typeof window<"u"?e=window:typeof global<"u"?e=global:typeof self<"u"?e=self:e=this,e.bugsnag=t()}})(function(){var t,e,n,i=(function(){function d(T,E,v,y){y===void 0&&(y=new Date),this.type=v,this.message=T,this.metadata=E,this.timestamp=y}var h=d.prototype;return h.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},d})(),a=i,c=["navigation","request","process","log","user","state","error","manual"],o=function(d,h,T){for(var E=T,v=0,y=d.length;v<y;v++)E=h(E,d[v],v,d);return E},r=function(d,h){return o(d,function(T,E,v,y){return h(E,v,y)?T.concat(E):T},[])},s=function(d,h){return o(d,function(T,E,v,y){return T===!0||E===h},!1)},u=function(d){return Object.prototype.toString.call(d)==="[object Array]"},p=!{toString:null}.propertyIsEnumerable("toString"),S=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],A=function(d){var h=[],T;for(T in d)Object.prototype.hasOwnProperty.call(d,T)&&h.push(T);if(!p)return h;for(var E=0,v=S.length;E<v;E++)Object.prototype.hasOwnProperty.call(d,S[E])&&h.push(S[E]);return h},O=function(d,h){return d===void 0&&(d=1),h===void 0&&(h=1/0),function(T){return typeof T=="number"&&parseInt(""+T,10)===T&&T>=d&&T<=h}},I=function(d){return typeof d=="function"||u(d)&&r(d,function(h){return typeof h=="function"}).length===d.length},F=function(d){return typeof d=="string"&&!!d.length},H={},z=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};H.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:F},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(d){return d===void 0||F(d)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(d){return d===void 0||F(d)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(d){return d===!0||d===!1}},enabledErrorTypes:{defaultValue:function(){return z()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(d){if(typeof d!="object"||!d)return!1;var h=A(d),T=A(z());return!(r(h,function(E){return s(T,E)}).length<h.length||r(A(d),function(E){return typeof d[E]!="boolean"}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:I},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:I},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:I},endpoints:{defaultValue:function(d){return typeof d>"u"?{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}:{notify:null,sessions:null}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(d){return d&&typeof d=="object"&&F(d.notify)&&F(d.sessions)&&r(A(d),function(h){return!s(["notify","sessions"],h)}).length===0}},autoTrackSessions:{defaultValue:function(d){return!0},message:"should be true|false",validate:function(d){return d===!0||d===!1}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(d){return d===null||u(d)&&r(d,function(h){return typeof h=="string"}).length===d.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(d){return typeof d=="string"&&d.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number \u2264100",validate:function(d){return O(0,100)(d)}},enabledBreadcrumbTypes:{defaultValue:function(){return c},message:"should be null or a list of available breadcrumb types ("+c.join(",")+")",validate:function(d){return d===null||u(d)&&o(d,function(h,T){return h===!1?h:s(c,T)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(d){return d===void 0||typeof d=="string"}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(d){return d===null||d&&o(A(d),function(h,T){return h&&s(["id","email","name"],T)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(d){return typeof d=="object"&&d!==null}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(d){return!d||d&&o(["debug","info","warn","error"],function(h,T){return h&&typeof d[T]=="function"},!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(d){return u(d)&&d.length===r(d,function(h){return typeof h=="string"||h&&typeof h.test=="function"}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(d){return u(d)&&d.length===r(d,function(h){return h&&typeof h=="object"&&typeof h.load=="function"}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(d){return u(d)&&d.length===r(d,function(h){return h&&typeof h=="object"&&typeof h.name=="string"}).length}},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:function(){return!1},message:"should be true|false",validate:function(d){return d===!0||d===!1}},sendPayloadChecksums:{defaultValue:function(){return!1},message:"should be true|false",validate:function(d){return d===!0||d===!1}}};var W=LR(),de=function(d){for(var h=1;h<arguments.length;h++){var T=arguments[h];for(var E in T)Object.prototype.hasOwnProperty.call(T,E)&&(d[E]=T[E])}return d},se=function(d,h){return o(d,function(T,E,v,y){return T.concat(h(E,v,y))},[])},ve=function(d,h,T,E){var v=E&&E.redactedKeys?E.redactedKeys:[],y=E&&E.redactedPaths?E.redactedPaths:[];return JSON.stringify(S8(d,v,y),h,T)},Pe=20,Yr=25e3,rr=8,nr="...";function He(d){return d instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(d))}function or(d){return"[Throws: "+(d?d.message:"?")+"]"}function bm(d,h){for(var T=0,E=d.length;T<E;T++)if(d[T]===h)return!0;return!1}function m8(d,h){for(var T=0,E=d.length;T<E;T++)if(h.indexOf(d[T])===0)return!0;return!1}function E8(d,h){for(var T=0,E=d.length;T<E;T++)if(typeof d[T]=="string"&&d[T].toLowerCase()===h.toLowerCase()||d[T]&&typeof d[T].test=="function"&&d[T].test(h))return!0;return!1}function h8(d){return Object.prototype.toString.call(d)==="[object Array]"}function T8(d,h){try{return d[h]}catch(T){return or(T)}}function S8(d,h,T){var E=[],v=0;function y(R,D){function k(){return D.length>rr&&v>Yr}if(v++,D.length>Pe||k())return nr;if(R===null||typeof R!="object")return R;if(bm(E,R))return"[Circular]";if(E.push(R),typeof R.toJSON=="function")try{v--;var X=y(R.toJSON(),D);return E.pop(),X}catch(oi){return or(oi)}var ie=He(R);if(ie){v--;var je=y({name:R.name,message:R.message},D);return E.pop(),je}if(h8(R)){for(var qe=[],mn=0,ar=R.length;mn<ar;mn++){if(k()){qe.push(nr);break}qe.push(y(R[mn],D.concat("[]")))}return E.pop(),qe}var ni={};try{for(var Kr in R)if(Object.prototype.hasOwnProperty.call(R,Kr)){if(m8(T,D.join("."))&&E8(h,Kr)){ni[Kr]="[REDACTED]";continue}if(k()){ni[Kr]=nr;break}ni[Kr]=y(T8(R,Kr),D.concat(Kr))}}catch{}return E.pop(),ni}return y(d,[])}function TA(d,h,T,E){if(typeof T=="string"){E===void 0?E=null:E!==null&&typeof E!="string"&&(E=ve(E));var v=h[T];if(typeof v=="number"){d[v]={name:T,variant:E};return}d.push({name:T,variant:E}),h[T]=d.length-1}}function v8(d,h,T){if(u(h)){for(var E=0;E<h.length;++E){var v=h[E];v===null||typeof v!="object"||TA(d,T,v.name,v.variant)}return d}}function g8(d){return se(r(d,Boolean),function(h){var T=h.name,E=h.variant,v={featureFlag:T};return typeof E=="string"&&(v.variant=E),v})}function y8(d,h,T){var E=h[T];typeof E=="number"&&(d[E]=null,delete h[T])}var Xn={add:TA,clear:y8,merge:v8,toEventApi:g8},wc=function(d){return!!d&&(!!d.stack||!!d.stacktrace||!!d["opera#sourceloc"])&&typeof(d.stack||d.stacktrace||d["opera#sourceloc"])=="string"&&d.stack!==d.name+": "+d.message},Om=wR(),A8=function(d,h,T,E){var v;if(h){var y;if(T===null)return SA(d,h);typeof T=="object"&&(y=T),typeof T=="string"&&(y=(v={},v[T]=E,v)),y&&(h==="__proto__"||h==="constructor"||h==="prototype"||(d[h]||(d[h]={}),d[h]=de({},d[h],y)))}},x8=function(d,h,T){if(typeof h=="string"){if(!T)return d[h];if(d[h])return d[h][T]}},SA=function(d,h,T){if(typeof h=="string"){if(!T){delete d[h];return}h==="__proto__"||h==="constructor"||h==="prototype"||d[h]&&delete d[h][T]}},ti={add:A8,get:x8,clear:SA};function Rm(){return Rm=Object.assign?Object.assign.bind():function(d){for(var h=1;h<arguments.length;h++){var T=arguments[h];for(var E in T)({}).hasOwnProperty.call(T,E)&&(d[E]=T[E])}return d},Rm.apply(null,arguments)}var b8=UR(),fn=(function(){function d(T,E,v,y,R){v===void 0&&(v=[]),y===void 0&&(y=P8()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=R,this._handledState=y,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.response={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this._groupingDiscriminator=void 0,this.errors=[gA(T,E,d.__type,v)]}var h=d.prototype;return h.addMetadata=function(E,v,y){return ti.add(this._metadata,E,v,y)},h.setTraceCorrelation=function(E,v){typeof E=="string"&&(this._correlation=Rm({traceId:E},typeof v=="string"?{spanId:v}:{}))},h.getGroupingDiscriminator=function(){return this._groupingDiscriminator},h.setGroupingDiscriminator=function(E){var v=this._groupingDiscriminator;return(typeof E=="string"||E===null||E===void 0)&&(this._groupingDiscriminator=E),v},h.getMetadata=function(E,v){return ti.get(this._metadata,E,v)},h.clearMetadata=function(E,v){return ti.clear(this._metadata,E,v)},h.addFeatureFlag=function(E,v){v===void 0&&(v=null),Xn.add(this._features,this._featuresIndex,E,v)},h.addFeatureFlags=function(E){Xn.merge(this._features,E,this._featuresIndex)},h.getFeatureFlags=function(){return Xn.toEventApi(this._features)},h.clearFeatureFlag=function(E){Xn.clear(this._features,this._featuresIndex,E)},h.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},h.getUser=function(){return this._user},h.setUser=function(E,v,y){this._user={id:E,email:v,name:y}},h.toJSON=function(){return{payloadVersion:"4",exceptions:se(this.errors,function(E){return de({},E,{message:E.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,response:this.response,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,groupingDiscriminator:this._groupingDiscriminator,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},d})(),O8=function(d){var h={file:d.fileName,method:R8(d.functionName),lineNumber:d.lineNumber,columnNumber:d.columnNumber,code:void 0,inProject:void 0};return h.lineNumber>-1&&!h.file&&!h.method&&(h.file="global code"),h},R8=function(d){return/^global code$/i.test(d)?"global code":d},P8=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},vA=function(d){return typeof d=="string"?d:""};function gA(d,h,T,E){return{errorClass:vA(d),errorMessage:vA(h),type:T,stacktrace:o(E,function(v,y){var R=O8(y);try{return JSON.stringify(R)==="{}"?v:v.concat(R)}catch{return v}},[])}}function yA(d){return d.cause?[d].concat(yA(d.cause)):[d]}fn.getStacktrace=function(d,h,T){if(wc(d))return W.parse(d).slice(h);try{return r(b8.backtrace(),function(E){return(E.functionName||"").indexOf("StackGenerator$$")===-1}).slice(1+T)}catch{return[]}},fn.create=function(d,h,T,E,v,y){v===void 0&&(v=0);var R=xA(d,h,E,y),D=R[0],k=R[1],X;try{var ie=fn.getStacktrace(D,k>0?1+k+v:0,1+v);X=new fn(D.name,D.message,ie,T,d)}catch{X=new fn(D.name,D.message,[],T,d)}if(D.name==="InvalidError"&&X.addMetadata(""+E,"non-error parameter",AA(d)),D.cause){var je,qe=yA(D).slice(1),mn=se(qe,function(ar){var ni=Om(ar)&&wc(ar)?W.parse(ar):[],Kr=xA(ar,!0,"error cause"),oi=Kr[0];return oi.name==="InvalidError"&&X.addMetadata("error cause",AA(ar)),gA(oi.name,oi.message,fn.__type,ni)});(je=X.errors).push.apply(je,mn)}return X};var AA=function(d){return d===null?"null":d===void 0?"undefined":d},xA=function(d,h,T,E){var v,y=0,R=function(D){var k=T==="error cause"?"was":"received";E&&E.warn(T+" "+k+' a non-error: "'+D+'"');var X=new Error(T+" "+k+' a non-error. See "'+T+'" tab for more detail.');return X.name="InvalidError",X};if(!h)Om(d)?v=d:(v=R(typeof d),y+=2);else switch(typeof d){case"string":case"number":case"boolean":v=new Error(String(d)),y+=1;break;case"function":v=R("function"),y+=2;break;case"object":d!==null&&Om(d)?v=d:d!==null&&N8(d)?(v=new Error(d.message||d.errorMessage),v.name=d.name||d.errorClass,y+=1):(v=R(d===null?"null":"unsupported object"),y+=2);break;default:v=R("nothing"),y+=2}if(!wc(v))try{throw v}catch(D){wc(D)&&(v=D,y=1)}return[v,y]};fn.__type="browserjs";var N8=function(d){return(typeof d.name=="string"||typeof d.errorClass=="string")&&(typeof d.message=="string"||typeof d.errorMessage=="string")},Dc=fn,M8=function(d,h,T){var E=0,v=function(){if(E>=d.length)return T(null,!0);h(d[E],function(y,R){if(y)return T(y);if(R===!1)return T(null,!1);E++,v()})};v()},I8=function(d,h,T,E){var v=function(y,R){if(typeof y!="function")return R(null);try{if(y.length!==2){var D=y(h);return D&&typeof D.then=="function"?D.then(function(k){return setTimeout(function(){return R(null,k)})},function(k){setTimeout(function(){return T(k),R(null,!0)})}):R(null,D)}y(h,function(k,X){if(k)return T(k),R(null);R(null,X)})}catch(k){T(k),R(null)}};M8(d,v,E)},Pm=function(d,h,T,E){for(var v=!1,y=d.slice();!v&&y.length;)try{v=y.pop()(h)===!1}catch(R){E.error("Error occurred in "+T+" callback, continuing anyway\u2026"),E.error(R)}return v};function L8(d){return typeof d=="string"&&/^c[a-z0-9]{20,32}$/.test(d)}var C8=L8;function w8(d,h){var T="000000000"+d;return T.substr(T.length-h)}var Uc=w8;function D8(d){var h=4,T=36,E=Math.pow(T,h),v=0;function y(){return Uc((Math.random()*E<<0).toString(T),h)}function R(){return v=v<E?v:0,v++,v-1}function D(){var k="c",X=new Date().getTime().toString(T),ie=Uc(R().toString(T),h),je=d(),qe=y()+y();return k+X+ie+je+qe}return D.fingerprint=d,D.isCuid=C8,D}var U8=D8,V8=q("os"),k8=function(d){return d&&typeof d=="object"&&"default"in d?d:{default:d}},B8=k8(V8);function G8(){try{return B8.default.hostname()}catch{return process.env._CLUSTER_NETWORK_NAME_||process.env.COMPUTERNAME||"hostname"}}var bA=2,j8=Uc(process.pid.toString(36),bA),OA=G8(),H8=OA.length,q8=Uc(OA.split("").reduce(function(d,h){return+d+h.charCodeAt(0)},+H8+36).toString(36),bA);function F8(){return j8+q8}var Y8=F8,K8=U8(Y8),$8=K8,z8=(function(){function d(){this.id=$8(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var h=d.prototype;return h.getUser=function(){return this._user},h.setUser=function(E,v,y){this._user={id:E,email:v,name:y}},h.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},h._track=function(E){this[E._handledState.unhandled?"_unhandled":"_handled"]+=1},d})(),Nm=z8,W8=Xn.add,X8=Xn.clear,Mm=Xn.merge,J8="00000",Q8="https://notify.bugsnag.smartbear.com",Z8="https://sessions.bugsnag.smartbear.com",_n=function(){},eX=(function(){function d(T,E,v,y){var R=this;E===void 0&&(E=H.schema),v===void 0&&(v=[]),this._notifier=y,this._config={},this._schema=E,this._delivery={sendSession:_n,sendEvent:_n},this._logger={debug:_n,info:_n,warn:_n,error:_n},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._groupingDiscriminator=void 0,this._cbs={e:[],s:[],sp:[],b:[]},this.Client=d,this.Event=Dc,this.Breadcrumb=a,this.Session=Nm,this._config=this._configure(T,v),se(v.concat(this._config.plugins),function(X){X&&R._loadPlugin(X)}),this._depth=1;var D=this,k=this.notify;this.notify=function(){return k.apply(D,arguments)}}var h=d.prototype;return h.addMetadata=function(E,v,y){return ti.add(this._metadata,E,v,y)},h.getMetadata=function(E,v){return ti.get(this._metadata,E,v)},h.clearMetadata=function(E,v){return ti.clear(this._metadata,E,v)},h.addFeatureFlag=function(E,v){v===void 0&&(v=null),W8(this._features,this._featuresIndex,E,v)},h.addFeatureFlags=function(E){Mm(this._features,E,this._featuresIndex)},h.clearFeatureFlag=function(E){X8(this._features,this._featuresIndex,E)},h.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},h.getContext=function(){return this._context},h.setContext=function(E){this._context=E},h.getGroupingDiscriminator=function(){return this._groupingDiscriminator},h.setGroupingDiscriminator=function(E){var v=this._groupingDiscriminator;return(typeof E=="string"||E===null||E===void 0)&&(this._groupingDiscriminator=E),v},h._configure=function(E,v){var y=o(v,function(X,ie){return ie&&ie.configSchema?de({},X,ie.configSchema):X},this._schema);E.endpoints||(E.sendPayloadChecksums="sendPayloadChecksums"in E?E.sendPayloadChecksums:!0);var R=o(A(y),function(X,ie){var je=y[ie].defaultValue(E[ie]);if(E[ie]!==void 0){var qe=y[ie].validate(E[ie]);qe?y[ie].allowPartialObject?X.config[ie]=de(je,E[ie]):X.config[ie]=E[ie]:(X.errors[ie]=y[ie].message,X.config[ie]=je)}else X.config[ie]=je;return X},{errors:{},config:{}}),D=R.errors,k=R.config;if(y.apiKey){if(!k.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(k.apiKey)||(D.apiKey="should be a string of 32 hexadecimal characters"),E.endpoints===void 0&&k.apiKey.indexOf(J8)===0&&(k.endpoints={notify:Q8,sessions:Z8})}return this._metadata=de({},k.metadata),Mm(this._features,k.featureFlags,this._featuresIndex),this._user=de({},k.user),this._context=k.context,k.logger&&(this._logger=k.logger),k.onError&&(this._cbs.e=this._cbs.e.concat(k.onError)),k.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(k.onBreadcrumb)),k.onSession&&(this._cbs.s=this._cbs.s.concat(k.onSession)),A(D).length&&this._logger.warn(tX(D,E)),k},h.getUser=function(){return this._user},h.setUser=function(E,v,y){this._user={id:E,email:v,name:y}},h._loadPlugin=function(E){var v=E.load(this);E.name&&(this._plugins["~"+E.name+"~"]=v)},h.getPlugin=function(E){return this._plugins["~"+E+"~"]},h._setDelivery=function(E){this._delivery=E(this)},h.startSession=function(){var E=new Nm;E.app.releaseStage=this._config.releaseStage,E.app.version=this._config.appVersion,E.app.type=this._config.appType,E._user=de({},this._user);var v=Pm(this._cbs.s,E,"onSession",this._logger);return v?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,E)},h.addOnError=function(E,v){v===void 0&&(v=!1),this._cbs.e[v?"unshift":"push"](E)},h.removeOnError=function(E){this._cbs.e=r(this._cbs.e,function(v){return v!==E})},h._addOnSessionPayload=function(E){this._cbs.sp.push(E)},h.addOnSession=function(E){this._cbs.s.push(E)},h.removeOnSession=function(E){this._cbs.s=r(this._cbs.s,function(v){return v!==E})},h.addOnBreadcrumb=function(E,v){v===void 0&&(v=!1),this._cbs.b[v?"unshift":"push"](E)},h.removeOnBreadcrumb=function(E){this._cbs.b=r(this._cbs.b,function(v){return v!==E})},h.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},h.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},h.leaveBreadcrumb=function(E,v,y){if(E=typeof E=="string"?E:"",y=typeof y=="string"&&s(c,y)?y:"manual",v=typeof v=="object"&&v!==null?v:{},!!E){var R=new a(E,v,y),D=Pm(this._cbs.b,R,"onBreadcrumb",this._logger);if(D){this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback");return}this._breadcrumbs.push(R),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},h._isBreadcrumbTypeEnabled=function(E){var v=this._config.enabledBreadcrumbTypes;return v===null||s(v,E)},h.notify=function(E,v,y){y===void 0&&(y=_n);var R=Dc.create(E,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(R,v,y)},h._notify=function(E,v,y){var R=this;if(y===void 0&&(y=_n),E.app=de({},E.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),E.context=E.context||this._context,E._metadata=de({},E._metadata,this._metadata),E._user=de({},E._user,this._user),E.breadcrumbs=this._breadcrumbs.slice(),E.setGroupingDiscriminator(this._groupingDiscriminator),Mm(E._features,this._features,E._featuresIndex),this._config.enabledReleaseStages!==null&&!s(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),y(null,E);var D=E.severity,k=function(ie){R._logger.error("Error occurred in onError callback, continuing anyway\u2026"),R._logger.error(ie)},X=[].concat(this._cbs.e).concat(v);I8(X,E,k,function(ie,je){if(ie&&k(ie),!je)return R._logger.debug("Event not sent due to onError callback"),y(null,E);R._isBreadcrumbTypeEnabled("error")&&d.prototype.leaveBreadcrumb.call(R,E.errors[0].errorClass,{errorClass:E.errors[0].errorClass,errorMessage:E.errors[0].errorMessage,severity:E.severity},"error"),D!==E.severity&&(E._handledState.severityReason={type:"userCallbackSetSeverity"}),E.unhandled!==E._handledState.unhandled&&(E._handledState.severityReason.unhandledOverridden=!0,E._handledState.unhandled=E.unhandled),R._session&&(R._session._track(E),E._session=R._session),R._delivery.sendEvent({apiKey:E.apiKey||R._config.apiKey,notifier:R._notifier,events:[E]},function(qe){return y(qe,E)})})},d})(),tX=function(d,h){var T=new Error(`Invalid configuration
|
|
12
|
+
`+se(A(d),function(E){return" - "+E+" "+d[E]+", got "+rX(h[E])}).join(`
|
|
13
|
+
|
|
14
|
+
`));return T},rX=function(d){switch(typeof d){case"string":case"number":case"object":return JSON.stringify(d);default:return String(d)}},Vc=eX,kc={},RA=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request","events.[].response"];kc.event=function(d,h){var T=ve(d,null,null,{redactedPaths:RA,redactedKeys:h});return T.length>1e6&&(d.events[0]._metadata={notifier:`WARNING!
|
|
15
|
+
Serialized payload was `+T.length/1e6+`MB (limit = 1MB)
|
|
16
|
+
metadata was removed`},T=ve(d,null,null,{redactedPaths:RA,redactedKeys:h})),T},kc.session=function(d,h){var T=ve(d,null,null);return T};var nX=q("http"),oX=q("https"),iX=q("url"),aX=iX.parse,PA=function(d,h){var T=d.url,E=d.headers,v=d.body,y=d.agent,R=!1,D=function(qe){R||(R=!0,h(qe))},k=aX(T),X=k.protocol==="https:",ie=X?oX:nX,je=ie.request({method:"POST",hostname:k.hostname,port:k.port,path:k.path,headers:E,agent:y});je.on("error",D),je.on("response",function(qe){sX(qe,function(mn,ar){if(mn)return D(mn);if(qe.statusCode<200||qe.statusCode>=300)return D(new Error("Bad statusCode from API: "+qe.statusCode+`
|
|
17
|
+
`+ar));h(null,ar)})}),je.write(v),je.end()},sX=function(d,h){var T="";d.on("error",h),d.setEncoding("utf8"),d.on("data",function(E){T+=E}),d.on("end",function(){return h(null,T)})},cX=function(d){return{sendEvent:function(h,T){T===void 0&&(T=function(){});var E=kc.event(h,d._config.redactedKeys),v=function(R){R&&d._logger.error(`Event failed to send\u2026
|
|
18
|
+
`+(R&&R.stack?R.stack:R),R),E.length>1e6&&d._logger.warn("Event oversized ("+(E.length/1e6).toFixed(2)+" MB)"),T(R)};if(d._config.endpoints.notify===null){var y=new Error("Event not sent due to incomplete endpoint configuration");return v(y)}try{PA({url:d._config.endpoints.notify,headers:{"Content-Type":"application/json","Bugsnag-Api-Key":h.apiKey||d._config.apiKey,"Bugsnag-Payload-Version":"4","Bugsnag-Sent-At":new Date().toISOString()},body:E,agent:d._config.agent},function(R,D){return v(R)})}catch(R){v(R)}},sendSession:function(h,T){T===void 0&&(T=function(){});var E=function(y){y&&d._logger.error(`Session failed to send\u2026
|
|
19
|
+
`+(y&&y.stack?y.stack:y),y),T(y)};if(d._config.endpoints.session===null){var v=new Error("Session not sent due to incomplete endpoint configuration");return E(v)}try{PA({url:d._config.endpoints.sessions,headers:{"Content-Type":"application/json","Bugsnag-Api-Key":d._config.apiKey,"Bugsnag-Payload-Version":"1","Bugsnag-Sent-At":new Date().toISOString()},body:kc.session(h,d._config.redactedKeys),agent:d._config.agent},function(y){return E(y)})}catch(y){E(y)}}}};function rs(){return rs=Object.assign?Object.assign.bind():function(d){for(var h=1;h<arguments.length;h++){var T=arguments[h];for(var E in T)({}).hasOwnProperty.call(T,E)&&(d[E]=T[E])}return d},rs.apply(null,arguments)}var Im=H.schema,uX=q("os"),lX=q("util"),pX=lX.inspect,dX={appType:rs({},Im.appType,{defaultValue:function(){return"node"}}),projectRoot:{defaultValue:function(){return process.cwd()},validate:function(d){return d===null||F(d)},message:"should be string"},hostname:{defaultValue:function(){return uX.hostname()},message:"should be a string",validate:function(d){return d===null||F(d)}},logger:rs({},Im.logger,{defaultValue:function(){return fX()}}),releaseStage:rs({},Im.releaseStage,{defaultValue:function(){return process.env.NODE_ENV||"production"}}),agent:{defaultValue:function(){},message:"should be an HTTP(s) agent",validate:function(d){return d===void 0||_X(d)}},onUncaughtException:{defaultValue:function(){return function(d,h,T){T.error("Uncaught exception"+MA(h)+`, the process will now terminate\u2026
|
|
20
|
+
`+NA(d)),process.exit(1)}},message:"should be a function",validate:function(d){return typeof d=="function"}},onUnhandledRejection:{defaultValue:function(){return function(d,h,T){T.error("Unhandled rejection"+MA(h)+`\u2026
|
|
21
|
+
`+NA(d))}},message:"should be a function",validate:function(d){return typeof d=="function"}}},NA=function(d){return d&&d.stack?d.stack:pX(d)},fX=function(){return["debug","info","warn","error"].reduce(function(d,h){var T=console[h]||console.log;return d[h]=T.bind(console,"[bugsnag]"),d},{})},MA=function(d){return d.request&&Object.keys(d.request).length?" at "+d.request.httpMethod+" "+(d.request.path||d.request.url):""},_X=function(d){return typeof d=="object"&&d!==null||typeof d=="boolean"},IA=new Date,mX=function(){IA=new Date},EX={name:"appDuration",load:function(d){return d.addOnError(function(h){var T=new Date;h.app.duration=T-IA},!0),{reset:mX}}},Lm={};Lm.load=function(d){var h=/^(local-)?dev(elopment)?$/.test(d._config.releaseStage);h||!d._isBreadcrumbTypeEnabled("log")||se(LA,function(T){var E=console[T];console[T]=function(){for(var v=arguments.length,y=new Array(v),R=0;R<v;R++)y[R]=arguments[R];d.leaveBreadcrumb("Console output",o(y,function(D,k,X){var ie="[Unknown value]";try{ie=String(k)}catch{}if(ie==="[object Object]")try{ie=JSON.stringify(k)}catch{}return D["["+X+"]"]=ie,D},{severity:T.indexOf("group")===0?"log":T}),"log"),E.apply(console,y)},console[T]._restore=function(){console[T]=E}})},process.env.NODE_ENV!=="production"&&(Lm.destroy=function(){return LA.forEach(function(d){typeof console[d]._restore=="function"&&console[d]._restore()})});var LA=r(["log","debug","info","warn","error"],function(d){return typeof console<"u"&&typeof console[d]=="function"}),Cm={},CA=[];Cm=function(d){var h=new d.Client({},{},[],d._notifier);return h._config=d._config,h._breadcrumbs=d._breadcrumbs.slice(),h._metadata=de({},d._metadata),h._features=[].concat(d._features),h._featuresIndex=de({},d._featuresIndex),h._user=de({},d._user),h._context=d._context,h._cbs={e:d._cbs.e.slice(),s:d._cbs.s.slice(),sp:d._cbs.sp.slice(),b:d._cbs.b.slice()},h._logger=d._logger,h._delivery=d._delivery,h._sessionDelegate=d._sessionDelegate,CA.forEach(function(T){T(h)}),h},Cm.registerCallback=function(d){CA.push(d)};var ri={};ri.getStack=function(){return new Error().stack.split(`
|
|
22
|
+
`).slice(3).join(`
|
|
23
|
+
`)},ri.maybeUseFallbackStack=function(d,h){var T=d.stack.split(`
|
|
24
|
+
`);return(T.length===1||T.length===2&&/at Error \(native\)/.test(T[1]))&&(d.stack=T[0]+`
|
|
25
|
+
`+h),d};var Bc={},hX=ri.getStack;Bc={name:"contextualize",load:function(d){var h=function(T,E){var v=hX(),y=Cm(d);return y.fallbackStack=v,y.addOnError(E),d._clientContext.run(y,T)};return h}},Bc.default=Bc;var Gc={},TX=ri.getStack,SX=ri.maybeUseFallbackStack;Gc={name:"intercept",load:function(d){var h=function(T,E){T===void 0&&(T=function(){}),typeof E!="function"&&(E=T,T=function(){});var v=TX();return function(y){if(y){y.stack&&SX(y,v);var R=d.Event.create(y,!0,{severity:"warning",unhandled:!1,severityReason:{type:"callbackErrorIntercept"}},"intercept()",1);d._notify(R,T);return}for(var D=arguments.length,k=new Array(D>1?D-1:0),X=1;X<D;X++)k[X-1]=arguments[X];E.apply(void 0,k)}};return h}},Gc.default=Gc;function jc(){return jc=Object.assign?Object.assign.bind():function(d){for(var h=1;h<arguments.length;h++){var T=arguments[h];for(var E in T)({}).hasOwnProperty.call(T,E)&&(d[E]=T[E])}return d},jc.apply(null,arguments)}var ns=q("os"),vX={load:function(d){var h={osName:ns.platform()+" ("+ns.arch()+")",osVersion:ns.release(),totalMemory:ns.totalmem(),hostname:d._config.hostname,runtimeVersions:{node:process.versions.node}};d._addOnSessionPayload(function(T){T.device=jc({},T.device,h)}),d.addOnError(function(T){T.device=jc({},T.device,h,{freeMemory:ns.freemem(),time:new Date})},!0)}},wA=q("path"),gX=wA.join,yX=wA.resolve,DA=function(d){return gX(yX(d),"/")},AX={load:function(d){return d.addOnError(function(h){if(d._config.projectRoot){var T=DA(d._config.projectRoot),E=h.errors.reduce(function(v,y){return v.concat(y.stacktrace)},[]);E.map(function(v){v.inProject=typeof v.file=="string"&&v.file.indexOf(T)===0&&!/\/node_modules\//.test(v.file)})}})}};function wm(){return wm=Object.assign?Object.assign.bind():function(d){for(var h=1;h<arguments.length;h++){var T=arguments[h];for(var E in T)({}).hasOwnProperty.call(T,E)&&(d[E]=T[E])}return d},wm.apply(null,arguments)}function xX(d,h){d.prototype=Object.create(h.prototype),d.prototype.constructor=d,Dm(d,h)}function Dm(d,h){return Dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,E){return T.__proto__=E,T},Dm(d,h)}var UA=3,VA=200,bX=q("fs"),OX=bX.createReadStream,RX=q("stream"),PX=RX.Writable,NX=$R(),MX=WR(),IX=q("path"),LX={load:function(d){if(d._config.sendCode){var h=function(T,E){return new Promise(function(v,y){try{if(!T.lineNumber||!T.file)return v(T);var R=IX.resolve(d._config.projectRoot,T.file),D=R+"@"+T.lineNumber;if(D in E)return T.code=E[D],v(T);CX(R,T.lineNumber,function(k,X){return k||(T.code=E[D]=X),v(T)})}catch{return v(T)}})};d.addOnError(function(T){return new Promise(function(E,v){var y=Object.create(null),R=T.errors.reduce(function(D,k){return D.concat(k.stacktrace)},[]);DX(R.map(function(D){return function(){return h(D,y)}})).then(E).catch(v)})})}},configSchema:{sendCode:{defaultValue:function(){return!0},validate:function(d){return d===!0||d===!1},message:"should be true or false"}}},CX=function(d,h,T){var E=h-UA,v=h+UA,y=OX(d,{encoding:"utf8"}),R=new MX.LineStream({keepEmptyLines:!0}),D=new wX({start:E,end:v});D.on("done",function(){return y.destroy()}),NX(y,R,D,function(k){if(k&&k.message!=="premature close")return T(k);T(null,D.getCode())})},wX=(function(d){function h(E){var v;return v=d.call(this,wm({},E,{decodeStrings:!1}))||this,v._start=E.start,v._end=E.end,v._n=0,v._code={},v}xX(h,d);var T=h.prototype;return T._write=function(v,y,R){return this._n++,this._n<this._start?R(null):this._n<=this._end?(this._code[String(this._n)]=v.length<=VA?v:v.substr(0,VA),R(null)):(this.emit("done"),R(null))},T.getCode=function(){return this._code},h})(PX),DX=function(d){return new Promise(function(h,T){var E=[];d.reduce(function(v,y){return v.then(function(R){return E.push(R),y()})},Promise.resolve()).then(function(v){E.push(v)}).then(function(){h(E.slice(1))})})},UX=ri.maybeUseFallbackStack,Um,VX={load:function(d){d._config.autoDetectErrors&&d._config.enabledErrorTypes.unhandledExceptions&&(Um=function(h){var T=d._clientContext&&d._clientContext.getStore(),E=T||d;h.stack&&E.fallbackStack&&UX(h,E.fallbackStack);var v=E.Event.create(h,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},"uncaughtException handler",1);return new Promise(function(y){E._notify(v,function(){},function(R,D){R&&E._logger.error("Failed to send event to Bugsnag"),E._config.onUncaughtException(h,D,E._logger),y()})})},process.prependListener("uncaughtException",Um))},destroy:function(){process.removeListener("uncaughtException",Um)}},Hc,kX={load:function(d){!d._config.autoDetectErrors||!d._config.enabledErrorTypes.unhandledRejections||(Hc=function(h){var T=d._clientContext&&d._clientContext.getStore(),E=T||d,v=!d._config.reportUnhandledPromiseRejectionsAsHandled,y=E.Event.create(h,!1,{severity:"error",unhandled:v,severityReason:{type:"unhandledPromiseRejection"}},"unhandledRejection handler",1);return new Promise(function(R){E._notify(y,function(){},function(D,k){D&&E._logger.error("Failed to send event to Bugsnag"),E._config.onUnhandledRejection(h,k,E._logger),R()})})},process.prependListener?process.prependListener("unhandledRejection",Hc):process.on("unhandledRejection",Hc))},destroy:function(){process.removeListener("unhandledRejection",Hc)}},BX=Vm;function Vm(d){d=d||{},this.ms=d.min||100,this.max=d.max||1e4,this.factor=d.factor||2,this.jitter=d.jitter>0&&d.jitter<=1?d.jitter:0,this.attempts=0}Vm.prototype.duration=function(){var d=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var h=Math.random(),T=Math.floor(h*this.jitter*d);d=(Math.floor(h*10)&1)==0?d-T:d+T}return Math.min(d,this.max)|0},Vm.prototype.reset=function(){this.attempts=0};function GX(d,h){d.prototype=Object.create(h.prototype),d.prototype.constructor=d,km(d,h)}function km(d,h){return km=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,E){return T.__proto__=E,T},km(d,h)}var jX=10*1e3,HX=q("events").EventEmitter,qX=(function(d){function h(E){var v;return v=d.call(this)||this,v._sessions=new Map,v._interval=null,v._intervalLength=E||jX,v._summarize=v._summarize.bind(v),v}GX(h,d);var T=h.prototype;return T.start=function(){this._interval||(this._interval=setInterval(this._summarize,this._intervalLength).unref())},T.stop=function(){clearInterval(this._interval),this._interval=null},T.track=function(v){var y=FX(v.startedAt),R=this._sessions.get(y);return this._sessions.set(y,typeof R>"u"?1:R+1),v},T._summarize=function(){var v=this,y=[];this._sessions.forEach(function(R,D){y.push({startedAt:D,sessionsStarted:R}),v._sessions.delete(D)}),y.length&&this.emit("summary",y)},h})(HX),FX=function(d){var h=new Date(d);return h.setSeconds(0),h.setMilliseconds(0),h.toISOString()},YX={load:function(d){var h=null;d._sessionDelegate={startSession:function(T,E){return h||(h=new qX(T._config.sessionSummaryInterval),h.on("summary",KX(T)),h.start()),T._session=E,T._pausedSession=null,h.track(T._session),T},pauseSession:function(T){T._pausedSession=T._session,T._session=null},resumeSession:function(T){return T._session?T:T._pausedSession?(T._session=T._pausedSession,T._pausedSession=null,T):T.startSession()}}},configSchema:{sessionSummaryInterval:{defaultValue:function(){},validate:function(d){return d===void 0||O()(d)},message:"should be a positive integer"}}},KX=function(d){return function(h){if(d._config.enabledReleaseStages!==null&&!d._config.enabledReleaseStages.includes(d._config.releaseStage)){d._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration");return}if(!h.length)return;var T=new BX({min:1e3,max:1e4}),E=10;y(v);function v(R){if(!R){var D=h.reduce(function(k,X){return k+X.sessionsStarted},0);return d._logger.debug(D+" session(s) reported")}if(T.attempts===10){d._logger.error("Session delivery failed, max retries exceeded",R);return}d._logger.debug("Session delivery failed, retry #"+(T.attempts+1)+"/"+E,R),setTimeout(function(){return y(v)},T.duration())}function y(R){var D={notifier:d._notifier,device:{},app:{releaseStage:d._config.releaseStage,version:d._config.appVersion,type:d._config.appType},sessionCounts:h},k=Pm(d._cbs.sp,D,"onSessionPayload",d._logger);if(k)return d._logger.debug("Session not sent due to onSessionPayload callback"),R(null);d._delivery.sendSession(D,R)}}},$X={load:function(d){d.addOnError(function(h){var T=h.errors.reduce(function(E,v){return E.concat(v.stacktrace)},[]);T.forEach(function(E){typeof E.file=="string"&&(E.file=E.file.replace(/\\/g,"/"))})})}},zX={load:function(d){return d.addOnError(function(h){if(d._config.projectRoot){var T=DA(d._config.projectRoot),E=h.errors.reduce(function(v,y){return v.concat(y.stacktrace)},[]);E.map(function(v){typeof v.file=="string"&&v.file.indexOf(T)===0&&(v.file=v.file.replace(T,""))})}})}},Jn={};function Bm(){return Bm=Object.assign?Object.assign.bind():function(d){for(var h=1;h<arguments.length;h++){var T=arguments[h];for(var E in T)({}).hasOwnProperty.call(T,E)&&(d[E]=T[E])}return d},Bm.apply(null,arguments)}var WX="Bugsnag Node",XX="8.9.0",JX="https://github.com/bugsnag/bugsnag-js",QX=q("async_hooks"),ZX=QX.AsyncLocalStorage;Dc.__type="nodejs";var eJ=Bm({},H.schema,dX),tJ=[EX,LX,AX,zX,YX,vX,VX,kX,Gc,Bc,$X,Lm],ir={_client:null,createClient:function(d){typeof d=="string"&&(d={apiKey:d}),d||(d={});var h=new Vc(d,eJ,tJ,{name:WX,version:XX,url:JX});return Object.keys(Vc.prototype).forEach(function(T){var E=h[T];h[T]=function(){var v=h._clientContext&&typeof h._clientContext.getStore=="function"?h._clientContext.getStore():null,y=v||h,R=v?v[T]:E;y._depth+=1;var D=R.apply(y,arguments);return y._depth-=1,D}}),h._clientContext=new ZX,h._setDelivery(cX),h._logger.debug("Loaded!"),h},start:function(d){return ir._client?(ir._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),ir._client):(ir._client=ir.createClient(d),ir._client)},isStarted:function(){return ir._client!=null}};return Object.keys(Vc.prototype).forEach(function(d){/^_/.test(d)||(ir[d]=function(){var h=ir._client,T=h&&h._clientContext&&h._clientContext.getStore();if(T&&(h=T),!h)return console.error("Bugsnag."+d+"() was called before Bugsnag.start()");h._depth+=1;var E=h[d].apply(h,arguments);return h._depth-=1,E})}),Jn=ir,Jn.Client=Vc,Jn.Event=Dc,Jn.Session=Nm,Jn.Breadcrumb=a,Jn.default=ir,Jn})});var ZR=_((Cje,QR)=>{l();QR.exports=JR()});var Mu=_(Ts=>{"use strict";l();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.AggregationTemporality=void 0;var PQ;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(PQ=Ts.AggregationTemporality||(Ts.AggregationTemporality={}))});var Mi=_(Ss=>{"use strict";l();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.DataPointType=void 0;var NQ;(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(NQ=Ss.DataPointType||(Ss.DataPointType={}))});var Zr,kE=w(()=>{l();Zr="1.9.1"});function MQ(t){let e=new Set([t]),n=new Set,i=t.match(lP);if(!i)return()=>!1;let a={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(a.prerelease!=null)return function(s){return s===t};function c(r){return n.add(r),!1}function o(r){return e.add(r),!0}return function(s){if(e.has(s))return!0;if(n.has(s))return!1;let u=s.match(lP);if(!u)return c(s);let p={major:+u[1],minor:+u[2],patch:+u[3],prerelease:u[4]};return p.prerelease!=null||a.major!==p.major?c(s):a.major===0?a.minor===p.minor&&a.patch<=p.patch?o(s):c(s):a.minor<=p.minor?o(s):c(s)}}var lP,pP,dP=w(()=>{l();kE();lP=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;pP=MQ(Zr)});function Or(t,e,n,i=!1){var a;let c=gs[vs]=(a=gs[vs])!==null&&a!==void 0?a:{version:Zr};if(!i&&c[t]){let o=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);return n.error(o.stack||o.message),!1}if(c.version!==Zr){let o=new Error(`@opentelemetry/api: Registration of version v${c.version} for ${t} does not match previously registered API v${Zr}`);return n.error(o.stack||o.message),!1}return c[t]=e,n.debug(`@opentelemetry/api: Registered a global for ${t} v${Zr}.`),!0}function kt(t){var e,n;let i=(e=gs[vs])===null||e===void 0?void 0:e.version;if(!(!i||!pP(i)))return(n=gs[vs])===null||n===void 0?void 0:n[t]}function Rr(t,e){e.debug(`@opentelemetry/api: Unregistering a global for ${t} v${Zr}.`);let n=gs[vs];n&&delete n[t]}var IQ,vs,gs,go=w(()=>{l();kE();dP();IQ=Zr.split(".")[0],vs=Symbol.for(`opentelemetry.js.api.${IQ}`),gs=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});function ys(t,e,n){let i=kt("diag");if(i)return i[t](e,...n)}var Iu,fP=w(()=>{l();go();Iu=class{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return ys("debug",this._namespace,e)}error(...e){return ys("error",this._namespace,e)}info(...e){return ys("info",this._namespace,e)}warn(...e){return ys("warn",this._namespace,e)}verbose(...e){return ys("verbose",this._namespace,e)}}});var Ue,Lu=w(()=>{l();(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(Ue||(Ue={}))});function _P(t,e){t<Ue.NONE?t=Ue.NONE:t>Ue.ALL&&(t=Ue.ALL),e=e||{};function n(i,a){let c=e[i];return typeof c=="function"&&t>=a?c.bind(e):function(){}}return{error:n("error",Ue.ERROR),warn:n("warn",Ue.WARN),info:n("info",Ue.INFO),debug:n("debug",Ue.DEBUG),verbose:n("verbose",Ue.VERBOSE)}}var mP=w(()=>{l();Lu()});var LQ,Ke,yo=w(()=>{l();fP();mP();Lu();go();LQ="diag",Ke=class t{static instance(){return this._instance||(this._instance=new t),this._instance}constructor(){function e(a){return function(...c){let o=kt("diag");if(o)return o[a](...c)}}let n=this,i=(a,c={logLevel:Ue.INFO})=>{var o,r,s;if(a===n){let S=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((o=S.stack)!==null&&o!==void 0?o:S.message),!1}typeof c=="number"&&(c={logLevel:c});let u=kt("diag"),p=_P((r=c.logLevel)!==null&&r!==void 0?r:Ue.INFO,a);if(u&&!c.suppressOverrideMessage){let S=(s=new Error().stack)!==null&&s!==void 0?s:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${S}`),p.warn(`Current logger will overwrite one already registered from ${S}`)}return Or("diag",p,n,!0)};n.setLogger=i,n.disable=()=>{Rr(LQ,n)},n.createComponentLogger=a=>new Iu(a),n.verbose=e("verbose"),n.debug=e("debug"),n.info=e("info"),n.warn=e("warn"),n.error=e("error")}}});var Cu,EP=w(()=>{l();Cu=class t{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let n=this._entries.get(e);if(n)return Object.assign({},n)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,n){let i=new t(this._entries);return i._entries.set(e,n),i}removeEntry(e){let n=new t(this._entries);return n._entries.delete(e),n}removeEntries(...e){let n=new t(this._entries);for(let i of e)n._entries.delete(i);return n}clear(){return new t}}});var hP,TP=w(()=>{l();hP=Symbol("BaggageEntryMetadata")});function SP(t={}){return new Cu(new Map(Object.entries(t)))}function vP(t){return typeof t!="string"&&(CQ.error(`Cannot create baggage metadata from unknown type: ${typeof t}`),t=""),{__TYPE__:hP,toString(){return t}}}var CQ,BE=w(()=>{l();yo();EP();TP();CQ=Ke.instance()});function Ii(t){return Symbol.for(t)}var GE,wu,As=w(()=>{l();GE=class t{constructor(e){let n=this;n._currentContext=e?new Map(e):new Map,n.getValue=i=>n._currentContext.get(i),n.setValue=(i,a)=>{let c=new t(n._currentContext);return c._currentContext.set(i,a),c},n.deleteValue=i=>{let a=new t(n._currentContext);return a._currentContext.delete(i),a}}},wu=new GE});var jE,HE,Li,gP=w(()=>{l();jE=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],HE={};if(typeof console<"u"){let t=["error","warn","info","debug","trace","log"];for(let e of t)typeof console[e]=="function"&&(HE[e]=console[e])}Li=class{constructor(){function e(n){return function(...i){let a=HE[n];if(typeof a!="function"&&(a=HE.log),typeof a!="function"&&console&&(a=console[n],typeof a!="function"&&(a=console.log)),typeof a=="function")return a.apply(console,i)}}for(let n=0;n<jE.length;n++)this[jE[n].n]=e(jE[n].c)}}});function yP(){return JE}var qE,Ci,FE,YE,KE,$E,xs,zE,WE,XE,JE,wQ,DQ,UQ,VQ,kQ,BQ,GQ,QE=w(()=>{l();qE=class{constructor(){}createGauge(e,n){return DQ}createHistogram(e,n){return UQ}createCounter(e,n){return wQ}createUpDownCounter(e,n){return VQ}createObservableGauge(e,n){return BQ}createObservableCounter(e,n){return kQ}createObservableUpDownCounter(e,n){return GQ}addBatchObservableCallback(e,n){}removeBatchObservableCallback(e){}},Ci=class{},FE=class extends Ci{add(e,n){}},YE=class extends Ci{add(e,n){}},KE=class extends Ci{record(e,n){}},$E=class extends Ci{record(e,n){}},xs=class{addCallback(e){}removeCallback(e){}},zE=class extends xs{},WE=class extends xs{},XE=class extends xs{},JE=new qE,wQ=new FE,DQ=new KE,UQ=new $E,VQ=new YE,kQ=new zE,BQ=new WE,GQ=new XE});var Rn,AP=w(()=>{l();(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(Rn||(Rn={}))});var Du,Uu,ZE=w(()=>{l();Du={get(t,e){if(t!=null)return t[e]},keys(t){return t==null?[]:Object.keys(t)}},Uu={set(t,e,n){t!=null&&(t[e]=n)}}});var Vu,xP=w(()=>{l();As();Vu=class{active(){return wu}with(e,n,i,...a){return n.call(i,...a)}bind(e,n){return n}enable(){return this}disable(){return this}}});var eh,jQ,Pr,bs=w(()=>{l();xP();go();yo();eh="context",jQ=new Vu,Pr=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalContextManager(e){return Or(eh,e,Ke.instance())}active(){return this._getContextManager().active()}with(e,n,i,...a){return this._getContextManager().with(e,n,i,...a)}bind(e,n){return this._getContextManager().bind(e,n)}_getContextManager(){return kt(eh)||jQ}disable(){this._getContextManager().disable(),Rr(eh,Ke.instance())}}});var wi,th=w(()=>{l();(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(wi||(wi={}))});var Os,Rs,ku,Bu=w(()=>{l();th();Os="0000000000000000",Rs="00000000000000000000000000000000",ku={traceId:Rs,spanId:Os,traceFlags:wi.NONE}});var Nr,Gu=w(()=>{l();Bu();Nr=class{constructor(e=ku){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,n){return this}setAttributes(e){return this}addEvent(e,n){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,n){}}});function ju(t){return t.getValue(rh)||void 0}function bP(){return ju(Pr.getInstance().active())}function Ps(t,e){return t.setValue(rh,e)}function OP(t){return t.deleteValue(rh)}function RP(t,e){return Ps(t,new Nr(e))}function Hu(t){var e;return(e=ju(t))===null||e===void 0?void 0:e.spanContext()}var rh,nh=w(()=>{l();As();Gu();bs();rh=Ii("OpenTelemetry Context Key SPAN")});function PP(t,e){if(typeof t!="string"||t.length!==e)return!1;let n=0;for(let i=0;i<t.length;i+=4)n+=(qu[t.charCodeAt(i)]|0)+(qu[t.charCodeAt(i+1)]|0)+(qu[t.charCodeAt(i+2)]|0)+(qu[t.charCodeAt(i+3)]|0);return n===e}function oh(t){return PP(t,32)&&t!==Rs}function ih(t){return PP(t,16)&&t!==Os}function Di(t){return oh(t.traceId)&&ih(t.spanId)}function NP(t){return new Nr(t)}var qu,Fu=w(()=>{l();Bu();Gu();qu=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1])});function HQ(t){return t!==null&&typeof t=="object"&&"spanId"in t&&typeof t.spanId=="string"&&"traceId"in t&&typeof t.traceId=="string"&&"traceFlags"in t&&typeof t.traceFlags=="number"}var ah,Ui,sh=w(()=>{l();bs();nh();Gu();Fu();ah=Pr.getInstance(),Ui=class{startSpan(e,n,i=ah.active()){if(!!n?.root)return new Nr;let c=i&&Hu(i);return HQ(c)&&Di(c)?new Nr(c):new Nr}startActiveSpan(e,n,i,a){let c,o,r;if(arguments.length<2)return;arguments.length===2?r=n:arguments.length===3?(c=n,r=i):(c=n,o=i,r=a);let s=o??ah.active(),u=this.startSpan(e,c,s),p=Ps(s,u);return ah.with(p,r,void 0,u)}}});var qQ,Vi,ch=w(()=>{l();sh();qQ=new Ui,Vi=class{constructor(e,n,i,a){this._provider=e,this.name=n,this.version=i,this.options=a}startSpan(e,n,i){return this._getTracer().startSpan(e,n,i)}startActiveSpan(e,n,i,a){let c=this._getTracer();return Reflect.apply(c.startActiveSpan,c,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):qQ}}});var Yu,MP=w(()=>{l();sh();Yu=class{getTracer(e,n,i){return new Ui}}});var FQ,Ao,uh=w(()=>{l();ch();MP();FQ=new Yu,Ao=class{getTracer(e,n,i){var a;return(a=this.getDelegateTracer(e,n,i))!==null&&a!==void 0?a:new Vi(this,e,n,i)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:FQ}setDelegate(e){this._delegate=e}getDelegateTracer(e,n,i){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(e,n,i)}}});var Ku,IP=w(()=>{l();(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ku||(Ku={}))});var $u,LP=w(()=>{l();(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})($u||($u={}))});var zu,CP=w(()=>{l();(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(zu||(zu={}))});function wP(t){return $Q.test(t)}function DP(t){return zQ.test(t)&&!WQ.test(t)}var lh,YQ,KQ,$Q,zQ,WQ,UP=w(()=>{l();lh="[_0-9a-z-*/]",YQ=`[a-z]${lh}{0,255}`,KQ=`[a-z0-9]${lh}{0,240}@[a-z]${lh}{0,13}`,$Q=new RegExp(`^(?:${YQ}|${KQ})$`),zQ=/^[ -~]{0,255}[!-~]$/,WQ=/,|=/});var VP,XQ,kP,BP,Wu,GP=w(()=>{l();UP();VP=32,XQ=512,kP=",",BP="=",Wu=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,n){let i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i}unset(e){let n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return Array.from(this._internalState.keys()).reduceRight((e,n)=>(e.push(n+BP+this.get(n)),e),[]).join(kP)}_parse(e){e.length>XQ||(this._internalState=e.split(kP).reduceRight((n,i)=>{let a=i.trim(),c=a.indexOf(BP);if(c!==-1){let o=a.slice(0,c),r=a.slice(c+1,i.length);wP(o)&&DP(r)&&n.set(o,r)}return n},new Map),this._internalState.size>VP&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,VP))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}}});function jP(t){return new Wu(t)}var HP=w(()=>{l();GP()});var ph,qP=w(()=>{l();bs();ph=Pr.getInstance()});var _e,FP=w(()=>{l();yo();_e=Ke.instance()});var dh,YP,KP=w(()=>{l();QE();dh=class{getMeter(e,n,i){return JE}},YP=new dh});var fh,Xu,$P=w(()=>{l();KP();go();yo();fh="metrics",Xu=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalMeterProvider(e){return Or(fh,e,Ke.instance())}getMeterProvider(){return kt(fh)||YP}getMeter(e,n,i){return this.getMeterProvider().getMeter(e,n,i)}disable(){Rr(fh,Ke.instance())}}});var _h,zP=w(()=>{l();$P();_h=Xu.getInstance()});var Ju,WP=w(()=>{l();Ju=class{inject(e,n){}extract(e,n){return e}fields(){return[]}}});function Eh(t){return t.getValue(mh)||void 0}function XP(){return Eh(Pr.getInstance().active())}function JP(t,e){return t.setValue(mh,e)}function QP(t){return t.deleteValue(mh)}var mh,ZP=w(()=>{l();bs();As();mh=Ii("OpenTelemetry Baggage Key")});var hh,JQ,Qu,eN=w(()=>{l();go();WP();ZE();ZP();BE();yo();hh="propagation",JQ=new Ju,Qu=class t{constructor(){this.createBaggage=SP,this.getBaggage=Eh,this.getActiveBaggage=XP,this.setBaggage=JP,this.deleteBaggage=QP}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalPropagator(e){return Or(hh,e,Ke.instance())}inject(e,n,i=Uu){return this._getGlobalPropagator().inject(e,n,i)}extract(e,n,i=Du){return this._getGlobalPropagator().extract(e,n,i)}fields(){return this._getGlobalPropagator().fields()}disable(){Rr(hh,Ke.instance())}_getGlobalPropagator(){return kt(hh)||JQ}}});var Th,tN=w(()=>{l();eN();Th=Qu.getInstance()});var Sh,Zu,rN=w(()=>{l();go();uh();Fu();nh();yo();Sh="trace",Zu=class t{constructor(){this._proxyTracerProvider=new Ao,this.wrapSpanContext=NP,this.isSpanContextValid=Di,this.deleteSpan=OP,this.getSpan=ju,this.getActiveSpan=bP,this.getSpanContext=Hu,this.setSpan=Ps,this.setSpanContext=RP}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalTracerProvider(e){let n=Or(Sh,this._proxyTracerProvider,Ke.instance());return n&&this._proxyTracerProvider.setDelegate(e),n}getTracerProvider(){return kt(Sh)||this._proxyTracerProvider}getTracer(e,n){return this.getTracerProvider().getTracer(e,n)}disable(){Rr(Sh,Ke.instance()),this._proxyTracerProvider=new Ao}}});var vh,nN=w(()=>{l();rN();vh=Zu.getInstance()});var C={};Qn(C,{DiagConsoleLogger:()=>Li,DiagLogLevel:()=>Ue,INVALID_SPANID:()=>Os,INVALID_SPAN_CONTEXT:()=>ku,INVALID_TRACEID:()=>Rs,ProxyTracer:()=>Vi,ProxyTracerProvider:()=>Ao,ROOT_CONTEXT:()=>wu,SamplingDecision:()=>Ku,SpanKind:()=>$u,SpanStatusCode:()=>zu,TraceFlags:()=>wi,ValueType:()=>Rn,baggageEntryMetadataFromString:()=>vP,context:()=>ph,createContextKey:()=>Ii,createNoopMeter:()=>yP,createTraceState:()=>jP,default:()=>QQ,defaultTextMapGetter:()=>Du,defaultTextMapSetter:()=>Uu,diag:()=>_e,isSpanContextValid:()=>Di,isValidSpanId:()=>ih,isValidTraceId:()=>oh,metrics:()=>_h,propagation:()=>Th,trace:()=>vh});var QQ,L=w(()=>{l();BE();As();gP();Lu();QE();AP();ZE();ch();uh();IP();LP();CP();th();HP();Fu();Bu();qP();FP();zP();tN();nN();QQ={context:ph,diag:_e,metrics:_h,propagation:Th,trace:vh}});var lr=_(ge=>{"use strict";l();Object.defineProperty(ge,"__esModule",{value:!0});ge.equalsCaseInsensitive=ge.binarySearchUB=ge.setEquals=ge.FlatMap=ge.isPromiseAllSettledRejectionResult=ge.PromiseAllSettled=ge.callWithTimeout=ge.TimeoutError=ge.instrumentationScopeId=ge.hashAttributes=ge.isNotNullish=void 0;function ZQ(t){return t!=null}ge.isNotNullish=ZQ;function eZ(t){let e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(n=>[n,t[n]])))}ge.hashAttributes=eZ;function tZ(t){var e,n;return`${t.name}:${(e=t.version)!==null&&e!==void 0?e:""}:${(n=t.schemaUrl)!==null&&n!==void 0?n:""}`}ge.instrumentationScopeId=tZ;var el=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};ge.TimeoutError=el;function rZ(t,e){let n,i=new Promise(function(c,o){n=setTimeout(function(){o(new el("Operation timed out."))},e)});return Promise.race([t,i]).then(a=>(clearTimeout(n),a),a=>{throw clearTimeout(n),a})}ge.callWithTimeout=rZ;async function nZ(t){return Promise.all(t.map(async e=>{try{return{status:"fulfilled",value:await e}}catch(n){return{status:"rejected",reason:n}}}))}ge.PromiseAllSettled=nZ;function oZ(t){return t.status==="rejected"}ge.isPromiseAllSettledRejectionResult=oZ;function iZ(t,e){let n=[];return t.forEach(i=>{n.push(...e(i))}),n}ge.FlatMap=iZ;function aZ(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}ge.setEquals=aZ;function sZ(t,e){let n=0,i=t.length-1,a=t.length;for(;i>=n;){let c=n+Math.trunc((i-n)/2);t[c]<e?n=c+1:(a=c,i=c-1)}return a}ge.binarySearchUB=sZ;function cZ(t,e){return t.toLowerCase()===e.toLowerCase()}ge.equalsCaseInsensitive=cZ});var ki=_(Ns=>{"use strict";l();Object.defineProperty(Ns,"__esModule",{value:!0});Ns.AggregatorKind=void 0;var uZ;(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(uZ=Ns.AggregatorKind||(Ns.AggregatorKind={}))});var oN=_(tl=>{"use strict";l();Object.defineProperty(tl,"__esModule",{value:!0});tl.DropAggregator=void 0;var lZ=ki(),gh=class{constructor(){this.kind=lZ.AggregatorKind.DROP}createAccumulation(){}merge(e,n){}diff(e,n){}toMetricData(e,n,i,a){}};tl.DropAggregator=gh});var en=_(Bt=>{"use strict";l();Object.defineProperty(Bt,"__esModule",{value:!0});Bt.isValidName=Bt.isDescriptorCompatibleWith=Bt.createInstrumentDescriptorWithView=Bt.createInstrumentDescriptor=Bt.InstrumentType=void 0;var iN=(L(),N(C)),pZ=lr(),dZ;(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(dZ=Bt.InstrumentType||(Bt.InstrumentType={}));function fZ(t,e,n){var i,a,c,o;return aN(t)||iN.diag.warn(`Invalid metric name: "${t}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:t,type:e,description:(i=n?.description)!==null&&i!==void 0?i:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(c=n?.valueType)!==null&&c!==void 0?c:iN.ValueType.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}Bt.createInstrumentDescriptor=fZ;function _Z(t,e){var n,i;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(i=t.description)!==null&&i!==void 0?i:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}Bt.createInstrumentDescriptorWithView=_Z;function mZ(t,e){return(0,pZ.equalsCaseInsensitive)(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}Bt.isDescriptorCompatibleWith=mZ;var EZ=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function aN(t){return t.match(EZ)!=null}Bt.isValidName=aN});var sN=_(Gi=>{"use strict";l();Object.defineProperty(Gi,"__esModule",{value:!0});Gi.HistogramAggregator=Gi.HistogramAccumulation=void 0;var hZ=ki(),TZ=Mi(),rl=en(),SZ=lr();function vZ(t){let e=t.map(()=>0);return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var Bi=class{constructor(e,n,i=!0,a=vZ(n)){this.startTime=e,this._boundaries=n,this._recordMinMax=i,this._current=a}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let n=(0,SZ.binarySearchUB)(this._boundaries,e);this._current.buckets.counts[n]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};Gi.HistogramAccumulation=Bi;var yh=class{constructor(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=hZ.AggregatorKind.HISTOGRAM}createAccumulation(e){return new Bi(e,this._boundaries,this._recordMinMax)}merge(e,n){let i=e.toPointValue(),a=n.toPointValue(),c=i.buckets.counts,o=a.buckets.counts,r=new Array(c.length);for(let p=0;p<c.length;p++)r[p]=c[p]+o[p];let s=1/0,u=-1/0;return this._recordMinMax&&(i.hasMinMax&&a.hasMinMax?(s=Math.min(i.min,a.min),u=Math.max(i.max,a.max)):i.hasMinMax?(s=i.min,u=i.max):a.hasMinMax&&(s=a.min,u=a.max)),new Bi(e.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:i.count+a.count,sum:i.sum+a.sum,hasMinMax:this._recordMinMax&&(i.hasMinMax||a.hasMinMax),min:s,max:u})}diff(e,n){let i=e.toPointValue(),a=n.toPointValue(),c=i.buckets.counts,o=a.buckets.counts,r=new Array(c.length);for(let s=0;s<c.length;s++)r[s]=o[s]-c[s];return new Bi(n.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:a.count-i.count,sum:a.sum-i.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:TZ.DataPointType.HISTOGRAM,dataPoints:i.map(([c,o])=>{let r=o.toPointValue(),s=e.type===rl.InstrumentType.GAUGE||e.type===rl.InstrumentType.UP_DOWN_COUNTER||e.type===rl.InstrumentType.OBSERVABLE_GAUGE||e.type===rl.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:c,startTime:o.startTime,endTime:a,value:{min:r.hasMinMax?r.min:void 0,max:r.hasMinMax?r.max:void 0,sum:s?void 0:r.sum,buckets:r.buckets,count:r.count}}})}}};Gi.HistogramAggregator=yh});var cN=_(nl=>{"use strict";l();Object.defineProperty(nl,"__esModule",{value:!0});nl.Buckets=void 0;var Ah=class t{constructor(e=new xh,n=0,i=0,a=0){this.backing=e,this.indexBase=n,this.indexStart=i,this.indexEnd=a}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,n)=>this.at(n))}at(e){let n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)}incrementBucket(e,n){this.backing.increment(e,n)}decrementBucket(e,n){this.backing.decrement(e,n)}trim(){for(let e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let n=1+this.indexEnd-this.indexStart,i=1<<e,a=0,c=0;for(let o=this.indexStart;o<=this.indexEnd;){let r=o%i;r<0&&(r+=i);for(let s=r;s<i&&a<n;s++)this._relocateBucket(c,a),a++,o++;c++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))}};nl.Buckets=Ah;var xh=class t{constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,n,i){let a=new Array(e).fill(0);a.splice(i,this._counts.length-n,...this._counts.slice(n)),a.splice(0,n,...this._counts.slice(0,n)),this._counts=a}reverse(e,n){let i=Math.floor((e+n)/2)-e;for(let a=0;a<i;a++){let c=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=c}}emptyBucket(e){let n=this._counts[e];return this._counts[e]=0,n}increment(e,n){this._counts[e]+=n}decrement(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0}clone(){return new t([...this._counts])}}});var Oh=_(Ot=>{"use strict";l();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.getSignificand=Ot.getNormalBase2=Ot.MIN_VALUE=Ot.MAX_NORMAL_EXPONENT=Ot.MIN_NORMAL_EXPONENT=Ot.SIGNIFICAND_WIDTH=void 0;Ot.SIGNIFICAND_WIDTH=52;var gZ=2146435072,yZ=1048575,bh=1023;Ot.MIN_NORMAL_EXPONENT=-bh+1;Ot.MAX_NORMAL_EXPONENT=bh;Ot.MIN_VALUE=Math.pow(2,-1022);function AZ(t){let e=new DataView(new ArrayBuffer(8));return e.setFloat64(0,t),((e.getUint32(0)&gZ)>>20)-bh}Ot.getNormalBase2=AZ;function xZ(t){let e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);let n=e.getUint32(0),i=e.getUint32(4);return(n&yZ)*Math.pow(2,32)+i}Ot.getSignificand=xZ});var ol=_(ji=>{"use strict";l();Object.defineProperty(ji,"__esModule",{value:!0});ji.nextGreaterSquare=ji.ldexp=void 0;function bZ(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}ji.ldexp=bZ;function OZ(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}ji.nextGreaterSquare=OZ});var al=_(il=>{"use strict";l();Object.defineProperty(il,"__esModule",{value:!0});il.MappingError=void 0;var Rh=class extends Error{};il.MappingError=Rh});var lN=_(sl=>{"use strict";l();Object.defineProperty(sl,"__esModule",{value:!0});sl.ExponentMapping=void 0;var Hi=Oh(),RZ=ol(),uN=al(),Ph=class{constructor(e){this._shift=-e}mapToIndex(e){if(e<Hi.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let n=Hi.getNormalBase2(e),i=this._rightShift(Hi.getSignificand(e)-1,Hi.SIGNIFICAND_WIDTH);return n+i>>this._shift}lowerBoundary(e){let n=this._minNormalLowerBoundaryIndex();if(e<n)throw new uN.MappingError(`underflow: ${e} is < minimum lower boundary: ${n}`);let i=this._maxNormalLowerBoundaryIndex();if(e>i)throw new uN.MappingError(`overflow: ${e} is > maximum lower boundary: ${i}`);return RZ.ldexp(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=Hi.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return Hi.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(e,n){return Math.floor(e*Math.pow(2,-n))}};sl.ExponentMapping=Ph});var fN=_(cl=>{"use strict";l();Object.defineProperty(cl,"__esModule",{value:!0});cl.LogarithmMapping=void 0;var qi=Oh(),pN=ol(),dN=al(),Nh=class{constructor(e){this._scale=e,this._scaleFactor=pN.ldexp(Math.LOG2E,e),this._inverseFactor=pN.ldexp(Math.LN2,-e)}mapToIndex(e){if(e<=qi.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(qi.getSignificand(e)===0)return(qi.getNormalBase2(e)<<this._scale)-1;let n=Math.floor(Math.log(e)*this._scaleFactor),i=this._maxNormalLowerBoundaryIndex();return n>=i?i:n}lowerBoundary(e){let n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new dN.MappingError(`overflow: ${e} is > maximum lower boundary: ${n}`)}let i=this._minNormalLowerBoundaryIndex();if(e<=i){if(e===i)return qi.MIN_VALUE;if(e===i-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new dN.MappingError(`overflow: ${e} is < minimum lower boundary: ${i}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return qi.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(qi.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};cl.LogarithmMapping=Nh});var EN=_(ul=>{"use strict";l();Object.defineProperty(ul,"__esModule",{value:!0});ul.getMapping=void 0;var PZ=lN(),NZ=fN(),MZ=al(),_N=-10,mN=20,IZ=Array.from({length:31},(t,e)=>e>10?new NZ.LogarithmMapping(e-10):new PZ.ExponentMapping(e-10));function LZ(t){if(t>mN||t<_N)throw new MZ.MappingError(`expected scale >= ${_N} && <= ${mN}, got: ${t}`);return IZ[t+10]}ul.getMapping=LZ});var SN=_(Yi=>{"use strict";l();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.ExponentialHistogramAggregator=Yi.ExponentialHistogramAccumulation=void 0;var CZ=ki(),wZ=Mi(),DZ=(L(),N(C)),ll=en(),hN=cN(),TN=EN(),UZ=ol(),Fi=class t{constructor(e,n){this.low=e,this.high=n}static combine(e,n){return new t(Math.min(e.low,n.low),Math.max(e.high,n.high))}},VZ=20,kZ=160,Mh=2,pl=class t{constructor(e=e,n=kZ,i=!0,a=0,c=0,o=0,r=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,u=new hN.Buckets,p=new hN.Buckets,S=(0,TN.getMapping)(VZ)){this.startTime=e,this._maxSize=n,this._recordMinMax=i,this._sum=a,this._count=c,this._zeroCount=o,this._min=r,this._max=s,this._positive=u,this._negative=p,this._mapping=S,this._maxSize<Mh&&(DZ.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Mh}`),this._maxSize=Mh)}record(e){this.updateByIncrement(e,1)}setStartTime(e){this.startTime=e}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}}merge(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;let n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)}diff(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;let n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)}clone(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(e,n,i){let a=this._mapping.mapToIndex(n),c=!1,o=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(c=!0,r=a,o=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(c=!0,r=e.indexStart,o=a),c){let s=this._changeScale(o,r);this._downscale(s),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,i)}_incrementIndexBy(e,n,i){if(i===0)return;if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){let c=e.indexEnd-n;c>=e.backing.length&&this._grow(e,c+1),e.indexStart=n}else if(n>e.indexEnd){let c=n-e.indexStart;c>=e.backing.length&&this._grow(e,c+1),e.indexEnd=n}let a=n-e.indexBase;a<0&&(a+=e.backing.length),e.incrementBucket(a,i)}_grow(e,n){let i=e.backing.length,a=e.indexBase-e.indexStart,c=i-a,o=(0,UZ.nextGreaterSquare)(n);o>this._maxSize&&(o=this._maxSize);let r=o-a;e.backing.growTo(o,c,r)}_changeScale(e,n){let i=0;for(;e-n>=this._maxSize;)e>>=1,n>>=1,i++;return i}_downscale(e){if(e===0)return;if(e<0)throw new Error(`impossible change of scale: ${this.scale}`);let n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=(0,TN.getMapping)(n)}_minScale(e){let n=Math.min(this.scale,e.scale),i=Fi.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Fi.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(i.high,i.low),n-this._changeScale(a.high,a.low))}_highLowAtScale(e,n,i){if(e.length===0)return new Fi(0,-1);let a=n-i;return new Fi(e.indexStart>>a,e.indexEnd>>a)}_mergeBuckets(e,n,i,a){let c=i.offset,o=n.scale-a;for(let r=0;r<i.length;r++)this._incrementIndexBy(e,c+r>>o,i.at(r))}_diffBuckets(e,n,i,a){let c=i.offset,o=n.scale-a;for(let r=0;r<i.length;r++){let u=(c+r>>o)-e.indexBase;u<0&&(u+=e.backing.length),e.decrementBucket(u,i.at(r))}e.trim()}};Yi.ExponentialHistogramAccumulation=pl;var Ih=class{constructor(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=CZ.AggregatorKind.EXPONENTIAL_HISTOGRAM}createAccumulation(e){return new pl(e,this._maxSize,this._recordMinMax)}merge(e,n){let i=n.clone();return i.merge(e),i}diff(e,n){let i=n.clone();return i.diff(e),i}toMetricData(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:wZ.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(([c,o])=>{let r=o.toPointValue(),s=e.type===ll.InstrumentType.GAUGE||e.type===ll.InstrumentType.UP_DOWN_COUNTER||e.type===ll.InstrumentType.OBSERVABLE_GAUGE||e.type===ll.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:c,startTime:o.startTime,endTime:a,value:{min:r.hasMinMax?r.min:void 0,max:r.hasMinMax?r.max:void 0,sum:s?void 0:r.sum,positive:{offset:r.positive.offset,bucketCounts:r.positive.bucketCounts},negative:{offset:r.negative.offset,bucketCounts:r.negative.bucketCounts},count:r.count,scale:r.scale,zeroCount:r.zeroCount}}})}}};Yi.ExponentialHistogramAggregator=Ih});var Ms=_(Pn=>{"use strict";l();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.isTracingSuppressed=Pn.unsuppressTracing=Pn.suppressTracing=void 0;var BZ=(L(),N(C)),Lh=(0,BZ.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function GZ(t){return t.setValue(Lh,!0)}Pn.suppressTracing=GZ;function jZ(t){return t.deleteValue(Lh)}Pn.unsuppressTracing=jZ;function HZ(t){return t.getValue(Lh)===!0}Pn.isTracingSuppressed=HZ});var Ch=_(st=>{"use strict";l();Object.defineProperty(st,"__esModule",{value:!0});st.BAGGAGE_MAX_TOTAL_LENGTH=st.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=st.BAGGAGE_MAX_NAME_VALUE_PAIRS=st.BAGGAGE_HEADER=st.BAGGAGE_ITEMS_SEPARATOR=st.BAGGAGE_PROPERTIES_SEPARATOR=st.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;st.BAGGAGE_KEY_PAIR_SEPARATOR="=";st.BAGGAGE_PROPERTIES_SEPARATOR=";";st.BAGGAGE_ITEMS_SEPARATOR=",";st.BAGGAGE_HEADER="baggage";st.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;st.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;st.BAGGAGE_MAX_TOTAL_LENGTH=8192});var wh=_(Mr=>{"use strict";l();Object.defineProperty(Mr,"__esModule",{value:!0});Mr.parseKeyPairsIntoRecord=Mr.parsePairKeyValue=Mr.getKeyPairs=Mr.serializeKeyPairs=void 0;var qZ=(L(),N(C)),xo=Ch();function FZ(t){return t.reduce((e,n)=>{let i=`${e}${e!==""?xo.BAGGAGE_ITEMS_SEPARATOR:""}${n}`;return i.length>xo.BAGGAGE_MAX_TOTAL_LENGTH?e:i},"")}Mr.serializeKeyPairs=FZ;function YZ(t){return t.getAllEntries().map(([e,n])=>{let i=`${encodeURIComponent(e)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(i+=xo.BAGGAGE_PROPERTIES_SEPARATOR+n.metadata.toString()),i})}Mr.getKeyPairs=YZ;function vN(t){let e=t.split(xo.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let n=e.shift();if(!n)return;let i=n.indexOf(xo.BAGGAGE_KEY_PAIR_SEPARATOR);if(i<=0)return;let a=decodeURIComponent(n.substring(0,i).trim()),c=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=(0,qZ.baggageEntryMetadataFromString)(e.join(xo.BAGGAGE_PROPERTIES_SEPARATOR))),{key:a,value:c,metadata:o}}Mr.parsePairKeyValue=vN;function KZ(t){return typeof t!="string"||t.length===0?{}:t.split(xo.BAGGAGE_ITEMS_SEPARATOR).map(e=>vN(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,n)=>(e[n.key]=n.value,e),{})}Mr.parseKeyPairsIntoRecord=KZ});var gN=_(dl=>{"use strict";l();Object.defineProperty(dl,"__esModule",{value:!0});dl.W3CBaggagePropagator=void 0;var Dh=(L(),N(C)),$Z=Ms(),bo=Ch(),Uh=wh(),Vh=class{inject(e,n,i){let a=Dh.propagation.getBaggage(e);if(!a||(0,$Z.isTracingSuppressed)(e))return;let c=(0,Uh.getKeyPairs)(a).filter(r=>r.length<=bo.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,bo.BAGGAGE_MAX_NAME_VALUE_PAIRS),o=(0,Uh.serializeKeyPairs)(c);o.length>0&&i.set(n,bo.BAGGAGE_HEADER,o)}extract(e,n,i){let a=i.get(n,bo.BAGGAGE_HEADER),c=Array.isArray(a)?a.join(bo.BAGGAGE_ITEMS_SEPARATOR):a;if(!c)return e;let o={};return c.length===0||(c.split(bo.BAGGAGE_ITEMS_SEPARATOR).forEach(s=>{let u=(0,Uh.parsePairKeyValue)(s);if(u){let p={value:u.value};u.metadata&&(p.metadata=u.metadata),o[u.key]=p}}),Object.entries(o).length===0)?e:Dh.propagation.setBaggage(e,Dh.propagation.createBaggage(o))}fields(){return[bo.BAGGAGE_HEADER]}};dl.W3CBaggagePropagator=Vh});var yN=_(fl=>{"use strict";l();Object.defineProperty(fl,"__esModule",{value:!0});fl.AnchoredClock=void 0;var kh=class{constructor(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};fl.AnchoredClock=kh});var RN=_(Nn=>{"use strict";l();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.isAttributeValue=Nn.isAttributeKey=Nn.sanitizeAttributes=void 0;var AN=(L(),N(C));function zZ(t){let e={};if(typeof t!="object"||t==null)return e;for(let[n,i]of Object.entries(t)){if(!xN(n)){AN.diag.warn(`Invalid attribute key: ${n}`);continue}if(!bN(i)){AN.diag.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(i)?e[n]=i.slice():e[n]=i}return e}Nn.sanitizeAttributes=zZ;function xN(t){return typeof t=="string"&&t.length>0}Nn.isAttributeKey=xN;function bN(t){return t==null?!0:Array.isArray(t)?WZ(t):ON(t)}Nn.isAttributeValue=bN;function WZ(t){let e;for(let n of t)if(n!=null){if(!e){if(ON(n)){e=typeof n;continue}return!1}if(typeof n!==e)return!1}return!0}function ON(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var Bh=_(_l=>{"use strict";l();Object.defineProperty(_l,"__esModule",{value:!0});_l.loggingErrorHandler=void 0;var XZ=(L(),N(C));function JZ(){return t=>{XZ.diag.error(QZ(t))}}_l.loggingErrorHandler=JZ;function QZ(t){return typeof t=="string"?t:JSON.stringify(ZZ(t))}function ZZ(t){let e={},n=t;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(i=>{if(e[i])return;let a=n[i];a&&(e[i]=String(a))}),n=Object.getPrototypeOf(n);return e}});var Gh=_(Ki=>{"use strict";l();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.globalErrorHandler=Ki.setGlobalErrorHandler=void 0;var eee=Bh(),PN=(0,eee.loggingErrorHandler)();function tee(t){PN=t}Ki.setGlobalErrorHandler=tee;function ree(t){try{PN(t)}catch{}}Ki.globalErrorHandler=ree});var jh=_(Is=>{"use strict";l();Object.defineProperty(Is,"__esModule",{value:!0});Is.TracesSamplerValues=void 0;var nee;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(nee=Is.TracesSamplerValues||(Is.TracesSamplerValues={}))});var Hh=_(be=>{"use strict";l();Object.defineProperty(be,"__esModule",{value:!0});be.parseEnvironment=be.DEFAULT_ENVIRONMENT=be.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=be.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=be.DEFAULT_ATTRIBUTE_COUNT_LIMIT=be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Mn=(L(),N(C)),oee=jh(),iee=",",aee=["OTEL_SDK_DISABLED"];function see(t){return aee.indexOf(t)>-1}var cee=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function uee(t){return cee.indexOf(t)>-1}var lee=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function pee(t){return lee.indexOf(t)>-1}be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;be.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;be.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;be.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;be.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Mn.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:be.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:be.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:be.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:be.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:be.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:be.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:oee.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function dee(t,e,n){if(typeof n[t]>"u")return;let i=String(n[t]);e[t]=i.toLowerCase()==="true"}function fee(t,e,n,i=-1/0,a=1/0){if(typeof n[t]<"u"){let c=Number(n[t]);isNaN(c)||(c<i?e[t]=i:c>a?e[t]=a:e[t]=c)}}function _ee(t,e,n,i=iee){let a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(c=>c.trim()))}var mee={ALL:Mn.DiagLogLevel.ALL,VERBOSE:Mn.DiagLogLevel.VERBOSE,DEBUG:Mn.DiagLogLevel.DEBUG,INFO:Mn.DiagLogLevel.INFO,WARN:Mn.DiagLogLevel.WARN,ERROR:Mn.DiagLogLevel.ERROR,NONE:Mn.DiagLogLevel.NONE};function Eee(t,e,n){let i=n[t];if(typeof i=="string"){let a=mee[i.toUpperCase()];a!=null&&(e[t]=a)}}function hee(t){let e={};for(let n in be.DEFAULT_ENVIRONMENT){let i=n;switch(i){case"OTEL_LOG_LEVEL":Eee(i,e,t);break;default:if(see(i))dee(i,e,t);else if(uee(i))fee(i,e,t);else if(pee(i))_ee(i,e,t);else{let a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}be.parseEnvironment=hee});var NN=_($i=>{"use strict";l();Object.defineProperty($i,"__esModule",{value:!0});$i.getEnvWithoutDefaults=$i.getEnv=void 0;var qh=Hh();function Tee(){let t=(0,qh.parseEnvironment)(process.env);return Object.assign({},qh.DEFAULT_ENVIRONMENT,t)}$i.getEnv=Tee;function See(){return(0,qh.parseEnvironment)(process.env)}$i.getEnvWithoutDefaults=See});var MN=_(ml=>{"use strict";l();Object.defineProperty(ml,"__esModule",{value:!0});ml._globalThis=void 0;ml._globalThis=typeof globalThis=="object"?globalThis:global});var Fh=_(El=>{"use strict";l();Object.defineProperty(El,"__esModule",{value:!0});El.hexToBinary=void 0;function IN(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function vee(t){let e=new Uint8Array(t.length/2),n=0;for(let i=0;i<t.length;i+=2){let a=IN(t.charCodeAt(i)),c=IN(t.charCodeAt(i+1));e[n++]=a<<4|c}return e}El.hexToBinary=vee});var LN=_(hl=>{"use strict";l();Object.defineProperty(hl,"__esModule",{value:!0});hl.hexToBase64=void 0;var gee=Fh();function yee(t){return Buffer.from((0,gee.hexToBinary)(t)).toString("base64")}hl.hexToBase64=yee});var DN=_(Sl=>{"use strict";l();Object.defineProperty(Sl,"__esModule",{value:!0});Sl.RandomIdGenerator=void 0;var Aee=8,wN=16,Yh=class{constructor(){this.generateTraceId=CN(wN),this.generateSpanId=CN(Aee)}};Sl.RandomIdGenerator=Yh;var Tl=Buffer.allocUnsafe(wN);function CN(t){return function(){for(let n=0;n<t/4;n++)Tl.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<t&&!(Tl[n]>0);n++)n===t-1&&(Tl[t-1]=1);return Tl.toString("hex",0,t)}}});var UN=_(vl=>{"use strict";l();Object.defineProperty(vl,"__esModule",{value:!0});vl.otperformance=void 0;var xee=q("perf_hooks");vl.otperformance=xee.performance});var Kh=_(gl=>{"use strict";l();Object.defineProperty(gl,"__esModule",{value:!0});gl.VERSION=void 0;gl.VERSION="1.30.1"});function Ce(t){for(var e={},n=t.length,i=0;i<n;i++){var a=t[i];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var $h=w(()=>{l()});var VN,kN,BN,GN,jN,HN,qN,FN,YN,KN,$N,zN,WN,XN,JN,QN,ZN,eM,tM,rM,nM,oM,iM,aM,sM,cM,uM,lM,pM,dM,fM,_M,mM,EM,hM,TM,SM,vM,gM,yM,AM,xM,bM,OM,RM,PM,NM,MM,IM,LM,CM,wM,DM,UM,VM,kM,BM,GM,jM,HM,qM,FM,YM,KM,$M,zM,WM,XM,JM,QM,ZM,eI,tI,rI,nI,oI,iI,aI,sI,cI,uI,lI,pI,dI,fI,_I,mI,EI,hI,TI,SI,vI,gI,yI,AI,xI,bI,OI,RI,PI,NI,MI,II,LI,CI,wI,DI,UI,VI,kI,BI,GI,jI,HI,qI,FI,YI,KI,$I,zI,WI,XI,JI,QI,ZI,eL,tL,rL,bee,Oee,Ree,Pee,Nee,Mee,Iee,Lee,Cee,wee,Dee,Uee,Vee,kee,Bee,Gee,jee,Hee,qee,Fee,Yee,Kee,$ee,zee,Wee,Xee,Jee,Qee,Zee,ete,tte,rte,nte,ote,ite,ate,ste,cte,ute,lte,pte,dte,fte,_te,mte,Ete,hte,Tte,Ste,vte,gte,yte,Ate,xte,bte,Ote,Rte,Pte,Nte,Mte,Ite,Lte,Cte,wte,Dte,Ute,Vte,kte,Bte,Gte,jte,Hte,qte,Fte,Yte,Kte,$te,zte,Wte,Xte,Jte,Qte,Zte,ere,tre,rre,nre,ore,ire,are,sre,cre,ure,lre,pre,dre,fre,_re,mre,Ere,hre,Tre,Sre,vre,gre,yre,Are,xre,bre,Ore,Rre,Pre,Nre,Mre,Ire,Lre,Cre,wre,Dre,Ure,Vre,kre,Bre,Gre,jre,Hre,qre,Fre,Yre,nL,oL,iL,aL,sL,cL,uL,lL,pL,dL,fL,_L,mL,EL,hL,TL,SL,vL,gL,yL,AL,xL,bL,OL,RL,PL,NL,ML,IL,LL,CL,wL,DL,UL,VL,kL,BL,GL,jL,HL,qL,FL,YL,KL,$L,zL,WL,Kre,$re,zre,Wre,Xre,Jre,Qre,Zre,ene,tne,rne,nne,one,ine,ane,sne,cne,une,lne,pne,dne,fne,_ne,mne,Ene,hne,Tne,Sne,vne,gne,yne,Ane,xne,bne,One,Rne,Pne,Nne,Mne,Ine,Lne,Cne,wne,Dne,Une,Vne,kne,Bne,XL,JL,QL,ZL,eC,tC,rC,nC,oC,iC,aC,Gne,jne,Hne,qne,Fne,Yne,Kne,$ne,zne,Wne,Xne,Jne,sC,cC,uC,lC,pC,Qne,Zne,eoe,toe,roe,noe,dC,fC,_C,ooe,ioe,aoe,soe,mC,EC,hC,TC,coe,uoe,loe,poe,doe,SC,vC,gC,yC,AC,xC,bC,foe,_oe,moe,Eoe,hoe,Toe,Soe,voe,OC,RC,PC,NC,MC,goe,yoe,Aoe,xoe,boe,Ooe,IC,LC,CC,wC,DC,UC,VC,kC,BC,GC,jC,HC,qC,FC,YC,KC,$C,zC,WC,XC,JC,Roe,Poe,Noe,Moe,Ioe,Loe,Coe,woe,Doe,Uoe,Voe,koe,Boe,Goe,joe,Hoe,qoe,Foe,Yoe,Koe,$oe,zoe,QC,ZC,ew,tw,rw,Woe,Xoe,Joe,Qoe,Zoe,eie,nw,ow,tie,rie,nie,iw,aw,oie,iie,aie,sw,cw,uw,lw,pw,dw,fw,_w,mw,Ew,hw,Tw,Sw,vw,gw,yw,Aw,sie,cie,uie,lie,pie,die,fie,_ie,mie,Eie,hie,Tie,Sie,vie,gie,yie,Aie,xie,xw,bw,bie,Oie,Rie,Ow=w(()=>{l();$h();VN="aws.lambda.invoked_arn",kN="db.system",BN="db.connection_string",GN="db.user",jN="db.jdbc.driver_classname",HN="db.name",qN="db.statement",FN="db.operation",YN="db.mssql.instance_name",KN="db.cassandra.keyspace",$N="db.cassandra.page_size",zN="db.cassandra.consistency_level",WN="db.cassandra.table",XN="db.cassandra.idempotence",JN="db.cassandra.speculative_execution_count",QN="db.cassandra.coordinator.id",ZN="db.cassandra.coordinator.dc",eM="db.hbase.namespace",tM="db.redis.database_index",rM="db.mongodb.collection",nM="db.sql.table",oM="exception.type",iM="exception.message",aM="exception.stacktrace",sM="exception.escaped",cM="faas.trigger",uM="faas.execution",lM="faas.document.collection",pM="faas.document.operation",dM="faas.document.time",fM="faas.document.name",_M="faas.time",mM="faas.cron",EM="faas.coldstart",hM="faas.invoked_name",TM="faas.invoked_provider",SM="faas.invoked_region",vM="net.transport",gM="net.peer.ip",yM="net.peer.port",AM="net.peer.name",xM="net.host.ip",bM="net.host.port",OM="net.host.name",RM="net.host.connection.type",PM="net.host.connection.subtype",NM="net.host.carrier.name",MM="net.host.carrier.mcc",IM="net.host.carrier.mnc",LM="net.host.carrier.icc",CM="peer.service",wM="enduser.id",DM="enduser.role",UM="enduser.scope",VM="thread.id",kM="thread.name",BM="code.function",GM="code.namespace",jM="code.filepath",HM="code.lineno",qM="http.method",FM="http.url",YM="http.target",KM="http.host",$M="http.scheme",zM="http.status_code",WM="http.flavor",XM="http.user_agent",JM="http.request_content_length",QM="http.request_content_length_uncompressed",ZM="http.response_content_length",eI="http.response_content_length_uncompressed",tI="http.server_name",rI="http.route",nI="http.client_ip",oI="aws.dynamodb.table_names",iI="aws.dynamodb.consumed_capacity",aI="aws.dynamodb.item_collection_metrics",sI="aws.dynamodb.provisioned_read_capacity",cI="aws.dynamodb.provisioned_write_capacity",uI="aws.dynamodb.consistent_read",lI="aws.dynamodb.projection",pI="aws.dynamodb.limit",dI="aws.dynamodb.attributes_to_get",fI="aws.dynamodb.index_name",_I="aws.dynamodb.select",mI="aws.dynamodb.global_secondary_indexes",EI="aws.dynamodb.local_secondary_indexes",hI="aws.dynamodb.exclusive_start_table",TI="aws.dynamodb.table_count",SI="aws.dynamodb.scan_forward",vI="aws.dynamodb.segment",gI="aws.dynamodb.total_segments",yI="aws.dynamodb.count",AI="aws.dynamodb.scanned_count",xI="aws.dynamodb.attribute_definitions",bI="aws.dynamodb.global_secondary_index_updates",OI="messaging.system",RI="messaging.destination",PI="messaging.destination_kind",NI="messaging.temp_destination",MI="messaging.protocol",II="messaging.protocol_version",LI="messaging.url",CI="messaging.message_id",wI="messaging.conversation_id",DI="messaging.message_payload_size_bytes",UI="messaging.message_payload_compressed_size_bytes",VI="messaging.operation",kI="messaging.consumer_id",BI="messaging.rabbitmq.routing_key",GI="messaging.kafka.message_key",jI="messaging.kafka.consumer_group",HI="messaging.kafka.client_id",qI="messaging.kafka.partition",FI="messaging.kafka.tombstone",YI="rpc.system",KI="rpc.service",$I="rpc.method",zI="rpc.grpc.status_code",WI="rpc.jsonrpc.version",XI="rpc.jsonrpc.request_id",JI="rpc.jsonrpc.error_code",QI="rpc.jsonrpc.error_message",ZI="message.type",eL="message.id",tL="message.compressed_size",rL="message.uncompressed_size",bee=VN,Oee=kN,Ree=BN,Pee=GN,Nee=jN,Mee=HN,Iee=qN,Lee=FN,Cee=YN,wee=KN,Dee=$N,Uee=zN,Vee=WN,kee=XN,Bee=JN,Gee=QN,jee=ZN,Hee=eM,qee=tM,Fee=rM,Yee=nM,Kee=oM,$ee=iM,zee=aM,Wee=sM,Xee=cM,Jee=uM,Qee=lM,Zee=pM,ete=dM,tte=fM,rte=_M,nte=mM,ote=EM,ite=hM,ate=TM,ste=SM,cte=vM,ute=gM,lte=yM,pte=AM,dte=xM,fte=bM,_te=OM,mte=RM,Ete=PM,hte=NM,Tte=MM,Ste=IM,vte=LM,gte=CM,yte=wM,Ate=DM,xte=UM,bte=VM,Ote=kM,Rte=BM,Pte=GM,Nte=jM,Mte=HM,Ite=qM,Lte=FM,Cte=YM,wte=KM,Dte=$M,Ute=zM,Vte=WM,kte=XM,Bte=JM,Gte=QM,jte=ZM,Hte=eI,qte=tI,Fte=rI,Yte=nI,Kte=oI,$te=iI,zte=aI,Wte=sI,Xte=cI,Jte=uI,Qte=lI,Zte=pI,ere=dI,tre=fI,rre=_I,nre=mI,ore=EI,ire=hI,are=TI,sre=SI,cre=vI,ure=gI,lre=yI,pre=AI,dre=xI,fre=bI,_re=OI,mre=RI,Ere=PI,hre=NI,Tre=MI,Sre=II,vre=LI,gre=CI,yre=wI,Are=DI,xre=UI,bre=VI,Ore=kI,Rre=BI,Pre=GI,Nre=jI,Mre=HI,Ire=qI,Lre=FI,Cre=YI,wre=KI,Dre=$I,Ure=zI,Vre=WI,kre=XI,Bre=JI,Gre=QI,jre=ZI,Hre=eL,qre=tL,Fre=rL,Yre=Ce([VN,kN,BN,GN,jN,HN,qN,FN,YN,KN,$N,zN,WN,XN,JN,QN,ZN,eM,tM,rM,nM,oM,iM,aM,sM,cM,uM,lM,pM,dM,fM,_M,mM,EM,hM,TM,SM,vM,gM,yM,AM,xM,bM,OM,RM,PM,NM,MM,IM,LM,CM,wM,DM,UM,VM,kM,BM,GM,jM,HM,qM,FM,YM,KM,$M,zM,WM,XM,JM,QM,ZM,eI,tI,rI,nI,oI,iI,aI,sI,cI,uI,lI,pI,dI,fI,_I,mI,EI,hI,TI,SI,vI,gI,yI,AI,xI,bI,OI,RI,PI,NI,MI,II,LI,CI,wI,DI,UI,VI,kI,BI,GI,jI,HI,qI,FI,YI,KI,$I,zI,WI,XI,JI,QI,ZI,eL,tL,rL]),nL="other_sql",oL="mssql",iL="mysql",aL="oracle",sL="db2",cL="postgresql",uL="redshift",lL="hive",pL="cloudscape",dL="hsqldb",fL="progress",_L="maxdb",mL="hanadb",EL="ingres",hL="firstsql",TL="edb",SL="cache",vL="adabas",gL="firebird",yL="derby",AL="filemaker",xL="informix",bL="instantdb",OL="interbase",RL="mariadb",PL="netezza",NL="pervasive",ML="pointbase",IL="sqlite",LL="sybase",CL="teradata",wL="vertica",DL="h2",UL="coldfusion",VL="cassandra",kL="hbase",BL="mongodb",GL="redis",jL="couchbase",HL="couchdb",qL="cosmosdb",FL="dynamodb",YL="neo4j",KL="geode",$L="elasticsearch",zL="memcached",WL="cockroachdb",Kre=nL,$re=oL,zre=iL,Wre=aL,Xre=sL,Jre=cL,Qre=uL,Zre=lL,ene=pL,tne=dL,rne=fL,nne=_L,one=mL,ine=EL,ane=hL,sne=TL,cne=SL,une=vL,lne=gL,pne=yL,dne=AL,fne=xL,_ne=bL,mne=OL,Ene=RL,hne=PL,Tne=NL,Sne=ML,vne=IL,gne=LL,yne=CL,Ane=wL,xne=DL,bne=UL,One=VL,Rne=kL,Pne=BL,Nne=GL,Mne=jL,Ine=HL,Lne=qL,Cne=FL,wne=YL,Dne=KL,Une=$L,Vne=zL,kne=WL,Bne=Ce([nL,oL,iL,aL,sL,cL,uL,lL,pL,dL,fL,_L,mL,EL,hL,TL,SL,vL,gL,yL,AL,xL,bL,OL,RL,PL,NL,ML,IL,LL,CL,wL,DL,UL,VL,kL,BL,GL,jL,HL,qL,FL,YL,KL,$L,zL,WL]),XL="all",JL="each_quorum",QL="quorum",ZL="local_quorum",eC="one",tC="two",rC="three",nC="local_one",oC="any",iC="serial",aC="local_serial",Gne=XL,jne=JL,Hne=QL,qne=ZL,Fne=eC,Yne=tC,Kne=rC,$ne=nC,zne=oC,Wne=iC,Xne=aC,Jne=Ce([XL,JL,QL,ZL,eC,tC,rC,nC,oC,iC,aC]),sC="datasource",cC="http",uC="pubsub",lC="timer",pC="other",Qne=sC,Zne=cC,eoe=uC,toe=lC,roe=pC,noe=Ce([sC,cC,uC,lC,pC]),dC="insert",fC="edit",_C="delete",ooe=dC,ioe=fC,aoe=_C,soe=Ce([dC,fC,_C]),mC="alibaba_cloud",EC="aws",hC="azure",TC="gcp",coe=mC,uoe=EC,loe=hC,poe=TC,doe=Ce([mC,EC,hC,TC]),SC="ip_tcp",vC="ip_udp",gC="ip",yC="unix",AC="pipe",xC="inproc",bC="other",foe=SC,_oe=vC,moe=gC,Eoe=yC,hoe=AC,Toe=xC,Soe=bC,voe=Ce([SC,vC,gC,yC,AC,xC,bC]),OC="wifi",RC="wired",PC="cell",NC="unavailable",MC="unknown",goe=OC,yoe=RC,Aoe=PC,xoe=NC,boe=MC,Ooe=Ce([OC,RC,PC,NC,MC]),IC="gprs",LC="edge",CC="umts",wC="cdma",DC="evdo_0",UC="evdo_a",VC="cdma2000_1xrtt",kC="hsdpa",BC="hsupa",GC="hspa",jC="iden",HC="evdo_b",qC="lte",FC="ehrpd",YC="hspap",KC="gsm",$C="td_scdma",zC="iwlan",WC="nr",XC="nrnsa",JC="lte_ca",Roe=IC,Poe=LC,Noe=CC,Moe=wC,Ioe=DC,Loe=UC,Coe=VC,woe=kC,Doe=BC,Uoe=GC,Voe=jC,koe=HC,Boe=qC,Goe=FC,joe=YC,Hoe=KC,qoe=$C,Foe=zC,Yoe=WC,Koe=XC,$oe=JC,zoe=Ce([IC,LC,CC,wC,DC,UC,VC,kC,BC,GC,jC,HC,qC,FC,YC,KC,$C,zC,WC,XC,JC]),QC="1.0",ZC="1.1",ew="2.0",tw="SPDY",rw="QUIC",Woe=QC,Xoe=ZC,Joe=ew,Qoe=tw,Zoe=rw,eie={HTTP_1_0:QC,HTTP_1_1:ZC,HTTP_2_0:ew,SPDY:tw,QUIC:rw},nw="queue",ow="topic",tie=nw,rie=ow,nie=Ce([nw,ow]),iw="receive",aw="process",oie=iw,iie=aw,aie=Ce([iw,aw]),sw=0,cw=1,uw=2,lw=3,pw=4,dw=5,fw=6,_w=7,mw=8,Ew=9,hw=10,Tw=11,Sw=12,vw=13,gw=14,yw=15,Aw=16,sie=sw,cie=cw,uie=uw,lie=lw,pie=pw,die=dw,fie=fw,_ie=_w,mie=mw,Eie=Ew,hie=hw,Tie=Tw,Sie=Sw,vie=vw,gie=gw,yie=yw,Aie=Aw,xie={OK:sw,CANCELLED:cw,UNKNOWN:uw,INVALID_ARGUMENT:lw,DEADLINE_EXCEEDED:pw,NOT_FOUND:dw,ALREADY_EXISTS:fw,PERMISSION_DENIED:_w,RESOURCE_EXHAUSTED:mw,FAILED_PRECONDITION:Ew,ABORTED:hw,OUT_OF_RANGE:Tw,UNIMPLEMENTED:Sw,INTERNAL:vw,UNAVAILABLE:gw,DATA_LOSS:yw,UNAUTHENTICATED:Aw},xw="SENT",bw="RECEIVED",bie=xw,Oie=bw,Rie=Ce([xw,bw])});var Rw=w(()=>{l();Ow()});var Pw,Nw,Mw,Iw,Lw,Cw,ww,Dw,Uw,Vw,kw,Bw,Gw,jw,Hw,qw,Fw,Yw,Kw,$w,zw,Ww,Xw,Jw,Qw,Zw,eD,tD,rD,nD,oD,iD,aD,sD,cD,uD,lD,pD,dD,fD,_D,mD,ED,hD,TD,SD,vD,gD,yD,AD,xD,bD,OD,RD,PD,ND,MD,ID,LD,CD,wD,DD,UD,VD,kD,BD,GD,jD,HD,qD,FD,YD,KD,$D,zD,WD,XD,JD,QD,ZD,eU,Pie,Nie,Mie,Iie,Lie,Cie,wie,Die,Uie,Vie,kie,Bie,Gie,jie,Hie,qie,Fie,Yie,Kie,$ie,zie,Wie,Xie,Jie,Qie,Zie,eae,tae,rae,nae,oae,iae,aae,sae,cae,uae,lae,pae,dae,fae,_ae,mae,Eae,hae,Tae,Sae,vae,gae,yae,Aae,xae,bae,Oae,Rae,Pae,Nae,Mae,Iae,Lae,Cae,wae,Dae,Uae,Vae,kae,Bae,Gae,jae,Hae,qae,Fae,Yae,Kae,$ae,zae,Wae,Xae,Jae,Qae,Zae,ese,tse,tU,rU,nU,oU,rse,nse,ose,ise,ase,iU,aU,sU,cU,uU,lU,pU,dU,fU,_U,mU,EU,hU,TU,SU,vU,gU,sse,cse,use,lse,pse,dse,fse,_se,mse,Ese,hse,Tse,Sse,vse,gse,yse,Ase,xse,yU,AU,bse,Ose,Rse,xU,bU,OU,RU,PU,NU,MU,Pse,Nse,Mse,Ise,Lse,Cse,wse,Dse,IU,LU,CU,wU,DU,UU,VU,kU,BU,GU,jU,Use,Vse,kse,Bse,Gse,jse,Hse,qse,Fse,Yse,Kse,$se,HU,qU,FU,YU,KU,$U,zU,WU,XU,JU,zse,Wse,Xse,Jse,Qse,Zse,ece,tce,rce,nce,oce,QU=w(()=>{l();$h();Pw="cloud.provider",Nw="cloud.account.id",Mw="cloud.region",Iw="cloud.availability_zone",Lw="cloud.platform",Cw="aws.ecs.container.arn",ww="aws.ecs.cluster.arn",Dw="aws.ecs.launchtype",Uw="aws.ecs.task.arn",Vw="aws.ecs.task.family",kw="aws.ecs.task.revision",Bw="aws.eks.cluster.arn",Gw="aws.log.group.names",jw="aws.log.group.arns",Hw="aws.log.stream.names",qw="aws.log.stream.arns",Fw="container.name",Yw="container.id",Kw="container.runtime",$w="container.image.name",zw="container.image.tag",Ww="deployment.environment",Xw="device.id",Jw="device.model.identifier",Qw="device.model.name",Zw="faas.name",eD="faas.id",tD="faas.version",rD="faas.instance",nD="faas.max_memory",oD="host.id",iD="host.name",aD="host.type",sD="host.arch",cD="host.image.name",uD="host.image.id",lD="host.image.version",pD="k8s.cluster.name",dD="k8s.node.name",fD="k8s.node.uid",_D="k8s.namespace.name",mD="k8s.pod.uid",ED="k8s.pod.name",hD="k8s.container.name",TD="k8s.replicaset.uid",SD="k8s.replicaset.name",vD="k8s.deployment.uid",gD="k8s.deployment.name",yD="k8s.statefulset.uid",AD="k8s.statefulset.name",xD="k8s.daemonset.uid",bD="k8s.daemonset.name",OD="k8s.job.uid",RD="k8s.job.name",PD="k8s.cronjob.uid",ND="k8s.cronjob.name",MD="os.type",ID="os.description",LD="os.name",CD="os.version",wD="process.pid",DD="process.executable.name",UD="process.executable.path",VD="process.command",kD="process.command_line",BD="process.command_args",GD="process.owner",jD="process.runtime.name",HD="process.runtime.version",qD="process.runtime.description",FD="service.name",YD="service.namespace",KD="service.instance.id",$D="service.version",zD="telemetry.sdk.name",WD="telemetry.sdk.language",XD="telemetry.sdk.version",JD="telemetry.auto.version",QD="webengine.name",ZD="webengine.version",eU="webengine.description",Pie=Pw,Nie=Nw,Mie=Mw,Iie=Iw,Lie=Lw,Cie=Cw,wie=ww,Die=Dw,Uie=Uw,Vie=Vw,kie=kw,Bie=Bw,Gie=Gw,jie=jw,Hie=Hw,qie=qw,Fie=Fw,Yie=Yw,Kie=Kw,$ie=$w,zie=zw,Wie=Ww,Xie=Xw,Jie=Jw,Qie=Qw,Zie=Zw,eae=eD,tae=tD,rae=rD,nae=nD,oae=oD,iae=iD,aae=aD,sae=sD,cae=cD,uae=uD,lae=lD,pae=pD,dae=dD,fae=fD,_ae=_D,mae=mD,Eae=ED,hae=hD,Tae=TD,Sae=SD,vae=vD,gae=gD,yae=yD,Aae=AD,xae=xD,bae=bD,Oae=OD,Rae=RD,Pae=PD,Nae=ND,Mae=MD,Iae=ID,Lae=LD,Cae=CD,wae=wD,Dae=DD,Uae=UD,Vae=VD,kae=kD,Bae=BD,Gae=GD,jae=jD,Hae=HD,qae=qD,Fae=FD,Yae=YD,Kae=KD,$ae=$D,zae=zD,Wae=WD,Xae=XD,Jae=JD,Qae=QD,Zae=ZD,ese=eU,tse=Ce([Pw,Nw,Mw,Iw,Lw,Cw,ww,Dw,Uw,Vw,kw,Bw,Gw,jw,Hw,qw,Fw,Yw,Kw,$w,zw,Ww,Xw,Jw,Qw,Zw,eD,tD,rD,nD,oD,iD,aD,sD,cD,uD,lD,pD,dD,fD,_D,mD,ED,hD,TD,SD,vD,gD,yD,AD,xD,bD,OD,RD,PD,ND,MD,ID,LD,CD,wD,DD,UD,VD,kD,BD,GD,jD,HD,qD,FD,YD,KD,$D,zD,WD,XD,JD,QD,ZD,eU]),tU="alibaba_cloud",rU="aws",nU="azure",oU="gcp",rse=tU,nse=rU,ose=nU,ise=oU,ase=Ce([tU,rU,nU,oU]),iU="alibaba_cloud_ecs",aU="alibaba_cloud_fc",sU="aws_ec2",cU="aws_ecs",uU="aws_eks",lU="aws_lambda",pU="aws_elastic_beanstalk",dU="azure_vm",fU="azure_container_instances",_U="azure_aks",mU="azure_functions",EU="azure_app_service",hU="gcp_compute_engine",TU="gcp_cloud_run",SU="gcp_kubernetes_engine",vU="gcp_cloud_functions",gU="gcp_app_engine",sse=iU,cse=aU,use=sU,lse=cU,pse=uU,dse=lU,fse=pU,_se=dU,mse=fU,Ese=_U,hse=mU,Tse=EU,Sse=hU,vse=TU,gse=SU,yse=vU,Ase=gU,xse=Ce([iU,aU,sU,cU,uU,lU,pU,dU,fU,_U,mU,EU,hU,TU,SU,vU,gU]),yU="ec2",AU="fargate",bse=yU,Ose=AU,Rse=Ce([yU,AU]),xU="amd64",bU="arm32",OU="arm64",RU="ia64",PU="ppc32",NU="ppc64",MU="x86",Pse=xU,Nse=bU,Mse=OU,Ise=RU,Lse=PU,Cse=NU,wse=MU,Dse=Ce([xU,bU,OU,RU,PU,NU,MU]),IU="windows",LU="linux",CU="darwin",wU="freebsd",DU="netbsd",UU="openbsd",VU="dragonflybsd",kU="hpux",BU="aix",GU="solaris",jU="z_os",Use=IU,Vse=LU,kse=CU,Bse=wU,Gse=DU,jse=UU,Hse=VU,qse=kU,Fse=BU,Yse=GU,Kse=jU,$se=Ce([IU,LU,CU,wU,DU,UU,VU,kU,BU,GU,jU]),HU="cpp",qU="dotnet",FU="erlang",YU="go",KU="java",$U="nodejs",zU="php",WU="python",XU="ruby",JU="webjs",zse=HU,Wse=qU,Xse=FU,Jse=YU,Qse=KU,Zse=$U,ece=zU,tce=WU,rce=XU,nce=JU,oce=Ce([HU,qU,FU,YU,KU,$U,zU,WU,XU,JU])});var ZU=w(()=>{l();QU()});var ice,ace,sce,cce,uce,lce,pce,dce,fce,_ce,mce,Ece,hce,Tce,Sce,vce,gce,yce,Ace,xce,bce,Oce,Rce,Pce,Nce,Mce,Ice,Lce,Cce,wce,Dce,Uce,Vce,kce,Bce,Gce,jce,Hce,qce,Fce,Yce,Kce,$ce,zce,Wce,Xce,Jce,Qce,Zce,eue,tue,rue,nue,oue,iue,aue,sue,cue,uue,lue,pue,due,fue,_ue,mue,Eue,hue,Tue,Sue,vue,gue,yue,Aue,xue,bue,Oue,Rue,Pue,Nue,Mue,Iue,Lue,Cue,wue,Due,Uue,Vue,kue,Bue,Gue,jue,Hue,que,Fue,Yue,Kue,$ue,zue,Wue,Xue,Jue,Que,Zue,ele,tle,rle,nle,ole,ile,ale,e0=w(()=>{l();ice="aspnetcore.rate_limiting.result",ace="acquired",sce="endpoint_limiter",cce="global_limiter",uce="request_canceled",lce="telemetry.sdk.language",pce="cpp",dce="dotnet",fce="erlang",_ce="go",mce="java",Ece="nodejs",hce="php",Tce="python",Sce="ruby",vce="rust",gce="swift",yce="webjs",Ace="telemetry.sdk.name",xce="telemetry.sdk.version",bce="aspnetcore.diagnostics.handler.type",Oce="aspnetcore.diagnostics.exception.result",Rce="aborted",Pce="handled",Nce="skipped",Mce="unhandled",Ice="aspnetcore.rate_limiting.policy",Lce="aspnetcore.request.is_unhandled",Cce="aspnetcore.routing.is_fallback",wce="aspnetcore.routing.match_status",Dce="failure",Uce="success",Vce="client.address",kce="client.port",Bce="error.type",Gce="_OTHER",jce="exception.escaped",Hce="exception.message",qce="exception.stacktrace",Fce="exception.type",Yce=function(t){return"http.request.header."+t},Kce="http.request.method",$ce="_OTHER",zce="CONNECT",Wce="DELETE",Xce="GET",Jce="HEAD",Qce="OPTIONS",Zce="PATCH",eue="POST",tue="PUT",rue="TRACE",nue="http.request.method_original",oue="http.request.resend_count",iue=function(t){return"http.response.header."+t},aue="http.response.status_code",sue="http.route",cue="jvm.gc.action",uue="jvm.gc.name",lue="jvm.memory.pool.name",pue="jvm.memory.type",due="heap",fue="non_heap",_ue="jvm.thread.daemon",mue="jvm.thread.state",Eue="blocked",hue="new",Tue="runnable",Sue="terminated",vue="timed_waiting",gue="waiting",yue="network.local.address",Aue="network.local.port",xue="network.peer.address",bue="network.peer.port",Oue="network.protocol.name",Rue="network.protocol.version",Pue="network.transport",Nue="pipe",Mue="quic",Iue="tcp",Lue="udp",Cue="unix",wue="network.type",Due="ipv4",Uue="ipv6",Vue="otel.scope.name",kue="otel.scope.version",Bue="otel.status_code",Gue="ERROR",jue="OK",Hue="otel.status_description",que="server.address",Fue="server.port",Yue="service.name",Kue="service.version",$ue="signalr.connection.status",zue="app_shutdown",Wue="normal_closure",Xue="timeout",Jue="signalr.transport",Que="long_polling",Zue="server_sent_events",ele="web_sockets",tle="url.fragment",rle="url.full",nle="url.path",ole="url.query",ile="url.scheme",ale="user_agent.original"});var sle,cle,ule,lle,ple,dle,fle,_le,mle,Ele,hle,Tle,Sle,vle,gle,yle,Ale,xle,ble,Ole,Rle,Ple,Nle,Mle,Ile,Lle,Cle,wle,Dle,Ule,Vle,t0=w(()=>{l();sle="aspnetcore.diagnostics.exceptions",cle="aspnetcore.rate_limiting.active_request_leases",ule="aspnetcore.rate_limiting.queued_requests",lle="aspnetcore.rate_limiting.request.time_in_queue",ple="aspnetcore.rate_limiting.request_lease.duration",dle="aspnetcore.rate_limiting.requests",fle="aspnetcore.routing.match_attempts",_le="http.client.request.duration",mle="http.server.request.duration",Ele="jvm.class.count",hle="jvm.class.loaded",Tle="jvm.class.unloaded",Sle="jvm.cpu.count",vle="jvm.cpu.recent_utilization",gle="jvm.cpu.time",yle="jvm.gc.duration",Ale="jvm.memory.committed",xle="jvm.memory.limit",ble="jvm.memory.used",Ole="jvm.memory.used_after_last_gc",Rle="jvm.thread.count",Ple="kestrel.active_connections",Nle="kestrel.active_tls_handshakes",Mle="kestrel.connection.duration",Ile="kestrel.queued_connections",Lle="kestrel.queued_requests",Cle="kestrel.rejected_connections",wle="kestrel.tls_handshake.duration",Dle="kestrel.upgraded_connections",Ule="signalr.server.active_connections",Vle="signalr.server.connection.duration"});var nt={};Qn(nt,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>Rce,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>Pce,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>Nce,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>Mce,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>ace,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>sce,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>cce,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>uce,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>Dce,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>Uce,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>Oce,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>bce,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>Ice,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>ice,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>Lce,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>Cce,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>wce,ATTR_CLIENT_ADDRESS:()=>Vce,ATTR_CLIENT_PORT:()=>kce,ATTR_ERROR_TYPE:()=>Bce,ATTR_EXCEPTION_ESCAPED:()=>jce,ATTR_EXCEPTION_MESSAGE:()=>Hce,ATTR_EXCEPTION_STACKTRACE:()=>qce,ATTR_EXCEPTION_TYPE:()=>Fce,ATTR_HTTP_REQUEST_HEADER:()=>Yce,ATTR_HTTP_REQUEST_METHOD:()=>Kce,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>nue,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>oue,ATTR_HTTP_RESPONSE_HEADER:()=>iue,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>aue,ATTR_HTTP_ROUTE:()=>sue,ATTR_JVM_GC_ACTION:()=>cue,ATTR_JVM_GC_NAME:()=>uue,ATTR_JVM_MEMORY_POOL_NAME:()=>lue,ATTR_JVM_MEMORY_TYPE:()=>pue,ATTR_JVM_THREAD_DAEMON:()=>_ue,ATTR_JVM_THREAD_STATE:()=>mue,ATTR_NETWORK_LOCAL_ADDRESS:()=>yue,ATTR_NETWORK_LOCAL_PORT:()=>Aue,ATTR_NETWORK_PEER_ADDRESS:()=>xue,ATTR_NETWORK_PEER_PORT:()=>bue,ATTR_NETWORK_PROTOCOL_NAME:()=>Oue,ATTR_NETWORK_PROTOCOL_VERSION:()=>Rue,ATTR_NETWORK_TRANSPORT:()=>Pue,ATTR_NETWORK_TYPE:()=>wue,ATTR_OTEL_SCOPE_NAME:()=>Vue,ATTR_OTEL_SCOPE_VERSION:()=>kue,ATTR_OTEL_STATUS_CODE:()=>Bue,ATTR_OTEL_STATUS_DESCRIPTION:()=>Hue,ATTR_SERVER_ADDRESS:()=>que,ATTR_SERVER_PORT:()=>Fue,ATTR_SERVICE_NAME:()=>Yue,ATTR_SERVICE_VERSION:()=>Kue,ATTR_SIGNALR_CONNECTION_STATUS:()=>$ue,ATTR_SIGNALR_TRANSPORT:()=>Jue,ATTR_TELEMETRY_SDK_LANGUAGE:()=>lce,ATTR_TELEMETRY_SDK_NAME:()=>Ace,ATTR_TELEMETRY_SDK_VERSION:()=>xce,ATTR_URL_FRAGMENT:()=>tle,ATTR_URL_FULL:()=>rle,ATTR_URL_PATH:()=>nle,ATTR_URL_QUERY:()=>ole,ATTR_URL_SCHEME:()=>ile,ATTR_USER_AGENT_ORIGINAL:()=>ale,AWSECSLAUNCHTYPEVALUES_EC2:()=>bse,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Ose,AwsEcsLaunchtypeValues:()=>Rse,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>sse,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>cse,CLOUDPLATFORMVALUES_AWS_EC2:()=>use,CLOUDPLATFORMVALUES_AWS_ECS:()=>lse,CLOUDPLATFORMVALUES_AWS_EKS:()=>pse,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>fse,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>dse,CLOUDPLATFORMVALUES_AZURE_AKS:()=>Ese,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>Tse,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>mse,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>hse,CLOUDPLATFORMVALUES_AZURE_VM:()=>_se,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>Ase,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>yse,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>vse,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Sse,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>gse,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>rse,CLOUDPROVIDERVALUES_AWS:()=>nse,CLOUDPROVIDERVALUES_AZURE:()=>ose,CLOUDPROVIDERVALUES_GCP:()=>ise,CloudPlatformValues:()=>xse,CloudProviderValues:()=>ase,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>Gne,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>zne,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>jne,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>$ne,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>qne,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>Xne,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>Fne,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>Hne,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Wne,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Kne,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>Yne,DBSYSTEMVALUES_ADABAS:()=>une,DBSYSTEMVALUES_CACHE:()=>cne,DBSYSTEMVALUES_CASSANDRA:()=>One,DBSYSTEMVALUES_CLOUDSCAPE:()=>ene,DBSYSTEMVALUES_COCKROACHDB:()=>kne,DBSYSTEMVALUES_COLDFUSION:()=>bne,DBSYSTEMVALUES_COSMOSDB:()=>Lne,DBSYSTEMVALUES_COUCHBASE:()=>Mne,DBSYSTEMVALUES_COUCHDB:()=>Ine,DBSYSTEMVALUES_DB2:()=>Xre,DBSYSTEMVALUES_DERBY:()=>pne,DBSYSTEMVALUES_DYNAMODB:()=>Cne,DBSYSTEMVALUES_EDB:()=>sne,DBSYSTEMVALUES_ELASTICSEARCH:()=>Une,DBSYSTEMVALUES_FILEMAKER:()=>dne,DBSYSTEMVALUES_FIREBIRD:()=>lne,DBSYSTEMVALUES_FIRSTSQL:()=>ane,DBSYSTEMVALUES_GEODE:()=>Dne,DBSYSTEMVALUES_H2:()=>xne,DBSYSTEMVALUES_HANADB:()=>one,DBSYSTEMVALUES_HBASE:()=>Rne,DBSYSTEMVALUES_HIVE:()=>Zre,DBSYSTEMVALUES_HSQLDB:()=>tne,DBSYSTEMVALUES_INFORMIX:()=>fne,DBSYSTEMVALUES_INGRES:()=>ine,DBSYSTEMVALUES_INSTANTDB:()=>_ne,DBSYSTEMVALUES_INTERBASE:()=>mne,DBSYSTEMVALUES_MARIADB:()=>Ene,DBSYSTEMVALUES_MAXDB:()=>nne,DBSYSTEMVALUES_MEMCACHED:()=>Vne,DBSYSTEMVALUES_MONGODB:()=>Pne,DBSYSTEMVALUES_MSSQL:()=>$re,DBSYSTEMVALUES_MYSQL:()=>zre,DBSYSTEMVALUES_NEO4J:()=>wne,DBSYSTEMVALUES_NETEZZA:()=>hne,DBSYSTEMVALUES_ORACLE:()=>Wre,DBSYSTEMVALUES_OTHER_SQL:()=>Kre,DBSYSTEMVALUES_PERVASIVE:()=>Tne,DBSYSTEMVALUES_POINTBASE:()=>Sne,DBSYSTEMVALUES_POSTGRESQL:()=>Jre,DBSYSTEMVALUES_PROGRESS:()=>rne,DBSYSTEMVALUES_REDIS:()=>Nne,DBSYSTEMVALUES_REDSHIFT:()=>Qre,DBSYSTEMVALUES_SQLITE:()=>vne,DBSYSTEMVALUES_SYBASE:()=>gne,DBSYSTEMVALUES_TERADATA:()=>yne,DBSYSTEMVALUES_VERTICA:()=>Ane,DbCassandraConsistencyLevelValues:()=>Jne,DbSystemValues:()=>Bne,ERROR_TYPE_VALUE_OTHER:()=>Gce,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>aoe,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>ioe,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>ooe,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>coe,FAASINVOKEDPROVIDERVALUES_AWS:()=>uoe,FAASINVOKEDPROVIDERVALUES_AZURE:()=>loe,FAASINVOKEDPROVIDERVALUES_GCP:()=>poe,FAASTRIGGERVALUES_DATASOURCE:()=>Qne,FAASTRIGGERVALUES_HTTP:()=>Zne,FAASTRIGGERVALUES_OTHER:()=>roe,FAASTRIGGERVALUES_PUBSUB:()=>eoe,FAASTRIGGERVALUES_TIMER:()=>toe,FaasDocumentOperationValues:()=>soe,FaasInvokedProviderValues:()=>doe,FaasTriggerValues:()=>noe,HOSTARCHVALUES_AMD64:()=>Pse,HOSTARCHVALUES_ARM32:()=>Nse,HOSTARCHVALUES_ARM64:()=>Mse,HOSTARCHVALUES_IA64:()=>Ise,HOSTARCHVALUES_PPC32:()=>Lse,HOSTARCHVALUES_PPC64:()=>Cse,HOSTARCHVALUES_X86:()=>wse,HTTPFLAVORVALUES_HTTP_1_0:()=>Woe,HTTPFLAVORVALUES_HTTP_1_1:()=>Xoe,HTTPFLAVORVALUES_HTTP_2_0:()=>Joe,HTTPFLAVORVALUES_QUIC:()=>Zoe,HTTPFLAVORVALUES_SPDY:()=>Qoe,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>zce,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>Wce,HTTP_REQUEST_METHOD_VALUE_GET:()=>Xce,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>Jce,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>Qce,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>$ce,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>Zce,HTTP_REQUEST_METHOD_VALUE_POST:()=>eue,HTTP_REQUEST_METHOD_VALUE_PUT:()=>tue,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>rue,HostArchValues:()=>Dse,HttpFlavorValues:()=>eie,JVM_MEMORY_TYPE_VALUE_HEAP:()=>due,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>fue,JVM_THREAD_STATE_VALUE_BLOCKED:()=>Eue,JVM_THREAD_STATE_VALUE_NEW:()=>hue,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>Tue,JVM_THREAD_STATE_VALUE_TERMINATED:()=>Sue,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>vue,JVM_THREAD_STATE_VALUE_WAITING:()=>gue,MESSAGETYPEVALUES_RECEIVED:()=>Oie,MESSAGETYPEVALUES_SENT:()=>bie,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>tie,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>rie,MESSAGINGOPERATIONVALUES_PROCESS:()=>iie,MESSAGINGOPERATIONVALUES_RECEIVE:()=>oie,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>sle,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>cle,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>ule,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>dle,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>ple,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>lle,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>fle,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>_le,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>mle,METRIC_JVM_CLASS_COUNT:()=>Ele,METRIC_JVM_CLASS_LOADED:()=>hle,METRIC_JVM_CLASS_UNLOADED:()=>Tle,METRIC_JVM_CPU_COUNT:()=>Sle,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>vle,METRIC_JVM_CPU_TIME:()=>gle,METRIC_JVM_GC_DURATION:()=>yle,METRIC_JVM_MEMORY_COMMITTED:()=>Ale,METRIC_JVM_MEMORY_LIMIT:()=>xle,METRIC_JVM_MEMORY_USED:()=>ble,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>Ole,METRIC_JVM_THREAD_COUNT:()=>Rle,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>Ple,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>Nle,METRIC_KESTREL_CONNECTION_DURATION:()=>Mle,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>Ile,METRIC_KESTREL_QUEUED_REQUESTS:()=>Lle,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>Cle,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>wle,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>Dle,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>Ule,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>Vle,MessageTypeValues:()=>Rie,MessagingDestinationKindValues:()=>nie,MessagingOperationValues:()=>aie,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>Moe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Coe,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Poe,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Goe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Ioe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Loe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>koe,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>Roe,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Hoe,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>woe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Uoe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>joe,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Doe,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Voe,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Foe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>Boe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>$oe,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Yoe,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Koe,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>qoe,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Noe,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Aoe,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>xoe,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>boe,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>goe,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>yoe,NETTRANSPORTVALUES_INPROC:()=>Toe,NETTRANSPORTVALUES_IP:()=>moe,NETTRANSPORTVALUES_IP_TCP:()=>foe,NETTRANSPORTVALUES_IP_UDP:()=>_oe,NETTRANSPORTVALUES_OTHER:()=>Soe,NETTRANSPORTVALUES_PIPE:()=>hoe,NETTRANSPORTVALUES_UNIX:()=>Eoe,NETWORK_TRANSPORT_VALUE_PIPE:()=>Nue,NETWORK_TRANSPORT_VALUE_QUIC:()=>Mue,NETWORK_TRANSPORT_VALUE_TCP:()=>Iue,NETWORK_TRANSPORT_VALUE_UDP:()=>Lue,NETWORK_TRANSPORT_VALUE_UNIX:()=>Cue,NETWORK_TYPE_VALUE_IPV4:()=>Due,NETWORK_TYPE_VALUE_IPV6:()=>Uue,NetHostConnectionSubtypeValues:()=>zoe,NetHostConnectionTypeValues:()=>Ooe,NetTransportValues:()=>voe,OSTYPEVALUES_AIX:()=>Fse,OSTYPEVALUES_DARWIN:()=>kse,OSTYPEVALUES_DRAGONFLYBSD:()=>Hse,OSTYPEVALUES_FREEBSD:()=>Bse,OSTYPEVALUES_HPUX:()=>qse,OSTYPEVALUES_LINUX:()=>Vse,OSTYPEVALUES_NETBSD:()=>Gse,OSTYPEVALUES_OPENBSD:()=>jse,OSTYPEVALUES_SOLARIS:()=>Yse,OSTYPEVALUES_WINDOWS:()=>Use,OSTYPEVALUES_Z_OS:()=>Kse,OTEL_STATUS_CODE_VALUE_ERROR:()=>Gue,OTEL_STATUS_CODE_VALUE_OK:()=>jue,OsTypeValues:()=>$se,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>hie,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>fie,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>cie,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>yie,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>pie,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>Eie,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>vie,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>lie,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>die,RPCGRPCSTATUSCODEVALUES_OK:()=>sie,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>Tie,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>_ie,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>mie,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>Aie,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>gie,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>Sie,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>uie,RpcGrpcStatusCodeValues:()=>xie,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>ere,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>dre,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Jte,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>$te,SEMATTRS_AWS_DYNAMODB_COUNT:()=>lre,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>ire,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>nre,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>fre,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>tre,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>zte,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>Zte,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>ore,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>Qte,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Wte,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>Xte,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>pre,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>sre,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>cre,SEMATTRS_AWS_DYNAMODB_SELECT:()=>rre,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>are,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>Kte,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>ure,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>bee,SEMATTRS_CODE_FILEPATH:()=>Nte,SEMATTRS_CODE_FUNCTION:()=>Rte,SEMATTRS_CODE_LINENO:()=>Mte,SEMATTRS_CODE_NAMESPACE:()=>Pte,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>Uee,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>jee,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>Gee,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>kee,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>wee,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>Dee,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>Bee,SEMATTRS_DB_CASSANDRA_TABLE:()=>Vee,SEMATTRS_DB_CONNECTION_STRING:()=>Ree,SEMATTRS_DB_HBASE_NAMESPACE:()=>Hee,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>Nee,SEMATTRS_DB_MONGODB_COLLECTION:()=>Fee,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>Cee,SEMATTRS_DB_NAME:()=>Mee,SEMATTRS_DB_OPERATION:()=>Lee,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>qee,SEMATTRS_DB_SQL_TABLE:()=>Yee,SEMATTRS_DB_STATEMENT:()=>Iee,SEMATTRS_DB_SYSTEM:()=>Oee,SEMATTRS_DB_USER:()=>Pee,SEMATTRS_ENDUSER_ID:()=>yte,SEMATTRS_ENDUSER_ROLE:()=>Ate,SEMATTRS_ENDUSER_SCOPE:()=>xte,SEMATTRS_EXCEPTION_ESCAPED:()=>Wee,SEMATTRS_EXCEPTION_MESSAGE:()=>$ee,SEMATTRS_EXCEPTION_STACKTRACE:()=>zee,SEMATTRS_EXCEPTION_TYPE:()=>Kee,SEMATTRS_FAAS_COLDSTART:()=>ote,SEMATTRS_FAAS_CRON:()=>nte,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>Qee,SEMATTRS_FAAS_DOCUMENT_NAME:()=>tte,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>Zee,SEMATTRS_FAAS_DOCUMENT_TIME:()=>ete,SEMATTRS_FAAS_EXECUTION:()=>Jee,SEMATTRS_FAAS_INVOKED_NAME:()=>ite,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>ate,SEMATTRS_FAAS_INVOKED_REGION:()=>ste,SEMATTRS_FAAS_TIME:()=>rte,SEMATTRS_FAAS_TRIGGER:()=>Xee,SEMATTRS_HTTP_CLIENT_IP:()=>Yte,SEMATTRS_HTTP_FLAVOR:()=>Vte,SEMATTRS_HTTP_HOST:()=>wte,SEMATTRS_HTTP_METHOD:()=>Ite,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>Bte,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>Gte,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>jte,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>Hte,SEMATTRS_HTTP_ROUTE:()=>Fte,SEMATTRS_HTTP_SCHEME:()=>Dte,SEMATTRS_HTTP_SERVER_NAME:()=>qte,SEMATTRS_HTTP_STATUS_CODE:()=>Ute,SEMATTRS_HTTP_TARGET:()=>Cte,SEMATTRS_HTTP_URL:()=>Lte,SEMATTRS_HTTP_USER_AGENT:()=>kte,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>qre,SEMATTRS_MESSAGE_ID:()=>Hre,SEMATTRS_MESSAGE_TYPE:()=>jre,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>Fre,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Ore,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>yre,SEMATTRS_MESSAGING_DESTINATION:()=>mre,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>Ere,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>Mre,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>Nre,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>Pre,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>Ire,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>Lre,SEMATTRS_MESSAGING_MESSAGE_ID:()=>gre,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>xre,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Are,SEMATTRS_MESSAGING_OPERATION:()=>bre,SEMATTRS_MESSAGING_PROTOCOL:()=>Tre,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>Sre,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Rre,SEMATTRS_MESSAGING_SYSTEM:()=>_re,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>hre,SEMATTRS_MESSAGING_URL:()=>vre,SEMATTRS_NET_HOST_CARRIER_ICC:()=>vte,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Tte,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Ste,SEMATTRS_NET_HOST_CARRIER_NAME:()=>hte,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>Ete,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>mte,SEMATTRS_NET_HOST_IP:()=>dte,SEMATTRS_NET_HOST_NAME:()=>_te,SEMATTRS_NET_HOST_PORT:()=>fte,SEMATTRS_NET_PEER_IP:()=>ute,SEMATTRS_NET_PEER_NAME:()=>pte,SEMATTRS_NET_PEER_PORT:()=>lte,SEMATTRS_NET_TRANSPORT:()=>cte,SEMATTRS_PEER_SERVICE:()=>gte,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>Ure,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>Bre,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>Gre,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>kre,SEMATTRS_RPC_JSONRPC_VERSION:()=>Vre,SEMATTRS_RPC_METHOD:()=>Dre,SEMATTRS_RPC_SERVICE:()=>wre,SEMATTRS_RPC_SYSTEM:()=>Cre,SEMATTRS_THREAD_ID:()=>bte,SEMATTRS_THREAD_NAME:()=>Ote,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>wie,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>Cie,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>Die,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Uie,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>Vie,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>kie,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>Bie,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>jie,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>Gie,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>qie,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>Hie,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>Nie,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>Iie,SEMRESATTRS_CLOUD_PLATFORM:()=>Lie,SEMRESATTRS_CLOUD_PROVIDER:()=>Pie,SEMRESATTRS_CLOUD_REGION:()=>Mie,SEMRESATTRS_CONTAINER_ID:()=>Yie,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>$ie,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>zie,SEMRESATTRS_CONTAINER_NAME:()=>Fie,SEMRESATTRS_CONTAINER_RUNTIME:()=>Kie,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>Wie,SEMRESATTRS_DEVICE_ID:()=>Xie,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>Jie,SEMRESATTRS_DEVICE_MODEL_NAME:()=>Qie,SEMRESATTRS_FAAS_ID:()=>eae,SEMRESATTRS_FAAS_INSTANCE:()=>rae,SEMRESATTRS_FAAS_MAX_MEMORY:()=>nae,SEMRESATTRS_FAAS_NAME:()=>Zie,SEMRESATTRS_FAAS_VERSION:()=>tae,SEMRESATTRS_HOST_ARCH:()=>sae,SEMRESATTRS_HOST_ID:()=>oae,SEMRESATTRS_HOST_IMAGE_ID:()=>uae,SEMRESATTRS_HOST_IMAGE_NAME:()=>cae,SEMRESATTRS_HOST_IMAGE_VERSION:()=>lae,SEMRESATTRS_HOST_NAME:()=>iae,SEMRESATTRS_HOST_TYPE:()=>aae,SEMRESATTRS_K8S_CLUSTER_NAME:()=>pae,SEMRESATTRS_K8S_CONTAINER_NAME:()=>hae,SEMRESATTRS_K8S_CRONJOB_NAME:()=>Nae,SEMRESATTRS_K8S_CRONJOB_UID:()=>Pae,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>bae,SEMRESATTRS_K8S_DAEMONSET_UID:()=>xae,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>gae,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>vae,SEMRESATTRS_K8S_JOB_NAME:()=>Rae,SEMRESATTRS_K8S_JOB_UID:()=>Oae,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>_ae,SEMRESATTRS_K8S_NODE_NAME:()=>dae,SEMRESATTRS_K8S_NODE_UID:()=>fae,SEMRESATTRS_K8S_POD_NAME:()=>Eae,SEMRESATTRS_K8S_POD_UID:()=>mae,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Sae,SEMRESATTRS_K8S_REPLICASET_UID:()=>Tae,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>Aae,SEMRESATTRS_K8S_STATEFULSET_UID:()=>yae,SEMRESATTRS_OS_DESCRIPTION:()=>Iae,SEMRESATTRS_OS_NAME:()=>Lae,SEMRESATTRS_OS_TYPE:()=>Mae,SEMRESATTRS_OS_VERSION:()=>Cae,SEMRESATTRS_PROCESS_COMMAND:()=>Vae,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>Bae,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>kae,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>Dae,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>Uae,SEMRESATTRS_PROCESS_OWNER:()=>Gae,SEMRESATTRS_PROCESS_PID:()=>wae,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>qae,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>jae,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>Hae,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Kae,SEMRESATTRS_SERVICE_NAME:()=>Fae,SEMRESATTRS_SERVICE_NAMESPACE:()=>Yae,SEMRESATTRS_SERVICE_VERSION:()=>$ae,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>Jae,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>Wae,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>zae,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>Xae,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>ese,SEMRESATTRS_WEBENGINE_NAME:()=>Qae,SEMRESATTRS_WEBENGINE_VERSION:()=>Zae,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>zue,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>Wue,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>Xue,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>Que,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>Zue,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>ele,SemanticAttributes:()=>Yre,SemanticResourceAttributes:()=>tse,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>zse,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>Wse,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>Xse,TELEMETRYSDKLANGUAGEVALUES_GO:()=>Jse,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>Qse,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>Zse,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>ece,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>tce,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>rce,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>nce,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>pce,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>dce,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>fce,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>_ce,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>mce,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>Ece,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>hce,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Tce,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Sce,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>vce,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>gce,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>yce,TelemetrySdkLanguageValues:()=>oce});var ot=w(()=>{l();Rw();ZU();e0();t0()});var r0=_(yl=>{"use strict";l();Object.defineProperty(yl,"__esModule",{value:!0});yl.SDK_INFO=void 0;var kle=Kh(),Ls=(ot(),N(nt));yl.SDK_INFO={[Ls.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[Ls.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[Ls.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Ls.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[Ls.SEMRESATTRS_TELEMETRY_SDK_VERSION]:kle.VERSION}});var n0=_(Al=>{"use strict";l();Object.defineProperty(Al,"__esModule",{value:!0});Al.unrefTimer=void 0;function Ble(t){t.unref()}Al.unrefTimer=Ble});var i0=_($e=>{"use strict";l();Object.defineProperty($e,"__esModule",{value:!0});$e.unrefTimer=$e.SDK_INFO=$e.otperformance=$e.RandomIdGenerator=$e.hexToBase64=$e._globalThis=$e.getEnv=$e.getEnvWithoutDefaults=void 0;var o0=NN();Object.defineProperty($e,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return o0.getEnvWithoutDefaults}});Object.defineProperty($e,"getEnv",{enumerable:!0,get:function(){return o0.getEnv}});var Gle=MN();Object.defineProperty($e,"_globalThis",{enumerable:!0,get:function(){return Gle._globalThis}});var jle=LN();Object.defineProperty($e,"hexToBase64",{enumerable:!0,get:function(){return jle.hexToBase64}});var Hle=DN();Object.defineProperty($e,"RandomIdGenerator",{enumerable:!0,get:function(){return Hle.RandomIdGenerator}});var qle=UN();Object.defineProperty($e,"otperformance",{enumerable:!0,get:function(){return qle.otperformance}});var Fle=r0();Object.defineProperty($e,"SDK_INFO",{enumerable:!0,get:function(){return Fle.SDK_INFO}});var Yle=n0();Object.defineProperty($e,"unrefTimer",{enumerable:!0,get:function(){return Yle.unrefTimer}})});var zh=_(ze=>{"use strict";l();Object.defineProperty(ze,"__esModule",{value:!0});ze.unrefTimer=ze.otperformance=ze.hexToBase64=ze.getEnvWithoutDefaults=ze.getEnv=ze._globalThis=ze.SDK_INFO=ze.RandomIdGenerator=void 0;var In=i0();Object.defineProperty(ze,"RandomIdGenerator",{enumerable:!0,get:function(){return In.RandomIdGenerator}});Object.defineProperty(ze,"SDK_INFO",{enumerable:!0,get:function(){return In.SDK_INFO}});Object.defineProperty(ze,"_globalThis",{enumerable:!0,get:function(){return In._globalThis}});Object.defineProperty(ze,"getEnv",{enumerable:!0,get:function(){return In.getEnv}});Object.defineProperty(ze,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return In.getEnvWithoutDefaults}});Object.defineProperty(ze,"hexToBase64",{enumerable:!0,get:function(){return In.hexToBase64}});Object.defineProperty(ze,"otperformance",{enumerable:!0,get:function(){return In.otperformance}});Object.defineProperty(ze,"unrefTimer",{enumerable:!0,get:function(){return In.unrefTimer}})});var u0=_(he=>{"use strict";l();Object.defineProperty(he,"__esModule",{value:!0});he.addHrTimes=he.isTimeInput=he.isTimeInputHrTime=he.hrTimeToMicroseconds=he.hrTimeToMilliseconds=he.hrTimeToNanoseconds=he.hrTimeToTimeStamp=he.hrTimeDuration=he.timeInputToHrTime=he.hrTime=he.getTimeOrigin=he.millisToHrTime=void 0;var Wh=zh(),a0=9,Kle=6,$le=Math.pow(10,Kle),xl=Math.pow(10,a0);function Cs(t){let e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*$le);return[n,i]}he.millisToHrTime=Cs;function Xh(){let t=Wh.otperformance.timeOrigin;if(typeof t!="number"){let e=Wh.otperformance;t=e.timing&&e.timing.fetchStart}return t}he.getTimeOrigin=Xh;function s0(t){let e=Cs(Xh()),n=Cs(typeof t=="number"?t:Wh.otperformance.now());return c0(e,n)}he.hrTime=s0;function zle(t){if(Jh(t))return t;if(typeof t=="number")return t<Xh()?s0(t):Cs(t);if(t instanceof Date)return Cs(t.getTime());throw TypeError("Invalid input type")}he.timeInputToHrTime=zle;function Wle(t,e){let n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=xl),[n,i]}he.hrTimeDuration=Wle;function Xle(t){let e=a0,n=`${"0".repeat(e)}${t[1]}Z`,i=n.substring(n.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",i)}he.hrTimeToTimeStamp=Xle;function Jle(t){return t[0]*xl+t[1]}he.hrTimeToNanoseconds=Jle;function Qle(t){return t[0]*1e3+t[1]/1e6}he.hrTimeToMilliseconds=Qle;function Zle(t){return t[0]*1e6+t[1]/1e3}he.hrTimeToMicroseconds=Zle;function Jh(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}he.isTimeInputHrTime=Jh;function epe(t){return Jh(t)||typeof t=="number"||t instanceof Date}he.isTimeInput=epe;function c0(t,e){let n=[t[0]+e[0],t[1]+e[1]];return n[1]>=xl&&(n[1]-=xl,n[0]+=1),n}he.addHrTimes=c0});var l0=_(ws=>{"use strict";l();Object.defineProperty(ws,"__esModule",{value:!0});ws.ExportResultCode=void 0;var tpe;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(tpe=ws.ExportResultCode||(ws.ExportResultCode={}))});var d0=_(bl=>{"use strict";l();Object.defineProperty(bl,"__esModule",{value:!0});bl.CompositePropagator=void 0;var p0=(L(),N(C)),Qh=class{constructor(e={}){var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(i=>typeof i.fields=="function"?i.fields():[]).reduce((i,a)=>i.concat(a),[])))}inject(e,n,i){for(let a of this._propagators)try{a.inject(e,n,i)}catch(c){p0.diag.warn(`Failed to inject with ${a.constructor.name}. Err: ${c.message}`)}}extract(e,n,i){return this._propagators.reduce((a,c)=>{try{return c.extract(a,n,i)}catch(o){p0.diag.warn(`Failed to extract with ${c.constructor.name}. Err: ${o.message}`)}return a},e)}fields(){return this._fields.slice()}};bl.CompositePropagator=Qh});var f0=_(zi=>{"use strict";l();Object.defineProperty(zi,"__esModule",{value:!0});zi.validateValue=zi.validateKey=void 0;var Zh="[_0-9a-z-*/]",rpe=`[a-z]${Zh}{0,255}`,npe=`[a-z0-9]${Zh}{0,240}@[a-z]${Zh}{0,13}`,ope=new RegExp(`^(?:${rpe}|${npe})$`),ipe=/^[ -~]{0,255}[!-~]$/,ape=/,|=/;function spe(t){return ope.test(t)}zi.validateKey=spe;function cpe(t){return ipe.test(t)&&!ape.test(t)}zi.validateValue=cpe});var tT=_(Ol=>{"use strict";l();Object.defineProperty(Ol,"__esModule",{value:!0});Ol.TraceState=void 0;var _0=f0(),m0=32,upe=512,E0=",",h0="=",eT=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,n){let i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i}unset(e){let n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,n)=>(e.push(n+h0+this.get(n)),e),[]).join(E0)}_parse(e){e.length>upe||(this._internalState=e.split(E0).reverse().reduce((n,i)=>{let a=i.trim(),c=a.indexOf(h0);if(c!==-1){let o=a.slice(0,c),r=a.slice(c+1,i.length);(0,_0.validateKey)(o)&&(0,_0.validateValue)(r)&&n.set(o,r)}return n},new Map),this._internalState.size>m0&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,m0))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};Ol.TraceState=eT});var S0=_(ct=>{"use strict";l();Object.defineProperty(ct,"__esModule",{value:!0});ct.W3CTraceContextPropagator=ct.parseTraceParent=ct.TRACE_STATE_HEADER=ct.TRACE_PARENT_HEADER=void 0;var Rl=(L(),N(C)),lpe=Ms(),ppe=tT();ct.TRACE_PARENT_HEADER="traceparent";ct.TRACE_STATE_HEADER="tracestate";var dpe="00",fpe="(?!ff)[\\da-f]{2}",_pe="(?![0]{32})[\\da-f]{32}",mpe="(?![0]{16})[\\da-f]{16}",Epe="[\\da-f]{2}",hpe=new RegExp(`^\\s?(${fpe})-(${_pe})-(${mpe})-(${Epe})(-.*)?\\s?$`);function T0(t){let e=hpe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}ct.parseTraceParent=T0;var rT=class{inject(e,n,i){let a=Rl.trace.getSpanContext(e);if(!a||(0,lpe.isTracingSuppressed)(e)||!(0,Rl.isSpanContextValid)(a))return;let c=`${dpe}-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||Rl.TraceFlags.NONE).toString(16)}`;i.set(n,ct.TRACE_PARENT_HEADER,c),a.traceState&&i.set(n,ct.TRACE_STATE_HEADER,a.traceState.serialize())}extract(e,n,i){let a=i.get(n,ct.TRACE_PARENT_HEADER);if(!a)return e;let c=Array.isArray(a)?a[0]:a;if(typeof c!="string")return e;let o=T0(c);if(!o)return e;o.isRemote=!0;let r=i.get(n,ct.TRACE_STATE_HEADER);if(r){let s=Array.isArray(r)?r.join(","):r;o.traceState=new ppe.TraceState(typeof s=="string"?s:void 0)}return Rl.trace.setSpanContext(e,o)}fields(){return[ct.TRACE_PARENT_HEADER,ct.TRACE_STATE_HEADER]}};ct.W3CTraceContextPropagator=rT});var v0=_(pr=>{"use strict";l();Object.defineProperty(pr,"__esModule",{value:!0});pr.getRPCMetadata=pr.deleteRPCMetadata=pr.setRPCMetadata=pr.RPCType=void 0;var Tpe=(L(),N(C)),nT=(0,Tpe.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),Spe;(function(t){t.HTTP="http"})(Spe=pr.RPCType||(pr.RPCType={}));function vpe(t,e){return t.setValue(nT,e)}pr.setRPCMetadata=vpe;function gpe(t){return t.deleteValue(nT)}pr.deleteRPCMetadata=gpe;function ype(t){return t.getValue(nT)}pr.getRPCMetadata=ype});var iT=_(Pl=>{"use strict";l();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.AlwaysOffSampler=void 0;var Ape=(L(),N(C)),oT=class{shouldSample(){return{decision:Ape.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Pl.AlwaysOffSampler=oT});var sT=_(Nl=>{"use strict";l();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.AlwaysOnSampler=void 0;var xpe=(L(),N(C)),aT=class{shouldSample(){return{decision:xpe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};Nl.AlwaysOnSampler=aT});var y0=_(Il=>{"use strict";l();Object.defineProperty(Il,"__esModule",{value:!0});Il.ParentBasedSampler=void 0;var Ml=(L(),N(C)),bpe=Gh(),g0=iT(),cT=sT(),uT=class{constructor(e){var n,i,a,c;this._root=e.root,this._root||((0,bpe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new cT.AlwaysOnSampler),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new cT.AlwaysOnSampler,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new g0.AlwaysOffSampler,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new cT.AlwaysOnSampler,this._localParentNotSampled=(c=e.localParentNotSampled)!==null&&c!==void 0?c:new g0.AlwaysOffSampler}shouldSample(e,n,i,a,c,o){let r=Ml.trace.getSpanContext(e);return!r||!(0,Ml.isSpanContextValid)(r)?this._root.shouldSample(e,n,i,a,c,o):r.isRemote?r.traceFlags&Ml.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,c,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,c,o):r.traceFlags&Ml.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,c,o):this._localParentNotSampled.shouldSample(e,n,i,a,c,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};Il.ParentBasedSampler=uT});var A0=_(Ll=>{"use strict";l();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.TraceIdRatioBasedSampler=void 0;var lT=(L(),N(C)),pT=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,n){return{decision:(0,lT.isValidTraceId)(n)&&this._accumulate(n)<this._upperBound?lT.SamplingDecision.RECORD_AND_SAMPLED:lT.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let n=0;for(let i=0;i<e.length/8;i++){let a=i*8,c=parseInt(e.slice(a,a+8),16);n=(n^c)>>>0}return n}};Ll.TraceIdRatioBasedSampler=pT});var P0=_(Cl=>{"use strict";l();Object.defineProperty(Cl,"__esModule",{value:!0});Cl.isPlainObject=void 0;var Ope="[object Object]",Rpe="[object Null]",Ppe="[object Undefined]",Npe=Function.prototype,x0=Npe.toString,Mpe=x0.call(Object),Ipe=Lpe(Object.getPrototypeOf,Object),b0=Object.prototype,O0=b0.hasOwnProperty,Oo=Symbol?Symbol.toStringTag:void 0,R0=b0.toString;function Lpe(t,e){return function(n){return t(e(n))}}function Cpe(t){if(!wpe(t)||Dpe(t)!==Ope)return!1;let e=Ipe(t);if(e===null)return!0;let n=O0.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&x0.call(n)===Mpe}Cl.isPlainObject=Cpe;function wpe(t){return t!=null&&typeof t=="object"}function Dpe(t){return t==null?t===void 0?Ppe:Rpe:Oo&&Oo in Object(t)?Upe(t):Vpe(t)}function Upe(t){let e=O0.call(t,Oo),n=t[Oo],i=!1;try{t[Oo]=void 0,i=!0}catch{}let a=R0.call(t);return i&&(e?t[Oo]=n:delete t[Oo]),a}function Vpe(t){return R0.call(t)}});var C0=_(Ul=>{"use strict";l();Object.defineProperty(Ul,"__esModule",{value:!0});Ul.merge=void 0;var N0=P0(),kpe=20;function Bpe(...t){let e=t.shift(),n=new WeakMap;for(;t.length>0;)e=I0(e,t.shift(),0,n);return e}Ul.merge=Bpe;function dT(t){return Dl(t)?t.slice():t}function I0(t,e,n=0,i){let a;if(!(n>kpe)){if(n++,wl(t)||wl(e)||L0(e))a=dT(e);else if(Dl(t)){if(a=t.slice(),Dl(e))for(let c=0,o=e.length;c<o;c++)a.push(dT(e[c]));else if(Ds(e)){let c=Object.keys(e);for(let o=0,r=c.length;o<r;o++){let s=c[o];a[s]=dT(e[s])}}}else if(Ds(t))if(Ds(e)){if(!Gpe(t,e))return e;a=Object.assign({},t);let c=Object.keys(e);for(let o=0,r=c.length;o<r;o++){let s=c[o],u=e[s];if(wl(u))typeof u>"u"?delete a[s]:a[s]=u;else{let p=a[s],S=u;if(M0(t,s,i)||M0(e,s,i))delete a[s];else{if(Ds(p)&&Ds(S)){let A=i.get(p)||[],O=i.get(S)||[];A.push({obj:t,key:s}),O.push({obj:e,key:s}),i.set(p,A),i.set(S,O)}a[s]=I0(a[s],u,n,i)}}}}else a=e;return a}}function M0(t,e,n){let i=n.get(t[e])||[];for(let a=0,c=i.length;a<c;a++){let o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function Dl(t){return Array.isArray(t)}function L0(t){return typeof t=="function"}function Ds(t){return!wl(t)&&!Dl(t)&&!L0(t)&&typeof t=="object"}function wl(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function Gpe(t,e){return!(!(0,N0.isPlainObject)(t)||!(0,N0.isPlainObject)(e))}});var w0=_(Wi=>{"use strict";l();Object.defineProperty(Wi,"__esModule",{value:!0});Wi.callWithTimeout=Wi.TimeoutError=void 0;var Vl=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Wi.TimeoutError=Vl;function jpe(t,e){let n,i=new Promise(function(c,o){n=setTimeout(function(){o(new Vl("Operation timed out."))},e)});return Promise.race([t,i]).then(a=>(clearTimeout(n),a),a=>{throw clearTimeout(n),a})}Wi.callWithTimeout=jpe});var U0=_(Xi=>{"use strict";l();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.isUrlIgnored=Xi.urlMatches=void 0;function D0(t,e){return typeof e=="string"?t===e:!!t.match(e)}Xi.urlMatches=D0;function Hpe(t,e){if(!e)return!1;for(let n of e)if(D0(t,n))return!0;return!1}Xi.isUrlIgnored=Hpe});var V0=_(kl=>{"use strict";l();Object.defineProperty(kl,"__esModule",{value:!0});kl.isWrapped=void 0;function qpe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}kl.isWrapped=qpe});var k0=_(Bl=>{"use strict";l();Object.defineProperty(Bl,"__esModule",{value:!0});Bl.Deferred=void 0;var fT=class{constructor(){this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};Bl.Deferred=fT});var B0=_(Gl=>{"use strict";l();Object.defineProperty(Gl,"__esModule",{value:!0});Gl.BindOnceFuture=void 0;var Fpe=k0(),_T=class{constructor(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new Fpe.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}};Gl.BindOnceFuture=_T});var j0=_(jl=>{"use strict";l();Object.defineProperty(jl,"__esModule",{value:!0});jl._export=void 0;var G0=(L(),N(C)),Ype=Ms();function Kpe(t,e){return new Promise(n=>{G0.context.with((0,Ype.suppressTracing)(G0.context.active()),()=>{t.export(e,i=>{n(i)})})})}jl._export=Kpe});var tn=_(x=>{"use strict";l();Object.defineProperty(x,"__esModule",{value:!0});x.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=x.DEFAULT_ATTRIBUTE_COUNT_LIMIT=x.TraceState=x.unsuppressTracing=x.suppressTracing=x.isTracingSuppressed=x.TraceIdRatioBasedSampler=x.ParentBasedSampler=x.AlwaysOnSampler=x.AlwaysOffSampler=x.setRPCMetadata=x.getRPCMetadata=x.deleteRPCMetadata=x.RPCType=x.parseTraceParent=x.W3CTraceContextPropagator=x.TRACE_STATE_HEADER=x.TRACE_PARENT_HEADER=x.CompositePropagator=x.unrefTimer=x.otperformance=x.hexToBase64=x.getEnvWithoutDefaults=x.getEnv=x._globalThis=x.SDK_INFO=x.RandomIdGenerator=x.baggageUtils=x.ExportResultCode=x.hexToBinary=x.timeInputToHrTime=x.millisToHrTime=x.isTimeInputHrTime=x.isTimeInput=x.hrTimeToTimeStamp=x.hrTimeToNanoseconds=x.hrTimeToMilliseconds=x.hrTimeToMicroseconds=x.hrTimeDuration=x.hrTime=x.getTimeOrigin=x.addHrTimes=x.loggingErrorHandler=x.setGlobalErrorHandler=x.globalErrorHandler=x.sanitizeAttributes=x.isAttributeValue=x.isAttributeKey=x.AnchoredClock=x.W3CBaggagePropagator=void 0;x.internal=x.VERSION=x.BindOnceFuture=x.isWrapped=x.urlMatches=x.isUrlIgnored=x.callWithTimeout=x.TimeoutError=x.TracesSamplerValues=x.merge=x.parseEnvironment=x.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=x.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=x.DEFAULT_ENVIRONMENT=void 0;var $pe=gN();Object.defineProperty(x,"W3CBaggagePropagator",{enumerable:!0,get:function(){return $pe.W3CBaggagePropagator}});var zpe=yN();Object.defineProperty(x,"AnchoredClock",{enumerable:!0,get:function(){return zpe.AnchoredClock}});var mT=RN();Object.defineProperty(x,"isAttributeKey",{enumerable:!0,get:function(){return mT.isAttributeKey}});Object.defineProperty(x,"isAttributeValue",{enumerable:!0,get:function(){return mT.isAttributeValue}});Object.defineProperty(x,"sanitizeAttributes",{enumerable:!0,get:function(){return mT.sanitizeAttributes}});var H0=Gh();Object.defineProperty(x,"globalErrorHandler",{enumerable:!0,get:function(){return H0.globalErrorHandler}});Object.defineProperty(x,"setGlobalErrorHandler",{enumerable:!0,get:function(){return H0.setGlobalErrorHandler}});var Wpe=Bh();Object.defineProperty(x,"loggingErrorHandler",{enumerable:!0,get:function(){return Wpe.loggingErrorHandler}});var Xt=u0();Object.defineProperty(x,"addHrTimes",{enumerable:!0,get:function(){return Xt.addHrTimes}});Object.defineProperty(x,"getTimeOrigin",{enumerable:!0,get:function(){return Xt.getTimeOrigin}});Object.defineProperty(x,"hrTime",{enumerable:!0,get:function(){return Xt.hrTime}});Object.defineProperty(x,"hrTimeDuration",{enumerable:!0,get:function(){return Xt.hrTimeDuration}});Object.defineProperty(x,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Xt.hrTimeToMicroseconds}});Object.defineProperty(x,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Xt.hrTimeToMilliseconds}});Object.defineProperty(x,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Xt.hrTimeToNanoseconds}});Object.defineProperty(x,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Xt.hrTimeToTimeStamp}});Object.defineProperty(x,"isTimeInput",{enumerable:!0,get:function(){return Xt.isTimeInput}});Object.defineProperty(x,"isTimeInputHrTime",{enumerable:!0,get:function(){return Xt.isTimeInputHrTime}});Object.defineProperty(x,"millisToHrTime",{enumerable:!0,get:function(){return Xt.millisToHrTime}});Object.defineProperty(x,"timeInputToHrTime",{enumerable:!0,get:function(){return Xt.timeInputToHrTime}});var Xpe=Fh();Object.defineProperty(x,"hexToBinary",{enumerable:!0,get:function(){return Xpe.hexToBinary}});var Jpe=l0();Object.defineProperty(x,"ExportResultCode",{enumerable:!0,get:function(){return Jpe.ExportResultCode}});var Hl=wh();x.baggageUtils={getKeyPairs:Hl.getKeyPairs,serializeKeyPairs:Hl.serializeKeyPairs,parseKeyPairsIntoRecord:Hl.parseKeyPairsIntoRecord,parsePairKeyValue:Hl.parsePairKeyValue};var Ln=zh();Object.defineProperty(x,"RandomIdGenerator",{enumerable:!0,get:function(){return Ln.RandomIdGenerator}});Object.defineProperty(x,"SDK_INFO",{enumerable:!0,get:function(){return Ln.SDK_INFO}});Object.defineProperty(x,"_globalThis",{enumerable:!0,get:function(){return Ln._globalThis}});Object.defineProperty(x,"getEnv",{enumerable:!0,get:function(){return Ln.getEnv}});Object.defineProperty(x,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return Ln.getEnvWithoutDefaults}});Object.defineProperty(x,"hexToBase64",{enumerable:!0,get:function(){return Ln.hexToBase64}});Object.defineProperty(x,"otperformance",{enumerable:!0,get:function(){return Ln.otperformance}});Object.defineProperty(x,"unrefTimer",{enumerable:!0,get:function(){return Ln.unrefTimer}});var Qpe=d0();Object.defineProperty(x,"CompositePropagator",{enumerable:!0,get:function(){return Qpe.CompositePropagator}});var ql=S0();Object.defineProperty(x,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return ql.TRACE_PARENT_HEADER}});Object.defineProperty(x,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return ql.TRACE_STATE_HEADER}});Object.defineProperty(x,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return ql.W3CTraceContextPropagator}});Object.defineProperty(x,"parseTraceParent",{enumerable:!0,get:function(){return ql.parseTraceParent}});var Fl=v0();Object.defineProperty(x,"RPCType",{enumerable:!0,get:function(){return Fl.RPCType}});Object.defineProperty(x,"deleteRPCMetadata",{enumerable:!0,get:function(){return Fl.deleteRPCMetadata}});Object.defineProperty(x,"getRPCMetadata",{enumerable:!0,get:function(){return Fl.getRPCMetadata}});Object.defineProperty(x,"setRPCMetadata",{enumerable:!0,get:function(){return Fl.setRPCMetadata}});var Zpe=iT();Object.defineProperty(x,"AlwaysOffSampler",{enumerable:!0,get:function(){return Zpe.AlwaysOffSampler}});var ede=sT();Object.defineProperty(x,"AlwaysOnSampler",{enumerable:!0,get:function(){return ede.AlwaysOnSampler}});var tde=y0();Object.defineProperty(x,"ParentBasedSampler",{enumerable:!0,get:function(){return tde.ParentBasedSampler}});var rde=A0();Object.defineProperty(x,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return rde.TraceIdRatioBasedSampler}});var ET=Ms();Object.defineProperty(x,"isTracingSuppressed",{enumerable:!0,get:function(){return ET.isTracingSuppressed}});Object.defineProperty(x,"suppressTracing",{enumerable:!0,get:function(){return ET.suppressTracing}});Object.defineProperty(x,"unsuppressTracing",{enumerable:!0,get:function(){return ET.unsuppressTracing}});var nde=tT();Object.defineProperty(x,"TraceState",{enumerable:!0,get:function(){return nde.TraceState}});var Ji=Hh();Object.defineProperty(x,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return Ji.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(x,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return Ji.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(x,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return Ji.DEFAULT_ENVIRONMENT}});Object.defineProperty(x,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return Ji.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(x,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return Ji.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(x,"parseEnvironment",{enumerable:!0,get:function(){return Ji.parseEnvironment}});var ode=C0();Object.defineProperty(x,"merge",{enumerable:!0,get:function(){return ode.merge}});var ide=jh();Object.defineProperty(x,"TracesSamplerValues",{enumerable:!0,get:function(){return ide.TracesSamplerValues}});var q0=w0();Object.defineProperty(x,"TimeoutError",{enumerable:!0,get:function(){return q0.TimeoutError}});Object.defineProperty(x,"callWithTimeout",{enumerable:!0,get:function(){return q0.callWithTimeout}});var F0=U0();Object.defineProperty(x,"isUrlIgnored",{enumerable:!0,get:function(){return F0.isUrlIgnored}});Object.defineProperty(x,"urlMatches",{enumerable:!0,get:function(){return F0.urlMatches}});var ade=V0();Object.defineProperty(x,"isWrapped",{enumerable:!0,get:function(){return ade.isWrapped}});var sde=B0();Object.defineProperty(x,"BindOnceFuture",{enumerable:!0,get:function(){return sde.BindOnceFuture}});var cde=Kh();Object.defineProperty(x,"VERSION",{enumerable:!0,get:function(){return cde.VERSION}});var ude=j0();x.internal={_export:ude._export}});var Y0=_(Zi=>{"use strict";l();Object.defineProperty(Zi,"__esModule",{value:!0});Zi.LastValueAggregator=Zi.LastValueAccumulation=void 0;var lde=ki(),Us=tn(),pde=Mi(),Qi=class{constructor(e,n=0,i=[0,0]){this.startTime=e,this._current=n,this.sampleTime=i}record(e){this._current=e,this.sampleTime=(0,Us.millisToHrTime)(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};Zi.LastValueAccumulation=Qi;var hT=class{constructor(){this.kind=lde.AggregatorKind.LAST_VALUE}createAccumulation(e){return new Qi(e)}merge(e,n){let i=(0,Us.hrTimeToMicroseconds)(n.sampleTime)>=(0,Us.hrTimeToMicroseconds)(e.sampleTime)?n:e;return new Qi(e.startTime,i.toPointValue(),i.sampleTime)}diff(e,n){let i=(0,Us.hrTimeToMicroseconds)(n.sampleTime)>=(0,Us.hrTimeToMicroseconds)(e.sampleTime)?n:e;return new Qi(n.startTime,i.toPointValue(),i.sampleTime)}toMetricData(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:pde.DataPointType.GAUGE,dataPoints:i.map(([c,o])=>({attributes:c,startTime:o.startTime,endTime:a,value:o.toPointValue()}))}}};Zi.LastValueAggregator=hT});var K0=_(ea=>{"use strict";l();Object.defineProperty(ea,"__esModule",{value:!0});ea.SumAggregator=ea.SumAccumulation=void 0;var dde=ki(),fde=Mi(),Cn=class{constructor(e,n,i=0,a=!1){this.startTime=e,this.monotonic=n,this._current=i,this.reset=a}record(e){this.monotonic&&e<0||(this._current+=e)}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};ea.SumAccumulation=Cn;var TT=class{constructor(e){this.monotonic=e,this.kind=dde.AggregatorKind.SUM}createAccumulation(e){return new Cn(e,this.monotonic)}merge(e,n){let i=e.toPointValue(),a=n.toPointValue();return n.reset?new Cn(n.startTime,this.monotonic,a,n.reset):new Cn(e.startTime,this.monotonic,i+a)}diff(e,n){let i=e.toPointValue(),a=n.toPointValue();return this.monotonic&&i>a?new Cn(n.startTime,this.monotonic,a,!0):new Cn(n.startTime,this.monotonic,a-i)}toMetricData(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:fde.DataPointType.SUM,dataPoints:i.map(([c,o])=>({attributes:c,startTime:o.startTime,endTime:a,value:o.toPointValue()})),isMonotonic:this.monotonic}}};ea.SumAggregator=TT});var J0=_(Ve=>{"use strict";l();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SumAggregator=Ve.SumAccumulation=Ve.LastValueAggregator=Ve.LastValueAccumulation=Ve.ExponentialHistogramAggregator=Ve.ExponentialHistogramAccumulation=Ve.HistogramAggregator=Ve.HistogramAccumulation=Ve.DropAggregator=void 0;var _de=oN();Object.defineProperty(Ve,"DropAggregator",{enumerable:!0,get:function(){return _de.DropAggregator}});var $0=sN();Object.defineProperty(Ve,"HistogramAccumulation",{enumerable:!0,get:function(){return $0.HistogramAccumulation}});Object.defineProperty(Ve,"HistogramAggregator",{enumerable:!0,get:function(){return $0.HistogramAggregator}});var z0=SN();Object.defineProperty(Ve,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return z0.ExponentialHistogramAccumulation}});Object.defineProperty(Ve,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return z0.ExponentialHistogramAggregator}});var W0=Y0();Object.defineProperty(Ve,"LastValueAccumulation",{enumerable:!0,get:function(){return W0.LastValueAccumulation}});Object.defineProperty(Ve,"LastValueAggregator",{enumerable:!0,get:function(){return W0.LastValueAggregator}});var X0=K0();Object.defineProperty(Ve,"SumAccumulation",{enumerable:!0,get:function(){return X0.SumAccumulation}});Object.defineProperty(Ve,"SumAggregator",{enumerable:!0,get:function(){return X0.SumAggregator}})});var zl=_(We=>{"use strict";l();Object.defineProperty(We,"__esModule",{value:!0});We.DefaultAggregation=We.ExponentialHistogramAggregation=We.ExplicitBucketHistogramAggregation=We.HistogramAggregation=We.LastValueAggregation=We.SumAggregation=We.DropAggregation=We.Aggregation=void 0;var mde=(L(),N(C)),Ro=J0(),Ir=en(),Lr=class{static Drop(){return Q0}static Sum(){return Z0}static LastValue(){return e1}static Histogram(){return t1}static ExponentialHistogram(){return Ede}static Default(){return hde}};We.Aggregation=Lr;var Vs=class t extends Lr{createAggregator(e){return t.DEFAULT_INSTANCE}};We.DropAggregation=Vs;Vs.DEFAULT_INSTANCE=new Ro.DropAggregator;var ta=class t extends Lr{createAggregator(e){switch(e.type){case Ir.InstrumentType.COUNTER:case Ir.InstrumentType.OBSERVABLE_COUNTER:case Ir.InstrumentType.HISTOGRAM:return t.MONOTONIC_INSTANCE;default:return t.NON_MONOTONIC_INSTANCE}}};We.SumAggregation=ta;ta.MONOTONIC_INSTANCE=new Ro.SumAggregator(!0);ta.NON_MONOTONIC_INSTANCE=new Ro.SumAggregator(!1);var ks=class t extends Lr{createAggregator(e){return t.DEFAULT_INSTANCE}};We.LastValueAggregation=ks;ks.DEFAULT_INSTANCE=new Ro.LastValueAggregator;var Bs=class t extends Lr{createAggregator(e){return t.DEFAULT_INSTANCE}};We.HistogramAggregation=Bs;Bs.DEFAULT_INSTANCE=new Ro.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);var Yl=class extends Lr{constructor(e,n=!0){if(super(),this._recordMinMax=n,e==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");e=e.concat(),e=e.sort((c,o)=>c-o);let i=e.lastIndexOf(-1/0),a=e.indexOf(1/0);a===-1&&(a=void 0),this._boundaries=e.slice(i+1,a)}createAggregator(e){return new Ro.HistogramAggregator(this._boundaries,this._recordMinMax)}};We.ExplicitBucketHistogramAggregation=Yl;var Kl=class extends Lr{constructor(e=160,n=!0){super(),this._maxSize=e,this._recordMinMax=n}createAggregator(e){return new Ro.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};We.ExponentialHistogramAggregation=Kl;var $l=class extends Lr{_resolve(e){switch(e.type){case Ir.InstrumentType.COUNTER:case Ir.InstrumentType.UP_DOWN_COUNTER:case Ir.InstrumentType.OBSERVABLE_COUNTER:case Ir.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Z0;case Ir.InstrumentType.GAUGE:case Ir.InstrumentType.OBSERVABLE_GAUGE:return e1;case Ir.InstrumentType.HISTOGRAM:return e.advice.explicitBucketBoundaries?new Yl(e.advice.explicitBucketBoundaries):t1}return mde.diag.warn(`Unable to recognize instrument type: ${e.type}`),Q0}createAggregator(e){return this._resolve(e).createAggregator(e)}};We.DefaultAggregation=$l;var Q0=new Vs,Z0=new ta,e1=new ks,t1=new Bs,Ede=new Kl,hde=new $l});var ST=_(ra=>{"use strict";l();Object.defineProperty(ra,"__esModule",{value:!0});ra.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=ra.DEFAULT_AGGREGATION_SELECTOR=void 0;var Tde=zl(),Sde=Mu(),vde=t=>Tde.Aggregation.Default();ra.DEFAULT_AGGREGATION_SELECTOR=vde;var gde=t=>Sde.AggregationTemporality.CUMULATIVE;ra.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=gde});var gT=_(Xl=>{"use strict";l();Object.defineProperty(Xl,"__esModule",{value:!0});Xl.MetricReader=void 0;var r1=(L(),N(C)),Wl=lr(),n1=ST(),vT=class{constructor(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:n1.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:n1.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=(a=e?.metricProducers)!==null&&a!==void 0?a:[],this._cardinalitySelector=e?.cardinalitySelector}setMetricProducer(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}selectCardinalityLimit(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3}onInitialized(){}async collect(e){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[n,...i]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis}),...this._metricProducers.map(r=>r.collect({timeoutMillis:e?.timeoutMillis}))]),a=n.errors.concat((0,Wl.FlatMap)(i,r=>r.errors)),c=n.resourceMetrics.resource,o=n.resourceMetrics.scopeMetrics.concat((0,Wl.FlatMap)(i,r=>r.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:c,scopeMetrics:o},errors:a}}async shutdown(e){if(this._shutdown){r1.diag.error("Cannot call shutdown twice.");return}e?.timeoutMillis==null?await this.onShutdown():await(0,Wl.callWithTimeout)(this.onShutdown(),e.timeoutMillis),this._shutdown=!0}async forceFlush(e){if(this._shutdown){r1.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(e?.timeoutMillis==null){await this.onForceFlush();return}await(0,Wl.callWithTimeout)(this.onForceFlush(),e.timeoutMillis)}};Xl.MetricReader=vT});var i1=_(Jl=>{"use strict";l();Object.defineProperty(Jl,"__esModule",{value:!0});Jl.PeriodicExportingMetricReader=void 0;var yT=(L(),N(C)),Gs=tn(),yde=gT(),o1=lr(),AT=class extends yde.MetricReader{constructor(e){var n,i,a,c;if(super({aggregationSelector:(n=e.exporter.selectAggregation)===null||n===void 0?void 0:n.bind(e.exporter),aggregationTemporalitySelector:(i=e.exporter.selectAggregationTemporality)===null||i===void 0?void 0:i.bind(e.exporter),metricProducers:e.metricProducers}),e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<e.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=(a=e.exportIntervalMillis)!==null&&a!==void 0?a:6e4,this._exportTimeout=(c=e.exportTimeoutMillis)!==null&&c!==void 0?c:3e4,this._exporter=e.exporter}async _runOnce(){try{await(0,o1.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(e){if(e instanceof o1.TimeoutError){yT.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,Gs.globalErrorHandler)(e)}}async _doRun(){var e,n;let{resourceMetrics:i,errors:a}=await this.collect({timeoutMillis:this._exportTimeout});if(a.length>0&&yT.diag.error("PeriodicExportingMetricReader: metrics collection errors",...a),i.resource.asyncAttributesPending)try{await((n=(e=i.resource).waitForAsyncAttributes)===null||n===void 0?void 0:n.call(e))}catch(o){yT.diag.debug("Error while resolving async portion of resource: ",o),(0,Gs.globalErrorHandler)(o)}if(i.scopeMetrics.length===0)return;let c=await Gs.internal._export(this._exporter,i);if(c.code!==Gs.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${c.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,Gs.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};Jl.PeriodicExportingMetricReader=AT});var s1=_(Ql=>{"use strict";l();Object.defineProperty(Ql,"__esModule",{value:!0});Ql.InMemoryMetricExporter=void 0;var a1=tn(),xT=class{constructor(e){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=e}export(e,n){if(this._shutdown){setTimeout(()=>n({code:a1.ExportResultCode.FAILED}),0);return}this._metrics.push(e),setTimeout(()=>n({code:a1.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(e){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};Ql.InMemoryMetricExporter=xT});var u1=_(Zl=>{"use strict";l();Object.defineProperty(Zl,"__esModule",{value:!0});Zl.ConsoleMetricExporter=void 0;var c1=tn(),Ade=ST(),bT=class t{constructor(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:Ade.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(e,n){if(this._shutdown){setImmediate(n,{code:c1.ExportResultCode.FAILED});return}return t._sendMetrics(e,n)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return this._temporalitySelector(e)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(e,n){for(let i of e.scopeMetrics)for(let a of i.metrics)console.dir({descriptor:a.descriptor,dataPointType:a.dataPointType,dataPoints:a.dataPoints},{depth:null});n({code:c1.ExportResultCode.SUCCESS})}};Zl.ConsoleMetricExporter=bT});var l1=_(ep=>{"use strict";l();Object.defineProperty(ep,"__esModule",{value:!0});ep.defaultServiceName=void 0;function xde(){return`unknown_service:${process.argv0}`}ep.defaultServiceName=xde});var p1=_(tp=>{"use strict";l();Object.defineProperty(tp,"__esModule",{value:!0});tp.defaultServiceName=void 0;var bde=l1();Object.defineProperty(tp,"defaultServiceName",{enumerable:!0,get:function(){return bde.defaultServiceName}})});var OT=_(rp=>{"use strict";l();Object.defineProperty(rp,"__esModule",{value:!0});rp.defaultServiceName=void 0;var Ode=p1();Object.defineProperty(rp,"defaultServiceName",{enumerable:!0,get:function(){return Ode.defaultServiceName}})});var rn=_(np=>{"use strict";l();Object.defineProperty(np,"__esModule",{value:!0});np.Resource=void 0;var d1=(L(),N(C)),Po=(ot(),N(nt)),RT=tn(),Rde=OT(),js=class t{constructor(e,n){var i;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=n?.then(a=>(this._attributes=Object.assign({},this._attributes,a),this.asyncAttributesPending=!1,a),a=>(d1.diag.debug("a resource's async attributes promise rejected: %s",a),this.asyncAttributesPending=!1,{}))}static empty(){return t.EMPTY}static default(){return new t({[Po.SEMRESATTRS_SERVICE_NAME]:(0,Rde.defaultServiceName)(),[Po.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:RT.SDK_INFO[Po.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[Po.SEMRESATTRS_TELEMETRY_SDK_NAME]:RT.SDK_INFO[Po.SEMRESATTRS_TELEMETRY_SDK_NAME],[Po.SEMRESATTRS_TELEMETRY_SDK_VERSION]:RT.SDK_INFO[Po.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var e;return this.asyncAttributesPending&&d1.diag.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(e){var n;if(!e)return this;let i=Object.assign(Object.assign({},this._syncAttributes),(n=e._syncAttributes)!==null&&n!==void 0?n:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(i);let a=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(([c,o])=>{var r;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),c),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),o)});return new t(i,a)}};np.Resource=js;js.EMPTY=new js({})});var PT=_(na=>{"use strict";l();Object.defineProperty(na,"__esModule",{value:!0});na.normalizeType=na.normalizeArch=void 0;var Pde=t=>{switch(t){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return t}};na.normalizeArch=Pde;var Nde=t=>{switch(t){case"sunos":return"solaris";case"win32":return"windows";default:return t}};na.normalizeType=Nde});var ip=_(op=>{"use strict";l();Object.defineProperty(op,"__esModule",{value:!0});op.execAsync=void 0;var Mde=q("child_process"),Ide=q("util");op.execAsync=Ide.promisify(Mde.exec)});var f1=_(ap=>{"use strict";l();Object.defineProperty(ap,"__esModule",{value:!0});ap.getMachineId=void 0;var Lde=ip(),Cde=(L(),N(C));async function wde(){try{let e=(await(0,Lde.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
26
|
+
`).find(i=>i.includes("IOPlatformUUID"));if(!e)return"";let n=e.split('" = "');if(n.length===2)return n[1].slice(0,-1)}catch(t){Cde.diag.debug(`error reading machine id: ${t}`)}return""}ap.getMachineId=wde});var _1=_(sp=>{"use strict";l();Object.defineProperty(sp,"__esModule",{value:!0});sp.getMachineId=void 0;var Dde=q("fs"),Ude=(L(),N(C));async function Vde(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let e of t)try{return(await Dde.promises.readFile(e,{encoding:"utf8"})).trim()}catch(n){Ude.diag.debug(`error reading machine id: ${n}`)}return""}sp.getMachineId=Vde});var E1=_(cp=>{"use strict";l();Object.defineProperty(cp,"__esModule",{value:!0});cp.getMachineId=void 0;var kde=q("fs"),Bde=ip(),m1=(L(),N(C));async function Gde(){try{return(await kde.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(t){m1.diag.debug(`error reading machine id: ${t}`)}try{return(await(0,Bde.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(t){m1.diag.debug(`error reading machine id: ${t}`)}return""}cp.getMachineId=Gde});var T1=_(up=>{"use strict";l();Object.defineProperty(up,"__esModule",{value:!0});up.getMachineId=void 0;var h1=q("process"),jde=ip(),Hde=(L(),N(C));async function qde(){let t="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";h1.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in h1.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let i=(await(0,jde.execAsync)(`${e} ${t}`)).stdout.split("REG_SZ");if(i.length===2)return i[1].trim()}catch(n){Hde.diag.debug(`error reading machine id: ${n}`)}return""}up.getMachineId=qde});var S1=_(lp=>{"use strict";l();Object.defineProperty(lp,"__esModule",{value:!0});lp.getMachineId=void 0;var Fde=(L(),N(C));async function Yde(){return Fde.diag.debug("could not read machine-id: unsupported platform"),""}lp.getMachineId=Yde});var v1=_(nn=>{"use strict";l();Object.defineProperty(nn,"__esModule",{value:!0});nn.getMachineId=void 0;var Kde=q("process"),oa;nn.getMachineId=oa;switch(Kde.platform){case"darwin":nn.getMachineId=oa=f1().getMachineId;break;case"linux":nn.getMachineId=oa=_1().getMachineId;break;case"freebsd":nn.getMachineId=oa=E1().getMachineId;break;case"win32":nn.getMachineId=oa=T1().getMachineId;break;default:nn.getMachineId=oa=S1().getMachineId}});var IT=_(pp=>{"use strict";l();Object.defineProperty(pp,"__esModule",{value:!0});pp.hostDetectorSync=void 0;var NT=(ot(),N(nt)),$de=rn(),g1=q("os"),zde=PT(),Wde=v1(),MT=class{detect(e){let n={[NT.SEMRESATTRS_HOST_NAME]:(0,g1.hostname)(),[NT.SEMRESATTRS_HOST_ARCH]:(0,zde.normalizeArch)((0,g1.arch)())};return new $de.Resource(n,this._getAsyncAttributes())}_getAsyncAttributes(){return(0,Wde.getMachineId)().then(e=>{let n={};return e&&(n[NT.SEMRESATTRS_HOST_ID]=e),n})}};pp.hostDetectorSync=new MT});var y1=_(dp=>{"use strict";l();Object.defineProperty(dp,"__esModule",{value:!0});dp.hostDetector=void 0;var Xde=IT(),LT=class{detect(e){return Promise.resolve(Xde.hostDetectorSync.detect(e))}};dp.hostDetector=new LT});var wT=_(fp=>{"use strict";l();Object.defineProperty(fp,"__esModule",{value:!0});fp.osDetectorSync=void 0;var A1=(ot(),N(nt)),Jde=rn(),x1=q("os"),Qde=PT(),CT=class{detect(e){let n={[A1.SEMRESATTRS_OS_TYPE]:(0,Qde.normalizeType)((0,x1.platform)()),[A1.SEMRESATTRS_OS_VERSION]:(0,x1.release)()};return new Jde.Resource(n)}};fp.osDetectorSync=new CT});var b1=_(_p=>{"use strict";l();Object.defineProperty(_p,"__esModule",{value:!0});_p.osDetector=void 0;var Zde=wT(),DT=class{detect(e){return Promise.resolve(Zde.osDetectorSync.detect(e))}};_p.osDetector=new DT});var VT=_(mp=>{"use strict";l();Object.defineProperty(mp,"__esModule",{value:!0});mp.processDetectorSync=void 0;var efe=(L(),N(C)),on=(ot(),N(nt)),tfe=rn(),rfe=q("os"),UT=class{detect(e){let n={[on.SEMRESATTRS_PROCESS_PID]:process.pid,[on.SEMRESATTRS_PROCESS_EXECUTABLE_NAME]:process.title,[on.SEMRESATTRS_PROCESS_EXECUTABLE_PATH]:process.execPath,[on.SEMRESATTRS_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[on.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:process.versions.node,[on.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"nodejs",[on.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(n[on.SEMRESATTRS_PROCESS_COMMAND]=process.argv[1]);try{let i=rfe.userInfo();n[on.SEMRESATTRS_PROCESS_OWNER]=i.username}catch(i){efe.diag.debug(`error obtaining process owner: ${i}`)}return new tfe.Resource(n)}};mp.processDetectorSync=new UT});var O1=_(Ep=>{"use strict";l();Object.defineProperty(Ep,"__esModule",{value:!0});Ep.processDetector=void 0;var nfe=VT(),kT=class{detect(e){return Promise.resolve(nfe.processDetectorSync.detect(e))}};Ep.processDetector=new kT});var R1=_(hp=>{"use strict";l();Object.defineProperty(hp,"__esModule",{value:!0});hp.serviceInstanceIdDetectorSync=void 0;var ofe=(ot(),N(nt)),ife=rn(),afe=q("crypto"),BT=class{detect(e){let n={[ofe.SEMRESATTRS_SERVICE_INSTANCE_ID]:(0,afe.randomUUID)()};return new ife.Resource(n)}};hp.serviceInstanceIdDetectorSync=new BT});var P1=_(ut=>{"use strict";l();Object.defineProperty(ut,"__esModule",{value:!0});ut.serviceInstanceIdDetectorSync=ut.processDetectorSync=ut.processDetector=ut.osDetectorSync=ut.osDetector=ut.hostDetectorSync=ut.hostDetector=void 0;var sfe=y1();Object.defineProperty(ut,"hostDetector",{enumerable:!0,get:function(){return sfe.hostDetector}});var cfe=IT();Object.defineProperty(ut,"hostDetectorSync",{enumerable:!0,get:function(){return cfe.hostDetectorSync}});var ufe=b1();Object.defineProperty(ut,"osDetector",{enumerable:!0,get:function(){return ufe.osDetector}});var lfe=wT();Object.defineProperty(ut,"osDetectorSync",{enumerable:!0,get:function(){return lfe.osDetectorSync}});var pfe=O1();Object.defineProperty(ut,"processDetector",{enumerable:!0,get:function(){return pfe.processDetector}});var dfe=VT();Object.defineProperty(ut,"processDetectorSync",{enumerable:!0,get:function(){return dfe.processDetectorSync}});var ffe=R1();Object.defineProperty(ut,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return ffe.serviceInstanceIdDetectorSync}})});var N1=_(lt=>{"use strict";l();Object.defineProperty(lt,"__esModule",{value:!0});lt.serviceInstanceIdDetectorSync=lt.processDetectorSync=lt.processDetector=lt.osDetectorSync=lt.osDetector=lt.hostDetectorSync=lt.hostDetector=void 0;var No=P1();Object.defineProperty(lt,"hostDetector",{enumerable:!0,get:function(){return No.hostDetector}});Object.defineProperty(lt,"hostDetectorSync",{enumerable:!0,get:function(){return No.hostDetectorSync}});Object.defineProperty(lt,"osDetector",{enumerable:!0,get:function(){return No.osDetector}});Object.defineProperty(lt,"osDetectorSync",{enumerable:!0,get:function(){return No.osDetectorSync}});Object.defineProperty(lt,"processDetector",{enumerable:!0,get:function(){return No.processDetector}});Object.defineProperty(lt,"processDetectorSync",{enumerable:!0,get:function(){return No.processDetectorSync}});Object.defineProperty(lt,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return No.serviceInstanceIdDetectorSync}})});var HT=_(Sp=>{"use strict";l();Object.defineProperty(Sp,"__esModule",{value:!0});Sp.browserDetectorSync=void 0;var Tp=(ot(),N(nt)),_fe=(L(),N(C)),GT=rn(),jT=class{detect(e){var n,i,a;if(!(typeof navigator<"u"&&((i=(n=global.process)===null||n===void 0?void 0:n.versions)===null||i===void 0?void 0:i.node)===void 0&&((a=global.Bun)===null||a===void 0?void 0:a.version)===void 0))return GT.Resource.empty();let o={[Tp.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"browser",[Tp.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Web Browser",[Tp.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:navigator.userAgent};return this._getResourceAttributes(o,e)}_getResourceAttributes(e,n){return e[Tp.SEMRESATTRS_PROCESS_RUNTIME_VERSION]===""?(_fe.diag.debug("BrowserDetector failed: Unable to find required browser resources. "),GT.Resource.empty()):new GT.Resource(Object.assign({},e))}};Sp.browserDetectorSync=new jT});var M1=_(vp=>{"use strict";l();Object.defineProperty(vp,"__esModule",{value:!0});vp.browserDetector=void 0;var mfe=HT(),qT=class{detect(e){return Promise.resolve(mfe.browserDetectorSync.detect(e))}};vp.browserDetector=new qT});var YT=_(gp=>{"use strict";l();Object.defineProperty(gp,"__esModule",{value:!0});gp.envDetectorSync=void 0;var Efe=(L(),N(C)),hfe=tn(),Tfe=(ot(),N(nt)),Sfe=rn(),FT=class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}detect(e){let n={},i=(0,hfe.getEnv)(),a=i.OTEL_RESOURCE_ATTRIBUTES,c=i.OTEL_SERVICE_NAME;if(a)try{let o=this._parseResourceAttributes(a);Object.assign(n,o)}catch(o){Efe.diag.debug(`EnvDetector failed: ${o.message}`)}return c&&(n[Tfe.SEMRESATTRS_SERVICE_NAME]=c),new Sfe.Resource(n)}_parseResourceAttributes(e){if(!e)return{};let n={},i=e.split(this._COMMA_SEPARATOR,-1);for(let a of i){let c=a.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(c.length!==2)continue;let[o,r]=c;if(o=o.trim(),r=r.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(o))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(r))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);n[o]=decodeURIComponent(r)}return n}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i<33||i===44||i===59||i===92||i>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}};gp.envDetectorSync=new FT});var I1=_(yp=>{"use strict";l();Object.defineProperty(yp,"__esModule",{value:!0});yp.envDetector=void 0;var vfe=YT(),KT=class{detect(e){return Promise.resolve(vfe.envDetectorSync.detect(e))}};yp.envDetector=new KT});var L1=_(ye=>{"use strict";l();Object.defineProperty(ye,"__esModule",{value:!0});ye.envDetectorSync=ye.browserDetectorSync=ye.envDetector=ye.browserDetector=ye.serviceInstanceIdDetectorSync=ye.processDetectorSync=ye.processDetector=ye.osDetectorSync=ye.osDetector=ye.hostDetectorSync=ye.hostDetector=void 0;var Mo=N1();Object.defineProperty(ye,"hostDetector",{enumerable:!0,get:function(){return Mo.hostDetector}});Object.defineProperty(ye,"hostDetectorSync",{enumerable:!0,get:function(){return Mo.hostDetectorSync}});Object.defineProperty(ye,"osDetector",{enumerable:!0,get:function(){return Mo.osDetector}});Object.defineProperty(ye,"osDetectorSync",{enumerable:!0,get:function(){return Mo.osDetectorSync}});Object.defineProperty(ye,"processDetector",{enumerable:!0,get:function(){return Mo.processDetector}});Object.defineProperty(ye,"processDetectorSync",{enumerable:!0,get:function(){return Mo.processDetectorSync}});Object.defineProperty(ye,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return Mo.serviceInstanceIdDetectorSync}});var gfe=M1();Object.defineProperty(ye,"browserDetector",{enumerable:!0,get:function(){return gfe.browserDetector}});var yfe=I1();Object.defineProperty(ye,"envDetector",{enumerable:!0,get:function(){return yfe.envDetector}});var Afe=HT();Object.defineProperty(ye,"browserDetectorSync",{enumerable:!0,get:function(){return Afe.browserDetectorSync}});var xfe=YT();Object.defineProperty(ye,"envDetectorSync",{enumerable:!0,get:function(){return xfe.envDetectorSync}})});var C1=_(Ap=>{"use strict";l();Object.defineProperty(Ap,"__esModule",{value:!0});Ap.isPromiseLike=void 0;var bfe=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";Ap.isPromiseLike=bfe});var D1=_(aa=>{"use strict";l();Object.defineProperty(aa,"__esModule",{value:!0});aa.detectResourcesSync=aa.detectResources=void 0;var Hs=rn(),ia=(L(),N(C)),Ofe=C1(),Rfe=async(t={})=>{let e=await Promise.all((t.detectors||[]).map(async n=>{try{let i=await n.detect(t);return ia.diag.debug(`${n.constructor.name} found resource.`,i),i}catch(i){return ia.diag.debug(`${n.constructor.name} failed: ${i.message}`),Hs.Resource.empty()}}));return w1(e),e.reduce((n,i)=>n.merge(i),Hs.Resource.empty())};aa.detectResources=Rfe;var Pfe=(t={})=>{var e;let n=((e=t.detectors)!==null&&e!==void 0?e:[]).map(a=>{try{let c=a.detect(t),o;if((0,Ofe.isPromiseLike)(c)){let r=async()=>{var s;let u=await c;return await((s=u.waitForAsyncAttributes)===null||s===void 0?void 0:s.call(u)),u.attributes};o=new Hs.Resource({},r())}else o=c;return o.waitForAsyncAttributes?o.waitForAsyncAttributes().then(()=>ia.diag.debug(`${a.constructor.name} found resource.`,o)):ia.diag.debug(`${a.constructor.name} found resource.`,o),o}catch(c){return ia.diag.error(`${a.constructor.name} failed: ${c.message}`),Hs.Resource.empty()}}),i=n.reduce((a,c)=>a.merge(c),Hs.Resource.empty());return i.waitForAsyncAttributes&&i.waitForAsyncAttributes().then(()=>{w1(n)}),i};aa.detectResourcesSync=Pfe;var w1=t=>{t.forEach(e=>{if(Object.keys(e.attributes).length>0){let n=JSON.stringify(e.attributes,null,4);ia.diag.verbose(n)}})}});var $T=_(le=>{"use strict";l();Object.defineProperty(le,"__esModule",{value:!0});le.detectResources=le.detectResourcesSync=le.serviceInstanceIdDetectorSync=le.processDetectorSync=le.processDetector=le.osDetectorSync=le.osDetector=le.hostDetectorSync=le.hostDetector=le.envDetectorSync=le.envDetector=le.browserDetectorSync=le.browserDetector=le.defaultServiceName=le.Resource=void 0;var Nfe=rn();Object.defineProperty(le,"Resource",{enumerable:!0,get:function(){return Nfe.Resource}});var Mfe=OT();Object.defineProperty(le,"defaultServiceName",{enumerable:!0,get:function(){return Mfe.defaultServiceName}});var dr=L1();Object.defineProperty(le,"browserDetector",{enumerable:!0,get:function(){return dr.browserDetector}});Object.defineProperty(le,"browserDetectorSync",{enumerable:!0,get:function(){return dr.browserDetectorSync}});Object.defineProperty(le,"envDetector",{enumerable:!0,get:function(){return dr.envDetector}});Object.defineProperty(le,"envDetectorSync",{enumerable:!0,get:function(){return dr.envDetectorSync}});Object.defineProperty(le,"hostDetector",{enumerable:!0,get:function(){return dr.hostDetector}});Object.defineProperty(le,"hostDetectorSync",{enumerable:!0,get:function(){return dr.hostDetectorSync}});Object.defineProperty(le,"osDetector",{enumerable:!0,get:function(){return dr.osDetector}});Object.defineProperty(le,"osDetectorSync",{enumerable:!0,get:function(){return dr.osDetectorSync}});Object.defineProperty(le,"processDetector",{enumerable:!0,get:function(){return dr.processDetector}});Object.defineProperty(le,"processDetectorSync",{enumerable:!0,get:function(){return dr.processDetectorSync}});Object.defineProperty(le,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return dr.serviceInstanceIdDetectorSync}});var U1=D1();Object.defineProperty(le,"detectResourcesSync",{enumerable:!0,get:function(){return U1.detectResourcesSync}});Object.defineProperty(le,"detectResources",{enumerable:!0,get:function(){return U1.detectResources}})});var V1=_(xp=>{"use strict";l();Object.defineProperty(xp,"__esModule",{value:!0});xp.ViewRegistry=void 0;var zT=class{constructor(){this._registeredViews=[]}addView(e){this._registeredViews.push(e)}findViews(e,n){return this._registeredViews.filter(a=>this._matchInstrument(a.instrumentSelector,e)&&this._matchMeter(a.meterSelector,n))}_matchInstrument(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)}_matchMeter(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))}};xp.ViewRegistry=zT});var bp=_(Ie=>{"use strict";l();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.isObservableInstrument=Ie.ObservableUpDownCounterInstrument=Ie.ObservableGaugeInstrument=Ie.ObservableCounterInstrument=Ie.ObservableInstrument=Ie.HistogramInstrument=Ie.GaugeInstrument=Ie.CounterInstrument=Ie.UpDownCounterInstrument=Ie.SyncInstrument=void 0;var sa=(L(),N(C)),Ife=tn(),Io=class{constructor(e,n){this._writableMetricStorage=e,this._descriptor=n}_record(e,n={},i=sa.context.active()){if(typeof e!="number"){sa.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${e}`);return}this._descriptor.valueType===sa.ValueType.INT&&!Number.isInteger(e)&&(sa.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,i,(0,Ife.millisToHrTime)(Date.now()))}};Ie.SyncInstrument=Io;var WT=class extends Io{add(e,n,i){this._record(e,n,i)}};Ie.UpDownCounterInstrument=WT;var XT=class extends Io{add(e,n,i){if(e<0){sa.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${e}`);return}this._record(e,n,i)}};Ie.CounterInstrument=XT;var JT=class extends Io{record(e,n,i){this._record(e,n,i)}};Ie.GaugeInstrument=JT;var QT=class extends Io{record(e,n,i){if(e<0){sa.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${e}`);return}this._record(e,n,i)}};Ie.HistogramInstrument=QT;var Lo=class{constructor(e,n,i){this._observableRegistry=i,this._descriptor=e,this._metricStorages=n}addCallback(e){this._observableRegistry.addCallback(e,this)}removeCallback(e){this._observableRegistry.removeCallback(e,this)}};Ie.ObservableInstrument=Lo;var ZT=class extends Lo{};Ie.ObservableCounterInstrument=ZT;var eS=class extends Lo{};Ie.ObservableGaugeInstrument=eS;var tS=class extends Lo{};Ie.ObservableUpDownCounterInstrument=tS;function Lfe(t){return t instanceof Lo}Ie.isObservableInstrument=Lfe});var k1=_(Op=>{"use strict";l();Object.defineProperty(Op,"__esModule",{value:!0});Op.Meter=void 0;var Rt=en(),Co=bp(),rS=class{constructor(e){this._meterSharedState=e}createGauge(e,n){let i=(0,Rt.createInstrumentDescriptor)(e,Rt.InstrumentType.GAUGE,n),a=this._meterSharedState.registerMetricStorage(i);return new Co.GaugeInstrument(a,i)}createHistogram(e,n){let i=(0,Rt.createInstrumentDescriptor)(e,Rt.InstrumentType.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new Co.HistogramInstrument(a,i)}createCounter(e,n){let i=(0,Rt.createInstrumentDescriptor)(e,Rt.InstrumentType.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new Co.CounterInstrument(a,i)}createUpDownCounter(e,n){let i=(0,Rt.createInstrumentDescriptor)(e,Rt.InstrumentType.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new Co.UpDownCounterInstrument(a,i)}createObservableGauge(e,n){let i=(0,Rt.createInstrumentDescriptor)(e,Rt.InstrumentType.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Co.ObservableGaugeInstrument(i,a,this._meterSharedState.observableRegistry)}createObservableCounter(e,n){let i=(0,Rt.createInstrumentDescriptor)(e,Rt.InstrumentType.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Co.ObservableCounterInstrument(i,a,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(e,n){let i=(0,Rt.createInstrumentDescriptor)(e,Rt.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Co.ObservableUpDownCounterInstrument(i,a,this._meterSharedState.observableRegistry)}addBatchObservableCallback(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)}removeBatchObservableCallback(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)}};Op.Meter=rS});var oS=_(Rp=>{"use strict";l();Object.defineProperty(Rp,"__esModule",{value:!0});Rp.MetricStorage=void 0;var Cfe=en(),nS=class{constructor(e){this._instrumentDescriptor=e}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(e){this._instrumentDescriptor=(0,Cfe.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};Rp.MetricStorage=nS});var qs=_(ca=>{"use strict";l();Object.defineProperty(ca,"__esModule",{value:!0});ca.AttributeHashMap=ca.HashMap=void 0;var wfe=lr(),Pp=class{constructor(e){this._hash=e,this._valueMap=new Map,this._keyMap=new Map}get(e,n){return n??(n=this._hash(e)),this._valueMap.get(n)}getOrDefault(e,n){let i=this._hash(e);if(this._valueMap.has(i))return this._valueMap.get(i);let a=n();return this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,a),a}set(e,n,i){i??(i=this._hash(e)),this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,n)}has(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)}*keys(){let e=this._keyMap.entries(),n=e.next();for(;n.done!==!0;)yield[n.value[1],n.value[0]],n=e.next()}*entries(){let e=this._valueMap.entries(),n=e.next();for(;n.done!==!0;)yield[this._keyMap.get(n.value[0]),n.value[1],n.value[0]],n=e.next()}get size(){return this._valueMap.size}};ca.HashMap=Pp;var iS=class extends Pp{constructor(){super(wfe.hashAttributes)}};ca.AttributeHashMap=iS});var cS=_(Np=>{"use strict";l();Object.defineProperty(Np,"__esModule",{value:!0});Np.DeltaMetricProcessor=void 0;var Dfe=lr(),aS=qs(),sS=class{constructor(e,n){this._aggregator=e,this._activeCollectionStorage=new aS.AttributeHashMap,this._cumulativeMemoStorage=new aS.AttributeHashMap,this._overflowAttributes={"otel.metric.overflow":!0},this._cardinalityLimit=(n??2e3)-1,this._overflowHashCode=(0,Dfe.hashAttributes)(this._overflowAttributes)}record(e,n,i,a){let c=this._activeCollectionStorage.get(n);if(!c){if(this._activeCollectionStorage.size>=this._cardinalityLimit){let o=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(a));o?.record(e);return}c=this._aggregator.createAccumulation(a),this._activeCollectionStorage.set(n,c)}c?.record(e)}batchCumulate(e,n){Array.from(e.entries()).forEach(([i,a,c])=>{let o=this._aggregator.createAccumulation(n);o?.record(a);let r=o;if(this._cumulativeMemoStorage.has(i,c)){let s=this._cumulativeMemoStorage.get(i,c);r=this._aggregator.diff(s,o)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(i=this._overflowAttributes,c=this._overflowHashCode,this._cumulativeMemoStorage.has(i,c))){let s=this._cumulativeMemoStorage.get(i,c);r=this._aggregator.diff(s,o)}if(this._activeCollectionStorage.has(i,c)){let s=this._activeCollectionStorage.get(i,c);r=this._aggregator.merge(s,r)}this._cumulativeMemoStorage.set(i,o,c),this._activeCollectionStorage.set(i,r,c)})}collect(){let e=this._activeCollectionStorage;return this._activeCollectionStorage=new aS.AttributeHashMap,e}};Np.DeltaMetricProcessor=sS});var lS=_(Mp=>{"use strict";l();Object.defineProperty(Mp,"__esModule",{value:!0});Mp.TemporalMetricProcessor=void 0;var Ufe=Mu(),Vfe=qs(),uS=class t{constructor(e,n){this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(i=>{this._unreportedAccumulations.set(i,[])})}buildMetrics(e,n,i,a){this._stashAccumulations(i);let c=this._getMergedUnreportedAccumulations(e),o=c,r;if(this._reportHistory.has(e)){let u=this._reportHistory.get(e),p=u.collectionTime;r=u.aggregationTemporality,r===Ufe.AggregationTemporality.CUMULATIVE?o=t.merge(u.accumulations,c,this._aggregator):o=t.calibrateStartTime(u.accumulations,c,p)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:o,collectionTime:a,aggregationTemporality:r});let s=kfe(o);if(s.length!==0)return this._aggregator.toMetricData(n,r,s,a)}_stashAccumulations(e){let n=this._unreportedAccumulations.keys();for(let i of n){let a=this._unreportedAccumulations.get(i);a===void 0&&(a=[],this._unreportedAccumulations.set(i,a)),a.push(e)}}_getMergedUnreportedAccumulations(e){let n=new Vfe.AttributeHashMap,i=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),i===void 0)return n;for(let a of i)n=t.merge(n,a,this._aggregator);return n}static merge(e,n,i){let a=e,c=n.entries(),o=c.next();for(;o.done!==!0;){let[r,s,u]=o.value;if(e.has(r,u)){let p=e.get(r,u),S=i.merge(p,s);a.set(r,S,u)}else a.set(r,s,u);o=c.next()}return a}static calibrateStartTime(e,n,i){for(let[a,c]of e.keys()){let o=n.get(a,c);o?.setStartTime(i)}return n}};Mp.TemporalMetricProcessor=uS;function kfe(t){return Array.from(t.entries())}});var B1=_(Ip=>{"use strict";l();Object.defineProperty(Ip,"__esModule",{value:!0});Ip.AsyncMetricStorage=void 0;var Bfe=oS(),Gfe=cS(),jfe=lS(),Hfe=qs(),pS=class extends Bfe.MetricStorage{constructor(e,n,i,a,c){super(e),this._attributesProcessor=i,this._aggregationCardinalityLimit=c,this._deltaMetricStorage=new Gfe.DeltaMetricProcessor(n,this._aggregationCardinalityLimit),this._temporalMetricStorage=new jfe.TemporalMetricProcessor(n,a)}record(e,n){let i=new Hfe.AttributeHashMap;Array.from(e.entries()).forEach(([a,c])=>{i.set(this._attributesProcessor.process(a),c)}),this._deltaMetricStorage.batchCumulate(i,n)}collect(e,n){let i=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,i,n)}};Ip.AsyncMetricStorage=pS});var F1=_(Pt=>{"use strict";l();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getConflictResolutionRecipe=Pt.getDescriptionResolutionRecipe=Pt.getTypeConflictResolutionRecipe=Pt.getUnitConflictResolutionRecipe=Pt.getValueTypeConflictResolutionRecipe=Pt.getIncompatibilityDetails=void 0;function qfe(t,e){let n="";return t.unit!==e.unit&&(n+=` - Unit '${t.unit}' does not match '${e.unit}'
|
|
27
|
+
`),t.type!==e.type&&(n+=` - Type '${t.type}' does not match '${e.type}'
|
|
28
|
+
`),t.valueType!==e.valueType&&(n+=` - Value Type '${t.valueType}' does not match '${e.valueType}'
|
|
29
|
+
`),t.description!==e.description&&(n+=` - Description '${t.description}' does not match '${e.description}'
|
|
30
|
+
`),n}Pt.getIncompatibilityDetails=qfe;function G1(t,e){return` - use valueType '${t.valueType}' on instrument creation or use an instrument name other than '${e.name}'`}Pt.getValueTypeConflictResolutionRecipe=G1;function j1(t,e){return` - use unit '${t.unit}' on instrument creation or use an instrument name other than '${e.name}'`}Pt.getUnitConflictResolutionRecipe=j1;function H1(t,e){let n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return` - create a new view with a name other than '${t.name}' and InstrumentSelector '${i}'`}Pt.getTypeConflictResolutionRecipe=H1;function q1(t,e){let n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return` - create a new view with a name other than '${t.name}' and InstrumentSelector '${i}'
|
|
31
|
+
- OR - create a new view with the name ${t.name} and description '${t.description}' and InstrumentSelector ${i}
|
|
32
|
+
- OR - create a new view with the name ${e.name} and description '${t.description}' and InstrumentSelector ${i}`}Pt.getDescriptionResolutionRecipe=q1;function Ffe(t,e){return t.valueType!==e.valueType?G1(t,e):t.unit!==e.unit?j1(t,e):t.type!==e.type?H1(t,e):t.description!==e.description?q1(t,e):""}Pt.getConflictResolutionRecipe=Ffe});var K1=_(Cp=>{"use strict";l();Object.defineProperty(Cp,"__esModule",{value:!0});Cp.MetricStorageRegistry=void 0;var Yfe=en(),Y1=(L(),N(C)),Lp=F1(),dS=class t{constructor(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}static create(){return new t}getStorages(e){let n=[];for(let a of this._sharedRegistry.values())n=n.concat(a);let i=this._perCollectorRegistry.get(e);if(i!=null)for(let a of i.values())n=n.concat(a);return n}register(e){this._registerStorage(e,this._sharedRegistry)}registerForCollector(e,n){let i=this._perCollectorRegistry.get(e);i==null&&(i=new Map,this._perCollectorRegistry.set(e,i)),this._registerStorage(n,i)}findOrUpdateCompatibleStorage(e){let n=this._sharedRegistry.get(e.name);return n===void 0?null:this._findOrUpdateCompatibleStorage(e,n)}findOrUpdateCompatibleCollectorStorage(e,n){let i=this._perCollectorRegistry.get(e);if(i===void 0)return null;let a=i.get(n.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(n,a)}_registerStorage(e,n){let i=e.getInstrumentDescriptor(),a=n.get(i.name);if(a===void 0){n.set(i.name,[e]);return}a.push(e)}_findOrUpdateCompatibleStorage(e,n){let i=null;for(let a of n){let c=a.getInstrumentDescriptor();(0,Yfe.isDescriptorCompatibleWith)(c,e)?(c.description!==e.description&&(e.description.length>c.description.length&&a.updateDescription(e.description),Y1.diag.warn("A view or instrument with the name ",e.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
|
33
|
+
`,`Details:
|
|
34
|
+
`,(0,Lp.getIncompatibilityDetails)(c,e),`The longer description will be used.
|
|
35
|
+
To resolve the conflict:`,(0,Lp.getConflictResolutionRecipe)(c,e))),i=a):Y1.diag.warn("A view or instrument with the name ",e.name,` has already been registered and is incompatible with another registered view.
|
|
36
|
+
`,`Details:
|
|
37
|
+
`,(0,Lp.getIncompatibilityDetails)(c,e),`To resolve the conflict:
|
|
38
|
+
`,(0,Lp.getConflictResolutionRecipe)(c,e))}return i}};Cp.MetricStorageRegistry=dS});var $1=_(wp=>{"use strict";l();Object.defineProperty(wp,"__esModule",{value:!0});wp.MultiMetricStorage=void 0;var fS=class{constructor(e){this._backingStorages=e}record(e,n,i,a){this._backingStorages.forEach(c=>{c.record(e,n,i,a)})}};wp.MultiMetricStorage=fS});var W1=_(la=>{"use strict";l();Object.defineProperty(la,"__esModule",{value:!0});la.BatchObservableResultImpl=la.ObservableResultImpl=void 0;var ua=(L(),N(C)),z1=qs(),Kfe=bp(),_S=class{constructor(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new z1.AttributeHashMap}observe(e,n={}){if(typeof e!="number"){ua.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${e}`);return}this._valueType===ua.ValueType.INT&&!Number.isInteger(e)&&(ua.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)}};la.ObservableResultImpl=_S;var mS=class{constructor(){this._buffer=new Map}observe(e,n,i={}){if(!(0,Kfe.isObservableInstrument)(e))return;let a=this._buffer.get(e);if(a==null&&(a=new z1.AttributeHashMap,this._buffer.set(e,a)),typeof n!="number"){ua.diag.warn(`non-number value provided to metric ${e._descriptor.name}: ${n}`);return}e._descriptor.valueType===ua.ValueType.INT&&!Number.isInteger(n)&&(ua.diag.warn(`INT value type cannot accept a floating-point value for ${e._descriptor.name}, ignoring the fractional digits.`),n=Math.trunc(n),!Number.isInteger(n))||a.set(i,n)}};la.BatchObservableResultImpl=mS});var Q1=_(Dp=>{"use strict";l();Object.defineProperty(Dp,"__esModule",{value:!0});Dp.ObservableRegistry=void 0;var $fe=(L(),N(C)),X1=bp(),J1=W1(),Fs=lr(),ES=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(e,n){this._findCallback(e,n)>=0||this._callbacks.push({callback:e,instrument:n})}removeCallback(e,n){let i=this._findCallback(e,n);i<0||this._callbacks.splice(i,1)}addBatchCallback(e,n){let i=new Set(n.filter(X1.isObservableInstrument));if(i.size===0){$fe.diag.error("BatchObservableCallback is not associated with valid instruments",n);return}this._findBatchCallback(e,i)>=0||this._batchCallbacks.push({callback:e,instruments:i})}removeBatchCallback(e,n){let i=new Set(n.filter(X1.isObservableInstrument)),a=this._findBatchCallback(e,i);a<0||this._batchCallbacks.splice(a,1)}async observe(e,n){let i=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n);return(await(0,Fs.PromiseAllSettled)([...i,...a])).filter(Fs.isPromiseAllSettledRejectionResult).map(r=>r.reason)}_observeCallbacks(e,n){return this._callbacks.map(async({callback:i,instrument:a})=>{let c=new J1.ObservableResultImpl(a._descriptor.name,a._descriptor.valueType),o=Promise.resolve(i(c));n!=null&&(o=(0,Fs.callWithTimeout)(o,n)),await o,a._metricStorages.forEach(r=>{r.record(c._buffer,e)})})}_observeBatchCallbacks(e,n){return this._batchCallbacks.map(async({callback:i,instruments:a})=>{let c=new J1.BatchObservableResultImpl,o=Promise.resolve(i(c));n!=null&&(o=(0,Fs.callWithTimeout)(o,n)),await o,a.forEach(r=>{let s=c._buffer.get(r);s!=null&&r._metricStorages.forEach(u=>{u.record(s,e)})})})}_findCallback(e,n){return this._callbacks.findIndex(i=>i.callback===e&&i.instrument===n)}_findBatchCallback(e,n){return this._batchCallbacks.findIndex(i=>i.callback===e&&(0,Fs.setEquals)(i.instruments,n))}};Dp.ObservableRegistry=ES});var Z1=_(Up=>{"use strict";l();Object.defineProperty(Up,"__esModule",{value:!0});Up.SyncMetricStorage=void 0;var zfe=oS(),Wfe=cS(),Xfe=lS(),hS=class extends zfe.MetricStorage{constructor(e,n,i,a,c){super(e),this._attributesProcessor=i,this._aggregationCardinalityLimit=c,this._deltaMetricStorage=new Wfe.DeltaMetricProcessor(n,this._aggregationCardinalityLimit),this._temporalMetricStorage=new Xfe.TemporalMetricProcessor(n,a)}record(e,n,i,a){n=this._attributesProcessor.process(n,i),this._deltaMetricStorage.record(e,n,i,a)}collect(e,n){let i=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,i,n)}};Up.SyncMetricStorage=hS});var SS=_(wn=>{"use strict";l();Object.defineProperty(wn,"__esModule",{value:!0});wn.FilteringAttributesProcessor=wn.NoopAttributesProcessor=wn.AttributesProcessor=void 0;var Ys=class{static Noop(){return Jfe}};wn.AttributesProcessor=Ys;var Vp=class extends Ys{process(e,n){return e}};wn.NoopAttributesProcessor=Vp;var TS=class extends Ys{constructor(e){super(),this._allowedAttributeNames=e}process(e,n){let i={};return Object.keys(e).filter(a=>this._allowedAttributeNames.includes(a)).forEach(a=>i[a]=e[a]),i}};wn.FilteringAttributesProcessor=TS;var Jfe=new Vp});var eV=_(kp=>{"use strict";l();Object.defineProperty(kp,"__esModule",{value:!0});kp.MeterSharedState=void 0;var Qfe=en(),Zfe=k1(),e_e=lr(),t_e=B1(),r_e=K1(),n_e=$1(),o_e=Q1(),i_e=Z1(),a_e=SS(),vS=class{constructor(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new r_e.MetricStorageRegistry,this.observableRegistry=new o_e.ObservableRegistry,this.meter=new Zfe.Meter(this)}registerMetricStorage(e){let n=this._registerMetricStorage(e,i_e.SyncMetricStorage);return n.length===1?n[0]:new n_e.MultiMetricStorage(n)}registerAsyncMetricStorage(e){return this._registerMetricStorage(e,t_e.AsyncMetricStorage)}async collect(e,n,i){let a=await this.observableRegistry.observe(n,i?.timeoutMillis),c=this.metricStorageRegistry.getStorages(e);if(c.length===0)return null;let o=c.map(r=>r.collect(e,n)).filter(e_e.isNotNullish);return o.length===0?{errors:a}:{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:a}}_registerMetricStorage(e,n){let a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope).map(c=>{let o=(0,Qfe.createInstrumentDescriptorWithView)(c,e),r=this.metricStorageRegistry.findOrUpdateCompatibleStorage(o);if(r!=null)return r;let s=c.aggregation.createAggregator(o),u=new n(o,s,c.attributesProcessor,this._meterProviderSharedState.metricCollectors,c.aggregationCardinalityLimit);return this.metricStorageRegistry.register(u),u});if(a.length===0){let o=this._meterProviderSharedState.selectAggregations(e.type).map(([r,s])=>{let u=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(r,e);if(u!=null)return u;let p=s.createAggregator(e),S=r.selectCardinalityLimit(e.type),A=new n(e,p,a_e.AttributesProcessor.Noop(),[r],S);return this.metricStorageRegistry.registerForCollector(r,A),A});a=a.concat(o)}return a}};kp.MeterSharedState=vS});var tV=_(Bp=>{"use strict";l();Object.defineProperty(Bp,"__esModule",{value:!0});Bp.MeterProviderSharedState=void 0;var s_e=lr(),c_e=V1(),u_e=eV(),gS=class{constructor(e){this.resource=e,this.viewRegistry=new c_e.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(e){let n=(0,s_e.instrumentationScopeId)(e),i=this.meterSharedStates.get(n);return i==null&&(i=new u_e.MeterSharedState(this,e),this.meterSharedStates.set(n,i)),i}selectAggregations(e){let n=[];for(let i of this.metricCollectors)n.push([i,i.selectAggregation(e)]);return n}};Bp.MeterProviderSharedState=gS});var rV=_(Gp=>{"use strict";l();Object.defineProperty(Gp,"__esModule",{value:!0});Gp.MetricCollector=void 0;var l_e=tn(),yS=class{constructor(e,n){this._sharedState=e,this._metricReader=n}async collect(e){let n=(0,l_e.millisToHrTime)(Date.now()),i=[],a=[],c=Array.from(this._sharedState.meterSharedStates.values()).map(async o=>{let r=await o.collect(this,n,e);r?.scopeMetrics!=null&&i.push(r.scopeMetrics),r?.errors!=null&&a.push(...r.errors)});return await Promise.all(c),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:i},errors:a}}async forceFlush(e){await this._metricReader.forceFlush(e)}async shutdown(e){await this._metricReader.shutdown(e)}selectAggregationTemporality(e){return this._metricReader.selectAggregationTemporality(e)}selectAggregation(e){return this._metricReader.selectAggregation(e)}selectCardinalityLimit(e){var n,i,a;return(a=(i=(n=this._metricReader).selectCardinalityLimit)===null||i===void 0?void 0:i.call(n,e))!==null&&a!==void 0?a:2e3}};Gp.MetricCollector=yS});var oV=_(Hp=>{"use strict";l();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.MeterProvider=void 0;var jp=(L(),N(C)),nV=$T(),p_e=tV(),d_e=rV();function f_e(t,e){let n=e??nV.Resource.empty();return t?nV.Resource.default().merge(n):n}var AS=class{constructor(e){var n;if(this._shutdown=!1,this._sharedState=new p_e.MeterProviderSharedState(f_e((n=e?.mergeResourceWithDefaults)!==null&&n!==void 0?n:!0,e?.resource)),e?.views!=null&&e.views.length>0)for(let i of e.views)this._sharedState.viewRegistry.addView(i);if(e?.readers!=null&&e.readers.length>0)for(let i of e.readers)this.addMetricReader(i)}getMeter(e,n="",i={}){return this._shutdown?(jp.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,jp.createNoopMeter)()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter}addMetricReader(e){let n=new d_e.MetricCollector(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)}async shutdown(e){if(this._shutdown){jp.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(n=>n.shutdown(e)))}async forceFlush(e){if(this._shutdown){jp.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(n=>n.forceFlush(e)))}};Hp.MeterProvider=AS});var qp=_(pa=>{"use strict";l();Object.defineProperty(pa,"__esModule",{value:!0});pa.ExactPredicate=pa.PatternPredicate=void 0;var __e=/[\^$\\.+?()[\]{}|]/g,xS=class t{constructor(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(t.escapePattern(e)))}match(e){return this._matchAll?!0:this._regexp.test(e)}static escapePattern(e){return`^${e.replace(__e,"\\$&").replace("*",".*")}$`}static hasWildcard(e){return e.includes("*")}};pa.PatternPredicate=xS;var bS=class{constructor(e){this._matchAll=e===void 0,this._pattern=e}match(e){return!!(this._matchAll||e===this._pattern)}};pa.ExactPredicate=bS});var aV=_(Fp=>{"use strict";l();Object.defineProperty(Fp,"__esModule",{value:!0});Fp.InstrumentSelector=void 0;var iV=qp(),OS=class{constructor(e){var n;this._nameFilter=new iV.PatternPredicate((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new iV.ExactPredicate(e?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};Fp.InstrumentSelector=OS});var sV=_(Yp=>{"use strict";l();Object.defineProperty(Yp,"__esModule",{value:!0});Yp.MeterSelector=void 0;var RS=qp(),PS=class{constructor(e){this._nameFilter=new RS.ExactPredicate(e?.name),this._versionFilter=new RS.ExactPredicate(e?.version),this._schemaUrlFilter=new RS.ExactPredicate(e?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};Yp.MeterSelector=PS});var uV=_(Kp=>{"use strict";l();Object.defineProperty(Kp,"__esModule",{value:!0});Kp.View=void 0;var m_e=qp(),cV=SS(),E_e=aV(),h_e=sV(),T_e=zl();function S_e(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var NS=class{constructor(e){var n;if(S_e(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||m_e.PatternPredicate.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new cV.FilteringAttributesProcessor(e.attributeKeys):this.attributesProcessor=cV.AttributesProcessor.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:T_e.Aggregation.Default(),this.instrumentSelector=new E_e.InstrumentSelector({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new h_e.MeterSelector({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl}),this.aggregationCardinalityLimit=e.aggregationCardinalityLimit}};Kp.View=NS});var $p=_(te=>{"use strict";l();Object.defineProperty(te,"__esModule",{value:!0});te.TimeoutError=te.View=te.Aggregation=te.SumAggregation=te.LastValueAggregation=te.HistogramAggregation=te.DropAggregation=te.ExponentialHistogramAggregation=te.ExplicitBucketHistogramAggregation=te.DefaultAggregation=te.MeterProvider=te.InstrumentType=te.ConsoleMetricExporter=te.InMemoryMetricExporter=te.PeriodicExportingMetricReader=te.MetricReader=te.DataPointType=te.AggregationTemporality=void 0;var v_e=Mu();Object.defineProperty(te,"AggregationTemporality",{enumerable:!0,get:function(){return v_e.AggregationTemporality}});var g_e=Mi();Object.defineProperty(te,"DataPointType",{enumerable:!0,get:function(){return g_e.DataPointType}});var y_e=gT();Object.defineProperty(te,"MetricReader",{enumerable:!0,get:function(){return y_e.MetricReader}});var A_e=i1();Object.defineProperty(te,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return A_e.PeriodicExportingMetricReader}});var x_e=s1();Object.defineProperty(te,"InMemoryMetricExporter",{enumerable:!0,get:function(){return x_e.InMemoryMetricExporter}});var b_e=u1();Object.defineProperty(te,"ConsoleMetricExporter",{enumerable:!0,get:function(){return b_e.ConsoleMetricExporter}});var O_e=en();Object.defineProperty(te,"InstrumentType",{enumerable:!0,get:function(){return O_e.InstrumentType}});var R_e=oV();Object.defineProperty(te,"MeterProvider",{enumerable:!0,get:function(){return R_e.MeterProvider}});var Dn=zl();Object.defineProperty(te,"DefaultAggregation",{enumerable:!0,get:function(){return Dn.DefaultAggregation}});Object.defineProperty(te,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return Dn.ExplicitBucketHistogramAggregation}});Object.defineProperty(te,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return Dn.ExponentialHistogramAggregation}});Object.defineProperty(te,"DropAggregation",{enumerable:!0,get:function(){return Dn.DropAggregation}});Object.defineProperty(te,"HistogramAggregation",{enumerable:!0,get:function(){return Dn.HistogramAggregation}});Object.defineProperty(te,"LastValueAggregation",{enumerable:!0,get:function(){return Dn.LastValueAggregation}});Object.defineProperty(te,"SumAggregation",{enumerable:!0,get:function(){return Dn.SumAggregation}});Object.defineProperty(te,"Aggregation",{enumerable:!0,get:function(){return Dn.Aggregation}});var P_e=uV();Object.defineProperty(te,"View",{enumerable:!0,get:function(){return P_e.View}});var N_e=lr();Object.defineProperty(te,"TimeoutError",{enumerable:!0,get:function(){return N_e.TimeoutError}})});var Ks=_(Un=>{"use strict";l();Object.defineProperty(Un,"__esModule",{value:!0});Un.isTracingSuppressed=Un.unsuppressTracing=Un.suppressTracing=void 0;var M_e=(L(),N(C)),MS=(0,M_e.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function I_e(t){return t.setValue(MS,!0)}Un.suppressTracing=I_e;function L_e(t){return t.deleteValue(MS)}Un.unsuppressTracing=L_e;function C_e(t){return t.getValue(MS)===!0}Un.isTracingSuppressed=C_e});var IS=_(pt=>{"use strict";l();Object.defineProperty(pt,"__esModule",{value:!0});pt.BAGGAGE_MAX_TOTAL_LENGTH=pt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=pt.BAGGAGE_MAX_NAME_VALUE_PAIRS=pt.BAGGAGE_HEADER=pt.BAGGAGE_ITEMS_SEPARATOR=pt.BAGGAGE_PROPERTIES_SEPARATOR=pt.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;pt.BAGGAGE_KEY_PAIR_SEPARATOR="=";pt.BAGGAGE_PROPERTIES_SEPARATOR=";";pt.BAGGAGE_ITEMS_SEPARATOR=",";pt.BAGGAGE_HEADER="baggage";pt.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;pt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;pt.BAGGAGE_MAX_TOTAL_LENGTH=8192});var CS=_(Jt=>{"use strict";l();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.parseKeyPairsIntoRecord=Jt.parseBaggageHeaderString=Jt.parsePairKeyValue=Jt.getKeyPairs=Jt.serializeKeyPairs=void 0;var w_e=(L(),N(C)),Cr=IS();function D_e(t){return t.reduce((e,n)=>{let i=`${e}${e!==""?Cr.BAGGAGE_ITEMS_SEPARATOR:""}${n}`;return i.length>Cr.BAGGAGE_MAX_TOTAL_LENGTH?e:i},"")}Jt.serializeKeyPairs=D_e;function U_e(t){return t.getAllEntries().map(([e,n])=>{let i=`${encodeURIComponent(e)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(i+=Cr.BAGGAGE_PROPERTIES_SEPARATOR+n.metadata.toString()),i})}Jt.getKeyPairs=U_e;function LS(t){if(!t)return;let e=t.indexOf(Cr.BAGGAGE_PROPERTIES_SEPARATOR),n=e===-1?t:t.substring(0,e),i=n.indexOf(Cr.BAGGAGE_KEY_PAIR_SEPARATOR);if(i<=0)return;let a=n.substring(0,i).trim(),c=n.substring(i+1).trim();if(!a||!c)return;let o,r;try{o=decodeURIComponent(a),r=decodeURIComponent(c)}catch{return}let s;if(e!==-1&&e<t.length-1){let u=t.substring(e+1);s=(0,w_e.baggageEntryMetadataFromString)(u)}return{key:o,value:r,metadata:s}}Jt.parsePairKeyValue=LS;function V_e(t,e,n,i){let a=0;for(;a<t.length&&n<Cr.BAGGAGE_MAX_NAME_VALUE_PAIRS;){let c=t.indexOf(Cr.BAGGAGE_ITEMS_SEPARATOR,a),o=c===-1?t.length:c,r=o-a;if(r<=Cr.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS){let s=LS(t.substring(a,o));if(s){let u=(n===0?0:1)+r;if(i+u>Cr.BAGGAGE_MAX_TOTAL_LENGTH)break;e[s.key]=s.metadata?{value:s.value,metadata:s.metadata}:{value:s.value},n++,i+=u}}if(c===-1)break;a=c+1}return[n,i]}Jt.parseBaggageHeaderString=V_e;function k_e(t){let e={};return typeof t=="string"&&t.length>0&&t.split(Cr.BAGGAGE_ITEMS_SEPARATOR).forEach(n=>{let i=LS(n);i!==void 0&&i.value.length>0&&(e[i.key]=i.value)}),e}Jt.parseKeyPairsIntoRecord=k_e});var lV=_(Wp=>{"use strict";l();Object.defineProperty(Wp,"__esModule",{value:!0});Wp.W3CBaggagePropagator=void 0;var wS=(L(),N(C)),B_e=Ks(),$s=IS(),zp=CS(),DS=class{inject(e,n,i){let a=wS.propagation.getBaggage(e);if(!a||(0,B_e.isTracingSuppressed)(e))return;let c=(0,zp.getKeyPairs)(a).filter(r=>r.length<=$s.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,$s.BAGGAGE_MAX_NAME_VALUE_PAIRS),o=(0,zp.serializeKeyPairs)(c);o.length>0&&i.set(n,$s.BAGGAGE_HEADER,o)}extract(e,n,i){let a=i.get(n,$s.BAGGAGE_HEADER);if(!a)return e;let c={},o=0,r=0;if(Array.isArray(a))for(let s=0;s<a.length;s++)[o,r]=(0,zp.parseBaggageHeaderString)(a[s],c,o,r);else[o]=(0,zp.parseBaggageHeaderString)(a,c,o,r);return o===0?e:wS.propagation.setBaggage(e,wS.propagation.createBaggage(c))}fields(){return[$s.BAGGAGE_HEADER]}};Wp.W3CBaggagePropagator=DS});var pV=_(Xp=>{"use strict";l();Object.defineProperty(Xp,"__esModule",{value:!0});Xp.AnchoredClock=void 0;var US=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};Xp.AnchoredClock=US});var EV=_(Vn=>{"use strict";l();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.isAttributeValue=Vn.isAttributeKey=Vn.sanitizeAttributes=void 0;var dV=(L(),N(C));function G_e(t){let e={};if(typeof t!="object"||t==null)return e;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;if(!fV(n)){dV.diag.warn(`Invalid attribute key: ${n}`);continue}let i=t[n];if(!_V(i)){dV.diag.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(i)?e[n]=i.slice():e[n]=i}return e}Vn.sanitizeAttributes=G_e;function fV(t){return typeof t=="string"&&t!==""}Vn.isAttributeKey=fV;function _V(t){return t==null?!0:Array.isArray(t)?j_e(t):mV(typeof t)}Vn.isAttributeValue=_V;function j_e(t){let e;for(let n of t){if(n==null)continue;let i=typeof n;if(i!==e){if(!e){if(mV(i)){e=i;continue}return!1}return!1}}return!0}function mV(t){switch(t){case"number":case"boolean":case"string":return!0}return!1}});var VS=_(Jp=>{"use strict";l();Object.defineProperty(Jp,"__esModule",{value:!0});Jp.loggingErrorHandler=void 0;var H_e=(L(),N(C));function q_e(){return t=>{H_e.diag.error(F_e(t))}}Jp.loggingErrorHandler=q_e;function F_e(t){return typeof t=="string"?t:JSON.stringify(Y_e(t))}function Y_e(t){let e={},n=t;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(i=>{if(e[i])return;let a=n[i];a&&(e[i]=String(a))}),n=Object.getPrototypeOf(n);return e}});var TV=_(da=>{"use strict";l();Object.defineProperty(da,"__esModule",{value:!0});da.globalErrorHandler=da.setGlobalErrorHandler=void 0;var K_e=VS(),hV=(0,K_e.loggingErrorHandler)();function $_e(t){hV=t}da.setGlobalErrorHandler=$_e;function z_e(t){try{hV(t)}catch{}}da.globalErrorHandler=z_e});var yV=_(wr=>{"use strict";l();Object.defineProperty(wr,"__esModule",{value:!0});wr.getStringListFromEnv=wr.getBooleanFromEnv=wr.getStringFromEnv=wr.getNumberFromEnv=void 0;var SV=(L(),N(C)),vV=q("util");function W_e(t){let e=process.env[t];if(e==null||e.trim()==="")return;let n=Number(e);if(isNaN(n)){SV.diag.warn(`Unknown value ${(0,vV.inspect)(e)} for ${t}, expected a number, using defaults`);return}return n}wr.getNumberFromEnv=W_e;function gV(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}wr.getStringFromEnv=gV;function X_e(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||SV.diag.warn(`Unknown value ${(0,vV.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}wr.getBooleanFromEnv=X_e;function J_e(t){return gV(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}wr.getStringListFromEnv=J_e});var AV=_(Qp=>{"use strict";l();Object.defineProperty(Qp,"__esModule",{value:!0});Qp._globalThis=void 0;Qp._globalThis=globalThis});var xV=_(Zp=>{"use strict";l();Object.defineProperty(Zp,"__esModule",{value:!0});Zp.VERSION=void 0;Zp.VERSION="2.8.0"});function we(t){let e={},n=t.length;for(let i=0;i<n;i++){let a=t[i];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var kS=w(()=>{l()});var bV,OV,RV,PV,NV,MV,IV,LV,CV,wV,DV,UV,VV,kV,BV,GV,jV,HV,qV,FV,YV,KV,$V,zV,WV,XV,JV,QV,ZV,ek,tk,rk,nk,ok,ik,ak,sk,ck,uk,lk,pk,dk,fk,_k,mk,Ek,hk,Tk,Sk,vk,gk,yk,Ak,xk,bk,Ok,Rk,Pk,Nk,Mk,Ik,Lk,Ck,wk,Dk,Uk,Vk,kk,Bk,Gk,jk,Hk,qk,Fk,Yk,Kk,$k,zk,Wk,Xk,Jk,Qk,Zk,eB,tB,rB,nB,oB,iB,aB,sB,cB,uB,lB,pB,dB,fB,_B,mB,EB,hB,TB,SB,vB,gB,yB,AB,xB,bB,OB,RB,PB,NB,MB,IB,LB,CB,wB,DB,UB,VB,kB,BB,GB,jB,HB,qB,FB,Q_e,Z_e,eme,tme,rme,nme,ome,ime,ame,sme,cme,ume,lme,pme,dme,fme,_me,mme,Eme,hme,Tme,Sme,vme,gme,yme,Ame,xme,bme,Ome,Rme,Pme,Nme,Mme,Ime,Lme,Cme,wme,Dme,Ume,Vme,kme,Bme,Gme,jme,Hme,qme,Fme,Yme,Kme,$me,zme,Wme,Xme,Jme,Qme,Zme,eEe,tEe,rEe,nEe,oEe,iEe,aEe,sEe,cEe,uEe,lEe,pEe,dEe,fEe,_Ee,mEe,EEe,hEe,TEe,SEe,vEe,gEe,yEe,AEe,xEe,bEe,OEe,REe,PEe,NEe,MEe,IEe,LEe,CEe,wEe,DEe,UEe,VEe,kEe,BEe,GEe,jEe,HEe,qEe,FEe,YEe,KEe,$Ee,zEe,WEe,XEe,JEe,QEe,ZEe,ehe,the,rhe,nhe,ohe,ihe,ahe,she,che,uhe,lhe,phe,dhe,fhe,_he,mhe,Ehe,hhe,The,YB,KB,$B,zB,WB,XB,JB,QB,ZB,eG,tG,rG,nG,oG,iG,aG,sG,cG,uG,lG,pG,dG,fG,_G,mG,EG,hG,TG,SG,vG,gG,yG,AG,xG,bG,OG,RG,PG,NG,MG,IG,LG,CG,wG,DG,UG,VG,She,vhe,ghe,yhe,Ahe,xhe,bhe,Ohe,Rhe,Phe,Nhe,Mhe,Ihe,Lhe,Che,whe,Dhe,Uhe,Vhe,khe,Bhe,Ghe,jhe,Hhe,qhe,Fhe,Yhe,Khe,$he,zhe,Whe,Xhe,Jhe,Qhe,Zhe,eTe,tTe,rTe,nTe,oTe,iTe,aTe,sTe,cTe,uTe,lTe,pTe,dTe,kG,BG,GG,jG,HG,qG,FG,YG,KG,$G,zG,fTe,_Te,mTe,ETe,hTe,TTe,STe,vTe,gTe,yTe,ATe,xTe,WG,XG,JG,QG,ZG,bTe,OTe,RTe,PTe,NTe,MTe,ej,tj,rj,ITe,LTe,CTe,wTe,nj,oj,ij,aj,DTe,UTe,VTe,kTe,BTe,sj,cj,uj,lj,pj,dj,fj,GTe,jTe,HTe,qTe,FTe,YTe,KTe,$Te,_j,mj,Ej,hj,Tj,zTe,WTe,XTe,JTe,QTe,ZTe,Sj,vj,gj,yj,Aj,xj,bj,Oj,Rj,Pj,Nj,Mj,Ij,Lj,Cj,wj,Dj,Uj,Vj,kj,Bj,eSe,tSe,rSe,nSe,oSe,iSe,aSe,sSe,cSe,uSe,lSe,pSe,dSe,fSe,_Se,mSe,ESe,hSe,TSe,SSe,vSe,gSe,Gj,jj,Hj,qj,Fj,ySe,ASe,xSe,bSe,OSe,RSe,Yj,Kj,PSe,NSe,MSe,$j,zj,ISe,LSe,CSe,Wj,Xj,Jj,Qj,Zj,e2,t2,r2,n2,o2,i2,a2,s2,c2,u2,l2,p2,wSe,DSe,USe,VSe,kSe,BSe,GSe,jSe,HSe,qSe,FSe,YSe,KSe,$Se,zSe,WSe,XSe,JSe,d2,f2,QSe,ZSe,eve,_2=w(()=>{l();kS();bV="aws.lambda.invoked_arn",OV="db.system",RV="db.connection_string",PV="db.user",NV="db.jdbc.driver_classname",MV="db.name",IV="db.statement",LV="db.operation",CV="db.mssql.instance_name",wV="db.cassandra.keyspace",DV="db.cassandra.page_size",UV="db.cassandra.consistency_level",VV="db.cassandra.table",kV="db.cassandra.idempotence",BV="db.cassandra.speculative_execution_count",GV="db.cassandra.coordinator.id",jV="db.cassandra.coordinator.dc",HV="db.hbase.namespace",qV="db.redis.database_index",FV="db.mongodb.collection",YV="db.sql.table",KV="exception.type",$V="exception.message",zV="exception.stacktrace",WV="exception.escaped",XV="faas.trigger",JV="faas.execution",QV="faas.document.collection",ZV="faas.document.operation",ek="faas.document.time",tk="faas.document.name",rk="faas.time",nk="faas.cron",ok="faas.coldstart",ik="faas.invoked_name",ak="faas.invoked_provider",sk="faas.invoked_region",ck="net.transport",uk="net.peer.ip",lk="net.peer.port",pk="net.peer.name",dk="net.host.ip",fk="net.host.port",_k="net.host.name",mk="net.host.connection.type",Ek="net.host.connection.subtype",hk="net.host.carrier.name",Tk="net.host.carrier.mcc",Sk="net.host.carrier.mnc",vk="net.host.carrier.icc",gk="peer.service",yk="enduser.id",Ak="enduser.role",xk="enduser.scope",bk="thread.id",Ok="thread.name",Rk="code.function",Pk="code.namespace",Nk="code.filepath",Mk="code.lineno",Ik="http.method",Lk="http.url",Ck="http.target",wk="http.host",Dk="http.scheme",Uk="http.status_code",Vk="http.flavor",kk="http.user_agent",Bk="http.request_content_length",Gk="http.request_content_length_uncompressed",jk="http.response_content_length",Hk="http.response_content_length_uncompressed",qk="http.server_name",Fk="http.route",Yk="http.client_ip",Kk="aws.dynamodb.table_names",$k="aws.dynamodb.consumed_capacity",zk="aws.dynamodb.item_collection_metrics",Wk="aws.dynamodb.provisioned_read_capacity",Xk="aws.dynamodb.provisioned_write_capacity",Jk="aws.dynamodb.consistent_read",Qk="aws.dynamodb.projection",Zk="aws.dynamodb.limit",eB="aws.dynamodb.attributes_to_get",tB="aws.dynamodb.index_name",rB="aws.dynamodb.select",nB="aws.dynamodb.global_secondary_indexes",oB="aws.dynamodb.local_secondary_indexes",iB="aws.dynamodb.exclusive_start_table",aB="aws.dynamodb.table_count",sB="aws.dynamodb.scan_forward",cB="aws.dynamodb.segment",uB="aws.dynamodb.total_segments",lB="aws.dynamodb.count",pB="aws.dynamodb.scanned_count",dB="aws.dynamodb.attribute_definitions",fB="aws.dynamodb.global_secondary_index_updates",_B="messaging.system",mB="messaging.destination",EB="messaging.destination_kind",hB="messaging.temp_destination",TB="messaging.protocol",SB="messaging.protocol_version",vB="messaging.url",gB="messaging.message_id",yB="messaging.conversation_id",AB="messaging.message_payload_size_bytes",xB="messaging.message_payload_compressed_size_bytes",bB="messaging.operation",OB="messaging.consumer_id",RB="messaging.rabbitmq.routing_key",PB="messaging.kafka.message_key",NB="messaging.kafka.consumer_group",MB="messaging.kafka.client_id",IB="messaging.kafka.partition",LB="messaging.kafka.tombstone",CB="rpc.system",wB="rpc.service",DB="rpc.method",UB="rpc.grpc.status_code",VB="rpc.jsonrpc.version",kB="rpc.jsonrpc.request_id",BB="rpc.jsonrpc.error_code",GB="rpc.jsonrpc.error_message",jB="message.type",HB="message.id",qB="message.compressed_size",FB="message.uncompressed_size",Q_e=bV,Z_e=OV,eme=RV,tme=PV,rme=NV,nme=MV,ome=IV,ime=LV,ame=CV,sme=wV,cme=DV,ume=UV,lme=VV,pme=kV,dme=BV,fme=GV,_me=jV,mme=HV,Eme=qV,hme=FV,Tme=YV,Sme=KV,vme=$V,gme=zV,yme=WV,Ame=XV,xme=JV,bme=QV,Ome=ZV,Rme=ek,Pme=tk,Nme=rk,Mme=nk,Ime=ok,Lme=ik,Cme=ak,wme=sk,Dme=ck,Ume=uk,Vme=lk,kme=pk,Bme=dk,Gme=fk,jme=_k,Hme=mk,qme=Ek,Fme=hk,Yme=Tk,Kme=Sk,$me=vk,zme=gk,Wme=yk,Xme=Ak,Jme=xk,Qme=bk,Zme=Ok,eEe=Rk,tEe=Pk,rEe=Nk,nEe=Mk,oEe=Ik,iEe=Lk,aEe=Ck,sEe=wk,cEe=Dk,uEe=Uk,lEe=Vk,pEe=kk,dEe=Bk,fEe=Gk,_Ee=jk,mEe=Hk,EEe=qk,hEe=Fk,TEe=Yk,SEe=Kk,vEe=$k,gEe=zk,yEe=Wk,AEe=Xk,xEe=Jk,bEe=Qk,OEe=Zk,REe=eB,PEe=tB,NEe=rB,MEe=nB,IEe=oB,LEe=iB,CEe=aB,wEe=sB,DEe=cB,UEe=uB,VEe=lB,kEe=pB,BEe=dB,GEe=fB,jEe=_B,HEe=mB,qEe=EB,FEe=hB,YEe=TB,KEe=SB,$Ee=vB,zEe=gB,WEe=yB,XEe=AB,JEe=xB,QEe=bB,ZEe=OB,ehe=RB,the=PB,rhe=NB,nhe=MB,ohe=IB,ihe=LB,ahe=CB,she=wB,che=DB,uhe=UB,lhe=VB,phe=kB,dhe=BB,fhe=GB,_he=jB,mhe=HB,Ehe=qB,hhe=FB,The=we([bV,OV,RV,PV,NV,MV,IV,LV,CV,wV,DV,UV,VV,kV,BV,GV,jV,HV,qV,FV,YV,KV,$V,zV,WV,XV,JV,QV,ZV,ek,tk,rk,nk,ok,ik,ak,sk,ck,uk,lk,pk,dk,fk,_k,mk,Ek,hk,Tk,Sk,vk,gk,yk,Ak,xk,bk,Ok,Rk,Pk,Nk,Mk,Ik,Lk,Ck,wk,Dk,Uk,Vk,kk,Bk,Gk,jk,Hk,qk,Fk,Yk,Kk,$k,zk,Wk,Xk,Jk,Qk,Zk,eB,tB,rB,nB,oB,iB,aB,sB,cB,uB,lB,pB,dB,fB,_B,mB,EB,hB,TB,SB,vB,gB,yB,AB,xB,bB,OB,RB,PB,NB,MB,IB,LB,CB,wB,DB,UB,VB,kB,BB,GB,jB,HB,qB,FB]),YB="other_sql",KB="mssql",$B="mysql",zB="oracle",WB="db2",XB="postgresql",JB="redshift",QB="hive",ZB="cloudscape",eG="hsqldb",tG="progress",rG="maxdb",nG="hanadb",oG="ingres",iG="firstsql",aG="edb",sG="cache",cG="adabas",uG="firebird",lG="derby",pG="filemaker",dG="informix",fG="instantdb",_G="interbase",mG="mariadb",EG="netezza",hG="pervasive",TG="pointbase",SG="sqlite",vG="sybase",gG="teradata",yG="vertica",AG="h2",xG="coldfusion",bG="cassandra",OG="hbase",RG="mongodb",PG="redis",NG="couchbase",MG="couchdb",IG="cosmosdb",LG="dynamodb",CG="neo4j",wG="geode",DG="elasticsearch",UG="memcached",VG="cockroachdb",She=YB,vhe=KB,ghe=$B,yhe=zB,Ahe=WB,xhe=XB,bhe=JB,Ohe=QB,Rhe=ZB,Phe=eG,Nhe=tG,Mhe=rG,Ihe=nG,Lhe=oG,Che=iG,whe=aG,Dhe=sG,Uhe=cG,Vhe=uG,khe=lG,Bhe=pG,Ghe=dG,jhe=fG,Hhe=_G,qhe=mG,Fhe=EG,Yhe=hG,Khe=TG,$he=SG,zhe=vG,Whe=gG,Xhe=yG,Jhe=AG,Qhe=xG,Zhe=bG,eTe=OG,tTe=RG,rTe=PG,nTe=NG,oTe=MG,iTe=IG,aTe=LG,sTe=CG,cTe=wG,uTe=DG,lTe=UG,pTe=VG,dTe=we([YB,KB,$B,zB,WB,XB,JB,QB,ZB,eG,tG,rG,nG,oG,iG,aG,sG,cG,uG,lG,pG,dG,fG,_G,mG,EG,hG,TG,SG,vG,gG,yG,AG,xG,bG,OG,RG,PG,NG,MG,IG,LG,CG,wG,DG,UG,VG]),kG="all",BG="each_quorum",GG="quorum",jG="local_quorum",HG="one",qG="two",FG="three",YG="local_one",KG="any",$G="serial",zG="local_serial",fTe=kG,_Te=BG,mTe=GG,ETe=jG,hTe=HG,TTe=qG,STe=FG,vTe=YG,gTe=KG,yTe=$G,ATe=zG,xTe=we([kG,BG,GG,jG,HG,qG,FG,YG,KG,$G,zG]),WG="datasource",XG="http",JG="pubsub",QG="timer",ZG="other",bTe=WG,OTe=XG,RTe=JG,PTe=QG,NTe=ZG,MTe=we([WG,XG,JG,QG,ZG]),ej="insert",tj="edit",rj="delete",ITe=ej,LTe=tj,CTe=rj,wTe=we([ej,tj,rj]),nj="alibaba_cloud",oj="aws",ij="azure",aj="gcp",DTe=nj,UTe=oj,VTe=ij,kTe=aj,BTe=we([nj,oj,ij,aj]),sj="ip_tcp",cj="ip_udp",uj="ip",lj="unix",pj="pipe",dj="inproc",fj="other",GTe=sj,jTe=cj,HTe=uj,qTe=lj,FTe=pj,YTe=dj,KTe=fj,$Te=we([sj,cj,uj,lj,pj,dj,fj]),_j="wifi",mj="wired",Ej="cell",hj="unavailable",Tj="unknown",zTe=_j,WTe=mj,XTe=Ej,JTe=hj,QTe=Tj,ZTe=we([_j,mj,Ej,hj,Tj]),Sj="gprs",vj="edge",gj="umts",yj="cdma",Aj="evdo_0",xj="evdo_a",bj="cdma2000_1xrtt",Oj="hsdpa",Rj="hsupa",Pj="hspa",Nj="iden",Mj="evdo_b",Ij="lte",Lj="ehrpd",Cj="hspap",wj="gsm",Dj="td_scdma",Uj="iwlan",Vj="nr",kj="nrnsa",Bj="lte_ca",eSe=Sj,tSe=vj,rSe=gj,nSe=yj,oSe=Aj,iSe=xj,aSe=bj,sSe=Oj,cSe=Rj,uSe=Pj,lSe=Nj,pSe=Mj,dSe=Ij,fSe=Lj,_Se=Cj,mSe=wj,ESe=Dj,hSe=Uj,TSe=Vj,SSe=kj,vSe=Bj,gSe=we([Sj,vj,gj,yj,Aj,xj,bj,Oj,Rj,Pj,Nj,Mj,Ij,Lj,Cj,wj,Dj,Uj,Vj,kj,Bj]),Gj="1.0",jj="1.1",Hj="2.0",qj="SPDY",Fj="QUIC",ySe=Gj,ASe=jj,xSe=Hj,bSe=qj,OSe=Fj,RSe={HTTP_1_0:Gj,HTTP_1_1:jj,HTTP_2_0:Hj,SPDY:qj,QUIC:Fj},Yj="queue",Kj="topic",PSe=Yj,NSe=Kj,MSe=we([Yj,Kj]),$j="receive",zj="process",ISe=$j,LSe=zj,CSe=we([$j,zj]),Wj=0,Xj=1,Jj=2,Qj=3,Zj=4,e2=5,t2=6,r2=7,n2=8,o2=9,i2=10,a2=11,s2=12,c2=13,u2=14,l2=15,p2=16,wSe=Wj,DSe=Xj,USe=Jj,VSe=Qj,kSe=Zj,BSe=e2,GSe=t2,jSe=r2,HSe=n2,qSe=o2,FSe=i2,YSe=a2,KSe=s2,$Se=c2,zSe=u2,WSe=l2,XSe=p2,JSe={OK:Wj,CANCELLED:Xj,UNKNOWN:Jj,INVALID_ARGUMENT:Qj,DEADLINE_EXCEEDED:Zj,NOT_FOUND:e2,ALREADY_EXISTS:t2,PERMISSION_DENIED:r2,RESOURCE_EXHAUSTED:n2,FAILED_PRECONDITION:o2,ABORTED:i2,OUT_OF_RANGE:a2,UNIMPLEMENTED:s2,INTERNAL:c2,UNAVAILABLE:u2,DATA_LOSS:l2,UNAUTHENTICATED:p2},d2="SENT",f2="RECEIVED",QSe=d2,ZSe=f2,eve=we([d2,f2])});var m2=w(()=>{l();_2()});var E2,h2,T2,S2,v2,g2,y2,A2,x2,b2,O2,R2,P2,N2,M2,I2,L2,C2,w2,D2,U2,V2,k2,B2,G2,j2,H2,q2,F2,Y2,K2,$2,z2,W2,X2,J2,Q2,Z2,eH,tH,rH,nH,oH,iH,aH,sH,cH,uH,lH,pH,dH,fH,_H,mH,EH,hH,TH,SH,vH,gH,yH,AH,xH,bH,OH,RH,PH,NH,MH,IH,LH,CH,wH,DH,UH,VH,kH,BH,GH,jH,HH,tve,rve,nve,ove,ive,ave,sve,cve,uve,lve,pve,dve,fve,_ve,mve,Eve,hve,Tve,Sve,vve,gve,yve,Ave,xve,bve,Ove,Rve,Pve,Nve,Mve,Ive,Lve,Cve,wve,Dve,Uve,Vve,kve,Bve,Gve,jve,Hve,qve,Fve,Yve,Kve,$ve,zve,Wve,Xve,Jve,Qve,Zve,ege,tge,rge,nge,oge,ige,age,sge,cge,uge,lge,pge,dge,fge,_ge,mge,Ege,hge,Tge,Sge,vge,gge,yge,Age,xge,bge,Oge,Rge,Pge,qH,FH,YH,KH,Nge,Mge,Ige,Lge,Cge,$H,zH,WH,XH,JH,QH,ZH,eq,tq,rq,nq,oq,iq,aq,sq,cq,uq,wge,Dge,Uge,Vge,kge,Bge,Gge,jge,Hge,qge,Fge,Yge,Kge,$ge,zge,Wge,Xge,Jge,lq,pq,Qge,Zge,eye,dq,fq,_q,mq,Eq,hq,Tq,tye,rye,nye,oye,iye,aye,sye,cye,Sq,vq,gq,yq,Aq,xq,bq,Oq,Rq,Pq,Nq,uye,lye,pye,dye,fye,_ye,mye,Eye,hye,Tye,Sye,vye,Mq,Iq,Lq,Cq,wq,Dq,Uq,Vq,kq,Bq,gye,yye,Aye,xye,bye,Oye,Rye,Pye,Nye,Mye,Iye,Gq=w(()=>{l();kS();E2="cloud.provider",h2="cloud.account.id",T2="cloud.region",S2="cloud.availability_zone",v2="cloud.platform",g2="aws.ecs.container.arn",y2="aws.ecs.cluster.arn",A2="aws.ecs.launchtype",x2="aws.ecs.task.arn",b2="aws.ecs.task.family",O2="aws.ecs.task.revision",R2="aws.eks.cluster.arn",P2="aws.log.group.names",N2="aws.log.group.arns",M2="aws.log.stream.names",I2="aws.log.stream.arns",L2="container.name",C2="container.id",w2="container.runtime",D2="container.image.name",U2="container.image.tag",V2="deployment.environment",k2="device.id",B2="device.model.identifier",G2="device.model.name",j2="faas.name",H2="faas.id",q2="faas.version",F2="faas.instance",Y2="faas.max_memory",K2="host.id",$2="host.name",z2="host.type",W2="host.arch",X2="host.image.name",J2="host.image.id",Q2="host.image.version",Z2="k8s.cluster.name",eH="k8s.node.name",tH="k8s.node.uid",rH="k8s.namespace.name",nH="k8s.pod.uid",oH="k8s.pod.name",iH="k8s.container.name",aH="k8s.replicaset.uid",sH="k8s.replicaset.name",cH="k8s.deployment.uid",uH="k8s.deployment.name",lH="k8s.statefulset.uid",pH="k8s.statefulset.name",dH="k8s.daemonset.uid",fH="k8s.daemonset.name",_H="k8s.job.uid",mH="k8s.job.name",EH="k8s.cronjob.uid",hH="k8s.cronjob.name",TH="os.type",SH="os.description",vH="os.name",gH="os.version",yH="process.pid",AH="process.executable.name",xH="process.executable.path",bH="process.command",OH="process.command_line",RH="process.command_args",PH="process.owner",NH="process.runtime.name",MH="process.runtime.version",IH="process.runtime.description",LH="service.name",CH="service.namespace",wH="service.instance.id",DH="service.version",UH="telemetry.sdk.name",VH="telemetry.sdk.language",kH="telemetry.sdk.version",BH="telemetry.auto.version",GH="webengine.name",jH="webengine.version",HH="webengine.description",tve=E2,rve=h2,nve=T2,ove=S2,ive=v2,ave=g2,sve=y2,cve=A2,uve=x2,lve=b2,pve=O2,dve=R2,fve=P2,_ve=N2,mve=M2,Eve=I2,hve=L2,Tve=C2,Sve=w2,vve=D2,gve=U2,yve=V2,Ave=k2,xve=B2,bve=G2,Ove=j2,Rve=H2,Pve=q2,Nve=F2,Mve=Y2,Ive=K2,Lve=$2,Cve=z2,wve=W2,Dve=X2,Uve=J2,Vve=Q2,kve=Z2,Bve=eH,Gve=tH,jve=rH,Hve=nH,qve=oH,Fve=iH,Yve=aH,Kve=sH,$ve=cH,zve=uH,Wve=lH,Xve=pH,Jve=dH,Qve=fH,Zve=_H,ege=mH,tge=EH,rge=hH,nge=TH,oge=SH,ige=vH,age=gH,sge=yH,cge=AH,uge=xH,lge=bH,pge=OH,dge=RH,fge=PH,_ge=NH,mge=MH,Ege=IH,hge=LH,Tge=CH,Sge=wH,vge=DH,gge=UH,yge=VH,Age=kH,xge=BH,bge=GH,Oge=jH,Rge=HH,Pge=we([E2,h2,T2,S2,v2,g2,y2,A2,x2,b2,O2,R2,P2,N2,M2,I2,L2,C2,w2,D2,U2,V2,k2,B2,G2,j2,H2,q2,F2,Y2,K2,$2,z2,W2,X2,J2,Q2,Z2,eH,tH,rH,nH,oH,iH,aH,sH,cH,uH,lH,pH,dH,fH,_H,mH,EH,hH,TH,SH,vH,gH,yH,AH,xH,bH,OH,RH,PH,NH,MH,IH,LH,CH,wH,DH,UH,VH,kH,BH,GH,jH,HH]),qH="alibaba_cloud",FH="aws",YH="azure",KH="gcp",Nge=qH,Mge=FH,Ige=YH,Lge=KH,Cge=we([qH,FH,YH,KH]),$H="alibaba_cloud_ecs",zH="alibaba_cloud_fc",WH="aws_ec2",XH="aws_ecs",JH="aws_eks",QH="aws_lambda",ZH="aws_elastic_beanstalk",eq="azure_vm",tq="azure_container_instances",rq="azure_aks",nq="azure_functions",oq="azure_app_service",iq="gcp_compute_engine",aq="gcp_cloud_run",sq="gcp_kubernetes_engine",cq="gcp_cloud_functions",uq="gcp_app_engine",wge=$H,Dge=zH,Uge=WH,Vge=XH,kge=JH,Bge=QH,Gge=ZH,jge=eq,Hge=tq,qge=rq,Fge=nq,Yge=oq,Kge=iq,$ge=aq,zge=sq,Wge=cq,Xge=uq,Jge=we([$H,zH,WH,XH,JH,QH,ZH,eq,tq,rq,nq,oq,iq,aq,sq,cq,uq]),lq="ec2",pq="fargate",Qge=lq,Zge=pq,eye=we([lq,pq]),dq="amd64",fq="arm32",_q="arm64",mq="ia64",Eq="ppc32",hq="ppc64",Tq="x86",tye=dq,rye=fq,nye=_q,oye=mq,iye=Eq,aye=hq,sye=Tq,cye=we([dq,fq,_q,mq,Eq,hq,Tq]),Sq="windows",vq="linux",gq="darwin",yq="freebsd",Aq="netbsd",xq="openbsd",bq="dragonflybsd",Oq="hpux",Rq="aix",Pq="solaris",Nq="z_os",uye=Sq,lye=vq,pye=gq,dye=yq,fye=Aq,_ye=xq,mye=bq,Eye=Oq,hye=Rq,Tye=Pq,Sye=Nq,vye=we([Sq,vq,gq,yq,Aq,xq,bq,Oq,Rq,Pq,Nq]),Mq="cpp",Iq="dotnet",Lq="erlang",Cq="go",wq="java",Dq="nodejs",Uq="php",Vq="python",kq="ruby",Bq="webjs",gye=Mq,yye=Iq,Aye=Lq,xye=Cq,bye=wq,Oye=Dq,Rye=Uq,Pye=Vq,Nye=kq,Mye=Bq,Iye=we([Mq,Iq,Lq,Cq,wq,Dq,Uq,Vq,kq,Bq])});var jq=w(()=>{l();Gq()});var Lye,Cye,wye,Dye,Uye,Vye,kye,Bye,Gye,jye,Hye,qye,Fye,Yye,Kye,$ye,zye,Wye,Xye,Jye,Qye,Zye,eAe,tAe,rAe,nAe,oAe,iAe,aAe,sAe,cAe,uAe,lAe,pAe,dAe,fAe,_Ae,mAe,EAe,hAe,TAe,SAe,vAe,gAe,yAe,AAe,xAe,wze,Dze,bAe,OAe,RAe,PAe,NAe,MAe,IAe,LAe,CAe,wAe,DAe,Uze,UAe,VAe,kAe,BAe,Vze,GAe,jAe,HAe,qAe,FAe,YAe,KAe,$Ae,zAe,WAe,XAe,JAe,QAe,ZAe,exe,kze,txe,rxe,nxe,oxe,ixe,axe,sxe,cxe,uxe,lxe,pxe,dxe,fxe,Bze,Gze,_xe,mxe,Exe,hxe,Txe,Sxe,vxe,gxe,yxe,jze,Axe,xxe,bxe,Oxe,Rxe,Pxe,Nxe,Mxe,Ixe,Lxe,Cxe,wxe,Dxe,Uxe,Vxe,kxe,Bxe,Gxe,Hze,jxe,Hxe,qze,qxe,Fxe,Fze,Yxe,Kxe,$xe,zxe,Wxe,Xxe,Jxe,Qxe,Zxe,ebe,tbe,rbe,nbe,Hq=w(()=>{l();Lye="aspnetcore.diagnostics.exception.result",Cye="aborted",wye="handled",Dye="skipped",Uye="unhandled",Vye="aspnetcore.diagnostics.handler.type",kye="aspnetcore.rate_limiting.policy",Bye="aspnetcore.rate_limiting.result",Gye="acquired",jye="endpoint_limiter",Hye="global_limiter",qye="request_canceled",Fye="aspnetcore.request.is_unhandled",Yye="aspnetcore.routing.is_fallback",Kye="aspnetcore.routing.match_status",$ye="failure",zye="success",Wye="aspnetcore.user.is_authenticated",Xye="client.address",Jye="client.port",Qye="code.column.number",Zye="code.file.path",eAe="code.function.name",tAe="code.line.number",rAe="code.stacktrace",nAe="db.collection.name",oAe="db.namespace",iAe="db.operation.batch.size",aAe="db.operation.name",sAe="db.query.summary",cAe="db.query.text",uAe="db.response.status_code",lAe="db.stored_procedure.name",pAe="db.system.name",dAe="mariadb",fAe="microsoft.sql_server",_Ae="mysql",mAe="postgresql",EAe="deployment.environment.name",hAe="development",TAe="production",SAe="staging",vAe="test",gAe="dotnet.gc.heap.generation",yAe="gen0",AAe="gen1",xAe="gen2",wze="loh",Dze="poh",bAe="error.type",OAe="_OTHER",RAe="exception.escaped",PAe="exception.message",NAe="exception.stacktrace",MAe="exception.type",IAe=t=>`http.request.header.${t}`,LAe="http.request.method",CAe="_OTHER",wAe="CONNECT",DAe="DELETE",Uze="GET",UAe="HEAD",VAe="OPTIONS",kAe="PATCH",BAe="POST",Vze="PUT",GAe="TRACE",jAe="http.request.method_original",HAe="http.request.resend_count",qAe=t=>`http.response.header.${t}`,FAe="http.response.status_code",YAe="http.route",KAe="jvm.gc.action",$Ae="jvm.gc.name",zAe="jvm.memory.pool.name",WAe="jvm.memory.type",XAe="heap",JAe="non_heap",QAe="jvm.thread.daemon",ZAe="jvm.thread.state",exe="blocked",kze="new",txe="runnable",rxe="terminated",nxe="timed_waiting",oxe="waiting",ixe="network.local.address",axe="network.local.port",sxe="network.peer.address",cxe="network.peer.port",uxe="network.protocol.name",lxe="network.protocol.version",pxe="network.transport",dxe="pipe",fxe="quic",Bze="tcp",Gze="udp",_xe="unix",mxe="network.type",Exe="ipv4",hxe="ipv6",Txe="otel.event.name",Sxe="otel.scope.name",vxe="otel.scope.version",gxe="otel.status_code",yxe="ERROR",jze="OK",Axe="otel.status_description",xxe="server.address",bxe="server.port",Oxe="service.instance.id",Rxe="service.name",Pxe="service.namespace",Nxe="service.version",Mxe="signalr.connection.status",Ixe="app_shutdown",Lxe="normal_closure",Cxe="timeout",wxe="signalr.transport",Dxe="long_polling",Uxe="server_sent_events",Vxe="web_sockets",kxe="telemetry.distro.name",Bxe="telemetry.distro.version",Gxe="telemetry.sdk.language",Hze="cpp",jxe="dotnet",Hxe="erlang",qze="go",qxe="java",Fxe="nodejs",Fze="php",Yxe="python",Kxe="ruby",$xe="rust",zxe="swift",Wxe="webjs",Xxe="telemetry.sdk.name",Jxe="telemetry.sdk.version",Qxe="url.fragment",Zxe="url.full",ebe="url.path",tbe="url.query",rbe="url.scheme",nbe="user_agent.original"});var obe,ibe,abe,sbe,cbe,ube,lbe,pbe,dbe,fbe,_be,mbe,Ebe,hbe,Tbe,Sbe,vbe,gbe,ybe,Abe,xbe,bbe,Obe,Rbe,Pbe,Nbe,Mbe,Ibe,Lbe,Cbe,wbe,Dbe,Ube,Vbe,kbe,Bbe,Gbe,jbe,Hbe,qbe,Fbe,Ybe,Kbe,$be,zbe,Wbe,Xbe,Jbe,Qbe,Zbe,eOe,qq=w(()=>{l();obe="aspnetcore.diagnostics.exceptions",ibe="aspnetcore.rate_limiting.active_request_leases",abe="aspnetcore.rate_limiting.queued_requests",sbe="aspnetcore.rate_limiting.request.time_in_queue",cbe="aspnetcore.rate_limiting.request_lease.duration",ube="aspnetcore.rate_limiting.requests",lbe="aspnetcore.routing.match_attempts",pbe="db.client.operation.duration",dbe="dotnet.assembly.count",fbe="dotnet.exceptions",_be="dotnet.gc.collections",mbe="dotnet.gc.heap.total_allocated",Ebe="dotnet.gc.last_collection.heap.fragmentation.size",hbe="dotnet.gc.last_collection.heap.size",Tbe="dotnet.gc.last_collection.memory.committed_size",Sbe="dotnet.gc.pause.time",vbe="dotnet.jit.compilation.time",gbe="dotnet.jit.compiled_il.size",ybe="dotnet.jit.compiled_methods",Abe="dotnet.monitor.lock_contentions",xbe="dotnet.process.cpu.count",bbe="dotnet.process.cpu.time",Obe="dotnet.process.memory.working_set",Rbe="dotnet.thread_pool.queue.length",Pbe="dotnet.thread_pool.thread.count",Nbe="dotnet.thread_pool.work_item.count",Mbe="dotnet.timer.count",Ibe="http.client.request.duration",Lbe="http.server.request.duration",Cbe="jvm.class.count",wbe="jvm.class.loaded",Dbe="jvm.class.unloaded",Ube="jvm.cpu.count",Vbe="jvm.cpu.recent_utilization",kbe="jvm.cpu.time",Bbe="jvm.gc.duration",Gbe="jvm.memory.committed",jbe="jvm.memory.limit",Hbe="jvm.memory.used",qbe="jvm.memory.used_after_last_gc",Fbe="jvm.thread.count",Ybe="kestrel.active_connections",Kbe="kestrel.active_tls_handshakes",$be="kestrel.connection.duration",zbe="kestrel.queued_connections",Wbe="kestrel.queued_requests",Xbe="kestrel.rejected_connections",Jbe="kestrel.tls_handshake.duration",Qbe="kestrel.upgraded_connections",Zbe="signalr.server.active_connections",eOe="signalr.server.connection.duration"});var tOe,Fq=w(()=>{l();tOe="exception"});var Yq={};Qn(Yq,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>Cye,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>wye,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>Dye,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>Uye,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Gye,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>jye,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>Hye,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>qye,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>$ye,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>zye,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>Lye,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>Vye,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>kye,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>Bye,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>Fye,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>Yye,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>Kye,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>Wye,ATTR_CLIENT_ADDRESS:()=>Xye,ATTR_CLIENT_PORT:()=>Jye,ATTR_CODE_COLUMN_NUMBER:()=>Qye,ATTR_CODE_FILE_PATH:()=>Zye,ATTR_CODE_FUNCTION_NAME:()=>eAe,ATTR_CODE_LINE_NUMBER:()=>tAe,ATTR_CODE_STACKTRACE:()=>rAe,ATTR_DB_COLLECTION_NAME:()=>nAe,ATTR_DB_NAMESPACE:()=>oAe,ATTR_DB_OPERATION_BATCH_SIZE:()=>iAe,ATTR_DB_OPERATION_NAME:()=>aAe,ATTR_DB_QUERY_SUMMARY:()=>sAe,ATTR_DB_QUERY_TEXT:()=>cAe,ATTR_DB_RESPONSE_STATUS_CODE:()=>uAe,ATTR_DB_STORED_PROCEDURE_NAME:()=>lAe,ATTR_DB_SYSTEM_NAME:()=>pAe,ATTR_DEPLOYMENT_ENVIRONMENT_NAME:()=>EAe,ATTR_DOTNET_GC_HEAP_GENERATION:()=>gAe,ATTR_ERROR_TYPE:()=>bAe,ATTR_EXCEPTION_ESCAPED:()=>RAe,ATTR_EXCEPTION_MESSAGE:()=>PAe,ATTR_EXCEPTION_STACKTRACE:()=>NAe,ATTR_EXCEPTION_TYPE:()=>MAe,ATTR_HTTP_REQUEST_HEADER:()=>IAe,ATTR_HTTP_REQUEST_METHOD:()=>LAe,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>jAe,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>HAe,ATTR_HTTP_RESPONSE_HEADER:()=>qAe,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>FAe,ATTR_HTTP_ROUTE:()=>YAe,ATTR_JVM_GC_ACTION:()=>KAe,ATTR_JVM_GC_NAME:()=>$Ae,ATTR_JVM_MEMORY_POOL_NAME:()=>zAe,ATTR_JVM_MEMORY_TYPE:()=>WAe,ATTR_JVM_THREAD_DAEMON:()=>QAe,ATTR_JVM_THREAD_STATE:()=>ZAe,ATTR_NETWORK_LOCAL_ADDRESS:()=>ixe,ATTR_NETWORK_LOCAL_PORT:()=>axe,ATTR_NETWORK_PEER_ADDRESS:()=>sxe,ATTR_NETWORK_PEER_PORT:()=>cxe,ATTR_NETWORK_PROTOCOL_NAME:()=>uxe,ATTR_NETWORK_PROTOCOL_VERSION:()=>lxe,ATTR_NETWORK_TRANSPORT:()=>pxe,ATTR_NETWORK_TYPE:()=>mxe,ATTR_OTEL_EVENT_NAME:()=>Txe,ATTR_OTEL_SCOPE_NAME:()=>Sxe,ATTR_OTEL_SCOPE_VERSION:()=>vxe,ATTR_OTEL_STATUS_CODE:()=>gxe,ATTR_OTEL_STATUS_DESCRIPTION:()=>Axe,ATTR_SERVER_ADDRESS:()=>xxe,ATTR_SERVER_PORT:()=>bxe,ATTR_SERVICE_INSTANCE_ID:()=>Oxe,ATTR_SERVICE_NAME:()=>Rxe,ATTR_SERVICE_NAMESPACE:()=>Pxe,ATTR_SERVICE_VERSION:()=>Nxe,ATTR_SIGNALR_CONNECTION_STATUS:()=>Mxe,ATTR_SIGNALR_TRANSPORT:()=>wxe,ATTR_TELEMETRY_DISTRO_NAME:()=>kxe,ATTR_TELEMETRY_DISTRO_VERSION:()=>Bxe,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Gxe,ATTR_TELEMETRY_SDK_NAME:()=>Xxe,ATTR_TELEMETRY_SDK_VERSION:()=>Jxe,ATTR_URL_FRAGMENT:()=>Qxe,ATTR_URL_FULL:()=>Zxe,ATTR_URL_PATH:()=>ebe,ATTR_URL_QUERY:()=>tbe,ATTR_URL_SCHEME:()=>rbe,ATTR_USER_AGENT_ORIGINAL:()=>nbe,AWSECSLAUNCHTYPEVALUES_EC2:()=>Qge,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Zge,AwsEcsLaunchtypeValues:()=>eye,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>wge,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>Dge,CLOUDPLATFORMVALUES_AWS_EC2:()=>Uge,CLOUDPLATFORMVALUES_AWS_ECS:()=>Vge,CLOUDPLATFORMVALUES_AWS_EKS:()=>kge,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Gge,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Bge,CLOUDPLATFORMVALUES_AZURE_AKS:()=>qge,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>Yge,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>Hge,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>Fge,CLOUDPLATFORMVALUES_AZURE_VM:()=>jge,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>Xge,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Wge,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>$ge,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Kge,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>zge,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>Nge,CLOUDPROVIDERVALUES_AWS:()=>Mge,CLOUDPROVIDERVALUES_AZURE:()=>Ige,CLOUDPROVIDERVALUES_GCP:()=>Lge,CloudPlatformValues:()=>Jge,CloudProviderValues:()=>Cge,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>fTe,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>gTe,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>_Te,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>vTe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>ETe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>ATe,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>hTe,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>mTe,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>yTe,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>STe,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>TTe,DBSYSTEMVALUES_ADABAS:()=>Uhe,DBSYSTEMVALUES_CACHE:()=>Dhe,DBSYSTEMVALUES_CASSANDRA:()=>Zhe,DBSYSTEMVALUES_CLOUDSCAPE:()=>Rhe,DBSYSTEMVALUES_COCKROACHDB:()=>pTe,DBSYSTEMVALUES_COLDFUSION:()=>Qhe,DBSYSTEMVALUES_COSMOSDB:()=>iTe,DBSYSTEMVALUES_COUCHBASE:()=>nTe,DBSYSTEMVALUES_COUCHDB:()=>oTe,DBSYSTEMVALUES_DB2:()=>Ahe,DBSYSTEMVALUES_DERBY:()=>khe,DBSYSTEMVALUES_DYNAMODB:()=>aTe,DBSYSTEMVALUES_EDB:()=>whe,DBSYSTEMVALUES_ELASTICSEARCH:()=>uTe,DBSYSTEMVALUES_FILEMAKER:()=>Bhe,DBSYSTEMVALUES_FIREBIRD:()=>Vhe,DBSYSTEMVALUES_FIRSTSQL:()=>Che,DBSYSTEMVALUES_GEODE:()=>cTe,DBSYSTEMVALUES_H2:()=>Jhe,DBSYSTEMVALUES_HANADB:()=>Ihe,DBSYSTEMVALUES_HBASE:()=>eTe,DBSYSTEMVALUES_HIVE:()=>Ohe,DBSYSTEMVALUES_HSQLDB:()=>Phe,DBSYSTEMVALUES_INFORMIX:()=>Ghe,DBSYSTEMVALUES_INGRES:()=>Lhe,DBSYSTEMVALUES_INSTANTDB:()=>jhe,DBSYSTEMVALUES_INTERBASE:()=>Hhe,DBSYSTEMVALUES_MARIADB:()=>qhe,DBSYSTEMVALUES_MAXDB:()=>Mhe,DBSYSTEMVALUES_MEMCACHED:()=>lTe,DBSYSTEMVALUES_MONGODB:()=>tTe,DBSYSTEMVALUES_MSSQL:()=>vhe,DBSYSTEMVALUES_MYSQL:()=>ghe,DBSYSTEMVALUES_NEO4J:()=>sTe,DBSYSTEMVALUES_NETEZZA:()=>Fhe,DBSYSTEMVALUES_ORACLE:()=>yhe,DBSYSTEMVALUES_OTHER_SQL:()=>She,DBSYSTEMVALUES_PERVASIVE:()=>Yhe,DBSYSTEMVALUES_POINTBASE:()=>Khe,DBSYSTEMVALUES_POSTGRESQL:()=>xhe,DBSYSTEMVALUES_PROGRESS:()=>Nhe,DBSYSTEMVALUES_REDIS:()=>rTe,DBSYSTEMVALUES_REDSHIFT:()=>bhe,DBSYSTEMVALUES_SQLITE:()=>$he,DBSYSTEMVALUES_SYBASE:()=>zhe,DBSYSTEMVALUES_TERADATA:()=>Whe,DBSYSTEMVALUES_VERTICA:()=>Xhe,DB_SYSTEM_NAME_VALUE_MARIADB:()=>dAe,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>fAe,DB_SYSTEM_NAME_VALUE_MYSQL:()=>_Ae,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>mAe,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_DEVELOPMENT:()=>hAe,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_PRODUCTION:()=>TAe,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_STAGING:()=>SAe,DEPLOYMENT_ENVIRONMENT_NAME_VALUE_TEST:()=>vAe,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>yAe,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>AAe,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>xAe,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>wze,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>Dze,DbCassandraConsistencyLevelValues:()=>xTe,DbSystemValues:()=>dTe,ERROR_TYPE_VALUE_OTHER:()=>OAe,EVENT_EXCEPTION:()=>tOe,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>CTe,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>LTe,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>ITe,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>DTe,FAASINVOKEDPROVIDERVALUES_AWS:()=>UTe,FAASINVOKEDPROVIDERVALUES_AZURE:()=>VTe,FAASINVOKEDPROVIDERVALUES_GCP:()=>kTe,FAASTRIGGERVALUES_DATASOURCE:()=>bTe,FAASTRIGGERVALUES_HTTP:()=>OTe,FAASTRIGGERVALUES_OTHER:()=>NTe,FAASTRIGGERVALUES_PUBSUB:()=>RTe,FAASTRIGGERVALUES_TIMER:()=>PTe,FaasDocumentOperationValues:()=>wTe,FaasInvokedProviderValues:()=>BTe,FaasTriggerValues:()=>MTe,HOSTARCHVALUES_AMD64:()=>tye,HOSTARCHVALUES_ARM32:()=>rye,HOSTARCHVALUES_ARM64:()=>nye,HOSTARCHVALUES_IA64:()=>oye,HOSTARCHVALUES_PPC32:()=>iye,HOSTARCHVALUES_PPC64:()=>aye,HOSTARCHVALUES_X86:()=>sye,HTTPFLAVORVALUES_HTTP_1_0:()=>ySe,HTTPFLAVORVALUES_HTTP_1_1:()=>ASe,HTTPFLAVORVALUES_HTTP_2_0:()=>xSe,HTTPFLAVORVALUES_QUIC:()=>OSe,HTTPFLAVORVALUES_SPDY:()=>bSe,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>wAe,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>DAe,HTTP_REQUEST_METHOD_VALUE_GET:()=>Uze,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>UAe,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>VAe,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>CAe,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>kAe,HTTP_REQUEST_METHOD_VALUE_POST:()=>BAe,HTTP_REQUEST_METHOD_VALUE_PUT:()=>Vze,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>GAe,HostArchValues:()=>cye,HttpFlavorValues:()=>RSe,JVM_MEMORY_TYPE_VALUE_HEAP:()=>XAe,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>JAe,JVM_THREAD_STATE_VALUE_BLOCKED:()=>exe,JVM_THREAD_STATE_VALUE_NEW:()=>kze,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>txe,JVM_THREAD_STATE_VALUE_TERMINATED:()=>rxe,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>nxe,JVM_THREAD_STATE_VALUE_WAITING:()=>oxe,MESSAGETYPEVALUES_RECEIVED:()=>ZSe,MESSAGETYPEVALUES_SENT:()=>QSe,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>PSe,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>NSe,MESSAGINGOPERATIONVALUES_PROCESS:()=>LSe,MESSAGINGOPERATIONVALUES_RECEIVE:()=>ISe,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>obe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>ibe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>abe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>ube,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>cbe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>sbe,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>lbe,METRIC_DB_CLIENT_OPERATION_DURATION:()=>pbe,METRIC_DOTNET_ASSEMBLY_COUNT:()=>dbe,METRIC_DOTNET_EXCEPTIONS:()=>fbe,METRIC_DOTNET_GC_COLLECTIONS:()=>_be,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>mbe,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>Ebe,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>hbe,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>Tbe,METRIC_DOTNET_GC_PAUSE_TIME:()=>Sbe,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>vbe,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>gbe,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>ybe,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>Abe,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>xbe,METRIC_DOTNET_PROCESS_CPU_TIME:()=>bbe,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>Obe,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>Rbe,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>Pbe,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>Nbe,METRIC_DOTNET_TIMER_COUNT:()=>Mbe,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>Ibe,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>Lbe,METRIC_JVM_CLASS_COUNT:()=>Cbe,METRIC_JVM_CLASS_LOADED:()=>wbe,METRIC_JVM_CLASS_UNLOADED:()=>Dbe,METRIC_JVM_CPU_COUNT:()=>Ube,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>Vbe,METRIC_JVM_CPU_TIME:()=>kbe,METRIC_JVM_GC_DURATION:()=>Bbe,METRIC_JVM_MEMORY_COMMITTED:()=>Gbe,METRIC_JVM_MEMORY_LIMIT:()=>jbe,METRIC_JVM_MEMORY_USED:()=>Hbe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>qbe,METRIC_JVM_THREAD_COUNT:()=>Fbe,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>Ybe,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>Kbe,METRIC_KESTREL_CONNECTION_DURATION:()=>$be,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>zbe,METRIC_KESTREL_QUEUED_REQUESTS:()=>Wbe,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>Xbe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>Jbe,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>Qbe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>Zbe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>eOe,MessageTypeValues:()=>eve,MessagingDestinationKindValues:()=>MSe,MessagingOperationValues:()=>CSe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>nSe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>aSe,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>tSe,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>fSe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>oSe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>iSe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>pSe,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>eSe,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>mSe,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>sSe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>uSe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>_Se,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>cSe,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>lSe,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>hSe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>dSe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>vSe,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>TSe,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>SSe,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>ESe,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>rSe,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>XTe,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>JTe,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>QTe,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>zTe,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>WTe,NETTRANSPORTVALUES_INPROC:()=>YTe,NETTRANSPORTVALUES_IP:()=>HTe,NETTRANSPORTVALUES_IP_TCP:()=>GTe,NETTRANSPORTVALUES_IP_UDP:()=>jTe,NETTRANSPORTVALUES_OTHER:()=>KTe,NETTRANSPORTVALUES_PIPE:()=>FTe,NETTRANSPORTVALUES_UNIX:()=>qTe,NETWORK_TRANSPORT_VALUE_PIPE:()=>dxe,NETWORK_TRANSPORT_VALUE_QUIC:()=>fxe,NETWORK_TRANSPORT_VALUE_TCP:()=>Bze,NETWORK_TRANSPORT_VALUE_UDP:()=>Gze,NETWORK_TRANSPORT_VALUE_UNIX:()=>_xe,NETWORK_TYPE_VALUE_IPV4:()=>Exe,NETWORK_TYPE_VALUE_IPV6:()=>hxe,NetHostConnectionSubtypeValues:()=>gSe,NetHostConnectionTypeValues:()=>ZTe,NetTransportValues:()=>$Te,OSTYPEVALUES_AIX:()=>hye,OSTYPEVALUES_DARWIN:()=>pye,OSTYPEVALUES_DRAGONFLYBSD:()=>mye,OSTYPEVALUES_FREEBSD:()=>dye,OSTYPEVALUES_HPUX:()=>Eye,OSTYPEVALUES_LINUX:()=>lye,OSTYPEVALUES_NETBSD:()=>fye,OSTYPEVALUES_OPENBSD:()=>_ye,OSTYPEVALUES_SOLARIS:()=>Tye,OSTYPEVALUES_WINDOWS:()=>uye,OSTYPEVALUES_Z_OS:()=>Sye,OTEL_STATUS_CODE_VALUE_ERROR:()=>yxe,OTEL_STATUS_CODE_VALUE_OK:()=>jze,OsTypeValues:()=>vye,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>FSe,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>GSe,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>DSe,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>WSe,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>kSe,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>qSe,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>$Se,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>VSe,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>BSe,RPCGRPCSTATUSCODEVALUES_OK:()=>wSe,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>YSe,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>jSe,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>HSe,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>XSe,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>zSe,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>KSe,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>USe,RpcGrpcStatusCodeValues:()=>JSe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>REe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>BEe,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>xEe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>vEe,SEMATTRS_AWS_DYNAMODB_COUNT:()=>VEe,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>LEe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>MEe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>GEe,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>PEe,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>gEe,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>OEe,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>IEe,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>bEe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>yEe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>AEe,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>kEe,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>wEe,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>DEe,SEMATTRS_AWS_DYNAMODB_SELECT:()=>NEe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>CEe,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>SEe,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>UEe,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Q_e,SEMATTRS_CODE_FILEPATH:()=>rEe,SEMATTRS_CODE_FUNCTION:()=>eEe,SEMATTRS_CODE_LINENO:()=>nEe,SEMATTRS_CODE_NAMESPACE:()=>tEe,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>ume,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>_me,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>fme,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>pme,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>sme,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>cme,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>dme,SEMATTRS_DB_CASSANDRA_TABLE:()=>lme,SEMATTRS_DB_CONNECTION_STRING:()=>eme,SEMATTRS_DB_HBASE_NAMESPACE:()=>mme,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>rme,SEMATTRS_DB_MONGODB_COLLECTION:()=>hme,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>ame,SEMATTRS_DB_NAME:()=>nme,SEMATTRS_DB_OPERATION:()=>ime,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>Eme,SEMATTRS_DB_SQL_TABLE:()=>Tme,SEMATTRS_DB_STATEMENT:()=>ome,SEMATTRS_DB_SYSTEM:()=>Z_e,SEMATTRS_DB_USER:()=>tme,SEMATTRS_ENDUSER_ID:()=>Wme,SEMATTRS_ENDUSER_ROLE:()=>Xme,SEMATTRS_ENDUSER_SCOPE:()=>Jme,SEMATTRS_EXCEPTION_ESCAPED:()=>yme,SEMATTRS_EXCEPTION_MESSAGE:()=>vme,SEMATTRS_EXCEPTION_STACKTRACE:()=>gme,SEMATTRS_EXCEPTION_TYPE:()=>Sme,SEMATTRS_FAAS_COLDSTART:()=>Ime,SEMATTRS_FAAS_CRON:()=>Mme,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>bme,SEMATTRS_FAAS_DOCUMENT_NAME:()=>Pme,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>Ome,SEMATTRS_FAAS_DOCUMENT_TIME:()=>Rme,SEMATTRS_FAAS_EXECUTION:()=>xme,SEMATTRS_FAAS_INVOKED_NAME:()=>Lme,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>Cme,SEMATTRS_FAAS_INVOKED_REGION:()=>wme,SEMATTRS_FAAS_TIME:()=>Nme,SEMATTRS_FAAS_TRIGGER:()=>Ame,SEMATTRS_HTTP_CLIENT_IP:()=>TEe,SEMATTRS_HTTP_FLAVOR:()=>lEe,SEMATTRS_HTTP_HOST:()=>sEe,SEMATTRS_HTTP_METHOD:()=>oEe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>dEe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>fEe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>_Ee,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>mEe,SEMATTRS_HTTP_ROUTE:()=>hEe,SEMATTRS_HTTP_SCHEME:()=>cEe,SEMATTRS_HTTP_SERVER_NAME:()=>EEe,SEMATTRS_HTTP_STATUS_CODE:()=>uEe,SEMATTRS_HTTP_TARGET:()=>aEe,SEMATTRS_HTTP_URL:()=>iEe,SEMATTRS_HTTP_USER_AGENT:()=>pEe,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>Ehe,SEMATTRS_MESSAGE_ID:()=>mhe,SEMATTRS_MESSAGE_TYPE:()=>_he,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>hhe,SEMATTRS_MESSAGING_CONSUMER_ID:()=>ZEe,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>WEe,SEMATTRS_MESSAGING_DESTINATION:()=>HEe,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>qEe,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>nhe,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>rhe,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>the,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>ohe,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>ihe,SEMATTRS_MESSAGING_MESSAGE_ID:()=>zEe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>JEe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>XEe,SEMATTRS_MESSAGING_OPERATION:()=>QEe,SEMATTRS_MESSAGING_PROTOCOL:()=>YEe,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>KEe,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>ehe,SEMATTRS_MESSAGING_SYSTEM:()=>jEe,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>FEe,SEMATTRS_MESSAGING_URL:()=>$Ee,SEMATTRS_NET_HOST_CARRIER_ICC:()=>$me,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Yme,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Kme,SEMATTRS_NET_HOST_CARRIER_NAME:()=>Fme,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>qme,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>Hme,SEMATTRS_NET_HOST_IP:()=>Bme,SEMATTRS_NET_HOST_NAME:()=>jme,SEMATTRS_NET_HOST_PORT:()=>Gme,SEMATTRS_NET_PEER_IP:()=>Ume,SEMATTRS_NET_PEER_NAME:()=>kme,SEMATTRS_NET_PEER_PORT:()=>Vme,SEMATTRS_NET_TRANSPORT:()=>Dme,SEMATTRS_PEER_SERVICE:()=>zme,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>uhe,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>dhe,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>fhe,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>phe,SEMATTRS_RPC_JSONRPC_VERSION:()=>lhe,SEMATTRS_RPC_METHOD:()=>che,SEMATTRS_RPC_SERVICE:()=>she,SEMATTRS_RPC_SYSTEM:()=>ahe,SEMATTRS_THREAD_ID:()=>Qme,SEMATTRS_THREAD_NAME:()=>Zme,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>sve,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>ave,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>cve,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>uve,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>lve,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>pve,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>dve,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>_ve,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>fve,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>Eve,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>mve,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>rve,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>ove,SEMRESATTRS_CLOUD_PLATFORM:()=>ive,SEMRESATTRS_CLOUD_PROVIDER:()=>tve,SEMRESATTRS_CLOUD_REGION:()=>nve,SEMRESATTRS_CONTAINER_ID:()=>Tve,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>vve,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>gve,SEMRESATTRS_CONTAINER_NAME:()=>hve,SEMRESATTRS_CONTAINER_RUNTIME:()=>Sve,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>yve,SEMRESATTRS_DEVICE_ID:()=>Ave,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>xve,SEMRESATTRS_DEVICE_MODEL_NAME:()=>bve,SEMRESATTRS_FAAS_ID:()=>Rve,SEMRESATTRS_FAAS_INSTANCE:()=>Nve,SEMRESATTRS_FAAS_MAX_MEMORY:()=>Mve,SEMRESATTRS_FAAS_NAME:()=>Ove,SEMRESATTRS_FAAS_VERSION:()=>Pve,SEMRESATTRS_HOST_ARCH:()=>wve,SEMRESATTRS_HOST_ID:()=>Ive,SEMRESATTRS_HOST_IMAGE_ID:()=>Uve,SEMRESATTRS_HOST_IMAGE_NAME:()=>Dve,SEMRESATTRS_HOST_IMAGE_VERSION:()=>Vve,SEMRESATTRS_HOST_NAME:()=>Lve,SEMRESATTRS_HOST_TYPE:()=>Cve,SEMRESATTRS_K8S_CLUSTER_NAME:()=>kve,SEMRESATTRS_K8S_CONTAINER_NAME:()=>Fve,SEMRESATTRS_K8S_CRONJOB_NAME:()=>rge,SEMRESATTRS_K8S_CRONJOB_UID:()=>tge,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>Qve,SEMRESATTRS_K8S_DAEMONSET_UID:()=>Jve,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>zve,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>$ve,SEMRESATTRS_K8S_JOB_NAME:()=>ege,SEMRESATTRS_K8S_JOB_UID:()=>Zve,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>jve,SEMRESATTRS_K8S_NODE_NAME:()=>Bve,SEMRESATTRS_K8S_NODE_UID:()=>Gve,SEMRESATTRS_K8S_POD_NAME:()=>qve,SEMRESATTRS_K8S_POD_UID:()=>Hve,SEMRESATTRS_K8S_REPLICASET_NAME:()=>Kve,SEMRESATTRS_K8S_REPLICASET_UID:()=>Yve,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>Xve,SEMRESATTRS_K8S_STATEFULSET_UID:()=>Wve,SEMRESATTRS_OS_DESCRIPTION:()=>oge,SEMRESATTRS_OS_NAME:()=>ige,SEMRESATTRS_OS_TYPE:()=>nge,SEMRESATTRS_OS_VERSION:()=>age,SEMRESATTRS_PROCESS_COMMAND:()=>lge,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>dge,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>pge,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>cge,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>uge,SEMRESATTRS_PROCESS_OWNER:()=>fge,SEMRESATTRS_PROCESS_PID:()=>sge,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>Ege,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>_ge,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>mge,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>Sge,SEMRESATTRS_SERVICE_NAME:()=>hge,SEMRESATTRS_SERVICE_NAMESPACE:()=>Tge,SEMRESATTRS_SERVICE_VERSION:()=>vge,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>xge,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>yge,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>gge,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>Age,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>Rge,SEMRESATTRS_WEBENGINE_NAME:()=>bge,SEMRESATTRS_WEBENGINE_VERSION:()=>Oge,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>Ixe,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>Lxe,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>Cxe,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>Dxe,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>Uxe,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>Vxe,SemanticAttributes:()=>The,SemanticResourceAttributes:()=>Pge,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>gye,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>yye,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>Aye,TELEMETRYSDKLANGUAGEVALUES_GO:()=>xye,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>bye,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>Oye,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>Rye,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>Pye,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>Nye,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>Mye,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>Hze,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>jxe,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Hxe,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>qze,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>qxe,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>Fxe,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>Fze,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Yxe,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Kxe,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>$xe,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>zxe,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>Wxe,TelemetrySdkLanguageValues:()=>Iye});var Kq=w(()=>{l();m2();jq();Hq();qq();Fq()});var $q=_(ed=>{"use strict";l();Object.defineProperty(ed,"__esModule",{value:!0});ed.ATTR_PROCESS_RUNTIME_NAME=void 0;ed.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var zq=_(rd=>{"use strict";l();Object.defineProperty(rd,"__esModule",{value:!0});rd.SDK_INFO=void 0;var rOe=xV(),td=(Kq(),N(Yq)),nOe=$q();rd.SDK_INFO={[td.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[nOe.ATTR_PROCESS_RUNTIME_NAME]:"node",[td.ATTR_TELEMETRY_SDK_LANGUAGE]:td.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[td.ATTR_TELEMETRY_SDK_VERSION]:rOe.VERSION}});var Wq=_(dt=>{"use strict";l();Object.defineProperty(dt,"__esModule",{value:!0});dt.otperformance=dt.SDK_INFO=dt._globalThis=dt.getStringListFromEnv=dt.getNumberFromEnv=dt.getBooleanFromEnv=dt.getStringFromEnv=void 0;var nd=yV();Object.defineProperty(dt,"getStringFromEnv",{enumerable:!0,get:function(){return nd.getStringFromEnv}});Object.defineProperty(dt,"getBooleanFromEnv",{enumerable:!0,get:function(){return nd.getBooleanFromEnv}});Object.defineProperty(dt,"getNumberFromEnv",{enumerable:!0,get:function(){return nd.getNumberFromEnv}});Object.defineProperty(dt,"getStringListFromEnv",{enumerable:!0,get:function(){return nd.getStringListFromEnv}});var oOe=AV();Object.defineProperty(dt,"_globalThis",{enumerable:!0,get:function(){return oOe._globalThis}});var iOe=zq();Object.defineProperty(dt,"SDK_INFO",{enumerable:!0,get:function(){return iOe.SDK_INFO}});dt.otperformance=performance});var BS=_(ft=>{"use strict";l();Object.defineProperty(ft,"__esModule",{value:!0});ft.getStringListFromEnv=ft.getNumberFromEnv=ft.getStringFromEnv=ft.getBooleanFromEnv=ft.otperformance=ft._globalThis=ft.SDK_INFO=void 0;var wo=Wq();Object.defineProperty(ft,"SDK_INFO",{enumerable:!0,get:function(){return wo.SDK_INFO}});Object.defineProperty(ft,"_globalThis",{enumerable:!0,get:function(){return wo._globalThis}});Object.defineProperty(ft,"otperformance",{enumerable:!0,get:function(){return wo.otperformance}});Object.defineProperty(ft,"getBooleanFromEnv",{enumerable:!0,get:function(){return wo.getBooleanFromEnv}});Object.defineProperty(ft,"getStringFromEnv",{enumerable:!0,get:function(){return wo.getStringFromEnv}});Object.defineProperty(ft,"getNumberFromEnv",{enumerable:!0,get:function(){return wo.getNumberFromEnv}});Object.defineProperty(ft,"getStringListFromEnv",{enumerable:!0,get:function(){return wo.getStringListFromEnv}})});var Zq=_(me=>{"use strict";l();Object.defineProperty(me,"__esModule",{value:!0});me.addHrTimes=me.isTimeInput=me.isTimeInputHrTime=me.hrTimeToSeconds=me.hrTimeToMilliseconds=me.hrTimeToMicroseconds=me.hrTimeToNanoseconds=me.hrTimeToTimeStamp=me.hrTimeDuration=me.timeInputToHrTime=me.hrTime=me.getTimeOrigin=me.millisToHrTime=void 0;var od=BS(),Xq=9,aOe=6,sOe=Math.pow(10,aOe),zs=Math.pow(10,Xq);function Ws(t){let e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*sOe);return[n,i]}me.millisToHrTime=Ws;function cOe(){return od.otperformance.timeOrigin}me.getTimeOrigin=cOe;function Jq(t){let e=Ws(od.otperformance.timeOrigin),n=Ws(typeof t=="number"?t:od.otperformance.now());return Qq(e,n)}me.hrTime=Jq;function uOe(t){if(GS(t))return t;if(typeof t=="number")return t<od.otperformance.timeOrigin?Jq(t):Ws(t);if(t instanceof Date)return Ws(t.getTime());throw TypeError("Invalid input type")}me.timeInputToHrTime=uOe;function lOe(t,e){let n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=zs),[n,i]}me.hrTimeDuration=lOe;function pOe(t){let e=Xq,n=`${"0".repeat(e)}${t[1]}Z`,i=n.substring(n.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",i)}me.hrTimeToTimeStamp=pOe;function dOe(t){return t[0]*zs+t[1]}me.hrTimeToNanoseconds=dOe;function fOe(t){return t[0]*1e6+t[1]/1e3}me.hrTimeToMicroseconds=fOe;function _Oe(t){return t[0]*1e3+t[1]/1e6}me.hrTimeToMilliseconds=_Oe;function mOe(t){return t[0]+t[1]/zs}me.hrTimeToSeconds=mOe;function GS(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}me.isTimeInputHrTime=GS;function EOe(t){return GS(t)||typeof t=="number"||t instanceof Date}me.isTimeInput=EOe;function Qq(t,e){let n=[t[0]+e[0],t[1]+e[1]];return n[1]>=zs&&(n[1]-=zs,n[0]+=1),n}me.addHrTimes=Qq});var eF=_(id=>{"use strict";l();Object.defineProperty(id,"__esModule",{value:!0});id.unrefTimer=void 0;function hOe(t){typeof t!="number"&&t.unref()}id.unrefTimer=hOe});var tF=_(Xs=>{"use strict";l();Object.defineProperty(Xs,"__esModule",{value:!0});Xs.ExportResultCode=void 0;var TOe;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(TOe=Xs.ExportResultCode||(Xs.ExportResultCode={}))});var nF=_(ad=>{"use strict";l();Object.defineProperty(ad,"__esModule",{value:!0});ad.CompositePropagator=void 0;var rF=(L(),N(C)),jS=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[];let n=new Set;for(let i of this._propagators){let a=typeof i.fields=="function"?i.fields():[];for(let c of a)n.add(c)}this._fields=Array.from(n)}inject(e,n,i){for(let a of this._propagators)try{a.inject(e,n,i)}catch(c){rF.diag.warn(`Failed to inject with ${a.constructor.name}. Err: ${c.message}`)}}extract(e,n,i){return this._propagators.reduce((a,c)=>{try{return c.extract(a,n,i)}catch(o){rF.diag.warn(`Failed to extract with ${c.constructor.name}. Err: ${o.message}`)}return a},e)}fields(){return this._fields.slice()}};ad.CompositePropagator=jS});var oF=_(fa=>{"use strict";l();Object.defineProperty(fa,"__esModule",{value:!0});fa.validateValue=fa.validateKey=void 0;var HS="[_0-9a-z-*/]",SOe=`[a-z]${HS}{0,255}`,vOe=`[a-z0-9]${HS}{0,240}@[a-z]${HS}{0,13}`,gOe=new RegExp(`^(?:${SOe}|${vOe})$`),yOe=/^[ -~]{0,255}[!-~]$/,AOe=/,|=/;function xOe(t){return gOe.test(t)}fa.validateKey=xOe;function bOe(t){return yOe.test(t)&&!AOe.test(t)}fa.validateValue=bOe});var FS=_(cd=>{"use strict";l();Object.defineProperty(cd,"__esModule",{value:!0});cd.TraceState=void 0;var sd=oF(),OOe=32,iF=512,aF=",",sF="=",qS=class t{_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState=typeof e=="string"?e:"",this._length=this._rawTraceState.length}set(e,n){if(!(0,sd.validateKey)(e)||!(0,sd.validateValue)(n))return this;let i=this._getState(),a=i.get(e),c=this._length;if(typeof a=="string"?c+=n.length-a.length:c+=e.length+n.length+(i.size>0?2:1),c>iF)return this;let o=new Map(i);return o.delete(e),o.set(e,n),this._fromState(o,c)}unset(e){let n=this._getState(),i=n.get(e);if(typeof i!="string")return this;let a=this._length-(e.length+i.length+1);n.size>1&&(a=a-1);let c=new Map(n);return c.delete(e),this._fromState(c,a)}get(e){return this._getState().get(e)}serialize(){let e="",n=0;for(let i of this._getState())n>0&&(e=aF+e),e=`${i[0]}${sF}${i[1]}`+e,n++;return e}_getState(){if(this._internalState)return this._internalState;let e=this._rawTraceState.split(aF),n=new Map,i=0;for(let a of e){let c=a.trim(),o=c.indexOf(sF);if(o===-1)continue;let r=c.slice(0,o),s=c.slice(o+1);if(!(0,sd.validateKey)(r)||!(0,sd.validateValue)(s))continue;let u=i+c.length+(n.size>0?1:0);if(!(u>iF)&&(n.set(r,s),i=u,n.size>=OOe))break}return this._length=i,this._internalState=new Map(Array.from(n.entries()).reverse()),this._internalState}_fromState(e,n){let i=Object.create(t.prototype);return i._internalState=e,i._length=n,i}};cd.TraceState=qS});var uF=_(_t=>{"use strict";l();Object.defineProperty(_t,"__esModule",{value:!0});_t.W3CTraceContextPropagator=_t.parseTraceParent=_t.TRACE_STATE_HEADER=_t.TRACE_PARENT_HEADER=void 0;var ud=(L(),N(C)),ROe=Ks(),POe=FS();_t.TRACE_PARENT_HEADER="traceparent";_t.TRACE_STATE_HEADER="tracestate";var NOe="00",MOe="(?!ff)[\\da-f]{2}",IOe="(?![0]{32})[\\da-f]{32}",LOe="(?![0]{16})[\\da-f]{16}",COe="[\\da-f]{2}",wOe=new RegExp(`^\\s?(${MOe})-(${IOe})-(${LOe})-(${COe})(-.*)?\\s?$`);function cF(t){let e=wOe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}_t.parseTraceParent=cF;var YS=class{inject(e,n,i){let a=ud.trace.getSpanContext(e);if(!a||(0,ROe.isTracingSuppressed)(e)||!(0,ud.isSpanContextValid)(a))return;let c=`${NOe}-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||ud.TraceFlags.NONE).toString(16)}`;i.set(n,_t.TRACE_PARENT_HEADER,c),a.traceState&&i.set(n,_t.TRACE_STATE_HEADER,a.traceState.serialize())}extract(e,n,i){let a=i.get(n,_t.TRACE_PARENT_HEADER);if(!a)return e;let c=Array.isArray(a)?a[0]:a;if(typeof c!="string")return e;let o=cF(c);if(!o)return e;o.isRemote=!0;let r=i.get(n,_t.TRACE_STATE_HEADER);if(r){let s=Array.isArray(r)?r.join(","):r;o.traceState=new POe.TraceState(typeof s=="string"?s:void 0)}return ud.trace.setSpanContext(e,o)}fields(){return[_t.TRACE_PARENT_HEADER,_t.TRACE_STATE_HEADER]}};_t.W3CTraceContextPropagator=YS});var lF=_(fr=>{"use strict";l();Object.defineProperty(fr,"__esModule",{value:!0});fr.getRPCMetadata=fr.deleteRPCMetadata=fr.setRPCMetadata=fr.RPCType=void 0;var DOe=(L(),N(C)),KS=(0,DOe.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),UOe;(function(t){t.HTTP="http"})(UOe=fr.RPCType||(fr.RPCType={}));function VOe(t,e){return t.setValue(KS,e)}fr.setRPCMetadata=VOe;function kOe(t){return t.deleteValue(KS)}fr.deleteRPCMetadata=kOe;function BOe(t){return t.getValue(KS)}fr.getRPCMetadata=BOe});var mF=_(ld=>{"use strict";l();Object.defineProperty(ld,"__esModule",{value:!0});ld.isPlainObject=void 0;var GOe="[object Object]",jOe="[object Null]",HOe="[object Undefined]",qOe=Function.prototype,pF=qOe.toString,FOe=pF.call(Object),YOe=Object.getPrototypeOf,dF=Object.prototype,fF=dF.hasOwnProperty,Do=Symbol?Symbol.toStringTag:void 0,_F=dF.toString;function KOe(t){if(!$Oe(t)||zOe(t)!==GOe)return!1;let e=YOe(t);if(e===null)return!0;let n=fF.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&pF.call(n)===FOe}ld.isPlainObject=KOe;function $Oe(t){return t!=null&&typeof t=="object"}function zOe(t){return t==null?t===void 0?HOe:jOe:Do&&Do in Object(t)?WOe(t):XOe(t)}function WOe(t){let e=fF.call(t,Do),n=t[Do],i=!1;try{t[Do]=void 0,i=!0}catch{}let a=_F.call(t);return i&&(e?t[Do]=n:delete t[Do]),a}function XOe(t){return _F.call(t)}});var vF=_(fd=>{"use strict";l();Object.defineProperty(fd,"__esModule",{value:!0});fd.merge=void 0;var EF=mF(),JOe=20;function QOe(...t){let e=t.shift(),n=new WeakMap;for(;t.length>0;)e=TF(e,t.shift(),0,n);return e}fd.merge=QOe;function $S(t){return dd(t)?t.slice():t}function TF(t,e,n=0,i){let a;if(!(n>JOe)){if(n++,pd(t)||pd(e)||SF(e))a=$S(e);else if(dd(t)){if(a=t.slice(),dd(e))for(let c=0,o=e.length;c<o;c++)a.push($S(e[c]));else if(Js(e)){let c=Object.keys(e);for(let o=0,r=c.length;o<r;o++){let s=c[o];s==="__proto__"||s==="constructor"||s==="prototype"||(a[s]=$S(e[s]))}}}else if(Js(t))if(Js(e)){if(!ZOe(t,e))return e;a=Object.assign({},t);let c=Object.keys(e);for(let o=0,r=c.length;o<r;o++){let s=c[o];if(s==="__proto__"||s==="constructor"||s==="prototype")continue;let u=e[s];if(pd(u))typeof u>"u"?delete a[s]:a[s]=u;else{let p=a[s],S=u;if(hF(t,s,i)||hF(e,s,i))delete a[s];else{if(Js(p)&&Js(S)){let A=i.get(p)||[],O=i.get(S)||[];A.push({obj:t,key:s}),O.push({obj:e,key:s}),i.set(p,A),i.set(S,O)}a[s]=TF(a[s],u,n,i)}}}}else a=e;return a}}function hF(t,e,n){let i=n.get(t[e])||[];for(let a=0,c=i.length;a<c;a++){let o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function dd(t){return Array.isArray(t)}function SF(t){return typeof t=="function"}function Js(t){return!pd(t)&&!dd(t)&&!SF(t)&&typeof t=="object"}function pd(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function ZOe(t,e){return!(!(0,EF.isPlainObject)(t)||!(0,EF.isPlainObject)(e))}});var gF=_(_a=>{"use strict";l();Object.defineProperty(_a,"__esModule",{value:!0});_a.callWithTimeout=_a.TimeoutError=void 0;var _d=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};_a.TimeoutError=_d;function eRe(t,e){let n,i=new Promise(function(c,o){n=setTimeout(function(){o(new _d("Operation timed out."))},e)});return Promise.race([t,i]).then(a=>(clearTimeout(n),a),a=>{throw clearTimeout(n),a})}_a.callWithTimeout=eRe});var AF=_(ma=>{"use strict";l();Object.defineProperty(ma,"__esModule",{value:!0});ma.isUrlIgnored=ma.urlMatches=void 0;function yF(t,e){return typeof e=="string"?t===e:!!t.match(e)}ma.urlMatches=yF;function tRe(t,e){if(!e)return!1;for(let n of e)if(yF(t,n))return!0;return!1}ma.isUrlIgnored=tRe});var xF=_(md=>{"use strict";l();Object.defineProperty(md,"__esModule",{value:!0});md.Deferred=void 0;var zS=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};md.Deferred=zS});var bF=_(Ed=>{"use strict";l();Object.defineProperty(Ed,"__esModule",{value:!0});Ed.BindOnceFuture=void 0;var rRe=xF(),WS=class{_isCalled=!1;_deferred=new rRe.Deferred;_callback;_that;constructor(e,n){this._callback=e,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}};Ed.BindOnceFuture=WS});var RF=_(hd=>{"use strict";l();Object.defineProperty(hd,"__esModule",{value:!0});hd.diagLogLevelFromString=void 0;var an=(L(),N(C)),OF={ALL:an.DiagLogLevel.ALL,VERBOSE:an.DiagLogLevel.VERBOSE,DEBUG:an.DiagLogLevel.DEBUG,INFO:an.DiagLogLevel.INFO,WARN:an.DiagLogLevel.WARN,ERROR:an.DiagLogLevel.ERROR,NONE:an.DiagLogLevel.NONE};function nRe(t){if(t==null)return;let e=OF[t.toUpperCase()];return e??(an.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(OF)}, using default`),an.DiagLogLevel.INFO)}hd.diagLogLevelFromString=nRe});var NF=_(Td=>{"use strict";l();Object.defineProperty(Td,"__esModule",{value:!0});Td._export=void 0;var PF=(L(),N(C)),oRe=Ks();function iRe(t,e){return new Promise(n=>{PF.context.with((0,oRe.suppressTracing)(PF.context.active()),()=>{t.export(e,n)})})}Td._export=iRe});var wF=_(P=>{"use strict";l();Object.defineProperty(P,"__esModule",{value:!0});P.diagLogLevelFromString=P.BindOnceFuture=P.urlMatches=P.isUrlIgnored=P.callWithTimeout=P.TimeoutError=P.merge=P.TraceState=P.unsuppressTracing=P.suppressTracing=P.isTracingSuppressed=P.setRPCMetadata=P.getRPCMetadata=P.deleteRPCMetadata=P.RPCType=P.parseTraceParent=P.W3CTraceContextPropagator=P.TRACE_STATE_HEADER=P.TRACE_PARENT_HEADER=P.CompositePropagator=P.otperformance=P.getStringListFromEnv=P.getNumberFromEnv=P.getBooleanFromEnv=P.getStringFromEnv=P._globalThis=P.SDK_INFO=P.parseKeyPairsIntoRecord=P.ExportResultCode=P.unrefTimer=P.timeInputToHrTime=P.millisToHrTime=P.isTimeInputHrTime=P.isTimeInput=P.hrTimeToTimeStamp=P.hrTimeToSeconds=P.hrTimeToNanoseconds=P.hrTimeToMilliseconds=P.hrTimeToMicroseconds=P.hrTimeDuration=P.hrTime=P.getTimeOrigin=P.addHrTimes=P.loggingErrorHandler=P.setGlobalErrorHandler=P.globalErrorHandler=P.sanitizeAttributes=P.isAttributeValue=P.AnchoredClock=P.W3CBaggagePropagator=void 0;P.internal=void 0;var aRe=lV();Object.defineProperty(P,"W3CBaggagePropagator",{enumerable:!0,get:function(){return aRe.W3CBaggagePropagator}});var sRe=pV();Object.defineProperty(P,"AnchoredClock",{enumerable:!0,get:function(){return sRe.AnchoredClock}});var MF=EV();Object.defineProperty(P,"isAttributeValue",{enumerable:!0,get:function(){return MF.isAttributeValue}});Object.defineProperty(P,"sanitizeAttributes",{enumerable:!0,get:function(){return MF.sanitizeAttributes}});var IF=TV();Object.defineProperty(P,"globalErrorHandler",{enumerable:!0,get:function(){return IF.globalErrorHandler}});Object.defineProperty(P,"setGlobalErrorHandler",{enumerable:!0,get:function(){return IF.setGlobalErrorHandler}});var cRe=VS();Object.defineProperty(P,"loggingErrorHandler",{enumerable:!0,get:function(){return cRe.loggingErrorHandler}});var Gt=Zq();Object.defineProperty(P,"addHrTimes",{enumerable:!0,get:function(){return Gt.addHrTimes}});Object.defineProperty(P,"getTimeOrigin",{enumerable:!0,get:function(){return Gt.getTimeOrigin}});Object.defineProperty(P,"hrTime",{enumerable:!0,get:function(){return Gt.hrTime}});Object.defineProperty(P,"hrTimeDuration",{enumerable:!0,get:function(){return Gt.hrTimeDuration}});Object.defineProperty(P,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Gt.hrTimeToMicroseconds}});Object.defineProperty(P,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Gt.hrTimeToMilliseconds}});Object.defineProperty(P,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Gt.hrTimeToNanoseconds}});Object.defineProperty(P,"hrTimeToSeconds",{enumerable:!0,get:function(){return Gt.hrTimeToSeconds}});Object.defineProperty(P,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Gt.hrTimeToTimeStamp}});Object.defineProperty(P,"isTimeInput",{enumerable:!0,get:function(){return Gt.isTimeInput}});Object.defineProperty(P,"isTimeInputHrTime",{enumerable:!0,get:function(){return Gt.isTimeInputHrTime}});Object.defineProperty(P,"millisToHrTime",{enumerable:!0,get:function(){return Gt.millisToHrTime}});Object.defineProperty(P,"timeInputToHrTime",{enumerable:!0,get:function(){return Gt.timeInputToHrTime}});var uRe=eF();Object.defineProperty(P,"unrefTimer",{enumerable:!0,get:function(){return uRe.unrefTimer}});var lRe=tF();Object.defineProperty(P,"ExportResultCode",{enumerable:!0,get:function(){return lRe.ExportResultCode}});var pRe=CS();Object.defineProperty(P,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return pRe.parseKeyPairsIntoRecord}});var Uo=BS();Object.defineProperty(P,"SDK_INFO",{enumerable:!0,get:function(){return Uo.SDK_INFO}});Object.defineProperty(P,"_globalThis",{enumerable:!0,get:function(){return Uo._globalThis}});Object.defineProperty(P,"getStringFromEnv",{enumerable:!0,get:function(){return Uo.getStringFromEnv}});Object.defineProperty(P,"getBooleanFromEnv",{enumerable:!0,get:function(){return Uo.getBooleanFromEnv}});Object.defineProperty(P,"getNumberFromEnv",{enumerable:!0,get:function(){return Uo.getNumberFromEnv}});Object.defineProperty(P,"getStringListFromEnv",{enumerable:!0,get:function(){return Uo.getStringListFromEnv}});Object.defineProperty(P,"otperformance",{enumerable:!0,get:function(){return Uo.otperformance}});var dRe=nF();Object.defineProperty(P,"CompositePropagator",{enumerable:!0,get:function(){return dRe.CompositePropagator}});var Sd=uF();Object.defineProperty(P,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return Sd.TRACE_PARENT_HEADER}});Object.defineProperty(P,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return Sd.TRACE_STATE_HEADER}});Object.defineProperty(P,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return Sd.W3CTraceContextPropagator}});Object.defineProperty(P,"parseTraceParent",{enumerable:!0,get:function(){return Sd.parseTraceParent}});var vd=lF();Object.defineProperty(P,"RPCType",{enumerable:!0,get:function(){return vd.RPCType}});Object.defineProperty(P,"deleteRPCMetadata",{enumerable:!0,get:function(){return vd.deleteRPCMetadata}});Object.defineProperty(P,"getRPCMetadata",{enumerable:!0,get:function(){return vd.getRPCMetadata}});Object.defineProperty(P,"setRPCMetadata",{enumerable:!0,get:function(){return vd.setRPCMetadata}});var XS=Ks();Object.defineProperty(P,"isTracingSuppressed",{enumerable:!0,get:function(){return XS.isTracingSuppressed}});Object.defineProperty(P,"suppressTracing",{enumerable:!0,get:function(){return XS.suppressTracing}});Object.defineProperty(P,"unsuppressTracing",{enumerable:!0,get:function(){return XS.unsuppressTracing}});var fRe=FS();Object.defineProperty(P,"TraceState",{enumerable:!0,get:function(){return fRe.TraceState}});var _Re=vF();Object.defineProperty(P,"merge",{enumerable:!0,get:function(){return _Re.merge}});var LF=gF();Object.defineProperty(P,"TimeoutError",{enumerable:!0,get:function(){return LF.TimeoutError}});Object.defineProperty(P,"callWithTimeout",{enumerable:!0,get:function(){return LF.callWithTimeout}});var CF=AF();Object.defineProperty(P,"isUrlIgnored",{enumerable:!0,get:function(){return CF.isUrlIgnored}});Object.defineProperty(P,"urlMatches",{enumerable:!0,get:function(){return CF.urlMatches}});var mRe=bF();Object.defineProperty(P,"BindOnceFuture",{enumerable:!0,get:function(){return mRe.BindOnceFuture}});var ERe=RF();Object.defineProperty(P,"diagLogLevelFromString",{enumerable:!0,get:function(){return ERe.diagLogLevelFromString}});var hRe=NF();P.internal={_export:hRe._export}});var Zs=_(kn=>{"use strict";l();Object.defineProperty(kn,"__esModule",{value:!0});kn.isTracingSuppressed=kn.unsuppressTracing=kn.suppressTracing=void 0;var TRe=(L(),N(C)),JS=(0,TRe.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function SRe(t){return t.setValue(JS,!0)}kn.suppressTracing=SRe;function vRe(t){return t.deleteValue(JS)}kn.unsuppressTracing=vRe;function gRe(t){return t.getValue(JS)===!0}kn.isTracingSuppressed=gRe});var QS=_(mt=>{"use strict";l();Object.defineProperty(mt,"__esModule",{value:!0});mt.BAGGAGE_MAX_TOTAL_LENGTH=mt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=mt.BAGGAGE_MAX_NAME_VALUE_PAIRS=mt.BAGGAGE_HEADER=mt.BAGGAGE_ITEMS_SEPARATOR=mt.BAGGAGE_PROPERTIES_SEPARATOR=mt.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;mt.BAGGAGE_KEY_PAIR_SEPARATOR="=";mt.BAGGAGE_PROPERTIES_SEPARATOR=";";mt.BAGGAGE_ITEMS_SEPARATOR=",";mt.BAGGAGE_HEADER="baggage";mt.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;mt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;mt.BAGGAGE_MAX_TOTAL_LENGTH=8192});var ZS=_(Dr=>{"use strict";l();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.parseKeyPairsIntoRecord=Dr.parsePairKeyValue=Dr.getKeyPairs=Dr.serializeKeyPairs=void 0;var yRe=(L(),N(C)),Vo=QS();function ARe(t){return t.reduce((e,n)=>{let i=`${e}${e!==""?Vo.BAGGAGE_ITEMS_SEPARATOR:""}${n}`;return i.length>Vo.BAGGAGE_MAX_TOTAL_LENGTH?e:i},"")}Dr.serializeKeyPairs=ARe;function xRe(t){return t.getAllEntries().map(([e,n])=>{let i=`${encodeURIComponent(e)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(i+=Vo.BAGGAGE_PROPERTIES_SEPARATOR+n.metadata.toString()),i})}Dr.getKeyPairs=xRe;function VF(t){let e=t.split(Vo.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let n=e.shift();if(!n)return;let i=n.indexOf(Vo.BAGGAGE_KEY_PAIR_SEPARATOR);if(i<=0)return;let a=decodeURIComponent(n.substring(0,i).trim()),c=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=(0,yRe.baggageEntryMetadataFromString)(e.join(Vo.BAGGAGE_PROPERTIES_SEPARATOR))),{key:a,value:c,metadata:o}}Dr.parsePairKeyValue=VF;function bRe(t){return typeof t!="string"||t.length===0?{}:t.split(Vo.BAGGAGE_ITEMS_SEPARATOR).map(e=>VF(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,n)=>(e[n.key]=n.value,e),{})}Dr.parseKeyPairsIntoRecord=bRe});var kF=_(gd=>{"use strict";l();Object.defineProperty(gd,"__esModule",{value:!0});gd.W3CBaggagePropagator=void 0;var ev=(L(),N(C)),ORe=Zs(),ko=QS(),tv=ZS(),rv=class{inject(e,n,i){let a=ev.propagation.getBaggage(e);if(!a||(0,ORe.isTracingSuppressed)(e))return;let c=(0,tv.getKeyPairs)(a).filter(r=>r.length<=ko.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,ko.BAGGAGE_MAX_NAME_VALUE_PAIRS),o=(0,tv.serializeKeyPairs)(c);o.length>0&&i.set(n,ko.BAGGAGE_HEADER,o)}extract(e,n,i){let a=i.get(n,ko.BAGGAGE_HEADER),c=Array.isArray(a)?a.join(ko.BAGGAGE_ITEMS_SEPARATOR):a;if(!c)return e;let o={};return c.length===0||(c.split(ko.BAGGAGE_ITEMS_SEPARATOR).forEach(s=>{let u=(0,tv.parsePairKeyValue)(s);if(u){let p={value:u.value};u.metadata&&(p.metadata=u.metadata),o[u.key]=p}}),Object.entries(o).length===0)?e:ev.propagation.setBaggage(e,ev.propagation.createBaggage(o))}fields(){return[ko.BAGGAGE_HEADER]}};gd.W3CBaggagePropagator=rv});var BF=_(yd=>{"use strict";l();Object.defineProperty(yd,"__esModule",{value:!0});yd.AnchoredClock=void 0;var nv=class{constructor(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};yd.AnchoredClock=nv});var FF=_(Bn=>{"use strict";l();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.isAttributeValue=Bn.isAttributeKey=Bn.sanitizeAttributes=void 0;var GF=(L(),N(C));function RRe(t){let e={};if(typeof t!="object"||t==null)return e;for(let[n,i]of Object.entries(t)){if(!jF(n)){GF.diag.warn(`Invalid attribute key: ${n}`);continue}if(!HF(i)){GF.diag.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(i)?e[n]=i.slice():e[n]=i}return e}Bn.sanitizeAttributes=RRe;function jF(t){return typeof t=="string"&&t.length>0}Bn.isAttributeKey=jF;function HF(t){return t==null?!0:Array.isArray(t)?PRe(t):qF(t)}Bn.isAttributeValue=HF;function PRe(t){let e;for(let n of t)if(n!=null){if(!e){if(qF(n)){e=typeof n;continue}return!1}if(typeof n!==e)return!1}return!0}function qF(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var ov=_(Ad=>{"use strict";l();Object.defineProperty(Ad,"__esModule",{value:!0});Ad.loggingErrorHandler=void 0;var NRe=(L(),N(C));function MRe(){return t=>{NRe.diag.error(IRe(t))}}Ad.loggingErrorHandler=MRe;function IRe(t){return typeof t=="string"?t:JSON.stringify(LRe(t))}function LRe(t){let e={},n=t;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(i=>{if(e[i])return;let a=n[i];a&&(e[i]=String(a))}),n=Object.getPrototypeOf(n);return e}});var iv=_(Ea=>{"use strict";l();Object.defineProperty(Ea,"__esModule",{value:!0});Ea.globalErrorHandler=Ea.setGlobalErrorHandler=void 0;var CRe=ov(),YF=(0,CRe.loggingErrorHandler)();function wRe(t){YF=t}Ea.setGlobalErrorHandler=wRe;function DRe(t){try{YF(t)}catch{}}Ea.globalErrorHandler=DRe});var av=_(ec=>{"use strict";l();Object.defineProperty(ec,"__esModule",{value:!0});ec.TracesSamplerValues=void 0;var URe;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(URe=ec.TracesSamplerValues||(ec.TracesSamplerValues={}))});var sv=_(Oe=>{"use strict";l();Object.defineProperty(Oe,"__esModule",{value:!0});Oe.parseEnvironment=Oe.DEFAULT_ENVIRONMENT=Oe.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=Oe.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT=Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Gn=(L(),N(C)),VRe=av(),kRe=",",BRe=["OTEL_SDK_DISABLED"];function GRe(t){return BRe.indexOf(t)>-1}var jRe=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function HRe(t){return jRe.indexOf(t)>-1}var qRe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function FRe(t){return qRe.indexOf(t)>-1}Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;Oe.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;Oe.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;Oe.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Gn.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Oe.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Oe.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:VRe.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function YRe(t,e,n){if(typeof n[t]>"u")return;let i=String(n[t]);e[t]=i.toLowerCase()==="true"}function KRe(t,e,n,i=-1/0,a=1/0){if(typeof n[t]<"u"){let c=Number(n[t]);isNaN(c)||(c<i?e[t]=i:c>a?e[t]=a:e[t]=c)}}function $Re(t,e,n,i=kRe){let a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(c=>c.trim()))}var zRe={ALL:Gn.DiagLogLevel.ALL,VERBOSE:Gn.DiagLogLevel.VERBOSE,DEBUG:Gn.DiagLogLevel.DEBUG,INFO:Gn.DiagLogLevel.INFO,WARN:Gn.DiagLogLevel.WARN,ERROR:Gn.DiagLogLevel.ERROR,NONE:Gn.DiagLogLevel.NONE};function WRe(t,e,n){let i=n[t];if(typeof i=="string"){let a=zRe[i.toUpperCase()];a!=null&&(e[t]=a)}}function XRe(t){let e={};for(let n in Oe.DEFAULT_ENVIRONMENT){let i=n;switch(i){case"OTEL_LOG_LEVEL":WRe(i,e,t);break;default:if(GRe(i))YRe(i,e,t);else if(HRe(i))KRe(i,e,t);else if(FRe(i))$Re(i,e,t);else{let a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}Oe.parseEnvironment=XRe});var KF=_(ha=>{"use strict";l();Object.defineProperty(ha,"__esModule",{value:!0});ha.getEnvWithoutDefaults=ha.getEnv=void 0;var cv=sv();function JRe(){let t=(0,cv.parseEnvironment)(process.env);return Object.assign({},cv.DEFAULT_ENVIRONMENT,t)}ha.getEnv=JRe;function QRe(){return(0,cv.parseEnvironment)(process.env)}ha.getEnvWithoutDefaults=QRe});var $F=_(xd=>{"use strict";l();Object.defineProperty(xd,"__esModule",{value:!0});xd._globalThis=void 0;xd._globalThis=typeof globalThis=="object"?globalThis:global});var uv=_(bd=>{"use strict";l();Object.defineProperty(bd,"__esModule",{value:!0});bd.hexToBinary=void 0;function zF(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function ZRe(t){let e=new Uint8Array(t.length/2),n=0;for(let i=0;i<t.length;i+=2){let a=zF(t.charCodeAt(i)),c=zF(t.charCodeAt(i+1));e[n++]=a<<4|c}return e}bd.hexToBinary=ZRe});var WF=_(Od=>{"use strict";l();Object.defineProperty(Od,"__esModule",{value:!0});Od.hexToBase64=void 0;var ePe=uv();function tPe(t){return Buffer.from((0,ePe.hexToBinary)(t)).toString("base64")}Od.hexToBase64=tPe});var QF=_(Pd=>{"use strict";l();Object.defineProperty(Pd,"__esModule",{value:!0});Pd.RandomIdGenerator=void 0;var rPe=8,JF=16,lv=class{constructor(){this.generateTraceId=XF(JF),this.generateSpanId=XF(rPe)}};Pd.RandomIdGenerator=lv;var Rd=Buffer.allocUnsafe(JF);function XF(t){return function(){for(let n=0;n<t/4;n++)Rd.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<t&&!(Rd[n]>0);n++)n===t-1&&(Rd[t-1]=1);return Rd.toString("hex",0,t)}}});var ZF=_(Nd=>{"use strict";l();Object.defineProperty(Nd,"__esModule",{value:!0});Nd.otperformance=void 0;var nPe=q("perf_hooks");Nd.otperformance=nPe.performance});var pv=_(Md=>{"use strict";l();Object.defineProperty(Md,"__esModule",{value:!0});Md.VERSION=void 0;Md.VERSION="1.30.0"});var e3=_(Id=>{"use strict";l();Object.defineProperty(Id,"__esModule",{value:!0});Id.SDK_INFO=void 0;var oPe=pv(),tc=(ot(),N(nt));Id.SDK_INFO={[tc.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[tc.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[tc.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:tc.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[tc.SEMRESATTRS_TELEMETRY_SDK_VERSION]:oPe.VERSION}});var t3=_(Ld=>{"use strict";l();Object.defineProperty(Ld,"__esModule",{value:!0});Ld.unrefTimer=void 0;function iPe(t){t.unref()}Ld.unrefTimer=iPe});var n3=_(Xe=>{"use strict";l();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.unrefTimer=Xe.SDK_INFO=Xe.otperformance=Xe.RandomIdGenerator=Xe.hexToBase64=Xe._globalThis=Xe.getEnv=Xe.getEnvWithoutDefaults=void 0;var r3=KF();Object.defineProperty(Xe,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return r3.getEnvWithoutDefaults}});Object.defineProperty(Xe,"getEnv",{enumerable:!0,get:function(){return r3.getEnv}});var aPe=$F();Object.defineProperty(Xe,"_globalThis",{enumerable:!0,get:function(){return aPe._globalThis}});var sPe=WF();Object.defineProperty(Xe,"hexToBase64",{enumerable:!0,get:function(){return sPe.hexToBase64}});var cPe=QF();Object.defineProperty(Xe,"RandomIdGenerator",{enumerable:!0,get:function(){return cPe.RandomIdGenerator}});var uPe=ZF();Object.defineProperty(Xe,"otperformance",{enumerable:!0,get:function(){return uPe.otperformance}});var lPe=e3();Object.defineProperty(Xe,"SDK_INFO",{enumerable:!0,get:function(){return lPe.SDK_INFO}});var pPe=t3();Object.defineProperty(Xe,"unrefTimer",{enumerable:!0,get:function(){return pPe.unrefTimer}})});var dv=_(Je=>{"use strict";l();Object.defineProperty(Je,"__esModule",{value:!0});Je.unrefTimer=Je.otperformance=Je.hexToBase64=Je.getEnvWithoutDefaults=Je.getEnv=Je._globalThis=Je.SDK_INFO=Je.RandomIdGenerator=void 0;var jn=n3();Object.defineProperty(Je,"RandomIdGenerator",{enumerable:!0,get:function(){return jn.RandomIdGenerator}});Object.defineProperty(Je,"SDK_INFO",{enumerable:!0,get:function(){return jn.SDK_INFO}});Object.defineProperty(Je,"_globalThis",{enumerable:!0,get:function(){return jn._globalThis}});Object.defineProperty(Je,"getEnv",{enumerable:!0,get:function(){return jn.getEnv}});Object.defineProperty(Je,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return jn.getEnvWithoutDefaults}});Object.defineProperty(Je,"hexToBase64",{enumerable:!0,get:function(){return jn.hexToBase64}});Object.defineProperty(Je,"otperformance",{enumerable:!0,get:function(){return jn.otperformance}});Object.defineProperty(Je,"unrefTimer",{enumerable:!0,get:function(){return jn.unrefTimer}})});var s3=_(Te=>{"use strict";l();Object.defineProperty(Te,"__esModule",{value:!0});Te.addHrTimes=Te.isTimeInput=Te.isTimeInputHrTime=Te.hrTimeToMicroseconds=Te.hrTimeToMilliseconds=Te.hrTimeToNanoseconds=Te.hrTimeToTimeStamp=Te.hrTimeDuration=Te.timeInputToHrTime=Te.hrTime=Te.getTimeOrigin=Te.millisToHrTime=void 0;var fv=dv(),o3=9,dPe=6,fPe=Math.pow(10,dPe),Cd=Math.pow(10,o3);function rc(t){let e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*fPe);return[n,i]}Te.millisToHrTime=rc;function _v(){let t=fv.otperformance.timeOrigin;if(typeof t!="number"){let e=fv.otperformance;t=e.timing&&e.timing.fetchStart}return t}Te.getTimeOrigin=_v;function i3(t){let e=rc(_v()),n=rc(typeof t=="number"?t:fv.otperformance.now());return a3(e,n)}Te.hrTime=i3;function _Pe(t){if(mv(t))return t;if(typeof t=="number")return t<_v()?i3(t):rc(t);if(t instanceof Date)return rc(t.getTime());throw TypeError("Invalid input type")}Te.timeInputToHrTime=_Pe;function mPe(t,e){let n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=Cd),[n,i]}Te.hrTimeDuration=mPe;function EPe(t){let e=o3,n=`${"0".repeat(e)}${t[1]}Z`,i=n.substring(n.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",i)}Te.hrTimeToTimeStamp=EPe;function hPe(t){return t[0]*Cd+t[1]}Te.hrTimeToNanoseconds=hPe;function TPe(t){return t[0]*1e3+t[1]/1e6}Te.hrTimeToMilliseconds=TPe;function SPe(t){return t[0]*1e6+t[1]/1e3}Te.hrTimeToMicroseconds=SPe;function mv(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Te.isTimeInputHrTime=mv;function vPe(t){return mv(t)||typeof t=="number"||t instanceof Date}Te.isTimeInput=vPe;function a3(t,e){let n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Cd&&(n[1]-=Cd,n[0]+=1),n}Te.addHrTimes=a3});var c3=_(nc=>{"use strict";l();Object.defineProperty(nc,"__esModule",{value:!0});nc.ExportResultCode=void 0;var gPe;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(gPe=nc.ExportResultCode||(nc.ExportResultCode={}))});var l3=_(wd=>{"use strict";l();Object.defineProperty(wd,"__esModule",{value:!0});wd.CompositePropagator=void 0;var u3=(L(),N(C)),Ev=class{constructor(e={}){var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(i=>typeof i.fields=="function"?i.fields():[]).reduce((i,a)=>i.concat(a),[])))}inject(e,n,i){for(let a of this._propagators)try{a.inject(e,n,i)}catch(c){u3.diag.warn(`Failed to inject with ${a.constructor.name}. Err: ${c.message}`)}}extract(e,n,i){return this._propagators.reduce((a,c)=>{try{return c.extract(a,n,i)}catch(o){u3.diag.warn(`Failed to extract with ${c.constructor.name}. Err: ${o.message}`)}return a},e)}fields(){return this._fields.slice()}};wd.CompositePropagator=Ev});var p3=_(Ta=>{"use strict";l();Object.defineProperty(Ta,"__esModule",{value:!0});Ta.validateValue=Ta.validateKey=void 0;var hv="[_0-9a-z-*/]",yPe=`[a-z]${hv}{0,255}`,APe=`[a-z0-9]${hv}{0,240}@[a-z]${hv}{0,13}`,xPe=new RegExp(`^(?:${yPe}|${APe})$`),bPe=/^[ -~]{0,255}[!-~]$/,OPe=/,|=/;function RPe(t){return xPe.test(t)}Ta.validateKey=RPe;function PPe(t){return bPe.test(t)&&!OPe.test(t)}Ta.validateValue=PPe});var Sv=_(Dd=>{"use strict";l();Object.defineProperty(Dd,"__esModule",{value:!0});Dd.TraceState=void 0;var d3=p3(),f3=32,NPe=512,_3=",",m3="=",Tv=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,n){let i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i}unset(e){let n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,n)=>(e.push(n+m3+this.get(n)),e),[]).join(_3)}_parse(e){e.length>NPe||(this._internalState=e.split(_3).reverse().reduce((n,i)=>{let a=i.trim(),c=a.indexOf(m3);if(c!==-1){let o=a.slice(0,c),r=a.slice(c+1,i.length);(0,d3.validateKey)(o)&&(0,d3.validateValue)(r)&&n.set(o,r)}return n},new Map),this._internalState.size>f3&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,f3))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};Dd.TraceState=Tv});var h3=_(Et=>{"use strict";l();Object.defineProperty(Et,"__esModule",{value:!0});Et.W3CTraceContextPropagator=Et.parseTraceParent=Et.TRACE_STATE_HEADER=Et.TRACE_PARENT_HEADER=void 0;var Ud=(L(),N(C)),MPe=Zs(),IPe=Sv();Et.TRACE_PARENT_HEADER="traceparent";Et.TRACE_STATE_HEADER="tracestate";var LPe="00",CPe="(?!ff)[\\da-f]{2}",wPe="(?![0]{32})[\\da-f]{32}",DPe="(?![0]{16})[\\da-f]{16}",UPe="[\\da-f]{2}",VPe=new RegExp(`^\\s?(${CPe})-(${wPe})-(${DPe})-(${UPe})(-.*)?\\s?$`);function E3(t){let e=VPe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}Et.parseTraceParent=E3;var vv=class{inject(e,n,i){let a=Ud.trace.getSpanContext(e);if(!a||(0,MPe.isTracingSuppressed)(e)||!(0,Ud.isSpanContextValid)(a))return;let c=`${LPe}-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||Ud.TraceFlags.NONE).toString(16)}`;i.set(n,Et.TRACE_PARENT_HEADER,c),a.traceState&&i.set(n,Et.TRACE_STATE_HEADER,a.traceState.serialize())}extract(e,n,i){let a=i.get(n,Et.TRACE_PARENT_HEADER);if(!a)return e;let c=Array.isArray(a)?a[0]:a;if(typeof c!="string")return e;let o=E3(c);if(!o)return e;o.isRemote=!0;let r=i.get(n,Et.TRACE_STATE_HEADER);if(r){let s=Array.isArray(r)?r.join(","):r;o.traceState=new IPe.TraceState(typeof s=="string"?s:void 0)}return Ud.trace.setSpanContext(e,o)}fields(){return[Et.TRACE_PARENT_HEADER,Et.TRACE_STATE_HEADER]}};Et.W3CTraceContextPropagator=vv});var T3=_(_r=>{"use strict";l();Object.defineProperty(_r,"__esModule",{value:!0});_r.getRPCMetadata=_r.deleteRPCMetadata=_r.setRPCMetadata=_r.RPCType=void 0;var kPe=(L(),N(C)),gv=(0,kPe.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),BPe;(function(t){t.HTTP="http"})(BPe=_r.RPCType||(_r.RPCType={}));function GPe(t,e){return t.setValue(gv,e)}_r.setRPCMetadata=GPe;function jPe(t){return t.deleteValue(gv)}_r.deleteRPCMetadata=jPe;function HPe(t){return t.getValue(gv)}_r.getRPCMetadata=HPe});var Av=_(Vd=>{"use strict";l();Object.defineProperty(Vd,"__esModule",{value:!0});Vd.AlwaysOffSampler=void 0;var qPe=(L(),N(C)),yv=class{shouldSample(){return{decision:qPe.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Vd.AlwaysOffSampler=yv});var bv=_(kd=>{"use strict";l();Object.defineProperty(kd,"__esModule",{value:!0});kd.AlwaysOnSampler=void 0;var FPe=(L(),N(C)),xv=class{shouldSample(){return{decision:FPe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};kd.AlwaysOnSampler=xv});var v3=_(Gd=>{"use strict";l();Object.defineProperty(Gd,"__esModule",{value:!0});Gd.ParentBasedSampler=void 0;var Bd=(L(),N(C)),YPe=iv(),S3=Av(),Ov=bv(),Rv=class{constructor(e){var n,i,a,c;this._root=e.root,this._root||((0,YPe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ov.AlwaysOnSampler),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Ov.AlwaysOnSampler,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new S3.AlwaysOffSampler,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Ov.AlwaysOnSampler,this._localParentNotSampled=(c=e.localParentNotSampled)!==null&&c!==void 0?c:new S3.AlwaysOffSampler}shouldSample(e,n,i,a,c,o){let r=Bd.trace.getSpanContext(e);return!r||!(0,Bd.isSpanContextValid)(r)?this._root.shouldSample(e,n,i,a,c,o):r.isRemote?r.traceFlags&Bd.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,c,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,c,o):r.traceFlags&Bd.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,c,o):this._localParentNotSampled.shouldSample(e,n,i,a,c,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};Gd.ParentBasedSampler=Rv});var g3=_(jd=>{"use strict";l();Object.defineProperty(jd,"__esModule",{value:!0});jd.TraceIdRatioBasedSampler=void 0;var Pv=(L(),N(C)),Nv=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,n){return{decision:(0,Pv.isValidTraceId)(n)&&this._accumulate(n)<this._upperBound?Pv.SamplingDecision.RECORD_AND_SAMPLED:Pv.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let n=0;for(let i=0;i<e.length/8;i++){let a=i*8,c=parseInt(e.slice(a,a+8),16);n=(n^c)>>>0}return n}};jd.TraceIdRatioBasedSampler=Nv});var O3=_(Hd=>{"use strict";l();Object.defineProperty(Hd,"__esModule",{value:!0});Hd.isPlainObject=void 0;var KPe="[object Object]",$Pe="[object Null]",zPe="[object Undefined]",WPe=Function.prototype,y3=WPe.toString,XPe=y3.call(Object),JPe=QPe(Object.getPrototypeOf,Object),A3=Object.prototype,x3=A3.hasOwnProperty,Bo=Symbol?Symbol.toStringTag:void 0,b3=A3.toString;function QPe(t,e){return function(n){return t(e(n))}}function ZPe(t){if(!eNe(t)||tNe(t)!==KPe)return!1;let e=JPe(t);if(e===null)return!0;let n=x3.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&y3.call(n)===XPe}Hd.isPlainObject=ZPe;function eNe(t){return t!=null&&typeof t=="object"}function tNe(t){return t==null?t===void 0?zPe:$Pe:Bo&&Bo in Object(t)?rNe(t):nNe(t)}function rNe(t){let e=x3.call(t,Bo),n=t[Bo],i=!1;try{t[Bo]=void 0,i=!0}catch{}let a=b3.call(t);return i&&(e?t[Bo]=n:delete t[Bo]),a}function nNe(t){return b3.call(t)}});var I3=_(Yd=>{"use strict";l();Object.defineProperty(Yd,"__esModule",{value:!0});Yd.merge=void 0;var R3=O3(),oNe=20;function iNe(...t){let e=t.shift(),n=new WeakMap;for(;t.length>0;)e=N3(e,t.shift(),0,n);return e}Yd.merge=iNe;function Mv(t){return Fd(t)?t.slice():t}function N3(t,e,n=0,i){let a;if(!(n>oNe)){if(n++,qd(t)||qd(e)||M3(e))a=Mv(e);else if(Fd(t)){if(a=t.slice(),Fd(e))for(let c=0,o=e.length;c<o;c++)a.push(Mv(e[c]));else if(oc(e)){let c=Object.keys(e);for(let o=0,r=c.length;o<r;o++){let s=c[o];a[s]=Mv(e[s])}}}else if(oc(t))if(oc(e)){if(!aNe(t,e))return e;a=Object.assign({},t);let c=Object.keys(e);for(let o=0,r=c.length;o<r;o++){let s=c[o],u=e[s];if(qd(u))typeof u>"u"?delete a[s]:a[s]=u;else{let p=a[s],S=u;if(P3(t,s,i)||P3(e,s,i))delete a[s];else{if(oc(p)&&oc(S)){let A=i.get(p)||[],O=i.get(S)||[];A.push({obj:t,key:s}),O.push({obj:e,key:s}),i.set(p,A),i.set(S,O)}a[s]=N3(a[s],u,n,i)}}}}else a=e;return a}}function P3(t,e,n){let i=n.get(t[e])||[];for(let a=0,c=i.length;a<c;a++){let o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function Fd(t){return Array.isArray(t)}function M3(t){return typeof t=="function"}function oc(t){return!qd(t)&&!Fd(t)&&!M3(t)&&typeof t=="object"}function qd(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function aNe(t,e){return!(!(0,R3.isPlainObject)(t)||!(0,R3.isPlainObject)(e))}});var L3=_(Sa=>{"use strict";l();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.callWithTimeout=Sa.TimeoutError=void 0;var Kd=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Sa.TimeoutError=Kd;function sNe(t,e){let n,i=new Promise(function(c,o){n=setTimeout(function(){o(new Kd("Operation timed out."))},e)});return Promise.race([t,i]).then(a=>(clearTimeout(n),a),a=>{throw clearTimeout(n),a})}Sa.callWithTimeout=sNe});var w3=_(va=>{"use strict";l();Object.defineProperty(va,"__esModule",{value:!0});va.isUrlIgnored=va.urlMatches=void 0;function C3(t,e){return typeof e=="string"?t===e:!!t.match(e)}va.urlMatches=C3;function cNe(t,e){if(!e)return!1;for(let n of e)if(C3(t,n))return!0;return!1}va.isUrlIgnored=cNe});var D3=_($d=>{"use strict";l();Object.defineProperty($d,"__esModule",{value:!0});$d.isWrapped=void 0;function uNe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}$d.isWrapped=uNe});var U3=_(zd=>{"use strict";l();Object.defineProperty(zd,"__esModule",{value:!0});zd.Deferred=void 0;var Iv=class{constructor(){this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};zd.Deferred=Iv});var V3=_(Wd=>{"use strict";l();Object.defineProperty(Wd,"__esModule",{value:!0});Wd.BindOnceFuture=void 0;var lNe=U3(),Lv=class{constructor(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new lNe.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}};Wd.BindOnceFuture=Lv});var B3=_(Xd=>{"use strict";l();Object.defineProperty(Xd,"__esModule",{value:!0});Xd._export=void 0;var k3=(L(),N(C)),pNe=Zs();function dNe(t,e){return new Promise(n=>{k3.context.with((0,pNe.suppressTracing)(k3.context.active()),()=>{t.export(e,i=>{n(i)})})})}Xd._export=dNe});var jt=_(b=>{"use strict";l();Object.defineProperty(b,"__esModule",{value:!0});b.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=b.DEFAULT_ATTRIBUTE_COUNT_LIMIT=b.TraceState=b.unsuppressTracing=b.suppressTracing=b.isTracingSuppressed=b.TraceIdRatioBasedSampler=b.ParentBasedSampler=b.AlwaysOnSampler=b.AlwaysOffSampler=b.setRPCMetadata=b.getRPCMetadata=b.deleteRPCMetadata=b.RPCType=b.parseTraceParent=b.W3CTraceContextPropagator=b.TRACE_STATE_HEADER=b.TRACE_PARENT_HEADER=b.CompositePropagator=b.unrefTimer=b.otperformance=b.hexToBase64=b.getEnvWithoutDefaults=b.getEnv=b._globalThis=b.SDK_INFO=b.RandomIdGenerator=b.baggageUtils=b.ExportResultCode=b.hexToBinary=b.timeInputToHrTime=b.millisToHrTime=b.isTimeInputHrTime=b.isTimeInput=b.hrTimeToTimeStamp=b.hrTimeToNanoseconds=b.hrTimeToMilliseconds=b.hrTimeToMicroseconds=b.hrTimeDuration=b.hrTime=b.getTimeOrigin=b.addHrTimes=b.loggingErrorHandler=b.setGlobalErrorHandler=b.globalErrorHandler=b.sanitizeAttributes=b.isAttributeValue=b.isAttributeKey=b.AnchoredClock=b.W3CBaggagePropagator=void 0;b.internal=b.VERSION=b.BindOnceFuture=b.isWrapped=b.urlMatches=b.isUrlIgnored=b.callWithTimeout=b.TimeoutError=b.TracesSamplerValues=b.merge=b.parseEnvironment=b.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=b.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=b.DEFAULT_ENVIRONMENT=void 0;var fNe=kF();Object.defineProperty(b,"W3CBaggagePropagator",{enumerable:!0,get:function(){return fNe.W3CBaggagePropagator}});var _Ne=BF();Object.defineProperty(b,"AnchoredClock",{enumerable:!0,get:function(){return _Ne.AnchoredClock}});var Cv=FF();Object.defineProperty(b,"isAttributeKey",{enumerable:!0,get:function(){return Cv.isAttributeKey}});Object.defineProperty(b,"isAttributeValue",{enumerable:!0,get:function(){return Cv.isAttributeValue}});Object.defineProperty(b,"sanitizeAttributes",{enumerable:!0,get:function(){return Cv.sanitizeAttributes}});var G3=iv();Object.defineProperty(b,"globalErrorHandler",{enumerable:!0,get:function(){return G3.globalErrorHandler}});Object.defineProperty(b,"setGlobalErrorHandler",{enumerable:!0,get:function(){return G3.setGlobalErrorHandler}});var mNe=ov();Object.defineProperty(b,"loggingErrorHandler",{enumerable:!0,get:function(){return mNe.loggingErrorHandler}});var Qt=s3();Object.defineProperty(b,"addHrTimes",{enumerable:!0,get:function(){return Qt.addHrTimes}});Object.defineProperty(b,"getTimeOrigin",{enumerable:!0,get:function(){return Qt.getTimeOrigin}});Object.defineProperty(b,"hrTime",{enumerable:!0,get:function(){return Qt.hrTime}});Object.defineProperty(b,"hrTimeDuration",{enumerable:!0,get:function(){return Qt.hrTimeDuration}});Object.defineProperty(b,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Qt.hrTimeToMicroseconds}});Object.defineProperty(b,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Qt.hrTimeToMilliseconds}});Object.defineProperty(b,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Qt.hrTimeToNanoseconds}});Object.defineProperty(b,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Qt.hrTimeToTimeStamp}});Object.defineProperty(b,"isTimeInput",{enumerable:!0,get:function(){return Qt.isTimeInput}});Object.defineProperty(b,"isTimeInputHrTime",{enumerable:!0,get:function(){return Qt.isTimeInputHrTime}});Object.defineProperty(b,"millisToHrTime",{enumerable:!0,get:function(){return Qt.millisToHrTime}});Object.defineProperty(b,"timeInputToHrTime",{enumerable:!0,get:function(){return Qt.timeInputToHrTime}});var ENe=uv();Object.defineProperty(b,"hexToBinary",{enumerable:!0,get:function(){return ENe.hexToBinary}});var hNe=c3();Object.defineProperty(b,"ExportResultCode",{enumerable:!0,get:function(){return hNe.ExportResultCode}});var Jd=ZS();b.baggageUtils={getKeyPairs:Jd.getKeyPairs,serializeKeyPairs:Jd.serializeKeyPairs,parseKeyPairsIntoRecord:Jd.parseKeyPairsIntoRecord,parsePairKeyValue:Jd.parsePairKeyValue};var Hn=dv();Object.defineProperty(b,"RandomIdGenerator",{enumerable:!0,get:function(){return Hn.RandomIdGenerator}});Object.defineProperty(b,"SDK_INFO",{enumerable:!0,get:function(){return Hn.SDK_INFO}});Object.defineProperty(b,"_globalThis",{enumerable:!0,get:function(){return Hn._globalThis}});Object.defineProperty(b,"getEnv",{enumerable:!0,get:function(){return Hn.getEnv}});Object.defineProperty(b,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return Hn.getEnvWithoutDefaults}});Object.defineProperty(b,"hexToBase64",{enumerable:!0,get:function(){return Hn.hexToBase64}});Object.defineProperty(b,"otperformance",{enumerable:!0,get:function(){return Hn.otperformance}});Object.defineProperty(b,"unrefTimer",{enumerable:!0,get:function(){return Hn.unrefTimer}});var TNe=l3();Object.defineProperty(b,"CompositePropagator",{enumerable:!0,get:function(){return TNe.CompositePropagator}});var Qd=h3();Object.defineProperty(b,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return Qd.TRACE_PARENT_HEADER}});Object.defineProperty(b,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return Qd.TRACE_STATE_HEADER}});Object.defineProperty(b,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return Qd.W3CTraceContextPropagator}});Object.defineProperty(b,"parseTraceParent",{enumerable:!0,get:function(){return Qd.parseTraceParent}});var Zd=T3();Object.defineProperty(b,"RPCType",{enumerable:!0,get:function(){return Zd.RPCType}});Object.defineProperty(b,"deleteRPCMetadata",{enumerable:!0,get:function(){return Zd.deleteRPCMetadata}});Object.defineProperty(b,"getRPCMetadata",{enumerable:!0,get:function(){return Zd.getRPCMetadata}});Object.defineProperty(b,"setRPCMetadata",{enumerable:!0,get:function(){return Zd.setRPCMetadata}});var SNe=Av();Object.defineProperty(b,"AlwaysOffSampler",{enumerable:!0,get:function(){return SNe.AlwaysOffSampler}});var vNe=bv();Object.defineProperty(b,"AlwaysOnSampler",{enumerable:!0,get:function(){return vNe.AlwaysOnSampler}});var gNe=v3();Object.defineProperty(b,"ParentBasedSampler",{enumerable:!0,get:function(){return gNe.ParentBasedSampler}});var yNe=g3();Object.defineProperty(b,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return yNe.TraceIdRatioBasedSampler}});var wv=Zs();Object.defineProperty(b,"isTracingSuppressed",{enumerable:!0,get:function(){return wv.isTracingSuppressed}});Object.defineProperty(b,"suppressTracing",{enumerable:!0,get:function(){return wv.suppressTracing}});Object.defineProperty(b,"unsuppressTracing",{enumerable:!0,get:function(){return wv.unsuppressTracing}});var ANe=Sv();Object.defineProperty(b,"TraceState",{enumerable:!0,get:function(){return ANe.TraceState}});var ga=sv();Object.defineProperty(b,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return ga.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(b,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return ga.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(b,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return ga.DEFAULT_ENVIRONMENT}});Object.defineProperty(b,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return ga.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(b,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return ga.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(b,"parseEnvironment",{enumerable:!0,get:function(){return ga.parseEnvironment}});var xNe=I3();Object.defineProperty(b,"merge",{enumerable:!0,get:function(){return xNe.merge}});var bNe=av();Object.defineProperty(b,"TracesSamplerValues",{enumerable:!0,get:function(){return bNe.TracesSamplerValues}});var j3=L3();Object.defineProperty(b,"TimeoutError",{enumerable:!0,get:function(){return j3.TimeoutError}});Object.defineProperty(b,"callWithTimeout",{enumerable:!0,get:function(){return j3.callWithTimeout}});var H3=w3();Object.defineProperty(b,"isUrlIgnored",{enumerable:!0,get:function(){return H3.isUrlIgnored}});Object.defineProperty(b,"urlMatches",{enumerable:!0,get:function(){return H3.urlMatches}});var ONe=D3();Object.defineProperty(b,"isWrapped",{enumerable:!0,get:function(){return ONe.isWrapped}});var RNe=V3();Object.defineProperty(b,"BindOnceFuture",{enumerable:!0,get:function(){return RNe.BindOnceFuture}});var PNe=pv();Object.defineProperty(b,"VERSION",{enumerable:!0,get:function(){return PNe.VERSION}});var NNe=B3();b.internal={_export:NNe._export}});var ef=_(ic=>{"use strict";l();Object.defineProperty(ic,"__esModule",{value:!0});ic.AggregationTemporality=void 0;var MNe;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(MNe=ic.AggregationTemporality||(ic.AggregationTemporality={}))});var ya=_(ac=>{"use strict";l();Object.defineProperty(ac,"__esModule",{value:!0});ac.DataPointType=void 0;var INe;(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(INe=ac.DataPointType||(ac.DataPointType={}))});var mr=_(Ae=>{"use strict";l();Object.defineProperty(Ae,"__esModule",{value:!0});Ae.equalsCaseInsensitive=Ae.binarySearchUB=Ae.setEquals=Ae.FlatMap=Ae.isPromiseAllSettledRejectionResult=Ae.PromiseAllSettled=Ae.callWithTimeout=Ae.TimeoutError=Ae.instrumentationScopeId=Ae.hashAttributes=Ae.isNotNullish=void 0;function LNe(t){return t!=null}Ae.isNotNullish=LNe;function CNe(t){let e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(n=>[n,t[n]])))}Ae.hashAttributes=CNe;function wNe(t){var e,n;return`${t.name}:${(e=t.version)!==null&&e!==void 0?e:""}:${(n=t.schemaUrl)!==null&&n!==void 0?n:""}`}Ae.instrumentationScopeId=wNe;var tf=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Ae.TimeoutError=tf;function DNe(t,e){let n,i=new Promise(function(c,o){n=setTimeout(function(){o(new tf("Operation timed out."))},e)});return Promise.race([t,i]).then(a=>(clearTimeout(n),a),a=>{throw clearTimeout(n),a})}Ae.callWithTimeout=DNe;async function UNe(t){return Promise.all(t.map(async e=>{try{return{status:"fulfilled",value:await e}}catch(n){return{status:"rejected",reason:n}}}))}Ae.PromiseAllSettled=UNe;function VNe(t){return t.status==="rejected"}Ae.isPromiseAllSettledRejectionResult=VNe;function kNe(t,e){let n=[];return t.forEach(i=>{n.push(...e(i))}),n}Ae.FlatMap=kNe;function BNe(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}Ae.setEquals=BNe;function GNe(t,e){let n=0,i=t.length-1,a=t.length;for(;i>=n;){let c=n+Math.trunc((i-n)/2);t[c]<e?n=c+1:(a=c,i=c-1)}return a}Ae.binarySearchUB=GNe;function jNe(t,e){return t.toLowerCase()===e.toLowerCase()}Ae.equalsCaseInsensitive=jNe});var Aa=_(sc=>{"use strict";l();Object.defineProperty(sc,"__esModule",{value:!0});sc.AggregatorKind=void 0;var HNe;(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(HNe=sc.AggregatorKind||(sc.AggregatorKind={}))});var q3=_(rf=>{"use strict";l();Object.defineProperty(rf,"__esModule",{value:!0});rf.DropAggregator=void 0;var qNe=Aa(),Dv=class{constructor(){this.kind=qNe.AggregatorKind.DROP}createAccumulation(){}merge(e,n){}diff(e,n){}toMetricData(e,n,i,a){}};rf.DropAggregator=Dv});var sn=_(Ht=>{"use strict";l();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.isValidName=Ht.isDescriptorCompatibleWith=Ht.createInstrumentDescriptorWithView=Ht.createInstrumentDescriptor=Ht.InstrumentType=void 0;var F3=(L(),N(C)),FNe=mr(),YNe;(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(YNe=Ht.InstrumentType||(Ht.InstrumentType={}));function KNe(t,e,n){var i,a,c,o;return Y3(t)||F3.diag.warn(`Invalid metric name: "${t}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:t,type:e,description:(i=n?.description)!==null&&i!==void 0?i:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(c=n?.valueType)!==null&&c!==void 0?c:F3.ValueType.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}Ht.createInstrumentDescriptor=KNe;function $Ne(t,e){var n,i;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(i=t.description)!==null&&i!==void 0?i:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}Ht.createInstrumentDescriptorWithView=$Ne;function zNe(t,e){return(0,FNe.equalsCaseInsensitive)(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}Ht.isDescriptorCompatibleWith=zNe;var WNe=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function Y3(t){return t.match(WNe)!=null}Ht.isValidName=Y3});var K3=_(ba=>{"use strict";l();Object.defineProperty(ba,"__esModule",{value:!0});ba.HistogramAggregator=ba.HistogramAccumulation=void 0;var XNe=Aa(),JNe=ya(),nf=sn(),QNe=mr();function ZNe(t){let e=t.map(()=>0);return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var xa=class{constructor(e,n,i=!0,a=ZNe(n)){this.startTime=e,this._boundaries=n,this._recordMinMax=i,this._current=a}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let n=(0,QNe.binarySearchUB)(this._boundaries,e);this._current.buckets.counts[n]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};ba.HistogramAccumulation=xa;var Uv=class{constructor(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=XNe.AggregatorKind.HISTOGRAM}createAccumulation(e){return new xa(e,this._boundaries,this._recordMinMax)}merge(e,n){let i=e.toPointValue(),a=n.toPointValue(),c=i.buckets.counts,o=a.buckets.counts,r=new Array(c.length);for(let p=0;p<c.length;p++)r[p]=c[p]+o[p];let s=1/0,u=-1/0;return this._recordMinMax&&(i.hasMinMax&&a.hasMinMax?(s=Math.min(i.min,a.min),u=Math.max(i.max,a.max)):i.hasMinMax?(s=i.min,u=i.max):a.hasMinMax&&(s=a.min,u=a.max)),new xa(e.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:i.count+a.count,sum:i.sum+a.sum,hasMinMax:this._recordMinMax&&(i.hasMinMax||a.hasMinMax),min:s,max:u})}diff(e,n){let i=e.toPointValue(),a=n.toPointValue(),c=i.buckets.counts,o=a.buckets.counts,r=new Array(c.length);for(let s=0;s<c.length;s++)r[s]=o[s]-c[s];return new xa(n.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:a.count-i.count,sum:a.sum-i.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:JNe.DataPointType.HISTOGRAM,dataPoints:i.map(([c,o])=>{let r=o.toPointValue(),s=e.type===nf.InstrumentType.GAUGE||e.type===nf.InstrumentType.UP_DOWN_COUNTER||e.type===nf.InstrumentType.OBSERVABLE_GAUGE||e.type===nf.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:c,startTime:o.startTime,endTime:a,value:{min:r.hasMinMax?r.min:void 0,max:r.hasMinMax?r.max:void 0,sum:s?void 0:r.sum,buckets:r.buckets,count:r.count}}})}}};ba.HistogramAggregator=Uv});var $3=_(of=>{"use strict";l();Object.defineProperty(of,"__esModule",{value:!0});of.Buckets=void 0;var Vv=class t{constructor(e=new kv,n=0,i=0,a=0){this.backing=e,this.indexBase=n,this.indexStart=i,this.indexEnd=a}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,n)=>this.at(n))}at(e){let n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)}incrementBucket(e,n){this.backing.increment(e,n)}decrementBucket(e,n){this.backing.decrement(e,n)}trim(){for(let e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let n=1+this.indexEnd-this.indexStart,i=1<<e,a=0,c=0;for(let o=this.indexStart;o<=this.indexEnd;){let r=o%i;r<0&&(r+=i);for(let s=r;s<i&&a<n;s++)this._relocateBucket(c,a),a++,o++;c++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))}};of.Buckets=Vv;var kv=class t{constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,n,i){let a=new Array(e).fill(0);a.splice(i,this._counts.length-n,...this._counts.slice(n)),a.splice(0,n,...this._counts.slice(0,n)),this._counts=a}reverse(e,n){let i=Math.floor((e+n)/2)-e;for(let a=0;a<i;a++){let c=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=c}}emptyBucket(e){let n=this._counts[e];return this._counts[e]=0,n}increment(e,n){this._counts[e]+=n}decrement(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0}clone(){return new t([...this._counts])}}});var Gv=_(Nt=>{"use strict";l();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getSignificand=Nt.getNormalBase2=Nt.MIN_VALUE=Nt.MAX_NORMAL_EXPONENT=Nt.MIN_NORMAL_EXPONENT=Nt.SIGNIFICAND_WIDTH=void 0;Nt.SIGNIFICAND_WIDTH=52;var eMe=2146435072,tMe=1048575,Bv=1023;Nt.MIN_NORMAL_EXPONENT=-Bv+1;Nt.MAX_NORMAL_EXPONENT=Bv;Nt.MIN_VALUE=Math.pow(2,-1022);function rMe(t){let e=new DataView(new ArrayBuffer(8));return e.setFloat64(0,t),((e.getUint32(0)&eMe)>>20)-Bv}Nt.getNormalBase2=rMe;function nMe(t){let e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);let n=e.getUint32(0),i=e.getUint32(4);return(n&tMe)*Math.pow(2,32)+i}Nt.getSignificand=nMe});var af=_(Oa=>{"use strict";l();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.nextGreaterSquare=Oa.ldexp=void 0;function oMe(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}Oa.ldexp=oMe;function iMe(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}Oa.nextGreaterSquare=iMe});var cf=_(sf=>{"use strict";l();Object.defineProperty(sf,"__esModule",{value:!0});sf.MappingError=void 0;var jv=class extends Error{};sf.MappingError=jv});var W3=_(uf=>{"use strict";l();Object.defineProperty(uf,"__esModule",{value:!0});uf.ExponentMapping=void 0;var Ra=Gv(),aMe=af(),z3=cf(),Hv=class{constructor(e){this._shift=-e}mapToIndex(e){if(e<Ra.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let n=Ra.getNormalBase2(e),i=this._rightShift(Ra.getSignificand(e)-1,Ra.SIGNIFICAND_WIDTH);return n+i>>this._shift}lowerBoundary(e){let n=this._minNormalLowerBoundaryIndex();if(e<n)throw new z3.MappingError(`underflow: ${e} is < minimum lower boundary: ${n}`);let i=this._maxNormalLowerBoundaryIndex();if(e>i)throw new z3.MappingError(`overflow: ${e} is > maximum lower boundary: ${i}`);return aMe.ldexp(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=Ra.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return Ra.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(e,n){return Math.floor(e*Math.pow(2,-n))}};uf.ExponentMapping=Hv});var Q3=_(lf=>{"use strict";l();Object.defineProperty(lf,"__esModule",{value:!0});lf.LogarithmMapping=void 0;var Pa=Gv(),X3=af(),J3=cf(),qv=class{constructor(e){this._scale=e,this._scaleFactor=X3.ldexp(Math.LOG2E,e),this._inverseFactor=X3.ldexp(Math.LN2,-e)}mapToIndex(e){if(e<=Pa.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(Pa.getSignificand(e)===0)return(Pa.getNormalBase2(e)<<this._scale)-1;let n=Math.floor(Math.log(e)*this._scaleFactor),i=this._maxNormalLowerBoundaryIndex();return n>=i?i:n}lowerBoundary(e){let n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new J3.MappingError(`overflow: ${e} is > maximum lower boundary: ${n}`)}let i=this._minNormalLowerBoundaryIndex();if(e<=i){if(e===i)return Pa.MIN_VALUE;if(e===i-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new J3.MappingError(`overflow: ${e} is < minimum lower boundary: ${i}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return Pa.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(Pa.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};lf.LogarithmMapping=qv});var tY=_(pf=>{"use strict";l();Object.defineProperty(pf,"__esModule",{value:!0});pf.getMapping=void 0;var sMe=W3(),cMe=Q3(),uMe=cf(),Z3=-10,eY=20,lMe=Array.from({length:31},(t,e)=>e>10?new cMe.LogarithmMapping(e-10):new sMe.ExponentMapping(e-10));function pMe(t){if(t>eY||t<Z3)throw new uMe.MappingError(`expected scale >= ${Z3} && <= ${eY}, got: ${t}`);return lMe[t+10]}pf.getMapping=pMe});var oY=_(Ma=>{"use strict";l();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.ExponentialHistogramAggregator=Ma.ExponentialHistogramAccumulation=void 0;var dMe=Aa(),fMe=ya(),_Me=(L(),N(C)),df=sn(),rY=$3(),nY=tY(),mMe=af(),Na=class t{constructor(e,n){this.low=e,this.high=n}static combine(e,n){return new t(Math.min(e.low,n.low),Math.max(e.high,n.high))}},EMe=20,hMe=160,Fv=2,ff=class t{constructor(e=e,n=hMe,i=!0,a=0,c=0,o=0,r=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,u=new rY.Buckets,p=new rY.Buckets,S=(0,nY.getMapping)(EMe)){this.startTime=e,this._maxSize=n,this._recordMinMax=i,this._sum=a,this._count=c,this._zeroCount=o,this._min=r,this._max=s,this._positive=u,this._negative=p,this._mapping=S,this._maxSize<Fv&&(_Me.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Fv}`),this._maxSize=Fv)}record(e){this.updateByIncrement(e,1)}setStartTime(e){this.startTime=e}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}}merge(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;let n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)}diff(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;let n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)}clone(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(e,n,i){let a=this._mapping.mapToIndex(n),c=!1,o=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(c=!0,r=a,o=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(c=!0,r=e.indexStart,o=a),c){let s=this._changeScale(o,r);this._downscale(s),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,i)}_incrementIndexBy(e,n,i){if(i===0)return;if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){let c=e.indexEnd-n;c>=e.backing.length&&this._grow(e,c+1),e.indexStart=n}else if(n>e.indexEnd){let c=n-e.indexStart;c>=e.backing.length&&this._grow(e,c+1),e.indexEnd=n}let a=n-e.indexBase;a<0&&(a+=e.backing.length),e.incrementBucket(a,i)}_grow(e,n){let i=e.backing.length,a=e.indexBase-e.indexStart,c=i-a,o=(0,mMe.nextGreaterSquare)(n);o>this._maxSize&&(o=this._maxSize);let r=o-a;e.backing.growTo(o,c,r)}_changeScale(e,n){let i=0;for(;e-n>=this._maxSize;)e>>=1,n>>=1,i++;return i}_downscale(e){if(e===0)return;if(e<0)throw new Error(`impossible change of scale: ${this.scale}`);let n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=(0,nY.getMapping)(n)}_minScale(e){let n=Math.min(this.scale,e.scale),i=Na.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Na.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(i.high,i.low),n-this._changeScale(a.high,a.low))}_highLowAtScale(e,n,i){if(e.length===0)return new Na(0,-1);let a=n-i;return new Na(e.indexStart>>a,e.indexEnd>>a)}_mergeBuckets(e,n,i,a){let c=i.offset,o=n.scale-a;for(let r=0;r<i.length;r++)this._incrementIndexBy(e,c+r>>o,i.at(r))}_diffBuckets(e,n,i,a){let c=i.offset,o=n.scale-a;for(let r=0;r<i.length;r++){let u=(c+r>>o)-e.indexBase;u<0&&(u+=e.backing.length),e.decrementBucket(u,i.at(r))}e.trim()}};Ma.ExponentialHistogramAccumulation=ff;var Yv=class{constructor(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=dMe.AggregatorKind.EXPONENTIAL_HISTOGRAM}createAccumulation(e){return new ff(e,this._maxSize,this._recordMinMax)}merge(e,n){let i=n.clone();return i.merge(e),i}diff(e,n){let i=n.clone();return i.diff(e),i}toMetricData(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:fMe.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(([c,o])=>{let r=o.toPointValue(),s=e.type===df.InstrumentType.GAUGE||e.type===df.InstrumentType.UP_DOWN_COUNTER||e.type===df.InstrumentType.OBSERVABLE_GAUGE||e.type===df.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:c,startTime:o.startTime,endTime:a,value:{min:r.hasMinMax?r.min:void 0,max:r.hasMinMax?r.max:void 0,sum:s?void 0:r.sum,positive:{offset:r.positive.offset,bucketCounts:r.positive.bucketCounts},negative:{offset:r.negative.offset,bucketCounts:r.negative.bucketCounts},count:r.count,scale:r.scale,zeroCount:r.zeroCount}}})}}};Ma.ExponentialHistogramAggregator=Yv});var iY=_(La=>{"use strict";l();Object.defineProperty(La,"__esModule",{value:!0});La.LastValueAggregator=La.LastValueAccumulation=void 0;var TMe=Aa(),cc=jt(),SMe=ya(),Ia=class{constructor(e,n=0,i=[0,0]){this.startTime=e,this._current=n,this.sampleTime=i}record(e){this._current=e,this.sampleTime=(0,cc.millisToHrTime)(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};La.LastValueAccumulation=Ia;var Kv=class{constructor(){this.kind=TMe.AggregatorKind.LAST_VALUE}createAccumulation(e){return new Ia(e)}merge(e,n){let i=(0,cc.hrTimeToMicroseconds)(n.sampleTime)>=(0,cc.hrTimeToMicroseconds)(e.sampleTime)?n:e;return new Ia(e.startTime,i.toPointValue(),i.sampleTime)}diff(e,n){let i=(0,cc.hrTimeToMicroseconds)(n.sampleTime)>=(0,cc.hrTimeToMicroseconds)(e.sampleTime)?n:e;return new Ia(n.startTime,i.toPointValue(),i.sampleTime)}toMetricData(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:SMe.DataPointType.GAUGE,dataPoints:i.map(([c,o])=>({attributes:c,startTime:o.startTime,endTime:a,value:o.toPointValue()}))}}};La.LastValueAggregator=Kv});var aY=_(Ca=>{"use strict";l();Object.defineProperty(Ca,"__esModule",{value:!0});Ca.SumAggregator=Ca.SumAccumulation=void 0;var vMe=Aa(),gMe=ya(),qn=class{constructor(e,n,i=0,a=!1){this.startTime=e,this.monotonic=n,this._current=i,this.reset=a}record(e){this.monotonic&&e<0||(this._current+=e)}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};Ca.SumAccumulation=qn;var $v=class{constructor(e){this.monotonic=e,this.kind=vMe.AggregatorKind.SUM}createAccumulation(e){return new qn(e,this.monotonic)}merge(e,n){let i=e.toPointValue(),a=n.toPointValue();return n.reset?new qn(n.startTime,this.monotonic,a,n.reset):new qn(e.startTime,this.monotonic,i+a)}diff(e,n){let i=e.toPointValue(),a=n.toPointValue();return this.monotonic&&i>a?new qn(n.startTime,this.monotonic,a,!0):new qn(n.startTime,this.monotonic,a-i)}toMetricData(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:gMe.DataPointType.SUM,dataPoints:i.map(([c,o])=>({attributes:c,startTime:o.startTime,endTime:a,value:o.toPointValue()})),isMonotonic:this.monotonic}}};Ca.SumAggregator=$v});var pY=_(ke=>{"use strict";l();Object.defineProperty(ke,"__esModule",{value:!0});ke.SumAggregator=ke.SumAccumulation=ke.LastValueAggregator=ke.LastValueAccumulation=ke.ExponentialHistogramAggregator=ke.ExponentialHistogramAccumulation=ke.HistogramAggregator=ke.HistogramAccumulation=ke.DropAggregator=void 0;var yMe=q3();Object.defineProperty(ke,"DropAggregator",{enumerable:!0,get:function(){return yMe.DropAggregator}});var sY=K3();Object.defineProperty(ke,"HistogramAccumulation",{enumerable:!0,get:function(){return sY.HistogramAccumulation}});Object.defineProperty(ke,"HistogramAggregator",{enumerable:!0,get:function(){return sY.HistogramAggregator}});var cY=oY();Object.defineProperty(ke,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return cY.ExponentialHistogramAccumulation}});Object.defineProperty(ke,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return cY.ExponentialHistogramAggregator}});var uY=iY();Object.defineProperty(ke,"LastValueAccumulation",{enumerable:!0,get:function(){return uY.LastValueAccumulation}});Object.defineProperty(ke,"LastValueAggregator",{enumerable:!0,get:function(){return uY.LastValueAggregator}});var lY=aY();Object.defineProperty(ke,"SumAccumulation",{enumerable:!0,get:function(){return lY.SumAccumulation}});Object.defineProperty(ke,"SumAggregator",{enumerable:!0,get:function(){return lY.SumAggregator}})});var hf=_(Qe=>{"use strict";l();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.DefaultAggregation=Qe.ExponentialHistogramAggregation=Qe.ExplicitBucketHistogramAggregation=Qe.HistogramAggregation=Qe.LastValueAggregation=Qe.SumAggregation=Qe.DropAggregation=Qe.Aggregation=void 0;var AMe=(L(),N(C)),Go=pY(),Ur=sn(),Vr=class{static Drop(){return dY}static Sum(){return fY}static LastValue(){return _Y}static Histogram(){return mY}static ExponentialHistogram(){return xMe}static Default(){return bMe}};Qe.Aggregation=Vr;var uc=class t extends Vr{createAggregator(e){return t.DEFAULT_INSTANCE}};Qe.DropAggregation=uc;uc.DEFAULT_INSTANCE=new Go.DropAggregator;var wa=class t extends Vr{createAggregator(e){switch(e.type){case Ur.InstrumentType.COUNTER:case Ur.InstrumentType.OBSERVABLE_COUNTER:case Ur.InstrumentType.HISTOGRAM:return t.MONOTONIC_INSTANCE;default:return t.NON_MONOTONIC_INSTANCE}}};Qe.SumAggregation=wa;wa.MONOTONIC_INSTANCE=new Go.SumAggregator(!0);wa.NON_MONOTONIC_INSTANCE=new Go.SumAggregator(!1);var lc=class t extends Vr{createAggregator(e){return t.DEFAULT_INSTANCE}};Qe.LastValueAggregation=lc;lc.DEFAULT_INSTANCE=new Go.LastValueAggregator;var pc=class t extends Vr{createAggregator(e){return t.DEFAULT_INSTANCE}};Qe.HistogramAggregation=pc;pc.DEFAULT_INSTANCE=new Go.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);var _f=class extends Vr{constructor(e,n=!0){if(super(),this._recordMinMax=n,e==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");e=e.concat(),e=e.sort((c,o)=>c-o);let i=e.lastIndexOf(-1/0),a=e.indexOf(1/0);a===-1&&(a=void 0),this._boundaries=e.slice(i+1,a)}createAggregator(e){return new Go.HistogramAggregator(this._boundaries,this._recordMinMax)}};Qe.ExplicitBucketHistogramAggregation=_f;var mf=class extends Vr{constructor(e=160,n=!0){super(),this._maxSize=e,this._recordMinMax=n}createAggregator(e){return new Go.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};Qe.ExponentialHistogramAggregation=mf;var Ef=class extends Vr{_resolve(e){switch(e.type){case Ur.InstrumentType.COUNTER:case Ur.InstrumentType.UP_DOWN_COUNTER:case Ur.InstrumentType.OBSERVABLE_COUNTER:case Ur.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return fY;case Ur.InstrumentType.GAUGE:case Ur.InstrumentType.OBSERVABLE_GAUGE:return _Y;case Ur.InstrumentType.HISTOGRAM:return e.advice.explicitBucketBoundaries?new _f(e.advice.explicitBucketBoundaries):mY}return AMe.diag.warn(`Unable to recognize instrument type: ${e.type}`),dY}createAggregator(e){return this._resolve(e).createAggregator(e)}};Qe.DefaultAggregation=Ef;var dY=new uc,fY=new wa,_Y=new lc,mY=new pc,xMe=new mf,bMe=new Ef});var zv=_(Da=>{"use strict";l();Object.defineProperty(Da,"__esModule",{value:!0});Da.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Da.DEFAULT_AGGREGATION_SELECTOR=void 0;var OMe=hf(),RMe=ef(),PMe=t=>OMe.Aggregation.Default();Da.DEFAULT_AGGREGATION_SELECTOR=PMe;var NMe=t=>RMe.AggregationTemporality.CUMULATIVE;Da.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=NMe});var Xv=_(Sf=>{"use strict";l();Object.defineProperty(Sf,"__esModule",{value:!0});Sf.MetricReader=void 0;var EY=(L(),N(C)),Tf=mr(),hY=zv(),Wv=class{constructor(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:hY.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:hY.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=(a=e?.metricProducers)!==null&&a!==void 0?a:[],this._cardinalitySelector=e?.cardinalitySelector}setMetricProducer(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}selectCardinalityLimit(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3}onInitialized(){}async collect(e){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[n,...i]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis}),...this._metricProducers.map(r=>r.collect({timeoutMillis:e?.timeoutMillis}))]),a=n.errors.concat((0,Tf.FlatMap)(i,r=>r.errors)),c=n.resourceMetrics.resource,o=n.resourceMetrics.scopeMetrics.concat((0,Tf.FlatMap)(i,r=>r.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:c,scopeMetrics:o},errors:a}}async shutdown(e){if(this._shutdown){EY.diag.error("Cannot call shutdown twice.");return}e?.timeoutMillis==null?await this.onShutdown():await(0,Tf.callWithTimeout)(this.onShutdown(),e.timeoutMillis),this._shutdown=!0}async forceFlush(e){if(this._shutdown){EY.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(e?.timeoutMillis==null){await this.onForceFlush();return}await(0,Tf.callWithTimeout)(this.onForceFlush(),e.timeoutMillis)}};Sf.MetricReader=Wv});var SY=_(vf=>{"use strict";l();Object.defineProperty(vf,"__esModule",{value:!0});vf.PeriodicExportingMetricReader=void 0;var Jv=(L(),N(C)),dc=jt(),MMe=Xv(),TY=mr(),Qv=class extends MMe.MetricReader{constructor(e){var n,i,a,c;if(super({aggregationSelector:(n=e.exporter.selectAggregation)===null||n===void 0?void 0:n.bind(e.exporter),aggregationTemporalitySelector:(i=e.exporter.selectAggregationTemporality)===null||i===void 0?void 0:i.bind(e.exporter),metricProducers:e.metricProducers}),e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<e.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=(a=e.exportIntervalMillis)!==null&&a!==void 0?a:6e4,this._exportTimeout=(c=e.exportTimeoutMillis)!==null&&c!==void 0?c:3e4,this._exporter=e.exporter}async _runOnce(){try{await(0,TY.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(e){if(e instanceof TY.TimeoutError){Jv.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,dc.globalErrorHandler)(e)}}async _doRun(){var e,n;let{resourceMetrics:i,errors:a}=await this.collect({timeoutMillis:this._exportTimeout});if(a.length>0&&Jv.diag.error("PeriodicExportingMetricReader: metrics collection errors",...a),i.resource.asyncAttributesPending)try{await((n=(e=i.resource).waitForAsyncAttributes)===null||n===void 0?void 0:n.call(e))}catch(o){Jv.diag.debug("Error while resolving async portion of resource: ",o),(0,dc.globalErrorHandler)(o)}let c=await dc.internal._export(this._exporter,i);if(c.code!==dc.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${c.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,dc.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};vf.PeriodicExportingMetricReader=Qv});var gY=_(gf=>{"use strict";l();Object.defineProperty(gf,"__esModule",{value:!0});gf.InMemoryMetricExporter=void 0;var vY=jt(),Zv=class{constructor(e){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=e}export(e,n){if(this._shutdown){setTimeout(()=>n({code:vY.ExportResultCode.FAILED}),0);return}this._metrics.push(e),setTimeout(()=>n({code:vY.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(e){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};gf.InMemoryMetricExporter=Zv});var AY=_(yf=>{"use strict";l();Object.defineProperty(yf,"__esModule",{value:!0});yf.ConsoleMetricExporter=void 0;var yY=jt(),IMe=zv(),eg=class t{constructor(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:IMe.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(e,n){if(this._shutdown){setImmediate(n,{code:yY.ExportResultCode.FAILED});return}return t._sendMetrics(e,n)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return this._temporalitySelector(e)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(e,n){for(let i of e.scopeMetrics)for(let a of i.metrics)console.dir({descriptor:a.descriptor,dataPointType:a.dataPointType,dataPoints:a.dataPoints},{depth:null});n({code:yY.ExportResultCode.SUCCESS})}};yf.ConsoleMetricExporter=eg});var xY=_(Af=>{"use strict";l();Object.defineProperty(Af,"__esModule",{value:!0});Af.defaultServiceName=void 0;function LMe(){return`unknown_service:${process.argv0}`}Af.defaultServiceName=LMe});var bY=_(xf=>{"use strict";l();Object.defineProperty(xf,"__esModule",{value:!0});xf.defaultServiceName=void 0;var CMe=xY();Object.defineProperty(xf,"defaultServiceName",{enumerable:!0,get:function(){return CMe.defaultServiceName}})});var tg=_(bf=>{"use strict";l();Object.defineProperty(bf,"__esModule",{value:!0});bf.defaultServiceName=void 0;var wMe=bY();Object.defineProperty(bf,"defaultServiceName",{enumerable:!0,get:function(){return wMe.defaultServiceName}})});var cn=_(Of=>{"use strict";l();Object.defineProperty(Of,"__esModule",{value:!0});Of.Resource=void 0;var OY=(L(),N(C)),jo=(ot(),N(nt)),rg=jt(),DMe=tg(),fc=class t{constructor(e,n){var i;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=n?.then(a=>(this._attributes=Object.assign({},this._attributes,a),this.asyncAttributesPending=!1,a),a=>(OY.diag.debug("a resource's async attributes promise rejected: %s",a),this.asyncAttributesPending=!1,{}))}static empty(){return t.EMPTY}static default(){return new t({[jo.SEMRESATTRS_SERVICE_NAME]:(0,DMe.defaultServiceName)(),[jo.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:rg.SDK_INFO[jo.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[jo.SEMRESATTRS_TELEMETRY_SDK_NAME]:rg.SDK_INFO[jo.SEMRESATTRS_TELEMETRY_SDK_NAME],[jo.SEMRESATTRS_TELEMETRY_SDK_VERSION]:rg.SDK_INFO[jo.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var e;return this.asyncAttributesPending&&OY.diag.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(e){var n;if(!e)return this;let i=Object.assign(Object.assign({},this._syncAttributes),(n=e._syncAttributes)!==null&&n!==void 0?n:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(i);let a=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(([c,o])=>{var r;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),c),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),o)});return new t(i,a)}};Of.Resource=fc;fc.EMPTY=new fc({})});var ng=_(Ua=>{"use strict";l();Object.defineProperty(Ua,"__esModule",{value:!0});Ua.normalizeType=Ua.normalizeArch=void 0;var UMe=t=>{switch(t){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return t}};Ua.normalizeArch=UMe;var VMe=t=>{switch(t){case"sunos":return"solaris";case"win32":return"windows";default:return t}};Ua.normalizeType=VMe});var Pf=_(Rf=>{"use strict";l();Object.defineProperty(Rf,"__esModule",{value:!0});Rf.execAsync=void 0;var kMe=q("child_process"),BMe=q("util");Rf.execAsync=BMe.promisify(kMe.exec)});var RY=_(Nf=>{"use strict";l();Object.defineProperty(Nf,"__esModule",{value:!0});Nf.getMachineId=void 0;var GMe=Pf(),jMe=(L(),N(C));async function HMe(){try{let e=(await(0,GMe.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
39
|
+
`).find(i=>i.includes("IOPlatformUUID"));if(!e)return"";let n=e.split('" = "');if(n.length===2)return n[1].slice(0,-1)}catch(t){jMe.diag.debug(`error reading machine id: ${t}`)}return""}Nf.getMachineId=HMe});var PY=_(Mf=>{"use strict";l();Object.defineProperty(Mf,"__esModule",{value:!0});Mf.getMachineId=void 0;var qMe=q("fs"),FMe=(L(),N(C));async function YMe(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let e of t)try{return(await qMe.promises.readFile(e,{encoding:"utf8"})).trim()}catch(n){FMe.diag.debug(`error reading machine id: ${n}`)}return""}Mf.getMachineId=YMe});var MY=_(If=>{"use strict";l();Object.defineProperty(If,"__esModule",{value:!0});If.getMachineId=void 0;var KMe=q("fs"),$Me=Pf(),NY=(L(),N(C));async function zMe(){try{return(await KMe.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(t){NY.diag.debug(`error reading machine id: ${t}`)}try{return(await(0,$Me.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(t){NY.diag.debug(`error reading machine id: ${t}`)}return""}If.getMachineId=zMe});var LY=_(Lf=>{"use strict";l();Object.defineProperty(Lf,"__esModule",{value:!0});Lf.getMachineId=void 0;var IY=q("process"),WMe=Pf(),XMe=(L(),N(C));async function JMe(){let t="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";IY.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in IY.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let i=(await(0,WMe.execAsync)(`${e} ${t}`)).stdout.split("REG_SZ");if(i.length===2)return i[1].trim()}catch(n){XMe.diag.debug(`error reading machine id: ${n}`)}return""}Lf.getMachineId=JMe});var CY=_(Cf=>{"use strict";l();Object.defineProperty(Cf,"__esModule",{value:!0});Cf.getMachineId=void 0;var QMe=(L(),N(C));async function ZMe(){return QMe.diag.debug("could not read machine-id: unsupported platform"),""}Cf.getMachineId=ZMe});var wY=_(un=>{"use strict";l();Object.defineProperty(un,"__esModule",{value:!0});un.getMachineId=void 0;var eIe=q("process"),Va;un.getMachineId=Va;switch(eIe.platform){case"darwin":un.getMachineId=Va=RY().getMachineId;break;case"linux":un.getMachineId=Va=PY().getMachineId;break;case"freebsd":un.getMachineId=Va=MY().getMachineId;break;case"win32":un.getMachineId=Va=LY().getMachineId;break;default:un.getMachineId=Va=CY().getMachineId}});var ag=_(wf=>{"use strict";l();Object.defineProperty(wf,"__esModule",{value:!0});wf.hostDetectorSync=void 0;var og=(ot(),N(nt)),tIe=cn(),DY=q("os"),rIe=ng(),nIe=wY(),ig=class{detect(e){let n={[og.SEMRESATTRS_HOST_NAME]:(0,DY.hostname)(),[og.SEMRESATTRS_HOST_ARCH]:(0,rIe.normalizeArch)((0,DY.arch)())};return new tIe.Resource(n,this._getAsyncAttributes())}_getAsyncAttributes(){return(0,nIe.getMachineId)().then(e=>{let n={};return e&&(n[og.SEMRESATTRS_HOST_ID]=e),n})}};wf.hostDetectorSync=new ig});var UY=_(Df=>{"use strict";l();Object.defineProperty(Df,"__esModule",{value:!0});Df.hostDetector=void 0;var oIe=ag(),sg=class{detect(e){return Promise.resolve(oIe.hostDetectorSync.detect(e))}};Df.hostDetector=new sg});var ug=_(Uf=>{"use strict";l();Object.defineProperty(Uf,"__esModule",{value:!0});Uf.osDetectorSync=void 0;var VY=(ot(),N(nt)),iIe=cn(),kY=q("os"),aIe=ng(),cg=class{detect(e){let n={[VY.SEMRESATTRS_OS_TYPE]:(0,aIe.normalizeType)((0,kY.platform)()),[VY.SEMRESATTRS_OS_VERSION]:(0,kY.release)()};return new iIe.Resource(n)}};Uf.osDetectorSync=new cg});var BY=_(Vf=>{"use strict";l();Object.defineProperty(Vf,"__esModule",{value:!0});Vf.osDetector=void 0;var sIe=ug(),lg=class{detect(e){return Promise.resolve(sIe.osDetectorSync.detect(e))}};Vf.osDetector=new lg});var dg=_(kf=>{"use strict";l();Object.defineProperty(kf,"__esModule",{value:!0});kf.processDetectorSync=void 0;var cIe=(L(),N(C)),ln=(ot(),N(nt)),uIe=cn(),lIe=q("os"),pg=class{detect(e){let n={[ln.SEMRESATTRS_PROCESS_PID]:process.pid,[ln.SEMRESATTRS_PROCESS_EXECUTABLE_NAME]:process.title,[ln.SEMRESATTRS_PROCESS_EXECUTABLE_PATH]:process.execPath,[ln.SEMRESATTRS_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[ln.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:process.versions.node,[ln.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"nodejs",[ln.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(n[ln.SEMRESATTRS_PROCESS_COMMAND]=process.argv[1]);try{let i=lIe.userInfo();n[ln.SEMRESATTRS_PROCESS_OWNER]=i.username}catch(i){cIe.diag.debug(`error obtaining process owner: ${i}`)}return new uIe.Resource(n)}};kf.processDetectorSync=new pg});var GY=_(Bf=>{"use strict";l();Object.defineProperty(Bf,"__esModule",{value:!0});Bf.processDetector=void 0;var pIe=dg(),fg=class{detect(e){return Promise.resolve(pIe.processDetectorSync.detect(e))}};Bf.processDetector=new fg});var jY=_(Gf=>{"use strict";l();Object.defineProperty(Gf,"__esModule",{value:!0});Gf.serviceInstanceIdDetectorSync=void 0;var dIe=(ot(),N(nt)),fIe=cn(),_Ie=q("crypto"),_g=class{detect(e){let n={[dIe.SEMRESATTRS_SERVICE_INSTANCE_ID]:(0,_Ie.randomUUID)()};return new fIe.Resource(n)}};Gf.serviceInstanceIdDetectorSync=new _g});var HY=_(ht=>{"use strict";l();Object.defineProperty(ht,"__esModule",{value:!0});ht.serviceInstanceIdDetectorSync=ht.processDetectorSync=ht.processDetector=ht.osDetectorSync=ht.osDetector=ht.hostDetectorSync=ht.hostDetector=void 0;var mIe=UY();Object.defineProperty(ht,"hostDetector",{enumerable:!0,get:function(){return mIe.hostDetector}});var EIe=ag();Object.defineProperty(ht,"hostDetectorSync",{enumerable:!0,get:function(){return EIe.hostDetectorSync}});var hIe=BY();Object.defineProperty(ht,"osDetector",{enumerable:!0,get:function(){return hIe.osDetector}});var TIe=ug();Object.defineProperty(ht,"osDetectorSync",{enumerable:!0,get:function(){return TIe.osDetectorSync}});var SIe=GY();Object.defineProperty(ht,"processDetector",{enumerable:!0,get:function(){return SIe.processDetector}});var vIe=dg();Object.defineProperty(ht,"processDetectorSync",{enumerable:!0,get:function(){return vIe.processDetectorSync}});var gIe=jY();Object.defineProperty(ht,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return gIe.serviceInstanceIdDetectorSync}})});var qY=_(Tt=>{"use strict";l();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.serviceInstanceIdDetectorSync=Tt.processDetectorSync=Tt.processDetector=Tt.osDetectorSync=Tt.osDetector=Tt.hostDetectorSync=Tt.hostDetector=void 0;var Ho=HY();Object.defineProperty(Tt,"hostDetector",{enumerable:!0,get:function(){return Ho.hostDetector}});Object.defineProperty(Tt,"hostDetectorSync",{enumerable:!0,get:function(){return Ho.hostDetectorSync}});Object.defineProperty(Tt,"osDetector",{enumerable:!0,get:function(){return Ho.osDetector}});Object.defineProperty(Tt,"osDetectorSync",{enumerable:!0,get:function(){return Ho.osDetectorSync}});Object.defineProperty(Tt,"processDetector",{enumerable:!0,get:function(){return Ho.processDetector}});Object.defineProperty(Tt,"processDetectorSync",{enumerable:!0,get:function(){return Ho.processDetectorSync}});Object.defineProperty(Tt,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return Ho.serviceInstanceIdDetectorSync}})});var hg=_(Hf=>{"use strict";l();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.browserDetectorSync=void 0;var jf=(ot(),N(nt)),yIe=(L(),N(C)),mg=cn(),Eg=class{detect(e){var n,i,a;if(!(typeof navigator<"u"&&((i=(n=global.process)===null||n===void 0?void 0:n.versions)===null||i===void 0?void 0:i.node)===void 0&&((a=global.Bun)===null||a===void 0?void 0:a.version)===void 0))return mg.Resource.empty();let o={[jf.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"browser",[jf.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Web Browser",[jf.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:navigator.userAgent};return this._getResourceAttributes(o,e)}_getResourceAttributes(e,n){return e[jf.SEMRESATTRS_PROCESS_RUNTIME_VERSION]===""?(yIe.diag.debug("BrowserDetector failed: Unable to find required browser resources. "),mg.Resource.empty()):new mg.Resource(Object.assign({},e))}};Hf.browserDetectorSync=new Eg});var FY=_(qf=>{"use strict";l();Object.defineProperty(qf,"__esModule",{value:!0});qf.browserDetector=void 0;var AIe=hg(),Tg=class{detect(e){return Promise.resolve(AIe.browserDetectorSync.detect(e))}};qf.browserDetector=new Tg});var vg=_(Ff=>{"use strict";l();Object.defineProperty(Ff,"__esModule",{value:!0});Ff.envDetectorSync=void 0;var xIe=(L(),N(C)),bIe=jt(),OIe=(ot(),N(nt)),RIe=cn(),Sg=class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}detect(e){let n={},i=(0,bIe.getEnv)(),a=i.OTEL_RESOURCE_ATTRIBUTES,c=i.OTEL_SERVICE_NAME;if(a)try{let o=this._parseResourceAttributes(a);Object.assign(n,o)}catch(o){xIe.diag.debug(`EnvDetector failed: ${o.message}`)}return c&&(n[OIe.SEMRESATTRS_SERVICE_NAME]=c),new RIe.Resource(n)}_parseResourceAttributes(e){if(!e)return{};let n={},i=e.split(this._COMMA_SEPARATOR,-1);for(let a of i){let c=a.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(c.length!==2)continue;let[o,r]=c;if(o=o.trim(),r=r.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(o))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(r))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);n[o]=decodeURIComponent(r)}return n}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i<33||i===44||i===59||i===92||i>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}};Ff.envDetectorSync=new Sg});var YY=_(Yf=>{"use strict";l();Object.defineProperty(Yf,"__esModule",{value:!0});Yf.envDetector=void 0;var PIe=vg(),gg=class{detect(e){return Promise.resolve(PIe.envDetectorSync.detect(e))}};Yf.envDetector=new gg});var KY=_(xe=>{"use strict";l();Object.defineProperty(xe,"__esModule",{value:!0});xe.envDetectorSync=xe.browserDetectorSync=xe.envDetector=xe.browserDetector=xe.serviceInstanceIdDetectorSync=xe.processDetectorSync=xe.processDetector=xe.osDetectorSync=xe.osDetector=xe.hostDetectorSync=xe.hostDetector=void 0;var qo=qY();Object.defineProperty(xe,"hostDetector",{enumerable:!0,get:function(){return qo.hostDetector}});Object.defineProperty(xe,"hostDetectorSync",{enumerable:!0,get:function(){return qo.hostDetectorSync}});Object.defineProperty(xe,"osDetector",{enumerable:!0,get:function(){return qo.osDetector}});Object.defineProperty(xe,"osDetectorSync",{enumerable:!0,get:function(){return qo.osDetectorSync}});Object.defineProperty(xe,"processDetector",{enumerable:!0,get:function(){return qo.processDetector}});Object.defineProperty(xe,"processDetectorSync",{enumerable:!0,get:function(){return qo.processDetectorSync}});Object.defineProperty(xe,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return qo.serviceInstanceIdDetectorSync}});var NIe=FY();Object.defineProperty(xe,"browserDetector",{enumerable:!0,get:function(){return NIe.browserDetector}});var MIe=YY();Object.defineProperty(xe,"envDetector",{enumerable:!0,get:function(){return MIe.envDetector}});var IIe=hg();Object.defineProperty(xe,"browserDetectorSync",{enumerable:!0,get:function(){return IIe.browserDetectorSync}});var LIe=vg();Object.defineProperty(xe,"envDetectorSync",{enumerable:!0,get:function(){return LIe.envDetectorSync}})});var $Y=_(Kf=>{"use strict";l();Object.defineProperty(Kf,"__esModule",{value:!0});Kf.isPromiseLike=void 0;var CIe=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";Kf.isPromiseLike=CIe});var WY=_(Ba=>{"use strict";l();Object.defineProperty(Ba,"__esModule",{value:!0});Ba.detectResourcesSync=Ba.detectResources=void 0;var _c=cn(),ka=(L(),N(C)),wIe=$Y(),DIe=async(t={})=>{let e=await Promise.all((t.detectors||[]).map(async n=>{try{let i=await n.detect(t);return ka.diag.debug(`${n.constructor.name} found resource.`,i),i}catch(i){return ka.diag.debug(`${n.constructor.name} failed: ${i.message}`),_c.Resource.empty()}}));return zY(e),e.reduce((n,i)=>n.merge(i),_c.Resource.empty())};Ba.detectResources=DIe;var UIe=(t={})=>{var e;let n=((e=t.detectors)!==null&&e!==void 0?e:[]).map(a=>{try{let c=a.detect(t),o;if((0,wIe.isPromiseLike)(c)){let r=async()=>{var s;let u=await c;return await((s=u.waitForAsyncAttributes)===null||s===void 0?void 0:s.call(u)),u.attributes};o=new _c.Resource({},r())}else o=c;return o.waitForAsyncAttributes?o.waitForAsyncAttributes().then(()=>ka.diag.debug(`${a.constructor.name} found resource.`,o)):ka.diag.debug(`${a.constructor.name} found resource.`,o),o}catch(c){return ka.diag.error(`${a.constructor.name} failed: ${c.message}`),_c.Resource.empty()}}),i=n.reduce((a,c)=>a.merge(c),_c.Resource.empty());return i.waitForAsyncAttributes&&i.waitForAsyncAttributes().then(()=>{zY(n)}),i};Ba.detectResourcesSync=UIe;var zY=t=>{t.forEach(e=>{if(Object.keys(e.attributes).length>0){let n=JSON.stringify(e.attributes,null,4);ka.diag.verbose(n)}})}});var JY=_(pe=>{"use strict";l();Object.defineProperty(pe,"__esModule",{value:!0});pe.detectResources=pe.detectResourcesSync=pe.serviceInstanceIdDetectorSync=pe.processDetectorSync=pe.processDetector=pe.osDetectorSync=pe.osDetector=pe.hostDetectorSync=pe.hostDetector=pe.envDetectorSync=pe.envDetector=pe.browserDetectorSync=pe.browserDetector=pe.defaultServiceName=pe.Resource=void 0;var VIe=cn();Object.defineProperty(pe,"Resource",{enumerable:!0,get:function(){return VIe.Resource}});var kIe=tg();Object.defineProperty(pe,"defaultServiceName",{enumerable:!0,get:function(){return kIe.defaultServiceName}});var Er=KY();Object.defineProperty(pe,"browserDetector",{enumerable:!0,get:function(){return Er.browserDetector}});Object.defineProperty(pe,"browserDetectorSync",{enumerable:!0,get:function(){return Er.browserDetectorSync}});Object.defineProperty(pe,"envDetector",{enumerable:!0,get:function(){return Er.envDetector}});Object.defineProperty(pe,"envDetectorSync",{enumerable:!0,get:function(){return Er.envDetectorSync}});Object.defineProperty(pe,"hostDetector",{enumerable:!0,get:function(){return Er.hostDetector}});Object.defineProperty(pe,"hostDetectorSync",{enumerable:!0,get:function(){return Er.hostDetectorSync}});Object.defineProperty(pe,"osDetector",{enumerable:!0,get:function(){return Er.osDetector}});Object.defineProperty(pe,"osDetectorSync",{enumerable:!0,get:function(){return Er.osDetectorSync}});Object.defineProperty(pe,"processDetector",{enumerable:!0,get:function(){return Er.processDetector}});Object.defineProperty(pe,"processDetectorSync",{enumerable:!0,get:function(){return Er.processDetectorSync}});Object.defineProperty(pe,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return Er.serviceInstanceIdDetectorSync}});var XY=WY();Object.defineProperty(pe,"detectResourcesSync",{enumerable:!0,get:function(){return XY.detectResourcesSync}});Object.defineProperty(pe,"detectResources",{enumerable:!0,get:function(){return XY.detectResources}})});var QY=_($f=>{"use strict";l();Object.defineProperty($f,"__esModule",{value:!0});$f.ViewRegistry=void 0;var yg=class{constructor(){this._registeredViews=[]}addView(e){this._registeredViews.push(e)}findViews(e,n){return this._registeredViews.filter(a=>this._matchInstrument(a.instrumentSelector,e)&&this._matchMeter(a.meterSelector,n))}_matchInstrument(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)}_matchMeter(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))}};$f.ViewRegistry=yg});var zf=_(Le=>{"use strict";l();Object.defineProperty(Le,"__esModule",{value:!0});Le.isObservableInstrument=Le.ObservableUpDownCounterInstrument=Le.ObservableGaugeInstrument=Le.ObservableCounterInstrument=Le.ObservableInstrument=Le.HistogramInstrument=Le.GaugeInstrument=Le.CounterInstrument=Le.UpDownCounterInstrument=Le.SyncInstrument=void 0;var Ga=(L(),N(C)),BIe=jt(),Fo=class{constructor(e,n){this._writableMetricStorage=e,this._descriptor=n}_record(e,n={},i=Ga.context.active()){if(typeof e!="number"){Ga.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${e}`);return}this._descriptor.valueType===Ga.ValueType.INT&&!Number.isInteger(e)&&(Ga.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,i,(0,BIe.millisToHrTime)(Date.now()))}};Le.SyncInstrument=Fo;var Ag=class extends Fo{add(e,n,i){this._record(e,n,i)}};Le.UpDownCounterInstrument=Ag;var xg=class extends Fo{add(e,n,i){if(e<0){Ga.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${e}`);return}this._record(e,n,i)}};Le.CounterInstrument=xg;var bg=class extends Fo{record(e,n,i){this._record(e,n,i)}};Le.GaugeInstrument=bg;var Og=class extends Fo{record(e,n,i){if(e<0){Ga.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${e}`);return}this._record(e,n,i)}};Le.HistogramInstrument=Og;var Yo=class{constructor(e,n,i){this._observableRegistry=i,this._descriptor=e,this._metricStorages=n}addCallback(e){this._observableRegistry.addCallback(e,this)}removeCallback(e){this._observableRegistry.removeCallback(e,this)}};Le.ObservableInstrument=Yo;var Rg=class extends Yo{};Le.ObservableCounterInstrument=Rg;var Pg=class extends Yo{};Le.ObservableGaugeInstrument=Pg;var Ng=class extends Yo{};Le.ObservableUpDownCounterInstrument=Ng;function GIe(t){return t instanceof Yo}Le.isObservableInstrument=GIe});var ZY=_(Wf=>{"use strict";l();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.Meter=void 0;var Mt=sn(),Ko=zf(),Mg=class{constructor(e){this._meterSharedState=e}createGauge(e,n){let i=(0,Mt.createInstrumentDescriptor)(e,Mt.InstrumentType.GAUGE,n),a=this._meterSharedState.registerMetricStorage(i);return new Ko.GaugeInstrument(a,i)}createHistogram(e,n){let i=(0,Mt.createInstrumentDescriptor)(e,Mt.InstrumentType.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new Ko.HistogramInstrument(a,i)}createCounter(e,n){let i=(0,Mt.createInstrumentDescriptor)(e,Mt.InstrumentType.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new Ko.CounterInstrument(a,i)}createUpDownCounter(e,n){let i=(0,Mt.createInstrumentDescriptor)(e,Mt.InstrumentType.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new Ko.UpDownCounterInstrument(a,i)}createObservableGauge(e,n){let i=(0,Mt.createInstrumentDescriptor)(e,Mt.InstrumentType.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Ko.ObservableGaugeInstrument(i,a,this._meterSharedState.observableRegistry)}createObservableCounter(e,n){let i=(0,Mt.createInstrumentDescriptor)(e,Mt.InstrumentType.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Ko.ObservableCounterInstrument(i,a,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(e,n){let i=(0,Mt.createInstrumentDescriptor)(e,Mt.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new Ko.ObservableUpDownCounterInstrument(i,a,this._meterSharedState.observableRegistry)}addBatchObservableCallback(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)}removeBatchObservableCallback(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)}};Wf.Meter=Mg});var Lg=_(Xf=>{"use strict";l();Object.defineProperty(Xf,"__esModule",{value:!0});Xf.MetricStorage=void 0;var jIe=sn(),Ig=class{constructor(e){this._instrumentDescriptor=e}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(e){this._instrumentDescriptor=(0,jIe.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};Xf.MetricStorage=Ig});var mc=_(ja=>{"use strict";l();Object.defineProperty(ja,"__esModule",{value:!0});ja.AttributeHashMap=ja.HashMap=void 0;var HIe=mr(),Jf=class{constructor(e){this._hash=e,this._valueMap=new Map,this._keyMap=new Map}get(e,n){return n??(n=this._hash(e)),this._valueMap.get(n)}getOrDefault(e,n){let i=this._hash(e);if(this._valueMap.has(i))return this._valueMap.get(i);let a=n();return this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,a),a}set(e,n,i){i??(i=this._hash(e)),this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,n)}has(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)}*keys(){let e=this._keyMap.entries(),n=e.next();for(;n.done!==!0;)yield[n.value[1],n.value[0]],n=e.next()}*entries(){let e=this._valueMap.entries(),n=e.next();for(;n.done!==!0;)yield[this._keyMap.get(n.value[0]),n.value[1],n.value[0]],n=e.next()}get size(){return this._valueMap.size}};ja.HashMap=Jf;var Cg=class extends Jf{constructor(){super(HIe.hashAttributes)}};ja.AttributeHashMap=Cg});var Ug=_(Qf=>{"use strict";l();Object.defineProperty(Qf,"__esModule",{value:!0});Qf.DeltaMetricProcessor=void 0;var qIe=mr(),wg=mc(),Dg=class{constructor(e,n){this._aggregator=e,this._activeCollectionStorage=new wg.AttributeHashMap,this._cumulativeMemoStorage=new wg.AttributeHashMap,this._overflowAttributes={"otel.metric.overflow":!0},this._cardinalityLimit=(n??2e3)-1,this._overflowHashCode=(0,qIe.hashAttributes)(this._overflowAttributes)}record(e,n,i,a){let c=this._activeCollectionStorage.get(n);if(!c){if(this._activeCollectionStorage.size>=this._cardinalityLimit){let o=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(a));o?.record(e);return}c=this._aggregator.createAccumulation(a),this._activeCollectionStorage.set(n,c)}c?.record(e)}batchCumulate(e,n){Array.from(e.entries()).forEach(([i,a,c])=>{let o=this._aggregator.createAccumulation(n);o?.record(a);let r=o;if(this._cumulativeMemoStorage.has(i,c)){let s=this._cumulativeMemoStorage.get(i,c);r=this._aggregator.diff(s,o)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(i=this._overflowAttributes,c=this._overflowHashCode,this._cumulativeMemoStorage.has(i,c))){let s=this._cumulativeMemoStorage.get(i,c);r=this._aggregator.diff(s,o)}if(this._activeCollectionStorage.has(i,c)){let s=this._activeCollectionStorage.get(i,c);r=this._aggregator.merge(s,r)}this._cumulativeMemoStorage.set(i,o,c),this._activeCollectionStorage.set(i,r,c)})}collect(){let e=this._activeCollectionStorage;return this._activeCollectionStorage=new wg.AttributeHashMap,e}};Qf.DeltaMetricProcessor=Dg});var kg=_(Zf=>{"use strict";l();Object.defineProperty(Zf,"__esModule",{value:!0});Zf.TemporalMetricProcessor=void 0;var FIe=ef(),YIe=mc(),Vg=class t{constructor(e,n){this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(i=>{this._unreportedAccumulations.set(i,[])})}buildMetrics(e,n,i,a){this._stashAccumulations(i);let c=this._getMergedUnreportedAccumulations(e),o=c,r;if(this._reportHistory.has(e)){let u=this._reportHistory.get(e),p=u.collectionTime;r=u.aggregationTemporality,r===FIe.AggregationTemporality.CUMULATIVE?o=t.merge(u.accumulations,c,this._aggregator):o=t.calibrateStartTime(u.accumulations,c,p)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:o,collectionTime:a,aggregationTemporality:r});let s=KIe(o);if(s.length!==0)return this._aggregator.toMetricData(n,r,s,a)}_stashAccumulations(e){let n=this._unreportedAccumulations.keys();for(let i of n){let a=this._unreportedAccumulations.get(i);a===void 0&&(a=[],this._unreportedAccumulations.set(i,a)),a.push(e)}}_getMergedUnreportedAccumulations(e){let n=new YIe.AttributeHashMap,i=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),i===void 0)return n;for(let a of i)n=t.merge(n,a,this._aggregator);return n}static merge(e,n,i){let a=e,c=n.entries(),o=c.next();for(;o.done!==!0;){let[r,s,u]=o.value;if(e.has(r,u)){let p=e.get(r,u),S=i.merge(p,s);a.set(r,S,u)}else a.set(r,s,u);o=c.next()}return a}static calibrateStartTime(e,n,i){for(let[a,c]of e.keys()){let o=n.get(a,c);o?.setStartTime(i)}return n}};Zf.TemporalMetricProcessor=Vg;function KIe(t){return Array.from(t.entries())}});var eK=_(e_=>{"use strict";l();Object.defineProperty(e_,"__esModule",{value:!0});e_.AsyncMetricStorage=void 0;var $Ie=Lg(),zIe=Ug(),WIe=kg(),XIe=mc(),Bg=class extends $Ie.MetricStorage{constructor(e,n,i,a,c){super(e),this._attributesProcessor=i,this._aggregationCardinalityLimit=c,this._deltaMetricStorage=new zIe.DeltaMetricProcessor(n,this._aggregationCardinalityLimit),this._temporalMetricStorage=new WIe.TemporalMetricProcessor(n,a)}record(e,n){let i=new XIe.AttributeHashMap;Array.from(e.entries()).forEach(([a,c])=>{i.set(this._attributesProcessor.process(a),c)}),this._deltaMetricStorage.batchCumulate(i,n)}collect(e,n){let i=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,i,n)}};e_.AsyncMetricStorage=Bg});var iK=_(It=>{"use strict";l();Object.defineProperty(It,"__esModule",{value:!0});It.getConflictResolutionRecipe=It.getDescriptionResolutionRecipe=It.getTypeConflictResolutionRecipe=It.getUnitConflictResolutionRecipe=It.getValueTypeConflictResolutionRecipe=It.getIncompatibilityDetails=void 0;function JIe(t,e){let n="";return t.unit!==e.unit&&(n+=` - Unit '${t.unit}' does not match '${e.unit}'
|
|
40
|
+
`),t.type!==e.type&&(n+=` - Type '${t.type}' does not match '${e.type}'
|
|
41
|
+
`),t.valueType!==e.valueType&&(n+=` - Value Type '${t.valueType}' does not match '${e.valueType}'
|
|
42
|
+
`),t.description!==e.description&&(n+=` - Description '${t.description}' does not match '${e.description}'
|
|
43
|
+
`),n}It.getIncompatibilityDetails=JIe;function tK(t,e){return` - use valueType '${t.valueType}' on instrument creation or use an instrument name other than '${e.name}'`}It.getValueTypeConflictResolutionRecipe=tK;function rK(t,e){return` - use unit '${t.unit}' on instrument creation or use an instrument name other than '${e.name}'`}It.getUnitConflictResolutionRecipe=rK;function nK(t,e){let n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return` - create a new view with a name other than '${t.name}' and InstrumentSelector '${i}'`}It.getTypeConflictResolutionRecipe=nK;function oK(t,e){let n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return` - create a new view with a name other than '${t.name}' and InstrumentSelector '${i}'
|
|
44
|
+
- OR - create a new view with the name ${t.name} and description '${t.description}' and InstrumentSelector ${i}
|
|
45
|
+
- OR - create a new view with the name ${e.name} and description '${t.description}' and InstrumentSelector ${i}`}It.getDescriptionResolutionRecipe=oK;function QIe(t,e){return t.valueType!==e.valueType?tK(t,e):t.unit!==e.unit?rK(t,e):t.type!==e.type?nK(t,e):t.description!==e.description?oK(t,e):""}It.getConflictResolutionRecipe=QIe});var sK=_(r_=>{"use strict";l();Object.defineProperty(r_,"__esModule",{value:!0});r_.MetricStorageRegistry=void 0;var ZIe=sn(),aK=(L(),N(C)),t_=iK(),Gg=class t{constructor(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}static create(){return new t}getStorages(e){let n=[];for(let a of this._sharedRegistry.values())n=n.concat(a);let i=this._perCollectorRegistry.get(e);if(i!=null)for(let a of i.values())n=n.concat(a);return n}register(e){this._registerStorage(e,this._sharedRegistry)}registerForCollector(e,n){let i=this._perCollectorRegistry.get(e);i==null&&(i=new Map,this._perCollectorRegistry.set(e,i)),this._registerStorage(n,i)}findOrUpdateCompatibleStorage(e){let n=this._sharedRegistry.get(e.name);return n===void 0?null:this._findOrUpdateCompatibleStorage(e,n)}findOrUpdateCompatibleCollectorStorage(e,n){let i=this._perCollectorRegistry.get(e);if(i===void 0)return null;let a=i.get(n.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(n,a)}_registerStorage(e,n){let i=e.getInstrumentDescriptor(),a=n.get(i.name);if(a===void 0){n.set(i.name,[e]);return}a.push(e)}_findOrUpdateCompatibleStorage(e,n){let i=null;for(let a of n){let c=a.getInstrumentDescriptor();(0,ZIe.isDescriptorCompatibleWith)(c,e)?(c.description!==e.description&&(e.description.length>c.description.length&&a.updateDescription(e.description),aK.diag.warn("A view or instrument with the name ",e.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
|
46
|
+
`,`Details:
|
|
47
|
+
`,(0,t_.getIncompatibilityDetails)(c,e),`The longer description will be used.
|
|
48
|
+
To resolve the conflict:`,(0,t_.getConflictResolutionRecipe)(c,e))),i=a):aK.diag.warn("A view or instrument with the name ",e.name,` has already been registered and is incompatible with another registered view.
|
|
49
|
+
`,`Details:
|
|
50
|
+
`,(0,t_.getIncompatibilityDetails)(c,e),`To resolve the conflict:
|
|
51
|
+
`,(0,t_.getConflictResolutionRecipe)(c,e))}return i}};r_.MetricStorageRegistry=Gg});var cK=_(n_=>{"use strict";l();Object.defineProperty(n_,"__esModule",{value:!0});n_.MultiMetricStorage=void 0;var jg=class{constructor(e){this._backingStorages=e}record(e,n,i,a){this._backingStorages.forEach(c=>{c.record(e,n,i,a)})}};n_.MultiMetricStorage=jg});var lK=_(qa=>{"use strict";l();Object.defineProperty(qa,"__esModule",{value:!0});qa.BatchObservableResultImpl=qa.ObservableResultImpl=void 0;var Ha=(L(),N(C)),uK=mc(),eLe=zf(),Hg=class{constructor(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new uK.AttributeHashMap}observe(e,n={}){if(typeof e!="number"){Ha.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${e}`);return}this._valueType===Ha.ValueType.INT&&!Number.isInteger(e)&&(Ha.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)}};qa.ObservableResultImpl=Hg;var qg=class{constructor(){this._buffer=new Map}observe(e,n,i={}){if(!(0,eLe.isObservableInstrument)(e))return;let a=this._buffer.get(e);if(a==null&&(a=new uK.AttributeHashMap,this._buffer.set(e,a)),typeof n!="number"){Ha.diag.warn(`non-number value provided to metric ${e._descriptor.name}: ${n}`);return}e._descriptor.valueType===Ha.ValueType.INT&&!Number.isInteger(n)&&(Ha.diag.warn(`INT value type cannot accept a floating-point value for ${e._descriptor.name}, ignoring the fractional digits.`),n=Math.trunc(n),!Number.isInteger(n))||a.set(i,n)}};qa.BatchObservableResultImpl=qg});var fK=_(o_=>{"use strict";l();Object.defineProperty(o_,"__esModule",{value:!0});o_.ObservableRegistry=void 0;var tLe=(L(),N(C)),pK=zf(),dK=lK(),Ec=mr(),Fg=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(e,n){this._findCallback(e,n)>=0||this._callbacks.push({callback:e,instrument:n})}removeCallback(e,n){let i=this._findCallback(e,n);i<0||this._callbacks.splice(i,1)}addBatchCallback(e,n){let i=new Set(n.filter(pK.isObservableInstrument));if(i.size===0){tLe.diag.error("BatchObservableCallback is not associated with valid instruments",n);return}this._findBatchCallback(e,i)>=0||this._batchCallbacks.push({callback:e,instruments:i})}removeBatchCallback(e,n){let i=new Set(n.filter(pK.isObservableInstrument)),a=this._findBatchCallback(e,i);a<0||this._batchCallbacks.splice(a,1)}async observe(e,n){let i=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n);return(await(0,Ec.PromiseAllSettled)([...i,...a])).filter(Ec.isPromiseAllSettledRejectionResult).map(r=>r.reason)}_observeCallbacks(e,n){return this._callbacks.map(async({callback:i,instrument:a})=>{let c=new dK.ObservableResultImpl(a._descriptor.name,a._descriptor.valueType),o=Promise.resolve(i(c));n!=null&&(o=(0,Ec.callWithTimeout)(o,n)),await o,a._metricStorages.forEach(r=>{r.record(c._buffer,e)})})}_observeBatchCallbacks(e,n){return this._batchCallbacks.map(async({callback:i,instruments:a})=>{let c=new dK.BatchObservableResultImpl,o=Promise.resolve(i(c));n!=null&&(o=(0,Ec.callWithTimeout)(o,n)),await o,a.forEach(r=>{let s=c._buffer.get(r);s!=null&&r._metricStorages.forEach(u=>{u.record(s,e)})})})}_findCallback(e,n){return this._callbacks.findIndex(i=>i.callback===e&&i.instrument===n)}_findBatchCallback(e,n){return this._batchCallbacks.findIndex(i=>i.callback===e&&(0,Ec.setEquals)(i.instruments,n))}};o_.ObservableRegistry=Fg});var _K=_(i_=>{"use strict";l();Object.defineProperty(i_,"__esModule",{value:!0});i_.SyncMetricStorage=void 0;var rLe=Lg(),nLe=Ug(),oLe=kg(),Yg=class extends rLe.MetricStorage{constructor(e,n,i,a,c){super(e),this._attributesProcessor=i,this._aggregationCardinalityLimit=c,this._deltaMetricStorage=new nLe.DeltaMetricProcessor(n,this._aggregationCardinalityLimit),this._temporalMetricStorage=new oLe.TemporalMetricProcessor(n,a)}record(e,n,i,a){n=this._attributesProcessor.process(n,i),this._deltaMetricStorage.record(e,n,i,a)}collect(e,n){let i=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,i,n)}};i_.SyncMetricStorage=Yg});var $g=_(Fn=>{"use strict";l();Object.defineProperty(Fn,"__esModule",{value:!0});Fn.FilteringAttributesProcessor=Fn.NoopAttributesProcessor=Fn.AttributesProcessor=void 0;var hc=class{static Noop(){return iLe}};Fn.AttributesProcessor=hc;var a_=class extends hc{process(e,n){return e}};Fn.NoopAttributesProcessor=a_;var Kg=class extends hc{constructor(e){super(),this._allowedAttributeNames=e}process(e,n){let i={};return Object.keys(e).filter(a=>this._allowedAttributeNames.includes(a)).forEach(a=>i[a]=e[a]),i}};Fn.FilteringAttributesProcessor=Kg;var iLe=new a_});var mK=_(s_=>{"use strict";l();Object.defineProperty(s_,"__esModule",{value:!0});s_.MeterSharedState=void 0;var aLe=sn(),sLe=ZY(),cLe=mr(),uLe=eK(),lLe=sK(),pLe=cK(),dLe=fK(),fLe=_K(),_Le=$g(),zg=class{constructor(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new lLe.MetricStorageRegistry,this.observableRegistry=new dLe.ObservableRegistry,this.meter=new sLe.Meter(this)}registerMetricStorage(e){let n=this._registerMetricStorage(e,fLe.SyncMetricStorage);return n.length===1?n[0]:new pLe.MultiMetricStorage(n)}registerAsyncMetricStorage(e){return this._registerMetricStorage(e,uLe.AsyncMetricStorage)}async collect(e,n,i){let a=await this.observableRegistry.observe(n,i?.timeoutMillis),c=this.metricStorageRegistry.getStorages(e);if(c.length===0)return null;let o=c.map(r=>r.collect(e,n)).filter(cLe.isNotNullish);return o.length===0?{errors:a}:{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:a}}_registerMetricStorage(e,n){let a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope).map(c=>{let o=(0,aLe.createInstrumentDescriptorWithView)(c,e),r=this.metricStorageRegistry.findOrUpdateCompatibleStorage(o);if(r!=null)return r;let s=c.aggregation.createAggregator(o),u=new n(o,s,c.attributesProcessor,this._meterProviderSharedState.metricCollectors,c.aggregationCardinalityLimit);return this.metricStorageRegistry.register(u),u});if(a.length===0){let o=this._meterProviderSharedState.selectAggregations(e.type).map(([r,s])=>{let u=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(r,e);if(u!=null)return u;let p=s.createAggregator(e),S=r.selectCardinalityLimit(e.type),A=new n(e,p,_Le.AttributesProcessor.Noop(),[r],S);return this.metricStorageRegistry.registerForCollector(r,A),A});a=a.concat(o)}return a}};s_.MeterSharedState=zg});var EK=_(c_=>{"use strict";l();Object.defineProperty(c_,"__esModule",{value:!0});c_.MeterProviderSharedState=void 0;var mLe=mr(),ELe=QY(),hLe=mK(),Wg=class{constructor(e){this.resource=e,this.viewRegistry=new ELe.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(e){let n=(0,mLe.instrumentationScopeId)(e),i=this.meterSharedStates.get(n);return i==null&&(i=new hLe.MeterSharedState(this,e),this.meterSharedStates.set(n,i)),i}selectAggregations(e){let n=[];for(let i of this.metricCollectors)n.push([i,i.selectAggregation(e)]);return n}};c_.MeterProviderSharedState=Wg});var hK=_(u_=>{"use strict";l();Object.defineProperty(u_,"__esModule",{value:!0});u_.MetricCollector=void 0;var TLe=jt(),Xg=class{constructor(e,n){this._sharedState=e,this._metricReader=n}async collect(e){let n=(0,TLe.millisToHrTime)(Date.now()),i=[],a=[],c=Array.from(this._sharedState.meterSharedStates.values()).map(async o=>{let r=await o.collect(this,n,e);r?.scopeMetrics!=null&&i.push(r.scopeMetrics),r?.errors!=null&&a.push(...r.errors)});return await Promise.all(c),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:i},errors:a}}async forceFlush(e){await this._metricReader.forceFlush(e)}async shutdown(e){await this._metricReader.shutdown(e)}selectAggregationTemporality(e){return this._metricReader.selectAggregationTemporality(e)}selectAggregation(e){return this._metricReader.selectAggregation(e)}selectCardinalityLimit(e){var n,i,a;return(a=(i=(n=this._metricReader).selectCardinalityLimit)===null||i===void 0?void 0:i.call(n,e))!==null&&a!==void 0?a:2e3}};u_.MetricCollector=Xg});var SK=_(p_=>{"use strict";l();Object.defineProperty(p_,"__esModule",{value:!0});p_.MeterProvider=void 0;var l_=(L(),N(C)),TK=JY(),SLe=EK(),vLe=hK();function gLe(t,e){let n=e??TK.Resource.empty();return t?TK.Resource.default().merge(n):n}var Jg=class{constructor(e){var n;if(this._shutdown=!1,this._sharedState=new SLe.MeterProviderSharedState(gLe((n=e?.mergeResourceWithDefaults)!==null&&n!==void 0?n:!0,e?.resource)),e?.views!=null&&e.views.length>0)for(let i of e.views)this._sharedState.viewRegistry.addView(i);if(e?.readers!=null&&e.readers.length>0)for(let i of e.readers)this.addMetricReader(i)}getMeter(e,n="",i={}){return this._shutdown?(l_.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,l_.createNoopMeter)()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter}addMetricReader(e){let n=new vLe.MetricCollector(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)}async shutdown(e){if(this._shutdown){l_.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(n=>n.shutdown(e)))}async forceFlush(e){if(this._shutdown){l_.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(n=>n.forceFlush(e)))}};p_.MeterProvider=Jg});var d_=_(Fa=>{"use strict";l();Object.defineProperty(Fa,"__esModule",{value:!0});Fa.ExactPredicate=Fa.PatternPredicate=void 0;var yLe=/[\^$\\.+?()[\]{}|]/g,Qg=class t{constructor(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(t.escapePattern(e)))}match(e){return this._matchAll?!0:this._regexp.test(e)}static escapePattern(e){return`^${e.replace(yLe,"\\$&").replace("*",".*")}$`}static hasWildcard(e){return e.includes("*")}};Fa.PatternPredicate=Qg;var Zg=class{constructor(e){this._matchAll=e===void 0,this._pattern=e}match(e){return!!(this._matchAll||e===this._pattern)}};Fa.ExactPredicate=Zg});var gK=_(f_=>{"use strict";l();Object.defineProperty(f_,"__esModule",{value:!0});f_.InstrumentSelector=void 0;var vK=d_(),ey=class{constructor(e){var n;this._nameFilter=new vK.PatternPredicate((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new vK.ExactPredicate(e?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};f_.InstrumentSelector=ey});var yK=_(__=>{"use strict";l();Object.defineProperty(__,"__esModule",{value:!0});__.MeterSelector=void 0;var ty=d_(),ry=class{constructor(e){this._nameFilter=new ty.ExactPredicate(e?.name),this._versionFilter=new ty.ExactPredicate(e?.version),this._schemaUrlFilter=new ty.ExactPredicate(e?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};__.MeterSelector=ry});var xK=_(m_=>{"use strict";l();Object.defineProperty(m_,"__esModule",{value:!0});m_.View=void 0;var ALe=d_(),AK=$g(),xLe=gK(),bLe=yK(),OLe=hf();function RLe(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var ny=class{constructor(e){var n;if(RLe(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||ALe.PatternPredicate.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new AK.FilteringAttributesProcessor(e.attributeKeys):this.attributesProcessor=AK.AttributesProcessor.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:OLe.Aggregation.Default(),this.instrumentSelector=new xLe.InstrumentSelector({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new bLe.MeterSelector({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl}),this.aggregationCardinalityLimit=e.aggregationCardinalityLimit}};m_.View=ny});var oy=_(re=>{"use strict";l();Object.defineProperty(re,"__esModule",{value:!0});re.TimeoutError=re.View=re.Aggregation=re.SumAggregation=re.LastValueAggregation=re.HistogramAggregation=re.DropAggregation=re.ExponentialHistogramAggregation=re.ExplicitBucketHistogramAggregation=re.DefaultAggregation=re.MeterProvider=re.InstrumentType=re.ConsoleMetricExporter=re.InMemoryMetricExporter=re.PeriodicExportingMetricReader=re.MetricReader=re.DataPointType=re.AggregationTemporality=void 0;var PLe=ef();Object.defineProperty(re,"AggregationTemporality",{enumerable:!0,get:function(){return PLe.AggregationTemporality}});var NLe=ya();Object.defineProperty(re,"DataPointType",{enumerable:!0,get:function(){return NLe.DataPointType}});var MLe=Xv();Object.defineProperty(re,"MetricReader",{enumerable:!0,get:function(){return MLe.MetricReader}});var ILe=SY();Object.defineProperty(re,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return ILe.PeriodicExportingMetricReader}});var LLe=gY();Object.defineProperty(re,"InMemoryMetricExporter",{enumerable:!0,get:function(){return LLe.InMemoryMetricExporter}});var CLe=AY();Object.defineProperty(re,"ConsoleMetricExporter",{enumerable:!0,get:function(){return CLe.ConsoleMetricExporter}});var wLe=sn();Object.defineProperty(re,"InstrumentType",{enumerable:!0,get:function(){return wLe.InstrumentType}});var DLe=SK();Object.defineProperty(re,"MeterProvider",{enumerable:!0,get:function(){return DLe.MeterProvider}});var Yn=hf();Object.defineProperty(re,"DefaultAggregation",{enumerable:!0,get:function(){return Yn.DefaultAggregation}});Object.defineProperty(re,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return Yn.ExplicitBucketHistogramAggregation}});Object.defineProperty(re,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return Yn.ExponentialHistogramAggregation}});Object.defineProperty(re,"DropAggregation",{enumerable:!0,get:function(){return Yn.DropAggregation}});Object.defineProperty(re,"HistogramAggregation",{enumerable:!0,get:function(){return Yn.HistogramAggregation}});Object.defineProperty(re,"LastValueAggregation",{enumerable:!0,get:function(){return Yn.LastValueAggregation}});Object.defineProperty(re,"SumAggregation",{enumerable:!0,get:function(){return Yn.SumAggregation}});Object.defineProperty(re,"Aggregation",{enumerable:!0,get:function(){return Yn.Aggregation}});var ULe=xK();Object.defineProperty(re,"View",{enumerable:!0,get:function(){return ULe.View}});var VLe=mr();Object.defineProperty(re,"TimeoutError",{enumerable:!0,get:function(){return VLe.TimeoutError}})});var iy=_(Tc=>{"use strict";l();Object.defineProperty(Tc,"__esModule",{value:!0});Tc.AggregationTemporalityPreference=void 0;var kLe;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(kLe=Tc.AggregationTemporalityPreference||(Tc.AggregationTemporalityPreference={}))});var bK,OK=w(()=>{l();bK=(function(){function t(e){this._delegate=e}return t.prototype.export=function(e,n){this._delegate.export(e,n)},t.prototype.forceFlush=function(){return this._delegate.forceFlush()},t.prototype.shutdown=function(){return this._delegate.shutdown()},t})()});var BLe,$o,E_=w(()=>{l();BLe=(function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),$o=(function(t){BLe(e,t);function e(n,i,a){var c=t.call(this,n)||this;return c.name="OTLPExporterError",c.data=a,c.code=i,c}return e})(Error)});function GLe(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}function h_(t){if(t!=null)return function(){return t}}function T_(t,e,n){var i,a,c,o,r,s;return{timeoutMillis:GLe((a=(i=t.timeoutMillis)!==null&&i!==void 0?i:e.timeoutMillis)!==null&&a!==void 0?a:n.timeoutMillis),concurrencyLimit:(o=(c=t.concurrencyLimit)!==null&&c!==void 0?c:e.concurrencyLimit)!==null&&o!==void 0?o:n.concurrencyLimit,compression:(s=(r=t.compression)!==null&&r!==void 0?r:e.compression)!==null&&s!==void 0?s:n.compression}}function S_(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var Sc=w(()=>{l()});var v_,RK=w(()=>{l();(function(t){t.NONE="none",t.GZIP="gzip"})(v_||(v_={}))});function g_(t){return new qLe(t.concurrencyLimit)}var jLe,HLe,qLe,ay=w(()=>{l();jLe=function(t,e,n,i){function a(c){return c instanceof n?c:new n(function(o){o(c)})}return new(n||(n=Promise))(function(c,o){function r(p){try{u(i.next(p))}catch(S){o(S)}}function s(p){try{u(i.throw(p))}catch(S){o(S)}}function u(p){p.done?c(p.value):a(p.value).then(r,s)}u((i=i.apply(t,e||[])).next())})},HLe=function(t,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,a,c,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(u){return function(p){return s([u,p])}}function s(u){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(c=u[0]&2?a.return:u[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,u[1])).done)return c;switch(a=0,c&&(u=[u[0]&2,c.value]),u[0]){case 0:case 1:c=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(c=n.trys,!(c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1],c=u;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(u);break}c[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(p){u=[6,p],a=0}finally{i=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},qLe=(function(){function t(e){this._sendingPromises=[],this._concurrencyLimit=e}return t.prototype.pushPromise=function(e){var n=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);var i=function(){var a=n._sendingPromises.indexOf(e);n._sendingPromises.splice(a,1)};e.then(i,i)},t.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},t.prototype.awaitAll=function(){return jLe(this,void 0,void 0,function(){return HLe(this,function(e){switch(e.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return e.sent(),[2]}})})},t})()});function FLe(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function PK(){return{handleResponse:function(t){t==null||!FLe(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||_e.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}var NK=w(()=>{l();L()});function y_(t,e){return new $Le(t.transport,t.serializer,PK(),t.promiseHandler,e.timeout)}var Kn,YLe,KLe,$Le,sy=w(()=>{l();Kn=Se(jt());E_();NK();L();YLe=function(t,e,n,i){function a(c){return c instanceof n?c:new n(function(o){o(c)})}return new(n||(n=Promise))(function(c,o){function r(p){try{u(i.next(p))}catch(S){o(S)}}function s(p){try{u(i.throw(p))}catch(S){o(S)}}function u(p){p.done?c(p.value):a(p.value).then(r,s)}u((i=i.apply(t,e||[])).next())})},KLe=function(t,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,a,c,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(u){return function(p){return s([u,p])}}function s(u){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(c=u[0]&2?a.return:u[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,u[1])).done)return c;switch(a=0,c&&(u=[u[0]&2,c.value]),u[0]){case 0:case 1:c=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(c=n.trys,!(c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1],c=u;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(u);break}c[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(p){u=[6,p],a=0}finally{i=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$Le=(function(){function t(e,n,i,a,c){this._transport=e,this._serializer=n,this._responseHandler=i,this._promiseQueue=a,this._timeout=c,this._diagLogger=_e.createComponentLogger({namespace:"OTLPExportDelegate"})}return t.prototype.export=function(e,n){var i=this;if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){n({code:Kn.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}var a=this._serializer.serializeRequest(e);if(a==null){n({code:Kn.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(a,this._timeout).then(function(c){if(c.status==="success"){if(c.data!=null)try{i._responseHandler.handleResponse(i._serializer.deserializeResponse(c.data))}catch(o){i._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,c.data)}n({code:Kn.ExportResultCode.SUCCESS});return}else if(c.status==="failure"&&c.error){n({code:Kn.ExportResultCode.FAILED,error:c.error});return}else c.status==="retryable"?n({code:Kn.ExportResultCode.FAILED,error:new $o("Export failed with retryable status")}):n({code:Kn.ExportResultCode.FAILED,error:new $o("Export failed with unknown error")})},function(c){return n({code:Kn.ExportResultCode.FAILED,error:c})}))},t.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},t.prototype.shutdown=function(){return YLe(this,void 0,void 0,function(){return KLe(this,function(e){switch(e.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return e.sent(),this._transport.shutdown(),[2]}})})},t})()});function MK(t,e,n){return y_({transport:n,serializer:e,promiseHandler:g_(t)},{timeout:t.timeoutMillis})}var IK=w(()=>{l();ay();sy()});var LK={};Qn(LK,{CompressionAlgorithm:()=>v_,OTLPExporterBase:()=>bK,OTLPExporterError:()=>$o,createOtlpNetworkExportDelegate:()=>MK,getSharedConfigurationDefaults:()=>S_,mergeOtlpSharedConfigurationWithDefaults:()=>T_});var CK=w(()=>{l();OK();E_();Sc();RK();IK()});var uy=_(it=>{"use strict";l();Object.defineProperty(it,"__esModule",{value:!0});it.OTLPMetricExporterBase=it.LowMemoryTemporalitySelector=it.DeltaTemporalitySelector=it.CumulativeTemporalitySelector=void 0;var zLe=jt(),Be=oy(),wK=iy(),WLe=(CK(),N(LK)),XLe=(L(),N(C)),JLe=()=>Be.AggregationTemporality.CUMULATIVE;it.CumulativeTemporalitySelector=JLe;var QLe=t=>{switch(t){case Be.InstrumentType.COUNTER:case Be.InstrumentType.OBSERVABLE_COUNTER:case Be.InstrumentType.GAUGE:case Be.InstrumentType.HISTOGRAM:case Be.InstrumentType.OBSERVABLE_GAUGE:return Be.AggregationTemporality.DELTA;case Be.InstrumentType.UP_DOWN_COUNTER:case Be.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Be.AggregationTemporality.CUMULATIVE}};it.DeltaTemporalitySelector=QLe;var ZLe=t=>{switch(t){case Be.InstrumentType.COUNTER:case Be.InstrumentType.HISTOGRAM:return Be.AggregationTemporality.DELTA;case Be.InstrumentType.GAUGE:case Be.InstrumentType.UP_DOWN_COUNTER:case Be.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:case Be.InstrumentType.OBSERVABLE_COUNTER:case Be.InstrumentType.OBSERVABLE_GAUGE:return Be.AggregationTemporality.CUMULATIVE}};it.LowMemoryTemporalitySelector=ZLe;function eCe(){let t=(0,zLe.getEnv)(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?it.CumulativeTemporalitySelector:e==="delta"?it.DeltaTemporalitySelector:e==="lowmemory"?it.LowMemoryTemporalitySelector:(XLe.diag.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),it.CumulativeTemporalitySelector)}function tCe(t){return t!=null?t===wK.AggregationTemporalityPreference.DELTA?it.DeltaTemporalitySelector:t===wK.AggregationTemporalityPreference.LOWMEMORY?it.LowMemoryTemporalitySelector:it.CumulativeTemporalitySelector:eCe()}function rCe(t){return t?.aggregationPreference?t.aggregationPreference:e=>Be.Aggregation.Default()}var cy=class extends WLe.OTLPExporterBase{constructor(e,n){super(e),this._aggregationSelector=rCe(n),this._aggregationTemporalitySelector=tCe(n?.temporalityPreference)}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}};it.OTLPMetricExporterBase=cy});var UK=_(($Je,DK)=>{"use strict";l();DK.exports=nCe;function nCe(t,e){for(var n=new Array(arguments.length-1),i=0,a=2,c=!0;a<arguments.length;)n[i++]=arguments[a++];return new Promise(function(r,s){n[i]=function(p){if(c)if(c=!1,p)s(p);else{for(var S=new Array(arguments.length-1),A=0;A<S.length;)S[A++]=arguments[A];r.apply(null,S)}};try{t.apply(e||null,n)}catch(u){c&&(c=!1,s(u))}})}});var GK=_(BK=>{"use strict";l();var A_=BK;A_.length=function(e){var n=e.length;if(!n)return 0;for(var i=0;--n%4>1&&e.charAt(n)==="=";)++i;return Math.ceil(e.length*3)/4-i};var Ya=new Array(64),kK=new Array(123);for(hr=0;hr<64;)kK[Ya[hr]=hr<26?hr+65:hr<52?hr+71:hr<62?hr-4:hr-59|43]=hr++;var hr;A_.encode=function(e,n,i){for(var a=null,c=[],o=0,r=0,s;n<i;){var u=e[n++];switch(r){case 0:c[o++]=Ya[u>>2],s=(u&3)<<4,r=1;break;case 1:c[o++]=Ya[s|u>>4],s=(u&15)<<2,r=2;break;case 2:c[o++]=Ya[s|u>>6],c[o++]=Ya[u&63],r=0;break}o>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,c)),o=0)}return r&&(c[o++]=Ya[s],c[o++]=61,r===1&&(c[o++]=61)),a?(o&&a.push(String.fromCharCode.apply(String,c.slice(0,o))),a.join("")):String.fromCharCode.apply(String,c.slice(0,o))};var VK="invalid encoding";A_.decode=function(e,n,i){for(var a=i,c=0,o,r=0;r<e.length;){var s=e.charCodeAt(r++);if(s===61&&c>1)break;if((s=kK[s])===void 0)throw Error(VK);switch(c){case 0:o=s,c=1;break;case 1:n[i++]=o<<2|(s&48)>>4,o=s,c=2;break;case 2:n[i++]=(o&15)<<4|(s&60)>>2,o=s,c=3;break;case 3:n[i++]=(o&3)<<6|s,c=0;break}}if(c===1)throw Error(VK);return i-a};A_.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var HK=_((JJe,jK)=>{"use strict";l();jK.exports=x_;function x_(){this._listeners={}}x_.prototype.on=function(e,n,i){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:n,ctx:i||this}),this};x_.prototype.off=function(e,n){if(e===void 0)this._listeners={};else if(n===void 0)this._listeners[e]=[];else for(var i=this._listeners[e],a=0;a<i.length;)i[a].fn===n?i.splice(a,1):++a;return this};x_.prototype.emit=function(e){var n=this._listeners[e];if(n){for(var i=[],a=1;a<arguments.length;)i.push(arguments[a++]);for(a=0;a<n.length;)n[a].fn.apply(n[a++].ctx,i)}return this}});var WK=_((ZJe,zK)=>{"use strict";l();zK.exports=qK(qK);function qK(t){return typeof Float32Array<"u"?(function(){var e=new Float32Array([-0]),n=new Uint8Array(e.buffer),i=n[3]===128;function a(s,u,p){e[0]=s,u[p]=n[0],u[p+1]=n[1],u[p+2]=n[2],u[p+3]=n[3]}function c(s,u,p){e[0]=s,u[p]=n[3],u[p+1]=n[2],u[p+2]=n[1],u[p+3]=n[0]}t.writeFloatLE=i?a:c,t.writeFloatBE=i?c:a;function o(s,u){return n[0]=s[u],n[1]=s[u+1],n[2]=s[u+2],n[3]=s[u+3],e[0]}function r(s,u){return n[3]=s[u],n[2]=s[u+1],n[1]=s[u+2],n[0]=s[u+3],e[0]}t.readFloatLE=i?o:r,t.readFloatBE=i?r:o})():(function(){function e(i,a,c,o){var r=a<0?1:0;if(r&&(a=-a),a===0)i(1/a>0?0:2147483648,c,o);else if(isNaN(a))i(2143289344,c,o);else if(a>34028234663852886e22)i((r<<31|2139095040)>>>0,c,o);else if(a<11754943508222875e-54)i((r<<31|Math.round(a/1401298464324817e-60))>>>0,c,o);else{var s=Math.floor(Math.log(a)/Math.LN2),u=Math.round(a*Math.pow(2,-s)*8388608)&8388607;i((r<<31|s+127<<23|u)>>>0,c,o)}}t.writeFloatLE=e.bind(null,FK),t.writeFloatBE=e.bind(null,YK);function n(i,a,c){var o=i(a,c),r=(o>>31)*2+1,s=o>>>23&255,u=o&8388607;return s===255?u?NaN:r*(1/0):s===0?r*1401298464324817e-60*u:r*Math.pow(2,s-150)*(u+8388608)}t.readFloatLE=n.bind(null,KK),t.readFloatBE=n.bind(null,$K)})(),typeof Float64Array<"u"?(function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),i=n[7]===128;function a(s,u,p){e[0]=s,u[p]=n[0],u[p+1]=n[1],u[p+2]=n[2],u[p+3]=n[3],u[p+4]=n[4],u[p+5]=n[5],u[p+6]=n[6],u[p+7]=n[7]}function c(s,u,p){e[0]=s,u[p]=n[7],u[p+1]=n[6],u[p+2]=n[5],u[p+3]=n[4],u[p+4]=n[3],u[p+5]=n[2],u[p+6]=n[1],u[p+7]=n[0]}t.writeDoubleLE=i?a:c,t.writeDoubleBE=i?c:a;function o(s,u){return n[0]=s[u],n[1]=s[u+1],n[2]=s[u+2],n[3]=s[u+3],n[4]=s[u+4],n[5]=s[u+5],n[6]=s[u+6],n[7]=s[u+7],e[0]}function r(s,u){return n[7]=s[u],n[6]=s[u+1],n[5]=s[u+2],n[4]=s[u+3],n[3]=s[u+4],n[2]=s[u+5],n[1]=s[u+6],n[0]=s[u+7],e[0]}t.readDoubleLE=i?o:r,t.readDoubleBE=i?r:o})():(function(){function e(i,a,c,o,r,s){var u=o<0?1:0;if(u&&(o=-o),o===0)i(0,r,s+a),i(1/o>0?0:2147483648,r,s+c);else if(isNaN(o))i(0,r,s+a),i(2146959360,r,s+c);else if(o>17976931348623157e292)i(0,r,s+a),i((u<<31|2146435072)>>>0,r,s+c);else{var p;if(o<22250738585072014e-324)p=o/5e-324,i(p>>>0,r,s+a),i((u<<31|p/4294967296)>>>0,r,s+c);else{var S=Math.floor(Math.log(o)/Math.LN2);S===1024&&(S=1023),p=o*Math.pow(2,-S),i(p*4503599627370496>>>0,r,s+a),i((u<<31|S+1023<<20|p*1048576&1048575)>>>0,r,s+c)}}}t.writeDoubleLE=e.bind(null,FK,0,4),t.writeDoubleBE=e.bind(null,YK,4,0);function n(i,a,c,o,r){var s=i(o,r+a),u=i(o,r+c),p=(u>>31)*2+1,S=u>>>20&2047,A=4294967296*(u&1048575)+s;return S===2047?A?NaN:p*(1/0):S===0?p*5e-324*A:p*Math.pow(2,S-1075)*(A+4503599627370496)}t.readDoubleLE=n.bind(null,KK,0,4),t.readDoubleBE=n.bind(null,$K,4,0)})(),t}function FK(t,e,n){e[n]=t&255,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function YK(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=t&255}function KK(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function $K(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}});var XK=_((exports,module)=>{"use strict";l();module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}});var QK=_(JK=>{"use strict";l();var ly=JK;ly.length=function(e){for(var n=0,i=0,a=0;a<e.length;++a)i=e.charCodeAt(a),i<128?n+=1:i<2048?n+=2:(i&64512)===55296&&(e.charCodeAt(a+1)&64512)===56320?(++a,n+=4):n+=3;return n};ly.read=function(e,n,i){var a=i-n;if(a<1)return"";for(var c=null,o=[],r=0,s;n<i;)s=e[n++],s<128?o[r++]=s:s>191&&s<224?o[r++]=(s&31)<<6|e[n++]&63:s>239&&s<365?(s=((s&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,o[r++]=55296+(s>>10),o[r++]=56320+(s&1023)):o[r++]=(s&15)<<12|(e[n++]&63)<<6|e[n++]&63,r>8191&&((c||(c=[])).push(String.fromCharCode.apply(String,o)),r=0);return c?(r&&c.push(String.fromCharCode.apply(String,o.slice(0,r))),c.join("")):String.fromCharCode.apply(String,o.slice(0,r))};ly.write=function(e,n,i){for(var a=i,c,o,r=0;r<e.length;++r)c=e.charCodeAt(r),c<128?n[i++]=c:c<2048?(n[i++]=c>>6|192,n[i++]=c&63|128):(c&64512)===55296&&((o=e.charCodeAt(r+1))&64512)===56320?(c=65536+((c&1023)<<10)+(o&1023),++r,n[i++]=c>>18|240,n[i++]=c>>12&63|128,n[i++]=c>>6&63|128,n[i++]=c&63|128):(n[i++]=c>>12|224,n[i++]=c>>6&63|128,n[i++]=c&63|128);return i-a}});var e$=_((o5e,ZK)=>{"use strict";l();ZK.exports=oCe;function oCe(t,e,n){var i=n||8192,a=i>>>1,c=null,o=i;return function(s){if(s<1||s>a)return t(s);o+s>i&&(c=t(i),o=0);var u=e.call(c,o,o+=s);return o&7&&(o=(o|7)+1),u}}});var r$=_((a5e,t$)=>{"use strict";l();t$.exports=Ze;var vc=zn();function Ze(t,e){this.lo=t>>>0,this.hi=e>>>0}var zo=Ze.zero=new Ze(0,0);zo.toNumber=function(){return 0};zo.zzEncode=zo.zzDecode=function(){return this};zo.length=function(){return 1};var iCe=Ze.zeroHash="\0\0\0\0\0\0\0\0";Ze.fromNumber=function(e){if(e===0)return zo;var n=e<0;n&&(e=-e);var i=e>>>0,a=(e-i)/4294967296>>>0;return n&&(a=~a>>>0,i=~i>>>0,++i>4294967295&&(i=0,++a>4294967295&&(a=0))),new Ze(i,a)};Ze.from=function(e){if(typeof e=="number")return Ze.fromNumber(e);if(vc.isString(e))if(vc.Long)e=vc.Long.fromString(e);else return Ze.fromNumber(parseInt(e,10));return e.low||e.high?new Ze(e.low>>>0,e.high>>>0):zo};Ze.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var n=~this.lo+1>>>0,i=~this.hi>>>0;return n||(i=i+1>>>0),-(n+i*4294967296)}return this.lo+this.hi*4294967296};Ze.prototype.toLong=function(e){return vc.Long?new vc.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var $n=String.prototype.charCodeAt;Ze.fromHash=function(e){return e===iCe?zo:new Ze(($n.call(e,0)|$n.call(e,1)<<8|$n.call(e,2)<<16|$n.call(e,3)<<24)>>>0,($n.call(e,4)|$n.call(e,5)<<8|$n.call(e,6)<<16|$n.call(e,7)<<24)>>>0)};Ze.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};Ze.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};Ze.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};Ze.prototype.length=function(){var e=this.lo,n=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return i===0?n===0?e<16384?e<128?1:2:e<2097152?3:4:n<16384?n<128?5:6:n<2097152?7:8:i<128?9:10}});var zn=_(py=>{"use strict";l();var j=py;j.asPromise=UK();j.base64=GK();j.EventEmitter=HK();j.float=WK();j.inquire=XK();j.utf8=QK();j.pool=e$();j.LongBits=r$();j.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);j.global=j.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||py;j.emptyArray=Object.freeze?Object.freeze([]):[];j.emptyObject=Object.freeze?Object.freeze({}):{};j.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};j.isString=function(e){return typeof e=="string"||e instanceof String};j.isObject=function(e){return e&&typeof e=="object"};j.isset=j.isSet=function(e,n){var i=e[n];return i!=null&&e.hasOwnProperty(n)?typeof i!="object"||(Array.isArray(i)?i.length:Object.keys(i).length)>0:!1};j.Buffer=(function(){try{var t=j.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch{return null}})();j._Buffer_from=null;j._Buffer_allocUnsafe=null;j.newBuffer=function(e){return typeof e=="number"?j.Buffer?j._Buffer_allocUnsafe(e):new j.Array(e):j.Buffer?j._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};j.Array=typeof Uint8Array<"u"?Uint8Array:Array;j.Long=j.global.dcodeIO&&j.global.dcodeIO.Long||j.global.Long||j.inquire("long");j.key2Re=/^true|false|0|1$/;j.key32Re=/^-?(?:0|[1-9][0-9]*)$/;j.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;j.longToHash=function(e){return e?j.LongBits.from(e).toHash():j.LongBits.zeroHash};j.longFromHash=function(e,n){var i=j.LongBits.fromHash(e);return j.Long?j.Long.fromBits(i.lo,i.hi,n):i.toNumber(!!n)};function n$(t,e,n){for(var i=Object.keys(e),a=0;a<i.length;++a)(t[i[a]]===void 0||!n)&&(t[i[a]]=e[i[a]]);return t}j.merge=n$;j.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function o$(t){function e(n,i){if(!(this instanceof e))return new e(n,i);Object.defineProperty(this,"message",{get:function(){return n}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),i&&n$(this,i)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}j.newError=o$;j.ProtocolError=o$("ProtocolError");j.oneOfGetter=function(e){for(var n={},i=0;i<e.length;++i)n[e[i]]=1;return function(){for(var a=Object.keys(this),c=a.length-1;c>-1;--c)if(n[a[c]]===1&&this[a[c]]!==void 0&&this[a[c]]!==null)return a[c]}};j.oneOfSetter=function(e){return function(n){for(var i=0;i<e.length;++i)e[i]!==n&&delete this[e[i]]}};j.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};j._configure=function(){var t=j.Buffer;if(!t){j._Buffer_from=j._Buffer_allocUnsafe=null;return}j._Buffer_from=t.from!==Uint8Array.from&&t.from||function(n,i){return new t(n,i)},j._Buffer_allocUnsafe=t.allocUnsafe||function(n){return new t(n)}}});var Ty=_((l5e,c$)=>{"use strict";l();c$.exports=ce;var Zt=zn(),dy,b_=Zt.LongBits,i$=Zt.base64,a$=Zt.utf8;function gc(t,e,n){this.fn=t,this.len=e,this.next=void 0,this.val=n}function _y(){}function aCe(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function ce(){this.len=0,this.head=new gc(_y,0,0),this.tail=this.head,this.states=null}var s$=function(){return Zt.Buffer?function(){return(ce.create=function(){return new dy})()}:function(){return new ce}};ce.create=s$();ce.alloc=function(e){return new Zt.Array(e)};Zt.Array!==Array&&(ce.alloc=Zt.pool(ce.alloc,Zt.Array.prototype.subarray));ce.prototype._push=function(e,n,i){return this.tail=this.tail.next=new gc(e,n,i),this.len+=n,this};function my(t,e,n){e[n]=t&255}function sCe(t,e,n){for(;t>127;)e[n++]=t&127|128,t>>>=7;e[n]=t}function Ey(t,e){this.len=t,this.next=void 0,this.val=e}Ey.prototype=Object.create(gc.prototype);Ey.prototype.fn=sCe;ce.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new Ey((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};ce.prototype.int32=function(e){return e<0?this._push(hy,10,b_.fromNumber(e)):this.uint32(e)};ce.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function hy(t,e,n){for(;t.hi;)e[n++]=t.lo&127|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=t.lo&127|128,t.lo=t.lo>>>7;e[n++]=t.lo}ce.prototype.uint64=function(e){var n=b_.from(e);return this._push(hy,n.length(),n)};ce.prototype.int64=ce.prototype.uint64;ce.prototype.sint64=function(e){var n=b_.from(e).zzEncode();return this._push(hy,n.length(),n)};ce.prototype.bool=function(e){return this._push(my,1,e?1:0)};function fy(t,e,n){e[n]=t&255,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}ce.prototype.fixed32=function(e){return this._push(fy,4,e>>>0)};ce.prototype.sfixed32=ce.prototype.fixed32;ce.prototype.fixed64=function(e){var n=b_.from(e);return this._push(fy,4,n.lo)._push(fy,4,n.hi)};ce.prototype.sfixed64=ce.prototype.fixed64;ce.prototype.float=function(e){return this._push(Zt.float.writeFloatLE,4,e)};ce.prototype.double=function(e){return this._push(Zt.float.writeDoubleLE,8,e)};var cCe=Zt.Array.prototype.set?function(e,n,i){n.set(e,i)}:function(e,n,i){for(var a=0;a<e.length;++a)n[i+a]=e[a]};ce.prototype.bytes=function(e){var n=e.length>>>0;if(!n)return this._push(my,1,0);if(Zt.isString(e)){var i=ce.alloc(n=i$.length(e));i$.decode(e,i,0),e=i}return this.uint32(n)._push(cCe,n,e)};ce.prototype.string=function(e){var n=a$.length(e);return n?this.uint32(n)._push(a$.write,n,e):this._push(my,1,0)};ce.prototype.fork=function(){return this.states=new aCe(this),this.head=this.tail=new gc(_y,0,0),this.len=0,this};ce.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new gc(_y,0,0),this.len=0),this};ce.prototype.ldelim=function(){var e=this.head,n=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=e.next,this.tail=n,this.len+=i),this};ce.prototype.finish=function(){for(var e=this.head.next,n=this.constructor.alloc(this.len),i=0;e;)e.fn(e.val,n,i),i+=e.len,e=e.next;return n};ce._configure=function(t){dy=t,ce.create=s$(),dy._configure()}});var p$=_((d5e,l$)=>{"use strict";l();l$.exports=kr;var u$=Ty();(kr.prototype=Object.create(u$.prototype)).constructor=kr;var Wn=zn();function kr(){u$.call(this)}kr._configure=function(){kr.alloc=Wn._Buffer_allocUnsafe,kr.writeBytesBuffer=Wn.Buffer&&Wn.Buffer.prototype instanceof Uint8Array&&Wn.Buffer.prototype.set.name==="set"?function(e,n,i){n.set(e,i)}:function(e,n,i){if(e.copy)e.copy(n,i,0,e.length);else for(var a=0;a<e.length;)n[i++]=e[a++]}};kr.prototype.bytes=function(e){Wn.isString(e)&&(e=Wn._Buffer_from(e,"base64"));var n=e.length>>>0;return this.uint32(n),n&&this._push(kr.writeBytesBuffer,n,e),this};function uCe(t,e,n){t.length<40?Wn.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}kr.prototype.string=function(e){var n=Wn.Buffer.byteLength(e);return this.uint32(n),n&&this._push(uCe,n,e),this};kr._configure()});var gy=_((_5e,E$)=>{"use strict";l();E$.exports=De;var Tr=zn(),vy,_$=Tr.LongBits,lCe=Tr.utf8;function Sr(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function De(t){this.buf=t,this.pos=0,this.len=t.length}var d$=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new De(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new De(e);throw Error("illegal buffer")},m$=function(){return Tr.Buffer?function(n){return(De.create=function(a){return Tr.Buffer.isBuffer(a)?new vy(a):d$(a)})(n)}:d$};De.create=m$();De.prototype._slice=Tr.Array.prototype.subarray||Tr.Array.prototype.slice;De.prototype.uint32=(function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,Sr(this,10);return e}})();De.prototype.int32=function(){return this.uint32()|0};De.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function Sy(){var t=new _$(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(this.buf[this.pos]&127)<<28)>>>0,t.hi=(t.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw Sr(this);if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw Sr(this);if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}De.prototype.bool=function(){return this.uint32()!==0};function O_(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}De.prototype.fixed32=function(){if(this.pos+4>this.len)throw Sr(this,4);return O_(this.buf,this.pos+=4)};De.prototype.sfixed32=function(){if(this.pos+4>this.len)throw Sr(this,4);return O_(this.buf,this.pos+=4)|0};function f$(){if(this.pos+8>this.len)throw Sr(this,8);return new _$(O_(this.buf,this.pos+=4),O_(this.buf,this.pos+=4))}De.prototype.float=function(){if(this.pos+4>this.len)throw Sr(this,4);var e=Tr.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};De.prototype.double=function(){if(this.pos+8>this.len)throw Sr(this,4);var e=Tr.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};De.prototype.bytes=function(){var e=this.uint32(),n=this.pos,i=this.pos+e;if(i>this.len)throw Sr(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(n,i);if(n===i){var a=Tr.Buffer;return a?a.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,n,i)};De.prototype.string=function(){var e=this.bytes();return lCe.read(e,0,e.length)};De.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw Sr(this,e);this.pos+=e}else do if(this.pos>=this.len)throw Sr(this);while(this.buf[this.pos++]&128);return this};De.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(t=this.uint32()&7)!==4;)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this};De._configure=function(t){vy=t,De.create=m$(),vy._configure();var e=Tr.Long?"toLong":"toNumber";Tr.merge(De.prototype,{int64:function(){return Sy.call(this)[e](!1)},uint64:function(){return Sy.call(this)[e](!0)},sint64:function(){return Sy.call(this).zzDecode()[e](!1)},fixed64:function(){return f$.call(this)[e](!0)},sfixed64:function(){return f$.call(this)[e](!1)}})}});var v$=_((E5e,S$)=>{"use strict";l();S$.exports=Wo;var T$=gy();(Wo.prototype=Object.create(T$.prototype)).constructor=Wo;var h$=zn();function Wo(t){T$.call(this,t)}Wo._configure=function(){h$.Buffer&&(Wo.prototype._slice=h$.Buffer.prototype.slice)};Wo.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};Wo._configure()});var y$=_((T5e,g$)=>{"use strict";l();g$.exports=yc;var yy=zn();(yc.prototype=Object.create(yy.EventEmitter.prototype)).constructor=yc;function yc(t,e,n){if(typeof t!="function")throw TypeError("rpcImpl must be a function");yy.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!n}yc.prototype.rpcCall=function t(e,n,i,a,c){if(!a)throw TypeError("request must be specified");var o=this;if(!c)return yy.asPromise(t,o,e,n,i,a);if(!o.rpcImpl){setTimeout(function(){c(Error("already ended"))},0);return}try{return o.rpcImpl(e,n[o.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(s,u){if(s)return o.emit("error",s,e),c(s);if(u===null){o.end(!0);return}if(!(u instanceof i))try{u=i[o.responseDelimited?"decodeDelimited":"decode"](u)}catch(p){return o.emit("error",p,e),c(p)}return o.emit("data",u,e),c(null,u)})}catch(r){o.emit("error",r,e),setTimeout(function(){c(r)},0);return}};yc.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var x$=_(A$=>{"use strict";l();var pCe=A$;pCe.Service=y$()});var O$=_((y5e,b$)=>{"use strict";l();b$.exports={}});var N$=_(P$=>{"use strict";l();var Lt=P$;Lt.build="minimal";Lt.Writer=Ty();Lt.BufferWriter=p$();Lt.Reader=gy();Lt.BufferReader=v$();Lt.util=zn();Lt.rpc=x$();Lt.roots=O$();Lt.configure=R$;function R$(){Lt.util._configure(),Lt.Writer._configure(Lt.BufferWriter),Lt.Reader._configure(Lt.BufferReader)}R$()});var I$=_((O5e,M$)=>{"use strict";l();M$.exports=N$()});var R_=_((P5e,L$)=>{"use strict";l();var Y=I$(),g=Y.Reader,Z=Y.Writer,m=Y.util,f=Y.roots.default||(Y.roots.default={});f.opentelemetry=(function(){var t={};return t.proto=(function(){var e={};return e.common=(function(){var n={};return n.v1=(function(){var i={};return i.AnyValue=(function(){function a(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.stringValue=null,a.prototype.boolValue=null,a.prototype.intValue=null,a.prototype.doubleValue=null,a.prototype.arrayValue=null,a.prototype.kvlistValue=null,a.prototype.bytesValue=null;var c;return Object.defineProperty(a.prototype,"value",{get:m.oneOfGetter(c=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:m.oneOfSetter(c)}),a.create=function(r){return new a(r)},a.encode=function(r,s){return s||(s=Z.create()),r.stringValue!=null&&Object.hasOwnProperty.call(r,"stringValue")&&s.uint32(10).string(r.stringValue),r.boolValue!=null&&Object.hasOwnProperty.call(r,"boolValue")&&s.uint32(16).bool(r.boolValue),r.intValue!=null&&Object.hasOwnProperty.call(r,"intValue")&&s.uint32(24).int64(r.intValue),r.doubleValue!=null&&Object.hasOwnProperty.call(r,"doubleValue")&&s.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Object.hasOwnProperty.call(r,"arrayValue")&&f.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,s.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Object.hasOwnProperty.call(r,"kvlistValue")&&f.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,s.uint32(50).fork()).ldelim(),r.bytesValue!=null&&Object.hasOwnProperty.call(r,"bytesValue")&&s.uint32(58).bytes(r.bytesValue),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.common.v1.AnyValue;r.pos<u;){var S=r.uint32();switch(S>>>3){case 1:{p.stringValue=r.string();break}case 2:{p.boolValue=r.bool();break}case 3:{p.intValue=r.int64();break}case 4:{p.doubleValue=r.double();break}case 5:{p.arrayValue=f.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break}case 6:{p.kvlistValue=f.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break}case 7:{p.bytesValue=r.bytes();break}default:r.skipType(S&7);break}}return p},a.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(s.value=1,!m.isString(r.stringValue)))return"stringValue: string expected";if(r.boolValue!=null&&r.hasOwnProperty("boolValue")){if(s.value===1)return"value: multiple values";if(s.value=1,typeof r.boolValue!="boolean")return"boolValue: boolean expected"}if(r.intValue!=null&&r.hasOwnProperty("intValue")){if(s.value===1)return"value: multiple values";if(s.value=1,!m.isInteger(r.intValue)&&!(r.intValue&&m.isInteger(r.intValue.low)&&m.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(r.doubleValue!=null&&r.hasOwnProperty("doubleValue")){if(s.value===1)return"value: multiple values";if(s.value=1,typeof r.doubleValue!="number")return"doubleValue: number expected"}if(r.arrayValue!=null&&r.hasOwnProperty("arrayValue")){if(s.value===1)return"value: multiple values";s.value=1;{var u=f.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue);if(u)return"arrayValue."+u}}if(r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")){if(s.value===1)return"value: multiple values";s.value=1;{var u=f.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue);if(u)return"kvlistValue."+u}}if(r.bytesValue!=null&&r.hasOwnProperty("bytesValue")){if(s.value===1)return"value: multiple values";if(s.value=1,!(r.bytesValue&&typeof r.bytesValue.length=="number"||m.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(r){if(r instanceof f.opentelemetry.proto.common.v1.AnyValue)return r;var s=new f.opentelemetry.proto.common.v1.AnyValue;if(r.stringValue!=null&&(s.stringValue=String(r.stringValue)),r.boolValue!=null&&(s.boolValue=!!r.boolValue),r.intValue!=null&&(m.Long?(s.intValue=m.Long.fromValue(r.intValue)).unsigned=!1:typeof r.intValue=="string"?s.intValue=parseInt(r.intValue,10):typeof r.intValue=="number"?s.intValue=r.intValue:typeof r.intValue=="object"&&(s.intValue=new m.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),r.doubleValue!=null&&(s.doubleValue=Number(r.doubleValue)),r.arrayValue!=null){if(typeof r.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");s.arrayValue=f.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(r.kvlistValue!=null){if(typeof r.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");s.kvlistValue=f.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return r.bytesValue!=null&&(typeof r.bytesValue=="string"?m.base64.decode(r.bytesValue,s.bytesValue=m.newBuffer(m.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(s.bytesValue=r.bytesValue)),s},a.toObject=function(r,s){s||(s={});var u={};return r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(u.stringValue=r.stringValue,s.oneofs&&(u.value="stringValue")),r.boolValue!=null&&r.hasOwnProperty("boolValue")&&(u.boolValue=r.boolValue,s.oneofs&&(u.value="boolValue")),r.intValue!=null&&r.hasOwnProperty("intValue")&&(typeof r.intValue=="number"?u.intValue=s.longs===String?String(r.intValue):r.intValue:u.intValue=s.longs===String?m.Long.prototype.toString.call(r.intValue):s.longs===Number?new m.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,s.oneofs&&(u.value="intValue")),r.doubleValue!=null&&r.hasOwnProperty("doubleValue")&&(u.doubleValue=s.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,s.oneofs&&(u.value="doubleValue")),r.arrayValue!=null&&r.hasOwnProperty("arrayValue")&&(u.arrayValue=f.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,s),s.oneofs&&(u.value="arrayValue")),r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")&&(u.kvlistValue=f.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,s),s.oneofs&&(u.value="kvlistValue")),r.bytesValue!=null&&r.hasOwnProperty("bytesValue")&&(u.bytesValue=s.bytes===String?m.base64.encode(r.bytesValue,0,r.bytesValue.length):s.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,s.oneofs&&(u.value="bytesValue")),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},a})(),i.ArrayValue=(function(){function a(c){if(this.values=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.values=m.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.values!=null&&o.values.length)for(var s=0;s<o.values.length;++s)f.opentelemetry.proto.common.v1.AnyValue.encode(o.values[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.common.v1.ArrayValue;o.pos<s;){var p=o.uint32();p>>>3===1?(u.values&&u.values.length||(u.values=[]),u.values.push(f.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32()))):o.skipType(p&7)}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var s=f.opentelemetry.proto.common.v1.AnyValue.verify(o.values[r]);if(s)return"values."+s}}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.common.v1.ArrayValue)return o;var r=new f.opentelemetry.proto.common.v1.ArrayValue;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var s=0;s<o.values.length;++s){if(typeof o.values[s]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[s]=f.opentelemetry.proto.common.v1.AnyValue.fromObject(o.values[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.values=[]),o.values&&o.values.length){s.values=[];for(var u=0;u<o.values.length;++u)s.values[u]=f.opentelemetry.proto.common.v1.AnyValue.toObject(o.values[u],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.ArrayValue"},a})(),i.KeyValueList=(function(){function a(c){if(this.values=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.values=m.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.values!=null&&o.values.length)for(var s=0;s<o.values.length;++s)f.opentelemetry.proto.common.v1.KeyValue.encode(o.values[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.common.v1.KeyValueList;o.pos<s;){var p=o.uint32();p>>>3===1?(u.values&&u.values.length||(u.values=[]),u.values.push(f.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()))):o.skipType(p&7)}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var s=f.opentelemetry.proto.common.v1.KeyValue.verify(o.values[r]);if(s)return"values."+s}}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.common.v1.KeyValueList)return o;var r=new f.opentelemetry.proto.common.v1.KeyValueList;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var s=0;s<o.values.length;++s){if(typeof o.values[s]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[s]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(o.values[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.values=[]),o.values&&o.values.length){s.values=[];for(var u=0;u<o.values.length;++u)s.values[u]=f.opentelemetry.proto.common.v1.KeyValue.toObject(o.values[u],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValueList"},a})(),i.KeyValue=(function(){function a(c){if(c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=Z.create()),o.key!=null&&Object.hasOwnProperty.call(o,"key")&&r.uint32(10).string(o.key),o.value!=null&&Object.hasOwnProperty.call(o,"value")&&f.opentelemetry.proto.common.v1.AnyValue.encode(o.value,r.uint32(18).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.common.v1.KeyValue;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.key=o.string();break}case 2:{u.value=f.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.key!=null&&o.hasOwnProperty("key")&&!m.isString(o.key))return"key: string expected";if(o.value!=null&&o.hasOwnProperty("value")){var r=f.opentelemetry.proto.common.v1.AnyValue.verify(o.value);if(r)return"value."+r}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.common.v1.KeyValue)return o;var r=new f.opentelemetry.proto.common.v1.KeyValue;if(o.key!=null&&(r.key=String(o.key)),o.value!=null){if(typeof o.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=f.opentelemetry.proto.common.v1.AnyValue.fromObject(o.value)}return r},a.toObject=function(o,r){r||(r={});var s={};return r.defaults&&(s.key="",s.value=null),o.key!=null&&o.hasOwnProperty("key")&&(s.key=o.key),o.value!=null&&o.hasOwnProperty("value")&&(s.value=f.opentelemetry.proto.common.v1.AnyValue.toObject(o.value,r)),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValue"},a})(),i.InstrumentationScope=(function(){function a(c){if(this.attributes=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=m.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(10).string(o.name),o.version!=null&&Object.hasOwnProperty.call(o,"version")&&r.uint32(18).string(o.version),o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)f.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(26).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(32).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.common.v1.InstrumentationScope;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.name=o.string();break}case 2:{u.version=o.string();break}case 3:{u.attributes&&u.attributes.length||(u.attributes=[]),u.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 4:{u.droppedAttributesCount=o.uint32();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.name!=null&&o.hasOwnProperty("name")&&!m.isString(o.name))return"name: string expected";if(o.version!=null&&o.hasOwnProperty("version")&&!m.isString(o.version))return"version: string expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var s=f.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(s)return"attributes."+s}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.common.v1.InstrumentationScope)return o;var r=new f.opentelemetry.proto.common.v1.InstrumentationScope;if(o.name!=null&&(r.name=String(o.name)),o.version!=null&&(r.version=String(o.version)),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[s]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[]),r.defaults&&(s.name="",s.version="",s.droppedAttributesCount=0),o.name!=null&&o.hasOwnProperty("name")&&(s.name=o.name),o.version!=null&&o.hasOwnProperty("version")&&(s.version=o.version),o.attributes&&o.attributes.length){s.attributes=[];for(var u=0;u<o.attributes.length;++u)s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[u],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=o.droppedAttributesCount),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.InstrumentationScope"},a})(),i})(),n})(),e.resource=(function(){var n={};return n.v1=(function(){var i={};return i.Resource=(function(){function a(c){if(this.attributes=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.attributes=m.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)f.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(10).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(16).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.resource.v1.Resource;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.attributes&&u.attributes.length||(u.attributes=[]),u.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{u.droppedAttributesCount=o.uint32();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var s=f.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(s)return"attributes."+s}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.resource.v1.Resource)return o;var r=new f.opentelemetry.proto.resource.v1.Resource;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[s]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[]),r.defaults&&(s.droppedAttributesCount=0),o.attributes&&o.attributes.length){s.attributes=[];for(var u=0;u<o.attributes.length;++u)s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[u],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=o.droppedAttributesCount),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.resource.v1.Resource"},a})(),i})(),n})(),e.trace=(function(){var n={};return n.v1=(function(){var i={};return i.TracesData=(function(){function a(c){if(this.resourceSpans=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.resourceSpans=m.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.resourceSpans!=null&&o.resourceSpans.length)for(var s=0;s<o.resourceSpans.length;++s)f.opentelemetry.proto.trace.v1.ResourceSpans.encode(o.resourceSpans[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.trace.v1.TracesData;o.pos<s;){var p=o.uint32();p>>>3===1?(u.resourceSpans&&u.resourceSpans.length||(u.resourceSpans=[]),u.resourceSpans.push(f.opentelemetry.proto.trace.v1.ResourceSpans.decode(o,o.uint32()))):o.skipType(p&7)}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceSpans!=null&&o.hasOwnProperty("resourceSpans")){if(!Array.isArray(o.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<o.resourceSpans.length;++r){var s=f.opentelemetry.proto.trace.v1.ResourceSpans.verify(o.resourceSpans[r]);if(s)return"resourceSpans."+s}}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.trace.v1.TracesData)return o;var r=new f.opentelemetry.proto.trace.v1.TracesData;if(o.resourceSpans){if(!Array.isArray(o.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var s=0;s<o.resourceSpans.length;++s){if(typeof o.resourceSpans[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[s]=f.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(o.resourceSpans[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.resourceSpans=[]),o.resourceSpans&&o.resourceSpans.length){s.resourceSpans=[];for(var u=0;u<o.resourceSpans.length;++u)s.resourceSpans[u]=f.opentelemetry.proto.trace.v1.ResourceSpans.toObject(o.resourceSpans[u],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.TracesData"},a})(),i.ResourceSpans=(function(){function a(c){if(this.scopeSpans=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.resource=null,a.prototype.scopeSpans=m.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&f.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeSpans!=null&&o.scopeSpans.length)for(var s=0;s<o.scopeSpans.length;++s)f.opentelemetry.proto.trace.v1.ScopeSpans.encode(o.scopeSpans[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.trace.v1.ResourceSpans;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.resource=f.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{u.scopeSpans&&u.scopeSpans.length||(u.scopeSpans=[]),u.scopeSpans.push(f.opentelemetry.proto.trace.v1.ScopeSpans.decode(o,o.uint32()));break}case 3:{u.schemaUrl=o.string();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=f.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeSpans!=null&&o.hasOwnProperty("scopeSpans")){if(!Array.isArray(o.scopeSpans))return"scopeSpans: array expected";for(var s=0;s<o.scopeSpans.length;++s){var r=f.opentelemetry.proto.trace.v1.ScopeSpans.verify(o.scopeSpans[s]);if(r)return"scopeSpans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!m.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.trace.v1.ResourceSpans)return o;var r=new f.opentelemetry.proto.trace.v1.ResourceSpans;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=f.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeSpans){if(!Array.isArray(o.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var s=0;s<o.scopeSpans.length;++s){if(typeof o.scopeSpans[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[s]=f.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(o.scopeSpans[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.scopeSpans=[]),r.defaults&&(s.resource=null,s.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(s.resource=f.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeSpans&&o.scopeSpans.length){s.scopeSpans=[];for(var u=0;u<o.scopeSpans.length;++u)s.scopeSpans[u]=f.opentelemetry.proto.trace.v1.ScopeSpans.toObject(o.scopeSpans[u],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ResourceSpans"},a})(),i.ScopeSpans=(function(){function a(c){if(this.spans=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.scope=null,a.prototype.spans=m.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&f.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.spans!=null&&o.spans.length)for(var s=0;s<o.spans.length;++s)f.opentelemetry.proto.trace.v1.Span.encode(o.spans[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.trace.v1.ScopeSpans;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{u.spans&&u.spans.length||(u.spans=[]),u.spans.push(f.opentelemetry.proto.trace.v1.Span.decode(o,o.uint32()));break}case 3:{u.schemaUrl=o.string();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=f.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.spans!=null&&o.hasOwnProperty("spans")){if(!Array.isArray(o.spans))return"spans: array expected";for(var s=0;s<o.spans.length;++s){var r=f.opentelemetry.proto.trace.v1.Span.verify(o.spans[s]);if(r)return"spans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!m.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.trace.v1.ScopeSpans)return o;var r=new f.opentelemetry.proto.trace.v1.ScopeSpans;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.spans){if(!Array.isArray(o.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var s=0;s<o.spans.length;++s){if(typeof o.spans[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[s]=f.opentelemetry.proto.trace.v1.Span.fromObject(o.spans[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.spans=[]),r.defaults&&(s.scope=null,s.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(s.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.spans&&o.spans.length){s.spans=[];for(var u=0;u<o.spans.length;++u)s.spans[u]=f.opentelemetry.proto.trace.v1.Span.toObject(o.spans[u],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ScopeSpans"},a})(),i.Span=(function(){function a(c){if(this.attributes=[],this.events=[],this.links=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.parentSpanId=null,a.prototype.name=null,a.prototype.kind=null,a.prototype.startTimeUnixNano=null,a.prototype.endTimeUnixNano=null,a.prototype.attributes=m.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=m.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=m.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(10).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(18).bytes(o.spanId),o.traceState!=null&&Object.hasOwnProperty.call(o,"traceState")&&r.uint32(26).string(o.traceState),o.parentSpanId!=null&&Object.hasOwnProperty.call(o,"parentSpanId")&&r.uint32(34).bytes(o.parentSpanId),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(42).string(o.name),o.kind!=null&&Object.hasOwnProperty.call(o,"kind")&&r.uint32(48).int32(o.kind),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(57).fixed64(o.startTimeUnixNano),o.endTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"endTimeUnixNano")&&r.uint32(65).fixed64(o.endTimeUnixNano),o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)f.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(74).fork()).ldelim();if(o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(80).uint32(o.droppedAttributesCount),o.events!=null&&o.events.length)for(var s=0;s<o.events.length;++s)f.opentelemetry.proto.trace.v1.Span.Event.encode(o.events[s],r.uint32(90).fork()).ldelim();if(o.droppedEventsCount!=null&&Object.hasOwnProperty.call(o,"droppedEventsCount")&&r.uint32(96).uint32(o.droppedEventsCount),o.links!=null&&o.links.length)for(var s=0;s<o.links.length;++s)f.opentelemetry.proto.trace.v1.Span.Link.encode(o.links[s],r.uint32(106).fork()).ldelim();return o.droppedLinksCount!=null&&Object.hasOwnProperty.call(o,"droppedLinksCount")&&r.uint32(112).uint32(o.droppedLinksCount),o.status!=null&&Object.hasOwnProperty.call(o,"status")&&f.opentelemetry.proto.trace.v1.Status.encode(o.status,r.uint32(122).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.trace.v1.Span;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.traceId=o.bytes();break}case 2:{u.spanId=o.bytes();break}case 3:{u.traceState=o.string();break}case 4:{u.parentSpanId=o.bytes();break}case 5:{u.name=o.string();break}case 6:{u.kind=o.int32();break}case 7:{u.startTimeUnixNano=o.fixed64();break}case 8:{u.endTimeUnixNano=o.fixed64();break}case 9:{u.attributes&&u.attributes.length||(u.attributes=[]),u.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 10:{u.droppedAttributesCount=o.uint32();break}case 11:{u.events&&u.events.length||(u.events=[]),u.events.push(f.opentelemetry.proto.trace.v1.Span.Event.decode(o,o.uint32()));break}case 12:{u.droppedEventsCount=o.uint32();break}case 13:{u.links&&u.links.length||(u.links=[]),u.links.push(f.opentelemetry.proto.trace.v1.Span.Link.decode(o,o.uint32()));break}case 14:{u.droppedLinksCount=o.uint32();break}case 15:{u.status=f.opentelemetry.proto.trace.v1.Status.decode(o,o.uint32());break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||m.isString(o.traceId)))return"traceId: buffer expected";if(o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||m.isString(o.spanId)))return"spanId: buffer expected";if(o.traceState!=null&&o.hasOwnProperty("traceState")&&!m.isString(o.traceState))return"traceState: string expected";if(o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&!(o.parentSpanId&&typeof o.parentSpanId.length=="number"||m.isString(o.parentSpanId)))return"parentSpanId: buffer expected";if(o.name!=null&&o.hasOwnProperty("name")&&!m.isString(o.name))return"name: string expected";if(o.kind!=null&&o.hasOwnProperty("kind"))switch(o.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&m.isInteger(o.startTimeUnixNano.low)&&m.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&!m.isInteger(o.endTimeUnixNano)&&!(o.endTimeUnixNano&&m.isInteger(o.endTimeUnixNano.low)&&m.isInteger(o.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var s=f.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(s)return"attributes."+s}}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(o.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(o.events!=null&&o.hasOwnProperty("events")){if(!Array.isArray(o.events))return"events: array expected";for(var r=0;r<o.events.length;++r){var s=f.opentelemetry.proto.trace.v1.Span.Event.verify(o.events[r]);if(s)return"events."+s}}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&!m.isInteger(o.droppedEventsCount))return"droppedEventsCount: integer expected";if(o.links!=null&&o.hasOwnProperty("links")){if(!Array.isArray(o.links))return"links: array expected";for(var r=0;r<o.links.length;++r){var s=f.opentelemetry.proto.trace.v1.Span.Link.verify(o.links[r]);if(s)return"links."+s}}if(o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&!m.isInteger(o.droppedLinksCount))return"droppedLinksCount: integer expected";if(o.status!=null&&o.hasOwnProperty("status")){var s=f.opentelemetry.proto.trace.v1.Status.verify(o.status);if(s)return"status."+s}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.trace.v1.Span)return o;var r=new f.opentelemetry.proto.trace.v1.Span;switch(o.traceId!=null&&(typeof o.traceId=="string"?m.base64.decode(o.traceId,r.traceId=m.newBuffer(m.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?m.base64.decode(o.spanId,r.spanId=m.newBuffer(m.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),o.traceState!=null&&(r.traceState=String(o.traceState)),o.parentSpanId!=null&&(typeof o.parentSpanId=="string"?m.base64.decode(o.parentSpanId,r.parentSpanId=m.newBuffer(m.base64.length(o.parentSpanId)),0):o.parentSpanId.length>=0&&(r.parentSpanId=o.parentSpanId)),o.name!=null&&(r.name=String(o.name)),o.kind){default:if(typeof o.kind=="number"){r.kind=o.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5;break}if(o.startTimeUnixNano!=null&&(m.Long?(r.startTimeUnixNano=m.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new m.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.endTimeUnixNano!=null&&(m.Long?(r.endTimeUnixNano=m.Long.fromValue(o.endTimeUnixNano)).unsigned=!1:typeof o.endTimeUnixNano=="string"?r.endTimeUnixNano=parseInt(o.endTimeUnixNano,10):typeof o.endTimeUnixNano=="number"?r.endTimeUnixNano=o.endTimeUnixNano:typeof o.endTimeUnixNano=="object"&&(r.endTimeUnixNano=new m.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber())),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[s]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}if(o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.events){if(!Array.isArray(o.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");r.events=[];for(var s=0;s<o.events.length;++s){if(typeof o.events[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[s]=f.opentelemetry.proto.trace.v1.Span.Event.fromObject(o.events[s])}}if(o.droppedEventsCount!=null&&(r.droppedEventsCount=o.droppedEventsCount>>>0),o.links){if(!Array.isArray(o.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");r.links=[];for(var s=0;s<o.links.length;++s){if(typeof o.links[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[s]=f.opentelemetry.proto.trace.v1.Span.Link.fromObject(o.links[s])}}if(o.droppedLinksCount!=null&&(r.droppedLinksCount=o.droppedLinksCount>>>0),o.status!=null){if(typeof o.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=f.opentelemetry.proto.trace.v1.Status.fromObject(o.status)}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[],s.events=[],s.links=[]),r.defaults){if(r.bytes===String?s.traceId="":(s.traceId=[],r.bytes!==Array&&(s.traceId=m.newBuffer(s.traceId))),r.bytes===String?s.spanId="":(s.spanId=[],r.bytes!==Array&&(s.spanId=m.newBuffer(s.spanId))),s.traceState="",r.bytes===String?s.parentSpanId="":(s.parentSpanId=[],r.bytes!==Array&&(s.parentSpanId=m.newBuffer(s.parentSpanId))),s.name="",s.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,m.Long){var u=new m.Long(0,0,!1);s.startTimeUnixNano=r.longs===String?u.toString():r.longs===Number?u.toNumber():u}else s.startTimeUnixNano=r.longs===String?"0":0;if(m.Long){var u=new m.Long(0,0,!1);s.endTimeUnixNano=r.longs===String?u.toString():r.longs===Number?u.toNumber():u}else s.endTimeUnixNano=r.longs===String?"0":0;s.droppedAttributesCount=0,s.droppedEventsCount=0,s.droppedLinksCount=0,s.status=null}if(o.traceId!=null&&o.hasOwnProperty("traceId")&&(s.traceId=r.bytes===String?m.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(s.spanId=r.bytes===String?m.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.traceState!=null&&o.hasOwnProperty("traceState")&&(s.traceState=o.traceState),o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&(s.parentSpanId=r.bytes===String?m.base64.encode(o.parentSpanId,0,o.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(o.parentSpanId):o.parentSpanId),o.name!=null&&o.hasOwnProperty("name")&&(s.name=o.name),o.kind!=null&&o.hasOwnProperty("kind")&&(s.kind=r.enums===String?f.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]===void 0?o.kind:f.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]:o.kind),o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?s.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:s.startTimeUnixNano=r.longs===String?m.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new m.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&(typeof o.endTimeUnixNano=="number"?s.endTimeUnixNano=r.longs===String?String(o.endTimeUnixNano):o.endTimeUnixNano:s.endTimeUnixNano=r.longs===String?m.Long.prototype.toString.call(o.endTimeUnixNano):r.longs===Number?new m.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber():o.endTimeUnixNano),o.attributes&&o.attributes.length){s.attributes=[];for(var p=0;p<o.attributes.length;++p)s.attributes[p]=f.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[p],r)}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=o.droppedAttributesCount),o.events&&o.events.length){s.events=[];for(var p=0;p<o.events.length;++p)s.events[p]=f.opentelemetry.proto.trace.v1.Span.Event.toObject(o.events[p],r)}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&(s.droppedEventsCount=o.droppedEventsCount),o.links&&o.links.length){s.links=[];for(var p=0;p<o.links.length;++p)s.links[p]=f.opentelemetry.proto.trace.v1.Span.Link.toObject(o.links[p],r)}return o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&(s.droppedLinksCount=o.droppedLinksCount),o.status!=null&&o.hasOwnProperty("status")&&(s.status=f.opentelemetry.proto.trace.v1.Status.toObject(o.status,r)),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=(function(){var c={},o=Object.create(c);return o[c[0]="SPAN_KIND_UNSPECIFIED"]=0,o[c[1]="SPAN_KIND_INTERNAL"]=1,o[c[2]="SPAN_KIND_SERVER"]=2,o[c[3]="SPAN_KIND_CLIENT"]=3,o[c[4]="SPAN_KIND_PRODUCER"]=4,o[c[5]="SPAN_KIND_CONSUMER"]=5,o})(),a.Event=(function(){function c(o){if(this.attributes=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.timeUnixNano=null,c.prototype.name=null,c.prototype.attributes=m.emptyArray,c.prototype.droppedAttributesCount=null,c.create=function(r){return new c(r)},c.encode=function(r,s){if(s||(s=Z.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&s.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(var u=0;u<r.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[u],s.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&s.uint32(32).uint32(r.droppedAttributesCount),s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.trace.v1.Span.Event;r.pos<u;){var S=r.uint32();switch(S>>>3){case 1:{p.timeUnixNano=r.fixed64();break}case 2:{p.name=r.string();break}case 3:{p.attributes&&p.attributes.length||(p.attributes=[]),p.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{p.droppedAttributesCount=r.uint32();break}default:r.skipType(S&7);break}}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!m.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&m.isInteger(r.timeUnixNano.low)&&m.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.name!=null&&r.hasOwnProperty("name")&&!m.isString(r.name))return"name: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var s=0;s<r.attributes.length;++s){var u=f.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[s]);if(u)return"attributes."+u}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.trace.v1.Span.Event)return r;var s=new f.opentelemetry.proto.trace.v1.Span.Event;if(r.timeUnixNano!=null&&(m.Long?(s.timeUnixNano=m.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.name!=null&&(s.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");s.attributes=[];for(var u=0;u<r.attributes.length;++u){if(typeof r.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[u])}}return r.droppedAttributesCount!=null&&(s.droppedAttributesCount=r.droppedAttributesCount>>>0),s},c.toObject=function(r,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.attributes=[]),s.defaults){if(m.Long){var p=new m.Long(0,0,!1);u.timeUnixNano=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.timeUnixNano=s.longs===String?"0":0;u.name="",u.droppedAttributesCount=0}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?u.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.timeUnixNano=s.longs===String?m.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.name!=null&&r.hasOwnProperty("name")&&(u.name=r.name),r.attributes&&r.attributes.length){u.attributes=[];for(var S=0;S<r.attributes.length;++S)u.attributes[S]=f.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[S],s)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=r.droppedAttributesCount),u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},c})(),a.Link=(function(){function c(o){if(this.attributes=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.traceId=null,c.prototype.spanId=null,c.prototype.traceState=null,c.prototype.attributes=m.emptyArray,c.prototype.droppedAttributesCount=null,c.create=function(r){return new c(r)},c.encode=function(r,s){if(s||(s=Z.create()),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&s.uint32(10).bytes(r.traceId),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&s.uint32(18).bytes(r.spanId),r.traceState!=null&&Object.hasOwnProperty.call(r,"traceState")&&s.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(var u=0;u<r.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[u],s.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&s.uint32(40).uint32(r.droppedAttributesCount),s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.trace.v1.Span.Link;r.pos<u;){var S=r.uint32();switch(S>>>3){case 1:{p.traceId=r.bytes();break}case 2:{p.spanId=r.bytes();break}case 3:{p.traceState=r.string();break}case 4:{p.attributes&&p.attributes.length||(p.attributes=[]),p.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 5:{p.droppedAttributesCount=r.uint32();break}default:r.skipType(S&7);break}}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||m.isString(r.traceId)))return"traceId: buffer expected";if(r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||m.isString(r.spanId)))return"spanId: buffer expected";if(r.traceState!=null&&r.hasOwnProperty("traceState")&&!m.isString(r.traceState))return"traceState: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var s=0;s<r.attributes.length;++s){var u=f.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[s]);if(u)return"attributes."+u}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.trace.v1.Span.Link)return r;var s=new f.opentelemetry.proto.trace.v1.Span.Link;if(r.traceId!=null&&(typeof r.traceId=="string"?m.base64.decode(r.traceId,s.traceId=m.newBuffer(m.base64.length(r.traceId)),0):r.traceId.length>=0&&(s.traceId=r.traceId)),r.spanId!=null&&(typeof r.spanId=="string"?m.base64.decode(r.spanId,s.spanId=m.newBuffer(m.base64.length(r.spanId)),0):r.spanId.length>=0&&(s.spanId=r.spanId)),r.traceState!=null&&(s.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");s.attributes=[];for(var u=0;u<r.attributes.length;++u){if(typeof r.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[u])}}return r.droppedAttributesCount!=null&&(s.droppedAttributesCount=r.droppedAttributesCount>>>0),s},c.toObject=function(r,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.attributes=[]),s.defaults&&(s.bytes===String?u.traceId="":(u.traceId=[],s.bytes!==Array&&(u.traceId=m.newBuffer(u.traceId))),s.bytes===String?u.spanId="":(u.spanId=[],s.bytes!==Array&&(u.spanId=m.newBuffer(u.spanId))),u.traceState="",u.droppedAttributesCount=0),r.traceId!=null&&r.hasOwnProperty("traceId")&&(u.traceId=s.bytes===String?m.base64.encode(r.traceId,0,r.traceId.length):s.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.spanId!=null&&r.hasOwnProperty("spanId")&&(u.spanId=s.bytes===String?m.base64.encode(r.spanId,0,r.spanId.length):s.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceState!=null&&r.hasOwnProperty("traceState")&&(u.traceState=r.traceState),r.attributes&&r.attributes.length){u.attributes=[];for(var p=0;p<r.attributes.length;++p)u.attributes[p]=f.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],s)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=r.droppedAttributesCount),u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},c})(),a})(),i.Status=(function(){function a(c){if(c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=Z.create()),o.message!=null&&Object.hasOwnProperty.call(o,"message")&&r.uint32(18).string(o.message),o.code!=null&&Object.hasOwnProperty.call(o,"code")&&r.uint32(24).int32(o.code),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.trace.v1.Status;o.pos<s;){var p=o.uint32();switch(p>>>3){case 2:{u.message=o.string();break}case 3:{u.code=o.int32();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.message!=null&&o.hasOwnProperty("message")&&!m.isString(o.message))return"message: string expected";if(o.code!=null&&o.hasOwnProperty("code"))switch(o.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.trace.v1.Status)return o;var r=new f.opentelemetry.proto.trace.v1.Status;switch(o.message!=null&&(r.message=String(o.message)),o.code){default:if(typeof o.code=="number"){r.code=o.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2;break}return r},a.toObject=function(o,r){r||(r={});var s={};return r.defaults&&(s.message="",s.code=r.enums===String?"STATUS_CODE_UNSET":0),o.message!=null&&o.hasOwnProperty("message")&&(s.message=o.message),o.code!=null&&o.hasOwnProperty("code")&&(s.code=r.enums===String?f.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]===void 0?o.code:f.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]:o.code),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=(function(){var c={},o=Object.create(c);return o[c[0]="STATUS_CODE_UNSET"]=0,o[c[1]="STATUS_CODE_OK"]=1,o[c[2]="STATUS_CODE_ERROR"]=2,o})(),a})(),i})(),n})(),e.collector=(function(){var n={};return n.trace=(function(){var i={};return i.v1=(function(){var a={};return a.TraceService=(function(){function c(o,r,s){Y.rpc.Service.call(this,o,r,s)}return(c.prototype=Object.create(Y.rpc.Service.prototype)).constructor=c,c.create=function(r,s,u){return new this(r,s,u)},Object.defineProperty(c.prototype.export=function o(r,s){return this.rpcCall(o,f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,s)},"name",{value:"Export"}),c})(),a.ExportTraceServiceRequest=(function(){function c(o){if(this.resourceSpans=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.resourceSpans=m.emptyArray,c.create=function(r){return new c(r)},c.encode=function(r,s){if(s||(s=Z.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var u=0;u<r.resourceSpans.length;++u)f.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[u],s.uint32(10).fork()).ldelim();return s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<u;){var S=r.uint32();S>>>3===1?(p.resourceSpans&&p.resourceSpans.length||(p.resourceSpans=[]),p.resourceSpans.push(f.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()))):r.skipType(S&7)}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var s=0;s<r.resourceSpans.length;++s){var u=f.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[s]);if(u)return"resourceSpans."+u}}return null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var s=new f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");s.resourceSpans=[];for(var u=0;u<r.resourceSpans.length;++u){if(typeof r.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");s.resourceSpans[u]=f.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[u])}}return s},c.toObject=function(r,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){u.resourceSpans=[];for(var p=0;p<r.resourceSpans.length;++p)u.resourceSpans[p]=f.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[p],s)}return u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},c})(),a.ExportTraceServiceResponse=(function(){function c(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.partialSuccess=null,c.create=function(r){return new c(r)},c.encode=function(r,s){return s||(s=Z.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,s.uint32(10).fork()).ldelim(),s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<u;){var S=r.uint32();S>>>3===1?p.partialSuccess=f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32()):r.skipType(S&7)}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var s=f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(s)return"partialSuccess."+s}return null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var s=new f.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");s.partialSuccess=f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return s},c.toObject=function(r,s){s||(s={});var u={};return s.defaults&&(u.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(u.partialSuccess=f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,s)),u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},c})(),a.ExportTracePartialSuccess=(function(){function c(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.rejectedSpans=null,c.prototype.errorMessage=null,c.create=function(r){return new c(r)},c.encode=function(r,s){return s||(s=Z.create()),r.rejectedSpans!=null&&Object.hasOwnProperty.call(r,"rejectedSpans")&&s.uint32(8).int64(r.rejectedSpans),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&s.uint32(18).string(r.errorMessage),s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<u;){var S=r.uint32();switch(S>>>3){case 1:{p.rejectedSpans=r.int64();break}case 2:{p.errorMessage=r.string();break}default:r.skipType(S&7);break}}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&!m.isInteger(r.rejectedSpans)&&!(r.rejectedSpans&&m.isInteger(r.rejectedSpans.low)&&m.isInteger(r.rejectedSpans.high))?"rejectedSpans: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!m.isString(r.errorMessage)?"errorMessage: string expected":null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var s=new f.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return r.rejectedSpans!=null&&(m.Long?(s.rejectedSpans=m.Long.fromValue(r.rejectedSpans)).unsigned=!1:typeof r.rejectedSpans=="string"?s.rejectedSpans=parseInt(r.rejectedSpans,10):typeof r.rejectedSpans=="number"?s.rejectedSpans=r.rejectedSpans:typeof r.rejectedSpans=="object"&&(s.rejectedSpans=new m.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),r.errorMessage!=null&&(s.errorMessage=String(r.errorMessage)),s},c.toObject=function(r,s){s||(s={});var u={};if(s.defaults){if(m.Long){var p=new m.Long(0,0,!1);u.rejectedSpans=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.rejectedSpans=s.longs===String?"0":0;u.errorMessage=""}return r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&(typeof r.rejectedSpans=="number"?u.rejectedSpans=s.longs===String?String(r.rejectedSpans):r.rejectedSpans:u.rejectedSpans=s.longs===String?m.Long.prototype.toString.call(r.rejectedSpans):s.longs===Number?new m.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(u.errorMessage=r.errorMessage),u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},c})(),a})(),i})(),n.metrics=(function(){var i={};return i.v1=(function(){var a={};return a.MetricsService=(function(){function c(o,r,s){Y.rpc.Service.call(this,o,r,s)}return(c.prototype=Object.create(Y.rpc.Service.prototype)).constructor=c,c.create=function(r,s,u){return new this(r,s,u)},Object.defineProperty(c.prototype.export=function o(r,s){return this.rpcCall(o,f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,s)},"name",{value:"Export"}),c})(),a.ExportMetricsServiceRequest=(function(){function c(o){if(this.resourceMetrics=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.resourceMetrics=m.emptyArray,c.create=function(r){return new c(r)},c.encode=function(r,s){if(s||(s=Z.create()),r.resourceMetrics!=null&&r.resourceMetrics.length)for(var u=0;u<r.resourceMetrics.length;++u)f.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[u],s.uint32(10).fork()).ldelim();return s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<u;){var S=r.uint32();S>>>3===1?(p.resourceMetrics&&p.resourceMetrics.length||(p.resourceMetrics=[]),p.resourceMetrics.push(f.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()))):r.skipType(S&7)}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceMetrics!=null&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var s=0;s<r.resourceMetrics.length;++s){var u=f.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[s]);if(u)return"resourceMetrics."+u}}return null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var s=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");s.resourceMetrics=[];for(var u=0;u<r.resourceMetrics.length;++u){if(typeof r.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");s.resourceMetrics[u]=f.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[u])}}return s},c.toObject=function(r,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){u.resourceMetrics=[];for(var p=0;p<r.resourceMetrics.length;++p)u.resourceMetrics[p]=f.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[p],s)}return u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},c})(),a.ExportMetricsServiceResponse=(function(){function c(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.partialSuccess=null,c.create=function(r){return new c(r)},c.encode=function(r,s){return s||(s=Z.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,s.uint32(10).fork()).ldelim(),s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<u;){var S=r.uint32();S>>>3===1?p.partialSuccess=f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32()):r.skipType(S&7)}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var s=f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(s)return"partialSuccess."+s}return null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var s=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");s.partialSuccess=f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return s},c.toObject=function(r,s){s||(s={});var u={};return s.defaults&&(u.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(u.partialSuccess=f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,s)),u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},c})(),a.ExportMetricsPartialSuccess=(function(){function c(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.rejectedDataPoints=null,c.prototype.errorMessage=null,c.create=function(r){return new c(r)},c.encode=function(r,s){return s||(s=Z.create()),r.rejectedDataPoints!=null&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&s.uint32(8).int64(r.rejectedDataPoints),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&s.uint32(18).string(r.errorMessage),s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<u;){var S=r.uint32();switch(S>>>3){case 1:{p.rejectedDataPoints=r.int64();break}case 2:{p.errorMessage=r.string();break}default:r.skipType(S&7);break}}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&!m.isInteger(r.rejectedDataPoints)&&!(r.rejectedDataPoints&&m.isInteger(r.rejectedDataPoints.low)&&m.isInteger(r.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!m.isString(r.errorMessage)?"errorMessage: string expected":null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var s=new f.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return r.rejectedDataPoints!=null&&(m.Long?(s.rejectedDataPoints=m.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:typeof r.rejectedDataPoints=="string"?s.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):typeof r.rejectedDataPoints=="number"?s.rejectedDataPoints=r.rejectedDataPoints:typeof r.rejectedDataPoints=="object"&&(s.rejectedDataPoints=new m.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),r.errorMessage!=null&&(s.errorMessage=String(r.errorMessage)),s},c.toObject=function(r,s){s||(s={});var u={};if(s.defaults){if(m.Long){var p=new m.Long(0,0,!1);u.rejectedDataPoints=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.rejectedDataPoints=s.longs===String?"0":0;u.errorMessage=""}return r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&(typeof r.rejectedDataPoints=="number"?u.rejectedDataPoints=s.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:u.rejectedDataPoints=s.longs===String?m.Long.prototype.toString.call(r.rejectedDataPoints):s.longs===Number?new m.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(u.errorMessage=r.errorMessage),u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},c})(),a})(),i})(),n.logs=(function(){var i={};return i.v1=(function(){var a={};return a.LogsService=(function(){function c(o,r,s){Y.rpc.Service.call(this,o,r,s)}return(c.prototype=Object.create(Y.rpc.Service.prototype)).constructor=c,c.create=function(r,s,u){return new this(r,s,u)},Object.defineProperty(c.prototype.export=function o(r,s){return this.rpcCall(o,f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,s)},"name",{value:"Export"}),c})(),a.ExportLogsServiceRequest=(function(){function c(o){if(this.resourceLogs=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.resourceLogs=m.emptyArray,c.create=function(r){return new c(r)},c.encode=function(r,s){if(s||(s=Z.create()),r.resourceLogs!=null&&r.resourceLogs.length)for(var u=0;u<r.resourceLogs.length;++u)f.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[u],s.uint32(10).fork()).ldelim();return s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<u;){var S=r.uint32();S>>>3===1?(p.resourceLogs&&p.resourceLogs.length||(p.resourceLogs=[]),p.resourceLogs.push(f.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()))):r.skipType(S&7)}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceLogs!=null&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var s=0;s<r.resourceLogs.length;++s){var u=f.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[s]);if(u)return"resourceLogs."+u}}return null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var s=new f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");s.resourceLogs=[];for(var u=0;u<r.resourceLogs.length;++u){if(typeof r.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");s.resourceLogs[u]=f.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[u])}}return s},c.toObject=function(r,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){u.resourceLogs=[];for(var p=0;p<r.resourceLogs.length;++p)u.resourceLogs[p]=f.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[p],s)}return u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},c})(),a.ExportLogsServiceResponse=(function(){function c(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.partialSuccess=null,c.create=function(r){return new c(r)},c.encode=function(r,s){return s||(s=Z.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,s.uint32(10).fork()).ldelim(),s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<u;){var S=r.uint32();S>>>3===1?p.partialSuccess=f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32()):r.skipType(S&7)}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var s=f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(s)return"partialSuccess."+s}return null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var s=new f.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");s.partialSuccess=f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return s},c.toObject=function(r,s){s||(s={});var u={};return s.defaults&&(u.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(u.partialSuccess=f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,s)),u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},c})(),a.ExportLogsPartialSuccess=(function(){function c(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.rejectedLogRecords=null,c.prototype.errorMessage=null,c.create=function(r){return new c(r)},c.encode=function(r,s){return s||(s=Z.create()),r.rejectedLogRecords!=null&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&s.uint32(8).int64(r.rejectedLogRecords),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&s.uint32(18).string(r.errorMessage),s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<u;){var S=r.uint32();switch(S>>>3){case 1:{p.rejectedLogRecords=r.int64();break}case 2:{p.errorMessage=r.string();break}default:r.skipType(S&7);break}}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&!m.isInteger(r.rejectedLogRecords)&&!(r.rejectedLogRecords&&m.isInteger(r.rejectedLogRecords.low)&&m.isInteger(r.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!m.isString(r.errorMessage)?"errorMessage: string expected":null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var s=new f.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return r.rejectedLogRecords!=null&&(m.Long?(s.rejectedLogRecords=m.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:typeof r.rejectedLogRecords=="string"?s.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):typeof r.rejectedLogRecords=="number"?s.rejectedLogRecords=r.rejectedLogRecords:typeof r.rejectedLogRecords=="object"&&(s.rejectedLogRecords=new m.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),r.errorMessage!=null&&(s.errorMessage=String(r.errorMessage)),s},c.toObject=function(r,s){s||(s={});var u={};if(s.defaults){if(m.Long){var p=new m.Long(0,0,!1);u.rejectedLogRecords=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.rejectedLogRecords=s.longs===String?"0":0;u.errorMessage=""}return r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&(typeof r.rejectedLogRecords=="number"?u.rejectedLogRecords=s.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:u.rejectedLogRecords=s.longs===String?m.Long.prototype.toString.call(r.rejectedLogRecords):s.longs===Number?new m.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(u.errorMessage=r.errorMessage),u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},c})(),a})(),i})(),n})(),e.metrics=(function(){var n={};return n.v1=(function(){var i={};return i.MetricsData=(function(){function a(c){if(this.resourceMetrics=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.resourceMetrics=m.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.resourceMetrics!=null&&o.resourceMetrics.length)for(var s=0;s<o.resourceMetrics.length;++s)f.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(o.resourceMetrics[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.metrics.v1.MetricsData;o.pos<s;){var p=o.uint32();p>>>3===1?(u.resourceMetrics&&u.resourceMetrics.length||(u.resourceMetrics=[]),u.resourceMetrics.push(f.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(o,o.uint32()))):o.skipType(p&7)}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceMetrics!=null&&o.hasOwnProperty("resourceMetrics")){if(!Array.isArray(o.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<o.resourceMetrics.length;++r){var s=f.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(o.resourceMetrics[r]);if(s)return"resourceMetrics."+s}}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.metrics.v1.MetricsData)return o;var r=new f.opentelemetry.proto.metrics.v1.MetricsData;if(o.resourceMetrics){if(!Array.isArray(o.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var s=0;s<o.resourceMetrics.length;++s){if(typeof o.resourceMetrics[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[s]=f.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(o.resourceMetrics[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.resourceMetrics=[]),o.resourceMetrics&&o.resourceMetrics.length){s.resourceMetrics=[];for(var u=0;u<o.resourceMetrics.length;++u)s.resourceMetrics[u]=f.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(o.resourceMetrics[u],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.MetricsData"},a})(),i.ResourceMetrics=(function(){function a(c){if(this.scopeMetrics=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.resource=null,a.prototype.scopeMetrics=m.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&f.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeMetrics!=null&&o.scopeMetrics.length)for(var s=0;s<o.scopeMetrics.length;++s)f.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(o.scopeMetrics[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.metrics.v1.ResourceMetrics;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.resource=f.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{u.scopeMetrics&&u.scopeMetrics.length||(u.scopeMetrics=[]),u.scopeMetrics.push(f.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(o,o.uint32()));break}case 3:{u.schemaUrl=o.string();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=f.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeMetrics!=null&&o.hasOwnProperty("scopeMetrics")){if(!Array.isArray(o.scopeMetrics))return"scopeMetrics: array expected";for(var s=0;s<o.scopeMetrics.length;++s){var r=f.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(o.scopeMetrics[s]);if(r)return"scopeMetrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!m.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.metrics.v1.ResourceMetrics)return o;var r=new f.opentelemetry.proto.metrics.v1.ResourceMetrics;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=f.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeMetrics){if(!Array.isArray(o.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var s=0;s<o.scopeMetrics.length;++s){if(typeof o.scopeMetrics[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[s]=f.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(o.scopeMetrics[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.scopeMetrics=[]),r.defaults&&(s.resource=null,s.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(s.resource=f.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeMetrics&&o.scopeMetrics.length){s.scopeMetrics=[];for(var u=0;u<o.scopeMetrics.length;++u)s.scopeMetrics[u]=f.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(o.scopeMetrics[u],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a})(),i.ScopeMetrics=(function(){function a(c){if(this.metrics=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.scope=null,a.prototype.metrics=m.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&f.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.metrics!=null&&o.metrics.length)for(var s=0;s<o.metrics.length;++s)f.opentelemetry.proto.metrics.v1.Metric.encode(o.metrics[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.metrics.v1.ScopeMetrics;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{u.metrics&&u.metrics.length||(u.metrics=[]),u.metrics.push(f.opentelemetry.proto.metrics.v1.Metric.decode(o,o.uint32()));break}case 3:{u.schemaUrl=o.string();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=f.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.metrics!=null&&o.hasOwnProperty("metrics")){if(!Array.isArray(o.metrics))return"metrics: array expected";for(var s=0;s<o.metrics.length;++s){var r=f.opentelemetry.proto.metrics.v1.Metric.verify(o.metrics[s]);if(r)return"metrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!m.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.metrics.v1.ScopeMetrics)return o;var r=new f.opentelemetry.proto.metrics.v1.ScopeMetrics;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.metrics){if(!Array.isArray(o.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var s=0;s<o.metrics.length;++s){if(typeof o.metrics[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[s]=f.opentelemetry.proto.metrics.v1.Metric.fromObject(o.metrics[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.metrics=[]),r.defaults&&(s.scope=null,s.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(s.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.metrics&&o.metrics.length){s.metrics=[];for(var u=0;u<o.metrics.length;++u)s.metrics[u]=f.opentelemetry.proto.metrics.v1.Metric.toObject(o.metrics[u],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a})(),i.Metric=(function(){function a(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.name=null,a.prototype.description=null,a.prototype.unit=null,a.prototype.gauge=null,a.prototype.sum=null,a.prototype.histogram=null,a.prototype.exponentialHistogram=null,a.prototype.summary=null;var c;return Object.defineProperty(a.prototype,"data",{get:m.oneOfGetter(c=["gauge","sum","histogram","exponentialHistogram","summary"]),set:m.oneOfSetter(c)}),a.create=function(r){return new a(r)},a.encode=function(r,s){return s||(s=Z.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&s.uint32(10).string(r.name),r.description!=null&&Object.hasOwnProperty.call(r,"description")&&s.uint32(18).string(r.description),r.unit!=null&&Object.hasOwnProperty.call(r,"unit")&&s.uint32(26).string(r.unit),r.gauge!=null&&Object.hasOwnProperty.call(r,"gauge")&&f.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,s.uint32(42).fork()).ldelim(),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&f.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,s.uint32(58).fork()).ldelim(),r.histogram!=null&&Object.hasOwnProperty.call(r,"histogram")&&f.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,s.uint32(74).fork()).ldelim(),r.exponentialHistogram!=null&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&f.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,s.uint32(82).fork()).ldelim(),r.summary!=null&&Object.hasOwnProperty.call(r,"summary")&&f.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,s.uint32(90).fork()).ldelim(),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.metrics.v1.Metric;r.pos<u;){var S=r.uint32();switch(S>>>3){case 1:{p.name=r.string();break}case 2:{p.description=r.string();break}case 3:{p.unit=r.string();break}case 5:{p.gauge=f.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break}case 7:{p.sum=f.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break}case 9:{p.histogram=f.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break}case 10:{p.exponentialHistogram=f.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break}case 11:{p.summary=f.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break}default:r.skipType(S&7);break}}return p},a.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.name!=null&&r.hasOwnProperty("name")&&!m.isString(r.name))return"name: string expected";if(r.description!=null&&r.hasOwnProperty("description")&&!m.isString(r.description))return"description: string expected";if(r.unit!=null&&r.hasOwnProperty("unit")&&!m.isString(r.unit))return"unit: string expected";if(r.gauge!=null&&r.hasOwnProperty("gauge")){s.data=1;{var u=f.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge);if(u)return"gauge."+u}}if(r.sum!=null&&r.hasOwnProperty("sum")){if(s.data===1)return"data: multiple values";s.data=1;{var u=f.opentelemetry.proto.metrics.v1.Sum.verify(r.sum);if(u)return"sum."+u}}if(r.histogram!=null&&r.hasOwnProperty("histogram")){if(s.data===1)return"data: multiple values";s.data=1;{var u=f.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram);if(u)return"histogram."+u}}if(r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")){if(s.data===1)return"data: multiple values";s.data=1;{var u=f.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram);if(u)return"exponentialHistogram."+u}}if(r.summary!=null&&r.hasOwnProperty("summary")){if(s.data===1)return"data: multiple values";s.data=1;{var u=f.opentelemetry.proto.metrics.v1.Summary.verify(r.summary);if(u)return"summary."+u}}return null},a.fromObject=function(r){if(r instanceof f.opentelemetry.proto.metrics.v1.Metric)return r;var s=new f.opentelemetry.proto.metrics.v1.Metric;if(r.name!=null&&(s.name=String(r.name)),r.description!=null&&(s.description=String(r.description)),r.unit!=null&&(s.unit=String(r.unit)),r.gauge!=null){if(typeof r.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");s.gauge=f.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(r.sum!=null){if(typeof r.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");s.sum=f.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(r.histogram!=null){if(typeof r.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");s.histogram=f.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(r.exponentialHistogram!=null){if(typeof r.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");s.exponentialHistogram=f.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(r.summary!=null){if(typeof r.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");s.summary=f.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return s},a.toObject=function(r,s){s||(s={});var u={};return s.defaults&&(u.name="",u.description="",u.unit=""),r.name!=null&&r.hasOwnProperty("name")&&(u.name=r.name),r.description!=null&&r.hasOwnProperty("description")&&(u.description=r.description),r.unit!=null&&r.hasOwnProperty("unit")&&(u.unit=r.unit),r.gauge!=null&&r.hasOwnProperty("gauge")&&(u.gauge=f.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,s),s.oneofs&&(u.data="gauge")),r.sum!=null&&r.hasOwnProperty("sum")&&(u.sum=f.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,s),s.oneofs&&(u.data="sum")),r.histogram!=null&&r.hasOwnProperty("histogram")&&(u.histogram=f.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,s),s.oneofs&&(u.data="histogram")),r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")&&(u.exponentialHistogram=f.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,s),s.oneofs&&(u.data="exponentialHistogram")),r.summary!=null&&r.hasOwnProperty("summary")&&(u.summary=f.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,s),s.oneofs&&(u.data="summary")),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},a})(),i.Gauge=(function(){function a(c){if(this.dataPoints=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.dataPoints=m.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)f.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.metrics.v1.Gauge;o.pos<s;){var p=o.uint32();p>>>3===1?(u.dataPoints&&u.dataPoints.length||(u.dataPoints=[]),u.dataPoints.push(f.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()))):o.skipType(p&7)}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=f.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.metrics.v1.Gauge)return o;var r=new f.opentelemetry.proto.metrics.v1.Gauge;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[s]=f.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u)s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[u],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Gauge"},a})(),i.Sum=(function(){function a(c){if(this.dataPoints=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.dataPoints=m.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)f.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),o.isMonotonic!=null&&Object.hasOwnProperty.call(o,"isMonotonic")&&r.uint32(24).bool(o.isMonotonic),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.metrics.v1.Sum;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.dataPoints&&u.dataPoints.length||(u.dataPoints=[]),u.dataPoints.push(f.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}case 2:{u.aggregationTemporality=o.int32();break}case 3:{u.isMonotonic=o.bool();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=f.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&typeof o.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.metrics.v1.Sum)return o;var r=new f.opentelemetry.proto.metrics.v1.Sum;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[s]=f.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[s])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return o.isMonotonic!=null&&(r.isMonotonic=!!o.isMonotonic),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),r.defaults&&(s.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,s.isMonotonic=!1),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u)s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[u],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(s.aggregationTemporality=r.enums===String?f.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:f.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&(s.isMonotonic=o.isMonotonic),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Sum"},a})(),i.Histogram=(function(){function a(c){if(this.dataPoints=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.dataPoints=m.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)f.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.metrics.v1.Histogram;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.dataPoints&&u.dataPoints.length||(u.dataPoints=[]),u.dataPoints.push(f.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(o,o.uint32()));break}case 2:{u.aggregationTemporality=o.int32();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=f.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.metrics.v1.Histogram)return o;var r=new f.opentelemetry.proto.metrics.v1.Histogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[s]=f.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(o.dataPoints[s])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),r.defaults&&(s.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u)s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(o.dataPoints[u],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(s.aggregationTemporality=r.enums===String?f.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:f.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Histogram"},a})(),i.ExponentialHistogram=(function(){function a(c){if(this.dataPoints=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.dataPoints=m.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.metrics.v1.ExponentialHistogram;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.dataPoints&&u.dataPoints.length||(u.dataPoints=[]),u.dataPoints.push(f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(o,o.uint32()));break}case 2:{u.aggregationTemporality=o.int32();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.metrics.v1.ExponentialHistogram)return o;var r=new f.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[s]=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(o.dataPoints[s])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),r.defaults&&(s.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u)s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(o.dataPoints[u],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(s.aggregationTemporality=r.enums===String?f.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:f.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a})(),i.Summary=(function(){function a(c){if(this.dataPoints=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.dataPoints=m.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)f.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.metrics.v1.Summary;o.pos<s;){var p=o.uint32();p>>>3===1?(u.dataPoints&&u.dataPoints.length||(u.dataPoints=[]),u.dataPoints.push(f.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(o,o.uint32()))):o.skipType(p&7)}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.metrics.v1.Summary)return o;var r=new f.opentelemetry.proto.metrics.v1.Summary;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[s]=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(o.dataPoints[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u)s.dataPoints[u]=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(o.dataPoints[u],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Summary"},a})(),i.AggregationTemporality=(function(){var a={},c=Object.create(a);return c[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,c[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,c[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,c})(),i.DataPointFlags=(function(){var a={},c=Object.create(a);return c[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,c[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,c})(),i.NumberDataPoint=(function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.attributes=m.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=m.emptyArray,a.prototype.flags=null;var c;return Object.defineProperty(a.prototype,"value",{get:m.oneOfGetter(c=["asDouble","asInt"]),set:m.oneOfSetter(c)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=Z.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&s.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(25).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&s.uint32(33).double(r.asDouble),r.exemplars!=null&&r.exemplars.length)for(var u=0;u<r.exemplars.length;++u)f.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[u],s.uint32(42).fork()).ldelim();if(r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&s.uint32(49).sfixed64(r.asInt),r.attributes!=null&&r.attributes.length)for(var u=0;u<r.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[u],s.uint32(58).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&s.uint32(64).uint32(r.flags),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<u;){var S=r.uint32();switch(S>>>3){case 7:{p.attributes&&p.attributes.length||(p.attributes=[]),p.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{p.startTimeUnixNano=r.fixed64();break}case 3:{p.timeUnixNano=r.fixed64();break}case 4:{p.asDouble=r.double();break}case 6:{p.asInt=r.sfixed64();break}case 5:{p.exemplars&&p.exemplars.length||(p.exemplars=[]),p.exemplars.push(f.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 8:{p.flags=r.uint32();break}default:r.skipType(S&7);break}}return p},a.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var p=f.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(p)return"attributes."+p}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&m.isInteger(r.startTimeUnixNano.low)&&m.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!m.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&m.isInteger(r.timeUnixNano.low)&&m.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(s.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(s.value===1)return"value: multiple values";if(s.value=1,!m.isInteger(r.asInt)&&!(r.asInt&&m.isInteger(r.asInt.low)&&m.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var u=0;u<r.exemplars.length;++u){var p=f.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[u]);if(p)return"exemplars."+p}}return r.flags!=null&&r.hasOwnProperty("flags")&&!m.isInteger(r.flags)?"flags: integer expected":null},a.fromObject=function(r){if(r instanceof f.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var s=new f.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");s.attributes=[];for(var u=0;u<r.attributes.length;++u){if(typeof r.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[u])}}if(r.startTimeUnixNano!=null&&(m.Long?(s.startTimeUnixNano=m.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?s.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?s.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(s.startTimeUnixNano=new m.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(m.Long?(s.timeUnixNano=m.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(s.asDouble=Number(r.asDouble)),r.asInt!=null&&(m.Long?(s.asInt=m.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?s.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?s.asInt=r.asInt:typeof r.asInt=="object"&&(s.asInt=new m.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");s.exemplars=[];for(var u=0;u<r.exemplars.length;++u){if(typeof r.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");s.exemplars[u]=f.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[u])}}return r.flags!=null&&(s.flags=r.flags>>>0),s},a.toObject=function(r,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.exemplars=[],u.attributes=[]),s.defaults){if(m.Long){var p=new m.Long(0,0,!1);u.startTimeUnixNano=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.startTimeUnixNano=s.longs===String?"0":0;if(m.Long){var p=new m.Long(0,0,!1);u.timeUnixNano=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.timeUnixNano=s.longs===String?"0":0;u.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=s.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:u.startTimeUnixNano=s.longs===String?m.Long.prototype.toString.call(r.startTimeUnixNano):s.longs===Number?new m.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?u.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.timeUnixNano=s.longs===String?m.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.asDouble=s.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,s.oneofs&&(u.value="asDouble")),r.exemplars&&r.exemplars.length){u.exemplars=[];for(var S=0;S<r.exemplars.length;++S)u.exemplars[S]=f.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[S],s)}if(r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?u.asInt=s.longs===String?String(r.asInt):r.asInt:u.asInt=s.longs===String?m.Long.prototype.toString.call(r.asInt):s.longs===Number?new m.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,s.oneofs&&(u.value="asInt")),r.attributes&&r.attributes.length){u.attributes=[];for(var S=0;S<r.attributes.length;++S)u.attributes[S]=f.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[S],s)}return r.flags!=null&&r.hasOwnProperty("flags")&&(u.flags=r.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a})(),i.HistogramDataPoint=(function(){function a(o){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.attributes=m.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=m.emptyArray,a.prototype.explicitBounds=m.emptyArray,a.prototype.exemplars=m.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var c;return Object.defineProperty(a.prototype,"_sum",{get:m.oneOfGetter(c=["sum"]),set:m.oneOfSetter(c)}),Object.defineProperty(a.prototype,"_min",{get:m.oneOfGetter(c=["min"]),set:m.oneOfSetter(c)}),Object.defineProperty(a.prototype,"_max",{get:m.oneOfGetter(c=["max"]),set:m.oneOfSetter(c)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=Z.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&s.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&s.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&s.uint32(41).double(r.sum),r.bucketCounts!=null&&r.bucketCounts.length){s.uint32(50).fork();for(var u=0;u<r.bucketCounts.length;++u)s.fixed64(r.bucketCounts[u]);s.ldelim()}if(r.explicitBounds!=null&&r.explicitBounds.length){s.uint32(58).fork();for(var u=0;u<r.explicitBounds.length;++u)s.double(r.explicitBounds[u]);s.ldelim()}if(r.exemplars!=null&&r.exemplars.length)for(var u=0;u<r.exemplars.length;++u)f.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[u],s.uint32(66).fork()).ldelim();if(r.attributes!=null&&r.attributes.length)for(var u=0;u<r.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[u],s.uint32(74).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&s.uint32(80).uint32(r.flags),r.min!=null&&Object.hasOwnProperty.call(r,"min")&&s.uint32(89).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&s.uint32(97).double(r.max),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<u;){var S=r.uint32();switch(S>>>3){case 9:{p.attributes&&p.attributes.length||(p.attributes=[]),p.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{p.startTimeUnixNano=r.fixed64();break}case 3:{p.timeUnixNano=r.fixed64();break}case 4:{p.count=r.fixed64();break}case 5:{p.sum=r.double();break}case 6:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(S&7)===2)for(var A=r.uint32()+r.pos;r.pos<A;)p.bucketCounts.push(r.fixed64());else p.bucketCounts.push(r.fixed64());break}case 7:{if(p.explicitBounds&&p.explicitBounds.length||(p.explicitBounds=[]),(S&7)===2)for(var A=r.uint32()+r.pos;r.pos<A;)p.explicitBounds.push(r.double());else p.explicitBounds.push(r.double());break}case 8:{p.exemplars&&p.exemplars.length||(p.exemplars=[]),p.exemplars.push(f.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 10:{p.flags=r.uint32();break}case 11:{p.min=r.double();break}case 12:{p.max=r.double();break}default:r.skipType(S&7);break}}return p},a.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var p=f.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(p)return"attributes."+p}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&m.isInteger(r.startTimeUnixNano.low)&&m.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!m.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&m.isInteger(r.timeUnixNano.low)&&m.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!m.isInteger(r.count)&&!(r.count&&m.isInteger(r.count.low)&&m.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(s._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.bucketCounts!=null&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<r.bucketCounts.length;++u)if(!m.isInteger(r.bucketCounts[u])&&!(r.bucketCounts[u]&&m.isInteger(r.bucketCounts[u].low)&&m.isInteger(r.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}if(r.explicitBounds!=null&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(var u=0;u<r.explicitBounds.length;++u)if(typeof r.explicitBounds[u]!="number")return"explicitBounds: number[] expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var u=0;u<r.exemplars.length;++u){var p=f.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[u]);if(p)return"exemplars."+p}}return r.flags!=null&&r.hasOwnProperty("flags")&&!m.isInteger(r.flags)?"flags: integer expected":r.min!=null&&r.hasOwnProperty("min")&&(s._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(s._max=1,typeof r.max!="number")?"max: number expected":null},a.fromObject=function(r){if(r instanceof f.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var s=new f.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");s.attributes=[];for(var u=0;u<r.attributes.length;++u){if(typeof r.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[u])}}if(r.startTimeUnixNano!=null&&(m.Long?(s.startTimeUnixNano=m.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?s.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?s.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(s.startTimeUnixNano=new m.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(m.Long?(s.timeUnixNano=m.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(m.Long?(s.count=m.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?s.count=parseInt(r.count,10):typeof r.count=="number"?s.count=r.count:typeof r.count=="object"&&(s.count=new m.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(s.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");s.bucketCounts=[];for(var u=0;u<r.bucketCounts.length;++u)m.Long?(s.bucketCounts[u]=m.Long.fromValue(r.bucketCounts[u])).unsigned=!1:typeof r.bucketCounts[u]=="string"?s.bucketCounts[u]=parseInt(r.bucketCounts[u],10):typeof r.bucketCounts[u]=="number"?s.bucketCounts[u]=r.bucketCounts[u]:typeof r.bucketCounts[u]=="object"&&(s.bucketCounts[u]=new m.LongBits(r.bucketCounts[u].low>>>0,r.bucketCounts[u].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");s.explicitBounds=[];for(var u=0;u<r.explicitBounds.length;++u)s.explicitBounds[u]=Number(r.explicitBounds[u])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");s.exemplars=[];for(var u=0;u<r.exemplars.length;++u){if(typeof r.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");s.exemplars[u]=f.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[u])}}return r.flags!=null&&(s.flags=r.flags>>>0),r.min!=null&&(s.min=Number(r.min)),r.max!=null&&(s.max=Number(r.max)),s},a.toObject=function(r,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.bucketCounts=[],u.explicitBounds=[],u.exemplars=[],u.attributes=[]),s.defaults){if(m.Long){var p=new m.Long(0,0,!1);u.startTimeUnixNano=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.startTimeUnixNano=s.longs===String?"0":0;if(m.Long){var p=new m.Long(0,0,!1);u.timeUnixNano=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.timeUnixNano=s.longs===String?"0":0;if(m.Long){var p=new m.Long(0,0,!1);u.count=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.count=s.longs===String?"0":0;u.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=s.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:u.startTimeUnixNano=s.longs===String?m.Long.prototype.toString.call(r.startTimeUnixNano):s.longs===Number?new m.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?u.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.timeUnixNano=s.longs===String?m.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?u.count=s.longs===String?String(r.count):r.count:u.count=s.longs===String?m.Long.prototype.toString.call(r.count):s.longs===Number?new m.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(u.sum=s.json&&!isFinite(r.sum)?String(r.sum):r.sum,s.oneofs&&(u._sum="sum")),r.bucketCounts&&r.bucketCounts.length){u.bucketCounts=[];for(var S=0;S<r.bucketCounts.length;++S)typeof r.bucketCounts[S]=="number"?u.bucketCounts[S]=s.longs===String?String(r.bucketCounts[S]):r.bucketCounts[S]:u.bucketCounts[S]=s.longs===String?m.Long.prototype.toString.call(r.bucketCounts[S]):s.longs===Number?new m.LongBits(r.bucketCounts[S].low>>>0,r.bucketCounts[S].high>>>0).toNumber():r.bucketCounts[S]}if(r.explicitBounds&&r.explicitBounds.length){u.explicitBounds=[];for(var S=0;S<r.explicitBounds.length;++S)u.explicitBounds[S]=s.json&&!isFinite(r.explicitBounds[S])?String(r.explicitBounds[S]):r.explicitBounds[S]}if(r.exemplars&&r.exemplars.length){u.exemplars=[];for(var S=0;S<r.exemplars.length;++S)u.exemplars[S]=f.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[S],s)}if(r.attributes&&r.attributes.length){u.attributes=[];for(var S=0;S<r.attributes.length;++S)u.attributes[S]=f.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[S],s)}return r.flags!=null&&r.hasOwnProperty("flags")&&(u.flags=r.flags),r.min!=null&&r.hasOwnProperty("min")&&(u.min=s.json&&!isFinite(r.min)?String(r.min):r.min,s.oneofs&&(u._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(u.max=s.json&&!isFinite(r.max)?String(r.max):r.max,s.oneofs&&(u._max="max")),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a})(),i.ExponentialHistogramDataPoint=(function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.attributes=m.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.scale=null,a.prototype.zeroCount=null,a.prototype.positive=null,a.prototype.negative=null,a.prototype.flags=null,a.prototype.exemplars=m.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var c;return Object.defineProperty(a.prototype,"_sum",{get:m.oneOfGetter(c=["sum"]),set:m.oneOfSetter(c)}),Object.defineProperty(a.prototype,"_min",{get:m.oneOfGetter(c=["min"]),set:m.oneOfSetter(c)}),Object.defineProperty(a.prototype,"_max",{get:m.oneOfGetter(c=["max"]),set:m.oneOfSetter(c)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=Z.create()),r.attributes!=null&&r.attributes.length)for(var u=0;u<r.attributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[u],s.uint32(10).fork()).ldelim();if(r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&s.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&s.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&s.uint32(41).double(r.sum),r.scale!=null&&Object.hasOwnProperty.call(r,"scale")&&s.uint32(48).sint32(r.scale),r.zeroCount!=null&&Object.hasOwnProperty.call(r,"zeroCount")&&s.uint32(57).fixed64(r.zeroCount),r.positive!=null&&Object.hasOwnProperty.call(r,"positive")&&f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,s.uint32(66).fork()).ldelim(),r.negative!=null&&Object.hasOwnProperty.call(r,"negative")&&f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,s.uint32(74).fork()).ldelim(),r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&s.uint32(80).uint32(r.flags),r.exemplars!=null&&r.exemplars.length)for(var u=0;u<r.exemplars.length;++u)f.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[u],s.uint32(90).fork()).ldelim();return r.min!=null&&Object.hasOwnProperty.call(r,"min")&&s.uint32(97).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&s.uint32(105).double(r.max),r.zeroThreshold!=null&&Object.hasOwnProperty.call(r,"zeroThreshold")&&s.uint32(113).double(r.zeroThreshold),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<u;){var S=r.uint32();switch(S>>>3){case 1:{p.attributes&&p.attributes.length||(p.attributes=[]),p.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{p.startTimeUnixNano=r.fixed64();break}case 3:{p.timeUnixNano=r.fixed64();break}case 4:{p.count=r.fixed64();break}case 5:{p.sum=r.double();break}case 6:{p.scale=r.sint32();break}case 7:{p.zeroCount=r.fixed64();break}case 8:{p.positive=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 9:{p.negative=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 10:{p.flags=r.uint32();break}case 11:{p.exemplars&&p.exemplars.length||(p.exemplars=[]),p.exemplars.push(f.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 12:{p.min=r.double();break}case 13:{p.max=r.double();break}case 14:{p.zeroThreshold=r.double();break}default:r.skipType(S&7);break}}return p},a.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var p=f.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(p)return"attributes."+p}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&m.isInteger(r.startTimeUnixNano.low)&&m.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!m.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&m.isInteger(r.timeUnixNano.low)&&m.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!m.isInteger(r.count)&&!(r.count&&m.isInteger(r.count.low)&&m.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(s._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.scale!=null&&r.hasOwnProperty("scale")&&!m.isInteger(r.scale))return"scale: integer expected";if(r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&!m.isInteger(r.zeroCount)&&!(r.zeroCount&&m.isInteger(r.zeroCount.low)&&m.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(r.positive!=null&&r.hasOwnProperty("positive")){var p=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive);if(p)return"positive."+p}if(r.negative!=null&&r.hasOwnProperty("negative")){var p=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative);if(p)return"negative."+p}if(r.flags!=null&&r.hasOwnProperty("flags")&&!m.isInteger(r.flags))return"flags: integer expected";if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var u=0;u<r.exemplars.length;++u){var p=f.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[u]);if(p)return"exemplars."+p}}return r.min!=null&&r.hasOwnProperty("min")&&(s._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(s._max=1,typeof r.max!="number")?"max: number expected":r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&typeof r.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(r){if(r instanceof f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var s=new f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");s.attributes=[];for(var u=0;u<r.attributes.length;++u){if(typeof r.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");s.attributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[u])}}if(r.startTimeUnixNano!=null&&(m.Long?(s.startTimeUnixNano=m.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?s.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?s.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(s.startTimeUnixNano=new m.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(m.Long?(s.timeUnixNano=m.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(m.Long?(s.count=m.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?s.count=parseInt(r.count,10):typeof r.count=="number"?s.count=r.count:typeof r.count=="object"&&(s.count=new m.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(s.sum=Number(r.sum)),r.scale!=null&&(s.scale=r.scale|0),r.zeroCount!=null&&(m.Long?(s.zeroCount=m.Long.fromValue(r.zeroCount)).unsigned=!1:typeof r.zeroCount=="string"?s.zeroCount=parseInt(r.zeroCount,10):typeof r.zeroCount=="number"?s.zeroCount=r.zeroCount:typeof r.zeroCount=="object"&&(s.zeroCount=new m.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),r.positive!=null){if(typeof r.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");s.positive=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(r.negative!=null){if(typeof r.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");s.negative=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(r.flags!=null&&(s.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");s.exemplars=[];for(var u=0;u<r.exemplars.length;++u){if(typeof r.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");s.exemplars[u]=f.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[u])}}return r.min!=null&&(s.min=Number(r.min)),r.max!=null&&(s.max=Number(r.max)),r.zeroThreshold!=null&&(s.zeroThreshold=Number(r.zeroThreshold)),s},a.toObject=function(r,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.attributes=[],u.exemplars=[]),s.defaults){if(m.Long){var p=new m.Long(0,0,!1);u.startTimeUnixNano=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.startTimeUnixNano=s.longs===String?"0":0;if(m.Long){var p=new m.Long(0,0,!1);u.timeUnixNano=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.timeUnixNano=s.longs===String?"0":0;if(m.Long){var p=new m.Long(0,0,!1);u.count=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.count=s.longs===String?"0":0;if(u.scale=0,m.Long){var p=new m.Long(0,0,!1);u.zeroCount=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.zeroCount=s.longs===String?"0":0;u.positive=null,u.negative=null,u.flags=0,u.zeroThreshold=0}if(r.attributes&&r.attributes.length){u.attributes=[];for(var S=0;S<r.attributes.length;++S)u.attributes[S]=f.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[S],s)}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=s.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:u.startTimeUnixNano=s.longs===String?m.Long.prototype.toString.call(r.startTimeUnixNano):s.longs===Number?new m.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?u.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.timeUnixNano=s.longs===String?m.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?u.count=s.longs===String?String(r.count):r.count:u.count=s.longs===String?m.Long.prototype.toString.call(r.count):s.longs===Number?new m.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(u.sum=s.json&&!isFinite(r.sum)?String(r.sum):r.sum,s.oneofs&&(u._sum="sum")),r.scale!=null&&r.hasOwnProperty("scale")&&(u.scale=r.scale),r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&(typeof r.zeroCount=="number"?u.zeroCount=s.longs===String?String(r.zeroCount):r.zeroCount:u.zeroCount=s.longs===String?m.Long.prototype.toString.call(r.zeroCount):s.longs===Number?new m.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),r.positive!=null&&r.hasOwnProperty("positive")&&(u.positive=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,s)),r.negative!=null&&r.hasOwnProperty("negative")&&(u.negative=f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,s)),r.flags!=null&&r.hasOwnProperty("flags")&&(u.flags=r.flags),r.exemplars&&r.exemplars.length){u.exemplars=[];for(var S=0;S<r.exemplars.length;++S)u.exemplars[S]=f.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[S],s)}return r.min!=null&&r.hasOwnProperty("min")&&(u.min=s.json&&!isFinite(r.min)?String(r.min):r.min,s.oneofs&&(u._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(u.max=s.json&&!isFinite(r.max)?String(r.max):r.max,s.oneofs&&(u._max="max")),r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&(u.zeroThreshold=s.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=(function(){function o(r){if(this.bucketCounts=[],r)for(var s=Object.keys(r),u=0;u<s.length;++u)r[s[u]]!=null&&(this[s[u]]=r[s[u]])}return o.prototype.offset=null,o.prototype.bucketCounts=m.emptyArray,o.create=function(s){return new o(s)},o.encode=function(s,u){if(u||(u=Z.create()),s.offset!=null&&Object.hasOwnProperty.call(s,"offset")&&u.uint32(8).sint32(s.offset),s.bucketCounts!=null&&s.bucketCounts.length){u.uint32(18).fork();for(var p=0;p<s.bucketCounts.length;++p)u.uint64(s.bucketCounts[p]);u.ldelim()}return u},o.encodeDelimited=function(s,u){return this.encode(s,u).ldelim()},o.decode=function(s,u){s instanceof g||(s=g.create(s));for(var p=u===void 0?s.len:s.pos+u,S=new f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;s.pos<p;){var A=s.uint32();switch(A>>>3){case 1:{S.offset=s.sint32();break}case 2:{if(S.bucketCounts&&S.bucketCounts.length||(S.bucketCounts=[]),(A&7)===2)for(var O=s.uint32()+s.pos;s.pos<O;)S.bucketCounts.push(s.uint64());else S.bucketCounts.push(s.uint64());break}default:s.skipType(A&7);break}}return S},o.decodeDelimited=function(s){return s instanceof g||(s=new g(s)),this.decode(s,s.uint32())},o.verify=function(s){if(typeof s!="object"||s===null)return"object expected";if(s.offset!=null&&s.hasOwnProperty("offset")&&!m.isInteger(s.offset))return"offset: integer expected";if(s.bucketCounts!=null&&s.hasOwnProperty("bucketCounts")){if(!Array.isArray(s.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<s.bucketCounts.length;++u)if(!m.isInteger(s.bucketCounts[u])&&!(s.bucketCounts[u]&&m.isInteger(s.bucketCounts[u].low)&&m.isInteger(s.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}return null},o.fromObject=function(s){if(s instanceof f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return s;var u=new f.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(s.offset!=null&&(u.offset=s.offset|0),s.bucketCounts){if(!Array.isArray(s.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");u.bucketCounts=[];for(var p=0;p<s.bucketCounts.length;++p)m.Long?(u.bucketCounts[p]=m.Long.fromValue(s.bucketCounts[p])).unsigned=!0:typeof s.bucketCounts[p]=="string"?u.bucketCounts[p]=parseInt(s.bucketCounts[p],10):typeof s.bucketCounts[p]=="number"?u.bucketCounts[p]=s.bucketCounts[p]:typeof s.bucketCounts[p]=="object"&&(u.bucketCounts[p]=new m.LongBits(s.bucketCounts[p].low>>>0,s.bucketCounts[p].high>>>0).toNumber(!0))}return u},o.toObject=function(s,u){u||(u={});var p={};if((u.arrays||u.defaults)&&(p.bucketCounts=[]),u.defaults&&(p.offset=0),s.offset!=null&&s.hasOwnProperty("offset")&&(p.offset=s.offset),s.bucketCounts&&s.bucketCounts.length){p.bucketCounts=[];for(var S=0;S<s.bucketCounts.length;++S)typeof s.bucketCounts[S]=="number"?p.bucketCounts[S]=u.longs===String?String(s.bucketCounts[S]):s.bucketCounts[S]:p.bucketCounts[S]=u.longs===String?m.Long.prototype.toString.call(s.bucketCounts[S]):u.longs===Number?new m.LongBits(s.bucketCounts[S].low>>>0,s.bucketCounts[S].high>>>0).toNumber(!0):s.bucketCounts[S]}return p},o.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},o.getTypeUrl=function(s){return s===void 0&&(s="type.googleapis.com"),s+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},o})(),a})(),i.SummaryDataPoint=(function(){function a(c){if(this.attributes=[],this.quantileValues=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.attributes=m.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=m.emptyArray,a.prototype.flags=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(17).fixed64(o.startTimeUnixNano),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(25).fixed64(o.timeUnixNano),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&r.uint32(33).fixed64(o.count),o.sum!=null&&Object.hasOwnProperty.call(o,"sum")&&r.uint32(41).double(o.sum),o.quantileValues!=null&&o.quantileValues.length)for(var s=0;s<o.quantileValues.length;++s)f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(o.quantileValues[s],r.uint32(50).fork()).ldelim();if(o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)f.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(58).fork()).ldelim();return o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(64).uint32(o.flags),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.metrics.v1.SummaryDataPoint;o.pos<s;){var p=o.uint32();switch(p>>>3){case 7:{u.attributes&&u.attributes.length||(u.attributes=[]),u.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{u.startTimeUnixNano=o.fixed64();break}case 3:{u.timeUnixNano=o.fixed64();break}case 4:{u.count=o.fixed64();break}case 5:{u.sum=o.double();break}case 6:{u.quantileValues&&u.quantileValues.length||(u.quantileValues=[]),u.quantileValues.push(f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(o,o.uint32()));break}case 8:{u.flags=o.uint32();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var s=f.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(s)return"attributes."+s}}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!m.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&m.isInteger(o.startTimeUnixNano.low)&&m.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!m.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&m.isInteger(o.timeUnixNano.low)&&m.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.count!=null&&o.hasOwnProperty("count")&&!m.isInteger(o.count)&&!(o.count&&m.isInteger(o.count.low)&&m.isInteger(o.count.high)))return"count: integer|Long expected";if(o.sum!=null&&o.hasOwnProperty("sum")&&typeof o.sum!="number")return"sum: number expected";if(o.quantileValues!=null&&o.hasOwnProperty("quantileValues")){if(!Array.isArray(o.quantileValues))return"quantileValues: array expected";for(var r=0;r<o.quantileValues.length;++r){var s=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(o.quantileValues[r]);if(s)return"quantileValues."+s}}return o.flags!=null&&o.hasOwnProperty("flags")&&!m.isInteger(o.flags)?"flags: integer expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.metrics.v1.SummaryDataPoint)return o;var r=new f.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[s]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}if(o.startTimeUnixNano!=null&&(m.Long?(r.startTimeUnixNano=m.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new m.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.timeUnixNano!=null&&(m.Long?(r.timeUnixNano=m.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new m.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.count!=null&&(m.Long?(r.count=m.Long.fromValue(o.count)).unsigned=!1:typeof o.count=="string"?r.count=parseInt(o.count,10):typeof o.count=="number"?r.count=o.count:typeof o.count=="object"&&(r.count=new m.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber())),o.sum!=null&&(r.sum=Number(o.sum)),o.quantileValues){if(!Array.isArray(o.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");r.quantileValues=[];for(var s=0;s<o.quantileValues.length;++s){if(typeof o.quantileValues[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[s]=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(o.quantileValues[s])}}return o.flags!=null&&(r.flags=o.flags>>>0),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.quantileValues=[],s.attributes=[]),r.defaults){if(m.Long){var u=new m.Long(0,0,!1);s.startTimeUnixNano=r.longs===String?u.toString():r.longs===Number?u.toNumber():u}else s.startTimeUnixNano=r.longs===String?"0":0;if(m.Long){var u=new m.Long(0,0,!1);s.timeUnixNano=r.longs===String?u.toString():r.longs===Number?u.toNumber():u}else s.timeUnixNano=r.longs===String?"0":0;if(m.Long){var u=new m.Long(0,0,!1);s.count=r.longs===String?u.toString():r.longs===Number?u.toNumber():u}else s.count=r.longs===String?"0":0;s.sum=0,s.flags=0}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?s.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:s.startTimeUnixNano=r.longs===String?m.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new m.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?s.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:s.timeUnixNano=r.longs===String?m.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new m.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?s.count=r.longs===String?String(o.count):o.count:s.count=r.longs===String?m.Long.prototype.toString.call(o.count):r.longs===Number?new m.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber():o.count),o.sum!=null&&o.hasOwnProperty("sum")&&(s.sum=r.json&&!isFinite(o.sum)?String(o.sum):o.sum),o.quantileValues&&o.quantileValues.length){s.quantileValues=[];for(var p=0;p<o.quantileValues.length;++p)s.quantileValues[p]=f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(o.quantileValues[p],r)}if(o.attributes&&o.attributes.length){s.attributes=[];for(var p=0;p<o.attributes.length;++p)s.attributes[p]=f.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[p],r)}return o.flags!=null&&o.hasOwnProperty("flags")&&(s.flags=o.flags),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=(function(){function c(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return c.prototype.quantile=null,c.prototype.value=null,c.create=function(r){return new c(r)},c.encode=function(r,s){return s||(s=Z.create()),r.quantile!=null&&Object.hasOwnProperty.call(r,"quantile")&&s.uint32(9).double(r.quantile),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&s.uint32(17).double(r.value),s},c.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},c.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<u;){var S=r.uint32();switch(S>>>3){case 1:{p.quantile=r.double();break}case 2:{p.value=r.double();break}default:r.skipType(S&7);break}}return p},c.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},c.verify=function(r){return typeof r!="object"||r===null?"object expected":r.quantile!=null&&r.hasOwnProperty("quantile")&&typeof r.quantile!="number"?"quantile: number expected":r.value!=null&&r.hasOwnProperty("value")&&typeof r.value!="number"?"value: number expected":null},c.fromObject=function(r){if(r instanceof f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var s=new f.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return r.quantile!=null&&(s.quantile=Number(r.quantile)),r.value!=null&&(s.value=Number(r.value)),s},c.toObject=function(r,s){s||(s={});var u={};return s.defaults&&(u.quantile=0,u.value=0),r.quantile!=null&&r.hasOwnProperty("quantile")&&(u.quantile=s.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),r.value!=null&&r.hasOwnProperty("value")&&(u.value=s.json&&!isFinite(r.value)?String(r.value):r.value),u},c.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},c.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},c})(),a})(),i.Exemplar=(function(){function a(o){if(this.filteredAttributes=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.filteredAttributes=m.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var c;return Object.defineProperty(a.prototype,"value",{get:m.oneOfGetter(c=["asDouble","asInt"]),set:m.oneOfSetter(c)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=Z.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(17).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&s.uint32(25).double(r.asDouble),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&s.uint32(34).bytes(r.spanId),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&s.uint32(42).bytes(r.traceId),r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&s.uint32(49).sfixed64(r.asInt),r.filteredAttributes!=null&&r.filteredAttributes.length)for(var u=0;u<r.filteredAttributes.length;++u)f.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[u],s.uint32(58).fork()).ldelim();return s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof g||(r=g.create(r));for(var u=s===void 0?r.len:r.pos+s,p=new f.opentelemetry.proto.metrics.v1.Exemplar;r.pos<u;){var S=r.uint32();switch(S>>>3){case 7:{p.filteredAttributes&&p.filteredAttributes.length||(p.filteredAttributes=[]),p.filteredAttributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{p.timeUnixNano=r.fixed64();break}case 3:{p.asDouble=r.double();break}case 6:{p.asInt=r.sfixed64();break}case 4:{p.spanId=r.bytes();break}case 5:{p.traceId=r.bytes();break}default:r.skipType(S&7);break}}return p},a.decodeDelimited=function(r){return r instanceof g||(r=new g(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.filteredAttributes!=null&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var u=0;u<r.filteredAttributes.length;++u){var p=f.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[u]);if(p)return"filteredAttributes."+p}}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!m.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&m.isInteger(r.timeUnixNano.low)&&m.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(s.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(s.value===1)return"value: multiple values";if(s.value=1,!m.isInteger(r.asInt)&&!(r.asInt&&m.isInteger(r.asInt.low)&&m.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||m.isString(r.spanId))?"spanId: buffer expected":r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||m.isString(r.traceId))?"traceId: buffer expected":null},a.fromObject=function(r){if(r instanceof f.opentelemetry.proto.metrics.v1.Exemplar)return r;var s=new f.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");s.filteredAttributes=[];for(var u=0;u<r.filteredAttributes.length;++u){if(typeof r.filteredAttributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");s.filteredAttributes[u]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[u])}}return r.timeUnixNano!=null&&(m.Long?(s.timeUnixNano=m.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(s.asDouble=Number(r.asDouble)),r.asInt!=null&&(m.Long?(s.asInt=m.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?s.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?s.asInt=r.asInt:typeof r.asInt=="object"&&(s.asInt=new m.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.spanId!=null&&(typeof r.spanId=="string"?m.base64.decode(r.spanId,s.spanId=m.newBuffer(m.base64.length(r.spanId)),0):r.spanId.length>=0&&(s.spanId=r.spanId)),r.traceId!=null&&(typeof r.traceId=="string"?m.base64.decode(r.traceId,s.traceId=m.newBuffer(m.base64.length(r.traceId)),0):r.traceId.length>=0&&(s.traceId=r.traceId)),s},a.toObject=function(r,s){s||(s={});var u={};if((s.arrays||s.defaults)&&(u.filteredAttributes=[]),s.defaults){if(m.Long){var p=new m.Long(0,0,!1);u.timeUnixNano=s.longs===String?p.toString():s.longs===Number?p.toNumber():p}else u.timeUnixNano=s.longs===String?"0":0;s.bytes===String?u.spanId="":(u.spanId=[],s.bytes!==Array&&(u.spanId=m.newBuffer(u.spanId))),s.bytes===String?u.traceId="":(u.traceId=[],s.bytes!==Array&&(u.traceId=m.newBuffer(u.traceId)))}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?u.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:u.timeUnixNano=s.longs===String?m.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new m.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.asDouble=s.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,s.oneofs&&(u.value="asDouble")),r.spanId!=null&&r.hasOwnProperty("spanId")&&(u.spanId=s.bytes===String?m.base64.encode(r.spanId,0,r.spanId.length):s.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceId!=null&&r.hasOwnProperty("traceId")&&(u.traceId=s.bytes===String?m.base64.encode(r.traceId,0,r.traceId.length):s.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?u.asInt=s.longs===String?String(r.asInt):r.asInt:u.asInt=s.longs===String?m.Long.prototype.toString.call(r.asInt):s.longs===Number?new m.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,s.oneofs&&(u.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){u.filteredAttributes=[];for(var S=0;S<r.filteredAttributes.length;++S)u.filteredAttributes[S]=f.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[S],s)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},a})(),i})(),n})(),e.logs=(function(){var n={};return n.v1=(function(){var i={};return i.LogsData=(function(){function a(c){if(this.resourceLogs=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.resourceLogs=m.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.resourceLogs!=null&&o.resourceLogs.length)for(var s=0;s<o.resourceLogs.length;++s)f.opentelemetry.proto.logs.v1.ResourceLogs.encode(o.resourceLogs[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.logs.v1.LogsData;o.pos<s;){var p=o.uint32();p>>>3===1?(u.resourceLogs&&u.resourceLogs.length||(u.resourceLogs=[]),u.resourceLogs.push(f.opentelemetry.proto.logs.v1.ResourceLogs.decode(o,o.uint32()))):o.skipType(p&7)}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceLogs!=null&&o.hasOwnProperty("resourceLogs")){if(!Array.isArray(o.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<o.resourceLogs.length;++r){var s=f.opentelemetry.proto.logs.v1.ResourceLogs.verify(o.resourceLogs[r]);if(s)return"resourceLogs."+s}}return null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.logs.v1.LogsData)return o;var r=new f.opentelemetry.proto.logs.v1.LogsData;if(o.resourceLogs){if(!Array.isArray(o.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var s=0;s<o.resourceLogs.length;++s){if(typeof o.resourceLogs[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[s]=f.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(o.resourceLogs[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.resourceLogs=[]),o.resourceLogs&&o.resourceLogs.length){s.resourceLogs=[];for(var u=0;u<o.resourceLogs.length;++u)s.resourceLogs[u]=f.opentelemetry.proto.logs.v1.ResourceLogs.toObject(o.resourceLogs[u],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogsData"},a})(),i.ResourceLogs=(function(){function a(c){if(this.scopeLogs=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.resource=null,a.prototype.scopeLogs=m.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&f.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeLogs!=null&&o.scopeLogs.length)for(var s=0;s<o.scopeLogs.length;++s)f.opentelemetry.proto.logs.v1.ScopeLogs.encode(o.scopeLogs[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.logs.v1.ResourceLogs;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.resource=f.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{u.scopeLogs&&u.scopeLogs.length||(u.scopeLogs=[]),u.scopeLogs.push(f.opentelemetry.proto.logs.v1.ScopeLogs.decode(o,o.uint32()));break}case 3:{u.schemaUrl=o.string();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=f.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeLogs!=null&&o.hasOwnProperty("scopeLogs")){if(!Array.isArray(o.scopeLogs))return"scopeLogs: array expected";for(var s=0;s<o.scopeLogs.length;++s){var r=f.opentelemetry.proto.logs.v1.ScopeLogs.verify(o.scopeLogs[s]);if(r)return"scopeLogs."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!m.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.logs.v1.ResourceLogs)return o;var r=new f.opentelemetry.proto.logs.v1.ResourceLogs;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=f.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeLogs){if(!Array.isArray(o.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var s=0;s<o.scopeLogs.length;++s){if(typeof o.scopeLogs[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[s]=f.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(o.scopeLogs[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.scopeLogs=[]),r.defaults&&(s.resource=null,s.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(s.resource=f.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeLogs&&o.scopeLogs.length){s.scopeLogs=[];for(var u=0;u<o.scopeLogs.length;++u)s.scopeLogs[u]=f.opentelemetry.proto.logs.v1.ScopeLogs.toObject(o.scopeLogs[u],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ResourceLogs"},a})(),i.ScopeLogs=(function(){function a(c){if(this.logRecords=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.scope=null,a.prototype.logRecords=m.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&f.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.logRecords!=null&&o.logRecords.length)for(var s=0;s<o.logRecords.length;++s)f.opentelemetry.proto.logs.v1.LogRecord.encode(o.logRecords[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.logs.v1.ScopeLogs;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{u.logRecords&&u.logRecords.length||(u.logRecords=[]),u.logRecords.push(f.opentelemetry.proto.logs.v1.LogRecord.decode(o,o.uint32()));break}case 3:{u.schemaUrl=o.string();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=f.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.logRecords!=null&&o.hasOwnProperty("logRecords")){if(!Array.isArray(o.logRecords))return"logRecords: array expected";for(var s=0;s<o.logRecords.length;++s){var r=f.opentelemetry.proto.logs.v1.LogRecord.verify(o.logRecords[s]);if(r)return"logRecords."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!m.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.logs.v1.ScopeLogs)return o;var r=new f.opentelemetry.proto.logs.v1.ScopeLogs;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.logRecords){if(!Array.isArray(o.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var s=0;s<o.logRecords.length;++s){if(typeof o.logRecords[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[s]=f.opentelemetry.proto.logs.v1.LogRecord.fromObject(o.logRecords[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.logRecords=[]),r.defaults&&(s.scope=null,s.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(s.scope=f.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.logRecords&&o.logRecords.length){s.logRecords=[];for(var u=0;u<o.logRecords.length;++u)s.logRecords[u]=f.opentelemetry.proto.logs.v1.LogRecord.toObject(o.logRecords[u],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ScopeLogs"},a})(),i.SeverityNumber=(function(){var a={},c=Object.create(a);return c[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,c[a[1]="SEVERITY_NUMBER_TRACE"]=1,c[a[2]="SEVERITY_NUMBER_TRACE2"]=2,c[a[3]="SEVERITY_NUMBER_TRACE3"]=3,c[a[4]="SEVERITY_NUMBER_TRACE4"]=4,c[a[5]="SEVERITY_NUMBER_DEBUG"]=5,c[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,c[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,c[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,c[a[9]="SEVERITY_NUMBER_INFO"]=9,c[a[10]="SEVERITY_NUMBER_INFO2"]=10,c[a[11]="SEVERITY_NUMBER_INFO3"]=11,c[a[12]="SEVERITY_NUMBER_INFO4"]=12,c[a[13]="SEVERITY_NUMBER_WARN"]=13,c[a[14]="SEVERITY_NUMBER_WARN2"]=14,c[a[15]="SEVERITY_NUMBER_WARN3"]=15,c[a[16]="SEVERITY_NUMBER_WARN4"]=16,c[a[17]="SEVERITY_NUMBER_ERROR"]=17,c[a[18]="SEVERITY_NUMBER_ERROR2"]=18,c[a[19]="SEVERITY_NUMBER_ERROR3"]=19,c[a[20]="SEVERITY_NUMBER_ERROR4"]=20,c[a[21]="SEVERITY_NUMBER_FATAL"]=21,c[a[22]="SEVERITY_NUMBER_FATAL2"]=22,c[a[23]="SEVERITY_NUMBER_FATAL3"]=23,c[a[24]="SEVERITY_NUMBER_FATAL4"]=24,c})(),i.LogRecordFlags=(function(){var a={},c=Object.create(a);return c[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,c[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,c})(),i.LogRecord=(function(){function a(c){if(this.attributes=[],c)for(var o=Object.keys(c),r=0;r<o.length;++r)c[o[r]]!=null&&(this[o[r]]=c[o[r]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=m.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=Z.create()),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(9).fixed64(o.timeUnixNano),o.severityNumber!=null&&Object.hasOwnProperty.call(o,"severityNumber")&&r.uint32(16).int32(o.severityNumber),o.severityText!=null&&Object.hasOwnProperty.call(o,"severityText")&&r.uint32(26).string(o.severityText),o.body!=null&&Object.hasOwnProperty.call(o,"body")&&f.opentelemetry.proto.common.v1.AnyValue.encode(o.body,r.uint32(42).fork()).ldelim(),o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)f.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(50).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(56).uint32(o.droppedAttributesCount),o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(69).fixed32(o.flags),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(74).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(82).bytes(o.spanId),o.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"observedTimeUnixNano")&&r.uint32(89).fixed64(o.observedTimeUnixNano),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof g||(o=g.create(o));for(var s=r===void 0?o.len:o.pos+r,u=new f.opentelemetry.proto.logs.v1.LogRecord;o.pos<s;){var p=o.uint32();switch(p>>>3){case 1:{u.timeUnixNano=o.fixed64();break}case 11:{u.observedTimeUnixNano=o.fixed64();break}case 2:{u.severityNumber=o.int32();break}case 3:{u.severityText=o.string();break}case 5:{u.body=f.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}case 6:{u.attributes&&u.attributes.length||(u.attributes=[]),u.attributes.push(f.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 7:{u.droppedAttributesCount=o.uint32();break}case 8:{u.flags=o.fixed32();break}case 9:{u.traceId=o.bytes();break}case 10:{u.spanId=o.bytes();break}default:o.skipType(p&7);break}}return u},a.decodeDelimited=function(o){return o instanceof g||(o=new g(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!m.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&m.isInteger(o.timeUnixNano.low)&&m.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&!m.isInteger(o.observedTimeUnixNano)&&!(o.observedTimeUnixNano&&m.isInteger(o.observedTimeUnixNano.low)&&m.isInteger(o.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(o.severityNumber!=null&&o.hasOwnProperty("severityNumber"))switch(o.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(o.severityText!=null&&o.hasOwnProperty("severityText")&&!m.isString(o.severityText))return"severityText: string expected";if(o.body!=null&&o.hasOwnProperty("body")){var r=f.opentelemetry.proto.common.v1.AnyValue.verify(o.body);if(r)return"body."+r}if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var s=0;s<o.attributes.length;++s){var r=f.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[s]);if(r)return"attributes."+r}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!m.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":o.flags!=null&&o.hasOwnProperty("flags")&&!m.isInteger(o.flags)?"flags: integer expected":o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||m.isString(o.traceId))?"traceId: buffer expected":o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||m.isString(o.spanId))?"spanId: buffer expected":null},a.fromObject=function(o){if(o instanceof f.opentelemetry.proto.logs.v1.LogRecord)return o;var r=new f.opentelemetry.proto.logs.v1.LogRecord;switch(o.timeUnixNano!=null&&(m.Long?(r.timeUnixNano=m.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new m.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.observedTimeUnixNano!=null&&(m.Long?(r.observedTimeUnixNano=m.Long.fromValue(o.observedTimeUnixNano)).unsigned=!1:typeof o.observedTimeUnixNano=="string"?r.observedTimeUnixNano=parseInt(o.observedTimeUnixNano,10):typeof o.observedTimeUnixNano=="number"?r.observedTimeUnixNano=o.observedTimeUnixNano:typeof o.observedTimeUnixNano=="object"&&(r.observedTimeUnixNano=new m.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber())),o.severityNumber){default:if(typeof o.severityNumber=="number"){r.severityNumber=o.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24;break}if(o.severityText!=null&&(r.severityText=String(o.severityText)),o.body!=null){if(typeof o.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=f.opentelemetry.proto.common.v1.AnyValue.fromObject(o.body)}if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[s]=f.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.flags!=null&&(r.flags=o.flags>>>0),o.traceId!=null&&(typeof o.traceId=="string"?m.base64.decode(o.traceId,r.traceId=m.newBuffer(m.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?m.base64.decode(o.spanId,r.spanId=m.newBuffer(m.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[]),r.defaults){if(m.Long){var u=new m.Long(0,0,!1);s.timeUnixNano=r.longs===String?u.toString():r.longs===Number?u.toNumber():u}else s.timeUnixNano=r.longs===String?"0":0;if(s.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,s.severityText="",s.body=null,s.droppedAttributesCount=0,s.flags=0,r.bytes===String?s.traceId="":(s.traceId=[],r.bytes!==Array&&(s.traceId=m.newBuffer(s.traceId))),r.bytes===String?s.spanId="":(s.spanId=[],r.bytes!==Array&&(s.spanId=m.newBuffer(s.spanId))),m.Long){var u=new m.Long(0,0,!1);s.observedTimeUnixNano=r.longs===String?u.toString():r.longs===Number?u.toNumber():u}else s.observedTimeUnixNano=r.longs===String?"0":0}if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?s.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:s.timeUnixNano=r.longs===String?m.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new m.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.severityNumber!=null&&o.hasOwnProperty("severityNumber")&&(s.severityNumber=r.enums===String?f.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]===void 0?o.severityNumber:f.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]:o.severityNumber),o.severityText!=null&&o.hasOwnProperty("severityText")&&(s.severityText=o.severityText),o.body!=null&&o.hasOwnProperty("body")&&(s.body=f.opentelemetry.proto.common.v1.AnyValue.toObject(o.body,r)),o.attributes&&o.attributes.length){s.attributes=[];for(var p=0;p<o.attributes.length;++p)s.attributes[p]=f.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[p],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=o.droppedAttributesCount),o.flags!=null&&o.hasOwnProperty("flags")&&(s.flags=o.flags),o.traceId!=null&&o.hasOwnProperty("traceId")&&(s.traceId=r.bytes===String?m.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(s.spanId=r.bytes===String?m.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&(typeof o.observedTimeUnixNano=="number"?s.observedTimeUnixNano=r.longs===String?String(o.observedTimeUnixNano):o.observedTimeUnixNano:s.observedTimeUnixNano=r.longs===String?m.Long.prototype.toString.call(o.observedTimeUnixNano):r.longs===Number?new m.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber():o.observedTimeUnixNano),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,Y.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogRecord"},a})(),i})(),n})(),e})(),t})();L$.exports=f});var N_=_(er=>{"use strict";l();Object.defineProperty(er,"__esModule",{value:!0});er.getOtlpEncoder=er.encodeAsString=er.encodeAsLongBits=er.toLongBits=er.hrTimeToNanos=void 0;var P_=jt();function Ay(t){let e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}er.hrTimeToNanos=Ay;function w$(t){let e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}er.toLongBits=w$;function xy(t){let e=Ay(t);return w$(e)}er.encodeAsLongBits=xy;function D$(t){return Ay(t).toString()}er.encodeAsString=D$;var dCe=typeof BigInt<"u"?D$:P_.hrTimeToNanoseconds;function C$(t){return t}function U$(t){if(t!==void 0)return(0,P_.hexToBinary)(t)}var fCe={encodeHrTime:xy,encodeSpanContext:P_.hexToBinary,encodeOptionalSpanContext:U$};function _Ce(t){var e,n;if(t===void 0)return fCe;let i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?xy:dCe,encodeSpanContext:a?C$:P_.hexToBinary,encodeOptionalSpanContext:a?C$:U$}}er.getOtlpEncoder=_Ce});var M_=_(tr=>{"use strict";l();Object.defineProperty(tr,"__esModule",{value:!0});tr.toAnyValue=tr.toKeyValue=tr.toAttributes=tr.createInstrumentationScope=tr.createResource=void 0;function mCe(t){return{attributes:V$(t.attributes),droppedAttributesCount:0}}tr.createResource=mCe;function ECe(t){return{name:t.name,version:t.version}}tr.createInstrumentationScope=ECe;function V$(t){return Object.keys(t).map(e=>by(e,t[e]))}tr.toAttributes=V$;function by(t,e){return{key:t,value:Oy(e)}}tr.toKeyValue=by;function Oy(t){let e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(Oy)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([n,i])=>by(n,i))}}:{}}tr.toAnyValue=Oy});var Ry=_(Ka=>{"use strict";l();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.toLogAttributes=Ka.createExportLogsServiceRequest=void 0;var hCe=N_(),I_=M_();function TCe(t,e){let n=(0,hCe.getOtlpEncoder)(e);return{resourceLogs:vCe(t,n)}}Ka.createExportLogsServiceRequest=TCe;function SCe(t){let e=new Map;for(let n of t){let{resource:i,instrumentationScope:{name:a,version:c="",schemaUrl:o=""}}=n,r=e.get(i);r||(r=new Map,e.set(i,r));let s=`${a}@${c}:${o}`,u=r.get(s);u||(u=[],r.set(s,u)),u.push(n)}return e}function vCe(t,e){let n=SCe(t);return Array.from(n,([i,a])=>({resource:(0,I_.createResource)(i),scopeLogs:Array.from(a,([,c])=>({scope:(0,I_.createInstrumentationScope)(c[0].instrumentationScope),logRecords:c.map(o=>gCe(o,e)),schemaUrl:c[0].instrumentationScope.schemaUrl})),schemaUrl:void 0}))}function gCe(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:(0,I_.toAnyValue)(t.body),attributes:k$(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:(n=t.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:e.encodeOptionalSpanContext((i=t.spanContext)===null||i===void 0?void 0:i.traceId),spanId:e.encodeOptionalSpanContext((a=t.spanContext)===null||a===void 0?void 0:a.spanId)}}function k$(t){return Object.keys(t).map(e=>(0,I_.toKeyValue)(e,t[e]))}Ka.toLogAttributes=k$});var G$=_(L_=>{"use strict";l();Object.defineProperty(L_,"__esModule",{value:!0});L_.ProtobufLogsSerializer=void 0;var B$=R_(),yCe=Ry(),ACe=B$.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,xCe=B$.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;L_.ProtobufLogsSerializer={serializeRequest:t=>{let e=(0,yCe.createExportLogsServiceRequest)(t);return xCe.encode(e).finish()},deserializeResponse:t=>ACe.decode(t)}});var j$=_(C_=>{"use strict";l();Object.defineProperty(C_,"__esModule",{value:!0});C_.ProtobufLogsSerializer=void 0;var bCe=G$();Object.defineProperty(C_,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return bCe.ProtobufLogsSerializer}})});var Py=_(Br=>{"use strict";l();Object.defineProperty(Br,"__esModule",{value:!0});Br.createExportMetricsServiceRequest=Br.toMetric=Br.toScopeMetrics=Br.toResourceMetrics=void 0;var H$=(L(),N(C)),$a=oy(),OCe=N_(),Ac=M_();function F$(t,e){let n=(0,OCe.getOtlpEncoder)(e);return{resource:(0,Ac.createResource)(t.resource),schemaUrl:void 0,scopeMetrics:Y$(t.scopeMetrics,n)}}Br.toResourceMetrics=F$;function Y$(t,e){return Array.from(t.map(n=>({scope:(0,Ac.createInstrumentationScope)(n.scope),metrics:n.metrics.map(i=>K$(i,e)),schemaUrl:n.scope.schemaUrl})))}Br.toScopeMetrics=Y$;function K$(t,e){let n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=MCe(t.aggregationTemporality);switch(t.dataPointType){case $a.DataPointType.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:q$(t,e)};break;case $a.DataPointType.GAUGE:n.gauge={dataPoints:q$(t,e)};break;case $a.DataPointType.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:PCe(t,e)};break;case $a.DataPointType.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:NCe(t,e)};break}return n}Br.toMetric=K$;function RCe(t,e,n){let i={attributes:(0,Ac.toAttributes)(t.attributes),startTimeUnixNano:n.encodeHrTime(t.startTime),timeUnixNano:n.encodeHrTime(t.endTime)};switch(e){case H$.ValueType.INT:i.asInt=t.value;break;case H$.ValueType.DOUBLE:i.asDouble=t.value;break}return i}function q$(t,e){return t.dataPoints.map(n=>RCe(n,t.descriptor.valueType,e))}function PCe(t,e){return t.dataPoints.map(n=>{let i=n.value;return{attributes:(0,Ac.toAttributes)(n.attributes),bucketCounts:i.buckets.counts,explicitBounds:i.buckets.boundaries,count:i.count,sum:i.sum,min:i.min,max:i.max,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function NCe(t,e){return t.dataPoints.map(n=>{let i=n.value;return{attributes:(0,Ac.toAttributes)(n.attributes),count:i.count,min:i.min,max:i.max,sum:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},scale:i.scale,zeroCount:i.zeroCount,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function MCe(t){switch(t){case $a.AggregationTemporality.DELTA:return 1;case $a.AggregationTemporality.CUMULATIVE:return 2}}function ICe(t,e){return{resourceMetrics:t.map(n=>F$(n,e))}}Br.createExportMetricsServiceRequest=ICe});var z$=_(w_=>{"use strict";l();Object.defineProperty(w_,"__esModule",{value:!0});w_.ProtobufMetricsSerializer=void 0;var $$=R_(),LCe=Py(),CCe=$$.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,wCe=$$.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;w_.ProtobufMetricsSerializer={serializeRequest:t=>{let e=(0,LCe.createExportMetricsServiceRequest)([t]);return wCe.encode(e).finish()},deserializeResponse:t=>CCe.decode(t)}});var W$=_(D_=>{"use strict";l();Object.defineProperty(D_,"__esModule",{value:!0});D_.ProtobufMetricsSerializer=void 0;var DCe=z$();Object.defineProperty(D_,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return DCe.ProtobufMetricsSerializer}})});var Ny=_(Gr=>{"use strict";l();Object.defineProperty(Gr,"__esModule",{value:!0});Gr.createExportTraceServiceRequest=Gr.toOtlpSpanEvent=Gr.toOtlpLink=Gr.sdkSpanToOtlpSpan=void 0;var xc=M_(),UCe=N_();function X$(t,e){var n;let i=t.spanContext(),a=t.status;return{traceId:e.encodeSpanContext(i.traceId),spanId:e.encodeSpanContext(i.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:(n=i.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:(0,xc.toAttributes)(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(c=>Q$(c,e)),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(c=>J$(c,e)),droppedLinksCount:t.droppedLinksCount}}Gr.sdkSpanToOtlpSpan=X$;function J$(t,e){var n;return{attributes:t.attributes?(0,xc.toAttributes)(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}Gr.toOtlpLink=J$;function Q$(t,e){return{attributes:t.attributes?(0,xc.toAttributes)(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}Gr.toOtlpSpanEvent=Q$;function VCe(t,e){let n=(0,UCe.getOtlpEncoder)(e);return{resourceSpans:BCe(t,n)}}Gr.createExportTraceServiceRequest=VCe;function kCe(t){let e=new Map;for(let n of t){let i=e.get(n.resource);i||(i=new Map,e.set(n.resource,i));let a=`${n.instrumentationLibrary.name}@${n.instrumentationLibrary.version||""}:${n.instrumentationLibrary.schemaUrl||""}`,c=i.get(a);c||(c=[],i.set(a,c)),c.push(n)}return e}function BCe(t,e){let n=kCe(t),i=[],a=n.entries(),c=a.next();for(;!c.done;){let[o,r]=c.value,s=[],u=r.values(),p=u.next();for(;!p.done;){let A=p.value;if(A.length>0){let O=A.map(I=>X$(I,e));s.push({scope:(0,xc.createInstrumentationScope)(A[0].instrumentationLibrary),spans:O,schemaUrl:A[0].instrumentationLibrary.schemaUrl})}p=u.next()}let S={resource:(0,xc.createResource)(o),scopeSpans:s,schemaUrl:void 0};i.push(S),c=a.next()}return i}});var ez=_(U_=>{"use strict";l();Object.defineProperty(U_,"__esModule",{value:!0});U_.ProtobufTraceSerializer=void 0;var Z$=R_(),GCe=Ny(),jCe=Z$.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,HCe=Z$.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;U_.ProtobufTraceSerializer={serializeRequest:t=>{let e=(0,GCe.createExportTraceServiceRequest)(t);return HCe.encode(e).finish()},deserializeResponse:t=>jCe.decode(t)}});var tz=_(V_=>{"use strict";l();Object.defineProperty(V_,"__esModule",{value:!0});V_.ProtobufTraceSerializer=void 0;var qCe=ez();Object.defineProperty(V_,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return qCe.ProtobufTraceSerializer}})});var rz=_(k_=>{"use strict";l();Object.defineProperty(k_,"__esModule",{value:!0});k_.JsonLogsSerializer=void 0;var FCe=Ry();k_.JsonLogsSerializer={serializeRequest:t=>{let e=(0,FCe.createExportLogsServiceRequest)(t,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{let e=new TextDecoder;return JSON.parse(e.decode(t))}}});var nz=_(B_=>{"use strict";l();Object.defineProperty(B_,"__esModule",{value:!0});B_.JsonLogsSerializer=void 0;var YCe=rz();Object.defineProperty(B_,"JsonLogsSerializer",{enumerable:!0,get:function(){return YCe.JsonLogsSerializer}})});var oz=_(G_=>{"use strict";l();Object.defineProperty(G_,"__esModule",{value:!0});G_.JsonMetricsSerializer=void 0;var KCe=Py();G_.JsonMetricsSerializer={serializeRequest:t=>{let e=(0,KCe.createExportMetricsServiceRequest)([t],{useLongBits:!1});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{let e=new TextDecoder;return JSON.parse(e.decode(t))}}});var iz=_(j_=>{"use strict";l();Object.defineProperty(j_,"__esModule",{value:!0});j_.JsonMetricsSerializer=void 0;var $Ce=oz();Object.defineProperty(j_,"JsonMetricsSerializer",{enumerable:!0,get:function(){return $Ce.JsonMetricsSerializer}})});var az=_(H_=>{"use strict";l();Object.defineProperty(H_,"__esModule",{value:!0});H_.JsonTraceSerializer=void 0;var zCe=Ny();H_.JsonTraceSerializer={serializeRequest:t=>{let e=(0,zCe.createExportTraceServiceRequest)(t,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{let e=new TextDecoder;return JSON.parse(e.decode(t))}}});var sz=_(q_=>{"use strict";l();Object.defineProperty(q_,"__esModule",{value:!0});q_.JsonTraceSerializer=void 0;var WCe=az();Object.defineProperty(q_,"JsonTraceSerializer",{enumerable:!0,get:function(){return WCe.JsonTraceSerializer}})});var cz=_(Ct=>{"use strict";l();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.JsonTraceSerializer=Ct.JsonMetricsSerializer=Ct.JsonLogsSerializer=Ct.ProtobufTraceSerializer=Ct.ProtobufMetricsSerializer=Ct.ProtobufLogsSerializer=void 0;var XCe=j$();Object.defineProperty(Ct,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return XCe.ProtobufLogsSerializer}});var JCe=W$();Object.defineProperty(Ct,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return JCe.ProtobufMetricsSerializer}});var QCe=tz();Object.defineProperty(Ct,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return QCe.ProtobufTraceSerializer}});var ZCe=nz();Object.defineProperty(Ct,"JsonLogsSerializer",{enumerable:!0,get:function(){return ZCe.JsonLogsSerializer}});var ewe=iz();Object.defineProperty(Ct,"JsonMetricsSerializer",{enumerable:!0,get:function(){return ewe.JsonMetricsSerializer}});var twe=sz();Object.defineProperty(Ct,"JsonTraceSerializer",{enumerable:!0,get:function(){return twe.JsonTraceSerializer}})});var uz=_(F_=>{"use strict";l();Object.defineProperty(F_,"__esModule",{value:!0});F_.VERSION=void 0;F_.VERSION="0.57.0"});function lz(t){var e=[429,502,503,504];return e.includes(t)}function pz(t){if(t!=null){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}}var dz=w(()=>{l()});var mz={};Qn(mz,{compressAndSend:()=>_z,createHttpAgent:()=>iwe,sendWithHttp:()=>nwe});import*as Y_ from"http";import*as K_ from"https";import*as fz from"zlib";import{Readable as rwe}from"stream";function nwe(t,e,n,i,a){var c=new URL(t.url),o=Number(process.versions.node.split(".")[0]),r={hostname:c.hostname,port:c.port,path:c.pathname,method:"POST",headers:My({},t.headers()),agent:e},s=c.protocol==="http:"?Y_.request:K_.request,u=s(r,function(S){var A=[];S.on("data",function(O){return A.push(O)}),S.on("end",function(){if(S.statusCode&&S.statusCode<299)i({status:"success",data:Buffer.concat(A)});else if(S.statusCode&&lz(S.statusCode))i({status:"retryable",retryInMillis:pz(S.headers["retry-after"])});else{var O=new $o(S.statusMessage,S.statusCode,Buffer.concat(A).toString());i({status:"failure",error:O})}})});u.setTimeout(a,function(){u.destroy(),i({status:"failure",error:new Error("Request Timeout")})}),u.on("error",function(S){i({status:"failure",error:S})});var p=o>=14?"close":"abort";u.on(p,function(){i({status:"failure",error:new Error("Request timed out")})}),_z(u,t.compression,n,function(S){i({status:"failure",error:S})})}function _z(t,e,n,i){var a=owe(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(fz.createGzip()).on("error",i)),a.pipe(t).on("error",i)}function owe(t){var e=new rwe;return e.push(t),e.push(null),e}function iwe(t,e){var n=new URL(t),i=n.protocol==="http:"?Y_.Agent:K_.Agent;return new i(e)}var My,Ez=w(()=>{l();dz();E_();My=function(){return My=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},My.apply(this,arguments)}});function hz(t){return new cwe(t)}var awe,swe,cwe,Tz=w(()=>{l();awe=function(t,e,n,i){function a(c){return c instanceof n?c:new n(function(o){o(c)})}return new(n||(n=Promise))(function(c,o){function r(p){try{u(i.next(p))}catch(S){o(S)}}function s(p){try{u(i.throw(p))}catch(S){o(S)}}function u(p){p.done?c(p.value):a(p.value).then(r,s)}u((i=i.apply(t,e||[])).next())})},swe=function(t,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,a,c,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(u){return function(p){return s([u,p])}}function s(u){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(c=u[0]&2?a.return:u[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,u[1])).done)return c;switch(a=0,c&&(u=[u[0]&2,c.value]),u[0]){case 0:case 1:c=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(c=n.trys,!(c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1],c=u;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(u);break}c[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(p){u=[6,p],a=0}finally{i=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},cwe=(function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return awe(this,void 0,void 0,function(){var i,a,c,o=this;return swe(this,function(r){return this._send==null&&(i=(Ez(),N(mz)),a=i.sendWithHttp,c=i.createHttpAgent,this._agent=c(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(s){var u;(u=o._send)===null||u===void 0||u.call(o,o._parameters,o._agent,e,function(p){s(p)},n)})]})})},t.prototype.shutdown=function(){},t})()});function mwe(){return Math.random()*(2*Sz)-Sz}function vz(t){return new Ewe(t.transport)}var uwe,lwe,pwe,dwe,fwe,_we,Sz,Ewe,gz=w(()=>{l();uwe=function(t,e,n,i){function a(c){return c instanceof n?c:new n(function(o){o(c)})}return new(n||(n=Promise))(function(c,o){function r(p){try{u(i.next(p))}catch(S){o(S)}}function s(p){try{u(i.throw(p))}catch(S){o(S)}}function u(p){p.done?c(p.value):a(p.value).then(r,s)}u((i=i.apply(t,e||[])).next())})},lwe=function(t,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,a,c,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(u){return function(p){return s([u,p])}}function s(u){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(c=u[0]&2?a.return:u[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,u[1])).done)return c;switch(a=0,c&&(u=[u[0]&2,c.value]),u[0]){case 0:case 1:c=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(c=n.trys,!(c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1],c=u;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(u);break}c[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(p){u=[6,p],a=0}finally{i=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},pwe=5,dwe=1e3,fwe=5e3,_we=1.5,Sz=.2;Ewe=(function(){function t(e){this._transport=e}return t.prototype.retry=function(e,n,i){var a=this;return new Promise(function(c,o){setTimeout(function(){a._transport.send(e,n).then(c,o)},i)})},t.prototype.send=function(e,n){var i;return uwe(this,void 0,void 0,function(){var a,c,o,r,s,u,p;return lwe(this,function(S){switch(S.label){case 0:return a=Date.now()+n,[4,this._transport.send(e,n)];case 1:c=S.sent(),o=pwe,r=dwe,S.label=2;case 2:return c.status==="retryable"&&o>0?(o--,s=Math.max(Math.min(r,fwe)+mwe(),0),r=r*_we,u=(i=c.retryInMillis)!==null&&i!==void 0?i:s,p=a-Date.now(),u>p?[2,c]:[4,this.retry(e,p,u)]):[3,4];case 3:return c=S.sent(),[3,2];case 4:return[2,c]}})})},t.prototype.shutdown=function(){return this._transport.shutdown()},t})()});function yz(t,e){return y_({transport:vz({transport:hz(t)}),serializer:e,promiseHandler:g_(t)},{timeout:t.timeoutMillis})}var Az=w(()=>{l();sy();Tz();ay();gz()});function xz(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!=null&&n!==""){var i=Number(n);if(!Number.isNaN(i)&&Number.isFinite(i)&&i>0)return i;_e.warn("Configuration: "+t+" is invalid, expected number greater than 0 (actual: "+n+")")}}function hwe(t){var e=xz("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=xz("OTEL_EXPORTER_OTLP_TIMEOUT");return e??n}function bz(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!==""){if(n==null||n==="none"||n==="gzip")return n;_e.warn("Configuration: "+t+" is invalid, expected 'none' or 'gzip' (actual: '"+n+"')")}}function Twe(t){var e=bz("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=bz("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function $_(t){return{timeoutMillis:hwe(t),compression:Twe(t)}}var Iy=w(()=>{l();L()});function Oz(t){return function(){var e,n={};return Object.entries((e=t?.())!==null&&e!==void 0?e:{}).forEach(function(i){var a=Swe(i,2),c=a[0],o=a[1];typeof o<"u"?n[c]=String(o):_e.warn('Header "'+c+'" has invalid value ('+o+") and will be ignored")}),n}}var Swe,Rz=w(()=>{l();L();Swe=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,c=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)c.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c}});function vwe(t,e,n){var i=Xo({},n()),a={};return function(){return e!=null&&Object.assign(a,e()),t!=null&&Object.assign(a,t()),Object.assign(a,i)}}function gwe(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function Pz(t,e,n){var i,a,c,o;return Xo(Xo({},T_(t,e,n)),{headers:vwe(Oz(t.headers),e.headers,n.headers),url:(a=(i=gwe(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url,agentOptions:(o=(c=t.agentOptions)!==null&&c!==void 0?c:e.agentOptions)!==null&&o!==void 0?o:n.agentOptions})}function Nz(t,e){return Xo(Xo({},S_()),{headers:function(){return t},url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}})}var Xo,Mz=w(()=>{l();Sc();Rz();Xo=function(){return Xo=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Xo.apply(this,arguments)}});function ywe(t){var e,n,i=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_HEADERS"])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),c=bc.baggageUtils.parseKeyPairsIntoRecord(i),o=bc.baggageUtils.parseKeyPairsIntoRecord(a);if(!(Object.keys(c).length===0&&Object.keys(o).length===0))return Object.assign({},bc.baggageUtils.parseKeyPairsIntoRecord(a),bc.baggageUtils.parseKeyPairsIntoRecord(i))}function Awe(t){try{var e=new URL(t);return e.toString()}catch{_e.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}}function xwe(t,e){try{new URL(t)}catch{_e.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}t.endsWith("/")||(t=t+"/"),t+=e;try{new URL(t)}catch{_e.warn("Configuration: Provided URL appended with '"+e+"' is not a valid URL, using 'undefined' instead of '"+t+"'");return}return t}function bwe(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return xwe(n,t)}function Owe(t){var e,n=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_ENDPOINT"])===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return Awe(n)}function Iz(t,e){var n;return z_(z_({},$_(t)),{url:(n=Owe(t))!==null&&n!==void 0?n:bwe(e),headers:h_(ywe(t))})}var bc,z_,Lz=w(()=>{l();bc=Se(jt());L();Iy();Sc();z_=function(){return z_=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},z_.apply(this,arguments)}});function Rwe(t){return t?.keepAlive!=null&&(t.httpAgentOptions!=null?t.httpAgentOptions.keepAlive==null&&(t.httpAgentOptions.keepAlive=t.keepAlive):t.httpAgentOptions={keepAlive:t.keepAlive}),t.httpAgentOptions}function Cz(t,e,n,i){return t.metadata&&_e.warn("Metadata cannot be set when using http"),Pz({url:t.url,headers:h_(t.headers),concurrencyLimit:t.concurrencyLimit,timeoutMillis:t.timeoutMillis,compression:t.compression,agentOptions:Rwe(t)},Iz(e,n),Nz(i,n))}var wz=w(()=>{l();Mz();Lz();L();Sc()});var Dz={};Qn(Dz,{convertLegacyHttpOptions:()=>Cz,createOtlpHttpExportDelegate:()=>yz,getSharedConfigurationFromEnvironment:()=>$_});var Uz=w(()=>{l();Az();Iy();wz()});var kz=_(W_=>{"use strict";l();Object.defineProperty(W_,"__esModule",{value:!0});W_.OTLPMetricExporter=void 0;var Pwe=uy(),Nwe=cz(),Mwe=uz(),Vz=(Uz(),N(Dz)),Iwe={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${Mwe.VERSION}`},Ly=class extends Pwe.OTLPMetricExporterBase{constructor(e){super((0,Vz.createOtlpHttpExportDelegate)((0,Vz.convertLegacyHttpOptions)(e??{},"METRICS","v1/metrics",Object.assign(Object.assign({},Iwe),{"Content-Type":"application/json"})),Nwe.JsonMetricsSerializer),e)}};W_.OTLPMetricExporter=Ly});var Bz=_(X_=>{"use strict";l();Object.defineProperty(X_,"__esModule",{value:!0});X_.OTLPMetricExporter=void 0;var Lwe=kz();Object.defineProperty(X_,"OTLPMetricExporter",{enumerable:!0,get:function(){return Lwe.OTLPMetricExporter}})});var Gz=_(J_=>{"use strict";l();Object.defineProperty(J_,"__esModule",{value:!0});J_.OTLPMetricExporter=void 0;var Cwe=Bz();Object.defineProperty(J_,"OTLPMetricExporter",{enumerable:!0,get:function(){return Cwe.OTLPMetricExporter}})});var jz=_(wt=>{"use strict";l();Object.defineProperty(wt,"__esModule",{value:!0});wt.OTLPMetricExporterBase=wt.LowMemoryTemporalitySelector=wt.DeltaTemporalitySelector=wt.CumulativeTemporalitySelector=wt.AggregationTemporalityPreference=wt.OTLPMetricExporter=void 0;var wwe=Gz();Object.defineProperty(wt,"OTLPMetricExporter",{enumerable:!0,get:function(){return wwe.OTLPMetricExporter}});var Dwe=iy();Object.defineProperty(wt,"AggregationTemporalityPreference",{enumerable:!0,get:function(){return Dwe.AggregationTemporalityPreference}});var Q_=uy();Object.defineProperty(wt,"CumulativeTemporalitySelector",{enumerable:!0,get:function(){return Q_.CumulativeTemporalitySelector}});Object.defineProperty(wt,"DeltaTemporalitySelector",{enumerable:!0,get:function(){return Q_.DeltaTemporalitySelector}});Object.defineProperty(wt,"LowMemoryTemporalitySelector",{enumerable:!0,get:function(){return Q_.LowMemoryTemporalitySelector}});Object.defineProperty(wt,"OTLPMetricExporterBase",{enumerable:!0,get:function(){return Q_.OTLPMetricExporterBase}})});var o4=_(Xa=>{"use strict";l();var sm=q("os");function n4(t,e){return!(typeof e.internal=="boolean"&&t.internal!==e.internal||e.ipVersion===4&&t.family!=="IPv4"||e.ipVersion===6&&t.family!=="IPv6")}function cm(t,e={}){let n=sm.networkInterfaces()[t];if(!n)throw new Error(`Network interface "${t}" does not exist`);let i=[];for(let a of n)n4(a,e)&&i.push(a);return i}Xa.toIp=function(t,e){let n=cm(t,e);if(n.length===0)throw new Error(`No suitable IP address found on interface "${t}"`);return n[0].address};Xa.toIps=function(t,e){return cm(t,e).map(n=>n.address)};Xa.fromIp=function(t,e){let n=sm.networkInterfaces(),i=Object.keys(n);for(let a of i)for(let c of n[a])if(c.address===t&&n4(c,e))return a;throw new Error(`No suitable interfaces were found with IP address "${t}"`)};Xa.getInterface=function(t){let e=sm.networkInterfaces(),n=Object.keys(e);for(let i of n)if(cm(i,t).length>0)return i;throw new Error("No suitable interfaces were found")};Xa.getInterfaces=function(t){let e=sm.networkInterfaces(),n=Object.keys(e),i=[];for(let a of n)cm(a,t).length>0&&i.push(a);return i}});var C4=_((bet,L4)=>{"use strict";l();var IDe=function(e){return LDe(e)&&!CDe(e)};function LDe(t){return!!t&&typeof t=="object"}function CDe(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||UDe(t)}var wDe=typeof Symbol=="function"&&Symbol.for,DDe=wDe?Symbol.for("react.element"):60103;function UDe(t){return t.$$typeof===DDe}function VDe(t){return Array.isArray(t)?[]:{}}function Lc(t,e){return e.clone!==!1&&e.isMergeableObject(t)?es(VDe(t),t,e):t}function kDe(t,e,n){return t.concat(e).map(function(i){return Lc(i,n)})}function BDe(t,e){if(!e.customMerge)return es;var n=e.customMerge(t);return typeof n=="function"?n:es}function GDe(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function M4(t){return Object.keys(t).concat(GDe(t))}function I4(t,e){try{return e in t}catch{return!1}}function jDe(t,e){return I4(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function HDe(t,e,n){var i={};return n.isMergeableObject(t)&&M4(t).forEach(function(a){i[a]=Lc(t[a],n)}),M4(e).forEach(function(a){jDe(t,a)||(I4(t,a)&&n.isMergeableObject(e[a])?i[a]=BDe(a,n)(t[a],e[a],n):i[a]=Lc(e[a],n))}),i}function es(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||kDe,n.isMergeableObject=n.isMergeableObject||IDe,n.cloneUnlessOtherwiseSpecified=Lc;var i=Array.isArray(e),a=Array.isArray(t),c=i===a;return c?i?n.arrayMerge(t,e,n):HDe(t,e,n):Lc(e,n)}es.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,a){return es(i,a,n)},{})};var qDe=es;L4.exports=qDe});var pm=_((Ret,D4)=>{l();var w4=gJ();function FDe(t,e,n){e=="__proto__"&&w4?w4(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}D4.exports=FDe});var V4=_((Net,U4)=>{l();var YDe=pm(),KDe=rJ(),$De=Object.prototype,zDe=$De.hasOwnProperty;function WDe(t,e,n){var i=t[e];(!(zDe.call(t,e)&&KDe(i,n))||n===void 0&&!(e in t))&&YDe(t,e,n)}U4.exports=WDe});var Qy=_((Iet,B4)=>{l();var XDe=V4(),JDe=qm(),QDe=pJ(),k4=FA(),ZDe=WA();function eUe(t,e,n,i){if(!k4(t))return t;e=JDe(e,t);for(var a=-1,c=e.length,o=c-1,r=t;r!=null&&++a<c;){var s=ZDe(e[a]),u=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return t;if(a!=o){var p=r[s];u=i?i(p,s,r):void 0,u===void 0&&(u=k4(p)?p:QDe(e[a+1])?[]:{})}XDe(r,s,u),r=r[s]}return t}B4.exports=eUe});var j4=_((Cet,G4)=>{l();var tUe=XA(),rUe=Qy(),nUe=qm();function oUe(t,e,n){for(var i=-1,a=e.length,c={};++i<a;){var o=e[i],r=tUe(t,o);n(r,o)&&rUe(c,nUe(o,t),r)}return c}G4.exports=oUe});var q4=_((Det,H4)=>{l();var iUe=_J(),aUe=iUe(Object.getPrototypeOf,Object);H4.exports=aUe});var Y4=_((Vet,F4)=>{l();var sUe=oJ(),cUe=q4(),uUe=cJ(),lUe=sJ(),pUe=Object.getOwnPropertySymbols,dUe=pUe?function(t){for(var e=[];t;)sUe(e,uUe(t)),t=cUe(t);return e}:lUe;F4.exports=dUe});var $4=_((Bet,K4)=>{l();function fUe(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}K4.exports=fUe});var W4=_((jet,z4)=>{l();var _Ue=FA(),mUe=YA(),EUe=$4(),hUe=Object.prototype,TUe=hUe.hasOwnProperty;function SUe(t){if(!_Ue(t))return EUe(t);var e=mUe(t),n=[];for(var i in t)i=="constructor"&&(e||!TUe.call(t,i))||n.push(i);return n}z4.exports=SUe});var J4=_((qet,X4)=>{l();var vUe=fJ(),gUe=W4(),yUe=KA();function AUe(t){return yUe(t)?vUe(t,!0):gUe(t)}X4.exports=AUe});var Z4=_((Yet,Q4)=>{l();var xUe=aJ(),bUe=Y4(),OUe=J4();function RUe(t){return xUe(t,OUe,bUe)}Q4.exports=RUe});var tW=_(($et,eW)=>{l();var PUe=zA(),NUe=JA(),MUe=j4(),IUe=Z4();function LUe(t,e){if(t==null)return{};var n=PUe(IUe(t),function(i){return[i]});return e=NUe(e),MUe(t,n,function(i,a){return e(i,a[0])})}eW.exports=LUe});var nW=_((Wet,rW)=>{l();var CUe=pm(),wUe=RJ(),DUe=JA();function UUe(t,e){var n={};return e=DUe(e,3),wUe(t,function(i,a,c){CUe(n,a,e(i,a,c))}),n}rW.exports=UUe});var iW=_((Jet,oW)=>{l();var VUe=hJ();function kUe(t,e){return VUe(t,e)}oW.exports=kUe});var Zy=_((Zet,aW)=>{l();function BUe(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}aW.exports=BUe});var cW=_((ttt,sW)=>{l();var GUe=SJ(),jUe=vJ(),HUe=yJ(),eA=AJ(),qUe=Zy(),FUe=HUe(function(t,e){var n=qUe(e);return eA(n)&&(n=void 0),eA(t)?GUe(t,jUe(e,1,eA,!0),void 0,n):[]});sW.exports=FUe});var lW=_((ntt,uW)=>{l();var YUe=pm();function KUe(t){for(var e=-1,n=t==null?0:t.length,i={};++e<n;){var a=t[e];YUe(i,a[0],a[1])}return i}uW.exports=KUe});var dW=_((itt,pW)=>{l();var $Ue=zA();function zUe(t,e){return $Ue(e,function(n){return[n,t[n]]})}pW.exports=zUe});var _W=_((stt,fW)=>{l();function WUe(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=[i,i]}),n}fW.exports=WUe});var EW=_((utt,mW)=>{l();var XUe=dW(),JUe=$A(),QUe=nJ(),ZUe=_W(),e0e="[object Map]",t0e="[object Set]";function r0e(t){return function(e){var n=JUe(e);return n==e0e?QUe(e):n==t0e?ZUe(e):XUe(e,t(e))}}mW.exports=r0e});var TW=_((ptt,hW)=>{l();var n0e=EW(),o0e=EJ(),i0e=n0e(o0e);hW.exports=i0e});var vW=_((ftt,SW)=>{l();var a0e=Qy();function s0e(t,e,n){return t==null?t:a0e(t,e,n)}SW.exports=s0e});var yW=_((mtt,gW)=>{l();function c0e(t,e,n){var i=-1,a=t.length;e<0&&(e=-e>a?0:a+e),n=n>a?a:n,n<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var c=Array(a);++i<a;)c[i]=t[i+e];return c}gW.exports=c0e});var xW=_((htt,AW)=>{l();var u0e=XA(),l0e=yW();function p0e(t,e){return e.length<2?t:u0e(t,l0e(e,0,-1))}AW.exports=p0e});var RW=_((Stt,OW)=>{l();var d0e=qm(),f0e=Zy(),_0e=xW(),bW=WA(),m0e=Object.prototype,E0e=m0e.hasOwnProperty;function h0e(t,e){e=d0e(e,t);var n=-1,i=e.length;if(!i)return!0;for(;++n<i;){var a=bW(e[n]);if(a==="__proto__"&&!E0e.call(t,"__proto__")||(a==="constructor"||a==="prototype")&&n<i-1)return!1}var c=_0e(t,e);return c==null||delete c[bW(f0e(e))]}OW.exports=h0e});var NW=_((gtt,PW)=>{l();var T0e=RW();function S0e(t,e){return t==null?!0:T0e(t,e)}PW.exports=S0e});var IW=_((Att,MW)=>{l();var v0e=mJ(),g0e=$A(),y0e=uJ(),A0e=iJ(),x0e=KA(),b0e=lJ(),O0e=YA(),R0e=dJ(),P0e="[object Map]",N0e="[object Set]",M0e=Object.prototype,I0e=M0e.hasOwnProperty;function L0e(t){if(t==null)return!0;if(x0e(t)&&(A0e(t)||typeof t=="string"||typeof t.splice=="function"||b0e(t)||R0e(t)||y0e(t)))return!t.length;var e=g0e(t);if(e==P0e||e==N0e)return!t.size;if(O0e(t))return!v0e(t).length;for(var n in t)if(I0e.call(t,n))return!1;return!0}MW.exports=L0e});var dn=_(oA=>{"use strict";l();oA.load=function(t,e,n={}){var i,a,c;for(i in e)c=e[i],n[i]=(a=t[i])!=null?a:c;return n};oA.overwrite=function(t,e,n={}){var i,a;for(i in t)a=t[i],e[i]!==void 0&&(n[i]=a);return n}});var iA=_((irt,qW)=>{"use strict";l();var HW;HW=class{constructor(e,n){this.incr=e,this.decr=n,this._first=null,this._last=null,this.length=0}push(e){var n;this.length++,typeof this.incr=="function"&&this.incr(),n={value:e,prev:this._last,next:null},this._last!=null?(this._last.next=n,this._last=n):this._first=this._last=n}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),e=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,e}first(){if(this._first!=null)return this._first.value}getArray(){var e,n,i;for(e=this._first,i=[];e!=null;)i.push((n=e,e=e.next,n.value));return i}forEachShift(e){var n;for(n=this.shift();n!=null;)e(n),n=this.shift()}debug(){var e,n,i,a,c;for(e=this._first,c=[];e!=null;)c.push((n=e,e=e.next,{value:n.value,prev:(i=n.prev)!=null?i.value:void 0,next:(a=n.next)!=null?a.value:void 0}));return c}};qW.exports=HW});var ei=_((crt,$W)=>{"use strict";l();function FW(t,e,n,i,a,c,o){try{var r=t[c](o),s=r.value}catch(u){n(u);return}r.done?e(s):Promise.resolve(s).then(i,a)}function YW(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var c=t.apply(e,n);function o(s){FW(c,i,a,o,r,"next",s)}function r(s){FW(c,i,a,o,r,"throw",s)}o(void 0)})}}var KW;KW=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(n,i)=>this._addListener(n,"many",i),this.instance.once=(n,i)=>this._addListener(n,"once",i),this.instance.removeAllListeners=(n=null)=>n!=null?delete this._events[n]:this._events={}}_addListener(e,n,i){var a;return(a=this._events)[e]==null&&(a[e]=[]),this._events[e].push({cb:i,status:n}),this.instance}listenerCount(e){return this._events[e]!=null?this._events[e].length:0}trigger(e,...n){var i=this;return YW(function*(){var a,c;try{return e!=="debug"&&i.trigger("debug",`Event triggered: ${e}`,n),i._events[e]==null?void 0:(i._events[e]=i._events[e].filter(function(o){return o.status!=="none"}),c=i._events[e].map((function(){var o=YW(function*(r){var s,u;if(r.status!=="none"){r.status==="once"&&(r.status="none");try{return u=typeof r.cb=="function"?r.cb(...n):void 0,typeof u?.then=="function"?yield u:u}catch(p){return s=p,i.trigger("error",s),null}}});return function(r){return o.apply(this,arguments)}})()),(yield Promise.all(c)).find(function(o){return o!=null}))}catch(o){return a=o,i.trigger("error",a),null}})()}};$W.exports=KW});var QW=_((prt,JW)=>{"use strict";l();var zW,WW,XW;zW=iA();WW=ei();XW=class{constructor(e){var n;this.Events=new WW(this),this._length=0,this._lists=function(){var i,a,c;for(c=[],n=i=1,a=e;1<=a?i<=a:i>=a;n=1<=a?++i:--i)c.push(new zW(()=>this.incr(),()=>this.decr()));return c}.call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e!=null?this._lists[e].length:this._length}shiftAll(e){return this._lists.forEach(function(n){return n.forEachShift(e)})}getFirst(e=this._lists){var n,i,a;for(n=0,i=e.length;n<i;n++)if(a=e[n],a.length>0)return a;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};JW.exports=XW});var ts=_((_rt,e6)=>{"use strict";l();var ZW;ZW=class extends Error{};e6.exports=ZW});var s6=_((hrt,a6)=>{"use strict";l();function t6(t,e,n,i,a,c,o){try{var r=t[c](o),s=r.value}catch(u){n(u);return}r.done?e(s):Promise.resolve(s).then(i,a)}function r6(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var c=t.apply(e,n);function o(s){t6(c,i,a,o,r,"next",s)}function r(s){t6(c,i,a,o,r,"throw",s)}o(void 0)})}}var _m,n6,o6,aA,i6;aA=10;n6=5;i6=dn();_m=ts();o6=class{constructor(e,n,i,a,c,o,r,s){this.task=e,this.args=n,this.rejectOnDrop=c,this.Events=o,this._states=r,this.Promise=s,this.options=i6.load(i,a),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===a.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((u,p)=>{this._resolve=u,this._reject=p}),this.retryCount=0}_sanitizePriority(e){var n;return n=~~e!==e?n6:e,n<0?0:n>aA-1?aA-1:n}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:n="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new _m(n)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var n;if(n=this._states.jobStatus(this.options.id),!(n===e||e==="DONE"&&n===null))throw new _m(`Invalid job status ${n}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,n){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:n})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}doExecute(e,n,i,a){var c=this;return r6(function*(){var o,r,s;c.retryCount===0?(c._assertStatus("RUNNING"),c._states.next(c.options.id)):c._assertStatus("EXECUTING"),r={args:c.args,options:c.options,retryCount:c.retryCount},c.Events.trigger("executing",r);try{if(s=yield e!=null?e.schedule(c.options,c.task,...c.args):c.task(...c.args),n())return c.doDone(r),yield a(c.options,r),c._assertStatus("DONE"),c._resolve(s)}catch(u){return o=u,c._onFailure(o,r,n,i,a)}})()}doExpire(e,n,i){var a,c;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),c={args:this.args,options:this.options,retryCount:this.retryCount},a=new _m(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(a,c,e,n,i)}_onFailure(e,n,i,a,c){var o=this;return r6(function*(){var r,s;if(i())return r=yield o.Events.trigger("failed",e,n),r!=null?(s=~~r,o.Events.trigger("retry",`Retrying ${o.options.id} after ${s} ms`,n),o.retryCount++,a(s)):(o.doDone(n),yield c(o.options,n),o._assertStatus("DONE"),o._reject(e))})()}doDone(e){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",e)}};a6.exports=o6});var d6=_((vrt,p6)=>{"use strict";l();function c6(t,e,n,i,a,c,o){try{var r=t[c](o),s=r.value}catch(u){n(u);return}r.done?e(s):Promise.resolve(s).then(i,a)}function qt(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var c=t.apply(e,n);function o(s){c6(c,i,a,o,r,"next",s)}function r(s){c6(c,i,a,o,r,"throw",s)}o(void 0)})}}var u6,l6,sA;sA=dn();u6=ts();l6=class{constructor(e,n,i){this.instance=e,this.storeOptions=n,this.clientId=this.instance._randomIndex(),sA.load(i,i,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var n,i,a,c,o;if(c=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&c>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=c,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&c>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){var r=this.storeOptions;if(n=r.reservoirIncreaseAmount,a=r.reservoirIncreaseMaximum,o=r.reservoir,this._lastReservoirIncrease=c,i=a!=null?Math.min(n,a-o):n,i>0)return this.storeOptions.reservoir+=i,this.instance._drainAll(this.computeCapacity())}},this.heartbeatInterval)).unref=="function"?e.unref():void 0:clearInterval(this.heartbeat)}__publish__(e){var n=this;return qt(function*(){return yield n.yieldLoop(),n.instance.Events.trigger("message",e.toString())})()}__disconnect__(e){var n=this;return qt(function*(){return yield n.yieldLoop(),clearInterval(n.heartbeat),n.Promise.resolve()})()}yieldLoop(e=0){return new this.Promise(function(n,i){return setTimeout(n,e)})}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}__updateSettings__(e){var n=this;return qt(function*(){return yield n.yieldLoop(),sA.overwrite(e,e,n.storeOptions),n._startHeartbeat(),n.instance._drainAll(n.computeCapacity()),!0})()}__running__(){var e=this;return qt(function*(){return yield e.yieldLoop(),e._running})()}__queued__(){var e=this;return qt(function*(){return yield e.yieldLoop(),e.instance.queued()})()}__done__(){var e=this;return qt(function*(){return yield e.yieldLoop(),e._done})()}__groupCheck__(e){var n=this;return qt(function*(){return yield n.yieldLoop(),n._nextRequest+n.timeout<e})()}computeCapacity(){var e,n,i=this.storeOptions;return e=i.maxConcurrent,n=i.reservoir,e!=null&&n!=null?Math.min(e-this._running,n):e!=null?e-this._running:n??null}conditionsCheck(e){var n;return n=this.computeCapacity(),n==null||e<=n}__incrementReservoir__(e){var n=this;return qt(function*(){var i;return yield n.yieldLoop(),i=n.storeOptions.reservoir+=e,n.instance._drainAll(n.computeCapacity()),i})()}__currentReservoir__(){var e=this;return qt(function*(){return yield e.yieldLoop(),e.storeOptions.reservoir})()}isBlocked(e){return this._unblockTime>=e}check(e,n){return this.conditionsCheck(e)&&this._nextRequest-n<=0}__check__(e){var n=this;return qt(function*(){var i;return yield n.yieldLoop(),i=Date.now(),n.check(e,i)})()}__register__(e,n,i){var a=this;return qt(function*(){var c,o;return yield a.yieldLoop(),c=Date.now(),a.conditionsCheck(n)?(a._running+=n,a.storeOptions.reservoir!=null&&(a.storeOptions.reservoir-=n),o=Math.max(a._nextRequest-c,0),a._nextRequest=c+o+a.storeOptions.minTime,{success:!0,wait:o,reservoir:a.storeOptions.reservoir}):{success:!1}})()}strategyIsBlock(){return this.storeOptions.strategy===3}__submit__(e,n){var i=this;return qt(function*(){var a,c,o;if(yield i.yieldLoop(),i.storeOptions.maxConcurrent!=null&&n>i.storeOptions.maxConcurrent)throw new u6(`Impossible to add a job having a weight of ${n} to a limiter having a maxConcurrent setting of ${i.storeOptions.maxConcurrent}`);return c=Date.now(),o=i.storeOptions.highWater!=null&&e===i.storeOptions.highWater&&!i.check(n,c),a=i.strategyIsBlock()&&(o||i.isBlocked(c)),a&&(i._unblockTime=c+i.computePenalty(),i._nextRequest=i._unblockTime+i.storeOptions.minTime,i.instance._dropAllQueued()),{reachedHWM:o,blocked:a,strategy:i.storeOptions.strategy}})()}__free__(e,n){var i=this;return qt(function*(){return yield i.yieldLoop(),i._running-=n,i._done+=n,i.instance._drainAll(i.computeCapacity()),{running:i._running}})()}};p6.exports=l6});var f6=_((yrt,Y0e)=>{Y0e.exports={"blacklist_client.lua":`local blacklist = ARGV[num_static_argv + 1]
|
|
52
|
+
|
|
53
|
+
if redis.call('zscore', client_last_seen_key, blacklist) then
|
|
54
|
+
redis.call('zadd', client_last_seen_key, 0, blacklist)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
return {}
|
|
59
|
+
`,"check.lua":`local weight = tonumber(ARGV[num_static_argv + 1])
|
|
60
|
+
|
|
61
|
+
local capacity = process_tick(now, false)['capacity']
|
|
62
|
+
local nextRequest = tonumber(redis.call('hget', settings_key, 'nextRequest'))
|
|
63
|
+
|
|
64
|
+
return conditions_check(capacity, weight) and nextRequest - now <= 0
|
|
65
|
+
`,"conditions_check.lua":`local conditions_check = function (capacity, weight)
|
|
66
|
+
return capacity == nil or weight <= capacity
|
|
67
|
+
end
|
|
68
|
+
`,"current_reservoir.lua":`return process_tick(now, false)['reservoir']
|
|
69
|
+
`,"done.lua":`process_tick(now, false)
|
|
70
|
+
|
|
71
|
+
return tonumber(redis.call('hget', settings_key, 'done'))
|
|
72
|
+
`,"free.lua":`local index = ARGV[num_static_argv + 1]
|
|
73
|
+
|
|
74
|
+
redis.call('zadd', job_expirations_key, 0, index)
|
|
75
|
+
|
|
76
|
+
return process_tick(now, false)['running']
|
|
77
|
+
`,"get_time.lua":`redis.replicate_commands()
|
|
78
|
+
|
|
79
|
+
local get_time = function ()
|
|
80
|
+
local time = redis.call('time')
|
|
81
|
+
|
|
82
|
+
return tonumber(time[1]..string.sub(time[2], 1, 3))
|
|
83
|
+
end
|
|
84
|
+
`,"group_check.lua":`return not (redis.call('exists', settings_key) == 1)
|
|
85
|
+
`,"heartbeat.lua":`process_tick(now, true)
|
|
86
|
+
`,"increment_reservoir.lua":`local incr = tonumber(ARGV[num_static_argv + 1])
|
|
87
|
+
|
|
88
|
+
redis.call('hincrby', settings_key, 'reservoir', incr)
|
|
89
|
+
|
|
90
|
+
local reservoir = process_tick(now, true)['reservoir']
|
|
91
|
+
|
|
92
|
+
local groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))
|
|
93
|
+
refresh_expiration(0, 0, groupTimeout)
|
|
94
|
+
|
|
95
|
+
return reservoir
|
|
96
|
+
`,"init.lua":`local clear = tonumber(ARGV[num_static_argv + 1])
|
|
97
|
+
local limiter_version = ARGV[num_static_argv + 2]
|
|
98
|
+
local num_local_argv = num_static_argv + 2
|
|
99
|
+
|
|
100
|
+
if clear == 1 then
|
|
101
|
+
redis.call('del', unpack(KEYS))
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if redis.call('exists', settings_key) == 0 then
|
|
105
|
+
-- Create
|
|
106
|
+
local args = {'hmset', settings_key}
|
|
107
|
+
|
|
108
|
+
for i = num_local_argv + 1, #ARGV do
|
|
109
|
+
table.insert(args, ARGV[i])
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
redis.call(unpack(args))
|
|
113
|
+
redis.call('hmset', settings_key,
|
|
114
|
+
'nextRequest', now,
|
|
115
|
+
'lastReservoirRefresh', now,
|
|
116
|
+
'lastReservoirIncrease', now,
|
|
117
|
+
'running', 0,
|
|
118
|
+
'done', 0,
|
|
119
|
+
'unblockTime', 0,
|
|
120
|
+
'capacityPriorityCounter', 0
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
else
|
|
124
|
+
-- Apply migrations
|
|
125
|
+
local settings = redis.call('hmget', settings_key,
|
|
126
|
+
'id',
|
|
127
|
+
'version'
|
|
128
|
+
)
|
|
129
|
+
local id = settings[1]
|
|
130
|
+
local current_version = settings[2]
|
|
131
|
+
|
|
132
|
+
if current_version ~= limiter_version then
|
|
133
|
+
local version_digits = {}
|
|
134
|
+
for k, v in string.gmatch(current_version, "([^.]+)") do
|
|
135
|
+
table.insert(version_digits, tonumber(k))
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
-- 2.10.0
|
|
139
|
+
if version_digits[2] < 10 then
|
|
140
|
+
redis.call('hsetnx', settings_key, 'reservoirRefreshInterval', '')
|
|
141
|
+
redis.call('hsetnx', settings_key, 'reservoirRefreshAmount', '')
|
|
142
|
+
redis.call('hsetnx', settings_key, 'lastReservoirRefresh', '')
|
|
143
|
+
redis.call('hsetnx', settings_key, 'done', 0)
|
|
144
|
+
redis.call('hset', settings_key, 'version', '2.10.0')
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
-- 2.11.1
|
|
148
|
+
if version_digits[2] < 11 or (version_digits[2] == 11 and version_digits[3] < 1) then
|
|
149
|
+
if redis.call('hstrlen', settings_key, 'lastReservoirRefresh') == 0 then
|
|
150
|
+
redis.call('hmset', settings_key,
|
|
151
|
+
'lastReservoirRefresh', now,
|
|
152
|
+
'version', '2.11.1'
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
-- 2.14.0
|
|
158
|
+
if version_digits[2] < 14 then
|
|
159
|
+
local old_running_key = 'b_'..id..'_running'
|
|
160
|
+
local old_executing_key = 'b_'..id..'_executing'
|
|
161
|
+
|
|
162
|
+
if redis.call('exists', old_running_key) == 1 then
|
|
163
|
+
redis.call('rename', old_running_key, job_weights_key)
|
|
164
|
+
end
|
|
165
|
+
if redis.call('exists', old_executing_key) == 1 then
|
|
166
|
+
redis.call('rename', old_executing_key, job_expirations_key)
|
|
167
|
+
end
|
|
168
|
+
redis.call('hset', settings_key, 'version', '2.14.0')
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
-- 2.15.2
|
|
172
|
+
if version_digits[2] < 15 or (version_digits[2] == 15 and version_digits[3] < 2) then
|
|
173
|
+
redis.call('hsetnx', settings_key, 'capacityPriorityCounter', 0)
|
|
174
|
+
redis.call('hset', settings_key, 'version', '2.15.2')
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
-- 2.17.0
|
|
178
|
+
if version_digits[2] < 17 then
|
|
179
|
+
redis.call('hsetnx', settings_key, 'clientTimeout', 10000)
|
|
180
|
+
redis.call('hset', settings_key, 'version', '2.17.0')
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
-- 2.18.0
|
|
184
|
+
if version_digits[2] < 18 then
|
|
185
|
+
redis.call('hsetnx', settings_key, 'reservoirIncreaseInterval', '')
|
|
186
|
+
redis.call('hsetnx', settings_key, 'reservoirIncreaseAmount', '')
|
|
187
|
+
redis.call('hsetnx', settings_key, 'reservoirIncreaseMaximum', '')
|
|
188
|
+
redis.call('hsetnx', settings_key, 'lastReservoirIncrease', now)
|
|
189
|
+
redis.call('hset', settings_key, 'version', '2.18.0')
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
process_tick(now, false)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
local groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))
|
|
198
|
+
refresh_expiration(0, 0, groupTimeout)
|
|
199
|
+
|
|
200
|
+
return {}
|
|
201
|
+
`,"process_tick.lua":`local process_tick = function (now, always_publish)
|
|
202
|
+
|
|
203
|
+
local compute_capacity = function (maxConcurrent, running, reservoir)
|
|
204
|
+
if maxConcurrent ~= nil and reservoir ~= nil then
|
|
205
|
+
return math.min((maxConcurrent - running), reservoir)
|
|
206
|
+
elseif maxConcurrent ~= nil then
|
|
207
|
+
return maxConcurrent - running
|
|
208
|
+
elseif reservoir ~= nil then
|
|
209
|
+
return reservoir
|
|
210
|
+
else
|
|
211
|
+
return nil
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
local settings = redis.call('hmget', settings_key,
|
|
216
|
+
'id',
|
|
217
|
+
'maxConcurrent',
|
|
218
|
+
'running',
|
|
219
|
+
'reservoir',
|
|
220
|
+
'reservoirRefreshInterval',
|
|
221
|
+
'reservoirRefreshAmount',
|
|
222
|
+
'lastReservoirRefresh',
|
|
223
|
+
'reservoirIncreaseInterval',
|
|
224
|
+
'reservoirIncreaseAmount',
|
|
225
|
+
'reservoirIncreaseMaximum',
|
|
226
|
+
'lastReservoirIncrease',
|
|
227
|
+
'capacityPriorityCounter',
|
|
228
|
+
'clientTimeout'
|
|
229
|
+
)
|
|
230
|
+
local id = settings[1]
|
|
231
|
+
local maxConcurrent = tonumber(settings[2])
|
|
232
|
+
local running = tonumber(settings[3])
|
|
233
|
+
local reservoir = tonumber(settings[4])
|
|
234
|
+
local reservoirRefreshInterval = tonumber(settings[5])
|
|
235
|
+
local reservoirRefreshAmount = tonumber(settings[6])
|
|
236
|
+
local lastReservoirRefresh = tonumber(settings[7])
|
|
237
|
+
local reservoirIncreaseInterval = tonumber(settings[8])
|
|
238
|
+
local reservoirIncreaseAmount = tonumber(settings[9])
|
|
239
|
+
local reservoirIncreaseMaximum = tonumber(settings[10])
|
|
240
|
+
local lastReservoirIncrease = tonumber(settings[11])
|
|
241
|
+
local capacityPriorityCounter = tonumber(settings[12])
|
|
242
|
+
local clientTimeout = tonumber(settings[13])
|
|
243
|
+
|
|
244
|
+
local initial_capacity = compute_capacity(maxConcurrent, running, reservoir)
|
|
245
|
+
|
|
246
|
+
--
|
|
247
|
+
-- Process 'running' changes
|
|
248
|
+
--
|
|
249
|
+
local expired = redis.call('zrangebyscore', job_expirations_key, '-inf', '('..now)
|
|
250
|
+
|
|
251
|
+
if #expired > 0 then
|
|
252
|
+
redis.call('zremrangebyscore', job_expirations_key, '-inf', '('..now)
|
|
253
|
+
|
|
254
|
+
local flush_batch = function (batch, acc)
|
|
255
|
+
local weights = redis.call('hmget', job_weights_key, unpack(batch))
|
|
256
|
+
redis.call('hdel', job_weights_key, unpack(batch))
|
|
257
|
+
local clients = redis.call('hmget', job_clients_key, unpack(batch))
|
|
258
|
+
redis.call('hdel', job_clients_key, unpack(batch))
|
|
259
|
+
|
|
260
|
+
-- Calculate sum of removed weights
|
|
261
|
+
for i = 1, #weights do
|
|
262
|
+
acc['total'] = acc['total'] + (tonumber(weights[i]) or 0)
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
-- Calculate sum of removed weights by client
|
|
266
|
+
local client_weights = {}
|
|
267
|
+
for i = 1, #clients do
|
|
268
|
+
local removed = tonumber(weights[i]) or 0
|
|
269
|
+
if removed > 0 then
|
|
270
|
+
acc['client_weights'][clients[i]] = (acc['client_weights'][clients[i]] or 0) + removed
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
local acc = {
|
|
276
|
+
['total'] = 0,
|
|
277
|
+
['client_weights'] = {}
|
|
278
|
+
}
|
|
279
|
+
local batch_size = 1000
|
|
280
|
+
|
|
281
|
+
-- Compute changes to Zsets and apply changes to Hashes
|
|
282
|
+
for i = 1, #expired, batch_size do
|
|
283
|
+
local batch = {}
|
|
284
|
+
for j = i, math.min(i + batch_size - 1, #expired) do
|
|
285
|
+
table.insert(batch, expired[j])
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
flush_batch(batch, acc)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
-- Apply changes to Zsets
|
|
292
|
+
if acc['total'] > 0 then
|
|
293
|
+
redis.call('hincrby', settings_key, 'done', acc['total'])
|
|
294
|
+
running = tonumber(redis.call('hincrby', settings_key, 'running', -acc['total']))
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
for client, weight in pairs(acc['client_weights']) do
|
|
298
|
+
redis.call('zincrby', client_running_key, -weight, client)
|
|
299
|
+
end
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
--
|
|
303
|
+
-- Process 'reservoir' changes
|
|
304
|
+
--
|
|
305
|
+
local reservoirRefreshActive = reservoirRefreshInterval ~= nil and reservoirRefreshAmount ~= nil
|
|
306
|
+
if reservoirRefreshActive and now >= lastReservoirRefresh + reservoirRefreshInterval then
|
|
307
|
+
reservoir = reservoirRefreshAmount
|
|
308
|
+
redis.call('hmset', settings_key,
|
|
309
|
+
'reservoir', reservoir,
|
|
310
|
+
'lastReservoirRefresh', now
|
|
311
|
+
)
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
local reservoirIncreaseActive = reservoirIncreaseInterval ~= nil and reservoirIncreaseAmount ~= nil
|
|
315
|
+
if reservoirIncreaseActive and now >= lastReservoirIncrease + reservoirIncreaseInterval then
|
|
316
|
+
local num_intervals = math.floor((now - lastReservoirIncrease) / reservoirIncreaseInterval)
|
|
317
|
+
local incr = reservoirIncreaseAmount * num_intervals
|
|
318
|
+
if reservoirIncreaseMaximum ~= nil then
|
|
319
|
+
incr = math.min(incr, reservoirIncreaseMaximum - (reservoir or 0))
|
|
320
|
+
end
|
|
321
|
+
if incr > 0 then
|
|
322
|
+
reservoir = (reservoir or 0) + incr
|
|
323
|
+
end
|
|
324
|
+
redis.call('hmset', settings_key,
|
|
325
|
+
'reservoir', reservoir,
|
|
326
|
+
'lastReservoirIncrease', lastReservoirIncrease + (num_intervals * reservoirIncreaseInterval)
|
|
327
|
+
)
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
--
|
|
331
|
+
-- Clear unresponsive clients
|
|
332
|
+
--
|
|
333
|
+
local unresponsive = redis.call('zrangebyscore', client_last_seen_key, '-inf', (now - clientTimeout))
|
|
334
|
+
local unresponsive_lookup = {}
|
|
335
|
+
local terminated_clients = {}
|
|
336
|
+
for i = 1, #unresponsive do
|
|
337
|
+
unresponsive_lookup[unresponsive[i]] = true
|
|
338
|
+
if tonumber(redis.call('zscore', client_running_key, unresponsive[i])) == 0 then
|
|
339
|
+
table.insert(terminated_clients, unresponsive[i])
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
if #terminated_clients > 0 then
|
|
343
|
+
redis.call('zrem', client_running_key, unpack(terminated_clients))
|
|
344
|
+
redis.call('hdel', client_num_queued_key, unpack(terminated_clients))
|
|
345
|
+
redis.call('zrem', client_last_registered_key, unpack(terminated_clients))
|
|
346
|
+
redis.call('zrem', client_last_seen_key, unpack(terminated_clients))
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
--
|
|
350
|
+
-- Broadcast capacity changes
|
|
351
|
+
--
|
|
352
|
+
local final_capacity = compute_capacity(maxConcurrent, running, reservoir)
|
|
353
|
+
|
|
354
|
+
if always_publish or (initial_capacity ~= nil and final_capacity == nil) then
|
|
355
|
+
-- always_publish or was not unlimited, now unlimited
|
|
356
|
+
redis.call('publish', 'b_'..id, 'capacity:'..(final_capacity or ''))
|
|
357
|
+
|
|
358
|
+
elseif initial_capacity ~= nil and final_capacity ~= nil and final_capacity > initial_capacity then
|
|
359
|
+
-- capacity was increased
|
|
360
|
+
-- send the capacity message to the limiter having the lowest number of running jobs
|
|
361
|
+
-- the tiebreaker is the limiter having not registered a job in the longest time
|
|
362
|
+
|
|
363
|
+
local lowest_concurrency_value = nil
|
|
364
|
+
local lowest_concurrency_clients = {}
|
|
365
|
+
local lowest_concurrency_last_registered = {}
|
|
366
|
+
local client_concurrencies = redis.call('zrange', client_running_key, 0, -1, 'withscores')
|
|
367
|
+
|
|
368
|
+
for i = 1, #client_concurrencies, 2 do
|
|
369
|
+
local client = client_concurrencies[i]
|
|
370
|
+
local concurrency = tonumber(client_concurrencies[i+1])
|
|
371
|
+
|
|
372
|
+
if (
|
|
373
|
+
lowest_concurrency_value == nil or lowest_concurrency_value == concurrency
|
|
374
|
+
) and (
|
|
375
|
+
not unresponsive_lookup[client]
|
|
376
|
+
) and (
|
|
377
|
+
tonumber(redis.call('hget', client_num_queued_key, client)) > 0
|
|
378
|
+
) then
|
|
379
|
+
lowest_concurrency_value = concurrency
|
|
380
|
+
table.insert(lowest_concurrency_clients, client)
|
|
381
|
+
local last_registered = tonumber(redis.call('zscore', client_last_registered_key, client))
|
|
382
|
+
table.insert(lowest_concurrency_last_registered, last_registered)
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
if #lowest_concurrency_clients > 0 then
|
|
387
|
+
local position = 1
|
|
388
|
+
local earliest = lowest_concurrency_last_registered[1]
|
|
389
|
+
|
|
390
|
+
for i,v in ipairs(lowest_concurrency_last_registered) do
|
|
391
|
+
if v < earliest then
|
|
392
|
+
position = i
|
|
393
|
+
earliest = v
|
|
394
|
+
end
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
local next_client = lowest_concurrency_clients[position]
|
|
398
|
+
redis.call('publish', 'b_'..id,
|
|
399
|
+
'capacity-priority:'..(final_capacity or '')..
|
|
400
|
+
':'..next_client..
|
|
401
|
+
':'..capacityPriorityCounter
|
|
402
|
+
)
|
|
403
|
+
redis.call('hincrby', settings_key, 'capacityPriorityCounter', '1')
|
|
404
|
+
else
|
|
405
|
+
redis.call('publish', 'b_'..id, 'capacity:'..(final_capacity or ''))
|
|
406
|
+
end
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
return {
|
|
410
|
+
['capacity'] = final_capacity,
|
|
411
|
+
['running'] = running,
|
|
412
|
+
['reservoir'] = reservoir
|
|
413
|
+
}
|
|
414
|
+
end
|
|
415
|
+
`,"queued.lua":`local clientTimeout = tonumber(redis.call('hget', settings_key, 'clientTimeout'))
|
|
416
|
+
local valid_clients = redis.call('zrangebyscore', client_last_seen_key, (now - clientTimeout), 'inf')
|
|
417
|
+
local client_queued = redis.call('hmget', client_num_queued_key, unpack(valid_clients))
|
|
418
|
+
|
|
419
|
+
local sum = 0
|
|
420
|
+
for i = 1, #client_queued do
|
|
421
|
+
sum = sum + tonumber(client_queued[i])
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
return sum
|
|
425
|
+
`,"refresh_expiration.lua":`local refresh_expiration = function (now, nextRequest, groupTimeout)
|
|
426
|
+
|
|
427
|
+
if groupTimeout ~= nil then
|
|
428
|
+
local ttl = (nextRequest + groupTimeout) - now
|
|
429
|
+
|
|
430
|
+
for i = 1, #KEYS do
|
|
431
|
+
redis.call('pexpire', KEYS[i], ttl)
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
end
|
|
436
|
+
`,"refs.lua":`local settings_key = KEYS[1]
|
|
437
|
+
local job_weights_key = KEYS[2]
|
|
438
|
+
local job_expirations_key = KEYS[3]
|
|
439
|
+
local job_clients_key = KEYS[4]
|
|
440
|
+
local client_running_key = KEYS[5]
|
|
441
|
+
local client_num_queued_key = KEYS[6]
|
|
442
|
+
local client_last_registered_key = KEYS[7]
|
|
443
|
+
local client_last_seen_key = KEYS[8]
|
|
444
|
+
|
|
445
|
+
local now = tonumber(ARGV[1])
|
|
446
|
+
local client = ARGV[2]
|
|
447
|
+
|
|
448
|
+
local num_static_argv = 2
|
|
449
|
+
`,"register.lua":`local index = ARGV[num_static_argv + 1]
|
|
450
|
+
local weight = tonumber(ARGV[num_static_argv + 2])
|
|
451
|
+
local expiration = tonumber(ARGV[num_static_argv + 3])
|
|
452
|
+
|
|
453
|
+
local state = process_tick(now, false)
|
|
454
|
+
local capacity = state['capacity']
|
|
455
|
+
local reservoir = state['reservoir']
|
|
456
|
+
|
|
457
|
+
local settings = redis.call('hmget', settings_key,
|
|
458
|
+
'nextRequest',
|
|
459
|
+
'minTime',
|
|
460
|
+
'groupTimeout'
|
|
461
|
+
)
|
|
462
|
+
local nextRequest = tonumber(settings[1])
|
|
463
|
+
local minTime = tonumber(settings[2])
|
|
464
|
+
local groupTimeout = tonumber(settings[3])
|
|
465
|
+
|
|
466
|
+
if conditions_check(capacity, weight) then
|
|
467
|
+
|
|
468
|
+
redis.call('hincrby', settings_key, 'running', weight)
|
|
469
|
+
redis.call('hset', job_weights_key, index, weight)
|
|
470
|
+
if expiration ~= nil then
|
|
471
|
+
redis.call('zadd', job_expirations_key, now + expiration, index)
|
|
472
|
+
end
|
|
473
|
+
redis.call('hset', job_clients_key, index, client)
|
|
474
|
+
redis.call('zincrby', client_running_key, weight, client)
|
|
475
|
+
redis.call('hincrby', client_num_queued_key, client, -1)
|
|
476
|
+
redis.call('zadd', client_last_registered_key, now, client)
|
|
477
|
+
|
|
478
|
+
local wait = math.max(nextRequest - now, 0)
|
|
479
|
+
local newNextRequest = now + wait + minTime
|
|
480
|
+
|
|
481
|
+
if reservoir == nil then
|
|
482
|
+
redis.call('hset', settings_key,
|
|
483
|
+
'nextRequest', newNextRequest
|
|
484
|
+
)
|
|
485
|
+
else
|
|
486
|
+
reservoir = reservoir - weight
|
|
487
|
+
redis.call('hmset', settings_key,
|
|
488
|
+
'reservoir', reservoir,
|
|
489
|
+
'nextRequest', newNextRequest
|
|
490
|
+
)
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
refresh_expiration(now, newNextRequest, groupTimeout)
|
|
494
|
+
|
|
495
|
+
return {true, wait, reservoir}
|
|
496
|
+
|
|
497
|
+
else
|
|
498
|
+
return {false}
|
|
499
|
+
end
|
|
500
|
+
`,"register_client.lua":`local queued = tonumber(ARGV[num_static_argv + 1])
|
|
501
|
+
|
|
502
|
+
-- Could have been re-registered concurrently
|
|
503
|
+
if not redis.call('zscore', client_last_seen_key, client) then
|
|
504
|
+
redis.call('zadd', client_running_key, 0, client)
|
|
505
|
+
redis.call('hset', client_num_queued_key, client, queued)
|
|
506
|
+
redis.call('zadd', client_last_registered_key, 0, client)
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
redis.call('zadd', client_last_seen_key, now, client)
|
|
510
|
+
|
|
511
|
+
return {}
|
|
512
|
+
`,"running.lua":`return process_tick(now, false)['running']
|
|
513
|
+
`,"submit.lua":`local queueLength = tonumber(ARGV[num_static_argv + 1])
|
|
514
|
+
local weight = tonumber(ARGV[num_static_argv + 2])
|
|
515
|
+
|
|
516
|
+
local capacity = process_tick(now, false)['capacity']
|
|
517
|
+
|
|
518
|
+
local settings = redis.call('hmget', settings_key,
|
|
519
|
+
'id',
|
|
520
|
+
'maxConcurrent',
|
|
521
|
+
'highWater',
|
|
522
|
+
'nextRequest',
|
|
523
|
+
'strategy',
|
|
524
|
+
'unblockTime',
|
|
525
|
+
'penalty',
|
|
526
|
+
'minTime',
|
|
527
|
+
'groupTimeout'
|
|
528
|
+
)
|
|
529
|
+
local id = settings[1]
|
|
530
|
+
local maxConcurrent = tonumber(settings[2])
|
|
531
|
+
local highWater = tonumber(settings[3])
|
|
532
|
+
local nextRequest = tonumber(settings[4])
|
|
533
|
+
local strategy = tonumber(settings[5])
|
|
534
|
+
local unblockTime = tonumber(settings[6])
|
|
535
|
+
local penalty = tonumber(settings[7])
|
|
536
|
+
local minTime = tonumber(settings[8])
|
|
537
|
+
local groupTimeout = tonumber(settings[9])
|
|
538
|
+
|
|
539
|
+
if maxConcurrent ~= nil and weight > maxConcurrent then
|
|
540
|
+
return redis.error_reply('OVERWEIGHT:'..weight..':'..maxConcurrent)
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
local reachedHWM = (highWater ~= nil and queueLength == highWater
|
|
544
|
+
and not (
|
|
545
|
+
conditions_check(capacity, weight)
|
|
546
|
+
and nextRequest - now <= 0
|
|
547
|
+
)
|
|
548
|
+
)
|
|
549
|
+
|
|
550
|
+
local blocked = strategy == 3 and (reachedHWM or unblockTime >= now)
|
|
551
|
+
|
|
552
|
+
if blocked then
|
|
553
|
+
local computedPenalty = penalty
|
|
554
|
+
if computedPenalty == nil then
|
|
555
|
+
if minTime == 0 then
|
|
556
|
+
computedPenalty = 5000
|
|
557
|
+
else
|
|
558
|
+
computedPenalty = 15 * minTime
|
|
559
|
+
end
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
local newNextRequest = now + computedPenalty + minTime
|
|
563
|
+
|
|
564
|
+
redis.call('hmset', settings_key,
|
|
565
|
+
'unblockTime', now + computedPenalty,
|
|
566
|
+
'nextRequest', newNextRequest
|
|
567
|
+
)
|
|
568
|
+
|
|
569
|
+
local clients_queued_reset = redis.call('hkeys', client_num_queued_key)
|
|
570
|
+
local queued_reset = {}
|
|
571
|
+
for i = 1, #clients_queued_reset do
|
|
572
|
+
table.insert(queued_reset, clients_queued_reset[i])
|
|
573
|
+
table.insert(queued_reset, 0)
|
|
574
|
+
end
|
|
575
|
+
redis.call('hmset', client_num_queued_key, unpack(queued_reset))
|
|
576
|
+
|
|
577
|
+
redis.call('publish', 'b_'..id, 'blocked:')
|
|
578
|
+
|
|
579
|
+
refresh_expiration(now, newNextRequest, groupTimeout)
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
if not blocked and not reachedHWM then
|
|
583
|
+
redis.call('hincrby', client_num_queued_key, client, 1)
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
return {reachedHWM, blocked, strategy}
|
|
587
|
+
`,"update_settings.lua":`local args = {'hmset', settings_key}
|
|
588
|
+
|
|
589
|
+
for i = num_static_argv + 1, #ARGV do
|
|
590
|
+
table.insert(args, ARGV[i])
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
redis.call(unpack(args))
|
|
594
|
+
|
|
595
|
+
process_tick(now, true)
|
|
596
|
+
|
|
597
|
+
local groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))
|
|
598
|
+
refresh_expiration(0, 0, groupTimeout)
|
|
599
|
+
|
|
600
|
+
return {}
|
|
601
|
+
`,"validate_client.lua":`if not redis.call('zscore', client_last_seen_key, client) then
|
|
602
|
+
return redis.error_reply('UNKNOWN_CLIENT')
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
redis.call('zadd', client_last_seen_key, now, client)
|
|
606
|
+
`,"validate_keys.lua":`if not (redis.call('exists', settings_key) == 1) then
|
|
607
|
+
return redis.error_reply('SETTINGS_KEY_NOT_FOUND')
|
|
608
|
+
end
|
|
609
|
+
`}});var hm=_(Ge=>{"use strict";l();var mm,Re,Em;Re=f6();mm={refs:Re["refs.lua"],validate_keys:Re["validate_keys.lua"],validate_client:Re["validate_client.lua"],refresh_expiration:Re["refresh_expiration.lua"],process_tick:Re["process_tick.lua"],conditions_check:Re["conditions_check.lua"],get_time:Re["get_time.lua"]};Ge.allKeys=function(t){return[`b_${t}_settings`,`b_${t}_job_weights`,`b_${t}_job_expirations`,`b_${t}_job_clients`,`b_${t}_client_running`,`b_${t}_client_num_queued`,`b_${t}_client_last_registered`,`b_${t}_client_last_seen`]};Em={init:{keys:Ge.allKeys,headers:["process_tick"],refresh_expiration:!0,code:Re["init.lua"]},group_check:{keys:Ge.allKeys,headers:[],refresh_expiration:!1,code:Re["group_check.lua"]},register_client:{keys:Ge.allKeys,headers:["validate_keys"],refresh_expiration:!1,code:Re["register_client.lua"]},blacklist_client:{keys:Ge.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:Re["blacklist_client.lua"]},heartbeat:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Re["heartbeat.lua"]},update_settings:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:Re["update_settings.lua"]},running:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Re["running.lua"]},queued:{keys:Ge.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:Re["queued.lua"]},done:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Re["done.lua"]},check:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!1,code:Re["check.lua"]},submit:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:Re["submit.lua"]},register:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:Re["register.lua"]},free:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:Re["free.lua"]},current_reservoir:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Re["current_reservoir.lua"]},increment_reservoir:{keys:Ge.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:Re["increment_reservoir.lua"]}};Ge.names=Object.keys(Em);Ge.keys=function(t,e){return Em[t].keys(e)};Ge.payload=function(t){var e;return e=Em[t],Array.prototype.concat(mm.refs,e.headers.map(function(n){return mm[n]}),e.refresh_expiration?mm.refresh_expiration:"",e.code).join(`
|
|
610
|
+
`)}});var Tm=_((exports,module)=>{"use strict";l();function asyncGeneratorStep(t,e,n,i,a,c,o){try{var r=t[c](o),s=r.value}catch(u){n(u);return}r.done?e(s):Promise.resolve(s).then(i,a)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var c=t.apply(e,n);function o(s){asyncGeneratorStep(c,i,a,o,r,"next",s)}function r(s){asyncGeneratorStep(c,i,a,o,r,"throw",s)}o(void 0)})}}var Events,RedisConnection,Scripts,parser;parser=dn();Events=ei();Scripts=hm();RedisConnection=function(){class RedisConnection{constructor(options={}){parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("redis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.client==null&&(this.client=this.Redis.createClient(this.clientOptions)),this.subscriber=this.client.duplicate(),this.limiters={},this.shas={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(()=>this._loadScripts()).then(()=>({client:this.client,subscriber:this.subscriber}))}_setup(t,e){return t.setMaxListeners(0),new this.Promise((n,i)=>(t.on("error",a=>this.Events.trigger("error",a)),e&&t.on("message",(a,c)=>{var o;return(o=this.limiters[a])!=null?o._store.onMessage(a,c):void 0}),t.ready?n():t.once("ready",n)))}_loadScript(t){return new this.Promise((e,n)=>{var i;return i=Scripts.payload(t),this.client.multi([["script","load",i]]).exec((a,c)=>a!=null?n(a):(this.shas[t]=c[0],e(c[0])))})}_loadScripts(){return this.Promise.all(Scripts.names.map(t=>this._loadScript(t)))}__runCommand__(t){var e=this;return _asyncToGenerator(function*(){return yield e.ready,new e.Promise((n,i)=>e.client.multi([t]).exec_atomic(function(a,c){return a!=null?i(a):n(c[0])}))})()}__addLimiter__(t){return this.Promise.all([t.channel(),t.channel_client()].map(e=>new this.Promise((n,i)=>{var a;return a=c=>{if(c===e)return this.subscriber.removeListener("subscribe",a),this.limiters[e]=t,n()},this.subscriber.on("subscribe",a),this.subscriber.subscribe(e)})))}__removeLimiter__(t){var e=this;return this.Promise.all([t.channel(),t.channel_client()].map((function(){var n=_asyncToGenerator(function*(i){return e.terminated||(yield new e.Promise((a,c)=>e.subscriber.unsubscribe(i,function(o,r){if(o!=null)return c(o);if(r===i)return a()}))),delete e.limiters[i]});return function(i){return n.apply(this,arguments)}})()))}__scriptArgs__(t,e,n,i){var a;return a=Scripts.keys(t,e),[this.shas[t],a.length].concat(a,n,i)}__scriptFn__(t){return this.client.evalsha.bind(this.client)}disconnect(t=!0){var e,n,i,a;for(a=Object.keys(this.limiters),e=0,i=a.length;e<i;e++)n=a[e],clearInterval(this.limiters[n]._store.heartbeat);return this.limiters={},this.terminated=!0,this.client.end(t),this.subscriber.end(t),this.Promise.resolve()}}return RedisConnection.prototype.datastore="redis",RedisConnection.prototype.defaults={Redis:null,clientOptions:{},client:null,Promise,Events:null},RedisConnection}.call(void 0);module.exports=RedisConnection});var Sm=_((exports,module)=>{"use strict";l();function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(t,e){var n=[],i=!0,a=!1,c=void 0;try{for(var o=t[Symbol.iterator](),r;!(i=(r=o.next()).done)&&(n.push(r.value),!(e&&n.length===e));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&o.return!=null&&o.return()}finally{if(a)throw c}}return n}function _arrayWithHoles(t){if(Array.isArray(t))return t}function asyncGeneratorStep(t,e,n,i,a,c,o){try{var r=t[c](o),s=r.value}catch(u){n(u);return}r.done?e(s):Promise.resolve(s).then(i,a)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var c=t.apply(e,n);function o(s){asyncGeneratorStep(c,i,a,o,r,"next",s)}function r(s){asyncGeneratorStep(c,i,a,o,r,"throw",s)}o(void 0)})}}var Events,IORedisConnection,Scripts,parser;parser=dn();Events=ei();Scripts=hm();IORedisConnection=function(){class IORedisConnection{constructor(options={}){parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("ioredis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.clusterNodes!=null?(this.client=new this.Redis.Cluster(this.clusterNodes,this.clientOptions),this.subscriber=new this.Redis.Cluster(this.clusterNodes,this.clientOptions)):this.client!=null&&this.client.duplicate==null?this.subscriber=new this.Redis.Cluster(this.client.startupNodes,this.client.options):(this.client==null&&(this.client=new this.Redis(this.clientOptions)),this.subscriber=this.client.duplicate()),this.limiters={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(()=>(this._loadScripts(),{client:this.client,subscriber:this.subscriber}))}_setup(t,e){return t.setMaxListeners(0),new this.Promise((n,i)=>(t.on("error",a=>this.Events.trigger("error",a)),e&&t.on("message",(a,c)=>{var o;return(o=this.limiters[a])!=null?o._store.onMessage(a,c):void 0}),t.status==="ready"?n():t.once("ready",n)))}_loadScripts(){return Scripts.names.forEach(t=>this.client.defineCommand(t,{lua:Scripts.payload(t)}))}__runCommand__(t){var e=this;return _asyncToGenerator(function*(){var n,i;yield e.ready;var a=yield e.client.pipeline([t]).exec(),c=_slicedToArray(a,1),o=_slicedToArray(c[0],2);return n=o[0],i=o[1],i})()}__addLimiter__(t){return this.Promise.all([t.channel(),t.channel_client()].map(e=>new this.Promise((n,i)=>this.subscriber.subscribe(e,()=>(this.limiters[e]=t,n())))))}__removeLimiter__(t){var e=this;return[t.channel(),t.channel_client()].forEach((function(){var n=_asyncToGenerator(function*(i){return e.terminated||(yield e.subscriber.unsubscribe(i)),delete e.limiters[i]});return function(i){return n.apply(this,arguments)}})())}__scriptArgs__(t,e,n,i){var a;return a=Scripts.keys(t,e),[a.length].concat(a,n,i)}__scriptFn__(t){return this.client[t].bind(this.client)}disconnect(t=!0){var e,n,i,a;for(a=Object.keys(this.limiters),e=0,i=a.length;e<i;e++)n=a[e],clearInterval(this.limiters[n]._store.heartbeat);return this.limiters={},this.terminated=!0,t?this.Promise.all([this.client.quit(),this.subscriber.quit()]):(this.client.disconnect(),this.subscriber.disconnect(),this.Promise.resolve())}}return IORedisConnection.prototype.datastore="ioredis",IORedisConnection.prototype.defaults={Redis:null,clientOptions:{},clusterNodes:null,client:null,Promise,Events:null},IORedisConnection}.call(void 0);module.exports=IORedisConnection});var v6=_((Prt,S6)=>{"use strict";l();function vm(t,e){return z0e(t)||$0e(t,e)||K0e()}function K0e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function $0e(t,e){var n=[],i=!0,a=!1,c=void 0;try{for(var o=t[Symbol.iterator](),r;!(i=(r=o.next()).done)&&(n.push(r.value),!(e&&n.length===e));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&o.return!=null&&o.return()}finally{if(a)throw c}}return n}function z0e(t){if(Array.isArray(t))return t}function _6(t,e,n,i,a,c,o){try{var r=t[c](o),s=r.value}catch(u){n(u);return}r.done?e(s):Promise.resolve(s).then(i,a)}function qr(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var c=t.apply(e,n);function o(s){_6(c,i,a,o,r,"next",s)}function r(s){_6(c,i,a,o,r,"throw",s)}o(void 0)})}}var m6,E6,h6,T6,cA;cA=dn();m6=ts();h6=Tm();E6=Sm();T6=class{constructor(e,n,i){this.instance=e,this.storeOptions=n,this.originalId=this.instance.id,this.clientId=this.instance._randomIndex(),cA.load(i,i,this),this.clients={},this.capacityPriorityCounters={},this.sharedConnection=this.connection!=null,this.connection==null&&(this.connection=this.instance.datastore==="redis"?new h6({Redis:this.Redis,clientOptions:this.clientOptions,Promise:this.Promise,Events:this.instance.Events}):this.instance.datastore==="ioredis"?new E6({Redis:this.Redis,clientOptions:this.clientOptions,clusterNodes:this.clusterNodes,Promise:this.Promise,Events:this.instance.Events}):void 0),this.instance.connection=this.connection,this.instance.datastore=this.connection.datastore,this.ready=this.connection.ready.then(a=>(this.clients=a,this.runScript("init",this.prepareInitSettings(this.clearDatastore)))).then(()=>this.connection.__addLimiter__(this.instance)).then(()=>this.runScript("register_client",[this.instance.queued()])).then(()=>{var a;return typeof(a=this.heartbeat=setInterval(()=>this.runScript("heartbeat",[]).catch(c=>this.instance.Events.trigger("error",c)),this.heartbeatInterval)).unref=="function"&&a.unref(),this.clients})}__publish__(e){var n=this;return qr(function*(){var i,a=yield n.ready;return i=a.client,i.publish(n.instance.channel(),`message:${e.toString()}`)})()}onMessage(e,n){var i=this;return qr(function*(){var a,c,o,r,s,u,p,S,A,O;try{p=n.indexOf(":");var I=[n.slice(0,p),n.slice(p+1)];if(O=I[0],o=I[1],O==="capacity")return yield i.instance._drainAll(o.length>0?~~o:void 0);if(O==="capacity-priority"){var F=o.split(":"),H=vm(F,3);return A=H[0],S=H[1],c=H[2],a=A.length>0?~~A:void 0,S===i.clientId?(r=yield i.instance._drainAll(a),u=a!=null?a-(r||0):"",yield i.clients.client.publish(i.instance.channel(),`capacity-priority:${u}::${c}`)):S===""?(clearTimeout(i.capacityPriorityCounters[c]),delete i.capacityPriorityCounters[c],i.instance._drainAll(a)):i.capacityPriorityCounters[c]=setTimeout(qr(function*(){var z;try{return delete i.capacityPriorityCounters[c],yield i.runScript("blacklist_client",[S]),yield i.instance._drainAll(a)}catch(W){return z=W,i.instance.Events.trigger("error",z)}}),1e3)}else{if(O==="message")return i.instance.Events.trigger("message",o);if(O==="blocked")return yield i.instance._dropAllQueued()}}catch(z){return s=z,i.instance.Events.trigger("error",s)}})()}__disconnect__(e){return clearInterval(this.heartbeat),this.sharedConnection?this.connection.__removeLimiter__(this.instance):this.connection.disconnect(e)}runScript(e,n){var i=this;return qr(function*(){return e==="init"||e==="register_client"||(yield i.ready),new i.Promise((a,c)=>{var o,r;return o=[Date.now(),i.clientId].concat(n),i.instance.Events.trigger("debug",`Calling Redis script: ${e}.lua`,o),r=i.connection.__scriptArgs__(e,i.originalId,o,function(s,u){return s!=null?c(s):a(u)}),i.connection.__scriptFn__(e)(...r)}).catch(a=>a.message==="SETTINGS_KEY_NOT_FOUND"?e==="heartbeat"?i.Promise.resolve():i.runScript("init",i.prepareInitSettings(!1)).then(()=>i.runScript(e,n)):a.message==="UNKNOWN_CLIENT"?i.runScript("register_client",[i.instance.queued()]).then(()=>i.runScript(e,n)):i.Promise.reject(a))})()}prepareArray(e){var n,i,a,c;for(a=[],n=0,i=e.length;n<i;n++)c=e[n],a.push(c!=null?c.toString():"");return a}prepareObject(e){var n,i,a;n=[];for(i in e)a=e[i],n.push(i,a!=null?a.toString():"");return n}prepareInitSettings(e){var n;return n=this.prepareObject(Object.assign({},this.storeOptions,{id:this.originalId,version:this.instance.version,groupTimeout:this.timeout,clientTimeout:this.clientTimeout})),n.unshift(e?1:0,this.instance.version),n}convertBool(e){return!!e}__updateSettings__(e){var n=this;return qr(function*(){return yield n.runScript("update_settings",n.prepareObject(e)),cA.overwrite(e,e,n.storeOptions)})()}__running__(){return this.runScript("running",[])}__queued__(){return this.runScript("queued",[])}__done__(){return this.runScript("done",[])}__groupCheck__(){var e=this;return qr(function*(){return e.convertBool(yield e.runScript("group_check",[]))})()}__incrementReservoir__(e){return this.runScript("increment_reservoir",[e])}__currentReservoir__(){return this.runScript("current_reservoir",[])}__check__(e){var n=this;return qr(function*(){return n.convertBool(yield n.runScript("check",n.prepareArray([e])))})()}__register__(e,n,i){var a=this;return qr(function*(){var c,o,r,s=yield a.runScript("register",a.prepareArray([e,n,i])),u=vm(s,3);return o=u[0],r=u[1],c=u[2],{success:a.convertBool(o),wait:r,reservoir:c}})()}__submit__(e,n){var i=this;return qr(function*(){var a,c,o,r,s,u;try{var p=yield i.runScript("submit",i.prepareArray([e,n])),S=vm(p,3);return s=S[0],a=S[1],u=S[2],{reachedHWM:i.convertBool(s),blocked:i.convertBool(a),strategy:u}}catch(I){if(c=I,c.message.indexOf("OVERWEIGHT")===0){var A=c.message.split(":"),O=vm(A,3);throw r=O[0],n=O[1],o=O[2],new m6(`Impossible to add a job having a weight of ${n} to a limiter having a maxConcurrent setting of ${o}`)}else throw c}})()}__free__(e,n){var i=this;return qr(function*(){var a;return a=yield i.runScript("free",i.prepareArray([e])),{running:a}})()}};S6.exports=T6});var x6=_((Irt,A6)=>{"use strict";l();var g6,y6;g6=ts();y6=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var n,i;if(n=this._jobs[e],i=n+1,n!=null&&i<this.status.length)return this.counts[n]--,this.counts[i]++,this._jobs[e]++;if(n!=null)return this.counts[n]--,delete this._jobs[e]}start(e){var n;return n=0,this._jobs[e]=n,this.counts[n]++}remove(e){var n;return n=this._jobs[e],n!=null&&(this.counts[n]--,delete this._jobs[e]),n!=null}jobStatus(e){var n;return(n=this.status[this._jobs[e]])!=null?n:null}statusJobs(e){var n,i,a,c,o;if(e!=null){if(i=this.status.indexOf(e),i<0)throw new g6(`status must be one of ${this.status.join(", ")}`);a=this._jobs,c=[];for(n in a)o=a[n],o===i&&c.push(n);return c}else return Object.keys(this._jobs)}statusCounts(){return this.counts.reduce((e,n,i)=>(e[this.status[i]]=n,e),{})}};A6.exports=y6});var M6=_((wrt,N6)=>{"use strict";l();function b6(t,e,n,i,a,c,o){try{var r=t[c](o),s=r.value}catch(u){n(u);return}r.done?e(s):Promise.resolve(s).then(i,a)}function O6(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var c=t.apply(e,n);function o(s){b6(c,i,a,o,r,"next",s)}function r(s){b6(c,i,a,o,r,"throw",s)}o(void 0)})}}var R6,P6;R6=iA();P6=class{constructor(e,n){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=n,this._running=0,this._queue=new R6}isEmpty(){return this._queue.length===0}_tryToRun(){var e=this;return O6(function*(){var n,i,a,c,o,r,s;if(e._running<1&&e._queue.length>0){e._running++;var u=e._queue.shift();return s=u.task,n=u.args,o=u.resolve,c=u.reject,i=yield O6(function*(){try{return r=yield s(...n),function(){return o(r)}}catch(p){return a=p,function(){return c(a)}}})(),e._running--,e._tryToRun(),i()}})()}schedule(e,...n){var i,a,c;return c=a=null,i=new this.Promise(function(o,r){return c=o,a=r}),this._queue.push({task:e,args:n,resolve:c,reject:a}),this._tryToRun(),i}};N6.exports=P6});var I6=_((Urt,W0e)=>{W0e.exports={version:"2.19.5"}});var B6=_((Vrt,k6)=>{"use strict";l();function X0e(t,e){return Z0e(t)||Q0e(t,e)||J0e()}function J0e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Q0e(t,e){var n=[],i=!0,a=!1,c=void 0;try{for(var o=t[Symbol.iterator](),r;!(i=(r=o.next()).done)&&(n.push(r.value),!(e&&n.length===e));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&o.return!=null&&o.return()}finally{if(a)throw c}}return n}function Z0e(t){if(Array.isArray(t))return t}function L6(t,e,n,i,a,c,o){try{var r=t[c](o),s=r.value}catch(u){n(u);return}r.done?e(s):Promise.resolve(s).then(i,a)}function uA(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var c=t.apply(e,n);function o(s){L6(c,i,a,o,r,"next",s)}function r(s){L6(c,i,a,o,r,"throw",s)}o(void 0)})}}var C6,w6,D6,U6,V6,gm;gm=dn();C6=ei();U6=Tm();D6=Sm();V6=hm();w6=function(){class t{constructor(n={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=n,gm.load(this.limiterOptions,this.defaults,this),this.Events=new C6(this),this.instances={},this.Bottleneck=lA(),this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new U6(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new D6(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(n=""){var i;return(i=this.instances[n])!=null?i:(()=>{var a;return a=this.instances[n]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${n}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",a,n),a})()}deleteKey(n=""){var i=this;return uA(function*(){var a,c;return c=i.instances[n],i.connection&&(a=yield i.connection.__runCommand__(["del",...V6.allKeys(`${i.id}-${n}`)])),c!=null&&(delete i.instances[n],yield c.disconnect()),c!=null||a>0})()}limiters(){var n,i,a,c;i=this.instances,a=[];for(n in i)c=i[n],a.push({key:n,limiter:c});return a}keys(){return Object.keys(this.instances)}clusterKeys(){var n=this;return uA(function*(){var i,a,c,o,r,s,u,p,S;if(n.connection==null)return n.Promise.resolve(n.keys());for(s=[],i=null,S=`b_${n.id}-`.length,a=9;i!==0;){var A=yield n.connection.__runCommand__(["scan",i??0,"match",`b_${n.id}-*_settings`,"count",1e4]),O=X0e(A,2);for(p=O[0],c=O[1],i=~~p,o=0,u=c.length;o<u;o++)r=c[o],s.push(r.slice(S,-a))}return s})()}_startAutoCleanup(){var n=this,i;return clearInterval(this.interval),typeof(i=this.interval=setInterval(uA(function*(){var a,c,o,r,s,u;s=Date.now(),o=n.instances,r=[];for(c in o){u=o[c];try{(yield u._store.__groupCheck__(s))?r.push(n.deleteKey(c)):r.push(void 0)}catch(p){a=p,r.push(u.Events.trigger("error",a))}}return r}),this.timeout/2)).unref=="function"?i.unref():void 0}updateSettings(n={}){if(gm.overwrite(n,this.defaults,this),gm.overwrite(n,n,this.limiterOptions),n.timeout!=null)return this._startAutoCleanup()}disconnect(n=!0){var i;if(!this.sharedConnection)return(i=this.connection)!=null?i.disconnect(n):void 0}}return t.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},t}.call(void 0);k6.exports=w6});var F6=_((Brt,q6)=>{"use strict";l();var G6,j6,H6;H6=dn();j6=ei();G6=function(){class t{constructor(n={}){this.options=n,H6.load(this.options,this.defaults,this),this.Events=new j6(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((n,i)=>this._resolve=n)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(n){var i;return this._arr.push(n),i=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),i}}return t.prototype.defaults={maxTime:null,maxSize:null,Promise},t}.call(void 0);q6.exports=G6});var lA=_((jrt,r8)=>{"use strict";l();function Y6(t,e){return W6(t)||e1e(t,e)||z6()}function e1e(t,e){var n=[],i=!0,a=!1,c=void 0;try{for(var o=t[Symbol.iterator](),r;!(i=(r=o.next()).done)&&(n.push(r.value),!(e&&n.length===e));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&o.return!=null&&o.return()}finally{if(a)throw c}}return n}function ym(t){return W6(t)||t1e(t)||z6()}function z6(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function t1e(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function W6(t){if(Array.isArray(t))return t}function K6(t,e,n,i,a,c,o){try{var r=t[c](o),s=r.value}catch(u){n(u);return}r.done?e(s):Promise.resolve(s).then(i,a)}function pA(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var c=t.apply(e,n);function o(s){K6(c,i,a,o,r,"next",s)}function r(s){K6(c,i,a,o,r,"throw",s)}o(void 0)})}}var X6,J6,dA,fA,Q6,_A,Z6,e8,t8,mA,Fr,$6=[].splice;_A=10;J6=5;Fr=dn();Z6=QW();fA=s6();Q6=d6();e8=v6();dA=ei();t8=x6();mA=M6();X6=function(){class t{constructor(n={},...i){var a,c;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(n,i),Fr.load(n,this.instanceDefaults,this),this._queues=new Z6(_A),this._scheduled={},this._states=new t8(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new dA(this),this._submitLock=new mA("submit",this.Promise),this._registerLock=new mA("register",this.Promise),c=Fr.load(n,this.storeDefaults,{}),this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return a=Fr.load(n,this.redisStoreDefaults,{}),new e8(this,c,a);if(this.datastore==="local")return a=Fr.load(n,this.localStoreDefaults,{}),new Q6(this,c,a);throw new t.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",()=>{var o;return(o=this._store.heartbeat)!=null&&typeof o.ref=="function"?o.ref():void 0}),this._queues.on("zero",()=>{var o;return(o=this._store.heartbeat)!=null&&typeof o.unref=="function"?o.unref():void 0})}_validateOptions(n,i){if(!(n!=null&&typeof n=="object"&&i.length===0))throw new t.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(n){return this._store.__publish__(n)}disconnect(n=!0){return this._store.__disconnect__(n)}chain(n){return this._limiter=n,this}queued(n){return this._queues.queued(n)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(n){return this._states.jobStatus(n)}jobs(n){return this._states.statusJobs(n)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(n=1){return this._store.__check__(n)}_clearGlobalState(n){return this._scheduled[n]!=null?(clearTimeout(this._scheduled[n].expiration),delete this._scheduled[n],!0):!1}_free(n,i,a,c){var o=this;return pA(function*(){var r,s;try{var u=yield o._store.__free__(n,a.weight);if(s=u.running,o.Events.trigger("debug",`Freed ${a.id}`,c),s===0&&o.empty())return o.Events.trigger("idle")}catch(p){return r=p,o.Events.trigger("error",r)}})()}_run(n,i,a){var c,o,r;return i.doRun(),c=this._clearGlobalState.bind(this,n),r=this._run.bind(this,n,i),o=this._free.bind(this,n,i),this._scheduled[n]={timeout:setTimeout(()=>i.doExecute(this._limiter,c,r,o),a),expiration:i.options.expiration!=null?setTimeout(function(){return i.doExpire(c,r,o)},a+i.options.expiration):void 0,job:i}}_drainOne(n){return this._registerLock.schedule(()=>{var i,a,c,o,r;if(this.queued()===0)return this.Promise.resolve(null);r=this._queues.getFirst();var s=c=r.first();return o=s.options,i=s.args,n!=null&&o.weight>n?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${o.id}`,{args:i,options:o}),a=this._randomIndex(),this._store.__register__(a,o.weight,o.expiration).then(({success:u,wait:p,reservoir:S})=>{var A;return this.Events.trigger("debug",`Drained ${o.id}`,{success:u,args:i,options:o}),u?(r.shift(),A=this.empty(),A&&this.Events.trigger("empty"),S===0&&this.Events.trigger("depleted",A),this._run(a,c,p),this.Promise.resolve(o.weight)):this.Promise.resolve(null)}))})}_drainAll(n,i=0){return this._drainOne(n).then(a=>{var c;return a!=null?(c=n!=null?n-a:n,this._drainAll(c,i+a)):this.Promise.resolve(i)}).catch(a=>this.Events.trigger("error",a))}_dropAllQueued(n){return this._queues.shiftAll(function(i){return i.doDrop({message:n})})}stop(n={}){var i,a;return n=Fr.load(n,this.stopDefaults),a=c=>{var o;return o=()=>{var r;return r=this._states.counts,r[0]+r[1]+r[2]+r[3]===c},new this.Promise((r,s)=>o()?r():this.on("done",()=>{if(o())return this.removeAllListeners("done"),r()}))},i=n.dropWaitingJobs?(this._run=function(c,o){return o.doDrop({message:n.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var c,o,r;o=this._scheduled;for(c in o)r=o[c],this.jobStatus(r.job.options.id)==="RUNNING"&&(clearTimeout(r.timeout),clearTimeout(r.expiration),r.job.doDrop({message:n.dropErrorMessage}));return this._dropAllQueued(n.dropErrorMessage),a(0)}))):this.schedule({priority:_A-1,weight:0},()=>a(1)),this._receive=function(c){return c._reject(new t.prototype.BottleneckError(n.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new t.prototype.BottleneckError("stop() has already been called")),i}_addToQueue(n){var i=this;return pA(function*(){var a,c,o,r,s,u,p;a=n.args,r=n.options;try{var S=yield i._store.__submit__(i.queued(),r.weight);s=S.reachedHWM,c=S.blocked,p=S.strategy}catch(A){return o=A,i.Events.trigger("debug",`Could not queue ${r.id}`,{args:a,options:r,error:o}),n.doDrop({error:o}),!1}return c?(n.doDrop(),!0):s&&(u=p===t.prototype.strategy.LEAK?i._queues.shiftLastFrom(r.priority):p===t.prototype.strategy.OVERFLOW_PRIORITY?i._queues.shiftLastFrom(r.priority+1):p===t.prototype.strategy.OVERFLOW?n:void 0,u?.doDrop(),u==null||p===t.prototype.strategy.OVERFLOW)?(u==null&&n.doDrop(),s):(n.doQueue(s,c),i._queues.push(n),yield i._drainAll(),s)})()}_receive(n){return this._states.jobStatus(n.options.id)!=null?(n._reject(new t.prototype.BottleneckError(`A job with the same id already exists (id=${n.options.id})`)),!1):(n.doReceive(),this._submitLock.schedule(this._addToQueue,n))}submit(...n){var i,a,c,o,r,s,u;if(typeof n[0]=="function"){var p,S,A,O;r=n,p=r,S=ym(p),a=S[0],n=S.slice(1),A=$6.call(n,-1),O=Y6(A,1),i=O[0],o=Fr.load({},this.jobDefaults)}else{var I,F,H,z;s=n,I=s,F=ym(I),o=F[0],a=F[1],n=F.slice(2),H=$6.call(n,-1),z=Y6(H,1),i=z[0],o=Fr.load(o,this.jobDefaults)}return u=(...W)=>new this.Promise(function(de,se){return a(...W,function(...ve){return(ve[0]!=null?se:de)(ve)})}),c=new fA(u,n,o,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),c.promise.then(function(W){return typeof i=="function"?i(...W):void 0}).catch(function(W){return Array.isArray(W)?typeof i=="function"?i(...W):void 0:typeof i=="function"?i(W):void 0}),this._receive(c)}schedule(...n){var i,a,c;if(typeof n[0]=="function"){var o=n,r=ym(o);c=r[0],n=r.slice(1),a={}}else{var s=n,u=ym(s);a=u[0],c=u[1],n=u.slice(2)}return i=new fA(c,n,a,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(i),i.promise}wrap(n){var i,a;return i=this.schedule.bind(this),a=function(...o){return i(n.bind(this),...o)},a.withOptions=function(c,...o){return i(c,n,...o)},a}updateSettings(n={}){var i=this;return pA(function*(){return yield i._store.__updateSettings__(Fr.overwrite(n,i.storeDefaults)),Fr.overwrite(n,i.instanceDefaults,i),i})()}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(n=0){return this._store.__incrementReservoir__(n)}}return t.default=t,t.Events=dA,t.version=t.prototype.version=I6().version,t.strategy=t.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},t.BottleneckError=t.prototype.BottleneckError=ts(),t.Group=t.prototype.Group=B6(),t.RedisConnection=t.prototype.RedisConnection=Tm(),t.IORedisConnection=t.prototype.IORedisConnection=Sm(),t.Batcher=t.prototype.Batcher=F6(),t.prototype.jobDefaults={priority:J6,weight:1,expiration:null,id:"<no-id>"},t.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:t.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},t.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},t.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},t.prototype.instanceDefaults={datastore:"local",connection:null,id:"<no-id>",rejectOnDrop:!0,trackDoneStatus:!1,Promise},t.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},t}.call(void 0);r8.exports=X6});var o8=_((qrt,n8)=>{"use strict";l();n8.exports=lA()});l();l();l();function ii(){let t=et();return t===Ft.Local?"e5380e02-312a-7408-5718-e07017e9cf52":t===Ft.Production?"fbdb2649-e327-4907-8f67-908d24cfd7e3":"e5380e02-312a-7408-5718-e07017e9cf52"}function St(t){switch(t){case"admin":{let e=et();return e===Ft.Local?"e92482cebb9bfb9fb5a0199cc770fde3de6c8d16b798ee73e36c9d815e070e52":e===Ft.Production?"7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c":"e92482cebb9bfb9fb5a0199cc770fde3de6c8d16b798ee73e36c9d815e070e52"}case"partners":{let e=et();return e===Ft.Local?"df89d73339ac3c6c5f0a98d9ca93260763e384d51d6038da129889c308973978":e===Ft.Production?"271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6":"df89d73339ac3c6c5f0a98d9ca93260763e384d51d6038da129889c308973978"}case"storefront-renderer":{let e=et();return e===Ft.Local?"46f603de-894f-488d-9471-5b721280ff49":e===Ft.Production?"ee139b3d-5861-4d45-b387-1bc3ada7811c":"46f603de-894f-488d-9471-5b721280ff49"}case"business-platform":{let e=et();return e===Ft.Local?"ace6dc89-b526-456d-a942-4b8ef6acda4b":e===Ft.Production?"32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc":"ace6dc89-b526-456d-a942-4b8ef6acda4b"}case"app-management":return et()===Ft.Production?"7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c":"e92482cebb9bfb9fb5a0199cc770fde3de6c8d16b798ee73e36c9d815e070e52";default:throw new tt(`Application id for API of type: ${t}`)}}l();l();l();l();var Ne={};Qn(Ne,{BRAND:()=>e5,DIRTY:()=>eo,EMPTY_PATH:()=>LJ,INVALID:()=>K,NEVER:()=>k5,OK:()=>at,ParseStatus:()=>rt,Schema:()=>ee,ZodAny:()=>vn,ZodArray:()=>Jr,ZodBigInt:()=>ro,ZodBoolean:()=>no,ZodBranded:()=>cs,ZodCatch:()=>mo,ZodDate:()=>oo,ZodDefault:()=>_o,ZodDiscriminatedUnion:()=>tu,ZodEffects:()=>$t,ZodEnum:()=>po,ZodError:()=>yt,ZodFirstPartyTypeKind:()=>$,ZodFunction:()=>nu,ZodIntersection:()=>co,ZodIssueCode:()=>M,ZodLazy:()=>uo,ZodLiteral:()=>lo,ZodMap:()=>pi,ZodNaN:()=>fi,ZodNativeEnum:()=>fo,ZodNever:()=>sr,ZodNull:()=>ao,ZodNullable:()=>yr,ZodNumber:()=>to,ZodObject:()=>At,ZodOptional:()=>Yt,ZodParsedType:()=>V,ZodPipeline:()=>us,ZodPromise:()=>gn,ZodReadonly:()=>Eo,ZodRecord:()=>ru,ZodSchema:()=>ee,ZodSet:()=>di,ZodString:()=>Sn,ZodSymbol:()=>ui,ZodTransformer:()=>$t,ZodTuple:()=>gr,ZodType:()=>ee,ZodUndefined:()=>io,ZodUnion:()=>so,ZodUnknown:()=>Xr,ZodVoid:()=>li,addIssueToContext:()=>U,any:()=>u5,array:()=>f5,bigint:()=>o5,boolean:()=>Xx,coerce:()=>V5,custom:()=>$x,date:()=>i5,datetimeRegex:()=>Yx,defaultErrorMap:()=>zr,discriminatedUnion:()=>h5,effect:()=>N5,enum:()=>O5,function:()=>A5,getErrorMap:()=>ai,getParsedType:()=>vr,instanceof:()=>r5,intersection:()=>T5,isAborted:()=>Zc,isAsync:()=>si,isDirty:()=>eu,isValid:()=>Tn,late:()=>t5,lazy:()=>x5,literal:()=>b5,makeIssue:()=>ss,map:()=>g5,nan:()=>n5,nativeEnum:()=>R5,never:()=>p5,null:()=>c5,nullable:()=>I5,number:()=>Wx,object:()=>_5,objectUtil:()=>Zm,oboolean:()=>U5,onumber:()=>D5,optional:()=>M5,ostring:()=>w5,pipeline:()=>C5,preprocess:()=>L5,promise:()=>P5,quotelessJson:()=>NJ,record:()=>v5,set:()=>y5,setErrorMap:()=>IJ,strictObject:()=>m5,string:()=>zx,symbol:()=>a5,transformer:()=>N5,tuple:()=>S5,undefined:()=>s5,union:()=>E5,unknown:()=>l5,util:()=>ne,void:()=>d5});l();l();l();l();l();var ne;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function n(a){throw new Error}t.assertNever=n,t.arrayToEnum=a=>{let c={};for(let o of a)c[o]=o;return c},t.getValidEnumValues=a=>{let c=t.objectKeys(a).filter(r=>typeof a[a[r]]!="number"),o={};for(let r of c)o[r]=a[r];return t.objectValues(o)},t.objectValues=a=>t.objectKeys(a).map(function(c){return a[c]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let c=[];for(let o in a)Object.prototype.hasOwnProperty.call(a,o)&&c.push(o);return c},t.find=(a,c)=>{for(let o of a)if(c(o))return o},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function i(a,c=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(c)}t.joinValues=i,t.jsonStringifyReplacer=(a,c)=>typeof c=="bigint"?c.toString():c})(ne||(ne={}));var Zm;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Zm||(Zm={}));var V=ne.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),vr=t=>{switch(typeof t){case"undefined":return V.undefined;case"string":return V.string;case"number":return Number.isNaN(t)?V.nan:V.number;case"boolean":return V.boolean;case"function":return V.function;case"bigint":return V.bigint;case"symbol":return V.symbol;case"object":return Array.isArray(t)?V.array:t===null?V.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?V.promise:typeof Map<"u"&&t instanceof Map?V.map:typeof Set<"u"&&t instanceof Set?V.set:typeof Date<"u"&&t instanceof Date?V.date:V.object;default:return V.unknown}};var M=ne.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),NJ=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),yt=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){let n=e||function(c){return c.message},i={_errors:[]},a=c=>{for(let o of c.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)i._errors.push(n(o));else{let r=i,s=0;for(;s<o.path.length;){let u=o.path[s];s===o.path.length-1?(r[u]=r[u]||{_errors:[]},r[u]._errors.push(n(o))):r[u]=r[u]||{_errors:[]},r=r[u],s++}}};return a(this),i}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ne.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){let n={},i=[];for(let a of this.issues)if(a.path.length>0){let c=a.path[0];n[c]=n[c]||[],n[c].push(e(a))}else i.push(e(a));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};yt.create=t=>new yt(t);var MJ=(t,e)=>{let n;switch(t.code){case M.invalid_type:t.received===V.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case M.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,ne.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:n=`Unrecognized key(s) in object: ${ne.joinValues(t.keys,", ")}`;break;case M.invalid_union:n="Invalid input";break;case M.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ne.joinValues(t.options)}`;break;case M.invalid_enum_value:n=`Invalid enum value. Expected ${ne.joinValues(t.options)}, received '${t.received}'`;break;case M.invalid_arguments:n="Invalid function arguments";break;case M.invalid_return_type:n="Invalid function return type";break;case M.invalid_date:n="Invalid date";break;case M.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:ne.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case M.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case M.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case M.custom:n="Invalid input";break;case M.invalid_intersection_types:n="Intersection results could not be merged";break;case M.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case M.not_finite:n="Number must be finite";break;default:n=e.defaultError,ne.assertNever(t)}return{message:n}},zr=MJ;var Gx=zr;function IJ(t){Gx=t}function ai(){return Gx}l();var ss=t=>{let{data:e,path:n,errorMaps:i,issueData:a}=t,c=[...n,...a.path||[]],o={...a,path:c};if(a.message!==void 0)return{...a,path:c,message:a.message};let r="",s=i.filter(u=>!!u).slice().reverse();for(let u of s)r=u(o,{data:e,defaultError:r}).message;return{...a,path:c,message:r}},LJ=[];function U(t,e){let n=ai(),i=ss({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===zr?void 0:zr].filter(a=>!!a)});t.common.issues.push(i)}var rt=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){let i=[];for(let a of n){if(a.status==="aborted")return K;a.status==="dirty"&&e.dirty(),i.push(a.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,n){let i=[];for(let a of n){let c=await a.key,o=await a.value;i.push({key:c,value:o})}return t.mergeObjectSync(e,i)}static mergeObjectSync(e,n){let i={};for(let a of n){let{key:c,value:o}=a;if(c.status==="aborted"||o.status==="aborted")return K;c.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),c.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(i[c.value]=o.value)}return{status:e.value,value:i}}},K=Object.freeze({status:"aborted"}),eo=t=>({status:"dirty",value:t}),at=t=>({status:"valid",value:t}),Zc=t=>t.status==="aborted",eu=t=>t.status==="dirty",Tn=t=>t.status==="valid",si=t=>typeof Promise<"u"&&t instanceof Promise;l();l();var B;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(B||(B={}));var Kt=class{constructor(e,n,i,a){this._cachedPath=[],this.parent=e,this.data=n,this._path=i,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},jx=(t,e)=>{if(Tn(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new yt(t.common.issues);return this._error=n,this._error}}};function Q(t){if(!t)return{};let{errorMap:e,invalid_type_error:n,required_error:i,description:a}=t;if(e&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(o,r)=>{let{message:s}=t;return o.code==="invalid_enum_value"?{message:s??r.defaultError}:typeof r.data>"u"?{message:s??i??r.defaultError}:o.code!=="invalid_type"?{message:r.defaultError}:{message:s??n??r.defaultError}},description:a}}var ee=class{get description(){return this._def.description}_getType(e){return vr(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:vr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new rt,ctx:{common:e.parent.common,data:e.data,parsedType:vr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(si(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){let n=this._parse(e);return Promise.resolve(n)}parse(e,n){let i=this.safeParse(e,n);if(i.success)return i.data;throw i.error}safeParse(e,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vr(e)},a=this._parseSync({data:e,path:i.path,parent:i});return jx(i,a)}"~validate"(e){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vr(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:n});return Tn(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(i=>Tn(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(e,n){let i=await this.safeParseAsync(e,n);if(i.success)return i.data;throw i.error}async safeParseAsync(e,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vr(e)},a=this._parse({data:e,path:i.path,parent:i}),c=await(si(a)?a:Promise.resolve(a));return jx(i,c)}refine(e,n){let i=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,c)=>{let o=e(a),r=()=>c.addIssue({code:M.custom,...i(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(s=>s?!0:(r(),!1)):o?!0:(r(),!1)})}refinement(e,n){return this._refinement((i,a)=>e(i)?!0:(a.addIssue(typeof n=="function"?n(i,a):n),!1))}_refinement(e){return new $t({schema:this,typeName:$.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Yt.create(this,this._def)}nullable(){return yr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Jr.create(this)}promise(){return gn.create(this,this._def)}or(e){return so.create([this,e],this._def)}and(e){return co.create(this,e,this._def)}transform(e){return new $t({...Q(this._def),schema:this,typeName:$.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let n=typeof e=="function"?e:()=>e;return new _o({...Q(this._def),innerType:this,defaultValue:n,typeName:$.ZodDefault})}brand(){return new cs({typeName:$.ZodBranded,type:this,...Q(this._def)})}catch(e){let n=typeof e=="function"?e:()=>e;return new mo({...Q(this._def),innerType:this,catchValue:n,typeName:$.ZodCatch})}describe(e){let n=this.constructor;return new n({...this._def,description:e})}pipe(e){return us.create(this,e)}readonly(){return Eo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},CJ=/^c[^\s-]{8,}$/i,wJ=/^[0-9a-z]+$/,DJ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,UJ=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,VJ=/^[a-z0-9_-]{21}$/i,kJ=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,BJ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,GJ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jJ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",eE,HJ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qJ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,FJ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,YJ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,KJ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$J=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qx="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zJ=new RegExp(`^${qx}$`);function Fx(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function WJ(t){return new RegExp(`^${Fx(t)}$`)}function Yx(t){let e=`${qx}T${Fx(t)}`,n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function XJ(t,e){return!!((e==="v4"||!e)&&HJ.test(t)||(e==="v6"||!e)&&FJ.test(t))}function JJ(t,e){if(!kJ.test(t))return!1;try{let[n]=t.split(".");if(!n)return!1;let i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(i));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function QJ(t,e){return!!((e==="v4"||!e)&&qJ.test(t)||(e==="v6"||!e)&&YJ.test(t))}var Sn=class t extends ee{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==V.string){let c=this._getOrReturnCtx(e);return U(c,{code:M.invalid_type,expected:V.string,received:c.parsedType}),K}let i=new rt,a;for(let c of this._def.checks)if(c.kind==="min")e.data.length<c.value&&(a=this._getOrReturnCtx(e,a),U(a,{code:M.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),i.dirty());else if(c.kind==="max")e.data.length>c.value&&(a=this._getOrReturnCtx(e,a),U(a,{code:M.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),i.dirty());else if(c.kind==="length"){let o=e.data.length>c.value,r=e.data.length<c.value;(o||r)&&(a=this._getOrReturnCtx(e,a),o?U(a,{code:M.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):r&&U(a,{code:M.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),i.dirty())}else if(c.kind==="email")GJ.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"email",code:M.invalid_string,message:c.message}),i.dirty());else if(c.kind==="emoji")eE||(eE=new RegExp(jJ,"u")),eE.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"emoji",code:M.invalid_string,message:c.message}),i.dirty());else if(c.kind==="uuid")UJ.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"uuid",code:M.invalid_string,message:c.message}),i.dirty());else if(c.kind==="nanoid")VJ.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"nanoid",code:M.invalid_string,message:c.message}),i.dirty());else if(c.kind==="cuid")CJ.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"cuid",code:M.invalid_string,message:c.message}),i.dirty());else if(c.kind==="cuid2")wJ.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"cuid2",code:M.invalid_string,message:c.message}),i.dirty());else if(c.kind==="ulid")DJ.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"ulid",code:M.invalid_string,message:c.message}),i.dirty());else if(c.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),U(a,{validation:"url",code:M.invalid_string,message:c.message}),i.dirty()}else c.kind==="regex"?(c.regex.lastIndex=0,c.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"regex",code:M.invalid_string,message:c.message}),i.dirty())):c.kind==="trim"?e.data=e.data.trim():c.kind==="includes"?e.data.includes(c.value,c.position)||(a=this._getOrReturnCtx(e,a),U(a,{code:M.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),i.dirty()):c.kind==="toLowerCase"?e.data=e.data.toLowerCase():c.kind==="toUpperCase"?e.data=e.data.toUpperCase():c.kind==="startsWith"?e.data.startsWith(c.value)||(a=this._getOrReturnCtx(e,a),U(a,{code:M.invalid_string,validation:{startsWith:c.value},message:c.message}),i.dirty()):c.kind==="endsWith"?e.data.endsWith(c.value)||(a=this._getOrReturnCtx(e,a),U(a,{code:M.invalid_string,validation:{endsWith:c.value},message:c.message}),i.dirty()):c.kind==="datetime"?Yx(c).test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{code:M.invalid_string,validation:"datetime",message:c.message}),i.dirty()):c.kind==="date"?zJ.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{code:M.invalid_string,validation:"date",message:c.message}),i.dirty()):c.kind==="time"?WJ(c).test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{code:M.invalid_string,validation:"time",message:c.message}),i.dirty()):c.kind==="duration"?BJ.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"duration",code:M.invalid_string,message:c.message}),i.dirty()):c.kind==="ip"?XJ(e.data,c.version)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"ip",code:M.invalid_string,message:c.message}),i.dirty()):c.kind==="jwt"?JJ(e.data,c.alg)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"jwt",code:M.invalid_string,message:c.message}),i.dirty()):c.kind==="cidr"?QJ(e.data,c.version)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"cidr",code:M.invalid_string,message:c.message}),i.dirty()):c.kind==="base64"?KJ.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"base64",code:M.invalid_string,message:c.message}),i.dirty()):c.kind==="base64url"?$J.test(e.data)||(a=this._getOrReturnCtx(e,a),U(a,{validation:"base64url",code:M.invalid_string,message:c.message}),i.dirty()):ne.assertNever(c);return{status:i.value,value:e.data}}_regex(e,n,i){return this.refinement(a=>e.test(a),{validation:n,code:M.invalid_string,...B.errToObj(i)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...B.errToObj(e)})}url(e){return this._addCheck({kind:"url",...B.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...B.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...B.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...B.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...B.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...B.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...B.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...B.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...B.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...B.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...B.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...B.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...B.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...B.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...B.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...B.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...B.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...B.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...B.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...B.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...B.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...B.errToObj(n)})}nonempty(e){return this.min(1,B.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};Sn.create=t=>new Sn({checks:[],typeName:$.ZodString,coerce:t?.coerce??!1,...Q(t)});function ZJ(t,e){let n=(t.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,a=n>i?n:i,c=Number.parseInt(t.toFixed(a).replace(".","")),o=Number.parseInt(e.toFixed(a).replace(".",""));return c%o/10**a}var to=class t extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==V.number){let c=this._getOrReturnCtx(e);return U(c,{code:M.invalid_type,expected:V.number,received:c.parsedType}),K}let i,a=new rt;for(let c of this._def.checks)c.kind==="int"?ne.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),U(i,{code:M.invalid_type,expected:"integer",received:"float",message:c.message}),a.dirty()):c.kind==="min"?(c.inclusive?e.data<c.value:e.data<=c.value)&&(i=this._getOrReturnCtx(e,i),U(i,{code:M.too_small,minimum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),a.dirty()):c.kind==="max"?(c.inclusive?e.data>c.value:e.data>=c.value)&&(i=this._getOrReturnCtx(e,i),U(i,{code:M.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),a.dirty()):c.kind==="multipleOf"?ZJ(e.data,c.value)!==0&&(i=this._getOrReturnCtx(e,i),U(i,{code:M.not_multiple_of,multipleOf:c.value,message:c.message}),a.dirty()):c.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),U(i,{code:M.not_finite,message:c.message}),a.dirty()):ne.assertNever(c);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,B.toString(n))}gt(e,n){return this.setLimit("min",e,!1,B.toString(n))}lte(e,n){return this.setLimit("max",e,!0,B.toString(n))}lt(e,n){return this.setLimit("max",e,!1,B.toString(n))}setLimit(e,n,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:B.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:B.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:B.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:B.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:B.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:B.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:B.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:B.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:B.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:B.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&ne.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(n)&&Number.isFinite(e)}};to.create=t=>new to({checks:[],typeName:$.ZodNumber,coerce:t?.coerce||!1,...Q(t)});var ro=class t extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==V.bigint)return this._getInvalidInput(e);let i,a=new rt;for(let c of this._def.checks)c.kind==="min"?(c.inclusive?e.data<c.value:e.data<=c.value)&&(i=this._getOrReturnCtx(e,i),U(i,{code:M.too_small,type:"bigint",minimum:c.value,inclusive:c.inclusive,message:c.message}),a.dirty()):c.kind==="max"?(c.inclusive?e.data>c.value:e.data>=c.value)&&(i=this._getOrReturnCtx(e,i),U(i,{code:M.too_big,type:"bigint",maximum:c.value,inclusive:c.inclusive,message:c.message}),a.dirty()):c.kind==="multipleOf"?e.data%c.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),U(i,{code:M.not_multiple_of,multipleOf:c.value,message:c.message}),a.dirty()):ne.assertNever(c);return{status:a.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return U(n,{code:M.invalid_type,expected:V.bigint,received:n.parsedType}),K}gte(e,n){return this.setLimit("min",e,!0,B.toString(n))}gt(e,n){return this.setLimit("min",e,!1,B.toString(n))}lte(e,n){return this.setLimit("max",e,!0,B.toString(n))}lt(e,n){return this.setLimit("max",e,!1,B.toString(n))}setLimit(e,n,i,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:i,message:B.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:B.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:B.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:B.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:B.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:B.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};ro.create=t=>new ro({checks:[],typeName:$.ZodBigInt,coerce:t?.coerce??!1,...Q(t)});var no=class extends ee{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==V.boolean){let i=this._getOrReturnCtx(e);return U(i,{code:M.invalid_type,expected:V.boolean,received:i.parsedType}),K}return at(e.data)}};no.create=t=>new no({typeName:$.ZodBoolean,coerce:t?.coerce||!1,...Q(t)});var oo=class t extends ee{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==V.date){let c=this._getOrReturnCtx(e);return U(c,{code:M.invalid_type,expected:V.date,received:c.parsedType}),K}if(Number.isNaN(e.data.getTime())){let c=this._getOrReturnCtx(e);return U(c,{code:M.invalid_date}),K}let i=new rt,a;for(let c of this._def.checks)c.kind==="min"?e.data.getTime()<c.value&&(a=this._getOrReturnCtx(e,a),U(a,{code:M.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),i.dirty()):c.kind==="max"?e.data.getTime()>c.value&&(a=this._getOrReturnCtx(e,a),U(a,{code:M.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),i.dirty()):ne.assertNever(c);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:B.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:B.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};oo.create=t=>new oo({checks:[],coerce:t?.coerce||!1,typeName:$.ZodDate,...Q(t)});var ui=class extends ee{_parse(e){if(this._getType(e)!==V.symbol){let i=this._getOrReturnCtx(e);return U(i,{code:M.invalid_type,expected:V.symbol,received:i.parsedType}),K}return at(e.data)}};ui.create=t=>new ui({typeName:$.ZodSymbol,...Q(t)});var io=class extends ee{_parse(e){if(this._getType(e)!==V.undefined){let i=this._getOrReturnCtx(e);return U(i,{code:M.invalid_type,expected:V.undefined,received:i.parsedType}),K}return at(e.data)}};io.create=t=>new io({typeName:$.ZodUndefined,...Q(t)});var ao=class extends ee{_parse(e){if(this._getType(e)!==V.null){let i=this._getOrReturnCtx(e);return U(i,{code:M.invalid_type,expected:V.null,received:i.parsedType}),K}return at(e.data)}};ao.create=t=>new ao({typeName:$.ZodNull,...Q(t)});var vn=class extends ee{constructor(){super(...arguments),this._any=!0}_parse(e){return at(e.data)}};vn.create=t=>new vn({typeName:$.ZodAny,...Q(t)});var Xr=class extends ee{constructor(){super(...arguments),this._unknown=!0}_parse(e){return at(e.data)}};Xr.create=t=>new Xr({typeName:$.ZodUnknown,...Q(t)});var sr=class extends ee{_parse(e){let n=this._getOrReturnCtx(e);return U(n,{code:M.invalid_type,expected:V.never,received:n.parsedType}),K}};sr.create=t=>new sr({typeName:$.ZodNever,...Q(t)});var li=class extends ee{_parse(e){if(this._getType(e)!==V.undefined){let i=this._getOrReturnCtx(e);return U(i,{code:M.invalid_type,expected:V.void,received:i.parsedType}),K}return at(e.data)}};li.create=t=>new li({typeName:$.ZodVoid,...Q(t)});var Jr=class t extends ee{_parse(e){let{ctx:n,status:i}=this._processInputParams(e),a=this._def;if(n.parsedType!==V.array)return U(n,{code:M.invalid_type,expected:V.array,received:n.parsedType}),K;if(a.exactLength!==null){let o=n.data.length>a.exactLength.value,r=n.data.length<a.exactLength.value;(o||r)&&(U(n,{code:o?M.too_big:M.too_small,minimum:r?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(U(n,{code:M.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(U(n,{code:M.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((o,r)=>a.type._parseAsync(new Kt(n,o,n.path,r)))).then(o=>rt.mergeArray(i,o));let c=[...n.data].map((o,r)=>a.type._parseSync(new Kt(n,o,n.path,r)));return rt.mergeArray(i,c)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:B.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:B.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:B.toString(n)}})}nonempty(e){return this.min(1,e)}};Jr.create=(t,e)=>new Jr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:$.ZodArray,...Q(e)});function ci(t){if(t instanceof At){let e={};for(let n in t.shape){let i=t.shape[n];e[n]=Yt.create(ci(i))}return new At({...t._def,shape:()=>e})}else return t instanceof Jr?new Jr({...t._def,type:ci(t.element)}):t instanceof Yt?Yt.create(ci(t.unwrap())):t instanceof yr?yr.create(ci(t.unwrap())):t instanceof gr?gr.create(t.items.map(e=>ci(e))):t}var At=class t extends ee{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),n=ne.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==V.object){let u=this._getOrReturnCtx(e);return U(u,{code:M.invalid_type,expected:V.object,received:u.parsedType}),K}let{status:i,ctx:a}=this._processInputParams(e),{shape:c,keys:o}=this._getCached(),r=[];if(!(this._def.catchall instanceof sr&&this._def.unknownKeys==="strip"))for(let u in a.data)o.includes(u)||r.push(u);let s=[];for(let u of o){let p=c[u],S=a.data[u];s.push({key:{status:"valid",value:u},value:p._parse(new Kt(a,S,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof sr){let u=this._def.unknownKeys;if(u==="passthrough")for(let p of r)s.push({key:{status:"valid",value:p},value:{status:"valid",value:a.data[p]}});else if(u==="strict")r.length>0&&(U(a,{code:M.unrecognized_keys,keys:r}),i.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let p of r){let S=a.data[p];s.push({key:{status:"valid",value:p},value:u._parse(new Kt(a,S,a.path,p)),alwaysSet:p in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let p of s){let S=await p.key,A=await p.value;u.push({key:S,value:A,alwaysSet:p.alwaysSet})}return u}).then(u=>rt.mergeObjectSync(i,u)):rt.mergeObjectSync(i,s)}get shape(){return this._def.shape()}strict(e){return B.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,i)=>{let a=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:B.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let n={};for(let i of ne.objectKeys(e))e[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new t({...this._def,shape:()=>n})}omit(e){let n={};for(let i of ne.objectKeys(this.shape))e[i]||(n[i]=this.shape[i]);return new t({...this._def,shape:()=>n})}deepPartial(){return ci(this)}partial(e){let n={};for(let i of ne.objectKeys(this.shape)){let a=this.shape[i];e&&!e[i]?n[i]=a:n[i]=a.optional()}return new t({...this._def,shape:()=>n})}required(e){let n={};for(let i of ne.objectKeys(this.shape))if(e&&!e[i])n[i]=this.shape[i];else{let c=this.shape[i];for(;c instanceof Yt;)c=c._def.innerType;n[i]=c}return new t({...this._def,shape:()=>n})}keyof(){return Kx(ne.objectKeys(this.shape))}};At.create=(t,e)=>new At({shape:()=>t,unknownKeys:"strip",catchall:sr.create(),typeName:$.ZodObject,...Q(e)});At.strictCreate=(t,e)=>new At({shape:()=>t,unknownKeys:"strict",catchall:sr.create(),typeName:$.ZodObject,...Q(e)});At.lazycreate=(t,e)=>new At({shape:t,unknownKeys:"strip",catchall:sr.create(),typeName:$.ZodObject,...Q(e)});var so=class extends ee{_parse(e){let{ctx:n}=this._processInputParams(e),i=this._def.options;function a(c){for(let r of c)if(r.result.status==="valid")return r.result;for(let r of c)if(r.result.status==="dirty")return n.common.issues.push(...r.ctx.common.issues),r.result;let o=c.map(r=>new yt(r.ctx.common.issues));return U(n,{code:M.invalid_union,unionErrors:o}),K}if(n.common.async)return Promise.all(i.map(async c=>{let o={...n,common:{...n.common,issues:[]},parent:null};return{result:await c._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let c,o=[];for(let s of i){let u={...n,common:{...n.common,issues:[]},parent:null},p=s._parseSync({data:n.data,path:n.path,parent:u});if(p.status==="valid")return p;p.status==="dirty"&&!c&&(c={result:p,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(c)return n.common.issues.push(...c.ctx.common.issues),c.result;let r=o.map(s=>new yt(s));return U(n,{code:M.invalid_union,unionErrors:r}),K}}get options(){return this._def.options}};so.create=(t,e)=>new so({options:t,typeName:$.ZodUnion,...Q(e)});var Wr=t=>t instanceof uo?Wr(t.schema):t instanceof $t?Wr(t.innerType()):t instanceof lo?[t.value]:t instanceof po?t.options:t instanceof fo?ne.objectValues(t.enum):t instanceof _o?Wr(t._def.innerType):t instanceof io?[void 0]:t instanceof ao?[null]:t instanceof Yt?[void 0,...Wr(t.unwrap())]:t instanceof yr?[null,...Wr(t.unwrap())]:t instanceof cs||t instanceof Eo?Wr(t.unwrap()):t instanceof mo?Wr(t._def.innerType):[],tu=class t extends ee{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==V.object)return U(n,{code:M.invalid_type,expected:V.object,received:n.parsedType}),K;let i=this.discriminator,a=n.data[i],c=this.optionsMap.get(a);return c?n.common.async?c._parseAsync({data:n.data,path:n.path,parent:n}):c._parseSync({data:n.data,path:n.path,parent:n}):(U(n,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,i){let a=new Map;for(let c of n){let o=Wr(c.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let r of o){if(a.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);a.set(r,c)}}return new t({typeName:$.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:a,...Q(i)})}};function tE(t,e){let n=vr(t),i=vr(e);if(t===e)return{valid:!0,data:t};if(n===V.object&&i===V.object){let a=ne.objectKeys(e),c=ne.objectKeys(t).filter(r=>a.indexOf(r)!==-1),o={...t,...e};for(let r of c){let s=tE(t[r],e[r]);if(!s.valid)return{valid:!1};o[r]=s.data}return{valid:!0,data:o}}else if(n===V.array&&i===V.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let c=0;c<t.length;c++){let o=t[c],r=e[c],s=tE(o,r);if(!s.valid)return{valid:!1};a.push(s.data)}return{valid:!0,data:a}}else return n===V.date&&i===V.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var co=class extends ee{_parse(e){let{status:n,ctx:i}=this._processInputParams(e),a=(c,o)=>{if(Zc(c)||Zc(o))return K;let r=tE(c.value,o.value);return r.valid?((eu(c)||eu(o))&&n.dirty(),{status:n.value,value:r.data}):(U(i,{code:M.invalid_intersection_types}),K)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([c,o])=>a(c,o)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};co.create=(t,e,n)=>new co({left:t,right:e,typeName:$.ZodIntersection,...Q(n)});var gr=class t extends ee{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==V.array)return U(i,{code:M.invalid_type,expected:V.array,received:i.parsedType}),K;if(i.data.length<this._def.items.length)return U(i,{code:M.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),K;!this._def.rest&&i.data.length>this._def.items.length&&(U(i,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let c=[...i.data].map((o,r)=>{let s=this._def.items[r]||this._def.rest;return s?s._parse(new Kt(i,o,i.path,r)):null}).filter(o=>!!o);return i.common.async?Promise.all(c).then(o=>rt.mergeArray(n,o)):rt.mergeArray(n,c)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};gr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new gr({items:t,typeName:$.ZodTuple,rest:null,...Q(e)})};var ru=class t extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==V.object)return U(i,{code:M.invalid_type,expected:V.object,received:i.parsedType}),K;let a=[],c=this._def.keyType,o=this._def.valueType;for(let r in i.data)a.push({key:c._parse(new Kt(i,r,i.path,r)),value:o._parse(new Kt(i,i.data[r],i.path,r)),alwaysSet:r in i.data});return i.common.async?rt.mergeObjectAsync(n,a):rt.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(e,n,i){return n instanceof ee?new t({keyType:e,valueType:n,typeName:$.ZodRecord,...Q(i)}):new t({keyType:Sn.create(),valueType:e,typeName:$.ZodRecord,...Q(n)})}},pi=class extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==V.map)return U(i,{code:M.invalid_type,expected:V.map,received:i.parsedType}),K;let a=this._def.keyType,c=this._def.valueType,o=[...i.data.entries()].map(([r,s],u)=>({key:a._parse(new Kt(i,r,i.path,[u,"key"])),value:c._parse(new Kt(i,s,i.path,[u,"value"]))}));if(i.common.async){let r=new Map;return Promise.resolve().then(async()=>{for(let s of o){let u=await s.key,p=await s.value;if(u.status==="aborted"||p.status==="aborted")return K;(u.status==="dirty"||p.status==="dirty")&&n.dirty(),r.set(u.value,p.value)}return{status:n.value,value:r}})}else{let r=new Map;for(let s of o){let u=s.key,p=s.value;if(u.status==="aborted"||p.status==="aborted")return K;(u.status==="dirty"||p.status==="dirty")&&n.dirty(),r.set(u.value,p.value)}return{status:n.value,value:r}}}};pi.create=(t,e,n)=>new pi({valueType:e,keyType:t,typeName:$.ZodMap,...Q(n)});var di=class t extends ee{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.parsedType!==V.set)return U(i,{code:M.invalid_type,expected:V.set,received:i.parsedType}),K;let a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(U(i,{code:M.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(U(i,{code:M.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());let c=this._def.valueType;function o(s){let u=new Set;for(let p of s){if(p.status==="aborted")return K;p.status==="dirty"&&n.dirty(),u.add(p.value)}return{status:n.value,value:u}}let r=[...i.data.values()].map((s,u)=>c._parse(new Kt(i,s,i.path,u)));return i.common.async?Promise.all(r).then(s=>o(s)):o(r)}min(e,n){return new t({...this._def,minSize:{value:e,message:B.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:B.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};di.create=(t,e)=>new di({valueType:t,minSize:null,maxSize:null,typeName:$.ZodSet,...Q(e)});var nu=class t extends ee{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==V.function)return U(n,{code:M.invalid_type,expected:V.function,received:n.parsedType}),K;function i(r,s){return ss({data:r,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ai(),zr].filter(u=>!!u),issueData:{code:M.invalid_arguments,argumentsError:s}})}function a(r,s){return ss({data:r,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ai(),zr].filter(u=>!!u),issueData:{code:M.invalid_return_type,returnTypeError:s}})}let c={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof gn){let r=this;return at(async function(...s){let u=new yt([]),p=await r._def.args.parseAsync(s,c).catch(O=>{throw u.addIssue(i(s,O)),u}),S=await Reflect.apply(o,this,p);return await r._def.returns._def.type.parseAsync(S,c).catch(O=>{throw u.addIssue(a(S,O)),u})})}else{let r=this;return at(function(...s){let u=r._def.args.safeParse(s,c);if(!u.success)throw new yt([i(s,u.error)]);let p=Reflect.apply(o,this,u.data),S=r._def.returns.safeParse(p,c);if(!S.success)throw new yt([a(p,S.error)]);return S.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:gr.create(e).rest(Xr.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,i){return new t({args:e||gr.create([]).rest(Xr.create()),returns:n||Xr.create(),typeName:$.ZodFunction,...Q(i)})}},uo=class extends ee{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};uo.create=(t,e)=>new uo({getter:t,typeName:$.ZodLazy,...Q(e)});var lo=class extends ee{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return U(n,{received:n.data,code:M.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}};lo.create=(t,e)=>new lo({value:t,typeName:$.ZodLiteral,...Q(e)});function Kx(t,e){return new po({values:t,typeName:$.ZodEnum,...Q(e)})}var po=class t extends ee{_parse(e){if(typeof e.data!="string"){let n=this._getOrReturnCtx(e),i=this._def.values;return U(n,{expected:ne.joinValues(i),received:n.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let n=this._getOrReturnCtx(e),i=this._def.values;return U(n,{received:n.data,code:M.invalid_enum_value,options:i}),K}return at(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return t.create(e,{...this._def,...n})}exclude(e,n=this._def){return t.create(this.options.filter(i=>!e.includes(i)),{...this._def,...n})}};po.create=Kx;var fo=class extends ee{_parse(e){let n=ne.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==V.string&&i.parsedType!==V.number){let a=ne.objectValues(n);return U(i,{expected:ne.joinValues(a),received:i.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(ne.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=ne.objectValues(n);return U(i,{received:i.data,code:M.invalid_enum_value,options:a}),K}return at(e.data)}get enum(){return this._def.values}};fo.create=(t,e)=>new fo({values:t,typeName:$.ZodNativeEnum,...Q(e)});var gn=class extends ee{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==V.promise&&n.common.async===!1)return U(n,{code:M.invalid_type,expected:V.promise,received:n.parsedType}),K;let i=n.parsedType===V.promise?n.data:Promise.resolve(n.data);return at(i.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}};gn.create=(t,e)=>new gn({type:t,typeName:$.ZodPromise,...Q(e)});var $t=class extends ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:i}=this._processInputParams(e),a=this._def.effect||null,c={addIssue:o=>{U(i,o),o.fatal?n.abort():n.dirty()},get path(){return i.path}};if(c.addIssue=c.addIssue.bind(c),a.type==="preprocess"){let o=a.transform(i.data,c);if(i.common.async)return Promise.resolve(o).then(async r=>{if(n.value==="aborted")return K;let s=await this._def.schema._parseAsync({data:r,path:i.path,parent:i});return s.status==="aborted"?K:s.status==="dirty"?eo(s.value):n.value==="dirty"?eo(s.value):s});{if(n.value==="aborted")return K;let r=this._def.schema._parseSync({data:o,path:i.path,parent:i});return r.status==="aborted"?K:r.status==="dirty"?eo(r.value):n.value==="dirty"?eo(r.value):r}}if(a.type==="refinement"){let o=r=>{let s=a.refinement(r,c);if(i.common.async)return Promise.resolve(s);if(s instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return r};if(i.common.async===!1){let r=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?K:(r.status==="dirty"&&n.dirty(),o(r.value),{status:n.value,value:r.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(r=>r.status==="aborted"?K:(r.status==="dirty"&&n.dirty(),o(r.value).then(()=>({status:n.value,value:r.value}))))}if(a.type==="transform")if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Tn(o))return K;let r=a.transform(o.value,c);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:r}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>Tn(o)?Promise.resolve(a.transform(o.value,c)).then(r=>({status:n.value,value:r})):K);ne.assertNever(a)}};$t.create=(t,e,n)=>new $t({schema:t,typeName:$.ZodEffects,effect:e,...Q(n)});$t.createWithPreprocess=(t,e,n)=>new $t({schema:e,effect:{type:"preprocess",transform:t},typeName:$.ZodEffects,...Q(n)});var Yt=class extends ee{_parse(e){return this._getType(e)===V.undefined?at(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Yt.create=(t,e)=>new Yt({innerType:t,typeName:$.ZodOptional,...Q(e)});var yr=class extends ee{_parse(e){return this._getType(e)===V.null?at(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};yr.create=(t,e)=>new yr({innerType:t,typeName:$.ZodNullable,...Q(e)});var _o=class extends ee{_parse(e){let{ctx:n}=this._processInputParams(e),i=n.data;return n.parsedType===V.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};_o.create=(t,e)=>new _o({innerType:t,typeName:$.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Q(e)});var mo=class extends ee{_parse(e){let{ctx:n}=this._processInputParams(e),i={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return si(a)?a.then(c=>({status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new yt(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new yt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};mo.create=(t,e)=>new mo({innerType:t,typeName:$.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Q(e)});var fi=class extends ee{_parse(e){if(this._getType(e)!==V.nan){let i=this._getOrReturnCtx(e);return U(i,{code:M.invalid_type,expected:V.nan,received:i.parsedType}),K}return{status:"valid",value:e.data}}};fi.create=t=>new fi({typeName:$.ZodNaN,...Q(t)});var e5=Symbol("zod_brand"),cs=class extends ee{_parse(e){let{ctx:n}=this._processInputParams(e),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},us=class t extends ee{_parse(e){let{status:n,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let c=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?K:c.status==="dirty"?(n.dirty(),eo(c.value)):this._def.out._parseAsync({data:c.value,path:i.path,parent:i})})();{let a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?K:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(e,n){return new t({in:e,out:n,typeName:$.ZodPipeline})}},Eo=class extends ee{_parse(e){let n=this._def.innerType._parse(e),i=a=>(Tn(a)&&(a.value=Object.freeze(a.value)),a);return si(n)?n.then(a=>i(a)):i(n)}unwrap(){return this._def.innerType}};Eo.create=(t,e)=>new Eo({innerType:t,typeName:$.ZodReadonly,...Q(e)});function Hx(t,e){let n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function $x(t,e={},n){return t?vn.create().superRefine((i,a)=>{let c=t(i);if(c instanceof Promise)return c.then(o=>{if(!o){let r=Hx(e,i),s=r.fatal??n??!0;a.addIssue({code:"custom",...r,fatal:s})}});if(!c){let o=Hx(e,i),r=o.fatal??n??!0;a.addIssue({code:"custom",...o,fatal:r})}}):vn.create()}var t5={object:At.lazycreate},$;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})($||($={}));var r5=(t,e={message:`Input not instance of ${t.name}`})=>$x(n=>n instanceof t,e),zx=Sn.create,Wx=to.create,n5=fi.create,o5=ro.create,Xx=no.create,i5=oo.create,a5=ui.create,s5=io.create,c5=ao.create,u5=vn.create,l5=Xr.create,p5=sr.create,d5=li.create,f5=Jr.create,_5=At.create,m5=At.strictCreate,E5=so.create,h5=tu.create,T5=co.create,S5=gr.create,v5=ru.create,g5=pi.create,y5=di.create,A5=nu.create,x5=uo.create,b5=lo.create,O5=po.create,R5=fo.create,P5=gn.create,N5=$t.create,M5=Yt.create,I5=yr.create,L5=$t.createWithPreprocess,C5=us.create,w5=()=>zx().optional(),D5=()=>Wx().optional(),U5=()=>Xx().optional(),V5={string:(t=>Sn.create({...t,coerce:!0})),number:(t=>to.create({...t,coerce:!0})),boolean:(t=>no.create({...t,coerce:!0})),bigint:(t=>ro.create({...t,coerce:!0})),date:(t=>oo.create({...t,coerce:!0}))};var k5=K;var Jx=Ne.preprocess(t=>typeof t=="string"||t instanceof Date?new Date(t):null,Ne.date()),Qx=Ne.object({accessToken:Ne.string(),refreshToken:Ne.string(),expiresAt:Jx,scopes:Ne.array(Ne.string()),userId:Ne.string(),alias:Ne.string().optional()}),B5=Ne.object({accessToken:Ne.string(),expiresAt:Jx,scopes:Ne.array(Ne.string()),storeFqdn:Ne.string().optional()}),G5=Ne.object({identity:Qx,applications:Ne.object({}).catchall(B5)}),Zx=Ne.object({}).catchall(Ne.object({}).catchall(G5));function eb(t){return Qx.safeParse(t).success}function j5(t,e){let n=e.scopes;return n.includes("employee")?!1:t.every(i=>n.includes(i))}async function tb(t,e,n){if(!n||!j5(t,n.identity))return"needs_full_auth";let a=ls(n.identity);if(e.partnersApi){let c=St("partners"),o=n.applications[c];a=a||ls(o)}if(e.appManagementApi){let c=St("app-management"),o=n.applications[c];a=a||ls(o)}if(e.storefrontRendererApi){let c=St("storefront-renderer"),o=n.applications[c];a=a||ls(o)}if(e.adminApi){let c=St("admin"),o=`${e.adminApi.storeFqdn}-${c}`,r=n.applications[o];a=a||ls(r)}return G(`- Token validation -> It's expired: ${a}`),eb(n.identity)?a?"needs_refresh":"ok":"needs_full_auth"}function ls(t){return t?t.expiresAt<H5():!0}function H5(){return new Date(Date.now()+HA.expirationTimeMarginInMinutes*60*1e3)}l();l();l();import q5 from"https";var rE=class extends fe{constructor(e,n){let i=n===403?"Ensure you are using the correct account. You can switch with `shopify auth login`":void 0;super(e,i),this.statusCode=n}},_i=class extends rE{constructor(e,n,i){super(e,n),this.errors=i,this.stack=void 0}},F5=["token","authorization","subject_token","cookie","signature"];function yn(t){if(!Ix()&&!Jc())return"";let e={};return Object.keys(t).forEach(n=>{F5.find(i=>n.toLowerCase().includes(i))===void 0&&(e[n]=t[n])}),Object.keys(e).map(n=>` - ${n}: ${e[n]}`).join(`
|
|
611
|
+
`)}function nE(t){let n={"User-Agent":`Shopify CLI; v=${En}`,"Keep-Alive":"timeout=30","Sec-CH-UA-PLATFORM":process.platform,"Content-Type":"application/json"};if(t){let i=t.match(/^shp(at|ua|ca|tka)/)?t:`Bearer ${t}`;n.authorization=i,n["X-Shopify-Access-Token"]=i}return n}async function ou(){return new q5.Agent({rejectUnauthorized:!0,keepAlive:!0})}l();var Y5=["access_token","refresh_token","id_token","subject_token","actor_token","device_code","client_secret","code","token"];function mi(t){let e=new URL(t);for(let n of Y5)e.searchParams.has(n)&&e.searchParams.set(n,"****");return e.toString()}l();var K5=300,iu=1e4;function $5(t,e,n=iu/3){if(t===0)return 0;let i=2**(t-1);return Math.min(e*i,n)}async function*z5(t,e){let n=0;for(;;){let i=$5(n,e);if(!t(i))return{remainingMs:0,iterations:n};await Xc(i/1e3),yield i,n++}}async function*rb(t=iu,e=K5){if(t<=0)return{remainingMs:0,iterations:0};let n=Date.now(),i=z5(o=>Date.now()-n+o<=t,e),a=0;for await(let o of i)yield o,a++;let c=Date.now()-n;return{remainingMs:t-c,iterations:a}}l();l();l();l();l();import au from"crypto";function nb(t){return au.createHash("sha1").update(t).digest("hex")}function SVe(t){return au.createHash("md5").update(t).digest("hex")}function vVe(){return au.randomUUID()}function zt(t){return au.createHash("sha1").update(Buffer.from("6ba7b810-9dad-11d1-80b4-00c04fd430c8".replace(/-/g,""),"hex")).update(t).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/,"$1-$2-$3-$4-$5")}function ho(){return process.env}function To(){let t=ho();return t[hn.appAutomationToken]??t[hn.partnersToken]}function RVe(){let t=ho()[jA.backendPort];if(t&&!isNaN(Number(t)))return Number(t)}function ob(){let t=ho()[hn.identityToken],e=ho()[hn.refreshToken];if(!(!t||!e))return{accessToken:t,refreshToken:e,userId:zt(t)}}function PVe(t=ho()){return GA()||Gm(t[hn.json])}function ib(t=ho()){return Gm(t[hn.skipNetworkLevelRetry])}function oE(t=ho()){let e=t[hn.maxRequestTimeForNetworkCalls];return e&&!isNaN(Number(e))?Number(e):30*1e3}var AR=Se(tR(),1);l();import q7 from"node:http";import F7 from"node:https";import yi from"node:zlib";import vR,{PassThrough as gR,pipeline as Ai}from"node:stream";import{Buffer as vu}from"node:buffer";l();function C7(t){if(!/^data:/i.test(t))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let n=t.substring(5,e).split(";"),i="",a=!1,c=n[0]||"text/plain",o=c;for(let p=1;p<n.length;p++)n[p]==="base64"?a=!0:n[p]&&(o+=`;${n[p]}`,n[p].indexOf("charset=")===0&&(i=n[p].substring(8)));!n[0]&&!i.length&&(o+=";charset=US-ASCII",i="US-ASCII");let r=a?"base64":"ascii",s=unescape(t.substring(e+1)),u=Buffer.from(s,r);return u.type=c,u.typeFull=o,u.charset=i,u}var rR=C7;l();import xn,{PassThrough as aR}from"node:stream";import{types as sR,deprecate as bE,promisify as w7}from"node:util";import{Buffer as Wt}from"node:buffer";l();l();var Qr=class extends Error{constructor(e,n){super(e),Error.captureStackTrace(this,this.constructor),this.type=n}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}};var vt=class extends Qr{constructor(e,n,i){super(e,n),i&&(this.code=this.errno=i.code,this.erroredSysCall=i.syscall)}};l();var _u=Symbol.toStringTag,AE=t=>typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&typeof t.sort=="function"&&t[_u]==="URLSearchParams",ms=t=>t&&typeof t=="object"&&typeof t.arrayBuffer=="function"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.constructor=="function"&&/^(Blob|File)$/.test(t[_u]),nR=t=>typeof t=="object"&&(t[_u]==="AbortSignal"||t[_u]==="EventTarget"),oR=(t,e)=>{let n=new URL(e).hostname,i=new URL(t).hostname;return n===i||n.endsWith(`.${i}`)},iR=(t,e)=>{let n=new URL(e).protocol,i=new URL(t).protocol;return n===i};var D7=w7(xn.pipeline),bt=Symbol("Body internals"),Ar=class{constructor(e,{size:n=0}={}){let i=null;e===null?e=null:AE(e)?e=Wt.from(e.toString()):ms(e)||Wt.isBuffer(e)||(sR.isAnyArrayBuffer(e)?e=Wt.from(e):ArrayBuffer.isView(e)?e=Wt.from(e.buffer,e.byteOffset,e.byteLength):e instanceof xn||(e instanceof is?(e=ix(e),i=e.type.split("=")[1]):e=Wt.from(String(e))));let a=e;Wt.isBuffer(e)?a=xn.Readable.from(e):ms(e)&&(a=xn.Readable.from(e.stream())),this[bt]={body:e,stream:a,boundary:i,disturbed:!1,error:null},this.size=n,e instanceof xn&&e.on("error",c=>{let o=c instanceof Qr?c:new vt(`Invalid response body while trying to fetch ${this.url}: ${c.message}`,"system",c);this[bt].error=o})}get body(){return this[bt].stream}get bodyUsed(){return this[bt].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:n,byteLength:i}=await xE(this);return e.slice(n,n+i)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let i=new is,a=new URLSearchParams(await this.text());for(let[c,o]of a)i.append(c,o);return i}let{toFormData:n}=await import("./multipart-parser-5NSSTW27.js");return n(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[bt].body&&this[bt].body.type||"",n=await this.arrayBuffer();return new $m([n],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await xE(this);return new TextDecoder().decode(e)}buffer(){return xE(this)}};Ar.prototype.buffer=bE(Ar.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(Ar.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:bE(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function xE(t){if(t[bt].disturbed)throw new TypeError(`body used already for: ${t.url}`);if(t[bt].disturbed=!0,t[bt].error)throw t[bt].error;let{body:e}=t;if(e===null)return Wt.alloc(0);if(!(e instanceof xn))return Wt.alloc(0);let n=[],i=0;try{for await(let a of e){if(t.size>0&&i+a.length>t.size){let c=new vt(`content size at ${t.url} over limit: ${t.size}`,"max-size");throw e.destroy(c),c}i+=a.length,n.push(a)}}catch(a){throw a instanceof Qr?a:new vt(`Invalid response body while trying to fetch ${t.url}: ${a.message}`,"system",a)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return n.every(a=>typeof a=="string")?Wt.from(n.join("")):Wt.concat(n,i)}catch(a){throw new vt(`Could not create Buffer from response body for ${t.url}: ${a.message}`,"system",a)}else throw new vt(`Premature close of server response while trying to fetch ${t.url}`)}var vi=(t,e)=>{let n,i,{body:a}=t[bt];if(t.bodyUsed)throw new Error("cannot clone body after it is used");return a instanceof xn&&typeof a.getBoundary!="function"&&(n=new aR({highWaterMark:e}),i=new aR({highWaterMark:e}),a.pipe(n),a.pipe(i),t[bt].stream=n,a=i),a},U7=bE(t=>t.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),mu=(t,e)=>t===null?null:typeof t=="string"?"text/plain;charset=UTF-8":AE(t)?"application/x-www-form-urlencoded;charset=UTF-8":ms(t)?t.type||null:Wt.isBuffer(t)||sR.isAnyArrayBuffer(t)||ArrayBuffer.isView(t)?null:t instanceof is?`multipart/form-data; boundary=${e[bt].boundary}`:t&&typeof t.getBoundary=="function"?`multipart/form-data;boundary=${U7(t)}`:t instanceof xn?null:"text/plain;charset=UTF-8",cR=t=>{let{body:e}=t[bt];return e===null?0:ms(e)?e.size:Wt.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},uR=async(t,{body:e})=>{e===null?t.end():await D7(e,t)};l();l();import{types as lR}from"node:util";import hu from"node:http";var Eu=typeof hu.validateHeaderName=="function"?hu.validateHeaderName:t=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(t)){let e=new TypeError(`Header name must be a valid HTTP token [${t}]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),e}},OE=typeof hu.validateHeaderValue=="function"?hu.validateHeaderValue:(t,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let n=new TypeError(`Invalid character in header content ["${t}"]`);throw Object.defineProperty(n,"code",{value:"ERR_INVALID_CHAR"}),n}},Dt=class t extends URLSearchParams{constructor(e){let n=[];if(e instanceof t){let i=e.raw();for(let[a,c]of Object.entries(i))n.push(...c.map(o=>[a,o]))}else if(e!=null)if(typeof e=="object"&&!lR.isBoxedPrimitive(e)){let i=e[Symbol.iterator];if(i==null)n.push(...Object.entries(e));else{if(typeof i!="function")throw new TypeError("Header pairs must be iterable");n=[...e].map(a=>{if(typeof a!="object"||lR.isBoxedPrimitive(a))throw new TypeError("Each header pair must be an iterable object");return[...a]}).map(a=>{if(a.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...a]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return n=n.length>0?n.map(([i,a])=>(Eu(i),OE(i,String(a)),[String(i).toLowerCase(),String(a)])):void 0,super(n),new Proxy(this,{get(i,a,c){switch(a){case"append":case"set":return(o,r)=>(Eu(o),OE(o,String(r)),URLSearchParams.prototype[a].call(i,String(o).toLowerCase(),String(r)));case"delete":case"has":case"getAll":return o=>(Eu(o),URLSearchParams.prototype[a].call(i,String(o).toLowerCase()));case"keys":return()=>(i.sort(),new Set(URLSearchParams.prototype.keys.call(i)).keys());default:return Reflect.get(i,a,c)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let n=this.getAll(e);if(n.length===0)return null;let i=n.join(", ");return/^content-encoding$/i.test(e)&&(i=i.toLowerCase()),i}forEach(e,n=void 0){for(let i of this.keys())Reflect.apply(e,n,[this.get(i),i,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,n)=>(e[n]=this.getAll(n),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,n)=>{let i=this.getAll(n);return n==="host"?e[n]=i[0]:e[n]=i.length>1?i:i[0],e},{})}};Object.defineProperties(Dt.prototype,["get","entries","forEach","values"].reduce((t,e)=>(t[e]={enumerable:!0},t),{}));function pR(t=[]){return new Dt(t.reduce((e,n,i,a)=>(i%2===0&&e.push(a.slice(i,i+2)),e),[]).filter(([e,n])=>{try{return Eu(e),OE(e,String(n)),!0}catch{return!1}}))}l();var V7=new Set([301,302,303,307,308]),Tu=t=>V7.has(t);var ur=Symbol("Response internals"),Ut=class t extends Ar{constructor(e=null,n={}){super(e,n);let i=n.status!=null?n.status:200,a=new Dt(n.headers);if(e!==null&&!a.has("Content-Type")){let c=mu(e,this);c&&a.append("Content-Type",c)}this[ur]={type:"default",url:n.url,status:i,statusText:n.statusText||"",headers:a,counter:n.counter,highWaterMark:n.highWaterMark}}get type(){return this[ur].type}get url(){return this[ur].url||""}get status(){return this[ur].status}get ok(){return this[ur].status>=200&&this[ur].status<300}get redirected(){return this[ur].counter>0}get statusText(){return this[ur].statusText}get headers(){return this[ur].headers}get highWaterMark(){return this[ur].highWaterMark}clone(){return new t(vi(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,n=302){if(!Tu(n))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new t(null,{headers:{location:new URL(e).toString()},status:n})}static error(){let e=new t(null,{status:0,statusText:""});return e[ur].type="error",e}static json(e=void 0,n={}){let i=JSON.stringify(e);if(i===void 0)throw new TypeError("data is not JSON serializable");let a=new Dt(n&&n.headers);return a.has("content-type")||a.set("content-type","application/json"),new t(i,{...n,headers:a})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(Ut.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});l();import{format as G7}from"node:url";import{deprecate as j7}from"node:util";l();var dR=t=>{if(t.search)return t.search;let e=t.href.length-1,n=t.hash||(t.href[e]==="#"?"#":"");return t.href[e-n.length]==="?"?"?":""};l();import{isIP as k7}from"node:net";function fR(t,e=!1){return t==null||(t=new URL(t),/^(about|blob|data):$/.test(t.protocol))?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}var _R=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),mR="strict-origin-when-cross-origin";function ER(t){if(!_R.has(t))throw new TypeError(`Invalid referrerPolicy: ${t}`);return t}function B7(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),n=k7(e);return n===4&&/^127\./.test(e)||n===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:t.host==="localhost"||t.host.endsWith(".localhost")?!1:t.protocol==="file:"}function gi(t){return/^about:(blank|srcdoc)$/.test(t)||t.protocol==="data:"||/^(blob|filesystem):$/.test(t.protocol)?!0:B7(t)}function hR(t,{referrerURLCallback:e,referrerOriginCallback:n}={}){if(t.referrer==="no-referrer"||t.referrerPolicy==="")return null;let i=t.referrerPolicy;if(t.referrer==="about:client")return"no-referrer";let a=t.referrer,c=fR(a),o=fR(a,!0);c.toString().length>4096&&(c=o),e&&(c=e(c)),n&&(o=n(o));let r=new URL(t.url);switch(i){case"no-referrer":return"no-referrer";case"origin":return o;case"unsafe-url":return c;case"strict-origin":return gi(c)&&!gi(r)?"no-referrer":o.toString();case"strict-origin-when-cross-origin":return c.origin===r.origin?c:gi(c)&&!gi(r)?"no-referrer":o;case"same-origin":return c.origin===r.origin?c:"no-referrer";case"origin-when-cross-origin":return c.origin===r.origin?c:o;case"no-referrer-when-downgrade":return gi(c)&&!gi(r)?"no-referrer":c;default:throw new TypeError(`Invalid referrerPolicy: ${i}`)}}function TR(t){let e=(t.get("referrer-policy")||"").split(/[,\s]+/),n="";for(let i of e)i&&_R.has(i)&&(n=i);return n}var Ye=Symbol("Request internals"),Es=t=>typeof t=="object"&&typeof t[Ye]=="object",H7=j7(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),bn=class t extends Ar{constructor(e,n={}){let i;if(Es(e)?i=new URL(e.url):(i=new URL(e),e={}),i.username!==""||i.password!=="")throw new TypeError(`${i} is an url with embedded credentials.`);let a=n.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(a)&&(a=a.toUpperCase()),!Es(n)&&"data"in n&&H7(),(n.body!=null||Es(e)&&e.body!==null)&&(a==="GET"||a==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let c=n.body?n.body:Es(e)&&e.body!==null?vi(e):null;super(c,{size:n.size||e.size||0});let o=new Dt(n.headers||e.headers||{});if(c!==null&&!o.has("Content-Type")){let u=mu(c,this);u&&o.set("Content-Type",u)}let r=Es(e)?e.signal:null;if("signal"in n&&(r=n.signal),r!=null&&!nR(r))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let s=n.referrer==null?e.referrer:n.referrer;if(s==="")s="no-referrer";else if(s){let u=new URL(s);s=/^about:(\/\/)?client$/.test(u)?"client":u}else s=void 0;this[Ye]={method:a,redirect:n.redirect||e.redirect||"follow",headers:o,parsedURL:i,signal:r,referrer:s},this.follow=n.follow===void 0?e.follow===void 0?20:e.follow:n.follow,this.compress=n.compress===void 0?e.compress===void 0?!0:e.compress:n.compress,this.counter=n.counter||e.counter||0,this.agent=n.agent||e.agent,this.highWaterMark=n.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=n.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=n.referrerPolicy||e.referrerPolicy||""}get method(){return this[Ye].method}get url(){return G7(this[Ye].parsedURL)}get headers(){return this[Ye].headers}get redirect(){return this[Ye].redirect}get signal(){return this[Ye].signal}get referrer(){if(this[Ye].referrer==="no-referrer")return"";if(this[Ye].referrer==="client")return"about:client";if(this[Ye].referrer)return this[Ye].referrer.toString()}get referrerPolicy(){return this[Ye].referrerPolicy}set referrerPolicy(e){this[Ye].referrerPolicy=ER(e)}clone(){return new t(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(bn.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var SR=t=>{let{parsedURL:e}=t[Ye],n=new Dt(t[Ye].headers);n.has("Accept")||n.set("Accept","*/*");let i=null;if(t.body===null&&/^(post|put)$/i.test(t.method)&&(i="0"),t.body!==null){let r=cR(t);typeof r=="number"&&!Number.isNaN(r)&&(i=String(r))}i&&n.set("Content-Length",i),t.referrerPolicy===""&&(t.referrerPolicy=mR),t.referrer&&t.referrer!=="no-referrer"?t[Ye].referrer=hR(t):t[Ye].referrer="no-referrer",t[Ye].referrer instanceof URL&&n.set("Referer",t.referrer),n.has("User-Agent")||n.set("User-Agent","node-fetch"),t.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip, deflate, br");let{agent:a}=t;typeof a=="function"&&(a=a(e));let c=dR(e),o={path:e.pathname+c,method:t.method,headers:n[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:t.insecureHTTPParser,agent:a};return{parsedURL:e,options:o}};l();var Su=class extends Qr{constructor(e,n="aborted"){super(e,n)}};var Y7=new Set(["data:","http:","https:"]);async function gu(t,e){return new Promise((n,i)=>{let a=new bn(t,e),{parsedURL:c,options:o}=SR(a);if(!Y7.has(c.protocol))throw new TypeError(`node-fetch cannot load ${t}. URL scheme "${c.protocol.replace(/:$/,"")}" is not supported.`);if(c.protocol==="data:"){let I=rR(a.url),F=new Ut(I,{headers:{"Content-Type":I.typeFull}});n(F);return}let r=(c.protocol==="https:"?F7:q7).request,{signal:s}=a,u=null,p=()=>{let I=new Su("The operation was aborted.");i(I),a.body&&a.body instanceof vR.Readable&&a.body.destroy(I),!(!u||!u.body)&&u.body.emit("error",I)};if(s&&s.aborted){p();return}let S=()=>{p(),O()},A=r(c.toString(),o);s&&s.addEventListener("abort",S);let O=()=>{A.abort(),s&&s.removeEventListener("abort",S)};A.on("error",I=>{i(new vt(`request to ${a.url} failed, reason: ${I.message}`,"system",I)),O()}),K7(A,I=>{u&&u.body&&u.body.destroy(I)}),process.version<"v14"&&A.on("socket",I=>{let F;I.prependListener("end",()=>{F=I._eventsCount}),I.prependListener("close",H=>{if(u&&F<I._eventsCount&&!H){let z=new Error("Premature close");z.code="ERR_STREAM_PREMATURE_CLOSE",u.body.emit("error",z)}})}),A.on("response",I=>{A.setTimeout(0);let F=pR(I.rawHeaders);if(Tu(I.statusCode)){let se=F.get("Location"),ve=null;try{ve=se===null?null:new URL(se,a.url)}catch{if(a.redirect!=="manual"){i(new vt(`uri requested responds with an invalid redirect URL: ${se}`,"invalid-redirect")),O();return}}switch(a.redirect){case"error":i(new vt(`uri requested responds with a redirect, redirect mode is set to error: ${a.url}`,"no-redirect")),O();return;case"manual":break;case"follow":{if(ve===null)break;if(a.counter>=a.follow){i(new vt(`maximum redirect reached at: ${a.url}`,"max-redirect")),O();return}let Pe={headers:new Dt(a.headers),follow:a.follow,counter:a.counter+1,agent:a.agent,compress:a.compress,method:a.method,body:vi(a),signal:a.signal,size:a.size,referrer:a.referrer,referrerPolicy:a.referrerPolicy};if(!oR(a.url,ve)||!iR(a.url,ve))for(let rr of["authorization","www-authenticate","cookie","cookie2"])Pe.headers.delete(rr);if(I.statusCode!==303&&a.body&&e.body instanceof vR.Readable){i(new vt("Cannot follow redirect with body being a readable stream","unsupported-redirect")),O();return}(I.statusCode===303||(I.statusCode===301||I.statusCode===302)&&a.method==="POST")&&(Pe.method="GET",Pe.body=void 0,Pe.headers.delete("content-length"));let Yr=TR(F);Yr&&(Pe.referrerPolicy=Yr),n(gu(new bn(ve,Pe))),O();return}default:return i(new TypeError(`Redirect option '${a.redirect}' is not a valid value of RequestRedirect`))}}s&&I.once("end",()=>{s.removeEventListener("abort",S)});let H=Ai(I,new gR,se=>{se&&i(se)});process.version<"v12.10"&&I.on("aborted",S);let z={url:a.url,status:I.statusCode,statusText:I.statusMessage,headers:F,size:a.size,counter:a.counter,highWaterMark:a.highWaterMark},W=F.get("Content-Encoding");if(!a.compress||a.method==="HEAD"||W===null||I.statusCode===204||I.statusCode===304){u=new Ut(H,z),n(u);return}let de={flush:yi.Z_SYNC_FLUSH,finishFlush:yi.Z_SYNC_FLUSH};if(W==="gzip"||W==="x-gzip"){H=Ai(H,yi.createGunzip(de),se=>{se&&i(se)}),u=new Ut(H,z),n(u);return}if(W==="deflate"||W==="x-deflate"){let se=Ai(I,new gR,ve=>{ve&&i(ve)});se.once("data",ve=>{(ve[0]&15)===8?H=Ai(H,yi.createInflate(),Pe=>{Pe&&i(Pe)}):H=Ai(H,yi.createInflateRaw(),Pe=>{Pe&&i(Pe)}),u=new Ut(H,z),n(u)}),se.once("end",()=>{u||(u=new Ut(H,z),n(u))});return}if(W==="br"){H=Ai(H,yi.createBrotliDecompress(),se=>{se&&i(se)}),u=new Ut(H,z),n(u);return}u=new Ut(H,z),n(u)}),uR(A,a).catch(i)})}function K7(t,e){let n=vu.from(`0\r
|
|
612
|
+
\r
|
|
613
|
+
`),i=!1,a=!1,c;t.on("response",o=>{let{headers:r}=o;i=r["transfer-encoding"]==="chunked"&&!r["content-length"]}),t.on("socket",o=>{let r=()=>{if(i&&!a){let u=new Error("Premature close");u.code="ERR_STREAM_PREMATURE_CLOSE",e(u)}},s=u=>{a=vu.compare(u.slice(-5),n)===0,!a&&c&&(a=vu.compare(c.slice(-3),n.slice(0,3))===0&&vu.compare(u.slice(-2),n.slice(3))===0),c=u};o.prependListener("close",r),o.on("data",s),t.on("close",()=>{o.removeListener("close",r),o.removeListener("data",s)})})}function XGe(){return new AR.default}function xi(t="default",e=process.env){let n=!ib(e);switch(t){case"default":return{useNetworkLevelRetry:n,maxRetryTimeMs:iu,useAbortSignal:!0,timeoutMs:oE(e)};case"non-blocking":return{useNetworkLevelRetry:!1,useAbortSignal:!0,timeoutMs:oE(e)};case"slow-request":return{useNetworkLevelRetry:!1,useAbortSignal:!1}}return{...t,useNetworkLevelRetry:n&&t.useNetworkLevelRetry}}function RE(t){let e;return t.useAbortSignal===!0?e=AbortSignal.timeout(t.timeoutMs):t.useAbortSignal&&typeof t.useAbortSignal=="function"?e=t.useAbortSignal():t.useAbortSignal&&(e=t.useAbortSignal),e}async function xR({url:t,behaviour:e,init:n,logRequest:i,useHttpsAgent:a}){i&&G(J`Sending ${n?.method??"GET"} request to URL ${mi(t.toString())}
|
|
614
|
+
With request headers:
|
|
615
|
+
${yn(n?.headers??{})}
|
|
616
|
+
`);let c;a&&(c=await ou());let o=async()=>{let r=RE(e);return n?.signal&&(r=n.signal),gu(t,{...n,agent:c,signal:r})};return Wc("cmd_all_timing_network_ms")(async()=>yR({url:t.toString(),request:o,...e}))}async function bR(t,e,n){let i={url:t,init:e,logRequest:!1,useHttpsAgent:!1,behaviour:xi(n||"non-blocking")};return xR(i)}async function bi(t,e,n){let i={url:t,init:e,logRequest:!0,useHttpsAgent:!0,behaviour:n?xi(n):xi()};return xR(i)}var $7="https://monorail-edge.shopifysvc.com/v1/produce",RR="app_cli3_command/1.28",OR=new Set;async function PR(t,e,n){let i=e.command;if(i&&typeof i=="string"){if(OR.has(i))return{type:"ok"};OR.add(i)}try{let a=new Date().getTime(),c={...e,...n},o=JSON.stringify({schema_id:t,payload:c}),r=W7(a),s=await bR($7,{method:"POST",body:o,headers:r},"non-blocking");return s.status===200?(G(J`Analytics event sent: ${ue.json(z7(c))}`),{type:"ok"}):(G(`Failed to report usage analytics: ${s.statusText}`),{type:"error",message:s.statusText})}catch(a){let c="Failed to report usage analytics";return a instanceof Error&&(c=c.concat(`: ${a.message}`)),G(c),{type:"error",message:c}}}function z7(t){let e={...t};return"api_key"in e&&(e.api_key="****"),e}var W7=t=>({"Content-Type":"application/json; charset=utf-8","X-Monorail-Edge-Event-Created-At-Ms":t.toString(),"X-Monorail-Edge-Event-Sent-At-Ms":t.toString()});l();async function Oi(t,e,n,i){let a=await t.runHook(e,n,i);return Object.fromEntries(a.successes.map(({result:c,plugin:o})=>[o.name,c]))}async function ije(t){let e=await Oi(t,"tunnel_provider",{}),n=QA(Object.values(e).map(i=>i?.name));return ZA(n)?{plugins:n,error:"multiple-plugins-for-provider"}:{plugins:n}}l();l();l();var Ee;(function(t){t.Liquid="LIQUID",t.ThemeCheck="THEME_CHECK",t.Network="NETWORK",t.FileSystem="FILE_SYSTEM",t.Authentication="AUTHENTICATION",t.Validation="VALIDATION",t.Permission="PERMISSION",t.RateLimit="RATE_LIMIT",t.Json="JSON",t.Unknown="UNKNOWN"})(Ee||(Ee={}));var X7={[Ee.Liquid]:["liquid"],[Ee.Json]:["json","parse response"],[Ee.ThemeCheck]:["theme check"],[Ee.Authentication]:["unauthorized","forbidden","auth","token","credential"],[Ee.Network]:["eai_again","econn","enetunreach","enotfound","epipe","etimedout","fetch","network","request","socket","the operation was aborted","timed out","timeout"],[Ee.FileSystem]:["enoent","eacces","file","directory","path"],[Ee.Permission]:["permission","denied","access","insufficient"],[Ee.RateLimit]:["rate limit","too many requests","throttle"],[Ee.Validation]:["validation","invalid","required"]};function yu(t){if(!(t instanceof Error))return Ee.Unknown;let e=t.message.toLowerCase();for(let[n,i]of Object.entries(X7))if(i.some(c=>e.includes(c)))return n;return Ee.Unknown}function Au(t,e){let n=t instanceof Error?t.message:String(t);return(J7[e]||xr)(n)}var J7={[Ee.Network]:Q7,[Ee.Authentication]:xr,[Ee.FileSystem]:xr,[Ee.RateLimit]:xr,[Ee.Json]:xr,[Ee.Validation]:xr,[Ee.Permission]:xr,[Ee.Liquid]:xr,[Ee.ThemeCheck]:xr,[Ee.Unknown]:xr};function Q7(t){let e=t.match(/\b([1-5]\d{2})\b/),n=t.match(/\b(E[A-Z]+)\b/),i=t.match(/(?:code|error)[:\s]*(\d{3})/i),a=t.toLowerCase().substring(0,50);return e?.[1]?a=`http-${e[1]}-${a.replace(/\b\d{3}\b/g,"").trim()}`:i?.[1]?a=`http-${i[1]}-${a.replace(/(?:code|error)[:\s]*\d{3}/gi,"").trim()}`:n?.[1]?a=`http-000-${n[1].toLowerCase()}-${a.replace(/\b[eE][A-Z]+\b/g,"").trim()}`:a=`http-000-${a}`,a.replace(/[^a-zA-Z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").substring(0,50)}function xr(t){return t.toLowerCase().substring(0,50).replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}function Z7(t){let e={};if(t instanceof Error&&(e.errorClass=t.constructor.name),t instanceof _i){t.statusCode!==void 0&&(e.httpStatus=t.statusCode);let n=PE(t.errors);return n!==void 0&&(e.code=n),e}if(t instanceof $r){let n=t.response?.status;n!==void 0&&(e.httpStatus=n);let i=PE(t.response?.errors);i!==void 0&&(e.code=i)}return e}function NR(t,e){let n=iQ(t),i=Z7(t),a=rQ(n),c={httpStatus:i.httpStatus??a.httpStatus,code:i.code??a.code,errorClass:i.errorClass??a.errorClass},o=eQ(c);if(o)return{hash:`${e}:${o}:${tQ(c)}`,category:o,signals:c};let r=new Error(oQ(n)),s=yu(r);if(s===Ee.Unknown)return{hash:void 0,category:void 0,signals:c};let u=s.toLowerCase();return{hash:`${e}:${u}:${Au(r,s)}`,category:u,signals:c}}function eQ(t){let{httpStatus:e,code:n}=t;if(Fm(n)||e===429)return"rate_limit";if(e===401)return"authentication";if(e===403||Ym(n))return"permission";if(e!==void 0&&e>=500)return"server"}function tQ(t){let e=[];return t.httpStatus!==void 0&&e.push(`http-${t.httpStatus}`),t.code&&e.push(t.code),e.length===0&&t.errorClass&&e.push(t.errorClass),ex(e.join("-")).slice(0,50)}function rQ(t){let e={},n=t.match(/HTTP status (\d{3})/i)??t.match(/\(Code: (\d{3})\)/i);n?.[1]&&(e.httpStatus=Number(n[1]));let i=nQ(t);e.httpStatus===void 0&&i?.response?.status!==void 0&&(e.httpStatus=i.response.status);let a=PE(i?.response?.errors);return a!==void 0&&(e.code=a),e}function nQ(t){let e=t.indexOf("{");if(e!==-1)try{return JSON.parse(t.slice(e))}catch{return}}function PE(t){let e=tx(t);return e.find(Fm)??e.find(Ym)??e[0]}function oQ(t){return t.split(": {")[0]??t}function iQ(t){return t instanceof Error?t.message:typeof t=="string"?t:""}var tP=Se(xJ(),1),rP=Se(PJ(),1),Pi=Se(ZR(),1);import{realpath as yQ}from"fs/promises";var AQ=new Set(["app","theme","hydrogen","store","organization"]);function xQ(t){if(!t)return"cli";let e=t.trim().split(/\s+/)[0]??"cli";return AQ.has(e)?e:"cli"}async function zje(t,e){if(t instanceof yx){t.message&&t.message!==""&&Zn(`\u2728 ${t.message}`);return}if(t instanceof Ax)return;let n=await bx(t);await xx(n),await bQ(n,e)}var bQ=async(t,e)=>{let n="expected_error";Ox(t)&&(n="unexpected_error"),e!==void 0&&await eP({config:e,errorMessage:t instanceof Error?t.message:void 0,exitMode:n}),await VE(t,n)};async function VE(t,e){try{if(ax()||tP.settings.debug)return G("Skipping Bugsnag report"),{reported:!1,error:t,unhandled:void 0};if(e==="expected_error")return G("Skipping Bugsnag report for expected error"),{reported:!1,error:t,unhandled:void 0};let n=e==="unexpected_error",i,a,c=!1;t instanceof Error?(c=!0,i=new Error(t.message),a=t.stack):typeof t=="string"&&t.trim().length!==0?(c=!0,i=new Error(t),a=i.stack):(c=!1,i=new Error("Unknown error"));let o=new rP.default(a??"").clean().items.map(s=>{let u=Rx(s.file);return` at ${s.callee} (${u}:${s.line}:${s.column})`}).join(`
|
|
617
|
+
`);i.stack=`Error: ${i.message}
|
|
618
|
+
${o}`;let r=!1;if(await Kc({key:"send-error-to-bugsnag",...Fc,task:async()=>{r=!0}}),r||(G("Skipping Bugsnag report due to rate limiting"),c=!1),c){nP();let s=await Ru();s==="unknown"&&(s=void 0),await new Promise((u,p)=>{G(`Reporting ${n?"unhandled":"handled"} error to Bugsnag: ${i.message}`);let S=O=>{O.severity="error",O.unhandled=n,O.setUser(s);let{commandStartOptions:I}=as(),{startCommand:F}=I??{},H=xQ(F);F&&O.addMetadata("custom",{slice_name:H});let{hash:z,category:W,signals:de}=NR(t,H);z&&(O.groupingHash=z),O.addMetadata("error_grouping",{slice_name:H,category:W,http_status:de.httpStatus,error_code:de.code,error_class:de.errorClass})},A=O=>{O?p(O instanceof Error?O:new Error(String(O))):u(i)};Pi.default.notify(i,S,A)})}return{error:i,reported:c,unhandled:n}}catch(n){return G(`Error reporting to Bugsnag: ${n}`),{error:t,reported:!1,unhandled:void 0}}}function OQ({currentFilePath:t,projectRoot:e,pluginLocations:n}){let i=BA(t)?t:jm(e,t),a=n.find(({pluginPath:c})=>i.startsWith(c));return a!==void 0?jm(a.name,kA(a.pluginPath,i)):t.replace(/.*node_modules\//,"")}async function Wje(t){let e=Pi.default?._client?._config?.projectRoot??qc(),n=Hm(e),i=await Promise.all([...t.plugins].map(async([a,c])=>{let o=await yQ(c.root);return{name:c.name,pluginPath:Hm(o)}}));nP(),Pi.default.addOnError(async a=>{a.errors.forEach(c=>{c.stacktrace.forEach(o=>{o.file=OQ({currentFilePath:o.file,projectRoot:n,pluginLocations:i})})});try{await RQ(a,t)}catch(c){G(`There was an error adding metadata to the Bugsnag report; Ignoring and carrying on ${c}`)}})}async function RQ(t,e){let n=$c(),{commandStartOptions:i}=as(),{startCommand:a}=i??{},{"@shopify/app":c,...o}=await Oi(e,"public_command_metadata",{}),r=await Pu(e),s={command:a,...c,...n,...r,pluginData:o},u={},p={},S={},A={},O=["api_key","business_platform_id","partner_id","project_type"],I=["command"],F=["cli_version","node_version","uname"];Object.entries(s).forEach(([z,W])=>{z.startsWith("app_")||O.includes(z)?u[z]=W:z.startsWith("cmd_")||I.includes(z)?p[z]=W:z.startsWith("env_")||F?S[z]=W:A[z]=W}),Object.entries({"Shopify App":u,Command:p,Environment:S,Misc:A}).forEach(([z,W])=>{t.addMetadata(z,W)})}function nP(){Pi.default.isStarted()||Pi.default.start({appType:"node",apiKey:qA,logger:null,appVersion:En,autoTrackSessions:!1,autoDetectErrors:!1,enabledReleaseStages:["production"],endpoints:{notify:"https://error-analytics-production.shopifysvc.com",sessions:"https://error-analytics-sessions-production.shopifysvc.com"},projectRoot:null})}l();l();var vo=class extends Array{push(...e){let n=super.push(...e);return this.enforceLimit(),n}clear(){this.length=0}toArray(){return[...this]}enforceLimit(){for(;this.length>1e3;)this.shift()}},Nu=class extends Map{constructor(){super(...arguments),this.insertionOrder=[]}set(e,n){return this.has(e)||this.insertionOrder.push(e),super.set(e,n),this.enforceLimit(),this}delete(e){let n=this.insertionOrder.indexOf(e);return n>-1&&this.insertionOrder.splice(n,1),super.delete(e)}clear(){this.insertionOrder=[],super.clear()}toObject(){return Object.fromEntries(this)}enforceLimit(){for(;this.size>1e3&&this.insertionOrder.length>0;){let e=this.insertionOrder.shift();e!==void 0&&super.delete(e)}}};var Vt={timings:new vo,activeTimings:new Nu,errors:new vo,retries:new vo,events:new vo};function iP(t){let e=Date.now();if(!Vt.activeTimings.has(t)){Vt.activeTimings.set(t,e),Ni(`timing:start:${t}`);return}let n=Vt.activeTimings.get(t);if(n===void 0)return;let i=e-n;Vt.timings.push({event:t,duration:i}),Vt.activeTimings.delete(t),Ni(`timing:end:${t}`)}function aP(t){let e=yu(t),n={category:e,message:(t instanceof Error?t.message:String(t)).substring(0,200),timestamp:Date.now()};if(n.category===Ee.Unknown&&!n.message)return;Vt.errors.push(n);let i=e.toLowerCase(),a=Au(t,e);Ni(`error:${i}:${a}`)}function sP(t,e){let i=Vt.retries.filter(a=>a.url===t&&a.operation===e).length+1;Vt.retries.push({url:t,operation:e,attempts:i,timestamp:Date.now()}),Ni(`retry:${e}:attempt:${i}`)}function Ni(t){Vt.events.push({name:t,timestamp:Date.now()})}function cP(){return{timings:Vt.timings.toArray(),errors:Vt.errors.toArray(),retries:Vt.retries.toArray(),events:Vt.events.toArray()}}l();l();var br;(function(t){t.Histogram="Histogram",t.Counter="Counter",t.UpDownCounter="UpDownCounter"})(br||(br={}));l();l();l();l();function uP(t,e,{leading:n=!0,trailing:i=!0}={}){let a,c,o,r=null,s=0;function u(){s=n===!1?0:Date.now(),r=null,a&&(c=t.apply(o,a),c&&typeof c.catch=="function"&&c.catch(()=>{})),o=null,a=null}return function(...p){let S=Date.now();!s&&n===!1&&(s=S);let A=e-(S-s);return o=this,a=p,A<=0||A>e?(r&&(clearTimeout(r),r=null),s=S,a&&(c=t.apply(o,a)),o=null,a=null):!r&&i!==!1&&(r=setTimeout(u,A)),c}}var DF=Se($p(),1),UF=Se(wF(),1);L();var Qs=class extends DF.MetricReader{constructor({exporter:e,throttleLimit:n}){super({aggregationSelector:e.selectAggregation?.bind(e),aggregationTemporalitySelector:e.selectAggregationTemporality?.bind(e)}),this._exporter=e,this.onForceFlush=uP(this.onForceFlush,n)}async onForceFlush(){let{resourceMetrics:e,errors:n}=await this.collect({});return n.length>0&&_e.error("InstantaneousMetricReader: metrics collection errors",...n),new Promise(i=>{this._exporter.export(e,a=>{a.code!==UF.ExportResultCode.SUCCESS&&_e.error("InstantaneousMetricReader: metrics export failed",a.error),i()})})}async onShutdown(){await this._exporter.shutdown()}};var Hz=Se(jz(),1),qz=Se($T(),1),za=Se($p(),1),Z_=class extends za.MeterProvider{constructor({serviceName:e,env:n,throttleLimit:i,useXhr:a,otelEndpoint:c}){super({resource:new qz.Resource({"service.name":e})});let o={url:c,temporalityPreference:za.AggregationTemporality.DELTA};a&&(o.headers={});let r=new Hz.OTLPMetricExporter(o);this.addMetricReader(new Qs({exporter:r,throttleLimit:i})),n==="dev"&&this.addMetricReader(new Qs({exporter:new za.ConsoleMetricExporter,throttleLimit:i}))}};l();l();L();var Uwe=new RegExp("[^a-zA-Z_][^a-zA-Z0-9_]*");function Fz(t){return Uwe.test(t)?(_e.warn(`Metric name ${t} contains invalid characters and will be dropped.
|
|
619
|
+
Service Names and metric names must conform to the following regex %c[a-zA-Z_][a-zA-Z0-9_]*`,"color:red"),!1):!0}var tm=Se($p(),1),Vwe="opentelemetry-js-shopify-web",em=class{constructor({serviceName:e,prefixMetric:n=!1,metrics:i={},onRecord:a,meterProvider:c}){if(this.metrics=new Map,this.recordListeners=new Set,!e)throw new Error("Service name is required.");if(this.serviceName=e,this.prefixMetric=n,a&&this.addOnRecord(a),!c)throw new Error("MeterProvider is required.");this.meterProvider=c,this.register(i)}getMeterProvider(){return this.meterProvider}addView(e){this.meterProvider._sharedState?.viewRegistry?.addView?.(new tm.View(e))}record(e,n,i){let a=this.metrics.get(e);if(!a)throw new Error(`Service ${this.serviceName} has no metrics registered for name: ${e}. Can't record value for unknown metric.`);a(n,i)}registerMetric(e,{type:n,...i}){if(this.metrics.has(e))return;let a=this.meterProvider.getMeter(Vwe),c=this.prefixMetric?`${this.serviceName}_${e}`:e;if(!Fz(c))return;let o=()=>{switch(n){case br.Counter:return a.createCounter(c,i);case br.UpDownCounter:return a.createUpDownCounter(c,i);case br.Histogram:return"boundaries"in i&&this.addView({instrumentName:c,aggregation:new tm.ExplicitBucketHistogramAggregation(i.boundaries,!0)}),a.createHistogram(c,i)}};this.metrics.set(e,(r,s)=>{let u=o(),p=(S,A)=>{let[O,I]=this.notifyRecordListeners(e,S,{...A});"record"in u?u.record(O,I):u.add(O,I),this.meterProvider.forceFlush({}).catch(()=>{})};p(r,s),this.metrics.set(e,p)})}register(e){Object.entries(e).forEach(([n,i])=>{this.registerMetric(n,i)})}addOnRecord(e){return this.recordListeners.add(e),()=>{this.recordListeners.delete(e)}}removeOnRecord(e){this.recordListeners.delete(e)}shutdown(){return this.metrics.clear(),this.recordListeners.clear(),this.meterProvider.shutdown()}notifyRecordListeners(e,n,i){return Array.from(this.recordListeners).reduce((a,c)=>c(e,...a)||a,[n,i])}};L();var rm=class extends em{constructor({throttleLimit:e=5e3,env:n="local",serviceName:i,prefixMetric:a=!1,metrics:c={},onRecord:o,meterProvider:r,useXhr:s=!1,otelEndpoint:u}){_e.setLogger(new Li,["production","staging"].includes(n)?Ue.ERROR:Ue.INFO),super({serviceName:i,meterProvider:r??new Z_({serviceName:i,env:n,throttleLimit:e,useXhr:s,otelEndpoint:u}),prefixMetric:a,metrics:c,onRecord:o})}shutdown(){return _e.disable(),super.shutdown()}};L();var gt;(function(t){t.Counter="cli_commands_total",t.Duration="cli_commands_duration_ms",t.Elapsed="cli_commands_wall_clock_elapsed_ms"})(gt||(gt={}));async function Kz(t,e,n=Bwe){let i=n({skipMetricAnalytics:t.skipMetricAnalytics,otelOptions:kwe()}),a=t.cliVersion;t.cliVersion.includes("nightly")?a="nightly":t.cliVersion.includes("pre")&&(a="pre");let c={exit:t.exitMode,job:`${t.owningPlugin}::${t.command}`,cli_version:a};jwe(i,c),Hwe(i,c,e)}var Yz=[0,100,200,300,500,750,1e3,1500,2e3,3e3,5e3,7500,1e4,15e3,2e4,3e4,5e4,7e4,85e3,1e5];function kwe(){return{serviceName:"shopify-cli",throttleLimit:1e3,prefixMetric:!1,metrics:{[gt.Counter]:{type:br.Counter,description:"Total number of CLI commands executed",valueType:Rn.INT},[gt.Duration]:{type:br.Histogram,description:"Total time spent in execution of CLI commands. Does not include time spent waiting for network, prompts, etc.",valueType:Rn.INT,boundaries:Yz},[gt.Elapsed]:{type:br.Histogram,description:"Total time elapsed from start to finish of CLI commands. Includes time spent waiting for network, prompts, etc.",valueType:Rn.INT,boundaries:Yz}}}}function Bwe(t){let e="console";return t.skipMetricAnalytics||Jc()||(e={type:"otel",otel:Gwe(t)}),e}var Cy;function Gwe(t){return Cy||(Cy=new rm({...t.otelOptions,env:void 0,otelEndpoint:`${Vx()}/v1/metrics`}),_e.disable()),Cy}function jwe(t,e){if(t==="console"){G(J`[OTEL] record ${gt.Counter} counter ${ue.json({labels:e})}`);return}t.otel.record(gt.Counter,1,e)}function Hwe(t,e,n){if(t==="console"){G(J`[OTEL] record ${gt.Duration} histogram ${n.active.toString()}ms ${ue.json({labels:e})}`),G(J`[OTEL] record ${gt.Elapsed} histogram stage="active" ${n.active.toString()}ms`),G(J`[OTEL] record ${gt.Elapsed} histogram stage="network" ${n.network.toString()}ms`),G(J`[OTEL] record ${gt.Elapsed} histogram stage="prompt" ${n.prompt.toString()}ms`);return}n.active>0&&(t.otel.record(gt.Duration,n.active,e),t.otel.record(gt.Elapsed,n.active,{...e,stage:"active"})),n.network>0&&t.otel.record(gt.Elapsed,n.network,{...e,stage:"network"}),n.prompt>0&&t.otel.record(gt.Elapsed,n.prompt,{...e,stage:"prompt"})}l();var wy=class t{constructor(){this.requestIds=[]}static getInstance(){return t.instance||(t.instance=new t),t.instance}addRequestId(e){e&&this.requestIds.length<100&&this.requestIds.push(e)}getRequestIds(){return this.requestIds}clear(){this.requestIds=[]}},nm=wy.getInstance();async function eP(t){try{let e=await qwe(t);if(e===void 0)return;let n=!1;if(await Kc({key:"report-analytics-event",...Fc,task:async()=>{n=!0}}),!n){G(J`Skipping command analytics due to rate limiting, payload: ${ue.json(e)}`);return}let i=!Cx()&&Jm(),a=!wx()&&Jm();(i||a)&&G(J`Skipping command analytics, payload: ${ue.json(e)}`);let c=async()=>{if(i)return;let r=await PR(RR,e.public,e.sensitive);r.type==="error"&&G(r.message)},o=async()=>{let r=e.public.cmd_all_timing_active_ms??0,s=e.public.cmd_all_timing_network_ms??0,u=e.public.cmd_all_timing_prompts_ms??0;return Kz({skipMetricAnalytics:a,cliVersion:e.public.cli_version,owningPlugin:e.public.cmd_all_plugin??"@shopify/cli",command:e.public.command,exitMode:t.exitMode},{active:r,network:s,prompt:u})};await Promise.all([c(),o()])}catch(e){let n="Failed to report usage analytics";e instanceof Error&&(n=n.concat(`: ${e.message}`)),G(n),await VE(e,"expected_error")}}async function qwe({config:t,errorMessage:e,exitMode:n}){let{commandStartOptions:i,environmentFlags:a,...c}=as();if(i===void 0){G("Unable to log analytics event - no information on executed command");return}let{startCommand:o,startArgs:r,startTime:s,endTime:u}=i,p=u??new Date().getTime(),{"@shopify/cli":S,...A}=await Oi(t,"public_command_metadata",{}),{"@shopify/cli":O,...I}=await Oi(t,"sensitive_command_metadata",{}),F=await Pu(t),H=await $z(t),z=$c(),de=["cmd_all_timing_network_ms","cmd_all_timing_prompts_ms"].reduce((rr,nr)=>{let He=z[nr];return He!==void 0?rr+He:rr},0),se=p-s,ve=se-de,Pe={public:{command:o,time_start:s,time_end:p,total_time:se,success:n==="ok"&&e===void 0,cli_version:En,ruby_version:"",node_version:process.version.replace("v",""),is_employee:await Lx(),...F,...S,...z,cmd_all_timing_active_ms:ve,cmd_all_exit:n,user_id:await Ru(),request_ids:nm.getRequestIds()},sensitive:{args:r.join(" "),cmd_all_environment_flags:a,error_message:e,...O,...H,metadata:JSON.stringify({...c,extraPublic:{...A},extraSensitive:{...I}})}};return["cmd_all_timing_active_ms","cmd_all_timing_network_ms","cmd_all_timing_prompts_ms"].forEach(rr=>{let nr=Pe.public[rr];nr!==void 0&&(Pe.public[rr]=Math.floor(nr))}),Fwe(Pe)}function Fwe(t){let n=JSON.stringify(t).replace(/shptka_\w*/g,"*****").replace(/(--store-password(?:=|\s+))(?:"[^"]*"|'[^']*'|[^\s"]+)/g,"$1*****").replace(/((?:store-password|SHOPIFY_FLAG_STORE_PASSWORD)\\?":\\?")[^"\\]*/g,"$1*****");return JSON.parse(n)}function K7e(t){iP(t)}function $7e(t){return aP(t),t}function Dy(t,e){sP(t,e)}function z7e(t){Ni(t)}function W7e(){return cP()}import{performance as Uy}from"perf_hooks";var Wz=["admin","storefront-renderer","partners","business-platform","app-management"],Ywe=1e3,Kwe=10,$we=new Set(["cache-control","content-type","etag","x-request-id","server-timing","retry-after"]);function zz(t){return $we.has(t)}function Xz(t){if(t instanceof Error){let e=["socket hang up","econnreset","econnaborted","enotfound","enetunreach","network socket disconnected","etimedout","econnrefused","eai_again","epipe","the operation was aborted","timeout","premature close","getaddrinfo"],n=t.message.toLowerCase(),i=e.some(c=>n.includes(c)),a=/^request to .* failed, reason:\s*$/.test(n);return i||a}return!1}function iQe(t){if(Xz(t))return!0;if(t instanceof Error){let e=["certificate","cert","tls","ssl","altnames"],n=t.message.toLowerCase();return e.some(i=>n.includes(i))}return!1}async function zwe(t){if(!t.useNetworkLevelRetry)return t.request();let e;for await(let n of rb(t.maxRetryTimeMs))try{return await t.request()}catch(i){if(e=i,!Xz(i))throw i;t.recordCommandRetries&&Dy(t.url,`network-retry:${i.message}`),G(`Retrying request to ${t.url} due to network error ${i}`)}throw e}async function Vy(t){let e=Uy.now(),n=0,i={},a=mi(t.url),c={};try{c=await zwe(t),c.headers.forEach((r,s)=>{zz(s)&&(i[s]=r)})}catch(r){let s=Uy.now();if(n=Math.round(s-e),r instanceof $r){if(r.response.headers)for(let[p,S]of r.response.headers)zz(p)&&(i[p]=S);let u=yn(i);if(Wwe(r)){let p;try{p=i["retry-after"]?Number.parseInt(i["retry-after"],10):void 0}catch{}return{status:"can-retry",clientError:r,duration:n,sanitizedHeaders:u,sanitizedUrl:a,requestId:i["x-request-id"],delayMs:p}}else if(r.response.status===401)return{status:"unauthorized",clientError:r,duration:n,sanitizedHeaders:u,sanitizedUrl:a,requestId:i["x-request-id"],delayMs:500};return{status:"client-error",clientError:r,duration:n,sanitizedHeaders:u,sanitizedUrl:a,requestId:i["x-request-id"]}}return{status:"unknown-error",error:r,duration:n,sanitizedHeaders:yn(i),sanitizedUrl:a,requestId:i["x-request-id"]}}let o=Uy.now();return n=Math.round(o-e),{status:"ok",response:c,duration:n,sanitizedHeaders:yn(i),sanitizedUrl:a,requestId:i["x-request-id"]}}function Wwe(t){return t.response.status===429?!0:typeof t.response.errors=="string"?!1:t.response.errors?.some(e=>e.extensions?.code==="429")??!1}async function yR(t,e){let n=await Vy(t);switch(G(`Request to ${n.sanitizedUrl} completed in ${n.duration} ms
|
|
620
|
+
With response headers:
|
|
621
|
+
${n.sanitizedHeaders}
|
|
622
|
+
`),n.status){case"ok":return n.response;case"client-error":throw e?e(n.clientError,n.requestId):n.clientError;case"unknown-error":throw e?e(n.error,n.requestId):n.error;case"can-retry":throw e?e(n.clientError,n.requestId):n.clientError;case"unauthorized":throw e?e(n.clientError,n.requestId):n.clientError}}async function Jz(t,e,n={scheduleDelay:setTimeout}){let i=0,a=n.limitRetriesTo??Kwe,c=await Vy(t);for(G(`Request to ${c.sanitizedUrl} completed in ${c.duration} ms
|
|
623
|
+
With response headers:
|
|
624
|
+
${c.sanitizedHeaders}
|
|
625
|
+
`);;){if(c.status==="ok")return i>0&&G(`Request to ${c.sanitizedUrl} succeeded after ${i} retries`),c.response;if(c.status==="client-error")throw e?e(c.clientError,c.requestId):c.clientError;if(c.status==="unknown-error")throw e?e(c.error,c.requestId):c.error;if(c.status==="unauthorized")throw c.clientError;if(a<=i)throw G(`${a} retries exhausted for request to ${c.sanitizedUrl}`),e?e(c.clientError,c.requestId):c.clientError;i+=1,t.recordCommandRetries&&Dy(t.url,`http-retry-${i}:${c.status}:`);let o=c.delayMs??n.defaultDelayMs??Ywe;G(`Scheduling retry request #${i} to ${c.sanitizedUrl} in ${o} ms`),c=await new Promise(r=>{n.scheduleDelay(()=>{r(Vy(t))},o)})}}function Qz(t=[]){let n=["openid",...Wz.flatMap(i=>Zz(i)),...t].map(Oc);return os(n)}function Wa(t,e=[]){let n=[...Zz(t),...e].map(Oc);return os(n)}function om(t){switch(t){case"partners":return[Oc("cli")];case"app-management":return[Oc("app-management")];case"business-platform":return[Oc("destinations")];case"admin":case"storefront-renderer":throw new tt(`API not supported for token exchange: ${t}`)}}function Zz(t){switch(t){case"admin":return["graphql","themes","collaborator"];case"storefront-renderer":return["devtools","graphql"];case"partners":return["cli"];case"business-platform":return["destinations","store-management","on-demand-user-access"];case"app-management":return["app-management"];default:throw new tt(`Unknown API: ${t}`)}}function Oc(t){switch(t){case"graphql":return"https://api.shopify.com/auth/shop.admin.graphql";case"themes":return"https://api.shopify.com/auth/shop.admin.themes";case"collaborator":return"https://api.shopify.com/auth/partners.collaborator-relationships.readonly";case"cli":return"https://api.shopify.com/auth/partners.app.cli.access";case"devtools":return"https://api.shopify.com/auth/shop.storefront-renderer.devtools";case"destinations":return"https://api.shopify.com/auth/destinations.readonly";case"store-management":return"https://api.shopify.com/auth/organization.store-management";case"on-demand-user-access":return"https://api.shopify.com/auth/organization.on-demand-user-access";case"app-management":return"https://api.shopify.com/auth/organization.apps.manage";default:return t}}l();l();l();l();var ky=process.env.USING_DEV==="1";function im(){if(!ky)throw new Error("DevServer is not supported in this environment")}l();l();l();import{spawnSync as Jwe}from"node:child_process";l();import e4 from"node:fs";var t4="/etc/hosts",By={},r4=0;function Xwe(){try{let e=e4.statSync(t4).mtimeMs;if(e===r4)return;let i=e4.readFileSync(t4,"utf8").split(/\r?\n/);By={};for(let a of i){if(a.trim().startsWith("#")||a.trim()==="")continue;let c=/^\s*(?<ipAddress>[^\s#]+)\s+(?<matchedHostName>[^\s#]+)\s*(#.*)?$/.exec(a);if(c&&c.groups){let{ipAddress:o,matchedHostName:r}=c.groups;r&&o&&(By[r]=o)}}r4=e}catch(t){console.log("Error reading hosts file:",t)}}function Gy(t){Xwe();let e=By[t];if(e)return e;throw new Error(`No IP found for hostname: ${t}`)}var Qwe=1e3,jy;function am(t){jy||(jy=Zwe());let{port:e,addr:n,timeout:i=Qwe}=t;try{if(!jy(n==="localhost"?"127.0.0.1":n,e,i))throw new Error(`DevServer for '${t.projectName}' is not running on ${e} / ${n}: \`dev up ${t.projectName}\` to start it.`)}catch(a){throw new Error(`DevServer check for '${t.projectName}' on ${e} / ${n} failed (${a})`)}}function Zwe(){return eDe}function eDe(t,e,n){return Jwe("nc",["-z","-w","1",t,e.toString()],{timeout:n,stdio:"ignore"}).status===0}var i4=Se(o4(),1);import tDe from"node:fs";var rDe=["admin","app","dev","shopify"],nDe=8080;function a4(t){return{host:(e={})=>s4(t,e),url:(e={})=>oDe(t,e)}}function s4(t,e={}){im(),(cDe||iDe)(t);let n=(e.nonstandardHostPrefix||t).replace(/_/g,"-");if(t==="shopify"){if(n.endsWith("-dev-api"))return`${n.replace("-dev-api","")}.dev-api.shop.dev`;if(!rDe.includes(n))return`${n}.my.shop.dev`}return`${n}.shop.dev`}function oDe(t,e={}){return`https://${s4(t,e)}`}function iDe(t){am({projectName:t,addr:aDe(t),port:nDe})}function aDe(t){try{let e=sDe(t);return i4.fromIp(e,{internal:!0,ipVersion:4}),e}catch{throw new Error(`DevServer for '${t}' is not running: \`dev up ${t}\` to start it.`)}}function sDe(t){let e;try{e=tDe.readlinkSync(`/opt/nginx/etc/manifest/${t}/current`)}catch{e=`${t}.root.shopify.dev.internal`}try{return Gy(e)}catch{return e}}var cDe;l();import*as c4 from"node:os";import uDe from"fs";function u4(t){return{host:(e={})=>l4(t,e),url:(e={})=>lDe(t,e)}}function l4(t,e={}){return im(),(fDe||pDe)(t),`${e.nonstandardHostPrefix||t}.myshopify.io`}function lDe(t,e={}){return`https://${l4(t,e)}`}function pDe(t){let[e,n]=dDe(t);am({projectName:t,addr:e,port:n})}function dDe(t){try{let e=uDe.readFileSync(`${c4.homedir()}/.local/run/services/${t}/server/port`,"utf-8");return["localhost",parseInt(e,10)]}catch{throw new Error(`DevServer for '${t}' is not running: \`dev up ${t}\` to start it.`)}}var fDe;import p4 from"node:fs";var Jo=class{constructor(e){if(this.projectName=e,e==="shopify")throw new Error("Use `import {DevServerCore}` for the 'shopify' project");this.serverImpl=d4(e)}host(e){return this.serverImpl.host(e)}url(e){return this.serverImpl.url(e)}},pn=class{constructor(){this.serverImpl=d4("shopify")}host(e){return this.serverImpl.host({nonstandardHostPrefix:e})}url(e){return this.serverImpl.url({nonstandardHostPrefix:e})}},_De="/opt/dev/misc/dev-server-inference-mode";function d4(t){return mDe(t)?u4(t):a4(t)}function mDe(t){try{p4.accessSync(_De);try{return p4.accessSync(`/opt/nginx/etc/manifest/${t}/current/edition-2024`),!1}catch{return!0}}catch{return!1}}var $Qe=new fe("Couldn't obtain the Shopify FQDN because the store FQDN was not provided.");async function f4(){let t=et(),e="partners.shopify.com";return t==="local"?new Jo("partners").host():e}async function zQe(){let t=et(),e="admin.shopify.com";return t==="local"?new pn().host("admin"):e}async function WQe(){let t=et(),e="app.shopify.com";return t==="local"?new pn().host("app"):e}async function XQe(t){return et()==="local"?new pn().host("app"):t}async function JQe(){let t=et(),e="dev.shopify.com";return t==="local"?new pn().host("dev"):e}async function Hy(){let t=et(),e="destinations.shopifysvc.com";return t==="local"?new Jo("business-platform").host():e}async function jr(){let t=et(),e="accounts.shopify.com";return t==="local"?new Jo("identity").host():e}function _4(t){let e=EDe(t);TDe(e,t);let n=a=>et()==="local"?new pn().host(a):`${a}.myshopify.com`;return(a=>a.endsWith(".myshopify.com")||a.endsWith(".myshopify.io")||a.endsWith(".shop.dev"))(e)?e:n(e)}var Rc='Provide a store handle or Shopify store domain, for example "example" or "example.myshopify.com". Store URLs may only include the optional /admin path.';function EDe(t){let e=t.trim();if(e.startsWith("/"))throw new fe(`Invalid store value: ${t}`,Rc);return hDe(/^https?:\/\//i.test(e)?e:`https://${e}`,t).hostname}function hDe(t,e){let n;try{n=new URL(t)}catch{throw new fe(`Invalid store value: ${e}`,Rc)}let i=n.pathname==="/"||n.pathname==="/admin"||n.pathname==="/admin/";if(!n.hostname||n.username||n.password||n.port||n.search||n.hash||!i)throw new fe(`Invalid store value: ${e}`,Rc);return n}function TDe(t,e){if(t.length===0||t.length>253)throw new fe(`Invalid store value: ${e}`,Rc);let n=t.split("."),i=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;if(!n.every(c=>c.length>0&&c.length<=63&&i.test(c)))throw new fe(`Invalid store value: ${e}`,Rc)}function QQe(t){return et()==="local"&&t.endsWith(".my.shop.dev")?`admin.shop.dev/store/${t.replace(".my.shop.dev","")}`:t}l();l();import{Buffer as SDe}from"node:buffer";l();var tZe=new TextEncoder,um=new TextDecoder,rZe=2**32;function vDe(t){let e=t;return e instanceof Uint8Array&&(e=um.decode(e)),e}var m4=t=>new Uint8Array(SDe.from(vDe(t),"base64url"));l();var qy=class extends Error{static code="ERR_JOSE_GENERIC";code="ERR_JOSE_GENERIC";constructor(e,n){super(e,n),this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}};var Hr=class extends qy{static code="ERR_JWT_INVALID";code="ERR_JWT_INVALID"};l();function ADe(t){return typeof t=="object"&&t!==null}function Fy(t){if(!ADe(t)||Object.prototype.toString.call(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}l();var E4=m4;l();function Yy(t){if(typeof t!="string")throw new Hr("JWTs must use Compact JWS serialization, JWT must be a string");let{1:e,length:n}=t.split(".");if(n===5)throw new Hr("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new Hr("Invalid JWT");if(!e)throw new Hr("JWTs must contain a payload");let i;try{i=E4(e)}catch{throw new Hr("Failed to base64url decode the payload")}let a;try{a=JSON.parse(um.decode(i))}catch{throw new Hr("Failed to parse the decoded payload as JSON")}if(!Fy(a))throw new Hr("Invalid JWT Claims Set");return a}var Pc=class extends Xm.ExtendableError{},Nc=class extends Xm.ExtendableError{},Ky=class extends fe{};async function $y(t,e,n){let i=t.accessToken,[a,c,o,r,s]=await Promise.all([Ja("partners",i,e.partners),Ja("storefront-renderer",i,e.storefront),Ja("business-platform",i,e.businessPlatform),n?Ja("admin",i,e.admin,n):{},Ja("app-management",i,e.appManagement)]);return{...a,...c,...o,...r,...s}}async function h4(t){let e=ii(),n={grant_type:"refresh_token",access_token:t.accessToken,refresh_token:t.refreshToken,client_id:e},a=(await Wy(n)).mapError(g4).valueOrBug();return y4(a,t.userId,t.alias)}async function zy(t,e,n){let i=St(t);try{let c=(await Ja(t,e,n))[i].accessToken,o=zt(e);return Qo(o),Qa("partners_token"),{accessToken:c,userId:o}}catch{let c=t.replace(/-/g," ").replace(/\b\w/g,o=>o.toUpperCase());throw new fe(`The custom token provided can't be used for the ${c} API.`,"Ensure the token is correct and not expired.")}}async function lm(t){return zy("partners",t,om("partners"))}async function T4(t){return zy("app-management",t,om("app-management"))}async function S4(t){return zy("business-platform",t,om("business-platform"))}async function v4(t){let e=await ii(),i=await Wy({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:t,client_id:e});if(i.isErr())return Wm(i.error.error);let a=y4(i.value);return zm(a)}async function Ja(t,e,n=[],i){let a=St(t),o={grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",requested_token_type:"urn:ietf:params:oauth:token-type:access_token",subject_token_type:"urn:ietf:params:oauth:token-type:access_token",client_id:await ii(),audience:a,scope:n.join(" "),subject_token:e,...t==="admin"&&{destination:`https://${i}/admin`,store:i}},r=a;t==="admin"&&i&&(r=`${i}-${a}`);let u=(await Wy(o)).mapError(g4).valueOrBug(),p=ODe(u);return{[r]:p}}function g4({error:t,store:e}){let n=`You are not authorized to use the CLI to develop in the provided store${e?`: ${e}`:"."}`;return t==="invalid_grant"?new Pc:t==="invalid_request"?new Nc:t==="invalid_target"?new Ky(n,"",["Ensure you have logged in to the store using the Shopify admin at least once.","Ensure you are the store owner, or have a staff account if you are attempting to log in to a dev store.","Ensure you are using the permanent store domain, not a vanity domain."]):new fe(t)}async function Wy(t){let n=`https://${await jr()}/oauth/token`,i=new URLSearchParams(Object.entries(t)).toString(),a=await bi(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:i});try{let c=await a.text(),o=JSON.parse(c);return a.ok?zm(o):Wm({error:o.error,store:t.store})}catch(c){throw c instanceof SyntaxError?new fe(`Received invalid response from authentication service (HTTP ${a.status}).`,"The response could not be parsed as JSON. The service may be temporarily unavailable. Please try again."):c}}function y4(t,e,n){let i=e??(t.id_token?Yy(t.id_token).sub:void 0);if(!i)throw new tt("Error setting userId for session. No id_token or pre-existing user ID provided.");return{accessToken:t.access_token,refreshToken:t.refresh_token,expiresAt:new Date(Date.now()+t.expires_in*1e3),scopes:t.scope.split(" "),userId:i,alias:n}}function ODe(t){return{accessToken:t.access_token,expiresAt:new Date(Date.now()+t.expires_in*1e3),scopes:t.scope.split(" ")}}l();async function Xy(t){let e=JSON.stringify(t);cx(e)}async function Mc(){let t=sx();if(!t)return;let e;try{e=JSON.parse(t)}catch(i){if(!(i instanceof SyntaxError))throw i;await Za();return}let n=await Zx.safeParseAsync(e);if(n.success)return n.data;await Za()}async function Za(){ux(),px()}async function wZe(t){let e=await Mc();if(!e)return;let n=await jr();if(!(!e[n]||!e[n][t]))return e[n][t].identity.alias}async function DZe(t,e){let n=await Mc();if(!n)return;let i=await jr(),a=n[i]?.[t];a&&(a.identity.alias=e,await Xy(n))}async function A4(t){let e=await Mc();if(!e)return;let n=await jr(),i=e[n];if(i){for(let[a,c]of Object.entries(i))if(c.identity.alias===t||a===t)return a}}l();async function b4(t){let e=await jr(),i={client_id:ii(),scope:t.join(" ")},a=`https://${e}/oauth/device_authorization`,c=await bi(a,{method:"POST",headers:{"Content-type":"application/x-www-form-urlencoded"},body:RDe(i)}),o;try{o=await c.text()}catch{throw new tt(`Failed to read response from authorization service (HTTP ${c.status}). Network or streaming error occurred.`,"Check your network connection and try again.")}let r;try{r=JSON.parse(o)}catch{let p=PDe(c,o);throw new tt(p)}if(G(J`Received device authorization code: ${ue.json(r)}`),!r.device_code||!r.verification_uri_complete)throw new tt("Failed to start authorization process");if(Zn(`
|
|
626
|
+
To run this command, log in to Shopify.`),Nx())throw new fe("Authorization is required to continue, but the current environment does not support interactive prompts.","To resolve this, specify credentials in your environment, or run the command in an interactive environment such as your local terminal.");Zn(J`User verification code: ${r.user_code}`);let s=ue.link(r.verification_uri_complete);return await Px(r.verification_uri_complete)?Zn(J`Opened link to start the auth process: ${s}`):Zn(J`👉 Open this link to start the auth process: ${s}`),{deviceCode:r.device_code,userCode:r.user_code,verificationUri:r.verification_uri,expiresIn:r.expires_in,verificationUriComplete:r.verification_uri_complete,interval:r.interval}}async function O4(t,e=5){let n=e;return new Promise((i,a)=>{let c=async()=>{let r=await v4(t);if(!r.isErr()){i(r.value);return}let s=r.error??"unknown_failure";switch(G(J`Polling for device authorization... status: ${s}`),s){case"authorization_pending":{o();return}case"slow_down":n+=5,o();return;case"access_denied":a(new fe("Device authorization failed: Access denied."));return;case"expired_token":a(new fe("Device authorization failed: Token expired. Please try again."));return;case"unknown_failure":a(new Error(`Device authorization failed: ${s}`))}},o=()=>{setTimeout(c,n*1e3)};o()})}function RDe(t){return Object.entries(t).map(([e,n])=>n&&`${e}=${n}`).filter(e=>!!e).join("&")}function PDe(t,e){let n=`Received invalid response from authorization service (HTTP ${t.status}).`;return t.status>=500?n+=" The service may be experiencing issues.":t.status>=400&&(n+=" The request may be malformed or unauthorized."),e.trim().startsWith("<!DOCTYPE")||e.trim().startsWith("<html")?n+=" Received HTML instead of JSON - the service endpoint may have changed.":e.trim()===""?n+=" Received empty response body.":n+=" Response could not be parsed as valid JSON.",`${n} If this issue persists, please contact support at https://help.shopify.com`}l();function Ic(t){return t.token.startsWith("shptka_")}l();var R4=`
|
|
627
|
+
query UserEmail {
|
|
628
|
+
currentUserAccount {
|
|
629
|
+
email
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
`;l();function set(t){Qo(t)}async function NDe(t){return A4(t)}async function cet(t){if(!t){Jy(void 0);return}let e=await NDe(t);if(!e)throw new fe(J`No authenticated account found for alias ${ue.yellow(t)}.`,J`Run ${ue.genericShellCommand("shopify auth login")} first.`);Jy(e)}function uet(t){return t.type==="UserAccount"}function pet(t){return t.type==="ServiceAccount"}async function det(t=process.env,e={}){return G(J`Ensuring that the user is authenticated with no particular scopes`),{userId:(await Zo({},t,e)).userId}}async function fet(t=[],e=process.env,n={}){G(J`Ensuring that the user is authenticated with the Partners API with the following scopes:
|
|
633
|
+
${ue.json(t)}
|
|
634
|
+
`);let i=To();if(i){let c=await lm(i);return{token:c.accessToken,userId:c.userId}}let a=await Zo({partnersApi:{scopes:t}},e,n);if(!a.partners)throw new tt("No partners token found after ensuring authenticated");return{token:a.partners,userId:a.userId}}async function _et(t={},e=[],n=[],i=process.env){G(J`Ensuring that the user is authenticated with the App Management API with the following scopes:
|
|
635
|
+
${ue.json(e)}
|
|
636
|
+
`);let a=To();if(a){let o=await T4(a),r=await S4(a);return{appManagementToken:o.accessToken,userId:o.userId,businessPlatformToken:r.accessToken}}let c=await Zo({appManagementApi:{scopes:e},businessPlatformApi:{scopes:n}},i,t);if(!c.appManagement||!c.businessPlatform)throw new tt("No App Management or Business Platform token found after ensuring authenticated");return{appManagementToken:c.appManagement,userId:c.userId,businessPlatformToken:c.businessPlatform}}async function met(t=[],e=void 0,n={}){if(e){let c=Ic({token:e,storeFqdn:""})?"theme_access_token":"custom_app_token";return Qa(c),Qo(zt(e)),e}G(J`Ensuring that the user is authenticated with the Storefront API with the following scopes:
|
|
637
|
+
${ue.json(t)}
|
|
638
|
+
`);let i=await Zo({storefrontRendererApi:{scopes:t}},process.env,n);if(!i.storefront)throw new tt("No storefront token found after ensuring authenticated");return i.storefront}async function MDe(t,e=[],n={}){G(J`Ensuring that the user is authenticated with the Admin API with the following scopes for the store ${ue.raw(t)}:
|
|
639
|
+
${ue.json(e)}
|
|
640
|
+
`);let i=await Zo({adminApi:{scopes:e,storeFqdn:t}},process.env,{...n});if(!i.admin)throw new tt("No admin token found after ensuring authenticated");return i.admin}async function Eet(t,e,n=[],i={}){if(G(J`Ensuring that the user is authenticated with the Theme API with the following scopes:
|
|
641
|
+
${ue.json(n)}
|
|
642
|
+
`),e){let a={token:e,storeFqdn:t},c=Ic(a)?"theme_access_token":"custom_app_token";return Qa(c),Qo(zt(e)),a}return MDe(t,n,i)}async function het(t=[],e={}){G(J`Ensuring that the user is authenticated with the Business Platform API with the following scopes:
|
|
643
|
+
${ue.json(t)}
|
|
644
|
+
`);let n=await Zo({businessPlatformApi:{scopes:t}},process.env,e);if(!n.businessPlatform)throw new tt("No business-platform token found after ensuring authenticated");return n.businessPlatform}function P4(){return Za()}async function Tet(t,e,n){let i={client_id:e,client_secret:n,grant_type:"client_credentials"},a=await bi(`https://${t}/admin/oauth/access_token`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)},"slow-request"),c=await a.text();if(a.status===400)throw c.includes("app_not_installed")?new fe(J`App is not installed on ${ue.green(t)}. Try running ${ue.genericShellCommand("shopify app dev")} to connect your app to the shop.`):new fe(`Failed to get access token for app ${e} on store ${t}: ${a.statusText}`);try{return{token:JSON.parse(c).access_token,storeFqdn:t}}catch(o){throw o instanceof SyntaxError?new fe(`Received invalid response from admin authentication service (HTTP ${a.status}).`,"The response could not be parsed as JSON. The service may be temporarily unavailable. Please try again."):o}}l();l();function N4(t,e){return os([...t,...e])}var LW=Se(C4()),CW=Se(tW()),C0e=Se(nW()),rA=Se(iW()),w0e=Se(cW()),D0e=Se(lW()),U0e=Se(TW()),tA=Se(TJ()),wW=Se(vW()),V0e=Se(NW()),DW=Se(IW());function Ott(t,e,n=N4){return(0,LW.default)(t,e,{arrayMerge:n})}function Rtt(t,e){return(0,CW.default)(t,e)}function Ptt(t,e){return(0,rA.default)(t,e)}function Ntt(t,e){return(0,rA.default)(dm(t),dm(e))}function dm(t){return Array.isArray(t)?t.map(dm).sort(k0e):t&&typeof t=="object"?Object.fromEntries(Object.entries(t).sort(([e],[n])=>e.localeCompare(n)).map(([e,n])=>[e,dm(n)])):t??{}}function k0e(t,e){return JSON.stringify(t).localeCompare(JSON.stringify(e))}function Mtt(t,e){return(0,tA.default)(t,e)===void 0?void 0:(0,tA.default)(t,e)}function Itt(t,e,n){return(0,wW.default)(t,e,n)}function UW(t){return(0,DW.default)(t)}function Ltt(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>n!=null))}l();l();l();function VW(t,e,n,i,a={}){G(J`Sending ${ue.json(t)} GraphQL request:
|
|
645
|
+
${ue.raw(e.toString().trim())}
|
|
646
|
+
${i?`
|
|
647
|
+
With variables:
|
|
648
|
+
${B0e(i)}
|
|
649
|
+
`:""}
|
|
650
|
+
With request headers:
|
|
651
|
+
${yn(a)}\n
|
|
652
|
+
to ${mi(n)}`)}function B0e(t){let e={...t},i=fm(e,["apiKey","serialized_script"]);return JSON.stringify(i,null,2)}function fm(t,e){if(typeof t=="string")try{let i=JSON.parse(t);if(typeof i=="object"&&i!==null){let a=fm(i,e);return JSON.stringify(a,null)}}catch{return t}if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(i=>fm(i,e));let n={};for(let[i,a]of Object.entries(t)){if(e.includes(i)&&typeof a=="string"){n[i]="*****";continue}n[i]=fm(a,e)}return n}function G0e(t){if(!t||t.length===0)return;let e=[];for(let n of t){let i=n?.extensions?.app_errors?.errors;if(Array.isArray(i)&&i.length>0){let a=[];for(let c of i){let o=j0e(c);o?a.push(o):typeof c?.message=="string"&&a.push(c.message)}a.length>0?e.push(...a):typeof n?.message=="string"&&e.push(n.message)}else typeof n?.message=="string"&&e.push(n.message)}return e.length>0?e.join(`
|
|
653
|
+
`):void 0}function j0e(t){if(t?.category==="access_denied")return"You don't have the necessary permissions to perform this action. Check that you're using the correct account or token."}function kW(t){return(e,n)=>{if(e instanceof $r){let{status:i}=e.response,a=G0e(e.response.errors),c;a&&i<500?c=a:a&&i>=500?c=`The ${t} GraphQL API responded with HTTP status ${i}: ${a}`:c=Bx(J`
|
|
654
|
+
The ${ue.raw(t)} GraphQL API responded unsuccessfully with${i===200?"":` the HTTP status ${i} and`} errors:
|
|
655
|
+
|
|
656
|
+
${ue.json(e.response.errors)}
|
|
657
|
+
`),n&&(c+=`
|
|
658
|
+
|
|
659
|
+
Request ID: ${n}`);let o;return i<500?o=new _i(c,i,e.response.errors):o=new fe(c),o.stack=e.stack,o}else return e}}var H0e=.3;async function BW({url:t,addedHeaders:e,token:n}){let i={...e,...nE(n)},a={agent:await ou(),headers:i};return{client:new nx(t,a),headers:i}}async function q0e(t){let e=t.extensions?.cost,n=e?.actualQueryCost,i=e?.throttleStatus?.restoreRate;if(n&&typeof n=="number"&&i&&typeof i=="number"){let a=n/i;G(J`Sleeping for ${a.toString()} seconds to restore the rate limit.`),await Xc(Math.min(a,H0e))}}async function F0e(t){let{client:e,behaviour:n,queryAsString:i,variables:a,autoRateLimitRestore:c}=t,o;try{return e.setAbortSignal(RE(n)),o=await e.rawRequest(i,a),await GW(o),c&&await q0e(o),o}catch(r){throw r instanceof $r&&await GW(r.response),r}}async function jW(t){let{token:e,addedHeaders:n,queryAsString:i,variables:a,api:c,url:o,responseOptions:r,unauthorizedHandler:s,cacheOptions:u,autoRateLimitRestore:p}=t,S=xi(t.preferredBehaviour??"default"),{headers:A,client:O}=await BW({url:o,addedHeaders:n,token:e});VW(c,i,o,a,A);let I=async()=>F0e({client:{setAbortSignal:He=>{O.requestConfig.signal=He},rawRequest:(He,or)=>O.rawRequest(He,or)},behaviour:S,queryAsString:i,variables:a,autoRateLimitRestore:p??!1}),F=s?.handler,H=F?async()=>{let He=await F();if(He.token){let{client:or,headers:bm}=await BW({url:o,addedHeaders:n,token:He.token});return O=or,A=bm,!0}else return!1}:void 0,z=()=>Jz({request:I,url:o,...S},r?.handleErrors===!1?void 0:kW(c)),W=()=>Wc("cmd_all_timing_network_ms")(async()=>{let He;try{He=await z()}catch(or){if(or instanceof $r&&or.response.status===401&&H)if(await H())He=await z();else throw or;else throw or}return r?.onResponse&&r.onResponse(He),He.data});if(u===void 0)return W();let{cacheTTL:de,cacheExtraKey:se,cacheStore:ve}=u,Pe=zt(i),Yr=zt(JSON.stringify(a??{})),rr=`q-${Pe}-${Yr}-${En}-${se??""}`,nr=await dx(rr,async()=>{let He=await W();return JSON.stringify(He)},fx(de),ve);return JSON.parse(nr)}async function GW(t){try{let e=t.headers.get("x-request-id");nm.addRequestId(e),await zc(()=>({cmd_all_last_graphql_request_id:e??void 0}))}catch{}}async function Cc(t){return jW({...t,queryAsString:t.query})}async function nA(t){return jW({...t,queryAsString:rx(t.query).query})}l();var i8=Se(o8(),1),r1e=new i8.default({minTime:150,maxConcurrent:10});async function n1e(t){let e="Partners",i=`https://${await f4()}/api/cli/graphql`;return{token:t,api:e,url:i,responseOptions:{onResponse:Am}}}async function zrt(t,e,n,i,a,c){let o=await n1e(e);return r1e.schedule(()=>Cc({...o,query:t,variables:n,cacheOptions:i,preferredBehaviour:a,unauthorizedHandler:c}))}function Am(t){if(!t.extensions)return;let e=[];for(let n of t.extensions.deprecations)n.supportedUntilDate&&e.push(new Date(n.supportedUntilDate));mx(e)}async function a8(t){let e="BusinessPlatform",i=`https://${await Hy()}/destinations/api/2020-07/graphql`;return{token:t,api:e,url:i,responseOptions:{onResponse:Am}}}async function s8(t,e,n,i){return Cc({...await a8(e),query:t,variables:n,cacheOptions:i})}async function ent(t){return nA({...await a8(t.token),query:t.query,variables:t.variables,cacheOptions:t.cacheOptions,unauthorizedHandler:t.unauthorizedHandler})}async function c8(t,e){let n="BusinessPlatform",a=`https://${await Hy()}/organizations/api/unstable/organization/${e}/graphql`;return{token:t,api:n,url:a,responseOptions:{onResponse:Am}}}async function tnt(t){return Cc({query:t.query,...await c8(t.token,t.organizationId),variables:t.variables,unauthorizedHandler:t.unauthorizedHandler})}async function rnt(t){return nA({query:t.query,...await c8(t.token,t.organizationId),variables:t.variables,unauthorizedHandler:t.unauthorizedHandler})}async function o1e(t){if(t)try{return(await s8(R4,t)).currentUserAccount?.email??void 0}catch(e){G(J`Failed to fetch user email: ${e.message??String(e)}`);return}}var EA,hA="none",xm;async function Ru(){let t=To()??Qm();if(t)return zt(t);if(EA)return EA;let e=Yc();return e||"unknown"}function Qo(t){EA=t}async function p8(){if(hA!=="none")return hA;if(Yc())return"device_auth";if(To())return"partners_token";let e=Qm();return e?Ic({token:e,storeFqdn:""})?"theme_access_token":"custom_app_token":"none"}function Qa(t){hA=t}function Jy(t){xm=t}async function Zo(t,e,{forceRefresh:n=!1,noPrompt:i=!1,forceNewSession:a=!1}={}){let c=await jr(),o=t.adminApi?.storeFqdn;if(o){let W=_4(o);o===t.adminApi?.storeFqdn&&(t.adminApi.storeFqdn=W)}let r=await Mc()??{},s=a?void 0:xm??Yc();if(!s&&!xm){let W=Object.keys(r[c]??{});W.length>0&&(s=W[0])}let u=s&&!a?r[c]?.[s]:void 0,p=d8(t);G(J`Validating existing session against the scopes:
|
|
660
|
+
${ue.json(p)}
|
|
661
|
+
For applications:
|
|
662
|
+
${ue.json(t)}
|
|
663
|
+
`);let S=await tb(p,t,u),A={};if(S==="needs_full_auth")await u8(i),G(J`Initiating the full authentication flow...`),A=await l8(t,u?.identity.alias);else if(S==="needs_refresh"||n){G(J`The current session is valid but needs refresh. Refreshing...`);try{A=await i1e(u,t)}catch(W){if(W instanceof Pc)await u8(i),A=await l8(t,u?.identity.alias);else throw W instanceof Nc?(await Za(),new fe(`
|
|
664
|
+
Error validating auth session`,"We've cleared the current session, please try again")):W}}let O={...u,...A},I=O.identity.userId,F={...r,[c]:{...r[c],[I]:O}};UW(A)||(await Xy(F),xm||lx(I));let H=await a1e(t,O),z=To();return z&&t.partnersApi&&(H.partners=(await lm(z)).accessToken),Qa(z?"partners_token":"device_auth"),Qo(H.userId),H}async function u8(t){if(t)throw await P4(),new fe(`The currently available CLI credentials are invalid.
|
|
665
|
+
|
|
666
|
+
The CLI is currently unable to prompt for reauthentication.`,"Restart the CLI process you were running. If in an interactive terminal, you will be prompted to reauthenticate. If in a non-interactive terminal, ensure the correct credentials are available in the program environment.")}async function l8(t,e){let n=d8(t),i=f8(t),a=t.adminApi?.storeFqdn,c,o=ob();if(o)c=s1e(n,o);else{G(J`Requesting device authorization code...`);let S=await b4(n);G(J`Starting polling for the identity token...`),c=await O4(S.deviceCode,S.interval)}G(J`CLI token received. Exchanging it for application tokens...`);let r=await $y(c,i,a),s=r[St("business-platform")]?.accessToken,u=e??await o1e(s)??c.userId,p={identity:{...c,alias:u},applications:r};return kx("Logged in."),p}async function i1e(t,e){let n=await h4(t.identity),i=f8(e),a=await $y(n,i,e.adminApi?.storeFqdn);return{identity:{...n,alias:t.identity.alias},applications:a}}async function a1e(t,e){let n={userId:e.identity.userId};if(t.adminApi){let i=St("admin"),a=`${t.adminApi.storeFqdn}-${i}`,c=e.applications[a]?.accessToken;c&&(n.admin={token:c,storeFqdn:t.adminApi.storeFqdn})}if(t.partnersApi){let i=St("partners");n.partners=e.applications[i]?.accessToken}if(t.storefrontRendererApi){let i=St("storefront-renderer");n.storefront=e.applications[i]?.accessToken}if(t.businessPlatformApi){let i=St("business-platform");n.businessPlatform=e.applications[i]?.accessToken}if(t.appManagementApi){let i=St("app-management");n.appManagement=e.applications[i]?.accessToken}return n}function d8(t){let e=t.adminApi?.scopes??[],n=t.partnersApi?.scopes??[],i=t.storefrontRendererApi?.scopes??[],a=t.businessPlatformApi?.scopes??[],c=t.appManagementApi?.scopes??[],o=[...e,...n,...i,...a,...c];return Qz(o)}function f8(t){let e=t.adminApi?.scopes??[],n=t.partnersApi?.scopes??[],i=t.storefrontRendererApi?.scopes??[],a=t.businessPlatformApi?.scopes??[],c=t.appManagementApi?.scopes??[];return{admin:Wa("admin",e),partners:Wa("partners",n),storefront:Wa("storefront-renderer",i),businessPlatform:Wa("business-platform",a),appManagement:Wa("app-management",c)}}function s1e(t,e){return{...e,expiresAt:new Date(Date.now()+720*60*60*1e3),scopes:t,alias:void 0}}async function Cnt({commandContent:t,args:e,currentTime:n=new Date().getTime(),commandClass:i}){let a=t.command;i&&Object.prototype.hasOwnProperty.call(i,"analyticsNameOverride")&&(a=i.analyticsNameOverride()??t.command);let c=i?.plugin?.name;i&&"customPluginName"in i&&(c=i.customPluginName),await gx(()=>({commandStartOptions:{startTime:n,startCommand:a,startArgs:e}})),await zc(()=>({cmd_all_launcher:Tx(),cmd_all_alias_used:t.alias,cmd_all_topic:t.topic,cmd_all_plugin:c,cmd_all_force:u1e("force",i)?e.includes("--force"):void 0}))}async function Pu(t){let e=Dx(),n=_8(t),i=n.filter(o=>o.startsWith("@shopify/")),{platform:a,arch:c}=vx();return{uname:`${a} ${c}`,env_ci:e.isCI,env_ci_platform:e.name,env_plugin_installed_any_custom:n.length!==i.length,env_plugin_installed_shopify:JSON.stringify(i),env_shell:t.shell,env_web_ide:Qc().editor?Qc().platform:void 0,env_device_id:nb(await Ux()),env_cloud:Qc().platform,env_package_manager:await Sx(qc()),env_install_package_manager:hx(),env_is_global:Ex(),env_auth_method:await p8(),env_is_wsl:await Mx(),env_build_repository:"Shopify/cli",env_auto_upgrade_enabled:_x()??null}}async function $z(t){return{env_plugin_installed_all:JSON.stringify(_8(t)),env_shopify_variables:JSON.stringify(c1e())}}function c1e(){return Object.fromEntries(Object.entries(process.env).filter(([t])=>t.startsWith("SHOPIFY_")))}function _8(t){return[...t.plugins.keys()].sort().filter(n=>!n.startsWith("@oclif/"))}function u1e(t,e){if(!e)return!1;let n=e.flags??{};return Object.keys(n).includes(t)}export{nb as a,SVe as b,vVe as c,zt as d,ho as e,To as f,RVe as g,PVe as h,nE as i,iQe as j,vt as k,XGe as l,bR as m,bi as n,Oi as o,ije as p,Ne as q,pn as r,f4 as s,zQe as t,WQe as u,XQe as v,JQe as w,jr as x,_4 as y,QQe as z,Mc as A,wZe as B,DZe as C,A4 as D,Ic as E,set as F,cet as G,uet as H,pet as I,det as J,fet as K,_et as L,met as M,MDe as N,Eet as O,het as P,P4 as Q,Tet as R,C4 as S,pm as T,V4 as U,q4 as V,Y4 as W,J4 as X,Z4 as Y,Ott as Z,Rtt as _,Ptt as $,Ntt as aa,Mtt as ba,Itt as ca,UW as da,Ltt as ea,Cc as fa,nA as ga,o8 as ha,zrt as ia,s8 as ja,ent as ka,tnt as la,rnt as ma,Cnt as na,Pu as oa,$z as pa,eP as qa,K7e as ra,$7e as sa,Dy as ta,z7e as ua,W7e as va,BR as wa,wE as xa,FR as ya,$R as za,JR as Aa,zje as Ba,VE as Ca,OQ as Da,Wje as Ea,RQ as Fa};
|
|
667
|
+
/*! Bundled license information:
|
|
668
|
+
|
|
669
|
+
mime-db/index.js:
|
|
670
|
+
(*!
|
|
671
|
+
* mime-db
|
|
672
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
673
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
674
|
+
* MIT Licensed
|
|
675
|
+
*)
|
|
676
|
+
|
|
677
|
+
mime-types/index.js:
|
|
678
|
+
(*!
|
|
679
|
+
* mime-types
|
|
680
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
681
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
682
|
+
* MIT Licensed
|
|
683
|
+
*)
|
|
684
|
+
*/
|