PageSourceSearch

https://askaichat.app/cms_nuxt/DCmQ6r5t.js

js askaichat.app collected 2026-10-02 04:17:35 UTC 10,672 bytes, 1 lines download raw bytes

1import{I as e,L as t,M as r,St as n,bt as o}from"./DIU4zoEY.js";import{L as i,T as a,_ as s,b as l,h as c,m as h,s as p,v as u,y as g}from"./B-mhidQU.js";import"./BpU5WkIR.js";s("firebase","11.10.0","app");var d,f=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(d||(d={}));var k={debug:d.DEBUG,verbose:d.VERBOSE,info:d.INFO,warn:d.WARN,error:d.ERROR,silent:d.SILENT},v=d.INFO,w={[d.DEBUG]:"log",[d.VERBOSE]:"log",[d.INFO]:"info",[d.WARN]:"warn",[d.ERROR]:"error"},m=(e,t,...r)=>{if(t<e.logLevel)return;const n=(new Date).toISOString(),o=w[t];if(!o)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[o](`[${n}]  ${e.name}:`,...r)},E=new Map,b={activated:!1,tokenObservers:[]},y={initialized:!1,enabled:!1};function R(e){return E.get(e)||Object.assign({},b)}function T(){return y}var L=3e4,O=96e4,I=class{constructor(e,t,r,n,o){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=r,this.lowerBound=n,this.upperBound=o,this.pending=null,this.nextErrorWaitInterval=n,n>o)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}async process(e){this.stop();try{this.pending=new g,this.pending.promise.catch(e=>{}),await(t=this.getNextRun(e),new Promise(e=>{setTimeout(e,t)})),this.pending.resolve(),await this.pending.promise,this.pending=new g,this.pending.promise.catch(e=>{}),await this.operation(),this.pending.resolve(),await this.pending.promise,this.process(!0).catch(()=>{})}catch(r){this.retryPolicy(r)?this.process(!1).catch(()=>{}):this.stop()}var t}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const e=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),e}}};var P=new l("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.","initial-throttle":"{$httpStatus} error. Attempts allowed again after {$time}",throttled:"Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}"});function N(e){if(!R(e).activated)throw P.create("use-before-activation",{appName:e.name})}async function H({url:e,body:t},r){const n={"Content-Type":"application/json"},o=r.getImmediate({optional:!0});if(o){const e=await o.getHeartbeatsHeader();e&&(n["X-Firebase-Client"]=e)}const i={method:"POST",body:JSON.stringify(t),headers:n};let a,s;try{a=await fetch(e,i)}catch(p){throw P.create("fetch-network-error",{originalErrorMessage:null==p?void 0:p.message})}if(200!==a.status)throw P.create("fetch-status-error",{httpStatus:a.status});try{s=await a.json()}catch(p){throw P.create("fetch-parse-error",{originalErrorMessage:null==p?void 0:p.message})}const l=s.ttl.match(/^([\d.]+)(s)$/);if(!l||!l[2]||isNaN(Number(l[1])))throw P.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${s.ttl}`});const c=1e3*Number(l[1]),h=Date.now();return{token:s.token,expireTimeMillis:h+c,issuedAtTimeMillis:h}}
1function x(e,t){const{projectId:r,appId:n,apiKey:o}=e.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${r}/apps/${n}:exchangeDebugToken?key=${o}`,body:{debug_token:t}}}var A="firebase-app-check-store",_=null;function M(e,t){return async function(e,t){const r=(await(_||(_=new Promise((e,t)=>{try{const r=indexedDB.open("firebase-app-check-database",1);r.onsuccess=t=>{e(t.target.result)},r.onerror=e=>{var r;t(P.create("storage-open",{originalErrorMessage:null===(r=e.target.error)||void 0===r?void 0:r.message}))},r.onupgradeneeded=e=>{const t=e.target.result;0===e.oldVersion&&t.createObjectStore(A,{keyPath:"compositeKey"})}}catch(r){t(P.create("storage-open",{originalErrorMessage:null==r?void 0:r.message}))}})))).transaction(A,"readwrite"),n=r.objectStore(A).put({compositeKey:e,value:t});return new Promise((e,t)=>{n.onsuccess=t=>{e()},r.onerror=e=>{var r;t(P.create("storage-set",{originalErrorMessage:null===(r=e.target.error)||void 0===r?void 0:r.message}))}})}(function(e){return`${e.options.appId}-${e.name}`}(e),t)}var S=new class{constructor(e){this.name=e,this._logLevel=v,this._logHandler=m,this._userLogHandler=null,f.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in d))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?k[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,d.DEBUG,...e),this._logHandler(this,d.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,d.VERBOSE,...e),this._logHandler(this,d.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,d.INFO,...e),this._logHandler(this,d.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,d.WARN,...e),this._logHandler(this,d.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,d.ERROR,...e),this._logHandler(this,d.ERROR,...e)}}("@firebase/app-check");function C(e,t){return i()?M(e,t).catch(e=>{S.warn(`Failed to write token to IndexedDB. Error: ${e}`)}):Promise.resolve()}function $(){return T().enabled}async function B(){const e=T();if(e.enabled&&e.token)return e.token.promise;throw Error("\n            Can't get debug token in production mode.\n        ")}var W={error:"UNKNOWN_ERROR"};async function D(e,t=!1,r=!1){const n=e.app;N(n);const o=R(n);let i,a=o.token;if(a&&!U(a)&&(o.token=void 0,a=void 0),!a){const e=await o.cachedTokenPromise;e&&(U(e)?a=e:await C(n,void 0))}if(!t&&a&&U(a))return{token:a.token};let s,l=!1;if($())try{o.exchangeTokenPromise||(o.exchangeTokenPromise=H(x(n,await B()),e.heartbeatServiceProvider).finally(()=>{o.exchangeTokenPromise=void 0}),l=!0);const t=await o.exchangeTokenPromise;return await C(n,t),o.token=t,{token:t.token}}catch(c){return"appCheck/throttled"===c.code||"appCheck/initial-throttle"===c.code?S.warn(c.message):r&&S.error(c),z(c)}try{o.exchangeTokenPromise||(o.exchangeTokenPromise=o.provider.getToken().finally(()=>{o.exchangeTokenPromise=void 0}),l=!0),a=await R(n).exchangeTokenPromise}catch(c){"appCheck/throttled"===c.code||"appCheck/initial-throttle"===c.code?S.warn(c.message):r&&S.error(c),i=c}return a?i?s=U(a)?{token:a.token,internalError:i}:z(i):(s={token:a.token},o.token=a,await C(n,a)):s=z(i),l&&function(e,t){const r=R(e).tokenObservers;for(const n of r)try{"EXTERNAL"===n.type&&null!=t.error?n.error(t.error):n.next(t)}catch(c){}}(n,s),s}function F(e,t){const r=R(e),n=r.tokenObservers.filter(e=>e.next!==t);0===n.length&&r.tokenRefresher&&r.tokenRefresher.isRunning()&&r.tokenRefresher.stop(),r.tokenObservers=n}function j(e){const{app:t}=e,r=R(t);let n=r.tokenRefresher;n||(n=function(e){const{app:t}=e;return new I(async()=>{let r;if(r=R(t).token?await D(e,!0):await D(e),r.error)throw r.error;if(r.internalError)throw r.internalError},()=>!0,()=>{const e=R(t);if(e.token){let t=e.token.issuedAtTimeMillis+.5*(e.token.expireTimeMillis-e.token.issuedAtTimeMillis)+3e5;const r=e.token.expireTimeMillis-3e5;return t=Math.min(t,r),Math.max(0,t-Date.now())}return 0},L,O)}(e),r.tokenRefresher=n),!n.isRunning()&&r.isTokenAutoRefreshEnabled&&n.start()}function U(e){return e.expireTimeMillis-Date.now()>0}function z(e){return{token:(t=W,a.encodeString(JSON.stringify(t),!1)),error:e};var t}var V=class{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){const{tokenObservers:e}=R(this.app);for(const t of e)F(this.app,t.next);return Promise.resolve()}};function G(e){return{getToken:t=>D(e,t),getLimitedUseToken:()=>async function(e){const t=e.app;N(t);const{provider:r}=R(t);if($()){const{token:r}=await H(x(t,await B()),e.heartbeatServiceProvider);return{token:r}}{const{token:e}=await r.getToken();return{token:e}}}(e),addTokenListener:t=>function(e,t,r,n){const{app:o}=e,i=R(o),a={next:r,error:n,type:t};if(i.tokenObservers=[...i.tokenObservers,a],i.token&&U(i.token)){const t=i.token;Promise.resolve().then(()=>{r({token:t.token}),j(e)}).catch(()=>{})}i.cachedTokenPromise.then(()=>j(e))}(e,"INTERNAL",t),removeTokenListener:t=>F(e.app,t)}}var K="app-check-internal";h(new u("app-check",e=>{return t=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),new V(t,r);var t,r},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider(K).initialize()})),h(new u(K,e=>G(e.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),s("@firebase/app-check","0.10.1"),e(),n();var X=Symbol("firebaseApp");function J(e){return r()&&t(X,null)||c(e)}var q=new WeakMap;function Y(e,t){if(!q.has(e)){const r=o(!0);q.set(e,r);const{unmount:n}=t;t.unmount=()=>{n.call(t),r.stop(),q.delete(e)}}return q.get(e)}var Q=new WeakMap,Z=new WeakMap;function ee(e){const t=J(e);if(!Z.has(t)){let e;const r=[new Promise(t=>{e=t}),r=>{Z.set(t,r),e(r.value)}];Z.set(t,r)}return Z.get(t)}function te(e){const t=ee(e);return Array.isArray(t)?t[0]:Promise.resolve(t.value)}function re(e,t){p(t,t=>{const r=ee();e.value=t,Array.isArray(r)&&r[1](e)})}
1export{re as a,Y as i,Q as n,J as o,te as r,X 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.