@void/platform 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -566,7 +566,7 @@ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))
566
566
  z=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");
567
567
  M&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&
568
568
  q.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});
569
- A.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);`)),t.push('$RC("')),n=i.toString(16),t.push(e.boundaryPrefix),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(n),o?(t.push('",'),qRt(t,r)):t.push('"'),r=t.push(")<\/script>"),RFe(t,e)&&r}a(dFe,"flushCompletedBoundary");function WFe(e,t,r,n){if(n.status===2)return!0;var i=r.contentState,o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(ar(392));return Rhe(e,t,n,i)}return o===r.rootSegmentID?Rhe(e,t,n,i):(Rhe(e,t,n,i),r=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(">"),(r.instructions&1)===0?(r.instructions|=1,t.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')):t.push('$RS("'),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t=t.push('")<\/script>'),t)}a(WFe,"flushPartiallyCompletedSegment");var aV=!1;function TV(e,t){try{if(!(0<e.pendingRootTasks)){var r,n=e.completedRootSegment;if(n!==null){if(n.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;OM=e.byteSize;var o=e.resumableState,s=e.renderState,l=s.preamble,c=l.htmlChunks,u=l.headChunks,d;if(c){for(d=0;d<c.length;d++)t.push(c[d]);if(u)for(d=0;d<u.length;d++)t.push(u[d]);else{var f=pl("head");t.push(f),t.push(">")}}else if(u)for(d=0;d<u.length;d++)t.push(u[d]);var p=s.charsetChunks;for(d=0;d<p.length;d++)t.push(p[d]);p.length=0,s.preconnects.forEach(Mh,t),s.preconnects.clear();var m=s.viewportChunks;for(d=0;d<m.length;d++)t.push(m[d]);m.length=0,s.fontPreloads.forEach(Mh,t),s.fontPreloads.clear(),s.highImagePreloads.forEach(Mh,t),s.highImagePreloads.clear(),i1=s,s.styles.forEach(BRt,t),i1=null;var g=s.importMapChunks;for(d=0;d<g.length;d++)t.push(g[d]);g.length=0,s.bootstrapScripts.forEach(Mh,t),s.scripts.forEach(Mh,t),s.scripts.clear(),s.bulkPreloads.forEach(Mh,t),s.bulkPreloads.clear(),o.instructions|=32;var w=s.hoistableChunks;for(d=0;d<w.length;d++)t.push(w[d]);for(o=w.length=0;o<i.length;o++){var y=i[o];for(s=0;s<y.length;s++)NM(e,t,y[s],null)}var b=e.renderState.preamble,v=b.headChunks;if(b.htmlChunks||v){var _=Wk("head");t.push(_)}var x=b.bodyChunks;if(x)for(i=0;i<x.length;i++)t.push(x[i]);NM(e,t,n,null),e.completedRootSegment=null;var S=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var A=e.resumableState;if((A.instructions&64)===0){if(A.instructions|=64,t.push(S.startInlineScript),(A.instructions&32)===0){A.instructions|=32;var E="_"+A.idPrefix+"R_";t.push(' id="');var T=Yn(E);t.push(T),t.push('"')}t.push(">"),t.push("requestAnimationFrame(function(){$RT=performance.now()});"),t.push("<\/script>")}}RFe(t,S)}var $=e.renderState;n=0;var D=$.viewportChunks;for(n=0;n<D.length;n++)t.push(D[n]);D.length=0,$.preconnects.forEach(Mh,t),$.preconnects.clear(),$.fontPreloads.forEach(Mh,t),$.fontPreloads.clear(),$.highImagePreloads.forEach(Mh,t),$.highImagePreloads.clear(),$.styles.forEach(HRt,t),$.scripts.forEach(Mh,t),$.scripts.clear(),$.bulkPreloads.forEach(Mh,t),$.bulkPreloads.clear();var N=$.hoistableChunks;for(n=0;n<N.length;n++)t.push(N[n]);N.length=0;var M=e.clientRenderedBoundaries;for(r=0;r<M.length;r++){var P=M[r];$=t;var j=e.resumableState,H=e.renderState,V=P.rootSegmentID,B=P.errorDigest;$.push(H.startInlineScript),$.push(">"),(j.instructions&4)===0?(j.instructions|=4,$.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')):$.push('$RX("'),$.push(H.boundaryPrefix);var W=V.toString(16);if($.push(W),$.push('"'),B!=null)if($.push(","),B==null)$.push("null");else{var L=jRt(B);$.push(L)}var U=$.push(")<\/script>");if(!U){e.destination=null,r++,M.splice(0,r);return}}M.splice(0,r);var z=e.completedBoundaries;for(r=0;r<z.length;r++)if(!dFe(e,t,z[r])){e.destination=null,r++,z.splice(0,r);return}z.splice(0,r),aV=!0;var O=e.partialBoundaries;for(r=0;r<O.length;r++){var F=O[r];e:{M=e,P=t,OM=F.byteSize;var q=F.completedSegments;for(U=0;U<q.length;U++)if(!WFe(M,P,F,q[U])){U++,q.splice(0,U);var G=!1;break e}q.splice(0,U);var te=F.row;te!==null&&te.together&&F.pendingTasks===1&&(te.pendingTasks===1?tge(M,te,te.hoistables):te.pendingTasks--),G=DFe(P,F.contentState,M.renderState)}if(!G){e.destination=null,r++,O.splice(0,r);return}}O.splice(0,r),aV=!1;var ae=e.completedBoundaries;for(r=0;r<ae.length;r++)if(!dFe(e,t,ae[r])){e.destination=null,r++,ae.splice(0,r);return}ae.splice(0,r)}}finally{aV=!1,r=e.postponedState,r!==null&&(r.nextSegmentId=e.nextSegmentId),e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.flushScheduled=!1,r=e.resumableState,r.hasBody&&(O=Wk("body"),t.push(O)),r.hasHtml&&(r=Wk("html"),t.push(r)),oge(e),e.status=13,t.push(null),e.destination=null)}}a(TV,"flushCompletedQueues");function Yk(e){if(e.flushScheduled===!1&&e.pingedTasks.length===0&&e.destination!==null){e.flushScheduled=!0;var t=e.destination;t?TV(e,t):e.flushScheduled=!1}}a(Yk,"enqueueFlush");function _Dt(e,t){if(e.status===12)e.status=13,e=e.fatalError,EV(e)&&(e=Yhe(e)),t.destroy(e);else if(e.status!==13&&e.destination===null){e.destination=t;try{TV(e,t)}catch(r){Kl(e,r,{}),Kk(e,r)}}}a(_Dt,"startFlowing");function xDt(e,t){try{if(0<t.size){var r=e.fatalError;t.forEach(function(n){return Jk(n,e,r)}),t.clear()}e.destination!==null&&TV(e,e.destination)}catch(n){Kl(e,n,{}),Kk(e,n)}}a(xDt,"finishAbort");function oge(e){e=e.renderLifetimeController,e!==null&&e.abort("The render ended.")}a(oge,"endRenderLifetime");function SDt(e,t){if(!(e.aborted||e.status!==11&&e.status!==10)){oge(e);var r=typeof t=="object"&&t!==null&&t.$$typeof===kV;e.aborted=!0,t=r?$Fe(t):t===void 0?Error(ar(432)):typeof t=="object"&&t!==null&&typeof t.then=="function"?Error(ar(530)):t,e.fatalError=t,t=e.abortableTasks,t.forEach(function(n){return wV(n,e)}),xDt(e,t)}}a(SDt,"abort");function bV(e,t,r){if(t===null)r.rootNodes.push(e);else{var n=r.workingMap,i=n.get(t);i===void 0&&(i=[t[1],t[2],[],null],n.set(t,i),bV(i,t[0],r)),i[2].push(e)}}a(bV,"addToReplayParent");function kDt(){}a(kDt,"onError");function GFe(e,t,r,n){var i=!1,o=null,s="",l=!1;if(t=TRt(t?t.identifierPrefix:void 0),e=vDt(e,t,tDt(t,r),Sc(0,null,0,null),1/0,kDt,void 0,void 0,function(){l=!0},void 0,void 0,void 0),e.flushScheduled=e.destination!==null,qFe(e),e.status===10&&(e.status=11),e.trackedPostpones===null&&nge(e,e.pendingRootTasks===0),SDt(e,n),_Dt(e,{push:a(function(c){return c!==null&&(s+=c),!0},"push"),destroy:a(function(c){i=!0,o=c},"destroy")}),i&&o!==n)throw o;if(!l)throw Error(ar(426));return s}a(GFe,"renderToStringImpl");PV.renderToStaticMarkup=function(e,t){return GFe(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};PV.renderToString=function(e,t){return GFe(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};PV.version="19.3.1"});var ZFe=Ct(s1=>{"use strict";h();var RV,age;RV=N3e(),age=KFe();s1.version=RV.version;s1.renderToReadableStream=RV.renderToReadableStream;s1.renderToString=age.renderToString;s1.renderToStaticMarkup=age.renderToStaticMarkup;s1.resume=RV.resume});function JFe(e,t){if(t==="."||t==="..")throw new TypeError(`Route param "${e}" cannot be "${t}"; it would change the request path.`);return encodeURIComponent(t)}function sge(e,t){if(!t)return e;let r=e.search(/[?#]/),n=r===-1?e:e.slice(0,r),i=r===-1?"":e.slice(r),o,s=n.replace(/(^|\/):([^/{}]+)(\{\.\+\})?(?=\/|$)/g,(l,c,u,d,f)=>{if(!Object.hasOwn(t,u))return l;f===0&&(o=u);let p=t[u];return c+(d?p.split("/").map(m=>JFe(u,m)).join("/"):JFe(u,p))});if(s.startsWith("//")&&!n.startsWith("//"))throw new TypeError(`Route param "${o??""}" would make the request path start with "//", which changes the request host.`);return s+i}var XFe=I(()=>{"use strict";h();a(JFe,"encodeSegment");a(sge,"interpolateRouteParams")});function ADt(e,t){let r=e.get(t);return r!==void 0&&(e.delete(t),e.set(t,r)),r}function EDt(e,t,r){if(e.size>=256){let n=e.keys().next();n.done||e.delete(n.value)}e.set(t,r)}function YFe(e,t){return e==="seg"?t!==47:t!==10&&t!==13&&t!==8232&&t!==8233}function lge(e,t){if(!t)return;let r=e[e.length-1];r?.kind==="text"?r.text+=t:e.push({kind:"text",text:t})}function IDt(e,t){let r=t.split("*");lge(e,r[0]);for(let n=1;n<r.length;n++)e.push({kind:"any"}),lge(e,r[n])}function CDt(e){let t=[],r=e.split("/");for(let n=0;n<r.length;n++){let i=r[n];n>0&&lge(t,"/");let o=i.slice(1,-4);i[0]!==":"||i.length<2?IDt(t,i):i.length>5&&i.endsWith("{.+}")&&!o.includes("{")&&!o.includes("}")?t.push({kind:"plus"}):t.push({kind:"seg"})}return t}function TDt(e){let t=[];for(let n of e)n.kind==="any"&&t[t.length-1]?.kind==="any"||t.push(n);let r=new Int32Array(t.length+1);return t.forEach((n,i)=>{let o=n.kind==="text"?n.text.length:n.kind==="any"?0:1;r[i+1]=r[i]+o}),{steps:t,starts:r,minLength:r[t.length]}}function PDt(e,t,r,n,i){let o=0;if(e.kind==="text"){for(let c=i.length-1;c>=0;c--){let u=n[c]===1&&t.startsWith(e.text,r+c)?1:0;i[c]=u,o|=u}return o===1}let s=e.kind,l=0;for(let c=i.length-1;c>=0;c--){let u=s==="any"?n[c]===1||l===1&&YFe(s,t.charCodeAt(r+c)):(n[c]===1||l===1)&&YFe(s,t.charCodeAt(r+c));i[c]=u?1:0,l=i[c],o|=l}return o===1}function RDt(e){let t=new Uint8Array(e);return t[e-1]=1,t}function DDt({steps:e,minLength:t},r){let n=e[0],i=e[e.length-1];return r.length<t||n?.kind==="text"&&!r.startsWith(n.text)||i?.kind==="text"&&!r.endsWith(i.text)}function LDt(e,t){if(DDt(e,t))return!1;let{steps:r,starts:n,minLength:i}=e,o=RDt(t.length-i+1),s=new Uint8Array(o.length),l=r[0]?.kind==="text"?1:0;for(let c=r.length-1;c>=l;c--){if(!PDt(r[c],t,n[c],o,s))return!1;let u=o;o=s,s=u}return o[0]===1}function DV(e,t){let r=ADt(QFe,e);return r||(r=TDt(CDt(e)),EDt(QFe,e,r)),LDt(r,t)}var QFe,LV=I(()=>{"use strict";h();a(ADt,"lruGet");a(EDt,"lruSet");a(YFe,"accepts");a(lge,"pushText");a(IDt,"parseStars");a(CDt,"parseSegments");a(TDt,"prepare");a(PDt,"stepBack");a(RDt,"endRow");a(DDt,"quickReject");a(LDt,"matches");QFe=new Map;a(DV,"matchSegmentPattern")});var cge=I(()=>{"use strict";h();LV()});var uge=I(()=>{"use strict";h();LV()});var tHe=I(()=>{"use strict";h();cge();uge()});var rHe=I(()=>{"use strict";h()});function dge(e){if(!e||typeof e!="object")return null;let t=e;return t.code!=="usage_limit"||typeof t.message!="string"||!["ai","sandbox","requests","execution"].includes(String(t.resource))||!["monthly_quota","rate_limit","concurrency","runtime_budget","cpu"].includes(String(t.reason))?null:{code:"usage_limit",resource:t.resource,reason:t.reason,message:t.message,...typeof t.retryAt=="string"&&Number.isFinite(Date.parse(t.retryAt))?{retryAt:t.retryAt}:{}}}var nHe=I(()=>{"use strict";h();a(dge,"readUsageLimit")});var fge=I(()=>{h();cge();LV();uge();tHe();rHe();nHe()});function pge(e){switch(e){case 400:case 402:case 404:case 408:case 409:case 412:case 413:case 415:case 422:case 429:case 499:return"callSite";default:return"boundary"}}function mge(e){return typeof e=="object"&&e!==null&&"name"in e&&e.name==="VoidActionError"&&"status"in e&&typeof e.status=="number"&&pge(e.status)==="callSite"}var l1,OV=I(()=>{"use strict";h();fge();l1=class extends Error{static{a(this,"VoidActionError")}body;limit;status;statusText;url;constructor({body:t,status:r,statusText:n,url:i}){let o=r===429?dge(t):null;super(o?.message??(n?`Action failed with ${r} ${n}`:`Action failed with ${r}`)),this.name="VoidActionError",this.body=t,this.limit=o,this.status=r,this.statusText=n,this.url=i}};a(pge,"categorizeActionError");a(mge,"isCallSiteActionError")});var iHe=I(()=>{"use strict";h()});var oHe=I(()=>{"use strict";h()});var aHe=I(()=>{"use strict";h()});var sHe=I(()=>{"use strict";h()});var hge=I(()=>{"use strict";h()});var yge=I(()=>{"use strict";h();iHe();OV();oHe();aHe();sHe();hge()});function lHe(e){return e.replace(BDt,t=>`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`)}var BDt,cHe=I(()=>{"use strict";h();BDt=/[<>&\u2028\u2029]/g;a(lHe,"escapeScriptJson")});function uHe(e){return lHe(JSON.stringify(e))}var wge=I(()=>{"use strict";h();cHe();a(uHe,"serializePageData")});function dHe(e,t,r){if(r==null)return!1;if(r instanceof Date)return e.append(t,r.toISOString()),!0;if(Array.isArray(r)){let n=!1;for(let i of r)n=dHe(e,t,i)||n;return n}if(typeof r=="string"||typeof r=="number"||typeof r=="boolean")return e.append(t,String(r)),!0;throw new Error(`Link: GET data only supports primitive values and arrays. Remove nested data for '${t}'.`)}function vge(e,t){if(!t)return e;let r=e.indexOf("#"),n=r===-1?e:e.slice(0,r),i=r===-1?"":e.slice(r),o=n.indexOf("?"),s=o===-1?n:n.slice(0,o),l=o===-1?"":n.slice(o+1),c=new URLSearchParams(l),u=!1;for(let[f,p]of Object.entries(t))u=dHe(c,f,p)||u;if(!u)return e;let d=c.toString();return`${s}${d?`?${d}`:""}${i}`}function bge(e){let t=e.currentTarget.getAttribute("target");return t!==null&&t!=="_self"||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||e.button!==0}var fHe=I(()=>{"use strict";h();a(dHe,"appendQueryValue");a(vge,"mergeDataIntoHref");a(bge,"isModifiedEvent")});var pHe=I(()=>{"use strict";h()});var mHe=I(()=>{"use strict";h()});function GDt(){return typeof window>"u"?"http://localhost":window.location.origin}function KDt(e){return e instanceof URL?new URL(e.href):new URL(e||"/",GDt())}function NV(){return{state:"idle",location:null,method:null}}function _ge(e="/",t={}){return{_hoverDelay:75,get url(){return KDt(e)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return t},visit(){throw new Error("Void Router: visit() is not available during SSR.")},refresh(){throw new Error("Void Router: refresh() is not available during SSR.")},prefetch(){throw new Error("Void Router: prefetch() is not available during SSR.")},flush(){throw new Error("Void Router: flush() is not available during SSR.")},flushAll(){throw new Error("Void Router: flushAll() is not available during SSR.")}}}async function wHe(e,t,r){try{let n=await e.visit(t,r);return typeof n=="object"&&n!==null&&"errors"in n&&n.errors?{ok:!1,error:new l1({body:{errors:n.errors},status:422,statusText:"Unprocessable Content",url:t})}:{ok:!0,pageData:n}}catch(n){if(mge(n))return{ok:!1,error:n};throw n}}function vHe(){let e=null;function t(n){e=n}a(t,"setActionRouter");async function r(n,...i){if(!e)throw new Error("action(): called before router initialization.");let o=i[0],s=o?.data,l=o?.method||"POST",c=sge(n,o?.params);return wHe(e,c,{method:l,data:s})}return a(r,"action"),{action:r,setActionRouter:t}}var yHe,Iv=I(()=>{h();XFe();OV();yge();wge();hge();fHe();OV();pHe();yge();mHe();a(GDt,"getUrlOrigin");a(KDt,"toUrl");a(NV,"idleNavigationState");a(_ge,"createSsrRouter");yHe=_ge();a(wHe,"submitAction");a(vHe,"createActionClient")});function c1(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function jV(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,r])=>`${t}="${c1(r)}"`).join(" ")}function bHe(e){let t=[];if(e.title!==void 0&&t.push(`<title>${c1(e.title)}</title>`),e.meta)for(let r of e.meta){let n=[];r.charset&&n.push(`charset="${c1(r.charset)}"`),r.name&&n.push(`name="${c1(r.name)}"`),r.property&&n.push(`property="${c1(r.property)}"`),r.content!==void 0&&n.push(`content="${c1(r.content)}"`),t.push(`<meta ${n.join(" ")}>`)}if(e.link)for(let r of e.link)t.push(`<link ${jV(r)}>`);if(e.script)for(let r of e.script){let{innerHTML:n,...i}=r,o=jV(i);n?t.push(`<script${o?" "+o:""}>${n}<\/script>`):o&&t.push(`<script ${o}><\/script>`)}return t.join(`
569
+ A.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);`)),t.push('$RC("')),n=i.toString(16),t.push(e.boundaryPrefix),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(n),o?(t.push('",'),qRt(t,r)):t.push('"'),r=t.push(")<\/script>"),RFe(t,e)&&r}a(dFe,"flushCompletedBoundary");function WFe(e,t,r,n){if(n.status===2)return!0;var i=r.contentState,o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(ar(392));return Rhe(e,t,n,i)}return o===r.rootSegmentID?Rhe(e,t,n,i):(Rhe(e,t,n,i),r=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(">"),(r.instructions&1)===0?(r.instructions|=1,t.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')):t.push('$RS("'),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t=t.push('")<\/script>'),t)}a(WFe,"flushPartiallyCompletedSegment");var aV=!1;function TV(e,t){try{if(!(0<e.pendingRootTasks)){var r,n=e.completedRootSegment;if(n!==null){if(n.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;OM=e.byteSize;var o=e.resumableState,s=e.renderState,l=s.preamble,c=l.htmlChunks,u=l.headChunks,d;if(c){for(d=0;d<c.length;d++)t.push(c[d]);if(u)for(d=0;d<u.length;d++)t.push(u[d]);else{var f=pl("head");t.push(f),t.push(">")}}else if(u)for(d=0;d<u.length;d++)t.push(u[d]);var p=s.charsetChunks;for(d=0;d<p.length;d++)t.push(p[d]);p.length=0,s.preconnects.forEach(Mh,t),s.preconnects.clear();var m=s.viewportChunks;for(d=0;d<m.length;d++)t.push(m[d]);m.length=0,s.fontPreloads.forEach(Mh,t),s.fontPreloads.clear(),s.highImagePreloads.forEach(Mh,t),s.highImagePreloads.clear(),i1=s,s.styles.forEach(BRt,t),i1=null;var g=s.importMapChunks;for(d=0;d<g.length;d++)t.push(g[d]);g.length=0,s.bootstrapScripts.forEach(Mh,t),s.scripts.forEach(Mh,t),s.scripts.clear(),s.bulkPreloads.forEach(Mh,t),s.bulkPreloads.clear(),o.instructions|=32;var w=s.hoistableChunks;for(d=0;d<w.length;d++)t.push(w[d]);for(o=w.length=0;o<i.length;o++){var y=i[o];for(s=0;s<y.length;s++)NM(e,t,y[s],null)}var b=e.renderState.preamble,v=b.headChunks;if(b.htmlChunks||v){var _=Wk("head");t.push(_)}var x=b.bodyChunks;if(x)for(i=0;i<x.length;i++)t.push(x[i]);NM(e,t,n,null),e.completedRootSegment=null;var S=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var A=e.resumableState;if((A.instructions&64)===0){if(A.instructions|=64,t.push(S.startInlineScript),(A.instructions&32)===0){A.instructions|=32;var E="_"+A.idPrefix+"R_";t.push(' id="');var T=Yn(E);t.push(T),t.push('"')}t.push(">"),t.push("requestAnimationFrame(function(){$RT=performance.now()});"),t.push("<\/script>")}}RFe(t,S)}var $=e.renderState;n=0;var D=$.viewportChunks;for(n=0;n<D.length;n++)t.push(D[n]);D.length=0,$.preconnects.forEach(Mh,t),$.preconnects.clear(),$.fontPreloads.forEach(Mh,t),$.fontPreloads.clear(),$.highImagePreloads.forEach(Mh,t),$.highImagePreloads.clear(),$.styles.forEach(HRt,t),$.scripts.forEach(Mh,t),$.scripts.clear(),$.bulkPreloads.forEach(Mh,t),$.bulkPreloads.clear();var N=$.hoistableChunks;for(n=0;n<N.length;n++)t.push(N[n]);N.length=0;var M=e.clientRenderedBoundaries;for(r=0;r<M.length;r++){var P=M[r];$=t;var j=e.resumableState,H=e.renderState,V=P.rootSegmentID,B=P.errorDigest;$.push(H.startInlineScript),$.push(">"),(j.instructions&4)===0?(j.instructions|=4,$.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')):$.push('$RX("'),$.push(H.boundaryPrefix);var W=V.toString(16);if($.push(W),$.push('"'),B!=null)if($.push(","),B==null)$.push("null");else{var L=jRt(B);$.push(L)}var U=$.push(")<\/script>");if(!U){e.destination=null,r++,M.splice(0,r);return}}M.splice(0,r);var z=e.completedBoundaries;for(r=0;r<z.length;r++)if(!dFe(e,t,z[r])){e.destination=null,r++,z.splice(0,r);return}z.splice(0,r),aV=!0;var O=e.partialBoundaries;for(r=0;r<O.length;r++){var F=O[r];e:{M=e,P=t,OM=F.byteSize;var q=F.completedSegments;for(U=0;U<q.length;U++)if(!WFe(M,P,F,q[U])){U++,q.splice(0,U);var G=!1;break e}q.splice(0,U);var te=F.row;te!==null&&te.together&&F.pendingTasks===1&&(te.pendingTasks===1?tge(M,te,te.hoistables):te.pendingTasks--),G=DFe(P,F.contentState,M.renderState)}if(!G){e.destination=null,r++,O.splice(0,r);return}}O.splice(0,r),aV=!1;var ae=e.completedBoundaries;for(r=0;r<ae.length;r++)if(!dFe(e,t,ae[r])){e.destination=null,r++,ae.splice(0,r);return}ae.splice(0,r)}}finally{aV=!1,r=e.postponedState,r!==null&&(r.nextSegmentId=e.nextSegmentId),e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.flushScheduled=!1,r=e.resumableState,r.hasBody&&(O=Wk("body"),t.push(O)),r.hasHtml&&(r=Wk("html"),t.push(r)),oge(e),e.status=13,t.push(null),e.destination=null)}}a(TV,"flushCompletedQueues");function Yk(e){if(e.flushScheduled===!1&&e.pingedTasks.length===0&&e.destination!==null){e.flushScheduled=!0;var t=e.destination;t?TV(e,t):e.flushScheduled=!1}}a(Yk,"enqueueFlush");function _Dt(e,t){if(e.status===12)e.status=13,e=e.fatalError,EV(e)&&(e=Yhe(e)),t.destroy(e);else if(e.status!==13&&e.destination===null){e.destination=t;try{TV(e,t)}catch(r){Kl(e,r,{}),Kk(e,r)}}}a(_Dt,"startFlowing");function xDt(e,t){try{if(0<t.size){var r=e.fatalError;t.forEach(function(n){return Jk(n,e,r)}),t.clear()}e.destination!==null&&TV(e,e.destination)}catch(n){Kl(e,n,{}),Kk(e,n)}}a(xDt,"finishAbort");function oge(e){e=e.renderLifetimeController,e!==null&&e.abort("The render ended.")}a(oge,"endRenderLifetime");function SDt(e,t){if(!(e.aborted||e.status!==11&&e.status!==10)){oge(e);var r=typeof t=="object"&&t!==null&&t.$$typeof===kV;e.aborted=!0,t=r?$Fe(t):t===void 0?Error(ar(432)):typeof t=="object"&&t!==null&&typeof t.then=="function"?Error(ar(530)):t,e.fatalError=t,t=e.abortableTasks,t.forEach(function(n){return wV(n,e)}),xDt(e,t)}}a(SDt,"abort");function bV(e,t,r){if(t===null)r.rootNodes.push(e);else{var n=r.workingMap,i=n.get(t);i===void 0&&(i=[t[1],t[2],[],null],n.set(t,i),bV(i,t[0],r)),i[2].push(e)}}a(bV,"addToReplayParent");function kDt(){}a(kDt,"onError");function GFe(e,t,r,n){var i=!1,o=null,s="",l=!1;if(t=TRt(t?t.identifierPrefix:void 0),e=vDt(e,t,tDt(t,r),Sc(0,null,0,null),1/0,kDt,void 0,void 0,function(){l=!0},void 0,void 0,void 0),e.flushScheduled=e.destination!==null,qFe(e),e.status===10&&(e.status=11),e.trackedPostpones===null&&nge(e,e.pendingRootTasks===0),SDt(e,n),_Dt(e,{push:a(function(c){return c!==null&&(s+=c),!0},"push"),destroy:a(function(c){i=!0,o=c},"destroy")}),i&&o!==n)throw o;if(!l)throw Error(ar(426));return s}a(GFe,"renderToStringImpl");PV.renderToStaticMarkup=function(e,t){return GFe(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};PV.renderToString=function(e,t){return GFe(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};PV.version="19.3.1"});var ZFe=Ct(s1=>{"use strict";h();var RV,age;RV=N3e(),age=KFe();s1.version=RV.version;s1.renderToReadableStream=RV.renderToReadableStream;s1.renderToString=age.renderToString;s1.renderToStaticMarkup=age.renderToStaticMarkup;s1.resume=RV.resume});function JFe(e,t){if(t==="."||t==="..")throw new TypeError(`Route param "${e}" cannot be "${t}"; it would change the request path.`);return encodeURIComponent(t)}function sge(e,t){if(!t)return e;let r=e.search(/[?#]/),n=r===-1?e:e.slice(0,r),i=r===-1?"":e.slice(r),o,s=n.replace(/(^|\/):([^/{}]+)(\{\.\+\})?(?=\/|$)/g,(l,c,u,d,f)=>{if(!Object.hasOwn(t,u))return l;f===0&&(o=u);let p=t[u];return c+(d?p.split("/").map(m=>JFe(u,m)).join("/"):JFe(u,p))});if(s.startsWith("//")&&!n.startsWith("//"))throw new TypeError(`Route param "${o??""}" would make the request path start with "//", which changes the request host.`);return s+i}var XFe=I(()=>{"use strict";h();a(JFe,"encodeSegment");a(sge,"interpolateRouteParams")});function ADt(e,t){let r=e.get(t);return r!==void 0&&(e.delete(t),e.set(t,r)),r}function EDt(e,t,r){if(e.size>=256){let n=e.keys().next();n.done||e.delete(n.value)}e.set(t,r)}function YFe(e,t){return e==="seg"?t!==47:t!==10&&t!==13&&t!==8232&&t!==8233}function lge(e,t){if(!t)return;let r=e[e.length-1];r?.kind==="text"?r.text+=t:e.push({kind:"text",text:t})}function IDt(e,t){let r=t.split("*");lge(e,r[0]);for(let n=1;n<r.length;n++)e.push({kind:"any"}),lge(e,r[n])}function CDt(e){let t=[],r=e.split("/");for(let n=0;n<r.length;n++){let i=r[n];n>0&&lge(t,"/");let o=i.slice(1,-4);i[0]!==":"||i.length<2?IDt(t,i):i.length>5&&i.endsWith("{.+}")&&!o.includes("{")&&!o.includes("}")?t.push({kind:"plus"}):t.push({kind:"seg"})}return t}function TDt(e){let t=[];for(let n of e)n.kind==="any"&&t[t.length-1]?.kind==="any"||t.push(n);let r=new Int32Array(t.length+1);return t.forEach((n,i)=>{let o=n.kind==="text"?n.text.length:n.kind==="any"?0:1;r[i+1]=r[i]+o}),{steps:t,starts:r,minLength:r[t.length]}}function PDt(e,t,r,n,i){let o=0;if(e.kind==="text"){for(let c=i.length-1;c>=0;c--){let u=n[c]===1&&t.startsWith(e.text,r+c)?1:0;i[c]=u,o|=u}return o===1}let s=e.kind,l=0;for(let c=i.length-1;c>=0;c--){let u=s==="any"?n[c]===1||l===1&&YFe(s,t.charCodeAt(r+c)):(n[c]===1||l===1)&&YFe(s,t.charCodeAt(r+c));i[c]=u?1:0,l=i[c],o|=l}return o===1}function RDt(e){let t=new Uint8Array(e);return t[e-1]=1,t}function DDt({steps:e,minLength:t},r){let n=e[0],i=e[e.length-1];return r.length<t||n?.kind==="text"&&!r.startsWith(n.text)||i?.kind==="text"&&!r.endsWith(i.text)}function LDt(e,t){if(DDt(e,t))return!1;let{steps:r,starts:n,minLength:i}=e,o=RDt(t.length-i+1),s=new Uint8Array(o.length),l=r[0]?.kind==="text"?1:0;for(let c=r.length-1;c>=l;c--){if(!PDt(r[c],t,n[c],o,s))return!1;let u=o;o=s,s=u}return o[0]===1}function DV(e,t){let r=ADt(QFe,e);return r||(r=TDt(CDt(e)),EDt(QFe,e,r)),LDt(r,t)}var QFe,LV=I(()=>{"use strict";h();a(ADt,"lruGet");a(EDt,"lruSet");a(YFe,"accepts");a(lge,"pushText");a(IDt,"parseStars");a(CDt,"parseSegments");a(TDt,"prepare");a(PDt,"stepBack");a(RDt,"endRow");a(DDt,"quickReject");a(LDt,"matches");QFe=new Map;a(DV,"matchSegmentPattern")});var cge=I(()=>{"use strict";h();LV()});var uge=I(()=>{"use strict";h();LV()});var tHe=I(()=>{"use strict";h();cge();uge()});var rHe=I(()=>{"use strict";h()});function dge(e){if(!e||typeof e!="object")return null;let t=e;return t.code!=="usage_limit"||typeof t.message!="string"||!["ai","sandbox","requests","execution"].includes(String(t.resource))||!["monthly_quota","rate_limit","concurrency","runtime_budget","cpu"].includes(String(t.reason))?null:{code:"usage_limit",resource:t.resource,reason:t.reason,message:t.message,...typeof t.retryAt=="string"&&Number.isFinite(Date.parse(t.retryAt))?{retryAt:t.retryAt}:{}}}var nHe=I(()=>{"use strict";h();a(dge,"readUsageLimit")});var fge=I(()=>{h();cge();LV();uge();tHe();rHe();nHe()});function pge(e){switch(e){case 400:case 402:case 404:case 408:case 409:case 412:case 413:case 415:case 422:case 429:case 499:return"callSite";default:return"boundary"}}function mge(e){return typeof e=="object"&&e!==null&&"name"in e&&e.name==="VoidActionError"&&"status"in e&&typeof e.status=="number"&&pge(e.status)==="callSite"}var l1,OV=I(()=>{"use strict";h();fge();l1=class extends Error{static{a(this,"VoidActionError")}body;limit;status;statusText;url;constructor({body:t,status:r,statusText:n,url:i}){let o=r===429?dge(t):null;super(o?.message??(n?`Action failed with ${r} ${n}`:`Action failed with ${r}`)),this.name="VoidActionError",this.body=t,this.limit=o,this.status=r,this.statusText=n,this.url=i}};a(pge,"categorizeActionError");a(mge,"isCallSiteActionError")});var iHe=I(()=>{"use strict";h()});var oHe=I(()=>{"use strict";h()});var aHe=I(()=>{"use strict";h()});var sHe=I(()=>{"use strict";h()});var hge=I(()=>{"use strict";h()});var yge=I(()=>{"use strict";h();iHe();OV();oHe();aHe();sHe();hge()});function lHe(e){return e.replace(BDt,t=>`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`)}var BDt,cHe=I(()=>{"use strict";h();BDt=/[<>&\u2028\u2029]/g;a(lHe,"escapeScriptJson")});function uHe(e){return lHe(JSON.stringify(e))}var wge=I(()=>{h();cHe();a(uHe,"serializePageData")});function dHe(e,t,r){if(r==null)return!1;if(r instanceof Date)return e.append(t,r.toISOString()),!0;if(Array.isArray(r)){let n=!1;for(let i of r)n=dHe(e,t,i)||n;return n}if(typeof r=="string"||typeof r=="number"||typeof r=="boolean")return e.append(t,String(r)),!0;throw new Error(`Link: GET data only supports primitive values and arrays. Remove nested data for '${t}'.`)}function vge(e,t){if(!t)return e;let r=e.indexOf("#"),n=r===-1?e:e.slice(0,r),i=r===-1?"":e.slice(r),o=n.indexOf("?"),s=o===-1?n:n.slice(0,o),l=o===-1?"":n.slice(o+1),c=new URLSearchParams(l),u=!1;for(let[f,p]of Object.entries(t))u=dHe(c,f,p)||u;if(!u)return e;let d=c.toString();return`${s}${d?`?${d}`:""}${i}`}function bge(e){let t=e.currentTarget.getAttribute("target");return t!==null&&t!=="_self"||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||e.button!==0}var fHe=I(()=>{"use strict";h();a(dHe,"appendQueryValue");a(vge,"mergeDataIntoHref");a(bge,"isModifiedEvent")});var pHe=I(()=>{"use strict";h()});var mHe=I(()=>{"use strict";h()});function GDt(){return typeof window>"u"?"http://localhost":window.location.origin}function KDt(e){return e instanceof URL?new URL(e.href):new URL(e||"/",GDt())}function NV(){return{state:"idle",location:null,method:null}}function _ge(e="/",t={}){return{_hoverDelay:75,get url(){return KDt(e)},get path(){return this.url.pathname},get query(){return this.url.searchParams},get params(){return t},visit(){throw new Error("Void Router: visit() is not available during SSR.")},refresh(){throw new Error("Void Router: refresh() is not available during SSR.")},prefetch(){throw new Error("Void Router: prefetch() is not available during SSR.")},flush(){throw new Error("Void Router: flush() is not available during SSR.")},flushAll(){throw new Error("Void Router: flushAll() is not available during SSR.")}}}async function wHe(e,t,r){try{let n=await e.visit(t,r);return typeof n=="object"&&n!==null&&"errors"in n&&n.errors?{ok:!1,error:new l1({body:{errors:n.errors},status:422,statusText:"Unprocessable Content",url:t})}:{ok:!0,pageData:n}}catch(n){if(mge(n))return{ok:!1,error:n};throw n}}function vHe(){let e=null;function t(n){e=n}a(t,"setActionRouter");async function r(n,...i){if(!e)throw new Error("action(): called before router initialization.");let o=i[0],s=o?.data,l=o?.method||"POST",c=sge(n,o?.params);return wHe(e,c,{method:l,data:s})}return a(r,"action"),{action:r,setActionRouter:t}}var yHe,Iv=I(()=>{h();XFe();OV();yge();wge();hge();fHe();OV();pHe();yge();mHe();a(GDt,"getUrlOrigin");a(KDt,"toUrl");a(NV,"idleNavigationState");a(_ge,"createSsrRouter");yHe=_ge();a(wHe,"submitAction");a(vHe,"createActionClient")});function c1(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function jV(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,r])=>`${t}="${c1(r)}"`).join(" ")}function bHe(e){let t=[];if(e.title!==void 0&&t.push(`<title>${c1(e.title)}</title>`),e.meta)for(let r of e.meta){let n=[];r.charset&&n.push(`charset="${c1(r.charset)}"`),r.name&&n.push(`name="${c1(r.name)}"`),r.property&&n.push(`property="${c1(r.property)}"`),r.content!==void 0&&n.push(`content="${c1(r.content)}"`),t.push(`<meta ${n.join(" ")}>`)}if(e.link)for(let r of e.link)t.push(`<link ${jV(r)}>`);if(e.script)for(let r of e.script){let{innerHTML:n,...i}=r,o=jV(i);n?t.push(`<script${o?" "+o:""}>${n}<\/script>`):o&&t.push(`<script ${o}><\/script>`)}return t.join(`
570
570
  `)}function _He(e){let t=e.htmlAttrs?jV(e.htmlAttrs):"";return t?" "+t:""}function xHe(e){let t=e.bodyAttrs?jV(e.bodyAttrs):"";return t?" "+t:""}var SHe=I(()=>{h();a(c1,"escapeHtml");a(jV,"serializeAttrs");a(bHe,"renderHeadToString");a(_He,"renderHtmlAttrs");a(xHe,"renderBodyAttrs")});var Qk,$M,xge,MV,vx,zM,ZDt,Cv=I(()=>{"use strict";h();Qk=re(ge(),1);Iv();$M=(0,Qk.createContext)(null),xge=(0,Qk.createContext)(null),MV=(0,Qk.createContext)(null),vx=(0,Qk.createContext)(null),zM=(0,Qk.createContext)(NV()),ZDt=(0,Qk.createContext)({})});var Sge,$V,zV,kge=I(()=>{"use strict";h();Sge="__VOID_DEFERRED_SHELL_END__",$V=`<template id="${Sge}"></template>`,zV="Void deferred shell complete"});function kHe(e){let t=0,r,n=!1,i=a(async o=>{let s=[];r&&s.push(r.cancel(o));for(let l=t+(r?1:0);l<e.length;l++)s.push(e[l].cancel(o));await Promise.allSettled(s)},"cancelRemaining");return new ReadableStream({async pull(o){try{for(;t<e.length;){r??=e[t].getReader();let{done:s,value:l}=await r.read();if(n)return;if(s){r.releaseLock(),r=void 0,t++;continue}o.enqueue(l);return}o.close()}catch(s){n||(o.error(s),await i(s))}},async cancel(o){n=!0,await i(o)}},{highWaterMark:0})}function AHe(e){let t=e.getReader(),r=new TextDecoder,n=new TextEncoder,i=$V.length-1,o="",s=!1;return new ReadableStream({async pull(l){try{for(;;){let{done:c,value:u}=await t.read();if(s)return;o+=c?r.decode():r.decode(u,{stream:!0});let d=o.indexOf($V);if(d!==-1){let f=o.slice(0,d+$V.length);await t.cancel(zV),s||(l.enqueue(n.encode(f)),l.close());return}if(c){o&&l.enqueue(n.encode(o)),l.close();return}if(o.length>i){l.enqueue(n.encode(o.slice(0,-i))),o=o.slice(-i);return}}}catch(c){s||(l.error(c),await t.cancel(c).catch(()=>{}))}},async cancel(l){s=!0,await t.cancel(l)}},{highWaterMark:0})}var EHe=I(()=>{"use strict";h();kge();a(kHe,"concatStreams");a(AHe,"readDeferredShell")});function JDt(){return new Promise(()=>{})}function XDt(e){if(!e.deferredKeys)return e.props;let t={...e.props};for(let r of Object.keys(e.deferredKeys))t[r]=JDt();return t}function IHe(e){let t=new TextEncoder;return new ReadableStream({start(r){r.enqueue(t.encode(e)),r.close()}})}async function THe({pageObj:e,assetTags:t,components:r,layoutTree:n,preambleScript:i=""}){let o=(await r[e.component]()).default,s=n[e.component]||[],l=await Promise.all(s.map(async _=>(await r[_]()).default)),c=XDt(e),u=tp.default.createElement(o,c);for(let _=l.length-1;_>=0;_--)u=tp.default.createElement(l[_],null,u);u=tp.default.createElement(vx.Provider,{value:_ge(e.url||"/",e.params??{})},tp.default.createElement(zM.Provider,{value:NV()},tp.default.createElement(tp.default.Suspense,{fallback:null},tp.default.createElement($M.Provider,{value:e.shared||{}},tp.default.createElement(MV.Provider,{value:e.params??{}},tp.default.createElement(xge.Provider,{value:e.errors||{}},u))))));let d=e.deferredKeys?tp.default.createElement(tp.default.Fragment,null,u,tp.default.createElement("template",{id:Sge})):u,f,p=!1,m=await(0,CHe.renderToReadableStream)(d,{onError(_){if(_!==zV){if(p){console.error(_);return}f??={error:_}}}});if(f)throw await m.cancel(f.error),f.error;p=!0;let g=e.deferredKeys?AHe(m):m,w=uHe(e),y=e.head?bHe(e.head):"",b=e.head?_He(e.head):"",v=e.head?xHe(e.head):"";return kHe([IHe(`<!doctype html>
