PageSourceSearch

https://lifehacker.ru/_nuxt/v7.12-C5j4oYj7.js

js lifehacker.ru collected 2026-09-24 08:29:41 UTC 37,685 bytes, 10 lines download raw bytes

1import{c as re,d as vt,S as je,a as We,m as bt,D as m,b as p,u as C,e as fe,f as se,g as pe,r as I,s as St,h as me,j as It,k as Tt,l as Ot,n as Nt,o as kt,p as Rt,q as qe,t as xt,v as wt,w as At,x as oe,y as Lt,z as F,A as Ge,B as ze,C as Ct,E as ge,F as $t,G as Dt,H as M,I as b,J as Ye,K as he,L as Ft,M as _e,N as Ee,O as _,P as Xe,Q as E,R as S,T as H,U as K,V as Ke,W as Ve,X as Je,Y as y,Z as ye,_ as Ze,$ as Mt,a0 as R,a1 as P,a2 as ve,a3 as Pt,a4 as be,a5 as k,a6 as Bt,a7 as V,a8 as Ht,a9 as Qe,aa as Se,ab as Ut,ac as Ie,ad as ie,ae as jt,af as Wt,ag as h,ah as v,ai as qt,aj as Gt,ak as U,al as zt,am as O,an as Yt,ao as Xt,ap as et,aq as Kt,ar as T,as as G,at as j,au as Vt,av as Jt,aw as x,ax as N,ay as Te,az as Oe,aA as Zt,aB as tt,aC as nt,aD as Qt,aE as en,aF as rt,aG as tn,aH as nn,aI as rn,aJ as Ne,aK as sn,aL as on}from"./v7.12-_pfsIBSO.js";const an="7";function cn(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function un(t){return`${cn(t)}${t.projectId}/envelope/`}function ln(t,e){const n={sentry_version:an};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function dn(t,e,n){return e||`${un(t)}?${ln(t,n)}`}function fn(t,e,n){const r=[{type:"client_report"},{timestamp:vt(),discarded_events:t}];return re(e?{dsn:e}:{},[r])}function st(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n!=null&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function pn(t){var c;const{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=((c=t.contexts)==null?void 0:c.trace)??{};return{data:i??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:o,profile_id:i==null?void 0:i[We],exclusive_time:i==null?void 0:i[je],measurements:t.measurements,is_segment:!0}}function mn(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[We]:t.profile_id},...t.exclusive_time&&{[je]:t.exclusive_time}}}},measurements:t.measurements}}const ke="Not capturing exception because it's already been captured.",Re="Discarded session because of missing or non-string release",ot=Symbol.for("SentryInternalError"),it=Symbol.for("SentryDoNotSendEventError");function $(t){return{message:t,[ot]:!0}}function z(t){return{message:t,[it]:!0}}function xe(t){return!!t&&typeof t=="object"&&ot in t}function we(t){return!!t&&typeof t=="object"&&it in t}class gn{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=bt(e.dsn):m&&p.warn("No DSN provided, client will not send events."),this._dsn){const n=dn(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){const s=C();if(fe(e))return m&&p.log(ke),s;const o={event_id:s,...n};return this._process(this.eventFromException(e,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(e,n,r,s){const o={event_id:C(),...r},i=ze(e)?e:String(e),a=se(e)?this.eventFromMessage(i,n,o):this.eventFromException(e,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(e,n,r){const s=C();if(n!=null&&n.originalException&&fe(n.originalException))return m&&p.log(ke),s;const o={event_id:s,...n},i=e.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,a||r,c)),o.event_id}captureSession(e){this.sendSession(e),pe(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;
1return n?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(s=>r&&s))):I(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];St(this,e,this._integrations),n||me(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=It(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Tt(r,Ot(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",e,o),null)}sendSession(e){const{release:n,environment:r=Nt}=this._options;if("aggregates"in e){const o=e.attrs||{};if(!o.release&&!n){m&&p.warn(Re);return}o.release=o.release||n,o.environment=o.environment||r,e.attrs=o}else{if(!e.release&&!n){m&&p.warn(Re);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const s=kt(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const s=`${e}:${n}`;m&&p.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(e,n){const r=this._hooks[e]=this._hooks[e]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(s=>s(...n))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,n=>(m&&p.error("Error while sending envelope:",n),n)):(m&&p.error("Transport disabled"),I({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Rt(this,e),me(this,e)}_updateSessionFromEvent(e,n){var c;let r=n.level==="fatal",s=!1;const o=(c=n.exception)==null?void 0:c.values;if(o){s=!0;for(const u of o){const d=u.mechanism;if((d==null?void 0:d.handled)===!1){r=!0;break}}}const i=e.status==="ok";(i&&e.errors===0||i&&r)&&(pe(e,{...r&&{status:"crashed"},errors:e.errors||Number(s||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new qe(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,e&&r>=e&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,s){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&(i!=null&&i.length)&&(n.integrations=i),this.emit("preprocessEvent",e,n),e.type||s.setLastEventId(e.event_id||n.event_id),xt(o,e,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:wt(r),...a.contexts};const c=At(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(e,n={},r=oe(),s=Lt()){return m&&J(e)&&p.log(`Captured error event \`${st(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,s).then(o=>o.event_id,o=>{m&&(we(o)?p.log(o.message):xe(o)?p.warn(o.message):p.warn(o))})}_processEvent(e,n,r,s){const o=this.getOptions(),{sampleRate:i}=o,a=at(e),c=J(e),u=e.type||"error",d=`before send for type \`${u}\``,l=typeof i>"u"?void 0:Ct(i);if(c&&typeof l=="number"&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),F(z(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const g=u==="replay_event"?"replay":u;return this._prepareEvent(e,n,r,s).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",g),z("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return f;const w=_n(this,o,f,n);return hn(w,d)}).then(f=>{var le;if(f===null){if(this.recordDroppedEvent("before_send",g),a){const q=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",q)}throw z(`${d} returned \`null\`, will not send event.`)}const W=r.getSession()||s.getSession();if(c&&W&&this._updateSessionFromEvent(W,f),a){const A=((le=f.sdkProcessingMetadata)==null?void 0:le.spanCountBeforeProcessing)||0,q=f.spans?f.spans.length:0,de=A-q;de>0&&this.recordDroppedEvent("before_send","span",de)}const w=f.transaction_info;if(a&&w&&f.transaction!==e.transaction){const A="custom";f.transaction_info={...w,source:A}}return this.sendEvent(f,n),f}).then(null,f=>{throw we(f)||xe(f)?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),$(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
2Reason: ${f}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){m&&p.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){m&&p.log("No outcomes to send");return}if(!this._dsn){m&&p.log("No dsn provided, will not send outcomes");return}m&&p.log("Sending outcomes:",e);const n=fn(e,this._options.tunnel&&Ge(this._dsn));this.sendEnvelope(n)}}function hn(t,e){const n=`${e} must return \`null\` or a valid event.`;if(Dt(t))return t.then(r=>{if(!M(r)&&r!==null)throw $(n);return r},r=>{throw $(`${e} rejected with ${r}`)});if(!M(t)&&t!==null)throw $(n);return t}function _n(t,e,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=e;let a=n;if(J(a)&&s)return s(a,r);if(at(a)){if(i){const c=i(pn(a));if(c?a=$t(n,mn(c)):ge(),a.spans){const u=[];for(const d of a.spans){const l=i(d);l?u.push(l):(ge(),u.push(d))}a.spans=u}}if(o){if(a.spans){const c=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return o(a,r)}}return a}function J(t){return t.type===void 0}function at(t){return t.type==="transaction"}function En(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function yn(t,e,n,r){const s={};return e!=null&&e.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=Ge(r)),re(s,[En(t)])}b._sentryClientToLogBufferMap=new WeakMap;function Y(t,e){var o;const n=vn(t)??[];
2if(n.length===0)return;const r=t.getOptions(),s=yn(n,r._metadata,r.tunnel,t.getDsn());(o=b._sentryClientToLogBufferMap)==null||o.set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function vn(t){var e;return(e=b._sentryClientToLogBufferMap)==null?void 0:e.get(t)}function bn(t,e){e.debug===!0&&(m?p.enable():Ye(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),oe().update(e.initialScope);const r=new t(e);return Sn(r),r.init(),r}function Sn(t){oe().setClient(t)}const ct=Symbol.for("SentryBufferFullError");function In(t){const e=[];function n(){return t===void 0||e.length<t}function r(i){return e.splice(e.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return F(ct);const a=i();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new qe((a,c)=>{let u=e.length;if(!u)return a(!0);const d=setTimeout(()=>{i&&i>0&&a(!1)},i);e.forEach(l=>{I(l).then(()=>{--u||(clearTimeout(d),a(!0))},c)})})}return{$:e,add:s,drain:o}}const Tn=60*1e3;function On(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Tn:r-e}function Nn(t,e){return t[e]||t.all||0}function kn(t,e,n=Date.now()){return Nn(t,e)>n}function Rn(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},o=n==null?void 0:n["x-sentry-rate-limits"],i=n==null?void 0:n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),g=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+g;else for(const f of u.split(";"))f==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[f]=r+g):s[f]=r+g}else i?s.all=r+On(i,r):e===429&&(s.all=r+60*1e3);return s}const xn=64;function wn(t,e,n=In(t.bufferSize||xn)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(he(i,(l,g)=>{const f=_e(g);kn(r,f)?t.recordDroppedEvent("ratelimit_backoff",f):a.push(l)}),a.length===0)return I({});const c=re(i[0],a),u=l=>{he(c,(g,f)=>{t.recordDroppedEvent(l,_e(f))})},d=()=>e({body:Ft(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&m&&p.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Rn(r,l),l),l=>{throw u("network_error"),m&&p.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===ct)return m&&p.error("Skipped sending event because buffer is full."),u("queue_overflow"),I({});throw l})}return{send:o,flush:s}}function An(t){var e;((e=t.user)==null?void 0:e.ip_address)===void 0&&(t.user={...t.user,ip_address:"{{auto}}"})}function Ln(t){var e;"aggregates"in t?((e=t.attrs)==null?void 0:e.ip_address)===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function ut(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Ee})),version:Ee}),t._metadata=s}let Ae;const Cn="FunctionToString",Le=new WeakMap,$n=()=>({name:Cn,setupOnce(){Ae=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Xe(this),n=Le.has(E())&&e!==void 0?e:this;return Ae.apply(n,t)}}catch{}},setup(t){Le.set(t,!0)}}),Dn=_($n),Fn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Mn="EventFilters",Pn=_((t={})=>{let e;return{name:Mn,setup(n){const r=n.getOptions();e=Ce(t,r)},processEvent(n,r,s){if(!e){const o=s.getOptions();e=Ce(t,o)}return Hn(n,e)?null:n}}}),Bn=_((t={})=>({...Pn(t),name:"InboundFilters"}));function Ce(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Fn],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Hn(t,e){if(t.type){if(t.type==="transaction"&&jn(t,e.ignoreTransactions))return m&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
3Event: ${S(t)}`),!0}else{if(Un(t,e.ignoreErrors))return m&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
4Event: ${S(t)}`),!0;if(zn(t))return m&&p.warn(`Event dropped due to not having an error message, error type or stacktrace.
5Event: ${S(t)}`),!0;if(Wn(t,e.denyUrls))return m&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.
6Event: ${S(t)}.
7Url: ${B(t)}`),!0;if(!qn(t,e.allowUrls))return m&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.
8Event: ${S(t)}.
9Url: ${B(t)}`),!0}return!1}function Un(t,e){return e!=null&&e.length?st(t).some(n=>H(n,e)):!1}function jn(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?H(n,e):!1}function Wn(t,e){if(!(e!=null&&e.length))return!1;const n=B(t);return n?H(n,e):!1}function qn(t,e){if(!(e!=null&&e.length))return!0;const n=B(t);return n?H(n,e):!0}function Gn(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function B(t){var e,n;try{const r=[...((e=t.exception)==null?void 0:e.values)??[]].reverse().find(o=>{var i,a,c;return((i=o.mechanism)==null?void 0:i.parent_id)===void 0&&((c=(a=o.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}),s=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return s?Gn(s):null}catch{return m&&p.error(`Cannot extract url for event ${S(t)}`),null}}function zn(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)!=null&&n.length?!t.message&&!t.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function Yn(t,e,n,r,s,o){var a;if(!((a=s.exception)!=null&&a.values)||!o||!K(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=Z(t,e,r,o.originalException,n,s.exception.values,i,0
9))}function Z(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(K(r[s],Error)){$e(i,a);const u=t(e,r[s]),d=c.length;De(u,s,d,a),c=Z(t,e,n,r[s],s,[u,...c],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(K(u,Error)){$e(i,a);const l=t(e,u),g=c.length;De(l,`errors[${d}]`,g,a),c=Z(t,e,n,u,s,[l,...c],l,g)}}),c}function $e(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function De(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function lt(t){const e="console";Ke(e,t),Ve(e,Xn)}function Xn(){"console"in b&&Je.forEach(function(t){t in b.console&&y(b.console,t,function(e){return ye[t]=e,function(...n){Ze("console",{args:n,level:t});const s=ye[t];s==null||s.apply(b.console,n)}})})}function dt(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Kn="CaptureConsole",Vn=(t={})=>{const e=t.levels||Je,n=t.handled??!0;return{name:Kn,setup(r){"console"in b&&lt(({args:s,level:o})=>{E()!==r||!e.includes(o)||Zn(s,o,n)})}}},Jn=_(Vn);function Zn(t,e,n){const r={level:dt(e),extra:{arguments:t}};Mt(s=>{if(s.addEventProcessor(a=>(a.logger="console",R(a,{handled:n,type:"console"}),a)),e==="assert"){if(!t[0]){const a=`Assertion failed: ${P(t.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",t.slice(1)),ve(a,r)}return}const o=t.find(a=>a instanceof Error);if(o){Pt(o,r);return}const i=P(t," ");ve(i,r)})}const Qn="Dedupe",er=()=>{let t;return{name:Qn,processEvent(e){if(e.type)return e;try{if(nr(e,t))return m&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},tr=_(er);function nr(t,e){return e?!!(rr(t,e)||sr(t,e)):!1}function rr(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!pt(t,e)||!ft(t,e))}function sr(t,e){const n=Fe(e),r=Fe(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!pt(t,e)||!ft(t,e))}function ft(t,e){let n=be(t),r=be(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function pt(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Fe(t){var e;return((e=t.exception)==null?void 0:e.values)&&t.exception.values[0]}const or="ExtraErrorData",ir=(t={})=>{const{depth:e=3,captureErrorCause:n=!0}=t;return{name:or,processEvent(r,s,o){const{maxValueLength:i=250}=o.getOptions();return cr(r,s,e,n,i)}}},ar=_(ir);function cr(t,e={},n,r,s){if(!e.originalException||!k(e.originalException))return t;const o=e.originalException.name||e.originalException.constructor.name,i=ur(e.originalException,r,s);if(i){const a={...t.contexts},c=Bt(i,n);return M(c)&&(V(c,"__sentry_skip_normalization__",!0),a[o]=c),{...t,contexts:a}}return t}function ur(t,e,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],s={};for(const o of Object.keys(t)){if(r.indexOf(o)!==-1)continue;const i=t[o];s[o]=k(i)||typeof i=="string"?Ht(`${i}`,n):i}if(e&&t.cause!==void 0&&(s.cause=k(t.cause)?t.cause.toString():t.cause),typeof t.toJSON=="function"){const o=t.toJSON();for(const i of Object.keys(o)){const a=o[i];s[i]=k(a)?a.toString():a}}return s}catch(r){m&&p.error("Unable to extract extra data from the Error object:",r)}return null}function mt(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}function lr(){return"npm"}function ae(t,e){const n=ce(t,e),r={type:gr(e),value:hr(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function dr(t,e,n,r){const s=E(),o=s==null?void 0:s.getOptions().normalizeDepth,i=br(e),a={__serialized__:jt(e,o)};if(i)return{exception:{values:[ae(t,i)]},extra:a};const c={exception:{values:[{type:ie(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:yr(e,{isUnhandledRejection:r})}]},extra:a};if(n){const u=ce(t,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function X(t,e){return{exception:{values:[ae(t,e)]}}}function ce(t,e){const n=e.stacktrace||e.stack||"",r=pr(e),s=mr(e);try{return t(n,r,s)}catch{}return[]}const fr=/Minified React error #\d+;/i;function pr(t){return t&&fr.test(t.message)?1:0}function mr(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function gt(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function gr(t){const e=t==null?void 0:t.name;return!e&&gt(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function hr(t){const e=t==null?void 0:t.message;return gt(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function _r(t,e,n,r){const s=(n==null?void 0:n.syntheticException)||void 0,o=ue(t,e,s,r);return R(o),o.level="error",n!=null&&n.event_id&&(o.event_id=n.event_id),I(o)}function Er(t,e,n="info",r,s){const o=(r==null?void 0:r.syntheticException)||void 0,i=Q(t,e,o,s);return i.level=n,r!=null&&r.event_id&&(i.event_id=r.event_id),I(i)}function ue(t,e,n,r,s){let o;if(Qe(e)&&e.error)return X(t,e.error);if(Se(e)||Ut(e)){const i=e;if("stack"in e)o=X(t,e);else{const a=i.name||(Se(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=Q(t,c,n,r),Ie(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return k(e)?X(t,e):M(e)||ie(e)?(o=dr(t,e,n,s),R(o,{synthetic:!0}),o):(o=Q(t,e,n,r),Ie(o,`${e}`),R(o,{synthetic:!0}),o)}function Q(t,e,n,r){const s={};if(r&&n){const o=ce(t,n);o.length&&(s.exception={values:[{value:e,stacktrace:{frames:o}}]}),R(s,{synthetic:!0})}
9if(ze(e)){const{__sentry_template_string__:o,__sentry_template_values__:i}=e;return s.logentry={message:o,params:i},s}return s.message=e,s}function yr(t,{isUnhandledRejection:e}){const n=Wt(t),r=e?"promise rejection":"exception";return Qe(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:ie(t)?`Event \`${vr(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function vr(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function br(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}const Sr=5e3;class Ir extends gn{constructor(e){const n=Tr(e),r=h.SENTRY_SDK_SOURCE||lr();ut(n,"browser",["browser"],r),super(n);const{sendDefaultPii:s,sendClientReports:o,_experiments:i}=this._options,a=i==null?void 0:i.enableLogs;h.document&&(o||a)&&h.document.addEventListener("visibilitychange",()=>{h.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),a&&Y(this))}),a&&(this.on("flush",()=>{Y(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Y(this)},Sr)})),s&&(this.on("postprocessEvent",An),this.on("beforeSendSession",Ln))}eventFromException(e,n){return _r(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Er(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,s){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,s)}}function Tr(t){var e;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(e=h.SENTRY_RELEASE)==null?void 0:e.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const Or=1e3;let Me,ee,te;function Nr(t){const e="dom";Ke(e,t),Ve(e,kr)}function kr(){if(!v.document)return;const t=Ze.bind(null,"dom"),e=Pe(t,!0);v.document.addEventListener("click",e,!1),v.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{var o,i;const s=(o=v[n])==null?void 0:o.prototype;(i=s==null?void 0:s.hasOwnProperty)!=null&&i.call(s,"addEventListener")&&(y(s,"addEventListener",function(a){return function(c,u,d){if(c==="click"||c=="keypress")try{const l=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=l[c]=l[c]||{refCount:0};if(!g.handler){const f=Pe(t);g.handler=f,a.call(this,c,f,d)}g.refCount++}catch{}return a.call(this,c,u,d)}}),y(s,"removeEventListener",function(a){return function(c,u,d){if(c==="click"||c=="keypress")try{const l=this.__sentry_instrumentation_handlers__||{},g=l[c];g&&(g.refCount--,g.refCount<=0&&(a.call(this,c,g.handler,d),g.handler=void 0,delete l[c]),Object.keys(l).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,c,u,d)}}))})}function Rr(t){if(t.type!==ee)return!1;try{if(!t.target||t.target._sentryId!==te)return!1}catch{}return!0}function xr(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function Pe(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=wr(n);if(xr(n.type,r))return;V(n,"_sentryCaptured",!0),r&&!r._sentryId&&V(r,"_sentryId",C());
9const s=n.type==="keypress"?"input":n.type;Rr(n)||(t({event:n,name:s,global:e}),ee=n.type,te=r?r._sentryId:void 0),clearTimeout(Me),Me=v.setTimeout(()=>{te=void 0,ee=void 0},Or)}}function wr(t){try{return t.target}catch{return null}}const D={};function Ar(t){const e=D[t];if(e)return e;let n=v[t];if(qt(n))return D[t]=n.bind(v);const r=v.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o!=null&&o[t]&&(n=o[t]),r.head.removeChild(s)}catch(s){Gt&&U.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(D[t]=n.bind(v))}function Be(t){D[t]=void 0}function Lr(t,e=Ar("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return Be("fetch"),F("No fetch implementation available");try{return e(t.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Be("fetch"),n-=i,r--,F(c)}}return wn(t,s)}const Cr=30,$r=50;function ne(t,e,n,r){const s={filename:t,function:e==="<anonymous>"?O:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Dr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Fr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mr=/\((\S*)(?::(\d+))(?::(\d+))\)/,Pr=t=>{const e=Dr.exec(t);if(e){const[,r,s,o]=e;return ne(r,O,+s,+o)}const n=Fr.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=Mr.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=ht(n[1]||O,n[2]);return ne(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Br=[Cr,Pr],Hr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ur=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,jr=t=>{const e=Hr.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const o=Ur.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],s=e[1]||O;return[s,r]=ht(s,r),ne(r,s,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Wr=[$r,jr],qr=[Br,Wr],Gr=zt(...qr),ht=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:O,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},L=1024,zr="Breadcrumbs",Yr=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:zr,setup(n){e.console&&lt(Vr(n)),e.dom&&Nr(Kr(n,e.dom)),e.xhr&&Yt(Jr(n)),e.fetch&&Xt(Zr(n)),e.history&&et(Qr(n)),e.sentry&&n.on("beforeSendEvent",Xr(n))}}},_t=_(Yr);function Xr(t){return function(n){E()===t&&T({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:S(n)},{event:n})}}function Kr(t,e){return function(r){if(E()!==t)return;let s,o,i=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>L&&(j&&U.warn(`\`dom.maxStringLength\` cannot exceed ${L}, but a value of ${a} was configured. Sentry will use ${L} instead.`),a=L),typeof i=="string"&&(i=[i]);try{const u=r.event,d=es(u)?u.target:u;s=Vt(d,{keyAttrs:i,maxStringLength:a}),o=Jt(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),T(c,{event:r.event,name:r.name,global:r.global})}}function Vr(t){return function(n){if(E()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:dt(n.level),message:P(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${P(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;T(r,{input:n.args,level:n.level})}}function Jr(t){return function(n){if(E()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[Kt];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,d={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},g={category:"xhr",data:d,type:"http",level:mt(c)};t.emit("beforeOutgoingRequestBreadcrumb",g,l),T(g,l)}}function Zr(t){return function(n){if(E()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;
9if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",a,i),T(a,i)}else{const o=n.response,i={...n.fetchData,status_code:o==null?void 0:o.status};n.fetchData.request_body_size,n.fetchData.response_body_size,o==null||o.status;const a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:mt(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,a),T(c,a)}}}function Qr(t){return function(n){if(E()!==t)return;let r=n.from,s=n.to;const o=G(h.location.href);let i=r?G(r):void 0;const a=G(s);i!=null&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),T({category:"navigation",data:{from:r,to:s}})}}function es(t){return!!t&&!!t.target}const ts=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ns="BrowserApiErrors",rs=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:ns,setupOnce(){e.setTimeout&&y(h,"setTimeout",He),e.setInterval&&y(h,"setInterval",He),e.requestAnimationFrame&&y(h,"requestAnimationFrame",os),e.XMLHttpRequest&&"XMLHttpRequest"in h&&y(XMLHttpRequest.prototype,"send",is);const n=e.eventTarget;n&&(Array.isArray(n)?n:ts).forEach(s=>as(s,e))}}},ss=_(rs);function He(t){return function(...e){const n=e[0];return e[0]=x(n,{mechanism:{data:{function:N(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function os(t){return function(e){return t.apply(this,[x(e,{mechanism:{data:{function:"requestAnimationFrame",handler:N(t)},handled:!1,type:"instrument"}})])}}function is(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&y(n,s,function(o){const i={mechanism:{data:{function:s,handler:N(o)},handled:!1,type:"instrument"}},a=Xe(o);return a&&(i.mechanism.data.handler=N(a)),x(o,i)})}),t.apply(this,e)}}function as(t,e){var s,o;const r=(s=h[t])==null?void 0:s.prototype;(o=r==null?void 0:r.hasOwnProperty)!=null&&o.call(r,"addEventListener")&&(y(r,"addEventListener",function(i){return function(a,c,u){try{cs(c)&&(c.handleEvent=x(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:N(c),target:t},handled:!1,type:"instrument"}}))}catch{}return e.unregisterOriginalCallbacks&&us(this,a,c),i.apply(this,[a,x(c,{mechanism:{data:{function:"addEventListener",handler:N(c),target:t},handled:!1,type:"instrument"}}),u])}}),y(r,"removeEventListener",function(i){return function(a,c,u){try{const d=c.__sentry_wrapped__;d&&i.call(this,a,d,u)}catch{}return i.call(this,a,c,u)}}))}function cs(t){return typeof t.handleEvent=="function"}function us(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const ls=_(()=>({name:"BrowserSession",setupOnce(){if(typeof h.document>"u"){j&&U.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Te({ignoreDuration:!0}),Oe(),et(({from:t,to:e})=>{t!==void 0&&t!==e&&(Te({ignoreDuration:!0}),Oe())})}})),ds="GlobalHandlers",fs=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:ds,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(ms(n),Ue("onerror")),e.onunhandledrejection&&(gs(n),Ue("onunhandledrejection"))}}},ps=_(fs);function ms(t){Zt(e=>{const{stackParser:n,attachStacktrace:r}=Et();if(E()!==t||tt())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=Es(ue(n,c||s,void 0,r,!1),o,i,a);u.level="error",nt(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function gs(t){Qt(e=>{const{stackParser:n,attachStacktrace:r}=Et();if(E()!==t||tt())return;const s=hs(e),o=se(s)?_s(s):ue(n,s,void 0,r,!0);o.level="error",nt(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function hs(t){if(se(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function _s(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Es(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,l=en(e)&&e.length>0?e:rt();
9return c.length===0&&c.push({colno:u,filename:l,function:O,in_app:!0,lineno:d}),t}function Ue(t){j&&U.log(`Global Handler attached: ${t}`)}function Et(){const t=E();return(t==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}const ys=_(()=>({name:"HttpContext",preprocessEvent(t){var r;if(!h.navigator&&!h.location&&!h.document)return;const e=tn(),n={...e.headers,...(r=t.request)==null?void 0:r.headers};t.request={...e,...t.request,headers:n}}})),vs="cause",bs=5,Ss="LinkedErrors",Is=(t={})=>{const e=t.limit||bs,n=t.key||vs;return{name:Ss,preprocessEvent(r,s,o){const i=o.getOptions();Yn(ae,i.stackParser,n,e,r,s)}}},Ts=_(Is);function Os(){return Ns()?(j&&Ye(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Ns(){var o;if(typeof h.window>"u")return!1;const t=h;if(t.nw)return!1;const e=t.chrome||t.browser;if(!((o=e==null?void 0:e.runtime)!=null&&o.id))return!1;const n=rt(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(h===h.top&&r.some(i=>n.startsWith(`${i}://`)))}function yt(t){return[Bn(),Dn(),ss(),_t(),ps(),Ts(),tr(),ys(),ls()]}function ks(t={}){const e=!t.skipBrowserExtensionCheck&&Os(),n={...t,enabled:e?!1:t.enabled,stackParser:rn(t.stackParser||Gr),integrations:nn({integrations:t.integrations,defaultIntegrations:t.defaultIntegrations==null?yt():t.defaultIntegrations}),transport:t.transport||Lr};return bn(Ir,n)}function Rs(t){const e={defaultIntegrations:[...yt()],...t};return ut(e,"nuxt",["nuxt","vue"]),ks(e)}const xs="7.12.20";Ne?Rs({debug:sn.includes("localhost"),dsn:Ne,allowUrls:[/https?:\/\/(.*\.)?lifehacker\.ru/],release:xs,sampleRate:on?.001:1,integrations:[_t({console:!1,dom:!0,fetch:!0,history:!0,xhr:!0}),Jn({levels:["error"]}),ar()],ignoreErrors:["CONTAINER_IS_HIDDEN","FedCM get() rejects with NetworkError","FedCM get() rejects with AbortError"]}):console.warn("SENTRY_CLIENT_DNS isn't provided");
10//# sourceMappingURL=v7.12-C5j4oYj7.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.