@theoremjs/studio 0.3.5-next.896.g0fa6df9 → 0.3.5-next.898.gf800d9a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/page/assets/{BottomSheet-B7QBjyhC.js → BottomSheet-DhKFAXGh.js} +1 -1
- package/page/assets/{ConsoleFrame-DXMgFYWH.js → ConsoleFrame-2g4TstUE.js} +1 -1
- package/page/assets/{DateInput-1Rq3AE5K.js → DateInput-DpmmQSjA.js} +1 -1
- package/page/assets/{MenuBottomSheet-SvMIReSl.js → MenuBottomSheet-CzereyEu.js} +1 -1
- package/page/assets/{RankedBars-CCXAr1Ce.js → RankedBars-CDHl5sb-.js} +1 -1
- package/page/assets/{SchemaFields-CoYJczx2.js → SchemaFields-CGh_41I2.js} +1 -1
- package/page/assets/{TokenizerBottomSheet-Bu0QWwXU.js → TokenizerBottomSheet-DZQOzMwv.js} +1 -1
- package/page/assets/{ToolResultCharts--oP9WeJn.js → ToolResultCharts-7bgNBGYn.js} +1 -1
- package/page/assets/{Toolbar-BGFW2XCy.js → Toolbar-CElO3C3G.js} +1 -1
- package/page/assets/{TraceInspector-B4NNBU9e.js → TraceInspector-Cym3bM6D.js} +1 -1
- package/page/assets/{TraceOverview-BN2sOoU1.js → TraceOverview-lIzipBn0.js} +7 -7
- package/page/assets/{_virtual_studio-type-sources-B8A1uomP.js → _virtual_studio-type-sources-BEpX7dCg.js} +58 -15
- package/page/assets/browser-connection-5KH5lOnX.js +1 -0
- package/page/assets/browser-engine-DrVTNqIv.js +16 -0
- package/page/assets/{browser-transport-tbDMs3Sj.js → browser-transport-BMF6q8yZ.js} +2 -2
- package/page/assets/{compile-Brpb8u3_.js → compile-BJ7ELOmx.js} +1 -1
- package/page/assets/{encode-files-CQ_E7QUG.js → encode-files-B41SXu7e.js} +1 -1
- package/page/assets/{export-agent-CmeO05g_.js → export-agent-DHNNjmBp.js} +1 -1
- package/page/assets/{getRadiusAndStrokeWidthFromDot-HzyC6uL2.js → getRadiusAndStrokeWidthFromDot-M467-kSE.js} +1 -1
- package/page/assets/{guardrail-health-D3hQ3bcI.js → guardrail-health-DatjeqEc.js} +1 -1
- package/page/assets/{guardrail-tester-CN8J9u5h.js → guardrail-tester-rTPUtllg.js} +1 -1
- package/page/assets/{index-DXokv6oR.js → index-ZLeY5MUO.js} +11 -11
- package/page/assets/{json-code-BDaKL9N1.js → json-code-Do0Mo7fR.js} +1 -1
- package/page/assets/{labels-provider-Cdg61Tfx.js → labels-provider-CAGyRsXC.js} +1 -1
- package/page/assets/{live-messages-CDqr92n4.js → live-messages-omBxXLbU.js} +1 -1
- package/page/assets/{prompt-row-Dpq62G_U.js → prompt-row-SzV8dFVD.js} +1 -1
- package/page/assets/{reader-CYeq9zud.js → reader-XE7zkyMh.js} +3 -3
- package/page/assets/{registry-Cl2mlSuk.js → registry-D8YTHxJ-.js} +1 -1
- package/page/assets/schema-CtxEeXb2.js +3 -0
- package/page/assets/shaped-data-CprrwZnO.js +25 -0
- package/page/assets/{stub-J7M8qV3l.js → stub-kONwbgS3.js} +1 -1
- package/page/assets/{studio-code-pane-xDiB6aCt.js → studio-code-pane-DbagQu4s.js} +3 -3
- package/page/assets/{studio-console-DuoSxH9j.js → studio-console-CB-RJV-m.js} +1 -1
- package/page/assets/{studio-decision-DZoN4Uxd.js → studio-decision-DSIrBGjk.js} +1 -1
- package/page/assets/{studio-embedding-iyU4_pE-.js → studio-embedding-8a6_t5aM.js} +1 -1
- package/page/assets/{studio-host-console-BFpOVkBO.js → studio-host-console-D4Hg6XaM.js} +2 -2
- package/page/assets/{studio-labels-BapY4sMV.js → studio-labels-Dh9jP7ij.js} +1 -1
- package/page/assets/{studio-live-DQCmSVtx.js → studio-live-B2Lfwqrz.js} +1 -1
- package/page/assets/{studio-map-C4gFztvg.js → studio-map-eLlwyNZ1.js} +1 -1
- package/page/assets/{studio-trace-replay-BvIqbHiM.js → studio-trace-replay-CAYokbvT.js} +1 -1
- package/page/assets/{studio-type-checker-DGKAqzA7.js → studio-type-checker-Bjk7Jdmg.js} +1 -1
- package/page/assets/{tool-schema-DWmQkthX.js → tool-schema-g9NZtX9e.js} +1 -1
- package/page/assets/{trace-record-C07Cf_EG.js → trace-record-RYDsMP-w.js} +1 -1
- package/page/assets/{tree-CgaAoXtn.js → tree-DruEZvP5.js} +1 -1
- package/page/assets/{turn-client-B4zazitl.js → turn-client-ya-eV7mj.js} +1 -1
- package/page/assets/{types-D5agZBnA.js → types-CxYF03fG.js} +1 -1
- package/page/assets/{use-one-call-DbcBPKow.js → use-one-call-CXgTu4D2.js} +1 -1
- package/page/assets/{workspace-Dsqtx6eI.js → workspace-C3jDIDGJ.js} +1 -1
- package/page/index.html +17 -17
- package/page/assets/browser-connection-Nwupg4Oq.js +0 -1
- package/page/assets/browser-engine-BlZZB5Z6.js +0 -16
- package/page/assets/schema-Cra2BPNa.js +0 -3
- package/page/assets/shaped-data-BlRLB3TY.js +0 -25
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{A as e,D as t,E as n,O as r,T as i,b as a,c as o,d as s,f as c,x as l}from"./schemas-D7cgkv3L.js";import{$r as u,Zr as ee,it as d,mn as te,on as ne,ot as re,rt as ie,ti as ae,wt as oe}from"./shaped-data-BlRLB3TY.js";import{c as f}from"./host-patterns-F-KZIzkF.js";var se=`
|
|
2
|
-
|
|
3
|
-
`;function p(e){if(typeof e==`string`)return;if(typeof e!=`object`||!e||Array.isArray(e))return`must be a string or { private: string }`;let t=Object.keys(e);if(t.length!==1||t[0]!==`private`)return`must have exactly one key, private`;let n=e.private;if(typeof n!=`string`)return`must be a string`;if(n===``)return`must not be empty`}function m(e,t){if(typeof e!=`string`){if(!Array.isArray(e))return`${t} must be a string or an array of parts`;if(e.length===0)return`${t} must not be an empty array`;for(let[n,r]of e.entries()){let e=p(r);if(e)return`${t}[${n}]${typeof r==`object`&&r&&`private`in r?`.private`:``} ${e}`}}}function h(e,t){let n=m(e,t);if(n)throw new f(`config`,n)}function g(e,t,n){return h(e,t),typeof e==`string`?n(e):e.map(e=>typeof e==`string`?n(e):{private:n(e.private)})}function ce(e){if(typeof e==`string`)return[{text:e,private:!0}];let t=e.some(e=>typeof e!=`string`);return e.map(e=>typeof e==`string`?{text:e,private:!t}:{text:e.private,private:!0})}function _(e){let t=[];for(let n of e)n.some(e=>e.text)&&(t.length>0&&t.push({text:se,private:!0}),t.push(...n));return t}function le(e){return e.map(e=>e.text).join(``)}function ue(e){let t=[],n=``;for(let r of e)r.private?n+=r.text:(n.trim()&&t.push(n),n=``);return n.trim()&&t.push(n),{text:le(e),private:t}}function de(e,t){return ue(_([e,...t.map(e=>e?[{text:e,private:!0}]:[])]))}var fe=/^[A-Za-z_][\w-]*$/,pe=/\{([A-Za-z_][\w-]*)\}/g,me=[`input`,`output`];function v(e){return e.choices.map(e=>e.value)}function y(e){return(e.type===`text`||e.type===`image`||e.type===`live`?e.identity.options:void 0)??{}}function b(e){return te(e)?.options??{}}function x(e,t){let n={...y(e),...b(e)};return Object.hasOwn(n,t)?n[t]:void 0}function he(e,t){if(!fe.test(e))return`Option "${e}" needs a plain name.`;if(me.includes(e))return`Option "${e}" is a reserved name.`;let n=Array.isArray(t.choices)?v(t):[];if(n.length===0)return`Option "${e}" lists no values.`;let r=n.find(e=>!e.trim()||e===`null`);return r===void 0?void 0:`Option "${e}" can't take the value "${r}".`}function S(e,t){for(let[n,r]of Object.entries({...e,...t})){if(e&&t&&Object.hasOwn(e,n)&&Object.hasOwn(t,n))return`"${n}" is on both identity.options and inputs.options.`;let i=he(n,r);if(i)return i}}function C(e,t,n,r){for(let[i,a]of Object.entries(r??{})){let r=Object.hasOwn(t,i)?t[i]:void 0;if(!r)throw new f(`request`,`Profile ${e} has no option '${i}' on ${n}`);let o=v(r);if(!o.includes(a))throw new f(`request`,`Profile ${e}: option '${i}' takes ${o.join(`, `)}, not '${a}'`)}}function w(e,t){return Object.hasOwn(e,`path`)&&t.path!==void 0?{path:t.path}:{}}function T(e,t){let n=y(e);if(t.options&&Object.hasOwn(t.options,`path`))throw new f(`request`,`Profile ${e.id}: the turn's own path states path`);C(e.id,n,`identity.options`,{...t.options,...w(n,t)}),C(e.id,b(e),`inputs.options`,t.input?.options)}function E(e,t){return{...t.options,...w(y(e),t),...t.input?.options}}function D(e,t,n){let r=!0,i=t.replace(pe,(t,i)=>{if(!x(e,i))return t;let a=Object.hasOwn(n,i)?n[i]:void 0;return a===void 0&&(r=!1),a??t});return r?i:void 0}function O(e){return typeof e==`string`?[[e]]:e.map(e=>typeof e==`string`?[e]:e)}function k(e){return typeof e==`string`?e:e.private}function A(e){return re(e[0]===void 0?``:k(e[0]))}function j(e){let t={};for(let[n,r]of Object.entries(e))t[n]={type:`string`,enum:v(r)};return{type:`object`,properties:t}}function M(e,t){if(e.length===0)return`It has no wording to send.`;let n=A(e);if(n.joined)return`A prompt line can't start with "+"; every line that fits is sent.`;if(n.when===`unreadable`)return`A line that opens with "when" needs an option and a colon, like "when path is web: …".`;for(let e of n.when){if(e.path.includes(`.`))return`"${e.path}" isn't one option.`;if(e.expected===null)return`An option has no null value, so "is null" never fits.`;let n=d(e,t,`this profile’s options`);if(n)return n}if(n.when.length>0&&!n.text&&e.length===1)return`It has no wording to send.`}function N(e,t,n){let r=S(t,n);if(r)return r;let i=j({...t,...n});for(let[t,n]of O(e).entries()){let e=M(n,i);if(e)return`Line ${t+1}: ${e}`}}function P(e,t){return e.when!==`unreadable`&&e.when.every(e=>ie(e,t))}function F(e,t,n){let r=O(e),i=r.flat().some(e=>typeof e!=`string`),a=[];for(let[e,o]of r.entries()){let r=A(o);if(!P(r,t))continue;let s=o.map((e,t)=>n(t===0?r.text:k(e)));if(s.includes(void 0))continue;let c=o.flatMap((e,t)=>{let n=s[t];return n?[{text:n,private:typeof e!=`string`||!i}]:[]});a.push({line:e+1,pieces:c})}return a}function I(e,t){if(typeof e!=`string`){if(!Array.isArray(e))throw new f(`config`,`${t} must be a string or an array of lines`);if(e.length===0)throw new f(`config`,`${t} must not be an empty array`);for(let[n,r]of e.entries())if(typeof r!=`string`){if(!Array.isArray(r))throw new f(`config`,`${t}[${n}] must be a string or a list of parts; put { private } inside the list`);h(r,`${t}[${n}]`)}}}function L(e,t){let n=e?.path;if(!n)return;let r=v(n);for(let e of t){let t=e.paths?.find(e=>e!==`*`&&!r.includes(e));if(t!==void 0)return`Tool ${e.name} lists path "${t}", which is not one of ${r.join(`, `)}.`}}function R(e,t){let n=e.get(t);return n!==void 0&&n.type!==`builtin`}function z(e,t){return!e||e.includes(`*`)?!0:t?e.includes(t):!1}function ge(e,t){return t.filter(n=>{let r=e.get(n);return r?.type!==`builtin`||!(r.conflictsWith??[]).some(e=>t.includes(e))})}function B(e){return`tools`in e?e.tools.allow:[]}function V(e){return e.type===`text`||e.type===`image`?e.tools:void 0}function _e(e){return`tools`in e?e.tools.parallel:void 0}function ve(e,t,n){return B(t).filter(r=>{let i=e.get(r);return!i||i.type===`builtin`?!1:t.type===`host`||z(i.paths,n.path)})}function ye(e,t,n,r){let i=t.models[r];return i?(i.builtInTools??[]).filter(t=>{let r=e.get(t);return r?.type===`builtin`&&z(r.paths,n.path)}):[]}function H(e,t,n){let r=e.get(t);if(r&&r.type!==`builtin`)return{type:`function`,name:r.name,description:r.description,parameters:n&&r.askInputSchema||r.inputSchema}}function be(e,t,n){let r=[];for(let i of t){let t=H(e,i,n);t&&r.push(t)}return r}function U(e,t,n){if(t.visible.includes(n))return;t.visible.push(n);let r=H(e,n,t.modelBackground);r&&!t.wire.some(e=>e.name===n)&&t.wire.push(r)}function xe(e,t,n){if(t.builtins.includes(n))return;let r=e.get(n);if(r?.type!==`builtin`)return;let i=r.conflictsWith??[];t.builtins=t.builtins.filter(t=>{if(i.includes(t))return!1;let r=e.get(t);return!(r?.type===`builtin`&&r.conflictsWith?.includes(n))}),t.builtins.push(n)}function Se(e,t,n){return t.type===`live`||t.type===`host`?[...n]:n.filter(t=>e.get(t)?.loadTier===`T0`)}function Ce(e,t,n){return ge(e,n.filter(n=>{let r=e.get(n);return r?.type===`builtin`&&(t.type===`live`||r.loadTier===`T0`)}))}function we(e,t){if(t.type!==`text`&&t.type!==`image`&&t.type!==`live`)return;let n=B(t).flatMap(t=>e.get(t)??[]),r=L(t.identity.options,n);if(r)throw new f(`config`,`Profile ${t.id}: ${r}`)}function Te(e,t){let n=V(t)?.t2Loader,r=n===void 0?void 0:e.get(n);if(r&&r.type!==`builtin`&&(r.background??`never`)!==`never`)throw new f(`config`,`Profile ${t.id}: tools.t2Loader '${r.name}' sets background, and a loader cannot detach`)}function W(e,t,n,r){we(e,t),Te(e,t);let i=ve(e,t,n),a=t.type===`host`||t.type===`decision`||t.type===`embedding`||r===void 0?[]:ye(e,t,n,r),o=[...i,...a],s=Ce(e,t,o),c=Se(e,t,o),l=c.filter(t=>R(e,t)),u=n.background!==void 0;return{builtins:s,gated:o,visible:c,executable:l,path:n.path,sessionPermissions:n.sessionPermissions,wire:be(e,c,u),...u?{modelBackground:u}:{}}}async function Ee(e,t,n,r){let i=W(e,t,n,r);return await G(e,i,t,n),i}function De(e){return{builtins:[...e.builtins],gated:[...e.gated],visible:[...e.visible],executable:[...e.executable],path:e.path,sessionPermissions:e.sessionPermissions?[...e.sessionPermissions]:void 0,wire:e.wire.map(e=>({...e,parameters:structuredClone(e.parameters)})),...e.modelBackground?{modelBackground:e.modelBackground}:{}}}async function G(e,t,n,r){let i=V(n)?.t1Policy;if(!i)return;let a;try{a=await i({profile:n,input:r.input,path:r.path,sessionPermissions:r.sessionPermissions,gated:t.gated,host:r.host})}catch(e){let t=e instanceof Error?e.message:String(e);throw new f(`config`,`Profile '${n.id}' tools.t1Policy rejected: ${t}`,{cause:e})}if(!Array.isArray(a))throw new f(`config`,`Profile '${n.id}' tools.t1Policy must return ToolId[]`);K(e,t,a)}function K(e,t,n=[]){for(let r of n){if(!t.gated.includes(r))continue;let n=e.get(r);n?.loadTier===`T2`&&(n.type===`builtin`?xe(e,t,r):U(e,t,r))}t.executable=t.visible.filter(t=>R(e,t))}var Oe=new Set([`__proto__`,`constructor`,`prototype`]);function ke(e){if(!ne(e))return;let{loaded:t}=e;if(Array.isArray(t)&&t.every(e=>typeof e==`string`))return t}function Ae(e,t,n,r){if(r.type===`live`||r.type===`host`)return{promoted:[]};let i=[];for(let a of n){if(typeof a!=`string`||Oe.has(a))return{promoted:[],failure:{code:`invalid_output`,kind:`bad_response`,message:`tools.t2Loader loaded ids must be plain strings`}};let n=je(e,a,r);if(`failure`in n)return{promoted:[],failure:n.failure};let{tool:o}=n;z(o.paths,t.path)&&t.gated.includes(a)&&i.push(a)}let a=[];for(let n of i)U(e,t,n),a.push(n);return t.executable=t.visible.filter(t=>R(e,t)),{promoted:a}}function q(e){return{failure:{code:`invalid_output`,kind:`bad_response`,message:e}}}function je(e,t,n){if(!B(n).includes(t))return q(`tools.t2Loader attempted to promote tool '${t}' outside profile allow`);let r=e.get(t);return r?r.type===`builtin`?q(`tools.t2Loader attempted to promote builtin '${t}' — only custom tools may be promoted`):r.loadTier===`T2`?{tool:r}:q(`tools.t2Loader attempted to promote tool '${t}' with loadTier '${r.loadTier}' — only T2 tools may be promoted`):q(`tools.t2Loader attempted to promote unknown tool '${t}'`)}var Me=class extends Error{failure;constructor(e){super(e.message),this.failure=e}},Ne=new Set([`text`,`image`,`speech`]),Pe=n().regex(/\S/),J=i({mimeType:n(),data:c(),name:n().optional()}),Fe=i({mimeType:n(),uri:n(),name:n().optional()}),Ie=i({voice:n().optional(),style:n().optional(),speed:a().positive().optional()});function Le(e){return i(Object.fromEntries(Object.entries(e).map(([e,t])=>{let n=v(t);return[e,o(n).optional()]})))}var Re=new Set([`text`,`attachments`,`voice`,`options`,`speech`]);function ze(e,t){if(!e.hostFields)return{sent:t};let n={...t},r={};for(let t of Object.keys(e.hostFields))n[t]!==void 0&&(r[t]=n[t]);let{text:i,attachments:a,voice:o,options:s,speech:c}=t;return{sent:{text:i,...a?{attachments:a}:{},...o?{voice:o}:{},...s?{options:s}:{},...c?{speech:c}:{}},hostInput:r}}function Be(e,n){let{inputs:r}=e,a={text:Pe};r?.attachments&&(a.attachments=s(t([J,Fe])).optional()),r?.voice&&(a.voice=s(J).optional()),r?.options&&(a.options=Le(r.options).optional()),e.type===`speech`&&(a.speech=Ie.optional());for(let e of n?.hostOnly??[]){if(!a[e])throw new f(`config`,`Tool '${n?.name}' keeps '${e}' for the host, which its profile does not take`);delete a[e]}for(let[e,t]of Object.entries(n?.fieldText??{})){let r=a[e];if(!r)throw new f(`config`,`Tool '${n?.name}' describes '${e}', which its profile does not take`);a[e]=r.describe(t)}for(let[e,t]of Object.entries(n?.hostFields??{})){if(Re.has(e))throw new f(`config`,`Tool '${n?.name}' declares the host field '${e}', which is a field of every agent tool`);a[e]=t}return i(a)}var Y=l({text:n().optional(),structured:r().optional(),removed:s(l({path:n(),reason:n(),item:r()})).optional(),parts:s(ee).optional(),sources:s(ae).optional()});function Ve(e){return e.type===`speech`||(e.type===`text`||e.type===`image`)&&e.inputs.text!==!1}function He(e){return e.type===`builtin`?!1:e.permission!==`auto`||`auth`in e&&e.auth!==void 0&&(e.auth.onUnauthenticated??`gate`)===`gate`}function X(e,t){if(!Ne.has(e.type))return`it is a ${e.type} profile; an agent tool runs a text, image, or speech profile`;if(!Ve(e))return`it does not take text`;for(let n of B(e)){let e=t(n);if(!e)return`its tool '${n}' is not registered; register it first`;if(He(e))return`its tool '${n}' can stop on a gate; give it permission 'auto' and no sign-in`}}function Ue(e,t,n){let r=`Agent tool "${e.name}"`,i=e.maxCallsPerTurn;if(i!==void 0&&!(Number.isInteger(i)&&i>0))throw new f(`config`,`${r}: maxCallsPerTurn must be a whole number above 0`);let a=t(e.profile);if(!a)throw new f(`config`,`${r}: profile '${e.profile}' must be registered before the tool`);let o=X(a,n);if(o)throw new f(`config`,`${r} can't run '${e.profile}': ${o}`);return a}function Z(e){if(!e)return`delegated`;let t=`models`in e&&Object.values(e.models).some(e=>(e.builtInTools?.length??0)>0);return B(e).length===0&&!t?`local`:`delegated`}function We(e){let t=u(e),n=t.flatMap(e=>e.type===`text`?[e.text]:[]).join(``),r=oe(t,e=>e.type===`structured`),i=r?.structured,a=t.flatMap(e=>e.type===`media`?[{type:e.media.mimeType.startsWith(`audio/`)?`audio`:`image`,mimeType:e.media.mimeType,data:e.media.data}]:[]),o=t.flatMap(e=>e.type===`citation`?e.sources:[]);return{...i===void 0?{text:n}:{structured:i},...r?.removed?.length?{removed:r.removed}:{},...a.length>0?{parts:a}:{},...o.length>0?{sources:o}:{}}}function Ge(e,t,n){return{...e,type:`agent`,input:t,output:Y,sources:e=>e.sources??[],...n}}function Ke(e,t,n){if(!e||typeof e!=`object`||Array.isArray(e))return n.push(`${t}: schema must be an object`),!1;let r=typeof e.type==`string`||Array.isArray(e.type),i=e.anyOf!==void 0||e.oneOf!==void 0;if(!r&&!i){if(t!==`$`)return!0;n.push(`${t}: missing type or combinator`)}return e.type===`array`&&e.items===void 0&&n.push(`${t}: array schema must define items`),!0}function qe(e,t,n,r){let i=Array.isArray(t)?t:[];for(let t of i)typeof t==`string`&&!Object.hasOwn(e,t)&&r.push(`${n}: required key '${t}' missing from properties`);for(let[t,i]of Object.entries(e))i&&typeof i==`object`&&Q(i,`${n}.properties.${t}`,r)}function Q(e,t,n){if(!Ke(e,t,n))return;let r=e.properties;r&&typeof r==`object`&&!Array.isArray(r)&&qe(r,e.required,t,n),e.items&&typeof e.items==`object`&&!Array.isArray(e.items)&&Q(e.items,`${t}.items`,n);for(let r of[`anyOf`,`oneOf`]){let i=e[r];Array.isArray(i)&&i.forEach((e,i)=>{e&&typeof e==`object`&&Q(e,`${t}.${r}[${i}]`,n)})}}function Je(e,t){let n=[];if(Q(e,`$`,n),n.length>0)throw new f(`config`,`Invalid tool ${t} schema: ${n.join(`; `)}`)}function Ye(t,n=`output`){let r=e(t,{target:`draft-7`,io:n});return delete r.$schema,r.type||=`object`,r}function $(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map($);let t={};for(let n of Object.keys(e))n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=$(e[n]));return t}function Xe(e){let t=/^[a-z][a-z0-9+.-]*:\/\/[^/?#]*/i.exec(e)?.[0];if(!t||/[{}]/.test(t))throw new f(`config`,`Endpoint "${e}" must start with a fixed scheme and host; placeholders belong in the path or query`)}export{S as A,W as C,T as D,N as E,g as F,ce as I,E as M,de as N,D as O,_ as P,K as S,F as T,Ee as _,Me as a,V as b,Z as c,Ue as d,Ge as f,ke as g,G as h,Je as i,x as j,v as k,Y as l,De as m,Ye as n,X as o,ze as p,$ as r,Be as s,Xe as t,We as u,B as v,I as w,Ae as x,_e as y};
|