PageSourceSearch

https://apiko.com/blog/_next/static/chunks/0pxpqbsdgjoyh.js

js apiko.com collected 2026-10-03 20:51:09 UTC 14,230 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,760121,(e,t,r)=>{"use strict";var n=e.r(191788),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,u=n.useLayoutEffect,s=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return u(function(){i.value=r,i.getSnapshot=t,c(i)&&l({inst:i})},[e,r,t]),o(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),s(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},890979,(e,t,r)=>{"use strict";t.exports=e.r(760121)},106187,209635,80784,48372,943735,205247,688955,269092,950323,287313,e=>{"use strict";var t,r=e.i(391398),n=e.i(191788);e.s(["metadataToHtml",0,({title:e,description:t,applicationName:i,keywords:a,alternates:o,authors:u,openGraph:s,twitter:c})=>(0,r.jsxs)(r.Fragment,{children:[e&&(0,r.jsx)("title",{children:e}),t&&(0,r.jsx)("meta",{name:"description",content:t}),o?.canonical&&(0,r.jsx)("link",{rel:"canonical",href:o?.canonical}),i&&(0,r.jsx)("meta",{name:"application-name",content:i}),a&&(0,r.jsx)("meta",{name:"keywords",content:a}),u?.map(e=>(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("link",{rel:"author",href:e.url}),(0,r.jsx)("meta",{name:"author",content:e.name})]},e.url)),s?.title&&(0,r.jsx)("meta",{property:"og:title",content:s.title}),s?.description&&(0,r.jsx)("meta",{property:"og:description",content:s.description}),s?.url&&(0,r.jsx)("meta",{property:"og:url",content:s.url}),s?.images?.url&&(0,r.jsx)("meta",{property:"og:image",content:s.images.url}),s?.images?.width&&(0,r.jsx)("meta",{property:"og:image:width",content:s.images.width.toString()}),s?.type&&(0,r.jsx)("meta",{property:"og:type",content:s.type}),s?.publishedTime&&(0,r.jsx)("meta",{property:"article:published_time",content:s.publishedTime}),s?.authors?.map(e=>(0,r.jsx)("meta",{property:"article:author",content:e},e)),s?.tags?.map(e=>(0,r.jsx)("meta",{property:"article:tag",content:e},e)),c?.card&&(0,r.jsx)("meta",{name:"twitter:card",content:c.card}),c?.site&&(0,r.jsx)("meta",{name:"twitter:site",content:c.site}),c?.creator&&(0,r.jsx)("meta",{name:"twitter:creator",content:c.creator}),c?.title&&(0,r.jsx)("meta",{name:"twitter:title",content:c.title}),c?.description&&(0,r.jsx)("meta",{name:"twitter:description",content:c.description}),c?.images?.url&&(0,r.jsx)("meta",{name:"twitter:image",content:c.images.url}),c?.images?.width&&(0,r.jsx)("meta",{name:"twitter:image:width",content:c.images.width.toString()})]})],106187);var i=e.i(890979);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],274196);var a=Object.prototype.hasOwnProperty;let o=new WeakMap,u=()=>{},s=u(),c=Object,l=e=>e===s,d=(e,t)=>({...e,...t}),f={},g={},p="undefined",m=typeof window!=p,h=typeof document!=p,E=m&&"Deno"in window,y=(e,t)=>{let r=o.get(e);return[()=>!l(t)&&e.get(t)||f,n=>{if(!l(t)){let i=e.get(t);t in g||(g[t]=i),r[5](t,d(i,n),i||f)}},r[6],()=>!l(t)&&t in g?g[t]:!l(t)&&e.get(t)||f]},w=!0,[R,v]=m&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],b={initFocus:e=>(h&&document.addEventListener("visibilitychange",e),R("focus",e),()=>{h&&document.removeEventListener("visibilitychange",e),v("focus",e)}),initReconnect:e=>{let t=()=>{w=!0,e()},r=()=>{w=!1};return R("online",t),R("offline",r),()=>{v("online",t),v("offline",r)}}},T=!n.default.useId,O=!m||E,S=O?n.useEffect:n.useLayoutEffect,_="u">typeof navigator&&navigator.connection,j=!O&&_&&(["slow-2g","2g"].includes(_.effectiveType)||_.saveData),x=new WeakMap,V=(e,t)=>e===`[object ${t}]`,L=0,C=e=>{let t,r,n=typeof e,i=c.prototype.toString.call(e),a=V(i,"Date"),o=V(i,"RegExp"),u=V(i,"Object");if(c(e)!==e||a||o)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++L+"~",x.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=C(e[r])+",";x.set(e,t)}if(u){t="#";let n=c.keys(e).sort();for(;!l(r=n.pop());)l(e[r])||(t+=r+":"+C(e[r])+",");x.set(e,t)}}return t},k=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?C(e):"",t]},A=0,N=()=>++A;async function D(...e){let[t,r,n,i]=e,a=d({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),u=a.populateCache,c=a.rollbackOnError,f=a.optimisticData,g=a.throwOnError;if("function"==typeof r){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(p))}return p(r);async function p(r){let i,[d]=k(r);if(!d)return;let[p,m]=y(t,d),[h,E,w,R]=o.get(t),v=()=>{let e=h[d];return("function"==typeof a.revalidate?a.revalidate(p().data,r):!1!==a.revalidate)&&(delete w[d],delete R[d],e&&e[0])?e[0](2).then(()=>p().data):p().data};if(e.length<3)return v();let b=n,T=!1,O=N();E[d]=[O,0];let S=!l(f),_=p(),j=_.data,x=_._c,V=l(x)?j:x;if(S&&m({data:f="function"==typeof f?f(V,j):f,_c:V}),"function"==typeof b)try{b=b(V)}catch(e){i=e,T=!0}if(b&&"function"==typeof b.then){let e;if(b=await b.catch(e=>{i=e,T=!0}
1),O!==E[d][0]){if(T)throw i;return b}T&&S&&(e=i,"function"==typeof c?c(e):!1!==c)&&(u=!0,m({data:V,_c:s}))}if(u&&!T&&("function"==typeof u?m({data:u(b,V),error:s,_c:s}):m({data:b,error:s,_c:s})),E[d][1]=N(),Promise.resolve(v()).then(()=>{m({_c:s})}),T){if(g)throw i;return}return b}}let I=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},F=(e,t)=>{if(!o.has(e)){let r=d(b,t),n=Object.create(null),i=D.bind(s,e),a=u,c=Object.create(null),l=(e,t)=>{let r=c[e]||[];return c[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},f=(t,r,n)=>{e.set(t,r);let i=c[t];if(i)for(let e of i)e(r,n)},g=()=>{if(!o.has(e)&&(o.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,f,l]),!O)){let t=r.initFocus(setTimeout.bind(s,I.bind(s,n,0))),i=r.initReconnect(setTimeout.bind(s,I.bind(s,n,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return g(),[e,i,g,a]}return[e,o.get(e)[4]]},[P,M]=F(new Map),W=d({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,o=i.retryCount,u=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(l(a)||!(o>a))&&setTimeout(n,u,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:j?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:j?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(a.call(t,n)&&++i&&!a.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:P,mutate:M,fallback:{}},{isOnline:()=>w,isVisible:()=>{let e=h&&document.visibilityState;return l(e)||"hidden"!==e}}),U=(e,t)=>{let r=d(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:o}=t;n&&a&&(r.use=n.concat(a)),i&&o&&(r.fallback=d(i,o))}return r},$=(0,n.createContext)({});e.s(["UNDEFINED",0,s],209635);var q=e.i(274196);let z=m&&window.__SWR_DEVTOOLS_USE__,B=z?window.__SWR_DEVTOOLS_USE__:[],J=e=>"function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>{let e=(0,n.useContext)($);return(0,n.useMemo)(()=>d(W,e),[e])},Y=B.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=k(t),[,,,i]=o.get(P);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return l(a)?r(...e):(delete i[n],a)});return e(t,i,n)}),G=e=>function(...t){let r=K(),[n,i,a]=J(t),o=U(r,a),u=e,{use:s}=o,c=(s||[]).concat(Y);for(let e=c.length;e--;)u=c[e](u);return u(n,i||o.fetcher||null,o)},H=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};z&&(window.__SWR_DEVTOOLS_REACT__=n.default),e.s(["subscribeCallback",0,H,"useSWRConfig",0,K,"withArgs",0,G,"withMiddleware",0,(e,t)=>(...r)=>{let[n,i,a]=J(r),o=(a.use||[]).concat(t);return e(n,i,{...a,use:o})}],80784),e.s(["serialize",0,k],48372),e.s(["getTimestamp",0,N],943735);e.s(["useIsomorphicLayoutEffect",0,S],205247),e.s(["IS_REACT_LEGACY",0,T],688955),e.s(["mergeObjects",0,d],269092);let Q=()=>{},X=Q(),Z=(new WeakMap,n.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),ee={dedupe:!0},et=Promise.resolve(s),er=()=>u;c.defineProperty(e=>{let{value:t}=e,r=(0,n.useContext)($),i="function"==typeof t,a=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),o=(0,n.useMemo)(()=>i?a:U(r,a),[i,r,a]),u=a&&a.provider,c=(0,n.useRef)(s);u&&!c.current&&(c.current=F(u(o.cache||P),a));let l=c.current;return l&&(o.cache=l[0],o.mutate=l[1]),S(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,n.createElement)($.Provider,d(e,{value:o}))},"defaultValue",{value:W});let en=G((e,t,r)=>{let{cache:a,compare:u,suspense:c,fallbackData:f,revalidateOnMount:g,revalidateIfStale:h,refreshInterval:E,refreshWhenHidden:w,refreshWhenOffline:R,keepPreviousData:v,strictServerPrefetchWarning:b}=r,[_,j,x,V]=o.get(a),[L,C]=k(e),A=(0,n.useRef)(!1),I=(0,n.useRef)(!1),F=(0,n.useRef)(L),P=(0,n.useRef)(t),M=(0,n.useRef)(r),W=()=>M.current.isVisible()&&M.current.isOnline(),[U,$,z,B]=y(a,L),J=(0,n.useRef)({}).current,K=l(f)?l(r.fallback)?s:r.fallback[L]:f,Y=(e,t)=>
1{for(let r in J)if("data"===r){if(!u(e[r],t[r])&&(!l(e[r])||!u(es,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},G=!A.current,Q=(0,n.useMemo)(()=>{let e=U(),r=B(),n=e=>{let r=d(e);return(delete r._k,(()=>{if(!L||!t||M.current.isPaused())return!1;if(G&&!l(g))return g;let e=l(K)?r.data:K;return l(e)||h})())?{isValidating:!0,isLoading:!0,...r}:r},i=n(e),a=e===r?i:n(r),o=i;return[()=>{let e=n(U());return Y(e,o)?(o.data=e.data,o.isLoading=e.isLoading,o.isValidating=e.isValidating,o.error=e.error,o):(o=e,e)},()=>a]},[a,L]),X=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>z(L,(t,r)=>{Y(r,t)||e()}),[a,L]),Q[0],Q[1]),en=_[L]&&_[L].length>0,ei=X.data,ea=l(ei)?K&&"function"==typeof K.then?Z(K):K:ei,eo=X.error,eu=(0,n.useRef)(ea),es=v?l(ei)?l(eu.current)?ea:eu.current:ei:ea,ec=L&&l(ea),el=(0,n.useRef)(null);O||(0,i.useSyncExternalStore)(er,()=>(el.current=!1,el),()=>(el.current=!0,el));let ed=el.current;b&&ed&&!c&&ec&&console.warn(`Missing pre-initiated data for serialized key "${L}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ef=!(!L||!t||M.current.isPaused())&&(!en||!!l(eo))&&(G&&!l(g)?g:c?!l(ea)&&h:l(ea)||h),eg=G&&ef,ep=l(X.isValidating)?eg:X.isValidating,em=l(X.isLoading)?eg:X.isLoading,eh=(0,n.useCallback)(async e=>{let t,n,i=P.current;if(!L||!i||I.current||M.current.isPaused())return!1;let a=!0,o=e||{},c=!x[L]||!o.dedupe,d=()=>T?!I.current&&L===F.current&&A.current:L===F.current,f={isValidating:!1,isLoading:!1},g=()=>{$(f)},p=()=>{let e=x[L];e&&e[1]===n&&delete x[L]},m={isValidating:!0};l(U().data)&&(m.isLoading=!0);try{if(c&&($(m),r.loadingTimeout&&l(U().data)&&setTimeout(()=>{a&&d()&&M.current.onLoadingSlow(L,r)},r.loadingTimeout),x[L]=[i(C),N()]),[t,n]=x[L],t=await t,c&&setTimeout(p,r.dedupingInterval),!x[L]||x[L][1]!==n)return c&&d()&&M.current.onDiscarded(L),!1;f.error=s;let e=j[L];if(!l(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return g(),c&&d()&&M.current.onDiscarded(L),!1;let o=U().data;f.data=u(o,t)?o:t,c&&d()&&M.current.onSuccess(t,L,r)}catch(r){p();let e=M.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,c&&d())&&(e.onError(r,L,e),(!0===t||"function"==typeof t&&t(r))&&(!M.current.revalidateOnFocus||!M.current.revalidateOnReconnect||W())&&e.onErrorRetry(r,L,e,e=>{let t=_[L];t&&t[0]&&t[0](q.ERROR_REVALIDATE_EVENT,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0}))}return a=!1,g(),!0},[L,a]),eE=(0,n.useCallback)((...e)=>D(a,F.current,...e),[]);if(S(()=>{P.current=t,M.current=r,l(ei)||(eu.current=ei)}),S(()=>{if(!L)return;let e=eh.bind(s,ee),t=0;M.current.revalidateOnFocus&&(t=Date.now()+M.current.focusThrottleInterval);let r=H(L,_,(r,n={})=>{if(r==q.FOCUS_EVENT){let r=Date.now();M.current.revalidateOnFocus&&r>t&&W()&&(t=r+M.current.focusThrottleInterval,e())}else if(r==q.RECONNECT_EVENT)M.current.revalidateOnReconnect&&W()&&e();else if(r==q.MUTATE_EVENT)return eh();else if(r==q.ERROR_REVALIDATE_EVENT)return eh(n)});if(I.current=!1,F.current=L,A.current=!0,$({_k:C}),ef&&!x[L])if(l(ea)||O)e();else m&&typeof window.requestAnimationFrame!=p?window.requestAnimationFrame(e):setTimeout(e,1);return()=>{I.current=!0,r()}},[L]),S(()=>{let e;function t(){let t="function"==typeof E?E(U().data):E;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!U().error&&(w||M.current.isVisible())&&(R||M.current.isOnline())?eh(ee).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[E,w,R,L]),(0,n.useDebugValue)(es),c){if(!T&&O&&ec)throw Error("Fallback data is required when using Suspense in SSR.");ec&&(P.current=t,M.current=r,I.current=!1);let e=V[L];if(Z(!l(e)&&ec?eE(e):et),!l(eo)&&ec)throw eo;let n=ec?eh(ee):et;!l(es)&&ec&&(n.status="fulfilled",n.value=!0),Z(n)}return{mutate:eE,get data(){return J.data=!0,es},get error(){return J.error=!0,eo},get isValidating(){return J.isValidating=!0,ep},get isLoading(){return J.isLoading=!0,em}}});e.s(["default",0,en],950323);var ei=((t={}).INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",t);
1class ea extends Error{code;httpCode;info;constructor(e){super(e?.message),this.code=e?.code||"INTERNAL_SERVER_ERROR",this.httpCode=e?.httpCode||500,this.info=e?.info}}let eo=async(e,t)=>{let r=await fetch(e,t);if(!r.ok){let e;try{e=await r.json()}catch{e=null}throw new ea({message:e?.message||"An error occurred while fetching the data.",code:e?.code||ei.INTERNAL_SERVER_ERROR,httpCode:r.status,info:e})}return r.json()};e.s(["fetcher",0,eo],287313)}]);

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.