PageSourceSearch

https://litnotes.ai/_next/static/chunks/481-69ce2dbaa792de96.js

js litnotes.ai collected 2026-10-05 15:38:04 UTC 15,907 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[481],{468:(e,t,n)=>{n.d(t,{V:()=>r,i:()=>a});let r={HOMEPAGE_SEARCH_CLICK:"homepage_search_click",HOMEPAGE_FILTER_CLICK:"homepage_filter_click",BOOK_SEARCH_RESULT_ITEM_CLICK:"book_search_result_item_click",BOOK_DETAIL_READ_BUTTON_CLICK:"book_detail_read_button_click",BOOK_DETAIL_LISTEN_BUTTON_CLICK:"book_detail_listen_button_click",BOOK_DETAIL_SHARE_CLICK:"book_detail_share_click",SIGN_UP_GOOGLE_CLICK:"sign_up_google_click",SIGN_UP_APPLE_CLICK:"sign_up_apple_click",SIGN_UP_EMAIL_CLICK:"sign_up_email_click",SIGN_IN_CLICK:"sign_in_click",SIGN_IN_GOOGLE_CLICK:"sign_in_google_click",SIGN_IN_APPLE_CLICK:"sign_in_apple_click",AUTH_SWITCH_TO_SIGN_UP_CLICK:"auth_switch_to_sign_up_click",AUTH_SWITCH_TO_SIGN_IN_CLICK:"auth_switch_to_sign_in_click",PAYWALL_MONTHLY_CLICK:"paywall_monthly_click",PAYWALL_YEARLY_CLICK:"paywall_yearly_click",PAYWALL_SUBSCRIBE_CLICK:"paywall_subscribe_click",PAYWALL_LOGIN_CLICK:"paywall_login_click",PAYWALL_RESULT_CONTINUE_CLICK:"paywall_result_continue_click",PAYWALL_RESULT_RETRY_CLICK:"paywall_result_retry_click",PAYWALL_RESULT_CONTACT_SUPPORT_CLICK:"paywall_result_contact_support_click",PAYWALL_RESTORE_PURCHASE_CLICK:"paywall_restore_purchase_click",PAYWALL_MANAGE_SUBSCRIPTION_CLICK:"paywall_manage_subscription_click",WHATSAPP_ENTRY_BANNER_CLICK:"whatsapp_entry_banner_click",WHATSAPP_ENTRY_ROW_CLICK:"whatsapp_entry_row_click"};var a=function(e){return e.UI="ui",e.Back="back",e.Into="into",e.Action="action",e.Mult="mult",e.Retry="retry",e.External="external",e.Payment="payment",e}({})},683:(e,t,n)=>{n.d(t,{JR:()=>_,MP:()=>E,X3:()=>I,bJ:()=>S,iL:()=>u,oA:()=>w,sx:()=>g,vH:()=>v,xs:()=>m});var r=n(3555),a=n(2319);let i=!1,o=null,s=null,l=e=>{var t,n,a;return{screen_name:null!=(t=null==e?void 0:e.screen_name)?t:d(),previous_screen:null!=(n=null==e?void 0:e.previous_screen)?n:p(),timestamp:null!=(a=null==e?void 0:e.timestamp)?a:new Date().toISOString(),...(0,r.p0)(),...e||{}}},c=(e,t)=>{(0,a.logFirebaseAnalyticsEvent)(e,t)},_=e=>{(0,a.logFirebasePageView)(e)},u=e=>{s=o,o=e},d=()=>o||(()=>{var e;return"undefined"==typeof document?"unknown":(null==(e=document.title)?void 0:e.trim())||"unknown"})(),p=()=>s,w=()=>{i=!0},m=()=>{i=!1},h=(e,t)=>{c(e,l(t))},g=(e,t)=>{h(e,t)},I=e=>{let{screenName:t,screenPath:n,previousScreen:r,sessionScreenIndex:a}=e;h("screen_view",{screen_name:t,screen_class:t,screen_path:n,previous_screen:null!=r?r:p(),session_screen_index:a})},v=e=>{let{screenName:t,screenPath:n,previousScreen:r,viewDurationMs:a}=e;h("screen_view_duration",{screen_name:t,screen_class:t,screen_path:n,previous_screen:null!=r?r:p(),view_duration_ms:a,view_duration_seconds:Math.round(a/1e3)})},E=e=>{let{actionName:t,bizData:n,screenName:r,previousScreen:a,elementType:i="unknown",elementId:o,elementText:s,trackingTag:_}=e;c("item_click",l({action_name:t,element_id:o||"unknown",element_type:i,element_text:s||"",screen_name:r||d(),previous_screen:null!=a?a:p(),tracking_tag:(e=>Array.isArray(e)?e[0]:e)(_),...n||{}}))},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let r=n.currentTarget;if(i&&!t.disableTracking&&t.actionName){var a;E({actionName:t.actionName,bizData:t.bizData,screenName:t.screenName,previousScreen:t.previousScreen,elementType:t.componentType||r.tagName.toLowerCase()||"unknown",elementId:t.elementId||r.id||void 0,elementText:t.elementText||(null==(a=r.textContent)?void 0:a.trim().slice(0,120))||"",trackingTag:t.trackingTag})}else t.disableTracking&&t.disableTrackingReason;null==e||e(n)}}},2319:(e,t,n)=>{n.r(t),n.d(t,{FIREBASE_MEASUREMENT_ID:()=>A,FIREBASE_WEB_EVENT_PREFIX:()=>C,initializeFirebaseAnalytics:()=>S,logFirebaseAnalyticsEvent:()=>L,logFirebasePageView:()=>f,syncFirebaseUserIdentity:()=>y});var r=n(3915),a=n(6864),i=n(9509);let o={apiKey:"AIzaSyAf-b87gsNkhEZXxD1KCTKIdQ2avcX_paQ",authDomain:"litnotes-3947a.firebaseapp.com",projectId:"litnotes-3947a",storageBucket:"litnotes-3947a.firebasestorage.app",messagingSenderId:"259412303707",appId:"1:259412303707:web:254e74ccc7ff50d61b847e",measurementId:"G-NCGPYE722Y"},s=new Set(["litnotes.ai","www.litnotes.ai"]),l="ln_web",c=i.env.NEXT_PUBLIC_BUILD_VARIANT||"",_="true"===i.env.NEXT_PUBLIC_ENABLE_DEV_FIREBASE_ANALYTICS,u=()=>s.has(window.location.hostname),d={apiKey:i.env.NEXT_PUBLIC_FIREBASE_API_KEY||o.apiKey,authDomain:i.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN||o.authDomain,projectId:i.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID||o.projectId,storageBucket:i.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET||o.storageBucket,messagingSenderId:i.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID||o.messagingSenderId,appId:i.env.NEXT_PUBLIC_FIREBASE_APP_ID||o.appI
1d,measurementId:i.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID||o.measurementId},p=null,w=()=>!u()&&"dev"===c,m=()=>!w()||_,h=()=>"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"".concat(Date.now(),"_").concat(Math.random().toString(36).slice(2,12)),g=(e,t)=>{if(!e)return h();let n=e.getItem(t);if(n)return n;let r=h();return e.setItem(t,r),r},I=(e,t)=>{let n=[];return Object.entries(e).forEach(e=>{let[r,a]=e,i=(e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"");return t?(/^[a-z]/.test(t)?t:"p_".concat(t)).slice(0,40):""})(t?"".concat(t,"_").concat(r):r);if(!i||Array.isArray(a))return;if("[object Object]"===Object.prototype.toString.call(a))return void n.push(...I(a,i));let o=(e=>{if(null!=e){if("string"==typeof e)return e.slice(0,100);if("number"==typeof e)return Number.isFinite(e)?e:void 0;if("boolean"==typeof e)return e;if(e instanceof Date)return e.toISOString().slice(0,100)}})(a);void 0!==o&&n.push([i,o])}),n},v=e=>{if(!e)return;let t=I(e).slice(0,25);if(t.length)return Object.fromEntries(t)},E=e=>e.trim().toLowerCase().replace(/[^a-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,""),S=()=>m()&&d.apiKey&&d.appId&&d.projectId&&d.measurementId?(p||(p=(0,a.TT)().then(e=>e?(0,a.P5)((0,r.Dk)().length>0?(0,r.Sx)():(0,r.Wp)(d)):null).catch(()=>null)),p):Promise.resolve(null),y=e=>{S().then(t=>{var n;if(!t)return;let r=(null==e||null==(n=e.userId)?void 0:n.trim())||"",i=v({signed_in:!!r,...(null==e?void 0:e.userProperties)||{}});(0,a.do)(t,r),i&&(0,a.Fi)(t,i)})},L=(e,t)=>{S().then(n=>{if(!n)return;let r={...((e,t)=>{let n="string"==typeof(null==t?void 0:t.timestamp)&&t.timestamp?t.timestamp:new Date().toISOString(),r="string"==typeof(null==t?void 0:t.biz_user_id)&&t.biz_user_id.trim()?t.biz_user_id.trim():void 0;return{event_id:h(),client_id:g(window.localStorage,"litnotes-tracking-client-id"),session_id:g(window.sessionStorage,"litnotes-tracking-session-id"),event_name:e,build_env:u()?"prod":"dev"===c?"dev":"prod",debug_mode:w()&&m(),user_id:r,platform:"web",timestamp:n}})(e,t),...t||{}};(0,a.$s)(n,((e,t)=>{let n=E(e)||"event",r=E(String((null==t?void 0:t.screen_name)||"")),a=E(String((null==t?void 0:t.action_name)||"")),i="".concat(l,"_").concat(n);return"item_click"===n&&a?i="".concat(l,"_click_").concat(a):"screen_view"===n&&r&&(i="".concat(l,"_screen_view_").concat(r)),i.slice(0,40)})(e,r),v(r))})},f=e=>{L("page_view",{page_path:e,page_title:document.title||void 0,page_location:window.location.href})},A=d.measurementId||o.measurementId,C=l},3555:(e,t,n)=>{n.d(t,{CG:()=>f,Fx:()=>y,G4:()=>Y,GA:()=>K,L:()=>H,OO:()=>X,Pt:()=>U,RD:()=>L,Rc:()=>g,Ur:()=>W,c5:()=>S,do:()=>R,fx:()=>E,p0:()=>z,ps:()=>N,uS:()=>F,vu:()=>G});var r=n(7006),a=n(8454);let i="litnotes-auth-token",o="litnotes-auth-profile",s="litnotes-attribution-source",l="litnotes-h5-source",c="/auth-preview/login",_="/auth-preview/signup",u=new Set([c,_]),d=e=>e&&"/"!==e?e.endsWith("/")?e.slice(0,-1):e:"/",p=e=>e&&"/"!==e?e.endsWith("/")?e:"".concat(e,"/"):"/",w=function(e,t){let{excludeKeys:n=new Set,overwrite:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.forEach((e,a)=>{if(!n.has(a)){if(r)return void t.set(a,e);t.has(a)||t.append(a,e)}})},m=e=>{try{return new URL(e,"https://litnotes.ai").searchParams}catch(e){return new URLSearchParams}},h=e=>{try{let t=new URL(e,"https://litnotes.ai");if("https://litnotes.ai"!==t.origin||(e=>!e||"/"===e||e.endsWith("/")||e.startsWith("/api/")||e.startsWith("/_next/")||/\/[^/]+\.[^/]+$/.test(e))(t.pathname))return e;return t.pathname=p(t.pathname),"".concat(t.pathname).concat(t.search).concat(t.hash)}catch(t){return e}},g=e=>h(e),I=e=>{if(!e||!e.startsWith("/")||e.startsWith("//"))return"";let t=d(e.split(/[?#]/,1)[0]);return u.has(t)?"":g(e)},v=(e,t)=>{let n=d(e),r=new URL(p(e),window.location.origin),a=new URL(window.location.href),i="".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash),o=I(null!=t?t:null),s=I(a.searchParams.get("returnTo")),l=o||s||i,c=d(window.location.pathname),_=m(l);return w(a.searchParams,r.searchParams,{excludeKeys:new Set(["returnTo"])}),w(_,r.searchParams,{excludeKeys:new Set(["returnTo"]),overwrite:!0}),c!==n&&l&&d(l.split(/[?#]/,1)[0])!==n&&r.searchParams.set("returnTo",l),r.toString()},E=e=>v(c,e),S=e=>v(_,e),y=(e,t)=>{let n=new URL(h(e),window.location.origin);return w(new URLSearchParams(window.location.search),n.searchParams),Object.entries(null!=t?t:{}
1).forEach(e=>{let[t,r]=e;if(null==r)return void n.searchParams.delete(t);n.searchParams.set(t,r)}),"".concat(n.pathname).concat(n.search).concat(n.hash)},L=(e,t)=>new URL(y(e,t),window.location.origin).toString(),f=()=>{let e=I(new URL(window.location.href).searchParams.get("returnTo"));if(e)return e;let t=(e=>{if(!e)return"";try{let t=new URL(e);if(t.origin!==window.location.origin)return"";return I("".concat(t.pathname).concat(t.search).concat(t.hash))}catch(e){return""}})(document.referrer);return t||(()=>{let e=new URL(window.location.href),t=d(e.pathname),n=new URLSearchParams(e.search);return n.delete("returnTo"),((e,t,n)=>{let r=t.toString();return"".concat(e).concat(r?"?".concat(r):"").concat(n)})(u.has(t)?"/":e.pathname,n,e.hash)})()},A=e=>"string"!=typeof e?"":e.trim(),C=e=>A(e.get("source")||e.get("campaignSource")||e.get("utm_source")||""),T=e=>{if(!e||"object"!=typeof e||Array.isArray(e))return null;let t=e.data;if(t&&"object"==typeof t&&!Array.isArray(t)){let e=t.data;return e&&"object"==typeof e&&!Array.isArray(e)?e:t}return e},P=e=>{let t={"Content-Type":"application/json"};return e&&(t.Authorization="Bearer ".concat(e)),t},b=async e=>{let t=await fetch("".concat(r.Ay.serverHost,"/api/users/profile"),{method:"GET",headers:P(e)});if(!t.ok)throw Error("Profile fetch failed with status ".concat(t.status));let n=await t.json();return F(n),n},U=()=>window.localStorage.getItem(i)||"",R=e=>{if(e)return void window.localStorage.setItem(i,e);window.localStorage.removeItem(i)},N=()=>{let e=window.localStorage.getItem(o);if(!e)return null;try{let t=JSON.parse(e);return T(t)}catch(e){return window.localStorage.removeItem(o),null}},k=e=>{if(!e)return void window.localStorage.removeItem(o);window.localStorage.setItem(o,JSON.stringify(e)),G()},O=()=>A(window.sessionStorage.getItem(l))||A(window.localStorage.getItem(s))||"",B=e=>{let t=A(e),n=O();if(!t){if(!n)return;window.sessionStorage.removeItem(l),window.localStorage.removeItem(s),G();return}if(n===t){window.sessionStorage.getItem(l)!==t&&window.sessionStorage.setItem(l,t);return}window.localStorage.setItem(s,t),window.sessionStorage.setItem(l,t),G()},K=()=>{let e=C(new URLSearchParams(window.location.search));return e?(B(e),e):(B("web"),"web")},D=()=>{let e=C(new URLSearchParams(window.location.search));if(e)return e;let t=I(new URLSearchParams(window.location.search).get("returnTo"));return t&&C(m(t))||O()},W=()=>D()||"web",z=()=>{let e=N(),t=A((null==e?void 0:e.singularNetwork)||(null==e?void 0:e.registerSource)||(null==e?void 0:e.source)),n=D()||"web";return{biz_user_id:("string"==typeof(null==e?void 0:e.id)?e.id:"number"==typeof(null==e?void 0:e.displayId)?String(e.displayId):"")||void 0,biz_user_source:t||void 0,biz_campaign_source:n||void 0,campaign_source:n||void 0,...(0,a.cF)(),biz_user_type:"string"==typeof(null==e?void 0:e.type)||"number"==typeof(null==e?void 0:e.type)?String(e.type):void 0}},G=()=>{Promise.resolve().then(n.bind(n,2319)).then(e=>{let{syncFirebaseUserIdentity:t}=e;t((()=>{let e=z();return{userId:e.biz_user_id,userProperties:{user_type:e.biz_user_type,user_source:e.biz_user_source,campaign_source:e.biz_campaign_source}}})())}).catch(e=>{})},F=e=>{let t=T(e);return t?(k(t),t):null},H=()=>{R(""),k(null),B(""),G()},X=()=>{window.location.assign(E())},Y=async()=>{try{let e=await fetch("".concat(r.Ay.serverHost,"/api/auth/guest/token"),{method:"POST",headers:P()});if(!e.ok)throw Error("Guest token failed with status ".concat(e.status));let t=await e.json(),n=(e=>(null==e?void 0:e.token)||(null==e?void 0:e.accessToken)||"")(null==t?void 0:t.data);if(!n)return console.warn("Empty guest token"),null;R(n);try{await b(n)}catch(e){console.warn("Fetch user profile after guest token failed:",e)}return n}catch(e){return console.warn("guestDeviceLogin failed:",e),null}}},7006:(e,t,n)=>{n.d(t,{Ay:()=>a});var r=n(9509);let a=(e=>({...e,assetUrl:r.env.NEXT_PUBLIC_ASSET_URL||e.assetUrl,serverHost:r.env.NEXT_PUBLIC_SERVER_HOST||e.serverHost,privacy:r.env.NEXT_PUBLIC_PRIVACY_URL||e.privacy,terms:r.env.NEXT_PUBLIC_TERMS_URL||e.terms,webseo:r.env.NEXT_PUBLIC_WEBSEO_URL||e.webseo,analyticsEndpoint:r.env.NEXT_PUBLIC_ANALYTICS_ENDPOINT||e.analyticsEndpoint}))("prod"===(()=>{let e=r.env.NEXT_PUBLIC_BUILD_VARIANT;return"prod"===e||"dev"===e?e:"prod"})()?{assetUrl:"https://static.litnotes.ai/litnotes",serverHost:"https://api.litnotes.ai",privacy:"https://static.litnotes.ai/litnotes/html/privacy.html",terms:"https://static.litnotes.ai/litnotes/html/terms.html",webseo:"https://lits.litnotes.ai",analyticsEndpoint:"https://data-gateway.litnotes.ai/analytics"}:{assetUrl:"https://static.litnotes.ai/litnotes",serverHost:"https://dev-api.litnotes.ai",privacy:"https://static.litnotes.ai/litnotes/html/privacy.html",terms:"https://static.litnotes.ai/litnotes/html/terms.html",webseo:"https://lits.litnotes.ai",analyticsEndpoint:"https://dev-data-gateway.litnotes.ai/analytics"})}
1,8454:(e,t,n)=>{n.d(t,{Xd:()=>c,_5:()=>l,cF:()=>_});let r=["refer","ref"],a="litnotes-h5-refer-object",i=new Set(["biz_campaign_source","biz_user_id","biz_user_source","biz_user_type"]),o=e=>{try{let t=JSON.parse(e);return(e=>!!e&&"object"==typeof e&&!Array.isArray(e))(t)?t:null}catch(e){return null}},s=e=>{for(let n of r){var t;let r=null==(t=e.get(n))?void 0:t.trim();if(r)return{key:n,value:r}}return null},l=()=>{let e=s(new URLSearchParams(window.location.search))||s((()=>{let e=new URLSearchParams(window.location.search).get("returnTo");if(!(null==e?void 0:e.startsWith("/"))||e.startsWith("//"))return new URLSearchParams;try{return new URL(e,window.location.origin).searchParams}catch(e){return new URLSearchParams}})()),t=(e=>{if(!(null==e?void 0:e.value))return;let t=o(e.value);if(t)return t;let n=(e=>{try{let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(t.length+(4-t.length%4)%4,"="),r=window.atob(n),a=Uint8Array.from(r,e=>e.charCodeAt(0));return new TextDecoder().decode(a)}catch(e){return""}})(e.value),r=n?o(n):null;return r||("ref"===e.key?{ref:e.value}:void 0)})(e);if(t)return(e=>{let t=(e=>{try{return JSON.stringify(e)}catch(e){return""}})(e);t&&window.sessionStorage.setItem(a,t)})(t),t;null==e||e.value},c=()=>l()||(()=>{let e=window.sessionStorage.getItem(a);return e?o(e):void 0})(),_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c();if(!e)return{};let t={};return Object.entries(e).forEach(e=>{let[n,r]=e,a=(e=>{let t=e.trim().toLowerCase().replace(/[^a-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"");return t?t.startsWith("biz_")?t:"biz_".concat(t):""})(n),o="string"==typeof r?r.trim()||void 0:"number"==typeof r?Number.isFinite(r)?r:void 0:"boolean"==typeof r?r:void 0;!a||i.has(a)||void 0===o||(t[a]=o)}),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.