Update to Molecular Structure Viewer
Snapshot Oct 24, 2026 · 13:01 UTC · version 0.1.96
Package or technical metadata updated
Package or technical metadata updated
Observed in package metadata. These changes alone do not establish a new customer-facing feature.
Up to 3 plugins free · no card required.
All fields and original values.
These are saved file metadata. Open a changed file to read its text edits.
Package file
Oct 10, 2026 · 06:02 UTC
6ae1a829cda5d649d66a3c4878dfab6781e8e6dcb3db2316e83fd96d84effc6c
Oct 24, 2026 · 13:01 UTC
0948f20fac6a57786383c76d56b3c658656bd1046b916f4501196bd3f6405d01
Package file
Oct 10, 2026 · 06:02 UTC
7620095d02ef6890737b63fe4f28bddab16a8ebf646f965184ef2cde34d0e583
Oct 24, 2026 · 13:01 UTC
514635d4033800b9a2cfa55c5ae87e2e6e66acc05720a845829f241380c5042e
Package file
Oct 10, 2026 · 06:02 UTC
28937
Oct 24, 2026 · 13:01 UTC
28928
Package file
Oct 10, 2026 · 06:02 UTC
8cdca44267305c6b158f0b37f87af4ddb9769436c73dfae79bda7ab0c3bc82c7
Oct 24, 2026 · 13:01 UTC
e114f8a05eabafe36e28084a86a7f0df92b14a81e2508bf02a1657c3b45ec2ec
Compare saved observations
Download comparison JSONChanged files
Choose a file to see its text changes. Binary or large files show metadata only.
dist/views/bootstrap.js
− removed · + added
--- before +++ after @@ -1,4 +1,4 @@ -var e=Object.defineProperty,t=(e,t)=>()=>(e&&(t=e(e=0)),t),n=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},r=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function i(e){return JSON.stringify(a(e))}function a(e){return Array.isArray(e)?e.map(a):typeof e!=`object`||!e?e:Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:e>t?1:0).map(([e,t])=>[e,a(t)]))}function o(e){if(!l(e))return[];try{let t=[];l(e.toolInput)&&t.push({kind:`input`,value:{arguments:e.toolInput}});let n=l(e.toolOutput)?e.toolOutput:null,r=l(e.toolResponseMetadata)?e.toolResponseMetadata:null;return(n!=null||r!=null)&&t.push({kind:`result`,value:{content:[],...n==null?{}:{structuredContent:n},...r==null?{}:{_meta:r}}}),t}catch{return[]}}function s(e,t){for(let n=e.length-1;n>=0;--n){let r=e[n];if(!(r==null||r.kind!==t.kind)){if(c(r,t))return!1;break}}return e.push(t),!0}function c(e,t){if(e.kind!==t.kind)return!1;try{if(i(e.value)===i(t.value))return!0;if(e.kind!==`result`||t.kind!==`result`)return!1;let n=e.value,r=t.value,a=l(n.structuredContent)?n.structuredContent.viewerOpen:void 0,o=n._meta,s=l(o)?o[`openai/viewerPresentation`]:void 0,c=l(o)?o[`openai/viewerFile`]:void 0,u=l(c)?c.primaryFile:void 0,d=r.content,f=Array.isArray(d)?d[0]:void 0;return n.isError===!0||r.isError===!0||!l(a)||a.disposition!==`created`||a.entrypoint!==`chat`||a.presentation!==`owner`||!l(s)||typeof s.presentationToken!=`string`||!l(u)||typeof u.name!=`string`||typeof u.uri!=`string`||!Array.isArray(n.content)||n.content.length!==0||!Array.isArray(d)||d.length!==1||!l(f)||Object.keys(f).length!==2||f.type!==`text`||typeof f.text!=`string`||f.text.length===0?!1:i(n)===i({...r,content:[]})}catch{return!1}}function l(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}async function u(e,t){let n=e.startup;if(n==null)throw d(e),Error(`The Molecular Structure Viewer application did not report its startup.`);if(t.aborted)throw d(e,n),f(t);let r=()=>void 0,i=new Promise((e,n)=>{let i=()=>n(f(t));t.addEventListener(`abort`,i,{once:!0}),r=()=>t.removeEventListener(`abort`,i)});try{await Promise.race([n,i])}catch(t){throw d(e,n),t}finally{r()}}function d(e,t){if(t!=null&&e.startup!==t)return;let n=e.startup,r=e.startupCleanup;e.startupCleanup=void 0,e.startup=void 0,n?.catch(()=>void 0);try{r?.()}catch{}}function f(e){return e.reason??new DOMException(`The molecular viewer startup was cancelled.`,`AbortError`)}var ee={appName:`structure-viewer`,appVersion:`0.1.95`,molstarVersion:`5.11.0`,protocolVersion:`2026-01-26`},te={addStructure:`structure.add_structure`,alignStructures:`structure.align_structures`,analyze:`structure.analyze`,abortExportArtifactUpload:`structure.abort_export_artifact_upload`,abortRenderArtifactUpload:`structure.abort_render_artifact_upload`,applyScene:`structure.apply_scene`,appAssemblySymmetry:`structure.app_assembly_symmetry`,appBrowseRelatedData:`structure.app_browse_related_data`,appLoadPublicDensity:`structure.app_load_public_density`,appQualityAssessment:`structure.app_quality_assessment`,appSetAssemblySymmetry:`structure.app_set_assembly_symmetry`,appSetQualityAssessment:`structure.app_set_quality_assessment`,assemblySymmetry:`structure.assembly_symmetry`,appendExportArtifactChunk:`structure.append_export_artifact_chunk`,appendRenderArtifactChunk:`structure.append_render_artifact_chunk`,backgroundAssets:`structure.background_assets`,browseRelatedData:`structure.browse_related_data`,browseWorkspaceDestinations:`structure.browse_workspace_destinations`,beginExportArtifactUpload:`structure.begin_export_artifact_upload`,beginRenderArtifactUpload:`structure.begin_render_artifact_upload`,cancelRender:`structure.cancel_render`,claimRenderer:`structure.claim_renderer`,acknowledgeRendererHydrated:`structure.acknowledge_renderer_hydrated`,completeCommand:`structure.complete_viewer_command`,controlViewer:`structure.control_viewer`,createWorkspaceDestinationFolder:`structure.create_workspace_destination_folder`,discoverAssociatedProjects:`structure.discover_associated_projects`,discoverDensity:`structure.discover_density`,deleteScene:`structure.delete_scene`,deriveObject:`structure.derive_object`,export:`structure.export`,finishExportArtifactUpload:`structure.finish_export_artifact_upload`,finishRenderArtifactUpload:`structure.finish_render_artifact_upload`,getBundleChunk:`structure.get_viewer_bundle_chunk`,getBundleInfo:`structure.get_viewer_bundle_info`,getRenderJobControl:`structure.get_render_job_control`,getViewerCommandControl:`structure.get_viewer_command_control`,getRenderStatus:`structure.get_render_status`,getSourceInfo:`structure.get_source_info`,getState:`structure.get_state`,getContext:`structure.get_context`,registerContextSession:`structure.register_context_session`,waitForContextRequest:`structure.wait_for_context_request`,completeContextRequest:`structure.complete_context_request`,releaseContextSession:`structure.release_context_session`,listViewers:`structure.list_viewers`,getViewerStatus:`structure.get_viewer_status`,getProjectContext:`structure.get_project_context`,getLiveProjectContext:`structure.get_live_project_context`,listDocuments:`structure.list_documents`,readDocument:`structure.read_document`,searchDocument:`structure.search_document`,readSource:`structure.read_source`,listScenes:`structure.list_scenes`,listStructures:`structure.list_structures`,loadLiveProjectCheckpoint:`structure.load_live_project_checkpoint`,loadRelatedData:`structure.load_related_data`,loadBackground:`structure.load_background`,loadPublicDensity:`structure.load_public_density`,loadData:`structure.load_data`,loadScene:`structure.load_scene`,measure:`structure.measure`,manageGuides:`structure.manage_guides`,open:`structure.open`,openFromChat:`structure.open_from_chat`,openInSidePane:`structure.open_in_side_pane`,preflightExportArtifact:`structure.preflight_export_artifact`,preflightRenderArtifact:`structure.preflight_render_artifact`,planWorkspaceDestination:`structure.plan_workspace_destination`,project:`structure.project`,molecularAction:`structure.molecular_action`,molecularActions:`structure.molecular_actions`,query:`structure.query`,qualityAssessment:`structure.quality_assessment`,readSourceRange:`structure.read_source_range`,redo:`structure.redo`,resolveProject:`structure.resolve_project`,resolveLiveProjectCheckpoint:`structure.resolve_live_project_checkpoint`,reconcileLiveProjectCommand:`structure.reconcile_live_project_command`,releaseLiveProjectResources:`structure.release_live_project_resources`,registerSession:`structure.register_viewer_session`,restoreChatSession:`structure.restore_chat_viewer_session`,releaseSession:`structure.release_viewer_session`,releaseWorkspacePublication:`structure.release_workspace_publication`,releaseWorkspaceDestinationPlan:`structure.release_workspace_destination_plan`,removeStructure:`structure.remove_structure`,renderImage:`structure.render_image`,renderMovie:`structure.render_movie`,saveRenderArtifact:`structure.save_render_artifact`,saveLiveProjectCheckpoint:`structure.save_live_project_checkpoint`,saveScene:`structure.save_scene`,saveExportArtifact:`structure.save_export_artifact`,setSelection:`structure.set_selection`,searchMotif:`structure.search_motif`,setAssemblySymmetry:`structure.set_assembly_symmetry`,setQualityAssessment:`structure.set_quality_assessment`,setTrajectoryState:`structure.set_trajectory_state`,setObjectVisibility:`structure.set_object_visibility`,transformObject:`structure.transform_object`,undo:`structure.undo`,updateRenderJob:`structure.update_render_job`,validateRender:`structure.validate_render`,validateRenderer:`structure.validate_renderer`,waitForCommand:`structure.wait_for_viewer_command`},ne=280*1024,re=192*1024,ie=8*1024;function ae({proxyEnvelopeBytes:e=ne,protocolHeadroomBytes:t=ie,preferredBaselineBytes:n=re}={}){for(let[r,i]of Object.entries({preferredBaselineBytes:n,protocolHeadroomBytes:t,proxyEnvelopeBytes:e}))if(!Number.isSafeInteger(i)||i<0)throw Error(`${r} must be a non-negative safe integer.`);let r=oe(0),i=e-t-r;if(i<4||n<1)throw Error(`The artifact proxy envelope cannot hold one raw byte.`);let a=Math.floor(i/4)*3;return Math.min(n,a)}function oe(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Artifact chunk length must be a non-negative integer.`);let t=`ffffffff-ffff-4fff-bfff-ffffffffffff`,n=4*Math.ceil(e/3);return JSON.stringify({id:2**53-1,jsonrpc:`2.0`,method:`tools/call`,params:{arguments:{chunkIndex:2**53-1,dataBase64:`A`.repeat(n),publicationAuthorizationId:t,publicationCallerId:t,publicationCommandId:t,renderer:{generation:2**53-1,leaseId:t,mountId:t},sessionId:t,uploadId:t,uploadLeaseId:t},name:te.appendRenderArtifactChunk}}).length}var p={artifact:{maxActiveBytes:256*1024*1024,maxActiveDiskBytes:2*1024*1024*1024,maxActiveUploads:8,maxBufferedBytes:64*1024*1024,maxBytes:1*1024*1024*1024,maxChunkBytes:ae(),maxStreamingRetainedBytes:2*1024*1024,streamingMemoryReservationBytes:2*1024*1024,maxOneShotBytes:180*1024,proxyEnvelopeBytes:ne,diskSafetyReserveBytes:256*1024*1024,uploadTtlMs:15*6e4},bootstrap:{maxBundleBytes:32*1024*1024,maxChunkBytes:32766,maxChunks:2048,maxConcurrentChunks:4,maxRetries:2},bridge:{bulkRequestTimeoutMs:{interactive:3e4,object:12e4,render:15*6e4,wait:25e3}.render,proxyRetry:{baseDelayMs:100,jitterRatio:.25,maxAttempts:3,maxDelayMs:1e3},requestTimeoutMs:3e4},command:{maxPendingGlobal:256,maxPendingPerSession:16,maxRetainedResultsPerSession:128,maxSessions:128,maxWaitersGlobal:128,maxWaitersPerSession:8},context:{maxBytes:256*1024,maxTextBytes:16*1024},input:{maxSourceBytes:2**53-1,maxRangeBytes:256*1024,maxRenderedBytes:4*1024*1024,maxAtomPageAtoms:512,maxResourceReadBytes:128*1024*1024,maxExpandedBytes:128*1024*1024,maxBytes:128*1024*1024},analysis:{maxAtomIdsInState:1e5,maxCursorPageSize:500,maxResultRows:5e4,maxSavedScenes:64},render:{maxActiveGlobal:4,maxActivePerSession:1,maxRetainedJobs:100,progressIntervalMs:100,maxRenderLifetimeMs:480*6e4}};function se(e){typeof window>`u`||window.dispatchEvent(new CustomEvent(`structure-viewer-diagnostic`,{detail:{...e}}))}p.command.maxSessions;var ce=`[STRUCTURE_VIEWER_CHAT_RESOURCE_UNAVAILABLE]`;function le(e){if(!(e instanceof Error))return null;let t=e.message.indexOf(ce);return t<0?null:e.message.slice(t+ce.length).trim()||`The saved viewer file reference could not be read.`}var ue=p.bridge.proxyRetry;async function de(e,{onRetry:t,policy:n,preserveErrorAfterAbort:r=!1,random:i=Math.random,signal:a,sleep:o=he}={}){let s=_e({...ue,...n});for(let n=1;n<=s.maxAttempts;n+=1){me(a);try{return await e(n)}catch(e){if(n===s.maxAttempts||!fe(e)||r&&a?.aborted)throw e;let c=ge(s,n,i);t?.({attempt:n,delayMs:c,error:e,nextAttempt:n+1}),await o(c,a)}}throw Error(`MCP proxy retry loop ended unexpectedly.`)}function fe(e){return!(e instanceof Error)||pe(e)||le(e)!=null?!1:/MCP proxy request failed|proxy (?:overloaded|unavailable)|timed out|disconnected|connection (?:closed|lost)|network(?: request)? failed|temporarily unavailable/iu.test(e.message)}function pe(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`}function me(e){if(e?.aborted)throw e.reason instanceof Error?e.reason:ve()}async function he(e,t){me(t),await new Promise((n,r)=>{let i=()=>{clearTimeout(a),t?.removeEventListener(`abort`,i),r(t?.reason instanceof Error?t.reason:ve())},a=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},e);t?.addEventListener(`abort`,i,{once:!0}),t?.aborted&&i()})}function ge(e,t,n){let r=Math.min(e.maxDelayMs,e.baseDelayMs*2**(t-1)),i=Math.min(1,Math.max(0,n()));return Math.round(r*(1-e.jitterRatio*i))}function _e(e){if(!Number.isInteger(e.maxAttempts)||e.maxAttempts<1||!Number.isFinite(e.baseDelayMs)||e.baseDelayMs<0||!Number.isFinite(e.maxDelayMs)||e.maxDelayMs<e.baseDelayMs||!Number.isFinite(e.jitterRatio)||e.jitterRatio<0||e.jitterRatio>1)throw Error(`MCP proxy retry policy was invalid.`);return e}function ve(){let e=Error(`MCP request aborted.`);return e.name=`AbortError`,e}function ye({hostCapabilities:e,hostContext:t}){let n=typeof t==`object`&&t&&Object.hasOwn(t,`scientificViewers`)?t:e;if(typeof n!=`object`||!n||!Object.hasOwn(n,`scientificViewers`))return!1;let r=n.scientificViewers;if(typeof r!=`object`||!r)throw Error(`The native Structure viewer bootstrap could not be authenticated.`);let i=r,a=i.attachment,o=i.effectiveCapabilities;if(i.protocolVersion!==1||i.familyScopedChannels!==!0||i.processIsolation!==`family-process`||i.binaryTransfer!==`bounded-process-ipc`&&i.binaryTransfer!==`message-port`||typeof a!=`object`||!a||typeof o!=`object`||!o)throw Error(`The native Structure viewer bootstrap could not be authenticated.`);let s=a,c=o;if(s.family!==`structure`||c.family!==`structure`||typeof s.logicalSessionId!=`string`||s.logicalSessionId.length===0||c.logicalSessionId!==s.logicalSessionId||typeof s.backendInstanceId!=`string`||s.backendInstanceId.length===0||c.backendInstanceId!==s.backendInstanceId||!Number.isSafeInteger(s.backendGeneration)||c.backendGeneration!==s.backendGeneration)throw Error(`The native Structure viewer bootstrap could not be authenticated.`);return!0}async function be({callTool:e,embeddedBundle:t,hostCapabilities:n,hostContext:r,signal:i}){let a=ye({hostCapabilities:n,hostContext:r})||t!=null,o=a?`load-embedded-viewer-bundle`:`load-proxied-viewer-bundle`,s=performance.now();se({action:o,durationMs:0,operation:`viewer-load`,phase:`loading`,status:`started`});try{let n=a?await xe(t,{signal:i}):await Se(e,{signal:i});return se({action:o,byteLength:n.byteLength,durationMs:Math.max(0,performance.now()-s),operation:`viewer-load`,phase:`complete`,status:`completed`}),n}catch(e){let t=i?.aborted===!0,n=a?`contract`:`transport`;throw se({action:o,durationMs:Math.max(0,performance.now()-s),errorCategory:t?`cancelled`:n,operation:`viewer-load`,phase:`complete`,status:t?`cancelled`:`failed`}),e}}async function xe(e,{maxBundleBytes:t=p.bootstrap.maxBundleBytes,signal:n}={}){if(!Number.isSafeInteger(t)||t<5||t>p.bootstrap.maxBundleBytes)throw Error(`Trusted Structure viewer bundle limits were invalid.`);if(typeof e!=`object`||!e||!(`byteLength`in e)||typeof e.byteLength!=`number`||!Number.isSafeInteger(e.byteLength)||e.byteLength<5||e.byteLength>t||!(`data`in e)||typeof e.data!=`string`||e.data.length!==ke(e.byteLength)||!(`sha256`in e)||typeof e.sha256!=`string`||!/^[0-9a-f]{64}$/u.test(e.sha256))throw Error(`Trusted Structure viewer bundle metadata was invalid.`);me(n);let r=je(e.data);if(r.byteLength!==e.byteLength)throw Error(`Trusted Structure viewer bundle was truncated.`);if(me(n),await Me(r)!==e.sha256)throw Error(`Trusted Structure viewer bundle digest did not match.`);return me(n),r}async function Se(e,{maxBundleBytes:t=p.bootstrap.maxBundleBytes,maxConcurrentChunks:n=p.bootstrap.maxConcurrentChunks,maxRetries:r=p.bootstrap.maxRetries,retryPolicy:i,signal:a}={}){if(!Number.isSafeInteger(t)||t<5||t>p.bootstrap.maxBundleBytes||!Number.isInteger(n)||n<1||n>p.bootstrap.maxConcurrentChunks||!Number.isInteger(r)||r<0||r>p.bootstrap.maxRetries)throw Error(`Structure viewer bundle retrieval limits were invalid.`);let o=Ee(a),s=o.signal,c=new Te(n),l=De(Ae(await we(c,()=>e({arguments:{},name:te.getBundleInfo},{signal:s}),r,i,s)).structuredContent,t),u=Array(l.chunkCount),d=0,f=Array.from({length:Math.min(n,l.chunkCount)},async()=>{for(;d<l.chunkCount;){let t=d;d+=1,u[t]=await Ce(e,t,Math.min(p.bootstrap.maxChunkBytes,l.byteLength-t*p.bootstrap.maxChunkBytes),r,c,i,s)}});try{await Promise.all(f)}catch(e){throw o.abort(),await Promise.allSettled(f),e}me(s);let ee=new Uint8Array(l.byteLength),ne=0;for(let e of u){if(ne+e.byteLength>ee.byteLength)throw Error(`Structure viewer bundle chunks exceeded the declared size.`);ee.set(e,ne),ne+=e.byteLength}if(ne!==l.byteLength)throw Error(`Structure viewer bundle byte length did not match metadata.`);if(await Me(ee)!==l.sha256)throw Error(`Structure viewer bundle digest did not match metadata.`);return ee}async function Ce(e,t,n,r,i,a,o){let s=Oe(Ae(await we(i,()=>e({arguments:{index:t},name:te.getBundleChunk},{signal:o}),r,a,o)).structuredContent,t,n),c=je(s.data);if(c.byteLength!==s.byteLength)throw Error(`Structure viewer bundle chunk ${t} was truncated.`);if(await Me(c)!==s.sha256)throw Error(`Structure viewer bundle chunk ${t} digest did not match.`);return c}async function we(e,t,n,r,i){return await de(async()=>await e.run(async()=>{try{return await t()}catch(t){throw fe(t)&&e.fallBackToSequential(),t}},i),{policy:{...r,maxAttempts:n+1},signal:i})}var Te=class{active=0;limit;pending=[];constructor(e){this.limit=e}fallBackToSequential(){this.limit=1}async run(e,t){await this.acquire(t);try{return me(t),await e()}finally{--this.active,this.dispatch()}}async acquire(e){if(me(e),this.active<this.limit){this.active+=1;return}await new Promise((t,n)=>{let r,i=()=>{let t=this.pending.indexOf(r);t>=0&&this.pending.splice(t,1);try{me(e)}catch(e){n(e)}};r={onAbort:i,reject:n,resolve:t,signal:e},e?.addEventListener(`abort`,i,{once:!0}),this.pending.push(r),e?.aborted&&i()})}dispatch(){for(;this.active<this.limit&&this.pending.length>0;){let e=this.pending.shift();if(e==null)return;if(e.signal?.removeEventListener(`abort`,e.onAbort),e.signal?.aborted){try{me(e.signal)}catch(t){e.reject(t)}continue}this.active+=1,e.resolve()}}};function Ee(e){let t=new AbortController;return e?.aborted?t.abort(e.reason):e?.addEventListener(`abort`,()=>t.abort(e.reason),{once:!0}),t}function De(e,t=p.bootstrap.maxBundleBytes){if(typeof e!=`object`||!e||!(`byteLength`in e)||typeof e.byteLength!=`number`||!Number.isSafeInteger(e.byteLength)||e.byteLength<5||e.byteLength>t||!(`chunkCount`in e)||typeof e.chunkCount!=`number`||!Number.isInteger(e.chunkCount)||e.chunkCount<1||e.chunkCount>p.bootstrap.maxChunks||e.chunkCount!==Math.ceil(e.byteLength/p.bootstrap.maxChunkBytes)||!(`encoding`in e)||e.encoding!==`viewer-bundle-v2+base64`||!(`sha256`in e)||typeof e.sha256!=`string`||!/^[0-9a-f]{64}$/u.test(e.sha256))throw Error(`Structure viewer bundle metadata was invalid.`);return e}function Oe(e,t,n){if(typeof e!=`object`||!e||!(`data`in e)||typeof e.data!=`string`||!(`index`in e)||e.index!==t||!(`byteLength`in e)||typeof e.byteLength!=`number`||!Number.isSafeInteger(e.byteLength)||e.byteLength!==n||e.byteLength>p.bootstrap.maxChunkBytes||e.data.length!==ke(e.byteLength)||!(`sha256`in e)||typeof e.sha256!=`string`||!/^[0-9a-f]{64}$/u.test(e.sha256))throw Error(`Structure viewer bundle chunk ${t} was invalid.`);return e}function ke(e){return Math.ceil(e/3)*4}function Ae(e){if(typeof e!=`object`||!e)throw Error(`Structure viewer bundle tool returned an invalid result.`);return e}function je(e){let t;try{t=atob(e)}catch{throw Error(`Structure viewer bundle chunk was not valid base64.`)}let n=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return n}async function Me(e){let t=e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Uint8Array.from(e),n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n),e=>e.toString(16).padStart(2,`0`)).join(``)}async function Ne({callTool:e,connect:t,decompress:n=Fe,embeddedBundle:r,getHost:i,signal:a}){a.throwIfAborted();let o=Promise.resolve().then(t).then(()=>{a.throwIfAborted();let e=i();return ye(e),e});if(r==null)return await Ie(Pe(await Ie(be({callTool:e,embeddedBundle:r,...await Ie(o,a),signal:a}),a),n,a),a);let s=be({callTool:e,embeddedBundle:r,hostCapabilities:void 0,hostContext:void 0,signal:a}).then(e=>Pe(e,n,a)),[,c]=await Ie(Promise.all([o,s]),a);return a.throwIfAborted(),c}async function Pe(e,t,n){if(n.throwIfAborted(),e.byteLength<5)throw Error(`Structure viewer bundle was truncated.`);let r=new DataView(e.buffer,e.byteOffset,4).getUint32(0),i=4+r;if(r<1||i>=e.byteLength)throw Error(`Structure viewer bundle header was invalid.`);let[a,o]=await Promise.all([t(e.subarray(4,i)),t(e.subarray(i))]);return n.throwIfAborted(),{appJavaScript:o,styles:a}}async function Fe(e){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),n=new Blob([t]).stream().pipeThrough(new DecompressionStream(`gzip`));return await new Response(n).arrayBuffer()}async function Ie(e,t){return t.throwIfAborted(),await new Promise((n,r)=>{let i=()=>{t.removeEventListener(`abort`,i),r(t.reason)};t.addEventListener(`abort`,i,{once:!0}),e.then(e=>{t.removeEventListener(`abort`,i),n(e)},e=>{t.removeEventListener(`abort`,i),r(e)})})}var Le=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu,Re=/^viewer-file:\/\/structure-viewer\/opened\/([0-9a-f-]+)$/iu,ze=/^codex-resource:\/\/([0-9a-f-]+)$/iu,Be=/^[^\0/\\]+\.(?:pdb|cif|mmcif|mol|sdf|mol2|pqr|pdbqt|gro|xyz)$/iu;function Ve(e,t,{allowClaimedChatOwnership:n=!1}={}){try{if(e==null||e.app!==t||e.fallbackRegistrationAttempted!==!1||e.fallbackRegistrationClosed!==!1&&(!n||e.fallbackRegistrationClosed!==!0)||!Le.test(e.registrationId)||e.events.length!==1&&e.events.length!==2)return null;let r=e.events.length===2?e.events[0]:void 0;if(r!=null&&r.kind!==`input`)return null;let i=e.events.at(-1);if(i?.kind!==`result`)return null;let a=i.value;if(!Ue(a)||a.isError===!0)return null;let o=a.structuredContent;if(!Ue(o))return null;let s=r?.value,c=s?.arguments;if(s!=null&&!Ue(c))return null;let l=Ue(c)?c.file:void 0;if(l!=null){let t=o.file;if(s==null||e.fallbackRegistrationClosed!==!1||!Ue(l)||!Ue(t)||Object.hasOwn(o,`viewerOpen`)||Object.hasOwn(o,`viewerSessionId`))return null;let n=l.name,r=l.resourceUri;if(typeof n!=`string`||n!==n.trim()||!Be.test(n)||typeof r!=`string`||t.name!==n||t.resourceUri!==r)return null;let i=ze.exec(r);return i?.[1]==null||!Le.test(i[1])?null:{entrypoint:`native`,fileName:n,input:s,registrationId:e.registrationId,result:a,uri:r}}let u=a._meta;if(!Ue(u))return null;let d=o.viewerOpen,f=u[`openai/viewerFile`],ee=u[`openai/viewerPresentation`];if(!Ue(d)||!Ue(f)||!Ue(ee))return null;let te=f.primaryFile;if(!Ue(te))return null;let ne=te.name,re=d.intentId,ie=ee.presentationToken,ae=o.viewerSessionId,oe=te.uri;if(o.viewerCommandRevision!==0||o.relatedDataAvailable!==void 0&&o.relatedDataAvailable!==!0||o.workspacePublicationAvailable!==void 0&&o.workspacePublicationAvailable!==!0||d.disposition!==`created`||d.entrypoint!==`chat`||d.intentSessionCount!==1||d.presentation!==`owner`||typeof d.identityScope!=`string`||![`conversation`,`intent`,`turn`].includes(d.identityScope)||d.mountState!==void 0&&d.mountState!==`presentation-issued`||typeof ne!=`string`||ne!==ne.trim()||!Be.test(ne)||typeof re!=`string`||!Le.test(re)||typeof ie!=`string`||!Le.test(ie)||d.presentationToken!==void 0&&d.presentationToken!==ie||typeof ae!=`string`||!Le.test(ae)||typeof oe!=`string`||c!=null&&(c.openIntentId!==re||c.presentation!==void 0&&c.presentation!==`full`&&c.presentation!==`inline`||(typeof c.path==`string`&&c.path.trim().length>0)==(c.exampleId===`gfp-1ema`)))return null;let p=Re.exec(oe);return p?.[1]==null||!Le.test(p[1])?null:{entrypoint:`chat`,fileName:ne,...s==null?{}:{input:s},intentId:re,presentationToken:ie,registrationId:e.registrationId,result:a,sessionId:ae,uri:oe}}catch{return null}}function He(e,t){return e.entrypoint!==t.entrypoint||e.result!==t.result||e.input!==t.input||e.fileName!==t.fileName||e.registrationId!==t.registrationId||e.uri!==t.uri?!1:e.entrypoint===`native`||t.entrypoint===`chat`&&e.intentId===t.intentId&&e.presentationToken===t.presentationToken&&e.sessionId===t.sessionId}function Ue(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function m(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}function h(e){return e&&Object.assign(Je,e),Je}var We,Ge,Ke,qe,Je,Ye=t((()=>{We=Object.freeze({status:`aborted`}),Ge=Symbol(`zod_brand`),Ke=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},qe=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},Je={}})),Xe=n({BIGINT_FORMAT_RANGES:()=>$t,Class:()=>en,NUMBER_FORMAT_RANGES:()=>Qt,aborted:()=>Mt,allowsEval:()=>Jt,assert:()=>tt,assertEqual:()=>Ze,assertIs:()=>$e,assertNever:()=>et,assertNotEqual:()=>Qe,assignProp:()=>lt,base64ToUint8Array:()=>Bt,base64urlToUint8Array:()=>Ht,cached:()=>it,captureStackTrace:()=>qt,cleanEnum:()=>zt,cleanRegex:()=>ot,clone:()=>St,cloneDef:()=>dt,createTransparentProxy:()=>Ct,defineLazy:()=>_,esc:()=>ht,escapeRegex:()=>xt,extend:()=>Dt,finalizeIssue:()=>Ft,floatSafeRemainder:()=>st,getElementAtPath:()=>ft,getEnumValues:()=>nt,getLengthableOrigin:()=>Lt,getParsedType:()=>Yt,getSizableOrigin:()=>It,hexToUint8Array:()=>Wt,isObject:()=>_t,isPlainObject:()=>vt,issue:()=>Rt,joinValues:()=>g,jsonStringifyReplacer:()=>rt,merge:()=>kt,mergeDefs:()=>ut,normalizeParams:()=>v,nullish:()=>at,numKeys:()=>bt,objectClone:()=>ct,omit:()=>Et,optionalKeys:()=>wt,parsedType:()=>b,partial:()=>At,pick:()=>Tt,prefixIssues:()=>Nt,primitiveTypes:()=>Zt,promiseAllObject:()=>pt,propertyKeyTypes:()=>Xt,randomString:()=>mt,required:()=>jt,safeExtend:()=>Ot,shallowClone:()=>yt,slugify:()=>gt,stringifyPrimitive:()=>y,uint8ArrayToBase64:()=>Vt,uint8ArrayToBase64url:()=>Ut,uint8ArrayToHex:()=>Gt,unwrapMessage:()=>Pt});function Ze(e){return e}function Qe(e){return e}function $e(e){}function et(e){throw Error(`Unexpected value in exhaustive check`)}function tt(e){}function nt(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function g(e,t=`|`){return e.map(e=>y(e)).join(t)}function rt(e,t){return typeof t==`bigint`?t.toString():t}function it(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function at(e){return e==null}function ot(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function st(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}function _(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Kt)return r===void 0&&(r=Kt,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ct(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function lt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ut(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function dt(e){return ut(e._zod.def)}function ft(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function pt(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function mt(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function ht(e){return JSON.stringify(e)}function gt(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function _t(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function vt(e){if(_t(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(_t(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function yt(e){return vt(e)?{...e}:Array.isArray(e)?[...e]:e}function bt(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function xt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function St(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function v(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Ct(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function y(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function wt(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function Tt(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return St(e,ut(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return lt(this,`shape`,e),e},checks:[]}))}function Et(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return St(e,ut(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return lt(this,`shape`,r),r},checks:[]}))}function Dt(e,t){if(!vt(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return St(e,ut(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return lt(this,`shape`,n),n},checks:[]}))}function Ot(e,t){if(!vt(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return St(e,ut(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return lt(this,`shape`,n),n}}))}function kt(e,t){return St(e,ut(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return lt(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function At(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return St(t,ut(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return lt(this,`shape`,i),i},checks:[]}))}function jt(e,t,n){return St(t,ut(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return lt(this,`shape`,i),i}}))}function Mt(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Nt(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Pt(e){return typeof e==`string`?e:e?.message}function Ft(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Pt(e.inst?._zod.def?.error?.(e))??Pt(t?.error?.(e))??Pt(n.customError?.(e))??Pt(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function It(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function Lt(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function b(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Rt(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function zt(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Bt(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Vt(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Ht(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return Bt(t+`=`.repeat((4-t.length%4)%4))}function Ut(e){return Vt(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function Wt(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function Gt(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,x=t((()=>{Kt=Symbol(`evaluating`),qt=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Jt=it(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Yt=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Xt=new Set([`string`,`number`,`symbol`]),Zt=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),Qt={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},$t={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},en=class{constructor(...e){}}}));function tn(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function nn(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}function rn(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},s.path));else if(s.code===`invalid_key`)r({issues:s.issues},s.path);else if(s.code===`invalid_element`)r({issues:s.issues},s.path);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function an(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function on(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${an(e.path)}`);return t.join(` +var e=Object.defineProperty,t=(e,t)=>()=>(e&&(t=e(e=0)),t),n=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},r=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function i(e){return JSON.stringify(a(e))}function a(e){return Array.isArray(e)?e.map(a):typeof e!=`object`||!e?e:Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:e>t?1:0).map(([e,t])=>[e,a(t)]))}function o(e){if(!l(e))return[];try{let t=[];l(e.toolInput)&&t.push({kind:`input`,value:{arguments:e.toolInput}});let n=l(e.toolOutput)?e.toolOutput:null,r=l(e.toolResponseMetadata)?e.toolResponseMetadata:null;return(n!=null||r!=null)&&t.push({kind:`result`,value:{content:[],...n==null?{}:{structuredContent:n},...r==null?{}:{_meta:r}}}),t}catch{return[]}}function s(e,t){for(let n=e.length-1;n>=0;--n){let r=e[n];if(!(r==null||r.kind!==t.kind)){if(c(r,t))return!1;break}}return e.push(t),!0}function c(e,t){if(e.kind!==t.kind)return!1;try{if(i(e.value)===i(t.value))return!0;if(e.kind!==`result`||t.kind!==`result`)return!1;let n=e.value,r=t.value,a=l(n.structuredContent)?n.structuredContent.viewerOpen:void 0,o=n._meta,s=l(o)?o[`openai/viewerPresentation`]:void 0,c=l(o)?o[`openai/viewerFile`]:void 0,u=l(c)?c.primaryFile:void 0,d=r.content,f=Array.isArray(d)?d[0]:void 0;return n.isError===!0||r.isError===!0||!l(a)||a.disposition!==`created`||a.entrypoint!==`chat`||a.presentation!==`owner`||!l(s)||typeof s.presentationToken!=`string`||!l(u)||typeof u.name!=`string`||typeof u.uri!=`string`||!Array.isArray(n.content)||n.content.length!==0||!Array.isArray(d)||d.length!==1||!l(f)||Object.keys(f).length!==2||f.type!==`text`||typeof f.text!=`string`||f.text.length===0?!1:i(n)===i({...r,content:[]})}catch{return!1}}function l(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}async function u(e,t){let n=e.startup;if(n==null)throw d(e),Error(`The Molecular Structure Viewer application did not report its startup.`);if(t.aborted)throw d(e,n),f(t);let r=()=>void 0,i=new Promise((e,n)=>{let i=()=>n(f(t));t.addEventListener(`abort`,i,{once:!0}),r=()=>t.removeEventListener(`abort`,i)});try{await Promise.race([n,i])}catch(t){throw d(e,n),t}finally{r()}}function d(e,t){if(t!=null&&e.startup!==t)return;let n=e.startup,r=e.startupCleanup;e.startupCleanup=void 0,e.startup=void 0,n?.catch(()=>void 0);try{r?.()}catch{}}function f(e){return e.reason??new DOMException(`The molecular viewer startup was cancelled.`,`AbortError`)}var ee={appName:`structure-viewer`,appVersion:`0.1.96`,molstarVersion:`5.11.0`,protocolVersion:`2026-01-26`},te={addStructure:`structure.add_structure`,alignStructures:`structure.align_structures`,analyze:`structure.analyze`,abortExportArtifactUpload:`structure.abort_export_artifact_upload`,abortRenderArtifactUpload:`structure.abort_render_artifact_upload`,applyScene:`structure.apply_scene`,appAssemblySymmetry:`structure.app_assembly_symmetry`,appBrowseRelatedData:`structure.app_browse_related_data`,appLoadPublicDensity:`structure.app_load_public_density`,appQualityAssessment:`structure.app_quality_assessment`,appSetAssemblySymmetry:`structure.app_set_assembly_symmetry`,appSetQualityAssessment:`structure.app_set_quality_assessment`,assemblySymmetry:`structure.assembly_symmetry`,appendExportArtifactChunk:`structure.append_export_artifact_chunk`,appendRenderArtifactChunk:`structure.append_render_artifact_chunk`,backgroundAssets:`structure.background_assets`,browseRelatedData:`structure.browse_related_data`,browseWorkspaceDestinations:`structure.browse_workspace_destinations`,beginExportArtifactUpload:`structure.begin_export_artifact_upload`,beginRenderArtifactUpload:`structure.begin_render_artifact_upload`,cancelRender:`structure.cancel_render`,claimRenderer:`structure.claim_renderer`,acknowledgeRendererHydrated:`structure.acknowledge_renderer_hydrated`,completeCommand:`structure.complete_viewer_command`,controlViewer:`structure.control_viewer`,createWorkspaceDestinationFolder:`structure.create_workspace_destination_folder`,discoverAssociatedProjects:`structure.discover_associated_projects`,discoverDensity:`structure.discover_density`,deleteScene:`structure.delete_scene`,deriveObject:`structure.derive_object`,export:`structure.export`,finishExportArtifactUpload:`structure.finish_export_artifact_upload`,finishRenderArtifactUpload:`structure.finish_render_artifact_upload`,getBundleChunk:`structure.get_viewer_bundle_chunk`,getBundleInfo:`structure.get_viewer_bundle_info`,getRenderJobControl:`structure.get_render_job_control`,getViewerCommandControl:`structure.get_viewer_command_control`,getRenderStatus:`structure.get_render_status`,getSourceInfo:`structure.get_source_info`,getState:`structure.get_state`,getContext:`structure.get_context`,registerContextSession:`structure.register_context_session`,waitForContextRequest:`structure.wait_for_context_request`,completeContextRequest:`structure.complete_context_request`,releaseContextSession:`structure.release_context_session`,listViewers:`structure.list_viewers`,getViewerStatus:`structure.get_viewer_status`,getProjectContext:`structure.get_project_context`,getLiveProjectContext:`structure.get_live_project_context`,listDocuments:`structure.list_documents`,readDocument:`structure.read_document`,searchDocument:`structure.search_document`,readSource:`structure.read_source`,listScenes:`structure.list_scenes`,listStructures:`structure.list_structures`,loadLiveProjectCheckpoint:`structure.load_live_project_checkpoint`,loadRelatedData:`structure.load_related_data`,loadBackground:`structure.load_background`,loadPublicDensity:`structure.load_public_density`,loadData:`structure.load_data`,loadScene:`structure.load_scene`,measure:`structure.measure`,manageGuides:`structure.manage_guides`,open:`structure.open`,openFromChat:`structure.open_from_chat`,openInSidePane:`structure.open_in_side_pane`,preflightExportArtifact:`structure.preflight_export_artifact`,preflightRenderArtifact:`structure.preflight_render_artifact`,planWorkspaceDestination:`structure.plan_workspace_destination`,project:`structure.project`,molecularAction:`structure.molecular_action`,molecularActions:`structure.molecular_actions`,query:`structure.query`,qualityAssessment:`structure.quality_assessment`,readSourceRange:`structure.read_source_range`,redo:`structure.redo`,resolveProject:`structure.resolve_project`,resolveLiveProjectCheckpoint:`structure.resolve_live_project_checkpoint`,reconcileLiveProjectCommand:`structure.reconcile_live_project_command`,releaseLiveProjectResources:`structure.release_live_project_resources`,registerSession:`structure.register_viewer_session`,restoreChatSession:`structure.restore_chat_viewer_session`,releaseSession:`structure.release_viewer_session`,releaseWorkspacePublication:`structure.release_workspace_publication`,releaseWorkspaceDestinationPlan:`structure.release_workspace_destination_plan`,removeStructure:`structure.remove_structure`,renderImage:`structure.render_image`,renderMovie:`structure.render_movie`,saveRenderArtifact:`structure.save_render_artifact`,saveLiveProjectCheckpoint:`structure.save_live_project_checkpoint`,saveScene:`structure.save_scene`,saveExportArtifact:`structure.save_export_artifact`,setSelection:`structure.set_selection`,searchMotif:`structure.search_motif`,setAssemblySymmetry:`structure.set_assembly_symmetry`,setQualityAssessment:`structure.set_quality_assessment`,setTrajectoryState:`structure.set_trajectory_state`,setObjectVisibility:`structure.set_object_visibility`,transformObject:`structure.transform_object`,undo:`structure.undo`,updateRenderJob:`structure.update_render_job`,validateRender:`structure.validate_render`,validateRenderer:`structure.validate_renderer`,waitForCommand:`structure.wait_for_viewer_command`},ne=280*1024,re=192*1024,ie=8*1024;function ae({proxyEnvelopeBytes:e=ne,protocolHeadroomBytes:t=ie,preferredBaselineBytes:n=re}={}){for(let[r,i]of Object.entries({preferredBaselineBytes:n,protocolHeadroomBytes:t,proxyEnvelopeBytes:e}))if(!Number.isSafeInteger(i)||i<0)throw Error(`${r} must be a non-negative safe integer.`);let r=oe(0),i=e-t-r;if(i<4||n<1)throw Error(`The artifact proxy envelope cannot hold one raw byte.`);let a=Math.floor(i/4)*3;return Math.min(n,a)}function oe(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Artifact chunk length must be a non-negative integer.`);let t=`ffffffff-ffff-4fff-bfff-ffffffffffff`,n=4*Math.ceil(e/3);return JSON.stringify({id:2**53-1,jsonrpc:`2.0`,method:`tools/call`,params:{arguments:{chunkIndex:2**53-1,dataBase64:`A`.repeat(n),publicationAuthorizationId:t,publicationCallerId:t,publicationCommandId:t,renderer:{generation:2**53-1,leaseId:t,mountId:t},sessionId:t,uploadId:t,uploadLeaseId:t},name:te.appendRenderArtifactChunk}}).length}var p={artifact:{maxActiveBytes:256*1024*1024,maxActiveDiskBytes:2*1024*1024*1024,maxActiveUploads:8,maxBufferedBytes:64*1024*1024,maxBytes:1*1024*1024*1024,maxChunkBytes:ae(),maxStreamingRetainedBytes:2*1024*1024,streamingMemoryReservationBytes:2*1024*1024,maxOneShotBytes:180*1024,proxyEnvelopeBytes:ne,diskSafetyReserveBytes:256*1024*1024,uploadTtlMs:15*6e4},bootstrap:{maxBundleBytes:32*1024*1024,maxChunkBytes:32766,maxChunks:2048,maxConcurrentChunks:4,maxRetries:2},bridge:{bulkRequestTimeoutMs:{interactive:3e4,object:12e4,render:15*6e4,wait:25e3}.render,proxyRetry:{baseDelayMs:100,jitterRatio:.25,maxAttempts:3,maxDelayMs:1e3},requestTimeoutMs:3e4},command:{maxPendingGlobal:256,maxPendingPerSession:16,maxRetainedResultsPerSession:128,maxSessions:128,maxWaitersGlobal:128,maxWaitersPerSession:8},context:{maxBytes:256*1024,maxTextBytes:16*1024},input:{maxSourceBytes:2**53-1,maxRangeBytes:256*1024,maxRenderedBytes:4*1024*1024,maxAtomPageAtoms:512,maxResourceReadBytes:128*1024*1024,maxExpandedBytes:128*1024*1024,maxBytes:128*1024*1024},analysis:{maxAtomIdsInState:1e5,maxCursorPageSize:500,maxResultRows:5e4,maxSavedScenes:64},render:{maxActiveGlobal:4,maxActivePerSession:1,maxRetainedJobs:100,progressIntervalMs:100,maxRenderLifetimeMs:480*6e4}};function se(e){typeof window>`u`||window.dispatchEvent(new CustomEvent(`structure-viewer-diagnostic`,{detail:{...e}}))}p.command.maxSessions;var ce=`[STRUCTURE_VIEWER_CHAT_RESOURCE_UNAVAILABLE]`;function le(e){if(!(e instanceof Error))return null;let t=e.message.indexOf(ce);return t<0?null:e.message.slice(t+ce.length).trim()||`The saved viewer file reference could not be read.`}var ue=p.bridge.proxyRetry;async function de(e,{onRetry:t,policy:n,preserveErrorAfterAbort:r=!1,random:i=Math.random,signal:a,sleep:o=he}={}){let s=_e({...ue,...n});for(let n=1;n<=s.maxAttempts;n+=1){me(a);try{return await e(n)}catch(e){if(n===s.maxAttempts||!fe(e)||r&&a?.aborted)throw e;let c=ge(s,n,i);t?.({attempt:n,delayMs:c,error:e,nextAttempt:n+1}),await o(c,a)}}throw Error(`MCP proxy retry loop ended unexpectedly.`)}function fe(e){return!(e instanceof Error)||pe(e)||le(e)!=null?!1:/MCP proxy request failed|proxy (?:overloaded|unavailable)|timed out|disconnected|connection (?:closed|lost)|network(?: request)? failed|temporarily unavailable/iu.test(e.message)}function pe(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`}function me(e){if(e?.aborted)throw e.reason instanceof Error?e.reason:ve()}async function he(e,t){me(t),await new Promise((n,r)=>{let i=()=>{clearTimeout(a),t?.removeEventListener(`abort`,i),r(t?.reason instanceof Error?t.reason:ve())},a=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},e);t?.addEventListener(`abort`,i,{once:!0}),t?.aborted&&i()})}function ge(e,t,n){let r=Math.min(e.maxDelayMs,e.baseDelayMs*2**(t-1)),i=Math.min(1,Math.max(0,n()));return Math.round(r*(1-e.jitterRatio*i))}function _e(e){if(!Number.isInteger(e.maxAttempts)||e.maxAttempts<1||!Number.isFinite(e.baseDelayMs)||e.baseDelayMs<0||!Number.isFinite(e.maxDelayMs)||e.maxDelayMs<e.baseDelayMs||!Number.isFinite(e.jitterRatio)||e.jitterRatio<0||e.jitterRatio>1)throw Error(`MCP proxy retry policy was invalid.`);return e}function ve(){let e=Error(`MCP request aborted.`);return e.name=`AbortError`,e}function ye({hostCapabilities:e,hostContext:t}){let n=typeof t==`object`&&t&&Object.hasOwn(t,`scientificViewers`)?t:e;if(typeof n!=`object`||!n||!Object.hasOwn(n,`scientificViewers`))return!1;let r=n.scientificViewers;if(typeof r!=`object`||!r)throw Error(`The native Structure viewer bootstrap could not be authenticated.`);let i=r,a=i.attachment,o=i.effectiveCapabilities;if(i.protocolVersion!==1||i.familyScopedChannels!==!0||i.processIsolation!==`family-process`||i.binaryTransfer!==`bounded-process-ipc`&&i.binaryTransfer!==`message-port`||typeof a!=`object`||!a||typeof o!=`object`||!o)throw Error(`The native Structure viewer bootstrap could not be authenticated.`);let s=a,c=o;if(s.family!==`structure`||c.family!==`structure`||typeof s.logicalSessionId!=`string`||s.logicalSessionId.length===0||c.logicalSessionId!==s.logicalSessionId||typeof s.backendInstanceId!=`string`||s.backendInstanceId.length===0||c.backendInstanceId!==s.backendInstanceId||!Number.isSafeInteger(s.backendGeneration)||c.backendGeneration!==s.backendGeneration)throw Error(`The native Structure viewer bootstrap could not be authenticated.`);return!0}async function be({callTool:e,embeddedBundle:t,hostCapabilities:n,hostContext:r,signal:i}){let a=ye({hostCapabilities:n,hostContext:r})||t!=null,o=a?`load-embedded-viewer-bundle`:`load-proxied-viewer-bundle`,s=performance.now();se({action:o,durationMs:0,operation:`viewer-load`,phase:`loading`,status:`started`});try{let n=a?await xe(t,{signal:i}):await Se(e,{signal:i});return se({action:o,byteLength:n.byteLength,durationMs:Math.max(0,performance.now()-s),operation:`viewer-load`,phase:`complete`,status:`completed`}),n}catch(e){let t=i?.aborted===!0,n=a?`contract`:`transport`;throw se({action:o,durationMs:Math.max(0,performance.now()-s),errorCategory:t?`cancelled`:n,operation:`viewer-load`,phase:`complete`,status:t?`cancelled`:`failed`}),e}}async function xe(e,{maxBundleBytes:t=p.bootstrap.maxBundleBytes,signal:n}={}){if(!Number.isSafeInteger(t)||t<5||t>p.bootstrap.maxBundleBytes)throw Error(`Trusted Structure viewer bundle limits were invalid.`);if(typeof e!=`object`||!e||!(`byteLength`in e)||typeof e.byteLength!=`number`||!Number.isSafeInteger(e.byteLength)||e.byteLength<5||e.byteLength>t||!(`data`in e)||typeof e.data!=`string`||e.data.length!==ke(e.byteLength)||!(`sha256`in e)||typeof e.sha256!=`string`||!/^[0-9a-f]{64}$/u.test(e.sha256))throw Error(`Trusted Structure viewer bundle metadata was invalid.`);me(n);let r=je(e.data);if(r.byteLength!==e.byteLength)throw Error(`Trusted Structure viewer bundle was truncated.`);if(me(n),await Me(r)!==e.sha256)throw Error(`Trusted Structure viewer bundle digest did not match.`);return me(n),r}async function Se(e,{maxBundleBytes:t=p.bootstrap.maxBundleBytes,maxConcurrentChunks:n=p.bootstrap.maxConcurrentChunks,maxRetries:r=p.bootstrap.maxRetries,retryPolicy:i,signal:a}={}){if(!Number.isSafeInteger(t)||t<5||t>p.bootstrap.maxBundleBytes||!Number.isInteger(n)||n<1||n>p.bootstrap.maxConcurrentChunks||!Number.isInteger(r)||r<0||r>p.bootstrap.maxRetries)throw Error(`Structure viewer bundle retrieval limits were invalid.`);let o=Ee(a),s=o.signal,c=new Te(n),l=De(Ae(await we(c,()=>e({arguments:{},name:te.getBundleInfo},{signal:s}),r,i,s)).structuredContent,t),u=Array(l.chunkCount),d=0,f=Array.from({length:Math.min(n,l.chunkCount)},async()=>{for(;d<l.chunkCount;){let t=d;d+=1,u[t]=await Ce(e,t,Math.min(p.bootstrap.maxChunkBytes,l.byteLength-t*p.bootstrap.maxChunkBytes),r,c,i,s)}});try{await Promise.all(f)}catch(e){throw o.abort(),await Promise.allSettled(f),e}me(s);let ee=new Uint8Array(l.byteLength),ne=0;for(let e of u){if(ne+e.byteLength>ee.byteLength)throw Error(`Structure viewer bundle chunks exceeded the declared size.`);ee.set(e,ne),ne+=e.byteLength}if(ne!==l.byteLength)throw Error(`Structure viewer bundle byte length did not match metadata.`);if(await Me(ee)!==l.sha256)throw Error(`Structure viewer bundle digest did not match metadata.`);return ee}async function Ce(e,t,n,r,i,a,o){let s=Oe(Ae(await we(i,()=>e({arguments:{index:t},name:te.getBundleChunk},{signal:o}),r,a,o)).structuredContent,t,n),c=je(s.data);if(c.byteLength!==s.byteLength)throw Error(`Structure viewer bundle chunk ${t} was truncated.`);if(await Me(c)!==s.sha256)throw Error(`Structure viewer bundle chunk ${t} digest did not match.`);return c}async function we(e,t,n,r,i){return await de(async()=>await e.run(async()=>{try{return await t()}catch(t){throw fe(t)&&e.fallBackToSequential(),t}},i),{policy:{...r,maxAttempts:n+1},signal:i})}var Te=class{active=0;limit;pending=[];constructor(e){this.limit=e}fallBackToSequential(){this.limit=1}async run(e,t){await this.acquire(t);try{return me(t),await e()}finally{--this.active,this.dispatch()}}async acquire(e){if(me(e),this.active<this.limit){this.active+=1;return}await new Promise((t,n)=>{let r,i=()=>{let t=this.pending.indexOf(r);t>=0&&this.pending.splice(t,1);try{me(e)}catch(e){n(e)}};r={onAbort:i,reject:n,resolve:t,signal:e},e?.addEventListener(`abort`,i,{once:!0}),this.pending.push(r),e?.aborted&&i()})}dispatch(){for(;this.active<this.limit&&this.pending.length>0;){let e=this.pending.shift();if(e==null)return;if(e.signal?.removeEventListener(`abort`,e.onAbort),e.signal?.aborted){try{me(e.signal)}catch(t){e.reject(t)}continue}this.active+=1,e.resolve()}}};function Ee(e){let t=new AbortController;return e?.aborted?t.abort(e.reason):e?.addEventListener(`abort`,()=>t.abort(e.reason),{once:!0}),t}function De(e,t=p.bootstrap.maxBundleBytes){if(typeof e!=`object`||!e||!(`byteLength`in e)||typeof e.byteLength!=`number`||!Number.isSafeInteger(e.byteLength)||e.byteLength<5||e.byteLength>t||!(`chunkCount`in e)||typeof e.chunkCount!=`number`||!Number.isInteger(e.chunkCount)||e.chunkCount<1||e.chunkCount>p.bootstrap.maxChunks||e.chunkCount!==Math.ceil(e.byteLength/p.bootstrap.maxChunkBytes)||!(`encoding`in e)||e.encoding!==`viewer-bundle-v2+base64`||!(`sha256`in e)||typeof e.sha256!=`string`||!/^[0-9a-f]{64}$/u.test(e.sha256))throw Error(`Structure viewer bundle metadata was invalid.`);return e}function Oe(e,t,n){if(typeof e!=`object`||!e||!(`data`in e)||typeof e.data!=`string`||!(`index`in e)||e.index!==t||!(`byteLength`in e)||typeof e.byteLength!=`number`||!Number.isSafeInteger(e.byteLength)||e.byteLength!==n||e.byteLength>p.bootstrap.maxChunkBytes||e.data.length!==ke(e.byteLength)||!(`sha256`in e)||typeof e.sha256!=`string`||!/^[0-9a-f]{64}$/u.test(e.sha256))throw Error(`Structure viewer bundle chunk ${t} was invalid.`);return e}function ke(e){return Math.ceil(e/3)*4}function Ae(e){if(typeof e!=`object`||!e)throw Error(`Structure viewer bundle tool returned an invalid result.`);return e}function je(e){let t;try{t=atob(e)}catch{throw Error(`Structure viewer bundle chunk was not valid base64.`)}let n=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return n}async function Me(e){let t=e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Uint8Array.from(e),n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n),e=>e.toString(16).padStart(2,`0`)).join(``)}async function Ne({callTool:e,connect:t,decompress:n=Fe,embeddedBundle:r,getHost:i,signal:a}){a.throwIfAborted();let o=Promise.resolve().then(t).then(()=>{a.throwIfAborted();let e=i();return ye(e),e});if(r==null)return await Ie(Pe(await Ie(be({callTool:e,embeddedBundle:r,...await Ie(o,a),signal:a}),a),n,a),a);let s=be({callTool:e,embeddedBundle:r,hostCapabilities:void 0,hostContext:void 0,signal:a}).then(e=>Pe(e,n,a)),[,c]=await Ie(Promise.all([o,s]),a);return a.throwIfAborted(),c}async function Pe(e,t,n){if(n.throwIfAborted(),e.byteLength<5)throw Error(`Structure viewer bundle was truncated.`);let r=new DataView(e.buffer,e.byteOffset,4).getUint32(0),i=4+r;if(r<1||i>=e.byteLength)throw Error(`Structure viewer bundle header was invalid.`);let[a,o]=await Promise.all([t(e.subarray(4,i)),t(e.subarray(i))]);return n.throwIfAborted(),{appJavaScript:o,styles:a}}async function Fe(e){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),n=new Blob([t]).stream().pipeThrough(new DecompressionStream(`gzip`));return await new Response(n).arrayBuffer()}async function Ie(e,t){return t.throwIfAborted(),await new Promise((n,r)=>{let i=()=>{t.removeEventListener(`abort`,i),r(t.reason)};t.addEventListener(`abort`,i,{once:!0}),e.then(e=>{t.removeEventListener(`abort`,i),n(e)},e=>{t.removeEventListener(`abort`,i),r(e)})})}var Le=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu,Re=/^viewer-file:\/\/structure-viewer\/opened\/([0-9a-f-]+)$/iu,ze=/^codex-resource:\/\/([0-9a-f-]+)$/iu,Be=/^[^\0/\\]+\.(?:pdb|cif|mmcif|mol|sdf|mol2|pqr|pdbqt|gro|xyz)$/iu;function Ve(e,t,{allowClaimedChatOwnership:n=!1}={}){try{if(e==null||e.app!==t||e.fallbackRegistrationAttempted!==!1||e.fallbackRegistrationClosed!==!1&&(!n||e.fallbackRegistrationClosed!==!0)||!Le.test(e.registrationId)||e.events.length!==1&&e.events.length!==2)return null;let r=e.events.length===2?e.events[0]:void 0;if(r!=null&&r.kind!==`input`)return null;let i=e.events.at(-1);if(i?.kind!==`result`)return null;let a=i.value;if(!Ue(a)||a.isError===!0)return null;let o=a.structuredContent;if(!Ue(o))return null;let s=r?.value,c=s?.arguments;if(s!=null&&!Ue(c))return null;let l=Ue(c)?c.file:void 0;if(l!=null){let t=o.file;if(s==null||e.fallbackRegistrationClosed!==!1||!Ue(l)||!Ue(t)||Object.hasOwn(o,`viewerOpen`)||Object.hasOwn(o,`viewerSessionId`))return null;let n=l.name,r=l.resourceUri;if(typeof n!=`string`||n!==n.trim()||!Be.test(n)||typeof r!=`string`||t.name!==n||t.resourceUri!==r)return null;let i=ze.exec(r);return i?.[1]==null||!Le.test(i[1])?null:{entrypoint:`native`,fileName:n,input:s,registrationId:e.registrationId,result:a,uri:r}}let u=a._meta;if(!Ue(u))return null;let d=o.viewerOpen,f=u[`openai/viewerFile`],ee=u[`openai/viewerPresentation`];if(!Ue(d)||!Ue(f)||!Ue(ee))return null;let te=f.primaryFile;if(!Ue(te))return null;let ne=te.name,re=d.intentId,ie=ee.presentationToken,ae=o.viewerSessionId,oe=te.uri;if(o.viewerCommandRevision!==0||o.relatedDataAvailable!==void 0&&o.relatedDataAvailable!==!0||o.workspacePublicationAvailable!==void 0&&o.workspacePublicationAvailable!==!0||d.disposition!==`created`||d.entrypoint!==`chat`||d.intentSessionCount!==1||d.presentation!==`owner`||typeof d.identityScope!=`string`||![`conversation`,`intent`,`turn`].includes(d.identityScope)||d.mountState!==void 0&&d.mountState!==`presentation-issued`||typeof ne!=`string`||ne!==ne.trim()||!Be.test(ne)||typeof re!=`string`||!Le.test(re)||typeof ie!=`string`||!Le.test(ie)||d.presentationToken!==void 0&&d.presentationToken!==ie||typeof ae!=`string`||!Le.test(ae)||typeof oe!=`string`||c!=null&&(c.openIntentId!==re||c.presentation!==void 0&&c.presentation!==`full`&&c.presentation!==`inline`||(typeof c.path==`string`&&c.path.trim().length>0)==(c.exampleId===`gfp-1ema`)))return null;let p=Re.exec(oe);return p?.[1]==null||!Le.test(p[1])?null:{entrypoint:`chat`,fileName:ne,...s==null?{}:{input:s},intentId:re,presentationToken:ie,registrationId:e.registrationId,result:a,sessionId:ae,uri:oe}}catch{return null}}function He(e,t){return e.entrypoint!==t.entrypoint||e.result!==t.result||e.input!==t.input||e.fileName!==t.fileName||e.registrationId!==t.registrationId||e.uri!==t.uri?!1:e.entrypoint===`native`||t.entrypoint===`chat`&&e.intentId===t.intentId&&e.presentationToken===t.presentationToken&&e.sessionId===t.sessionId}function Ue(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function m(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}function h(e){return e&&Object.assign(Je,e),Je}var We,Ge,Ke,qe,Je,Ye=t((()=>{We=Object.freeze({status:`aborted`}),Ge=Symbol(`zod_brand`),Ke=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},qe=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},Je={}})),Xe=n({BIGINT_FORMAT_RANGES:()=>$t,Class:()=>en,NUMBER_FORMAT_RANGES:()=>Qt,aborted:()=>Mt,allowsEval:()=>Jt,assert:()=>tt,assertEqual:()=>Ze,assertIs:()=>$e,assertNever:()=>et,assertNotEqual:()=>Qe,assignProp:()=>lt,base64ToUint8Array:()=>Bt,base64urlToUint8Array:()=>Ht,cached:()=>it,captureStackTrace:()=>qt,cleanEnum:()=>zt,cleanRegex:()=>ot,clone:()=>St,cloneDef:()=>dt,createTransparentProxy:()=>Ct,defineLazy:()=>_,esc:()=>ht,escapeRegex:()=>xt,extend:()=>Dt,finalizeIssue:()=>Ft,floatSafeRemainder:()=>st,getElementAtPath:()=>ft,getEnumValues:()=>nt,getLengthableOrigin:()=>Lt,getParsedType:()=>Yt,getSizableOrigin:()=>It,hexToUint8Array:()=>Wt,isObject:()=>_t,isPlainObject:()=>vt,issue:()=>Rt,joinValues:()=>g,jsonStringifyReplacer:()=>rt,merge:()=>kt,mergeDefs:()=>ut,normalizeParams:()=>v,nullish:()=>at,numKeys:()=>bt,objectClone:()=>ct,omit:()=>Et,optionalKeys:()=>wt,parsedType:()=>b,partial:()=>At,pick:()=>Tt,prefixIssues:()=>Nt,primitiveTypes:()=>Zt,promiseAllObject:()=>pt,propertyKeyTypes:()=>Xt,randomString:()=>mt,required:()=>jt,safeExtend:()=>Ot,shallowClone:()=>yt,slugify:()=>gt,stringifyPrimitive:()=>y,uint8ArrayToBase64:()=>Vt,uint8ArrayToBase64url:()=>Ut,uint8ArrayToHex:()=>Gt,unwrapMessage:()=>Pt});function Ze(e){return e}function Qe(e){return e}function $e(e){}function et(e){throw Error(`Unexpected value in exhaustive check`)}function tt(e){}function nt(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function g(e,t=`|`){return e.map(e=>y(e)).join(t)}function rt(e,t){return typeof t==`bigint`?t.toString():t}function it(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function at(e){return e==null}function ot(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function st(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}function _(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Kt)return r===void 0&&(r=Kt,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ct(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function lt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ut(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function dt(e){return ut(e._zod.def)}function ft(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function pt(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function mt(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function ht(e){return JSON.stringify(e)}function gt(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}function _t(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function vt(e){if(_t(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(_t(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function yt(e){return vt(e)?{...e}:Array.isArray(e)?[...e]:e}function bt(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function xt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function St(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function v(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Ct(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function y(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function wt(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function Tt(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return St(e,ut(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return lt(this,`shape`,e),e},checks:[]}))}function Et(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return St(e,ut(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return lt(this,`shape`,r),r},checks:[]}))}function Dt(e,t){if(!vt(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return St(e,ut(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return lt(this,`shape`,n),n},checks:[]}))}function Ot(e,t){if(!vt(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return St(e,ut(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return lt(this,`shape`,n),n}}))}function kt(e,t){return St(e,ut(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return lt(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function At(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return St(t,ut(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return lt(this,`shape`,i),i},checks:[]}))}function jt(e,t,n){return St(t,ut(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return lt(this,`shape`,i),i}}))}function Mt(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Nt(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Pt(e){return typeof e==`string`?e:e?.message}function Ft(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Pt(e.inst?._zod.def?.error?.(e))??Pt(t?.error?.(e))??Pt(n.customError?.(e))??Pt(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function It(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function Lt(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function b(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Rt(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function zt(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Bt(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Vt(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Ht(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return Bt(t+`=`.repeat((4-t.length%4)%4))}function Ut(e){return Vt(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function Wt(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function Gt(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,x=t((()=>{Kt=Symbol(`evaluating`),qt=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Jt=it(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Yt=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Xt=new Set([`string`,`number`,`symbol`]),Zt=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),Qt={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},$t={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},en=class{constructor(...e){}}}));function tn(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function nn(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}function rn(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},s.path));else if(s.code===`invalid_key`)r({issues:s.issues},s.path);else if(s.code===`invalid_element`)r({issues:s.issues},s.path);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function an(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function on(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${an(e.path)}`);return t.join(` `)}var sn,cn,S,ln=t((()=>{Ye(),x(),sn=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,rt,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},cn=m(`$ZodError`,sn),S=m(`$ZodError`,sn,{Parent:Error})})),un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn=t((()=>{Ye(),ln(),x(),un=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Ke;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ft(e,a,h())));throw qt(t,i?.callee),t}return o.value},dn=un(S),fn=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ft(e,a,h())));throw qt(t,i?.callee),t}return o.value},pn=fn(S),mn=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ke;return a.issues.length?{success:!1,error:new(e??cn)(a.issues.map(e=>Ft(e,i,h())))}:{success:!0,data:a.value}},hn=mn(S),gn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ft(e,i,h())))}:{success:!0,data:a.value}},_n=gn(S),vn=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return un(e)(t,n,i)},yn=vn(S),bn=e=>(t,n,r)=>un(e)(t,n,r),xn=bn(S),Sn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return fn(e)(t,n,i)},Cn=Sn(S),wn=e=>async(t,n,r)=>fn(e)(t,n,r),Tn=wn(S),En=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return mn(e)(t,n,i)},Dn=En(S),On=e=>(t,n,r)=>mn(e)(t,n,r),kn=On(S),An=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return gn(e)(t,n,i)},jn=An(S),Mn=e=>async(t,n,r)=>gn(e)(t,n,r),Nn=Mn(S)})),Fn=n({base64:()=>pr,base64url:()=>mr,bigint:()=>xr,boolean:()=>wr,browserEmail:()=>or,cidrv4:()=>dr,cidrv6:()=>fr,cuid:()=>Hn,cuid2:()=>Un,date:()=>yr,datetime:()=>zn,domain:()=>gr,duration:()=>Jn,e164:()=>_r,email:()=>tr,emoji:()=>In,extendedDuration:()=>Yn,guid:()=>Xn,hex:()=>kr,hostname:()=>hr,html5Email:()=>nr,idnEmail:()=>ar,integer:()=>Sr,ipv4:()=>cr,ipv6:()=>lr,ksuid:()=>Kn,lowercase:()=>Dr,mac:()=>ur,md5_base64:()=>jr,md5_base64url:()=>Mr,md5_hex:()=>Ar,nanoid:()=>qn,null:()=>Tr,number:()=>Cr,rfc5322Email:()=>rr,sha1_base64:()=>Pr,sha1_base64url:()=>Fr,sha1_hex:()=>Nr,sha256_base64:()=>Lr,sha256_base64url:()=>Rr,sha256_hex:()=>Ir,sha384_base64:()=>Br,sha384_base64url:()=>Vr,sha384_hex:()=>zr,sha512_base64:()=>Ur,sha512_base64url:()=>Wr,sha512_hex:()=>Hr,string:()=>br,time:()=>Rn,ulid:()=>Wn,undefined:()=>Er,unicodeEmail:()=>ir,uppercase:()=>Or,uuid:()=>Zn,uuid4:()=>Qn,uuid6:()=>$n,uuid7:()=>er,xid:()=>Gn});function In(){return new RegExp(sr,`u`)}function Ln(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Rn(e){return RegExp(`^${Ln(e)}$`)}function zn(e){let t=Ln({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${vr}T(?:${r})$`)}function Bn(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Vn(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr=t((()=>{x(),Hn=/^[cC][^\s-]{8,}$/,Un=/^[0-9a-z]+$/,Wn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Gn=/^[0-9a-vA-V]{20}$/,Kn=/^[A-Za-z0-9]{27}$/,qn=/^[a-zA-Z0-9_-]{21}$/,Jn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Yn=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Xn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Zn=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Qn=Zn(4),$n=Zn(6),er=Zn(7),tr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,nr=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rr=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ir=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ar=ir,or=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,sr=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,cr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ur=e=>{let t=xt(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},dr=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,fr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,mr=/^[A-Za-z0-9_-]*$/,hr=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,gr=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,_r=/^\+[1-9]\d{6,14}$/,vr=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,yr=RegExp(`^${vr}$`),br=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},xr=/^-?\d+n?$/,Sr=/^-?\d+$/,Cr=/^-?\d+(?:\.\d+)?$/,wr=/^(?:true|false)$/i,Tr=/^null$/i,Er=/^undefined$/i,Dr=/^[^A-Z]*$/,Or=/^[^a-z]*$/,kr=/^[0-9a-fA-F]*$/,Ar=/^[0-9a-fA-F]{32}$/,jr=Bn(22,`==`),Mr=Vn(22),Nr=/^[0-9a-fA-F]{40}$/,Pr=Bn(27,`=`),Fr=Vn(27),Ir=/^[0-9a-fA-F]{64}$/,Lr=Bn(43,`=`),Rr=Vn(43),zr=/^[0-9a-fA-F]{96}$/,Br=Bn(64,``),Vr=Vn(64),Hr=/^[0-9a-fA-F]{128}$/,Ur=Bn(86,`==`),Wr=Vn(86)}));function Kr(e,t,n){e.issues.length&&t.issues.push(...Nt(n,e.issues))}var C,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi=t((()=>{Ye(),Gr(),x(),C=m(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),qr={number:`number`,bigint:`bigint`,object:`date`},Jr=m(`$ZodCheckLessThan`,(e,t)=>{C.init(e,t);let n=qr[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Yr=m(`$ZodCheckGreaterThan`,(e,t)=>{C.init(e,t);let n=qr[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xr=m(`$ZodCheckMultipleOf`,(e,t)=>{C.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):st(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Zr=m(`$ZodCheckNumberFormat`,(e,t)=>{C.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Qt[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Sr)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Qr=m(`$ZodCheckBigIntFormat`,(e,t)=>{C.init(e,t);let[n,r]=$t[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),$r=m(`$ZodCheckMaxSize`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!at(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:It(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ei=m(`$ZodCheckMinSize`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!at(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:It(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ti=m(`$ZodCheckSizeEquals`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!at(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:It(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ni=m(`$ZodCheckMaxLength`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!at(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Lt(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ri=m(`$ZodCheckMinLength`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!at(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Lt(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ii=m(`$ZodCheckLengthEquals`,(e,t)=>{var n;C.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!at(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Lt(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ai=m(`$ZodCheckStringFormat`,(e,t)=>{var n,r;C.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),oi=m(`$ZodCheckRegex`,(e,t)=>{ai.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),si=m(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Dr,ai.init(e,t)}),ci=m(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Or,ai.init(e,t)}),li=m(`$ZodCheckIncludes`,(e,t)=>{C.init(e,t);let n=xt(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ui=m(`$ZodCheckStartsWith`,(e,t)=>{C.init(e,t);let n=RegExp(`^${xt(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),di=m(`$ZodCheckEndsWith`,(e,t)=>{C.init(e,t);let n=RegExp(`.*${xt(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),fi=m(`$ZodCheckProperty`,(e,t)=>{C.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Kr(n,e,t.property));Kr(n,e,t.property)}}),pi=m(`$ZodCheckMimeType`,(e,t)=>{C.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),mi=m(`$ZodCheckOverwrite`,(e,t)=>{C.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),gi,_i=t((()=>{gi=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` `))}}})),vi,yi=t((()=>{vi={major:4,minor:3,patch:0}}));function bi(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function xi(e){if(!mr.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return bi(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function Si(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function Ci(e,t,n){e.issues.length&&t.issues.push(...Nt(n,e.issues)),t.value[n]=e.value}function wi(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Nt(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Ti(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=wt(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ei(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>wi(e,n,i,t,u))):wi(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function Di(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Mt(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ft(e,r,h())))}),t)}function Oi(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ft(e,r,h())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function ki(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(vt(e)&&vt(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ki(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ki(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ai(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Mt(e))return e;let r=ki(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}function ji(e,t,n){e.issues.length&&t.issues.push(...Nt(n,e.issues)),t.value[n]=e.value}function Mi(e,t,n,r,i,a,o){e.issues.length&&(Xt.has(typeof r)?n.issues.push(...Nt(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>Ft(e,o,h()))})),t.issues.length&&(Xt.has(typeof r)?n.issues.push(...Nt(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>Ft(e,o,h()))})),n.value.set(e.value,t.value)}function Ni(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Pi(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}function Fi(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Ii(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Li(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}function Ri(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>zi(e,r,t.out,n)):zi(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>zi(e,r,t.in,n)):zi(e,r,t.in,n)}}function zi(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function Bi(e){return e.value=Object.freeze(e.value),e}function Vi(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Rt(e))}}var w,Hi,T,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao=t((()=>{hi(),Ye(),_i(),Pn(),Gr(),x(),yi(),w=m(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=vi;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Mt(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new Ke;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Mt(e,t))});else{if(e.issues.length===t)continue;r||=Mt(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Mt(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new Ke;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new Ke;return o.then(e=>t(e,r,a))}return t(o,r,a)}}_(e,`~standard`,()=>({validate:t=>{try{let n=hn(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return _n(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Hi=m(`$ZodString`,(e,t)=>{w.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??br(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),T=m(`$ZodStringFormat`,(e,t)=>{ai.init(e,t),Hi.init(e,t)}),Ui=m(`$ZodGUID`,(e,t)=>{t.pattern??=Xn,T.init(e,t)}),Wi=m(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Zn(e)}else t.pattern??=Zn();T.init(e,t)}),Gi=m(`$ZodEmail`,(e,t)=>{t.pattern??=tr,T.init(e,t)}),Ki=m(`$ZodURL`,(e,t)=>{T.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),qi=m(`$ZodEmoji`,(e,t)=>{t.pattern??=In(),T.init(e,t)}),Ji=m(`$ZodNanoID`,(e,t)=>{t.pattern??=qn,T.init(e,t)}),Yi=m(`$ZodCUID`,(e,t)=>{t.pattern??=Hn,T.init(e,t)}),Xi=m(`$ZodCUID2`,(e,t)=>{t.pattern??=Un,T.init(e,t)}),Zi=m(`$ZodULID`,(e,t)=>{t.pattern??=Wn,T.init(e,t)}),Qi=m(`$ZodXID`,(e,t)=>{t.pattern??=Gn,T.init(e,t)}),$i=m(`$ZodKSUID`,(e,t)=>{t.pattern??=Kn,T.init(e,t)}),ea=m(`$ZodISODateTime`,(e,t)=>{t.pattern??=zn(t),T.init(e,t)}),ta=m(`$ZodISODate`,(e,t)=>{t.pattern??=yr,T.init(e,t)}),na=m(`$ZodISOTime`,(e,t)=>{t.pattern??=Rn(t),T.init(e,t)}),ra=m(`$ZodISODuration`,(e,t)=>{t.pattern??=Jn,T.init(e,t)}),ia=m(`$ZodIPv4`,(e,t)=>{t.pattern??=cr,T.init(e,t),e._zod.bag.format=`ipv4`}),aa=m(`$ZodIPv6`,(e,t)=>{t.pattern??=lr,T.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),oa=m(`$ZodMAC`,(e,t)=>{t.pattern??=ur(t.delimiter),T.init(e,t),e._zod.bag.format=`mac`}),sa=m(`$ZodCIDRv4`,(e,t)=>{t.pattern??=dr,T.init(e,t)}),ca=m(`$ZodCIDRv6`,(e,t)=>{t.pattern??=fr,T.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),la=m(`$ZodBase64`,(e,t)=>{t.pattern??=pr,T.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{bi(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),ua=m(`$ZodBase64URL`,(e,t)=>{t.pattern??=mr,T.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{xi(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),da=m(`$ZodE164`,(e,t)=>{t.pattern??=_r,T.init(e,t)}),fa=m(`$ZodJWT`,(e,t)=>{T.init(e,t),e._zod.check=n=>{Si(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),pa=m(`$ZodCustomStringFormat`,(e,t)=>{T.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),ma=m(`$ZodNumber`,(e,t)=>{w.init(e,t),e._zod.pattern=e._zod.bag.pattern??Cr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),ha=m(`$ZodNumberFormat`,(e,t)=>{Zr.init(e,t),ma.init(e,t)}),ga=m(`$ZodBoolean`,(e,t)=>{w.init(e,t),e._zod.pattern=wr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),_a=m(`$ZodBigInt`,(e,t)=>{w.init(e,t),e._zod.pattern=xr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),va=m(`$ZodBigIntFormat`,(e,t)=>{Qr.init(e,t),_a.init(e,t)}),ya=m(`$ZodSymbol`,(e,t)=>{w.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),ba=m(`$ZodUndefined`,(e,t)=>{w.init(e,t),e._zod.pattern=Er,e._zod.values=new Set([void 0]),e._zod.optin=`optional`,e._zod.optout=`optional`,e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),xa=m(`$ZodNull`,(e,t)=>{w.init(e,t),e._zod.pattern=Tr,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Sa=m(`$ZodAny`,(e,t)=>{w.init(e,t),e._zod.parse=e=>e}),Ca=m(`$ZodUnknown`,(e,t)=>{w.init(e,t),e._zod.parse=e=>e}),wa=m(`$ZodNever`,(e,t)=>{w.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Ta=m(`$ZodVoid`,(e,t)=>{w.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Ea=m(`$ZodDate`,(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Da=m(`$ZodArray`,(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Ci(t,n,e))):Ci(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Oa=m(`$ZodObject`,(e,t)=>{if(w.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=it(()=>Ti(t));_(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=_t,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>wi(n,t,e,s,r))):wi(i,t,e,s,r)}return i?Ei(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),ka=m(`$ZodObjectJIT`,(e,t)=>{Oa.init(e,t);let n=e._zod.parse,r=it(()=>Ti(t)),i=e=>{let t=new gi([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ht(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ht(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
Full technical diff · 8 changed fields
changed /files/.codex-plugin~1plugin.json/sha256
"6ae1a829cda5d649d66a3c4878dfab6781e8e6dcb3db2316e83fd96d84effc6c"
"0948f20fac6a57786383c76d56b3c658656bd1046b916f4501196bd3f6405d01"
changed /files/README.md/sha256
"7620095d02ef6890737b63fe4f28bddab16a8ebf646f965184ef2cde34d0e583"
"514635d4033800b9a2cfa55c5ae87e2e6e66acc05720a845829f241380c5042e"
changed /files/README.md/size
28937
28928
changed /files/dist~1server.mjs/sha256
"8cdca44267305c6b158f0b37f87af4ddb9769436c73dfae79bda7ab0c3bc82c7"
"e114f8a05eabafe36e28084a86a7f0df92b14a81e2508bf02a1657c3b45ec2ec"
changed /files/dist~1views~1bootstrap.js/sha256
"fcf34dacd1663564464a8e9957d91f1b12a24cae0c697f5aee6042baf8561178"
"13cf99bd00c32569a1231880d87995f94b8cf45fb554a7f33b14d2f5b9fd3ff5"
changed /files/dist~1views~1viewer.bundle/sha256
"91aa2815dc67ef3ee3d1c387ee15921e5e17be05019711937d496e25ebe18639"
"dd45ceaedba4b98e3631cefff025380ed391e89b237de550d46a0a9f228cebec"
changed /files/dist~1views~1viewer.bundle/size
1673259
1673739
changed /files/integrity.json/sha256
"0dc30ec18c6021d762503d3f0ccca05fb2bde458270fbf8a667c06dc01634a29"
"8555b68a8a9f73cbf030e752f3abb435e2e1defc49352d953b4fcc38a30700f1"
Full snapshot data
{
"files": {
".codex-plugin/plugin.json": {
"sha256": "0948f20fac6a57786383c76d56b3c658656bd1046b916f4501196bd3f6405d01",
"size": 2395
},
".mcp.json": {
"sha256": "5e8e4050fadc264674b5c2491901a091470f7405a737e7a026ceefe3d7415762",
"size": 403
},
"LICENSE": {
"sha256": "7de1e115d165f176e68f962acdb809b5ab8d8ae78d3981e0701392b2ac50c713",
"size": 1063
},
"README.md": {
"sha256": "514635d4033800b9a2cfa55c5ae87e2e6e66acc05720a845829f241380c5042e",
"size": 28928
},
"THIRD_PARTY_NOTICES.md": {
"sha256": "56feb768b9e53b179df0f1e6bc05232fb0a072a82187547596e4242fe529328a",
"size": 287573
},
"assets/icon.png": {
"sha256": "76e2d57dcf613c4b03cdb03bac705ea819df4dc388e73bb990b9639f2698599c",
"size": 86169
},
"assets/logo.png": {
"sha256": "76e2d57dcf613c4b03cdb03bac705ea819df4dc388e73bb990b9639f2698599c",
"size": 86169
},
"dist/scientific-viewer-platform/structure-backend.mjs": {
"sha256": "d615a4b9f9f8877f8fe71a14759cb5b007d67c3e740c849e413e35c4d888ae92",
"size": 305508
},
"dist/server.mjs": {
"sha256": "e114f8a05eabafe36e28084a86a7f0df92b14a81e2508bf02a1657c3b45ec2ec",
"size": 4443957
},
"dist/views/bootstrap.js": {
"sha256": "13cf99bd00c32569a1231880d87995f94b8cf45fb554a7f33b14d2f5b9fd3ff5",
"size": 360807
},
"dist/views/viewer.bundle": {
"sha256": "dd45ceaedba4b98e3631cefff025380ed391e89b237de550d46a0a9f228cebec",
"size": 1673739
},
"examples/1EMA.pdb": {
"sha256": "f1b9fdc2b871cc41f21f645a21b4948ce12d79b29197256330b108c9b503b088",
"size": 190188
},
"examples/CAPABILITY_MATRIX.md": {
"sha256": "8d9c7404af3059eb8541c25f37e0711c0de5deb6aa0fda8bdea2131dfb18164b",
"size": 19686
},
"examples/MOLECULAR_WORKSPACE.md": {
"sha256": "fca5b42d8414a567093bc0e0180beff5e89dcc3d80445e55719b44792a6bc141",
"size": 22835
},
"examples/starter-examples.json": {
"sha256": "46b4a723121eb57a8acd7de4dac1ff62cba31b6471d9c5d33787700483dc6305",
"size": 39433
},
"integrity.json": {
"sha256": "8555b68a8a9f73cbf030e752f3abb435e2e1defc49352d953b4fcc38a30700f1",
"size": 4743
},
"launch_node": {
"sha256": "1072359d24f7760cdad5c2c112308e7ba93ddc60bbe00c839e623eaca6aa1d69",
"size": 1560
},
"launch_node.cmd": {
"sha256": "82b0b206e4c0f159e6e2a83dddbd0f92d6bf7af677b54154f7668c314a96e260",
"size": 2606
},
"skills/structure-viewer/SKILL.md": {
"sha256": "ab6340e2d32bc833ae5fc3edd08d98300fb3401e402a1d15e2d175bbd38f85e3",
"size": 58834
},
"smoke-fixtures/hydrogen-bond-geometry.pdb": {
"sha256": "35fcda2020420715ac2c78f96189e09547455166b911b46791858f539ecc8178",
"size": 1446
},
"smoke-fixtures/hydrogen-bond-ligand.sdf": {
"sha256": "1f8db14cc24033d15f415b8336d60f40405fb8355504d734c43d6f65e5a6b6c6",
"size": 531
},
"smoke-fixtures/hydrogen-bond-partial-hydrogens.pdb": {
"sha256": "760e3a3361fd43b3cda6936e52c5e8e6ebe126d7316a45f645915734b21c084a",
"size": 3887
},
"smoke-fixtures/hydrogen-bond-residue-chemistry.pdb": {
"sha256": "c57dc2edb9851fd390e0a61c4d9dc4539557a96d99403810eecc926f96cd4e82",
"size": 6471
},
"smoke-fixtures/methane.mol": {
"sha256": "769a7afa431e612673de2660fc220175d727b3417d76cb35b5851105e832c22a",
"size": 519
},
"smoke-fixtures/methane.mol2": {
"sha256": "652a8540f06c67d5c2162fe3638b2da1022913abe74c2b67bd053a30879390e1",
"size": 344
},
"smoke-fixtures/methane.sdf": {
"sha256": "7a9cea321b6249efa176c1a05f8e2d30cff96aac4516604249a5af4b3e6cebf4",
"size": 155
},
"smoke-fixtures/methane.xyz": {
"sha256": "13f91da659c54a24cd332ed5b5d35ba38b8ebc43997668a9d215da98e5eb3a67",
"size": 140
},
"smoke-fixtures/mini-assembly.mmcif": {
"sha256": "ba7a83bbef4e777dc538d9e7f67993ffa85ee6f6ae51bd536f9f1440cc262a4c",
"size": 2181
},
"smoke-fixtures/mini-density.dx": {
"sha256": "f55f24a1091c422c513c5212effecaec0e920590b7a76c01c6963fcfcbd81e01",
"size": 670
},
"smoke-fixtures/mini-protein.cif": {
"sha256": "8b05fb7be3e40347da883eb8679831af6fbc0254cc41c58c944d8349b63876fd",
"size": 960
},
"smoke-fixtures/mini-protein.gro": {
"sha256": "e11222adebb622c67982195d47d9bf499817909dcf19f738282f2a95f8923fa6",
"size": 334
},
"smoke-fixtures/mini-protein.mmcif": {
"sha256": "8b05fb7be3e40347da883eb8679831af6fbc0254cc41c58c944d8349b63876fd",
"size": 960
},
"smoke-fixtures/mini-protein.pdb": {
"sha256": "8cd9deb19ef0d39d0c68a5afe93d23e4088e3edfe607989dc75ced3091d96316",
"size": 478
},
"smoke-fixtures/mini-protein.pdbqt": {
"sha256": "a980a2b65041c14129058384fa2d04edf3ba508100dd6d349c13d40eafef7e9e",
"size": 482
},
"smoke-fixtures/mini-protein.pqr": {
"sha256": "a64fb8d40d0f35635ef5207a262b05a377de5f7bd049f6d8254cf8dda9d115eb",
"size": 428
},
"smoke-fixtures/mini-trajectory.lammpstrj": {
"sha256": "aed0929cd50d5a724c5a40fa2690952f50a0d1d4908dd0cd947839b75794d2a4",
"size": 560
},
"smoke-fixtures/mini-trajectory.pdb": {
"sha256": "dd662042e445e4cb3c524a71ad671bfb4b6995a70f9a0c84cf3e28cb60d284dd",
"size": 1004
},
"smoke-fixtures/pdb-boundary-identities.cif": {
"sha256": "03287f48573869b1c7b94251ab54d97ce78fc7ace9dd67a36f5e88e3226aa0f1",
"size": 912
},
"smoke-fixtures/rigid-transform-trajectory.lammpstrj": {
"sha256": "fb02f7f6f07bf0c681b53a950e1415dc901217ae9743664c1b47bb5487e1b7be",
"size": 611
},
"smoke-fixtures/rmsd-altloc-protein.pdb": {
"sha256": "f84b061fbed94559aecc22714734f0786c130d25c781c611b49ea68d693fc506",
"size": 561
},
"smoke-fixtures/rmsd-shuffled-protein.pdb": {
"sha256": "004d0759c1e5e58dc9aa0c99d422317374ca854095ec702295434f1d8684d1d1",
"size": 482
}
}
}SHA-256 of public snapshot: f4bba2f7039219f400573f3f36f050c985ecc47aecbb89490c9e1871db38ac83