PageSourceSearch

https://gomuda.id/assets/index.esm-Cya0L9nZ.js

js gomuda.id collected 2026-10-10 01:02:12 UTC 8,336 bytes, 2 lines download raw bytes

1import{a as e}from"./Brand-Bv3Se9No.js";import{M as t,S as n,T as r,a as i,b as a,i as o,n as s,p as c,r as l,s as u,u as d}from"./index.esm-BmJ8S0Kb.js";var f=`type.googleapis.com/google.protobuf.Int64Value`,p=`type.googleapis.com/google.protobuf.UInt64Value`;function m(e,t){let n={};for(let r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function h(e){if(e==null)return null;if(e instanceof Number&&(e=e.valueOf()),typeof e==`number`&&isFinite(e)||e===!0||e===!1||Object.prototype.toString.call(e)===`[object String]`)return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map(e=>h(e));if(typeof e==`function`||typeof e==`object`)return m(e,e=>h(e));throw Error(`Data cannot be encoded in JSON: `+e)}function g(e){if(e==null)return e;if(e[`@type`])switch(e[`@type`]){case f:case p:{let t=Number(e.value);if(isNaN(t))throw Error(`Data cannot be decoded from JSON: `+e);return t}default:throw Error(`Data cannot be decoded from JSON: `+e)}return Array.isArray(e)?e.map(e=>g(e)):typeof e==`function`||typeof e==`object`?m(e,e=>g(e)):e}var _=`functions`,v={OK:`ok`,CANCELLED:`cancelled`,UNKNOWN:`unknown`,INVALID_ARGUMENT:`invalid-argument`,DEADLINE_EXCEEDED:`deadline-exceeded`,NOT_FOUND:`not-found`,ALREADY_EXISTS:`already-exists`,PERMISSION_DENIED:`permission-denied`,UNAUTHENTICATED:`unauthenticated`,RESOURCE_EXHAUSTED:`resource-exhausted`,FAILED_PRECONDITION:`failed-precondition`,ABORTED:`aborted`,OUT_OF_RANGE:`out-of-range`,UNIMPLEMENTED:`unimplemented`,INTERNAL:`internal`,UNAVAILABLE:`unavailable`,DATA_LOSS:`data-loss`},y=class e extends c{constructor(t,n,r){super(`${_}/${t}`,n||``),this.details=r,Object.setPrototypeOf(this,e.prototype)}};function b(e){if(e>=200&&e<300)return`ok`;switch(e){case 0:return`internal`;case 400:return`invalid-argument`;case 401:return`unauthenticated`;case 403:return`permission-denied`;case 404:return`not-found`;case 409:return`aborted`;case 429:return`resource-exhausted`;case 499:return`cancelled`;case 500:return`internal`;case 501:return`unimplemented`;case 503:return`unavailable`;case 504:return`deadline-exceeded`}return`unknown`}function x(e,t){let n=b(e),r=n,i;try{let e=t&&t.error;if(e){let t=e.status;if(typeof t==`string`){if(!v[t])return new y(`internal`,`internal`);n=v[t],r=t}let a=e.message;typeof a==`string`&&(r=a),i=e.details,i!==void 0&&(i=g(i))}}catch{}return n===`ok`?null:new y(n,r,i)}var S=class{constructor(e,t,n,r){this.app=e,this.auth=null,this.messaging=null,this.appCheck=null,this.serverAppAppCheckToken=null,l(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.auth=t.getImmediate({optional:!0}),this.messaging=n.getImmediate({optional:!0}),this.auth||t.get().then(e=>this.auth=e,()=>{}),this.messaging||n.get().then(e=>this.messaging=e,()=>{}),this.appCheck||r==null||r.get().then(e=>this.appCheck=e,()=>{})}async getAuthToken(){if(this.auth)try{let e=await this.auth.getToken();return e==null?void 0:e.accessToken}catch{return}}async getMessagingToken(){if(!(!this.messaging||!(`Notification`in self)||Notification.permission!==`granted`))try{return await this.messaging.getToken()}catch{return}}async getAppCheckToken(e){if(this.serverAppAppCheckToken)return this.serverAppAppCheckToken;if(this.appCheck){let t=e?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return t.error?null:t.token}return null}async getContext(e){return{authToken:await this.getAuthToken(),messagingToken:await this.getMessagingToken(),appCheckToken:await this.getAppCheckToken(e)}}},C=`us-central1`,w=/^data: (.*?)(?:\n|$)/;function T(e){let t=null;return{promise:new Promise((n,r)=>{t=setTimeout(()=>{r(new y(`deadline-exceeded`,`deadline-exceeded`))},e)}),cancel:()=>{t&&clearTimeout(t)}}}var E=class{constructor(e,t,n,r,i=C,a=(...e)=>fetch(...e)){this.app=e,this.fetchImpl=a,this.emulatorOrigin=null,this.contextProvider=new S(e,t,n,r),this.cancelAllRequests=new Promise(e=>{this.deleteService=()=>Promise.resolve(e())});try{let e=new URL(i);this.customDomain=e.origin+(e.pathname===`/`?``:e.pathname),this.region=C}catch{this.customDomain=null,this.region=i}}_delete(){return this.deleteService()}_url(e){let t=this.app.options.projectId;return this.emulatorOrigin===null?this.customDomain===null?`https://${this.region}-${t}.cloudfunctions.net/${e}`:`${this.customDomain}/${e}`:`${this.emulatorOrigin}/${t}/${this.region}/${e}`}};function D(e,n,i){let a=r(n);e.emulatorOrigin=`http${a?`s`:``}://${n}:${i}`,a&&t(e.emulatorOrigin+`/backends`)}function O(e,t,n){let r=r=>M(e,t,r,n||{});return r.stream=(n,r)=>P(e,t,n,r),r}function k(e){return e.emulatorOrigin&&r(e.emulatorOrigin)?`include`:void 0}async function A(e,t,n,r,i){n[`Content-Type`]=`application/json`;let a;try{a=await r(e,{method:`POST`,body:JSON.stringify(t),headers:n,credentials:k(i)})}catch{return{status:0,json:null}}let o=null;try{o=await a.json()}catch{}return{status:a.status,json:o}}async function j(e,t){let n={},r=await e.contextProvider.getContext(t.limitedUseAppCheckTokens);return r.authToken&&(n.Authorization=`Bearer `+r.authToken),r.messagingToken&&
1(n[`Firebase-Instance-ID-Token`]=r.messagingToken),r.appCheckToken!==null&&(n[`X-Firebase-AppCheck`]=r.appCheckToken),n}function M(e,t,n,r){return N(e,e._url(t),n,r)}async function N(e,t,n,r){n=h(n);let i={data:n},a=await j(e,r),o=T(r.timeout||7e4),s=await Promise.race([A(t,i,a,e.fetchImpl,e),o.promise,e.cancelAllRequests]);if(o.cancel(),!s)throw new y(`cancelled`,`Firebase Functions instance was deleted.`);let c=x(s.status,s.json);if(c)throw c;if(!s.json)throw new y(`internal`,`Response is not valid JSON object.`);let l=s.json.data;if(l===void 0&&(l=s.json.result),l===void 0)throw new y(`internal`,`Response is missing data field.`);return{data:g(l)}}function P(e,t,n,r){return F(e,e._url(t),n,r||{})}async function F(e,t,n,r){var i;n=h(n);let a={data:n},o=await j(e,r);o[`Content-Type`]=`application/json`,o.Accept=`text/event-stream`;let s;try{s=await e.fetchImpl(t,{method:`POST`,body:JSON.stringify(a),headers:o,signal:r==null?void 0:r.signal,credentials:k(e)})}catch(e){if(e instanceof Error&&e.name===`AbortError`){let e=new y(`cancelled`,`Request was cancelled.`);return{data:Promise.reject(e),stream:{[Symbol.asyncIterator](){return{next(){return Promise.reject(e)}}}}}}let t=x(0,null);return{data:Promise.reject(t),stream:{[Symbol.asyncIterator](){return{next(){return Promise.reject(t)}}}}}}let c,l,u=new Promise((e,t)=>{c=e,l=t});r==null||(i=r.signal)==null||i.addEventListener(`abort`,()=>{let e=new y(`cancelled`,`Request was cancelled.`);l(e)});let d=I(s.body.getReader(),c,l,r==null?void 0:r.signal);return{stream:{[Symbol.asyncIterator](){let e=d.getReader();return{async next(){let{value:t,done:n}=await e.read();return{value:t,done:n}},async return(){return await e.cancel(),{done:!0,value:void 0}}}}},data:u}}function I(e,t,n,r){let i=(e,r)=>{let i=e.match(w);if(!i)return;let a=i[1];try{let e=JSON.parse(a);if(`result`in e){t(g(e.result));return}if(`message`in e){r.enqueue(g(e.message));return}if(`error`in e){let t=x(0,e);r.error(t),n(t);return}}catch(e){if(e instanceof y){r.error(e),n(e);return}}},a=new TextDecoder;return new ReadableStream({start(t){let o=``;return s();async function s(){if(r!=null&&r.aborted){let e=new y(`cancelled`,`Request was cancelled`);return t.error(e),n(e),Promise.resolve()}try{let{value:c,done:l}=await e.read();if(l){o.trim()&&i(o.trim(),t),t.close();return}if(r!=null&&r.aborted){let r=new y(`cancelled`,`Request was cancelled`);t.error(r),n(r),await e.cancel();return}o+=a.decode(c,{stream:!0});let u=o.split(`
2`);o=u.pop()||``;for(let e of u)e.trim()&&i(e.trim(),t);return s()}catch(e){let r=e instanceof y?e:x(0,null);t.error(r),n(r)}}},cancel(){return e.cancel()}})}var L=`@firebase/functions`,R=`0.13.5`,z=`auth-internal`,B=`app-check-internal`,V=`messaging-internal`;function H(e){o(new d(_,(e,{instanceIdentifier:t})=>new E(e.getProvider(`app`).getImmediate(),e.getProvider(z),e.getProvider(V),e.getProvider(B),t),`PUBLIC`).setMultipleInstances(!0)),u(L,R,e),u(L,R,`esm2020`)}function U(e=i(),t=C){let r=s(n(e),_).getImmediate({identifier:t}),o=a(`functions`);return o&&W(r,...o),r}function W(e,t,r){D(n(e),t,r)}function G(e,t,r){return O(n(e),t,r)}H();var K=e({FunctionsError:()=>y,connectFunctionsEmulator:()=>W,getFunctions:()=>U,httpsCallable:()=>G});export{U as n,G as r,K 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.