PageSourceSearch

https://startupmelbourne.com/_next/static/chunks/15x0tr3zp.1zw.js

js startupmelbourne.com collected 2026-10-07 23:17:58 UTC 97,781 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="2f68bf12-8a36-9450-d443-f257216a002a")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340916,e=>{"use strict";async function t(t){{let{default:n}=await e.A(641119);return n.get(t)}}e.s(["getServerOrClientCookies",0,t])},391404,57393,59690,977913,548053,868475,e=>{"use strict";let t;e.s([],298821),e.i(298821);var n,r=e.i(712717),i=e.i(197753),o=e.i(937634),s=e.i(922143),a=e.i(525527),l=e.i(676094),c=e.i(650215),u=e.i(429321),d=e.i(313088),m=e.i(355605),p=e.i(321678),g=e.i(682358),h=e.i(34966),b=e.i(40824),f=e.i(351778),y=e.i(803108),_=e.i(374969);let v=new WeakSet([Object.prototype,Error.prototype]);function w(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}let k=(e,t)=>{_.$ZodError.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);v.has(n)||(v.add(n),w(n,"format",e=>t=>_.formatError(e,t)),w(n,"flatten",e=>t=>_.flattenError(e,t)),w(n,"addIssue",e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,s.jsonStringifyReplacer,2)}),w(n,"addIssues",e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,s.jsonStringifyReplacer,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},x=i.$constructor("ZodError",k),Z=i.$constructor("ZodError",k,void 0,{Parent:Error});e.s(["ZodError",0,x,"ZodRealError",0,Z],789282);let S=y._parse(Z),j=y._parseAsync(Z),I=y._safeParse(Z),T=y._safeParseAsync(Z),E=y._encode(Z),O=y._decode(Z),$=y._encodeAsync(Z),A=y._decodeAsync(Z),C=y._safeEncode(Z),P=y._safeDecode(Z),z=y._safeEncodeAsync(Z),N=y._safeDecodeAsync(Z);function U(){i.globalConfig.memoizer||i.config({memoizer:o.memoizer()})}e.s(["decode",0,O,"decodeAsync",0,A,"encode",0,E,"encodeAsync",0,$,"parse",0,S,"parseAsync",0,j,"safeDecode",0,P,"safeDecodeAsync",0,N,"safeEncode",0,C,"safeEncodeAsync",0,z,"safeParse",0,I,"safeParseAsync",0,T],280656);let R=i.$constructor("ZodType",(e,t)=>(i.globalConfig.localeError||i.config((0,b.default)()),l.$ZodType.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(d.util.mergeDefs(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return s.clone(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(nk(e,t))},superRefine(e,t){return this.check(nx(e,t))},overwrite(e){return this.check(c._overwrite(e))},optional(){return tH(this)},exactOptional(){return tX(this)},nullable(){return tY(this)},nullish(){return tH(tY(this))},nonoptional(e){return t5(this,e)},array(){return th(this)},or(e){return tk([this,e])},and(e){return tT(this,e)},transform(e){return ni(this,tW(e))},default(e){return t4(this,e)},prefault(e){return t6(this,e)},catch(e){return ne(this,e)},pipe(e){return ni(this,e)},readonly(){return nu(this)},describe(e){let t=this.clone();return a.globalRegistry.add(t,{description:e}),t},meta(...e){if(0===e.length)return a.globalRegistry.get(this);let t=this.clone();return a.globalRegistry.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return 0===t.length?e(this):e(this,...t)},get"~standard"(){return d.util.hide(this,"~standard",{...l.standardProps(this),jsonSchema:{input:(0,h.createStandardJSONSchemaMethod)(this,"input"),output:(0,h.createStandardJSONSchemaMethod)(this,"output")}})},set"~standard"(value){d.util.own(this,"~standard",value)},parse:function e(t,n){return S(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await j(this,t,n,{callee:e})},safeParse(e,t){return I(this,e,t)},async safeParseAsync(e,t){return T(this,e,t)},get spa(){return this?.safeParseAsync},set spa(value){d.util.own(this,"spa",value)},validate(e,t){return y.validate(this,e,t)},validateAsync(e,t){return y.validateAsync(this,e,t)},encode:function e(t,n){return E(this,t,n,{callee:e})},decode:function e(t,n){return O(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await $(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await A(this,t,n,{callee:e})},safeEncode(e,t){return C(this,e,t)},safeDecode(e,t){return P(this,e,t)},async safeEncodeAsync(e,t){return z(this,e,t)},async safeDecodeAsync(e,t){return N(this,e,t)},toJSONSchema(e){return(0,h.createToJSONSchemaMethod)(this,{})(e)},get description(){return a.globalRegistry.get(this)?.description},get _def(){return this._zod.def}}),D=i.$constructor("_ZodString",(e,t)=>{l.$ZodString.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.stringProcessor(e,t,n,r)},d.util.derived({format:e=>p.aggregateChecks(e).format??null,minLength:e=>p.aggregateChecks(e).minimum??null,maxLength:e=>p.aggregateChecks(e).maximum??null},{regex(...e){return this.check(f.regex(...e))},includes(...e){return this.check(c._includes(...e))},startsWith(...e){return this.check(c._startsWith(...e))},endsWith(...e){return this.check(c._endsWith(...e))},min(...e){return this.check(c._minLength(...e))},max(...e){return this.check(c._maxLength(...e))},length(...e){return this.check(c._length(...e))},nonempty(...e){return this.check(c._minLength(1,...e))},lowercase(e){return this.check(c._lowercase(e))},uppercase(e){return this.check(c._uppercase(e))},trim(){return this.check(c._trim())},normalize(...e){return this.check(c._normalize(...e))},toLowerCase(){return this.check(c._toLowerCase())},toUpperCase(){return this.check(c._toUpperCase())},slugify(){return this.check(c._slugify())}})),L=i.$constructor("ZodString",(e,t)=>{l.$ZodString.init(e,t),D.init(e,t)},{email(e){return this.check(c._email(W,e))},url(e){return this.check(c._url(en,e))},jwt(e){return this.check(c._jwt(eD,e))},emoji(e){return this.check(c._emoji(eo,e))},guid(e){return this.check(c._guid(H,e))},uuid(e){return this.check(c._uuid(X,e))},uuidv4(e){return this.check(c._uuidv4(X,e))},uuidv6(e){return this.check(c._uuidv6(X,e))},uuidv7(e){return this.check(c._uuidv7(X,e))},nanoid(e){return this.check(c._nanoid(ea,e))},cuid(e){return this.check(c._cuid(ec,e))},cuid2(e){return this.check(c._cuid2(ed,e))},ulid(e){return this.check(c._ulid(ep,e))},base64(e){return this.check(c._base64(eE,e))},base64url(e){return this.check(c._base64url(e$,e))},xid(e){return this.check(c._xid(eh,e))},ksuid(e){return this.check(c._ksuid(ef,e))},ipv4(e){return this.check(c._ipv4(e_,e))},ipv6(e){return this.check(c._ipv6(ex,e))},cidrv4(e){return this.check(c._cidrv4(eS,e))},cidrv6(e){return this.check(c._cidrv6(eI,e))},e164(e){return this.check(c._e164(eC,e))},datetime(e){return this.check(c._isoDateTime(q,e))},date(e){return this.check(c._isoDate(F,e))},time(e){return this.check(c._isoTime(B,e))},duration(e){return this.check(c._isoDuration(V,e))}});function M(e){return c._string(L,e)}let J=i.$constructor("ZodStringFormat",(e,t)=>{l.$ZodStringFormat.init(e,t),D.init(e,t)}),q=i.$constructor("ZodISODateTime",(e,t)=>{l.$ZodISODateTime.init(e,t),J.init(e,t)}),F=i.$constructor("ZodISODate",(e,t)=>{l.$ZodISODate.init(e,t),J.init(e,t)}),B=i.$constructor("ZodISOTime",(e,t)=>{l.$ZodISOTime.init(e,t),J.init(e,t)}),V=i.$constructor("ZodISODuration",(e,t)=>{l.$ZodISODuration.init(e,t),J.init(e,t)}),W=i.$constructor("ZodEmail",(e,t)=>{l.$ZodEmail.init(e,t),J.init(e,t)});function G(e){return c._email(W,e)}let H=i.$constructor("ZodGUID",(e,t)=>{l.$ZodGUID.init(e,t),J.init(e,t)});function K(e){return c._guid(H,e)}let X=i.$constructor("ZodUUID",(e,t)=>{l.$ZodUUID.init(e,t),J.init(e,t)});function Q(e){return c._uuid(X,e)}function Y(e){return c._uuidv4(X,e)}function ee(e){return c._uuidv6(X,e)}function et(e){return c._uuidv7(X,e)}let en=i.$constructor("ZodURL",(e,t)=>{l.$ZodURL.init(e,t),J.init(e,t)});function er(e){return c._url(en,e)}function ei(e){return c._url(en,{protocol:g.httpProtocol,hostname:g.domain,...d.util.normalizeParams(e)})}let eo=i.$constructor("ZodEmoji",(e,t)=>{l.$ZodEmoji.init(e,t),J.init(e,t)});function es(e){return c._emoji(eo,e)}let ea=i.$constructor("ZodNanoID",(e,t)=>{l.$ZodNanoID.init(e,t),J.init(e,t)});function el(e){return c._nanoid(ea,e)}let ec=i.$constructor("ZodCUID",(e,t)=>{l.$ZodCUID.init(e,t),J.init(e,t)});function eu(e){return c._cuid(ec,e)}let ed=i.$constructor("ZodCUID2",(e,t)=>{l.$ZodCUID2.init(e,t),J.init(e,t)});function em(e){return c._cuid2(ed,e)}
2let ep=i.$constructor("ZodULID",(e,t)=>{l.$ZodULID.init(e,t),J.init(e,t)});function eg(e){return c._ulid(ep,e)}let eh=i.$constructor("ZodXID",(e,t)=>{l.$ZodXID.init(e,t),J.init(e,t)});function eb(e){return c._xid(eh,e)}let ef=i.$constructor("ZodKSUID",(e,t)=>{l.$ZodKSUID.init(e,t),J.init(e,t)});function ey(e){return c._ksuid(ef,e)}let e_=i.$constructor("ZodIPv4",(e,t)=>{l.$ZodIPv4.init(e,t),J.init(e,t)});function ev(e){return c._ipv4(e_,e)}let ew=i.$constructor("ZodMAC",(e,t)=>{l.$ZodMAC.init(e,t),J.init(e,t)});function ek(e){return c._mac(ew,e)}let ex=i.$constructor("ZodIPv6",(e,t)=>{l.$ZodIPv6.init(e,t),J.init(e,t)});function eZ(e){return c._ipv6(ex,e)}let eS=i.$constructor("ZodCIDRv4",(e,t)=>{l.$ZodCIDRv4.init(e,t),J.init(e,t)});function ej(e){return c._cidrv4(eS,e)}let eI=i.$constructor("ZodCIDRv6",(e,t)=>{l.$ZodCIDRv6.init(e,t),J.init(e,t)});function eT(e){return c._cidrv6(eI,e)}let eE=i.$constructor("ZodBase64",(e,t)=>{l.$ZodBase64.init(e,t),J.init(e,t)});function eO(e){return c._base64(eE,e)}let e$=i.$constructor("ZodBase64URL",(e,t)=>{l.$ZodBase64URL.init(e,t),J.init(e,t)});function eA(e){return c._base64url(e$,e)}let eC=i.$constructor("ZodE164",(e,t)=>{l.$ZodE164.init(e,t),J.init(e,t)});function eP(e){return c._e164(eC,e)}let ez=i.$constructor("ZodCreditCard",(e,t)=>{l.$ZodCreditCard.init(e,t),J.init(e,t)});function eN(e){return c._creditCard(ez,e)}let eU=i.$constructor("ZodIBAN",(e,t)=>{l.$ZodIBAN.init(e,t),J.init(e,t)});function eR(e){return c._iban(eU,e)}let eD=i.$constructor("ZodJWT",(e,t)=>{l.$ZodJWT.init(e,t),J.init(e,t)});function eL(e){return c._jwt(eD,e)}let eM=i.$constructor("ZodCustomStringFormat",(e,t)=>{l.$ZodCustomStringFormat.init(e,t),J.init(e,t)});function eJ(e,t,n={}){return c._stringFormat(eM,e,t,n)}function eq(e){return c._stringFormat(eM,"hostname",g.hostname,e)}function eF(e){return c._stringFormat(eM,"hex",g.hex,e)}function eB(e){return c._stringFormat(eM,"currency_code",g.currencyCode,e)}
2function eV(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,i=u.regexes[r];if(!i)throw Error(`Unrecognized hash format: ${r}`);return c._stringFormat(eM,r,i,t)}let eW=i.$constructor("ZodNumber",(e,t)=>{l.$ZodNumber.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.numberProcessor(e,t,n,r),e.isFinite=!0},d.util.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=p.aggregateChecks(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=p.aggregateChecks(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=p.aggregateChecks(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>p.aggregateChecks(e).format??null},{gt(e,t){return this.check(c._gt(e,t))},gte(e,t){return this.check(c._gte(e,t))},min(e,t){return this.check(c._gte(e,t))},lt(e,t){return this.check(c._lt(e,t))},lte(e,t){return this.check(c._lte(e,t))},max(e,t){return this.check(c._lte(e,t))},int(e){return this.check(eK(e))},safe(e){return this.check(eK(e))},positive(e){return this.check(c._gt(0,e))},nonnegative(e){return this.check(c._gte(0,e))},negative(e){return this.check(c._lt(0,e))},nonpositive(e){return this.check(c._lte(0,e))},multipleOf(e,t){return this.check(c._multipleOf(e,t))},step(e,t){return this.check(c._multipleOf(e,t))},finite(){return this}}));function eG(e){return c._number(eW,e)}let eH=i.$constructor("ZodNumberFormat",(e,t)=>{l.$ZodNumberFormat.init(e,t),eW.init(e,t)});function eK(e){return c._int(eH,e)}function eX(e){return c._float32(eH,e)}function eQ(e){return c._float64(eH,e)}function eY(e){return c._int32(eH,e)}function e0(e){return c._uint32(eH,e)}let e1=i.$constructor("ZodBoolean",(e,t)=>{l.$ZodBoolean.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.booleanProcessor(e,t,n,r)});function e4(e){return c._boolean(e1,e)}let e2=i.$constructor("ZodBigInt",(e,t)=>{l.$ZodBigInt.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.bigintProcessor(e,t,n,r)},d.util.derived({minValue:e=>p.aggregateChecks(e).minimum??null,maxValue:e=>p.aggregateChecks(e).maximum??null,format:e=>p.aggregateChecks(e).format??null},{gte(e,t){return this.check(c._gte(e,t))},min(e,t){return this.check(c._gte(e,t))},gt(e,t){return this.check(c._gt(e,t))},lt(e,t){return this.check(c._lt(e,t))},lte(e,t){return this.check(c._lte(e,t))},max(e,t){return this.check(c._lte(e,t))},positive(e){return this.check(c._gt(BigInt(0),e))},negative(e){return this.check(c._lt(BigInt(0),e))},nonpositive(e){return this.check(c._lte(BigInt(0),e))},nonnegative(e){return this.check(c._gte(BigInt(0),e))},multipleOf(e,t){return this.check(c._multipleOf(e,t))}}));function e6(e){return c._bigint(e2,e)}let e3=i.$constructor("ZodBigIntFormat",(e,t)=>{l.$ZodBigIntFormat.init(e,t),e2.init(e,t)});function e5(e){return c._int64(e3,e)}function e8(e){return c._uint64(e3,e)}let e9=i.$constructor("ZodSymbol",(e,t)=>{l.$ZodSymbol.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.symbolProcessor(e,t,n,r)});function e7(e){return c._symbol(e9,e)}let te=i.$constructor("ZodUndefined",(e,t)=>{l.$ZodUndefined.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.undefinedProcessor(e,t,n,r)});function tt(e){return c._undefined(te,e)}let tn=i.$constructor("ZodNull",(e,t)=>{l.$ZodNull.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.nullProcessor(e,t,n,r)});function tr(e){return c._null(tn,e)}let ti=i.$constructor("ZodAny",(e,t)=>{l.$ZodAny.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.anyProcessor(e,t,n,r)});function to(){return c._any(ti)}let ts=i.$constructor("ZodUnknown",(e,t)=>{l.$ZodUnknown.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.unknownProcessor(e,t,n,r)});function ta(){return c._unknown(ts)}let tl=i.$constructor("ZodNever",(e,t)=>{l.$ZodNever.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.neverProcessor(e,t,n,r)});function tc(e){return c._never(tl,e)}let tu=i.$constructor("ZodVoid",(e,t)=>{l.$ZodVoid.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.voidProcessor(e,t,n,r)});function td(e){return c._void(tu,e)}let tm=i.$constructor("ZodDate",(e,t)=>{l.$ZodDate.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.dateProcessor(e,t,n,r),e.min=(t,n)=>
2e.check(c._gte(t,n)),e.max=(t,n)=>e.check(c._lte(t,n))},d.util.derived({minDate:e=>{let{minimum:t}=p.aggregateChecks(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=p.aggregateChecks(e);return t?new Date(t):null}},{}));function tp(e){return c._date(tm,e)}let tg=i.$constructor("ZodArray",(e,t)=>{U(),l.$ZodArray.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.arrayProcessor(e,t,n,r),e.element=t.element},{min(e,t){return this.check(c._minLength(e,t))},nonempty(e){return this.check(c._minLength(1,e))},max(e,t){return this.check(c._maxLength(e,t))},length(e,t){return this.check(c._length(e,t))},unwrap(){return this.element}});function th(e,t){return c._array(tg,e,t)}function tb(e){return tL(Object.keys(e._zod.def.shape))}let tf=i.$constructor("ZodObject",(e,t)=>{U(),l.$ZodObjectJIT.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.objectProcessor(e,t,n,r),d.util.installLazyProp(e,"shape",e=>e._zod.def.shape,!1)},{keyof(){return tL(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(d.util.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(d.util.mergeDefs(this._zod.def,{catchall:ta()}))},loose(){return this.clone(d.util.mergeDefs(this._zod.def,{catchall:ta()}))},strict(){return this.clone(d.util.mergeDefs(this._zod.def,{catchall:tc()}))},strip(){return this.clone(d.util.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return d.util.extend(this,e)},safeExtend(e){return d.util.safeExtend(this,e)},merge(e){return d.util.merge(this,e)},pick(e){return d.util.pick(this,e)},omit(e){return d.util.omit(this,e)},partial(...e){return d.util.partial(tG,this,e[0])},exactPartial(...e){return d.util.partial(tK,this,e[0],"exactPartial")},required(...e){return d.util.required(t3,this,e[0])}});function ty(e,t){return new tf({type:"object",shape:e??{},...d.util.normalizeParams(t)})}function t_(e,t){return new tf({type:"object",shape:e,catchall:tc(),...d.util.normalizeParams(t)})}function tv(e,t){return new tf({type:"object",shape:e,catchall:ta(),...d.util.normalizeParams(t)})}let tw=i.$constructor("ZodUnion",(e,t)=>{l.$ZodUnion.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.unionProcessor(e,t,n,r),e.options=t.options});function tk(e,t){return new tw({type:"union",options:e,...d.util.normalizeParams(t)})}let tx=i.$constructor("ZodXor",(e,t)=>{tw.init(e,t),l.$ZodXor.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.unionProcessor(e,t,n,r),e.options=t.options});function tZ(e,t){return new tx({type:"union",options:e,inclusive:!1,...d.util.normalizeParams(t)})}let tS=i.$constructor("ZodDiscriminatedUnion",(e,t)=>{tw.init(e,t),l.$ZodDiscriminatedUnion.init(e,t)});function tj(e,t,n){return new tS({type:"union",options:t,discriminator:e,...d.util.normalizeParams(n)})}let tI=i.$constructor("ZodIntersection",(e,t)=>{l.$ZodIntersection.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.intersectionProcessor(e,t,n,r)});function tT(e,t){return new tI({type:"intersection",left:e,right:t})}let tE=i.$constructor("ZodTuple",(e,t)=>{U(),l.$ZodTuple.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.tupleProcessor(e,t,n,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(e=>new tG({type:"optional",innerType:e}))})}});function tO(e,t,n){let r=t instanceof l.$ZodType,i=r?n:t;return new tE({type:"tuple",items:e,rest:r?t:null,...d.util.normalizeParams(i)})}let t$=i.$constructor("ZodRecord",(e,t)=>{U(),l.$ZodRecord.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.recordProcessor(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function tA(e,t,n){return new t$(t&&t._zod?{type:"record",keyType:e,valueType:t,...d.util.normalizeParams(n)}:{type:"record",keyType:M(),valueType:e,...d.util.normalizeParams(t)})}function tC(e,t,n){return new t$({type:"record",keyType:e,valueType:t,...d.util.normalizeParams(n),partial:!0})}function tP(e,t,n){return new t$({type:"record",keyType:e,valueType:t,mode:"loose",...d.util.normalizeParams(n)})}let tz=i.$constructor("ZodMap",(e,t)=>{U(),l.$ZodMap.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.mapProcessor(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(c._minSize(...t)),e.nonempty=t=>e.check(c._minSize(1,t)),e.max=(...t)=>e.check(c._maxSize(...t)),e.size=(...t)=>e.check(c._size(...t))});function tN(e,t,n){return new tz({type:"map",keyType:e,valueType:t,...d.util.normalizeParams(n)})}let tU=i.$constructor("ZodSet",(e,t)=>{U(),l.$ZodSet.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.setProcessor(e,t,n,r),e.min=(...t)=>e.check(c._minSize(...t)),e.nonempty=t=>e.check(c._minSize(1,t)),e.max=(...t)=>e.check(c._maxSize(...t)),e.size=(...t)=>e.check(c._size(...t))});function tR(e,t){return new tU({type:"set",valueType:e,...d.util.normalizeParams(t)})}let tD=i.$constructor("ZodEnum",(e,t)=>{l.$ZodEnum.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.enumProcessor(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new tD({...t,checks:[],...d.util.normalizeParams(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new tD({...t,checks:[],...d.util.normalizeParams(r),entries:i})}});function tL(e,t){return new tD({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...d.util.normalizeParams(t)})}function tM(e,t){return new tD({type:"enum",entries:e,...d.util.normalizeParams(t)})}let tJ=i.$constructor("ZodLiteral",(e,t)=>{l.$ZodLiteral.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.literalProcessor(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
2(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function tq(e,t){return new tJ({type:"literal",values:Array.isArray(e)?e:[e],...d.util.normalizeParams(t)})}let tF=i.$constructor("ZodFile",(e,t)=>{l.$ZodFile.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.fileProcessor(e,t,n,r),e.min=(t,n)=>e.check(c._minSize(t,n)),e.max=(t,n)=>e.check(c._maxSize(t,n)),e.mime=(t,n)=>e.check(c._mime(Array.isArray(t)?t:[t],n))});function tB(e){return c._file(tF,e)}let tV=i.$constructor("ZodTransform",(e,t)=>{U(),l.$ZodTransform.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.transformProcessor(e,t,n,r),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new i.$ZodEncodeError(e.constructor.name);n.addIssue=r=>{"string"==typeof r?n.issues.push(d.util.issue(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),"input"in r||(r.input=n.value),r.inst??(r.inst=e),n.issues.push(d.util.issue(r)))};let o=t.transform(n.value,n);return o instanceof Promise?o.then(e=>(n.value=e,n)):(n.value=o,n)}});function tW(e){return new tV({type:"transform",transform:e})}let tG=i.$constructor("ZodOptional",(e,t)=>{l.$ZodOptional.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.optionalProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function tH(e){return new tG({type:"optional",innerType:e})}let tK=i.$constructor("ZodExactOptional",(e,t)=>{l.$ZodExactOptional.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.optionalProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function tX(e){return new tK({type:"optional",innerType:e})}let tQ=i.$constructor("ZodNullable",(e,t)=>{l.$ZodNullable.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.nullableProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function tY(e){return new tQ({type:"nullable",innerType:e})}function t0(e){return tH(tY(e))}let t1=i.$constructor("ZodDefault",(e,t)=>{l.$ZodDefault.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.defaultProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function t4(e,t){return new t1({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():d.util.shallowClone(t)}})}let t2=i.$constructor("ZodPrefault",(e,t)=>{l.$ZodPrefault.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.prefaultProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function t6(e,t){return new t2({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():d.util.shallowClone(t)}})}let t3=i.$constructor("ZodNonOptional",(e,t)=>{l.$ZodNonOptional.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.nonoptionalProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function t5(e,t){return new t3({type:"nonoptional",innerType:e,...d.util.normalizeParams(t)})}let t8=i.$constructor("ZodSuccess",(e,t)=>{l.$ZodSuccess.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.successProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function t9(e){return new t8({type:"success",innerType:e})}let t7=i.$constructor("ZodCatch",(e,t)=>{l.$ZodCatch.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.catchProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ne(e,t){return new t7({type:"catch",innerType:e,catchValue:"function"==typeof t?t:d.util.constantCatch(t)})}let nt=i.$constructor("ZodNaN",(e,t)=>{l.$ZodNaN.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.nanProcessor(e,t,n,r)});function nn(e){return c._nan(nt,e)}let nr=i.$constructor("ZodPipe",(e,t)=>{l.$ZodPipe.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.pipeProcessor(e,t,n,r),e.in=t.in,e.out=t.out});function ni(e,t){return new nr({type:"pipe",in:e,out:t})}let no=i.$constructor("ZodCodec",(e,t)=>{nr.init(e,t),l.$ZodCodec.init(e,t)});function ns(e,t,n){return new no({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function na(e){let t=e._zod.def;return new no({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}let nl=i.$constructor("ZodPreprocess",(e,t)=>{nr.init(e,t),l.$ZodPreprocess.init(e,t)}),nc=i.$constructor("ZodReadonly",(e,t)=>{l.$ZodReadonly.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.readonlyProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nu(e){return new nc({type:"readonly",innerType:e})}let nd=i.$constructor("ZodTemplateLiteral",(e,t)=>{l.$ZodTemplateLiteral.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.templateLiteralProcessor(e,t,n,r)});function nm(e,t){return new nd({type:"template_literal",parts:e,...d.util.normalizeParams(t)})}let np=i.$constructor("ZodLazy",(e,t)=>{l.$ZodLazy.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.lazyProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function ng(e){return new np({type:"lazy",getter:e})}let nh=i.$constructor("ZodPromise",(e,t)=>{l.$ZodPromise.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.promiseProcessor(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nb(e){return new nh({type:"promise",innerType:e})}let nf=i.$constructor("ZodFunction",(e,t)=>{l.$ZodFunction.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.functionProcessor(e,t,n,r)});function ny(e){return new nf({type:"function",input:Array.isArray(e?.input)?tO(e?.input):e?.input??th(ta()),output:e?.output??ta()})}let n_=i.$constructor("ZodCustom",(e,t)=>{l.$ZodCustom.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p.customProcessor(e,t,n,r)});function nv(e){let t=new m.$ZodCheck({check:"custom"});return t._zod.check=e,t}function nw(e,t){return c._custom(n_,e??(()=>!0),t)}function nk(e,t={}){return c._refine(n_,e,t)}function nx(e,t){return c._superRefine(e,t)}let nZ=c.describe,nS=c.meta,nj=i.$constructor("ZodInstanceOf",(e,t)=>{n_.init(e,t)},{properties(e,t){return this.check(c._properties(e,t))}});function nI(e,t={}){let n=new nj({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...d.util.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}let nT=(...e)=>c._stringbool({Codec:no,Boolean:e1,String:L},...e);function nE(e){let t=ng(()=>tk([M(e),eG(),e4(),tr(),th(t),tA(M(),t)]));return t}function nO(e,t){return new nl({type:"pipe",in:tW(e),out:t})}e.s(["ZodAny",0,ti,"ZodArray",0,tg,"ZodBase64",0,eE,"ZodBase64URL",0,e$,"ZodBigInt",0,e2,"ZodBigIntFormat",0,e3,"ZodBoolean",0,e1,"ZodCIDRv4",0,eS,"ZodCIDRv6",0,eI,"ZodCUID",0,ec,"ZodCUID2",0,ed,"ZodCatch",0,t7,"ZodCodec",0,no,"ZodCreditCard",0,ez,"ZodCustom",0,n_,"ZodCustomStringFormat",0,eM,"ZodDate",0,tm,"ZodDefault",0,t1,"ZodDiscriminatedUnion",0,tS,"ZodE164",0,eC,"ZodEmail",0,W,"ZodEmoji",0,eo,"ZodEnum",0,tD,"ZodExactOptional",0,tK,"ZodFile",0,tF,"ZodFunction",0,nf,"ZodGUID",0,H,"ZodIBAN",0,eU,"ZodIPv4",0,e_,"ZodIPv6",0,ex,"ZodISODate",0,F,"ZodISODateTime",0,q,"ZodISODuration",0,V,"ZodISOTime",0,B,"ZodInstanceOf",0,nj,"ZodIntersection",0,tI,"ZodJWT",0,eD,"ZodKSUID",0,ef,"ZodLazy",0,np,"ZodLiteral",0,tJ,"ZodMAC",0,ew,"ZodMap",0,tz,"ZodNaN",0,nt,"ZodNanoID",0,ea,"ZodNever",0,tl,"ZodNonOptional",0,t3,"ZodNull",0,tn,"ZodNullable",0,tQ,"ZodNumber",0,eW,"ZodNumberFormat",0,eH,"ZodObject",0,tf,"ZodOptional",0,tG,"ZodPipe",0,nr,"ZodPrefault",0,t2,"ZodPreprocess",0,nl,"ZodPromise",0,nh,"ZodReadonly",0,nc,"ZodRecord",0,t$,"ZodSet",0,tU,"ZodString",0,L,"ZodStringFormat",0,J,"ZodSuccess",0,t8,"ZodSymbol",0,e9,"ZodTemplateLiteral",0,nd,"ZodTransform",0,tV,"ZodTuple",0,tE,"ZodType",0,R,"ZodULID",0,ep,"ZodURL",0,en,"ZodUUID",0,X,"ZodUndefined",0,te,"ZodUnion",0,tw,"ZodUnknown",0,ts,"ZodVoid",0,tu,"ZodXID",0,eh,"ZodXor",0,tx,"_ZodString",0,D,"_default",0,t4,"_function",0,ny,"any",0,to,"array",0,th,"base64",0,eO,"base64url",0,eA,"bigint",0,e6,"boolean",0,e4,"catch",0,ne,"check",0,nv,"cidrv4",0,ej,"cidrv6",0,eT,"codec",0,ns,"creditCard",0,eN,"cuid",0,eu,"cuid2",0,em,"currencyCode",0,eB,"custom",0,nw,"date",0,tp,"describe",0,nZ,"discriminatedUnion",0,tj,"e164",0,eP,"email",0,G,"emoji",0,es,"enum",0,tL,"exactOptional",0,tX,"file",0,tB,"float32",0,eX,"float64",0,eQ,"function",0,ny,"guid",0,K,"hash",0,eV,"hex",0,eF,"hostname",0,eq,"httpUrl",0,ei,"iban",0,eR,"instanceof",0,nI,"int",0,eK,"int32",0,eY,"int64",0,e5,"intersection",0,tT,"invertCodec",0,na,"ipv4",0,ev,"ipv6",0,eZ,"json",0,nE,"jwt",0,eL,"keyof",0,tb,"ksuid",0,ey,"lazy",0,ng,"literal",0,tq,"looseObject",0,tv,"looseRecord",0,tP,"mac",0,ek,"map",0,tN,"meta",0,nS,"n
2an",0,nn,"nanoid",0,el,"nativeEnum",0,tM,"never",0,tc,"nonoptional",0,t5,"null",0,tr,"nullable",0,tY,"nullish",0,t0,"number",0,eG,"object",0,ty,"optional",0,tH,"partialRecord",0,tC,"pipe",0,ni,"prefault",0,t6,"preprocess",0,nO,"promise",0,nb,"readonly",0,nu,"record",0,tA,"refine",0,nk,"set",0,tR,"strictObject",0,t_,"string",0,M,"stringFormat",0,eJ,"stringbool",0,nT,"success",0,t9,"superRefine",0,nx,"symbol",0,e7,"templateLiteral",0,nm,"transform",0,tW,"tuple",0,tO,"uint32",0,e0,"uint64",0,e8,"ulid",0,eg,"undefined",0,tt,"union",0,tk,"unknown",0,ta,"url",0,er,"uuid",0,Q,"uuidv4",0,Y,"uuidv6",0,ee,"uuidv7",0,et,"void",0,td,"xid",0,eb,"xor",0,tZ],362201);var n$=e.i(362201);e.s([],342332),e.i(342332),e.s(["endsWith",()=>c._endsWith,"gt",()=>c._gt,"gte",()=>c._gte,"includes",()=>c._includes,"length",()=>c._length,"lowercase",()=>c._lowercase,"lt",()=>c._lt,"lte",()=>c._lte,"maxLength",()=>c._maxLength,"maxSize",()=>c._maxSize,"mime",()=>c._mime,"minLength",()=>c._minLength,"minSize",()=>c._minSize,"multipleOf",()=>c._multipleOf,"negative",()=>c._negative,"nonnegative",()=>c._nonnegative,"nonpositive",()=>c._nonpositive,"normalize",()=>c._normalize,"overwrite",()=>c._overwrite,"positive",()=>c._positive,"properties",()=>c._properties,"property",()=>c._property,"regex",()=>c._regex,"size",()=>c._size,"slugify",()=>c._slugify,"startsWith",()=>c._startsWith,"toLowerCase",()=>c._toLowerCase,"toUpperCase",()=>c._toUpperCase,"trim",()=>c._trim,"uppercase",()=>c._uppercase],430421);var nA=e.i(430421);e.i(789282),e.i(280656),e.s(["decode",0,O,"decodeAsync",0,A,"encode",0,E,"encodeAsync",0,$,"parse",0,S,"parseAsync",0,j,"safeDecode",0,P,"safeDecodeAsync",0,N,"safeEncode",0,C,"safeEncodeAsync",0,z,"safeParse",0,I,"safeParseAsync",0,T,"validate",()=>y.validate,"validateAsync",()=>y.validateAsync],100364),e.i(100364);let nC={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function nP(e){i.config({customError:e})}function nz(){return i.config().customError}n||(n={}),e.s(["ZodFirstPartyTypeKind",0,n,"ZodIssueCode",0,nC,"getErrorMap",0,nz,"setErrorMap",0,nP],306034),e.i(306034),e.s(["$brand",()=>i.$brand,"ZodFirstPartyTypeKind",0,n,"ZodIssueCode",0,nC,"config",()=>i.config,"getErrorMap",0,nz,"setErrorMap",0,nP],458829),e.i(458829);var nN=e.i(650215),nU=e.i(393989);function nR(e){return c._isoDateTime(q,e)}function nD(e){return c._isoDate(F,e)}function nL(e){return c._isoTime(B,e)}function nM(e){return c._isoDuration(V,e)}e.s(["date",0,nD,"datetime",0,nR,"duration",0,nM,"time",0,nL],433832),e.i(433832),e.s(["ZodISODate",0,F,"ZodISODateTime",0,q,"ZodISODuration",0,V,"ZodISOTime",0,B,"date",0,nD,"datetime",0,nR,"duration",0,nM,"time",0,nL],49732);var nJ=e.i(49732);let nq={...n$,...nA,iso:nJ},nF=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function nB(e,t){return e.map((e,n)=>n<t?e:e.optional())}let nV=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),nW=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function nG(e){return"object"==typeof e&&null!==e&&(Array.isArray(e)?e.some(nG):"string"==typeof e.$ref||Object.entries(e).some(([e,t])=>nV.has(e)?nG(t):!!nW.has(e)&&"object"==typeof t&&null!==t&&Object.values(t).some(nG)))}function nH(e){return 1===e?"element":"elements"}function nK(e,t){if(!1!==e)return void 0===e||!0===e?nq.any():nQ(e,t)}let nX=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function nQ(e,t){if("boolean"==typeof e)return e?nq.any():nq.never();let n=function e(t,n){var r,i,o,a;let l;if(void 0!==t.not){if("object"==typeof t.not&&0===Object.keys(t.not).length)return nq.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==t.unevaluatedItems)throw Error("unevaluatedItems is not supported");if(void 0!==t.unevaluatedProperties)throw Error("unevaluatedProperties is not supported");if(void 0!==t.if||void 0!==t.then||void 0!==t.else)throw Error("Conditional schemas (if/then/else) are not supported");if(void 0!==t.dependentSchemas||void 0!==t.dependentRequired)throw Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let e=t.$ref;if(n.refs.has(e))return n.refs.get(e);if(n.processing.has(e))return nq.lazy(()=>
2{if(!n.refs.has(e))throw Error(`Circular reference not resolved: ${e}`);return n.refs.get(e)});n.processing.add(e);let r=nQ(function(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(0===n.length)return t.rootSchema;let r="draft-2020-12"===t.version?"$defs":"definitions";if(n[0]===r){let r=void 0===n[1]?void 0:n[1].replace(/~1/g,"/").replace(/~0/g,"~");if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}(e,n),n);return n.refs.set(e,r),n.processing.delete(e),r}if(void 0!==t.enum){let e=t.enum;if("openapi-3.0"===n.version&&!0===t.nullable&&1===e.length&&null===e[0])return nq.null();if(0===e.length)return nq.never();if(1===e.length)return nq.literal(e[0]);if(e.every(e=>"string"==typeof e))return nq.enum(e);let r=e.map(e=>nq.literal(e));return r.length<2?r[0]:nq.union([r[0],r[1],...r.slice(2)])}if(void 0!==t.const)return nq.literal(t.const);let c=t.type;if(Array.isArray(c)){let r=c.map(r=>e({...t,type:r},n));return 0===r.length?nq.never():1===r.length?r[0]:nq.union(r)}if(!c)return nq.any();switch(c){case"string":{let e=nq.string();if(t.format){let n=t.format;"email"===n?e=e.check(nq.email()):"uri"===n||"uri-reference"===n?e=e.check(nq.url()):"uuid"===n||"guid"===n?e=e.check(nq.uuid()):"date-time"===n?e=e.check(nq.iso.datetime({offset:!0})):"date"===n?e=e.check(nq.iso.date()):"time"===n?e=e.check(nq.regex(nX)):"duration"===n?e=e.check(nq.iso.duration()):"hostname"===n?e=e.check(nq.hostname()):"ipv4"===n?e=e.check(nq.ipv4()):"ipv6"===n?e=e.check(nq.ipv6()):"mac"===n?e=e.check(nq.mac()):"cidr"===n?e=e.check(nq.cidrv4()):"cidr-v6"===n?e=e.check(nq.cidrv6()):"base64"===n?e=e.check(nq.base64()):"base64url"===n?e=e.check(nq.base64url()):"e164"===n?e=e.check(nq.e164()):"credit_card"===n?e=e.check(nq.creditCard()):"iban"===n?e=e.check(nq.iban()):"jwt"===n?e=e.check(nq.jwt()):"emoji"===n?e=e.check(nq.emoji()):"nanoid"===n?e=e.check(nq.nanoid()):"cuid"===n?e=e.check(nq.cuid()):"cuid2"===n?e=e.check(nq.cuid2()):"ulid"===n?e=e.check(nq.ulid()):"xid"===n?e=e.check(nq.xid()):"ksuid"===n&&(e=e.check(nq.ksuid()))}"number"==typeof t.minLength&&(e=e.min(t.minLength)),"number"==typeof t.maxLength&&(e=e.max(t.maxLength)),t.pattern&&(e=e.regex(new RegExp(t.pattern))),l=e;break}case"number":case"integer":{let e="integer"===c?nq.number().int():nq.number();"number"==typeof t.minimum&&!0!==t.exclusiveMinimum&&(e=e.min(t.minimum)),"number"==typeof t.maximum&&!0!==t.exclusiveMaximum&&(e=e.max(t.maximum)),"number"==typeof t.exclusiveMinimum?e=e.gt(t.exclusiveMinimum):!0===t.exclusiveMinimum&&"number"==typeof t.minimum&&(e=e.gt(t.minimum)),"number"==typeof t.exclusiveMaximum?e=e.lt(t.exclusiveMaximum):!0===t.exclusiveMaximum&&"number"==typeof t.maximum&&(e=e.lt(t.maximum)),"number"==typeof t.multipleOf&&(e=e.multipleOf(t.multipleOf)),l=e;break}case"boolean":l=nq.boolean();break;case"null":l=nq.null();break;case"object":{let e={},o=t.properties||{},a=new Set(t.required||[]),c="object"==typeof t.additionalProperties?nQ(t.additionalProperties,n):void 0;for(let[t,r]of Object.entries(o)){let i=nQ(r,n);(0,s.assignProp)(e,t,a.has(t)?i:i.optional())}if(t.patternProperties){let r=t.patternProperties,i=Object.keys(r),o=[];for(let e of i){let t=nQ(r[e],n),i=nq.string().regex(new RegExp(e));o.push(nq.looseRecord(i,t))}let a=[];if(Object.keys(e).length>0&&a.push(nq.object(e).passthrough()),a.push(...o),0===a.length)l=nq.object({}).passthrough();else if(1===a.length)l=a[0];else{let e=nq.intersection(a[0],a[1]);for(let t=2;t<a.length;t++)e=nq.intersection(e,a[t]);l=e}if(!1===t.additionalProperties){let t=Object.keys(e),n=i.map(e=>new RegExp(e)),r=l;l=l.check(e=>{if(!(0,s.isPlainObject)(e.value))return;let i=[];for(let r of Object.keys(e.value))!t.includes(r)&&(n.some(e=>e.test(r))||i.push(r));i.length&&e.issues.push({code:"unrecognized_keys",keys:i,input:e.value,inst:r})})}}else{let n=nq.object(e);l=!1===t.additionalProperties?n.strict():c?n.catchall(c):n.passthrough()}let u=void 0!==t.propertyNames&&!0!==t.propertyNames,d="number"==typeof t.minProperties?t.minProperties:void 0,m="number"==typeof t.maxPro
2perties?t.maxProperties:void 0;if(u||void 0!==d||void 0!==m){let e;u&&(e=nQ("object"==typeof t.propertyNames&&void 0===t.propertyNames.type?{type:"string",...t.propertyNames}:t.propertyNames,n)),r=l,i={keySchema:e,minProperties:d,maxProperties:m},l=nq.transform(e=>e).check(e=>{let t=e.value;if("object"!=typeof t||null===t||Array.isArray(t))return;let n=Object.getOwnPropertyNames(t);if(void 0!==i.minProperties&&n.length<i.minProperties&&e.issues.push({origin:"object",code:"too_small",minimum:i.minProperties,inclusive:!0,message:`Too small: expected object to have >=${i.minProperties} properties`,input:t,inst:r,continue:!0}),void 0!==i.maxProperties&&n.length>i.maxProperties&&e.issues.push({origin:"object",code:"too_big",maximum:i.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${i.maxProperties} properties`,input:t,inst:r,continue:!0}),i.keySchema)for(let t of n){let n=i.keySchema.safeParse(t);n.success||e.issues.push({code:"invalid_key",origin:"record",issues:n.error.issues,input:t,path:[t],continue:!0})}}).pipe(r)}break}case"array":{let e=t.prefixItems,r=t.items;if(e&&Array.isArray(e)){let i="number"==typeof t.minItems?t.minItems:0,o=nB(e.map(e=>nQ(e,n)),i),s=Array.isArray(r)?void 0:nK(r,n),a=nq.tuple(o);l=s?a.rest(s):a,"number"==typeof t.minItems&&(l=l.check(nq.minLength(t.minItems))),"number"==typeof t.maxItems&&(l=l.check(nq.maxLength(t.maxItems)))}else if(Array.isArray(r)){let e="number"==typeof t.minItems?t.minItems:0,i=nB(r.map(e=>nQ(e,n)),e),o=nK(t.additionalItems,n),s=nq.tuple(i);l=o?s.rest(o):s,"number"==typeof t.minItems&&(l=l.check(nq.minLength(t.minItems))),"number"==typeof t.maxItems&&(l=l.check(nq.maxLength(t.maxItems)))}else if(void 0!==r){let e=nQ(r,n),i=nq.array(e);"number"==typeof t.minItems&&(i=i.min(t.minItems)),"number"==typeof t.maxItems&&(i=i.max(t.maxItems)),l=i}else l=nq.array(nq.any());(!0===t.uniqueItems||void 0!==t.contains)&&(o=l,a={uniqueItems:!0===t.uniqueItems,containsSchema:void 0!==t.contains?nQ(t.contains,n):void 0,minContains:"number"==typeof t.minContains?t.minContains:void 0,maxContains:"number"==typeof t.maxContains?t.maxContains:void 0},l=nq.transform(e=>e).check(e=>{let t=e.value;if(Array.isArray(t)){if(!0===a.uniqueItems){let n=new Map;for(let r=0;r<t.length;r++){let i=function e(t,n){if(null===t)return"z";let r=typeof t;if("object"!==r){if("number"===r&&Number.isNaN(t))return null;let e=String(t);return`${r[0]}${e.length}:${e}`}if(n.has(t))return null;n.add(t);try{if(Array.isArray(t)){let r=[];for(let i of t){let t=e(i,n);if(null===t)return null;r.push(t)}return`a${r.length}:[${r.join(",")}]`}let r=Object.keys(t).sort(),i=[];for(let o of r){let r=e(t[o],n);if(null===r)return null;i.push(`${o.length}:${o}=${r}`)}return`o${i.length}:{${i.join(",")}}`}finally{n.delete(t)}}(t[r],new Set);if(null===i)continue;let o=n.get(i);if(void 0===o){n.set(i,r);continue}e.issues.push({code:"custom",message:`Array items must be unique: element at index ${r} duplicates the one at index ${o}`,input:t,path:[r],continue:!0})}}if(a.containsSchema){let n=a.minContains??1,r=void 0!==a.maxContains?a.maxContains+1:1/0,i=0;for(let e of t)if(a.containsSchema.safeParse(e).success&&++i>=r)break;i<n&&e.issues.push({code:"custom",message:`Array must contain at least ${n} matching ${nH(n)}; found ${i}`,input:t,continue:!0}),void 0!==a.maxContains&&i>a.maxContains&&e.issues.push({code:"custom",message:`Array must contain at most ${a.maxContains} matching ${nH(a.maxContains)}`,input:t,continue:!0})}}}).pipe(o));break}default:throw Error(`Unsupported type: ${c}`)}return l}(e,t),r=e.type||void 0!==e.enum||void 0!==e.const;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>nQ(e,t)),o=nq.union(i);n=r?nq.intersection(n,o):o}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>nQ(e,t)),o=nq.xor(i);n=r?nq.intersection(n,o):o}if(e.allOf&&Array.isArray(e.allOf))if(0===e.allOf.length)n=r?n:nq.any();else{let i=r?n:nQ(e.allOf[0],t),o=+!r;for(let n=o;n<e.allOf.length;n++)i=nq.intersection(i,nQ(e.allOf[n],t));n=i}!0===e.nullable&&"openapi-3.0"===t.version&&(n=nq.nullable(n)),!0===e.readOnly&&(n=nq.readonly(n)),void 0!==e.default&&(n=n.default(e.default));let i={};for(let t of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])t in e&&(i[t]=e[t]);for(let t of["contentEncoding","contentMediaType","contentSchema"])t in e&&(i[t]=e[t]);if("object"===e.type&&void 0===e.$ref)for(let t of(void 0===e.propertyNames||nG(e.propertyNames)||(i.propertyNames=e.propertyNames),["minProperties","maxProperties"]))void 0!==e[t]&&(i[t]=e[t]);if("array"===e.type&&void 0===e.$ref)for(let t of(void 0===e.contains||nG(e.contains)||(i.contains=e.contains),["uniqueItems","minContains","maxContains"]))void 0!==e[t]&&(i[t]=e[t]);for(let t of Object.keys(e))nF.has(t)||(0,s.assignProp)(i,t,e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}var nY=e.i(479546);function n0(e){return function(e,t){if(!t?.length)return e;let n=e._zod.def;return(0,s.clone)(e,(0,s.mergeDefs)(n,{checks:[...n.checks??[],...t]}),{parent:!0})}(e.out,e.checks)}var n1=e.i(554580);e.s(["bigint",0,function(e){return c._coercedBigint(e2,e)},"boolean",0,function(e){return c._coercedBoolean(e1,e)},"date",0,function(e){return c._coercedDate(tm,e)},"number",0,function(e){return c._coercedNumber(eW,e)},"string",0,function(e){return c._coercedString(L,e)}],313657);var n4=e.i(313657);e.s(["$brand",()=>i.$brand,"$input",()=>a.$input,"$output",()=>a.$output,"INVALID",()=>nU.INVALID,"NEVER",()=>i.NEVER,"TimePrecision",()=>nN.TimePrecision,"ZodAny",0,ti,"ZodArray",0,tg,"ZodBase64",0,eE,"ZodBase64URL",0,e$,"ZodBigInt",0,e2,"ZodBigIntFormat",0,e3,"ZodBoolean",0,e1,"ZodCIDRv4",0,eS,"ZodCIDRv6",0,eI,"ZodCUID",0,ec,"ZodCUID2",0,ed,"ZodCatch",0,t7,"ZodCodec",0,no,"ZodCompileAsyncError",()=>nU.ZodCompileAsyncError,"ZodCompileUnsupportedError",()=>nU.ZodCompileUnsupportedError,"ZodCreditCard",0,ez,"ZodCustom",0,n_,"ZodCustomStringFormat",0,eM,"ZodDate",0,tm,"ZodDefault",0,t1,"ZodDiscriminatedUnion",0,tS,"ZodE164",0,eC,"ZodEmail",0,W,"ZodEmoji",0,eo,"ZodEnum",0,tD,"ZodError",0,x,"ZodExactOptional",0,tK,"ZodFile",0,tF,"ZodFirstPartyTypeKind",0,n,"ZodFunction",0,nf,"ZodGUID",0,H,"ZodIBAN",0,eU,"ZodIPv4",0,e_,"ZodIPv6",0,ex,"ZodISODate",0,F,"ZodISODateTime",0,q,"ZodISODuration",0,V,"ZodISOTime",0,B,"ZodInstanceOf",0,nj,"ZodIntersection",0,tI,"ZodIssueCode",0,nC,"ZodJWT",0,eD,"ZodKSUID",0,ef,"ZodLazy",0,np,"ZodLiteral",0,tJ,"ZodMAC",0,ew,"ZodMap",0,tz,"ZodNaN",0,nt,"ZodNanoID",0,ea,"ZodNever",0,tl,"ZodNonOptional",0,t3,"ZodNull",0,tn,"ZodNullable",0,tQ,"ZodNumber",0,eW,"ZodNumberFormat",0,eH,"ZodObject",0,tf,"ZodOptional",0,tG,"ZodPipe",0,nr,"ZodPrefault",0,t2,"ZodPreprocess",0,nl,"ZodPromise",0,nh,"ZodReadonly",0,nc,"ZodRealError",0,Z,"ZodRecord",0,t$,"ZodSet",0,tU,"ZodString",0,L,"ZodStringFormat",0,J,"ZodSuccess",0,t8,"ZodSymbol",0,e9,"ZodTemplateLiteral",0,nd,"ZodTransform",0,tV,"ZodTuple",0,tE,"ZodType",0,R,"ZodULID",0,ep,"ZodURL",0,en,"ZodUUID",0,X,"ZodUndefined",0,te,"ZodUnion",0,tw,"ZodUnknown",0,ts,"ZodVoid",0,tu,"ZodXID",0,eh,"ZodXor",0,tx,"_ZodString",0,D,"_default",0,t4,"_function",0,ny,"any",0,to,"array",0,th,"base64",0,eO,"base64url",0,eA,"bigint",0,e6,"boolean",0,e4,"catch",0,ne,"check",0,nv,"cidrv4",0,ej,"cidrv6",0,eT,"clone",()=>s.clone,"codec",0,ns,"coerce",0,n4,"compile",()=>nU.compile,"config",()=>
2i.config,"core",0,r,"creditCard",0,eN,"cuid",0,eu,"cuid2",0,em,"currencyCode",0,eB,"custom",0,nw,"date",0,tp,"decode",0,O,"decodeAsync",0,A,"deepPartial",0,function(e){return(0,nY.visit)(e,{object:e=>e.partial(),union:e=>{let t=e._zod.def;return void 0===t.discriminator?e:tk(t.options)}})},"describe",0,nZ,"discriminatedUnion",0,tj,"e164",0,eP,"email",0,G,"emoji",0,es,"encode",0,E,"encodeAsync",0,$,"endsWith",()=>c._endsWith,"enum",0,tL,"exactOptional",0,tX,"file",0,tB,"flattenError",()=>_.flattenError,"float32",0,eX,"float64",0,eQ,"formatError",()=>_.formatError,"fromJSONSchema",0,function(e,t){var n,r;let i,o;if("boolean"==typeof e)return e?nq.any():nq.never();try{i=JSON.parse(JSON.stringify(e))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let s={version:(n=i,r=t?.defaultTarget,"https://json-schema.org/draft/2020-12/schema"===(o=n.$schema)?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===o?"draft-7":"http://json-schema.org/draft-04/schema#"===o?"draft-4":r??"draft-2020-12"),defs:i.$defs||i.definitions||{},refs:new Map,processing:new Set,rootSchema:i,registry:t?.registry??a.globalRegistry};return nQ(i,s)},"function",0,ny,"getDiscriminatedOption",()=>l.getDiscriminatedOption,"getErrorMap",0,nz,"globalRegistry",()=>a.globalRegistry,"gt",()=>c._gt,"gte",()=>c._gte,"guid",0,K,"hash",0,eV,"hex",0,eF,"hostname",0,eq,"httpUrl",0,ei,"iban",0,eR,"includes",()=>c._includes,"input",0,function(e){return(0,nY.visit)(e,{pipe:e=>{var t;return(t=e._zod.def).in._zod.traits.has("$ZodTransform")?n0(t):t.in},default:(e,t)=>t?tH(e._zod.def.innerType):e,catch:(e,t)=>t?e._zod.def.innerType:e})},"instanceof",0,nI,"int",0,eK,"int32",0,eY,"int64",0,e5,"intersection",0,tT,"invertCodec",0,na,"ipv4",0,ev,"ipv6",0,eZ,"iso",0,nJ,"json",0,nE,"jwt",0,eL,"keyof",0,tb,"ksuid",0,ey,"lazy",0,ng,"length",()=>c._length,"literal",0,tq,"locales",0,n1,"looseObject",0,tv,"looseRecord",0,tP,"lowercase",()=>c._lowercase,"lt",()=>c._lt,"lte",()=>c._lte,"mac",0,ek,"map",0,tN,"maxLength",()=>c._maxLength,"maxSize",()=>c._maxSize,"memoizer",()=>o.memoizer,"meta",0,nS,"mime",()=>c._mime,"minLength",()=>c._minLength,"minSize",()=>c._minSize,"multipleOf",()=>c._multipleOf,"nan",0,nn,"nanoid",0,el,"nativeEnum",0,tM,"negative",()=>c._negative,"never",0,tc,"nonnegative",()=>c._nonnegative,"nonoptional",0,t5,"nonpositive",()=>c._nonpositive,"normalize",()=>c._normalize,"null",0,tr,"nullable",0,tY,"nullish",0,t0,"number",0,eG,"object",0,ty,"optional",0,tH,"output",0,function(e){return(0,nY.visit)(e,{pipe:e=>n0(e._zod.def),prefault:(e,t)=>t?e._zod.def.innerType:e})},"overwrite",()=>c._overwrite,"parse",0,S,"parseAsync",0,j,"partialRecord",0,tC,"pipe",0,ni,"positive",()=>c._positive,"prefault",0,t6,"preprocess",0,nO,"prettifyError",()=>_.prettifyError,"promise",0,nb,"properties",()=>c._properties,"property",()=>c._property,"readonly",0,nu,"record",0,tA,"refine",0,nk,"regex",()=>c._regex,"regexes",()=>u.regexes,"registry",()=>a.registry,"safeDecode",0,P,"safeDecodeAsync",0,N,"safeEncode",0,C,"safeEncodeAsync",0,z,"safeParse",0,I,"safeParseAsync",0,T,"set",0,tR,"setErrorMap",0,nP,"size",()=>c._size,"slugify",()=>c._slugify,"startsWith",()=>c._startsWith,"strictObject",0,t_,"string",0,M,"stringFormat",0,eJ,"stringbool",0,nT,"success",0,t9,"superRefine",0,nx,"symbol",0,e7,"templateLiteral",0,nm,"toJSONSchema",()=>p.toJSONSchema,"toLowerCase",()=>c._toLowerCase,"toUpperCase",()=>c._toUpperCase,"toZod",()=>s.toZod,"transform",0,tW,"treeifyError",()=>_.treeifyError,"trim",()=>c._trim,"tuple",0,tO,"uint32",0,e0,"uint64",0,e8,"ulid",0,eg,"undefined",0,tt,"union",0,tk,"unknown",0,ta,"uppercase",()=>c._uppercase,"url",0,er,"util",()=>d.util,"uuid",0,Q,"uuidv4",0,Y,"uuidv6",0,ee,"uuidv7",0,et,"validate",()=>y.validate,"validateAsync",()=>y.validateAsync,"void",0,td,"withParser",()=>nU.withParser,"xid",0,eb,"xor",0,tZ],722219);var n2=e.i(722219),n2=n2;let n6={CREATE_POST:"linkedin_create_post",UPLOAD_IMAGE:"linkedin_upload_image",UPLOAD_DOCUMENT:"linkedin_upload_document",DELETE_POST:"linkedin_delete_post",GET_MY_PROFILE:"linkedin_get_my_profile",LOGOUT:"linkedin_logout"};Object.values(n6);let n3={CREATE_TWEET:"x_create_tweet",DELETE_TWEET:"x_delete_tweet",GET_MY_TWEETS:"x_get_my_tweets",GET_TIMELINE:"x_get_timeline",GET_MENTIONS:"x_get_mentions",SEARCH_TWEETS:"x_search_tweets",GET_MY_PROFILE:"x_get_my_profile",GET_QUOTE_TWEETS:"x_get_quote_tweets",GET_TWEET:"x_get_tweet",RETWEET:"x_retweet",UNDO_RETWEET:"x_undo_retweet",LIKE_TWEET:"x_like_tweet",UNLIKE_TWEET:"x_unlike_tweet",QUOTE_TWEET:"x_quote_tweet",FOLLOW_USER:"x_follow_user",UNFOLLOW_USER:"x_unfollow_user",LOGOUT:"x_logout",CREATE_ARTICLE:"x_create_article"};Object.values(n3),n3.SEARCH_TWEETS,n3.GET_TWEET,n3.GET_QUOTE_TWEETS,n3.CREATE_TWEET,n3.QUOTE_TWEET,n3.CREATE_ARTICLE,n6.CREATE_POST;let n5=n2.string().trim().min(1).max(128),n8=n2.string().trim().min(1).max(2e4),n9=n2.string().trim().max(2e4),n7=n2.string().trim().min(1).max(120),re=n2.string().min(1).max(35e6).refine(e=>e.length%4==0,{message:"data must be valid base64"}).refine(e=>/^[A-Za-z0-9+/]+={0,2}$/.test(e),{message:"data must be valid base64"}),rt=n2.enum(["web","slack","telegram"]);n2.enum(["anthropic_managed","mastra"]),n2.enum(["paragraph_api_key"]);let rn=n2.union([n2.object({type:n2.literal("image"),source:n2.object({type:n2.literal("base64"),media_type:n7,data:re}).strict()}).strict(),n2.object({type:n2.literal("document"),source:n2.object({type:n2.literal("base64"),media_type:n7,data:re}).strict(),title:n2.string().trim().min(1).max(255).optional()}).strict(),n2.object({type:n2.literal("document"),source:n2.object({type:n2.literal("text"),media_type:n2.literal("text/plain"),data:n8}).strict(),title:n2.string().trim().min(1).max(255).optional()}).strict()]);n2.discriminatedUnion("hasAgent",[n2.object({hasAgent:n2.literal(!1)}),n2.object({hasAgent:n2.literal(!0),aiUserId:n2.string(),webChannelId:n2.string()})]);let rr=n2.object({sessionId:n2.string(),title:n2.string().nullable(),lastMessage:n2.string().nullable(),createdAt:n2.string(),updatedAt:n2.string(),origin:rt,automated:n2.boolean().optional()}),ri=n2.object({path:n2.string().min(1),filename:n2.string().min(1).max(255),mime:n7,size:n2.number().int().nonnegative().optional(),fileId:n2.string().optional(),previewUrl:n2.string().optional(),label:n2.string().max(120).optional()}),ro=n2.object({suggestionId:n2.string()}),rs=n2.object({name:n2.string().min(1),description:n2.string().optional(),primary:n2.string().min(1),background:n2.string().min(1),secondary:n2.string().optional(),accent:n2.string().optional(),heading:n2.string().min(1),body:n2.string().min(1)}),ra=n2.object({directions:n2.array(rs).optional()}),rl=n2.object({kind:n2.string().min(1),refId:n2.string().min(1),data:ra.optional()}
2),rc=n2.object({id:n2.string(),name:n2.string(),input:n2.unknown().optional(),output:n2.unknown().optional(),status:n2.enum(["ok","error"]),errorMessage:n2.string().optional(),startedAt:n2.string(),endedAt:n2.string().optional(),subAgent:n2.string().optional()}),ru=n2.object({text:n2.string(),subAgent:n2.string().optional()}),rd=n2.object({index:n2.number().int().nonnegative(),startedAt:n2.string(),endedAt:n2.string().optional(),finishReason:n2.string().optional()}),rm=n2.discriminatedUnion("kind",[n2.object({kind:n2.literal("text"),body:n2.string()}),n2.object({kind:n2.literal("tool"),call:rc}),n2.object({kind:n2.literal("thinking"),blocks:n2.array(ru),startedAt:n2.string(),endedAt:n2.string().optional()})]),rp=n2.object({id:n2.string(),role:n2.enum(["user","assistant"]),content:n2.string(),createdAt:n2.string(),attachments:n2.array(ri).optional(),artifactRefs:n2.array(ro).optional(),messageRefs:n2.array(rl).optional(),toolCalls:n2.array(rc).optional(),thinking:n2.array(ru).optional(),steps:n2.array(rd).optional(),timeline:n2.array(rm).optional()});n2.object({sessionId:n2.string(),title:n2.string().nullable(),postId:n2.string().nullable(),createdAt:n2.string(),updatedAt:n2.string(),origin:rt,messages:n2.array(rp),activeArtifactId:n2.string().nullable(),onboardingCompleted:n2.boolean().optional()});let rg=n2.object({title:n2.string().nullable().optional(),subtitle:n2.string().nullable().optional(),preview:n2.string().nullable().optional(),json:n2.string().optional(),staticHtml:n2.string().optional(),text:n2.string().optional(),coverImageUrl:n2.string().nullable().optional(),slug:n2.string().nullable().optional()});n2.discriminatedUnion("type",[n2.object({type:n2.literal("chunk"),text:n2.string()}),n2.object({type:n2.literal("thinking"),text:n2.string().optional(),subAgent:n2.string().optional()}),n2.object({type:n2.literal("tool_use"),name:n2.string(),tool_use_id:n2.string().optional(),input:n2.unknown().optional(),subAgent:n2.string().optional()}),n2.object({type:n2.literal("tool_result"),name:n2.string(),tool_use_id:n2.string(),ok:n2.boolean(),error:n2.string().optional(),output:n2.unknown().optional(),subAgent:n2.string().optional()}),n2.object({type:n2.literal("artifact_created"),suggestion_id:n2.string(),tool_use_id:n2.string().optional()}),n2.object({type:n2.literal("chat_row"),kind:n2.string().min(1),refId:n2.string().min(1),data:ra.optional(),tool_use_id:n2.string().optional()}),n2.object({type:n2.literal("file_attached"),attachment:ri,tool_use_id:n2.string().optional()}),n2.object({type:n2.literal("post_updated"),post_id:n2.string().optional(),fields:rg.optional(),tool_use_id:n2.string().optional()}),n2.object({type:n2.literal("post_created"),post_id:n2.string(),tool_use_id:n2.string().optional()}),n2.object({type:n2.literal("panel_changed"),action:n2.enum(["open","close"]),target:n2.enum(["post","artifact","site"]).optional(),post_id:n2.string().optional(),suggestion_id:n2.string().optional(),tool_use_id:n2.string().optional()}),n2.object({type:n2.literal("requires_action"),event_ids:n2.array(n2.string())}),n2.object({type:n2.literal("step_start"),index:n2.number().int().nonnegative()}),n2.object({type:n2.literal("step_finish"),index:n2.number().int().nonnegative(),finishReason:n2.string().optional()}),n2.object({type:n2.literal("done")}),n2.object({type:n2.literal("error"),message:n2.string(),errorCode:n2.string().optional()}),n2.object({type:n2.literal("limit"),message:n2.string(),reason:n2.literal("quota").optional(),entitlement:n2.string().optional(),upgradeUrl:n2.string().optional()})]),n2.object({userMessage:n2.string(),attachments:n2.array(n2.object({path:n2.string().min(1),filename:n2.string().min(1).max(255),mime:n7,size:n2.number().int().nonnegative().optional(),previewUrl:n2.string().optional()})).max(10).optional()});let rh=n2.union([n2.object({type:n2.literal("text"),text:n8}).strict(),rn,n2.object({type:n2.literal("mounted_file"),path:n2.string().trim().min(1).max(1020),filename:n2.string().trim().min(1).max(255),mime:n7}).strict()]),rb=n2.object({tool_use_id:n5,ok:n2.boolean(),content:n9.optional(),error:n9.optional()}).strict(),rf=n2.object({event_id:n5,result:n2.enum(["allow","deny"])}).strict();n2.object({channelId:n5.optional(),firstMessage:n8.optional(),threadId:n5.optional()}).strict(),n2.object({channelId:n5.optional(),content:n2.array(rh).min(1).max(50)}).strict(),n2.object({channelId:n5.optional(),results:n2.array(rb).min(1).max(50).optional(),confirmations:n2.array(rf).min(1).max(50).optional()}).strict().superRefine((e,t)=>
2{e.results||e.confirmations||t.addIssue({code:n2.ZodIssueCode.custom,message:"results or confirmations is required",path:["results"]})}),n2.object({channelId:n5.optional(),filename:n2.string().trim().min(1).max(255),mime:n7,encoding:n2.literal("base64").optional(),data:re}).strict(),n2.object({fileId:n2.string(),filename:n2.string(),mime:n2.string(),size:n2.number(),mountPath:n2.string(),previewUrl:n2.string().optional()});let ry=n2.object({aiUserId:n2.string(),channelId:n2.string(),displayName:n2.string(),publicationHandle:n2.string(),telegramUserId:n2.string().nullable(),telegramUsername:n2.string().nullable()});n2.object({blogId:n2.string().trim().min(1)}).strict(),n2.object({code:n2.string(),deepLink:n2.string(),expiresAt:n2.string()}),n2.object({connected:n2.boolean(),username:n2.string().nullable(),connectedAt:n2.string().nullable()}),n2.object({code:n2.string().trim().min(1).max(128),telegramChatId:n2.string().trim().min(1).max(128),telegramUserId:n2.string().trim().min(1).max(128).nullable(),telegramUsername:n2.string().trim().max(128).nullable()}).strict(),ry.extend({}),n2.object({aiUserId:n2.string(),webChannelId:n2.string()}),n2.object({sessions:n2.array(rr)}),n2.enum(["all","published","scheduled","unpublished","archived"]);let r_=n2.enum(["published","scheduled","draft","unlisted","archived"]),rv=n2.object({groupId:n2.string(),id:n2.string(),title:n2.string().nullable(),subtitle:n2.string().nullable(),preview:n2.string().nullable(),coverImageUrl:n2.string().nullable(),createdAt:n2.string().nullable(),updatedAt:n2.string(),publishedAt:n2.string().nullable(),scheduledAt:n2.string().nullable(),slug:n2.string().nullable(),statuses:n2.array(r_)});n2.object({posts:n2.array(rv),nextOffset:n2.number().nullable()});let rw=n2.enum(["daily","weekly","monthly","all"]),rk=n2.object({id:n2.string(),title:n2.string().nullable(),slug:n2.string().nullable(),publishedAt:n2.string().nullable()}),rx=n2.object({activeSubscribers:n2.number(),averageReadTimeSeconds:n2.number(),newsletterClickRate:n2.number(),newsletterDeliveryRate:n2.number(),newsletterErrors:n2.number(),newsletterOpenRate:n2.number(),newsletterSends:n2.number(),newsletterUniqueClicks:n2.number(),newsletterUniqueOpens:n2.number(),newsletterUnsubscribes:n2.number(),postViews:n2.number(),publishedPosts:n2.number(),totalReadTimeSeconds:n2.number(),uniqueVisitors:n2.number()}),rZ=n2.object({averageReadTimeSeconds:n2.number(),bucketStart:n2.string(),newsletterClickRate:n2.number(),newsletterOpenRate:n2.number(),newsletterSends:n2.number(),newsletterUniqueClicks:n2.number(),newsletterUniqueOpens:n2.number(),postViews:n2.number(),totalReadTimeSeconds:n2.number(),uniqueVisitors:n2.number()}),rS=n2.object({averageReadTimeSeconds:n2.number(),id:n2.string(),newsletterClickRate:n2.number(),newsletterOpenRate:n2.number(),newsletterSends:n2.number(),newsletterUniqueClicks:n2.number(),newsletterUniqueOpens:n2.number(),postViews:n2.number(),publishedAt:n2.string().nullable(),slug:n2.string().nullable(),title:n2.string().nullable(),totalReadTimeSeconds:n2.number(),uniqueVisitors:n2.number()});n2.object({generatedAt:n2.string(),period:rw,posts:n2.array(rk),selectedPostId:n2.string().nullable(),series:n2.array(rZ),summary:rx,topPosts:n2.array(rS)}),n2.enum(["active","unsubscribed","past_due","disabled","all"]),n2.enum(["all","organic","imported","manual"]);let rj=n2.enum(["ACTIVE","UNSUBSCRIBED","PAST_DUE","DISABLED"]),rI=n2.enum(["MANUALLY_ADDED","IMPORTED","ORGANIC"]),rT=n2.object({avatarUrl:n2.string().nullable(),createdAt:n2.number().nullable(),displayName:n2.string().nullable(),email:n2.string().nullable(),id:n2.string(),paid:n2.boolean(),receivesNewsletter:n2.boolean(),segmentIds:n2.array(n2.string()),source:rI.nullable(),status:rj,updatedAt:n2.number().nullable(),userId:n2.string(),walletAddress:n2.string().nullable()});n2.object({generatedAt:n2.string(),limit:n2.number(),offset:n2.number(),subscribers:n2.array(rT),totalRecords:n2.number()});let rE=n2.object({description:n2.string().nullable(),followersCount:n2.number(),followingCount:n2.number(),id:n2.string(),name:n2.string(),tweetCount:n2.number(),username:n2.string()}),rO=n2.object({attributedPageViews:n2.number(),averageEngagements:n2.number(),bookmarkCount:n2.number(),clickThroughRate:n2.number(),engagementRate:n2.number(),followerCount:n2.number(),followingCount:n2.number(),impressionCount:n2.number(),likeCount:n2.number(),postsAnalyzed:n2.number(),quoteCount:n2.number(),replyCount:n2.number(),retweetCount:n2.number(),totalEngagements:n2.number(),tweetCount:n2.number()}),r$=n2.object({attributedPageViews:n2.number(),bookmarkCount:n2.number(),createdAt:n2.string().nullable(),engagementCount:n2.number(),id:n2.string(),impressionCount:n2.number(),likeCount:n2.number(),quoteCount:n2.number(),replyCount:n2.number(),retweetCount:n2.number(),text:n2.string()}),rA=n2.object({accountId:n2.string(),username:n2.string().nullable(),name:n2.string().nullable(),label:n2.string().nullable(),isDefault:n2.boolean()});n2.discriminatedUnion("connected",[n2.object({connectUrl:n2.string().nullable(),connected:n2.literal(!1),status:n2.enum(["needs_agent","disconnected"])}),n2.object({accounts:n2.array(rA),accountId:n2.string(),cachedUntil:n2.string(),connected:n2.literal(!0),generatedAt:n2.string(),profile:rE,recentTweets:n2.array(r$),status:n2.literal("connected"),summary:rO})]);let rC=n2.object({emailClicks:n2.number(),medium:n2.string().nullable(),openRate:n2.number().nullable(),pageViews:n2.number(),postId:n2.string().nullable(),postTitle:n2.string().nullable(),source:n2.string().nullable()}),rP=n2.object({conversionRate:n2.number(),emailClicks:n2.number(),openRate:n2.number(),pageViews:n2.number(),signups:n2.number()}),rz=n2.object({bucketStart:n2.string(),newsletterViews:n2.number(),otherViews:n2.number(),xViews:n2.number()});n2.object({generatedAt:n2.string(),period:rw,rows:n2.array(rC),series:n2.array(rz),summary:rP});let rN=n2.enum(["search","ai"]),rU=n2.object({aiVisits:n2.number(),bucketStart:n2.string(),crawlerHits:n2.number(),searchVisits:n2.number()}),rR=n2.object({channel:rN,lastVisitAt:n2.string().nullable(),source:n2.string(),visits:n2.number()}),rD=n2.object({botName:n2.string(),category:n2.enum(["training","search","assistant"]).nullable(),hits:n2.number(),lastHitAt:n2.string().nullable(),operator:n2.string().nullable()}),rL=n2.object({aiVisits:n2.number(),postId:n2.string().nullable(),postTitle:n2.string().nullable(),searchVisits:n2.number()}),rM=n2.object({hits:n2.number(),path:n2.string()}),rJ=n2.object({aiVisits:n2.number(),crawlerHits:n2.number(),searchVisits:n2.number(),topAiSource:n2.string().nullable(),topCrawler:n2.string().nullable(),topSearchSource:n2.string().nullable()});n2.object({crawlerTrackingAvailable:n2.boolean(),crawlers:n2.array(rD),generatedAt:n2.string(),period:rw,series:n2.array(rU),sources:n2.array(rR),summary:rJ,topContent:n2.array(rL),topCrawledPaths:n2.array(rM)}),n2.object({sessionId:n2.string()});let rq=n2.object({fileId:n2.string(),filename:n2.string(),mime:n2.string().nullable(),size:n2.number().nullable(),mountPath:n2.string().nullable(),createdAt:n2.string(),downloadable:n2.boolean(),previewUrl:n2.string().optional()});n2.object({files:n2.array(rq)}),n2.object({filename:n2.string().trim().min(1).max(255)}),n2.object({file:rq}),n2.object({folder:n2.string().max(1020)}),n2.object({file:rq}),n2.object({ok:n2.literal(!0)});let rF=n2.enum(["once","recurring"]);n2.enum(["active","paused","completed","failed","running"]);let rB=n2.object({id:n2.string(),aiUserId:n2.string(),slackChannelId:n2.string().nullish(),prompt:n2.string(),type:rF,cronExpression:n2.string().nullable(),timezone:n2.string(),status:n2.string(),nextRunAt:n2.string(),lastRunAt:n2.string().nullable(),lastError:n2.string().nullable(),runCount:n2.number(),createdAt:n2.string(),metadata:n2.unknown().nullable(),lastRunChatSessionId:n2.string().nullable()});n2.object({tasks:n2.array(rB)});let rV=n2.enum(["post_published","post_scheduled","post_unpublished","post_archived","subscriber_gained"]),rW=n2.enum(["posts","audie
2nce"]),rG=n2.object({eventType:rV,label:n2.string(),description:n2.string(),group:rW}),rH=n2.enum(["pre_publish","scheduled","event"]),rK=n2.enum(["read_publication","web_access","draft_posts","email_writer","post_to_x","draft_social_posts","read_x_timeline","reply_to_x_mentions"]),rX=n2.enum(["source","output","delivery","public_action"]),rQ=n2.enum(["not_required","authorized","needs_review"]);n2.object({definitionHash:n2.string().min(1),confirmedAt:n2.string().datetime(),confirmationSource:n2.enum(["writer","agent_explicit_request"]),publicToolKeys:n2.array(n2.string().min(1)).min(1).max(20),xUserId:n2.string().min(1).optional(),xUsername:n2.string().min(1).optional()}).strict();let rY=n2.enum(["preset","custom","imported"]),r0=n2.enum(["seo","writing","growth_distribution"]),r1=n2.enum(["fastest","fast","smart"]),r4=n2.enum(["pre_publish_check_v1","scheduled_text_v1"]),r2=n2.object({schemaVersion:n2.literal(1),instructions:n2.string().trim().min(1).max(2e4),modelTier:r1,memoryMode:n2.enum(["writer_context","none"]),maxSteps:n2.number().int().min(1).max(12),workspaceEnabled:n2.boolean(),capabilities:n2.object({customTools:n2.array(n2.string()).max(20),mcpTools:n2.record(n2.string(),n2.array(n2.string()).max(20))}),outputContract:r4,skills:n2.array(n2.string()).max(4).optional(),mcpAccess:n2.object({disabledServerIds:n2.array(n2.string().min(1)).max(50).optional(),writeTools:n2.array(n2.object({serverId:n2.string().min(1),toolName:n2.string().min(1)})).max(50).optional()}).optional()}),r6=n2.enum(["queued","running","succeeded","failed","skipped"]),r3=n2.object({id:n2.string(),automationId:n2.string(),triggerType:rH,status:r6,chatSessionId:n2.string().nullable(),resultSummary:n2.string().nullable(),lastError:n2.string().nullable(),createdAt:n2.string(),startedAt:n2.string().nullable(),finishedAt:n2.string().nullable()}),r5=n2.object({id:n2.string(),blogId:n2.string(),name:n2.string(),description:n2.string(),iconKey:n2.string(),presetKey:n2.string().nullable(),category:r0.nullable(),source:rY,triggerType:rH,eventType:rV.nullable().default(null),delaySeconds:n2.number().int().min(0).max(2592e3).nullable().default(null),enabled:n2.boolean(),required:n2.boolean(),gateEnabled:n2.boolean().default(!1),definition:r2,definitionVersion:n2.number().int().positive(),capabilityIds:n2.array(rK),authorizationState:rQ,publicActionSummaries:n2.array(n2.string()),cronExpression:n2.string().nullable(),timezone:n2.string().nullable(),nextRunAt:n2.string().nullable(),playbookInstallationId:n2.string().nullable().default(null),playbookCatalogKey:n2.string().nullable().default(null),latestRun:r3.nullable(),createdAt:n2.string(),updatedAt:n2.string()});n2.object({automations:n2.array(r5)});let r8=n2.enum(["email_recipient","x_account"]),r9=n2.object({kind:r8,ready:n2.boolean(),label:n2.string()}),r7=n2.object({id:rK,label:n2.string(),description:n2.string(),triggers:n2.array(rH),group:rX,requiresConfirmation:n2.boolean(),requirement:r9.nullable()});n2.object({capabilities:n2.array(r7),lifecycleEvents:n2.array(rG).default([])}),n2.object({runs:n2.array(r3)});let ie=n2.object({accountId:n2.string(),username:n2.string().nullable(),name:n2.string().nullable(),profileImageUrl:n2.string().nullable(),isDefault:n2.boolean(),needsReconnect:n2.boolean(),voice:n2.string().nullable().optional().default(null),label:n2.string().nullable().optional().default(null),connectedAt:n2.string().nullable().optional().default(null)});n2.object({connected:n2.boolean(),status:n2.enum(["connected","disconnected","needs_reconnect"]),username:n2.string().nullable(),name:n2.string().nullable(),profileImageUrl:n2.string().nullable(),connectedAt:n2.string().nullable(),accounts:n2.array(ie).optional().default([])}),n2.object({url:n2.string().url(),expiresAt:n2.string()}),n2.object({connected:n2.boolean(),name:n2.string().nullable(),pictureUrl:n2.string().nullable(),connectedAt:n2.string().nullable(),canPost:n2.boolean(),needsReconnect:n2.boolean(),defaultAccountId:n2.string().nullable()}),n2.object({url:n2.string().url(),expiresAt:n2.string()}),n2.object({disconnected:n2.boolean()});let it=n2.object({id:n2.string(),kind:n2.enum(["person","organization"]),urn:n2.string(),needsReconnect:n2.boolean().optional(),name:n2.string().nullable(),avatarUrl:n2.string().nullable(),isDefault:n2.boolean(),voice:n2.string().nullable().optional().default(null)});n2.object({accounts:n2.array(it),reconnectRequired:n2.boolean(),canAddCompanyPages:n2.boolean(),authorizedAt:n2.string().nullable()}),n2.strictObject({accountId:n2.string()}),n2.strictObject({accountId:n2.string().min(1),voice:n2.string().trim().max(1e4).nullable()}),n2.object({voice:n2.string().nullable()}),n2.strictObject({label:n2.string().trim().max(80).nullable()});let ir=n2.enum(["social","newsletter","writing","profile","planning","readers","website"]),ii=["pending","approved","executing","executed","dismissed","failed","needs_review"],io=n2.enum(ii);t={approved:!0,executing:!0,pending:!1,executed:!1,failed:!1,needs_review:!1,dismissed:!1},ii.filter(e=>t[e]);let is=n2.enum(["inbox","publish_review","chat"]),ia=n2.enum(["blocking","high","medium","low"]);n2.enum(["daily_runner","chat","post_review"]);let il=n2.enum(["post","tweet","linkedin","website","newsletter","x_article"]),ic=n2.enum(["post","tweet","linkedin","newsletter","x_article"]),iu=n2.object({kind:ic,id:n2.string().trim().min(1).nullish()}),id=n2.object({mcp:n2.string().trim().min(1),tool:n2.string().trim().min(1),args:n2.record(n2.string(),n2.unknown()).optional()}),im=n2.object({mode:n2.literal("agent_prompt"),prompt:n2.string().trim().min(1).max(8e3),allowedTools:n2.array(n2.string().trim().min(1)).min(1).max(12),requiredTools:n2.array(n2.string().trim().min(1)).min(1).max(12).optional(),successTool:n2.string().trim().min(1).optional()}),ip=n2.union([id,im]),ig=n2.object({cronExpression:n2.string().trim().min(1).max(120).describe("Standard 5-field POSIX cron expression (minute hour day-of-month month day-of-week). Examples: '0 9 * * 1' for 9am every Monday, '0 15 * * 5' for 3pm every Friday."),humanLabel:n2.string().trim().min(1).max(120).describe("Human-readable c
2adence shown to the writer (e.g. 'Every Monday at 9am')."),timezone:n2.string().trim().min(1).max(80).optional().describe("Optional IANA timezone (e.g. 'America/Los_Angeles'). Defaults to the writer's timezone.")}),ih=n2.object({canApprove:n2.boolean()}),ib=n2.object({id:n2.string(),body:n2.record(n2.string(),n2.unknown())}),iy=n2.object({id:n2.string(),blogId:n2.string().nullable(),category:ir,actionType:n2.string(),title:n2.string(),description:n2.string(),draftPayload:n2.unknown().nullable(),content:ib.nullish(),brief:n2.unknown().nullable(),executionTarget:n2.unknown().nullable(),surface:is,subjectType:il.nullable(),subjectId:n2.string().nullable(),sourceKey:n2.string().nullable(),metadata:n2.unknown().nullable(),status:io,priority:ia,sessionId:n2.string().nullable(),chatSessionId:n2.string().nullable(),resultSummary:n2.string().nullable(),lastError:n2.string().nullable(),generatedAt:n2.string(),approvedAt:n2.string().nullable(),dismissedAt:n2.string().nullable(),executedAt:n2.string().nullable(),scheduledTaskId:n2.string().nullable(),recurringSchedule:ig.nullable(),capabilities:ih});n2.object({chatSessionId:n2.string()}),n2.object({suggestions:n2.array(iy)});let i_=n2.object({category:ir.describe("How this suggestion is filed in the inbox — its icon and grouping only. It never decides what opens on the right (that is artifactTarget). social = a tweet, thread, X action, or LinkedIn post; newsletter = an email send; writing = a long-form post or draft; profile = the writer's bio, handle, or avatar; planning = goals, cadence, or strategy with no single artifact; readers = subscriber or audience actions; website = changes to the public site itself (theme, pages, navigation, domain, publication naming). A post, newsletter, or tweet that will simply live on the site is NOT 'website' — file it under writing/newsletter/social. When torn between 'website' and 'writing' for a piece of content, choose 'writing'."),artifactTarget:iu.nullish().describe("What opens on the writer's right-hand canvas for this suggestion — the artifact it edits, independent of category. Set { kind: 'post', id? } for a long-form post, { kind: 'tweet' } for a tweet or thread, { kind: 'linkedin' } for a LinkedIn post, { kind: 'newsletter' } for an email. A LinkedIn draft is always { kind: 'linkedin' }, never { kind: 'post' } — 'post' opens the long-form editor, which cannot edit LinkedIn text. Leave null (or omit) for a task with nothing to edit on the right: settings nudges, planning, audience actions, connecting X. A post that happens to be about the writer's website is still { kind: 'post' }. Never use this to force the site builder open — that surface has its own tools."),actionType:n2.string().trim().min(1).max(100).describe("The MCP tool that will execute this suggestion on approval (e.g. x_create_tweet, publish-post)."),title:n2.string().trim().min(1).max(200).describe("Sentence case, no trailing period."),description:n2.string().trim().min(1).max(1e3).describe("1-2 sentences. Cite the signal that prompted this. Frame the ask as 'want me to publish/post/send?' for already-drafted artifacts, or 'want me to draft?' for suggestions whose executionTarget creates a draft on approval."),draftPayload:n2.record(n2.string(),n2.unknown()).describe("Either the finished artifact (Shape A: { text } for a tweet, { tweets: [...] } for an X thread, { title, body } for a post) or grounded seed material for a prompt-driven draft (Shape B: { workingTitle, angle, outline, sources }). Never include editorial placeholders."),executionTarget:n2.union([id,im]).describe("The exact action the executor runs on approval. A direct create-post target is valid only when it already carries a complete ready-to-save body. Context-heavy post drafting must use agent_prompt so execution can read publication context before create-post."),priority:ia.describe("blocking when the writer has to fix something before you can keep helping (no goals, X not connected, brand voice empty, goal stalled 7+ days, recurring tool failure — the Table stakes cases). high for the one or tw
2o items where a day of delay actually costs something. medium is the default. low for nice-to-haves. Across a run, at most one or two should be high — multiple highs dilute the signal.")});n2.object({summary:n2.string().trim().min(1).describe("One short sentence describing the angle you took today."),suggestions:n2.array(i_).min(0).max(5).describe("Up to 5 ready-to-ship suggestions. Aim for the slot count given in the user message. Emit 0 if the inbox is full and nothing pending should be retired; emit more only when each item genuinely earns its slot.")}),n2.object({summary:n2.string().trim().min(1).optional().describe("One short sentence describing the angle you took. Only meaningful on the first turn; later turns may omit it."),researchNotes:n2.string().trim().optional().describe("A few bullet points of the signals you found this run (top posts by engagement, attribution standouts, X activity). Fill this on your first turn so your follow-up turns can reuse it without re-researching."),suggestion:i_.nullable().describe("Your single next-best suggestion this turn, or null when nothing more earns a slot (which stops the run).")});let iv=n2.enum(["suggested","review","blocked"]),iw=n2.object({type:n2.enum(["post_field_update","post_body_edit","post_schedule_update","cover_image"]),label:n2.string().trim().min(1).max(120).optional(),field:n2.string().trim().min(1).max(80).optional(),currentValue:n2.string().max(4e3).nullable().optional().describe("Writer-visible plain text before the change. For body edits, use only the smallest changed passage, never serialized editor JSON, HTML, or tool arguments."),proposedValue:n2.string().trim().min(1).max(4e3).describe("Writer-visible plain text after the change. For body edits, use only the smallest changed passage, never serialized editor JSON, HTML, or tool arguments."),scheduledAt:n2.string().datetime().optional().describe("For post_schedule_update only: the proposed send time as an ISO 8601 UTC instant. Required for the writer to be able to apply the change.")}),ik=e=>n2.string().trim().min(1).overwrite(t=>t.slice(0,e)),ix=(e,t)=>"string"==typeof e?e.trim().slice(0,t):"",iZ=iw.shape.type.options,iS=n2.preprocess(function(e){if(!("object"==typeof e&&null!==e&&!Array.isArray(e)))return;let t=iZ.find(t=>t===ix(e.type,80)),n=ix(e.proposedValue,4e3);if(!t||!n)return;let r=ix(e.label,120),i=ix(e.field,80),o=ix(e.currentValue,4e3),s=(e=>{if(!e)return;let t=new Date(e);return Number.isFinite(t.getTime())?t.toISOString():void 0})(ix(e.scheduledAt,64)),a={type:t,proposedValue:n};return r&&(a.label=r),i&&(a.field=i),o&&(a.currentValue=o),s&&(a.scheduledAt=s),a},iw.optional()),ij=n2.object({sourceKey:n2.string().trim().min(1).max(80).transform(e=>e.toLowerCase().replace(/[^a-z0-9_-]+/g,"_").replace(/^[^a-z0-9]+/,"").replace(/_+/g,"_").slice(0,80)).pipe(n2.string().min(1).regex(/^[a-z0-9][a-z0-9_-]*$/)),category:ir,status:iv,actionType:n2.string().trim().min(1).max(100),title:ik(160),description:ik(700),evidence:n2.preprocess(e=>"string"==typeof e?[e]:e,n2.array(n2.string()).overwrite(e=>e.map(e=>e.trim().slice(0,240)).filter(e=>e.length>0).slice(0,4)).default([])),proposedChange:iS.optional(),action:n2.object({label:ik(80),prompt:ik(8e3)})}),iI=ij.omit({sourceKey:!0});n2.object({summary:ik(500),item:iI.nullable()}).strict(),n2.object({summary:ik(500),items:n2.array(ij).overwrite(e=>e.slice(0,6))});let iT=n2.object({id:n2.string(),suggestionId:n2.string(),automationId:n2.string().nullable(),automationName:n2.string().nullable(),category:ir,status:iv,actionType:n2.string(),title:n2.string(),description:n2.string(),evidence:n2.array(n2.string()),proposedChange:iw.nullable(),action:n2.object({label:n2.string(),prompt:n2.string(),allowedTools:n2.array(n2.string()),successTool:n2.string().nullable()}),executionStatus:io,resultSummary:n2.string().nullable(),lastError:n2.string().nullable(),generatedAt:n2.string(),approvedAt:n2.string().nullable(),executedAt:n2.string().nullable()}),iE=n2.enum(["generating","failed"]),iO=n2.object({automationId:n2.string(),name:n2.string(),kind:n2.enum(["specialist","consolidator"]).default("specialist"),status:n2.enum(["queued","running","succeeded","failed","
2skipped"]),result:n2.enum(["suggestion","no_change","duplicate_removed"]).nullable().optional()}),i$=n2.object({batchId:n2.string(),state:n2.enum(["queued","running","completed","partially_failed","failed"]),total:n2.number().int().nonnegative(),pending:n2.number().int().nonnegative(),succeeded:n2.number().int().nonnegative(),failed:n2.number().int().nonnegative(),specialists:n2.array(iO)});n2.object({summary:n2.string().nullable(),generatedAt:n2.string().nullable(),items:n2.array(iT),reviewState:iE.nullable(),reviewProgress:i$.nullable().optional()}),n2.object({blogId:n2.string().trim().min(1),since:n2.string().datetime().optional(),until:n2.string().datetime().optional()}).strict();let iA=n2.object({chatSessionId:n2.string(),title:n2.string().nullable(),totalUsdMicros:n2.string(),events:n2.number(),lastUsedAt:n2.string()}),iC=n2.object({source:n2.string(),totalUsdMicros:n2.string(),events:n2.number()}),iP=n2.enum(["free","starter","growth","scale"]),iz=n2.enum(["month","year"]),iN=n2.enum(["free30","winback30"]),iU=n2.enum(["quota_warning","custom_domain","chat_header","suggestions","billing_settings","direct_publish","pricing","lifecycle_email","account_menu","team_invite","agent_refusal","mcp_connect","analytics_export","automation_create","api_rate_limit","channel_connect","workspace_create","subscribers_export","subscriber_limit","newsletter_send","own_website"]),iR=n2.object({analyticsExport:n2.boolean(),backgroundGeneration:n2.boolean(),customDomain:n2.boolean(),ownWebsite:n2.boolean(),subscriberExport:n2.boolean(),limits:n2.object({seats:n2.number().nullable(),subscribers:n2.number().nullable(),mcpServers:n2.number().nullable(),automations:n2.number().nullable(),channels:n2.number().nullable(),apiRequestsPerMinute:n2.number().nullable(),workspaces:n2.number().nullable(),publications:n2.number().nullable().optional()}).optional(),tiers:n2.object({modelTier:n2.string(),automationFrequency:n2.string(),mediaGeneration:n2.string()}).optional()});n2.object({blogId:n2.string().trim().min(1),plan:iP,interval:iz.optional(),offer:iN.optional(),surface:iU.optional(),successUrl:n2.string().url().optional(),cancelUrl:n2.string().url().optional()}).strict();let iD=n2.object({active:n2.number(),limit:n2.number().nullable(),reachable:n2.number(),beyondLimit:n2.number(),requiredPlan:iP.nullable()}),iL=n2.object({since:n2.string(),until:n2.string(),totalUsdMicros:n2.string(),totalEvents:n2.number(),byChat:n2.array(iA),byNonChatSource:n2.array(iC),plan:iP,entitlements:iR,quotaUsdMicros:n2.string(),percentUsed:n2.number(),grantedCreditsUsdMicros:n2.string(),unlimitedCredits:n2.boolean().optional(),connectionRewards:n2.array(n2.object({provider:n2.enum(["x","linkedin"]),amountUsdMicros:n2.string(),claimed:n2.boolean(),connected:n2.boolean()})).optional(),subscriberReach:iD.optional(),subscriptionStatus:n2.string().nullable(),currentPeriodEnd:n2.string().nullable(),cancelAtPeriodEnd:n2.boolean(),canManageBilling:n2.boolean()});n2.discriminatedUnion("kind",[n2.object({kind:n2.literal("updated"),summary:iL}),n2.object({kind:n2.literal("checkout"),checkoutUrl:n2.string()})]),n2.object({blogId:n2.string().trim().min(1)}).strict(),n2.object({interval:iz.nullable()}),n2.object({blogId:n2.string().trim().min(1),offer:iN}).strict(),n2.object({eligible:n2.boolean(),percentOff:n2.number()}),n2.object({blogId:n2.string().trim().min(1),returnUrl:n2.string().url()}).strict(),n2.object({url:n2.string()}),n2.object({blogId:n2.string().trim().min(1),budgetUsd:n2.number(),successUrl:n2.string().url(),cancelUrl:n2.string().url()}).strict(),n2.object({checkoutUrl:n2.string()});let iM=n2.enum(["subscriber_gained","post_published","x_post_published","follower_gained","connection_reward_granted","agent_attention"]),iJ=n2.enum(["user-plus","rocket","x","bell","coins"]),iq=n2.object({id:n2.string(),kind:iM,title:n2.string(),body:n2.string(),href:n2.string().nullable(),actions:n2.array(n2.object({label:n2.string(),href:n2.string()})).optional(),icon:iJ,playbookRunId:n2.string().optional(),read:n2.boolean(),createdAt:n2.string()});n2.object({notifications:n2.array(iq)}),n2.object({count:n2.number()}),n2.object({blogId:n2.string().trim().min(1),limit:n2.coerce.number().int().min(1).max(50).default(20),offset:n2.coerce.number().int().min(0).default(0)}).strict(),n2.object({blogId:n2.string().trim().min(1)}).strict(),e.s(["aiSuggestionExecutionTargetSchema",0,ip],391404),e.s([],57393),e.s([],59690);var n2=n2;let iF=n2.object({label:n2.string().min(1),url:n2.string().url()}),iB="Single bullet, one sentence of plain prose with a real number from the data. No lead-in phrases.",iV="Inline links — tweets, posts, profiles. Only URLs that appear in the data.",iW="A specific gap blocking a stated goal — stalled cadence, missing connection, repeated tool failure, unfinished drafts, brand voice gap. Name the goal it blocks.",iG="One short concrete offer for once it's unblocked, around 12 words.",iH="The id of an existing pending suggestion from the <suggestions> data block. Never invent.",iK="The suggestion's title, copied verbatim from the data block.",iX="One short clause grounding this in today's data, e.g. 'your last tweet drew 11 impressions'. Not a sentence with backstory.",iQ="One short clause, ideally under 45 characters so it survives a phone screen: the day's best number or named win, e.g. '4 signups from one thread'. Write it like a person texting a friend: sentence case, plain words, no dashes of any kind, no colons, no title case, never two stitched observations, never 'Daily Report'.",iY="The day's single best number, e.g. '41% open rate'.",i0="Its baseline, e.g. 'vs 23% your usual'.",i1="The one number of the day, rendered large at the top of the email. Only include when a real metric stands out against a baseline; omit on quiet days.",i4="One plain sentence opener with the day's single most interesting observation. No greeting, no 'Here's your report'.",i2="Last 24h, at most 4 bullets. Pick the most notable; empty array if no activity in the window.",i6="Only include when a data section is not_connected/error AND the gap blocks a goal, or when a pen
2ding suggestion has stalled 2+ days.",i3="Pick 0–3 pending items from the <suggestions> data block that matter most today. Reference each by its id from the data block; do not invent. Leave empty when nothing in the inbox is worth surfacing.",i5="One short open question that invites the writer to pick, adjust, or redirect — never a yes/no on a single proposal already named above.",i8=n2.object({text:n2.string().min(1).max(220).describe(iB),links:n2.array(iF).optional().describe(iV)}),i9=n2.object({text:n2.string().min(1).describe(iW),offerIfUnblocked:n2.string().min(1).max(120).describe(iG)}),i7=n2.object({suggestionId:n2.string().min(1).describe(iH),title:n2.string().min(1).describe(iK),whyToday:n2.string().min(1).max(140).describe(iX)}),oe=n2.object({emailSubject:n2.string().min(1).max(70).describe(iQ),keyStat:n2.object({value:n2.string().min(1).max(40).describe(iY),context:n2.string().min(1).max(60).describe(i0)}).optional().describe(i1),summary:n2.string().min(1).max(180).describe(i4),todayImpact:n2.array(i8).max(4).describe(i2),blockers:n2.array(i9).max(2).optional().describe(i6),surfacedSuggestions:n2.array(i7).max(3).describe(i3),closingQuestion:n2.string().min(1).max(160).describe(i5)}),ot=n2.object({text:n2.string().min(1).describe(iB),links:n2.array(iF).optional().describe(iV)}),on=n2.object({text:n2.string().min(1).describe(iW),offerIfUnblocked:n2.string().min(1).describe(iG)}),or=n2.object({suggestionId:n2.string().min(1).describe(iH),title:n2.string().min(1).describe(iK),whyToday:n2.string().min(1).describe(iX)});oe.extend({emailSubject:n2.string().min(1).describe(iQ),keyStat:n2.object({value:n2.string().min(1).describe(iY),context:n2.string().min(1).describe(i0)}).nullish().describe(i1),summary:n2.string().min(1).describe(i4),todayImpact:n2.array(ot).max(4).describe(i2),blockers:n2.array(on).max(2).nullish().describe(i6),surfacedSuggestions:n2.array(or).max(3).describe(i3),closingQuestion:n2.string().min(1).describe(i5)}),e.s([],977913);var n2=n2;let oi=n2.object({deliveryId:n2.uuid(),mode:n2.enum(["after","quote","repost"]),offsetMinutes:n2.number().int().nonnegative()}).strict();n2.object({accountId:n2.string().min(1),action:n2.enum(["publish","quote","repost"]),contentRevision:n2.string().nullable(),dependencies:n2.array(oi)}).strict(),e.s([],548053);var n2=n2;let oo=n2.enum(["manual","auto"]),os=n2.object({maxPerDay:n2.number().int().min(1).max(24),minGapMinutes:n2.number().int().min(0).max(1440)}),oa=n2.object({start:n2.number().int().min(0).max(23),end:n2.number().int().min(0).max(23)}),ol=n2.object({paragraph:oo,x:oo,linkedin:oo}),oc=n2.object({paragraph:os,x:os,linkedin:os}),ou=n2.object({source:n2.enum(["default","customer","legacy_unknown"]),enforcement:n2.enum(["preference","restriction","unresolved"]),resolvedBy:n2.string().min(1).optional(),resolvedAt:n2.string().datetime().optional()}),od=n2.object({channels:n2.object({paragraph:n2.object({maxPerDay:ou,minGapMinutes:ou}),x:n2.object({maxPerDay:ou,minGapMinutes:ou}),linkedin:n2.object({maxPerDay:ou,minGapMinutes:ou})}),quietHours:ou}),om=n2.enum(["preference","restriction"]),op=n2.object({maxPerDay:om.optional(),minGapMinutes:om.optional()}).strict();n2.object({channels:n2.object({paragraph:op.optional(),x:op.optional(),linkedin:op.optional()}).strict().optional(),quietHours:om.optional()}).strict(),n2.object({approval:ol,cadence:n2.object({channels:oc,quietHours:oa.nullable(),provenance:od.optional()}),guidance:n2.string().trim().max(2e3).nullable(),emailArticles:n2.boolean()}),e.s([],868475)},73833,314723,e=>{"use strict";let t={id:"",privyId:"",createdAt:Date.now(),displayName:{name:"",isTruncated:!1,isPrivate:void 0,fullName:""}};e.s(["emptyUser",0,t],314723);let n={id:"",name:"",about:"",url:"",lowercase_url:"",author_name:"",user:t,createdAt:Date.now()};e.s(["EmptyBlog",0,n,"THEME_COLORS",0,{default:"Default","orange-500":"Orange","rose-600":"Rose","pink-500":"Pink","fuchsia-600":"Fuchsia","purple-600":"Purple","violet-600":"Violet","indigo-600":"Indigo","blue-600":"Blue","sky-600":"Sky Blue","cyan-600":"Cyan","teal-600":"Teal","emerald-600":"Emerald","green-600":"Green","lime-600":"Lime","yellow-700":"Gold","amber-600":"Amber","orange-600":"Dark Orange","stone-800":"Stone","rose-900":"Dark Rose","indigo-950":"Deep Indigo","teal-950":"Deep Teal","lime-950":"Deep Lime","orange-950":"Deep Orange"},"isErrorResponse",0,function(e){return e&&e.msg&&"string"==typeof e.msg}],73833)},446527,67385,711231,e=>{"use strict";e.i(391404),e.i(57393),e.i(59690),e.i(977913),e.i(548053),e.i(868475),e.i(73833),e.i(314723),e.s([],446527),e.s(["ENTITLEMENT_REQUIRED_ERROR_CODE",0,"entitlement_required"],67385);var t=e.i(246543);e.s(["getAccessToken",()=>t.K],711231)},284503,e=>{"use strict";e.i(446527);var t=e.i(67385),n=e.i(711231),r=e.i(662537),i=e.i(968391),o=e.i(618566),s=e.i(340916),a=e.i(846696),l=e.i(913096),c=e.i(257198);async function u(e){return new Promise(t=>setTimeout(t,e))}
2class d extends Error{constructor(e,t,n,i,o){r.setTags({apiStatus:e,apiStatusText:t,apiUrl:n}),r.setContext("apiErrorData",{data:i,stringifiedData:i?JSON.stringify(i):null,originalError:o?{name:o.name,message:o.message,stack:o.stack,cause:o.cause}:null});let s=`HTTP error! Status: ${e} - ${t}`;const a=i?.originalErrorMessage||i?.msg||i?.message;a&&(s+=` - Error: ${a}`),super(s),this.status=e,this.statusText=t,this.url=n,this.data=i,this.originalError=o,this.name="APIError",o&&!this.stack&&(this.stack=o.stack),o&&!this.cause&&(this.cause=o.cause)}static handle404Error(e){if(e instanceof d&&404===e.status)return console.warn({err:e},"Returning notFound due to 404"),(0,o.notFound)();throw e}}async function m(){e.g.locationHrefSpy&&e.g.locationHrefSpy("/disabled_account"),window.location.href="/disabled_account"}async function p(n){let r=await n.json().catch(()=>null);if(r?.code===t.ENTITLEMENT_REQUIRED_ERROR_CODE)throw new d(403,"Forbidden",n.url,r);if(r&&"actionId"in r&&"msg"in r){var i;throw i=r.msg,a.toast.error(i||"You don't have permission to do that."),new d(403,"Forbidden",n.url,r)}e.g.locationHrefSpy&&e.g.locationHrefSpy("/refresh"),window.location.href="/refresh?redirect="+encodeURIComponent(window.location.href)}async function g(e){let t=await e.json();if(t?.msg){let e=t.msg;if(!e.startsWith("/")&&!e.startsWith("../"))return console.error("Blocked potentially unsafe redirect to:",e),(0,o.redirect)("/");{let t=new URLSearchParams(window.location.search),n=new URL(e,window.location.origin);t.forEach((e,t)=>{n.searchParams.has(t)||n.searchParams.append(t,e)}),e=n.pathname+n.search+n.hash}return(0,o.redirect)(e)}console.error("Redirect is missing redirect path",t)}async function h(){try{await (0,n.getAccessToken)()}catch(e){console.error("Failed to get access token",e)}}let b=[523,520,502,522];async function f(e,t={},n){for(let r=0;r<=3;r++)try{return await y(e,t,n)}catch(t){if(t instanceof d&&b.includes(t.status)&&r<3){let n=1e3*Math.pow(2,r);console.warn(`Request failed with ${t.status} (attempt ${r+1}/4). Retrying in ${n}ms...`,e),await u(n);continue}throw t}throw new d(500,"Max retries exceeded",e)}async function y(e,t={},n){let o,a,u,f,_;await h(),e=e.replaceAll(".prefetch","");let v=new URL(c.absoluteAPI+e);if(t.headers={...t.headers,"x-vercel-protection-bypass":"6a39b4f8f20e4adfaee2asdaf12as3kd","Cache-Control":"no-transform"},n?.bypassCookies)t.credentials="omit";else if((0,l.shouldUseAuthorizationHeader)()){let e=await (0,l.getAuthToken)();e&&(t.headers={...t.headers,Authorization:`Bearer ${e}`,"X-Privy-Client":"web"}),f=await (0,s.getServerOrClientCookies)("activeTeamId"),t.credentials="include"}else{let[e,n,r,i]=await Promise.all([(0,s.getServerOrClientCookies)("privy-token"),(0,s.getServerOrClientCookies)("privy-id-token"),(0,s.getServerOrClientCookies)("jwt"),(0,s.getServerOrClientCookies)("activeTeamId")]);o=e,a=n,u=r,f=i,t.credentials="include"}try{let i,s,l=n?.blogId??f;l&&!n?.ignoreImpersonation&&v.searchParams.append("blogId",l);let c=v.toString();if(c.length>2048){let t=`${v.origin}${v.pathname}`;throw console.warn("Blocked fetch due to excessively long URL",{endpoint:e,sanitizedUrl:t,urlLength:c.length}),r.setTags({blockedLongUrl:"true"}),r.setContext("blockedLongUrl",{endpoint:e,sanitizedUrl:t,urlLength:c.length,queryLength:v.search.length}),new d(414,"URI Too Long",c,{msg:"Blocked fetch before request due to excessively long URL",urlLength:c.length})}if((o||u)&&(t.headers={...t.headers,Cookie:o?`privy-token=${o}; privy-id-token=${a}`:`jwt=${u}`}),_=await fetch(v,t),403===_.status&&(console.warn("Request failed with status 403",v.toString()),await p(_)),423===_.status&&await m(),302===_.status&&await g(_),204===_.status)return null;if(b.includes(_.status))throw console.error(`Request failed with status ${_.status}`,v.toString()),new d(_.status,"Server Unavailable / Origin Unreachable",v.toString(),{msg:"Cloudflare could not reach the origin server or server unavailable. This request will be retried."});if(429===_.status)throw new d(429,"Too Many Requests",v.toString(),{msg:"Rate limited by upstream proxy"});let h=_.headers.get("content-type")??"",y=h.toLowerCase();if(!h||y.includes("application/json")||y.includes("+json"))try{s=await _.text(),i=JSON.parse(s)}catch(o){let e=_.headers.get("content-length"),n=s?.length??0,i=e?parseInt(e,10):null;throw console.error("Failed to parse JSON [in catch]!",{url:v.toString(),method:t.method,cfRay:_.headers.get("cf-ray"),cfCacheStatus:_.headers.get("cf-cache-status"),contentEncoding:_.headers.get("content-encoding"),transferEncoding:_.headers.get("transfer-encoding"),contentLength:e,actualResponseSize:n,expectedSize:i,sizeMismatch:i?n!==i:null,rawResponseText:s,contentType:h,parseError:o instanceof Error?o.message:String(o)}),r.setTags({jsonParseError:"true",sizeMismatch:i?String(n!==i):"unknown"}),r.setContext("jsonParseError",{url:v.toString(),method:t.method,status:_.status,statusText:_.statusText,contentType:h,contentLength:e,actualResponseSize:n,expectedSize:i,sizeMismatch:i?n!==i:null,rawResponseText:s,parseError:o instanceof Error?o.message:String(o),responseHeaders:Object.fromEntries(_.headers.entries())}),r.captureException(o),new d(_.status,_.statusText,v.toString(),"Failed to parse JSON: received "+s,o)}else throw s=await _.text(),console.error("Received non-JSON response from API",{url:v.toString(),method:t.method,status:_.status,statusText:_.statusText,contentType:h}),r.setTags({nonJsonResponse:"true"}
2),r.setContext("nonJsonResponse",{url:v.toString(),method:t.method,status:_.status,statusText:_.statusText,contentType:h,rawResponseText:s,responseHeaders:Object.fromEntries(_.headers.entries())}),new d(_.status,_.statusText||"Non-JSON response",v.toString(),s);if(!_.ok)throw 404!==_.status&&503!==_.status&&console.error(`HTTP error! Status: ${_.status} - ${_.statusText}`,i),new d(_.status,_.statusText,v.toString(),i);return i}catch(n){if(r.setContext("customFetchData",{endpoint:e,options:t,url:v.toString(),error:n instanceof Error?n.message:String(n)}),n instanceof d||(0,i.isRedirectError)(n)||n instanceof Error&&"AbortError"===n.name)throw n;if(n instanceof Error)throw console.warn(`Fetch error: ${e}`,n.message),new d(500,"Internal Server Error",v.toString(),{originalName:n.name,originalErrorMessage:n.message,originalCause:n.cause},n);throw console.warn("Unexpected error:",n),new d(500,"Unknown Error",v.toString(),{originalError:n})}}e.s(["APIError",0,d,"default",0,f,"handle423",0,m],284503)}]);
3
4//# debugId=2f68bf12-8a36-9450-d443-f257216a002a

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.