@nagellabs/libi 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +5 -5
  3. package/.next/diagnostics/route-bundle-stats.json +16 -16
  4. package/.next/externals-manifest.json +1 -1
  5. package/.next/fallback-build-manifest.json +3 -3
  6. package/.next/prerender-manifest.json +3 -3
  7. package/.next/required-server-files.js +1 -1
  8. package/.next/required-server-files.json +1 -1
  9. package/.next/server/app/(app)/editor/page/build-manifest.json +2 -2
  10. package/.next/server/app/(app)/instructions/page/build-manifest.json +2 -2
  11. package/.next/server/app/(app)/mcps-skills/page/build-manifest.json +2 -2
  12. package/.next/server/app/(app)/mcps-skills/skills/[name]/page/build-manifest.json +2 -2
  13. package/.next/server/app/(app)/mcps-skills/skills/new/page/build-manifest.json +2 -2
  14. package/.next/server/app/(app)/settings/page/build-manifest.json +2 -2
  15. package/.next/server/app/_global-error/page/build-manifest.json +2 -2
  16. package/.next/server/app/_global-error.html +1 -1
  17. package/.next/server/app/_global-error.rsc +1 -1
  18. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  20. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  21. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  22. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  23. package/.next/server/app/_not-found/page/build-manifest.json +2 -2
  24. package/.next/server/app/api/agent/cancel/route.js.nft.json +1 -1
  25. package/.next/server/app/api/agent/detect/route.js.nft.json +1 -1
  26. package/.next/server/app/api/agent/dispatch/route.js.nft.json +1 -1
  27. package/.next/server/app/api/agent/events/route.js.nft.json +1 -1
  28. package/.next/server/app/api/agent/messages/route.js.nft.json +1 -1
  29. package/.next/server/app/api/agent/providers/route.js.nft.json +1 -1
  30. package/.next/server/app/api/agent/send/route.js.nft.json +1 -1
  31. package/.next/server/app/api/agent/start/route.js.nft.json +1 -1
  32. package/.next/server/app/api/agent/stop/route.js.nft.json +1 -1
  33. package/.next/server/app/api/agents/[agentId]/install/route.js.nft.json +1 -1
  34. package/.next/server/app/api/codex/connect/route.js.nft.json +1 -1
  35. package/.next/server/app/api/db/resolve/route.js.nft.json +1 -1
  36. package/.next/server/app/api/export/chromium/route.js.nft.json +1 -1
  37. package/.next/server/app/api/export/route.js.nft.json +1 -1
  38. package/.next/server/app/api/files/by-id/[fileId]/filmstrip-status/route.js.nft.json +1 -1
  39. package/.next/server/app/api/files/by-id/[fileId]/rename/route.js.nft.json +1 -1
  40. package/.next/server/app/api/folders/[folderId]/duplicate/route.js.nft.json +1 -1
  41. package/.next/server/app/api/install-from-url/route.js.nft.json +1 -1
  42. package/.next/server/app/api/instructions/override/route.js.nft.json +1 -1
  43. package/.next/server/app/api/jobs/[id]/events/route.js.nft.json +1 -1
  44. package/.next/server/app/api/jobs/[id]/retry/route.js.nft.json +1 -1
  45. package/.next/server/app/api/jobs/[id]/route.js.nft.json +1 -1
  46. package/.next/server/app/api/jobs/[id]/status/route.js.nft.json +1 -1
  47. package/.next/server/app/api/jobs/route.js.nft.json +1 -1
  48. package/.next/server/app/api/notify/route.js.nft.json +1 -1
  49. package/.next/server/app/api/pieces/[pieceId]/duplicate/route.js.nft.json +1 -1
  50. package/.next/server/app/api/pieces/[pieceId]/tracks/[trackId]/manual-anchors/apply-deletes/route.js.nft.json +1 -1
  51. package/.next/server/app/api/pieces/[pieceId]/tracks/[trackId]/manual-anchors/route.js.nft.json +1 -1
  52. package/.next/server/app/api/render/frames/route.js.nft.json +1 -1
  53. package/.next/server/app/api/runtime/update/route.js.nft.json +1 -1
  54. package/.next/server/app/api/sessions/[sessionId]/activate/route.js.nft.json +1 -1
  55. package/.next/server/app/api/sessions/[sessionId]/context/route.js.nft.json +1 -1
  56. package/.next/server/app/api/sessions/[sessionId]/deactivate/route.js.nft.json +1 -1
  57. package/.next/server/app/api/sessions/[sessionId]/model/route.js.nft.json +1 -1
  58. package/.next/server/app/api/sessions/[sessionId]/permission/route.js.nft.json +1 -1
  59. package/.next/server/app/api/sessions/permission-modes/route.js.nft.json +1 -1
  60. package/.next/server/app/api/sessions/route.js.nft.json +1 -1
  61. package/.next/server/app/api/settings/mcp-servers/[id]/dependencies/route.js.nft.json +1 -1
  62. package/.next/server/app/api/settings/mcp-servers/[id]/install-plan/route.js.nft.json +1 -1
  63. package/.next/server/app/api/settings/mcp-servers/[id]/retry/route.js.nft.json +1 -1
  64. package/.next/server/app/api/settings/mcp-servers/[id]/retry-dep/route.js.nft.json +1 -1
  65. package/.next/server/app/api/settings/mcp-servers/[id]/route.js.nft.json +1 -1
  66. package/.next/server/app/api/settings/mcp-servers/resync/route.js.nft.json +1 -1
  67. package/.next/server/app/api/settings/memories/route.js.nft.json +1 -1
  68. package/.next/server/app/api/skill-eval/configure/route.js.nft.json +1 -1
  69. package/.next/server/app/api/terminal/ws-info/route.js.nft.json +1 -1
  70. package/.next/server/app/api/tracking/run/route.js.nft.json +1 -1
  71. package/.next/server/app/page/build-manifest.json +2 -2
  72. package/.next/server/chunks/_0jrwb4i._.js +3 -3
  73. package/.next/server/chunks/node_modules_003ody_._.js +3 -3
  74. package/.next/server/chunks/ssr/_0675jux._.js +3 -3
  75. package/.next/server/instrumentation.js.nft.json +1 -1
  76. package/.next/server/middleware-build-manifest.js +5 -5
  77. package/.next/server/pages/500.html +1 -1
  78. package/.next/server/server-reference-manifest.js +1 -1
  79. package/.next/server/server-reference-manifest.json +1 -1
  80. package/.next/static/chunks/{0tfripjpjgh0x.js → 0c4f164pt1cw~.js} +3 -3
  81. package/.next/static/chunks/{turbopack-0nj3aucu1vtlz.js → turbopack-07eje62zh5_9e.js} +3 -3
  82. package/.next/trace-build +1 -1
  83. package/THIRD-PARTY-NOTICES.md +1 -1
  84. package/dist-cli/BUILD_INFO.json +2 -2
  85. package/package.json +1 -1
  86. /package/.next/static/{AKrgjfjGvLuWkXofXFBpx → fX0xUAoWQHHhMjl4jpDOL}/_buildManifest.js +0 -0
  87. /package/.next/static/{AKrgjfjGvLuWkXofXFBpx → fX0xUAoWQHHhMjl4jpDOL}/_clientMiddlewareManifest.js +0 -0
  88. /package/.next/static/{AKrgjfjGvLuWkXofXFBpx → fX0xUAoWQHHhMjl4jpDOL}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- ;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="13a22d65-f739-c8ba-3d2b-55863a0ac923")}catch(e){}}();
1
+ ;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="0318912e-f27f-c590-a9da-d4a122810be1")}catch(e){}}();
2
2
  module.exports=[62955,e=>{"use strict";e.s(["ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED",0,"aborted","ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED",0,"handled","ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED",0,"skipped","ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED",0,"unhandled","ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED",0,"acquired","ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER",0,"endpoint_limiter","ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER",0,"global_limiter","ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED",0,"request_canceled","ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE",0,"failure","ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS",0,"success","ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT",0,"aspnetcore.diagnostics.exception.result","ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE",0,"aspnetcore.diagnostics.handler.type","ATTR_ASPNETCORE_RATE_LIMITING_POLICY",0,"aspnetcore.rate_limiting.policy","ATTR_ASPNETCORE_RATE_LIMITING_RESULT",0,"aspnetcore.rate_limiting.result","ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED",0,"aspnetcore.request.is_unhandled","ATTR_ASPNETCORE_ROUTING_IS_FALLBACK",0,"aspnetcore.routing.is_fallback","ATTR_ASPNETCORE_ROUTING_MATCH_STATUS",0,"aspnetcore.routing.match_status","ATTR_ASPNETCORE_USER_IS_AUTHENTICATED",0,"aspnetcore.user.is_authenticated","ATTR_CLIENT_ADDRESS",0,"client.address","ATTR_CLIENT_PORT",0,"client.port","ATTR_CODE_COLUMN_NUMBER",0,"code.column.number","ATTR_CODE_FILE_PATH",0,"code.file.path","ATTR_CODE_FUNCTION_NAME",0,"code.function.name","ATTR_CODE_LINE_NUMBER",0,"code.line.number","ATTR_CODE_STACKTRACE",0,"code.stacktrace","ATTR_DB_COLLECTION_NAME",0,"db.collection.name","ATTR_DB_NAMESPACE",0,"db.namespace","ATTR_DB_OPERATION_BATCH_SIZE",0,"db.operation.batch.size","ATTR_DB_OPERATION_NAME",0,"db.operation.name","ATTR_DB_QUERY_SUMMARY",0,"db.query.summary","ATTR_DB_QUERY_TEXT",0,"db.query.text","ATTR_DB_RESPONSE_STATUS_CODE",0,"db.response.status_code","ATTR_DB_STORED_PROCEDURE_NAME",0,"db.stored_procedure.name","ATTR_DB_SYSTEM_NAME",0,"db.system.name","ATTR_DEPLOYMENT_ENVIRONMENT_NAME",0,"deployment.environment.name","ATTR_DOTNET_GC_HEAP_GENERATION",0,"dotnet.gc.heap.generation","ATTR_ERROR_TYPE",0,"error.type","ATTR_EXCEPTION_ESCAPED",0,"exception.escaped","ATTR_EXCEPTION_MESSAGE",0,"exception.message","ATTR_EXCEPTION_STACKTRACE",0,"exception.stacktrace","ATTR_EXCEPTION_TYPE",0,"exception.type","ATTR_HTTP_REQUEST_HEADER",0,e=>`http.request.header.${e}`,"ATTR_HTTP_REQUEST_METHOD",0,"http.request.method","ATTR_HTTP_REQUEST_METHOD_ORIGINAL",0,"http.request.method_original","ATTR_HTTP_REQUEST_RESEND_COUNT",0,"http.request.resend_count","ATTR_HTTP_RESPONSE_HEADER",0,e=>`http.response.header.${e}`,"ATTR_HTTP_RESPONSE_STATUS_CODE",0,"http.response.status_code","ATTR_HTTP_ROUTE",0,"http.route","ATTR_JVM_GC_ACTION",0,"jvm.gc.action","ATTR_JVM_GC_NAME",0,"jvm.gc.name","ATTR_JVM_MEMORY_POOL_NAME",0,"jvm.memory.pool.name","ATTR_JVM_MEMORY_TYPE",0,"jvm.memory.type","ATTR_JVM_THREAD_DAEMON",0,"jvm.thread.daemon","ATTR_JVM_THREAD_STATE",0,"jvm.thread.state","ATTR_NETWORK_LOCAL_ADDRESS",0,"network.local.address","ATTR_NETWORK_LOCAL_PORT",0,"network.local.port","ATTR_NETWORK_PEER_ADDRESS",0,"network.peer.address","ATTR_NETWORK_PEER_PORT",0,"network.peer.port","ATTR_NETWORK_PROTOCOL_NAME",0,"network.protocol.name","ATTR_NETWORK_PROTOCOL_VERSION",0,"network.protocol.version","ATTR_NETWORK_TRANSPORT",0,"network.transport","ATTR_NETWORK_TYPE",0,"network.type","ATTR_OTEL_EVENT_NAME",0,"otel.event.name","ATTR_OTEL_SCOPE_NAME",0,"otel.scope.name","ATTR_OTEL_SCOPE_VERSION",0,"otel.scope.version","ATTR_OTEL_STATUS_CODE",0,"otel.status_code","ATTR_OTEL_STATUS_DESCRIPTION",0,"otel.status_description","ATTR_SERVER_ADDRESS",0,"server.address","ATTR_SERVER_PORT",0,"server.port","ATTR_SERVICE_INSTANCE_ID",0,"service.instance.id","ATTR_SERVICE_NAME",0,"service.name","ATTR_SERVICE_NAMESPACE",0,"service.namespace","ATTR_SERVICE_VERSION",0,"service.version","ATTR_SIGNALR_CONNECTION_STATUS",0,"signalr.connection.status","ATTR_SIGNALR_TRANSPORT",0,"signalr.transport","ATTR_TELEMETRY_DISTRO_NAME",0,"telemetry.distro.name","ATTR_TELEMETRY_DISTRO_VERSION",0,"telemetry.distro.version","ATTR_TELEMETRY_SDK_LANGUAGE",0,"telemetry.sdk.language","ATTR_TELEMETRY_SDK_NAME",0,"telemetry.sdk.name","ATTR_TELEMETRY_SDK_VERSION",0,"telemetry.sdk.version","ATTR_URL_FRAGMENT",0,"url.fragment","ATTR_URL_FULL",0,"url.full","ATTR_URL_PATH",0,"url.path","ATTR_URL_QUERY",0,"url.query","ATTR_URL_SCHEME",0,"url.scheme","ATTR_USER_AGENT_ORIGINAL",0,"user_agent.original","DB_SYSTEM_NAME_VALUE_MARIADB",0,"mariadb","DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER",0,"microsoft.sql_server","DB_SYSTEM_NAME_VALUE_MYSQL",0,"mysql","DB_SYSTEM_NAME_VALUE_POSTGRESQL",0,"postgresql","DEPLOYMENT_ENVIRONMENT_NAME_VALUE_DEVELOPMENT",0,"development","DEPLOYMENT_ENVIRONMENT_NAME_VALUE_PRODUCTION",0,"production","DEPLOYMENT_ENVIRONMENT_NAME_VALUE_STAGING",0,"staging","DEPLOYMENT_ENVIRONMENT_NAME_VALUE_TEST",0,"test","DOTNET_GC_HEAP_GENERATION_VALUE_GEN0",0,"gen0","DOTNET_GC_HEAP_GENERATION_VALUE_GEN1",0,"gen1","DOTNET_GC_HEAP_GENERATION_VALUE_GEN2",0,"gen2","DOTNET_GC_HEAP_GENERATION_VALUE_LOH",0,"loh","DOTNET_GC_HEAP_GENERATION_VALUE_POH",0,"poh","ERROR_TYPE_VALUE_OTHER",0,"_OTHER","HTTP_REQUEST_METHOD_VALUE_CONNECT",0,"CONNECT","HTTP_REQUEST_METHOD_VALUE_DELETE",0,"DELETE","HTTP_REQUEST_METHOD_VALUE_GET",0,"GET","HTTP_REQUEST_METHOD_VALUE_HEAD",0,"HEAD","HTTP_REQUEST_METHOD_VALUE_OPTIONS",0,"OPTIONS","HTTP_REQUEST_METHOD_VALUE_OTHER",0,"_OTHER","HTTP_REQUEST_METHOD_VALUE_PATCH",0,"PATCH","HTTP_REQUEST_METHOD_VALUE_POST",0,"POST","HTTP_REQUEST_METHOD_VALUE_PUT",0,"PUT","HTTP_REQUEST_METHOD_VALUE_TRACE",0,"TRACE","JVM_MEMORY_TYPE_VALUE_HEAP",0,"heap","JVM_MEMORY_TYPE_VALUE_NON_HEAP",0,"non_heap","JVM_THREAD_STATE_VALUE_BLOCKED",0,"blocked","JVM_THREAD_STATE_VALUE_NEW",0,"new","JVM_THREAD_STATE_VALUE_RUNNABLE",0,"runnable","JVM_THREAD_STATE_VALUE_TERMINATED",0,"terminated","JVM_THREAD_STATE_VALUE_TIMED_WAITING",0,"timed_waiting","JVM_THREAD_STATE_VALUE_WAITING",0,"waiting","NETWORK_TRANSPORT_VALUE_PIPE",0,"pipe","NETWORK_TRANSPORT_VALUE_QUIC",0,"quic","NETWORK_TRANSPORT_VALUE_TCP",0,"tcp","NETWORK_TRANSPORT_VALUE_UDP",0,"udp","NETWORK_TRANSPORT_VALUE_UNIX",0,"unix","NETWORK_TYPE_VALUE_IPV4",0,"ipv4","NETWORK_TYPE_VALUE_IPV6",0,"ipv6","OTEL_STATUS_CODE_VALUE_ERROR",0,"ERROR","OTEL_STATUS_CODE_VALUE_OK",0,"OK","SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN",0,"app_shutdown","SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE",0,"normal_closure","SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT",0,"timeout","SIGNALR_TRANSPORT_VALUE_LONG_POLLING",0,"long_polling","SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS",0,"server_sent_events","SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS",0,"web_sockets","TELEMETRY_SDK_LANGUAGE_VALUE_CPP",0,"cpp","TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET",0,"dotnet","TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG",0,"erlang","TELEMETRY_SDK_LANGUAGE_VALUE_GO",0,"go","TELEMETRY_SDK_LANGUAGE_VALUE_JAVA",0,"java","TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS",0,"nodejs","TELEMETRY_SDK_LANGUAGE_VALUE_PHP",0,"php","TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON",0,"python","TELEMETRY_SDK_LANGUAGE_VALUE_RUBY",0,"ruby","TELEMETRY_SDK_LANGUAGE_VALUE_RUST",0,"rust","TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT",0,"swift","TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS",0,"webjs"])},216835,e=>{"use strict";function t(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];n&&(t[String(n).toUpperCase().replace(/[-.]/g,"_")]=n)}return t}e.s([],282781),e.i(282781),e.s([],633312),e.i(633312);let n="aws.lambda.invoked_arn",r="db.system",o="db.connection_string",a="db.user",i="db.jdbc.driver_classname",s="db.name",l="db.statement",u="db.operation",c="db.mssql.instance_name",p="db.cassandra.keyspace",_="db.cassandra.page_size",T="db.cassandra.consistency_level",S="db.cassandra.table",E="db.cassandra.idempotence",d="db.cassandra.speculative_execution_count",g="db.cassandra.coordinator.id",A="db.cassandra.coordinator.dc",m="db.hbase.namespace",R="db.redis.database_index",h="db.mongodb.collection",f="db.sql.table",N="exception.type",I="exception.message",y="exception.stacktrace",b="exception.escaped",O="faas.trigger",C="faas.execution",M="faas.document.collection",L="faas.document.operation",P="faas.document.time",U="faas.document.name",v="faas.time",D="faas.cron",G="faas.coldstart",B="faas.invoked_name",x="faas.invoked_provider",V="faas.invoked_region",w="net.transport",k="net.peer.ip",H="net.peer.port",Y="net.peer.name",F="net.host.ip",W="net.host.port",j="net.host.name",K="net.host.connection.type",X="net.host.connection.subtype",Z="net.host.carrier.name",J="net.host.carrier.mcc",Q="net.host.carrier.mnc",z="net.host.carrier.icc",$="peer.service",q="enduser.id",ee="enduser.role",et="enduser.scope",en="thread.id",er="thread.name",eo="code.function",ea="code.namespace",ei="code.filepath",es="code.lineno",el="http.method",eu="http.url",ec="http.target",ep="http.host",e_="http.scheme",eT="http.status_code",eS="http.flavor",eE="http.user_agent",ed="http.request_content_length",eg="http.request_content_length_uncompressed",eA="http.response_content_length",em="http.response_content_length_uncompressed",eR="http.server_name",eh="http.route",ef="http.client_ip",eN="aws.dynamodb.table_names",eI="aws.dynamodb.consumed_capacity",ey="aws.dynamodb.item_collection_metrics",eb="aws.dynamodb.provisioned_read_capacity",eO="aws.dynamodb.provisioned_write_capacity",eC="aws.dynamodb.consistent_read",eM="aws.dynamodb.projection",eL="aws.dynamodb.limit",eP="aws.dynamodb.attributes_to_get",eU="aws.dynamodb.index_name",ev="aws.dynamodb.select",eD="aws.dynamodb.global_secondary_indexes",eG="aws.dynamodb.local_secondary_indexes",eB="aws.dynamodb.exclusive_start_table",ex="aws.dynamodb.table_count",eV="aws.dynamodb.scan_forward",ew="aws.dynamodb.segment",ek="aws.dynamodb.total_segments",eH="aws.dynamodb.count",eY="aws.dynamodb.scanned_count",eF="aws.dynamodb.attribute_definitions",eW="aws.dynamodb.global_secondary_index_updates",ej="messaging.system",eK="messaging.destination",eX="messaging.destination_kind",eZ="messaging.temp_destination",eJ="messaging.protocol",eQ="messaging.protocol_version",ez="messaging.url",e$="messaging.message_id",eq="messaging.conversation_id",e0="messaging.message_payload_size_bytes",e1="messaging.message_payload_compressed_size_bytes",e2="messaging.operation",e5="messaging.consumer_id",e9="messaging.rabbitmq.routing_key",e3="messaging.kafka.message_key",e4="messaging.kafka.consumer_group",e8="messaging.kafka.client_id",e7="messaging.kafka.partition",e6="messaging.kafka.tombstone",te="rpc.system",tt="rpc.service",tn="rpc.method",tr="rpc.grpc.status_code",to="rpc.jsonrpc.version",ta="rpc.jsonrpc.request_id",ti="rpc.jsonrpc.error_code",ts="rpc.jsonrpc.error_message",tl="message.type",tu="message.id",tc="message.compressed_size",tp="message.uncompressed_size",t_=t([n,r,o,a,i,s,l,u,c,p,_,T,S,E,d,g,A,m,R,h,f,N,I,y,b,O,C,M,L,P,U,v,D,G,B,x,V,w,k,H,Y,F,W,j,K,X,Z,J,Q,z,$,q,ee,et,en,er,eo,ea,ei,es,el,eu,ec,ep,e_,eT,eS,eE,ed,eg,eA,em,eR,eh,ef,eN,eI,ey,eb,eO,eC,eM,eL,eP,eU,ev,eD,eG,eB,ex,eV,ew,ek,eH,eY,eF,eW,ej,eK,eX,eZ,eJ,eQ,ez,e$,eq,e0,e1,e2,e5,e9,e3,e4,e8,e7,e6,te,tt,tn,tr,to,ta,ti,ts,tl,tu,tc,tp]),tT="other_sql",tS="mssql",tE="mysql",td="oracle",tg="postgresql",tA="redshift",tm="hive",tR="cloudscape",th="hsqldb",tf="progress",tN="maxdb",tI="hanadb",ty="ingres",tb="firstsql",tO="cache",tC="adabas",tM="firebird",tL="derby",tP="filemaker",tU="informix",tv="instantdb",tD="interbase",tG="mariadb",tB="netezza",tx="pervasive",tV="pointbase",tw="sqlite",tk="sybase",tH="teradata",tY="vertica",tF="coldfusion",tW="cassandra",tj="hbase",tK="mongodb",tX="redis",tZ="couchbase",tJ="couchdb",tQ="cosmosdb",tz="dynamodb",t$="neo4j",tq="geode",t0="elasticsearch",t1="memcached",t2="cockroachdb",t5=t([tT,tS,tE,td,"db2",tg,tA,tm,tR,th,tf,tN,tI,ty,tb,"edb",tO,tC,tM,tL,tP,tU,tv,tD,tG,tB,tx,tV,tw,tk,tH,tY,"h2",tF,tW,tj,tK,tX,tZ,tJ,tQ,tz,t$,tq,t0,t1,t2]),t9="each_quorum",t3="quorum",t4="local_quorum",t8="three",t7="local_one",t6="serial",ne="local_serial",nt=t(["all",t9,t3,t4,"one","two",t8,t7,"any",t6,ne]),nn="datasource",nr="http",no="pubsub",na="timer",ni="other",ns=t([nn,nr,no,na,ni]),nl="insert",nu="edit",nc="delete",np=t([nl,nu,nc]),n_="alibaba_cloud",nT="azure",nS=t([n_,"aws",nT,"gcp"]),nE="ip_tcp",nd="ip_udp",ng="unix",nA="pipe",nm="inproc",nR="other",nh=t([nE,nd,"ip",ng,nA,nm,nR]),nf="wifi",nN="wired",nI="cell",ny="unavailable",nb="unknown",nO=t([nf,nN,nI,ny,nb]),nC="gprs",nM="edge",nL="umts",nP="cdma",nU="evdo_0",nv="evdo_a",nD="cdma2000_1xrtt",nG="hsdpa",nB="hsupa",nx="hspa",nV="iden",nw="evdo_b",nk="ehrpd",nH="hspap",nY="td_scdma",nF="iwlan",nW="nrnsa",nj="lte_ca",nK=t([nC,nM,nL,nP,nU,nv,nD,nG,nB,nx,nV,nw,"lte",nk,nH,"gsm",nY,nF,"nr",nW,nj]),nX="SPDY",nZ="QUIC",nJ={HTTP_1_0:"1.0",HTTP_1_1:"1.1",HTTP_2_0:"2.0",SPDY:nX,QUIC:nZ},nQ="queue",nz="topic",n$=t([nQ,nz]),nq="receive",n0="process",n1=t([nq,n0]),n2={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15,UNAUTHENTICATED:16},n5="SENT",n9="RECEIVED",n3=t([n5,n9]);e.s(["DBCASSANDRACONSISTENCYLEVELVALUES_ALL",0,"all","DBCASSANDRACONSISTENCYLEVELVALUES_ANY",0,"any","DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM",0,t9,"DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE",0,t7,"DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM",0,t4,"DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL",0,ne,"DBCASSANDRACONSISTENCYLEVELVALUES_ONE",0,"one","DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM",0,t3,"DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL",0,t6,"DBCASSANDRACONSISTENCYLEVELVALUES_THREE",0,t8,"DBCASSANDRACONSISTENCYLEVELVALUES_TWO",0,"two","DBSYSTEMVALUES_ADABAS",0,tC,"DBSYSTEMVALUES_CACHE",0,tO,"DBSYSTEMVALUES_CASSANDRA",0,tW,"DBSYSTEMVALUES_CLOUDSCAPE",0,tR,"DBSYSTEMVALUES_COCKROACHDB",0,t2,"DBSYSTEMVALUES_COLDFUSION",0,tF,"DBSYSTEMVALUES_COSMOSDB",0,tQ,"DBSYSTEMVALUES_COUCHBASE",0,tZ,"DBSYSTEMVALUES_COUCHDB",0,tJ,"DBSYSTEMVALUES_DB2",0,"db2","DBSYSTEMVALUES_DERBY",0,tL,"DBSYSTEMVALUES_DYNAMODB",0,tz,"DBSYSTEMVALUES_EDB",0,"edb","DBSYSTEMVALUES_ELASTICSEARCH",0,t0,"DBSYSTEMVALUES_FILEMAKER",0,tP,"DBSYSTEMVALUES_FIREBIRD",0,tM,"DBSYSTEMVALUES_FIRSTSQL",0,tb,"DBSYSTEMVALUES_GEODE",0,tq,"DBSYSTEMVALUES_H2",0,"h2","DBSYSTEMVALUES_HANADB",0,tI,"DBSYSTEMVALUES_HBASE",0,tj,"DBSYSTEMVALUES_HIVE",0,tm,"DBSYSTEMVALUES_HSQLDB",0,th,"DBSYSTEMVALUES_INFORMIX",0,tU,"DBSYSTEMVALUES_INGRES",0,ty,"DBSYSTEMVALUES_INSTANTDB",0,tv,"DBSYSTEMVALUES_INTERBASE",0,tD,"DBSYSTEMVALUES_MARIADB",0,tG,"DBSYSTEMVALUES_MAXDB",0,tN,"DBSYSTEMVALUES_MEMCACHED",0,t1,"DBSYSTEMVALUES_MONGODB",0,tK,"DBSYSTEMVALUES_MSSQL",0,tS,"DBSYSTEMVALUES_MYSQL",0,tE,"DBSYSTEMVALUES_NEO4J",0,t$,"DBSYSTEMVALUES_NETEZZA",0,tB,"DBSYSTEMVALUES_ORACLE",0,td,"DBSYSTEMVALUES_OTHER_SQL",0,tT,"DBSYSTEMVALUES_PERVASIVE",0,tx,"DBSYSTEMVALUES_POINTBASE",0,tV,"DBSYSTEMVALUES_POSTGRESQL",0,tg,"DBSYSTEMVALUES_PROGRESS",0,tf,"DBSYSTEMVALUES_REDIS",0,tX,"DBSYSTEMVALUES_REDSHIFT",0,tA,"DBSYSTEMVALUES_SQLITE",0,tw,"DBSYSTEMVALUES_SYBASE",0,tk,"DBSYSTEMVALUES_TERADATA",0,tH,"DBSYSTEMVALUES_VERTICA",0,tY,"DbCassandraConsistencyLevelValues",0,nt,"DbSystemValues",0,t5,"FAASDOCUMENTOPERATIONVALUES_DELETE",0,nc,"FAASDOCUMENTOPERATIONVALUES_EDIT",0,nu,"FAASDOCUMENTOPERATIONVALUES_INSERT",0,nl,"FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD",0,n_,"FAASINVOKEDPROVIDERVALUES_AWS",0,"aws","FAASINVOKEDPROVIDERVALUES_AZURE",0,nT,"FAASINVOKEDPROVIDERVALUES_GCP",0,"gcp","FAASTRIGGERVALUES_DATASOURCE",0,nn,"FAASTRIGGERVALUES_HTTP",0,nr,"FAASTRIGGERVALUES_OTHER",0,ni,"FAASTRIGGERVALUES_PUBSUB",0,no,"FAASTRIGGERVALUES_TIMER",0,na,"FaasDocumentOperationValues",0,np,"FaasInvokedProviderValues",0,nS,"FaasTriggerValues",0,ns,"HTTPFLAVORVALUES_HTTP_1_0",0,"1.0","HTTPFLAVORVALUES_HTTP_1_1",0,"1.1","HTTPFLAVORVALUES_HTTP_2_0",0,"2.0","HTTPFLAVORVALUES_QUIC",0,nZ,"HTTPFLAVORVALUES_SPDY",0,nX,"HttpFlavorValues",0,nJ,"MESSAGETYPEVALUES_RECEIVED",0,n9,"MESSAGETYPEVALUES_SENT",0,n5,"MESSAGINGDESTINATIONKINDVALUES_QUEUE",0,nQ,"MESSAGINGDESTINATIONKINDVALUES_TOPIC",0,nz,"MESSAGINGOPERATIONVALUES_PROCESS",0,n0,"MESSAGINGOPERATIONVALUES_RECEIVE",0,nq,"MessageTypeValues",0,n3,"MessagingDestinationKindValues",0,n$,"MessagingOperationValues",0,n1,"NETHOSTCONNECTIONSUBTYPEVALUES_CDMA",0,nP,"NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT",0,nD,"NETHOSTCONNECTIONSUBTYPEVALUES_EDGE",0,nM,"NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD",0,nk,"NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0",0,nU,"NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A",0,nv,"NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B",0,nw,"NETHOSTCONNECTIONSUBTYPEVALUES_GPRS",0,nC,"NETHOSTCONNECTIONSUBTYPEVALUES_GSM",0,"gsm","NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA",0,nG,"NETHOSTCONNECTIONSUBTYPEVALUES_HSPA",0,nx,"NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP",0,nH,"NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA",0,nB,"NETHOSTCONNECTIONSUBTYPEVALUES_IDEN",0,nV,"NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN",0,nF,"NETHOSTCONNECTIONSUBTYPEVALUES_LTE",0,"lte","NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA",0,nj,"NETHOSTCONNECTIONSUBTYPEVALUES_NR",0,"nr","NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA",0,nW,"NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA",0,nY,"NETHOSTCONNECTIONSUBTYPEVALUES_UMTS",0,nL,"NETHOSTCONNECTIONTYPEVALUES_CELL",0,nI,"NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE",0,ny,"NETHOSTCONNECTIONTYPEVALUES_UNKNOWN",0,nb,"NETHOSTCONNECTIONTYPEVALUES_WIFI",0,nf,"NETHOSTCONNECTIONTYPEVALUES_WIRED",0,nN,"NETTRANSPORTVALUES_INPROC",0,nm,"NETTRANSPORTVALUES_IP",0,"ip","NETTRANSPORTVALUES_IP_TCP",0,nE,"NETTRANSPORTVALUES_IP_UDP",0,nd,"NETTRANSPORTVALUES_OTHER",0,nR,"NETTRANSPORTVALUES_PIPE",0,nA,"NETTRANSPORTVALUES_UNIX",0,ng,"NetHostConnectionSubtypeValues",0,nK,"NetHostConnectionTypeValues",0,nO,"NetTransportValues",0,nh,"RPCGRPCSTATUSCODEVALUES_ABORTED",0,10,"RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS",0,6,"RPCGRPCSTATUSCODEVALUES_CANCELLED",0,1,"RPCGRPCSTATUSCODEVALUES_DATA_LOSS",0,15,"RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED",0,4,"RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION",0,9,"RPCGRPCSTATUSCODEVALUES_INTERNAL",0,13,"RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT",0,3,"RPCGRPCSTATUSCODEVALUES_NOT_FOUND",0,5,"RPCGRPCSTATUSCODEVALUES_OK",0,0,"RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE",0,11,"RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED",0,7,"RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED",0,8,"RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED",0,16,"RPCGRPCSTATUSCODEVALUES_UNAVAILABLE",0,14,"RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED",0,12,"RPCGRPCSTATUSCODEVALUES_UNKNOWN",0,2,"RpcGrpcStatusCodeValues",0,n2,"SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET",0,eP,"SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS",0,eF,"SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ",0,eC,"SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY",0,eI,"SEMATTRS_AWS_DYNAMODB_COUNT",0,eH,"SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE",0,eB,"SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES",0,eD,"SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES",0,eW,"SEMATTRS_AWS_DYNAMODB_INDEX_NAME",0,eU,"SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS",0,ey,"SEMATTRS_AWS_DYNAMODB_LIMIT",0,eL,"SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES",0,eG,"SEMATTRS_AWS_DYNAMODB_PROJECTION",0,eM,"SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY",0,eb,"SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY",0,eO,"SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT",0,eY,"SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD",0,eV,"SEMATTRS_AWS_DYNAMODB_SEGMENT",0,ew,"SEMATTRS_AWS_DYNAMODB_SELECT",0,ev,"SEMATTRS_AWS_DYNAMODB_TABLE_COUNT",0,ex,"SEMATTRS_AWS_DYNAMODB_TABLE_NAMES",0,eN,"SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS",0,ek,"SEMATTRS_AWS_LAMBDA_INVOKED_ARN",0,n,"SEMATTRS_CODE_FILEPATH",0,ei,"SEMATTRS_CODE_FUNCTION",0,eo,"SEMATTRS_CODE_LINENO",0,es,"SEMATTRS_CODE_NAMESPACE",0,ea,"SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL",0,T,"SEMATTRS_DB_CASSANDRA_COORDINATOR_DC",0,A,"SEMATTRS_DB_CASSANDRA_COORDINATOR_ID",0,g,"SEMATTRS_DB_CASSANDRA_IDEMPOTENCE",0,E,"SEMATTRS_DB_CASSANDRA_KEYSPACE",0,p,"SEMATTRS_DB_CASSANDRA_PAGE_SIZE",0,_,"SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT",0,d,"SEMATTRS_DB_CASSANDRA_TABLE",0,S,"SEMATTRS_DB_CONNECTION_STRING",0,o,"SEMATTRS_DB_HBASE_NAMESPACE",0,m,"SEMATTRS_DB_JDBC_DRIVER_CLASSNAME",0,i,"SEMATTRS_DB_MONGODB_COLLECTION",0,h,"SEMATTRS_DB_MSSQL_INSTANCE_NAME",0,c,"SEMATTRS_DB_NAME",0,s,"SEMATTRS_DB_OPERATION",0,u,"SEMATTRS_DB_REDIS_DATABASE_INDEX",0,R,"SEMATTRS_DB_SQL_TABLE",0,f,"SEMATTRS_DB_STATEMENT",0,l,"SEMATTRS_DB_SYSTEM",0,r,"SEMATTRS_DB_USER",0,a,"SEMATTRS_ENDUSER_ID",0,q,"SEMATTRS_ENDUSER_ROLE",0,ee,"SEMATTRS_ENDUSER_SCOPE",0,et,"SEMATTRS_EXCEPTION_ESCAPED",0,b,"SEMATTRS_EXCEPTION_MESSAGE",0,I,"SEMATTRS_EXCEPTION_STACKTRACE",0,y,"SEMATTRS_EXCEPTION_TYPE",0,N,"SEMATTRS_FAAS_COLDSTART",0,G,"SEMATTRS_FAAS_CRON",0,D,"SEMATTRS_FAAS_DOCUMENT_COLLECTION",0,M,"SEMATTRS_FAAS_DOCUMENT_NAME",0,U,"SEMATTRS_FAAS_DOCUMENT_OPERATION",0,L,"SEMATTRS_FAAS_DOCUMENT_TIME",0,P,"SEMATTRS_FAAS_EXECUTION",0,C,"SEMATTRS_FAAS_INVOKED_NAME",0,B,"SEMATTRS_FAAS_INVOKED_PROVIDER",0,x,"SEMATTRS_FAAS_INVOKED_REGION",0,V,"SEMATTRS_FAAS_TIME",0,v,"SEMATTRS_FAAS_TRIGGER",0,O,"SEMATTRS_HTTP_CLIENT_IP",0,ef,"SEMATTRS_HTTP_FLAVOR",0,eS,"SEMATTRS_HTTP_HOST",0,ep,"SEMATTRS_HTTP_METHOD",0,el,"SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH",0,ed,"SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED",0,eg,"SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH",0,eA,"SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED",0,em,"SEMATTRS_HTTP_ROUTE",0,eh,"SEMATTRS_HTTP_SCHEME",0,e_,"SEMATTRS_HTTP_SERVER_NAME",0,eR,"SEMATTRS_HTTP_STATUS_CODE",0,eT,"SEMATTRS_HTTP_TARGET",0,ec,"SEMATTRS_HTTP_URL",0,eu,"SEMATTRS_HTTP_USER_AGENT",0,eE,"SEMATTRS_MESSAGE_COMPRESSED_SIZE",0,tc,"SEMATTRS_MESSAGE_ID",0,tu,"SEMATTRS_MESSAGE_TYPE",0,tl,"SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE",0,tp,"SEMATTRS_MESSAGING_CONSUMER_ID",0,e5,"SEMATTRS_MESSAGING_CONVERSATION_ID",0,eq,"SEMATTRS_MESSAGING_DESTINATION",0,eK,"SEMATTRS_MESSAGING_DESTINATION_KIND",0,eX,"SEMATTRS_MESSAGING_KAFKA_CLIENT_ID",0,e8,"SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP",0,e4,"SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY",0,e3,"SEMATTRS_MESSAGING_KAFKA_PARTITION",0,e7,"SEMATTRS_MESSAGING_KAFKA_TOMBSTONE",0,e6,"SEMATTRS_MESSAGING_MESSAGE_ID",0,e$,"SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES",0,e1,"SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES",0,e0,"SEMATTRS_MESSAGING_OPERATION",0,e2,"SEMATTRS_MESSAGING_PROTOCOL",0,eJ,"SEMATTRS_MESSAGING_PROTOCOL_VERSION",0,eQ,"SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY",0,e9,"SEMATTRS_MESSAGING_SYSTEM",0,ej,"SEMATTRS_MESSAGING_TEMP_DESTINATION",0,eZ,"SEMATTRS_MESSAGING_URL",0,ez,"SEMATTRS_NET_HOST_CARRIER_ICC",0,z,"SEMATTRS_NET_HOST_CARRIER_MCC",0,J,"SEMATTRS_NET_HOST_CARRIER_MNC",0,Q,"SEMATTRS_NET_HOST_CARRIER_NAME",0,Z,"SEMATTRS_NET_HOST_CONNECTION_SUBTYPE",0,X,"SEMATTRS_NET_HOST_CONNECTION_TYPE",0,K,"SEMATTRS_NET_HOST_IP",0,F,"SEMATTRS_NET_HOST_NAME",0,j,"SEMATTRS_NET_HOST_PORT",0,W,"SEMATTRS_NET_PEER_IP",0,k,"SEMATTRS_NET_PEER_NAME",0,Y,"SEMATTRS_NET_PEER_PORT",0,H,"SEMATTRS_NET_TRANSPORT",0,w,"SEMATTRS_PEER_SERVICE",0,$,"SEMATTRS_RPC_GRPC_STATUS_CODE",0,tr,"SEMATTRS_RPC_JSONRPC_ERROR_CODE",0,ti,"SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE",0,ts,"SEMATTRS_RPC_JSONRPC_REQUEST_ID",0,ta,"SEMATTRS_RPC_JSONRPC_VERSION",0,to,"SEMATTRS_RPC_METHOD",0,tn,"SEMATTRS_RPC_SERVICE",0,tt,"SEMATTRS_RPC_SYSTEM",0,te,"SEMATTRS_THREAD_ID",0,en,"SEMATTRS_THREAD_NAME",0,er,"SemanticAttributes",0,t_],557117),e.i(557117),e.s(["DBCASSANDRACONSISTENCYLEVELVALUES_ALL",0,"all","DBCASSANDRACONSISTENCYLEVELVALUES_ANY",0,"any","DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM",0,t9,"DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE",0,t7,"DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM",0,t4,"DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL",0,ne,"DBCASSANDRACONSISTENCYLEVELVALUES_ONE",0,"one","DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM",0,t3,"DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL",0,t6,"DBCASSANDRACONSISTENCYLEVELVALUES_THREE",0,t8,"DBCASSANDRACONSISTENCYLEVELVALUES_TWO",0,"two","DBSYSTEMVALUES_ADABAS",0,tC,"DBSYSTEMVALUES_CACHE",0,tO,"DBSYSTEMVALUES_CASSANDRA",0,tW,"DBSYSTEMVALUES_CLOUDSCAPE",0,tR,"DBSYSTEMVALUES_COCKROACHDB",0,t2,"DBSYSTEMVALUES_COLDFUSION",0,tF,"DBSYSTEMVALUES_COSMOSDB",0,tQ,"DBSYSTEMVALUES_COUCHBASE",0,tZ,"DBSYSTEMVALUES_COUCHDB",0,tJ,"DBSYSTEMVALUES_DB2",0,"db2","DBSYSTEMVALUES_DERBY",0,tL,"DBSYSTEMVALUES_DYNAMODB",0,tz,"DBSYSTEMVALUES_EDB",0,"edb","DBSYSTEMVALUES_ELASTICSEARCH",0,t0,"DBSYSTEMVALUES_FILEMAKER",0,tP,"DBSYSTEMVALUES_FIREBIRD",0,tM,"DBSYSTEMVALUES_FIRSTSQL",0,tb,"DBSYSTEMVALUES_GEODE",0,tq,"DBSYSTEMVALUES_H2",0,"h2","DBSYSTEMVALUES_HANADB",0,tI,"DBSYSTEMVALUES_HBASE",0,tj,"DBSYSTEMVALUES_HIVE",0,tm,"DBSYSTEMVALUES_HSQLDB",0,th,"DBSYSTEMVALUES_INFORMIX",0,tU,"DBSYSTEMVALUES_INGRES",0,ty,"DBSYSTEMVALUES_INSTANTDB",0,tv,"DBSYSTEMVALUES_INTERBASE",0,tD,"DBSYSTEMVALUES_MARIADB",0,tG,"DBSYSTEMVALUES_MAXDB",0,tN,"DBSYSTEMVALUES_MEMCACHED",0,t1,"DBSYSTEMVALUES_MONGODB",0,tK,"DBSYSTEMVALUES_MSSQL",0,tS,"DBSYSTEMVALUES_MYSQL",0,tE,"DBSYSTEMVALUES_NEO4J",0,t$,"DBSYSTEMVALUES_NETEZZA",0,tB,"DBSYSTEMVALUES_ORACLE",0,td,"DBSYSTEMVALUES_OTHER_SQL",0,tT,"DBSYSTEMVALUES_PERVASIVE",0,tx,"DBSYSTEMVALUES_POINTBASE",0,tV,"DBSYSTEMVALUES_POSTGRESQL",0,tg,"DBSYSTEMVALUES_PROGRESS",0,tf,"DBSYSTEMVALUES_REDIS",0,tX,"DBSYSTEMVALUES_REDSHIFT",0,tA,"DBSYSTEMVALUES_SQLITE",0,tw,"DBSYSTEMVALUES_SYBASE",0,tk,"DBSYSTEMVALUES_TERADATA",0,tH,"DBSYSTEMVALUES_VERTICA",0,tY,"DbCassandraConsistencyLevelValues",0,nt,"DbSystemValues",0,t5,"FAASDOCUMENTOPERATIONVALUES_DELETE",0,nc,"FAASDOCUMENTOPERATIONVALUES_EDIT",0,nu,"FAASDOCUMENTOPERATIONVALUES_INSERT",0,nl,"FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD",0,n_,"FAASINVOKEDPROVIDERVALUES_AWS",0,"aws","FAASINVOKEDPROVIDERVALUES_AZURE",0,nT,"FAASINVOKEDPROVIDERVALUES_GCP",0,"gcp","FAASTRIGGERVALUES_DATASOURCE",0,nn,"FAASTRIGGERVALUES_HTTP",0,nr,"FAASTRIGGERVALUES_OTHER",0,ni,"FAASTRIGGERVALUES_PUBSUB",0,no,"FAASTRIGGERVALUES_TIMER",0,na,"FaasDocumentOperationValues",0,np,"FaasInvokedProviderValues",0,nS,"FaasTriggerValues",0,ns,"HTTPFLAVORVALUES_HTTP_1_0",0,"1.0","HTTPFLAVORVALUES_HTTP_1_1",0,"1.1","HTTPFLAVORVALUES_HTTP_2_0",0,"2.0","HTTPFLAVORVALUES_QUIC",0,nZ,"HTTPFLAVORVALUES_SPDY",0,nX,"HttpFlavorValues",0,nJ,"MESSAGETYPEVALUES_RECEIVED",0,n9,"MESSAGETYPEVALUES_SENT",0,n5,"MESSAGINGDESTINATIONKINDVALUES_QUEUE",0,nQ,"MESSAGINGDESTINATIONKINDVALUES_TOPIC",0,nz,"MESSAGINGOPERATIONVALUES_PROCESS",0,n0,"MESSAGINGOPERATIONVALUES_RECEIVE",0,nq,"MessageTypeValues",0,n3,"MessagingDestinationKindValues",0,n$,"MessagingOperationValues",0,n1,"NETHOSTCONNECTIONSUBTYPEVALUES_CDMA",0,nP,"NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT",0,nD,"NETHOSTCONNECTIONSUBTYPEVALUES_EDGE",0,nM,"NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD",0,nk,"NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0",0,nU,"NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A",0,nv,"NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B",0,nw,"NETHOSTCONNECTIONSUBTYPEVALUES_GPRS",0,nC,"NETHOSTCONNECTIONSUBTYPEVALUES_GSM",0,"gsm","NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA",0,nG,"NETHOSTCONNECTIONSUBTYPEVALUES_HSPA",0,nx,"NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP",0,nH,"NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA",0,nB,"NETHOSTCONNECTIONSUBTYPEVALUES_IDEN",0,nV,"NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN",0,nF,"NETHOSTCONNECTIONSUBTYPEVALUES_LTE",0,"lte","NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA",0,nj,"NETHOSTCONNECTIONSUBTYPEVALUES_NR",0,"nr","NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA",0,nW,"NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA",0,nY,"NETHOSTCONNECTIONSUBTYPEVALUES_UMTS",0,nL,"NETHOSTCONNECTIONTYPEVALUES_CELL",0,nI,"NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE",0,ny,"NETHOSTCONNECTIONTYPEVALUES_UNKNOWN",0,nb,"NETHOSTCONNECTIONTYPEVALUES_WIFI",0,nf,"NETHOSTCONNECTIONTYPEVALUES_WIRED",0,nN,"NETTRANSPORTVALUES_INPROC",0,nm,"NETTRANSPORTVALUES_IP",0,"ip","NETTRANSPORTVALUES_IP_TCP",0,nE,"NETTRANSPORTVALUES_IP_UDP",0,nd,"NETTRANSPORTVALUES_OTHER",0,nR,"NETTRANSPORTVALUES_PIPE",0,nA,"NETTRANSPORTVALUES_UNIX",0,ng,"NetHostConnectionSubtypeValues",0,nK,"NetHostConnectionTypeValues",0,nO,"NetTransportValues",0,nh,"RPCGRPCSTATUSCODEVALUES_ABORTED",0,10,"RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS",0,6,"RPCGRPCSTATUSCODEVALUES_CANCELLED",0,1,"RPCGRPCSTATUSCODEVALUES_DATA_LOSS",0,15,"RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED",0,4,"RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION",0,9,"RPCGRPCSTATUSCODEVALUES_INTERNAL",0,13,"RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT",0,3,"RPCGRPCSTATUSCODEVALUES_NOT_FOUND",0,5,"RPCGRPCSTATUSCODEVALUES_OK",0,0,"RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE",0,11,"RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED",0,7,"RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED",0,8,"RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED",0,16,"RPCGRPCSTATUSCODEVALUES_UNAVAILABLE",0,14,"RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED",0,12,"RPCGRPCSTATUSCODEVALUES_UNKNOWN",0,2,"RpcGrpcStatusCodeValues",0,n2,"SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET",0,eP,"SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS",0,eF,"SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ",0,eC,"SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY",0,eI,"SEMATTRS_AWS_DYNAMODB_COUNT",0,eH,"SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE",0,eB,"SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES",0,eD,"SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES",0,eW,"SEMATTRS_AWS_DYNAMODB_INDEX_NAME",0,eU,"SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS",0,ey,"SEMATTRS_AWS_DYNAMODB_LIMIT",0,eL,"SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES",0,eG,"SEMATTRS_AWS_DYNAMODB_PROJECTION",0,eM,"SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY",0,eb,"SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY",0,eO,"SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT",0,eY,"SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD",0,eV,"SEMATTRS_AWS_DYNAMODB_SEGMENT",0,ew,"SEMATTRS_AWS_DYNAMODB_SELECT",0,ev,"SEMATTRS_AWS_DYNAMODB_TABLE_COUNT",0,ex,"SEMATTRS_AWS_DYNAMODB_TABLE_NAMES",0,eN,"SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS",0,ek,"SEMATTRS_AWS_LAMBDA_INVOKED_ARN",0,n,"SEMATTRS_CODE_FILEPATH",0,ei,"SEMATTRS_CODE_FUNCTION",0,eo,"SEMATTRS_CODE_LINENO",0,es,"SEMATTRS_CODE_NAMESPACE",0,ea,"SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL",0,T,"SEMATTRS_DB_CASSANDRA_COORDINATOR_DC",0,A,"SEMATTRS_DB_CASSANDRA_COORDINATOR_ID",0,g,"SEMATTRS_DB_CASSANDRA_IDEMPOTENCE",0,E,"SEMATTRS_DB_CASSANDRA_KEYSPACE",0,p,"SEMATTRS_DB_CASSANDRA_PAGE_SIZE",0,_,"SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT",0,d,"SEMATTRS_DB_CASSANDRA_TABLE",0,S,"SEMATTRS_DB_CONNECTION_STRING",0,o,"SEMATTRS_DB_HBASE_NAMESPACE",0,m,"SEMATTRS_DB_JDBC_DRIVER_CLASSNAME",0,i,"SEMATTRS_DB_MONGODB_COLLECTION",0,h,"SEMATTRS_DB_MSSQL_INSTANCE_NAME",0,c,"SEMATTRS_DB_NAME",0,s,"SEMATTRS_DB_OPERATION",0,u,"SEMATTRS_DB_REDIS_DATABASE_INDEX",0,R,"SEMATTRS_DB_SQL_TABLE",0,f,"SEMATTRS_DB_STATEMENT",0,l,"SEMATTRS_DB_SYSTEM",0,r,"SEMATTRS_DB_USER",0,a,"SEMATTRS_ENDUSER_ID",0,q,"SEMATTRS_ENDUSER_ROLE",0,ee,"SEMATTRS_ENDUSER_SCOPE",0,et,"SEMATTRS_EXCEPTION_ESCAPED",0,b,"SEMATTRS_EXCEPTION_MESSAGE",0,I,"SEMATTRS_EXCEPTION_STACKTRACE",0,y,"SEMATTRS_EXCEPTION_TYPE",0,N,"SEMATTRS_FAAS_COLDSTART",0,G,"SEMATTRS_FAAS_CRON",0,D,"SEMATTRS_FAAS_DOCUMENT_COLLECTION",0,M,"SEMATTRS_FAAS_DOCUMENT_NAME",0,U,"SEMATTRS_FAAS_DOCUMENT_OPERATION",0,L,"SEMATTRS_FAAS_DOCUMENT_TIME",0,P,"SEMATTRS_FAAS_EXECUTION",0,C,"SEMATTRS_FAAS_INVOKED_NAME",0,B,"SEMATTRS_FAAS_INVOKED_PROVIDER",0,x,"SEMATTRS_FAAS_INVOKED_REGION",0,V,"SEMATTRS_FAAS_TIME",0,v,"SEMATTRS_FAAS_TRIGGER",0,O,"SEMATTRS_HTTP_CLIENT_IP",0,ef,"SEMATTRS_HTTP_FLAVOR",0,eS,"SEMATTRS_HTTP_HOST",0,ep,"SEMATTRS_HTTP_METHOD",0,el,"SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH",0,ed,"SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED",0,eg,"SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH",0,eA,"SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED",0,em,"SEMATTRS_HTTP_ROUTE",0,eh,"SEMATTRS_HTTP_SCHEME",0,e_,"SEMATTRS_HTTP_SERVER_NAME",0,eR,"SEMATTRS_HTTP_STATUS_CODE",0,eT,"SEMATTRS_HTTP_TARGET",0,ec,"SEMATTRS_HTTP_URL",0,eu,"SEMATTRS_HTTP_USER_AGENT",0,eE,"SEMATTRS_MESSAGE_COMPRESSED_SIZE",0,tc,"SEMATTRS_MESSAGE_ID",0,tu,"SEMATTRS_MESSAGE_TYPE",0,tl,"SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE",0,tp,"SEMATTRS_MESSAGING_CONSUMER_ID",0,e5,"SEMATTRS_MESSAGING_CONVERSATION_ID",0,eq,"SEMATTRS_MESSAGING_DESTINATION",0,eK,"SEMATTRS_MESSAGING_DESTINATION_KIND",0,eX,"SEMATTRS_MESSAGING_KAFKA_CLIENT_ID",0,e8,"SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP",0,e4,"SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY",0,e3,"SEMATTRS_MESSAGING_KAFKA_PARTITION",0,e7,"SEMATTRS_MESSAGING_KAFKA_TOMBSTONE",0,e6,"SEMATTRS_MESSAGING_MESSAGE_ID",0,e$,"SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES",0,e1,"SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES",0,e0,"SEMATTRS_MESSAGING_OPERATION",0,e2,"SEMATTRS_MESSAGING_PROTOCOL",0,eJ,"SEMATTRS_MESSAGING_PROTOCOL_VERSION",0,eQ,"SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY",0,e9,"SEMATTRS_MESSAGING_SYSTEM",0,ej,"SEMATTRS_MESSAGING_TEMP_DESTINATION",0,eZ,"SEMATTRS_MESSAGING_URL",0,ez,"SEMATTRS_NET_HOST_CARRIER_ICC",0,z,"SEMATTRS_NET_HOST_CARRIER_MCC",0,J,"SEMATTRS_NET_HOST_CARRIER_MNC",0,Q,"SEMATTRS_NET_HOST_CARRIER_NAME",0,Z,"SEMATTRS_NET_HOST_CONNECTION_SUBTYPE",0,X,"SEMATTRS_NET_HOST_CONNECTION_TYPE",0,K,"SEMATTRS_NET_HOST_IP",0,F,"SEMATTRS_NET_HOST_NAME",0,j,"SEMATTRS_NET_HOST_PORT",0,W,"SEMATTRS_NET_PEER_IP",0,k,"SEMATTRS_NET_PEER_NAME",0,Y,"SEMATTRS_NET_PEER_PORT",0,H,"SEMATTRS_NET_TRANSPORT",0,w,"SEMATTRS_PEER_SERVICE",0,$,"SEMATTRS_RPC_GRPC_STATUS_CODE",0,tr,"SEMATTRS_RPC_JSONRPC_ERROR_CODE",0,ti,"SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE",0,ts,"SEMATTRS_RPC_JSONRPC_REQUEST_ID",0,ta,"SEMATTRS_RPC_JSONRPC_VERSION",0,to,"SEMATTRS_RPC_METHOD",0,tn,"SEMATTRS_RPC_SERVICE",0,tt,"SEMATTRS_RPC_SYSTEM",0,te,"SEMATTRS_THREAD_ID",0,en,"SEMATTRS_THREAD_NAME",0,er,"SemanticAttributes",0,t_],122498),e.i(122498),e.s([],357382),e.i(357382);let n4="cloud.provider",n8="cloud.account.id",n7="cloud.region",n6="cloud.availability_zone",re="cloud.platform",rt="aws.ecs.container.arn",rn="aws.ecs.cluster.arn",rr="aws.ecs.launchtype",ro="aws.ecs.task.arn",ra="aws.ecs.task.family",ri="aws.ecs.task.revision",rs="aws.eks.cluster.arn",rl="aws.log.group.names",ru="aws.log.group.arns",rc="aws.log.stream.names",rp="aws.log.stream.arns",r_="container.name",rT="container.id",rS="container.runtime",rE="container.image.name",rd="container.image.tag",rg="deployment.environment",rA="device.id",rm="device.model.identifier",rR="device.model.name",rh="faas.name",rf="faas.id",rN="faas.version",rI="faas.instance",ry="faas.max_memory",rb="host.id",rO="host.name",rC="host.type",rM="host.arch",rL="host.image.name",rP="host.image.id",rU="host.image.version",rv="k8s.cluster.name",rD="k8s.node.name",rG="k8s.node.uid",rB="k8s.namespace.name",rx="k8s.pod.uid",rV="k8s.pod.name",rw="k8s.container.name",rk="k8s.replicaset.uid",rH="k8s.replicaset.name",rY="k8s.deployment.uid",rF="k8s.deployment.name",rW="k8s.statefulset.uid",rj="k8s.statefulset.name",rK="k8s.daemonset.uid",rX="k8s.daemonset.name",rZ="k8s.job.uid",rJ="k8s.job.name",rQ="k8s.cronjob.uid",rz="k8s.cronjob.name",r$="os.type",rq="os.description",r0="os.name",r1="os.version",r2="process.pid",r5="process.executable.name",r9="process.executable.path",r3="process.command",r4="process.command_line",r8="process.command_args",r7="process.owner",r6="process.runtime.name",oe="process.runtime.version",ot="process.runtime.description",on="service.name",or="service.namespace",oo="service.instance.id",oa="service.version",oi="telemetry.sdk.name",os="telemetry.sdk.language",ol="telemetry.sdk.version",ou="telemetry.auto.version",oc="webengine.name",op="webengine.version",o_="webengine.description",oT=t([n4,n8,n7,n6,re,rt,rn,rr,ro,ra,ri,rs,rl,ru,rc,rp,r_,rT,rS,rE,rd,rg,rA,rm,rR,rh,rf,rN,rI,ry,rb,rO,rC,rM,rL,rP,rU,rv,rD,rG,rB,rx,rV,rw,rk,rH,rY,rF,rW,rj,rK,rX,rZ,rJ,rQ,rz,r$,rq,r0,r1,r2,r5,r9,r3,r4,r8,r7,r6,oe,ot,on,or,oo,oa,oi,os,ol,ou,oc,op,o_]),oS="alibaba_cloud",oE="azure",od=t([oS,"aws",oE,"gcp"]),og="alibaba_cloud_ecs",oA="alibaba_cloud_fc",om="aws_ec2",oR="aws_ecs",oh="aws_eks",of="aws_lambda",oN="aws_elastic_beanstalk",oI="azure_vm",oy="azure_container_instances",ob="azure_aks",oO="azure_functions",oC="azure_app_service",oM="gcp_compute_engine",oL="gcp_cloud_run",oP="gcp_kubernetes_engine",oU="gcp_cloud_functions",ov="gcp_app_engine",oD=t([og,oA,om,oR,oh,of,oN,oI,oy,ob,oO,oC,oM,oL,oP,oU,ov]),oG="fargate",oB=t(["ec2",oG]),ox="amd64",oV="arm32",ow="arm64",ok="ia64",oH="ppc32",oY="ppc64",oF=t([ox,oV,ow,ok,oH,oY,"x86"]),oW="windows",oj="linux",oK="darwin",oX="freebsd",oZ="netbsd",oJ="openbsd",oQ="dragonflybsd",oz="hpux",o$="solaris",oq="z_os",o0=t([oW,oj,oK,oX,oZ,oJ,oQ,oz,"aix",o$,oq]),o1="dotnet",o2="erlang",o5="java",o9="nodejs",o3="python",o4="ruby",o8="webjs",o7=t(["cpp",o1,o2,"go",o5,o9,"php",o3,o4,o8]);e.s(["AWSECSLAUNCHTYPEVALUES_EC2",0,"ec2","AWSECSLAUNCHTYPEVALUES_FARGATE",0,oG,"AwsEcsLaunchtypeValues",0,oB,"CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS",0,og,"CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC",0,oA,"CLOUDPLATFORMVALUES_AWS_EC2",0,om,"CLOUDPLATFORMVALUES_AWS_ECS",0,oR,"CLOUDPLATFORMVALUES_AWS_EKS",0,oh,"CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK",0,oN,"CLOUDPLATFORMVALUES_AWS_LAMBDA",0,of,"CLOUDPLATFORMVALUES_AZURE_AKS",0,ob,"CLOUDPLATFORMVALUES_AZURE_APP_SERVICE",0,oC,"CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES",0,oy,"CLOUDPLATFORMVALUES_AZURE_FUNCTIONS",0,oO,"CLOUDPLATFORMVALUES_AZURE_VM",0,oI,"CLOUDPLATFORMVALUES_GCP_APP_ENGINE",0,ov,"CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS",0,oU,"CLOUDPLATFORMVALUES_GCP_CLOUD_RUN",0,oL,"CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE",0,oM,"CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE",0,oP,"CLOUDPROVIDERVALUES_ALIBABA_CLOUD",0,oS,"CLOUDPROVIDERVALUES_AWS",0,"aws","CLOUDPROVIDERVALUES_AZURE",0,oE,"CLOUDPROVIDERVALUES_GCP",0,"gcp","CloudPlatformValues",0,oD,"CloudProviderValues",0,od,"HOSTARCHVALUES_AMD64",0,ox,"HOSTARCHVALUES_ARM32",0,oV,"HOSTARCHVALUES_ARM64",0,ow,"HOSTARCHVALUES_IA64",0,ok,"HOSTARCHVALUES_PPC32",0,oH,"HOSTARCHVALUES_PPC64",0,oY,"HOSTARCHVALUES_X86",0,"x86","HostArchValues",0,oF,"OSTYPEVALUES_AIX",0,"aix","OSTYPEVALUES_DARWIN",0,oK,"OSTYPEVALUES_DRAGONFLYBSD",0,oQ,"OSTYPEVALUES_FREEBSD",0,oX,"OSTYPEVALUES_HPUX",0,oz,"OSTYPEVALUES_LINUX",0,oj,"OSTYPEVALUES_NETBSD",0,oZ,"OSTYPEVALUES_OPENBSD",0,oJ,"OSTYPEVALUES_SOLARIS",0,o$,"OSTYPEVALUES_WINDOWS",0,oW,"OSTYPEVALUES_Z_OS",0,oq,"OsTypeValues",0,o0,"SEMRESATTRS_AWS_ECS_CLUSTER_ARN",0,rn,"SEMRESATTRS_AWS_ECS_CONTAINER_ARN",0,rt,"SEMRESATTRS_AWS_ECS_LAUNCHTYPE",0,rr,"SEMRESATTRS_AWS_ECS_TASK_ARN",0,ro,"SEMRESATTRS_AWS_ECS_TASK_FAMILY",0,ra,"SEMRESATTRS_AWS_ECS_TASK_REVISION",0,ri,"SEMRESATTRS_AWS_EKS_CLUSTER_ARN",0,rs,"SEMRESATTRS_AWS_LOG_GROUP_ARNS",0,ru,"SEMRESATTRS_AWS_LOG_GROUP_NAMES",0,rl,"SEMRESATTRS_AWS_LOG_STREAM_ARNS",0,rp,"SEMRESATTRS_AWS_LOG_STREAM_NAMES",0,rc,"SEMRESATTRS_CLOUD_ACCOUNT_ID",0,n8,"SEMRESATTRS_CLOUD_AVAILABILITY_ZONE",0,n6,"SEMRESATTRS_CLOUD_PLATFORM",0,re,"SEMRESATTRS_CLOUD_PROVIDER",0,n4,"SEMRESATTRS_CLOUD_REGION",0,n7,"SEMRESATTRS_CONTAINER_ID",0,rT,"SEMRESATTRS_CONTAINER_IMAGE_NAME",0,rE,"SEMRESATTRS_CONTAINER_IMAGE_TAG",0,rd,"SEMRESATTRS_CONTAINER_NAME",0,r_,"SEMRESATTRS_CONTAINER_RUNTIME",0,rS,"SEMRESATTRS_DEPLOYMENT_ENVIRONMENT",0,rg,"SEMRESATTRS_DEVICE_ID",0,rA,"SEMRESATTRS_DEVICE_MODEL_IDENTIFIER",0,rm,"SEMRESATTRS_DEVICE_MODEL_NAME",0,rR,"SEMRESATTRS_FAAS_ID",0,rf,"SEMRESATTRS_FAAS_INSTANCE",0,rI,"SEMRESATTRS_FAAS_MAX_MEMORY",0,ry,"SEMRESATTRS_FAAS_NAME",0,rh,"SEMRESATTRS_FAAS_VERSION",0,rN,"SEMRESATTRS_HOST_ARCH",0,rM,"SEMRESATTRS_HOST_ID",0,rb,"SEMRESATTRS_HOST_IMAGE_ID",0,rP,"SEMRESATTRS_HOST_IMAGE_NAME",0,rL,"SEMRESATTRS_HOST_IMAGE_VERSION",0,rU,"SEMRESATTRS_HOST_NAME",0,rO,"SEMRESATTRS_HOST_TYPE",0,rC,"SEMRESATTRS_K8S_CLUSTER_NAME",0,rv,"SEMRESATTRS_K8S_CONTAINER_NAME",0,rw,"SEMRESATTRS_K8S_CRONJOB_NAME",0,rz,"SEMRESATTRS_K8S_CRONJOB_UID",0,rQ,"SEMRESATTRS_K8S_DAEMONSET_NAME",0,rX,"SEMRESATTRS_K8S_DAEMONSET_UID",0,rK,"SEMRESATTRS_K8S_DEPLOYMENT_NAME",0,rF,"SEMRESATTRS_K8S_DEPLOYMENT_UID",0,rY,"SEMRESATTRS_K8S_JOB_NAME",0,rJ,"SEMRESATTRS_K8S_JOB_UID",0,rZ,"SEMRESATTRS_K8S_NAMESPACE_NAME",0,rB,"SEMRESATTRS_K8S_NODE_NAME",0,rD,"SEMRESATTRS_K8S_NODE_UID",0,rG,"SEMRESATTRS_K8S_POD_NAME",0,rV,"SEMRESATTRS_K8S_POD_UID",0,rx,"SEMRESATTRS_K8S_REPLICASET_NAME",0,rH,"SEMRESATTRS_K8S_REPLICASET_UID",0,rk,"SEMRESATTRS_K8S_STATEFULSET_NAME",0,rj,"SEMRESATTRS_K8S_STATEFULSET_UID",0,rW,"SEMRESATTRS_OS_DESCRIPTION",0,rq,"SEMRESATTRS_OS_NAME",0,r0,"SEMRESATTRS_OS_TYPE",0,r$,"SEMRESATTRS_OS_VERSION",0,r1,"SEMRESATTRS_PROCESS_COMMAND",0,r3,"SEMRESATTRS_PROCESS_COMMAND_ARGS",0,r8,"SEMRESATTRS_PROCESS_COMMAND_LINE",0,r4,"SEMRESATTRS_PROCESS_EXECUTABLE_NAME",0,r5,"SEMRESATTRS_PROCESS_EXECUTABLE_PATH",0,r9,"SEMRESATTRS_PROCESS_OWNER",0,r7,"SEMRESATTRS_PROCESS_PID",0,r2,"SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION",0,ot,"SEMRESATTRS_PROCESS_RUNTIME_NAME",0,r6,"SEMRESATTRS_PROCESS_RUNTIME_VERSION",0,oe,"SEMRESATTRS_SERVICE_INSTANCE_ID",0,oo,"SEMRESATTRS_SERVICE_NAME",0,on,"SEMRESATTRS_SERVICE_NAMESPACE",0,or,"SEMRESATTRS_SERVICE_VERSION",0,oa,"SEMRESATTRS_TELEMETRY_AUTO_VERSION",0,ou,"SEMRESATTRS_TELEMETRY_SDK_LANGUAGE",0,os,"SEMRESATTRS_TELEMETRY_SDK_NAME",0,oi,"SEMRESATTRS_TELEMETRY_SDK_VERSION",0,ol,"SEMRESATTRS_WEBENGINE_DESCRIPTION",0,o_,"SEMRESATTRS_WEBENGINE_NAME",0,oc,"SEMRESATTRS_WEBENGINE_VERSION",0,op,"SemanticResourceAttributes",0,oT,"TELEMETRYSDKLANGUAGEVALUES_CPP",0,"cpp","TELEMETRYSDKLANGUAGEVALUES_DOTNET",0,o1,"TELEMETRYSDKLANGUAGEVALUES_ERLANG",0,o2,"TELEMETRYSDKLANGUAGEVALUES_GO",0,"go","TELEMETRYSDKLANGUAGEVALUES_JAVA",0,o5,"TELEMETRYSDKLANGUAGEVALUES_NODEJS",0,o9,"TELEMETRYSDKLANGUAGEVALUES_PHP",0,"php","TELEMETRYSDKLANGUAGEVALUES_PYTHON",0,o3,"TELEMETRYSDKLANGUAGEVALUES_RUBY",0,o4,"TELEMETRYSDKLANGUAGEVALUES_WEBJS",0,o8,"TelemetrySdkLanguageValues",0,o7],82605),e.i(82605),e.s(["AWSECSLAUNCHTYPEVALUES_EC2",0,"ec2","AWSECSLAUNCHTYPEVALUES_FARGATE",0,oG,"AwsEcsLaunchtypeValues",0,oB,"CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS",0,og,"CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC",0,oA,"CLOUDPLATFORMVALUES_AWS_EC2",0,om,"CLOUDPLATFORMVALUES_AWS_ECS",0,oR,"CLOUDPLATFORMVALUES_AWS_EKS",0,oh,"CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK",0,oN,"CLOUDPLATFORMVALUES_AWS_LAMBDA",0,of,"CLOUDPLATFORMVALUES_AZURE_AKS",0,ob,"CLOUDPLATFORMVALUES_AZURE_APP_SERVICE",0,oC,"CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES",0,oy,"CLOUDPLATFORMVALUES_AZURE_FUNCTIONS",0,oO,"CLOUDPLATFORMVALUES_AZURE_VM",0,oI,"CLOUDPLATFORMVALUES_GCP_APP_ENGINE",0,ov,"CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS",0,oU,"CLOUDPLATFORMVALUES_GCP_CLOUD_RUN",0,oL,"CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE",0,oM,"CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE",0,oP,"CLOUDPROVIDERVALUES_ALIBABA_CLOUD",0,oS,"CLOUDPROVIDERVALUES_AWS",0,"aws","CLOUDPROVIDERVALUES_AZURE",0,oE,"CLOUDPROVIDERVALUES_GCP",0,"gcp","CloudPlatformValues",0,oD,"CloudProviderValues",0,od,"HOSTARCHVALUES_AMD64",0,ox,"HOSTARCHVALUES_ARM32",0,oV,"HOSTARCHVALUES_ARM64",0,ow,"HOSTARCHVALUES_IA64",0,ok,"HOSTARCHVALUES_PPC32",0,oH,"HOSTARCHVALUES_PPC64",0,oY,"HOSTARCHVALUES_X86",0,"x86","HostArchValues",0,oF,"OSTYPEVALUES_AIX",0,"aix","OSTYPEVALUES_DARWIN",0,oK,"OSTYPEVALUES_DRAGONFLYBSD",0,oQ,"OSTYPEVALUES_FREEBSD",0,oX,"OSTYPEVALUES_HPUX",0,oz,"OSTYPEVALUES_LINUX",0,oj,"OSTYPEVALUES_NETBSD",0,oZ,"OSTYPEVALUES_OPENBSD",0,oJ,"OSTYPEVALUES_SOLARIS",0,o$,"OSTYPEVALUES_WINDOWS",0,oW,"OSTYPEVALUES_Z_OS",0,oq,"OsTypeValues",0,o0,"SEMRESATTRS_AWS_ECS_CLUSTER_ARN",0,rn,"SEMRESATTRS_AWS_ECS_CONTAINER_ARN",0,rt,"SEMRESATTRS_AWS_ECS_LAUNCHTYPE",0,rr,"SEMRESATTRS_AWS_ECS_TASK_ARN",0,ro,"SEMRESATTRS_AWS_ECS_TASK_FAMILY",0,ra,"SEMRESATTRS_AWS_ECS_TASK_REVISION",0,ri,"SEMRESATTRS_AWS_EKS_CLUSTER_ARN",0,rs,"SEMRESATTRS_AWS_LOG_GROUP_ARNS",0,ru,"SEMRESATTRS_AWS_LOG_GROUP_NAMES",0,rl,"SEMRESATTRS_AWS_LOG_STREAM_ARNS",0,rp,"SEMRESATTRS_AWS_LOG_STREAM_NAMES",0,rc,"SEMRESATTRS_CLOUD_ACCOUNT_ID",0,n8,"SEMRESATTRS_CLOUD_AVAILABILITY_ZONE",0,n6,"SEMRESATTRS_CLOUD_PLATFORM",0,re,"SEMRESATTRS_CLOUD_PROVIDER",0,n4,"SEMRESATTRS_CLOUD_REGION",0,n7,"SEMRESATTRS_CONTAINER_ID",0,rT,"SEMRESATTRS_CONTAINER_IMAGE_NAME",0,rE,"SEMRESATTRS_CONTAINER_IMAGE_TAG",0,rd,"SEMRESATTRS_CONTAINER_NAME",0,r_,"SEMRESATTRS_CONTAINER_RUNTIME",0,rS,"SEMRESATTRS_DEPLOYMENT_ENVIRONMENT",0,rg,"SEMRESATTRS_DEVICE_ID",0,rA,"SEMRESATTRS_DEVICE_MODEL_IDENTIFIER",0,rm,"SEMRESATTRS_DEVICE_MODEL_NAME",0,rR,"SEMRESATTRS_FAAS_ID",0,rf,"SEMRESATTRS_FAAS_INSTANCE",0,rI,"SEMRESATTRS_FAAS_MAX_MEMORY",0,ry,"SEMRESATTRS_FAAS_NAME",0,rh,"SEMRESATTRS_FAAS_VERSION",0,rN,"SEMRESATTRS_HOST_ARCH",0,rM,"SEMRESATTRS_HOST_ID",0,rb,"SEMRESATTRS_HOST_IMAGE_ID",0,rP,"SEMRESATTRS_HOST_IMAGE_NAME",0,rL,"SEMRESATTRS_HOST_IMAGE_VERSION",0,rU,"SEMRESATTRS_HOST_NAME",0,rO,"SEMRESATTRS_HOST_TYPE",0,rC,"SEMRESATTRS_K8S_CLUSTER_NAME",0,rv,"SEMRESATTRS_K8S_CONTAINER_NAME",0,rw,"SEMRESATTRS_K8S_CRONJOB_NAME",0,rz,"SEMRESATTRS_K8S_CRONJOB_UID",0,rQ,"SEMRESATTRS_K8S_DAEMONSET_NAME",0,rX,"SEMRESATTRS_K8S_DAEMONSET_UID",0,rK,"SEMRESATTRS_K8S_DEPLOYMENT_NAME",0,rF,"SEMRESATTRS_K8S_DEPLOYMENT_UID",0,rY,"SEMRESATTRS_K8S_JOB_NAME",0,rJ,"SEMRESATTRS_K8S_JOB_UID",0,rZ,"SEMRESATTRS_K8S_NAMESPACE_NAME",0,rB,"SEMRESATTRS_K8S_NODE_NAME",0,rD,"SEMRESATTRS_K8S_NODE_UID",0,rG,"SEMRESATTRS_K8S_POD_NAME",0,rV,"SEMRESATTRS_K8S_POD_UID",0,rx,"SEMRESATTRS_K8S_REPLICASET_NAME",0,rH,"SEMRESATTRS_K8S_REPLICASET_UID",0,rk,"SEMRESATTRS_K8S_STATEFULSET_NAME",0,rj,"SEMRESATTRS_K8S_STATEFULSET_UID",0,rW,"SEMRESATTRS_OS_DESCRIPTION",0,rq,"SEMRESATTRS_OS_NAME",0,r0,"SEMRESATTRS_OS_TYPE",0,r$,"SEMRESATTRS_OS_VERSION",0,r1,"SEMRESATTRS_PROCESS_COMMAND",0,r3,"SEMRESATTRS_PROCESS_COMMAND_ARGS",0,r8,"SEMRESATTRS_PROCESS_COMMAND_LINE",0,r4,"SEMRESATTRS_PROCESS_EXECUTABLE_NAME",0,r5,"SEMRESATTRS_PROCESS_EXECUTABLE_PATH",0,r9,"SEMRESATTRS_PROCESS_OWNER",0,r7,"SEMRESATTRS_PROCESS_PID",0,r2,"SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION",0,ot,"SEMRESATTRS_PROCESS_RUNTIME_NAME",0,r6,"SEMRESATTRS_PROCESS_RUNTIME_VERSION",0,oe,"SEMRESATTRS_SERVICE_INSTANCE_ID",0,oo,"SEMRESATTRS_SERVICE_NAME",0,on,"SEMRESATTRS_SERVICE_NAMESPACE",0,or,"SEMRESATTRS_SERVICE_VERSION",0,oa,"SEMRESATTRS_TELEMETRY_AUTO_VERSION",0,ou,"SEMRESATTRS_TELEMETRY_SDK_LANGUAGE",0,os,"SEMRESATTRS_TELEMETRY_SDK_NAME",0,oi,"SEMRESATTRS_TELEMETRY_SDK_VERSION",0,ol,"SEMRESATTRS_WEBENGINE_DESCRIPTION",0,o_,"SEMRESATTRS_WEBENGINE_NAME",0,oc,"SEMRESATTRS_WEBENGINE_VERSION",0,op,"SemanticResourceAttributes",0,oT,"TELEMETRYSDKLANGUAGEVALUES_CPP",0,"cpp","TELEMETRYSDKLANGUAGEVALUES_DOTNET",0,o1,"TELEMETRYSDKLANGUAGEVALUES_ERLANG",0,o2,"TELEMETRYSDKLANGUAGEVALUES_GO",0,"go","TELEMETRYSDKLANGUAGEVALUES_JAVA",0,o5,"TELEMETRYSDKLANGUAGEVALUES_NODEJS",0,o9,"TELEMETRYSDKLANGUAGEVALUES_PHP",0,"php","TELEMETRYSDKLANGUAGEVALUES_PYTHON",0,o3,"TELEMETRYSDKLANGUAGEVALUES_RUBY",0,o4,"TELEMETRYSDKLANGUAGEVALUES_WEBJS",0,o8,"TelemetrySdkLanguageValues",0,o7],280576),e.i(280576);var o6=e.i(62955);let ae="aspnetcore.diagnostics.exceptions",at="aspnetcore.rate_limiting.active_request_leases",an="aspnetcore.rate_limiting.queued_requests",ar="aspnetcore.rate_limiting.request.time_in_queue",ao="aspnetcore.rate_limiting.request_lease.duration",aa="aspnetcore.rate_limiting.requests",ai="aspnetcore.routing.match_attempts",as="db.client.operation.duration",al="dotnet.assembly.count",au="dotnet.exceptions",ac="dotnet.gc.collections",ap="dotnet.gc.heap.total_allocated",a_="dotnet.gc.last_collection.heap.fragmentation.size",aT="dotnet.gc.last_collection.heap.size",aS="dotnet.gc.last_collection.memory.committed_size",aE="dotnet.gc.pause.time",ad="dotnet.jit.compilation.time",ag="dotnet.jit.compiled_il.size",aA="dotnet.jit.compiled_methods",am="dotnet.monitor.lock_contentions",aR="dotnet.process.cpu.count",ah="dotnet.process.cpu.time",af="dotnet.process.memory.working_set",aN="dotnet.thread_pool.queue.length",aI="dotnet.thread_pool.thread.count",ay="dotnet.thread_pool.work_item.count",ab="dotnet.timer.count",aO="http.client.request.duration",aC="http.server.request.duration",aM="jvm.class.count",aL="jvm.class.loaded",aP="jvm.class.unloaded",aU="jvm.cpu.count",av="jvm.cpu.recent_utilization",aD="jvm.cpu.time",aG="jvm.gc.duration",aB="jvm.memory.committed",ax="jvm.memory.limit",aV="jvm.memory.used",aw="jvm.memory.used_after_last_gc",ak="jvm.thread.count",aH="kestrel.active_connections",aY="kestrel.active_tls_handshakes",aF="kestrel.connection.duration",aW="kestrel.queued_connections",aj="kestrel.queued_requests",aK="kestrel.rejected_connections",aX="kestrel.tls_handshake.duration",aZ="kestrel.upgraded_connections",aJ="signalr.server.active_connections",aQ="signalr.server.connection.duration";e.s(["METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS",0,ae,"METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES",0,at,"METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS",0,an,"METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS",0,aa,"METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION",0,ao,"METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE",0,ar,"METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS",0,ai,"METRIC_DB_CLIENT_OPERATION_DURATION",0,as,"METRIC_DOTNET_ASSEMBLY_COUNT",0,al,"METRIC_DOTNET_EXCEPTIONS",0,au,"METRIC_DOTNET_GC_COLLECTIONS",0,ac,"METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED",0,ap,"METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE",0,a_,"METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE",0,aT,"METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE",0,aS,"METRIC_DOTNET_GC_PAUSE_TIME",0,aE,"METRIC_DOTNET_JIT_COMPILATION_TIME",0,ad,"METRIC_DOTNET_JIT_COMPILED_IL_SIZE",0,ag,"METRIC_DOTNET_JIT_COMPILED_METHODS",0,aA,"METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS",0,am,"METRIC_DOTNET_PROCESS_CPU_COUNT",0,aR,"METRIC_DOTNET_PROCESS_CPU_TIME",0,ah,"METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET",0,af,"METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH",0,aN,"METRIC_DOTNET_THREAD_POOL_THREAD_COUNT",0,aI,"METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT",0,ay,"METRIC_DOTNET_TIMER_COUNT",0,ab,"METRIC_HTTP_CLIENT_REQUEST_DURATION",0,aO,"METRIC_HTTP_SERVER_REQUEST_DURATION",0,aC,"METRIC_JVM_CLASS_COUNT",0,aM,"METRIC_JVM_CLASS_LOADED",0,aL,"METRIC_JVM_CLASS_UNLOADED",0,aP,"METRIC_JVM_CPU_COUNT",0,aU,"METRIC_JVM_CPU_RECENT_UTILIZATION",0,av,"METRIC_JVM_CPU_TIME",0,aD,"METRIC_JVM_GC_DURATION",0,aG,"METRIC_JVM_MEMORY_COMMITTED",0,aB,"METRIC_JVM_MEMORY_LIMIT",0,ax,"METRIC_JVM_MEMORY_USED",0,aV,"METRIC_JVM_MEMORY_USED_AFTER_LAST_GC",0,aw,"METRIC_JVM_THREAD_COUNT",0,ak,"METRIC_KESTREL_ACTIVE_CONNECTIONS",0,aH,"METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES",0,aY,"METRIC_KESTREL_CONNECTION_DURATION",0,aF,"METRIC_KESTREL_QUEUED_CONNECTIONS",0,aW,"METRIC_KESTREL_QUEUED_REQUESTS",0,aj,"METRIC_KESTREL_REJECTED_CONNECTIONS",0,aK,"METRIC_KESTREL_TLS_HANDSHAKE_DURATION",0,aX,"METRIC_KESTREL_UPGRADED_CONNECTIONS",0,aZ,"METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS",0,aJ,"METRIC_SIGNALR_SERVER_CONNECTION_DURATION",0,aQ],298570),e.i(298570);let az="exception";e.s(["EVENT_EXCEPTION",0,az],601386),e.i(601386),e.s(["ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED",()=>o6.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED,"ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED",()=>o6.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED,"ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED",()=>o6.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED,"ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED",()=>o6.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED,"ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED",()=>o6.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED,"ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER",()=>o6.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER,"ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER",()=>o6.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER,"ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED",()=>o6.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED,"ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE",()=>o6.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE,"ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS",()=>o6.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS,"ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT",()=>o6.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT,"ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE",()=>o6.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE,"ATTR_ASPNETCORE_RATE_LIMITING_POLICY",()=>o6.ATTR_ASPNETCORE_RATE_LIMITING_POLICY,"ATTR_ASPNETCORE_RATE_LIMITING_RESULT",()=>o6.ATTR_ASPNETCORE_RATE_LIMITING_RESULT,"ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED",()=>o6.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED,"ATTR_ASPNETCORE_ROUTING_IS_FALLBACK",()=>o6.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK,"ATTR_ASPNETCORE_ROUTING_MATCH_STATUS",()=>o6.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS,"ATTR_ASPNETCORE_USER_IS_AUTHENTICATED",()=>o6.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED,"ATTR_CLIENT_ADDRESS",()=>o6.ATTR_CLIENT_ADDRESS,"ATTR_CLIENT_PORT",()=>o6.ATTR_CLIENT_PORT,"ATTR_CODE_COLUMN_NUMBER",()=>o6.ATTR_CODE_COLUMN_NUMBER,"ATTR_CODE_FILE_PATH",()=>o6.ATTR_CODE_FILE_PATH,"ATTR_CODE_FUNCTION_NAME",()=>o6.ATTR_CODE_FUNCTION_NAME,"ATTR_CODE_LINE_NUMBER",()=>o6.ATTR_CODE_LINE_NUMBER,"ATTR_CODE_STACKTRACE",()=>o6.ATTR_CODE_STACKTRACE,"ATTR_DB_COLLECTION_NAME",()=>o6.ATTR_DB_COLLECTION_NAME,"ATTR_DB_NAMESPACE",()=>o6.ATTR_DB_NAMESPACE,"ATTR_DB_OPERATION_BATCH_SIZE",()=>o6.ATTR_DB_OPERATION_BATCH_SIZE,"ATTR_DB_OPERATION_NAME",()=>o6.ATTR_DB_OPERATION_NAME,"ATTR_DB_QUERY_SUMMARY",()=>o6.ATTR_DB_QUERY_SUMMARY,"ATTR_DB_QUERY_TEXT",()=>o6.ATTR_DB_QUERY_TEXT,"ATTR_DB_RESPONSE_STATUS_CODE",()=>o6.ATTR_DB_RESPONSE_STATUS_CODE,"ATTR_DB_STORED_PROCEDURE_NAME",()=>o6.ATTR_DB_STORED_PROCEDURE_NAME,"ATTR_DB_SYSTEM_NAME",()=>o6.ATTR_DB_SYSTEM_NAME,"ATTR_DEPLOYMENT_ENVIRONMENT_NAME",()=>o6.ATTR_DEPLOYMENT_ENVIRONMENT_NAME,"ATTR_DOTNET_GC_HEAP_GENERATION",()=>o6.ATTR_DOTNET_GC_HEAP_GENERATION,"ATTR_ERROR_TYPE",()=>o6.ATTR_ERROR_TYPE,"ATTR_EXCEPTION_ESCAPED",()=>o6.ATTR_EXCEPTION_ESCAPED,"ATTR_EXCEPTION_MESSAGE",()=>o6.ATTR_EXCEPTION_MESSAGE,"ATTR_EXCEPTION_STACKTRACE",()=>o6.ATTR_EXCEPTION_STACKTRACE,"ATTR_EXCEPTION_TYPE",()=>o6.ATTR_EXCEPTION_TYPE,"ATTR_HTTP_REQUEST_HEADER",()=>o6.ATTR_HTTP_REQUEST_HEADER,"ATTR_HTTP_REQUEST_METHOD",()=>o6.ATTR_HTTP_REQUEST_METHOD,"ATTR_HTTP_REQUEST_METHOD_ORIGINAL",()=>o6.ATTR_HTTP_REQUEST_METHOD_ORIGINAL,"ATTR_HTTP_REQUEST_RESEND_COUNT",()=>o6.ATTR_HTTP_REQUEST_RESEND_COUNT,"ATTR_HTTP_RESPONSE_HEADER",()=>o6.ATTR_HTTP_RESPONSE_HEADER,"ATTR_HTTP_RESPONSE_STATUS_CODE",()=>o6.ATTR_HTTP_RESPONSE_STATUS_CODE,"ATTR_HTTP_ROUTE",()=>o6.ATTR_HTTP_ROUTE,"ATTR_JVM_GC_ACTION",()=>o6.ATTR_JVM_GC_ACTION,"ATTR_JVM_GC_NAME",()=>o6.ATTR_JVM_GC_NAME,"ATTR_JVM_MEMORY_POOL_NAME",()=>o6.ATTR_JVM_MEMORY_POOL_NAME,"ATTR_JVM_MEMORY_TYPE",()=>o6.ATTR_JVM_MEMORY_TYPE,"ATTR_JVM_THREAD_DAEMON",()=>o6.ATTR_JVM_THREAD_DAEMON,"ATTR_JVM_THREAD_STATE",()=>o6.ATTR_JVM_THREAD_STATE,"ATTR_NETWORK_LOCAL_ADDRESS",()=>o6.ATTR_NETWORK_LOCAL_ADDRESS,"ATTR_NETWORK_LOCAL_PORT",()=>o6.ATTR_NETWORK_LOCAL_PORT,"ATTR_NETWORK_PEER_ADDRESS",()=>o6.ATTR_NETWORK_PEER_ADDRESS,"ATTR_NETWORK_PEER_PORT",()=>o6.ATTR_NETWORK_PEER_PORT,"ATTR_NETWORK_PROTOCOL_NAME",()=>o6.ATTR_NETWORK_PROTOCOL_NAME,"ATTR_NETWORK_PROTOCOL_VERSION",()=>o6.ATTR_NETWORK_PROTOCOL_VERSION,"ATTR_NETWORK_TRANSPORT",()=>o6.ATTR_NETWORK_TRANSPORT,"ATTR_NETWORK_TYPE",()=>o6.ATTR_NETWORK_TYPE,"ATTR_OTEL_EVENT_NAME",()=>o6.ATTR_OTEL_EVENT_NAME,"ATTR_OTEL_SCOPE_NAME",()=>o6.ATTR_OTEL_SCOPE_NAME,"ATTR_OTEL_SCOPE_VERSION",()=>o6.ATTR_OTEL_SCOPE_VERSION,"ATTR_OTEL_STATUS_CODE",()=>o6.ATTR_OTEL_STATUS_CODE,"ATTR_OTEL_STATUS_DESCRIPTION",()=>o6.ATTR_OTEL_STATUS_DESCRIPTION,"ATTR_SERVER_ADDRESS",()=>o6.ATTR_SERVER_ADDRESS,"ATTR_SERVER_PORT",()=>o6.ATTR_SERVER_PORT,"ATTR_SERVICE_INSTANCE_ID",()=>o6.ATTR_SERVICE_INSTANCE_ID,"ATTR_SERVICE_NAME",()=>o6.ATTR_SERVICE_NAME,"ATTR_SERVICE_NAMESPACE",()=>o6.ATTR_SERVICE_NAMESPACE,"ATTR_SERVICE_VERSION",()=>o6.ATTR_SERVICE_VERSION,"ATTR_SIGNALR_CONNECTION_STATUS",()=>o6.ATTR_SIGNALR_CONNECTION_STATUS,"ATTR_SIGNALR_TRANSPORT",()=>o6.ATTR_SIGNALR_TRANSPORT,"ATTR_TELEMETRY_DISTRO_NAME",()=>o6.ATTR_TELEMETRY_DISTRO_NAME,"ATTR_TELEMETRY_DISTRO_VERSION",()=>o6.ATTR_TELEMETRY_DISTRO_VERSION,"ATTR_TELEMETRY_SDK_LANGUAGE",()=>o6.ATTR_TELEMETRY_SDK_LANGUAGE,"ATTR_TELEMETRY_SDK_NAME",()=>o6.ATTR_TELEMETRY_SDK_NAME,"ATTR_TELEMETRY_SDK_VERSION",()=>o6.ATTR_TELEMETRY_SDK_VERSION,"ATTR_URL_FRAGMENT",()=>o6.ATTR_URL_FRAGMENT,"ATTR_URL_FULL",()=>o6.ATTR_URL_FULL,"ATTR_URL_PATH",()=>o6.ATTR_URL_PATH,"ATTR_URL_QUERY",()=>o6.ATTR_URL_QUERY,"ATTR_URL_SCHEME",()=>o6.ATTR_URL_SCHEME,"ATTR_USER_AGENT_ORIGINAL",()=>o6.ATTR_USER_AGENT_ORIGINAL,"AWSECSLAUNCHTYPEVALUES_EC2",0,"ec2","AWSECSLAUNCHTYPEVALUES_FARGATE",0,oG,"AwsEcsLaunchtypeValues",0,oB,"CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS",0,og,"CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC",0,oA,"CLOUDPLATFORMVALUES_AWS_EC2",0,om,"CLOUDPLATFORMVALUES_AWS_ECS",0,oR,"CLOUDPLATFORMVALUES_AWS_EKS",0,oh,"CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK",0,oN,"CLOUDPLATFORMVALUES_AWS_LAMBDA",0,of,"CLOUDPLATFORMVALUES_AZURE_AKS",0,ob,"CLOUDPLATFORMVALUES_AZURE_APP_SERVICE",0,oC,"CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES",0,oy,"CLOUDPLATFORMVALUES_AZURE_FUNCTIONS",0,oO,"CLOUDPLATFORMVALUES_AZURE_VM",0,oI,"CLOUDPLATFORMVALUES_GCP_APP_ENGINE",0,ov,"CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS",0,oU,"CLOUDPLATFORMVALUES_GCP_CLOUD_RUN",0,oL,"CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE",0,oM,"CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE",0,oP,"CLOUDPROVIDERVALUES_ALIBABA_CLOUD",0,oS,"CLOUDPROVIDERVALUES_AWS",0,"aws","CLOUDPROVIDERVALUES_AZURE",0,oE,"CLOUDPROVIDERVALUES_GCP",0,"gcp","CloudPlatformValues",0,oD,"CloudProviderValues",0,od,"DBCASSANDRACONSISTENCYLEVELVALUES_ALL",0,"all","DBCASSANDRACONSISTENCYLEVELVALUES_ANY",0,"any","DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM",0,t9,"DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE",0,t7,"DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM",0,t4,"DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL",0,ne,"DBCASSANDRACONSISTENCYLEVELVALUES_ONE",0,"one","DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM",0,t3,"DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL",0,t6,"DBCASSANDRACONSISTENCYLEVELVALUES_THREE",0,t8,"DBCASSANDRACONSISTENCYLEVELVALUES_TWO",0,"two","DBSYSTEMVALUES_ADABAS",0,tC,"DBSYSTEMVALUES_CACHE",0,tO,"DBSYSTEMVALUES_CASSANDRA",0,tW,"DBSYSTEMVALUES_CLOUDSCAPE",0,tR,"DBSYSTEMVALUES_COCKROACHDB",0,t2,"DBSYSTEMVALUES_COLDFUSION",0,tF,"DBSYSTEMVALUES_COSMOSDB",0,tQ,"DBSYSTEMVALUES_COUCHBASE",0,tZ,"DBSYSTEMVALUES_COUCHDB",0,tJ,"DBSYSTEMVALUES_DB2",0,"db2","DBSYSTEMVALUES_DERBY",0,tL,"DBSYSTEMVALUES_DYNAMODB",0,tz,"DBSYSTEMVALUES_EDB",0,"edb","DBSYSTEMVALUES_ELASTICSEARCH",0,t0,"DBSYSTEMVALUES_FILEMAKER",0,tP,"DBSYSTEMVALUES_FIREBIRD",0,tM,"DBSYSTEMVALUES_FIRSTSQL",0,tb,"DBSYSTEMVALUES_GEODE",0,tq,"DBSYSTEMVALUES_H2",0,"h2","DBSYSTEMVALUES_HANADB",0,tI,"DBSYSTEMVALUES_HBASE",0,tj,"DBSYSTEMVALUES_HIVE",0,tm,"DBSYSTEMVALUES_HSQLDB",0,th,"DBSYSTEMVALUES_INFORMIX",0,tU,"DBSYSTEMVALUES_INGRES",0,ty,"DBSYSTEMVALUES_INSTANTDB",0,tv,"DBSYSTEMVALUES_INTERBASE",0,tD,"DBSYSTEMVALUES_MARIADB",0,tG,"DBSYSTEMVALUES_MAXDB",0,tN,"DBSYSTEMVALUES_MEMCACHED",0,t1,"DBSYSTEMVALUES_MONGODB",0,tK,"DBSYSTEMVALUES_MSSQL",0,tS,"DBSYSTEMVALUES_MYSQL",0,tE,"DBSYSTEMVALUES_NEO4J",0,t$,"DBSYSTEMVALUES_NETEZZA",0,tB,"DBSYSTEMVALUES_ORACLE",0,td,"DBSYSTEMVALUES_OTHER_SQL",0,tT,"DBSYSTEMVALUES_PERVASIVE",0,tx,"DBSYSTEMVALUES_POINTBASE",0,tV,"DBSYSTEMVALUES_POSTGRESQL",0,tg,"DBSYSTEMVALUES_PROGRESS",0,tf,"DBSYSTEMVALUES_REDIS",0,tX,"DBSYSTEMVALUES_REDSHIFT",0,tA,"DBSYSTEMVALUES_SQLITE",0,tw,"DBSYSTEMVALUES_SYBASE",0,tk,"DBSYSTEMVALUES_TERADATA",0,tH,"DBSYSTEMVALUES_VERTICA",0,tY,"DB_SYSTEM_NAME_VALUE_MARIADB",()=>o6.DB_SYSTEM_NAME_VALUE_MARIADB,"DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER",()=>o6.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER,"DB_SYSTEM_NAME_VALUE_MYSQL",()=>o6.DB_SYSTEM_NAME_VALUE_MYSQL,"DB_SYSTEM_NAME_VALUE_POSTGRESQL",()=>o6.DB_SYSTEM_NAME_VALUE_POSTGRESQL,"DEPLOYMENT_ENVIRONMENT_NAME_VALUE_DEVELOPMENT",()=>o6.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_DEVELOPMENT,"DEPLOYMENT_ENVIRONMENT_NAME_VALUE_PRODUCTION",()=>o6.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_PRODUCTION,"DEPLOYMENT_ENVIRONMENT_NAME_VALUE_STAGING",()=>o6.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_STAGING,"DEPLOYMENT_ENVIRONMENT_NAME_VALUE_TEST",()=>o6.DEPLOYMENT_ENVIRONMENT_NAME_VALUE_TEST,"DOTNET_GC_HEAP_GENERATION_VALUE_GEN0",()=>o6.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0,"DOTNET_GC_HEAP_GENERATION_VALUE_GEN1",()=>o6.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1,"DOTNET_GC_HEAP_GENERATION_VALUE_GEN2",()=>o6.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2,"DOTNET_GC_HEAP_GENERATION_VALUE_LOH",()=>o6.DOTNET_GC_HEAP_GENERATION_VALUE_LOH,"DOTNET_GC_HEAP_GENERATION_VALUE_POH",()=>o6.DOTNET_GC_HEAP_GENERATION_VALUE_POH,"DbCassandraConsistencyLevelValues",0,nt,"DbSystemValues",0,t5,"ERROR_TYPE_VALUE_OTHER",()=>o6.ERROR_TYPE_VALUE_OTHER,"EVENT_EXCEPTION",0,az,"FAASDOCUMENTOPERATIONVALUES_DELETE",0,nc,"FAASDOCUMENTOPERATIONVALUES_EDIT",0,nu,"FAASDOCUMENTOPERATIONVALUES_INSERT",0,nl,"FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD",0,n_,"FAASINVOKEDPROVIDERVALUES_AWS",0,"aws","FAASINVOKEDPROVIDERVALUES_AZURE",0,nT,"FAASINVOKEDPROVIDERVALUES_GCP",0,"gcp","FAASTRIGGERVALUES_DATASOURCE",0,nn,"FAASTRIGGERVALUES_HTTP",0,nr,"FAASTRIGGERVALUES_OTHER",0,ni,"FAASTRIGGERVALUES_PUBSUB",0,no,"FAASTRIGGERVALUES_TIMER",0,na,"FaasDocumentOperationValues",0,np,"FaasInvokedProviderValues",0,nS,"FaasTriggerValues",0,ns,"HOSTARCHVALUES_AMD64",0,ox,"HOSTARCHVALUES_ARM32",0,oV,"HOSTARCHVALUES_ARM64",0,ow,"HOSTARCHVALUES_IA64",0,ok,"HOSTARCHVALUES_PPC32",0,oH,"HOSTARCHVALUES_PPC64",0,oY,"HOSTARCHVALUES_X86",0,"x86","HTTPFLAVORVALUES_HTTP_1_0",0,"1.0","HTTPFLAVORVALUES_HTTP_1_1",0,"1.1","HTTPFLAVORVALUES_HTTP_2_0",0,"2.0","HTTPFLAVORVALUES_QUIC",0,nZ,"HTTPFLAVORVALUES_SPDY",0,nX,"HTTP_REQUEST_METHOD_VALUE_CONNECT",()=>o6.HTTP_REQUEST_METHOD_VALUE_CONNECT,"HTTP_REQUEST_METHOD_VALUE_DELETE",()=>o6.HTTP_REQUEST_METHOD_VALUE_DELETE,"HTTP_REQUEST_METHOD_VALUE_GET",()=>o6.HTTP_REQUEST_METHOD_VALUE_GET,"HTTP_REQUEST_METHOD_VALUE_HEAD",()=>o6.HTTP_REQUEST_METHOD_VALUE_HEAD,"HTTP_REQUEST_METHOD_VALUE_OPTIONS",()=>o6.HTTP_REQUEST_METHOD_VALUE_OPTIONS,"HTTP_REQUEST_METHOD_VALUE_OTHER",()=>o6.HTTP_REQUEST_METHOD_VALUE_OTHER,"HTTP_REQUEST_METHOD_VALUE_PATCH",()=>o6.HTTP_REQUEST_METHOD_VALUE_PATCH,"HTTP_REQUEST_METHOD_VALUE_POST",()=>o6.HTTP_REQUEST_METHOD_VALUE_POST,"HTTP_REQUEST_METHOD_VALUE_PUT",()=>o6.HTTP_REQUEST_METHOD_VALUE_PUT,"HTTP_REQUEST_METHOD_VALUE_TRACE",()=>o6.HTTP_REQUEST_METHOD_VALUE_TRACE,"HostArchValues",0,oF,"HttpFlavorValues",0,nJ,"JVM_MEMORY_TYPE_VALUE_HEAP",()=>o6.JVM_MEMORY_TYPE_VALUE_HEAP,"JVM_MEMORY_TYPE_VALUE_NON_HEAP",()=>o6.JVM_MEMORY_TYPE_VALUE_NON_HEAP,"JVM_THREAD_STATE_VALUE_BLOCKED",()=>o6.JVM_THREAD_STATE_VALUE_BLOCKED,"JVM_THREAD_STATE_VALUE_NEW",()=>o6.JVM_THREAD_STATE_VALUE_NEW,"JVM_THREAD_STATE_VALUE_RUNNABLE",()=>o6.JVM_THREAD_STATE_VALUE_RUNNABLE,"JVM_THREAD_STATE_VALUE_TERMINATED",()=>o6.JVM_THREAD_STATE_VALUE_TERMINATED,"JVM_THREAD_STATE_VALUE_TIMED_WAITING",()=>o6.JVM_THREAD_STATE_VALUE_TIMED_WAITING,"JVM_THREAD_STATE_VALUE_WAITING",()=>o6.JVM_THREAD_STATE_VALUE_WAITING,"MESSAGETYPEVALUES_RECEIVED",0,n9,"MESSAGETYPEVALUES_SENT",0,n5,"MESSAGINGDESTINATIONKINDVALUES_QUEUE",0,nQ,"MESSAGINGDESTINATIONKINDVALUES_TOPIC",0,nz,"MESSAGINGOPERATIONVALUES_PROCESS",0,n0,"MESSAGINGOPERATIONVALUES_RECEIVE",0,nq,"METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS",0,ae,"METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES",0,at,"METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS",0,an,"METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS",0,aa,"METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION",0,ao,"METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE",0,ar,"METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS",0,ai,"METRIC_DB_CLIENT_OPERATION_DURATION",0,as,"METRIC_DOTNET_ASSEMBLY_COUNT",0,al,"METRIC_DOTNET_EXCEPTIONS",0,au,"METRIC_DOTNET_GC_COLLECTIONS",0,ac,"METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED",0,ap,"METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE",0,a_,"METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE",0,aT,"METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE",0,aS,"METRIC_DOTNET_GC_PAUSE_TIME",0,aE,"METRIC_DOTNET_JIT_COMPILATION_TIME",0,ad,"METRIC_DOTNET_JIT_COMPILED_IL_SIZE",0,ag,"METRIC_DOTNET_JIT_COMPILED_METHODS",0,aA,"METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS",0,am,"METRIC_DOTNET_PROCESS_CPU_COUNT",0,aR,"METRIC_DOTNET_PROCESS_CPU_TIME",0,ah,"METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET",0,af,"METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH",0,aN,"METRIC_DOTNET_THREAD_POOL_THREAD_COUNT",0,aI,"METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT",0,ay,"METRIC_DOTNET_TIMER_COUNT",0,ab,"METRIC_HTTP_CLIENT_REQUEST_DURATION",0,aO,"METRIC_HTTP_SERVER_REQUEST_DURATION",0,aC,"METRIC_JVM_CLASS_COUNT",0,aM,"METRIC_JVM_CLASS_LOADED",0,aL,"METRIC_JVM_CLASS_UNLOADED",0,aP,"METRIC_JVM_CPU_COUNT",0,aU,"METRIC_JVM_CPU_RECENT_UTILIZATION",0,av,"METRIC_JVM_CPU_TIME",0,aD,"METRIC_JVM_GC_DURATION",0,aG,"METRIC_JVM_MEMORY_COMMITTED",0,aB,"METRIC_JVM_MEMORY_LIMIT",0,ax,"METRIC_JVM_MEMORY_USED",0,aV,"METRIC_JVM_MEMORY_USED_AFTER_LAST_GC",0,aw,"METRIC_JVM_THREAD_COUNT",0,ak,"METRIC_KESTREL_ACTIVE_CONNECTIONS",0,aH,"METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES",0,aY,"METRIC_KESTREL_CONNECTION_DURATION",0,aF,"METRIC_KESTREL_QUEUED_CONNECTIONS",0,aW,"METRIC_KESTREL_QUEUED_REQUESTS",0,aj,"METRIC_KESTREL_REJECTED_CONNECTIONS",0,aK,"METRIC_KESTREL_TLS_HANDSHAKE_DURATION",0,aX,"METRIC_KESTREL_UPGRADED_CONNECTIONS",0,aZ,"METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS",0,aJ,"METRIC_SIGNALR_SERVER_CONNECTION_DURATION",0,aQ,"MessageTypeValues",0,n3,"MessagingDestinationKindValues",0,n$,"MessagingOperationValues",0,n1,"NETHOSTCONNECTIONSUBTYPEVALUES_CDMA",0,nP,"NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT",0,nD,"NETHOSTCONNECTIONSUBTYPEVALUES_EDGE",0,nM,"NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD",0,nk,"NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0",0,nU,"NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A",0,nv,"NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B",0,nw,"NETHOSTCONNECTIONSUBTYPEVALUES_GPRS",0,nC,"NETHOSTCONNECTIONSUBTYPEVALUES_GSM",0,"gsm","NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA",0,nG,"NETHOSTCONNECTIONSUBTYPEVALUES_HSPA",0,nx,"NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP",0,nH,"NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA",0,nB,"NETHOSTCONNECTIONSUBTYPEVALUES_IDEN",0,nV,"NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN",0,nF,"NETHOSTCONNECTIONSUBTYPEVALUES_LTE",0,"lte","NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA",0,nj,"NETHOSTCONNECTIONSUBTYPEVALUES_NR",0,"nr","NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA",0,nW,"NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA",0,nY,"NETHOSTCONNECTIONSUBTYPEVALUES_UMTS",0,nL,"NETHOSTCONNECTIONTYPEVALUES_CELL",0,nI,"NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE",0,ny,"NETHOSTCONNECTIONTYPEVALUES_UNKNOWN",0,nb,"NETHOSTCONNECTIONTYPEVALUES_WIFI",0,nf,"NETHOSTCONNECTIONTYPEVALUES_WIRED",0,nN,"NETTRANSPORTVALUES_INPROC",0,nm,"NETTRANSPORTVALUES_IP",0,"ip","NETTRANSPORTVALUES_IP_TCP",0,nE,"NETTRANSPORTVALUES_IP_UDP",0,nd,"NETTRANSPORTVALUES_OTHER",0,nR,"NETTRANSPORTVALUES_PIPE",0,nA,"NETTRANSPORTVALUES_UNIX",0,ng,"NETWORK_TRANSPORT_VALUE_PIPE",()=>o6.NETWORK_TRANSPORT_VALUE_PIPE,"NETWORK_TRANSPORT_VALUE_QUIC",()=>o6.NETWORK_TRANSPORT_VALUE_QUIC,"NETWORK_TRANSPORT_VALUE_TCP",()=>o6.NETWORK_TRANSPORT_VALUE_TCP,"NETWORK_TRANSPORT_VALUE_UDP",()=>o6.NETWORK_TRANSPORT_VALUE_UDP,"NETWORK_TRANSPORT_VALUE_UNIX",()=>o6.NETWORK_TRANSPORT_VALUE_UNIX,"NETWORK_TYPE_VALUE_IPV4",()=>o6.NETWORK_TYPE_VALUE_IPV4,"NETWORK_TYPE_VALUE_IPV6",()=>o6.NETWORK_TYPE_VALUE_IPV6,"NetHostConnectionSubtypeValues",0,nK,"NetHostConnectionTypeValues",0,nO,"NetTransportValues",0,nh,"OSTYPEVALUES_AIX",0,"aix","OSTYPEVALUES_DARWIN",0,oK,"OSTYPEVALUES_DRAGONFLYBSD",0,oQ,"OSTYPEVALUES_FREEBSD",0,oX,"OSTYPEVALUES_HPUX",0,oz,"OSTYPEVALUES_LINUX",0,oj,"OSTYPEVALUES_NETBSD",0,oZ,"OSTYPEVALUES_OPENBSD",0,oJ,"OSTYPEVALUES_SOLARIS",0,o$,"OSTYPEVALUES_WINDOWS",0,oW,"OSTYPEVALUES_Z_OS",0,oq,"OTEL_STATUS_CODE_VALUE_ERROR",()=>o6.OTEL_STATUS_CODE_VALUE_ERROR,"OTEL_STATUS_CODE_VALUE_OK",()=>o6.OTEL_STATUS_CODE_VALUE_OK,"OsTypeValues",0,o0,"RPCGRPCSTATUSCODEVALUES_ABORTED",0,10,"RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS",0,6,"RPCGRPCSTATUSCODEVALUES_CANCELLED",0,1,"RPCGRPCSTATUSCODEVALUES_DATA_LOSS",0,15,"RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED",0,4,"RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION",0,9,"RPCGRPCSTATUSCODEVALUES_INTERNAL",0,13,"RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT",0,3,"RPCGRPCSTATUSCODEVALUES_NOT_FOUND",0,5,"RPCGRPCSTATUSCODEVALUES_OK",0,0,"RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE",0,11,"RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED",0,7,"RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED",0,8,"RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED",0,16,"RPCGRPCSTATUSCODEVALUES_UNAVAILABLE",0,14,"RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED",0,12,"RPCGRPCSTATUSCODEVALUES_UNKNOWN",0,2,"RpcGrpcStatusCodeValues",0,n2,"SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET",0,eP,"SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS",0,eF,"SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ",0,eC,"SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY",0,eI,"SEMATTRS_AWS_DYNAMODB_COUNT",0,eH,"SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE",0,eB,"SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES",0,eD,"SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES",0,eW,"SEMATTRS_AWS_DYNAMODB_INDEX_NAME",0,eU,"SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS",0,ey,"SEMATTRS_AWS_DYNAMODB_LIMIT",0,eL,"SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES",0,eG,"SEMATTRS_AWS_DYNAMODB_PROJECTION",0,eM,"SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY",0,eb,"SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY",0,eO,"SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT",0,eY,"SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD",0,eV,"SEMATTRS_AWS_DYNAMODB_SEGMENT",0,ew,"SEMATTRS_AWS_DYNAMODB_SELECT",0,ev,"SEMATTRS_AWS_DYNAMODB_TABLE_COUNT",0,ex,"SEMATTRS_AWS_DYNAMODB_TABLE_NAMES",0,eN,"SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS",0,ek,"SEMATTRS_AWS_LAMBDA_INVOKED_ARN",0,n,"SEMATTRS_CODE_FILEPATH",0,ei,"SEMATTRS_CODE_FUNCTION",0,eo,"SEMATTRS_CODE_LINENO",0,es,"SEMATTRS_CODE_NAMESPACE",0,ea,"SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL",0,T,"SEMATTRS_DB_CASSANDRA_COORDINATOR_DC",0,A,"SEMATTRS_DB_CASSANDRA_COORDINATOR_ID",0,g,"SEMATTRS_DB_CASSANDRA_IDEMPOTENCE",0,E,"SEMATTRS_DB_CASSANDRA_KEYSPACE",0,p,"SEMATTRS_DB_CASSANDRA_PAGE_SIZE",0,_,"SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT",0,d,"SEMATTRS_DB_CASSANDRA_TABLE",0,S,"SEMATTRS_DB_CONNECTION_STRING",0,o,"SEMATTRS_DB_HBASE_NAMESPACE",0,m,"SEMATTRS_DB_JDBC_DRIVER_CLASSNAME",0,i,"SEMATTRS_DB_MONGODB_COLLECTION",0,h,"SEMATTRS_DB_MSSQL_INSTANCE_NAME",0,c,"SEMATTRS_DB_NAME",0,s,"SEMATTRS_DB_OPERATION",0,u,"SEMATTRS_DB_REDIS_DATABASE_INDEX",0,R,"SEMATTRS_DB_SQL_TABLE",0,f,"SEMATTRS_DB_STATEMENT",0,l,"SEMATTRS_DB_SYSTEM",0,r,"SEMATTRS_DB_USER",0,a,"SEMATTRS_ENDUSER_ID",0,q,"SEMATTRS_ENDUSER_ROLE",0,ee,"SEMATTRS_ENDUSER_SCOPE",0,et,"SEMATTRS_EXCEPTION_ESCAPED",0,b,"SEMATTRS_EXCEPTION_MESSAGE",0,I,"SEMATTRS_EXCEPTION_STACKTRACE",0,y,"SEMATTRS_EXCEPTION_TYPE",0,N,"SEMATTRS_FAAS_COLDSTART",0,G,"SEMATTRS_FAAS_CRON",0,D,"SEMATTRS_FAAS_DOCUMENT_COLLECTION",0,M,"SEMATTRS_FAAS_DOCUMENT_NAME",0,U,"SEMATTRS_FAAS_DOCUMENT_OPERATION",0,L,"SEMATTRS_FAAS_DOCUMENT_TIME",0,P,"SEMATTRS_FAAS_EXECUTION",0,C,"SEMATTRS_FAAS_INVOKED_NAME",0,B,"SEMATTRS_FAAS_INVOKED_PROVIDER",0,x,"SEMATTRS_FAAS_INVOKED_REGION",0,V,"SEMATTRS_FAAS_TIME",0,v,"SEMATTRS_FAAS_TRIGGER",0,O,"SEMATTRS_HTTP_CLIENT_IP",0,ef,"SEMATTRS_HTTP_FLAVOR",0,eS,"SEMATTRS_HTTP_HOST",0,ep,"SEMATTRS_HTTP_METHOD",0,el,"SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH",0,ed,"SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED",0,eg,"SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH",0,eA,"SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED",0,em,"SEMATTRS_HTTP_ROUTE",0,eh,"SEMATTRS_HTTP_SCHEME",0,e_,"SEMATTRS_HTTP_SERVER_NAME",0,eR,"SEMATTRS_HTTP_STATUS_CODE",0,eT,"SEMATTRS_HTTP_TARGET",0,ec,"SEMATTRS_HTTP_URL",0,eu,"SEMATTRS_HTTP_USER_AGENT",0,eE,"SEMATTRS_MESSAGE_COMPRESSED_SIZE",0,tc,"SEMATTRS_MESSAGE_ID",0,tu,"SEMATTRS_MESSAGE_TYPE",0,tl,"SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE",0,tp,"SEMATTRS_MESSAGING_CONSUMER_ID",0,e5,"SEMATTRS_MESSAGING_CONVERSATION_ID",0,eq,"SEMATTRS_MESSAGING_DESTINATION",0,eK,"SEMATTRS_MESSAGING_DESTINATION_KIND",0,eX,"SEMATTRS_MESSAGING_KAFKA_CLIENT_ID",0,e8,"SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP",0,e4,"SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY",0,e3,"SEMATTRS_MESSAGING_KAFKA_PARTITION",0,e7,"SEMATTRS_MESSAGING_KAFKA_TOMBSTONE",0,e6,"SEMATTRS_MESSAGING_MESSAGE_ID",0,e$,"SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES",0,e1,"SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES",0,e0,"SEMATTRS_MESSAGING_OPERATION",0,e2,"SEMATTRS_MESSAGING_PROTOCOL",0,eJ,"SEMATTRS_MESSAGING_PROTOCOL_VERSION",0,eQ,"SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY",0,e9,"SEMATTRS_MESSAGING_SYSTEM",0,ej,"SEMATTRS_MESSAGING_TEMP_DESTINATION",0,eZ,"SEMATTRS_MESSAGING_URL",0,ez,"SEMATTRS_NET_HOST_CARRIER_ICC",0,z,"SEMATTRS_NET_HOST_CARRIER_MCC",0,J,"SEMATTRS_NET_HOST_CARRIER_MNC",0,Q,"SEMATTRS_NET_HOST_CARRIER_NAME",0,Z,"SEMATTRS_NET_HOST_CONNECTION_SUBTYPE",0,X,"SEMATTRS_NET_HOST_CONNECTION_TYPE",0,K,"SEMATTRS_NET_HOST_IP",0,F,"SEMATTRS_NET_HOST_NAME",0,j,"SEMATTRS_NET_HOST_PORT",0,W,"SEMATTRS_NET_PEER_IP",0,k,"SEMATTRS_NET_PEER_NAME",0,Y,"SEMATTRS_NET_PEER_PORT",0,H,"SEMATTRS_NET_TRANSPORT",0,w,"SEMATTRS_PEER_SERVICE",0,$,"SEMATTRS_RPC_GRPC_STATUS_CODE",0,tr,"SEMATTRS_RPC_JSONRPC_ERROR_CODE",0,ti,"SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE",0,ts,"SEMATTRS_RPC_JSONRPC_REQUEST_ID",0,ta,"SEMATTRS_RPC_JSONRPC_VERSION",0,to,"SEMATTRS_RPC_METHOD",0,tn,"SEMATTRS_RPC_SERVICE",0,tt,"SEMATTRS_RPC_SYSTEM",0,te,"SEMATTRS_THREAD_ID",0,en,"SEMATTRS_THREAD_NAME",0,er,"SEMRESATTRS_AWS_ECS_CLUSTER_ARN",0,rn,"SEMRESATTRS_AWS_ECS_CONTAINER_ARN",0,rt,"SEMRESATTRS_AWS_ECS_LAUNCHTYPE",0,rr,"SEMRESATTRS_AWS_ECS_TASK_ARN",0,ro,"SEMRESATTRS_AWS_ECS_TASK_FAMILY",0,ra,"SEMRESATTRS_AWS_ECS_TASK_REVISION",0,ri,"SEMRESATTRS_AWS_EKS_CLUSTER_ARN",0,rs,"SEMRESATTRS_AWS_LOG_GROUP_ARNS",0,ru,"SEMRESATTRS_AWS_LOG_GROUP_NAMES",0,rl,"SEMRESATTRS_AWS_LOG_STREAM_ARNS",0,rp,"SEMRESATTRS_AWS_LOG_STREAM_NAMES",0,rc,"SEMRESATTRS_CLOUD_ACCOUNT_ID",0,n8,"SEMRESATTRS_CLOUD_AVAILABILITY_ZONE",0,n6,"SEMRESATTRS_CLOUD_PLATFORM",0,re,"SEMRESATTRS_CLOUD_PROVIDER",0,n4,"SEMRESATTRS_CLOUD_REGION",0,n7,"SEMRESATTRS_CONTAINER_ID",0,rT,"SEMRESATTRS_CONTAINER_IMAGE_NAME",0,rE,"SEMRESATTRS_CONTAINER_IMAGE_TAG",0,rd,"SEMRESATTRS_CONTAINER_NAME",0,r_,"SEMRESATTRS_CONTAINER_RUNTIME",0,rS,"SEMRESATTRS_DEPLOYMENT_ENVIRONMENT",0,rg,"SEMRESATTRS_DEVICE_ID",0,rA,"SEMRESATTRS_DEVICE_MODEL_IDENTIFIER",0,rm,"SEMRESATTRS_DEVICE_MODEL_NAME",0,rR,"SEMRESATTRS_FAAS_ID",0,rf,"SEMRESATTRS_FAAS_INSTANCE",0,rI,"SEMRESATTRS_FAAS_MAX_MEMORY",0,ry,"SEMRESATTRS_FAAS_NAME",0,rh,"SEMRESATTRS_FAAS_VERSION",0,rN,"SEMRESATTRS_HOST_ARCH",0,rM,"SEMRESATTRS_HOST_ID",0,rb,"SEMRESATTRS_HOST_IMAGE_ID",0,rP,"SEMRESATTRS_HOST_IMAGE_NAME",0,rL,"SEMRESATTRS_HOST_IMAGE_VERSION",0,rU,"SEMRESATTRS_HOST_NAME",0,rO,"SEMRESATTRS_HOST_TYPE",0,rC,"SEMRESATTRS_K8S_CLUSTER_NAME",0,rv,"SEMRESATTRS_K8S_CONTAINER_NAME",0,rw,"SEMRESATTRS_K8S_CRONJOB_NAME",0,rz,"SEMRESATTRS_K8S_CRONJOB_UID",0,rQ,"SEMRESATTRS_K8S_DAEMONSET_NAME",0,rX,"SEMRESATTRS_K8S_DAEMONSET_UID",0,rK,"SEMRESATTRS_K8S_DEPLOYMENT_NAME",0,rF,"SEMRESATTRS_K8S_DEPLOYMENT_UID",0,rY,"SEMRESATTRS_K8S_JOB_NAME",0,rJ,"SEMRESATTRS_K8S_JOB_UID",0,rZ,"SEMRESATTRS_K8S_NAMESPACE_NAME",0,rB,"SEMRESATTRS_K8S_NODE_NAME",0,rD,"SEMRESATTRS_K8S_NODE_UID",0,rG,"SEMRESATTRS_K8S_POD_NAME",0,rV,"SEMRESATTRS_K8S_POD_UID",0,rx,"SEMRESATTRS_K8S_REPLICASET_NAME",0,rH,"SEMRESATTRS_K8S_REPLICASET_UID",0,rk,"SEMRESATTRS_K8S_STATEFULSET_NAME",0,rj,"SEMRESATTRS_K8S_STATEFULSET_UID",0,rW,"SEMRESATTRS_OS_DESCRIPTION",0,rq,"SEMRESATTRS_OS_NAME",0,r0,"SEMRESATTRS_OS_TYPE",0,r$,"SEMRESATTRS_OS_VERSION",0,r1,"SEMRESATTRS_PROCESS_COMMAND",0,r3,"SEMRESATTRS_PROCESS_COMMAND_ARGS",0,r8,"SEMRESATTRS_PROCESS_COMMAND_LINE",0,r4,"SEMRESATTRS_PROCESS_EXECUTABLE_NAME",0,r5,"SEMRESATTRS_PROCESS_EXECUTABLE_PATH",0,r9,"SEMRESATTRS_PROCESS_OWNER",0,r7,"SEMRESATTRS_PROCESS_PID",0,r2,"SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION",0,ot,"SEMRESATTRS_PROCESS_RUNTIME_NAME",0,r6,"SEMRESATTRS_PROCESS_RUNTIME_VERSION",0,oe,"SEMRESATTRS_SERVICE_INSTANCE_ID",0,oo,"SEMRESATTRS_SERVICE_NAME",0,on,"SEMRESATTRS_SERVICE_NAMESPACE",0,or,"SEMRESATTRS_SERVICE_VERSION",0,oa,"SEMRESATTRS_TELEMETRY_AUTO_VERSION",0,ou,"SEMRESATTRS_TELEMETRY_SDK_LANGUAGE",0,os,"SEMRESATTRS_TELEMETRY_SDK_NAME",0,oi,"SEMRESATTRS_TELEMETRY_SDK_VERSION",0,ol,"SEMRESATTRS_WEBENGINE_DESCRIPTION",0,o_,"SEMRESATTRS_WEBENGINE_NAME",0,oc,"SEMRESATTRS_WEBENGINE_VERSION",0,op,"SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN",()=>o6.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN,"SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE",()=>o6.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE,"SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT",()=>o6.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT,"SIGNALR_TRANSPORT_VALUE_LONG_POLLING",()=>o6.SIGNALR_TRANSPORT_VALUE_LONG_POLLING,"SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS",()=>o6.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS,"SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS",()=>o6.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS,"SemanticAttributes",0,t_,"SemanticResourceAttributes",0,oT,"TELEMETRYSDKLANGUAGEVALUES_CPP",0,"cpp","TELEMETRYSDKLANGUAGEVALUES_DOTNET",0,o1,"TELEMETRYSDKLANGUAGEVALUES_ERLANG",0,o2,"TELEMETRYSDKLANGUAGEVALUES_GO",0,"go","TELEMETRYSDKLANGUAGEVALUES_JAVA",0,o5,"TELEMETRYSDKLANGUAGEVALUES_NODEJS",0,o9,"TELEMETRYSDKLANGUAGEVALUES_PHP",0,"php","TELEMETRYSDKLANGUAGEVALUES_PYTHON",0,o3,"TELEMETRYSDKLANGUAGEVALUES_RUBY",0,o4,"TELEMETRYSDKLANGUAGEVALUES_WEBJS",0,o8,"TELEMETRY_SDK_LANGUAGE_VALUE_CPP",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_CPP,"TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET,"TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG,"TELEMETRY_SDK_LANGUAGE_VALUE_GO",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_GO,"TELEMETRY_SDK_LANGUAGE_VALUE_JAVA",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA,"TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,"TELEMETRY_SDK_LANGUAGE_VALUE_PHP",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_PHP,"TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON,"TELEMETRY_SDK_LANGUAGE_VALUE_RUBY",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY,"TELEMETRY_SDK_LANGUAGE_VALUE_RUST",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_RUST,"TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT,"TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS",()=>o6.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,"TelemetrySdkLanguageValues",0,o7],216835)},60330,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.DEBUG_BUILD="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},817221,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.GLOBAL_OBJ=globalThis},606200,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.SDK_VERSION="10.57.0"},473462,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(606200),o=e.r(817221);function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.SDK_VERSION,t[r.SDK_VERSION]=t[r.SDK_VERSION]||{}}n.getGlobalSingleton=function(e,t,n=o.GLOBAL_OBJ){let a=n.__SENTRY__=n.__SENTRY__||{},i=a[r.SDK_VERSION]=a[r.SDK_VERSION]||{};return i[e]||(i[e]=t())},n.getMainCarrier=function(){return a(o.GLOBAL_OBJ),o.GLOBAL_OBJ},n.getSentryCarrier=a},408842,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(473462),o=e.r(60330),a=e.r(817221),i={};function s(e){if(!("console"in a.GLOBAL_OBJ))return e();let t=a.GLOBAL_OBJ.console,n={},r=Object.keys(i);r.forEach(e=>{let r=i[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function l(){return c().enabled}function u(e,...t){o.DEBUG_BUILD&&l()&&s(()=>{a.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function c(){return o.DEBUG_BUILD?r.getGlobalSingleton("loggerSettings",()=>({enabled:!1})):{enabled:!1}}n.CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],n.consoleSandbox=s,n.debug={enable:function(){c().enabled=!0},disable:function(){c().enabled=!1},isEnabled:l,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}},n.originalConsoleMethods=i},116538,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,o=0)=>{let a=[],s=e.split("\n");for(let e=n;e<s.length;e++){let n=s[e];n.length>1024&&(n=n.slice(0,1024));let i=r.test(n)?n.replace(r,"$1"):n;if(!i.includes("Error: ")){for(let e of t){let t=e(i);if(t){a.push(t);break}}if(a.length>=50+o)break}}return i(a.slice(o))}}function i(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(s(t).function||"")&&t.pop(),t.reverse(),o.test(s(t).function||"")&&(t.pop(),o.test(s(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||s(t).filename,function:e.function||"?"}))}function s(e){return e[e.length-1]||{}}let l="<anonymous>";n.UNKNOWN_FUNCTION="?",n.createStackParser=a,n.getFramesFromEvent=function(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}},n.getFunctionName=function(e){try{if(!e||"function"!=typeof e)return l;return e.name||l}catch{return l}},n.normalizeStackTracePath=function(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t},n.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?a(...e):e},n.stripSentryFramesAndReverse=i},94944,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(60330),o=e.r(408842),a=e.r(116538),i={},s={};n.addHandler=function(e,t){return i[e]=i[e]||[],i[e].push(t),()=>{let n=i[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},n.maybeInstrument=function(e,t){if(!s[e]){s[e]=!0;try{t()}catch(t){r.DEBUG_BUILD&&o.debug.error(`Error while instrumenting ${e}`,t)}}},n.resetInstrumentationHandlers=function(){Object.keys(i).forEach(e=>{i[e]=void 0})},n.triggerHandlers=function(e,t){let n=e&&i[e];if(n)for(let i of n)try{i(t)}catch(t){r.DEBUG_BUILD&&o.debug.error(`Error while triggering instrumentation handler.
3
3
  Type: ${e}
4
4
  Name: ${a.getFunctionName(i)}
@@ -19,8 +19,8 @@ ${e.stack}`:"unknown"}}}}}let c=r.defineIntegration((e={})=>{let t=e.limit??10;r
19
19
  `;let T=s.parseProxyResponse(n);n.write(`${_}\r
20
20
  `);let{connect:S,buffered:E}=await T;if(e.emit("proxyConnect",S),this.emit("proxyConnect",S,e),200===S.statusCode){if(e.once("socket",c),t.secureEndpoint){l("Upgrading socket connection to TLS");let e=t.servername||t.host;return o.connect({...p(t,"host","path","port"),socket:n,servername:r.isIP(e)?void 0:e})}return n}n.destroy();let d=new r.Socket({writable:!1});return d.readable=!0,e.once("socket",e=>{l("Replaying proxy buffer for failed request"),e.push(E),e.push(null)}),d}}function c(e){e.resume()}function p(e,...t){let n,r={};for(n in e)t.includes(n)||(r[n]=e[n]);return r}u.protocols=["http","https"],n.HttpsProxyAgent=u},939318,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(347299),o=e.r(743698),a=e.r(81111),i=e.r(727028),s=e.r(513128),l=e.r(463710);n.makeNodeTransport=function(e){let t;try{t=new URL(e.url)}catch(t){return s.consoleSandbox(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")}),s.createTransport(e,()=>Promise.resolve({}))}let n="https:"===t.protocol,u=function(e,t){let{no_proxy:n}=process.env;if(!n?.split(",").some(t=>e.host.endsWith(t)||e.hostname.endsWith(t)))return t}(t,e.proxy||(n?process.env.https_proxy:void 0)||process.env.http_proxy),c=n?o:r,p=void 0!==e.keepAlive&&e.keepAlive,_=u?new l.HttpsProxyAgent(u):new c.Agent({keepAlive:p,maxSockets:30,timeout:2e3}),T=function(e,t,n){let{hostname:r,pathname:o,port:l,protocol:u,search:c}=new URL(e.url);return function(p){return new Promise((_,T)=>{s.suppressTracing(()=>{var s;let S=(s=p.body,new a.Readable({read(){this.push(s),this.push(null)}})),E={...e.headers};p.body.length>32768&&(E["content-encoding"]="gzip",S=S.pipe(i.createGzip()));let d=r.startsWith("["),g=t.request({method:"POST",agent:n,headers:E,hostname:d?r.slice(1,-1):r,path:`${o}${c}`,port:l,protocol:u,ca:e.caCerts},e=>{e.on("data",()=>{}),e.on("end",()=>{}),e.setEncoding("utf8");let t=e.headers["retry-after"]??null,n=e.headers["x-sentry-rate-limits"]??null;_({statusCode:e.statusCode,headers:{"retry-after":t,"x-sentry-rate-limits":Array.isArray(n)?n[0]||null:n}})});g.on("error",T),S.pipe(g)})})}}(e,e.httpModule??c,_);return s.createTransport(e,T)}},820693,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.getSpotlightConfig=function(e){if(!1===e)return!1;if("string"==typeof e)return e;let t=r.envToBool(process.env.SENTRY_SPOTLIGHT,{strict:!0}),n=null===t&&process.env.SENTRY_SPOTLIGHT?process.env.SENTRY_SPOTLIGHT:void 0;return!0===e?n??!0:t??n}},12484,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(750227),o=e.r(513128);function a(e){return e.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}n.createGetModuleFromFilename=function(e=process.argv[1]?o.dirname(process.argv[1]):process.cwd(),t="\\"===r.sep){let n=t?a(e):e;return e=>{if(!e)return;let o=t?a(e):e,{dir:i,base:s,ext:l}=r.posix.parse(o);(".js"===l||".mjs"===l||".cjs"===l)&&(s=s.slice(0,-1*l.length));let u=decodeURIComponent(s);i||(i=".");let c=i.lastIndexOf("/node_modules");if(c>-1)return`${i.slice(c+14).replace(/\//g,".")}:${u}`;if(i.startsWith(n)){let e=i.slice(n.length+1).replace(/\//g,".");return e?`${e}:${u}`:u}return u}}},632038,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(12484);n.defaultStackParser=r.createStackParser(r.nodeStackLineParser(o.createGetModuleFromFilename())),n.getSentryRelease=function(e){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;if(r.GLOBAL_OBJ.SENTRY_RELEASE?.id)return r.GLOBAL_OBJ.SENTRY_RELEASE.id;let t=process.env.GITHUB_SHA||process.env.CI_MERGE_REQUEST_SOURCE_BRANCH_SHA||process.env.CI_BUILD_REF||process.env.CI_COMMIT_SHA||process.env.BITBUCKET_COMMIT,n=process.env.APPVEYOR_PULL_REQUEST_HEAD_COMMIT||process.env.APPVEYOR_REPO_COMMIT||process.env.CODEBUILD_RESOLVED_SOURCE_VERSION||process.env.AWS_COMMIT_ID||process.env.BUILD_SOURCEVERSION||process.env.GIT_CLONE_COMMIT_HASH||process.env.BUDDY_EXECUTION_REVISION||process.env.BUILDKITE_COMMIT||process.env.CIRCLE_SHA1||process.env.CIRRUS_CHANGE_IN_REPO||process.env.CF_REVISION||process.env.CM_COMMIT||process.env.CF_PAGES_COMMIT_SHA||process.env.DRONE_COMMIT_SHA||process.env.FC_GIT_COMMIT_SHA||process.env.HEROKU_TEST_RUN_COMMIT_VERSION||process.env.HEROKU_BUILD_COMMIT||process.env.HEROKU_SLUG_COMMIT||process.env.RAILWAY_GIT_COMMIT_SHA||process.env.RENDER_GIT_COMMIT||process.env.SEMAPHORE_GIT_SHA||process.env.TRAVIS_PULL_REQUEST_SHA||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA,o=process.env.CI_COMMIT_ID||process.env.SOURCE_COMMIT||process.env.SOURCE_VERSION||process.env.GIT_COMMIT||process.env.COMMIT_REF||process.env.BUILD_VCS_NUMBER||process.env.CI_COMMIT_SHA;return t||n||o||e}},66991,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(660526),o=e.r(92405),a=e.r(777884),i=e.r(513128),s=e.r(110516),l=e.r(37702),u=e.r(513449);class c extends i.ServerRuntimeClient{constructor(t){const n=!1===t.includeServerName?void 0:t.serverName||e.g.process.env.SENTRY_NAME||r.hostname(),o={...t,platform:"node",runtime:t.runtime||{name:"node",version:e.g.process.version},serverName:n};t.openTelemetryInstrumentations&&a.registerInstrumentations({instrumentations:t.openTelemetryInstrumentations}),i.applySdkMetadata(o,"node"),i.debug.log(`Initializing Sentry: process: ${process.pid}, thread: ${l.isMainThread?"main":`worker-${l.threadId}`}.`),super(o),this.getOptions().enableLogs&&(this._logOnExitFlushListener=()=>{i._INTERNAL_flushLogsBuffer(this)},n&&this.on("beforeCaptureLog",e=>{e.attributes={...e.attributes,"server.address":n}}),process.on("beforeExit",this._logOnExitFlushListener))}get tracer(){if(this._tracer)return this._tracer;let e=i.SDK_VERSION,t=o.trace.getTracer("@sentry/node",e);return this._tracer=t,t}async flush(e){return await this.traceProvider?.forceFlush(),this.getOptions().sendClientReports&&this._flushOutcomes(),super.flush(e)}async close(e){this._clientReportInterval&&clearInterval(this._clientReportInterval),this._clientReportOnExitFlushListener&&process.off("beforeExit",this._clientReportOnExitFlushListener),this._logOnExitFlushListener&&process.off("beforeExit",this._logOnExitFlushListener);let t=await super.close(e);return this.traceProvider&&await this.traceProvider.shutdown(),t}startClientReportTracking(){let e=this.getOptions();e.sendClientReports&&(this._clientReportOnExitFlushListener=()=>{this._flushOutcomes()},this._clientReportInterval=setInterval(()=>{u.DEBUG_BUILD&&i.debug.log("Flushing client reports based on interval."),this._flushOutcomes()},e.clientReportFlushInterval??6e4).unref(),process.on("beforeExit",this._clientReportOnExitFlushListener))}_setupIntegrations(){i._INTERNAL_clearAiProviderSkips(),super._setupIntegrations()}_getTraceInfoFromScope(e){return e?s.getTraceContextForScope(this,e):[void 0,void 0]}}n.NodeClient=c},283489,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(258555),a=e.r(362562),i=e.r(533982);var s="u">typeof document?document.currentScript:null;n.initializeEsmLoader=function(){if(i.supportsEsmLoaderHooks()&&!r.GLOBAL_OBJ._sentryEsmLoaderHookRegistered){r.GLOBAL_OBJ._sentryEsmLoaderHookRegistered=!0;try{let{addHookMessagePort:t}=o.createAddHookMessageChannel();a.register("import-in-the-middle/hook.mjs","u"<typeof document?e.r(792509).pathToFileURL("/ROOT/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js").href:s&&"SCRIPT"===s.tagName.toUpperCase()&&s.src||new URL("sdk/esmLoader.js",document.baseURI).href,{data:{addHookMessagePort:t,include:[]},transferList:[t]})}catch(e){r.debug.warn("Failed to register 'import-in-the-middle' hook",e)}}}},836958,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(110516),a=e.r(513449),i=e.r(142596),s=e.r(995119),l=e.r(398201),u=e.r(713146),c=e.r(741965),p=e.r(847335),_=e.r(114685),T=e.r(260316),S=e.r(59286),E=e.r(799183),d=e.r(688631),g=e.r(721073),A=e.r(892922),m=e.r(939318),R=e.r(533982),h=e.r(820693),f=e.r(632038),N=e.r(66991),I=e.r(283489);function y(){return[r.inboundFiltersIntegration(),r.functionToStringIntegration(),r.linkedErrorsIntegration(),r.requestDataIntegration(),A.systemErrorIntegration(),r.conversationIdIntegration(),g.consoleIntegration(),u.httpIntegration(),_.nativeNodeFetchIntegration(),T.onUncaughtExceptionIntegration(),S.onUnhandledRejectionIntegration(),l.contextLinesIntegration(),c.localVariablesIntegration(),s.nodeContextIntegration(),i.childProcessIntegration(),E.processSessionIntegration(),p.modulesIntegration()]}function b(e={},t){var n,i;let s,l,u,c,p,_,T,S=(n=e,i=t,s=function(e){if(void 0!==e)return e;let t=f.getSentryRelease();if(void 0!==t)return t}(n.release),l=h.getSpotlightConfig(n.spotlight),u=function(e){if(void 0!==e)return e;let t=process.env.SENTRY_TRACES_SAMPLE_RATE;if(!t)return;let n=parseFloat(t);return isFinite(n)?n:void 0}(n.tracesSampleRate),c={...n,dsn:n.dsn??process.env.SENTRY_DSN,environment:n.environment??process.env.SENTRY_ENVIRONMENT,sendClientReports:n.sendClientReports??!0,transport:n.transport??m.makeNodeTransport,stackParser:r.stackParserFromStackParserOptions(n.stackParser||f.defaultStackParser),release:s,tracesSampleRate:u,spotlight:l,debug:r.envToBool(n.debug??process.env.SENTRY_DEBUG)},p=n.integrations,_=n.defaultIntegrations??i(c),T=r.getIntegrationsToSetup({defaultIntegrations:_,integrations:p}),"stream"!==c.traceLifecycle||T.some(e=>"SpanStreaming"===e.name)||T.push(r.spanStreamingIntegration()),{...c,integrations:T});!0===S.debug&&(a.DEBUG_BUILD?r.debug.enable():r.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),!1!==S.registerEsmLoaderHooks&&I.initializeEsmLoader(),o.setOpenTelemetryContextAsyncContextStrategy(),r.getCurrentScope().update(S.initialScope),S.spotlight&&!S.integrations.some(({name:e})=>e===d.INTEGRATION_NAME)&&S.integrations.push(d.spotlightIntegration({sidecarUrl:"string"==typeof S.spotlight?S.spotlight:void 0})),r.applySdkMetadata(S,"node-core");let E=new N.NodeClient(S);return r.getCurrentScope().setClient(E),E.init(),r.debug.log(`SDK initialized from ${R.isCjs()?"CommonJS":"ESM"}`),E.startClientReportTracking(),function(){if(!1!==r.envToBool(process.env.SENTRY_USE_ENVIRONMENT)){let e=process.env.SENTRY_TRACE,t=process.env.SENTRY_BAGGAGE,n=r.propagationContextFromHeaders(e,t);r.getCurrentScope().setPropagationContext(n)}}(),o.enhanceDscWithOpenTelemetryRootSpanName(E),o.setupEventContextTrace(E),process.env.VERCEL&&process.on("SIGTERM",async()=>{await E.flush(200)}),E}n.getDefaultIntegrations=y,n.init=function(e={}){return b(e,y)},n.initWithoutDefaultIntegrations=function(e={}){return b(e,()=>[])},n.validateOpenTelemetrySetup=function(){if(!a.DEBUG_BUILD)return;let e=o.openTelemetrySetupCheck(),t=["SentryContextManager","SentryPropagator"];for(let n of(r.hasSpansEnabled()&&t.push("SentrySpanProcessor"),t))e.includes(n)||r.debug.error(`You have to set up the ${n}. Without this, the OpenTelemetry & Sentry integration will not work properly.`);e.includes("SentrySampler")||r.debug.warn("You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected. If you use a custom sampler, make sure to use `wrapSamplingDecision`.")}},598436,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(110516);n.setIsolationScope=function(e){let t=o.getScopesFromContext(r.context.active());t&&(t.isolationScope=e)}},957857,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(533982);n.createMissingInstrumentationContext=e=>({package:e,"javascript.is_cjs":r.isCjs()})},976467,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(513128),a=e.r(957857),i=e.r(533982);n.ensureIsWrapped=function(e,t){let n=o.getClient()?.getOptions();!n?.disableInstrumentationWarnings&&!(r.isWrapped(e)||"function"==typeof o.getOriginalFunction(e))&&o.isEnabled()&&o.hasSpansEnabled(n)&&(o.consoleSandbox(()=>{i.isCjs()?console.warn(`[Sentry] ${t} is not instrumented. This is likely because you required/imported ${t} before calling \`Sentry.init()\`.`):console.warn(`[Sentry] ${t} is not instrumented. Please make sure to initialize Sentry in a separate file that you \`--import\` when running node, see: https://docs.sentry.io/platforms/javascript/guides/${t}/install/esm/.`)}),o.getGlobalScope().setContext("missing_instrumentation",a.createMissingInstrumentationContext(t)))}},190309,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(812057),o=e.r(925127),a=e.r(513128),i=e.r(781521),s=e.r(685645),{isPromise:l}=r.types,u="LyohIEBzZW50cnkvbm9kZS1jb3JlIDEwLjU3LjAgKDk1MGNmOTcpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyB0fWZyb20ibm9kZTppbnNwZWN0b3IiO2ltcG9ydHt3b3JrZXJEYXRhIGFzIG4scGFyZW50UG9ydCBhcyBlfWZyb20ibm9kZTp3b3JrZXJfdGhyZWFkcyI7aW1wb3J0e3Bvc2l4IGFzIHIsc2VwIGFzIG99ZnJvbSJub2RlOnBhdGgiO2ltcG9ydCphcyBpIGZyb20ibm9kZTpodHRwIjtpbXBvcnQqYXMgcyBmcm9tIm5vZGU6aHR0cHMiO2ltcG9ydHtSZWFkYWJsZSBhcyBjfWZyb20ibm9kZTpzdHJlYW0iO2ltcG9ydHtjcmVhdGVHemlwIGFzIHV9ZnJvbSJub2RlOnpsaWIiO2ltcG9ydCphcyBhIGZyb20ibm9kZTpuZXQiO2ltcG9ydCphcyBmIGZyb20ibm9kZTp0bHMiO2NvbnN0IGg9InVuZGVmaW5lZCI9PXR5cGVvZiBfX1NFTlRSWV9ERUJVR19ffHxfX1NFTlRSWV9ERUJVR19fLHA9Z2xvYmFsVGhpcyxkPSIxMC41Ny4wIjtmdW5jdGlvbiBsKCl7cmV0dXJuIGcocCkscH1mdW5jdGlvbiBnKHQpe2NvbnN0IG49dC5fX1NFTlRSWV9fPXQuX19TRU5UUllfX3x8e307cmV0dXJuIG4udmVyc2lvbj1uLnZlcnNpb258fGQsbltkXT1uW2RdfHx7fX1mdW5jdGlvbiBtKHQsbixlPXApe2NvbnN0IHI9ZS5fX1NFTlRSWV9fPWUuX19TRU5UUllfX3x8e30sbz1yW2RdPXJbZF18fHt9O3JldHVybiBvW3RdfHwob1t0XT1uKCkpfWNvbnN0IHk9e307ZnVuY3Rpb24gYih0KXtpZighKCJjb25zb2xlImluIHApKXJldHVybiB0KCk7Y29uc3Qgbj1wLmNvbnNvbGUsZT17fSxyPU9iamVjdC5rZXlzKHkpO3IuZm9yRWFjaCh0PT57Y29uc3Qgcj15W3RdO2VbdF09blt0XSxuW3RdPXJ9KTt0cnl7cmV0dXJuIHQoKX1maW5hbGx5e3IuZm9yRWFjaCh0PT57blt0XT1lW3RdfSl9fWZ1bmN0aW9uIHYoKXtyZXR1cm4gUygpLmVuYWJsZWR9ZnVuY3Rpb24gXyh0LC4uLm4pe2gmJnYoKSYmYigoKT0+e3AuY29uc29sZVt0XShgU2VudHJ5IExvZ2dlciBbJHt0fV06YCwuLi5uKX0pfWZ1bmN0aW9uIFMoKXtyZXR1cm4gaD9tKCJsb2dnZXJTZXR0aW5ncyIsKCk9Pih7ZW5hYmxlZDohMX0pKTp7ZW5hYmxlZDohMX19Y29uc3Qgdz17ZW5hYmxlOmZ1bmN0aW9uKCl7UygpLmVuYWJsZWQ9ITB9LGRpc2FibGU6ZnVuY3Rpb24oKXtTKCkuZW5hYmxlZD0hMX0saXNFbmFibGVkOnYsbG9nOmZ1bmN0aW9uKC4uLnQpe18oImxvZyIsLi4udCl9LHdhcm46ZnVuY3Rpb24oLi4udCl7Xygid2FybiIsLi4udCl9LGVycm9yOmZ1bmN0aW9uKC4uLnQpe18oImVycm9yIiwuLi50KX19LCQ9L2NhcHR1cmVNZXNzYWdlfGNhcHR1cmVFeGNlcHRpb24vO2Z1bmN0aW9uIEUodCl7cmV0dXJuIHRbdC5sZW5ndGgtMV18fHt9fWNvbnN0IHg9Ijxhbm9ueW1vdXM+Ijtjb25zdCBOPU9iamVjdC5wcm90b3R5cGUudG9TdHJpbmc7ZnVuY3Rpb24gQyh0LG4pe3JldHVybiBOLmNhbGwodCk9PT1gW29iamVjdCAke259XWB9ZnVuY3Rpb24gaih0KXtyZXR1cm4gQm9vbGVhbih0Py50aGVuJiYiZnVuY3Rpb24iPT10eXBlb2YgdC50aGVuKX1mdW5jdGlvbiBBKHQsbil7dHJ5e3JldHVybiB0IGluc3RhbmNlb2Ygbn1jYXRjaHtyZXR1cm4hMX19ZnVuY3Rpb24gSSh0KXtpZihmdW5jdGlvbih0KXtzd2l0Y2goTi5jYWxsKHQpKXtjYXNlIltvYmplY3QgRXJyb3JdIjpjYXNlIltvYmplY3QgRXhjZXB0aW9uXSI6Y2FzZSJbb2JqZWN0IERPTUV4Y2VwdGlvbl0iOmNhc2UiW29iamVjdCBXZWJBc3NlbWJseS5FeGNlcHRpb25dIjpyZXR1cm4hMDtkZWZhdWx0OnJldHVybiBBKHQsRXJyb3IpfX0odCkpcmV0dXJue21lc3NhZ2U6dC5tZXNzYWdlLG5hbWU6dC5uYW1lLHN0YWNrOnQuc3RhY2ssLi4uUih0KX07aWYobj10LCJ1bmRlZmluZWQiIT10eXBlb2YgRXZlbnQmJkEobixFdmVudCkpe2NvbnN0e3R5cGU6bix0YXJnZXQ6ZSxjdXJyZW50VGFyZ2V0OnIsZGV0YWlsOm99PXQ7cmV0dXJue3R5cGU6bix0YXJnZXQ6ZSxjdXJyZW50VGFyZ2V0OnIsLi4ubz97ZGV0YWlsOm99Ont9LC4uLlIodCl9fXZhciBuO3JldHVybiB0fWZ1bmN0aW9uIFIodCl7cmV0dXJuIm9iamVjdCI9PXR5cGVvZiB0JiZudWxsIT09dD9PYmplY3QuZnJvbUVudHJpZXMoT2JqZWN0LmVudHJpZXModCkpOnt9fWxldCBPO2Z1bmN0aW9uIFQodCl7aWYodm9pZCAwIT09TylyZXR1cm4gTz9PKHQpOnQoKTtjb25zdCBuPVN5bWJvbC5mb3IoIl9fU0VOVFJZX1NBRkVfUkFORE9NX0lEX1dSQVBQRVJfXyIpLGU9cDtyZXR1cm4gbiBpbiBlJiYiZnVuY3Rpb24iPT10eXBlb2YgZVtuXT8oTz1lW25dLE8odCkpOihPPW51bGwsdCgpKX1mdW5jdGlvbiBrKCl7cmV0dXJuIFQoKCk9Pk1hdGgucmFuZG9tKCkpfWZ1bmN0aW9uIFAoKXtyZXR1cm4gVCgoKT0+RGF0ZS5ub3coKSl9Y29uc3QgRD1TeW1ib2wuZm9yKCJzZW50cnkuc2tpcE5vcm1hbGl6YXRpb24iKSxVPVN5bWJvbC5mb3IoInNlbnRyeS5vdmVycmlkZU5vcm1hbGl6YXRpb25EZXB0aCIpO2Z1bmN0aW9uIEIodCxuPTEwMCxlPTEvMCl7dHJ5e3JldHVybiBMKCIiLHQsbixlKX1jYXRjaCh0KXtyZXR1cm57RVJST1I6YCoqbm9uLXNlcmlhbGl6YWJsZSoqICgke3R9KWB9fX1mdW5jdGlvbiBMKHQsbixlPTEvMCxyPTEvMCxvPWZ1bmN0aW9uKCl7Y29uc3QgdD1uZXcgV2Vha1NldDtmdW5jdGlvbiBuKG4pe3JldHVybiEhdC5oYXMobil8fCh0LmFkZChuKSwhMSl9ZnVuY3Rpb24gZShuKXt0LmRlbGV0ZShuKX1yZXR1cm5bbixlXX0oKSl7Y29uc3RbaSxzXT1vO2lmKG51bGw9PW58fFsiYm9vbGVhbiIsInN0cmluZyJdLmluY2x1ZGVzKHR5cGVvZiBuKXx8Im51bWJlciI9PXR5cGVvZiBuJiZOdW1iZXIuaXNGaW5pdGUobikpcmV0dXJuIG47Y29uc3QgYz1mdW5jdGlvbih0LG4pe3RyeXtpZigidW5kZWZpbmVkIiE9dHlwZW9mIGdsb2JhbCYmbj09PWdsb2JhbClyZXR1cm4iW0dsb2JhbF0iO2lmKCJudW1iZXIiPT10eXBlb2YgbiYmIU51bWJlci5pc0Zpbml0ZShuKSlyZXR1cm5gWyR7bn1dYDtpZigiZnVuY3Rpb24iPT10eXBlb2YgbilyZXR1cm5gW0Z1bmN0aW9uOiAke2Z1bmN0aW9uKHQpe3RyeXtyZXR1cm4gdCYmImZ1bmN0aW9uIj09dHlwZW9mIHQmJnQubmFtZXx8eH1jYXRjaHtyZXR1cm4geH19KG4pfV1gO2lmKCJzeW1ib2wiPT10eXBlb2YgbilyZXR1cm5gWyR7U3RyaW5nKG4pfV1gO2lmKCJiaWdpbnQiPT10eXBlb2YgbilyZXR1cm5gW0JpZ0ludDogJHtTdHJpbmcobil9XWA7Y29uc3QgdD1mdW5jdGlvbih0KXtjb25zdCBuPU9iamVjdC5nZXRQcm90b3R5cGVPZih0KTtyZXR1cm4gbj8uY29uc3RydWN0b3I/bi5jb25zdHJ1Y3Rvci5uYW1lOiJudWxsIHByb3RvdHlwZSJ9KG4pO3JldHVybmBbb2JqZWN0ICR7dH1dYH1jYXRjaCh0KXtyZXR1cm5gKipub24tc2VyaWFsaXphYmxlKiogKCR7dH0pYH19KDAsbik7aWYoIWMuc3RhcnRzV2l0aCgiW29iamVjdCAiKSlyZXR1cm4gYztpZihmdW5jdGlvbih0KXtyZXR1cm4gQm9vbGVhbih0W0RdKX0obikpcmV0dXJuIG47Y29uc3QgdT1mdW5jdGlvbih0KXtjb25zdCBuPXRbVV07cmV0dXJuIm51bWJlciI9PXR5cGVvZiBuP246dm9pZCAwfShuKSxhPXZvaWQgMCE9PXU/dTplO2lmKDA9PT1hKXJldHVybiBjLnJlcGxhY2UoIm9iamVjdCAiLCIiKTtpZihpKG4pKXJldHVybiJbQ2lyY3VsYXIgfl0iO2NvbnN0IGY9bjtpZihmJiYiZnVuY3Rpb24iPT10eXBlb2YgZi50b0pTT04pdHJ5e3JldHVybiBMKCIiLGYudG9KU09OKCksYS0xLHIsbyl9Y2F0Y2h7fWNvbnN0IGg9QXJyYXkuaXNBcnJheShuKT9bXTp7fTtsZXQgcD0wO2NvbnN0IGQ9SShuKTtmb3IoY29uc3QgdCBpbiBkKXtpZighT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGQsdCkpY29udGludWU7aWYocD49cil7aFt0XT0iW01heFByb3BlcnRpZXMgfl0iO2JyZWFrfWNvbnN0IG49ZFt0XTtoW3RdPUwodCxuLGEtMSxyLG8pLHArK31yZXR1cm4gcyhuKSxofWZ1bmN0aW9uIE0odCxuKXtjb25zdCBlPW4ucmVwbGFjZSgvXFwvZywiLyIpLnJlcGxhY2UoL1t8XFx7fSgpW1xdXiQrKj8uXS9nLCJcXCQmIik7bGV0IHI9dDt0cnl7cj1kZWNvZGVVUkkodCl9Y2F0Y2h7fXJldHVybiByLnJlcGxhY2UoL1xcL2csIi8iKS5yZXBsYWNlKC93ZWJwYWNrOlwvPy9nLCIiKS5yZXBsYWNlKG5ldyBSZWdFeHAoYChmaWxlOi8vKT8vKiR7ZX0vKmAsImlnIiksImFwcDovLy8iKX1mdW5jdGlvbiB6KHQsbj0wKXtyZXR1cm4ic3RyaW5nIiE9dHlwZW9mIHR8fDA9PT1ufHx0Lmxlbmd0aDw9bj90OmAke3Quc2xpY2UoMCxuKX0uLi5gfWxldCBGO2Z1bmN0aW9uIEcodD1mdW5jdGlvbigpe2NvbnN0IHQ9cDtyZXR1cm4gdC5jcnlwdG98fHQubXNDcnlwdG99KCkpe3RyeXtpZih0Py5yYW5kb21VVUlEKXJldHVybiBUKCgpPT50LnJhbmRvbVVVSUQoKSkucmVwbGFjZSgvLS9nLCIiKX1jYXRjaHt9cmV0dXJuIEZ8fChGPSIxMDAwMDAwMDEwMDA0MDAwODAwMDEwMDAwMDAwMDAwMCIpLEYucmVwbGFjZSgvWzAxOF0vZyx0PT4odF4oMTYqaygpJjE1KT4+dC80KS50b1N0cmluZygxNikpfWZ1bmN0aW9uIEooKXtyZXR1cm4gUCgpLzFlM31sZXQgVztmdW5jdGlvbiBZKCl7cmV0dXJuKFc/PyhXPWZ1bmN0aW9uKCl7Y29uc3R7cGVyZm9ybWFuY2U6dH09cDtpZighdD8ubm93fHwhdC50aW1lT3JpZ2luKXJldHVybiBKO2NvbnN0IG49dC50aW1lT3JpZ2luO3JldHVybigpPT4obitUKCgpPT50Lm5vdygpKSkvMWUzfSgpKSkoKX1mdW5jdGlvbiBIKHQpe2NvbnN0IG49WSgpLGU9e3NpZDpHKCksaW5pdDohMCx0aW1lc3RhbXA6bixzdGFydGVkOm4sZHVyYXRpb246MCxzdGF0dXM6Im9rIixlcnJvcnM6MCxpZ25vcmVEdXJhdGlvbjohMSx0b0pTT046KCk9PmZ1bmN0aW9uKHQpe3JldHVybntzaWQ6YCR7dC5zaWR9YCxpbml0OnQuaW5pdCxzdGFydGVkOm5ldyBEYXRlKDFlMyp0LnN0YXJ0ZWQpLnRvSVNPU3RyaW5nKCksdGltZXN0YW1wOm5ldyBEYXRlKDFlMyp0LnRpbWVzdGFtcCkudG9JU09TdHJpbmcoKSxzdGF0dXM6dC5zdGF0dXMsZXJyb3JzOnQuZXJyb3JzLGRpZDoibnVtYmVyIj09dHlwZW9mIHQuZGlkfHwic3RyaW5nIj09dHlwZW9mIHQuZGlkP2Ake3QuZGlkfWA6dm9pZCAwLGR1cmF0aW9uOnQuZHVyYXRpb24sYWJub3JtYWxfbWVjaGFuaXNtOnQuYWJub3JtYWxfbWVjaGFuaXNtLGF0dHJzOntyZWxlYXNlOnQucmVsZWFzZSxlbnZpcm9ubWVudDp0LmVudmlyb25tZW50LGlwX2FkZHJlc3M6dC5pcEFkZHJlc3MsdXNlcl9hZ2VudDp0LnVzZXJBZ2VudH19fShlKX07cmV0dXJuIHQmJksoZSx0KSxlfWZ1bmN0aW9uIEsodCxuPXt9KXtpZihuLnVzZXImJighdC5pcEFkZHJlc3MmJm4udXNlci5pcF9hZGRyZXNzJiYodC5pcEFkZHJlc3M9bi51c2VyLmlwX2FkZHJlc3MpLHQuZGlkfHxuLmRpZHx8KHQuZGlkPW4udXNlci5pZHx8bi51c2VyLmVtYWlsfHxuLnVzZXIudXNlcm5hbWUpKSx0LnRpbWVzdGFtcD1uLnRpbWVzdGFtcHx8WSgpLG4uYWJub3JtYWxfbWVjaGFuaXNtJiYodC5hYm5vcm1hbF9tZWNoYW5pc209bi5hYm5vcm1hbF9tZWNoYW5pc20pLG4uaWdub3JlRHVyYXRpb24mJih0Lmlnbm9yZUR1cmF0aW9uPW4uaWdub3JlRHVyYXRpb24pLG4uc2lkJiYodC5zaWQ9MzI9PT1uLnNpZC5sZW5ndGg/bi5zaWQ6RygpKSx2b2lkIDAhPT1uLmluaXQmJih0LmluaXQ9bi5pbml0KSwhdC5kaWQmJm4uZGlkJiYodC5kaWQ9YCR7bi5kaWR9YCksIm51bWJlciI9PXR5cGVvZiBuLnN0YXJ0ZWQmJih0LnN0YXJ0ZWQ9bi5zdGFydGVkKSx0Lmlnbm9yZUR1cmF0aW9uKXQuZHVyYXRpb249dm9pZCAwO2Vsc2UgaWYoIm51bWJlciI9PXR5cGVvZiBuLmR1cmF0aW9uKXQuZHVyYXRpb249bi5kdXJhdGlvbjtlbHNle2NvbnN0IG49dC50aW1lc3RhbXAtdC5zdGFydGVkO3QuZHVyYXRpb249bj49MD9uOjB9bi5yZWxlYXNlJiYodC5yZWxlYXNlPW4ucmVsZWFzZSksbi5lbnZpcm9ubWVudCYmKHQuZW52aXJvbm1lbnQ9bi5lbnZpcm9ubWVudCksIXQuaXBBZGRyZXNzJiZuLmlwQWRkcmVzcyYmKHQuaXBBZGRyZXNzPW4uaXBBZGRyZXNzKSwhdC51c2VyQWdlbnQmJm4udXNlckFnZW50JiYodC51c2VyQWdlbnQ9bi51c2VyQWdlbnQpLCJudW1iZXIiPT10eXBlb2Ygbi5lcnJvcnMmJih0LmVycm9ycz1uLmVycm9ycyksbi5zdGF0dXMmJih0LnN0YXR1cz1uLnN0YXR1cyl9ZnVuY3Rpb24gWih0LG4sZT0yKXtpZighbnx8Im9iamVjdCIhPXR5cGVvZiBufHxlPD0wKXJldHVybiBuO2lmKHQmJjA9PT1PYmplY3Qua2V5cyhuKS5sZW5ndGgpcmV0dXJuIHQ7Y29uc3Qgcj17Li4udH07Zm9yKGNvbnN0IHQgaW4gbilPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwobix0KSYmKHJbdF09WihyW3RdLG5bdF0sZS0xKSk7cmV0dXJuIHJ9ZnVuY3Rpb24gcSgpe3JldHVybiBHKCl9ZnVuY3Rpb24gVigpe3JldHVybiBHKCkuc3Vic3RyaW5nKDE2KX1mdW5jdGlvbiBRKHQpe2lmKHQpe2lmKCJvYmplY3QiPT10eXBlb2YgdCYmImRlcmVmImluIHQmJiJmdW5jdGlvbiI9PXR5cGVvZiB0LmRlcmVmKXRyeXtyZXR1cm4gdC5kZXJlZigpfWNhdGNoe3JldHVybn1yZXR1cm4gdH19Y29uc3QgWD0iX3NlbnRyeVNwYW4iO2Z1bmN0aW9uIHR0KHQsbil7bj9mdW5jdGlvbih0LG4sZSl7dHJ5e09iamVjdC5kZWZpbmVQcm9wZXJ0eSh0LG4se3ZhbHVlOmUsd3JpdGFibGU6ITAsY29uZmlndXJhYmxlOiEwfSl9Y2F0Y2h7aCYmdy5sb2coYEZhaWxlZCB0byBhZGQgbm9uLWVudW1lcmFibGUgcHJvcGVydHkgIiR7U3RyaW5nKG4pfSIgdG8gb2JqZWN0YCx0KX19KHQsWCxmdW5jdGlvbih0KXt0cnl7Y29uc3Qgbj1wLldlYWtSZWY7aWYoImZ1bmN0aW9uIj09dHlwZW9mIG4pcmV0dXJuIG5ldyBuKHQpfWNhdGNoe31yZXR1cm4gdH0obikpOmRlbGV0ZSB0W1hdfWZ1bmN0aW9uIG50KHQpe3JldHVybiBRKHRbWF0pfWNsYXNzIGV0e2NvbnN0cnVjdG9yKCl7dGhpcy50PSExLHRoaXMubz1bXSx0aGlzLmk9W10sdGhpcy51PVtdLHRoaXMuaD1bXSx0aGlzLnA9e30sdGhpcy5sPXt9LHRoaXMubT17fSx0aGlzLnY9e30sdGhpcy5fPXt9LHRoaXMuUz17fSx0aGlzLk49e3RyYWNlSWQ6cSgpLHNhbXBsZVJhbmQ6aygpfX1jbG9uZSgpe2NvbnN0IHQ9bmV3IGV0O3JldHVybiB0LnU9Wy4uLnRoaXMudV0sdC5sPXsuLi50aGlzLmx9LHQubT17Li4udGhpcy5tfSx0LnY9ey4uLnRoaXMudn0sdC5fPXsuLi50aGlzLl99LHRoaXMuXy5mbGFncyYmKHQuXy5mbGFncz17dmFsdWVzOlsuLi50aGlzLl8uZmxhZ3MudmFsdWVzXX0pLHQucD10aGlzLnAsdC5DPXRoaXMuQyx0Lmo9dGhpcy5qLHQuQT10aGlzLkEsdC5JPXRoaXMuSSx0Lmk9Wy4uLnRoaXMuaV0sdC5oPVsuLi50aGlzLmhdLHQuUz17Li4udGhpcy5TfSx0Lk49ey4uLnRoaXMuTn0sdC5SPXRoaXMuUix0Lk89dGhpcy5PLHQuVD10aGlzLlQsdHQodCxudCh0aGlzKSksdH1zZXRDbGllbnQodCl7dGhpcy5SPXR9c2V0TGFzdEV2ZW50SWQodCl7dGhpcy5PPXR9Z2V0Q2xpZW50KCl7cmV0dXJuIHRoaXMuUn1sYXN0RXZlbnRJZCgpe3JldHVybiB0aGlzLk99YWRkU2NvcGVMaXN0ZW5lcih0KXt0aGlzLm8ucHVzaCh0KX1hZGRFdmVudFByb2Nlc3Nvcih0KXtyZXR1cm4gdGhpcy5pLnB1c2godCksdGhpc31zZXRVc2VyKHQpe3JldHVybiB0aGlzLnA9dHx8e2VtYWlsOnZvaWQgMCxpZDp2b2lkIDAsaXBfYWRkcmVzczp2b2lkIDAsdXNlcm5hbWU6dm9pZCAwfSx0aGlzLmomJksodGhpcy5qLHt1c2VyOnR9KSx0aGlzLmsoKSx0aGlzfWdldFVzZXIoKXtyZXR1cm4gdGhpcy5wfXNldENvbnZlcnNhdGlvbklkKHQpe3JldHVybiB0aGlzLlQ9dHx8dm9pZCAwLHRoaXMuaygpLHRoaXN9c2V0VGFncyh0KXtyZXR1cm4gdGhpcy5sPXsuLi50aGlzLmwsLi4udH0sdGhpcy5rKCksdGhpc31zZXRUYWcodCxuKXtyZXR1cm4gdGhpcy5zZXRUYWdzKHtbdF06bn0pfXNldEF0dHJpYnV0ZXModCl7cmV0dXJuIHRoaXMubT17Li4udGhpcy5tLC4uLnR9LHRoaXMuaygpLHRoaXN9c2V0QXR0cmlidXRlKHQsbil7cmV0dXJuIHRoaXMuc2V0QXR0cmlidXRlcyh7W3RdOm59KX1yZW1vdmVBdHRyaWJ1dGUodCl7cmV0dXJuIHQgaW4gdGhpcy5tJiYoZGVsZXRlIHRoaXMubVt0XSx0aGlzLmsoKSksdGhpc31zZXRFeHRyYXModCl7cmV0dXJuIHRoaXMudj17Li4udGhpcy52LC4uLnR9LHRoaXMuaygpLHRoaXN9c2V0RXh0cmEodCxuKXtyZXR1cm4gdGhpcy52PXsuLi50aGlzLnYsW3RdOm59LHRoaXMuaygpLHRoaXN9c2V0RmluZ2VycHJpbnQodCl7cmV0dXJuIHRoaXMuST10LHRoaXMuaygpLHRoaXN9c2V0TGV2ZWwodCl7cmV0dXJuIHRoaXMuQz10LHRoaXMuaygpLHRoaXN9c2V0VHJhbnNhY3Rpb25OYW1lKHQpe3JldHVybiB0aGlzLkE9dCx0aGlzLmsoKSx0aGlzfXNldENvbnRleHQodCxuKXtyZXR1cm4gbnVsbD09PW4/ZGVsZXRlIHRoaXMuX1t0XTp0aGlzLl9bdF09bix0aGlzLmsoKSx0aGlzfXNldFNlc3Npb24odCl7cmV0dXJuIHQ/dGhpcy5qPXQ6ZGVsZXRlIHRoaXMuaix0aGlzLmsoKSx0aGlzfWdldFNlc3Npb24oKXtyZXR1cm4gdGhpcy5qfXVwZGF0ZSh0KXtpZighdClyZXR1cm4gdGhpcztjb25zdCBuPSJmdW5jdGlvbiI9PXR5cGVvZiB0P3QodGhpcyk6dCxlPW4gaW5zdGFuY2VvZiBldD9uLmdldFNjb3BlRGF0YSgpOkMobiwiT2JqZWN0Iik/dDp2b2lkIDA7Y29uc3R7dGFnczpyLGF0dHJpYnV0ZXM6byxleHRyYTppLHVzZXI6cyxjb250ZXh0czpjLGxldmVsOnUsZmluZ2VycHJpbnQ6YT1bXSxwcm9wYWdhdGlvbkNvbnRleHQ6Zixjb252ZXJzYXRpb25JZDpofT1lfHx7fTtyZXR1cm4gdGhpcy5sPXsuLi50aGlzLmwsLi4ucn0sdGhpcy5tPXsuLi50aGlzLm0sLi4ub30sdGhpcy52PXsuLi50aGlzLnYsLi4uaX0sdGhpcy5fPXsuLi50aGlzLl8sLi4uY30scyYmT2JqZWN0LmtleXMocykubGVuZ3RoJiYodGhpcy5wPXMpLHUmJih0aGlzLkM9dSksYS5sZW5ndGgmJih0aGlzLkk9YSksZiYmKHRoaXMuTj1mKSxoJiYodGhpcy5UPWgpLHRoaXN9Y2xlYXIoKXtyZXR1cm4gdGhpcy51PVtdLHRoaXMubD17fSx0aGlzLm09e30sdGhpcy52PXt9LHRoaXMucD17fSx0aGlzLl89e30sdGhpcy5DPXZvaWQgMCx0aGlzLkE9dm9pZCAwLHRoaXMuST12b2lkIDAsdGhpcy5qPXZvaWQgMCx0aGlzLlQ9dm9pZCAwLHR0KHRoaXMsdm9pZCAwKSx0aGlzLmg9W10sdGhpcy5zZXRQcm9wYWdhdGlvbkNvbnRleHQoe3RyYWNlSWQ6cSgpLHNhbXBsZVJhbmQ6aygpfSksdGhpcy5rKCksdGhpc31hZGRCcmVhZGNydW1iKHQsbil7Y29uc3QgZT0ibnVtYmVyIj09dHlwZW9mIG4/bjoxMDA7aWYoZTw9MClyZXR1cm4gdGhpcztjb25zdCByPXt0aW1lc3RhbXA6SigpLC4uLnQsbWVzc2FnZTp0Lm1lc3NhZ2U/eih0Lm1lc3NhZ2UsMjA0OCk6dC5tZXNzYWdlfTtyZXR1cm4gdGhpcy51LnB1c2gociksdGhpcy51Lmxlbmd0aD5lJiYodGhpcy51PXRoaXMudS5zbGljZSgtZSksdGhpcy5SPy5yZWNvcmREcm9wcGVkRXZlbnQoImJ1ZmZlcl9vdmVyZmxvdyIsImxvZ19pdGVtIikpLHRoaXMuaygpLHRoaXN9Z2V0TGFzdEJyZWFkY3J1bWIoKXtyZXR1cm4gdGhpcy51W3RoaXMudS5sZW5ndGgtMV19Y2xlYXJCcmVhZGNydW1icygpe3JldHVybiB0aGlzLnU9W10sdGhpcy5rKCksdGhpc31hZGRBdHRhY2htZW50KHQpe3JldHVybiB0aGlzLmgucHVzaCh0KSx0aGlzfWNsZWFyQXR0YWNobWVudHMoKXtyZXR1cm4gdGhpcy5oPVtdLHRoaXN9Z2V0U2NvcGVEYXRhKCl7cmV0dXJue2JyZWFkY3J1bWJzOnRoaXMudSxhdHRhY2htZW50czp0aGlzLmgsY29udGV4dHM6dGhpcy5fLHRhZ3M6dGhpcy5sLGF0dHJpYnV0ZXM6dGhpcy5tLGV4dHJhOnRoaXMudix1c2VyOnRoaXMucCxsZXZlbDp0aGlzLkMsZmluZ2VycHJpbnQ6dGhpcy5JfHxbXSxldmVudFByb2Nlc3NvcnM6dGhpcy5pLHByb3BhZ2F0aW9uQ29udGV4dDp0aGlzLk4sc2RrUHJvY2Vzc2luZ01ldGFkYXRhOnRoaXMuUyx0cmFuc2FjdGlvbk5hbWU6dGhpcy5BLHNwYW46bnQodGhpcyksY29udmVyc2F0aW9uSWQ6dGhpcy5UfX1zZXRTREtQcm9jZXNzaW5nTWV0YWRhdGEodCl7cmV0dXJuIHRoaXMuUz1aKHRoaXMuUyx0LDIpLHRoaXN9c2V0UHJvcGFnYXRpb25Db250ZXh0KHQpe3JldHVybiB0aGlzLk49dCx0aGlzfWdldFByb3BhZ2F0aW9uQ29udGV4dCgpe3JldHVybiB0aGlzLk59Y2FwdHVyZUV4Y2VwdGlvbih0LG4pe2NvbnN0IGU9bj8uZXZlbnRfaWR8fEcoKTtpZighdGhpcy5SKXJldHVybiBoJiZ3Lndhcm4oIk5vIGNsaWVudCBjb25maWd1cmVkIG9uIHNjb3BlIC0gd2lsbCBub3QgY2FwdHVyZSBleGNlcHRpb24hIiksZTtjb25zdCByPW5ldyBFcnJvcigiU2VudHJ5IHN5bnRoZXRpY0V4Y2VwdGlvbiIpO3JldHVybiB0aGlzLlIuY2FwdHVyZUV4Y2VwdGlvbih0LHtvcmlnaW5hbEV4Y2VwdGlvbjp0LHN5bnRoZXRpY0V4Y2VwdGlvbjpyLC4uLm4sZXZlbnRfaWQ6ZX0sdGhpcyksZX1jYXB0dXJlTWVzc2FnZSh0LG4sZSl7Y29uc3Qgcj1lPy5ldmVudF9pZHx8RygpO2lmKCF0aGlzLlIpcmV0dXJuIGgmJncud2FybigiTm8gY2xpZW50IGNvbmZpZ3VyZWQgb24gc2NvcGUgLSB3aWxsIG5vdCBjYXB0dXJlIG1lc3NhZ2UhIikscjtjb25zdCBvPWU/LnN5bnRoZXRpY0V4Y2VwdGlvbj8/bmV3IEVycm9yKHQpO3JldHVybiB0aGlzLlIuY2FwdHVyZU1lc3NhZ2UodCxuLHtvcmlnaW5hbEV4Y2VwdGlvbjp0LHN5bnRoZXRpY0V4Y2VwdGlvbjpvLC4uLmUsZXZlbnRfaWQ6cn0sdGhpcykscn1jYXB0dXJlRXZlbnQodCxuKXtjb25zdCBlPXQuZXZlbnRfaWR8fG4/LmV2ZW50X2lkfHxHKCk7cmV0dXJuIHRoaXMuUj8odGhpcy5SLmNhcHR1cmVFdmVudCh0LHsuLi5uLGV2ZW50X2lkOmV9LHRoaXMpLGUpOihoJiZ3Lndhcm4oIk5vIGNsaWVudCBjb25maWd1cmVkIG9uIHNjb3BlIC0gd2lsbCBub3QgY2FwdHVyZSBldmVudCEiKSxlKX1rKCl7dGhpcy50fHwodGhpcy50PSEwLHRoaXMuby5mb3JFYWNoKHQ9Pnt0KHRoaXMpfSksdGhpcy50PSExKX19Y29uc3QgcnQ9dD0+dCBpbnN0YW5jZW9mIFByb21pc2UmJiF0W290XSxvdD1TeW1ib2woImNoYWluZWQgUHJvbWlzZUxpa2UiKSxpdD0odCxuKT0+e2lmKCFuKXJldHVybiB0O2xldCBlPSExO2Zvcihjb25zdCByIGluIHQpe2lmKHIgaW4gbiljb250aW51ZTtlPSEwO2NvbnN0IG89dFtyXTsiZnVuY3Rpb24iPT10eXBlb2Ygbz9PYmplY3QuZGVmaW5lUHJvcGVydHkobixyLHt2YWx1ZTooLi4ubik9Pm8uYXBwbHkodCxuKSxlbnVtZXJhYmxlOiEwLGNvbmZpZ3VyYWJsZTohMCx3cml0YWJsZTohMH0pOm5bcl09b31yZXR1cm4gZSYmT2JqZWN0LmFzc2lnbihuLHtbb3RdOiEwfSksbn07Y2xhc3Mgc3R7Y29uc3RydWN0b3IodCxuKXtsZXQgZSxyO2U9dHx8bmV3IGV0LHI9bnx8bmV3IGV0LHRoaXMuUD1be3Njb3BlOmV9XSx0aGlzLkQ9cn13aXRoU2NvcGUodCl7Y29uc3Qgbj10aGlzLlUoKTtsZXQgZTt0cnl7ZT10KG4pfWNhdGNoKHQpe3Rocm93IHRoaXMuQigpLHR9cmV0dXJuIGooZSk/KCh0LG4sZSk9Pntjb25zdCByPXQudGhlbih0PT4obih0KSx0KSx0PT57dGhyb3cgZSh0KSx0fSk7cmV0dXJuIHJ0KHIpJiZydCh0KT9yOml0KHQscil9KShlLCgpPT50aGlzLkIoKSwoKT0+dGhpcy5CKCkpOih0aGlzLkIoKSxlKX1nZXRDbGllbnQoKXtyZXR1cm4gdGhpcy5nZXRTdGFja1RvcCgpLmNsaWVudH1nZXRTY29wZSgpe3JldHVybiB0aGlzLmdldFN0YWNrVG9wKCkuc2NvcGV9Z2V0SXNvbGF0aW9uU2NvcGUoKXtyZXR1cm4gdGhpcy5EfWdldFN0YWNrVG9wKCl7cmV0dXJuIHRoaXMuUFt0aGlzLlAubGVuZ3RoLTFdfVUoKXtjb25zdCB0PXRoaXMuZ2V0U2NvcGUoKS5jbG9uZSgpO3JldHVybiB0aGlzLlAucHVzaCh7Y2xpZW50OnRoaXMuZ2V0Q2xpZW50KCksc2NvcGU6dH0pLHR9Qigpe3JldHVybiEodGhpcy5QLmxlbmd0aDw9MSkmJiEhdGhpcy5QLnBvcCgpfX1mdW5jdGlvbiBjdCgpe2NvbnN0IHQ9ZyhsKCkpO3JldHVybiB0LnN0YWNrPXQuc3RhY2t8fG5ldyBzdChtKCJkZWZhdWx0Q3VycmVudFNjb3BlIiwoKT0+bmV3IGV0KSxtKCJkZWZhdWx0SXNvbGF0aW9uU2NvcGUiLCgpPT5uZXcgZXQpKX1mdW5jdGlvbiB1dCh0KXtyZXR1cm4gY3QoKS53aXRoU2NvcGUodCl9ZnVuY3Rpb24gYXQodCxuKXtjb25zdCBlPWN0KCk7cmV0dXJuIGUud2l0aFNjb3BlKCgpPT4oZS5nZXRTdGFja1RvcCgpLnNjb3BlPXQsbih0KSkpfWZ1bmN0aW9uIGZ0KHQpe3JldHVybiBjdCgpLndpdGhTY29wZSgoKT0+dChjdCgpLmdldElzb2xhdGlvblNjb3BlKCkpKX1mdW5jdGlvbiBodCh0KXtjb25zdCBuPWcodCk7cmV0dXJuIG4uYWNzP24uYWNzOnt3aXRoSXNvbGF0aW9uU2NvcGU6ZnQsd2l0aFNjb3BlOnV0LHdpdGhTZXRTY29wZTphdCx3aXRoU2V0SXNvbGF0aW9uU2NvcGU6KHQsbik9PmZ0KG4pLGdldEN1cnJlbnRTY29wZTooKT0+Y3QoKS5nZXRTY29wZSgpLGdldElzb2xhdGlvblNjb3BlOigpPT5jdCgpLmdldElzb2xhdGlvblNjb3BlKCl9fWZ1bmN0aW9uIHB0KCl7cmV0dXJuIGh0KGwoKSkuZ2V0Q3VycmVudFNjb3BlKCkuZ2V0Q2xpZW50KCl9ZnVuY3Rpb24gZHQodCl7Y29uc3Qgbj10O3JldHVybntzY29wZTpuLl9zZW50cnlTY29wZSxpc29sYXRpb25TY29wZTpRKG4uX3NlbnRyeUlzb2xhdGlvblNjb3BlKX19Y29uc3QgbHQ9InNlbnRyeS0iO2Z1bmN0aW9uIGd0KHQpe2NvbnN0IG49ZnVuY3Rpb24odCl7aWYoIXR8fChuPXQsIUMobiwiU3RyaW5nIikmJiFBcnJheS5pc0FycmF5KHQpKSlyZXR1cm47dmFyIG47aWYoQXJyYXkuaXNBcnJheSh0KSlyZXR1cm4gdC5yZWR1Y2UoKHQsbik9Pntjb25zdCBlPW10KG4pO3JldHVybiBPYmplY3QuZW50cmllcyhlKS5mb3JFYWNoKChbbixlXSk9Pnt0W25dPWV9KSx0fSx7fSk7cmV0dXJuIG10KHQpfSh0KTtpZighbilyZXR1cm47Y29uc3QgZT1PYmplY3QuZW50cmllcyhuKS5yZWR1Y2UoKHQsW24sZV0pPT57aWYobi5zdGFydHNXaXRoKGx0KSl7dFtuLnNsaWNlKDcpXT1lfXJldHVybiB0fSx7fSk7cmV0dXJuIE9iamVjdC5rZXlzKGUpLmxlbmd0aD4wP2U6dm9pZCAwfWZ1bmN0aW9uIG10KHQpe3JldHVybiB0LnNwbGl0KCIsIikubWFwKHQ9Pntjb25zdCBuPXQuaW5kZXhPZigiPSIpO2lmKC0xPT09bilyZXR1cm5bXTtyZXR1cm5bdC5zbGljZSgwLG4pLHQuc2xpY2UobisxKV0ubWFwKHQ9Pnt0cnl7cmV0dXJuIGRlY29kZVVSSUNvbXBvbmVudCh0LnRyaW0oKSl9Y2F0Y2h7cmV0dXJufX0pfSkucmVkdWNlKCh0LFtuLGVdKT0+KG4mJmUmJih0W25dPWUpLHQpLHt9KX1jb25zdCB5dD0vXm8oXGQrKVwuLztmdW5jdGlvbiBidCh0LG49ITEpe2NvbnN0e2hvc3Q6ZSxwYXRoOnIscGFzczpvLHBvcnQ6aSxwcm9qZWN0SWQ6cyxwcm90b2NvbDpjLHB1YmxpY0tleTp1fT10O3JldHVybmAke2N9Oi8vJHt1fSR7biYmbz9gOiR7b31gOiIifUAke2V9JHtpP2A6JHtpfWA6IiJ9LyR7cj9gJHtyfS9gOnJ9JHtzfWB9ZnVuY3Rpb24gdnQodCl7Y29uc3Qgbj10LmdldE9wdGlvbnMoKSx7aG9zdDplfT10LmdldERzbigpfHx7fTtsZXQgcjtyZXR1cm4gbi5vcmdJZD9yPVN0cmluZyhuLm9yZ0lkKTplJiYocj1mdW5jdGlvbih0KXtjb25zdCBuPXQubWF0Y2goeXQpO3JldHVybiBuPy5bMV19KGUpKSxyfWZ1bmN0aW9uIF90KHQpe2NvbnN0e3NwYW5JZDpuLHRyYWNlSWQ6ZSxpc1JlbW90ZTpyfT10LnNwYW5Db250ZXh0KCksbz1yP246RXQodCkucGFyZW50X3NwYW5faWQsaT1kdCh0KS5zY29wZTtyZXR1cm57cGFyZW50X3NwYW5faWQ6byxzcGFuX2lkOnI/aT8uZ2V0UHJvcGFnYXRpb25Db250ZXh0KCkucHJvcGFnYXRpb25TcGFuSWR8fFYoKTpuLHRyYWNlX2lkOmV9fWZ1bmN0aW9uIFN0KHQpe3JldHVybiB0JiZ0Lmxlbmd0aD4wP3QubWFwKCh7Y29udGV4dDp7c3BhbklkOnQsdHJhY2VJZDpuLHRyYWNlRmxhZ3M6ZSwuLi5yfSxhdHRyaWJ1dGVzOm99KT0+KHtzcGFuX2lkOnQsdHJhY2VfaWQ6bixzYW1wbGVkOjE9PT1lLGF0dHJpYnV0ZXM6bywuLi5yfSkpOnZvaWQgMH1mdW5jdGlvbiB3dCh0KXtyZXR1cm4ibnVtYmVyIj09dHlwZW9mIHQ/JHQodCk6QXJyYXkuaXNBcnJheSh0KT90WzBdK3RbMV0vMWU5OnQgaW5zdGFuY2VvZiBEYXRlPyR0KHQuZ2V0VGltZSgpKTpZKCl9ZnVuY3Rpb24gJHQodCl7cmV0dXJuIHQ+OTk5OTk5OTk5OT90LzFlMzp0fWZ1bmN0aW9uIEV0KHQpe2lmKGZ1bmN0aW9uKHQpe3JldHVybiJmdW5jdGlvbiI9PXR5cGVvZiB0LmdldFNwYW5KU09OfSh0KSlyZXR1cm4gdC5nZXRTcGFuSlNPTigpO2NvbnN0e3NwYW5JZDpuLHRyYWNlSWQ6ZX09dC5zcGFuQ29udGV4dCgpO2lmKGZ1bmN0aW9uKHQpe2NvbnN0IG49dDtyZXR1cm4hIShuLmF0dHJpYnV0ZXMmJm4uc3RhcnRUaW1lJiZuLm5hbWUmJm4uZW5kVGltZSYmbi5zdGF0dXMpfSh0KSl7Y29uc3R7YXR0cmlidXRlczpyLHN0YXJ0VGltZTpvLG5hbWU6aSxlbmRUaW1lOnMsc3RhdHVzOmMsbGlua3M6dX09dDtyZXR1cm57c3Bhbl9pZDpuLHRyYWNlX2lkOmUsZGF0YTpyLGRlc2NyaXB0aW9uOmkscGFyZW50X3NwYW5faWQ6eHQodCksc3RhcnRfdGltZXN0YW1wOnd0KG8pLHRpbWVzdGFtcDp3dChzKXx8dm9pZCAwLHN0YXR1czpOdChjKSxvcDpyWyJzZW50cnkub3AiXSxvcmlnaW46clsic2VudHJ5Lm9yaWdpbiJdLGxpbmtzOlN0KHUpfX1yZXR1cm57c3Bhbl9pZDpuLHRyYWNlX2lkOmUsc3RhcnRfdGltZXN0YW1wOjAsZGF0YTp7fX19ZnVuY3Rpb24geHQodCl7cmV0dXJuInBhcmVudFNwYW5JZCJpbiB0P3QucGFyZW50U3BhbklkOiJwYXJlbnRTcGFuQ29udGV4dCJpbiB0P3QucGFyZW50U3BhbkNvbnRleHQ/LnNwYW5JZDp2b2lkIDB9ZnVuY3Rpb24gTnQodCl7aWYodCYmMCE9PXQuY29kZSlyZXR1cm4gMT09PXQuY29kZT8ib2siOnQubWVzc2FnZXx8ImludGVybmFsX2Vycm9yIn1jb25zdCBDdD1mdW5jdGlvbih0KXtyZXR1cm4gdC5fc2VudHJ5Um9vdFNwYW58fHR9O2Z1bmN0aW9uIGp0KHQpe2NvbnN0IG49cHQoKTtpZighbilyZXR1cm57fTtjb25zdCBlPUN0KHQpLHI9RXQoZSksbz1yLmRhdGEsaT1lLnNwYW5Db250ZXh0KCkudHJhY2VTdGF0ZSxzPWk/LmdldCgic2VudHJ5LnNhbXBsZV9yYXRlIik/P29bInNlbnRyeS5zYW1wbGVfcmF0ZSJdPz9vWyJzZW50cnkucHJldmlvdXNfdHJhY2Vfc2FtcGxlX3JhdGUiXTtmdW5jdGlvbiBjKHQpe3JldHVybiJudW1iZXIiIT10eXBlb2YgcyYmInN0cmluZyIhPXR5cGVvZiBzfHwodC5zYW1wbGVfcmF0ZT1gJHtzfWApLHR9Y29uc3QgdT1lLl9mcm96ZW5Ec2M7aWYodSlyZXR1cm4gYyh1KTtjb25zdCBhPWk/LmdldCgic2VudHJ5LmRzYyIpLGY9YSYmZ3QoYSk7aWYoZilyZXR1cm4gYyhmKTtjb25zdCBoPWZ1bmN0aW9uKHQsbil7Y29uc3QgZT1uLmdldE9wdGlvbnMoKSx7cHVibGljS2V5OnJ9PW4uZ2V0RHNuKCl8fHt9LG89e2Vudmlyb25tZW50OmUuZW52aXJvbm1lbnR8fCJwcm9kdWN0aW9uIixyZWxlYXNlOmUucmVsZWFzZSxwdWJsaWNfa2V5OnIsdHJhY2VfaWQ6dCxvcmdfaWQ6dnQobil9O3JldHVybiBuLmVtaXQoImNyZWF0ZURzYyIsbyksb30odC5zcGFuQ29udGV4dCgpLnRyYWNlSWQsbikscD1vWyJzZW50cnkuc291cmNlIl0/P29bInNlbnRyeS5zcGFuLnNvdXJjZSJdLGQ9ci5kZXNjcmlwdGlvbjtyZXR1cm4idXJsIiE9PXAmJmQmJihoLnRyYW5zYWN0aW9uPWQpLGZ1bmN0aW9uKCl7aWYoImJvb2xlYW4iPT10eXBlb2YgX19TRU5UUllfVFJBQ0lOR19fJiYhX19TRU5UUllfVFJBQ0lOR19fKXJldHVybiExO2NvbnN0IHQ9cHQoKT8uZ2V0T3B0aW9ucygpO3JldHVybiEoIXR8fG51bGw9PXQudHJhY2VzU2FtcGxlUmF0ZSYmIXQudHJhY2VzU2FtcGxlcil9KCkmJihoLnNhbXBsZWQ9U3RyaW5nKGZ1bmN0aW9uKHQpe2NvbnN0e3RyYWNlRmxhZ3M6bn09dC5zcGFuQ29udGV4dCgpO3JldHVybiAxPT09bn0oZSkpLGguc2FtcGxlX3JhbmQ9aT8uZ2V0KCJzZW50cnkuc2FtcGxlX3JhbmQiKT8/ZHQoZSkuc2NvcGU/LmdldFByb3BhZ2F0aW9uQ29udGV4dCgpLnNhbXBsZVJhbmQudG9TdHJpbmcoKSksYyhoKSxuLmVtaXQoImNyZWF0ZURzYyIsaCxlKSxofWZ1bmN0aW9uIEF0KHQsbj1bXSl7cmV0dXJuW3Qsbl19ZnVuY3Rpb24gSXQodCxuKXtjb25zdCBlPXRbMV07Zm9yKGNvbnN0IHQgb2YgZSl7aWYobih0LHRbMF0udHlwZSkpcmV0dXJuITB9cmV0dXJuITF9ZnVuY3Rpb24gUnQodCl7Y29uc3Qgbj1nKHApO3JldHVybiBuLmVuY29kZVBvbHlmaWxsP24uZW5jb2RlUG9seWZpbGwodCk6KG5ldyBUZXh0RW5jb2RlcikuZW5jb2RlKHQpfWZ1bmN0aW9uIE90KHQpe2NvbnN0W24sZV09dDtsZXQgcj1KU09OLnN0cmluZ2lmeShuKTtmdW5jdGlvbiBvKHQpeyJzdHJpbmciPT10eXBlb2Ygcj9yPSJzdHJpbmciPT10eXBlb2YgdD9yK3Q6W1J0KHIpLHRdOnIucHVzaCgic3RyaW5nIj09dHlwZW9mIHQ/UnQodCk6dCl9Zm9yKGNvbnN0IHQgb2YgZSl7Y29uc3RbbixlXT10O2lmKG8oYFxuJHtKU09OLnN0cmluZ2lmeShuKX1cbmApLCJzdHJpbmciPT10eXBlb2YgZXx8ZSBpbnN0YW5jZW9mIFVpbnQ4QXJyYXkpbyhlKTtlbHNle2xldCB0O3RyeXt0PUpTT04uc3RyaW5naWZ5KGUpfWNhdGNoe3Q9SlNPTi5zdHJpbmdpZnkoQihlKSl9byh0KX19cmV0dXJuInN0cmluZyI9PXR5cGVvZiByP3I6ZnVuY3Rpb24odCl7Y29uc3Qgbj10LnJlZHVjZSgodCxuKT0+dCtuLmxlbmd0aCwwKSxlPW5ldyBVaW50OEFycmF5KG4pO2xldCByPTA7Zm9yKGNvbnN0IG4gb2YgdCllLnNldChuLHIpLHIrPW4ubGVuZ3RoO3JldHVybiBlfShyKX1jb25zdCBUdD17c2Vzc2lvbnM6InNlc3Npb24iLGV2ZW50OiJlcnJvciIsY2xpZW50X3JlcG9ydDoiaW50ZXJuYWwiLHVzZXJfcmVwb3J0OiJkZWZhdWx0Iixwcm9maWxlX2NodW5rOiJwcm9maWxlIixyZXBsYXlfZXZlbnQ6InJlcGxheSIscmVwbGF5X3JlY29yZGluZzoicmVwbGF5IixjaGVja19pbjoibW9uaXRvciIscmF3X3NlY3VyaXR5OiJzZWN1cml0eSIsbG9nOiJsb2dfaXRlbSIsdHJhY2VfbWV0cmljOiJtZXRyaWMifTtmdW5jdGlvbiBrdCh0KXtyZXR1cm4gZnVuY3Rpb24odCl7cmV0dXJuIHQgaW4gVHR9KHQpP1R0W3RdOnR9ZnVuY3Rpb24gUHQodCl7aWYoIXQ/LnNkaylyZXR1cm47Y29uc3R7bmFtZTpuLHZlcnNpb246ZX09dC5zZGs7cmV0dXJue25hbWU6bix2ZXJzaW9uOmV9fWZ1bmN0aW9uIER0KHQsbixlLHIpe2NvbnN0IG89UHQoZSksaT10LnR5cGUmJiJyZXBsYXlfZXZlbnQiIT09dC50eXBlP3QudHlwZToiZXZlbnQiOyFmdW5jdGlvbih0LG4pe2lmKCFuKXJldHVybiB0O2NvbnN0IGU9dC5zZGt8fHt9O3Quc2RrPXsuLi5lLG5hbWU6ZS5uYW1lfHxuLm5hbWUsdmVyc2lvbjplLnZlcnNpb258fG4udmVyc2lvbixpbnRlZ3JhdGlvbnM6Wy4uLnQuc2RrPy5pbnRlZ3JhdGlvbnN8fFtdLC4uLm4uaW50ZWdyYXRpb25zfHxbXV0scGFja2FnZXM6Wy4uLnQuc2RrPy5wYWNrYWdlc3x8W10sLi4ubi5wYWNrYWdlc3x8W11dLHNldHRpbmdzOnQuc2RrPy5zZXR0aW5nc3x8bi5zZXR0aW5ncz97Li4udC5zZGs/LnNldHRpbmdzLC4uLm4uc2V0dGluZ3N9OnZvaWQgMH19KHQsZT8uc2RrKTtjb25zdCBzPWZ1bmN0aW9uKHQsbixlLHIpe2NvbnN0IG89dC5zZGtQcm9jZXNzaW5nTWV0YWRhdGE/LmR5bmFtaWNTYW1wbGluZ0NvbnRleHQ7cmV0dXJue2V2ZW50X2lkOnQuZXZlbnRfaWQsc2VudF9hdDpuZXcgRGF0ZShQKCkpLnRvSVNPU3RyaW5nKCksLi4ubiYme3NkazpufSwuLi4hIWUmJnImJntkc246YnQocil9LC4uLm8mJnt0cmFjZTpvfX19KHQsbyxyLG4pO2RlbGV0ZSB0LnNka1Byb2Nlc3NpbmdNZXRhZGF0YTtyZXR1cm4gQXQocyxbW3t0eXBlOml9LHRdXSl9Y29uc3QgVXQ9Il9fU0VOVFJZX1NVUFBSRVNTX1RSQUNJTkdfXyI7ZnVuY3Rpb24gQnQodCl7Y29uc3Qgbj1odChsKCkpO3JldHVybiBuLnN1cHByZXNzVHJhY2luZz9uLnN1cHByZXNzVHJhY2luZyh0KTpmdW5jdGlvbiguLi50KXtjb25zdCBuPWh0KGwoKSk7aWYoMj09PXQubGVuZ3RoKXtjb25zdFtlLHJdPXQ7cmV0dXJuIGU/bi53aXRoU2V0U2NvcGUoZSxyKTpuLndpdGhTY29wZShyKX1yZXR1cm4gbi53aXRoU2NvcGUodFswXSl9KG49PntuLnNldFNES1Byb2Nlc3NpbmdNZXRhZGF0YSh7W1V0XTohMH0pO2NvbnN0IGU9dCgpO3JldHVybiBuLnNldFNES1Byb2Nlc3NpbmdNZXRhZGF0YSh7W1V0XTp2b2lkIDB9KSxlfSl9ZnVuY3Rpb24gTHQodCxuKXtjb25zdHtmaW5nZXJwcmludDplLHNwYW46cixicmVhZGNydW1iczpvLHNka1Byb2Nlc3NpbmdNZXRhZGF0YTppfT1uOyFmdW5jdGlvbih0LG4pe2NvbnN0e2V4dHJhOmUsdGFnczpyLHVzZXI6byxjb250ZXh0czppLGxldmVsOnMsdHJhbnNhY3Rpb25OYW1lOmN9PW47T2JqZWN0LmtleXMoZSkubGVuZ3RoJiYodC5leHRyYT17Li4uZSwuLi50LmV4dHJhfSk7T2JqZWN0LmtleXMocikubGVuZ3RoJiYodC50YWdzPXsuLi5yLC4uLnQudGFnc30pO09iamVjdC5rZXlzKG8pLmxlbmd0aCYmKHQudXNlcj17Li4ubywuLi50LnVzZXJ9KTtPYmplY3Qua2V5cyhpKS5sZW5ndGgmJih0LmNvbnRleHRzPXsuLi5pLC4uLnQuY29udGV4dHN9KTtzJiYodC5sZXZlbD1zKTtjJiYidHJhbnNhY3Rpb24iIT09dC50eXBlJiYodC50cmFuc2FjdGlvbj1jKX0odCxuKSxyJiZmdW5jdGlvbih0LG4pe3QuY29udGV4dHM9e3RyYWNlOl90KG4pLC4uLnQuY29udGV4dHN9LHQuc2RrUHJvY2Vzc2luZ01ldGFkYXRhPXtkeW5hbWljU2FtcGxpbmdDb250ZXh0Omp0KG4pLC4uLnQuc2RrUHJvY2Vzc2luZ01ldGFkYXRhfTtjb25zdCBlPUN0KG4pLHI9RXQoZSkuZGVzY3JpcHRpb247ciYmIXQudHJhbnNhY3Rpb24mJiJ0cmFuc2FjdGlvbiI9PT10LnR5cGUmJih0LnRyYW5zYWN0aW9uPXIpfSh0LHIpLGZ1bmN0aW9uKHQsbil7dC5maW5nZXJwcmludD10LmZpbmdlcnByaW50P0FycmF5LmlzQXJyYXkodC5maW5nZXJwcmludCk/dC5maW5nZXJwcmludDpbdC5maW5nZXJwcmludF06W10sbiYmKHQuZmluZ2VycHJpbnQ9dC5maW5nZXJwcmludC5jb25jYXQobikpO3QuZmluZ2VycHJpbnQubGVuZ3RofHxkZWxldGUgdC5maW5nZXJwcmludH0odCxlKSxmdW5jdGlvbih0LG4pe2NvbnN0IGU9Wy4uLnQuYnJlYWRjcnVtYnN8fFtdLC4uLm5dO3QuYnJlYWRjcnVtYnM9ZS5sZW5ndGg/ZTp2b2lkIDB9KHQsbyksZnVuY3Rpb24odCxuKXt0LnNka1Byb2Nlc3NpbmdNZXRhZGF0YT17Li4udC5zZGtQcm9jZXNzaW5nTWV0YWRhdGEsLi4ubn19KHQsaSl9Y2xhc3MgTXR7Y29uc3RydWN0b3IodCl7dGhpcy5MPTAsdGhpcy5NPVtdLHRoaXMuRih0KX10aGVuKHQsbil7cmV0dXJuIG5ldyBNdCgoZSxyKT0+e3RoaXMuTS5wdXNoKFshMSxuPT57aWYodCl0cnl7ZSh0KG4pKX1jYXRjaCh0KXtyKHQpfWVsc2UgZShuKX0sdD0+e2lmKG4pdHJ5e2Uobih0KSl9Y2F0Y2godCl7cih0KX1lbHNlIHIodCl9XSksdGhpcy5HKCl9KX1jYXRjaCh0KXtyZXR1cm4gdGhpcy50aGVuKHQ9PnQsdCl9ZmluYWxseSh0KXtyZXR1cm4gbmV3IE10KChuLGUpPT57bGV0IHIsbztyZXR1cm4gdGhpcy50aGVuKG49PntvPSExLHI9bix0JiZ0KCl9LG49PntvPSEwLHI9bix0JiZ0KCl9KS50aGVuKCgpPT57bz9lKHIpOm4ocil9KX0pfUcoKXtpZigwPT09dGhpcy5MKXJldHVybjtjb25zdCB0PXRoaXMuTS5zbGljZSgpO3RoaXMuTT1bXSx0LmZvckVhY2godD0+e3RbMF18fCgxPT09dGhpcy5MJiZ0WzFdKHRoaXMuSiksMj09PXRoaXMuTCYmdFsyXSh0aGlzLkopLHRbMF09ITApfSl9Rih0KXtjb25zdCBuPSh0LG4pPT57MD09PXRoaXMuTCYmKGoobik/bi50aGVuKGUscik6KHRoaXMuTD10LHRoaXMuSj1uLHRoaXMuRygpKSl9LGU9dD0+e24oMSx0KX0scj10PT57bigyLHQpfTt0cnl7dChlLHIpfWNhdGNoKHQpe3IodCl9fX1jb25zdCB6dD1TeW1ib2wuZm9yKCJTZW50cnlCdWZmZXJGdWxsRXJyb3IiKTtmdW5jdGlvbiBGdCh0PTEwMCl7Y29uc3Qgbj1uZXcgU2V0O2Z1bmN0aW9uIGUodCl7bi5kZWxldGUodCl9cmV0dXJue2dldCAkKCl7cmV0dXJuIEFycmF5LmZyb20obil9LGFkZDpmdW5jdGlvbihyKXtpZighKG4uc2l6ZTx0KSlyZXR1cm4gbz16dCxuZXcgTXQoKHQsbik9PntuKG8pfSk7dmFyIG87Y29uc3QgaT1yKCk7cmV0dXJuIG4uYWRkKGkpLGkudGhlbigoKT0+ZShpKSwoKT0+ZShpKSksaX0sZHJhaW46ZnVuY3Rpb24odCl7aWYoIW4uc2l6ZSlyZXR1cm4gZT0hMCxuZXcgTXQodD0+e3QoZSl9KTt2YXIgZTtjb25zdCByPVByb21pc2UuYWxsU2V0dGxlZChBcnJheS5mcm9tKG4pKS50aGVuKCgpPT4hMCk7aWYoIXQpcmV0dXJuIHI7Y29uc3Qgbz1bcixuZXcgUHJvbWlzZShuPT57cmV0dXJuIm9iamVjdCI9PXR5cGVvZihlPXNldFRpbWVvdXQoKCk9Pm4oITEpLHQpKSYmImZ1bmN0aW9uIj09dHlwZW9mIGUudW5yZWYmJmUudW5yZWYoKSxlO3ZhciBlfSldO3JldHVybiBQcm9taXNlLnJhY2Uobyl9fX1mdW5jdGlvbiBHdCh0LHtzdGF0dXNDb2RlOm4saGVhZGVyczplfSxyPVAoKSl7Y29uc3Qgbz17Li4udH0saT1lPy5bIngtc2VudHJ5LXJhdGUtbGltaXRzIl0scz1lPy5bInJldHJ5LWFmdGVyIl07aWYoaSlmb3IoY29uc3QgdCBvZiBpLnRyaW0oKS5zcGxpdCgiLCIpKXtjb25zdFtuLGUsLCxpXT10LnNwbGl0KCI6Iiw1KSxzPXBhcnNlSW50KG4sMTApLGM9MWUzKihpc05hTihzKT82MDpzKTtpZihlKWZvcihjb25zdCB0IG9mIGUuc3BsaXQoIjsiKSkibWV0cmljX2J1Y2tldCI9PT10JiZpJiYhaS5zcGxpdCgiOyIpLmluY2x1ZGVzKCJjdXN0b20iKXx8KG9bdF09citjKTtlbHNlIG8uYWxsPXIrY31lbHNlIHM/by5hbGw9citmdW5jdGlvbih0LG49UCgpKXtjb25zdCBlPXBhcnNlSW50KGAke3R9YCwxMCk7aWYoIWlzTmFOKGUpKXJldHVybiAxZTMqZTtjb25zdCByPURhdGUucGFyc2UoYCR7dH1gKTtyZXR1cm4gaXNOYU4ocik/NmU0OnItbn0ocyxyKTo0Mjk9PT1uJiYoby5hbGw9cis2ZTQpO3JldHVybiBvfWZ1bmN0aW9uIEp0KHQsbixlPUZ0KHQuYnVmZmVyU2l6ZXx8NjQpKXtsZXQgcj17fTtyZXR1cm57c2VuZDpmdW5jdGlvbih0KXtjb25zdCBvPVtdO2lmKEl0KHQsKHQsbik9Pntjb25zdCBlPWt0KG4pOyhmdW5jdGlvbih0LG4sZT1QKCkpe3JldHVybiBmdW5jdGlvbih0LG4pe3JldHVybiB0W25dfHx0LmFsbHx8MH0odCxuKT5lfSkocixlKXx8by5wdXNoKHQpfSksMD09PW8ubGVuZ3RoKXJldHVybiBQcm9taXNlLnJlc29sdmUoe30pO2NvbnN0IGk9QXQodFswXSxvKSxzPXQ9PnshZnVuY3Rpb24odCxuKXtyZXR1cm4gSXQodCwodCxlKT0+bi5pbmNsdWRlcyhlKSl9KGksWyJjbGllbnRfcmVwb3J0Il0pP0l0KGksKHQsbik9Pnt9KTpoJiZ3Lndhcm4oYERyb3BwaW5nIGNsaWVudCByZXBvcnQuIFdpbGwgbm90IHNlbmQgb3V0Y29tZXMgKHJlYXNvbjogJHt0fSkuYCl9O3JldHVybiBlLmFkZCgoKT0+bih7Ym9keTpPdChpKX0pLnRoZW4odD0+NDEzPT09dC5zdGF0dXNDb2RlPyhoJiZ3LmVycm9yKCJTZW50cnkgcmVzcG9uZGVkIHdpdGggc3RhdHVzIGNvZGUgNDEzLiBFbnZlbG9wZSB3YXMgZGlzY2FyZGVkIGR1ZSB0byBleGNlZWRpbmcgc2l6ZSBsaW1pdHMuIikscygic2VuZF9lcnJvciIpLHQpOihoJiZ2b2lkIDAhPT10LnN0YXR1c0NvZGUmJih0LnN0YXR1c0NvZGU8MjAwfHx0LnN0YXR1c0NvZGU+PTMwMCkmJncud2FybihgU2VudHJ5IHJlc3BvbmRlZCB3aXRoIHN0YXR1cyBjb2RlICR7dC5zdGF0dXNDb2RlfSB0byBzZW50IGV2ZW50LmApLHI9R3Qocix0KSx0KSx0PT57dGhyb3cgcygibmV0d29ya19lcnJvciIpLGgmJncuZXJyb3IoIkVuY291bnRlcmVkIGVycm9yIHJ1bm5pbmcgdHJhbnNwb3J0IHJlcXVlc3Q6Iix0KSx0fSkpLnRoZW4odD0+dCx0PT57aWYodD09PXp0KXJldHVybiBoJiZ3LmVycm9yKCJTa2lwcGVkIHNlbmRpbmcgZXZlbnQgYmVjYXVzZSBidWZmZXIgaXMgZnVsbC4iKSxzKCJxdWV1ZV9vdmVyZmxvdyIpLFByb21pc2UucmVzb2x2ZSh7fSk7dGhyb3cgdH0pfSxmbHVzaDp0PT5lLmRyYWluKHQpfX1jb25zdCBXdD0vXihcUys6XFx8XC8/KShbXHNcU10qPykoKD86XC57MSwyfXxbXi9cXF0rP3wpKFwuW14uL1xcXSp8KSkoPzpbL1xcXSopJC87ZnVuY3Rpb24gWXQodCl7Y29uc3Qgbj1mdW5jdGlvbih0KXtjb25zdCBuPXQubGVuZ3RoPjEwMjQ/YDx0cnVuY2F0ZWQ+JHt0LnNsaWNlKC0xMDI0KX1gOnQsZT1XdC5leGVjKG4pO3JldHVybiBlP2Uuc2xpY2UoMSk6W119KHQpLGU9blswXXx8IiI7bGV0IHI9blsxXTtyZXR1cm4gZXx8cj8ociYmKHI9ci5zbGljZSgwLHIubGVuZ3RoLTEpKSxlK3IpOiIuIn1mdW5jdGlvbiBIdCh0LG49ITEpe3JldHVybiEobnx8dCYmIXQuc3RhcnRzV2l0aCgiLyIpJiYhdC5tYXRjaCgvXltBLVpdOi8pJiYhdC5zdGFydHNXaXRoKCIuIikmJiF0Lm1hdGNoKC9eW2EtekEtWl0oW2EtekEtWjAtOS5cLStdKSo6XC9cLy8pKSYmdm9pZCAwIT09dCYmIXQuaW5jbHVkZXMoIm5vZGVfbW9kdWxlcy8iKX12YXIgS3Q7Y29uc3QgWnQ9U3ltYm9sKCJBZ2VudEJhc2VJbnRlcm5hbFN0YXRlIik7Y2xhc3MgcXQgZXh0ZW5kcyhLdD1pLkFnZW50LEt0KXtjb25zdHJ1Y3Rvcih0KXtzdXBlcih0KSx0aGlzW1p0XT17fX1pc1NlY3VyZUVuZHBvaW50KHQpe2lmKHQpe2lmKCJib29sZWFuIj09dHlwZW9mIHQuc2VjdXJlRW5kcG9pbnQpcmV0dXJuIHQuc2VjdXJlRW5kcG9pbnQ7aWYoInN0cmluZyI9PXR5cGVvZiB0LnByb3RvY29sKXJldHVybiJodHRwczoiPT09dC5wcm90b2NvbH1jb25zdHtzdGFjazpufT1uZXcgRXJyb3I7cmV0dXJuInN0cmluZyI9PXR5cGVvZiBuJiZuLnNwbGl0KCJcbiIpLnNvbWUodD0+LTEhPT10LmluZGV4T2YoIihodHRwcy5qczoiKXx8LTEhPT10LmluZGV4T2YoIm5vZGU6aHR0cHM6IikpfWNyZWF0ZVNvY2tldCh0LG4sZSl7Y29uc3Qgcj17Li4ubixzZWN1cmVFbmRwb2ludDp0aGlzLmlzU2VjdXJlRW5kcG9pbnQobil9O1Byb21pc2UucmVzb2x2ZSgpLnRoZW4oKCk9PnRoaXMuY29ubmVjdCh0LHIpKS50aGVuKG89PntpZihvIGluc3RhbmNlb2YgaS5BZ2VudClyZXR1cm4gby5hZGRSZXF1ZXN0KHQscik7dGhpc1tadF0uY3VycmVudFNvY2tldD1vLHN1cGVyLmNyZWF0ZVNvY2tldCh0LG4sZSl9LGUpfWNyZWF0ZUNvbm5lY3Rpb24oKXtjb25zdCB0PXRoaXNbWnRdLmN1cnJlbnRTb2NrZXQ7aWYodGhpc1tadF0uY3VycmVudFNvY2tldD12b2lkIDAsIXQpdGhyb3cgbmV3IEVycm9yKCJObyBzb2NrZXQgd2FzIHJldHVybmVkIGluIHRoZSBgY29ubmVjdCgpYCBmdW5jdGlvbiIpO3JldHVybiB0fWdldCBkZWZhdWx0UG9ydCgpe3JldHVybiB0aGlzW1p0XS5kZWZhdWx0UG9ydD8/KCJodHRwczoiPT09dGhpcy5wcm90b2NvbD80NDM6ODApfXNldCBkZWZhdWx0UG9ydCh0KXt0aGlzW1p0XSYmKHRoaXNbWnRdLmRlZmF1bHRQb3J0PXQpfWdldCBwcm90b2NvbCgpe3JldHVybiB0aGlzW1p0XS5wcm90b2NvbD8/KHRoaXMuaXNTZWN1cmVFbmRwb2ludCgpPyJodHRwczoiOiJodHRwOiIpfXNldCBwcm90b2NvbCh0KXt0aGlzW1p0XSYmKHRoaXNbWnRdLnByb3RvY29sPXQpfX1mdW5jdGlvbiBWdCguLi50KXt3LmxvZygiW2h0dHBzLXByb3h5LWFnZW50OnBhcnNlLXByb3h5LXJlc3BvbnNlXSIsLi4udCl9ZnVuY3Rpb24gUXQodCl7cmV0dXJuIG5ldyBQcm9taXNlKChuLGUpPT57bGV0IHI9MDtjb25zdCBvPVtdO2Z1bmN0aW9uIGkoKXtjb25zdCBjPXQucmVhZCgpO2M/ZnVuY3Rpb24oYyl7by5wdXNoKGMpLHIrPWMubGVuZ3RoO2NvbnN0IHU9QnVmZmVyLmNvbmNhdChvLHIpLGE9dS5pbmRleE9mKCJcclxuXHJcbiIpO2lmKC0xPT09YSlyZXR1cm4gVnQoImhhdmUgbm90IHJlY2VpdmVkIGVuZCBvZiBIVFRQIGhlYWRlcnMgeWV0Li4uIiksdm9pZCBpKCk7Y29uc3QgZj11LnN1YmFycmF5KDAsYSkudG9TdHJpbmcoImFzY2lpIikuc3BsaXQoIlxyXG4iKSxoPWYuc2hpZnQoKTtpZighaClyZXR1cm4gdC5kZXN0cm95KCksZShuZXcgRXJyb3IoIk5vIGhlYWRlciByZWNlaXZlZCBmcm9tIHByb3h5IENPTk5FQ1QgcmVzcG9uc2UiKSk7Y29uc3QgcD1oLnNwbGl0KCIgIiksZD0rKHBbMV18fDApLGw9cC5zbGljZSgyKS5qb2luKCIgIiksZz17fTtmb3IoY29uc3QgbiBvZiBmKXtpZighbiljb250aW51ZTtjb25zdCByPW4uaW5kZXhPZigiOiIpO2lmKC0xPT09cilyZXR1cm4gdC5kZXN0cm95KCksZShuZXcgRXJyb3IoYEludmFsaWQgaGVhZGVyIGZyb20gcHJveHkgQ09OTkVDVCByZXNwb25zZTogIiR7bn0iYCkpO2NvbnN0IG89bi5zbGljZSgwLHIpLnRvTG93ZXJDYXNlKCksaT1uLnNsaWNlKHIrMSkudHJpbVN0YXJ0KCkscz1nW29dOyJzdHJpbmciPT10eXBlb2Ygcz9nW29dPVtzLGldOkFycmF5LmlzQXJyYXkocyk/cy5wdXNoKGkpOmdbb109aX1WdCgiZ290IHByb3h5IHNlcnZlciByZXNwb25zZTogJW8gJW8iLGgsZykscygpLG4oe2Nvbm5lY3Q6e3N0YXR1c0NvZGU6ZCxzdGF0dXNUZXh0OmwsaGVhZGVyczpnfSxidWZmZXJlZDp1fSl9KGMpOnQub25jZSgicmVhZGFibGUiLGkpfWZ1bmN0aW9uIHMoKXt0LnJlbW92ZUxpc3RlbmVyKCJlbmQiLGMpLHQucmVtb3ZlTGlzdGVuZXIoImVycm9yIix1KSx0LnJlbW92ZUxpc3RlbmVyKCJyZWFkYWJsZSIsaSl9ZnVuY3Rpb24gYygpe3MoKSxWdCgib25lbmQiKSxlKG5ldyBFcnJvcigiUHJveHkgY29ubmVjdGlvbiBlbmRlZCBiZWZvcmUgcmVjZWl2aW5nIENPTk5FQ1QgcmVzcG9uc2UiKSl9ZnVuY3Rpb24gdSh0KXtzKCksVnQoIm9uZXJyb3IgJW8iLHQpLGUodCl9dC5vbigiZXJyb3IiLHUpLHQub24oImVuZCIsYyksaSgpfSl9ZnVuY3Rpb24gWHQoLi4udCl7dy5sb2coIltodHRwcy1wcm94eS1hZ2VudF0iLC4uLnQpfWNsYXNzIHRuIGV4dGVuZHMgcXR7Y29uc3RydWN0b3IodCxuKXtzdXBlcihuKSx0aGlzLm9wdGlvbnM9e30sdGhpcy5wcm94eT0ic3RyaW5nIj09dHlwZW9mIHQ/bmV3IFVSTCh0KTp0LHRoaXMucHJveHlIZWFkZXJzPW4/LmhlYWRlcnM/P3t9LFh0KCJDcmVhdGluZyBuZXcgSHR0cHNQcm94eUFnZW50IGluc3RhbmNlOiAlbyIsdGhpcy5wcm94eS5ocmVmKTtjb25zdCBlPSh0aGlzLnByb3h5Lmhvc3RuYW1lfHx0aGlzLnByb3h5Lmhvc3QpLnJlcGxhY2UoL15cW3xcXSQvZywiIikscj10aGlzLnByb3h5LnBvcnQ/cGFyc2VJbnQodGhpcy5wcm94eS5wb3J0LDEwKToiaHR0cHM6Ij09PXRoaXMucHJveHkucHJvdG9jb2w/NDQzOjgwO3RoaXMuY29ubmVjdE9wdHM9e0FMUE5Qcm90b2NvbHM6WyJodHRwLzEuMSJdLC4uLm4/ZW4obiwiaGVhZGVycyIpOm51bGwsaG9zdDplLHBvcnQ6cn19YXN5bmMgY29ubmVjdCh0LG4pe2NvbnN0e3Byb3h5OmV9PXRoaXM7aWYoIW4uaG9zdCl0aHJvdyBuZXcgVHlwZUVycm9yKCdObyAiaG9zdCIgcHJvdmlkZWQnKTtsZXQgcjtpZigiaHR0cHM6Ij09PWUucHJvdG9jb2wpe1h0KCJDcmVhdGluZyBgdGxzLlNvY2tldGA6ICVvIix0aGlzLmNvbm5lY3RPcHRzKTtjb25zdCB0PXRoaXMuY29ubmVjdE9wdHMuc2VydmVybmFtZXx8dGhpcy5jb25uZWN0T3B0cy5ob3N0O3I9Zi5jb25uZWN0KHsuLi50aGlzLmNvbm5lY3RPcHRzLHNlcnZlcm5hbWU6dCYmYS5pc0lQKHQpP3ZvaWQgMDp0fSl9ZWxzZSBYdCgiQ3JlYXRpbmcgYG5ldC5Tb2NrZXRgOiAlbyIsdGhpcy5jb25uZWN0T3B0cykscj1hLmNvbm5lY3QodGhpcy5jb25uZWN0T3B0cyk7Y29uc3Qgbz0iZnVuY3Rpb24iPT10eXBlb2YgdGhpcy5wcm94eUhlYWRlcnM/dGhpcy5wcm94eUhlYWRlcnMoKTp7Li4udGhpcy5wcm94eUhlYWRlcnN9LGk9YS5pc0lQdjYobi5ob3N0KT9gWyR7bi5ob3N0fV1gOm4uaG9zdDtsZXQgcz1gQ09OTkVDVCAke2l9OiR7bi5wb3J0fSBIVFRQLzEuMVxyXG5gO2lmKGUudXNlcm5hbWV8fGUucGFzc3dvcmQpe2NvbnN0IHQ9YCR7ZGVjb2RlVVJJQ29tcG9uZW50KGUudXNlcm5hbWUpfToke2RlY29kZVVSSUNvbXBvbmVudChlLnBhc3N3b3JkKX1gO29bIlByb3h5LUF1dGhvcml6YXRpb24iXT1gQmFzaWMgJHtCdWZmZXIuZnJvbSh0KS50b1N0cmluZygiYmFzZTY0Iil9YH1vLkhvc3Q9YCR7aX06JHtuLnBvcnR9YCxvWyJQcm94eS1Db25uZWN0aW9uIl18fChvWyJQcm94eS1Db25uZWN0aW9uIl09dGhpcy5rZWVwQWxpdmU/IktlZXAtQWxpdmUiOiJjbG9zZSIpO2Zvcihjb25zdCB0IG9mIE9iamVjdC5rZXlzKG8pKXMrPWAke3R9OiAke29bdF19XHJcbmA7Y29uc3QgYz1RdChyKTtyLndyaXRlKGAke3N9XHJcbmApO2NvbnN0e2Nvbm5lY3Q6dSxidWZmZXJlZDpofT1hd2FpdCBjO2lmKHQuZW1pdCgicHJveHlDb25uZWN0Iix1KSx0aGlzLmVtaXQoInByb3h5Q29ubmVjdCIsdSx0KSwyMDA9PT11LnN0YXR1c0NvZGUpe2lmKHQub25jZSgic29ja2V0Iixubiksbi5zZWN1cmVFbmRwb2ludCl7WHQoIlVwZ3JhZGluZyBzb2NrZXQgY29ubmVjdGlvbiB0byBUTFMiKTtjb25zdCB0PW4uc2VydmVybmFtZXx8bi5ob3N0O3JldHVybiBmLmNvbm5lY3Qoey4uLmVuKG4sImhvc3QiLCJwYXRoIiwicG9ydCIpLHNvY2tldDpyLHNlcnZlcm5hbWU6YS5pc0lQKHQpP3ZvaWQgMDp0fSl9cmV0dXJuIHJ9ci5kZXN0cm95KCk7Y29uc3QgcD1uZXcgYS5Tb2NrZXQoe3dyaXRhYmxlOiExfSk7cmV0dXJuIHAucmVhZGFibGU9ITAsdC5vbmNlKCJzb2NrZXQiLHQ9PntYdCgiUmVwbGF5aW5nIHByb3h5IGJ1ZmZlciBmb3IgZmFpbGVkIHJlcXVlc3QiKSx0LnB1c2goaCksdC5wdXNoKG51bGwpfSkscH19ZnVuY3Rpb24gbm4odCl7dC5yZXN1bWUoKX1mdW5jdGlvbiBlbih0LC4uLm4pe2NvbnN0IGU9e307bGV0IHI7Zm9yKHIgaW4gdCluLmluY2x1ZGVzKHIpfHwoZVtyXT10W3JdKTtyZXR1cm4gZX10bi5wcm90b2NvbHM9WyJodHRwIiwiaHR0cHMiXTtmdW5jdGlvbiBybih0KXtyZXR1cm4gdC5yZXBsYWNlKC9eW0EtWl06LywiIikucmVwbGFjZSgvXFwvZywiLyIpfWNvbnN0IG9uPW47bGV0IHNuLGNuPTAsdW49e307ZnVuY3Rpb24gYW4odCl7b24uZGVidWcmJmNvbnNvbGUubG9nKGBbQU5SIFdvcmtlcl0gJHt0fWApfXZhciBmbixobixwbjtjb25zdCBkbj1mdW5jdGlvbih0KXtsZXQgbjt0cnl7bj1uZXcgVVJMKHQudXJsKX1jYXRjaChuKXtyZXR1cm4gYigoKT0+e2NvbnNvbGUud2FybigiW0BzZW50cnkvbm9kZV06IEludmFsaWQgZHNuIG9yIHR1bm5lbCBvcHRpb24sIHdpbGwgbm90IHNlbmQgYW55IGV2ZW50cy4gVGhlIHR1bm5lbCBvcHRpb24gbXVzdCBiZSBhIGZ1bGwgVVJMIHdoZW4gdXNlZC4iKX0pLEp0KHQsKCk9PlByb21pc2UucmVzb2x2ZSh7fSkpfWNvbnN0IGU9Imh0dHBzOiI9PT1uLnByb3RvY29sLHI9ZnVuY3Rpb24odCxuKXtjb25zdHtub19wcm94eTplfT1wcm9jZXNzLmVudixyPWU/LnNwbGl0KCIsIikuc29tZShuPT50Lmhvc3QuZW5kc1dpdGgobil8fHQuaG9zdG5hbWUuZW5kc1dpdGgobikpO3JldHVybiByP3ZvaWQgMDpufShuLHQucHJveHl8fChlP3Byb2Nlc3MuZW52Lmh0dHBzX3Byb3h5OnZvaWQgMCl8fHByb2Nlc3MuZW52Lmh0dHBfcHJveHkpLG89ZT9zOmksYT12b2lkIDAhPT10LmtlZXBBbGl2ZSYmdC5rZWVwQWxpdmUsZj1yP25ldyB0bihyKTpuZXcgby5BZ2VudCh7a2VlcEFsaXZlOmEsbWF4U29ja2V0czozMCx0aW1lb3V0OjJlM30pLGg9ZnVuY3Rpb24odCxuLGUpe2NvbnN0e2hvc3RuYW1lOnIscGF0aG5hbWU6byxwb3J0OmkscHJvdG9jb2w6cyxzZWFyY2g6YX09bmV3IFVSTCh0LnVybCk7cmV0dXJuIGZ1bmN0aW9uKGYpe3JldHVybiBuZXcgUHJvbWlzZSgoaCxwKT0+e0J0KCgpPT57bGV0IGQ9ZnVuY3Rpb24odCl7cmV0dXJuIG5ldyBjKHtyZWFkKCl7dGhpcy5wdXNoKHQpLHRoaXMucHVzaChudWxsKX19KX0oZi5ib2R5KTtjb25zdCBsPXsuLi50LmhlYWRlcnN9O2YuYm9keS5sZW5ndGg+MzI3NjgmJihsWyJjb250ZW50LWVuY29kaW5nIl09Imd6aXAiLGQ9ZC5waXBlKHUoKSkpO2NvbnN0IGc9ci5zdGFydHNXaXRoKCJbIiksbT1uLnJlcXVlc3Qoe21ldGhvZDoiUE9TVCIsYWdlbnQ6ZSxoZWFkZXJzOmwsaG9zdG5hbWU6Zz9yLnNsaWNlKDEsLTEpOnIscGF0aDpgJHtvfSR7YX1gLHBvcnQ6aSxwcm90b2NvbDpzLGNhOnQuY2FDZXJ0c30sdD0+e3Qub24oImRhdGEiLCgpPT57fSksdC5vbigiZW5kIiwoKT0+e30pLHQuc2V0RW5jb2RpbmcoInV0ZjgiKTtjb25zdCBuPXQuaGVhZGVyc1sicmV0cnktYWZ0ZXIiXT8/bnVsbCxlPXQuaGVhZGVyc1sieC1zZW50cnktcmF0ZS1saW1pdHMiXT8/bnVsbDtoKHtzdGF0dXNDb2RlOnQuc3RhdHVzQ29kZSxoZWFkZXJzOnsicmV0cnktYWZ0ZXIiOm4sIngtc2VudHJ5LXJhdGUtbGltaXRzIjpBcnJheS5pc0FycmF5KGUpP2VbMF18fG51bGw6ZX19KX0pO20ub24oImVycm9yIixwKSxkLnBpcGUobSl9KX0pfX0odCx0Lmh0dHBNb2R1bGU/P28sZik7cmV0dXJuIEp0KHQsaCl9KHt1cmw6KGZuPW9uLmRzbixobj1vbi50dW5uZWwscG49b24uc2RrTWV0YWRhdGEuc2RrLGhufHxgJHtmdW5jdGlvbih0KXtyZXR1cm5gJHtmdW5jdGlvbih0KXtjb25zdCBuPXQucHJvdG9jb2w/YCR7dC5wcm90b2NvbH06YDoiIixlPXQucG9ydD9gOiR7dC5wb3J0fWA6IiI7cmV0dXJuYCR7bn0vLyR7dC5ob3N0fSR7ZX0ke3QucGF0aD9gLyR7dC5wYXRofWA6IiJ9L2FwaS9gfSh0KX0ke3QucHJvamVjdElkfS9lbnZlbG9wZS9gfShmbil9PyR7ZnVuY3Rpb24odCxuKXtjb25zdCBlPXtzZW50cnlfdmVyc2lvbjoiNyJ9O3JldHVybiB0LnB1YmxpY0tleSYmKGUuc2VudHJ5X2tleT10LnB1YmxpY0tleSksbiYmKGUuc2VudHJ5X2NsaWVudD1gJHtuLm5hbWV9LyR7bi52ZXJzaW9ufWApLG5ldyBVUkxTZWFyY2hQYXJhbXMoZSkudG9TdHJpbmcoKX0oZm4scG4pfWApfSk7YXN5bmMgZnVuY3Rpb24gbG4oKXtpZihzbil7YW4oIlNlbmRpbmcgYWJub3JtYWwgc2Vzc2lvbiIpLEsoc24se3N0YXR1czoiYWJub3JtYWwiLGFibm9ybWFsX21lY2hhbmlzbToiYW5yX2ZvcmVncm91bmQiLHJlbGVhc2U6b24ucmVsZWFzZSxlbnZpcm9ubWVudDpvbi5lbnZpcm9ubWVudH0pO2NvbnN0IHQ9ZnVuY3Rpb24odCxuLGUscil7Y29uc3Qgbz1QdChlKTtyZXR1cm4gQXQoe3NlbnRfYXQ6bmV3IERhdGUoUCgpKS50b0lTT1N0cmluZygpLC4uLm8mJntzZGs6b30sLi4uISFyJiZuJiZ7ZHNuOmJ0KG4pfX0sWyJhZ2dyZWdhdGVzImluIHQ/W3t0eXBlOiJzZXNzaW9ucyJ9LHRdOlt7dHlwZToic2Vzc2lvbiJ9LHQudG9KU09OKCldXSl9KHNuLG9uLmRzbixvbi5zZGtNZXRhZGF0YSxvbi50dW5uZWwpO2FuKEpTT04uc3RyaW5naWZ5KHQpKSxhd2FpdCBkbi5zZW5kKHQpO3RyeXtlPy5wb3N0TWVzc2FnZSgic2Vzc2lvbi1lbmRlZCIpfWNhdGNoe319fWZ1bmN0aW9uIGduKHQpe2lmKCF0KXJldHVybjtjb25zdCBuPWZ1bmN0aW9uKHQpe2lmKCF0Lmxlbmd0aClyZXR1cm5bXTtjb25zdCBuPUFycmF5LmZyb20odCk7cmV0dXJuL3NlbnRyeVdyYXBwZWQvLnRlc3QoRShuKS5mdW5jdGlvbnx8IiIpJiZuLnBvcCgpLG4ucmV2ZXJzZSgpLCQudGVzdChFKG4pLmZ1bmN0aW9ufHwiIikmJihuLnBvcCgpLCQudGVzdChFKG4pLmZ1bmN0aW9ufHwiIikmJm4ucG9wKCkpLG4uc2xpY2UoMCw1MCkubWFwKHQ9Pih7Li4udCxmaWxlbmFtZTp0LmZpbGVuYW1lfHxFKG4pLmZpbGVuYW1lLGZ1bmN0aW9uOnQuZnVuY3Rpb258fCI/In0pKX0odCk7aWYob24uYXBwUm9vdFBhdGgpZm9yKGNvbnN0IHQgb2Ygbil0LmZpbGVuYW1lJiYodC5maWxlbmFtZT1NKHQuZmlsZW5hbWUsb24uYXBwUm9vdFBhdGgpKTtyZXR1cm4gbn1hc3luYyBmdW5jdGlvbiBtbih0LG4pe2lmKGNuPj1vbi5tYXhBbnJFdmVudHMpcmV0dXJuO2NuKz0xLGF3YWl0IGxuKCksYW4oIlNlbmRpbmcgZXZlbnQiKTtjb25zdCBlPXtldmVudF9pZDpHKCksY29udGV4dHM6b24uY29udGV4dHMscmVsZWFzZTpvbi5yZWxlYXNlLGVudmlyb25tZW50Om9uLmVudmlyb25tZW50LGRpc3Q6b24uZGlzdCxwbGF0Zm9ybToibm9kZSIsbGV2ZWw6ImVycm9yIixleGNlcHRpb246e3ZhbHVlczpbe3R5cGU6IkFwcGxpY2F0aW9uTm90UmVzcG9uZGluZyIsdmFsdWU6YEFwcGxpY2F0aW9uIE5vdCBSZXNwb25kaW5nIGZvciBhdCBsZWFzdCAke29uLmFuclRocmVzaG9sZH0gbXNgLHN0YWNrdHJhY2U6e2ZyYW1lczpnbih0KX0sbWVjaGFuaXNtOnt0eXBlOiJBTlIifX1dfSx0YWdzOm9uLnN0YXRpY1RhZ3N9O24mJmZ1bmN0aW9uKHQsbil7aWYoTHQodCxuKSwhdC5jb250ZXh0cz8udHJhY2Upe2NvbnN0e3RyYWNlSWQ6ZSxwYXJlbnRTcGFuSWQ6cixwcm9wYWdhdGlvblNwYW5JZDpvfT1uLnByb3BhZ2F0aW9uQ29udGV4dDt0LmNvbnRleHRzPXt0cmFjZTp7dHJhY2VfaWQ6ZSxzcGFuX2lkOm98fFYoKSxwYXJlbnRfc3Bhbl9pZDpyfSwuLi50LmNvbnRleHRzfX19KGUsbiksZnVuY3Rpb24odCl7aWYoMD09PU9iamVjdC5rZXlzKHVuKS5sZW5ndGgpcmV0dXJuO2NvbnN0IG49b24uYXBwUm9vdFBhdGg/e306dW47aWYob24uYXBwUm9vdFBhdGgpZm9yKGNvbnN0W3QsZV1vZiBPYmplY3QuZW50cmllcyh1bikpbltNKHQsb24uYXBwUm9vdFBhdGgpXT1lO2NvbnN0IGU9bmV3IE1hcDtmb3IoY29uc3QgciBvZiB0LmV4Y2VwdGlvbj8udmFsdWVzfHxbXSlmb3IoY29uc3QgdCBvZiByLnN0YWNrdHJhY2U/LmZyYW1lc3x8W10pe2NvbnN0IHI9dC5hYnNfcGF0aHx8dC5maWxlbmFtZTtyJiZuW3JdJiZlLnNldChyLG5bcl0pfWlmKGUuc2l6ZT4wKXtjb25zdCBuPVtdO2Zvcihjb25zdFt0LHJdb2YgZS5lbnRyaWVzKCkpbi5wdXNoKHt0eXBlOiJzb3VyY2VtYXAiLGNvZGVfZmlsZTp0LGRlYnVnX2lkOnJ9KTt0LmRlYnVnX21ldGE9e2ltYWdlczpufX19KGUpO2NvbnN0IHI9RHQoZSxvbi5kc24sb24uc2RrTWV0YWRhdGEsb24udHVubmVsKTthbihKU09OLnN0cmluZ2lmeShyKSksYXdhaXQgZG4uc2VuZChyKSxhd2FpdCBkbi5mbHVzaCgyZTMpLGNuPj1vbi5tYXhBbnJFdmVudHMmJnNldFRpbWVvdXQoKCk9Pntwcm9jZXNzLmV4aXQoMCl9LDVlMyl9bGV0IHluO2lmKGFuKCJTdGFydGVkIiksb24uY2FwdHVyZVN0YWNrVHJhY2Upe2FuKCJDb25uZWN0aW5nIHRvIGRlYnVnZ2VyIik7Y29uc3Qgbj1uZXcgdDtuLmNvbm5lY3RUb01haW5UaHJlYWQoKSxhbigiQ29ubmVjdGVkIHRvIGRlYnVnZ2VyIik7Y29uc3QgZT1uZXcgTWFwO24ub24oIkRlYnVnZ2VyLnNjcmlwdFBhcnNlZCIsdD0+e2Uuc2V0KHQucGFyYW1zLnNjcmlwdElkLHQucGFyYW1zLnVybCl9KSxuLm9uKCJEZWJ1Z2dlci5wYXVzZWQiLHQ9PntpZigib3RoZXIiPT09dC5wYXJhbXMucmVhc29uKXRyeXthbigiRGVidWdnZXIgcGF1c2VkIik7Y29uc3QgaT1bLi4udC5wYXJhbXMuY2FsbEZyYW1lc10scz1vbi5hcHBSb290UGF0aD9mdW5jdGlvbih0PShwcm9jZXNzLmFyZ3ZbMV0/WXQocHJvY2Vzcy5hcmd2WzFdKTpwcm9jZXNzLmN3ZCgpKSxuPSJcXCI9PT1vKXtjb25zdCBlPW4/cm4odCk6dDtyZXR1cm4gdD0+e2lmKCF0KXJldHVybjtjb25zdCBvPW4/cm4odCk6dDtsZXR7ZGlyOmksYmFzZTpzLGV4dDpjfT1yLnBhcnNlKG8pOyIuanMiIT09YyYmIi5tanMiIT09YyYmIi5janMiIT09Y3x8KHM9cy5zbGljZSgwLC0xKmMubGVuZ3RoKSk7Y29uc3QgdT1kZWNvZGVVUklDb21wb25lbnQocyk7aXx8KGk9Ii4iKTtjb25zdCBhPWkubGFzdEluZGV4T2YoIi9ub2RlX21vZHVsZXMiKTtpZihhPi0xKXJldHVybmAke2kuc2xpY2UoYSsxNCkucmVwbGFjZSgvXC8vZywiLiIpfToke3V9YDtpZihpLnN0YXJ0c1dpdGgoZSkpe2NvbnN0IHQ9aS5zbGljZShlLmxlbmd0aCsxKS5yZXBsYWNlKC9cLy9nLCIuIik7cmV0dXJuIHQ/YCR7dH06JHt1fWA6dX1yZXR1cm4gdX19KG9uLmFwcFJvb3RQYXRoKTooKT0+e30sYz1pLm1hcCh0PT5mdW5jdGlvbih0LG4sZSl7Y29uc3Qgcj1uP24ucmVwbGFjZSgvXmZpbGU6XC9cLy8sIiIpOnZvaWQgMCxvPXQubG9jYXRpb24uY29sdW1uTnVtYmVyP3QubG9jYXRpb24uY29sdW1uTnVtYmVyKzE6dm9pZCAwLGk9dC5sb2NhdGlvbi5saW5lTnVtYmVyP3QubG9jYXRpb24ubGluZU51bWJlcisxOnZvaWQgMDtyZXR1cm57ZmlsZW5hbWU6cixtb2R1bGU6ZShyKSxmdW5jdGlvbjp0LmZ1bmN0aW9uTmFtZXx8Ij8iLGNvbG5vOm8sbGluZW5vOmksaW5fYXBwOnI/SHQocik6dm9pZCAwfX0odCxlLmdldCh0LmxvY2F0aW9uLnNjcmlwdElkKSxzKSksdT1zZXRUaW1lb3V0KCgpPT57bW4oYykudGhlbihudWxsLCgpPT57YW4oIlNlbmRpbmcgQU5SIGV2ZW50IGZhaWxlZC4iKX0pfSw1ZTMpO24ucG9zdCgiUnVudGltZS5ldmFsdWF0ZSIse2V4cHJlc3Npb246Imdsb2JhbC5fX1NFTlRSWV9HRVRfU0NPUEVTX18oKTsiLHNpbGVudDohMCxyZXR1cm5CeVZhbHVlOiEwfSwodCxlKT0+e3QmJmFuKGBFcnJvciBleGVjdXRpbmcgc2NyaXB0OiAnJHt0Lm1lc3NhZ2V9J2ApLGNsZWFyVGltZW91dCh1KTtjb25zdCByPWU/LnJlc3VsdD9lLnJlc3VsdC52YWx1ZTp2b2lkIDA7bi5wb3N0KCJEZWJ1Z2dlci5yZXN1bWUiKSxuLnBvc3QoIkRlYnVnZ2VyLmRpc2FibGUiKSxtbihjLHIpLnRoZW4obnVsbCwoKT0+e2FuKCJTZW5kaW5nIEFOUiBldmVudCBmYWlsZWQuIil9KX0pfWNhdGNoKHQpe3Rocm93IG4ucG9zdCgiRGVidWdnZXIucmVzdW1lIiksbi5wb3N0KCJEZWJ1Z2dlci5kaXNhYmxlIiksdH19KSx5bj0oKT0+e3RyeXtuLnBvc3QoIkRlYnVnZ2VyLmVuYWJsZSIsKCk9PntuLnBvc3QoIkRlYnVnZ2VyLnBhdXNlIil9KX1jYXRjaHt9fX1jb25zdHtwb2xsOmJufT1mdW5jdGlvbih0LG4sZSxyKXtjb25zdCBvPXQoKTtsZXQgaT0hMSxzPSEwO3JldHVybiBzZXRJbnRlcnZhbCgoKT0+e2NvbnN0IHQ9by5nZXRUaW1lTXMoKTshMT09PWkmJnQ+bitlJiYoaT0hMCxzJiZyKCkpLHQ8bitlJiYoaT0hMSl9LDIwKSx7cG9sbDooKT0+e28ucmVzZXQoKX0sZW5hYmxlZDp0PT57cz10fX19KGZ1bmN0aW9uKCl7bGV0IHQ9cHJvY2Vzcy5ocnRpbWUoKTtyZXR1cm57Z2V0VGltZU1zOigpPT57Y29uc3RbbixlXT1wcm9jZXNzLmhydGltZSh0KTtyZXR1cm4gTWF0aC5mbG9vcigxZTMqbitlLzFlNil9LHJlc2V0OigpPT57dD1wcm9jZXNzLmhydGltZSgpfX19LG9uLnBvbGxJbnRlcnZhbCxvbi5hbnJUaHJlc2hvbGQsZnVuY3Rpb24oKXthbigiV2F0Y2hkb2cgdGltZW91dCIpLHluPyhhbigiUGF1c2luZyBkZWJ1Z2dlciB0byBjYXB0dXJlIHN0YWNrIHRyYWNlIikseW4oKSk6KGFuKCJDYXB0dXJpbmcgZXZlbnQgd2l0aG91dCBhIHN0YWNrIHRyYWNlIiksbW4oKS50aGVuKG51bGwsKCk9PnthbigiU2VuZGluZyBBTlIgZXZlbnQgZmFpbGVkIG9uIHdhdGNoZG9nIHRpbWVvdXQuIil9KSl9KTtlPy5vbigibWVzc2FnZSIsdD0+e3Quc2Vzc2lvbiYmKHNuPUgodC5zZXNzaW9uKSksdC5kZWJ1Z0ltYWdlcyYmKHVuPXQuZGVidWdJbWFnZXMpLGJuKCl9KTs=";function c(e,...t){a.debug.log(`[ANR] ${e}`,...t)}function p(){let e=a.getCombinedScopeData(a.getIsolationScope(),a.getCurrentScope());return e.attachments=[],e.eventProcessors=[],e}async function _(e){let t={message:"ANR"},n={};for(let r of e.getEventProcessors()){if(null===t)break;t=await r(t,n)}return t?.contexts||{}}async function T(t,n){let r=t.getDsn();if(!r)return()=>{};let i=await _(t);delete i.app?.app_memory,delete i.device?.free_memory;let s=t.getOptions(),l=t.getSdkMetadata()||{};l.sdk&&(l.sdk.integrations=s.integrations.map(e=>e.name));let p={debug:a.debug.isEnabled(),dsn:r,tunnel:s.tunnel,environment:s.environment||"production",release:s.release,dist:s.dist,sdkMetadata:l,appRootPath:n.appRootPath,pollInterval:n.pollInterval||50,anrThreshold:n.anrThreshold||5e3,captureStackTrace:!!n.captureStackTrace,maxAnrEvents:n.maxAnrEvents||1,staticTags:n.staticTags||{},contexts:i};if(p.captureStackTrace){let t=await e.A(234177);t.url()||t.open(0)}let T=new o.Worker(new URL(`data:application/javascript;base64,${u}`),{workerData:p,execArgv:[],env:{...process.env,NODE_OPTIONS:void 0}});process.on("exit",()=>{T.terminate()});let S=setInterval(()=>{try{let e=a.getIsolationScope().getSession(),t=e?{...e,toJSON:void 0}:void 0;T.postMessage({session:t,debugImages:a.getFilenameToDebugIdMap(s.stackParser)})}catch{}},p.pollInterval);return S.unref(),T.on("message",e=>{"session-ended"===e&&(c("ANR event sent from ANR worker. Clearing session in this thread."),a.getIsolationScope().setSession(void 0))}),T.once("error",e=>{clearInterval(S),c("ANR worker error",e)}),T.once("exit",e=>{clearInterval(S),c("ANR worker exit",e)}),T.unref(),()=>{T.terminate(),clearInterval(S)}}n.anrIntegration=a.defineIntegration((e={})=>{let t,n;if(i.NODE_VERSION.major<16||16===i.NODE_VERSION.major&&i.NODE_VERSION.minor<17)throw Error("ANR detection requires Node 16.17.0 or later");return a.GLOBAL_OBJ.__SENTRY_GET_SCOPES__=p,{name:"Anr",startWorker:()=>{!t&&n&&(t=T(n,e))},stopWorker:()=>{t&&t.then(e=>{e(),t=void 0})},async setup(t){n=t,e.captureStackTrace&&await s.isDebuggerEnabled()&&(a.debug.warn("ANR captureStackTrace has been disabled because the debugger was already enabled"),e.captureStackTrace=!1),setImmediate(()=>this.startWorker())}}}),n.base64WorkerScript=u,n.disableAnrDetectionForCallback=function(e){let t=a.getClient()?.getIntegrationByName("Anr");if(!t)return e();t.stopWorker();let n=e();return l(n)?n.finally(()=>t.startWorker()):(t.startWorker(),n)}},15774,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(812057),o=e.r(513128);n.captureLog=function(e,...t){let[n,a,i,s]=t;if(Array.isArray(a)){let t={...i};t["sentry.message.template"]=n,a.forEach((e,n)=>{t[`sentry.message.parameter.${n}`]=e});let l=r.format(n,...a);o._INTERNAL_captureLog({level:e,message:l,attributes:t},s?.scope)}else o._INTERNAL_captureLog({level:e,message:n,attributes:a},i?.scope??s?.scope)}},114116,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(15774);n.fmt=e.r(513128).fmt,n.debug=function(...e){r.captureLog("debug",...e)},n.error=function(...e){r.captureLog("error",...e)},n.fatal=function(...e){r.captureLog("fatal",...e)},n.info=function(...e){r.captureLog("info",...e)},n.trace=function(...e){r.captureLog("trace",...e)},n.warn=function(...e){r.captureLog("warn",...e)}},145864,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(60438),o=e.r(513128),a="NodeRuntimeMetrics";function i(e,t,n){return Number.isFinite(e)?e<1e3?(console.warn(`[Sentry] ${t}: collectionIntervalMs (${e}) is below the minimum of 1000ms. Using minimum of 1000ms.`),1e3):e:(console.warn(`[Sentry] ${t}: collectionIntervalMs (${e}) is invalid. Using default of ${n}ms.`),n)}let s=o.defineIntegration((e={})=>{let t,n,s,l,u=i(e.collectionIntervalMs??3e4,a,3e4),c={cpuUtilization:!0,memHeapUsed:!0,memHeapTotal:!0,memRss:!0,eventLoopDelayP50:!0,eventLoopDelayP99:!0,eventLoopUtilization:!0,uptime:!0,cpuTime:!1,memExternal:!1,eventLoopDelayMin:!1,eventLoopDelayMax:!1,eventLoopDelayMean:!1,eventLoopDelayP90:!1,...e.collect},p=c.eventLoopDelayP99||c.eventLoopDelayMin||c.eventLoopDelayMax||c.eventLoopDelayMean||c.eventLoopDelayP50||c.eventLoopDelayP90,_=c.cpuUtilization||c.cpuTime,T=0,S=e=>Math.max(0,(e-1e7)/1e9),E={attributes:{"sentry.origin":"auto.node.runtime_metrics"}},d={unit:"byte",attributes:{"sentry.origin":"auto.node.runtime_metrics"}},g={unit:"second",attributes:{"sentry.origin":"auto.node.runtime_metrics"}};function A(){let e=o._INTERNAL_safeDateNow(),t=e-T;if(_&&void 0!==n){let e=process.cpuUsage(n);c.cpuTime&&(o.metrics.gauge("node.runtime.cpu.user",e.user/1e6,g),o.metrics.gauge("node.runtime.cpu.system",e.system/1e6,g)),c.cpuUtilization&&t>0&&o.metrics.gauge("node.runtime.cpu.utilization",(e.user+e.system)/(1e3*t),E),n=process.cpuUsage()}if(c.memRss||c.memHeapUsed||c.memHeapTotal||c.memExternal){let e=process.memoryUsage();c.memRss&&o.metrics.gauge("node.runtime.mem.rss",e.rss,d),c.memHeapUsed&&o.metrics.gauge("node.runtime.mem.heap_used",e.heapUsed,d),c.memHeapTotal&&o.metrics.gauge("node.runtime.mem.heap_total",e.heapTotal,d),c.memExternal&&(o.metrics.gauge("node.runtime.mem.external",e.external,d),o.metrics.gauge("node.runtime.mem.array_buffers",e.arrayBuffers,d))}if(p&&l&&(c.eventLoopDelayMin&&o.metrics.gauge("node.runtime.event_loop.delay.min",S(l.min),g),c.eventLoopDelayMax&&o.metrics.gauge("node.runtime.event_loop.delay.max",S(l.max),g),c.eventLoopDelayMean&&o.metrics.gauge("node.runtime.event_loop.delay.mean",S(l.mean),g),c.eventLoopDelayP50&&o.metrics.gauge("node.runtime.event_loop.delay.p50",S(l.percentile(50)),g),c.eventLoopDelayP90&&o.metrics.gauge("node.runtime.event_loop.delay.p90",S(l.percentile(90)),g),c.eventLoopDelayP99&&o.metrics.gauge("node.runtime.event_loop.delay.p99",S(l.percentile(99)),g),l.reset()),c.eventLoopUtilization&&void 0!==s){let e=r.performance.eventLoopUtilization(),t=r.performance.eventLoopUtilization(e,s);o.metrics.gauge("node.runtime.event_loop.utilization",t.utilization,E),s=e}c.uptime&&t>0&&o.metrics.count("node.runtime.process.uptime",t/1e3,g),T=e}return{name:a,setup(){if(p){l?.disable();try{(l=r.monitorEventLoopDelay({resolution:10})).enable()}catch{l=void 0}}_&&(n=process.cpuUsage()),c.eventLoopUtilization&&(s=r.performance.eventLoopUtilization()),T=o._INTERNAL_safeDateNow(),t&&clearInterval(t),t=o._INTERNAL_safeUnref(setInterval(A,u))}}});n._INTERNAL_normalizeCollectionInterval=i,n.nodeRuntimeMetricsIntegration=s},898311,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(513449),a=e.r(15774),i=["trace","debug","info","warn","error","fatal"],s=Symbol.for("level"),l=Symbol.for("message"),u=Symbol.for("splat"),c={silly:"trace",debug:"debug",verbose:"debug",http:"debug",info:"info",notice:"info",warn:"warn",warning:"warn",error:"error",emerg:"fatal",alert:"fatal",crit:"fatal"};n.createSentryWinstonTransport=function(e,t){return class extends e{constructor(e){super(e),this._levels=new Set(t?.levels??i)}log(e,n){try{var i;if(setImmediate(()=>{this.emit("logged",e)}),i=e,"object"!=typeof i||null==i)return;let n=e[s],{level:p,message:_,timestamp:T,...S}=e;S[s]=void 0,S[l]=void 0,S[u]=void 0;let E=t?.customLevelMap?.[n],d=c[n],g=E??d??"info";this._levels.has(g)?a.captureLog(g,_,{...S,"sentry.origin":"auto.log.winston"}):E||d||!o.DEBUG_BUILD||r.debug.log(`Winston log level ${n} is not captured by Sentry. Please add ${n} to the "customLevelMap" option of the Sentry Winston transport.`)}catch{}n&&n()}}}},48077,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(677652),o=e.r(513128),a=Symbol("sentry-track-pino-logger");function i(e,t,n){let r=Object.getOwnPropertySymbols(e),o=`Symbol(${t})`;for(let t of r)if(t.toString()===o){let r=e[t];return"string"==typeof r?r:n}return n}let s={levels:[],handled:!0},l={levels:["trace","debug","info","warn","error","fatal"]};n.pinoIntegration=Object.assign(o.defineIntegration((e={})=>{let t={autoInstrument:!1!==e.autoInstrument,error:{...s,...e.error},log:{...l,...e.log}};return{name:"Pino",setup:e=>{let n=!!e.getOptions().enableLogs;r.tracingChannel("pino_asJson").end.subscribe(e=>{let{instance:r,arguments:s,result:l}=e;!function(e,r,s){let l;if("track"!==(l=e[a])&&("ignore"===l||!t.autoInstrument))return;let u=function(e){let{level:t,time:n,pid:r,hostname:o,...a}=e;return a}(s),[c,p,_]=r,T=e?.levels?.labels?.[_]||"info",S=i(e,"pino.messageKey","msg"),E=p||u?.[S]||"";if(n&&t.log.levels.includes(T)){let e={...u,"sentry.origin":"auto.log.pino","pino.logger.level":_};o._INTERNAL_captureLog({level:T,message:E,attributes:e})}if(t.error.levels.includes(T)){let n={level:o.severityLevelFromString(T)};o.withScope(r=>{r.addEventProcessor(e=>(e.logger="pino",o.addExceptionMechanism(e,{handled:t.error.handled,type:"auto.log.pino"}),e));let a=c[i(e,"pino.errorKey","err")];a?o.captureException(a,n):o.captureMessage(E,n)})}}(r,s,JSON.parse(l))})}}}),{trackLogger(e){e&&"object"==typeof e&&"levels"in e&&(e[a]="track")},untrackLogger(e){e&&"object"==typeof e&&"levels"in e&&(e[a]="ignore")}})},170251,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.addOriginToSpan=function(e,t){e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t)}},543865,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=[["january","1"],["february","2"],["march","3"],["april","4"],["may","5"],["june","6"],["july","7"],["august","8"],["september","9"],["october","10"],["november","11"],["december","12"],["jan","1"],["feb","2"],["mar","3"],["apr","4"],["may","5"],["jun","6"],["jul","7"],["aug","8"],["sep","9"],["oct","10"],["nov","11"],["dec","12"],["sunday","0"],["monday","1"],["tuesday","2"],["wednesday","3"],["thursday","4"],["friday","5"],["saturday","6"],["sun","0"],["mon","1"],["tue","2"],["wed","3"],["thu","4"],["fri","5"],["sat","6"]];n.replaceCronNames=function(e){return r.reduce((e,[t,n])=>e.replace(RegExp(t,"gi"),n),e)}},991539,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(543865),a="Automatic instrumentation of CronJob only supports crontab string";n.instrumentCron=function(e,t){let n=!1;return new Proxy(e,{construct(e,i){let[s,l,u,c,p,..._]=i;if("string"!=typeof s)throw Error(a);if(n)throw Error(`A job named '${t}' has already been scheduled`);n=!0;let T=o.replaceCronNames(s);return new e(s,async function(e,n){return r.withMonitor(t,async()=>{try{await l(e,n)}catch(e){throw r.captureException(e,{mechanism:{handled:!1,type:"auto.function.cron.instrumentCron"}}),e}},{schedule:{type:"crontab",value:T},timezone:p||void 0})},u,c,p,..._)},get:(e,i)=>"from"===i?i=>{let{cronTime:s,onTick:l,timeZone:u}=i;if("string"!=typeof s)throw Error(a);if(n)throw Error(`A job named '${t}' has already been scheduled`);n=!0;let c=o.replaceCronNames(s);return i.onTick=async(e,n)=>r.withMonitor(t,async()=>{try{await l(e,n)}catch(e){throw r.captureException(e,{mechanism:{handled:!1,type:"auto.function.cron.instrumentCron"}}),e}},{schedule:{type:"crontab",value:c},timezone:u||void 0}),e.from(i)}:e[i]})}},572393,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(543865);n.instrumentNodeCron=function(e,t={}){return new Proxy(e,{get:(e,n)=>"schedule"===n&&e.schedule?new Proxy(e.schedule,{apply(e,n,a){let[i,s,l]=a,u=l?.name,c=l?.timezone;if(!u)throw Error('Missing "name" for scheduled job. A name is required for Sentry check-in monitoring.');let p=async(...e)=>r.withMonitor(u,async()=>{try{return await s(...e)}catch(e){throw r.captureException(e,{mechanism:{handled:!1,type:"auto.function.node-cron.instrumentNodeCron"}}),e}},{schedule:{type:"crontab",value:o.replaceCronNames(i)},timezone:c,...t});return e.apply(n,[i,p,l])}}):e[n]})}},901956,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(543865);n.instrumentNodeSchedule=function(e){return new Proxy(e,{get:(e,t)=>"scheduleJob"===t?new Proxy(e.scheduleJob,{apply(e,t,n){let[a,i,s]=n;if("string"!=typeof a||"string"!=typeof i||"function"!=typeof s)throw Error("Automatic instrumentation of 'node-schedule' requires the first parameter of 'scheduleJob' to be a job name string and the second parameter to be a crontab string");async function l(){return r.withMonitor(a,async()=>{await s?.()},{schedule:{type:"crontab",value:o.replaceCronNames(i)}})}return e.apply(t,[a,i,l])}}):e[t]})}},734959,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(991539),o=e.r(572393),a=e.r(901956);n.cron={instrumentCron:r.instrumentCron,instrumentNodeCron:o.instrumentNodeCron,instrumentNodeSchedule:a.instrumentNodeSchedule}},9597,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(713146),o=e.r(773864),a=e.r(286130),i=e.r(305574),s=e.r(114685),l=e.r(189554),u=e.r(188087),c=e.r(912833),p=e.r(262746),_=e.r(836958),T=e.r(598436),S=e.r(66991),E=e.r(976467),d=e.r(799183),g=e.r(110516),A=e.r(190309),m=e.r(513128),R=e.r(114116),h=e.r(995119),f=e.r(145864),N=e.r(398201),I=e.r(741965),y=e.r(847335),b=e.r(260316),O=e.r(59286),C=e.r(688631),M=e.r(892922),L=e.r(142596),P=e.r(898311),U=e.r(48077),v=e.r(721073),D=e.r(632038),G=e.r(12484),B=e.r(170251),x=e.r(283489),V=e.r(533982),w=e.r(957857),k=e.r(939318),H=e.r(734959),Y=e.r(781521);n.httpIntegration=r.httpIntegration,n.httpServerSpansIntegration=o.httpServerSpansIntegration,n.httpServerIntegration=a.httpServerIntegration,n.SentryHttpInstrumentation=i.SentryHttpInstrumentation,n.nativeNodeFetchIntegration=s.nativeNodeFetchIntegration,n.SentryNodeFetchInstrumentation=l.SentryNodeFetchInstrumentation,n.SentryContextManager=u.SentryContextManager,n.setupOpenTelemetryLogger=c.setupOpenTelemetryLogger,n.INSTRUMENTED=p.INSTRUMENTED,n.generateInstrumentOnce=p.generateInstrumentOnce,n.instrumentWhenWrapped=p.instrumentWhenWrapped,n.getDefaultIntegrations=_.getDefaultIntegrations,n.init=_.init,n.initWithoutDefaultIntegrations=_.initWithoutDefaultIntegrations,n.validateOpenTelemetrySetup=_.validateOpenTelemetrySetup,n.setIsolationScope=T.setIsolationScope,n.NodeClient=S.NodeClient,n.ensureIsWrapped=E.ensureIsWrapped,n.processSessionIntegration=d.processSessionIntegration,n.setNodeAsyncContextStrategy=g.setOpenTelemetryContextAsyncContextStrategy,n.anrIntegration=A.anrIntegration,n.disableAnrDetectionForCallback=A.disableAnrDetectionForCallback,n.SDK_VERSION=m.SDK_VERSION,n.SEMANTIC_ATTRIBUTE_SENTRY_OP=m.SEMANTIC_ATTRIBUTE_SENTRY_OP,n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=m.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=m.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=m.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n.Scope=m.Scope,n.addBreadcrumb=m.addBreadcrumb,n.addEventProcessor=m.addEventProcessor,n.addIntegration=m.addIntegration,n.captureCheckIn=m.captureCheckIn,n.captureConsoleIntegration=m.captureConsoleIntegration,n.captureEvent=m.captureEvent,n.captureException=m.captureException,n.captureFeedback=m.captureFeedback,n.captureMessage=m.captureMessage,n.captureSession=m.captureSession,n.close=m.close,n.consoleLoggingIntegration=m.consoleLoggingIntegration,n.continueTrace=m.continueTrace,n.createConsolaReporter=m.createConsolaReporter,n.createTransport=m.createTransport,n.dedupeIntegration=m.dedupeIntegration,n.endSession=m.endSession,n.envToBool=m.envToBool,n.eventFiltersIntegration=m.eventFiltersIntegration,n.extraErrorDataIntegration=m.extraErrorDataIntegration,n.featureFlagsIntegration=m.featureFlagsIntegration,n.flush=m.flush,n.functionToStringIntegration=m.functionToStringIntegration,n.getActiveSpan=m.getActiveSpan,n.getClient=m.getClient,n.getCurrentScope=m.getCurrentScope,n.getGlobalScope=m.getGlobalScope,n.getIsolationScope=m.getIsolationScope,n.getRequestUrl=m.getRequestUrl,n.getRootSpan=m.getRootSpan,n.getSpanDescendants=m.getSpanDescendants,n.getSpanStatusFromHttpCode=m.getSpanStatusFromHttpCode,n.getTraceData=m.getTraceData,n.getTraceMetaTags=m.getTraceMetaTags,n.inboundFiltersIntegration=m.inboundFiltersIntegration,n.instrumentSupabaseClient=m.instrumentSupabaseClient,n.isEnabled=m.isEnabled,n.isInitialized=m.isInitialized,n.lastEventId=m.lastEventId,n.linkedErrorsIntegration=m.linkedErrorsIntegration,n.metrics=m.metrics,n.parameterize=m.parameterize,n.profiler=m.profiler,n.requestDataIntegration=m.requestDataIntegration,n.rewriteFramesIntegration=m.rewriteFramesIntegration,n.setContext=m.setContext,n.setCurrentClient=m.setCurrentClient,n.setExtra=m.setExtra,n.setExtras=m.setExtras,n.setHttpStatus=m.setHttpStatus,n.setMeasurement=m.setMeasurement,n.setTag=m.setTag,n.setTags=m.setTags,n.setUser=m.setUser,n.spanStreamingIntegration=m.spanStreamingIntegration,n.spanToBaggageHeader=m.spanToBaggageHeader,n.spanToJSON=m.spanToJSON,n.spanToTraceHeader=m.spanToTraceHeader,n.startInactiveSpan=m.startInactiveSpan,n.startNewTrace=m.startNewTrace,n.startSession=m.startSession,n.startSpan=m.startSpan,n.startSpanManual=m.startSpanManual,n.supabaseIntegration=m.supabaseIntegration,n.suppressTracing=m.suppressTracing,n.trpcMiddleware=m.trpcMiddleware,n.updateSpanName=m.updateSpanName,n.withActiveSpan=m.withActiveSpan,n.withIsolationScope=m.withIsolationScope,n.withMonitor=m.withMonitor,n.withScope=m.withScope,n.withStreamedSpan=m.withStreamedSpan,n.wrapMcpServerWithSentry=m.wrapMcpServerWithSentry,n.zodErrorsIntegration=m.zodErrorsIntegration,n.logger=R,n.nodeContextIntegration=h.nodeContextIntegration,n._INTERNAL_normalizeCollectionInterval=f._INTERNAL_normalizeCollectionInterval,n.nodeRuntimeMetricsIntegration=f.nodeRuntimeMetricsIntegration,n.contextLinesIntegration=N.contextLinesIntegration,n.localVariablesIntegration=I.localVariablesIntegration,n.modulesIntegration=y.modulesIntegration,n.onUncaughtExceptionIntegration=b.onUncaughtExceptionIntegration,n.onUnhandledRejectionIntegration=O.onUnhandledRejectionIntegration,n.spotlightIntegration=C.spotlightIntegration,n.systemErrorIntegration=M.systemErrorIntegration,n.childProcessIntegration=L.childProcessIntegration,n.createSentryWinstonTransport=P.createSentryWinstonTransport,n.pinoIntegration=U.pinoIntegration,n.consoleIntegration=v.consoleIntegration,n.defaultStackParser=D.defaultStackParser,n.getSentryRelease=D.getSentryRelease,n.createGetModuleFromFilename=G.createGetModuleFromFilename,n.addOriginToSpan=B.addOriginToSpan,n.initializeEsmLoader=x.initializeEsmLoader,n.isCjs=V.isCjs,n.createMissingInstrumentationContext=w.createMissingInstrumentationContext,n.makeNodeTransport=k.makeNodeTransport,n.cron=H.cron,n.NODE_VERSION=Y.NODE_VERSION},833618,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a="Http",i=o.generateInstrumentOnce(`${a}.sentry`,e=>new o.SentryHttpInstrumentation(e));n.httpIntegration=r.defineIntegration((e={})=>{let t=e.spans??!0,n=e.disableIncomingRequestSpans,s=t&&!n,l={sessions:e.trackIncomingRequestsAsSessions,sessionFlushingDelayMS:e.sessionFlushingDelayMS,ignoreRequestBody:e.ignoreIncomingRequestBody,maxRequestBodySize:e.maxIncomingRequestBodySize},u={ignoreIncomingRequests:e.ignoreIncomingRequests,ignoreStaticAssets:e.ignoreStaticAssets,ignoreStatusCodes:e.dropSpansForIncomingRequestStatusCodes,instrumentation:e.instrumentation,onSpanCreated:e.incomingRequestSpanHook},c=o.httpServerIntegration(l),p=o.httpServerSpansIntegration(u);return{name:a,setup(e){let t=e.getOptions();s&&r.hasSpansEnabled(t)&&p.setup(e)},setupOnce(){c.setupOnce(),i({breadcrumbs:e.breadcrumbs,spans:t,propagateTraceInOutgoingRequests:e.tracePropagation??!0,createSpansForOutgoingRequests:t,ignoreOutgoingRequests:e.ignoreOutgoingRequests,outgoingRequestHook:(t,n)=>{let o=r.getRequestUrlFromClientRequest(n);if(o.startsWith("data:")){let e=r.stripDataUrlContent(o);t.setAttribute("http.url",e),t.setAttribute(r.SEMANTIC_ATTRIBUTE_URL_FULL,e),t.updateName(`${n.method||"GET"} ${e}`)}e.instrumentation?.requestHook?.(t,n)},outgoingResponseHook:e.instrumentation?.responseHook,outgoingRequestApplyCustomAttributes:e.instrumentation?.applyCustomAttributesOnSpan})},processEvent:e=>p.processEvent(e)}}),n.instrumentSentryHttp=i},837907,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(154993),o=e.r(792509),a=e.r(777884),i=e.r(92405),s=e.r(216835),l=e.r(513128);class u extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-undici",l.SDK_VERSION,e),this._recordFromReq=new WeakMap}init(){}disable(){super.disable(),this._channelSubs.forEach(e=>e.unsubscribe()),this._channelSubs.length=0}enable(){super.enable(),this._channelSubs=this._channelSubs||[],this._channelSubs.length>0||(this.subscribeToChannel("undici:request:create",this.onRequestCreated.bind(this)),this.subscribeToChannel("undici:client:sendHeaders",this.onRequestHeaders.bind(this)),this.subscribeToChannel("undici:request:headers",this.onResponseHeaders.bind(this)),this.subscribeToChannel("undici:request:trailers",this.onDone.bind(this)),this.subscribeToChannel("undici:request:error",this.onError.bind(this)))}_updateMetricInstruments(){this._httpClientDurationHistogram=this.meter.createHistogram(s.METRIC_HTTP_CLIENT_REQUEST_DURATION,{description:"Measures the duration of outbound HTTP requests.",unit:"s",valueType:i.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}})}subscribeToChannel(e,t){let n,[o=0,a=0]=process.version.replace("v","").split(".").map(e=>Number(e));if(o>18||18===o&&a>=19)r.subscribe?.(e,t),n=()=>r.unsubscribe?.(e,t);else{let o=r.channel(e);o.subscribe(t),n=()=>o.unsubscribe(t)}this._channelSubs.push({name:e,unsubscribe:n})}parseRequestHeaders(e){let t=new Map;if(Array.isArray(e.headers))for(let n=0;n<e.headers.length;n+=2){let r=e.headers[n],o=e.headers[n+1];"string"==typeof r&&void 0!==o&&t.set(r.toLowerCase(),o)}else if("string"==typeof e.headers)for(let n of e.headers.split("\r\n")){if(!n)continue;let e=n.indexOf(":");if(-1===e)continue;let r=n.substring(0,e).toLowerCase(),o=n.substring(e+1).trim(),a=t.get(r);a&&Array.isArray(a)?a.push(o):a?t.set(r,[a,o]):t.set(r,o)}return t}onRequestCreated({request:e}){let t,n,r=this.getConfig(),u=!1!==r.enabled;if(a.safeExecuteInTheMiddle(()=>!u||"CONNECT"===e.method||r.ignoreRequestHook?.(e),e=>e&&this._diag.error("caught ignoreRequestHook error: ",e),!0))return;let c=l.timestampInSeconds();try{t=new o.URL(e.path,e.origin)}catch(e){this._diag.warn("could not determine url.full:",e);return}let p=t.protocol.replace(":",""),_=this.getRequestMethod(e.method),T={[s.ATTR_HTTP_REQUEST_METHOD]:_,[s.ATTR_HTTP_REQUEST_METHOD_ORIGINAL]:e.method,[s.ATTR_URL_FULL]:t.toString(),[s.ATTR_URL_PATH]:t.pathname,[s.ATTR_URL_QUERY]:t.search,[s.ATTR_URL_SCHEME]:p},S=t.hostname,E=t.port||({https:"443",http:"80"})[p];T[s.ATTR_SERVER_ADDRESS]=S,E&&!isNaN(Number(E))&&(T[s.ATTR_SERVER_PORT]=Number(E));let d=this.parseRequestHeaders(e).get("user-agent");if(d){let e=Array.isArray(d)?d[d.length-1]:d;T[s.ATTR_USER_AGENT_ORIGINAL]=e}let g=a.safeExecuteInTheMiddle(()=>r.startSpanHook?.(e),e=>e&&this._diag.error("caught startSpanHook error: ",e),!0);g&&Object.entries(g).forEach(([e,t])=>{T[e]=t});let A=i.context.active(),m=i.trace.getSpan(A);n=!r.requireParentforSpans||m&&i.trace.isSpanContextValid(m.spanContext())?this.tracer.startSpan("_OTHER"===_?"HTTP":_,{kind:i.SpanKind.CLIENT,attributes:T},A):i.trace.wrapSpanContext(i.INVALID_SPAN_CONTEXT),a.safeExecuteInTheMiddle(()=>r.requestHook?.(n,e),e=>e&&this._diag.error("caught requestHook error: ",e),!0);let R=i.trace.setSpan(i.context.active(),n),h={};i.propagation.inject(R,h);let f=Object.entries(h);for(let t=0;t<f.length;t++){let n=f[t];if(!n)continue;let[r,o]=n;"function"==typeof e.addHeader?e.addHeader(r,o):"string"==typeof e.headers?e.headers+=`${r}: ${o}\r
21
21
  `:Array.isArray(e.headers)&&e.headers.push(r,o)}this._recordFromReq.set(e,{span:n,attributes:T,startTime:c})}onRequestHeaders({request:e,socket:t}){let n=this._recordFromReq.get(e);if(!n)return;let r=this.getConfig(),{span:o}=n,{remoteAddress:a,remotePort:i}=t,l={[s.ATTR_NETWORK_PEER_ADDRESS]:a,[s.ATTR_NETWORK_PEER_PORT]:i};if(r.headersToSpanAttributes?.requestHeaders){let t=new Set(r.headersToSpanAttributes.requestHeaders.map(e=>e.toLowerCase()));for(let[n,r]of this.parseRequestHeaders(e).entries())if(t.has(n)){let e=Array.isArray(r)?r:[r];l[`http.request.header.${n}`]=e}}o.setAttributes(l)}onResponseHeaders({request:e,response:t}){let n=this._recordFromReq.get(e);if(!n)return;let{span:r,attributes:o}=n,l={[s.ATTR_HTTP_RESPONSE_STATUS_CODE]:t.statusCode},u=this.getConfig();if(a.safeExecuteInTheMiddle(()=>u.responseHook?.(r,{request:e,response:t}),e=>e&&this._diag.error("caught responseHook error: ",e),!0),u.headersToSpanAttributes?.responseHeaders){let e=new Set;u.headersToSpanAttributes?.responseHeaders.forEach(t=>e.add(t.toLowerCase()));for(let n=0;n<t.headers.length;n+=2){let r=t.headers[n],o=t.headers[n+1];if(void 0===r||void 0===o)continue;let a=r.toString().toLowerCase();if(e.has(a)){let e=`http.response.header.${a}`;Object.prototype.hasOwnProperty.call(l,e)?l[e].push(o.toString()):l[e]=[o.toString()]}}}r.setAttributes(l),r.setStatus({code:t.statusCode>=400?i.SpanStatusCode.ERROR:i.SpanStatusCode.UNSET}),n.attributes=Object.assign(o,l)}onDone({request:e}){let t=this._recordFromReq.get(e);if(!t)return;let{span:n,attributes:r,startTime:o}=t;n.end(),this._recordFromReq.delete(e),this.recordRequestDuration(r,o)}onError({request:e,error:t}){let n=this._recordFromReq.get(e);if(!n)return;let{span:r,attributes:o,startTime:a}=n;r.recordException(t),r.setStatus({code:i.SpanStatusCode.ERROR,message:t.message}),r.end(),this._recordFromReq.delete(e),o[s.ATTR_ERROR_TYPE]=t.message,this.recordRequestDuration(o,a)}recordRequestDuration(e,t){let n={};[s.ATTR_HTTP_RESPONSE_STATUS_CODE,s.ATTR_HTTP_REQUEST_METHOD,s.ATTR_SERVER_ADDRESS,s.ATTR_SERVER_PORT,s.ATTR_URL_SCHEME,s.ATTR_ERROR_TYPE].forEach(t=>{t in e&&(n[t]=e[t])});let r=l.timestampInSeconds()-t;this._httpClientDurationHistogram.record(r,n)}getRequestMethod(e){return e.toUpperCase()in{CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0,QUERY:!0}?e.toUpperCase():"_OTHER"}}n.UndiciInstrumentation=u},300447,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(837907),o=e.r(513128),a=e.r(9597),i="NodeFetch",s=a.generateInstrumentOnce(i,r.UndiciInstrumentation,e=>p(e)),l=a.generateInstrumentOnce(`${i}.sentry`,a.SentryNodeFetchInstrumentation,e=>e),u=o.defineIntegration((e={})=>({name:"NodeFetch",setupOnce(){(function(e,t={}){return"boolean"==typeof e.spans?e.spans:!t.skipOpenTelemetrySetup&&o.hasSpansEnabled(t)})(e,o.getClient()?.getOptions())&&s(e),l(e)}}));function c(e,t="/"){let n=`${e}`;return n.endsWith("/")&&t.startsWith("/")?`${n}${t.slice(1)}`:n.endsWith("/")||t.startsWith("/")?`${n}${t}`:`${n}/${t}`}function p(e={}){return{requireParentforSpans:!1,ignoreRequestHook:t=>{let n=c(t.origin,t.path),r=e.ignoreOutgoingRequests;return!!(r&&n&&r(n))},startSpanHook:e=>{let t=c(e.origin,e.path);if(t.startsWith("data:")){let n=o.stripDataUrlContent(t);return{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.node_fetch","http.url":n,[o.SEMANTIC_ATTRIBUTE_URL_FULL]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:`${e.method||"GET"} ${n}`}}return{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.node_fetch"}},requestHook:e.requestHook,responseHook:e.responseHook,headersToSpanAttributes:e.headersToSpanAttributes}}n._getConfigWithDefaults=p,n.nativeNodeFetchIntegration=u},748466,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.CALLBACK_FUNCTIONS=["access","appendFile","chmod","chown","copyFile","cp","exists","lchown","link","lstat","lutimes","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","realpath.native","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"],n.PROMISE_FUNCTIONS=["access","appendFile","chmod","chown","copyFile","cp","lchown","link","lstat","lutimes","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"],n.SYNC_FUNCTIONS=["accessSync","appendFileSync","chmodSync","chownSync","copyFileSync","cpSync","existsSync","lchownSync","linkSync","lstatSync","lutimesSync","mkdirSync","mkdtempSync","opendirSync","openSync","readdirSync","readFileSync","readlinkSync","realpathSync","realpathSync.native","renameSync","rmdirSync","rmSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","writeFileSync"]},51841,(e,t,n)=>{function r(e){let t=e.split(".");if(!(t.length>1))return[e];if(2!==t.length)throw Error(`Invalid member function name ${e}`);return t}Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.indexFs=function(e,t){if(!t)throw Error(JSON.stringify({member:t}));let[n,o]=r(t);return o?{objectToPatch:e[n],functionNameToPatch:o}:{objectToPatch:e,functionNameToPatch:n}},n.splitTwoLevels=r},813805,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(979184),a=e.r(777884),i=e.r(513128),s=e.r(748466),l=e.r(224361),u=e.r(51841);function c(e,t){return Object.assign(e,t)}class p extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-fs",i.SDK_VERSION,e)}init(){return[new a.InstrumentationNodeModuleDefinition("fs",["*"],e=>{for(let t of s.SYNC_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:r}=u.indexFs(e,t);a.isWrapped(n[r])&&this._unwrap(n,r),this._wrap(n,r,this._patchSyncFunction.bind(this,t))}for(let t of s.CALLBACK_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:r}=u.indexFs(e,t);if(a.isWrapped(n[r])&&this._unwrap(n,r),"exists"===t){this._wrap(n,r,this._patchExistsCallbackFunction.bind(this,t));continue}this._wrap(n,r,this._patchCallbackFunction.bind(this,t))}for(let t of s.PROMISE_FUNCTIONS)a.isWrapped(e.promises[t])&&this._unwrap(e.promises,t),this._wrap(e.promises,t,this._patchPromiseFunction.bind(this,t));return e},e=>{if(void 0!==e){for(let t of s.SYNC_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:r}=u.indexFs(e,t);a.isWrapped(n[r])&&this._unwrap(n,r)}for(let t of s.CALLBACK_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:r}=u.indexFs(e,t);a.isWrapped(n[r])&&this._unwrap(n,r)}for(let t of s.PROMISE_FUNCTIONS)a.isWrapped(e.promises[t])&&this._unwrap(e.promises,t)}}),new a.InstrumentationNodeModuleDefinition("fs/promises",["*"],e=>{for(let t of s.PROMISE_FUNCTIONS)a.isWrapped(e[t])&&this._unwrap(e,t),this._wrap(e,t,this._patchPromiseFunction.bind(this,t));return e},e=>{if(void 0!==e)for(let t of s.PROMISE_FUNCTIONS)a.isWrapped(e[t])&&this._unwrap(e,t)})]}_patchSyncFunction(e,t){let n=this;return c(function(...a){let i=r.context.active();if(!n._shouldTrace(i))return t.apply(this,a);if(!1===n._runCreateHook(e,{args:a}))return r.context.with(o.suppressTracing(i),t,this,...a);let s=n.tracer.startSpan(`fs ${e}`);try{let l=r.context.with(o.suppressTracing(r.trace.setSpan(i,s)),t,this,...a);return n._runEndHook(e,{args:a,span:s}),l}catch(t){throw s.recordException(t),s.setStatus({message:t.message,code:r.SpanStatusCode.ERROR}),n._runEndHook(e,{args:a,span:s,error:t}),t}finally{s.end()}},t)}_patchCallbackFunction(e,t){let n=this;return c(function(...a){let i=r.context.active();if(!n._shouldTrace(i))return t.apply(this,a);if(!1===n._runCreateHook(e,{args:a}))return r.context.with(o.suppressTracing(i),t,this,...a);let s=a.length-1,l=a[s];if("function"!=typeof l)return t.apply(this,a);{let u=n.tracer.startSpan(`fs ${e}`);a[s]=r.context.bind(i,function(t){return t&&(u.recordException(t),u.setStatus({message:t.message,code:r.SpanStatusCode.ERROR})),n._runEndHook(e,{args:a,span:u,error:t}),u.end(),l.apply(this,arguments)});try{return r.context.with(o.suppressTracing(r.trace.setSpan(i,u)),t,this,...a)}catch(t){throw u.recordException(t),u.setStatus({message:t.message,code:r.SpanStatusCode.ERROR}),n._runEndHook(e,{args:a,span:u,error:t}),u.end(),t}}},t)}_patchExistsCallbackFunction(e,t){let n=this,a=c(function(...a){let i=r.context.active();if(!n._shouldTrace(i))return t.apply(this,a);if(!1===n._runCreateHook(e,{args:a}))return r.context.with(o.suppressTracing(i),t,this,...a);let s=a.length-1,l=a[s];if("function"!=typeof l)return t.apply(this,a);{let u=n.tracer.startSpan(`fs ${e}`);a[s]=r.context.bind(i,function(){return n._runEndHook(e,{args:a,span:u}),u.end(),l.apply(this,arguments)});try{return r.context.with(o.suppressTracing(r.trace.setSpan(i,u)),t,this,...a)}catch(t){throw u.recordException(t),u.setStatus({message:t.message,code:r.SpanStatusCode.ERROR}),n._runEndHook(e,{args:a,span:u,error:t}),u.end(),t}}},t),i=function(e){return new Promise(t=>a(e,t))};return Object.defineProperty(i,"name",{value:e}),Object.defineProperty(a,l.promisify.custom,{value:i}),a}_patchPromiseFunction(e,t){let n=this;return c(async function(...a){let i=r.context.active();if(!n._shouldTrace(i))return t.apply(this,a);if(!1===n._runCreateHook(e,{args:a}))return r.context.with(o.suppressTracing(i),t,this,...a);let s=n.tracer.startSpan(`fs ${e}`);try{let l=await r.context.with(o.suppressTracing(r.trace.setSpan(i,s)),t,this,...a);return n._runEndHook(e,{args:a,span:s}),l}catch(t){throw s.recordException(t),s.setStatus({message:t.message,code:r.SpanStatusCode.ERROR}),n._runEndHook(e,{args:a,span:s,error:t}),t}finally{s.end()}},t)}_runCreateHook(...e){let{createHook:t}=this.getConfig();if("function"==typeof t)try{return t(...e)}catch(e){this._diag.error("caught createHook error",e)}return!0}_runEndHook(...e){let{endHook:t}=this.getConfig();if("function"==typeof t)try{t(...e)}catch(e){this._diag.error("caught endHook error",e)}}_shouldTrace(e){if(o.isTracingSuppressed(e))return!1;let{requireParentSpan:t}=this.getConfig();return(!t||null!=r.trace.getSpan(e))&&!0}}n.FsInstrumentation=p},777683,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(813805),o=e.r(513128),a=e.r(9597),i="FileSystem",s=o.defineIntegration((e={})=>({name:i,setupOnce(){a.generateInstrumentOnce(i,()=>new r.FsInstrumentation({requireParentSpan:!0,endHook(t,{args:n,span:r,error:a}){r.updateName(`fs.${t}`),r.setAttributes({[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"file",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.file.fs"}),e.recordErrorMessagesAsSpanAttributes&&("string"==typeof n[0]&&T.includes(t)?r.setAttribute("path_argument",n[0]):"string"==typeof n[0]&&"string"==typeof n[1]&&_.includes(t)?(r.setAttribute("target_argument",n[0]),r.setAttribute("path_argument",n[1])):"string"==typeof n[0]&&p.includes(t)?r.setAttribute("prefix_argument",n[0]):"string"==typeof n[0]&&"string"==typeof n[1]&&c.includes(t)?(r.setAttribute("existing_path_argument",n[0]),r.setAttribute("new_path_argument",n[1])):"string"==typeof n[0]&&"string"==typeof n[1]&&u.includes(t)?(r.setAttribute("src_argument",n[0]),r.setAttribute("dest_argument",n[1])):"string"==typeof n[0]&&"string"==typeof n[1]&&l.includes(t)&&(r.setAttribute("old_path_argument",n[0]),r.setAttribute("new_path_argument",n[1]))),a&&e.recordErrorMessagesAsSpanAttributes&&r.setAttribute("fs_error",a.message)}}))()}})),l=["rename","renameSync"],u=["copyFile","cp","copyFileSync","cpSync"],c=["link","linkSync"],p=["mkdtemp","mkdtempSync"],_=["symlink","symlinkSync"],T=["access","appendFile","chmod","chown","exists","mkdir","lchown","lstat","lutimes","open","opendir","readdir","readFile","readlink","realpath","realpath.native","rm","rmdir","stat","truncate","unlink","utimes","writeFile","accessSync","appendFileSync","chmodSync","chownSync","existsSync","lchownSync","lstatSync","lutimesSync","opendirSync","mkdirSync","openSync","readdirSync","readFileSync","readlinkSync","realpathSync","realpathSync.native","rmdirSync","rmSync","statSync","truncateSync","unlinkSync","utimesSync","writeFileSync"];n.fsIntegration=s},23602,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.DEBUG_BUILD="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},469432,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.setHttpServerSpanRouteAttribute=function(e){let t=r.getActiveSpan();if(!t)return;let n=r.getRootSpan(t);n&&"http.server"===r.spanToJSON(n).data[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&n.setAttribute("http.route",e)}},803230,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(9597),a=e.r(513128),i=e.r(23602),s=e.r(469432),l="Express",u=[">=4.0.0 <6"],c=o.generateInstrumentOnce(l,e=>new p(e));class p extends r.InstrumentationBase{constructor(e={}){super("sentry-express",a.SDK_VERSION,e)}init(){return new r.InstrumentationNodeModuleDefinition("express",u,e=>{try{a.patchExpressModule(e,()=>({...this.getConfig(),onRouteResolved(e){e&&s.setHttpServerSpanRouteAttribute(e)}}))}catch(e){i.DEBUG_BUILD&&a.debug.error("Failed to patch express module:",e)}return e},e=>e)}}let _=a.defineIntegration(e=>({name:l,setupOnce(){c(e)}}));n.expressErrorHandler=a.expressErrorHandler,n.ExpressInstrumentation=p,n.expressIntegration=_,n.instrumentExpress=c,n.setupExpressErrorHandler=function(e,t){a.setupExpressErrorHandler(e,t),o.ensureIsWrapped(e.use,"express")}},118805,(e,t,n)=>{var r,o;Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let a=e.r(677652),i=e.r(92405),s=e.r(216835),l=e.r(777884),u=e.r(513128),c=e.r(469432),p=u.SDK_VERSION,_="@sentry/instrumentation-fastify",T=["onRequest","preParsing","preValidation","preHandler","preSerialization","onSend","onResponse","onError"],S="hook.name",E="fastify.type",d="hook.callback.name",g="route-hook",A="hook",m="anonymous",R=Symbol("fastify otel instance"),h=Symbol("fastify otel request spans"),f=Symbol("fastify otel request context"),N=Symbol("fastify otel addhook original"),I=Symbol("fastify otel setnotfound original"),y=Symbol("fastify otel record exceptions");class b extends(o=l.InstrumentationBase,r=y,o){constructor(e={}){if(super(_,p,e),this._otelLogger=null,this._requestHook=null,this._lifecycleHook=null,this._handleInitialization=void 0,this[r]=!0,this._otelLogger=i.diag.createComponentLogger({namespace:_}),this[y]=!0,e?.recordExceptions!=null){if("boolean"!=typeof e.recordExceptions)throw TypeError("recordExceptions must be a boolean");this[y]=e.recordExceptions}"function"==typeof e?.requestHook&&(this._requestHook=e.requestHook),"function"==typeof e?.lifecycleHook&&(this._lifecycleHook=e.lifecycleHook)}enable(){return void 0===this._handleInitialization&&this.getConfig().registerOnInitialization&&(this._handleInitialization=e=>{this.plugin()(e.fastify,void 0,()=>{});let t=(e,t,n)=>{n()};t[Symbol.for("skip-override")]=!0,t[Symbol.for("fastify.display-name")]=_,e.fastify.register(t)},a.subscribe("fastify.initialization",this._handleInitialization)),super.enable()}disable(){return this._handleInitialization&&(a.unsubscribe("fastify.initialization",this._handleInitialization),this._handleInitialization=void 0),super.disable()}init(){return[]}plugin(){let e=this;return t[Symbol.for("skip-override")]=!0,t[Symbol.for("fastify.display-name")]=_,t[Symbol.for("plugin-meta")]={fastify:">=4.0.0 <6",name:_},t;function t(t,n,r){function o(e,t,n,r){let o=e[h];null!=o&&(t.statusCode>=500&&o.setStatus({code:i.SpanStatusCode.ERROR}),o.setAttributes({[s.ATTR_HTTP_RESPONSE_STATUS_CODE]:t.statusCode}),o.end()),e[h]=null,r(null,n)}function a(t,n,r,o){let a=t[h];null!=a&&(a.setStatus({code:i.SpanStatusCode.ERROR,message:r.message}),!1!==e[y]&&a.recordException(r)),o()}function l(e,t,n={}){return function(...r){let o=this[R],a=function(e){for(let t of e)if(t?.routeOptions&&t.url&&t.method)return t;return null}(r);if(null===a)return o._otelLogger.debug(`Ignoring route instrumentation because ${t} was called without a Fastify request argument`),e.call(this,...r);if(!1===o.isEnabled()||a.routeOptions.config?.otel===!1)return o._otelLogger.debug(`Ignoring route instrumentation ${a.routeOptions.method} ${a.routeOptions.url} because it is disabled`),e.call(this,...r);let s=a[f]??i.context.active(),l=e.name?.length>0?e.name:this.pluginName??m,u=o.tracer.startSpan(`${t} - ${l}`,{attributes:n},s);if(null!=o._lifecycleHook)try{o._lifecycleHook(u,{hookName:t,request:a,handler:l})}catch(e){o._otelLogger.error({err:e},"Execution of lifecycleHook failed")}return i.context.with(i.trace.setSpan(s,u),function(){try{let t=e.call(this,...r);if("function"==typeof t?.then)return t.then(e=>(u.end(),e),e=>(u.setStatus({code:i.SpanStatusCode.ERROR,message:e.message}),!1!==o[y]&&u.recordException(e),u.end(),Promise.reject(e)));return u.end(),t}catch(e){throw u.setStatus({code:i.SpanStatusCode.ERROR,message:e.message}),!1!==o[y]&&u.recordException(e),u.end(),e}},this)}}t.decorate(R,e),t.decorate(N,t.addHook),t.decorate(I,t.setNotFoundHandler),t.decorateRequest("opentelemetry",function(){let t=this[f],n=this[h];return{enabled:this.routeOptions.config?.otel!==!1,span:n,tracer:e.tracer,context:t,inject:(e,n)=>i.propagation.inject(t,e,n),extract:(e,n)=>i.propagation.extract(t,e,n)}}),t.decorateRequest(h,null),t.decorateRequest(f,null),t.addHook("onRoute",function(t){if(t.config?.otel===!1)return void e._otelLogger.debug(`Ignoring route instrumentation ${t.method} ${t.url} because it is disabled`);for(let e of T)if(null!=t[e]){let n=t[e];if("function"==typeof n)t[e]=l(n,e,{[S]:`${this.pluginName} - route -> ${e}`,[E]:g,[s.ATTR_HTTP_ROUTE]:t.url,[d]:n.name?.length>0?n.name:m});else if(Array.isArray(n)){let r=[];for(let o of n)r.push(l(o,e,{[S]:`${this.pluginName} - route -> ${e}`,[E]:g,[s.ATTR_HTTP_ROUTE]:t.url,[d]:o.name?.length>0?o.name:m}));t[e]=r}}null!=t.onSend?t.onSend=Array.isArray(t.onSend)?[...t.onSend,o]:[t.onSend,o]:t.onSend=o,null!=t.onError?t.onError=Array.isArray(t.onError)?[...t.onError,a]:[t.onError,a]:t.onError=a,t.handler=l(t.handler,"handler",{[S]:`${this.pluginName} - route-handler`,[E]:"request-handler",[s.ATTR_HTTP_ROUTE]:t.url,[d]:t.handler.name.length>0?t.handler.name:m})}),t.addHook("onRequest",function(e,t,n){if(!1===this[R].isEnabled()||e.routeOptions.config?.otel===!1)return n();let r=i.context.active();null==i.trace.getSpan(r)&&(r=i.propagation.extract(r,e.headers)),null!=e.routeOptions.url&&c.setHttpServerSpanRouteAttribute(e.routeOptions.url);let o={"fastify.root":_,[s.ATTR_HTTP_REQUEST_METHOD]:e.method,[s.ATTR_URL_PATH]:e.url};null!=e.routeOptions.url&&(o[s.ATTR_HTTP_ROUTE]=e.routeOptions.url);let a=this[R].tracer.startSpan("request",{attributes:o},r);try{this[R]._requestHook?.(a,e)}catch(e){this[R]._otelLogger.error({err:e},"requestHook threw")}e[f]=i.trace.setSpan(r,a),e[h]=a,i.context.with(e[f],()=>{n()})}),t.addHook("onResponse",function(e,t,n){let r=e[h];null!=r&&(r.setAttributes({[s.ATTR_HTTP_RESPONSE_STATUS_CODE]:t.statusCode}),r.end()),e[h]=null,n()}),t.addHook=function(e,t){let n=this[N];return T.includes(e)?n.call(this,e,l(t,e,{[S]:`${this.pluginName} - ${e}`,[E]:A,[d]:t.name?.length>0?t.name:m})):n.call(this,e,t)},t.setNotFoundHandler=function(e,t){let n=this[I];"function"==typeof e?(t=l(e,"notFoundHandler",{[S]:`${this.pluginName} - not-found-handler`,[E]:A,[d]:e.name?.length>0?e.name:m}),n.call(this,t)):(null!=e.preValidation&&(e.preValidation=l(e.preValidation,"notFoundHandler - preValidation",{[S]:`${this.pluginName} - not-found-handler - preValidation`,[E]:A,[d]:e.preValidation.name?.length>0?e.preValidation.name:m})),null!=e.preHandler&&(e.preHandler=l(e.preHandler,"notFoundHandler - preHandler",{[S]:`${this.pluginName} - not-found-handler - preHandler`,[E]:A,[d]:e.preHandler.name?.length>0?e.preHandler.name:m})),t=l(t,"notFoundHandler",{[S]:`${this.pluginName} - not-found-handler`,[E]:A,[d]:t.name?.length>0?t.name:m}),n.call(this,e,t))},r()}}}n.FastifyOtelInstrumentation=b},613357,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o,a,i=((r=i||{}).FASTIFY_NAME="fastify.name",r.FASTIFY_TYPE="fastify.type",r.HOOK_NAME="hook.name",r.PLUGIN_NAME="plugin.name",r),s=((o=s||{}).MIDDLEWARE="middleware",o.REQUEST_HANDLER="request_handler",o),l=((a=l||{}).MIDDLEWARE="middleware",a.REQUEST_HANDLER="request handler",a);n.AttributeNames=i,n.FastifyNames=l,n.FastifyTypes=s},18183,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.spanRequestSymbol=Symbol("opentelemetry.instrumentation.fastify.request_active_span")},300221,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(18183);function a(e){return"object"==typeof e&&e&&"function"==typeof Object.getOwnPropertyDescriptor(e,"then")?.value||!1}n.endSpan=function(e,t){let n=e[o.spanRequestSymbol]||[];n.length&&(n.forEach(e=>{t&&(e.setStatus({code:r.SpanStatusCode.ERROR,message:t.message}),e.recordException(t)),e.end()}),delete e[o.spanRequestSymbol])},n.safeExecuteInTheMiddleMaybePromise=function(e,t,n){let r,o;try{o=e(),a(o)&&o.then(e=>t(void 0,e),e=>t(e))}catch(e){r=e}finally{if(!a(o)&&(t(r,o),r&&1))throw r;return o}},n.startSpan=function(e,t,n,r={}){let a=t.startSpan(n,{attributes:r}),i=e[o.spanRequestSymbol]||[];return i.push(a),Object.defineProperty(e,o.spanRequestSymbol,{enumerable:!1,configurable:!0,value:i}),a}},910508,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(216835),i=e.r(513128),s=e.r(469432),l=e.r(613357),u=e.r(300221),c="anonymous",p=new Set(["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError"]);class _ extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-fastify-v3","0.1.0",e)}init(){return[new o.InstrumentationNodeModuleDefinition("fastify",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_hookOnRequest(){let e=this;return function(t,n,r){if(!e.isEnabled())return r();e._wrap(n,"send",e._patchSend());let o=t.routeOptions?t.routeOptions.url:t.routerPath;o&&s.setHttpServerSpanRouteAttribute(o);let a=t.method||"GET";i.getIsolationScope().setTransactionName(`${a} ${o}`),r()}}_wrapHandler(e,t,n,o){let a=this;return this._diag.debug("Patching fastify route.handler function"),function(...i){if(!a.isEnabled())return n.apply(this,i);let s=n.name||e||c,p=`${l.FastifyNames.MIDDLEWARE} - ${s}`,_=i[1],T=u.startSpan(_,a.tracer,p,{[l.AttributeNames.FASTIFY_TYPE]:l.FastifyTypes.MIDDLEWARE,[l.AttributeNames.PLUGIN_NAME]:e,[l.AttributeNames.HOOK_NAME]:t}),S=o&&i[i.length-1];return S&&(i[i.length-1]=function(...e){u.endSpan(_),S.apply(this,e)}),r.context.with(r.trace.setSpan(r.context.active(),T),()=>u.safeExecuteInTheMiddleMaybePromise(()=>n.apply(this,i),e=>{e instanceof Error&&(T.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}),T.recordException(e)),o||u.endSpan(_)}))}}_wrapAddHook(){let e=this;return this._diag.debug("Patching fastify server.addHook function"),function(t){return function(...n){let r=n[0],o=n[1],a=this.pluginName;if(!p.has(r))return t.apply(this,n);let i="function"==typeof n[n.length-1]&&"AsyncFunction"!==o.constructor.name;return t.apply(this,[r,e._wrapHandler(a,r,o,i)])}}}_patchConstructor(e){let t=this;function n(...r){let o,a=e.fastify.apply(this,r);return a.addHook("onRequest",t._hookOnRequest()),a.addHook("preHandler",t._hookPreHandler()),(o=i.getClient())&&o.on("spanStart",e=>{T(e)}),t._wrap(a,"addHook",t._wrapAddHook()),a}return void 0!==e.errorCodes&&(n.errorCodes=e.errorCodes),n.fastify=n,n.default=n,n}_patchSend(){let e=this;return this._diag.debug("Patching fastify reply.send function"),function(t){return function(...n){let r=n[0];return e.isEnabled()?o.safeExecuteInTheMiddle(()=>t.apply(this,n),e=>{!e&&r instanceof Error&&(e=r),u.endSpan(this,e)}):t.apply(this,n)}}}_hookPreHandler(){let e=this;return this._diag.debug("Patching fastify preHandler function"),function(t,n,i){if(!e.isEnabled())return i();let s=t.routeOptions?.handler||t.context?.handler,p=s?.name.startsWith("bound ")?s.name.substring(6):s?.name,_=`${l.FastifyNames.REQUEST_HANDLER} - ${p||this.pluginName||c}`,S={[l.AttributeNames.PLUGIN_NAME]:this.pluginName,[l.AttributeNames.FASTIFY_TYPE]:l.FastifyTypes.REQUEST_HANDLER,[a.SEMATTRS_HTTP_ROUTE]:t.routeOptions?t.routeOptions.url:t.routerPath};p&&(S[l.AttributeNames.FASTIFY_NAME]=p);let E=u.startSpan(n,e.tracer,_,S);T(E);let{requestHook:d}=e.getConfig();return d&&o.safeExecuteInTheMiddle(()=>d(E,{request:t}),t=>{t&&e._diag.error("request hook failed",t)},!0),r.context.with(r.trace.setSpan(r.context.active(),E),()=>{i()})}}}function T(e){let t=i.spanToJSON(e).data,n=t["fastify.type"];if(t[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!n)return;e.setAttributes({[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.fastify",[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${n}.fastify`});let r=t["fastify.name"]||t["plugin.name"]||t["hook.name"];if("string"==typeof r){let t=r.replace(/^fastify -> /,"").replace(/^@fastify\/otel -> /,"");e.updateName(t)}}n.FastifyInstrumentationV3=_},413873,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(677652),o=e.r(118805),a=e.r(513128),i=e.r(9597),s=e.r(23602),l=e.r(910508),u="Fastify",c=i.generateInstrumentOnce(`${u}.v3`,()=>new l.FastifyInstrumentationV3);function p(){let e=a.getClient();if(e)return e.getIntegrationByName(u)}function _(e,t,n,r){let o=p()?.getShouldHandleError()||S;if("diagnostics-channel"===r&&(this.diagnosticsChannelExists=!0),this.diagnosticsChannelExists&&"onError-hook"===r){s.DEBUG_BUILD&&a.debug.warn("Fastify error handler was already registered via diagnostics channel.","You can safely remove `setupFastifyErrorHandler` call and set `shouldHandleError` on the integration options.");return}o(e,t,n)&&a.captureException(e,{mechanism:{handled:!1,type:"auto.function.fastify"}})}let T=i.generateInstrumentOnce(`${u}.v5`,()=>{let e=new o.FastifyOtelInstrumentation,t=e.plugin();return r.subscribe("fastify.initialization",e=>{let n=e.fastify;n?.register(t).after(e=>{let t;e?s.DEBUG_BUILD&&a.debug.error("Failed to setup Fastify instrumentation",e):((t=a.getClient())&&t.on("spanStart",e=>{E(e)}),n&&n.addHook("onRequest",async(e,t)=>{if(e.opentelemetry){let{span:t}=e.opentelemetry();t&&E(t)}let n=e.routeOptions?.url,r=e.method||"GET";a.getIsolationScope().setTransactionName(`${r} ${n}`)}))})}),r.subscribe("tracing:fastify.request.handler:error",e=>{let{error:t,request:n,reply:r}=e;_.call(_,t,n,r,"diagnostics-channel")}),e});function S(e,t,n){let r=n.statusCode;return r>=500||r<=299}function E(e){let t=a.spanToJSON(e),n=t.description,r=t.data,o=r["fastify.type"],i="hook"===o,s=o===n?.startsWith("handler -"),l="request"===n||"request-handler"===o;if(r[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!s&&!l&&!i)return;e.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.fastify",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${i?"hook":s?"middleware":l?"request_handler":"<unknown>"}.fastify`});let u=r["fastify.name"]||r["plugin.name"]||r["hook.name"];if("string"==typeof u){let t=u.replace(/^fastify -> /,"").replace(/^@fastify\/otel -> /,"").replace(/^@sentry\/instrumentation-fastify -> /,"");e.updateName(t)}}n.fastifyIntegration=a.defineIntegration((e={})=>(({shouldHandleError:e})=>{let t;return{name:u,setupOnce(){t=e||S,c(),T()},getShouldHandleError:()=>t,setShouldHandleError(e){t=e}}})(e)),n.instrumentFastify=T,n.instrumentFastifyV3=c,n.setupFastifyErrorHandler=function(e,t){t?.shouldHandleError&&p()?.setShouldHandleError(t.shouldHandleError);let n=Object.assign(function(e,t,n){e.addHook("onError",async(e,t,n)=>{_.call(_,n,e,t,"onError-hook")}),n()},{[Symbol.for("skip-override")]:!0,[Symbol.for("fastify.display-name")]:"sentry-fastify-error-handler"});e.register(n)}},102335,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(814747);n.InstrumentationNodeModuleFile=class{constructor(e,t,n,o){this.name=r.normalize(e),this.supportedVersions=t,this.patch=n,this.unpatch=o}}},860547,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o,a,i=((r=i||{}).QUERY="query",r.MUTATION="mutation",r.SUBSCRIPTION="subscription",r),s=((o=s||{}).SOF="<SOF>",o.EOF="<EOF>",o.BANG="!",o.DOLLAR="$",o.AMP="&",o.PAREN_L="(",o.PAREN_R=")",o.SPREAD="...",o.COLON=":",o.EQUALS="=",o.AT="@",o.BRACKET_L="[",o.BRACKET_R="]",o.BRACE_L="{",o.PIPE="|",o.BRACE_R="}",o.NAME="Name",o.INT="Int",o.FLOAT="Float",o.STRING="String",o.BLOCK_STRING="BlockString",o.COMMENT="Comment",o),l=((a=l||{}).EXECUTE="graphql.execute",a.PARSE="graphql.parse",a.RESOLVE="graphql.resolve",a.VALIDATE="graphql.validate",a.SCHEMA_VALIDATE="graphql.validateSchema",a.SCHEMA_PARSE="graphql.parseSchema",a);n.AllowedOperationTypes=i,n.SpanNames=l,n.TokenKind=s},558995,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).SOURCE="graphql.source",r.FIELD_NAME="graphql.field.name",r.FIELD_PATH="graphql.field.path",r.FIELD_TYPE="graphql.field.type",r.PARENT_NAME="graphql.parent.name",r.OPERATION_TYPE="graphql.operation.type",r.OPERATION_NAME="graphql.operation.name",r.VARIABLES="graphql.variables.",r.ERROR_VALIDATION_NAME="graphql.validation.error",r);n.AttributeNames=o},155990,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=Symbol.for("opentelemetry.patched");n.OTEL_GRAPHQL_DATA_SYMBOL=Symbol.for("opentelemetry.graphql_data"),n.OTEL_PATCHED_SYMBOL=r},108082,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.OPERATION_NOT_SUPPORTED="Operation$operationName$not supported"},407039,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(860547),a=e.r(558995),i=e.r(155990),s=Object.values(o.AllowedOperationTypes),l=e=>"function"==typeof e?.then;function u(e,t,n,r,o){let i=E(t,n,r,o);e.setAttribute(a.AttributeNames.SOURCE,i)}function c(e,t){return e[i.OTEL_GRAPHQL_DATA_SYMBOL].fields[t.join(".")]}function p(e,t){for(let n=t.length-1;n>0;n--){let r=c(e,t.slice(0,n));if(r)return r.span}return _(e)}function _(e){return e[i.OTEL_GRAPHQL_DATA_SYMBOL].span}function T(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}let S=[o.TokenKind.FLOAT,o.TokenKind.STRING,o.TokenKind.INT,o.TokenKind.BLOCK_STRING];function E(e,t=!1,n,r){let a="";if(e?.startToken){let i="number"==typeof n?n:e.start,s="number"==typeof r?r:e.end,l=e.startToken.next,u=1;for(;l;){if(l.start<i||l.end>s){l=l.next,u=l?.line;continue}let e=l.value||l.kind,n="";(!t&&S.indexOf(l.kind)>=0&&(e="*"),l.kind===o.TokenKind.STRING&&(e=`"${e}"`),l.kind===o.TokenKind.EOF&&(e=""),l.line>u)?(a+=T("\n",l.line-u),u=l.line,n=T(" ",l.column-1)):l.line===l.prev?.line&&(n=T(" ",l.start-(l.prev?.end||0))),a+=n+e,l&&(l=l.next)}}return a}let d=(e,t,n)=>{n&&(e.recordException(t),e.setStatus({code:r.SpanStatusCode.ERROR,message:t.message}),e.end())},g=(e,t)=>{t&&e.end()};function A(e,t,n,s=!1){if(T[i.OTEL_PATCHED_SYMBOL]||"function"!=typeof n)return n;function T(T,S,E,A){let m;if(!n)return;let R=t();if(R.ignoreTrivialResolveSpans&&s&&("object"==typeof T&&null!==T||"function"==typeof T)&&"function"!=typeof T[A.fieldName]||!E[i.OTEL_GRAPHQL_DATA_SYMBOL])return n.call(this,T,S,E,A);let h=function(e,t){let n=[],r=t;for(;r;){let t=r.key;e&&"number"==typeof t&&(t="*"),n.push(String(t)),r=r.prev}return n.reverse()}(R.mergeItems,A&&A.path),f=h.filter(e=>"string"==typeof e).length,N=!1;if(R.depth>=0&&R.depth<f)m=p(E,h);else{let{field:n,spanAdded:s}=function(e,t,n,s,l){var T,S,E,d,g,A,m,R,h;let f,N,I,y,b=c(n,l);if(b)return{field:b,spanAdded:!1};let O=t().flatResolveSpans?_(n):p(n,l);return b={span:(T=e,S=t,E=n,d=s,g=l,A=O,f={[a.AttributeNames.FIELD_NAME]:d.fieldName,[a.AttributeNames.FIELD_PATH]:g.join("."),[a.AttributeNames.FIELD_TYPE]:d.returnType.toString(),[a.AttributeNames.PARENT_NAME]:d.parentType.name},N=T.startSpan(`${o.SpanNames.RESOLVE} ${f[a.AttributeNames.FIELD_PATH]}`,{attributes:f},A?r.trace.setSpan(r.context.active(),A):void 0),I=E[i.OTEL_GRAPHQL_DATA_SYMBOL].source,(y=d.fieldNodes.find(e=>"Field"===e.kind))&&u(N,I.loc,S().allowValues,y.loc?.start,y.loc?.end),N)},m=n,R=l,h=b,m[i.OTEL_GRAPHQL_DATA_SYMBOL].fields[R.join(".")]=h,{field:b,spanAdded:!0}}(e,t,E,A,h);m=n.span,N=s}return r.context.with(r.trace.setSpan(r.context.active(),m),()=>{try{let e=n.call(this,T,S,E,A);if(l(e))return e.then(e=>(g(m,N),e),e=>{throw d(m,e,N),e});return g(m,N),e}catch(e){throw d(m,e,N),e}})}return T[i.OTEL_PATCHED_SYMBOL]=!0,T}n.addInputVariableAttributes=function(e,t){Object.entries(t).forEach(([t,n])=>{!function e(t,n,r){Array.isArray(r)?r.forEach((r,o)=>{e(t,`${n}.${o}`,r)}):r instanceof Object?Object.entries(r).forEach(([r,o])=>{e(t,`${n}.${r}`,o)}):t.setAttribute(`${a.AttributeNames.VARIABLES}${String(n)}`,r)}(e,t,n)})},n.addSpanSource=u,n.endSpan=function(e,t){t&&e.recordException(t),e.end()},n.getOperation=function(e,t){if(e&&Array.isArray(e.definitions))if(t)return e.definitions.filter(e=>-1!==s.indexOf(e?.operation)).find(e=>t===e?.name?.value);else return e.definitions.find(e=>-1!==s.indexOf(e?.operation))},n.getSourceFromLocation=E,n.isPromise=l,n.wrapFieldResolver=A,n.wrapFields=function e(t,n,r){if(!t||t[i.OTEL_PATCHED_SYMBOL])return;let o=t.getFields();t[i.OTEL_PATCHED_SYMBOL]=!0,Object.keys(o).forEach(t=>{let a=o[t];if(a&&(a.resolve&&(a.resolve=A(n,r,a.resolve)),a.type))for(let t of function e(t){var n,r;return"ofType"in t?e(t.ofType):"getTypes"in(n=t)&&"function"==typeof n.getTypes?t.getTypes():"getFields"in(r=t)&&"function"==typeof r.getFields?[t]:[]}(a.type))e(t,n,r)})}},71562,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(102335),i=e.r(860547),s=e.r(558995),l=e.r(155990),u=e.r(108082),c=e.r(407039),p=e.r(513128),_={mergeItems:!1,depth:-1,allowValues:!1,ignoreResolveSpans:!1},T=[">=14.0.0 <17"];class S extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-graphql",p.SDK_VERSION,{..._,...e})}setConfig(e={}){super.setConfig({..._,...e})}init(){let e=new o.InstrumentationNodeModuleDefinition("graphql",T);return e.files.push(this._addPatchingExecute()),e.files.push(this._addPatchingParser()),e.files.push(this._addPatchingValidate()),e}_addPatchingExecute(){return new a.InstrumentationNodeModuleFile("graphql/execution/execute.js",T,e=>(o.isWrapped(e.execute)&&this._unwrap(e,"execute"),this._wrap(e,"execute",this._patchExecute(e.defaultFieldResolver)),e),e=>{e&&this._unwrap(e,"execute")})}_addPatchingParser(){return new a.InstrumentationNodeModuleFile("graphql/language/parser.js",T,e=>(o.isWrapped(e.parse)&&this._unwrap(e,"parse"),this._wrap(e,"parse",this._patchParse()),e),e=>{e&&this._unwrap(e,"parse")})}_addPatchingValidate(){return new a.InstrumentationNodeModuleFile("graphql/validation/validate.js",T,e=>(o.isWrapped(e.validate)&&this._unwrap(e,"validate"),this._wrap(e,"validate",this._patchValidate()),e),e=>{e&&this._unwrap(e,"validate")})}_patchExecute(e){let t=this;return function(n){return function(){let a;if(arguments.length>=2){let n=arguments;a=t._wrapExecuteArgs(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],e)}else{let n=arguments[0];a=t._wrapExecuteArgs(n.schema,n.document,n.rootValue,n.contextValue,n.variableValues,n.operationName,n.fieldResolver,n.typeResolver,e)}let i=c.getOperation(a.document,a.operationName),s=t._createExecuteSpan(i,a);return a.contextValue[l.OTEL_GRAPHQL_DATA_SYMBOL]={source:a.document?a.document||a.document[l.OTEL_GRAPHQL_DATA_SYMBOL]:void 0,span:s,fields:{}},r.context.with(r.trace.setSpan(r.context.active(),s),()=>o.safeExecuteInTheMiddle(()=>n.apply(this,[a]),(e,n)=>{t._handleExecutionResult(s,e,n)}))}}}_handleExecutionResult(e,t,n){let r=this.getConfig();if(void 0===n||t)return void c.endSpan(e,t);if(c.isPromise(n))n.then(t=>{"function"!=typeof r.responseHook?c.endSpan(e):this._executeResponseHook(e,t)},t=>{c.endSpan(e,t)});else{if("function"!=typeof r.responseHook)return void c.endSpan(e);this._executeResponseHook(e,n)}}_executeResponseHook(e,t){let{responseHook:n}=this.getConfig();n&&o.safeExecuteInTheMiddle(()=>{n(e,t)},t=>{t&&this._diag.error("Error running response hook",t),c.endSpan(e,void 0)},!0)}_patchParse(){let e=this;return function(t){return function(n,r){return e._parse(this,t,n,r)}}}_patchValidate(){let e=this;return function(t){return function(n,r,o,a,i){return e._validate(this,t,n,r,o,i,a)}}}_parse(e,t,n,a){let s=this.getConfig(),l=this.tracer.startSpan(i.SpanNames.PARSE);return r.context.with(r.trace.setSpan(r.context.active(),l),()=>o.safeExecuteInTheMiddle(()=>t.call(e,n,a),(e,t)=>{t&&(c.getOperation(t)?t.loc&&c.addSpanSource(l,t.loc,s.allowValues):l.updateName(i.SpanNames.SCHEMA_PARSE)),c.endSpan(l,e)}))}_validate(e,t,n,a,l,u,p){let _=this.tracer.startSpan(i.SpanNames.VALIDATE,{});return r.context.with(r.trace.setSpan(r.context.active(),_),()=>o.safeExecuteInTheMiddle(()=>t.call(e,n,a,l,p,u),(e,t)=>{a.loc||_.updateName(i.SpanNames.SCHEMA_VALIDATE),t&&t.length&&_.recordException({name:s.AttributeNames.ERROR_VALIDATION_NAME,message:JSON.stringify(t)}),c.endSpan(_,e)}))}_createExecuteSpan(e,t){let n=this.getConfig(),r=this.tracer.startSpan(i.SpanNames.EXECUTE,{});if(e){let{operation:t,name:n}=e;r.setAttribute(s.AttributeNames.OPERATION_TYPE,t);let o=n?.value;o?(r.setAttribute(s.AttributeNames.OPERATION_NAME,o),r.updateName(`${t} ${o}`)):r.updateName(t)}else{let e=" ";t.operationName&&(e=` "${t.operationName}" `),e=u.OPERATION_NOT_SUPPORTED.replace("$operationName$",e),r.setAttribute(s.AttributeNames.OPERATION_NAME,e)}return t.document?.loc&&c.addSpanSource(r,t.document.loc,n.allowValues),t.variableValues&&n.allowValues&&c.addInputVariableAttributes(r,t.variableValues),r}_wrapExecuteArgs(e,t,n,r,o,a,i,s,u){if(r||(r={}),r[l.OTEL_GRAPHQL_DATA_SYMBOL]||this.getConfig().ignoreResolveSpans)return{schema:e,document:t,rootValue:n,contextValue:r,variableValues:o,operationName:a,fieldResolver:i,typeResolver:s};let p=null==i,_=i??u;return i=c.wrapFieldResolver(this.tracer,()=>this.getConfig(),_,p),e&&(c.wrapFields(e.getQueryType(),this.tracer,()=>this.getConfig()),c.wrapFields(e.getMutationType(),this.tracer,()=>this.getConfig())),{schema:e,document:t,rootValue:n,contextValue:r,variableValues:o,operationName:a,fieldResolver:i,typeResolver:s}}}n.GraphQLInstrumentation=S},185789,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(71562),a=e.r(513128),i=e.r(9597),s=e.r(110516),l="Graphql",u=i.generateInstrumentOnce(l,o.GraphQLInstrumentation,e=>{let t=c(e);return{...t,responseHook(e,n){i.addOriginToSpan(e,"auto.graphql.otel.graphql"),n.errors?.length&&!a.spanToJSON(e).status&&e.setStatus({code:r.SpanStatusCode.ERROR});let o=a.spanToJSON(e).data,l=o["graphql.operation.type"],u=o["graphql.operation.name"];if(t.useOperationNameForRootSpan&&l){let t=a.getRootSpan(e),n=a.spanToJSON(t).data[s.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION]||[],r=u?`${l} ${u}`:`${l}`;Array.isArray(n)?(n.push(r),t.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,n)):"string"==typeof n?t.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,[n,r]):t.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,r),a.spanToJSON(t).data["original-description"]||t.setAttribute("original-description",a.spanToJSON(t).description),t.updateName(`${a.spanToJSON(t).data["original-description"]} (${function(e){if(Array.isArray(e)){let t=e.slice().sort();return t.length<=5?t.join(", "):`${t.slice(0,5).join(", ")}, +${t.length-5}`}return`${e}`}(n)})`)}}}});function c(e){return{ignoreResolveSpans:!0,ignoreTrivialResolveSpans:!0,useOperationNameForRootSpan:!0,...e}}n.graphqlIntegration=a.defineIntegration((e={})=>({name:l,setupOnce(){u(c(e))}})),n.instrumentGraphql=u},36931,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.EVENT_LISTENERS_SET=Symbol("opentelemetry.instrumentation.kafkajs.eventListenersSet")},546150,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.bufferTextMapGetter={get(e,t){if(e){for(let n of Object.keys(e))if(n===t||n.toLowerCase()===t)return e[n]?.toString()}},keys:e=>e?Object.keys(e):[]}},305431,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_MESSAGING_BATCH_MESSAGE_COUNT="messaging.batch.message_count",n.ATTR_MESSAGING_DESTINATION_NAME="messaging.destination.name",n.ATTR_MESSAGING_DESTINATION_PARTITION_ID="messaging.destination.partition.id",n.ATTR_MESSAGING_KAFKA_MESSAGE_KEY="messaging.kafka.message.key",n.ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE="messaging.kafka.message.tombstone",n.ATTR_MESSAGING_KAFKA_OFFSET="messaging.kafka.offset",n.ATTR_MESSAGING_OPERATION_NAME="messaging.operation.name",n.ATTR_MESSAGING_OPERATION_TYPE="messaging.operation.type",n.ATTR_MESSAGING_SYSTEM="messaging.system",n.MESSAGING_OPERATION_TYPE_VALUE_PROCESS="process",n.MESSAGING_OPERATION_TYPE_VALUE_RECEIVE="receive",n.MESSAGING_OPERATION_TYPE_VALUE_SEND="send",n.MESSAGING_SYSTEM_VALUE_KAFKA="kafka",n.METRIC_MESSAGING_CLIENT_CONSUMED_MESSAGES="messaging.client.consumed.messages",n.METRIC_MESSAGING_CLIENT_OPERATION_DURATION="messaging.client.operation.duration",n.METRIC_MESSAGING_CLIENT_SENT_MESSAGES="messaging.client.sent.messages",n.METRIC_MESSAGING_PROCESS_DURATION="messaging.process.duration"},416091,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(216835),i=e.r(36931),s=e.r(546150),l=e.r(305431),u=e.r(513128);function c(e,t,n){return r=>{e.add(t,{...n,...r?{[a.ATTR_ERROR_TYPE]:r}:{}})}}function p(e,t,n){return r=>{e.record((Date.now()-t)/1e3,{...n,...r?{[a.ATTR_ERROR_TYPE]:r}:{}})}}let _=[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10];class T extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-kafkajs",u.SDK_VERSION,e)}_updateMetricInstruments(){this._clientDuration=this.meter.createHistogram(l.METRIC_MESSAGING_CLIENT_OPERATION_DURATION,{advice:{explicitBucketBoundaries:_}}),this._sentMessages=this.meter.createCounter(l.METRIC_MESSAGING_CLIENT_SENT_MESSAGES),this._consumedMessages=this.meter.createCounter(l.METRIC_MESSAGING_CLIENT_CONSUMED_MESSAGES),this._processDuration=this.meter.createHistogram(l.METRIC_MESSAGING_PROCESS_DURATION,{advice:{explicitBucketBoundaries:_}})}init(){let e=e=>{o.isWrapped(e?.Kafka?.prototype.producer)&&this._unwrap(e.Kafka.prototype,"producer"),o.isWrapped(e?.Kafka?.prototype.consumer)&&this._unwrap(e.Kafka.prototype,"consumer")};return new o.InstrumentationNodeModuleDefinition("kafkajs",[">=0.3.0 <3"],t=>(e(t),this._wrap(t?.Kafka?.prototype,"producer",this._getProducerPatch()),this._wrap(t?.Kafka?.prototype,"consumer",this._getConsumerPatch()),t),e)}_getConsumerPatch(){let e=this;return t=>function(...n){let r=t.apply(this,n);return o.isWrapped(r.run)&&e._unwrap(r,"run"),e._wrap(r,"run",e._getConsumerRunPatch()),e._setKafkaEventListeners(r),r}}_setKafkaEventListeners(e){e[i.EVENT_LISTENERS_SET]||(e.events?.REQUEST&&e.on(e.events.REQUEST,this._recordClientDurationMetric.bind(this)),e[i.EVENT_LISTENERS_SET]=!0)}_recordClientDurationMetric(e){let[t="",n="0"]=e.payload.broker.split(":");this._clientDuration.record(e.payload.duration/1e3,{[l.ATTR_MESSAGING_SYSTEM]:l.MESSAGING_SYSTEM_VALUE_KAFKA,[l.ATTR_MESSAGING_OPERATION_NAME]:`${e.payload.apiName}`,[a.ATTR_SERVER_ADDRESS]:t,[a.ATTR_SERVER_PORT]:Number.parseInt(n,10)})}_getProducerPatch(){let e=this;return t=>function(...n){let r=t.apply(this,n);return o.isWrapped(r.sendBatch)&&e._unwrap(r,"sendBatch"),e._wrap(r,"sendBatch",e._getSendBatchPatch()),o.isWrapped(r.send)&&e._unwrap(r,"send"),e._wrap(r,"send",e._getSendPatch()),o.isWrapped(r.transaction)&&e._unwrap(r,"transaction"),e._wrap(r,"transaction",e._getProducerTransactionPatch()),e._setKafkaEventListeners(r),r}}_getConsumerRunPatch(){let e=this;return t=>function(...n){let r=n[0];return r?.eachMessage&&(o.isWrapped(r.eachMessage)&&e._unwrap(r,"eachMessage"),e._wrap(r,"eachMessage",e._getConsumerEachMessagePatch())),r?.eachBatch&&(o.isWrapped(r.eachBatch)&&e._unwrap(r,"eachBatch"),e._wrap(r,"eachBatch",e._getConsumerEachBatchPatch())),t.call(this,r)}}_getConsumerEachMessagePatch(){let e=this;return t=>function(...n){let o=n[0],a=r.propagation.extract(r.ROOT_CONTEXT,o.message.headers,s.bufferTextMapGetter),i=e._startConsumerSpan({topic:o.topic,message:o.message,operationType:l.MESSAGING_OPERATION_TYPE_VALUE_PROCESS,ctx:a,attributes:{[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(o.partition)}}),u=[p(e._processDuration,Date.now(),{[l.ATTR_MESSAGING_SYSTEM]:l.MESSAGING_SYSTEM_VALUE_KAFKA,[l.ATTR_MESSAGING_OPERATION_NAME]:"process",[l.ATTR_MESSAGING_DESTINATION_NAME]:o.topic,[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(o.partition)}),c(e._consumedMessages,1,{[l.ATTR_MESSAGING_SYSTEM]:l.MESSAGING_SYSTEM_VALUE_KAFKA,[l.ATTR_MESSAGING_OPERATION_NAME]:"process",[l.ATTR_MESSAGING_DESTINATION_NAME]:o.topic,[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(o.partition)})],_=r.context.with(r.trace.setSpan(a,i),()=>t.apply(this,n));return e._endSpansOnPromise([i],u,_)}}_getConsumerEachBatchPatch(){return e=>{let t=this;return function(...n){let o=n[0],a=t._startConsumerSpan({topic:o.batch.topic,message:void 0,operationType:l.MESSAGING_OPERATION_TYPE_VALUE_RECEIVE,ctx:r.ROOT_CONTEXT,attributes:{[l.ATTR_MESSAGING_BATCH_MESSAGE_COUNT]:o.batch.messages.length,[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(o.batch.partition)}});return r.context.with(r.trace.setSpan(r.context.active(),a),()=>{let i=Date.now(),u=[],_=[c(t._consumedMessages,o.batch.messages.length,{[l.ATTR_MESSAGING_SYSTEM]:l.MESSAGING_SYSTEM_VALUE_KAFKA,[l.ATTR_MESSAGING_OPERATION_NAME]:"process",[l.ATTR_MESSAGING_DESTINATION_NAME]:o.batch.topic,[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(o.batch.partition)})];o.batch.messages.forEach(e=>{let n,a=r.propagation.extract(r.ROOT_CONTEXT,e.headers,s.bufferTextMapGetter),c=r.trace.getSpan(a)?.spanContext();c&&(n={context:c}),u.push(t._startConsumerSpan({topic:o.batch.topic,message:e,operationType:l.MESSAGING_OPERATION_TYPE_VALUE_PROCESS,link:n,attributes:{[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(o.batch.partition)}})),_.push(p(t._processDuration,i,{[l.ATTR_MESSAGING_SYSTEM]:l.MESSAGING_SYSTEM_VALUE_KAFKA,[l.ATTR_MESSAGING_OPERATION_NAME]:"process",[l.ATTR_MESSAGING_DESTINATION_NAME]:o.batch.topic,[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(o.batch.partition)}))});let T=e.apply(this,n);return u.unshift(a),t._endSpansOnPromise(u,_,T)})}}}_getProducerTransactionPatch(){let e=this;return t=>function(...n){let o=e.tracer.startSpan("transaction"),a=t.apply(this,n);return a.then(t=>{let n=t.send;t.send=function(...t){return r.context.with(r.trace.setSpan(r.context.active(),o),()=>e._getSendPatch()(n).apply(this,t).catch(e=>{throw o.setStatus({code:r.SpanStatusCode.ERROR,message:e?.message}),o.recordException(e),e}))};let a=t.sendBatch;t.sendBatch=function(...t){return r.context.with(r.trace.setSpan(r.context.active(),o),()=>e._getSendBatchPatch()(a).apply(this,t).catch(e=>{throw o.setStatus({code:r.SpanStatusCode.ERROR,message:e?.message}),o.recordException(e),e}))};let i=t.commit;t.commit=function(...t){let n=i.apply(this,t).then(()=>{o.setStatus({code:r.SpanStatusCode.OK})});return e._endSpansOnPromise([o],[],n)};let s=t.abort;t.abort=function(...t){let n=s.apply(this,t);return e._endSpansOnPromise([o],[],n)}}).catch(e=>{o.setStatus({code:r.SpanStatusCode.ERROR,message:e?.message}),o.recordException(e),o.end()}),a}}_getSendBatchPatch(){let e=this;return t=>function(...n){let r=n[0].topicMessages||[],o=[],a=[];r.forEach(t=>{t.messages.forEach(n=>{o.push(e._startProducerSpan(t.topic,n)),a.push(c(e._sentMessages,1,{[l.ATTR_MESSAGING_SYSTEM]:l.MESSAGING_SYSTEM_VALUE_KAFKA,[l.ATTR_MESSAGING_OPERATION_NAME]:"send",[l.ATTR_MESSAGING_DESTINATION_NAME]:t.topic,...void 0!==n.partition?{[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(n.partition)}:{}}))})});let i=t.apply(this,n);return e._endSpansOnPromise(o,a,i)}}_getSendPatch(){let e=this;return t=>function(...n){let r=n[0],o=r.messages.map(t=>e._startProducerSpan(r.topic,t)),a=r.messages.map(t=>c(e._sentMessages,1,{[l.ATTR_MESSAGING_SYSTEM]:l.MESSAGING_SYSTEM_VALUE_KAFKA,[l.ATTR_MESSAGING_OPERATION_NAME]:"send",[l.ATTR_MESSAGING_DESTINATION_NAME]:r.topic,...void 0!==t.partition?{[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:String(t.partition)}:{}})),i=t.apply(this,n);return e._endSpansOnPromise(o,a,i)}}_endSpansOnPromise(e,t,n){return Promise.resolve(n).then(e=>(t.forEach(e=>e()),e)).catch(n=>{let o,i=a.ERROR_TYPE_VALUE_OTHER;throw"string"==typeof n||void 0===n?o=n:"object"==typeof n&&Object.prototype.hasOwnProperty.call(n,"message")&&(o=n.message,i=n.constructor.name),t.forEach(e=>e(i)),e.forEach(e=>{e.setAttribute(a.ATTR_ERROR_TYPE,i),e.setStatus({code:r.SpanStatusCode.ERROR,message:o})}),n}).finally(()=>{e.forEach(e=>e.end())})}_startConsumerSpan({topic:e,message:t,operationType:n,ctx:a,link:i,attributes:s}){let u=n===l.MESSAGING_OPERATION_TYPE_VALUE_RECEIVE?"poll":n,c=this.tracer.startSpan(`${u} ${e}`,{kind:n===l.MESSAGING_OPERATION_TYPE_VALUE_RECEIVE?r.SpanKind.CLIENT:r.SpanKind.CONSUMER,attributes:{...s,[l.ATTR_MESSAGING_SYSTEM]:l.MESSAGING_SYSTEM_VALUE_KAFKA,[l.ATTR_MESSAGING_DESTINATION_NAME]:e,[l.ATTR_MESSAGING_OPERATION_TYPE]:n,[l.ATTR_MESSAGING_OPERATION_NAME]:u,[l.ATTR_MESSAGING_KAFKA_MESSAGE_KEY]:t?.key?String(t.key):void 0,[l.ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE]:!!t?.key&&null===t.value||void 0,[l.ATTR_MESSAGING_KAFKA_OFFSET]:t?.offset},links:i?[i]:[]},a),{consumerHook:p}=this.getConfig();return p&&t&&o.safeExecuteInTheMiddle(()=>p(c,{topic:e,message:t}),e=>{e&&this._diag.error("consumerHook error",e)},!0),c}_startProducerSpan(e,t){let n=this.tracer.startSpan(`send ${e}`,{kind:r.SpanKind.PRODUCER,attributes:{[l.ATTR_MESSAGING_SYSTEM]:l.MESSAGING_SYSTEM_VALUE_KAFKA,[l.ATTR_MESSAGING_DESTINATION_NAME]:e,[l.ATTR_MESSAGING_KAFKA_MESSAGE_KEY]:t.key?String(t.key):void 0,[l.ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE]:!!t.key&&null===t.value||void 0,[l.ATTR_MESSAGING_DESTINATION_PARTITION_ID]:void 0!==t.partition?String(t.partition):void 0,[l.ATTR_MESSAGING_OPERATION_NAME]:"send",[l.ATTR_MESSAGING_OPERATION_TYPE]:l.MESSAGING_OPERATION_TYPE_VALUE_SEND}});t.headers=t.headers??{},r.propagation.inject(r.trace.setSpan(r.context.active(),n),t.headers);let{producerHook:a}=this.getConfig();return a&&o.safeExecuteInTheMiddle(()=>a(n,{topic:e,message:t}),e=>{e&&this._diag.error("producerHook error",e)},!0),n}}n.KafkaJsInstrumentation=T},155335,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(416091),o=e.r(513128),a=e.r(9597),i="Kafka",s=a.generateInstrumentOnce(i,()=>new r.KafkaJsInstrumentation({consumerHook(e){a.addOriginToSpan(e,"auto.kafkajs.otel.consumer")},producerHook(e){a.addOriginToSpan(e,"auto.kafkajs.otel.producer")}})),l=o.defineIntegration(()=>({name:i,setupOnce(){s()}}));n.instrumentKafka=s,n.kafkaIntegration=l},377019,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(513128);class i extends o.InstrumentationBase{constructor(){super("@sentry/instrumentation-lru-memoizer",a.SDK_VERSION,{})}init(){return[new o.InstrumentationNodeModuleDefinition("lru-memoizer",[">=1.3 <4"],e=>Object.assign(function(...t){let n=e.apply(this,t);return function(...e){let t=e.pop(),o="function"==typeof t?r.context.bind(r.context.active(),t):t;return n.apply(this,[...e,o])}},{sync:e.sync}),void 0)]}}n.LruMemoizerInstrumentation=i},934951,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(377019),o=e.r(513128),a=e.r(9597),i="LruMemoizer",s=a.generateInstrumentOnce(i,()=>new r.LruMemoizerInstrumentation),l=o.defineIntegration(()=>({name:i,setupOnce(){s()}}));n.instrumentLruMemoizer=s,n.lruMemoizerIntegration=l},574072,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_CONNECTION_STRING="db.connection_string",n.ATTR_DB_MONGODB_COLLECTION="db.mongodb.collection",n.ATTR_DB_NAME="db.name",n.ATTR_DB_OPERATION="db.operation",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_NAME_VALUE_MONGODB="mongodb",n.DB_SYSTEM_VALUE_MONGODB="mongodb",n.METRIC_DB_CLIENT_CONNECTIONS_USAGE="db.client.connections.usage"},402326,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).CREATE_INDEXES="createIndexes",r.FIND_AND_MODIFY="findAndModify",r.IS_MASTER="isMaster",r.COUNT="count",r.AGGREGATE="aggregate",r.UNKNOWN="unknown",r);n.MongodbCommandType=o},164152,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(102335),i=e.r(216835),s=e.r(574072),l=e.r(402326),u=e.r(513128),c={requireParentSpan:!0};class p extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-mongodb",u.SDK_VERSION,{...c,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=o.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=o.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...c,...e})}_updateMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter(s.METRIC_DB_CLIENT_CONNECTIONS_USAGE,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}_connCountAdd(e,t,n){this._connectionsUsage?.add(e,{"pool.name":t,state:n})}init(){let{v3PatchConnection:e,v3UnpatchConnection:t}=this._getV3ConnectionPatches(),{v4PatchConnect:n,v4UnpatchConnect:r}=this._getV4ConnectPatches(),{v4PatchConnectionCallback:i,v4PatchConnectionPromise:s,v4UnpatchConnection:l}=this._getV4ConnectionPatches(),{v4PatchConnectionPool:u,v4UnpatchConnectionPool:c}=this._getV4ConnectionPoolPatches(),{v4PatchSessions:p,v4UnpatchSessions:_}=this._getV4SessionsPatches();return[new o.InstrumentationNodeModuleDefinition("mongodb",[">=3.3.0 <4"],void 0,void 0,[new a.InstrumentationNodeModuleFile("mongodb/lib/core/wireprotocol/index.js",[">=3.3.0 <4"],e,t)]),new o.InstrumentationNodeModuleDefinition("mongodb",[">=4.0.0 <8"],void 0,void 0,[new a.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=4.0.0 <6.4"],i,l),new a.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=6.4.0 <8"],s,l),new a.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection_pool.js",[">=4.0.0 <6.4"],u,c),new a.InstrumentationNodeModuleFile("mongodb/lib/cmap/connect.js",[">=4.0.0 <8"],n,r),new a.InstrumentationNodeModuleFile("mongodb/lib/sessions.js",[">=4.0.0 <8"],p,_)])]}_getV3ConnectionPatches(){return{v3PatchConnection:e=>(o.isWrapped(e.insert)&&this._unwrap(e,"insert"),this._wrap(e,"insert",this._getV3PatchOperation("insert")),o.isWrapped(e.remove)&&this._unwrap(e,"remove"),this._wrap(e,"remove",this._getV3PatchOperation("remove")),o.isWrapped(e.update)&&this._unwrap(e,"update"),this._wrap(e,"update",this._getV3PatchOperation("update")),o.isWrapped(e.command)&&this._unwrap(e,"command"),this._wrap(e,"command",this._getV3PatchCommand()),o.isWrapped(e.query)&&this._unwrap(e,"query"),this._wrap(e,"query",this._getV3PatchFind()),o.isWrapped(e.getMore)&&this._unwrap(e,"getMore"),this._wrap(e,"getMore",this._getV3PatchCursor()),e),v3UnpatchConnection:e=>{void 0!==e&&(this._unwrap(e,"insert"),this._unwrap(e,"remove"),this._unwrap(e,"update"),this._unwrap(e,"command"),this._unwrap(e,"query"),this._unwrap(e,"getMore"))}}}_getV4SessionsPatches(){return{v4PatchSessions:e=>(o.isWrapped(e.acquire)&&this._unwrap(e,"acquire"),this._wrap(e.ServerSessionPool.prototype,"acquire",this._getV4AcquireCommand()),o.isWrapped(e.release)&&this._unwrap(e,"release"),this._wrap(e.ServerSessionPool.prototype,"release",this._getV4ReleaseCommand()),e),v4UnpatchSessions:e=>{void 0!==e&&(o.isWrapped(e.acquire)&&this._unwrap(e,"acquire"),o.isWrapped(e.release)&&this._unwrap(e,"release"))}}}_getV4AcquireCommand(){let e=this;return t=>function(){let n=this.sessions.length,r=t.call(this),o=this.sessions.length;return n===o?e._connCountAdd(1,e._poolName,"used"):n-1===o&&(e._connCountAdd(-1,e._poolName,"idle"),e._connCountAdd(1,e._poolName,"used")),r}}_getV4ReleaseCommand(){let e=this;return t=>function(n){let r=t.call(this,n);return e._connCountAdd(-1,e._poolName,"used"),e._connCountAdd(1,e._poolName,"idle"),r}}_getV4ConnectionPoolPatches(){return{v4PatchConnectionPool:e=>{let t=e.ConnectionPool.prototype;return o.isWrapped(t.checkOut)&&this._unwrap(t,"checkOut"),this._wrap(t,"checkOut",this._getV4ConnectionPoolCheckOut()),e},v4UnpatchConnectionPool:e=>{void 0!==e&&this._unwrap(e.ConnectionPool.prototype,"checkOut")}}}_getV4ConnectPatches(){return{v4PatchConnect:e=>(o.isWrapped(e.connect)&&this._unwrap(e,"connect"),this._wrap(e,"connect",this._getV4ConnectCommand()),e),v4UnpatchConnect:e=>{void 0!==e&&this._unwrap(e,"connect")}}}_getV4ConnectionPoolCheckOut(){return e=>function(t){let n=r.context.bind(r.context.active(),t);return e.call(this,n)}}_getV4ConnectCommand(){let e=this;return t=>function(n,r){if(1===t.length){let r=t.call(this,n);return r&&"function"==typeof r.then&&r.then(()=>e.setPoolName(n),()=>void 0),r}return t.call(this,n,function(t,o){t||!o||e.setPoolName(n),r(t,o)})}}_getV4ConnectionPatches(){return{v4PatchConnectionCallback:e=>(o.isWrapped(e.Connection.prototype.command)&&this._unwrap(e.Connection.prototype,"command"),this._wrap(e.Connection.prototype,"command",this._getV4PatchCommandCallback()),e),v4PatchConnectionPromise:e=>(o.isWrapped(e.Connection.prototype.command)&&this._unwrap(e.Connection.prototype,"command"),this._wrap(e.Connection.prototype,"command",this._getV4PatchCommandPromise()),e),v4UnpatchConnection:e=>{void 0!==e&&this._unwrap(e.Connection.prototype,"command")}}}_getV3PatchOperation(e){let t=this;return n=>function(o,a,i,s,l){let u=r.trace.getSpan(r.context.active()),c=t._checkSkipInstrumentation(u),p="function"==typeof s?s:l;if(c||"function"!=typeof p||"object"!=typeof i)if("function"==typeof s)return n.call(this,o,a,i,s);else return n.call(this,o,a,i,s,l);let _=t._getV3SpanAttributes(a,o,i[0],e),T=t._spanNameFromAttrs(_),S=t.tracer.startSpan(T,{kind:r.SpanKind.CLIENT,attributes:_}),E=t._patchEnd(S,p);return"function"==typeof s?n.call(this,o,a,i,E):n.call(this,o,a,i,s,E)}}_getV3PatchCommand(){let e=this;return t=>function(n,o,a,i,s){let u=r.trace.getSpan(r.context.active()),c=e._checkSkipInstrumentation(u),_="function"==typeof i?i:s;if(c||"function"!=typeof _||"object"!=typeof a)if("function"==typeof i)return t.call(this,n,o,a,i);else return t.call(this,n,o,a,i,s);let T=p._getCommandType(a),S=T===l.MongodbCommandType.UNKNOWN?void 0:T,E=e._getV3SpanAttributes(o,n,a,S),d=e._spanNameFromAttrs(E),g=e.tracer.startSpan(d,{kind:r.SpanKind.CLIENT,attributes:E}),A=e._patchEnd(g,_);return"function"==typeof i?t.call(this,n,o,a,A):t.call(this,n,o,a,i,A)}}_getV4PatchCommandCallback(){let e=this;return t=>function(n,o,a,i){let s,l=r.trace.getSpan(r.context.active()),u=e._checkSkipInstrumentation(l),c=Object.keys(o)[0];if("object"!=typeof o||o.ismaster||o.hello)return t.call(this,n,o,a,i);if(!u){let t=e._getV4SpanAttributes(this,n,o,c),a=e._spanNameFromAttrs(t);s=e.tracer.startSpan(a,{kind:r.SpanKind.CLIENT,attributes:t})}let p=e._patchEnd(s,i,this.id,c);return t.call(this,n,o,a,p)}}_getV4PatchCommandPromise(){let e=this;return t=>function(...n){let o,[a,i]=n,s=r.trace.getSpan(r.context.active()),l=e._checkSkipInstrumentation(s),u=Object.keys(i)[0];if("object"!=typeof i||i.ismaster||i.hello)return t.apply(this,n);if(!l){let t=e._getV4SpanAttributes(this,a,i,u),n=e._spanNameFromAttrs(t);o=e.tracer.startSpan(n,{kind:r.SpanKind.CLIENT,attributes:t})}let c=e._patchEnd(o,()=>void 0,this.id,u),p=t.apply(this,n);return p.then(e=>c(null,e),e=>c(e)),p}}_getV3PatchFind(){let e=this;return t=>function(n,o,a,i,s,l){let u=r.trace.getSpan(r.context.active()),c=e._checkSkipInstrumentation(u),p="function"==typeof s?s:l;if(c||"function"!=typeof p||"object"!=typeof a)if("function"==typeof s)return t.call(this,n,o,a,i,s);else return t.call(this,n,o,a,i,s,l);let _=e._getV3SpanAttributes(o,n,a,"find"),T=e._spanNameFromAttrs(_),S=e.tracer.startSpan(T,{kind:r.SpanKind.CLIENT,attributes:_}),E=e._patchEnd(S,p);return"function"==typeof s?t.call(this,n,o,a,i,E):t.call(this,n,o,a,i,s,E)}}_getV3PatchCursor(){let e=this;return t=>function(n,o,a,i,s,l){let u=r.trace.getSpan(r.context.active()),c=e._checkSkipInstrumentation(u),p="function"==typeof s?s:l;if(c||"function"!=typeof p)if("function"==typeof s)return t.call(this,n,o,a,i,s);else return t.call(this,n,o,a,i,s,l);let _=e._getV3SpanAttributes(o,n,a.cmd,"getMore"),T=e._spanNameFromAttrs(_),S=e.tracer.startSpan(T,{kind:r.SpanKind.CLIENT,attributes:_}),E=e._patchEnd(S,p);return"function"==typeof s?t.call(this,n,o,a,i,E):t.call(this,n,o,a,i,s,E)}}static _getCommandType(e){if(void 0!==e.createIndexes)return l.MongodbCommandType.CREATE_INDEXES;if(void 0!==e.findandmodify)return l.MongodbCommandType.FIND_AND_MODIFY;if(void 0!==e.ismaster)return l.MongodbCommandType.IS_MASTER;if(void 0!==e.count)return l.MongodbCommandType.COUNT;if(void 0!==e.aggregate)return l.MongodbCommandType.AGGREGATE;else return l.MongodbCommandType.UNKNOWN}_getV4SpanAttributes(e,t,n,r){let o,a,i;if(e){let t="string"==typeof e.address?e.address.split(":"):"";2===t.length&&(o=t[0],a=t[1])}return i=n?.documents&&n.documents[0]?n.documents[0]:n?.cursors?n.cursors:n,this._getSpanAttributes(t.db,t.collection,o,a,i,r)}_getV3SpanAttributes(e,t,n,r){let o,a;if(t&&t.s&&(o=t.s.options?.host??t.s.host,a=(t.s.options?.port??t.s.port)?.toString(),null==o||null==a)){let e=t.description?.address;if(e){let t=e.split(":");o=t[0],a=t[1]}}let[i,s]=e.toString().split("."),l=n?.query??n?.q??n;return this._getSpanAttributes(i,s,o,a,l,r)}_getSpanAttributes(e,t,n,r,a,l){let u={};if(this._dbSemconvStability&o.SemconvStability.OLD&&(u[s.ATTR_DB_SYSTEM]=s.DB_SYSTEM_VALUE_MONGODB,u[s.ATTR_DB_NAME]=e,u[s.ATTR_DB_MONGODB_COLLECTION]=t,u[s.ATTR_DB_OPERATION]=l,u[s.ATTR_DB_CONNECTION_STRING]=`mongodb://${n}:${r}/${e}`),this._dbSemconvStability&o.SemconvStability.STABLE&&(u[i.ATTR_DB_SYSTEM_NAME]=s.DB_SYSTEM_NAME_VALUE_MONGODB,u[i.ATTR_DB_NAMESPACE]=e,u[i.ATTR_DB_OPERATION_NAME]=l,u[i.ATTR_DB_COLLECTION_NAME]=t),n&&r){this._netSemconvStability&o.SemconvStability.OLD&&(u[s.ATTR_NET_PEER_NAME]=n),this._netSemconvStability&o.SemconvStability.STABLE&&(u[i.ATTR_SERVER_ADDRESS]=n);let e=parseInt(r,10);!isNaN(e)&&(this._netSemconvStability&o.SemconvStability.OLD&&(u[s.ATTR_NET_PEER_PORT]=e),this._netSemconvStability&o.SemconvStability.STABLE&&(u[i.ATTR_SERVER_PORT]=e))}if(a){let{dbStatementSerializer:e}=this.getConfig(),t="function"==typeof e?e:this._defaultDbStatementSerializer.bind(this);o.safeExecuteInTheMiddle(()=>{let e=t(a);this._dbSemconvStability&o.SemconvStability.OLD&&(u[s.ATTR_DB_STATEMENT]=e),this._dbSemconvStability&o.SemconvStability.STABLE&&(u[i.ATTR_DB_QUERY_TEXT]=e)},e=>{e&&this._diag.error("Error running dbStatementSerializer hook",e)},!0)}return u}_spanNameFromAttrs(e){return this._dbSemconvStability&o.SemconvStability.STABLE?[e[i.ATTR_DB_OPERATION_NAME],e[i.ATTR_DB_COLLECTION_NAME]].filter(e=>e).join(" ")||s.DB_SYSTEM_NAME_VALUE_MONGODB:`mongodb.${e[s.ATTR_DB_OPERATION]||"command"}`}_getDefaultDbStatementReplacer(){let e=new WeakSet;return(t,n)=>"object"==typeof n&&n?e.has(n)?"[Circular]":(e.add(n),n):"?"}_defaultDbStatementSerializer(e){let{enhancedDatabaseReporting:t}=this.getConfig();return t?JSON.stringify(e):JSON.stringify(e,this._getDefaultDbStatementReplacer())}_handleExecutionResult(e,t){let{responseHook:n}=this.getConfig();"function"==typeof n&&o.safeExecuteInTheMiddle(()=>{n(e,{data:t})},e=>{e&&this._diag.error("Error running response hook",e)},!0)}_patchEnd(e,t,n,o){let a=r.context.active(),i=this,s=!1;return function(...n){if(!s){s=!0;let t=n[0];if(e){if(t instanceof Error)e.setStatus({code:r.SpanStatusCode.ERROR,message:t.message});else{let t=n[1];i._handleExecutionResult(e,t)}e.end()}"endSessions"===o&&i._connCountAdd(-1,i._poolName,"idle")}return r.context.with(a,()=>t.apply(this,n))}}setPoolName(e){let t=e.hostAddress?.host,n=e.hostAddress?.port,r=e.dbName,o=`mongodb://${t}:${n}/${r}`;this._poolName=o}_checkSkipInstrumentation(e){return!0===this.getConfig().requireParentSpan&&void 0===e}}n.MongoDBInstrumentation=p},798926,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(164152),o=e.r(513128),a=e.r(9597),i="Mongo",s=a.generateInstrumentOnce(i,()=>new r.MongoDBInstrumentation({dbStatementSerializer:l,responseHook(e){a.addOriginToSpan(e,"auto.db.otel.mongo")}}));function l(e){return JSON.stringify(function e(t){var n,r;let o;return Array.isArray(t)?t.map(t=>e(t)):"object"!=typeof(n=t)||null===n||(r=n,o=!1,"u">typeof Buffer&&(o=Buffer.isBuffer(r)),o)?"?":Object.entries(t).map(([t,n])=>[t,e(n)]).reduce((e,t)=>(Array.isArray(t)&&(e[t[0]]=t[1]),e),{})}(e))}let u=o.defineIntegration(()=>({name:i,setupOnce(){s()}}));n._defaultDbStatementSerializer=l,n.instrumentMongo=s,n.mongoIntegration=u},11057,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_MONGODB_COLLECTION="db.mongodb.collection",n.ATTR_DB_NAME="db.name",n.ATTR_DB_OPERATION="db.operation",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_NAME_VALUE_MONGODB="mongodb"},897706,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(11057),i=e.r(216835);function s(e,t={}){e.recordException(t),e.setStatus({code:r.SpanStatusCode.ERROR,message:`${t.message} ${t.code?`
22
- Mongoose Error Code: ${t.code}`:""}`})}function l(e,t,n,a){n&&o.safeExecuteInTheMiddle(()=>n(e,{moduleVersion:a,response:t}),e=>{e&&r.diag.error("mongoose instrumentation: responseHook error",e)},!0)}n.getAttributesFromCollection=function(e,t,n){let r={};return t&o.SemconvStability.OLD&&(r[a.ATTR_DB_MONGODB_COLLECTION]=e.name,r[a.ATTR_DB_NAME]=e.conn.name,r[a.ATTR_DB_USER]=e.conn.user),t&o.SemconvStability.STABLE&&(r[i.ATTR_DB_COLLECTION_NAME]=e.name,r[i.ATTR_DB_NAMESPACE]=e.conn.name),n&o.SemconvStability.OLD&&(r[a.ATTR_NET_PEER_NAME]=e.conn.host,r[a.ATTR_NET_PEER_PORT]=e.conn.port),n&o.SemconvStability.STABLE&&(r[i.ATTR_SERVER_ADDRESS]=e.conn.host,r[i.ATTR_SERVER_PORT]=e.conn.port),r},n.handleCallbackResponse=function(e,t,n,r,o,a,i){let u=0;return 2===o.length?u=1:3===o.length&&(u=2),o[u]=(t,n)=>(t?s(r,t):l(r,n,a,i),r.end(),e(t,n)),t.apply(n,o)},n.handlePromiseResponse=function(e,t,n,r){return e instanceof Promise?e.then(e=>(l(t,e,n,r),e)).catch(e=>{throw s(t,e),e}).finally(()=>t.end()):(l(t,e,n,r),t.end(),e)}},742203,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(979184),a=e.r(897706),i=e.r(777884),s=e.r(513128),l=e.r(11057),u=e.r(216835),c=["deleteOne","deleteMany","find","findOne","estimatedDocumentCount","countDocuments","distinct","where","$where","findOneAndUpdate","findOneAndDelete","findOneAndReplace"],p=["remove","count","findOneAndRemove",...c],_=["count","findOneAndRemove",...c],T=[...c];function S(e){return e?e.startsWith("6.")||e.startsWith("5.")?p:e.startsWith("7.")?_:T:c}function E(e){return e&&(e.startsWith("5.")||e.startsWith("6."))||!1}function d(e){return!!e&&!!e.startsWith("8.")&&parseInt(e.split(".")[1],10)>=21}let g=Symbol("stored-parent-span"),A=Symbol("already-instrumented");class m extends i.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-mongoose",s.SDK_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=i.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=i.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return new i.InstrumentationNodeModuleDefinition("mongoose",[">=5.9.7 <10"],this.patch.bind(this),this.unpatch.bind(this))}patch(e,t){let n="Module"===e[Symbol.toStringTag]?e.default:e;return this._wrap(n.Model.prototype,"save",this.patchOnModelMethods("save",t)),n.Model.prototype.$save=n.Model.prototype.save,E(t)&&this._wrap(n.Model.prototype,"remove",this.patchOnModelMethods("remove",t)),d(t)&&(this._wrap(n.Model.prototype,"updateOne",this._patchDocumentUpdateMethods("updateOne",t)),this._wrap(n.Model.prototype,"deleteOne",this._patchDocumentUpdateMethods("deleteOne",t))),this._wrap(n.Query.prototype,"exec",this.patchQueryExec(t)),this._wrap(n.Aggregate.prototype,"exec",this.patchAggregateExec(t)),S(t).forEach(e=>{this._wrap(n.Query.prototype,e,this.patchAndCaptureSpanContext(e))}),this._wrap(n.Model,"aggregate",this.patchModelAggregate()),this._wrap(n.Model,"insertMany",this.patchModelStatic("insertMany",t)),this._wrap(n.Model,"bulkWrite",this.patchModelStatic("bulkWrite",t)),n}unpatch(e,t){let n="Module"===e[Symbol.toStringTag]?e.default:e,r=S(t);this._unwrap(n.Model.prototype,"save"),n.Model.prototype.$save=n.Model.prototype.save,E(t)&&this._unwrap(n.Model.prototype,"remove"),d(t)&&(this._unwrap(n.Model.prototype,"updateOne"),this._unwrap(n.Model.prototype,"deleteOne")),this._unwrap(n.Query.prototype,"exec"),this._unwrap(n.Aggregate.prototype,"exec"),r.forEach(e=>{this._unwrap(n.Query.prototype,e)}),this._unwrap(n.Model,"aggregate"),this._unwrap(n.Model,"insertMany"),this._unwrap(n.Model,"bulkWrite")}patchAggregateExec(e){let t=this;return n=>function(o){if(t.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return n.apply(this,arguments);let a=this[g],s={},{dbStatementSerializer:c}=t.getConfig();if(c){let e=c("aggregate",{options:this.options,aggregatePipeline:this._pipeline});t._dbSemconvStability&i.SemconvStability.OLD&&(s[l.ATTR_DB_STATEMENT]=e),t._dbSemconvStability&i.SemconvStability.STABLE&&(s[u.ATTR_DB_QUERY_TEXT]=e)}let p=t._startSpan(this._model.collection,this._model?.modelName,"aggregate",s,a);return t._handleResponse(p,n,this,arguments,o,e)}}patchQueryExec(e){let t=this;return n=>function(o){if(this[A]||t.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return n.apply(this,arguments);let a=this[g],s={},{dbStatementSerializer:c}=t.getConfig();if(c){let e=c(this.op,{condition:this.getFilter?.()??this._conditions,updates:this._update,options:this.getOptions?.()??this.options,fields:this._fields});t._dbSemconvStability&i.SemconvStability.OLD&&(s[l.ATTR_DB_STATEMENT]=e),t._dbSemconvStability&i.SemconvStability.STABLE&&(s[u.ATTR_DB_QUERY_TEXT]=e)}let p=t._startSpan(this.mongooseCollection,this.model.modelName,this.op,s,a);return t._handleResponse(p,n,this,arguments,o,e)}}patchOnModelMethods(e,t){let n=this;return o=>function(a,s){if(n.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return o.apply(this,arguments);let c={document:this};!a||a instanceof Function||(c.options=a);let p={},{dbStatementSerializer:_}=n.getConfig();if(_){let t=_(e,c);n._dbSemconvStability&i.SemconvStability.OLD&&(p[l.ATTR_DB_STATEMENT]=t),n._dbSemconvStability&i.SemconvStability.STABLE&&(p[u.ATTR_DB_QUERY_TEXT]=t)}let T=n._startSpan(this.constructor.collection,this.constructor.modelName,e,p);return a instanceof Function&&(s=a,a=void 0),n._handleResponse(T,o,this,arguments,s,t)}}_patchDocumentUpdateMethods(e,t){let n=this;return o=>function(a,s,c){if(n.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return o.apply(this,arguments);let p=c,_=a,T=s;"function"==typeof a?(p=a,_=void 0,T=void 0):"function"==typeof s&&(p=s,T=void 0);let S={},E=n.getConfig().dbStatementSerializer;if(E){let t=E(e,{condition:{_id:this._id},updates:_,options:T});n._dbSemconvStability&i.SemconvStability.OLD&&(S[l.ATTR_DB_STATEMENT]=t),n._dbSemconvStability&i.SemconvStability.STABLE&&(S[u.ATTR_DB_QUERY_TEXT]=t)}let d=n._startSpan(this.constructor.collection,this.constructor.modelName,e,S),g=n._handleResponse(d,o,this,arguments,p,t);return g&&"object"==typeof g&&(g[A]=!0),g}}patchModelStatic(e,t){let n=this;return o=>function(a,s,c){if(n.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return o.apply(this,arguments);"function"==typeof s&&(c=s,s=void 0);let p={};switch(e){case"insertMany":p.documents=a;break;case"bulkWrite":p.operations=a;break;default:p.document=a}void 0!==s&&(p.options=s);let _={},{dbStatementSerializer:T}=n.getConfig();if(T){let t=T(e,p);n._dbSemconvStability&i.SemconvStability.OLD&&(_[l.ATTR_DB_STATEMENT]=t),n._dbSemconvStability&i.SemconvStability.STABLE&&(_[u.ATTR_DB_QUERY_TEXT]=t)}let S=n._startSpan(this.collection,this.modelName,e,_);return n._handleResponse(S,o,this,arguments,c,t)}}patchModelAggregate(){let e=this;return t=>function(){let n=r.trace.getSpan(r.context.active()),o=e._callOriginalFunction(()=>t.apply(this,arguments));return o&&(o[g]=n),o}}patchAndCaptureSpanContext(e){let t=this;return e=>function(){return this[g]=r.trace.getSpan(r.context.active()),t._callOriginalFunction(()=>e.apply(this,arguments))}}_startSpan(e,t,n,o,s){let c={...o,...a.getAttributesFromCollection(e,this._dbSemconvStability,this._netSemconvStability)};this._dbSemconvStability&i.SemconvStability.OLD&&(c[l.ATTR_DB_OPERATION]=n,c[l.ATTR_DB_SYSTEM]="mongoose"),this._dbSemconvStability&i.SemconvStability.STABLE&&(c[u.ATTR_DB_OPERATION_NAME]=n,c[u.ATTR_DB_SYSTEM_NAME]=l.DB_SYSTEM_NAME_VALUE_MONGODB);let p=this._dbSemconvStability&i.SemconvStability.STABLE?`${n} ${e.name}`:`mongoose.${t}.${n}`;return this.tracer.startSpan(p,{kind:r.SpanKind.CLIENT,attributes:c},s?r.trace.setSpan(r.context.active(),s):void 0)}_handleResponse(e,t,n,r,o,i){let s=this;if(o instanceof Function)return s._callOriginalFunction(()=>a.handleCallbackResponse(o,t,n,e,r,s.getConfig().responseHook,i));{let o=s._callOriginalFunction(()=>t.apply(n,r));return a.handlePromiseResponse(o,e,s.getConfig().responseHook,i)}}_callOriginalFunction(e){return this.getConfig().suppressInternalInstrumentation?r.context.with(o.suppressTracing(r.context.active()),e):e()}}n.MongooseInstrumentation=m,n._ALREADY_INSTRUMENTED=A,n._STORED_PARENT_SPAN=g},526717,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(742203),o=e.r(513128),a=e.r(9597),i="Mongoose",s=a.generateInstrumentOnce(i,()=>new r.MongooseInstrumentation({responseHook(e){a.addOriginToSpan(e,"auto.db.otel.mongoose")}})),l=o.defineIntegration(()=>({name:i,setupOnce(){s()}}));n.instrumentMongoose=s,n.mongooseIntegration=l},594209,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_CONNECTION_STRING="db.connection_string",n.ATTR_DB_NAME="db.name",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_VALUE_MYSQL="mysql",n.METRIC_DB_CLIENT_CONNECTIONS_USAGE="db.client.connections.usage"},874512,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).MYSQL_VALUES="db.mysql.values",r);n.AttributeNames=o},438004,(e,t,n)=>{function r(e){return e?`[${e.toString()}]`:""}Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.arrayStringifyHelper=r,n.getConfig=function(e){let{host:t,port:n,database:r,user:o}=e&&e.connectionConfig||e||{};return{host:t,port:n,database:r,user:o}},n.getDbQueryText=function(e){return"string"==typeof e?e:e.sql},n.getDbValues=function(e,t){return"string"==typeof e?r(t):r(t||e.values)},n.getJDBCString=function(e,t,n){let r=`jdbc:mysql://${e||"localhost"}`;return"number"==typeof t&&(r+=`:${t}`),"string"==typeof n&&(r+=`/${n}`),r},n.getPoolNameOld=function(e){let t=e.config.connectionConfig,n="";return n+=t?.host?`host: '${t.host}', `:"",n+=t?.port?`port: ${t.port}, `:"",n+=t?.database?`database: '${t.database}', `:"",n+=t?.user?`user: '${t.user}'`:"",t?.user||(n=n.substring(0,n.length-2)),n.trim()},n.getSpanName=function(e){let t="object"==typeof e?e.sql:e,n=t?.indexOf(" ");return"number"==typeof n&&-1!==n?t?.substring(0,n):t}},162648,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(216835),i=e.r(594209),s=e.r(874512),l=e.r(438004),u=e.r(513128);class c extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-mysql",u.SDK_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=o.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=o.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}_updateMetricInstruments(){this._connectionsUsageOld=this.meter.createUpDownCounter(i.METRIC_DB_CLIENT_CONNECTIONS_USAGE,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}_connCountAdd(e,t,n){this._connectionsUsageOld?.add(e,{state:n,name:t})}init(){return[new o.InstrumentationNodeModuleDefinition("mysql",[">=2.0.0 <3"],e=>(o.isWrapped(e.createConnection)&&this._unwrap(e,"createConnection"),this._wrap(e,"createConnection",this._patchCreateConnection()),o.isWrapped(e.createPool)&&this._unwrap(e,"createPool"),this._wrap(e,"createPool",this._patchCreatePool()),o.isWrapped(e.createPoolCluster)&&this._unwrap(e,"createPoolCluster"),this._wrap(e,"createPoolCluster",this._patchCreatePoolCluster()),e),e=>{void 0!==e&&(this._unwrap(e,"createConnection"),this._unwrap(e,"createPool"),this._unwrap(e,"createPoolCluster"))})]}_patchCreateConnection(){return e=>{let t=this;return function(n){let r=e(...arguments);return t._wrap(r,"query",t._patchQuery(r)),r}}}_patchCreatePool(){return e=>{let t=this;return function(n){let r=e(...arguments);return t._wrap(r,"query",t._patchQuery(r)),t._wrap(r,"getConnection",t._patchGetConnection(r)),t._wrap(r,"end",t._patchPoolEnd(r)),t._setPoolCallbacks(r,""),r}}}_patchPoolEnd(e){return t=>{let n=this;return function(r){let o=e._allConnections.length,a=e._freeConnections.length,i=l.getPoolNameOld(e);n._connCountAdd(-(o-a),i,"used"),n._connCountAdd(-a,i,"idle"),t.apply(e,arguments)}}}_patchCreatePoolCluster(){return e=>{let t=this;return function(n){let r=e(...arguments);return t._wrap(r,"getConnection",t._patchGetConnection(r)),t._wrap(r,"add",t._patchAdd(r)),r}}}_patchAdd(e){return t=>{let n=this;return function(r,o){if(!n._enabled)return n._unwrap(e,"add"),t.apply(e,arguments);t.apply(e,arguments);let a=e._nodes;if(a){let t=a["object"==typeof r?"CLUSTER::"+e._lastId:String(r)].pool;n._setPoolCallbacks(t,r)}}}}_patchGetConnection(e){return t=>{let n=this;return function(r,o,a){if(!n._enabled)return n._unwrap(e,"getConnection"),t.apply(e,arguments);if(1==arguments.length&&"function"==typeof r){let o=n._getConnectionCallbackPatchFn(r);return t.call(e,o)}if(2==arguments.length&&"function"==typeof o){let a=n._getConnectionCallbackPatchFn(o);return t.call(e,r,a)}if(3==arguments.length&&"function"==typeof a){let i=n._getConnectionCallbackPatchFn(a);return t.call(e,r,o,i)}return t.apply(e,arguments)}}}_getConnectionCallbackPatchFn(e){let t=this,n=r.context.active();return function(a,i){i&&!o.isWrapped(i.query)&&t._wrap(i,"query",t._patchQuery(i)),"function"==typeof e&&r.context.with(n,e,this,a,i)}}_patchQuery(e){return t=>{let n=this;return function(u,c,p){if(!n._enabled)return n._unwrap(e,"query"),t.apply(e,arguments);let _={},{host:T,port:S,database:E,user:d}=l.getConfig(e.config),g=parseInt(S,10),A=l.getDbQueryText(u);n._dbSemconvStability&o.SemconvStability.OLD&&(_[i.ATTR_DB_SYSTEM]=i.DB_SYSTEM_VALUE_MYSQL,_[i.ATTR_DB_CONNECTION_STRING]=l.getJDBCString(T,S,E),_[i.ATTR_DB_NAME]=E,_[i.ATTR_DB_USER]=d,_[i.ATTR_DB_STATEMENT]=A),n._dbSemconvStability&o.SemconvStability.STABLE&&(_[a.ATTR_DB_SYSTEM_NAME]=a.DB_SYSTEM_NAME_VALUE_MYSQL,_[a.ATTR_DB_NAMESPACE]=E,_[a.ATTR_DB_QUERY_TEXT]=A),n._netSemconvStability&o.SemconvStability.OLD&&(_[i.ATTR_NET_PEER_NAME]=T,isNaN(g)||(_[i.ATTR_NET_PEER_PORT]=g)),n._netSemconvStability&o.SemconvStability.STABLE&&(_[a.ATTR_SERVER_ADDRESS]=T,isNaN(g)||(_[a.ATTR_SERVER_PORT]=g));let m=n.tracer.startSpan(l.getSpanName(u),{kind:r.SpanKind.CLIENT,attributes:_});if(n.getConfig().enhancedDatabaseReporting){let e;Array.isArray(c)?e=c:arguments[2]&&(e=[c]),m.setAttribute(s.AttributeNames.MYSQL_VALUES,l.getDbValues(u,e))}let R=Array.from(arguments).findIndex(e=>"function"==typeof e),h=r.context.active();if(-1!==R)return n._wrap(arguments,R,n._patchCallbackQuery(m,h)),r.context.with(r.trace.setSpan(r.context.active(),m),()=>t.apply(e,arguments));{let n=r.context.with(r.trace.setSpan(r.context.active(),m),()=>t.apply(e,arguments));return r.context.bind(h,n),n.on("error",e=>m.setStatus({code:r.SpanStatusCode.ERROR,message:e.message})).on("end",()=>{m.end()})}}}}_patchCallbackQuery(e,t){return n=>function(o,a,i){return o&&e.setStatus({code:r.SpanStatusCode.ERROR,message:o.message}),e.end(),r.context.with(t,()=>n(...arguments))}}_setPoolCallbacks(e,t){let n=t||l.getPoolNameOld(e);e.on("connection",e=>{this._connCountAdd(1,n,"idle")}),e.on("acquire",e=>{this._connCountAdd(-1,n,"idle"),this._connCountAdd(1,n,"used")}),e.on("release",e=>{this._connCountAdd(1,n,"idle"),this._connCountAdd(-1,n,"used")})}}n.MySQLInstrumentation=c},912988,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(162648),o=e.r(513128),a=e.r(9597),i="Mysql",s=a.generateInstrumentOnce(i,()=>new r.MySQLInstrumentation({})),l=o.defineIntegration(()=>({name:i,setupOnce(){s()}}));n.instrumentMysql=s,n.mysqlIntegration=l},753404,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_CONNECTION_STRING="db.connection_string",n.ATTR_DB_NAME="db.name",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_VALUE_MYSQL="mysql"},513857,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(979184);n.addSqlCommenterComment=function(e,t){let n;if("string"!=typeof t||0===t.length||(n=t.indexOf("--"))>=0||!(0>t.indexOf("/*"))&&n<t.indexOf("*/"))return t;let a=new o.W3CTraceContextPropagator,i={};a.inject(r.trace.setSpan(r.ROOT_CONTEXT,e),i,r.defaultTextMapSetter);let s=Object.keys(i).sort();if(0===s.length)return t;let l=s.map(e=>{let t=encodeURIComponent(i[e]).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`);return`${e}='${t}'`}).join(",");return`${t} /*${l}*/`}},740598,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(753404),o=e.r(777884),a=e.r(216835);function i(e){return e.replace(/\b\d+\b/g,"?").replace(/(["'])(?:(?=(\\?))\2.)*?\1/g,"?")}n.getConnectionAttributes=function(e,t,n){var i,s,l;let u,{host:c,port:p,database:_,user:T}=function(e){let{host:t,port:n,database:r,user:o}=e&&e.connectionConfig||e||{};return{host:t,port:n,database:r,user:o}}(e),S={};t&o.SemconvStability.OLD&&(S[r.ATTR_DB_CONNECTION_STRING]=(i=c,s=p,l=_,u=`jdbc:mysql://${i||"localhost"}`,"number"==typeof s&&(u+=`:${s}`),"string"==typeof l&&(u+=`/${l}`),u),S[r.ATTR_DB_NAME]=_,S[r.ATTR_DB_USER]=T),t&o.SemconvStability.STABLE&&(S[a.ATTR_DB_NAMESPACE]=_);let E=parseInt(p,10);return n&o.SemconvStability.OLD&&(S[r.ATTR_NET_PEER_NAME]=c,isNaN(E)||(S[r.ATTR_NET_PEER_PORT]=E)),n&o.SemconvStability.STABLE&&(S[a.ATTR_SERVER_ADDRESS]=c,isNaN(E)||(S[a.ATTR_SERVER_PORT]=E)),S},n.getConnectionPrototypeToInstrument=function(e){let t=e.prototype,n=Object.getPrototypeOf(t);return"function"==typeof n?.query&&"function"==typeof n?.execute?n:t},n.getQueryText=function(e,t,n,r=!1,o=i){let[a,s]="string"==typeof e?[e,n]:[e.sql,"values"in e?n||e.values:n];try{if(r)return o(a);if(t&&s)return t(a,s);return a}catch(e){return"Could not determine the query due to an error in masking or formatting"}},n.getSpanName=function(e){let t="object"==typeof e?e.sql:e,n=t?.indexOf(" ");return"number"==typeof n&&-1!==n?t?.substring(0,n):t},n.once=e=>{let t=!1;return(...n)=>{if(!t)return t=!0,e(...n)}}},557508,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(777884),i=e.r(102335),s=e.r(753404),l=e.r(513857),u=e.r(740598),c=e.r(216835),p=[">=1.4.2 <4"];class _ extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-mysql2",o.SDK_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){let e;function t(t){!e&&t.format&&(e=t.format)}let n=t=>{a.isWrapped(t.query)&&this._unwrap(t,"query"),this._wrap(t,"query",this._patchQuery(e,!1)),a.isWrapped(t.execute)&&this._unwrap(t,"execute"),this._wrap(t,"execute",this._patchQuery(e,!0))},r=e=>{this._unwrap(e,"query"),this._unwrap(e,"execute")};return[new a.InstrumentationNodeModuleDefinition("mysql2",p,e=>(t(e),e),()=>{},[new i.InstrumentationNodeModuleFile("mysql2/promise.js",p,e=>(t(e),e),()=>{}),new i.InstrumentationNodeModuleFile("mysql2/lib/connection.js",p,e=>(n(u.getConnectionPrototypeToInstrument(e)),e),e=>{void 0===e||r(u.getConnectionPrototypeToInstrument(e))})])]}_patchQuery(e,t){return n=>{let o=this;return function(i,p,_){let T;Array.isArray(p)?T=p:arguments[2]&&(T=[p]);let{maskStatement:S,maskStatementHook:E,responseHook:d}=o.getConfig(),g=u.getConnectionAttributes(this.config,o._dbSemconvStability,o._netSemconvStability),A=u.getQueryText(i,e,T,S,E);o._dbSemconvStability&a.SemconvStability.OLD&&(g[s.ATTR_DB_SYSTEM]=s.DB_SYSTEM_VALUE_MYSQL,g[s.ATTR_DB_STATEMENT]=A),o._dbSemconvStability&a.SemconvStability.STABLE&&(g[c.ATTR_DB_SYSTEM_NAME]=c.DB_SYSTEM_NAME_VALUE_MYSQL,g[c.ATTR_DB_QUERY_TEXT]=A);let m=o.tracer.startSpan(u.getSpanName(i),{kind:r.SpanKind.CLIENT,attributes:g});!t&&o.getConfig().addSqlCommenterCommentToQueries&&(arguments[0]=i="string"==typeof i?l.addSqlCommenterComment(m,i):Object.assign(i,{sql:l.addSqlCommenterComment(m,i.sql)}));let R=u.once((e,t)=>{e?m.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}):"function"==typeof d&&a.safeExecuteInTheMiddle(()=>{d(m,{queryResults:t})},e=>{e&&o._diag.warn("Failed executing responseHook",e)},!0),m.end()});if(1==arguments.length){"function"==typeof i.onResult&&o._wrap(i,"onResult",o._patchCallbackQuery(R));let e=n.apply(this,arguments);return e.once("error",e=>{R(e)}).once("result",e=>{R(void 0,e)}),e}return"function"==typeof arguments[1]?o._wrap(arguments,1,o._patchCallbackQuery(R)):"function"==typeof arguments[2]&&o._wrap(arguments,2,o._patchCallbackQuery(R)),n.apply(this,arguments)}}}_patchCallbackQuery(e){return t=>function(n,r,o){return e(n,r),t(...arguments)}}}n.MySQL2Instrumentation=_},600698,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(557508),o=e.r(513128),a=e.r(9597),i="Mysql2",s=a.generateInstrumentOnce(i,()=>new r.MySQL2Instrumentation({responseHook(e){a.addOriginToSpan(e,"auto.db.otel.mysql2")}})),l=o.defineIntegration(()=>({name:i,setupOnce(){s()}}));n.instrumentMysql2=s,n.mysql2Integration=l},795968,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.DEBUG_BUILD="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},763135,(e,t,n)=>{let r;Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let o=e.r(513128),a=e.r(795968),i="node-redis:command",s="node-redis:batch",l="node-redis:connect",u="ioredis:command",c="ioredis:connect",p="auto.db.redis.diagnostic_channel",_="db.system",T="net.peer.name",S="net.peer.port",E="redis",d=()=>{},g=!1;function A(e,t,n){e(t,e=>{let t=n(e),r=t.length?`${e.command} ${t.join(" ")}`:e.command;return o.startSpanManual({name:`redis-${e.command}`,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db.redis",[_]:E,"db.statement":r,...null!=e.serverAddress?{[T]:e.serverAddress}:{},...null!=e.serverPort?{[S]:e.serverPort}:{}}},e=>e)}).subscribe({start:d,asyncStart:d,end:d,asyncEnd:e=>{let t=e._sentrySpan;t&&!e.error&&(function(e,t,n,o){let a=r;if(a)try{a(e,t,n,o)}catch{}}(t,e.command,n(e),e.result),t.end())},error:e=>{let t=e._sentrySpan;t&&(e.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:e.error.message}),t.end())}})}function m(e,t){e(t,e=>o.startSpanManual({name:"redis-connect",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db.redis.connect",[_]:E,...null!=e.serverAddress?{[T]:e.serverAddress}:{},...null!=e.serverPort?{[S]:e.serverPort}:{}}},e=>e)).subscribe({start:d,asyncStart:d,end:d,asyncEnd:e=>{e.error||e._sentrySpan?.end()},error:e=>{let t=e._sentrySpan;t&&(e.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:e.error.message}),t.end())}})}n.IOREDIS_DC_CHANNEL_COMMAND=u,n.IOREDIS_DC_CHANNEL_CONNECT=c,n.REDIS_DC_CHANNEL_BATCH=s,n.REDIS_DC_CHANNEL_COMMAND=i,n.REDIS_DC_CHANNEL_CONNECT=l,n.subscribeRedisDiagnosticChannels=function(e,t){if(r=t,!g){g=!0;try{var n,R,h;A(e,i,e=>e.args.slice(1)),n=e,R=s,h=e=>"PIPELINE"===e.batchMode?"PIPELINE":"MULTI",n(R,e=>o.startSpanManual({name:h(e),attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db.redis",[_]:E,...null!=e.batchSize?{"db.redis.batch_size":e.batchSize}:{},...null!=e.serverAddress?{[T]:e.serverAddress}:{},...null!=e.serverPort?{[S]:e.serverPort}:{}}},e=>e)).subscribe({start:d,asyncStart:d,end:d,asyncEnd:e=>{e.error||e._sentrySpan?.end()},error:e=>{let t=e._sentrySpan;t&&(e.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:e.error.message}),t.end())}}),m(e,l),A(e,u,e=>e.args),m(e,c)}catch{a.DEBUG_BUILD&&o.debug.log("Redis node:diagnostics_channel subscription failed.")}}}},43643,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(763135);n.IOREDIS_DC_CHANNEL_COMMAND=r.IOREDIS_DC_CHANNEL_COMMAND,n.IOREDIS_DC_CHANNEL_CONNECT=r.IOREDIS_DC_CHANNEL_CONNECT,n.REDIS_DC_CHANNEL_BATCH=r.REDIS_DC_CHANNEL_BATCH,n.REDIS_DC_CHANNEL_COMMAND=r.REDIS_DC_CHANNEL_COMMAND,n.REDIS_DC_CHANNEL_CONNECT=r.REDIS_DC_CHANNEL_CONNECT,n.subscribeRedisDiagnosticChannels=r.subscribeRedisDiagnosticChannels},439910,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(677652),o=e.r(92405),a=e.r(513128),i=e.r(713165);n.tracingChannel=function(e,t){let n,s=r.tracingChannel(e);try{n=o.context._getContextManager().getAsyncLocalStorageLookup()}catch{}if(!n)return i.DEBUG_BUILD&&a.logger.warn("[TracingChannel] Could not access OpenTelemetry AsyncLocalStorage, context propagation will not work."),s;let l=n.asyncLocalStorage;return s.start.bindStore(l,e=>{let n=t(e);return e._sentrySpan=n,o.trace.setSpan(o.context.active(),n)}),s}},26148,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=["get","set","setex"],o=["get","mget"],a=["set","setex"];function i(e,t){return e.includes(t.toLowerCase())}function s(e){return i(o,e)?"cache.get":i(a,e)?"cache.put":void 0}function l(e){let t=[],n=e=>{e.forEach(e=>{Array.isArray(e)?n(e):t.push(e)})};return n(e),t}n.GET_COMMANDS=o,n.SET_COMMANDS=a,n.calculateCacheItemSize=function(e){let t=e=>{try{if(Buffer.isBuffer(e))return e.byteLength;if("string"==typeof e)return e.length;if("number"==typeof e)return e.toString().length;else if(null==e)return 0;return JSON.stringify(e).length}catch{return}};return Array.isArray(e)?e.reduce((e,n)=>{let r=t(n);return"number"==typeof r?void 0!==e?e+r:r:e},0):t(e)},n.getCacheKeySafely=function(e,t){try{if(0===t.length)return;let n=e=>"string"==typeof e||"number"==typeof e||Buffer.isBuffer(e)?[e.toString()]:Array.isArray(e)?l(e.map(e=>n(e))):["<unknown>"],o=t[0];if(i(r,e)&&null!=o)return n(o);return l(t.map(e=>n(e)))}catch{return}},n.getCacheOperation=s,n.isInCommands=i,n.shouldConsiderForCache=function(e,t,n){if(!s(e))return!1;for(let e of t)if(function(e,t){return t.some(t=>e.startsWith(t))}(e,n))return!0;return!1}},243445,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=[{regex:/^ECHO/i,args:0},{regex:/^(LPUSH|MSET|PFA|PUBLISH|RPUSH|SADD|SET|SPUBLISH|XADD|ZADD)/i,args:1},{regex:/^(HSET|HMSET|LSET|LINSERT)/i,args:2},{regex:/^(ACL|BIT|B[LRZ]|CLIENT|CLUSTER|CONFIG|COMMAND|DECR|DEL|EVAL|EX|FUNCTION|GEO|GET|HINCR|HMGET|HSCAN|INCR|L[TRLM]|MEMORY|P[EFISTU]|RPOP|S[CDIMORSU]|XACK|X[CDGILPRT]|Z[CDILMPRS])/i,args:-1}];n.defaultDbStatementSerializer=(e,t)=>{if(Array.isArray(t)&&t.length){let n=r.find(({regex:t})=>t.test(e))?.args??0,o=n>=0?t.slice(0,n):t.slice();return t.length>o.length&&o.push(`[${t.length-n} other arguments]`),`${e} ${o.join(" ")}`}return e}},802841,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_CONNECTION_STRING="db.connection_string",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_NAME_VALUE_REDIS="redis",n.DB_SYSTEM_VALUE_REDIS="redis"},551284,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(777884),i=e.r(216835),s=e.r(243445),l=e.r(802841);function u(e,t){t&&(e.recordException(t),e.setStatus({code:r.SpanStatusCode.ERROR,message:t.message})),e.end()}let c={requireParentSpan:!0};class p extends a.InstrumentationBase{constructor(e={}){super("@opentelemetry/instrumentation-ioredis","0.62.0",{...c,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...c,...e})}init(){return[new a.InstrumentationNodeModuleDefinition("ioredis",[">=2.0.0 <5.11.0"],(e,t)=>{let n="Module"===e[Symbol.toStringTag]?e.default:e;return a.isWrapped(n.prototype.sendCommand)&&this._unwrap(n.prototype,"sendCommand"),this._wrap(n.prototype,"sendCommand",this._patchSendCommand(t)),a.isWrapped(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._patchConnection()),e},e=>{if(void 0===e)return;let t="Module"===e[Symbol.toStringTag]?e.default:e;this._unwrap(t.prototype,"sendCommand"),this._unwrap(t.prototype,"connect")})]}_patchSendCommand(e){return t=>this._traceSendCommand(t,e)}_patchConnection(){return e=>this._traceConnection(e)}_traceSendCommand(e,t){let n=this;return function(c){if(arguments.length<1||"object"!=typeof c)return e.apply(this,arguments);let p=n.getConfig(),_=p.dbStatementSerializer||s.defaultDbStatementSerializer,T=void 0===r.trace.getSpan(r.context.active());if(!0===p.requireParentSpan&&T)return e.apply(this,arguments);let S={},{host:E,port:d}=this.options,g=_(c.name,c.args);n._dbSemconvStability&a.SemconvStability.OLD&&(S[l.ATTR_DB_SYSTEM]=l.DB_SYSTEM_VALUE_REDIS,S[l.ATTR_DB_STATEMENT]=g,S[l.ATTR_DB_CONNECTION_STRING]=`redis://${E}:${d}`),n._dbSemconvStability&a.SemconvStability.STABLE&&(S[i.ATTR_DB_SYSTEM_NAME]=l.DB_SYSTEM_NAME_VALUE_REDIS,S[i.ATTR_DB_QUERY_TEXT]=g),n._netSemconvStability&a.SemconvStability.OLD&&(S[l.ATTR_NET_PEER_NAME]=E,S[l.ATTR_NET_PEER_PORT]=d),n._netSemconvStability&a.SemconvStability.STABLE&&(S[i.ATTR_SERVER_ADDRESS]=E,S[i.ATTR_SERVER_PORT]=d),S[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let A=n.tracer.startSpan(c.name,{kind:r.SpanKind.CLIENT,attributes:S}),{requestHook:m}=p;m&&a.safeExecuteInTheMiddle(()=>m(A,{moduleVersion:t,cmdName:c.name,cmdArgs:c.args}),e=>{e&&r.diag.error("ioredis instrumentation: request hook failed",e)},!0);try{let t=e.apply(this,arguments),n=c.resolve;c.resolve=function(e){a.safeExecuteInTheMiddle(()=>p.responseHook?.(A,c.name,c.args,e),e=>{e&&r.diag.error("ioredis instrumentation: response hook failed",e)},!0),u(A,null),n(e)};let o=c.reject;return c.reject=function(e){u(A,e),o(e)},t}catch(e){throw u(A,e),e}}}_traceConnection(e){let t=this;return function(){let n=void 0===r.trace.getSpan(r.context.active());if(!0===t.getConfig().requireParentSpan&&n)return e.apply(this,arguments);let s={},{host:c,port:p}=this.options;t._dbSemconvStability&a.SemconvStability.OLD&&(s[l.ATTR_DB_SYSTEM]=l.DB_SYSTEM_VALUE_REDIS,s[l.ATTR_DB_STATEMENT]="connect",s[l.ATTR_DB_CONNECTION_STRING]=`redis://${c}:${p}`),t._dbSemconvStability&a.SemconvStability.STABLE&&(s[i.ATTR_DB_SYSTEM_NAME]=l.DB_SYSTEM_NAME_VALUE_REDIS,s[i.ATTR_DB_QUERY_TEXT]="connect"),t._netSemconvStability&a.SemconvStability.OLD&&(s[l.ATTR_NET_PEER_NAME]=c,s[l.ATTR_NET_PEER_PORT]=p),t._netSemconvStability&a.SemconvStability.STABLE&&(s[i.ATTR_SERVER_ADDRESS]=c,s[i.ATTR_SERVER_PORT]=p),s[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let _=t.tracer.startSpan("connect",{kind:r.SpanKind.CLIENT,attributes:s});try{let t=e.apply(this,arguments);if("function"==typeof t?.then)return t.then(e=>(u(_,null),e),e=>(u(_,e),Promise.reject(e)));return u(_,null),t}catch(e){throw u(_,e),e}}}}n.IORedisInstrumentation=p},543610,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(777884),i=e.r(102335),s=e.r(216835),l=e.r(243445),u=e.r(802841),c="@opentelemetry/instrumentation-redis",p="0.62.0",_=Symbol("opentelemetry.instrumentation.redis.open_spans"),T=Symbol("opentelemetry.instrumentation.redis.multi_command_options");function S(e,t,n){let r={};return n&a.SemconvStability.OLD&&Object.assign(r,{[u.ATTR_DB_SYSTEM]:u.DB_SYSTEM_VALUE_REDIS,[u.ATTR_NET_PEER_NAME]:t?.socket?.host,[u.ATTR_NET_PEER_PORT]:t?.socket?.port,[u.ATTR_DB_CONNECTION_STRING]:function(e,t){if("string"==typeof t&&t)try{let e=new URL(t);return e.searchParams.delete("user_pwd"),e.username="",e.password="",e.href}catch(t){e.error("failed to sanitize redis connection url",t)}}(e,t?.url)}),n&a.SemconvStability.STABLE&&Object.assign(r,{[s.ATTR_DB_SYSTEM_NAME]:u.DB_SYSTEM_NAME_VALUE_REDIS,[s.ATTR_SERVER_ADDRESS]:t?.socket?.host,[s.ATTR_SERVER_PORT]:t?.socket?.port}),r}function E(e,t){t&&e.setStatus({code:r.SpanStatusCode.ERROR,message:t.message}),e.end()}let d=class e extends a.InstrumentationBase{constructor(e={}){super(c,p,e),this._semconvStability=e.semconvStability?e.semconvStability:a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig(e),this._semconvStability=e.semconvStability?e.semconvStability:a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[new a.InstrumentationNodeModuleDefinition("redis",[">=2.6.0 <4"],e=>(a.isWrapped(e.RedisClient.prototype.internal_send_command)&&this._unwrap(e.RedisClient.prototype,"internal_send_command"),this._wrap(e.RedisClient.prototype,"internal_send_command",this._getPatchInternalSendCommand()),a.isWrapped(e.RedisClient.prototype.create_stream)&&this._unwrap(e.RedisClient.prototype,"create_stream"),this._wrap(e.RedisClient.prototype,"create_stream",this._getPatchCreateStream()),a.isWrapped(e.createClient)&&this._unwrap(e,"createClient"),this._wrap(e,"createClient",this._getPatchCreateClient()),e),e=>{void 0!==e&&(this._unwrap(e.RedisClient.prototype,"internal_send_command"),this._unwrap(e.RedisClient.prototype,"create_stream"),this._unwrap(e,"createClient"))})]}_getPatchInternalSendCommand(){let t=this;return function(n){return function(i){if(1!=arguments.length||"object"!=typeof i)return n.apply(this,arguments);let c=t.getConfig(),p=void 0===r.trace.getSpan(r.context.active());if(!0===c.requireParentSpan&&p)return n.apply(this,arguments);let _=c?.dbStatementSerializer||l.defaultDbStatementSerializer,T={};t._semconvStability&a.SemconvStability.OLD&&Object.assign(T,{[u.ATTR_DB_SYSTEM]:u.DB_SYSTEM_VALUE_REDIS,[u.ATTR_DB_STATEMENT]:_(i.command,i.args)}),t._semconvStability&a.SemconvStability.STABLE&&Object.assign(T,{[s.ATTR_DB_SYSTEM_NAME]:u.DB_SYSTEM_NAME_VALUE_REDIS,[s.ATTR_DB_OPERATION_NAME]:i.command,[s.ATTR_DB_QUERY_TEXT]:_(i.command,i.args)}),T[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let S=t.tracer.startSpan(`${e.COMPONENT}-${i.command}`,{kind:r.SpanKind.CLIENT,attributes:T});if(this.connection_options){let e={};t._semconvStability&a.SemconvStability.OLD&&Object.assign(e,{[u.ATTR_NET_PEER_NAME]:this.connection_options.host,[u.ATTR_NET_PEER_PORT]:this.connection_options.port}),t._semconvStability&a.SemconvStability.STABLE&&Object.assign(e,{[s.ATTR_SERVER_ADDRESS]:this.connection_options.host,[s.ATTR_SERVER_PORT]:this.connection_options.port}),S.setAttributes(e)}this.address&&t._semconvStability&a.SemconvStability.OLD&&S.setAttribute(u.ATTR_DB_CONNECTION_STRING,`redis://${this.address}`);let d=arguments[0].callback;if(d){let e=r.context.active();arguments[0].callback=function(n,o){if(c?.responseHook){let e=c.responseHook;a.safeExecuteInTheMiddle(()=>{e(S,i.command,i.args,o)},e=>{e&&t._diag.error("Error executing responseHook",e)},!0)}return E(S,n),r.context.with(e,d,this,...arguments)}}try{return n.apply(this,arguments)}catch(e){throw E(S,e),e}}}}_getPatchCreateClient(){return function(e){return function(){let t=e.apply(this,arguments);return r.context.bind(r.context.active(),t)}}}_getPatchCreateStream(){return function(e){return function(){return Object.prototype.hasOwnProperty.call(this,"stream")||Object.defineProperty(this,"stream",{get(){return this._patched_redis_stream},set(e){r.context.bind(r.context.active(),e),this._patched_redis_stream=e}}),e.apply(this,arguments)}}}};d.COMPONENT="redis";let g=class e extends a.InstrumentationBase{constructor(e={}){super(c,p,e),this._semconvStability=e.semconvStability?e.semconvStability:a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig(e),this._semconvStability=e.semconvStability?e.semconvStability:a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[this._getInstrumentationNodeModuleDefinition("@redis/client"),this._getInstrumentationNodeModuleDefinition("@node-redis/client")]}_getInstrumentationNodeModuleDefinition(e){let t=new i.InstrumentationNodeModuleFile(`${e}/dist/lib/commander.js`,["^1.0.0"],(e,t)=>{let n=e.transformCommandArguments;if(!n)return this._diag.error("internal instrumentation error, missing transformCommandArguments function"),e;let r=t?.startsWith("1.0.")?"extendWithCommands":"attachCommands";return a.isWrapped(e?.[r])&&this._unwrap(e,r),this._wrap(e,r,this._getPatchExtendWithCommands(n)),e},e=>{a.isWrapped(e?.extendWithCommands)&&this._unwrap(e,"extendWithCommands"),a.isWrapped(e?.attachCommands)&&this._unwrap(e,"attachCommands")}),n=new i.InstrumentationNodeModuleFile(`${e}/dist/lib/client/multi-command.js`,["^1.0.0",">=5.0.0 <5.12.0"],e=>{let t=e?.default?.prototype;return a.isWrapped(t?.exec)&&this._unwrap(t,"exec"),this._wrap(t,"exec",this._getPatchMultiCommandsExec(!1)),a.isWrapped(t?.execAsPipeline)&&this._unwrap(t,"execAsPipeline"),this._wrap(t,"execAsPipeline",this._getPatchMultiCommandsExec(!0)),a.isWrapped(t?.addCommand)&&this._unwrap(t,"addCommand"),this._wrap(t,"addCommand",this._getPatchMultiCommandsAddCommand()),e},e=>{let t=e?.default?.prototype;a.isWrapped(t?.exec)&&this._unwrap(t,"exec"),a.isWrapped(t?.execAsPipeline)&&this._unwrap(t,"execAsPipeline"),a.isWrapped(t?.addCommand)&&this._unwrap(t,"addCommand")}),r=new i.InstrumentationNodeModuleFile(`${e}/dist/lib/client/index.js`,["^1.0.0",">=5.0.0 <5.12.0"],e=>{let t=e?.default?.prototype;return t?.multi&&(a.isWrapped(t?.multi)&&this._unwrap(t,"multi"),this._wrap(t,"multi",this._getPatchRedisClientMulti())),t?.MULTI&&(a.isWrapped(t?.MULTI)&&this._unwrap(t,"MULTI"),this._wrap(t,"MULTI",this._getPatchRedisClientMulti())),a.isWrapped(t?.sendCommand)&&this._unwrap(t,"sendCommand"),this._wrap(t,"sendCommand",this._getPatchRedisClientSendCommand()),a.isWrapped(t?.connect)&&this._unwrap(t,"connect"),this._wrap(t,"connect",this._getPatchedClientConnect()),e},e=>{let t=e?.default?.prototype;a.isWrapped(t?.multi)&&this._unwrap(t,"multi"),a.isWrapped(t?.MULTI)&&this._unwrap(t,"MULTI"),a.isWrapped(t?.sendCommand)&&this._unwrap(t,"sendCommand"),a.isWrapped(t?.connect)&&this._unwrap(t,"connect")});return new a.InstrumentationNodeModuleDefinition(e,["^1.0.0",">=5.0.0 <5.12.0"],e=>e,()=>{},[t,n,r])}_getPatchExtendWithCommands(e){let t=this;return function(n){return function(r){if(r?.BaseClass?.name!=="RedisClient")return n.apply(this,arguments);let o=r.executor;return r.executor=function(n,r){let a=e(n,r).args;return t._traceClientCommand(o,this,arguments,a)},n.apply(this,arguments)}}}_getPatchMultiCommandsExec(e){let t=this;return function(n){return function(){let r=n.apply(this,arguments);return"function"!=typeof r?.then?(t._diag.error("non-promise result when patching exec/execAsPipeline"),r):r.then(n=>{let r=this[_];return t._endSpansWithRedisReplies(r,n,e),n}).catch(n=>{let r=this[_];if(r){let o="MultiErrorReply"===n.constructor.name?n.replies:Array(r.length).fill(n);t._endSpansWithRedisReplies(r,o,e)}else t._diag.error("cannot find open spans to end for multi/pipeline");return Promise.reject(n)})}}}_getPatchMultiCommandsAddCommand(){let e=this;return function(t){return function(n){return e._traceClientCommand(t,this,arguments,n)}}}_getPatchRedisClientMulti(){return function(e){return function(){let t=e.apply(this,arguments);return t[T]=this.options,t}}}_getPatchRedisClientSendCommand(){let e=this;return function(t){return function(n){return e._traceClientCommand(t,this,arguments,n)}}}_getPatchedClientConnect(){let t=this;return function(n){return function(){let a=this.options,i=S(t._diag,a,t._semconvStability);i[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let s=t.tracer.startSpan(`${e.COMPONENT}-connect`,{kind:r.SpanKind.CLIENT,attributes:i});return r.context.with(r.trace.setSpan(r.context.active(),s),()=>n.apply(this)).then(e=>(s.end(),e)).catch(e=>(s.recordException(e),s.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}),s.end(),Promise.reject(e)))}}}_traceClientCommand(t,n,i,c){if(void 0===r.trace.getSpan(r.context.active())&&this.getConfig().requireParentSpan)return t.apply(n,i);let p=n.options||n[T],E=c[0],d=c.slice(1),g=this.getConfig().dbStatementSerializer||l.defaultDbStatementSerializer,A=S(this._diag,p,this._semconvStability);this._semconvStability&a.SemconvStability.STABLE&&(A[s.ATTR_DB_OPERATION_NAME]=E);try{let e=g(E,d);null!=e&&(this._semconvStability&a.SemconvStability.OLD&&(A[u.ATTR_DB_STATEMENT]=e),this._semconvStability&a.SemconvStability.STABLE&&(A[s.ATTR_DB_QUERY_TEXT]=e))}catch(e){this._diag.error("dbStatementSerializer throw an exception",e,{commandName:E})}A[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let m=this.tracer.startSpan(`${e.COMPONENT}-${E}`,{kind:r.SpanKind.CLIENT,attributes:A}),R=r.context.with(r.trace.setSpan(r.context.active(),m),()=>t.apply(n,i));return"function"==typeof R?.then?R.then(e=>{this._endSpanWithResponse(m,E,d,e,void 0)},e=>{this._endSpanWithResponse(m,E,d,null,e)}):(R[_]=R[_]||[],R[_].push({span:m,commandName:E,commandArgs:d})),R}_endSpansWithRedisReplies(e,t,n=!1){if(!e)return this._diag.error("cannot find open spans to end for redis multi/pipeline");if(t.length!==e.length)return this._diag.error("number of multi command spans does not match response from redis");let r=e.map(e=>e.commandName),o=r.every(e=>e===r[0])?(n?"PIPELINE ":"MULTI ")+r[0]:n?"PIPELINE":"MULTI";for(let n=0;n<e.length;n++){let{span:i,commandArgs:l}=e[n],u=t[n],[c,p]=u instanceof Error?[null,u]:[u,void 0];this._semconvStability&a.SemconvStability.STABLE&&i.setAttribute(s.ATTR_DB_OPERATION_NAME,o),this._endSpanWithResponse(i,r[n],l,c,p)}}_endSpanWithResponse(e,t,n,o,a){let{responseHook:i}=this.getConfig();if(!a&&i)try{i(e,t,n,o)}catch(e){this._diag.error("responseHook throw an exception",e)}a&&(e.recordException(a),e.setStatus({code:r.SpanStatusCode.ERROR,message:a?.message})),e.end()}};g.COMPONENT="redis";let A={requireParentSpan:!1};class m extends a.InstrumentationBase{constructor(e={}){super(c,p,{...A,...e}),this.initialized=!1,this.instrumentationV2_V3=new d(this.getConfig()),this.instrumentationV4_V5=new g(this.getConfig()),this.initialized=!0}setConfig(e={}){let t={...A,...e};super.setConfig(t),this.initialized&&(this.instrumentationV2_V3.setConfig(t),this.instrumentationV4_V5.setConfig(t))}init(){}getModuleDefinitions(){return[...this.instrumentationV2_V3.getModuleDefinitions(),...this.instrumentationV4_V5.getModuleDefinitions()]}setTracerProvider(e){super.setTracerProvider(e),this.initialized&&(this.instrumentationV2_V3.setTracerProvider(e),this.instrumentationV4_V5.setTracerProvider(e))}enable(){super.enable(),this.initialized&&(this.instrumentationV2_V3.enable(),this.instrumentationV4_V5.enable())}disable(){super.disable(),this.initialized&&(this.instrumentationV2_V3.disable(),this.instrumentationV4_V5.disable())}}n.RedisInstrumentation=m},249659,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(43643),a=e.r(9597),i=e.r(439910),s=e.r(26148),l=e.r(551284),u=e.r(543610),c="Redis";n._redisOptions={};let p=(e,t,o,a)=>{let i=s.getCacheKeySafely(t,o),l=s.getCacheOperation(t);if(!i||!l||!n._redisOptions.cachePrefixes||!s.shouldConsiderForCache(t,i,n._redisOptions.cachePrefixes))return;let u=r.spanToJSON(e).data,c=u["net.peer.name"]??u["server.address"],p=u["net.peer.port"]??u["server.port"];p&&c&&e.setAttributes({"network.peer.address":c,"network.peer.port":p});let _=s.calculateCacheItemSize(a);_&&e.setAttribute(r.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,_),s.isInCommands(s.GET_COMMANDS,t)&&void 0!==_&&e.setAttribute(r.SEMANTIC_ATTRIBUTE_CACHE_HIT,_>0),e.setAttributes({[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:l,[r.SEMANTIC_ATTRIBUTE_CACHE_KEY]:i});let T=i.join(", ");e.updateName(n._redisOptions.maxCacheKeyLength?r.truncate(T,n._redisOptions.maxCacheKeyLength):T)},_=a.generateInstrumentOnce(`${c}.IORedis`,()=>new l.IORedisInstrumentation({responseHook:p})),T=a.generateInstrumentOnce(`${c}.Redis`,()=>new u.RedisInstrumentation({responseHook:p})),S=Object.assign(()=>{_(),T(),Promise.resolve().then(()=>o.subscribeRedisDiagnosticChannels(i.tracingChannel,p))},{id:c}),E=r.defineIntegration((e={})=>({name:c,setupOnce(){n._redisOptions=e,S()}}));n.cacheResponseHook=p,n.instrumentRedis=S,n.redisIntegration=E},347658,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.EVENT_LISTENERS_SET=Symbol("opentelemetry.instrumentation.pg.eventListenersSet")},121018,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).PG_VALUES="db.postgresql.values",r.PG_PLAN="db.postgresql.plan",r.IDLE_TIMEOUT_MILLIS="db.postgresql.idle.timeout.millis",r.MAX_CLIENT="db.postgresql.max.client",r);n.AttributeNames=o},416887,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_CLIENT_CONNECTION_POOL_NAME="db.client.connection.pool.name",n.ATTR_DB_CLIENT_CONNECTION_STATE="db.client.connection.state",n.ATTR_DB_CONNECTION_STRING="db.connection_string",n.ATTR_DB_NAME="db.name",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE="idle",n.DB_CLIENT_CONNECTION_STATE_VALUE_USED="used",n.DB_SYSTEM_VALUE_POSTGRESQL="postgresql",n.METRIC_DB_CLIENT_CONNECTION_COUNT="db.client.connection.count",n.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS="db.client.connection.pending_requests"},231869,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).QUERY_PREFIX="pg.query",r.CONNECT="pg.connect",r.POOL_CONNECT="pg-pool.connect",r);n.SpanNames=o},468100,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(121018),a=e.r(216835),i=e.r(416887),s=e.r(777884),l=e.r(231869);function u(e,t){if(!t)return l.SpanNames.QUERY_PREFIX;let n="string"==typeof t.name&&t.name?t.name:c(t.text);return`${l.SpanNames.QUERY_PREFIX}:${n}${e?` ${e}`:""}`}function c(e){let t=e.trim(),n=t.indexOf(" "),r=-1===n?t:t.slice(0,n);return(r=r.toUpperCase()).endsWith(";")?r.slice(0,-1):r}function p(e){try{let t=new URL(e);return t.username="",t.password="",t.toString()}catch(e){return"postgresql://localhost:5432/"}}function _(e){if("connectionString"in e&&e.connectionString)return p(e.connectionString);let t=e.host||"localhost",n=e.port||5432,r=e.database||"";return`postgresql://${t}:${n}/${r}`}function T(e){if(Number.isInteger(e))return e}function S(e,t){let n={};return t&s.SemconvStability.OLD&&(n={...n,[i.ATTR_DB_SYSTEM]:i.DB_SYSTEM_VALUE_POSTGRESQL,[i.ATTR_DB_NAME]:e.database,[i.ATTR_DB_CONNECTION_STRING]:_(e),[i.ATTR_DB_USER]:e.user,[i.ATTR_NET_PEER_NAME]:e.host,[i.ATTR_NET_PEER_PORT]:T(e.port)}),t&s.SemconvStability.STABLE&&(n={...n,[a.ATTR_DB_SYSTEM_NAME]:a.DB_SYSTEM_NAME_VALUE_POSTGRESQL,[a.ATTR_DB_NAMESPACE]:e.namespace,[a.ATTR_SERVER_ADDRESS]:e.host,[a.ATTR_SERVER_PORT]:T(e.port)}),n}function E(e,t,n){"function"==typeof e.responseHook&&s.safeExecuteInTheMiddle(()=>{e.responseHook(t,{data:n})},e=>{e&&r.diag.error("Error running response hook",e)},!0)}function d(e){let t=e?.name??"PostgreSQLError",n=e?.code??"UNKNOWN";return`PostgreSQL error of type '${t}' occurred (code: ${n})`}n.getConnectionString=_,n.getErrorMessage=function(e){return"object"==typeof e&&null!==e&&"message"in e?String(e.message):void 0},n.getPoolName=function(e){let t="";return(t+=(e?.host?`${e.host}`:"unknown_host")+":"+(e?.port?`${e.port}`:"unknown_port")+"/"+(e?.database?`${e.database}`:"unknown_database")).trim()},n.getQuerySpanName=u,n.getSemanticAttributesFromConnection=S,n.getSemanticAttributesFromPoolConnection=function(e,t){let n;try{n=e.connectionString?new URL(e.connectionString):void 0}catch(e){n=void 0}let r={[o.AttributeNames.IDLE_TIMEOUT_MILLIS]:e.idleTimeoutMillis,[o.AttributeNames.MAX_CLIENT]:e.maxClient};return t&s.SemconvStability.OLD&&(r={...r,[i.ATTR_DB_SYSTEM]:i.DB_SYSTEM_VALUE_POSTGRESQL,[i.ATTR_DB_NAME]:n?.pathname.slice(1)??e.database,[i.ATTR_DB_CONNECTION_STRING]:_(e),[i.ATTR_NET_PEER_NAME]:n?.hostname??e.host,[i.ATTR_NET_PEER_PORT]:Number(n?.port)||T(e.port),[i.ATTR_DB_USER]:n?.username??e.user}),t&s.SemconvStability.STABLE&&(r={...r,[a.ATTR_DB_SYSTEM_NAME]:a.DB_SYSTEM_NAME_VALUE_POSTGRESQL,[a.ATTR_DB_NAMESPACE]:e.namespace,[a.ATTR_SERVER_ADDRESS]:n?.hostname??e.host,[a.ATTR_SERVER_PORT]:Number(n?.port)||T(e.port)}),r},n.handleConfigQuery=function(e,t,n,l){let{connectionParameters:c}=this,p=u(c.database,l),_=e.startSpan(p,{kind:r.SpanKind.CLIENT,attributes:S(c,n)});if(!l)return _;if(l.text&&(n&s.SemconvStability.OLD&&_.setAttribute(i.ATTR_DB_STATEMENT,l.text),n&s.SemconvStability.STABLE&&_.setAttribute(a.ATTR_DB_QUERY_TEXT,l.text)),t.enhancedDatabaseReporting&&Array.isArray(l.values))try{let e=l.values.map(e=>null==e?"null":e instanceof Buffer?e.toString():"object"!=typeof e?e.toString():"function"==typeof e.toPostgres?e.toPostgres():JSON.stringify(e));_.setAttribute(o.AttributeNames.PG_VALUES,e)}catch(e){r.diag.error("failed to stringify ",l.values,e)}return"string"==typeof l.name&&_.setAttribute(o.AttributeNames.PG_PLAN,l.name),_},n.handleExecutionResult=E,n.isObjectWithTextString=function(e){return"object"==typeof e&&"string"==typeof e?.text},n.parseAndMaskConnectionString=p,n.parseNormalizedOperationName=c,n.patchCallback=function(e,t,n,o,i){return function(s,l){s?(Object.prototype.hasOwnProperty.call(s,"code")&&(o[a.ATTR_ERROR_TYPE]=s.code),s instanceof Error&&t.recordException(d(s)),t.setStatus({code:r.SpanStatusCode.ERROR,message:s.message})):E(e,t,l),i(),t.end(),n.call(this,s,l)}},n.patchCallbackPGPool=function(e,t){return function(n,o,a){n&&(n instanceof Error&&e.recordException(d(n)),e.setStatus({code:r.SpanStatusCode.ERROR,message:n.message})),e.end(),t.call(this,n,o,a)}},n.patchClientConnectCallback=function(e,t){return function(n){n&&(n instanceof Error&&e.recordException(d(n)),e.setStatus({code:r.SpanStatusCode.ERROR,message:n.message})),e.end(),t.apply(this,arguments)}},n.sanitizedErrorMessage=d,n.shouldSkipInstrumentation=function(e){return!0===e.requireParentSpan&&void 0===r.trace.getSpan(r.context.active())},n.updateCounter=function(e,t,n,r,o){let a=t.totalCount,s=t.waitingCount,l=t.idleCount,u=a-l;return n.add(u-o.used,{[i.ATTR_DB_CLIENT_CONNECTION_STATE]:i.DB_CLIENT_CONNECTION_STATE_VALUE_USED,[i.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:e}),n.add(l-o.idle,{[i.ATTR_DB_CLIENT_CONNECTION_STATE]:i.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE,[i.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:e}),r.add(s-o.pending,{[i.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:e}),{used:u,idle:l,pending:s}}},746740,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(102335),a=e.r(92405),i=e.r(347658),s=e.r(468100),l=e.r(513857),u=e.r(513128),c=e.r(231869),p=e.r(216835),_=e.r(416887);function T(e){return"Module"===e[Symbol.toStringTag]?e.default:e}class S extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-pg",u.SDK_VERSION,e),this._connectionsCounter={used:0,idle:0,pending:0},this._semconvStability=r.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}_updateMetricInstruments(){this._operationDuration=this.meter.createHistogram(p.METRIC_DB_CLIENT_OPERATION_DURATION,{description:"Duration of database client operations.",unit:"s",valueType:a.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.001,.005,.01,.05,.1,.5,1,5,10]}}),this._connectionsCounter={idle:0,pending:0,used:0},this._connectionsCount=this.meter.createUpDownCounter(_.METRIC_DB_CLIENT_CONNECTION_COUNT,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"}),this._connectionPendingRequests=this.meter.createUpDownCounter(_.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS,{description:"The number of current pending requests for an open connection.",unit:"{connection}"})}init(){let e=[">=8.0.3 <9"],t=new o.InstrumentationNodeModuleFile("pg/lib/native/client.js",e,this._patchPgClient.bind(this),this._unpatchPgClient.bind(this)),n=new o.InstrumentationNodeModuleFile("pg/lib/client.js",e,this._patchPgClient.bind(this),this._unpatchPgClient.bind(this));return[new r.InstrumentationNodeModuleDefinition("pg",e,e=>{let t=T(e);return this._patchPgClient(t.Client),e},e=>{let t=T(e);return this._unpatchPgClient(t.Client),e},[n,t]),new r.InstrumentationNodeModuleDefinition("pg-pool",[">=2.0.0 <4"],e=>{let t=T(e);return r.isWrapped(t.prototype.connect)&&this._unwrap(t.prototype,"connect"),this._wrap(t.prototype,"connect",this._getPoolConnectPatch()),t},e=>{let t=T(e);r.isWrapped(t.prototype.connect)&&this._unwrap(t.prototype,"connect")})]}_patchPgClient(e){if(!e)return;let t=T(e);return r.isWrapped(t.prototype.query)&&this._unwrap(t.prototype,"query"),r.isWrapped(t.prototype.connect)&&this._unwrap(t.prototype,"connect"),this._wrap(t.prototype,"query",this._getClientQueryPatch()),this._wrap(t.prototype,"connect",this._getClientConnectPatch()),e}_unpatchPgClient(e){let t=T(e);return r.isWrapped(t.prototype.query)&&this._unwrap(t.prototype,"query"),r.isWrapped(t.prototype.connect)&&this._unwrap(t.prototype,"connect"),e}_getClientConnectPatch(){let e=this;return t=>function(n){let r=e.getConfig();if(s.shouldSkipInstrumentation(r)||r.ignoreConnectSpans)return t.call(this,n);let o=e.tracer.startSpan(c.SpanNames.CONNECT,{kind:a.SpanKind.CLIENT,attributes:s.getSemanticAttributesFromConnection(this,e._semconvStability)});if(n){let e=a.trace.getSpan(a.context.active());n=s.patchClientConnectCallback(o,n),e&&(n=a.context.bind(a.context.active(),n))}let i=a.context.with(a.trace.setSpan(a.context.active(),o),()=>t.call(this,n));return E(o,i)}}recordOperationDuration(e,t){let n={},o=[p.ATTR_DB_NAMESPACE,p.ATTR_ERROR_TYPE,p.ATTR_SERVER_PORT,p.ATTR_SERVER_ADDRESS,p.ATTR_DB_OPERATION_NAME];this._semconvStability&r.SemconvStability.OLD&&o.push(_.ATTR_DB_SYSTEM),this._semconvStability&r.SemconvStability.STABLE&&o.push(p.ATTR_DB_SYSTEM_NAME),o.forEach(t=>{t in e&&(n[t]=e[t])});let a=u.timestampInSeconds()-t;this._operationDuration.record(a,n)}_getClientQueryPatch(){let e=this;return t=>(this._diag.debug("Patching pg.Client.prototype.query"),function(...n){let o;if(s.shouldSkipInstrumentation(e.getConfig()))return t.apply(this,n);let i=u.timestampInSeconds(),c=n[0],T="string"==typeof c,S=s.isObjectWithTextString(c),E=T?{text:c,values:Array.isArray(n[1])?n[1]:void 0}:S?{...c,name:c.name,text:c.text,values:c.values??(Array.isArray(n[1])?n[1]:void 0)}:void 0,d={[_.ATTR_DB_SYSTEM]:_.DB_SYSTEM_VALUE_POSTGRESQL,[p.ATTR_DB_NAMESPACE]:this.database,[p.ATTR_SERVER_PORT]:this.connectionParameters.port,[p.ATTR_SERVER_ADDRESS]:this.connectionParameters.host};E?.text&&(d[p.ATTR_DB_OPERATION_NAME]=s.parseNormalizedOperationName(E?.text));let g=()=>{e.recordOperationDuration(d,i)},A=e.getConfig(),m=s.handleConfigQuery.call(this,e.tracer,A,e._semconvStability,E);if(A.addSqlCommenterCommentToQueries&&(T?n[0]=l.addSqlCommenterComment(m,c):!S||"name"in c||(n[0]={...c,text:l.addSqlCommenterComment(m,c.text)})),n.length>0){let t=a.trace.getSpan(a.context.active());if("function"==typeof n[n.length-1])n[n.length-1]=s.patchCallback(A,m,n[n.length-1],d,g),t&&(n[n.length-1]=a.context.bind(a.context.active(),n[n.length-1]));else if("function"==typeof E?.callback){let r=s.patchCallback(e.getConfig(),m,E.callback,d,g);t&&(r=a.context.bind(a.context.active(),r)),n[0].callback=r}}let{requestHook:R}=A;"function"==typeof R&&E&&r.safeExecuteInTheMiddle(()=>{let{database:e,host:t,port:n,user:r}=this.connectionParameters;R(m,{connection:{database:e,host:t,port:n,user:r},query:{text:E.text,values:E.values,name:E.name}})},t=>{t&&e._diag.error("Error running query hook",t)},!0);try{o=t.apply(this,n)}catch(e){throw e instanceof Error&&m.recordException(s.sanitizedErrorMessage(e)),m.setStatus({code:a.SpanStatusCode.ERROR,message:s.getErrorMessage(e)}),m.end(),e}return o instanceof Promise?o.then(t=>new Promise(n=>{s.handleExecutionResult(e.getConfig(),m,t),g(),m.end(),n(t)})).catch(e=>new Promise((t,n)=>{e instanceof Error&&m.recordException(s.sanitizedErrorMessage(e)),m.setStatus({code:a.SpanStatusCode.ERROR,message:e.message}),g(),m.end(),n(e)})):o})}_setPoolConnectEventListeners(e){if(e[i.EVENT_LISTENERS_SET])return;let t=s.getPoolName(e.options);e.on("connect",()=>{this._connectionsCounter=s.updateCounter(t,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("acquire",()=>{this._connectionsCounter=s.updateCounter(t,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("remove",()=>{this._connectionsCounter=s.updateCounter(t,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("release",()=>{this._connectionsCounter=s.updateCounter(t,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e[i.EVENT_LISTENERS_SET]=!0}_getPoolConnectPatch(){let e=this;return t=>function(n){let r=e.getConfig();if(s.shouldSkipInstrumentation(r)||(e._setPoolConnectEventListeners(this),r.ignoreConnectSpans))return t.call(this,n);let o=e.tracer.startSpan(c.SpanNames.POOL_CONNECT,{kind:a.SpanKind.CLIENT,attributes:s.getSemanticAttributesFromPoolConnection(this.options,e._semconvStability)});if(n){let e=a.trace.getSpan(a.context.active());n=s.patchCallbackPGPool(o,n),e&&(n=a.context.bind(a.context.active(),n))}let i=a.context.with(a.trace.setSpan(a.context.active(),o),()=>t.call(this,n));return E(o,i)}}}function E(e,t){return t instanceof Promise?a.context.bind(a.context.active(),t.then(t=>(e.end(),t)).catch(t=>(t instanceof Error&&e.recordException(s.sanitizedErrorMessage(t)),e.setStatus({code:a.SpanStatusCode.ERROR,message:s.getErrorMessage(t)}),e.end(),Promise.reject(t)))):t}n.PgInstrumentation=S},575879,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(746740),o=e.r(513128),a=e.r(9597),i="Postgres",s=a.generateInstrumentOnce(i,r.PgInstrumentation,e=>({requireParentSpan:!0,requestHook(e){a.addOriginToSpan(e,"auto.db.otel.postgres")},ignoreConnectSpans:e?.ignoreConnectSpans??!1})),l=o.defineIntegration(e=>({name:i,setupOnce(){s(e)}}));n.instrumentPostgres=s,n.postgresIntegration=l},214177,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(102335),i=e.r(216835),s=e.r(513128),l=e.r(9597),u=e.r(23602),c="PostgresJs",p=[">=3.0.0 <4"],_=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,T=Symbol.for("sentry.query.from.instrumented.sql"),S=l.generateInstrumentOnce(c,e=>new E({requireParentSpan:e?.requireParentSpan??!0,requestHook:e?.requestHook}));class E extends o.InstrumentationBase{constructor(e){super("sentry-postgres-js",s.SDK_VERSION,e)}init(){let e=new o.InstrumentationNodeModuleDefinition("postgres",p,e=>{try{return this._patchPostgres(e)}catch(t){return u.DEBUG_BUILD&&s.debug.error("Failed to patch postgres module:",t),e}},e=>e);return["src","cf/src","cjs/src"].forEach(t=>{e.files.push(new a.InstrumentationNodeModuleFile(`postgres/${t}/query.js`,p,this._patchQueryPrototype.bind(this),this._unpatchQueryPrototype.bind(this)))}),e}_patchPostgres(e){let t="function"==typeof e,n=t?e:e.default;if("function"!=typeof n)return u.DEBUG_BUILD&&s.debug.warn("postgres module does not export a function. Skipping instrumentation."),e;let r=this,o=function(...e){let t=Reflect.construct(n,e);if(!t||"function"!=typeof t)return u.DEBUG_BUILD&&s.debug.warn("postgres() did not return a valid instance"),t;let o=r.getConfig();return s.instrumentPostgresJsSql(t,{requireParentSpan:o.requireParentSpan,requestHook:o.requestHook})};for(let e of(Object.setPrototypeOf(o,n),Object.setPrototypeOf(o.prototype,n.prototype),Object.getOwnPropertyNames(n)))if(!["length","name","prototype"].includes(e)){let t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(o,e,t)}return t?o:(s.replaceExports(e,"default",o),e)}_shouldCreateSpans(){let e=this.getConfig();return void 0!==r.trace.getSpan(r.context.active())||!e.requireParentSpan}_setOperationName(e,t,n){if(n)return void e.setAttribute(i.ATTR_DB_OPERATION_NAME,n);let r=t?.match(_);r?.[1]&&e.setAttribute(i.ATTR_DB_OPERATION_NAME,r[1].toUpperCase())}_reconstructQuery(e){if(e?.length)return 1===e.length?e[0]||void 0:e.reduce((e,t,n)=>0===n?t:`${e}$${n}${t}`,"")}_sanitizeSqlQuery(e){return e?e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(/(?<!\$)-?\b\d+\b/g,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)"):"Unknown SQL Query"}_patchQueryPrototype(e){let t=this,n=e.Query.prototype.handle;return e.Query.prototype.handle=async function(...e){if(this.executed||this[T]||!t._shouldCreateSpans())return n.apply(this,e);let r=t._reconstructQuery(this.strings),a=t._sanitizeSqlQuery(r);return s.startSpanManual({name:a||"postgresjs.query",op:"db"},r=>{l.addOriginToSpan(r,"auto.db.postgresjs"),r.setAttributes({[i.ATTR_DB_SYSTEM_NAME]:"postgres",[i.ATTR_DB_QUERY_TEXT]:a});let{requestHook:p}=t.getConfig();p&&o.safeExecuteInTheMiddle(()=>p(r,a,void 0),e=>{e&&(r.setAttribute("sentry.hook.error","requestHook failed"),u.DEBUG_BUILD&&s.debug.error(`Error in requestHook for ${c} integration:`,e))},!0);let _=this.resolve;this.resolve=new Proxy(_,{apply:(e,n,o)=>{try{t._setOperationName(r,a,o?.[0]?.command),r.end()}catch(e){u.DEBUG_BUILD&&s.debug.error("Error ending span in resolve callback:",e)}return Reflect.apply(e,n,o)}});let T=this.reject;this.reject=new Proxy(T,{apply:(e,n,o)=>{try{r.setStatus({code:s.SPAN_STATUS_ERROR,message:o?.[0]?.message||"unknown_error"}),r.setAttribute(i.ATTR_DB_RESPONSE_STATUS_CODE,o?.[0]?.code||"unknown"),r.setAttribute(i.ATTR_ERROR_TYPE,o?.[0]?.name||"unknown"),t._setOperationName(r,a),r.end()}catch(e){u.DEBUG_BUILD&&s.debug.error("Error ending span in reject callback:",e)}return Reflect.apply(e,n,o)}});try{return n.apply(this,e)}catch(e){throw r.setStatus({code:s.SPAN_STATUS_ERROR,message:e instanceof Error?e.message:"unknown_error"}),r.end(),e}})},e.Query.prototype.handle.__sentry_original__=n,e}_unpatchQueryPrototype(e){return e.Query.prototype.handle.__sentry_original__&&(e.Query.prototype.handle=e.Query.prototype.handle.__sentry_original__),e}}let d=s.defineIntegration(e=>({name:c,setupOnce(){S(e)}}));n.PostgresJsInstrumentation=E,n.instrumentPostgresJs=S,n.postgresJsIntegration=d},879226,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r="PRISMA_INSTRUMENTATION",o="V7_PRISMA_INSTRUMENTATION",a=globalThis;n.clearGlobalTracingHelper=function(){delete a[o],delete a[r]},n.getGlobalTracingHelper=function(){let e=a[o];if(e?.helper)return e.helper;let t=a[r];return t?.helper},n.setGlobalTracingHelper=function(e){let t={helper:e};a[o]=t,a[r]=t}},443540,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o="true"===process.env.PRISMA_SHOW_ALL_TRACES;function a(e,t){var n;return null!=(n=t)&&"function"==typeof n.then?t.then(t=>(e.end(),t),t=>{throw e.end(),t}):(e.end(),t)}function i(e,t){return t.some(t=>"string"==typeof t?t===e:t.test(e))}n.ActiveTracingHelper=class{constructor({tracerProvider:e,ignoreSpanTypes:t}){this.tracerProvider=e,this.ignoreSpanTypes=t}isEnabled(){return!0}getTraceParent(e){let t=r.trace.getSpanContext(e??r.context.active());return t?`00-${t.traceId}-${t.spanId}-0${t.traceFlags}`:"00-10-10-00"}dispatchEngineSpans(e){let t=this.tracerProvider.getTracer("prisma"),n=new Map;for(let o of e.filter(e=>null===e.parentId))!function e(t,n,o,a,s){if(i(n.name,s))return;let l={attributes:n.attributes,kind:"client"===n.kind?r.SpanKind.CLIENT:r.SpanKind.INTERNAL,startTime:n.startTime};t.startActiveSpan(n.name,l,r=>{for(let i of(a.set(n.id,r.spanContext().spanId),n.links&&r.addLinks(n.links.flatMap(e=>{let t=a.get(e);return t?{context:{spanId:t,traceId:r.spanContext().traceId,traceFlags:r.spanContext().traceFlags}}:[]})),o.filter(e=>e.parentId===n.id)))e(t,i,o,a,s);r.end(n.endTime)})}(t,o,e,n,this.ignoreSpanTypes)}getActiveContext(){return r.context.active()}runInChildSpan(e,t){if("string"==typeof e&&(e={name:e}),e.internal&&!o)return t();let n=this.tracerProvider.getTracer("prisma"),r=e.context??this.getActiveContext(),s=`prisma:client:${e.name}`;if(i(s,this.ignoreSpanTypes))return t();if(!1===e.active){let o=n.startSpan(s,e,r);return a(o,t(o,r))}return n.startActiveSpan(s,e,e=>a(e,t(e,r)))}}},371495,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128).SDK_VERSION;n.MODULE_NAME="@prisma/client",n.NAME="@sentry/instrumentation-prisma",n.SUPPORTED_MODULE_VERSIONS=[">=5.0.0"],n.VERSION=r},178532,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(879226),i=e.r(443540),s=e.r(371495);class l extends o.InstrumentationBase{constructor(e={}){super(s.NAME,s.VERSION,e)}setTracerProvider(e){this.tracerProvider=e}init(){return[new o.InstrumentationNodeModuleDefinition(s.MODULE_NAME,s.SUPPORTED_MODULE_VERSIONS)]}enable(){let e=this._config;a.setGlobalTracingHelper(new i.ActiveTracingHelper({tracerProvider:this.tracerProvider??r.trace.getTracerProvider(),ignoreSpanTypes:e.ignoreSpanTypes??[]}))}disable(){a.clearGlobalTracingHelper()}isEnabled(){return void 0!==a.getGlobalTracingHelper()}}n.PrismaInstrumentation=l},558386,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(9597),i=e.r(178532),s="Prisma";function l(){let e=globalThis.PRISMA_INSTRUMENTATION;return e&&"object"==typeof e&&"helper"in e?e.helper:void 0}class u extends i.PrismaInstrumentation{constructor(e){super(e?.instrumentationConfig)}enable(){super.enable();let e=l();e&&"object"==typeof e&&"dispatchEngineSpans"in e&&(e.createEngineSpan=e=>{let t=r.trace.getTracer("prismaV5Compatibility"),n=t._idGenerator;if(!n)return void o.consoleSandbox(()=>{console.warn("[Sentry] Could not find _idGenerator on tracer, skipping Prisma v5 compatibility - some Prisma spans may be missing!")});try{e.spans.forEach(e=>{var o;let a=(o=e.kind,"client"===o?r.SpanKind.CLIENT:r.SpanKind.INTERNAL),i=e.parent_span_id,s=e.span_id,l=e.trace_id,u=e.links?.map(e=>({context:{traceId:e.trace_id,spanId:e.span_id,traceFlags:r.TraceFlags.SAMPLED}})),c=r.trace.setSpanContext(r.context.active(),{traceId:l,spanId:i,traceFlags:r.TraceFlags.SAMPLED});r.context.with(c,()=>{t._idGenerator={generateTraceId:()=>l,generateSpanId:()=>s},t.startSpan(e.name,{kind:a,links:u,startTime:e.start_time,attributes:e.attributes}).end(e.end_time),t._idGenerator=n})})}finally{t._idGenerator=n}})}}let c=a.generateInstrumentOnce(s,e=>new u(e)),p=o.defineIntegration(e=>({name:s,setupOnce(){c(e)},setup(e){l()&&e.on("spanStart",e=>{let t=o.spanToJSON(e);t.description?.startsWith("prisma:")&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.prisma"),("prisma:engine:db_query"===t.description||"prisma:client:db_query"===t.description)&&t.data["db.query.text"]&&e.updateName(t.data["db.query.text"]),"prisma:engine:db_query"!==t.description||t.data["db.system"]||e.setAttribute("db.system","prisma")})}}));n.instrumentPrisma=c,n.prismaIntegration=p},979382,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=Symbol("hapi-handler-patched"),o=new Set(["onPreAuth","onCredentials","onPostAuth","onPreHandler","onPostHandler","onPreResponse","onRequest"]);n.HapiComponentName="@hapi/hapi",n.HapiLayerType={ROUTER:"router",PLUGIN:"plugin",EXT:"server.ext"},n.HapiLifecycleMethodNames=o,n.handlerPatched=r},380908,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_HTTP_METHOD="http.method"},457422,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).HAPI_TYPE="hapi.type",r.PLUGIN_NAME="hapi.plugin.name",r.EXT_TYPE="server.ext.type",r);n.AttributeNames=o},781566,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(380908),a=e.r(979382),i=e.r(457422),s=e.r(777884),l=e=>"string"==typeof e&&a.HapiLifecycleMethodNames.has(e);n.getExtMetadata=(e,t,n)=>{let r=`ext - ${e}`;return(n&&"method"!==n&&(r=`ext - ${e} - ${n}`),t)?{attributes:{[i.AttributeNames.EXT_TYPE]:e,[i.AttributeNames.HAPI_TYPE]:a.HapiLayerType.EXT,[i.AttributeNames.PLUGIN_NAME]:t},name:`${t}: ${r}`}:{attributes:{[i.AttributeNames.EXT_TYPE]:e,[i.AttributeNames.HAPI_TYPE]:a.HapiLayerType.EXT},name:r}},n.getPluginFromInput=e=>"plugin"in e?"plugin"in e.plugin?e.plugin.plugin:e.plugin:e,n.getPluginName=function(e){return e.name?e.name:e.pkg.name},n.getRouteMetadata=(e,t,n)=>{let l,u={[r.ATTR_HTTP_ROUTE]:e.path};return t&s.SemconvStability.OLD&&(u[o.ATTR_HTTP_METHOD]=e.method),t&s.SemconvStability.STABLE&&(u[r.ATTR_HTTP_REQUEST_METHOD]=e.method),n?(u[i.AttributeNames.HAPI_TYPE]=a.HapiLayerType.PLUGIN,u[i.AttributeNames.PLUGIN_NAME]=n,l=`${n}: route - ${e.path}`):(u[i.AttributeNames.HAPI_TYPE]=a.HapiLayerType.ROUTER,l=`route - ${e.path}`),{attributes:u,name:l}},n.isDirectExtInput=e=>Array.isArray(e)&&e.length<=3&&l(e[0])&&"function"==typeof e[1],n.isLifecycleExtEventObj=e=>{let t=e?.type;return void 0!==t&&l(t)},n.isLifecycleExtType=l,n.isPatchableExtMethod=e=>!Array.isArray(e)},600781,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(469432),a=e.r(777884),i=e.r(513128),s=e.r(979382),l=e.r(781566);class u extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-hapi",i.SDK_VERSION,e),this._semconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return new a.InstrumentationNodeModuleDefinition(s.HapiComponentName,[">=17.0.0 <22"],e=>{let t="Module"===e[Symbol.toStringTag]?e.default:e;return a.isWrapped(t.server)||this._wrap(t,"server",this._getServerPatch.bind(this)),a.isWrapped(t.Server)||this._wrap(t,"Server",this._getServerPatch.bind(this)),t},e=>{let t="Module"===e[Symbol.toStringTag]?e.default:e;this._massUnwrap([t],["server","Server"])})}_getServerPatch(e){let t=this,n=this;return function(r){let o=e.apply(this,[r]);return n._wrap(o,"route",e=>t._getServerRoutePatch.bind(t)(e)),n._wrap(o,"ext",e=>t._getServerExtPatch.bind(t)(e)),n._wrap(o,"register",t._getServerRegisterPatch.bind(t)),o}}_getServerRegisterPatch(e){let t=this;return function(n,r){if(Array.isArray(n))for(let e of n){let n=l.getPluginFromInput(e);t._wrapRegisterHandler(n)}else{let e=l.getPluginFromInput(n);t._wrapRegisterHandler(e)}return e.apply(this,[n,r])}}_getServerExtPatch(e,t){let n=this;return function(...r){if(Array.isArray(r[0])){let e=r[0];for(let r=0;r<e.length;r++){let o=e[r];if(l.isLifecycleExtType(o.type)){let a=n._wrapExtMethods(o.method,o.type,t);o.method=a,e[r]=o}}}else if(l.isDirectExtInput(r)){let o=r[1],a=n._wrapExtMethods(o,r[0],t);return e.apply(this,[r[0],a,r[2]])}else if(l.isLifecycleExtEventObj(r[0])){let o=r[0],a=n._wrapExtMethods(o.method,o.type,t);return o.method=a,e.call(this,o)}return e.apply(this,r)}}_getServerRoutePatch(e,t){let n=this;return function(r){if(Array.isArray(r))for(let e=0;e<r.length;e++){let o=n._wrapRouteHandler.call(n,r[e],t);r[e]=o}else r=n._wrapRouteHandler.call(n,r,t);return e.apply(this,[r])}}_wrapRegisterHandler(e){let t=this,n=l.getPluginName(e),r=e.register,o=this;e.register=function(e,a){return o._wrap(e,"route",e=>t._getServerRoutePatch.bind(t)(e,n)),o._wrap(e,"ext",e=>t._getServerExtPatch.bind(t)(e,n)),r.call(this,e,a)}}_wrapExtMethods(e,t,n){let o=this;if(e instanceof Array)for(let n=0;n<e.length;n++)e[n]=o._wrapExtMethods(e[n],t);else if(l.isPatchableExtMethod(e))return!0===e[s.handlerPatched]?e:(e[s.handlerPatched]=!0,async function(...a){if(void 0===r.trace.getSpan(r.context.active()))return await e.apply(this,a);let i=l.getExtMetadata(t,n,e.name),s=o.tracer.startSpan(i.name,{attributes:i.attributes});try{return await r.context.with(r.trace.setSpan(r.context.active(),s),e,void 0,...a)}catch(e){throw s.recordException(e),s.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}),e}finally{s.end()}});return e}_wrapRouteHandler(e,t){let n=this;if(!0===e[s.handlerPatched])return e;e[s.handlerPatched]=!0;let a=a=>async function(...i){if(void 0===r.trace.getSpan(r.context.active()))return await a.call(this,...i);o.setHttpServerSpanRouteAttribute(e.path);let s=l.getRouteMetadata(e,n._semconvStability,t),u=n.tracer.startSpan(s.name,{attributes:s.attributes});try{return await r.context.with(r.trace.setSpan(r.context.active(),u),()=>a.call(this,...i))}catch(e){throw u.recordException(e),u.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}),e}finally{u.end()}};if("function"==typeof e.handler)e.handler=a(e.handler);else if("function"==typeof e.options){let t=e.options;e.options=function(e){let n=t(e);return"function"==typeof n.handler&&(n.handler=a(n.handler)),n}}else"function"==typeof e.options?.handler&&(e.options.handler=a(e.options.handler));return e}}n.HapiInstrumentation=u},72752,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(600781),o=e.r(513128),a=e.r(9597),i=e.r(23602),s="Hapi",l=a.generateInstrumentOnce(s,()=>new r.HapiInstrumentation),u=o.defineIntegration(()=>({name:s,setupOnce(){l()}})),c={name:"SentryHapiErrorPlugin",version:o.SDK_VERSION,register:async function(e){e.events.on({name:"request",channels:["error"]},(e,t)=>{var n;if(o.getIsolationScope()!==o.getDefaultIsolationScope()){let t=e.route;t.path&&o.getIsolationScope().setTransactionName(`${t.method.toUpperCase()} ${t.path}`)}else i.DEBUG_BUILD&&o.debug.warn("Isolation scope is still the default isolation scope - skipping setting transactionName");t&&"object"==typeof t&&"error"in t&&t.error&&(n=t.error,o.captureException(n,{mechanism:{type:"auto.function.hapi",handled:!1}}))})}};async function p(e){await e.register(c);let t=o.getClient();t&&t.on("spanStart",e=>{var t;let n,r;t=e,r=(n=o.spanToJSON(t).data)["hapi.type"],!n[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&r&&t.setAttributes({[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.hapi",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.hapi`})}),a.ensureIsWrapped(e.register,"hapi")}n.hapiErrorPlugin=c,n.hapiIntegration=u,n.instrumentHapi=l,n.setupHapiErrorHandler=p},873538,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.AttributeNames={HONO_TYPE:"hono.type",HONO_NAME:"hono.name"},n.HonoTypes={MIDDLEWARE:"middleware",REQUEST_HANDLER:"request_handler"}},596209,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(513128),i=e.r(873538);class s extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-hono","0.0.1",e)}init(){return[new o.InstrumentationNodeModuleDefinition("hono",[">=4.0.0 <5"],e=>this._patch(e))]}_patch(e){let t=this;class n extends e.Hono{constructor(...e){super(...e),t._wrap(this,"get",t._patchHandler()),t._wrap(this,"post",t._patchHandler()),t._wrap(this,"put",t._patchHandler()),t._wrap(this,"delete",t._patchHandler()),t._wrap(this,"options",t._patchHandler()),t._wrap(this,"patch",t._patchHandler()),t._wrap(this,"all",t._patchHandler()),t._wrap(this,"on",t._patchOnHandler()),t._wrap(this,"use",t._patchMiddlewareHandler())}}try{e.Hono=n}catch{return{...e,Hono:n}}return e}_patchHandler(){let e=this;return function(t){return function(...n){if("string"==typeof n[0]){let r=n[0];if(1===n.length)return t.apply(this,[r]);let o=n.slice(1);return t.apply(this,[r,...o.map(t=>e._wrapHandler(t))])}return t.apply(this,n.map(t=>e._wrapHandler(t)))}}}_patchOnHandler(){let e=this;return function(t){return function(...n){let r=n.slice(2);return t.apply(this,[...n.slice(0,2),...r.map(t=>e._wrapHandler(t))])}}}_patchMiddlewareHandler(){let e=this;return function(t){return function(...n){if("string"==typeof n[0]){let r=n[0];if(1===n.length)return t.apply(this,[r]);let o=n.slice(1);return t.apply(this,[r,...o.map(t=>e._wrapHandler(t))])}return t.apply(this,n.map(t=>e._wrapHandler(t)))}}}_wrapHandler(e){let t=this;return function(n,o){if(!t.isEnabled())return e.apply(this,[n,o]);let s=n.req.path,l=t.tracer.startSpan(s);return r.context.with(r.trace.setSpan(r.context.active(),l),()=>t._safeExecute(()=>{let r=e.apply(this,[n,o]);if(a.isThenable(r))return r.then(n=>{let r=t._determineHandlerType(n);return l.setAttributes({[i.AttributeNames.HONO_TYPE]:r,[i.AttributeNames.HONO_NAME]:r===i.HonoTypes.REQUEST_HANDLER?s:e.name||"anonymous"}),t.getConfig().responseHook?.(l),n});{let n=t._determineHandlerType(r);return l.setAttributes({[i.AttributeNames.HONO_TYPE]:n,[i.AttributeNames.HONO_NAME]:n===i.HonoTypes.REQUEST_HANDLER?s:e.name||"anonymous"}),t.getConfig().responseHook?.(l),r}},()=>l.end(),e=>{t._handleError(l,e),l.end()}))}}_safeExecute(e,t,n){try{let r=e();return a.isThenable(r)?r.then(()=>t(),e=>n(e)):t(),r}catch(e){throw n(e),e}}_determineHandlerType(e){return void 0===e?i.HonoTypes.MIDDLEWARE:i.HonoTypes.REQUEST_HANDLER}_handleError(e,t){t instanceof Error&&(e.setStatus({code:r.SpanStatusCode.ERROR,message:t.message}),e.recordException(t))}}n.HonoInstrumentation=s},769116,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(513128),a=e.r(9597),i=e.r(23602),s=e.r(873538),l=e.r(596209),u="Hono",c=a.generateInstrumentOnce(u,()=>new l.HonoInstrumentation({responseHook:e=>{!function(e){let t=o.spanToJSON(e).data,n=t[s.AttributeNames.HONO_TYPE];if(t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!n)return;e.setAttributes({[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.hono",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${n}.hono`});let a=t[s.AttributeNames.HONO_NAME];if("string"==typeof a&&e.updateName(a),o.getIsolationScope()===o.getDefaultIsolationScope()){i.DEBUG_BUILD&&o.debug.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let l=t[r.ATTR_HTTP_ROUTE],u=t[r.ATTR_HTTP_REQUEST_METHOD];"string"==typeof l&&"string"==typeof u&&o.getIsolationScope().setTransactionName(`${u} ${l}`)}(e)}})),p=o.defineIntegration(()=>({name:u,setupOnce(){c()}}));n.honoIntegration=p,n.instrumentHono=c,n.setupHonoErrorHandler=function(e,t){e.use(async function(e,t){let n=o.httpRequestToRequestData(e.req);o.getIsolationScope().setSDKProcessingMetadata({normalizedRequest:n}),await t()}),e.use(async function(e,n){await n(),(t?.shouldHandleError||function(e){return e.res.status>=500})(e)&&(e.res.sentry=o.captureException(e.error,{mechanism:{type:"auto.middleware.hono",handled:!1}}))}),a.ensureIsWrapped(e.use,"hono")}},584141,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).ROUTER="router",r.MIDDLEWARE="middleware",r);n.KoaLayerType=o},458760,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).KOA_TYPE="koa.type",r.KOA_NAME="koa.name",r);n.AttributeNames=o},323483,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(584141),o=e.r(458760),a=e.r(216835);n.getMiddlewareMetadata=(e,t,n,i)=>n?{attributes:{[o.AttributeNames.KOA_NAME]:i?.toString(),[o.AttributeNames.KOA_TYPE]:r.KoaLayerType.ROUTER,[a.ATTR_HTTP_ROUTE]:i?.toString()},name:e._matchedRouteName||`router - ${i}`}:{attributes:{[o.AttributeNames.KOA_NAME]:t.name??"middleware",[o.AttributeNames.KOA_TYPE]:r.KoaLayerType.MIDDLEWARE},name:`middleware - ${t.name}`},n.isLayerIgnored=(e,t)=>!!(Array.isArray(t?.ignoreLayersType)&&t?.ignoreLayersType?.includes(e))},589339,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.kLayerPatched=Symbol("koa-layer-patched")},494578,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(584141),i=e.r(513128),s=e.r(323483),l=e.r(469432),u=e.r(589339);class c extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-koa",i.SDK_VERSION,e)}init(){return new o.InstrumentationNodeModuleDefinition("koa",[">=2.0.0 <4"],e=>{let t="Module"===e[Symbol.toStringTag]?e.default:e;return null==t?t:(o.isWrapped(t.prototype.use)&&this._unwrap(t.prototype,"use"),this._wrap(t.prototype,"use",this._getKoaUsePatch.bind(this)),e)},e=>{let t="Module"===e[Symbol.toStringTag]?e.default:e;o.isWrapped(t.prototype.use)&&this._unwrap(t.prototype,"use")})}_getKoaUsePatch(e){let t=this;return function(n){let r;return r=n.router?t._patchRouterDispatch(n):t._patchLayer(n,!1),e.apply(this,[r])}}_patchRouterDispatch(e){r.diag.debug("Patching @koa/router dispatch");let t=e.router;for(let e of t?.stack??[]){let t=e.path,n=e.stack;for(let e=0;e<n.length;e++){let r=n[e];n[e]=this._patchLayer(r,!0,t)}}return e}_patchLayer(e,t,n){let i=t?a.KoaLayerType.ROUTER:a.KoaLayerType.MIDDLEWARE;return!0===e[u.kLayerPatched]||s.isLayerIgnored(i,this.getConfig())?e:"GeneratorFunction"===e.constructor.name||"AsyncGeneratorFunction"===e.constructor.name?(r.diag.debug("ignoring generator-based Koa middleware layer"),e):(e[u.kLayerPatched]=!0,r.diag.debug("patching Koa middleware layer"),async(a,u)=>{if(void 0===r.trace.getSpan(r.context.active()))return e(a,u);let c=s.getMiddlewareMetadata(a,e,t,n),p=this.tracer.startSpan(c.name,{attributes:c.attributes});a._matchedRoute&&l.setHttpServerSpanRouteAttribute(a._matchedRoute.toString());let{requestHook:_}=this.getConfig();_&&o.safeExecuteInTheMiddle(()=>_(p,{context:a,middlewareLayer:e,layerType:i}),e=>{e&&r.diag.error("koa instrumentation: request hook failed",e)},!0);let T=r.trace.setSpan(r.context.active(),p);return r.context.with(T,async()=>{try{return await e(a,u)}catch(e){throw p.recordException(e),e}finally{p.end()}})})}}n.KoaInstrumentation=c},812826,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(494578),o=e.r(216835),a=e.r(513128),i=e.r(9597),s=e.r(23602),l=i.generateInstrumentOnce("Koa",r.KoaInstrumentation,(e={})=>({ignoreLayersType:e.ignoreLayersType,requestHook(e,t){i.addOriginToSpan(e,"auto.http.otel.koa");let n=a.spanToJSON(e).data,r=n["koa.type"];r&&e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_OP,`${r}.koa`);let l=n["koa.name"];if("string"==typeof l&&e.updateName(l||"< unknown >"),a.getIsolationScope()===a.getDefaultIsolationScope()){s.DEBUG_BUILD&&a.debug.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let u=n[o.ATTR_HTTP_ROUTE],c=t.context?.request?.method?.toUpperCase()||"GET";u&&a.getIsolationScope().setTransactionName(`${c} ${u}`)}})),u=a.defineIntegration((e={})=>({name:"Koa",setupOnce(){l(e)}}));n.instrumentKoa=l,n.koaIntegration=u,n.setupKoaErrorHandler=e=>{e.use(async(e,t)=>{try{await t()}catch(e){throw a.captureException(e,{mechanism:{handled:!1,type:"auto.middleware.koa"}}),e}}),i.ensureIsWrapped(e.use,"koa")}},443025,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o,a,i=((r=i||{}).CONNECT_TYPE="connect.type",r.CONNECT_NAME="connect.name",r),s=((o=s||{}).MIDDLEWARE="middleware",o.REQUEST_HANDLER="request_handler",o),l=((a=l||{}).MIDDLEWARE="middleware",a.REQUEST_HANDLER="request handler",a);n.AttributeNames=i,n.ConnectNames=l,n.ConnectTypes=s},244531,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n._LAYERS_STORE_PROPERTY=Symbol("opentelemetry.instrumentation-connect.request-route-stack")},346652,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(244531);n.addNewStackLayer=e=>{!1===Array.isArray(e[o._LAYERS_STORE_PROPERTY])&&Object.defineProperty(e,o._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),e[o._LAYERS_STORE_PROPERTY].push("/");let t=e[o._LAYERS_STORE_PROPERTY].length;return()=>{t===e[o._LAYERS_STORE_PROPERTY].length?e[o._LAYERS_STORE_PROPERTY].pop():r.diag.warn("Connect: Trying to pop the stack multiple time")}},n.generateRoute=e=>e[o._LAYERS_STORE_PROPERTY].reduce((e,t)=>e.replace(/\/+$/,"")+t),n.replaceCurrentStackRoute=(e,t)=>{t&&e[o._LAYERS_STORE_PROPERTY].splice(-1,1,t)}},790750,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(443025),o=e.r(513128),a=e.r(469432),i=e.r(777884),s=e.r(216835),l=e.r(346652),u="anonymous";class c extends i.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-connect",o.SDK_VERSION,e)}init(){return[new i.InstrumentationNodeModuleDefinition("connect",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_patchApp(e){i.isWrapped(e.use)||this._wrap(e,"use",this._patchUse.bind(this)),i.isWrapped(e.handle)||this._wrap(e,"handle",this._patchHandle.bind(this))}_patchConstructor(e){let t=this;return function(...n){let r=e.apply(this,n);return t._patchApp(r),r}}_patchNext(e,t){return function(n){let r=e.apply(this,[n]);return t(),r}}_startSpan(e,t){let n,o,a;e?(n=r.ConnectTypes.REQUEST_HANDLER,a=r.ConnectNames.REQUEST_HANDLER,o=e):(n=r.ConnectTypes.MIDDLEWARE,a=r.ConnectNames.MIDDLEWARE,o=t.name||u);let i=`${a} - ${o}`,l={attributes:{[s.ATTR_HTTP_ROUTE]:e.length>0?e:"/",[r.AttributeNames.CONNECT_TYPE]:n,[r.AttributeNames.CONNECT_NAME]:o}};return this.tracer.startSpan(i,l)}_patchMiddleware(e,t){let n=this,r=4===t.length;function o(){if(!n.isEnabled())return t.apply(this,arguments);let[o,i,s]=r?[1,2,3]:[0,1,2],c=arguments[o],p=arguments[i],_=arguments[s];l.replaceCurrentStackRoute(c,e),e&&a.setHttpServerSpanRouteAttribute(l.generateRoute(c));let T="";T=e?`request handler - ${e}`:`middleware - ${t.name||u}`;let S=n._startSpan(e,t);n._diag.debug("start span",T);let E=!1;function d(){E?n._diag.debug(`span ${S.name} - already finished`):(E=!0,n._diag.debug(`finishing span ${S.name}`),S.end()),p.removeListener("close",d)}return p.addListener("close",d),arguments[s]=n._patchNext(_,d),t.apply(this,arguments)}return Object.defineProperty(o,"length",{value:t.length,writable:!1,configurable:!0}),o}_patchUse(e){let t=this;return function(...n){let r=n[n.length-1],o=n[n.length-2]||"";return n[n.length-1]=t._patchMiddleware(o,r),e.apply(this,n)}}_patchHandle(e){let t=this;return function(){let[n,r]=[0,2],o=arguments[n],a=arguments[r],i=l.addNewStackLayer(o);return"function"==typeof a&&(arguments[r]=t._patchOut(a,i)),e.apply(this,arguments)}}_patchOut(e,t){return function(...n){return t(),Reflect.apply(e,this,n)}}}n.ANONYMOUS_NAME=u,n.ConnectInstrumentation=c},171038,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(790750),o=e.r(513128),a=e.r(9597),i="Connect",s=a.generateInstrumentOnce(i,()=>new r.ConnectInstrumentation);function l(e,t,n,r){o.captureException(e,{mechanism:{handled:!1,type:"auto.middleware.connect"}}),r(e)}n.connectIntegration=o.defineIntegration(()=>({name:i,setupOnce(){s()}})),n.instrumentConnect=s,n.setupConnectErrorHandler=e=>{e.use(l);let t=o.getClient();t&&t.on("spanStart",e=>{!function(e){let t=o.spanToJSON(e).data,n=t["connect.type"];if(t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!n)return;e.setAttributes({[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.connect",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${n}.connect`});let r=t["connect.name"];"string"==typeof r&&e.updateName(r)}(e)}),a.ensureIsWrapped(e.use,"connect")}},969323,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.MODULE_NAME="knex",n.SUPPORTED_VERSIONS=[">=0.22.0 <4",">=0.10.0 <0.18.0",">=0.19.0 <0.22.0",">=0.18.0 <0.19.0"]},701406,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_NAME="db.name",n.ATTR_DB_OPERATION="db.operation",n.ATTR_DB_SQL_TABLE="db.sql.table",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.ATTR_NET_TRANSPORT="net.transport",n.DB_SYSTEM_NAME_VALUE_SQLITE="sqlite"},259966,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=new Map([["sqlite3",e.r(701406).DB_SYSTEM_NAME_VALUE_SQLITE],["pg",r.DB_SYSTEM_NAME_VALUE_POSTGRESQL]]),a=e=>{let t=e?._single?.table;return"object"==typeof t?a(t):t};n.extractDatabaseFromConnectionString=e=>{if(e)try{return new URL(e).pathname?.replace(/^\//,"")||void 0}catch{return}},n.extractHostFromConnectionString=e=>{if(e)try{return new URL(e).hostname||void 0}catch{return}},n.extractPortFromConnectionString=e=>{if(e)try{let t=new URL(e).port;return t?parseInt(t,10):void 0}catch{return}},n.extractTableName=a,n.getFormatter=e=>{if(e){if(e.client){if(e.client._formatQuery)return e.client._formatQuery.bind(e.client);else if(e.client.SqlString)return e.client.SqlString.format.bind(e.client.SqlString)}if(e.builder)return e.builder.toString.bind(e.builder)}return()=>"<noop formatter>"},n.getName=(e,t,n)=>t?n?`${t} ${e}.${n}`:`${t} ${e}`:e,n.limitLength=(e,t)=>"string"==typeof e&&"number"==typeof t&&0<t&&t<e.length?e.substring(0,t)+"..":e,n.mapSystem=e=>o.get(e)||e,n.otelExceptionFromKnexError=function(e,t){return e&&e instanceof Error?{message:t,code:e.code,stack:e.stack,name:e.name}:e}},512599,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(969323),i=e.r(777884),s=e.r(102335),l=e.r(259966),u=e.r(216835),c=e.r(701406),p=Symbol("opentelemetry.instrumentation-knex.context"),_={maxQueryLength:1022,requireParentSpan:!1};class T extends i.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-knex",o.SDK_VERSION,{..._,...e}),this._semconvStability=i.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({..._,...e})}init(){let e=new i.InstrumentationNodeModuleDefinition(a.MODULE_NAME,a.SUPPORTED_VERSIONS);return e.files.push(this.getClientNodeModuleFileInstrumentation("src"),this.getClientNodeModuleFileInstrumentation("lib"),this.getRunnerNodeModuleFileInstrumentation("src"),this.getRunnerNodeModuleFileInstrumentation("lib"),this.getRunnerNodeModuleFileInstrumentation("lib/execution")),e}getRunnerNodeModuleFileInstrumentation(e){return new s.InstrumentationNodeModuleFile(`knex/${e}/runner.js`,a.SUPPORTED_VERSIONS,(e,t)=>(this.ensureWrapped(e.prototype,"query",this.createQueryWrapper(t)),e),(e,t)=>(this._unwrap(e.prototype,"query"),e))}getClientNodeModuleFileInstrumentation(e){return new s.InstrumentationNodeModuleFile(`knex/${e}/client.js`,a.SUPPORTED_VERSIONS,e=>(this.ensureWrapped(e.prototype,"queryBuilder",this.storeContext.bind(this)),this.ensureWrapped(e.prototype,"schemaBuilder",this.storeContext.bind(this)),this.ensureWrapped(e.prototype,"raw",this.storeContext.bind(this)),e),e=>(this._unwrap(e.prototype,"queryBuilder"),this._unwrap(e.prototype,"schemaBuilder"),this._unwrap(e.prototype,"raw"),e))}createQueryWrapper(e){let t=this;return function(n){return function(o){let a=this.client.config,s=l.extractTableName(this.builder),_=o?.method,T=a?.connection?.connectionString,S=a?.connection?.filename||a?.connection?.database||l.extractDatabaseFromConnectionString(T),{maxQueryLength:E}=t.getConfig(),d={"knex.version":e},g=a?.connection?.filename===":memory:"?"inproc":void 0;if(t._semconvStability&i.SemconvStability.OLD&&Object.assign(d,{[c.ATTR_DB_SYSTEM]:l.mapSystem(this.client.driverName),[c.ATTR_DB_SQL_TABLE]:s,[c.ATTR_DB_OPERATION]:_,[c.ATTR_DB_USER]:a?.connection?.user,[c.ATTR_DB_NAME]:S,[c.ATTR_NET_PEER_NAME]:a?.connection?.host??l.extractHostFromConnectionString(T),[c.ATTR_NET_PEER_PORT]:a?.connection?.port??l.extractPortFromConnectionString(T),[c.ATTR_NET_TRANSPORT]:g}),t._semconvStability&i.SemconvStability.STABLE&&Object.assign(d,{[u.ATTR_DB_SYSTEM_NAME]:l.mapSystem(this.client.driverName),[u.ATTR_DB_COLLECTION_NAME]:s,[u.ATTR_DB_OPERATION_NAME]:_,[u.ATTR_DB_NAMESPACE]:S,[u.ATTR_SERVER_ADDRESS]:a?.connection?.host??l.extractHostFromConnectionString(T),[u.ATTR_SERVER_PORT]:a?.connection?.port??l.extractPortFromConnectionString(T)}),E){let e=l.limitLength(o?.sql,E);t._semconvStability&i.SemconvStability.STABLE&&(d[u.ATTR_DB_QUERY_TEXT]=e),t._semconvStability&i.SemconvStability.OLD&&(d[c.ATTR_DB_STATEMENT]=e)}let A=this.builder[p]||r.context.active(),m=r.trace.getSpan(A),R=m&&r.trace.isSpanContextValid(m.spanContext());if(t._config.requireParentSpan&&!R)return n.bind(this)(...arguments);let h=t.tracer.startSpan(l.getName(S,_,s),{kind:r.SpanKind.CLIENT,attributes:d},A),f=r.trace.setSpan(r.context.active(),h);return r.context.with(f,n,this,...arguments).then(e=>(h.end(),e)).catch(e=>{let t=l.getFormatter(this)(o.sql,o.bindings||[]),n=e.message.replace(t+" - ",""),a=l.otelExceptionFromKnexError(e,n);throw h.recordException(a),h.setStatus({code:r.SpanStatusCode.ERROR,message:n}),h.end(),e})}}}storeContext(e){return function(){let t=e.apply(this,arguments);return Object.defineProperty(t,p,{value:r.context.active()}),t}}ensureWrapped(e,t,n){i.isWrapped(e[t])&&this._unwrap(e,t),this._wrap(e,t,n)}}n.KnexInstrumentation=T},141085,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(512599),o=e.r(513128),a=e.r(9597),i="Knex",s=a.generateInstrumentOnce(i,()=>new r.KnexInstrumentation({requireParentSpan:!0})),l=o.defineIntegration(()=>{let e;return{name:i,setupOnce(){let t=s();e=a.instrumentWhenWrapped(t)},setup(t){e?.(()=>t.on("spanStart",e=>{let{data:t}=o.spanToJSON(e);"knex.version"in t&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.knex")}))}}});n.instrumentKnex=s,n.knexIntegration=l},584067,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_NAME="db.name",n.ATTR_DB_SQL_TABLE="db.sql.table",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_VALUE_MSSQL="mssql"},783105,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.getSpanName=function(e,t,n,r){return"execBulkLoad"===e&&r&&t?`${e} ${r} ${t}`:"callProcedure"===e?t?`${e} ${n} ${t}`:`${e} ${n}`:t?`${e} ${t}`:`${e}`},n.once=e=>{let t=!1;return(...n)=>{if(!t)return t=!0,e(...n)}}},506129,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(427699),a=e.r(777884),i=e.r(216835),s=e.r(584067),l=e.r(783105),u=e.r(513128),c=Symbol("opentelemetry.instrumentation-tedious.current-database"),p=Symbol("opentelemetry.instrumentation-tedious.context-info-injected"),_=["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"];function T(e){Object.defineProperty(this,c,{value:e,writable:!0})}let S=class e extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-tedious",u.SDK_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[new a.InstrumentationNodeModuleDefinition(e.COMPONENT,[">=1.11.0 <20"],e=>{let t=e.Connection.prototype;for(let n of _)a.isWrapped(t[n])&&this._unwrap(t,n),this._wrap(t,n,this._patchQuery(n,e));return a.isWrapped(t.connect)&&this._unwrap(t,"connect"),this._wrap(t,"connect",this._patchConnect),e},e=>{if(void 0===e)return;let t=e.Connection.prototype;for(let e of _)this._unwrap(t,e);this._unwrap(t,"connect")})]}_patchConnect(e){return function(){return T.call(this,this.config?.options?.database),this.removeListener("databaseChange",T),this.on("databaseChange",T),this.once("end",()=>{this.removeListener("databaseChange",T)}),e.apply(this,arguments)}}_buildTraceparent(e){let t=e.spanContext();return`00-${t.traceId}-${t.spanId}-0${Number(t.traceFlags||r.TraceFlags.NONE).toString(16)}`}_injectContextInfo(e,t,n){return new Promise(r=>{try{let o=new t.Request("set context_info @opentelemetry_traceparent",e=>{r()});Object.defineProperty(o,p,{value:!0});let a=Buffer.from(n,"utf8");o.addParameter("opentelemetry_traceparent",t.TYPES.VarBinary,a,{length:a.length}),e.execSql(o)}catch{r()}})}_shouldInjectFor(e){return"execSql"===e||"execSqlBatch"===e||"callProcedure"===e||"execute"===e}_patchQuery(e,t){return n=>{let u=this;function _(_){if(_?.[p])return n.apply(this,arguments);if(!(_ instanceof o.EventEmitter))return u._diag.warn(`Unexpected invocation of patched ${e} method. Span not recorded`),n.apply(this,arguments);let T=0,S=0,E=()=>S++,d=()=>T++,g=this[c],A="sp_prepare"===_.sqlTextOrProcedure&&_.parametersByName?.stmt?.value?_.parametersByName.stmt.value:_.sqlTextOrProcedure,m={};u._dbSemconvStability&a.SemconvStability.OLD&&(m[s.ATTR_DB_SYSTEM]=s.DB_SYSTEM_VALUE_MSSQL,m[s.ATTR_DB_NAME]=g,m[s.ATTR_DB_USER]=this.config?.userName??this.config?.authentication?.options?.userName,m[s.ATTR_DB_STATEMENT]=A,m[s.ATTR_DB_SQL_TABLE]=_.table),u._dbSemconvStability&a.SemconvStability.STABLE&&(m[i.ATTR_DB_NAMESPACE]=g,m[i.ATTR_DB_SYSTEM_NAME]=i.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER,m[i.ATTR_DB_QUERY_TEXT]=A,m[i.ATTR_DB_COLLECTION_NAME]=_.table),u._netSemconvStability&a.SemconvStability.OLD&&(m[s.ATTR_NET_PEER_NAME]=this.config?.server,m[s.ATTR_NET_PEER_PORT]=this.config?.options?.port),u._netSemconvStability&a.SemconvStability.STABLE&&(m[i.ATTR_SERVER_ADDRESS]=this.config?.server,m[i.ATTR_SERVER_PORT]=this.config?.options?.port);let R=u.tracer.startSpan(l.getSpanName(e,g,A,_.table),{kind:r.SpanKind.CLIENT,attributes:m}),h=l.once(e=>{_.removeListener("done",E),_.removeListener("doneInProc",E),_.removeListener("doneProc",d),_.removeListener("error",h),this.removeListener("end",h),R.setAttribute("tedious.procedure_count",T),R.setAttribute("tedious.statement_count",S),e&&R.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}),R.end()});_.on("done",E),_.on("doneInProc",E),_.on("doneProc",d),_.once("error",h),this.on("end",h),"function"==typeof _.callback?u._wrap(_,"callback",u._patchCallbackQuery(h)):u._diag.error("Expected request.callback to be a function");let f=()=>r.context.with(r.trace.setSpan(r.context.active(),R),n,this,...arguments);if(!(u.getConfig().enableTraceContextPropagation&&u._shouldInjectFor(e)))return f();let N=u._buildTraceparent(R);u._injectContextInfo(this,t,N).finally(f)}return Object.defineProperty(_,"length",{value:n.length,writable:!1}),_}}_patchCallbackQuery(e){return t=>function(n,r,o){return e(n),t.apply(this,arguments)}}};S.COMPONENT="tedious",n.INJECTED_CTX=p,n.TediousInstrumentation=S},265892,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(506129),o=e.r(513128),a=e.r(9597),i=new Set(["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"]),s="Tedious",l=a.generateInstrumentOnce(s,()=>new r.TediousInstrumentation({})),u=o.defineIntegration(()=>{let e;return{name:s,setupOnce(){let t=l();e=a.instrumentWhenWrapped(t)},setup(t){e?.(()=>t.on("spanStart",e=>{let{description:t,data:n}=o.spanToJSON(e);if(!t||"mssql"!==n["db.system"])return;let r=t.split(" ")[0]||"";i.has(r)&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.tedious")}))}}});n.instrumentTedious=l,n.tediousIntegration=u},124809,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(513128),i="generic-pool";class s extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-generic-pool",a.SDK_VERSION,e),this._isDisabled=!1}init(){return[new o.InstrumentationNodeModuleDefinition(i,[">=3.0.0 <4"],e=>{let t=e.Pool;return o.isWrapped(t.prototype.acquire)&&this._unwrap(t.prototype,"acquire"),this._wrap(t.prototype,"acquire",this._acquirePatcher.bind(this)),e},e=>{let t=e.Pool;return this._unwrap(t.prototype,"acquire"),e}),new o.InstrumentationNodeModuleDefinition(i,[">=2.4.0 <3"],e=>{let t=e.Pool;return o.isWrapped(t.prototype.acquire)&&this._unwrap(t.prototype,"acquire"),this._wrap(t.prototype,"acquire",this._acquireWithCallbacksPatcher.bind(this)),e},e=>{let t=e.Pool;return this._unwrap(t.prototype,"acquire"),e}),new o.InstrumentationNodeModuleDefinition(i,[">=2.0.0 <2.4"],e=>(this._isDisabled=!1,o.isWrapped(e.Pool)&&this._unwrap(e,"Pool"),this._wrap(e,"Pool",this._poolWrapper.bind(this)),e),e=>(this._isDisabled=!0,e))]}_acquirePatcher(e){let t=this;return function(...n){let o=r.context.active(),a=t.tracer.startSpan("generic-pool.acquire",{},o);return r.context.with(r.trace.setSpan(o,a),()=>e.call(this,...n).then(e=>(a.end(),e),e=>{throw a.recordException(e),a.end(),e}))}}_poolWrapper(e){let t=this;return function(){let n=e.apply(this,arguments);return t._wrap(n,"acquire",t._acquireWithCallbacksPatcher.bind(t)),n}}_acquireWithCallbacksPatcher(e){let t=this;return function(n,o){if(t._isDisabled)return e.call(this,n,o);let a=r.context.active(),i=t.tracer.startSpan("generic-pool.acquire",{},a);return r.context.with(r.trace.setSpan(a,i),()=>{e.call(this,(e,t)=>{if(i.end(),n)return n(e,t)},o)})}}}n.GenericPoolInstrumentation=s},132873,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(124809),o=e.r(513128),a=e.r(9597),i="GenericPool",s=a.generateInstrumentOnce(i,()=>new r.GenericPoolInstrumentation({}));n.genericPoolIntegration=o.defineIntegration(()=>{let e;return{name:i,setupOnce(){let t=s();e=a.instrumentWhenWrapped(t)},setup(t){e?.(()=>t.on("spanStart",e=>{let t=o.spanToJSON(e).description;("generic-pool.aquire"===t||"generic-pool.acquire"===t)&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.generic_pool")}))}}}),n.instrumentGenericPool=s},393066,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(92405),a=e.r(513128),i="dataloader";function s(e){return"Module"===e[Symbol.toStringTag]?e.default:e}class l extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-dataloader",a.SDK_VERSION,e)}init(){return[new r.InstrumentationNodeModuleDefinition(i,[">=2.0.0 <3"],e=>{let t=s(e);return this._patchLoad(t.prototype),this._patchLoadMany(t.prototype),this._patchPrime(t.prototype),this._patchClear(t.prototype),this._patchClearAll(t.prototype),this._getPatchedConstructor(t)},e=>{let t=s(e);["load","loadMany","prime","clear","clearAll"].forEach(e=>{r.isWrapped(t.prototype[e])&&this._unwrap(t.prototype,e)})})]}shouldCreateSpans(){let e=this.getConfig();return void 0!==o.trace.getSpan(o.context.active())||!e.requireParentSpan}getSpanName(e,t){let n=e.name;return null==n?`${i}.${t}`:`${i}.${t} ${n}`}_wrapBatchLoadFn(e){let t=this;return function(...n){if(!t.isEnabled()||!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"batch"),{links:this._batch?.spanLinks},r);return o.context.with(o.trace.setSpan(r,a),()=>e.apply(this,n).then(e=>(a.end(),e)).catch(e=>{throw a.recordException(e),a.setStatus({code:o.SpanStatusCode.ERROR,message:e.message}),a.end(),e}))}}_getPatchedConstructor(e){let t=this,n=e.prototype;if(!t.isEnabled())return e;function o(...n){return"function"==typeof n[0]&&(r.isWrapped(n[0])&&t._unwrap(n,0),n[0]=t._wrapBatchLoadFn(n[0])),e.apply(this,n)}return o.prototype=n,o}_patchLoad(e){r.isWrapped(e.load)&&this._unwrap(e,"load"),this._wrap(e,"load",this._getPatchedLoad.bind(this))}_getPatchedLoad(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"load"),{kind:o.SpanKind.CLIENT},r);return o.context.with(o.trace.setSpan(r,a),()=>{let t=e.call(this,...n).then(e=>(a.end(),e)).catch(e=>{throw a.recordException(e),a.setStatus({code:o.SpanStatusCode.ERROR,message:e.message}),a.end(),e});return this._batch&&(this._batch.spanLinks||(this._batch.spanLinks=[]),this._batch.spanLinks.push({context:a.spanContext()})),t})}}_patchLoadMany(e){r.isWrapped(e.loadMany)&&this._unwrap(e,"loadMany"),this._wrap(e,"loadMany",this._getPatchedLoadMany.bind(this))}_getPatchedLoadMany(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"loadMany"),{kind:o.SpanKind.CLIENT},r);return o.context.with(o.trace.setSpan(r,a),()=>e.call(this,...n).then(e=>(a.end(),e)))}}_patchPrime(e){r.isWrapped(e.prime)&&this._unwrap(e,"prime"),this._wrap(e,"prime",this._getPatchedPrime.bind(this))}_getPatchedPrime(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"prime"),{kind:o.SpanKind.CLIENT},r),i=o.context.with(o.trace.setSpan(r,a),()=>e.call(this,...n));return a.end(),i}}_patchClear(e){r.isWrapped(e.clear)&&this._unwrap(e,"clear"),this._wrap(e,"clear",this._getPatchedClear.bind(this))}_getPatchedClear(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"clear"),{kind:o.SpanKind.CLIENT},r),i=o.context.with(o.trace.setSpan(r,a),()=>e.call(this,...n));return a.end(),i}}_patchClearAll(e){r.isWrapped(e.clearAll)&&this._unwrap(e,"clearAll"),this._wrap(e,"clearAll",this._getPatchedClearAll.bind(this))}_getPatchedClearAll(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"clearAll"),{kind:o.SpanKind.CLIENT},r),i=o.context.with(o.trace.setSpan(r,a),()=>e.call(this,...n));return a.end(),i}}}n.DataloaderInstrumentation=l},7298,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(393066),o=e.r(513128),a=e.r(9597),i="Dataloader",s=a.generateInstrumentOnce(i,()=>new r.DataloaderInstrumentation({requireParentSpan:!0}));n.dataloaderIntegration=o.defineIntegration(()=>{let e;return{name:i,setupOnce(){let t=s();e=a.instrumentWhenWrapped(t)},setup(t){e?.(()=>{t.on("spanStart",e=>{let t=o.spanToJSON(e);t.description?.startsWith("dataloader")&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.dataloader"),("dataloader.load"===t.description||"dataloader.loadMany"===t.description||"dataloader.batch"===t.description)&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_OP,"cache.get")})})}}}),n.instrumentDataloader=s},352654,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_MESSAGING_OPERATION="messaging.operation",n.ATTR_MESSAGING_SYSTEM="messaging.system",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port"},562553,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_MESSAGING_CONVERSATION_ID="messaging.conversation_id",n.ATTR_MESSAGING_DESTINATION="messaging.destination",n.ATTR_MESSAGING_DESTINATION_KIND="messaging.destination_kind",n.ATTR_MESSAGING_PROTOCOL="messaging.protocol",n.ATTR_MESSAGING_PROTOCOL_VERSION="messaging.protocol_version",n.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY="messaging.rabbitmq.routing_key",n.ATTR_MESSAGING_URL="messaging.url",n.MESSAGING_DESTINATION_KIND_VALUE_TOPIC="topic",n.MESSAGING_OPERATION_VALUE_PROCESS="process",n.OLD_ATTR_MESSAGING_MESSAGE_ID="messaging.message_id"},746802,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).AutoAck="auto ack",r.Ack="ack",r.AckAll="ackAll",r.Reject="reject",r.Nack="nack",r.NackAll="nackAll",r.ChannelClosed="channel closed",r.ChannelError="channel error",r.InstrumentationTimeout="instrumentation timeout",r);n.DEFAULT_CONFIG={consumeTimeoutMs:6e4,useLinksForConsume:!1},n.EndOperation=o},939304,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(216835),i=e.r(352654),s=e.r(562553),l=Symbol("opentelemetry.amqplib.message.stored-span"),u=Symbol("opentelemetry.amqplib.channel.spans-not-ended"),c=Symbol("opentelemetry.amqplib.channel.consumer-timeout-timer"),p=Symbol("opentelemetry.amqplib.connection.attributes"),_=r.createContextKey("opentelemetry.amqplib.channel.is-confirm-channel"),T=(e,t)=>e||("AMQP"===t?5672:5671),S=e=>{let t=e||"amqp";return(t.endsWith(":")?t.substring(0,t.length-1):t).toUpperCase()},E=(e,t,n,o)=>n?{[t]:n}:(r.diag.error(`amqplib instrumentation: could not extract connection attribute ${o} from user supplied url`,{url:e}),{});n.CHANNEL_CONSUME_TIMEOUT_TIMER=c,n.CHANNEL_SPANS_NOT_ENDED=u,n.CONNECTION_ATTRIBUTES=p,n.MESSAGE_STORED_SPAN=l,n.getConnectionAttributesFromServer=e=>{let t=e.serverProperties.product?.toLowerCase?.();return t?{[i.ATTR_MESSAGING_SYSTEM]:t}:{}},n.getConnectionAttributesFromUrl=(e,t)=>{let n={[s.ATTR_MESSAGING_PROTOCOL_VERSION]:"0.9.1"};if("object"==typeof(e=e||"amqp://localhost")){let r=e,l=S(r?.protocol);Object.assign(n,{...E(e,s.ATTR_MESSAGING_PROTOCOL,l,"protocol")});let u=r?.hostname||"localhost";t&o.SemconvStability.OLD&&Object.assign(n,{...E(e,i.ATTR_NET_PEER_NAME,u,"hostname")}),t&o.SemconvStability.STABLE&&Object.assign(n,{...E(e,a.ATTR_SERVER_ADDRESS,u,"hostname")});let c=T(r.port,l);t&o.SemconvStability.OLD&&Object.assign(n,E(e,i.ATTR_NET_PEER_PORT,c,"port")),t&o.SemconvStability.STABLE&&Object.assign(n,E(e,a.ATTR_SERVER_PORT,c,"port"))}else{let l=e.replace(/:[^:@/]*@/,":***@");n[s.ATTR_MESSAGING_URL]=l;try{let e=new URL(l),r=S(e.protocol);Object.assign(n,{...E(l,s.ATTR_MESSAGING_PROTOCOL,r,"protocol")});let u=e.hostname||"localhost";t&o.SemconvStability.OLD&&Object.assign(n,{...E(l,i.ATTR_NET_PEER_NAME,u,"hostname")}),t&o.SemconvStability.STABLE&&Object.assign(n,{...E(l,a.ATTR_SERVER_ADDRESS,u,"hostname")});let c=T(e.port?parseInt(e.port):void 0,r);t&o.SemconvStability.OLD&&Object.assign(n,E(l,i.ATTR_NET_PEER_PORT,c,"port")),t&o.SemconvStability.STABLE&&Object.assign(n,E(l,a.ATTR_SERVER_PORT,c,"port"))}catch(e){r.diag.error("amqplib instrumentation: error while extracting connection details from connection url",{censoredUrl:l,err:e})}}return n},n.isConfirmChannelTracing=e=>!0===e.getValue(_),n.markConfirmChannelTracing=e=>e.setValue(_,!0),n.normalizeExchange=e=>""!==e?e:"<default>",n.unmarkConfirmChannelTracing=e=>e.deleteValue(_)},101305,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(777884),i=e.r(102335),s=e.r(352654),l=e.r(562553),u=e.r(746802),c=e.r(939304),p=[">=0.5.5 <2"];class _ extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-amqplib",o.SDK_VERSION,{...u.DEFAULT_CONFIG,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...u.DEFAULT_CONFIG,...e})}init(){let e=new i.InstrumentationNodeModuleFile("amqplib/lib/channel_model.js",p,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),t=new i.InstrumentationNodeModuleFile("amqplib/lib/callback_model.js",p,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),n=new i.InstrumentationNodeModuleFile("amqplib/lib/connect.js",p,this.patchConnect.bind(this),this.unpatchConnect.bind(this));return new a.InstrumentationNodeModuleDefinition("amqplib",p,void 0,void 0,[e,n,t])}patchConnect(e){return e=this.unpatchConnect(e),a.isWrapped(e.connect)||this._wrap(e,"connect",this.getConnectPatch.bind(this)),e}unpatchConnect(e){return a.isWrapped(e.connect)&&this._unwrap(e,"connect"),e}patchChannelModel(e,t){return a.isWrapped(e.Channel.prototype.publish)||this._wrap(e.Channel.prototype,"publish",this.getPublishPatch.bind(this,t)),a.isWrapped(e.Channel.prototype.consume)||this._wrap(e.Channel.prototype,"consume",this.getConsumePatch.bind(this,t)),a.isWrapped(e.Channel.prototype.ack)||this._wrap(e.Channel.prototype,"ack",this.getAckPatch.bind(this,!1,u.EndOperation.Ack)),a.isWrapped(e.Channel.prototype.nack)||this._wrap(e.Channel.prototype,"nack",this.getAckPatch.bind(this,!0,u.EndOperation.Nack)),a.isWrapped(e.Channel.prototype.reject)||this._wrap(e.Channel.prototype,"reject",this.getAckPatch.bind(this,!0,u.EndOperation.Reject)),a.isWrapped(e.Channel.prototype.ackAll)||this._wrap(e.Channel.prototype,"ackAll",this.getAckAllPatch.bind(this,!1,u.EndOperation.AckAll)),a.isWrapped(e.Channel.prototype.nackAll)||this._wrap(e.Channel.prototype,"nackAll",this.getAckAllPatch.bind(this,!0,u.EndOperation.NackAll)),a.isWrapped(e.Channel.prototype.emit)||this._wrap(e.Channel.prototype,"emit",this.getChannelEmitPatch.bind(this)),a.isWrapped(e.ConfirmChannel.prototype.publish)||this._wrap(e.ConfirmChannel.prototype,"publish",this.getConfirmedPublishPatch.bind(this,t)),e}unpatchChannelModel(e){return a.isWrapped(e.Channel.prototype.publish)&&this._unwrap(e.Channel.prototype,"publish"),a.isWrapped(e.Channel.prototype.consume)&&this._unwrap(e.Channel.prototype,"consume"),a.isWrapped(e.Channel.prototype.ack)&&this._unwrap(e.Channel.prototype,"ack"),a.isWrapped(e.Channel.prototype.nack)&&this._unwrap(e.Channel.prototype,"nack"),a.isWrapped(e.Channel.prototype.reject)&&this._unwrap(e.Channel.prototype,"reject"),a.isWrapped(e.Channel.prototype.ackAll)&&this._unwrap(e.Channel.prototype,"ackAll"),a.isWrapped(e.Channel.prototype.nackAll)&&this._unwrap(e.Channel.prototype,"nackAll"),a.isWrapped(e.Channel.prototype.emit)&&this._unwrap(e.Channel.prototype,"emit"),a.isWrapped(e.ConfirmChannel.prototype.publish)&&this._unwrap(e.ConfirmChannel.prototype,"publish"),e}getConnectPatch(e){let t=this;return function(n,r,o){return e.call(this,n,r,function(e,r){if(null==e){let e=c.getConnectionAttributesFromUrl(n,t._netSemconvStability),o=c.getConnectionAttributesFromServer(r);r[c.CONNECTION_ATTRIBUTES]={...e,...o}}o.apply(this,arguments)})}}getChannelEmitPatch(e){let t=this;return function(n){if("close"===n){t.endAllSpansOnChannel(this,!0,u.EndOperation.ChannelClosed,void 0);let e=this[c.CHANNEL_CONSUME_TIMEOUT_TIMER];e&&clearInterval(e),this[c.CHANNEL_CONSUME_TIMEOUT_TIMER]=void 0}else"error"===n&&t.endAllSpansOnChannel(this,!0,u.EndOperation.ChannelError,void 0);return e.apply(this,arguments)}}getAckAllPatch(e,t,n){let r=this;return function(o){return r.endAllSpansOnChannel(this,e,t,o),n.apply(this,arguments)}}getAckPatch(e,t,n){let r=this;return function(o,a,i){let s=t===u.EndOperation.Reject?a:i,l=this[c.CHANNEL_SPANS_NOT_ENDED]??[],p=l.findIndex(e=>e.msg===o);if(p<0)r.endConsumerSpan(o,e,t,s);else if(t!==u.EndOperation.Reject&&a){for(let n=0;n<=p;n++)r.endConsumerSpan(l[n].msg,e,t,s);l.splice(0,p+1)}else r.endConsumerSpan(o,e,t,s),l.splice(p,1);return n.apply(this,arguments)}}getConsumePatch(e,t){let n=this;return function(i,p,_){let T=this;if(!Object.prototype.hasOwnProperty.call(T,c.CHANNEL_SPANS_NOT_ENDED)){let{consumeTimeoutMs:e}=n.getConfig();if(e){let t=setInterval(()=>{n.checkConsumeTimeoutOnChannel(T)},e);t.unref(),T[c.CHANNEL_CONSUME_TIMEOUT_TIMER]=t}T[c.CHANNEL_SPANS_NOT_ENDED]=[]}return arguments[1]=function(t){let S;if(!t)return p.call(this,t);let E=t.properties.headers??{},d=r.propagation.extract(r.ROOT_CONTEXT,E),g=t.fields?.exchange;if(n._config.useLinksForConsume){let e=d?r.trace.getSpan(d)?.spanContext():void 0;d=void 0,e&&(S=[{context:e}])}let A=n.tracer.startSpan(`${i} process`,{kind:r.SpanKind.CONSUMER,attributes:{...T?.connection?.[c.CONNECTION_ATTRIBUTES],[l.ATTR_MESSAGING_DESTINATION]:g,[l.ATTR_MESSAGING_DESTINATION_KIND]:l.MESSAGING_DESTINATION_KIND_VALUE_TOPIC,[l.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY]:t.fields?.routingKey,[s.ATTR_MESSAGING_OPERATION]:l.MESSAGING_OPERATION_VALUE_PROCESS,[l.OLD_ATTR_MESSAGING_MESSAGE_ID]:t?.properties.messageId,[l.ATTR_MESSAGING_CONVERSATION_ID]:t?.properties.correlationId},links:S},d),{consumeHook:m}=n.getConfig();m&&a.safeExecuteInTheMiddle(()=>m(A,{moduleVersion:e,msg:t}),e=>{e&&r.diag.error("amqplib instrumentation: consumerHook error",e)},!0),_?.noAck||(T[c.CHANNEL_SPANS_NOT_ENDED].push({msg:t,timeOfConsume:o.timestampInSeconds()}),t[c.MESSAGE_STORED_SPAN]=A);let R=d||r.ROOT_CONTEXT;r.context.with(r.trace.setSpan(R,A),()=>{p.call(this,t)}),_?.noAck&&(n.callConsumeEndHook(A,t,!1,u.EndOperation.AutoAck),A.end())},t.apply(this,arguments)}}getConfirmedPublishPatch(e,t){let n=this;return function(o,i,s,l,u){let{span:p,modifiedOptions:_}=n.createPublishSpan(n,o,i,this,l),{publishHook:T}=n.getConfig();T&&a.safeExecuteInTheMiddle(()=>T(p,{moduleVersion:e,exchange:o,routingKey:i,content:s,options:_,isConfirmChannel:!0}),e=>{e&&r.diag.error("amqplib instrumentation: publishHook error",e)},!0);let S=c.markConfirmChannelTracing(r.context.active()),E=[...arguments];return E[3]=_,E[4]=r.context.bind(c.unmarkConfirmChannelTracing(r.trace.setSpan(S,p)),function(t,c){try{u?.call(this,t,c)}finally{let{publishConfirmHook:u}=n.getConfig();u&&a.safeExecuteInTheMiddle(()=>u(p,{moduleVersion:e,exchange:o,routingKey:i,content:s,options:l,isConfirmChannel:!0,confirmError:t}),e=>{e&&r.diag.error("amqplib instrumentation: publishConfirmHook error",e)},!0),t&&p.setStatus({code:r.SpanStatusCode.ERROR,message:"message confirmation has been nack'ed"}),p.end()}}),r.context.with(S,t.bind(this,...E))}}getPublishPatch(e,t){let n=this;return function(o,i,s,l){if(c.isConfirmChannelTracing(r.context.active()))return t.apply(this,arguments);{let{span:u,modifiedOptions:c}=n.createPublishSpan(n,o,i,this,l),{publishHook:p}=n.getConfig();p&&a.safeExecuteInTheMiddle(()=>p(u,{moduleVersion:e,exchange:o,routingKey:i,content:s,options:c,isConfirmChannel:!1}),e=>{e&&r.diag.error("amqplib instrumentation: publishHook error",e)},!0);let _=[...arguments];_[3]=c;let T=t.apply(this,_);return u.end(),T}}}createPublishSpan(e,t,n,o,a){let i=c.normalizeExchange(t),s=e.tracer.startSpan(`publish ${i}`,{kind:r.SpanKind.PRODUCER,attributes:{...o.connection[c.CONNECTION_ATTRIBUTES],[l.ATTR_MESSAGING_DESTINATION]:t,[l.ATTR_MESSAGING_DESTINATION_KIND]:l.MESSAGING_DESTINATION_KIND_VALUE_TOPIC,[l.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY]:n,[l.OLD_ATTR_MESSAGING_MESSAGE_ID]:a?.messageId,[l.ATTR_MESSAGING_CONVERSATION_ID]:a?.correlationId}}),u=a??{};return u.headers=u.headers??{},r.propagation.inject(r.trace.setSpan(r.context.active(),s),u.headers),{span:s,modifiedOptions:u}}endConsumerSpan(e,t,n,o){let a=e[c.MESSAGE_STORED_SPAN];a&&(!1!==t&&a.setStatus({code:r.SpanStatusCode.ERROR,message:n!==u.EndOperation.ChannelClosed&&n!==u.EndOperation.ChannelError?`${n} called on message${!0===o?" with requeue":!1===o?" without requeue":""}`:n}),this.callConsumeEndHook(a,e,t,n),a.end(),e[c.MESSAGE_STORED_SPAN]=void 0)}endAllSpansOnChannel(e,t,n,r){(e[c.CHANNEL_SPANS_NOT_ENDED]??[]).forEach(e=>{this.endConsumerSpan(e.msg,t,n,r)}),e[c.CHANNEL_SPANS_NOT_ENDED]=[]}callConsumeEndHook(e,t,n,o){let{consumeEndHook:i}=this.getConfig();i&&a.safeExecuteInTheMiddle(()=>i(e,{msg:t,rejected:n,endOperation:o}),e=>{e&&r.diag.error("amqplib instrumentation: consumerEndHook error",e)},!0)}checkConsumeTimeoutOnChannel(e){let t,n=o.timestampInSeconds(),r=e[c.CHANNEL_SPANS_NOT_ENDED]??[],{consumeTimeoutMs:a}=this.getConfig();for(t=0;t<r.length;t++){let e=r[t];if((n-e.timeOfConsume)*1e3<a)break;this.endConsumerSpan(e.msg,null,u.EndOperation.InstrumentationTimeout,!0)}r.splice(0,t)}}n.AmqplibInstrumentation=_},92562,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(101305),o=e.r(513128),a=e.r(9597),i="Amqplib",s={consumeEndHook:e=>{a.addOriginToSpan(e,"auto.amqplib.otel.consumer")},publishHook:e=>{a.addOriginToSpan(e,"auto.amqplib.otel.publisher")}},l=a.generateInstrumentOnce(i,()=>new r.AmqplibInstrumentation(s));n.amqplibIntegration=o.defineIntegration(()=>({name:i,setupOnce(){l()}})),n.instrumentAmqplib=l},673939,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.INTEGRATION_NAME="VercelAI"},864629,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(513128),a=e.r(673939),i=[">=3.0.0 <7"],s=["generateText","streamText","generateObject","streamObject","embed","embedMany","rerank"];function l(e){"object"==typeof e&&null!==e&&"content"in e&&Array.isArray(e.content)&&(function(e){for(let t of e){if(!("object"==typeof t&&null!==t&&"type"in t&&"error"in t&&"toolName"in t&&"toolCallId"in t&&"tool-error"===t.type&&t.error instanceof Error))continue;let e=o._INTERNAL_getSpanContextForToolCallId(t.toolCallId);e?o.withScope(n=>{n.setContext("trace",{trace_id:e.traceId,span_id:e.spanId}),n.setTag("vercel.ai.tool.name",t.toolName),n.setTag("vercel.ai.tool.callId",t.toolCallId),n.setLevel("error"),o.captureException(t.error,{mechanism:{type:"auto.vercelai.otel",handled:!1}})}):o.withScope(e=>{e.setTag("vercel.ai.tool.name",t.toolName),e.setTag("vercel.ai.tool.callId",t.toolCallId),e.setLevel("error"),o.captureException(t.error,{mechanism:{type:"auto.vercelai.otel",handled:!1}})})}}(e.content),u(e.content))}function u(e){for(let t of e)"object"==typeof t&&null!==t&&"toolCallId"in t&&"string"==typeof t.toolCallId&&o._INTERNAL_cleanupToolCallSpanContext(t.toolCallId)}function c(e,t,n,r,o){return{recordInputs:e?.recordInputs!==void 0?e.recordInputs:void 0!==t.recordInputs?t.recordInputs:!0===n||r,recordOutputs:e?.recordOutputs!==void 0?e.recordOutputs:void 0!==t.recordOutputs?t.recordOutputs:!0===n||o}}class p extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-vercel-ai",o.SDK_VERSION,e),this._isPatched=!1,this._callbacks=[]}init(){return new r.InstrumentationNodeModuleDefinition("ai",i,this._patch.bind(this))}callWhenPatched(e){this._isPatched?e():this._callbacks.push(e)}_patch(e){this._isPatched=!0,this._callbacks.forEach(e=>e()),this._callbacks=[];let t=e=>new Proxy(e,{apply:(e,t,n)=>{let r=n[0].experimental_telemetry||{},i=r.isEnabled,s=o.getClient(),u=s?.getIntegrationByName(a.INTEGRATION_NAME),p=u?.options,_=u?s?.getDataCollectionOptions().genAI:void 0,{recordInputs:T,recordOutputs:S}=c(p,r,i,!!_?.inputs,!!_?.outputs);return n[0].experimental_telemetry={...r,isEnabled:void 0===i||i,recordInputs:T,recordOutputs:S},o.handleCallbackErrors(()=>Reflect.apply(e,t,n),e=>{e&&"object"==typeof e&&o.addNonEnumerableProperty(e,"_sentry_active_span",o.getActiveSpan())},()=>{},e=>{l(e)})}});if("[object Module]"===Object.prototype.toString.call(e)){for(let n of s)null!=e[n]&&(e[n]=t(e[n]));return e}{let n=s.reduce((n,r)=>(null!=e[r]&&(n[r]=t(e[r])),n),{});return{...e,...n}}}}n.SentryVercelAiInstrumentation=p,n.cleanupToolCallSpanContexts=u,n.determineRecordingSettings=c,n.processToolCallResults=l},601835,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(673939),i=e.r(864629),s=o.generateInstrumentOnce(a.INTEGRATION_NAME,()=>new i.SentryVercelAiInstrumentation({})),l=r.defineIntegration((e={})=>{let t;return{name:a.INTEGRATION_NAME,options:e,setupOnce(){t=s()},afterAllSetup(n){let o;e.force??(o=n.getIntegrationByName("Modules"),!!o?.getModules?.()?.ai)?r.addVercelAiProcessors(n):t?.callWhenPatched(()=>r.addVercelAiProcessors(n))}}});n.instrumentVercelAi=s,n.vercelAIIntegration=l},974010,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(513128),a=[">=4.0.0 <7"];class i extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-openai",o.SDK_VERSION,e)}init(){return new r.InstrumentationNodeModuleDefinition("openai",a,this._patch.bind(this))}_patch(e){let t=e;return t=this._patchClient(t,"OpenAI"),t=this._patchClient(t,"AzureOpenAI")}_patchClient(e,t){let n=e[t];if(!n)return e;let r=this.getConfig(),a=function(...e){if(o._INTERNAL_shouldSkipAiProviderWrapping(o.OPENAI_INTEGRATION_NAME))return Reflect.construct(n,e);let t=Reflect.construct(n,e);return o.instrumentOpenAiClient(t,r)};for(let e of(Object.setPrototypeOf(a,n),Object.setPrototypeOf(a.prototype,n.prototype),Object.getOwnPropertyNames(n)))if(!["length","name","prototype"].includes(e)){let t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(a,e,t)}try{e[t]=a}catch{Object.defineProperty(e,t,{value:a,writable:!0,configurable:!0,enumerable:!0})}if(e.default===n)try{e.default=a}catch{Object.defineProperty(e,"default",{value:a,writable:!0,configurable:!0,enumerable:!0})}return e}}n.SentryOpenAiInstrumentation=i},641639,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(974010),i=o.generateInstrumentOnce(r.OPENAI_INTEGRATION_NAME,e=>new a.SentryOpenAiInstrumentation(e)),s=r.defineIntegration((e={})=>({name:r.OPENAI_INTEGRATION_NAME,setupOnce(){i(e)}}));n.instrumentOpenAi=i,n.openAIIntegration=s},125482,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(513128),a=[">=0.19.2 <1.0.0"];class i extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-anthropic-ai",o.SDK_VERSION,e)}init(){return new r.InstrumentationNodeModuleDefinition("@anthropic-ai/sdk",a,this._patch.bind(this))}_patch(e){let t=e.Anthropic,n=this.getConfig(),r=function(...e){if(o._INTERNAL_shouldSkipAiProviderWrapping(o.ANTHROPIC_AI_INTEGRATION_NAME))return Reflect.construct(t,e);let r=Reflect.construct(t,e);return o.instrumentAnthropicAiClient(r,n)};for(let e of(Object.setPrototypeOf(r,t),Object.setPrototypeOf(r.prototype,t.prototype),Object.getOwnPropertyNames(t)))if(!["length","name","prototype"].includes(e)){let n=Object.getOwnPropertyDescriptor(t,e);n&&Object.defineProperty(r,e,n)}try{e.Anthropic=r}catch{Object.defineProperty(e,"Anthropic",{value:r,writable:!0,configurable:!0,enumerable:!0})}if(e.default===t)try{e.default=r}catch{Object.defineProperty(e,"default",{value:r,writable:!0,configurable:!0,enumerable:!0})}return e}}n.SentryAnthropicAiInstrumentation=i},154522,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(125482),i=o.generateInstrumentOnce(r.ANTHROPIC_AI_INTEGRATION_NAME,e=>new a.SentryAnthropicAiInstrumentation(e));n.anthropicAIIntegration=r.defineIntegration((e={})=>({name:r.ANTHROPIC_AI_INTEGRATION_NAME,options:e,setupOnce(){i(e)}})),n.instrumentAnthropicAi=i},89867,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(102335),a=e.r(513128),i=[">=0.10.0 <2"];class s extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-google-genai",a.SDK_VERSION,e)}init(){return new r.InstrumentationNodeModuleDefinition("@google/genai",i,e=>this._patch(e),e=>e,[new o.InstrumentationNodeModuleFile("@google/genai/dist/node/index.cjs",i,e=>this._patch(e),e=>e)])}_patch(e){let t=e.GoogleGenAI,n=this.getConfig();if("function"!=typeof t)return e;let r=function(...e){if(a._INTERNAL_shouldSkipAiProviderWrapping(a.GOOGLE_GENAI_INTEGRATION_NAME))return Reflect.construct(t,e);let r=Reflect.construct(t,e);return a.instrumentGoogleGenAIClient(r,n)};for(let e of(Object.setPrototypeOf(r,t),Object.setPrototypeOf(r.prototype,t.prototype),Object.getOwnPropertyNames(t)))if(!["length","name","prototype"].includes(e)){let n=Object.getOwnPropertyDescriptor(t,e);n&&Object.defineProperty(r,e,n)}return a.replaceExports(e,"GoogleGenAI",r),e}}n.SentryGoogleGenAiInstrumentation=s},993455,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(89867),i=o.generateInstrumentOnce(r.GOOGLE_GENAI_INTEGRATION_NAME,e=>new a.SentryGoogleGenAiInstrumentation(e));n.googleGenAIIntegration=r.defineIntegration((e={})=>({name:r.GOOGLE_GENAI_INTEGRATION_NAME,setupOnce(){i(e)}})),n.instrumentGoogleGenAI=i},887164,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(102335),a=e.r(513128),i=[">=0.1.0 <2.0.0"];class s extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-langchain",a.SDK_VERSION,e)}init(){let e=[];for(let t of["@langchain/anthropic","@langchain/openai","@langchain/google-genai","@langchain/mistralai","@langchain/google-vertexai","@langchain/groq"])e.push(new r.InstrumentationNodeModuleDefinition(t,i,this._patch.bind(this),e=>e,[new o.InstrumentationNodeModuleFile(`${t}/dist/index.cjs`,i,this._patch.bind(this),e=>e)]));return e.push(new r.InstrumentationNodeModuleDefinition("langchain",i,this._patch.bind(this),e=>e,[new o.InstrumentationNodeModuleFile("langchain/dist/chat_models/universal.cjs",i,this._patch.bind(this),e=>e)])),e}_patch(e){a._INTERNAL_skipAiProviderWrapping([a.OPENAI_INTEGRATION_NAME,a.ANTHROPIC_AI_INTEGRATION_NAME,a.GOOGLE_GENAI_INTEGRATION_NAME]);let t=this.getConfig(),n=a.createLangChainCallbackHandler(t);return this._patchRunnableMethods(e,n),this._patchEmbeddingsMethods(e,t),e}_patchRunnableMethods(e,t){let n=["ChatAnthropic","ChatOpenAI","ChatGoogleGenerativeAI","ChatMistralAI","ChatVertexAI","ChatGroq","ConfigurableModel"],r=Object.values(e.universal_exports??e).find(e=>"function"==typeof e&&n.includes(e.name));if(!r)return;let o=r.prototype;if(!o.__sentry_patched__)for(let e of(o.__sentry_patched__=!0,["invoke","stream","batch"])){let n=o[e];"function"==typeof n&&(o[e]=function(e,t){return new Proxy(e,{apply(e,n,r){let o=r[1];return(!o||"object"!=typeof o||Array.isArray(o))&&(o={},r[1]=o),o.callbacks=a._INTERNAL_mergeLangChainCallbackHandler(o.callbacks,t),Reflect.apply(e,n,r)}})}(n,t))}}_patchEmbeddingsMethods(e,t){for(let n of Object.values(e.universal_exports??e)){if("function"!=typeof n||!n.prototype)continue;let e=n.prototype;"function"==typeof e.embedQuery&&"function"==typeof e.embedDocuments&&(e.__sentry_patched__||(e.__sentry_patched__=!0,a.instrumentLangChainEmbeddings(e,t)))}}}n.SentryLangChainInstrumentation=s},421821,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(887164),i=o.generateInstrumentOnce(r.LANGCHAIN_INTEGRATION_NAME,e=>new a.SentryLangChainInstrumentation(e)),s=r.defineIntegration((e={})=>({name:r.LANGCHAIN_INTEGRATION_NAME,setupOnce(){i(e)}}));n.instrumentLangChain=i,n.langChainIntegration=s},158253,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(102335),a=e.r(513128),i=[">=0.0.0 <2.0.0"];class s extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-langgraph",a.SDK_VERSION,e)}init(){return[new r.InstrumentationNodeModuleDefinition("@langchain/langgraph",i,this._patch.bind(this),e=>e,[new o.InstrumentationNodeModuleFile("@langchain/langgraph/dist/index.cjs",i,this._patch.bind(this),e=>e),new o.InstrumentationNodeModuleFile("@langchain/langgraph/dist/prebuilt/index.cjs",i,this._patch.bind(this),e=>e)]),new r.InstrumentationNodeModuleDefinition("@langchain/langgraph/prebuilt",i,this._patch.bind(this),e=>e,[new o.InstrumentationNodeModuleFile("@langchain/langgraph/dist/prebuilt/index.cjs",i,this._patch.bind(this),e=>e)])]}_patch(e){let t=a.getClient(),n=t?.getDataCollectionOptions().genAI,r={...this.getConfig(),recordInputs:this.getConfig().recordInputs??n?.inputs??!1,recordOutputs:this.getConfig().recordOutputs??n?.outputs??!1};if(e.StateGraph&&"function"==typeof e.StateGraph&&a.instrumentLangGraph(e.StateGraph.prototype,r),e.createReactAgent&&"function"==typeof e.createReactAgent){let t=e.createReactAgent;Object.defineProperty(e,"createReactAgent",{value:a.instrumentCreateReactAgent(t,r),writable:!0,enumerable:!0,configurable:!0})}return e}}n.SentryLangGraphInstrumentation=s},468252,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(158253),i=o.generateInstrumentOnce(r.LANGGRAPH_INTEGRATION_NAME,e=>new a.SentryLangGraphInstrumentation(e)),s=r.defineIntegration((e={})=>({name:r.LANGGRAPH_INTEGRATION_NAME,setupOnce(){i(e)}}));n.instrumentLangGraph=i,n.langGraphIntegration=s},238e3,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=r.defineIntegration(e=>(r.isBrowser()||r.consoleSandbox(()=>{console.warn("The launchDarklyIntegration() can only be used in the browser.")}),{name:"LaunchDarkly"}));n.buildLaunchDarklyFlagUsedHandlerShim=function(){return r.isBrowser()||r.consoleSandbox(()=>{console.warn("The buildLaunchDarklyFlagUsedHandler() can only be used in the browser.")}),{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:()=>null}},n.launchDarklyIntegrationShim=o},745498,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=r.defineIntegration(e=>(r.isBrowser()||r.consoleSandbox(()=>{console.warn("The openFeatureIntegration() can only be used in the browser.")}),{name:"OpenFeature"}));n.OpenFeatureIntegrationHookShim=class{constructor(){r.isBrowser()||r.consoleSandbox(()=>{console.warn("The OpenFeatureIntegrationHook can only be used in the browser.")})}after(){}error(){}},n.openFeatureIntegrationShim=o},373223,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.statsigIntegrationShim=r.defineIntegration(e=>(r.isBrowser()||r.consoleSandbox(()=>{console.warn("The statsigIntegration() can only be used in the browser.")}),{name:"Statsig"}))},982823,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.unleashIntegrationShim=r.defineIntegration(e=>(r.isBrowser()||r.consoleSandbox(()=>{console.warn("The unleashIntegration() can only be used in the browser.")}),{name:"Unleash"}))},180196,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.growthbookIntegrationShim=e.r(513128).growthbookIntegration},454258,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(761095),o=e.r(92405),a=e.r(777884),i=e.r(102335),s=e.r(216835);function l(e,t,n,r,o){var a,i,s,l,_,T,S,E;return u(e,n),t(e,"addDoc",(a=r,i=o,function(e){return function(t,n){let r=p(a,"addDoc",t);return i(r),c(r,()=>e(t,n))}})),t(e,"getDocs",(s=r,l=o,function(e){return function(t){let n=p(s,"getDocs",t);return l(n),c(n,()=>e(t))}})),t(e,"setDoc",(_=r,T=o,function(e){return function(t,n,r){let o=p(_,"setDoc",t.parent||t);return T(o),c(o,()=>void 0!==r?e(t,n,r):e(t,n))}})),t(e,"deleteDoc",(S=r,E=o,function(e){return function(t){let n=p(S,"deleteDoc",t.parent||t);return E(n),c(n,()=>e(t))}})),e}function u(e,t){for(let n of["addDoc","getDocs","setDoc","deleteDoc"])a.isWrapped(e[n])&&t(e,n);return e}function c(e,t){return o.context.with(o.trace.setSpan(o.context.active(),e),()=>a.safeExecuteInTheMiddle(()=>t(),t=>{t&&e.recordException(t),e.end()},!0))}function p(e,t,n){let r=e.startSpan(`${t} ${n.path}`,{kind:o.SpanKind.CLIENT});return function(e,t){let n=t.firestore.app,r=n.options,o=(t.firestore.toJSON()||{}).settings||{},a={[s.ATTR_DB_COLLECTION_NAME]:t.path,[s.ATTR_DB_NAMESPACE]:n.name,[s.ATTR_DB_SYSTEM_NAME]:"firebase.firestore","firebase.firestore.type":t.type,"firebase.firestore.options.projectId":r.projectId,"firebase.firestore.options.appId":r.appId,"firebase.firestore.options.messagingSenderId":r.messagingSenderId,"firebase.firestore.options.storageBucket":r.storageBucket},{address:i,port:l}=_(o);i&&(a[s.ATTR_SERVER_ADDRESS]=i),l&&(a[s.ATTR_SERVER_PORT]=l),e.setAttributes(a)}(r,n),r.setAttribute(s.ATTR_DB_OPERATION_NAME,t),r}function _(e){let t,n;if("string"==typeof e.host)if(e.host.startsWith("[")){if(e.host.endsWith("]"))t=e.host.replace(/^\[|\]$/g,"");else if(e.host.includes("]:")){let r=e.host.lastIndexOf(":");-1!==r&&(t=e.host.slice(1,r).replace(/^\[|\]$/g,""),n=e.host.slice(r+1))}}else if(r.isIPv6(e.host))t=e.host;else{let r=e.host.lastIndexOf(":");-1!==r?(t=e.host.slice(0,r),n=e.host.slice(r+1)):t=e.host}return{address:t,port:n?parseInt(n,10):void 0}}n.getPortAndAddress=_,n.patchFirestore=function(e,t,n,r,s){let c=()=>{},p=s.firestoreSpanCreationHook;"function"==typeof p&&(c=e=>{a.safeExecuteInTheMiddle(()=>p(e),e=>{e&&o.diag.error(e?.message)},!0)});let _=new a.InstrumentationNodeModuleDefinition("@firebase/firestore",t,t=>l(t,n,r,e,c));for(let o of["@firebase/firestore/dist/lite/index.node.cjs.js","@firebase/firestore/dist/lite/index.node.mjs.js","@firebase/firestore/dist/lite/index.rn.esm2017.js","@firebase/firestore/dist/lite/index.cjs.js"])_.files.push(new i.InstrumentationNodeModuleFile(o,t,t=>l(t,n,r,e,c),e=>u(e,r)));return _}},464435,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(102335);function i(e,t,n){return function(o){return function(...a){let i="function"==typeof a[0]?a[0]:a[1],s="function"==typeof a[0]?void 0:a[0];if(!i)return o.call(this,...a);let l=async function(...o){let a=process.env.FUNCTION_TARGET||process.env.K_SERVICE||"unknown",s=e.startSpan(`firebase.function.${n}`,{kind:r.SpanKind.SERVER}),l={"faas.name":a,"faas.trigger":n,"faas.provider":"firebase"};return process.env.GCLOUD_PROJECT&&(l["cloud.project_id"]=process.env.GCLOUD_PROJECT),process.env.EVENTARC_CLOUD_EVENT_SOURCE&&(l["cloud.event_source"]=process.env.EVENTARC_CLOUD_EVENT_SOURCE),s.setAttributes(l),t?.requestHook?.(s),r.context.with(r.trace.setSpan(r.context.active(),s),async()=>{let e,n;try{n=await i.apply(this,o)}catch(t){e=t}if(t?.responseHook?.(s,e),e&&s.recordException(e),s.end(),e)throw await t?.errorHook?.(s,e),e;return n})};return s?o.call(this,s,l):o.call(this,l)}}}function s(e,t){for(let n of["onSchedule","onRequest","onCall","onObjectFinalized","onObjectArchived","onObjectDeleted","onObjectMetadataUpdated","onDocumentCreated","onDocumentUpdated","onDocumentDeleted","onDocumentWritten","onDocumentCreatedWithAuthContext","onDocumentUpdatedWithAuthContext","onDocumentDeletedWithAuthContext","onDocumentWrittenWithAuthContext"])o.isWrapped(e[n])&&t(e,n);return e}n.patchFunctions=function(e,t,n,l,u){let c=()=>{},p=()=>{},_=u.functions?.errorHook,T=u.functions?.requestHook,S=u.functions?.responseHook;"function"==typeof S&&(p=(e,t)=>{o.safeExecuteInTheMiddle(()=>S(e,t),e=>{e&&r.diag.error(e?.message)},!0)}),"function"==typeof T&&(c=e=>{o.safeExecuteInTheMiddle(()=>T(e),e=>{e&&r.diag.error(e?.message)},!0)});let E=new o.InstrumentationNodeModuleDefinition("firebase-functions",t);return[{name:"firebase-functions/lib/v2/providers/https.js",triggerType:"function"},{name:"firebase-functions/lib/v2/providers/firestore.js",triggerType:"firestore"},{name:"firebase-functions/lib/v2/providers/scheduler.js",triggerType:"scheduler"},{name:"firebase-functions/lib/v2/storage.js",triggerType:"storage"}].forEach(({name:r,triggerType:o})=>{E.files.push(new a.InstrumentationNodeModuleFile(r,t,t=>(function(e,t,n,r,o,a){switch(s(e,n),a){case"function":t(e,"onRequest",i(r,o,"http.request")),t(e,"onCall",i(r,o,"http.call"));break;case"firestore":t(e,"onDocumentCreated",i(r,o,"firestore.document.created")),t(e,"onDocumentUpdated",i(r,o,"firestore.document.updated")),t(e,"onDocumentDeleted",i(r,o,"firestore.document.deleted")),t(e,"onDocumentWritten",i(r,o,"firestore.document.written")),t(e,"onDocumentCreatedWithAuthContext",i(r,o,"firestore.document.created")),t(e,"onDocumentUpdatedWithAuthContext",i(r,o,"firestore.document.updated")),t(e,"onDocumentDeletedWithAuthContext",i(r,o,"firestore.document.deleted")),t(e,"onDocumentWrittenWithAuthContext",i(r,o,"firestore.document.written"));break;case"scheduler":t(e,"onSchedule",i(r,o,"scheduler.scheduled"));break;case"storage":t(e,"onObjectFinalized",i(r,o,"storage.object.finalized")),t(e,"onObjectArchived",i(r,o,"storage.object.archived")),t(e,"onObjectDeleted",i(r,o,"storage.object.deleted")),t(e,"onObjectMetadataUpdated",i(r,o,"storage.object.metadataUpdated"))}return e})(t,n,l,e,{requestHook:c,responseHook:p,errorHook:_},o),e=>s(e,l)))}),E},n.patchV2Functions=i},832977,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(513128),a=e.r(454258),i=e.r(464435),s={},l=[">=3.0.0 <5"],u=[">=6.0.0 <7"];class c extends r.InstrumentationBase{constructor(e=s){super("@sentry/instrumentation-firebase",o.SDK_VERSION,e)}setConfig(e={}){super.setConfig({...s,...e})}init(){let e=[];return e.push(a.patchFirestore(this.tracer,l,this._wrap,this._unwrap,this.getConfig())),e.push(i.patchFunctions(this.tracer,u,this._wrap,this._unwrap,this.getConfig())),e}}n.FirebaseInstrumentation=c},400927,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(832977),i="Firebase",s={firestoreSpanCreationHook:e=>{o.addOriginToSpan(e,"auto.firebase.otel.firestore"),e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"db.query")},functions:{requestHook:e=>{o.addOriginToSpan(e,"auto.firebase.otel.functions"),e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"http.request")},errorHook:async(e,t)=>{t&&(r.captureException(t,{mechanism:{type:"auto.firebase.otel.functions",handled:!1}}),await r.flush(2e3))}}},l=o.generateInstrumentOnce(i,()=>new a.FirebaseInstrumentation(s));n.firebaseIntegration=r.defineIntegration(()=>({name:i,setupOnce(){l()}})),n.instrumentFirebase=l},448036,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(833618),o=e.r(92562),a=e.r(154522),i=e.r(171038),s=e.r(803230),l=e.r(413873),u=e.r(400927),c=e.r(132873),p=e.r(993455),_=e.r(185789),T=e.r(72752),S=e.r(769116),E=e.r(155335),d=e.r(812826),g=e.r(421821),A=e.r(468252),m=e.r(934951),R=e.r(798926),h=e.r(526717),f=e.r(912988),N=e.r(600698),I=e.r(641639),y=e.r(575879),b=e.r(214177),O=e.r(558386),C=e.r(249659),M=e.r(265892),L=e.r(601835);n.getAutoPerformanceIntegrations=function(){return[s.expressIntegration(),l.fastifyIntegration(),_.graphqlIntegration(),S.honoIntegration(),R.mongoIntegration(),h.mongooseIntegration(),f.mysqlIntegration(),N.mysql2Integration(),C.redisIntegration(),y.postgresIntegration(),O.prismaIntegration(),T.hapiIntegration(),d.koaIntegration(),i.connectIntegration(),M.tediousIntegration(),c.genericPoolIntegration(),E.kafkaIntegration(),o.amqplibIntegration(),m.lruMemoizerIntegration(),g.langChainIntegration(),A.langGraphIntegration(),L.vercelAIIntegration(),I.openAIIntegration(),a.anthropicAIIntegration(),p.googleGenAIIntegration(),b.postgresJsIntegration(),u.firebaseIntegration()]},n.getOpenTelemetryInstrumentationToPreload=function(){return[r.instrumentSentryHttp,s.instrumentExpress,i.instrumentConnect,l.instrumentFastify,l.instrumentFastifyV3,T.instrumentHapi,S.instrumentHono,E.instrumentKafka,d.instrumentKoa,m.instrumentLruMemoizer,R.instrumentMongo,h.instrumentMongoose,f.instrumentMysql,N.instrumentMysql2,y.instrumentPostgres,T.instrumentHapi,_.instrumentGraphql,C.instrumentRedis,M.instrumentTedious,c.instrumentGenericPool,o.instrumentAmqplib,g.instrumentLangChain,L.instrumentVercelAi,I.instrumentOpenAi,b.instrumentPostgresJs,u.instrumentFirebase,a.instrumentAnthropicAi,p.instrumentGoogleGenAI,A.instrumentLangGraph]}},649564,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(523662),a=e.r(513128),i=e.r(9597),s=e.r(110516),l=e.r(23602),u=e.r(448036);function c(e,t={}){let n=new o.BasicTracerProvider({sampler:new s.SentrySampler(e),resource:s.getSentryResource("node"),forceFlushTimeoutMillis:500,spanProcessors:[new s.SentrySpanProcessor({timeout:p(e.getOptions().maxSpanWaitDuration)}),...t.spanProcessors||[]]});r.trace.setGlobalTracerProvider(n),r.propagation.setGlobalPropagator(new s.SentryPropagator);let a=new i.SentryContextManager;return r.context.setGlobalContextManager(a),[n,a.getAsyncLocalStorageLookup()]}function p(e){if(null!=e){if(e>1e6)return l.DEBUG_BUILD&&a.debug.warn("`maxSpanWaitDuration` is too high, using the maximum value of 1000000"),1e6;if(e<=0||Number.isNaN(e)){l.DEBUG_BUILD&&a.debug.warn("`maxSpanWaitDuration` must be a positive number, using default value instead.");return}return e}}n._clampSpanProcessorTimeout=p,n.initOpenTelemetry=function(e,t={}){e.getOptions().debug&&i.setupOpenTelemetryLogger();let[n,r]=c(e,t);e.traceProvider=n,e.asyncLocalStorageLookup=r},n.preloadOpenTelemetry=function(e={}){var t;let n,{debug:r}=e;r&&a.debug.enable(),i.initializeEsmLoader(),(t=e.integrations,n=u.getOpenTelemetryInstrumentationToPreload(),t?n.filter(e=>{let n=e.id;return t.some(e=>n===e||n.startsWith(`${e}.`))}):n).forEach(e=>{e(),r&&a.debug.log(`[Sentry] Preloaded ${e.id} instrumentation`)})},n.setupOtel=c},437766,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(833618),i=e.r(300447),s=e.r(448036),l=e.r(649564);function u(){return o.getDefaultIntegrations().filter(e=>"Http"!==e.name&&"NodeFetch"!==e.name).concat(a.httpIntegration(),i.nativeNodeFetchIntegration())}function c(e){return[...u(),...r.hasSpansEnabled(e)?s.getAutoPerformanceIntegrations():[]]}function p(e={},t){r.applySdkMetadata(e,"node");let n=o.init({...e,defaultIntegrations:e.defaultIntegrations??t(e)});return n&&!e.skipOpenTelemetrySetup&&(l.initOpenTelemetry(n,{spanProcessors:e.openTelemetrySpanProcessors}),o.validateOpenTelemetrySetup()),n}n.getDefaultIntegrations=c,n.getDefaultIntegrationsWithoutPerformance=u,n.init=function(e={}){return p(e,c)},n.initWithoutDefaultIntegrations=function(e={}){return p(e,()=>[])}},91242,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(833618),o=e.r(300447),a=e.r(777683),i=e.r(803230),s=e.r(413873),l=e.r(185789),u=e.r(155335),c=e.r(934951),p=e.r(798926),_=e.r(526717),T=e.r(912988),S=e.r(600698),E=e.r(249659),d=e.r(575879),g=e.r(214177),A=e.r(558386),m=e.r(72752),R=e.r(769116),h=e.r(812826),f=e.r(171038),N=e.r(141085),I=e.r(265892),y=e.r(132873),b=e.r(7298),O=e.r(92562),C=e.r(601835),M=e.r(641639),L=e.r(154522),P=e.r(993455),U=e.r(421821),v=e.r(468252),D=e.r(238e3),G=e.r(745498),B=e.r(373223),x=e.r(982823),V=e.r(180196),w=e.r(400927),k=e.r(437766),H=e.r(649564),Y=e.r(448036),F=e.r(110516),W=e.r(513128),j=e.r(9597);n.httpIntegration=r.httpIntegration,n.nativeNodeFetchIntegration=o.nativeNodeFetchIntegration,n.fsIntegration=a.fsIntegration,n.expressIntegration=i.expressIntegration,n.setupExpressErrorHandler=i.setupExpressErrorHandler,n.fastifyIntegration=s.fastifyIntegration,n.setupFastifyErrorHandler=s.setupFastifyErrorHandler,n.graphqlIntegration=l.graphqlIntegration,n.kafkaIntegration=u.kafkaIntegration,n.lruMemoizerIntegration=c.lruMemoizerIntegration,n.mongoIntegration=p.mongoIntegration,n.mongooseIntegration=_.mongooseIntegration,n.mysqlIntegration=T.mysqlIntegration,n.mysql2Integration=S.mysql2Integration,n.redisIntegration=E.redisIntegration,n.postgresIntegration=d.postgresIntegration,n.postgresJsIntegration=g.postgresJsIntegration,n.prismaIntegration=A.prismaIntegration,n.hapiIntegration=m.hapiIntegration,n.setupHapiErrorHandler=m.setupHapiErrorHandler,n.honoIntegration=R.honoIntegration,n.setupHonoErrorHandler=R.setupHonoErrorHandler,n.koaIntegration=h.koaIntegration,n.setupKoaErrorHandler=h.setupKoaErrorHandler,n.connectIntegration=f.connectIntegration,n.setupConnectErrorHandler=f.setupConnectErrorHandler,n.knexIntegration=N.knexIntegration,n.tediousIntegration=I.tediousIntegration,n.genericPoolIntegration=y.genericPoolIntegration,n.dataloaderIntegration=b.dataloaderIntegration,n.amqplibIntegration=O.amqplibIntegration,n.vercelAIIntegration=C.vercelAIIntegration,n.openAIIntegration=M.openAIIntegration,n.anthropicAIIntegration=L.anthropicAIIntegration,n.googleGenAIIntegration=P.googleGenAIIntegration,n.langChainIntegration=U.langChainIntegration,n.langGraphIntegration=v.langGraphIntegration,n.buildLaunchDarklyFlagUsedHandler=D.buildLaunchDarklyFlagUsedHandlerShim,n.launchDarklyIntegration=D.launchDarklyIntegrationShim,n.OpenFeatureIntegrationHook=G.OpenFeatureIntegrationHookShim,n.openFeatureIntegration=G.openFeatureIntegrationShim,n.statsigIntegration=B.statsigIntegrationShim,n.unleashIntegration=x.unleashIntegrationShim,n.growthbookIntegration=V.growthbookIntegrationShim,n.firebaseIntegration=w.firebaseIntegration,n.getDefaultIntegrations=k.getDefaultIntegrations,n.getDefaultIntegrationsWithoutPerformance=k.getDefaultIntegrationsWithoutPerformance,n.init=k.init,n.initWithoutDefaultIntegrations=k.initWithoutDefaultIntegrations,n.initOpenTelemetry=H.initOpenTelemetry,n.preloadOpenTelemetry=H.preloadOpenTelemetry,n.getAutoPerformanceIntegrations=Y.getAutoPerformanceIntegrations,n.setNodeAsyncContextStrategy=F.setOpenTelemetryContextAsyncContextStrategy,n.SDK_VERSION=W.SDK_VERSION,n.SEMANTIC_ATTRIBUTE_SENTRY_OP=W.SEMANTIC_ATTRIBUTE_SENTRY_OP,n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=W.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=W.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=W.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n.Scope=W.Scope,n.addBreadcrumb=W.addBreadcrumb,n.addEventProcessor=W.addEventProcessor,n.addIntegration=W.addIntegration,n.captureCheckIn=W.captureCheckIn,n.captureConsoleIntegration=W.captureConsoleIntegration,n.captureEvent=W.captureEvent,n.captureException=W.captureException,n.captureFeedback=W.captureFeedback,n.captureMessage=W.captureMessage,n.captureSession=W.captureSession,n.close=W.close,n.consoleLoggingIntegration=W.consoleLoggingIntegration,n.continueTrace=W.continueTrace,n.createConsolaReporter=W.createConsolaReporter,n.createLangChainCallbackHandler=W.createLangChainCallbackHandler,n.createTransport=W.createTransport,n.dedupeIntegration=W.dedupeIntegration,n.endSession=W.endSession,n.eventFiltersIntegration=W.eventFiltersIntegration,n.expressErrorHandler=W.expressErrorHandler,n.extraErrorDataIntegration=W.extraErrorDataIntegration,n.featureFlagsIntegration=W.featureFlagsIntegration,n.flush=W.flush,n.functionToStringIntegration=W.functionToStringIntegration,n.getActiveSpan=W.getActiveSpan,n.getClient=W.getClient,n.getCurrentScope=W.getCurrentScope,n.getGlobalScope=W.getGlobalScope,n.getIsolationScope=W.getIsolationScope,n.getRootSpan=W.getRootSpan,n.getSpanDescendants=W.getSpanDescendants,n.getSpanStatusFromHttpCode=W.getSpanStatusFromHttpCode,n.getTraceData=W.getTraceData,n.getTraceMetaTags=W.getTraceMetaTags,n.httpHeadersToSpanAttributes=W.httpHeadersToSpanAttributes,n.inboundFiltersIntegration=W.inboundFiltersIntegration,n.instrumentAnthropicAiClient=W.instrumentAnthropicAiClient,n.instrumentGoogleGenAIClient=W.instrumentGoogleGenAIClient,n.instrumentLangChainEmbeddings=W.instrumentLangChainEmbeddings,n.instrumentLangGraph=W.instrumentLangGraph,n.instrumentOpenAiClient=W.instrumentOpenAiClient,n.instrumentStateGraphCompile=W.instrumentStateGraphCompile,n.instrumentSupabaseClient=W.instrumentSupabaseClient,n.isEnabled=W.isEnabled,n.isInitialized=W.isInitialized,n.lastEventId=W.lastEventId,n.linkedErrorsIntegration=W.linkedErrorsIntegration,n.parameterize=W.parameterize,n.profiler=W.profiler,n.requestDataIntegration=W.requestDataIntegration,n.rewriteFramesIntegration=W.rewriteFramesIntegration,n.setContext=W.setContext,n.setConversationId=W.setConversationId,n.setCurrentClient=W.setCurrentClient,n.setExtra=W.setExtra,n.setExtras=W.setExtras,n.setHttpStatus=W.setHttpStatus,n.setMeasurement=W.setMeasurement,n.setTag=W.setTag,n.setTags=W.setTags,n.setUser=W.setUser,n.spanStreamingIntegration=W.spanStreamingIntegration,n.spanToBaggageHeader=W.spanToBaggageHeader,n.spanToJSON=W.spanToJSON,n.spanToTraceHeader=W.spanToTraceHeader,n.startInactiveSpan=W.startInactiveSpan,n.startNewTrace=W.startNewTrace,n.startSession=W.startSession,n.startSpan=W.startSpan,n.startSpanManual=W.startSpanManual,n.supabaseIntegration=W.supabaseIntegration,n.suppressTracing=W.suppressTracing,n.trpcMiddleware=W.trpcMiddleware,n.updateSpanName=W.updateSpanName,n.winterCGHeadersToDict=W.winterCGHeadersToDict,n.withActiveSpan=W.withActiveSpan,n.withIsolationScope=W.withIsolationScope,n.withMonitor=W.withMonitor,n.withScope=W.withScope,n.wrapMcpServerWithSentry=W.wrapMcpServerWithSentry,n.zodErrorsIntegration=W.zodErrorsIntegration,n.NODE_VERSION=j.NODE_VERSION,n.NodeClient=j.NodeClient,n.SentryContextManager=j.SentryContextManager,n._INTERNAL_normalizeCollectionInterval=j._INTERNAL_normalizeCollectionInterval,n.anrIntegration=j.anrIntegration,n.childProcessIntegration=j.childProcessIntegration,n.consoleIntegration=j.consoleIntegration,n.contextLinesIntegration=j.contextLinesIntegration,n.createGetModuleFromFilename=j.createGetModuleFromFilename,n.createSentryWinstonTransport=j.createSentryWinstonTransport,n.cron=j.cron,n.defaultStackParser=j.defaultStackParser,n.disableAnrDetectionForCallback=j.disableAnrDetectionForCallback,n.generateInstrumentOnce=j.generateInstrumentOnce,n.getSentryRelease=j.getSentryRelease,n.httpServerIntegration=j.httpServerIntegration,n.httpServerSpansIntegration=j.httpServerSpansIntegration,n.localVariablesIntegration=j.localVariablesIntegration,n.logger=j.logger,n.makeNodeTransport=j.makeNodeTransport,n.metrics=j.metrics,n.modulesIntegration=j.modulesIntegration,n.nodeContextIntegration=j.nodeContextIntegration,n.nodeRuntimeMetricsIntegration=j.nodeRuntimeMetricsIntegration,n.onUncaughtExceptionIntegration=j.onUncaughtExceptionIntegration,n.onUnhandledRejectionIntegration=j.onUnhandledRejectionIntegration,n.pinoIntegration=j.pinoIntegration,n.processSessionIntegration=j.processSessionIntegration,n.spotlightIntegration=j.spotlightIntegration,n.systemErrorIntegration=j.systemErrorIntegration,n.validateOpenTelemetrySetup=j.validateOpenTelemetrySetup,n.withStreamedSpan=j.withStreamedSpan},441209,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.DEBUG_BUILD="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},492882,e=>{"use strict";var t="<unknown>",n=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/\((\S*)(?::(\d+))(?::(\d+))\)/,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,i=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i,l=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;e.s(["parse",0,function(e){return e.split("\n").reduce(function(e,u){var c,p,_,T,S,E,d=function(e){var o=n.exec(e);if(!o)return null;var a=o[2]&&0===o[2].indexOf("native"),i=o[2]&&0===o[2].indexOf("eval"),s=r.exec(o[2]);return i&&null!=s&&(o[2]=s[1],o[3]=s[2],o[4]=s[3]),{file:a?null:o[2],methodName:o[1]||t,arguments:a?[o[2]]:[],lineNumber:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}(u)||(c=u,(p=o.exec(c))?{file:p[2],methodName:p[1]||t,arguments:[],lineNumber:+p[3],column:p[4]?+p[4]:null}:null)||function(e){var n=a.exec(e);if(!n)return null;var r=n[3]&&n[3].indexOf(" > eval")>-1,o=i.exec(n[3]);return r&&null!=o&&(n[3]=o[1],n[4]=o[2],n[5]=null),{file:n[3],methodName:n[1]||t,arguments:n[2]?n[2].split(","):[],lineNumber:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}(u)||(_=u,(T=l.exec(_))?{file:T[2],methodName:T[1]||t,arguments:[],lineNumber:+T[3],column:T[4]?+T[4]:null}:null)||(S=u,(E=s.exec(S))?{file:E[3],methodName:E[1]||t,arguments:[],lineNumber:+E[4],column:E[5]?+E[5]:null}:null);return d&&e.push(d),e},[])}])},948326,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(492882),a=e.r(441209),i=r.GLOBAL_OBJ;function s(){let e=process.env._sentryBasePath??i._sentryBasePath??"";""===e||e.match(/^\//)||(e=`/${e}`);let t=process.env.PORT||"3000";return`http://localhost:${t}${e}`}async function l(e,t={}){let n=new AbortController,o=setTimeout(()=>n.abort(),3e3);return r.suppressTracing(()=>fetch(e,{...t,signal:n.signal}).finally(()=>{clearTimeout(o)}))}async function u(e,t){try{if(!(e.file?.startsWith("webpack-internal:")||e.file?.startsWith("file:")))return null;let n=new URLSearchParams;n.append("isServer",String(!1)),n.append("isEdgeServer",String(!1)),n.append("isAppDirectory",String(!0)),n.append("errorMessage",t.toString()),Object.keys(e).forEach(t=>{n.append(t,(e[t]??"").toString())});let r=s(),o=await l(`${r}/__nextjs_original-stack-frame?${n.toString()}`);if(!o.ok||204===o.status)return null;let a=await o.json();return{originalCodeFrame:a.originalCodeFrame,originalStackFrame:a.originalStackFrame}}catch(e){return a.DEBUG_BUILD&&r.debug.error("Failed to symbolicate event with Next.js dev server",e),null}}async function c(e){try{let t={frames:e.filter(e=>!!e.file).map(e=>(e.file=e.file.replace(/^rsc:\/\/React\/[^/]+\//,"").replace(/\?\d+$/,""),{file:e.file,methodName:e.methodName??"<unknown>",arguments:[],lineNumber:e.lineNumber??0,column:e.column??0,line1:e.lineNumber??0,column1:e.column??0})),isServer:!1,isEdgeServer:!1,isAppDirectory:!0},n=s(),r=await l(`${n}/__nextjs_original-stack-frames`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok||204===r.status)return null;return(await r.json()).map(e=>({originalCodeFrame:e.value.originalCodeFrame,originalStackFrame:e.value.originalStackFrame}))}catch(e){return a.DEBUG_BUILD&&r.debug.error("Failed to symbolicate event with Next.js dev server",e),null}}n.devErrorSymbolicationEventProcessor=async function e(e,t){"transaction"===e.type&&(e.spans=e.spans?.filter(e=>{let t=e.data?.["http.url"];return"string"!=typeof t||!t.includes("__nextjs_original-stack-frame")}));try{if(t.originalException&&t.originalException instanceof Error&&t.originalException.stack){let n,a=o.parse(t.originalException.stack),s=i._sentryNextJsVersion;if(!s)return e;let l=r.parseSemver(s);if(l.major>15||15===l.major&&l.minor>=2){let t=await c(a);if(null===t)return e;n=t}else n=await Promise.all(a.map(e=>u(e,t.originalException)));e.exception?.values?.[0]?.stacktrace?.frames&&(e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames.map((e,t,r)=>{let o=n[r.length-1-t];if(!o?.originalStackFrame||!o.originalCodeFrame)return{...e,platform:e.filename?.startsWith("node:internal")?"nodejs":void 0,in_app:!1};let{contextLine:a,preContextLines:i,postContextLines:s}=function(e){let t,n=e.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,"").split("\n").filter(e=>!e.match(/^\s*\|/)).map(e=>({line:e,isErrorLine:!!e.match(/^>/)})).map(e=>({...e,line:e.line.replace(/^.*\|/,"")})),r=[],o=[],a=!1;for(let e of n)e.isErrorLine?(t=e.line,a=!0):a?o.push(e.line):r.push(e.line);return{contextLine:t,preContextLines:r,postContextLines:o}}(o.originalCodeFrame);return{...e,pre_context:i,context_line:a,post_context:s,function:o.originalStackFrame.methodName,filename:o.originalStackFrame.file?function(e){if(!e)return e;let t=e.match(/^webpack-internal:(?:\/+)?(?:\([^)]*\)\/)?(.+)$/);return t?t[1]:e}(o.originalStackFrame.file):void 0,lineno:o.originalStackFrame.lineNumber||o.originalStackFrame.line1||void 0,colno:o.originalStackFrame.column||o.originalStackFrame.column1||void 0}}))}}catch{}return e}},404606,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.getVercelEnv=function(e){let t=e?process.env.NEXT_PUBLIC_VERCEL_ENV:process.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}},662566,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.TRANSACTION_ATTR_SENTRY_ROUTE_BACKFILL="sentry.route_backfill",n.TRANSACTION_ATTR_SHOULD_DROP_TRANSACTION="sentry.drop_transaction"},892338,(e,t,n)=>{"use strict";n._=function(e){return e&&e.__esModule?e:{default:e}}},403222,(e,t,n)=>{"use strict";t.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},229894,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return s},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l},UNDERSCORE_NOT_FOUND_ROUTE:function(){return a},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return i}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a="/_not-found",i=`${a}/page`,s="/_global-error",l=`${s}/page`},951547,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o={APP_CLIENT_INTERNALS:function(){return et},APP_PATHS_MANIFEST:function(){return m},APP_PATH_ROUTES_MANIFEST:function(){return R},AdapterOutputType:function(){return c},BARREL_OPTIMIZATION_PREFIX:function(){return K},BLOCKED_PAGES:function(){return H},BUILD_ID_FILE:function(){return k},BUILD_MANIFEST:function(){return h},CLIENT_PUBLIC_FILES_PATH:function(){return Y},CLIENT_REFERENCE_MANIFEST:function(){return X},CLIENT_STATIC_FILES_PATH:function(){return F},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return q},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return ea},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return en},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return er},COMPILER_INDEXES:function(){return u},COMPILER_NAMES:function(){return l},CONFIG_FILES:function(){return w},DEFAULT_RUNTIME_WEBPACK:function(){return ei},DEFAULT_SANS_SERIF_FONT:function(){return ep},DEFAULT_SERIF_FONT:function(){return ec},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return B},DEV_CLIENT_PAGES_MANIFEST:function(){return U},DYNAMIC_CSS_MANIFEST:function(){return $},EDGE_RUNTIME_WEBPACK:function(){return es},EDGE_UNSUPPORTED_NODE_APIS:function(){return ed},EXPORT_DETAIL:function(){return b},EXPORT_MARKER:function(){return y},FUNCTIONS_CONFIG_MANIFEST:function(){return f},IMAGES_MANIFEST:function(){return L},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return z},MIDDLEWARE_BUILD_MANIFEST:function(){return J},MIDDLEWARE_MANIFEST:function(){return v},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return Q},MODERN_BROWSERSLIST_TARGET:function(){return i.default},NEXT_BUILTIN_DOCUMENT:function(){return j},NEXT_FONT_MANIFEST:function(){return I},PAGES_MANIFEST:function(){return A},PHASE_ANALYZE:function(){return _},PHASE_DEVELOPMENT_SERVER:function(){return E},PHASE_EXPORT:function(){return p},PHASE_INFO:function(){return g},PHASE_PRODUCTION_BUILD:function(){return T},PHASE_PRODUCTION_SERVER:function(){return S},PHASE_TEST:function(){return d},PREFETCH_HINTS:function(){return C},PRERENDER_MANIFEST:function(){return O},REACT_LOADABLE_MANIFEST:function(){return x},ROUTES_MANIFEST:function(){return M},RSC_MODULE_TYPES:function(){return eE},SERVER_DIRECTORY:function(){return V},SERVER_FILES_MANIFEST:function(){return P},SERVER_PROPS_ID:function(){return eu},SERVER_REFERENCE_MANIFEST:function(){return Z},STATIC_PROPS_ID:function(){return el},STATIC_STATUS_PAGES:function(){return e_},STRING_LITERAL_DROP_BUNDLE:function(){return W},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return N},SYSTEM_ENTRYPOINTS:function(){return eg},TRACE_OUTPUT_VERSION:function(){return eT},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return G},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return D},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return eS},UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return s.UNDERSCORE_GLOBAL_ERROR_ROUTE},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return s.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY},UNDERSCORE_NOT_FOUND_ROUTE:function(){return s.UNDERSCORE_NOT_FOUND_ROUTE},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return s.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY}};for(var a in o)Object.defineProperty(n,a,{enumerable:!0,get:o[a]});let i=e.r(892338)._(e.r(403222)),s=e.r(229894),l={client:"client",server:"server",edgeServer:"edge-server"},u={[l.client]:0,[l.server]:1,[l.edgeServer]:2};var c=((r={}).PAGES="PAGES",r.PAGES_API="PAGES_API",r.APP_PAGE="APP_PAGE",r.APP_ROUTE="APP_ROUTE",r.PRERENDER="PRERENDER",r.STATIC_FILE="STATIC_FILE",r.MIDDLEWARE="MIDDLEWARE",r);let p="phase-export",_="phase-analyze",T="phase-production-build",S="phase-production-server",E="phase-development-server",d="phase-test",g="phase-info",A="pages-manifest.json",m="app-paths-manifest.json",R="app-path-routes-manifest.json",h="build-manifest.json",f="functions-config-manifest.json",N="subresource-integrity-manifest",I="next-font-manifest",y="export-marker.json",b="export-detail.json",O="prerender-manifest.json",C="prefetch-hints.json",M="routes-manifest.json",L="images-manifest.json",P="required-server-files",U="_devPagesManifest.json",v="middleware-manifest.json",D="_clientMiddlewareManifest.js",G="client-build-manifest.json",B="_devMiddlewareManifest.json",x="react-loadable-manifest.json",V="server",w=["next.config.js","next.config.mjs","next.config.ts",...process?.features?.typescript?["next.config.mts"]:[]],k="BUILD_ID",H=["/_document","/_app","/_error"],Y="public",F="static",W="__NEXT_DROP_CLIENT_FILE__",j="__NEXT_BUILTIN_DOCUMENT__",K="__barrel_optimize__",X="client-reference-manifest",Z="server-reference-manifest",J="middleware-build-manifest",Q="middleware-react-loadable-manifest",z="interception-route-rewrite-manifest",$="dynamic-css-manifest",q="main",ee=`${q}-app`,et="app-pages-internals",en="react-refresh",er="webpack",eo="polyfills",ea=Symbol(eo),ei="webpack-runtime",es="edge-runtime-webpack",el="__N_SSG",eu="__N_SSP",ec={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ep={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},e_=["/500"],eT=1,eS=6e3,eE={client:"client",server:"server"},ed=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eg=new Set([q,en,ee]);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},212397,(e,t,n)=>{t.exports=e.r(951547)},247089,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(212397);n.isBuild=function(){return process.env.NEXT_PHASE===r.PHASE_PRODUCTION_BUILD}},902054,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(441209);async function a(){try{o.DEBUG_BUILD&&r.debug.log("Flushing events..."),await r.flush(2e3),o.DEBUG_BUILD&&r.debug.log("Done flushing events")}catch(e){o.DEBUG_BUILD&&r.debug.log("Error while flushing events:\n",e)}}function i(){let e=Symbol.for("__cloudflare-context__");return r.GLOBAL_OBJ[e]?.ctx}function s(e){i()?.waitUntil(e)}function l(){return"function"==typeof i()?.waitUntil}n.cloudflareWaitUntil=s,n.flushSafelyWithTimeout=a,n.isCloudflareWaitUntilAvailable=l,n.waitUntil=function(e){l()?s(e):r.vercelWaitUntil(e)}},227685,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);function o(e){let t=e.split("/").filter(e=>e&&!(e.startsWith("(")&&e.endsWith(")")));return t.length>0?`/${t.join("/")}`:"/"}function a(e,t,n,a){let i=a??o(e),s=n?.["x-forwarded-proto"],l=n?.["x-forwarded-host"]||n?.host;if(!s||!l)return i;let u=`${s}://${l}${i}`,c=r.parseStringToURLObject(u);return c?r.getSanitizedUrlStringFromUrlObject(c):i}function i(e){let t=e?.referer;if(t)try{let e=new URL(t);return r.getSanitizedUrlStringFromUrlObject(e)}catch{return}}n.buildUrlFromComponentRoute=a,n.extractSanitizedUrlFromRefererHeader=i,n.getSanitizedRequestUrl=function(e,t,n,r){let o=i(n);return o||a(e,t,n,r)},n.sanitizeRoutePath=o,n.substituteRouteParams=function(e,t){return e}},115227,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(227685);n.setUrlProcessingMetadata=function(e){if("transaction"!==e.type||e.contexts?.trace?.op!=="http.server"||!e.contexts?.trace?.data||!r.getClient())return;let t=e.contexts.trace.data,n=t["next.route"]||t["http.route"],a=t["http.target"];if(!n)return;let i=e.sdkProcessingMetadata?.capturedSpanIsolationScope?.getScopeData(),s=i?.sdkProcessingMetadata?.normalizedRequest?.headers,l=o.getSanitizedRequestUrl(n,void 0,s,a?.toString());l&&i?.sdkProcessingMetadata&&(i.sdkProcessingMetadata.normalizedRequest=i.sdkProcessingMetadata.normalizedRequest||{},i.sdkProcessingMetadata.normalizedRequest.url=l)}},172206,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(814747);n.distDirRewriteFramesIntegration=r.defineIntegration(({distDirName:e})=>{let t=o.resolve(e).replace(/(\/|\\)$/,""),n=new RegExp(r.escapeStringForRegex(t));return{...r.rewriteFramesIntegration({iteratee:e=>(e.filename=e.filename?.replace(n,"app:///_next"),e)}),name:"DistDirRewriteFrames"}})},875563,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_NEXT_ROUTE="next.route",n.ATTR_NEXT_SEGMENT="next.segment",n.ATTR_NEXT_SPAN_NAME="next.span_name",n.ATTR_NEXT_SPAN_TYPE="next.span_type"},765331,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(513128),a=e.r(875563),i=e.r(662566);n.enhanceHandleRequestRootSpan=function(e){let{attributes:t}=e;if("BaseServer.handleRequest"!==t[a.ATTR_NEXT_SPAN_TYPE])return;t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]="http.server",e.setOp("http.server");let n=e.getName();n&&e.setName(o.stripUrlQueryAndFragment(n));let s=t[r.SEMATTRS_HTTP_METHOD]??t[r.ATTR_HTTP_REQUEST_METHOD],l=t[r.SEMATTRS_HTTP_TARGET],u=t[r.ATTR_HTTP_ROUTE]||t[a.ATTR_NEXT_ROUTE],c=t[a.ATTR_NEXT_SPAN_NAME];if("string"==typeof s&&"string"==typeof u&&!u.startsWith("middleware")){let n=u.replace(/\/route$/,"");e.setName(`${s} ${n}`),t[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route",t[a.ATTR_NEXT_ROUTE]=n}let p=t[i.TRANSACTION_ATTR_SENTRY_ROUTE_BACKFILL];"string"==typeof p&&"GET /_app"!==e.getName()&&e.setName(`${"string"==typeof s?s:"GET"} ${p}`);let _="string"==typeof c&&c.match(/^middleware (GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)/);_&&(e.setName(`middleware ${_[1]}`),e.setOp("http.server.middleware")),"GET /_error"===e.getName()&&"string"==typeof l&&e.setName(`${"string"==typeof s?`${s} `:""}${l}`)}},442087,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.addHeadersAsAttributes=function(e,t){if(!e)return{};let n=r.getClient(),o=n?.getDataCollectionOptions();if(o?.httpHeaders.request===!1)return{};let a=e instanceof Headers||"object"==typeof e&&"get"in e?r.winterCGHeadersToDict(e):e,i=r.httpHeadersToSpanAttributes(a,o??!1);return t&&t.setAttributes(i),i}},387838,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.isPathnameUnderSentryTunnelRoute=function(e,t){return e===t||e.startsWith(`${t}/`)}},709659,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(513128),a=e.r(110516),i=e.r(875563),s=e.r(387838),l=e.r(662566),u=o.GLOBAL_OBJ;n.dropMiddlewareTunnelRequests=function(e,t){if(o.getClient()?.getOptions()?.skipOpenTelemetrySetup)return;let n=t?.[i.ATTR_NEXT_SPAN_TYPE]==="Middleware.execute",c=t?.[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]==="auto.http.otel.node_fetch",p=t?.[i.ATTR_NEXT_SPAN_TYPE]==="BaseServer.handleRequest";if(!n&&!c&&!p)return;let _=function(e){let t=u._sentryRewritesTunnelPath||process.env._sentryRewritesTunnelPath;if(!t)return!1;let n=e[r.SEMATTRS_HTTP_TARGET];if("string"==typeof n){let e=n.split("?")[0]||"";return s.isPathnameUnderSentryTunnelRoute(e,t)}return!1}(t||{}),T=a.isSentryRequestSpan(e);(_||T)&&e.setAttribute(l.TRANSACTION_ATTR_SHOULD_DROP_TRANSACTION,!0)}},46423,(e,t,n)=>{let r;Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let o=e.r(216835),a=e.r(513128),i=e.r(441209),s=e.r(875563),l=e.r(662566),u="__PAGE__",c=new WeakMap;function p(e){return"NextNodeServer.getLayoutOrPageModule"===e[s.ATTR_NEXT_SPAN_TYPE]&&"resolve segment modules"===e[s.ATTR_NEXT_SPAN_NAME]&&"string"==typeof e[s.ATTR_NEXT_SEGMENT]}function _({segment:e,route:t}){return e===u?`resolve page server component "${t}"`:""===e?"resolve root layout server component":`resolve layout server component "${e}"`}n.commonObjectToIsolationScope=function(e){if("object"!=typeof e||!e)return new a.Scope;{let t=c.get(e);if(t)return t;{let t=new a.Scope;return c.set(e,t),t}}},n.dropNextjsRootContext=function(){if(a.getClient()?.getOptions()?.skipOpenTelemetrySetup)return;let e=a.getActiveSpan();if(e){let t=a.getRootSpan(e),n=a.spanToJSON(t).data;n?.["next.span_type"]&&a.getRootSpan(e)?.setAttribute(l.TRANSACTION_ATTR_SHOULD_DROP_TRANSACTION,!0)}},n.escapeNextjsTracing=function(e){let t=a.GLOBAL_OBJ.AsyncLocalStorage;return t?(r||(r=new t),r.getStore())?e():a.startNewTrace(()=>r.run(!0,()=>e())):(i.DEBUG_BUILD&&a.debug.warn("Tried to register AsyncLocalStorage async context strategy in a runtime that doesn't support AsyncLocalStorage."),e())},n.getEnhancedResolveSegmentSpanName=_,n.isResolveSegmentSpan=p,n.maybeEnhanceServerComponentSpanName=function(e,t,n){if(!p(t))return;let r=t[s.ATTR_NEXT_SEGMENT],i=n[o.ATTR_HTTP_ROUTE],l=_({segment:r,route:"string"==typeof i?i:""});e.updateName(l),e.setAttributes({"sentry.nextjs.ssr.function.type":r===u?"Page":"Layout","sentry.nextjs.ssr.function.route":i}),e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_OP,"function.nextjs")}},225311,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(441209),a="sentry.cron.checkInId",i="sentry.cron.monitorSlug",s="sentry.cron.startTime",l="sentry.cron.schedule";n.maybeCompleteCronCheckIn=function(e){let t=r.spanToJSON(e).data,n=t?.[a],u=t?.[i],c=t?.[s],p=t?.[l];if(!n||!u||"number"!=typeof c)return;let _=r._INTERNAL_safeDateNow()/1e3-c,T=r.spanToJSON(e).status,S=T&&"ok"!==T?"error":"ok";r.captureCheckIn({checkInId:n,monitorSlug:u,status:S,duration:_},"string"==typeof p?{maxRuntime:720,schedule:{type:"crontab",value:p}}:void 0),e.setAttribute(a,void 0),e.setAttribute(i,void 0),e.setAttribute(s,void 0),e.setAttribute(l,void 0),o.DEBUG_BUILD&&r.debug.log(`[Cron] Completed check-in for "${u}" with status "${S}"`)},n.maybeStartCronCheckIn=function(e,t){let n=function(){let e=globalThis;if(e._sentryVercelCronsConfig)try{return JSON.parse(e._sentryVercelCronsConfig)}catch{o.DEBUG_BUILD&&r.debug.log("[@sentry/nextjs] Failed to parse Vercel crons config");return}}();if(!n||!t)return;let u=r.getIsolationScope().getScopeData().sdkProcessingMetadata?.normalizedRequest?.headers;if(!u)return;let c=Array.isArray(u["user-agent"])?u["user-agent"][0]:u["user-agent"];if(!c?.includes("vercel-cron"))return;let p=n.find(e=>e.path===t);if(!p?.path||!p.schedule)return;let _=p.path,T=r._INTERNAL_safeDateNow()/1e3,S=r.captureCheckIn({monitorSlug:_,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:p.schedule}});o.DEBUG_BUILD&&r.debug.log(`[Cron] Started check-in for "${_}" with ID "${S}"`),e.setAttribute(a,S),e.setAttribute(i,_),e.setAttribute(s,T),e.setAttribute(l,p.schedule)}},527706,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o="messaging.system",a="messaging.destination.name",i="messaging.operation.name",s="sentry.queue.enriched";function l(e,t){let n=e[t];return Array.isArray(n)?n[0]:n}n.maybeCleanupQueueSpan=function(e){let t=r.spanToJSON(e).data;t?.[s]&&e.setAttribute(s,void 0)},n.maybeEnrichQueueConsumerSpan=function(e){let t=r.getIsolationScope().getScopeData().sdkProcessingMetadata?.normalizedRequest?.headers;if(!t||"com.vercel.queue.v2beta"!==(Array.isArray(t["ce-type"])?t["ce-type"][0]:t["ce-type"]))return;let n=l(t,"ce-vqsqueuename"),u=l(t,"ce-vqsmessageid"),c=l(t,"ce-vqsconsumergroup"),p=l(t,"ce-vqsdeliverycount");if(e.setAttribute(o,"vercel.queue"),e.setAttribute(i,"process"),n&&e.setAttribute(a,n),u&&e.setAttribute("messaging.message.id",u),c&&e.setAttribute("messaging.consumer.group.name",c),p){let t=parseInt(p,10);isNaN(t)||e.setAttribute("messaging.message.delivery_count",t)}e.setAttribute(s,!0)},n.maybeEnrichQueueProducerSpan=function(e){let t,n=r.spanToJSON(e).data,l=n?.["url.full"];if(!l)return;try{t=new URL(l)}catch{return}if("vercel-queue.com"!==t.hostname&&!t.hostname.endsWith(".vercel-queue.com"))return;let u=t.pathname.match(/^\/api\/v3\/topic\/([^/]+)/);if(!u)return;let c=decodeURIComponent(u[1]);e.setAttribute(o,"vercel.queue"),e.setAttribute(a,c),e.setAttribute(i,"send"),e.setAttribute(s,!0)}},362405,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(216835),a=e.r(513128),i=e.r(110516),s=e.r(875563),l=e.r(442087),u=e.r(709659),c=e.r(46423),p=e.r(225311),_=e.r(527706);n.handleOnSpanStart=function(e){let t=a.spanToJSON(e).data,n=a.getRootSpan(e),T=a.spanToJSON(n).data,S=e===n;if(u.dropMiddlewareTunnelRequests(e,t),"string"==typeof t?.[s.ATTR_NEXT_ROUTE]&&(T?.[o.ATTR_HTTP_REQUEST_METHOD]||T?.[o.SEMATTRS_HTTP_METHOD])&&!T?.[o.ATTR_HTTP_ROUTE]){let e=t[s.ATTR_NEXT_ROUTE].replace(/\/route$/,"");n.updateName(e),n.setAttribute(o.ATTR_HTTP_ROUTE,e),n.setAttribute(s.ATTR_NEXT_ROUTE,e);let r=T?.[o.ATTR_HTTP_REQUEST_METHOD]||T?.[o.SEMATTRS_HTTP_METHOD];"string"==typeof r&&a.getIsolationScope().setTransactionName(`${r} ${e}`),p.maybeStartCronCheckIn(n,e),_.maybeEnrichQueueConsumerSpan(n)}if(t?.[s.ATTR_NEXT_SPAN_TYPE]==="Middleware.execute"){let r=t[s.ATTR_NEXT_SPAN_NAME];"string"==typeof r&&(n.updateName(r),n.setAttribute(o.ATTR_HTTP_ROUTE,r),n.setAttribute(s.ATTR_NEXT_SPAN_NAME,r)),e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto")}if(t?.[s.ATTR_NEXT_SPAN_TYPE]!==void 0&&e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto"),S){let e=a.getIsolationScope().getScopeData().sdkProcessingMetadata?.normalizedRequest?.headers;l.addHeadersAsAttributes(e,n)}if(t?.[s.ATTR_NEXT_SPAN_TYPE]==="BaseServer.handleRequest"&&S){let t=a.getCapturedScopesOnSpan(e),n=(t.isolationScope||a.getIsolationScope()).clone(),o=t.scope||a.getCurrentScope(),s=i.getScopesFromContext(r.context.active());s&&(s.isolationScope=n),a.setCapturedScopesOnSpan(e,o,n)}c.maybeEnhanceServerComponentSpanName(e,t,T),_.maybeEnrichQueueProducerSpan(e)}},957894,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(441209);function a(){let e=function(){if("u">typeof AsyncLocalStorage)return AsyncLocalStorage;if("getBuiltinModule"in process&&"function"==typeof process.getBuiltinModule){let{AsyncLocalStorage:e}=process.getBuiltinModule("async_hooks")??{};return e}}();if(!e||"function"!=typeof e.snapshot){o.DEBUG_BUILD&&r.debug.warn("[@sentry/nextjs] No AsyncLocalStorage found in the runtime or AsyncLocalStorage.snapshot() is not available, skipping safe random ID generator context preparation, you may see some errors with cache components.");return}return e.snapshot()}function i(e){return e instanceof Error&&e.message.includes("AsyncLocalStorage")}n.prepareSafeIdGeneratorContext=function(){let e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),t=r.GLOBAL_OBJ,n=a();if(!n)return;let s=n;t[e]=e=>{try{return s(e)}catch(n){if(!i(n))throw n;let t=a();if(!t)return e();s=t;try{return s(e)}catch(t){if(!i(t))throw t;return e()}}},o.DEBUG_BUILD&&r.debug.log("[@sentry/nextjs] Prepared safe random ID generator context")}},656543,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054);n.captureUnderscoreErrorException=async function(e){let{req:t,res:n,err:a}=e,i=n?.statusCode||e.statusCode;if(i&&i<500||!e.pathname)return;if(a&&r.isAlreadyCaptured(a)){o.waitUntil(o.flushSafelyWithTimeout());let e="object"==typeof a?a.__sentry_event_id__:void 0;return"string"==typeof e?(r.getIsolationScope().setLastEventId(e),e):r.getIsolationScope().lastEventId()}let s=r.withScope(e=>{if(t){let n=r.httpRequestToRequestData(t);e.setSDKProcessingMetadata({normalizedRequest:n})}return r.captureException(a||`_error.js called with falsy error (${a})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return o.waitUntil(o.flushSafelyWithTimeout()),s}},555819,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.isUseCacheFunction=function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),n=t>>1&63,r=Array(6);for(let e=0;e<6;e++){let t=n>>5-e&1;r[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:r,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}},278534,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(441209),a=e.r(247089),i=e.r(555819);function s(e){let t=a.isBuild(),n=!!e&&i.isUseCacheFunction(e);return n&&o.DEBUG_BUILD&&r.debug.log("Skipping span creation in Cache Components context"),t||n}function l(){return new r.SentryNonRecordingSpan({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}n.startInactiveSpan=function(e){return s()?l():r.startInactiveSpan(e)},n.startSpan=function(e,t){return s(t)?t(l()):r.startSpan(e,t)},n.startSpanManual=function(e,t){if(s(t)){let e=l();return t(e,()=>e.end())}return r.startSpanManual(e,t)}},589741,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(662566);n.callDataFetcherTraced=async function(e,t){try{return await e(...t)}catch(e){throw r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}},n.withErrorInstrumentation=function(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw r.captureException(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}},n.withTracedServerSideDataFetcher=function(e,t,n,a){return async function(...n){let i=r.httpRequestToRequestData(t);r.getCurrentScope().setTransactionName(`${a.dataFetchingMethodName} (${a.dataFetcherRouteName})`),r.getIsolationScope().setSDKProcessingMetadata({normalizedRequest:i});let s=r.getActiveSpan();s&&"/_error"!==a.requestedRouteName&&r.getRootSpan(s).setAttribute(o.TRANSACTION_ATTR_SENTRY_ROUTE_BACKFILL,a.requestedRouteName);let{"sentry-trace":l,baggage:u}=r.getTraceData();return{sentryTrace:l,baggage:u,data:await e.apply(this,n)}}}},116147,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapGetStaticPropsWithSentry=function(e,t){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let a=o.withErrorInstrumentation(e);return o.callDataFetcherTraced(a,n)}})}},647520,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[a]=n,{req:i,res:s}=a,l=o.withErrorInstrumentation(e);if(!i||!s)return l.apply(t,n);{let e=o.withTracedServerSideDataFetcher(l,i,s,{dataFetcherRouteName:a.pathname,requestedRouteName:a.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r,baggage:u,sentryTrace:c}=await e.apply(t,n)??{};return"object"==typeof r&&null!==r&&(c&&(r._sentryTraceData=c),u&&(r._sentryBaggage=u)),r}}})}},867747,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapAppGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[a]=n,{req:i,res:s}=a.ctx,l=o.withErrorInstrumentation(e);if(!i||!s)return l.apply(t,n);{let e=o.withTracedServerSideDataFetcher(l,i,s,{dataFetcherRouteName:"/_app",requestedRouteName:a.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r,sentryTrace:u,baggage:c}=await e.apply(t,n);return"object"==typeof r&&null!==r&&(r.pageProps||(r.pageProps={}),u&&(r.pageProps._sentryTraceData=u),c&&(r.pageProps._sentryBaggage=c)),r}}})}},452407,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapDocumentGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[a]=n,{req:i,res:s}=a,l=o.withErrorInstrumentation(e);if(!i||!s)return l.apply(t,n);{let e=o.withTracedServerSideDataFetcher(l,i,s,{dataFetcherRouteName:"/_document",requestedRouteName:a.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r}=await e.apply(t,n);return r}}})}},324195,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapErrorGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[a]=n,{req:i,res:s}=a,l=o.withErrorInstrumentation(e);if(!i||!s)return l.apply(t,n);{let e=o.withTracedServerSideDataFetcher(l,i,s,{dataFetcherRouteName:"/_error",requestedRouteName:a.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r,baggage:u,sentryTrace:c}=await e.apply(t,n);return"object"==typeof r&&null!==r&&(c&&(r._sentryTraceData=c),u&&(r._sentryBaggage=u)),r}}})}},884587,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapGetServerSidePropsWithSentry=function(e,t){return new Proxy(e,{apply:async(e,n,a)=>{if(r.isBuild())return e.apply(n,a);let[i]=a,{req:s,res:l}=i,u=o.withErrorInstrumentation(e),c=o.withTracedServerSideDataFetcher(u,s,l,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:p,baggage:_,sentryTrace:T}=await c.apply(n,a);return"object"==typeof p&&null!==p&&"props"in p&&(T&&(p.props._sentryTraceData=T),_&&(p.props._sentryBaggage=_)),p}})}},281881,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.isNotFoundNavigationError=function(e){return r.isError(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)},n.isRedirectNavigationError=function(e){return r.isError(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}},979036,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(281881),a=e.r(902054);n.wrapServerComponentWithSentry=function(e,t){return new Proxy(e,{apply:(e,n,i)=>{let s=r.getIsolationScope(),l=t.headers?r.winterCGHeadersToDict(t.headers):void 0;return s.setSDKProcessingMetadata({normalizedRequest:{headers:l}}),r.handleCallbackErrors(()=>e.apply(n,i),e=>{let n=r.getActiveSpan(),{componentRoute:a,componentType:i}=t,l=!0;s.setTransactionName(`${i} Server Component (${a})`),n&&(o.isNotFoundNavigationError(e)?(l=!1,n.setStatus({code:r.SPAN_STATUS_ERROR,message:"not_found"})):o.isRedirectNavigationError(e)?(l=!1,n.setStatus({code:r.SPAN_STATUS_OK})):n.setStatus({code:r.SPAN_STATUS_ERROR,message:"internal_error"})),l&&r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{a.waitUntil(a.flushSafelyWithTimeout())})}})}},546923,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(281881),a=e.r(902054);e.r(46423),n.wrapRouteHandlerWithSentry=function(e,t){let{method:n,parameterizedRoute:i,headers:s}=t;return new Proxy(e,{apply:async(e,t,s)=>{let l=r.getActiveSpan(),u=l?r.getRootSpan(l):void 0;return r.withIsolationScope(r.getIsolationScope(),()=>r.withScope(async c=>{c.setTransactionName(`${n} ${i}`);let p=await r.handleCallbackErrors(()=>e.apply(t,s),e=>{o.isRedirectNavigationError(e)||(o.isNotFoundNavigationError(e)?(l&&r.setHttpStatus(l,404),u&&r.setHttpStatus(u,404)):r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{a.waitUntil(a.flushSafelyWithTimeout())});try{p.status&&(l&&r.setHttpStatus(l,p.status),u&&r.setHttpStatus(u,p.status))}catch{}return p}))}})}},799916,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.wrapApiHandlerWithSentryVercelCrons=function(e,t){return new Proxy(e,{apply:(e,n,o)=>{let a;if(!o?.[0])return e.apply(n,o);let[i]=o,s="nextUrl"in i?i.nextUrl.pathname:i.url,l="nextUrl"in i?i.headers.get("user-agent"):i.headers["user-agent"];if(!t||!l?.includes("vercel-cron"))return e.apply(n,o);let u=t.find(e=>e.path===s);if(!u?.path||!u.schedule)return e.apply(n,o);let c=u.path,p=r.captureCheckIn({monitorSlug:c,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:u.schedule}}),_=r._INTERNAL_safeDateNow()/1e3,T=()=>{r.captureCheckIn({checkInId:p,monitorSlug:c,status:"error",duration:r._INTERNAL_safeDateNow()/1e3-_})};try{a=e.apply(n,o)}catch(e){throw T(),e}return"object"==typeof a&&null!==a&&"then"in a?Promise.resolve(a).then(()=>{r.captureCheckIn({checkInId:p,monitorSlug:c,status:"ok",duration:r._INTERNAL_safeDateNow()/1e3-_})},()=>{T()}):r.captureCheckIn({checkInId:p,monitorSlug:c,status:"ok",duration:r._INTERNAL_safeDateNow()/1e3-_}),a}})}},348339,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054),a=e.r(387838);n.wrapMiddlewareWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{let i="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(i&&"string"==typeof i){let e=n[0];if(e instanceof Request){let t=new URL(e.url);if(a.isPathnameUnderSentryTunnelRoute(t.pathname,i))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}}return r.withIsolationScope(a=>{let i,s,l=n[0],u=r.getCurrentScope();l instanceof Request?(a.setSDKProcessingMetadata({normalizedRequest:r.winterCGRequestToRequestData(l)}),i=`middleware ${l.method}`,s="url"):(i="middleware",s="component"),u.setTransactionName(i);let c=r.getActiveSpan();if(c){i="middleware",s="component";let e=r.getRootSpan(c);e&&r.setCapturedScopesOnSpan(e,u,a)}return r.startSpan({name:i,op:"http.server.middleware",attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:s,[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.wrap_middleware"}},()=>r.handleCallbackErrors(()=>e.apply(t,n),e=>{r.captureException(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{o.waitUntil(o.flushSafelyWithTimeout())}))})}})}},762741,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);function o(e,t){e&&"object"==typeof e&&r.addNonEnumerableProperty(e,"__sentry_event_id__",t)}n.wrapPageComponentWithSentry=function(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return r.withIsolationScope(()=>{let t=r.getCurrentScope(),n="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let e=r.extractTraceparentData(n);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(t){let e=r.captureException(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}});throw o(t,e),t}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>r.withIsolationScope(()=>{let a=r.getCurrentScope(),i=n?.[0]?._sentryTraceData;if(i){let e=r.extractTraceparentData(i);a.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,n)}catch(t){let e=r.captureException(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}});throw o(t,e),t}})}):e}},540554,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(281881),a=e.r(902054);n.wrapGenerationFunctionWithSentry=function(e,t){return new Proxy(e,{apply:(e,n,i)=>{let s,l=r.getIsolationScope();try{s=t.requestAsyncStorage?.getStore()?.headers}catch{}let u=s?r.winterCGHeadersToDict(s):void 0;return l.setSDKProcessingMetadata({normalizedRequest:{headers:u}}),r.handleCallbackErrors(()=>e.apply(n,i),e=>{let n=r.getActiveSpan(),{componentRoute:a,componentType:i,generationFunctionIdentifier:s}=t,u=!0;l.setTransactionName(`${i}.${s} (${a})`),n&&(o.isNotFoundNavigationError(e)?(u=!1,n.setStatus({code:r.SPAN_STATUS_ERROR,message:"not_found"})):o.isRedirectNavigationError(e)?(u=!1,n.setStatus({code:r.SPAN_STATUS_OK})):n.setStatus({code:r.SPAN_STATUS_ERROR,message:"internal_error"})),u&&r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:s}}})},()=>{a.waitUntil(a.flushSafelyWithTimeout())})}})}},35205,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054),a=e.r(441209),i=e.r(281881);async function s(e,t,n){return r.withIsolationScope(async s=>{let l,u,c=r.getClient()?.getDataCollectionOptions().httpBodies.includes("outgoingResponse"),p={};try{let e=await t.headers;l=e?.get("sentry-trace")??void 0,u=e?.get("baggage"),e?.forEach((e,t)=>{p[t]=e})}catch{a.DEBUG_BUILD&&r.debug.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return s.setTransactionName(`serverAction/${e}`),s.setSDKProcessingMetadata({normalizedRequest:{headers:p}}),(r.getActiveSpan()?(e,t)=>t():r.continueTrace)({sentryTrace:l,baggage:u},async()=>{try{return await r.startSpan({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.server_action"}},async e=>{let o=await r.handleCallbackErrors(n,t=>{i.isNotFoundNavigationError(t)?e.setStatus({code:r.SPAN_STATUS_ERROR,message:"not_found"}):i.isRedirectNavigationError(t)||(e.setStatus({code:r.SPAN_STATUS_ERROR,message:"internal_error"}),r.captureException(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:c)&&r.getIsolationScope().setExtra("server_action_result",o),t.formData&&t.formData.forEach((e,t)=>{r.getIsolationScope().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),o})}finally{o.waitUntil(o.flushSafelyWithTimeout())}})})}n.withServerActionInstrumentation=function(...e){if("function"==typeof e[1]){let[t,n]=e;return s(t,{},n)}{let[t,n,r]=e;return s(t,n,r)}}},754011,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054);n.captureRequestError=function(e,t,n){r.withScope(a=>{a.setSDKProcessingMetadata({normalizedRequest:{headers:r.headersToDict(t.headers),method:t.method}}),a.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),a.setTransactionName(`${t.method} ${n.routePath}`),r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),o.waitUntil(o.flushSafelyWithTimeout())})}},16300,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054),a=e.r(46423);n.wrapApiHandlerWithSentry=function(e,t){return new Proxy(e,{apply:(e,n,i)=>(a.dropNextjsRootContext(),a.escapeNextjsTracing(()=>{let[a,s]=i;return a?s?a.__withSentry_applied__?e.apply(n,i):(a.__withSentry_applied__=!0,r.withIsolationScope(l=>(r.getActiveSpan()?(e,t)=>t():r.continueTrace)({sentryTrace:a.headers&&r.isString(a.headers["sentry-trace"])?a.headers["sentry-trace"]:void 0,baggage:a.headers?.baggage},()=>{let u=`${(a.method||"GET").toUpperCase()} `,c=r.httpRequestToRequestData(a);return l.setSDKProcessingMetadata({normalizedRequest:c}),l.setTransactionName(`${u}${t}`),r.startSpanManual({name:`${u}${t}`,op:"http.server",forceTransaction:!0,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.nextjs"}},async t=>{s.end=new Proxy(s.end,{apply:(e,n,a)=>(r.setHttpStatus(t,s.statusCode),t.end(),o.waitUntil(o.flushSafelyWithTimeout()),e.apply(n,a))});try{return await e.apply(n,i)}catch(a){let n=r.objectify(a);throw r.captureException(n,{mechanism:{type:"auto.http.nextjs.api_handler",handled:!1,data:{wrapped_handler:e.name,function:"withSentry"}}}),r.setHttpStatus(t,500),t.end(),await o.flushSafelyWithTimeout(),n}})}))):(r.debug.log(`Wrapped API handler on route "${t}" was not passed a response object. Will not instrument.`),e.apply(n,i)):(r.debug.log(`Wrapped API handler on route "${t}" was not passed a request object. Will not instrument.`),e.apply(n,i))}))})}},301954,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(513128),a=e.r(91242),i=e.r(441209);e.r(948326);let s=e.r(404606),l=e.r(662566),u=e.r(247089),c=e.r(902054),p=e.r(115227),_=e.r(172206),T=e.r(765331),S=e.r(362405),E=e.r(957894),d=e.r(225311),g=e.r(527706),A=e.r(656543),m=e.r(278534),R=e.r(116147),h=e.r(647520),f=e.r(867747),N=e.r(452407),I=e.r(324195),y=e.r(884587),b=e.r(979036),O=e.r(546923),C=e.r(799916),M=e.r(348339),L=e.r(762741),P=e.r(540554),U=e.r(35205),v=e.r(754011),D=e.r(16300);o.GLOBAL_OBJ,n.pinoIntegration=a.pinoIntegration,n.captureUnderscoreErrorException=A.captureUnderscoreErrorException,n.startInactiveSpan=m.startInactiveSpan,n.startSpan=m.startSpan,n.startSpanManual=m.startSpanManual,n.wrapGetStaticPropsWithSentry=R.wrapGetStaticPropsWithSentry,n.wrapGetInitialPropsWithSentry=h.wrapGetInitialPropsWithSentry,n.wrapAppGetInitialPropsWithSentry=f.wrapAppGetInitialPropsWithSentry,n.wrapDocumentGetInitialPropsWithSentry=N.wrapDocumentGetInitialPropsWithSentry,n.wrapErrorGetInitialPropsWithSentry=I.wrapErrorGetInitialPropsWithSentry,n.wrapGetServerSidePropsWithSentry=y.wrapGetServerSidePropsWithSentry,n.wrapServerComponentWithSentry=b.wrapServerComponentWithSentry,n.wrapRouteHandlerWithSentry=O.wrapRouteHandlerWithSentry,n.wrapApiHandlerWithSentryVercelCrons=C.wrapApiHandlerWithSentryVercelCrons,n.wrapMiddlewareWithSentry=M.wrapMiddlewareWithSentry,n.wrapPageComponentWithSentry=L.wrapPageComponentWithSentry,n.wrapGenerationFunctionWithSentry=P.wrapGenerationFunctionWithSentry,n.withServerActionInstrumentation=U.withServerActionInstrumentation,n.captureRequestError=v.captureRequestError,n.wrapApiHandlerWithSentry=D.wrapApiHandlerWithSentry,n.ErrorBoundary=e=>e.children?"function"==typeof e.children?e.children():e.children:null,n.createReduxEnhancer=function(){return e=>e},n.init=function(e){if(E.prepareSafeIdGeneratorContext(),u.isBuild())return;!i.DEBUG_BUILD&&e.debug&&console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.");let t=a.getDefaultIntegrations(e).filter(e=>"Http"!==e.name).concat(a.httpIntegration({disableIncomingRequestSpans:!0}));e.skipOpenTelemetrySetup||(process.env.NEXT_OTEL_FETCH_DISABLED="1"),t.push(_.distDirRewriteFramesIntegration({distDirName:".next"}));let n=function(){if(c.isCloudflareWaitUntilAvailable())return{runtime:{name:"cloudflare"}}}(),A={environment:e.environment||process.env.SENTRY_ENVIRONMENT||s.getVercelEnv(!1)||"production",release:"libi@0.1.7",defaultIntegrations:t,...e,...n},m=[/^GET (\/.*)?\/_next\/static\//,/\/__nextjs_original-stack-frame/,/^\/404$/,/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH) \/(404|_not-found)$/,/^NextServer\.getRequestHandler$/,{attributes:{[l.TRANSACTION_ATTR_SHOULD_DROP_TRANSACTION]:!0}}];if(A.ignoreSpans=[...A.ignoreSpans||[],...m],i.DEBUG_BUILD&&A.debug&&o.debug.enable(),i.DEBUG_BUILD&&o.debug.log("Initializing SDK..."),o.getClient()){i.DEBUG_BUILD&&o.debug.log("SDK already initialized");return}o.applySdkMetadata(A,"nextjs",["nextjs",n?"cloudflare":"node"]);let R=a.init(A);R?.on("beforeSampling",({spanAttributes:e},t)=>{("string"==typeof e[r.SEMATTRS_HTTP_TARGET]&&e[r.SEMATTRS_HTTP_TARGET].includes("sentry_key")&&e[r.SEMATTRS_HTTP_TARGET].includes("sentry_client")||"string"==typeof e[r.ATTR_URL_QUERY]&&e[r.ATTR_URL_QUERY].includes("sentry_key")&&e[r.ATTR_URL_QUERY].includes("sentry_client"))&&(t.decision=!1)}),R?.on("spanStart",S.handleOnSpanStart),R?.on("spanEnd",d.maybeCompleteCronCheckIn),R?.on("spanEnd",g.maybeCleanupQueueSpan),o.getGlobalScope().addEventProcessor(Object.assign((e,t)=>{if(void 0!==e.type)return e;let n=t.originalException;if("object"==typeof n&&null!==n&&"$$typeof"in n&&n.$$typeof===Symbol.for("react.postpone"))return null;let r=e.exception?.values?.[0]?.value;return r?.includes("Suspense Exception: This is not a real error!")||r?.includes("Suspense Exception: This is not a real error, and should not leak")?null:e},{id:"DropReactControlFlowErrors"})),R?.on("preprocessEvent",e=>{"transaction"===e.type&&e.contexts?.trace?.data&&T.enhanceHandleRequestRootSpan({attributes:e.contexts.trace.data,getName:()=>e.transaction,setName:t=>{e.transaction=t},setOp:t=>{e.contexts.trace.op=t}}),p.setUrlProcessingMetadata(e)}),R?.on("processSegmentSpan",e=>{let t=e.attributes??(e.attributes={});T.enhanceHandleRequestRootSpan({attributes:t,getName:()=>e.name,setName:t=>{e.name=t},setOp:e=>{t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]=e}})});try{o.getGlobalScope().setTag("turbopack",!0),o.getGlobalScope().setAttribute("turbopack",!0)}catch{}return i.DEBUG_BUILD&&o.debug.log("SDK successfully initialized"),R},n.showReportDialog=function(){},n.withErrorBoundary=function(e){return e},Object.prototype.hasOwnProperty.call(a,"__proto__")&&!Object.prototype.hasOwnProperty.call(n,"__proto__")&&Object.defineProperty(n,"__proto__",{enumerable:!0,value:a.__proto__}),Object.keys(a).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(n,e)||(n[e]=a[e])})},33115,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(522734),a=e.r(362562),i=e.r(814747);n.detectActiveBundler=function(){return"turbopack"},n.getNextjsVersion=function(){let e=function(){try{return a.createRequire(`${process.cwd()}/`).resolve("next/package.json")}catch{return}}();if(e)try{return JSON.parse(o.readFileSync(e,{encoding:"utf-8"})).version}catch{}},n.getPackageModules=function(e){try{let t=i.join(e,"package.json"),n=o.readFileSync(t,"utf8"),r=JSON.parse(n);return{...r.dependencies,...r.devDependencies}}catch{return{}}},n.requiresInstrumentationHook=function(e){if(!e)return!0;let{major:t,minor:n,patch:o,prerelease:a}=r.parseSemver(e);return void 0===t||void 0===n||void 0===o||!(t>=16)&&(t<15||!!a&&!(n>0)&&!(o>0)&&(a.startsWith("rc.")?0===parseInt(a.split(".")[1]||"0",10):!a.startsWith("canary.")||124>parseInt(a.split(".")[1]||"0",10)))},n.supportsNativeDebugIds=function(e){if(!e)return!1;let{major:t,minor:n,prerelease:o}=r.parseSemver(e);if(void 0===t||void 0===n)return!1;if(t>=16)return!0;if(15===t&&o?.startsWith("canary.")&&(n>6||6===n&&parseInt(o.split(".")[1]||"0",10)>=36))return!0;return!1},n.supportsProductionCompileHook=function(e){if(!e)return!1;let{major:t,minor:n,patch:o}=r.parseSemver(e);return void 0!==t&&void 0!==n&&void 0!==o&&(!!(t>15)||15===t&&(!!(n>4)||4===n&&!!(o>=1))||!1)},n.supportsTurbopackRuleCondition=function(e){if(!e)return!1;let{major:t}=r.parseSemver(e);return void 0!==t&&t>=16}},174425,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(233405),o=e.r(522734),a=e.r(814747);n.getGitRevision=function(){let e;try{e=r.execSync("git rev-parse HEAD",{stdio:["ignore","pipe","ignore"]}).toString().trim()}catch{}return e},n.getInstrumentationClientFileContents=function(){for(let e of[["src","instrumentation-client.ts"],["src","instrumentation-client.js"],["instrumentation-client.ts"],["instrumentation-client.js"]])try{return o.readFileSync(a.join(process.cwd(),...e),"utf-8")}catch{}},n.setUpBuildTimeVariables=function(e,t,n){let r=e.assetPrefix||e.basePath||"",o=e.basePath??"",a=void 0!==t.tunnelRoute&&"export"!==e.output&&"string"==typeof t.tunnelRoute?`${o}${t.tunnelRoute}`:void 0,i={_sentryRewriteFramesDistDir:e.distDir?.replace(/\\/g,"\\\\")||".next",_sentryRewriteFramesAssetPrefixPath:r?new URL(r,"http://dogs.are.great").pathname.replace(/\/$/,""):""};e.assetPrefix&&(i._assetsPrefix=e.assetPrefix),t._experimental?.thirdPartyOriginStackFrames&&(i._experimentalThirdPartyOriginStackFrames="true"),a&&(i._sentryRewritesTunnelPath=a),o&&(i._sentryBasePath=o),e.assetPrefix&&(i._sentryAssetPrefix=e.assetPrefix),t._experimental?.thirdPartyOriginStackFrames&&(i._experimentalThirdPartyOriginStackFrames="true"),n&&(i._sentryRelease=n),"object"==typeof e.env?e.env={...i,...e.env}:void 0===e.env&&(e.env=i)}},140637,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(33115);n.migrateDeprecatedWebpackOptions=function(e){e.webpack=e.webpack||{};let t=e.webpack,n=(e,t,n)=>(void 0!==t&&console.warn(n),e??t),o=(e,t)=>{let n=`[@sentry/nextjs] DEPRECATION WARNING: ${e} is deprecated and will be removed in a future version. Use ${t} instead.`;return"turbopack"===r.detectActiveBundler()&&t.startsWith("webpack.")?`${n} (Not supported with Turbopack.)`:n};t.autoInstrumentServerFunctions=n(t.autoInstrumentServerFunctions,e.autoInstrumentServerFunctions,o("autoInstrumentServerFunctions","webpack.autoInstrumentServerFunctions")),t.autoInstrumentMiddleware=n(t.autoInstrumentMiddleware,e.autoInstrumentMiddleware,o("autoInstrumentMiddleware","webpack.autoInstrumentMiddleware")),t.autoInstrumentAppDirectory=n(t.autoInstrumentAppDirectory,e.autoInstrumentAppDirectory,o("autoInstrumentAppDirectory","webpack.autoInstrumentAppDirectory")),t.excludeServerRoutes=n(t.excludeServerRoutes,e.excludeServerRoutes,o("excludeServerRoutes","webpack.excludeServerRoutes")),t.unstable_sentryWebpackPluginOptions=n(t.unstable_sentryWebpackPluginOptions,e.unstable_sentryWebpackPluginOptions,o("unstable_sentryWebpackPluginOptions","webpack.unstable_sentryWebpackPluginOptions")),t.disableSentryConfig=n(t.disableSentryConfig,e.disableSentryWebpackConfig,o("disableSentryWebpackConfig","webpack.disableSentryConfig")),void 0!==e.disableLogger&&(t.treeshake=t.treeshake||{},t.treeshake.removeDebugLogging=n(t.treeshake.removeDebugLogging,e.disableLogger,o("disableLogger","webpack.treeshake.removeDebugLogging"))),t.automaticVercelMonitors=n(t.automaticVercelMonitors,e.automaticVercelMonitors,o("automaticVercelMonitors","webpack.automaticVercelMonitors")),t.reactComponentAnnotation=n(t.reactComponentAnnotation,e.reactComponentAnnotation,o("reactComponentAnnotation","webpack.reactComponentAnnotation"))}},928692,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(814747),o={"webpack-nodejs":"[@sentry/nextjs - Node.js]","webpack-edge":"[@sentry/nextjs - Edge]","webpack-client":"[@sentry/nextjs - Client]","after-production-compile-webpack":"[@sentry/nextjs - After Production Compile (Webpack)]","after-production-compile-turbopack":"[@sentry/nextjs - After Production Compile (Turbopack)]"},a="server/**",i="server",s="static/chunks/**",l="static/chunks",u="static/chunks/pages/**",c="static/chunks/pages",p="static/chunks/app/**",_="static/chunks/app",T=["*.js.map","*.mjs.map","*.cjs.map","*.css.map"];function S(e){return e.replace(/\\/g,"/")}function E(e){return e.replace(/^webpack:\/\/(?:_N_E\/)?/,"")}n.getBuildPluginOptions=function({sentryBuildOptions:e,releaseName:t,distDirAbsPath:n,buildTool:d,useRunAfterProductionCompileHook:g}){var A,m;let R=S(n),h=o[d],f=e.widenClientFileUpload??!1,N=e.sourcemaps?.deleteSourcemapsAfterUpload??!1,I=function(e,t,n=!1){let o=[];return t.startsWith("after-production-compile")?(o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?i:a}({useDirectoryPath:!0}))),"after-production-compile-turbopack"===t||n?o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?l:s}({useDirectoryPath:!0}))):o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?c:u}({useDirectoryPath:!0})),r.posix.join(e,function({useDirectoryPath:e=!1}){return e?_:p}({useDirectoryPath:!0})))):"webpack-nodejs"===t||"webpack-edge"===t?o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?i:a}({useDirectoryPath:!1})),r.posix.join(e,"serverless/**")):"webpack-client"===t&&(n?o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?l:s}({useDirectoryPath:!1}))):o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?c:u}({useDirectoryPath:!1})),r.posix.join(e,function({useDirectoryPath:e=!1}){return e?_:p}({useDirectoryPath:!1})))),o}(R,d,f),y=(A=function(e,t=!1){let n=[];return t||n.push(r.posix.join(e,"static/chunks/main-*")),n.push(r.posix.join(e,"static/chunks/framework-*"),r.posix.join(e,"static/chunks/framework.*"),r.posix.join(e,"static/chunks/polyfills-*"),r.posix.join(e,"static/chunks/webpack-*"),"**/page_client-reference-manifest.js","**/server-reference-manifest.js","**/next-font-manifest.js","**/middleware-build-manifest.js","**/interception-route-rewrite-manifest.js","**/route_client-reference-manifest.js","**/middleware-react-loadable-manifest.js"),n}(R,f),(m=e.sourcemaps?.ignore)?[...A,...Array.isArray(m)?m:[m]]:A),b=e.sourcemaps?.filesToDeleteAfterUpload;e.debug&&void 0!==b&&console.debug("[@sentry/nextjs] Skipping auto-deletion of source maps as user has provided filesToDeleteAfterUpload:",b);let O=void 0!==b?Array.isArray(b)?b:[b]:function(e,t,n,o=!1){if(n&&"webpack-nodejs"!==t&&"webpack-edge"!==t&&("webpack-client"!==t||!o))return T.map(t=>r.posix.join(e,"static","**",t))}(R,d,N,g),C=function(e,t=!1){return t&&e.startsWith("webpack")}(d,g);return{applicationKey:e.applicationKey,authToken:e.authToken,headers:e.headers,org:e.org,project:e.project,telemetry:e.telemetry,debug:e.debug,errorHandler:e.errorHandler,reactComponentAnnotation:d.startsWith("after-production-compile")?void 0:{...e.webpack?.reactComponentAnnotation,...e.webpack?.unstable_sentryWebpackPluginOptions?.reactComponentAnnotation},silent:e.silent,url:e.sentryUrl,sourcemaps:{disable:!!C||(e.sourcemaps?.disable??!1),rewriteSources:e.sourcemaps?.rewriteSources??E,assets:e.sourcemaps?.assets??I,ignore:y,filesToDeleteAfterUpload:O,...e.webpack?.unstable_sentryWebpackPluginOptions?.sourcemaps},release:void 0!==t?{inject:!1,name:t,create:e.release?.create,finalize:e.release?.finalize,dist:e.release?.dist,vcsRemote:e.release?.vcsRemote,setCommits:e.release?.setCommits,deploy:e.release?.deploy,...e.webpack?.unstable_sentryWebpackPluginOptions?.release}:{inject:!1,create:!1,finalize:!1},bundleSizeOptimizations:{...e.bundleSizeOptimizations},_metaOptions:{loggerPrefixOverride:h,telemetry:{metaFramework:"nextjs"}},...e.webpack?.unstable_sentryWebpackPluginOptions}},n.normalizePathForGlob=S},337420,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(522734),a=e.r(814747),i=e.r(928692),s=/\n?\/\/[#@] sourceMappingURL=[^\n]+$/,l=/\n?\/\*[#@] sourceMappingURL=[^\n]+\*\/$/;async function u(e,t){let n;try{n=await o.promises.readdir(e,{recursive:!0}).then(e=>e.map(e=>String(e)))}catch{return}let r=n.filter(e=>e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")||e.endsWith(".css")),i=(await Promise.all(r.map(async t=>{let n=a.join(e,t);try{let e=await o.promises.readFile(n,"utf-8"),r=t.endsWith(".css"),a=e.replace(r?l:s,"");if(a!==e)return await o.promises.writeFile(n,a,"utf-8"),t}catch{}}))).filter(Boolean).length;t&&i>0&&console.debug(`[@sentry/nextjs] Stripped sourceMappingURL comments from ${String(i)} file(s) to prevent requests for deleted source maps.`)}n.handleRunAfterProductionCompile=async function({releaseName:e,distDir:n,buildTool:o,usesNativeDebugIds:s,sriEnabled:l},c){c.debug&&console.debug("[@sentry/nextjs] Running runAfterProductionCompile logic.");let{createSentryBuildPluginManager:p}=r.loadModule("@sentry/bundler-plugin-core",t)??{};if(!p)return void console.warn("[@sentry/nextjs] Could not load build manager package. Will not run runAfterProductionCompile logic.");let _=p(i.getBuildPluginOptions({sentryBuildOptions:c,releaseName:e,distDirAbsPath:n,buildTool:`after-production-compile-${o}`}),{buildTool:o,loggerPrefix:"[@sentry/nextjs - After Production Compile]"});await _.telemetry.emitBundlerPluginExecutionSignal(),await _.createRelease(),s||c.sourcemaps?.disable===!0||await _.injectDebugIds([n]),await _.uploadSourcemaps([n],{prepareArtifacts:!1}),await _.deleteArtifacts();let T=c.sourcemaps?.deleteSourcemapsAfterUpload??!1;T&&"turbopack"===o&&!l&&await u(a.join(n,"static"),c.debug),T&&"turbopack"===o&&l&&c.debug&&console.debug("[@sentry/nextjs] Skipping sourceMappingURL comment stripping because Subresource Integrity (SRI) is enabled.")},n.stripSourceMappingURLComments=u},660512,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(814747),o=e.r(33115);n.generateValueInjectionRules=function({routeManifest:e,nextJsVersion:t,tunnelPath:n,vercelCronsConfig:a}){let i=[],s={},l={},u={};t&&(s._sentryNextJsVersion=t),e&&(l._sentryRouteManifest=JSON.stringify(e)),n&&(s._sentryRewritesTunnelPath=n),a&&(u._sentryVercelCronsConfig=JSON.stringify(a)),u.__SENTRY_SERVER_MODULES__=o.getPackageModules(process.cwd()),Object.keys(s).length>0&&(l={...l,...s},u={...u,...s});let c=!!t&&o.supportsTurbopackRuleCondition(t);return Object.keys(l).length>0&&i.push({matcher:"**/instrumentation-client.*",rule:{...c?{condition:{not:"foreign"}}:{},loaders:[{loader:r.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config/turbopack","..","loaders","valueInjectionLoader.js"),options:{values:l}}]}}),Object.keys(u).length>0&&i.push({matcher:"**/instrumentation.*",rule:{...c?{condition:{not:"foreign"}}:{},loaders:[{loader:r.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config/turbopack","..","loaders","valueInjectionLoader.js"),options:{values:u}}]}}),i}},746809,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(814747),a=e.r(33115),i=e.r(660512);function s(e,{matcher:t,rule:n}){return e?e[t]?(r.debug.log(`[@sentry/nextjs] - Turbopack rule already exists for ${t}. Please remove it from your Next.js config in order for Sentry to work properly.`),e):{...e,[t]:n}:{[t]:n}}n.constructTurbopackConfig=function({userNextConfig:e,userSentryOptions:t,routeManifest:n,nextJsVersion:r,vercelCronsConfig:l}){let u=(a.supportsNativeDebugIds(r??"")&&e?.turbopack?.debugIds)??t?.sourcemaps?.disable!==!0,c={...e.turbopack,...u?{debugIds:!0}:{}},p=t?.tunnelRoute!==void 0&&"export"!==e.output&&"string"==typeof t.tunnelRoute?`${e.basePath??""}${t.tunnelRoute}`:void 0;for(let{matcher:e,rule:t}of i.generateValueInjectionRules({routeManifest:n,nextJsVersion:r,tunnelPath:p,vercelCronsConfig:l}))c.rules=s(c.rules,{matcher:e,rule:t});let _=t?.applicationKey??t?._experimental?.turbopackApplicationKey;_&&r&&a.supportsTurbopackRuleCondition(r)&&(c.rules=s(c.rules,{matcher:"*.{ts,tsx,js,jsx,mjs,cjs}",rule:{condition:{not:{path:/next\/dist\/build\/polyfills/}},loaders:[{loader:o.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config/turbopack","..","loaders","moduleMetadataInjectionLoader.js"),options:{applicationKey:_}}]}}));let T=t?._experimental?.turbopackReactComponentAnnotation;return T?.enabled&&r&&a.supportsTurbopackRuleCondition(r)&&(c.rules=s(c.rules,{matcher:"*.{tsx,jsx}",rule:{condition:{not:"foreign"},loaders:[{loader:o.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config/turbopack","..","loaders","componentAnnotationLoader.js"),options:{ignoredComponents:T.ignoredComponents??[]}}]}})),c},n.safelyAddTurbopackRule=s},577965,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(522734),a=e.r(362562),i=e.r(814747),s=e.r(928692),l=e.r(33115),u=!1;async function c(e,t){let{dir:n,dev:r}=t,a="function"==typeof e?await e():{...e},s=p(n),l=function(e){for(let t of[["src","instrumentation-client.js"],["src","instrumentation-client.ts"],["instrumentation-client.js"],["instrumentation-client.ts"]])if(o.existsSync(i.resolve(e,...t)))return i.join(...t)}(n),u=[];for(let e in s&&u.push(`./${s}`),l&&u.push(`./${l}`),a)("pages/_app"===e||"main-app"===e)&&function(e,t,n,r){let o=e[t],a=o;if("string"==typeof o||Array.isArray(o)){if((a=Array.isArray(o)?o:[o]).some(e=>n.includes(e)))return;r?a.push(...n):a.unshift(...n)}else if("object"==typeof o&&"import"in o){let e=o.import,t=Array.isArray(e)?e:[e];if(t.some(e=>n.includes(e)))return;r?t.push(...n):t.unshift(...n),a={...o,import:t}}else console.error("Sentry Logger [Error]:",`Could not inject SDK initialization code into entry point ${t}, as its current value is not in a recognized format.
22
+ Mongoose Error Code: ${t.code}`:""}`})}function l(e,t,n,a){n&&o.safeExecuteInTheMiddle(()=>n(e,{moduleVersion:a,response:t}),e=>{e&&r.diag.error("mongoose instrumentation: responseHook error",e)},!0)}n.getAttributesFromCollection=function(e,t,n){let r={};return t&o.SemconvStability.OLD&&(r[a.ATTR_DB_MONGODB_COLLECTION]=e.name,r[a.ATTR_DB_NAME]=e.conn.name,r[a.ATTR_DB_USER]=e.conn.user),t&o.SemconvStability.STABLE&&(r[i.ATTR_DB_COLLECTION_NAME]=e.name,r[i.ATTR_DB_NAMESPACE]=e.conn.name),n&o.SemconvStability.OLD&&(r[a.ATTR_NET_PEER_NAME]=e.conn.host,r[a.ATTR_NET_PEER_PORT]=e.conn.port),n&o.SemconvStability.STABLE&&(r[i.ATTR_SERVER_ADDRESS]=e.conn.host,r[i.ATTR_SERVER_PORT]=e.conn.port),r},n.handleCallbackResponse=function(e,t,n,r,o,a,i){let u=0;return 2===o.length?u=1:3===o.length&&(u=2),o[u]=(t,n)=>(t?s(r,t):l(r,n,a,i),r.end(),e(t,n)),t.apply(n,o)},n.handlePromiseResponse=function(e,t,n,r){return e instanceof Promise?e.then(e=>(l(t,e,n,r),e)).catch(e=>{throw s(t,e),e}).finally(()=>t.end()):(l(t,e,n,r),t.end(),e)}},742203,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(979184),a=e.r(897706),i=e.r(777884),s=e.r(513128),l=e.r(11057),u=e.r(216835),c=["deleteOne","deleteMany","find","findOne","estimatedDocumentCount","countDocuments","distinct","where","$where","findOneAndUpdate","findOneAndDelete","findOneAndReplace"],p=["remove","count","findOneAndRemove",...c],_=["count","findOneAndRemove",...c],T=[...c];function S(e){return e?e.startsWith("6.")||e.startsWith("5.")?p:e.startsWith("7.")?_:T:c}function E(e){return e&&(e.startsWith("5.")||e.startsWith("6."))||!1}function d(e){return!!e&&!!e.startsWith("8.")&&parseInt(e.split(".")[1],10)>=21}let g=Symbol("stored-parent-span"),A=Symbol("already-instrumented");class m extends i.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-mongoose",s.SDK_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=i.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=i.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return new i.InstrumentationNodeModuleDefinition("mongoose",[">=5.9.7 <10"],this.patch.bind(this),this.unpatch.bind(this))}patch(e,t){let n="Module"===e[Symbol.toStringTag]?e.default:e;return this._wrap(n.Model.prototype,"save",this.patchOnModelMethods("save",t)),n.Model.prototype.$save=n.Model.prototype.save,E(t)&&this._wrap(n.Model.prototype,"remove",this.patchOnModelMethods("remove",t)),d(t)&&(this._wrap(n.Model.prototype,"updateOne",this._patchDocumentUpdateMethods("updateOne",t)),this._wrap(n.Model.prototype,"deleteOne",this._patchDocumentUpdateMethods("deleteOne",t))),this._wrap(n.Query.prototype,"exec",this.patchQueryExec(t)),this._wrap(n.Aggregate.prototype,"exec",this.patchAggregateExec(t)),S(t).forEach(e=>{this._wrap(n.Query.prototype,e,this.patchAndCaptureSpanContext(e))}),this._wrap(n.Model,"aggregate",this.patchModelAggregate()),this._wrap(n.Model,"insertMany",this.patchModelStatic("insertMany",t)),this._wrap(n.Model,"bulkWrite",this.patchModelStatic("bulkWrite",t)),n}unpatch(e,t){let n="Module"===e[Symbol.toStringTag]?e.default:e,r=S(t);this._unwrap(n.Model.prototype,"save"),n.Model.prototype.$save=n.Model.prototype.save,E(t)&&this._unwrap(n.Model.prototype,"remove"),d(t)&&(this._unwrap(n.Model.prototype,"updateOne"),this._unwrap(n.Model.prototype,"deleteOne")),this._unwrap(n.Query.prototype,"exec"),this._unwrap(n.Aggregate.prototype,"exec"),r.forEach(e=>{this._unwrap(n.Query.prototype,e)}),this._unwrap(n.Model,"aggregate"),this._unwrap(n.Model,"insertMany"),this._unwrap(n.Model,"bulkWrite")}patchAggregateExec(e){let t=this;return n=>function(o){if(t.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return n.apply(this,arguments);let a=this[g],s={},{dbStatementSerializer:c}=t.getConfig();if(c){let e=c("aggregate",{options:this.options,aggregatePipeline:this._pipeline});t._dbSemconvStability&i.SemconvStability.OLD&&(s[l.ATTR_DB_STATEMENT]=e),t._dbSemconvStability&i.SemconvStability.STABLE&&(s[u.ATTR_DB_QUERY_TEXT]=e)}let p=t._startSpan(this._model.collection,this._model?.modelName,"aggregate",s,a);return t._handleResponse(p,n,this,arguments,o,e)}}patchQueryExec(e){let t=this;return n=>function(o){if(this[A]||t.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return n.apply(this,arguments);let a=this[g],s={},{dbStatementSerializer:c}=t.getConfig();if(c){let e=c(this.op,{condition:this.getFilter?.()??this._conditions,updates:this._update,options:this.getOptions?.()??this.options,fields:this._fields});t._dbSemconvStability&i.SemconvStability.OLD&&(s[l.ATTR_DB_STATEMENT]=e),t._dbSemconvStability&i.SemconvStability.STABLE&&(s[u.ATTR_DB_QUERY_TEXT]=e)}let p=t._startSpan(this.mongooseCollection,this.model.modelName,this.op,s,a);return t._handleResponse(p,n,this,arguments,o,e)}}patchOnModelMethods(e,t){let n=this;return o=>function(a,s){if(n.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return o.apply(this,arguments);let c={document:this};!a||a instanceof Function||(c.options=a);let p={},{dbStatementSerializer:_}=n.getConfig();if(_){let t=_(e,c);n._dbSemconvStability&i.SemconvStability.OLD&&(p[l.ATTR_DB_STATEMENT]=t),n._dbSemconvStability&i.SemconvStability.STABLE&&(p[u.ATTR_DB_QUERY_TEXT]=t)}let T=n._startSpan(this.constructor.collection,this.constructor.modelName,e,p);return a instanceof Function&&(s=a,a=void 0),n._handleResponse(T,o,this,arguments,s,t)}}_patchDocumentUpdateMethods(e,t){let n=this;return o=>function(a,s,c){if(n.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return o.apply(this,arguments);let p=c,_=a,T=s;"function"==typeof a?(p=a,_=void 0,T=void 0):"function"==typeof s&&(p=s,T=void 0);let S={},E=n.getConfig().dbStatementSerializer;if(E){let t=E(e,{condition:{_id:this._id},updates:_,options:T});n._dbSemconvStability&i.SemconvStability.OLD&&(S[l.ATTR_DB_STATEMENT]=t),n._dbSemconvStability&i.SemconvStability.STABLE&&(S[u.ATTR_DB_QUERY_TEXT]=t)}let d=n._startSpan(this.constructor.collection,this.constructor.modelName,e,S),g=n._handleResponse(d,o,this,arguments,p,t);return g&&"object"==typeof g&&(g[A]=!0),g}}patchModelStatic(e,t){let n=this;return o=>function(a,s,c){if(n.getConfig().requireParentSpan&&void 0===r.trace.getSpan(r.context.active()))return o.apply(this,arguments);"function"==typeof s&&(c=s,s=void 0);let p={};switch(e){case"insertMany":p.documents=a;break;case"bulkWrite":p.operations=a;break;default:p.document=a}void 0!==s&&(p.options=s);let _={},{dbStatementSerializer:T}=n.getConfig();if(T){let t=T(e,p);n._dbSemconvStability&i.SemconvStability.OLD&&(_[l.ATTR_DB_STATEMENT]=t),n._dbSemconvStability&i.SemconvStability.STABLE&&(_[u.ATTR_DB_QUERY_TEXT]=t)}let S=n._startSpan(this.collection,this.modelName,e,_);return n._handleResponse(S,o,this,arguments,c,t)}}patchModelAggregate(){let e=this;return t=>function(){let n=r.trace.getSpan(r.context.active()),o=e._callOriginalFunction(()=>t.apply(this,arguments));return o&&(o[g]=n),o}}patchAndCaptureSpanContext(e){let t=this;return e=>function(){return this[g]=r.trace.getSpan(r.context.active()),t._callOriginalFunction(()=>e.apply(this,arguments))}}_startSpan(e,t,n,o,s){let c={...o,...a.getAttributesFromCollection(e,this._dbSemconvStability,this._netSemconvStability)};this._dbSemconvStability&i.SemconvStability.OLD&&(c[l.ATTR_DB_OPERATION]=n,c[l.ATTR_DB_SYSTEM]="mongoose"),this._dbSemconvStability&i.SemconvStability.STABLE&&(c[u.ATTR_DB_OPERATION_NAME]=n,c[u.ATTR_DB_SYSTEM_NAME]=l.DB_SYSTEM_NAME_VALUE_MONGODB);let p=this._dbSemconvStability&i.SemconvStability.STABLE?`${n} ${e.name}`:`mongoose.${t}.${n}`;return this.tracer.startSpan(p,{kind:r.SpanKind.CLIENT,attributes:c},s?r.trace.setSpan(r.context.active(),s):void 0)}_handleResponse(e,t,n,r,o,i){let s=this;if(o instanceof Function)return s._callOriginalFunction(()=>a.handleCallbackResponse(o,t,n,e,r,s.getConfig().responseHook,i));{let o=s._callOriginalFunction(()=>t.apply(n,r));return a.handlePromiseResponse(o,e,s.getConfig().responseHook,i)}}_callOriginalFunction(e){return this.getConfig().suppressInternalInstrumentation?r.context.with(o.suppressTracing(r.context.active()),e):e()}}n.MongooseInstrumentation=m,n._ALREADY_INSTRUMENTED=A,n._STORED_PARENT_SPAN=g},526717,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(742203),o=e.r(513128),a=e.r(9597),i="Mongoose",s=a.generateInstrumentOnce(i,()=>new r.MongooseInstrumentation({responseHook(e){a.addOriginToSpan(e,"auto.db.otel.mongoose")}})),l=o.defineIntegration(()=>({name:i,setupOnce(){s()}}));n.instrumentMongoose=s,n.mongooseIntegration=l},594209,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_CONNECTION_STRING="db.connection_string",n.ATTR_DB_NAME="db.name",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_VALUE_MYSQL="mysql",n.METRIC_DB_CLIENT_CONNECTIONS_USAGE="db.client.connections.usage"},874512,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).MYSQL_VALUES="db.mysql.values",r);n.AttributeNames=o},438004,(e,t,n)=>{function r(e){return e?`[${e.toString()}]`:""}Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.arrayStringifyHelper=r,n.getConfig=function(e){let{host:t,port:n,database:r,user:o}=e&&e.connectionConfig||e||{};return{host:t,port:n,database:r,user:o}},n.getDbQueryText=function(e){return"string"==typeof e?e:e.sql},n.getDbValues=function(e,t){return"string"==typeof e?r(t):r(t||e.values)},n.getJDBCString=function(e,t,n){let r=`jdbc:mysql://${e||"localhost"}`;return"number"==typeof t&&(r+=`:${t}`),"string"==typeof n&&(r+=`/${n}`),r},n.getPoolNameOld=function(e){let t=e.config.connectionConfig,n="";return n+=t?.host?`host: '${t.host}', `:"",n+=t?.port?`port: ${t.port}, `:"",n+=t?.database?`database: '${t.database}', `:"",n+=t?.user?`user: '${t.user}'`:"",t?.user||(n=n.substring(0,n.length-2)),n.trim()},n.getSpanName=function(e){let t="object"==typeof e?e.sql:e,n=t?.indexOf(" ");return"number"==typeof n&&-1!==n?t?.substring(0,n):t}},162648,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(216835),i=e.r(594209),s=e.r(874512),l=e.r(438004),u=e.r(513128);class c extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-mysql",u.SDK_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=o.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=o.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}_updateMetricInstruments(){this._connectionsUsageOld=this.meter.createUpDownCounter(i.METRIC_DB_CLIENT_CONNECTIONS_USAGE,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}_connCountAdd(e,t,n){this._connectionsUsageOld?.add(e,{state:n,name:t})}init(){return[new o.InstrumentationNodeModuleDefinition("mysql",[">=2.0.0 <3"],e=>(o.isWrapped(e.createConnection)&&this._unwrap(e,"createConnection"),this._wrap(e,"createConnection",this._patchCreateConnection()),o.isWrapped(e.createPool)&&this._unwrap(e,"createPool"),this._wrap(e,"createPool",this._patchCreatePool()),o.isWrapped(e.createPoolCluster)&&this._unwrap(e,"createPoolCluster"),this._wrap(e,"createPoolCluster",this._patchCreatePoolCluster()),e),e=>{void 0!==e&&(this._unwrap(e,"createConnection"),this._unwrap(e,"createPool"),this._unwrap(e,"createPoolCluster"))})]}_patchCreateConnection(){return e=>{let t=this;return function(n){let r=e(...arguments);return t._wrap(r,"query",t._patchQuery(r)),r}}}_patchCreatePool(){return e=>{let t=this;return function(n){let r=e(...arguments);return t._wrap(r,"query",t._patchQuery(r)),t._wrap(r,"getConnection",t._patchGetConnection(r)),t._wrap(r,"end",t._patchPoolEnd(r)),t._setPoolCallbacks(r,""),r}}}_patchPoolEnd(e){return t=>{let n=this;return function(r){let o=e._allConnections.length,a=e._freeConnections.length,i=l.getPoolNameOld(e);n._connCountAdd(-(o-a),i,"used"),n._connCountAdd(-a,i,"idle"),t.apply(e,arguments)}}}_patchCreatePoolCluster(){return e=>{let t=this;return function(n){let r=e(...arguments);return t._wrap(r,"getConnection",t._patchGetConnection(r)),t._wrap(r,"add",t._patchAdd(r)),r}}}_patchAdd(e){return t=>{let n=this;return function(r,o){if(!n._enabled)return n._unwrap(e,"add"),t.apply(e,arguments);t.apply(e,arguments);let a=e._nodes;if(a){let t=a["object"==typeof r?"CLUSTER::"+e._lastId:String(r)].pool;n._setPoolCallbacks(t,r)}}}}_patchGetConnection(e){return t=>{let n=this;return function(r,o,a){if(!n._enabled)return n._unwrap(e,"getConnection"),t.apply(e,arguments);if(1==arguments.length&&"function"==typeof r){let o=n._getConnectionCallbackPatchFn(r);return t.call(e,o)}if(2==arguments.length&&"function"==typeof o){let a=n._getConnectionCallbackPatchFn(o);return t.call(e,r,a)}if(3==arguments.length&&"function"==typeof a){let i=n._getConnectionCallbackPatchFn(a);return t.call(e,r,o,i)}return t.apply(e,arguments)}}}_getConnectionCallbackPatchFn(e){let t=this,n=r.context.active();return function(a,i){i&&!o.isWrapped(i.query)&&t._wrap(i,"query",t._patchQuery(i)),"function"==typeof e&&r.context.with(n,e,this,a,i)}}_patchQuery(e){return t=>{let n=this;return function(u,c,p){if(!n._enabled)return n._unwrap(e,"query"),t.apply(e,arguments);let _={},{host:T,port:S,database:E,user:d}=l.getConfig(e.config),g=parseInt(S,10),A=l.getDbQueryText(u);n._dbSemconvStability&o.SemconvStability.OLD&&(_[i.ATTR_DB_SYSTEM]=i.DB_SYSTEM_VALUE_MYSQL,_[i.ATTR_DB_CONNECTION_STRING]=l.getJDBCString(T,S,E),_[i.ATTR_DB_NAME]=E,_[i.ATTR_DB_USER]=d,_[i.ATTR_DB_STATEMENT]=A),n._dbSemconvStability&o.SemconvStability.STABLE&&(_[a.ATTR_DB_SYSTEM_NAME]=a.DB_SYSTEM_NAME_VALUE_MYSQL,_[a.ATTR_DB_NAMESPACE]=E,_[a.ATTR_DB_QUERY_TEXT]=A),n._netSemconvStability&o.SemconvStability.OLD&&(_[i.ATTR_NET_PEER_NAME]=T,isNaN(g)||(_[i.ATTR_NET_PEER_PORT]=g)),n._netSemconvStability&o.SemconvStability.STABLE&&(_[a.ATTR_SERVER_ADDRESS]=T,isNaN(g)||(_[a.ATTR_SERVER_PORT]=g));let m=n.tracer.startSpan(l.getSpanName(u),{kind:r.SpanKind.CLIENT,attributes:_});if(n.getConfig().enhancedDatabaseReporting){let e;Array.isArray(c)?e=c:arguments[2]&&(e=[c]),m.setAttribute(s.AttributeNames.MYSQL_VALUES,l.getDbValues(u,e))}let R=Array.from(arguments).findIndex(e=>"function"==typeof e),h=r.context.active();if(-1!==R)return n._wrap(arguments,R,n._patchCallbackQuery(m,h)),r.context.with(r.trace.setSpan(r.context.active(),m),()=>t.apply(e,arguments));{let n=r.context.with(r.trace.setSpan(r.context.active(),m),()=>t.apply(e,arguments));return r.context.bind(h,n),n.on("error",e=>m.setStatus({code:r.SpanStatusCode.ERROR,message:e.message})).on("end",()=>{m.end()})}}}}_patchCallbackQuery(e,t){return n=>function(o,a,i){return o&&e.setStatus({code:r.SpanStatusCode.ERROR,message:o.message}),e.end(),r.context.with(t,()=>n(...arguments))}}_setPoolCallbacks(e,t){let n=t||l.getPoolNameOld(e);e.on("connection",e=>{this._connCountAdd(1,n,"idle")}),e.on("acquire",e=>{this._connCountAdd(-1,n,"idle"),this._connCountAdd(1,n,"used")}),e.on("release",e=>{this._connCountAdd(1,n,"idle"),this._connCountAdd(-1,n,"used")})}}n.MySQLInstrumentation=c},912988,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(162648),o=e.r(513128),a=e.r(9597),i="Mysql",s=a.generateInstrumentOnce(i,()=>new r.MySQLInstrumentation({})),l=o.defineIntegration(()=>({name:i,setupOnce(){s()}}));n.instrumentMysql=s,n.mysqlIntegration=l},753404,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_CONNECTION_STRING="db.connection_string",n.ATTR_DB_NAME="db.name",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_VALUE_MYSQL="mysql"},513857,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(979184);n.addSqlCommenterComment=function(e,t){let n;if("string"!=typeof t||0===t.length||(n=t.indexOf("--"))>=0||!(0>t.indexOf("/*"))&&n<t.indexOf("*/"))return t;let a=new o.W3CTraceContextPropagator,i={};a.inject(r.trace.setSpan(r.ROOT_CONTEXT,e),i,r.defaultTextMapSetter);let s=Object.keys(i).sort();if(0===s.length)return t;let l=s.map(e=>{let t=encodeURIComponent(i[e]).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`);return`${e}='${t}'`}).join(",");return`${t} /*${l}*/`}},740598,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(753404),o=e.r(777884),a=e.r(216835);function i(e){return e.replace(/\b\d+\b/g,"?").replace(/(["'])(?:(?=(\\?))\2.)*?\1/g,"?")}n.getConnectionAttributes=function(e,t,n){var i,s,l;let u,{host:c,port:p,database:_,user:T}=function(e){let{host:t,port:n,database:r,user:o}=e&&e.connectionConfig||e||{};return{host:t,port:n,database:r,user:o}}(e),S={};t&o.SemconvStability.OLD&&(S[r.ATTR_DB_CONNECTION_STRING]=(i=c,s=p,l=_,u=`jdbc:mysql://${i||"localhost"}`,"number"==typeof s&&(u+=`:${s}`),"string"==typeof l&&(u+=`/${l}`),u),S[r.ATTR_DB_NAME]=_,S[r.ATTR_DB_USER]=T),t&o.SemconvStability.STABLE&&(S[a.ATTR_DB_NAMESPACE]=_);let E=parseInt(p,10);return n&o.SemconvStability.OLD&&(S[r.ATTR_NET_PEER_NAME]=c,isNaN(E)||(S[r.ATTR_NET_PEER_PORT]=E)),n&o.SemconvStability.STABLE&&(S[a.ATTR_SERVER_ADDRESS]=c,isNaN(E)||(S[a.ATTR_SERVER_PORT]=E)),S},n.getConnectionPrototypeToInstrument=function(e){let t=e.prototype,n=Object.getPrototypeOf(t);return"function"==typeof n?.query&&"function"==typeof n?.execute?n:t},n.getQueryText=function(e,t,n,r=!1,o=i){let[a,s]="string"==typeof e?[e,n]:[e.sql,"values"in e?n||e.values:n];try{if(r)return o(a);if(t&&s)return t(a,s);return a}catch(e){return"Could not determine the query due to an error in masking or formatting"}},n.getSpanName=function(e){let t="object"==typeof e?e.sql:e,n=t?.indexOf(" ");return"number"==typeof n&&-1!==n?t?.substring(0,n):t},n.once=e=>{let t=!1;return(...n)=>{if(!t)return t=!0,e(...n)}}},557508,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(777884),i=e.r(102335),s=e.r(753404),l=e.r(513857),u=e.r(740598),c=e.r(216835),p=[">=1.4.2 <4"];class _ extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-mysql2",o.SDK_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){let e;function t(t){!e&&t.format&&(e=t.format)}let n=t=>{a.isWrapped(t.query)&&this._unwrap(t,"query"),this._wrap(t,"query",this._patchQuery(e,!1)),a.isWrapped(t.execute)&&this._unwrap(t,"execute"),this._wrap(t,"execute",this._patchQuery(e,!0))},r=e=>{this._unwrap(e,"query"),this._unwrap(e,"execute")};return[new a.InstrumentationNodeModuleDefinition("mysql2",p,e=>(t(e),e),()=>{},[new i.InstrumentationNodeModuleFile("mysql2/promise.js",p,e=>(t(e),e),()=>{}),new i.InstrumentationNodeModuleFile("mysql2/lib/connection.js",p,e=>(n(u.getConnectionPrototypeToInstrument(e)),e),e=>{void 0===e||r(u.getConnectionPrototypeToInstrument(e))})])]}_patchQuery(e,t){return n=>{let o=this;return function(i,p,_){let T;Array.isArray(p)?T=p:arguments[2]&&(T=[p]);let{maskStatement:S,maskStatementHook:E,responseHook:d}=o.getConfig(),g=u.getConnectionAttributes(this.config,o._dbSemconvStability,o._netSemconvStability),A=u.getQueryText(i,e,T,S,E);o._dbSemconvStability&a.SemconvStability.OLD&&(g[s.ATTR_DB_SYSTEM]=s.DB_SYSTEM_VALUE_MYSQL,g[s.ATTR_DB_STATEMENT]=A),o._dbSemconvStability&a.SemconvStability.STABLE&&(g[c.ATTR_DB_SYSTEM_NAME]=c.DB_SYSTEM_NAME_VALUE_MYSQL,g[c.ATTR_DB_QUERY_TEXT]=A);let m=o.tracer.startSpan(u.getSpanName(i),{kind:r.SpanKind.CLIENT,attributes:g});!t&&o.getConfig().addSqlCommenterCommentToQueries&&(arguments[0]=i="string"==typeof i?l.addSqlCommenterComment(m,i):Object.assign(i,{sql:l.addSqlCommenterComment(m,i.sql)}));let R=u.once((e,t)=>{e?m.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}):"function"==typeof d&&a.safeExecuteInTheMiddle(()=>{d(m,{queryResults:t})},e=>{e&&o._diag.warn("Failed executing responseHook",e)},!0),m.end()});if(1==arguments.length){"function"==typeof i.onResult&&o._wrap(i,"onResult",o._patchCallbackQuery(R));let e=n.apply(this,arguments);return e.once("error",e=>{R(e)}).once("result",e=>{R(void 0,e)}),e}return"function"==typeof arguments[1]?o._wrap(arguments,1,o._patchCallbackQuery(R)):"function"==typeof arguments[2]&&o._wrap(arguments,2,o._patchCallbackQuery(R)),n.apply(this,arguments)}}}_patchCallbackQuery(e){return t=>function(n,r,o){return e(n,r),t(...arguments)}}}n.MySQL2Instrumentation=_},600698,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(557508),o=e.r(513128),a=e.r(9597),i="Mysql2",s=a.generateInstrumentOnce(i,()=>new r.MySQL2Instrumentation({responseHook(e){a.addOriginToSpan(e,"auto.db.otel.mysql2")}})),l=o.defineIntegration(()=>({name:i,setupOnce(){s()}}));n.instrumentMysql2=s,n.mysql2Integration=l},795968,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.DEBUG_BUILD="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},763135,(e,t,n)=>{let r;Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let o=e.r(513128),a=e.r(795968),i="node-redis:command",s="node-redis:batch",l="node-redis:connect",u="ioredis:command",c="ioredis:connect",p="auto.db.redis.diagnostic_channel",_="db.system",T="net.peer.name",S="net.peer.port",E="redis",d=()=>{},g=!1;function A(e,t,n){e(t,e=>{let t=n(e),r=t.length?`${e.command} ${t.join(" ")}`:e.command;return o.startSpanManual({name:`redis-${e.command}`,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db.redis",[_]:E,"db.statement":r,...null!=e.serverAddress?{[T]:e.serverAddress}:{},...null!=e.serverPort?{[S]:e.serverPort}:{}}},e=>e)}).subscribe({start:d,asyncStart:d,end:d,asyncEnd:e=>{let t=e._sentrySpan;t&&!e.error&&(function(e,t,n,o){let a=r;if(a)try{a(e,t,n,o)}catch{}}(t,e.command,n(e),e.result),t.end())},error:e=>{let t=e._sentrySpan;t&&(e.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:e.error.message}),t.end())}})}function m(e,t){e(t,e=>o.startSpanManual({name:"redis-connect",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db.redis.connect",[_]:E,...null!=e.serverAddress?{[T]:e.serverAddress}:{},...null!=e.serverPort?{[S]:e.serverPort}:{}}},e=>e)).subscribe({start:d,asyncStart:d,end:d,asyncEnd:e=>{e.error||e._sentrySpan?.end()},error:e=>{let t=e._sentrySpan;t&&(e.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:e.error.message}),t.end())}})}n.IOREDIS_DC_CHANNEL_COMMAND=u,n.IOREDIS_DC_CHANNEL_CONNECT=c,n.REDIS_DC_CHANNEL_BATCH=s,n.REDIS_DC_CHANNEL_COMMAND=i,n.REDIS_DC_CHANNEL_CONNECT=l,n.subscribeRedisDiagnosticChannels=function(e,t){if(r=t,!g){g=!0;try{var n,R,h;A(e,i,e=>e.args.slice(1)),n=e,R=s,h=e=>"PIPELINE"===e.batchMode?"PIPELINE":"MULTI",n(R,e=>o.startSpanManual({name:h(e),attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db.redis",[_]:E,...null!=e.batchSize?{"db.redis.batch_size":e.batchSize}:{},...null!=e.serverAddress?{[T]:e.serverAddress}:{},...null!=e.serverPort?{[S]:e.serverPort}:{}}},e=>e)).subscribe({start:d,asyncStart:d,end:d,asyncEnd:e=>{e.error||e._sentrySpan?.end()},error:e=>{let t=e._sentrySpan;t&&(e.error&&t.setStatus({code:o.SPAN_STATUS_ERROR,message:e.error.message}),t.end())}}),m(e,l),A(e,u,e=>e.args),m(e,c)}catch{a.DEBUG_BUILD&&o.debug.log("Redis node:diagnostics_channel subscription failed.")}}}},43643,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(763135);n.IOREDIS_DC_CHANNEL_COMMAND=r.IOREDIS_DC_CHANNEL_COMMAND,n.IOREDIS_DC_CHANNEL_CONNECT=r.IOREDIS_DC_CHANNEL_CONNECT,n.REDIS_DC_CHANNEL_BATCH=r.REDIS_DC_CHANNEL_BATCH,n.REDIS_DC_CHANNEL_COMMAND=r.REDIS_DC_CHANNEL_COMMAND,n.REDIS_DC_CHANNEL_CONNECT=r.REDIS_DC_CHANNEL_CONNECT,n.subscribeRedisDiagnosticChannels=r.subscribeRedisDiagnosticChannels},439910,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(677652),o=e.r(92405),a=e.r(513128),i=e.r(713165);n.tracingChannel=function(e,t){let n,s=r.tracingChannel(e);try{n=o.context._getContextManager().getAsyncLocalStorageLookup()}catch{}if(!n)return i.DEBUG_BUILD&&a.logger.warn("[TracingChannel] Could not access OpenTelemetry AsyncLocalStorage, context propagation will not work."),s;let l=n.asyncLocalStorage;return s.start.bindStore(l,e=>{let n=t(e);return e._sentrySpan=n,o.trace.setSpan(o.context.active(),n)}),s}},26148,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=["get","set","setex"],o=["get","mget"],a=["set","setex"];function i(e,t){return e.includes(t.toLowerCase())}function s(e){return i(o,e)?"cache.get":i(a,e)?"cache.put":void 0}function l(e){let t=[],n=e=>{e.forEach(e=>{Array.isArray(e)?n(e):t.push(e)})};return n(e),t}n.GET_COMMANDS=o,n.SET_COMMANDS=a,n.calculateCacheItemSize=function(e){let t=e=>{try{if(Buffer.isBuffer(e))return e.byteLength;if("string"==typeof e)return e.length;if("number"==typeof e)return e.toString().length;else if(null==e)return 0;return JSON.stringify(e).length}catch{return}};return Array.isArray(e)?e.reduce((e,n)=>{let r=t(n);return"number"==typeof r?void 0!==e?e+r:r:e},0):t(e)},n.getCacheKeySafely=function(e,t){try{if(0===t.length)return;let n=e=>"string"==typeof e||"number"==typeof e||Buffer.isBuffer(e)?[e.toString()]:Array.isArray(e)?l(e.map(e=>n(e))):["<unknown>"],o=t[0];if(i(r,e)&&null!=o)return n(o);return l(t.map(e=>n(e)))}catch{return}},n.getCacheOperation=s,n.isInCommands=i,n.shouldConsiderForCache=function(e,t,n){if(!s(e))return!1;for(let e of t)if(function(e,t){return t.some(t=>e.startsWith(t))}(e,n))return!0;return!1}},243445,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=[{regex:/^ECHO/i,args:0},{regex:/^(LPUSH|MSET|PFA|PUBLISH|RPUSH|SADD|SET|SPUBLISH|XADD|ZADD)/i,args:1},{regex:/^(HSET|HMSET|LSET|LINSERT)/i,args:2},{regex:/^(ACL|BIT|B[LRZ]|CLIENT|CLUSTER|CONFIG|COMMAND|DECR|DEL|EVAL|EX|FUNCTION|GEO|GET|HINCR|HMGET|HSCAN|INCR|L[TRLM]|MEMORY|P[EFISTU]|RPOP|S[CDIMORSU]|XACK|X[CDGILPRT]|Z[CDILMPRS])/i,args:-1}];n.defaultDbStatementSerializer=(e,t)=>{if(Array.isArray(t)&&t.length){let n=r.find(({regex:t})=>t.test(e))?.args??0,o=n>=0?t.slice(0,n):t.slice();return t.length>o.length&&o.push(`[${t.length-n} other arguments]`),`${e} ${o.join(" ")}`}return e}},802841,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_CONNECTION_STRING="db.connection_string",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_NAME_VALUE_REDIS="redis",n.DB_SYSTEM_VALUE_REDIS="redis"},551284,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(777884),i=e.r(216835),s=e.r(243445),l=e.r(802841);function u(e,t){t&&(e.recordException(t),e.setStatus({code:r.SpanStatusCode.ERROR,message:t.message})),e.end()}let c={requireParentSpan:!0};class p extends a.InstrumentationBase{constructor(e={}){super("@opentelemetry/instrumentation-ioredis","0.62.0",{...c,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...c,...e})}init(){return[new a.InstrumentationNodeModuleDefinition("ioredis",[">=2.0.0 <5.11.0"],(e,t)=>{let n="Module"===e[Symbol.toStringTag]?e.default:e;return a.isWrapped(n.prototype.sendCommand)&&this._unwrap(n.prototype,"sendCommand"),this._wrap(n.prototype,"sendCommand",this._patchSendCommand(t)),a.isWrapped(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._patchConnection()),e},e=>{if(void 0===e)return;let t="Module"===e[Symbol.toStringTag]?e.default:e;this._unwrap(t.prototype,"sendCommand"),this._unwrap(t.prototype,"connect")})]}_patchSendCommand(e){return t=>this._traceSendCommand(t,e)}_patchConnection(){return e=>this._traceConnection(e)}_traceSendCommand(e,t){let n=this;return function(c){if(arguments.length<1||"object"!=typeof c)return e.apply(this,arguments);let p=n.getConfig(),_=p.dbStatementSerializer||s.defaultDbStatementSerializer,T=void 0===r.trace.getSpan(r.context.active());if(!0===p.requireParentSpan&&T)return e.apply(this,arguments);let S={},{host:E,port:d}=this.options,g=_(c.name,c.args);n._dbSemconvStability&a.SemconvStability.OLD&&(S[l.ATTR_DB_SYSTEM]=l.DB_SYSTEM_VALUE_REDIS,S[l.ATTR_DB_STATEMENT]=g,S[l.ATTR_DB_CONNECTION_STRING]=`redis://${E}:${d}`),n._dbSemconvStability&a.SemconvStability.STABLE&&(S[i.ATTR_DB_SYSTEM_NAME]=l.DB_SYSTEM_NAME_VALUE_REDIS,S[i.ATTR_DB_QUERY_TEXT]=g),n._netSemconvStability&a.SemconvStability.OLD&&(S[l.ATTR_NET_PEER_NAME]=E,S[l.ATTR_NET_PEER_PORT]=d),n._netSemconvStability&a.SemconvStability.STABLE&&(S[i.ATTR_SERVER_ADDRESS]=E,S[i.ATTR_SERVER_PORT]=d),S[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let A=n.tracer.startSpan(c.name,{kind:r.SpanKind.CLIENT,attributes:S}),{requestHook:m}=p;m&&a.safeExecuteInTheMiddle(()=>m(A,{moduleVersion:t,cmdName:c.name,cmdArgs:c.args}),e=>{e&&r.diag.error("ioredis instrumentation: request hook failed",e)},!0);try{let t=e.apply(this,arguments),n=c.resolve;c.resolve=function(e){a.safeExecuteInTheMiddle(()=>p.responseHook?.(A,c.name,c.args,e),e=>{e&&r.diag.error("ioredis instrumentation: response hook failed",e)},!0),u(A,null),n(e)};let o=c.reject;return c.reject=function(e){u(A,e),o(e)},t}catch(e){throw u(A,e),e}}}_traceConnection(e){let t=this;return function(){let n=void 0===r.trace.getSpan(r.context.active());if(!0===t.getConfig().requireParentSpan&&n)return e.apply(this,arguments);let s={},{host:c,port:p}=this.options;t._dbSemconvStability&a.SemconvStability.OLD&&(s[l.ATTR_DB_SYSTEM]=l.DB_SYSTEM_VALUE_REDIS,s[l.ATTR_DB_STATEMENT]="connect",s[l.ATTR_DB_CONNECTION_STRING]=`redis://${c}:${p}`),t._dbSemconvStability&a.SemconvStability.STABLE&&(s[i.ATTR_DB_SYSTEM_NAME]=l.DB_SYSTEM_NAME_VALUE_REDIS,s[i.ATTR_DB_QUERY_TEXT]="connect"),t._netSemconvStability&a.SemconvStability.OLD&&(s[l.ATTR_NET_PEER_NAME]=c,s[l.ATTR_NET_PEER_PORT]=p),t._netSemconvStability&a.SemconvStability.STABLE&&(s[i.ATTR_SERVER_ADDRESS]=c,s[i.ATTR_SERVER_PORT]=p),s[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let _=t.tracer.startSpan("connect",{kind:r.SpanKind.CLIENT,attributes:s});try{let t=e.apply(this,arguments);if("function"==typeof t?.then)return t.then(e=>(u(_,null),e),e=>(u(_,e),Promise.reject(e)));return u(_,null),t}catch(e){throw u(_,e),e}}}}n.IORedisInstrumentation=p},543610,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(777884),i=e.r(102335),s=e.r(216835),l=e.r(243445),u=e.r(802841),c="@opentelemetry/instrumentation-redis",p="0.62.0",_=Symbol("opentelemetry.instrumentation.redis.open_spans"),T=Symbol("opentelemetry.instrumentation.redis.multi_command_options");function S(e,t,n){let r={};return n&a.SemconvStability.OLD&&Object.assign(r,{[u.ATTR_DB_SYSTEM]:u.DB_SYSTEM_VALUE_REDIS,[u.ATTR_NET_PEER_NAME]:t?.socket?.host,[u.ATTR_NET_PEER_PORT]:t?.socket?.port,[u.ATTR_DB_CONNECTION_STRING]:function(e,t){if("string"==typeof t&&t)try{let e=new URL(t);return e.searchParams.delete("user_pwd"),e.username="",e.password="",e.href}catch(t){e.error("failed to sanitize redis connection url",t)}}(e,t?.url)}),n&a.SemconvStability.STABLE&&Object.assign(r,{[s.ATTR_DB_SYSTEM_NAME]:u.DB_SYSTEM_NAME_VALUE_REDIS,[s.ATTR_SERVER_ADDRESS]:t?.socket?.host,[s.ATTR_SERVER_PORT]:t?.socket?.port}),r}function E(e,t){t&&e.setStatus({code:r.SpanStatusCode.ERROR,message:t.message}),e.end()}let d=class e extends a.InstrumentationBase{constructor(e={}){super(c,p,e),this._semconvStability=e.semconvStability?e.semconvStability:a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig(e),this._semconvStability=e.semconvStability?e.semconvStability:a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[new a.InstrumentationNodeModuleDefinition("redis",[">=2.6.0 <4"],e=>(a.isWrapped(e.RedisClient.prototype.internal_send_command)&&this._unwrap(e.RedisClient.prototype,"internal_send_command"),this._wrap(e.RedisClient.prototype,"internal_send_command",this._getPatchInternalSendCommand()),a.isWrapped(e.RedisClient.prototype.create_stream)&&this._unwrap(e.RedisClient.prototype,"create_stream"),this._wrap(e.RedisClient.prototype,"create_stream",this._getPatchCreateStream()),a.isWrapped(e.createClient)&&this._unwrap(e,"createClient"),this._wrap(e,"createClient",this._getPatchCreateClient()),e),e=>{void 0!==e&&(this._unwrap(e.RedisClient.prototype,"internal_send_command"),this._unwrap(e.RedisClient.prototype,"create_stream"),this._unwrap(e,"createClient"))})]}_getPatchInternalSendCommand(){let t=this;return function(n){return function(i){if(1!=arguments.length||"object"!=typeof i)return n.apply(this,arguments);let c=t.getConfig(),p=void 0===r.trace.getSpan(r.context.active());if(!0===c.requireParentSpan&&p)return n.apply(this,arguments);let _=c?.dbStatementSerializer||l.defaultDbStatementSerializer,T={};t._semconvStability&a.SemconvStability.OLD&&Object.assign(T,{[u.ATTR_DB_SYSTEM]:u.DB_SYSTEM_VALUE_REDIS,[u.ATTR_DB_STATEMENT]:_(i.command,i.args)}),t._semconvStability&a.SemconvStability.STABLE&&Object.assign(T,{[s.ATTR_DB_SYSTEM_NAME]:u.DB_SYSTEM_NAME_VALUE_REDIS,[s.ATTR_DB_OPERATION_NAME]:i.command,[s.ATTR_DB_QUERY_TEXT]:_(i.command,i.args)}),T[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let S=t.tracer.startSpan(`${e.COMPONENT}-${i.command}`,{kind:r.SpanKind.CLIENT,attributes:T});if(this.connection_options){let e={};t._semconvStability&a.SemconvStability.OLD&&Object.assign(e,{[u.ATTR_NET_PEER_NAME]:this.connection_options.host,[u.ATTR_NET_PEER_PORT]:this.connection_options.port}),t._semconvStability&a.SemconvStability.STABLE&&Object.assign(e,{[s.ATTR_SERVER_ADDRESS]:this.connection_options.host,[s.ATTR_SERVER_PORT]:this.connection_options.port}),S.setAttributes(e)}this.address&&t._semconvStability&a.SemconvStability.OLD&&S.setAttribute(u.ATTR_DB_CONNECTION_STRING,`redis://${this.address}`);let d=arguments[0].callback;if(d){let e=r.context.active();arguments[0].callback=function(n,o){if(c?.responseHook){let e=c.responseHook;a.safeExecuteInTheMiddle(()=>{e(S,i.command,i.args,o)},e=>{e&&t._diag.error("Error executing responseHook",e)},!0)}return E(S,n),r.context.with(e,d,this,...arguments)}}try{return n.apply(this,arguments)}catch(e){throw E(S,e),e}}}}_getPatchCreateClient(){return function(e){return function(){let t=e.apply(this,arguments);return r.context.bind(r.context.active(),t)}}}_getPatchCreateStream(){return function(e){return function(){return Object.prototype.hasOwnProperty.call(this,"stream")||Object.defineProperty(this,"stream",{get(){return this._patched_redis_stream},set(e){r.context.bind(r.context.active(),e),this._patched_redis_stream=e}}),e.apply(this,arguments)}}}};d.COMPONENT="redis";let g=class e extends a.InstrumentationBase{constructor(e={}){super(c,p,e),this._semconvStability=e.semconvStability?e.semconvStability:a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig(e),this._semconvStability=e.semconvStability?e.semconvStability:a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[this._getInstrumentationNodeModuleDefinition("@redis/client"),this._getInstrumentationNodeModuleDefinition("@node-redis/client")]}_getInstrumentationNodeModuleDefinition(e){let t=new i.InstrumentationNodeModuleFile(`${e}/dist/lib/commander.js`,["^1.0.0"],(e,t)=>{let n=e.transformCommandArguments;if(!n)return this._diag.error("internal instrumentation error, missing transformCommandArguments function"),e;let r=t?.startsWith("1.0.")?"extendWithCommands":"attachCommands";return a.isWrapped(e?.[r])&&this._unwrap(e,r),this._wrap(e,r,this._getPatchExtendWithCommands(n)),e},e=>{a.isWrapped(e?.extendWithCommands)&&this._unwrap(e,"extendWithCommands"),a.isWrapped(e?.attachCommands)&&this._unwrap(e,"attachCommands")}),n=new i.InstrumentationNodeModuleFile(`${e}/dist/lib/client/multi-command.js`,["^1.0.0",">=5.0.0 <5.12.0"],e=>{let t=e?.default?.prototype;return a.isWrapped(t?.exec)&&this._unwrap(t,"exec"),this._wrap(t,"exec",this._getPatchMultiCommandsExec(!1)),a.isWrapped(t?.execAsPipeline)&&this._unwrap(t,"execAsPipeline"),this._wrap(t,"execAsPipeline",this._getPatchMultiCommandsExec(!0)),a.isWrapped(t?.addCommand)&&this._unwrap(t,"addCommand"),this._wrap(t,"addCommand",this._getPatchMultiCommandsAddCommand()),e},e=>{let t=e?.default?.prototype;a.isWrapped(t?.exec)&&this._unwrap(t,"exec"),a.isWrapped(t?.execAsPipeline)&&this._unwrap(t,"execAsPipeline"),a.isWrapped(t?.addCommand)&&this._unwrap(t,"addCommand")}),r=new i.InstrumentationNodeModuleFile(`${e}/dist/lib/client/index.js`,["^1.0.0",">=5.0.0 <5.12.0"],e=>{let t=e?.default?.prototype;return t?.multi&&(a.isWrapped(t?.multi)&&this._unwrap(t,"multi"),this._wrap(t,"multi",this._getPatchRedisClientMulti())),t?.MULTI&&(a.isWrapped(t?.MULTI)&&this._unwrap(t,"MULTI"),this._wrap(t,"MULTI",this._getPatchRedisClientMulti())),a.isWrapped(t?.sendCommand)&&this._unwrap(t,"sendCommand"),this._wrap(t,"sendCommand",this._getPatchRedisClientSendCommand()),a.isWrapped(t?.connect)&&this._unwrap(t,"connect"),this._wrap(t,"connect",this._getPatchedClientConnect()),e},e=>{let t=e?.default?.prototype;a.isWrapped(t?.multi)&&this._unwrap(t,"multi"),a.isWrapped(t?.MULTI)&&this._unwrap(t,"MULTI"),a.isWrapped(t?.sendCommand)&&this._unwrap(t,"sendCommand"),a.isWrapped(t?.connect)&&this._unwrap(t,"connect")});return new a.InstrumentationNodeModuleDefinition(e,["^1.0.0",">=5.0.0 <5.12.0"],e=>e,()=>{},[t,n,r])}_getPatchExtendWithCommands(e){let t=this;return function(n){return function(r){if(r?.BaseClass?.name!=="RedisClient")return n.apply(this,arguments);let o=r.executor;return r.executor=function(n,r){let a=e(n,r).args;return t._traceClientCommand(o,this,arguments,a)},n.apply(this,arguments)}}}_getPatchMultiCommandsExec(e){let t=this;return function(n){return function(){let r=n.apply(this,arguments);return"function"!=typeof r?.then?(t._diag.error("non-promise result when patching exec/execAsPipeline"),r):r.then(n=>{let r=this[_];return t._endSpansWithRedisReplies(r,n,e),n}).catch(n=>{let r=this[_];if(r){let o="MultiErrorReply"===n.constructor.name?n.replies:Array(r.length).fill(n);t._endSpansWithRedisReplies(r,o,e)}else t._diag.error("cannot find open spans to end for multi/pipeline");return Promise.reject(n)})}}}_getPatchMultiCommandsAddCommand(){let e=this;return function(t){return function(n){return e._traceClientCommand(t,this,arguments,n)}}}_getPatchRedisClientMulti(){return function(e){return function(){let t=e.apply(this,arguments);return t[T]=this.options,t}}}_getPatchRedisClientSendCommand(){let e=this;return function(t){return function(n){return e._traceClientCommand(t,this,arguments,n)}}}_getPatchedClientConnect(){let t=this;return function(n){return function(){let a=this.options,i=S(t._diag,a,t._semconvStability);i[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let s=t.tracer.startSpan(`${e.COMPONENT}-connect`,{kind:r.SpanKind.CLIENT,attributes:i});return r.context.with(r.trace.setSpan(r.context.active(),s),()=>n.apply(this)).then(e=>(s.end(),e)).catch(e=>(s.recordException(e),s.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}),s.end(),Promise.reject(e)))}}}_traceClientCommand(t,n,i,c){if(void 0===r.trace.getSpan(r.context.active())&&this.getConfig().requireParentSpan)return t.apply(n,i);let p=n.options||n[T],E=c[0],d=c.slice(1),g=this.getConfig().dbStatementSerializer||l.defaultDbStatementSerializer,A=S(this._diag,p,this._semconvStability);this._semconvStability&a.SemconvStability.STABLE&&(A[s.ATTR_DB_OPERATION_NAME]=E);try{let e=g(E,d);null!=e&&(this._semconvStability&a.SemconvStability.OLD&&(A[u.ATTR_DB_STATEMENT]=e),this._semconvStability&a.SemconvStability.STABLE&&(A[s.ATTR_DB_QUERY_TEXT]=e))}catch(e){this._diag.error("dbStatementSerializer throw an exception",e,{commandName:E})}A[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]="auto.db.otel.redis";let m=this.tracer.startSpan(`${e.COMPONENT}-${E}`,{kind:r.SpanKind.CLIENT,attributes:A}),R=r.context.with(r.trace.setSpan(r.context.active(),m),()=>t.apply(n,i));return"function"==typeof R?.then?R.then(e=>{this._endSpanWithResponse(m,E,d,e,void 0)},e=>{this._endSpanWithResponse(m,E,d,null,e)}):(R[_]=R[_]||[],R[_].push({span:m,commandName:E,commandArgs:d})),R}_endSpansWithRedisReplies(e,t,n=!1){if(!e)return this._diag.error("cannot find open spans to end for redis multi/pipeline");if(t.length!==e.length)return this._diag.error("number of multi command spans does not match response from redis");let r=e.map(e=>e.commandName),o=r.every(e=>e===r[0])?(n?"PIPELINE ":"MULTI ")+r[0]:n?"PIPELINE":"MULTI";for(let n=0;n<e.length;n++){let{span:i,commandArgs:l}=e[n],u=t[n],[c,p]=u instanceof Error?[null,u]:[u,void 0];this._semconvStability&a.SemconvStability.STABLE&&i.setAttribute(s.ATTR_DB_OPERATION_NAME,o),this._endSpanWithResponse(i,r[n],l,c,p)}}_endSpanWithResponse(e,t,n,o,a){let{responseHook:i}=this.getConfig();if(!a&&i)try{i(e,t,n,o)}catch(e){this._diag.error("responseHook throw an exception",e)}a&&(e.recordException(a),e.setStatus({code:r.SpanStatusCode.ERROR,message:a?.message})),e.end()}};g.COMPONENT="redis";let A={requireParentSpan:!1};class m extends a.InstrumentationBase{constructor(e={}){super(c,p,{...A,...e}),this.initialized=!1,this.instrumentationV2_V3=new d(this.getConfig()),this.instrumentationV4_V5=new g(this.getConfig()),this.initialized=!0}setConfig(e={}){let t={...A,...e};super.setConfig(t),this.initialized&&(this.instrumentationV2_V3.setConfig(t),this.instrumentationV4_V5.setConfig(t))}init(){}getModuleDefinitions(){return[...this.instrumentationV2_V3.getModuleDefinitions(),...this.instrumentationV4_V5.getModuleDefinitions()]}setTracerProvider(e){super.setTracerProvider(e),this.initialized&&(this.instrumentationV2_V3.setTracerProvider(e),this.instrumentationV4_V5.setTracerProvider(e))}enable(){super.enable(),this.initialized&&(this.instrumentationV2_V3.enable(),this.instrumentationV4_V5.enable())}disable(){super.disable(),this.initialized&&(this.instrumentationV2_V3.disable(),this.instrumentationV4_V5.disable())}}n.RedisInstrumentation=m},249659,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(43643),a=e.r(9597),i=e.r(439910),s=e.r(26148),l=e.r(551284),u=e.r(543610),c="Redis";n._redisOptions={};let p=(e,t,o,a)=>{let i=s.getCacheKeySafely(t,o),l=s.getCacheOperation(t);if(!i||!l||!n._redisOptions.cachePrefixes||!s.shouldConsiderForCache(t,i,n._redisOptions.cachePrefixes))return;let u=r.spanToJSON(e).data,c=u["net.peer.name"]??u["server.address"],p=u["net.peer.port"]??u["server.port"];p&&c&&e.setAttributes({"network.peer.address":c,"network.peer.port":p});let _=s.calculateCacheItemSize(a);_&&e.setAttribute(r.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,_),s.isInCommands(s.GET_COMMANDS,t)&&void 0!==_&&e.setAttribute(r.SEMANTIC_ATTRIBUTE_CACHE_HIT,_>0),e.setAttributes({[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:l,[r.SEMANTIC_ATTRIBUTE_CACHE_KEY]:i});let T=i.join(", ");e.updateName(n._redisOptions.maxCacheKeyLength?r.truncate(T,n._redisOptions.maxCacheKeyLength):T)},_=a.generateInstrumentOnce(`${c}.IORedis`,()=>new l.IORedisInstrumentation({responseHook:p})),T=a.generateInstrumentOnce(`${c}.Redis`,()=>new u.RedisInstrumentation({responseHook:p})),S=Object.assign(()=>{_(),T(),Promise.resolve().then(()=>o.subscribeRedisDiagnosticChannels(i.tracingChannel,p))},{id:c}),E=r.defineIntegration((e={})=>({name:c,setupOnce(){n._redisOptions=e,S()}}));n.cacheResponseHook=p,n.instrumentRedis=S,n.redisIntegration=E},347658,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.EVENT_LISTENERS_SET=Symbol("opentelemetry.instrumentation.pg.eventListenersSet")},121018,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).PG_VALUES="db.postgresql.values",r.PG_PLAN="db.postgresql.plan",r.IDLE_TIMEOUT_MILLIS="db.postgresql.idle.timeout.millis",r.MAX_CLIENT="db.postgresql.max.client",r);n.AttributeNames=o},416887,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_CLIENT_CONNECTION_POOL_NAME="db.client.connection.pool.name",n.ATTR_DB_CLIENT_CONNECTION_STATE="db.client.connection.state",n.ATTR_DB_CONNECTION_STRING="db.connection_string",n.ATTR_DB_NAME="db.name",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE="idle",n.DB_CLIENT_CONNECTION_STATE_VALUE_USED="used",n.DB_SYSTEM_VALUE_POSTGRESQL="postgresql",n.METRIC_DB_CLIENT_CONNECTION_COUNT="db.client.connection.count",n.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS="db.client.connection.pending_requests"},231869,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).QUERY_PREFIX="pg.query",r.CONNECT="pg.connect",r.POOL_CONNECT="pg-pool.connect",r);n.SpanNames=o},468100,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(121018),a=e.r(216835),i=e.r(416887),s=e.r(777884),l=e.r(231869);function u(e,t){if(!t)return l.SpanNames.QUERY_PREFIX;let n="string"==typeof t.name&&t.name?t.name:c(t.text);return`${l.SpanNames.QUERY_PREFIX}:${n}${e?` ${e}`:""}`}function c(e){let t=e.trim(),n=t.indexOf(" "),r=-1===n?t:t.slice(0,n);return(r=r.toUpperCase()).endsWith(";")?r.slice(0,-1):r}function p(e){try{let t=new URL(e);return t.username="",t.password="",t.toString()}catch(e){return"postgresql://localhost:5432/"}}function _(e){if("connectionString"in e&&e.connectionString)return p(e.connectionString);let t=e.host||"localhost",n=e.port||5432,r=e.database||"";return`postgresql://${t}:${n}/${r}`}function T(e){if(Number.isInteger(e))return e}function S(e,t){let n={};return t&s.SemconvStability.OLD&&(n={...n,[i.ATTR_DB_SYSTEM]:i.DB_SYSTEM_VALUE_POSTGRESQL,[i.ATTR_DB_NAME]:e.database,[i.ATTR_DB_CONNECTION_STRING]:_(e),[i.ATTR_DB_USER]:e.user,[i.ATTR_NET_PEER_NAME]:e.host,[i.ATTR_NET_PEER_PORT]:T(e.port)}),t&s.SemconvStability.STABLE&&(n={...n,[a.ATTR_DB_SYSTEM_NAME]:a.DB_SYSTEM_NAME_VALUE_POSTGRESQL,[a.ATTR_DB_NAMESPACE]:e.namespace,[a.ATTR_SERVER_ADDRESS]:e.host,[a.ATTR_SERVER_PORT]:T(e.port)}),n}function E(e,t,n){"function"==typeof e.responseHook&&s.safeExecuteInTheMiddle(()=>{e.responseHook(t,{data:n})},e=>{e&&r.diag.error("Error running response hook",e)},!0)}function d(e){let t=e?.name??"PostgreSQLError",n=e?.code??"UNKNOWN";return`PostgreSQL error of type '${t}' occurred (code: ${n})`}n.getConnectionString=_,n.getErrorMessage=function(e){return"object"==typeof e&&null!==e&&"message"in e?String(e.message):void 0},n.getPoolName=function(e){let t="";return(t+=(e?.host?`${e.host}`:"unknown_host")+":"+(e?.port?`${e.port}`:"unknown_port")+"/"+(e?.database?`${e.database}`:"unknown_database")).trim()},n.getQuerySpanName=u,n.getSemanticAttributesFromConnection=S,n.getSemanticAttributesFromPoolConnection=function(e,t){let n;try{n=e.connectionString?new URL(e.connectionString):void 0}catch(e){n=void 0}let r={[o.AttributeNames.IDLE_TIMEOUT_MILLIS]:e.idleTimeoutMillis,[o.AttributeNames.MAX_CLIENT]:e.maxClient};return t&s.SemconvStability.OLD&&(r={...r,[i.ATTR_DB_SYSTEM]:i.DB_SYSTEM_VALUE_POSTGRESQL,[i.ATTR_DB_NAME]:n?.pathname.slice(1)??e.database,[i.ATTR_DB_CONNECTION_STRING]:_(e),[i.ATTR_NET_PEER_NAME]:n?.hostname??e.host,[i.ATTR_NET_PEER_PORT]:Number(n?.port)||T(e.port),[i.ATTR_DB_USER]:n?.username??e.user}),t&s.SemconvStability.STABLE&&(r={...r,[a.ATTR_DB_SYSTEM_NAME]:a.DB_SYSTEM_NAME_VALUE_POSTGRESQL,[a.ATTR_DB_NAMESPACE]:e.namespace,[a.ATTR_SERVER_ADDRESS]:n?.hostname??e.host,[a.ATTR_SERVER_PORT]:Number(n?.port)||T(e.port)}),r},n.handleConfigQuery=function(e,t,n,l){let{connectionParameters:c}=this,p=u(c.database,l),_=e.startSpan(p,{kind:r.SpanKind.CLIENT,attributes:S(c,n)});if(!l)return _;if(l.text&&(n&s.SemconvStability.OLD&&_.setAttribute(i.ATTR_DB_STATEMENT,l.text),n&s.SemconvStability.STABLE&&_.setAttribute(a.ATTR_DB_QUERY_TEXT,l.text)),t.enhancedDatabaseReporting&&Array.isArray(l.values))try{let e=l.values.map(e=>null==e?"null":e instanceof Buffer?e.toString():"object"!=typeof e?e.toString():"function"==typeof e.toPostgres?e.toPostgres():JSON.stringify(e));_.setAttribute(o.AttributeNames.PG_VALUES,e)}catch(e){r.diag.error("failed to stringify ",l.values,e)}return"string"==typeof l.name&&_.setAttribute(o.AttributeNames.PG_PLAN,l.name),_},n.handleExecutionResult=E,n.isObjectWithTextString=function(e){return"object"==typeof e&&"string"==typeof e?.text},n.parseAndMaskConnectionString=p,n.parseNormalizedOperationName=c,n.patchCallback=function(e,t,n,o,i){return function(s,l){s?(Object.prototype.hasOwnProperty.call(s,"code")&&(o[a.ATTR_ERROR_TYPE]=s.code),s instanceof Error&&t.recordException(d(s)),t.setStatus({code:r.SpanStatusCode.ERROR,message:s.message})):E(e,t,l),i(),t.end(),n.call(this,s,l)}},n.patchCallbackPGPool=function(e,t){return function(n,o,a){n&&(n instanceof Error&&e.recordException(d(n)),e.setStatus({code:r.SpanStatusCode.ERROR,message:n.message})),e.end(),t.call(this,n,o,a)}},n.patchClientConnectCallback=function(e,t){return function(n){n&&(n instanceof Error&&e.recordException(d(n)),e.setStatus({code:r.SpanStatusCode.ERROR,message:n.message})),e.end(),t.apply(this,arguments)}},n.sanitizedErrorMessage=d,n.shouldSkipInstrumentation=function(e){return!0===e.requireParentSpan&&void 0===r.trace.getSpan(r.context.active())},n.updateCounter=function(e,t,n,r,o){let a=t.totalCount,s=t.waitingCount,l=t.idleCount,u=a-l;return n.add(u-o.used,{[i.ATTR_DB_CLIENT_CONNECTION_STATE]:i.DB_CLIENT_CONNECTION_STATE_VALUE_USED,[i.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:e}),n.add(l-o.idle,{[i.ATTR_DB_CLIENT_CONNECTION_STATE]:i.DB_CLIENT_CONNECTION_STATE_VALUE_IDLE,[i.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:e}),r.add(s-o.pending,{[i.ATTR_DB_CLIENT_CONNECTION_POOL_NAME]:e}),{used:u,idle:l,pending:s}}},746740,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(102335),a=e.r(92405),i=e.r(347658),s=e.r(468100),l=e.r(513857),u=e.r(513128),c=e.r(231869),p=e.r(216835),_=e.r(416887);function T(e){return"Module"===e[Symbol.toStringTag]?e.default:e}class S extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-pg",u.SDK_VERSION,e),this._connectionsCounter={used:0,idle:0,pending:0},this._semconvStability=r.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}_updateMetricInstruments(){this._operationDuration=this.meter.createHistogram(p.METRIC_DB_CLIENT_OPERATION_DURATION,{description:"Duration of database client operations.",unit:"s",valueType:a.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.001,.005,.01,.05,.1,.5,1,5,10]}}),this._connectionsCounter={idle:0,pending:0,used:0},this._connectionsCount=this.meter.createUpDownCounter(_.METRIC_DB_CLIENT_CONNECTION_COUNT,{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"}),this._connectionPendingRequests=this.meter.createUpDownCounter(_.METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS,{description:"The number of current pending requests for an open connection.",unit:"{connection}"})}init(){let e=[">=8.0.3 <9"],t=new o.InstrumentationNodeModuleFile("pg/lib/native/client.js",e,this._patchPgClient.bind(this),this._unpatchPgClient.bind(this)),n=new o.InstrumentationNodeModuleFile("pg/lib/client.js",e,this._patchPgClient.bind(this),this._unpatchPgClient.bind(this));return[new r.InstrumentationNodeModuleDefinition("pg",e,e=>{let t=T(e);return this._patchPgClient(t.Client),e},e=>{let t=T(e);return this._unpatchPgClient(t.Client),e},[n,t]),new r.InstrumentationNodeModuleDefinition("pg-pool",[">=2.0.0 <4"],e=>{let t=T(e);return r.isWrapped(t.prototype.connect)&&this._unwrap(t.prototype,"connect"),this._wrap(t.prototype,"connect",this._getPoolConnectPatch()),t},e=>{let t=T(e);r.isWrapped(t.prototype.connect)&&this._unwrap(t.prototype,"connect")})]}_patchPgClient(e){if(!e)return;let t=T(e);return r.isWrapped(t.prototype.query)&&this._unwrap(t.prototype,"query"),r.isWrapped(t.prototype.connect)&&this._unwrap(t.prototype,"connect"),this._wrap(t.prototype,"query",this._getClientQueryPatch()),this._wrap(t.prototype,"connect",this._getClientConnectPatch()),e}_unpatchPgClient(e){let t=T(e);return r.isWrapped(t.prototype.query)&&this._unwrap(t.prototype,"query"),r.isWrapped(t.prototype.connect)&&this._unwrap(t.prototype,"connect"),e}_getClientConnectPatch(){let e=this;return t=>function(n){let r=e.getConfig();if(s.shouldSkipInstrumentation(r)||r.ignoreConnectSpans)return t.call(this,n);let o=e.tracer.startSpan(c.SpanNames.CONNECT,{kind:a.SpanKind.CLIENT,attributes:s.getSemanticAttributesFromConnection(this,e._semconvStability)});if(n){let e=a.trace.getSpan(a.context.active());n=s.patchClientConnectCallback(o,n),e&&(n=a.context.bind(a.context.active(),n))}let i=a.context.with(a.trace.setSpan(a.context.active(),o),()=>t.call(this,n));return E(o,i)}}recordOperationDuration(e,t){let n={},o=[p.ATTR_DB_NAMESPACE,p.ATTR_ERROR_TYPE,p.ATTR_SERVER_PORT,p.ATTR_SERVER_ADDRESS,p.ATTR_DB_OPERATION_NAME];this._semconvStability&r.SemconvStability.OLD&&o.push(_.ATTR_DB_SYSTEM),this._semconvStability&r.SemconvStability.STABLE&&o.push(p.ATTR_DB_SYSTEM_NAME),o.forEach(t=>{t in e&&(n[t]=e[t])});let a=u.timestampInSeconds()-t;this._operationDuration.record(a,n)}_getClientQueryPatch(){let e=this;return t=>(this._diag.debug("Patching pg.Client.prototype.query"),function(...n){let o;if(s.shouldSkipInstrumentation(e.getConfig()))return t.apply(this,n);let i=u.timestampInSeconds(),c=n[0],T="string"==typeof c,S=s.isObjectWithTextString(c),E=T?{text:c,values:Array.isArray(n[1])?n[1]:void 0}:S?{...c,name:c.name,text:c.text,values:c.values??(Array.isArray(n[1])?n[1]:void 0)}:void 0,d={[_.ATTR_DB_SYSTEM]:_.DB_SYSTEM_VALUE_POSTGRESQL,[p.ATTR_DB_NAMESPACE]:this.database,[p.ATTR_SERVER_PORT]:this.connectionParameters.port,[p.ATTR_SERVER_ADDRESS]:this.connectionParameters.host};E?.text&&(d[p.ATTR_DB_OPERATION_NAME]=s.parseNormalizedOperationName(E?.text));let g=()=>{e.recordOperationDuration(d,i)},A=e.getConfig(),m=s.handleConfigQuery.call(this,e.tracer,A,e._semconvStability,E);if(A.addSqlCommenterCommentToQueries&&(T?n[0]=l.addSqlCommenterComment(m,c):!S||"name"in c||(n[0]={...c,text:l.addSqlCommenterComment(m,c.text)})),n.length>0){let t=a.trace.getSpan(a.context.active());if("function"==typeof n[n.length-1])n[n.length-1]=s.patchCallback(A,m,n[n.length-1],d,g),t&&(n[n.length-1]=a.context.bind(a.context.active(),n[n.length-1]));else if("function"==typeof E?.callback){let r=s.patchCallback(e.getConfig(),m,E.callback,d,g);t&&(r=a.context.bind(a.context.active(),r)),n[0].callback=r}}let{requestHook:R}=A;"function"==typeof R&&E&&r.safeExecuteInTheMiddle(()=>{let{database:e,host:t,port:n,user:r}=this.connectionParameters;R(m,{connection:{database:e,host:t,port:n,user:r},query:{text:E.text,values:E.values,name:E.name}})},t=>{t&&e._diag.error("Error running query hook",t)},!0);try{o=t.apply(this,n)}catch(e){throw e instanceof Error&&m.recordException(s.sanitizedErrorMessage(e)),m.setStatus({code:a.SpanStatusCode.ERROR,message:s.getErrorMessage(e)}),m.end(),e}return o instanceof Promise?o.then(t=>new Promise(n=>{s.handleExecutionResult(e.getConfig(),m,t),g(),m.end(),n(t)})).catch(e=>new Promise((t,n)=>{e instanceof Error&&m.recordException(s.sanitizedErrorMessage(e)),m.setStatus({code:a.SpanStatusCode.ERROR,message:e.message}),g(),m.end(),n(e)})):o})}_setPoolConnectEventListeners(e){if(e[i.EVENT_LISTENERS_SET])return;let t=s.getPoolName(e.options);e.on("connect",()=>{this._connectionsCounter=s.updateCounter(t,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("acquire",()=>{this._connectionsCounter=s.updateCounter(t,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("remove",()=>{this._connectionsCounter=s.updateCounter(t,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e.on("release",()=>{this._connectionsCounter=s.updateCounter(t,e,this._connectionsCount,this._connectionPendingRequests,this._connectionsCounter)}),e[i.EVENT_LISTENERS_SET]=!0}_getPoolConnectPatch(){let e=this;return t=>function(n){let r=e.getConfig();if(s.shouldSkipInstrumentation(r)||(e._setPoolConnectEventListeners(this),r.ignoreConnectSpans))return t.call(this,n);let o=e.tracer.startSpan(c.SpanNames.POOL_CONNECT,{kind:a.SpanKind.CLIENT,attributes:s.getSemanticAttributesFromPoolConnection(this.options,e._semconvStability)});if(n){let e=a.trace.getSpan(a.context.active());n=s.patchCallbackPGPool(o,n),e&&(n=a.context.bind(a.context.active(),n))}let i=a.context.with(a.trace.setSpan(a.context.active(),o),()=>t.call(this,n));return E(o,i)}}}function E(e,t){return t instanceof Promise?a.context.bind(a.context.active(),t.then(t=>(e.end(),t)).catch(t=>(t instanceof Error&&e.recordException(s.sanitizedErrorMessage(t)),e.setStatus({code:a.SpanStatusCode.ERROR,message:s.getErrorMessage(t)}),e.end(),Promise.reject(t)))):t}n.PgInstrumentation=S},575879,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(746740),o=e.r(513128),a=e.r(9597),i="Postgres",s=a.generateInstrumentOnce(i,r.PgInstrumentation,e=>({requireParentSpan:!0,requestHook(e){a.addOriginToSpan(e,"auto.db.otel.postgres")},ignoreConnectSpans:e?.ignoreConnectSpans??!1})),l=o.defineIntegration(e=>({name:i,setupOnce(){s(e)}}));n.instrumentPostgres=s,n.postgresIntegration=l},214177,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(102335),i=e.r(216835),s=e.r(513128),l=e.r(9597),u=e.r(23602),c="PostgresJs",p=[">=3.0.0 <4"],_=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,T=Symbol.for("sentry.query.from.instrumented.sql"),S=l.generateInstrumentOnce(c,e=>new E({requireParentSpan:e?.requireParentSpan??!0,requestHook:e?.requestHook}));class E extends o.InstrumentationBase{constructor(e){super("sentry-postgres-js",s.SDK_VERSION,e)}init(){let e=new o.InstrumentationNodeModuleDefinition("postgres",p,e=>{try{return this._patchPostgres(e)}catch(t){return u.DEBUG_BUILD&&s.debug.error("Failed to patch postgres module:",t),e}},e=>e);return["src","cf/src","cjs/src"].forEach(t=>{e.files.push(new a.InstrumentationNodeModuleFile(`postgres/${t}/query.js`,p,this._patchQueryPrototype.bind(this),this._unpatchQueryPrototype.bind(this)))}),e}_patchPostgres(e){let t="function"==typeof e,n=t?e:e.default;if("function"!=typeof n)return u.DEBUG_BUILD&&s.debug.warn("postgres module does not export a function. Skipping instrumentation."),e;let r=this,o=function(...e){let t=Reflect.construct(n,e);if(!t||"function"!=typeof t)return u.DEBUG_BUILD&&s.debug.warn("postgres() did not return a valid instance"),t;let o=r.getConfig();return s.instrumentPostgresJsSql(t,{requireParentSpan:o.requireParentSpan,requestHook:o.requestHook})};for(let e of(Object.setPrototypeOf(o,n),Object.setPrototypeOf(o.prototype,n.prototype),Object.getOwnPropertyNames(n)))if(!["length","name","prototype"].includes(e)){let t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(o,e,t)}return t?o:(s.replaceExports(e,"default",o),e)}_shouldCreateSpans(){let e=this.getConfig();return void 0!==r.trace.getSpan(r.context.active())||!e.requireParentSpan}_setOperationName(e,t,n){if(n)return void e.setAttribute(i.ATTR_DB_OPERATION_NAME,n);let r=t?.match(_);r?.[1]&&e.setAttribute(i.ATTR_DB_OPERATION_NAME,r[1].toUpperCase())}_reconstructQuery(e){if(e?.length)return 1===e.length?e[0]||void 0:e.reduce((e,t,n)=>0===n?t:`${e}$${n}${t}`,"")}_sanitizeSqlQuery(e){return e?e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(/(?<!\$)-?\b\d+\b/g,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)"):"Unknown SQL Query"}_patchQueryPrototype(e){let t=this,n=e.Query.prototype.handle;return e.Query.prototype.handle=async function(...e){if(this.executed||this[T]||!t._shouldCreateSpans())return n.apply(this,e);let r=t._reconstructQuery(this.strings),a=t._sanitizeSqlQuery(r);return s.startSpanManual({name:a||"postgresjs.query",op:"db"},r=>{l.addOriginToSpan(r,"auto.db.postgresjs"),r.setAttributes({[i.ATTR_DB_SYSTEM_NAME]:"postgres",[i.ATTR_DB_QUERY_TEXT]:a});let{requestHook:p}=t.getConfig();p&&o.safeExecuteInTheMiddle(()=>p(r,a,void 0),e=>{e&&(r.setAttribute("sentry.hook.error","requestHook failed"),u.DEBUG_BUILD&&s.debug.error(`Error in requestHook for ${c} integration:`,e))},!0);let _=this.resolve;this.resolve=new Proxy(_,{apply:(e,n,o)=>{try{t._setOperationName(r,a,o?.[0]?.command),r.end()}catch(e){u.DEBUG_BUILD&&s.debug.error("Error ending span in resolve callback:",e)}return Reflect.apply(e,n,o)}});let T=this.reject;this.reject=new Proxy(T,{apply:(e,n,o)=>{try{r.setStatus({code:s.SPAN_STATUS_ERROR,message:o?.[0]?.message||"unknown_error"}),r.setAttribute(i.ATTR_DB_RESPONSE_STATUS_CODE,o?.[0]?.code||"unknown"),r.setAttribute(i.ATTR_ERROR_TYPE,o?.[0]?.name||"unknown"),t._setOperationName(r,a),r.end()}catch(e){u.DEBUG_BUILD&&s.debug.error("Error ending span in reject callback:",e)}return Reflect.apply(e,n,o)}});try{return n.apply(this,e)}catch(e){throw r.setStatus({code:s.SPAN_STATUS_ERROR,message:e instanceof Error?e.message:"unknown_error"}),r.end(),e}})},e.Query.prototype.handle.__sentry_original__=n,e}_unpatchQueryPrototype(e){return e.Query.prototype.handle.__sentry_original__&&(e.Query.prototype.handle=e.Query.prototype.handle.__sentry_original__),e}}let d=s.defineIntegration(e=>({name:c,setupOnce(){S(e)}}));n.PostgresJsInstrumentation=E,n.instrumentPostgresJs=S,n.postgresJsIntegration=d},879226,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r="PRISMA_INSTRUMENTATION",o="V7_PRISMA_INSTRUMENTATION",a=globalThis;n.clearGlobalTracingHelper=function(){delete a[o],delete a[r]},n.getGlobalTracingHelper=function(){let e=a[o];if(e?.helper)return e.helper;let t=a[r];return t?.helper},n.setGlobalTracingHelper=function(e){let t={helper:e};a[o]=t,a[r]=t}},443540,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o="true"===process.env.PRISMA_SHOW_ALL_TRACES;function a(e,t){var n;return null!=(n=t)&&"function"==typeof n.then?t.then(t=>(e.end(),t),t=>{throw e.end(),t}):(e.end(),t)}function i(e,t){return t.some(t=>"string"==typeof t?t===e:t.test(e))}n.ActiveTracingHelper=class{constructor({tracerProvider:e,ignoreSpanTypes:t}){this.tracerProvider=e,this.ignoreSpanTypes=t}isEnabled(){return!0}getTraceParent(e){let t=r.trace.getSpanContext(e??r.context.active());return t?`00-${t.traceId}-${t.spanId}-0${t.traceFlags}`:"00-10-10-00"}dispatchEngineSpans(e){let t=this.tracerProvider.getTracer("prisma"),n=new Map;for(let o of e.filter(e=>null===e.parentId))!function e(t,n,o,a,s){if(i(n.name,s))return;let l={attributes:n.attributes,kind:"client"===n.kind?r.SpanKind.CLIENT:r.SpanKind.INTERNAL,startTime:n.startTime};t.startActiveSpan(n.name,l,r=>{for(let i of(a.set(n.id,r.spanContext().spanId),n.links&&r.addLinks(n.links.flatMap(e=>{let t=a.get(e);return t?{context:{spanId:t,traceId:r.spanContext().traceId,traceFlags:r.spanContext().traceFlags}}:[]})),o.filter(e=>e.parentId===n.id)))e(t,i,o,a,s);r.end(n.endTime)})}(t,o,e,n,this.ignoreSpanTypes)}getActiveContext(){return r.context.active()}runInChildSpan(e,t){if("string"==typeof e&&(e={name:e}),e.internal&&!o)return t();let n=this.tracerProvider.getTracer("prisma"),r=e.context??this.getActiveContext(),s=`prisma:client:${e.name}`;if(i(s,this.ignoreSpanTypes))return t();if(!1===e.active){let o=n.startSpan(s,e,r);return a(o,t(o,r))}return n.startActiveSpan(s,e,e=>a(e,t(e,r)))}}},371495,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128).SDK_VERSION;n.MODULE_NAME="@prisma/client",n.NAME="@sentry/instrumentation-prisma",n.SUPPORTED_MODULE_VERSIONS=[">=5.0.0"],n.VERSION=r},178532,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(879226),i=e.r(443540),s=e.r(371495);class l extends o.InstrumentationBase{constructor(e={}){super(s.NAME,s.VERSION,e)}setTracerProvider(e){this.tracerProvider=e}init(){return[new o.InstrumentationNodeModuleDefinition(s.MODULE_NAME,s.SUPPORTED_MODULE_VERSIONS)]}enable(){let e=this._config;a.setGlobalTracingHelper(new i.ActiveTracingHelper({tracerProvider:this.tracerProvider??r.trace.getTracerProvider(),ignoreSpanTypes:e.ignoreSpanTypes??[]}))}disable(){a.clearGlobalTracingHelper()}isEnabled(){return void 0!==a.getGlobalTracingHelper()}}n.PrismaInstrumentation=l},558386,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(9597),i=e.r(178532),s="Prisma";function l(){let e=globalThis.PRISMA_INSTRUMENTATION;return e&&"object"==typeof e&&"helper"in e?e.helper:void 0}class u extends i.PrismaInstrumentation{constructor(e){super(e?.instrumentationConfig)}enable(){super.enable();let e=l();e&&"object"==typeof e&&"dispatchEngineSpans"in e&&(e.createEngineSpan=e=>{let t=r.trace.getTracer("prismaV5Compatibility"),n=t._idGenerator;if(!n)return void o.consoleSandbox(()=>{console.warn("[Sentry] Could not find _idGenerator on tracer, skipping Prisma v5 compatibility - some Prisma spans may be missing!")});try{e.spans.forEach(e=>{var o;let a=(o=e.kind,"client"===o?r.SpanKind.CLIENT:r.SpanKind.INTERNAL),i=e.parent_span_id,s=e.span_id,l=e.trace_id,u=e.links?.map(e=>({context:{traceId:e.trace_id,spanId:e.span_id,traceFlags:r.TraceFlags.SAMPLED}})),c=r.trace.setSpanContext(r.context.active(),{traceId:l,spanId:i,traceFlags:r.TraceFlags.SAMPLED});r.context.with(c,()=>{t._idGenerator={generateTraceId:()=>l,generateSpanId:()=>s},t.startSpan(e.name,{kind:a,links:u,startTime:e.start_time,attributes:e.attributes}).end(e.end_time),t._idGenerator=n})})}finally{t._idGenerator=n}})}}let c=a.generateInstrumentOnce(s,e=>new u(e)),p=o.defineIntegration(e=>({name:s,setupOnce(){c(e)},setup(e){l()&&e.on("spanStart",e=>{let t=o.spanToJSON(e);t.description?.startsWith("prisma:")&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.prisma"),("prisma:engine:db_query"===t.description||"prisma:client:db_query"===t.description)&&t.data["db.query.text"]&&e.updateName(t.data["db.query.text"]),"prisma:engine:db_query"!==t.description||t.data["db.system"]||e.setAttribute("db.system","prisma")})}}));n.instrumentPrisma=c,n.prismaIntegration=p},979382,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=Symbol("hapi-handler-patched"),o=new Set(["onPreAuth","onCredentials","onPostAuth","onPreHandler","onPostHandler","onPreResponse","onRequest"]);n.HapiComponentName="@hapi/hapi",n.HapiLayerType={ROUTER:"router",PLUGIN:"plugin",EXT:"server.ext"},n.HapiLifecycleMethodNames=o,n.handlerPatched=r},380908,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_HTTP_METHOD="http.method"},457422,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).HAPI_TYPE="hapi.type",r.PLUGIN_NAME="hapi.plugin.name",r.EXT_TYPE="server.ext.type",r);n.AttributeNames=o},781566,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(380908),a=e.r(979382),i=e.r(457422),s=e.r(777884),l=e=>"string"==typeof e&&a.HapiLifecycleMethodNames.has(e);n.getExtMetadata=(e,t,n)=>{let r=`ext - ${e}`;return(n&&"method"!==n&&(r=`ext - ${e} - ${n}`),t)?{attributes:{[i.AttributeNames.EXT_TYPE]:e,[i.AttributeNames.HAPI_TYPE]:a.HapiLayerType.EXT,[i.AttributeNames.PLUGIN_NAME]:t},name:`${t}: ${r}`}:{attributes:{[i.AttributeNames.EXT_TYPE]:e,[i.AttributeNames.HAPI_TYPE]:a.HapiLayerType.EXT},name:r}},n.getPluginFromInput=e=>"plugin"in e?"plugin"in e.plugin?e.plugin.plugin:e.plugin:e,n.getPluginName=function(e){return e.name?e.name:e.pkg.name},n.getRouteMetadata=(e,t,n)=>{let l,u={[r.ATTR_HTTP_ROUTE]:e.path};return t&s.SemconvStability.OLD&&(u[o.ATTR_HTTP_METHOD]=e.method),t&s.SemconvStability.STABLE&&(u[r.ATTR_HTTP_REQUEST_METHOD]=e.method),n?(u[i.AttributeNames.HAPI_TYPE]=a.HapiLayerType.PLUGIN,u[i.AttributeNames.PLUGIN_NAME]=n,l=`${n}: route - ${e.path}`):(u[i.AttributeNames.HAPI_TYPE]=a.HapiLayerType.ROUTER,l=`route - ${e.path}`),{attributes:u,name:l}},n.isDirectExtInput=e=>Array.isArray(e)&&e.length<=3&&l(e[0])&&"function"==typeof e[1],n.isLifecycleExtEventObj=e=>{let t=e?.type;return void 0!==t&&l(t)},n.isLifecycleExtType=l,n.isPatchableExtMethod=e=>!Array.isArray(e)},600781,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(469432),a=e.r(777884),i=e.r(513128),s=e.r(979382),l=e.r(781566);class u extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-hapi",i.SDK_VERSION,e),this._semconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return new a.InstrumentationNodeModuleDefinition(s.HapiComponentName,[">=17.0.0 <22"],e=>{let t="Module"===e[Symbol.toStringTag]?e.default:e;return a.isWrapped(t.server)||this._wrap(t,"server",this._getServerPatch.bind(this)),a.isWrapped(t.Server)||this._wrap(t,"Server",this._getServerPatch.bind(this)),t},e=>{let t="Module"===e[Symbol.toStringTag]?e.default:e;this._massUnwrap([t],["server","Server"])})}_getServerPatch(e){let t=this,n=this;return function(r){let o=e.apply(this,[r]);return n._wrap(o,"route",e=>t._getServerRoutePatch.bind(t)(e)),n._wrap(o,"ext",e=>t._getServerExtPatch.bind(t)(e)),n._wrap(o,"register",t._getServerRegisterPatch.bind(t)),o}}_getServerRegisterPatch(e){let t=this;return function(n,r){if(Array.isArray(n))for(let e of n){let n=l.getPluginFromInput(e);t._wrapRegisterHandler(n)}else{let e=l.getPluginFromInput(n);t._wrapRegisterHandler(e)}return e.apply(this,[n,r])}}_getServerExtPatch(e,t){let n=this;return function(...r){if(Array.isArray(r[0])){let e=r[0];for(let r=0;r<e.length;r++){let o=e[r];if(l.isLifecycleExtType(o.type)){let a=n._wrapExtMethods(o.method,o.type,t);o.method=a,e[r]=o}}}else if(l.isDirectExtInput(r)){let o=r[1],a=n._wrapExtMethods(o,r[0],t);return e.apply(this,[r[0],a,r[2]])}else if(l.isLifecycleExtEventObj(r[0])){let o=r[0],a=n._wrapExtMethods(o.method,o.type,t);return o.method=a,e.call(this,o)}return e.apply(this,r)}}_getServerRoutePatch(e,t){let n=this;return function(r){if(Array.isArray(r))for(let e=0;e<r.length;e++){let o=n._wrapRouteHandler.call(n,r[e],t);r[e]=o}else r=n._wrapRouteHandler.call(n,r,t);return e.apply(this,[r])}}_wrapRegisterHandler(e){let t=this,n=l.getPluginName(e),r=e.register,o=this;e.register=function(e,a){return o._wrap(e,"route",e=>t._getServerRoutePatch.bind(t)(e,n)),o._wrap(e,"ext",e=>t._getServerExtPatch.bind(t)(e,n)),r.call(this,e,a)}}_wrapExtMethods(e,t,n){let o=this;if(e instanceof Array)for(let n=0;n<e.length;n++)e[n]=o._wrapExtMethods(e[n],t);else if(l.isPatchableExtMethod(e))return!0===e[s.handlerPatched]?e:(e[s.handlerPatched]=!0,async function(...a){if(void 0===r.trace.getSpan(r.context.active()))return await e.apply(this,a);let i=l.getExtMetadata(t,n,e.name),s=o.tracer.startSpan(i.name,{attributes:i.attributes});try{return await r.context.with(r.trace.setSpan(r.context.active(),s),e,void 0,...a)}catch(e){throw s.recordException(e),s.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}),e}finally{s.end()}});return e}_wrapRouteHandler(e,t){let n=this;if(!0===e[s.handlerPatched])return e;e[s.handlerPatched]=!0;let a=a=>async function(...i){if(void 0===r.trace.getSpan(r.context.active()))return await a.call(this,...i);o.setHttpServerSpanRouteAttribute(e.path);let s=l.getRouteMetadata(e,n._semconvStability,t),u=n.tracer.startSpan(s.name,{attributes:s.attributes});try{return await r.context.with(r.trace.setSpan(r.context.active(),u),()=>a.call(this,...i))}catch(e){throw u.recordException(e),u.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}),e}finally{u.end()}};if("function"==typeof e.handler)e.handler=a(e.handler);else if("function"==typeof e.options){let t=e.options;e.options=function(e){let n=t(e);return"function"==typeof n.handler&&(n.handler=a(n.handler)),n}}else"function"==typeof e.options?.handler&&(e.options.handler=a(e.options.handler));return e}}n.HapiInstrumentation=u},72752,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(600781),o=e.r(513128),a=e.r(9597),i=e.r(23602),s="Hapi",l=a.generateInstrumentOnce(s,()=>new r.HapiInstrumentation),u=o.defineIntegration(()=>({name:s,setupOnce(){l()}})),c={name:"SentryHapiErrorPlugin",version:o.SDK_VERSION,register:async function(e){e.events.on({name:"request",channels:["error"]},(e,t)=>{var n;if(o.getIsolationScope()!==o.getDefaultIsolationScope()){let t=e.route;t.path&&o.getIsolationScope().setTransactionName(`${t.method.toUpperCase()} ${t.path}`)}else i.DEBUG_BUILD&&o.debug.warn("Isolation scope is still the default isolation scope - skipping setting transactionName");t&&"object"==typeof t&&"error"in t&&t.error&&(n=t.error,o.captureException(n,{mechanism:{type:"auto.function.hapi",handled:!1}}))})}};async function p(e){await e.register(c);let t=o.getClient();t&&t.on("spanStart",e=>{var t;let n,r;t=e,r=(n=o.spanToJSON(t).data)["hapi.type"],!n[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&r&&t.setAttributes({[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.hapi",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.hapi`})}),a.ensureIsWrapped(e.register,"hapi")}n.hapiErrorPlugin=c,n.hapiIntegration=u,n.instrumentHapi=l,n.setupHapiErrorHandler=p},873538,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.AttributeNames={HONO_TYPE:"hono.type",HONO_NAME:"hono.name"},n.HonoTypes={MIDDLEWARE:"middleware",REQUEST_HANDLER:"request_handler"}},596209,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(513128),i=e.r(873538);class s extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-hono","0.0.1",e)}init(){return[new o.InstrumentationNodeModuleDefinition("hono",[">=4.0.0 <5"],e=>this._patch(e))]}_patch(e){let t=this;class n extends e.Hono{constructor(...e){super(...e),t._wrap(this,"get",t._patchHandler()),t._wrap(this,"post",t._patchHandler()),t._wrap(this,"put",t._patchHandler()),t._wrap(this,"delete",t._patchHandler()),t._wrap(this,"options",t._patchHandler()),t._wrap(this,"patch",t._patchHandler()),t._wrap(this,"all",t._patchHandler()),t._wrap(this,"on",t._patchOnHandler()),t._wrap(this,"use",t._patchMiddlewareHandler())}}try{e.Hono=n}catch{return{...e,Hono:n}}return e}_patchHandler(){let e=this;return function(t){return function(...n){if("string"==typeof n[0]){let r=n[0];if(1===n.length)return t.apply(this,[r]);let o=n.slice(1);return t.apply(this,[r,...o.map(t=>e._wrapHandler(t))])}return t.apply(this,n.map(t=>e._wrapHandler(t)))}}}_patchOnHandler(){let e=this;return function(t){return function(...n){let r=n.slice(2);return t.apply(this,[...n.slice(0,2),...r.map(t=>e._wrapHandler(t))])}}}_patchMiddlewareHandler(){let e=this;return function(t){return function(...n){if("string"==typeof n[0]){let r=n[0];if(1===n.length)return t.apply(this,[r]);let o=n.slice(1);return t.apply(this,[r,...o.map(t=>e._wrapHandler(t))])}return t.apply(this,n.map(t=>e._wrapHandler(t)))}}}_wrapHandler(e){let t=this;return function(n,o){if(!t.isEnabled())return e.apply(this,[n,o]);let s=n.req.path,l=t.tracer.startSpan(s);return r.context.with(r.trace.setSpan(r.context.active(),l),()=>t._safeExecute(()=>{let r=e.apply(this,[n,o]);if(a.isThenable(r))return r.then(n=>{let r=t._determineHandlerType(n);return l.setAttributes({[i.AttributeNames.HONO_TYPE]:r,[i.AttributeNames.HONO_NAME]:r===i.HonoTypes.REQUEST_HANDLER?s:e.name||"anonymous"}),t.getConfig().responseHook?.(l),n});{let n=t._determineHandlerType(r);return l.setAttributes({[i.AttributeNames.HONO_TYPE]:n,[i.AttributeNames.HONO_NAME]:n===i.HonoTypes.REQUEST_HANDLER?s:e.name||"anonymous"}),t.getConfig().responseHook?.(l),r}},()=>l.end(),e=>{t._handleError(l,e),l.end()}))}}_safeExecute(e,t,n){try{let r=e();return a.isThenable(r)?r.then(()=>t(),e=>n(e)):t(),r}catch(e){throw n(e),e}}_determineHandlerType(e){return void 0===e?i.HonoTypes.MIDDLEWARE:i.HonoTypes.REQUEST_HANDLER}_handleError(e,t){t instanceof Error&&(e.setStatus({code:r.SpanStatusCode.ERROR,message:t.message}),e.recordException(t))}}n.HonoInstrumentation=s},769116,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(513128),a=e.r(9597),i=e.r(23602),s=e.r(873538),l=e.r(596209),u="Hono",c=a.generateInstrumentOnce(u,()=>new l.HonoInstrumentation({responseHook:e=>{!function(e){let t=o.spanToJSON(e).data,n=t[s.AttributeNames.HONO_TYPE];if(t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!n)return;e.setAttributes({[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.hono",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${n}.hono`});let a=t[s.AttributeNames.HONO_NAME];if("string"==typeof a&&e.updateName(a),o.getIsolationScope()===o.getDefaultIsolationScope()){i.DEBUG_BUILD&&o.debug.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let l=t[r.ATTR_HTTP_ROUTE],u=t[r.ATTR_HTTP_REQUEST_METHOD];"string"==typeof l&&"string"==typeof u&&o.getIsolationScope().setTransactionName(`${u} ${l}`)}(e)}})),p=o.defineIntegration(()=>({name:u,setupOnce(){c()}}));n.honoIntegration=p,n.instrumentHono=c,n.setupHonoErrorHandler=function(e,t){e.use(async function(e,t){let n=o.httpRequestToRequestData(e.req);o.getIsolationScope().setSDKProcessingMetadata({normalizedRequest:n}),await t()}),e.use(async function(e,n){await n(),(t?.shouldHandleError||function(e){return e.res.status>=500})(e)&&(e.res.sentry=o.captureException(e.error,{mechanism:{type:"auto.middleware.hono",handled:!1}}))}),a.ensureIsWrapped(e.use,"hono")}},584141,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).ROUTER="router",r.MIDDLEWARE="middleware",r);n.KoaLayerType=o},458760,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).KOA_TYPE="koa.type",r.KOA_NAME="koa.name",r);n.AttributeNames=o},323483,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(584141),o=e.r(458760),a=e.r(216835);n.getMiddlewareMetadata=(e,t,n,i)=>n?{attributes:{[o.AttributeNames.KOA_NAME]:i?.toString(),[o.AttributeNames.KOA_TYPE]:r.KoaLayerType.ROUTER,[a.ATTR_HTTP_ROUTE]:i?.toString()},name:e._matchedRouteName||`router - ${i}`}:{attributes:{[o.AttributeNames.KOA_NAME]:t.name??"middleware",[o.AttributeNames.KOA_TYPE]:r.KoaLayerType.MIDDLEWARE},name:`middleware - ${t.name}`},n.isLayerIgnored=(e,t)=>!!(Array.isArray(t?.ignoreLayersType)&&t?.ignoreLayersType?.includes(e))},589339,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.kLayerPatched=Symbol("koa-layer-patched")},494578,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(584141),i=e.r(513128),s=e.r(323483),l=e.r(469432),u=e.r(589339);class c extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-koa",i.SDK_VERSION,e)}init(){return new o.InstrumentationNodeModuleDefinition("koa",[">=2.0.0 <4"],e=>{let t="Module"===e[Symbol.toStringTag]?e.default:e;return null==t?t:(o.isWrapped(t.prototype.use)&&this._unwrap(t.prototype,"use"),this._wrap(t.prototype,"use",this._getKoaUsePatch.bind(this)),e)},e=>{let t="Module"===e[Symbol.toStringTag]?e.default:e;o.isWrapped(t.prototype.use)&&this._unwrap(t.prototype,"use")})}_getKoaUsePatch(e){let t=this;return function(n){let r;return r=n.router?t._patchRouterDispatch(n):t._patchLayer(n,!1),e.apply(this,[r])}}_patchRouterDispatch(e){r.diag.debug("Patching @koa/router dispatch");let t=e.router;for(let e of t?.stack??[]){let t=e.path,n=e.stack;for(let e=0;e<n.length;e++){let r=n[e];n[e]=this._patchLayer(r,!0,t)}}return e}_patchLayer(e,t,n){let i=t?a.KoaLayerType.ROUTER:a.KoaLayerType.MIDDLEWARE;return!0===e[u.kLayerPatched]||s.isLayerIgnored(i,this.getConfig())?e:"GeneratorFunction"===e.constructor.name||"AsyncGeneratorFunction"===e.constructor.name?(r.diag.debug("ignoring generator-based Koa middleware layer"),e):(e[u.kLayerPatched]=!0,r.diag.debug("patching Koa middleware layer"),async(a,u)=>{if(void 0===r.trace.getSpan(r.context.active()))return e(a,u);let c=s.getMiddlewareMetadata(a,e,t,n),p=this.tracer.startSpan(c.name,{attributes:c.attributes});a._matchedRoute&&l.setHttpServerSpanRouteAttribute(a._matchedRoute.toString());let{requestHook:_}=this.getConfig();_&&o.safeExecuteInTheMiddle(()=>_(p,{context:a,middlewareLayer:e,layerType:i}),e=>{e&&r.diag.error("koa instrumentation: request hook failed",e)},!0);let T=r.trace.setSpan(r.context.active(),p);return r.context.with(T,async()=>{try{return await e(a,u)}catch(e){throw p.recordException(e),e}finally{p.end()}})})}}n.KoaInstrumentation=c},812826,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(494578),o=e.r(216835),a=e.r(513128),i=e.r(9597),s=e.r(23602),l=i.generateInstrumentOnce("Koa",r.KoaInstrumentation,(e={})=>({ignoreLayersType:e.ignoreLayersType,requestHook(e,t){i.addOriginToSpan(e,"auto.http.otel.koa");let n=a.spanToJSON(e).data,r=n["koa.type"];r&&e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_OP,`${r}.koa`);let l=n["koa.name"];if("string"==typeof l&&e.updateName(l||"< unknown >"),a.getIsolationScope()===a.getDefaultIsolationScope()){s.DEBUG_BUILD&&a.debug.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let u=n[o.ATTR_HTTP_ROUTE],c=t.context?.request?.method?.toUpperCase()||"GET";u&&a.getIsolationScope().setTransactionName(`${c} ${u}`)}})),u=a.defineIntegration((e={})=>({name:"Koa",setupOnce(){l(e)}}));n.instrumentKoa=l,n.koaIntegration=u,n.setupKoaErrorHandler=e=>{e.use(async(e,t)=>{try{await t()}catch(e){throw a.captureException(e,{mechanism:{handled:!1,type:"auto.middleware.koa"}}),e}}),i.ensureIsWrapped(e.use,"koa")}},443025,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o,a,i=((r=i||{}).CONNECT_TYPE="connect.type",r.CONNECT_NAME="connect.name",r),s=((o=s||{}).MIDDLEWARE="middleware",o.REQUEST_HANDLER="request_handler",o),l=((a=l||{}).MIDDLEWARE="middleware",a.REQUEST_HANDLER="request handler",a);n.AttributeNames=i,n.ConnectNames=l,n.ConnectTypes=s},244531,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n._LAYERS_STORE_PROPERTY=Symbol("opentelemetry.instrumentation-connect.request-route-stack")},346652,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(244531);n.addNewStackLayer=e=>{!1===Array.isArray(e[o._LAYERS_STORE_PROPERTY])&&Object.defineProperty(e,o._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),e[o._LAYERS_STORE_PROPERTY].push("/");let t=e[o._LAYERS_STORE_PROPERTY].length;return()=>{t===e[o._LAYERS_STORE_PROPERTY].length?e[o._LAYERS_STORE_PROPERTY].pop():r.diag.warn("Connect: Trying to pop the stack multiple time")}},n.generateRoute=e=>e[o._LAYERS_STORE_PROPERTY].reduce((e,t)=>e.replace(/\/+$/,"")+t),n.replaceCurrentStackRoute=(e,t)=>{t&&e[o._LAYERS_STORE_PROPERTY].splice(-1,1,t)}},790750,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(443025),o=e.r(513128),a=e.r(469432),i=e.r(777884),s=e.r(216835),l=e.r(346652),u="anonymous";class c extends i.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-connect",o.SDK_VERSION,e)}init(){return[new i.InstrumentationNodeModuleDefinition("connect",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_patchApp(e){i.isWrapped(e.use)||this._wrap(e,"use",this._patchUse.bind(this)),i.isWrapped(e.handle)||this._wrap(e,"handle",this._patchHandle.bind(this))}_patchConstructor(e){let t=this;return function(...n){let r=e.apply(this,n);return t._patchApp(r),r}}_patchNext(e,t){return function(n){let r=e.apply(this,[n]);return t(),r}}_startSpan(e,t){let n,o,a;e?(n=r.ConnectTypes.REQUEST_HANDLER,a=r.ConnectNames.REQUEST_HANDLER,o=e):(n=r.ConnectTypes.MIDDLEWARE,a=r.ConnectNames.MIDDLEWARE,o=t.name||u);let i=`${a} - ${o}`,l={attributes:{[s.ATTR_HTTP_ROUTE]:e.length>0?e:"/",[r.AttributeNames.CONNECT_TYPE]:n,[r.AttributeNames.CONNECT_NAME]:o}};return this.tracer.startSpan(i,l)}_patchMiddleware(e,t){let n=this,r=4===t.length;function o(){if(!n.isEnabled())return t.apply(this,arguments);let[o,i,s]=r?[1,2,3]:[0,1,2],c=arguments[o],p=arguments[i],_=arguments[s];l.replaceCurrentStackRoute(c,e),e&&a.setHttpServerSpanRouteAttribute(l.generateRoute(c));let T="";T=e?`request handler - ${e}`:`middleware - ${t.name||u}`;let S=n._startSpan(e,t);n._diag.debug("start span",T);let E=!1;function d(){E?n._diag.debug(`span ${S.name} - already finished`):(E=!0,n._diag.debug(`finishing span ${S.name}`),S.end()),p.removeListener("close",d)}return p.addListener("close",d),arguments[s]=n._patchNext(_,d),t.apply(this,arguments)}return Object.defineProperty(o,"length",{value:t.length,writable:!1,configurable:!0}),o}_patchUse(e){let t=this;return function(...n){let r=n[n.length-1],o=n[n.length-2]||"";return n[n.length-1]=t._patchMiddleware(o,r),e.apply(this,n)}}_patchHandle(e){let t=this;return function(){let[n,r]=[0,2],o=arguments[n],a=arguments[r],i=l.addNewStackLayer(o);return"function"==typeof a&&(arguments[r]=t._patchOut(a,i)),e.apply(this,arguments)}}_patchOut(e,t){return function(...n){return t(),Reflect.apply(e,this,n)}}}n.ANONYMOUS_NAME=u,n.ConnectInstrumentation=c},171038,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(790750),o=e.r(513128),a=e.r(9597),i="Connect",s=a.generateInstrumentOnce(i,()=>new r.ConnectInstrumentation);function l(e,t,n,r){o.captureException(e,{mechanism:{handled:!1,type:"auto.middleware.connect"}}),r(e)}n.connectIntegration=o.defineIntegration(()=>({name:i,setupOnce(){s()}})),n.instrumentConnect=s,n.setupConnectErrorHandler=e=>{e.use(l);let t=o.getClient();t&&t.on("spanStart",e=>{!function(e){let t=o.spanToJSON(e).data,n=t["connect.type"];if(t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!n)return;e.setAttributes({[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.connect",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${n}.connect`});let r=t["connect.name"];"string"==typeof r&&e.updateName(r)}(e)}),a.ensureIsWrapped(e.use,"connect")}},969323,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.MODULE_NAME="knex",n.SUPPORTED_VERSIONS=[">=0.22.0 <4",">=0.10.0 <0.18.0",">=0.19.0 <0.22.0",">=0.18.0 <0.19.0"]},701406,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_NAME="db.name",n.ATTR_DB_OPERATION="db.operation",n.ATTR_DB_SQL_TABLE="db.sql.table",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.ATTR_NET_TRANSPORT="net.transport",n.DB_SYSTEM_NAME_VALUE_SQLITE="sqlite"},259966,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=new Map([["sqlite3",e.r(701406).DB_SYSTEM_NAME_VALUE_SQLITE],["pg",r.DB_SYSTEM_NAME_VALUE_POSTGRESQL]]),a=e=>{let t=e?._single?.table;return"object"==typeof t?a(t):t};n.extractDatabaseFromConnectionString=e=>{if(e)try{return new URL(e).pathname?.replace(/^\//,"")||void 0}catch{return}},n.extractHostFromConnectionString=e=>{if(e)try{return new URL(e).hostname||void 0}catch{return}},n.extractPortFromConnectionString=e=>{if(e)try{let t=new URL(e).port;return t?parseInt(t,10):void 0}catch{return}},n.extractTableName=a,n.getFormatter=e=>{if(e){if(e.client){if(e.client._formatQuery)return e.client._formatQuery.bind(e.client);else if(e.client.SqlString)return e.client.SqlString.format.bind(e.client.SqlString)}if(e.builder)return e.builder.toString.bind(e.builder)}return()=>"<noop formatter>"},n.getName=(e,t,n)=>t?n?`${t} ${e}.${n}`:`${t} ${e}`:e,n.limitLength=(e,t)=>"string"==typeof e&&"number"==typeof t&&0<t&&t<e.length?e.substring(0,t)+"..":e,n.mapSystem=e=>o.get(e)||e,n.otelExceptionFromKnexError=function(e,t){return e&&e instanceof Error?{message:t,code:e.code,stack:e.stack,name:e.name}:e}},512599,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(969323),i=e.r(777884),s=e.r(102335),l=e.r(259966),u=e.r(216835),c=e.r(701406),p=Symbol("opentelemetry.instrumentation-knex.context"),_={maxQueryLength:1022,requireParentSpan:!1};class T extends i.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-knex",o.SDK_VERSION,{..._,...e}),this._semconvStability=i.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({..._,...e})}init(){let e=new i.InstrumentationNodeModuleDefinition(a.MODULE_NAME,a.SUPPORTED_VERSIONS);return e.files.push(this.getClientNodeModuleFileInstrumentation("src"),this.getClientNodeModuleFileInstrumentation("lib"),this.getRunnerNodeModuleFileInstrumentation("src"),this.getRunnerNodeModuleFileInstrumentation("lib"),this.getRunnerNodeModuleFileInstrumentation("lib/execution")),e}getRunnerNodeModuleFileInstrumentation(e){return new s.InstrumentationNodeModuleFile(`knex/${e}/runner.js`,a.SUPPORTED_VERSIONS,(e,t)=>(this.ensureWrapped(e.prototype,"query",this.createQueryWrapper(t)),e),(e,t)=>(this._unwrap(e.prototype,"query"),e))}getClientNodeModuleFileInstrumentation(e){return new s.InstrumentationNodeModuleFile(`knex/${e}/client.js`,a.SUPPORTED_VERSIONS,e=>(this.ensureWrapped(e.prototype,"queryBuilder",this.storeContext.bind(this)),this.ensureWrapped(e.prototype,"schemaBuilder",this.storeContext.bind(this)),this.ensureWrapped(e.prototype,"raw",this.storeContext.bind(this)),e),e=>(this._unwrap(e.prototype,"queryBuilder"),this._unwrap(e.prototype,"schemaBuilder"),this._unwrap(e.prototype,"raw"),e))}createQueryWrapper(e){let t=this;return function(n){return function(o){let a=this.client.config,s=l.extractTableName(this.builder),_=o?.method,T=a?.connection?.connectionString,S=a?.connection?.filename||a?.connection?.database||l.extractDatabaseFromConnectionString(T),{maxQueryLength:E}=t.getConfig(),d={"knex.version":e},g=a?.connection?.filename===":memory:"?"inproc":void 0;if(t._semconvStability&i.SemconvStability.OLD&&Object.assign(d,{[c.ATTR_DB_SYSTEM]:l.mapSystem(this.client.driverName),[c.ATTR_DB_SQL_TABLE]:s,[c.ATTR_DB_OPERATION]:_,[c.ATTR_DB_USER]:a?.connection?.user,[c.ATTR_DB_NAME]:S,[c.ATTR_NET_PEER_NAME]:a?.connection?.host??l.extractHostFromConnectionString(T),[c.ATTR_NET_PEER_PORT]:a?.connection?.port??l.extractPortFromConnectionString(T),[c.ATTR_NET_TRANSPORT]:g}),t._semconvStability&i.SemconvStability.STABLE&&Object.assign(d,{[u.ATTR_DB_SYSTEM_NAME]:l.mapSystem(this.client.driverName),[u.ATTR_DB_COLLECTION_NAME]:s,[u.ATTR_DB_OPERATION_NAME]:_,[u.ATTR_DB_NAMESPACE]:S,[u.ATTR_SERVER_ADDRESS]:a?.connection?.host??l.extractHostFromConnectionString(T),[u.ATTR_SERVER_PORT]:a?.connection?.port??l.extractPortFromConnectionString(T)}),E){let e=l.limitLength(o?.sql,E);t._semconvStability&i.SemconvStability.STABLE&&(d[u.ATTR_DB_QUERY_TEXT]=e),t._semconvStability&i.SemconvStability.OLD&&(d[c.ATTR_DB_STATEMENT]=e)}let A=this.builder[p]||r.context.active(),m=r.trace.getSpan(A),R=m&&r.trace.isSpanContextValid(m.spanContext());if(t._config.requireParentSpan&&!R)return n.bind(this)(...arguments);let h=t.tracer.startSpan(l.getName(S,_,s),{kind:r.SpanKind.CLIENT,attributes:d},A),f=r.trace.setSpan(r.context.active(),h);return r.context.with(f,n,this,...arguments).then(e=>(h.end(),e)).catch(e=>{let t=l.getFormatter(this)(o.sql,o.bindings||[]),n=e.message.replace(t+" - ",""),a=l.otelExceptionFromKnexError(e,n);throw h.recordException(a),h.setStatus({code:r.SpanStatusCode.ERROR,message:n}),h.end(),e})}}}storeContext(e){return function(){let t=e.apply(this,arguments);return Object.defineProperty(t,p,{value:r.context.active()}),t}}ensureWrapped(e,t,n){i.isWrapped(e[t])&&this._unwrap(e,t),this._wrap(e,t,n)}}n.KnexInstrumentation=T},141085,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(512599),o=e.r(513128),a=e.r(9597),i="Knex",s=a.generateInstrumentOnce(i,()=>new r.KnexInstrumentation({requireParentSpan:!0})),l=o.defineIntegration(()=>{let e;return{name:i,setupOnce(){let t=s();e=a.instrumentWhenWrapped(t)},setup(t){e?.(()=>t.on("spanStart",e=>{let{data:t}=o.spanToJSON(e);"knex.version"in t&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.knex")}))}}});n.instrumentKnex=s,n.knexIntegration=l},584067,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_DB_NAME="db.name",n.ATTR_DB_SQL_TABLE="db.sql.table",n.ATTR_DB_STATEMENT="db.statement",n.ATTR_DB_SYSTEM="db.system",n.ATTR_DB_USER="db.user",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port",n.DB_SYSTEM_VALUE_MSSQL="mssql"},783105,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.getSpanName=function(e,t,n,r){return"execBulkLoad"===e&&r&&t?`${e} ${r} ${t}`:"callProcedure"===e?t?`${e} ${n} ${t}`:`${e} ${n}`:t?`${e} ${t}`:`${e}`},n.once=e=>{let t=!1;return(...n)=>{if(!t)return t=!0,e(...n)}}},506129,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(427699),a=e.r(777884),i=e.r(216835),s=e.r(584067),l=e.r(783105),u=e.r(513128),c=Symbol("opentelemetry.instrumentation-tedious.current-database"),p=Symbol("opentelemetry.instrumentation-tedious.context-info-injected"),_=["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"];function T(e){Object.defineProperty(this,c,{value:e,writable:!0})}let S=class e extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-tedious",u.SDK_VERSION,e),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN),this._dbSemconvStability=a.semconvStabilityFromStr("database",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}init(){return[new a.InstrumentationNodeModuleDefinition(e.COMPONENT,[">=1.11.0 <20"],e=>{let t=e.Connection.prototype;for(let n of _)a.isWrapped(t[n])&&this._unwrap(t,n),this._wrap(t,n,this._patchQuery(n,e));return a.isWrapped(t.connect)&&this._unwrap(t,"connect"),this._wrap(t,"connect",this._patchConnect),e},e=>{if(void 0===e)return;let t=e.Connection.prototype;for(let e of _)this._unwrap(t,e);this._unwrap(t,"connect")})]}_patchConnect(e){return function(){return T.call(this,this.config?.options?.database),this.removeListener("databaseChange",T),this.on("databaseChange",T),this.once("end",()=>{this.removeListener("databaseChange",T)}),e.apply(this,arguments)}}_buildTraceparent(e){let t=e.spanContext();return`00-${t.traceId}-${t.spanId}-0${Number(t.traceFlags||r.TraceFlags.NONE).toString(16)}`}_injectContextInfo(e,t,n){return new Promise(r=>{try{let o=new t.Request("set context_info @opentelemetry_traceparent",e=>{r()});Object.defineProperty(o,p,{value:!0});let a=Buffer.from(n,"utf8");o.addParameter("opentelemetry_traceparent",t.TYPES.VarBinary,a,{length:a.length}),e.execSql(o)}catch{r()}})}_shouldInjectFor(e){return"execSql"===e||"execSqlBatch"===e||"callProcedure"===e||"execute"===e}_patchQuery(e,t){return n=>{let u=this;function _(_){if(_?.[p])return n.apply(this,arguments);if(!(_ instanceof o.EventEmitter))return u._diag.warn(`Unexpected invocation of patched ${e} method. Span not recorded`),n.apply(this,arguments);let T=0,S=0,E=()=>S++,d=()=>T++,g=this[c],A="sp_prepare"===_.sqlTextOrProcedure&&_.parametersByName?.stmt?.value?_.parametersByName.stmt.value:_.sqlTextOrProcedure,m={};u._dbSemconvStability&a.SemconvStability.OLD&&(m[s.ATTR_DB_SYSTEM]=s.DB_SYSTEM_VALUE_MSSQL,m[s.ATTR_DB_NAME]=g,m[s.ATTR_DB_USER]=this.config?.userName??this.config?.authentication?.options?.userName,m[s.ATTR_DB_STATEMENT]=A,m[s.ATTR_DB_SQL_TABLE]=_.table),u._dbSemconvStability&a.SemconvStability.STABLE&&(m[i.ATTR_DB_NAMESPACE]=g,m[i.ATTR_DB_SYSTEM_NAME]=i.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER,m[i.ATTR_DB_QUERY_TEXT]=A,m[i.ATTR_DB_COLLECTION_NAME]=_.table),u._netSemconvStability&a.SemconvStability.OLD&&(m[s.ATTR_NET_PEER_NAME]=this.config?.server,m[s.ATTR_NET_PEER_PORT]=this.config?.options?.port),u._netSemconvStability&a.SemconvStability.STABLE&&(m[i.ATTR_SERVER_ADDRESS]=this.config?.server,m[i.ATTR_SERVER_PORT]=this.config?.options?.port);let R=u.tracer.startSpan(l.getSpanName(e,g,A,_.table),{kind:r.SpanKind.CLIENT,attributes:m}),h=l.once(e=>{_.removeListener("done",E),_.removeListener("doneInProc",E),_.removeListener("doneProc",d),_.removeListener("error",h),this.removeListener("end",h),R.setAttribute("tedious.procedure_count",T),R.setAttribute("tedious.statement_count",S),e&&R.setStatus({code:r.SpanStatusCode.ERROR,message:e.message}),R.end()});_.on("done",E),_.on("doneInProc",E),_.on("doneProc",d),_.once("error",h),this.on("end",h),"function"==typeof _.callback?u._wrap(_,"callback",u._patchCallbackQuery(h)):u._diag.error("Expected request.callback to be a function");let f=()=>r.context.with(r.trace.setSpan(r.context.active(),R),n,this,...arguments);if(!(u.getConfig().enableTraceContextPropagation&&u._shouldInjectFor(e)))return f();let N=u._buildTraceparent(R);u._injectContextInfo(this,t,N).finally(f)}return Object.defineProperty(_,"length",{value:n.length,writable:!1}),_}}_patchCallbackQuery(e){return t=>function(n,r,o){return e(n),t.apply(this,arguments)}}};S.COMPONENT="tedious",n.INJECTED_CTX=p,n.TediousInstrumentation=S},265892,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(506129),o=e.r(513128),a=e.r(9597),i=new Set(["callProcedure","execSql","execSqlBatch","execBulkLoad","prepare","execute"]),s="Tedious",l=a.generateInstrumentOnce(s,()=>new r.TediousInstrumentation({})),u=o.defineIntegration(()=>{let e;return{name:s,setupOnce(){let t=l();e=a.instrumentWhenWrapped(t)},setup(t){e?.(()=>t.on("spanStart",e=>{let{description:t,data:n}=o.spanToJSON(e);if(!t||"mssql"!==n["db.system"])return;let r=t.split(" ")[0]||"";i.has(r)&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.tedious")}))}}});n.instrumentTedious=l,n.tediousIntegration=u},124809,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(513128),i="generic-pool";class s extends o.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-generic-pool",a.SDK_VERSION,e),this._isDisabled=!1}init(){return[new o.InstrumentationNodeModuleDefinition(i,[">=3.0.0 <4"],e=>{let t=e.Pool;return o.isWrapped(t.prototype.acquire)&&this._unwrap(t.prototype,"acquire"),this._wrap(t.prototype,"acquire",this._acquirePatcher.bind(this)),e},e=>{let t=e.Pool;return this._unwrap(t.prototype,"acquire"),e}),new o.InstrumentationNodeModuleDefinition(i,[">=2.4.0 <3"],e=>{let t=e.Pool;return o.isWrapped(t.prototype.acquire)&&this._unwrap(t.prototype,"acquire"),this._wrap(t.prototype,"acquire",this._acquireWithCallbacksPatcher.bind(this)),e},e=>{let t=e.Pool;return this._unwrap(t.prototype,"acquire"),e}),new o.InstrumentationNodeModuleDefinition(i,[">=2.0.0 <2.4"],e=>(this._isDisabled=!1,o.isWrapped(e.Pool)&&this._unwrap(e,"Pool"),this._wrap(e,"Pool",this._poolWrapper.bind(this)),e),e=>(this._isDisabled=!0,e))]}_acquirePatcher(e){let t=this;return function(...n){let o=r.context.active(),a=t.tracer.startSpan("generic-pool.acquire",{},o);return r.context.with(r.trace.setSpan(o,a),()=>e.call(this,...n).then(e=>(a.end(),e),e=>{throw a.recordException(e),a.end(),e}))}}_poolWrapper(e){let t=this;return function(){let n=e.apply(this,arguments);return t._wrap(n,"acquire",t._acquireWithCallbacksPatcher.bind(t)),n}}_acquireWithCallbacksPatcher(e){let t=this;return function(n,o){if(t._isDisabled)return e.call(this,n,o);let a=r.context.active(),i=t.tracer.startSpan("generic-pool.acquire",{},a);return r.context.with(r.trace.setSpan(a,i),()=>{e.call(this,(e,t)=>{if(i.end(),n)return n(e,t)},o)})}}}n.GenericPoolInstrumentation=s},132873,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(124809),o=e.r(513128),a=e.r(9597),i="GenericPool",s=a.generateInstrumentOnce(i,()=>new r.GenericPoolInstrumentation({}));n.genericPoolIntegration=o.defineIntegration(()=>{let e;return{name:i,setupOnce(){let t=s();e=a.instrumentWhenWrapped(t)},setup(t){e?.(()=>t.on("spanStart",e=>{let t=o.spanToJSON(e).description;("generic-pool.aquire"===t||"generic-pool.acquire"===t)&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.generic_pool")}))}}}),n.instrumentGenericPool=s},393066,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(92405),a=e.r(513128),i="dataloader";function s(e){return"Module"===e[Symbol.toStringTag]?e.default:e}class l extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-dataloader",a.SDK_VERSION,e)}init(){return[new r.InstrumentationNodeModuleDefinition(i,[">=2.0.0 <3"],e=>{let t=s(e);return this._patchLoad(t.prototype),this._patchLoadMany(t.prototype),this._patchPrime(t.prototype),this._patchClear(t.prototype),this._patchClearAll(t.prototype),this._getPatchedConstructor(t)},e=>{let t=s(e);["load","loadMany","prime","clear","clearAll"].forEach(e=>{r.isWrapped(t.prototype[e])&&this._unwrap(t.prototype,e)})})]}shouldCreateSpans(){let e=this.getConfig();return void 0!==o.trace.getSpan(o.context.active())||!e.requireParentSpan}getSpanName(e,t){let n=e.name;return null==n?`${i}.${t}`:`${i}.${t} ${n}`}_wrapBatchLoadFn(e){let t=this;return function(...n){if(!t.isEnabled()||!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"batch"),{links:this._batch?.spanLinks},r);return o.context.with(o.trace.setSpan(r,a),()=>e.apply(this,n).then(e=>(a.end(),e)).catch(e=>{throw a.recordException(e),a.setStatus({code:o.SpanStatusCode.ERROR,message:e.message}),a.end(),e}))}}_getPatchedConstructor(e){let t=this,n=e.prototype;if(!t.isEnabled())return e;function o(...n){return"function"==typeof n[0]&&(r.isWrapped(n[0])&&t._unwrap(n,0),n[0]=t._wrapBatchLoadFn(n[0])),e.apply(this,n)}return o.prototype=n,o}_patchLoad(e){r.isWrapped(e.load)&&this._unwrap(e,"load"),this._wrap(e,"load",this._getPatchedLoad.bind(this))}_getPatchedLoad(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"load"),{kind:o.SpanKind.CLIENT},r);return o.context.with(o.trace.setSpan(r,a),()=>{let t=e.call(this,...n).then(e=>(a.end(),e)).catch(e=>{throw a.recordException(e),a.setStatus({code:o.SpanStatusCode.ERROR,message:e.message}),a.end(),e});return this._batch&&(this._batch.spanLinks||(this._batch.spanLinks=[]),this._batch.spanLinks.push({context:a.spanContext()})),t})}}_patchLoadMany(e){r.isWrapped(e.loadMany)&&this._unwrap(e,"loadMany"),this._wrap(e,"loadMany",this._getPatchedLoadMany.bind(this))}_getPatchedLoadMany(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"loadMany"),{kind:o.SpanKind.CLIENT},r);return o.context.with(o.trace.setSpan(r,a),()=>e.call(this,...n).then(e=>(a.end(),e)))}}_patchPrime(e){r.isWrapped(e.prime)&&this._unwrap(e,"prime"),this._wrap(e,"prime",this._getPatchedPrime.bind(this))}_getPatchedPrime(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"prime"),{kind:o.SpanKind.CLIENT},r),i=o.context.with(o.trace.setSpan(r,a),()=>e.call(this,...n));return a.end(),i}}_patchClear(e){r.isWrapped(e.clear)&&this._unwrap(e,"clear"),this._wrap(e,"clear",this._getPatchedClear.bind(this))}_getPatchedClear(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"clear"),{kind:o.SpanKind.CLIENT},r),i=o.context.with(o.trace.setSpan(r,a),()=>e.call(this,...n));return a.end(),i}}_patchClearAll(e){r.isWrapped(e.clearAll)&&this._unwrap(e,"clearAll"),this._wrap(e,"clearAll",this._getPatchedClearAll.bind(this))}_getPatchedClearAll(e){let t=this;return function(...n){if(!t.shouldCreateSpans())return e.call(this,...n);let r=o.context.active(),a=t.tracer.startSpan(t.getSpanName(this,"clearAll"),{kind:o.SpanKind.CLIENT},r),i=o.context.with(o.trace.setSpan(r,a),()=>e.call(this,...n));return a.end(),i}}}n.DataloaderInstrumentation=l},7298,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(393066),o=e.r(513128),a=e.r(9597),i="Dataloader",s=a.generateInstrumentOnce(i,()=>new r.DataloaderInstrumentation({requireParentSpan:!0}));n.dataloaderIntegration=o.defineIntegration(()=>{let e;return{name:i,setupOnce(){let t=s();e=a.instrumentWhenWrapped(t)},setup(t){e?.(()=>{t.on("spanStart",e=>{let t=o.spanToJSON(e);t.description?.startsWith("dataloader")&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.dataloader"),("dataloader.load"===t.description||"dataloader.loadMany"===t.description||"dataloader.batch"===t.description)&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_OP,"cache.get")})})}}}),n.instrumentDataloader=s},352654,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_MESSAGING_OPERATION="messaging.operation",n.ATTR_MESSAGING_SYSTEM="messaging.system",n.ATTR_NET_PEER_NAME="net.peer.name",n.ATTR_NET_PEER_PORT="net.peer.port"},562553,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_MESSAGING_CONVERSATION_ID="messaging.conversation_id",n.ATTR_MESSAGING_DESTINATION="messaging.destination",n.ATTR_MESSAGING_DESTINATION_KIND="messaging.destination_kind",n.ATTR_MESSAGING_PROTOCOL="messaging.protocol",n.ATTR_MESSAGING_PROTOCOL_VERSION="messaging.protocol_version",n.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY="messaging.rabbitmq.routing_key",n.ATTR_MESSAGING_URL="messaging.url",n.MESSAGING_DESTINATION_KIND_VALUE_TOPIC="topic",n.MESSAGING_OPERATION_VALUE_PROCESS="process",n.OLD_ATTR_MESSAGING_MESSAGE_ID="messaging.message_id"},746802,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});var r,o=((r=o||{}).AutoAck="auto ack",r.Ack="ack",r.AckAll="ackAll",r.Reject="reject",r.Nack="nack",r.NackAll="nackAll",r.ChannelClosed="channel closed",r.ChannelError="channel error",r.InstrumentationTimeout="instrumentation timeout",r);n.DEFAULT_CONFIG={consumeTimeoutMs:6e4,useLinksForConsume:!1},n.EndOperation=o},939304,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(216835),i=e.r(352654),s=e.r(562553),l=Symbol("opentelemetry.amqplib.message.stored-span"),u=Symbol("opentelemetry.amqplib.channel.spans-not-ended"),c=Symbol("opentelemetry.amqplib.channel.consumer-timeout-timer"),p=Symbol("opentelemetry.amqplib.connection.attributes"),_=r.createContextKey("opentelemetry.amqplib.channel.is-confirm-channel"),T=(e,t)=>e||("AMQP"===t?5672:5671),S=e=>{let t=e||"amqp";return(t.endsWith(":")?t.substring(0,t.length-1):t).toUpperCase()},E=(e,t,n,o)=>n?{[t]:n}:(r.diag.error(`amqplib instrumentation: could not extract connection attribute ${o} from user supplied url`,{url:e}),{});n.CHANNEL_CONSUME_TIMEOUT_TIMER=c,n.CHANNEL_SPANS_NOT_ENDED=u,n.CONNECTION_ATTRIBUTES=p,n.MESSAGE_STORED_SPAN=l,n.getConnectionAttributesFromServer=e=>{let t=e.serverProperties.product?.toLowerCase?.();return t?{[i.ATTR_MESSAGING_SYSTEM]:t}:{}},n.getConnectionAttributesFromUrl=(e,t)=>{let n={[s.ATTR_MESSAGING_PROTOCOL_VERSION]:"0.9.1"};if("object"==typeof(e=e||"amqp://localhost")){let r=e,l=S(r?.protocol);Object.assign(n,{...E(e,s.ATTR_MESSAGING_PROTOCOL,l,"protocol")});let u=r?.hostname||"localhost";t&o.SemconvStability.OLD&&Object.assign(n,{...E(e,i.ATTR_NET_PEER_NAME,u,"hostname")}),t&o.SemconvStability.STABLE&&Object.assign(n,{...E(e,a.ATTR_SERVER_ADDRESS,u,"hostname")});let c=T(r.port,l);t&o.SemconvStability.OLD&&Object.assign(n,E(e,i.ATTR_NET_PEER_PORT,c,"port")),t&o.SemconvStability.STABLE&&Object.assign(n,E(e,a.ATTR_SERVER_PORT,c,"port"))}else{let l=e.replace(/:[^:@/]*@/,":***@");n[s.ATTR_MESSAGING_URL]=l;try{let e=new URL(l),r=S(e.protocol);Object.assign(n,{...E(l,s.ATTR_MESSAGING_PROTOCOL,r,"protocol")});let u=e.hostname||"localhost";t&o.SemconvStability.OLD&&Object.assign(n,{...E(l,i.ATTR_NET_PEER_NAME,u,"hostname")}),t&o.SemconvStability.STABLE&&Object.assign(n,{...E(l,a.ATTR_SERVER_ADDRESS,u,"hostname")});let c=T(e.port?parseInt(e.port):void 0,r);t&o.SemconvStability.OLD&&Object.assign(n,E(l,i.ATTR_NET_PEER_PORT,c,"port")),t&o.SemconvStability.STABLE&&Object.assign(n,E(l,a.ATTR_SERVER_PORT,c,"port"))}catch(e){r.diag.error("amqplib instrumentation: error while extracting connection details from connection url",{censoredUrl:l,err:e})}}return n},n.isConfirmChannelTracing=e=>!0===e.getValue(_),n.markConfirmChannelTracing=e=>e.setValue(_,!0),n.normalizeExchange=e=>""!==e?e:"<default>",n.unmarkConfirmChannelTracing=e=>e.deleteValue(_)},101305,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(513128),a=e.r(777884),i=e.r(102335),s=e.r(352654),l=e.r(562553),u=e.r(746802),c=e.r(939304),p=[">=0.5.5 <2"];class _ extends a.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-amqplib",o.SDK_VERSION,{...u.DEFAULT_CONFIG,...e}),this._setSemconvStabilityFromEnv()}_setSemconvStabilityFromEnv(){this._netSemconvStability=a.semconvStabilityFromStr("http",process.env.OTEL_SEMCONV_STABILITY_OPT_IN)}setConfig(e={}){super.setConfig({...u.DEFAULT_CONFIG,...e})}init(){let e=new i.InstrumentationNodeModuleFile("amqplib/lib/channel_model.js",p,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),t=new i.InstrumentationNodeModuleFile("amqplib/lib/callback_model.js",p,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),n=new i.InstrumentationNodeModuleFile("amqplib/lib/connect.js",p,this.patchConnect.bind(this),this.unpatchConnect.bind(this));return new a.InstrumentationNodeModuleDefinition("amqplib",p,void 0,void 0,[e,n,t])}patchConnect(e){return e=this.unpatchConnect(e),a.isWrapped(e.connect)||this._wrap(e,"connect",this.getConnectPatch.bind(this)),e}unpatchConnect(e){return a.isWrapped(e.connect)&&this._unwrap(e,"connect"),e}patchChannelModel(e,t){return a.isWrapped(e.Channel.prototype.publish)||this._wrap(e.Channel.prototype,"publish",this.getPublishPatch.bind(this,t)),a.isWrapped(e.Channel.prototype.consume)||this._wrap(e.Channel.prototype,"consume",this.getConsumePatch.bind(this,t)),a.isWrapped(e.Channel.prototype.ack)||this._wrap(e.Channel.prototype,"ack",this.getAckPatch.bind(this,!1,u.EndOperation.Ack)),a.isWrapped(e.Channel.prototype.nack)||this._wrap(e.Channel.prototype,"nack",this.getAckPatch.bind(this,!0,u.EndOperation.Nack)),a.isWrapped(e.Channel.prototype.reject)||this._wrap(e.Channel.prototype,"reject",this.getAckPatch.bind(this,!0,u.EndOperation.Reject)),a.isWrapped(e.Channel.prototype.ackAll)||this._wrap(e.Channel.prototype,"ackAll",this.getAckAllPatch.bind(this,!1,u.EndOperation.AckAll)),a.isWrapped(e.Channel.prototype.nackAll)||this._wrap(e.Channel.prototype,"nackAll",this.getAckAllPatch.bind(this,!0,u.EndOperation.NackAll)),a.isWrapped(e.Channel.prototype.emit)||this._wrap(e.Channel.prototype,"emit",this.getChannelEmitPatch.bind(this)),a.isWrapped(e.ConfirmChannel.prototype.publish)||this._wrap(e.ConfirmChannel.prototype,"publish",this.getConfirmedPublishPatch.bind(this,t)),e}unpatchChannelModel(e){return a.isWrapped(e.Channel.prototype.publish)&&this._unwrap(e.Channel.prototype,"publish"),a.isWrapped(e.Channel.prototype.consume)&&this._unwrap(e.Channel.prototype,"consume"),a.isWrapped(e.Channel.prototype.ack)&&this._unwrap(e.Channel.prototype,"ack"),a.isWrapped(e.Channel.prototype.nack)&&this._unwrap(e.Channel.prototype,"nack"),a.isWrapped(e.Channel.prototype.reject)&&this._unwrap(e.Channel.prototype,"reject"),a.isWrapped(e.Channel.prototype.ackAll)&&this._unwrap(e.Channel.prototype,"ackAll"),a.isWrapped(e.Channel.prototype.nackAll)&&this._unwrap(e.Channel.prototype,"nackAll"),a.isWrapped(e.Channel.prototype.emit)&&this._unwrap(e.Channel.prototype,"emit"),a.isWrapped(e.ConfirmChannel.prototype.publish)&&this._unwrap(e.ConfirmChannel.prototype,"publish"),e}getConnectPatch(e){let t=this;return function(n,r,o){return e.call(this,n,r,function(e,r){if(null==e){let e=c.getConnectionAttributesFromUrl(n,t._netSemconvStability),o=c.getConnectionAttributesFromServer(r);r[c.CONNECTION_ATTRIBUTES]={...e,...o}}o.apply(this,arguments)})}}getChannelEmitPatch(e){let t=this;return function(n){if("close"===n){t.endAllSpansOnChannel(this,!0,u.EndOperation.ChannelClosed,void 0);let e=this[c.CHANNEL_CONSUME_TIMEOUT_TIMER];e&&clearInterval(e),this[c.CHANNEL_CONSUME_TIMEOUT_TIMER]=void 0}else"error"===n&&t.endAllSpansOnChannel(this,!0,u.EndOperation.ChannelError,void 0);return e.apply(this,arguments)}}getAckAllPatch(e,t,n){let r=this;return function(o){return r.endAllSpansOnChannel(this,e,t,o),n.apply(this,arguments)}}getAckPatch(e,t,n){let r=this;return function(o,a,i){let s=t===u.EndOperation.Reject?a:i,l=this[c.CHANNEL_SPANS_NOT_ENDED]??[],p=l.findIndex(e=>e.msg===o);if(p<0)r.endConsumerSpan(o,e,t,s);else if(t!==u.EndOperation.Reject&&a){for(let n=0;n<=p;n++)r.endConsumerSpan(l[n].msg,e,t,s);l.splice(0,p+1)}else r.endConsumerSpan(o,e,t,s),l.splice(p,1);return n.apply(this,arguments)}}getConsumePatch(e,t){let n=this;return function(i,p,_){let T=this;if(!Object.prototype.hasOwnProperty.call(T,c.CHANNEL_SPANS_NOT_ENDED)){let{consumeTimeoutMs:e}=n.getConfig();if(e){let t=setInterval(()=>{n.checkConsumeTimeoutOnChannel(T)},e);t.unref(),T[c.CHANNEL_CONSUME_TIMEOUT_TIMER]=t}T[c.CHANNEL_SPANS_NOT_ENDED]=[]}return arguments[1]=function(t){let S;if(!t)return p.call(this,t);let E=t.properties.headers??{},d=r.propagation.extract(r.ROOT_CONTEXT,E),g=t.fields?.exchange;if(n._config.useLinksForConsume){let e=d?r.trace.getSpan(d)?.spanContext():void 0;d=void 0,e&&(S=[{context:e}])}let A=n.tracer.startSpan(`${i} process`,{kind:r.SpanKind.CONSUMER,attributes:{...T?.connection?.[c.CONNECTION_ATTRIBUTES],[l.ATTR_MESSAGING_DESTINATION]:g,[l.ATTR_MESSAGING_DESTINATION_KIND]:l.MESSAGING_DESTINATION_KIND_VALUE_TOPIC,[l.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY]:t.fields?.routingKey,[s.ATTR_MESSAGING_OPERATION]:l.MESSAGING_OPERATION_VALUE_PROCESS,[l.OLD_ATTR_MESSAGING_MESSAGE_ID]:t?.properties.messageId,[l.ATTR_MESSAGING_CONVERSATION_ID]:t?.properties.correlationId},links:S},d),{consumeHook:m}=n.getConfig();m&&a.safeExecuteInTheMiddle(()=>m(A,{moduleVersion:e,msg:t}),e=>{e&&r.diag.error("amqplib instrumentation: consumerHook error",e)},!0),_?.noAck||(T[c.CHANNEL_SPANS_NOT_ENDED].push({msg:t,timeOfConsume:o.timestampInSeconds()}),t[c.MESSAGE_STORED_SPAN]=A);let R=d||r.ROOT_CONTEXT;r.context.with(r.trace.setSpan(R,A),()=>{p.call(this,t)}),_?.noAck&&(n.callConsumeEndHook(A,t,!1,u.EndOperation.AutoAck),A.end())},t.apply(this,arguments)}}getConfirmedPublishPatch(e,t){let n=this;return function(o,i,s,l,u){let{span:p,modifiedOptions:_}=n.createPublishSpan(n,o,i,this,l),{publishHook:T}=n.getConfig();T&&a.safeExecuteInTheMiddle(()=>T(p,{moduleVersion:e,exchange:o,routingKey:i,content:s,options:_,isConfirmChannel:!0}),e=>{e&&r.diag.error("amqplib instrumentation: publishHook error",e)},!0);let S=c.markConfirmChannelTracing(r.context.active()),E=[...arguments];return E[3]=_,E[4]=r.context.bind(c.unmarkConfirmChannelTracing(r.trace.setSpan(S,p)),function(t,c){try{u?.call(this,t,c)}finally{let{publishConfirmHook:u}=n.getConfig();u&&a.safeExecuteInTheMiddle(()=>u(p,{moduleVersion:e,exchange:o,routingKey:i,content:s,options:l,isConfirmChannel:!0,confirmError:t}),e=>{e&&r.diag.error("amqplib instrumentation: publishConfirmHook error",e)},!0),t&&p.setStatus({code:r.SpanStatusCode.ERROR,message:"message confirmation has been nack'ed"}),p.end()}}),r.context.with(S,t.bind(this,...E))}}getPublishPatch(e,t){let n=this;return function(o,i,s,l){if(c.isConfirmChannelTracing(r.context.active()))return t.apply(this,arguments);{let{span:u,modifiedOptions:c}=n.createPublishSpan(n,o,i,this,l),{publishHook:p}=n.getConfig();p&&a.safeExecuteInTheMiddle(()=>p(u,{moduleVersion:e,exchange:o,routingKey:i,content:s,options:c,isConfirmChannel:!1}),e=>{e&&r.diag.error("amqplib instrumentation: publishHook error",e)},!0);let _=[...arguments];_[3]=c;let T=t.apply(this,_);return u.end(),T}}}createPublishSpan(e,t,n,o,a){let i=c.normalizeExchange(t),s=e.tracer.startSpan(`publish ${i}`,{kind:r.SpanKind.PRODUCER,attributes:{...o.connection[c.CONNECTION_ATTRIBUTES],[l.ATTR_MESSAGING_DESTINATION]:t,[l.ATTR_MESSAGING_DESTINATION_KIND]:l.MESSAGING_DESTINATION_KIND_VALUE_TOPIC,[l.ATTR_MESSAGING_RABBITMQ_ROUTING_KEY]:n,[l.OLD_ATTR_MESSAGING_MESSAGE_ID]:a?.messageId,[l.ATTR_MESSAGING_CONVERSATION_ID]:a?.correlationId}}),u=a??{};return u.headers=u.headers??{},r.propagation.inject(r.trace.setSpan(r.context.active(),s),u.headers),{span:s,modifiedOptions:u}}endConsumerSpan(e,t,n,o){let a=e[c.MESSAGE_STORED_SPAN];a&&(!1!==t&&a.setStatus({code:r.SpanStatusCode.ERROR,message:n!==u.EndOperation.ChannelClosed&&n!==u.EndOperation.ChannelError?`${n} called on message${!0===o?" with requeue":!1===o?" without requeue":""}`:n}),this.callConsumeEndHook(a,e,t,n),a.end(),e[c.MESSAGE_STORED_SPAN]=void 0)}endAllSpansOnChannel(e,t,n,r){(e[c.CHANNEL_SPANS_NOT_ENDED]??[]).forEach(e=>{this.endConsumerSpan(e.msg,t,n,r)}),e[c.CHANNEL_SPANS_NOT_ENDED]=[]}callConsumeEndHook(e,t,n,o){let{consumeEndHook:i}=this.getConfig();i&&a.safeExecuteInTheMiddle(()=>i(e,{msg:t,rejected:n,endOperation:o}),e=>{e&&r.diag.error("amqplib instrumentation: consumerEndHook error",e)},!0)}checkConsumeTimeoutOnChannel(e){let t,n=o.timestampInSeconds(),r=e[c.CHANNEL_SPANS_NOT_ENDED]??[],{consumeTimeoutMs:a}=this.getConfig();for(t=0;t<r.length;t++){let e=r[t];if((n-e.timeOfConsume)*1e3<a)break;this.endConsumerSpan(e.msg,null,u.EndOperation.InstrumentationTimeout,!0)}r.splice(0,t)}}n.AmqplibInstrumentation=_},92562,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(101305),o=e.r(513128),a=e.r(9597),i="Amqplib",s={consumeEndHook:e=>{a.addOriginToSpan(e,"auto.amqplib.otel.consumer")},publishHook:e=>{a.addOriginToSpan(e,"auto.amqplib.otel.publisher")}},l=a.generateInstrumentOnce(i,()=>new r.AmqplibInstrumentation(s));n.amqplibIntegration=o.defineIntegration(()=>({name:i,setupOnce(){l()}})),n.instrumentAmqplib=l},673939,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.INTEGRATION_NAME="VercelAI"},864629,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(513128),a=e.r(673939),i=[">=3.0.0 <7"],s=["generateText","streamText","generateObject","streamObject","embed","embedMany","rerank"];function l(e){"object"==typeof e&&null!==e&&"content"in e&&Array.isArray(e.content)&&(function(e){for(let t of e){if(!("object"==typeof t&&null!==t&&"type"in t&&"error"in t&&"toolName"in t&&"toolCallId"in t&&"tool-error"===t.type&&t.error instanceof Error))continue;let e=o._INTERNAL_getSpanContextForToolCallId(t.toolCallId);e?o.withScope(n=>{n.setContext("trace",{trace_id:e.traceId,span_id:e.spanId}),n.setTag("vercel.ai.tool.name",t.toolName),n.setTag("vercel.ai.tool.callId",t.toolCallId),n.setLevel("error"),o.captureException(t.error,{mechanism:{type:"auto.vercelai.otel",handled:!1}})}):o.withScope(e=>{e.setTag("vercel.ai.tool.name",t.toolName),e.setTag("vercel.ai.tool.callId",t.toolCallId),e.setLevel("error"),o.captureException(t.error,{mechanism:{type:"auto.vercelai.otel",handled:!1}})})}}(e.content),u(e.content))}function u(e){for(let t of e)"object"==typeof t&&null!==t&&"toolCallId"in t&&"string"==typeof t.toolCallId&&o._INTERNAL_cleanupToolCallSpanContext(t.toolCallId)}function c(e,t,n,r,o){return{recordInputs:e?.recordInputs!==void 0?e.recordInputs:void 0!==t.recordInputs?t.recordInputs:!0===n||r,recordOutputs:e?.recordOutputs!==void 0?e.recordOutputs:void 0!==t.recordOutputs?t.recordOutputs:!0===n||o}}class p extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-vercel-ai",o.SDK_VERSION,e),this._isPatched=!1,this._callbacks=[]}init(){return new r.InstrumentationNodeModuleDefinition("ai",i,this._patch.bind(this))}callWhenPatched(e){this._isPatched?e():this._callbacks.push(e)}_patch(e){this._isPatched=!0,this._callbacks.forEach(e=>e()),this._callbacks=[];let t=e=>new Proxy(e,{apply:(e,t,n)=>{let r=n[0].experimental_telemetry||{},i=r.isEnabled,s=o.getClient(),u=s?.getIntegrationByName(a.INTEGRATION_NAME),p=u?.options,_=u?s?.getDataCollectionOptions().genAI:void 0,{recordInputs:T,recordOutputs:S}=c(p,r,i,!!_?.inputs,!!_?.outputs);return n[0].experimental_telemetry={...r,isEnabled:void 0===i||i,recordInputs:T,recordOutputs:S},o.handleCallbackErrors(()=>Reflect.apply(e,t,n),e=>{e&&"object"==typeof e&&o.addNonEnumerableProperty(e,"_sentry_active_span",o.getActiveSpan())},()=>{},e=>{l(e)})}});if("[object Module]"===Object.prototype.toString.call(e)){for(let n of s)null!=e[n]&&(e[n]=t(e[n]));return e}{let n=s.reduce((n,r)=>(null!=e[r]&&(n[r]=t(e[r])),n),{});return{...e,...n}}}}n.SentryVercelAiInstrumentation=p,n.cleanupToolCallSpanContexts=u,n.determineRecordingSettings=c,n.processToolCallResults=l},601835,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(673939),i=e.r(864629),s=o.generateInstrumentOnce(a.INTEGRATION_NAME,()=>new i.SentryVercelAiInstrumentation({})),l=r.defineIntegration((e={})=>{let t;return{name:a.INTEGRATION_NAME,options:e,setupOnce(){t=s()},afterAllSetup(n){let o;e.force??(o=n.getIntegrationByName("Modules"),!!o?.getModules?.()?.ai)?r.addVercelAiProcessors(n):t?.callWhenPatched(()=>r.addVercelAiProcessors(n))}}});n.instrumentVercelAi=s,n.vercelAIIntegration=l},974010,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(513128),a=[">=4.0.0 <7"];class i extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-openai",o.SDK_VERSION,e)}init(){return new r.InstrumentationNodeModuleDefinition("openai",a,this._patch.bind(this))}_patch(e){let t=e;return t=this._patchClient(t,"OpenAI"),t=this._patchClient(t,"AzureOpenAI")}_patchClient(e,t){let n=e[t];if(!n)return e;let r=this.getConfig(),a=function(...e){if(o._INTERNAL_shouldSkipAiProviderWrapping(o.OPENAI_INTEGRATION_NAME))return Reflect.construct(n,e);let t=Reflect.construct(n,e);return o.instrumentOpenAiClient(t,r)};for(let e of(Object.setPrototypeOf(a,n),Object.setPrototypeOf(a.prototype,n.prototype),Object.getOwnPropertyNames(n)))if(!["length","name","prototype"].includes(e)){let t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(a,e,t)}try{e[t]=a}catch{Object.defineProperty(e,t,{value:a,writable:!0,configurable:!0,enumerable:!0})}if(e.default===n)try{e.default=a}catch{Object.defineProperty(e,"default",{value:a,writable:!0,configurable:!0,enumerable:!0})}return e}}n.SentryOpenAiInstrumentation=i},641639,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(974010),i=o.generateInstrumentOnce(r.OPENAI_INTEGRATION_NAME,e=>new a.SentryOpenAiInstrumentation(e)),s=r.defineIntegration((e={})=>({name:r.OPENAI_INTEGRATION_NAME,setupOnce(){i(e)}}));n.instrumentOpenAi=i,n.openAIIntegration=s},125482,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(513128),a=[">=0.19.2 <1.0.0"];class i extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-anthropic-ai",o.SDK_VERSION,e)}init(){return new r.InstrumentationNodeModuleDefinition("@anthropic-ai/sdk",a,this._patch.bind(this))}_patch(e){let t=e.Anthropic,n=this.getConfig(),r=function(...e){if(o._INTERNAL_shouldSkipAiProviderWrapping(o.ANTHROPIC_AI_INTEGRATION_NAME))return Reflect.construct(t,e);let r=Reflect.construct(t,e);return o.instrumentAnthropicAiClient(r,n)};for(let e of(Object.setPrototypeOf(r,t),Object.setPrototypeOf(r.prototype,t.prototype),Object.getOwnPropertyNames(t)))if(!["length","name","prototype"].includes(e)){let n=Object.getOwnPropertyDescriptor(t,e);n&&Object.defineProperty(r,e,n)}try{e.Anthropic=r}catch{Object.defineProperty(e,"Anthropic",{value:r,writable:!0,configurable:!0,enumerable:!0})}if(e.default===t)try{e.default=r}catch{Object.defineProperty(e,"default",{value:r,writable:!0,configurable:!0,enumerable:!0})}return e}}n.SentryAnthropicAiInstrumentation=i},154522,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(125482),i=o.generateInstrumentOnce(r.ANTHROPIC_AI_INTEGRATION_NAME,e=>new a.SentryAnthropicAiInstrumentation(e));n.anthropicAIIntegration=r.defineIntegration((e={})=>({name:r.ANTHROPIC_AI_INTEGRATION_NAME,options:e,setupOnce(){i(e)}})),n.instrumentAnthropicAi=i},89867,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(102335),a=e.r(513128),i=[">=0.10.0 <2"];class s extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-google-genai",a.SDK_VERSION,e)}init(){return new r.InstrumentationNodeModuleDefinition("@google/genai",i,e=>this._patch(e),e=>e,[new o.InstrumentationNodeModuleFile("@google/genai/dist/node/index.cjs",i,e=>this._patch(e),e=>e)])}_patch(e){let t=e.GoogleGenAI,n=this.getConfig();if("function"!=typeof t)return e;let r=function(...e){if(a._INTERNAL_shouldSkipAiProviderWrapping(a.GOOGLE_GENAI_INTEGRATION_NAME))return Reflect.construct(t,e);let r=Reflect.construct(t,e);return a.instrumentGoogleGenAIClient(r,n)};for(let e of(Object.setPrototypeOf(r,t),Object.setPrototypeOf(r.prototype,t.prototype),Object.getOwnPropertyNames(t)))if(!["length","name","prototype"].includes(e)){let n=Object.getOwnPropertyDescriptor(t,e);n&&Object.defineProperty(r,e,n)}return a.replaceExports(e,"GoogleGenAI",r),e}}n.SentryGoogleGenAiInstrumentation=s},993455,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(89867),i=o.generateInstrumentOnce(r.GOOGLE_GENAI_INTEGRATION_NAME,e=>new a.SentryGoogleGenAiInstrumentation(e));n.googleGenAIIntegration=r.defineIntegration((e={})=>({name:r.GOOGLE_GENAI_INTEGRATION_NAME,setupOnce(){i(e)}})),n.instrumentGoogleGenAI=i},887164,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(102335),a=e.r(513128),i=[">=0.1.0 <2.0.0"];class s extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-langchain",a.SDK_VERSION,e)}init(){let e=[];for(let t of["@langchain/anthropic","@langchain/openai","@langchain/google-genai","@langchain/mistralai","@langchain/google-vertexai","@langchain/groq"])e.push(new r.InstrumentationNodeModuleDefinition(t,i,this._patch.bind(this),e=>e,[new o.InstrumentationNodeModuleFile(`${t}/dist/index.cjs`,i,this._patch.bind(this),e=>e)]));return e.push(new r.InstrumentationNodeModuleDefinition("langchain",i,this._patch.bind(this),e=>e,[new o.InstrumentationNodeModuleFile("langchain/dist/chat_models/universal.cjs",i,this._patch.bind(this),e=>e)])),e}_patch(e){a._INTERNAL_skipAiProviderWrapping([a.OPENAI_INTEGRATION_NAME,a.ANTHROPIC_AI_INTEGRATION_NAME,a.GOOGLE_GENAI_INTEGRATION_NAME]);let t=this.getConfig(),n=a.createLangChainCallbackHandler(t);return this._patchRunnableMethods(e,n),this._patchEmbeddingsMethods(e,t),e}_patchRunnableMethods(e,t){let n=["ChatAnthropic","ChatOpenAI","ChatGoogleGenerativeAI","ChatMistralAI","ChatVertexAI","ChatGroq","ConfigurableModel"],r=Object.values(e.universal_exports??e).find(e=>"function"==typeof e&&n.includes(e.name));if(!r)return;let o=r.prototype;if(!o.__sentry_patched__)for(let e of(o.__sentry_patched__=!0,["invoke","stream","batch"])){let n=o[e];"function"==typeof n&&(o[e]=function(e,t){return new Proxy(e,{apply(e,n,r){let o=r[1];return(!o||"object"!=typeof o||Array.isArray(o))&&(o={},r[1]=o),o.callbacks=a._INTERNAL_mergeLangChainCallbackHandler(o.callbacks,t),Reflect.apply(e,n,r)}})}(n,t))}}_patchEmbeddingsMethods(e,t){for(let n of Object.values(e.universal_exports??e)){if("function"!=typeof n||!n.prototype)continue;let e=n.prototype;"function"==typeof e.embedQuery&&"function"==typeof e.embedDocuments&&(e.__sentry_patched__||(e.__sentry_patched__=!0,a.instrumentLangChainEmbeddings(e,t)))}}}n.SentryLangChainInstrumentation=s},421821,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(887164),i=o.generateInstrumentOnce(r.LANGCHAIN_INTEGRATION_NAME,e=>new a.SentryLangChainInstrumentation(e)),s=r.defineIntegration((e={})=>({name:r.LANGCHAIN_INTEGRATION_NAME,setupOnce(){i(e)}}));n.instrumentLangChain=i,n.langChainIntegration=s},158253,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(102335),a=e.r(513128),i=[">=0.0.0 <2.0.0"];class s extends r.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-langgraph",a.SDK_VERSION,e)}init(){return[new r.InstrumentationNodeModuleDefinition("@langchain/langgraph",i,this._patch.bind(this),e=>e,[new o.InstrumentationNodeModuleFile("@langchain/langgraph/dist/index.cjs",i,this._patch.bind(this),e=>e),new o.InstrumentationNodeModuleFile("@langchain/langgraph/dist/prebuilt/index.cjs",i,this._patch.bind(this),e=>e)]),new r.InstrumentationNodeModuleDefinition("@langchain/langgraph/prebuilt",i,this._patch.bind(this),e=>e,[new o.InstrumentationNodeModuleFile("@langchain/langgraph/dist/prebuilt/index.cjs",i,this._patch.bind(this),e=>e)])]}_patch(e){let t=a.getClient(),n=t?.getDataCollectionOptions().genAI,r={...this.getConfig(),recordInputs:this.getConfig().recordInputs??n?.inputs??!1,recordOutputs:this.getConfig().recordOutputs??n?.outputs??!1};if(e.StateGraph&&"function"==typeof e.StateGraph&&a.instrumentLangGraph(e.StateGraph.prototype,r),e.createReactAgent&&"function"==typeof e.createReactAgent){let t=e.createReactAgent;Object.defineProperty(e,"createReactAgent",{value:a.instrumentCreateReactAgent(t,r),writable:!0,enumerable:!0,configurable:!0})}return e}}n.SentryLangGraphInstrumentation=s},468252,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(158253),i=o.generateInstrumentOnce(r.LANGGRAPH_INTEGRATION_NAME,e=>new a.SentryLangGraphInstrumentation(e)),s=r.defineIntegration((e={})=>({name:r.LANGGRAPH_INTEGRATION_NAME,setupOnce(){i(e)}}));n.instrumentLangGraph=i,n.langGraphIntegration=s},238e3,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=r.defineIntegration(e=>(r.isBrowser()||r.consoleSandbox(()=>{console.warn("The launchDarklyIntegration() can only be used in the browser.")}),{name:"LaunchDarkly"}));n.buildLaunchDarklyFlagUsedHandlerShim=function(){return r.isBrowser()||r.consoleSandbox(()=>{console.warn("The buildLaunchDarklyFlagUsedHandler() can only be used in the browser.")}),{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:()=>null}},n.launchDarklyIntegrationShim=o},745498,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=r.defineIntegration(e=>(r.isBrowser()||r.consoleSandbox(()=>{console.warn("The openFeatureIntegration() can only be used in the browser.")}),{name:"OpenFeature"}));n.OpenFeatureIntegrationHookShim=class{constructor(){r.isBrowser()||r.consoleSandbox(()=>{console.warn("The OpenFeatureIntegrationHook can only be used in the browser.")})}after(){}error(){}},n.openFeatureIntegrationShim=o},373223,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.statsigIntegrationShim=r.defineIntegration(e=>(r.isBrowser()||r.consoleSandbox(()=>{console.warn("The statsigIntegration() can only be used in the browser.")}),{name:"Statsig"}))},982823,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.unleashIntegrationShim=r.defineIntegration(e=>(r.isBrowser()||r.consoleSandbox(()=>{console.warn("The unleashIntegration() can only be used in the browser.")}),{name:"Unleash"}))},180196,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.growthbookIntegrationShim=e.r(513128).growthbookIntegration},454258,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(761095),o=e.r(92405),a=e.r(777884),i=e.r(102335),s=e.r(216835);function l(e,t,n,r,o){var a,i,s,l,_,T,S,E;return u(e,n),t(e,"addDoc",(a=r,i=o,function(e){return function(t,n){let r=p(a,"addDoc",t);return i(r),c(r,()=>e(t,n))}})),t(e,"getDocs",(s=r,l=o,function(e){return function(t){let n=p(s,"getDocs",t);return l(n),c(n,()=>e(t))}})),t(e,"setDoc",(_=r,T=o,function(e){return function(t,n,r){let o=p(_,"setDoc",t.parent||t);return T(o),c(o,()=>void 0!==r?e(t,n,r):e(t,n))}})),t(e,"deleteDoc",(S=r,E=o,function(e){return function(t){let n=p(S,"deleteDoc",t.parent||t);return E(n),c(n,()=>e(t))}})),e}function u(e,t){for(let n of["addDoc","getDocs","setDoc","deleteDoc"])a.isWrapped(e[n])&&t(e,n);return e}function c(e,t){return o.context.with(o.trace.setSpan(o.context.active(),e),()=>a.safeExecuteInTheMiddle(()=>t(),t=>{t&&e.recordException(t),e.end()},!0))}function p(e,t,n){let r=e.startSpan(`${t} ${n.path}`,{kind:o.SpanKind.CLIENT});return function(e,t){let n=t.firestore.app,r=n.options,o=(t.firestore.toJSON()||{}).settings||{},a={[s.ATTR_DB_COLLECTION_NAME]:t.path,[s.ATTR_DB_NAMESPACE]:n.name,[s.ATTR_DB_SYSTEM_NAME]:"firebase.firestore","firebase.firestore.type":t.type,"firebase.firestore.options.projectId":r.projectId,"firebase.firestore.options.appId":r.appId,"firebase.firestore.options.messagingSenderId":r.messagingSenderId,"firebase.firestore.options.storageBucket":r.storageBucket},{address:i,port:l}=_(o);i&&(a[s.ATTR_SERVER_ADDRESS]=i),l&&(a[s.ATTR_SERVER_PORT]=l),e.setAttributes(a)}(r,n),r.setAttribute(s.ATTR_DB_OPERATION_NAME,t),r}function _(e){let t,n;if("string"==typeof e.host)if(e.host.startsWith("[")){if(e.host.endsWith("]"))t=e.host.replace(/^\[|\]$/g,"");else if(e.host.includes("]:")){let r=e.host.lastIndexOf(":");-1!==r&&(t=e.host.slice(1,r).replace(/^\[|\]$/g,""),n=e.host.slice(r+1))}}else if(r.isIPv6(e.host))t=e.host;else{let r=e.host.lastIndexOf(":");-1!==r?(t=e.host.slice(0,r),n=e.host.slice(r+1)):t=e.host}return{address:t,port:n?parseInt(n,10):void 0}}n.getPortAndAddress=_,n.patchFirestore=function(e,t,n,r,s){let c=()=>{},p=s.firestoreSpanCreationHook;"function"==typeof p&&(c=e=>{a.safeExecuteInTheMiddle(()=>p(e),e=>{e&&o.diag.error(e?.message)},!0)});let _=new a.InstrumentationNodeModuleDefinition("@firebase/firestore",t,t=>l(t,n,r,e,c));for(let o of["@firebase/firestore/dist/lite/index.node.cjs.js","@firebase/firestore/dist/lite/index.node.mjs.js","@firebase/firestore/dist/lite/index.rn.esm2017.js","@firebase/firestore/dist/lite/index.cjs.js"])_.files.push(new i.InstrumentationNodeModuleFile(o,t,t=>l(t,n,r,e,c),e=>u(e,r)));return _}},464435,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(777884),a=e.r(102335);function i(e,t,n){return function(o){return function(...a){let i="function"==typeof a[0]?a[0]:a[1],s="function"==typeof a[0]?void 0:a[0];if(!i)return o.call(this,...a);let l=async function(...o){let a=process.env.FUNCTION_TARGET||process.env.K_SERVICE||"unknown",s=e.startSpan(`firebase.function.${n}`,{kind:r.SpanKind.SERVER}),l={"faas.name":a,"faas.trigger":n,"faas.provider":"firebase"};return process.env.GCLOUD_PROJECT&&(l["cloud.project_id"]=process.env.GCLOUD_PROJECT),process.env.EVENTARC_CLOUD_EVENT_SOURCE&&(l["cloud.event_source"]=process.env.EVENTARC_CLOUD_EVENT_SOURCE),s.setAttributes(l),t?.requestHook?.(s),r.context.with(r.trace.setSpan(r.context.active(),s),async()=>{let e,n;try{n=await i.apply(this,o)}catch(t){e=t}if(t?.responseHook?.(s,e),e&&s.recordException(e),s.end(),e)throw await t?.errorHook?.(s,e),e;return n})};return s?o.call(this,s,l):o.call(this,l)}}}function s(e,t){for(let n of["onSchedule","onRequest","onCall","onObjectFinalized","onObjectArchived","onObjectDeleted","onObjectMetadataUpdated","onDocumentCreated","onDocumentUpdated","onDocumentDeleted","onDocumentWritten","onDocumentCreatedWithAuthContext","onDocumentUpdatedWithAuthContext","onDocumentDeletedWithAuthContext","onDocumentWrittenWithAuthContext"])o.isWrapped(e[n])&&t(e,n);return e}n.patchFunctions=function(e,t,n,l,u){let c=()=>{},p=()=>{},_=u.functions?.errorHook,T=u.functions?.requestHook,S=u.functions?.responseHook;"function"==typeof S&&(p=(e,t)=>{o.safeExecuteInTheMiddle(()=>S(e,t),e=>{e&&r.diag.error(e?.message)},!0)}),"function"==typeof T&&(c=e=>{o.safeExecuteInTheMiddle(()=>T(e),e=>{e&&r.diag.error(e?.message)},!0)});let E=new o.InstrumentationNodeModuleDefinition("firebase-functions",t);return[{name:"firebase-functions/lib/v2/providers/https.js",triggerType:"function"},{name:"firebase-functions/lib/v2/providers/firestore.js",triggerType:"firestore"},{name:"firebase-functions/lib/v2/providers/scheduler.js",triggerType:"scheduler"},{name:"firebase-functions/lib/v2/storage.js",triggerType:"storage"}].forEach(({name:r,triggerType:o})=>{E.files.push(new a.InstrumentationNodeModuleFile(r,t,t=>(function(e,t,n,r,o,a){switch(s(e,n),a){case"function":t(e,"onRequest",i(r,o,"http.request")),t(e,"onCall",i(r,o,"http.call"));break;case"firestore":t(e,"onDocumentCreated",i(r,o,"firestore.document.created")),t(e,"onDocumentUpdated",i(r,o,"firestore.document.updated")),t(e,"onDocumentDeleted",i(r,o,"firestore.document.deleted")),t(e,"onDocumentWritten",i(r,o,"firestore.document.written")),t(e,"onDocumentCreatedWithAuthContext",i(r,o,"firestore.document.created")),t(e,"onDocumentUpdatedWithAuthContext",i(r,o,"firestore.document.updated")),t(e,"onDocumentDeletedWithAuthContext",i(r,o,"firestore.document.deleted")),t(e,"onDocumentWrittenWithAuthContext",i(r,o,"firestore.document.written"));break;case"scheduler":t(e,"onSchedule",i(r,o,"scheduler.scheduled"));break;case"storage":t(e,"onObjectFinalized",i(r,o,"storage.object.finalized")),t(e,"onObjectArchived",i(r,o,"storage.object.archived")),t(e,"onObjectDeleted",i(r,o,"storage.object.deleted")),t(e,"onObjectMetadataUpdated",i(r,o,"storage.object.metadataUpdated"))}return e})(t,n,l,e,{requestHook:c,responseHook:p,errorHook:_},o),e=>s(e,l)))}),E},n.patchV2Functions=i},832977,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(777884),o=e.r(513128),a=e.r(454258),i=e.r(464435),s={},l=[">=3.0.0 <5"],u=[">=6.0.0 <7"];class c extends r.InstrumentationBase{constructor(e=s){super("@sentry/instrumentation-firebase",o.SDK_VERSION,e)}setConfig(e={}){super.setConfig({...s,...e})}init(){let e=[];return e.push(a.patchFirestore(this.tracer,l,this._wrap,this._unwrap,this.getConfig())),e.push(i.patchFunctions(this.tracer,u,this._wrap,this._unwrap,this.getConfig())),e}}n.FirebaseInstrumentation=c},400927,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(832977),i="Firebase",s={firestoreSpanCreationHook:e=>{o.addOriginToSpan(e,"auto.firebase.otel.firestore"),e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"db.query")},functions:{requestHook:e=>{o.addOriginToSpan(e,"auto.firebase.otel.functions"),e.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_OP,"http.request")},errorHook:async(e,t)=>{t&&(r.captureException(t,{mechanism:{type:"auto.firebase.otel.functions",handled:!1}}),await r.flush(2e3))}}},l=o.generateInstrumentOnce(i,()=>new a.FirebaseInstrumentation(s));n.firebaseIntegration=r.defineIntegration(()=>({name:i,setupOnce(){l()}})),n.instrumentFirebase=l},448036,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(833618),o=e.r(92562),a=e.r(154522),i=e.r(171038),s=e.r(803230),l=e.r(413873),u=e.r(400927),c=e.r(132873),p=e.r(993455),_=e.r(185789),T=e.r(72752),S=e.r(769116),E=e.r(155335),d=e.r(812826),g=e.r(421821),A=e.r(468252),m=e.r(934951),R=e.r(798926),h=e.r(526717),f=e.r(912988),N=e.r(600698),I=e.r(641639),y=e.r(575879),b=e.r(214177),O=e.r(558386),C=e.r(249659),M=e.r(265892),L=e.r(601835);n.getAutoPerformanceIntegrations=function(){return[s.expressIntegration(),l.fastifyIntegration(),_.graphqlIntegration(),S.honoIntegration(),R.mongoIntegration(),h.mongooseIntegration(),f.mysqlIntegration(),N.mysql2Integration(),C.redisIntegration(),y.postgresIntegration(),O.prismaIntegration(),T.hapiIntegration(),d.koaIntegration(),i.connectIntegration(),M.tediousIntegration(),c.genericPoolIntegration(),E.kafkaIntegration(),o.amqplibIntegration(),m.lruMemoizerIntegration(),g.langChainIntegration(),A.langGraphIntegration(),L.vercelAIIntegration(),I.openAIIntegration(),a.anthropicAIIntegration(),p.googleGenAIIntegration(),b.postgresJsIntegration(),u.firebaseIntegration()]},n.getOpenTelemetryInstrumentationToPreload=function(){return[r.instrumentSentryHttp,s.instrumentExpress,i.instrumentConnect,l.instrumentFastify,l.instrumentFastifyV3,T.instrumentHapi,S.instrumentHono,E.instrumentKafka,d.instrumentKoa,m.instrumentLruMemoizer,R.instrumentMongo,h.instrumentMongoose,f.instrumentMysql,N.instrumentMysql2,y.instrumentPostgres,T.instrumentHapi,_.instrumentGraphql,C.instrumentRedis,M.instrumentTedious,c.instrumentGenericPool,o.instrumentAmqplib,g.instrumentLangChain,L.instrumentVercelAi,I.instrumentOpenAi,b.instrumentPostgresJs,u.instrumentFirebase,a.instrumentAnthropicAi,p.instrumentGoogleGenAI,A.instrumentLangGraph]}},649564,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(523662),a=e.r(513128),i=e.r(9597),s=e.r(110516),l=e.r(23602),u=e.r(448036);function c(e,t={}){let n=new o.BasicTracerProvider({sampler:new s.SentrySampler(e),resource:s.getSentryResource("node"),forceFlushTimeoutMillis:500,spanProcessors:[new s.SentrySpanProcessor({timeout:p(e.getOptions().maxSpanWaitDuration)}),...t.spanProcessors||[]]});r.trace.setGlobalTracerProvider(n),r.propagation.setGlobalPropagator(new s.SentryPropagator);let a=new i.SentryContextManager;return r.context.setGlobalContextManager(a),[n,a.getAsyncLocalStorageLookup()]}function p(e){if(null!=e){if(e>1e6)return l.DEBUG_BUILD&&a.debug.warn("`maxSpanWaitDuration` is too high, using the maximum value of 1000000"),1e6;if(e<=0||Number.isNaN(e)){l.DEBUG_BUILD&&a.debug.warn("`maxSpanWaitDuration` must be a positive number, using default value instead.");return}return e}}n._clampSpanProcessorTimeout=p,n.initOpenTelemetry=function(e,t={}){e.getOptions().debug&&i.setupOpenTelemetryLogger();let[n,r]=c(e,t);e.traceProvider=n,e.asyncLocalStorageLookup=r},n.preloadOpenTelemetry=function(e={}){var t;let n,{debug:r}=e;r&&a.debug.enable(),i.initializeEsmLoader(),(t=e.integrations,n=u.getOpenTelemetryInstrumentationToPreload(),t?n.filter(e=>{let n=e.id;return t.some(e=>n===e||n.startsWith(`${e}.`))}):n).forEach(e=>{e(),r&&a.debug.log(`[Sentry] Preloaded ${e.id} instrumentation`)})},n.setupOtel=c},437766,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(9597),a=e.r(833618),i=e.r(300447),s=e.r(448036),l=e.r(649564);function u(){return o.getDefaultIntegrations().filter(e=>"Http"!==e.name&&"NodeFetch"!==e.name).concat(a.httpIntegration(),i.nativeNodeFetchIntegration())}function c(e){return[...u(),...r.hasSpansEnabled(e)?s.getAutoPerformanceIntegrations():[]]}function p(e={},t){r.applySdkMetadata(e,"node");let n=o.init({...e,defaultIntegrations:e.defaultIntegrations??t(e)});return n&&!e.skipOpenTelemetrySetup&&(l.initOpenTelemetry(n,{spanProcessors:e.openTelemetrySpanProcessors}),o.validateOpenTelemetrySetup()),n}n.getDefaultIntegrations=c,n.getDefaultIntegrationsWithoutPerformance=u,n.init=function(e={}){return p(e,c)},n.initWithoutDefaultIntegrations=function(e={}){return p(e,()=>[])}},91242,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(833618),o=e.r(300447),a=e.r(777683),i=e.r(803230),s=e.r(413873),l=e.r(185789),u=e.r(155335),c=e.r(934951),p=e.r(798926),_=e.r(526717),T=e.r(912988),S=e.r(600698),E=e.r(249659),d=e.r(575879),g=e.r(214177),A=e.r(558386),m=e.r(72752),R=e.r(769116),h=e.r(812826),f=e.r(171038),N=e.r(141085),I=e.r(265892),y=e.r(132873),b=e.r(7298),O=e.r(92562),C=e.r(601835),M=e.r(641639),L=e.r(154522),P=e.r(993455),U=e.r(421821),v=e.r(468252),D=e.r(238e3),G=e.r(745498),B=e.r(373223),x=e.r(982823),V=e.r(180196),w=e.r(400927),k=e.r(437766),H=e.r(649564),Y=e.r(448036),F=e.r(110516),W=e.r(513128),j=e.r(9597);n.httpIntegration=r.httpIntegration,n.nativeNodeFetchIntegration=o.nativeNodeFetchIntegration,n.fsIntegration=a.fsIntegration,n.expressIntegration=i.expressIntegration,n.setupExpressErrorHandler=i.setupExpressErrorHandler,n.fastifyIntegration=s.fastifyIntegration,n.setupFastifyErrorHandler=s.setupFastifyErrorHandler,n.graphqlIntegration=l.graphqlIntegration,n.kafkaIntegration=u.kafkaIntegration,n.lruMemoizerIntegration=c.lruMemoizerIntegration,n.mongoIntegration=p.mongoIntegration,n.mongooseIntegration=_.mongooseIntegration,n.mysqlIntegration=T.mysqlIntegration,n.mysql2Integration=S.mysql2Integration,n.redisIntegration=E.redisIntegration,n.postgresIntegration=d.postgresIntegration,n.postgresJsIntegration=g.postgresJsIntegration,n.prismaIntegration=A.prismaIntegration,n.hapiIntegration=m.hapiIntegration,n.setupHapiErrorHandler=m.setupHapiErrorHandler,n.honoIntegration=R.honoIntegration,n.setupHonoErrorHandler=R.setupHonoErrorHandler,n.koaIntegration=h.koaIntegration,n.setupKoaErrorHandler=h.setupKoaErrorHandler,n.connectIntegration=f.connectIntegration,n.setupConnectErrorHandler=f.setupConnectErrorHandler,n.knexIntegration=N.knexIntegration,n.tediousIntegration=I.tediousIntegration,n.genericPoolIntegration=y.genericPoolIntegration,n.dataloaderIntegration=b.dataloaderIntegration,n.amqplibIntegration=O.amqplibIntegration,n.vercelAIIntegration=C.vercelAIIntegration,n.openAIIntegration=M.openAIIntegration,n.anthropicAIIntegration=L.anthropicAIIntegration,n.googleGenAIIntegration=P.googleGenAIIntegration,n.langChainIntegration=U.langChainIntegration,n.langGraphIntegration=v.langGraphIntegration,n.buildLaunchDarklyFlagUsedHandler=D.buildLaunchDarklyFlagUsedHandlerShim,n.launchDarklyIntegration=D.launchDarklyIntegrationShim,n.OpenFeatureIntegrationHook=G.OpenFeatureIntegrationHookShim,n.openFeatureIntegration=G.openFeatureIntegrationShim,n.statsigIntegration=B.statsigIntegrationShim,n.unleashIntegration=x.unleashIntegrationShim,n.growthbookIntegration=V.growthbookIntegrationShim,n.firebaseIntegration=w.firebaseIntegration,n.getDefaultIntegrations=k.getDefaultIntegrations,n.getDefaultIntegrationsWithoutPerformance=k.getDefaultIntegrationsWithoutPerformance,n.init=k.init,n.initWithoutDefaultIntegrations=k.initWithoutDefaultIntegrations,n.initOpenTelemetry=H.initOpenTelemetry,n.preloadOpenTelemetry=H.preloadOpenTelemetry,n.getAutoPerformanceIntegrations=Y.getAutoPerformanceIntegrations,n.setNodeAsyncContextStrategy=F.setOpenTelemetryContextAsyncContextStrategy,n.SDK_VERSION=W.SDK_VERSION,n.SEMANTIC_ATTRIBUTE_SENTRY_OP=W.SEMANTIC_ATTRIBUTE_SENTRY_OP,n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=W.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=W.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=W.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n.Scope=W.Scope,n.addBreadcrumb=W.addBreadcrumb,n.addEventProcessor=W.addEventProcessor,n.addIntegration=W.addIntegration,n.captureCheckIn=W.captureCheckIn,n.captureConsoleIntegration=W.captureConsoleIntegration,n.captureEvent=W.captureEvent,n.captureException=W.captureException,n.captureFeedback=W.captureFeedback,n.captureMessage=W.captureMessage,n.captureSession=W.captureSession,n.close=W.close,n.consoleLoggingIntegration=W.consoleLoggingIntegration,n.continueTrace=W.continueTrace,n.createConsolaReporter=W.createConsolaReporter,n.createLangChainCallbackHandler=W.createLangChainCallbackHandler,n.createTransport=W.createTransport,n.dedupeIntegration=W.dedupeIntegration,n.endSession=W.endSession,n.eventFiltersIntegration=W.eventFiltersIntegration,n.expressErrorHandler=W.expressErrorHandler,n.extraErrorDataIntegration=W.extraErrorDataIntegration,n.featureFlagsIntegration=W.featureFlagsIntegration,n.flush=W.flush,n.functionToStringIntegration=W.functionToStringIntegration,n.getActiveSpan=W.getActiveSpan,n.getClient=W.getClient,n.getCurrentScope=W.getCurrentScope,n.getGlobalScope=W.getGlobalScope,n.getIsolationScope=W.getIsolationScope,n.getRootSpan=W.getRootSpan,n.getSpanDescendants=W.getSpanDescendants,n.getSpanStatusFromHttpCode=W.getSpanStatusFromHttpCode,n.getTraceData=W.getTraceData,n.getTraceMetaTags=W.getTraceMetaTags,n.httpHeadersToSpanAttributes=W.httpHeadersToSpanAttributes,n.inboundFiltersIntegration=W.inboundFiltersIntegration,n.instrumentAnthropicAiClient=W.instrumentAnthropicAiClient,n.instrumentGoogleGenAIClient=W.instrumentGoogleGenAIClient,n.instrumentLangChainEmbeddings=W.instrumentLangChainEmbeddings,n.instrumentLangGraph=W.instrumentLangGraph,n.instrumentOpenAiClient=W.instrumentOpenAiClient,n.instrumentStateGraphCompile=W.instrumentStateGraphCompile,n.instrumentSupabaseClient=W.instrumentSupabaseClient,n.isEnabled=W.isEnabled,n.isInitialized=W.isInitialized,n.lastEventId=W.lastEventId,n.linkedErrorsIntegration=W.linkedErrorsIntegration,n.parameterize=W.parameterize,n.profiler=W.profiler,n.requestDataIntegration=W.requestDataIntegration,n.rewriteFramesIntegration=W.rewriteFramesIntegration,n.setContext=W.setContext,n.setConversationId=W.setConversationId,n.setCurrentClient=W.setCurrentClient,n.setExtra=W.setExtra,n.setExtras=W.setExtras,n.setHttpStatus=W.setHttpStatus,n.setMeasurement=W.setMeasurement,n.setTag=W.setTag,n.setTags=W.setTags,n.setUser=W.setUser,n.spanStreamingIntegration=W.spanStreamingIntegration,n.spanToBaggageHeader=W.spanToBaggageHeader,n.spanToJSON=W.spanToJSON,n.spanToTraceHeader=W.spanToTraceHeader,n.startInactiveSpan=W.startInactiveSpan,n.startNewTrace=W.startNewTrace,n.startSession=W.startSession,n.startSpan=W.startSpan,n.startSpanManual=W.startSpanManual,n.supabaseIntegration=W.supabaseIntegration,n.suppressTracing=W.suppressTracing,n.trpcMiddleware=W.trpcMiddleware,n.updateSpanName=W.updateSpanName,n.winterCGHeadersToDict=W.winterCGHeadersToDict,n.withActiveSpan=W.withActiveSpan,n.withIsolationScope=W.withIsolationScope,n.withMonitor=W.withMonitor,n.withScope=W.withScope,n.wrapMcpServerWithSentry=W.wrapMcpServerWithSentry,n.zodErrorsIntegration=W.zodErrorsIntegration,n.NODE_VERSION=j.NODE_VERSION,n.NodeClient=j.NodeClient,n.SentryContextManager=j.SentryContextManager,n._INTERNAL_normalizeCollectionInterval=j._INTERNAL_normalizeCollectionInterval,n.anrIntegration=j.anrIntegration,n.childProcessIntegration=j.childProcessIntegration,n.consoleIntegration=j.consoleIntegration,n.contextLinesIntegration=j.contextLinesIntegration,n.createGetModuleFromFilename=j.createGetModuleFromFilename,n.createSentryWinstonTransport=j.createSentryWinstonTransport,n.cron=j.cron,n.defaultStackParser=j.defaultStackParser,n.disableAnrDetectionForCallback=j.disableAnrDetectionForCallback,n.generateInstrumentOnce=j.generateInstrumentOnce,n.getSentryRelease=j.getSentryRelease,n.httpServerIntegration=j.httpServerIntegration,n.httpServerSpansIntegration=j.httpServerSpansIntegration,n.localVariablesIntegration=j.localVariablesIntegration,n.logger=j.logger,n.makeNodeTransport=j.makeNodeTransport,n.metrics=j.metrics,n.modulesIntegration=j.modulesIntegration,n.nodeContextIntegration=j.nodeContextIntegration,n.nodeRuntimeMetricsIntegration=j.nodeRuntimeMetricsIntegration,n.onUncaughtExceptionIntegration=j.onUncaughtExceptionIntegration,n.onUnhandledRejectionIntegration=j.onUnhandledRejectionIntegration,n.pinoIntegration=j.pinoIntegration,n.processSessionIntegration=j.processSessionIntegration,n.spotlightIntegration=j.spotlightIntegration,n.systemErrorIntegration=j.systemErrorIntegration,n.validateOpenTelemetrySetup=j.validateOpenTelemetrySetup,n.withStreamedSpan=j.withStreamedSpan},441209,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.DEBUG_BUILD="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},492882,e=>{"use strict";var t="<unknown>",n=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/\((\S*)(?::(\d+))(?::(\d+))\)/,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,i=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i,l=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;e.s(["parse",0,function(e){return e.split("\n").reduce(function(e,u){var c,p,_,T,S,E,d=function(e){var o=n.exec(e);if(!o)return null;var a=o[2]&&0===o[2].indexOf("native"),i=o[2]&&0===o[2].indexOf("eval"),s=r.exec(o[2]);return i&&null!=s&&(o[2]=s[1],o[3]=s[2],o[4]=s[3]),{file:a?null:o[2],methodName:o[1]||t,arguments:a?[o[2]]:[],lineNumber:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}(u)||(c=u,(p=o.exec(c))?{file:p[2],methodName:p[1]||t,arguments:[],lineNumber:+p[3],column:p[4]?+p[4]:null}:null)||function(e){var n=a.exec(e);if(!n)return null;var r=n[3]&&n[3].indexOf(" > eval")>-1,o=i.exec(n[3]);return r&&null!=o&&(n[3]=o[1],n[4]=o[2],n[5]=null),{file:n[3],methodName:n[1]||t,arguments:n[2]?n[2].split(","):[],lineNumber:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}(u)||(_=u,(T=l.exec(_))?{file:T[2],methodName:T[1]||t,arguments:[],lineNumber:+T[3],column:T[4]?+T[4]:null}:null)||(S=u,(E=s.exec(S))?{file:E[3],methodName:E[1]||t,arguments:[],lineNumber:+E[4],column:E[5]?+E[5]:null}:null);return d&&e.push(d),e},[])}])},948326,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(492882),a=e.r(441209),i=r.GLOBAL_OBJ;function s(){let e=process.env._sentryBasePath??i._sentryBasePath??"";""===e||e.match(/^\//)||(e=`/${e}`);let t=process.env.PORT||"3000";return`http://localhost:${t}${e}`}async function l(e,t={}){let n=new AbortController,o=setTimeout(()=>n.abort(),3e3);return r.suppressTracing(()=>fetch(e,{...t,signal:n.signal}).finally(()=>{clearTimeout(o)}))}async function u(e,t){try{if(!(e.file?.startsWith("webpack-internal:")||e.file?.startsWith("file:")))return null;let n=new URLSearchParams;n.append("isServer",String(!1)),n.append("isEdgeServer",String(!1)),n.append("isAppDirectory",String(!0)),n.append("errorMessage",t.toString()),Object.keys(e).forEach(t=>{n.append(t,(e[t]??"").toString())});let r=s(),o=await l(`${r}/__nextjs_original-stack-frame?${n.toString()}`);if(!o.ok||204===o.status)return null;let a=await o.json();return{originalCodeFrame:a.originalCodeFrame,originalStackFrame:a.originalStackFrame}}catch(e){return a.DEBUG_BUILD&&r.debug.error("Failed to symbolicate event with Next.js dev server",e),null}}async function c(e){try{let t={frames:e.filter(e=>!!e.file).map(e=>(e.file=e.file.replace(/^rsc:\/\/React\/[^/]+\//,"").replace(/\?\d+$/,""),{file:e.file,methodName:e.methodName??"<unknown>",arguments:[],lineNumber:e.lineNumber??0,column:e.column??0,line1:e.lineNumber??0,column1:e.column??0})),isServer:!1,isEdgeServer:!1,isAppDirectory:!0},n=s(),r=await l(`${n}/__nextjs_original-stack-frames`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok||204===r.status)return null;return(await r.json()).map(e=>({originalCodeFrame:e.value.originalCodeFrame,originalStackFrame:e.value.originalStackFrame}))}catch(e){return a.DEBUG_BUILD&&r.debug.error("Failed to symbolicate event with Next.js dev server",e),null}}n.devErrorSymbolicationEventProcessor=async function e(e,t){"transaction"===e.type&&(e.spans=e.spans?.filter(e=>{let t=e.data?.["http.url"];return"string"!=typeof t||!t.includes("__nextjs_original-stack-frame")}));try{if(t.originalException&&t.originalException instanceof Error&&t.originalException.stack){let n,a=o.parse(t.originalException.stack),s=i._sentryNextJsVersion;if(!s)return e;let l=r.parseSemver(s);if(l.major>15||15===l.major&&l.minor>=2){let t=await c(a);if(null===t)return e;n=t}else n=await Promise.all(a.map(e=>u(e,t.originalException)));e.exception?.values?.[0]?.stacktrace?.frames&&(e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames.map((e,t,r)=>{let o=n[r.length-1-t];if(!o?.originalStackFrame||!o.originalCodeFrame)return{...e,platform:e.filename?.startsWith("node:internal")?"nodejs":void 0,in_app:!1};let{contextLine:a,preContextLines:i,postContextLines:s}=function(e){let t,n=e.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,"").split("\n").filter(e=>!e.match(/^\s*\|/)).map(e=>({line:e,isErrorLine:!!e.match(/^>/)})).map(e=>({...e,line:e.line.replace(/^.*\|/,"")})),r=[],o=[],a=!1;for(let e of n)e.isErrorLine?(t=e.line,a=!0):a?o.push(e.line):r.push(e.line);return{contextLine:t,preContextLines:r,postContextLines:o}}(o.originalCodeFrame);return{...e,pre_context:i,context_line:a,post_context:s,function:o.originalStackFrame.methodName,filename:o.originalStackFrame.file?function(e){if(!e)return e;let t=e.match(/^webpack-internal:(?:\/+)?(?:\([^)]*\)\/)?(.+)$/);return t?t[1]:e}(o.originalStackFrame.file):void 0,lineno:o.originalStackFrame.lineNumber||o.originalStackFrame.line1||void 0,colno:o.originalStackFrame.column||o.originalStackFrame.column1||void 0}}))}}catch{}return e}},404606,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.getVercelEnv=function(e){let t=e?process.env.NEXT_PUBLIC_VERCEL_ENV:process.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}},662566,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.TRANSACTION_ATTR_SENTRY_ROUTE_BACKFILL="sentry.route_backfill",n.TRANSACTION_ATTR_SHOULD_DROP_TRANSACTION="sentry.drop_transaction"},892338,(e,t,n)=>{"use strict";n._=function(e){return e&&e.__esModule?e:{default:e}}},403222,(e,t,n)=>{"use strict";t.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},229894,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return s},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l},UNDERSCORE_NOT_FOUND_ROUTE:function(){return a},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return i}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a="/_not-found",i=`${a}/page`,s="/_global-error",l=`${s}/page`},951547,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o={APP_CLIENT_INTERNALS:function(){return et},APP_PATHS_MANIFEST:function(){return m},APP_PATH_ROUTES_MANIFEST:function(){return R},AdapterOutputType:function(){return c},BARREL_OPTIMIZATION_PREFIX:function(){return K},BLOCKED_PAGES:function(){return H},BUILD_ID_FILE:function(){return k},BUILD_MANIFEST:function(){return h},CLIENT_PUBLIC_FILES_PATH:function(){return Y},CLIENT_REFERENCE_MANIFEST:function(){return X},CLIENT_STATIC_FILES_PATH:function(){return F},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return q},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return ea},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return en},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return er},COMPILER_INDEXES:function(){return u},COMPILER_NAMES:function(){return l},CONFIG_FILES:function(){return w},DEFAULT_RUNTIME_WEBPACK:function(){return ei},DEFAULT_SANS_SERIF_FONT:function(){return ep},DEFAULT_SERIF_FONT:function(){return ec},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return B},DEV_CLIENT_PAGES_MANIFEST:function(){return U},DYNAMIC_CSS_MANIFEST:function(){return $},EDGE_RUNTIME_WEBPACK:function(){return es},EDGE_UNSUPPORTED_NODE_APIS:function(){return ed},EXPORT_DETAIL:function(){return b},EXPORT_MARKER:function(){return y},FUNCTIONS_CONFIG_MANIFEST:function(){return f},IMAGES_MANIFEST:function(){return L},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return z},MIDDLEWARE_BUILD_MANIFEST:function(){return J},MIDDLEWARE_MANIFEST:function(){return v},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return Q},MODERN_BROWSERSLIST_TARGET:function(){return i.default},NEXT_BUILTIN_DOCUMENT:function(){return j},NEXT_FONT_MANIFEST:function(){return I},PAGES_MANIFEST:function(){return A},PHASE_ANALYZE:function(){return _},PHASE_DEVELOPMENT_SERVER:function(){return E},PHASE_EXPORT:function(){return p},PHASE_INFO:function(){return g},PHASE_PRODUCTION_BUILD:function(){return T},PHASE_PRODUCTION_SERVER:function(){return S},PHASE_TEST:function(){return d},PREFETCH_HINTS:function(){return C},PRERENDER_MANIFEST:function(){return O},REACT_LOADABLE_MANIFEST:function(){return x},ROUTES_MANIFEST:function(){return M},RSC_MODULE_TYPES:function(){return eE},SERVER_DIRECTORY:function(){return V},SERVER_FILES_MANIFEST:function(){return P},SERVER_PROPS_ID:function(){return eu},SERVER_REFERENCE_MANIFEST:function(){return Z},STATIC_PROPS_ID:function(){return el},STATIC_STATUS_PAGES:function(){return e_},STRING_LITERAL_DROP_BUNDLE:function(){return W},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return N},SYSTEM_ENTRYPOINTS:function(){return eg},TRACE_OUTPUT_VERSION:function(){return eT},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return G},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return D},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return eS},UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return s.UNDERSCORE_GLOBAL_ERROR_ROUTE},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return s.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY},UNDERSCORE_NOT_FOUND_ROUTE:function(){return s.UNDERSCORE_NOT_FOUND_ROUTE},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return s.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY}};for(var a in o)Object.defineProperty(n,a,{enumerable:!0,get:o[a]});let i=e.r(892338)._(e.r(403222)),s=e.r(229894),l={client:"client",server:"server",edgeServer:"edge-server"},u={[l.client]:0,[l.server]:1,[l.edgeServer]:2};var c=((r={}).PAGES="PAGES",r.PAGES_API="PAGES_API",r.APP_PAGE="APP_PAGE",r.APP_ROUTE="APP_ROUTE",r.PRERENDER="PRERENDER",r.STATIC_FILE="STATIC_FILE",r.MIDDLEWARE="MIDDLEWARE",r);let p="phase-export",_="phase-analyze",T="phase-production-build",S="phase-production-server",E="phase-development-server",d="phase-test",g="phase-info",A="pages-manifest.json",m="app-paths-manifest.json",R="app-path-routes-manifest.json",h="build-manifest.json",f="functions-config-manifest.json",N="subresource-integrity-manifest",I="next-font-manifest",y="export-marker.json",b="export-detail.json",O="prerender-manifest.json",C="prefetch-hints.json",M="routes-manifest.json",L="images-manifest.json",P="required-server-files",U="_devPagesManifest.json",v="middleware-manifest.json",D="_clientMiddlewareManifest.js",G="client-build-manifest.json",B="_devMiddlewareManifest.json",x="react-loadable-manifest.json",V="server",w=["next.config.js","next.config.mjs","next.config.ts",...process?.features?.typescript?["next.config.mts"]:[]],k="BUILD_ID",H=["/_document","/_app","/_error"],Y="public",F="static",W="__NEXT_DROP_CLIENT_FILE__",j="__NEXT_BUILTIN_DOCUMENT__",K="__barrel_optimize__",X="client-reference-manifest",Z="server-reference-manifest",J="middleware-build-manifest",Q="middleware-react-loadable-manifest",z="interception-route-rewrite-manifest",$="dynamic-css-manifest",q="main",ee=`${q}-app`,et="app-pages-internals",en="react-refresh",er="webpack",eo="polyfills",ea=Symbol(eo),ei="webpack-runtime",es="edge-runtime-webpack",el="__N_SSG",eu="__N_SSP",ec={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ep={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},e_=["/500"],eT=1,eS=6e3,eE={client:"client",server:"server"},ed=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eg=new Set([q,en,ee]);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},212397,(e,t,n)=>{t.exports=e.r(951547)},247089,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(212397);n.isBuild=function(){return process.env.NEXT_PHASE===r.PHASE_PRODUCTION_BUILD}},902054,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(441209);async function a(){try{o.DEBUG_BUILD&&r.debug.log("Flushing events..."),await r.flush(2e3),o.DEBUG_BUILD&&r.debug.log("Done flushing events")}catch(e){o.DEBUG_BUILD&&r.debug.log("Error while flushing events:\n",e)}}function i(){let e=Symbol.for("__cloudflare-context__");return r.GLOBAL_OBJ[e]?.ctx}function s(e){i()?.waitUntil(e)}function l(){return"function"==typeof i()?.waitUntil}n.cloudflareWaitUntil=s,n.flushSafelyWithTimeout=a,n.isCloudflareWaitUntilAvailable=l,n.waitUntil=function(e){l()?s(e):r.vercelWaitUntil(e)}},227685,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);function o(e){let t=e.split("/").filter(e=>e&&!(e.startsWith("(")&&e.endsWith(")")));return t.length>0?`/${t.join("/")}`:"/"}function a(e,t,n,a){let i=a??o(e),s=n?.["x-forwarded-proto"],l=n?.["x-forwarded-host"]||n?.host;if(!s||!l)return i;let u=`${s}://${l}${i}`,c=r.parseStringToURLObject(u);return c?r.getSanitizedUrlStringFromUrlObject(c):i}function i(e){let t=e?.referer;if(t)try{let e=new URL(t);return r.getSanitizedUrlStringFromUrlObject(e)}catch{return}}n.buildUrlFromComponentRoute=a,n.extractSanitizedUrlFromRefererHeader=i,n.getSanitizedRequestUrl=function(e,t,n,r){let o=i(n);return o||a(e,t,n,r)},n.sanitizeRoutePath=o,n.substituteRouteParams=function(e,t){return e}},115227,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(227685);n.setUrlProcessingMetadata=function(e){if("transaction"!==e.type||e.contexts?.trace?.op!=="http.server"||!e.contexts?.trace?.data||!r.getClient())return;let t=e.contexts.trace.data,n=t["next.route"]||t["http.route"],a=t["http.target"];if(!n)return;let i=e.sdkProcessingMetadata?.capturedSpanIsolationScope?.getScopeData(),s=i?.sdkProcessingMetadata?.normalizedRequest?.headers,l=o.getSanitizedRequestUrl(n,void 0,s,a?.toString());l&&i?.sdkProcessingMetadata&&(i.sdkProcessingMetadata.normalizedRequest=i.sdkProcessingMetadata.normalizedRequest||{},i.sdkProcessingMetadata.normalizedRequest.url=l)}},172206,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(814747);n.distDirRewriteFramesIntegration=r.defineIntegration(({distDirName:e})=>{let t=o.resolve(e).replace(/(\/|\\)$/,""),n=new RegExp(r.escapeStringForRegex(t));return{...r.rewriteFramesIntegration({iteratee:e=>(e.filename=e.filename?.replace(n,"app:///_next"),e)}),name:"DistDirRewriteFrames"}})},875563,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.ATTR_NEXT_ROUTE="next.route",n.ATTR_NEXT_SEGMENT="next.segment",n.ATTR_NEXT_SPAN_NAME="next.span_name",n.ATTR_NEXT_SPAN_TYPE="next.span_type"},765331,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(513128),a=e.r(875563),i=e.r(662566);n.enhanceHandleRequestRootSpan=function(e){let{attributes:t}=e;if("BaseServer.handleRequest"!==t[a.ATTR_NEXT_SPAN_TYPE])return;t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]="http.server",e.setOp("http.server");let n=e.getName();n&&e.setName(o.stripUrlQueryAndFragment(n));let s=t[r.SEMATTRS_HTTP_METHOD]??t[r.ATTR_HTTP_REQUEST_METHOD],l=t[r.SEMATTRS_HTTP_TARGET],u=t[r.ATTR_HTTP_ROUTE]||t[a.ATTR_NEXT_ROUTE],c=t[a.ATTR_NEXT_SPAN_NAME];if("string"==typeof s&&"string"==typeof u&&!u.startsWith("middleware")){let n=u.replace(/\/route$/,"");e.setName(`${s} ${n}`),t[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route",t[a.ATTR_NEXT_ROUTE]=n}let p=t[i.TRANSACTION_ATTR_SENTRY_ROUTE_BACKFILL];"string"==typeof p&&"GET /_app"!==e.getName()&&e.setName(`${"string"==typeof s?s:"GET"} ${p}`);let _="string"==typeof c&&c.match(/^middleware (GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)/);_&&(e.setName(`middleware ${_[1]}`),e.setOp("http.server.middleware")),"GET /_error"===e.getName()&&"string"==typeof l&&e.setName(`${"string"==typeof s?`${s} `:""}${l}`)}},442087,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.addHeadersAsAttributes=function(e,t){if(!e)return{};let n=r.getClient(),o=n?.getDataCollectionOptions();if(o?.httpHeaders.request===!1)return{};let a=e instanceof Headers||"object"==typeof e&&"get"in e?r.winterCGHeadersToDict(e):e,i=r.httpHeadersToSpanAttributes(a,o??!1);return t&&t.setAttributes(i),i}},387838,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.isPathnameUnderSentryTunnelRoute=function(e,t){return e===t||e.startsWith(`${t}/`)}},709659,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(513128),a=e.r(110516),i=e.r(875563),s=e.r(387838),l=e.r(662566),u=o.GLOBAL_OBJ;n.dropMiddlewareTunnelRequests=function(e,t){if(o.getClient()?.getOptions()?.skipOpenTelemetrySetup)return;let n=t?.[i.ATTR_NEXT_SPAN_TYPE]==="Middleware.execute",c=t?.[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]==="auto.http.otel.node_fetch",p=t?.[i.ATTR_NEXT_SPAN_TYPE]==="BaseServer.handleRequest";if(!n&&!c&&!p)return;let _=function(e){let t=u._sentryRewritesTunnelPath||process.env._sentryRewritesTunnelPath;if(!t)return!1;let n=e[r.SEMATTRS_HTTP_TARGET];if("string"==typeof n){let e=n.split("?")[0]||"";return s.isPathnameUnderSentryTunnelRoute(e,t)}return!1}(t||{}),T=a.isSentryRequestSpan(e);(_||T)&&e.setAttribute(l.TRANSACTION_ATTR_SHOULD_DROP_TRANSACTION,!0)}},46423,(e,t,n)=>{let r;Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let o=e.r(216835),a=e.r(513128),i=e.r(441209),s=e.r(875563),l=e.r(662566),u="__PAGE__",c=new WeakMap;function p(e){return"NextNodeServer.getLayoutOrPageModule"===e[s.ATTR_NEXT_SPAN_TYPE]&&"resolve segment modules"===e[s.ATTR_NEXT_SPAN_NAME]&&"string"==typeof e[s.ATTR_NEXT_SEGMENT]}function _({segment:e,route:t}){return e===u?`resolve page server component "${t}"`:""===e?"resolve root layout server component":`resolve layout server component "${e}"`}n.commonObjectToIsolationScope=function(e){if("object"!=typeof e||!e)return new a.Scope;{let t=c.get(e);if(t)return t;{let t=new a.Scope;return c.set(e,t),t}}},n.dropNextjsRootContext=function(){if(a.getClient()?.getOptions()?.skipOpenTelemetrySetup)return;let e=a.getActiveSpan();if(e){let t=a.getRootSpan(e),n=a.spanToJSON(t).data;n?.["next.span_type"]&&a.getRootSpan(e)?.setAttribute(l.TRANSACTION_ATTR_SHOULD_DROP_TRANSACTION,!0)}},n.escapeNextjsTracing=function(e){let t=a.GLOBAL_OBJ.AsyncLocalStorage;return t?(r||(r=new t),r.getStore())?e():a.startNewTrace(()=>r.run(!0,()=>e())):(i.DEBUG_BUILD&&a.debug.warn("Tried to register AsyncLocalStorage async context strategy in a runtime that doesn't support AsyncLocalStorage."),e())},n.getEnhancedResolveSegmentSpanName=_,n.isResolveSegmentSpan=p,n.maybeEnhanceServerComponentSpanName=function(e,t,n){if(!p(t))return;let r=t[s.ATTR_NEXT_SEGMENT],i=n[o.ATTR_HTTP_ROUTE],l=_({segment:r,route:"string"==typeof i?i:""});e.updateName(l),e.setAttributes({"sentry.nextjs.ssr.function.type":r===u?"Page":"Layout","sentry.nextjs.ssr.function.route":i}),e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_OP,"function.nextjs")}},225311,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(441209),a="sentry.cron.checkInId",i="sentry.cron.monitorSlug",s="sentry.cron.startTime",l="sentry.cron.schedule";n.maybeCompleteCronCheckIn=function(e){let t=r.spanToJSON(e).data,n=t?.[a],u=t?.[i],c=t?.[s],p=t?.[l];if(!n||!u||"number"!=typeof c)return;let _=r._INTERNAL_safeDateNow()/1e3-c,T=r.spanToJSON(e).status,S=T&&"ok"!==T?"error":"ok";r.captureCheckIn({checkInId:n,monitorSlug:u,status:S,duration:_},"string"==typeof p?{maxRuntime:720,schedule:{type:"crontab",value:p}}:void 0),e.setAttribute(a,void 0),e.setAttribute(i,void 0),e.setAttribute(s,void 0),e.setAttribute(l,void 0),o.DEBUG_BUILD&&r.debug.log(`[Cron] Completed check-in for "${u}" with status "${S}"`)},n.maybeStartCronCheckIn=function(e,t){let n=function(){let e=globalThis;if(e._sentryVercelCronsConfig)try{return JSON.parse(e._sentryVercelCronsConfig)}catch{o.DEBUG_BUILD&&r.debug.log("[@sentry/nextjs] Failed to parse Vercel crons config");return}}();if(!n||!t)return;let u=r.getIsolationScope().getScopeData().sdkProcessingMetadata?.normalizedRequest?.headers;if(!u)return;let c=Array.isArray(u["user-agent"])?u["user-agent"][0]:u["user-agent"];if(!c?.includes("vercel-cron"))return;let p=n.find(e=>e.path===t);if(!p?.path||!p.schedule)return;let _=p.path,T=r._INTERNAL_safeDateNow()/1e3,S=r.captureCheckIn({monitorSlug:_,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:p.schedule}});o.DEBUG_BUILD&&r.debug.log(`[Cron] Started check-in for "${_}" with ID "${S}"`),e.setAttribute(a,S),e.setAttribute(i,_),e.setAttribute(s,T),e.setAttribute(l,p.schedule)}},527706,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o="messaging.system",a="messaging.destination.name",i="messaging.operation.name",s="sentry.queue.enriched";function l(e,t){let n=e[t];return Array.isArray(n)?n[0]:n}n.maybeCleanupQueueSpan=function(e){let t=r.spanToJSON(e).data;t?.[s]&&e.setAttribute(s,void 0)},n.maybeEnrichQueueConsumerSpan=function(e){let t=r.getIsolationScope().getScopeData().sdkProcessingMetadata?.normalizedRequest?.headers;if(!t||"com.vercel.queue.v2beta"!==(Array.isArray(t["ce-type"])?t["ce-type"][0]:t["ce-type"]))return;let n=l(t,"ce-vqsqueuename"),u=l(t,"ce-vqsmessageid"),c=l(t,"ce-vqsconsumergroup"),p=l(t,"ce-vqsdeliverycount");if(e.setAttribute(o,"vercel.queue"),e.setAttribute(i,"process"),n&&e.setAttribute(a,n),u&&e.setAttribute("messaging.message.id",u),c&&e.setAttribute("messaging.consumer.group.name",c),p){let t=parseInt(p,10);isNaN(t)||e.setAttribute("messaging.message.delivery_count",t)}e.setAttribute(s,!0)},n.maybeEnrichQueueProducerSpan=function(e){let t,n=r.spanToJSON(e).data,l=n?.["url.full"];if(!l)return;try{t=new URL(l)}catch{return}if("vercel-queue.com"!==t.hostname&&!t.hostname.endsWith(".vercel-queue.com"))return;let u=t.pathname.match(/^\/api\/v3\/topic\/([^/]+)/);if(!u)return;let c=decodeURIComponent(u[1]);e.setAttribute(o,"vercel.queue"),e.setAttribute(a,c),e.setAttribute(i,"send"),e.setAttribute(s,!0)}},362405,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(92405),o=e.r(216835),a=e.r(513128),i=e.r(110516),s=e.r(875563),l=e.r(442087),u=e.r(709659),c=e.r(46423),p=e.r(225311),_=e.r(527706);n.handleOnSpanStart=function(e){let t=a.spanToJSON(e).data,n=a.getRootSpan(e),T=a.spanToJSON(n).data,S=e===n;if(u.dropMiddlewareTunnelRequests(e,t),"string"==typeof t?.[s.ATTR_NEXT_ROUTE]&&(T?.[o.ATTR_HTTP_REQUEST_METHOD]||T?.[o.SEMATTRS_HTTP_METHOD])&&!T?.[o.ATTR_HTTP_ROUTE]){let e=t[s.ATTR_NEXT_ROUTE].replace(/\/route$/,"");n.updateName(e),n.setAttribute(o.ATTR_HTTP_ROUTE,e),n.setAttribute(s.ATTR_NEXT_ROUTE,e);let r=T?.[o.ATTR_HTTP_REQUEST_METHOD]||T?.[o.SEMATTRS_HTTP_METHOD];"string"==typeof r&&a.getIsolationScope().setTransactionName(`${r} ${e}`),p.maybeStartCronCheckIn(n,e),_.maybeEnrichQueueConsumerSpan(n)}if(t?.[s.ATTR_NEXT_SPAN_TYPE]==="Middleware.execute"){let r=t[s.ATTR_NEXT_SPAN_NAME];"string"==typeof r&&(n.updateName(r),n.setAttribute(o.ATTR_HTTP_ROUTE,r),n.setAttribute(s.ATTR_NEXT_SPAN_NAME,r)),e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto")}if(t?.[s.ATTR_NEXT_SPAN_TYPE]!==void 0&&e.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto"),S){let e=a.getIsolationScope().getScopeData().sdkProcessingMetadata?.normalizedRequest?.headers;l.addHeadersAsAttributes(e,n)}if(t?.[s.ATTR_NEXT_SPAN_TYPE]==="BaseServer.handleRequest"&&S){let t=a.getCapturedScopesOnSpan(e),n=(t.isolationScope||a.getIsolationScope()).clone(),o=t.scope||a.getCurrentScope(),s=i.getScopesFromContext(r.context.active());s&&(s.isolationScope=n),a.setCapturedScopesOnSpan(e,o,n)}c.maybeEnhanceServerComponentSpanName(e,t,T),_.maybeEnrichQueueProducerSpan(e)}},957894,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(441209);function a(){let e=function(){if("u">typeof AsyncLocalStorage)return AsyncLocalStorage;if("getBuiltinModule"in process&&"function"==typeof process.getBuiltinModule){let{AsyncLocalStorage:e}=process.getBuiltinModule("async_hooks")??{};return e}}();if(!e||"function"!=typeof e.snapshot){o.DEBUG_BUILD&&r.debug.warn("[@sentry/nextjs] No AsyncLocalStorage found in the runtime or AsyncLocalStorage.snapshot() is not available, skipping safe random ID generator context preparation, you may see some errors with cache components.");return}return e.snapshot()}function i(e){return e instanceof Error&&e.message.includes("AsyncLocalStorage")}n.prepareSafeIdGeneratorContext=function(){let e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),t=r.GLOBAL_OBJ,n=a();if(!n)return;let s=n;t[e]=e=>{try{return s(e)}catch(n){if(!i(n))throw n;let t=a();if(!t)return e();s=t;try{return s(e)}catch(t){if(!i(t))throw t;return e()}}},o.DEBUG_BUILD&&r.debug.log("[@sentry/nextjs] Prepared safe random ID generator context")}},656543,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054);n.captureUnderscoreErrorException=async function(e){let{req:t,res:n,err:a}=e,i=n?.statusCode||e.statusCode;if(i&&i<500||!e.pathname)return;if(a&&r.isAlreadyCaptured(a)){o.waitUntil(o.flushSafelyWithTimeout());let e="object"==typeof a?a.__sentry_event_id__:void 0;return"string"==typeof e?(r.getIsolationScope().setLastEventId(e),e):r.getIsolationScope().lastEventId()}let s=r.withScope(e=>{if(t){let n=r.httpRequestToRequestData(t);e.setSDKProcessingMetadata({normalizedRequest:n})}return r.captureException(a||`_error.js called with falsy error (${a})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return o.waitUntil(o.flushSafelyWithTimeout()),s}},555819,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.isUseCacheFunction=function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),n=t>>1&63,r=Array(6);for(let e=0;e<6;e++){let t=n>>5-e&1;r[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:r,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}},278534,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(441209),a=e.r(247089),i=e.r(555819);function s(e){let t=a.isBuild(),n=!!e&&i.isUseCacheFunction(e);return n&&o.DEBUG_BUILD&&r.debug.log("Skipping span creation in Cache Components context"),t||n}function l(){return new r.SentryNonRecordingSpan({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}n.startInactiveSpan=function(e){return s()?l():r.startInactiveSpan(e)},n.startSpan=function(e,t){return s(t)?t(l()):r.startSpan(e,t)},n.startSpanManual=function(e,t){if(s(t)){let e=l();return t(e,()=>e.end())}return r.startSpanManual(e,t)}},589741,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(662566);n.callDataFetcherTraced=async function(e,t){try{return await e(...t)}catch(e){throw r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}},n.withErrorInstrumentation=function(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw r.captureException(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}},n.withTracedServerSideDataFetcher=function(e,t,n,a){return async function(...n){let i=r.httpRequestToRequestData(t);r.getCurrentScope().setTransactionName(`${a.dataFetchingMethodName} (${a.dataFetcherRouteName})`),r.getIsolationScope().setSDKProcessingMetadata({normalizedRequest:i});let s=r.getActiveSpan();s&&"/_error"!==a.requestedRouteName&&r.getRootSpan(s).setAttribute(o.TRANSACTION_ATTR_SENTRY_ROUTE_BACKFILL,a.requestedRouteName);let{"sentry-trace":l,baggage:u}=r.getTraceData();return{sentryTrace:l,baggage:u,data:await e.apply(this,n)}}}},116147,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapGetStaticPropsWithSentry=function(e,t){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let a=o.withErrorInstrumentation(e);return o.callDataFetcherTraced(a,n)}})}},647520,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[a]=n,{req:i,res:s}=a,l=o.withErrorInstrumentation(e);if(!i||!s)return l.apply(t,n);{let e=o.withTracedServerSideDataFetcher(l,i,s,{dataFetcherRouteName:a.pathname,requestedRouteName:a.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r,baggage:u,sentryTrace:c}=await e.apply(t,n)??{};return"object"==typeof r&&null!==r&&(c&&(r._sentryTraceData=c),u&&(r._sentryBaggage=u)),r}}})}},867747,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapAppGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[a]=n,{req:i,res:s}=a.ctx,l=o.withErrorInstrumentation(e);if(!i||!s)return l.apply(t,n);{let e=o.withTracedServerSideDataFetcher(l,i,s,{dataFetcherRouteName:"/_app",requestedRouteName:a.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r,sentryTrace:u,baggage:c}=await e.apply(t,n);return"object"==typeof r&&null!==r&&(r.pageProps||(r.pageProps={}),u&&(r.pageProps._sentryTraceData=u),c&&(r.pageProps._sentryBaggage=c)),r}}})}},452407,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapDocumentGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[a]=n,{req:i,res:s}=a,l=o.withErrorInstrumentation(e);if(!i||!s)return l.apply(t,n);{let e=o.withTracedServerSideDataFetcher(l,i,s,{dataFetcherRouteName:"/_document",requestedRouteName:a.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r}=await e.apply(t,n);return r}}})}},324195,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapErrorGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[a]=n,{req:i,res:s}=a,l=o.withErrorInstrumentation(e);if(!i||!s)return l.apply(t,n);{let e=o.withTracedServerSideDataFetcher(l,i,s,{dataFetcherRouteName:"/_error",requestedRouteName:a.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r,baggage:u,sentryTrace:c}=await e.apply(t,n);return"object"==typeof r&&null!==r&&(c&&(r._sentryTraceData=c),u&&(r._sentryBaggage=u)),r}}})}},884587,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(247089),o=e.r(589741);n.wrapGetServerSidePropsWithSentry=function(e,t){return new Proxy(e,{apply:async(e,n,a)=>{if(r.isBuild())return e.apply(n,a);let[i]=a,{req:s,res:l}=i,u=o.withErrorInstrumentation(e),c=o.withTracedServerSideDataFetcher(u,s,l,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:p,baggage:_,sentryTrace:T}=await c.apply(n,a);return"object"==typeof p&&null!==p&&"props"in p&&(T&&(p.props._sentryTraceData=T),_&&(p.props._sentryBaggage=_)),p}})}},281881,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.isNotFoundNavigationError=function(e){return r.isError(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)},n.isRedirectNavigationError=function(e){return r.isError(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}},979036,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(281881),a=e.r(902054);n.wrapServerComponentWithSentry=function(e,t){return new Proxy(e,{apply:(e,n,i)=>{let s=r.getIsolationScope(),l=t.headers?r.winterCGHeadersToDict(t.headers):void 0;return s.setSDKProcessingMetadata({normalizedRequest:{headers:l}}),r.handleCallbackErrors(()=>e.apply(n,i),e=>{let n=r.getActiveSpan(),{componentRoute:a,componentType:i}=t,l=!0;s.setTransactionName(`${i} Server Component (${a})`),n&&(o.isNotFoundNavigationError(e)?(l=!1,n.setStatus({code:r.SPAN_STATUS_ERROR,message:"not_found"})):o.isRedirectNavigationError(e)?(l=!1,n.setStatus({code:r.SPAN_STATUS_OK})):n.setStatus({code:r.SPAN_STATUS_ERROR,message:"internal_error"})),l&&r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{a.waitUntil(a.flushSafelyWithTimeout())})}})}},546923,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(281881),a=e.r(902054);e.r(46423),n.wrapRouteHandlerWithSentry=function(e,t){let{method:n,parameterizedRoute:i,headers:s}=t;return new Proxy(e,{apply:async(e,t,s)=>{let l=r.getActiveSpan(),u=l?r.getRootSpan(l):void 0;return r.withIsolationScope(r.getIsolationScope(),()=>r.withScope(async c=>{c.setTransactionName(`${n} ${i}`);let p=await r.handleCallbackErrors(()=>e.apply(t,s),e=>{o.isRedirectNavigationError(e)||(o.isNotFoundNavigationError(e)?(l&&r.setHttpStatus(l,404),u&&r.setHttpStatus(u,404)):r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{a.waitUntil(a.flushSafelyWithTimeout())});try{p.status&&(l&&r.setHttpStatus(l,p.status),u&&r.setHttpStatus(u,p.status))}catch{}return p}))}})}},799916,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.wrapApiHandlerWithSentryVercelCrons=function(e,t){return new Proxy(e,{apply:(e,n,o)=>{let a;if(!o?.[0])return e.apply(n,o);let[i]=o,s="nextUrl"in i?i.nextUrl.pathname:i.url,l="nextUrl"in i?i.headers.get("user-agent"):i.headers["user-agent"];if(!t||!l?.includes("vercel-cron"))return e.apply(n,o);let u=t.find(e=>e.path===s);if(!u?.path||!u.schedule)return e.apply(n,o);let c=u.path,p=r.captureCheckIn({monitorSlug:c,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:u.schedule}}),_=r._INTERNAL_safeDateNow()/1e3,T=()=>{r.captureCheckIn({checkInId:p,monitorSlug:c,status:"error",duration:r._INTERNAL_safeDateNow()/1e3-_})};try{a=e.apply(n,o)}catch(e){throw T(),e}return"object"==typeof a&&null!==a&&"then"in a?Promise.resolve(a).then(()=>{r.captureCheckIn({checkInId:p,monitorSlug:c,status:"ok",duration:r._INTERNAL_safeDateNow()/1e3-_})},()=>{T()}):r.captureCheckIn({checkInId:p,monitorSlug:c,status:"ok",duration:r._INTERNAL_safeDateNow()/1e3-_}),a}})}},348339,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054),a=e.r(387838);n.wrapMiddlewareWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{let i="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(i&&"string"==typeof i){let e=n[0];if(e instanceof Request){let t=new URL(e.url);if(a.isPathnameUnderSentryTunnelRoute(t.pathname,i))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}}return r.withIsolationScope(a=>{let i,s,l=n[0],u=r.getCurrentScope();l instanceof Request?(a.setSDKProcessingMetadata({normalizedRequest:r.winterCGRequestToRequestData(l)}),i=`middleware ${l.method}`,s="url"):(i="middleware",s="component"),u.setTransactionName(i);let c=r.getActiveSpan();if(c){i="middleware",s="component";let e=r.getRootSpan(c);e&&r.setCapturedScopesOnSpan(e,u,a)}return r.startSpan({name:i,op:"http.server.middleware",attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:s,[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.wrap_middleware"}},()=>r.handleCallbackErrors(()=>e.apply(t,n),e=>{r.captureException(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{o.waitUntil(o.flushSafelyWithTimeout())}))})}})}},762741,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);function o(e,t){e&&"object"==typeof e&&r.addNonEnumerableProperty(e,"__sentry_event_id__",t)}n.wrapPageComponentWithSentry=function(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return r.withIsolationScope(()=>{let t=r.getCurrentScope(),n="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let e=r.extractTraceparentData(n);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(t){let e=r.captureException(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}});throw o(t,e),t}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>r.withIsolationScope(()=>{let a=r.getCurrentScope(),i=n?.[0]?._sentryTraceData;if(i){let e=r.extractTraceparentData(i);a.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,n)}catch(t){let e=r.captureException(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}});throw o(t,e),t}})}):e}},540554,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(281881),a=e.r(902054);n.wrapGenerationFunctionWithSentry=function(e,t){return new Proxy(e,{apply:(e,n,i)=>{let s,l=r.getIsolationScope();try{s=t.requestAsyncStorage?.getStore()?.headers}catch{}let u=s?r.winterCGHeadersToDict(s):void 0;return l.setSDKProcessingMetadata({normalizedRequest:{headers:u}}),r.handleCallbackErrors(()=>e.apply(n,i),e=>{let n=r.getActiveSpan(),{componentRoute:a,componentType:i,generationFunctionIdentifier:s}=t,u=!0;l.setTransactionName(`${i}.${s} (${a})`),n&&(o.isNotFoundNavigationError(e)?(u=!1,n.setStatus({code:r.SPAN_STATUS_ERROR,message:"not_found"})):o.isRedirectNavigationError(e)?(u=!1,n.setStatus({code:r.SPAN_STATUS_OK})):n.setStatus({code:r.SPAN_STATUS_ERROR,message:"internal_error"})),u&&r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:s}}})},()=>{a.waitUntil(a.flushSafelyWithTimeout())})}})}},35205,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054),a=e.r(441209),i=e.r(281881);async function s(e,t,n){return r.withIsolationScope(async s=>{let l,u,c=r.getClient()?.getDataCollectionOptions().httpBodies.includes("outgoingResponse"),p={};try{let e=await t.headers;l=e?.get("sentry-trace")??void 0,u=e?.get("baggage"),e?.forEach((e,t)=>{p[t]=e})}catch{a.DEBUG_BUILD&&r.debug.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return s.setTransactionName(`serverAction/${e}`),s.setSDKProcessingMetadata({normalizedRequest:{headers:p}}),(r.getActiveSpan()?(e,t)=>t():r.continueTrace)({sentryTrace:l,baggage:u},async()=>{try{return await r.startSpan({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.server_action"}},async e=>{let o=await r.handleCallbackErrors(n,t=>{i.isNotFoundNavigationError(t)?e.setStatus({code:r.SPAN_STATUS_ERROR,message:"not_found"}):i.isRedirectNavigationError(t)||(e.setStatus({code:r.SPAN_STATUS_ERROR,message:"internal_error"}),r.captureException(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:c)&&r.getIsolationScope().setExtra("server_action_result",o),t.formData&&t.formData.forEach((e,t)=>{r.getIsolationScope().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),o})}finally{o.waitUntil(o.flushSafelyWithTimeout())}})})}n.withServerActionInstrumentation=function(...e){if("function"==typeof e[1]){let[t,n]=e;return s(t,{},n)}{let[t,n,r]=e;return s(t,n,r)}}},754011,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054);n.captureRequestError=function(e,t,n){r.withScope(a=>{a.setSDKProcessingMetadata({normalizedRequest:{headers:r.headersToDict(t.headers),method:t.method}}),a.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),a.setTransactionName(`${t.method} ${n.routePath}`),r.captureException(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),o.waitUntil(o.flushSafelyWithTimeout())})}},16300,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(902054),a=e.r(46423);n.wrapApiHandlerWithSentry=function(e,t){return new Proxy(e,{apply:(e,n,i)=>(a.dropNextjsRootContext(),a.escapeNextjsTracing(()=>{let[a,s]=i;return a?s?a.__withSentry_applied__?e.apply(n,i):(a.__withSentry_applied__=!0,r.withIsolationScope(l=>(r.getActiveSpan()?(e,t)=>t():r.continueTrace)({sentryTrace:a.headers&&r.isString(a.headers["sentry-trace"])?a.headers["sentry-trace"]:void 0,baggage:a.headers?.baggage},()=>{let u=`${(a.method||"GET").toUpperCase()} `,c=r.httpRequestToRequestData(a);return l.setSDKProcessingMetadata({normalizedRequest:c}),l.setTransactionName(`${u}${t}`),r.startSpanManual({name:`${u}${t}`,op:"http.server",forceTransaction:!0,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.nextjs"}},async t=>{s.end=new Proxy(s.end,{apply:(e,n,a)=>(r.setHttpStatus(t,s.statusCode),t.end(),o.waitUntil(o.flushSafelyWithTimeout()),e.apply(n,a))});try{return await e.apply(n,i)}catch(a){let n=r.objectify(a);throw r.captureException(n,{mechanism:{type:"auto.http.nextjs.api_handler",handled:!1,data:{wrapped_handler:e.name,function:"withSentry"}}}),r.setHttpStatus(t,500),t.end(),await o.flushSafelyWithTimeout(),n}})}))):(r.debug.log(`Wrapped API handler on route "${t}" was not passed a response object. Will not instrument.`),e.apply(n,i)):(r.debug.log(`Wrapped API handler on route "${t}" was not passed a request object. Will not instrument.`),e.apply(n,i))}))})}},301954,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(216835),o=e.r(513128),a=e.r(91242),i=e.r(441209);e.r(948326);let s=e.r(404606),l=e.r(662566),u=e.r(247089),c=e.r(902054),p=e.r(115227),_=e.r(172206),T=e.r(765331),S=e.r(362405),E=e.r(957894),d=e.r(225311),g=e.r(527706),A=e.r(656543),m=e.r(278534),R=e.r(116147),h=e.r(647520),f=e.r(867747),N=e.r(452407),I=e.r(324195),y=e.r(884587),b=e.r(979036),O=e.r(546923),C=e.r(799916),M=e.r(348339),L=e.r(762741),P=e.r(540554),U=e.r(35205),v=e.r(754011),D=e.r(16300);o.GLOBAL_OBJ,n.pinoIntegration=a.pinoIntegration,n.captureUnderscoreErrorException=A.captureUnderscoreErrorException,n.startInactiveSpan=m.startInactiveSpan,n.startSpan=m.startSpan,n.startSpanManual=m.startSpanManual,n.wrapGetStaticPropsWithSentry=R.wrapGetStaticPropsWithSentry,n.wrapGetInitialPropsWithSentry=h.wrapGetInitialPropsWithSentry,n.wrapAppGetInitialPropsWithSentry=f.wrapAppGetInitialPropsWithSentry,n.wrapDocumentGetInitialPropsWithSentry=N.wrapDocumentGetInitialPropsWithSentry,n.wrapErrorGetInitialPropsWithSentry=I.wrapErrorGetInitialPropsWithSentry,n.wrapGetServerSidePropsWithSentry=y.wrapGetServerSidePropsWithSentry,n.wrapServerComponentWithSentry=b.wrapServerComponentWithSentry,n.wrapRouteHandlerWithSentry=O.wrapRouteHandlerWithSentry,n.wrapApiHandlerWithSentryVercelCrons=C.wrapApiHandlerWithSentryVercelCrons,n.wrapMiddlewareWithSentry=M.wrapMiddlewareWithSentry,n.wrapPageComponentWithSentry=L.wrapPageComponentWithSentry,n.wrapGenerationFunctionWithSentry=P.wrapGenerationFunctionWithSentry,n.withServerActionInstrumentation=U.withServerActionInstrumentation,n.captureRequestError=v.captureRequestError,n.wrapApiHandlerWithSentry=D.wrapApiHandlerWithSentry,n.ErrorBoundary=e=>e.children?"function"==typeof e.children?e.children():e.children:null,n.createReduxEnhancer=function(){return e=>e},n.init=function(e){if(E.prepareSafeIdGeneratorContext(),u.isBuild())return;!i.DEBUG_BUILD&&e.debug&&console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.");let t=a.getDefaultIntegrations(e).filter(e=>"Http"!==e.name).concat(a.httpIntegration({disableIncomingRequestSpans:!0}));e.skipOpenTelemetrySetup||(process.env.NEXT_OTEL_FETCH_DISABLED="1"),t.push(_.distDirRewriteFramesIntegration({distDirName:".next"}));let n=function(){if(c.isCloudflareWaitUntilAvailable())return{runtime:{name:"cloudflare"}}}(),A={environment:e.environment||process.env.SENTRY_ENVIRONMENT||s.getVercelEnv(!1)||"production",release:"libi@0.1.8",defaultIntegrations:t,...e,...n},m=[/^GET (\/.*)?\/_next\/static\//,/\/__nextjs_original-stack-frame/,/^\/404$/,/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH) \/(404|_not-found)$/,/^NextServer\.getRequestHandler$/,{attributes:{[l.TRANSACTION_ATTR_SHOULD_DROP_TRANSACTION]:!0}}];if(A.ignoreSpans=[...A.ignoreSpans||[],...m],i.DEBUG_BUILD&&A.debug&&o.debug.enable(),i.DEBUG_BUILD&&o.debug.log("Initializing SDK..."),o.getClient()){i.DEBUG_BUILD&&o.debug.log("SDK already initialized");return}o.applySdkMetadata(A,"nextjs",["nextjs",n?"cloudflare":"node"]);let R=a.init(A);R?.on("beforeSampling",({spanAttributes:e},t)=>{("string"==typeof e[r.SEMATTRS_HTTP_TARGET]&&e[r.SEMATTRS_HTTP_TARGET].includes("sentry_key")&&e[r.SEMATTRS_HTTP_TARGET].includes("sentry_client")||"string"==typeof e[r.ATTR_URL_QUERY]&&e[r.ATTR_URL_QUERY].includes("sentry_key")&&e[r.ATTR_URL_QUERY].includes("sentry_client"))&&(t.decision=!1)}),R?.on("spanStart",S.handleOnSpanStart),R?.on("spanEnd",d.maybeCompleteCronCheckIn),R?.on("spanEnd",g.maybeCleanupQueueSpan),o.getGlobalScope().addEventProcessor(Object.assign((e,t)=>{if(void 0!==e.type)return e;let n=t.originalException;if("object"==typeof n&&null!==n&&"$$typeof"in n&&n.$$typeof===Symbol.for("react.postpone"))return null;let r=e.exception?.values?.[0]?.value;return r?.includes("Suspense Exception: This is not a real error!")||r?.includes("Suspense Exception: This is not a real error, and should not leak")?null:e},{id:"DropReactControlFlowErrors"})),R?.on("preprocessEvent",e=>{"transaction"===e.type&&e.contexts?.trace?.data&&T.enhanceHandleRequestRootSpan({attributes:e.contexts.trace.data,getName:()=>e.transaction,setName:t=>{e.transaction=t},setOp:t=>{e.contexts.trace.op=t}}),p.setUrlProcessingMetadata(e)}),R?.on("processSegmentSpan",e=>{let t=e.attributes??(e.attributes={});T.enhanceHandleRequestRootSpan({attributes:t,getName:()=>e.name,setName:t=>{e.name=t},setOp:e=>{t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]=e}})});try{o.getGlobalScope().setTag("turbopack",!0),o.getGlobalScope().setAttribute("turbopack",!0)}catch{}return i.DEBUG_BUILD&&o.debug.log("SDK successfully initialized"),R},n.showReportDialog=function(){},n.withErrorBoundary=function(e){return e},Object.prototype.hasOwnProperty.call(a,"__proto__")&&!Object.prototype.hasOwnProperty.call(n,"__proto__")&&Object.defineProperty(n,"__proto__",{enumerable:!0,value:a.__proto__}),Object.keys(a).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(n,e)||(n[e]=a[e])})},33115,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(522734),a=e.r(362562),i=e.r(814747);n.detectActiveBundler=function(){return"turbopack"},n.getNextjsVersion=function(){let e=function(){try{return a.createRequire(`${process.cwd()}/`).resolve("next/package.json")}catch{return}}();if(e)try{return JSON.parse(o.readFileSync(e,{encoding:"utf-8"})).version}catch{}},n.getPackageModules=function(e){try{let t=i.join(e,"package.json"),n=o.readFileSync(t,"utf8"),r=JSON.parse(n);return{...r.dependencies,...r.devDependencies}}catch{return{}}},n.requiresInstrumentationHook=function(e){if(!e)return!0;let{major:t,minor:n,patch:o,prerelease:a}=r.parseSemver(e);return void 0===t||void 0===n||void 0===o||!(t>=16)&&(t<15||!!a&&!(n>0)&&!(o>0)&&(a.startsWith("rc.")?0===parseInt(a.split(".")[1]||"0",10):!a.startsWith("canary.")||124>parseInt(a.split(".")[1]||"0",10)))},n.supportsNativeDebugIds=function(e){if(!e)return!1;let{major:t,minor:n,prerelease:o}=r.parseSemver(e);if(void 0===t||void 0===n)return!1;if(t>=16)return!0;if(15===t&&o?.startsWith("canary.")&&(n>6||6===n&&parseInt(o.split(".")[1]||"0",10)>=36))return!0;return!1},n.supportsProductionCompileHook=function(e){if(!e)return!1;let{major:t,minor:n,patch:o}=r.parseSemver(e);return void 0!==t&&void 0!==n&&void 0!==o&&(!!(t>15)||15===t&&(!!(n>4)||4===n&&!!(o>=1))||!1)},n.supportsTurbopackRuleCondition=function(e){if(!e)return!1;let{major:t}=r.parseSemver(e);return void 0!==t&&t>=16}},174425,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(233405),o=e.r(522734),a=e.r(814747);n.getGitRevision=function(){let e;try{e=r.execSync("git rev-parse HEAD",{stdio:["ignore","pipe","ignore"]}).toString().trim()}catch{}return e},n.getInstrumentationClientFileContents=function(){for(let e of[["src","instrumentation-client.ts"],["src","instrumentation-client.js"],["instrumentation-client.ts"],["instrumentation-client.js"]])try{return o.readFileSync(a.join(process.cwd(),...e),"utf-8")}catch{}},n.setUpBuildTimeVariables=function(e,t,n){let r=e.assetPrefix||e.basePath||"",o=e.basePath??"",a=void 0!==t.tunnelRoute&&"export"!==e.output&&"string"==typeof t.tunnelRoute?`${o}${t.tunnelRoute}`:void 0,i={_sentryRewriteFramesDistDir:e.distDir?.replace(/\\/g,"\\\\")||".next",_sentryRewriteFramesAssetPrefixPath:r?new URL(r,"http://dogs.are.great").pathname.replace(/\/$/,""):""};e.assetPrefix&&(i._assetsPrefix=e.assetPrefix),t._experimental?.thirdPartyOriginStackFrames&&(i._experimentalThirdPartyOriginStackFrames="true"),a&&(i._sentryRewritesTunnelPath=a),o&&(i._sentryBasePath=o),e.assetPrefix&&(i._sentryAssetPrefix=e.assetPrefix),t._experimental?.thirdPartyOriginStackFrames&&(i._experimentalThirdPartyOriginStackFrames="true"),n&&(i._sentryRelease=n),"object"==typeof e.env?e.env={...i,...e.env}:void 0===e.env&&(e.env=i)}},140637,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(33115);n.migrateDeprecatedWebpackOptions=function(e){e.webpack=e.webpack||{};let t=e.webpack,n=(e,t,n)=>(void 0!==t&&console.warn(n),e??t),o=(e,t)=>{let n=`[@sentry/nextjs] DEPRECATION WARNING: ${e} is deprecated and will be removed in a future version. Use ${t} instead.`;return"turbopack"===r.detectActiveBundler()&&t.startsWith("webpack.")?`${n} (Not supported with Turbopack.)`:n};t.autoInstrumentServerFunctions=n(t.autoInstrumentServerFunctions,e.autoInstrumentServerFunctions,o("autoInstrumentServerFunctions","webpack.autoInstrumentServerFunctions")),t.autoInstrumentMiddleware=n(t.autoInstrumentMiddleware,e.autoInstrumentMiddleware,o("autoInstrumentMiddleware","webpack.autoInstrumentMiddleware")),t.autoInstrumentAppDirectory=n(t.autoInstrumentAppDirectory,e.autoInstrumentAppDirectory,o("autoInstrumentAppDirectory","webpack.autoInstrumentAppDirectory")),t.excludeServerRoutes=n(t.excludeServerRoutes,e.excludeServerRoutes,o("excludeServerRoutes","webpack.excludeServerRoutes")),t.unstable_sentryWebpackPluginOptions=n(t.unstable_sentryWebpackPluginOptions,e.unstable_sentryWebpackPluginOptions,o("unstable_sentryWebpackPluginOptions","webpack.unstable_sentryWebpackPluginOptions")),t.disableSentryConfig=n(t.disableSentryConfig,e.disableSentryWebpackConfig,o("disableSentryWebpackConfig","webpack.disableSentryConfig")),void 0!==e.disableLogger&&(t.treeshake=t.treeshake||{},t.treeshake.removeDebugLogging=n(t.treeshake.removeDebugLogging,e.disableLogger,o("disableLogger","webpack.treeshake.removeDebugLogging"))),t.automaticVercelMonitors=n(t.automaticVercelMonitors,e.automaticVercelMonitors,o("automaticVercelMonitors","webpack.automaticVercelMonitors")),t.reactComponentAnnotation=n(t.reactComponentAnnotation,e.reactComponentAnnotation,o("reactComponentAnnotation","webpack.reactComponentAnnotation"))}},928692,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(814747),o={"webpack-nodejs":"[@sentry/nextjs - Node.js]","webpack-edge":"[@sentry/nextjs - Edge]","webpack-client":"[@sentry/nextjs - Client]","after-production-compile-webpack":"[@sentry/nextjs - After Production Compile (Webpack)]","after-production-compile-turbopack":"[@sentry/nextjs - After Production Compile (Turbopack)]"},a="server/**",i="server",s="static/chunks/**",l="static/chunks",u="static/chunks/pages/**",c="static/chunks/pages",p="static/chunks/app/**",_="static/chunks/app",T=["*.js.map","*.mjs.map","*.cjs.map","*.css.map"];function S(e){return e.replace(/\\/g,"/")}function E(e){return e.replace(/^webpack:\/\/(?:_N_E\/)?/,"")}n.getBuildPluginOptions=function({sentryBuildOptions:e,releaseName:t,distDirAbsPath:n,buildTool:d,useRunAfterProductionCompileHook:g}){var A,m;let R=S(n),h=o[d],f=e.widenClientFileUpload??!1,N=e.sourcemaps?.deleteSourcemapsAfterUpload??!1,I=function(e,t,n=!1){let o=[];return t.startsWith("after-production-compile")?(o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?i:a}({useDirectoryPath:!0}))),"after-production-compile-turbopack"===t||n?o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?l:s}({useDirectoryPath:!0}))):o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?c:u}({useDirectoryPath:!0})),r.posix.join(e,function({useDirectoryPath:e=!1}){return e?_:p}({useDirectoryPath:!0})))):"webpack-nodejs"===t||"webpack-edge"===t?o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?i:a}({useDirectoryPath:!1})),r.posix.join(e,"serverless/**")):"webpack-client"===t&&(n?o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?l:s}({useDirectoryPath:!1}))):o.push(r.posix.join(e,function({useDirectoryPath:e=!1}){return e?c:u}({useDirectoryPath:!1})),r.posix.join(e,function({useDirectoryPath:e=!1}){return e?_:p}({useDirectoryPath:!1})))),o}(R,d,f),y=(A=function(e,t=!1){let n=[];return t||n.push(r.posix.join(e,"static/chunks/main-*")),n.push(r.posix.join(e,"static/chunks/framework-*"),r.posix.join(e,"static/chunks/framework.*"),r.posix.join(e,"static/chunks/polyfills-*"),r.posix.join(e,"static/chunks/webpack-*"),"**/page_client-reference-manifest.js","**/server-reference-manifest.js","**/next-font-manifest.js","**/middleware-build-manifest.js","**/interception-route-rewrite-manifest.js","**/route_client-reference-manifest.js","**/middleware-react-loadable-manifest.js"),n}(R,f),(m=e.sourcemaps?.ignore)?[...A,...Array.isArray(m)?m:[m]]:A),b=e.sourcemaps?.filesToDeleteAfterUpload;e.debug&&void 0!==b&&console.debug("[@sentry/nextjs] Skipping auto-deletion of source maps as user has provided filesToDeleteAfterUpload:",b);let O=void 0!==b?Array.isArray(b)?b:[b]:function(e,t,n,o=!1){if(n&&"webpack-nodejs"!==t&&"webpack-edge"!==t&&("webpack-client"!==t||!o))return T.map(t=>r.posix.join(e,"static","**",t))}(R,d,N,g),C=function(e,t=!1){return t&&e.startsWith("webpack")}(d,g);return{applicationKey:e.applicationKey,authToken:e.authToken,headers:e.headers,org:e.org,project:e.project,telemetry:e.telemetry,debug:e.debug,errorHandler:e.errorHandler,reactComponentAnnotation:d.startsWith("after-production-compile")?void 0:{...e.webpack?.reactComponentAnnotation,...e.webpack?.unstable_sentryWebpackPluginOptions?.reactComponentAnnotation},silent:e.silent,url:e.sentryUrl,sourcemaps:{disable:!!C||(e.sourcemaps?.disable??!1),rewriteSources:e.sourcemaps?.rewriteSources??E,assets:e.sourcemaps?.assets??I,ignore:y,filesToDeleteAfterUpload:O,...e.webpack?.unstable_sentryWebpackPluginOptions?.sourcemaps},release:void 0!==t?{inject:!1,name:t,create:e.release?.create,finalize:e.release?.finalize,dist:e.release?.dist,vcsRemote:e.release?.vcsRemote,setCommits:e.release?.setCommits,deploy:e.release?.deploy,...e.webpack?.unstable_sentryWebpackPluginOptions?.release}:{inject:!1,create:!1,finalize:!1},bundleSizeOptimizations:{...e.bundleSizeOptimizations},_metaOptions:{loggerPrefixOverride:h,telemetry:{metaFramework:"nextjs"}},...e.webpack?.unstable_sentryWebpackPluginOptions}},n.normalizePathForGlob=S},337420,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(522734),a=e.r(814747),i=e.r(928692),s=/\n?\/\/[#@] sourceMappingURL=[^\n]+$/,l=/\n?\/\*[#@] sourceMappingURL=[^\n]+\*\/$/;async function u(e,t){let n;try{n=await o.promises.readdir(e,{recursive:!0}).then(e=>e.map(e=>String(e)))}catch{return}let r=n.filter(e=>e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")||e.endsWith(".css")),i=(await Promise.all(r.map(async t=>{let n=a.join(e,t);try{let e=await o.promises.readFile(n,"utf-8"),r=t.endsWith(".css"),a=e.replace(r?l:s,"");if(a!==e)return await o.promises.writeFile(n,a,"utf-8"),t}catch{}}))).filter(Boolean).length;t&&i>0&&console.debug(`[@sentry/nextjs] Stripped sourceMappingURL comments from ${String(i)} file(s) to prevent requests for deleted source maps.`)}n.handleRunAfterProductionCompile=async function({releaseName:e,distDir:n,buildTool:o,usesNativeDebugIds:s,sriEnabled:l},c){c.debug&&console.debug("[@sentry/nextjs] Running runAfterProductionCompile logic.");let{createSentryBuildPluginManager:p}=r.loadModule("@sentry/bundler-plugin-core",t)??{};if(!p)return void console.warn("[@sentry/nextjs] Could not load build manager package. Will not run runAfterProductionCompile logic.");let _=p(i.getBuildPluginOptions({sentryBuildOptions:c,releaseName:e,distDirAbsPath:n,buildTool:`after-production-compile-${o}`}),{buildTool:o,loggerPrefix:"[@sentry/nextjs - After Production Compile]"});await _.telemetry.emitBundlerPluginExecutionSignal(),await _.createRelease(),s||c.sourcemaps?.disable===!0||await _.injectDebugIds([n]),await _.uploadSourcemaps([n],{prepareArtifacts:!1}),await _.deleteArtifacts();let T=c.sourcemaps?.deleteSourcemapsAfterUpload??!1;T&&"turbopack"===o&&!l&&await u(a.join(n,"static"),c.debug),T&&"turbopack"===o&&l&&c.debug&&console.debug("[@sentry/nextjs] Skipping sourceMappingURL comment stripping because Subresource Integrity (SRI) is enabled.")},n.stripSourceMappingURLComments=u},660512,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(814747),o=e.r(33115);n.generateValueInjectionRules=function({routeManifest:e,nextJsVersion:t,tunnelPath:n,vercelCronsConfig:a}){let i=[],s={},l={},u={};t&&(s._sentryNextJsVersion=t),e&&(l._sentryRouteManifest=JSON.stringify(e)),n&&(s._sentryRewritesTunnelPath=n),a&&(u._sentryVercelCronsConfig=JSON.stringify(a)),u.__SENTRY_SERVER_MODULES__=o.getPackageModules(process.cwd()),Object.keys(s).length>0&&(l={...l,...s},u={...u,...s});let c=!!t&&o.supportsTurbopackRuleCondition(t);return Object.keys(l).length>0&&i.push({matcher:"**/instrumentation-client.*",rule:{...c?{condition:{not:"foreign"}}:{},loaders:[{loader:r.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config/turbopack","..","loaders","valueInjectionLoader.js"),options:{values:l}}]}}),Object.keys(u).length>0&&i.push({matcher:"**/instrumentation.*",rule:{...c?{condition:{not:"foreign"}}:{},loaders:[{loader:r.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config/turbopack","..","loaders","valueInjectionLoader.js"),options:{values:u}}]}}),i}},746809,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(814747),a=e.r(33115),i=e.r(660512);function s(e,{matcher:t,rule:n}){return e?e[t]?(r.debug.log(`[@sentry/nextjs] - Turbopack rule already exists for ${t}. Please remove it from your Next.js config in order for Sentry to work properly.`),e):{...e,[t]:n}:{[t]:n}}n.constructTurbopackConfig=function({userNextConfig:e,userSentryOptions:t,routeManifest:n,nextJsVersion:r,vercelCronsConfig:l}){let u=(a.supportsNativeDebugIds(r??"")&&e?.turbopack?.debugIds)??t?.sourcemaps?.disable!==!0,c={...e.turbopack,...u?{debugIds:!0}:{}},p=t?.tunnelRoute!==void 0&&"export"!==e.output&&"string"==typeof t.tunnelRoute?`${e.basePath??""}${t.tunnelRoute}`:void 0;for(let{matcher:e,rule:t}of i.generateValueInjectionRules({routeManifest:n,nextJsVersion:r,tunnelPath:p,vercelCronsConfig:l}))c.rules=s(c.rules,{matcher:e,rule:t});let _=t?.applicationKey??t?._experimental?.turbopackApplicationKey;_&&r&&a.supportsTurbopackRuleCondition(r)&&(c.rules=s(c.rules,{matcher:"*.{ts,tsx,js,jsx,mjs,cjs}",rule:{condition:{not:{path:/next\/dist\/build\/polyfills/}},loaders:[{loader:o.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config/turbopack","..","loaders","moduleMetadataInjectionLoader.js"),options:{applicationKey:_}}]}}));let T=t?._experimental?.turbopackReactComponentAnnotation;return T?.enabled&&r&&a.supportsTurbopackRuleCondition(r)&&(c.rules=s(c.rules,{matcher:"*.{tsx,jsx}",rule:{condition:{not:"foreign"},loaders:[{loader:o.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config/turbopack","..","loaders","componentAnnotationLoader.js"),options:{ignoredComponents:T.ignoredComponents??[]}}]}})),c},n.safelyAddTurbopackRule=s},577965,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(522734),a=e.r(362562),i=e.r(814747),s=e.r(928692),l=e.r(33115),u=!1;async function c(e,t){let{dir:n,dev:r}=t,a="function"==typeof e?await e():{...e},s=p(n),l=function(e){for(let t of[["src","instrumentation-client.js"],["src","instrumentation-client.ts"],["instrumentation-client.js"],["instrumentation-client.ts"]])if(o.existsSync(i.resolve(e,...t)))return i.join(...t)}(n),u=[];for(let e in s&&u.push(`./${s}`),l&&u.push(`./${l}`),a)("pages/_app"===e||"main-app"===e)&&function(e,t,n,r){let o=e[t],a=o;if("string"==typeof o||Array.isArray(o)){if((a=Array.isArray(o)?o:[o]).some(e=>n.includes(e)))return;r?a.push(...n):a.unshift(...n)}else if("object"==typeof o&&"import"in o){let e=o.import,t=Array.isArray(e)?e:[e];if(t.some(e=>n.includes(e)))return;r?t.push(...n):t.unshift(...n),a={...o,import:t}}else console.error("Sentry Logger [Error]:",`Could not inject SDK initialization code into entry point ${t}, as its current value is not in a recognized format.
23
23
  `,"Expected: string | Array<string> | { [key:string]: any, import: string | Array<string> }\n",`Got: ${o}`);a&&(e[t]=a)}(a,e,u,r);return a}function p(e){for(let t of["sentry.client.config.ts","sentry.client.config.js"])if(o.existsSync(i.resolve(e,t)))return t}let _=["next/dist/client/components/request-async-storage.js","next/dist/client/components/request-async-storage.external.js","next/dist/server/app-render/work-unit-async-storage.external.js","next/dist/client/components/work-unit-async-storage.external.js"];n.constructWebpackConfigFunction=function({userNextConfig:e={},userSentryOptions:n={},releaseName:T,routeManifest:S,nextJsVersion:E,useRunAfterProductionCompileHook:d,vercelCronsConfigResult:g}){return function(A,m){var R,h,f,N,I,y,b;let O,C,M,L,{isServer:P,dev:U,dir:v}=m,D=P?"edge"===m.nextRuntime?"edge":"server":"client",G=e.pageExtensions||["tsx","ts","jsx","js"],B=G.map(e=>`.${e}`),x=G.map(r.escapeStringForRegex).join("|"),V=E||l.getNextjsVersion(),{major:w}=r.parseSemver(V||""),k=function(e,t){for(let n of t.flatMap(e=>[["src",`instrumentation${e}`],[`instrumentation${e}`]]))try{return o.readFileSync(i.resolve(e,...n),{encoding:"utf-8"})}catch{}return null}(v,B.concat([".ts",".js"]));"client"!==D&&function(e,t,n){if(!(t&&(t.includes("@sentry/")||t.match(/sentry\.(server|edge)\.config(\.(ts|js))?/))))for(let t of[`sentry.${n}.config.ts`,`sentry.${n}.config.js`])o.existsSync(i.resolve(e,t))&&console.warn(`[@sentry/nextjs] It appears you've configured a \`${t}\` file. Please ensure to put this file's content into the \`register()\` function of a Next.js instrumentation file instead. To ensure correct functionality of the SDK, \`Sentry.init\` must be called inside of an instrumentation file. Learn more about setting up an instrumentation file in Next.js: https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation. You can safely delete the \`${t}\` file afterward.`)}(v,k,D),"server"===D&&w&&w>=15&&function(e){if(!e){process.env.SENTRY_SUPPRESS_INSTRUMENTATION_FILE_WARNING||console.warn("[@sentry/nextjs] Could not find a Next.js instrumentation file. This indicates an incomplete configuration of the Sentry SDK. An instrumentation file is required for the Sentry SDK to be initialized on the server: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#create-initialization-config-files (you can suppress this warning by setting SENTRY_SUPPRESS_INSTRUMENTATION_FILE_WARNING=1 as environment variable)");return}e.includes("onRequestError")||console.warn("[@sentry/nextjs] Could not find `onRequestError` hook in instrumentation file. This indicates outdated configuration of the Sentry SDK. Use `Sentry.captureRequestError` to instrument the `onRequestError` hook: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#errors-from-nested-react-server-components")}(k);let H={...A};"webpack"in e&&"function"==typeof e.webpack&&(H=e.webpack(H,m));let Y=((R=H).module={...R.module,rules:[...R.module?.rules||[]]},R),{strategy:F,config:W}=g;(function({newConfig:e,userNextConfig:t,userSentryOptions:n,buildContext:r,releaseName:o,routeManifest:a,nextJsVersion:s,vercelCronsConfig:l}){let u=t.assetPrefix||t.basePath||"",c=n.release?.create!==!1,p=o&&c?o:void 0,_={_sentryRewritesTunnelPath:void 0!==n.tunnelRoute&&"export"!==t.output&&"string"==typeof n.tunnelRoute?`${t.basePath??""}${n.tunnelRoute}`:void 0,SENTRY_RELEASE:p&&!r.dev?{id:p}:void 0,_sentryBasePath:r.dev?t.basePath:void 0,_sentryNextJsVersion:s},T={..._,_sentryRewriteFramesDistDir:t.distDir?.replace(/\\/g,"\\\\")||".next",_sentryVercelCronsConfig:l?JSON.stringify(l):void 0},S={..._,_sentryRewriteFramesAssetPrefixPath:u?new URL(u,"http://dogs.are.great").pathname.replace(/\/$/,""):"",_sentryAssetPrefix:t.assetPrefix,_sentryExperimentalThirdPartyOriginStackFrames:n._experimental?.thirdPartyOriginStackFrames?"true":void 0,_sentryRouteManifest:JSON.stringify(a)};r.isServer?e.module.rules.push({test:/(src[\\/])?instrumentation.(js|ts)/,use:[{loader:i.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config","loaders/valueInjectionLoader.js"),options:{values:T}}]}):e.module.rules.push({test:/(?:sentry\.client\.config\.(jsx?|tsx?)|(?:src[\\/])?instrumentation-client\.(js|ts))$/,use:[{loader:i.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config","loaders/valueInjectionLoader.js"),options:{values:S}}]})})({newConfig:Y,userNextConfig:e,userSentryOptions:n,buildContext:m,releaseName:T,routeManifest:S,nextJsVersion:E,vercelCronsConfig:"spans"===F?W:void 0}),h=Y,O=[(e,t)=>{try{if(!e.module)return!1;let n=/@opentelemetry\/instrumentation/.test(e.module.readableIdentifier(t.requestShortener))||/@prisma\/instrumentation/.test(e.module.readableIdentifier(t.requestShortener)),r=/Critical dependency/.test(e.message);return n&&r}catch{return!1}},{module:/@opentelemetry\/instrumentation/,message:/Critical dependency/},{module:/@prisma\/instrumentation/,message:/Critical dependency/},{module:/require-in-the-middle/,message:/Critical dependency/}],void 0===h.ignoreWarnings?h.ignoreWarnings=O:Array.isArray(h.ignoreWarnings)&&h.ignoreWarnings.push(...O),w&&13===w&&"edge"===D&&U&&(f=Y,N=m,f.plugins=f.plugins||[],f.plugins.push(new N.webpack.ProvidePlugin({performance:[i.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config","polyfills","perf_hooks.js"),"performance"]})),f.resolve=f.resolve||{},f.resolve.alias={...f.resolve.alias,perf_hooks:i.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config","polyfills","perf_hooks.js")});let j=i.join(v,"pages"),K=i.join(v,"src","pages");o.existsSync(j)&&o.lstatSync(j).isDirectory()?M=j:o.existsSync(K)&&o.lstatSync(K).isDirectory()&&(M=K);let X=i.join(v,"app"),Z=i.join(v,"src","app");o.existsSync(X)&&o.lstatSync(X).isDirectory()?L=X:o.existsSync(Z)&&o.lstatSync(Z).isDirectory()&&(L=Z);let J=M?i.join(M,"api"):void 0,Q=M?i.join(M,".."):L?i.join(L,".."):v,z={appDir:L,pagesDir:M,pageExtensionRegex:x,excludeServerRoutes:n.webpack?.excludeServerRoutes,nextjsRequestAsyncStorageModulePath:function(e,t){if(void 0!==t)for(let n of t.map(t=>i.resolve(e,t))){let e=function(e){try{return i.dirname(a.createRequire(`${e}/`).resolve("next/package.json"))}catch{return}}(n);if(e){let t=_.find(t=>o.existsSync(i.join(e,"..",t)));if(t)return t}}}(v,H.resolve?.modules),isDev:U},$=e=>{let t;return t=i.isAbsolute(e)?e:i.join(v,e),i.normalize(t)},q=G.flatMap(e=>[i.join(Q,`middleware.${e}`),i.join(Q,`proxy.${e}`)]);if(P&&n.webpack?.autoInstrumentServerFunctions!==!1){Y.module.rules.unshift({test:e=>{let t=$(e);return void 0!==M&&t.startsWith(M+i.sep)&&!t.startsWith(J+i.sep)&&B.some(e=>t.endsWith(e))},use:[{loader:i.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config","loaders","wrappingLoader.js"),options:{...z,wrappingTargetKind:"page"}}]}),Y.module.rules.unshift({test:e=>{let t=$(e);return t.startsWith(J+i.sep)&&B.some(e=>t.endsWith(e))},use:[{loader:i.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config","loaders","wrappingLoader.js"),options:{...z,vercelCronsConfig:"wrapper"===F?W:void 0,wrappingTargetKind:"api-route"}}]});let t="standalone"!==e.output||!w||w<16;(n.webpack?.autoInstrumentMiddleware??!0)&&t&&Y.module.rules.unshift({test:e=>{let t=$(e);return q.includes(t)},use:[{loader:i.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config","loaders","wrappingLoader.js"),options:{...z,wrappingTargetKind:"middleware"}}]})}if(P&&n.webpack?.autoInstrumentAppDirectory!==!1&&(Y.module.rules.unshift({test:e=>{let t=$(e);return void 0!==L&&t.startsWith(L+i.sep)&&!!t.match(RegExp(`[\\\\/](page|layout|loading|head|not-found)\\.(${x})$`))},use:[{loader:i.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config","loaders","wrappingLoader.js"),options:{...z,wrappingTargetKind:"server-component"}}]}),Y.module.rules.unshift({test:e=>{let t=$(e);return void 0!==L&&t.startsWith(L+i.sep)&&!!t.match(RegExp(`[\\\\/]route\\.(${x})$`))},use:[{loader:i.resolve("/ROOT/node_modules/@sentry/nextjs/build/cjs/config","loaders","wrappingLoader.js"),options:{...z,wrappingTargetKind:"route-handler"}}]})),L&&(G.map(e=>`global-error.${e}`).some(e=>o.existsSync(i.join(L,e)))||u||process.env.SENTRY_SUPPRESS_GLOBAL_ERROR_HANDLER_FILE_WARNING||(console.log("[@sentry/nextjs] It seems like you don't have a global error handler set up. It is recommended that you add a 'global-error.js' file with Sentry instrumentation so that React rendering errors are reported to Sentry. Read more: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#react-render-errors-in-app-router (you can suppress this warning by setting SENTRY_SUPPRESS_GLOBAL_ERROR_HANDLER_FILE_WARNING=1 as environment variable)"),u=!0)),!P){let e=Y.entry;Y.entry=async()=>c(e,m);let t=p(v);t&&console.warn(`[@sentry/nextjs] DEPRECATION WARNING: It is recommended renaming your \`${t}\` file, or moving its content to \`instrumentation-client.ts\`. When using Turbopack \`${t}\` will no longer work. Read more about the \`instrumentation-client.ts\` file: https://nextjs.org/docs/app/api-reference/file-conventions/instrumentation-client`)}let ee=e?.output==="export";if(!(U||ee&&P)){let{sentryWebpackPlugin:e}=r.loadModule("@sentry/webpack-plugin",t)??{};if(e){!n.sourcemaps?.disable&&(Y.devtool||(r.debug.log(`[@sentry/nextjs] Automatically enabling source map generation for ${D} build.`),P?Y.devtool="source-map":Y.devtool="hidden-source-map"),P||n.sourcemaps?.deleteSourcemapsAfterUpload!==void 0||(r.debug.warn("[@sentry/nextjs] Source maps will be automatically deleted after being uploaded to Sentry. If you want to keep the source maps, set the `sourcemaps.deleteSourcemapsAfterUpload` option to false in `withSentryConfig()`. If you do not want to generate and upload sourcemaps at all, set the `sourcemaps.disable` option to true."),n.sourcemaps={...n.sourcemaps,deleteSourcemapsAfterUpload:!0})),Y.plugins=Y.plugins||[];let{config:t,dir:o,nextRuntime:a}=m,l=s.normalizePathForGlob(o),u=s.normalizePathForGlob(t.distDir??".next"),c=i.posix.join(l,u),p=e(s.getBuildPluginOptions({sentryBuildOptions:n,releaseName:T,distDirAbsPath:c,buildTool:P?"edge"===a?"webpack-edge":"webpack-nodejs":"webpack-client",useRunAfterProductionCompileHook:d}));p._name="sentry-webpack-plugin",Y.plugins.push(p)}}return n.webpack?.treeshake&&(I=n,y=Y,b=m,C={},y.plugins=y.plugins||[],I.webpack?.treeshake?.removeDebugLogging&&(C.__SENTRY_DEBUG__=!1),I.webpack?.treeshake?.removeTracing&&(C.__SENTRY_TRACING__=!1),I.webpack?.treeshake?.excludeReplayIframe&&(C.__RRWEB_EXCLUDE_IFRAME__=!0),I.webpack?.treeshake?.excludeReplayShadowDOM&&(C.__RRWEB_EXCLUDE_SHADOW_DOM__=!0),I.webpack?.treeshake?.excludeReplayCompressionWorker&&(C.__SENTRY_EXCLUDE_REPLAY_WORKER__=!0),Object.keys(C).length>0&&y.plugins.push(new b.webpack.DefinePlugin(C))),Y.plugins=Y.plugins||[],Y.plugins.push(new m.webpack.DefinePlugin({__SENTRY_SERVER_MODULES__:JSON.stringify(l.getPackageModules(v))})),Y}}},271442,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),n.DEFAULT_SERVER_EXTERNAL_PACKAGES=["amqplib","connect","dataloader","express","generic-pool","graphql","@hapi/hapi","ioredis","kafkajs","koa","lru-memoizer","mongodb","mongoose","mysql","mysql2","knex","pg","pg-pool","@node-redis/client","@redis/client","redis","tedious"]},51186,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(337420),o=e.r(746809),a=e.r(33115),i=e.r(577965),s=e.r(271442);n.getBundlerInfo=function(e){let t=a.detectActiveBundler();return{isTurbopack:"turbopack"===t,isWebpack:"webpack"===t,isTurbopackSupported:a.supportsProductionCompileHook(e??"")}},n.getServerExternalPackagesPatch=function(e,t){return t&&t>=15?{serverExternalPackages:[...e.serverExternalPackages||[],...s.DEFAULT_SERVER_EXTERNAL_PACKAGES]}:{experimental:{...e.experimental,serverComponentsExternalPackages:[...e.experimental?.serverComponentsExternalPackages||[],...s.DEFAULT_SERVER_EXTERNAL_PACKAGES]}}},n.getTurbopackPatch=function(e,t){return e.isTurbopackSupported&&e.isTurbopack?{turbopack:t}:{}},n.getWebpackPatch=function({incomingUserNextConfigObject:e,userSentryOptions:t,releaseName:n,routeManifest:r,nextJsVersion:o,shouldUseRunAfterProductionCompileHook:a,bundlerInfo:s,vercelCronsConfigResult:l}){return!s.isWebpack||t.webpack?.disableSentryConfig?{}:{webpack:i.constructWebpackConfigFunction({userNextConfig:e,userSentryOptions:t,releaseName:n,routeManifest:r,nextJsVersion:o,useRunAfterProductionCompileHook:a,vercelCronsConfigResult:l})}},n.maybeConstructTurbopackConfig=function(e,t,n,r,a,i){if(!a.isTurbopack)return;let s="spans"===i.strategy?i.config:void 0;return o.constructTurbopackConfig({userNextConfig:e,userSentryOptions:t,routeManifest:n,nextJsVersion:r,vercelCronsConfig:s})},n.maybeEnableTurbopackSourcemaps=function(e,t,n){!n.isTurbopackSupported||!n.isTurbopack||t.sourcemaps?.disable||void 0!==e.productionBrowserSourceMaps||(t.debug&&console.log("[@sentry/nextjs] Automatically enabling browser source map generation for turbopack build."),e.productionBrowserSourceMaps=!0,t.sourcemaps?.deleteSourcemapsAfterUpload===void 0&&(t.debug&&console.warn("[@sentry/nextjs] Source maps will be automatically deleted after being uploaded to Sentry. If you want to keep the source maps, set the `sourcemaps.deleteSourcemapsAfterUpload` option to false in `withSentryConfig()`. If you do not want to generate and upload sourcemaps at all, set the `sourcemaps.disable` option to true."),t.sourcemaps={...t.sourcemaps,deleteSourcemapsAfterUpload:!0}))},n.maybeSetUpRunAfterProductionCompileHook=function({incomingUserNextConfigObject:e,userSentryOptions:t,releaseName:n,nextJsVersion:o,bundlerInfo:i,turboPackConfig:s,shouldUseRunAfterProductionCompileHook:l}){if(l&&a.supportsProductionCompileHook(o??"")){if(e?.compiler?.runAfterProductionCompile===void 0){e.compiler??(e.compiler={}),e.compiler.runAfterProductionCompile=async({distDir:o})=>{await r.handleRunAfterProductionCompile({releaseName:n,distDir:o,buildTool:i.isTurbopack?"turbopack":"webpack",usesNativeDebugIds:i.isTurbopack?s?.debugIds:void 0,sriEnabled:!!e.experimental?.sri},t)};return}if("function"==typeof e.compiler.runAfterProductionCompile){e.compiler.runAfterProductionCompile=new Proxy(e.compiler.runAfterProductionCompile,{async apply(o,a,l){let{distDir:u}=l[0]??{distDir:".next"};await o.apply(a,l),await r.handleRunAfterProductionCompile({releaseName:n,distDir:u,buildTool:i.isTurbopack?"turbopack":"webpack",usesNativeDebugIds:i.isTurbopack?s?.debugIds:void 0,sriEnabled:!!e.experimental?.sri},t)}});return}console.warn("[@sentry/nextjs] The configured `compiler.runAfterProductionCompile` option is not a function. Will not run source map and release management logic.")}},n.maybeWarnAboutUnsupportedRunAfterProductionCompileHook=function(e,t,n){t.useRunAfterProductionCompileHook&&!a.supportsProductionCompileHook(e??"")&&n.isWebpack&&console.warn("[@sentry/nextjs] The configured `useRunAfterProductionCompileHook` option is not compatible with your current Next.js version. This option is only supported on Next.js version 15.4.1 or later. Will not run source map and release management logic.")},n.maybeWarnAboutUnsupportedTurbopack=function(e,t){!t.isTurbopackSupported&&t.isTurbopack&&console.warn(`[@sentry/nextjs] WARNING: You are using the Sentry SDK with Turbopack. The Sentry SDK is compatible with Turbopack on Next.js version 15.4.1 or later. You are currently on ${e}. Please upgrade to a newer Next.js version to use the Sentry SDK with Turbopack.`)},n.resolveUseRunAfterProductionCompileHookOption=function(e,t){return e.useRunAfterProductionCompileHook??!!t.isTurbopack}},347291,(e,t,n)=>{let r;Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let o=e.r(522734),a=e.r(814747),i=null,s=null;n.createRouteManifest=function(e){let t;if(e?.appDirPath)t=e.appDirPath;else{let e=process.cwd(),n=a.join(e,"app"),r=a.join(e,"src","app");o.existsSync(n)&&o.lstatSync(n).isDirectory()?t=n:o.existsSync(r)&&o.lstatSync(r).isDirectory()&&(t=r)}if(!t)return{isrRoutes:[],dynamicRoutes:[],staticRoutes:[]};if(i&&s===t&&r===e?.includeRouteGroups)return i;let{dynamicRoutes:n,staticRoutes:l,isrRoutes:u}=function e(t,n="",r=!1){let i=[],s=[],l=[];try{let c=o.readdirSync(t,{withFileTypes:!0}),p=c.find(e=>{var t;return t=e.name,"page.tsx"===t||"page.jsx"===t||"page.ts"===t||"page.js"===t});if(p){let e=r?n||"/":(n||"/").replace(/\/\((?=[^)/]*\))[^)/]+\)/g,""),u=e.includes(":"),c=a.join(t,p.name);if(function(e){try{let t=o.readFileSync(e,"utf8");return/export\s+(async\s+)?function\s+generateStaticParams|export\s+const\s+generateStaticParams/.test(t)}catch{return!1}}(c)&&l.push(e),u){let{regex:t,paramNames:n,hasOptionalPrefix:r}=function(e){let t,n,r=e.split("/").filter(Boolean),o=[],a=[],i=!1;for(let e of r)if(e.startsWith(":")){let t=e.substring(1);if(t.endsWith("*?")){let e=t.slice(0,-2);a.push(e),i=!0}else if(t.endsWith("*")){let e=t.slice(0,-1);a.push(e),o.push("(.+)")}else a.push(t),o.push("([^/]+)")}else o.push(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));if(i)if(0===o.length)n="^/(.*)$";else{let e=o.join("/");n=`^/${e}(?:/(.*))?$`}else n=`^/${o.join("/")}$`;return{regex:n,paramNames:a,hasOptionalPrefix:(t=a[0],void 0!==t&&("locale"===t||"lang"===t||"language"===t))}}(e);i.push({path:e,regex:t,paramNames:n,hasOptionalPrefix:r})}else s.push({path:e})}for(let o of c)if(o.isDirectory()){var u;let c,p=a.join(t,o.name),_=o.name.startsWith("[")&&o.name.endsWith("]"),T=(c=(u=o.name).startsWith("(")&&u.endsWith(")")?r?o.name:"":_?function(e){if(e.startsWith("[[...")&&e.endsWith("]]")){let t=e.slice(5,-2);return`:${t}*?`}if(e.startsWith("[...")&&e.endsWith("]")){let t=e.slice(4,-1);return`:${t}*`}return`:${e.slice(1,-1)}`}(o.name):o.name)?`${n}/${c}`:n,S=e(p,T,r);i.push(...S.dynamicRoutes),s.push(...S.staticRoutes),l.push(...S.isrRoutes)}}catch(e){console.warn("Error building route manifest:",e)}return{dynamicRoutes:i,staticRoutes:s,isrRoutes:l}}(t,e?.basePath,e?.includeRouteGroups),c={dynamicRoutes:n,staticRoutes:l,isrRoutes:u};return i=c,s=t,r=e?.includeRouteGroups,c}},840267,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128);n.resolveTunnelRoute=function(e){let t;if(process.env.__SENTRY_TUNNEL_ROUTE__)return process.env.__SENTRY_TUNNEL_ROUTE__;let n="string"==typeof e?e:(t=r._INTERNAL_safeMathRandom().toString(36).substring(2,10),`/${t}`);return n&&(process.env.__SENTRY_TUNNEL_ROUTE__=n),n},n.setUpTunnelRewriteRules=function(e,t){let n=e.rewrites,r=process.env._SENTRY_TUNNEL_DESTINATION_OVERRIDE,o=r||"https://o:orgid.ingest.sentry.io/api/:projectid/envelope/?hsts=0",a=r||"https://o:orgid.ingest.:region.sentry.io/api/:projectid/envelope/?hsts=0";e.rewrites=async(...e)=>{let r={source:`${t}(/?)`,has:[{type:"query",key:"o",value:"(?<orgid>\\d*)"},{type:"query",key:"p",value:"(?<projectid>\\d*)"}],destination:o},i=[{source:`${t}(/?)`,has:[{type:"query",key:"o",value:"(?<orgid>\\d*)"},{type:"query",key:"p",value:"(?<projectid>\\d*)"},{type:"query",key:"r",value:"(?<region>[a-z]{2})"}],destination:a},r];if("function"!=typeof n)return i;let s=await n(...e);return Array.isArray(s)?[...i,...s]:{...s,beforeFiles:[...i,...s.beforeFiles||[]]}}}},437077,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(91242),a=e.r(522734),i=e.r(814747),s=e.r(347291),l=e.r(33115),u=e.r(174425),c=e.r(840267),p=!1,_=!1;function T(e,t){if(!t)return e;let n=e=>"function"==typeof t?t(e):t.some(t=>r.isMatchingPattern(e,t));return{staticRoutes:e.staticRoutes.filter(e=>!n(e.path)),dynamicRoutes:e.dynamicRoutes.filter(e=>!n(e.path)),isrRoutes:e.isrRoutes.filter(e=>!n(e))}}n.filterRouteManifest=T,n.getNextMajor=function(e){if(!e)return;let{major:t}=r.parseSemver(e);return t},n.maybeCreateRouteManifest=function(e,t){if(t.disableManifestInjection&&console.warn("[@sentry/nextjs] The `disableManifestInjection` option is deprecated. Use `routeManifestInjection: false` instead."),!1!==t.routeManifestInjection&&(void 0!==t.routeManifestInjection||!t.disableManifestInjection))return T(s.createRouteManifest({basePath:e.basePath}),t.routeManifestInjection?.exclude)},n.maybeGetVercelCronsConfig=function(e){let t={config:void 0,strategy:void 0};if(!process.env.VERCEL)return t;let n=e._experimental?.vercelCronsMonitoring===!0,o=e.webpack?.automaticVercelMonitors===!0;if(!n&&!o)return t;let s=function(){try{let e=i.join(process.cwd(),"vercel.json"),t=a.readFileSync(e,"utf8"),n=JSON.parse(t).crons;if(n&&Array.isArray(n)&&n.length>0)return n;return}catch(e){if("ENOENT"===e.code)return;r.debug.error("[@sentry/nextjs] Failed to read vercel.json for automatic cron job monitoring instrumentation",e);return}}();return s&&(t.config=s,n&&o?(r.debug.warn("[@sentry/nextjs] Both '_experimental.vercelCronsMonitoring' and 'webpack.automaticVercelMonitors' are enabled. Using the new span-based approach from '_experimental.vercelCronsMonitoring'. You can remove 'webpack.automaticVercelMonitors' from your config."),t.strategy="spans"):n?(r.debug.log("[@sentry/nextjs] Creating Sentry cron monitors for your Vercel Cron Jobs using span-based instrumentation."),t.strategy="spans"):(r.debug.log("[@sentry/nextjs] Creating Sentry cron monitors for your Vercel Cron Jobs. You can disable this feature by setting the 'automaticVercelMonitors' option to false in your Next.js config."),t.strategy="wrapper")),t},n.maybeSetClientTraceMetadataOption=function(e,t){if(t){let{major:n,minor:o}=r.parseSemver(t);void 0!==n&&void 0!==o&&(n>=15||14===n&&o>=3)&&(e.experimental=e.experimental||{},e.experimental.clientTraceMetadata=["baggage","sentry-trace",...e.experimental?.clientTraceMetadata||[]])}else console.log("[@sentry/nextjs] The Sentry SDK was not able to determine your Next.js version. If you are using Next.js version 15 or greater, please add `experimental.clientTraceMetadata: ['sentry-trace', 'baggage']` to your Next.js config to enable pageload tracing for App Router.")},n.maybeSetInstrumentationHookOption=function(e,t){if(t&&l.requiresInstrumentationHook(t)){e.experimental?.instrumentationHook===!1&&console.warn("[@sentry/nextjs] You turned off the `experimental.instrumentationHook` option. Note that Sentry will not be initialized if you did not set it up inside `instrumentation.(js|ts)`."),e.experimental={instrumentationHook:!0,...e.experimental};return}t||(e.experimental&&"instrumentationHook"in e.experimental?!1===e.experimental.instrumentationHook&&console.warn("[@sentry/nextjs] You set `experimental.instrumentationHook` to `false`. If you are using Next.js version 15 or greater, you can remove that option. If you are using Next.js version 14 or lower, you need to set `experimental.instrumentationHook` in your `next.config.(js|mjs)` to `true` for the SDK to be properly initialized in combination with `instrumentation.(js|ts)`."):(console.log("[@sentry/nextjs] The Sentry SDK was not able to determine your Next.js version. If you are using Next.js version 15 or greater, Next.js will probably show you a warning about the `experimental.instrumentationHook` being set. To silence Next.js' warning, explicitly set the `experimental.instrumentationHook` option in your `next.config.(js|mjs|ts)` to `undefined`. If you are on Next.js version 14 or lower, you can silence this particular warning by explicitly setting the `experimental.instrumentationHook` option in your `next.config.(js|mjs)` to `true`."),e.experimental={instrumentationHook:!0,...e.experimental}))},n.maybeSetUpTunnelRouteRewriteRules=function(e,t){if(!t.tunnelRoute)return;if("export"===e.output){p||(p=!0,console.warn("[@sentry/nextjs] The Sentry Next.js SDK `tunnelRoute` option will not work in combination with Next.js static exports. The `tunnelRoute` option uses server-side features that cannot be accessed in export mode. If you still want to tunnel Sentry events, set up your own tunnel: https://docs.sentry.io/platforms/javascript/troubleshooting/#using-the-tunnel-option"));return}let n=c.resolveTunnelRoute(t.tunnelRoute);t.tunnelRoute=n||void 0,c.setUpTunnelRewriteRules(e,n)},n.resolveReleaseName=function(e){return e.release?.create!==!1?e.release?.name??o.getSentryRelease()??u.getGitRevision():e.release?.name},n.shouldReturnEarlyInExperimentalBuildMode=function(){return!!process.argv.includes("--experimental-build-mode")&&(_||(_=!0,console.warn("[@sentry/nextjs] The Sentry Next.js SDK does not currently fully support next build --experimental-build-mode")),process.argv.includes("generate"))},n.warnIfMissingOnRouterTransitionStartHook=function(e){let t=u.getInstrumentationClientFileContents();void 0===t||t.includes("onRouterTransitionStart")||e.suppressOnRouterTransitionStartWarning||console.warn("[@sentry/nextjs] ACTION REQUIRED: To instrument navigations, the Sentry SDK requires you to export an `onRouterTransitionStart` hook from your `instrumentation-client.(js|ts)` file. You can do so by adding `export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;` to the file.")}},992787,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(33115),o=e.r(174425),a=e.r(140637),i=e.r(51186),s=e.r(437077);n.getFinalConfigObject=function(e,t){a.migrateDeprecatedWebpackOptions(t);let n=s.resolveReleaseName(t);if(s.maybeSetUpTunnelRouteRewriteRules(e,t),s.shouldReturnEarlyInExperimentalBuildMode())return e;let l=s.maybeCreateRouteManifest(e,t),u=s.maybeGetVercelCronsConfig(t);o.setUpBuildTimeVariables(e,t,n);let c=r.getNextjsVersion(),p=s.getNextMajor(c);s.maybeSetClientTraceMetadataOption(e,c),s.maybeSetInstrumentationHookOption(e,c),s.warnIfMissingOnRouterTransitionStartHook(t);let _=i.getBundlerInfo(c);i.maybeWarnAboutUnsupportedTurbopack(c,_),i.maybeWarnAboutUnsupportedRunAfterProductionCompileHook(c,t,_);let T=i.maybeConstructTurbopackConfig(e,t,l,c,_,u),S=i.resolveUseRunAfterProductionCompileHookOption(t,_);return i.maybeSetUpRunAfterProductionCompileHook({incomingUserNextConfigObject:e,userSentryOptions:t,releaseName:n,nextJsVersion:c,bundlerInfo:_,turboPackConfig:T,shouldUseRunAfterProductionCompileHook:S}),i.maybeEnableTurbopackSourcemaps(e,t,_),{...e,...i.getServerExternalPackagesPatch(e,p),...i.getWebpackPatch({incomingUserNextConfigObject:e,userSentryOptions:t,releaseName:n,routeManifest:l,nextJsVersion:c,shouldUseRunAfterProductionCompileHook:S,bundlerInfo:_,vercelCronsConfigResult:u}),...i.getTurbopackPatch(_,T)}}},789530,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(513128),o=e.r(992787);n.withSentryConfig=function(e,t={}){let n=e||{};return"function"==typeof n?function(...e){let a=n.apply(this,e);return r.isThenable(a)?a.then(e=>o.getFinalConfigObject(e,t)):o.getFinalConfigObject(a,t)}:o.getFinalConfigObject(n,t)}},244018,(e,t,n)=>{Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});let r=e.r(301954),o=e.r(91242),a=e.r(754011),i=e.r(656543),s=e.r(278534),l=e.r(789530),u=e.r(35205),c=e.r(16300),p=e.r(799916),_=e.r(867747),T=e.r(452407),S=e.r(324195),E=e.r(540554),d=e.r(647520),g=e.r(884587),A=e.r(116147),m=e.r(348339),R=e.r(762741),h=e.r(546923),f=e.r(979036);n.ErrorBoundary=r.ErrorBoundary,n.createReduxEnhancer=r.createReduxEnhancer,n.init=r.init,n.showReportDialog=r.showReportDialog,n.withErrorBoundary=r.withErrorBoundary,n.pinoIntegration=o.pinoIntegration,n.captureRequestError=a.captureRequestError,n.captureUnderscoreErrorException=i.captureUnderscoreErrorException,n.startInactiveSpan=s.startInactiveSpan,n.startSpan=s.startSpan,n.startSpanManual=s.startSpanManual,n.withSentryConfig=l.withSentryConfig,n.withServerActionInstrumentation=u.withServerActionInstrumentation,n.wrapApiHandlerWithSentry=c.wrapApiHandlerWithSentry,n.wrapApiHandlerWithSentryVercelCrons=p.wrapApiHandlerWithSentryVercelCrons,n.wrapAppGetInitialPropsWithSentry=_.wrapAppGetInitialPropsWithSentry,n.wrapDocumentGetInitialPropsWithSentry=T.wrapDocumentGetInitialPropsWithSentry,n.wrapErrorGetInitialPropsWithSentry=S.wrapErrorGetInitialPropsWithSentry,n.wrapGenerationFunctionWithSentry=E.wrapGenerationFunctionWithSentry,n.wrapGetInitialPropsWithSentry=d.wrapGetInitialPropsWithSentry,n.wrapGetServerSidePropsWithSentry=g.wrapGetServerSidePropsWithSentry,n.wrapGetStaticPropsWithSentry=A.wrapGetStaticPropsWithSentry,n.wrapMiddlewareWithSentry=m.wrapMiddlewareWithSentry,n.wrapPageComponentWithSentry=R.wrapPageComponentWithSentry,n.wrapRouteHandlerWithSentry=h.wrapRouteHandlerWithSentry,n.wrapServerComponentWithSentry=f.wrapServerComponentWithSentry,Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(n,"__proto__")&&Object.defineProperty(n,"__proto__",{enumerable:!0,value:o.__proto__}),Object.keys(o).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(n,e)||(n[e]=o[e])})}];
24
24
 
25
- //# debugId=13a22d65-f739-c8ba-3d2b-55863a0ac923
25
+ //# debugId=0318912e-f27f-c590-a9da-d4a122810be1
26
26
  //# sourceMappingURL=node_modules_003ody_._.js.map