571
571
  <html${b}>
572
572
  <head>${y}${i}${t.css}${t.preloads}</head>
@@ -785,7 +785,7 @@ If you are deploying your Container for the first time, check your dashboard to
785
785
  SELECT * FROM container_schedules WHERE callback = ${t} LIMIT 1
786
786
  `;return!r||r.length===0?[]:r.map(this.toSchedule)}toSchedule(t){let r;try{r=JSON.parse(t.payload)}catch(n){console.error(`Error parsing payload for schedule ${t.id}:`,n),r=void 0}return t.type==="delayed"?{taskId:t.id,callback:t.callback,payload:r,type:"delayed",time:t.time,delayInSeconds:t.delayInSeconds}:{taskId:t.id,callback:t.callback,payload:r,type:"scheduled",time:t.time}}async getSchedule(t){let r=this.sql`
787
787
  SELECT * FROM container_schedules WHERE id = ${t} LIMIT 1
788
- `;if(!r||r.length===0)return;let n=r[0];return this.toSchedule(n)}isActivityExpired(){return this.inflightRequests>0?(this.renewActivityTimeout(),!1):this.sleepAfterMs<=Date.now()}};h();var ict=re(Blt(),1);var Flt={name:"void",version:"1.2.0",description:"Full-stack framework and deployment CLI for Cloudflare Workers, powered by Vite.",homepage:"https://void.cloud",bugs:{url:"https://github.com/voidzero-dev/void/issues"},license:"MIT",repository:{type:"git",url:"git+https://github.com/voidzero-dev/void.git",directory:"packages/void"},bin:{void:"dist/cli/cli.mjs"},files:["dist","docs","schema.json","skills","AGENTS_TEMPLATE.md","README.md","sandbox.Dockerfile"],type:"module",imports:{"#self/_env":"./dist/runtime/env.mjs","#self/email":"./dist/runtime/email.mjs","#self/env":"./dist/runtime/env-public.mjs","#self/client":"./dist/runtime/client.mjs","#self/handler":"./dist/runtime/handler.mjs","#self/queues":"./dist/runtime/queues.mjs","#self/remote":"./dist/runtime/remote/index.mjs","#self/remote/binding-handler":"./dist/runtime/remote/binding-handler.mjs","#self/sandbox":"./dist/runtime/sandbox.mjs","#self/runtime/live-server":"./dist/runtime/live-server.mjs","#self/runtime/fetch":"./dist/runtime/fetch.mjs","#self/runtime/fetch-server":"./dist/runtime/fetch-server.mjs","#self/runtime/fetch-stream":"./dist/runtime/fetch-stream.mjs","#self/runtime/route-url":"./dist/runtime/route-url.mjs","#self/runtime/migration-handler":"./dist/runtime/migration-handler.mjs","#self/runtime/migration-handler-pg":"./dist/runtime/migration-handler-pg.mjs","#self/runtime/migration-handler-mysql":"./dist/runtime/migration-handler-mysql.mjs","#self/runtime/ws-server":"./dist/runtime/ws-server.mjs","#self/runtime/routing":"./dist/runtime/routing.mjs"},exports:{".":{types:"./dist/index.d.mts",import:"./dist/index.mjs",require:"./dist/index.mjs"},"./schema.json":"./schema.json","./config":{types:"./dist/config-entry.d.mts",import:"./dist/config-entry.mjs",require:"./dist/config-entry.mjs"},"./database-provider":{types:"./dist/database-provider.d.mts",import:"./dist/database-provider.mjs",require:"./dist/database-provider.mjs"},"./edge":{types:"./dist/edge.d.mts",import:"./dist/edge.mjs",require:"./dist/edge.mjs"},"./handler":{types:"./dist/runtime/handler.d.mts",import:"./dist/runtime/handler.mjs",require:"./dist/runtime/handler.mjs"},"./response":{types:"./dist/runtime/response.d.mts",import:"./dist/runtime/response.mjs",require:"./dist/runtime/response.mjs"},"./auth":{types:"./dist/runtime/auth.d.mts",import:"./dist/runtime/auth.mjs",require:"./dist/runtime/auth.mjs"},"./validator":{types:"./dist/runtime/validator.d.mts",import:"./dist/runtime/validator.mjs",require:"./dist/runtime/validator.mjs"},"./routes":{types:"./dist/routes-stub.d.mts"},"./nitro":{types:"./dist/nitro.d.mts",import:"./dist/nitro.mjs",require:"./dist/nitro.mjs"},"./sveltekit":{types:"./dist/sveltekit.d.mts",import:"./dist/sveltekit.mjs",require:"./dist/sveltekit.mjs"},"./client":{types:"./dist/runtime/client.d.mts",import:"./dist/runtime/client.mjs",require:"./dist/runtime/client.mjs"},"./client/react":{types:"./dist/runtime/client-react.d.mts",import:"./dist/runtime/client-react.mjs",require:"./dist/runtime/client-react.mjs"},"./client/vue":{types:"./dist/runtime/client-vue.d.mts",import:"./dist/runtime/client-vue.mjs",require:"./dist/runtime/client-vue.mjs"},"./client/svelte":{types:"./dist/runtime/client-svelte.d.mts",import:"./dist/runtime/client-svelte.mjs",require:"./dist/runtime/client-svelte.mjs"},"./client/solid":{types:"./dist/runtime/client-solid.d.mts",import:"./dist/runtime/client-solid.mjs",require:"./dist/runtime/client-solid.mjs"},"./sse":{types:"./dist/runtime/sse.d.mts",import:"./dist/runtime/sse.mjs",require:"./dist/runtime/sse.mjs"},"./sse/client":{types:"./dist/runtime/sse-client.d.mts",import:"./dist/runtime/sse-client.mjs",require:"./dist/runtime/sse-client.mjs"},"./live":{types:"./dist/runtime/live.d.mts",import:"./dist/runtime/live.mjs",require:"./dist/runtime/live.mjs"},"./live/client":{types:"./dist/runtime/live-client.d.mts",import:"./dist/runtime/live-client.mjs",require:"./dist/runtime/live-client.mjs"},"./ws":{types:"./dist/runtime/ws.d.mts",import:"./dist/runtime/ws.mjs",require:"./dist/runtime/ws.mjs"},"./db":{types:"./dist/runtime/db.d.mts",import:"./dist/runtime/db.mjs",require:"./dist/runtime/db.mjs"},"./durable":{types:"./dist/runtime/durable.d.mts",import:"./dist/runtime/durable.mjs",require:"./dist/runtime/durable.mjs"},"./seed":{types:"./dist/runtime/seed.d.mts",import:"./dist/runtime/seed.mjs",require:"./dist/runtime/seed.mjs"},"./drizzle-zod":{types:"./dist/runtime/drizzle-zod.d.mts",import:"./dist/runtime/drizzle-zod.mjs",require:"./dist/runtime/drizzle-zod.mjs"},"./drizzle-valibot":{types:"./dist/runtime/drizzle-valibot.d.mts",import:"./dist/runtime/drizzle-valibot.mjs",require:"./dist/runtime/drizzle-valibot.mjs"},"./drizzle-arktype":{types:"./dist/runtime/drizzle-arktype.d.mts",import:"./dist/runtime/drizzle-arktype.mjs",require:"./dist/runtime/drizzle-arktype.mjs"},"./schema-d1":{types:"./dist/runtime/schema-d1.d.mts",import:"./dist/runtime/schema-d1.mjs",require:"./dist/runtime/schema-d1.mjs"},"./schema-pg":{types:"./dist/runtime/schema-pg.d.mts",import:"./dist/runtime/schema-pg.mjs",require:"./dist/runtime/schema-pg.mjs"},"./schema-mysql":{types:"./dist/runtime/schema-mysql.d.mts",import:"./dist/runtime/schema-mysql.mjs",require:"./dist/runtime/schema-mysql.mjs"},"./kv":{types:"./dist/runtime/kv.d.mts",import:"./dist/runtime/kv.mjs",require:"./dist/runtime/kv.mjs"},"./queues":{types:"./dist/runtime/queues.d.mts",import:"./dist/runtime/queues.mjs",require:"./dist/runtime/queues.mjs"},"./storage":{types:"./dist/runtime/storage.d.mts",import:"./dist/runtime/storage.mjs",require:"./dist/runtime/storage.mjs"},"./isr":{types:"./dist/runtime/isr.d.mts",import:"./dist/runtime/isr.mjs",require:"./dist/runtime/isr.mjs"},"./log":{types:"./dist/runtime/log.d.mts",import:"./dist/runtime/log.mjs",require:"./dist/runtime/log.mjs"},"./ai":{types:"./dist/runtime/ai.d.mts",import:"./dist/runtime/ai.mjs",require:"./dist/runtime/ai.mjs"},"./email":{types:"./dist/runtime/email.d.mts",import:"./dist/runtime/email.mjs",require:"./dist/runtime/email.mjs"},"./_email-protocol":{types:"./dist/runtime/email-protocol.d.mts",import:"./dist/runtime/email-protocol.mjs",require:"./dist/runtime/email-protocol.mjs"},"./email/testing":{types:"./dist/runtime/email/testing.d.mts",import:"./dist/runtime/email/testing.mjs",require:"./dist/runtime/email/testing.mjs"},"./sandbox":{types:"./dist/runtime/sandbox.d.mts",import:"./dist/runtime/sandbox.mjs",require:"./dist/runtime/sandbox.mjs"},"./remote":{types:"./dist/runtime/remote/index.d.mts",import:"./dist/runtime/remote/index.mjs",require:"./dist/runtime/remote/index.mjs"},"./pages":{types:"./dist/pages/index.d.mts",import:"./dist/pages/index.mjs",require:"./dist/pages/index.mjs"},"./pages-protocol":{types:"./dist/pages/protocol.d.mts",import:"./dist/pages/protocol.mjs",require:"./dist/pages/protocol.mjs"},"./pages-head":{types:"./dist/pages/head.d.mts",import:"./dist/pages/head.mjs",require:"./dist/pages/head.mjs"},"./pages-prefetch":{types:"./dist/pages/prefetch.d.mts",import:"./dist/pages/prefetch.mjs",require:"./dist/pages/prefetch.mjs"},"./pages-client":{types:"./dist/pages/client.d.mts",import:"./dist/pages/client.mjs",require:"./dist/pages/client.mjs"},"./pages-server":{types:"./dist/pages/serialize.d.mts",import:"./dist/pages/serialize.mjs",require:"./dist/pages/serialize.mjs"},"./pages-islands-plugin":{types:"./dist/pages/islands-plugin.d.mts",import:"./dist/pages/islands-plugin.mjs",require:"./dist/pages/islands-plugin.mjs"},"./env":{types:"./dist/runtime/env-public.d.mts",workerd:{import:"./dist/runtime/env-public.mjs",require:"./dist/runtime/env-public.mjs"},worker:{import:"./dist/runtime/env-public.mjs",require:"./dist/runtime/env-public.mjs"},browser:{import:"./dist/runtime/env-public-client.mjs",require:"./dist/runtime/env-public-client.mjs"},default:{import:"./dist/runtime/env-public.mjs",require:"./dist/runtime/env-public.mjs"}},"./_env":{types:"./dist/runtime/env.d.mts",import:"./dist/runtime/env.mjs",require:"./dist/runtime/env.mjs"},"./_db":{types:"./dist/runtime/db.d.mts",import:"./dist/runtime/db.mjs",require:"./dist/runtime/db.mjs"},"./_db-pg":{types:"./dist/runtime/db-pg.d.mts",import:"./dist/runtime/db-pg.mjs",require:"./dist/runtime/db-pg.mjs"},"./_db-mysql":{types:"./dist/runtime/db-mysql.d.mts",import:"./dist/runtime/db-mysql.mjs",require:"./dist/runtime/db-mysql.mjs"},"./_sandbox-container":{types:"./dist/runtime/sandbox-container.d.mts",import:"./dist/runtime/sandbox-container.mjs"},"./limits":{types:"./dist/runtime/limits.d.mts",import:"./dist/runtime/limits.mjs",require:"./dist/runtime/limits.mjs"},"./deploy":{types:"./dist/deploy.d.mts",import:"./dist/deploy.mjs"}},scripts:{build:"node scripts/sync-docs.mjs && vp pack",dev:"vp pack --watch",typecheck:"tsc --noEmit --rootDir ../.."},dependencies:{"@cloudflare/build-output-utils":"catalog:","@cloudflare/codemods":"catalog:","@cloudflare/config":"catalog:","@cloudflare/sandbox":"catalog:","@cloudflare/vite-plugin":"catalog:","@cloudflare/workers-auth":"catalog:","@cloudflare/workers-types":"catalog:","@napi-rs/keyring":"catalog:","@void/deploy-cloudflare":"workspace:*","@void/deploy-core":"workspace:*","@void/edge":"workspace:*","@void/isr":"workspace:*","@void/platform":"workspace:*","better-auth":"catalog:","better-sqlite3":"^13.0.3","blake3-jit":"^1.1.0",cf:"catalog:","drizzle-arktype":"^0.1.3","drizzle-kit":"^0.31.11","drizzle-orm":"^0.45.4","drizzle-valibot":"^0.4.2","drizzle-zod":"^0.8.3","email-validator":"^2.0.4",hono:"^4.13.13",ignore:"^7.0.12",jiti:"^2.7.0","jsonc-parser":"^3.3.1",mime:"^4.1.1",miniflare:"catalog:",minimatch:"^10.2.6",mysql2:"^3.24.6",pg:"^8.23.1","postal-mime":"catalog:","proper-lockfile":"^4.1.2","terminal-link":"^5.0.0",yaml:"^2.9.1"},devDependencies:{"@electric-sql/pglite":"catalog:","@types/better-sqlite3":"^9.6.0","@types/node":"catalog:","@types/pg":"^8.23.1","@types/proper-lockfile":"^4.1.4","@voidzero-dev/vite-plus-prompts":"catalog:",arktype:"^2.2.8","ci-info":"^4.4.0","estree-walker":"^3.0.3","fast-wrap-ansi":"^0.2.2","magic-string":"catalog:",ofetch:"2.0.0-alpha.3",pathslash:"catalog:","pglite-server":"0.1.5",picocolors:"^1.1.1",tinyglobby:"^0.2.17",typescript:"catalog:",valibot:"^1.5.0",vite:"catalog:","vite-plus":"catalog:",zod:"^4.6.7"},peerDependencies:{"@void/md":"workspace:*",arktype:">=2.0.0",valibot:">=1.0.0-beta.7",vite:"^8.0.0",zod:"^3.25.0 || ^4.0.0"},peerDependenciesMeta:{"@void/md":{optional:!0},arktype:{optional:!0},valibot:{optional:!0},zod:{optional:!0}},engines:{node:">=24.21.0"}};h();Hf();var Q5t=900,eVt=300,UZ=90,Mz=60,tVt=300;function iD(e){let t=e>0?e:1/0;return Math.min(t,Mz)*60+tVt}a(iD,"deployTokenTtlSecondsForBuildMinutes");async function BZ({projectId:e,userId:t,login:r,buildId:n},i,o){return sl({sub:t,login:r,aud:"deploy",project:e,build:n},i,{ttlSeconds:o?.ttlSeconds??Q5t})}a(BZ,"signDeployToken");async function YAe(e,t){let r=Math.floor((e.expiresAt.getTime()-Date.now())/1e3);if(r<=0||r>UZ*24*60*60)throw new Error("Project credential expiry is outside the supported range.");return sl({sub:e.userId,login:e.login,aud:"deploy",project:e.projectId,credential:e.credentialId},t,{ttlSeconds:r})}a(YAe,"signProjectCredentialToken");async function Hlt({projectId:e,userId:t,login:r,buildId:n,credentialId:i},o,s){return sl({sub:t,login:r,aud:"prerender",project:e,...n!==void 0?{build:n}:{},...i!==void 0?{credential:i}:{}},o,{ttlSeconds:s?.ttlSeconds??eVt})}a(Hlt,"signPrerenderToken");wc();Ow();h();var rVt="there is no container instance that can be provided to this durable object";function FZ(e){return(e instanceof Error?e.message:String(e)).toLowerCase().includes(rVt)}a(FZ,"isContainerCapacityError");Kc();$t();h();h();h();Oq();var qlt=new Map;async function nVt(e){let t=qlt.get(e);return t||(t=await Npe(e,"RS256"),qlt.set(e,t)),t}a(nVt,"getSigningKey");async function HE(e){let t=await nVt(e.GITHUB_APP_PRIVATE_KEY),r=Math.floor(Date.now()/1e3);return new zj({}).setProtectedHeader({alg:"RS256"}).setIssuer(e.GITHUB_APP_ID).setIssuedAt(r-60).setExpirationTime("9m").sign(t)}a(HE,"createAppJwt");var nh="https://api.github.com",iw="2026-03-10",iVt=300*1e3,Vlt=new Map;async function Rp(e,t,r){if(!r){let l=Vlt.get(t);if(l&&l.expiresAtMs-iVt>Date.now())return l.token}let n=await HE(e),i=r&&(r.repositoryIds||r.permissions)?JSON.stringify({...r.repositoryIds?{repository_ids:r.repositoryIds.map(Number)}:{},...r.permissions?{permissions:r.permissions}:{}}):void 0,o=await fetch(`${nh}/app/installations/${encodeURIComponent(t)}/access_tokens`,{method:"POST",headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${n}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw,...i?{"Content-Type":"application/json"}:{}},...i?{body:i}:{}});if(!o.ok){let l=await o.text().catch(()=>"<unreadable>");throw new Error(`Failed to mint installation token (${t}): ${o.status} ${l.trim()||"<empty>"}`)}let s=await o.json();return r||Vlt.set(t,{token:s.token,expiresAtMs:Date.parse(s.expires_at)}),s.token}a(Rp,"getInstallationToken");function Glt(e,t){return`${nh}/repos/${e}/tarball/${t}`}a(Glt,"generateSourceTarballUrl");var oD=2,QAe=250;function Wlt(e){return e instanceof Error?{name:e.name,message:e.message}:{message:String(e)}}a(Wlt,"errInfo");function $z(e,t){try{console.warn(JSON.stringify({ts:Date.now(),lvl:"warn",area:"github",phase:"branch-head-compare",msg:`branch-head compare failed: ${e}`,...t}))}catch{console.warn(`branch-head compare failed: ${e}`)}}a($z,"logCompareFailure");async function WS(e,t,r,n,i){for(let o=0;o<=oD;o++){let s;try{s=await Rp(e,t)}catch(l){$z("token-mint-failed",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempt:o,err:Wlt(l)}),o<oD&&await new Promise(c=>setTimeout(c,QAe));continue}try{let l=await fetch(`${nh}/repos/${r}/compare/${encodeURIComponent(n)}...${encodeURIComponent(i)}`,{headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${s}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw}});if(l.ok)return(await l.json()).status??null;if(l.status<500){let u=(await l.text().catch(()=>"<unreadable>")).slice(0,500);return $z("http-4xx",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempt:o,status:l.status,statusText:l.statusText,body:u}),null}let c=(await l.text().catch(()=>"<unreadable>")).slice(0,500);$z("http-5xx",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempt:o,status:l.status,body:c})}catch(l){$z("network-error",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempt:o,err:Wlt(l)})}o<oD&&await new Promise(l=>setTimeout(l,QAe))}return $z("exhausted",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempts:oD+1}),null}a(WS,"getBranchHeadComparisonStatus");async function Klt(e,t,r,n){let i=n.split("/").map(encodeURIComponent).join("/");for(let o=0;o<=oD;o++){try{let s=await Rp(e,t),l=await fetch(`${nh}/repos/${r}/git/ref/heads/${i}`,{headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${s}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw}});if(l.status===200)return"present";if(l.status===404)return"absent";if(l.status<500)return"unknown"}catch{}o<oD&&await new Promise(s=>setTimeout(s,QAe))}return"unknown"}a(Klt,"getBranchExistence");async function Zlt(e,t){let r=await HE(e),n=await fetch(`${nh}/repos/${t}/installation`,{headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${r}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw}});if(!n.ok)return null;let i=await n.json();return{installationId:String(i.id),accountId:String(i.account.id)}}a(Zlt,"getRepoInstallation");async function Jlt(e,t){let r=await HE(e),n=await fetch(`${nh}/app/installations/${encodeURIComponent(t)}`,{headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${r}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw}});if(!n.ok)return null;let o=(await n.json()).account;return!o||typeof o.id!="number"&&typeof o.id!="string"||typeof o.login!="string"||o.login===""?null:{accountId:String(o.id),login:o.login,type:o.type==="Organization"?"Organization":"User"}}a(Jlt,"getInstallationAccount");var oVt=["success","failure","cancelled","timed_out","neutral","skipped","action_required"];function Xlt(e){return typeof e=="string"&&oVt.includes(e)?e:"cancelled"}a(Xlt,"preservedCheckRunConclusion");var aD="Void Build",qE=2,eEe=250;function HZ(e){return e instanceof Error?{name:e.name,message:e.message}:{message:String(e)}}a(HZ,"errInfo");function wg(e,t,r){try{console.warn(JSON.stringify({ts:Date.now(),lvl:"warn",area:"github",phase:e,reason:t,msg:`${e} failed: ${t}`,...r}))}catch{console.warn(`${e} failed: ${t}`)}}a(wg,"logFailure");async function qZ(e,t,r,n){let i=JSON.stringify({name:n.name,head_sha:n.headSha,status:"in_progress",external_id:n.externalId,...n.detailsUrl?{details_url:n.detailsUrl}:{},output:{title:n.title,summary:n.summary}});for(let o=0;o<=qE;o++){let s;try{s=await Rp(e,t)}catch(l){wg("check-run-create","token-mint-failed",{installationId:t,repoFullName:r,headSha:n.headSha,externalId:n.externalId,attempt:o,err:HZ(l)}),o<qE&&await new Promise(c=>setTimeout(c,eEe));continue}try{let l=await fetch(`${nh}/repos/${r}/check-runs`,{method:"POST",headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${s}`,"Content-Type":"application/json","User-Agent":"void-api","X-GitHub-Api-Version":iw},body:i});if(l.ok){let u=await l.json().catch(()=>({}));return u.id===void 0||u.id===null?(wg("check-run-create","http-4xx",{installationId:t,repoFullName:r,externalId:n.externalId,attempt:o,status:l.status,body:"missing id in response"}),null):String(u.id)}let c=(await l.text().catch(()=>"<unreadable>")).slice(0,500);return wg("check-run-create",l.status<500?"http-4xx":"http-5xx",{installationId:t,repoFullName:r,externalId:n.externalId,attempt:o,status:l.status,statusText:l.statusText,body:c}),null}catch(l){return wg("check-run-create","network-error",{installationId:t,repoFullName:r,externalId:n.externalId,attempt:o,err:HZ(l)}),null}}return wg("check-run-create","exhausted",{installationId:t,repoFullName:r,externalId:n.externalId,attempts:qE+1}),null}a(qZ,"createCheckRun");async function zz(e,t,r,n,i){let o=!!i.text,s=a(()=>JSON.stringify({status:"completed",conclusion:i.conclusion,...i.detailsUrl?{details_url:i.detailsUrl}:{},output:{title:i.title,summary:i.summary,...o?{text:i.text}:{}}}),"makeBody"),l=s();for(let c=0;c<=qE;c++){let u;try{u=await Rp(e,t)}catch(d){wg("check-run-complete","token-mint-failed",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,err:HZ(d)}),c<qE&&await new Promise(f=>setTimeout(f,eEe));continue}try{let d=await fetch(`${nh}/repos/${r}/check-runs/${encodeURIComponent(n)}`,{method:"PATCH",headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${u}`,"Content-Type":"application/json","User-Agent":"void-api","X-GitHub-Api-Version":iw},body:l});if(d.ok)return!0;let f=(await d.text().catch(()=>"<unreadable>")).slice(0,500);if(d.status<500){if(d.status===422&&o){wg("check-run-complete","text-rejected-retry",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,status:d.status,statusText:d.statusText,body:f}),o=!1,l=s(),c-=1;continue}return wg("check-run-complete","http-4xx",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,status:d.status,statusText:d.statusText,body:f}),!1}wg("check-run-complete","http-5xx",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,status:d.status,body:f})}catch(d){wg("check-run-complete","network-error",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,err:HZ(d)})}c<qE&&await new Promise(d=>setTimeout(d,eEe))}return wg("check-run-complete","exhausted",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempts:qE+1}),!1}a(zz,"completeCheckRun");var tEe="buildConfig",Ylt="agentToken",rEe="checkRunId",nEe="logDrainState",oct=1e4,act=100,sD=6e4,Qlt=65535,ect=1,sct=2e3,aVt=32,tct=sct*2,sVt=1024,lVt=oct,cVt=7e3,uVt=125,ih=5e3,iEe=300;function lD(e,t,r){return new Promise((n,i)=>{let o=setTimeout(()=>i(new Error(r)),t);e.then(s=>{clearTimeout(o),n(s)},s=>{clearTimeout(o),i(s)})})}a(lD,"withDeadline");var dVt=Flt.version,fVt=1800*1e3,pVt=Mz+15,mVt=new TextEncoder;function Uz(e){return mVt.encode(e).length}a(Uz,"utf8Length");function oEe(e,t){let r=e.charCodeAt(t);return e.slice(r>=56320&&r<=57343?t+1:t)}a(oEe,"sliceTailAtUnit");function hVt(e){let t=0;for(let r of e.matchAll(/`+/g))r[0].length>t&&(t=r[0].length);return t}a(hVt,"longestBacktickRun");var lEe=32*1024,aEe=lEe/2,WZ=8*1024,gVt=1024*1024,rct=lEe,cD=WZ/4,VZ=32;function lct(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r<=31||r>=127&&r<=159)return!0}return!1}a(lct,"hasTerminalControl");function cct(e,t=aEe){if(!lct(e))return{safe:!0,controlledCodeUnits:0,parameterWork:0,repeatCodeUnits:0};if(e.length>t)return{safe:!1,controlledCodeUnits:e.length,parameterWork:0,repeatCodeUnits:0};let r="ground",n=0,i=0,o=0,s=0,l=!1,c=!1,u="",d="",f="",p=!1,m=[],g=a(()=>{s=0,l=!1,c=!1,u="",d="",m.length=0},"resetCsi"),w=a(()=>{l&&(m.push(s),s=0,l=!1)},"finishParameter"),y=a(v=>(n+=Math.max(1,v),n<=WZ),"spendWork"),b=a(()=>{g(),r="csi"},"enterCsi");for(let v=0;v<e.length;v++){let _=e.charCodeAt(v);if((_<=31&&_!==27||_>=128&&_<=159&&_!==155)&&(o=0),_===9&&p&&!y(cD))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};if((_===10||_===11||_===12||_===132||_===133||_===141)&&!y(cD))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};if(_===155){b();continue}if(r==="ground"){_===27?(f="",r="escape"):_>=32&&_<=126?o=1:_>31&&!(_>=127&&_<=159)&&(o+=1);continue}if(r==="escape"||r==="escapeIntermediate"){if(_===24||_===26)r="ground";else if(_===27)f="",r="escape";else if(!(_<=31||_===127)){if(r==="escape"&&_===91)b();else if(_>=32&&_<=47)r="escapeIntermediate",f+=String.fromCharCode(_);else if(_>=48&&_<=126){if((f===""&&(_===68||_===69||_===77||_===99)||f==="#"&&_===56)&&!y(cD))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};f===""&&_===99&&(p=!1),r="ground",o=0}}continue}if(r==="csiIgnore"){_===24||_===26?r="ground":_===27?(f="",r="escape"):_>=64&&_<=126&&(r="ground");continue}if(_===24||_===26)r="ground",g(),o=0;else if(_===27)f="",r="escape",g();else{if(_<=31||_===127)continue;if(_>=48&&_<=57&&d===""){if(c=!0,l=!0,s=Math.min(WZ+1,s*10+_-48),s>WZ)return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i}}else if((_===58||_===59)&&d==="")c=!0,w();else if(_>=60&&_<=63&&d==="")u!==""||c?(r="csiIgnore",g()):u=String.fromCharCode(_);else if(_>=32&&_<=47)w(),d+=String.fromCharCode(_);else if(_>=64&&_<=126){w();let x=m[0]||1;if(u===""&&d===""&&_===103&&x===3&&(p=!0),_===98&&u===""&&d===""&&(i+=o*(m[0]||1),i>gVt))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};if(_===104&&u===""&&d===""&&m.includes(4))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};let S=1;if(u===""&&d==="")switch(String.fromCharCode(_)){case"S":case"T":case"L":case"M":S+=cD+x;break;case"J":case"K":S+=VZ;break;case"@":case"P":S+=VZ+x;break;case"I":case"Z":S+=x*(p?cD:1);break;case"X":case"b":S+=x;break}else u===""&&(d===" "&&(_===64||_===65)||d==="'"&&(_===125||_===126))?S+=VZ+x:u==="?"&&d===""&&(_===74||_===75)?S+=VZ:u==="?"&&d===""&&(_===104||_===108)&&(S+=m.filter(A=>A===47||A===1047||A===1049).length*cD);if(!y(S))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};r="ground",g(),o=0}else r="csiIgnore",g()}}return{safe:!0,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i}}a(cct,"preflightTerminalInput");var sEe={cr:"\r",lf:`
788
+ `;if(!r||r.length===0)return;let n=r[0];return this.toSchedule(n)}isActivityExpired(){return this.inflightRequests>0?(this.renewActivityTimeout(),!1):this.sleepAfterMs<=Date.now()}};h();var ict=re(Blt(),1);var Flt={name:"void",version:"1.2.1",description:"Full-stack framework and deployment CLI for Cloudflare Workers, powered by Vite.",homepage:"https://void.cloud",bugs:{url:"https://github.com/voidzero-dev/void/issues"},license:"MIT",repository:{type:"git",url:"git+https://github.com/voidzero-dev/void.git",directory:"packages/void"},bin:{void:"dist/cli/cli.mjs"},files:["dist","docs","schema.json","skills","AGENTS_TEMPLATE.md","README.md","sandbox.Dockerfile"],type:"module",imports:{"#self/_env":"./dist/runtime/env.mjs","#self/email":"./dist/runtime/email.mjs","#self/env":"./dist/runtime/env-public.mjs","#self/client":"./dist/runtime/client.mjs","#self/handler":"./dist/runtime/handler.mjs","#self/queues":"./dist/runtime/queues.mjs","#self/remote":"./dist/runtime/remote/index.mjs","#self/remote/binding-handler":"./dist/runtime/remote/binding-handler.mjs","#self/sandbox":"./dist/runtime/sandbox.mjs","#self/runtime/live-server":"./dist/runtime/live-server.mjs","#self/runtime/fetch":"./dist/runtime/fetch.mjs","#self/runtime/fetch-server":"./dist/runtime/fetch-server.mjs","#self/runtime/fetch-stream":"./dist/runtime/fetch-stream.mjs","#self/runtime/route-url":"./dist/runtime/route-url.mjs","#self/runtime/migration-handler":"./dist/runtime/migration-handler.mjs","#self/runtime/migration-handler-pg":"./dist/runtime/migration-handler-pg.mjs","#self/runtime/migration-handler-mysql":"./dist/runtime/migration-handler-mysql.mjs","#self/runtime/ws-server":"./dist/runtime/ws-server.mjs","#self/runtime/routing":"./dist/runtime/routing.mjs"},exports:{".":{types:"./dist/index.d.mts",import:"./dist/index.mjs",require:"./dist/index.mjs"},"./schema.json":"./schema.json","./config":{types:"./dist/config-entry.d.mts",import:"./dist/config-entry.mjs",require:"./dist/config-entry.mjs"},"./database-provider":{types:"./dist/database-provider.d.mts",import:"./dist/database-provider.mjs",require:"./dist/database-provider.mjs"},"./edge":{types:"./dist/edge.d.mts",import:"./dist/edge.mjs",require:"./dist/edge.mjs"},"./handler":{types:"./dist/runtime/handler.d.mts",import:"./dist/runtime/handler.mjs",require:"./dist/runtime/handler.mjs"},"./response":{types:"./dist/runtime/response.d.mts",import:"./dist/runtime/response.mjs",require:"./dist/runtime/response.mjs"},"./auth":{types:"./dist/runtime/auth.d.mts",import:"./dist/runtime/auth.mjs",require:"./dist/runtime/auth.mjs"},"./validator":{types:"./dist/runtime/validator.d.mts",import:"./dist/runtime/validator.mjs",require:"./dist/runtime/validator.mjs"},"./routes":{types:"./dist/routes-stub.d.mts"},"./nitro":{types:"./dist/nitro.d.mts",import:"./dist/nitro.mjs",require:"./dist/nitro.mjs"},"./sveltekit":{types:"./dist/sveltekit.d.mts",import:"./dist/sveltekit.mjs",require:"./dist/sveltekit.mjs"},"./client":{types:"./dist/runtime/client.d.mts",import:"./dist/runtime/client.mjs",require:"./dist/runtime/client.mjs"},"./client/react":{types:"./dist/runtime/client-react.d.mts",import:"./dist/runtime/client-react.mjs",require:"./dist/runtime/client-react.mjs"},"./client/vue":{types:"./dist/runtime/client-vue.d.mts",import:"./dist/runtime/client-vue.mjs",require:"./dist/runtime/client-vue.mjs"},"./client/svelte":{types:"./dist/runtime/client-svelte.d.mts",import:"./dist/runtime/client-svelte.mjs",require:"./dist/runtime/client-svelte.mjs"},"./client/solid":{types:"./dist/runtime/client-solid.d.mts",import:"./dist/runtime/client-solid.mjs",require:"./dist/runtime/client-solid.mjs"},"./sse":{types:"./dist/runtime/sse.d.mts",import:"./dist/runtime/sse.mjs",require:"./dist/runtime/sse.mjs"},"./sse/client":{types:"./dist/runtime/sse-client.d.mts",import:"./dist/runtime/sse-client.mjs",require:"./dist/runtime/sse-client.mjs"},"./live":{types:"./dist/runtime/live.d.mts",import:"./dist/runtime/live.mjs",require:"./dist/runtime/live.mjs"},"./live/client":{types:"./dist/runtime/live-client.d.mts",import:"./dist/runtime/live-client.mjs",require:"./dist/runtime/live-client.mjs"},"./ws":{types:"./dist/runtime/ws.d.mts",import:"./dist/runtime/ws.mjs",require:"./dist/runtime/ws.mjs"},"./db":{types:"./dist/runtime/db.d.mts",import:"./dist/runtime/db.mjs",require:"./dist/runtime/db.mjs"},"./durable":{types:"./dist/runtime/durable.d.mts",import:"./dist/runtime/durable.mjs",require:"./dist/runtime/durable.mjs"},"./seed":{types:"./dist/runtime/seed.d.mts",import:"./dist/runtime/seed.mjs",require:"./dist/runtime/seed.mjs"},"./drizzle-zod":{types:"./dist/runtime/drizzle-zod.d.mts",import:"./dist/runtime/drizzle-zod.mjs",require:"./dist/runtime/drizzle-zod.mjs"},"./drizzle-valibot":{types:"./dist/runtime/drizzle-valibot.d.mts",import:"./dist/runtime/drizzle-valibot.mjs",require:"./dist/runtime/drizzle-valibot.mjs"},"./drizzle-arktype":{types:"./dist/runtime/drizzle-arktype.d.mts",import:"./dist/runtime/drizzle-arktype.mjs",require:"./dist/runtime/drizzle-arktype.mjs"},"./schema-d1":{types:"./dist/runtime/schema-d1.d.mts",import:"./dist/runtime/schema-d1.mjs",require:"./dist/runtime/schema-d1.mjs"},"./schema-pg":{types:"./dist/runtime/schema-pg.d.mts",import:"./dist/runtime/schema-pg.mjs",require:"./dist/runtime/schema-pg.mjs"},"./schema-mysql":{types:"./dist/runtime/schema-mysql.d.mts",import:"./dist/runtime/schema-mysql.mjs",require:"./dist/runtime/schema-mysql.mjs"},"./kv":{types:"./dist/runtime/kv.d.mts",import:"./dist/runtime/kv.mjs",require:"./dist/runtime/kv.mjs"},"./queues":{types:"./dist/runtime/queues.d.mts",import:"./dist/runtime/queues.mjs",require:"./dist/runtime/queues.mjs"},"./storage":{types:"./dist/runtime/storage.d.mts",import:"./dist/runtime/storage.mjs",require:"./dist/runtime/storage.mjs"},"./isr":{types:"./dist/runtime/isr.d.mts",import:"./dist/runtime/isr.mjs",require:"./dist/runtime/isr.mjs"},"./log":{types:"./dist/runtime/log.d.mts",import:"./dist/runtime/log.mjs",require:"./dist/runtime/log.mjs"},"./ai":{types:"./dist/runtime/ai.d.mts",import:"./dist/runtime/ai.mjs",require:"./dist/runtime/ai.mjs"},"./email":{types:"./dist/runtime/email.d.mts",import:"./dist/runtime/email.mjs",require:"./dist/runtime/email.mjs"},"./_email-protocol":{types:"./dist/runtime/email-protocol.d.mts",import:"./dist/runtime/email-protocol.mjs",require:"./dist/runtime/email-protocol.mjs"},"./email/testing":{types:"./dist/runtime/email/testing.d.mts",import:"./dist/runtime/email/testing.mjs",require:"./dist/runtime/email/testing.mjs"},"./sandbox":{types:"./dist/runtime/sandbox.d.mts",import:"./dist/runtime/sandbox.mjs",require:"./dist/runtime/sandbox.mjs"},"./remote":{types:"./dist/runtime/remote/index.d.mts",import:"./dist/runtime/remote/index.mjs",require:"./dist/runtime/remote/index.mjs"},"./pages":{types:"./dist/pages/index.d.mts",import:"./dist/pages/index.mjs",require:"./dist/pages/index.mjs"},"./pages-protocol":{types:"./dist/pages/protocol.d.mts",import:"./dist/pages/protocol.mjs",require:"./dist/pages/protocol.mjs"},"./pages-head":{types:"./dist/pages/head.d.mts",import:"./dist/pages/head.mjs",require:"./dist/pages/head.mjs"},"./pages-prefetch":{types:"./dist/pages/prefetch.d.mts",import:"./dist/pages/prefetch.mjs",require:"./dist/pages/prefetch.mjs"},"./pages-client":{types:"./dist/pages/client.d.mts",import:"./dist/pages/client.mjs",require:"./dist/pages/client.mjs"},"./pages-server":{types:"./dist/pages/serialize.d.mts",import:"./dist/pages/serialize.mjs",require:"./dist/pages/serialize.mjs"},"./pages-islands-plugin":{types:"./dist/pages/islands-plugin.d.mts",import:"./dist/pages/islands-plugin.mjs",require:"./dist/pages/islands-plugin.mjs"},"./env":{types:"./dist/runtime/env-public.d.mts",workerd:{import:"./dist/runtime/env-public.mjs",require:"./dist/runtime/env-public.mjs"},worker:{import:"./dist/runtime/env-public.mjs",require:"./dist/runtime/env-public.mjs"},browser:{import:"./dist/runtime/env-public-client.mjs",require:"./dist/runtime/env-public-client.mjs"},default:{import:"./dist/runtime/env-public.mjs",require:"./dist/runtime/env-public.mjs"}},"./_env":{types:"./dist/runtime/env.d.mts",import:"./dist/runtime/env.mjs",require:"./dist/runtime/env.mjs"},"./_db":{types:"./dist/runtime/db.d.mts",import:"./dist/runtime/db.mjs",require:"./dist/runtime/db.mjs"},"./_db-pg":{types:"./dist/runtime/db-pg.d.mts",import:"./dist/runtime/db-pg.mjs",require:"./dist/runtime/db-pg.mjs"},"./_db-mysql":{types:"./dist/runtime/db-mysql.d.mts",import:"./dist/runtime/db-mysql.mjs",require:"./dist/runtime/db-mysql.mjs"},"./_sandbox-container":{types:"./dist/runtime/sandbox-container.d.mts",import:"./dist/runtime/sandbox-container.mjs"},"./limits":{types:"./dist/runtime/limits.d.mts",import:"./dist/runtime/limits.mjs",require:"./dist/runtime/limits.mjs"},"./deploy":{types:"./dist/deploy.d.mts",import:"./dist/deploy.mjs"}},scripts:{build:"node scripts/sync-docs.mjs && vp pack",dev:"vp pack --watch",typecheck:"tsc --noEmit --rootDir ../.."},dependencies:{"@cloudflare/build-output-utils":"catalog:","@cloudflare/codemods":"catalog:","@cloudflare/config":"catalog:","@cloudflare/sandbox":"catalog:","@cloudflare/vite-plugin":"catalog:","@cloudflare/workers-auth":"catalog:","@cloudflare/workers-types":"catalog:","@napi-rs/keyring":"catalog:","@void/deploy-cloudflare":"workspace:*","@void/deploy-core":"workspace:*","@void/edge":"workspace:*","@void/isr":"workspace:*","@void/platform":"workspace:*","better-auth":"catalog:","better-sqlite3":"^13.0.3","blake3-jit":"^1.1.0",cf:"catalog:","drizzle-arktype":"^0.1.3","drizzle-kit":"^0.31.11","drizzle-orm":"^0.45.4","drizzle-valibot":"^0.4.2","drizzle-zod":"^0.8.3","email-validator":"^2.0.4",hono:"^4.13.13",ignore:"^7.0.12",jiti:"^2.7.0","jsonc-parser":"^3.3.1",mime:"^4.1.1",miniflare:"catalog:",minimatch:"^10.2.6",mysql2:"^3.24.6",pg:"^8.23.1","postal-mime":"catalog:","proper-lockfile":"^4.1.2","terminal-link":"^5.0.0",yaml:"^2.9.1"},devDependencies:{"@electric-sql/pglite":"catalog:","@types/better-sqlite3":"^9.6.0","@types/node":"catalog:","@types/pg":"^8.23.1","@types/proper-lockfile":"^4.1.4","@voidzero-dev/vite-plus-prompts":"catalog:",arktype:"^2.2.8","ci-info":"^4.4.0","estree-walker":"^3.0.3","fast-wrap-ansi":"^0.2.2","magic-string":"catalog:",ofetch:"2.0.0-alpha.3",pathslash:"catalog:","pglite-server":"0.1.5",picocolors:"^1.1.1",tinyglobby:"^0.2.17",typescript:"catalog:",valibot:"^1.5.0",vite:"catalog:","vite-plus":"catalog:",zod:"^4.6.7"},peerDependencies:{"@void/md":"workspace:*",arktype:">=2.0.0",valibot:">=1.0.0-beta.7",vite:"^8.0.0",zod:"^3.25.0 || ^4.0.0"},peerDependenciesMeta:{"@void/md":{optional:!0},arktype:{optional:!0},valibot:{optional:!0},zod:{optional:!0}},engines:{node:">=24.21.0"}};h();Hf();var Q5t=900,eVt=300,UZ=90,Mz=60,tVt=300;function iD(e){let t=e>0?e:1/0;return Math.min(t,Mz)*60+tVt}a(iD,"deployTokenTtlSecondsForBuildMinutes");async function BZ({projectId:e,userId:t,login:r,buildId:n},i,o){return sl({sub:t,login:r,aud:"deploy",project:e,build:n},i,{ttlSeconds:o?.ttlSeconds??Q5t})}a(BZ,"signDeployToken");async function YAe(e,t){let r=Math.floor((e.expiresAt.getTime()-Date.now())/1e3);if(r<=0||r>UZ*24*60*60)throw new Error("Project credential expiry is outside the supported range.");return sl({sub:e.userId,login:e.login,aud:"deploy",project:e.projectId,credential:e.credentialId},t,{ttlSeconds:r})}a(YAe,"signProjectCredentialToken");async function Hlt({projectId:e,userId:t,login:r,buildId:n,credentialId:i},o,s){return sl({sub:t,login:r,aud:"prerender",project:e,...n!==void 0?{build:n}:{},...i!==void 0?{credential:i}:{}},o,{ttlSeconds:s?.ttlSeconds??eVt})}a(Hlt,"signPrerenderToken");wc();Ow();h();var rVt="there is no container instance that can be provided to this durable object";function FZ(e){return(e instanceof Error?e.message:String(e)).toLowerCase().includes(rVt)}a(FZ,"isContainerCapacityError");Kc();$t();h();h();h();Oq();var qlt=new Map;async function nVt(e){let t=qlt.get(e);return t||(t=await Npe(e,"RS256"),qlt.set(e,t)),t}a(nVt,"getSigningKey");async function HE(e){let t=await nVt(e.GITHUB_APP_PRIVATE_KEY),r=Math.floor(Date.now()/1e3);return new zj({}).setProtectedHeader({alg:"RS256"}).setIssuer(e.GITHUB_APP_ID).setIssuedAt(r-60).setExpirationTime("9m").sign(t)}a(HE,"createAppJwt");var nh="https://api.github.com",iw="2026-03-10",iVt=300*1e3,Vlt=new Map;async function Rp(e,t,r){if(!r){let l=Vlt.get(t);if(l&&l.expiresAtMs-iVt>Date.now())return l.token}let n=await HE(e),i=r&&(r.repositoryIds||r.permissions)?JSON.stringify({...r.repositoryIds?{repository_ids:r.repositoryIds.map(Number)}:{},...r.permissions?{permissions:r.permissions}:{}}):void 0,o=await fetch(`${nh}/app/installations/${encodeURIComponent(t)}/access_tokens`,{method:"POST",headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${n}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw,...i?{"Content-Type":"application/json"}:{}},...i?{body:i}:{}});if(!o.ok){let l=await o.text().catch(()=>"<unreadable>");throw new Error(`Failed to mint installation token (${t}): ${o.status} ${l.trim()||"<empty>"}`)}let s=await o.json();return r||Vlt.set(t,{token:s.token,expiresAtMs:Date.parse(s.expires_at)}),s.token}a(Rp,"getInstallationToken");function Glt(e,t){return`${nh}/repos/${e}/tarball/${t}`}a(Glt,"generateSourceTarballUrl");var oD=2,QAe=250;function Wlt(e){return e instanceof Error?{name:e.name,message:e.message}:{message:String(e)}}a(Wlt,"errInfo");function $z(e,t){try{console.warn(JSON.stringify({ts:Date.now(),lvl:"warn",area:"github",phase:"branch-head-compare",msg:`branch-head compare failed: ${e}`,...t}))}catch{console.warn(`branch-head compare failed: ${e}`)}}a($z,"logCompareFailure");async function WS(e,t,r,n,i){for(let o=0;o<=oD;o++){let s;try{s=await Rp(e,t)}catch(l){$z("token-mint-failed",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempt:o,err:Wlt(l)}),o<oD&&await new Promise(c=>setTimeout(c,QAe));continue}try{let l=await fetch(`${nh}/repos/${r}/compare/${encodeURIComponent(n)}...${encodeURIComponent(i)}`,{headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${s}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw}});if(l.ok)return(await l.json()).status??null;if(l.status<500){let u=(await l.text().catch(()=>"<unreadable>")).slice(0,500);return $z("http-4xx",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempt:o,status:l.status,statusText:l.statusText,body:u}),null}let c=(await l.text().catch(()=>"<unreadable>")).slice(0,500);$z("http-5xx",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempt:o,status:l.status,body:c})}catch(l){$z("network-error",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempt:o,err:Wlt(l)})}o<oD&&await new Promise(l=>setTimeout(l,QAe))}return $z("exhausted",{installationId:t,repoFullName:r,baseSha:n,branch:i,attempts:oD+1}),null}a(WS,"getBranchHeadComparisonStatus");async function Klt(e,t,r,n){let i=n.split("/").map(encodeURIComponent).join("/");for(let o=0;o<=oD;o++){try{let s=await Rp(e,t),l=await fetch(`${nh}/repos/${r}/git/ref/heads/${i}`,{headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${s}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw}});if(l.status===200)return"present";if(l.status===404)return"absent";if(l.status<500)return"unknown"}catch{}o<oD&&await new Promise(s=>setTimeout(s,QAe))}return"unknown"}a(Klt,"getBranchExistence");async function Zlt(e,t){let r=await HE(e),n=await fetch(`${nh}/repos/${t}/installation`,{headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${r}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw}});if(!n.ok)return null;let i=await n.json();return{installationId:String(i.id),accountId:String(i.account.id)}}a(Zlt,"getRepoInstallation");async function Jlt(e,t){let r=await HE(e),n=await fetch(`${nh}/app/installations/${encodeURIComponent(t)}`,{headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${r}`,"User-Agent":"void-api","X-GitHub-Api-Version":iw}});if(!n.ok)return null;let o=(await n.json()).account;return!o||typeof o.id!="number"&&typeof o.id!="string"||typeof o.login!="string"||o.login===""?null:{accountId:String(o.id),login:o.login,type:o.type==="Organization"?"Organization":"User"}}a(Jlt,"getInstallationAccount");var oVt=["success","failure","cancelled","timed_out","neutral","skipped","action_required"];function Xlt(e){return typeof e=="string"&&oVt.includes(e)?e:"cancelled"}a(Xlt,"preservedCheckRunConclusion");var aD="Void Build",qE=2,eEe=250;function HZ(e){return e instanceof Error?{name:e.name,message:e.message}:{message:String(e)}}a(HZ,"errInfo");function wg(e,t,r){try{console.warn(JSON.stringify({ts:Date.now(),lvl:"warn",area:"github",phase:e,reason:t,msg:`${e} failed: ${t}`,...r}))}catch{console.warn(`${e} failed: ${t}`)}}a(wg,"logFailure");async function qZ(e,t,r,n){let i=JSON.stringify({name:n.name,head_sha:n.headSha,status:"in_progress",external_id:n.externalId,...n.detailsUrl?{details_url:n.detailsUrl}:{},output:{title:n.title,summary:n.summary}});for(let o=0;o<=qE;o++){let s;try{s=await Rp(e,t)}catch(l){wg("check-run-create","token-mint-failed",{installationId:t,repoFullName:r,headSha:n.headSha,externalId:n.externalId,attempt:o,err:HZ(l)}),o<qE&&await new Promise(c=>setTimeout(c,eEe));continue}try{let l=await fetch(`${nh}/repos/${r}/check-runs`,{method:"POST",headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${s}`,"Content-Type":"application/json","User-Agent":"void-api","X-GitHub-Api-Version":iw},body:i});if(l.ok){let u=await l.json().catch(()=>({}));return u.id===void 0||u.id===null?(wg("check-run-create","http-4xx",{installationId:t,repoFullName:r,externalId:n.externalId,attempt:o,status:l.status,body:"missing id in response"}),null):String(u.id)}let c=(await l.text().catch(()=>"<unreadable>")).slice(0,500);return wg("check-run-create",l.status<500?"http-4xx":"http-5xx",{installationId:t,repoFullName:r,externalId:n.externalId,attempt:o,status:l.status,statusText:l.statusText,body:c}),null}catch(l){return wg("check-run-create","network-error",{installationId:t,repoFullName:r,externalId:n.externalId,attempt:o,err:HZ(l)}),null}}return wg("check-run-create","exhausted",{installationId:t,repoFullName:r,externalId:n.externalId,attempts:qE+1}),null}a(qZ,"createCheckRun");async function zz(e,t,r,n,i){let o=!!i.text,s=a(()=>JSON.stringify({status:"completed",conclusion:i.conclusion,...i.detailsUrl?{details_url:i.detailsUrl}:{},output:{title:i.title,summary:i.summary,...o?{text:i.text}:{}}}),"makeBody"),l=s();for(let c=0;c<=qE;c++){let u;try{u=await Rp(e,t)}catch(d){wg("check-run-complete","token-mint-failed",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,err:HZ(d)}),c<qE&&await new Promise(f=>setTimeout(f,eEe));continue}try{let d=await fetch(`${nh}/repos/${r}/check-runs/${encodeURIComponent(n)}`,{method:"PATCH",headers:{Accept:"application/vnd.github+json",Authorization:`Bearer ${u}`,"Content-Type":"application/json","User-Agent":"void-api","X-GitHub-Api-Version":iw},body:l});if(d.ok)return!0;let f=(await d.text().catch(()=>"<unreadable>")).slice(0,500);if(d.status<500){if(d.status===422&&o){wg("check-run-complete","text-rejected-retry",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,status:d.status,statusText:d.statusText,body:f}),o=!1,l=s(),c-=1;continue}return wg("check-run-complete","http-4xx",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,status:d.status,statusText:d.statusText,body:f}),!1}wg("check-run-complete","http-5xx",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,status:d.status,body:f})}catch(d){wg("check-run-complete","network-error",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempt:c,err:HZ(d)})}c<qE&&await new Promise(d=>setTimeout(d,eEe))}return wg("check-run-complete","exhausted",{installationId:t,repoFullName:r,checkRunId:n,conclusion:i.conclusion,attempts:qE+1}),!1}a(zz,"completeCheckRun");var tEe="buildConfig",Ylt="agentToken",rEe="checkRunId",nEe="logDrainState",oct=1e4,act=100,sD=6e4,Qlt=65535,ect=1,sct=2e3,aVt=32,tct=sct*2,sVt=1024,lVt=oct,cVt=7e3,uVt=125,ih=5e3,iEe=300;function lD(e,t,r){return new Promise((n,i)=>{let o=setTimeout(()=>i(new Error(r)),t);e.then(s=>{clearTimeout(o),n(s)},s=>{clearTimeout(o),i(s)})})}a(lD,"withDeadline");var dVt=Flt.version,fVt=1800*1e3,pVt=Mz+15,mVt=new TextEncoder;function Uz(e){return mVt.encode(e).length}a(Uz,"utf8Length");function oEe(e,t){let r=e.charCodeAt(t);return e.slice(r>=56320&&r<=57343?t+1:t)}a(oEe,"sliceTailAtUnit");function hVt(e){let t=0;for(let r of e.matchAll(/`+/g))r[0].length>t&&(t=r[0].length);return t}a(hVt,"longestBacktickRun");var lEe=32*1024,aEe=lEe/2,WZ=8*1024,gVt=1024*1024,rct=lEe,cD=WZ/4,VZ=32;function lct(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r<=31||r>=127&&r<=159)return!0}return!1}a(lct,"hasTerminalControl");function cct(e,t=aEe){if(!lct(e))return{safe:!0,controlledCodeUnits:0,parameterWork:0,repeatCodeUnits:0};if(e.length>t)return{safe:!1,controlledCodeUnits:e.length,parameterWork:0,repeatCodeUnits:0};let r="ground",n=0,i=0,o=0,s=0,l=!1,c=!1,u="",d="",f="",p=!1,m=[],g=a(()=>{s=0,l=!1,c=!1,u="",d="",m.length=0},"resetCsi"),w=a(()=>{l&&(m.push(s),s=0,l=!1)},"finishParameter"),y=a(v=>(n+=Math.max(1,v),n<=WZ),"spendWork"),b=a(()=>{g(),r="csi"},"enterCsi");for(let v=0;v<e.length;v++){let _=e.charCodeAt(v);if((_<=31&&_!==27||_>=128&&_<=159&&_!==155)&&(o=0),_===9&&p&&!y(cD))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};if((_===10||_===11||_===12||_===132||_===133||_===141)&&!y(cD))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};if(_===155){b();continue}if(r==="ground"){_===27?(f="",r="escape"):_>=32&&_<=126?o=1:_>31&&!(_>=127&&_<=159)&&(o+=1);continue}if(r==="escape"||r==="escapeIntermediate"){if(_===24||_===26)r="ground";else if(_===27)f="",r="escape";else if(!(_<=31||_===127)){if(r==="escape"&&_===91)b();else if(_>=32&&_<=47)r="escapeIntermediate",f+=String.fromCharCode(_);else if(_>=48&&_<=126){if((f===""&&(_===68||_===69||_===77||_===99)||f==="#"&&_===56)&&!y(cD))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};f===""&&_===99&&(p=!1),r="ground",o=0}}continue}if(r==="csiIgnore"){_===24||_===26?r="ground":_===27?(f="",r="escape"):_>=64&&_<=126&&(r="ground");continue}if(_===24||_===26)r="ground",g(),o=0;else if(_===27)f="",r="escape",g();else{if(_<=31||_===127)continue;if(_>=48&&_<=57&&d===""){if(c=!0,l=!0,s=Math.min(WZ+1,s*10+_-48),s>WZ)return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i}}else if((_===58||_===59)&&d==="")c=!0,w();else if(_>=60&&_<=63&&d==="")u!==""||c?(r="csiIgnore",g()):u=String.fromCharCode(_);else if(_>=32&&_<=47)w(),d+=String.fromCharCode(_);else if(_>=64&&_<=126){w();let x=m[0]||1;if(u===""&&d===""&&_===103&&x===3&&(p=!0),_===98&&u===""&&d===""&&(i+=o*(m[0]||1),i>gVt))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};if(_===104&&u===""&&d===""&&m.includes(4))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};let S=1;if(u===""&&d==="")switch(String.fromCharCode(_)){case"S":case"T":case"L":case"M":S+=cD+x;break;case"J":case"K":S+=VZ;break;case"@":case"P":S+=VZ+x;break;case"I":case"Z":S+=x*(p?cD:1);break;case"X":case"b":S+=x;break}else u===""&&(d===" "&&(_===64||_===65)||d==="'"&&(_===125||_===126))?S+=VZ+x:u==="?"&&d===""&&(_===74||_===75)?S+=VZ:u==="?"&&d===""&&(_===104||_===108)&&(S+=m.filter(A=>A===47||A===1047||A===1049).length*cD);if(!y(S))return{safe:!1,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i};r="ground",g(),o=0}else r="csiIgnore",g()}}return{safe:!0,controlledCodeUnits:e.length,parameterWork:n,repeatCodeUnits:i}}a(cct,"preflightTerminalInput");var sEe={cr:"\r",lf:`
789
789
  `,crlf:`\r
790
790
  `,none:""};function yVt(e){return e.map((t,r)=>{let n=typeof t=="string"?void 0:t.lineEnding,i=n==="cr"||n==="lf"||n==="crlf"||n==="none"?n:void 0;return{raw:typeof t=="string"?t:t.line,lineEnding:i??(r+1<e.length?"crlf":"none")}})}a(yVt,"normalizeTerminalLogLines");function nct(e,t){let r=e;for(let n=0;n<t.length;n++){let i=t.charCodeAt(n);if(i===24||i===26||i===156){r="ground";continue}if(i===27){r="escape";continue}if(i===144){r="dcs";continue}if(i===152||i===158||i===159){r="sosPmApc";continue}if(i===155){r="csi";continue}if(i===157){r="osc";continue}if(i>=128&&i<=151||i===153||i===154){r="ground";continue}switch(r){case"ground":break;case"escape":if(i<=31||i===127)break;i===91?r="csi":i===93?r="osc":i===80?r="dcs":i===88||i===94||i===95?r="sosPmApc":i>=32&&i<=47?r="escapeIntermediate":i>=48&&i<=126&&(r="ground");break;case"escapeIntermediate":if(i<=31||i===127||i>=32&&i<=47)break;i>=48&&i<=126&&(r="ground");break;case"csi":i>=64&&i<=126&&(r="ground");break;case"osc":i===7&&(r="ground");break;case"dcs":case"sosPmApc":break}}return r}a(nct,"advanceTerminalParserBoundary");function wVt(e){let t=[],r="ground",n=null,i=yVt(e);for(let o=0;o<i.length;o++){let s=i[o];n===null&&(n={lines:[],inputCodeUnits:0,requiresTerminal:!1}),n.lines.push(s),n.inputCodeUnits+=s.raw.length+sEe[s.lineEnding].length,n.requiresTerminal||=lct(s.raw)||s.lineEnding==="cr"||s.lineEnding==="lf"&&o+1<i.length||s.lineEnding==="none"&&o+1<i.length,r=nct(r,s.raw),r=nct(r,sEe[s.lineEnding]),r==="ground"&&s.lineEnding!=="cr"&&(s.lineEnding!=="none"||o+1===i.length)&&(t.push(n),n=null)}return n!==null&&t.push(n),t}a(wVt,"groupTerminalLogLines");function vVt(e){if(!e.requiresTerminal)return{safe:!0,controlledCodeUnits:0,parameterWork:0,repeatCodeUnits:0};let t=e.inputCodeUnits;if(t>aEe)return{safe:!1,controlledCodeUnits:t,parameterWork:0,repeatCodeUnits:0};let r=cct(uct([e]),aEe);return{safe:r.safe,controlledCodeUnits:t,parameterWork:r.parameterWork,repeatCodeUnits:r.repeatCodeUnits}}a(vVt,"preflightTerminalGroup");function uct(e){return e.flatMap(t=>t.lines.map(r=>`${r.raw}${r.lineEnding==="none"?"":"\r"}`)).join("")}a(uct,"serializeTerminalGroupsForPreflight");async function bVt(e){if(e.every(f=>!f.requiresTerminal))return e.flatMap(f=>f.lines.flatMap(p=>{let m=p.raw.trimEnd();return m===""?[]:[m]}));let t=[],r=[],n=new ict.Terminal({cols:lEe,rows:1,allowProposedApi:!0,scrollback:1}),i=!1,o=n.onLineFeed(()=>{if(!i)return;let f=n.buffer.active,p=(f.getLine(Math.max(0,f.baseY-1))?.translateToString(!1)??"").trimEnd();p!==""&&(f.type==="alternate"?r.length=0:t.push(p))}),s=a(()=>(t.length=0,r.length=0,!1),"clearCapturedHistory"),l=n.parser.registerEscHandler({final:"c"},s),c=a(f=>(f[0]===3&&(n.buffer.active.type==="alternate"?r.length=0:t.length=0),!1),"clearActiveHistoryOnErase3"),u=n.parser.registerCsiHandler({final:"J"},c),d=n.parser.registerCsiHandler({prefix:"?",final:"J"},c);try{for(let g of e)for(let w of g.lines){await new Promise(b=>n.write(w.raw,b));let y=sEe[w.lineEnding];if(y!==""){i=w.lineEnding==="lf"||w.lineEnding==="crlf";try{await new Promise(b=>n.write(y,b))}finally{i=!1}}}let f=n.buffer.active,p=(f.getLine(f.baseY)?.translateToString(!1)??"").trimEnd(),m=f.type==="alternate"?r:t;return p!==""&&m.push(p),m}finally{d.dispose(),u.dispose(),l.dispose(),o.dispose(),n.dispose()}}a(bVt,"renderTerminalGroups");async function _Vt(e,t){let r=wVt(e.slice(-act)),n=[],i=0,o=!1,s=r.length;for(let g=r.length-1;g>=0;g--){let w=r[g];if(!vVt(w).safe)break;let b=o||w.requiresTerminal,v=i+w.inputCodeUnits;if(b){if(v>rct)break;let _=[w,...n.slice().reverse()];if(!cct(uct(_),rct).safe)break}n.push(w),s=g,i=v,o=b}if(n.length===0||r.slice(0,s).some(g=>g.requiresTerminal))return null;let l=(await bVt(n.reverse())).map(g=>g.replace(/^ {257,}/," ".repeat(32))),c=[],u=0;for(let g=l.length-1;g>=0;g--){let w=l[g],y=Uz(w);if(c.length===0&&y>sD){for(;y>sD;)w=oEe(w,Math.ceil((y-sD)/3)),y=Uz(w);c.push(w),u=y;break}let b=c.length>0?1:0;if(u+b+y>sD)break;c.push(w),u+=b+y}let d=c.reverse();if(d.length===0)return null;for(;d.length===1&&u>sD;)d[0]=oEe(d[0],Math.ceil((u-sD)/3)),u=Uz(d[0]);let f=a(()=>{let g="`".repeat(Math.max(6,Math.max(...d.map(hVt))+1)),w=[`**Last ${d.length} log lines:**`,""];return t>d.length&&w.push("_\u2026earlier lines omitted._",""),w.push(`${g}text`,d.join(`
791
791
  `),g),w.join(`
@@ -2,8 +2,8 @@
2
2
  "artifacts": {
3
3
  "api": {
4
4
  "path": "api/index.js",
5
- "sha256": "57e1bd93812fa71b560e697e9a9a7ccdefbb7951f8807ccf078a9d18a5196ee2",
6
- "size": 3774419
5
+ "sha256": "32aafbe9863c0a1a287216b0425ba4ed21f927eff2bd531671204ceb5dd361b2",
6
+ "size": 3774406
7
7
  },
8
8
  "dispatch": {
9
9
  "path": "dispatch/index.js",
@@ -31,8 +31,8 @@
31
31
  "assets": {
32
32
  "adminClient": {
33
33
  "path": "api/assets/admin/client.js",
34
- "sha256": "a946f915c691af58eed6206eb45bcd6f52964fc8b4b24904bd3a7f0d4d567c8d",
35
- "size": 1316155
34
+ "sha256": "71cfabf769a9fa7d467eb2c3524b08191de98f10d29fcff865adc1ab8cb92a38",
35
+ "size": 1316247
36
36
  },
37
37
  "adminStyle": {
38
38
  "path": "api/assets/admin/style.css",
@@ -458,11 +458,11 @@
458
458
  ],
459
459
  "schemaDigest": "d8e007d2bbe02637f6e77a33c1db152e0c4f21b30439ad512e16bce6726d6b9b"
460
460
  },
461
- "platformVersion": "1.2.0",
461
+ "platformVersion": "1.2.1",
462
462
  "safetyProtocols": {
463
463
  "sandboxDrain": 3
464
464
  },
465
465
  "schemaVersion": 2,
466
- "sourceRevision": "d031dea65ad2c1521920f341e4337b48a92cd59b",
466
+ "sourceRevision": "1e14daeacfac9c30e82ad87d4c95028ae28c0e68",
467
467
  "usageProtocolVersion": 2
468
468
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@void/platform",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Packaged runtime and installation contracts for self-hosted Void platforms.",
5
5
  "homepage": "https://void.cloud",
6
6
  "bugs": {