vendor: 4,704 bytes, line 1
1import{L as t,_ as e,C as n,r as i,E as r,g as a,i as o,a as s,v as c,c as l,F as u,b as d,d as f,e as p,f as m,h}from"./BmBJFIy-.js";const g="analytics",v="https://www.googletagmanager.com/gtag/js",y=new t("@firebase/analytics"),b=new r("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function w(t){if(!t.startsWith(v)){const e=b.create("invalid-gtag-resource",{gtagURL:t});return y.warn(e.message),""}return t}function T(t){return Promise.all(t.map((t=>t.catch((t=>t)))))}function I(t,e){const n=function(t,e){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(t,e)),n}("firebase-js-sdk-policy",{createScriptURL:w}),i=document.createElement("script"),r=`${v}?l=${t}&id=${e}`;i.src=n?null==n?void 0:n.createScriptURL(r):r,i.async=!0,document.head.appendChild(i)}function E(t,e,n,i){return async function(r,...a){try{if("event"===r){const[i,r]=a;await async function(t,e,n,i,r){try{let a=[];if(r&&r.send_to){let t=r.send_to;Array.isArray(t)||(t=[t]);const i=await T(n);for(const n of t){const t=i.find((t=>t.measurementId===n)),r=t&&e[t.appId];if(!r){a=[];break}a.push(r)}}0===a.length&&(a=Object.values(e)),await Promise.all(a),t("event",i,r||{})}catch(a){y.error(a)}}(t,e,n,i,r)}else if("config"===r){const[r,o]=a;await async function(t,e,n,i,r,a){const o=i[r];try{if(o)await e[o];else{const t=(await T(n)).find((t=>t.measurementId===r));t&&await e[t.appId]}}catch(s){y.error(s)}t("config",r,a)}(t,e,n,i,r,o)}else if("consent"===r){const[e,n]=a;t("consent",e,n)}else if("get"===r){const[e,n,i]=a;t("get",e,n,i)}else if("set"===r){const[e]=a;t("set",e)}else t(r,...a)}catch(o){y.error(o)}}}const _=new class{constructor(t={},e=1e3){this.throttleMetadata=t,this.intervalMillis=e}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,e){this.throttleMetadata[t]=e}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}};function S(t){return new Headers({Accept:"application/json","x-goog-api-key":t})}async function M(t,e=_,n){const{appId:i,apiKey:r,measurementId:a}=t.options;if(!i)throw b.create("no-app-id");if(!r){if(a)return{measurementId:a,appId:i};throw b.create("no-api-key")}const o=e.getThrottleMetadata(i)||{backoffCount:0,throttleEndTimeMillis:Date.now()},s=new k;return setTimeout((async()=>{s.abort()}),6e4),A({appId:i,apiKey:r,measurementId:a},o,s,e)}async function A(t,{throttleEndTimeMillis:e,backoffCount:n},i,r=_){var a;const{appId:o,measurementId:s}=t;try{await function(t,e){return new Promise(((n,i)=>{const r=Math.max(e-Date.now(),0),a=setTimeout(n,r);t.addEventListener((()=>{clearTimeout(a),i(b.create("fetch-throttle",{throttleEndTimeMillis:e}))}))}))}(i,e)}catch(c){if(s)return y.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${s} provided in the "measurementId" field in the local Firebase config. [${null==c?void 0:c.message}
1]`),{appId:o,measurementId:s};throw c}try{const e=await async function(t){var e;const{appId:n,apiKey:i}=t,r={method:"GET",headers:S(i)},a="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),o=await fetch(a,r);if(200!==o.status&&304!==o.status){let t="";try{const n=await o.json();(null===(e=n.error)||void 0===e?void 0:e.message)&&(t=n.error.message)}catch(s){}throw b.create("config-fetch-failed",{httpStatus:o.status,responseMessage:t})}return o.json()}(t);return r.deleteThrottleMetadata(o),e}catch(c){const e=c;if(!function(t){if(!(t instanceof u&&t.customData))return!1;const e=Number(t.customData.httpStatus);return 429===e||500===e||503===e||504===e}(e)){if(r.deleteThrottleMetadata(o),s)return y.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${s} provided in the "measurementId" field in the local Firebase config. [${null==e?void 0:e.message}]`),{appId:o,measurementId:s};throw c}const d=503===Number(null===(a=null==e?void 0:e.customData)||void 0===a?void 0:a.httpStatus)?l(n,r.intervalMillis,30):l(n,r.intervalMillis),f={throttleEndTimeMillis:Date.now()+d,backoffCount:n+1};return r.setThrottleMetadata(o,f),y.debug(`Calling attemptFetch again in ${d} millis`),A(t,f,i,r)}}class k{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach((t=>t()))}}async function C(t,e,n,i,r,a,o){var l;const u=M(t);u.then((e=>{n[e.measurementId]=e.appId,t.options.measurementId&&e.measurementId!==t.options.measurementId&&y.warn(`The measurement ID in the local Firebase config (${t.options.measurementId}) does not match the measurement ID fetched from the server (${e.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)})).catch((t=>y.error(t))),e.push(u);const d=async function(){if(!s())return y.warn(b.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await c()}catch(t){return y.warn(b.create("indexeddb-unavailable",{errorInfo:null==t?void 0:t.toString()}).message),!1}return!0}().then((t=>t?i.getId():void 0)),[f,p]=await Promise.all([u,d]);(function(t){const e=window.document.getElementsByTagName("script");for(const n of Object.values(e))if(n.src&&n.src.includes(v)&&n.src.includes(t))return n;return null})(a)||I(a,f.measurementId),r("js",new Date);const m=null!==(l=null==o?void 0:o.config)&&void 0!==l?l:{};return m.origin="firebase",m.update=!0,null!=p&&(m.firebase_id=p),r("config",f.measurementId,m),f.measurementId}class P{constructor(t){this.app=t}_delete(){return delete N[this.app.options.appId],Promise.resolve()}}let N={},L=[];const F={};let D,R,O="dataLayer",U=!1;function $(t,e,n){!function(){const t=[];if(o()&&t.push("This is a browser extension environment."),d()||t.push("Cookies are not available."),t.length>0){const e=t.map(((t,e)=>`(${e+1}) ${t}`)).join(" "),n=b.create("invalid-analytics-context",{errorInfo:e});y.warn(n.message)}}();const i=t.options.appId;if(!i)throw b.create("no-app-id");if(!t.options.apiKey){if(!t.options.measurementId)throw b.create("no-api-key");y.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${t.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=N[i])throw b.create("already-exists",{id:i});if(!U){!function(t){let e=[];Array.isArray(window[t])?e=window[t]:window[t]=e}(O);const{wrappedGtag:t,gtagCore:e}=function(t,e,n,i,r){let a=function(...t){window[i].push(arguments)};return window[r]&&"function"==typeof window[r]&&(a=window[r]),window[r]=E(a,t,e,n),{gtagCore:a,wrappedGtag:window[r]}}(N,L,F,O,"gtag");R=t,D=e,U=!0}N[i]=C(t,L,F,e,D,O,n);return new P(t)}function x(t=f()){t=a(t);const e=p(t,g);return e.isInitialized()?e.getImmediate():function(t,e={}){const n=p(t,g);if(n.isInitialized()){const t=n.getImmediate();if(m(e,n.getOptions()))return t;throw b.create("already-initialized")}const i=n.initialize({options:e});return i}(t)}function B(t,e,n){t=a(t),async function(t,e,n){t("config",await e,{update:!0,user_id:n})}(R,N[t.app.options.appId],e).catch((t=>y.error(t)))}function j(t,e,n){t=a(t),async function(t,e,n){t("config",await e,{update:!0,user_properties:n})}(R,N[t.app.options.appId],e).catch((t=>y.error(t)))}function z(t,e){t=a(t),async function(t){const e=await t;window[`ga-disable-${e}`]=!1}(N[t.app.options.appId]).catch((t=>y.error(t)))}function q(t,e,n,i){t=a(t),async function(t,e,n,i,r){if(r&&r.global)t("event",n,i);else{const r=await e;t("event",n,Object.assign(Object.assign({},i),{send_to:r}))}}(R,N[t.app.options.appId],e,n,i).catch((t=>y.error(t)))}const W="@firebase/analytics",K="0.10.16";e(new n(g,((t,{options:e})=>$(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),e)),"PUBLIC")),e(new n("analytics-internal",(function(t){try{const e=t.getProvider(g).getImmediate();return{logEvent:(t,n,i)=>q(e,t,n,i)}}catch(e){throw b.create("interop-component-reg-failed",{reason:e})}}),"PRIVATE")),i(W,K),i(W,K,"esm2017");var V,H,J=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},G=function(t){if("loading"===document.readyState)return"loading";var e=J();if(e){if(t<e.domInteractive)return"loading";if(0===e.domContentLoadedEventStart||t<e.domContentLoadedEventStart)return"dom-interactive";if(0===e.domComplete||t<e.domComplete)return"dom-content-loaded"}return"complete"},X=function(t){var e=t.nodeName;return 1===t.nodeType?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},Z=function(t,e){var n="";try{for(;t&&9!==t.nodeType;){var i=t,r=i.id?"#"+i.id:X(i)+(i.classList&&i.classList.value&&i.classList.value.trim()&&i.classList.value.trim().length?"."+i.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+r.length>(e||100)-1)return n||r;if(n=n?r+">"+n:r,i.id)break;t=i.parentNode}}catch(a){}return n},Q=-1,Y=function(t){addEventListener("pageshow",(function(e){e.persisted&&(Q=e.timeStamp,t(e))}),!0)},tt=function(){var t=J();return t&&t.activationStart||0},et=function(t,e){var n=J(),i="navigate";return Q>=0?i="back-forward-cache":n&&(document.prerendering||tt()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},nt=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var i=new PerformanceObserver((function(t){Promise.resolve().then((function(){e(t.getEntries())}))}));return i.observe(Object.assign({type:t,buffered:!0},n||{})),i}}catch(r){}},it=function(t,e,n,i){var r,a;return function(o){var s,c;e.value>=0&&(o||i)&&((a=e.value-(r||0))||void 0===r)&&(r=e.value,e.delta=a,e.rating=(s=e.value)>(c=n)[1]?"poor":s>c[0]?"needs-improvement":"good",t(e))}},rt=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},at=function(t){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t()}))},ot=function(t){var e=!1;return function(){e||(t(),e=!0)}},st=-1,ct=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},lt=function(t){"hidden"===document.visibilityState&&st>-1&&(st="visibilitychange"===t.type?t.timeStamp:0,dt())},ut=function(){addEventListener("visibilitychange",lt,!0),addEventListener("prerenderingchange",lt,!0)},dt=function(){removeEventListener("visibilitychange",lt,!0),removeEventListener("prerenderingchange",lt,!0)},ft=function(){return st<0&&(st=ct(),ut(),Y((function(){setTimeout((function(){st=ct(),ut()}),0)}))),{get firstHiddenTime(){return st}}},pt=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()}
vendor: 17,742 bytes, line 1
1,mt=[1800,3e3],ht=[.1,.25],gt=function(t,e){var n,i;n=function(e){var n=function(t){var e,n={};if(t.entries.length){var i=t.entries.reduce((function(t,e){return t&&t.value>e.value?t:e}));if(i&&i.sources&&i.sources.length){var r=(e=i.sources).find((function(t){return t.node&&1===t.node.nodeType}))||e[0];r&&(n={largestShiftTarget:Z(r.node),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:r,largestShiftEntry:i,loadState:G(i.startTime)})}}return Object.assign(t,{attribution:n})}(e);t(n)},i=(i=e)||{},function(t,e){e=e||{},pt((function(){var n,i=ft(),r=et("FCP"),a=nt("paint",(function(t){t.forEach((function(t){"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<i.firstHiddenTime&&(r.value=Math.max(t.startTime-tt(),0),r.entries.push(t),n(!0)))}))}));a&&(n=it(t,r,mt,e.reportAllChanges),Y((function(i){r=et("FCP"),n=it(t,r,mt,e.reportAllChanges),rt((function(){r.value=performance.now()-i.timeStamp,n(!0)}))})))}))}(ot((function(){var t,e=et("CLS",0),r=0,a=[],o=function(n){n.forEach((function(t){if(!t.hadRecentInput){var e=a[0],n=a[a.length-1];r&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(r+=t.value,a.push(t)):(r=t.value,a=[t])}})),r>e.value&&(e.value=r,e.entries=a,t())},s=nt("layout-shift",o);s&&(t=it(n,e,ht,i.reportAllChanges),at((function(){o(s.takeRecords()),t(!0)})),Y((function(){r=0,e=et("CLS",0),t=it(n,e,ht,i.reportAllChanges),rt((function(){return t()}))})),setTimeout(t,0))})))},vt=0,yt=1/0,bt=0,wt=function(t){t.forEach((function(t){t.interactionId&&(yt=Math.min(yt,t.interactionId),bt=Math.max(bt,t.interactionId),vt=bt?(bt-yt)/7+1:0)}))},Tt=function(){return V?vt:performance.interactionCount||0},It=[],Et=new Map,_t=0,St=[],Mt=function(t){if(St.forEach((function(e){return e(t)})),t.interactionId||"first-input"===t.entryType){var e=It[It.length-1],n=Et.get(t.interactionId);if(n||It.length<10||t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t);else{var i={id:t.interactionId,latency:t.duration,entries:[t]};Et.set(i.id,i),It.push(i)}It.sort((function(t,e){return e.latency-t.latency})),It.length>10&&It.splice(10).forEach((function(t){return Et.delete(t.id)}))}}},At=function(t){var e=self.requestIdleCallback||self.setTimeout,n=-1;return t=ot(t),"hidden"===document.visibilityState?t():(n=e(t),at(t)),n},kt=[200,500],Ct=function(t,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},pt((function(){var n;"interactionCount"in performance||V||(V=nt("event",wt,{type:"event",buffered:!0,durationThreshold:0}));var i,r=et("INP"),a=function(t){At((function(){t.forEach(Mt);var e=function(){var t=Math.min(It.length-1,Math.floor((Tt()-_t)/50));return It[t]}();e&&e.latency!==r.value&&(r.value=e.latency,r.entries=e.entries,i())}))},o=nt("event",a,{durationThreshold:null!==(n=e.durationThreshold)&&void 0!==n?n:40});i=it(t,r,kt,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),at((function(){a(o.takeRecords()),i(!0)})),Y((function(){_t=Tt(),It.length=0,Et.clear(),r=et("INP"),i=it(t,r,kt,e.reportAllChanges)})))})))},Pt=[],Nt=[],Lt=0,Ft=new WeakMap,Dt=new Map,Rt=-1,Ot=function(t){Pt=Pt.concat(t),Ut()},Ut=function(){Rt<0&&(Rt=At($t))},$t=function(){Dt.size>10&&Dt.forEach((function(t,e){Et.has(e)||Dt.delete(e)}));var t=It.map((function(t){return Ft.get(t.entries[0])})),e=Nt.length-50;Nt=Nt.filter((function(n,i){return i>=e||t.includes(n)}));for(var n=new Set,i=0;i<Nt.length;i++){var r=Nt[i];xt(r.startTime,r.processingEnd).forEach((function(t){n.add(t)}))}var a=Pt.length-1-50;Pt=Pt.filter((function(t,e){return t.startTime>Lt&&e>a||n.has(t)})),Rt=-1};St.push((function(t){t.interactionId&&t.target&&!Dt.has(t.interactionId)&&Dt.set(t.interactionId,t.target)}),(function(t){var e,n=t.startTime+t.duration;Lt=Math.max(Lt,t.processingEnd);for(var i=Nt.length-1;i>=0;i--){var r=Nt[i];if(Math.abs(n-r.renderTime)<=8){(e=r).startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd),e.entries.push(t);break}}e||(e={startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,renderTime:n,entries:[t]},Nt.push(e)),(t.interactionId||"first-input"===t.entryType)&&Ft.set(t,e),Ut()}));var xt=function(t,e){for(var n,i=[],r=0;n=Pt[r];r++)if(!(n.startTime+n.duration<t)){if(n.startTime>e)break;i.push(n)}return i},Bt=function(t,e){H||(H=nt("long-animation-frame",Ot)),Ct((function(e){var n,i,r,a,o,s,c,l,u,d,f,p,m=(i=(n=e).entries[0],r=Ft.get(i),a=i.processingStart,o=r.processingEnd,s=r.entries.sort((function(t,e){return t.processingStart-e.processingStart})),c=xt(i.startTime,o),l=n.entries.find((function(t){return t.target})),u=l&&l.target||Dt.get(i.interactionId),d=[i.startTime+i.duration,o].concat(c.map((function(t){return t.startTime+t.duration}))),f=Math.max.apply(Math,d),p={interactionTarget:Z(u),interactionTargetElement:u,interactionType:i.name.startsWith("key")?"keyboard":"pointer",interactionTime:i.startTime,nextPaintTime:f,processedEventEntries:s,longAnimationFrameEntries:c,inputDelay:a-i.startTime,processingDuration:o-a,presentationDelay:Math.max(f-o,0),loadState:G(i.startTime)},Object.assign(n,{attribution:p}));t(m)}),e)},jt=[2500,4e3],zt={},qt=function(t,e){var n,i;n=function(e){var n=function(t){var e={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:t.value};if(t.entries.length){var n=J();if(n){var i=n.activationStart||0,r=t.entries[t.entries.length-1],a=r.url&&performance.getEntriesByType("resource").filter((function(t){return t.name===r.url}))[0],o=Math.max(0,n.responseStart-i),s=Math.max(o,a?(a.requestStart||a.startTime)-i:0),c=Math.max(s,a?a.responseEnd-i:0),l=Math.max(c,r.startTime-i);e={element:Z(r.element),timeToFirstByte:o,resourceLoadDelay:s-o,resourceLoadDuration:c-s,elementRenderDelay:l-c,navigationEntry:n,lcpEntry:r},r.url&&(e.url=r.url),a&&(e.lcpResourceEntry=a)}}return Object.assign(t,{attribution:e})}(e);t(n)},i=(i=e)||{},pt((function(){var t,e=ft(),r=et("LCP"),a=function(n){i.reportAllChanges||(n=n.slice(-1)),n.forEach((function(n){n.startTime<e.firstHiddenTime&&(r.value=Math.max(n.startTime-tt(),0),r.entries=[n],t())}))},o=nt("largest-contentful-paint",a);if(o){t=it(n,r,jt,i.reportAllChanges);var s=ot((function(){zt[r.id]||(a(o.takeRecords()),o.disconnect(),zt[r.id]=!0,t(!0))}));["keydown","click"].forEach((function(t){addEventListener(t,(function(){return At(s)}),{once:!0,capture:!0})})),at(s),Y((function(e){r=et("LCP"),t=it(n,r,jt,i.reportAllChanges),rt((function(){r.value=performance.now()-e.timeStamp,zt[r.id]=!0,t(!0)}))}))}}))};const Wt="@firebase/performance",Kt="0.7.6",Vt=Kt,Ht="FB-PERF-TRACE-MEASURE",Jt="_wt_",Gt="_fcp",Xt="_fid",Zt="_lcp",Qt="_inp",Yt="_cls",te="@firebase/performance/config",ee="@firebase/performance/configexpire",ne="Performance",ie=new r("performance",ne,{"trace started":"Trace {$traceName} was started before.","trace stopped":"Trace {$traceName} is not running.","nonpositive trace startTime":"Trace {$traceName} startTime should be positive.","nonpositive trace duration":"Trace {$traceName} duration should be positive.","no window":"Window is not available.","no app id":"App id is not available.","no project id":"Project id is not available.","no api key":"Api key is not available.","invalid cc log":"Attempted to queue invalid cc event","FB not default":"Performance can only start when Firebase app instance is the default one.","RC response not ok":"RC response is not ok","invalid attribute name":"Attribute name {$attributeName} is invalid.","invalid attribute value":"Attribute value {$attributeValue} is invalid.","invalid custom metric name":"Custom metric name {$customMetricName} is invalid","invalid String merger input":"Input for String merger is invalid, contact support team to resolve.","already initialized":"initializePerformance() has already been called with different options. To avoid this error, call initializePerformance() with the same options as when it was originally called, or call getPerformance() to return the already initialized instance."}),re=new t(ne);let ae,oe,se,ce;re.logLevel=h.INFO;class le{constructor(t){if(this.window=t,!t)throw ie.create("no window");this.performance=t.performance,this.PerformanceObserver=t.PerformanceObserver,this.windowLocation=t.location,this.navigator=t.navigator,this.document=t.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=t.localStorage),t.perfMetrics&&t.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=t.perfMetrics.onFirstInputDelay),this.onLCP=qt,this.onINP=Bt,this.onCLS=gt}getUrl(){return this.windowLocation.href.split("?")[0]}mark(t){this.performance&&this.performance.mark&&this.performance.mark(t)}measure(t,e,n){this.performance&&this.performance.measure&&this.performance.measure(t,e,n)}getEntriesByType(t){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(t):[]}getEntriesByName(t){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(t):[]}getTimeOrigin(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)}requiredApisAvailable(){return fetch&&Promise&&d()?!!s()||(re.info("IndexedDB is not supported by current browser"),!1):(re.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)}setupObserver(t,e){if(!this.PerformanceObserver)return;new this.PerformanceObserver((t=>{for(const n of t.getEntries())e(n)})).observe({entryTypes:[t]})}static getInstance(){return void 0===ae&&(ae=new le(oe)),ae}}function ue(){return se}function de(t,e){const n=t.length-e.length;if(n<0||n>1)throw ie.create("invalid String merger input");const i=[];for(let r=0;r<t.length;r++)i.push(t.charAt(r)),e.length>r&&i.push(e.charAt(r));return i.join("")}class fe{constructor(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=de("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=de("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}getFlTransportFullUrl(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)}static getInstance(){return void 0===ce&&(ce=new fe),ce}}var pe,me;(me=pe||(pe={}))[me.UNKNOWN=0]="UNKNOWN",me[me.VISIBLE=1]="VISIBLE",me[me.HIDDEN=2]="HIDDEN";const he=["firebase_","google_","ga_"],ge=new RegExp("^[a-zA-Z]\\w*$");function ve(){const t=le.getInstance().navigator;return(null==t?void 0:t.serviceWorker)?t.serviceWorker.controller?2:3:1}function ye(){switch(le.getInstance().document.visibilityState){case"visible":return pe.VISIBLE;case"hidden":return pe.HIDDEN;default:return pe.UNKNOWN}}function be(){const t=le.getInstance().navigator.connection;switch(t&&t.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}function we(t){var e;const n=null===(e=t.options)||void 0===e?void 0:e.appId;if(!n)throw ie.create("no app id");return n}const Te="0.0.1",Ie={loggingEnabled:!0},Ee="FIREBASE_INSTALLATIONS_AUTH";function _e(t,e){const n=function(){const t=le.getInstance().localStorage;if(!t)return;const e=t.getItem(ee);if(!(e&&(n=e,Number(n)>Date.now())))return;var n;const i=t.getItem(te);if(!i)return;try{return JSON.parse(i)}catch(r){return}}();return n?(Me(n),Promise.resolve()):function(t,e){return function(t){const e=t.getToken();return e.then((t=>{})),e}(t.installations).then((n=>{const i=function(t){var e;const n=null===(e=t.options)||void 0===e?void 0:e.projectId;if(!n)throw ie.create("no project id");return n}(t.app),r=function(t){var e;const n=null===(e=t.options)||void 0===e?void 0:e.apiKey;if(!n)throw ie.create("no api key");return n}(t.app),a=new Request(`https://firebaseremoteconfig.googleapis.com/v1/projects/${i}/namespaces/fireperf:fetch?key=${r}`,{method:"POST",headers:{Authorization:`${Ee} ${n}`},body:JSON.stringify({app_instance_id:e,app_instance_id_token:n,app_id:we(t.app),app_version:Vt,sdk_version:Te})});return fetch(a).then((t=>{if(t.ok)return t.json();throw ie.create("RC response not ok")}))})).catch((()=>{re.info(Se)}))}(t,e).then(Me).then((t=>function(t){const e=le.getInstance().localStorage;if(!t||!e)return;e.setItem(te,JSON.stringify(t)),e.setItem(ee,String(Date.now()+60*fe.getInstance().configTimeToLive*60*1e3))}(t)),(()=>{}))}const Se="Could not fetch config, will use default configs";function Me(t){if(!t)return t;const e=fe.getInstance(),n=t.entries||{};return void 0!==n.fpr_enabled?e.loggingEnabled="true"===String(n.fpr_enabled):e.loggingEnabled=Ie.loggingEnabled,n.fpr_log_source?e.logSource=Number(n.fpr_log_source):Ie.logSource&&(e.logSource=Ie.logSource),n.fpr_log_endpoint_url?e.logEndPointUrl=n.fpr_log_endpoint_url:Ie.logEndPointUrl&&(e.logEndPointUrl=Ie.logEndPointUrl),n.fpr_log_transport_key?e.transportKey=n.fpr_log_transport_key:Ie.transportKey&&(e.transportKey=Ie.transportKey),void 0!==n.fpr_vc_network_request_sampling_rate?e.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate):void 0!==Ie.networkRequestsSamplingRate&&(e.networkRequestsSamplingRate=Ie.networkRequestsSamplingRate),void 0!==n.fpr_vc_trace_sampling_rate?e.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate):void 0!==Ie.tracesSamplingRate&&(e.tracesSamplingRate=Ie.tracesSamplingRate),e.logTraceAfterSampling=Ae(e.tracesSamplingRate),e.logNetworkAfterSampling=Ae(e.networkRequestsSamplingRate),t}function Ae(t){return Math.random()<=t}let ke,Ce=1;function Pe(t){return Ce=2,ke=ke||function(t){return function(){const t=le.getInstance().document;return new Promise((e=>{if(t&&"complete"!==t.readyState){const n=()=>{"complete"===t.readyState&&(t.removeEventListener("readystatechange",n),e())};t.addEventListener("readystatechange",n)}else e()}))}().then((()=>function(t){const e=t.getId();return e.then((t=>{se=t})),e}(t.installations))).then((e=>_e(t,e))).then((()=>Ne()),(()=>Ne()))}(t),ke}function Ne(){Ce=3}let Le,Fe=3,De=[],Re=!1;function Oe(t){setTimeout((()=>{Fe<=0||(De.length>0&&Ue(),Oe(1e4))}),t)}function Ue(){const t=De.splice(0,1e3),e=t.map((t=>({source_extension_json_proto3:t.message,event_time_ms:String(t.eventTime)})));(function(t){const e=fe.getInstance().getFlTransportFullUrl(),n=JSON.stringify(t);return navigator.sendBeacon&&navigator.sendBeacon(e,n)?Promise.resolve():fetch(e,{method:"POST",body:n,keepalive:!0}).then()})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:fe.getInstance().logSource,log_event:e}).then((()=>{Fe=3})).catch((()=>{De=[...t,...De],Fe--,re.info(`Tries left: ${Fe}.`),Oe(1e4)}))}function $e(t){return(...e)=>{!function(t){if(!t.eventTime||!t.message)throw ie.create("invalid cc log");De=[...De,t]}({message:t(...e),eventTime:Date.now()})}}function xe(){for(;De.length>0;)Ue()}function Be(t,e){Le||(Le={send:$e(qe),flush:xe}),Le.send(t,e)}function je(t){const e=fe.getInstance();!e.instrumentationEnabled&&t.isAuto||(e.dataCollectionEnabled||t.isAuto)&&le.getInstance().requiredApisAvailable()&&(3===Ce?ze(t):Pe(t.performanceController).then((()=>ze(t)),(()=>ze(t))))}function ze(t){if(!ue())return;const e=fe.getInstance();e.loggingEnabled&&e.logTraceAfterSampling&&Be(t,1)}function qe(t,e){return 0===e?function(t){const e={url:t.url,http_method:t.httpMethod||0,http_response_code:200,response_payload_bytes:t.responsePayloadBytes,client_start_time_us:t.startTimeUs,time_to_response_initiated_us:t.timeToResponseInitiatedUs,time_to_response_completed_us:t.timeToResponseCompletedUs},n={application_info:We(t.performanceController.app),network_request_metric:e};return JSON.stringify(n)}(t):function(t){const e={name:t.name,is_auto:t.isAuto,client_start_time_us:t.startTimeUs,duration_us:t.durationUs};0!==Object.keys(t.counters).length&&(e.counters=t.counters);const n=t.getAttributes();0!==Object.keys(n).length&&(e.custom_attributes=n);const i={application_info:We(t.performanceController.app),trace_metric:e};return JSON.stringify(i)}(t)}function We(t){return{google_app_id:we(t),app_instance_id:ue(),web_app_info:{sdk_version:Vt,page_url:le.getInstance().getUrl(),service_worker_status:ve(),visibility_state:ye(),effective_connection_type:be()},application_process_state:0}}function Ke(t,e){const n=e;if(!n||void 0===n.responseStart)return;const i=le.getInstance().getTimeOrigin(),r=Math.floor(1e3*(n.startTime+i)),a=n.responseStart?Math.floor(1e3*(n.responseStart-n.startTime)):void 0,o=Math.floor(1e3*(n.responseEnd-n.startTime));!function(t){const e=fe.getInstance();if(!e.instrumentationEnabled)return;const n=t.url,i=e.logEndPointUrl.split("?")[0],r=e.flTransportEndpointUrl.split("?")[0];n!==i&&n!==r&&e.loggingEnabled&&e.logNetworkAfterSampling&&Be(t,0)}({performanceController:t,url:n.name&&n.name.split("?")[0],responsePayloadBytes:n.transferSize,startTimeUs:r,timeToResponseInitiatedUs:a,timeToResponseCompletedUs:o})}const Ve=["_fp",Gt,Xt,Zt,Yt,Qt];class He{constructor(t,e,n=!1,i){this.performanceController=t,this.name=e,this.isAuto=n,this.state=1,this.customAttributes={},this.counters={},this.api=le.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark=`FB-PERF-TRACE-START-${this.randomId}-${this.name}`,this.traceStopMark=`FB-PERF-TRACE-STOP-${this.randomId}-${this.name}`,this.traceMeasure=i||`${Ht}-${this.randomId}-${this.name}`,i&&this.calculateTraceMetrics())}
1start(){if(1!==this.state)throw ie.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2}stop(){if(2!==this.state)throw ie.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),je(this)}record(t,e,n){if(t<=0)throw ie.create("nonpositive trace startTime",{traceName:this.name});if(e<=0)throw ie.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*e),this.startTimeUs=Math.floor(1e3*t),n&&n.attributes&&(this.customAttributes=Object.assign({},n.attributes)),n&&n.metrics)for(const i of Object.keys(n.metrics))isNaN(Number(n.metrics[i]))||(this.counters[i]=Math.floor(Number(n.metrics[i])));je(this)}incrementMetric(t,e=1){void 0===this.counters[t]?this.putMetric(t,e):this.putMetric(t,this.counters[t]+e)}putMetric(t,e){if(n=t,i=this.name,0===n.length||n.length>100||!(i&&i.startsWith(Jt)&&Ve.indexOf(n)>-1)&&n.startsWith("_"))throw ie.create("invalid custom metric name",{customMetricName:t});var n,i;this.counters[t]=function(t){const e=Math.floor(t);return e<t&&re.info(`Metric value should be an Integer, setting the value as : ${e}.`),e}(null!=e?e:0)}getMetric(t){return this.counters[t]||0}putAttribute(t,e){const n=!(0===(i=t).length||i.length>40||he.some((t=>i.startsWith(t)))||!i.match(ge));var i;const r=function(t){return 0!==t.length&&t.length<=100}(e);if(n&&r)this.customAttributes[t]=e;else{if(!n)throw ie.create("invalid attribute name",{attributeName:t});if(!r)throw ie.create("invalid attribute value",{attributeValue:e})}}getAttribute(t){return this.customAttributes[t]}removeAttribute(t){void 0!==this.customAttributes[t]&&delete this.customAttributes[t]}getAttributes(){return Object.assign({},this.customAttributes)}setStartTime(t){this.startTimeUs=t}setDuration(t){this.durationUs=t}calculateTraceMetrics(){const t=this.api.getEntriesByName(this.traceMeasure),e=t&&t[0];e&&(this.durationUs=Math.floor(1e3*e.duration),this.startTimeUs=Math.floor(1e3*(e.startTime+this.api.getTimeOrigin())))}static createOobTrace(t,e,n,i,r){const a=le.getInstance().getUrl();if(!a)return;const o=new He(t,Jt+a,!0),s=Math.floor(1e3*le.getInstance().getTimeOrigin());o.setStartTime(s),e&&e[0]&&(o.setDuration(Math.floor(1e3*e[0].duration)),o.putMetric("domInteractive",Math.floor(1e3*e[0].domInteractive)),o.putMetric("domContentLoadedEventEnd",Math.floor(1e3*e[0].domContentLoadedEventEnd)),o.putMetric("loadEventEnd",Math.floor(1e3*e[0].loadEventEnd)));if(n){const t=n.find((t=>"first-paint"===t.name));t&&t.startTime&&o.putMetric("_fp",Math.floor(1e3*t.startTime));const e=n.find((t=>"first-contentful-paint"===t.name));e&&e.startTime&&o.putMetric(Gt,Math.floor(1e3*e.startTime)),r&&o.putMetric(Xt,Math.floor(1e3*r))}this.addWebVitalMetric(o,Zt,"lcp_element",i.lcp),this.addWebVitalMetric(o,Yt,"cls_largestShiftTarget",i.cls),this.addWebVitalMetric(o,Qt,"inp_interactionTarget",i.inp),je(o),Le&&Le.flush()}static addWebVitalMetric(t,e,n,i){i&&(t.putMetric(e,Math.floor(1e3*i.value)),i.elementAttribution&&t.putAttribute(n,i.elementAttribution))}static createUserTimingTrace(t,e){je(new He(t,e,!1,e))}}let Je,Ge={},Xe=!1;function Ze(t){ue()&&(setTimeout((()=>function(t){const e=le.getInstance();"onpagehide"in window?e.document.addEventListener("pagehide",(()=>Ye(t))):e.document.addEventListener("unload",(()=>Ye(t)));e.document.addEventListener("visibilitychange",(()=>{"hidden"===e.document.visibilityState&&Ye(t)})),e.onFirstInputDelay&&e.onFirstInputDelay((t=>{Je=t}));e.onLCP((t=>{var e;Ge.lcp={value:t.value,elementAttribution:null===(e=t.attribution)||void 0===e?void 0:e.element}})),e.onCLS((t=>{var e;Ge.cls={value:t.value,elementAttribution:null===(e=t.attribution)||void 0===e?void 0:e.largestShiftTarget}})),e.onINP((t=>{var e;Ge.inp={value:t.value,elementAttribution:null===(e=t.attribution)||void 0===e?void 0:e.interactionTarget}}))}(t)),0),setTimeout((()=>function(t){const e=le.getInstance(),n=e.getEntriesByType("resource");for(const i of n)Ke(t,i);e.setupObserver("resource",(e=>Ke(t,e)))}(t)),0),setTimeout((()=>function(t){const e=le.getInstance(),n=e.getEntriesByType("measure");for(const i of n)Qe(t,i);e.setupObserver("measure",(e=>Qe(t,e)))}(t)),0))}function Qe(t,e){const n=e.name;n.substring(0,21)!==Ht&&He.createUserTimingTrace(t,n)}function Ye(t){if(!Xe){Xe=!0;const e=le.getInstance(),n=e.getEntriesByType("navigation"),i=e.getEntriesByType("paint");setTimeout((()=>{He.createOobTrace(t,n,i,Ge,Je)}),0)}}class tn{constructor(t,e){this.app=t,this.installations=e,this.initialized=!1}_init(t){this.initialized||(void 0!==(null==t?void 0:t.dataCollectionEnabled)&&(this.dataCollectionEnabled=t.dataCollectionEnabled),void 0!==(null==t?void 0:t.instrumentationEnabled)&&(this.instrumentationEnabled=t.instrumentationEnabled),le.getInstance().requiredApisAvailable()?c().then((t=>{t&&(Re||(Oe(5500),Re=!0),Pe(this).then((()=>Ze(this)),(()=>Ze(this))),this.initialized=!0)})).catch((t=>{re.info(`Environment doesn't support IndexedDB: ${t}`)})):re.info('Firebase Performance cannot start if the browser does not support "Fetch" and "Promise", or cookies are disabled.'))}set instrumentationEnabled(t){fe.getInstance().instrumentationEnabled=t}get instrumentationEnabled(){return fe.getInstance().instrumentationEnabled}set dataCollectionEnabled(t){fe.getInstance().dataCollectionEnabled=t}get dataCollectionEnabled(){return fe.getInstance().dataCollectionEnabled}}function en(t=f()){t=a(t);return p(t,"performance").getImmediate()}function nn(t,e){return t=a(t),new He(t,e)}e(new n("performance",((t,{options:e})=>{const n=t.getProvider("app").getImmediate(),i=t.getProvider("installations-internal").getImmediate();if("[DEFAULT]"!==n.name)throw ie.create("FB not default");if("undefined"==typeof window)throw ie.create("no window");var r;r=window,oe=r;const a=new tn(n,i);return a._init(e),a}),"PUBLIC")),i(Wt,Kt),i(Wt,Kt,"esm2017");export{j as a,en as b,B as c,x as g,q as l,z as s,nn as t};
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.