@reticlehq/browser 3.8.1 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- "use strict";var ReticleSdk=(()=>{var jg=Object.defineProperty;var d5=Object.getOwnPropertyDescriptor;var p5=Object.getOwnPropertyNames;var f5=Object.prototype.hasOwnProperty;var pA=e=>{throw TypeError(e)};var y=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var Wa=(e,t)=>{for(var n in t)jg(e,n,{get:t[n],enumerable:!0})},h5=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of p5(t))!f5.call(e,o)&&o!==n&&jg(e,o,{get:()=>t[o],enumerable:!(r=d5(t,o))||r.enumerable});return e};var m5=e=>h5(jg({},"__esModule",{value:!0}),e);var Kg=(e,t,n)=>t.has(e)||pA("Cannot "+n);var c=(e,t,n)=>(Kg(e,t,"read from private field"),n?n.call(e):t.get(e)),x=(e,t,n)=>t.has(e)?pA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),g=(e,t,n,r)=>(Kg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),T=(e,t,n)=>(Kg(e,t,"access private method"),n);var fA=(e,t,n,r)=>({set _(o){g(e,t,o,n)},get _(){return c(e,t,r)}});var hA=y(()=>{"use strict"});var ne={};Wa(ne,{BIGINT_FORMAT_RANGES:()=>ef,CONSTANT_CATCH:()=>yA,Class:()=>Yg,NUMBER_FORMAT_RANGES:()=>pu,aborted:()=>zn,allowsEval:()=>tE,assert:()=>T5,assertEqual:()=>g5,assertIs:()=>_5,assertNever:()=>S5,assertNotEqual:()=>E5,assignProp:()=>kn,attachSchema:()=>fu,base64ToUint8Array:()=>xA,base64urlToUint8Array:()=>H5,cached:()=>Ja,captureStackTrace:()=>Jp,cleanEnum:()=>U5,cleanRegex:()=>du,clone:()=>vr,cloneDef:()=>y5,codePointLength:()=>hu,constantCatch:()=>wA,createTransparentProxy:()=>I5,defineLazy:()=>Jg,defineLazyInternal:()=>be,derived:()=>V5,esc:()=>Qg,escapeRegex:()=>Mo,explicitlyAborted:()=>oE,extend:()=>$5,finalizeIssue:()=>Rr,floatSafeRemainder:()=>qg,getElementAtPath:()=>w5,getEnumValues:()=>Xa,getLengthableOrigin:()=>mu,getParsedType:()=>O5,getSizableOrigin:()=>TA,hexToUint8Array:()=>B5,hide:()=>rf,installLazyProp:()=>W5,isObject:()=>Os,isPlainObject:()=>Ni,issue:()=>ec,joinValues:()=>qp,jsonStringifyReplacer:()=>qa,members:()=>sE,merge:()=>z5,mergeDefs:()=>Po,normalizeParams:()=>te,nullish:()=>Xg,numKeys:()=>R5,objectClone:()=>x5,omit:()=>L5,optionalKeys:()=>rE,own:()=>vi,parsedType:()=>iE,partial:()=>D5,pick:()=>C5,prefixIssues:()=>Nr,primitiveTypes:()=>_A,promiseAllObject:()=>v5,propertyKeyTypes:()=>nE,randomString:()=>N5,rawShape:()=>Qa,required:()=>P5,safeExtend:()=>k5,shallowClone:()=>bA,sizeCaps:()=>nf,slugify:()=>eE,stringifyPrimitive:()=>Qp,toZod:()=>b5,uint8ArrayToBase64:()=>AA,uint8ArrayToBase64url:()=>F5,uint8ArrayToHex:()=>G5,unwrapMessage:()=>Ya});function g5(e){return e}function E5(e){return e}function b5(){return e=>e}function _5(e){}function S5(e){throw new Error("Unexpected value in exhaustive check")}function T5(e){}function Xa(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function qp(e,t="|"){return e.map(n=>Qp(n)).join(t)}function qa(e,t){return typeof t=="bigint"?t.toString():t}function Ja(e){return new Wg(e)}function Xg(e){return e==null}function du(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function qg(e,t){let n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}function Jg(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==mA)return r===void 0&&(r=mA,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function x5(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function kn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Qa(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t!=null&&t.get?t.get.raw:t==null?void 0:t.value}function Do(e){var t;return(t=Qa(e._zod.def))!=null?t:e._zod.def.shape}function gA(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return kn(this,t,r),r},enumerable:!0,configurable:!0})}function EA(e,t,n){t in e?kn(e,t,n):e[t]=n}function Rs(e,t,n,r){let o=Do(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?gA(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):EA(e,i,r?r(s.value,i):s.value))}}function A5(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?gA(e,n,()=>t[n]):EA(e,n,r.value))}}function Po(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function y5(e){return Po(e._zod.def)}function w5(e,t){return t?t.reduce((n,r)=>n==null?void 0:n[r],e):e}function v5(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=r[i];return o})}function N5(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Qg(e){return JSON.stringify(e)}function eE(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Os(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ni(e){if(Os(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Os(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function bA(e){return Ni(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function R5(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function Mo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vr(e,t,n){let r=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function te(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function I5(e){let t;return new Proxy({},{get(n,r,o){return t!=null||(t=e()),Reflect.get(t,r,o)},set(n,r,o,i){return t!=null||(t=e()),Reflect.set(t,r,o,i)},has(n,r){return t!=null||(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t!=null||(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t!=null||(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t!=null||(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,o){return t!=null||(t=e()),Reflect.defineProperty(t,r,o)}})}function Qp(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function rE(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}function C5(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i={};return Rs(i,e,tf(e,t)),vr(e,Po(n,{shape:i,checks:[]}))}function tf(e,t){var o;let n=Do(e),r=[];for(let i of Reflect.ownKeys(t)){if(!((o=Object.getOwnPropertyDescriptor(n,i))!=null&&o.enumerable))throw new Error(`Unrecognized key: "${String(i)}"`);t[i]&&r.push(i)}return r}function L5(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(tf(e,t)),s={};return Rs(s,e,Reflect.ownKeys(Do(e)).filter(a=>!i.has(a))),vr(e,Po(n,{shape:s,checks:[]}))}function $5(e,t){if(!Ni(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=Do(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return vr(e,Po(e._zod.def,{shape:SA(e,t)}))}function SA(e,t){let n={};return Rs(n,e,Reflect.ownKeys(Do(e))),A5(n,t),n}function k5(e,t){if(!Ni(t))throw new Error("Invalid input to safeExtend: expected a plain object");return vr(e,Po(e._zod.def,{shape:SA(e,t)}))}function z5(e,t){var o,i,s;if(!((o=t==null?void 0:t._zod)!=null&&o.def))throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if((i=e._zod.def.checks)!=null&&i.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Rs(n,e,Reflect.ownKeys(Do(e))),Rs(n,t,Reflect.ownKeys(Do(t)));let r=Po(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:(s=t._zod.def.checks)!=null?s:[]});return vr(e,r)}function D5(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(tf(t,n)):void 0,l={};return Rs(l,t,Reflect.ownKeys(Do(t)),e&&((u,d)=>a&&!a.has(d)?u:new e({type:"optional",innerType:u}))),vr(t,Po(t._zod.def,{shape:l,checks:[]}))}function P5(e,t,n){let r=n?new Set(tf(t,n)):void 0,o={};return Rs(o,t,Reflect.ownKeys(Do(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),vr(t,Po(t._zod.def,{shape:o}))}function zn(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function oE(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Nr(e,t){return t.map(n=>{var o;var r;return(o=(r=n).path)!=null||(r.path=[]),n.path.unshift(e),n})}function Ya(e){return typeof e=="string"?e:e==null?void 0:e.message}function nf(e){var n,r;let t=[];for(let o of e!=null?e:[]){let i=o._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let s=(r=(n=i.maximum)!=null?n:i.length)!=null?r:i.size;s>=0&&t.push([s,o])}return t}function fu(e,t,n){var o;var r;for(let i=t;i<e.length;i++)(o=(r=e[i]).schema)!=null||(r.schema=n)}function Rr(e,t,n){var l,u,d,f,m,h,E,_,A,v,N,O,k,j,Y,X,G;var r;let o=(u=(l=e.inst)==null?void 0:l._zod)==null?void 0:u.traits;o!=null&&o.has("$ZodType")&&(o.has("$ZodCheck")?(d=(r=e).schema)!=null||(r.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?(m=(f=e.schema)==null?void 0:f._zod.def)==null?void 0:m.error:void 0,s=e.message?e.message:(X=(Y=(k=(N=(A=Ya((_=(E=(h=e.inst)==null?void 0:h._zod.def)==null?void 0:E.error)==null?void 0:_.call(E,e)))!=null?A:Ya(i==null?void 0:i(e)))!=null?N:Ya((v=t==null?void 0:t.error)==null?void 0:v.call(t,e)))!=null?k:Ya((O=n.customError)==null?void 0:O.call(n,e)))!=null?Y:Ya((j=n.localeError)==null?void 0:j.call(n,e)))!=null?X:"Invalid input",a={};for(let ee of Object.keys(e))ee==="inst"||ee==="schema"||ee==="continue"||ee==="input"||ee==="__proto__"||(a[ee]=e[ee]);return(G=a.path)!=null||(a.path=[]),a.message=s,t!=null&&t.reportInput&&(a.input=e.input),a}function TA(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function hu(e){let t=e.length;if(!M5.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function mu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function iE(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function ec(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function U5(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function xA(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function AA(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function H5(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return xA(t+n)}function F5(e){return AA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function B5(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function G5(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}function sE(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):j5(e,n,r.value)}}function vi(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function rf(e,t,n){return vi(e,t,n,!1)}function V5(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return vi(this,n,r(this))},set(o){vi(this,n,o)}})}return t}function j5(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:vi(this,t,n.bind(this))},set(r){vi(this,t,r)}})}function K5(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}function be(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&Zg!==e._zod){Zg=void 0;return}Zg=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Z5);let o=wi;wi=!1;try{let i=n(this);return wi?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),wi=wi||o,i}catch(i){throw delete this[t],wi=wi||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function W5(e,t,n,r){let o=K5(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:i})}})}function wA(e){let t=()=>e;return t[yA]=!0,t}var Wg,mA,Jp,tE,O5,nE,_A,pu,ef,M5,Yg,Zg,wi,Z5,yA,Sn=y(()=>{Is();Wg=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};mA=Symbol("evaluating");Jp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};tE=Ja(()=>{var e;if(tn.jitless||typeof navigator!="undefined"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});O5=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map!="undefined"&&e instanceof Map?"map":typeof Set!="undefined"&&e instanceof Set?"set":typeof Date!="undefined"&&e instanceof Date?"date":typeof File!="undefined"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},nE=new Set(["string","number","symbol"]),_A=new Set(["string","number","bigint","boolean","symbol","undefined"]);pu={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ef={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};M5=/[\uD800-\uDBFF]/;Yg=class{constructor(...t){}};wi=!1,Z5={configurable:!0,get(){wi=!0}};yA="~constantCatch"});function Y5(e){let t=NA;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return NA=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function I(e,t,n,r){var m;let o={};function i(h){this.def=h,this.constr=f,this.traits=new Set}i.prototype=o;let s=n,a=s&&new WeakSet;function l(h,E){if(h._zod){if(h._zod.traits.has(e))return}else{aE.value=new i(E);try{Object.defineProperty(h,"_zod",aE)}finally{aE.value=void 0}}if(h._zod.traits.add(e),t(h,E),a){let A=Object.getPrototypeOf(h),v=h._zod.constr.prototype,N=A;for(;N&&N!==v;)N=Object.getPrototypeOf(N);let O=N!=null?N:A;a.has(O)||(a.add(O),sE(O,s))}let _=f.prototype;for(let A in _)Object.prototype.hasOwnProperty.call(_,A)&&(A in h||(h[A]=_[A].bind(h)))}let u=(m=r==null?void 0:r.Parent)!=null?m:Object;class d extends u{}Object.defineProperty(d,"name",{value:e});function f(h){var v;let E=r!=null&&r.Parent?Y5(d):this;l(E,h);let _=E._zod.deferred;if(_){for(let N of _)N();E._zod.deferred=void 0}let A=(v=globalThis.__zod_globalConfig)==null?void 0:v.postProcessor;return A&&A(E),E}return Object.defineProperty(f,"init",{value:l}),Object.defineProperty(f,Symbol.hasInstance,{value:h=>{var E,_;return r!=null&&r.Parent&&h instanceof r.Parent?!0:(_=(E=h==null?void 0:h._zod)==null?void 0:E.traits)==null?void 0:_.has(e)}}),Object.defineProperty(f,"name",{value:e}),f}function Dn(e){return e&&Object.assign(tn,e),tn}var vA,aE,NA,Or,tc,RA,tn,Is=y(()=>{Sn();aE={value:void 0,enumerable:!1},NA="captureStackTrace"in Error?Error:null;Or=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},tc=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(RA=(vA=globalThis).__zod_globalConfig)!=null||(vA.__zod_globalConfig={});tn=globalThis.__zod_globalConfig});function X5(){var t;let e=this._zod;return(t=e.message)!=null||(e.message=JSON.stringify(e.def,qa,2)),e.message}function q5(e){this._zod.message=e}function Q5(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function LA(e,t=n=>n.message){let n={},r=[];for(let o of e.issues)o.path.length>0?Q5(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function $A(e,t=n=>n.message){let n={_errors:[]},r=(o,i=[])=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let l=n,u=0;for(;u<a.length;){let d=a[u],f=u===a.length-1;if(d==="_errors"){f&&l._errors.push(t(s)),u++;continue}Object.prototype.hasOwnProperty.call(l,d)||Object.defineProperty(l,d,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=l[d];f&&m._errors.push(t(s)),l=m,u++}}}};return r(e),n}var J5,lE,OA,IA,CA,HW,kA=y(()=>{Is();Sn();J5={get:X5,set:q5,enumerable:!0,configurable:!0},lE={value:void 0,enumerable:!1},OA=new WeakSet([Object.prototype,Error.prototype]),IA=(e,t)=>{e.name="$ZodError",lE.value=t,Object.defineProperty(e,"issues",lE),lE.value=void 0,Object.defineProperty(e,"message",J5);let n=Object.getPrototypeOf(e);OA.has(n)||(OA.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},CA=I("$ZodError",IA),HW=I("$ZodError",IA,void 0,{Parent:Error})});function of(e,t){var n;return{callee:(n=t==null?void 0:t.callee)!=null?n:e,Err:t==null?void 0:t.Err}}function zA(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>Rr(o,n,Dn()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}function nU(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[tU]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new Or;return i.issues.length===0}var sf,af,cf,lf,eU,tU,uE,dE,DA,PA,MA,UA,HA,FA,BA,GA,VA=y(()=>{Is();Sn();sf=e=>{let t=(n,r,o,i)=>{var l,u;let s=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new Or;if(a.issues.length){let d=new((l=i==null?void 0:i.Err)!=null?l:e)(a.issues.map(f=>Rr(f,s,Dn())));throw Jp(d,(u=i==null?void 0:i.callee)!=null?u:t),d}return a.value};return t},af=e=>{let t=async(n,r,o,i)=>{var l,u;let s=o?{...o,async:!0}:{async:!0},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let d=new((l=i==null?void 0:i.Err)!=null?l:e)(a.issues.map(f=>Rr(f,s,Dn())));throw Jp(d,(u=i==null?void 0:i.callee)!=null?u:t),d}return a.value};return t},cf=e=>(t,n,r)=>{let o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new Or;return i.issues.length?zA(e,i.issues,o):{success:!0,data:i.value}};lf=e=>async(t,n,r)=>{let o=r?{...r,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?zA(e,i.issues,o):{success:!0,data:i.value}},eU=Symbol.for("zod.compile.invalid"),tU=Symbol.for("zod.compile.fallback"),uE=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==eU)return!0;if(r.definite===!0&&n===void 0)return!1}return nU(e,t,n)});dE=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},DA=e=>{let t=sf(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,of(n,s))};return n},PA=e=>{let t=sf(e),n=(r,o,i,s)=>t(r,o,i,of(n,s));return n},MA=e=>{let t=af(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,of(n,s))};return n},UA=e=>{let t=af(e),n=async(r,o,i,s)=>await t(r,o,i,of(n,s));return n},HA=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return cf(e)(t,n,o)},FA=e=>(t,n,r)=>cf(e)(t,n,r),BA=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return lf(e)(t,n,o)},GA=e=>async(t,n,r)=>lf(e)(t,n,r)});function qA(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}function ty(){return new RegExp(rU,"u")}function oU(e){return new RegExp(`^${e}$`)}function pE(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function py(e){return new RegExp(`^${pE(e)}$`)}function fy(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${pE({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${pE({precision:e.precision})}`:n;return new RegExp(`^${uy}T(?:${r})$`)}var jA,KA,ZA,WA,YA,XA,JA,QA,fE,ey,rU,ny,ry,oy,iy,sy,ay,cy,ly,uy,dy,hy,hE,gu,my,gy,Ey,by,_y,df=y(()=>{jA=/^[cC][0-9a-z]{6,}$/,KA=/^[0-9a-z]+$/,ZA=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,WA=/^[0-9a-vA-V]{20}$/,YA=/^[A-Za-z0-9]{27}$/,XA=/^[a-zA-Z0-9_-]{21}$/;JA=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,QA=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,fE=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ey=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rU="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";ny=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ry=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,oy=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,iy=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sy=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ay=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,cy=/^https?$/,ly=/^\+[1-9]\d{6,14}$/,uy="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";dy=oU(uy);hy=/^[\s\S]{0,}$/,hE=/^-?\d+$/,gu=/^-?\d+(?:\.\d+)?$/,my=/^(?:true|false)$/i,gy=/^null$/i,Ey=/^undefined$/i,by=/^[^A-Z]*$/,_y=/^[^a-z]*$/});var Dt,mE,pf,gE,EE,Sy,Ty,xy,Ay,yy,Eu,wy,vy,Ny,Ry,Oy,Iy,Cy,ff=y(()=>{Is();df();Sn();Dt=I("$ZodCheck",(e,t)=>{var r,o;var n;(r=e._zod)!=null||(e._zod={}),e._zod.def=t,(o=(n=e._zod).onattach)!=null||(n.onattach=[])}),mE=e=>{let t=e.value;return!Xg(t)&&t.length!==void 0},pf={number:"number",bigint:"bigint",object:"date"},gE=I("$ZodCheckLessThan",(e,t)=>{Dt.init(e,t);let n=pf[typeof t.value];e._zod.check=r=>{var o;(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:(o=pf[typeof r.value])!=null?o:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),EE=I("$ZodCheckGreaterThan",(e,t)=>{Dt.init(e,t);let n=pf[typeof t.value];e._zod.check=r=>{var o;(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:(o=pf[typeof r.value])!=null?o:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Sy=I("$ZodCheckMultipleOf",(e,t)=>{Dt.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):qg(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ty=I("$ZodCheckNumberFormat",(e,t)=>{var s;Dt.init(e,t),t.format=t.format||"float64";let n=(s=t.format)==null?void 0:s.includes("int"),r=n?"int":"number",[o,i]=pu[t.format];e._zod.check=a=>{let l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}l<o&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),xy=I("$ZodCheckMaxLength",(e,t)=>{var r;var n;Dt.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=mE),e._zod.check=o=>{let i=o.value,s=i.length;if((typeof i=="string"&&s>t.maximum?hu(i):s)<=t.maximum)return;let l=mu(i);o.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Ay=I("$ZodCheckMinLength",(e,t)=>{var r;var n;Dt.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=mE),e._zod.check=o=>{let i=o.value,s=i.length;if((typeof i=="string"&&s>=t.minimum&&s<t.minimum*2?hu(i):s)>=t.minimum)return;let l=mu(i);o.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),yy=I("$ZodCheckLengthEquals",(e,t)=>{var r;var n;Dt.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=mE),e._zod.check=o=>{let i=o.value,s=i.length,a=typeof i=="string"&&s>=t.length&&s<=t.length*2?hu(i):s;if(a===t.length)return;let l=mu(i),u=a>t.length;o.issues.push({origin:l,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Eu=I("$ZodCheckStringFormat",(e,t)=>{var o,i;var n,r;Dt.init(e,t),t.pattern?(o=(n=e._zod).check)!=null||(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=(r=e._zod).check)!=null||(r.check=()=>{})}),wy=I("$ZodCheckRegex",(e,t)=>{Eu.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),vy=I("$ZodCheckLowerCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=by),Eu.init(e,t)}),Ny=I("$ZodCheckUpperCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=_y),Eu.init(e,t)}),Ry=I("$ZodCheckIncludes",(e,t)=>{Dt.init(e,t);let n=Mo(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Oy=I("$ZodCheckStartsWith",(e,t)=>{var r;Dt.init(e,t);let n=new RegExp(`^${Mo(t.prefix)}.*`);(r=t.pattern)!=null||(t.pattern=n),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Iy=I("$ZodCheckEndsWith",(e,t)=>{var r;Dt.init(e,t);let n=new RegExp(`.*${Mo(t.suffix)}$`);(r=t.pattern)!=null||(t.pattern=n),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),Cy=I("$ZodCheckOverwrite",(e,t)=>{Dt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}})});var hf,bE=y(()=>{hf=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
1
+ "use strict";var ReticleSdk=(()=>{var Zg=Object.defineProperty;var x5=Object.getOwnPropertyDescriptor;var A5=Object.getOwnPropertyNames;var y5=Object.prototype.hasOwnProperty;var EA=e=>{throw TypeError(e)};var y=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var Ya=(e,t)=>{for(var n in t)Zg(e,n,{get:t[n],enumerable:!0})},w5=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of A5(t))!y5.call(e,o)&&o!==n&&Zg(e,o,{get:()=>t[o],enumerable:!(r=x5(t,o))||r.enumerable});return e};var v5=e=>w5(Zg({},"__esModule",{value:!0}),e);var Wg=(e,t,n)=>t.has(e)||EA("Cannot "+n);var c=(e,t,n)=>(Wg(e,t,"read from private field"),n?n.call(e):t.get(e)),x=(e,t,n)=>t.has(e)?EA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),g=(e,t,n,r)=>(Wg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),T=(e,t,n)=>(Wg(e,t,"access private method"),n);var bA=(e,t,n,r)=>({set _(o){g(e,t,o,n)},get _(){return c(e,t,r)}});var _A=y(()=>{"use strict"});var ne={};Ya(ne,{BIGINT_FORMAT_RANGES:()=>tf,CONSTANT_CATCH:()=>OA,Class:()=>qg,NUMBER_FORMAT_RANGES:()=>hu,aborted:()=>zn,allowsEval:()=>rE,assert:()=>L5,assertEqual:()=>N5,assertIs:()=>I5,assertNever:()=>C5,assertNotEqual:()=>R5,assignProp:()=>kn,attachSchema:()=>mu,base64ToUint8Array:()=>NA,base64urlToUint8Array:()=>q5,cached:()=>Qa,captureStackTrace:()=>Qp,cleanEnum:()=>X5,cleanRegex:()=>fu,clone:()=>Rr,cloneDef:()=>z5,codePointLength:()=>gu,constantCatch:()=>IA,createTransparentProxy:()=>F5,defineLazy:()=>eE,defineLazyInternal:()=>_e,derived:()=>tU,esc:()=>tE,escapeRegex:()=>Bo,explicitlyAborted:()=>sE,extend:()=>V5,finalizeIssue:()=>Ir,floatSafeRemainder:()=>Qg,getElementAtPath:()=>D5,getEnumValues:()=>qa,getLengthableOrigin:()=>Eu,getParsedType:()=>H5,getSizableOrigin:()=>vA,hexToUint8Array:()=>Q5,hide:()=>of,installLazyProp:()=>iU,isObject:()=>Cs,isPlainObject:()=>Ii,issue:()=>tc,joinValues:()=>Jp,jsonStringifyReplacer:()=>Ja,members:()=>cE,merge:()=>K5,mergeDefs:()=>Fo,normalizeParams:()=>te,nullish:()=>Jg,numKeys:()=>U5,objectClone:()=>$5,omit:()=>G5,optionalKeys:()=>iE,own:()=>Oi,parsedType:()=>aE,partial:()=>Z5,pick:()=>B5,prefixIssues:()=>Or,primitiveTypes:()=>yA,promiseAllObject:()=>P5,propertyKeyTypes:()=>oE,randomString:()=>M5,rawShape:()=>ec,required:()=>W5,safeExtend:()=>j5,shallowClone:()=>AA,sizeCaps:()=>rf,slugify:()=>nE,stringifyPrimitive:()=>ef,toZod:()=>O5,uint8ArrayToBase64:()=>RA,uint8ArrayToBase64url:()=>J5,uint8ArrayToHex:()=>eU,unwrapMessage:()=>Xa});function N5(e){return e}function R5(e){return e}function O5(){return e=>e}function I5(e){}function C5(e){throw new Error("Unexpected value in exhaustive check")}function L5(e){}function qa(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Jp(e,t="|"){return e.map(n=>ef(n)).join(t)}function Ja(e,t){return typeof t=="bigint"?t.toString():t}function Qa(e){return new Xg(e)}function Jg(e){return e==null}function fu(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Qg(e,t){let n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}function eE(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==SA)return r===void 0&&(r=SA,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function $5(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function kn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ec(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t!=null&&t.get?t.get.raw:t==null?void 0:t.value}function Ho(e){var t;return(t=ec(e._zod.def))!=null?t:e._zod.def.shape}function TA(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return kn(this,t,r),r},enumerable:!0,configurable:!0})}function xA(e,t,n){t in e?kn(e,t,n):e[t]=n}function Is(e,t,n,r){let o=Ho(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?TA(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):xA(e,i,r?r(s.value,i):s.value))}}function k5(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?TA(e,n,()=>t[n]):xA(e,n,r.value))}}function Fo(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function z5(e){return Fo(e._zod.def)}function D5(e,t){return t?t.reduce((n,r)=>n==null?void 0:n[r],e):e}function P5(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=r[i];return o})}function M5(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function tE(e){return JSON.stringify(e)}function nE(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Cs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ii(e){if(Cs(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Cs(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function AA(e){return Ii(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function U5(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function Bo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rr(e,t,n){let r=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function te(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function F5(e){let t;return new Proxy({},{get(n,r,o){return t!=null||(t=e()),Reflect.get(t,r,o)},set(n,r,o,i){return t!=null||(t=e()),Reflect.set(t,r,o,i)},has(n,r){return t!=null||(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t!=null||(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t!=null||(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t!=null||(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,o){return t!=null||(t=e()),Reflect.defineProperty(t,r,o)}})}function ef(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function iE(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}function B5(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i={};return Is(i,e,nf(e,t)),Rr(e,Fo(n,{shape:i,checks:[]}))}function nf(e,t){var o;let n=Ho(e),r=[];for(let i of Reflect.ownKeys(t)){if(!((o=Object.getOwnPropertyDescriptor(n,i))!=null&&o.enumerable))throw new Error(`Unrecognized key: "${String(i)}"`);t[i]&&r.push(i)}return r}function G5(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(nf(e,t)),s={};return Is(s,e,Reflect.ownKeys(Ho(e)).filter(a=>!i.has(a))),Rr(e,Fo(n,{shape:s,checks:[]}))}function V5(e,t){if(!Ii(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=Ho(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Rr(e,Fo(e._zod.def,{shape:wA(e,t)}))}function wA(e,t){let n={};return Is(n,e,Reflect.ownKeys(Ho(e))),k5(n,t),n}function j5(e,t){if(!Ii(t))throw new Error("Invalid input to safeExtend: expected a plain object");return Rr(e,Fo(e._zod.def,{shape:wA(e,t)}))}function K5(e,t){var o,i,s;if(!((o=t==null?void 0:t._zod)!=null&&o.def))throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if((i=e._zod.def.checks)!=null&&i.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Is(n,e,Reflect.ownKeys(Ho(e))),Is(n,t,Reflect.ownKeys(Ho(t)));let r=Fo(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:(s=t._zod.def.checks)!=null?s:[]});return Rr(e,r)}function Z5(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(nf(t,n)):void 0,l={};return Is(l,t,Reflect.ownKeys(Ho(t)),e&&((u,d)=>a&&!a.has(d)?u:new e({type:"optional",innerType:u}))),Rr(t,Fo(t._zod.def,{shape:l,checks:[]}))}function W5(e,t,n){let r=n?new Set(nf(t,n)):void 0,o={};return Is(o,t,Reflect.ownKeys(Ho(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),Rr(t,Fo(t._zod.def,{shape:o}))}function zn(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function sE(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Or(e,t){return t.map(n=>{var o;var r;return(o=(r=n).path)!=null||(r.path=[]),n.path.unshift(e),n})}function Xa(e){return typeof e=="string"?e:e==null?void 0:e.message}function rf(e){var n,r;let t=[];for(let o of e!=null?e:[]){let i=o._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let s=(r=(n=i.maximum)!=null?n:i.length)!=null?r:i.size;s>=0&&t.push([s,o])}return t}function mu(e,t,n){var o;var r;for(let i=t;i<e.length;i++)(o=(r=e[i]).schema)!=null||(r.schema=n)}function Ir(e,t,n){var l,u,d,f,m,h,E,_,A,v,N,O,k,j,Y,X,G;var r;let o=(u=(l=e.inst)==null?void 0:l._zod)==null?void 0:u.traits;o!=null&&o.has("$ZodType")&&(o.has("$ZodCheck")?(d=(r=e).schema)!=null||(r.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?(m=(f=e.schema)==null?void 0:f._zod.def)==null?void 0:m.error:void 0,s=e.message?e.message:(X=(Y=(k=(N=(A=Xa((_=(E=(h=e.inst)==null?void 0:h._zod.def)==null?void 0:E.error)==null?void 0:_.call(E,e)))!=null?A:Xa(i==null?void 0:i(e)))!=null?N:Xa((v=t==null?void 0:t.error)==null?void 0:v.call(t,e)))!=null?k:Xa((O=n.customError)==null?void 0:O.call(n,e)))!=null?Y:Xa((j=n.localeError)==null?void 0:j.call(n,e)))!=null?X:"Invalid input",a={};for(let ee of Object.keys(e))ee==="inst"||ee==="schema"||ee==="continue"||ee==="input"||ee==="__proto__"||(a[ee]=e[ee]);return(G=a.path)!=null||(a.path=[]),a.message=s,t!=null&&t.reportInput&&(a.input=e.input),a}function vA(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function gu(e){let t=e.length;if(!Y5.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Eu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function aE(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function tc(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function X5(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function NA(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function RA(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function q5(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return NA(t+n)}function J5(e){return RA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Q5(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function eU(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}function cE(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):nU(e,n,r.value)}}function Oi(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function of(e,t,n){return Oi(e,t,n,!1)}function tU(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Oi(this,n,r(this))},set(o){Oi(this,n,o)}})}return t}function nU(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Oi(this,t,n.bind(this))},set(r){Oi(this,t,r)}})}function rU(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}function _e(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&Yg!==e._zod){Yg=void 0;return}Yg=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,oU);let o=Ri;Ri=!1;try{let i=n(this);return Ri?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),Ri=Ri||o,i}catch(i){throw delete this[t],Ri=Ri||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function iU(e,t,n,r){let o=rU(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:i})}})}function IA(e){let t=()=>e;return t[OA]=!0,t}var Xg,SA,Qp,rE,H5,oE,yA,hu,tf,Y5,qg,Yg,Ri,oU,OA,Sn=y(()=>{Ls();Xg=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};SA=Symbol("evaluating");Qp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};rE=Qa(()=>{var e;if(nn.jitless||typeof navigator!="undefined"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});H5=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map!="undefined"&&e instanceof Map?"map":typeof Set!="undefined"&&e instanceof Set?"set":typeof Date!="undefined"&&e instanceof Date?"date":typeof File!="undefined"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},oE=new Set(["string","number","symbol"]),yA=new Set(["string","number","bigint","boolean","symbol","undefined"]);hu={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},tf={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};Y5=/[\uD800-\uDBFF]/;qg=class{constructor(...t){}};Ri=!1,oU={configurable:!0,get(){Ri=!0}};OA="~constantCatch"});function sU(e){let t=LA;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return LA=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function I(e,t,n,r){var m;let o={};function i(h){this.def=h,this.constr=f,this.traits=new Set}i.prototype=o;let s=n,a=s&&new WeakSet;function l(h,E){if(h._zod){if(h._zod.traits.has(e))return}else{lE.value=new i(E);try{Object.defineProperty(h,"_zod",lE)}finally{lE.value=void 0}}if(h._zod.traits.add(e),t(h,E),a){let A=Object.getPrototypeOf(h),v=h._zod.constr.prototype,N=A;for(;N&&N!==v;)N=Object.getPrototypeOf(N);let O=N!=null?N:A;a.has(O)||(a.add(O),cE(O,s))}let _=f.prototype;for(let A in _)Object.prototype.hasOwnProperty.call(_,A)&&(A in h||(h[A]=_[A].bind(h)))}let u=(m=r==null?void 0:r.Parent)!=null?m:Object;class d extends u{}Object.defineProperty(d,"name",{value:e});function f(h){var v;let E=r!=null&&r.Parent?sU(d):this;l(E,h);let _=E._zod.deferred;if(_){for(let N of _)N();E._zod.deferred=void 0}let A=(v=globalThis.__zod_globalConfig)==null?void 0:v.postProcessor;return A&&A(E),E}return Object.defineProperty(f,"init",{value:l}),Object.defineProperty(f,Symbol.hasInstance,{value:h=>{var E,_;return r!=null&&r.Parent&&h instanceof r.Parent?!0:(_=(E=h==null?void 0:h._zod)==null?void 0:E.traits)==null?void 0:_.has(e)}}),Object.defineProperty(f,"name",{value:e}),f}function Dn(e){return e&&Object.assign(nn,e),nn}var CA,lE,LA,Cr,nc,$A,nn,Ls=y(()=>{Sn();lE={value:void 0,enumerable:!1},LA="captureStackTrace"in Error?Error:null;Cr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},nc=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};($A=(CA=globalThis).__zod_globalConfig)!=null||(CA.__zod_globalConfig={});nn=globalThis.__zod_globalConfig});function aU(){var t;let e=this._zod;return(t=e.message)!=null||(e.message=JSON.stringify(e.def,Ja,2)),e.message}function cU(e){this._zod.message=e}function uU(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function PA(e,t=n=>n.message){let n={},r=[];for(let o of e.issues)o.path.length>0?uU(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function MA(e,t=n=>n.message){let n={_errors:[]},r=(o,i=[])=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let l=n,u=0;for(;u<a.length;){let d=a[u],f=u===a.length-1;if(d==="_errors"){f&&l._errors.push(t(s)),u++;continue}Object.prototype.hasOwnProperty.call(l,d)||Object.defineProperty(l,d,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=l[d];f&&m._errors.push(t(s)),l=m,u++}}}};return r(e),n}var lU,dE,kA,zA,DA,aY,UA=y(()=>{Ls();Sn();lU={get:aU,set:cU,enumerable:!0,configurable:!0},dE={value:void 0,enumerable:!1},kA=new WeakSet([Object.prototype,Error.prototype]),zA=(e,t)=>{e.name="$ZodError",dE.value=t,Object.defineProperty(e,"issues",dE),dE.value=void 0,Object.defineProperty(e,"message",lU);let n=Object.getPrototypeOf(e);kA.has(n)||(kA.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},DA=I("$ZodError",zA),aY=I("$ZodError",zA,void 0,{Parent:Error})});function sf(e,t){var n;return{callee:(n=t==null?void 0:t.callee)!=null?n:e,Err:t==null?void 0:t.Err}}function HA(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>Ir(o,n,Dn()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}function fU(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[pU]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new Cr;return i.issues.length===0}var af,cf,lf,uf,dU,pU,pE,fE,FA,BA,GA,VA,jA,KA,ZA,WA,YA=y(()=>{Ls();Sn();af=e=>{let t=(n,r,o,i)=>{var l,u;let s=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new Cr;if(a.issues.length){let d=new((l=i==null?void 0:i.Err)!=null?l:e)(a.issues.map(f=>Ir(f,s,Dn())));throw Qp(d,(u=i==null?void 0:i.callee)!=null?u:t),d}return a.value};return t},cf=e=>{let t=async(n,r,o,i)=>{var l,u;let s=o?{...o,async:!0}:{async:!0},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let d=new((l=i==null?void 0:i.Err)!=null?l:e)(a.issues.map(f=>Ir(f,s,Dn())));throw Qp(d,(u=i==null?void 0:i.callee)!=null?u:t),d}return a.value};return t},lf=e=>(t,n,r)=>{let o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new Cr;return i.issues.length?HA(e,i.issues,o):{success:!0,data:i.value}};uf=e=>async(t,n,r)=>{let o=r?{...r,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?HA(e,i.issues,o):{success:!0,data:i.value}},dU=Symbol.for("zod.compile.invalid"),pU=Symbol.for("zod.compile.fallback"),pE=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==dU)return!0;if(r.definite===!0&&n===void 0)return!1}return fU(e,t,n)});fE=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},FA=e=>{let t=af(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,sf(n,s))};return n},BA=e=>{let t=af(e),n=(r,o,i,s)=>t(r,o,i,sf(n,s));return n},GA=e=>{let t=cf(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,sf(n,s))};return n},VA=e=>{let t=cf(e),n=async(r,o,i,s)=>await t(r,o,i,sf(n,s));return n},jA=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return lf(e)(t,n,o)},KA=e=>(t,n,r)=>lf(e)(t,n,r),ZA=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return uf(e)(t,n,o)},WA=e=>async(t,n,r)=>uf(e)(t,n,r)});function ny(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}function sy(){return new RegExp(hU,"u")}function mU(e){return new RegExp(`^${e}$`)}function hE(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ey(e){return new RegExp(`^${hE(e)}$`)}function by(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${hE({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${hE({precision:e.precision})}`:n;return new RegExp(`^${my}T(?:${r})$`)}var XA,qA,JA,QA,ey,ty,ry,oy,mE,iy,hU,ay,cy,ly,uy,dy,py,fy,hy,my,gy,_y,gE,bu,Sy,Ty,xy,Ay,yy,pf=y(()=>{XA=/^[cC][0-9a-z]{6,}$/,qA=/^[0-9a-z]+$/,JA=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,QA=/^[0-9a-vA-V]{20}$/,ey=/^[A-Za-z0-9]{27}$/,ty=/^[a-zA-Z0-9_-]{21}$/;ry=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,oy=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,mE=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,iy=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,hU="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";ay=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,cy=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ly=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,uy=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,dy=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,py=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,fy=/^https?$/,hy=/^\+[1-9]\d{6,14}$/,my="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";gy=mU(my);_y=/^[\s\S]{0,}$/,gE=/^-?\d+$/,bu=/^-?\d+(?:\.\d+)?$/,Sy=/^(?:true|false)$/i,Ty=/^null$/i,xy=/^undefined$/i,Ay=/^[^A-Z]*$/,yy=/^[^a-z]*$/});var zt,EE,ff,bE,_E,wy,vy,Ny,Ry,Oy,_u,Iy,Cy,Ly,$y,ky,zy,Dy,hf=y(()=>{Ls();pf();Sn();zt=I("$ZodCheck",(e,t)=>{var r,o;var n;(r=e._zod)!=null||(e._zod={}),e._zod.def=t,(o=(n=e._zod).onattach)!=null||(n.onattach=[])}),EE=e=>{let t=e.value;return!Jg(t)&&t.length!==void 0},ff={number:"number",bigint:"bigint",object:"date"},bE=I("$ZodCheckLessThan",(e,t)=>{zt.init(e,t);let n=ff[typeof t.value];e._zod.check=r=>{var o;(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:(o=ff[typeof r.value])!=null?o:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),_E=I("$ZodCheckGreaterThan",(e,t)=>{zt.init(e,t);let n=ff[typeof t.value];e._zod.check=r=>{var o;(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:(o=ff[typeof r.value])!=null?o:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wy=I("$ZodCheckMultipleOf",(e,t)=>{zt.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Qg(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),vy=I("$ZodCheckNumberFormat",(e,t)=>{var s;zt.init(e,t),t.format=t.format||"float64";let n=(s=t.format)==null?void 0:s.includes("int"),r=n?"int":"number",[o,i]=hu[t.format];e._zod.check=a=>{let l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}l<o&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Ny=I("$ZodCheckMaxLength",(e,t)=>{var r;var n;zt.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=EE),e._zod.check=o=>{let i=o.value,s=i.length;if((typeof i=="string"&&s>t.maximum?gu(i):s)<=t.maximum)return;let l=Eu(i);o.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Ry=I("$ZodCheckMinLength",(e,t)=>{var r;var n;zt.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=EE),e._zod.check=o=>{let i=o.value,s=i.length;if((typeof i=="string"&&s>=t.minimum&&s<t.minimum*2?gu(i):s)>=t.minimum)return;let l=Eu(i);o.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Oy=I("$ZodCheckLengthEquals",(e,t)=>{var r;var n;zt.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=EE),e._zod.check=o=>{let i=o.value,s=i.length,a=typeof i=="string"&&s>=t.length&&s<=t.length*2?gu(i):s;if(a===t.length)return;let l=Eu(i),u=a>t.length;o.issues.push({origin:l,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),_u=I("$ZodCheckStringFormat",(e,t)=>{var o,i;var n,r;zt.init(e,t),t.pattern?(o=(n=e._zod).check)!=null||(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=(r=e._zod).check)!=null||(r.check=()=>{})}),Iy=I("$ZodCheckRegex",(e,t)=>{_u.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Cy=I("$ZodCheckLowerCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Ay),_u.init(e,t)}),Ly=I("$ZodCheckUpperCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=yy),_u.init(e,t)}),$y=I("$ZodCheckIncludes",(e,t)=>{zt.init(e,t);let n=Bo(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),ky=I("$ZodCheckStartsWith",(e,t)=>{var r;zt.init(e,t);let n=new RegExp(`^${Bo(t.prefix)}.*`);(r=t.pattern)!=null||(t.pattern=n),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),zy=I("$ZodCheckEndsWith",(e,t)=>{var r;zt.init(e,t);let n=new RegExp(`.*${Bo(t.suffix)}$`);(r=t.pattern)!=null||(t.pattern=n),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),Dy=I("$ZodCheckOverwrite",(e,t)=>{zt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}})});var mf,SE=y(()=>{mf=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
2
2
  `).filter(s=>s),o=Math.min(...r.map(s=>s.length-s.trimStart().length)),i=r.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){var o;let t=Function,n=(o=this==null?void 0:this.content)!=null?o:[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
3
3
  ${n.join(`
4
4
  `)}
5
- };`)(...Object.values(this.closed))}}});var $y,_E=y(()=>{$y={major:4,minor:6,patch:7}});async function iU(e,t){let n={async:!0};return Zy(await e._zod.run({value:t,issues:[]},n),n)}function TE(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return Zy(r,n)}catch{}return iU(e,t)},vendor:"zod",version:1}}function Jy(e){try{return typeof URL!="undefined"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function sU(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?Jy(e)||gf:aU(e,t)}function aU(e,t){var n,r;if(!t.normalize&&((n=t.protocol)==null?void 0:n.source)===cy.source&&!/^https?:\/\//i.test(e))return qy;try{if(typeof URL!="undefined"){let o=URL;if(typeof o.parse=="function")return(r=o.parse(e))!=null?r:gf}return new URL(e)}catch{return gf}}function ky(e){return e.replace(cU,"")}function lU(e,t){return t.lastIndex=0,t.test(e.hostname)}function uU(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}function pw(e){return dU.test(e)?Jy(`http://[${e}]`):!1}function pU(e){let t=e.split("/");if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let o=Number(r);return`${o}`!==r||o<0||o>128?!1:pw(n)}function gw(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}function fU(e){if(!_f.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return gw(n)}function hU(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}function mU(e,t){let n=nf(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(i=>i[0])),o=e._zod.parse;e._zod.parse=(i,s)=>{let a=t(i.value);if(a>r&&!(s!=null&&s.skipChecks)&&(s==null?void 0:s.direction)!=="backward"){for(let[l,u]of nf(e._zod.def.checks))if(a>l&&u._zod.def.when(i)){let d=i.issues.length;return u._zod.check(i),i.issues[d].continue=!1,fu(i.issues,d,e),i}}return o(i,s)}}function zy(e,t,n){e.issues.length&&t.issues.push(...Nr(n,e.issues)),t.value[n]=e.value}function Ef(e,t,n,r,o,i){let s=n in r,a=i==="optional";if(!(!s&&a&&o==="optional")){if(e.issues.length){if(o!==void 0&&a&&!s)return;t.issues.push(...Nr(n,e.issues))}if(!s&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||o==="defaulted"&&!a)&&(t.value[n]=void 0):t.value[n]=e.value}}function Rw(e){var s,a,l,u;let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:EU,o=r.length?[...t,...r]:t;for(let d of o)if(!((u=(l=(a=(s=e.shape)==null?void 0:s[d])==null?void 0:a._zod)==null?void 0:l.traits)!=null&&u.has("$ZodType")))throw new Error(`Invalid element at key "${String(d)}": expected a Zod schema`);let i=rE(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function Ow(e,t,n,r,o,i,s){let a=[],l=o.keySet,u=o.catchall._zod,d=u.def.type,f=u.optin,m=u.optout,h=0;for(let E in t){if(s&&n.issues.length!==h){if(zn(n,h))break;h=n.issues.length}if(l.has(E))continue;if(E==="__proto__"){d==="never"&&a.push(E);continue}if(d==="never"){a.push(E);continue}let _=u.run({value:t[E],issues:[]},r);_ instanceof Promise?e.push(_.then(A=>Ef(A,n,E,t,f,m))):Ef(_,n,E,t,f,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}function Dy(e,t,n,r){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!zn(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>Rr(s,r,Dn())))}),t)}function _U(e){var n;let t=new Map;for(let r of e.options){let o=(n=r._zod.propValues)==null?void 0:n[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let i of o)if(t.has(i)){if(i!==void 0)throw new Error(`Duplicate discriminator value "${String(i)}"`);t.set(i,null)}else t.set(i,r)}return t}function SE(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ni(e)&&Ni(t)){let n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let i of r){if(i==="__proto__")continue;let s=SE(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r],s=SE(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Py(e,t,n){let r=new Map,o,i=new Map,s=(u,d)=>{var m,h;let f;if(u.code==="unrecognized_keys"&&!((m=u.path)!=null&&m.length))o!=null||(o=u),f=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&((h=u.path)==null?void 0:h.length)===1){let E=String(u.path[0]);i.has(E)||i.set(E,u),f=[E]}else return!1;for(let E of f)r.has(E)||r.set(E,{}),r.get(E)[d]=!0;return!0};for(let u of t.issues)s(u,"l")||e.issues.push(u);for(let u of n.issues)s(u,"r")||e.issues.push(u);let a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=o?a.filter(d=>o.keys.includes(d)):[];u.length&&e.issues.push({...o,keys:u});for(let d of a)!u.includes(d)&&i.has(d)&&e.issues.push(i.get(d))}let l=SE(t.value,n.value);if(!l.valid){if(zn(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return e.value=l.data,e}function My(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function Uy(e,t,n){e.issues.length&&t.issues.push(...Nr(n,e.issues)),t.value[n]=e.value}function Hy(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=e[i],a=i<r.length;if(!a&&i>=o&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(s.issues.length){if(!a&&i>=o){t.value.length=i;break}t.issues.push(...Nr(i,s.issues))}t.value[i]=s.value}for(let i=t.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}function Fy(e,t){return e.value=t.issues.length?void 0:t.value,e}function By(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Gy(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function Vy(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>Rr(o,r,Dn()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}function mf(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}function jy(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Ky(e,t,n,r){var o;if(!e){let i={code:"custom",input:n,inst:r,path:[...(o=r._zod.def.path)!=null?o:[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(ec(i))}}var De,Zy,bf,Be,Wy,Yy,Xy,qy,gf,cU,Qy,ew,tw,nw,rw,ow,iw,sw,aw,cw,lw,uw,dw,dU,fw,hw,mw,xE,Ew,_f,bw,_w,Sw,AE,Tw,xw,Aw,yw,ww,vw,gU,Nw,EU,bU,Iw,yE,Cw,Lw,$w,kw,zw,Dw,Pw,wE,Mw,Uw,Hw,Fw,Bw,Gw,vE,Vw,jw,Kw,Zw,NE=y(()=>{ff();Is();bE();df();Sn();_E();Sn();De=I("$ZodType",(e,t)=>{var i,s;var n;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=$y;let r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r!=null?r:[]]:r!=null&&r.length?[...r]:[];for(let a of o)for(let l of a._zod.onattach)l(e);if(o.length===0)(i=(n=e._zod).deferred)!=null||(n.deferred=[]),(s=e._zod.deferred)==null||s.push(()=>{e._zod.run=e._zod.parse});else{let a=(u,d,f)=>{if(u.memo)return u;let m=zn(u),h;for(let E of d){if(E._zod.def.when){if(oE(u)||!E._zod.def.when(u))continue}else if(m)continue;let _=u.issues.length,A=E._zod.check(u);if(A instanceof Promise&&(f==null?void 0:f.async)===!1)throw new Or;if(h||A instanceof Promise)h=(h!=null?h:Promise.resolve()).then(async()=>{await A,u.issues.length!==_&&(fu(u.issues,_,e),m||(m=zn(u,_)))});else{if(u.issues.length===_)continue;fu(u.issues,_,e),m||(m=zn(u,_))}}return h?h.then(()=>u):u},l=(u,d,f)=>{if(zn(u))return u.aborted=!0,u;let m=a(d,o,f);if(m instanceof Promise){if(f.async===!1)throw new Or;return m.then(h=>e._zod.parse(h,f))}return e._zod.parse(m,f)};e._zod.run=(u,d)=>{if(d.skipChecks)return e._zod.parse(u,d);if(d.direction==="backward"){let m=e._zod.parse({value:u.value,issues:[]},{...d,skipChecks:!0});return m instanceof Promise?m.then(h=>l(h,u,d)):l(m,u,d)}let f=e._zod.parse(u,d);if(f instanceof Promise){if(d.async===!1)throw new Or;return f.then(m=>a(m,o,d))}return a(f,o,d)}}},{get"~standard"(){return rf(this,"~standard",TE(this))},set"~standard"(e){vi(this,"~standard",e)}}),Zy=(e,t)=>e.issues.length?{issues:e.issues.map(n=>Rr(n,t,Dn()))}:{value:e.value};bf=I("$ZodString",(e,t)=>{var n;De.init(e,t),e._zod.pattern=(n=t.pattern)!=null?n:hy,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Be=I("$ZodStringFormat",(e,t)=>{Eu.init(e,t),bf.init(e,t)}),Wy=I("$ZodGUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=QA),Be.init(e,t)}),Yy=I("$ZodUUID",(e,t)=>{var n,r;if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);(n=t.pattern)!=null||(t.pattern=fE(i))}else(r=t.pattern)!=null||(t.pattern=fE());Be.init(e,t)}),Xy=I("$ZodEmail",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ey),Be.init(e,t)}),qy=1,gf=2;cU=/[\t\n\r]/g;Qy=I("$ZodURL",(e,t)=>{Be.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=sU(r,t);if(o===qy){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===gf){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=ky(r);return}t.hostname&&!lU(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!uU(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:ky(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ew=I("$ZodEmoji",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ty()),Be.init(e,t)}),tw=I("$ZodNanoID",(e,t)=>{var n;if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);(n=t.pattern)!=null||(t.pattern=t.length===void 0?XA:qA(t.length)),Be.init(e,t)}),nw=I("$ZodCUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=jA),Be.init(e,t)}),rw=I("$ZodCUID2",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=KA),Be.init(e,t)}),ow=I("$ZodULID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ZA),Be.init(e,t)}),iw=I("$ZodXID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=WA),Be.init(e,t)}),sw=I("$ZodKSUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=YA),Be.init(e,t)}),aw=I("$ZodISODateTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=fy(t)),Be.init(e,t)}),cw=I("$ZodISODate",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=dy),Be.init(e,t)}),lw=I("$ZodISOTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=py(t)),Be.init(e,t)}),uw=I("$ZodISODuration",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=JA),Be.init(e,t)}),dw=I("$ZodIPv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ny),Be.init(e,t)}),dU=/^[0-9a-fA-F:.]+$/;fw=I("$ZodIPv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ry),Be.init(e,t),e._zod.check=r=>{pw(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}),hw=I("$ZodCIDRv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=oy),Be.init(e,t)});mw=I("$ZodCIDRv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=iy),Be.init(e,t),e._zod.check=r=>{pU(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});xE=/^[0-9a-zA-Z+/]*={0,2}$/,Ew=I("$ZodBase64",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=xE),Be.init(e,t),e._zod.check=r=>{gw(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),_f=/^[A-Za-z0-9_-]*$/;bw=I("$ZodBase64URL",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=_f),Be.init(e,t),e._zod.check=r=>{fU(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),_w=I("$ZodE164",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ly),Be.init(e,t)});Sw=I("$ZodJWT",(e,t)=>{Be.init(e,t),e._zod.check=n=>{hU(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),AE=I("$ZodNumber",(e,t)=>{De.init(e,t),e._zod.pattern=gu,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),Tw=I("$ZodNumberFormat",(e,t)=>{Ty.init(e,t),AE.init(e,t)}),xw=I("$ZodBoolean",(e,t)=>{De.init(e,t),e._zod.pattern=my,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Aw=I("$ZodUndefined",(e,t)=>{De.init(e,t),e._zod.pattern=Ey,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let o=n.value;return typeof o=="undefined"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),yw=I("$ZodNull",(e,t)=>{De.init(e,t),e._zod.pattern=gy,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),ww=I("$ZodUnknown",(e,t)=>{De.init(e,t),e._zod.parse=n=>n}),vw=I("$ZodNever",(e,t)=>{De.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});gU=e=>Array.isArray(e)?e.length:-1;Nw=I("$ZodArray",(e,t)=>{De.init(e,t);let n=tn.memoizer;n==null||n.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=n?n.alloc(e,r,Array(i.length),o):Array(i.length);let s=[],a=o==null?void 0:o.abortEarly;for(let l=0;l<i.length;l++){let u=i[l],d=t.element._zod.run({value:u,issues:[]},o);if(d instanceof Promise)s.push(d.then(f=>zy(f,r,l)));else if(zy(d,r,l),a&&d.issues.length!==0&&zn(d))break}return s.length?Promise.all(s).then(()=>r):r},mU(e,gU)});EU=[];bU=I("$ZodObject",(e,t)=>{var u;De.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape"),r=n!=null&&n.get?n.get.raw:(u=t.shape)!=null?u:{};if(r){let d=()=>{let f={...r};return Object.defineProperty(t,"shape",{value:f}),d.raw=f,f};d.raw=r,Object.defineProperty(t,"shape",{get:d})}let o=Ja(()=>Rw(t));be(e,"propValues",d=>{let f=d.def.shape,m={};for(let h in f){let E=f[h]._zod;if(E.values){Object.prototype.hasOwnProperty.call(m,h)||kn(m,h,new Set);for(let _ of E.values)m[h].add(_);E.optin!==void 0&&m[h].add(void 0)}}return m});let i=Os,s=t.catchall,a,l=tn.memoizer;l==null||l.attach(e),e._zod.parse=(d,f)=>{a!=null||(a=o.value);let m=d.value;if(!i(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d;d.value=l?l.alloc(e,d,{},f):{};let h=[],E=a.shape,_=f==null?void 0:f.abortEarly,A=d.issues.length;for(let v of a.allKeys){if(_&&d.issues.length!==A){if(zn(d,A))break;A=d.issues.length}if(v==="__proto__")continue;let N=E[v],O=N._zod.optin,k=N._zod.optout,j=N._zod.run({value:m[v],issues:[]},f);j instanceof Promise?h.push(j.then(Y=>Ef(Y,d,v,m,O,k))):Ef(j,d,v,m,O,k)}return s?Ow(h,m,d,f,o.value,e,_===!0):h.length?Promise.all(h).then(()=>d):d}}),Iw=I("$ZodObjectJIT",(e,t)=>{bU.init(e,t);let n=e._zod.parse,r=Ja(()=>Rw(t)),o=tn.memoizer,i=h=>{var j,Y;let E=r.value,_=E.symbolKeys,A=new hf(["payload","ctx"],{shape:h,inst:e,memo:o,syms:_}),v=X=>`shape[${X}]._zod.run({ value: input[${X}], issues: [] }, ctx)`,N=(X,G)=>`
5
+ };`)(...Object.values(this.closed))}}});var My,TE=y(()=>{My={major:4,minor:6,patch:7}});async function gU(e,t){let n={async:!0};return Jy(await e._zod.run({value:t,issues:[]},n),n)}function AE(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return Jy(r,n)}catch{}return gU(e,t)},vendor:"zod",version:1}}function rw(e){try{return typeof URL!="undefined"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function EU(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?rw(e)||Ef:bU(e,t)}function bU(e,t){var n,r;if(!t.normalize&&((n=t.protocol)==null?void 0:n.source)===fy.source&&!/^https?:\/\//i.test(e))return nw;try{if(typeof URL!="undefined"){let o=URL;if(typeof o.parse=="function")return(r=o.parse(e))!=null?r:Ef}return new URL(e)}catch{return Ef}}function Uy(e){return e.replace(_U,"")}function SU(e,t){return t.lastIndex=0,t.test(e.hostname)}function TU(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}function Ew(e){return xU.test(e)?rw(`http://[${e}]`):!1}function AU(e){let t=e.split("/");if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let o=Number(r);return`${o}`!==r||o<0||o>128?!1:Ew(n)}function Tw(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}function yU(e){if(!Sf.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Tw(n)}function wU(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}function vU(e,t){let n=rf(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(i=>i[0])),o=e._zod.parse;e._zod.parse=(i,s)=>{let a=t(i.value);if(a>r&&!(s!=null&&s.skipChecks)&&(s==null?void 0:s.direction)!=="backward"){for(let[l,u]of rf(e._zod.def.checks))if(a>l&&u._zod.def.when(i)){let d=i.issues.length;return u._zod.check(i),i.issues[d].continue=!1,mu(i.issues,d,e),i}}return o(i,s)}}function Hy(e,t,n){e.issues.length&&t.issues.push(...Or(n,e.issues)),t.value[n]=e.value}function bf(e,t,n,r,o,i){let s=n in r,a=i==="optional";if(!(!s&&a&&o==="optional")){if(e.issues.length){if(o!==void 0&&a&&!s)return;t.issues.push(...Or(n,e.issues))}if(!s&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||o==="defaulted"&&!a)&&(t.value[n]=void 0):t.value[n]=e.value}}function $w(e){var s,a,l,u;let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:RU,o=r.length?[...t,...r]:t;for(let d of o)if(!((u=(l=(a=(s=e.shape)==null?void 0:s[d])==null?void 0:a._zod)==null?void 0:l.traits)!=null&&u.has("$ZodType")))throw new Error(`Invalid element at key "${String(d)}": expected a Zod schema`);let i=iE(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function kw(e,t,n,r,o,i,s){let a=[],l=o.keySet,u=o.catchall._zod,d=u.def.type,f=u.optin,m=u.optout,h=0;for(let E in t){if(s&&n.issues.length!==h){if(zn(n,h))break;h=n.issues.length}if(l.has(E))continue;if(E==="__proto__"){d==="never"&&a.push(E);continue}if(d==="never"){a.push(E);continue}let _=u.run({value:t[E],issues:[]},r);_ instanceof Promise?e.push(_.then(A=>bf(A,n,E,t,f,m))):bf(_,n,E,t,f,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}function Fy(e,t,n,r){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!zn(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>Ir(s,r,Dn())))}),t)}function IU(e){var n;let t=new Map;for(let r of e.options){let o=(n=r._zod.propValues)==null?void 0:n[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let i of o)if(t.has(i)){if(i!==void 0)throw new Error(`Duplicate discriminator value "${String(i)}"`);t.set(i,null)}else t.set(i,r)}return t}function xE(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ii(e)&&Ii(t)){let n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let i of r){if(i==="__proto__")continue;let s=xE(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r],s=xE(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function By(e,t,n){let r=new Map,o,i=new Map,s=(u,d)=>{var m,h;let f;if(u.code==="unrecognized_keys"&&!((m=u.path)!=null&&m.length))o!=null||(o=u),f=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&((h=u.path)==null?void 0:h.length)===1){let E=String(u.path[0]);i.has(E)||i.set(E,u),f=[E]}else return!1;for(let E of f)r.has(E)||r.set(E,{}),r.get(E)[d]=!0;return!0};for(let u of t.issues)s(u,"l")||e.issues.push(u);for(let u of n.issues)s(u,"r")||e.issues.push(u);let a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=o?a.filter(d=>o.keys.includes(d)):[];u.length&&e.issues.push({...o,keys:u});for(let d of a)!u.includes(d)&&i.has(d)&&e.issues.push(i.get(d))}let l=xE(t.value,n.value);if(!l.valid){if(zn(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return e.value=l.data,e}function Gy(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function Vy(e,t,n){e.issues.length&&t.issues.push(...Or(n,e.issues)),t.value[n]=e.value}function jy(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=e[i],a=i<r.length;if(!a&&i>=o&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(s.issues.length){if(!a&&i>=o){t.value.length=i;break}t.issues.push(...Or(i,s.issues))}t.value[i]=s.value}for(let i=t.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}function Ky(e,t){return e.value=t.issues.length?void 0:t.value,e}function Zy(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Wy(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function Yy(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>Ir(o,r,Dn()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}function gf(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}function Xy(e){return e.memo||(e.value=Object.freeze(e.value)),e}function qy(e,t,n,r){var o;if(!e){let i={code:"custom",input:n,inst:r,path:[...(o=r._zod.def.path)!=null?o:[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(tc(i))}}var De,Jy,_f,Be,Qy,ew,tw,nw,Ef,_U,ow,iw,sw,aw,cw,lw,uw,dw,pw,fw,hw,mw,gw,xU,bw,_w,Sw,yE,xw,Sf,Aw,yw,ww,wE,vw,Nw,Rw,Ow,Iw,Cw,NU,Lw,RU,OU,zw,vE,Dw,Pw,Mw,Uw,Hw,Fw,Bw,NE,Gw,Vw,jw,Kw,Zw,Ww,RE,Yw,Xw,qw,Jw,OE=y(()=>{hf();Ls();SE();pf();Sn();TE();Sn();De=I("$ZodType",(e,t)=>{var i,s;var n;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=My;let r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r!=null?r:[]]:r!=null&&r.length?[...r]:[];for(let a of o)for(let l of a._zod.onattach)l(e);if(o.length===0)(i=(n=e._zod).deferred)!=null||(n.deferred=[]),(s=e._zod.deferred)==null||s.push(()=>{e._zod.run=e._zod.parse});else{let a=(u,d,f)=>{if(u.memo)return u;let m=zn(u),h;for(let E of d){if(E._zod.def.when){if(sE(u)||!E._zod.def.when(u))continue}else if(m)continue;let _=u.issues.length,A=E._zod.check(u);if(A instanceof Promise&&(f==null?void 0:f.async)===!1)throw new Cr;if(h||A instanceof Promise)h=(h!=null?h:Promise.resolve()).then(async()=>{await A,u.issues.length!==_&&(mu(u.issues,_,e),m||(m=zn(u,_)))});else{if(u.issues.length===_)continue;mu(u.issues,_,e),m||(m=zn(u,_))}}return h?h.then(()=>u):u},l=(u,d,f)=>{if(zn(u))return u.aborted=!0,u;let m=a(d,o,f);if(m instanceof Promise){if(f.async===!1)throw new Cr;return m.then(h=>e._zod.parse(h,f))}return e._zod.parse(m,f)};e._zod.run=(u,d)=>{if(d.skipChecks)return e._zod.parse(u,d);if(d.direction==="backward"){let m=e._zod.parse({value:u.value,issues:[]},{...d,skipChecks:!0});return m instanceof Promise?m.then(h=>l(h,u,d)):l(m,u,d)}let f=e._zod.parse(u,d);if(f instanceof Promise){if(d.async===!1)throw new Cr;return f.then(m=>a(m,o,d))}return a(f,o,d)}}},{get"~standard"(){return of(this,"~standard",AE(this))},set"~standard"(e){Oi(this,"~standard",e)}}),Jy=(e,t)=>e.issues.length?{issues:e.issues.map(n=>Ir(n,t,Dn()))}:{value:e.value};_f=I("$ZodString",(e,t)=>{var n;De.init(e,t),e._zod.pattern=(n=t.pattern)!=null?n:_y,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Be=I("$ZodStringFormat",(e,t)=>{_u.init(e,t),_f.init(e,t)}),Qy=I("$ZodGUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=oy),Be.init(e,t)}),ew=I("$ZodUUID",(e,t)=>{var n,r;if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);(n=t.pattern)!=null||(t.pattern=mE(i))}else(r=t.pattern)!=null||(t.pattern=mE());Be.init(e,t)}),tw=I("$ZodEmail",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=iy),Be.init(e,t)}),nw=1,Ef=2;_U=/[\t\n\r]/g;ow=I("$ZodURL",(e,t)=>{Be.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=EU(r,t);if(o===nw){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===Ef){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=Uy(r);return}t.hostname&&!SU(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!TU(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:Uy(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),iw=I("$ZodEmoji",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=sy()),Be.init(e,t)}),sw=I("$ZodNanoID",(e,t)=>{var n;if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);(n=t.pattern)!=null||(t.pattern=t.length===void 0?ty:ny(t.length)),Be.init(e,t)}),aw=I("$ZodCUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=XA),Be.init(e,t)}),cw=I("$ZodCUID2",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=qA),Be.init(e,t)}),lw=I("$ZodULID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=JA),Be.init(e,t)}),uw=I("$ZodXID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=QA),Be.init(e,t)}),dw=I("$ZodKSUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ey),Be.init(e,t)}),pw=I("$ZodISODateTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=by(t)),Be.init(e,t)}),fw=I("$ZodISODate",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=gy),Be.init(e,t)}),hw=I("$ZodISOTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Ey(t)),Be.init(e,t)}),mw=I("$ZodISODuration",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ry),Be.init(e,t)}),gw=I("$ZodIPv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ay),Be.init(e,t)}),xU=/^[0-9a-fA-F:.]+$/;bw=I("$ZodIPv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=cy),Be.init(e,t),e._zod.check=r=>{Ew(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}),_w=I("$ZodCIDRv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ly),Be.init(e,t)});Sw=I("$ZodCIDRv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=uy),Be.init(e,t),e._zod.check=r=>{AU(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});yE=/^[0-9a-zA-Z+/]*={0,2}$/,xw=I("$ZodBase64",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=yE),Be.init(e,t),e._zod.check=r=>{Tw(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),Sf=/^[A-Za-z0-9_-]*$/;Aw=I("$ZodBase64URL",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Sf),Be.init(e,t),e._zod.check=r=>{yU(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),yw=I("$ZodE164",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=hy),Be.init(e,t)});ww=I("$ZodJWT",(e,t)=>{Be.init(e,t),e._zod.check=n=>{wU(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),wE=I("$ZodNumber",(e,t)=>{De.init(e,t),e._zod.pattern=bu,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),vw=I("$ZodNumberFormat",(e,t)=>{vy.init(e,t),wE.init(e,t)}),Nw=I("$ZodBoolean",(e,t)=>{De.init(e,t),e._zod.pattern=Sy,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Rw=I("$ZodUndefined",(e,t)=>{De.init(e,t),e._zod.pattern=xy,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let o=n.value;return typeof o=="undefined"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),Ow=I("$ZodNull",(e,t)=>{De.init(e,t),e._zod.pattern=Ty,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),Iw=I("$ZodUnknown",(e,t)=>{De.init(e,t),e._zod.parse=n=>n}),Cw=I("$ZodNever",(e,t)=>{De.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});NU=e=>Array.isArray(e)?e.length:-1;Lw=I("$ZodArray",(e,t)=>{De.init(e,t);let n=nn.memoizer;n==null||n.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=n?n.alloc(e,r,Array(i.length),o):Array(i.length);let s=[],a=o==null?void 0:o.abortEarly;for(let l=0;l<i.length;l++){let u=i[l],d=t.element._zod.run({value:u,issues:[]},o);if(d instanceof Promise)s.push(d.then(f=>Hy(f,r,l)));else if(Hy(d,r,l),a&&d.issues.length!==0&&zn(d))break}return s.length?Promise.all(s).then(()=>r):r},vU(e,NU)});RU=[];OU=I("$ZodObject",(e,t)=>{var u;De.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape"),r=n!=null&&n.get?n.get.raw:(u=t.shape)!=null?u:{};if(r){let d=()=>{let f={...r};return Object.defineProperty(t,"shape",{value:f}),d.raw=f,f};d.raw=r,Object.defineProperty(t,"shape",{get:d})}let o=Qa(()=>$w(t));_e(e,"propValues",d=>{let f=d.def.shape,m={};for(let h in f){let E=f[h]._zod;if(E.values){Object.prototype.hasOwnProperty.call(m,h)||kn(m,h,new Set);for(let _ of E.values)m[h].add(_);E.optin!==void 0&&m[h].add(void 0)}}return m});let i=Cs,s=t.catchall,a,l=nn.memoizer;l==null||l.attach(e),e._zod.parse=(d,f)=>{a!=null||(a=o.value);let m=d.value;if(!i(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d;d.value=l?l.alloc(e,d,{},f):{};let h=[],E=a.shape,_=f==null?void 0:f.abortEarly,A=d.issues.length;for(let v of a.allKeys){if(_&&d.issues.length!==A){if(zn(d,A))break;A=d.issues.length}if(v==="__proto__")continue;let N=E[v],O=N._zod.optin,k=N._zod.optout,j=N._zod.run({value:m[v],issues:[]},f);j instanceof Promise?h.push(j.then(Y=>bf(Y,d,v,m,O,k))):bf(j,d,v,m,O,k)}return s?kw(h,m,d,f,o.value,e,_===!0):h.length?Promise.all(h).then(()=>d):d}}),zw=I("$ZodObjectJIT",(e,t)=>{OU.init(e,t);let n=e._zod.parse,r=Qa(()=>$w(t)),o=nn.memoizer,i=h=>{var j,Y;let E=r.value,_=E.symbolKeys,A=new mf(["payload","ctx"],{shape:h,inst:e,memo:o,syms:_}),v=X=>`shape[${X}]._zod.run({ value: input[${X}], issues: [] }, ctx)`,N=(X,G)=>`
6
6
  let ${X}_ab = false;
7
7
  for (let i = 0; i < ${X}.issues.length; i++) {
8
8
  const iss = ${X}.issues[i];
@@ -13,26 +13,26 @@ ${n.join(`
13
13
  if (${X}_ab && ctx && ctx.abortEarly) {
14
14
  payload.value = newResult;
15
15
  return payload;
16
- }`;A.write("const input = payload.value;");let O=Object.create(null),k=0;for(let X of E.allKeys)O[X]=`key_${k++}`;A.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let X of E.allKeys){if(X==="__proto__")continue;let G=O[X],ee=typeof X=="symbol"?`syms[${_.indexOf(X)}]`:Qg(X),ye=`${ee} in input`,me=h[X],nt=(j=me==null?void 0:me._zod)==null?void 0:j.optin,Yp=nt!==void 0,Za=((Y=me==null?void 0:me._zod)==null?void 0:Y.optout)==="optional";if(A.write(`const ${G} = ${v(ee)};`),Yp&&Za){let xi=nt==="optional"?`${G}_present`:`${G}.value !== undefined || ${G}_present`;A.write(`
17
- const ${G}_present = ${ye};
16
+ }`;A.write("const input = payload.value;");let O=Object.create(null),k=0;for(let X of E.allKeys)O[X]=`key_${k++}`;A.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let X of E.allKeys){if(X==="__proto__")continue;let G=O[X],ee=typeof X=="symbol"?`syms[${_.indexOf(X)}]`:tE(X),be=`${ee} in input`,me=h[X],it=(j=me==null?void 0:me._zod)==null?void 0:j.optin,Xp=it!==void 0,Wa=((Y=me==null?void 0:me._zod)==null?void 0:Y.optout)==="optional";if(A.write(`const ${G} = ${v(ee)};`),Xp&&Wa){let wi=it==="optional"?`${G}_present`:`${G}.value !== undefined || ${G}_present`;A.write(`
17
+ const ${G}_present = ${be};
18
18
  if (!${G}.issues.length || ${G}_present) {
19
19
  if (${G}.issues.length) {${N(G,ee)}
20
20
  }
21
21
 
22
- if (${xi}) {
22
+ if (${wi}) {
23
23
  newResult[${ee}] = ${G}.value;
24
24
  }
25
25
  }
26
26
 
27
- `)}else Yp?(A.write(`
27
+ `)}else Xp?(A.write(`
28
28
  if (${G}.issues.length) {${N(G,ee)}
29
29
  }
30
- `),nt==="defaulted"?A.write(`newResult[${ee}] = ${G}.value;`):A.write(`
31
- if (${G}.value !== undefined || ${ye}) {
30
+ `),it==="defaulted"?A.write(`newResult[${ee}] = ${G}.value;`):A.write(`
31
+ if (${G}.value !== undefined || ${be}) {
32
32
  newResult[${ee}] = ${G}.value;
33
33
  }
34
34
  `)):A.write(`
35
- const ${G}_present = ${ye};
35
+ const ${G}_present = ${be};
36
36
  if (${G}.issues.length) {${N(G,ee)}
37
37
  }
38
38
  if (!${G}_present && !${G}.issues.length) {
@@ -52,13 +52,13 @@ ${n.join(`
52
52
  newResult[${ee}] = ${G}.value;
53
53
  }
54
54
 
55
- `)}return A.write("payload.value = newResult;"),A.write("return payload;"),A.compile()},s,a=Os,l=!tn.jitless,d=l&&tE.value,f=t.catchall,m;e._zod.parse=(h,E)=>{m!=null||(m=r.value);let _=h.value;return a(_)?l&&d&&(E==null?void 0:E.async)===!1&&E.jitless!==!0?(s||(s=i(t.shape)),h=s(h,E),f?Ow([],_,h,E,m,e,(E==null?void 0:E.abortEarly)===!0):h):n(h,E):(h.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),h)}});yE=I("$ZodUnion",(e,t)=>{De.init(e,t),be(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),be(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),be(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),be(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){let o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>du(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let l=a._zod.run({value:r.value,issues:[]},o);if(l instanceof Promise)s.push(l),i=!0;else{if(l.issues.length===0)return l;s.push(l)}}return i?Promise.all(s).then(a=>Dy(a,r,e,o)):Dy(s,r,e,o)}});Cw=I("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,yE.init(e,t);let n=e._zod.parse;be(e,"propValues",o=>{var a,l;let i={},s=0;for(let u of o.def.options){let d=u._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(u)}"`);(a=d[o.def.discriminator])!=null&&a.has(void 0)&&s++;for(let[f,m]of Object.entries(d)){Object.prototype.hasOwnProperty.call(i,f)||kn(i,f,new Set);for(let h of m)i[f].add(h)}}return!o.def.unionFallback&&s>1&&((l=i[o.def.discriminator])==null||l.delete(void 0)),i}),t.options.forEach((o,i)=>{let s=Qa(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=Ja(()=>_U(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Os(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let a=s==null?void 0:s[t.discriminator],l=r.value.get(a);return l&&(a!==void 0||i.direction!=="backward")?l._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(u=>r.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),Lw=I("$ZodIntersection",(e,t)=>{De.init(e,t),e._zod.parse=(n,r)=>{let o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,u])=>Py(n,l,u)):Py(n,i,s)}});$w=I("$ZodTuple",(e,t)=>{De.init(e,t);let n=t.items,r=tn.memoizer;r==null||r.attach(e),e._zod.parse=(o,i)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=r?r.alloc(e,o,[],i):[];let a=[],l=My(n,"optin"),u=My(n,"optout");if(!t.rest){if(s.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let d=new Array(n.length),f=t.rest?i==null?void 0:i.abortEarly:void 0,m=!1;for(let h=0;h<n.length;h++){let E=n[h]._zod.run({value:s[h],issues:[]},i);E instanceof Promise?a.push(E.then(_=>{d[h]=_})):(d[h]=E,f&&!m&&E.issues.length&&(m=zn(E)))}if(t.rest&&!m){let h=n.length-1,E=s.slice(n.length),_=o.issues.length;for(let A of E){if(f&&o.issues.length!==_){if(zn(o,_))break;_=o.issues.length}h++;let v=t.rest._zod.run({value:A,issues:[]},i);v instanceof Promise?a.push(v.then(N=>Uy(N,o,h))):Uy(v,o,h)}}return a.length?Promise.all(a).then(()=>Hy(d,o,n,s,u)):Hy(d,o,n,s,u)}});kw=I("$ZodRecord",(e,t)=>{De.init(e,t);let n=tn.memoizer;n==null||n.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Ni(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};let l=new Set;for(let d of a)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){if(l.add(typeof d=="number"?d.toString():d),d==="__proto__")continue;let f=t.keyType._zod.run({value:d,issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(E=>Rr(E,o,Dn())),input:d,path:[d],inst:e});continue}let m=f.value;if(m==="__proto__")continue;let h=t.valueType._zod.run({value:i[d],issues:[]},o);h instanceof Promise?s.push(h.then(E=>{E.issues.length&&r.issues.push(...Nr(d,E.issues)),r.value[m]=E.value})):(h.issues.length&&r.issues.push(...Nr(d,h.issues)),r.value[m]=h.value)}let u;for(let d in i)if(!l.has(d))if(t.mode==="loose"){if(d==="__proto__")continue;r.value[d]=i[d]}else u=u!=null?u:[],u.push(d);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let l;for(let u of Reflect.ownKeys(i)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,u))continue;let d=t.keyType._zod.run({value:u,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&gu.test(u)&&d.issues.length){let E=t.keyType._zod.run({value:Number(u),issues:[]},o);if(E instanceof Promise)throw new Error("Async schemas not supported in object keys currently");E.issues.length===0&&(d=E)}if(d.issues.length){t.mode==="loose"?r.value[u]=i[u]:a?(l=l!=null?l:[],l.push(u)):r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(E=>Rr(E,o,Dn())),input:u,path:[u],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let h=t.valueType._zod.run({value:i[u],issues:[]},o);h instanceof Promise?s.push(h.then(E=>{E.issues.length&&r.issues.push(...Nr(u,E.issues)),r.value[m]=E.value})):(h.issues.length&&r.issues.push(...Nr(u,h.issues)),r.value[m]=h.value)}l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),zw=I("$ZodEnum",(e,t)=>{De.init(e,t);let n=Xa(t.entries),r=new Set(n);e._zod.values=r,be(e,"pattern",o=>{let i=Xa(o.def.entries).filter(s=>nE.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>Mo(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),Dw=I("$ZodLiteral",(e,t)=>{De.init(e,t);let n=new Set(t.values);e._zod.values=n,be(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?Mo(i):i?Mo(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),Pw=I("$ZodTransform",(e,t)=>{var n;De.init(e,t),e._zod.optin="optional",(n=tn.memoizer)==null||n.guard(e),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new tc(e.constructor.name);let i=t.transform(r.value,r);if(o.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(r.value=a,r));if(i instanceof Promise)throw new Or;return r.value=i,r}});wE=I("$ZodOptional",(e,t)=>{De.init(e,t),be(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",be(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),be(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${du(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>Fy(n,i)):Fy(n,o)}return t.innerType._zod.run(n,r)}}),Mw=I("$ZodExactOptional",(e,t)=>{wE.init(e,t),be(e,"values",n=>n.def.innerType._zod.values),be(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Uw=I("$ZodNullable",(e,t)=>{De.init(e,t),be(e,"optin",n=>n.def.innerType._zod.optin),be(e,"optout",n=>n.def.innerType._zod.optout),be(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${du(r.source)}|null)$`):void 0}),be(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Hw=I("$ZodDefault",(e,t)=>{De.init(e,t),e._zod.optin="defaulted",be(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>By(i,t)):By(o,t)}});Fw=I("$ZodPrefault",(e,t)=>{De.init(e,t),e._zod.optin="defaulted",be(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Bw=I("$ZodNonOptional",(e,t)=>{De.init(e,t),be(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Gy(i,e)):Gy(o,e)}});Gw=I("$ZodCatch",(e,t)=>{De.init(e,t),be(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),be(e,"optout",n=>n.def.innerType._zod.optout),be(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>Vy(n,i,t,r)):Vy(n,o,t,r)}}),vE=I("$ZodPipe",(e,t)=>{De.init(e,t),be(e,"values",n=>n.def.in._zod.values),be(e,"optin",n=>n.def.in._zod.optin),be(e,"optout",n=>n.def.out._zod.optout),be(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>mf(s,t.in,r)):mf(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>mf(i,t.out,r)):mf(o,t.out,r)}});Vw=I("$ZodPreprocess",(e,t)=>{vE.init(e,t)}),jw=I("$ZodReadonly",(e,t)=>{De.init(e,t),be(e,"propValues",n=>n.def.innerType._zod.propValues),be(e,"values",n=>n.def.innerType._zod.values),be(e,"optin",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optin}),be(e,"optout",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(jy):jy(o)}});Kw=I("$ZodLazy",(e,t)=>{De.init(e,t),Jg(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),be(e,"pattern",n=>{var r,o;return(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.pattern}),be(e,"propValues",n=>{var r,o;return(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.propValues}),be(e,"optin",n=>{var r,o,i;return(i=(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.optin)!=null?i:void 0}),be(e,"optout",n=>{var r,o,i;return(i=(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.optout)!=null?i:void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Zw=I("$ZodCustom",(e,t)=>{Dt.init(e,t),De.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>Ky(i,n,r,e));Ky(o,n,r,e)}})});function Yw(e){return e!==null&&typeof e=="object"}function RE(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}function Af(e,t,n){var d;let r=Xw.get(e);if(r!==void 0)return r?_u:bu;if(t.has(e))return _u;t.add(e);let o=bu,i=f=>{if(o!==_u&&(f!=null&&f._zod)){let m=Af(f,t,n);m>o&&(o=m)}},s=(f,m)=>{var E;let h=bu;for(let _ of Reflect.ownKeys(f)){let A=Object.getOwnPropertyDescriptor(f,_);if(m&&!A.enumerable)continue;let v=A.get?xf:(E=A.value)!=null&&E._zod?Af(A.value,t,n):bu;v>h&&(h=v)}return h},a=f=>{f>o&&(o=f)},l=e._zod.def,u=l.type;switch(u){case"object":{let f=Qa(l);a(f?s(f,!0):xf),i(l.catchall);break}case"array":i(l.element);break;case"tuple":for(let f of l.items)i(f);i(l.rest);break;case"record":case"map":i(l.keyType),i(l.valueType);break;case"set":i(l.valueType);break;case"union":for(let f of l.options)i(f);break;case"intersection":i(l.left),i(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(l.innerType);break;case"pipe":i(l.in),i(l.out);break;case"function":i(l.input),i(l.output);break;case"lazy":{let f=(d=l._cachedInner)!=null?d:n?e._zod.innerType:void 0;a(f?Af(f,t,!1):xf);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let f in l){let m=Object.getOwnPropertyDescriptor(l,f);if(!m||m.get)continue;let h=m.value;if(!(!h||typeof h!="object")){if(h._zod)i(h);else if(Array.isArray(h))for(let E of h)i(E)}}}return t.delete(e),SU(e,o)}function SU(e,t){return t!==xf&&Xw.set(e,t===_u),t}function TU(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function qw(){return xU}function AU(e,t){var r;let n=(r=e[IE])==null?void 0:r.backEdges;return n!==void 0&&Yw(t)&&n.has(t)}var OE,IE,Ww,Xw,bu,xf,_u,Sf,Tf,xU,Jw=y(()=>{Sn();OE=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},IE="~memo",Ww=[];Xw=new WeakMap,bu=0,xf=1,_u=2;Tf=[],xU={alloc(e,t,n){let r=Sf;if(!r)return n;Sf=void 0;let o={value:n,issues:null};return r.set(t.value,o),Tf.push(o),n},guard(e){var n;var t;(n=(t=e._zod).deferred)!=null||(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,o=(i,s)=>{if(s.direction!=="backward"&&AU(s,i.value))throw new OE;return r(i,s)};e._zod.parse=o,e._zod.run===r&&(e._zod.run=o)})},attach(e){var s;var t;let n,r=!1,o,i;(s=(t=e._zod).deferred)!=null||(t.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,l=(u,d)=>{var N;if(n===void 0){let O=Af(e,new Set,!1);if(O===bu)return e._zod.parse=a,e._zod.run===l&&(e._zod.run=a),a(u,d);O===_u||r?n=!0:r=!0}let f=u.value;if(!Yw(f))return a(u,d);let m=d[IE];m||(m={buckets:new WeakMap,backEdges:void 0},d[IE]=m);let h;o===d?h=i:(h=TU(m,e),o=d,i=h);let E=h.get(f);if(E)return u.value=E.value,E.issues?E.issues.length&&u.issues.push(...RE(E.issues)):(u.memo=!0,(N=m.backEdges)!=null||(m.backEdges=new WeakSet),m.backEdges.add(E.value)),u;Sf=h;let _=Tf.length,A=a(u,d);Sf=void 0;let v=Tf.length>_?Tf.pop():void 0;return A instanceof Promise?A.then(O=>(v&&(v.issues=O.issues.length?RE(O.issues):Ww),O)):(v&&(v.issues=A.issues.length?RE(A.issues):Ww),A)};e._zod.parse=l,e._zod.run===a&&(e._zod.run=l)})}}});function Qw(){return{localeError:yU()}}var yU,ev=y(()=>{Sn();yU=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){var s;return(s=e[i])!=null?s:null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){var a;return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):(a=r[i])!=null?a:i}return i=>{var s,a,l,u;switch(i.code){case"invalid_type":{let d=o(i.expected),f=iE(i.input),m=o(f,i.input);return`Invalid input: expected ${d}, received ${m}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${Qp(i.values[0])}`:`Invalid option: expected one of ${qp(i.values,"|")}`;case"too_big":{let d=i.exact?"exactly ":i.inclusive?"<=":"<",f=t(i.origin);return f?`Too big: expected ${(s=i.origin)!=null?s:"value"} to have ${d}${i.maximum.toString()} ${(a=f.unit)!=null?a:"elements"}`:`Too big: expected ${(l=i.origin)!=null?l:"value"} to be ${d}${i.maximum.toString()}`}case"too_small":{let d=i.exact?"exactly ":i.inclusive?">=":">",f=t(i.origin);return f?`Too small: expected ${i.origin} to have ${d}${i.minimum.toString()} ${f.unit}`:`Too small: expected ${i.origin} to be ${d}${i.minimum.toString()}`}case"invalid_format":{let d=i;return d.format==="starts_with"?`Invalid string: must start with "${d.prefix}"`:d.format==="ends_with"?`Invalid string: must end with "${d.suffix}"`:d.format==="includes"?`Invalid string: must include "${d.includes}"`:d.format==="regex"?`Invalid string: must match pattern ${d.pattern}`:`Invalid ${(u=n[d.format])!=null?u:i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${qp(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(f=>`'${f}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}}});function wU(){return new CE}var tv,CE,nv,Cs,LE=y(()=>{CE=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){var r;let n=t._zod.parent;if(n){let o={...(r=this.get(n))!=null?r:{}};delete o.id;let i={...o,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};(nv=(tv=globalThis).__zod_globalRegistry)!=null||(tv.__zod_globalRegistry=wU());Cs=globalThis.__zod_globalRegistry});var rv=y(()=>{});function ov(e){return e.checks&&(e.checks=[...e.checks]),e}function iv(e,t){return new e(ov({type:"string",...te(t)}))}function sv(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...te(t)})}function av(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...te(t)})}function cv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...te(t)})}function lv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...te(t)})}function uv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...te(t)})}function dv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...te(t)})}function pv(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...te(t)})}function fv(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...te(t)})}function hv(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...te(t)})}function mv(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...te(t)})}function gv(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...te(t)})}function Ev(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...te(t)})}function bv(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...te(t)})}function _v(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...te(t)})}function Sv(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...te(t)})}function Tv(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...te(t)})}function xv(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...te(t)})}function Av(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...te(t)})}function yv(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...te(t)})}function wv(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...te(t)})}function vv(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...te(t)})}function Nv(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...te(t)})}function Rv(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...te(t)})}function Ov(e,t){return new e({type:"string",format:"date",check:"string_format",...te(t)})}function Iv(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...te(t)})}function Cv(e,t){return new e({type:"string",format:"duration",check:"string_format",...te(t)})}function Lv(e,t){return new e(ov({type:"number",checks:[],...te(t)}))}function $v(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...te(t)})}function kv(e,t){return new e({type:"boolean",...te(t)})}function zv(e,t){return new e({type:"undefined",...te(t)})}function Dv(e,t){return new e({type:"null",...te(t)})}function Pv(e){return new e({type:"unknown"})}function Mv(e,t){return new e({type:"never",...te(t)})}function yf(e,t){return new gE({check:"less_than",...te(t),value:e,inclusive:!1})}function Su(e,t){return new gE({check:"less_than",...te(t),value:e,inclusive:!0})}function wf(e,t){return new EE({check:"greater_than",...te(t),value:e,inclusive:!1})}function Tu(e,t){return new EE({check:"greater_than",...te(t),value:e,inclusive:!0})}function vf(e,t){return new Sy({check:"multiple_of",...te(t),value:e})}function Nf(e,t){return new xy({check:"max_length",...te(t),maximum:e})}function nc(e,t){return new Ay({check:"min_length",...te(t),minimum:e})}function Rf(e,t){return new yy({check:"length_equals",...te(t),length:e})}function $E(e,t){return new wy({check:"string_format",format:"regex",...te(t),pattern:e})}function kE(e){return new vy({check:"string_format",format:"lowercase",...te(e)})}function zE(e){return new Ny({check:"string_format",format:"uppercase",...te(e)})}function DE(e,t){return new Ry({check:"string_format",format:"includes",...te(t),includes:e})}function PE(e,t){return new Oy({check:"string_format",format:"starts_with",...te(t),prefix:e})}function ME(e,t){return new Iy({check:"string_format",format:"ends_with",...te(t),suffix:e})}function Ri(e){return new Cy({check:"overwrite",tx:e})}function UE(e){return Ri(t=>t.normalize(e))}function HE(){return Ri(e=>e.trim())}function FE(){return Ri(e=>e.toLowerCase())}function BE(){return Ri(e=>e.toUpperCase())}function GE(){return Ri(e=>eE(e))}function Uv(e,t,n){return new e({type:"array",element:t,...te(n)})}function Hv(e,t,n){return new e({type:"custom",check:"custom",fn:t,...te(n)})}function Fv(e,t){let n=vU(r=>(r.addIssue=o=>{var i,s,a;if(typeof o=="string")r.issues.push(ec(o,r.value,n._zod.def));else{let l=o;l.fatal&&(l.continue=!1),(i=l.code)!=null||(l.code="custom"),"input"in l||(l.input=r.value),(s=l.inst)!=null||(l.inst=n),(a=l.continue)!=null||(l.continue=!n._zod.def.abort),r.issues.push(ec(l))}},e(r.value,r)),t);return n}function vU(e,t){let n=new Dt({check:"custom",...te(t)});return n._zod.check=e,n}var Bv=y(()=>{ff();Sn()});function xu(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&kn(e,r,n[r]);return e}function jE(e){var n,r,o,i,s,a,l,u,d;let t=(n=e==null?void 0:e.target)!=null?n:"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:(r=e.processors)!=null?r:{},metadataRegistry:(o=e==null?void 0:e.metadata)!=null?o:Cs,target:t,unrepresentable:(i=e==null?void 0:e.unrepresentable)!=null?i:"throw",override:(s=e==null?void 0:e.override)!=null?s:(()=>{}),io:(a=e==null?void 0:e.io)!=null?a:"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:(l=e==null?void 0:e.cycles)!=null?l:"ref",reused:(u=e==null?void 0:e.reused)!=null?u:"inline",intersections:[],deferred:[],external:(d=e==null?void 0:e.external)!=null?d:void 0}}function eo(e,t,n,r,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function Ve(e,t,n={path:[],schemaPath:[]}){var d,f,m;var r;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=(f=(d=e._zod).toJSONSchema)==null?void 0:f.call(d);if(a)s.schema=a;else{let h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,h);else{let _=s.schema,A=t.processors[o.type];if(!A)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);A(e,t,_,h)}let E=e._zod.parent;E&&(s.ref||(s.ref=E),Ve(E,t,h),t.seen.get(E).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&xu(s.schema,l),t.io==="input"&&nn(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((m=(r=s.schema).default)!=null||(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Gv(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function KE(e,t){var s,a,l,u;let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let d of e.seen.entries()){let f=(s=e.metadataRegistry.get(d[0]))==null?void 0:s.id;if(f){let m=r.get(f);if(m&&m!==d[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,d[0])}}let o=d=>{var _,A,v,N,O;let f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let k=(_=e.external.registry.get(d[0]))==null?void 0:_.id,j=(A=e.external.uri)!=null?A:(X=>X);if(k)return{ref:j(k)};let Y=(N=(v=d[1].defId)!=null?v:d[1].schema.id)!=null?N:`schema${e.counter++}`;return d[1].defId=Y,{defId:Y,ref:`${j("__shared")}#/${f}/${Gv(Y)}`}}let m="#",h=`${m}/${f}/`;if(d[1]===n&&!d[1].schema.id)return{ref:m};let E=(O=d[1].schema.id)!=null?O:`__schema${e.counter++}`;return{defId:E,ref:h+Gv(E)}},i=d=>{if(d[1].schema.$ref)return;let f=d[1],{ref:m,defId:h}=o(d);f.def={...f.schema},h&&(f.defId=h);let E=f.schema;for(let _ in E)delete E[_];E.$ref=m};if(e.cycles==="throw")for(let d of e.seen.entries()){let f=d[1];if(f.cycle)throw new Error(`Cycle detected: #/${(a=f.cycle)==null?void 0:a.join("/")}/<root>
55
+ `)}return A.write("payload.value = newResult;"),A.write("return payload;"),A.compile()},s,a=Cs,l=!nn.jitless,d=l&&rE.value,f=t.catchall,m;e._zod.parse=(h,E)=>{m!=null||(m=r.value);let _=h.value;return a(_)?l&&d&&(E==null?void 0:E.async)===!1&&E.jitless!==!0?(s||(s=i(t.shape)),h=s(h,E),f?kw([],_,h,E,m,e,(E==null?void 0:E.abortEarly)===!0):h):n(h,E):(h.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),h)}});vE=I("$ZodUnion",(e,t)=>{De.init(e,t),_e(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),_e(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),_e(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),_e(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){let o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>fu(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let l=a._zod.run({value:r.value,issues:[]},o);if(l instanceof Promise)s.push(l),i=!0;else{if(l.issues.length===0)return l;s.push(l)}}return i?Promise.all(s).then(a=>Fy(a,r,e,o)):Fy(s,r,e,o)}});Dw=I("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,vE.init(e,t);let n=e._zod.parse;_e(e,"propValues",o=>{var a,l;let i={},s=0;for(let u of o.def.options){let d=u._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(u)}"`);(a=d[o.def.discriminator])!=null&&a.has(void 0)&&s++;for(let[f,m]of Object.entries(d)){Object.prototype.hasOwnProperty.call(i,f)||kn(i,f,new Set);for(let h of m)i[f].add(h)}}return!o.def.unionFallback&&s>1&&((l=i[o.def.discriminator])==null||l.delete(void 0)),i}),t.options.forEach((o,i)=>{let s=ec(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=Qa(()=>IU(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Cs(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let a=s==null?void 0:s[t.discriminator],l=r.value.get(a);return l&&(a!==void 0||i.direction!=="backward")?l._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(u=>r.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),Pw=I("$ZodIntersection",(e,t)=>{De.init(e,t),e._zod.parse=(n,r)=>{let o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,u])=>By(n,l,u)):By(n,i,s)}});Mw=I("$ZodTuple",(e,t)=>{De.init(e,t);let n=t.items,r=nn.memoizer;r==null||r.attach(e),e._zod.parse=(o,i)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=r?r.alloc(e,o,[],i):[];let a=[],l=Gy(n,"optin"),u=Gy(n,"optout");if(!t.rest){if(s.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let d=new Array(n.length),f=t.rest?i==null?void 0:i.abortEarly:void 0,m=!1;for(let h=0;h<n.length;h++){let E=n[h]._zod.run({value:s[h],issues:[]},i);E instanceof Promise?a.push(E.then(_=>{d[h]=_})):(d[h]=E,f&&!m&&E.issues.length&&(m=zn(E)))}if(t.rest&&!m){let h=n.length-1,E=s.slice(n.length),_=o.issues.length;for(let A of E){if(f&&o.issues.length!==_){if(zn(o,_))break;_=o.issues.length}h++;let v=t.rest._zod.run({value:A,issues:[]},i);v instanceof Promise?a.push(v.then(N=>Vy(N,o,h))):Vy(v,o,h)}}return a.length?Promise.all(a).then(()=>jy(d,o,n,s,u)):jy(d,o,n,s,u)}});Uw=I("$ZodRecord",(e,t)=>{De.init(e,t);let n=nn.memoizer;n==null||n.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Ii(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};let l=new Set;for(let d of a)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){if(l.add(typeof d=="number"?d.toString():d),d==="__proto__")continue;let f=t.keyType._zod.run({value:d,issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(E=>Ir(E,o,Dn())),input:d,path:[d],inst:e});continue}let m=f.value;if(m==="__proto__")continue;let h=t.valueType._zod.run({value:i[d],issues:[]},o);h instanceof Promise?s.push(h.then(E=>{E.issues.length&&r.issues.push(...Or(d,E.issues)),r.value[m]=E.value})):(h.issues.length&&r.issues.push(...Or(d,h.issues)),r.value[m]=h.value)}let u;for(let d in i)if(!l.has(d))if(t.mode==="loose"){if(d==="__proto__")continue;r.value[d]=i[d]}else u=u!=null?u:[],u.push(d);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let l;for(let u of Reflect.ownKeys(i)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,u))continue;let d=t.keyType._zod.run({value:u,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&bu.test(u)&&d.issues.length){let E=t.keyType._zod.run({value:Number(u),issues:[]},o);if(E instanceof Promise)throw new Error("Async schemas not supported in object keys currently");E.issues.length===0&&(d=E)}if(d.issues.length){t.mode==="loose"?r.value[u]=i[u]:a?(l=l!=null?l:[],l.push(u)):r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(E=>Ir(E,o,Dn())),input:u,path:[u],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let h=t.valueType._zod.run({value:i[u],issues:[]},o);h instanceof Promise?s.push(h.then(E=>{E.issues.length&&r.issues.push(...Or(u,E.issues)),r.value[m]=E.value})):(h.issues.length&&r.issues.push(...Or(u,h.issues)),r.value[m]=h.value)}l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),Hw=I("$ZodEnum",(e,t)=>{De.init(e,t);let n=qa(t.entries),r=new Set(n);e._zod.values=r,_e(e,"pattern",o=>{let i=qa(o.def.entries).filter(s=>oE.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>Bo(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),Fw=I("$ZodLiteral",(e,t)=>{De.init(e,t);let n=new Set(t.values);e._zod.values=n,_e(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?Bo(i):i?Bo(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),Bw=I("$ZodTransform",(e,t)=>{var n;De.init(e,t),e._zod.optin="optional",(n=nn.memoizer)==null||n.guard(e),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new nc(e.constructor.name);let i=t.transform(r.value,r);if(o.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(r.value=a,r));if(i instanceof Promise)throw new Cr;return r.value=i,r}});NE=I("$ZodOptional",(e,t)=>{De.init(e,t),_e(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",_e(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),_e(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${fu(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>Ky(n,i)):Ky(n,o)}return t.innerType._zod.run(n,r)}}),Gw=I("$ZodExactOptional",(e,t)=>{NE.init(e,t),_e(e,"values",n=>n.def.innerType._zod.values),_e(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Vw=I("$ZodNullable",(e,t)=>{De.init(e,t),_e(e,"optin",n=>n.def.innerType._zod.optin),_e(e,"optout",n=>n.def.innerType._zod.optout),_e(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${fu(r.source)}|null)$`):void 0}),_e(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),jw=I("$ZodDefault",(e,t)=>{De.init(e,t),e._zod.optin="defaulted",_e(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Zy(i,t)):Zy(o,t)}});Kw=I("$ZodPrefault",(e,t)=>{De.init(e,t),e._zod.optin="defaulted",_e(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Zw=I("$ZodNonOptional",(e,t)=>{De.init(e,t),_e(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Wy(i,e)):Wy(o,e)}});Ww=I("$ZodCatch",(e,t)=>{De.init(e,t),_e(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),_e(e,"optout",n=>n.def.innerType._zod.optout),_e(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>Yy(n,i,t,r)):Yy(n,o,t,r)}}),RE=I("$ZodPipe",(e,t)=>{De.init(e,t),_e(e,"values",n=>n.def.in._zod.values),_e(e,"optin",n=>n.def.in._zod.optin),_e(e,"optout",n=>n.def.out._zod.optout),_e(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>gf(s,t.in,r)):gf(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>gf(i,t.out,r)):gf(o,t.out,r)}});Yw=I("$ZodPreprocess",(e,t)=>{RE.init(e,t)}),Xw=I("$ZodReadonly",(e,t)=>{De.init(e,t),_e(e,"propValues",n=>n.def.innerType._zod.propValues),_e(e,"values",n=>n.def.innerType._zod.values),_e(e,"optin",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optin}),_e(e,"optout",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Xy):Xy(o)}});qw=I("$ZodLazy",(e,t)=>{De.init(e,t),eE(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),_e(e,"pattern",n=>{var r,o;return(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.pattern}),_e(e,"propValues",n=>{var r,o;return(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.propValues}),_e(e,"optin",n=>{var r,o,i;return(i=(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.optin)!=null?i:void 0}),_e(e,"optout",n=>{var r,o,i;return(i=(o=(r=n.innerType)==null?void 0:r._zod)==null?void 0:o.optout)!=null?i:void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Jw=I("$ZodCustom",(e,t)=>{zt.init(e,t),De.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>qy(i,n,r,e));qy(o,n,r,e)}})});function ev(e){return e!==null&&typeof e=="object"}function IE(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}function yf(e,t,n){var d;let r=tv.get(e);if(r!==void 0)return r?Tu:Su;if(t.has(e))return Tu;t.add(e);let o=Su,i=f=>{if(o!==Tu&&(f!=null&&f._zod)){let m=yf(f,t,n);m>o&&(o=m)}},s=(f,m)=>{var E;let h=Su;for(let _ of Reflect.ownKeys(f)){let A=Object.getOwnPropertyDescriptor(f,_);if(m&&!A.enumerable)continue;let v=A.get?Af:(E=A.value)!=null&&E._zod?yf(A.value,t,n):Su;v>h&&(h=v)}return h},a=f=>{f>o&&(o=f)},l=e._zod.def,u=l.type;switch(u){case"object":{let f=ec(l);a(f?s(f,!0):Af),i(l.catchall);break}case"array":i(l.element);break;case"tuple":for(let f of l.items)i(f);i(l.rest);break;case"record":case"map":i(l.keyType),i(l.valueType);break;case"set":i(l.valueType);break;case"union":for(let f of l.options)i(f);break;case"intersection":i(l.left),i(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(l.innerType);break;case"pipe":i(l.in),i(l.out);break;case"function":i(l.input),i(l.output);break;case"lazy":{let f=(d=l._cachedInner)!=null?d:n?e._zod.innerType:void 0;a(f?yf(f,t,!1):Af);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let f in l){let m=Object.getOwnPropertyDescriptor(l,f);if(!m||m.get)continue;let h=m.value;if(!(!h||typeof h!="object")){if(h._zod)i(h);else if(Array.isArray(h))for(let E of h)i(E)}}}return t.delete(e),CU(e,o)}function CU(e,t){return t!==Af&&tv.set(e,t===Tu),t}function LU(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}function nv(){return $U}function kU(e,t){var r;let n=(r=e[LE])==null?void 0:r.backEdges;return n!==void 0&&ev(t)&&n.has(t)}var CE,LE,Qw,tv,Su,Af,Tu,Tf,xf,$U,rv=y(()=>{Sn();CE=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},LE="~memo",Qw=[];tv=new WeakMap,Su=0,Af=1,Tu=2;xf=[],$U={alloc(e,t,n){let r=Tf;if(!r)return n;Tf=void 0;let o={value:n,issues:null};return r.set(t.value,o),xf.push(o),n},guard(e){var n;var t;(n=(t=e._zod).deferred)!=null||(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,o=(i,s)=>{if(s.direction!=="backward"&&kU(s,i.value))throw new CE;return r(i,s)};e._zod.parse=o,e._zod.run===r&&(e._zod.run=o)})},attach(e){var s;var t;let n,r=!1,o,i;(s=(t=e._zod).deferred)!=null||(t.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,l=(u,d)=>{var N;if(n===void 0){let O=yf(e,new Set,!1);if(O===Su)return e._zod.parse=a,e._zod.run===l&&(e._zod.run=a),a(u,d);O===Tu||r?n=!0:r=!0}let f=u.value;if(!ev(f))return a(u,d);let m=d[LE];m||(m={buckets:new WeakMap,backEdges:void 0},d[LE]=m);let h;o===d?h=i:(h=LU(m,e),o=d,i=h);let E=h.get(f);if(E)return u.value=E.value,E.issues?E.issues.length&&u.issues.push(...IE(E.issues)):(u.memo=!0,(N=m.backEdges)!=null||(m.backEdges=new WeakSet),m.backEdges.add(E.value)),u;Tf=h;let _=xf.length,A=a(u,d);Tf=void 0;let v=xf.length>_?xf.pop():void 0;return A instanceof Promise?A.then(O=>(v&&(v.issues=O.issues.length?IE(O.issues):Qw),O)):(v&&(v.issues=A.issues.length?IE(A.issues):Qw),A)};e._zod.parse=l,e._zod.run===a&&(e._zod.run=l)})}}});function ov(){return{localeError:zU()}}var zU,iv=y(()=>{Sn();zU=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){var s;return(s=e[i])!=null?s:null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){var a;return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):(a=r[i])!=null?a:i}return i=>{var s,a,l,u;switch(i.code){case"invalid_type":{let d=o(i.expected),f=aE(i.input),m=o(f,i.input);return`Invalid input: expected ${d}, received ${m}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${ef(i.values[0])}`:`Invalid option: expected one of ${Jp(i.values,"|")}`;case"too_big":{let d=i.exact?"exactly ":i.inclusive?"<=":"<",f=t(i.origin);return f?`Too big: expected ${(s=i.origin)!=null?s:"value"} to have ${d}${i.maximum.toString()} ${(a=f.unit)!=null?a:"elements"}`:`Too big: expected ${(l=i.origin)!=null?l:"value"} to be ${d}${i.maximum.toString()}`}case"too_small":{let d=i.exact?"exactly ":i.inclusive?">=":">",f=t(i.origin);return f?`Too small: expected ${i.origin} to have ${d}${i.minimum.toString()} ${f.unit}`:`Too small: expected ${i.origin} to be ${d}${i.minimum.toString()}`}case"invalid_format":{let d=i;return d.format==="starts_with"?`Invalid string: must start with "${d.prefix}"`:d.format==="ends_with"?`Invalid string: must end with "${d.suffix}"`:d.format==="includes"?`Invalid string: must include "${d.includes}"`:d.format==="regex"?`Invalid string: must match pattern ${d.pattern}`:`Invalid ${(u=n[d.format])!=null?u:i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${Jp(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(f=>`'${f}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}}});function DU(){return new $E}var sv,$E,av,$s,kE=y(()=>{$E=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){var r;let n=t._zod.parent;if(n){let o={...(r=this.get(n))!=null?r:{}};delete o.id;let i={...o,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};(av=(sv=globalThis).__zod_globalRegistry)!=null||(sv.__zod_globalRegistry=DU());$s=globalThis.__zod_globalRegistry});var cv=y(()=>{});function lv(e){return e.checks&&(e.checks=[...e.checks]),e}function uv(e,t){return new e(lv({type:"string",...te(t)}))}function dv(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...te(t)})}function pv(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...te(t)})}function fv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...te(t)})}function hv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...te(t)})}function mv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...te(t)})}function gv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...te(t)})}function Ev(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...te(t)})}function bv(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...te(t)})}function _v(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...te(t)})}function Sv(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...te(t)})}function Tv(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...te(t)})}function xv(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...te(t)})}function Av(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...te(t)})}function yv(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...te(t)})}function wv(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...te(t)})}function vv(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...te(t)})}function Nv(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...te(t)})}function Rv(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...te(t)})}function Ov(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...te(t)})}function Iv(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...te(t)})}function Cv(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...te(t)})}function Lv(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...te(t)})}function $v(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...te(t)})}function kv(e,t){return new e({type:"string",format:"date",check:"string_format",...te(t)})}function zv(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...te(t)})}function Dv(e,t){return new e({type:"string",format:"duration",check:"string_format",...te(t)})}function Pv(e,t){return new e(lv({type:"number",checks:[],...te(t)}))}function Mv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...te(t)})}function Uv(e,t){return new e({type:"boolean",...te(t)})}function Hv(e,t){return new e({type:"undefined",...te(t)})}function Fv(e,t){return new e({type:"null",...te(t)})}function Bv(e){return new e({type:"unknown"})}function Gv(e,t){return new e({type:"never",...te(t)})}function wf(e,t){return new bE({check:"less_than",...te(t),value:e,inclusive:!1})}function xu(e,t){return new bE({check:"less_than",...te(t),value:e,inclusive:!0})}function vf(e,t){return new _E({check:"greater_than",...te(t),value:e,inclusive:!1})}function Au(e,t){return new _E({check:"greater_than",...te(t),value:e,inclusive:!0})}function Nf(e,t){return new wy({check:"multiple_of",...te(t),value:e})}function Rf(e,t){return new Ny({check:"max_length",...te(t),maximum:e})}function rc(e,t){return new Ry({check:"min_length",...te(t),minimum:e})}function Of(e,t){return new Oy({check:"length_equals",...te(t),length:e})}function zE(e,t){return new Iy({check:"string_format",format:"regex",...te(t),pattern:e})}function DE(e){return new Cy({check:"string_format",format:"lowercase",...te(e)})}function PE(e){return new Ly({check:"string_format",format:"uppercase",...te(e)})}function ME(e,t){return new $y({check:"string_format",format:"includes",...te(t),includes:e})}function UE(e,t){return new ky({check:"string_format",format:"starts_with",...te(t),prefix:e})}function HE(e,t){return new zy({check:"string_format",format:"ends_with",...te(t),suffix:e})}function Ci(e){return new Dy({check:"overwrite",tx:e})}function FE(e){return Ci(t=>t.normalize(e))}function BE(){return Ci(e=>e.trim())}function GE(){return Ci(e=>e.toLowerCase())}function VE(){return Ci(e=>e.toUpperCase())}function jE(){return Ci(e=>nE(e))}function Vv(e,t,n){return new e({type:"array",element:t,...te(n)})}function jv(e,t,n){return new e({type:"custom",check:"custom",fn:t,...te(n)})}function Kv(e,t){let n=PU(r=>(r.addIssue=o=>{var i,s,a;if(typeof o=="string")r.issues.push(tc(o,r.value,n._zod.def));else{let l=o;l.fatal&&(l.continue=!1),(i=l.code)!=null||(l.code="custom"),"input"in l||(l.input=r.value),(s=l.inst)!=null||(l.inst=n),(a=l.continue)!=null||(l.continue=!n._zod.def.abort),r.issues.push(tc(l))}},e(r.value,r)),t);return n}function PU(e,t){let n=new zt({check:"custom",...te(t)});return n._zod.check=e,n}var Zv=y(()=>{hf();Sn()});function yu(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&kn(e,r,n[r]);return e}function ZE(e){var n,r,o,i,s,a,l,u,d;let t=(n=e==null?void 0:e.target)!=null?n:"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:(r=e.processors)!=null?r:{},metadataRegistry:(o=e==null?void 0:e.metadata)!=null?o:$s,target:t,unrepresentable:(i=e==null?void 0:e.unrepresentable)!=null?i:"throw",override:(s=e==null?void 0:e.override)!=null?s:(()=>{}),io:(a=e==null?void 0:e.io)!=null?a:"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:(l=e==null?void 0:e.cycles)!=null?l:"ref",reused:(u=e==null?void 0:e.reused)!=null?u:"inline",intersections:[],deferred:[],external:(d=e==null?void 0:e.external)!=null?d:void 0}}function ro(e,t,n,r,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function Ve(e,t,n={path:[],schemaPath:[]}){var d,f,m;var r;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=(f=(d=e._zod).toJSONSchema)==null?void 0:f.call(d);if(a)s.schema=a;else{let h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,h);else{let _=s.schema,A=t.processors[o.type];if(!A)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);A(e,t,_,h)}let E=e._zod.parent;E&&(s.ref||(s.ref=E),Ve(E,t,h),t.seen.get(E).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&yu(s.schema,l),t.io==="input"&&rn(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((m=(r=s.schema).default)!=null||(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Wv(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function WE(e,t){var s,a,l,u;let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let d of e.seen.entries()){let f=(s=e.metadataRegistry.get(d[0]))==null?void 0:s.id;if(f){let m=r.get(f);if(m&&m!==d[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,d[0])}}let o=d=>{var _,A,v,N,O;let f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let k=(_=e.external.registry.get(d[0]))==null?void 0:_.id,j=(A=e.external.uri)!=null?A:(X=>X);if(k)return{ref:j(k)};let Y=(N=(v=d[1].defId)!=null?v:d[1].schema.id)!=null?N:`schema${e.counter++}`;return d[1].defId=Y,{defId:Y,ref:`${j("__shared")}#/${f}/${Wv(Y)}`}}let m="#",h=`${m}/${f}/`;if(d[1]===n&&!d[1].schema.id)return{ref:m};let E=(O=d[1].schema.id)!=null?O:`__schema${e.counter++}`;return{defId:E,ref:h+Wv(E)}},i=d=>{if(d[1].schema.$ref)return;let f=d[1],{ref:m,defId:h}=o(d);f.def={...f.schema},h&&(f.defId=h);let E=f.schema;for(let _ in E)delete E[_];E.$ref=m};if(e.cycles==="throw")for(let d of e.seen.entries()){let f=d[1];if(f.cycle)throw new Error(`Cycle detected: #/${(a=f.cycle)==null?void 0:a.join("/")}/<root>
56
56
 
57
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of e.seen.entries()){let f=d[1];if(t===d[0]){i(d);continue}if(e.external){let h=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(t!==d[0]&&h){i(d);continue}}if((u=e.metadataRegistry.get(d[0]))==null?void 0:u.id){i(d);continue}if(f.cycle){i(d);continue}f.count>1&&e.reused==="ref"&&i(d)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Kv(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;Kv(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function jv(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function VE(e){var i,s,a,l;let t=[];for(let u of e){if(typeof u!="object"||u.type!=="object")return null;for(let d in u)if(!Zv.has(d))return null;t.push(u)}let n={},r=new Set;for(let u of t){for(let d in u.properties){if(Object.prototype.hasOwnProperty.call(n,d))continue;let f=[];for(let h of t){let E=(s=(i=h.properties)==null?void 0:i[d])!=null?s:jv(h);E!=null&&(f.some(_=>JSON.stringify(_)===JSON.stringify(E))||f.push(E))}let m=f.length===1?f[0]:(a=VE(f))!=null?a:{allOf:f};kn(n,d,m)}for(let d of(l=u.required)!=null?l:[])r.add(d)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(u=>u.additionalProperties===!1))o.additionalProperties=!1;else{let u=[];for(let d of t){let f=jv(d);f&&!u.some(m=>JSON.stringify(m)===JSON.stringify(f))&&u.push(f)}u.length===1?o.additionalProperties=u[0]:u.length>1&&(o.additionalProperties={allOf:u})}return o}function NU(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of Zv)if(o in e)return;let n=t.filter(o=>Vv.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=VE(t);else{let o=n[0],i=Vv.find(l=>Array.isArray(o[l]));if(Object.keys(o).length!==1)return;let s=t.filter(l=>l!==o),a=o[i].map(l=>VE([...s,l]));if(a.some(l=>!l))return;r={[i]:a}}r&&(delete e.allOf,xu(e,r))}function ZE(e,t){var a,l,u,d,f,m,h,E;let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=_=>{var j,Y,X;let A=e.seen.get(_);if(A.ref===null)return;let v=(j=A.def)!=null?j:A.schema,N={...v},O=A.ref;if(A.ref=null,O){r(O);let G=e.seen.get(O),ee=G.schema;if(ee.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(v.allOf=(Y=v.allOf)!=null?Y:[],v.allOf.push(ee)):xu(v,ee),xu(v,N),_._zod.parent===O)for(let me in v)me==="$ref"||me==="allOf"||me in N||delete v[me];if(ee.$ref&&G.def)for(let me in v)me==="$ref"||me==="allOf"||me in G.def&&JSON.stringify(v[me])===JSON.stringify(G.def[me])&&delete v[me]}let k=_._zod.parent;if(k&&k!==O){r(k);let G=e.seen.get(k);if(G!=null&&G.schema.$ref&&(v.$ref=G.schema.$ref,G.def))for(let ee in v)ee==="$ref"||ee==="allOf"||ee in G.def&&JSON.stringify(v[ee])===JSON.stringify(G.def[ee])&&delete v[ee]}e.override({zodSchema:_,jsonSchema:v,path:(X=A.path)!=null?X:[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let _ of[...e.seen.entries()].reverse())r(_[0]);if(e.target!=="openapi-3.0")for(let _ of e.seen.entries())Kv((a=_[1].def)!=null?a:_[1].schema);for(let _ of e.deferred)_();if(e.intersections.length){let _=new Map;for(let A of e.seen.values())for(let v of[A.schema,A.def]){let N=v==null?void 0:v.allOf;if(!Array.isArray(N))continue;let O=_.get(N);O?O.push(v):_.set(N,[v])}for(let A of e.intersections)for(let v of(l=_.get(A))!=null?l:[])NU(v)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(u=e.external)!=null&&u.uri){let _=(d=e.external.registry.get(t))==null?void 0:d.id;if(!_)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(_)}xu(o,n.defId?n.schema:(f=n.def)!=null?f:n.schema);let i=(m=e.metadataRegistry.get(t))==null?void 0:m.id;i!==void 0&&o.id===i&&delete o.id;let s=(E=(h=e.external)==null?void 0:h.defs)!=null?E:{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let _ of e.seen.entries()){let A=_[1];A.def&&A.defId&&(A.def.id===A.defId&&delete A.def.id,kn(s,A.defId,A.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let _=JSON.parse(JSON.stringify(o));return Object.defineProperty(_,"~standard",{value:{...t["~standard"],jsonSchema:{input:Au(t,"input",e.processors),output:Au(t,"output",e.processors)}},enumerable:!1,writable:!1}),_}catch{throw new Error("Error converting schema to JSON.")}}function nn(e,t){let n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return nn(r.element,n);if(r.type==="set")return nn(r.valueType,n);if(r.type==="lazy")return nn(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return nn(r.innerType,n);if(r.type==="intersection")return nn(r.left,n)||nn(r.right,n);if(r.type==="record"||r.type==="map")return nn(r.keyType,n)||nn(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:nn(r.in,n)||nn(r.out,n);if(r.type==="object"){for(let o in r.shape)if(nn(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(nn(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(nn(o,n))return!0;return!!(r.rest&&nn(r.rest,n))}return!1}var Zv,Vv,Wv,Au,Of=y(()=>{LE();Sn();Zv=new Set(["type","properties","required","additionalProperties"]),Vv=["oneOf","anyOf"];Wv=(e,t={})=>n=>{let r=jE({...n,processors:t});return Ve(e,r),KE(r,e),ZE(r,e)},Au=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r!=null?r:{},s=jE({...o!=null?o:{},target:i,io:t,processors:n});return Ve(e,s),KE(s,e),ZE(s,e)}});function Pn(e){var i,s,a,l,u;let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...(i=n.checks)!=null?i:[]]:(s=n.checks)!=null?s:[];for(let d of r)(a=WE[d._zod.def.check])==null||a.call(WE,t,d._zod.def);let o=e._zod.bag;o.minimum!==void 0&&rc(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&rc(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&oc(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&oc(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&Qv(t,o.multipleOf),o.format!==void 0&&((l=t.format)!=null||(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&tN(t,o.mime);for(let d of(u=o.patterns)!=null?u:[])eN(t,d);return t}function yu(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?yu(t.out):t.type==="catch"?yu(t.innerType):e._zod.optin}function YE(e,t,n){var E,_;if(t.$ref){if(n.has(t))return t;n.add(t);let A=(E=e.get(t))==null?void 0:E.def;if(!A)return t;let v=YE(e,A,n);return v===A?t:v}for(let A of["anyOf","oneOf"]){let v=t[A];if(!Array.isArray(v))continue;let N=v.map(O=>YE(e,O,n));N.some((O,k)=>O!==v[k])&&(t={...t,[A]:N})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(A=>A==="number"||A==="integer"),i=(_=t.enum)!=null?_:t.const!==void 0?[t.const]:void 0;if(!o&&!(i!=null&&i.some(A=>typeof A=="number")))return t;let{minimum:s,maximum:a,exclusiveMinimum:l,exclusiveMaximum:u,multipleOf:d,format:f,id:m,...h}=t;return h.enum?h.enum=h.enum.map(A=>typeof A=="number"?String(A):A):typeof h.const=="number"&&(h.const=String(h.const)),o&&(h.type="string",i||(h.pattern=(r.includes("number")?gu:hE).source)),h}function IU(e){var r,o,i;let t=new Map;for(let s of e.seen.values())s.def&&!t.has(s.schema)&&t.set(s.schema,s);let n=new Map;for(let s of(r=XE.get(e))!=null?r:[]){let a=e.seen.get(s),l=(i=(o=a==null?void 0:a.def)!=null?o:a==null?void 0:a.schema)==null?void 0:i.propertyNames;if(!l||l===!0||n.has(l))continue;let u=YE(t,l,new Set);u!==l&&n.set(l,u)}if(n.size)for(let s of e.seen.values())for(let a of[s.schema,s.def]){let l=a&&n.get(a.propertyNames);l&&(a.propertyNames=l)}}function AN(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,l)=>typeof l!="bigint"?l:(i=!0,null));return i?(eo(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),qE):JSON.parse(s)}var rc,oc,Yv,Qv,eN,tN,nN,Xv,qv,Jv,WE,RU,OU,rN,oN,iN,sN,aN,cN,lN,uN,dN,pN,fN,hN,mN,gN,EN,bN,_N,XE,SN,TN,xN,qE,yN,wN,vN,NN,RN,JE,ON,IN=y(()=>{df();NE();Of();Sn();rc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},oc=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Yv=(e,t)=>{rc(e,"minimum",t),oc(e,"maximum",t)},Qv=(e,t)=>{var n;(n=e.multipleOf)!=null||(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},eN=(e,t)=>{var n;(n=e.patterns)!=null||(e.patterns=new Set),e.patterns.add(t)},tN=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},nN=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},Xv=(e,t)=>rc(e,"minimum",t.minimum),qv=(e,t)=>oc(e,"maximum",t.maximum),Jv=e=>(t,n)=>{nN(t,n.format);let[r,o]=e[n.format];rc(t,"minimum",r),oc(t,"maximum",o)},WE={greater_than:(e,t)=>rc(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>oc(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Qv(e,t.value),number_format:Jv(pu),bigint_format:Jv(ef),min_length:Xv,max_length:qv,length_equals:(e,t)=>Yv(e,t.length),min_size:Xv,max_size:qv,size_equals:(e,t)=>Yv(e,t.size),string_format:(e,t)=>{nN(e,t.format),t.pattern&&eN(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>tN(e,t.mime)};RU={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},OU=new Map([[xE,sy],[_f,ay]]),rN=e=>{var t;return(t=OU.get(e))!=null?t:e},oN=(e,t,n,r)=>{var f;let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:l,contentEncoding:u,laxFormat:d}=Pn(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=(f=RU[a])!=null?f:a,o.format===""&&delete o.format,(a==="time"||d)&&delete o.format),u&&(o.contentEncoding=u),l&&l.size>0){let m=[...l].map(rN);m.length===1?o.pattern=m[0].source:m.length>1&&(o.allOf=[...m.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},iN=(e,t,n,r)=>{var E;let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:l,exclusiveMinimum:u,isInt:d}=Pn(e);o.type=d?"integer":"number";let f=typeof u=="number"&&u>=(i!=null?i:Number.NEGATIVE_INFINITY),m=typeof l=="number"&&l<=(s!=null?s:Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";if(f?h?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?h?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l:typeof s=="number"&&(o.maximum=s),a){let _=new Set;for(let N of a)Number.isFinite(N)&&N!==0?_.add(Math.abs(N)):eo(e,t,o,r,`A multipleOf divisor of ${N} cannot be represented in JSON Schema`);let[A,...v]=_;A!==void 0&&(o.multipleOf=A),v.length&&(o.allOf=[...(E=o.allOf)!=null?E:[],...v.map(N=>({multipleOf:N}))])}},sN=(e,t,n,r)=>{n.type="boolean"},aN=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},cN=(e,t,n,r)=>{eo(e,t,n,r,"Undefined cannot be represented in JSON Schema")},lN=(e,t,n,r)=>{n.not={}},uN=(e,t,n,r)=>{},dN=(e,t,n,r)=>{let o=e._zod.def,i=Xa(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},pN=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(eo(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(eo(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},fN=(e,t,n,r)=>{eo(e,t,n,r,"Custom types cannot be represented in JSON Schema")},hN=(e,t,n,r)=>{eo(e,t,n,r,"Transforms cannot be represented in JSON Schema")},mN=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Pn(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=Ve(i.element,t,{...r,path:[...r.path,"items"]})};gN=(e,t,n,r)=>{var u;let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&eo(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let d in s)kn(o.properties,d,Ve(s[d],t,{...r,path:[...r.path,"properties",d]}));let l=[];for(let d of Object.keys(s)){let f=i.shape[d];(t.io==="input"?yu(f)===void 0:f._zod.optout===void 0)&&l.push(d)}l.length>0&&(o.required=l),((u=i.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=Ve(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},EN=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,l)=>Ve(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=s:n.anyOf=s},bN=(e,t,n,r)=>{let o=e._zod.def,i=Ve(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=Ve(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=l,t.intersections.push(l)},_N=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((_,A)=>Ve(_,t,{...r,path:[...r.path,s,A]})),u=i.rest?Ve(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,d=i.items.length;for(;d>0;){let _=i.items[d-1];if(!(t.io==="input"?yu(_)!==void 0:_._zod.optout==="optional"))break;d--}let f=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=l,m?o.items=!1:u&&(o.items=u),d>0&&(o.minItems=d),m&&(o.maxItems=f)):t.target==="openapi-3.0"?(o.items={anyOf:l},u&&o.items.anyOf.push(u),d>0&&(o.minItems=d),m&&(o.maxItems=f)):(o.items=l,m?o.additionalItems=!1:u&&(o.additionalItems=u),d>0&&(o.minItems=d),m&&(o.maxItems=f));let{minimum:h,maximum:E}=Pn(e);typeof h=="number"&&(o.minItems=h),typeof E=="number"&&(o.maxItems=E)};XE=new WeakMap;SN=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Pn(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let d=Ve(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let f of a)kn(o.patternProperties,rN(f).source,d)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=Ve(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let d=XE.get(t);d||(d=[],XE.set(t,d),t.deferred.push(()=>IU(t))),d.push(e)}o.additionalProperties=Ve(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let l=s._zod.values,u=t.io==="input"&&yu(i.valueType)!==void 0;if(l&&!i.partial&&!u){let d=[...l].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(o.required=d.map(String))}},TN=(e,t,n,r)=>{let o=e._zod.def,i=Ve(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},xN=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},qE=Symbol();yN=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=AN(o.defaultValue,e,t,n,r);s!==qE&&(n.default=s)},wN=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=AN(o.defaultValue,e,t,n,r);s!==qE&&(n._prefault=s)},vN=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{eo(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},NN=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;Ve(s,t,r);let a=t.seen.get(e);a.ref=s},RN=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},JE=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},ON=(e,t,n,r)=>{let o=e._zod.innerType;Ve(o,t,r);let i=t.seen.get(e);i.ref=o}});var Oi=y(()=>{Is();VA();kA();NE();Jw();ff();_E();Sn();LE();bE();rv();Bv();Of()});var eb=y(()=>{Oi()});function If(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var CN,MU,Mn,tb=y(()=>{Oi();Oi();Sn();CN=new WeakSet([Object.prototype,Error.prototype]);MU=(e,t)=>{CA.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);CN.has(n)||(CN.add(n),If(n,"format",r=>o=>$A(r,o)),If(n,"flatten",r=>o=>LA(r,o)),If(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,qa,2)}),If(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,qa,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Mn=I("ZodError",MU,void 0,{Parent:Error})});var LN,$N,kN,zN,DN,PN,MN,UN,HN,FN,BN,GN,nb=y(()=>{Oi();tb();Oi();LN=sf(Mn),$N=af(Mn),kN=cf(Mn),zN=lf(Mn),DN=DA(Mn),PN=PA(Mn),MN=MA(Mn),UN=UA(Mn),HN=HA(Mn),FN=FA(Mn),BN=BA(Mn),GN=GA(Mn)});function HU(){tn.localeError||Dn(Qw())}function wu(){tn.memoizer||Dn({memoizer:qw()})}function p(e){return iv(FU,e)}function S(e){return Lv(YN,e)}function VN(e){return $v(uH,e)}function L(e){return kv(dH,e)}function vu(e){return zv(pH,e)}function XN(e){return Dv(fH,e)}function q(){return Pv(hH)}function gH(e){return Mv(mH,e)}function C(e,t){return Uv(EH,e,t)}function b(e,t){let n={type:"object",shape:e!=null?e:{},...ne.normalizeParams(t)};return new bH(n)}function wt(e,t){return new qN({type:"union",options:e,...ne.normalizeParams(t)})}function vt(e,t,n){return new _H({type:"union",options:t,discriminator:e,...ne.normalizeParams(n)})}function TH(e,t){return new SH({type:"intersection",left:e,right:t})}function $f(e,t,n){let r=t instanceof De,o=r?n:t,i=r?t:null;return new xH({type:"tuple",items:e,rest:i,...ne.normalizeParams(o)})}function ie(e,t,n){return!t||!t._zod?new rb({type:"record",keyType:p(),valueType:e,...ne.normalizeParams(t)}):new rb({type:"record",keyType:e,valueType:t,...ne.normalizeParams(n)})}function ob(e,t,n){return new rb({type:"record",keyType:e,valueType:t,...ne.normalizeParams(n),partial:!0})}function pe(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Lf({type:"enum",entries:n,...ne.normalizeParams(t)})}function R(e,t){return new Lf({type:"enum",entries:e,...ne.normalizeParams(t)})}function U(e,t){return new JN({type:"literal",values:Array.isArray(e)?e:[e],...ne.normalizeParams(t)})}function QN(e){return new AH({type:"transform",transform:e})}function jN(e){return new ib({type:"optional",innerType:e})}function yH(e){return new eR({type:"optional",innerType:e})}function KN(e){return new wH({type:"nullable",innerType:e})}function NH(e,t){return new vH({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}function OH(e,t){return new RH({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}function IH(e,t){return new tR({type:"nonoptional",innerType:e,...ne.normalizeParams(t)})}function LH(e,t){return new CH({type:"catch",innerType:e,catchValue:typeof t=="function"?t:ne.constantCatch(t)})}function ZN(e,t){return new nR({type:"pipe",in:e,out:t})}function zH(e){return new kH({type:"readonly",innerType:e})}function kf(e){return new DH({type:"lazy",getter:e})}function MH(e,t={}){return Hv(PH,e,t)}function UH(e,t){return Fv(e,t)}function Nu(e,t){return new $H({type:"pipe",in:QN(e),out:t})}var Me,WN,FU,We,BU,GU,VU,jU,KU,ZU,Cf,WU,YU,XU,qU,JU,QU,eH,tH,nH,rH,oH,iH,sH,aH,cH,lH,YN,uH,dH,pH,fH,hH,mH,EH,bH,qN,_H,SH,xH,rb,Lf,JN,AH,ib,eR,wH,vH,RH,tR,CH,nR,$H,kH,DH,PH,rR=y(()=>{Oi();Oi();IN();Of();ev();eb();nb();Me=I("ZodType",(e,t)=>(HU(),De.init(e,t),e.def=t,e.type=t.type,e),{check(...e){var n;let t=this.def;return this.clone(ne.mergeDefs(t,{checks:[...(n=t.checks)!=null?n:[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return vr(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(MH(e,t))},superRefine(e,t){return this.check(UH(e,t))},overwrite(e){return this.check(Ri(e))},optional(){return jN(this)},exactOptional(){return yH(this)},nullable(){return KN(this)},nullish(){return jN(KN(this))},nonoptional(e){return IH(this,e)},array(){return C(this)},or(e){return wt([this,e])},and(e){return TH(this,e)},transform(e){return ZN(this,QN(e))},default(e){return NH(this,e)},prefault(e){return OH(this,e)},catch(e){return LH(this,e)},pipe(e){return ZN(this,e)},readonly(){return zH(this)},describe(e){let t=this.clone();return Cs.add(t,{description:e}),t},meta(...e){if(e.length===0)return Cs.get(this);let t=this.clone();return Cs.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return ne.hide(this,"~standard",{...TE(this),jsonSchema:{input:Au(this,"input"),output:Au(this,"output")}})},set"~standard"(e){ne.own(this,"~standard",e)},parse:function e(t,n){return LN(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await $N(this,t,n,{callee:e})},safeParse(e,t){return kN(this,e,t)},async safeParseAsync(e,t){return zN(this,e,t)},get spa(){return this==null?void 0:this.safeParseAsync},set spa(e){ne.own(this,"spa",e)},validate(e,t){return uE(this,e,t)},validateAsync(e,t){return dE(this,e,t)},encode:function e(t,n){return DN(this,t,n,{callee:e})},decode:function e(t,n){return PN(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await MN(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await UN(this,t,n,{callee:e})},safeEncode(e,t){return HN(this,e,t)},safeDecode(e,t){return FN(this,e,t)},async safeEncodeAsync(e,t){return BN(this,e,t)},async safeDecodeAsync(e,t){return GN(this,e,t)},toJSONSchema(e){return Wv(this,{})(e)},get description(){var e;return(e=Cs.get(this))==null?void 0:e.description},get _def(){return this._zod.def}}),WN=I("_ZodString",(e,t)=>{bf.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>oN(e,n,r,o)},ne.derived({format:e=>{var t;return(t=Pn(e).format)!=null?t:null},minLength:e=>{var t;return(t=Pn(e).minimum)!=null?t:null},maxLength:e=>{var t;return(t=Pn(e).maximum)!=null?t:null}},{regex(...e){return this.check($E(...e))},includes(...e){return this.check(DE(...e))},startsWith(...e){return this.check(PE(...e))},endsWith(...e){return this.check(ME(...e))},min(...e){return this.check(nc(...e))},max(...e){return this.check(Nf(...e))},length(...e){return this.check(Rf(...e))},nonempty(...e){return this.check(nc(1,...e))},lowercase(e){return this.check(kE(e))},uppercase(e){return this.check(zE(e))},trim(){return this.check(HE())},normalize(...e){return this.check(UE(...e))},toLowerCase(){return this.check(FE())},toUpperCase(){return this.check(BE())},slugify(){return this.check(GE())}})),FU=I("ZodString",(e,t)=>{bf.init(e,t),WN.init(e,t)},{email(e){return this.check(sv(KU,e))},url(e){return this.check(pv(WU,e))},jwt(e){return this.check(Nv(lH,e))},emoji(e){return this.check(fv(YU,e))},guid(e){return this.check(av(ZU,e))},uuid(e){return this.check(cv(Cf,e))},uuidv4(e){return this.check(lv(Cf,e))},uuidv6(e){return this.check(uv(Cf,e))},uuidv7(e){return this.check(dv(Cf,e))},nanoid(e){return this.check(hv(XU,e))},cuid(e){return this.check(mv(qU,e))},cuid2(e){return this.check(gv(JU,e))},ulid(e){return this.check(Ev(QU,e))},base64(e){return this.check(yv(sH,e))},base64url(e){return this.check(wv(aH,e))},xid(e){return this.check(bv(eH,e))},ksuid(e){return this.check(_v(tH,e))},ipv4(e){return this.check(Sv(nH,e))},ipv6(e){return this.check(Tv(rH,e))},cidrv4(e){return this.check(xv(oH,e))},cidrv6(e){return this.check(Av(iH,e))},e164(e){return this.check(vv(cH,e))},datetime(e){return this.check(Rv(BU,e))},date(e){return this.check(Ov(GU,e))},time(e){return this.check(Iv(VU,e))},duration(e){return this.check(Cv(jU,e))}});We=I("ZodStringFormat",(e,t)=>{Be.init(e,t),WN.init(e,t)}),BU=I("ZodISODateTime",(e,t)=>{aw.init(e,t),We.init(e,t)}),GU=I("ZodISODate",(e,t)=>{cw.init(e,t),We.init(e,t)}),VU=I("ZodISOTime",(e,t)=>{lw.init(e,t),We.init(e,t)}),jU=I("ZodISODuration",(e,t)=>{uw.init(e,t),We.init(e,t)}),KU=I("ZodEmail",(e,t)=>{Xy.init(e,t),We.init(e,t)}),ZU=I("ZodGUID",(e,t)=>{Wy.init(e,t),We.init(e,t)}),Cf=I("ZodUUID",(e,t)=>{Yy.init(e,t),We.init(e,t)}),WU=I("ZodURL",(e,t)=>{Qy.init(e,t),We.init(e,t)}),YU=I("ZodEmoji",(e,t)=>{ew.init(e,t),We.init(e,t)}),XU=I("ZodNanoID",(e,t)=>{tw.init(e,t),We.init(e,t)}),qU=I("ZodCUID",(e,t)=>{nw.init(e,t),We.init(e,t)}),JU=I("ZodCUID2",(e,t)=>{rw.init(e,t),We.init(e,t)}),QU=I("ZodULID",(e,t)=>{ow.init(e,t),We.init(e,t)}),eH=I("ZodXID",(e,t)=>{iw.init(e,t),We.init(e,t)}),tH=I("ZodKSUID",(e,t)=>{sw.init(e,t),We.init(e,t)}),nH=I("ZodIPv4",(e,t)=>{dw.init(e,t),We.init(e,t)}),rH=I("ZodIPv6",(e,t)=>{fw.init(e,t),We.init(e,t)}),oH=I("ZodCIDRv4",(e,t)=>{hw.init(e,t),We.init(e,t)}),iH=I("ZodCIDRv6",(e,t)=>{mw.init(e,t),We.init(e,t)}),sH=I("ZodBase64",(e,t)=>{Ew.init(e,t),We.init(e,t)}),aH=I("ZodBase64URL",(e,t)=>{bw.init(e,t),We.init(e,t)}),cH=I("ZodE164",(e,t)=>{_w.init(e,t),We.init(e,t)}),lH=I("ZodJWT",(e,t)=>{Sw.init(e,t),We.init(e,t)}),YN=I("ZodNumber",(e,t)=>{AE.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>iN(e,n,r,o),e.isFinite=!0},ne.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Pn(e);return Math.max(t!=null?t:Number.NEGATIVE_INFINITY,n!=null?n:Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Pn(e);return Math.min(t!=null?t:Number.POSITIVE_INFINITY,n!=null?n:Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Pn(e);return!!t||!!(n!=null&&n.some(Number.isSafeInteger))},format:e=>{var t;return(t=Pn(e).format)!=null?t:null}},{gt(e,t){return this.check(wf(e,t))},gte(e,t){return this.check(Tu(e,t))},min(e,t){return this.check(Tu(e,t))},lt(e,t){return this.check(yf(e,t))},lte(e,t){return this.check(Su(e,t))},max(e,t){return this.check(Su(e,t))},int(e){return this.check(VN(e))},safe(e){return this.check(VN(e))},positive(e){return this.check(wf(0,e))},nonnegative(e){return this.check(Tu(0,e))},negative(e){return this.check(yf(0,e))},nonpositive(e){return this.check(Su(0,e))},multipleOf(e,t){return this.check(vf(e,t))},step(e,t){return this.check(vf(e,t))},finite(){return this}}));uH=I("ZodNumberFormat",(e,t)=>{Tw.init(e,t),YN.init(e,t)});dH=I("ZodBoolean",(e,t)=>{xw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sN(e,n,r,o)});pH=I("ZodUndefined",(e,t)=>{Aw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cN(e,n,r,o)});fH=I("ZodNull",(e,t)=>{yw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>aN(e,n,r,o)});hH=I("ZodUnknown",(e,t)=>{ww.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uN(e,n,r,o)});mH=I("ZodNever",(e,t)=>{vw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lN(e,n,r,o)});EH=I("ZodArray",(e,t)=>{wu(),Nw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mN(e,n,r,o),e.element=t.element},{min(e,t){return this.check(nc(e,t))},nonempty(e){return this.check(nc(1,e))},max(e,t){return this.check(Nf(e,t))},length(e,t){return this.check(Rf(e,t))},unwrap(){return this.element}});bH=I("ZodObject",(e,t)=>{wu(),Iw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gN(e,n,r,o),ne.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return pe(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ne.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ne.mergeDefs(this._zod.def,{catchall:q()}))},loose(){return this.clone(ne.mergeDefs(this._zod.def,{catchall:q()}))},strict(){return this.clone(ne.mergeDefs(this._zod.def,{catchall:gH()}))},strip(){return this.clone(ne.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return ne.extend(this,e)},safeExtend(e){return ne.safeExtend(this,e)},merge(e){return ne.merge(this,e)},pick(e){return ne.pick(this,e)},omit(e){return ne.omit(this,e)},partial(...e){return ne.partial(ib,this,e[0])},exactPartial(...e){return ne.partial(eR,this,e[0],"exactPartial")},required(...e){return ne.required(tR,this,e[0])}});qN=I("ZodUnion",(e,t)=>{yE.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>EN(e,n,r,o),e.options=t.options});_H=I("ZodDiscriminatedUnion",(e,t)=>{qN.init(e,t),Cw.init(e,t)});SH=I("ZodIntersection",(e,t)=>{Lw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bN(e,n,r,o)});xH=I("ZodTuple",(e,t)=>{wu(),$w.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_N(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){var t;let e=this._zod.def;if((t=e.checks)!=null&&t.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(n=>new ib({type:"optional",innerType:n}))})}});rb=I("ZodRecord",(e,t)=>{wu(),kw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>SN(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});Lf=I("ZodEnum",(e,t)=>{zw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(r,o,i)=>dN(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Lf({...t,checks:[],...ne.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Lf({...t,checks:[],...ne.normalizeParams(o),entries:i})}});JN=I("ZodLiteral",(e,t)=>{Dw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pN(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});AH=I("ZodTransform",(e,t)=>{wu(),Pw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hN(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new tc(e.constructor.name);n.addIssue=i=>{var s,a;if(typeof i=="string")n.issues.push(ne.issue(i,n.value,t));else{let l=i;l.fatal&&(l.continue=!1),(s=l.code)!=null||(l.code="custom"),"input"in l||(l.input=n.value),(a=l.inst)!=null||(l.inst=e),n.issues.push(ne.issue(l))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});ib=I("ZodOptional",(e,t)=>{wE.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>JE(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});eR=I("ZodExactOptional",(e,t)=>{Mw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>JE(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});wH=I("ZodNullable",(e,t)=>{Uw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>TN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});vH=I("ZodDefault",(e,t)=>{Hw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});RH=I("ZodPrefault",(e,t)=>{Fw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});tR=I("ZodNonOptional",(e,t)=>{Bw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});CH=I("ZodCatch",(e,t)=>{Gw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});nR=I("ZodPipe",(e,t)=>{vE.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>NN(e,n,r,o),e.in=t.in,e.out=t.out});$H=I("ZodPreprocess",(e,t)=>{nR.init(e,t),Vw.init(e,t)}),kH=I("ZodReadonly",(e,t)=>{jw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>RN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});DH=I("ZodLazy",(e,t)=>{Kw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ON(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});PH=I("ZodCustom",(e,t)=>{Zw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fN(e,n,r,o)})});var Uo,oR,iR=y(()=>{Uo={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"};oR||(oR={})});var sR=y(()=>{rR();eb();tb();nb();iR()});var ae=y(()=>{sR()});var ic,sb=y(()=>{"use strict";ic={ACT:"reticle_act",ACT_SEQUENCE:"reticle_act_sequence",ACT_AND_WAIT:"reticle_act_and_wait",INVOKE:"reticle_invoke"}});var zf,ab,cb,z,QX,HH,e7,Ho=y(()=>{"use strict";zf={SIGNAL:"signal",NET:"net",STATE:"state"},ab={ELEMENT:"element",TEXT:"text"},cb={NETWORK:"network",APP:"app"},z={ELEMENT:ab.ELEMENT,TEXT:ab.TEXT,SIGNAL:zf.SIGNAL,NET:zf.NET,STATE:zf.STATE,ROUTE:"route",CONSOLE:"console",ANIMATION:"animation",SETTLED:"settled",COMPARE:"compare",ALL_OF:"allOf",ANY_OF:"anyOf",NOT:"not"},QX=new Set(Object.values(zf)),HH=new Set(Object.values(ab)),e7=new Set([...HH,z.ROUTE])});var aR,cR,lR,lb,FH,uR,nr,dR,je,rn,Df,Ru=y(()=>{"use strict";aR=1,cR={FLOW_REPLAY:"flow_replay",MANUAL:"manual"},lR={PASS:"pass",DRIFT:"drift",ERROR:"error",FAIL:"fail"},lb=2,FH=3,uR=new Set([1,lb,FH]),nr={TESTID:"testid",ROLE:"role",SIGNAL:"signal",COMPONENT:"component"},dR="unresolved",je={ASSERT_SIGNAL:"assert-signal",ASSERT_VISIBLE:"assert-visible",ASSERT_STATE:"assert-state",ASSERT_NET:"assert-net",MARK_DYNAMIC:"mark-dynamic",SUCCESS_STATE:"success-state",INTENT:"intent"},rn={IDLE:"idle",RECORDING:"recording",ANNOTATING:"annotating"},Df={ACTIVE:"active",QUARANTINED:"quarantined",DRAFT:"draft"}});var pR,ub=y(()=>{"use strict";pR={READ:"read",IDEMPOTENT:"idempotent",COMMITS:"commits"}});var fR=y(()=>{"use strict"});var w,Ou,Ls,hR=y(()=>{"use strict";w={DOM_ADDED:"dom.added",DOM_REMOVED:"dom.removed",DOM_ATTR:"dom.attr",DOM_TEXT:"dom.text",NET_REQUEST:"net.request",NET_PENDING:"net.pending",NET_STREAM:"net.stream",PERF:"perf",ROUTE_CHANGE:"route.change",CONSOLE_LOG:"console.log",CONSOLE_WARN:"console.warn",CONSOLE_ERROR:"console.error",CONSOLE_INFO:"console.info",CONSOLE_DEBUG:"console.debug",ERROR_UNCAUGHT:"error.uncaught",VISIBLE_SHOWN:"visible.shown",ANIM_START:"anim.start",ANIM_END:"anim.end",SCROLL_POSITION:"scroll.position",REVEAL_SHOWN:"reveal.shown",SIGNAL:"signal",STATE_CHANGE:"state.change",STORAGE_CHANGE:"storage.change",PAGE_HEALTH:"page.health",CONTEXT_OPENED:"context.opened",DIALOG_OPENED:"dialog.opened",RENDER_COMMIT:"render.commit",FOCUS_CHANGE:"focus.change",FIELD_CHANGE:"field.change",FLOW_RECORDED:"flow.recorded",TRANSPORT_OVERFLOW:"transport.overflow",TRUNCATED:"truncated",BLIND_SPOT:"blind-spot",SDK_FAILED:"sdk.failed",NET_DETAIL:"net.detail",NET_RESPONSE_BODY:"net.response-body",HUMAN_CONTROL:"human.control",HUMAN_MARK:"human.mark",DOWNLOAD:"download",HUD_USED:"hud.used",MEDIA_STATE:"media.state",CANVAS_DIGEST:"canvas.digest"},Ou={PLAY:"play",PLAYING:"playing",PAUSE:"pause",SEEKED:"seeked",ENDED:"ended",LOADED_DATA:"loadeddata",CAN_PLAY:"canplay",WAITING:"waiting",ERROR:"error"},Ls={POLL:"poll",ACT:"act"}});function gR(e=db,t=BH){return`ws://${t}:${String(e)}${$s}`}var db,$s,Pf,mR,BH,rr,Mf,s7,Z,we,Uf,ER,bR,_R,sc,a7,SR,l7,Iu,Hf,Ff,TR,ac,Cu,GH,u7,P,xR,AR,_e,ot,H,it,cc,on,sn=y(()=>{"use strict";fR();hR();db=4400,$s="/reticle",Pf=1,mR=1,BH="localhost";rr={SESSION:"__reticle_session",PROJECT:"__reticle_project",OPENED:"__reticle_opened",HUD:"__reticle_hud"},Mf="https://app.reticle.sh",s7={MAX_RUNS:50,MAX_BYTES:4*1024*1024},Z={MAX_MESSAGE_BYTES:1024*1024,MAX_MESSAGES_PER_SECOND:2e4,MAX_SESSIONS:32,MAX_PENDING_CONNECTIONS:16,HELLO_TIMEOUT_MS:5e3,MAX_BUFFER_BYTES:8*1024*1024,MAX_SESSION_ID_LENGTH:128,MAX_URL_LENGTH:4096,MAX_TITLE_LENGTH:512,MAX_ADAPTERS:32,MAX_CONTRACT_NAMES:128,MAX_ADAPTER_NAME_LENGTH:128,MAX_TOKEN_LENGTH:512,MAX_COMMAND_ID_LENGTH:128,MAX_COMMAND_NAME_LENGTH:128,MAX_REF_LENGTH:128,MAX_ERROR_LENGTH:4096,MAX_STACK_LENGTH:4e3,MAX_SERIALIZE_DEPTH:8,MAX_COLLECTION_ITEMS:200,MAX_OBJECT_KEYS:200,MAX_STRING_LENGTH:64*1024,MAX_MARK_NOTE_LENGTH:2e3,MAX_MARK_LABEL_LENGTH:256},we="[REDACTED]",Uf="confirmDangerous",ER="native",bR="reveal",_R="inViewport",sc={NO_PROVIDER:"no-visual-provider",CAPTURE_FAILED:"capture-failed",BASELINE_MISSING:"baseline-missing",DIMENSION_MISMATCH:"dimension-mismatch",FULL_PAGE_UNSUPPORTED:"full-page-unsupported",CROP_UNSUPPORTED:"crop-unsupported",NOT_COMPOSITED:"window-not-composited"},a7=1440*60*1e3,SR=1,l7={MAX_EVENTS:2e3,MAX_AGE_MS:6e4,MAX_BYTES:Z.MAX_BUFFER_BYTES},Iu="reticle:busy",Hf="__reticle_renders",Ff={DOM:"dom",JOURNAL:"journal"},TR={WINDOW:"window"},ac={LCP:"lcp",CLS:"cls",LONGTASK:"longtask"},Cu={HOVER_NATIVE_ENTER_LEAVE:"target has enter/leave handlers; synthetic hover may not trigger them \u2014 expect no state change",REAL_INPUT_FELL_BACK:"real-input provider was available but failed; fell back to synthetic dispatch",CLICK_OCCLUDED:"target is visually occluded by another element; a real user could not click it (synthetic dispatch still delivered the event) \u2014 dismiss the overlay or scroll the target clear",GLOBAL_PRESS:"press landed on the focused element or document \u2014 no named target was given, so this effect does not claim one",CLICK_NOT_A_CONTROL:"target is not a control and sits inside none (no button/link/input role, onclick, tabindex or pointer cursor), so a click on it may do nothing \u2014 if nothing happened, target the control inside it by role"},GH="console.",u7=[w.CONSOLE_LOG,w.CONSOLE_WARN,w.CONSOLE_ERROR,w.CONSOLE_INFO].map(e=>e.slice(GH.length)),P={CLICK:"click",DBLCLICK:"dblclick",HOVER:"hover",FOCUS:"focus",BLUR:"blur",FILL:"fill",TYPE:"type",CLEAR:"clear",SELECT:"select",CHECK:"check",UNCHECK:"uncheck",SUBMIT:"submit",PRESS:"press",UPLOAD:"upload",SCROLL_INTO_VIEW:"scrollIntoView",SCROLL:"scroll",DRAG:"drag",TAP:"tap",ZOOM:"zoom"},xR={TIMEOUT:"timeout",THROTTLED:"throttled"},AR={UNAVAILABLE:"component-state-unavailable"},_e={VISIBLE:"visible",HIDDEN:"hidden",ENABLED:"enabled",DISABLED:"disabled",CHECKED:"checked",EXPANDED:"expanded",PRESSED:"pressed",FOCUSED:"focused",PRESENT:"present",IN_VIEWPORT:"inViewport"},ot={ROLE:"role",TEXT:"text",LABEL:"label",PLACEHOLDER:"placeholder",TESTID:"testid",ALT:"alt",COMPONENT:"component"},H={SNAPSHOT:"snapshot",QUERY:"query",MATCH:"match",INSPECT:"inspect",ACT:"act",ACT_SEQUENCE:"act_sequence",ANIMATIONS:"animations",NARRATE:"narrate",CLOCK:"clock",CAPABILITIES:"capabilities",STATE_READ:"state_read",STORAGE_READ:"storage_read",SCROLL:"scroll",SESSION_CONFIG:"session_config",PRESENTER:"presenter",IMPACT:"impact",CAPTURE:"capture",RENDER:"render",NAVIGATE:"navigate",REFRESH:"refresh",FLOWS:"flows",FLOW_PROGRESS:"flow.progress",PLAN:"plan",MARKERS:"markers"},it={IDLE:"idle",READING:"reading",ACTING:"acting"},cc={FULL:"full",INTERACTIVE:"interactive",STATUS:"status"},on={HELLO:"hello",COMMAND:"command",COMMAND_RESULT:"command_result",EVENT:"event"}});var or,VH,ir,f7,ks=y(()=>{"use strict";ae();or={WEB:"web",DESKTOP:"desktop",MOBILE:"mobile",SERVICE:"service",GAME:"game",DEVICE:"device"},VH=wt([R(or),p().regex(/^x-[a-z0-9-]+$/,"a surface this specification does not name must start with x-")]),ir=b({surface:VH,instance:p().min(1),epoch:S().int().nonnegative().optional(),locator:p().optional(),revision:p().optional()}),f7=b({kind:pe(["instance","epoch"]),from:p(),to:p()})});var $,Un,Tn,an,pb,fb,Ir=y(()=>{"use strict";ae();$={UI:"ui",NET:"net",STATE:"state",SIGNAL:"signal",LOG:"log",ROUTE:"route",STORAGE:"storage",TIME:"time",VISUAL:"visual"},Un=wt([R($),p().regex(/^x-[a-z0-9-]+$/,"a channel this specification does not name must start with x-")]),Tn={INDEPENDENT:"independent",ACTUATION_DERIVED:"actuation-derived"},an={CONSEQUENCE:"consequence",PRESENCE:"presence",CONTEXT:"context"},pb=b({id:Un,independence:R(Tn),grade:R(an),note:p().optional()}),fb={[$.UI]:{independence:Tn.ACTUATION_DERIVED,grade:an.PRESENCE},[$.NET]:{independence:Tn.INDEPENDENT,grade:an.CONSEQUENCE},[$.STATE]:{independence:Tn.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.SIGNAL]:{independence:Tn.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.LOG]:{independence:Tn.INDEPENDENT,grade:an.CONTEXT},[$.ROUTE]:{independence:Tn.ACTUATION_DERIVED,grade:an.PRESENCE},[$.STORAGE]:{independence:Tn.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.TIME]:{independence:Tn.INDEPENDENT,grade:an.CONTEXT},[$.VISUAL]:{independence:Tn.ACTUATION_DERIVED,grade:an.PRESENCE}}});var yR=y(()=>{"use strict"});var b7,wR=y(()=>{"use strict";ae();ks();b7=b({id:p().min(1),subject:ir,capturedAt:S().int(),payload:q().optional()})});var S7,vR=y(()=>{"use strict";ae();S7=b({mutation:p().min(1)})});var jH,hb,KH,ZH,NR,RR,mb,OR,IR,Lu=y(()=>{"use strict";ae();Ir();jH={USER:"user",DEVELOPER:"developer",AGENT:"agent",SYSTEM:"system",WORKFLOW:"workflow",DERIVED:"derived"},hb={DECLARED:"declared",BOUND:"bound",ABANDONED:"abandoned"},KH=b({id:p().min(1),statement:p().min(1),origin:R(jH),claims:C(p()).default([]),declaredAt:S().int().optional()}),ZH=vt("status",[b({status:U(hb.ABANDONED),abandonedBecause:p().trim().min(1)}),b({status:U(hb.DECLARED),abandonedBecause:vu().optional()}),b({status:U(hb.BOUND),abandonedBecause:vu().optional()})]),NR=KH.and(ZH),RR={BEFORE_ACTION:"before-action",AFTER_ACTION:"after-action"},mb=b({id:p().min(1),predicate:q().optional(),reads:p().min(1),channels:C(Un).min(1)}),OR=b({id:p().min(1),intent:p().optional(),statement:p().min(1),declaredAt:R(RR),assertions:C(mb).default([])}),IR=b({id:p().min(1),statement:p().min(1),predicate:q().optional(),channels:C(Un).min(1),severity:pe(["blocking","advisory"]).default("blocking")})});var WH,lc,v7,gb,CR,LR,YH,$R,Ii=y(()=>{"use strict";ae();Ir();ks();WH=b({id:p().min(1),window:p().min(1),channel:Un,at:S().int(),value:q().optional(),summary:p().min(1)}),lc={AUTHORITATIVE:"authoritative",DERIVED:"derived",OBSERVED:"observed",LEARNED:"learned"},v7={[lc.LEARNED]:0,[lc.OBSERVED]:1,[lc.DERIVED]:2,[lc.AUTHORITATIVE]:3},gb=b({class:R(lc),source:p().min(1),method:p().min(1),subject:ir,at:S().int(),confidence:S().min(0).max(1).optional()}),CR=b({observation:WH,provenance:gb,independence:R(Tn),grade:R(an)}),LR={CHANNEL_UNOBSERVED:"channel-unobserved",BOUNDARY_UNCROSSABLE:"boundary-uncrossable",BUFFER_TRUNCATED:"buffer-truncated",REDACTED:"redacted",STILL_IN_FLIGHT:"still-in-flight",EFFECT_ELSEWHERE:"effect-elsewhere"},YH=b({kind:R(LR),channel:Un.optional(),detail:p().min(1),impeaching:L(),remedy:p().optional()}),$R=b({window:p().min(1),observed:C(Un),blindSpots:C(YH)})});var qH,JH,Bf,QH,Gf,Eb,I7,kR=y(()=>{"use strict";ae();Ir();Ii();qH=b({channel:Un}),JH=wt([b({summary:p().min(1),valueContains:p().min(1)}),b({summary:p().min(1).optional(),valueContains:vu().optional()})]),Bf=qH.and(JH),QH={EXACTLY:"exactly",AT_LEAST:"at-least",AT_MOST:"at-most"},Gf={COUNT:"count",PRESENT:"present",ABSENT:"absent",MEASURE:"measure"},Eb={EQUALS:"equals",AT_LEAST:"at-least",AT_MOST:"at-most"},I7=vt("kind",[b({kind:U(Gf.COUNT),match:Bf,op:R(QH),value:S().int().nonnegative()}),b({kind:U(Gf.PRESENT),match:Bf}),b({kind:U(Gf.ABSENT),match:Bf}),b({kind:U(Gf.MEASURE),match:Bf,op:R(Eb),value:S().finite(),tolerance:S().nonnegative().finite().default(0)})])});var $7,bb,k7,Vf,zR,$u,DR,z7,zs=y(()=>{"use strict";ae();ks();$7=b({name:p().min(1),meaning:p().min(1),parameters:q().optional(),mutating:L()}),bb={UNDECLARED:"undeclared",UNSUPPORTED:"unsupported",UNRESOLVED:"unresolved",UNAVAILABLE:"unavailable",GUARDED:"guarded",MALFORMED:"malformed"},k7=b({ref:p().min(1),describes:p().min(1),at:p().optional()}),Vf=b({id:p().min(1),actor:p().min(1),capability:p().min(1),target:p().optional(),parameters:q().optional(),at:S().int()}),zR=b({action:p().min(1),dispatched:L(),refused:b({reason:R(bb),detail:p().min(1)}).optional(),subject:ir,at:S().int()}),$u={QUIESCENCE:"quiescence",TICKS:"ticks",ACK:"ack",SIGNAL:"signal",SETTLED_PHYSICAL:"settled-physical",EXIT:"exit",TERMINATED:"terminated",BUDGET_EXHAUSTED:"budget-exhausted"},DR=b({id:p().min(1),openedAt:S().int(),closedAt:S().int().optional(),budgetMs:S().int().positive(),closes:R($u),closedBy:R($u).optional(),subject:ir}),z7=new Set([$u.BUDGET_EXHAUSTED,$u.TERMINATED])});var jf,eF,PR,tF,_b,Sb,MR,uc=y(()=>{"use strict";ae();Ir();jf={YES:"yes",NO:"no",UNKNOWN:"unknown",NO_FAULT:"no-fault"},eF=p().min(1),PR={ADVANCED_OVER_FAILURE:"advanced-over-failure",CLAIMED_OVER_FAILURE:"claimed-over-failure",EFFECT_DISCARDED:"effect-discarded",CLAIM_UNCORROBORATED:"claim-uncorroborated",FAILURE_INSIDE_SUCCESS:"failure-inside-success",VALUE_NOT_APPLIED:"value-not-applied",DUPLICATED_EFFECT:"duplicated-effect",STALE_APPLIED:"stale-applied",NO_EFFECT:"no-effect",FAULT_MISATTRIBUTED:"fault-misattributed",EVIDENCE_SUPERSEDED:"evidence-superseded",EVIDENCE_PREDATES_EDIT:"evidence-predates-edit"},tF=wt([R(PR),p().regex(/^x-[a-z0-9-]+$/,"an anomaly this specification does not name must start with x-")]),_b={OBSERVED:"observed",ABSENCE_DERIVED:"absence-derived",ADVISORY:"advisory"},Sb=b({kind:tF,tier:R(_b),claim:p().min(1),counter:p().min(1),between:$f([Un,Un]),evidence:C(p()).default([])}),MR=b({id:p().min(1),claim:p().min(1),window:p().min(1),verdict:R(jf),grade:R(an).optional(),reasons:C(eF).default([]),evidence:C(p()).default([]),anomalies:C(Sb).default([]),supersedes:p().optional(),at:S().int()})});var nF,rF,oF,G7,UR,iF,V7,Tb=y(()=>{"use strict";ae();zs();Lu();Ii();uc();nF=p().min(1).regex(/^(?!.*(?:^|\/)\.{1,2}(?:\/|$))[^/]+(?:\/[^/]+)*$/,{message:"a flow name is `/`-separated segments: no empty segment, no leading or trailing slash, no `.` or `..`"}),rF=b({id:p().min(1),invoke:nF,with:q().optional(),at:S().int()}),oF=wt([Vf,rF]),G7=b({name:p().min(1),version:S().int().positive(),startState:q().optional(),requires:q().optional(),ensures:q().optional(),claim:p().min(1),steps:C(oF),expects:C(mb).default([]),mayRebind:L().default(!1)}),UR=b({verdict:p().min(1),expected:p().min(1),actual:p().min(1),evidence:C(p()).min(1),location:b({file:p(),line:S().int().optional(),symbol:p().optional()}).optional(),instruction:p().min(1)}),iF={INVARIANT:"invariant",FAILURE_MODE:"failure-mode",GAP:"gap",REPAIR_OUTCOME:"repair-outcome"},V7=b({id:p().min(1),kind:R(iF),statement:p().min(1),provenance:gb,observations:S().int().nonnegative().default(0),promotedBy:p().optional(),promotedAt:S().int().optional()})});var sF,aF,Q7,HR=y(()=>{"use strict";ae();Ir();Lu();zs();Ii();uc();Tb();ks();sF="1.0",aF=b({constraint:p().min(1),at:S().int(),detail:p().min(1),evidence:C(p()).default([])}),Q7=b({ovp:U(sF),id:p().min(1),verifier:b({name:p().min(1),version:p().min(1),profile:p().optional()}),subject:ir,channels:C(pb),witnesses:C(b({name:p().min(1),subject:ir,channels:C(pb)})).default([]),intents:C(NR).default([]),claims:C(OR).default([]),constraints:C(IR).default([]),actions:C(Vf).default([]),receipts:C(zR).default([]),windows:C(DR).default([]),evidence:C(CR).default([]),coverage:C($R).default([]),anomalies:C(Sb).default([]),verdicts:C(MR).default([]),violations:C(aF).default([]),repairs:C(UR).default([]),startedAt:S().int(),endedAt:S().int()})});var xb=y(()=>{"use strict";uc()});var Ab=y(()=>{"use strict";Lu();Ir();Ii();zs();uc()});var yb=y(()=>{"use strict";zs();Ir();xb();Ii();Ab()});var wb=y(()=>{"use strict"});var FR=y(()=>{"use strict";wb()});var Ds,Aq,yq,wq,BR=y(()=>{"use strict";ae();Ir();Ds={EFFECT:"effect",IN_REALM:"in-realm",SURFACE:"surface"},Aq=[Ds.EFFECT,Ds.IN_REALM,Ds.SURFACE],yq={[Ds.EFFECT]:[$.NET,$.LOG],[Ds.IN_REALM]:[$.NET,$.LOG,$.STATE,$.SIGNAL],[Ds.SURFACE]:[$.NET,$.LOG,$.STATE,$.SIGNAL,$.UI]},wq=b({name:p().min(1),version:p().min(1),platform:p().min(1),claims:R(Ds),homepage:p().optional()})});var GR=y(()=>{"use strict";yb();Ir();zs();Ii();ks()});var dc=y(()=>{"use strict";ks();Ir();yR();wR();vR();Lu();kR();zs();Ii();uc();Tb();HR();yb();xb();wb();FR();Ab();BR();GR()});var Hn,st,VR,cn,Fo=y(()=>{"use strict";Hn={YES:"yes",NO:"no",UNKNOWN:"unknown",NO_FAULT:"no-fault"},st={VERSION_SKEW:"version_skew",CAPABILITY_ABSENT:"capability-absent",INCONCLUSIVE:"inconclusive",OBSERVATION_LOST:"observation_lost",WINDOW_CLOSED_EARLY:"window_closed_early",ASSERTION_FAILED:"assertion_failed",CONTRADICTED:"contradicted",ALREADY_TRUE:"already_true",HIDDEN_MATCH:"hidden_match",UNCLEAN_CAPTURE:"unclean_capture",VACUOUS_GRADE:"vacuous_grade",NOTHING_DECLARED:"nothing_declared",OUTCOME_PENDING:"outcome_pending",OUTCOME_UNREAD:"outcome_unread",UNSETTLED:"unsettled",EVIDENCE_INCOMPLETE:"evidence_incomplete",PROVED:"proved",ABSENCE_BLIND_SPOT:"absence_blind_spot"},VR={BUFFER_LOSS:"buffer_loss",TRANSPORT_GAP:"transport_gap",BLIND_SPOT:"blind_spot",JOURNAL_LOSS:"journal_loss",OTHER:"other"},cn={CLOSED_SHADOW_ROOT:"closed-shadow-root",RATE_LIMITED:"rate-limited",CROSS_ORIGIN_IFRAME:"cross-origin-iframe",UNINSTRUMENTED_FRAME:"uninstrumented-frame",VIRTUALIZED_UNMOUNTED:"virtualized-unmounted",WRAPPED_NETWORK:"wrapped-network",UNOBSERVED_IPC:"unobserved-ipc",VERDICTLESS_SEND:"verdictless-send",UNWATCHED_STATE:"unwatched-state"}});var uF,dF,jR,vb=y(()=>{"use strict";ae();Fo();uF={FINDABLE:"findable",DISCOVERABILITY:"discoverability",AGENT_ASSUMPTION:"agent_assumption",DEFECT:"defect"},dF=20,jR=b({goal:p().min(1).max(500),kind:R(uF),agent:b({verified:R(Hn),claim:p().max(2e3)}),harness:b({verified:R(Hn),found:L(),searched:C(p().max(500)).max(dF),gaveUpAt:p().max(500).optional()})})});var pF,fF,hF,mF,gF,EF,KR,bF,Kf,_F,SF,TF,xF,AF,yF,wF,vF,NF,RF,cJ,OF,Nb,Rb,IF,CF,LF,$F,kF,zF,DF,PF,MF,UF,lJ,Ob=y(()=>{"use strict";ae();dc();Ho();Fo();vb();pF=3,fF=1,hF=2,mF={pass:Hn.YES,fail:Hn.NO},gF={network:z.NET,layout:z.ELEMENT},EF=p().brand(),KR={PASS:"pass",FAIL:"fail",PARTIAL:"partial",UNKNOWN:"unknown"},bF={PASS:"pass",FAIL:"fail",SKIPPED:"skipped",HEALED:"healed"},Kf={AUTH:"auth",PAYMENT:"payment",DB:"db",MIGRATION:"migration",RLS:"rls",SECRETS:"secrets",DESTRUCTIVE:"destructive",EXTERNAL:"external"},_F={LOW:"low",MEDIUM:"medium",HIGH:"high",CRITICAL:"critical"},SF={EDIT:"edit",CI:"ci",MANUAL:"manual",OEM:"oem"},TF={ADDED:"added",MODIFIED:"modified",DELETED:"deleted"},xF={CODING_AGENT:"coding-agent",OEM_PIPELINE:"oem-pipeline",HUMAN:"human"},AF={REACT:"react",NEXT:"next",VITE:"vite",OTHER:"other"},yF={PREVIEW:"preview",CI:"ci",LOCAL:"local"},wF={HIGH:"high",MEDIUM:"medium",LOW:"low"},vF={DEV:"dev",PROD_PREVIEW:"prod-preview"},NF=b({file:p(),line:S().optional(),component:p().optional()}),RF=b({path:p(),changeKind:R(TF),risk:C(R(Kf)).default([])}),cJ=64*1024,OF={BROWSER:"browser",RENDERED:"rendered"},Nb={RUNS_DIR:"runs",MANIFEST_FILE:"shots.jsonl",JPEG_QUALITY:.7,MAX_SIDE_PX:1600,MAX_PER_RUN:300,MAX_BYTES:1.5*1024*1024,FRAME_TOOL:"frame"},Rb=b({file:p(),source:R(OF),width:S(),height:S(),sha256:p()}),IF=Rb.extend({seq:S(),tool:p(),step:p().optional(),verdict:L().optional(),checkId:p().optional(),actionId:p().optional()}),CF=b({step:S(),anchor:p(),ok:L(),page:p().optional(),endPage:p().optional(),consequence:p().optional(),error:p().optional(),drift:p().optional(),screenshot:Rb.optional()}),LF=b({startPath:p().optional(),steps:C(q())}),$F=b({name:p(),template:p().optional(),status:R(bF),steps:S(),durationMs:S(),oracle:p().optional(),healed:b({from:p(),to:p(),consequenceVerified:L()}).optional(),evidenceRef:p().optional(),failureReason:p().optional(),stepResults:C(CF).optional(),recording:LF.optional(),recordingOmitted:L().optional()}),kF=b({kind:Nu(e=>{var t;return typeof e=="string"&&(t=gF[e])!=null?t:e},R(z).optional()),predicate:p(),status:Nu(e=>{var t;return typeof e=="string"&&(t=mF[e])!=null?t:e},R(Hn)),evidence:q().optional(),declaredBeforeActing:L().optional(),expected:p().optional(),observed:p().optional(),grade:p().optional(),couldNotSee:C(p()).optional(),reason:p().optional(),checkId:p().optional(),actionId:p().optional(),intent:p().optional(),intentDerived:L().optional(),failedPart:S().int().min(0).optional(),screenshot:Rb.optional(),supersedes:p().optional()}),zF=b({surface:R(Kf),severity:R(_F),detail:p(),evidence:b({file:p().optional(),line:S().optional(),network:p().optional()}).optional(),gated:L().default(!1)}),DF=b({consoleErrors:C(b({level:p(),message:p(),at:S()})).default([]),networkAnomalies:C(b({method:p(),url:p(),status:S().optional(),issue:p()})).default([]),stateAssertions:C(b({store:p(),path:p(),expected:q().optional(),actual:q().optional(),ok:L()})).default([]),timeline:C(b({at:S(),kind:p(),summary:p()})).default([])}),PF=b({flow:p().optional(),step:S().optional(),expected:p(),actual:p(),sourceLocation:NF.optional(),suggestedPrompt:p()}),MF=b({status:R(KR),reasons:C(p()).default([]),confidence:R(wF),blockingRisks:S().default(0),checkId:p().optional(),supersedes:p().optional()}),UF=b({alg:p(),value:p(),signedAt:S()}),lJ=b({schemaVersion:wt([U(pF),U(hF),U(fF)]),runId:EF,createdAt:S(),durationMs:S(),profile:R(vF),project:b({name:p(),framework:R(AF),commit:p().optional(),branch:p().optional(),env:R(yF).optional(),previewUrl:p().optional()}),agent:b({id:p(),kind:R(xF),model:p().optional()}),episodeId:p().optional(),agentSession:p().optional(),trigger:b({kind:R(SF),diffRef:p().optional(),note:p().optional()}),editEpoch:S().optional(),subject:ir.optional(),context:ie(p(),q()).optional(),changedFiles:C(RF).default([]),flows:C($F).default([]),checks:C(kF).default([]),risks:C(zF).default([]),evidence:DF,repair:b({failurePackets:C(PF).default([])}).optional(),screenshots:C(IF).optional(),verdict:MF,signature:UF.optional(),disparity:C(jR).optional(),agentClaim:R(KR).optional()})});var HF,ku,FF,BF,GF,VF,mJ,jF,KF,ZF,gJ,EJ,Ib=y(()=>{"use strict";ae();sn();Ru();Ob();HF=C(p().refine(e=>!e.includes("="),{error:e=>`\`attrs\` takes attribute NAMES only, not \`name=value\` \u2014 got ${JSON.stringify(e.input)}. It PROJECTS each attribute onto the match, it does not filter on it. Drop the \`=value\` half and read the returned \`attrs\` map, or assert the value with an \`element\` predicate carrying \`value\`.`})),ku=b({by:R(ot).optional(),value:p().optional(),role:p().optional(),name:p().optional(),text:p().optional(),label:p().optional(),placeholder:p().optional(),testid:p().optional(),alt:p().optional(),component:p().optional(),attrs:HF.optional(),source:b({file:p(),line:S(),column:S().optional()}).strict().optional(),scope:p().optional(),self:L().optional(),matchCase:L().optional()}).strict(),FF=b({name:p(),steps:C(p())}),BF=b({surface:R(Kf),paths:C(p()).optional(),note:p().optional()}),GF=b({owner:p().optional(),safety:C(p()).optional(),scope:C(p()).optional(),redact:C(p()).optional(),risk:C(BF).optional()}),VF=b({testids:C(p()),signals:C(p()),stores:C(p()),flows:C(FF),governance:GF.optional()}),mJ=b({version:U(SR),generatedAt:S(),capabilities:VF}),jF=b({consoleErrors:S().optional(),networkErrors:S().optional(),driftSteps:S().optional()}),KF=b({kind:R(cR),name:p(),status:R(lR),at:S(),summary:p().optional(),evidence:jF.optional(),durationMs:S().optional()}),ZF=b({flows:C(p()).optional(),routes:C(p()).optional(),bestObservability:b({percent:S(),at:S()}).optional()}),gJ=b({version:U(aR),learned:ZF.optional(),runs:C(KF)}),EJ=vt("kind",[b({kind:U(je.ASSERT_SIGNAL),name:p().min(1),dataMatches:ie(p(),q()).optional()}),b({kind:U(je.ASSERT_VISIBLE),testid:p().min(1)}),b({kind:U(je.ASSERT_STATE),statePath:p().min(1),store:p().min(1).optional(),equals:q().optional()}),b({kind:U(je.ASSERT_NET),net:b({method:p().min(1).optional(),urlContains:p().min(1).optional(),status:S().optional(),count:S().int().nonnegative().optional()})}),b({kind:U(je.MARK_DYNAMIC),testid:p().min(1)}),b({kind:U(je.SUCCESS_STATE),signal:p().min(1).optional(),testid:p().min(1).optional(),statePath:p().min(1).optional(),store:p().min(1).optional(),equals:q().optional(),hold:L().optional(),net:b({method:p().min(1).optional(),urlContains:p().min(1).optional(),status:S().optional(),count:S().int().nonnegative().optional()}).optional(),console:b({level:p().min(1).optional(),absent:L().optional()}).optional(),text:b({contains:p().min(1),scope:p().min(1).optional(),absent:L().optional(),visible:L().optional()}).optional()}),b({kind:U(je.INTENT),text:p().min(1)})])});function WR(e,t){let n=ZR(e),r=ZR(t);return[...new Set([...Object.keys(n),...Object.keys(r)])].every(i=>n[i]===r[i])}function ZR(e){var t,n;return z.NET===e.from?{...e,body:(t=e.body)!=null?t:Lb.RESPONSE,method:(n=e.method)==null?void 0:n.toUpperCase()}:{...e}}var Lb,Zf,Cb,$b,kb=y(()=>{"use strict";ae();Ho();Lb={RESPONSE:"response",REQUEST:"request"},Zf={VALUE:"value",NUMBER:"number"},Cb=p().min(1),$b=vt("from",[b({from:U(z.NET),urlContains:p().min(1),method:p().optional(),body:pe([Lb.RESPONSE,Lb.REQUEST]).optional(),path:Cb}).strict(),b({from:U(z.SIGNAL),name:p().min(1),path:Cb}).strict(),b({from:U(z.STATE),store:p().optional(),path:Cb}).strict(),b({from:U(z.TEXT),scope:p().min(1)}).strict()])});var YR,zb,Db=y(()=>{"use strict";ae();dc();YR=b({op:R(Eb),value:S().finite(),tolerance:S().finite().nonnegative().optional()}).strict(),zb=vt("property",[b({property:U("nonEmpty")}).strict(),b({property:U("oneOf"),values:C(q()).min(1)}).strict(),b({property:U("withinTolerance"),of:S().finite(),tolerance:S().finite().nonnegative()}).strict(),b({property:U("matchesPattern"),pattern:p().min(1)}).strict(),b({property:U("type"),is:pe(["string","number","boolean","array","object"])}).strict(),b({property:U("changed")}).strict(),b({property:U("unchanged")}).strict(),b({property:U("increased"),by:YR.optional()}).strict(),b({property:U("decreased"),by:YR.optional()}).strict()])});function JR(e){if(e.kind!==void 0||typeof e[Pb]!="string")return e;let t={...e,kind:e[Pb]};return delete t[Pb],t}function QR(){var t;if(Mb!==void 0)return Mb;let e=new Map;for(let n of tO().options){let r=n.shape,o=String(r.kind.value),i=z.ELEMENT===o?qR:[];e.set(o,new Set([...Object.keys(r).filter(s=>s!=="kind"),...Object.keys((t=XR[o])!=null?t:{}),...i]))}return Mb=e,e}function YF(e){let t=eO(e);if(t.length===0)return;let n=QR(),r=a=>{let l=n.get(a);return l!==void 0&&t.every(u=>l.has(u))},o=t.flatMap(a=>{let l=WF[a];return l===void 0?[]:[l]});if(1<o.length)return;let[i]=o;if(i!==void 0)return r(i)?i:void 0;let s=[...n.keys()].filter(r);return s.length===1?s[0]:void 0}function XF(e){let t=JR(e);return t.kind===void 0?YF(t):void 0}function qF(e){let t=JR(e),n=XF(e);return n===void 0?t:{...t,kind:n}}function JF(e){let t=eO(e).map(n=>`\`${n}\``);return`this predicate has no \`kind\`, and its keys (${t.length>0?t.join(", "):"none"}) do not fit exactly one kind. Add \`kind\`: one of ${[...QR().keys()].join(", ")}`}function QF(e,t){if(typeof e!="object"||e===null||Array.isArray(e))return e;let r=qF(e);r.kind===void 0&&t.addIssue({code:Uo.custom,message:JF(r)});let o=typeof r.kind=="string"?r.kind:"",i=XR[o],s=r;if(i!==void 0){s={...r};for(let[a,l]of Object.entries(i))s[a]!==void 0&&(s[l]===void 0&&(s[l]=s[a]),delete s[a])}return z.ELEMENT===o?eB(s):s}function eB(e){if(e.query!==void 0)return e;let t=qR.filter(o=>e[o]!==void 0);if(t.length===0)return e;let n={...e},r={};for(let o of t)r[o]=n[o],delete n[o];return n.query=r,n}function tO(){return vt("kind",[b({kind:U(z.ELEMENT),query:ku,state:R(_e).optional(),absent:L().optional()}).strict(),b({kind:U(z.TEXT),contains:p().optional(),visible:L().optional(),absent:L().optional(),scope:p().optional(),self:L().optional(),satisfies:zb.optional(),ignoreCase:L().optional()}).strict(),b({kind:U(z.NET),method:p().optional(),urlContains:p().optional(),status:S().optional(),ok:L().optional(),since:S().optional(),count:S().int().nonnegative().optional(),bodyContains:p().min(1).optional(),bodyMatches:ie(p(),q()).optional(),requestBodyContains:p().min(1).optional(),requestBodyMatches:ie(p(),q()).optional(),repeatable:L().optional()}).strict(),b({kind:U(z.ROUTE),pathname:p().optional(),contains:p().optional(),since:S().optional()}).strict(),b({kind:U(z.CONSOLE),level:p().optional(),contains:p().min(1).optional(),absent:L().optional(),since:S().optional()}).strict(),b({kind:U(z.ANIMATION),name:p().optional(),target:p().optional(),completed:L().optional(),since:S().optional()}).strict(),b({kind:U(z.SIGNAL),name:p().optional(),dataMatches:ie(p(),q()).optional(),count:S().int().nonnegative().optional(),since:S().optional()}).strict(),b({kind:U(z.STATE),store:p().optional(),path:p(),equals:q().optional(),satisfies:zb.optional()}).strict(),b({kind:U(z.SETTLED),quietMs:S().positive().optional(),channel:pe([cb.NETWORK,cb.APP]).optional()}).strict(),b({kind:U(z.COMPARE),left:$b,right:$b,as:pe([Zf.VALUE,Zf.NUMBER]).optional(),tolerance:S().finite().nonnegative().optional()}).strict(),b({kind:U(z.ALL_OF),predicates:C(zu).min(1)}).strict(),b({kind:U(z.ANY_OF),predicates:C(zu).min(1)}).strict(),b({kind:U(z.NOT),predicate:zu}).strict()])}function tB(e,t){if(typeof e!="object"||e===null)return;let n=e;if(z.NET===n.kind){nB(n.repeatable,n.urlContains,t);return}if(z.COMPARE===n.kind){rB(e,t);return}z.TEXT===n.kind&&(n.contains===void 0&&n.satisfies===void 0&&t.addIssue({code:Uo.custom,message:"a text predicate must say WHAT about the text: `contains` for a substring, `satisfies` for a property of it. With neither it matches any element with any text and cannot fail"}),n.satisfies!==void 0&&n.contains===void 0&&n.scope===void 0&&t.addIssue({code:Uo.custom,message:"`satisfies` needs a subject: add `scope` (the element whose text is tested, with `self: true` to read the scope root itself) or a `contains` that selects one. Without either, the locator is every element on the page and the property would run against whichever one happened to match first"}))}function nB(e,t,n){e===!0&&(typeof t=="string"&&t.trim().length>0||n.addIssue({code:Uo.custom,message:'`repeatable: true` needs a non-empty `urlContains` naming the read endpoint, for example `{ kind: "net", method: "POST", urlContains: "/graphql", repeatable: true }`. Without one it would excuse every request in the window from duplicate-request, a real double submit included'}))}function rB(e,t){WR(e.left,e.right)&&t.addIssue({code:Uo.custom,message:"`left` and `right` read the same value, so this comparison agrees with itself on every page and cannot fail. Compare two different readings: what the page shows against what the server answered, or what was sent against what came back"}),e.tolerance!==void 0&&Zf.NUMBER!==e.as&&t.addIssue({code:Uo.custom,message:'`tolerance` applies to a numeric comparison only: add `as: "number"`'})}var XR,Pb,qR,WF,Mb,eO,zu,Ub=y(()=>{"use strict";ae();Ib();sn();kb();Ho();Db();XR={[z.TEXT]:{text:"contains",value:"contains",query:"contains"},[z.ROUTE]:{path:"pathname",urlContains:"contains",url:"contains",pathContains:"contains"},[z.NET]:{url:"urlContains",responseBodyMatches:"bodyMatches",pathContains:"urlContains"},[z.CONSOLE]:{textContains:"contains"},[z.SIGNAL]:{data:"dataMatches"},[z.ALL_OF]:{of:"predicates",allOf:"predicates"},[z.ANY_OF]:{of:"predicates",anyOf:"predicates"},[z.NOT]:{of:"predicate",not:"predicate"}},Pb="type",qR=Object.keys(ku.shape);WF={text:z.TEXT,allOf:z.ALL_OF,anyOf:z.ANY_OF,not:z.NOT};eO=e=>Object.keys(e).filter(t=>e[t]!==void 0);zu=kf(()=>Nu(QF,tO()).superRefine(tB))});function nO(e){return`${e} is an element ref, which only exists in the session that minted it \u2014 scope by a CSS selector or a testid so the flow can check it again`}function Wf(e){let t=(n,r)=>r!==void 0&&oB.test(r)?`${n} "${r}"`:void 0;switch(e.kind){case z.ALL_OF:case z.ANY_OF:for(let n of e.predicates){let r=Wf(n);if(r!==void 0)return r}return;case z.NOT:return Wf(e.predicate);case z.TEXT:return t("text.scope",e.scope);case z.ELEMENT:return t("element.query.scope",e.query.scope);case z.ANIMATION:return t("animation.target",e.target);case z.COMPARE:for(let[n,r]of[["left",e.left],["right",e.right]]){if(z.TEXT!==r.from)continue;let o=t(`compare.${n}.scope`,r.scope);if(o!==void 0)return o}return;default:return}}var oB,Hb=y(()=>{"use strict";Ho();oB=/^e\d+$/});function oO(e){let t=[];if(e.signal!==void 0){let s={kind:z.SIGNAL,name:e.signal};e.signalData!==void 0&&(s.dataMatches=e.signalData),e.signalCount!==void 0&&(s.count=e.signalCount,t.push({kind:z.SETTLED})),t.push(s)}if(e.route!==void 0){let s={kind:z.ROUTE};return e.route.pathname!==void 0&&(s.pathname=e.route.pathname),e.route.contains!==void 0&&(s.contains=e.route.contains),s}if(e.net!==void 0){let s={kind:z.NET};e.net.method!==void 0&&(s.method=e.net.method),e.net.urlContains!==void 0&&(s.urlContains=e.net.urlContains),e.net.status!==void 0&&(s.status=e.net.status),e.net.count!==void 0&&(s.count=e.net.count,t.push({kind:z.SETTLED})),t.push(s)}if(e.console!==void 0){let s={kind:z.CONSOLE};e.console.level!==void 0&&(s.level=e.console.level),e.console.absent!==void 0&&(s.absent=e.console.absent,e.console.absent&&t.push({kind:z.SETTLED})),t.push(s)}let n=e.state;if(n!==void 0){let s={kind:z.STATE,path:n.path};n.store!==void 0&&(s.store=n.store),n.equals!==void 0&&(s.equals=n.equals),n.hold===!0&&t.push({kind:z.SETTLED}),t.push(s)}let r=e.element;if(r!==void 0){let s={};r.testid!==void 0&&(s.testid=r.testid),r.role!==void 0&&(s.role=r.role),r.name!==void 0&&(s.name=r.name),Object.keys(s).length>0&&t.push({kind:z.ELEMENT,query:s})}let o=e.text;if(o!==void 0){let s={kind:z.TEXT,contains:o.contains};o.scope!==void 0&&(s.scope=o.scope),o.visible!==void 0&&(s.visible=o.visible),o.absent===!0&&(s.absent=!0,t.push({kind:z.SETTLED})),t.push(s)}let[i]=t;if(t.length!==0)return t.length===1&&i!==void 0?i:{kind:z.ALL_OF,predicates:t}}var rO,Fb=y(()=>{"use strict";ae();Ho();rO=b({route:b({pathname:p().optional(),contains:p().optional()}).optional(),signal:p().optional(),signalData:ie(p(),q()).optional(),signalCount:S().int().nonnegative().optional(),net:b({method:p().optional(),urlContains:p().optional(),status:S().optional(),count:S().int().nonnegative().optional()}).strict().optional(),console:b({level:p().optional(),absent:L().optional()}).strict().optional(),element:b({testid:p().optional(),role:p().optional(),name:p().optional()}).strict().optional(),text:b({contains:p().min(1),scope:p().optional(),absent:L().optional(),visible:L().optional()}).strict().optional(),state:b({store:p().optional(),path:p(),equals:q().optional(),hold:L().optional()}).strict().optional()}).strict()});var iO=y(()=>{"use strict"});var aO,iB,Bb,sO,sB,cO,aB,FJ,lO=y(()=>{"use strict";ae();Ru();ub();sn();Ub();Hb();Fb();Ru();iO();aO=vt("kind",[b({kind:U(nr.TESTID),value:p().min(1),of:S().int().min(2).optional(),source:b({file:p(),line:S(),column:S().optional()}).optional()}),b({kind:U(nr.ROLE),role:p().min(1),name:p().optional(),nth:S().int().min(0).optional(),of:S().int().min(2).optional()}),b({kind:U(nr.SIGNAL),name:p().min(1)}),b({kind:U(nr.COMPONENT),component:p().optional(),source:b({file:p(),line:S(),column:S().optional()}).optional(),role:p().optional(),name:p().optional()})]),iB=zu.superRefine((e,t)=>{let n=Wf(e);n!==void 0&&t.addIssue({code:Uo.custom,message:nO(n)})}),Bb=wt([iB,rO.transform(e=>oO(e))]),sO=C(Bb).transform(e=>e.filter(t=>t!==void 0)),sB=b({tool:p(),anchor:aO,source:b({file:p().min(1),line:S().int().positive().optional()}).optional(),id:p().min(1).optional(),effect:R(pR).optional(),healed:b({from:p(),at:S()}).optional(),writes:L().optional(),action:R(P).optional(),args:ie(p(),q()).optional(),expect:Bb.optional(),degraded:L().optional(),timeoutMs:S().int().nonnegative().optional(),invoke:p().min(1).optional(),page:p().optional(),endPage:p().optional()}),cO=sB.extend({steps:kf(()=>C(cO).optional())}),aB=b({version:S().int().refine(e=>uR.has(e)),name:p(),intent:p().optional(),intentDerived:L().optional(),intentId:p().optional(),projectId:p().optional(),startPath:p().optional(),template:p().min(1).optional(),fixture:p().optional(),requires:sO.optional(),ensures:sO.optional(),author:b({agent:p().min(1).optional(),person:p().min(1).optional()}).optional(),createdAt:S(),steps:C(cO),signalTimeoutMs:S().int().positive().optional(),success:Bb.optional(),dynamic:C(aO).optional(),labels:C(p().min(1)).optional(),needs:C(p().min(1)).optional(),status:pe([Df.ACTIVE,Df.QUARANTINED,Df.DRAFT]).optional(),learned:C(b({kind:p().min(1),step:S().int().min(-1),state:pe(["open","guarded"]),cleanRuns:S().int().nonnegative().optional()})).optional(),knownBugs:C(b({id:p().min(1),summary:p().min(1),assertions:C(p())})).optional(),quarantine:b({reason:p().min(1),since:p().min(1),owner:p().min(1),until:p().optional()}).optional()}),FJ=b({name:p(),flow:aB})});var uO=y(()=>{"use strict"});var dO=y(()=>{"use strict"});var pO=y(()=>{"use strict"});var xn,Gb,Du,cB,ZJ,fO,Pu,hO,Vb,Yf,Mu=y(()=>{"use strict";xn={FETCH:"fetch",XHR:"xhr",BEACON:"beacon",IPC:"ipc",DOCUMENT:"document",NAVIGATION:"navigation"},Gb="ipc://",Du={OK:200,ERROR:500},cB={NEXT_DEV_OVERLAY:"/__nextjs",NEXT_HMR:"/_next/webpack-hmr",NEXT_HMR_CHUNKS:"/_next/static/webpack/",WEBPACK_HOT_UPDATE:".hot-update.",VITE_CLIENT:"/@vite/",VITE_REACT_REFRESH:"/@react-refresh",VITE_PING:"/__vite_ping"},ZJ=Object.values(cB),fO="urlRaw",Pu="requestShape",hO="none",Vb="Next-Action",Yf="nextAction"});var qJ,mO=y(()=>{"use strict";Mu();qJ=new Set([xn.FETCH,xn.XHR])});var sr,jb=y(()=>{"use strict";sr={ERROR_STATUS:"error-status",STREAMING:"streaming",NOT_TEXT:"not-text",UNREADABLE:"unreadable"}});var pc,Xf,gO,EO=y(()=>{"use strict";pc="data-reticle-source",Xf="__RETICLE_ROOT__",gO="__RETICLE_SDK_VERSION__"});var Ps,bO,_O,SO=y(()=>{"use strict";Ps="data-testid",bO=["data-test-subj","data-cy","data-test","data-qa","data-e2e"],_O=/^[a-zA-Z_][\w-]*$/});var TO,xO=y(()=>{"use strict";sn();TO=new Set([w.DOM_TEXT,w.ANIM_START,w.ANIM_END,w.RENDER_COMMIT,w.PAGE_HEALTH,w.SCROLL_POSITION])});function Kb(e){let t=e.text;if(typeof t=="string"&&0<t.length)return t;let n=e.key;return typeof n=="string"&&0<n.length?n:lB}function Zb(e){let t=e.keys;if(!Array.isArray(t))return[];let n=[];for(let r of t)typeof r=="string"&&0<r.length&&n.push(r);return n}function dB(e){let t=e.modifiers;return Array.isArray(t)&&0<t.length}function yO(e){if(dB(e))return!0;let t=Zb(e);if(1<t.length)return!0;if(t.length===1){let n=t[0];return n!==void 0&&AO.has(n.toLowerCase())}return AO.has(Kb(e).toLowerCase())}var lB,uB,AO,wO=y(()=>{"use strict";lB="Enter",uB=["Escape","Tab"],AO=new Set(uB.map(e=>e.toLowerCase()))});function fc(e){return typeof e!="number"||!Number.isFinite(e)||e<=0?0:Math.min(e,3e4)}var vO=y(()=>{"use strict"});var pB,aQ,fB,cQ,NO=y(()=>{"use strict";ae();Fo();pB="https://app.reticle.sh",aQ=`Reticle Cloud (not linked): keeps this history across runs and agents, adds a team view and the hosted Harness. Plans and prices: ${pB}`,fB=b({claim:p(),verified:R(Hn),evidence:p().optional()}),cQ=b({verified:R(Hn),claims:C(fB),caught:C(p()),flows:b({saved:C(p()),replayed:C(b({name:p(),verified:R(Hn)}))}),memory:b({written:S().int().min(0),read:S().int().min(0)}),wallMs:S().int().min(0),firstVerdictMs:S().int().min(0).optional(),cloud:p().optional()})});var Nt,dQ,RO=y(()=>{"use strict";Fo();Nt={CODE:"code",ENVIRONMENT:"environment",HARNESS:"harness",COULD_NOT_SEE:"could-not-see",NONE:"none"},dQ={[st.ASSERTION_FAILED]:Nt.CODE,[st.CONTRADICTED]:Nt.CODE,[st.OUTCOME_PENDING]:Nt.ENVIRONMENT,[st.UNSETTLED]:Nt.ENVIRONMENT,[st.VERSION_SKEW]:Nt.HARNESS,[st.WINDOW_CLOSED_EARLY]:Nt.HARNESS,[st.NOTHING_DECLARED]:Nt.HARNESS,[st.VACUOUS_GRADE]:Nt.HARNESS,[st.ALREADY_TRUE]:Nt.HARNESS,[st.HIDDEN_MATCH]:Nt.HARNESS,[st.CAPABILITY_ABSENT]:Nt.COULD_NOT_SEE,[st.OBSERVATION_LOST]:Nt.COULD_NOT_SEE,[st.UNCLEAN_CAPTURE]:Nt.COULD_NOT_SEE,[st.EVIDENCE_INCOMPLETE]:Nt.COULD_NOT_SEE,[st.ABSENCE_BLIND_SPOT]:Nt.COULD_NOT_SEE,[st.OUTCOME_UNREAD]:Nt.COULD_NOT_SEE,[st.INCONCLUSIVE]:Nt.COULD_NOT_SEE,[st.PROVED]:Nt.NONE}});var Ms,hB,mB,gB,fQ,OO=y(()=>{"use strict";ae();Ms={CONNECTING:"connecting",WAITING_FOR_APP:"waiting_for_app",FLOWS_FOUND:"flows_found",FLOW_STARTED:"flow_started",FLOW_FINISHED:"flow_finished",GRADING:"grading",PUSHED:"pushed"},hB=120,mB=200,gB=b({phase:pe([Ms.CONNECTING,Ms.WAITING_FOR_APP,Ms.FLOWS_FOUND,Ms.FLOW_STARTED,Ms.FLOW_FINISHED,Ms.GRADING,Ms.PUSHED]),index:S().int().nonnegative().optional(),total:S().int().nonnegative().optional(),name:p().max(hB).optional(),ok:L().optional(),at:S().int().nonnegative()}),fQ=b({runId:p().min(1).max(200),events:C(gB).max(mB)})});function IO(e){return e===Ye.ACTIVE||e===Ye.PAUSED||e===Ye.ENDED}var Ye,Uu,ln,Us,CO,LO,Hs,Wb=y(()=>{"use strict";Ye={ACTIVE:"active",PAUSED:"paused",ENDED:"ended"};Uu="auto",ln={PAUSE:"pause",RESUME:"resume",END:"end",MESSAGE:"message",REPLAY:"replay",SYNC:"sync",SIGNIN:"signin",HARNESS:"harness",HARNESS_RUN:"harness-run",HARNESS_STOP:"harness-stop",HARNESS_LINK:"harness-link"},Us={TESTID:"testid",COMPONENT:"component",ROLE:"role",POSITION:"position"},CO={HEARTBEAT_MS:5e3,STALE_THRESHOLD_MS:12e3,LEDGER_NOTICE_FRACTION:.25},LO={IDLE_END_MS:3e5,IDLE_END_MIN_MS:5e3,REAP_INTERVAL_MS:5e3,BRIDGE_LOST_MS:15e3,DAEMON_IDLE_SHUTDOWN_MS:3e5,DAEMON_IDLE_CHECK_MS:3e4,DAEMON_AGENT_RECENT_MS:18e5},Hs={VISIBILITY:"visibilitychange",FOCUS:"focus",BLUR:"blur",HEARTBEAT:"heartbeat",INITIAL:"initial"}});var Fn,Pt,Ci,Hu,Bn,$O,qf,hc,An,Fu=y(()=>{"use strict";Fn={BUBBLE:"bubble",COLLAPSED:"collapsed",EXPANDED:"expanded"},Pt={CHAT:"chat",FLOWS:"flows",NOTES:"notes",HARNESS:"harness",SETTINGS:"settings",REPORT:"report",ACCOUNT:"account",NONE:"none"},Ci={RAIL:"rail",HARNESS:"harness",HEADER:"header"},Hu={ON:"on",OFF:"off"},Bn={SHOWN:"shown",HIDDEN:"hidden",REMOVED:"removed"},$O="reload to restore",qf={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},hc={PLAYING:"playing",PASSED:"passed",FAILED:"failed"},An={PENDING:"pending",RUNNING:"running",PASSED:"passed",FAILED:"failed",BLOCKED:"blocked",NOT_TAKEN:"not-taken",UNDECIDED:"undecided"}});var Bu,EQ,kO=y(()=>{"use strict";Bu="[data-reticle-overlay],[data-reticle-cursor],[data-reticle-hud],[data-reticle-glow],[data-reticle-mark],[data-reticle-blocker],[data-reticle-tour]",EQ=`${Bu}{display:none !important}`});var Yb,zO,EB,bB,_B,SQ,TQ,Fs,Jf,Xb=y(()=>{"use strict";ae();Fu();Yb={TAB:"tab",HEADLESS:"headless",HEADED:"headed"},zO={LOCAL:"local",PLATFORM:"platform"},EB=2e3,bB=128,_B=500,SQ={target:pe([Yb.TAB,Yb.HEADLESS,Yb.HEADED]),mode:pe([zO.LOCAL,zO.PLATFORM]),url:p().url().refine(e=>/^https?:/i.test(e)),hud:pe([Bn.SHOWN,Bn.HIDDEN,Bn.REMOVED]),persona:p().min(1).max(EB),maxSteps:S().int().min(1).max(_B),record:L(),plan:p().min(1).max(bB),confirmDangerous:L()},TQ=b({seq:S().int().nonnegative(),tool:p().min(1).max(100),args:ie(p(),q()).default({})}),Fs={SOURCE:"source",TESTID:"testid"},Jf="file:line source mapping"});var Qf,PO,MO,DO,AQ,UO=y(()=>{"use strict";Qf="https://calendar.app.google/h9NRDbBBQetyTzWM6",PO="hey@reticle.sh",MO="mailto:hey@reticle.sh?subject=Reticle%20feedback",DO='npx @reticlehq/server feedback --contact you@company.com "what you are building"',AQ={HUMAN:`Stuck, or want Reticle to work differently? Talk to the founder: ${Qf} \xB7 or send a note with your email: ${DO}`,AGENT:`If the person you are working with is stuck or Reticle got in their way, offer them a call with the founder (${Qf}) or a note with their email (${DO}). Offer it; never book a call or submit an email for them.`}});function HO(e){let t="";for(let n=0;n<8;n++){let r=Math.floor(e()*qb.length);t+=qb[Math.min(Math.max(r,0),qb.length-1)]}return t}var qb,FO=y(()=>{"use strict";qb="0123456789abcdefghijklmnopqrstuvwxyz"});var BO=y(()=>{"use strict"});function Jb(e){return SB.test(e)}function GO(e){let t=new Set;for(let n of e!=null?e:[]){let r=n.trim().toLowerCase();r.length>0&&t.add(r)}return t}function VO(e,t){var s,a;let n=GO((s=e==null?void 0:e.keys)==null?void 0:s.filter(l=>typeof l=="string")),r=((a=e==null?void 0:e.keys)!=null?a:[]).filter(l=>l instanceof RegExp),o=GO(e==null?void 0:e.allow),i=[...o].filter(l=>Jb(l)&&!n.has(l));return i.length>0&&t!==void 0&&t(`[reticle] redact.allow is exempting ${i.join(", ")} from redaction. The default rule treats ${i.length===1?"that key":"those keys"} as a credential, so ${i.length===1?"its value":"their values"} will now reach the agent transcript and the on-disk journal in cleartext.`),{isSensitiveKey:l=>{let u=l.toLowerCase();if(n.has(u))return!0;for(let d of r)if(d.lastIndex=0,d.test(l))return!0;return o.has(u)?!1:Jb(l)}}}function jO(e){Qb=e}function bt(e){return Qb===void 0?Jb(e):Qb.isSensitiveKey(e)}function AB(e){return new TextEncoder().encode(e).byteLength}function yB(e){if(!/^data:/i.test(e))return;let t=e.indexOf(","),n=t===-1?e.slice(5):e.slice(5,t),[r="",...o]=n.split(";"),i=/^[\w.+-]+\/[\w.+-]+$/.test(r)?r:"text/plain",s=o.some(l=>l.toLowerCase()==="base64")?";base64":"",a=t===-1?"":e.slice(t+1);return`data:${i}${s},<\u2026${String(AB(a))} bytes\u2026>`}function ar(e,t=bt){var A;let n=yB(e);if(n!==void 0)return n;let r=e.indexOf("#"),o=r===-1?"":e.slice(r),i=r===-1?e:e.slice(0,r),s=i.indexOf("?"),a=s===-1?i:i.slice(0,s),l=s===-1?"":i.slice(s+1),u=!1,d=a,f=/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i.exec(a);f!==null&&(d=`${(A=f[1])!=null?A:""}${we}@${a.slice(f[0].length)}`,u=!0);let m=l;if(l!==""){let v=new URLSearchParams(l),N=!1;for(let O of[...v.keys()])t(O)&&(v.set(O,we),N=!0);N&&(m=v.toString(),u=!0)}let h=d.split("/");for(let v=0;v+1<h.length;v++){let N=h[v],O=h[v+1];N!==void 0&&O!==void 0&&O.length>=xB&&TB.test(N)&&(h[v+1]=we,u=!0)}let E=o;if(o.length>1&&(E=o.replace(/(^|[#&?/])([A-Za-z0-9_.-]+)=([^&\s]+)/g,(v,N,O)=>t(O)?`${N}${O}=${we}`:v),E!==o&&(u=!0)),!u)return e;let _=s===-1?"":`?${m}`;return`${h.join("/")}${_}${E}`}function to(e,t=bt){let n=ar(e,t);return n===e?{url:n}:{url:n,[fO]:e}}function KO(e){var r;let t=new Set,n=[];for(let o of(r=e==null?void 0:e.keys)!=null?r:[]){if(typeof o!="string")continue;let i=o.trim();if(i.length===0||i.length>t_)continue;let s=i.toLowerCase();if(!t.has(s)&&(t.add(s),n.push(i),n.length>=e_))break}return n}function no(e){return e.replace(wB,we)}var SB,Qb,TB,xB,e_,t_,wB,n_=y(()=>{"use strict";sn();Mu();SB=/password|passwd|passcode|pass[-_]?phrase|(?:otp|totp|mfa|recovery|backup)[-_]?codes?|(?:^|[-_])(?:otp|totp)(?=$|[-_])|secret|(?:(?:access|refresh|auth|bearer|api|id|session|csrf|client)[-_]?tokens?|(?:^|[-_])tokens?(?=$|[-_]))|session[-_]?id|(?:^|[-_])(?:sid|pwd|jwt)(?=$|[-_])|authorization|(?:^|[-_])(?:set[-_])?cookie(?=$|[-_])|api[-_]?key|access[-_]?key|private[-_]?key|client[-_]?secret|credit[-_]?card|card[-_]?(?:number|num|no|pan)(?=$|[-_])|(?:^|[-_])(?:card|pan)(?=$|[-_])|cvv|cvc|ssn|(?:^|[-_])(?:signature|sig)$|(?:^|[-_])credential$|x-(?:amz|goog)-(?:signature|credential|security-token)$/i;TB=/^(reset|verify|verification|confirm|activate|invite|magic|magiclink|token|key|oauth|unsubscribe|password)$/i,xB=12;e_=64,t_=128;wB=/eyJ[A-Za-z0-9_-]{4,}\.[A-Za-z0-9_-]{4,}\.[A-Za-z0-9_-]{4,}|(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}|sk-(?:ant|proj|svcacct|admin)-[A-Za-z0-9_-]{20,}|(?:AKIA|ASIA)[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,}|AIza[0-9A-Za-z_-]{35}|xox[baprs]-[A-Za-z0-9-]{10,}|ya29\.[A-Za-z0-9._-]{20,}/g});var ro,eh=y(()=>{"use strict";ro={WEB:"web",WEBVIEW:"webview",NATIVE:"native",SERVICE:"service"}});function r_(){return[$.UI,$.NET,$.STATE,$.SIGNAL,$.LOG,$.ROUTE,$.TIME]}var $Q,kQ,th=y(()=>{"use strict";dc();Ho();$Q={[z.ELEMENT]:[$.UI],[z.TEXT]:[$.UI],[z.SIGNAL]:[$.SIGNAL],[z.NET]:[$.NET],[z.STATE]:[$.STATE],[z.ROUTE]:[$.ROUTE],[z.CONSOLE]:[$.LOG],[z.ANIMATION]:[$.UI,$.TIME],[z.SETTLED]:[$.TIME,$.NET],[z.COMPARE]:[$.UI,$.NET,$.STATE,$.SIGNAL],[z.ALL_OF]:r_(),[z.ANY_OF]:r_(),[z.NOT]:r_()};kQ=Object.fromEntries(Object.entries(fb).map(([e,t])=>[e,t.independence]))});var ZO,nh,rh,oh=y(()=>{"use strict";ZO={DEVELOPMENT:"development",PRODUCTION:"production"},nh={OBSERVE:"observe",ACT:"act"},rh={INSTALLED:"installed",INJECTED:"injected"}});function o_(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");if(OB.includes(t))return!0;let n=t.split(".");return CB===n.length&&IB===n[0]&&n.every(r=>{if(!/^\d{1,3}$/.test(r))return!1;let o=Number(r);return o>=0&&o<=LB})}function $B(e){let t=e.toLowerCase();return t.endsWith(WO)&&t.length>WO.length&&!t.startsWith(".")}function JO(e,t){return o_(t)||$B(t)?!0:kB.includes(e.toLowerCase())}function MB(e){for(let t=e.lastIndexOf(".");1<=t;t=e.lastIndexOf(".",t-1)){let n=t+1,r="";for(;n<e.length&&PB.test(e.charAt(n));)r+=e.charAt(n).toLowerCase(),n+=1;if(!zB.has(r))continue;let o=e.charAt(n);if(o===""||o==="."||o==="-")return n}return 0}function Gu(e){return e.replace(DB,t=>{let n=MB(t);return n===0?t:` ${t.slice(n)}`})}function QO(e,t){return t!==void 0&&qO.has(t.trim().toLowerCase())?!1:NB.test(e.replace(XO," "))}function eI(e){return UB.test(e)}function tI(e){return nI(e)||RB.test(e.replace(XO," "))}function nI(e){let t;try{t=new URL(e).hostname.toLowerCase()}catch{return!1}return FB.some(n=>t===n||t.endsWith(`.${n}`))}function rI(e){var n;if(BB.test((n=e.autocomplete)!=null?n:""))return!0;let t=[e.name,e.id,e.label].map(r=>(r!=null?r:"").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ")).join(" ");return GB.test(t)}function oI(e,t){var r;if(t!==void 0&&qO.has(t.trim().toLowerCase()))return;if(e.split(/\s+/).some(nI))return _t.PAY;let n=e.replace(/[_-]+/g," ");return(r=HB.find(([o,i])=>o!==_t.PAY&&i.test(n)))==null?void 0:r[0]}var YO,vB,NB,RB,XO,qO,OB,WO,IB,CB,LB,kB,zB,DB,PB,UB,_t,HB,FB,BB,GB,i_,s_=y(()=>{"use strict";YO="delete|remove|destroy|erase|drop|terminate|revoke|reset|close account|cancel subscription",vB="purchase|buy|pay|payment|place order|confirm order|send money|send funds|transfer|withdraw|refund",NB=new RegExp(`\\b(${YO}|${vB})\\b`,"i"),RB=new RegExp(`\\b(${YO})\\b`,"i"),XO=/[_-]+/g,qO=new Set(["option","radio"]),OB=["localhost","::1","0:0:0:0:0:0:0:1"],WO=".localhost",IB="127",CB=4,LB=255;kB=["file:","app:","tauri:"];zB=new Set(["webm","mp4","mov","mkv","avi","mp3","wav","ogg","flac","png","jpg","jpeg","gif","webp","svg","avif","bmp","pdf","zip","tar","gz","txt","csv","json","xml","doc","docx","xls","xlsx","ppt","pptx"]),DB=/[\w.-]+/g,PB=/[a-zA-Z0-9]/;UB=/^\s*(#.*|javascript:.*)?$/i;_t={INVITE:"invite",SEND:"send",SHARE:"share",DELETE:"delete",PAY:"pay",PUBLISH:"publish",REVOKE:"revoke",TRANSFER:"transfer",SIGN_OUT:"sign out",CHANGE_ROLE:"change role",CREATE_KEY:"create key",CHANGE_STATE:"change state"},HB=[[_t.INVITE,/\binvit(?:e|es|ed|ing|ation|ations)\b|\/invit/i],[_t.TRANSFER,/\b(?:transfer|send money|send funds|withdraw)\b/i],[_t.SEND,/\b(?:send|sends|sending|resend|email (?:it|them|the))\b/i],[_t.SHARE,/\b(?:share|shares|sharing)\b/i],[_t.DELETE,/\b(?:delete|deletes|deleting|remove|removes|removing|destroy|erase|drop)\b/i],[_t.PAY,/\b(?:pay|pays|paying|payment|purchase|buy|checkout|check out|subscribe|upgrade|place order|confirm order|refund|add (?:a )?card|start (?:the |your |a )?(?:\d+-day |free )?trial)\b|\/(?:billing|checkout)\b/i],[_t.PUBLISH,/\b(?:publish|publishes|deploy|deploys|go live)\b/i],[_t.REVOKE,/\b(?:revoke|revokes|deactivate|suspend)\b/i],[_t.SIGN_OUT,/\b(?:sign ?out|log ?out|sign off)\b/i],[_t.CHANGE_ROLE,/\b(?:change (?:the |their |his |her )?role|make (?:an? )?(?:admin|owner)|promote|demote|set role)\b/i],[_t.CREATE_KEY,/\b(?:create|generate|new|mint)(?: an?)?(?: api)? key\b|\/keys\b/i],[_t.CHANGE_STATE,/\b(?:reassign|reassigns|reopen|reopens|re-open|archive|archives|unarchive|approve|approves|reject|rejects|mark as (?:fixed|resolved|done|closed))\b/i]],FB=["stripe.com","checkout.dodopayments.com","paddle.com","lemonsqueezy.com","paypal.com","razorpay.com","braintreegateway.com"];BB=/\bcc-(?:number|csc|exp(?:-month|-year)?)\b/i,GB=/card ?(?:number|no\b)|\bcc ?num|\b(?:cvc|cvv|csc|cvc2|cvv2)\b|security code|card ?code|\bexpir(?:y|ation|es)\b|\bexp ?date\b|\bmm ?\/ ?yy\b|\biban\b|account ?number|routing ?number|sort ?code/i;i_=e=>`would need to ${e} \u2014 not done (outward action): the journey does not ask for it`});var ih,iI,VB,sI,aI,cI,jB,KB,Vu,c_,ZB,WB,ZQ,l_=y(()=>{"use strict";ae();Fu();sn();Wb();n_();eh();th();oh();s_();ih=p().min(1).max(Z.MAX_SESSION_ID_LENGTH),iI=p().max(Z.MAX_REF_LENGTH),VB=p().min(1).max(8),sI=b({kind:R(ln),text:p().optional()}),aI=b({control:p().max(48).regex(/^[a-z][a-zA-Z-]*(\.[a-zA-Z-]+)?$/).optional(),toggle:R(Hu).optional(),view:R(Fn).optional(),panel:R(Pt).optional(),slide:p().max(56).optional(),prompt:R(Ci).optional()}),cI=b({note:p().min(1).max(Z.MAX_MARK_NOTE_LENGTH),anchor:p().max(Z.MAX_REF_LENGTH),strategy:R(Us),label:p().max(Z.MAX_MARK_LABEL_LENGTH).optional(),source:b({file:p().max(Z.MAX_URL_LENGTH),line:S().int().min(0)}).optional(),route:p().max(Z.MAX_URL_LENGTH).optional()}),jB=b({t:S(),type:R(w),sessionId:ih,ref:iI.optional(),seq:S().int().min(0).optional(),actionId:iI.optional(),attribution:R(TR).optional(),documentId:VB.optional(),editEpoch:S().int().min(0).optional(),data:ie(p(),q()).default({})}),KB=b({kind:U(on.HELLO),protocolVersion:S().int().min(mR).max(Pf),sessionId:ih,url:p().max(Z.MAX_URL_LENGTH),title:p().max(Z.MAX_TITLE_LENGTH),projectId:ih.optional(),adapters:C(p().max(Z.MAX_ADAPTER_NAME_LENGTH)).max(Z.MAX_ADAPTERS),token:p().max(Z.MAX_TOKEN_LENGTH).optional(),env:R(ZO).optional(),scope:R(nh).optional(),platform:R(ro).optional(),channels:C(R($)).max(Z.MAX_ADAPTERS).optional(),commands:C(p().max(Z.MAX_TOKEN_LENGTH)).max(Z.MAX_ADAPTERS).optional(),contractParts:b({commands:C(p()).max(Z.MAX_CONTRACT_NAMES),events:C(p()).max(Z.MAX_CONTRACT_NAMES),actions:C(p()).max(Z.MAX_CONTRACT_NAMES)}).optional(),hasCapabilities:L().optional(),captureBodies:L().optional(),sourceMapping:L().optional(),instrumentation:R(rh).optional(),sdkVersion:p().max(Z.MAX_ADAPTER_NAME_LENGTH).optional(),contract:p().max(Z.MAX_ADAPTER_NAME_LENGTH).optional(),redactKeys:C(p().min(1).max(t_)).max(e_).optional()}),Vu={HARNESS:"harness"},c_=b({kind:U(on.COMMAND),id:p().min(1).max(Z.MAX_COMMAND_ID_LENGTH),sessionId:ih.optional(),name:p().min(1).max(Z.MAX_COMMAND_NAME_LENGTH),args:ie(p(),q()).default({}),by:R(Vu).optional(),outward:b({allowed:C(R(_t)).max(16)}).optional()}),ZB=b({kind:U(on.COMMAND_RESULT),id:p().min(1).max(Z.MAX_COMMAND_ID_LENGTH),ok:L(),result:q().optional(),error:p().max(Z.MAX_ERROR_LENGTH).optional()}),WB=b({kind:U(on.EVENT),event:jB}),ZQ=vt("kind",[KB,c_,ZB,WB])});var yn,YB,XB,qB,JB,QB,XQ,qQ,JQ,lI=y(()=>{"use strict";ae();oh();yn={PAYMENT:"payment or checkout",DELETE_WORKSPACE:"delete a workspace or project",REVOKE_KEY:"revoke or rotate a key",SEND_INVITE:"send an invite or email",CANCEL_SUBSCRIPTION:"cancel a subscription",CHANGE_ROLE:"change a member's role",OBSERVE_ONLY:"the session scope is observe, so it does not act",OFF_ORIGIN:"leave the activated origin",EXPIRED:"the session nonce expired"},YB=[yn.PAYMENT,yn.DELETE_WORKSPACE,yn.REVOKE_KEY,yn.SEND_INVITE,yn.CANCEL_SUBSCRIPTION,yn.CHANGE_ROLE],XB=64,qB=256,JB=b({rule:pe(YB),methods:C(p().min(1).max(16)).min(1).max(8),path:p().min(1).max(qB).refine(e=>{try{return new RegExp(e,"i"),!0}catch{return!1}},"not a valid regular expression")}),QB=C(JB).max(XB),XQ=[{rule:yn.CANCEL_SUBSCRIPTION,methods:["DELETE"],path:"/subscriptions?(/[^/]+)?/?$"},{rule:yn.CANCEL_SUBSCRIPTION,methods:["POST","PUT","PATCH"],path:"/subscriptions?(/[^/]+)?/cancel"},{rule:yn.PAYMENT,methods:["POST","PUT","PATCH"],path:"/(billing|checkout|payments?|subscriptions?|purchases?|orders?)(/|$)"},{rule:yn.DELETE_WORKSPACE,methods:["DELETE"],path:"/(workspaces?|orgs?|organi[sz]ations?|projects?)/[^/]+/?$"},{rule:yn.REVOKE_KEY,methods:["DELETE"],path:"/(api-?)?keys?/[^/]+/?$"},{rule:yn.REVOKE_KEY,methods:["POST","PUT","PATCH"],path:"/(api-?keys?|keys?|tokens?|secrets?)(/[^/]+)?/(rotate|revoke|regenerate|roll)"},{rule:yn.SEND_INVITE,methods:["POST","PUT"],path:"/(invites?|invitations?|emails?|mail)(/|$)"},{rule:yn.CHANGE_ROLE,methods:["PATCH","PUT","POST"],path:"/members?/[^/]+(/role)?/?$"}],qQ=b({workspaceId:p().min(1).max(128),nonce:p().min(1).max(256),bridgePort:S().int().min(1).max(65535),scope:R(nh),origin:p().url().max(2048).optional(),bridge:p().url().max(2048).optional()}),JQ=b({ticket:p().min(1).max(4096),expiresAt:p().max(64).optional(),policy:QB.optional()})});var uI=y(()=>{"use strict"});function lG(e){return e.length<=pI&&cG.test(e)}var eG,dI,tee,Li,tG,Xe,nG,rG,oG,iG,sG,aG,u_,pI,cG,fI,uG,hI,mc=y(()=>{"use strict";ae();eG={AGENT:"agent",HUMAN:"human"},dI={BUG:"bug",GAP:"gap",AMBIGUITY:"ambiguity",FEATURE_REQUEST:"feature_request",IMPROVEMENT:"improvement",EXPERIENCE:"experience"},tee=`<${Object.values(dI).join("|")}>`,Li={WEB:"web",ELECTRON:"electron",TAURI:"tauri"},tG={BLINK:"blink",GECKO:"gecko",WEBKIT:"webkit"},Xe={CHROME:"chrome",EDGE:"edge",ARC:"arc",DIA:"dia",BRAVE:"brave",OPERA:"opera",FIREFOX:"firefox",SAFARI:"safari",OTHER:"other"},nG={CDP:"cdp",SDK:"sdk"},rG={USER:"user",PROJECT:"project"},oG=4e3,iG=8e3,sG=1,aG=5,u_=1e3,pI=254,cG=/^[^\s@,;<>]+@[^\s@,;<>]+\.[^\s@,;<>]+$/;fI=b({source:R(eG),kind:R(dI),text:p().min(1).max(oG),trace:p().max(iG).optional(),rating:S().int().min(sG).max(aG).optional(),need:p().max(u_).optional(),impact:p().max(u_).optional(),currentApproach:p().max(u_).optional(),model:p().min(1).max(64).optional(),clientVersion:p().min(1).max(32).optional(),stack:p().min(1).max(64).optional(),stackMajor:S().int().nonnegative().optional(),runtime:R(Li).optional(),engine:R(tG).optional(),driver:R(nG).optional(),client:p().min(1).max(64).optional(),mcpScope:R(rG).optional(),contact:p().max(pI).refine(lG).optional()}),uG={COMPANY:"company",SIDE_PROJECT:"side_project",OPEN_SOURCE:"open_source",LEARNING:"learning"},hI=b({context:R(uG),company:p().min(1).max(128).optional(),email:p().min(3).max(254).optional()})});var oo,io,ah,Ku,d_,Zu,Mt,Bs,dG,pG,lee,sh,fG,hG,mG,ju,uee,mI=y(()=>{"use strict";ae();sn();jb();Fo();mc();l_();Mu();oo={SSE:"sse",WS:"ws",FETCH:"fetch"},io={OPEN:"open",IN:"in",OUT:"out",CLOSE:"close"},ah={UP:"up",DOWN:"down"},Ku={PUSH:"push",REPLACE:"replace",POP:"pop"},d_="how",Zu={INPUT:"input",CHANGE:"change",SETTLED:"settled"},Mt={FIELD:"field",KIND:"kind",LENGTH:"length",VALUE:"value",REDACTED:"redacted",CHECKED:"checked",PREVIOUS:"previous",PREVIOUS_CHECKED:"previousChecked"},Bs={LOCAL:"local",SESSION:"session",COOKIE:"cookies"},dG=b({name:p().describe("Cookie name."),value:p().describe("Cookie value."),domain:p().optional().describe("Cookie domain. Defaults to the navigation URL domain."),path:p().optional().describe('Cookie path. Defaults to "/".'),url:p().optional().describe("Cookie URL. Defaults to the navigation URL."),httpOnly:L().optional().describe("Whether the cookie is httpOnly."),secure:L().optional().describe("Whether the cookie is secure."),sameSite:pe(["Strict","Lax","None"]).optional().describe("SameSite policy."),expires:S().optional().describe("Unix timestamp in seconds for cookie expiration.")}),pG=wt([ie(p(),p()),C(dG)]),lee=b({local:ie(p(),p()).optional().describe("Key-value pairs to seed into window.localStorage before first navigation."),session:ie(p(),p()).optional().describe("Key-value pairs to seed into window.sessionStorage before first navigation."),cookies:pG.optional().describe("Cookies to seed before first navigation: a name-value record scoped to the lease URL or an array of cookie objects.")}).strict(),sh=b({role:p().optional(),name:p().optional()}),fG=b({mimeType:p(),bytes:S(),filename:p().optional(),lines:S().optional(),preview:p().optional(),previewTruncated:L().optional()}).passthrough(),hG=b({transport:R(oo),direction:R(io),url:p(),urlRaw:p().optional()}).passthrough(),mG=b({id:p(),method:p(),url:p(),status:S(),ok:L(),durationMs:S(),initiator:p(),urlRaw:p().optional(),[Yf]:p().optional(),[Pu]:p().optional()}).passthrough(),ju=b({message:p()}).passthrough(),uee={[w.DOM_ADDED]:sh,[w.DOM_REMOVED]:sh,[w.DOM_ATTR]:b({attr:p(),value:p().optional(),old:p().optional()}).passthrough(),[w.DOM_TEXT]:b({text:p(),old:p().optional(),testid:p().optional(),initial:L().optional()}),[w.NET_REQUEST]:mG,[w.NET_PENDING]:b({id:p(),method:p(),url:p(),initiator:p(),urlRaw:p().optional()}),[w.NET_STREAM]:hG,[w.DOWNLOAD]:fG,[w.PERF]:b({metric:R(ac),value:S(),at:S(),shifted:b({ref:p(),selector:p()}).optional()}),[w.ROUTE_CHANGE]:b({from:p(),to:p(),pathname:p(),search:p(),hash:p(),[d_]:R(Ku),pattern:p().optional()}),[w.CONSOLE_LOG]:ju,[w.CONSOLE_WARN]:ju,[w.CONSOLE_ERROR]:ju,[w.CONSOLE_INFO]:ju,[w.CONSOLE_DEBUG]:ju,[w.ERROR_UNCAUGHT]:b({message:p(),source:p().optional(),line:S().optional(),kind:p().optional()}).passthrough(),[w.VISIBLE_SHOWN]:sh,[w.ANIM_START]:b({name:p()}),[w.ANIM_END]:b({name:p()}),[w.SCROLL_POSITION]:b({x:S(),y:S(),percent:S(),direction:R(ah)}),[w.REVEAL_SHOWN]:sh.passthrough(),[w.SIGNAL]:b({name:p(),data:q().optional()}),[w.STATE_CHANGE]:b({name:p(),value:q().optional()}).passthrough(),[w.STORAGE_CHANGE]:b({area:R(Bs),key:p(),old:p().optional(),new:p().optional()}),[w.PAGE_HEALTH]:b({hidden:L(),focused:L(),reason:p().optional(),brand:R(Xe).optional(),runtime:p().optional(),engine:p().optional(),windowLabel:p().optional(),documentStatus:S().int().optional()}).passthrough(),[w.CONTEXT_OPENED]:b({href:p().optional()}).passthrough(),[w.DIALOG_OPENED]:b({kind:pe(["alert","confirm","prompt"]),message:p().optional(),answered:wt([L(),XN()]).optional()}).passthrough(),[w.RENDER_COMMIT]:b({commits:S()}),[w.FOCUS_CHANGE]:b({to:p().optional(),from:p().optional(),toBody:L()}),[w.FIELD_CHANGE]:b({[Mt.FIELD]:p(),[Mt.KIND]:R(Zu),[Mt.LENGTH]:S().int().nonnegative(),[Mt.VALUE]:p().optional(),[Mt.REDACTED]:U(!0).optional(),[Mt.CHECKED]:L().optional(),[Mt.PREVIOUS]:p().optional(),[Mt.PREVIOUS_CHECKED]:L().optional()}),[w.FLOW_RECORDED]:b({name:p(),flow:q().optional()}),[w.TRANSPORT_OVERFLOW]:b({dropped:S()}),[w.TRUNCATED]:b({channel:p(),dropped:S()}),[w.BLIND_SPOT]:b({kind:R(cn),count:S()}),[w.SDK_FAILED]:b({site:p().max(64),message:p().max(500),errorType:p().max(64).optional()}),[w.NET_DETAIL]:b({url:p(),method:p().optional(),status:S(),headers:ie(p(),p()),resourceType:p().optional()}).passthrough(),[w.NET_RESPONSE_BODY]:b({id:p(),method:p(),url:p(),urlRaw:p().optional(),responseBody:p(),responseBodyTruncated:L().optional(),responseBodyReason:R(sr).optional()}).passthrough(),[w.HUMAN_CONTROL]:sI,[w.HUMAN_MARK]:cI,[w.HUD_USED]:aI,[w.MEDIA_STATE]:b({event:R(Ou),tag:pe(["video","audio"]),currentTime:S(),duration:S().optional(),readyState:S().int().min(0).max(4),paused:L()}),[w.CANVAS_DIGEST]:b({digest:p(),width:S().int().nonnegative(),height:S().int().nonnegative(),mean:$f([S(),S(),S()]),trigger:R(Ls).optional()})}});var fee,gI=y(()=>{"use strict";sn();fee=new Set([w.NET_REQUEST,w.NET_PENDING,w.NET_STREAM,w.NET_DETAIL,w.NET_RESPONSE_BODY,w.CONSOLE_ERROR,w.CONSOLE_WARN,w.ERROR_UNCAUGHT,w.ROUTE_CHANGE,w.SIGNAL,w.STORAGE_CHANGE,w.FLOW_RECORDED,w.TRANSPORT_OVERFLOW,w.TRUNCATED,w.BLIND_SPOT])});var EI=y(()=>{"use strict"});var bI,_I=y(()=>{"use strict";bI=e=>e});var Ae,_ee,See,Tee,SI=y(()=>{"use strict";th();Ae={UI_ADVANCED_REQUEST_FAILED:"ui-advanced-request-failed",UI_ADVANCED_UNSIGNALLED:"ui-advanced-unsignalled",SIGNAL_CONTRADICTED:"signal-contradicted",RESPONSE_IGNORED:"response-ignored",SIGNAL_WITHOUT_CONSEQUENCE:"signal-without-consequence",STATE_VS_RENDER:"state-vs-render",CONSEQUENCE_ELSEWHERE:"consequence-elsewhere",DUPLICATE_REQUEST:"duplicate-request",DUPLICATE_REQUEST_UNRELATED:"duplicate-request-unrelated",SCREEN_REQUEST_MISMATCH:"screen-request-mismatch",STALE_RESPONSE_APPLIED:"stale-response-applied",PARTIAL_FAILURE_IN_OK_RESPONSE:"partial-failure-in-ok-response",UNIT_MISMATCH:"unit-mismatch",PAGINATION_NOT_FETCHED:"pagination-not-fetched",WRITE_FIELD_IGNORED:"write-field-ignored",REQUEST_NEVER_SETTLED:"request-never-settled",FAILURE_MISATTRIBUTED:"failure-misattributed",ACTION_HAD_NO_EFFECT:"action-had-no-effect",ROUTE_RENDERED_NOTHING:"route-rendered-nothing",ROUTE_RENDERED_NOTHING_CRASHED:"route-rendered-nothing-crashed",EVIDENCE_SUPERSEDED:"evidence-superseded",EVIDENCE_PREDATES_EDIT:"evidence-predates-edit"},_ee=new Set([Ae.REQUEST_NEVER_SETTLED,Ae.UI_ADVANCED_UNSIGNALLED,Ae.RESPONSE_IGNORED,Ae.SIGNAL_WITHOUT_CONSEQUENCE,Ae.STATE_VS_RENDER,Ae.CONSEQUENCE_ELSEWHERE,Ae.ROUTE_RENDERED_NOTHING,Ae.ACTION_HAD_NO_EFFECT,Ae.DUPLICATE_REQUEST,Ae.EVIDENCE_SUPERSEDED,Ae.EVIDENCE_PREDATES_EDIT]),See=new Set([Ae.DUPLICATE_REQUEST_UNRELATED,Ae.SCREEN_REQUEST_MISMATCH]),Tee={[Ae.UI_ADVANCED_REQUEST_FAILED]:[$.UI,$.NET],[Ae.UI_ADVANCED_UNSIGNALLED]:[$.UI,$.NET],[Ae.SIGNAL_CONTRADICTED]:[$.SIGNAL,$.NET],[Ae.RESPONSE_IGNORED]:[$.NET,$.UI],[Ae.SIGNAL_WITHOUT_CONSEQUENCE]:[$.SIGNAL,$.NET],[Ae.STATE_VS_RENDER]:[$.STATE,$.UI],[Ae.CONSEQUENCE_ELSEWHERE]:[$.NET,$.UI],[Ae.DUPLICATE_REQUEST]:[$.NET,$.NET],[Ae.DUPLICATE_REQUEST_UNRELATED]:[$.NET,$.NET],[Ae.SCREEN_REQUEST_MISMATCH]:[$.UI,$.NET],[Ae.STALE_RESPONSE_APPLIED]:[$.NET,$.UI],[Ae.PARTIAL_FAILURE_IN_OK_RESPONSE]:[$.NET,$.NET],[Ae.UNIT_MISMATCH]:[$.UI,$.NET],[Ae.PAGINATION_NOT_FETCHED]:[$.UI,$.NET],[Ae.WRITE_FIELD_IGNORED]:[$.NET,$.NET],[Ae.REQUEST_NEVER_SETTLED]:[$.TIME,$.NET],[Ae.FAILURE_MISATTRIBUTED]:[$.UI,$.NET],[Ae.ACTION_HAD_NO_EFFECT]:[$.NET,$.UI],[Ae.ROUTE_RENDERED_NOTHING]:[$.ROUTE,$.NET],[Ae.ROUTE_RENDERED_NOTHING_CRASHED]:[$.ROUTE,$.LOG],[Ae.EVIDENCE_SUPERSEDED]:[$.TIME,$.UI],[Ae.EVIDENCE_PREDATES_EDIT]:[$.TIME,$.UI]}});var Bo,ch,yee,wee,TI=y(()=>{"use strict";sn();Bo="__reticleIpc",ch="reticle_capture",yee=sc.FULL_PAGE_UNSUPPORTED,wee=sc.NOT_COMPOSITED});var xI=y(()=>{"use strict"});var AI=y(()=>{"use strict"});var yI=y(()=>{"use strict"});function wI(e){return e===gc.CALM||e===gc.WAITING||e===gc.ASK||e===gc.WARN}var gc,vI,Iee,Cee,NI=y(()=>{"use strict";gc={CALM:"calm",WAITING:"waiting",ASK:"ask",WARN:"warn"};vI="note that a lease is a SEPARATE context: the human watching this tab sees nothing of what you do there, so prefer this tab while someone is following along",Iee='tab hidden and may be un-focusable from here; timers and rAF are clamped in a background tab, so an action can land on a page that never advances. Refocus it, or acquire a guaranteed scriptable context yourself with `reticle_run { tool: "reticle_lease", args: { action: "acquire", url } }` (a human can equivalently run `reticle drive <url>`) \u2014 '+vI,Cee="tab is not hidden but has not reported health recently \u2014 usually a quiet page rather than a stuck one, and very often still driveable. This is also the tab a human can see, so try it first. Timing-sensitive work (animations, debounces, gestures) is what degrades: pass `refuseWhenThrottled: true` to refuse rather than act over events that may not land. Lease a separate context only if a drive here actually fails; "+vI});var RI,gG,Dee,Pee,Mee,OI=y(()=>{"use strict";ae();sn();Fo();Ho();RI=1,gG=b({harness:p().min(1).max(Z.MAX_REF_LENGTH),driver:p().min(1).max(Z.MAX_COMMAND_NAME_LENGTH),persona:p().max(1e3).optional()}),Dee=b({v:U(RI),actionId:p().min(1).max(Z.MAX_REF_LENGTH),tool:p().min(1).max(Z.MAX_COMMAND_NAME_LENGTH),args:ie(p(),q()).default({}),effect:q().optional(),settled:L().optional(),settledInMs:S().int().min(0).optional(),seqRange:b({from:S().int().min(0),to:S().int().min(0)}).optional(),tRange:b({from:S().int().min(0),to:S().int().min(0)}),at:S().int().min(0),drivenBy:gG.optional(),agent:p().min(1).max(Z.MAX_REF_LENGTH).optional()}),Pee=b({v:U(RI),channel:U(Ff.JOURNAL),capBytes:S().int().min(1).optional(),bytesOnDisk:S().int().min(0).optional(),droppedInBatch:S().int().min(0).optional(),at:S().optional()}),Mee=b({claim:p().min(1).max(Z.MAX_STRING_LENGTH),verified:R(Hn),source:p().max(Z.MAX_URL_LENGTH).optional(),observed:p().max(Z.MAX_STRING_LENGTH).optional(),expected:p().max(Z.MAX_STRING_LENGTH).optional(),kind:R(z).optional(),declaredBeforeActing:L().optional(),net:C(b({method:p().max(Z.MAX_COMMAND_NAME_LENGTH),url:p().max(Z.MAX_URL_LENGTH),status:S().optional(),body:p().max(Z.MAX_STRING_LENGTH).optional()})).max(5).optional(),grade:p().max(Z.MAX_STRING_LENGTH).optional(),couldNotSee:C(p().max(Z.MAX_STRING_LENGTH)).optional(),reason:p().max(Z.MAX_STRING_LENGTH).optional(),intent:p().max(Z.MAX_STRING_LENGTH).optional(),intentDerived:L().optional(),failedPart:S().int().min(0).optional()})});var II=y(()=>{"use strict"});var Fee,CI=y(()=>{"use strict";ae();Fee=b({port:S(),pid:S(),cwd:p(),projectId:p().optional(),startedAt:S()})});var Gee,LI=y(()=>{"use strict";ae();Gee=b({port:S(),pid:S(),root:p(),url:p(),sdkVersion:p().min(1).optional(),startedAt:S(),projectId:p().optional()})});var EG,jee,$I=y(()=>{"use strict";ae();EG=b({directory:p().min(1),lastSeenAt:S()}),jee=b({version:U(1),projects:ie(p(),EG)})});var bG,p_,_G,SG,TG,Zee,kI=y(()=>{"use strict";ae();bG=1,p_={DECLARED:"declared",BOUND:"bound",PROVED:"proved"},_G=b({route:p().optional(),flow:p().optional(),files:C(p()).optional()}),SG=b({verdictId:p(),grade:p(),at:S(),runId:p().optional()}),TG=b({id:p().min(1),statement:p().min(1),state:pe([p_.DECLARED,p_.BOUND,p_.PROVED]),declaredAt:S(),binding:q().optional(),surface:_G.optional(),provenBy:SG.optional(),amended:C(b({statement:p(),at:S()})).optional()}),Zee=b({version:U(bG),intents:ie(p(),TG)})});var zI=y(()=>{"use strict"});function Wu(e){return xG[e]}var ht,xG,AG,Xee,f_=y(()=>{"use strict";ae();ht={NO_SOURCE_MAPPING:"no-source-mapping",NO_STORE_REGISTERED:"no-store-registered",NO_SIGNAL_ON_MUTATION:"no-signal-on-mutation",UNDECLARED_CONTROL:"undeclared-control",MISSING_TESTID:"missing-testid",UNDECLARED_CHANGE:"undeclared-change",INTENT_UNDISCHARGED:"intent-undischarged",NO_FLOW_INTENT:"no-flow-intent",SOURCE_MAPPING_OFF:"source-mapping-off"},xG={[ht.NO_SOURCE_MAPPING]:"add the Reticle build plugin (@reticlehq/vite-plugin, @reticlehq/next, or the babel plugin) so elements carry data-reticle-source",[ht.NO_STORE_REGISTERED]:"import { registerStore } from '@reticlehq/browser' and call registerStore(name, store) with a subscribable store so its changes are observed; a bare getter is readable but does not report changes. For component-local React state, import { useReticleStore } from '@reticlehq/react/store' and call useReticleStore(name, value), assert the DOM, or read it with reticle_look { action: 'state', ref: '...' }",[ht.NO_SIGNAL_ON_MUTATION]:"fire reticle.signal(name, data) where this state is committed \u2014 commitAndSignal binds the two so they cannot drift",[ht.UNDECLARED_CONTROL]:"add this control to reticle.describe() so the capability contract matches what the app actually exposes",[ht.MISSING_TESTID]:'add data-testid="..." on this control so the flow can name it after a refactor',[ht.UNDECLARED_CHANGE]:'declare it with reticle_intent { action: "declare", intents: [{ id, statement }] } \u2014 the statement is prose, in your own words: which user does what, and what should become true',[ht.INTENT_UNDISCHARGED]:'draw a verdict whose `until` asserts the intent itself, then it discharges \u2014 or call reticle_run({ tool: "reticle_context" }) to see exactly what is still owed',[ht.SOURCE_MAPPING_OFF]:"nothing to install \u2014 this build has sourceMapping turned off, so no element carries data-reticle-source. Re-enable it in the Reticle plugin options unless this app renders through a non-DOM reconciler (react-three-fiber, react-pdf, ink), where the stamp is what would break it",[ht.NO_FLOW_INTENT]:'save it again with intent: "<which user does what, and what should become true>" \u2014 prose, in your own words \u2014 or set intentId to an intent already in the ledger'};AG={PIXELS_UNOBSERVED:"pixels-unobserved",CLAIM_ARITHMETIC_UNCHECKED:"claim-arithmetic-unchecked"},Xee=b({kind:R(AG),detail:p().min(1)})});var Go,DI,tte,nte,PI=y(()=>{"use strict";ae();dc();f_();Xb();Go={PAGE_CONNECTED:"page connected",DOM_ACTIONS:"DOM actions",NETWORK:"network",CONSOLE:"console",APP_STATE:"app state (store registered)",SIGNALS:"signals on mutation",SOURCE_MAPPING:Jf,TEST_IDS:"stable test ids"},DI="run `npx @reticlehq/server init` in the app so its pages connect to Reticle in development",tte=[{capability:Go.PAGE_CONNECTED,gaps:[],cost:"no page has connected, so nothing can be verified",fix:DI},{capability:Go.DOM_ACTIONS,channel:$.UI,always:!0,gaps:[],cost:"controls cannot be driven or read",fix:DI},{capability:Go.NETWORK,channel:$.NET,always:!0,gaps:[],cost:"requests cannot be asserted, so a save that never reached the server can pass",fix:"update @reticlehq/browser so the page reports its network channel"},{capability:Go.CONSOLE,channel:$.LOG,always:!0,gaps:[],cost:"errors thrown in the page are invisible to a verdict",fix:"update @reticlehq/browser so the page reports its console channel"},{capability:Go.APP_STATE,channel:$.STATE,gaps:[ht.NO_STORE_REGISTERED],cost:"state predicates fall back to reading the DOM",fix:Wu(ht.NO_STORE_REGISTERED)},{capability:Go.SIGNALS,channel:$.SIGNAL,gaps:[ht.NO_SIGNAL_ON_MUTATION],cost:"the app never says it succeeded, so every verdict infers success from the DOM",fix:Wu(ht.NO_SIGNAL_ON_MUTATION)},{capability:Go.SOURCE_MAPPING,channel:Fs.SOURCE,gaps:[ht.NO_SOURCE_MAPPING,ht.SOURCE_MAPPING_OFF],perControl:[ht.NO_SOURCE_MAPPING],cost:"a broken control is named, never the line that renders it",fix:Wu(ht.NO_SOURCE_MAPPING)},{capability:Go.TEST_IDS,channel:Fs.TESTID,gaps:[ht.MISSING_TESTID],cost:"a saved flow loses its controls after a refactor",fix:Wu(ht.MISSING_TESTID)}],nte=C(R(Go)).max(8)});var MI=y(()=>{"use strict"});function yG(e){return Array.isArray(e)||typeof e=="string"}function wG(e){if(Array.isArray(e))return{keys:[...e.slice(0,49).map((n,r)=>String(r)),h_],total:e.length+1};if(typeof e=="string")return{keys:[h_],total:1};if(e instanceof Map){let t=[],n=0;for(let r of e.keys())n+=1,typeof r=="string"&&t.length<49&&t.push(r);return e.has(Yu)?{keys:t,total:n}:{keys:[...t,Yu],total:n+1}}if(e instanceof Set){let t=[];for(let n of e)typeof n=="string"&&t.length<49&&t.push(n);return{keys:[...t,Yu],total:e.size+1}}if(typeof e=="object"&&e!==null){let t=Object.keys(e);return{keys:t.slice(0,50),total:t.length}}return{keys:[],total:0}}function lh(e){let{keys:t,total:n}=wG(e);return{found:!1,value:null,availableKeys:t,...n>t.length?{totalKeys:n}:{}}}function UI(e,t){let n=t.split(".").filter(o=>o.length>0),r=e;for(let o of n){if(h_===o&&yG(r)){r=r.length;continue}if(Array.isArray(r)){let i=Number(o);if(!Number.isInteger(i)||i<0||String(i)!==o||i>=r.length)return lh(r);r=r[i];continue}if(r instanceof Map){if(r.has(o)){r=r.get(o);continue}if(Yu===o){r=r.size;continue}return lh(r)}if(r instanceof Set){if(Yu===o){r=r.size;continue}if(r.has(o)){r=!0;continue}return lh(r)}if(typeof r=="object"&&r!==null&&Object.hasOwn(r,o)){r=r[o];continue}return lh(r)}return{found:!0,value:r}}function Ec(e,t){if(t<0)return e;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(e instanceof Set)return t===0?`[Set(${String(e.size)})]`:[...e].map(n=>Ec(n,t-1));if(e instanceof Map){if(t===0)return`{Map(${String(e.size)})}`;let n=Object.create(null);for(let[r,o]of e)n[String(r)]=Ec(o,t-1);return n}if(Array.isArray(e))return t===0?`[Array(${String(e.length)})]`:e.map(n=>Ec(n,t-1));if(typeof e=="object"&&e!==null){let n=Object.keys(e);if(t===0)return`{\u2026${String(n.length)} keys}`;let r=Object.create(null);for(let o of n)r[o]=Ec(e[o],t-1);return r}return e}var h_,Yu,HI=y(()=>{"use strict";h_="length";Yu="size"});var ate,cte,FI=y(()=>{"use strict";sn();ate={[_e.ENABLED]:"en",[_e.DISABLED]:"dis",[_e.CHECKED]:"chk",[_e.EXPANDED]:"exp",[_e.PRESSED]:"prs",[_e.FOCUSED]:"focus"},cte=new Set([_e.PRESENT,_e.VISIBLE,_e.HIDDEN])});var Gs,ute,dte,BI=y(()=>{"use strict";ae();Gs={SHARE_PROOF:"share_proof",RUN_HISTORY:"run_history",TEAM_REVIEW:"team_review",CORPUS_HEAL:"corpus_heal",CI_GATE:"ci_gate",HOSTED_RUNNER:"hosted_runner"},ute=b({capability:R(Gs),reason:p(),unlockedBy:p(),learnMoreUrl:p().url()}),dte={[Gs.SHARE_PROOF]:{reason:"Sharing a verification result with a teammate needs a hosted, linkable proof page.",unlockedBy:"Link a free Reticle Cloud account (reticle connect), then share the run."},[Gs.RUN_HISTORY]:{reason:"Run history beyond this session lives in the hosted dashboard; local keeps only a buffer.",unlockedBy:"Link a free Reticle Cloud account to keep run history and trends."},[Gs.TEAM_REVIEW]:{reason:"A shared review queue of pinned mistakes is a team feature \u2014 it needs a hosted store.",unlockedBy:"Add your team to Reticle Cloud to share a review queue."},[Gs.CORPUS_HEAL]:{reason:"Corpus-ranked heal uses refactor outcomes learned across the fleet, served from the cloud.",unlockedBy:"Enable the hosted heal service on Reticle Cloud."},[Gs.CI_GATE]:{reason:"Verify-before-merge is a governance gate that runs in your CI against a hosted policy.",unlockedBy:"Configure the Reticle Cloud CI gate for your repository."},[Gs.HOSTED_RUNNER]:{reason:"Verifying without a local browser (CI, a background agent, or a deployed URL) needs a browser we run for you.",unlockedBy:"Link a Reticle Cloud account to run verifications on hosted browsers."}}});var Xu,GI,VI,jI,vG,KI,ZI=y(()=>{"use strict";ae();Xu={INSTALL:"install",ONBOARD:"onboard",FIRST_RUN:"first_run"},GI={STARTED:"started",COMPLETED:"completed",FAILED:"failed",ABANDONED:"abandoned",SKIPPED:"skipped"},VI={[Xu.INSTALL]:["script_started","runtime_ready","cli_installed","agents_detected","mcp_registered"],[Xu.ONBOARD]:["tour_started","concept_shown","first_look","first_act","first_verdict"],[Xu.FIRST_RUN]:["project_detected","next_step_offered","instrumented","app_connected","driven","flow_recorded","verdict_produced"]},jI={LEASE:"lease",INIT_CONSENT:"init_consent"},vG=Object.values(VI).flatMap(e=>[...e]),KI=b({phase:R(Xu),step:pe(vG),status:R(GI),elapsedMs:S().int().nonnegative().optional(),reason:p().max(64).optional(),stack:p().max(64).optional(),unattended:L().optional(),firstEver:L().optional(),offered:R(jI).optional(),nextFollowed:L().optional()})});var WI,m_=y(()=>{"use strict";WI={AUTH_REFUSED:"auth_refused",LEASE_EXPIRED:"lease_expired",TAB_GONE:"tab_gone",NAVIGATED_AWAY:"navigated_away",ROUTE_SERVER_ERROR:"route_server_error",APP_NOT_REOPENED:"app_not_reopened",CONFIG_ELSEWHERE:"config_elsewhere",NO_LISTENER_NO_CONFIG:"no_listener_no_config",NO_LISTENER:"no_listener",NO_CONFIG:"no_config",SDK_NOT_REACHING_DAEMON:"sdk_not_reaching_daemon"}});var NG,YI,g_=y(()=>{"use strict";ae();m_();NG={NO_SESSION:"no_session",NO_MATCH:"no_match",UNSUPPORTED:"unsupported",BAD_ARGS:"bad_args",NOT_READY:"not_ready",OTHER:"other"},YI=b({tool:p().min(1).max(64),reason:R(NG),noSessionReason:R(WI).optional(),retried:L()})});var RG,qI,Ete,XI,OG,IG,E_,CG,LG,JI,$G,kG,QI,b_=y(()=>{"use strict";ae();RG={CONNECT:"connect",CLOSE_GAPS:"close_gaps",SWITCH_ON:"switch_on",EXPLORE:"explore"},qI={B0:"0-19",B20:"20-39",B40:"40-59",B60:"60-79",B80:"80-100"},Ete=Object.values(qI),XI=b({fingerprint:p().min(1).max(64),count:S().int().nonnegative(),message:p().max(300),tool:p().max(64).optional()}),OG={NONE:"none",LOCAL_ONLY:"local_only",REMOTE:"remote"},IG={GITHUB:"github",GITLAB:"gitlab",BITBUCKET:"bitbucket",AZURE:"azure",SOURCEHUT:"sourcehut",CODEBERG:"codeberg",SELF_HOSTED:"self_hosted"},E_=b({rssMb:S().int().nonnegative(),heapUsedMb:S().int().nonnegative(),freeMemMb:S().int().nonnegative(),totalMemMb:S().int().nonnegative(),load1x100:S().int().nonnegative(),cpuCount:S().int().nonnegative()}),CG=b({totalMs:S().int().nonnegative(),maxMs:S().int().nonnegative()}),LG=b({attempts:S().int().nonnegative(),successes:S().int().nonnegative(),failures:ie(p(),S().int().nonnegative()).optional()}),JI=b({durationMs:S().int().nonnegative(),toolCalls:S().int().nonnegative(),toolCounts:ie(p(),S().int().nonnegative()),toolErrors:S().int().nonnegative(),errors:C(XI).max(40).optional(),sdkFailures:S().int().nonnegative().optional(),sdkErrors:C(XI).max(40).optional(),verifications:S().int().nonnegative(),bugsFound:S().int().nonnegative().optional(),bugKinds:ie(p(),S().int().nonnegative()).optional(),toolParams:ie(p(),ie(p(),S().int().nonnegative())).optional(),connections:ie(p(),LG).optional(),toolTiming:ie(p(),CG).optional(),busyMs:S().int().nonnegative().optional(),browserMs:S().int().nonnegative().optional(),browserCommands:S().int().nonnegative().optional(),peakConcurrentTools:S().int().nonnegative().optional(),unknownToolCalls:S().int().nonnegative().optional(),unknownTools:ie(p().max(64),S().int().nonnegative()).optional(),noSessionErrors:S().int().nonnegative().optional(),postSocketFailures:S().int().nonnegative().optional(),postRetriesSaved:S().int().nonnegative().optional(),consecutiveRepeats:ie(p(),S().int().positive()).optional(),abandonedActions:S().int().nonnegative().optional(),machine:E_.optional(),clients:C(p().max(64)).max(8).optional(),clientVersions:ie(p().max(64),p().max(32)).optional(),surface:p().max(32).optional(),appConnects:S().int().nonnegative().optional(),msToFirstApp:S().int().nonnegative().optional(),sdkVersion:p().min(1).max(32).optional(),toolCallsBeforeApp:S().int().nonnegative().optional(),endReason:pe(["never_used","explored","abandoned","verified","client_left"]).optional(),feedbackPrompted:S().int().nonnegative().optional(),errorClasses:ie(p().max(16),S().int().nonnegative()).optional(),errorsRecovered:S().int().nonnegative().optional(),errorsRepeated:S().int().nonnegative().optional(),endedWithVerdict:L().optional(),lifetimeToolCalls:S().int().nonnegative().optional(),lifetimeVerifications:S().int().nonnegative().optional(),lifetimeBugsFound:S().int().nonnegative().optional(),updateNudged:L().optional(),updateOffered:p().max(32).optional(),hudControls:ie(p(),S()).optional(),hudViewMs:ie(p(),S()).optional(),hudPanelMs:ie(p(),S()).optional(),hudSlides:ie(p(),S()).optional(),hudJourney:C(p().max(64)).max(60).optional(),hudJourneyCut:U(!0).optional(),nudgesShown:ob(R(RG),S().int().positive()).optional(),harnessRefusedCoverage:ob(R(qI),S().int().positive()).optional(),final:L(),exit:pe(["idle","signal","unknown"]).optional()}),$G={TINY:"tiny",SMALL:"small",MEDIUM:"medium",LARGE:"large",HUGE:"huge"},kG={NO_APP_FOUND:"no_app_found",MANIFEST_UNRECOGNISED:"manifest_unrecognised",WORKSPACE_APPS_UNRECOGNISED:"workspace_apps_unrecognised",WORKSPACE_ROOT_NO_APPS:"workspace_root_no_apps",DISCOVERY_FAILED:"discovery_failed"},QI=b({stack:p().min(1).max(64).optional(),stackSource:pe(["cwd","workspace"]).optional(),stackUnknownReason:R(kG).optional(),stackMajor:S().int().nonnegative().optional(),size:R($G).optional(),monorepo:L().optional(),git:R(OG),forge:R(IG).optional(),ageWeeks:S().int().nonnegative().optional(),flowCount:S().int().nonnegative(),baselineCount:S().int().nonnegative(),visualBaselineCount:S().int().nonnegative(),runCount:S().int().nonnegative(),hasContract:L(),initialized:L().optional(),appConnectedBefore:L().optional(),capsuleCount:S().int().nonnegative(),featuresUsed:C(p().max(32)).max(24),featureDepth:S().min(0).max(1)})});var e0,__=y(()=>{"use strict";e0={ACTIVE:"active",MISSING:"missing",INVALID:"invalid",EXPIRED:"expired",EVAL:"eval"}});var zG,DG,PG,S_,MG,UG,HG,FG,BG,GG,VG,jG,t0,n0,KG,ZG,WG,YG,XG,qG,r0,T_=y(()=>{"use strict";ae();Fu();zG={SIGNED_OUT:"signed_out",SIGNED_IN:"signed_in",LINKED:"linked"},DG={CLAUDE_CODE:"claude_code",CLAUDE_DESKTOP:"claude_desktop",CODEX:"codex",CURSOR:"cursor",GEMINI_CLI:"gemini_cli",ANTIGRAVITY:"antigravity",WINDSURF:"windsurf",CLINE:"cline",OPENCODE:"opencode",ZED:"zed",VSCODE:"vscode",OTHER:"other"},PG={NPX:"npx",GLOBAL:"global",PROJECT:"project",OTHER:"other"},S_={ZERO:"0",ONE:"1",TWO_THREE:"2-3",FOUR_NINE:"4-9",TEN_PLUS:"10+"},MG=b({view:R(Pt).optional(),surface:R(Ci).optional(),tabs:R(S_).optional()}),UG={CONNECT:"connect",HUD:"hud",LINK:"link"},HG=b({via:R(UG)}),FG={STARTED:"started",COMPLETED:"completed"},BG={PROVED:"proved",NOT_PROVED:"not_proved",FAILED:"failed",BLOCKED:"blocked",STOPPED:"stopped"},GG={NOT_LINKED:"not_linked",PLATFORM_UNREACHABLE:"platform_unreachable",HARNESS_OFF:"harness_off",NO_CREDITS:"no_credits",NOT_ENTITLED:"not_entitled",COVERAGE_GATE:"coverage_gate",VERSION_SKEW:"version_skew",BROKEN:"broken",OTHER:"other"},VG={AGENT:"agent",HUD:"hud",DASHBOARD:"dashboard",CLI_TRY:"cli_try",PLAN:"plan"},jG=b({phase:R(FG),source:R(VG),hosted:L(),outcome:R(BG).optional(),journeys:R(S_).optional(),replayed:R(S_).optional(),reason:R(GG).optional()}),t0={accountState:R(zG).optional(),linked:L().optional(),workspaceId:p().min(1).max(128).optional(),client:R(DG).optional(),launch:R(PG).optional(),hud:MG.optional(),link:HG.optional(),harness:jG.optional()},n0={ECONNRESET:"ECONNRESET",ECONNREFUSED:"ECONNREFUSED",EPIPE:"EPIPE",ETIMEDOUT:"ETIMEDOUT",OTHER:"other"},KG={STDIN_END:"stdin_end",IDLE:"idle",CLIENT_GONE_STORM:"client_gone_storm",WAKE_FAILED:"wake_failed"},ZG=b({reason:R(KG),uptimeMs:S().int().nonnegative(),drops:S().int().nonnegative(),toolCalls:S().int().nonnegative(),proxyId:p().min(1).max(64).optional()}),WG=b({ageMs:S().int().nonnegative()}),YG={DETACHED:"detached",WMI:"wmi",WMI_FALLBACK:"wmi_fallback"},XG={FOREIGN:"foreign",OTHER_PROJECT:"other_project"},qG=b({presence:R(XG)}),r0={proxyExit:ZG.optional(),daemonDeath:WG.optional(),wakeRefusal:qG.optional(),spawnMethod:R(YG).optional()}});var JG,QG,o0,x_=y(()=>{"use strict";ae();JG={CONTRADICTION:"contradiction",CRAWL:"crawl",REPLAY:"replay",ASSERTION:"assertion"},QG={APP:"app",REQUEST:"request",RETICLE:"reticle",UNCLASSIFIED:"unclassified"},o0=b({source:R(JG),kind:p().min(1).max(64),falseGreen:L(),tool:p().min(1).max(64).optional(),repeat:L(),attribution:R(QG),fingerprint:p().max(16).optional(),occurrence:S().int().positive().optional()})});var eV,un,Lte,tV,nV,rV,oV,iV,i0,sV,aV,cV,lV,uV,dV,pV,fV,hV,mV,gV,$te,s0=y(()=>{"use strict";ae();ZI();g_();b_();mc();Fo();mc();__();T_();x_();x_();eV=3,un={RETICLE_INSTALLED:"reticle_installed",CLI_COMMAND_RUN:"cli_command_run",DAEMON_STARTED:"daemon_started",DAEMON_STOPPED:"daemon_stopped",SESSION_PROGRESS:"session_progress",VERIFICATION_COMPLETED:"verification_completed",PROJECT_PROFILED:"project_profiled",VERSION_CHANGED:"version_changed",RUNTIME_CRASHED:"runtime_crashed",FEEDBACK_SUBMITTED:"feedback_submitted",IDENTIFIED:"identified",MCP_CLIENT_CONNECTED:"mcp_client_connected",APP_INSTRUMENTED:"app_instrumented",MCP_CONNECTION_LOST:"mcp_connection_lost",MCP_PROXY_EXITED:"mcp_proxy_exited",DAEMON_DIED_UNCLEAN:"daemon_died_unclean",WAKE_REFUSED:"wake_refused",INIT_COMPLETED:"init_completed",ONBOARDING_STEP:"onboarding_step",BUG_FOUND:"bug_found",TOOL_REFUSED:"tool_refused",HUD_VIEWED:"hud_viewed",HUD_SIGNIN_PROMPTED:"hud_signin_prompted",PLATFORM_LINKED:"platform_linked",HARNESS_RUN:"harness_run"},Lte=new Set([un.DAEMON_STARTED,un.DAEMON_STOPPED,un.SESSION_PROGRESS,un.MCP_CLIENT_CONNECTED,un.APP_INSTRUMENTED,un.PROJECT_PROFILED,un.VERIFICATION_COMPLETED,un.BUG_FOUND,un.RUNTIME_CRASHED,un.FEEDBACK_SUBMITTED,un.TOOL_REFUSED,un.HUD_VIEWED,un.HUD_SIGNIN_PROMPTED,un.HARNESS_RUN]),tV={HUMAN:"human",AGENT:"agent"},nV={GIT_ORIGIN:"git_origin",GIT_ROOT:"git_root",PACKAGE_ROOT:"package_root",CWD:"cwd"},rV={HARNESS:"harness"},oV=b({via:p().min(1).max(64),verified:p().min(1).max(16),passed:L(),falseGreenCaught:L(),durationMs:S().int().nonnegative().optional(),browser:p().min(1).max(16).optional(),brand:R(Xe).optional(),reason:R(st).optional(),uncleanLoss:R(VR).optional(),driven:R(rV).optional(),sdkVersion:p().min(1).max(32).optional()}),iV=b({from:p().min(1).max(64),to:p().min(1).max(64),nudged:L().optional(),direction:p().min(1).max(16)}),i0={RETICLE:"reticle",OTHER:"other"},sV=b({kind:p().min(1).max(32),errorType:p().min(1).max(64).optional(),fingerprint:p().min(1).max(64).optional(),message:p().max(300).optional(),frames:C(p().max(120)).max(12).optional(),tool:p().min(1).max(64).optional(),breadcrumb:C(p().max(64)).max(12).optional(),nodeVersion:p().max(24).optional(),arch:p().max(16).optional(),machine:E_.optional(),syscall:p().max(32).optional(),errno:p().max(32).optional(),loopback:L().optional(),port:pe([i0.RETICLE,i0.OTHER]).optional(),internalFrame:p().max(64).optional()}),aV=b({reconnect:L(),daemonAgeMs:S().int().nonnegative(),client:p().min(1).max(64).optional(),appConnected:L().optional(),proxyId:p().min(1).max(64).optional()}),cV=b({initialized:L(),agentAttached:L(),msToFirstApp:S().int().nonnegative(),firstEver:L().optional()}),lV={FIRST:"first",BUDGET_SPENT:"budget_spent",RECOVERED:"recovered"},uV={SSE_ENDED:"sse_ended",DAEMON_SHUTDOWN:"daemon_shutdown",SSE_ERROR:"sse_error",SSE_ABORTED:"sse_aborted",SSE_CLOSED:"sse_closed",CONNECT_ERROR:"connect_error",SSE_RESET:"sse_reset",OTHER:"other"},dV=b({stage:R(lV),reason:R(uV),attempts:S().int().nonnegative(),pendingLost:S().int().nonnegative().optional(),errCode:R(n0).optional(),responded:L().optional(),proxyId:p().min(1).max(64).optional()}),pV={SKILL_FILE:"skill_file",NPX_SKILL:"npx_skill",PLUGIN:"plugin",INSTALL_SCRIPT:"install_script",DOCS_SITE:"docs_site",README:"readme",BLOG:"blog",CLI_DIRECT:"cli_direct",UNKNOWN:"unknown"},fV={CONTAINER:"container",HOSTED_WORKSPACE:"hosted_workspace",CI_RUNNER:"ci_runner",AGENT_SANDBOX:"agent_sandbox"},hV={CONNECTED:"connected",NO_DAEMON:"no_daemon",NO_SESSION:"no_session",NO_PAGE:"no_page"},mV={NO_DEV_COMMAND:"no_dev_command",SPLIT_LOOPBACK:"split_loopback",PORT_BUSY:"port_busy",DEV_SERVER_EXITED:"dev_server_exited",NO_URL:"no_url",NOT_READY:"not_ready",PAGE_NOT_SERVED:"page_not_served",PAGE_TLS_REFUSED:"page_tls_refused",SDK_MISSING:"sdk_missing",NO_SESSION:"no_session",DESKTOP_NO_SESSION:"desktop_no_session"},gV=b({ok:L(),reason:p().max(64).optional(),stack:p().max(64).optional(),mcpRegistered:L().optional(),confirmation:R(hV).optional(),stop:R(mV).optional()}),$te=b({v:U(eV),anonymousId:p().min(1).max(128),projectId:p().min(1).max(128).optional(),sessionId:p().min(1).max(64).optional(),event:R(un),ts:S().int().nonnegative(),version:p().min(1).max(64),ci:L(),automation:R(fV).optional(),projectIdSource:R(nV).optional(),os:p().min(1).max(32),tzOffsetMin:S().int().min(-900).max(900).optional(),internal:L().optional(),idEphemeral:L().optional(),feedback:fI.optional(),actor:R(tV).optional(),command:p().min(1).max(32).optional(),flags:C(p().max(32)).max(16).optional(),session:JI.optional(),project:QI.optional(),verification:oV.optional(),versionChange:iV.optional(),crash:sV.optional(),identity:hI.optional(),connection:aV.optional(),init:gV.optional(),onboarding:KI.optional(),bug:o0.optional(),refusal:YI.optional(),outage:dV.optional(),instrumentation:cV.optional(),installSource:R(pV).optional(),licenseId:p().min(1).max(64).optional(),licenseStatus:R(e0).optional(),licenseKeyPresent:L().optional(),...t0,...r0})});var a0=y(()=>{"use strict"});var c0,A_=y(()=>{"use strict";sb();c0={SESSIONS:"reticle_sessions",LOOK:"reticle_look",SNAPSHOT:"reticle_snapshot",QUERY:"reticle_query",INSPECT:"reticle_inspect",ACT:ic.ACT,ACT_SEQUENCE:ic.ACT_SEQUENCE,ACT_AND_WAIT:ic.ACT_AND_WAIT,OBSERVE:"reticle_observe",LINEAGE:"reticle_lineage",WAIT_FOR:"reticle_wait_for",NETWORK:"reticle_network",CONSOLE:"reticle_console",ANIMATIONS:"reticle_animations",ASSERT:"reticle_assert",RECONCILE:"reticle_reconcile",BASELINE_SAVE:"reticle_baseline_save",BASELINE_LIST:"reticle_baseline_list",DIFF:"reticle_diff",RECORD_START:"reticle_record_start",RECORD_STOP:"reticle_record_stop",REPLAY:"reticle_replay",EXPLORE:"reticle_explore",NARRATE:"reticle_narrate",CLOCK:"reticle_clock",STATE:"reticle_state",STORAGE:"reticle_storage",CAPABILITIES:"reticle_capabilities",CONTRACT_SAVE:"reticle_contract_save",DOMAIN:"reticle_domain",FLOW_SAVE:"reticle_flow_save",FLOW_LIST:"reticle_flow_list",FLOW_LOAD:"reticle_flow_load",FLOW_DELETE:"reticle_flow_delete",FLOW_REPLAY:"reticle_flow_replay",FLOW_VERIFY:"reticle_flow_verify",FLOW_SAVE_RECORDED:"reticle_flow_save_recorded",FLOW_HEAL:"reticle_flow_heal",FLOW_MUTATE:"reticle_flow_mutate",ANNOTATE:"reticle_annotate",AFFECTED:"reticle_affected",COVERAGE:"reticle_coverage",VERIFY_CHANGE:"reticle_verify_change",VERIFY_EXPLORE:"reticle_verify_explore",INTENT:"reticle_intent",CONTEXT:"reticle_context",MAP:"reticle_map",VERIFY:"reticle_verify",PROJECT:"reticle_project",ACCOUNT:"reticle_account",MEMORY:"reticle_memory",RUN_RECORD:"reticle_run_record",SCREENSHOT:"reticle_screenshot",NETWORK_MOCK:"reticle_network_mock",VIEWPORT:"reticle_viewport",VISUAL_DIFF:"reticle_visual_diff",CRAWL:"reticle_crawl",SCROLL_TO:"reticle_scroll_to",SESSION_TUNE:"reticle_session_tune",END_SESSION:"reticle_end_session",YIELD:"reticle_yield",RESUME:"reticle_resume",MESSAGES:"reticle_messages",REVIEW:"reticle_review",WAIT_READY:"reticle_wait_ready",NAVIGATE:"reticle_navigate",REFRESH:"reticle_refresh",RUN_EXPORT:"reticle_run_export",BASELINE:"reticle_baseline",SESSION:"reticle_session",RECORD:"reticle_record",FLOW:"reticle_flow",LEASE:"reticle_lease",LEASE_ACQUIRE:"reticle_lease_acquire",LEASE_RELEASE:"reticle_lease_release",TOOLS:"reticle_tools",RUN:"reticle_run",FEEDBACK:"reticle_feedback"}});var l0,EV,uh,bV,Hte,Fte,Bte,u0=y(()=>{"use strict";ae();A_();l0="reticle connect",EV={HARNESS_NOT_LINKED:"harness_not_linked"},uh={HUMAN:"human",AGENT:"agent"},bV=vt("who",[b({who:U(uh.HUMAN),run:p()}),b({who:U(uh.AGENT),tool:p()})]),Hte=b({code:pe([EV.HARNESS_NOT_LINKED]),next:C(bV)}),Fte=[{who:uh.HUMAN,run:l0},{who:uh.AGENT,tool:c0.ACT_AND_WAIT}],Bte=`Connect your Reticle account to run the Harness: \`${l0}\`.`});var d0=y(()=>{"use strict"});var p0=y(()=>{"use strict"});var Xte,qte,Jte,Qte,f0=y(()=>{"use strict";dc();mc();eh();sn();Xte={[Li.WEB]:{surface:or.WEB,isDesktopShell:!1,usesWebKit:!1,ownsCoverageKinds:!1,hasOwnBaselineDirectory:!1},[Li.ELECTRON]:{surface:or.DESKTOP,isDesktopShell:!0,projectMarker:{dependency:"electron"},usesWebKit:!1,ownsCoverageKinds:!0,hasOwnBaselineDirectory:!0},[Li.TAURI]:{surface:or.DESKTOP,isDesktopShell:!0,projectMarker:{file:"src-tauri/tauri.conf.json"},usesWebKit:!0,ownsCoverageKinds:!1,hasOwnBaselineDirectory:!0}},qte=new Set(Object.values(rr)),Jte={[Li.WEB]:ro.WEB,[Li.ELECTRON]:ro.WEBVIEW,[Li.TAURI]:ro.WEBVIEW},Qte={[or.WEB]:{reset:"cheap",replayPrefix:"free",time:"injectable",observation:"exact",actions:"reversible"},[or.DESKTOP]:{reset:"cheap",replayPrefix:"free",time:"injectable",observation:"exact",actions:"reversible"},[or.MOBILE]:{reset:"costly",replayPrefix:"costly",time:"wall",observation:"exact",actions:"reversible"},[or.SERVICE]:{reset:"costly",replayPrefix:"unsafe",time:"wall",observation:"exact",actions:"irreversible"},[or.GAME]:{reset:"cheap",replayPrefix:"free",time:"stepped",observation:"exact",actions:"reversible"},[or.DEVICE]:{reset:"costly",replayPrefix:"unsafe",time:"wall",observation:"sampled",actions:"irreversible"}}});var g0,_V,SV,h0,TV,E0,xV,m0,AV,St,yV,wV,vV,NV,RV,OV,b0,IV,CV,_0,y_=y(()=>{"use strict";ae();g0=b({calls:S().int().nonnegative(),verdicts:S().int().nonnegative(),passed:S().int().nonnegative(),failed:S().int().nonnegative(),unknown:S().int().nonnegative(),refusals:S().int().nonnegative(),marks:S().int().nonnegative(),sessions:S().int().nonnegative(),tokensReturned:S().int().nonnegative(),drivingMs:S().int().nonnegative()}),_V=b({date:p(),counts:g0}),SV=b({longestRunMs:S().int().nonnegative(),bestVerdictDay:S().int().nonnegative(),bestDefectDay:S().int().nonnegative(),streakDays:S().int().nonnegative(),bestStreakDays:S().int().nonnegative()}),h0=b({value:S().nonnegative(),basis:p()}),TV=b({tokens:h0,minutes:h0}),E0=10,xV=b({at:S().int().nonnegative(),title:p(),detail:p().optional(),source:p().optional()}),m0=b({counts:g0,days:C(_V),records:SV,savings:TV,since:S().int().nonnegative(),defects:C(xV).default([])}),AV=b({signedIn:L(),org:p().optional(),email:p().optional(),host:p().optional()}),St={FREE:"free",TRIAL:"trial",PAID:"paid"},yV=b({provider:p(),harnessEnabled:L(),harnessEntitled:L(),providerReady:L().optional(),credits:b({used:S().min(0),limit:S().min(0),kind:pe([St.FREE,St.TRIAL,St.PAID]).optional(),daysLeft:S().int().min(0).optional()}).optional(),platformUrl:p().optional(),planUrl:p().optional(),plan:b({kind:pe([St.FREE,St.TRIAL,St.PAID]),daysLeft:S().int().min(0).optional(),seats:S().int().min(0).optional()}).optional(),harnessRuns:S().int().min(0).optional(),memoryEntries:S().int().min(0).optional()}),wV=60,vV=b({runId:p(),steps:S().int().min(0),lines:C(p()).max(wV).optional()}),NV=b({runUrl:p().optional(),said:p().optional(),seq:S().int().min(0).optional()}),RV=500,OV=5,b0=64,IV=b({text:p().max(RV),seen:L(),by:p().max(b0).optional()}),CV=b({agents:C(p().max(b0)).max(8),notes:C(IV).max(OV)}),_0=b({schemaVersion:S().int().positive(),project:m0,global:m0,projectName:p().optional(),dashboardUrl:p().optional(),account:AV.optional(),harnessConfig:yV.optional(),harnessDrive:vV.optional(),lastDrive:NV.optional(),agent:CV.optional(),notices:C(q()).max(8).optional(),coverage:ie(p(),S()).optional(),sync:ie(p(),q()).optional(),instrumentation:ie(p(),q()).optional()})});var S0=y(()=>{"use strict"});function bc(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t.toString(16).padStart(8,"0")}function T0(e){let t=Object.keys(e).sort().map(n=>{var r;return`${n}:${[...(r=e[n])!=null?r:[]].sort().join(",")}`}).join("|");return bc(t)}var w_,qu,x0=y(()=>{"use strict";sn();w_=T0({messageKinds:Object.values(on),commands:Object.values(H),actions:Object.values(P),events:Object.values(w)}),qu={commands:Object.values(H),events:Object.values(w),actions:Object.values(P)}});var A0,y0=y(()=>{"use strict";A0="[Reticle] this page could not open a websocket to "});var w0=y(()=>{"use strict"});var M=y(()=>{"use strict";hA();uO();dO();pO();mO();sn();jb();EO();SO();xO();wO();vO();Fo();NO();RO();OO();Wb();Fu();kO();Xb();UO();FO();BO();l_();oh();lI();uI();mI();gI();Ru();sb();lO();ub();EI();Ob();vb();Ib();_I();Mu();SI();TI();Ho();Db();kb();Ub();Hb();Fb();xI();AI();yI();NI();OI();II();CI();LI();$I();kI();zI();f_();PI();MI();s_();n_();HI();FI();BI();s0();m_();g_();a0();A_();u0();d0();eh();th();p0();f0();b_();T_();__();mc();y_();S0();x0();y0();w0()});function $e(e,t){return e[t]}function v0(e){let t=Object.getOwnPropertyDescriptor(e,"value");return t===void 0?void 0:$e(t,"set")}var Vo=y(()=>{"use strict"});function kV(){for(let e of $i)e.deref()===void 0&&$i.delete(e);for(;$i.size>LV;){let e=$i.values().next();if(e.done===!0)break;$i.delete(e.value)}}function O0(){let e=[];for(let t of $i){let n=t.deref();n!==void 0&&e.push(n)}return e}function R0(e,t){if(!N0.has(e)){N0.add(e),$i.add(new WeakRef(e)),N_+=1,N_>=$V&&(N_=0,kV()),R_.add(t);for(let n of dh)n(e)}}function I0(){return O0()}function C0(e){return R_.has(e)}function Vs(e){if(!R_.has(e))return null;for(let t of O0())if(t.host===e)return t;return null}function L0(e){return dh.add(e),()=>dh.delete(e)}function $0(){let e=Element.prototype,t=$e(e,"attachShadow");if(typeof t!="function")return()=>{};v_+=1;let n=function(i){let s=t.call(this,i);return R0(s,this),s};e.attachShadow=n;let r=o=>{for(let i of o.querySelectorAll("*")){let s=i.shadowRoot;s!==null&&(R0(s,i),r(s))}};return document.documentElement!==null&&r(document.documentElement),()=>{$e(e,"attachShadow")===n&&(e.attachShadow=t),v_-=1,!(v_>0)&&($i.clear(),dh.clear())}}function zV(e){let t=e.parentElement;if(t===null||t.shadowRoot!==null)return null;let n=Vs(t);if(n===null)return null;for(let r of Array.from(n.querySelectorAll("slot")))if(r.assignedElements().includes(e))return r;return null}function ki(e){var r;let t=(r=e.assignedSlot)!=null?r:zV(e);if(t!==null)return t;if(e.parentElement!==null)return e.parentElement;let n=e.getRootNode().host;return n!=null?n:null}var v_,$i,N0,R_,LV,$V,N_,dh,jo=y(()=>{"use strict";Vo();v_=0,$i=new Set,N0=new WeakSet,R_=new WeakSet,LV=4e3,$V=250,N_=0;dh=new Set});function k0(e,t){var o;if(e===null||typeof e!="object")return;let r=((o=e.ownerDocument)!=null?o:e).defaultView;if(r!=null)return r[t]}function Gn(e,t,n){var o;let r=(o=k0(e,t))!=null?o:n;return typeof r=="function"&&e instanceof r}function U0(e){let t=vn(e)?"HTMLTextAreaElement":"HTMLInputElement",n=k0(e,t);if(typeof n!="function")return;let r=n.prototype;return typeof r=="object"&&r!==null?r:void 0}var wn,O_,at,DV,zi,He,vn,Cr,Ju,z0,D0,P0,M0,ph,dn=y(()=>{"use strict";wn=e=>Gn(e,"Element",typeof Element=="undefined"?void 0:Element),O_=e=>Gn(e,"HTMLImageElement",typeof HTMLImageElement=="undefined"?void 0:HTMLImageElement),at=e=>Gn(e,"HTMLElement",typeof HTMLElement=="undefined"?void 0:HTMLElement),DV=e=>Gn(e,"SVGElement",typeof SVGElement=="undefined"?void 0:SVGElement),zi=e=>at(e)||DV(e),He=e=>Gn(e,"HTMLInputElement",typeof HTMLInputElement=="undefined"?void 0:HTMLInputElement),vn=e=>Gn(e,"HTMLTextAreaElement",typeof HTMLTextAreaElement=="undefined"?void 0:HTMLTextAreaElement),Cr=e=>Gn(e,"HTMLSelectElement",typeof HTMLSelectElement=="undefined"?void 0:HTMLSelectElement),Ju=e=>Gn(e,"HTMLButtonElement",typeof HTMLButtonElement=="undefined"?void 0:HTMLButtonElement),z0=e=>Gn(e,"HTMLMeterElement",typeof HTMLMeterElement=="undefined"?void 0:HTMLMeterElement),D0=e=>Gn(e,"HTMLOutputElement",typeof HTMLOutputElement=="undefined"?void 0:HTMLOutputElement),P0=e=>Gn(e,"HTMLProgressElement",typeof HTMLProgressElement=="undefined"?void 0:HTMLProgressElement),M0=e=>Gn(e,"HTMLFormElement",typeof HTMLFormElement=="undefined"?void 0:HTMLFormElement),ph=e=>Gn(e,"HTMLIFrameElement",typeof HTMLIFrameElement=="undefined"?void 0:HTMLIFrameElement)});function UV(e){if(e.id.length>0)return`#${e.id}`;let t=e.getAttribute("class");return t!==null&&t.trim().length>0?`.${t.trim().split(/\s+/).join(".")}`:e.tagName.toLowerCase()}function H0(e){let t=e.ownerDocument.defaultView;if(t===null)return[];let n=[];for(let r=e;r!==null&&r!==e.ownerDocument.documentElement;r=r.parentElement){let o=t.getComputedStyle(r);for(let i of PV){let s=o.getPropertyValue(i);s.length>0&&s!==MV[i]&&n.push({on:UV(r),property:i,value:s})}}return n}function fh(e){var o;let t=(o=e==null?void 0:e.overflow)!=null?o:"",[n="visible",r=n]=(t===""?"visible":t).split(/\s+/);return[e===null||e.overflowX===""?n:e.overflowX,e===null||e.overflowY===""?r:e.overflowY]}function I_(e,t){var Y;if(t.clipBox!==void 0)return t.clipBox;let n=e.getBoundingClientRect(),r=t.style,o=X=>Number.parseFloat(X!=null?X:"")||0,i=(X,G)=>G===void 0||G===""||G==="none"||G==="hidden"?0:o(X),s=at(e)&&e.offsetWidth>0?n.width/e.offsetWidth:1,a=at(e)&&e.offsetHeight>0?n.height/e.offsetHeight:1,l=at(e)&&e.offsetWidth>0?n.left+e.clientLeft*s:n.left+i(r==null?void 0:r.borderLeftWidth,r==null?void 0:r.borderLeftStyle),u=at(e)&&e.offsetHeight>0?n.top+e.clientTop*a:n.top+i(r==null?void 0:r.borderTopWidth,r==null?void 0:r.borderTopStyle),d=at(e)&&e.offsetWidth>0?l+e.clientWidth*s:n.right-i(r==null?void 0:r.borderRightWidth,r==null?void 0:r.borderRightStyle),f=at(e)&&e.offsetHeight>0?u+e.clientHeight*a:n.bottom-i(r==null?void 0:r.borderBottomWidth,r==null?void 0:r.borderBottomStyle),m=((Y=r==null?void 0:r.overflowClipMargin)!=null?Y:"").split(/\s+/),h=o(m.at(-1)),E=m.includes("border-box"),_=m.includes("content-box"),[A,v]=fh(r),N=A==="clip"?(E?n.left:l+(_?o(r==null?void 0:r.paddingLeft)*s:0))-h*s:l,O=A==="clip"?(E?n.right:d-(_?o(r==null?void 0:r.paddingRight)*s:0))+h*s:d,k=v==="clip"?(E?n.top:u+(_?o(r==null?void 0:r.paddingTop)*a:0))-h*a:u,j=v==="clip"?(E?n.bottom:f-(_?o(r==null?void 0:r.paddingBottom)*a:0))+h*a:f;return t.clipBox={left:N,right:O,top:k,bottom:j,width:O-N,height:j-k},t.clipBox}function F0(e,t,n,r){let o=(u,d,f,m,h)=>{if(d>m&&u<h)return[u,d];let E=Math.min(f,h-m);return u>=h?[h-E,h]:[m,m+E]},[i,s]=n?o(e.left,e.right,e.width,t.left,t.right):[e.left,e.right],[a,l]=r?o(e.top,e.bottom,e.height,t.top,t.bottom):[e.top,e.bottom];return{left:i,right:s,top:a,bottom:l,width:s-i,height:l-a}}var PV,MV,C_=y(()=>{"use strict";dn();PV=["filter","opacity","transform","mix-blend-mode","backdrop-filter"],MV={filter:"none",opacity:"1",transform:"none","mix-blend-mode":"normal","backdrop-filter":"none"}});function HV(e){let t=e.parentElement;if(t===null)return!1;let n=t.closest(L_);if(n===null||n.hasAttribute($_))return!1;let r=Array.from(n.children).find(o=>hh===o.localName);return r===void 0||!r.contains(e)}function FV(e){return!e.ownerDocument.hidden||!("getAnimations"in e)?!1:e.getAnimations().some(t=>t.playState==="running"||t.pending)}function GV(e){return e.hasAttribute(BV)}function k_(e,t){return!!(at(e)&&e.hidden||HV(e)||t!==null&&(t.display==="none"||t.visibility==="hidden"||t.visibility==="collapse"||Number.parseFloat(t.opacity||"1")===0&&!FV(e)||VV(t)))}function VV(e){var u,d,f,m;let t=/^rect\((.*)\)$/.exec(e.getPropertyValue("clip").trim());if(t!==null&&(e.position==="absolute"||e.position==="fixed")){let[h,E,_,A]=((u=t[1])!=null?u:"").split(/[\s,]+/).map(Number.parseFloat);if(E!==void 0&&A!==void 0&&E<=A||_!==void 0&&h!==void 0&&_<=h)return!0}let n=/^inset\(([^)]*)\)$/.exec(e.getPropertyValue("clip-path").trim()),r=(m=(f=(d=n==null?void 0:n[1])==null?void 0:d.split(/\s+round\s/)[0])==null?void 0:f.trim().split(/\s+/))!=null?m:[],o=h=>h.endsWith("%")||Number.parseFloat(h)===0;if(r.length===0||!r.every(o))return!1;let[i=0,s=i,a=i,l=s]=r.map(Number.parseFloat);return i+a>=100||l+s>=100}function jV(e,t){return e.getAttribute("aria-hidden")==="true"&&!GV(e)?!0:k_(e,t)}function K0(e){var r,o;let t=!1,n=e;for(;n!==null;){n.getAttribute("aria-hidden")==="true"&&(t=!0);let i=(o=(r=n.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(n))!=null?o:null;if(k_(n,i))return!1;n=ki(n)}return t}function Z0(e){var n,r;let t=e;for(;t!==null;){if(t.getAttribute("aria-hidden")==="true")return!1;let o=(r=(n=t.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(t))!=null?r:null;if(k_(t,o))return!1;t=ki(t)}return!0}function X0(e){if(e===void 0)return new Map;let t=j0.get(e);return t===void 0&&(t=new Map,j0.set(e,t)),t}function so(e,t){var r,o,i;let n=t.get(e);if(n===void 0){let s=(o=(r=e.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(e))!=null?o:null;if(jV(e,s))return n={hidden:!0,style:s,parent:null,clipX:!1,clipY:!1,scrollX:!1,scrollY:!1,hasClipping:!1},t.set(e,n),n;let a=ki(e),l=a===null?void 0:so(a,t),[u,d]=fh(s),f=e.ownerDocument.documentElement,h=!(e===f||e===e.ownerDocument.body&&fh(so(f,t).style).every(A=>A==="visible"))&&!W0.has((i=s==null?void 0:s.display)!=null?i:"")&&!(at(e)&&(s==null?void 0:s.display)==="inline"),E=h&&B0.has(u),_=h&&B0.has(d);n={hidden:(l==null?void 0:l.hidden)===!0,style:s,parent:a,clipX:E,clipY:_,scrollX:h&&G0.has(u),scrollY:h&&G0.has(d),hasClipping:E||_||(l==null?void 0:l.hasClipping)===!0},t.set(e,n)}return n}function WV(e,t,n){for(let r=so(e,n).parent;r!==null;r=so(r,n).parent){let o=so(r,n).style;if(o===null||o.display==="contents")continue;if(!t&&o.position!==""&&o.position!=="static")return r;let i=!(o.display==="inline"&&at(r)&&!ZV.has(r.localName))&&o.display!=="table-column"&&o.display!=="table-column-group",s=a=>i||!Y0.has(a);if([...V0].some(a=>{let l=o.getPropertyValue(a);return s(a)&&l!==""&&l!=="none"})||o.willChange.split(",").some(a=>V0.has(a.trim())&&s(a.trim()))||i&&!W0.has(o.display)&&(o.contain.split(/\s+/).some(a=>KV.has(a))||o.contentVisibility==="auto"))return r}return null}function q0(e,t,n,r=!1){let o=n,i=so(e,t);if(i.hidden)return null;if(i.parent===null||!so(i.parent,t).hasClipping)return o;let s;for(let a=e;a!==null;a=so(a,t).parent){let l=so(a,t);if(l.hidden)return null;a===s&&(s=void 0);let u=l.style;if(r&&a!==e&&s===void 0&&(l.scrollX||l.scrollY)&&(o!=null||(o=e.getBoundingClientRect()),o.width>0&&o.height>0&&(o=F0(o,I_(a,l),l.scrollX,l.scrollY))),a!==e&&s===void 0&&(l.clipX||l.clipY)&&(o!=null||(o=e.getBoundingClientRect()),o.width>0&&o.height>0)){let d=I_(a,l),f=l.clipX?Math.max(o.left,d.left):o.left,m=l.clipX?Math.min(o.right,d.right):o.right,h=l.clipY?Math.max(o.top,d.top):o.top,E=l.clipY?Math.min(o.bottom,d.bottom):o.bottom;if(m<=f||E<=h)return null;o={left:f,right:m,top:h,bottom:E,width:m-f,height:E-h}}s===void 0&&((u==null?void 0:u.position)==="absolute"||(u==null?void 0:u.position)==="fixed")&&(s=WV(a,(u==null?void 0:u.position)==="fixed",t))}return o}function z_(e,t){if(!ct(e,t))return!1;let n=e.ownerDocument.defaultView;if(n===null)return!1;let r=q0(e,X0(t),e.getBoundingClientRect());return r==null||r.width<=0||r.height<=0?!1:r.bottom>0&&r.right>0&&r.top<n.innerHeight&&r.left<n.innerWidth}function YV(e,t){let n=so(e,t);if(!n.clipX&&!n.clipY)return!1;let r=Array.from(e.getClientRects());return r.length>0&&r.every(o=>n.clipX&&o.width===0||n.clipY&&o.height===0||n.clipX&&n.clipY&&o.width<=1&&o.height<=1)}function ct(e,t){if(!e.isConnected)return!1;let n=t==null?void 0:t.get(e);if(n!==void 0)return n;let r=X0(t),o=q0(e,r,void 0,!0)!==null&&!YV(e,r);return t!==void 0&&t.set(e,o),o}var L_,$_,hh,BV,B0,G0,W0,Y0,V0,KV,ZV,j0,Ko=y(()=>{"use strict";dn();jo();C_();L_="details",$_="open",hh="summary";BV="data-aria-hidden";B0=new Set(["hidden","clip"]),G0=new Set(["auto","scroll"]),W0=new Set(["contents","table-row","table-row-group","table-header-group","table-footer-group","table-column","table-column-group"]),Y0=new Set(["transform","translate","rotate","scale","perspective"]),V0=new Set([...Y0,"filter","backdrop-filter"]),KV=new Set(["layout","paint","strict","content"]),ZV=new Set(["img","video","audio","canvas","iframe","embed","object","input","textarea","select"]),j0=new WeakMap});function eC(e){P_=e}function M_(e){tC=e}function rC(){return P_}function oC(e){Q0=e.join(",")}function Rt(e){return e.closest(Di)!==null}function Pi(e){return Rt(e)?!nC()||e.closest(qV)===null:!1}function ao(e){return e!==null&&e.closest(Di)!==null}function Ut(e){let n=[nC()?JV:Di,XV,Q0].filter(r=>r.length>0).join(",");return e.closest(n)!==null}function Qu(e){return Ut(e)||Rt(e)}function t4(e){var r;let t=e.querySelector(e4);if(t!==null)return{name:D_.VITE,host:t};for(let o of Array.from(e.querySelectorAll(QV))){let i=(r=o.shadowRoot)!=null?r:Vs(o),s=(i!=null?i:o).querySelector(J0);if(s!==null&&ct(s))return{name:D_.NEXT,host:o}}let n=e.querySelector(J0);if(!(n===null||!ct(n)))return{name:D_.NEXT,host:n}}function iC(e){let t=e[0];if(t===void 0)return;let n=t4(t.ownerDocument);if(n!==void 0)return e.some(r=>!n4(r,n.host))?n.name:void 0}function n4(e,t){var n;for(let r=e;r!==null;){if(r===t)return!0;let o=r.getRootNode();r=(n=r.parentNode)!=null?n:o instanceof ShadowRoot?o.host:null}return!1}function mh(e){for(let t of Array.from(e.querySelectorAll(r4)))if(t.closest(Di)===null&&!(t instanceof HTMLElement&&(t.hidden||t.closest("[hidden]")!==null))&&!(t instanceof HTMLElement&&getComputedStyle(t).display==="none"))return!0;return!1}var Di,XV,Q0,P_,tC,nC,qV,JV,D_,QV,J0,e4,r4,lt=y(()=>{"use strict";M();jo();Ko();Di=Bu,XV="[data-agentation],#__next-build-watcher,nextjs-portal,[data-nextjs-dialog],[data-nextjs-toast]",Q0="",P_=!1;tC=!1;nC=()=>P_&&!tC;qV="[data-reticle-dock]";JV="[data-reticle-log],[data-reticle-harness-log],[data-reticle-chat-pill-text],[data-reticle-agent-said],[data-reticle-agent-note],[data-reticle-act-line]";D_={NEXT:"Next.js error dialog",VITE:"Vite error overlay"},QV="nextjs-portal",J0="[data-nextjs-dialog]",e4="vite-error-overlay";r4='dialog[open], [aria-modal="true"]'});function Mi(){return gh}function Vn(){return`[${gh}]`}function ve(e){return e.getAttribute(gh)}function dC(e){gh=e!==void 0&&_O.test(e)?e:Ps}var gh,Ot=y(()=>{"use strict";M();gh=Ps});function Sh(e){return c4.has(e)||e.startsWith(Eh)||e.startsWith(bh)||e.startsWith(_h)}var Tt,Eh,bh,_h,c4,co=y(()=>{"use strict";Tt={SESSION:"__reticle_session",REF_BASE:"__reticle_ref_base",PRESENTER_LOG:"reticle-presenter-log",PRESENTER_LOG_OWNER:"reticle-presenter-log-owner",PRESENTER_SETTINGS:"reticle-presenter-settings",PRESENTER_MINIMISED:"reticle-presenter-minimised",PRESENTER_OPEN:"reticle-presenter-open",PRESENTER_VIEW:"reticle-presenter-view",CAROUSEL_DISMISSED:"reticle.carousel.dismissed",ANNOTATION_HISTORY:"reticle.annotations.history.v1"},Eh="reticle.tour.seen.",bh="reticle.harness.persona.",_h="reticle.impact.seen.",c4=new Set(Object.values(Tt))});function js(e){let t=Z.MAX_REF_LENGTH;return t>=e.length?e:`${e.slice(0,t)}${l4}`}function p4(e){try{let t=e==null?void 0:e.getItem(fC),n=t==null?Number.NaN:Number(t);return Number.isSafeInteger(n)&&n>0?n:0}catch{return 0}}var pC,l4,U_,u4,fC,d4,td,It,nd,Zo,_c,Sc,Tc,Wo,hC,H_,mC,ed,re,xt=y(()=>{"use strict";M();co();pC=1e4,l4="\u2026",U_="e";u4=1e3,fC=Tt.REF_BASE,d4=100;ed=class{constructor(t=()=>globalThis.sessionStorage){x(this,Wo);x(this,td,new WeakMap);x(this,It,new Map);x(this,nd);x(this,Zo,0);x(this,_c,0);x(this,Sc,0);x(this,Tc,0);g(this,nd,t)}get size(){return c(this,It).size}markEdited(){g(this,Tc,c(this,Zo))}mintedBeforeLastEdit(t){if(c(this,Tc)===0||!t.startsWith(U_))return!1;let n=Number(t.slice(U_.length));return Number.isSafeInteger(n)&&n>0&&n<=c(this,Tc)}refFor(t){let n=c(this,td).get(t);if(n!==void 0){let o=c(this,It).get(n);return c(this,It).delete(n),c(this,It).set(n,o!=null?o:new WeakRef(t)),n}c(this,Zo)>=c(this,_c)&&T(this,Wo,hC).call(this),g(this,Zo,c(this,Zo)+1);let r=bI(`${U_}${String(c(this,Zo))}`);return c(this,td).set(t,r),c(this,It).set(r,new WeakRef(t)),g(this,Sc,c(this,Sc)+1),c(this,Sc)>=u4?(g(this,Sc,0),T(this,Wo,mC).call(this)):c(this,It).size>pC&&T(this,Wo,H_).call(this),r}resolve(t){let n=c(this,It).get(t);if(n===void 0)return null;let r=n.deref();return r===void 0||!r.isConnected?(c(this,It).delete(t),null):(c(this,It).delete(t),c(this,It).set(t,n),r)}};td=new WeakMap,It=new WeakMap,nd=new WeakMap,Zo=new WeakMap,_c=new WeakMap,Sc=new WeakMap,Tc=new WeakMap,Wo=new WeakSet,hC=function(){let t;try{t=c(this,nd).call(this)}catch{t=void 0}let n=Math.max(p4(t),c(this,Zo));g(this,_c,n+d4);try{t==null||t.setItem(fC,String(c(this,_c)))}catch{}g(this,Zo,n)},H_=function(){let t=c(this,It).keys().next();t.done!==!0&&c(this,It).delete(t.value)},mC=function(){for(let[t,n]of c(this,It)){let r=n.deref();(r===void 0||!r.isConnected)&&c(this,It).delete(t)}for(;c(this,It).size>pC;)T(this,Wo,H_).call(this)};re=new ed});function gC(e){var n;return((n=e.match(/-?\d*\.?\d+(?:e[-+]?\d+)?|NaN|Infinity|-Infinity/gi))!=null?n:[]).map(r=>Number(r))}function m4(e){return/NaN|Infinity/i.test(e)?!0:gC(e).some(t=>!Number.isFinite(t))}function g4(e){let t=gC(e).filter(i=>Number.isFinite(i));if(t.length===0)return!0;let n=t.filter((i,s)=>s%2===0),r=t.filter((i,s)=>s%2===1),o=i=>i.every(s=>s===i[0]);return n.length>1&&o(n)&&o(r)}function Th(e){let t=[],n=0;for(let o of f4)for(let i of Array.from(e.querySelectorAll(o)))for(let s of h4){let a=i.getAttribute(s);if(a===null)continue;n+=1;let l=a.length>120?`${a.slice(0,120)}\u2026`:a;m4(a)?t.push({kind:"non-finite-coordinates",tag:o,attr:s,sample:l}):a.trim().length===0?t.push({kind:"empty-geometry",tag:o,attr:s,sample:l}):g4(a)&&t.push({kind:"degenerate-geometry",tag:o,attr:s,sample:l})}let r=e.querySelectorAll("canvas").length>0;return{examined:n,findings:t,canvas:r}}function EC(e,t){var i,s,a,l,u,d,f;let n=t,r=(s=(i=n.Chart)==null?void 0:i.getChart)==null?void 0:s.call(i,e);if(r!=null)return{library:"chartjs",data:(a=r.data)!=null?a:null};let o=(u=(l=n.echarts)==null?void 0:l.getInstanceByDom)==null?void 0:u.call(l,e);return o!=null?{library:"echarts",data:(f=(d=o.getOption)==null?void 0:d.call(o))!=null?f:null}:null}var f4,h4,F_=y(()=>{"use strict";f4=["path","polyline","polygon"],h4=["d","points"]});function rd(e,t,n){let r=Math.max(0,Math.min(n,t.remainingCharacters));if(e.length<=r)return t.remainingCharacters-=e.length,e;t.truncatedValues+=1;let o=r<=od.length?od.slice(0,r):`${e.slice(0,r-od.length)}${od}`;return t.remainingCharacters-=o.length,o}function id(e,t,n,r){if(r!==void 0&&bt(r))return we;if(n>Z.MAX_SERIALIZE_DEPTH||t.nodes>=xc)return t.truncatedValues+=1,od;if(t.nodes+=1,e===null||typeof e=="boolean")return e;if(typeof e=="string")return rd(no(e),t,(r==null?void 0:r.toLowerCase())==="error"?Z.MAX_ERROR_LENGTH:Z.MAX_STRING_LENGTH);if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="bigint")return e.toString();if(typeof e=="undefined"||typeof e=="function"||typeof e=="symbol")return Ac;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(e instanceof Map){let o=Object.create(null),i=0;for(let[s,a]of e){if(t.nodes>=xc||i>=Z.MAX_COLLECTION_ITEMS){t.droppedItems+=e.size-i;break}let l=rd(typeof s=="string"?s:String(s),t,bC),u=id(a,t,n+1,l);u!==Ac&&(o[l]=u),i+=1}return o}if(e instanceof Set){let o=[],i=0;for(let s of e){if(t.nodes>=xc||i>=Z.MAX_COLLECTION_ITEMS){t.droppedItems+=e.size-i;break}let a=id(s,t,n+1);o.push(a===Ac?null:a),i+=1}return o}if(ArrayBuffer.isView(e)&&!(e instanceof DataView)){let o=e.length,i=[],s=0;for(let a of e){if(t.nodes>=xc||s>=Z.MAX_COLLECTION_ITEMS){t.droppedItems+=o-s;break}i.push(a),t.nodes+=1,s+=1}return i}if(e instanceof Error)return{name:rd(e.name,t,256),message:rd(e.message,t,Z.MAX_ERROR_LENGTH)};if(t.seen.has(e))return"[CIRCULAR]";t.seen.add(e);try{if(Array.isArray(e)){let l=[],u=e.slice(0,Z.MAX_COLLECTION_ITEMS);t.droppedItems+=Math.max(0,e.length-u.length);for(let d of u){if(t.nodes>=xc){t.droppedItems+=1;continue}let f=id(d,t,n+1);if(t.nodes>=xc){t.droppedItems+=1;continue}l.push(f===Ac?null:f)}return l}let o=Object.create(null),i=Object.keys(e),s=i.slice(0,Z.MAX_OBJECT_KEYS);t.droppedItems+=Math.max(0,i.length-s.length);let a=s.map(l=>{try{let u=e[l];return{key:l,value:u,scalar:u===null||typeof u!="object",ok:!0}}catch{return{key:l,value:void 0,scalar:!0,ok:!1}}});for(let l of[...a.filter(u=>u.scalar),...a.filter(u=>!u.scalar)]){let u=rd(l.key,t,bC);if(!l.ok){o[u]=B_;continue}try{let d=id(l.value,t,n+1,l.key);d!==Ac&&(o[u]=d)}catch{o[u]=B_}}return o}finally{t.seen.delete(e)}}function sd(e){return Ks(e).value}function Ks(e){let t={seen:new WeakSet,remainingCharacters:E4,nodes:0,droppedItems:0,truncatedValues:0},n=id(e,t,0),r=n===Ac?null:n;if(t.droppedItems===0&&t.truncatedValues===0)return{value:r};let o=[];return t.droppedItems>0&&o.push(`${t.droppedItems} item(s) dropped`),t.truncatedValues>0&&o.push(`${t.truncatedValues} value(s) truncated`),{value:r,truncation:{droppedItems:t.droppedItems,truncatedValues:t.truncatedValues,note:`partial \u2014 ${o.join(", ")}; this is NOT the whole value. Scope the read with \`path\`/\`depth\` to see the rest.`}}}function lo(e){try{return JSON.stringify(sd(e))}catch{return JSON.stringify(B_)}}var od,B_,Ac,bC,E4,xc,cr=y(()=>{"use strict";M();od="[TRUNCATED]",B_="[UNSERIALIZABLE]",Ac=Symbol("omit"),bC=256,E4=Math.floor(Z.MAX_MESSAGE_BYTES/4),xc=Z.MAX_COLLECTION_ITEMS*5});function b4(e){if(e===null)return;let t=/^(.*):(\d+):(\d+)$/.exec(e);if(t===null)return;let n=t[1],r=Number(t[2]);if(!(n===void 0||n.length===0||!Number.isFinite(r)))return{file:n,line:r}}function ad(e){let t=e.closest(`[${G_}]`);return t!==null?b4(t.getAttribute(G_)):void 0}function xh(e,t){return t!==void 0?{file:t.file,line:t.line}:ad(e)}function _C(e){return e.querySelector(`[${G_}]`)!==null}function Ah(e){return e===void 0?void 0:`${e.file}:${String(e.line)}`}var G_,cd=y(()=>{"use strict";M();G_=pc});function T4(e){let t=e.type.toLowerCase();return t==="search"?"searchbox":S4.has(t)?"textbox":t==="checkbox"?"checkbox":t==="radio"?"radio":t==="range"?"slider":t==="number"?"spinbutton":t==="submit"||t==="button"||t==="reset"?"button":"textbox"}function x4(e){let t=e.getAttribute("aria-label");if(t!==null&&t.trim().length>0)return!0;let n=e.getAttribute("aria-labelledby");if(n!==null&&n.trim().length>0)return!0;let r=e.getAttribute("title");return r!==null&&r.trim().length>0}function ke(e){var r;let t=e.getAttribute("role");if(t!==null&&t.trim().length>0)return t.trim();switch(e.tagName.toLowerCase()){case"a":return e.hasAttribute("href")?"link":"generic";case"button":return"button";case"input":return T4(e);case"textarea":return"textbox";case"select":return e.multiple?"listbox":"combobox";case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"heading";case"ul":case"ol":return"list";case"li":return"listitem";case"nav":return"navigation";case"main":return"main";case"aside":return"complementary";case"dialog":return"dialog";case"img":return"img";case"table":return"table";case"tr":return"row";case"tbody":case"thead":case"tfoot":return"rowgroup";case"td":return e.closest('[role~="grid"], [role~="treegrid"]')!==null?"gridcell":"cell";case"th":{let o=((r=e.getAttribute("scope"))!=null?r:"").toLowerCase();return o==="row"||o==="rowgroup"?"rowheader":"columnheader"}case"option":return"option";case"optgroup":return"group";case"section":return x4(e)?"region":"generic";case"article":return"article";case"fieldset":return"group";case"details":return"group";case"summary":return"button";case"progress":return"progressbar";case"meter":return"meter";case"output":return"status";case"hr":return"separator";case"area":return e.hasAttribute("href")?"link":"generic";case"form":return"form";case"p":return"paragraph";case"header":return"banner";case"footer":return"contentinfo";default:return"generic"}}function Ui(e){return e.replace(/\s+/g," ").trim()}function A4(e){let t=e.getAttribute("aria-labelledby");if(t===null)return null;let n=[];for(let o of t.split(/\s+/)){let i=e.ownerDocument.getElementById(o);i!==null&&n.push(Ui(Zs(i)))}let r=n.join(" ").trim();return r.length>0?r:null}function Zs(e){var o;if(e.nodeType===Node.TEXT_NODE)return(o=e.textContent)!=null?o:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let t=e;if(t.getAttribute("aria-hidden")==="true")return"";if(O_(t)){let i=t.getAttribute("alt");return i===null?"":i}let n="",r=!1;for(let i of t.childNodes){let s=Zs(i);if(s.length===0)continue;let a=Node.ELEMENT_NODE===i.nodeType;n.length>0&&(a||r)&&(n+=" "),n+=s,r=a}return n}function Ne(e){let t=A4(e);if(t!==null)return t;let n=e.getAttribute("aria-label");if(n!==null&&n.trim().length>0)return n.trim();if(O_(e)){let i=e.getAttribute("alt");if(i!==null)return i.trim()}if(He(e)||vn(e)||Cr(e)||Ju(e)||z0(e)||D0(e)||P0(e)){let i=e.labels;if(i!==null&&i.length>0){let s=[...i].map(a=>Ui(Zs(a))).join(" ").trim();if(s.length>0)return s}}if(e.tagName.toLowerCase()==="fieldset"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="legend");if(i!==void 0){let s=Ui(Zs(i));if(s.length>0)return s}}if(e.tagName.toLowerCase()==="table"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="caption");if(i!==void 0){let s=Ui(Zs(i));if(s.length>0)return s}}if(e.tagName.toLowerCase()==="figure"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="figcaption");if(i!==void 0){let s=Ui(Zs(i));if(s.length>0)return s}}if(He(e)||vn(e)||Cr(e)){if(He(e)){let i=e.type.toLowerCase();if(i==="submit"||i==="button"||i==="reset"){let s=Ui(e.value);if(s.length>0)return s}}if(He(e)||vn(e)){let i=e.getAttribute("placeholder");if(i!==null&&i.trim().length>0)return i.trim()}}if(_4.has(ke(e))){let i=Ui(Zs(e));if(i.length>0)return i}let o=e.getAttribute("title");return o!==null&&o.trim().length>0?o.trim():""}function yh(e,t){let n=e.getAttribute(t);if(n!==null)return n==="true"}function Yo(e,t=ct(e)){let n=[_e.PRESENT];n.push(t?_e.VISIBLE:_e.HIDDEN);let r=e.matches(":disabled")||yh(e,"aria-disabled")===!0;return n.push(r?_e.DISABLED:_e.ENABLED),(He(e)&&(e.type==="checkbox"||e.type==="radio")&&e.checked||yh(e,"aria-checked")===!0)&&n.push(_e.CHECKED),(yh(e,"aria-expanded")===!0||y4(e))&&n.push(_e.EXPANDED),yh(e,"aria-pressed")===!0&&n.push(_e.PRESSED),e.ownerDocument.activeElement===e&&n.push(_e.FOCUSED),n}function y4(e){let t=e.parentElement;return hh!==e.localName||t===null||L_!==t.localName?!1:Array.from(t.children).find(r=>hh===r.localName)===e&&t.hasAttribute($_)}function pn(e){var o,i,s,a,l;if(!He(e)&&!vn(e)&&!Cr(e))return!1;let t=(o=e.getAttribute("autocomplete"))!=null?o:"",n=[(i=e.getAttribute("name"))!=null?i:"",e.id,(s=ve(e))!=null?s:"",(a=e.getAttribute(Ps))!=null?a:"",(l=e.getAttribute("aria-label"))!=null?l:""],r=w4.test(t);return He(e)&&e.type.toLowerCase()==="password"||r||n.some(bt)}function V_(e){if(He(e)||vn(e)||Cr(e))return pn(e)?e.value===""?"":we:e.value;let t=e.getAttribute("aria-valuenow");return t!=null?t:void 0}function v4(e){var n;let t=Ui((n=e.textContent)!=null?n:"");return t.length>SC?`${t.slice(0,SC)}\u2026`:t}function uo(e,t){let n=V_(e),r=v4(e),o=Ne(e),i=ct(e,t),s={ref:re.refFor(e),role:ke(e),name:o,states:Yo(e,i),visible:i};n!==void 0&&n.length>0&&(s.value=n),r.length>0&&r!==o&&(s.text=r);let a=Ah(ad(e));if(a!==void 0&&(s.source=a),e.querySelector("path, polyline, polygon")!==null){let l=Th(e).findings;l.length>0&&(s.chart=l)}return s}var _4,S4,w4,SC,At=y(()=>{"use strict";Ot();M();dn();xt();F_();cr();cd();Ko();_4=new Set(["button","link","heading","option","listitem","cell","checkbox","columnheader","radio","row","rowheader","tab","tooltip","menuitem","menuitemcheckbox","menuitemradio","treeitem","gridcell","switch","status","alert"]),S4=new Set(["text","email","tel","url","password",""]);w4=/\b(cc-|current-password|new-password|one-time-code)/i;SC=80});function LC(e){vc.some(t=>t.name===e.name)||vc.push(e)}function lr(e){for(let t of vc){let n;try{n=t.identify(e)}catch{continue}if(n!=null)return n}return null}function vh(e){for(let t of vc){if(t.readState===void 0)continue;let n=t.readState(e);if(n!==void 0)return n}}function Nh(e){for(let t of vc)if(t.hasHoverHandlers!==void 0&&t.hasHoverHandlers(e))return!0;return!1}function pd(){return vc.map(e=>e.name)}var W_,CC,vc,Xo=y(()=>{"use strict";W_=globalThis,vc=(CC=W_.__reticleAdapters)!=null?CC:W_.__reticleAdapters=[]});function Rh(){return ar(location.href)}function Oh(e=!0){return ar(`${location.pathname}${location.search}${e?location.hash:""}`)}var fd=y(()=>{"use strict";M()});function tL(e){var o;let t=[],n=new Set,r;try{r=e.querySelectorAll(Vn())}catch{return t}for(let i=0;i<r.length&&t.length<uj;i+=1){let s=(o=r[i])==null?void 0:o.getAttribute(Mi());if(s==null)continue;let a=s.trim();a.length===0||n.has(a)||a.startsWith(dj)||(n.add(a),t.push(a))}return t}var uj,dj,nL=y(()=>{"use strict";Ot();uj=200,dj="reticle-"});var J_,rL,Q_,Lr,hd=y(()=>{"use strict";J_=globalThis,Q_=typeof((rL=J_.console)==null?void 0:rL.warn)=="function"?J_.console.warn.bind(J_.console):null,Lr=(...e)=>{Q_==null||Q_(...e)}});function lL(e){return eS.add(e),()=>eS.delete(e)}function pj(e){if(e===null||typeof e!="object"&&typeof e!="function")return!1;let t=e;return typeof t.getState=="function"&&typeof t.subscribe=="function"}function uL(e,t,n){if(mj(e,t),pj(t)){let r=()=>t.getState(),o=i=>t.subscribe(i);Rc.set(e,r),Lh.set(e,o),oL(e,r,o);return}if(typeof t!="function"){let r=typeof t=="object"&&t!==null&&"subscribe"in t;Lr(`[reticle] store "${e}" is neither a getter function nor a {getState, subscribe} store`+(r?" \u2014 it has subscribe but no getState. Wrap it with an adapter or add getState.":"."));return}if(Rc.set(e,t),n!==void 0){Lh.set(e,n),oL(e,t,n);return}hj(e)}function oL(e,t,n){for(let r of eS)try{r([e,t,n])}catch{}}function dL(e){Rc.delete(e),Lh.delete(e)}function Fi(){return[...Rc.keys()]}function pL(){let e=[];for(let[t,n]of Lh){let r=Rc.get(t);r!==void 0&&e.push([t,r,n])}return e}function nS(e){let t={};for(let[n,r]of Rc)if(!(e!==void 0&&n!==e))try{t[n]=r()}catch(o){t[n]={__error:o instanceof Error?o.message:String(o)}}return t}function fL(e){return md(e).stores}function md(e){let t={},n={};for(let[r,o]of Object.entries(nS(e))){let i=Ks(o);t[r]=i.value,i.truncation!==void 0&&(n[r]=i.truncation)}return Object.keys(n).length>0?{stores:t,truncation:n}:{stores:t}}function hj(e){fj.has(e)||iL.has(e)||(iL.add(e),Lr(`[reticle] store "${e}" was registered without a subscribe function. It can be READ, but its changes are invisible: no STATE_CHANGE events, no state diffs in causal summaries, and a state predicate will never see it update. Pass the store object (or a subscribe callback) to fix.`))}function $h(e,t){hL.set(e,t)}function mj(e,t){if(t===null||typeof t!="object"&&typeof t!="function")return;tS.set(t,e);let n=hL.get(t);n!==void 0&&tS.set(n,e)}function mL(e){if(!(e===null||typeof e!="object"&&typeof e!="function"))return tS.get(e)}var qo,sL,Rc,aL,Lh,cL,eS,iL,fj,tS,hL,Ws=y(()=>{"use strict";M();hd();cr();qo=globalThis,Rc=(sL=qo.__reticleStores)!=null?sL:qo.__reticleStores=new Map,Lh=(aL=qo.__reticleStoreSubs)!=null?aL:qo.__reticleStoreSubs=new Map,eS=(cL=qo.__reticleStoreListeners)!=null?cL:qo.__reticleStoreListeners=new Set;iL=new Set,fj=new Set([Hf]);tS=new WeakMap,hL=new WeakMap});function EL(){return typeof document=="undefined"?[]:tL(document)}function bL(){return Fi().filter(e=>Hf!==e)}function zh(e,t){let n=[...e];for(let r of t)n.includes(r)||n.push(r);return n}function gj(){return{testids:[],signals:[],stores:[],flows:[]}}function oS(e,t){if(t!==void 0)for(let n of t)e.includes(n)||e.push(n)}function Dh(e){kh=e}function Oc(e){if(oS(Nn.testids,e.testids),oS(Nn.signals,e.signals),oS(Nn.stores,e.stores),e.flows!==void 0)for(let t of e.flows){let n=Nn.flows.find(r=>r.name===t.name);n===void 0?Nn.flows.push({name:t.name,steps:[...t.steps]}):n.steps=[...t.steps]}kh==null||kh()}function Bi(){return{testids:zh(Nn.testids,EL()),signals:[...Nn.signals],stores:zh(Nn.stores,bL()),flows:Nn.flows.map(e=>({name:e.name,steps:[...e.steps]})),...rC()?{presenterExposed:!0}:{}}}function _L(){return[...Nn.testids]}function Ph(){return Nn.signals.length>0||Nn.flows.length>0||zh(Nn.testids,EL()).length>0||zh(Nn.stores,bL()).length>0}var rS,gL,Nn,kh,Gi=y(()=>{"use strict";M();lt();nL();Ws();rS=globalThis;Nn=(gL=rS.__reticleCapabilities)!=null?gL:rS.__reticleCapabilities=gj()});function Vh(){return dS>0}function ut(e){dS+=1;try{return e()}finally{dS-=1}}var dS,Cc=y(()=>{"use strict";dS=0});function KL(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.max(0,Math.min(e,gS))}var dr,HL,mS,FL,GL,BL,Kh,ue,Re,Zh,gS,VL,ji,jL,mt=y(()=>{"use strict";dr=globalThis,HL=typeof dr.setTimeout=="function"?dr.setTimeout.bind(dr):null,mS=typeof dr.clearTimeout=="function"?dr.clearTimeout.bind(dr):null,FL=typeof dr.requestAnimationFrame=="function"?dr.requestAnimationFrame.bind(dr):null,BL=typeof((GL=dr.performance)==null?void 0:GL.now)=="function"?dr.performance.now.bind(dr.performance):null,Kh=()=>BL?BL():0,ue=(e,t=0)=>HL?HL(e,t):0,Re=e=>{mS==null||mS(e)},Zh=(e,t)=>{let n=!1,r=0,o=()=>{n||(e(),!n&&(r=ue(o,t)))};return r=ue(o,t),()=>{n=!0,Re(r)}},gS=200,VL=(e=gS)=>new Promise(t=>{let n=!1,r=i=>{n||(n=!0,Re(o),t({settled:i}))},o=ue(()=>r(!1),e);FL?FL(()=>r(!0)):ue(()=>r(!0),0)}),ji=()=>VL().then(()=>{}),jL=async(e=gS)=>(await Promise.resolve(),VL(e))});var q$={};Wa(q$,{MASK:()=>Y$,cloneForRender:()=>X$,renderPage:()=>GK});function PK(e){var t;return e instanceof HTMLInputElement&&e.type==="password"?!0:[e.name,e.id,(t=e.getAttribute("autocomplete"))!=null?t:""].some(n=>n.length>0&&bt(n))}function MK(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){let n=PK(e)&&e.value.length>0?Y$:e.value;e instanceof HTMLTextAreaElement?t.textContent=n:t.setAttribute("value",n)}e instanceof HTMLInputElement&&(e.checked?t.setAttribute("checked",""):t.removeAttribute("checked")),e instanceof HTMLOptionElement&&(e.selected?t.setAttribute("selected",""):t.removeAttribute("selected"))}function UK(e){var r;let t=[...Array.from(e.styleSheets),...(r=e.adoptedStyleSheets)!=null?r:[]],n=[];for(let o of t)try{for(let i of Array.from(o.cssRules))n.push(i.cssText)}catch{}return n.join(`
58
- `)}function X$(e){var a;let t=e.documentElement,n=t.cloneNode(!0),r=t.querySelectorAll("*"),o=n.querySelectorAll("*");r.forEach((l,u)=>{let d=o[u];d!==void 0&&MK(l,d)});let i=[Di,"script","noscript",'link[rel~="stylesheet"]',"style"];n.querySelectorAll(i.join(",")).forEach(l=>l.remove());let s=e.createElement("style");return s.textContent=UK(e),((a=n.querySelector("head"))!=null?a:n).append(s),n}function HK(e){let t=e.defaultView;for(let n of[e.body,e.documentElement]){if(t===null||n===null)continue;let r=t.getComputedStyle(n).backgroundColor;if(r.length>0&&r!=="transparent"&&r!=="rgba(0, 0, 0, 0)")return r}return kK}function FK(e){return new Promise((t,n)=>{let r=new Image,o=setTimeout(()=>n(new Error("the page did not render in time")),LK);r.onload=()=>{clearTimeout(o),t(r)},r.onerror=()=>{clearTimeout(o),n(new Error("the page could not be drawn as an image"))},r.src=e})}function BK(e){let t=[];for(let n=0;n<e.length;n+=W$)t.push(e.slice(n,n+W$));return t}async function GK(){try{let e=Math.max(1,window.innerWidth),t=Math.max(1,window.innerHeight),n=X$(document);n.style.transform=`translate(${String(-window.scrollX)}px, ${String(-window.scrollY)}px)`;let r=new XMLSerializer().serializeToString(n),o=`<svg xmlns="${$K}" width="${String(e)}" height="${String(t)}"><foreignObject x="0" y="0" width="100%" height="100%">${r}</foreignObject></svg>`,i=await FK(`data:image/svg+xml;charset=utf-8,${encodeURIComponent(o)}`),s=HK(document),a=Math.min(1,Nb.MAX_SIDE_PX/Math.max(e,t));for(let l=0;l<CK;l+=1,a*=IK){let u=document.createElement("canvas");u.width=Math.max(1,Math.round(e*a)),u.height=Math.max(1,Math.round(t*a));let d=u.getContext("2d");if(d===null)return{ok:!1,reason:"this page has no 2D canvas to draw into"};d.fillStyle=s,d.fillRect(0,0,u.width,u.height),d.drawImage(i,0,0,u.width,u.height);let f=u.toDataURL(zK,Nb.JPEG_QUALITY).replace(DK,"");if(f.length<=OK)return{ok:!0,width:u.width,height:u.height,chunks:BK(f)}}return{ok:!1,reason:"the rendered page was too large to send, even scaled down"}}catch(e){return{ok:!1,reason:e instanceof Error?e.message:String(e)}}}var Y$,OK,W$,IK,CK,LK,$K,kK,zK,DK,J$=y(()=>{"use strict";M();lt();Y$="\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",OK=24e4,W$=6e4,IK=.75,CK=4,LK=5e3,$K="http://www.w3.org/2000/svg",kK="#ffffff",zK="image/jpeg",DK=/^data:[^,]*,/});function um(e,t){return`${A0}${e}. ${String(t)} attempts, all failed. That is everything the page can see: from inside the browser it cannot tell a daemon that is not there from one it is not allowed to reach, so this is not evidence about the daemon. What answers it: run \`npx @reticlehq/server status\` to see whether one is listening and on which port. If your app runs in a container, devcontainer or WSL, the daemon is on a different host, so point the page at it: RETICLE_PORT or reticle({ port }) with the Vite plugin, reticle.connect({ url }) by hand. An https page cannot open a ws:// socket. Still retrying\u2026`}var ak,$S=y(()=>{"use strict";M();ak="Can't reach Reticle from this page. Run reticle status to check, or reticle serve to start it."});var Ge,Kn,hn,ZS=y(()=>{"use strict";Ge={READ:"read",ACT:"act",NARRATION:"narration",HUMAN:"human"},Kn={PASS:"pass",FAIL:"fail"},hn={AGENT:"agent",HARNESS:"harness"}});function $d(e){switch(e){case P.CLICK:case P.DBLCLICK:return"Clicking";case P.FILL:case P.TYPE:return"Typing into";case P.HOVER:return"Hovering";case P.SELECT:return"Selecting";case P.SUBMIT:return"Submitting";case P.CHECK:case P.UNCHECK:return"Toggling";case P.UPLOAD:return"Uploading to";case P.DRAG:return"Dragging";default:return e}}var WS=y(()=>{"use strict";M()});function ri(e){return typeof e=="string"&&e.length>0}function rZ(e){var n;return`${(n=e.file.split("/").pop())!=null?n:e.file}:${e.line}`}function Hz(e){var t;if(ri(e.testid))return{strategy:zr.TESTID,value:e.testid,stable:!0};if(ri(e.component)&&e.source!==void 0)return{strategy:zr.COMPONENT,value:`${e.component}@${rZ(e.source)}`,stable:!0};if(ri(e.component)&&(ri(e.role)||ri(e.name))){let n=ri(e.name)?e.name:e.role;return{strategy:zr.COMPONENT,value:`${e.component}[${n!=null?n:""}]`,stable:!0}}if(ri(e.role)&&ri(e.name))return{strategy:zr.ROLE,value:`${e.role}:${e.name}`,stable:!1};if(ri(e.role)){let n=e.nth!==void 0?`#${e.nth}`:"";return{strategy:zr.ROLE,value:`${e.role}${n}`,stable:!1}}return{strategy:zr.POSITION,value:`el#${(t=e.nth)!=null?t:0}`,stable:!1}}var zr,Fz=y(()=>{"use strict";zr={TESTID:"testid",COMPONENT:"component",ROLE:"role",POSITION:"position"}});function iZ(e,t,n){return n.length>0?t.length>0?`${t} "${n}"`:`"${n}"`:t.length>0?t:e.tagName.toLowerCase()}function Md(e){var d;let t=(d=ve(e))!=null?d:void 0,n=lr(e),r=n==null?void 0:n.componentStack[0],o=xh(e,n==null?void 0:n.source),i=ke(e),s=Ne(e),a={};t!==void 0&&(a.testid=t),r!==void 0&&(a.component=r),o!==void 0&&(a.source=o),i.length>0&&(a.role=i),s.length>0&&(a.name=s);let l=Hz(a),u={anchor:l.value,strategy:oZ[l.strategy],label:iZ(e,i,s)};return o!==void 0&&(u.source=o),u}var oZ,QS=y(()=>{"use strict";Ot();M();Fz();At();Xo();cd();oZ={[zr.TESTID]:Us.TESTID,[zr.COMPONENT]:Us.COMPONENT,[zr.ROLE]:Us.ROLE,[zr.POSITION]:Us.POSITION}});function Bz(e){return`${String(e)} ${e===1?"note":"notes"} on this page`}function Tm(e,t){let n=e.length,r=`I marked ${String(n)} ${n===1?"issue":"issues"} on ${t} with Reticle. Fix each one, then verify it in the running app:`,o=e.map((i,s)=>{let a=i.source===void 0?i.anchor:`${i.anchor}, ${i.source}`;return`${String(s+1)}. ${i.note}
57
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of e.seen.entries()){let f=d[1];if(t===d[0]){i(d);continue}if(e.external){let h=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(t!==d[0]&&h){i(d);continue}}if((u=e.metadataRegistry.get(d[0]))==null?void 0:u.id){i(d);continue}if(f.cycle){i(d);continue}f.count>1&&e.reused==="ref"&&i(d)}e.external&&(e.sharedDefsExtractedFor=e.external)}function qv(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;qv(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function Xv(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function KE(e){var i,s,a,l;let t=[];for(let u of e){if(typeof u!="object"||u.type!=="object")return null;for(let d in u)if(!Jv.has(d))return null;t.push(u)}let n={},r=new Set;for(let u of t){for(let d in u.properties){if(Object.prototype.hasOwnProperty.call(n,d))continue;let f=[];for(let h of t){let E=(s=(i=h.properties)==null?void 0:i[d])!=null?s:Xv(h);E!=null&&(f.some(_=>JSON.stringify(_)===JSON.stringify(E))||f.push(E))}let m=f.length===1?f[0]:(a=KE(f))!=null?a:{allOf:f};kn(n,d,m)}for(let d of(l=u.required)!=null?l:[])r.add(d)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(u=>u.additionalProperties===!1))o.additionalProperties=!1;else{let u=[];for(let d of t){let f=Xv(d);f&&!u.some(m=>JSON.stringify(m)===JSON.stringify(f))&&u.push(f)}u.length===1?o.additionalProperties=u[0]:u.length>1&&(o.additionalProperties={allOf:u})}return o}function MU(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of Jv)if(o in e)return;let n=t.filter(o=>Yv.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=KE(t);else{let o=n[0],i=Yv.find(l=>Array.isArray(o[l]));if(Object.keys(o).length!==1)return;let s=t.filter(l=>l!==o),a=o[i].map(l=>KE([...s,l]));if(a.some(l=>!l))return;r={[i]:a}}r&&(delete e.allOf,yu(e,r))}function YE(e,t){var a,l,u,d,f,m,h,E;let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=_=>{var j,Y,X;let A=e.seen.get(_);if(A.ref===null)return;let v=(j=A.def)!=null?j:A.schema,N={...v},O=A.ref;if(A.ref=null,O){r(O);let G=e.seen.get(O),ee=G.schema;if(ee.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(v.allOf=(Y=v.allOf)!=null?Y:[],v.allOf.push(ee)):yu(v,ee),yu(v,N),_._zod.parent===O)for(let me in v)me==="$ref"||me==="allOf"||me in N||delete v[me];if(ee.$ref&&G.def)for(let me in v)me==="$ref"||me==="allOf"||me in G.def&&JSON.stringify(v[me])===JSON.stringify(G.def[me])&&delete v[me]}let k=_._zod.parent;if(k&&k!==O){r(k);let G=e.seen.get(k);if(G!=null&&G.schema.$ref&&(v.$ref=G.schema.$ref,G.def))for(let ee in v)ee==="$ref"||ee==="allOf"||ee in G.def&&JSON.stringify(v[ee])===JSON.stringify(G.def[ee])&&delete v[ee]}e.override({zodSchema:_,jsonSchema:v,path:(X=A.path)!=null?X:[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let _ of[...e.seen.entries()].reverse())r(_[0]);if(e.target!=="openapi-3.0")for(let _ of e.seen.entries())qv((a=_[1].def)!=null?a:_[1].schema);for(let _ of e.deferred)_();if(e.intersections.length){let _=new Map;for(let A of e.seen.values())for(let v of[A.schema,A.def]){let N=v==null?void 0:v.allOf;if(!Array.isArray(N))continue;let O=_.get(N);O?O.push(v):_.set(N,[v])}for(let A of e.intersections)for(let v of(l=_.get(A))!=null?l:[])MU(v)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(u=e.external)!=null&&u.uri){let _=(d=e.external.registry.get(t))==null?void 0:d.id;if(!_)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(_)}yu(o,n.defId?n.schema:(f=n.def)!=null?f:n.schema);let i=(m=e.metadataRegistry.get(t))==null?void 0:m.id;i!==void 0&&o.id===i&&delete o.id;let s=(E=(h=e.external)==null?void 0:h.defs)!=null?E:{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let _ of e.seen.entries()){let A=_[1];A.def&&A.defId&&(A.def.id===A.defId&&delete A.def.id,kn(s,A.defId,A.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let _=JSON.parse(JSON.stringify(o));return Object.defineProperty(_,"~standard",{value:{...t["~standard"],jsonSchema:{input:wu(t,"input",e.processors),output:wu(t,"output",e.processors)}},enumerable:!1,writable:!1}),_}catch{throw new Error("Error converting schema to JSON.")}}function rn(e,t){let n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return rn(r.element,n);if(r.type==="set")return rn(r.valueType,n);if(r.type==="lazy")return rn(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return rn(r.innerType,n);if(r.type==="intersection")return rn(r.left,n)||rn(r.right,n);if(r.type==="record"||r.type==="map")return rn(r.keyType,n)||rn(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:rn(r.in,n)||rn(r.out,n);if(r.type==="object"){for(let o in r.shape)if(rn(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(rn(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(rn(o,n))return!0;return!!(r.rest&&rn(r.rest,n))}return!1}var Jv,Yv,Qv,wu,If=y(()=>{kE();Sn();Jv=new Set(["type","properties","required","additionalProperties"]),Yv=["oneOf","anyOf"];Qv=(e,t={})=>n=>{let r=ZE({...n,processors:t});return Ve(e,r),WE(r,e),YE(r,e)},wu=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r!=null?r:{},s=ZE({...o!=null?o:{},target:i,io:t,processors:n});return Ve(e,s),WE(s,e),YE(s,e)}});function Pn(e){var i,s,a,l,u;let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...(i=n.checks)!=null?i:[]]:(s=n.checks)!=null?s:[];for(let d of r)(a=XE[d._zod.def.check])==null||a.call(XE,t,d._zod.def);let o=e._zod.bag;o.minimum!==void 0&&oc(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&oc(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&ic(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&ic(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&oN(t,o.multipleOf),o.format!==void 0&&((l=t.format)!=null||(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&sN(t,o.mime);for(let d of(u=o.patterns)!=null?u:[])iN(t,d);return t}function vu(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?vu(t.out):t.type==="catch"?vu(t.innerType):e._zod.optin}function qE(e,t,n){var E,_;if(t.$ref){if(n.has(t))return t;n.add(t);let A=(E=e.get(t))==null?void 0:E.def;if(!A)return t;let v=qE(e,A,n);return v===A?t:v}for(let A of["anyOf","oneOf"]){let v=t[A];if(!Array.isArray(v))continue;let N=v.map(O=>qE(e,O,n));N.some((O,k)=>O!==v[k])&&(t={...t,[A]:N})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(A=>A==="number"||A==="integer"),i=(_=t.enum)!=null?_:t.const!==void 0?[t.const]:void 0;if(!o&&!(i!=null&&i.some(A=>typeof A=="number")))return t;let{minimum:s,maximum:a,exclusiveMinimum:l,exclusiveMaximum:u,multipleOf:d,format:f,id:m,...h}=t;return h.enum?h.enum=h.enum.map(A=>typeof A=="number"?String(A):A):typeof h.const=="number"&&(h.const=String(h.const)),o&&(h.type="string",i||(h.pattern=(r.includes("number")?bu:gE).source)),h}function FU(e){var r,o,i;let t=new Map;for(let s of e.seen.values())s.def&&!t.has(s.schema)&&t.set(s.schema,s);let n=new Map;for(let s of(r=JE.get(e))!=null?r:[]){let a=e.seen.get(s),l=(i=(o=a==null?void 0:a.def)!=null?o:a==null?void 0:a.schema)==null?void 0:i.propertyNames;if(!l||l===!0||n.has(l))continue;let u=qE(t,l,new Set);u!==l&&n.set(l,u)}if(n.size)for(let s of e.seen.values())for(let a of[s.schema,s.def]){let l=a&&n.get(a.propertyNames);l&&(a.propertyNames=l)}}function RN(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,l)=>typeof l!="bigint"?l:(i=!0,null));return i?(ro(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),QE):JSON.parse(s)}var oc,ic,eN,oN,iN,sN,aN,tN,nN,rN,XE,UU,HU,cN,lN,uN,dN,pN,fN,hN,mN,gN,EN,bN,_N,SN,TN,xN,AN,yN,JE,wN,vN,NN,QE,ON,IN,CN,LN,$N,eb,kN,zN=y(()=>{pf();OE();If();Sn();oc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},ic=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},eN=(e,t)=>{oc(e,"minimum",t),ic(e,"maximum",t)},oN=(e,t)=>{var n;(n=e.multipleOf)!=null||(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},iN=(e,t)=>{var n;(n=e.patterns)!=null||(e.patterns=new Set),e.patterns.add(t)},sN=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},aN=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},tN=(e,t)=>oc(e,"minimum",t.minimum),nN=(e,t)=>ic(e,"maximum",t.maximum),rN=e=>(t,n)=>{aN(t,n.format);let[r,o]=e[n.format];oc(t,"minimum",r),ic(t,"maximum",o)},XE={greater_than:(e,t)=>oc(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>ic(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>oN(e,t.value),number_format:rN(hu),bigint_format:rN(tf),min_length:tN,max_length:nN,length_equals:(e,t)=>eN(e,t.length),min_size:tN,max_size:nN,size_equals:(e,t)=>eN(e,t.size),string_format:(e,t)=>{aN(e,t.format),t.pattern&&iN(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>sN(e,t.mime)};UU={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},HU=new Map([[yE,dy],[Sf,py]]),cN=e=>{var t;return(t=HU.get(e))!=null?t:e},lN=(e,t,n,r)=>{var f;let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:l,contentEncoding:u,laxFormat:d}=Pn(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=(f=UU[a])!=null?f:a,o.format===""&&delete o.format,(a==="time"||d)&&delete o.format),u&&(o.contentEncoding=u),l&&l.size>0){let m=[...l].map(cN);m.length===1?o.pattern=m[0].source:m.length>1&&(o.allOf=[...m.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},uN=(e,t,n,r)=>{var E;let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:l,exclusiveMinimum:u,isInt:d}=Pn(e);o.type=d?"integer":"number";let f=typeof u=="number"&&u>=(i!=null?i:Number.NEGATIVE_INFINITY),m=typeof l=="number"&&l<=(s!=null?s:Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";if(f?h?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?h?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l:typeof s=="number"&&(o.maximum=s),a){let _=new Set;for(let N of a)Number.isFinite(N)&&N!==0?_.add(Math.abs(N)):ro(e,t,o,r,`A multipleOf divisor of ${N} cannot be represented in JSON Schema`);let[A,...v]=_;A!==void 0&&(o.multipleOf=A),v.length&&(o.allOf=[...(E=o.allOf)!=null?E:[],...v.map(N=>({multipleOf:N}))])}},dN=(e,t,n,r)=>{n.type="boolean"},pN=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},fN=(e,t,n,r)=>{ro(e,t,n,r,"Undefined cannot be represented in JSON Schema")},hN=(e,t,n,r)=>{n.not={}},mN=(e,t,n,r)=>{},gN=(e,t,n,r)=>{let o=e._zod.def,i=qa(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},EN=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(ro(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(ro(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},bN=(e,t,n,r)=>{ro(e,t,n,r,"Custom types cannot be represented in JSON Schema")},_N=(e,t,n,r)=>{ro(e,t,n,r,"Transforms cannot be represented in JSON Schema")},SN=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Pn(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=Ve(i.element,t,{...r,path:[...r.path,"items"]})};TN=(e,t,n,r)=>{var u;let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&ro(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let d in s)kn(o.properties,d,Ve(s[d],t,{...r,path:[...r.path,"properties",d]}));let l=[];for(let d of Object.keys(s)){let f=i.shape[d];(t.io==="input"?vu(f)===void 0:f._zod.optout===void 0)&&l.push(d)}l.length>0&&(o.required=l),((u=i.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=Ve(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},xN=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,l)=>Ve(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=s:n.anyOf=s},AN=(e,t,n,r)=>{let o=e._zod.def,i=Ve(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=Ve(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=l,t.intersections.push(l)},yN=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((_,A)=>Ve(_,t,{...r,path:[...r.path,s,A]})),u=i.rest?Ve(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,d=i.items.length;for(;d>0;){let _=i.items[d-1];if(!(t.io==="input"?vu(_)!==void 0:_._zod.optout==="optional"))break;d--}let f=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=l,m?o.items=!1:u&&(o.items=u),d>0&&(o.minItems=d),m&&(o.maxItems=f)):t.target==="openapi-3.0"?(o.items={anyOf:l},u&&o.items.anyOf.push(u),d>0&&(o.minItems=d),m&&(o.maxItems=f)):(o.items=l,m?o.additionalItems=!1:u&&(o.additionalItems=u),d>0&&(o.minItems=d),m&&(o.maxItems=f));let{minimum:h,maximum:E}=Pn(e);typeof h=="number"&&(o.minItems=h),typeof E=="number"&&(o.maxItems=E)};JE=new WeakMap;wN=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Pn(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let d=Ve(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let f of a)kn(o.patternProperties,cN(f).source,d)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=Ve(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let d=JE.get(t);d||(d=[],JE.set(t,d),t.deferred.push(()=>FU(t))),d.push(e)}o.additionalProperties=Ve(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let l=s._zod.values,u=t.io==="input"&&vu(i.valueType)!==void 0;if(l&&!i.partial&&!u){let d=[...l].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(o.required=d.map(String))}},vN=(e,t,n,r)=>{let o=e._zod.def,i=Ve(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},NN=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},QE=Symbol();ON=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=RN(o.defaultValue,e,t,n,r);s!==QE&&(n.default=s)},IN=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=RN(o.defaultValue,e,t,n,r);s!==QE&&(n._prefault=s)},CN=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{ro(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},LN=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;Ve(s,t,r);let a=t.seen.get(e);a.ref=s},$N=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},eb=(e,t,n,r)=>{let o=e._zod.def;Ve(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},kN=(e,t,n,r)=>{let o=e._zod.innerType;Ve(o,t,r);let i=t.seen.get(e);i.ref=o}});var Li=y(()=>{Ls();YA();UA();OE();rv();hf();TE();Sn();kE();SE();cv();Zv();If()});var nb=y(()=>{Li()});function Cf(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var DN,YU,Mn,rb=y(()=>{Li();Li();Sn();DN=new WeakSet([Object.prototype,Error.prototype]);YU=(e,t)=>{DA.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);DN.has(n)||(DN.add(n),Cf(n,"format",r=>o=>MA(r,o)),Cf(n,"flatten",r=>o=>PA(r,o)),Cf(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Ja,2)}),Cf(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Ja,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Mn=I("ZodError",YU,void 0,{Parent:Error})});var PN,MN,UN,HN,FN,BN,GN,VN,jN,KN,ZN,WN,ob=y(()=>{Li();rb();Li();PN=af(Mn),MN=cf(Mn),UN=lf(Mn),HN=uf(Mn),FN=FA(Mn),BN=BA(Mn),GN=GA(Mn),VN=VA(Mn),jN=jA(Mn),KN=KA(Mn),ZN=ZA(Mn),WN=WA(Mn)});function qU(){nn.localeError||Dn(ov())}function Nu(){nn.memoizer||Dn({memoizer:nv()})}function p(e){return uv(JU,e)}function S(e){return Pv(eR,e)}function YN(e){return Mv(TH,e)}function L(e){return Uv(xH,e)}function Ru(e){return Hv(AH,e)}function tR(e){return Fv(yH,e)}function q(){return Bv(wH)}function NH(e){return Gv(vH,e)}function C(e,t){return Vv(RH,e,t)}function b(e,t){let n={type:"object",shape:e!=null?e:{},...ne.normalizeParams(t)};return new OH(n)}function wt(e,t){return new nR({type:"union",options:e,...ne.normalizeParams(t)})}function vt(e,t,n){return new IH({type:"union",options:t,discriminator:e,...ne.normalizeParams(n)})}function LH(e,t){return new CH({type:"intersection",left:e,right:t})}function kf(e,t,n){let r=t instanceof De,o=r?n:t,i=r?t:null;return new $H({type:"tuple",items:e,rest:i,...ne.normalizeParams(o)})}function ie(e,t,n){return!t||!t._zod?new ib({type:"record",keyType:p(),valueType:e,...ne.normalizeParams(t)}):new ib({type:"record",keyType:e,valueType:t,...ne.normalizeParams(n)})}function sb(e,t,n){return new ib({type:"record",keyType:e,valueType:t,...ne.normalizeParams(n),partial:!0})}function pe(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new $f({type:"enum",entries:n,...ne.normalizeParams(t)})}function R(e,t){return new $f({type:"enum",entries:e,...ne.normalizeParams(t)})}function U(e,t){return new rR({type:"literal",values:Array.isArray(e)?e:[e],...ne.normalizeParams(t)})}function oR(e){return new kH({type:"transform",transform:e})}function XN(e){return new ab({type:"optional",innerType:e})}function zH(e){return new iR({type:"optional",innerType:e})}function qN(e){return new DH({type:"nullable",innerType:e})}function MH(e,t){return new PH({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}function HH(e,t){return new UH({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}function FH(e,t){return new sR({type:"nonoptional",innerType:e,...ne.normalizeParams(t)})}function GH(e,t){return new BH({type:"catch",innerType:e,catchValue:typeof t=="function"?t:ne.constantCatch(t)})}function JN(e,t){return new aR({type:"pipe",in:e,out:t})}function KH(e){return new jH({type:"readonly",innerType:e})}function zf(e){return new ZH({type:"lazy",getter:e})}function YH(e,t={}){return jv(WH,e,t)}function XH(e,t){return Kv(e,t)}function Ou(e,t){return new VH({type:"pipe",in:oR(e),out:t})}var Me,QN,JU,Ye,QU,eH,tH,nH,rH,oH,Lf,iH,sH,aH,cH,lH,uH,dH,pH,fH,hH,mH,gH,EH,bH,_H,SH,eR,TH,xH,AH,yH,wH,vH,RH,OH,nR,IH,CH,$H,ib,$f,rR,kH,ab,iR,DH,PH,UH,sR,BH,aR,VH,jH,ZH,WH,cR=y(()=>{Li();Li();zN();If();iv();nb();ob();Me=I("ZodType",(e,t)=>(qU(),De.init(e,t),e.def=t,e.type=t.type,e),{check(...e){var n;let t=this.def;return this.clone(ne.mergeDefs(t,{checks:[...(n=t.checks)!=null?n:[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Rr(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(YH(e,t))},superRefine(e,t){return this.check(XH(e,t))},overwrite(e){return this.check(Ci(e))},optional(){return XN(this)},exactOptional(){return zH(this)},nullable(){return qN(this)},nullish(){return XN(qN(this))},nonoptional(e){return FH(this,e)},array(){return C(this)},or(e){return wt([this,e])},and(e){return LH(this,e)},transform(e){return JN(this,oR(e))},default(e){return MH(this,e)},prefault(e){return HH(this,e)},catch(e){return GH(this,e)},pipe(e){return JN(this,e)},readonly(){return KH(this)},describe(e){let t=this.clone();return $s.add(t,{description:e}),t},meta(...e){if(e.length===0)return $s.get(this);let t=this.clone();return $s.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return ne.hide(this,"~standard",{...AE(this),jsonSchema:{input:wu(this,"input"),output:wu(this,"output")}})},set"~standard"(e){ne.own(this,"~standard",e)},parse:function e(t,n){return PN(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await MN(this,t,n,{callee:e})},safeParse(e,t){return UN(this,e,t)},async safeParseAsync(e,t){return HN(this,e,t)},get spa(){return this==null?void 0:this.safeParseAsync},set spa(e){ne.own(this,"spa",e)},validate(e,t){return pE(this,e,t)},validateAsync(e,t){return fE(this,e,t)},encode:function e(t,n){return FN(this,t,n,{callee:e})},decode:function e(t,n){return BN(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await GN(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await VN(this,t,n,{callee:e})},safeEncode(e,t){return jN(this,e,t)},safeDecode(e,t){return KN(this,e,t)},async safeEncodeAsync(e,t){return ZN(this,e,t)},async safeDecodeAsync(e,t){return WN(this,e,t)},toJSONSchema(e){return Qv(this,{})(e)},get description(){var e;return(e=$s.get(this))==null?void 0:e.description},get _def(){return this._zod.def}}),QN=I("_ZodString",(e,t)=>{_f.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lN(e,n,r,o)},ne.derived({format:e=>{var t;return(t=Pn(e).format)!=null?t:null},minLength:e=>{var t;return(t=Pn(e).minimum)!=null?t:null},maxLength:e=>{var t;return(t=Pn(e).maximum)!=null?t:null}},{regex(...e){return this.check(zE(...e))},includes(...e){return this.check(ME(...e))},startsWith(...e){return this.check(UE(...e))},endsWith(...e){return this.check(HE(...e))},min(...e){return this.check(rc(...e))},max(...e){return this.check(Rf(...e))},length(...e){return this.check(Of(...e))},nonempty(...e){return this.check(rc(1,...e))},lowercase(e){return this.check(DE(e))},uppercase(e){return this.check(PE(e))},trim(){return this.check(BE())},normalize(...e){return this.check(FE(...e))},toLowerCase(){return this.check(GE())},toUpperCase(){return this.check(VE())},slugify(){return this.check(jE())}})),JU=I("ZodString",(e,t)=>{_f.init(e,t),QN.init(e,t)},{email(e){return this.check(dv(rH,e))},url(e){return this.check(Ev(iH,e))},jwt(e){return this.check(Lv(SH,e))},emoji(e){return this.check(bv(sH,e))},guid(e){return this.check(pv(oH,e))},uuid(e){return this.check(fv(Lf,e))},uuidv4(e){return this.check(hv(Lf,e))},uuidv6(e){return this.check(mv(Lf,e))},uuidv7(e){return this.check(gv(Lf,e))},nanoid(e){return this.check(_v(aH,e))},cuid(e){return this.check(Sv(cH,e))},cuid2(e){return this.check(Tv(lH,e))},ulid(e){return this.check(xv(uH,e))},base64(e){return this.check(Ov(EH,e))},base64url(e){return this.check(Iv(bH,e))},xid(e){return this.check(Av(dH,e))},ksuid(e){return this.check(yv(pH,e))},ipv4(e){return this.check(wv(fH,e))},ipv6(e){return this.check(vv(hH,e))},cidrv4(e){return this.check(Nv(mH,e))},cidrv6(e){return this.check(Rv(gH,e))},e164(e){return this.check(Cv(_H,e))},datetime(e){return this.check($v(QU,e))},date(e){return this.check(kv(eH,e))},time(e){return this.check(zv(tH,e))},duration(e){return this.check(Dv(nH,e))}});Ye=I("ZodStringFormat",(e,t)=>{Be.init(e,t),QN.init(e,t)}),QU=I("ZodISODateTime",(e,t)=>{pw.init(e,t),Ye.init(e,t)}),eH=I("ZodISODate",(e,t)=>{fw.init(e,t),Ye.init(e,t)}),tH=I("ZodISOTime",(e,t)=>{hw.init(e,t),Ye.init(e,t)}),nH=I("ZodISODuration",(e,t)=>{mw.init(e,t),Ye.init(e,t)}),rH=I("ZodEmail",(e,t)=>{tw.init(e,t),Ye.init(e,t)}),oH=I("ZodGUID",(e,t)=>{Qy.init(e,t),Ye.init(e,t)}),Lf=I("ZodUUID",(e,t)=>{ew.init(e,t),Ye.init(e,t)}),iH=I("ZodURL",(e,t)=>{ow.init(e,t),Ye.init(e,t)}),sH=I("ZodEmoji",(e,t)=>{iw.init(e,t),Ye.init(e,t)}),aH=I("ZodNanoID",(e,t)=>{sw.init(e,t),Ye.init(e,t)}),cH=I("ZodCUID",(e,t)=>{aw.init(e,t),Ye.init(e,t)}),lH=I("ZodCUID2",(e,t)=>{cw.init(e,t),Ye.init(e,t)}),uH=I("ZodULID",(e,t)=>{lw.init(e,t),Ye.init(e,t)}),dH=I("ZodXID",(e,t)=>{uw.init(e,t),Ye.init(e,t)}),pH=I("ZodKSUID",(e,t)=>{dw.init(e,t),Ye.init(e,t)}),fH=I("ZodIPv4",(e,t)=>{gw.init(e,t),Ye.init(e,t)}),hH=I("ZodIPv6",(e,t)=>{bw.init(e,t),Ye.init(e,t)}),mH=I("ZodCIDRv4",(e,t)=>{_w.init(e,t),Ye.init(e,t)}),gH=I("ZodCIDRv6",(e,t)=>{Sw.init(e,t),Ye.init(e,t)}),EH=I("ZodBase64",(e,t)=>{xw.init(e,t),Ye.init(e,t)}),bH=I("ZodBase64URL",(e,t)=>{Aw.init(e,t),Ye.init(e,t)}),_H=I("ZodE164",(e,t)=>{yw.init(e,t),Ye.init(e,t)}),SH=I("ZodJWT",(e,t)=>{ww.init(e,t),Ye.init(e,t)}),eR=I("ZodNumber",(e,t)=>{wE.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uN(e,n,r,o),e.isFinite=!0},ne.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Pn(e);return Math.max(t!=null?t:Number.NEGATIVE_INFINITY,n!=null?n:Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Pn(e);return Math.min(t!=null?t:Number.POSITIVE_INFINITY,n!=null?n:Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Pn(e);return!!t||!!(n!=null&&n.some(Number.isSafeInteger))},format:e=>{var t;return(t=Pn(e).format)!=null?t:null}},{gt(e,t){return this.check(vf(e,t))},gte(e,t){return this.check(Au(e,t))},min(e,t){return this.check(Au(e,t))},lt(e,t){return this.check(wf(e,t))},lte(e,t){return this.check(xu(e,t))},max(e,t){return this.check(xu(e,t))},int(e){return this.check(YN(e))},safe(e){return this.check(YN(e))},positive(e){return this.check(vf(0,e))},nonnegative(e){return this.check(Au(0,e))},negative(e){return this.check(wf(0,e))},nonpositive(e){return this.check(xu(0,e))},multipleOf(e,t){return this.check(Nf(e,t))},step(e,t){return this.check(Nf(e,t))},finite(){return this}}));TH=I("ZodNumberFormat",(e,t)=>{vw.init(e,t),eR.init(e,t)});xH=I("ZodBoolean",(e,t)=>{Nw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>dN(e,n,r,o)});AH=I("ZodUndefined",(e,t)=>{Rw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fN(e,n,r,o)});yH=I("ZodNull",(e,t)=>{Ow.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pN(e,n,r,o)});wH=I("ZodUnknown",(e,t)=>{Iw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mN(e,n,r,o)});vH=I("ZodNever",(e,t)=>{Cw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hN(e,n,r,o)});RH=I("ZodArray",(e,t)=>{Nu(),Lw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>SN(e,n,r,o),e.element=t.element},{min(e,t){return this.check(rc(e,t))},nonempty(e){return this.check(rc(1,e))},max(e,t){return this.check(Rf(e,t))},length(e,t){return this.check(Of(e,t))},unwrap(){return this.element}});OH=I("ZodObject",(e,t)=>{Nu(),zw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>TN(e,n,r,o),ne.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return pe(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ne.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ne.mergeDefs(this._zod.def,{catchall:q()}))},loose(){return this.clone(ne.mergeDefs(this._zod.def,{catchall:q()}))},strict(){return this.clone(ne.mergeDefs(this._zod.def,{catchall:NH()}))},strip(){return this.clone(ne.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return ne.extend(this,e)},safeExtend(e){return ne.safeExtend(this,e)},merge(e){return ne.merge(this,e)},pick(e){return ne.pick(this,e)},omit(e){return ne.omit(this,e)},partial(...e){return ne.partial(ab,this,e[0])},exactPartial(...e){return ne.partial(iR,this,e[0],"exactPartial")},required(...e){return ne.required(sR,this,e[0])}});nR=I("ZodUnion",(e,t)=>{vE.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xN(e,n,r,o),e.options=t.options});IH=I("ZodDiscriminatedUnion",(e,t)=>{nR.init(e,t),Dw.init(e,t)});CH=I("ZodIntersection",(e,t)=>{Pw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>AN(e,n,r,o)});$H=I("ZodTuple",(e,t)=>{Nu(),Mw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yN(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){var t;let e=this._zod.def;if((t=e.checks)!=null&&t.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(n=>new ab({type:"optional",innerType:n}))})}});ib=I("ZodRecord",(e,t)=>{Nu(),Uw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wN(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});$f=I("ZodEnum",(e,t)=>{Hw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(r,o,i)=>gN(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new $f({...t,checks:[],...ne.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new $f({...t,checks:[],...ne.normalizeParams(o),entries:i})}});rR=I("ZodLiteral",(e,t)=>{Fw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>EN(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});kH=I("ZodTransform",(e,t)=>{Nu(),Bw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_N(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new nc(e.constructor.name);n.addIssue=i=>{var s,a;if(typeof i=="string")n.issues.push(ne.issue(i,n.value,t));else{let l=i;l.fatal&&(l.continue=!1),(s=l.code)!=null||(l.code="custom"),"input"in l||(l.input=n.value),(a=l.inst)!=null||(l.inst=e),n.issues.push(ne.issue(l))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});ab=I("ZodOptional",(e,t)=>{NE.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>eb(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});iR=I("ZodExactOptional",(e,t)=>{Gw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>eb(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});DH=I("ZodNullable",(e,t)=>{Vw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});PH=I("ZodDefault",(e,t)=>{jw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ON(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});UH=I("ZodPrefault",(e,t)=>{Kw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>IN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});sR=I("ZodNonOptional",(e,t)=>{Zw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>NN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});BH=I("ZodCatch",(e,t)=>{Ww.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>CN(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});aR=I("ZodPipe",(e,t)=>{RE.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>LN(e,n,r,o),e.in=t.in,e.out=t.out});VH=I("ZodPreprocess",(e,t)=>{aR.init(e,t),Yw.init(e,t)}),jH=I("ZodReadonly",(e,t)=>{Xw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$N(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});ZH=I("ZodLazy",(e,t)=>{qw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kN(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});WH=I("ZodCustom",(e,t)=>{Jw.init(e,t),Me.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bN(e,n,r,o)})});var Go,lR,uR=y(()=>{Go={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"};lR||(lR={})});var dR=y(()=>{cR();nb();rb();ob();uR()});var ae=y(()=>{dR()});var sc,cb=y(()=>{"use strict";sc={ACT:"reticle_act",ACT_SEQUENCE:"reticle_act_sequence",ACT_AND_WAIT:"reticle_act_and_wait",INVOKE:"reticle_invoke"}});var Df,lb,ub,z,S7,qH,T7,Vo=y(()=>{"use strict";Df={SIGNAL:"signal",NET:"net",STATE:"state"},lb={ELEMENT:"element",TEXT:"text"},ub={NETWORK:"network",APP:"app"},z={ELEMENT:lb.ELEMENT,TEXT:lb.TEXT,SIGNAL:Df.SIGNAL,NET:Df.NET,STATE:Df.STATE,ROUTE:"route",CONSOLE:"console",ANIMATION:"animation",SETTLED:"settled",COMPARE:"compare",ALL_OF:"allOf",ANY_OF:"anyOf",NOT:"not"},S7=new Set(Object.values(Df)),qH=new Set(Object.values(lb)),T7=new Set([...qH,z.ROUTE])});var pR,fR,hR,db,JH,mR,nr,gR,je,on,Pf,Iu=y(()=>{"use strict";pR=1,fR={FLOW_REPLAY:"flow_replay",MANUAL:"manual"},hR={PASS:"pass",DRIFT:"drift",ERROR:"error",FAIL:"fail"},db=2,JH=3,mR=new Set([1,db,JH]),nr={TESTID:"testid",ROLE:"role",SIGNAL:"signal",COMPONENT:"component"},gR="unresolved",je={ASSERT_SIGNAL:"assert-signal",ASSERT_VISIBLE:"assert-visible",ASSERT_STATE:"assert-state",ASSERT_NET:"assert-net",MARK_DYNAMIC:"mark-dynamic",SUCCESS_STATE:"success-state",INTENT:"intent"},on={IDLE:"idle",RECORDING:"recording",ANNOTATING:"annotating"},Pf={ACTIVE:"active",QUARANTINED:"quarantined",DRAFT:"draft"}});var ER,pb=y(()=>{"use strict";ER={READ:"read",IDEMPOTENT:"idempotent",COMMITS:"commits"}});var bR=y(()=>{"use strict"});var w,Cu,ks,_R=y(()=>{"use strict";w={DOM_ADDED:"dom.added",DOM_REMOVED:"dom.removed",DOM_ATTR:"dom.attr",DOM_TEXT:"dom.text",NET_REQUEST:"net.request",NET_PENDING:"net.pending",NET_STREAM:"net.stream",PERF:"perf",ROUTE_CHANGE:"route.change",CONSOLE_LOG:"console.log",CONSOLE_WARN:"console.warn",CONSOLE_ERROR:"console.error",CONSOLE_INFO:"console.info",CONSOLE_DEBUG:"console.debug",ERROR_UNCAUGHT:"error.uncaught",VISIBLE_SHOWN:"visible.shown",ANIM_START:"anim.start",ANIM_END:"anim.end",SCROLL_POSITION:"scroll.position",REVEAL_SHOWN:"reveal.shown",SIGNAL:"signal",STATE_CHANGE:"state.change",STORAGE_CHANGE:"storage.change",PAGE_HEALTH:"page.health",CONTEXT_OPENED:"context.opened",DIALOG_OPENED:"dialog.opened",RENDER_COMMIT:"render.commit",FOCUS_CHANGE:"focus.change",FIELD_CHANGE:"field.change",FLOW_RECORDED:"flow.recorded",TRANSPORT_OVERFLOW:"transport.overflow",TRUNCATED:"truncated",BLIND_SPOT:"blind-spot",SDK_FAILED:"sdk.failed",NET_DETAIL:"net.detail",NET_RESPONSE_BODY:"net.response-body",HUMAN_CONTROL:"human.control",HUMAN_MARK:"human.mark",DOWNLOAD:"download",HUD_USED:"hud.used",MEDIA_STATE:"media.state",CANVAS_DIGEST:"canvas.digest"},Cu={PLAY:"play",PLAYING:"playing",PAUSE:"pause",SEEKED:"seeked",ENDED:"ended",LOADED_DATA:"loadeddata",CAN_PLAY:"canplay",WAITING:"waiting",ERROR:"error"},ks={POLL:"poll",ACT:"act"}});function TR(e=fb,t=QH){return`ws://${t}:${String(e)}${zs}`}var fb,zs,Mf,SR,QH,rr,Uf,N7,Z,ve,Hf,xR,AR,yR,ac,R7,wR,I7,Lu,Ff,Bf,vR,cc,$u,eF,C7,D,NR,RR,Se,at,H,ct,lc,sn,Kt=y(()=>{"use strict";bR();_R();fb=4400,zs="/reticle",Mf=1,SR=1,QH="localhost";rr={SESSION:"__reticle_session",PROJECT:"__reticle_project",OPENED:"__reticle_opened",HUD:"__reticle_hud"},Uf="https://app.reticle.sh",N7={MAX_RUNS:50,MAX_BYTES:4*1024*1024},Z={MAX_MESSAGE_BYTES:1024*1024,MAX_MESSAGES_PER_SECOND:2e4,MAX_SESSIONS:32,MAX_PENDING_CONNECTIONS:16,HELLO_TIMEOUT_MS:5e3,MAX_BUFFER_BYTES:8*1024*1024,MAX_SESSION_ID_LENGTH:128,MAX_URL_LENGTH:4096,MAX_TITLE_LENGTH:512,MAX_ADAPTERS:32,MAX_CONTRACT_NAMES:128,MAX_ADAPTER_NAME_LENGTH:128,MAX_TOKEN_LENGTH:512,MAX_COMMAND_ID_LENGTH:128,MAX_COMMAND_NAME_LENGTH:128,MAX_REF_LENGTH:128,MAX_ERROR_LENGTH:4096,MAX_STACK_LENGTH:4e3,MAX_SERIALIZE_DEPTH:8,MAX_COLLECTION_ITEMS:200,MAX_OBJECT_KEYS:200,MAX_STRING_LENGTH:64*1024,MAX_MARK_NOTE_LENGTH:2e3,MAX_MARK_LABEL_LENGTH:256},ve="[REDACTED]",Hf="confirmDangerous",xR="native",AR="reveal",yR="inViewport",ac={NO_PROVIDER:"no-visual-provider",CAPTURE_FAILED:"capture-failed",BASELINE_MISSING:"baseline-missing",DIMENSION_MISMATCH:"dimension-mismatch",FULL_PAGE_UNSUPPORTED:"full-page-unsupported",CROP_UNSUPPORTED:"crop-unsupported",NOT_COMPOSITED:"window-not-composited"},R7=1440*60*1e3,wR=1,I7={MAX_EVENTS:2e3,MAX_AGE_MS:6e4,MAX_BYTES:Z.MAX_BUFFER_BYTES},Lu="reticle:busy",Ff="__reticle_renders",Bf={DOM:"dom",JOURNAL:"journal"},vR={WINDOW:"window"},cc={LCP:"lcp",CLS:"cls",LONGTASK:"longtask"},$u={HOVER_NATIVE_ENTER_LEAVE:"target has enter/leave handlers; synthetic hover may not trigger them \u2014 expect no state change",REAL_INPUT_FELL_BACK:"real-input provider was available but failed; fell back to synthetic dispatch",CLICK_OCCLUDED:"target is visually occluded by another element; a real user could not click it (synthetic dispatch still delivered the event) \u2014 dismiss the overlay or scroll the target clear",GLOBAL_PRESS:"press landed on the focused element or document \u2014 no named target was given, so this effect does not claim one",CLICK_NOT_A_CONTROL:"target is not a control and sits inside none (no button/link/input role, onclick, tabindex or pointer cursor), so a click on it may do nothing \u2014 if nothing happened, target the control inside it by role"},eF="console.",C7=[w.CONSOLE_LOG,w.CONSOLE_WARN,w.CONSOLE_ERROR,w.CONSOLE_INFO].map(e=>e.slice(eF.length)),D={CLICK:"click",DBLCLICK:"dblclick",HOVER:"hover",FOCUS:"focus",BLUR:"blur",FILL:"fill",TYPE:"type",CLEAR:"clear",SELECT:"select",CHECK:"check",UNCHECK:"uncheck",SUBMIT:"submit",PRESS:"press",UPLOAD:"upload",SCROLL_INTO_VIEW:"scrollIntoView",SCROLL:"scroll",DRAG:"drag",TAP:"tap",ZOOM:"zoom"},NR={TIMEOUT:"timeout",THROTTLED:"throttled"},RR={UNAVAILABLE:"component-state-unavailable"},Se={VISIBLE:"visible",HIDDEN:"hidden",ENABLED:"enabled",DISABLED:"disabled",CHECKED:"checked",EXPANDED:"expanded",PRESSED:"pressed",FOCUSED:"focused",PRESENT:"present",IN_VIEWPORT:"inViewport"},at={ROLE:"role",TEXT:"text",LABEL:"label",PLACEHOLDER:"placeholder",TESTID:"testid",ALT:"alt",COMPONENT:"component"},H={SNAPSHOT:"snapshot",QUERY:"query",MATCH:"match",INSPECT:"inspect",ACT:"act",ACT_SEQUENCE:"act_sequence",ANIMATIONS:"animations",NARRATE:"narrate",CLOCK:"clock",CAPABILITIES:"capabilities",STATE_READ:"state_read",STORAGE_READ:"storage_read",SCROLL:"scroll",SESSION_CONFIG:"session_config",PRESENTER:"presenter",IMPACT:"impact",CAPTURE:"capture",RENDER:"render",NAVIGATE:"navigate",REFRESH:"refresh",FLOWS:"flows",FLOW_PROGRESS:"flow.progress",PLAN:"plan",MARKERS:"markers"},ct={IDLE:"idle",READING:"reading",ACTING:"acting"},lc={FULL:"full",INTERACTIVE:"interactive",STATUS:"status"},sn={HELLO:"hello",COMMAND:"command",COMMAND_RESULT:"command_result",EVENT:"event"}});var or,tF,ir,k7,Ds=y(()=>{"use strict";ae();or={WEB:"web",DESKTOP:"desktop",MOBILE:"mobile",SERVICE:"service",GAME:"game",DEVICE:"device"},tF=wt([R(or),p().regex(/^x-[a-z0-9-]+$/,"a surface this specification does not name must start with x-")]),ir=b({surface:tF,instance:p().min(1),epoch:S().int().nonnegative().optional(),locator:p().optional(),revision:p().optional()}),k7=b({kind:pe(["instance","epoch"]),from:p(),to:p()})});var $,Un,Tn,an,hb,mb,Lr=y(()=>{"use strict";ae();$={UI:"ui",NET:"net",STATE:"state",SIGNAL:"signal",LOG:"log",ROUTE:"route",STORAGE:"storage",TIME:"time",VISUAL:"visual"},Un=wt([R($),p().regex(/^x-[a-z0-9-]+$/,"a channel this specification does not name must start with x-")]),Tn={INDEPENDENT:"independent",ACTUATION_DERIVED:"actuation-derived"},an={CONSEQUENCE:"consequence",PRESENCE:"presence",CONTEXT:"context"},hb=b({id:Un,independence:R(Tn),grade:R(an),note:p().optional()}),mb={[$.UI]:{independence:Tn.ACTUATION_DERIVED,grade:an.PRESENCE},[$.NET]:{independence:Tn.INDEPENDENT,grade:an.CONSEQUENCE},[$.STATE]:{independence:Tn.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.SIGNAL]:{independence:Tn.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.LOG]:{independence:Tn.INDEPENDENT,grade:an.CONTEXT},[$.ROUTE]:{independence:Tn.ACTUATION_DERIVED,grade:an.PRESENCE},[$.STORAGE]:{independence:Tn.ACTUATION_DERIVED,grade:an.CONSEQUENCE},[$.TIME]:{independence:Tn.INDEPENDENT,grade:an.CONTEXT},[$.VISUAL]:{independence:Tn.ACTUATION_DERIVED,grade:an.PRESENCE}}});var OR=y(()=>{"use strict"});var U7,IR=y(()=>{"use strict";ae();Ds();U7=b({id:p().min(1),subject:ir,capturedAt:S().int(),payload:q().optional()})});var F7,CR=y(()=>{"use strict";ae();F7=b({mutation:p().min(1)})});var nF,gb,rF,oF,LR,$R,Eb,kR,zR,ku=y(()=>{"use strict";ae();Lr();nF={USER:"user",DEVELOPER:"developer",AGENT:"agent",SYSTEM:"system",WORKFLOW:"workflow",DERIVED:"derived"},gb={DECLARED:"declared",BOUND:"bound",ABANDONED:"abandoned"},rF=b({id:p().min(1),statement:p().min(1),origin:R(nF),claims:C(p()).default([]),declaredAt:S().int().optional()}),oF=vt("status",[b({status:U(gb.ABANDONED),abandonedBecause:p().trim().min(1)}),b({status:U(gb.DECLARED),abandonedBecause:Ru().optional()}),b({status:U(gb.BOUND),abandonedBecause:Ru().optional()})]),LR=rF.and(oF),$R={BEFORE_ACTION:"before-action",AFTER_ACTION:"after-action"},Eb=b({id:p().min(1),predicate:q().optional(),reads:p().min(1),channels:C(Un).min(1)}),kR=b({id:p().min(1),intent:p().optional(),statement:p().min(1),declaredAt:R($R),assertions:C(Eb).default([])}),zR=b({id:p().min(1),statement:p().min(1),predicate:q().optional(),channels:C(Un).min(1),severity:pe(["blocking","advisory"]).default("blocking")})});var iF,uc,Z7,bb,DR,PR,sF,MR,$i=y(()=>{"use strict";ae();Lr();Ds();iF=b({id:p().min(1),window:p().min(1),channel:Un,at:S().int(),value:q().optional(),summary:p().min(1)}),uc={AUTHORITATIVE:"authoritative",DERIVED:"derived",OBSERVED:"observed",LEARNED:"learned"},Z7={[uc.LEARNED]:0,[uc.OBSERVED]:1,[uc.DERIVED]:2,[uc.AUTHORITATIVE]:3},bb=b({class:R(uc),source:p().min(1),method:p().min(1),subject:ir,at:S().int(),confidence:S().min(0).max(1).optional()}),DR=b({observation:iF,provenance:bb,independence:R(Tn),grade:R(an)}),PR={CHANNEL_UNOBSERVED:"channel-unobserved",BOUNDARY_UNCROSSABLE:"boundary-uncrossable",BUFFER_TRUNCATED:"buffer-truncated",REDACTED:"redacted",STILL_IN_FLIGHT:"still-in-flight",EFFECT_ELSEWHERE:"effect-elsewhere"},sF=b({kind:R(PR),channel:Un.optional(),detail:p().min(1),impeaching:L(),remedy:p().optional()}),MR=b({window:p().min(1),observed:C(Un),blindSpots:C(sF)})});var cF,lF,Gf,uF,Vf,_b,q7,UR=y(()=>{"use strict";ae();Lr();$i();cF=b({channel:Un}),lF=wt([b({summary:p().min(1),valueContains:p().min(1)}),b({summary:p().min(1).optional(),valueContains:Ru().optional()})]),Gf=cF.and(lF),uF={EXACTLY:"exactly",AT_LEAST:"at-least",AT_MOST:"at-most"},Vf={COUNT:"count",PRESENT:"present",ABSENT:"absent",MEASURE:"measure"},_b={EQUALS:"equals",AT_LEAST:"at-least",AT_MOST:"at-most"},q7=vt("kind",[b({kind:U(Vf.COUNT),match:Gf,op:R(uF),value:S().int().nonnegative()}),b({kind:U(Vf.PRESENT),match:Gf}),b({kind:U(Vf.ABSENT),match:Gf}),b({kind:U(Vf.MEASURE),match:Gf,op:R(_b),value:S().finite(),tolerance:S().nonnegative().finite().default(0)})])});var eq,Sb,tq,jf,HR,zu,FR,nq,Ps=y(()=>{"use strict";ae();Ds();eq=b({name:p().min(1),meaning:p().min(1),parameters:q().optional(),mutating:L()}),Sb={UNDECLARED:"undeclared",UNSUPPORTED:"unsupported",UNRESOLVED:"unresolved",UNAVAILABLE:"unavailable",GUARDED:"guarded",MALFORMED:"malformed"},tq=b({ref:p().min(1),describes:p().min(1),at:p().optional()}),jf=b({id:p().min(1),actor:p().min(1),capability:p().min(1),target:p().optional(),parameters:q().optional(),at:S().int()}),HR=b({action:p().min(1),dispatched:L(),refused:b({reason:R(Sb),detail:p().min(1)}).optional(),subject:ir,at:S().int()}),zu={QUIESCENCE:"quiescence",TICKS:"ticks",ACK:"ack",SIGNAL:"signal",SETTLED_PHYSICAL:"settled-physical",EXIT:"exit",TERMINATED:"terminated",BUDGET_EXHAUSTED:"budget-exhausted"},FR=b({id:p().min(1),openedAt:S().int(),closedAt:S().int().optional(),budgetMs:S().int().positive(),closes:R(zu),closedBy:R(zu).optional(),subject:ir}),nq=new Set([zu.BUDGET_EXHAUSTED,zu.TERMINATED])});var Kf,dF,BR,pF,Tb,xb,GR,dc=y(()=>{"use strict";ae();Lr();Kf={YES:"yes",NO:"no",UNKNOWN:"unknown",NO_FAULT:"no-fault"},dF=p().min(1),BR={ADVANCED_OVER_FAILURE:"advanced-over-failure",CLAIMED_OVER_FAILURE:"claimed-over-failure",EFFECT_DISCARDED:"effect-discarded",CLAIM_UNCORROBORATED:"claim-uncorroborated",FAILURE_INSIDE_SUCCESS:"failure-inside-success",VALUE_NOT_APPLIED:"value-not-applied",DUPLICATED_EFFECT:"duplicated-effect",STALE_APPLIED:"stale-applied",NO_EFFECT:"no-effect",FAULT_MISATTRIBUTED:"fault-misattributed",EVIDENCE_SUPERSEDED:"evidence-superseded",EVIDENCE_PREDATES_EDIT:"evidence-predates-edit"},pF=wt([R(BR),p().regex(/^x-[a-z0-9-]+$/,"an anomaly this specification does not name must start with x-")]),Tb={OBSERVED:"observed",ABSENCE_DERIVED:"absence-derived",ADVISORY:"advisory"},xb=b({kind:pF,tier:R(Tb),claim:p().min(1),counter:p().min(1),between:kf([Un,Un]),evidence:C(p()).default([])}),GR=b({id:p().min(1),claim:p().min(1),window:p().min(1),verdict:R(Kf),grade:R(an).optional(),reasons:C(dF).default([]),evidence:C(p()).default([]),anomalies:C(xb).default([]),supersedes:p().optional(),at:S().int()})});var fF,hF,mF,uq,VR,gF,dq,Ab=y(()=>{"use strict";ae();Ps();ku();$i();dc();fF=p().min(1).regex(/^(?!.*(?:^|\/)\.{1,2}(?:\/|$))[^/]+(?:\/[^/]+)*$/,{message:"a flow name is `/`-separated segments: no empty segment, no leading or trailing slash, no `.` or `..`"}),hF=b({id:p().min(1),invoke:fF,with:q().optional(),at:S().int()}),mF=wt([jf,hF]),uq=b({name:p().min(1),version:S().int().positive(),startState:q().optional(),requires:q().optional(),ensures:q().optional(),claim:p().min(1),steps:C(mF),expects:C(Eb).default([]),mayRebind:L().default(!1)}),VR=b({verdict:p().min(1),expected:p().min(1),actual:p().min(1),evidence:C(p()).min(1),location:b({file:p(),line:S().int().optional(),symbol:p().optional()}).optional(),instruction:p().min(1)}),gF={INVARIANT:"invariant",FAILURE_MODE:"failure-mode",GAP:"gap",REPAIR_OUTCOME:"repair-outcome"},dq=b({id:p().min(1),kind:R(gF),statement:p().min(1),provenance:bb,observations:S().int().nonnegative().default(0),promotedBy:p().optional(),promotedAt:S().int().optional()})});var EF,bF,Sq,jR=y(()=>{"use strict";ae();Lr();ku();Ps();$i();dc();Ab();Ds();EF="1.0",bF=b({constraint:p().min(1),at:S().int(),detail:p().min(1),evidence:C(p()).default([])}),Sq=b({ovp:U(EF),id:p().min(1),verifier:b({name:p().min(1),version:p().min(1),profile:p().optional()}),subject:ir,channels:C(hb),witnesses:C(b({name:p().min(1),subject:ir,channels:C(hb)})).default([]),intents:C(LR).default([]),claims:C(kR).default([]),constraints:C(zR).default([]),actions:C(jf).default([]),receipts:C(HR).default([]),windows:C(FR).default([]),evidence:C(DR).default([]),coverage:C(MR).default([]),anomalies:C(xb).default([]),verdicts:C(GR).default([]),violations:C(bF).default([]),repairs:C(VR).default([]),startedAt:S().int(),endedAt:S().int()})});var yb=y(()=>{"use strict";dc()});var wb=y(()=>{"use strict";ku();Lr();$i();Ps();dc()});var vb=y(()=>{"use strict";Ps();Lr();yb();$i();wb()});var Nb=y(()=>{"use strict"});var KR=y(()=>{"use strict";Nb()});var Ms,Vq,jq,Kq,ZR=y(()=>{"use strict";ae();Lr();Ms={EFFECT:"effect",IN_REALM:"in-realm",SURFACE:"surface"},Vq=[Ms.EFFECT,Ms.IN_REALM,Ms.SURFACE],jq={[Ms.EFFECT]:[$.NET,$.LOG],[Ms.IN_REALM]:[$.NET,$.LOG,$.STATE,$.SIGNAL],[Ms.SURFACE]:[$.NET,$.LOG,$.STATE,$.SIGNAL,$.UI]},Kq=b({name:p().min(1),version:p().min(1),platform:p().min(1),claims:R(Ms),homepage:p().optional()})});var WR=y(()=>{"use strict";vb();Lr();Ps();$i();Ds()});var pc=y(()=>{"use strict";Ds();Lr();OR();IR();CR();ku();UR();Ps();$i();dc();Ab();jR();vb();yb();Nb();KR();wb();ZR();WR()});var Hn,lt,YR,cn,jo=y(()=>{"use strict";Hn={YES:"yes",NO:"no",UNKNOWN:"unknown",NO_FAULT:"no-fault"},lt={VERSION_SKEW:"version_skew",CAPABILITY_ABSENT:"capability-absent",INCONCLUSIVE:"inconclusive",OBSERVATION_LOST:"observation_lost",WINDOW_CLOSED_EARLY:"window_closed_early",ASSERTION_FAILED:"assertion_failed",CONTRADICTED:"contradicted",ALREADY_TRUE:"already_true",HIDDEN_MATCH:"hidden_match",UNCLEAN_CAPTURE:"unclean_capture",VACUOUS_GRADE:"vacuous_grade",NOTHING_DECLARED:"nothing_declared",OUTCOME_PENDING:"outcome_pending",OUTCOME_UNREAD:"outcome_unread",UNSETTLED:"unsettled",EVIDENCE_INCOMPLETE:"evidence_incomplete",PROVED:"proved",ABSENCE_BLIND_SPOT:"absence_blind_spot"},YR={BUFFER_LOSS:"buffer_loss",TRANSPORT_GAP:"transport_gap",BLIND_SPOT:"blind_spot",JOURNAL_LOSS:"journal_loss",OTHER:"other"},cn={CLOSED_SHADOW_ROOT:"closed-shadow-root",RATE_LIMITED:"rate-limited",CROSS_ORIGIN_IFRAME:"cross-origin-iframe",UNINSTRUMENTED_FRAME:"uninstrumented-frame",VIRTUALIZED_UNMOUNTED:"virtualized-unmounted",WRAPPED_NETWORK:"wrapped-network",UNOBSERVED_IPC:"unobserved-ipc",VERDICTLESS_SEND:"verdictless-send",UNWATCHED_STATE:"unwatched-state"}});var TF,xF,XR,Rb=y(()=>{"use strict";ae();jo();TF={FINDABLE:"findable",DISCOVERABILITY:"discoverability",AGENT_ASSUMPTION:"agent_assumption",DEFECT:"defect"},xF=20,XR=b({goal:p().min(1).max(500),kind:R(TF),agent:b({verified:R(Hn),claim:p().max(2e3)}),harness:b({verified:R(Hn),found:L(),searched:C(p().max(500)).max(xF),gaveUpAt:p().max(500).optional()})})});var AF,yF,wF,vF,NF,RF,qR,OF,Zf,IF,CF,LF,$F,kF,zF,DF,PF,MF,UF,OJ,HF,Ob,Ib,FF,BF,GF,VF,jF,KF,ZF,WF,YF,XF,IJ,Cb=y(()=>{"use strict";ae();pc();Vo();jo();Rb();AF=3,yF=1,wF=2,vF={pass:Hn.YES,fail:Hn.NO},NF={network:z.NET,layout:z.ELEMENT},RF=p().brand(),qR={PASS:"pass",FAIL:"fail",PARTIAL:"partial",UNKNOWN:"unknown"},OF={PASS:"pass",FAIL:"fail",SKIPPED:"skipped",HEALED:"healed"},Zf={AUTH:"auth",PAYMENT:"payment",DB:"db",MIGRATION:"migration",RLS:"rls",SECRETS:"secrets",DESTRUCTIVE:"destructive",EXTERNAL:"external"},IF={LOW:"low",MEDIUM:"medium",HIGH:"high",CRITICAL:"critical"},CF={EDIT:"edit",CI:"ci",MANUAL:"manual",OEM:"oem"},LF={ADDED:"added",MODIFIED:"modified",DELETED:"deleted"},$F={CODING_AGENT:"coding-agent",OEM_PIPELINE:"oem-pipeline",HUMAN:"human"},kF={REACT:"react",NEXT:"next",VITE:"vite",OTHER:"other"},zF={PREVIEW:"preview",CI:"ci",LOCAL:"local"},DF={HIGH:"high",MEDIUM:"medium",LOW:"low"},PF={DEV:"dev",PROD_PREVIEW:"prod-preview"},MF=b({file:p(),line:S().optional(),component:p().optional()}),UF=b({path:p(),changeKind:R(LF),risk:C(R(Zf)).default([])}),OJ=64*1024,HF={BROWSER:"browser",RENDERED:"rendered"},Ob={RUNS_DIR:"runs",MANIFEST_FILE:"shots.jsonl",JPEG_QUALITY:.7,MAX_SIDE_PX:1600,MAX_PER_RUN:300,MAX_BYTES:1.5*1024*1024,FRAME_TOOL:"frame"},Ib=b({file:p(),source:R(HF),width:S(),height:S(),sha256:p()}),FF=Ib.extend({seq:S(),tool:p(),step:p().optional(),verdict:L().optional(),checkId:p().optional(),actionId:p().optional()}),BF=b({step:S(),anchor:p(),ok:L(),page:p().optional(),endPage:p().optional(),consequence:p().optional(),error:p().optional(),drift:p().optional(),screenshot:Ib.optional()}),GF=b({startPath:p().optional(),steps:C(q())}),VF=b({name:p(),template:p().optional(),status:R(OF),steps:S(),durationMs:S(),oracle:p().optional(),healed:b({from:p(),to:p(),consequenceVerified:L()}).optional(),evidenceRef:p().optional(),failureReason:p().optional(),stepResults:C(BF).optional(),recording:GF.optional(),recordingOmitted:L().optional()}),jF=b({kind:Ou(e=>{var t;return typeof e=="string"&&(t=NF[e])!=null?t:e},R(z).optional()),predicate:p(),status:Ou(e=>{var t;return typeof e=="string"&&(t=vF[e])!=null?t:e},R(Hn)),evidence:q().optional(),declaredBeforeActing:L().optional(),expected:p().optional(),observed:p().optional(),grade:p().optional(),couldNotSee:C(p()).optional(),reason:p().optional(),checkId:p().optional(),actionId:p().optional(),intent:p().optional(),intentDerived:L().optional(),failedPart:S().int().min(0).optional(),screenshot:Ib.optional(),supersedes:p().optional()}),KF=b({surface:R(Zf),severity:R(IF),detail:p(),evidence:b({file:p().optional(),line:S().optional(),network:p().optional()}).optional(),gated:L().default(!1)}),ZF=b({consoleErrors:C(b({level:p(),message:p(),at:S()})).default([]),networkAnomalies:C(b({method:p(),url:p(),status:S().optional(),issue:p()})).default([]),stateAssertions:C(b({store:p(),path:p(),expected:q().optional(),actual:q().optional(),ok:L()})).default([]),timeline:C(b({at:S(),kind:p(),summary:p()})).default([])}),WF=b({flow:p().optional(),step:S().optional(),expected:p(),actual:p(),sourceLocation:MF.optional(),suggestedPrompt:p()}),YF=b({status:R(qR),reasons:C(p()).default([]),confidence:R(DF),blockingRisks:S().default(0),checkId:p().optional(),supersedes:p().optional()}),XF=b({alg:p(),value:p(),signedAt:S()}),IJ=b({schemaVersion:wt([U(AF),U(wF),U(yF)]),runId:RF,createdAt:S(),durationMs:S(),profile:R(PF),project:b({name:p(),framework:R(kF),commit:p().optional(),branch:p().optional(),env:R(zF).optional(),previewUrl:p().optional()}),agent:b({id:p(),kind:R($F),model:p().optional()}),episodeId:p().optional(),agentSession:p().optional(),trigger:b({kind:R(CF),diffRef:p().optional(),note:p().optional()}),editEpoch:S().optional(),subject:ir.optional(),context:ie(p(),q()).optional(),changedFiles:C(UF).default([]),flows:C(VF).default([]),checks:C(jF).default([]),risks:C(KF).default([]),evidence:ZF,repair:b({failurePackets:C(WF).default([])}).optional(),screenshots:C(FF).optional(),verdict:YF,signature:XF.optional(),disparity:C(XR).optional(),agentClaim:R(qR).optional()})});var qF,Du,JF,QF,eB,tB,DJ,nB,rB,oB,PJ,MJ,Lb=y(()=>{"use strict";ae();Kt();Iu();Cb();qF=C(p().refine(e=>!e.includes("="),{error:e=>`\`attrs\` takes attribute NAMES only, not \`name=value\` \u2014 got ${JSON.stringify(e.input)}. It PROJECTS each attribute onto the match, it does not filter on it. Drop the \`=value\` half and read the returned \`attrs\` map, or assert the value with an \`element\` predicate carrying \`value\`.`})),Du=b({by:R(at).optional(),value:p().optional(),role:p().optional(),name:p().optional(),text:p().optional(),label:p().optional(),placeholder:p().optional(),testid:p().optional(),alt:p().optional(),component:p().optional(),attrs:qF.optional(),source:b({file:p(),line:S(),column:S().optional()}).strict().optional(),scope:p().optional(),self:L().optional(),matchCase:L().optional()}).strict(),JF=b({name:p(),steps:C(p())}),QF=b({surface:R(Zf),paths:C(p()).optional(),note:p().optional()}),eB=b({owner:p().optional(),safety:C(p()).optional(),scope:C(p()).optional(),redact:C(p()).optional(),risk:C(QF).optional()}),tB=b({testids:C(p()),signals:C(p()),stores:C(p()),flows:C(JF),governance:eB.optional()}),DJ=b({version:U(wR),generatedAt:S(),capabilities:tB}),nB=b({consoleErrors:S().optional(),networkErrors:S().optional(),driftSteps:S().optional()}),rB=b({kind:R(fR),name:p(),status:R(hR),at:S(),summary:p().optional(),evidence:nB.optional(),durationMs:S().optional()}),oB=b({flows:C(p()).optional(),routes:C(p()).optional(),bestObservability:b({percent:S(),at:S()}).optional()}),PJ=b({version:U(pR),learned:oB.optional(),runs:C(rB)}),MJ=vt("kind",[b({kind:U(je.ASSERT_SIGNAL),name:p().min(1),dataMatches:ie(p(),q()).optional()}),b({kind:U(je.ASSERT_VISIBLE),testid:p().min(1)}),b({kind:U(je.ASSERT_STATE),statePath:p().min(1),store:p().min(1).optional(),equals:q().optional()}),b({kind:U(je.ASSERT_NET),net:b({method:p().min(1).optional(),urlContains:p().min(1).optional(),status:S().optional(),count:S().int().nonnegative().optional()})}),b({kind:U(je.MARK_DYNAMIC),testid:p().min(1)}),b({kind:U(je.SUCCESS_STATE),signal:p().min(1).optional(),testid:p().min(1).optional(),statePath:p().min(1).optional(),store:p().min(1).optional(),equals:q().optional(),hold:L().optional(),net:b({method:p().min(1).optional(),urlContains:p().min(1).optional(),status:S().optional(),count:S().int().nonnegative().optional()}).optional(),console:b({level:p().min(1).optional(),absent:L().optional()}).optional(),text:b({contains:p().min(1),scope:p().min(1).optional(),absent:L().optional(),visible:L().optional()}).optional()}),b({kind:U(je.INTENT),text:p().min(1)})])});function QR(e,t){let n=JR(e),r=JR(t);return[...new Set([...Object.keys(n),...Object.keys(r)])].every(i=>n[i]===r[i])}function JR(e){var t,n;return z.NET===e.from?{...e,body:(t=e.body)!=null?t:kb.RESPONSE,method:(n=e.method)==null?void 0:n.toUpperCase()}:{...e}}var kb,Wf,$b,zb,Db=y(()=>{"use strict";ae();Vo();kb={RESPONSE:"response",REQUEST:"request"},Wf={VALUE:"value",NUMBER:"number"},$b=p().min(1),zb=vt("from",[b({from:U(z.NET),urlContains:p().min(1),method:p().optional(),body:pe([kb.RESPONSE,kb.REQUEST]).optional(),path:$b}).strict(),b({from:U(z.SIGNAL),name:p().min(1),path:$b}).strict(),b({from:U(z.STATE),store:p().optional(),path:$b}).strict(),b({from:U(z.TEXT),scope:p().min(1)}).strict()])});var eO,Pb,Mb=y(()=>{"use strict";ae();pc();eO=b({op:R(_b),value:S().finite(),tolerance:S().finite().nonnegative().optional()}).strict(),Pb=vt("property",[b({property:U("nonEmpty")}).strict(),b({property:U("oneOf"),values:C(q()).min(1)}).strict(),b({property:U("withinTolerance"),of:S().finite(),tolerance:S().finite().nonnegative()}).strict(),b({property:U("matchesPattern"),pattern:p().min(1)}).strict(),b({property:U("type"),is:pe(["string","number","boolean","array","object"])}).strict(),b({property:U("changed")}).strict(),b({property:U("unchanged")}).strict(),b({property:U("increased"),by:eO.optional()}).strict(),b({property:U("decreased"),by:eO.optional()}).strict()])});function rO(e){if(e.kind!==void 0||typeof e[Ub]!="string")return e;let t={...e,kind:e[Ub]};return delete t[Ub],t}function oO(){var t;if(Hb!==void 0)return Hb;let e=new Map;for(let n of sO().options){let r=n.shape,o=String(r.kind.value),i=z.ELEMENT===o?nO:[];e.set(o,new Set([...Object.keys(r).filter(s=>s!=="kind"),...Object.keys((t=tO[o])!=null?t:{}),...i]))}return Hb=e,e}function sB(e){let t=iO(e);if(t.length===0)return;let n=oO(),r=a=>{let l=n.get(a);return l!==void 0&&t.every(u=>l.has(u))},o=t.flatMap(a=>{let l=iB[a];return l===void 0?[]:[l]});if(1<o.length)return;let[i]=o;if(i!==void 0)return r(i)?i:void 0;let s=[...n.keys()].filter(r);return s.length===1?s[0]:void 0}function aB(e){let t=rO(e);return t.kind===void 0?sB(t):void 0}function cB(e){let t=rO(e),n=aB(e);return n===void 0?t:{...t,kind:n}}function lB(e){let t=iO(e).map(n=>`\`${n}\``);return`this predicate has no \`kind\`, and its keys (${t.length>0?t.join(", "):"none"}) do not fit exactly one kind. Add \`kind\`: one of ${[...oO().keys()].join(", ")}`}function uB(e,t){if(typeof e!="object"||e===null||Array.isArray(e))return e;let r=cB(e);r.kind===void 0&&t.addIssue({code:Go.custom,message:lB(r)});let o=typeof r.kind=="string"?r.kind:"",i=tO[o],s=r;if(i!==void 0){s={...r};for(let[a,l]of Object.entries(i))s[a]!==void 0&&(s[l]===void 0&&(s[l]=s[a]),delete s[a])}return z.ELEMENT===o?dB(s):s}function dB(e){if(e.query!==void 0)return e;let t=nO.filter(o=>e[o]!==void 0);if(t.length===0)return e;let n={...e},r={};for(let o of t)r[o]=n[o],delete n[o];return n.query=r,n}function sO(){return vt("kind",[b({kind:U(z.ELEMENT),query:Du,state:R(Se).optional(),absent:L().optional()}).strict(),b({kind:U(z.TEXT),contains:p().optional(),visible:L().optional(),absent:L().optional(),scope:p().optional(),self:L().optional(),satisfies:Pb.optional(),ignoreCase:L().optional()}).strict(),b({kind:U(z.NET),method:p().optional(),urlContains:p().optional(),status:S().optional(),ok:L().optional(),since:S().optional(),count:S().int().nonnegative().optional(),bodyContains:p().min(1).optional(),bodyMatches:ie(p(),q()).optional(),requestBodyContains:p().min(1).optional(),requestBodyMatches:ie(p(),q()).optional(),repeatable:L().optional()}).strict(),b({kind:U(z.ROUTE),pathname:p().optional(),contains:p().optional(),since:S().optional()}).strict(),b({kind:U(z.CONSOLE),level:p().optional(),contains:p().min(1).optional(),absent:L().optional(),since:S().optional()}).strict(),b({kind:U(z.ANIMATION),name:p().optional(),target:p().optional(),completed:L().optional(),since:S().optional()}).strict(),b({kind:U(z.SIGNAL),name:p().optional(),dataMatches:ie(p(),q()).optional(),count:S().int().nonnegative().optional(),since:S().optional()}).strict(),b({kind:U(z.STATE),store:p().optional(),path:p(),equals:q().optional(),satisfies:Pb.optional()}).strict(),b({kind:U(z.SETTLED),quietMs:S().positive().optional(),channel:pe([ub.NETWORK,ub.APP]).optional()}).strict(),b({kind:U(z.COMPARE),left:zb,right:zb,as:pe([Wf.VALUE,Wf.NUMBER]).optional(),tolerance:S().finite().nonnegative().optional()}).strict(),b({kind:U(z.ALL_OF),predicates:C(Pu).min(1)}).strict(),b({kind:U(z.ANY_OF),predicates:C(Pu).min(1)}).strict(),b({kind:U(z.NOT),predicate:Pu}).strict()])}function pB(e,t){if(typeof e!="object"||e===null)return;let n=e;if(z.NET===n.kind){fB(n.repeatable,n.urlContains,t);return}if(z.COMPARE===n.kind){hB(e,t);return}z.TEXT===n.kind&&(n.contains===void 0&&n.satisfies===void 0&&t.addIssue({code:Go.custom,message:"a text predicate must say WHAT about the text: `contains` for a substring, `satisfies` for a property of it. With neither it matches any element with any text and cannot fail"}),n.satisfies!==void 0&&n.contains===void 0&&n.scope===void 0&&t.addIssue({code:Go.custom,message:"`satisfies` needs a subject: add `scope` (the element whose text is tested, with `self: true` to read the scope root itself) or a `contains` that selects one. Without either, the locator is every element on the page and the property would run against whichever one happened to match first"}))}function fB(e,t,n){e===!0&&(typeof t=="string"&&t.trim().length>0||n.addIssue({code:Go.custom,message:'`repeatable: true` needs a non-empty `urlContains` naming the read endpoint, for example `{ kind: "net", method: "POST", urlContains: "/graphql", repeatable: true }`. Without one it would excuse every request in the window from duplicate-request, a real double submit included'}))}function hB(e,t){QR(e.left,e.right)&&t.addIssue({code:Go.custom,message:"`left` and `right` read the same value, so this comparison agrees with itself on every page and cannot fail. Compare two different readings: what the page shows against what the server answered, or what was sent against what came back"}),e.tolerance!==void 0&&Wf.NUMBER!==e.as&&t.addIssue({code:Go.custom,message:'`tolerance` applies to a numeric comparison only: add `as: "number"`'})}var tO,Ub,nO,iB,Hb,iO,Pu,Fb=y(()=>{"use strict";ae();Lb();Kt();Db();Vo();Mb();tO={[z.TEXT]:{text:"contains",value:"contains",query:"contains"},[z.ROUTE]:{path:"pathname",urlContains:"contains",url:"contains",pathContains:"contains"},[z.NET]:{url:"urlContains",responseBodyMatches:"bodyMatches",pathContains:"urlContains"},[z.CONSOLE]:{textContains:"contains"},[z.SIGNAL]:{data:"dataMatches"},[z.ALL_OF]:{of:"predicates",allOf:"predicates"},[z.ANY_OF]:{of:"predicates",anyOf:"predicates"},[z.NOT]:{of:"predicate",not:"predicate"}},Ub="type",nO=Object.keys(Du.shape);iB={text:z.TEXT,allOf:z.ALL_OF,anyOf:z.ANY_OF,not:z.NOT};iO=e=>Object.keys(e).filter(t=>e[t]!==void 0);Pu=zf(()=>Ou(uB,sO()).superRefine(pB))});function aO(e){return`${e} is an element ref, which only exists in the session that minted it \u2014 scope by a CSS selector or a testid so the flow can check it again`}function Yf(e){let t=(n,r)=>r!==void 0&&mB.test(r)?`${n} "${r}"`:void 0;switch(e.kind){case z.ALL_OF:case z.ANY_OF:for(let n of e.predicates){let r=Yf(n);if(r!==void 0)return r}return;case z.NOT:return Yf(e.predicate);case z.TEXT:return t("text.scope",e.scope);case z.ELEMENT:return t("element.query.scope",e.query.scope);case z.ANIMATION:return t("animation.target",e.target);case z.COMPARE:for(let[n,r]of[["left",e.left],["right",e.right]]){if(z.TEXT!==r.from)continue;let o=t(`compare.${n}.scope`,r.scope);if(o!==void 0)return o}return;default:return}}var mB,Bb=y(()=>{"use strict";Vo();mB=/^e\d+$/});function lO(e){let t=[];if(e.signal!==void 0){let s={kind:z.SIGNAL,name:e.signal};e.signalData!==void 0&&(s.dataMatches=e.signalData),e.signalCount!==void 0&&(s.count=e.signalCount,t.push({kind:z.SETTLED})),t.push(s)}if(e.route!==void 0){let s={kind:z.ROUTE};return e.route.pathname!==void 0&&(s.pathname=e.route.pathname),e.route.contains!==void 0&&(s.contains=e.route.contains),s}if(e.net!==void 0){let s={kind:z.NET};e.net.method!==void 0&&(s.method=e.net.method),e.net.urlContains!==void 0&&(s.urlContains=e.net.urlContains),e.net.status!==void 0&&(s.status=e.net.status),e.net.count!==void 0&&(s.count=e.net.count,t.push({kind:z.SETTLED})),t.push(s)}if(e.console!==void 0){let s={kind:z.CONSOLE};e.console.level!==void 0&&(s.level=e.console.level),e.console.absent!==void 0&&(s.absent=e.console.absent,e.console.absent&&t.push({kind:z.SETTLED})),t.push(s)}let n=e.state;if(n!==void 0){let s={kind:z.STATE,path:n.path};n.store!==void 0&&(s.store=n.store),n.equals!==void 0&&(s.equals=n.equals),n.hold===!0&&t.push({kind:z.SETTLED}),t.push(s)}let r=e.element;if(r!==void 0){let s={};r.testid!==void 0&&(s.testid=r.testid),r.role!==void 0&&(s.role=r.role),r.name!==void 0&&(s.name=r.name),Object.keys(s).length>0&&t.push({kind:z.ELEMENT,query:s})}let o=e.text;if(o!==void 0){let s={kind:z.TEXT,contains:o.contains};o.scope!==void 0&&(s.scope=o.scope),o.visible!==void 0&&(s.visible=o.visible),o.absent===!0&&(s.absent=!0,t.push({kind:z.SETTLED})),t.push(s)}let[i]=t;if(t.length!==0)return t.length===1&&i!==void 0?i:{kind:z.ALL_OF,predicates:t}}var cO,Gb=y(()=>{"use strict";ae();Vo();cO=b({route:b({pathname:p().optional(),contains:p().optional()}).optional(),signal:p().optional(),signalData:ie(p(),q()).optional(),signalCount:S().int().nonnegative().optional(),net:b({method:p().optional(),urlContains:p().optional(),status:S().optional(),count:S().int().nonnegative().optional()}).strict().optional(),console:b({level:p().optional(),absent:L().optional()}).strict().optional(),element:b({testid:p().optional(),role:p().optional(),name:p().optional()}).strict().optional(),text:b({contains:p().min(1),scope:p().optional(),absent:L().optional(),visible:L().optional()}).strict().optional(),state:b({store:p().optional(),path:p(),equals:q().optional(),hold:L().optional()}).strict().optional()}).strict()});var uO=y(()=>{"use strict"});var pO,gB,Vb,dO,EB,fO,bB,cQ,hO=y(()=>{"use strict";ae();Iu();pb();Kt();Fb();Bb();Gb();Iu();uO();pO=vt("kind",[b({kind:U(nr.TESTID),value:p().min(1),of:S().int().min(2).optional(),source:b({file:p(),line:S(),column:S().optional()}).optional()}),b({kind:U(nr.ROLE),role:p().min(1),name:p().optional(),nth:S().int().min(0).optional(),of:S().int().min(2).optional()}),b({kind:U(nr.SIGNAL),name:p().min(1)}),b({kind:U(nr.COMPONENT),component:p().optional(),source:b({file:p(),line:S(),column:S().optional()}).optional(),role:p().optional(),name:p().optional()})]),gB=Pu.superRefine((e,t)=>{let n=Yf(e);n!==void 0&&t.addIssue({code:Go.custom,message:aO(n)})}),Vb=wt([gB,cO.transform(e=>lO(e))]),dO=C(Vb).transform(e=>e.filter(t=>t!==void 0)),EB=b({tool:p(),anchor:pO,source:b({file:p().min(1),line:S().int().positive().optional()}).optional(),id:p().min(1).optional(),effect:R(ER).optional(),healed:b({from:p(),at:S()}).optional(),writes:L().optional(),action:R(D).optional(),args:ie(p(),q()).optional(),expect:Vb.optional(),degraded:L().optional(),timeoutMs:S().int().nonnegative().optional(),invoke:p().min(1).optional(),page:p().optional(),endPage:p().optional()}),fO=EB.extend({steps:zf(()=>C(fO).optional())}),bB=b({version:S().int().refine(e=>mR.has(e)),name:p(),intent:p().optional(),intentDerived:L().optional(),intentId:p().optional(),projectId:p().optional(),startPath:p().optional(),template:p().min(1).optional(),fixture:p().optional(),requires:dO.optional(),ensures:dO.optional(),author:b({agent:p().min(1).optional(),person:p().min(1).optional()}).optional(),createdAt:S(),steps:C(fO),signalTimeoutMs:S().int().positive().optional(),success:Vb.optional(),dynamic:C(pO).optional(),labels:C(p().min(1)).optional(),needs:C(p().min(1)).optional(),status:pe([Pf.ACTIVE,Pf.QUARANTINED,Pf.DRAFT]).optional(),learned:C(b({kind:p().min(1),step:S().int().min(-1),state:pe(["open","guarded"]),cleanRuns:S().int().nonnegative().optional()})).optional(),knownBugs:C(b({id:p().min(1),summary:p().min(1),assertions:C(p())})).optional(),quarantine:b({reason:p().min(1),since:p().min(1),owner:p().min(1),until:p().optional()}).optional()}),cQ=b({name:p(),flow:bB})});var mO=y(()=>{"use strict"});var gO=y(()=>{"use strict"});var EO=y(()=>{"use strict"});var xn,jb,Mu,_B,hQ,bO,Uu,_O,Kb,Xf,Hu=y(()=>{"use strict";xn={FETCH:"fetch",XHR:"xhr",BEACON:"beacon",IPC:"ipc",DOCUMENT:"document",NAVIGATION:"navigation"},jb="ipc://",Mu={OK:200,ERROR:500},_B={NEXT_DEV_OVERLAY:"/__nextjs",NEXT_HMR:"/_next/webpack-hmr",NEXT_HMR_CHUNKS:"/_next/static/webpack/",WEBPACK_HOT_UPDATE:".hot-update.",VITE_CLIENT:"/@vite/",VITE_REACT_REFRESH:"/@react-refresh",VITE_PING:"/__vite_ping"},hQ=Object.values(_B),bO="urlRaw",Uu="requestShape",_O="none",Kb="Next-Action",Xf="nextAction"});var bQ,SO=y(()=>{"use strict";Hu();bQ=new Set([xn.FETCH,xn.XHR])});var sr,Zb=y(()=>{"use strict";sr={ERROR_STATUS:"error-status",STREAMING:"streaming",NOT_TEXT:"not-text",UNREADABLE:"unreadable"}});var fc,qf,TO,xO=y(()=>{"use strict";fc="data-reticle-source",qf="__RETICLE_ROOT__",TO="__RETICLE_SDK_VERSION__"});var Us,AO,yO,wO=y(()=>{"use strict";Us="data-testid",AO=["data-test-subj","data-cy","data-test","data-qa","data-e2e"],yO=/^[a-zA-Z_][\w-]*$/});var vO,NO=y(()=>{"use strict";Kt();vO=new Set([w.DOM_TEXT,w.ANIM_START,w.ANIM_END,w.RENDER_COMMIT,w.PAGE_HEALTH,w.SCROLL_POSITION])});function Wb(e){let t=e.text;if(typeof t=="string"&&0<t.length)return t;let n=e.key;return typeof n=="string"&&0<n.length?n:SB}function Yb(e){let t=e.keys;if(!Array.isArray(t))return[];let n=[];for(let r of t)typeof r=="string"&&0<r.length&&n.push(r);return n}function OO(e){let t=e.modifiers;if(!Array.isArray(t))return[];let n=new Set;for(let r of t){if(typeof r!="string")continue;let o=AB[r.toLowerCase()];o!==void 0&&n.add(o)}return xB.filter(r=>n.has(r))}function yB(e){let t=e.modifiers;return Array.isArray(t)&&0<t.length}function IO(e){if(yB(e))return!0;let t=Yb(e);if(1<t.length)return!0;if(t.length===1){let n=t[0];return n!==void 0&&RO.has(n.toLowerCase())}return RO.has(Wb(e).toLowerCase())}var SB,TB,RO,xB,AB,Xb=y(()=>{"use strict";SB="Enter",TB=["Escape","Tab"],RO=new Set(TB.map(e=>e.toLowerCase()));xB=["Alt","Control","Meta","Shift"],AB={alt:"Alt",option:"Alt",opt:"Alt",control:"Control",ctrl:"Control",meta:"Meta",cmd:"Meta",command:"Meta",super:"Meta",win:"Meta",shift:"Shift"}});function qb(e){let t=e.button;if(t===void 0)return ar.LEFT;if(typeof t!="string")return;let n=t.toLowerCase();return CO.find(r=>r===n)}function LO(e,t){let n=qb(t);if(n===void 0)return`unsupported click button ${JSON.stringify(t.button)}: use ${CO.join(", ")}`;if(e===D.DBLCLICK&&n!==ar.LEFT)return"a dblclick uses the left button only: a browser sends no dblclick for another button";let r=t.modifiers;if(Array.isArray(r)){let o=r.filter(i=>OO({modifiers:[i]}).length===0);if(0<o.length)return`unsupported click modifier ${JSON.stringify(o[0])}: use Meta, Control, Shift or Alt`}}var ar,CO,$O=y(()=>{"use strict";Kt();Xb();ar={LEFT:"left",MIDDLE:"middle",RIGHT:"right"},CO=Object.values(ar)});function hc(e){return typeof e!="number"||!Number.isFinite(e)||e<=0?0:Math.min(e,3e4)}var kO=y(()=>{"use strict"});var wB,CQ,vB,LQ,zO=y(()=>{"use strict";ae();jo();wB="https://app.reticle.sh",CQ=`Reticle Cloud (not linked): keeps this history across runs and agents, adds a team view and the hosted Harness. Plans and prices: ${wB}`,vB=b({claim:p(),verified:R(Hn),evidence:p().optional()}),LQ=b({verified:R(Hn),claims:C(vB),caught:C(p()),flows:b({saved:C(p()),replayed:C(b({name:p(),verified:R(Hn)}))}),memory:b({written:S().int().min(0),read:S().int().min(0)}),wallMs:S().int().min(0),firstVerdictMs:S().int().min(0).optional(),cloud:p().optional()})});var Nt,zQ,DO=y(()=>{"use strict";jo();Nt={CODE:"code",ENVIRONMENT:"environment",HARNESS:"harness",COULD_NOT_SEE:"could-not-see",NONE:"none"},zQ={[lt.ASSERTION_FAILED]:Nt.CODE,[lt.CONTRADICTED]:Nt.CODE,[lt.OUTCOME_PENDING]:Nt.ENVIRONMENT,[lt.UNSETTLED]:Nt.ENVIRONMENT,[lt.VERSION_SKEW]:Nt.HARNESS,[lt.WINDOW_CLOSED_EARLY]:Nt.HARNESS,[lt.NOTHING_DECLARED]:Nt.HARNESS,[lt.VACUOUS_GRADE]:Nt.HARNESS,[lt.ALREADY_TRUE]:Nt.HARNESS,[lt.HIDDEN_MATCH]:Nt.HARNESS,[lt.CAPABILITY_ABSENT]:Nt.COULD_NOT_SEE,[lt.OBSERVATION_LOST]:Nt.COULD_NOT_SEE,[lt.UNCLEAN_CAPTURE]:Nt.COULD_NOT_SEE,[lt.EVIDENCE_INCOMPLETE]:Nt.COULD_NOT_SEE,[lt.ABSENCE_BLIND_SPOT]:Nt.COULD_NOT_SEE,[lt.OUTCOME_UNREAD]:Nt.COULD_NOT_SEE,[lt.INCONCLUSIVE]:Nt.COULD_NOT_SEE,[lt.PROVED]:Nt.NONE}});var Hs,NB,RB,OB,PQ,PO=y(()=>{"use strict";ae();Hs={CONNECTING:"connecting",WAITING_FOR_APP:"waiting_for_app",FLOWS_FOUND:"flows_found",FLOW_STARTED:"flow_started",FLOW_FINISHED:"flow_finished",GRADING:"grading",PUSHED:"pushed"},NB=120,RB=200,OB=b({phase:pe([Hs.CONNECTING,Hs.WAITING_FOR_APP,Hs.FLOWS_FOUND,Hs.FLOW_STARTED,Hs.FLOW_FINISHED,Hs.GRADING,Hs.PUSHED]),index:S().int().nonnegative().optional(),total:S().int().nonnegative().optional(),name:p().max(NB).optional(),ok:L().optional(),at:S().int().nonnegative()}),PQ=b({runId:p().min(1).max(200),events:C(OB).max(RB)})});function MO(e){return e===Xe.ACTIVE||e===Xe.PAUSED||e===Xe.ENDED}var Xe,Fu,ln,Fs,UO,HO,Bs,Jb=y(()=>{"use strict";Xe={ACTIVE:"active",PAUSED:"paused",ENDED:"ended"};Fu="auto",ln={PAUSE:"pause",RESUME:"resume",END:"end",MESSAGE:"message",REPLAY:"replay",SYNC:"sync",SIGNIN:"signin",HARNESS:"harness",HARNESS_RUN:"harness-run",HARNESS_STOP:"harness-stop",HARNESS_LINK:"harness-link"},Fs={TESTID:"testid",COMPONENT:"component",ROLE:"role",POSITION:"position"},UO={HEARTBEAT_MS:5e3,STALE_THRESHOLD_MS:12e3,LEDGER_NOTICE_FRACTION:.25},HO={IDLE_END_MS:3e5,IDLE_END_MIN_MS:5e3,REAP_INTERVAL_MS:5e3,BRIDGE_LOST_MS:15e3,DAEMON_IDLE_SHUTDOWN_MS:3e5,DAEMON_IDLE_CHECK_MS:3e4,DAEMON_AGENT_RECENT_MS:18e5},Bs={VISIBILITY:"visibilitychange",FOCUS:"focus",BLUR:"blur",HEARTBEAT:"heartbeat",INITIAL:"initial"}});var Fn,Dt,ki,Bu,Bn,FO,Jf,mc,An,Gu=y(()=>{"use strict";Fn={BUBBLE:"bubble",COLLAPSED:"collapsed",EXPANDED:"expanded"},Dt={CHAT:"chat",FLOWS:"flows",NOTES:"notes",HARNESS:"harness",SETTINGS:"settings",REPORT:"report",ACCOUNT:"account",NONE:"none"},ki={RAIL:"rail",HARNESS:"harness",HEADER:"header"},Bu={ON:"on",OFF:"off"},Bn={SHOWN:"shown",HIDDEN:"hidden",REMOVED:"removed"},FO="reload to restore",Jf={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},mc={PLAYING:"playing",PASSED:"passed",FAILED:"failed"},An={PENDING:"pending",RUNNING:"running",PASSED:"passed",FAILED:"failed",BLOCKED:"blocked",NOT_TAKEN:"not-taken",UNDECIDED:"undecided"}});var Vu,FQ,BO=y(()=>{"use strict";Vu="[data-reticle-overlay],[data-reticle-cursor],[data-reticle-hud],[data-reticle-glow],[data-reticle-mark],[data-reticle-blocker],[data-reticle-tour]",FQ=`${Vu}{display:none !important}`});var Qb,GO,IB,CB,LB,VQ,jQ,Gs,Qf,e_=y(()=>{"use strict";ae();Gu();Qb={TAB:"tab",HEADLESS:"headless",HEADED:"headed"},GO={LOCAL:"local",PLATFORM:"platform"},IB=2e3,CB=128,LB=500,VQ={target:pe([Qb.TAB,Qb.HEADLESS,Qb.HEADED]),mode:pe([GO.LOCAL,GO.PLATFORM]),url:p().url().refine(e=>/^https?:/i.test(e)),hud:pe([Bn.SHOWN,Bn.HIDDEN,Bn.REMOVED]),persona:p().min(1).max(IB),maxSteps:S().int().min(1).max(LB),record:L(),plan:p().min(1).max(CB),confirmDangerous:L()},jQ=b({seq:S().int().nonnegative(),tool:p().min(1).max(100),args:ie(p(),q()).default({})}),Gs={SOURCE:"source",TESTID:"testid"},Qf="file:line source mapping"});var eh,jO,KO,VO,ZQ,ZO=y(()=>{"use strict";eh="https://calendar.app.google/h9NRDbBBQetyTzWM6",jO="hey@reticle.sh",KO="mailto:hey@reticle.sh?subject=Reticle%20feedback",VO='npx @reticlehq/server feedback --contact you@company.com "what you are building"',ZQ={HUMAN:`Stuck, or want Reticle to work differently? Talk to the founder: ${eh} \xB7 or send a note with your email: ${VO}`,AGENT:`If the person you are working with is stuck or Reticle got in their way, offer them a call with the founder (${eh}) or a note with their email (${VO}). Offer it; never book a call or submit an email for them.`}});function WO(e){let t="";for(let n=0;n<8;n++){let r=Math.floor(e()*t_.length);t+=t_[Math.min(Math.max(r,0),t_.length-1)]}return t}var t_,YO=y(()=>{"use strict";t_="0123456789abcdefghijklmnopqrstuvwxyz"});var XO=y(()=>{"use strict"});function n_(e){return $B.test(e)}function qO(e){let t=new Set;for(let n of e!=null?e:[]){let r=n.trim().toLowerCase();r.length>0&&t.add(r)}return t}function JO(e,t){var s,a;let n=qO((s=e==null?void 0:e.keys)==null?void 0:s.filter(l=>typeof l=="string")),r=((a=e==null?void 0:e.keys)!=null?a:[]).filter(l=>l instanceof RegExp),o=qO(e==null?void 0:e.allow),i=[...o].filter(l=>n_(l)&&!n.has(l));return i.length>0&&t!==void 0&&t(`[reticle] redact.allow is exempting ${i.join(", ")} from redaction. The default rule treats ${i.length===1?"that key":"those keys"} as a credential, so ${i.length===1?"its value":"their values"} will now reach the agent transcript and the on-disk journal in cleartext.`),{isSensitiveKey:l=>{let u=l.toLowerCase();if(n.has(u))return!0;for(let d of r)if(d.lastIndex=0,d.test(l))return!0;return o.has(u)?!1:n_(l)}}}function QO(e){r_=e}function St(e){return r_===void 0?n_(e):r_.isSensitiveKey(e)}function DB(e){return new TextEncoder().encode(e).byteLength}function PB(e){if(!/^data:/i.test(e))return;let t=e.indexOf(","),n=t===-1?e.slice(5):e.slice(5,t),[r="",...o]=n.split(";"),i=/^[\w.+-]+\/[\w.+-]+$/.test(r)?r:"text/plain",s=o.some(l=>l.toLowerCase()==="base64")?";base64":"",a=t===-1?"":e.slice(t+1);return`data:${i}${s},<\u2026${String(DB(a))} bytes\u2026>`}function cr(e,t=St){var A;let n=PB(e);if(n!==void 0)return n;let r=e.indexOf("#"),o=r===-1?"":e.slice(r),i=r===-1?e:e.slice(0,r),s=i.indexOf("?"),a=s===-1?i:i.slice(0,s),l=s===-1?"":i.slice(s+1),u=!1,d=a,f=/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i.exec(a);f!==null&&(d=`${(A=f[1])!=null?A:""}${ve}@${a.slice(f[0].length)}`,u=!0);let m=l;if(l!==""){let v=new URLSearchParams(l),N=!1;for(let O of[...v.keys()])t(O)&&(v.set(O,ve),N=!0);N&&(m=v.toString(),u=!0)}let h=d.split("/");for(let v=0;v+1<h.length;v++){let N=h[v],O=h[v+1];N!==void 0&&O!==void 0&&O.length>=zB&&kB.test(N)&&(h[v+1]=ve,u=!0)}let E=o;if(o.length>1&&(E=o.replace(/(^|[#&?/])([A-Za-z0-9_.-]+)=([^&\s]+)/g,(v,N,O)=>t(O)?`${N}${O}=${ve}`:v),E!==o&&(u=!0)),!u)return e;let _=s===-1?"":`?${m}`;return`${h.join("/")}${_}${E}`}function oo(e,t=St){let n=cr(e,t);return n===e?{url:n}:{url:n,[bO]:e}}function eI(e){var r;let t=new Set,n=[];for(let o of(r=e==null?void 0:e.keys)!=null?r:[]){if(typeof o!="string")continue;let i=o.trim();if(i.length===0||i.length>i_)continue;let s=i.toLowerCase();if(!t.has(s)&&(t.add(s),n.push(i),n.length>=o_))break}return n}function io(e){return e.replace(MB,ve)}var $B,r_,kB,zB,o_,i_,MB,s_=y(()=>{"use strict";Kt();Hu();$B=/password|passwd|passcode|pass[-_]?phrase|(?:otp|totp|mfa|recovery|backup)[-_]?codes?|(?:^|[-_])(?:otp|totp)(?=$|[-_])|secret|(?:(?:access|refresh|auth|bearer|api|id|session|csrf|client)[-_]?tokens?|(?:^|[-_])tokens?(?=$|[-_]))|session[-_]?id|(?:^|[-_])(?:sid|pwd|jwt)(?=$|[-_])|authorization|(?:^|[-_])(?:set[-_])?cookie(?=$|[-_])|api[-_]?key|access[-_]?key|private[-_]?key|client[-_]?secret|credit[-_]?card|card[-_]?(?:number|num|no|pan)(?=$|[-_])|(?:^|[-_])(?:card|pan)(?=$|[-_])|cvv|cvc|ssn|(?:^|[-_])(?:signature|sig)$|(?:^|[-_])credential$|x-(?:amz|goog)-(?:signature|credential|security-token)$/i;kB=/^(reset|verify|verification|confirm|activate|invite|magic|magiclink|token|key|oauth|unsubscribe|password)$/i,zB=12;o_=64,i_=128;MB=/eyJ[A-Za-z0-9_-]{4,}\.[A-Za-z0-9_-]{4,}\.[A-Za-z0-9_-]{4,}|(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}|sk-(?:ant|proj|svcacct|admin)-[A-Za-z0-9_-]{20,}|(?:AKIA|ASIA)[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,}|AIza[0-9A-Za-z_-]{35}|xox[baprs]-[A-Za-z0-9-]{10,}|ya29\.[A-Za-z0-9._-]{20,}/g});var so,th=y(()=>{"use strict";so={WEB:"web",WEBVIEW:"webview",NATIVE:"native",SERVICE:"service"}});function a_(){return[$.UI,$.NET,$.STATE,$.SIGNAL,$.LOG,$.ROUTE,$.TIME]}var ree,oee,nh=y(()=>{"use strict";pc();Vo();ree={[z.ELEMENT]:[$.UI],[z.TEXT]:[$.UI],[z.SIGNAL]:[$.SIGNAL],[z.NET]:[$.NET],[z.STATE]:[$.STATE],[z.ROUTE]:[$.ROUTE],[z.CONSOLE]:[$.LOG],[z.ANIMATION]:[$.UI,$.TIME],[z.SETTLED]:[$.TIME,$.NET],[z.COMPARE]:[$.UI,$.NET,$.STATE,$.SIGNAL],[z.ALL_OF]:a_(),[z.ANY_OF]:a_(),[z.NOT]:a_()};oee=Object.fromEntries(Object.entries(mb).map(([e,t])=>[e,t.independence]))});var tI,rh,oh,ih=y(()=>{"use strict";tI={DEVELOPMENT:"development",PRODUCTION:"production"},rh={OBSERVE:"observe",ACT:"act"},oh={INSTALLED:"installed",INJECTED:"injected"}});function c_(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");if(BB.includes(t))return!0;let n=t.split(".");return VB===n.length&&GB===n[0]&&n.every(r=>{if(!/^\d{1,3}$/.test(r))return!1;let o=Number(r);return o>=0&&o<=jB})}function KB(e){let t=e.toLowerCase();return t.endsWith(nI)&&t.length>nI.length&&!t.startsWith(".")}function sI(e,t){return c_(t)||KB(t)?!0:ZB.includes(e.toLowerCase())}function qB(e){for(let t=e.lastIndexOf(".");1<=t;t=e.lastIndexOf(".",t-1)){let n=t+1,r="";for(;n<e.length&&XB.test(e.charAt(n));)r+=e.charAt(n).toLowerCase(),n+=1;if(!WB.has(r))continue;let o=e.charAt(n);if(o===""||o==="."||o==="-")return n}return 0}function ju(e){return e.replace(YB,t=>{let n=qB(t);return n===0?t:` ${t.slice(n)}`})}function aI(e,t){return t!==void 0&&iI.has(t.trim().toLowerCase())?!1:HB.test(e.replace(oI," "))}function cI(e){return JB.test(e)}function lI(e){return uI(e)||FB.test(e.replace(oI," "))}function uI(e){let t;try{t=new URL(e).hostname.toLowerCase()}catch{return!1}return eG.some(n=>t===n||t.endsWith(`.${n}`))}function dI(e){var n;if(tG.test((n=e.autocomplete)!=null?n:""))return!0;let t=[e.name,e.id,e.label].map(r=>(r!=null?r:"").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ")).join(" ");return nG.test(t)}function pI(e,t){var r;if(t!==void 0&&iI.has(t.trim().toLowerCase()))return;if(e.split(/\s+/).some(uI))return Tt.PAY;let n=e.replace(/[_-]+/g," ");return(r=QB.find(([o,i])=>o!==Tt.PAY&&i.test(n)))==null?void 0:r[0]}var rI,UB,HB,FB,oI,iI,BB,nI,GB,VB,jB,ZB,WB,YB,XB,JB,Tt,QB,eG,tG,nG,l_,u_=y(()=>{"use strict";rI="delete|remove|destroy|erase|drop|terminate|revoke|reset|close account|cancel subscription",UB="purchase|buy|pay|payment|place order|confirm order|send money|send funds|transfer|withdraw|refund",HB=new RegExp(`\\b(${rI}|${UB})\\b`,"i"),FB=new RegExp(`\\b(${rI})\\b`,"i"),oI=/[_-]+/g,iI=new Set(["option","radio"]),BB=["localhost","::1","0:0:0:0:0:0:0:1"],nI=".localhost",GB="127",VB=4,jB=255;ZB=["file:","app:","tauri:"];WB=new Set(["webm","mp4","mov","mkv","avi","mp3","wav","ogg","flac","png","jpg","jpeg","gif","webp","svg","avif","bmp","pdf","zip","tar","gz","txt","csv","json","xml","doc","docx","xls","xlsx","ppt","pptx"]),YB=/[\w.-]+/g,XB=/[a-zA-Z0-9]/;JB=/^\s*(#.*|javascript:.*)?$/i;Tt={INVITE:"invite",SEND:"send",SHARE:"share",DELETE:"delete",PAY:"pay",PUBLISH:"publish",REVOKE:"revoke",TRANSFER:"transfer",SIGN_OUT:"sign out",CHANGE_ROLE:"change role",CREATE_KEY:"create key",CHANGE_STATE:"change state"},QB=[[Tt.INVITE,/\binvit(?:e|es|ed|ing|ation|ations)\b|\/invit/i],[Tt.TRANSFER,/\b(?:transfer|send money|send funds|withdraw)\b/i],[Tt.SEND,/\b(?:send|sends|sending|resend|email (?:it|them|the))\b/i],[Tt.SHARE,/\b(?:share|shares|sharing)\b/i],[Tt.DELETE,/\b(?:delete|deletes|deleting|remove|removes|removing|destroy|erase|drop)\b/i],[Tt.PAY,/\b(?:pay|pays|paying|payment|purchase|buy|checkout|check out|subscribe|upgrade|place order|confirm order|refund|add (?:a )?card|start (?:the |your |a )?(?:\d+-day |free )?trial)\b|\/(?:billing|checkout)\b/i],[Tt.PUBLISH,/\b(?:publish|publishes|deploy|deploys|go live)\b/i],[Tt.REVOKE,/\b(?:revoke|revokes|deactivate|suspend)\b/i],[Tt.SIGN_OUT,/\b(?:sign ?out|log ?out|sign off)\b/i],[Tt.CHANGE_ROLE,/\b(?:change (?:the |their |his |her )?role|make (?:an? )?(?:admin|owner)|promote|demote|set role)\b/i],[Tt.CREATE_KEY,/\b(?:create|generate|new|mint)(?: an?)?(?: api)? key\b|\/keys\b/i],[Tt.CHANGE_STATE,/\b(?:reassign|reassigns|reopen|reopens|re-open|archive|archives|unarchive|approve|approves|reject|rejects|mark as (?:fixed|resolved|done|closed))\b/i]],eG=["stripe.com","checkout.dodopayments.com","paddle.com","lemonsqueezy.com","paypal.com","razorpay.com","braintreegateway.com"];tG=/\bcc-(?:number|csc|exp(?:-month|-year)?)\b/i,nG=/card ?(?:number|no\b)|\bcc ?num|\b(?:cvc|cvv|csc|cvc2|cvv2)\b|security code|card ?code|\bexpir(?:y|ation|es)\b|\bexp ?date\b|\bmm ?\/ ?yy\b|\biban\b|account ?number|routing ?number|sort ?code/i;l_=e=>`would need to ${e} \u2014 not done (outward action): the journey does not ask for it`});var sh,fI,rG,hI,mI,gI,oG,iG,Ku,p_,sG,aG,Eee,f_=y(()=>{"use strict";ae();Gu();Kt();Jb();s_();th();nh();ih();u_();sh=p().min(1).max(Z.MAX_SESSION_ID_LENGTH),fI=p().max(Z.MAX_REF_LENGTH),rG=p().min(1).max(8),hI=b({kind:R(ln),text:p().optional()}),mI=b({control:p().max(48).regex(/^[a-z][a-zA-Z-]*(\.[a-zA-Z-]+)?$/).optional(),toggle:R(Bu).optional(),view:R(Fn).optional(),panel:R(Dt).optional(),slide:p().max(56).optional(),prompt:R(ki).optional()}),gI=b({note:p().min(1).max(Z.MAX_MARK_NOTE_LENGTH),anchor:p().max(Z.MAX_REF_LENGTH),strategy:R(Fs),label:p().max(Z.MAX_MARK_LABEL_LENGTH).optional(),source:b({file:p().max(Z.MAX_URL_LENGTH),line:S().int().min(0)}).optional(),route:p().max(Z.MAX_URL_LENGTH).optional()}),oG=b({t:S(),type:R(w),sessionId:sh,ref:fI.optional(),seq:S().int().min(0).optional(),actionId:fI.optional(),attribution:R(vR).optional(),documentId:rG.optional(),editEpoch:S().int().min(0).optional(),data:ie(p(),q()).default({})}),iG=b({kind:U(sn.HELLO),protocolVersion:S().int().min(SR).max(Mf),sessionId:sh,url:p().max(Z.MAX_URL_LENGTH),title:p().max(Z.MAX_TITLE_LENGTH),projectId:sh.optional(),adapters:C(p().max(Z.MAX_ADAPTER_NAME_LENGTH)).max(Z.MAX_ADAPTERS),token:p().max(Z.MAX_TOKEN_LENGTH).optional(),env:R(tI).optional(),scope:R(rh).optional(),platform:R(so).optional(),channels:C(R($)).max(Z.MAX_ADAPTERS).optional(),commands:C(p().max(Z.MAX_TOKEN_LENGTH)).max(Z.MAX_ADAPTERS).optional(),contractParts:b({commands:C(p()).max(Z.MAX_CONTRACT_NAMES),events:C(p()).max(Z.MAX_CONTRACT_NAMES),actions:C(p()).max(Z.MAX_CONTRACT_NAMES)}).optional(),hasCapabilities:L().optional(),captureBodies:L().optional(),sourceMapping:L().optional(),instrumentation:R(oh).optional(),sdkVersion:p().max(Z.MAX_ADAPTER_NAME_LENGTH).optional(),contract:p().max(Z.MAX_ADAPTER_NAME_LENGTH).optional(),redactKeys:C(p().min(1).max(i_)).max(o_).optional()}),Ku={HARNESS:"harness"},p_=b({kind:U(sn.COMMAND),id:p().min(1).max(Z.MAX_COMMAND_ID_LENGTH),sessionId:sh.optional(),name:p().min(1).max(Z.MAX_COMMAND_NAME_LENGTH),args:ie(p(),q()).default({}),by:R(Ku).optional(),outward:b({allowed:C(R(Tt)).max(16)}).optional()}),sG=b({kind:U(sn.COMMAND_RESULT),id:p().min(1).max(Z.MAX_COMMAND_ID_LENGTH),ok:L(),result:q().optional(),error:p().max(Z.MAX_ERROR_LENGTH).optional()}),aG=b({kind:U(sn.EVENT),event:oG}),Eee=vt("kind",[iG,p_,sG,aG])});var yn,cG,lG,uG,dG,pG,See,Tee,xee,EI=y(()=>{"use strict";ae();ih();yn={PAYMENT:"payment or checkout",DELETE_WORKSPACE:"delete a workspace or project",REVOKE_KEY:"revoke or rotate a key",SEND_INVITE:"send an invite or email",CANCEL_SUBSCRIPTION:"cancel a subscription",CHANGE_ROLE:"change a member's role",OBSERVE_ONLY:"the session scope is observe, so it does not act",OFF_ORIGIN:"leave the activated origin",EXPIRED:"the session nonce expired"},cG=[yn.PAYMENT,yn.DELETE_WORKSPACE,yn.REVOKE_KEY,yn.SEND_INVITE,yn.CANCEL_SUBSCRIPTION,yn.CHANGE_ROLE],lG=64,uG=256,dG=b({rule:pe(cG),methods:C(p().min(1).max(16)).min(1).max(8),path:p().min(1).max(uG).refine(e=>{try{return new RegExp(e,"i"),!0}catch{return!1}},"not a valid regular expression")}),pG=C(dG).max(lG),See=[{rule:yn.CANCEL_SUBSCRIPTION,methods:["DELETE"],path:"/subscriptions?(/[^/]+)?/?$"},{rule:yn.CANCEL_SUBSCRIPTION,methods:["POST","PUT","PATCH"],path:"/subscriptions?(/[^/]+)?/cancel"},{rule:yn.PAYMENT,methods:["POST","PUT","PATCH"],path:"/(billing|checkout|payments?|subscriptions?|purchases?|orders?)(/|$)"},{rule:yn.DELETE_WORKSPACE,methods:["DELETE"],path:"/(workspaces?|orgs?|organi[sz]ations?|projects?)/[^/]+/?$"},{rule:yn.REVOKE_KEY,methods:["DELETE"],path:"/(api-?)?keys?/[^/]+/?$"},{rule:yn.REVOKE_KEY,methods:["POST","PUT","PATCH"],path:"/(api-?keys?|keys?|tokens?|secrets?)(/[^/]+)?/(rotate|revoke|regenerate|roll)"},{rule:yn.SEND_INVITE,methods:["POST","PUT"],path:"/(invites?|invitations?|emails?|mail)(/|$)"},{rule:yn.CHANGE_ROLE,methods:["PATCH","PUT","POST"],path:"/members?/[^/]+(/role)?/?$"}],Tee=b({workspaceId:p().min(1).max(128),nonce:p().min(1).max(256),bridgePort:S().int().min(1).max(65535),scope:R(rh),origin:p().url().max(2048).optional(),bridge:p().url().max(2048).optional()}),xee=b({ticket:p().min(1).max(4096),expiresAt:p().max(64).optional(),policy:pG.optional()})});var bI=y(()=>{"use strict"});function xG(e){return e.length<=SI&&TG.test(e)}var fG,_I,wee,zi,hG,qe,mG,gG,EG,bG,_G,SG,h_,SI,TG,TI,AG,xI,gc=y(()=>{"use strict";ae();fG={AGENT:"agent",HUMAN:"human"},_I={BUG:"bug",GAP:"gap",AMBIGUITY:"ambiguity",FEATURE_REQUEST:"feature_request",IMPROVEMENT:"improvement",EXPERIENCE:"experience"},wee=`<${Object.values(_I).join("|")}>`,zi={WEB:"web",ELECTRON:"electron",TAURI:"tauri"},hG={BLINK:"blink",GECKO:"gecko",WEBKIT:"webkit"},qe={CHROME:"chrome",EDGE:"edge",ARC:"arc",DIA:"dia",BRAVE:"brave",OPERA:"opera",FIREFOX:"firefox",SAFARI:"safari",OTHER:"other"},mG={CDP:"cdp",SDK:"sdk"},gG={USER:"user",PROJECT:"project"},EG=4e3,bG=8e3,_G=1,SG=5,h_=1e3,SI=254,TG=/^[^\s@,;<>]+@[^\s@,;<>]+\.[^\s@,;<>]+$/;TI=b({source:R(fG),kind:R(_I),text:p().min(1).max(EG),trace:p().max(bG).optional(),rating:S().int().min(_G).max(SG).optional(),need:p().max(h_).optional(),impact:p().max(h_).optional(),currentApproach:p().max(h_).optional(),model:p().min(1).max(64).optional(),clientVersion:p().min(1).max(32).optional(),stack:p().min(1).max(64).optional(),stackMajor:S().int().nonnegative().optional(),runtime:R(zi).optional(),engine:R(hG).optional(),driver:R(mG).optional(),client:p().min(1).max(64).optional(),mcpScope:R(gG).optional(),contact:p().max(SI).refine(xG).optional()}),AG={COMPANY:"company",SIDE_PROJECT:"side_project",OPEN_SOURCE:"open_source",LEARNING:"learning"},xI=b({context:R(AG),company:p().min(1).max(128).optional(),email:p().min(3).max(254).optional()})});var ao,co,ch,Wu,m_,Yu,Pt,Vs,yG,wG,$ee,ah,vG,NG,RG,Zu,kee,AI=y(()=>{"use strict";ae();Kt();Zb();jo();gc();f_();Hu();ao={SSE:"sse",WS:"ws",FETCH:"fetch"},co={OPEN:"open",IN:"in",OUT:"out",CLOSE:"close"},ch={UP:"up",DOWN:"down"},Wu={PUSH:"push",REPLACE:"replace",POP:"pop"},m_="how",Yu={INPUT:"input",CHANGE:"change",SETTLED:"settled"},Pt={FIELD:"field",KIND:"kind",LENGTH:"length",VALUE:"value",REDACTED:"redacted",CHECKED:"checked",PREVIOUS:"previous",PREVIOUS_CHECKED:"previousChecked"},Vs={LOCAL:"local",SESSION:"session",COOKIE:"cookies"},yG=b({name:p().describe("Cookie name."),value:p().describe("Cookie value."),domain:p().optional().describe("Cookie domain. Defaults to the navigation URL domain."),path:p().optional().describe('Cookie path. Defaults to "/".'),url:p().optional().describe("Cookie URL. Defaults to the navigation URL."),httpOnly:L().optional().describe("Whether the cookie is httpOnly."),secure:L().optional().describe("Whether the cookie is secure."),sameSite:pe(["Strict","Lax","None"]).optional().describe("SameSite policy."),expires:S().optional().describe("Unix timestamp in seconds for cookie expiration.")}),wG=wt([ie(p(),p()),C(yG)]),$ee=b({local:ie(p(),p()).optional().describe("Key-value pairs to seed into window.localStorage before first navigation."),session:ie(p(),p()).optional().describe("Key-value pairs to seed into window.sessionStorage before first navigation."),cookies:wG.optional().describe("Cookies to seed before first navigation: a name-value record scoped to the lease URL or an array of cookie objects.")}).strict(),ah=b({role:p().optional(),name:p().optional()}),vG=b({mimeType:p(),bytes:S(),filename:p().optional(),lines:S().optional(),preview:p().optional(),previewTruncated:L().optional()}).passthrough(),NG=b({transport:R(ao),direction:R(co),url:p(),urlRaw:p().optional()}).passthrough(),RG=b({id:p(),method:p(),url:p(),status:S(),ok:L(),durationMs:S(),initiator:p(),urlRaw:p().optional(),[Xf]:p().optional(),[Uu]:p().optional()}).passthrough(),Zu=b({message:p()}).passthrough(),kee={[w.DOM_ADDED]:ah,[w.DOM_REMOVED]:ah,[w.DOM_ATTR]:b({attr:p(),value:p().optional(),old:p().optional()}).passthrough(),[w.DOM_TEXT]:b({text:p(),old:p().optional(),testid:p().optional(),initial:L().optional()}),[w.NET_REQUEST]:RG,[w.NET_PENDING]:b({id:p(),method:p(),url:p(),initiator:p(),urlRaw:p().optional()}),[w.NET_STREAM]:NG,[w.DOWNLOAD]:vG,[w.PERF]:b({metric:R(cc),value:S(),at:S(),shifted:b({ref:p(),selector:p()}).optional()}),[w.ROUTE_CHANGE]:b({from:p(),to:p(),pathname:p(),search:p(),hash:p(),[m_]:R(Wu),pattern:p().optional()}),[w.CONSOLE_LOG]:Zu,[w.CONSOLE_WARN]:Zu,[w.CONSOLE_ERROR]:Zu,[w.CONSOLE_INFO]:Zu,[w.CONSOLE_DEBUG]:Zu,[w.ERROR_UNCAUGHT]:b({message:p(),source:p().optional(),line:S().optional(),kind:p().optional()}).passthrough(),[w.VISIBLE_SHOWN]:ah,[w.ANIM_START]:b({name:p()}),[w.ANIM_END]:b({name:p()}),[w.SCROLL_POSITION]:b({x:S(),y:S(),percent:S(),direction:R(ch)}),[w.REVEAL_SHOWN]:ah.passthrough(),[w.SIGNAL]:b({name:p(),data:q().optional()}),[w.STATE_CHANGE]:b({name:p(),value:q().optional()}).passthrough(),[w.STORAGE_CHANGE]:b({area:R(Vs),key:p(),old:p().optional(),new:p().optional()}),[w.PAGE_HEALTH]:b({hidden:L(),focused:L(),reason:p().optional(),brand:R(qe).optional(),runtime:p().optional(),engine:p().optional(),windowLabel:p().optional(),documentStatus:S().int().optional()}).passthrough(),[w.CONTEXT_OPENED]:b({href:p().optional()}).passthrough(),[w.DIALOG_OPENED]:b({kind:pe(["alert","confirm","prompt"]),message:p().optional(),answered:wt([L(),tR()]).optional()}).passthrough(),[w.RENDER_COMMIT]:b({commits:S()}),[w.FOCUS_CHANGE]:b({to:p().optional(),from:p().optional(),toBody:L()}),[w.FIELD_CHANGE]:b({[Pt.FIELD]:p(),[Pt.KIND]:R(Yu),[Pt.LENGTH]:S().int().nonnegative(),[Pt.VALUE]:p().optional(),[Pt.REDACTED]:U(!0).optional(),[Pt.CHECKED]:L().optional(),[Pt.PREVIOUS]:p().optional(),[Pt.PREVIOUS_CHECKED]:L().optional()}),[w.FLOW_RECORDED]:b({name:p(),flow:q().optional()}),[w.TRANSPORT_OVERFLOW]:b({dropped:S()}),[w.TRUNCATED]:b({channel:p(),dropped:S()}),[w.BLIND_SPOT]:b({kind:R(cn),count:S()}),[w.SDK_FAILED]:b({site:p().max(64),message:p().max(500),errorType:p().max(64).optional()}),[w.NET_DETAIL]:b({url:p(),method:p().optional(),status:S(),headers:ie(p(),p()),resourceType:p().optional()}).passthrough(),[w.NET_RESPONSE_BODY]:b({id:p(),method:p(),url:p(),urlRaw:p().optional(),responseBody:p(),responseBodyTruncated:L().optional(),responseBodyReason:R(sr).optional()}).passthrough(),[w.HUMAN_CONTROL]:hI,[w.HUMAN_MARK]:gI,[w.HUD_USED]:mI,[w.MEDIA_STATE]:b({event:R(Cu),tag:pe(["video","audio"]),currentTime:S(),duration:S().optional(),readyState:S().int().min(0).max(4),paused:L()}),[w.CANVAS_DIGEST]:b({digest:p(),width:S().int().nonnegative(),height:S().int().nonnegative(),mean:kf([S(),S(),S()]),trigger:R(ks).optional()})}});var Pee,yI=y(()=>{"use strict";Kt();Pee=new Set([w.NET_REQUEST,w.NET_PENDING,w.NET_STREAM,w.NET_DETAIL,w.NET_RESPONSE_BODY,w.CONSOLE_ERROR,w.CONSOLE_WARN,w.ERROR_UNCAUGHT,w.ROUTE_CHANGE,w.SIGNAL,w.STORAGE_CHANGE,w.FLOW_RECORDED,w.TRANSPORT_OVERFLOW,w.TRUNCATED,w.BLIND_SPOT])});var wI=y(()=>{"use strict"});var vI,NI=y(()=>{"use strict";vI=e=>e});var ye,Gee,Vee,jee,RI=y(()=>{"use strict";nh();ye={UI_ADVANCED_REQUEST_FAILED:"ui-advanced-request-failed",UI_ADVANCED_UNSIGNALLED:"ui-advanced-unsignalled",SIGNAL_CONTRADICTED:"signal-contradicted",RESPONSE_IGNORED:"response-ignored",SIGNAL_WITHOUT_CONSEQUENCE:"signal-without-consequence",STATE_VS_RENDER:"state-vs-render",CONSEQUENCE_ELSEWHERE:"consequence-elsewhere",DUPLICATE_REQUEST:"duplicate-request",DUPLICATE_REQUEST_UNRELATED:"duplicate-request-unrelated",SCREEN_REQUEST_MISMATCH:"screen-request-mismatch",STALE_RESPONSE_APPLIED:"stale-response-applied",PARTIAL_FAILURE_IN_OK_RESPONSE:"partial-failure-in-ok-response",UNIT_MISMATCH:"unit-mismatch",PAGINATION_NOT_FETCHED:"pagination-not-fetched",WRITE_FIELD_IGNORED:"write-field-ignored",REQUEST_NEVER_SETTLED:"request-never-settled",FAILURE_MISATTRIBUTED:"failure-misattributed",ACTION_HAD_NO_EFFECT:"action-had-no-effect",ROUTE_RENDERED_NOTHING:"route-rendered-nothing",ROUTE_RENDERED_NOTHING_CRASHED:"route-rendered-nothing-crashed",EVIDENCE_SUPERSEDED:"evidence-superseded",EVIDENCE_PREDATES_EDIT:"evidence-predates-edit"},Gee=new Set([ye.REQUEST_NEVER_SETTLED,ye.UI_ADVANCED_UNSIGNALLED,ye.RESPONSE_IGNORED,ye.SIGNAL_WITHOUT_CONSEQUENCE,ye.STATE_VS_RENDER,ye.CONSEQUENCE_ELSEWHERE,ye.ROUTE_RENDERED_NOTHING,ye.ACTION_HAD_NO_EFFECT,ye.DUPLICATE_REQUEST,ye.EVIDENCE_SUPERSEDED,ye.EVIDENCE_PREDATES_EDIT]),Vee=new Set([ye.DUPLICATE_REQUEST_UNRELATED,ye.SCREEN_REQUEST_MISMATCH]),jee={[ye.UI_ADVANCED_REQUEST_FAILED]:[$.UI,$.NET],[ye.UI_ADVANCED_UNSIGNALLED]:[$.UI,$.NET],[ye.SIGNAL_CONTRADICTED]:[$.SIGNAL,$.NET],[ye.RESPONSE_IGNORED]:[$.NET,$.UI],[ye.SIGNAL_WITHOUT_CONSEQUENCE]:[$.SIGNAL,$.NET],[ye.STATE_VS_RENDER]:[$.STATE,$.UI],[ye.CONSEQUENCE_ELSEWHERE]:[$.NET,$.UI],[ye.DUPLICATE_REQUEST]:[$.NET,$.NET],[ye.DUPLICATE_REQUEST_UNRELATED]:[$.NET,$.NET],[ye.SCREEN_REQUEST_MISMATCH]:[$.UI,$.NET],[ye.STALE_RESPONSE_APPLIED]:[$.NET,$.UI],[ye.PARTIAL_FAILURE_IN_OK_RESPONSE]:[$.NET,$.NET],[ye.UNIT_MISMATCH]:[$.UI,$.NET],[ye.PAGINATION_NOT_FETCHED]:[$.UI,$.NET],[ye.WRITE_FIELD_IGNORED]:[$.NET,$.NET],[ye.REQUEST_NEVER_SETTLED]:[$.TIME,$.NET],[ye.FAILURE_MISATTRIBUTED]:[$.UI,$.NET],[ye.ACTION_HAD_NO_EFFECT]:[$.NET,$.UI],[ye.ROUTE_RENDERED_NOTHING]:[$.ROUTE,$.NET],[ye.ROUTE_RENDERED_NOTHING_CRASHED]:[$.ROUTE,$.LOG],[ye.EVIDENCE_SUPERSEDED]:[$.TIME,$.UI],[ye.EVIDENCE_PREDATES_EDIT]:[$.TIME,$.UI]}});var Ko,lh,Wee,Yee,OI=y(()=>{"use strict";Kt();Ko="__reticleIpc",lh="reticle_capture",Wee=ac.FULL_PAGE_UNSUPPORTED,Yee=ac.NOT_COMPOSITED});var II=y(()=>{"use strict"});var CI=y(()=>{"use strict"});var LI=y(()=>{"use strict"});function $I(e){return e===Ec.CALM||e===Ec.WAITING||e===Ec.ASK||e===Ec.WARN}var Ec,kI,ete,tte,zI=y(()=>{"use strict";Ec={CALM:"calm",WAITING:"waiting",ASK:"ask",WARN:"warn"};kI="note that a lease is a SEPARATE context: the human watching this tab sees nothing of what you do there, so prefer this tab while someone is following along",ete='tab hidden and may be un-focusable from here; timers and rAF are clamped in a background tab, so an action can land on a page that never advances. Refocus it, or acquire a guaranteed scriptable context yourself with `reticle_run { tool: "reticle_lease", args: { action: "acquire", url } }` (a human can equivalently run `reticle drive <url>`) \u2014 '+kI,tte="tab is not hidden but has not reported health recently \u2014 usually a quiet page rather than a stuck one, and very often still driveable. This is also the tab a human can see, so try it first. Timing-sensitive work (animations, debounces, gestures) is what degrades: pass `refuseWhenThrottled: true` to refuse rather than act over events that may not land. Lease a separate context only if a drive here actually fails; "+kI});var DI,OG,ste,ate,cte,PI=y(()=>{"use strict";ae();Kt();jo();Vo();DI=1,OG=b({harness:p().min(1).max(Z.MAX_REF_LENGTH),driver:p().min(1).max(Z.MAX_COMMAND_NAME_LENGTH),persona:p().max(1e3).optional()}),ste=b({v:U(DI),actionId:p().min(1).max(Z.MAX_REF_LENGTH),tool:p().min(1).max(Z.MAX_COMMAND_NAME_LENGTH),args:ie(p(),q()).default({}),effect:q().optional(),settled:L().optional(),settledInMs:S().int().min(0).optional(),seqRange:b({from:S().int().min(0),to:S().int().min(0)}).optional(),tRange:b({from:S().int().min(0),to:S().int().min(0)}),at:S().int().min(0),drivenBy:OG.optional(),agent:p().min(1).max(Z.MAX_REF_LENGTH).optional()}),ate=b({v:U(DI),channel:U(Bf.JOURNAL),capBytes:S().int().min(1).optional(),bytesOnDisk:S().int().min(0).optional(),droppedInBatch:S().int().min(0).optional(),at:S().optional()}),cte=b({claim:p().min(1).max(Z.MAX_STRING_LENGTH),verified:R(Hn),source:p().max(Z.MAX_URL_LENGTH).optional(),observed:p().max(Z.MAX_STRING_LENGTH).optional(),expected:p().max(Z.MAX_STRING_LENGTH).optional(),kind:R(z).optional(),declaredBeforeActing:L().optional(),net:C(b({method:p().max(Z.MAX_COMMAND_NAME_LENGTH),url:p().max(Z.MAX_URL_LENGTH),status:S().optional(),body:p().max(Z.MAX_STRING_LENGTH).optional()})).max(5).optional(),grade:p().max(Z.MAX_STRING_LENGTH).optional(),couldNotSee:C(p().max(Z.MAX_STRING_LENGTH)).optional(),reason:p().max(Z.MAX_STRING_LENGTH).optional(),intent:p().max(Z.MAX_STRING_LENGTH).optional(),intentDerived:L().optional(),failedPart:S().int().min(0).optional()})});var MI=y(()=>{"use strict"});var dte,UI=y(()=>{"use strict";ae();dte=b({port:S(),pid:S(),cwd:p(),projectId:p().optional(),startedAt:S()})});var fte,HI=y(()=>{"use strict";ae();fte=b({port:S(),pid:S(),root:p(),url:p(),sdkVersion:p().min(1).optional(),startedAt:S(),projectId:p().optional()})});var IG,mte,FI=y(()=>{"use strict";ae();IG=b({directory:p().min(1),lastSeenAt:S()}),mte=b({version:U(1),projects:ie(p(),IG)})});var CG,g_,LG,$G,kG,Ete,BI=y(()=>{"use strict";ae();CG=1,g_={DECLARED:"declared",BOUND:"bound",PROVED:"proved"},LG=b({route:p().optional(),flow:p().optional(),files:C(p()).optional()}),$G=b({verdictId:p(),grade:p(),at:S(),runId:p().optional()}),kG=b({id:p().min(1),statement:p().min(1),state:pe([g_.DECLARED,g_.BOUND,g_.PROVED]),declaredAt:S(),binding:q().optional(),surface:LG.optional(),provenBy:$G.optional(),amended:C(b({statement:p(),at:S()})).optional()}),Ete=b({version:U(CG),intents:ie(p(),kG)})});var GI=y(()=>{"use strict"});function Xu(e){return zG[e]}var mt,zG,DG,Ste,E_=y(()=>{"use strict";ae();mt={NO_SOURCE_MAPPING:"no-source-mapping",NO_STORE_REGISTERED:"no-store-registered",NO_SIGNAL_ON_MUTATION:"no-signal-on-mutation",UNDECLARED_CONTROL:"undeclared-control",MISSING_TESTID:"missing-testid",UNDECLARED_CHANGE:"undeclared-change",INTENT_UNDISCHARGED:"intent-undischarged",NO_FLOW_INTENT:"no-flow-intent",SOURCE_MAPPING_OFF:"source-mapping-off"},zG={[mt.NO_SOURCE_MAPPING]:"add the Reticle build plugin (@reticlehq/vite-plugin, @reticlehq/next, or the babel plugin) so elements carry data-reticle-source",[mt.NO_STORE_REGISTERED]:"import { registerStore } from '@reticlehq/browser' and call registerStore(name, store) with a subscribable store so its changes are observed; a bare getter is readable but does not report changes. For component-local React state, import { useReticleStore } from '@reticlehq/react/store' and call useReticleStore(name, value), assert the DOM, or read it with reticle_look { action: 'state', ref: '...' }",[mt.NO_SIGNAL_ON_MUTATION]:"fire reticle.signal(name, data) where this state is committed \u2014 commitAndSignal binds the two so they cannot drift",[mt.UNDECLARED_CONTROL]:"add this control to reticle.describe() so the capability contract matches what the app actually exposes",[mt.MISSING_TESTID]:'add data-testid="..." on this control so the flow can name it after a refactor',[mt.UNDECLARED_CHANGE]:'declare it with reticle_intent { action: "declare", intents: [{ id, statement }] } \u2014 the statement is prose, in your own words: which user does what, and what should become true',[mt.INTENT_UNDISCHARGED]:'draw a verdict whose `until` asserts the intent itself, then it discharges \u2014 or call reticle_run({ tool: "reticle_context" }) to see exactly what is still owed',[mt.SOURCE_MAPPING_OFF]:"nothing to install \u2014 this build has sourceMapping turned off, so no element carries data-reticle-source. Re-enable it in the Reticle plugin options unless this app renders through a non-DOM reconciler (react-three-fiber, react-pdf, ink), where the stamp is what would break it",[mt.NO_FLOW_INTENT]:'save it again with intent: "<which user does what, and what should become true>" \u2014 prose, in your own words \u2014 or set intentId to an intent already in the ledger'};DG={PIXELS_UNOBSERVED:"pixels-unobserved",CLAIM_ARITHMETIC_UNCHECKED:"claim-arithmetic-unchecked"},Ste=b({kind:R(DG),detail:p().min(1)})});var Zo,VI,wte,vte,jI=y(()=>{"use strict";ae();pc();E_();e_();Zo={PAGE_CONNECTED:"page connected",DOM_ACTIONS:"DOM actions",NETWORK:"network",CONSOLE:"console",APP_STATE:"app state (store registered)",SIGNALS:"signals on mutation",SOURCE_MAPPING:Qf,TEST_IDS:"stable test ids"},VI="run `npx @reticlehq/server init` in the app so its pages connect to Reticle in development",wte=[{capability:Zo.PAGE_CONNECTED,gaps:[],cost:"no page has connected, so nothing can be verified",fix:VI},{capability:Zo.DOM_ACTIONS,channel:$.UI,always:!0,gaps:[],cost:"controls cannot be driven or read",fix:VI},{capability:Zo.NETWORK,channel:$.NET,always:!0,gaps:[],cost:"requests cannot be asserted, so a save that never reached the server can pass",fix:"update @reticlehq/browser so the page reports its network channel"},{capability:Zo.CONSOLE,channel:$.LOG,always:!0,gaps:[],cost:"errors thrown in the page are invisible to a verdict",fix:"update @reticlehq/browser so the page reports its console channel"},{capability:Zo.APP_STATE,channel:$.STATE,gaps:[mt.NO_STORE_REGISTERED],cost:"state predicates fall back to reading the DOM",fix:Xu(mt.NO_STORE_REGISTERED)},{capability:Zo.SIGNALS,channel:$.SIGNAL,gaps:[mt.NO_SIGNAL_ON_MUTATION],cost:"the app never says it succeeded, so every verdict infers success from the DOM",fix:Xu(mt.NO_SIGNAL_ON_MUTATION)},{capability:Zo.SOURCE_MAPPING,channel:Gs.SOURCE,gaps:[mt.NO_SOURCE_MAPPING,mt.SOURCE_MAPPING_OFF],perControl:[mt.NO_SOURCE_MAPPING],cost:"a broken control is named, never the line that renders it",fix:Xu(mt.NO_SOURCE_MAPPING)},{capability:Zo.TEST_IDS,channel:Gs.TESTID,gaps:[mt.MISSING_TESTID],cost:"a saved flow loses its controls after a refactor",fix:Xu(mt.MISSING_TESTID)}],vte=C(R(Zo)).max(8)});var KI=y(()=>{"use strict"});function PG(e){return Array.isArray(e)||typeof e=="string"}function MG(e){if(Array.isArray(e))return{keys:[...e.slice(0,49).map((n,r)=>String(r)),b_],total:e.length+1};if(typeof e=="string")return{keys:[b_],total:1};if(e instanceof Map){let t=[],n=0;for(let r of e.keys())n+=1,typeof r=="string"&&t.length<49&&t.push(r);return e.has(qu)?{keys:t,total:n}:{keys:[...t,qu],total:n+1}}if(e instanceof Set){let t=[];for(let n of e)typeof n=="string"&&t.length<49&&t.push(n);return{keys:[...t,qu],total:e.size+1}}if(typeof e=="object"&&e!==null){let t=Object.keys(e);return{keys:t.slice(0,50),total:t.length}}return{keys:[],total:0}}function uh(e){let{keys:t,total:n}=MG(e);return{found:!1,value:null,availableKeys:t,...n>t.length?{totalKeys:n}:{}}}function ZI(e,t){let n=t.split(".").filter(o=>o.length>0),r=e;for(let o of n){if(b_===o&&PG(r)){r=r.length;continue}if(Array.isArray(r)){let i=Number(o);if(!Number.isInteger(i)||i<0||String(i)!==o||i>=r.length)return uh(r);r=r[i];continue}if(r instanceof Map){if(r.has(o)){r=r.get(o);continue}if(qu===o){r=r.size;continue}return uh(r)}if(r instanceof Set){if(qu===o){r=r.size;continue}if(r.has(o)){r=!0;continue}return uh(r)}if(typeof r=="object"&&r!==null&&Object.hasOwn(r,o)){r=r[o];continue}return uh(r)}return{found:!0,value:r}}function bc(e,t){if(t<0)return e;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(e instanceof Set)return t===0?`[Set(${String(e.size)})]`:[...e].map(n=>bc(n,t-1));if(e instanceof Map){if(t===0)return`{Map(${String(e.size)})}`;let n=Object.create(null);for(let[r,o]of e)n[String(r)]=bc(o,t-1);return n}if(Array.isArray(e))return t===0?`[Array(${String(e.length)})]`:e.map(n=>bc(n,t-1));if(typeof e=="object"&&e!==null){let n=Object.keys(e);if(t===0)return`{\u2026${String(n.length)} keys}`;let r=Object.create(null);for(let o of n)r[o]=bc(e[o],t-1);return r}return e}var b_,qu,WI=y(()=>{"use strict";b_="length";qu="size"});var Cte,Lte,YI=y(()=>{"use strict";Kt();Cte={[Se.ENABLED]:"en",[Se.DISABLED]:"dis",[Se.CHECKED]:"chk",[Se.EXPANDED]:"exp",[Se.PRESSED]:"prs",[Se.FOCUSED]:"focus"},Lte=new Set([Se.PRESENT,Se.VISIBLE,Se.HIDDEN])});var js,kte,zte,XI=y(()=>{"use strict";ae();js={SHARE_PROOF:"share_proof",RUN_HISTORY:"run_history",TEAM_REVIEW:"team_review",CORPUS_HEAL:"corpus_heal",CI_GATE:"ci_gate",HOSTED_RUNNER:"hosted_runner"},kte=b({capability:R(js),reason:p(),unlockedBy:p(),learnMoreUrl:p().url()}),zte={[js.SHARE_PROOF]:{reason:"Sharing a verification result with a teammate needs a hosted, linkable proof page.",unlockedBy:"Link a free Reticle Cloud account (reticle connect), then share the run."},[js.RUN_HISTORY]:{reason:"Run history beyond this session lives in the hosted dashboard; local keeps only a buffer.",unlockedBy:"Link a free Reticle Cloud account to keep run history and trends."},[js.TEAM_REVIEW]:{reason:"A shared review queue of pinned mistakes is a team feature \u2014 it needs a hosted store.",unlockedBy:"Add your team to Reticle Cloud to share a review queue."},[js.CORPUS_HEAL]:{reason:"Corpus-ranked heal uses refactor outcomes learned across the fleet, served from the cloud.",unlockedBy:"Enable the hosted heal service on Reticle Cloud."},[js.CI_GATE]:{reason:"Verify-before-merge is a governance gate that runs in your CI against a hosted policy.",unlockedBy:"Configure the Reticle Cloud CI gate for your repository."},[js.HOSTED_RUNNER]:{reason:"Verifying without a local browser (CI, a background agent, or a deployed URL) needs a browser we run for you.",unlockedBy:"Link a Reticle Cloud account to run verifications on hosted browsers."}}});var Ju,qI,JI,QI,UG,e0,t0=y(()=>{"use strict";ae();Ju={INSTALL:"install",ONBOARD:"onboard",FIRST_RUN:"first_run"},qI={STARTED:"started",COMPLETED:"completed",FAILED:"failed",ABANDONED:"abandoned",SKIPPED:"skipped"},JI={[Ju.INSTALL]:["script_started","runtime_ready","cli_installed","agents_detected","mcp_registered"],[Ju.ONBOARD]:["tour_started","concept_shown","first_look","first_act","first_verdict"],[Ju.FIRST_RUN]:["project_detected","next_step_offered","instrumented","app_connected","driven","flow_recorded","verdict_produced"]},QI={LEASE:"lease",INIT_CONSENT:"init_consent"},UG=Object.values(JI).flatMap(e=>[...e]),e0=b({phase:R(Ju),step:pe(UG),status:R(qI),elapsedMs:S().int().nonnegative().optional(),reason:p().max(64).optional(),stack:p().max(64).optional(),unattended:L().optional(),firstEver:L().optional(),offered:R(QI).optional(),nextFollowed:L().optional()})});var n0,__=y(()=>{"use strict";n0={AUTH_REFUSED:"auth_refused",LEASE_EXPIRED:"lease_expired",TAB_GONE:"tab_gone",NAVIGATED_AWAY:"navigated_away",ROUTE_SERVER_ERROR:"route_server_error",APP_NOT_REOPENED:"app_not_reopened",CONFIG_ELSEWHERE:"config_elsewhere",NO_LISTENER_NO_CONFIG:"no_listener_no_config",NO_LISTENER:"no_listener",NO_CONFIG:"no_config",SDK_NOT_REACHING_DAEMON:"sdk_not_reaching_daemon"}});var HG,r0,S_=y(()=>{"use strict";ae();__();HG={NO_SESSION:"no_session",NO_MATCH:"no_match",UNSUPPORTED:"unsupported",BAD_ARGS:"bad_args",NOT_READY:"not_ready",OTHER:"other"},r0=b({tool:p().min(1).max(64),reason:R(HG),noSessionReason:R(n0).optional(),retried:L()})});var FG,i0,Fte,o0,BG,GG,T_,VG,jG,s0,KG,ZG,a0,x_=y(()=>{"use strict";ae();FG={CONNECT:"connect",CLOSE_GAPS:"close_gaps",SWITCH_ON:"switch_on",EXPLORE:"explore"},i0={B0:"0-19",B20:"20-39",B40:"40-59",B60:"60-79",B80:"80-100"},Fte=Object.values(i0),o0=b({fingerprint:p().min(1).max(64),count:S().int().nonnegative(),message:p().max(300),tool:p().max(64).optional()}),BG={NONE:"none",LOCAL_ONLY:"local_only",REMOTE:"remote"},GG={GITHUB:"github",GITLAB:"gitlab",BITBUCKET:"bitbucket",AZURE:"azure",SOURCEHUT:"sourcehut",CODEBERG:"codeberg",SELF_HOSTED:"self_hosted"},T_=b({rssMb:S().int().nonnegative(),heapUsedMb:S().int().nonnegative(),freeMemMb:S().int().nonnegative(),totalMemMb:S().int().nonnegative(),load1x100:S().int().nonnegative(),cpuCount:S().int().nonnegative()}),VG=b({totalMs:S().int().nonnegative(),maxMs:S().int().nonnegative()}),jG=b({attempts:S().int().nonnegative(),successes:S().int().nonnegative(),failures:ie(p(),S().int().nonnegative()).optional()}),s0=b({durationMs:S().int().nonnegative(),toolCalls:S().int().nonnegative(),toolCounts:ie(p(),S().int().nonnegative()),toolErrors:S().int().nonnegative(),errors:C(o0).max(40).optional(),sdkFailures:S().int().nonnegative().optional(),sdkErrors:C(o0).max(40).optional(),verifications:S().int().nonnegative(),bugsFound:S().int().nonnegative().optional(),bugKinds:ie(p(),S().int().nonnegative()).optional(),toolParams:ie(p(),ie(p(),S().int().nonnegative())).optional(),connections:ie(p(),jG).optional(),toolTiming:ie(p(),VG).optional(),busyMs:S().int().nonnegative().optional(),browserMs:S().int().nonnegative().optional(),browserCommands:S().int().nonnegative().optional(),peakConcurrentTools:S().int().nonnegative().optional(),unknownToolCalls:S().int().nonnegative().optional(),unknownTools:ie(p().max(64),S().int().nonnegative()).optional(),noSessionErrors:S().int().nonnegative().optional(),postSocketFailures:S().int().nonnegative().optional(),postRetriesSaved:S().int().nonnegative().optional(),consecutiveRepeats:ie(p(),S().int().positive()).optional(),abandonedActions:S().int().nonnegative().optional(),machine:T_.optional(),clients:C(p().max(64)).max(8).optional(),clientVersions:ie(p().max(64),p().max(32)).optional(),surface:p().max(32).optional(),appConnects:S().int().nonnegative().optional(),msToFirstApp:S().int().nonnegative().optional(),sdkVersion:p().min(1).max(32).optional(),toolCallsBeforeApp:S().int().nonnegative().optional(),endReason:pe(["never_used","explored","abandoned","verified","client_left"]).optional(),feedbackPrompted:S().int().nonnegative().optional(),errorClasses:ie(p().max(16),S().int().nonnegative()).optional(),errorsRecovered:S().int().nonnegative().optional(),errorsRepeated:S().int().nonnegative().optional(),endedWithVerdict:L().optional(),lifetimeToolCalls:S().int().nonnegative().optional(),lifetimeVerifications:S().int().nonnegative().optional(),lifetimeBugsFound:S().int().nonnegative().optional(),updateNudged:L().optional(),updateOffered:p().max(32).optional(),hudControls:ie(p(),S()).optional(),hudViewMs:ie(p(),S()).optional(),hudPanelMs:ie(p(),S()).optional(),hudSlides:ie(p(),S()).optional(),hudJourney:C(p().max(64)).max(60).optional(),hudJourneyCut:U(!0).optional(),nudgesShown:sb(R(FG),S().int().positive()).optional(),harnessRefusedCoverage:sb(R(i0),S().int().positive()).optional(),final:L(),exit:pe(["idle","signal","unknown"]).optional()}),KG={TINY:"tiny",SMALL:"small",MEDIUM:"medium",LARGE:"large",HUGE:"huge"},ZG={NO_APP_FOUND:"no_app_found",MANIFEST_UNRECOGNISED:"manifest_unrecognised",WORKSPACE_APPS_UNRECOGNISED:"workspace_apps_unrecognised",WORKSPACE_ROOT_NO_APPS:"workspace_root_no_apps",DISCOVERY_FAILED:"discovery_failed"},a0=b({stack:p().min(1).max(64).optional(),stackSource:pe(["cwd","workspace"]).optional(),stackUnknownReason:R(ZG).optional(),stackMajor:S().int().nonnegative().optional(),size:R(KG).optional(),monorepo:L().optional(),git:R(BG),forge:R(GG).optional(),ageWeeks:S().int().nonnegative().optional(),flowCount:S().int().nonnegative(),baselineCount:S().int().nonnegative(),visualBaselineCount:S().int().nonnegative(),runCount:S().int().nonnegative(),hasContract:L(),initialized:L().optional(),appConnectedBefore:L().optional(),capsuleCount:S().int().nonnegative(),featuresUsed:C(p().max(32)).max(24),featureDepth:S().min(0).max(1)})});var c0,A_=y(()=>{"use strict";c0={ACTIVE:"active",MISSING:"missing",INVALID:"invalid",EXPIRED:"expired",EVAL:"eval"}});var WG,YG,XG,y_,qG,JG,QG,eV,tV,nV,rV,oV,l0,u0,iV,sV,aV,cV,lV,uV,d0,w_=y(()=>{"use strict";ae();Gu();WG={SIGNED_OUT:"signed_out",SIGNED_IN:"signed_in",LINKED:"linked"},YG={CLAUDE_CODE:"claude_code",CLAUDE_DESKTOP:"claude_desktop",CODEX:"codex",CURSOR:"cursor",GEMINI_CLI:"gemini_cli",ANTIGRAVITY:"antigravity",WINDSURF:"windsurf",CLINE:"cline",OPENCODE:"opencode",ZED:"zed",VSCODE:"vscode",OTHER:"other"},XG={NPX:"npx",GLOBAL:"global",PROJECT:"project",OTHER:"other"},y_={ZERO:"0",ONE:"1",TWO_THREE:"2-3",FOUR_NINE:"4-9",TEN_PLUS:"10+"},qG=b({view:R(Dt).optional(),surface:R(ki).optional(),tabs:R(y_).optional()}),JG={CONNECT:"connect",HUD:"hud",LINK:"link"},QG=b({via:R(JG)}),eV={STARTED:"started",COMPLETED:"completed"},tV={PROVED:"proved",NOT_PROVED:"not_proved",FAILED:"failed",BLOCKED:"blocked",STOPPED:"stopped"},nV={NOT_LINKED:"not_linked",PLATFORM_UNREACHABLE:"platform_unreachable",HARNESS_OFF:"harness_off",NO_CREDITS:"no_credits",NOT_ENTITLED:"not_entitled",COVERAGE_GATE:"coverage_gate",VERSION_SKEW:"version_skew",BROKEN:"broken",OTHER:"other"},rV={AGENT:"agent",HUD:"hud",DASHBOARD:"dashboard",CLI_TRY:"cli_try",PLAN:"plan"},oV=b({phase:R(eV),source:R(rV),hosted:L(),outcome:R(tV).optional(),journeys:R(y_).optional(),replayed:R(y_).optional(),reason:R(nV).optional()}),l0={accountState:R(WG).optional(),linked:L().optional(),workspaceId:p().min(1).max(128).optional(),client:R(YG).optional(),launch:R(XG).optional(),hud:qG.optional(),link:QG.optional(),harness:oV.optional()},u0={ECONNRESET:"ECONNRESET",ECONNREFUSED:"ECONNREFUSED",EPIPE:"EPIPE",ETIMEDOUT:"ETIMEDOUT",OTHER:"other"},iV={STDIN_END:"stdin_end",IDLE:"idle",CLIENT_GONE_STORM:"client_gone_storm",WAKE_FAILED:"wake_failed"},sV=b({reason:R(iV),uptimeMs:S().int().nonnegative(),drops:S().int().nonnegative(),toolCalls:S().int().nonnegative(),proxyId:p().min(1).max(64).optional()}),aV=b({ageMs:S().int().nonnegative()}),cV={DETACHED:"detached",WMI:"wmi",WMI_FALLBACK:"wmi_fallback"},lV={FOREIGN:"foreign",OTHER_PROJECT:"other_project"},uV=b({presence:R(lV)}),d0={proxyExit:sV.optional(),daemonDeath:aV.optional(),wakeRefusal:uV.optional(),spawnMethod:R(cV).optional()}});var dV,pV,p0,v_=y(()=>{"use strict";ae();dV={CONTRADICTION:"contradiction",CRAWL:"crawl",REPLAY:"replay",ASSERTION:"assertion"},pV={APP:"app",REQUEST:"request",RETICLE:"reticle",UNCLASSIFIED:"unclassified"},p0=b({source:R(dV),kind:p().min(1).max(64),falseGreen:L(),tool:p().min(1).max(64).optional(),repeat:L(),attribution:R(pV),fingerprint:p().max(16).optional(),occurrence:S().int().positive().optional()})});var fV,un,nne,hV,mV,gV,EV,bV,f0,_V,SV,TV,xV,AV,yV,wV,vV,NV,RV,OV,rne,h0=y(()=>{"use strict";ae();t0();S_();x_();gc();jo();gc();A_();w_();v_();v_();fV=3,un={RETICLE_INSTALLED:"reticle_installed",CLI_COMMAND_RUN:"cli_command_run",DAEMON_STARTED:"daemon_started",DAEMON_STOPPED:"daemon_stopped",SESSION_PROGRESS:"session_progress",VERIFICATION_COMPLETED:"verification_completed",PROJECT_PROFILED:"project_profiled",VERSION_CHANGED:"version_changed",RUNTIME_CRASHED:"runtime_crashed",FEEDBACK_SUBMITTED:"feedback_submitted",IDENTIFIED:"identified",MCP_CLIENT_CONNECTED:"mcp_client_connected",APP_INSTRUMENTED:"app_instrumented",MCP_CONNECTION_LOST:"mcp_connection_lost",MCP_PROXY_EXITED:"mcp_proxy_exited",DAEMON_DIED_UNCLEAN:"daemon_died_unclean",WAKE_REFUSED:"wake_refused",INIT_COMPLETED:"init_completed",ONBOARDING_STEP:"onboarding_step",BUG_FOUND:"bug_found",TOOL_REFUSED:"tool_refused",HUD_VIEWED:"hud_viewed",HUD_SIGNIN_PROMPTED:"hud_signin_prompted",PLATFORM_LINKED:"platform_linked",HARNESS_RUN:"harness_run"},nne=new Set([un.DAEMON_STARTED,un.DAEMON_STOPPED,un.SESSION_PROGRESS,un.MCP_CLIENT_CONNECTED,un.APP_INSTRUMENTED,un.PROJECT_PROFILED,un.VERIFICATION_COMPLETED,un.BUG_FOUND,un.RUNTIME_CRASHED,un.FEEDBACK_SUBMITTED,un.TOOL_REFUSED,un.HUD_VIEWED,un.HUD_SIGNIN_PROMPTED,un.HARNESS_RUN]),hV={HUMAN:"human",AGENT:"agent"},mV={GIT_ORIGIN:"git_origin",GIT_ROOT:"git_root",PACKAGE_ROOT:"package_root",CWD:"cwd"},gV={HARNESS:"harness"},EV=b({via:p().min(1).max(64),verified:p().min(1).max(16),passed:L(),falseGreenCaught:L(),durationMs:S().int().nonnegative().optional(),browser:p().min(1).max(16).optional(),brand:R(qe).optional(),reason:R(lt).optional(),uncleanLoss:R(YR).optional(),driven:R(gV).optional(),sdkVersion:p().min(1).max(32).optional()}),bV=b({from:p().min(1).max(64),to:p().min(1).max(64),nudged:L().optional(),direction:p().min(1).max(16)}),f0={RETICLE:"reticle",OTHER:"other"},_V=b({kind:p().min(1).max(32),errorType:p().min(1).max(64).optional(),fingerprint:p().min(1).max(64).optional(),message:p().max(300).optional(),frames:C(p().max(120)).max(12).optional(),tool:p().min(1).max(64).optional(),breadcrumb:C(p().max(64)).max(12).optional(),nodeVersion:p().max(24).optional(),arch:p().max(16).optional(),machine:T_.optional(),syscall:p().max(32).optional(),errno:p().max(32).optional(),loopback:L().optional(),port:pe([f0.RETICLE,f0.OTHER]).optional(),internalFrame:p().max(64).optional()}),SV=b({reconnect:L(),daemonAgeMs:S().int().nonnegative(),client:p().min(1).max(64).optional(),appConnected:L().optional(),proxyId:p().min(1).max(64).optional()}),TV=b({initialized:L(),agentAttached:L(),msToFirstApp:S().int().nonnegative(),firstEver:L().optional()}),xV={FIRST:"first",BUDGET_SPENT:"budget_spent",RECOVERED:"recovered"},AV={SSE_ENDED:"sse_ended",DAEMON_SHUTDOWN:"daemon_shutdown",SSE_ERROR:"sse_error",SSE_ABORTED:"sse_aborted",SSE_CLOSED:"sse_closed",CONNECT_ERROR:"connect_error",SSE_RESET:"sse_reset",OTHER:"other"},yV=b({stage:R(xV),reason:R(AV),attempts:S().int().nonnegative(),pendingLost:S().int().nonnegative().optional(),errCode:R(u0).optional(),responded:L().optional(),proxyId:p().min(1).max(64).optional()}),wV={SKILL_FILE:"skill_file",NPX_SKILL:"npx_skill",PLUGIN:"plugin",INSTALL_SCRIPT:"install_script",DOCS_SITE:"docs_site",README:"readme",BLOG:"blog",CLI_DIRECT:"cli_direct",UNKNOWN:"unknown"},vV={CONTAINER:"container",HOSTED_WORKSPACE:"hosted_workspace",CI_RUNNER:"ci_runner",AGENT_SANDBOX:"agent_sandbox"},NV={CONNECTED:"connected",NO_DAEMON:"no_daemon",NO_SESSION:"no_session",NO_PAGE:"no_page"},RV={NO_DEV_COMMAND:"no_dev_command",SPLIT_LOOPBACK:"split_loopback",PORT_BUSY:"port_busy",DEV_SERVER_EXITED:"dev_server_exited",NO_URL:"no_url",NOT_READY:"not_ready",PAGE_NOT_SERVED:"page_not_served",PAGE_TLS_REFUSED:"page_tls_refused",SDK_MISSING:"sdk_missing",NO_SESSION:"no_session",DESKTOP_NO_SESSION:"desktop_no_session"},OV=b({ok:L(),reason:p().max(64).optional(),stack:p().max(64).optional(),mcpRegistered:L().optional(),confirmation:R(NV).optional(),stop:R(RV).optional()}),rne=b({v:U(fV),anonymousId:p().min(1).max(128),projectId:p().min(1).max(128).optional(),sessionId:p().min(1).max(64).optional(),event:R(un),ts:S().int().nonnegative(),version:p().min(1).max(64),ci:L(),automation:R(vV).optional(),projectIdSource:R(mV).optional(),os:p().min(1).max(32),tzOffsetMin:S().int().min(-900).max(900).optional(),internal:L().optional(),idEphemeral:L().optional(),feedback:TI.optional(),actor:R(hV).optional(),command:p().min(1).max(32).optional(),flags:C(p().max(32)).max(16).optional(),session:s0.optional(),project:a0.optional(),verification:EV.optional(),versionChange:bV.optional(),crash:_V.optional(),identity:xI.optional(),connection:SV.optional(),init:OV.optional(),onboarding:e0.optional(),bug:p0.optional(),refusal:r0.optional(),outage:yV.optional(),instrumentation:TV.optional(),installSource:R(wV).optional(),licenseId:p().min(1).max(64).optional(),licenseStatus:R(c0).optional(),licenseKeyPresent:L().optional(),...l0,...d0})});var m0=y(()=>{"use strict"});var g0,N_=y(()=>{"use strict";cb();g0={SESSIONS:"reticle_sessions",LOOK:"reticle_look",SNAPSHOT:"reticle_snapshot",QUERY:"reticle_query",INSPECT:"reticle_inspect",ACT:sc.ACT,ACT_SEQUENCE:sc.ACT_SEQUENCE,ACT_AND_WAIT:sc.ACT_AND_WAIT,OBSERVE:"reticle_observe",LINEAGE:"reticle_lineage",WAIT_FOR:"reticle_wait_for",NETWORK:"reticle_network",CONSOLE:"reticle_console",ANIMATIONS:"reticle_animations",ASSERT:"reticle_assert",RECONCILE:"reticle_reconcile",BASELINE_SAVE:"reticle_baseline_save",BASELINE_LIST:"reticle_baseline_list",DIFF:"reticle_diff",RECORD_START:"reticle_record_start",RECORD_STOP:"reticle_record_stop",REPLAY:"reticle_replay",EXPLORE:"reticle_explore",NARRATE:"reticle_narrate",CLOCK:"reticle_clock",STATE:"reticle_state",STORAGE:"reticle_storage",CAPABILITIES:"reticle_capabilities",CONTRACT_SAVE:"reticle_contract_save",DOMAIN:"reticle_domain",FLOW_SAVE:"reticle_flow_save",FLOW_LIST:"reticle_flow_list",FLOW_LOAD:"reticle_flow_load",FLOW_DELETE:"reticle_flow_delete",FLOW_REPLAY:"reticle_flow_replay",FLOW_VERIFY:"reticle_flow_verify",FLOW_SAVE_RECORDED:"reticle_flow_save_recorded",FLOW_HEAL:"reticle_flow_heal",FLOW_MUTATE:"reticle_flow_mutate",ANNOTATE:"reticle_annotate",AFFECTED:"reticle_affected",COVERAGE:"reticle_coverage",VERIFY_CHANGE:"reticle_verify_change",VERIFY_EXPLORE:"reticle_verify_explore",INTENT:"reticle_intent",CONTEXT:"reticle_context",MAP:"reticle_map",VERIFY:"reticle_verify",PROJECT:"reticle_project",ACCOUNT:"reticle_account",MEMORY:"reticle_memory",RUN_RECORD:"reticle_run_record",SCREENSHOT:"reticle_screenshot",NETWORK_MOCK:"reticle_network_mock",VIEWPORT:"reticle_viewport",VISUAL_DIFF:"reticle_visual_diff",CRAWL:"reticle_crawl",SCROLL_TO:"reticle_scroll_to",SESSION_TUNE:"reticle_session_tune",END_SESSION:"reticle_end_session",YIELD:"reticle_yield",RESUME:"reticle_resume",MESSAGES:"reticle_messages",REVIEW:"reticle_review",WAIT_READY:"reticle_wait_ready",NAVIGATE:"reticle_navigate",REFRESH:"reticle_refresh",RUN_EXPORT:"reticle_run_export",BASELINE:"reticle_baseline",SESSION:"reticle_session",RECORD:"reticle_record",FLOW:"reticle_flow",LEASE:"reticle_lease",LEASE_ACQUIRE:"reticle_lease_acquire",LEASE_RELEASE:"reticle_lease_release",TOOLS:"reticle_tools",RUN:"reticle_run",FEEDBACK:"reticle_feedback"}});var E0,IV,dh,CV,une,dne,pne,b0=y(()=>{"use strict";ae();N_();E0="reticle connect",IV={HARNESS_NOT_LINKED:"harness_not_linked"},dh={HUMAN:"human",AGENT:"agent"},CV=vt("who",[b({who:U(dh.HUMAN),run:p()}),b({who:U(dh.AGENT),tool:p()})]),une=b({code:pe([IV.HARNESS_NOT_LINKED]),next:C(CV)}),dne=[{who:dh.HUMAN,run:E0},{who:dh.AGENT,tool:g0.ACT_AND_WAIT}],pne=`Connect your Reticle account to run the Harness: \`${E0}\`.`});var _0=y(()=>{"use strict"});var S0=y(()=>{"use strict"});var Sne,Tne,xne,Ane,T0=y(()=>{"use strict";pc();gc();th();Kt();Sne={[zi.WEB]:{surface:or.WEB,isDesktopShell:!1,usesWebKit:!1,ownsCoverageKinds:!1,hasOwnBaselineDirectory:!1},[zi.ELECTRON]:{surface:or.DESKTOP,isDesktopShell:!0,projectMarker:{dependency:"electron"},usesWebKit:!1,ownsCoverageKinds:!0,hasOwnBaselineDirectory:!0},[zi.TAURI]:{surface:or.DESKTOP,isDesktopShell:!0,projectMarker:{file:"src-tauri/tauri.conf.json"},usesWebKit:!0,ownsCoverageKinds:!1,hasOwnBaselineDirectory:!0}},Tne=new Set(Object.values(rr)),xne={[zi.WEB]:so.WEB,[zi.ELECTRON]:so.WEBVIEW,[zi.TAURI]:so.WEBVIEW},Ane={[or.WEB]:{reset:"cheap",replayPrefix:"free",time:"injectable",observation:"exact",actions:"reversible"},[or.DESKTOP]:{reset:"cheap",replayPrefix:"free",time:"injectable",observation:"exact",actions:"reversible"},[or.MOBILE]:{reset:"costly",replayPrefix:"costly",time:"wall",observation:"exact",actions:"reversible"},[or.SERVICE]:{reset:"costly",replayPrefix:"unsafe",time:"wall",observation:"exact",actions:"irreversible"},[or.GAME]:{reset:"cheap",replayPrefix:"free",time:"stepped",observation:"exact",actions:"reversible"},[or.DEVICE]:{reset:"costly",replayPrefix:"unsafe",time:"wall",observation:"sampled",actions:"irreversible"}}});var y0,LV,$V,x0,kV,w0,zV,A0,DV,xt,PV,MV,UV,HV,FV,BV,v0,GV,VV,N0,R_=y(()=>{"use strict";ae();y0=b({calls:S().int().nonnegative(),verdicts:S().int().nonnegative(),passed:S().int().nonnegative(),failed:S().int().nonnegative(),unknown:S().int().nonnegative(),refusals:S().int().nonnegative(),marks:S().int().nonnegative(),sessions:S().int().nonnegative(),tokensReturned:S().int().nonnegative(),drivingMs:S().int().nonnegative()}),LV=b({date:p(),counts:y0}),$V=b({longestRunMs:S().int().nonnegative(),bestVerdictDay:S().int().nonnegative(),bestDefectDay:S().int().nonnegative(),streakDays:S().int().nonnegative(),bestStreakDays:S().int().nonnegative()}),x0=b({value:S().nonnegative(),basis:p()}),kV=b({tokens:x0,minutes:x0}),w0=10,zV=b({at:S().int().nonnegative(),title:p(),detail:p().optional(),source:p().optional()}),A0=b({counts:y0,days:C(LV),records:$V,savings:kV,since:S().int().nonnegative(),defects:C(zV).default([])}),DV=b({signedIn:L(),org:p().optional(),email:p().optional(),host:p().optional()}),xt={FREE:"free",TRIAL:"trial",PAID:"paid"},PV=b({provider:p(),harnessEnabled:L(),harnessEntitled:L(),providerReady:L().optional(),credits:b({used:S().min(0),limit:S().min(0),kind:pe([xt.FREE,xt.TRIAL,xt.PAID]).optional(),daysLeft:S().int().min(0).optional()}).optional(),platformUrl:p().optional(),planUrl:p().optional(),plan:b({kind:pe([xt.FREE,xt.TRIAL,xt.PAID]),daysLeft:S().int().min(0).optional(),seats:S().int().min(0).optional()}).optional(),harnessRuns:S().int().min(0).optional(),memoryEntries:S().int().min(0).optional()}),MV=60,UV=b({runId:p(),steps:S().int().min(0),lines:C(p()).max(MV).optional()}),HV=b({runUrl:p().optional(),said:p().optional(),seq:S().int().min(0).optional()}),FV=500,BV=5,v0=64,GV=b({text:p().max(FV),seen:L(),by:p().max(v0).optional()}),VV=b({agents:C(p().max(v0)).max(8),notes:C(GV).max(BV)}),N0=b({schemaVersion:S().int().positive(),project:A0,global:A0,projectName:p().optional(),dashboardUrl:p().optional(),account:DV.optional(),harnessConfig:PV.optional(),harnessDrive:UV.optional(),lastDrive:HV.optional(),agent:VV.optional(),notices:C(q()).max(8).optional(),coverage:ie(p(),S()).optional(),sync:ie(p(),q()).optional(),instrumentation:ie(p(),q()).optional()})});var R0=y(()=>{"use strict"});function _c(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t.toString(16).padStart(8,"0")}function O0(e){let t=Object.keys(e).sort().map(n=>{var r;return`${n}:${[...(r=e[n])!=null?r:[]].sort().join(",")}`}).join("|");return _c(t)}var O_,Qu,I0=y(()=>{"use strict";Kt();O_=O0({messageKinds:Object.values(sn),commands:Object.values(H),actions:Object.values(D),events:Object.values(w)}),Qu={commands:Object.values(H),events:Object.values(w),actions:Object.values(D)}});var C0,L0=y(()=>{"use strict";C0="[Reticle] this page could not open a websocket to "});var $0=y(()=>{"use strict"});var M=y(()=>{"use strict";_A();mO();gO();EO();SO();Kt();Zb();xO();wO();NO();$O();Xb();kO();jo();zO();DO();PO();Jb();Gu();BO();e_();ZO();YO();XO();f_();ih();EI();bI();AI();yI();Iu();cb();hO();pb();wI();Cb();Rb();Lb();NI();Hu();RI();OI();Vo();Mb();Db();Fb();Bb();Gb();II();CI();LI();zI();PI();MI();UI();HI();FI();BI();GI();E_();jI();KI();u_();s_();WI();YI();XI();h0();__();S_();m0();N_();b0();_0();th();nh();S0();T0();x_();w_();A_();gc();R_();R0();I0();L0();$0()});function ke(e,t){return e[t]}function k0(e){let t=Object.getOwnPropertyDescriptor(e,"value");return t===void 0?void 0:ke(t,"set")}var Wo=y(()=>{"use strict"});function ZV(){for(let e of Di)e.deref()===void 0&&Di.delete(e);for(;Di.size>jV;){let e=Di.values().next();if(e.done===!0)break;Di.delete(e.value)}}function P0(){let e=[];for(let t of Di){let n=t.deref();n!==void 0&&e.push(n)}return e}function D0(e,t){if(!z0.has(e)){z0.add(e),Di.add(new WeakRef(e)),C_+=1,C_>=KV&&(C_=0,ZV()),L_.add(t);for(let n of ph)n(e)}}function M0(){return P0()}function U0(e){return L_.has(e)}function Ks(e){if(!L_.has(e))return null;for(let t of P0())if(t.host===e)return t;return null}function H0(e){return ph.add(e),()=>ph.delete(e)}function F0(){let e=Element.prototype,t=ke(e,"attachShadow");if(typeof t!="function")return()=>{};I_+=1;let n=function(i){let s=t.call(this,i);return D0(s,this),s};e.attachShadow=n;let r=o=>{for(let i of o.querySelectorAll("*")){let s=i.shadowRoot;s!==null&&(D0(s,i),r(s))}};return document.documentElement!==null&&r(document.documentElement),()=>{ke(e,"attachShadow")===n&&(e.attachShadow=t),I_-=1,!(I_>0)&&(Di.clear(),ph.clear())}}function WV(e){let t=e.parentElement;if(t===null||t.shadowRoot!==null)return null;let n=Ks(t);if(n===null)return null;for(let r of Array.from(n.querySelectorAll("slot")))if(r.assignedElements().includes(e))return r;return null}function Pi(e){var r;let t=(r=e.assignedSlot)!=null?r:WV(e);if(t!==null)return t;if(e.parentElement!==null)return e.parentElement;let n=e.getRootNode().host;return n!=null?n:null}var I_,Di,z0,L_,jV,KV,C_,ph,Yo=y(()=>{"use strict";Wo();I_=0,Di=new Set,z0=new WeakSet,L_=new WeakSet,jV=4e3,KV=250,C_=0;ph=new Set});function B0(e,t){var o;if(e===null||typeof e!="object")return;let r=((o=e.ownerDocument)!=null?o:e).defaultView;if(r!=null)return r[t]}function Gn(e,t,n){var o;let r=(o=B0(e,t))!=null?o:n;return typeof r=="function"&&e instanceof r}function Z0(e){let t=vn(e)?"HTMLTextAreaElement":"HTMLInputElement",n=B0(e,t);if(typeof n!="function")return;let r=n.prototype;return typeof r=="object"&&r!==null?r:void 0}var wn,$_,ut,YV,Mi,He,vn,$r,ed,G0,V0,j0,K0,fh,dn=y(()=>{"use strict";wn=e=>Gn(e,"Element",typeof Element=="undefined"?void 0:Element),$_=e=>Gn(e,"HTMLImageElement",typeof HTMLImageElement=="undefined"?void 0:HTMLImageElement),ut=e=>Gn(e,"HTMLElement",typeof HTMLElement=="undefined"?void 0:HTMLElement),YV=e=>Gn(e,"SVGElement",typeof SVGElement=="undefined"?void 0:SVGElement),Mi=e=>ut(e)||YV(e),He=e=>Gn(e,"HTMLInputElement",typeof HTMLInputElement=="undefined"?void 0:HTMLInputElement),vn=e=>Gn(e,"HTMLTextAreaElement",typeof HTMLTextAreaElement=="undefined"?void 0:HTMLTextAreaElement),$r=e=>Gn(e,"HTMLSelectElement",typeof HTMLSelectElement=="undefined"?void 0:HTMLSelectElement),ed=e=>Gn(e,"HTMLButtonElement",typeof HTMLButtonElement=="undefined"?void 0:HTMLButtonElement),G0=e=>Gn(e,"HTMLMeterElement",typeof HTMLMeterElement=="undefined"?void 0:HTMLMeterElement),V0=e=>Gn(e,"HTMLOutputElement",typeof HTMLOutputElement=="undefined"?void 0:HTMLOutputElement),j0=e=>Gn(e,"HTMLProgressElement",typeof HTMLProgressElement=="undefined"?void 0:HTMLProgressElement),K0=e=>Gn(e,"HTMLFormElement",typeof HTMLFormElement=="undefined"?void 0:HTMLFormElement),fh=e=>Gn(e,"HTMLIFrameElement",typeof HTMLIFrameElement=="undefined"?void 0:HTMLIFrameElement)});function JV(e){if(e.id.length>0)return`#${e.id}`;let t=e.getAttribute("class");return t!==null&&t.trim().length>0?`.${t.trim().split(/\s+/).join(".")}`:e.tagName.toLowerCase()}function W0(e){let t=e.ownerDocument.defaultView;if(t===null)return[];let n=[];for(let r=e;r!==null&&r!==e.ownerDocument.documentElement;r=r.parentElement){let o=t.getComputedStyle(r);for(let i of XV){let s=o.getPropertyValue(i);s.length>0&&s!==qV[i]&&n.push({on:JV(r),property:i,value:s})}}return n}function hh(e){var o;let t=(o=e==null?void 0:e.overflow)!=null?o:"",[n="visible",r=n]=(t===""?"visible":t).split(/\s+/);return[e===null||e.overflowX===""?n:e.overflowX,e===null||e.overflowY===""?r:e.overflowY]}function k_(e,t){var Y;if(t.clipBox!==void 0)return t.clipBox;let n=e.getBoundingClientRect(),r=t.style,o=X=>Number.parseFloat(X!=null?X:"")||0,i=(X,G)=>G===void 0||G===""||G==="none"||G==="hidden"?0:o(X),s=ut(e)&&e.offsetWidth>0?n.width/e.offsetWidth:1,a=ut(e)&&e.offsetHeight>0?n.height/e.offsetHeight:1,l=ut(e)&&e.offsetWidth>0?n.left+e.clientLeft*s:n.left+i(r==null?void 0:r.borderLeftWidth,r==null?void 0:r.borderLeftStyle),u=ut(e)&&e.offsetHeight>0?n.top+e.clientTop*a:n.top+i(r==null?void 0:r.borderTopWidth,r==null?void 0:r.borderTopStyle),d=ut(e)&&e.offsetWidth>0?l+e.clientWidth*s:n.right-i(r==null?void 0:r.borderRightWidth,r==null?void 0:r.borderRightStyle),f=ut(e)&&e.offsetHeight>0?u+e.clientHeight*a:n.bottom-i(r==null?void 0:r.borderBottomWidth,r==null?void 0:r.borderBottomStyle),m=((Y=r==null?void 0:r.overflowClipMargin)!=null?Y:"").split(/\s+/),h=o(m.at(-1)),E=m.includes("border-box"),_=m.includes("content-box"),[A,v]=hh(r),N=A==="clip"?(E?n.left:l+(_?o(r==null?void 0:r.paddingLeft)*s:0))-h*s:l,O=A==="clip"?(E?n.right:d-(_?o(r==null?void 0:r.paddingRight)*s:0))+h*s:d,k=v==="clip"?(E?n.top:u+(_?o(r==null?void 0:r.paddingTop)*a:0))-h*a:u,j=v==="clip"?(E?n.bottom:f-(_?o(r==null?void 0:r.paddingBottom)*a:0))+h*a:f;return t.clipBox={left:N,right:O,top:k,bottom:j,width:O-N,height:j-k},t.clipBox}function Y0(e,t,n,r){let o=(u,d,f,m,h)=>{if(d>m&&u<h)return[u,d];let E=Math.min(f,h-m);return u>=h?[h-E,h]:[m,m+E]},[i,s]=n?o(e.left,e.right,e.width,t.left,t.right):[e.left,e.right],[a,l]=r?o(e.top,e.bottom,e.height,t.top,t.bottom):[e.top,e.bottom];return{left:i,right:s,top:a,bottom:l,width:s-i,height:l-a}}var XV,qV,z_=y(()=>{"use strict";dn();XV=["filter","opacity","transform","mix-blend-mode","backdrop-filter"],qV={filter:"none",opacity:"1",transform:"none","mix-blend-mode":"normal","backdrop-filter":"none"}});function QV(e){let t=e.parentElement;if(t===null)return!1;let n=t.closest(D_);if(n===null||n.hasAttribute(P_))return!1;let r=Array.from(n.children).find(o=>mh===o.localName);return r===void 0||!r.contains(e)}function e4(e){return!e.ownerDocument.hidden||!("getAnimations"in e)?!1:e.getAnimations().some(t=>t.playState==="running"||t.pending)}function n4(e){return e.hasAttribute(t4)}function M_(e,t){return!!(ut(e)&&e.hidden||QV(e)||t!==null&&(t.display==="none"||t.visibility==="hidden"||t.visibility==="collapse"||Number.parseFloat(t.opacity||"1")===0&&!e4(e)||r4(t)))}function r4(e){var u,d,f,m;let t=/^rect\((.*)\)$/.exec(e.getPropertyValue("clip").trim());if(t!==null&&(e.position==="absolute"||e.position==="fixed")){let[h,E,_,A]=((u=t[1])!=null?u:"").split(/[\s,]+/).map(Number.parseFloat);if(E!==void 0&&A!==void 0&&E<=A||_!==void 0&&h!==void 0&&_<=h)return!0}let n=/^inset\(([^)]*)\)$/.exec(e.getPropertyValue("clip-path").trim()),r=(m=(f=(d=n==null?void 0:n[1])==null?void 0:d.split(/\s+round\s/)[0])==null?void 0:f.trim().split(/\s+/))!=null?m:[],o=h=>h.endsWith("%")||Number.parseFloat(h)===0;if(r.length===0||!r.every(o))return!1;let[i=0,s=i,a=i,l=s]=r.map(Number.parseFloat);return i+a>=100||l+s>=100}function o4(e,t){return e.getAttribute("aria-hidden")==="true"&&!n4(e)?!0:M_(e,t)}function eC(e){var r,o;let t=!1,n=e;for(;n!==null;){n.getAttribute("aria-hidden")==="true"&&(t=!0);let i=(o=(r=n.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(n))!=null?o:null;if(M_(n,i))return!1;n=Pi(n)}return t}function tC(e){var n,r;let t=e;for(;t!==null;){if(t.getAttribute("aria-hidden")==="true")return!1;let o=(r=(n=t.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(t))!=null?r:null;if(M_(t,o))return!1;t=Pi(t)}return!0}function oC(e){if(e===void 0)return new Map;let t=Q0.get(e);return t===void 0&&(t=new Map,Q0.set(e,t)),t}function lo(e,t){var r,o,i;let n=t.get(e);if(n===void 0){let s=(o=(r=e.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(e))!=null?o:null;if(o4(e,s))return n={hidden:!0,style:s,parent:null,clipX:!1,clipY:!1,scrollX:!1,scrollY:!1,hasClipping:!1},t.set(e,n),n;let a=Pi(e),l=a===null?void 0:lo(a,t),[u,d]=hh(s),f=e.ownerDocument.documentElement,h=!(e===f||e===e.ownerDocument.body&&hh(lo(f,t).style).every(A=>A==="visible"))&&!nC.has((i=s==null?void 0:s.display)!=null?i:"")&&!(ut(e)&&(s==null?void 0:s.display)==="inline"),E=h&&X0.has(u),_=h&&X0.has(d);n={hidden:(l==null?void 0:l.hidden)===!0,style:s,parent:a,clipX:E,clipY:_,scrollX:h&&q0.has(u),scrollY:h&&q0.has(d),hasClipping:E||_||(l==null?void 0:l.hasClipping)===!0},t.set(e,n)}return n}function a4(e,t,n){for(let r=lo(e,n).parent;r!==null;r=lo(r,n).parent){let o=lo(r,n).style;if(o===null||o.display==="contents")continue;if(!t&&o.position!==""&&o.position!=="static")return r;let i=!(o.display==="inline"&&ut(r)&&!s4.has(r.localName))&&o.display!=="table-column"&&o.display!=="table-column-group",s=a=>i||!rC.has(a);if([...J0].some(a=>{let l=o.getPropertyValue(a);return s(a)&&l!==""&&l!=="none"})||o.willChange.split(",").some(a=>J0.has(a.trim())&&s(a.trim()))||i&&!nC.has(o.display)&&(o.contain.split(/\s+/).some(a=>i4.has(a))||o.contentVisibility==="auto"))return r}return null}function iC(e,t,n,r=!1){let o=n,i=lo(e,t);if(i.hidden)return null;if(i.parent===null||!lo(i.parent,t).hasClipping)return o;let s;for(let a=e;a!==null;a=lo(a,t).parent){let l=lo(a,t);if(l.hidden)return null;a===s&&(s=void 0);let u=l.style;if(r&&a!==e&&s===void 0&&(l.scrollX||l.scrollY)&&(o!=null||(o=e.getBoundingClientRect()),o.width>0&&o.height>0&&(o=Y0(o,k_(a,l),l.scrollX,l.scrollY))),a!==e&&s===void 0&&(l.clipX||l.clipY)&&(o!=null||(o=e.getBoundingClientRect()),o.width>0&&o.height>0)){let d=k_(a,l),f=l.clipX?Math.max(o.left,d.left):o.left,m=l.clipX?Math.min(o.right,d.right):o.right,h=l.clipY?Math.max(o.top,d.top):o.top,E=l.clipY?Math.min(o.bottom,d.bottom):o.bottom;if(m<=f||E<=h)return null;o={left:f,right:m,top:h,bottom:E,width:m-f,height:E-h}}s===void 0&&((u==null?void 0:u.position)==="absolute"||(u==null?void 0:u.position)==="fixed")&&(s=a4(a,(u==null?void 0:u.position)==="fixed",t))}return o}function U_(e,t){if(!Je(e,t))return!1;let n=e.ownerDocument.defaultView;if(n===null)return!1;let r=iC(e,oC(t),e.getBoundingClientRect());return r==null||r.width<=0||r.height<=0?!1:r.bottom>0&&r.right>0&&r.top<n.innerHeight&&r.left<n.innerWidth}function c4(e,t){let n=lo(e,t);if(!n.clipX&&!n.clipY)return!1;let r=Array.from(e.getClientRects());return r.length>0&&r.every(o=>n.clipX&&o.width===0||n.clipY&&o.height===0||n.clipX&&n.clipY&&o.width<=1&&o.height<=1)}function Je(e,t){if(!e.isConnected)return!1;let n=t==null?void 0:t.get(e);if(n!==void 0)return n;let r=oC(t),o=iC(e,r,void 0,!0)!==null&&!c4(e,r);return t!==void 0&&t.set(e,o),o}var D_,P_,mh,t4,X0,q0,nC,rC,J0,i4,s4,Q0,uo=y(()=>{"use strict";dn();Yo();z_();D_="details",P_="open",mh="summary";t4="data-aria-hidden";X0=new Set(["hidden","clip"]),q0=new Set(["auto","scroll"]),nC=new Set(["contents","table-row","table-row-group","table-header-group","table-footer-group","table-column","table-column-group"]),rC=new Set(["transform","translate","rotate","scale","perspective"]),J0=new Set([...rC,"filter","backdrop-filter"]),i4=new Set(["layout","paint","strict","content"]),s4=new Set(["img","video","audio","canvas","iframe","embed","object","input","textarea","select"]),Q0=new WeakMap});function cC(e){F_=e}function B_(e){lC=e}function dC(){return F_}function pC(e){aC=e.join(",")}function Rt(e){return e.closest(Ui)!==null}function Hi(e){return Rt(e)?!uC()||e.closest(u4)===null:!1}function lr(e){return e!==null&&e.closest(Ui)!==null}function Mt(e){let n=[uC()?d4:Ui,l4,aC].filter(r=>r.length>0).join(",");return e.closest(n)!==null}function td(e){return Mt(e)||Rt(e)}function h4(e){var r;let t=e.querySelector(f4);if(t!==null)return{name:H_.VITE,host:t};for(let o of Array.from(e.querySelectorAll(p4))){let i=(r=o.shadowRoot)!=null?r:Ks(o),s=(i!=null?i:o).querySelector(sC);if(s!==null&&Je(s))return{name:H_.NEXT,host:o}}let n=e.querySelector(sC);if(!(n===null||!Je(n)))return{name:H_.NEXT,host:n}}function fC(e){let t=e[0];if(t===void 0)return;let n=h4(t.ownerDocument);if(n!==void 0)return e.some(r=>!m4(r,n.host))?n.name:void 0}function m4(e,t){var n;for(let r=e;r!==null;){if(r===t)return!0;let o=r.getRootNode();r=(n=r.parentNode)!=null?n:o instanceof ShadowRoot?o.host:null}return!1}function gh(e){for(let t of Array.from(e.querySelectorAll(g4)))if(t.closest(Ui)===null&&!(t instanceof HTMLElement&&(t.hidden||t.closest("[hidden]")!==null))&&!(t instanceof HTMLElement&&getComputedStyle(t).display==="none"))return!0;return!1}var Ui,l4,aC,F_,lC,uC,u4,d4,H_,p4,sC,f4,g4,nt=y(()=>{"use strict";M();Yo();uo();Ui=Vu,l4="[data-agentation],#__next-build-watcher,nextjs-portal,[data-nextjs-dialog],[data-nextjs-toast]",aC="",F_=!1;lC=!1;uC=()=>F_&&!lC;u4="[data-reticle-dock]";d4="[data-reticle-log],[data-reticle-harness-log],[data-reticle-chat-pill-text],[data-reticle-agent-said],[data-reticle-agent-note],[data-reticle-act-line]";H_={NEXT:"Next.js error dialog",VITE:"Vite error overlay"},p4="nextjs-portal",sC="[data-nextjs-dialog]",f4="vite-error-overlay";g4='dialog[open], [aria-modal="true"]'});function Fi(){return Eh}function Vn(){return`[${Eh}]`}function Ne(e){return e.getAttribute(Eh)}function _C(e){Eh=e!==void 0&&yO.test(e)?e:Us}var Eh,Ot=y(()=>{"use strict";M();Eh=Us});function Th(e){return T4.has(e)||e.startsWith(bh)||e.startsWith(_h)||e.startsWith(Sh)}var At,bh,_h,Sh,T4,po=y(()=>{"use strict";At={SESSION:"__reticle_session",REF_BASE:"__reticle_ref_base",PRESENTER_LOG:"reticle-presenter-log",PRESENTER_LOG_OWNER:"reticle-presenter-log-owner",PRESENTER_SETTINGS:"reticle-presenter-settings",PRESENTER_MINIMISED:"reticle-presenter-minimised",PRESENTER_OPEN:"reticle-presenter-open",PRESENTER_VIEW:"reticle-presenter-view",CAROUSEL_DISMISSED:"reticle.carousel.dismissed",ANNOTATION_HISTORY:"reticle.annotations.history.v1"},bh="reticle.tour.seen.",_h="reticle.harness.persona.",Sh="reticle.impact.seen.",T4=new Set(Object.values(At))});function kr(e){let t=Z.MAX_REF_LENGTH;return t>=e.length?e:`${e.slice(0,t)}${x4}`}function w4(e){try{let t=e==null?void 0:e.getItem(TC),n=t==null?Number.NaN:Number(t);return Number.isSafeInteger(n)&&n>0?n:0}catch{return 0}}var SC,x4,G_,A4,TC,y4,rd,It,od,Xo,Sc,Tc,xc,qo,xC,V_,AC,nd,re,gt=y(()=>{"use strict";M();po();SC=1e4,x4="\u2026",G_="e";A4=1e3,TC=At.REF_BASE,y4=100;nd=class{constructor(t=()=>globalThis.sessionStorage){x(this,qo);x(this,rd,new WeakMap);x(this,It,new Map);x(this,od);x(this,Xo,0);x(this,Sc,0);x(this,Tc,0);x(this,xc,0);g(this,od,t)}get size(){return c(this,It).size}markEdited(){g(this,xc,c(this,Xo))}mintedBeforeLastEdit(t){if(c(this,xc)===0||!t.startsWith(G_))return!1;let n=Number(t.slice(G_.length));return Number.isSafeInteger(n)&&n>0&&n<=c(this,xc)}refFor(t){let n=c(this,rd).get(t);if(n!==void 0){let o=c(this,It).get(n);return c(this,It).delete(n),c(this,It).set(n,o!=null?o:new WeakRef(t)),n}c(this,Xo)>=c(this,Sc)&&T(this,qo,xC).call(this),g(this,Xo,c(this,Xo)+1);let r=vI(`${G_}${String(c(this,Xo))}`);return c(this,rd).set(t,r),c(this,It).set(r,new WeakRef(t)),g(this,Tc,c(this,Tc)+1),c(this,Tc)>=A4?(g(this,Tc,0),T(this,qo,AC).call(this)):c(this,It).size>SC&&T(this,qo,V_).call(this),r}resolve(t){let n=c(this,It).get(t);if(n===void 0)return null;let r=n.deref();return r===void 0||!r.isConnected?(c(this,It).delete(t),null):(c(this,It).delete(t),c(this,It).set(t,n),r)}};rd=new WeakMap,It=new WeakMap,od=new WeakMap,Xo=new WeakMap,Sc=new WeakMap,Tc=new WeakMap,xc=new WeakMap,qo=new WeakSet,xC=function(){let t;try{t=c(this,od).call(this)}catch{t=void 0}let n=Math.max(w4(t),c(this,Xo));g(this,Sc,n+y4);try{t==null||t.setItem(TC,String(c(this,Sc)))}catch{}g(this,Xo,n)},V_=function(){let t=c(this,It).keys().next();t.done!==!0&&c(this,It).delete(t.value)},AC=function(){for(let[t,n]of c(this,It)){let r=n.deref();(r===void 0||!r.isConnected)&&c(this,It).delete(t)}for(;c(this,It).size>SC;)T(this,qo,V_).call(this)};re=new nd});function yC(e){var n;return((n=e.match(/-?\d*\.?\d+(?:e[-+]?\d+)?|NaN|Infinity|-Infinity/gi))!=null?n:[]).map(r=>Number(r))}function R4(e){return/NaN|Infinity/i.test(e)?!0:yC(e).some(t=>!Number.isFinite(t))}function O4(e){let t=yC(e).filter(i=>Number.isFinite(i));if(t.length===0)return!0;let n=t.filter((i,s)=>s%2===0),r=t.filter((i,s)=>s%2===1),o=i=>i.every(s=>s===i[0]);return n.length>1&&o(n)&&o(r)}function xh(e){let t=[],n=0;for(let o of v4)for(let i of Array.from(e.querySelectorAll(o)))for(let s of N4){let a=i.getAttribute(s);if(a===null)continue;n+=1;let l=a.length>120?`${a.slice(0,120)}\u2026`:a;R4(a)?t.push({kind:"non-finite-coordinates",tag:o,attr:s,sample:l}):a.trim().length===0?t.push({kind:"empty-geometry",tag:o,attr:s,sample:l}):O4(a)&&t.push({kind:"degenerate-geometry",tag:o,attr:s,sample:l})}let r=e.querySelectorAll("canvas").length>0;return{examined:n,findings:t,canvas:r}}function wC(e,t){var i,s,a,l,u,d,f;let n=t,r=(s=(i=n.Chart)==null?void 0:i.getChart)==null?void 0:s.call(i,e);if(r!=null)return{library:"chartjs",data:(a=r.data)!=null?a:null};let o=(u=(l=n.echarts)==null?void 0:l.getInstanceByDom)==null?void 0:u.call(l,e);return o!=null?{library:"echarts",data:(f=(d=o.getOption)==null?void 0:d.call(o))!=null?f:null}:null}var v4,N4,j_=y(()=>{"use strict";v4=["path","polyline","polygon"],N4=["d","points"]});function id(e,t,n){let r=Math.max(0,Math.min(n,t.remainingCharacters));if(e.length<=r)return t.remainingCharacters-=e.length,e;t.truncatedValues+=1;let o=r<=sd.length?sd.slice(0,r):`${e.slice(0,r-sd.length)}${sd}`;return t.remainingCharacters-=o.length,o}function ad(e,t,n,r){if(r!==void 0&&St(r))return ve;if(n>Z.MAX_SERIALIZE_DEPTH||t.nodes>=Ac)return t.truncatedValues+=1,sd;if(t.nodes+=1,e===null||typeof e=="boolean")return e;if(typeof e=="string")return id(io(e),t,(r==null?void 0:r.toLowerCase())==="error"?Z.MAX_ERROR_LENGTH:Z.MAX_STRING_LENGTH);if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="bigint")return e.toString();if(typeof e=="undefined"||typeof e=="function"||typeof e=="symbol")return yc;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(e instanceof Map){let o=Object.create(null),i=0;for(let[s,a]of e){if(t.nodes>=Ac||i>=Z.MAX_COLLECTION_ITEMS){t.droppedItems+=e.size-i;break}let l=id(typeof s=="string"?s:String(s),t,vC),u=ad(a,t,n+1,l);u!==yc&&(o[l]=u),i+=1}return o}if(e instanceof Set){let o=[],i=0;for(let s of e){if(t.nodes>=Ac||i>=Z.MAX_COLLECTION_ITEMS){t.droppedItems+=e.size-i;break}let a=ad(s,t,n+1);o.push(a===yc?null:a),i+=1}return o}if(ArrayBuffer.isView(e)&&!(e instanceof DataView)){let o=e.length,i=[],s=0;for(let a of e){if(t.nodes>=Ac||s>=Z.MAX_COLLECTION_ITEMS){t.droppedItems+=o-s;break}i.push(a),t.nodes+=1,s+=1}return i}if(e instanceof Error)return{name:id(e.name,t,256),message:id(e.message,t,Z.MAX_ERROR_LENGTH)};if(t.seen.has(e))return"[CIRCULAR]";t.seen.add(e);try{if(Array.isArray(e)){let l=[],u=e.slice(0,Z.MAX_COLLECTION_ITEMS);t.droppedItems+=Math.max(0,e.length-u.length);for(let d of u){if(t.nodes>=Ac){t.droppedItems+=1;continue}let f=ad(d,t,n+1);if(t.nodes>=Ac){t.droppedItems+=1;continue}l.push(f===yc?null:f)}return l}let o=Object.create(null),i=Object.keys(e),s=i.slice(0,Z.MAX_OBJECT_KEYS);t.droppedItems+=Math.max(0,i.length-s.length);let a=s.map(l=>{try{let u=e[l];return{key:l,value:u,scalar:u===null||typeof u!="object",ok:!0}}catch{return{key:l,value:void 0,scalar:!0,ok:!1}}});for(let l of[...a.filter(u=>u.scalar),...a.filter(u=>!u.scalar)]){let u=id(l.key,t,vC);if(!l.ok){o[u]=K_;continue}try{let d=ad(l.value,t,n+1,l.key);d!==yc&&(o[u]=d)}catch{o[u]=K_}}return o}finally{t.seen.delete(e)}}function cd(e){return Zs(e).value}function Zs(e){let t={seen:new WeakSet,remainingCharacters:I4,nodes:0,droppedItems:0,truncatedValues:0},n=ad(e,t,0),r=n===yc?null:n;if(t.droppedItems===0&&t.truncatedValues===0)return{value:r};let o=[];return t.droppedItems>0&&o.push(`${t.droppedItems} item(s) dropped`),t.truncatedValues>0&&o.push(`${t.truncatedValues} value(s) truncated`),{value:r,truncation:{droppedItems:t.droppedItems,truncatedValues:t.truncatedValues,note:`partial \u2014 ${o.join(", ")}; this is NOT the whole value. Scope the read with \`path\`/\`depth\` to see the rest.`}}}function fo(e){try{return JSON.stringify(cd(e))}catch{return JSON.stringify(K_)}}var sd,K_,yc,vC,I4,Ac,ur=y(()=>{"use strict";M();sd="[TRUNCATED]",K_="[UNSERIALIZABLE]",yc=Symbol("omit"),vC=256,I4=Math.floor(Z.MAX_MESSAGE_BYTES/4),Ac=Z.MAX_COLLECTION_ITEMS*5});function C4(e){if(e===null)return;let t=/^(.*):(\d+):(\d+)$/.exec(e);if(t===null)return;let n=t[1],r=Number(t[2]);if(!(n===void 0||n.length===0||!Number.isFinite(r)))return{file:n,line:r}}function ld(e){let t=e.closest(`[${Z_}]`);return t!==null?C4(t.getAttribute(Z_)):void 0}function Ah(e,t){return t!==void 0?{file:t.file,line:t.line}:ld(e)}function NC(e){return e.querySelector(`[${Z_}]`)!==null}function yh(e){return e===void 0?void 0:`${e.file}:${String(e.line)}`}var Z_,ud=y(()=>{"use strict";M();Z_=fc});function k4(e){let t=e.type.toLowerCase();return t==="search"?"searchbox":$4.has(t)?"textbox":t==="checkbox"?"checkbox":t==="radio"?"radio":t==="range"?"slider":t==="number"?"spinbutton":t==="submit"||t==="button"||t==="reset"?"button":"textbox"}function z4(e){let t=e.getAttribute("aria-label");if(t!==null&&t.trim().length>0)return!0;let n=e.getAttribute("aria-labelledby");if(n!==null&&n.trim().length>0)return!0;let r=e.getAttribute("title");return r!==null&&r.trim().length>0}function Le(e){var r;let t=e.getAttribute("role");if(t!==null&&t.trim().length>0)return t.trim();switch(e.tagName.toLowerCase()){case"a":return e.hasAttribute("href")?"link":"generic";case"button":return"button";case"input":return k4(e);case"textarea":return"textbox";case"select":return e.multiple?"listbox":"combobox";case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"heading";case"ul":case"ol":return"list";case"li":return"listitem";case"nav":return"navigation";case"main":return"main";case"aside":return"complementary";case"dialog":return"dialog";case"img":return"img";case"table":return"table";case"tr":return"row";case"tbody":case"thead":case"tfoot":return"rowgroup";case"td":return e.closest('[role~="grid"], [role~="treegrid"]')!==null?"gridcell":"cell";case"th":{let o=((r=e.getAttribute("scope"))!=null?r:"").toLowerCase();return o==="row"||o==="rowgroup"?"rowheader":"columnheader"}case"option":return"option";case"optgroup":return"group";case"section":return z4(e)?"region":"generic";case"article":return"article";case"fieldset":return"group";case"details":return"group";case"summary":return"button";case"progress":return"progressbar";case"meter":return"meter";case"output":return"status";case"hr":return"separator";case"area":return e.hasAttribute("href")?"link":"generic";case"form":return"form";case"p":return"paragraph";case"header":return"banner";case"footer":return"contentinfo";default:return"generic"}}function Bi(e){return e.replace(/\s+/g," ").trim()}function D4(e){let t=e.getAttribute("aria-labelledby");if(t===null)return null;let n=[];for(let o of t.split(/\s+/)){let i=e.ownerDocument.getElementById(o);i!==null&&n.push(Bi(Ws(i)))}let r=n.join(" ").trim();return r.length>0?r:null}function Ws(e){var o;if(e.nodeType===Node.TEXT_NODE)return(o=e.textContent)!=null?o:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let t=e;if(t.getAttribute("aria-hidden")==="true")return"";if($_(t)){let i=t.getAttribute("alt");return i===null?"":i}let n="",r=!1;for(let i of t.childNodes){let s=Ws(i);if(s.length===0)continue;let a=Node.ELEMENT_NODE===i.nodeType;n.length>0&&(a||r)&&(n+=" "),n+=s,r=a}return n}function we(e){let t=D4(e);if(t!==null)return t;let n=e.getAttribute("aria-label");if(n!==null&&n.trim().length>0)return n.trim();if($_(e)){let i=e.getAttribute("alt");if(i!==null)return i.trim()}if(He(e)||vn(e)||$r(e)||ed(e)||G0(e)||V0(e)||j0(e)){let i=e.labels;if(i!==null&&i.length>0){let s=[...i].map(a=>Bi(Ws(a))).join(" ").trim();if(s.length>0)return s}}if(e.tagName.toLowerCase()==="fieldset"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="legend");if(i!==void 0){let s=Bi(Ws(i));if(s.length>0)return s}}if(e.tagName.toLowerCase()==="table"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="caption");if(i!==void 0){let s=Bi(Ws(i));if(s.length>0)return s}}if(e.tagName.toLowerCase()==="figure"){let i=[...e.children].find(s=>s.tagName.toLowerCase()==="figcaption");if(i!==void 0){let s=Bi(Ws(i));if(s.length>0)return s}}if(He(e)||vn(e)||$r(e)){if(He(e)){let i=e.type.toLowerCase();if(i==="submit"||i==="button"||i==="reset"){let s=Bi(e.value);if(s.length>0)return s}}if(He(e)||vn(e)){let i=e.getAttribute("placeholder");if(i!==null&&i.trim().length>0)return i.trim()}}if(L4.has(Le(e))){let i=Bi(Ws(e));if(i.length>0)return i}let o=e.getAttribute("title");return o!==null&&o.trim().length>0?o.trim():""}function wh(e,t){let n=e.getAttribute(t);if(n!==null)return n==="true"}function Jo(e,t=Je(e)){let n=[Se.PRESENT];n.push(t?Se.VISIBLE:Se.HIDDEN);let r=e.matches(":disabled")||wh(e,"aria-disabled")===!0;return n.push(r?Se.DISABLED:Se.ENABLED),(He(e)&&(e.type==="checkbox"||e.type==="radio")&&e.checked||wh(e,"aria-checked")===!0)&&n.push(Se.CHECKED),(wh(e,"aria-expanded")===!0||P4(e))&&n.push(Se.EXPANDED),wh(e,"aria-pressed")===!0&&n.push(Se.PRESSED),e.ownerDocument.activeElement===e&&n.push(Se.FOCUSED),n}function P4(e){let t=e.parentElement;return mh!==e.localName||t===null||D_!==t.localName?!1:Array.from(t.children).find(r=>mh===r.localName)===e&&t.hasAttribute(P_)}function pn(e){var o,i,s,a,l;if(!He(e)&&!vn(e)&&!$r(e))return!1;let t=(o=e.getAttribute("autocomplete"))!=null?o:"",n=[(i=e.getAttribute("name"))!=null?i:"",e.id,(s=Ne(e))!=null?s:"",(a=e.getAttribute(Us))!=null?a:"",(l=e.getAttribute("aria-label"))!=null?l:""],r=M4.test(t);return He(e)&&e.type.toLowerCase()==="password"||r||n.some(St)}function W_(e){if(He(e)||vn(e)||$r(e))return pn(e)?e.value===""?"":ve:e.value;let t=e.getAttribute("aria-valuenow");return t!=null?t:void 0}function U4(e){var n;let t=Bi((n=e.textContent)!=null?n:"");return t.length>RC?`${t.slice(0,RC)}\u2026`:t}function ho(e,t){let n=W_(e),r=U4(e),o=we(e),i=Je(e,t),s={ref:re.refFor(e),role:Le(e),name:o,states:Jo(e,i),visible:i};n!==void 0&&n.length>0&&(s.value=n),r.length>0&&r!==o&&(s.text=r);let a=yh(ld(e));if(a!==void 0&&(s.source=a),e.querySelector("path, polyline, polygon")!==null){let l=xh(e).findings;l.length>0&&(s.chart=l)}return s}var L4,$4,M4,RC,Et=y(()=>{"use strict";Ot();M();dn();gt();j_();ur();ud();uo();L4=new Set(["button","link","heading","option","listitem","cell","checkbox","columnheader","radio","row","rowheader","tab","tooltip","menuitem","menuitemcheckbox","menuitemradio","treeitem","gridcell","switch","status","alert"]),$4=new Set(["text","email","tel","url","password",""]);M4=/\b(cc-|current-password|new-password|one-time-code)/i;RC=80});function HC(e){Nc.some(t=>t.name===e.name)||Nc.push(e)}function dr(e){for(let t of Nc){let n;try{n=t.identify(e)}catch{continue}if(n!=null)return n}return null}function Nh(e){for(let t of Nc){if(t.readState===void 0)continue;let n=t.readState(e);if(n!==void 0)return n}}function Rh(e){for(let t of Nc)if(t.hasHoverHandlers!==void 0&&t.hasHoverHandlers(e))return!0;return!1}function hd(){return Nc.map(e=>e.name)}var J_,UC,Nc,Qo=y(()=>{"use strict";J_=globalThis,Nc=(UC=J_.__reticleAdapters)!=null?UC:J_.__reticleAdapters=[]});function Oh(){return cr(location.href)}function Ih(e=!0){return cr(`${location.pathname}${location.search}${e?location.hash:""}`)}var md=y(()=>{"use strict";M()});function lL(e){var o;let t=[],n=new Set,r;try{r=e.querySelectorAll(Vn())}catch{return t}for(let i=0;i<r.length&&t.length<Aj;i+=1){let s=(o=r[i])==null?void 0:o.getAttribute(Fi());if(s==null)continue;let a=s.trim();a.length===0||n.has(a)||a.startsWith(yj)||(n.add(a),t.push(a))}return t}var Aj,yj,uL=y(()=>{"use strict";Ot();Aj=200,yj="reticle-"});var nS,dL,rS,zr,gd=y(()=>{"use strict";nS=globalThis,rS=typeof((dL=nS.console)==null?void 0:dL.warn)=="function"?nS.console.warn.bind(nS.console):null,zr=(...e)=>{rS==null||rS(...e)}});function EL(e){return oS.add(e),()=>oS.delete(e)}function wj(e){if(e===null||typeof e!="object"&&typeof e!="function")return!1;let t=e;return typeof t.getState=="function"&&typeof t.subscribe=="function"}function bL(e,t,n){if(Rj(e,t),wj(t)){let r=()=>t.getState(),o=i=>t.subscribe(i);Oc.set(e,r),$h.set(e,o),pL(e,r,o);return}if(typeof t!="function"){let r=typeof t=="object"&&t!==null&&"subscribe"in t;zr(`[reticle] store "${e}" is neither a getter function nor a {getState, subscribe} store`+(r?" \u2014 it has subscribe but no getState. Wrap it with an adapter or add getState.":"."));return}if(Oc.set(e,t),n!==void 0){$h.set(e,n),pL(e,t,n);return}Nj(e)}function pL(e,t,n){for(let r of oS)try{r([e,t,n])}catch{}}function _L(e){Oc.delete(e),$h.delete(e)}function Vi(){return[...Oc.keys()]}function SL(){let e=[];for(let[t,n]of $h){let r=Oc.get(t);r!==void 0&&e.push([t,r,n])}return e}function sS(e){let t={};for(let[n,r]of Oc)if(!(e!==void 0&&n!==e))try{t[n]=r()}catch(o){t[n]={__error:o instanceof Error?o.message:String(o)}}return t}function TL(e){return Ed(e).stores}function Ed(e){let t={},n={};for(let[r,o]of Object.entries(sS(e))){let i=Zs(o);t[r]=i.value,i.truncation!==void 0&&(n[r]=i.truncation)}return Object.keys(n).length>0?{stores:t,truncation:n}:{stores:t}}function Nj(e){vj.has(e)||fL.has(e)||(fL.add(e),zr(`[reticle] store "${e}" was registered without a subscribe function. It can be READ, but its changes are invisible: no STATE_CHANGE events, no state diffs in causal summaries, and a state predicate will never see it update. Pass the store object (or a subscribe callback) to fix.`))}function kh(e,t){xL.set(e,t)}function Rj(e,t){if(t===null||typeof t!="object"&&typeof t!="function")return;iS.set(t,e);let n=xL.get(t);n!==void 0&&iS.set(n,e)}function AL(e){if(!(e===null||typeof e!="object"&&typeof e!="function"))return iS.get(e)}var ei,hL,Oc,mL,$h,gL,oS,fL,vj,iS,xL,Ys=y(()=>{"use strict";M();gd();ur();ei=globalThis,Oc=(hL=ei.__reticleStores)!=null?hL:ei.__reticleStores=new Map,$h=(mL=ei.__reticleStoreSubs)!=null?mL:ei.__reticleStoreSubs=new Map,oS=(gL=ei.__reticleStoreListeners)!=null?gL:ei.__reticleStoreListeners=new Set;fL=new Set,vj=new Set([Ff]);iS=new WeakMap,xL=new WeakMap});function wL(){return typeof document=="undefined"?[]:lL(document)}function vL(){return Vi().filter(e=>Ff!==e)}function Dh(e,t){let n=[...e];for(let r of t)n.includes(r)||n.push(r);return n}function Oj(){return{testids:[],signals:[],stores:[],flows:[]}}function cS(e,t){if(t!==void 0)for(let n of t)e.includes(n)||e.push(n)}function Ph(e){zh=e}function Ic(e){if(cS(Nn.testids,e.testids),cS(Nn.signals,e.signals),cS(Nn.stores,e.stores),e.flows!==void 0)for(let t of e.flows){let n=Nn.flows.find(r=>r.name===t.name);n===void 0?Nn.flows.push({name:t.name,steps:[...t.steps]}):n.steps=[...t.steps]}zh==null||zh()}function ji(){return{testids:Dh(Nn.testids,wL()),signals:[...Nn.signals],stores:Dh(Nn.stores,vL()),flows:Nn.flows.map(e=>({name:e.name,steps:[...e.steps]})),...dC()?{presenterExposed:!0}:{}}}function NL(){return[...Nn.testids]}function Mh(){return Nn.signals.length>0||Nn.flows.length>0||Dh(Nn.testids,wL()).length>0||Dh(Nn.stores,vL()).length>0}var aS,yL,Nn,zh,Ki=y(()=>{"use strict";M();nt();uL();Ys();aS=globalThis;Nn=(yL=aS.__reticleCapabilities)!=null?yL:aS.__reticleCapabilities=Oj()});function jh(){return mS>0}function rt(e){mS+=1;try{return e()}finally{mS-=1}}var mS,Lc=y(()=>{"use strict";mS=0});function e$(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.max(0,Math.min(e,SS))}var fr,WL,_S,YL,qL,XL,Zh,ue,Re,Wh,SS,JL,mo,QL,dt=y(()=>{"use strict";fr=globalThis,WL=typeof fr.setTimeout=="function"?fr.setTimeout.bind(fr):null,_S=typeof fr.clearTimeout=="function"?fr.clearTimeout.bind(fr):null,YL=typeof fr.requestAnimationFrame=="function"?fr.requestAnimationFrame.bind(fr):null,XL=typeof((qL=fr.performance)==null?void 0:qL.now)=="function"?fr.performance.now.bind(fr.performance):null,Zh=()=>XL?XL():0,ue=(e,t=0)=>WL?WL(e,t):0,Re=e=>{_S==null||_S(e)},Wh=(e,t)=>{let n=!1,r=0,o=()=>{n||(e(),!n&&(r=ue(o,t)))};return r=ue(o,t),()=>{n=!0,Re(r)}},SS=200,JL=(e=SS)=>new Promise(t=>{let n=!1,r=i=>{n||(n=!0,Re(o),t({settled:i}))},o=ue(()=>r(!1),e);YL?YL(()=>r(!0)):ue(()=>r(!0),0)}),mo=()=>JL().then(()=>{}),QL=async(e=SS)=>(await Promise.resolve(),JL(e))});var ck={};Ya(ck,{MASK:()=>sk,cloneForRender:()=>ak,renderPage:()=>u3});function o3(e){var t;return e instanceof HTMLInputElement&&e.type==="password"?!0:[e.name,e.id,(t=e.getAttribute("autocomplete"))!=null?t:""].some(n=>n.length>0&&St(n))}function i3(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){let n=o3(e)&&e.value.length>0?sk:e.value;e instanceof HTMLTextAreaElement?t.textContent=n:t.setAttribute("value",n)}e instanceof HTMLInputElement&&(e.checked?t.setAttribute("checked",""):t.removeAttribute("checked")),e instanceof HTMLOptionElement&&(e.selected?t.setAttribute("selected",""):t.removeAttribute("selected"))}function s3(e){var r;let t=[...Array.from(e.styleSheets),...(r=e.adoptedStyleSheets)!=null?r:[]],n=[];for(let o of t)try{for(let i of Array.from(o.cssRules))n.push(i.cssText)}catch{}return n.join(`
58
+ `)}function ak(e){var a;let t=e.documentElement,n=t.cloneNode(!0),r=t.querySelectorAll("*"),o=n.querySelectorAll("*");r.forEach((l,u)=>{let d=o[u];d!==void 0&&i3(l,d)});let i=[Ui,"script","noscript",'link[rel~="stylesheet"]',"style"];n.querySelectorAll(i.join(",")).forEach(l=>l.remove());let s=e.createElement("style");return s.textContent=s3(e),((a=n.querySelector("head"))!=null?a:n).append(s),n}function a3(e){let t=e.defaultView;for(let n of[e.body,e.documentElement]){if(t===null||n===null)continue;let r=t.getComputedStyle(n).backgroundColor;if(r.length>0&&r!=="transparent"&&r!=="rgba(0, 0, 0, 0)")return r}return t3}function c3(e){return new Promise((t,n)=>{let r=new Image,o=setTimeout(()=>n(new Error("the page did not render in time")),QK);r.onload=()=>{clearTimeout(o),t(r)},r.onerror=()=>{clearTimeout(o),n(new Error("the page could not be drawn as an image"))},r.src=e})}function l3(e){let t=[];for(let n=0;n<e.length;n+=ik)t.push(e.slice(n,n+ik));return t}async function u3(){try{let e=Math.max(1,window.innerWidth),t=Math.max(1,window.innerHeight),n=ak(document);n.style.transform=`translate(${String(-window.scrollX)}px, ${String(-window.scrollY)}px)`;let r=new XMLSerializer().serializeToString(n),o=`<svg xmlns="${e3}" width="${String(e)}" height="${String(t)}"><foreignObject x="0" y="0" width="100%" height="100%">${r}</foreignObject></svg>`,i=await c3(`data:image/svg+xml;charset=utf-8,${encodeURIComponent(o)}`),s=a3(document),a=Math.min(1,Ob.MAX_SIDE_PX/Math.max(e,t));for(let l=0;l<JK;l+=1,a*=qK){let u=document.createElement("canvas");u.width=Math.max(1,Math.round(e*a)),u.height=Math.max(1,Math.round(t*a));let d=u.getContext("2d");if(d===null)return{ok:!1,reason:"this page has no 2D canvas to draw into"};d.fillStyle=s,d.fillRect(0,0,u.width,u.height),d.drawImage(i,0,0,u.width,u.height);let f=u.toDataURL(n3,Ob.JPEG_QUALITY).replace(r3,"");if(f.length<=XK)return{ok:!0,width:u.width,height:u.height,chunks:l3(f)}}return{ok:!1,reason:"the rendered page was too large to send, even scaled down"}}catch(e){return{ok:!1,reason:e instanceof Error?e.message:String(e)}}}var sk,XK,ik,qK,JK,QK,e3,t3,n3,r3,lk=y(()=>{"use strict";M();nt();sk="\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",XK=24e4,ik=6e4,qK=.75,JK=4,QK=5e3,e3="http://www.w3.org/2000/svg",t3="#ffffff",n3="image/jpeg",r3=/^data:[^,]*,/});function pm(e,t){return`${C0}${e}. ${String(t)} attempts, all failed. That is everything the page can see: from inside the browser it cannot tell a daemon that is not there from one it is not allowed to reach, so this is not evidence about the daemon. What answers it: run \`npx @reticlehq/server status\` to see whether one is listening and on which port. If your app runs in a container, devcontainer or WSL, the daemon is on a different host, so point the page at it: RETICLE_PORT or reticle({ port }) with the Vite plugin, reticle.connect({ url }) by hand. An https page cannot open a ws:// socket. Still retrying\u2026`}var bk,MS=y(()=>{"use strict";M();bk="Can't reach Reticle from this page. Run reticle status to check, or reticle serve to start it."});var Ge,Kn,hn,JS=y(()=>{"use strict";Ge={READ:"read",ACT:"act",NARRATION:"narration",HUMAN:"human"},Kn={PASS:"pass",FAIL:"fail"},hn={AGENT:"agent",HARNESS:"harness"}});function kd(e){switch(e){case D.CLICK:case D.DBLCLICK:return"Clicking";case D.FILL:case D.TYPE:return"Typing into";case D.HOVER:return"Hovering";case D.SELECT:return"Selecting";case D.SUBMIT:return"Submitting";case D.CHECK:case D.UNCHECK:return"Toggling";case D.UPLOAD:return"Uploading to";case D.DRAG:return"Dragging";default:return e}}var QS=y(()=>{"use strict";M()});function si(e){return typeof e=="string"&&e.length>0}function yZ(e){var n;return`${(n=e.file.split("/").pop())!=null?n:e.file}:${e.line}`}function qz(e){var t;if(si(e.testid))return{strategy:Mr.TESTID,value:e.testid,stable:!0};if(si(e.component)&&e.source!==void 0)return{strategy:Mr.COMPONENT,value:`${e.component}@${yZ(e.source)}`,stable:!0};if(si(e.component)&&(si(e.role)||si(e.name))){let n=si(e.name)?e.name:e.role;return{strategy:Mr.COMPONENT,value:`${e.component}[${n!=null?n:""}]`,stable:!0}}if(si(e.role)&&si(e.name))return{strategy:Mr.ROLE,value:`${e.role}:${e.name}`,stable:!1};if(si(e.role)){let n=e.nth!==void 0?`#${e.nth}`:"";return{strategy:Mr.ROLE,value:`${e.role}${n}`,stable:!1}}return{strategy:Mr.POSITION,value:`el#${(t=e.nth)!=null?t:0}`,stable:!1}}var Mr,Jz=y(()=>{"use strict";Mr={TESTID:"testid",COMPONENT:"component",ROLE:"role",POSITION:"position"}});function vZ(e,t,n){return n.length>0?t.length>0?`${t} "${n}"`:`"${n}"`:t.length>0?t:e.tagName.toLowerCase()}function Ud(e){var d;let t=(d=Ne(e))!=null?d:void 0,n=dr(e),r=n==null?void 0:n.componentStack[0],o=Ah(e,n==null?void 0:n.source),i=Le(e),s=we(e),a={};t!==void 0&&(a.testid=t),r!==void 0&&(a.component=r),o!==void 0&&(a.source=o),i.length>0&&(a.role=i),s.length>0&&(a.name=s);let l=qz(a),u={anchor:l.value,strategy:wZ[l.strategy],label:vZ(e,i,s)};return o!==void 0&&(u.source=o),u}var wZ,oT=y(()=>{"use strict";Ot();M();Jz();Et();Qo();ud();wZ={[Mr.TESTID]:Fs.TESTID,[Mr.COMPONENT]:Fs.COMPONENT,[Mr.ROLE]:Fs.ROLE,[Mr.POSITION]:Fs.POSITION}});function Qz(e){return`${String(e)} ${e===1?"note":"notes"} on this page`}function Am(e,t){let n=e.length,r=`I marked ${String(n)} ${n===1?"issue":"issues"} on ${t} with Reticle. Fix each one, then verify it in the running app:`,o=e.map((i,s)=>{let a=i.source===void 0?i.anchor:`${i.anchor}, ${i.source}`;return`${String(s+1)}. ${i.note}
59
59
  ${i.label} (${a}) on ${i.route}`});return[r,"",...o].join(`
60
- `)}var eT=y(()=>{"use strict"});var xm,Oe,tT,jz,Kz,Zz,Gz,Wz,Yz,Xz=y(()=>{"use strict";xm="data-reticle-mark",Oe=e=>`[${xm}="${e}"]`,tT="What should change?",jz="Add",Kz="Cancel",Zz="+",Gz=2147483601,Wz=`
61
- ${Oe("root")}{position:fixed;inset:0;pointer-events:none;z-index:${String(Gz)};}
60
+ `)}var iT=y(()=>{"use strict"});var ym,Oe,sT,nD,rD,oD,eD,iD,sD,aD=y(()=>{"use strict";ym="data-reticle-mark",Oe=e=>`[${ym}="${e}"]`,sT="What should change?",nD="Add",rD="Cancel",oD="+",eD=2147483601,iD=`
61
+ ${Oe("root")}{position:fixed;inset:0;pointer-events:none;z-index:${String(eD)};}
62
62
  ${Oe("root")}[data-hide="1"] ${Oe("pin")}{display:none;}
63
63
  html[data-reticle-mark-active] *{cursor:crosshair !important;}
64
64
  html[data-reticle-mark-active] [data-reticle-overlay],
@@ -94,7 +94,7 @@ ${Oe("tipq")}{display:block;font-size:12px;font-style:italic;color:rgba(255,255,
94
94
  margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
95
95
  ${Oe("tipn")}{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
96
96
  ${Oe("pop")}{position:fixed;pointer-events:auto;width:280px;box-sizing:border-box;padding:12px 16px 14px;
97
- background:#1a1a1a;border-radius:16px;color:#fff;z-index:${String(Gz+8)};
97
+ background:#1a1a1a;border-radius:16px;color:#fff;z-index:${String(eD+8)};
98
98
  box-shadow:0 4px 24px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.08);
99
99
  font:13px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;transform:translateX(-50%);opacity:0;}
100
100
  ${Oe("pop")}[data-in="1"]{opacity:1;animation:reticle-mark-pop-in .2s cubic-bezier(.34,1.56,.64,1) forwards;}
@@ -121,23 +121,23 @@ ${Oe("pop")} button[data-send]:disabled{opacity:.4;cursor:not-allowed;}
121
121
  40%{transform:translateX(calc(-50% + 3px))}
122
122
  60%{transform:translateX(calc(-50% - 2px))}
123
123
  80%{transform:translateX(calc(-50% + 2px))}}
124
- `,Yz=`<div ${xm}="hi"><span ${xm}="hilabel"></span></div><div ${xm}="sel" hidden></div>`});function Qz(e){return e.source===void 0?void 0:`${e.source.file}:${String(e.source.line)}`}function ym(){return typeof location=="undefined"?"":location.pathname+location.search}function cZ(e){return Md(e).anchor}function lZ(e){if(e===void 0||typeof getComputedStyle=="undefined")return!1;let t=getComputedStyle(e).position;return t==="fixed"||t==="sticky"}function t1(e,t){let n=document.elementsFromPoint.bind(document);if(n!==void 0){for(let r of n(e,t))if(!ao(r))return r}}function n1(e,t){let n=window.innerWidth,r=window.innerHeight,o=Math.min(Math.max(e,Am+qz/2),n-Am-qz/2),i=t+12;return i+Jz>r-Am&&(i=Math.max(Am,t-Jz-12)),{left:o,top:i}}function uZ(e){var i;let t=ve(e);if(t!==null&&t.length>0)return t;let n=e.tagName.toLowerCase(),r=e.getAttribute("aria-label");if(r!==null&&r.length>0)return`${n} "${r}"`;let o=((i=e.textContent)!=null?i:"").trim().replace(/\s+/g," ").slice(0,40);return o.length>0?`${n} "${o}"`:n}function f1(e){let t=new ua(e);return t.mount(),t}var sZ,aZ,qz,Jz,Am,mo,nT,oi,Jc,Qc,Hd,Fd,Bd,Wn,Yn,el,ta,Rn,na,fr,ii,hr,Ht,ts,ra,si,ai,oa,ia,Gd,Vd,sa,tl,nl,aa,V,r1,qc,o1,i1,s1,a1,wm,rT,oT,c1,iT,ca,la,l1,sT,aT,u1,cT,lT,d1,Ud,uT,p1,Dr,ua,e1,dT=y(()=>{"use strict";Ot();Cc();M();lt();QS();eT();mt();Xz();sZ=130,aZ=250,qz=280,Jz=170,Am=8,mo="data-reticle-mark",nT="data-reticle-mark-active",oi=e=>`[${mo}="${e}"]`,ua=class{constructor(t){x(this,V);x(this,Jc);x(this,Qc);x(this,Hd);x(this,Fd);x(this,Bd);x(this,Wn);x(this,Yn);x(this,el);x(this,ta);x(this,Rn);x(this,na);x(this,fr);x(this,ii);x(this,hr,!1);x(this,Ht,[]);x(this,ts);x(this,ra);x(this,si);x(this,ai);x(this,oa);x(this,ia);x(this,Gd);x(this,Vd);x(this,sa);x(this,tl);x(this,nl);x(this,aa);x(this,ca);x(this,la,{x:0,y:0});var n;g(this,Jc,t.emit),g(this,Qc,t.now),g(this,Hd,t.onMark),g(this,Fd,(n=t.shouldBlock)!=null?n:(()=>!0)),g(this,Bd,t.onCountChange)}get active(){return c(this,hr)}get markCount(){return c(this,Ht).length}annotations(){return c(this,Ht).map(({id:t,createdAt:n,note:r,label:o,anchor:i,route:s,source:a})=>({id:t,createdAt:n,note:r,label:o,anchor:i,route:s,...a===void 0?{}:{source:a}}))}mount(){var o,i,s;if(c(this,Wn)!==void 0||typeof document=="undefined")return;let t=document.createElement("style");t.setAttribute(mo,"style"),t.textContent=Wz,document.head.appendChild(t);let n=document.createElement("div");n.setAttribute(mo,"root"),n.innerHTML=Yz,document.body.appendChild(n),g(this,Wn,n),g(this,Yn,(o=n.querySelector(oi("hi")))!=null?o:void 0),g(this,el,(i=n.querySelector(oi("hilabel")))!=null?i:void 0),g(this,ta,(s=n.querySelector(oi("sel")))!=null?s:void 0);let r=new AbortController;g(this,nl,r),document.addEventListener("click",a=>T(this,V,i1).call(this,a),{capture:!0,signal:r.signal}),document.addEventListener("mousemove",a=>T(this,V,s1).call(this,a),{passive:!0,capture:!0,signal:r.signal}),document.addEventListener("keydown",a=>T(this,V,o1).call(this,a),{signal:r.signal}),window.addEventListener("scroll",()=>T(this,V,uT).call(this),{capture:!0,signal:r.signal}),window.addEventListener("resize",()=>T(this,V,uT).call(this),{signal:r.signal}),g(this,aa,new MutationObserver(()=>this.syncAnchors())),c(this,aa).observe(document.documentElement,{childList:!0,subtree:!0}),c(this,tl)!==void 0&&this.setAccent(c(this,tl))}setAccent(t){var n;g(this,tl,t),(n=c(this,Wn))==null||n.style.setProperty("--reticle-mark-accent",t)}attachChrome(t){var n,r;g(this,ai,t.markersBtn),g(this,oa,t.clearBtn),g(this,ia,t.copyRow),g(this,Gd,t.onCount),g(this,Vd,t.onMarksChange),g(this,sa,t.countEl),(n=c(this,ai))==null||n.addEventListener("click",o=>{o.stopPropagation(),T(this,V,r1).call(this)}),(r=c(this,oa))==null||r.addEventListener("click",o=>{o.stopPropagation(),this.clearAll()}),T(this,V,qc).call(this)}destroy(){var t,n,r;(t=c(this,nl))==null||t.abort(),g(this,nl,void 0),(n=c(this,aa))==null||n.disconnect(),g(this,aa,void 0),c(this,fr)!==void 0&&Re(c(this,fr)),c(this,ii)!==void 0&&Re(c(this,ii)),T(this,V,Dr).call(this),document.documentElement.removeAttribute(nT),(r=c(this,Wn))==null||r.remove(),document.querySelectorAll(`style[${mo}="style"]`).forEach(o=>o.remove()),g(this,Wn,void 0),g(this,hr,!1),g(this,Ht,[])}toggle(t){g(this,hr,t!=null?t:!c(this,hr)),c(this,hr)?document.documentElement.setAttribute(nT,"1"):(document.documentElement.removeAttribute(nT),T(this,V,wm).call(this),T(this,V,Dr).call(this)),T(this,V,qc).call(this)}agentPrompt(t){return Tm(c(this,Ht),t)}clearAll(){T(this,V,Dr).call(this);for(let t of c(this,Ht))t.pin.remove();g(this,Ht,[]),T(this,V,qc).call(this)}syncAnchors(){let t=ym();for(let n of c(this,Ht))n.target!==void 0&&document.contains(n.target)?n.pin.removeAttribute("data-stale"):(n.target=void 0,n.pin.setAttribute("data-stale","1")),n.pin.hidden=n.route!==t;T(this,V,Ud).call(this)}};Jc=new WeakMap,Qc=new WeakMap,Hd=new WeakMap,Fd=new WeakMap,Bd=new WeakMap,Wn=new WeakMap,Yn=new WeakMap,el=new WeakMap,ta=new WeakMap,Rn=new WeakMap,na=new WeakMap,fr=new WeakMap,ii=new WeakMap,hr=new WeakMap,Ht=new WeakMap,ts=new WeakMap,ra=new WeakMap,si=new WeakMap,ai=new WeakMap,oa=new WeakMap,ia=new WeakMap,Gd=new WeakMap,Vd=new WeakMap,sa=new WeakMap,tl=new WeakMap,nl=new WeakMap,aa=new WeakMap,V=new WeakSet,r1=function(){var r,o;let t=c(this,Wn);if(t===void 0)return;let n=t.getAttribute("data-hide")==="1"?"0":"1";n==="1"?t.setAttribute("data-hide","1"):t.removeAttribute("data-hide"),(r=c(this,ai))==null||r.setAttribute("data-active",n==="0"?"0":"1"),(o=c(this,ai))==null||o.setAttribute("aria-pressed",n==="1"?"true":"false")},qc=function(){var n,r,o,i,s;let t=c(this,Ht).length;if((n=c(this,Bd))==null||n.call(this,t),c(this,sa)!==void 0&&(c(this,sa).textContent=String(t),c(this,sa).hidden=t===0),(r=c(this,oa))==null||r.toggleAttribute("disabled",t===0),(o=c(this,Gd))==null||o.call(this,t),(i=c(this,Vd))==null||i.call(this,this.annotations()),c(this,ia)!==void 0){c(this,ia).hidden=t===0;let a=c(this,ia).querySelector("[data-reticle-marks-text]");a!==null&&(a.textContent=Bz(t))}(s=c(this,ai))==null||s.toggleAttribute("disabled",t===0)},o1=function(t){if(!(t.key!=="Escape"||!c(this,hr))){if(c(this,Rn)!==void 0){t.preventDefault(),T(this,V,Dr).call(this);return}this.toggle(!1)}},i1=function(t){var a,l;if(!c(this,hr)||Vh())return;let n=t.target;if(!(n instanceof Element))return;let r=n.hasAttribute(e1)?t1(t.clientX,t.clientY):n;if(r===void 0||Rt(r)||((a=c(this,ai))==null?void 0:a.contains(r))===!0||((l=c(this,oa))==null?void 0:l.contains(r))===!0||r.closest(oi("pin"))!==null||r.closest(oi("pop"))!==null)return;if(c(this,Rn)!==void 0){t.preventDefault(),t.stopPropagation(),T(this,V,aT).call(this);return}let o=r instanceof HTMLElement?r:r.parentElement;if(o===null)return;c(this,Fd).call(this)?(t.preventDefault(),t.stopPropagation()):t.preventDefault();let i=cZ(o),s=c(this,Ht).find(u=>u.anchor===i&&u.route===ym());if(s!==void 0){T(this,V,rT).call(this,s);return}T(this,V,c1).call(this,o,t.clientX,t.clientY)},s1=function(t){c(this,fr)!==void 0&&Re(c(this,fr)),g(this,fr,ue(()=>{g(this,fr,void 0),T(this,V,a1).call(this,t)},sZ))},a1=function(t){if(c(this,Yn)===void 0)return;let n=t.target,r=n instanceof Element&&n.hasAttribute(e1)?t1(t.clientX,t.clientY):n;if(!c(this,hr)||c(this,Rn)!==void 0||!(r instanceof Element)||Rt(r)||r.closest(oi("pin"))!==null){c(this,Yn).setAttribute("data-on","0");return}let i=r.getBoundingClientRect();if(i.width===0&&i.height===0){c(this,Yn).setAttribute("data-on","0");return}c(this,Yn).style.left=`${String(i.left)}px`,c(this,Yn).style.top=`${String(i.top)}px`,c(this,Yn).style.width=`${String(i.width)}px`,c(this,Yn).style.height=`${String(i.height)}px`,c(this,Yn).setAttribute("data-on","1"),c(this,el)!==void 0&&(c(this,el).textContent=uZ(r))},wm=function(){var t;c(this,fr)!==void 0&&(Re(c(this,fr)),g(this,fr,void 0)),(t=c(this,Yn))==null||t.setAttribute("data-on","0")},rT=function(t){T(this,V,Dr).call(this),g(this,ts,t),g(this,ra,t.anchor),g(this,si,t.target),T(this,V,wm).call(this);let n=T(this,V,oT).call(this,t);T(this,V,iT).call(this,t.label,n.x,n.y,t.note),T(this,V,lT).call(this,n.x,n.y),T(this,V,Ud).call(this)},oT=function(t){let n=t.target;if(n!==void 0&&n.isConnected){let r=n.getBoundingClientRect();if(r.width>0||r.height>0)return{x:r.left+r.width/2,y:r.top+r.height/2}}return{x:t.clientX,y:t.isFixed?t.clientY:t.yDoc-window.scrollY}},c1=function(t,n,r){let o=Md(t),i=o.anchor;if(c(this,ra)===i&&c(this,Rn)!==void 0){T(this,V,aT).call(this);return}T(this,V,Dr).call(this),T(this,V,wm).call(this),g(this,ts,void 0),g(this,ra,i),g(this,si,t);let s=o.source!==void 0?`${o.label} \xB7 ${o.source.file}:${String(o.source.line)}`:o.label;T(this,V,iT).call(this,s,n,r,""),T(this,V,lT).call(this,n,r),T(this,V,Ud).call(this),T(this,V,l1).call(this,o,n,r)},iT=function(t,n,r,o){var d,f;let i=document.createElement("div");i.setAttribute(mo,"pop"),i.setAttribute("role","dialog"),i.setAttribute("aria-label",tT),i.innerHTML=`<div class="reticle-mark-where"></div>
125
- <textarea rows="2" placeholder="${tT}"></textarea>
124
+ `,sD=`<div ${ym}="hi"><span ${ym}="hilabel"></span></div><div ${ym}="sel" hidden></div>`});function uD(e){return e.source===void 0?void 0:`${e.source.file}:${String(e.source.line)}`}function vm(){return typeof location=="undefined"?"":location.pathname+location.search}function OZ(e){return Ud(e).anchor}function IZ(e){if(e===void 0||typeof getComputedStyle=="undefined")return!1;let t=getComputedStyle(e).position;return t==="fixed"||t==="sticky"}function pD(e,t){let n=document.elementsFromPoint.bind(document);if(n!==void 0){for(let r of n(e,t))if(!lr(r))return r}}function fD(e,t){let n=window.innerWidth,r=window.innerHeight,o=Math.min(Math.max(e,wm+cD/2),n-wm-cD/2),i=t+12;return i+lD>r-wm&&(i=Math.max(wm,t-lD-12)),{left:o,top:i}}function CZ(e){var i;let t=Ne(e);if(t!==null&&t.length>0)return t;let n=e.tagName.toLowerCase(),r=e.getAttribute("aria-label");if(r!==null&&r.length>0)return`${n} "${r}"`;let o=((i=e.textContent)!=null?i:"").trim().replace(/\s+/g," ").slice(0,40);return o.length>0?`${n} "${o}"`:n}function yD(e){let t=new da(e);return t.mount(),t}var NZ,RZ,cD,lD,wm,_o,aT,ai,el,tl,Fd,Bd,Gd,Wn,Yn,nl,na,Rn,ra,mr,ci,gr,Ut,rs,oa,li,ui,ia,sa,Vd,jd,aa,rl,ol,ca,V,hD,Qc,mD,gD,ED,bD,Nm,cT,lT,_D,uT,la,ua,SD,dT,pT,TD,fT,hT,xD,Hd,mT,AD,Ur,da,dD,gT=y(()=>{"use strict";Ot();Lc();M();nt();oT();iT();dt();aD();NZ=130,RZ=250,cD=280,lD=170,wm=8,_o="data-reticle-mark",aT="data-reticle-mark-active",ai=e=>`[${_o}="${e}"]`,da=class{constructor(t){x(this,V);x(this,el);x(this,tl);x(this,Fd);x(this,Bd);x(this,Gd);x(this,Wn);x(this,Yn);x(this,nl);x(this,na);x(this,Rn);x(this,ra);x(this,mr);x(this,ci);x(this,gr,!1);x(this,Ut,[]);x(this,rs);x(this,oa);x(this,li);x(this,ui);x(this,ia);x(this,sa);x(this,Vd);x(this,jd);x(this,aa);x(this,rl);x(this,ol);x(this,ca);x(this,la);x(this,ua,{x:0,y:0});var n;g(this,el,t.emit),g(this,tl,t.now),g(this,Fd,t.onMark),g(this,Bd,(n=t.shouldBlock)!=null?n:(()=>!0)),g(this,Gd,t.onCountChange)}get active(){return c(this,gr)}get markCount(){return c(this,Ut).length}annotations(){return c(this,Ut).map(({id:t,createdAt:n,note:r,label:o,anchor:i,route:s,source:a})=>({id:t,createdAt:n,note:r,label:o,anchor:i,route:s,...a===void 0?{}:{source:a}}))}mount(){var o,i,s;if(c(this,Wn)!==void 0||typeof document=="undefined")return;let t=document.createElement("style");t.setAttribute(_o,"style"),t.textContent=iD,document.head.appendChild(t);let n=document.createElement("div");n.setAttribute(_o,"root"),n.innerHTML=sD,document.body.appendChild(n),g(this,Wn,n),g(this,Yn,(o=n.querySelector(ai("hi")))!=null?o:void 0),g(this,nl,(i=n.querySelector(ai("hilabel")))!=null?i:void 0),g(this,na,(s=n.querySelector(ai("sel")))!=null?s:void 0);let r=new AbortController;g(this,ol,r),document.addEventListener("click",a=>T(this,V,gD).call(this,a),{capture:!0,signal:r.signal}),document.addEventListener("mousemove",a=>T(this,V,ED).call(this,a),{passive:!0,capture:!0,signal:r.signal}),document.addEventListener("keydown",a=>T(this,V,mD).call(this,a),{signal:r.signal}),window.addEventListener("scroll",()=>T(this,V,mT).call(this),{capture:!0,signal:r.signal}),window.addEventListener("resize",()=>T(this,V,mT).call(this),{signal:r.signal}),g(this,ca,new MutationObserver(()=>this.syncAnchors())),c(this,ca).observe(document.documentElement,{childList:!0,subtree:!0}),c(this,rl)!==void 0&&this.setAccent(c(this,rl))}setAccent(t){var n;g(this,rl,t),(n=c(this,Wn))==null||n.style.setProperty("--reticle-mark-accent",t)}attachChrome(t){var n,r;g(this,ui,t.markersBtn),g(this,ia,t.clearBtn),g(this,sa,t.copyRow),g(this,Vd,t.onCount),g(this,jd,t.onMarksChange),g(this,aa,t.countEl),(n=c(this,ui))==null||n.addEventListener("click",o=>{o.stopPropagation(),T(this,V,hD).call(this)}),(r=c(this,ia))==null||r.addEventListener("click",o=>{o.stopPropagation(),this.clearAll()}),T(this,V,Qc).call(this)}destroy(){var t,n,r;(t=c(this,ol))==null||t.abort(),g(this,ol,void 0),(n=c(this,ca))==null||n.disconnect(),g(this,ca,void 0),c(this,mr)!==void 0&&Re(c(this,mr)),c(this,ci)!==void 0&&Re(c(this,ci)),T(this,V,Ur).call(this),document.documentElement.removeAttribute(aT),(r=c(this,Wn))==null||r.remove(),document.querySelectorAll(`style[${_o}="style"]`).forEach(o=>o.remove()),g(this,Wn,void 0),g(this,gr,!1),g(this,Ut,[])}toggle(t){g(this,gr,t!=null?t:!c(this,gr)),c(this,gr)?document.documentElement.setAttribute(aT,"1"):(document.documentElement.removeAttribute(aT),T(this,V,Nm).call(this),T(this,V,Ur).call(this)),T(this,V,Qc).call(this)}agentPrompt(t){return Am(c(this,Ut),t)}clearAll(){T(this,V,Ur).call(this);for(let t of c(this,Ut))t.pin.remove();g(this,Ut,[]),T(this,V,Qc).call(this)}syncAnchors(){let t=vm();for(let n of c(this,Ut))n.target!==void 0&&document.contains(n.target)?n.pin.removeAttribute("data-stale"):(n.target=void 0,n.pin.setAttribute("data-stale","1")),n.pin.hidden=n.route!==t;T(this,V,Hd).call(this)}};el=new WeakMap,tl=new WeakMap,Fd=new WeakMap,Bd=new WeakMap,Gd=new WeakMap,Wn=new WeakMap,Yn=new WeakMap,nl=new WeakMap,na=new WeakMap,Rn=new WeakMap,ra=new WeakMap,mr=new WeakMap,ci=new WeakMap,gr=new WeakMap,Ut=new WeakMap,rs=new WeakMap,oa=new WeakMap,li=new WeakMap,ui=new WeakMap,ia=new WeakMap,sa=new WeakMap,Vd=new WeakMap,jd=new WeakMap,aa=new WeakMap,rl=new WeakMap,ol=new WeakMap,ca=new WeakMap,V=new WeakSet,hD=function(){var r,o;let t=c(this,Wn);if(t===void 0)return;let n=t.getAttribute("data-hide")==="1"?"0":"1";n==="1"?t.setAttribute("data-hide","1"):t.removeAttribute("data-hide"),(r=c(this,ui))==null||r.setAttribute("data-active",n==="0"?"0":"1"),(o=c(this,ui))==null||o.setAttribute("aria-pressed",n==="1"?"true":"false")},Qc=function(){var n,r,o,i,s;let t=c(this,Ut).length;if((n=c(this,Gd))==null||n.call(this,t),c(this,aa)!==void 0&&(c(this,aa).textContent=String(t),c(this,aa).hidden=t===0),(r=c(this,ia))==null||r.toggleAttribute("disabled",t===0),(o=c(this,Vd))==null||o.call(this,t),(i=c(this,jd))==null||i.call(this,this.annotations()),c(this,sa)!==void 0){c(this,sa).hidden=t===0;let a=c(this,sa).querySelector("[data-reticle-marks-text]");a!==null&&(a.textContent=Qz(t))}(s=c(this,ui))==null||s.toggleAttribute("disabled",t===0)},mD=function(t){if(!(t.key!=="Escape"||!c(this,gr))){if(c(this,Rn)!==void 0){t.preventDefault(),T(this,V,Ur).call(this);return}this.toggle(!1)}},gD=function(t){var a,l;if(!c(this,gr)||jh())return;let n=t.target;if(!(n instanceof Element))return;let r=n.hasAttribute(dD)?pD(t.clientX,t.clientY):n;if(r===void 0||Rt(r)||((a=c(this,ui))==null?void 0:a.contains(r))===!0||((l=c(this,ia))==null?void 0:l.contains(r))===!0||r.closest(ai("pin"))!==null||r.closest(ai("pop"))!==null)return;if(c(this,Rn)!==void 0){t.preventDefault(),t.stopPropagation(),T(this,V,pT).call(this);return}let o=r instanceof HTMLElement?r:r.parentElement;if(o===null)return;c(this,Bd).call(this)?(t.preventDefault(),t.stopPropagation()):t.preventDefault();let i=OZ(o),s=c(this,Ut).find(u=>u.anchor===i&&u.route===vm());if(s!==void 0){T(this,V,cT).call(this,s);return}T(this,V,_D).call(this,o,t.clientX,t.clientY)},ED=function(t){c(this,mr)!==void 0&&Re(c(this,mr)),g(this,mr,ue(()=>{g(this,mr,void 0),T(this,V,bD).call(this,t)},NZ))},bD=function(t){if(c(this,Yn)===void 0)return;let n=t.target,r=n instanceof Element&&n.hasAttribute(dD)?pD(t.clientX,t.clientY):n;if(!c(this,gr)||c(this,Rn)!==void 0||!(r instanceof Element)||Rt(r)||r.closest(ai("pin"))!==null){c(this,Yn).setAttribute("data-on","0");return}let i=r.getBoundingClientRect();if(i.width===0&&i.height===0){c(this,Yn).setAttribute("data-on","0");return}c(this,Yn).style.left=`${String(i.left)}px`,c(this,Yn).style.top=`${String(i.top)}px`,c(this,Yn).style.width=`${String(i.width)}px`,c(this,Yn).style.height=`${String(i.height)}px`,c(this,Yn).setAttribute("data-on","1"),c(this,nl)!==void 0&&(c(this,nl).textContent=CZ(r))},Nm=function(){var t;c(this,mr)!==void 0&&(Re(c(this,mr)),g(this,mr,void 0)),(t=c(this,Yn))==null||t.setAttribute("data-on","0")},cT=function(t){T(this,V,Ur).call(this),g(this,rs,t),g(this,oa,t.anchor),g(this,li,t.target),T(this,V,Nm).call(this);let n=T(this,V,lT).call(this,t);T(this,V,uT).call(this,t.label,n.x,n.y,t.note),T(this,V,hT).call(this,n.x,n.y),T(this,V,Hd).call(this)},lT=function(t){let n=t.target;if(n!==void 0&&n.isConnected){let r=n.getBoundingClientRect();if(r.width>0||r.height>0)return{x:r.left+r.width/2,y:r.top+r.height/2}}return{x:t.clientX,y:t.isFixed?t.clientY:t.yDoc-window.scrollY}},_D=function(t,n,r){let o=Ud(t),i=o.anchor;if(c(this,oa)===i&&c(this,Rn)!==void 0){T(this,V,pT).call(this);return}T(this,V,Ur).call(this),T(this,V,Nm).call(this),g(this,rs,void 0),g(this,oa,i),g(this,li,t);let s=o.source!==void 0?`${o.label} \xB7 ${o.source.file}:${String(o.source.line)}`:o.label;T(this,V,uT).call(this,s,n,r,""),T(this,V,hT).call(this,n,r),T(this,V,Hd).call(this),T(this,V,SD).call(this,o,n,r)},uT=function(t,n,r,o){var d,f;let i=document.createElement("div");i.setAttribute(_o,"pop"),i.setAttribute("role","dialog"),i.setAttribute("aria-label",sT),i.innerHTML=`<div class="reticle-mark-where"></div>
125
+ <textarea rows="2" placeholder="${sT}"></textarea>
126
126
  <div class="reticle-mark-row">
127
- <button type="button" data-cancel data-reticle-mark-cancel>${Kz}</button>
128
- <button type="button" data-send data-reticle-mark-send disabled>${jz}</button>
129
- </div>`;let s=i.querySelector(".reticle-mark-where");s!==null&&(s.textContent=t);let a=n1(n,r);i.style.left=`${String(a.left)}px`,i.style.top=`${String(a.top)}px`,(d=c(this,Wn))==null||d.appendChild(i),g(this,Rn,i),requestAnimationFrame(()=>i.setAttribute("data-in","1"));let l=i.querySelector("textarea"),u=i.querySelector("button[data-send]");l!==null&&(l.value=o,u!==null&&(u.disabled=l.value.trim().length===0),l.addEventListener("input",()=>{u!==null&&(u.disabled=l.value.trim().length===0)}),l.addEventListener("keydown",m=>{m.stopPropagation(),!m.isComposing&&(m.key==="Escape"?(m.preventDefault(),T(this,V,Dr).call(this)):m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),T(this,V,sT).call(this)))}),ue(()=>l.focus(),50)),(f=i.querySelector("button[data-cancel]"))==null||f.addEventListener("click",()=>T(this,V,Dr).call(this)),u==null||u.addEventListener("click",()=>T(this,V,sT).call(this)),g(this,ca,void 0),g(this,la,{x:n,y:r})},ca=new WeakMap,la=new WeakMap,l1=function(t,n,r){g(this,ca,t),g(this,la,{x:n,y:r})},sT=function(){var o,i,s;let t=(s=(i=(o=c(this,Rn))==null?void 0:o.querySelector("textarea"))==null?void 0:i.value.trim())!=null?s:"";if(t.length===0)return;let n=c(this,ts);if(n!==void 0){n.note=t;let a=n.pin.querySelector(oi("tipn"));a!==null&&(a.textContent=t),c(this,Jc).call(this,w.HUMAN_MARK,{note:t,anchor:n.anchor,label:n.label,route:n.route}),T(this,V,cT).call(this,t,n.anchor,n.label,c(this,Ht).indexOf(n)+1,n.source),T(this,V,qc).call(this),T(this,V,Dr).call(this);return}let r=c(this,ca);r!==void 0&&(T(this,V,u1).call(this,t,r,c(this,la).x,c(this,la).y),T(this,V,Dr).call(this))},aT=function(){let t=c(this,Rn);t!==void 0&&(t.classList.remove("reticle-mark-shake"),t.offsetWidth,t.classList.add("reticle-mark-shake"),c(this,ii)!==void 0&&Re(c(this,ii)),g(this,ii,ue(()=>{t.classList.remove("reticle-mark-shake"),g(this,ii,void 0)},aZ)))},u1=function(t,n,r,o){let i={note:t,anchor:n.anchor,strategy:n.strategy,label:n.label,route:ym()};n.source!==void 0&&(i.source=n.source),c(this,Jc).call(this,w.HUMAN_MARK,i),c(this,Qc).call(this),T(this,V,d1).call(this,n,t,r,o),T(this,V,cT).call(this,t,n.anchor,n.label,c(this,Ht).length,Qz(n))},cT=function(t,n,r,o,i){var a;let s={note:t,anchor:n,label:r,index:o};i!==void 0&&(s.source=i),(a=c(this,Hd))==null||a.call(this,s)},lT=function(t,n){var o,i;(o=c(this,na))==null||o.remove();let r=document.createElement("div");r.setAttribute(mo,"pending"),r.textContent=Zz,r.style.left=`${String(t)}px`,r.style.top=`${String(n)}px`,(i=c(this,Wn))==null||i.appendChild(r),g(this,na,r)},d1=function(t,n,r,o){if(c(this,Wn)===void 0)return;let i=document.createElement("button");i.type="button",i.setAttribute(mo,"pin"),i.setAttribute("aria-label",t.label);let s=c(this,Ht).length+1;i.innerHTML=`<span>${String(s)}</span><span ${mo}="tip"><span ${mo}="tipq"></span><span ${mo}="tipn"></span></span>`;let a=i.querySelector(oi("tipq")),l=i.querySelector(oi("tipn"));a!==null&&(a.textContent=t.label),l!==null&&(l.textContent=n);let u=lZ(c(this,si)),d=u?o:o+window.scrollY;i.style.left=`${String(r/window.innerWidth*100)}%`,i.style.top=`${String(u?o:d-window.scrollY)}px`,c(this,Wn).appendChild(i);let f=c(this,Qc).call(this),m={id:`${t.anchor}:${String(f)}:${String(s)}`,createdAt:f,note:n,label:t.label,anchor:t.anchor,route:ym(),xPct:r/window.innerWidth*100,yDoc:d,clientX:r,clientY:o,isFixed:u,pin:i,target:c(this,si),source:Qz(t)};i.addEventListener("click",h=>{h.preventDefault(),h.stopPropagation(),c(this,hr)&&T(this,V,rT).call(this,m)}),c(this,Ht).push(m),T(this,V,qc).call(this)},Ud=function(){let t=c(this,ta);if(t===void 0)return;let n=c(this,si);if(n===void 0||!document.contains(n)||c(this,Rn)===void 0){t.hidden=!0;return}let r=n.getBoundingClientRect();t.hidden=!1,t.style.left=`${String(r.left)}px`,t.style.top=`${String(r.top)}px`,t.style.width=`${String(r.width)}px`,t.style.height=`${String(r.height)}px`},uT=function(){for(let t of c(this,Ht)){if(t.isFixed){t.pin.style.top=`${String(t.clientY)}px`;continue}t.pin.style.top=`${String(t.yDoc-window.scrollY)}px`}T(this,V,p1).call(this),T(this,V,Ud).call(this)},p1=function(){let t=c(this,Rn),n=c(this,ts);if(t===void 0||n===void 0)return;let r=T(this,V,oT).call(this,n),o=n1(r.x,r.y);t.style.left=`${String(o.left)}px`,t.style.top=`${String(o.top)}px`},Dr=function(){var t,n;(t=c(this,Rn))==null||t.remove(),g(this,Rn,void 0),(n=c(this,na))==null||n.remove(),g(this,na,void 0),g(this,ra,void 0),g(this,si,void 0),g(this,ca,void 0),g(this,ts,void 0),c(this,ta)!==void 0&&(c(this,ta).hidden=!0)};e1="data-reticle-blocker"});var dZ,vm,pZ,E1,b1=y(()=>{"use strict";dZ={view:'<g><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/><path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7s-8.268-2.943-9.542-7"/></g>',pointer:'<path d="M15.042 21.672L13.684 16.6m0 0l-2.51 2.225l.569-9.47l5.227 7.917l-3.286-.672ZM12 2.25V4.5m5.834.166l-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243l-1.59-1.59"/>',send:'<path d="M6 12 3.269 3.126A59.768 59.768 0 0 1 21.485 12 59.77 59.77 0 0 1 3.27 20.876L5.999 12Zm0 0h7.5"/>',chart:'<path d="M9 19v-6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2m0 0V9a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v10m-6 0a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2m0 0V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2"/>',"caret-down":'<path d="m19 9l-7 7l-7-7"/>',check:'<path d="m5 13l4 4L19 7"/>',remove:'<path d="m4.5 19.5l15-15m-15 0l15 15"/>',pause:'<path d="M8 5v14M16 5v14"/>',play:'<path d="M8 5.75v12.5L18 12 8 5.75Z"/>',stop:'<rect x="6.5" y="6.5" width="11" height="11" rx="2"/>',copy:'<path d="M8 7v8a2 2 0 0 0 2 2h6M8 7V5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293l4.414 4.414a1 1 0 0 1 .293.707V15a2 2 0 0 1-2 2h-2M8 7H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2"/>',download:'<path d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"/>',message:'<path d="M8.625 9.75a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227c1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332a48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"/>',gear:'<g><path d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87c.074.04.147.083.22.127c.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 0 1 0 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 0 1 0-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124c.072-.044.146-.087.22-.128c.332-.183.582-.495.644-.869l.214-1.281Z"/><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z"/></g>',layout:'<path d="M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6Zm0 9.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6Zm0 9.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"/>',notes:'<path d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75a2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15a2.25 2.25 0 0 1 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75 12h.008v.008H6.75V12Zm0 3h.008v.008H6.75V15Zm0 3h.008v.008H6.75V18Z"/>',trash:'<path d="m19 7l-.867 12.142A2 2 0 0 1 16.138 21H7.862a2 2 0 0 1-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v3M4 7h16"/>',help:'<path d="M8.228 9c.549-1.165 2.03-2 3.772-2c2.21 0 4 1.343 4 3c0 1.4-1.278 2.575-3.006 2.907c-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/>',"caret-right":'<path d="m9 5l7 7l-7 7"/>',annotate:'<path d="m16.862 4.487l1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"/>',sync:'<path d="M4.5 12c0-1.232.046-2.453.138-3.662a4.006 4.006 0 0 1 3.7-3.7a48.678 48.678 0 0 1 7.324 0a4.006 4.006 0 0 1 3.7 3.7c.017.22.032.441.046.662M4.5 12l-3-3m3 3l3-3m12 3c0 1.232-.046 2.453-.138 3.662a4.006 4.006 0 0 1-3.7 3.7a48.657 48.657 0 0 1-7.324 0a4.006 4.006 0 0 1-3.7-3.7c-.017-.22-.032-.441-.046-.662M19.5 12l-3 3m3-3l3 3"/>'},vm=dZ,pZ={chart:'<path fill="currentColor" d="M2 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm6-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1zm6-3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1z"/>',annotate:'<path fill="currentColor" fill-rule="evenodd" d="m5.433 13.916l1.262-3.154a4 4 0 0 1 .885-1.343L14.5 2.5a2.121 2.121 0 1 1 3 3l-6.92 6.919c-.383.383-.84.684-1.343.885l-3.154 1.262a.5.5 0 0 1-.65-.65ZM2.5 5.75c0-.69.56-1.25 1.25-1.25H10A.75.75 0 0 0 10 3H3.75A2.75 2.75 0 0 0 1 5.75v10.5A2.75 2.75 0 0 0 3.75 19h10.5A2.75 2.75 0 0 0 17 16.25V10a.75.75 0 0 0-1.5 0v6.25c0 .69-.56 1.25-1.25 1.25H3.75c-.69 0-1.25-.56-1.25-1.25V5.75Z" clip-rule="evenodd"/>',message:'<path fill="currentColor" fill-rule="evenodd" d="M10 2c-2.236 0-4.43.18-6.57.524C1.993 2.755 1 4.014 1 5.426v5.148c0 1.413.993 2.67 2.43 2.902c.848.137 1.705.248 2.57.331v3.443a.75.75 0 0 0 1.28.53l3.58-3.579a.78.78 0 0 1 .527-.224a41.202 41.202 0 0 0 5.183-.5c1.437-.232 2.43-1.49 2.43-2.903V5.426c0-1.413-.993-2.67-2.43-2.902A41.289 41.289 0 0 0 10 2Zm0 7a1 1 0 1 0 0-2a1 1 0 0 0 0 2ZM8 8a1 1 0 1 1-2 0a1 1 0 0 1 2 0Zm5 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2Z" clip-rule="evenodd"/>',view:'<g fill="currentColor"><path d="M10 12a2 2 0 1 0 0-4a2 2 0 0 0 0 4"/><path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10M14 10a4 4 0 1 1-8 0a4 4 0 0 1 8 0" clip-rule="evenodd"/></g>',gear:'<path fill="currentColor" fill-rule="evenodd" d="M7.84 1.804A1 1 0 0 1 8.82 1h2.36a1 1 0 0 1 .98.804l.331 1.652a6.993 6.993 0 0 1 1.929 1.115l1.598-.54a1 1 0 0 1 1.186.447l1.18 2.044a1 1 0 0 1-.205 1.251l-1.267 1.113a7.047 7.047 0 0 1 0 2.228l1.267 1.113a1 1 0 0 1 .206 1.25l-1.18 2.045a1 1 0 0 1-1.187.447l-1.598-.54a6.993 6.993 0 0 1-1.929 1.115l-.33 1.652a1 1 0 0 1-.98.804H8.82a1 1 0 0 1-.98-.804l-.331-1.652a6.993 6.993 0 0 1-1.929-1.115l-1.598.54a1 1 0 0 1-1.186-.447l-1.18-2.044a1 1 0 0 1 .205-1.251l1.267-1.114a7.05 7.05 0 0 1 0-2.227L1.821 7.773a1 1 0 0 1-.206-1.25l1.18-2.045a1 1 0 0 1 1.187-.447l1.598.54a6.993 6.993 0 0 1 1.93-1.115l.33-1.652ZM10 13a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z" clip-rule="evenodd"/>'},E1=pZ});function fZ(e,t){let n=`${e}:${String(t)}`,r=_1.get(n);if(r!==void 0)return document.importNode(r,!0);let o=vm[e];if(o===void 0)throw new Error(`missing heroicon body: ${String(e)}`);let s=new DOMParser().parseFromString(`<svg xmlns="${jd}" viewBox="${Kd}" fill="none">${o}</svg>`,"image/svg+xml").documentElement,a=s instanceof SVGSVGElement?document.importNode(s,!0):document.createElementNS(jd,"svg");return a.setAttribute("viewBox",Kd),a.setAttribute("width",String(t)),a.setAttribute("height",String(t)),a.setAttribute("fill","none"),s instanceof SVGSVGElement||(a.innerHTML=o),_1.set(n,a),document.importNode(a,!0)}function go(e,t=16){let n=document.createElement("span");return n.className="reticle-hi-icon",n.setAttribute("aria-hidden","true"),n.style.width=`${String(t)}px`,n.style.height=`${String(t)}px`,n.appendChild(fZ(e,t)),n}function pT(e,t,n=16){e.replaceChildren(go(t,n))}function Ie(e,t=16){let n=vm[e];if(n===void 0)throw new Error(`missing heroicon body: ${String(e)}`);return`<span class="reticle-hi-icon" aria-hidden="true" style="width:${String(t)}px;height:${String(t)}px"><svg xmlns="${jd}" viewBox="${Kd}" width="${String(t)}" height="${String(t)}" fill="none">${n}</svg></span>`}function Nm(e,t=16){let n=vm[e],r=E1[e];if(n===void 0||r===void 0)throw new Error(`missing heroicon toggle pair: ${String(e)}`);let o=String(t);return`<span class="reticle-hi-toggle" aria-hidden="true" style="width:${o}px;height:${o}px"><span class="reticle-hi-icon reticle-hi-icon--outline" style="width:${o}px;height:${o}px"><svg xmlns="${jd}" viewBox="${Kd}" width="${o}" height="${o}" fill="none">${n}</svg></span><span class="reticle-hi-icon reticle-hi-icon--solid" style="width:${o}px;height:${o}px"><svg xmlns="${jd}" viewBox="${Kd}" width="${o}" height="${o}" fill="currentColor">${r}</svg></span></span>`}var se,xe,jd,Kd,_1,Pr=y(()=>{"use strict";b1();se={VIEW:"view",POINTER:"pointer",SEND:"send",CHART:"chart",CARET_DOWN:"caret-down",CHECK:"check",REMOVE:"remove",PAUSE:"pause",PLAY:"play",STOP:"stop",COPY:"copy",DOWNLOAD:"download",MESSAGE:"message",NOTES:"notes",GEAR:"gear",LAYOUT:"layout",TRASH:"trash",HELP:"help",CARET_RIGHT:"caret-right",ANNOTATE:"annotate",SYNC:"sync"},xe={CHIP:11,LOG:11,TALLY:12,CTL:10,SEND:14,MIN:12,HELP:12,NAV:18,TOOLBAR:18,FAB:22},jd="http://www.w3.org/2000/svg",Kd="0 0 24 24",_1=new Map});function Zd(e){e.scrollTop=e.scrollHeight,e.toggleAttribute(xZ,e.scrollHeight>e.clientHeight+1)}function R1(e){Zd(e),requestAnimationFrame(()=>{Zd(e),requestAnimationFrame(()=>Zd(e))}),ue(()=>Zd(e),TZ)}function O1(e){return[...e.children].filter(t=>t.hasAttribute(Cm))}function $m(e,t){let n=O1(e);for(let r of n.slice(0,Math.max(0,n.length-t)))r.remove()}function km(e){for(let t of O1(e))t.remove()}function gT(e){return e===void 0||!Number.isFinite(e)||e<=0?hZ:Math.floor(e)}function Yd(e){let t=Math.max(0,Math.floor(e/1e3));if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return t%60===0?`${n}m`:`${n}m ${t%60}s`;let r=Math.floor(n/60);return n%60===0?`${r}h`:`${r}h ${n%60}m`}function I1(e){return Yd(e)}function zm(e,t,n,r,o,i=hn.AGENT){var _,A,v;let s=t===Ge.READ?AZ(e,n,i):void 0;if(s!==void 0){let N=Number((_=s.getAttribute(x1))!=null?_:"1")+1;s.setAttribute(x1,String(N));let O=s.querySelector(`.${A1}`);O===null&&(O=document.createElement("span"),O.className=A1,(A=s.querySelector(`.${Om}`))==null||A.after(O)),O.textContent=`\xD7${String(N)}`;let k=s.querySelector(`[${Wd}]`);k!==null&&(k.textContent=r);let j=s.querySelector(`.${Lm}`);return j===null?{result:()=>{}}:y1(s,j)}let a=t===Ge.ACT||t===Ge.READ;if(a&&((v=e.getAttribute(Im))!=null?v:hn.AGENT)!==i){let N=document.createElement("div");N.setAttribute(Cm,""),N.setAttribute(hT,_Z),N.setAttribute(fT,i);let O=document.createElement("span");O.className=Om,O.textContent=bZ[i],N.appendChild(O),e.appendChild(N)}a&&e.setAttribute(Im,i);let l=document.createElement("div");l.setAttribute(Cm,""),l.setAttribute(hT,t),l.setAttribute(fT,i),t===Ge.ACT&&l.setAttribute(v1,"running");let u=document.createElement("span");u.setAttribute(Wd,""),u.textContent=r;let d=[];t!==Ge.HUMAN&&d.push(u);let f=mZ[t],m=gZ[t];if(f.length>0||m!==void 0){let N=document.createElement("span");if(N.className=SZ,N.setAttribute("data-mode",EZ[t]),m!==void 0&&N.appendChild(go(m,xe.LOG)),f.length>0){let O=document.createElement("span");O.className="reticle-chip-label",O.textContent=f,N.appendChild(O)}d.push(N)}let h=document.createElement("span");h.className=Om,h.textContent=n;let E=document.createElement("span");return E.className=Lm,d.push(h),t!==Ge.HUMAN&&d.push(E),l.append(...d),e.appendChild(l),$m(e,o),requestAnimationFrame(()=>{Zd(e)}),y1(l,E)}function AZ(e,t,n){var o;let r=e.lastElementChild;if(!(!(r instanceof HTMLElement)||!r.hasAttribute(Cm))&&!(r.getAttribute(hT)!==Ge.READ||r.getAttribute(fT)!==n))return((o=r.querySelector(`.${Om}`))==null?void 0:o.textContent)===t?r:void 0}function y1(e,t){return{result:n=>{if(e.setAttribute(v1,n),n===Kn.PASS){t.textContent=S1.pass,t.className=`${Lm} ${T1.pass}`;return}t.textContent=` ${S1[n]}`,t.className=`${Lm} ${T1[n]}`}}}var hZ,mZ,gZ,w1,EZ,S1,bZ,Im,fT,v1,_Z,T1,mT,Cm,Wd,hT,Om,x1,A1,Lm,SZ,Rm,TZ,N1,xZ,ci=y(()=>{"use strict";M();ZS();mt();Pr();hZ=50,mZ={read:"READ",act:"ACT",narration:"",human:""},gZ={read:se.VIEW,act:se.POINTER},w1={[it.IDLE]:"",[it.READING]:"READING",[it.ACTING]:"ACTING"},EZ={read:it.READING,act:it.ACTING,narration:it.IDLE,human:it.IDLE},S1={pass:"\u2713",fail:"Fail"},bZ={agent:"Your agent is driving",harness:"Reticle Harness is driving"},Im="data-reticle-log-actor",fT="data-actor",v1="data-state",_Z="handover",T1={pass:"reticle-pass",fail:"reticle-fail"},mT="data-reticle-log",Cm="data-reticle-log-row",Wd="data-reticle-log-time",hT="data-kind",Om="reticle-log-text",x1="data-reticle-repeat",A1="reticle-log-repeat",Lm="reticle-res",SZ="reticle-chip",Rm={TITLE:"Reticle checks your app from the inside.",OFFLINE_TITLE:"Not connected yet.",OFFLINE_BODY:"Once Reticle is running, this page connects by itself and the steps show here.",BODY:"Ask your coding agent to verify a change with Reticle: each step shows here, live.\\AOr open Harness below: Reticle clicks through the app as the person you pick and reports what breaks."},TZ=160,N1=`
127
+ <button type="button" data-cancel data-reticle-mark-cancel>${rD}</button>
128
+ <button type="button" data-send data-reticle-mark-send disabled>${nD}</button>
129
+ </div>`;let s=i.querySelector(".reticle-mark-where");s!==null&&(s.textContent=t);let a=fD(n,r);i.style.left=`${String(a.left)}px`,i.style.top=`${String(a.top)}px`,(d=c(this,Wn))==null||d.appendChild(i),g(this,Rn,i),requestAnimationFrame(()=>i.setAttribute("data-in","1"));let l=i.querySelector("textarea"),u=i.querySelector("button[data-send]");l!==null&&(l.value=o,u!==null&&(u.disabled=l.value.trim().length===0),l.addEventListener("input",()=>{u!==null&&(u.disabled=l.value.trim().length===0)}),l.addEventListener("keydown",m=>{m.stopPropagation(),!m.isComposing&&(m.key==="Escape"?(m.preventDefault(),T(this,V,Ur).call(this)):m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),T(this,V,dT).call(this)))}),ue(()=>l.focus(),50)),(f=i.querySelector("button[data-cancel]"))==null||f.addEventListener("click",()=>T(this,V,Ur).call(this)),u==null||u.addEventListener("click",()=>T(this,V,dT).call(this)),g(this,la,void 0),g(this,ua,{x:n,y:r})},la=new WeakMap,ua=new WeakMap,SD=function(t,n,r){g(this,la,t),g(this,ua,{x:n,y:r})},dT=function(){var o,i,s;let t=(s=(i=(o=c(this,Rn))==null?void 0:o.querySelector("textarea"))==null?void 0:i.value.trim())!=null?s:"";if(t.length===0)return;let n=c(this,rs);if(n!==void 0){n.note=t;let a=n.pin.querySelector(ai("tipn"));a!==null&&(a.textContent=t),c(this,el).call(this,w.HUMAN_MARK,{note:t,anchor:n.anchor,label:n.label,route:n.route}),T(this,V,fT).call(this,t,n.anchor,n.label,c(this,Ut).indexOf(n)+1,n.source),T(this,V,Qc).call(this),T(this,V,Ur).call(this);return}let r=c(this,la);r!==void 0&&(T(this,V,TD).call(this,t,r,c(this,ua).x,c(this,ua).y),T(this,V,Ur).call(this))},pT=function(){let t=c(this,Rn);t!==void 0&&(t.classList.remove("reticle-mark-shake"),t.offsetWidth,t.classList.add("reticle-mark-shake"),c(this,ci)!==void 0&&Re(c(this,ci)),g(this,ci,ue(()=>{t.classList.remove("reticle-mark-shake"),g(this,ci,void 0)},RZ)))},TD=function(t,n,r,o){let i={note:t,anchor:n.anchor,strategy:n.strategy,label:n.label,route:vm()};n.source!==void 0&&(i.source=n.source),c(this,el).call(this,w.HUMAN_MARK,i),c(this,tl).call(this),T(this,V,xD).call(this,n,t,r,o),T(this,V,fT).call(this,t,n.anchor,n.label,c(this,Ut).length,uD(n))},fT=function(t,n,r,o,i){var a;let s={note:t,anchor:n,label:r,index:o};i!==void 0&&(s.source=i),(a=c(this,Fd))==null||a.call(this,s)},hT=function(t,n){var o,i;(o=c(this,ra))==null||o.remove();let r=document.createElement("div");r.setAttribute(_o,"pending"),r.textContent=oD,r.style.left=`${String(t)}px`,r.style.top=`${String(n)}px`,(i=c(this,Wn))==null||i.appendChild(r),g(this,ra,r)},xD=function(t,n,r,o){if(c(this,Wn)===void 0)return;let i=document.createElement("button");i.type="button",i.setAttribute(_o,"pin"),i.setAttribute("aria-label",t.label);let s=c(this,Ut).length+1;i.innerHTML=`<span>${String(s)}</span><span ${_o}="tip"><span ${_o}="tipq"></span><span ${_o}="tipn"></span></span>`;let a=i.querySelector(ai("tipq")),l=i.querySelector(ai("tipn"));a!==null&&(a.textContent=t.label),l!==null&&(l.textContent=n);let u=IZ(c(this,li)),d=u?o:o+window.scrollY;i.style.left=`${String(r/window.innerWidth*100)}%`,i.style.top=`${String(u?o:d-window.scrollY)}px`,c(this,Wn).appendChild(i);let f=c(this,tl).call(this),m={id:`${t.anchor}:${String(f)}:${String(s)}`,createdAt:f,note:n,label:t.label,anchor:t.anchor,route:vm(),xPct:r/window.innerWidth*100,yDoc:d,clientX:r,clientY:o,isFixed:u,pin:i,target:c(this,li),source:uD(t)};i.addEventListener("click",h=>{h.preventDefault(),h.stopPropagation(),c(this,gr)&&T(this,V,cT).call(this,m)}),c(this,Ut).push(m),T(this,V,Qc).call(this)},Hd=function(){let t=c(this,na);if(t===void 0)return;let n=c(this,li);if(n===void 0||!document.contains(n)||c(this,Rn)===void 0){t.hidden=!0;return}let r=n.getBoundingClientRect();t.hidden=!1,t.style.left=`${String(r.left)}px`,t.style.top=`${String(r.top)}px`,t.style.width=`${String(r.width)}px`,t.style.height=`${String(r.height)}px`},mT=function(){for(let t of c(this,Ut)){if(t.isFixed){t.pin.style.top=`${String(t.clientY)}px`;continue}t.pin.style.top=`${String(t.yDoc-window.scrollY)}px`}T(this,V,AD).call(this),T(this,V,Hd).call(this)},AD=function(){let t=c(this,Rn),n=c(this,rs);if(t===void 0||n===void 0)return;let r=T(this,V,lT).call(this,n),o=fD(r.x,r.y);t.style.left=`${String(o.left)}px`,t.style.top=`${String(o.top)}px`},Ur=function(){var t,n;(t=c(this,Rn))==null||t.remove(),g(this,Rn,void 0),(n=c(this,ra))==null||n.remove(),g(this,ra,void 0),g(this,oa,void 0),g(this,li,void 0),g(this,la,void 0),g(this,rs,void 0),c(this,na)!==void 0&&(c(this,na).hidden=!0)};dD="data-reticle-blocker"});var LZ,Rm,$Z,RD,OD=y(()=>{"use strict";LZ={view:'<g><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/><path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7s-8.268-2.943-9.542-7"/></g>',pointer:'<path d="M15.042 21.672L13.684 16.6m0 0l-2.51 2.225l.569-9.47l5.227 7.917l-3.286-.672ZM12 2.25V4.5m5.834.166l-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243l-1.59-1.59"/>',send:'<path d="M6 12 3.269 3.126A59.768 59.768 0 0 1 21.485 12 59.77 59.77 0 0 1 3.27 20.876L5.999 12Zm0 0h7.5"/>',chart:'<path d="M9 19v-6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2m0 0V9a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v10m-6 0a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2m0 0V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2"/>',"caret-down":'<path d="m19 9l-7 7l-7-7"/>',check:'<path d="m5 13l4 4L19 7"/>',remove:'<path d="m4.5 19.5l15-15m-15 0l15 15"/>',pause:'<path d="M8 5v14M16 5v14"/>',play:'<path d="M8 5.75v12.5L18 12 8 5.75Z"/>',stop:'<rect x="6.5" y="6.5" width="11" height="11" rx="2"/>',copy:'<path d="M8 7v8a2 2 0 0 0 2 2h6M8 7V5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293l4.414 4.414a1 1 0 0 1 .293.707V15a2 2 0 0 1-2 2h-2M8 7H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2"/>',download:'<path d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"/>',message:'<path d="M8.625 9.75a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0a.375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227c1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332a48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"/>',gear:'<g><path d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87c.074.04.147.083.22.127c.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 0 1 0 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 0 1 0-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124c.072-.044.146-.087.22-.128c.332-.183.582-.495.644-.869l.214-1.281Z"/><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z"/></g>',layout:'<path d="M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6Zm0 9.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6Zm0 9.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"/>',notes:'<path d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75a2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15a2.25 2.25 0 0 1 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75 12h.008v.008H6.75V12Zm0 3h.008v.008H6.75V15Zm0 3h.008v.008H6.75V18Z"/>',trash:'<path d="m19 7l-.867 12.142A2 2 0 0 1 16.138 21H7.862a2 2 0 0 1-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v3M4 7h16"/>',help:'<path d="M8.228 9c.549-1.165 2.03-2 3.772-2c2.21 0 4 1.343 4 3c0 1.4-1.278 2.575-3.006 2.907c-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0"/>',"caret-right":'<path d="m9 5l7 7l-7 7"/>',annotate:'<path d="m16.862 4.487l1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"/>',sync:'<path d="M4.5 12c0-1.232.046-2.453.138-3.662a4.006 4.006 0 0 1 3.7-3.7a48.678 48.678 0 0 1 7.324 0a4.006 4.006 0 0 1 3.7 3.7c.017.22.032.441.046.662M4.5 12l-3-3m3 3l3-3m12 3c0 1.232-.046 2.453-.138 3.662a4.006 4.006 0 0 1-3.7 3.7a48.657 48.657 0 0 1-7.324 0a4.006 4.006 0 0 1-3.7-3.7c-.017-.22-.032-.441-.046-.662M19.5 12l-3 3m3-3l3 3"/>'},Rm=LZ,$Z={chart:'<path fill="currentColor" d="M2 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm6-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1zm6-3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1z"/>',annotate:'<path fill="currentColor" fill-rule="evenodd" d="m5.433 13.916l1.262-3.154a4 4 0 0 1 .885-1.343L14.5 2.5a2.121 2.121 0 1 1 3 3l-6.92 6.919c-.383.383-.84.684-1.343.885l-3.154 1.262a.5.5 0 0 1-.65-.65ZM2.5 5.75c0-.69.56-1.25 1.25-1.25H10A.75.75 0 0 0 10 3H3.75A2.75 2.75 0 0 0 1 5.75v10.5A2.75 2.75 0 0 0 3.75 19h10.5A2.75 2.75 0 0 0 17 16.25V10a.75.75 0 0 0-1.5 0v6.25c0 .69-.56 1.25-1.25 1.25H3.75c-.69 0-1.25-.56-1.25-1.25V5.75Z" clip-rule="evenodd"/>',message:'<path fill="currentColor" fill-rule="evenodd" d="M10 2c-2.236 0-4.43.18-6.57.524C1.993 2.755 1 4.014 1 5.426v5.148c0 1.413.993 2.67 2.43 2.902c.848.137 1.705.248 2.57.331v3.443a.75.75 0 0 0 1.28.53l3.58-3.579a.78.78 0 0 1 .527-.224a41.202 41.202 0 0 0 5.183-.5c1.437-.232 2.43-1.49 2.43-2.903V5.426c0-1.413-.993-2.67-2.43-2.902A41.289 41.289 0 0 0 10 2Zm0 7a1 1 0 1 0 0-2a1 1 0 0 0 0 2ZM8 8a1 1 0 1 1-2 0a1 1 0 0 1 2 0Zm5 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2Z" clip-rule="evenodd"/>',view:'<g fill="currentColor"><path d="M10 12a2 2 0 1 0 0-4a2 2 0 0 0 0 4"/><path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10M14 10a4 4 0 1 1-8 0a4 4 0 0 1 8 0" clip-rule="evenodd"/></g>',gear:'<path fill="currentColor" fill-rule="evenodd" d="M7.84 1.804A1 1 0 0 1 8.82 1h2.36a1 1 0 0 1 .98.804l.331 1.652a6.993 6.993 0 0 1 1.929 1.115l1.598-.54a1 1 0 0 1 1.186.447l1.18 2.044a1 1 0 0 1-.205 1.251l-1.267 1.113a7.047 7.047 0 0 1 0 2.228l1.267 1.113a1 1 0 0 1 .206 1.25l-1.18 2.045a1 1 0 0 1-1.187.447l-1.598-.54a6.993 6.993 0 0 1-1.929 1.115l-.33 1.652a1 1 0 0 1-.98.804H8.82a1 1 0 0 1-.98-.804l-.331-1.652a6.993 6.993 0 0 1-1.929-1.115l-1.598.54a1 1 0 0 1-1.186-.447l-1.18-2.044a1 1 0 0 1 .205-1.251l1.267-1.114a7.05 7.05 0 0 1 0-2.227L1.821 7.773a1 1 0 0 1-.206-1.25l1.18-2.045a1 1 0 0 1 1.187-.447l1.598.54a6.993 6.993 0 0 1 1.93-1.115l.33-1.652ZM10 13a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z" clip-rule="evenodd"/>'},RD=$Z});function kZ(e,t){let n=`${e}:${String(t)}`,r=ID.get(n);if(r!==void 0)return document.importNode(r,!0);let o=Rm[e];if(o===void 0)throw new Error(`missing heroicon body: ${String(e)}`);let s=new DOMParser().parseFromString(`<svg xmlns="${Kd}" viewBox="${Zd}" fill="none">${o}</svg>`,"image/svg+xml").documentElement,a=s instanceof SVGSVGElement?document.importNode(s,!0):document.createElementNS(Kd,"svg");return a.setAttribute("viewBox",Zd),a.setAttribute("width",String(t)),a.setAttribute("height",String(t)),a.setAttribute("fill","none"),s instanceof SVGSVGElement||(a.innerHTML=o),ID.set(n,a),document.importNode(a,!0)}function So(e,t=16){let n=document.createElement("span");return n.className="reticle-hi-icon",n.setAttribute("aria-hidden","true"),n.style.width=`${String(t)}px`,n.style.height=`${String(t)}px`,n.appendChild(kZ(e,t)),n}function ET(e,t,n=16){e.replaceChildren(So(t,n))}function Ie(e,t=16){let n=Rm[e];if(n===void 0)throw new Error(`missing heroicon body: ${String(e)}`);return`<span class="reticle-hi-icon" aria-hidden="true" style="width:${String(t)}px;height:${String(t)}px"><svg xmlns="${Kd}" viewBox="${Zd}" width="${String(t)}" height="${String(t)}" fill="none">${n}</svg></span>`}function Om(e,t=16){let n=Rm[e],r=RD[e];if(n===void 0||r===void 0)throw new Error(`missing heroicon toggle pair: ${String(e)}`);let o=String(t);return`<span class="reticle-hi-toggle" aria-hidden="true" style="width:${o}px;height:${o}px"><span class="reticle-hi-icon reticle-hi-icon--outline" style="width:${o}px;height:${o}px"><svg xmlns="${Kd}" viewBox="${Zd}" width="${o}" height="${o}" fill="none">${n}</svg></span><span class="reticle-hi-icon reticle-hi-icon--solid" style="width:${o}px;height:${o}px"><svg xmlns="${Kd}" viewBox="${Zd}" width="${o}" height="${o}" fill="currentColor">${r}</svg></span></span>`}var se,Ae,Kd,Zd,ID,Hr=y(()=>{"use strict";OD();se={VIEW:"view",POINTER:"pointer",SEND:"send",CHART:"chart",CARET_DOWN:"caret-down",CHECK:"check",REMOVE:"remove",PAUSE:"pause",PLAY:"play",STOP:"stop",COPY:"copy",DOWNLOAD:"download",MESSAGE:"message",NOTES:"notes",GEAR:"gear",LAYOUT:"layout",TRASH:"trash",HELP:"help",CARET_RIGHT:"caret-right",ANNOTATE:"annotate",SYNC:"sync"},Ae={CHIP:11,LOG:11,TALLY:12,CTL:10,SEND:14,MIN:12,HELP:12,NAV:18,TOOLBAR:18,FAB:22},Kd="http://www.w3.org/2000/svg",Zd="0 0 24 24",ID=new Map});function Wd(e){e.scrollTop=e.scrollHeight,e.toggleAttribute(GZ,e.scrollHeight>e.clientHeight+1)}function UD(e){Wd(e),requestAnimationFrame(()=>{Wd(e),requestAnimationFrame(()=>Wd(e))}),ue(()=>Wd(e),BZ)}function HD(e){return[...e.children].filter(t=>t.hasAttribute($m))}function zm(e,t){let n=HD(e);for(let r of n.slice(0,Math.max(0,n.length-t)))r.remove()}function Dm(e){for(let t of HD(e))t.remove()}function TT(e){return e===void 0||!Number.isFinite(e)||e<=0?zZ:Math.floor(e)}function Xd(e){let t=Math.max(0,Math.floor(e/1e3));if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return t%60===0?`${n}m`:`${n}m ${t%60}s`;let r=Math.floor(n/60);return n%60===0?`${r}h`:`${r}h ${n%60}m`}function FD(e){return Xd(e)}function Pm(e,t,n,r,o,i=hn.AGENT){var _,A,v;let s=t===Ge.READ?VZ(e,n,i):void 0;if(s!==void 0){let N=Number((_=s.getAttribute($D))!=null?_:"1")+1;s.setAttribute($D,String(N));let O=s.querySelector(`.${kD}`);O===null&&(O=document.createElement("span"),O.className=kD,(A=s.querySelector(`.${Cm}`))==null||A.after(O)),O.textContent=`\xD7${String(N)}`;let k=s.querySelector(`[${Yd}]`);k!==null&&(k.textContent=r);let j=s.querySelector(`.${km}`);return j===null?{result:()=>{}}:zD(s,j)}let a=t===Ge.ACT||t===Ge.READ;if(a&&((v=e.getAttribute(Lm))!=null?v:hn.AGENT)!==i){let N=document.createElement("div");N.setAttribute($m,""),N.setAttribute(_T,HZ),N.setAttribute(bT,i);let O=document.createElement("span");O.className=Cm,O.textContent=UZ[i],N.appendChild(O),e.appendChild(N)}a&&e.setAttribute(Lm,i);let l=document.createElement("div");l.setAttribute($m,""),l.setAttribute(_T,t),l.setAttribute(bT,i),t===Ge.ACT&&l.setAttribute(PD,"running");let u=document.createElement("span");u.setAttribute(Yd,""),u.textContent=r;let d=[];t!==Ge.HUMAN&&d.push(u);let f=DZ[t],m=PZ[t];if(f.length>0||m!==void 0){let N=document.createElement("span");if(N.className=FZ,N.setAttribute("data-mode",MZ[t]),m!==void 0&&N.appendChild(So(m,Ae.LOG)),f.length>0){let O=document.createElement("span");O.className="reticle-chip-label",O.textContent=f,N.appendChild(O)}d.push(N)}let h=document.createElement("span");h.className=Cm,h.textContent=n;let E=document.createElement("span");return E.className=km,d.push(h),t!==Ge.HUMAN&&d.push(E),l.append(...d),e.appendChild(l),zm(e,o),requestAnimationFrame(()=>{Wd(e)}),zD(l,E)}function VZ(e,t,n){var o;let r=e.lastElementChild;if(!(!(r instanceof HTMLElement)||!r.hasAttribute($m))&&!(r.getAttribute(_T)!==Ge.READ||r.getAttribute(bT)!==n))return((o=r.querySelector(`.${Cm}`))==null?void 0:o.textContent)===t?r:void 0}function zD(e,t){return{result:n=>{if(e.setAttribute(PD,n),n===Kn.PASS){t.textContent=CD.pass,t.className=`${km} ${LD.pass}`;return}t.textContent=` ${CD[n]}`,t.className=`${km} ${LD[n]}`}}}var zZ,DZ,PZ,DD,MZ,CD,UZ,Lm,bT,PD,HZ,LD,ST,$m,Yd,_T,Cm,$D,kD,km,FZ,Im,BZ,MD,GZ,di=y(()=>{"use strict";M();JS();dt();Hr();zZ=50,DZ={read:"READ",act:"ACT",narration:"",human:""},PZ={read:se.VIEW,act:se.POINTER},DD={[ct.IDLE]:"",[ct.READING]:"READING",[ct.ACTING]:"ACTING"},MZ={read:ct.READING,act:ct.ACTING,narration:ct.IDLE,human:ct.IDLE},CD={pass:"\u2713",fail:"Fail"},UZ={agent:"Your agent is driving",harness:"Reticle Harness is driving"},Lm="data-reticle-log-actor",bT="data-actor",PD="data-state",HZ="handover",LD={pass:"reticle-pass",fail:"reticle-fail"},ST="data-reticle-log",$m="data-reticle-log-row",Yd="data-reticle-log-time",_T="data-kind",Cm="reticle-log-text",$D="data-reticle-repeat",kD="reticle-log-repeat",km="reticle-res",FZ="reticle-chip",Im={TITLE:"Reticle checks your app from the inside.",OFFLINE_TITLE:"Not connected yet.",OFFLINE_BODY:"Once Reticle is running, this page connects by itself and the steps show here.",BODY:"Ask your coding agent to verify a change with Reticle: each step shows here, live.\\AOr open Harness below: Reticle clicks through the app as the person you pick and reports what breaks."},BZ=160,MD=`
130
130
  [data-reticle-log]{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;touch-action:pan-y;
131
131
  display:flex;flex-direction:column;
132
132
  gap:4px;padding:8px 10px 10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent;
133
133
  background:transparent;}
134
134
  [data-reticle-log]:empty{align-items:center;justify-content:center;gap:6px;padding:16px 18px;}
135
- [data-reticle-log]:empty::before{content:"${Rm.TITLE}";display:block;text-align:center;
135
+ [data-reticle-log]:empty::before{content:"${Im.TITLE}";display:block;text-align:center;
136
136
  color:var(--reticle-hud-text);font-size:var(--reticle-hud-size-base);font-weight:600;line-height:1.4;}
137
- [data-reticle-log]:empty::after{content:"${Rm.BODY}";display:block;max-width:260px;text-align:center;white-space:pre-line;
137
+ [data-reticle-log]:empty::after{content:"${Im.BODY}";display:block;max-width:260px;text-align:center;white-space:pre-line;
138
138
  color:var(--reticle-hud-text-muted);font-size:var(--reticle-hud-size-sm);line-height:1.5;}
139
- [data-reticle-state="unreachable"] [data-reticle-log]:empty::before{content:"${Rm.OFFLINE_TITLE}";}
140
- [data-reticle-state="unreachable"] [data-reticle-log]:empty::after{content:"${Rm.OFFLINE_BODY}";}
139
+ [data-reticle-state="unreachable"] [data-reticle-log]:empty::before{content:"${Im.OFFLINE_TITLE}";}
140
+ [data-reticle-state="unreachable"] [data-reticle-log]:empty::after{content:"${Im.OFFLINE_BODY}";}
141
141
  [data-reticle-log]::-webkit-scrollbar{width:8px;}
142
142
  [data-reticle-log]::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:8px;border:2px solid transparent;background-clip:content-box;}
143
143
  [data-reticle-log]::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.26);background-clip:content-box;}
@@ -160,7 +160,7 @@ ${Oe("pop")} button[data-send]:disabled{opacity:.4;cursor:not-allowed;}
160
160
  [data-reticle-log] [data-reticle-log-row] .reticle-chip-label{
161
161
  position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
162
162
  [data-reticle-log] [data-reticle-log-row][data-kind="read"] .reticle-chip{opacity:.5;}
163
- [${Wd}]{flex:none;color:var(--reticle-faint);font-size:11px;font-variant-numeric:tabular-nums;padding-top:2px;min-width:2em;opacity:.85;}
163
+ [${Yd}]{flex:none;color:var(--reticle-faint);font-size:11px;font-variant-numeric:tabular-nums;padding-top:2px;min-width:2em;opacity:.85;}
164
164
  [data-reticle-log] .reticle-log-text{flex:1;min-width:0;color:var(--reticle-muted);overflow-wrap:anywhere;word-break:break-word;}
165
165
  [data-reticle-log] .reticle-log-repeat{flex:none;color:var(--reticle-muted);font-variant-numeric:tabular-nums;opacity:.7;}
166
166
  [data-reticle-log] .reticle-res{flex:none;font-size:7.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--reticle-bad);opacity:.75;padding-top:2px;}
@@ -191,11 +191,11 @@ ${Oe("pop")} button[data-send]:disabled{opacity:.4;cursor:not-allowed;}
191
191
  /* What the Harness or the daemon says about a drive reads as a notice, not an aside. */
192
192
  [data-reticle-log-row][data-kind="narration"]{font-style:normal;color:var(--reticle-fg);margin:4px 0;padding:7px 10px;
193
193
  border-radius:10px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);}
194
- `;xZ="data-reticle-log-scrollable"});function $1(e,t=typeof navigator=="undefined"?void 0:navigator){return e!==void 0?e:(t==null?void 0:t.webdriver)===!0?0:yZ}var da,C1,Xd,L1,Dm,yZ,Mr,k1,z1,D1,Ur,P1,M1,U1,li,ns,gn,Pm,ET,Ke,yt,F,H1,Mm,En,ui,rs,Yt,rl,Um,Hm,Fm,Bm,F1,Gm,bT,On,B,_T,Ft,pt,qd,D,ST,ol,TT,Vm,jm,B1,Jd,G1,il,Km,Eo,V1,Zm,Wm,Ym,xT,Xm,j1,K1,AT,Lt=y(()=>{"use strict";co();da={SESSION:"session",BUSY:"busy"},C1=da.SESSION,Xd="data-busy",L1="1",Dm="0",yZ=450;Mr={IDLE:"idle",BUSY:"busy",FADING:"fading"},k1=700,z1=1e3,D1=4e3,Ur={READY:"Ready",PLANNING_PREFIX:"planning next action \xB7 ",STOPPED:"stopped",STOPPED_PREFIX:"stopped \xB7 ",NOW:"now",SINCE_LAST:" since last action",harnessTesting:e=>`Testing \xB7 Harness \xB7 ${String(e)} step${e===1?"":"s"}`},P1=3e5,M1=5e3,U1=250,li="1",ns="0",gn="data-on",Pm="data-reticle-state",ET="unreachable",Ke="data-reticle-min",yt="data-reticle-chat",F="data-reticle-dock",H1="data-reticle-fab",Mm="data-reticle-chat-toggle",En="data-reticle-chat-panel",ui="data-reticle-chat-placement",rs="data-reticle-settings-placement",Yt="data-reticle-dock-align",rl={ABOVE:"above",BELOW:"below"},Um="data-reticle-markers-btn",Hm="data-reticle-clear-marks",Fm="data-reticle-copy-marks",Bm="data-reticle-marks-row",F1="data-reticle-mark-count",Gm="data-reticle-annotate-btn",bT="data-reticle-chat-min",On="data-reticle-report",B="data-reticle-report-panel",_T="data-reticle-report-close",Ft="data-reticle-chat-pill",pt="data-reticle-settings",qd="data-reticle-settings-btn",D="data-reticle-settings-panel",ST="data-reticle-settings-close",ol="data-reticle-setting",TT=Tt.PRESENTER_SETTINGS,Vm=Tt.PRESENTER_MINIMISED,jm=Tt.PRESENTER_OPEN,B1="data-reticle-ambient-glow",Jd="data-reticle-live",G1="data-reticle-block",il="data-reticle-hidden",Km="data-reticle-log-ts",Eo="data-reticle-reduce-motion",V1="https://github.com/reticlehq/reticle/blob/main/docs/getting-started.md",Zm="data-dragged",Wm="--reticle-hud-x",Ym="--reticle-hud-y",xT=4,Xm=8,j1="[data-reticle-pause], [data-reticle-annotate-btn], [data-reticle-markers-btn], [data-reticle-clear-marks], [data-reticle-copy-marks], [data-reticle-end], [data-reticle-min-btn], [data-reticle-settings-btn], [data-reticle-settings-panel], [data-reticle-report-btn], [data-reticle-report-panel], [data-reticle-chat-panel], [data-reticle-chat-toggle], [data-reticle-workspace-btn], [data-reticle-workspace-menu], [data-reticle-copy], [data-reticle-export], .reticle-toolbar-chrome button, .reticle-toolbar-actions button, input, textarea, select, a, .reticle-head-ctl, [data-reticle-tally], .reticle-maxhint",K1="data-reticle-throttled",AT=100});var Xn,yT,Qd,Hr,sl,Z1,qm,W1,Fr=y(()=>{"use strict";Xn="reticle-hud-surface",yT="linear-gradient(165deg,#121218 0%,#09090c 42%,#000 100%)",Qd=`background:${yT};box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 0 0 1px rgba(255,255,255,.09);`,Hr="0 16px 40px rgba(0,0,0,.58),0 0 0 1px rgba(255,255,255,.08)",sl=["background:radial-gradient(130% 80% at 50% 0%,color-mix(in srgb,var(--reticle-c-active) 20%,transparent),transparent 62%),","linear-gradient(180deg,#121a2e,#080b14);","border:1px solid color-mix(in srgb,var(--reticle-c-active) 30%,rgba(255,255,255,.1));",`box-shadow:${Hr},0 0 64px -12px color-mix(in srgb,var(--reticle-c-active) 75%,transparent);`].join(""),Z1=`
194
+ `;GZ="data-reticle-log-scrollable"});function VD(e,t=typeof navigator=="undefined"?void 0:navigator){return e!==void 0?e:(t==null?void 0:t.webdriver)===!0?0:jZ}var pa,BD,qd,GD,Mm,jZ,Fr,jD,KD,ZD,Br,WD,YD,XD,pi,os,gn,Um,xT,Ze,yt,F,qD,Hm,En,fi,is,Xt,il,Fm,Bm,Gm,Vm,JD,jm,AT,On,B,yT,Ht,ft,Jd,P,wT,sl,vT,Km,Zm,QD,Qd,e1,al,Wm,To,t1,Ym,Xm,qm,NT,Jm,n1,r1,RT,Ct=y(()=>{"use strict";po();pa={SESSION:"session",BUSY:"busy"},BD=pa.SESSION,qd="data-busy",GD="1",Mm="0",jZ=450;Fr={IDLE:"idle",BUSY:"busy",FADING:"fading"},jD=700,KD=1e3,ZD=4e3,Br={READY:"Ready",PLANNING_PREFIX:"planning next action \xB7 ",STOPPED:"stopped",STOPPED_PREFIX:"stopped \xB7 ",NOW:"now",SINCE_LAST:" since last action",harnessTesting:e=>`Testing \xB7 Harness \xB7 ${String(e)} step${e===1?"":"s"}`},WD=3e5,YD=5e3,XD=250,pi="1",os="0",gn="data-on",Um="data-reticle-state",xT="unreachable",Ze="data-reticle-min",yt="data-reticle-chat",F="data-reticle-dock",qD="data-reticle-fab",Hm="data-reticle-chat-toggle",En="data-reticle-chat-panel",fi="data-reticle-chat-placement",is="data-reticle-settings-placement",Xt="data-reticle-dock-align",il={ABOVE:"above",BELOW:"below"},Fm="data-reticle-markers-btn",Bm="data-reticle-clear-marks",Gm="data-reticle-copy-marks",Vm="data-reticle-marks-row",JD="data-reticle-mark-count",jm="data-reticle-annotate-btn",AT="data-reticle-chat-min",On="data-reticle-report",B="data-reticle-report-panel",yT="data-reticle-report-close",Ht="data-reticle-chat-pill",ft="data-reticle-settings",Jd="data-reticle-settings-btn",P="data-reticle-settings-panel",wT="data-reticle-settings-close",sl="data-reticle-setting",vT=At.PRESENTER_SETTINGS,Km=At.PRESENTER_MINIMISED,Zm=At.PRESENTER_OPEN,QD="data-reticle-ambient-glow",Qd="data-reticle-live",e1="data-reticle-block",al="data-reticle-hidden",Wm="data-reticle-log-ts",To="data-reticle-reduce-motion",t1="https://github.com/reticlehq/reticle/blob/main/docs/getting-started.md",Ym="data-dragged",Xm="--reticle-hud-x",qm="--reticle-hud-y",NT=4,Jm=8,n1="[data-reticle-pause], [data-reticle-annotate-btn], [data-reticle-markers-btn], [data-reticle-clear-marks], [data-reticle-copy-marks], [data-reticle-end], [data-reticle-min-btn], [data-reticle-settings-btn], [data-reticle-settings-panel], [data-reticle-report-btn], [data-reticle-report-panel], [data-reticle-chat-panel], [data-reticle-chat-toggle], [data-reticle-workspace-btn], [data-reticle-workspace-menu], [data-reticle-copy], [data-reticle-export], .reticle-toolbar-chrome button, .reticle-toolbar-actions button, input, textarea, select, a, .reticle-head-ctl, [data-reticle-tally], .reticle-maxhint",r1="data-reticle-throttled",RT=100});var Xn,OT,ep,Gr,cl,o1,Qm,i1,Vr=y(()=>{"use strict";Xn="reticle-hud-surface",OT="linear-gradient(165deg,#121218 0%,#09090c 42%,#000 100%)",ep=`background:${OT};box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 0 0 1px rgba(255,255,255,.09);`,Gr="0 16px 40px rgba(0,0,0,.58),0 0 0 1px rgba(255,255,255,.08)",cl=["background:radial-gradient(130% 80% at 50% 0%,color-mix(in srgb,var(--reticle-c-active) 20%,transparent),transparent 62%),","linear-gradient(180deg,#121a2e,#080b14);","border:1px solid color-mix(in srgb,var(--reticle-c-active) 30%,rgba(255,255,255,.1));",`box-shadow:${Gr},0 0 64px -12px color-mix(in srgb,var(--reticle-c-active) 75%,transparent);`].join(""),o1=`
195
195
  .${Xn}{
196
196
  position:relative;overflow:hidden;
197
197
  contain:layout style paint;
198
- ${Qd}
198
+ ${ep}
199
199
  }
200
200
  .${Xn}::before,
201
201
  [data-reticle-hud] .reticle-hud-deco::after{
@@ -204,8 +204,8 @@ ${Oe("pop")} button[data-send]:disabled{opacity:.4;cursor:not-allowed;}
204
204
  radial-gradient(ellipse 120% 70% at 50% -18%,rgba(255,255,255,.07),transparent 52%),
205
205
  linear-gradient(180deg,rgba(255,255,255,.035) 0%,transparent 36%,rgba(0,0,0,.12) 100%);
206
206
  }
207
- .${Xn} > *{position:relative;z-index:2;}`,qm="reticle-hud-log-well",W1=`
208
- .${qm}{
207
+ .${Xn} > *{position:relative;z-index:2;}`,Qm="reticle-hud-log-well",i1=`
208
+ .${Qm}{
209
209
  /* A settled height, but still allowed to shrink: pinned with flex:none it pushed the composer
210
210
  off the bottom of the panel the moment the rest of the content grew. */
211
211
  /* A flex column, so the feed inside actually FILLS the height: as a plain block the log was only
@@ -215,241 +215,241 @@ ${Oe("pop")} button[data-send]:disabled{opacity:.4;cursor:not-allowed;}
215
215
  flex:1 1 auto;height:240px;min-height:120px;max-height:300px;overflow:hidden;
216
216
  contain:layout style paint;
217
217
  margin:0 6px;border-radius:12px;background:transparent;}
218
- .${qm} > *{position:relative;z-index:1;}`});function al(e){return e.getAttribute(Zm)==="1"}function cl(e,t,n,r,o,i,s=Xm){let a=s,l=s,u=Math.max(a,o-n-s),d=Math.max(l,i-r-s);return{left:Math.max(a,Math.min(e,u)),top:Math.max(l,Math.min(t,d))}}function os(e,t,n){e.setAttribute(Zm,"1"),e.style.setProperty(Wm,`${String(t)}px`),e.style.setProperty(Ym,`${String(n)}px`)}function ep(e){e.removeAttribute(Zm),e.style.removeProperty(Wm),e.style.removeProperty(Ym)}function ll(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top,width:t.width,height:t.height}}function Jm(e){let t=e.style.getPropertyValue(Wm),n=e.style.getPropertyValue(Ym);if(t!==""&&n!=="")return{left:Number.parseFloat(t),top:Number.parseFloat(n)};let r=e.getBoundingClientRect();return{left:r.left,top:r.top}}function tp(e){if(!al(e))return;let{left:t,top:n}=Jm(e),{width:r,height:o}=ll(e),i=cl(t,n,r,o,window.innerWidth,window.innerHeight);os(e,i.left,i.top)}var np=y(()=>{"use strict";Lt()});function RZ(e){var i,s,a,l,u,d,f,m;if(e.length===0)return;let t=(s=(i=e[0])==null?void 0:i.left)!=null?s:0,n=(l=(a=e[0])==null?void 0:a.top)!=null?l:0,r=(d=(u=e[0])==null?void 0:u.right)!=null?d:0,o=(m=(f=e[0])==null?void 0:f.bottom)!=null?m:0;for(let h of e.slice(1))t=Math.min(t,h.left),n=Math.min(n,h.top),r=Math.max(r,h.right),o=Math.max(o,h.bottom);return{left:t,top:n,right:r,bottom:o}}function eD(e,t,n){return e>=n?rl.ABOVE:t>=n?rl.BELOW:t>e?rl.BELOW:rl.ABOVE}function tD(e,t,n,r){let o=rl.ABOVE===e?t-r:n-r;return Math.max(0,o)}function nD(e,t,n){let r=`${String(n)}px`;e.style.setProperty(t,r),e.style.maxHeight=r}function rD(e,t){e.style.removeProperty(t),e.style.removeProperty("max-height")}function Qm(e){if(e===null)return!1;let t=window.getComputedStyle(e);return t.display!=="none"&&t.visibility!=="hidden"}function OZ(e){let t=e.querySelector(`[${Y1}]`);if(t instanceof HTMLElement)return t;if(e.hasAttribute(Y1)||al(e))return e}function oD(e,t){let n=OZ(e);if(n===void 0)return;let r=t.getAttribute(yt)==="1",o=t.getAttribute(pt)==="1",i=e.querySelector(`[${En}]`),s=e.querySelector(`[${D}]`),a=Xm,l=window.innerWidth,u=window.innerHeight,d=n.getBoundingClientRect(),f=d.top-a,m=u-d.bottom-a;if(r&&i instanceof HTMLElement&&Qm(i)){let k=i.getBoundingClientRect().height||J1,j=eD(f,m,k+X1);e.setAttribute(ui,j);let Y=Math.min(J1,Math.max(vZ,tD(j,f,m,X1)));nD(i,"--reticle-chat-max-h",Y)}else e.removeAttribute(ui),i instanceof HTMLElement&&rD(i,"--reticle-chat-max-h");if(o&&s instanceof HTMLElement&&Qm(s)){let k=s.getBoundingClientRect().height||Q1,j=eD(f,m,k+wZ+q1);e.setAttribute(rs,j);let Y=Math.min(Q1,Math.max(NZ,tD(j,f,m,q1)));nD(s,"--reticle-settings-max-h",Y)}else e.removeAttribute(rs),s instanceof HTMLElement&&rD(s,"--reticle-settings-max-h");let h=Math.max(r&&i instanceof HTMLElement?i.getBoundingClientRect().width:0,o&&s instanceof HTMLElement?s.getBoundingClientRect().width:0);if(r||o){let k=d.right-h,j=d.left+h;k<a||d.left<a?e.setAttribute(Yt,"start"):j>l-a||d.right>l-a?e.setAttribute(Yt,"end"):e.setAttribute(Yt,"end")}else e.removeAttribute(Yt);if(!r&&!o){al(e)&&tp(e);return}let E=[d];r&&i instanceof HTMLElement&&Qm(i)&&E.push(i.getBoundingClientRect()),o&&s instanceof HTMLElement&&Qm(s)&&E.push(s.getBoundingClientRect());let _=RZ(E);if(_===void 0)return;let A=0,v=0;if(_.left<a?A=a-_.left:_.right>l-a&&(A=l-a-_.right),_.top<a?v=a-_.top:_.bottom>u-a&&(v=u-a-_.bottom),A===0&&v===0)return;let N=e.getBoundingClientRect(),O=al(e)?Jm(e):{left:N.left,top:N.top};os(e,O.left+A,O.top+v)}function Br(e,t){eg!==void 0&&cancelAnimationFrame(eg),eg=requestAnimationFrame(()=>{eg=void 0,oD(e,t),requestAnimationFrame(()=>oD(e,t))})}function iD(e){let t=e.querySelector(`[${F}]`);return t instanceof HTMLElement?t:void 0}var Y1,X1,q1,wZ,vZ,J1,Q1,NZ,eg,rp=y(()=>{"use strict";Lt();np();Y1="data-reticle-hud",X1=8,q1=12,wZ=44,vZ=160,J1=440,Q1=520,NZ=200});function aD(e,t){var u,d;let n=()=>{Br(e,t)},r=new AbortController,{signal:o}=r,i=()=>n();window.addEventListener("resize",i,{signal:o});let s;typeof ResizeObserver!="undefined"&&(s=new ResizeObserver(()=>n()),s.observe(e));let a=new MutationObserver(()=>n());a.observe(t,{attributes:!0,attributeFilter:[Ke,yt,pt]});let l=()=>n();return(u=window.visualViewport)==null||u.addEventListener("resize",l,{signal:o}),(d=window.visualViewport)==null||d.addEventListener("scroll",l,{signal:o}),()=>{r.abort(),s==null||s.disconnect(),a.disconnect()}}function IZ(e,t,n={}){let r=!1,o=0,i=0,s=0,a=0,l=!1,u,d=()=>{var O;let N=l;if(r=!1,t.classList.remove(sD),u=void 0,l=!1,N){let k=e.parentElement;k instanceof HTMLElement?Br(e,k):tp(e)}(O=n.onDragEnd)==null||O.call(n,N)},f=N=>{if(N.button!==0)return;let O=N.target;if(!(O instanceof Element)||O.closest(j1)!==null)return;let k=e.getBoundingClientRect();o=N.clientX,i=N.clientY,s=k.left,a=k.top,r=!0,l=!1,u=N.pointerId,t.classList.add(sD),typeof t.setPointerCapture=="function"&&t.setPointerCapture(N.pointerId),N.preventDefault()},m=N=>{var X;if(!r||N.pointerId!==u)return;let O=N.clientX-o,k=N.clientY-i;if(!l&&Math.abs(O)<xT&&Math.abs(k)<xT)return;l=!0,(X=n.onDragMove)==null||X.call(n);let j=ll(e),Y=cl(s+O,a+k,j.width,j.height,window.innerWidth,window.innerHeight);os(e,Y.left,Y.top),N.preventDefault()},h=N=>{typeof t.releasePointerCapture=="function"&&t.releasePointerCapture(N)},E=N=>{!r||N.pointerId!==u||(l&&N.preventDefault(),h(N.pointerId),d())},_=N=>{!r||N.pointerId!==u||(h(N.pointerId),d())},A=new AbortController,{signal:v}=A;return t.addEventListener("pointerdown",f,{signal:v}),t.addEventListener("pointermove",m,{signal:v}),t.addEventListener("pointerup",E,{signal:v}),t.addEventListener("pointercancel",_,{signal:v}),()=>{A.abort(),r&&h(u!=null?u:0),d()}}function cD(e,t,n={}){let r=t.map(o=>IZ(e,o,n));return()=>{for(let o of r)o()}}var sD,wT=y(()=>{"use strict";Lt();rp();np();np();sD="reticle-drag-handle--dragging"});var tg,vT=y(()=>{"use strict";Lt();Fr();tg=`
219
- [data-reticle-overlay][${pt}="1"] [data-reticle-chat-panel]{
218
+ .${Qm} > *{position:relative;z-index:1;}`});function ll(e){return e.getAttribute(Ym)==="1"}function ul(e,t,n,r,o,i,s=Jm){let a=s,l=s,u=Math.max(a,o-n-s),d=Math.max(l,i-r-s);return{left:Math.max(a,Math.min(e,u)),top:Math.max(l,Math.min(t,d))}}function ss(e,t,n){e.setAttribute(Ym,"1"),e.style.setProperty(Xm,`${String(t)}px`),e.style.setProperty(qm,`${String(n)}px`)}function tp(e){e.removeAttribute(Ym),e.style.removeProperty(Xm),e.style.removeProperty(qm)}function dl(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top,width:t.width,height:t.height}}function eg(e){let t=e.style.getPropertyValue(Xm),n=e.style.getPropertyValue(qm);if(t!==""&&n!=="")return{left:Number.parseFloat(t),top:Number.parseFloat(n)};let r=e.getBoundingClientRect();return{left:r.left,top:r.top}}function np(e){if(!ll(e))return;let{left:t,top:n}=eg(e),{width:r,height:o}=dl(e),i=ul(t,n,r,o,window.innerWidth,window.innerHeight);ss(e,i.left,i.top)}var rp=y(()=>{"use strict";Ct()});function YZ(e){var i,s,a,l,u,d,f,m;if(e.length===0)return;let t=(s=(i=e[0])==null?void 0:i.left)!=null?s:0,n=(l=(a=e[0])==null?void 0:a.top)!=null?l:0,r=(d=(u=e[0])==null?void 0:u.right)!=null?d:0,o=(m=(f=e[0])==null?void 0:f.bottom)!=null?m:0;for(let h of e.slice(1))t=Math.min(t,h.left),n=Math.min(n,h.top),r=Math.max(r,h.right),o=Math.max(o,h.bottom);return{left:t,top:n,right:r,bottom:o}}function d1(e,t,n){return e>=n?il.ABOVE:t>=n?il.BELOW:t>e?il.BELOW:il.ABOVE}function p1(e,t,n,r){let o=il.ABOVE===e?t-r:n-r;return Math.max(0,o)}function f1(e,t,n){let r=`${String(n)}px`;e.style.setProperty(t,r),e.style.maxHeight=r}function h1(e,t){e.style.removeProperty(t),e.style.removeProperty("max-height")}function tg(e){if(e===null)return!1;let t=window.getComputedStyle(e);return t.display!=="none"&&t.visibility!=="hidden"}function XZ(e){let t=e.querySelector(`[${s1}]`);if(t instanceof HTMLElement)return t;if(e.hasAttribute(s1)||ll(e))return e}function m1(e,t){let n=XZ(e);if(n===void 0)return;let r=t.getAttribute(yt)==="1",o=t.getAttribute(ft)==="1",i=e.querySelector(`[${En}]`),s=e.querySelector(`[${P}]`),a=Jm,l=window.innerWidth,u=window.innerHeight,d=n.getBoundingClientRect(),f=d.top-a,m=u-d.bottom-a;if(r&&i instanceof HTMLElement&&tg(i)){let k=i.getBoundingClientRect().height||l1,j=d1(f,m,k+a1);e.setAttribute(fi,j);let Y=Math.min(l1,Math.max(ZZ,p1(j,f,m,a1)));f1(i,"--reticle-chat-max-h",Y)}else e.removeAttribute(fi),i instanceof HTMLElement&&h1(i,"--reticle-chat-max-h");if(o&&s instanceof HTMLElement&&tg(s)){let k=s.getBoundingClientRect().height||u1,j=d1(f,m,k+KZ+c1);e.setAttribute(is,j);let Y=Math.min(u1,Math.max(WZ,p1(j,f,m,c1)));f1(s,"--reticle-settings-max-h",Y)}else e.removeAttribute(is),s instanceof HTMLElement&&h1(s,"--reticle-settings-max-h");let h=Math.max(r&&i instanceof HTMLElement?i.getBoundingClientRect().width:0,o&&s instanceof HTMLElement?s.getBoundingClientRect().width:0);if(r||o){let k=d.right-h,j=d.left+h;k<a||d.left<a?e.setAttribute(Xt,"start"):j>l-a||d.right>l-a?e.setAttribute(Xt,"end"):e.setAttribute(Xt,"end")}else e.removeAttribute(Xt);if(!r&&!o){ll(e)&&np(e);return}let E=[d];r&&i instanceof HTMLElement&&tg(i)&&E.push(i.getBoundingClientRect()),o&&s instanceof HTMLElement&&tg(s)&&E.push(s.getBoundingClientRect());let _=YZ(E);if(_===void 0)return;let A=0,v=0;if(_.left<a?A=a-_.left:_.right>l-a&&(A=l-a-_.right),_.top<a?v=a-_.top:_.bottom>u-a&&(v=u-a-_.bottom),A===0&&v===0)return;let N=e.getBoundingClientRect(),O=ll(e)?eg(e):{left:N.left,top:N.top};ss(e,O.left+A,O.top+v)}function jr(e,t){ng!==void 0&&cancelAnimationFrame(ng),ng=requestAnimationFrame(()=>{ng=void 0,m1(e,t),requestAnimationFrame(()=>m1(e,t))})}function g1(e){let t=e.querySelector(`[${F}]`);return t instanceof HTMLElement?t:void 0}var s1,a1,c1,KZ,ZZ,l1,u1,WZ,ng,op=y(()=>{"use strict";Ct();rp();s1="data-reticle-hud",a1=8,c1=12,KZ=44,ZZ=160,l1=440,u1=520,WZ=200});function b1(e,t){var u,d;let n=()=>{jr(e,t)},r=new AbortController,{signal:o}=r,i=()=>n();window.addEventListener("resize",i,{signal:o});let s;typeof ResizeObserver!="undefined"&&(s=new ResizeObserver(()=>n()),s.observe(e));let a=new MutationObserver(()=>n());a.observe(t,{attributes:!0,attributeFilter:[Ze,yt,ft]});let l=()=>n();return(u=window.visualViewport)==null||u.addEventListener("resize",l,{signal:o}),(d=window.visualViewport)==null||d.addEventListener("scroll",l,{signal:o}),()=>{r.abort(),s==null||s.disconnect(),a.disconnect()}}function qZ(e,t,n={}){let r=!1,o=0,i=0,s=0,a=0,l=!1,u,d=()=>{var O;let N=l;if(r=!1,t.classList.remove(E1),u=void 0,l=!1,N){let k=e.parentElement;k instanceof HTMLElement?jr(e,k):np(e)}(O=n.onDragEnd)==null||O.call(n,N)},f=N=>{if(N.button!==0)return;let O=N.target;if(!(O instanceof Element)||O.closest(n1)!==null)return;let k=e.getBoundingClientRect();o=N.clientX,i=N.clientY,s=k.left,a=k.top,r=!0,l=!1,u=N.pointerId,t.classList.add(E1),typeof t.setPointerCapture=="function"&&t.setPointerCapture(N.pointerId),N.preventDefault()},m=N=>{var X;if(!r||N.pointerId!==u)return;let O=N.clientX-o,k=N.clientY-i;if(!l&&Math.abs(O)<NT&&Math.abs(k)<NT)return;l=!0,(X=n.onDragMove)==null||X.call(n);let j=dl(e),Y=ul(s+O,a+k,j.width,j.height,window.innerWidth,window.innerHeight);ss(e,Y.left,Y.top),N.preventDefault()},h=N=>{typeof t.releasePointerCapture=="function"&&t.releasePointerCapture(N)},E=N=>{!r||N.pointerId!==u||(l&&N.preventDefault(),h(N.pointerId),d())},_=N=>{!r||N.pointerId!==u||(h(N.pointerId),d())},A=new AbortController,{signal:v}=A;return t.addEventListener("pointerdown",f,{signal:v}),t.addEventListener("pointermove",m,{signal:v}),t.addEventListener("pointerup",E,{signal:v}),t.addEventListener("pointercancel",_,{signal:v}),()=>{A.abort(),r&&h(u!=null?u:0),d()}}function _1(e,t,n={}){let r=t.map(o=>qZ(e,o,n));return()=>{for(let o of r)o()}}var E1,IT=y(()=>{"use strict";Ct();op();rp();rp();E1="reticle-drag-handle--dragging"});var rg,CT=y(()=>{"use strict";Ct();Vr();rg=`
219
+ [data-reticle-overlay][${ft}="1"] [data-reticle-chat-panel]{
220
220
  display:none !important;visibility:hidden !important;pointer-events:none !important;}
221
- [${D}]{
221
+ [${P}]{
222
222
  position:absolute;right:0;left:auto;top:auto;bottom:calc(100% + 12px);z-index:30;
223
223
  box-sizing:border-box;display:flex;flex-direction:column;width:272px;min-height:0;
224
224
  max-width:min(272px,calc(100vw - 16px));
225
225
  max-height:min(var(--reticle-settings-max-h,78vh),calc(100vh - 96px));
226
226
  padding:0;border:none;border-radius:16px;overflow:hidden;
227
- box-shadow:${Hr};
227
+ box-shadow:${Gr};
228
228
  color:var(--reticle-fg);font-size:13px;line-height:1.35;
229
229
  opacity:0;pointer-events:none;visibility:hidden;touch-action:manipulation;
230
230
  transform:translate3d(0,6px,0) scale(.98);
231
231
  transition:opacity .14s ease,transform .18s cubic-bezier(.22,1,.36,1),visibility .14s;
232
- contain:none;isolation:isolate;${Qd}}
233
- [${F}][${rs}="below"] [${D}]{
232
+ contain:none;isolation:isolate;${ep}}
233
+ [${F}][${is}="below"] [${P}]{
234
234
  bottom:auto;top:calc(100% + 12px);}
235
- [${F}][${Yt}="start"] [${D}]{
235
+ [${F}][${Xt}="start"] [${P}]{
236
236
  right:auto;left:0;}
237
- [${F}][${rs}="below"] [${D}].${Xn}::after{
237
+ [${F}][${is}="below"] [${P}].${Xn}::after{
238
238
  top:auto;bottom:100%;margin-top:0;margin-bottom:-4px;box-shadow:-1px -1px 0 0 rgba(255,255,255,.08);}
239
- [${F}][${Yt}="start"] [${D}].${Xn}::after{
239
+ [${F}][${Xt}="start"] [${P}].${Xn}::after{
240
240
  right:auto;left:14px;}
241
- [data-reticle-overlay][${pt}="1"] [${D}]{
241
+ [data-reticle-overlay][${ft}="1"] [${P}]{
242
242
  opacity:1;pointer-events:auto;visibility:visible;transform:translate3d(0,0,0) scale(1);}
243
- [${D}] .reticle-settings-inner{
243
+ [${P}] .reticle-settings-inner{
244
244
  position:relative;z-index:2;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
245
245
  flex:1 1 auto;min-height:0;max-height:100%;overflow:hidden;}
246
- [${D}] .reticle-settings-head{
246
+ [${P}] .reticle-settings-head{
247
247
  display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:8px;
248
248
  padding:12px 14px 8px;border-bottom:1px solid rgba(255,255,255,.06);}
249
- [${D}] .reticle-settings-title{
249
+ [${P}] .reticle-settings-title{
250
250
  font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.45);}
251
- [${D}].${Xn}::after{
251
+ [${P}].${Xn}::after{
252
252
  content:"";position:absolute;top:100%;right:14px;width:8px;height:8px;margin-top:-4px;
253
253
  background:#000;transform:rotate(45deg);box-shadow:1px 1px 0 0 rgba(255,255,255,.08);z-index:0;pointer-events:none;}
254
- [${D}] .reticle-settings-close{
254
+ [${P}] .reticle-settings-close{
255
255
  position:relative;top:auto;right:auto;z-index:1;
256
256
  display:inline-flex;align-items:center;justify-content:center;
257
257
  width:24px;height:24px;padding:0;border:none;border-radius:999px;cursor:pointer;
258
258
  background:rgba(255,255,255,.06);color:var(--reticle-muted);line-height:0;
259
259
  transition:background .15s,color .15s,transform .1s;}
260
- [${D}] .reticle-settings-close:hover{background:rgba(255,255,255,.12);color:var(--reticle-fg);}
261
- [${D}] .reticle-settings-close:active{transform:scale(.94);}
262
- [${D}] .reticle-settings-close:focus-visible{outline:2px solid rgba(59,130,246,.65);outline-offset:1px;}
263
- [${D}] .reticle-settings-body{
260
+ [${P}] .reticle-settings-close:hover{background:rgba(255,255,255,.12);color:var(--reticle-fg);}
261
+ [${P}] .reticle-settings-close:active{transform:scale(.94);}
262
+ [${P}] .reticle-settings-close:focus-visible{outline:2px solid rgba(59,130,246,.65);outline-offset:1px;}
263
+ [${P}] .reticle-settings-body{
264
264
  min-height:0;padding:6px 0 4px;overflow-x:hidden;overflow-y:auto;
265
265
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
266
266
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent;
267
267
  background:linear-gradient(180deg,#0a0a0e 0%,#000 100%);}
268
- [${D}] .reticle-settings-body::-webkit-scrollbar{width:8px;}
269
- [${D}] .reticle-settings-body::-webkit-scrollbar-thumb{
268
+ [${P}] .reticle-settings-body::-webkit-scrollbar{width:8px;}
269
+ [${P}] .reticle-settings-body::-webkit-scrollbar-thumb{
270
270
  background:rgba(255,255,255,.14);border-radius:8px;border:2px solid transparent;background-clip:content-box;}
271
- [${D}] .reticle-settings-row{
271
+ [${P}] .reticle-settings-row{
272
272
  display:flex;align-items:center;justify-content:space-between;gap:12px;
273
273
  padding:8px 14px;min-height:30px;}
274
- [${D}] .reticle-settings-labelcol{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;}
275
- [${D}] .reticle-settings-label{
274
+ [${P}] .reticle-settings-labelcol{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;}
275
+ [${P}] .reticle-settings-label{
276
276
  display:inline-flex;align-items:center;gap:6px;color:rgba(255,255,255,.86);font-size:13px;font-weight:500;}
277
- [${D}] .reticle-settings-desc{color:rgba(255,255,255,.5);font-size:11px;line-height:1.35;}
278
- [${D}] .reticle-settings-help{
277
+ [${P}] .reticle-settings-desc{color:rgba(255,255,255,.5);font-size:11px;line-height:1.35;}
278
+ [${P}] .reticle-settings-help{
279
279
  display:inline-flex;align-items:center;justify-content:center;
280
280
  width:14px;height:14px;border:none;border-radius:999px;padding:0;cursor:help;
281
281
  background:transparent;color:rgba(255,255,255,.35);line-height:0;flex:none;}
282
- [${D}] .reticle-settings-help:hover{color:rgba(255,255,255,.75);}
283
- [${D}] .reticle-settings-help:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:1px;}
284
- [${D}] .reticle-settings-cycle{
282
+ [${P}] .reticle-settings-help:hover{color:rgba(255,255,255,.75);}
283
+ [${P}] .reticle-settings-help:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:1px;}
284
+ [${P}] .reticle-settings-cycle{
285
285
  display:inline-flex;align-items:center;gap:8px;border:none;border-radius:8px;cursor:pointer;
286
286
  background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:12px;font-weight:600;
287
287
  padding:5px 8px 5px 10px;transition:background .15s,transform .1s;}
288
- [${D}] .reticle-settings-cycle:hover{background:rgba(255,255,255,.12);}
289
- [${D}] .reticle-settings-cycle:active{transform:scale(.97);}
290
- [${D}] .reticle-settings-cycle:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:1px;}
291
- [${D}] .reticle-settings-dots{display:inline-flex;flex-direction:column;gap:2px;}
292
- [${D}] .reticle-settings-dot{
288
+ [${P}] .reticle-settings-cycle:hover{background:rgba(255,255,255,.12);}
289
+ [${P}] .reticle-settings-cycle:active{transform:scale(.97);}
290
+ [${P}] .reticle-settings-cycle:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:1px;}
291
+ [${P}] .reticle-settings-dots{display:inline-flex;flex-direction:column;gap:2px;}
292
+ [${P}] .reticle-settings-dot{
293
293
  width:3px;height:3px;border-radius:999px;background:rgba(255,255,255,.22);}
294
- [${D}] .reticle-settings-dot[data-on="1"]{background:var(--reticle-accent);}
295
- [${D}] .reticle-settings-toggle{
294
+ [${P}] .reticle-settings-dot[data-on="1"]{background:var(--reticle-accent);}
295
+ [${P}] .reticle-settings-toggle{
296
296
  position:relative;width:28px;height:18px;border:none;border-radius:999px;cursor:pointer;padding:0;flex:none;
297
297
  background:rgba(255,255,255,.16);transition:background .15s ease,box-shadow .15s ease;}
298
- [${D}] .reticle-settings-toggle[data-on="1"]{background:var(--reticle-accent);}
299
- [${D}] .reticle-settings-toggle::after{
298
+ [${P}] .reticle-settings-toggle[data-on="1"]{background:var(--reticle-accent);}
299
+ [${P}] .reticle-settings-toggle::after{
300
300
  content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;
301
301
  background:#fafafa;box-shadow:0 1px 2px rgba(0,0,0,.35);transition:transform .15s ease;}
302
- [${D}] .reticle-settings-toggle[data-on="1"]::after{transform:translateX(10px);}
303
- [${D}] .reticle-settings-toggle:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:2px;}
304
- [${D}] .reticle-settings-row[data-disabled="1"]{opacity:.45;pointer-events:none;}
305
- [${D}] .reticle-settings-section{
302
+ [${P}] .reticle-settings-toggle[data-on="1"]::after{transform:translateX(10px);}
303
+ [${P}] .reticle-settings-toggle:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:2px;}
304
+ [${P}] .reticle-settings-row[data-disabled="1"]{opacity:.45;pointer-events:none;}
305
+ [${P}] .reticle-settings-section{
306
306
  padding:10px 14px 6px;color:rgba(255,255,255,.38);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;}
307
- [${D}] .reticle-settings-swatches{
307
+ [${P}] .reticle-settings-swatches{
308
308
  display:flex;gap:8px;flex-wrap:wrap;padding:0 14px 10px;}
309
- [${D}] .reticle-settings-swatch{
309
+ [${P}] .reticle-settings-swatch{
310
310
  width:24px;height:24px;border-radius:999px;padding:0;cursor:pointer;
311
311
  border:2px solid transparent;background-clip:padding-box;
312
312
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);transition:transform .12s,border-color .12s;}
313
- [${D}] .reticle-settings-swatch:hover{transform:scale(1.06);}
314
- [${D}] .reticle-settings-swatch[data-on="1"]{
313
+ [${P}] .reticle-settings-swatch:hover{transform:scale(1.06);}
314
+ [${P}] .reticle-settings-swatch[data-on="1"]{
315
315
  border-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.35);}
316
- [${D}] .reticle-settings-swatch:focus-visible{outline:2px solid rgba(59,130,246,.65);outline-offset:2px;}
317
- [${D}] .reticle-settings-checkrow{
316
+ [${P}] .reticle-settings-swatch:focus-visible{outline:2px solid rgba(59,130,246,.65);outline-offset:2px;}
317
+ [${P}] .reticle-settings-checkrow{
318
318
  display:flex;align-items:center;gap:10px;padding:7px 14px;color:rgba(255,255,255,.86);font-size:13px;
319
319
  cursor:pointer;user-select:none;margin:0;transition:background .12s;}
320
- [${D}] .reticle-settings-checkrow:hover{background:rgba(255,255,255,.03);}
321
- [${D}] .reticle-settings-check{
320
+ [${P}] .reticle-settings-checkrow:hover{background:rgba(255,255,255,.03);}
321
+ [${P}] .reticle-settings-check{
322
322
  width:16px;height:16px;border-radius:5px;border:1px solid rgba(255,255,255,.22);
323
323
  background:rgba(255,255,255,.04);display:inline-flex;align-items:center;justify-content:center;
324
324
  color:transparent;font-size:11px;line-height:1;flex:none;transition:background .12s,border-color .12s,color .12s;}
325
- [${D}] .reticle-settings-check[data-on="1"]{
325
+ [${P}] .reticle-settings-check[data-on="1"]{
326
326
  background:#fafafa;border-color:#fafafa;color:#111;}
327
- [${D}] .reticle-settings-check:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:2px;}
328
- [${D}] .reticle-settings-foot{
327
+ [${P}] .reticle-settings-check:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:2px;}
328
+ [${P}] .reticle-settings-foot{
329
329
  flex-shrink:0;margin-top:2px;border-top:1px solid rgba(255,255,255,.08);
330
330
  display:flex;flex-direction:column;gap:0;background:#000;}
331
- [${D}] .reticle-settings-reset{
331
+ [${P}] .reticle-settings-reset{
332
332
  width:100%;display:flex;align-items:center;justify-content:center;gap:6px;
333
333
  border:none;background:rgba(255,255,255,.04);color:rgba(255,255,255,.78);font:inherit;font-size:12px;font-weight:600;
334
334
  padding:10px 14px;cursor:pointer;text-align:center;transition:background .12s,color .12s;}
335
- [${D}] .reticle-settings-reset:hover{background:rgba(255,255,255,.08);color:#fff;}
336
- [${D}] .reticle-settings-reset:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:-2px;}
337
- [${D}] .reticle-settings-link{
335
+ [${P}] .reticle-settings-reset:hover{background:rgba(255,255,255,.08);color:#fff;}
336
+ [${P}] .reticle-settings-reset:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:-2px;}
337
+ [${P}] .reticle-settings-link{
338
338
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;
339
339
  border:none;background:transparent;color:rgba(255,255,255,.82);font:inherit;font-size:13px;
340
340
  padding:11px 14px;cursor:pointer;text-align:left;transition:background .12s,color .12s;
341
341
  text-decoration:none;box-sizing:border-box;}
342
- [${D}] .reticle-settings-link-caret{display:inline-flex;align-items:center;flex:none;opacity:.55;}
343
- [${D}] .reticle-settings-link:hover{background:rgba(255,255,255,.04);color:#fff;}
344
- [${D}] .reticle-settings-link:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:-2px;}
345
- [${D}] .reticle-settings-kill-row{padding:12px 14px 14px;border-top:1px solid rgba(255,255,255,.08);}
346
- [${D}] .reticle-settings-kill{
342
+ [${P}] .reticle-settings-link-caret{display:inline-flex;align-items:center;flex:none;opacity:.55;}
343
+ [${P}] .reticle-settings-link:hover{background:rgba(255,255,255,.04);color:#fff;}
344
+ [${P}] .reticle-settings-link:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:-2px;}
345
+ [${P}] .reticle-settings-kill-row{padding:12px 14px 14px;border-top:1px solid rgba(255,255,255,.08);}
346
+ [${P}] .reticle-settings-kill{
347
347
  width:100%;display:flex;align-items:center;justify-content:center;
348
348
  border:1px solid rgba(239,68,68,.55);border-radius:8px;background:rgba(239,68,68,.12);color:#f87171;
349
349
  font:inherit;font-size:13px;font-weight:600;padding:8px 12px;cursor:pointer;
350
350
  transition:background .12s,border-color .12s,color .12s;}
351
- [${D}] .reticle-settings-kill:hover{background:rgba(239,68,68,.22);border-color:#ef4444;color:#fca5a5;}
352
- [${D}] .reticle-settings-kill[data-armed="1"]{background:#ef4444;border-color:#ef4444;color:#fff;}
353
- [${D}] .reticle-settings-kill:focus-visible{outline:2px solid rgba(239,68,68,.6);outline-offset:2px;}
354
- [${D}] .reticle-settings-kill-sub{margin:8px 0 0;font-size:11px;line-height:1.45;color:rgba(255,255,255,.55);}
351
+ [${P}] .reticle-settings-kill:hover{background:rgba(239,68,68,.22);border-color:#ef4444;color:#fca5a5;}
352
+ [${P}] .reticle-settings-kill[data-armed="1"]{background:#ef4444;border-color:#ef4444;color:#fff;}
353
+ [${P}] .reticle-settings-kill:focus-visible{outline:2px solid rgba(239,68,68,.6);outline-offset:2px;}
354
+ [${P}] .reticle-settings-kill-sub{margin:8px 0 0;font-size:11px;line-height:1.45;color:rgba(255,255,255,.55);}
355
355
  /* The SDK version line sits straight in the foot, so it takes the rows' inset rather than none. */
356
- [${D}] .reticle-settings-foot > .reticle-settings-kill-sub{padding:0 14px;}
357
- [data-reticle-overlay][${pt}="1"] [data-reticle-hud] .reticle-tb-tip{
356
+ [${P}] .reticle-settings-foot > .reticle-settings-kill-sub{padding:0 14px;}
357
+ [data-reticle-overlay][${ft}="1"] [data-reticle-hud] .reticle-tb-tip{
358
358
  opacity:0;visibility:hidden;transition-delay:0s;}
359
359
  /* The dock's accent IS the theme's active colour, published as --reticle-accent on the overlay by
360
360
  applyPresenterSettings. It used to be a seventh independent picker with its own attribute. */
361
361
  [data-reticle-dock]{--reticle-accent-soft:color-mix(in srgb,var(--reticle-accent) 18%,transparent);}
362
362
  /* One chip per theme: three bands (active, idle, ended) over the theme's name. */
363
- [${D}] .reticle-settings-themes{
363
+ [${P}] .reticle-settings-themes{
364
364
  display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px;padding:4px 14px 12px;}
365
- [${D}] .reticle-settings-theme{
365
+ [${P}] .reticle-settings-theme{
366
366
  display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;
367
367
  border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.03);
368
368
  cursor:pointer;transition:border-color .15s ease,background .15s ease;}
369
- [${D}] .reticle-settings-theme:hover{background:rgba(255,255,255,.07);}
370
- [${D}] .reticle-settings-theme[data-on="1"]{
369
+ [${P}] .reticle-settings-theme:hover{background:rgba(255,255,255,.07);}
370
+ [${P}] .reticle-settings-theme[data-on="1"]{
371
371
  border-color:#fff;background:rgba(255,255,255,.1);}
372
- [${D}] .reticle-settings-theme-band{display:block;height:6px;}
373
- [${D}] .reticle-settings-theme-band:first-of-type{height:10px;}
374
- [${D}] .reticle-settings-theme-name{
372
+ [${P}] .reticle-settings-theme-band{display:block;height:6px;}
373
+ [${P}] .reticle-settings-theme-band:first-of-type{height:10px;}
374
+ [${P}] .reticle-settings-theme-name{
375
375
  display:block;padding:5px 6px 6px;color:rgba(255,255,255,.78);font-size:11px;text-align:center;}
376
376
  [data-reticle-blocker]{
377
377
  position:fixed;inset:0;z-index:1;background:rgba(0,0,0,.16);pointer-events:auto;}
378
378
  [data-reticle-overlay][data-reticle-block="0"] [data-reticle-blocker]{
379
379
  display:none;pointer-events:none;}
380
380
  [data-reticle-overlay][data-reticle-hidden="1"] [${F}],
381
- [data-reticle-overlay][data-reticle-hidden="1"] [${D}]{display:none !important;}
381
+ [data-reticle-overlay][data-reticle-hidden="1"] [${P}]{display:none !important;}
382
382
 
383
- `});function uD(e){return op!=null||(op=new Set([...CZ,...Object.entries(LZ).flatMap(([t,n])=>n.map(r=>`${t}.${r}`))])),op.has(e)}var CZ,lD,LZ,op,dD=y(()=>{"use strict";CZ=["fab","pause","chat-toggle","markers-btn","end","clear-marks","copy-marks","copy","export","annotate-btn","report-btn","settings-btn","min-btn","chat-min","chat-pill","chat-impact","copy-all-notes","promo-link","replay","carousel-dot","carousel-prev","carousel-next","carousel-close","page-close","team-open","team-save","talk-book","account-signin","account-trigger","account-signout","account-dashboard","sync-now","report-scope","report-close","share-x","share-in","share-copy","refer","settings-close","settings-help","settings-reset","settings-mcp","settings-kill","feedback-email","feedback-call","workspace-btn","workspace-copy","mark-cancel","mark-send","harness-switch","harness-run","harness-stop","harness-open","harness-toggle","harness-link","agent-copy","defects-all","plan-close","plan-journey"],lD=["setting","check","settings-cycle","theme","tour-target","link","annotation-tab","chat-view-btn"],LZ={setting:["autoOpenChat","showTimestamps","showTally","reactComponents","hideUntilRestart","harnessEnabled","reduceMotion","ambientGlow"],check:["blockPageInteractions","clearOnCopy"],"settings-cycle":["outputDetail"],theme:["signal","traffic","mono","neon","ember"],"tour-target":["copy","back","done","next","skip"],link:["docs","github","site","discord","defect","dashboard"],"annotation-tab":["current","history"],"chat-view-btn":["activity","flows","annotations","harness"]}});function DZ(e){try{let t=new URL(e);return t.protocol!=="https:"?!1:$Z.has(t.hostname)?!0:kZ===t.hostname&&t.pathname.startsWith(zZ)}catch{return!1}}var $Z,kZ,zZ,NT,PZ,Zde,pD=y(()=>{"use strict";ae();$Z=new Set(["reticle.sh","www.reticle.sh","app.reticle.sh","docs.reticle.sh"]),kZ="github.com",zZ="/reticlehq/";NT=b({id:p().regex(/^[a-z0-9-]{1,48}$/),kicker:p().min(1).max(40).optional(),title:p().min(1).max(80),detail:p().min(1).max(120).optional(),cta:b({label:p().min(1).max(24),url:p().refine(DZ)}).optional()}),PZ=b({signedIn:L().optional(),entitled:L().optional()}),Zde=NT.extend({audience:PZ.optional(),from:p().optional(),until:p().optional(),minSdk:p().optional(),weight:S().optional()})});function is(e){return e!==void 0&&e.used>=e.limit}function gD(e){let t=`${pa(Math.max(0,e.limit-e.used))} of ${pa(e.limit)}`;return St.FREE===e.kind?`${t} free credits`:St.TRIAL===e.kind?`${t} trial credits`:`${t} credits left`}function OT(e){let t=e.kind===void 0?void 0:MZ[e.kind],n=Math.max(0,e.limit-e.used),r=e.daysLeft===void 0?"":` \xB7 ${String(e.daysLeft)} day${e.daysLeft===1?"":"s"} left`;return`${t===void 0?"":`${t}: `}${pa(e.used)} of ${pa(e.limit)} credits used \xB7 ${pa(n)} left${r}`}function ng(e){return St.FREE===e.kind?{said:`Your ${pa(e.limit)} free credits are used.`,action:`Add a card to start your ${String(RT)}-day trial`}:St.TRIAL===e.kind?{said:`Your ${pa(e.limit)} trial credits are used. Pro starts when your trial ends.`}:{said:"This month's credits are used. They renew over the next 30 days."}}var RT,fD,hD,mD,pa,MZ,ED=y(()=>{"use strict";y_();RT=14,fD=500,hD=`Sign up: free credits to try Reticle \xB7 add a card for a ${String(fD)}-credit, ${String(RT)}-day trial`,mD=`a card starts a ${String(RT)}-day trial with ${String(fD)} credits; without one, free sign-up credits`,pa=e=>e.toLocaleString("en-US",{maximumFractionDigits:2});MZ={[St.FREE]:"Free",[St.TRIAL]:"Trial"}});var ul=y(()=>{"use strict";dD();pD();ED()});function de(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function mr(e){try{let t=new URL(e).protocol;return t==="https:"||t==="http:"}catch{return!1}}var fa=y(()=>{"use strict"});function ip(e,t){let n=document.createElement("template");n.innerHTML=t,bD(e,n.content)}function bD(e,t){let n=[...e.childNodes],r=[...t.childNodes];r.forEach((o,i)=>{let s=n[i];s===void 0?e.appendChild(o):s.nodeType===o.nodeType&&s.nodeName===o.nodeName?UZ(s,o):e.replaceChild(o,s)});for(let o of n.slice(r.length))e.removeChild(o)}function UZ(e,t){if(!(e instanceof Element)||!(t instanceof Element)){e.nodeValue!==t.nodeValue&&(e.nodeValue=t.nodeValue);return}for(let{name:n}of[...e.attributes])t.hasAttribute(n)||e.removeAttribute(n);for(let{name:n,value:r}of[...t.attributes])e.getAttribute(n)!==r&&e.setAttribute(n,r);bD(e,t)}var IT=y(()=>{"use strict"});function SD(e){let n=(e!=null?e:"").trim().split(/[\s._-]+/).filter(r=>r.length>0).slice(0,2).map(r=>{var o;return(o=[...r][0])!=null?o:""}).join("");return n.length>0?n.toUpperCase():fe.AVATAR_FALLBACK}function pl(e,t={},n=!1){var a;if(e===void 0)return"";if(!e.signedIn)return n?`<div class="reticle-account" ${_D}><button type="button" class="reticle-account-signin" ${Xt} title="${fe.SIGNIN_TITLE}" aria-label="${fe.SIGNIN_TITLE}">${fe.SIGNED_OUT}</button></div>`:"";let r=(a=e.org)!=null?a:"",o=r.length>0?de(r):fe.SIGNED_IN_AS,i=`<span class="reticle-account-avatar" aria-hidden="true">${de(SD(e.org))}</span>`,s=`<button type="button" class="reticle-account-trigger" ${og} aria-haspopup="true" aria-expanded="false" title="${fe.TRIGGER_TITLE}" aria-label="${fe.TRIGGER_TITLE}: ${o}">${i}</button>`;return`<div class="reticle-account" ${_D}>${s}${GZ(e,t)}</div>`}function di(e,t){return t===void 0||t.length===0?"":`<div class="reticle-account-row"><span class="reticle-account-k">${de(e)}</span><span class="reticle-account-v" title="${de(t)}">${de(t)}</span></div>`}function GZ(e,t){var l,u;let n=(l=e.org)!=null?l:"",r=`<div class="reticle-account-head"><span class="reticle-account-avatar reticle-account-avatar--lg" aria-hidden="true">${de(SD(e.org))}</span><span class="reticle-account-who"><span class="reticle-account-org">${n.length>0?de(n):fe.SIGNED_IN_AS}</span>`+(e.email!==void 0&&e.email.length>0?`<span class="reticle-account-email" title="${de(e.email)}">${de(e.email)}</span>`:n.length>0?`<span class="reticle-account-email">${fe.SIGNED_IN_AS}</span>`:"")+"</span></div>",o=di(fe.HOST_LABEL,e.host)+di(fe.PROJECT_LABEL,t.projectName)+di(fe.VERDICTS_LABEL,t.verdicts!==void 0?String(t.verdicts):void 0)+di(fe.DEFECTS_LABEL,t.defects!==void 0?String(t.defects):void 0)+di(fe.ON_PLATFORM_LABEL,t.onPlatform)+di(fe.PLAN_LABEL,t.plan)+di(fe.CREDITS_LABEL,t.credits)+di(fe.HARNESS_RUNS_LABEL,t.harnessRuns)+di(fe.MEMORY_LABEL,t.memory),s=t.dashboardUrl!==void 0&&mr(t.dashboardUrl)?`<a class="reticle-account-action" data-reticle-account-dashboard href="${de((u=t.dashboardUrl)!=null?u:"")}" target="_blank" rel="noreferrer noopener" title="${fe.DASHBOARD_TITLE}">${Ie(se.VIEW,xe.HELP)}<span>${fe.DASHBOARD_ACTION}</span></a>`:`<button type="button" class="reticle-account-action reticle-account-action--hint" ${Xt} data-reticle-copy="${fe.LINK_COMMAND}" title="${fe.LINK_HINT}"><span>${fe.LINK_HINT}</span></button>`,a=`<button type="button" class="reticle-account-action" ${HZ} data-reticle-copy="${fe.SIGNOUT_COMMAND}" title="${fe.SIGNOUT_TITLE}"><span>${fe.SIGNOUT_ACTION}</span></button>`;return`<div class="reticle-account-menu" ${ss} role="menu" aria-label="${fe.MENU_LABEL}" aria-hidden="true" hidden>`+r+(o.length>0?`<div class="reticle-account-rows">${o}</div>`:"")+`<div class="reticle-account-actions">${s}${a}</div></div>`}function TD(e,t){let n=e==null?void 0:e.plan,r=t==null?void 0:t.onPlatform;return{...n===void 0?{}:{plan:[VZ[n.kind],n.daysLeft===void 0?"":`${CT(n.daysLeft,"day","days")} left`,n.seats===void 0?"":CT(n.seats,"seat","seats")].filter(o=>o.length>0).join(" \xB7 ")},...(e==null?void 0:e.credits)===void 0?{}:{credits:`${Math.max(0,e.credits.limit-e.credits.used).toLocaleString("en-US")} of ${e.credits.limit.toLocaleString("en-US")} left`},...(e==null?void 0:e.harnessRuns)===void 0?{}:{harnessRuns:String(e.harnessRuns)},...(e==null?void 0:e.memoryEntries)===void 0?{}:{memory:CT(e.memoryEntries,"entry","entries")},...typeof r=="number"?{onPlatform:String(r)}:{}}}function xD(e,t){return e===void 0||!e.signedIn?"":t!==void 0&&mr(t)?`<a ${FZ} class="reticle-team-link" href="${de(t)}" target="_blank" rel="noreferrer noopener" title="${de(rg.OPEN_TITLE)}">${rg.OPEN}</a>`:`<button type="button" ${sp} class="reticle-team-link" title="${de(rg.SAVE_TITLE)}"><span>${rg.SAVE_LINK}</span></button>`}function ap(e,t){var o;let n=e.querySelector(`[${ss}]:not([hidden])`)!==null;if(ip(e,t),!n)return;let r=e.querySelector(`[${ss}]`);r!==null&&(r.removeAttribute("hidden"),r.setAttribute("aria-hidden","false"),(o=e.querySelector(`[${og}]`))==null||o.setAttribute("aria-expanded","true"))}function $T(e){return e===void 0||!mr(e)?"":`<button type="button" class="reticle-sync-now" ${LT} title="${fe.SYNC_TITLE}" aria-label="${fe.SYNC_TITLE}">${Ie(se.SYNC,xe.HELP)}</button>`}function AD(e,t){let n=new AbortController,{signal:r}=n,o=a=>{for(let l of e.querySelectorAll(`[${ss}]`))l!==a&&(l.setAttribute("hidden",""),l.setAttribute("aria-hidden","true"));for(let l of e.querySelectorAll(`[${og}]`))a!==void 0&&l.parentElement===a.parentElement||l.setAttribute("aria-expanded","false")},i=(a,l)=>{var f;let u=(f=a.querySelector("span"))!=null?f:a,d=u.textContent;u.textContent=l,setTimeout(()=>{u.textContent=d},BZ)},s=async(a,l)=>{try{if(navigator.clipboard===void 0)throw new Error("Clipboard unavailable");await navigator.clipboard.writeText(a),i(l,fe.COPIED)}catch{i(l,a===fe.SIGNOUT_COMMAND?fe.SIGNOUT_COPY_FAILED:`Run ${a} in terminal`)}};return e.addEventListener("click",a=>{var m,h;let l=a.target;if(!(l instanceof Element))return;let u=l.closest(`[${og}]`);if(u instanceof HTMLElement){a.preventDefault(),a.stopPropagation();let E=(m=u.parentElement)==null?void 0:m.querySelector(`[${ss}]`);if(!(E instanceof HTMLElement))return;let _=!E.hasAttribute("hidden");if(o(),_)return;E.removeAttribute("hidden"),E.setAttribute("aria-hidden","false"),u.setAttribute("aria-expanded","true");return}let d=l.closest("[data-reticle-copy]");if(d instanceof HTMLElement){a.preventDefault(),a.stopPropagation();let E=(h=d.getAttribute("data-reticle-copy"))!=null?h:"";E.length>0&&s(E,d);return}let f=l.closest(`[${Xt}]`);if(f instanceof HTMLElement){a.preventDefault(),a.stopPropagation(),t==null||t(),s(fe.SIGNIN_COMMAND,f);return}o()},{signal:r}),document.addEventListener("pointerdown",a=>{let l=a.target;l instanceof Node&&e.contains(l)||o()},{signal:r}),document.addEventListener("keydown",a=>{a.key!=="Escape"||e.querySelector(`[${ss}]:not([hidden])`)===null||(a.stopPropagation(),o())},{signal:r}),()=>n.abort()}var _D,Xt,LT,og,ss,HZ,FZ,sp,dl,rg,fe,BZ,VZ,CT,bo=y(()=>{"use strict";M();ul();Pr();fa();IT();_D="data-reticle-account",Xt="data-reticle-account-signin",LT="data-reticle-sync-now",og="data-reticle-account-trigger",ss="data-reticle-account-menu",HZ="data-reticle-account-signout",FZ="data-reticle-team-open",sp="data-reticle-team-save",dl="data-reticle-team",rg={OPEN:"Open on dashboard \u2197",OPEN_TITLE:"This project's runs, kept for your team on the Reticle dashboard",SAVE_LINK:"Save runs for your team",SAVE_TITLE:`Keep every run, flow and Harness result on a dashboard your team shares. On Reticle, ${mD}.`},fe={SIGNED_OUT:"Sign in",SIGNIN_TITLE:"Sign in through your browser. Also copies `reticle connect`, for a terminal",SIGNIN_COMMAND:"reticle connect",DASHBOARD_TITLE:"Open this project on the dashboard",SYNC_TITLE:"Push to the dashboard now, instead of waiting for the next sync",COPIED:"Copied",AVATAR_FALLBACK:"\u2022",MENU_LABEL:"Reticle account",TRIGGER_TITLE:"Your Reticle account",SIGNED_IN_AS:"Signed in",DASHBOARD_ACTION:"Open dashboard",LINK_HINT:"Not linked \u2014 run `reticle connect` to keep a record on the dashboard",LINK_COMMAND:"reticle connect",SIGNOUT_ACTION:"Copy sign-out command",SIGNOUT_TITLE:"Copy `reticle logout` to run in your terminal",SIGNOUT_COMMAND:"reticle logout",SIGNOUT_COPY_FAILED:"Run reticle logout in terminal",PROJECT_LABEL:"Project",HOST_LABEL:"Host",VERDICTS_LABEL:"Verdicts",DEFECTS_LABEL:"Defects found",PLAN_LABEL:"Plan",CREDITS_LABEL:"Credits",HARNESS_RUNS_LABEL:"Harness runs",MEMORY_LABEL:"Memory",ON_PLATFORM_LABEL:"Runs on dashboard"},BZ=1200;VZ={[St.FREE]:"Free",[St.TRIAL]:"Trial",[St.PAID]:"Pro"},CT=(e,t,n)=>`${String(e)} ${e===1?t:n}`});var zD={};Wa(zD,{HARNESS_LOCKED_HELP:()=>ID,OutputDetail:()=>Gr,PresenterSettingsPanel:()=>lp,SETTINGS_ACCOUNT_ATTR:()=>BT,SETTINGS_CSS:()=>tg,blockerHtml:()=>KT,creditsLeft:()=>CD,getPresenterSettings:()=>_r,loadPresenterSettings:()=>FT,paintHarnessRow:()=>LD,paintSdkVersion:()=>VT,paintSettingsAccount:()=>GT,settingsPanelHtml:()=>jT,statusTheme:()=>up,syncPageBlocker:()=>ag});function up(e){var t;return(t=HT.find(n=>n.id===e))!=null?t:jZ}function _r(){return Bt}function FT(){if(typeof localStorage=="undefined")return{...gr};try{let e=localStorage.getItem(TT);if(e===null)return{...gr};let t=JSON.parse(e);if(typeof t!="object"||t===null)return{...gr};let n=t;return{outputDetail:KZ(n.outputDetail)?n.outputDetail:gr.outputDetail,reactComponents:n.reactComponents===!0,hideUntilRestart:!1,statusThemeId:ZZ(n.statusThemeId)?n.statusThemeId:gr.statusThemeId,ambientGlow:typeof n.ambientGlow=="boolean"?n.ambientGlow:gr.ambientGlow,clearOnCopy:n.clearOnCopy===!0,blockPageInteractions:typeof n.blockPageInteractions=="boolean"?n.blockPageInteractions:gr.blockPageInteractions,showTally:typeof n.showTally=="boolean"?n.showTally:gr.showTally,showTimestamps:typeof n.showTimestamps=="boolean"?n.showTimestamps:gr.showTimestamps,autoOpenChat:typeof n.autoOpenChat=="boolean"?n.autoOpenChat:gr.autoOpenChat,reduceMotion:typeof n.reduceMotion=="boolean"?n.reduceMotion:gr.reduceMotion}}catch{return{...gr}}}function KZ(e){return e===Gr.MINIMAL||e===Gr.STANDARD||e===Gr.VERBOSE}function ZZ(e){return HT.some(t=>t.id===e)}function WZ(e){if(Bt=e,typeof localStorage!="undefined")try{localStorage.setItem(TT,JSON.stringify(e))}catch{}}function YZ(e){let t={...Bt,...e};return WZ(t),t}function XZ(){return Ie(se.HELP,xe.HELP)}function kT(e,t,n=""){let r=XZ(),o=n===""?"":`<span class="reticle-settings-desc">${n}</span>`;return`<span class="reticle-settings-labelcol"><span class="reticle-settings-label">${e}<button type="button" class="reticle-settings-help" data-reticle-settings-help title="${t}" aria-label="${t}">${r}</button></span>${o}</span>`}function as(e,t,n=""){let[r,o]=fl[e];return`<div class="reticle-settings-row" ${n}>
384
- ${kT(r,t,o)}
385
- <button type="button" class="reticle-settings-toggle" ${ol}="${e}" role="switch" aria-checked="false"></button>
386
- </div>`}function yD(e,t){let[n,r]=fl[e];return`<label class="reticle-settings-checkrow" data-reticle-check-row="${e}">
383
+ `});function T1(e){return ip!=null||(ip=new Set([...JZ,...Object.entries(QZ).flatMap(([t,n])=>n.map(r=>`${t}.${r}`))])),ip.has(e)}var JZ,S1,QZ,ip,x1=y(()=>{"use strict";JZ=["fab","pause","chat-toggle","markers-btn","end","clear-marks","copy-marks","copy","export","annotate-btn","report-btn","settings-btn","min-btn","chat-min","chat-pill","chat-impact","copy-all-notes","promo-link","replay","carousel-dot","carousel-prev","carousel-next","carousel-close","page-close","team-open","team-save","talk-book","account-signin","account-trigger","account-signout","account-dashboard","sync-now","report-scope","report-close","share-x","share-in","share-copy","refer","settings-close","settings-help","settings-reset","settings-mcp","settings-kill","feedback-email","feedback-call","workspace-btn","workspace-copy","mark-cancel","mark-send","harness-switch","harness-run","harness-stop","harness-open","harness-toggle","harness-link","agent-copy","defects-all","plan-close","plan-journey"],S1=["setting","check","settings-cycle","theme","tour-target","link","annotation-tab","chat-view-btn"],QZ={setting:["autoOpenChat","showTimestamps","showTally","reactComponents","hideUntilRestart","harnessEnabled","reduceMotion","ambientGlow"],check:["blockPageInteractions","clearOnCopy"],"settings-cycle":["outputDetail"],theme:["signal","traffic","mono","neon","ember"],"tour-target":["copy","back","done","next","skip"],link:["docs","github","site","discord","defect","dashboard"],"annotation-tab":["current","history"],"chat-view-btn":["activity","flows","annotations","harness"]}});function r9(e){try{let t=new URL(e);return t.protocol!=="https:"?!1:e9.has(t.hostname)?!0:t9===t.hostname&&t.pathname.startsWith(n9)}catch{return!1}}var e9,t9,n9,LT,o9,Npe,A1=y(()=>{"use strict";ae();e9=new Set(["reticle.sh","www.reticle.sh","app.reticle.sh","docs.reticle.sh"]),t9="github.com",n9="/reticlehq/";LT=b({id:p().regex(/^[a-z0-9-]{1,48}$/),kicker:p().min(1).max(40).optional(),title:p().min(1).max(80),detail:p().min(1).max(120).optional(),cta:b({label:p().min(1).max(24),url:p().refine(r9)}).optional()}),o9=b({signedIn:L().optional(),entitled:L().optional()}),Npe=LT.extend({audience:o9.optional(),from:p().optional(),until:p().optional(),minSdk:p().optional(),weight:S().optional()})});function as(e){return e!==void 0&&e.used>=e.limit}function N1(e){let t=`${fa(Math.max(0,e.limit-e.used))} of ${fa(e.limit)}`;return xt.FREE===e.kind?`${t} free credits`:xt.TRIAL===e.kind?`${t} trial credits`:`${t} credits left`}function kT(e){let t=e.kind===void 0?void 0:i9[e.kind],n=Math.max(0,e.limit-e.used),r=e.daysLeft===void 0?"":` \xB7 ${String(e.daysLeft)} day${e.daysLeft===1?"":"s"} left`;return`${t===void 0?"":`${t}: `}${fa(e.used)} of ${fa(e.limit)} credits used \xB7 ${fa(n)} left${r}`}function og(e){return xt.FREE===e.kind?{said:`Your ${fa(e.limit)} free credits are used.`,action:`Add a card to start your ${String($T)}-day trial`}:xt.TRIAL===e.kind?{said:`Your ${fa(e.limit)} trial credits are used. Pro starts when your trial ends.`}:{said:"This month's credits are used. They renew over the next 30 days."}}var $T,y1,w1,v1,fa,i9,R1=y(()=>{"use strict";R_();$T=14,y1=500,w1=`Sign up: free credits to try Reticle \xB7 add a card for a ${String(y1)}-credit, ${String($T)}-day trial`,v1=`a card starts a ${String($T)}-day trial with ${String(y1)} credits; without one, free sign-up credits`,fa=e=>e.toLocaleString("en-US",{maximumFractionDigits:2});i9={[xt.FREE]:"Free",[xt.TRIAL]:"Trial"}});var pl=y(()=>{"use strict";x1();A1();R1()});function de(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Er(e){try{let t=new URL(e).protocol;return t==="https:"||t==="http:"}catch{return!1}}var ha=y(()=>{"use strict"});function sp(e,t){let n=document.createElement("template");n.innerHTML=t,O1(e,n.content)}function O1(e,t){let n=[...e.childNodes],r=[...t.childNodes];r.forEach((o,i)=>{let s=n[i];s===void 0?e.appendChild(o):s.nodeType===o.nodeType&&s.nodeName===o.nodeName?s9(s,o):e.replaceChild(o,s)});for(let o of n.slice(r.length))e.removeChild(o)}function s9(e,t){if(!(e instanceof Element)||!(t instanceof Element)){e.nodeValue!==t.nodeValue&&(e.nodeValue=t.nodeValue);return}for(let{name:n}of[...e.attributes])t.hasAttribute(n)||e.removeAttribute(n);for(let{name:n,value:r}of[...t.attributes])e.getAttribute(n)!==r&&e.setAttribute(n,r);O1(e,t)}var zT=y(()=>{"use strict"});function C1(e){let n=(e!=null?e:"").trim().split(/[\s._-]+/).filter(r=>r.length>0).slice(0,2).map(r=>{var o;return(o=[...r][0])!=null?o:""}).join("");return n.length>0?n.toUpperCase():fe.AVATAR_FALLBACK}function hl(e,t={},n=!1){var a;if(e===void 0)return"";if(!e.signedIn)return n?`<div class="reticle-account" ${I1}><button type="button" class="reticle-account-signin" ${qt} title="${fe.SIGNIN_TITLE}" aria-label="${fe.SIGNIN_TITLE}">${fe.SIGNED_OUT}</button></div>`:"";let r=(a=e.org)!=null?a:"",o=r.length>0?de(r):fe.SIGNED_IN_AS,i=`<span class="reticle-account-avatar" aria-hidden="true">${de(C1(e.org))}</span>`,s=`<button type="button" class="reticle-account-trigger" ${sg} aria-haspopup="true" aria-expanded="false" title="${fe.TRIGGER_TITLE}" aria-label="${fe.TRIGGER_TITLE}: ${o}">${i}</button>`;return`<div class="reticle-account" ${I1}>${s}${u9(e,t)}</div>`}function hi(e,t){return t===void 0||t.length===0?"":`<div class="reticle-account-row"><span class="reticle-account-k">${de(e)}</span><span class="reticle-account-v" title="${de(t)}">${de(t)}</span></div>`}function u9(e,t){var l,u;let n=(l=e.org)!=null?l:"",r=`<div class="reticle-account-head"><span class="reticle-account-avatar reticle-account-avatar--lg" aria-hidden="true">${de(C1(e.org))}</span><span class="reticle-account-who"><span class="reticle-account-org">${n.length>0?de(n):fe.SIGNED_IN_AS}</span>`+(e.email!==void 0&&e.email.length>0?`<span class="reticle-account-email" title="${de(e.email)}">${de(e.email)}</span>`:n.length>0?`<span class="reticle-account-email">${fe.SIGNED_IN_AS}</span>`:"")+"</span></div>",o=hi(fe.HOST_LABEL,e.host)+hi(fe.PROJECT_LABEL,t.projectName)+hi(fe.VERDICTS_LABEL,t.verdicts!==void 0?String(t.verdicts):void 0)+hi(fe.DEFECTS_LABEL,t.defects!==void 0?String(t.defects):void 0)+hi(fe.ON_PLATFORM_LABEL,t.onPlatform)+hi(fe.PLAN_LABEL,t.plan)+hi(fe.CREDITS_LABEL,t.credits)+hi(fe.HARNESS_RUNS_LABEL,t.harnessRuns)+hi(fe.MEMORY_LABEL,t.memory),s=t.dashboardUrl!==void 0&&Er(t.dashboardUrl)?`<a class="reticle-account-action" data-reticle-account-dashboard href="${de((u=t.dashboardUrl)!=null?u:"")}" target="_blank" rel="noreferrer noopener" title="${fe.DASHBOARD_TITLE}">${Ie(se.VIEW,Ae.HELP)}<span>${fe.DASHBOARD_ACTION}</span></a>`:`<button type="button" class="reticle-account-action reticle-account-action--hint" ${qt} data-reticle-copy="${fe.LINK_COMMAND}" title="${fe.LINK_HINT}"><span>${fe.LINK_HINT}</span></button>`,a=`<button type="button" class="reticle-account-action" ${a9} data-reticle-copy="${fe.SIGNOUT_COMMAND}" title="${fe.SIGNOUT_TITLE}"><span>${fe.SIGNOUT_ACTION}</span></button>`;return`<div class="reticle-account-menu" ${cs} role="menu" aria-label="${fe.MENU_LABEL}" aria-hidden="true" hidden>`+r+(o.length>0?`<div class="reticle-account-rows">${o}</div>`:"")+`<div class="reticle-account-actions">${s}${a}</div></div>`}function L1(e,t){let n=e==null?void 0:e.plan,r=t==null?void 0:t.onPlatform;return{...n===void 0?{}:{plan:[d9[n.kind],n.daysLeft===void 0?"":`${DT(n.daysLeft,"day","days")} left`,n.seats===void 0?"":DT(n.seats,"seat","seats")].filter(o=>o.length>0).join(" \xB7 ")},...(e==null?void 0:e.credits)===void 0?{}:{credits:`${Math.max(0,e.credits.limit-e.credits.used).toLocaleString("en-US")} of ${e.credits.limit.toLocaleString("en-US")} left`},...(e==null?void 0:e.harnessRuns)===void 0?{}:{harnessRuns:String(e.harnessRuns)},...(e==null?void 0:e.memoryEntries)===void 0?{}:{memory:DT(e.memoryEntries,"entry","entries")},...typeof r=="number"?{onPlatform:String(r)}:{}}}function $1(e,t){return e===void 0||!e.signedIn?"":t!==void 0&&Er(t)?`<a ${c9} class="reticle-team-link" href="${de(t)}" target="_blank" rel="noreferrer noopener" title="${de(ig.OPEN_TITLE)}">${ig.OPEN}</a>`:`<button type="button" ${ap} class="reticle-team-link" title="${de(ig.SAVE_TITLE)}"><span>${ig.SAVE_LINK}</span></button>`}function cp(e,t){var o;let n=e.querySelector(`[${cs}]:not([hidden])`)!==null;if(sp(e,t),!n)return;let r=e.querySelector(`[${cs}]`);r!==null&&(r.removeAttribute("hidden"),r.setAttribute("aria-hidden","false"),(o=e.querySelector(`[${sg}]`))==null||o.setAttribute("aria-expanded","true"))}function MT(e){return e===void 0||!Er(e)?"":`<button type="button" class="reticle-sync-now" ${PT} title="${fe.SYNC_TITLE}" aria-label="${fe.SYNC_TITLE}">${Ie(se.SYNC,Ae.HELP)}</button>`}function k1(e,t){let n=new AbortController,{signal:r}=n,o=a=>{for(let l of e.querySelectorAll(`[${cs}]`))l!==a&&(l.setAttribute("hidden",""),l.setAttribute("aria-hidden","true"));for(let l of e.querySelectorAll(`[${sg}]`))a!==void 0&&l.parentElement===a.parentElement||l.setAttribute("aria-expanded","false")},i=(a,l)=>{var f;let u=(f=a.querySelector("span"))!=null?f:a,d=u.textContent;u.textContent=l,setTimeout(()=>{u.textContent=d},l9)},s=async(a,l)=>{try{if(navigator.clipboard===void 0)throw new Error("Clipboard unavailable");await navigator.clipboard.writeText(a),i(l,fe.COPIED)}catch{i(l,a===fe.SIGNOUT_COMMAND?fe.SIGNOUT_COPY_FAILED:`Run ${a} in terminal`)}};return e.addEventListener("click",a=>{var m,h;let l=a.target;if(!(l instanceof Element))return;let u=l.closest(`[${sg}]`);if(u instanceof HTMLElement){a.preventDefault(),a.stopPropagation();let E=(m=u.parentElement)==null?void 0:m.querySelector(`[${cs}]`);if(!(E instanceof HTMLElement))return;let _=!E.hasAttribute("hidden");if(o(),_)return;E.removeAttribute("hidden"),E.setAttribute("aria-hidden","false"),u.setAttribute("aria-expanded","true");return}let d=l.closest("[data-reticle-copy]");if(d instanceof HTMLElement){a.preventDefault(),a.stopPropagation();let E=(h=d.getAttribute("data-reticle-copy"))!=null?h:"";E.length>0&&s(E,d);return}let f=l.closest(`[${qt}]`);if(f instanceof HTMLElement){a.preventDefault(),a.stopPropagation(),t==null||t(),s(fe.SIGNIN_COMMAND,f);return}o()},{signal:r}),document.addEventListener("pointerdown",a=>{let l=a.target;l instanceof Node&&e.contains(l)||o()},{signal:r}),document.addEventListener("keydown",a=>{a.key!=="Escape"||e.querySelector(`[${cs}]:not([hidden])`)===null||(a.stopPropagation(),o())},{signal:r}),()=>n.abort()}var I1,qt,PT,sg,cs,a9,c9,ap,fl,ig,fe,l9,d9,DT,xo=y(()=>{"use strict";M();pl();Hr();ha();zT();I1="data-reticle-account",qt="data-reticle-account-signin",PT="data-reticle-sync-now",sg="data-reticle-account-trigger",cs="data-reticle-account-menu",a9="data-reticle-account-signout",c9="data-reticle-team-open",ap="data-reticle-team-save",fl="data-reticle-team",ig={OPEN:"Open on dashboard \u2197",OPEN_TITLE:"This project's runs, kept for your team on the Reticle dashboard",SAVE_LINK:"Save runs for your team",SAVE_TITLE:`Keep every run, flow and Harness result on a dashboard your team shares. On Reticle, ${v1}.`},fe={SIGNED_OUT:"Sign in",SIGNIN_TITLE:"Sign in through your browser. Also copies `reticle connect`, for a terminal",SIGNIN_COMMAND:"reticle connect",DASHBOARD_TITLE:"Open this project on the dashboard",SYNC_TITLE:"Push to the dashboard now, instead of waiting for the next sync",COPIED:"Copied",AVATAR_FALLBACK:"\u2022",MENU_LABEL:"Reticle account",TRIGGER_TITLE:"Your Reticle account",SIGNED_IN_AS:"Signed in",DASHBOARD_ACTION:"Open dashboard",LINK_HINT:"Not linked \u2014 run `reticle connect` to keep a record on the dashboard",LINK_COMMAND:"reticle connect",SIGNOUT_ACTION:"Copy sign-out command",SIGNOUT_TITLE:"Copy `reticle logout` to run in your terminal",SIGNOUT_COMMAND:"reticle logout",SIGNOUT_COPY_FAILED:"Run reticle logout in terminal",PROJECT_LABEL:"Project",HOST_LABEL:"Host",VERDICTS_LABEL:"Verdicts",DEFECTS_LABEL:"Defects found",PLAN_LABEL:"Plan",CREDITS_LABEL:"Credits",HARNESS_RUNS_LABEL:"Harness runs",MEMORY_LABEL:"Memory",ON_PLATFORM_LABEL:"Runs on dashboard"},l9=1200;d9={[xt.FREE]:"Free",[xt.TRIAL]:"Trial",[xt.PAID]:"Pro"},DT=(e,t,n)=>`${String(e)} ${e===1?t:n}`});var K1={};Ya(K1,{HARNESS_LOCKED_HELP:()=>F1,OutputDetail:()=>Kr,PresenterSettingsPanel:()=>up,SETTINGS_ACCOUNT_ATTR:()=>ZT,SETTINGS_CSS:()=>rg,blockerHtml:()=>qT,creditsLeft:()=>B1,getPresenterSettings:()=>Tr,loadPresenterSettings:()=>KT,paintHarnessRow:()=>G1,paintSdkVersion:()=>YT,paintSettingsAccount:()=>WT,settingsPanelHtml:()=>XT,statusTheme:()=>dp,syncPageBlocker:()=>lg});function dp(e){var t;return(t=jT.find(n=>n.id===e))!=null?t:p9}function Tr(){return Ft}function KT(){if(typeof localStorage=="undefined")return{...br};try{let e=localStorage.getItem(vT);if(e===null)return{...br};let t=JSON.parse(e);if(typeof t!="object"||t===null)return{...br};let n=t;return{outputDetail:f9(n.outputDetail)?n.outputDetail:br.outputDetail,reactComponents:n.reactComponents===!0,hideUntilRestart:!1,statusThemeId:h9(n.statusThemeId)?n.statusThemeId:br.statusThemeId,ambientGlow:typeof n.ambientGlow=="boolean"?n.ambientGlow:br.ambientGlow,clearOnCopy:n.clearOnCopy===!0,blockPageInteractions:typeof n.blockPageInteractions=="boolean"?n.blockPageInteractions:br.blockPageInteractions,showTally:typeof n.showTally=="boolean"?n.showTally:br.showTally,showTimestamps:typeof n.showTimestamps=="boolean"?n.showTimestamps:br.showTimestamps,autoOpenChat:typeof n.autoOpenChat=="boolean"?n.autoOpenChat:br.autoOpenChat,reduceMotion:typeof n.reduceMotion=="boolean"?n.reduceMotion:br.reduceMotion}}catch{return{...br}}}function f9(e){return e===Kr.MINIMAL||e===Kr.STANDARD||e===Kr.VERBOSE}function h9(e){return jT.some(t=>t.id===e)}function m9(e){if(Ft=e,typeof localStorage!="undefined")try{localStorage.setItem(vT,JSON.stringify(e))}catch{}}function g9(e){let t={...Ft,...e};return m9(t),t}function E9(){return Ie(se.HELP,Ae.HELP)}function UT(e,t,n=""){let r=E9(),o=n===""?"":`<span class="reticle-settings-desc">${n}</span>`;return`<span class="reticle-settings-labelcol"><span class="reticle-settings-label">${e}<button type="button" class="reticle-settings-help" data-reticle-settings-help title="${t}" aria-label="${t}">${r}</button></span>${o}</span>`}function ls(e,t,n=""){let[r,o]=ml[e];return`<div class="reticle-settings-row" ${n}>
384
+ ${UT(r,t,o)}
385
+ <button type="button" class="reticle-settings-toggle" ${sl}="${e}" role="switch" aria-checked="false"></button>
386
+ </div>`}function z1(e,t){let[n,r]=ml[e];return`<label class="reticle-settings-checkrow" data-reticle-check-row="${e}">
387
387
  <span class="reticle-settings-check" data-reticle-check="${e}" role="checkbox" aria-checked="${t?"true":"false"}" tabindex="0"></span>
388
388
  <span class="reticle-settings-labelcol"><span class="reticle-settings-check-label">${n}</span><span class="reticle-settings-desc">${r}</span></span>
389
- </label>`}function CD(e){return e===void 0?"":is(e)?ng(e).said:gD(e)}function LD(e,t){let n=e.querySelector(`[${RD}]`);if(!(n instanceof HTMLElement))return;if(t===void 0){n.hidden=!0;return}n.hidden=!1;let r=n.querySelector(`[${ol}="harnessEnabled"]`);if(!(r instanceof HTMLElement))return;let o=t.harnessEntitled;r.setAttribute("aria-checked",t.harnessEnabled&&o?"true":"false"),r.setAttribute("aria-disabled",o?"false":"true");let i=n.querySelector("[data-reticle-settings-help]"),s=CD(t.credits);i instanceof HTMLElement&&(i.title=o?[OD,s].filter(a=>0<a.length).join(" "):is(t.credits)?s:ID)}function GT(e,t,n,r={}){let o=e.querySelector(`[${ND}]`),i=e.querySelector(`[${BT}]`);if(!(o instanceof HTMLElement)||!(i instanceof HTMLElement))return;let s=pl(t,{...r,dashboardUrl:n},!0);o.hidden=s.length===0,ap(i,s)}function VT(e,t){let n=e.querySelector(`[${$D}]`);n!==null&&(n.textContent=t===void 0?DT.UNKNOWN:DT.KNOWN(t))}function jT(){let e=Ie(se.REMOVE,xe.MIN),t=Ie(se.CARET_RIGHT,xe.HELP),n="How much detail is included when you copy or export the run",r="Include React component paths in exported run state when available",o="Hide the Reticle HUD until you reload the page",i=OD;return`<div ${D} class="reticle-settings ${Xn}" role="region" aria-label="Reticle settings" aria-hidden="true">
389
+ </label>`}function B1(e){return e===void 0?"":as(e)?og(e).said:N1(e)}function G1(e,t){let n=e.querySelector(`[${U1}]`);if(!(n instanceof HTMLElement))return;if(t===void 0){n.hidden=!0;return}n.hidden=!1;let r=n.querySelector(`[${sl}="harnessEnabled"]`);if(!(r instanceof HTMLElement))return;let o=t.harnessEntitled;r.setAttribute("aria-checked",t.harnessEnabled&&o?"true":"false"),r.setAttribute("aria-disabled",o?"false":"true");let i=n.querySelector("[data-reticle-settings-help]"),s=B1(t.credits);i instanceof HTMLElement&&(i.title=o?[H1,s].filter(a=>0<a.length).join(" "):as(t.credits)?s:F1)}function WT(e,t,n,r={}){let o=e.querySelector(`[${M1}]`),i=e.querySelector(`[${ZT}]`);if(!(o instanceof HTMLElement)||!(i instanceof HTMLElement))return;let s=hl(t,{...r,dashboardUrl:n},!0);o.hidden=s.length===0,cp(i,s)}function YT(e,t){let n=e.querySelector(`[${V1}]`);n!==null&&(n.textContent=t===void 0?FT.UNKNOWN:FT.KNOWN(t))}function XT(){let e=Ie(se.REMOVE,Ae.MIN),t=Ie(se.CARET_RIGHT,Ae.HELP),n="How much detail is included when you copy or export the run",r="Include React component paths in exported run state when available",o="Hide the Reticle HUD until you reload the page",i=H1;return`<div ${P} class="reticle-settings ${Xn}" role="region" aria-label="Reticle settings" aria-hidden="true">
390
390
  <div class="reticle-settings-inner">
391
391
  <div class="reticle-settings-head">
392
392
  <span class="reticle-settings-title">Settings</span>
393
- <button type="button" ${ST} class="reticle-settings-close" title="Close settings" aria-label="Close settings">${e}</button>
393
+ <button type="button" ${wT} class="reticle-settings-close" title="Close settings" aria-label="Close settings">${e}</button>
394
394
  </div>
395
395
  <div class="reticle-settings-body">
396
396
  <div class="reticle-settings-section">Session</div>
397
397
  <div class="reticle-settings-row">
398
- ${kT(fl.outputDetail[0],n,fl.outputDetail[1])}
398
+ ${UT(ml.outputDetail[0],n,ml.outputDetail[1])}
399
399
  <button type="button" class="reticle-settings-cycle" data-reticle-settings-cycle="outputDetail"><span data-reticle-cycle-label></span><span class="reticle-settings-dots" data-reticle-cycle-dots></span></button>
400
400
  </div>
401
- ${as("autoOpenChat","On by default. Opens the agent chat by itself when a session starts and when you expand the HUD. Off leaves the toolbar bare until you ask for the chat.")}
402
- ${as("showTimestamps","Show relative timestamps on each activity-log row")}
403
- ${as("showTally","Show the pass/fail score pill in the toolbar")}
401
+ ${ls("autoOpenChat","On by default. Opens the agent chat by itself when a session starts and when you expand the HUD. Off leaves the toolbar bare until you ask for the chat.")}
402
+ ${ls("showTimestamps","Show relative timestamps on each activity-log row")}
403
+ ${ls("showTally","Show the pass/fail score pill in the toolbar")}
404
404
  <div class="reticle-settings-section">Inspector</div>
405
- ${as("reactComponents",r,"data-reticle-settings-react-row")}
405
+ ${ls("reactComponents",r,"data-reticle-settings-react-row")}
406
406
  <div class="reticle-settings-section">Interaction</div>
407
- ${yD("blockPageInteractions",!0)}
408
- ${yD("clearOnCopy",!1)}
409
- ${as("hideUntilRestart",o)}
410
- ${as("harnessEnabled",i,`${RD} hidden`)}
411
- ${as("reduceMotion","Reduce HUD animations for accessibility")}
407
+ ${z1("blockPageInteractions",!0)}
408
+ ${z1("clearOnCopy",!1)}
409
+ ${ls("hideUntilRestart",o)}
410
+ ${ls("harnessEnabled",i,`${U1} hidden`)}
411
+ ${ls("reduceMotion","Reduce HUD animations for accessibility")}
412
412
  <div class="reticle-settings-section">Account</div>
413
- <div class="reticle-settings-row" ${ND} hidden>
414
- ${kT(fl.workspace[0],qZ,fl.workspace[1])}
415
- <span ${BT}></span>
413
+ <div class="reticle-settings-row" ${M1} hidden>
414
+ ${UT(ml.workspace[0],b9,ml.workspace[1])}
415
+ <span ${ZT}></span>
416
416
  </div>
417
417
  <div class="reticle-settings-section">Status theme</div>
418
- ${as("ambientGlow","Glow the page edges in the status colour while a session is live. Off keeps the HUD signals and leaves your app alone.")}
418
+ ${ls("ambientGlow","Glow the page edges in the status colour while a session is live. Off keeps the HUD signals and leaves your app alone.")}
419
419
  <div class="reticle-settings-themes" data-reticle-settings-themes></div>
420
420
  <div class="reticle-settings-section">Help</div>
421
421
  <div class="reticle-settings-foot">
422
422
  <button type="button" class="reticle-settings-reset" data-reticle-settings-reset>Reset HUD position</button>
423
423
  <button type="button" class="reticle-settings-link" data-reticle-settings-mcp>MCP setup guide<span class="reticle-settings-link-caret" aria-hidden="true">${t}</span></button>
424
- <a class="reticle-settings-link" data-reticle-feedback-email href="${MO}" target="_blank" rel="noopener noreferrer" title="${ig.EMAIL_TITLE}">${ig.EMAIL}<span class="reticle-settings-link-caret" aria-hidden="true">${t}</span></a>
425
- <a class="reticle-settings-link" data-reticle-feedback-call href="${Qf}" target="_blank" rel="noopener noreferrer" title="${ig.CALL_TITLE}">${ig.CALL}<span class="reticle-settings-link-caret" aria-hidden="true">${t}</span></a>
426
- <p class="reticle-settings-kill-sub" ${$D}>${DT.UNKNOWN}</p>
424
+ <a class="reticle-settings-link" data-reticle-feedback-email href="${KO}" target="_blank" rel="noopener noreferrer" title="${ag.EMAIL_TITLE}">${ag.EMAIL}<span class="reticle-settings-link-caret" aria-hidden="true">${t}</span></a>
425
+ <a class="reticle-settings-link" data-reticle-feedback-call href="${eh}" target="_blank" rel="noopener noreferrer" title="${ag.CALL_TITLE}">${ag.CALL}<span class="reticle-settings-link-caret" aria-hidden="true">${t}</span></a>
426
+ <p class="reticle-settings-kill-sub" ${V1}>${FT.UNKNOWN}</p>
427
427
  <div class="reticle-settings-kill-row">
428
- <button type="button" class="reticle-settings-kill" ${zT}><span data-reticle-kill-label>${sg.LABEL}</span></button>
429
- <p class="reticle-settings-kill-sub">${sg.WARNING}</p>
428
+ <button type="button" class="reticle-settings-kill" ${HT}><span data-reticle-kill-label>${cg.LABEL}</span></button>
429
+ <p class="reticle-settings-kill-sub">${cg.WARNING}</p>
430
430
  </div>
431
431
  </div>
432
432
  </div>
433
433
  </div>
434
- </div>`}function vD(e,t){let n=up(t.statusThemeId);e.style.setProperty("--reticle-mark-accent",n.active),e.style.setProperty("--reticle-accent",n.active),e.style.setProperty("--reticle-c-active",n.active),e.style.setProperty("--reticle-c-idle",n.idle),e.style.setProperty("--reticle-c-ended",n.ended),e.setAttribute(B1,t.ambientGlow?"1":"0"),t.hideUntilRestart?e.setAttribute(il,"1"):e.removeAttribute(il),e.setAttribute(Km,t.showTimestamps?"1":"0"),e.setAttribute(Eo,t.reduceMotion?"1":"0");let r=e.querySelector("[data-reticle-tally]");r instanceof HTMLElement&&!t.showTally&&r.setAttribute("hidden","")}function ag(e,t,n){e.setAttribute(G1,t.blockPageInteractions&&n?"1":"0")}function KT(){return'<div data-reticle-blocker aria-hidden="true"></div>'}var Gr,ha,HT,jZ,cp,gr,Bt,fl,BT,ND,wD,RD,OD,ID,qZ,ig,zT,sg,$D,DT,bn,Gt,br,_o,Ce,PT,Er,MT,cs,UT,kD,lp,hl=y(()=>{"use strict";Lt();Pr();Fr();wT();rp();vT();ul();M();bo();Gr={MINIMAL:"minimal",STANDARD:"standard",VERBOSE:"verbose"},ha={SIGNAL:"signal",TRAFFIC:"traffic",MONO:"mono",NEON:"neon",EMBER:"ember"},HT=[{id:ha.SIGNAL,label:"Signal",active:"#3b82f6",idle:"#eab308",ended:"#ef4444"},{id:ha.TRAFFIC,label:"Traffic",active:"#22c55e",idle:"#eab308",ended:"#ef4444"},{id:ha.MONO,label:"Mono",active:"#fafafa",idle:"#a3a3a3",ended:"#525252"},{id:ha.NEON,label:"Neon",active:"#06b6d4",idle:"#a855f7",ended:"#f43f5e"},{id:ha.EMBER,label:"Ember",active:"#f97316",idle:"#facc15",ended:"#7f1d1d"}],jZ={id:ha.SIGNAL,label:"Signal",active:"#3b82f6",idle:"#eab308",ended:"#ef4444"};cp=[{value:Gr.MINIMAL,label:"Minimal"},{value:Gr.STANDARD,label:"Standard"},{value:Gr.VERBOSE,label:"Verbose"}],gr={outputDetail:Gr.STANDARD,statusThemeId:ha.SIGNAL,ambientGlow:!0,reactComponents:!1,hideUntilRestart:!1,clearOnCopy:!1,blockPageInteractions:!0,showTally:!1,showTimestamps:!0,autoOpenChat:!0,reduceMotion:!1},Bt=FT();fl={outputDetail:["Output detail","How much a copied run includes."],autoOpenChat:["Open the log automatically","Opens this panel when an agent starts to act in this tab."],showTimestamps:["Show timestamps","Shows how long ago each log row happened."],showTally:["Show pass/fail count","A score pill for this session in the toolbar."],reactComponents:["React component names","Adds component names to copied runs."],blockPageInteractions:["Block page while adding notes","Clicks pin a note instead of using the app."],clearOnCopy:["Clear notes after copying","Starts fresh once your notes are copied."],hideUntilRestart:["Hide until reload","Hides the HUD until this page reloads."],harnessEnabled:["Allow Reticle to drive","Off by default. Lets Run Harness test this project."],reduceMotion:["Reduce motion","Fewer HUD animations."],ambientGlow:["Page glow","Tints the page edges while a session runs."],workspace:["Workspace","The Reticle account this machine is signed in to."]};BT="data-reticle-settings-account",ND="data-reticle-settings-account-row",wD="data-reticle-settings-helptext",RD="data-reticle-settings-harness-row",OD="Let Reticle test this app by itself to find defects, from Run Harness or from your coding agent. Off blocks every run. Set here or in your dashboard \u2014 both write to the same place.",ID="The Harness is not available to this workspace right now: see Plan in your Reticle dashboard.";qZ=`Whether this machine is signed in to a Reticle workspace. Press ${fe.SIGNED_OUT} to sign in through your browser.`;ig={EMAIL:"Email the founder",EMAIL_TITLE:`Write to ${PO}: a problem, a wish, anything`,CALL:"Book a call",CALL_TITLE:"Pick a time to talk it through"},zT="data-reticle-settings-kill",sg={LABEL:"Kill Reticle",ARMED:"Click again to kill Reticle",WARNING:"Disconnects Reticle from this page: no HUD, no agent, nothing recorded. To bring it back, restart your dev server or reload the page."},$D="data-reticle-sdk-version",DT={UNKNOWN:"Reticle SDK version unknown",KNOWN:e=>`Reticle SDK ${e}`};lp=class{constructor(t={}){x(this,Ce);x(this,bn);x(this,Gt);x(this,br);x(this,_o);g(this,_o,t),Bt=FT()}contains(t){var n;return((n=c(this,Gt))==null?void 0:n.contains(t))===!0}mount(t){var i,s,a,l,u,d,f;g(this,bn,t);let n=t.querySelector(`[${D}]`);g(this,Gt,n instanceof HTMLElement?n:void 0),(i=c(this,Gt))==null||i.addEventListener("pointerdown",m=>{m.stopPropagation()});let r=t.querySelector(`[${qd}]`);g(this,br,r instanceof HTMLElement?r:void 0);let o=t.querySelector(`[${ST}]`);if(o instanceof HTMLElement&&pT(o,se.REMOVE,xe.MIN),c(this,br)!==void 0){let m=c(this,br).querySelector(".reticle-nav-label");pT(c(this,br),se.GEAR,xe.TOOLBAR),m!==null&&c(this,br).append(m),c(this,br).addEventListener("click",h=>{h.stopPropagation(),this.open()})}(s=t.querySelector('[data-reticle-settings-cycle="outputDetail"]'))==null||s.addEventListener("click",m=>{m.stopPropagation();let h=cp.findIndex(_=>_.value===Bt.outputDetail),E=cp[(h+1)%cp.length];E!==void 0&&T(this,Ce,Er).call(this,{outputDetail:E.value})});for(let m of t.querySelectorAll(".reticle-settings-help"))m.setAttribute("aria-expanded","false"),m.addEventListener("click",h=>{var v;h.stopPropagation();let E=m.closest(".reticle-settings-row");if(E===null)return;let _=E.querySelector(`[${wD}]`);if(_!==null){_.remove(),m.setAttribute("aria-expanded","false");return}let A=document.createElement("p");A.className="reticle-settings-helptext",A.setAttribute(wD,""),A.textContent=(v=m.getAttribute("title"))!=null?v:"",E.appendChild(A),m.setAttribute("aria-expanded","true")});for(let m of t.querySelectorAll(`[${ol}]`)){let h=()=>{var _,A,v,N;if(!(m instanceof HTMLElement))return;let E=m.getAttribute(ol);if(E==="harnessEnabled"){if(m.getAttribute("aria-disabled")==="true")return;let O=m.getAttribute("aria-checked")!=="true";m.setAttribute("aria-checked",O?"true":"false"),(A=(_=c(this,_o)).onHarness)==null||A.call(_,O)}else if(E==="reactComponents")T(this,Ce,Er).call(this,{reactComponents:!Bt.reactComponents});else if(E==="hideUntilRestart"){let O=!Bt.hideUntilRestart;T(this,Ce,Er).call(this,{hideUntilRestart:O}),O&&((N=(v=c(this,_o)).onHideUntilRestart)==null||N.call(v))}else E==="showTally"?T(this,Ce,Er).call(this,{showTally:!Bt.showTally}):E==="autoOpenChat"?T(this,Ce,Er).call(this,{autoOpenChat:!Bt.autoOpenChat}):E==="showTimestamps"?T(this,Ce,Er).call(this,{showTimestamps:!Bt.showTimestamps}):E==="reduceMotion"?T(this,Ce,Er).call(this,{reduceMotion:!Bt.reduceMotion}):E==="ambientGlow"&&T(this,Ce,Er).call(this,{ambientGlow:!Bt.ambientGlow})};m.addEventListener("click",E=>{E.stopPropagation(),h()}),m.addEventListener("keydown",E=>{E instanceof KeyboardEvent&&(E.key===" "||E.key==="Enter")&&(E.preventDefault(),E.stopPropagation(),h())})}for(let m of t.querySelectorAll("[data-reticle-check]")){let h=()=>{if(!(m instanceof HTMLElement))return;let _=m.getAttribute("data-reticle-check");_==="clearOnCopy"?T(this,Ce,Er).call(this,{clearOnCopy:!Bt.clearOnCopy}):_==="blockPageInteractions"&&T(this,Ce,Er).call(this,{blockPageInteractions:!Bt.blockPageInteractions})},E=m.closest("[data-reticle-check-row]");E==null||E.addEventListener("click",_=>{_.stopPropagation(),!(_.target instanceof HTMLElement&&_.target.classList.contains("reticle-settings-help"))&&h()}),m.addEventListener("keydown",_=>{_ instanceof KeyboardEvent&&(_.key===" "||_.key==="Enter")&&(_.preventDefault(),h())})}(a=t.querySelector("[data-reticle-settings-mcp]"))==null||a.addEventListener("click",m=>{m.stopPropagation(),window.open(V1,"_blank","noopener,noreferrer")}),(l=t.querySelector("[data-reticle-settings-reset]"))==null||l.addEventListener("click",m=>{m.stopPropagation();let h=t.querySelector(`[${F}]`);h instanceof HTMLElement&&ep(h)}),(u=t.querySelector(`[${zT}]`))==null||u.addEventListener("click",m=>{var _,A;m.stopPropagation();let h=m.currentTarget;if(!(h instanceof HTMLElement))return;if(h.getAttribute("data-armed")==="1"){(A=(_=c(this,_o)).onKill)==null||A.call(_);return}h.setAttribute("data-armed","1");let E=h.querySelector("[data-reticle-kill-label]");E!==null&&(E.textContent=sg.ARMED)}),o==null||o.addEventListener("click",m=>{m.stopPropagation(),this.close()}),T(this,Ce,kD).call(this),T(this,Ce,MT).call(this),vD(t,Bt),(f=(d=c(this,_o)).onSettingsChange)==null||f.call(d,Bt)}paintHarness(t){let n=c(this,Gt);n!==void 0&&LD(n,t)}teardown(){g(this,bn,void 0),g(this,Gt,void 0),g(this,br,void 0)}isOpen(){var t;return((t=c(this,bn))==null?void 0:t.getAttribute(pt))==="1"}open(){var t,n,r,o;c(this,bn)!==void 0&&((n=(t=c(this,_o)).onBeforeOpen)==null||n.call(t),c(this,bn).setAttribute(pt,"1"),(r=c(this,Gt))==null||r.setAttribute("aria-hidden","false"),(o=c(this,br))==null||o.setAttribute("data-active","1"),T(this,Ce,PT).call(this))}close(){var n,r,o;if(c(this,bn)===void 0)return;let t=(n=c(this,Gt))==null?void 0:n.querySelector(`[${zT}]`);if(t instanceof HTMLElement){t.removeAttribute("data-armed");let i=t.querySelector("[data-reticle-kill-label]");i!==null&&(i.textContent=sg.LABEL)}c(this,bn).setAttribute(pt,"0"),(r=c(this,Gt))==null||r.setAttribute("aria-hidden","true"),(o=c(this,br))==null||o.setAttribute("data-active","0"),T(this,Ce,PT).call(this)}toggle(){this.isOpen()?this.close():this.open()}};bn=new WeakMap,Gt=new WeakMap,br=new WeakMap,_o=new WeakMap,Ce=new WeakSet,PT=function(){if(c(this,bn)===void 0)return;let t=iD(c(this,bn));t!==void 0&&Br(t,c(this,bn))},Er=function(t){var r,o;let n=YZ(t);c(this,bn)!==void 0&&vD(c(this,bn),n),T(this,Ce,MT).call(this),(o=(r=c(this,_o)).onSettingsChange)==null||o.call(r,n)},MT=function(){var o,i,s,a,l,u;let t=Bt,n=(o=c(this,Gt))==null?void 0:o.querySelector("[data-reticle-cycle-label]");n!=null&&(n.textContent=(s=(i=cp.find(d=>d.value===t.outputDetail))==null?void 0:i.label)!=null?s:"Standard");let r=(a=c(this,Gt))==null?void 0:a.querySelector("[data-reticle-cycle-dots]");r!=null&&r.replaceChildren(...cp.map(d=>{let f=document.createElement("span");return f.className="reticle-settings-dot",f.setAttribute("data-on",d.value===t.outputDetail?"1":"0"),f})),T(this,Ce,cs).call(this,"reactComponents",t.reactComponents),T(this,Ce,cs).call(this,"hideUntilRestart",t.hideUntilRestart),T(this,Ce,cs).call(this,"showTally",t.showTally),T(this,Ce,cs).call(this,"autoOpenChat",t.autoOpenChat),T(this,Ce,cs).call(this,"showTimestamps",t.showTimestamps),T(this,Ce,cs).call(this,"reduceMotion",t.reduceMotion),T(this,Ce,cs).call(this,"ambientGlow",t.ambientGlow),T(this,Ce,UT).call(this,"clearOnCopy",t.clearOnCopy),T(this,Ce,UT).call(this,"blockPageInteractions",t.blockPageInteractions);for(let d of(u=(l=c(this,Gt))==null?void 0:l.querySelectorAll("[data-reticle-theme]"))!=null?u:[])d instanceof HTMLElement&&d.setAttribute("data-on",d.getAttribute("data-reticle-theme")===t.statusThemeId?"1":"0")},cs=function(t,n){var o;let r=(o=c(this,Gt))==null?void 0:o.querySelector(`[${ol}="${t}"]`);r instanceof HTMLElement&&(r.setAttribute("data-on",n?"1":"0"),r.setAttribute("aria-checked",n?"true":"false"))},UT=function(t,n){var o;let r=(o=c(this,Gt))==null?void 0:o.querySelector(`[data-reticle-check="${t}"]`);r instanceof HTMLElement&&(r.setAttribute("data-on",n?"1":"0"),r.setAttribute("aria-checked",n?"true":"false"),r.textContent=n?"\u2713":"")},kD=function(){var n;let t=(n=c(this,Gt))==null?void 0:n.querySelector("[data-reticle-settings-themes]");t!=null&&t.replaceChildren(...HT.map(r=>{let o=document.createElement("button");o.type="button",o.className="reticle-settings-theme",o.setAttribute("data-reticle-theme",r.id),o.title=r.label,o.setAttribute("aria-label",`${r.label} status theme`);for(let s of[r.active,r.idle,r.ended]){let a=document.createElement("span");a.className="reticle-settings-theme-band",a.style.background=s,o.appendChild(a)}let i=document.createElement("span");return i.className="reticle-settings-theme-name",i.textContent=r.label,o.appendChild(i),o.addEventListener("click",s=>{s.stopPropagation(),T(this,Ce,Er).call(this,{statusThemeId:r.id})}),o}))}});function r9(){let e=globalThis[Xf];return typeof e=="string"&&e.length>0?e:void 0}function o9(e){let n=e.replace(/\\/g,"/").replace(/\/+$/,"").split("/").filter(o=>o.length>0),r=n[n.length-1];return r!==void 0&&r.length>0?r:XT}function i9(){if(typeof window=="undefined")return;let e=new URLSearchParams(window.location.search).get(rr.PROJECT);return e!==null&&e.length>0?e:void 0}function BD(){let e=r9(),t=i9(),n=e!==void 0?o9(e):XT;if(e===void 0&&t===void 0)return{folder:n};let r={folder:n};return e!==void 0&&(r.root=e),t!==void 0&&(r.projectId=t),r}function GD(){let e=Ie(se.LAYOUT,xe.HELP),t=Ie(se.CARET_DOWN,xe.HELP),n=Ie(se.COPY,xe.HELP);return`<div class="reticle-workspace-wrap">
435
- <button type="button" class="reticle-workspace" ${cg} aria-haspopup="true" aria-expanded="false" title="${e9}">
434
+ </div>`}function P1(e,t){let n=dp(t.statusThemeId);e.style.setProperty("--reticle-mark-accent",n.active),e.style.setProperty("--reticle-accent",n.active),e.style.setProperty("--reticle-c-active",n.active),e.style.setProperty("--reticle-c-idle",n.idle),e.style.setProperty("--reticle-c-ended",n.ended),e.setAttribute(QD,t.ambientGlow?"1":"0"),t.hideUntilRestart?e.setAttribute(al,"1"):e.removeAttribute(al),e.setAttribute(Wm,t.showTimestamps?"1":"0"),e.setAttribute(To,t.reduceMotion?"1":"0");let r=e.querySelector("[data-reticle-tally]");r instanceof HTMLElement&&!t.showTally&&r.setAttribute("hidden","")}function lg(e,t,n){e.setAttribute(e1,t.blockPageInteractions&&n?"1":"0")}function qT(){return'<div data-reticle-blocker aria-hidden="true"></div>'}var Kr,ma,jT,p9,lp,br,Ft,ml,ZT,M1,D1,U1,H1,F1,b9,ag,HT,cg,V1,FT,bn,Bt,Sr,Ao,Ce,BT,_r,GT,us,VT,j1,up,gl=y(()=>{"use strict";Ct();Hr();Vr();IT();op();CT();pl();M();xo();Kr={MINIMAL:"minimal",STANDARD:"standard",VERBOSE:"verbose"},ma={SIGNAL:"signal",TRAFFIC:"traffic",MONO:"mono",NEON:"neon",EMBER:"ember"},jT=[{id:ma.SIGNAL,label:"Signal",active:"#3b82f6",idle:"#eab308",ended:"#ef4444"},{id:ma.TRAFFIC,label:"Traffic",active:"#22c55e",idle:"#eab308",ended:"#ef4444"},{id:ma.MONO,label:"Mono",active:"#fafafa",idle:"#a3a3a3",ended:"#525252"},{id:ma.NEON,label:"Neon",active:"#06b6d4",idle:"#a855f7",ended:"#f43f5e"},{id:ma.EMBER,label:"Ember",active:"#f97316",idle:"#facc15",ended:"#7f1d1d"}],p9={id:ma.SIGNAL,label:"Signal",active:"#3b82f6",idle:"#eab308",ended:"#ef4444"};lp=[{value:Kr.MINIMAL,label:"Minimal"},{value:Kr.STANDARD,label:"Standard"},{value:Kr.VERBOSE,label:"Verbose"}],br={outputDetail:Kr.STANDARD,statusThemeId:ma.SIGNAL,ambientGlow:!0,reactComponents:!1,hideUntilRestart:!1,clearOnCopy:!1,blockPageInteractions:!0,showTally:!1,showTimestamps:!0,autoOpenChat:!0,reduceMotion:!1},Ft=KT();ml={outputDetail:["Output detail","How much a copied run includes."],autoOpenChat:["Open the log automatically","Opens this panel when an agent starts to act in this tab."],showTimestamps:["Show timestamps","Shows how long ago each log row happened."],showTally:["Show pass/fail count","A score pill for this session in the toolbar."],reactComponents:["React component names","Adds component names to copied runs."],blockPageInteractions:["Block page while adding notes","Clicks pin a note instead of using the app."],clearOnCopy:["Clear notes after copying","Starts fresh once your notes are copied."],hideUntilRestart:["Hide until reload","Hides the HUD until this page reloads."],harnessEnabled:["Allow Reticle to drive","Off by default. Lets Run Harness test this project."],reduceMotion:["Reduce motion","Fewer HUD animations."],ambientGlow:["Page glow","Tints the page edges while a session runs."],workspace:["Workspace","The Reticle account this machine is signed in to."]};ZT="data-reticle-settings-account",M1="data-reticle-settings-account-row",D1="data-reticle-settings-helptext",U1="data-reticle-settings-harness-row",H1="Let Reticle test this app by itself to find defects, from Run Harness or from your coding agent. Off blocks every run. Set here or in your dashboard \u2014 both write to the same place.",F1="The Harness is not available to this workspace right now: see Plan in your Reticle dashboard.";b9=`Whether this machine is signed in to a Reticle workspace. Press ${fe.SIGNED_OUT} to sign in through your browser.`;ag={EMAIL:"Email the founder",EMAIL_TITLE:`Write to ${jO}: a problem, a wish, anything`,CALL:"Book a call",CALL_TITLE:"Pick a time to talk it through"},HT="data-reticle-settings-kill",cg={LABEL:"Kill Reticle",ARMED:"Click again to kill Reticle",WARNING:"Disconnects Reticle from this page: no HUD, no agent, nothing recorded. To bring it back, restart your dev server or reload the page."},V1="data-reticle-sdk-version",FT={UNKNOWN:"Reticle SDK version unknown",KNOWN:e=>`Reticle SDK ${e}`};up=class{constructor(t={}){x(this,Ce);x(this,bn);x(this,Bt);x(this,Sr);x(this,Ao);g(this,Ao,t),Ft=KT()}contains(t){var n;return((n=c(this,Bt))==null?void 0:n.contains(t))===!0}mount(t){var i,s,a,l,u,d,f;g(this,bn,t);let n=t.querySelector(`[${P}]`);g(this,Bt,n instanceof HTMLElement?n:void 0),(i=c(this,Bt))==null||i.addEventListener("pointerdown",m=>{m.stopPropagation()});let r=t.querySelector(`[${Jd}]`);g(this,Sr,r instanceof HTMLElement?r:void 0);let o=t.querySelector(`[${wT}]`);if(o instanceof HTMLElement&&ET(o,se.REMOVE,Ae.MIN),c(this,Sr)!==void 0){let m=c(this,Sr).querySelector(".reticle-nav-label");ET(c(this,Sr),se.GEAR,Ae.TOOLBAR),m!==null&&c(this,Sr).append(m),c(this,Sr).addEventListener("click",h=>{h.stopPropagation(),this.open()})}(s=t.querySelector('[data-reticle-settings-cycle="outputDetail"]'))==null||s.addEventListener("click",m=>{m.stopPropagation();let h=lp.findIndex(_=>_.value===Ft.outputDetail),E=lp[(h+1)%lp.length];E!==void 0&&T(this,Ce,_r).call(this,{outputDetail:E.value})});for(let m of t.querySelectorAll(".reticle-settings-help"))m.setAttribute("aria-expanded","false"),m.addEventListener("click",h=>{var v;h.stopPropagation();let E=m.closest(".reticle-settings-row");if(E===null)return;let _=E.querySelector(`[${D1}]`);if(_!==null){_.remove(),m.setAttribute("aria-expanded","false");return}let A=document.createElement("p");A.className="reticle-settings-helptext",A.setAttribute(D1,""),A.textContent=(v=m.getAttribute("title"))!=null?v:"",E.appendChild(A),m.setAttribute("aria-expanded","true")});for(let m of t.querySelectorAll(`[${sl}]`)){let h=()=>{var _,A,v,N;if(!(m instanceof HTMLElement))return;let E=m.getAttribute(sl);if(E==="harnessEnabled"){if(m.getAttribute("aria-disabled")==="true")return;let O=m.getAttribute("aria-checked")!=="true";m.setAttribute("aria-checked",O?"true":"false"),(A=(_=c(this,Ao)).onHarness)==null||A.call(_,O)}else if(E==="reactComponents")T(this,Ce,_r).call(this,{reactComponents:!Ft.reactComponents});else if(E==="hideUntilRestart"){let O=!Ft.hideUntilRestart;T(this,Ce,_r).call(this,{hideUntilRestart:O}),O&&((N=(v=c(this,Ao)).onHideUntilRestart)==null||N.call(v))}else E==="showTally"?T(this,Ce,_r).call(this,{showTally:!Ft.showTally}):E==="autoOpenChat"?T(this,Ce,_r).call(this,{autoOpenChat:!Ft.autoOpenChat}):E==="showTimestamps"?T(this,Ce,_r).call(this,{showTimestamps:!Ft.showTimestamps}):E==="reduceMotion"?T(this,Ce,_r).call(this,{reduceMotion:!Ft.reduceMotion}):E==="ambientGlow"&&T(this,Ce,_r).call(this,{ambientGlow:!Ft.ambientGlow})};m.addEventListener("click",E=>{E.stopPropagation(),h()}),m.addEventListener("keydown",E=>{E instanceof KeyboardEvent&&(E.key===" "||E.key==="Enter")&&(E.preventDefault(),E.stopPropagation(),h())})}for(let m of t.querySelectorAll("[data-reticle-check]")){let h=()=>{if(!(m instanceof HTMLElement))return;let _=m.getAttribute("data-reticle-check");_==="clearOnCopy"?T(this,Ce,_r).call(this,{clearOnCopy:!Ft.clearOnCopy}):_==="blockPageInteractions"&&T(this,Ce,_r).call(this,{blockPageInteractions:!Ft.blockPageInteractions})},E=m.closest("[data-reticle-check-row]");E==null||E.addEventListener("click",_=>{_.stopPropagation(),!(_.target instanceof HTMLElement&&_.target.classList.contains("reticle-settings-help"))&&h()}),m.addEventListener("keydown",_=>{_ instanceof KeyboardEvent&&(_.key===" "||_.key==="Enter")&&(_.preventDefault(),h())})}(a=t.querySelector("[data-reticle-settings-mcp]"))==null||a.addEventListener("click",m=>{m.stopPropagation(),window.open(t1,"_blank","noopener,noreferrer")}),(l=t.querySelector("[data-reticle-settings-reset]"))==null||l.addEventListener("click",m=>{m.stopPropagation();let h=t.querySelector(`[${F}]`);h instanceof HTMLElement&&tp(h)}),(u=t.querySelector(`[${HT}]`))==null||u.addEventListener("click",m=>{var _,A;m.stopPropagation();let h=m.currentTarget;if(!(h instanceof HTMLElement))return;if(h.getAttribute("data-armed")==="1"){(A=(_=c(this,Ao)).onKill)==null||A.call(_);return}h.setAttribute("data-armed","1");let E=h.querySelector("[data-reticle-kill-label]");E!==null&&(E.textContent=cg.ARMED)}),o==null||o.addEventListener("click",m=>{m.stopPropagation(),this.close()}),T(this,Ce,j1).call(this),T(this,Ce,GT).call(this),P1(t,Ft),(f=(d=c(this,Ao)).onSettingsChange)==null||f.call(d,Ft)}paintHarness(t){let n=c(this,Bt);n!==void 0&&G1(n,t)}teardown(){g(this,bn,void 0),g(this,Bt,void 0),g(this,Sr,void 0)}isOpen(){var t;return((t=c(this,bn))==null?void 0:t.getAttribute(ft))==="1"}open(){var t,n,r,o;c(this,bn)!==void 0&&((n=(t=c(this,Ao)).onBeforeOpen)==null||n.call(t),c(this,bn).setAttribute(ft,"1"),(r=c(this,Bt))==null||r.setAttribute("aria-hidden","false"),(o=c(this,Sr))==null||o.setAttribute("data-active","1"),T(this,Ce,BT).call(this))}close(){var n,r,o;if(c(this,bn)===void 0)return;let t=(n=c(this,Bt))==null?void 0:n.querySelector(`[${HT}]`);if(t instanceof HTMLElement){t.removeAttribute("data-armed");let i=t.querySelector("[data-reticle-kill-label]");i!==null&&(i.textContent=cg.LABEL)}c(this,bn).setAttribute(ft,"0"),(r=c(this,Bt))==null||r.setAttribute("aria-hidden","true"),(o=c(this,Sr))==null||o.setAttribute("data-active","0"),T(this,Ce,BT).call(this)}toggle(){this.isOpen()?this.close():this.open()}};bn=new WeakMap,Bt=new WeakMap,Sr=new WeakMap,Ao=new WeakMap,Ce=new WeakSet,BT=function(){if(c(this,bn)===void 0)return;let t=g1(c(this,bn));t!==void 0&&jr(t,c(this,bn))},_r=function(t){var r,o;let n=g9(t);c(this,bn)!==void 0&&P1(c(this,bn),n),T(this,Ce,GT).call(this),(o=(r=c(this,Ao)).onSettingsChange)==null||o.call(r,n)},GT=function(){var o,i,s,a,l,u;let t=Ft,n=(o=c(this,Bt))==null?void 0:o.querySelector("[data-reticle-cycle-label]");n!=null&&(n.textContent=(s=(i=lp.find(d=>d.value===t.outputDetail))==null?void 0:i.label)!=null?s:"Standard");let r=(a=c(this,Bt))==null?void 0:a.querySelector("[data-reticle-cycle-dots]");r!=null&&r.replaceChildren(...lp.map(d=>{let f=document.createElement("span");return f.className="reticle-settings-dot",f.setAttribute("data-on",d.value===t.outputDetail?"1":"0"),f})),T(this,Ce,us).call(this,"reactComponents",t.reactComponents),T(this,Ce,us).call(this,"hideUntilRestart",t.hideUntilRestart),T(this,Ce,us).call(this,"showTally",t.showTally),T(this,Ce,us).call(this,"autoOpenChat",t.autoOpenChat),T(this,Ce,us).call(this,"showTimestamps",t.showTimestamps),T(this,Ce,us).call(this,"reduceMotion",t.reduceMotion),T(this,Ce,us).call(this,"ambientGlow",t.ambientGlow),T(this,Ce,VT).call(this,"clearOnCopy",t.clearOnCopy),T(this,Ce,VT).call(this,"blockPageInteractions",t.blockPageInteractions);for(let d of(u=(l=c(this,Bt))==null?void 0:l.querySelectorAll("[data-reticle-theme]"))!=null?u:[])d instanceof HTMLElement&&d.setAttribute("data-on",d.getAttribute("data-reticle-theme")===t.statusThemeId?"1":"0")},us=function(t,n){var o;let r=(o=c(this,Bt))==null?void 0:o.querySelector(`[${sl}="${t}"]`);r instanceof HTMLElement&&(r.setAttribute("data-on",n?"1":"0"),r.setAttribute("aria-checked",n?"true":"false"))},VT=function(t,n){var o;let r=(o=c(this,Bt))==null?void 0:o.querySelector(`[data-reticle-check="${t}"]`);r instanceof HTMLElement&&(r.setAttribute("data-on",n?"1":"0"),r.setAttribute("aria-checked",n?"true":"false"),r.textContent=n?"\u2713":"")},j1=function(){var n;let t=(n=c(this,Bt))==null?void 0:n.querySelector("[data-reticle-settings-themes]");t!=null&&t.replaceChildren(...jT.map(r=>{let o=document.createElement("button");o.type="button",o.className="reticle-settings-theme",o.setAttribute("data-reticle-theme",r.id),o.title=r.label,o.setAttribute("aria-label",`${r.label} status theme`);for(let s of[r.active,r.idle,r.ended]){let a=document.createElement("span");a.className="reticle-settings-theme-band",a.style.background=s,o.appendChild(a)}let i=document.createElement("span");return i.className="reticle-settings-theme-name",i.textContent=r.label,o.appendChild(i),o.addEventListener("click",s=>{s.stopPropagation(),T(this,Ce,_r).call(this,{statusThemeId:r.id})}),o}))}});function y9(){let e=globalThis[qf];return typeof e=="string"&&e.length>0?e:void 0}function w9(e){let n=e.replace(/\\/g,"/").replace(/\/+$/,"").split("/").filter(o=>o.length>0),r=n[n.length-1];return r!==void 0&&r.length>0?r:tx}function v9(){if(typeof window=="undefined")return;let e=new URLSearchParams(window.location.search).get(rr.PROJECT);return e!==null&&e.length>0?e:void 0}function Q1(){let e=y9(),t=v9(),n=e!==void 0?w9(e):tx;if(e===void 0&&t===void 0)return{folder:n};let r={folder:n};return e!==void 0&&(r.root=e),t!==void 0&&(r.projectId=t),r}function eP(){let e=Ie(se.LAYOUT,Ae.HELP),t=Ie(se.CARET_DOWN,Ae.HELP),n=Ie(se.COPY,Ae.HELP);return`<div class="reticle-workspace-wrap">
435
+ <button type="button" class="reticle-workspace" ${ug} aria-haspopup="true" aria-expanded="false" title="${T9}">
436
436
  <span class="reticle-workspace-icon" aria-hidden="true">${e}</span>
437
- <span class="reticle-workspace-k">${QZ}</span>
438
- <span class="reticle-workspace-name" ${UD}>${XT}</span>
437
+ <span class="reticle-workspace-k">${S9}</span>
438
+ <span class="reticle-workspace-name" ${X1}>${tx}</span>
439
439
  <span class="reticle-workspace-caret" aria-hidden="true">${t}</span>
440
440
  </button>
441
- <div class="reticle-workspace-menu" ${MD} role="region" aria-label="${ZT}" aria-hidden="true" hidden>
441
+ <div class="reticle-workspace-menu" ${Y1} role="region" aria-label="${JT}" aria-hidden="true" hidden>
442
442
  <div class="reticle-workspace-menu-head">
443
- <div class="reticle-workspace-menu-title">${ZT}</div>
443
+ <div class="reticle-workspace-menu-title">${JT}</div>
444
444
  <div class="reticle-workspace-menu-actions">
445
- <button type="button" class="reticle-workspace-copy" ${WT} title="${DD}" aria-label="${DD}">${n}</button>
445
+ <button type="button" class="reticle-workspace-copy" ${QT} title="${Z1}" aria-label="${Z1}">${n}</button>
446
446
  </div>
447
447
  </div>
448
448
  <div class="reticle-workspace-menu-row"><span class="reticle-workspace-menu-k">Folder</span><span class="reticle-workspace-menu-v" data-reticle-workspace-folder></span></div>
449
- <div class="reticle-workspace-menu-row"><span class="reticle-workspace-menu-k">Path</span><span class="reticle-workspace-menu-v reticle-workspace-menu-path" ${HD}></span></div>
450
- <div class="reticle-workspace-menu-row" data-reticle-workspace-project-row hidden><span class="reticle-workspace-menu-k">${t9}</span><span class="reticle-workspace-menu-v" ${FD}></span></div>
449
+ <div class="reticle-workspace-menu-row"><span class="reticle-workspace-menu-k">Path</span><span class="reticle-workspace-menu-v reticle-workspace-menu-path" ${q1}></span></div>
450
+ <div class="reticle-workspace-menu-row" data-reticle-workspace-project-row hidden><span class="reticle-workspace-menu-k">${x9}</span><span class="reticle-workspace-menu-v" ${J1}></span></div>
451
451
  </div>
452
- </div>`}function PD(e){var d,f;let t=BD(),n=e.querySelector(".reticle-workspace-wrap");if(n instanceof HTMLElement){let m=t.root!==void 0||t.projectId!==void 0;n.toggleAttribute("hidden",!m)}let r=e.querySelector(`[${cg}] [${UD}]`);r instanceof HTMLElement&&(r.textContent=t.folder);let o=e.querySelector("[data-reticle-workspace-folder]");o instanceof HTMLElement&&(o.textContent=t.folder);let i=e.querySelector(`[${HD}]`);i instanceof HTMLElement&&(i.textContent=(d=t.root)!=null?d:"-",i.title=(f=t.root)!=null?f:"");let s=e.querySelector(`[${FD}]`),a=e.querySelector("[data-reticle-workspace-project-row]"),l=e.querySelector(`[${WT}]`);t.projectId!==void 0?(a==null||a.removeAttribute("hidden"),s instanceof HTMLElement&&(s.textContent=t.projectId)):(a==null||a.setAttribute("hidden",""),s instanceof HTMLElement&&(s.textContent="")),l instanceof HTMLButtonElement&&(l.disabled=t.root===void 0);let u=e.querySelector(`[${cg}]`);u instanceof HTMLElement&&t.root!==void 0&&(u.title=`${ZT}: ${t.root}`)}function VD(e){let t=new AbortController;PD(e);let n=e.querySelector(`[${cg}]`),r=e.querySelector(`[${MD}]`),o=e.querySelector(`[${WT}]`);if(!(n instanceof HTMLElement)||!(r instanceof HTMLElement))return()=>{};let i=()=>{r.setAttribute("aria-hidden","true"),r.setAttribute("hidden",""),n.setAttribute("aria-expanded","false")},s=()=>{PD(e),r.removeAttribute("hidden"),r.setAttribute("aria-hidden","false"),n.setAttribute("aria-expanded","true")},a=()=>{r.getAttribute("aria-hidden")==="true"||r.hasAttribute("hidden")?s():i()},l=h=>{h.stopPropagation(),a()},u=h=>{var v;let E=h.target;if(!(E instanceof Element))return;let _=E.closest(`[${Xt}]`);if(_===null)return;h.stopPropagation(),(v=navigator.clipboard)==null||v.writeText(fe.SIGNIN_COMMAND).catch(()=>{});let A=_.textContent;_.textContent=fe.COPIED,setTimeout(()=>{_.textContent=A},JZ)};r.addEventListener("click",u);let d=h=>{let E=h.target;E instanceof Node&&(n.contains(E)||r.contains(E)||i())},f=h=>{h.key==="Escape"&&(r.getAttribute("aria-hidden")==="true"||r.hasAttribute("hidden")||(h.preventDefault(),h.stopPropagation(),i()))},m=h=>{var _;h.stopPropagation();let E=BD().root;if(E!==void 0&&((_=navigator.clipboard)==null||_.writeText(E),o instanceof HTMLButtonElement)){let A=o.title;o.title=n9,window.setTimeout(()=>{o.title=A},1200)}};return n.addEventListener("click",l),r.addEventListener("pointerdown",h=>h.stopPropagation()),o==null||o.addEventListener("click",m),document.addEventListener("pointerdown",d,{signal:t.signal}),document.addEventListener("keydown",f,{signal:t.signal}),()=>{n.removeEventListener("click",l),o==null||o.removeEventListener("click",m),t.abort()}}function jD(e,t,n,r={}){let o=e.querySelector(`[${dl}]`);o instanceof HTMLElement&&ap(o,xD(t,n));let i=e.querySelector(`[${YT}]`);if(!(i instanceof HTMLElement))return;let s=!(o instanceof HTMLElement);ap(i,pl(t,{...r,dashboardUrl:n},s))}var cg,MD,UD,HD,FD,WT,YT,JZ,ZT,QZ,e9,t9,DD,n9,XT,qT=y(()=>{"use strict";M();Pr();bo();cg="data-reticle-workspace-btn",MD="data-reticle-workspace-menu",UD="data-reticle-workspace-name",HD="data-reticle-workspace-path",FD="data-reticle-workspace-project",WT="data-reticle-workspace-copy",YT="data-reticle-toolbar-account",JZ=1200,ZT="Workspace",QZ="Project",e9="The project folder this page is served from, which Reticle reports to. Click for its path.",t9="Project",DD="Copy path",n9="Copied",XT="This page"});function WD(e){return typeof e=="string"&&s9.has(e)?e:An.PENDING}function dp(e){return typeof e=="string"?e:""}function QT(e){return Array.isArray(e)?e.filter(t=>typeof t=="object"&&t!==null):[]}function JD(e){let t=QT(e.lanes).map(r=>({id:dp(r.id),journeys:QT(r.journeys).map(o=>({id:dp(o.id),title:dp(o.title),...typeof o.persona=="string"?{persona:o.persona}:{},waitsOn:Array.isArray(o.waitsOn)?o.waitsOn.map(dp):[],status:WD(o.status),steps:QT(o.steps).map(i=>({label:dp(i.label),status:WD(i.status)}))}))}));return t.length===0?void 0:{parallel:typeof e.parallel=="number"?e.parallel:1,lanes:t}}function Vt(e,t,n){let r=document.createElement(e);return r.className=t,n!==void 0&&(r.textContent=n),r}var YD,KD,JT,XD,ml,ZD,qD,s9,gl,fp,ma,El,pi,pp,QD,lg,ug=y(()=>{"use strict";M();YD="data-reticle-plan",KD="data-reticle-plan-close",JT="data-reticle-plan-journey",XD=`<div ${YD} class="reticle-plan" hidden></div>`,ml={TITLE:"Harness plan",CLOSE:"Hide the plan",WAITS:"waits on",AT_ONCE:"at once",LANE:"Lane"},ZD={[An.PENDING]:"\u25CB",[An.RUNNING]:"\u25D0",[An.PASSED]:"\u2713",[An.FAILED]:"\u2717",[An.BLOCKED]:"\u2298",[An.NOT_TAKEN]:"\u2013",[An.UNDECIDED]:"?"},qD=`
452
+ </div>`}function W1(e){var d,f;let t=Q1(),n=e.querySelector(".reticle-workspace-wrap");if(n instanceof HTMLElement){let m=t.root!==void 0||t.projectId!==void 0;n.toggleAttribute("hidden",!m)}let r=e.querySelector(`[${ug}] [${X1}]`);r instanceof HTMLElement&&(r.textContent=t.folder);let o=e.querySelector("[data-reticle-workspace-folder]");o instanceof HTMLElement&&(o.textContent=t.folder);let i=e.querySelector(`[${q1}]`);i instanceof HTMLElement&&(i.textContent=(d=t.root)!=null?d:"-",i.title=(f=t.root)!=null?f:"");let s=e.querySelector(`[${J1}]`),a=e.querySelector("[data-reticle-workspace-project-row]"),l=e.querySelector(`[${QT}]`);t.projectId!==void 0?(a==null||a.removeAttribute("hidden"),s instanceof HTMLElement&&(s.textContent=t.projectId)):(a==null||a.setAttribute("hidden",""),s instanceof HTMLElement&&(s.textContent="")),l instanceof HTMLButtonElement&&(l.disabled=t.root===void 0);let u=e.querySelector(`[${ug}]`);u instanceof HTMLElement&&t.root!==void 0&&(u.title=`${JT}: ${t.root}`)}function tP(e){let t=new AbortController;W1(e);let n=e.querySelector(`[${ug}]`),r=e.querySelector(`[${Y1}]`),o=e.querySelector(`[${QT}]`);if(!(n instanceof HTMLElement)||!(r instanceof HTMLElement))return()=>{};let i=()=>{r.setAttribute("aria-hidden","true"),r.setAttribute("hidden",""),n.setAttribute("aria-expanded","false")},s=()=>{W1(e),r.removeAttribute("hidden"),r.setAttribute("aria-hidden","false"),n.setAttribute("aria-expanded","true")},a=()=>{r.getAttribute("aria-hidden")==="true"||r.hasAttribute("hidden")?s():i()},l=h=>{h.stopPropagation(),a()},u=h=>{var v;let E=h.target;if(!(E instanceof Element))return;let _=E.closest(`[${qt}]`);if(_===null)return;h.stopPropagation(),(v=navigator.clipboard)==null||v.writeText(fe.SIGNIN_COMMAND).catch(()=>{});let A=_.textContent;_.textContent=fe.COPIED,setTimeout(()=>{_.textContent=A},_9)};r.addEventListener("click",u);let d=h=>{let E=h.target;E instanceof Node&&(n.contains(E)||r.contains(E)||i())},f=h=>{h.key==="Escape"&&(r.getAttribute("aria-hidden")==="true"||r.hasAttribute("hidden")||(h.preventDefault(),h.stopPropagation(),i()))},m=h=>{var _;h.stopPropagation();let E=Q1().root;if(E!==void 0&&((_=navigator.clipboard)==null||_.writeText(E),o instanceof HTMLButtonElement)){let A=o.title;o.title=A9,window.setTimeout(()=>{o.title=A},1200)}};return n.addEventListener("click",l),r.addEventListener("pointerdown",h=>h.stopPropagation()),o==null||o.addEventListener("click",m),document.addEventListener("pointerdown",d,{signal:t.signal}),document.addEventListener("keydown",f,{signal:t.signal}),()=>{n.removeEventListener("click",l),o==null||o.removeEventListener("click",m),t.abort()}}function nP(e,t,n,r={}){let o=e.querySelector(`[${fl}]`);o instanceof HTMLElement&&cp(o,$1(t,n));let i=e.querySelector(`[${ex}]`);if(!(i instanceof HTMLElement))return;let s=!(o instanceof HTMLElement);cp(i,hl(t,{...r,dashboardUrl:n},s))}var ug,Y1,X1,q1,J1,QT,ex,_9,JT,S9,T9,x9,Z1,A9,tx,nx=y(()=>{"use strict";M();Hr();xo();ug="data-reticle-workspace-btn",Y1="data-reticle-workspace-menu",X1="data-reticle-workspace-name",q1="data-reticle-workspace-path",J1="data-reticle-workspace-project",QT="data-reticle-workspace-copy",ex="data-reticle-toolbar-account",_9=1200,JT="Workspace",S9="Project",T9="The project folder this page is served from, which Reticle reports to. Click for its path.",x9="Project",Z1="Copy path",A9="Copied",tx="This page"});function iP(e){return typeof e=="string"&&N9.has(e)?e:An.PENDING}function pp(e){return typeof e=="string"?e:""}function ox(e){return Array.isArray(e)?e.filter(t=>typeof t=="object"&&t!==null):[]}function lP(e){let t=ox(e.lanes).map(r=>({id:pp(r.id),journeys:ox(r.journeys).map(o=>({id:pp(o.id),title:pp(o.title),...typeof o.persona=="string"?{persona:o.persona}:{},waitsOn:Array.isArray(o.waitsOn)?o.waitsOn.map(pp):[],status:iP(o.status),steps:ox(o.steps).map(i=>({label:pp(i.label),status:iP(i.status)}))}))}));return t.length===0?void 0:{parallel:typeof e.parallel=="number"?e.parallel:1,lanes:t}}function Gt(e,t,n){let r=document.createElement(e);return r.className=t,n!==void 0&&(r.textContent=n),r}var sP,rP,rx,aP,El,oP,cP,N9,bl,hp,ga,_l,mi,fp,uP,dg,pg=y(()=>{"use strict";M();sP="data-reticle-plan",rP="data-reticle-plan-close",rx="data-reticle-plan-journey",aP=`<div ${sP} class="reticle-plan" hidden></div>`,El={TITLE:"Harness plan",CLOSE:"Hide the plan",WAITS:"waits on",AT_ONCE:"at once",LANE:"Lane"},oP={[An.PENDING]:"\u25CB",[An.RUNNING]:"\u25D0",[An.PASSED]:"\u2713",[An.FAILED]:"\u2717",[An.BLOCKED]:"\u2298",[An.NOT_TAKEN]:"\u2013",[An.UNDECIDED]:"?"},cP=`
453
453
  [data-reticle-page-panel="harness"] .reticle-plan{flex:none;margin:0 10px 8px;padding:8px 10px;border:1px solid var(--reticle-hud-border);border-radius:10px;background:rgba(255,255,255,.03);}
454
454
  [data-reticle-page-panel="harness"] .reticle-plan[hidden]{display:none;}
455
455
  [data-reticle-page-panel="harness"] .reticle-plan-head{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:var(--reticle-hud-size-xs);color:var(--reticle-hud-text-muted);}
@@ -474,7 +474,7 @@ ${Oe("pop")} button[data-send]:disabled{opacity:.4;cursor:not-allowed;}
474
474
  [data-reticle-page-panel="harness"] .reticle-plan-steps{margin:4px 0 0 18px;display:flex;flex-direction:column;gap:2px;}
475
475
  [data-reticle-page-panel="harness"] .reticle-plan-step{display:flex;gap:6px;color:var(--reticle-hud-text-muted);font-size:11px;min-width:0;}
476
476
  [data-reticle-page-panel="harness"] .reticle-plan-step span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
477
- `,s9=new Set(Object.values(An));lg=class{constructor(){x(this,pi);x(this,gl);x(this,fp);x(this,ma,!1);x(this,El,new Map)}mount(t){var n,r;g(this,gl,(n=t.querySelector(`[${YD}]`))!=null?n:void 0),(r=c(this,gl))==null||r.addEventListener("click",o=>{let i=o.target;if(!(i instanceof Element))return;if(i.closest(`[${KD}]`)!==null){g(this,ma,!0),T(this,pi,pp).call(this);return}let s=i.closest(`[${JT}]`),a=s==null?void 0:s.getAttribute(JT);a!=null&&(c(this,El).set(a,(s==null?void 0:s.getAttribute("aria-expanded"))!=="true"),T(this,pi,pp).call(this))}),T(this,pi,pp).call(this)}paint(t){t.lanes.every(r=>r.journeys.every(o=>An.PENDING===o.status))&&(g(this,ma,!1),c(this,El).clear()),g(this,fp,t),T(this,pi,pp).call(this)}};gl=new WeakMap,fp=new WeakMap,ma=new WeakMap,El=new WeakMap,pi=new WeakSet,pp=function(){let t=c(this,gl),n=c(this,fp);if(t===void 0||(t.replaceChildren(),t.hidden=n===void 0||c(this,ma),n===void 0||c(this,ma)))return;let r=n.lanes.flatMap(l=>l.journeys),o=r.filter(l=>An.PASSED===l.status).length,i=Vt("div","reticle-plan-head");i.append(Vt("strong","",ml.TITLE),Vt("span","",`${String(o)} of ${String(r.length)} passed \xB7 ${String(n.lanes.length)} lane(s)`+(1<n.parallel?`, ${String(n.parallel)} ${ml.AT_ONCE}`:"")));let s=Vt("button","reticle-plan-close","\xD7");s.setAttribute("type","button"),s.setAttribute(KD,""),s.setAttribute("aria-label",ml.CLOSE),s.setAttribute("title",ml.CLOSE),i.append(s);let a=Vt("div","reticle-plan-lanes");for(let l of n.lanes){let u=Vt("div","reticle-plan-lane"),d=Vt("span","reticle-plan-lane-name",l.id);d.setAttribute("title",`${ml.LANE} ${l.id}`);let f=Vt("div","reticle-plan-lane-journeys");for(let m of l.journeys)f.append(T(this,pi,QD).call(this,l.id,m));u.append(d,f),a.append(u)}t.append(i,a)},QD=function(t,n){var l;let r=`${t}/${n.id}`,o=(l=c(this,El).get(r))!=null?l:An.RUNNING===n.status||An.FAILED===n.status,i=Vt("button","reticle-plan-journey");i.setAttribute("type","button"),i.setAttribute(JT,r),i.setAttribute("data-status",n.status),i.setAttribute("aria-expanded",String(o));let s=Vt("span","reticle-plan-row");s.append(Vt("span","reticle-plan-glyph",ZD[n.status]),Vt("b","",n.title)),i.append(s);let a=[n.persona,0<n.waitsOn.length?`${ml.WAITS} ${n.waitsOn.join(", ")}`:void 0].filter(u=>u!==void 0&&0<u.length);if(0<a.length&&i.append(Vt("span","reticle-plan-meta",a.join(" \xB7 "))),o&&0<n.steps.length){let u=Vt("span","reticle-plan-steps");for(let d of n.steps){let f=Vt("span","reticle-plan-step");f.setAttribute("data-status",d.status),f.append(Vt("span","reticle-plan-glyph",ZD[d.status]),Vt("span","",d.label)),u.append(f)}i.append(u)}return i}});function pg(e){return tx.find(t=>t.id===e)}function eP(e,t){let n=pg(e);if(n!==void 0)return`${n.label}: ${n.hint}`;let r=t.trim();return r.length===0?void 0:r}function nx(e){var t,n;return(n=(t=pg(e))==null?void 0:t.label)!=null?n:ga.CUSTOM_SHORT}function tP(e,t=!1){var o,i;let n=[...tx.map(s=>({id:s.id,label:s.label,hint:s.hint})),{id:ex,label:ga.CUSTOM,hint:ga.CUSTOM_HINT}].map(s=>`<option value="${s.id}" title="${de(s.hint)}"${s.id===e?" selected":""}>${de(s.label)}</option>`).join(""),r=de((i=(o=pg(e))==null?void 0:o.hint)!=null?i:ga.CUSTOM_HINT);return`<label class="reticle-harness-as" for="${bl}">${ga.LABEL}</label><select id="${bl}" data-reticle-harness-persona-pick class="reticle-harness-persona" title="${r}" aria-describedby="${bl}-hint"${t?" disabled":""}>${n}</select><span id="${bl}-hint" class="reticle-sr">${r}</span>`}function rx(e,t=!1){return ex===e?`<input type="text" id="${a9}" data-reticle-harness-persona class="reticle-harness-persona" aria-label="${ga.CUSTOM_HINT}" placeholder="${ga.CUSTOM_PLACEHOLDER}"${t?" disabled":""}>`:""}function ox(e){return e!=null&&(ex===e||pg(e))?e:void 0}function nP(e){var t;try{return(t=ox(localStorage.getItem(`${bh}${e!=null?e:""}`)))!=null?t:dg}catch{return dg}}function rP(e,t){try{localStorage.setItem(`${bh}${e!=null?e:""}`,t)}catch{}}var ex,tx,dg,ga,bl,a9,ix=y(()=>{"use strict";co();fa();ex="custom",tx=[{id:"first-time",label:"First-time visitor",hint:"starts from the first page, reads the labels and follows the obvious path"},{id:"power-user",label:"Returning power user",hint:"goes straight to the main task, takes shortcuts and repeats it quickly"},{id:"phone",label:"On a phone, slow connection",hint:"small-screen habits: taps, waits on loading, retries when nothing seems to happen"},{id:"keyboard",label:"Keyboard only",hint:"Tab, Enter and Escape only: focus order, traps and controls it cannot reach"},{id:"careless",label:"Careless user (bad and unexpected input)",hint:"empty fields, wrong formats, very long text, double submits, going back mid-flow"},{id:"admin",label:"Admin / settings",hint:"changes settings and permissions, then checks they stick after a reload"}],dg=tx[0].id,ga={LABEL:"As",CUSTOM:"Custom\u2026",CUSTOM_SHORT:"Custom",CUSTOM_HINT:"Describe who to be or what to try, in your own words.",CUSTOM_PLACEHOLDER:"e.g. a first-time shopper paying by card"},bl="reticle-harness-persona-pick",a9="reticle-harness-persona"});function sP(e){return e===void 0||is(e)?"":OT(e)}function c9(e,t){if(e.kind===void 0)return Ea(`${fi(Ee.NO_CREDITS)}${_l(t,Ee.MORE)}`);let n=ng(e),r=n.action!==void 0?_l(t,`${n.action} \u2197`):St.TRIAL===e.kind?_l(t,Ee.PLAN):"";return hg(`${fi(n.said)}${r}`)}function l9(e){if(e.starting===!0)return Ee.STARTING;let t=e.config;if(t===void 0)return Ee.FOOT_LINK;if(t.credits!==void 0&&is(t.credits))return Ee.FOOT_NO_CREDITS;if(!t.harnessEntitled)return Ee.FOOT_NOT_ENTITLED;if(t.providerReady===!1)return Ee.FOOT_NO_PROVIDER;let n=t.credits;return n===void 0?"":Ee.creditsLeft(Math.max(0,n.limit-n.used),n.daysLeft)}function u9(e){let t=e.config;return t===void 0||t.credits!==void 0&&is(t.credits)?!1:t.harnessEntitled&&t.providerReady!==!1}function aP(e){var i,s;if(e.account===void 0||!e.account.signedIn)return"";if(e.drive!==void 0&&e.canDrive)return Ea(`<button type="button" ${fg} class="reticle-harness-open"><span class="reticle-harness-name">${Ee.NAME}</span><span class="reticle-harness-state">${de(Ee.driving(e.startedAs===void 0?void 0:nx(e.startedAs),e.drive.steps))}</span><span class="reticle-harness-chev" aria-hidden="true">\u203A</span></button>${iP}`);let t=((i=e.config)==null?void 0:i.harnessEnabled)===!0,n=(s=e.config)==null?void 0:s.credits,r=n===void 0?"":` title="${de(OT(n))}"`,o=u9(e)?`<button type="button" role="switch" ${ax} class="reticle-harness-toggle" aria-checked="${String(t)}" aria-label="${Ee.TOGGLE}"><span class="reticle-harness-knob"></span></button>`:"";return Ea(`<button type="button" ${fg} class="reticle-harness-open"${r}><span class="reticle-harness-name">${Ee.NAME}</span><span class="reticle-harness-state">${de(l9(e))}</span><span class="reticle-harness-chev" aria-hidden="true">\u203A</span></button>${o}`)}function cP(e){if(e.account===void 0)return"";if(!e.account.signedIn)return hg(`${fi(Ee.SIGNED_OUT)}<button type="button" ${Xt} class="reticle-harness-link">${Ee.SIGN_IN}</button>`);if(e.drive!==void 0&&e.canDrive)return oP(fi(Ee.driving(e.startedAs===void 0?void 0:nx(e.startedAs),e.drive.steps)),iP)+rx(e.pick,!0);let t=e.config;if(t===void 0)return hg(`${fi(Ee.UNLINKED)}<button type="button" ${hp} class="reticle-harness-run"${e.linking===!0?" disabled":""}>${e.linking===!0?Ee.LINKING:Ee.LINK}</button>`);if(t.credits!==void 0&&is(t.credits))return c9(t.credits,e.planUrl);if(!t.harnessEntitled)return Ea(`${fi(Ee.NOT_ENTITLED)}${_l(e.planUrl,Ee.PLANS)}`);if(t.providerReady===!1)return Ea(`${fi(Ee.NO_PROVIDER)}${_l(e.setupUrl,Ee.SET_UP)}`);if(!t.harnessEnabled)return Ea(`${fi(Ee.OFF)}<button type="button" ${sx} class="reticle-harness-run">${Ee.TURN_ON}</button>`);if(!e.canDrive)return"";let n=e.starting===!0;return oP(tP(e.pick,n),`<button type="button" data-reticle-harness-run class="reticle-harness-run"${n?" disabled":""}>${n?Ee.STARTING:Ee.RUN}</button>`)+rx(e.pick,n)+(n?"":d9(e.last))}function d9(e){return e===void 0||e.said===void 0&&e.runUrl===void 0?"":hg(`${e.said===void 0?"":fi(de(e.said))}${e.runUrl===void 0?"":_l(e.runUrl,Ee.RESULT)}`)}var Ee,sx,hp,fg,mg,ax,Ea,hg,fi,oP,iP,_l,cx,gg=y(()=>{"use strict";M();ul();fa();bo();ix();Ee={RUN:"Run Harness",STARTING:"Starting\u2026",STOP:"Stop",SIGNED_OUT:hD,SIGN_IN:"Sign in",UNLINKED:"This project is not on your dashboard yet.",LINK:"Link this project",LINKING:"Linking\u2026",NOT_ENTITLED:"Harness is not on your plan",NO_CREDITS:"No credits left",NO_PROVIDER:"No model provider set",OFF:"Harness is off",TURN_ON:"Switch on",SET_UP:"Set up \u2197",PLANS:"See plans \u2197",PLAN:"Plan \u2197",MORE:"Get more \u2197",driving:(e,t)=>`Driving${e===void 0?"":` as ${e}`} \xB7 ${String(t)} step${t===1?"":"s"}`,NAME:"Harness",TOGGLE:"Reticle Harness on this project",creditsLeft:(e,t)=>`${e.toLocaleString("en-US")} credit${e===1?"":"s"}${t===void 0?"":` \xB7 ${String(t)} day${t===1?"":"s"}`}`,FOOT_LINK:"Link project",FOOT_NO_CREDITS:"No credits",FOOT_NOT_ENTITLED:"Not on your plan",FOOT_NO_PROVIDER:"No model provider",PAGE_TITLE:"Reticle Harness",LOG_LABEL:"What the Harness did",LOG_EMPTY:"Runs show here, step by step.",PAGE_SUBTITLE:"Tests your app by itself",RESULT:"See the result \u2197"},sx="data-reticle-harness-switch",hp="data-reticle-harness-link",fg="data-reticle-harness-open",mg="data-reticle-harness-log",ax="data-reticle-harness-toggle",Ea=e=>`<div class="reticle-harness-row">${e}</div>`,hg=e=>`<div class="reticle-harness-row reticle-harness-row-wrap">${e}</div>`,fi=e=>`<span class="reticle-harness-said">${e}</span>`,oP=(e,t)=>Ea(`<span class="reticle-harness-lead">${e}</span>${t}`),iP=`<button type="button" data-reticle-harness-stop class="reticle-harness-run reticle-harness-stop">${Ee.STOP}</button>`,_l=(e,t)=>`<a class="reticle-harness-link" href="${e}" target="_blank" rel="noopener noreferrer">${t}</a>`;cx=`
477
+ `,N9=new Set(Object.values(An));dg=class{constructor(){x(this,mi);x(this,bl);x(this,hp);x(this,ga,!1);x(this,_l,new Map)}mount(t){var n,r;g(this,bl,(n=t.querySelector(`[${sP}]`))!=null?n:void 0),(r=c(this,bl))==null||r.addEventListener("click",o=>{let i=o.target;if(!(i instanceof Element))return;if(i.closest(`[${rP}]`)!==null){g(this,ga,!0),T(this,mi,fp).call(this);return}let s=i.closest(`[${rx}]`),a=s==null?void 0:s.getAttribute(rx);a!=null&&(c(this,_l).set(a,(s==null?void 0:s.getAttribute("aria-expanded"))!=="true"),T(this,mi,fp).call(this))}),T(this,mi,fp).call(this)}paint(t){t.lanes.every(r=>r.journeys.every(o=>An.PENDING===o.status))&&(g(this,ga,!1),c(this,_l).clear()),g(this,hp,t),T(this,mi,fp).call(this)}};bl=new WeakMap,hp=new WeakMap,ga=new WeakMap,_l=new WeakMap,mi=new WeakSet,fp=function(){let t=c(this,bl),n=c(this,hp);if(t===void 0||(t.replaceChildren(),t.hidden=n===void 0||c(this,ga),n===void 0||c(this,ga)))return;let r=n.lanes.flatMap(l=>l.journeys),o=r.filter(l=>An.PASSED===l.status).length,i=Gt("div","reticle-plan-head");i.append(Gt("strong","",El.TITLE),Gt("span","",`${String(o)} of ${String(r.length)} passed \xB7 ${String(n.lanes.length)} lane(s)`+(1<n.parallel?`, ${String(n.parallel)} ${El.AT_ONCE}`:"")));let s=Gt("button","reticle-plan-close","\xD7");s.setAttribute("type","button"),s.setAttribute(rP,""),s.setAttribute("aria-label",El.CLOSE),s.setAttribute("title",El.CLOSE),i.append(s);let a=Gt("div","reticle-plan-lanes");for(let l of n.lanes){let u=Gt("div","reticle-plan-lane"),d=Gt("span","reticle-plan-lane-name",l.id);d.setAttribute("title",`${El.LANE} ${l.id}`);let f=Gt("div","reticle-plan-lane-journeys");for(let m of l.journeys)f.append(T(this,mi,uP).call(this,l.id,m));u.append(d,f),a.append(u)}t.append(i,a)},uP=function(t,n){var l;let r=`${t}/${n.id}`,o=(l=c(this,_l).get(r))!=null?l:An.RUNNING===n.status||An.FAILED===n.status,i=Gt("button","reticle-plan-journey");i.setAttribute("type","button"),i.setAttribute(rx,r),i.setAttribute("data-status",n.status),i.setAttribute("aria-expanded",String(o));let s=Gt("span","reticle-plan-row");s.append(Gt("span","reticle-plan-glyph",oP[n.status]),Gt("b","",n.title)),i.append(s);let a=[n.persona,0<n.waitsOn.length?`${El.WAITS} ${n.waitsOn.join(", ")}`:void 0].filter(u=>u!==void 0&&0<u.length);if(0<a.length&&i.append(Gt("span","reticle-plan-meta",a.join(" \xB7 "))),o&&0<n.steps.length){let u=Gt("span","reticle-plan-steps");for(let d of n.steps){let f=Gt("span","reticle-plan-step");f.setAttribute("data-status",d.status),f.append(Gt("span","reticle-plan-glyph",oP[d.status]),Gt("span","",d.label)),u.append(f)}i.append(u)}return i}});function hg(e){return sx.find(t=>t.id===e)}function dP(e,t){let n=hg(e);if(n!==void 0)return`${n.label}: ${n.hint}`;let r=t.trim();return r.length===0?void 0:r}function ax(e){var t,n;return(n=(t=hg(e))==null?void 0:t.label)!=null?n:Ea.CUSTOM_SHORT}function pP(e,t=!1){var o,i;let n=[...sx.map(s=>({id:s.id,label:s.label,hint:s.hint})),{id:ix,label:Ea.CUSTOM,hint:Ea.CUSTOM_HINT}].map(s=>`<option value="${s.id}" title="${de(s.hint)}"${s.id===e?" selected":""}>${de(s.label)}</option>`).join(""),r=de((i=(o=hg(e))==null?void 0:o.hint)!=null?i:Ea.CUSTOM_HINT);return`<label class="reticle-harness-as" for="${Sl}">${Ea.LABEL}</label><select id="${Sl}" data-reticle-harness-persona-pick class="reticle-harness-persona" title="${r}" aria-describedby="${Sl}-hint"${t?" disabled":""}>${n}</select><span id="${Sl}-hint" class="reticle-sr">${r}</span>`}function cx(e,t=!1){return ix===e?`<input type="text" id="${R9}" data-reticle-harness-persona class="reticle-harness-persona" aria-label="${Ea.CUSTOM_HINT}" placeholder="${Ea.CUSTOM_PLACEHOLDER}"${t?" disabled":""}>`:""}function lx(e){return e!=null&&(ix===e||hg(e))?e:void 0}function fP(e){var t;try{return(t=lx(localStorage.getItem(`${_h}${e!=null?e:""}`)))!=null?t:fg}catch{return fg}}function hP(e,t){try{localStorage.setItem(`${_h}${e!=null?e:""}`,t)}catch{}}var ix,sx,fg,Ea,Sl,R9,ux=y(()=>{"use strict";po();ha();ix="custom",sx=[{id:"first-time",label:"First-time visitor",hint:"starts from the first page, reads the labels and follows the obvious path"},{id:"power-user",label:"Returning power user",hint:"goes straight to the main task, takes shortcuts and repeats it quickly"},{id:"phone",label:"On a phone, slow connection",hint:"small-screen habits: taps, waits on loading, retries when nothing seems to happen"},{id:"keyboard",label:"Keyboard only",hint:"Tab, Enter and Escape only: focus order, traps and controls it cannot reach"},{id:"careless",label:"Careless user (bad and unexpected input)",hint:"empty fields, wrong formats, very long text, double submits, going back mid-flow"},{id:"admin",label:"Admin / settings",hint:"changes settings and permissions, then checks they stick after a reload"}],fg=sx[0].id,Ea={LABEL:"As",CUSTOM:"Custom\u2026",CUSTOM_SHORT:"Custom",CUSTOM_HINT:"Describe who to be or what to try, in your own words.",CUSTOM_PLACEHOLDER:"e.g. a first-time shopper paying by card"},Sl="reticle-harness-persona-pick",R9="reticle-harness-persona"});function EP(e){return e===void 0||as(e)?"":kT(e)}function O9(e,t){if(e.kind===void 0)return ba(`${gi(Ee.NO_CREDITS)}${Tl(t,Ee.MORE)}`);let n=og(e),r=n.action!==void 0?Tl(t,`${n.action} \u2197`):xt.TRIAL===e.kind?Tl(t,Ee.PLAN):"";return gg(`${gi(n.said)}${r}`)}function I9(e){if(e.starting===!0)return Ee.STARTING;let t=e.config;if(t===void 0)return Ee.FOOT_LINK;if(t.credits!==void 0&&as(t.credits))return Ee.FOOT_NO_CREDITS;if(!t.harnessEntitled)return Ee.FOOT_NOT_ENTITLED;if(t.providerReady===!1)return Ee.FOOT_NO_PROVIDER;let n=t.credits;return n===void 0?"":Ee.creditsLeft(Math.max(0,n.limit-n.used),n.daysLeft)}function C9(e){let t=e.config;return t===void 0||t.credits!==void 0&&as(t.credits)?!1:t.harnessEntitled&&t.providerReady!==!1}function bP(e){var i,s;if(e.account===void 0||!e.account.signedIn)return"";if(e.drive!==void 0&&e.canDrive)return ba(`<button type="button" ${mg} class="reticle-harness-open"><span class="reticle-harness-name">${Ee.NAME}</span><span class="reticle-harness-state">${de(Ee.driving(e.startedAs===void 0?void 0:ax(e.startedAs),e.drive.steps))}</span><span class="reticle-harness-chev" aria-hidden="true">\u203A</span></button>${gP}`);let t=((i=e.config)==null?void 0:i.harnessEnabled)===!0,n=(s=e.config)==null?void 0:s.credits,r=n===void 0?"":` title="${de(kT(n))}"`,o=C9(e)?`<button type="button" role="switch" ${px} class="reticle-harness-toggle" aria-checked="${String(t)}" aria-label="${Ee.TOGGLE}"><span class="reticle-harness-knob"></span></button>`:"";return ba(`<button type="button" ${mg} class="reticle-harness-open"${r}><span class="reticle-harness-name">${Ee.NAME}</span><span class="reticle-harness-state">${de(I9(e))}</span><span class="reticle-harness-chev" aria-hidden="true">\u203A</span></button>${o}`)}function _P(e){if(e.account===void 0)return"";if(!e.account.signedIn)return gg(`${gi(Ee.SIGNED_OUT)}<button type="button" ${qt} class="reticle-harness-link">${Ee.SIGN_IN}</button>`);if(e.drive!==void 0&&e.canDrive)return mP(gi(Ee.driving(e.startedAs===void 0?void 0:ax(e.startedAs),e.drive.steps)),gP)+cx(e.pick,!0);let t=e.config;if(t===void 0)return gg(`${gi(Ee.UNLINKED)}<button type="button" ${mp} class="reticle-harness-run"${e.linking===!0?" disabled":""}>${e.linking===!0?Ee.LINKING:Ee.LINK}</button>`);if(t.credits!==void 0&&as(t.credits))return O9(t.credits,e.planUrl);if(!t.harnessEntitled)return ba(`${gi(Ee.NOT_ENTITLED)}${Tl(e.planUrl,Ee.PLANS)}`);if(t.providerReady===!1)return ba(`${gi(Ee.NO_PROVIDER)}${Tl(e.setupUrl,Ee.SET_UP)}`);if(!t.harnessEnabled)return ba(`${gi(Ee.OFF)}<button type="button" ${dx} class="reticle-harness-run">${Ee.TURN_ON}</button>`);if(!e.canDrive)return"";let n=e.starting===!0;return mP(pP(e.pick,n),`<button type="button" data-reticle-harness-run class="reticle-harness-run"${n?" disabled":""}>${n?Ee.STARTING:Ee.RUN}</button>`)+cx(e.pick,n)+(n?"":L9(e.last))}function L9(e){return e===void 0||e.said===void 0&&e.runUrl===void 0?"":gg(`${e.said===void 0?"":gi(de(e.said))}${e.runUrl===void 0?"":Tl(e.runUrl,Ee.RESULT)}`)}var Ee,dx,mp,mg,Eg,px,ba,gg,gi,mP,gP,Tl,fx,bg=y(()=>{"use strict";M();pl();ha();xo();ux();Ee={RUN:"Run Harness",STARTING:"Starting\u2026",STOP:"Stop",SIGNED_OUT:w1,SIGN_IN:"Sign in",UNLINKED:"This project is not on your dashboard yet.",LINK:"Link this project",LINKING:"Linking\u2026",NOT_ENTITLED:"Harness is not on your plan",NO_CREDITS:"No credits left",NO_PROVIDER:"No model provider set",OFF:"Harness is off",TURN_ON:"Switch on",SET_UP:"Set up \u2197",PLANS:"See plans \u2197",PLAN:"Plan \u2197",MORE:"Get more \u2197",driving:(e,t)=>`Driving${e===void 0?"":` as ${e}`} \xB7 ${String(t)} step${t===1?"":"s"}`,NAME:"Harness",TOGGLE:"Reticle Harness on this project",creditsLeft:(e,t)=>`${e.toLocaleString("en-US")} credit${e===1?"":"s"}${t===void 0?"":` \xB7 ${String(t)} day${t===1?"":"s"}`}`,FOOT_LINK:"Link project",FOOT_NO_CREDITS:"No credits",FOOT_NOT_ENTITLED:"Not on your plan",FOOT_NO_PROVIDER:"No model provider",PAGE_TITLE:"Reticle Harness",LOG_LABEL:"What the Harness did",LOG_EMPTY:"Runs show here, step by step.",PAGE_SUBTITLE:"Tests your app by itself",RESULT:"See the result \u2197"},dx="data-reticle-harness-switch",mp="data-reticle-harness-link",mg="data-reticle-harness-open",Eg="data-reticle-harness-log",px="data-reticle-harness-toggle",ba=e=>`<div class="reticle-harness-row">${e}</div>`,gg=e=>`<div class="reticle-harness-row reticle-harness-row-wrap">${e}</div>`,gi=e=>`<span class="reticle-harness-said">${e}</span>`,mP=(e,t)=>ba(`<span class="reticle-harness-lead">${e}</span>${t}`),gP=`<button type="button" data-reticle-harness-stop class="reticle-harness-run reticle-harness-stop">${Ee.STOP}</button>`,Tl=(e,t)=>`<a class="reticle-harness-link" href="${e}" target="_blank" rel="noopener noreferrer">${t}</a>`;fx=`
478
478
  [data-reticle-chat-panel] .reticle-harness-spot{flex:none;display:flex;flex-direction:column;gap:4px;}
479
479
  [data-reticle-chat-panel] .reticle-harness-spot[hidden],[data-reticle-chat-panel] .reticle-harness-spot:empty{display:none;}
480
480
  [data-reticle-chat-panel] .reticle-harness-row{display:flex;align-items:center;gap:6px;min-height:30px;min-width:0;}
@@ -513,10 +513,10 @@ ${Oe("pop")} button[data-send]:disabled{opacity:.4;cursor:not-allowed;}
513
513
  [data-reticle-chat-panel] .reticle-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
514
514
  [data-reticle-chat-panel] .reticle-foot-meta{margin:0;font-size:11px;line-height:1.3;color:var(--reticle-hud-text-muted);overflow-wrap:anywhere;}
515
515
  [data-reticle-chat-panel] .reticle-foot-meta:empty{display:none;}
516
- `});function So(e){return e<1e3?String(Math.round(e)):e<1e6?`${uP(e/1e3)}k`:`${uP(e/1e6)}M`}function uP(e){return e>=10?String(Math.round(e)):String(Math.round(e*10)/10)}function mp(e){let t=Math.floor(e/1e3);if(t<60)return`${String(t)}s`;let n=Math.floor(t/60);if(n<60)return`${String(n)}m`;let r=Math.floor(n/60);return n%60===0?`${String(r)}h`:`${String(r)}h ${String(n%60)}m`}function lx(e,t){let n=e.counts,r=t!==void 0&&t.length>0?` on ${t}`:"",o=[`My agent verified its own work ${String(n.verdicts)} times${r}.`,`${String(n.failed)} checks it refused to pass before I looked at any of them.`];return n.unknown>0&&o.push(`${String(n.unknown)} came back "unknown" - it drove the app and could not tell. That is the number I watch.`),e.records.longestRunMs>0&&o.push(`Longest unattended run: ${mp(e.records.longestRunMs)}.`),o.join(`
517
- `)}function dP(e){let t=new URLSearchParams({text:e,url:ls.SITE});return lP.length>0&&t.set("via",lP),`https://twitter.com/intent/tweet?${t.toString()}`}function pP(){return`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(ls.SITE)}`}function ux(){return`I have been verifying my agent's work from inside the running app with Reticle - it returns pass/fail with the file:line to fix. ${ls.SITE}`}function fP(e){let t=_0.safeParse(e);return t.success?t.data:void 0}var ls,lP,Q,hP,Eg=y(()=>{"use strict";M();ls={DOCS:"https://docs.reticle.sh",SITE:"https://reticle.sh",GITHUB:"https://github.com/reticlehq/reticle",DISCORD:"https://discord.gg/BwAbzv9ZRz"},lP="",Q={TITLE:"Impact",COVERAGE:"Reticle Coverage",COVERAGE_HELP:"How much of this app Reticle has reached, touched and proved, from the coverage ledger in .reticle",PROJECT:"This project",GLOBAL:"All projects",GLOBAL_TITLE:"Every project on this computer",SCOPE_LABEL:"Show impact for",heroDefects:e=>`failed check${e===1?"":"s"} caught before you shipped`,VERDICTS:"Verdicts",PASSED:"passed",FAILED:"failed",UNKNOWN:"unknown",UNKNOWN_HELP:"Reticle drove the app and could not tell what happened. Not a pass - shown, not hidden.",CALLS:"Tool calls",TOKENS:"Tokens returned",DRIVING:"Time driving",SESSIONS:"Sessions",STREAK:"day streak",LONGEST:"Longest run",SAVED_TOKENS:"Tokens saved",SAVED_MINUTES:"Time saved",ESTIMATE_TAG:"estimate",CHART:"Verdicts, last 30 days",DEFECTS:"What broke",DEFECTS_MORE:"Manage all of them on the dashboard \u2014 triage, assign, and push to GitHub",DEFECTS_SEE_ALL:"See all on the dashboard",DEFECTS_SEE_ALL_TITLE:"Sign up free, link this project, and see every bug Reticle caught",DEFECT_LINK_TITLE:"Open on the dashboard to triage or push to GitHub",LOCAL_ONLY:"This record stops at this machine.",LOCAL_ONLY_ACTION:"reticle connect",LOCAL_ONLY_TAIL:"keeps it, and lets a team see it.",UNLINKED:"Signed in, but this repo is not linked.",UNLINKED_ACTION:"reticle connect",UNLINKED_TAIL:"sends this record to your workspace.",DEFECTS_NONE:"Nothing has failed a declared consequence yet.",EMPTY:"Nothing recorded yet. Drive the app once and this fills in.",SHARE:"Share",COPY:"Copy",COPIED:"Copied",SEE_RUN:"See it in your dashboard",KEY_REFUSED:"Key refused",NOT_SENT:"not synced",NOT_SENT_HELP:"Runs saved on this machine but not on your dashboard yet. Run reticle connect in this project to send them.",COPY_PROMPT:"Copy prompt for your coding agent",SHARE_LABEL:"Share",POST_X:"X",POST_IN:"LinkedIn",REFER:"Invite a friend"};hP=[{key:"reached",label:"routes reached"},{key:"touched",label:"controls touched"},{key:"proved",label:"controls proved"},{key:"branched",label:"write failures driven"},{key:"executed",label:"code executed"}]});var p9,gp,mP,gP,Sl,bg,EP=y(()=>{"use strict";Eg();p9=1600,gp={NONE:"No coding agent connected",named:e=>`${e} connected`,COPY:"Copy prompt",prompt:e=>`Use Reticle to check ${e} in my running app, then tell me the verdict.`},mP=`<div data-reticle-agent-spot class="reticle-agent-spot" hidden>
518
- <div class="reticle-agent-row"><span data-reticle-agent-dot class="reticle-agent-dot" aria-hidden="true"></span><span data-reticle-agent-said class="reticle-agent-said">${gp.NONE}</span><button type="button" data-reticle-agent-copy class="reticle-agent-copy" aria-label="${Q.COPY_PROMPT}" title="${Q.COPY_PROMPT}">${gp.COPY}</button></div>
519
- </div>`,gP=`
516
+ `});function yo(e){return e<1e3?String(Math.round(e)):e<1e6?`${TP(e/1e3)}k`:`${TP(e/1e6)}M`}function TP(e){return e>=10?String(Math.round(e)):String(Math.round(e*10)/10)}function gp(e){let t=Math.floor(e/1e3);if(t<60)return`${String(t)}s`;let n=Math.floor(t/60);if(n<60)return`${String(n)}m`;let r=Math.floor(n/60);return n%60===0?`${String(r)}h`:`${String(r)}h ${String(n%60)}m`}function hx(e,t){let n=e.counts,r=t!==void 0&&t.length>0?` on ${t}`:"",o=[`My agent verified its own work ${String(n.verdicts)} times${r}.`,`${String(n.failed)} checks it refused to pass before I looked at any of them.`];return n.unknown>0&&o.push(`${String(n.unknown)} came back "unknown" - it drove the app and could not tell. That is the number I watch.`),e.records.longestRunMs>0&&o.push(`Longest unattended run: ${gp(e.records.longestRunMs)}.`),o.join(`
517
+ `)}function xP(e){let t=new URLSearchParams({text:e,url:ds.SITE});return SP.length>0&&t.set("via",SP),`https://twitter.com/intent/tweet?${t.toString()}`}function AP(){return`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(ds.SITE)}`}function mx(){return`I have been verifying my agent's work from inside the running app with Reticle - it returns pass/fail with the file:line to fix. ${ds.SITE}`}function yP(e){let t=N0.safeParse(e);return t.success?t.data:void 0}var ds,SP,Q,wP,_g=y(()=>{"use strict";M();ds={DOCS:"https://docs.reticle.sh",SITE:"https://reticle.sh",GITHUB:"https://github.com/reticlehq/reticle",DISCORD:"https://discord.gg/BwAbzv9ZRz"},SP="",Q={TITLE:"Impact",COVERAGE:"Reticle Coverage",COVERAGE_HELP:"How much of this app Reticle has reached, touched and proved, from the coverage ledger in .reticle",PROJECT:"This project",GLOBAL:"All projects",GLOBAL_TITLE:"Every project on this computer",SCOPE_LABEL:"Show impact for",heroDefects:e=>`failed check${e===1?"":"s"} caught before you shipped`,VERDICTS:"Verdicts",PASSED:"passed",FAILED:"failed",UNKNOWN:"unknown",UNKNOWN_HELP:"Reticle drove the app and could not tell what happened. Not a pass - shown, not hidden.",CALLS:"Tool calls",TOKENS:"Tokens returned",DRIVING:"Time driving",SESSIONS:"Sessions",STREAK:"day streak",LONGEST:"Longest run",SAVED_TOKENS:"Tokens saved",SAVED_MINUTES:"Time saved",ESTIMATE_TAG:"estimate",CHART:"Verdicts, last 30 days",DEFECTS:"What broke",DEFECTS_MORE:"Manage all of them on the dashboard \u2014 triage, assign, and push to GitHub",DEFECTS_SEE_ALL:"See all on the dashboard",DEFECTS_SEE_ALL_TITLE:"Sign up free, link this project, and see every bug Reticle caught",DEFECT_LINK_TITLE:"Open on the dashboard to triage or push to GitHub",LOCAL_ONLY:"This record stops at this machine.",LOCAL_ONLY_ACTION:"reticle connect",LOCAL_ONLY_TAIL:"keeps it, and lets a team see it.",UNLINKED:"Signed in, but this repo is not linked.",UNLINKED_ACTION:"reticle connect",UNLINKED_TAIL:"sends this record to your workspace.",DEFECTS_NONE:"Nothing has failed a declared consequence yet.",EMPTY:"Nothing recorded yet. Drive the app once and this fills in.",SHARE:"Share",COPY:"Copy",COPIED:"Copied",SEE_RUN:"See it in your dashboard",KEY_REFUSED:"Key refused",NOT_SENT:"not synced",NOT_SENT_HELP:"Runs saved on this machine but not on your dashboard yet. Run reticle connect in this project to send them.",COPY_PROMPT:"Copy prompt for your coding agent",SHARE_LABEL:"Share",POST_X:"X",POST_IN:"LinkedIn",REFER:"Invite a friend"};wP=[{key:"reached",label:"routes reached"},{key:"touched",label:"controls touched"},{key:"proved",label:"controls proved"},{key:"branched",label:"write failures driven"},{key:"executed",label:"code executed"}]});var $9,Ep,vP,NP,xl,Sg,RP=y(()=>{"use strict";_g();$9=1600,Ep={NONE:"No coding agent connected",named:e=>`${e} connected`,COPY:"Copy prompt",prompt:e=>`Use Reticle to check ${e} in my running app, then tell me the verdict.`},vP=`<div data-reticle-agent-spot class="reticle-agent-spot" hidden>
518
+ <div class="reticle-agent-row"><span data-reticle-agent-dot class="reticle-agent-dot" aria-hidden="true"></span><span data-reticle-agent-said class="reticle-agent-said">${Ep.NONE}</span><button type="button" data-reticle-agent-copy class="reticle-agent-copy" aria-label="${Q.COPY_PROMPT}" title="${Q.COPY_PROMPT}">${Ep.COPY}</button></div>
519
+ </div>`,NP=`
520
520
  [data-reticle-chat-panel] .reticle-agent-spot{flex:none;display:flex;flex-direction:column;gap:3px;}
521
521
  [data-reticle-chat-panel] .reticle-agent-spot[hidden]{display:none;}
522
522
  [data-reticle-chat-panel] .reticle-agent-row{display:flex;align-items:center;gap:8px;min-width:0;min-height:30px;padding:0 var(--reticle-hud-space-2);}
@@ -527,36 +527,36 @@ ${Oe("pop")} button[data-send]:disabled{opacity:.4;cursor:not-allowed;}
527
527
  [data-reticle-chat-panel] .reticle-agent-copy{flex:none;height:22px;padding:0 9px;border:1px solid var(--reticle-hud-border-strong);border-radius:11px;background:transparent;color:var(--reticle-hud-text);font:inherit;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap;}
528
528
  [data-reticle-chat-panel] .reticle-agent-copy:hover{border-color:var(--reticle-hud-brand);color:var(--reticle-hud-brand);}
529
529
  [data-reticle-chat-panel] .reticle-agent-copy[hidden]{display:none;}
530
- `,bg=class{constructor(){x(this,Sl)}mount(t,n){var r;g(this,Sl,t),(r=t.querySelector("[data-reticle-agent-copy]"))==null||r.addEventListener("click",o=>{var s;let i=o.currentTarget;(s=navigator.clipboard)==null||s.writeText(gp.prompt(location.href)).catch(()=>{}).finally(()=>{i instanceof HTMLElement&&(i.textContent=Q.COPIED,window.setTimeout(()=>i.textContent=Q.COPY_PROMPT,p9))})},{signal:n})}teardown(){g(this,Sl,void 0)}paint(t){var a;let n=c(this,Sl),r=n==null?void 0:n.querySelector("[data-reticle-agent-spot]");if(n===void 0||r===null||r===void 0||(r.hidden=t===void 0,t===void 0))return;let o=0<t.agents.length;(a=r.querySelector(".reticle-agent-row"))==null||a.setAttribute("data-connected",o?"1":"0");let i=r.querySelector("[data-reticle-agent-said]");i!==null&&(i.textContent=o?gp.named(t.agents.join(", ")):gp.NONE);let s=r.querySelector("[data-reticle-agent-copy]");s!==null&&(s.hidden=o)}};Sl=new WeakMap});function _x(e,t){let n=[g9(e==null?void 0:e.planUrl),e==null?void 0:e.platformUrl,t.host].find(r=>r!==void 0&&mr(r));return de((n!=null?n:Mf).replace(/\/+$/,""))}function g9(e){if(!(e===void 0||!mr(e)))try{return new URL(e).origin}catch{return}}function E9(e){if(typeof e!="object"||e===null)return!1;let t=e;return typeof t.id=="string"&&typeof t.note=="string"&&typeof t.label=="string"&&typeof t.anchor=="string"&&typeof t.route=="string"&&typeof t.createdAt=="number"&&typeof t.pageUrl=="string"}function b9(){var e;try{let t=JSON.parse((e=localStorage.getItem(wP))!=null?e:"[]");return Array.isArray(t)?t.filter(E9).slice(0,bx):[]}catch{return[]}}function _9(e){var t;try{return Number((t=localStorage.getItem(`${_h}${e!=null?e:""}`))!=null?t:0)||0}catch{return}}function _P(e,t){try{localStorage.setItem(`${_h}${e!=null?e:""}`,String(t))}catch{}}function S9(e){try{localStorage.setItem(wP,JSON.stringify(e.slice(0,bx)))}catch{}}function AP(){var e,t;try{let n=JSON.parse((e=globalThis.sessionStorage.getItem(Tt.PRESENTER_VIEW))!=null?e:"{}"),r=n!==null&&typeof n=="object"?n:{};return{view:(t=yP.find(i=>i===r.view))!=null?t:"activity",runFocused:r.runFocused===!0}}catch{return{view:"activity",runFocused:!1}}}function fx(e){try{globalThis.sessionStorage.setItem(Tt.PRESENTER_VIEW,JSON.stringify(e))}catch{}}var yP,wP,bx,f9,h9,m9,bP,vP,NP,Ep,us,hx,ba,RP,dx,SP,TP,xP,Tl,OP,IP,CP,px,_n,hi,_p,xl,To,Sp,_a,Al,yl,ds,wl,Tp,vl,Sa,xo,Ta,Ao,ps,xa,Nl,Rl,Aa,yo,Ol,ya,Il,wo,xp,Ap,he,mx,_g,Sg,Vr,gx,Tg,bp,LP,Ex,xg,Ag=y(()=>{"use strict";M();ug();eT();Lt();Pr();Fr();ci();gg();fa();IT();co();ix();EP();bo();yP=["flows","annotations","harness"],wP=Tt.ANNOTATION_HISTORY,bx=200,f9="/settings?group=project",h9="#model",m9="/settings?group=billing",bP=2e4;vP=`${mP}
531
- <div data-reticle-harness-spot class="reticle-harness-spot" hidden></div>`,NP=`<section data-reticle-page-panel="flows" class="reticle-page-panel reticle-flows-view" role="region" aria-label="Saved Flows" hidden>
530
+ `,Sg=class{constructor(){x(this,xl)}mount(t,n){var r;g(this,xl,t),(r=t.querySelector("[data-reticle-agent-copy]"))==null||r.addEventListener("click",o=>{var s;let i=o.currentTarget;(s=navigator.clipboard)==null||s.writeText(Ep.prompt(location.href)).catch(()=>{}).finally(()=>{i instanceof HTMLElement&&(i.textContent=Q.COPIED,window.setTimeout(()=>i.textContent=Q.COPY_PROMPT,$9))})},{signal:n})}teardown(){g(this,xl,void 0)}paint(t){var a;let n=c(this,xl),r=n==null?void 0:n.querySelector("[data-reticle-agent-spot]");if(n===void 0||r===null||r===void 0||(r.hidden=t===void 0,t===void 0))return;let o=0<t.agents.length;(a=r.querySelector(".reticle-agent-row"))==null||a.setAttribute("data-connected",o?"1":"0");let i=r.querySelector("[data-reticle-agent-said]");i!==null&&(i.textContent=o?Ep.named(t.agents.join(", ")):Ep.NONE);let s=r.querySelector("[data-reticle-agent-copy]");s!==null&&(s.hidden=o)}};xl=new WeakMap});function yx(e,t){let n=[P9(e==null?void 0:e.planUrl),e==null?void 0:e.platformUrl,t.host].find(r=>r!==void 0&&Er(r));return de((n!=null?n:Uf).replace(/\/+$/,""))}function P9(e){if(!(e===void 0||!Er(e)))try{return new URL(e).origin}catch{return}}function M9(e){if(typeof e!="object"||e===null)return!1;let t=e;return typeof t.id=="string"&&typeof t.note=="string"&&typeof t.label=="string"&&typeof t.anchor=="string"&&typeof t.route=="string"&&typeof t.createdAt=="number"&&typeof t.pageUrl=="string"}function U9(){var e;try{let t=JSON.parse((e=localStorage.getItem(DP))!=null?e:"[]");return Array.isArray(t)?t.filter(M9).slice(0,Ax):[]}catch{return[]}}function H9(e){var t;try{return Number((t=localStorage.getItem(`${Sh}${e!=null?e:""}`))!=null?t:0)||0}catch{return}}function IP(e,t){try{localStorage.setItem(`${Sh}${e!=null?e:""}`,String(t))}catch{}}function F9(e){try{localStorage.setItem(DP,JSON.stringify(e.slice(0,Ax)))}catch{}}function kP(){var e,t;try{let n=JSON.parse((e=globalThis.sessionStorage.getItem(At.PRESENTER_VIEW))!=null?e:"{}"),r=n!==null&&typeof n=="object"?n:{};return{view:(t=zP.find(i=>i===r.view))!=null?t:"activity",runFocused:r.runFocused===!0}}catch{return{view:"activity",runFocused:!1}}}function bx(e){try{globalThis.sessionStorage.setItem(At.PRESENTER_VIEW,JSON.stringify(e))}catch{}}var zP,DP,Ax,k9,z9,D9,OP,PP,MP,bp,ps,_x,_a,UP,gx,CP,LP,$P,Al,HP,FP,BP,Ex,_n,Ei,Sp,yl,wo,Tp,Sa,wl,vl,fs,Nl,xp,Rl,Ta,vo,xa,No,hs,Aa,Ol,Il,ya,Ro,Cl,wa,Ll,Oo,Ap,yp,he,Sx,Tg,xg,Zr,Tx,Ag,_p,GP,xx,yg,wg=y(()=>{"use strict";M();pg();iT();Ct();Hr();Vr();di();bg();ha();zT();po();ux();RP();xo();zP=["flows","annotations","harness"],DP=At.ANNOTATION_HISTORY,Ax=200,k9="/settings?group=project",z9="#model",D9="/settings?group=billing",OP=2e4;PP=`${vP}
531
+ <div data-reticle-harness-spot class="reticle-harness-spot" hidden></div>`,MP=`<section data-reticle-page-panel="flows" class="reticle-page-panel reticle-flows-view" role="region" aria-label="Saved Flows" hidden>
532
532
  <div class="reticle-page-heading"><span class="reticle-page-titles"><strong>Saved flows</strong><span class="reticle-page-subtitle">Journeys your agent verified, replayable here</span></span><button type="button" data-reticle-page-close aria-label="Close Saved Flows" title="Close">\xD7</button></div>
533
533
  <div data-reticle-all-flows class="reticle-all-flows"></div>
534
- </section>`,Ep=xe.NAV,us={LOG:"Log",FLOWS:"Flows",NOTES:"Notes",IMPACT:"Impact",HARNESS:"Harness",SETTINGS:"Settings",HIDE:"Hide"},hx={SEEN:"Open Impact",NEW:"Open Impact, new results"},ba=e=>`<span class="reticle-nav-label">${e}</span>`,RP=`<nav class="reticle-chat-nav" aria-label="Reticle views">
535
- <button type="button" ${Mm} data-reticle-chat-view-btn="activity" aria-label="Agent log" title="Agent log" aria-current="page">${Ie(se.MESSAGE,Ep)}${ba(us.LOG)}</button>
536
- <button type="button" data-reticle-chat-view-btn="harness" aria-label="${Ee.PAGE_TITLE}" title="${Ee.PAGE_TITLE}" hidden>${Ie(se.PLAY,Ep)}${ba(us.HARNESS)}</button>
537
- <button type="button" data-reticle-chat-view-btn="flows" aria-label="Saved flows" title="Saved flows">${Ie(se.LAYOUT,Ep)}${ba(us.FLOWS)}</button>
538
- <button type="button" data-reticle-chat-view-btn="annotations" aria-label="Notes" title="Notes">${Ie(se.NOTES,Ep)}<span class="reticle-nav-label">${us.NOTES}<span data-reticle-note-count class="reticle-nav-count" hidden></span></span></button>
539
- <button type="button" data-reticle-chat-impact class="reticle-chat-impact" aria-label="${hx.SEEN}" title="Impact">${Ie(se.CHART,Ep)}${ba(us.IMPACT)}<span data-reticle-impact-dot class="reticle-nav-dot" aria-hidden="true" hidden></span></button>
540
- </nav>`,dx=xe.TOOLBAR,SP="Show note markers on the page",TP="Clear notes from this page",xP="Copy all notes",Tl={SUBTITLE:"Feedback for your agent",SUBTITLE_FULL:"Pin feedback on the page for your agent",PAGE_EMPTY:"No notes on this page",PAGE_HINT:"Select Add notes, then click anything on the page to pin feedback for your agent.",HISTORY_EMPTY:"No saved notes yet",HISTORY_HINT:"Notes from every page you annotate are kept here."},OP=`<section data-reticle-page-panel="harness" class="reticle-page-panel reticle-harness-page" role="region" aria-label="${Ee.PAGE_TITLE}" hidden>
534
+ </section>`,bp=Ae.NAV,ps={LOG:"Log",FLOWS:"Flows",NOTES:"Notes",IMPACT:"Impact",HARNESS:"Harness",SETTINGS:"Settings",HIDE:"Hide"},_x={SEEN:"Open Impact",NEW:"Open Impact, new results"},_a=e=>`<span class="reticle-nav-label">${e}</span>`,UP=`<nav class="reticle-chat-nav" aria-label="Reticle views">
535
+ <button type="button" ${Hm} data-reticle-chat-view-btn="activity" aria-label="Agent log" title="Agent log" aria-current="page">${Ie(se.MESSAGE,bp)}${_a(ps.LOG)}</button>
536
+ <button type="button" data-reticle-chat-view-btn="harness" aria-label="${Ee.PAGE_TITLE}" title="${Ee.PAGE_TITLE}" hidden>${Ie(se.PLAY,bp)}${_a(ps.HARNESS)}</button>
537
+ <button type="button" data-reticle-chat-view-btn="flows" aria-label="Saved flows" title="Saved flows">${Ie(se.LAYOUT,bp)}${_a(ps.FLOWS)}</button>
538
+ <button type="button" data-reticle-chat-view-btn="annotations" aria-label="Notes" title="Notes">${Ie(se.NOTES,bp)}<span class="reticle-nav-label">${ps.NOTES}<span data-reticle-note-count class="reticle-nav-count" hidden></span></span></button>
539
+ <button type="button" data-reticle-chat-impact class="reticle-chat-impact" aria-label="${_x.SEEN}" title="Impact">${Ie(se.CHART,bp)}${_a(ps.IMPACT)}<span data-reticle-impact-dot class="reticle-nav-dot" aria-hidden="true" hidden></span></button>
540
+ </nav>`,gx=Ae.TOOLBAR,CP="Show note markers on the page",LP="Clear notes from this page",$P="Copy all notes",Al={SUBTITLE:"Feedback for your agent",SUBTITLE_FULL:"Pin feedback on the page for your agent",PAGE_EMPTY:"No notes on this page",PAGE_HINT:"Select Add notes, then click anything on the page to pin feedback for your agent.",HISTORY_EMPTY:"No saved notes yet",HISTORY_HINT:"Notes from every page you annotate are kept here."},HP=`<section data-reticle-page-panel="harness" class="reticle-page-panel reticle-harness-page" role="region" aria-label="${Ee.PAGE_TITLE}" hidden>
541
541
  <div class="reticle-page-heading"><span class="reticle-page-titles"><strong>${Ee.PAGE_TITLE}</strong><span class="reticle-page-subtitle">${Ee.PAGE_SUBTITLE}</span></span><button type="button" data-reticle-page-close aria-label="Close ${Ee.PAGE_TITLE}" title="Close">\xD7</button></div>
542
542
  <div data-reticle-harness-page class="reticle-harness-body"></div>
543
- ${XD}
544
- <div ${mg} ${Im}="${hn.HARNESS}" class="reticle-harness-log" aria-live="polite" aria-label="${Ee.LOG_LABEL}"></div>
543
+ ${aP}
544
+ <div ${Eg} ${Lm}="${hn.HARNESS}" class="reticle-harness-log" aria-live="polite" aria-label="${Ee.LOG_LABEL}"></div>
545
545
  <p data-reticle-harness-page-meta class="reticle-foot-meta"></p>
546
- </section>`,IP=`<section data-reticle-page-panel="annotations" class="reticle-page-panel reticle-annotations-view" role="region" aria-label="Notes" hidden>
547
- <div class="reticle-page-heading"><span class="reticle-page-titles"><strong>Notes</strong><span class="reticle-page-subtitle" title="${Tl.SUBTITLE_FULL}">${Tl.SUBTITLE}</span></span><button type="button" ${Gm} class="reticle-add-notes reticle-primary-btn" title="Add notes" aria-label="Add notes" aria-pressed="false" data-active="0"><span class="reticle-add-notes-icon">${Ie(se.ANNOTATE,xe.TOOLBAR)}</span><span data-reticle-notes-toggle-label>Add notes</span></button><button type="button" data-reticle-page-close aria-label="Close Notes" title="Close">\xD7</button></div>
546
+ </section>`,FP=`<section data-reticle-page-panel="annotations" class="reticle-page-panel reticle-annotations-view" role="region" aria-label="Notes" hidden>
547
+ <div class="reticle-page-heading"><span class="reticle-page-titles"><strong>Notes</strong><span class="reticle-page-subtitle" title="${Al.SUBTITLE_FULL}">${Al.SUBTITLE}</span></span><button type="button" ${jm} class="reticle-add-notes reticle-primary-btn" title="Add notes" aria-label="Add notes" aria-pressed="false" data-active="0"><span class="reticle-add-notes-icon">${Ie(se.ANNOTATE,Ae.TOOLBAR)}</span><span data-reticle-notes-toggle-label>Add notes</span></button><button type="button" data-reticle-page-close aria-label="Close Notes" title="Close">\xD7</button></div>
548
548
  <div class="reticle-annotations-tabs" role="group" aria-label="Notes lists">
549
549
  <span class="reticle-segmented"><button type="button" data-reticle-annotation-tab="current" aria-pressed="true">This page</button><button type="button" data-reticle-annotation-tab="history" aria-pressed="false">History</button></span>
550
550
  <div data-reticle-current-annotation-actions class="reticle-annotation-actions" aria-label="Current page note actions">
551
- <button type="button" ${Um} class="reticle-annotation-icon-btn reticle-annotation-marker-toggle" title="${SP}" aria-label="${SP}" aria-pressed="false" data-active="0" disabled>${Nm(se.VIEW,dx)}</button>
552
- <button type="button" ${Hm} class="reticle-annotation-icon-btn" title="${TP}" aria-label="${TP}" disabled>${Ie(se.TRASH,dx)}</button>
551
+ <button type="button" ${Fm} class="reticle-annotation-icon-btn reticle-annotation-marker-toggle" title="${CP}" aria-label="${CP}" aria-pressed="false" data-active="0" disabled>${Om(se.VIEW,gx)}</button>
552
+ <button type="button" ${Bm} class="reticle-annotation-icon-btn" title="${LP}" aria-label="${LP}" disabled>${Ie(se.TRASH,gx)}</button>
553
553
  </div>
554
- <button type="button" data-reticle-copy-all-notes class="reticle-annotation-icon-btn reticle-copy-all" title="${xP}" aria-label="${xP}">${Ie(se.COPY,dx)}</button>
554
+ <button type="button" data-reticle-copy-all-notes class="reticle-annotation-icon-btn reticle-copy-all" title="${$P}" aria-label="${$P}">${Ie(se.COPY,gx)}</button>
555
555
  </div>
556
556
  <div data-reticle-annotation-list class="reticle-annotation-list"></div>
557
- </section>`,CP=`
558
- ${cx}
559
- ${cx.replaceAll("[data-reticle-chat-panel]",'[data-reticle-page-panel="harness"]')}
557
+ </section>`,BP=`
558
+ ${fx}
559
+ ${fx.replaceAll("[data-reticle-chat-panel]",'[data-reticle-page-panel="harness"]')}
560
560
  [data-reticle-page-panel="harness"] .reticle-harness-body{flex:none;display:flex;flex-direction:column;gap:var(--reticle-hud-space-2);padding:var(--reticle-hud-space-3);}
561
561
  /* The run as it happens, then its result: the Harness's rows only, scrolling under the controls. */
562
562
  [data-reticle-page-panel="harness"] .reticle-harness-log{flex:1;min-height:0;overflow-y:auto;padding:0 var(--reticle-hud-space-3) var(--reticle-hud-space-2);}
@@ -581,7 +581,7 @@ ${cx.replaceAll("[data-reticle-chat-panel]",'[data-reticle-page-panel="harness"]
581
581
  /* New results since Impact was last opened: a dot on the icon's corner, out of the flow, so no number can push the label. */
582
582
  [data-reticle-hud] .reticle-chat-nav .reticle-nav-dot{position:absolute;top:4px;left:calc(50% + 5px);width:7px;height:7px;border-radius:50%;background:var(--reticle-hud-brand);box-shadow:0 0 0 2px var(--reticle-hud-surface);pointer-events:none;}
583
583
  [data-reticle-hud] .reticle-chat-nav .reticle-nav-dot[hidden]{display:none;}
584
- [data-reticle-page-panel]{position:absolute;right:0;left:auto;bottom:calc(100% + 8px);z-index:6;box-sizing:border-box;width:var(--reticle-dock-w);max-width:min(var(--reticle-dock-w),calc(100vw - 16px));height:min(var(--reticle-chat-max-h,var(--reticle-chat-h)),calc(100vh - 120px));max-height:min(var(--reticle-chat-max-h,var(--reticle-chat-h)),calc(100vh - 120px));flex-direction:column;overflow:hidden;border-radius:var(--reticle-hud-radius-lg);${sl}color:var(--reticle-hud-text);font-size:13px;line-height:1.5;pointer-events:auto;text-align:left;}
584
+ [data-reticle-page-panel]{position:absolute;right:0;left:auto;bottom:calc(100% + 8px);z-index:6;box-sizing:border-box;width:var(--reticle-dock-w);max-width:min(var(--reticle-dock-w),calc(100vw - 16px));height:min(var(--reticle-chat-max-h,var(--reticle-chat-h)),calc(100vh - 120px));max-height:min(var(--reticle-chat-max-h,var(--reticle-chat-h)),calc(100vh - 120px));flex-direction:column;overflow:hidden;border-radius:var(--reticle-hud-radius-lg);${cl}color:var(--reticle-hud-text);font-size:13px;line-height:1.5;pointer-events:auto;text-align:left;}
585
585
  [data-reticle-page-panel][hidden]{display:none!important;}
586
586
  [data-reticle-page-open="annotations"] [data-reticle-page-panel="annotations"],[data-reticle-page-open="flows"] [data-reticle-page-panel="flows"]{display:flex;}
587
587
  [data-reticle-page-open="annotations"] [data-reticle-chat-panel],[data-reticle-page-open="flows"] [data-reticle-chat-panel]{display:none!important;}
@@ -616,7 +616,7 @@ ${cx.replaceAll("[data-reticle-chat-panel]",'[data-reticle-page-panel="harness"]
616
616
  [data-reticle-page-panel="annotations"] .reticle-annotation-content span{display:block;margin-top:3px;font-size:var(--reticle-hud-size-xs);color:var(--reticle-hud-text-muted);overflow-wrap:anywhere;}
617
617
  [data-reticle-page-panel="annotations"] .reticle-annotation-item button{flex:none;border:1px solid var(--reticle-line);border-radius:6px;background:rgba(255,255,255,.04);color:var(--reticle-muted);font:inherit;font-size:11px;padding:4px 6px;cursor:pointer;}
618
618
  [data-reticle-page-panel="annotations"] .reticle-annotation-item button:hover{color:#fff;background:rgba(255,255,255,.1);}
619
- ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reticle-harness-stop])";xg=class{constructor(t,n,r){x(this,he);x(this,_n);x(this,hi,AP().view);x(this,_p,AP().runFocused);x(this,xl,!1);x(this,To,"current");x(this,Sp,[]);x(this,_a,b9());x(this,Al);x(this,yl);x(this,ds,0);x(this,wl,!1);x(this,Tp);x(this,vl);x(this,Sa);x(this,xo);x(this,Ta);x(this,Ao);x(this,ps,dg);x(this,xa,"");x(this,Nl,"");x(this,Rl,"");x(this,Aa,!1);x(this,yo);x(this,Ol,new bg);x(this,ya);x(this,Il);x(this,wo);x(this,xp);x(this,Ap);g(this,Tp,t),g(this,vl,n),g(this,xo,r)}mount(t){var i,s,a,l,u,d,f;g(this,_n,t),g(this,Sa,new AbortController);let n=c(this,Sa).signal;t.querySelectorAll("[data-reticle-chat-view-btn]").forEach(m=>m.addEventListener("click",()=>{let h=m.getAttribute("data-reticle-chat-view-btn");c(this,vl).call(this,h),this.open(h)},{signal:n})),(i=t.querySelector("[data-reticle-chat-impact]"))==null||i.addEventListener("click",()=>c(this,Tp).call(this),{signal:n});let r=m=>{var v,N,O,k,j;let h=m.target;if(!(h instanceof Element))return;if(h.closest(`[${fg}]`)!==null){c(this,vl).call(this,"harness"),this.open("harness");return}if(h.closest(`[${sx}]`)!==null){(v=c(this,xo))==null||v.setHarness(!0);return}let E=h.closest(`[${ax}]`);if(E!==null){let Y=E.getAttribute("aria-checked")!=="true";E.setAttribute("aria-checked",String(Y)),(N=c(this,xo))==null||N.setHarness(Y);return}let _=h.closest(`[${hp}],[${sp}]:not([${Xt}])`);if(_!==null){if(_.disabled)return;g(this,Aa,!0),c(this,yo)!==void 0&&clearTimeout(c(this,yo)),g(this,yo,setTimeout(()=>{g(this,yo,void 0),g(this,Aa,!1),T(this,he,Vr).call(this)},bP)),(O=c(this,xo))==null||O.link(),T(this,he,Vr).call(this);return}let A=h.closest("[data-reticle-harness-run]");if(A!==null){if(A.disabled)return;g(this,ya,c(this,ps)),g(this,Ap,c(this,xp)),T(this,he,_g).call(this,!0),(k=c(this,xo))==null||k.run(eP(c(this,ps),c(this,xa)));return}if(h.closest("[data-reticle-harness-stop]")!==null){(j=c(this,xo))==null||j.stop();return}};(s=t.querySelector("[data-reticle-harness-spot]"))==null||s.addEventListener("click",r,{signal:n}),(a=t.querySelector("[data-reticle-harness-page]"))==null||a.addEventListener("click",r,{signal:n}),(l=t.querySelector(`[${dl}]`))==null||l.addEventListener("click",r,{signal:n});let o=t.querySelector("[data-reticle-harness-page]");o==null||o.addEventListener("change",m=>{var _,A;let h=m.target;if(!(h instanceof HTMLSelectElement))return;let E=ox(h.value);E!==void 0&&(g(this,ps,E),rP(c(this,Ao),E),T(this,he,Vr).call(this),(A=(_=c(this,_n))==null?void 0:_.querySelector(`#${bl}`))==null||A.focus())},{signal:n}),o==null||o.addEventListener("input",m=>{m.target instanceof HTMLInputElement&&g(this,xa,m.target.value)},{signal:n}),c(this,Ol).mount(t,n),t.querySelectorAll("[data-reticle-annotation-tab]").forEach(m=>m.addEventListener("click",()=>{g(this,To,m.getAttribute("data-reticle-annotation-tab")==="history"?"history":"current"),T(this,he,bp).call(this)},{signal:n})),(u=t.querySelector("[data-reticle-annotate-btn]"))==null||u.addEventListener("click",()=>{g(this,To,"current"),T(this,he,bp).call(this)},{signal:n}),(d=t.querySelector("[data-reticle-copy-all-notes]"))==null||d.addEventListener("click",()=>T(this,he,LP).call(this),{signal:n}),t.querySelectorAll("[data-reticle-page-close]").forEach(m=>m.addEventListener("click",()=>this.closePage(),{signal:n})),(f=t.querySelector("[data-reticle-annotation-list]"))==null||f.addEventListener("click",m=>{let h=m.target;if(!(h instanceof Element))return;let E=h.closest("[data-reticle-copy-note]");if(E===null)return;let _=Number(E.getAttribute("data-reticle-copy-note"));if(!Number.isInteger(_))return;let A=T(this,he,Tg).call(this)[_];A!==void 0&&T(this,he,Ex).call(this,[A],"pageUrl"in A?A.pageUrl:location.href)},{signal:n}),t.addEventListener("focusin",m=>T(this,he,mx).call(this,m.target instanceof Element&&m.target.matches(px)),{signal:n}),t.addEventListener("focusout",m=>{let h=m.relatedTarget;T(this,he,mx).call(this,h instanceof Element&&h.matches(px))},{signal:n}),this.open(c(this,hi)),T(this,he,Vr).call(this),this.paintImpact(c(this,ds)),T(this,he,bp).call(this)}teardown(){var t;T(this,he,_g).call(this,!1),(t=c(this,Sa))==null||t.abort(),g(this,Sa,void 0),g(this,_n,void 0),g(this,Nl,""),g(this,Rl,""),c(this,Ol).teardown()}open(t){var o;if(t!=="activity"&&!yP.includes(t))return;g(this,hi,t),fx({view:t,runFocused:c(this,xl)});let n=c(this,_n);if(n===void 0)return;t==="activity"?n.removeAttribute("data-reticle-page-open"):n.setAttribute("data-reticle-page-open",t);let r=n.querySelector("[data-reticle-chat-panel]");r!==null&&(r.hidden=t!=="activity"),n.querySelectorAll("[data-reticle-page-panel]").forEach(i=>{i.hidden=i.getAttribute("data-reticle-page-panel")!==t}),(o=c(this,_n))==null||o.querySelectorAll("[data-reticle-chat-view-btn]").forEach(i=>{i.getAttribute("data-reticle-chat-view-btn")===t?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current")})}closePage(){let t=c(this,_n);t!==void 0&&(t.removeAttribute("data-reticle-page-open"),t.querySelectorAll("[data-reticle-page-panel]").forEach(n=>{n.hidden=!0}),g(this,hi,"activity"),fx({view:"activity",runFocused:!1}),t.querySelectorAll("[data-reticle-chat-view-btn]").forEach(n=>{n.removeAttribute("aria-current")}))}setProjectId(t){g(this,Ao,t),g(this,ps,nP(t)),T(this,he,Vr).call(this),T(this,he,Sg).call(this)}paintAgent(t){c(this,Ol).paint(t),T(this,he,gx).call(this)}paintAccount(t){var r;g(this,Al,t);let n=(r=c(this,_n))==null?void 0:r.querySelector('[data-reticle-chat-view-btn="harness"]');n!=null&&(n.hidden=(t==null?void 0:t.signedIn)!==!0),T(this,he,Vr).call(this)}paintDrive(t,n){g(this,Ta,t);let r=(n==null?void 0:n.runUrl)!==void 0&&mr(n.runUrl)?de(n.runUrl):void 0;g(this,Il,n===void 0?void 0:{...r===void 0?{}:{runUrl:r},...n.said===void 0?{}:{said:n.said}}),g(this,xp,n==null?void 0:n.seq);let o=(n==null?void 0:n.seq)!==void 0&&n.seq!==c(this,Ap)&&c(this,wo)!==void 0;(t!==void 0||o)&&T(this,he,_g).call(this,!1),t===void 0&&c(this,wo)===void 0&&g(this,ya,void 0),T(this,he,Vr).call(this)}paintHarness(t){t!==void 0&&(g(this,Aa,!1),c(this,yo)!==void 0&&clearTimeout(c(this,yo)),g(this,yo,void 0)),g(this,yl,t),T(this,he,Vr).call(this)}paintImpact(t){g(this,ds,t),c(this,wl)&&_P(c(this,Ao),t),T(this,he,Sg).call(this)}setImpactOpen(t){g(this,wl,t),t&&_P(c(this,Ao),c(this,ds)),T(this,he,Sg).call(this)}paintAnnotations(t){var i;g(this,Sp,[...t]);let n=location.href,r=new Map(c(this,_a).map(s=>[s.id,s]));for(let s of t)r.set(s.id,{...s,pageUrl:n});g(this,_a,[...r.values()].sort((s,a)=>a.createdAt-s.createdAt).slice(0,bx)),S9(c(this,_a));let o=(i=c(this,_n))==null?void 0:i.querySelector("[data-reticle-note-count]");o!=null&&(o.hidden=t.length===0,o.textContent=String(t.length)),T(this,he,bp).call(this)}};_n=new WeakMap,hi=new WeakMap,_p=new WeakMap,xl=new WeakMap,To=new WeakMap,Sp=new WeakMap,_a=new WeakMap,Al=new WeakMap,yl=new WeakMap,ds=new WeakMap,wl=new WeakMap,Tp=new WeakMap,vl=new WeakMap,Sa=new WeakMap,xo=new WeakMap,Ta=new WeakMap,Ao=new WeakMap,ps=new WeakMap,xa=new WeakMap,Nl=new WeakMap,Rl=new WeakMap,Aa=new WeakMap,yo=new WeakMap,Ol=new WeakMap,ya=new WeakMap,Il=new WeakMap,wo=new WeakMap,xp=new WeakMap,Ap=new WeakMap,he=new WeakSet,mx=function(t){t!==c(this,xl)&&(g(this,xl,t),fx({view:c(this,hi),runFocused:t}))},_g=function(t){c(this,wo)!==void 0&&clearTimeout(c(this,wo)),g(this,wo,t?setTimeout(()=>{g(this,wo,void 0),c(this,Ta)===void 0&&g(this,ya,void 0),T(this,he,Vr).call(this)},bP):void 0),t&&T(this,he,Vr).call(this)},Sg=function(){var i;let t=(i=c(this,_n))==null?void 0:i.querySelector("[data-reticle-chat-impact]"),n=t==null?void 0:t.querySelector("[data-reticle-impact-dot]");if(t==null||n===void 0||n===null)return;let r=c(this,wl)?c(this,ds):_9(c(this,Ao)),o=r!==void 0&&c(this,ds)>r;n.hidden=!o,t.setAttribute("aria-label",o?hx.NEW:hx.SEEN)},Vr=function(){let t=c(this,_n),n=t==null?void 0:t.querySelector("[data-reticle-harness-spot]");if(t===void 0||n===null||n===void 0)return;let r=c(this,Al),o=c(this,yl);n.hidden=!1;let i=_x(o,r!=null?r:{signedIn:!1}),s=c(this,Ao)===void 0?"":`&project=${encodeURIComponent(c(this,Ao))}`,a={account:r,config:o,drive:c(this,Ta),canDrive:c(this,xo)!==void 0,pick:c(this,ps),startedAs:c(this,ya),setupUrl:`${i}${f9}${s}${h9}`,planUrl:(o==null?void 0:o.planUrl)!==void 0&&mr(o.planUrl)?de(o.planUrl):`${i}${m9}`,linking:c(this,Aa),starting:c(this,wo)!==void 0&&c(this,Ta)===void 0,...c(this,Il)===void 0?{}:{last:c(this,Il)}},l=aP(a);l!==c(this,Nl)&&(ip(n,l),g(this,Nl,l)),r!==void 0&&!r.signedIn&&c(this,hi)==="harness"&&this.closePage();let u=t.querySelector("[data-reticle-harness-page]");if(u!==null){let d=cP(a);d!==c(this,Rl)&&(ip(u,d),g(this,Rl,d));let f=c(this,_p)?u.querySelector(px):null;f!==null&&c(this,hi)==="harness"&&(g(this,_p,!1),f.focus());let m=u.querySelector("[data-reticle-harness-persona]");m!==null&&m.value!==c(this,xa)&&(m.value=c(this,xa))}T(this,he,gx).call(this)},gx=function(){var r,o,i;let t=((r=c(this,Al))==null?void 0:r.signedIn)===!0,n=(o=c(this,_n))==null?void 0:o.querySelector("[data-reticle-harness-page-meta]");n!=null&&(n.textContent=t?sP((i=c(this,yl))==null?void 0:i.credits):"")},Tg=function(){return c(this,To)==="history"?c(this,_a):c(this,Sp)},bp=function(){let t=c(this,_n);if(t===void 0)return;let n=t.querySelector("[data-reticle-current-annotation-actions]");n!==null&&(n.hidden=c(this,To)==="history"),t.querySelectorAll("[data-reticle-annotation-tab]").forEach(i=>i.setAttribute("aria-pressed",String(i.getAttribute("data-reticle-annotation-tab")===c(this,To))));let r=t.querySelector("[data-reticle-annotation-list]");if(r===null)return;r.replaceChildren();let o=T(this,he,Tg).call(this);if(o.length===0){let i=document.createElement("div");i.className="reticle-annotation-empty";let s=document.createElement("strong"),a=document.createElement("span"),l=c(this,To)==="history";s.textContent=l?Tl.HISTORY_EMPTY:Tl.PAGE_EMPTY,a.textContent=l?Tl.HISTORY_HINT:Tl.PAGE_HINT,i.append(s,a),r.appendChild(i);return}o.forEach((i,s)=>{let a=document.createElement("div");a.className="reticle-annotation-item";let l=document.createElement("div");l.className="reticle-annotation-content";let u=document.createElement("strong");u.textContent=i.note;let d=document.createElement("span");d.textContent=`${i.label} \xB7 ${i.route}${i.source===void 0?"":` \xB7 ${i.source}`}`,l.append(u,d);let f=document.createElement("button");f.type="button",f.textContent="Copy",f.setAttribute("data-reticle-copy-note",String(s)),a.append(l,f),r.appendChild(a)})},LP=function(){let t=T(this,he,Tg).call(this);t.length>0&&T(this,he,Ex).call(this,t,c(this,To)==="history"?location.origin:location.href)},Ex=function(t,n){var r;(r=navigator.clipboard)==null||r.writeText(Tm(t,n)).catch(()=>{})}});function N9(e){let{name:t,done:n,total:r,status:o}=e;if(!(typeof t!="string"||typeof n!="number"||typeof r!="number")&&Object.values(hc).includes(o))return{name:t,done:n,total:r,status:o}}function I9(e){let t=e.replace(/[-_]+/g," ").trim();return t.length===0?e:t.charAt(0).toUpperCase()+t.slice(1)}function DP(e,t){let n=t?se.PLAY:se.PAUSE,r=t?Cl.RESUME:Cl.PAUSE;e.setAttribute("aria-label",r),e.setAttribute("title",r),e.replaceChildren(go(n,xe.TOOLBAR)),e.classList.toggle("reticle-tb-btn--primary",t),e.setAttribute("data-active",t?"1":"0")}function C9(e){var t,n,r,o,i,s,a;return{pauseBtn:(t=e.querySelector("[data-reticle-pause]"))!=null?t:void 0,endBtn:(n=e.querySelector("[data-reticle-end]"))!=null?n:void 0,banner:(r=e.querySelector("[data-reticle-banner]"))!=null?r:void 0,copyBtn:(o=e.querySelector("[data-reticle-copy]"))!=null?o:void 0,exportBtn:(i=e.querySelector("[data-reticle-export]"))!=null?i:void 0,exportMsg:(s=e.querySelector("[data-reticle-export-msg]"))!=null?s:void 0,allFlows:(a=e.querySelector("[data-reticle-all-flows]"))!=null?a:void 0}}var T9,$P,x9,A9,Cl,y9,MP,kP,zP,w9,v9,R9,O9,UP,yg,HP,PP,wg,FP,BP,GP,VP,In,mi,vo,wa,yp,Ll,$l,kl,zl,va,qn,ft,Sx,jP,KP,ZP,WP,vg,Ng,Rg,Tx=y(()=>{"use strict";Ot();M();mt();Lt();Pr();hl();qT();Ag();T9="data-reticle-state",$P="data-reticle-tone",x9="data-on",A9="0",Cl={PAUSE:"Pause",RESUME:"Resume",END:"End",SEND:"Send"},y9="PAUSED",MP="Session ended",kP="Copy run",zP="Export",w9=6e3,v9={[hc.PLAYING]:"\u23F5",[hc.PASSED]:"\u2713",[hc.FAILED]:"\u2717"};R9="Copied \u2713",O9="reticle-run.json",UP=4e3,yg={REPLAYABLE:"Replay without an agent",ELSEWHERE:"Starts on another page",EMPTY_TITLE:"No saved flows yet",EMPTY_HINT:"Every journey your agent verifies is saved here, ready to replay in one click."};HP=`
619
+ ${NP}`,Ex="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reticle-harness-stop])";yg=class{constructor(t,n,r){x(this,he);x(this,_n);x(this,Ei,kP().view);x(this,Sp,kP().runFocused);x(this,yl,!1);x(this,wo,"current");x(this,Tp,[]);x(this,Sa,U9());x(this,wl);x(this,vl);x(this,fs,0);x(this,Nl,!1);x(this,xp);x(this,Rl);x(this,Ta);x(this,vo);x(this,xa);x(this,No);x(this,hs,fg);x(this,Aa,"");x(this,Ol,"");x(this,Il,"");x(this,ya,!1);x(this,Ro);x(this,Cl,new Sg);x(this,wa);x(this,Ll);x(this,Oo);x(this,Ap);x(this,yp);g(this,xp,t),g(this,Rl,n),g(this,vo,r)}mount(t){var i,s,a,l,u,d,f;g(this,_n,t),g(this,Ta,new AbortController);let n=c(this,Ta).signal;t.querySelectorAll("[data-reticle-chat-view-btn]").forEach(m=>m.addEventListener("click",()=>{let h=m.getAttribute("data-reticle-chat-view-btn");c(this,Rl).call(this,h),this.open(h)},{signal:n})),(i=t.querySelector("[data-reticle-chat-impact]"))==null||i.addEventListener("click",()=>c(this,xp).call(this),{signal:n});let r=m=>{var v,N,O,k,j;let h=m.target;if(!(h instanceof Element))return;if(h.closest(`[${mg}]`)!==null){c(this,Rl).call(this,"harness"),this.open("harness");return}if(h.closest(`[${dx}]`)!==null){(v=c(this,vo))==null||v.setHarness(!0);return}let E=h.closest(`[${px}]`);if(E!==null){let Y=E.getAttribute("aria-checked")!=="true";E.setAttribute("aria-checked",String(Y)),(N=c(this,vo))==null||N.setHarness(Y);return}let _=h.closest(`[${mp}],[${ap}]:not([${qt}])`);if(_!==null){if(_.disabled)return;g(this,ya,!0),c(this,Ro)!==void 0&&clearTimeout(c(this,Ro)),g(this,Ro,setTimeout(()=>{g(this,Ro,void 0),g(this,ya,!1),T(this,he,Zr).call(this)},OP)),(O=c(this,vo))==null||O.link(),T(this,he,Zr).call(this);return}let A=h.closest("[data-reticle-harness-run]");if(A!==null){if(A.disabled)return;g(this,wa,c(this,hs)),g(this,yp,c(this,Ap)),T(this,he,Tg).call(this,!0),(k=c(this,vo))==null||k.run(dP(c(this,hs),c(this,Aa)));return}if(h.closest("[data-reticle-harness-stop]")!==null){(j=c(this,vo))==null||j.stop();return}};(s=t.querySelector("[data-reticle-harness-spot]"))==null||s.addEventListener("click",r,{signal:n}),(a=t.querySelector("[data-reticle-harness-page]"))==null||a.addEventListener("click",r,{signal:n}),(l=t.querySelector(`[${fl}]`))==null||l.addEventListener("click",r,{signal:n});let o=t.querySelector("[data-reticle-harness-page]");o==null||o.addEventListener("change",m=>{var _,A;let h=m.target;if(!(h instanceof HTMLSelectElement))return;let E=lx(h.value);E!==void 0&&(g(this,hs,E),hP(c(this,No),E),T(this,he,Zr).call(this),(A=(_=c(this,_n))==null?void 0:_.querySelector(`#${Sl}`))==null||A.focus())},{signal:n}),o==null||o.addEventListener("input",m=>{m.target instanceof HTMLInputElement&&g(this,Aa,m.target.value)},{signal:n}),c(this,Cl).mount(t,n),t.querySelectorAll("[data-reticle-annotation-tab]").forEach(m=>m.addEventListener("click",()=>{g(this,wo,m.getAttribute("data-reticle-annotation-tab")==="history"?"history":"current"),T(this,he,_p).call(this)},{signal:n})),(u=t.querySelector("[data-reticle-annotate-btn]"))==null||u.addEventListener("click",()=>{g(this,wo,"current"),T(this,he,_p).call(this)},{signal:n}),(d=t.querySelector("[data-reticle-copy-all-notes]"))==null||d.addEventListener("click",()=>T(this,he,GP).call(this),{signal:n}),t.querySelectorAll("[data-reticle-page-close]").forEach(m=>m.addEventListener("click",()=>this.closePage(),{signal:n})),(f=t.querySelector("[data-reticle-annotation-list]"))==null||f.addEventListener("click",m=>{let h=m.target;if(!(h instanceof Element))return;let E=h.closest("[data-reticle-copy-note]");if(E===null)return;let _=Number(E.getAttribute("data-reticle-copy-note"));if(!Number.isInteger(_))return;let A=T(this,he,Ag).call(this)[_];A!==void 0&&T(this,he,xx).call(this,[A],"pageUrl"in A?A.pageUrl:location.href)},{signal:n}),t.addEventListener("focusin",m=>T(this,he,Sx).call(this,m.target instanceof Element&&m.target.matches(Ex)),{signal:n}),t.addEventListener("focusout",m=>{let h=m.relatedTarget;T(this,he,Sx).call(this,h instanceof Element&&h.matches(Ex))},{signal:n}),this.open(c(this,Ei)),T(this,he,Zr).call(this),this.paintImpact(c(this,fs)),T(this,he,_p).call(this)}teardown(){var t;T(this,he,Tg).call(this,!1),(t=c(this,Ta))==null||t.abort(),g(this,Ta,void 0),g(this,_n,void 0),g(this,Ol,""),g(this,Il,""),c(this,Cl).teardown()}open(t){var o;if(t!=="activity"&&!zP.includes(t))return;g(this,Ei,t),bx({view:t,runFocused:c(this,yl)});let n=c(this,_n);if(n===void 0)return;t==="activity"?n.removeAttribute("data-reticle-page-open"):n.setAttribute("data-reticle-page-open",t);let r=n.querySelector("[data-reticle-chat-panel]");r!==null&&(r.hidden=t!=="activity"),n.querySelectorAll("[data-reticle-page-panel]").forEach(i=>{i.hidden=i.getAttribute("data-reticle-page-panel")!==t}),(o=c(this,_n))==null||o.querySelectorAll("[data-reticle-chat-view-btn]").forEach(i=>{i.getAttribute("data-reticle-chat-view-btn")===t?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current")})}closePage(){let t=c(this,_n);t!==void 0&&(t.removeAttribute("data-reticle-page-open"),t.querySelectorAll("[data-reticle-page-panel]").forEach(n=>{n.hidden=!0}),g(this,Ei,"activity"),bx({view:"activity",runFocused:!1}),t.querySelectorAll("[data-reticle-chat-view-btn]").forEach(n=>{n.removeAttribute("aria-current")}))}setProjectId(t){g(this,No,t),g(this,hs,fP(t)),T(this,he,Zr).call(this),T(this,he,xg).call(this)}paintAgent(t){c(this,Cl).paint(t),T(this,he,Tx).call(this)}paintAccount(t){var r;g(this,wl,t);let n=(r=c(this,_n))==null?void 0:r.querySelector('[data-reticle-chat-view-btn="harness"]');n!=null&&(n.hidden=(t==null?void 0:t.signedIn)!==!0),T(this,he,Zr).call(this)}paintDrive(t,n){g(this,xa,t);let r=(n==null?void 0:n.runUrl)!==void 0&&Er(n.runUrl)?de(n.runUrl):void 0;g(this,Ll,n===void 0?void 0:{...r===void 0?{}:{runUrl:r},...n.said===void 0?{}:{said:n.said}}),g(this,Ap,n==null?void 0:n.seq);let o=(n==null?void 0:n.seq)!==void 0&&n.seq!==c(this,yp)&&c(this,Oo)!==void 0;(t!==void 0||o)&&T(this,he,Tg).call(this,!1),t===void 0&&c(this,Oo)===void 0&&g(this,wa,void 0),T(this,he,Zr).call(this)}paintHarness(t){t!==void 0&&(g(this,ya,!1),c(this,Ro)!==void 0&&clearTimeout(c(this,Ro)),g(this,Ro,void 0)),g(this,vl,t),T(this,he,Zr).call(this)}paintImpact(t){g(this,fs,t),c(this,Nl)&&IP(c(this,No),t),T(this,he,xg).call(this)}setImpactOpen(t){g(this,Nl,t),t&&IP(c(this,No),c(this,fs)),T(this,he,xg).call(this)}paintAnnotations(t){var i;g(this,Tp,[...t]);let n=location.href,r=new Map(c(this,Sa).map(s=>[s.id,s]));for(let s of t)r.set(s.id,{...s,pageUrl:n});g(this,Sa,[...r.values()].sort((s,a)=>a.createdAt-s.createdAt).slice(0,Ax)),F9(c(this,Sa));let o=(i=c(this,_n))==null?void 0:i.querySelector("[data-reticle-note-count]");o!=null&&(o.hidden=t.length===0,o.textContent=String(t.length)),T(this,he,_p).call(this)}};_n=new WeakMap,Ei=new WeakMap,Sp=new WeakMap,yl=new WeakMap,wo=new WeakMap,Tp=new WeakMap,Sa=new WeakMap,wl=new WeakMap,vl=new WeakMap,fs=new WeakMap,Nl=new WeakMap,xp=new WeakMap,Rl=new WeakMap,Ta=new WeakMap,vo=new WeakMap,xa=new WeakMap,No=new WeakMap,hs=new WeakMap,Aa=new WeakMap,Ol=new WeakMap,Il=new WeakMap,ya=new WeakMap,Ro=new WeakMap,Cl=new WeakMap,wa=new WeakMap,Ll=new WeakMap,Oo=new WeakMap,Ap=new WeakMap,yp=new WeakMap,he=new WeakSet,Sx=function(t){t!==c(this,yl)&&(g(this,yl,t),bx({view:c(this,Ei),runFocused:t}))},Tg=function(t){c(this,Oo)!==void 0&&clearTimeout(c(this,Oo)),g(this,Oo,t?setTimeout(()=>{g(this,Oo,void 0),c(this,xa)===void 0&&g(this,wa,void 0),T(this,he,Zr).call(this)},OP):void 0),t&&T(this,he,Zr).call(this)},xg=function(){var i;let t=(i=c(this,_n))==null?void 0:i.querySelector("[data-reticle-chat-impact]"),n=t==null?void 0:t.querySelector("[data-reticle-impact-dot]");if(t==null||n===void 0||n===null)return;let r=c(this,Nl)?c(this,fs):H9(c(this,No)),o=r!==void 0&&c(this,fs)>r;n.hidden=!o,t.setAttribute("aria-label",o?_x.NEW:_x.SEEN)},Zr=function(){let t=c(this,_n),n=t==null?void 0:t.querySelector("[data-reticle-harness-spot]");if(t===void 0||n===null||n===void 0)return;let r=c(this,wl),o=c(this,vl);n.hidden=!1;let i=yx(o,r!=null?r:{signedIn:!1}),s=c(this,No)===void 0?"":`&project=${encodeURIComponent(c(this,No))}`,a={account:r,config:o,drive:c(this,xa),canDrive:c(this,vo)!==void 0,pick:c(this,hs),startedAs:c(this,wa),setupUrl:`${i}${k9}${s}${z9}`,planUrl:(o==null?void 0:o.planUrl)!==void 0&&Er(o.planUrl)?de(o.planUrl):`${i}${D9}`,linking:c(this,ya),starting:c(this,Oo)!==void 0&&c(this,xa)===void 0,...c(this,Ll)===void 0?{}:{last:c(this,Ll)}},l=bP(a);l!==c(this,Ol)&&(sp(n,l),g(this,Ol,l)),r!==void 0&&!r.signedIn&&c(this,Ei)==="harness"&&this.closePage();let u=t.querySelector("[data-reticle-harness-page]");if(u!==null){let d=_P(a);d!==c(this,Il)&&(sp(u,d),g(this,Il,d));let f=c(this,Sp)?u.querySelector(Ex):null;f!==null&&c(this,Ei)==="harness"&&(g(this,Sp,!1),f.focus());let m=u.querySelector("[data-reticle-harness-persona]");m!==null&&m.value!==c(this,Aa)&&(m.value=c(this,Aa))}T(this,he,Tx).call(this)},Tx=function(){var r,o,i;let t=((r=c(this,wl))==null?void 0:r.signedIn)===!0,n=(o=c(this,_n))==null?void 0:o.querySelector("[data-reticle-harness-page-meta]");n!=null&&(n.textContent=t?EP((i=c(this,vl))==null?void 0:i.credits):"")},Ag=function(){return c(this,wo)==="history"?c(this,Sa):c(this,Tp)},_p=function(){let t=c(this,_n);if(t===void 0)return;let n=t.querySelector("[data-reticle-current-annotation-actions]");n!==null&&(n.hidden=c(this,wo)==="history"),t.querySelectorAll("[data-reticle-annotation-tab]").forEach(i=>i.setAttribute("aria-pressed",String(i.getAttribute("data-reticle-annotation-tab")===c(this,wo))));let r=t.querySelector("[data-reticle-annotation-list]");if(r===null)return;r.replaceChildren();let o=T(this,he,Ag).call(this);if(o.length===0){let i=document.createElement("div");i.className="reticle-annotation-empty";let s=document.createElement("strong"),a=document.createElement("span"),l=c(this,wo)==="history";s.textContent=l?Al.HISTORY_EMPTY:Al.PAGE_EMPTY,a.textContent=l?Al.HISTORY_HINT:Al.PAGE_HINT,i.append(s,a),r.appendChild(i);return}o.forEach((i,s)=>{let a=document.createElement("div");a.className="reticle-annotation-item";let l=document.createElement("div");l.className="reticle-annotation-content";let u=document.createElement("strong");u.textContent=i.note;let d=document.createElement("span");d.textContent=`${i.label} \xB7 ${i.route}${i.source===void 0?"":` \xB7 ${i.source}`}`,l.append(u,d);let f=document.createElement("button");f.type="button",f.textContent="Copy",f.setAttribute("data-reticle-copy-note",String(s)),a.append(l,f),r.appendChild(a)})},GP=function(){let t=T(this,he,Ag).call(this);t.length>0&&T(this,he,xx).call(this,t,c(this,wo)==="history"?location.origin:location.href)},xx=function(t,n){var r;(r=navigator.clipboard)==null||r.writeText(Am(t,n)).catch(()=>{})}});function W9(e){let{name:t,done:n,total:r,status:o}=e;if(!(typeof t!="string"||typeof n!="number"||typeof r!="number")&&Object.values(mc).includes(o))return{name:t,done:n,total:r,status:o}}function q9(e){let t=e.replace(/[-_]+/g," ").trim();return t.length===0?e:t.charAt(0).toUpperCase()+t.slice(1)}function ZP(e,t){let n=t?se.PLAY:se.PAUSE,r=t?$l.RESUME:$l.PAUSE;e.setAttribute("aria-label",r),e.setAttribute("title",r),e.replaceChildren(So(n,Ae.TOOLBAR)),e.classList.toggle("reticle-tb-btn--primary",t),e.setAttribute("data-active",t?"1":"0")}function J9(e){var t,n,r,o,i,s,a;return{pauseBtn:(t=e.querySelector("[data-reticle-pause]"))!=null?t:void 0,endBtn:(n=e.querySelector("[data-reticle-end]"))!=null?n:void 0,banner:(r=e.querySelector("[data-reticle-banner]"))!=null?r:void 0,copyBtn:(o=e.querySelector("[data-reticle-copy]"))!=null?o:void 0,exportBtn:(i=e.querySelector("[data-reticle-export]"))!=null?i:void 0,exportMsg:(s=e.querySelector("[data-reticle-export-msg]"))!=null?s:void 0,allFlows:(a=e.querySelector("[data-reticle-all-flows]"))!=null?a:void 0}}var B9,VP,G9,V9,$l,j9,YP,jP,KP,K9,Z9,Y9,X9,XP,vg,qP,WP,Ng,JP,QP,eM,tM,In,bi,Io,va,wp,kl,zl,Dl,Pl,Na,qn,ht,wx,nM,rM,oM,iM,Rg,Og,Ig,vx=y(()=>{"use strict";Ot();M();dt();Ct();Hr();gl();nx();wg();B9="data-reticle-state",VP="data-reticle-tone",G9="data-on",V9="0",$l={PAUSE:"Pause",RESUME:"Resume",END:"End",SEND:"Send"},j9="PAUSED",YP="Session ended",jP="Copy run",KP="Export",K9=6e3,Z9={[mc.PLAYING]:"\u23F5",[mc.PASSED]:"\u2713",[mc.FAILED]:"\u2717"};Y9="Copied \u2713",X9="reticle-run.json",XP=4e3,vg={REPLAYABLE:"Replay without an agent",ELSEWHERE:"Starts on another page",EMPTY_TITLE:"No saved flows yet",EMPTY_HINT:"Every journey your agent verifies is saved here, ready to replay in one click."};qP=`
620
620
  [data-reticle-chat-panel] [data-reticle-foot]{flex:none;padding:6px 10px 8px;border-top:1px solid rgba(255,255,255,.07);
621
621
  background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,.55) 100%);pointer-events:auto;}
622
622
  [data-reticle-chat-panel] .reticle-foot-workspace-row{display:flex;flex-wrap:wrap;align-items:center;min-width:0;}
@@ -719,7 +719,7 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
719
719
  [data-reticle-chat-panel] .reticle-marks-copy[data-copied="1"]{color:#22c55e;border-color:#22c55e;}
720
720
  [data-reticle-hud] .reticle-export-msg{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
721
721
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
722
- `;PP="Copy for your agent",wg=xe.TOOLBAR,FP=`<button type="button" data-reticle-pause class="reticle-status-btn" title="${Cl.PAUSE}" aria-label="${Cl.PAUSE}">${Ie(se.PAUSE,wg)}</button><span data-reticle-badge class="reticle-pause-badge">${y9}</span><button type="button" data-reticle-end class="reticle-status-btn reticle-status-stop" title="${Cl.END}" aria-label="${Cl.END}">${Ie(se.STOP,wg)}</button><button type="button" data-reticle-copy class="reticle-status-btn" title="${kP}" aria-label="${kP}" hidden>${Ie(se.COPY,wg)}</button><button type="button" data-reticle-export class="reticle-status-btn" title="${zP}" aria-label="${zP}" hidden>${Ie(se.DOWNLOAD,wg)}</button><span data-reticle-export-msg class="reticle-export-msg" aria-live="polite"></span>`,BP=`<div data-reticle-banner class="reticle-banner">${MP}</div>`,GP=`<div ${Bm} class="reticle-marks-row" hidden><span data-reticle-marks-text class="reticle-marks-text"></span><button type="button" ${Fm} class="reticle-marks-copy" title="${PP}">${Ie(se.COPY,xe.HELP)}<span>${PP}</span></button></div>`,VP=`<div data-reticle-foot><div class="reticle-foot-stack">${vP}<div class="reticle-foot-workspace-row">${GD()}</div></div></div>`;Rg=class{constructor(t){x(this,ft);x(this,In,{pauseBtn:void 0,endBtn:void 0,banner:void 0,copyBtn:void 0,exportBtn:void 0,exportMsg:void 0,allFlows:void 0});x(this,mi,Ye.ACTIVE);x(this,vo);x(this,wa);x(this,yp);x(this,Ll,[]);x(this,$l);x(this,kl);x(this,zl);x(this,va);x(this,qn);g(this,qn,t)}get state(){return c(this,mi)}mount(t,n){var s,a,l,u,d;g(this,va,new AbortController);let{signal:r}=c(this,va);g(this,wa,t),g(this,yp,n),g(this,In,C9(t));let o=c(this,In).pauseBtn;o!==void 0&&DP(o,c(this,mi)===Ye.PAUSED),(s=c(this,In).pauseBtn)==null||s.addEventListener("click",()=>T(this,ft,ZP).call(this),{signal:r}),(a=c(this,In).endBtn)==null||a.addEventListener("click",()=>T(this,ft,WP).call(this),{signal:r});let i=f=>{let m=f.target;if(!(m instanceof HTMLElement))return;let h=m.closest("[data-reticle-replay]");if(h===null||h.disabled)return;let E=h.getAttribute("data-reticle-replay");E!==null&&E.length>0&&c(this,qn).emit(ln.REPLAY,E)};(l=c(this,In).allFlows)==null||l.addEventListener("click",i,{signal:r}),(u=c(this,In).copyBtn)==null||u.addEventListener("click",()=>T(this,ft,jP).call(this),{signal:r}),(d=c(this,In).exportBtn)==null||d.addEventListener("click",()=>T(this,ft,KP).call(this),{signal:r}),g(this,zl,VD(t)),T(this,ft,Ng).call(this),this.setState(Ye.ACTIVE)}teardown(){var t,n;(t=c(this,va))==null||t.abort(),g(this,va,void 0),(n=c(this,zl))==null||n.call(this),g(this,zl,void 0),c(this,vo)!==void 0&&Re(c(this,vo)),g(this,vo,void 0)}setFlowProgress(t){let n=N9(t);n!==void 0&&(g(this,$l,n),c(this,kl)!==void 0&&Re(c(this,kl)),g(this,kl,hc.PLAYING===n.status?void 0:ue(()=>{g(this,$l,void 0),T(this,ft,vg).call(this)},w9)),T(this,ft,vg).call(this))}setFlows(t){let n=Array.isArray(t)?t:[];g(this,Ll,n.map(r=>{if(typeof r=="string")return r.length>0?{name:r}:null;if(typeof r=="object"&&r!==null){let o=r,i=o.name;if(typeof i!="string"||i.length===0)return null;let s=o.start,a=o.createdAt;return{name:i,...typeof s=="string"&&s.length>0?{start:s}:{},...typeof a=="number"&&Number.isFinite(a)?{createdAt:a}:{}}}return null}).filter(r=>r!==null)),T(this,ft,Ng).call(this)}refilterFlows(){T(this,ft,Ng).call(this)}setState(t,n,r){var a,l,u,d,f;g(this,mi,t),(a=c(this,wa))==null||a.setAttribute(T9,t);let o=r!==void 0&&r!==gc.CALM;o?(l=c(this,wa))==null||l.setAttribute($P,r):(u=c(this,wa))==null||u.removeAttribute($P),c(this,vo)!==void 0&&(Re(c(this,vo)),g(this,vo,void 0));let i=c(this,In),s=t===Ye.ENDED;if(i.pauseBtn!==void 0&&(DP(i.pauseBtn,t===Ye.PAUSED),i.pauseBtn.hidden=s),i.endBtn!==void 0&&(i.endBtn.hidden=s),i.copyBtn!==void 0&&(s?i.copyBtn.removeAttribute("hidden"):i.copyBtn.setAttribute("hidden","")),i.exportBtn!==void 0&&(s?i.exportBtn.removeAttribute("hidden"):i.exportBtn.setAttribute("hidden","")),i.banner!==void 0){let m=n!==void 0&&n.trim().length>0?n.trim():"";i.banner.textContent=o&&m.length>0?m:`${MP}${m.length>0?` \xB7 ${m}`:""}`}if(s){let m=c(this,yp);g(this,vo,ue(()=>{m==null||m.setAttribute(x9,A9)},c(this,qn).endedFadeMs))}(f=(d=c(this,qn)).onStateChange)==null||f.call(d,t)}};In=new WeakMap,mi=new WeakMap,vo=new WeakMap,wa=new WeakMap,yp=new WeakMap,Ll=new WeakMap,$l=new WeakMap,kl=new WeakMap,zl=new WeakMap,va=new WeakMap,qn=new WeakMap,ft=new WeakSet,Sx=function(){return JSON.stringify(c(this,qn).runState(),null,2)},jP=function(){var n,r,o;(n=navigator.clipboard)==null||n.writeText(T(this,ft,Sx).call(this)),_r().clearOnCopy&&((o=(r=c(this,qn)).clearRunLog)==null||o.call(r));let t=c(this,In).exportMsg;t!==void 0&&(t.textContent=R9,t.setAttribute("data-show","1"),ue(()=>t.setAttribute("data-show","0"),1600))},KP=function(){var o,i;let t=new Blob([T(this,ft,Sx).call(this)],{type:"application/json"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=O9,r.click(),URL.revokeObjectURL(n),_r().clearOnCopy&&((i=(o=c(this,qn)).clearRunLog)==null||i.call(o))},ZP=function(){c(this,mi)===Ye.PAUSED?(c(this,qn).emit(ln.RESUME),this.setState(Ye.ACTIVE)):c(this,mi)===Ye.ACTIVE&&(c(this,qn).emit(ln.PAUSE),this.setState(Ye.PAUSED))},WP=function(){c(this,mi)!==Ye.ENDED&&(c(this,qn).emit(ln.END),this.setState(Ye.ENDED))},vg=function(){var n,r,o;let t=c(this,$l);for(let i of(r=(n=c(this,In).allFlows)==null?void 0:n.querySelectorAll("[data-reticle-replay]"))!=null?r:[]){let s=(o=i.getAttribute("data-reticle-replay"))!=null?o:"";if(!(t!==void 0&&t.name===s)){i.removeAttribute("data-state"),i.style.removeProperty("--reticle-flow-progress"),i.classList.contains("reticle-flow")&&(i.textContent=`\u25B6 ${s}`);continue}let l=0<t.total?Math.round(100*t.done/t.total):4;i.setAttribute("data-state",t.status),i.style.setProperty("--reticle-flow-progress",`${String(Math.max(4,l))}%`);let u=v9[t.status];i.classList.contains("reticle-flow")&&(i.textContent=`${u} ${s}`);let d=i.querySelector(".reticle-flow-play");d!==null&&(d.textContent=u);let f=i.querySelector(".reticle-flow-meta");f!==null&&0<t.total&&(f.textContent=`Step ${String(t.done)} of ${String(t.total)}`)}},Ng=function(){let t=c(this,In).allFlows;if(t===void 0)return;let n=t.ownerDocument,r=new Set(Array.from(n.querySelectorAll(Vn())).map(s=>ve(s))),o=s=>s.start===void 0||r.has(s.start);t.replaceChildren();let i=(s,a,l)=>{let u=n.createElement("button");u.type="button",u.className="reticle-flow-row",u.setAttribute("data-reticle-replay",a.name),u.title=a.name,u.disabled=!l;let d=n.createElement("span");d.className="reticle-flow-play",d.setAttribute("aria-hidden","true"),d.textContent="\u25B6";let f=n.createElement("span");f.className="reticle-flow-text";let m=n.createElement("span");m.className="reticle-flow-name",m.textContent=I9(a.name);let h=n.createElement("span");h.className="reticle-flow-meta",h.textContent=l?yg.REPLAYABLE:yg.ELSEWHERE,f.append(m,h),u.append(d,f),s.appendChild(u)};if(c(this,Ll).length===0){let s=n.createElement("div");s.className="reticle-flows-empty";let a=n.createElement("strong");a.textContent=yg.EMPTY_TITLE;let l=n.createElement("span");l.textContent=yg.EMPTY_HINT,s.append(a,l),t.appendChild(s)}else for(let s of[...c(this,Ll)].sort((a,l)=>{var u,d;return((u=l.createdAt)!=null?u:0)-((d=a.createdAt)!=null?d:0)}))i(t,s,o(s));T(this,ft,vg).call(this)}});var ge,K,ce,jr,xx,YP,XP=y(()=>{"use strict";ci();Lt();Lt();Fr();ge="data-reticle-overlay",K="data-reticle-hud",ce="data-reticle-chat-panel",jr="data-reticle-state",xx="data-reticle-tone",YP=`
722
+ `;WP="Copy for your agent",Ng=Ae.TOOLBAR,JP=`<button type="button" data-reticle-pause class="reticle-status-btn" title="${$l.PAUSE}" aria-label="${$l.PAUSE}">${Ie(se.PAUSE,Ng)}</button><span data-reticle-badge class="reticle-pause-badge">${j9}</span><button type="button" data-reticle-end class="reticle-status-btn reticle-status-stop" title="${$l.END}" aria-label="${$l.END}">${Ie(se.STOP,Ng)}</button><button type="button" data-reticle-copy class="reticle-status-btn" title="${jP}" aria-label="${jP}" hidden>${Ie(se.COPY,Ng)}</button><button type="button" data-reticle-export class="reticle-status-btn" title="${KP}" aria-label="${KP}" hidden>${Ie(se.DOWNLOAD,Ng)}</button><span data-reticle-export-msg class="reticle-export-msg" aria-live="polite"></span>`,QP=`<div data-reticle-banner class="reticle-banner">${YP}</div>`,eM=`<div ${Vm} class="reticle-marks-row" hidden><span data-reticle-marks-text class="reticle-marks-text"></span><button type="button" ${Gm} class="reticle-marks-copy" title="${WP}">${Ie(se.COPY,Ae.HELP)}<span>${WP}</span></button></div>`,tM=`<div data-reticle-foot><div class="reticle-foot-stack">${PP}<div class="reticle-foot-workspace-row">${eP()}</div></div></div>`;Ig=class{constructor(t){x(this,ht);x(this,In,{pauseBtn:void 0,endBtn:void 0,banner:void 0,copyBtn:void 0,exportBtn:void 0,exportMsg:void 0,allFlows:void 0});x(this,bi,Xe.ACTIVE);x(this,Io);x(this,va);x(this,wp);x(this,kl,[]);x(this,zl);x(this,Dl);x(this,Pl);x(this,Na);x(this,qn);g(this,qn,t)}get state(){return c(this,bi)}mount(t,n){var s,a,l,u,d;g(this,Na,new AbortController);let{signal:r}=c(this,Na);g(this,va,t),g(this,wp,n),g(this,In,J9(t));let o=c(this,In).pauseBtn;o!==void 0&&ZP(o,c(this,bi)===Xe.PAUSED),(s=c(this,In).pauseBtn)==null||s.addEventListener("click",()=>T(this,ht,oM).call(this),{signal:r}),(a=c(this,In).endBtn)==null||a.addEventListener("click",()=>T(this,ht,iM).call(this),{signal:r});let i=f=>{let m=f.target;if(!(m instanceof HTMLElement))return;let h=m.closest("[data-reticle-replay]");if(h===null||h.disabled)return;let E=h.getAttribute("data-reticle-replay");E!==null&&E.length>0&&c(this,qn).emit(ln.REPLAY,E)};(l=c(this,In).allFlows)==null||l.addEventListener("click",i,{signal:r}),(u=c(this,In).copyBtn)==null||u.addEventListener("click",()=>T(this,ht,nM).call(this),{signal:r}),(d=c(this,In).exportBtn)==null||d.addEventListener("click",()=>T(this,ht,rM).call(this),{signal:r}),g(this,Pl,tP(t)),T(this,ht,Og).call(this),this.setState(Xe.ACTIVE)}teardown(){var t,n;(t=c(this,Na))==null||t.abort(),g(this,Na,void 0),(n=c(this,Pl))==null||n.call(this),g(this,Pl,void 0),c(this,Io)!==void 0&&Re(c(this,Io)),g(this,Io,void 0)}setFlowProgress(t){let n=W9(t);n!==void 0&&(g(this,zl,n),c(this,Dl)!==void 0&&Re(c(this,Dl)),g(this,Dl,mc.PLAYING===n.status?void 0:ue(()=>{g(this,zl,void 0),T(this,ht,Rg).call(this)},K9)),T(this,ht,Rg).call(this))}setFlows(t){let n=Array.isArray(t)?t:[];g(this,kl,n.map(r=>{if(typeof r=="string")return r.length>0?{name:r}:null;if(typeof r=="object"&&r!==null){let o=r,i=o.name;if(typeof i!="string"||i.length===0)return null;let s=o.start,a=o.createdAt;return{name:i,...typeof s=="string"&&s.length>0?{start:s}:{},...typeof a=="number"&&Number.isFinite(a)?{createdAt:a}:{}}}return null}).filter(r=>r!==null)),T(this,ht,Og).call(this)}refilterFlows(){T(this,ht,Og).call(this)}setState(t,n,r){var a,l,u,d,f;g(this,bi,t),(a=c(this,va))==null||a.setAttribute(B9,t);let o=r!==void 0&&r!==Ec.CALM;o?(l=c(this,va))==null||l.setAttribute(VP,r):(u=c(this,va))==null||u.removeAttribute(VP),c(this,Io)!==void 0&&(Re(c(this,Io)),g(this,Io,void 0));let i=c(this,In),s=t===Xe.ENDED;if(i.pauseBtn!==void 0&&(ZP(i.pauseBtn,t===Xe.PAUSED),i.pauseBtn.hidden=s),i.endBtn!==void 0&&(i.endBtn.hidden=s),i.copyBtn!==void 0&&(s?i.copyBtn.removeAttribute("hidden"):i.copyBtn.setAttribute("hidden","")),i.exportBtn!==void 0&&(s?i.exportBtn.removeAttribute("hidden"):i.exportBtn.setAttribute("hidden","")),i.banner!==void 0){let m=n!==void 0&&n.trim().length>0?n.trim():"";i.banner.textContent=o&&m.length>0?m:`${YP}${m.length>0?` \xB7 ${m}`:""}`}if(s){let m=c(this,wp);g(this,Io,ue(()=>{m==null||m.setAttribute(G9,V9)},c(this,qn).endedFadeMs))}(f=(d=c(this,qn)).onStateChange)==null||f.call(d,t)}};In=new WeakMap,bi=new WeakMap,Io=new WeakMap,va=new WeakMap,wp=new WeakMap,kl=new WeakMap,zl=new WeakMap,Dl=new WeakMap,Pl=new WeakMap,Na=new WeakMap,qn=new WeakMap,ht=new WeakSet,wx=function(){return JSON.stringify(c(this,qn).runState(),null,2)},nM=function(){var n,r,o;(n=navigator.clipboard)==null||n.writeText(T(this,ht,wx).call(this)),Tr().clearOnCopy&&((o=(r=c(this,qn)).clearRunLog)==null||o.call(r));let t=c(this,In).exportMsg;t!==void 0&&(t.textContent=Y9,t.setAttribute("data-show","1"),ue(()=>t.setAttribute("data-show","0"),1600))},rM=function(){var o,i;let t=new Blob([T(this,ht,wx).call(this)],{type:"application/json"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=X9,r.click(),URL.revokeObjectURL(n),Tr().clearOnCopy&&((i=(o=c(this,qn)).clearRunLog)==null||i.call(o))},oM=function(){c(this,bi)===Xe.PAUSED?(c(this,qn).emit(ln.RESUME),this.setState(Xe.ACTIVE)):c(this,bi)===Xe.ACTIVE&&(c(this,qn).emit(ln.PAUSE),this.setState(Xe.PAUSED))},iM=function(){c(this,bi)!==Xe.ENDED&&(c(this,qn).emit(ln.END),this.setState(Xe.ENDED))},Rg=function(){var n,r,o;let t=c(this,zl);for(let i of(r=(n=c(this,In).allFlows)==null?void 0:n.querySelectorAll("[data-reticle-replay]"))!=null?r:[]){let s=(o=i.getAttribute("data-reticle-replay"))!=null?o:"";if(!(t!==void 0&&t.name===s)){i.removeAttribute("data-state"),i.style.removeProperty("--reticle-flow-progress"),i.classList.contains("reticle-flow")&&(i.textContent=`\u25B6 ${s}`);continue}let l=0<t.total?Math.round(100*t.done/t.total):4;i.setAttribute("data-state",t.status),i.style.setProperty("--reticle-flow-progress",`${String(Math.max(4,l))}%`);let u=Z9[t.status];i.classList.contains("reticle-flow")&&(i.textContent=`${u} ${s}`);let d=i.querySelector(".reticle-flow-play");d!==null&&(d.textContent=u);let f=i.querySelector(".reticle-flow-meta");f!==null&&0<t.total&&(f.textContent=`Step ${String(t.done)} of ${String(t.total)}`)}},Og=function(){let t=c(this,In).allFlows;if(t===void 0)return;let n=t.ownerDocument,r=new Set(Array.from(n.querySelectorAll(Vn())).map(s=>Ne(s))),o=s=>s.start===void 0||r.has(s.start);t.replaceChildren();let i=(s,a,l)=>{let u=n.createElement("button");u.type="button",u.className="reticle-flow-row",u.setAttribute("data-reticle-replay",a.name),u.title=a.name,u.disabled=!l;let d=n.createElement("span");d.className="reticle-flow-play",d.setAttribute("aria-hidden","true"),d.textContent="\u25B6";let f=n.createElement("span");f.className="reticle-flow-text";let m=n.createElement("span");m.className="reticle-flow-name",m.textContent=q9(a.name);let h=n.createElement("span");h.className="reticle-flow-meta",h.textContent=l?vg.REPLAYABLE:vg.ELSEWHERE,f.append(m,h),u.append(d,f),s.appendChild(u)};if(c(this,kl).length===0){let s=n.createElement("div");s.className="reticle-flows-empty";let a=n.createElement("strong");a.textContent=vg.EMPTY_TITLE;let l=n.createElement("span");l.textContent=vg.EMPTY_HINT,s.append(a,l),t.appendChild(s)}else for(let s of[...c(this,kl)].sort((a,l)=>{var u,d;return((u=l.createdAt)!=null?u:0)-((d=a.createdAt)!=null?d:0)}))i(t,s,o(s));T(this,ht,Rg).call(this)}});var ge,K,ce,Wr,Nx,sM,aM=y(()=>{"use strict";di();Ct();Ct();Vr();ge="data-reticle-overlay",K="data-reticle-hud",ce="data-reticle-chat-panel",Wr="data-reticle-state",Nx="data-reticle-tone",sM=`
723
723
  /**
724
724
  * ONE colour says what the session is doing, and the user picks all three.
725
725
  *
@@ -731,9 +731,9 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
731
731
  [${ge}]{
732
732
  --reticle-c-active:#3b82f6;--reticle-c-idle:#eab308;--reticle-c-ended:#ef4444;
733
733
  --reticle-state:var(--reticle-c-idle);}
734
- [${ge}][${Jd}="active"]{--reticle-state:var(--reticle-c-active);}
735
- [${ge}][${jr}="paused"]{--reticle-state:var(--reticle-c-idle);}
736
- [${ge}][${jr}="ended"]{--reticle-state:var(--reticle-c-ended);}
734
+ [${ge}][${Qd}="active"]{--reticle-state:var(--reticle-c-active);}
735
+ [${ge}][${Wr}="paused"]{--reticle-state:var(--reticle-c-idle);}
736
+ [${ge}][${Wr}="ended"]{--reticle-state:var(--reticle-c-ended);}
737
737
  [${F}]{
738
738
  --reticle-surface:color-mix(in srgb,var(--reticle-hud-surface) 78%,transparent);
739
739
  /* No literal here: --reticle-accent is published on the overlay from the chosen status theme.
@@ -769,7 +769,7 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
769
769
  * expensive thing in the whole SDK.
770
770
  */
771
771
  [${ce}]{
772
- ${sl}
772
+ ${cl}
773
773
  display:none;position:absolute;right:0;left:auto;bottom:calc(100% + 8px);top:auto;z-index:5;
774
774
  box-sizing:border-box;width:var(--reticle-dock-w);max-width:min(var(--reticle-dock-w),calc(100vw - 16px));
775
775
  height:min(var(--reticle-chat-max-h,var(--reticle-chat-h)),calc(100vh - 120px));
@@ -780,15 +780,15 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
780
780
  contain:layout style paint;
781
781
  transform:translateZ(0);
782
782
  pointer-events:none;}
783
- [${F}][${ui}="below"] [${ce}]{
783
+ [${F}][${fi}="below"] [${ce}]{
784
784
  bottom:auto;top:calc(100% + 8px);}
785
- [${F}][${Yt}="start"] [${ce}]{
785
+ [${F}][${Xt}="start"] [${ce}]{
786
786
  right:auto;left:0;}
787
787
  [${ge}][${yt}="1"] [${ce}]{
788
788
  display:flex;pointer-events:auto;}
789
789
  [${ce}][hidden]{display:none!important;}
790
- [${F}][${ui}="below"] [data-reticle-page-panel]{bottom:auto;top:calc(100% + 8px);}
791
- [${F}][${Yt}="start"] [data-reticle-page-panel]{right:auto;left:0;}
790
+ [${F}][${fi}="below"] [data-reticle-page-panel]{bottom:auto;top:calc(100% + 8px);}
791
+ [${F}][${Xt}="start"] [data-reticle-page-panel]{right:auto;left:0;}
792
792
  /**
793
793
  * Idle, and not blocking the page: the card is not in use.
794
794
  *
@@ -810,7 +810,7 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
810
810
  * clicked. Leaving the toolbar alone above an empty gap would make a minimised session look
811
811
  * identical to no session at all.
812
812
  */
813
- [${Ft}]{
813
+ [${Ht}]{
814
814
  display:none;position:absolute;right:0;left:auto;bottom:calc(100% + 8px);z-index:5;
815
815
  box-sizing:border-box;width:var(--reticle-dock-w);
816
816
  max-width:min(var(--reticle-dock-w),calc(100vw - 16px));
@@ -819,18 +819,18 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
819
819
  radial-gradient(120% 160% at 50% 0%,color-mix(in srgb,var(--reticle-state) 18%,transparent),transparent 70%),
820
820
  linear-gradient(180deg,rgba(13,15,22,.96),rgba(19,22,32,.94));
821
821
  border:1px solid color-mix(in srgb,var(--reticle-state) 26%,rgba(255,255,255,.1));
822
- box-shadow:${Hr},0 0 34px -14px var(--reticle-state);
822
+ box-shadow:${Gr},0 0 34px -14px var(--reticle-state);
823
823
  color:var(--reticle-muted);font-family:var(--reticle-font);font-size:11px;line-height:1;
824
824
  transition:transform .1s ease,border-color .2s ease;}
825
- [${F}][${ui}="below"] [${Ft}]{bottom:auto;top:calc(100% + 8px);}
826
- [${F}][${Yt}="start"] [${Ft}]{right:auto;left:0;}
827
- [${ge}][${Ke}="0"]:not([${yt}="1"]) [${Ft}]{
825
+ [${F}][${fi}="below"] [${Ht}]{bottom:auto;top:calc(100% + 8px);}
826
+ [${F}][${Xt}="start"] [${Ht}]{right:auto;left:0;}
827
+ [${ge}][${Ze}="0"]:not([${yt}="1"]) [${Ht}]{
828
828
  display:inline-flex;pointer-events:auto;}
829
- [${Ft}]:hover{border-color:color-mix(in srgb,var(--reticle-c-active) 45%,transparent);}
830
- [${Ft}]:active{transform:scale(.98);}
829
+ [${Ht}]:hover{border-color:color-mix(in srgb,var(--reticle-c-active) 45%,transparent);}
830
+ [${Ht}]:active{transform:scale(.98);}
831
831
  /* No dot in the capsule: the mark, the border and the glow already carry the state colour, and a
832
832
  pulsing dot next to a line of text that changes on its own was two things moving for one fact. */
833
- [${Ft}] .reticle-mark{flex:none;height:14px;width:auto;color:var(--reticle-fg);opacity:.9;}
833
+ [${Ht}] .reticle-mark{flex:none;height:14px;width:auto;color:var(--reticle-fg);opacity:.9;}
834
834
  /* Header: who this panel belongs to, and what the session is doing right now. */
835
835
  [${ce}] .reticle-chat-head{
836
836
  flex:none;display:flex;align-items:center;gap:8px;padding:11px 44px 9px 14px;
@@ -857,15 +857,15 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
857
857
  [${ce}] .reticle-view-heading strong{font-size:11px;font-weight:600;}
858
858
  /* No state word here: the activity strip immediately below already says "idle \xB7 21s", and the
859
859
  dot in front of it carries the same colour. One fact, one place. */
860
- [${Ft}] .reticle-chat-pill-text{
860
+ [${Ht}] .reticle-chat-pill-text{
861
861
  flex:1;text-align:left;
862
862
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
863
863
  font-variant-numeric:tabular-nums;letter-spacing:.01em;}
864
- [${Ft}] .reticle-chat-pill-time{
864
+ [${Ht}] .reticle-chat-pill-time{
865
865
  flex:none;color:var(--reticle-faint);font-variant-numeric:tabular-nums;}
866
- [${Ft}] .reticle-chat-pill-caret{
866
+ [${Ht}] .reticle-chat-pill-caret{
867
867
  flex:none;display:inline-flex;color:var(--reticle-faint);line-height:0;transform:rotate(180deg);}
868
- [${Ft}] .reticle-chat-pill-caret svg{
868
+ [${Ht}] .reticle-chat-pill-caret svg{
869
869
  display:block;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
870
870
  /* Minimise the chat without collapsing the whole HUD \u2014 sits over the panel's top-right corner. */
871
871
  [${F}] .reticle-chat-min{
@@ -876,14 +876,14 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
876
876
  [${F}] .reticle-chat-min:hover{background:rgba(255,255,255,.07);color:var(--reticle-fg);}
877
877
  [${F}] .reticle-chat-min svg{display:block;fill:none;stroke:currentColor;stroke-width:1.5;
878
878
  stroke-linecap:round;stroke-linejoin:round;}
879
- [${ge}][${Km}="0"] [${Wd}]{display:none;}
880
- [${ge}][${Eo}="1"] [${K}],
881
- [${ge}][${Eo}="1"] [${ce}],
882
- [${ge}][${Eo}="1"] [data-reticle-settings-panel]{
879
+ [${ge}][${Wm}="0"] [${Yd}]{display:none;}
880
+ [${ge}][${To}="1"] [${K}],
881
+ [${ge}][${To}="1"] [${ce}],
882
+ [${ge}][${To}="1"] [data-reticle-settings-panel]{
883
883
  transition-duration:.01ms !important;}
884
- [${ge}][${Eo}="1"] .reticle-fab-pulse,
885
- [${ge}][${Eo}="1"] .reticle-act-dot,
886
- [${ge}][${Eo}="1"] [data-bump="1"]{animation:none !important;}
884
+ [${ge}][${To}="1"] .reticle-fab-pulse,
885
+ [${ge}][${To}="1"] .reticle-act-dot,
886
+ [${ge}][${To}="1"] [data-bump="1"]{animation:none !important;}
887
887
  [${K}]{
888
888
  /* Centre the toolbar in the pill. The toolbar is 32px inside a 36px content box and, as a plain
889
889
  block child, sat flush against padding-top - every icon rode 2px high in a rounded bar, which
@@ -891,26 +891,26 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
891
891
  position:relative;box-sizing:border-box;pointer-events:auto;flex:none;
892
892
  display:flex;align-items:center;
893
893
  width:44px;height:44px;min-height:44px;max-height:44px;overflow:visible;
894
- background:${yT};
894
+ background:${OT};
895
895
  color:#fff;border:none;border-radius:22px;
896
896
  box-shadow:0 2px 12px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06),0 0 0 1px rgba(255,255,255,.1);
897
897
  contain:layout style;
898
898
  transition:width .26s var(--reticle-shell-ease),border-radius .26s var(--reticle-shell-ease),
899
899
  transform var(--reticle-shell-fast),opacity .18s ease;
900
900
  will-change:width,border-radius,transform;}
901
- [${ge}][${Ke}="0"] [${K}]{
901
+ [${ge}][${Ze}="0"] [${K}]{
902
902
  box-shadow:0 4px 20px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(255,255,255,.12);}
903
903
  [${K}] .reticle-hud-deco{
904
904
  position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;
905
905
  opacity:0;visibility:hidden;}
906
- [${ge}][${Ke}="0"] [${K}] .reticle-hud-deco{
906
+ [${ge}][${Ze}="0"] [${K}] .reticle-hud-deco{
907
907
  opacity:1;visibility:visible;}
908
908
  [${K}][data-on="0"]{opacity:0;transform:scale(.8);pointer-events:none;}
909
909
  [${K}][data-on="1"]{opacity:1;transform:scale(1);}
910
910
  /* The expanded HUD IS the shared column width; the toolbar fills its content box. Sizing the
911
911
  toolbar to the dock width instead pushed it past the HUD's padding, and the last button - Exit -
912
912
  rendered outside the rounded box it belongs to. */
913
- [${ge}][${Ke}="0"] [${K}]{
913
+ [${ge}][${Ze}="0"] [${K}]{
914
914
  width:min(calc(100vw - 24px),var(--reticle-dock-w));height:44px;min-height:44px;max-height:44px;
915
915
  min-width:44px;border-radius:24px;padding:4px 6px;}
916
916
  [${K}] .reticle-fab{
@@ -923,21 +923,21 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
923
923
  * waiting or done. It carries the state colour as a halo: breathing while the agent drives, a
924
924
  * steady soft ring while idle, and a flat dim ring once the session has ended.
925
925
  */
926
- [${ge}][${Ke}="1"] [${K}] .reticle-fab{
926
+ [${ge}][${Ze}="1"] [${K}] .reticle-fab{
927
927
  cursor:grab;touch-action:none;user-select:none;
928
928
  box-shadow:0 0 0 1px color-mix(in srgb,var(--reticle-state) 55%,transparent),
929
929
  0 0 14px -2px color-mix(in srgb,var(--reticle-state) 45%,transparent);}
930
- [${ge}][${Ke}="1"][${Jd}="active"] [${K}] .reticle-fab{
930
+ [${ge}][${Ze}="1"][${Qd}="active"] [${K}] .reticle-fab{
931
931
  animation:reticle-fab-breathe 1.6s ease-in-out infinite;}
932
- [${ge}][${Ke}="1"][${jr}="ended"] [${K}] .reticle-fab{
932
+ [${ge}][${Ze}="1"][${Wr}="ended"] [${K}] .reticle-fab{
933
933
  animation:none;box-shadow:0 0 0 1px color-mix(in srgb,var(--reticle-state) 40%,transparent);}
934
934
  @keyframes reticle-fab-breathe{
935
935
  0%,100%{box-shadow:0 0 0 1px color-mix(in srgb,var(--reticle-state) 70%,transparent),
936
936
  0 0 16px -2px color-mix(in srgb,var(--reticle-state) 55%,transparent)}
937
937
  50%{box-shadow:0 0 0 2px var(--reticle-state),
938
938
  0 0 28px 2px color-mix(in srgb,var(--reticle-state) 70%,transparent)}}
939
- [${ge}][${Eo}="1"] [${K}] .reticle-fab{animation:none;}
940
- [${ge}][${Ke}="1"] [${K}] .reticle-fab.reticle-drag-handle--dragging{
939
+ [${ge}][${To}="1"] [${K}] .reticle-fab{animation:none;}
940
+ [${ge}][${Ze}="1"] [${K}] .reticle-fab.reticle-drag-handle--dragging{
941
941
  cursor:grabbing;}
942
942
  [${K}] .reticle-fab-mark{height:22px;width:auto;pointer-events:none;}
943
943
  [${K}] .reticle-fab:hover{background:rgba(255,255,255,.08);}
@@ -953,7 +953,7 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
953
953
  display:flex;align-items:center;justify-content:center;pointer-events:none;
954
954
  box-shadow:0 1px 3px rgba(0,0,0,.15);}
955
955
  [${K}] .reticle-fab-badge[hidden]{display:none;}
956
- [${ge}][${Ke}="0"] [${K}] .reticle-fab{
956
+ [${ge}][${Ze}="0"] [${K}] .reticle-fab{
957
957
  opacity:0;pointer-events:none;visibility:hidden;}
958
958
  /* The toolbar is the third element in the same column, so it carries the same width as the chat
959
959
  and the capsule above it and spreads its groups across it, rather than hugging its icons. */
@@ -963,12 +963,12 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
963
963
  gap:4px;height:32px;padding:0 2px;
964
964
  overflow:visible;opacity:0;transform:scale(.94);pointer-events:none;
965
965
  transition:opacity .2s var(--reticle-shell-ease),transform .18s var(--reticle-shell-ease);}
966
- [${ge}][${Ke}="0"] [${K}] .reticle-toolbar{
966
+ [${ge}][${Ze}="0"] [${K}] .reticle-toolbar{
967
967
  display:flex;opacity:1;transform:scale(1);pointer-events:auto;}
968
968
  /* The HUD block is transformed, which makes it a stacking context at level 0 inside the dock, so a
969
969
  tooltip's z-index only ranked it within the block and it drew behind the chat and settings panels,
970
970
  its siblings. Lift the block while a tooltip can show. */
971
- [${K}]:hover,[${K}]:focus-within{z-index:${String(AT)};}
971
+ [${K}]:hover,[${K}]:focus-within{z-index:${String(RT)};}
972
972
  [${K}] .reticle-toolbar-drag{cursor:grab;touch-action:none;user-select:none;}
973
973
  [${K}] .reticle-toolbar-drag.reticle-drag-handle--dragging{cursor:grabbing;}
974
974
  [${K}] .reticle-toolbar-actions{
@@ -1016,7 +1016,7 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1016
1016
  [${K}] .reticle-tb-tip{
1017
1017
  position:absolute;bottom:calc(100% + 14px);left:50%;transform:translateX(-50%) scale(.95);
1018
1018
  padding:6px 10px;background:#1a1a1a;color:rgba(255,255,255,.9);font-size:12px;font-weight:500;
1019
- border-radius:8px;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;z-index:${String(AT)};
1019
+ border-radius:8px;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;z-index:${String(RT)};
1020
1020
  box-shadow:0 2px 8px rgba(0,0,0,.3);transition:opacity .135s ease,transform .135s ease,visibility .135s;}
1021
1021
  [${K}] .reticle-tb-tip::after{
1022
1022
  content:"";position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%) rotate(45deg);
@@ -1032,7 +1032,7 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1032
1032
  color:var(--reticle-fg);border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.55);
1033
1033
  padding:2px 6px;border-radius:999px;white-space:nowrap;pointer-events:none;z-index:2;
1034
1034
  transition:opacity .12s ease;}
1035
- [${ge}][${jr}="paused"] [data-reticle-badge]{display:inline-flex;}
1035
+ [${ge}][${Wr}="paused"] [data-reticle-badge]{display:inline-flex;}
1036
1036
  /**
1037
1037
  * The mode, ON the status row rather than under it.
1038
1038
  *
@@ -1087,12 +1087,12 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1087
1087
  * Muted rather than alarming. Nothing is broken in the user's app \u2014 Reticle simply has nobody to
1088
1088
  * talk to \u2014 and a dev overlay that shouts about its own plumbing is one the user turns off.
1089
1089
  */
1090
- [${ge}][${jr}="unreachable"]{--reticle-state:var(--reticle-faint);}
1091
- [${ge}][${jr}="unreachable"] [${ce}] .reticle-act-dot{animation:none;}
1090
+ [${ge}][${Wr}="unreachable"]{--reticle-state:var(--reticle-faint);}
1091
+ [${ge}][${Wr}="unreachable"] [${ce}] .reticle-act-dot{animation:none;}
1092
1092
  /* The one status that is a sentence to act on: two lines, full contrast, the detail on hover. */
1093
- [${ge}][${jr}="unreachable"] [${ce}] .reticle-act{white-space:normal;line-height:1.35;color:var(--reticle-fg);cursor:help;}
1094
- [${ge}][${jr}="paused"] [${ce}] .reticle-act-dot,
1095
- [${ge}][${jr}="ended"] [${ce}] .reticle-act-dot{animation:none;}
1093
+ [${ge}][${Wr}="unreachable"] [${ce}] .reticle-act{white-space:normal;line-height:1.35;color:var(--reticle-fg);cursor:help;}
1094
+ [${ge}][${Wr}="paused"] [${ce}] .reticle-act-dot,
1095
+ [${ge}][${Wr}="ended"] [${ce}] .reticle-act-dot{animation:none;}
1096
1096
  @keyframes reticle-idle-pulse{0%,100%{opacity:.45;transform:scale(.92)}50%{opacity:1;transform:scale(1)}}
1097
1097
  [${ce}] .reticle-act{display:block;flex:1;min-width:0;color:var(--reticle-muted);font-size:11px;
1098
1098
  font-variant-numeric:tabular-nums;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@@ -1116,19 +1116,19 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1116
1116
  * the theme's own paused/ended colour now, so "which state am I in" is answered by the same hue
1117
1117
  * everywhere: the dot, the glow, the FAB halo, and the toolbar.
1118
1118
  */
1119
- [${ge}][${jr}="paused"] [${K}],
1120
- [${ge}][${jr}="ended"] [${K}],
1121
- [${ge}][${xx}="waiting"] [${K}]{
1119
+ [${ge}][${Wr}="paused"] [${K}],
1120
+ [${ge}][${Wr}="ended"] [${K}],
1121
+ [${ge}][${Nx}="waiting"] [${K}]{
1122
1122
  --reticle-accent:var(--reticle-state);
1123
1123
  --reticle-accent-soft:color-mix(in srgb,var(--reticle-state) 18%,transparent);}
1124
- [${ge}][${xx}="ask"] [${K}],
1125
- [${ge}][${xx}="warn"] [${K}]{
1124
+ [${ge}][${Nx}="ask"] [${K}],
1125
+ [${ge}][${Nx}="warn"] [${K}]{
1126
1126
  --reticle-accent:var(--reticle-state);
1127
1127
  --reticle-accent-soft:color-mix(in srgb,var(--reticle-state) 18%,transparent);}
1128
1128
  @media (max-width:480px){
1129
1129
  [${ce}]{width:min(100vw - 24px,320px);max-height:min(440px,calc(100vh - 100px));}
1130
- [${ge}][${Ke}="0"] [${K}]{max-width:calc(100vw - 24px);}
1131
- }`});var qP,JP,QP,eM=y(()=>{"use strict";Fr();qP=20,JP=28,QP=`
1130
+ [${ge}][${Ze}="0"] [${K}]{max-width:calc(100vw - 24px);}
1131
+ }`});var cM,lM,uM,dM=y(()=>{"use strict";Vr();cM=20,lM=28,uM=`
1132
1132
  /* The control establishes its own stacking context, and a high one.
1133
1133
  Its menu is absolutely positioned inside a panel whose other children (the log well, the act strip)
1134
1134
  are themselves positioned with their own z-index, so a z-index on the MENU alone was being compared
@@ -1146,11 +1146,11 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1146
1146
  .reticle-account{position:relative;z-index:9;display:inline-flex;align-items:center;gap:6px;flex:none;}
1147
1147
  .reticle-account-avatar{
1148
1148
  display:inline-flex;align-items:center;justify-content:center;
1149
- width:${String(qP)}px;height:${String(qP)}px;border-radius:999px;
1149
+ width:${String(cM)}px;height:${String(cM)}px;border-radius:999px;
1150
1150
  font-size:9px;font-weight:600;letter-spacing:.02em;
1151
1151
  background:rgba(255,255,255,.12);color:rgba(255,255,255,.92);user-select:none;}
1152
1152
  .reticle-account-avatar--lg{
1153
- width:${String(JP)}px;height:${String(JP)}px;font-size:11px;}
1153
+ width:${String(lM)}px;height:${String(lM)}px;font-size:11px;}
1154
1154
 
1155
1155
  /* The trigger is the avatar plus a hit area, never a second visual element: an avatar that looks
1156
1156
  like a button reads as an action, and this one opens a menu about a state. */
@@ -1180,8 +1180,8 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1180
1180
  /* The HUD's own surface tokens, not a colour invented here. A menu with its own near-black is a
1181
1181
  second design language in the same panel, and a translucent one lets the panel's empty-state text
1182
1182
  read straight through the rows -- which is what the first version did. */
1183
- ${Qd}
1184
- box-shadow:inset 0 1px 0 rgba(255,255,255,.09),${Hr};
1183
+ ${ep}
1184
+ box-shadow:inset 0 1px 0 rgba(255,255,255,.09),${Gr};
1185
1185
  font-size:11px;color:rgba(255,255,255,.78);text-align:left;}
1186
1186
  .reticle-account-menu[hidden]{display:none;}
1187
1187
 
@@ -1223,7 +1223,7 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1223
1223
  display:inline-flex;align-items:center;justify-content:center;
1224
1224
  border:none;background:transparent;color:rgba(255,255,255,.6);cursor:pointer;line-height:0;padding:2px;}
1225
1225
  .reticle-account-dashboard:hover{color:#fff;}
1226
- `});var L9,tM,nM=y(()=>{"use strict";Fr();Lt();L9="data-reticle-overlay",tM=`
1226
+ `});var Q9,pM,fM=y(()=>{"use strict";Vr();Ct();Q9="data-reticle-overlay",pM=`
1227
1227
  [${B}]{
1228
1228
  position:absolute;right:0;left:auto;bottom:calc(100% + 12px);z-index:31;
1229
1229
  box-sizing:border-box;display:flex;flex-direction:column;width:var(--reticle-dock-w);
@@ -1233,11 +1233,11 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1233
1233
  background:
1234
1234
  radial-gradient(130% 90% at 50% 0%,color-mix(in srgb,var(--reticle-c-active) 18%,transparent),transparent 62%),
1235
1235
  linear-gradient(180deg,rgba(13,15,22,.96),rgba(19,22,32,.94));
1236
- box-shadow:${Hr},0 0 54px -18px var(--reticle-c-active);
1236
+ box-shadow:${Gr},0 0 54px -18px var(--reticle-c-active);
1237
1237
  color:var(--reticle-fg);font-family:var(--reticle-font);
1238
1238
  transition:opacity .18s ease,transform .18s ease,visibility .18s;}
1239
- [${F}][${Yt}="start"] [${B}]{right:auto;left:0;}
1240
- [${L9}][${On}="1"] [${B}]{
1239
+ [${F}][${Xt}="start"] [${B}]{right:auto;left:0;}
1240
+ [${Q9}][${On}="1"] [${B}]{
1241
1241
  opacity:1;visibility:visible;transform:translate3d(0,0,0) scale(1);pointer-events:auto;}
1242
1242
  [${B}] .reticle-report-inner{
1243
1243
  display:flex;flex-direction:column;min-height:0;overflow:hidden;}
@@ -1372,15 +1372,15 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1372
1372
  @keyframes reticle-sync-spin{to{transform:rotate(360deg);}}
1373
1373
  @media (prefers-reduced-motion:reduce){
1374
1374
  [${B}] .reticle-sync-now[data-syncing="1"]{animation:none;}}
1375
- `});var rM,oM=y(()=>{"use strict";rM=`
1375
+ `});var hM,mM=y(()=>{"use strict";hM=`
1376
1376
  .reticle-talk-title{display:block;font-weight:600;font-size:12px;padding-right:18px;}
1377
1377
  .reticle-talk-body{margin:6px 0 8px;font-size:11px;line-height:1.45;opacity:.8;}
1378
1378
  .reticle-talk-book{display:inline-block;font-size:11px;font-weight:600;padding:4px 10px;border-radius:6px;background:var(--reticle-accent,#4f7cff);color:#fff;text-decoration:none;}
1379
- `});function yx(e){let t=Ax.get(e);t!==void 0&&clearInterval(t),Ax.delete(e)}function k9(){var e;try{return((e=globalThis.matchMedia)==null?void 0:e.call(globalThis,"(prefers-reduced-motion: reduce)").matches)===!0}catch{return!1}}function Og(e,t){e.setAttribute("data-active",String(t));let n=e.querySelectorAll(`[${wp}]`),r=e.querySelector(`[${uM}]`);r!==null&&(r.textContent=`${String(t+1)} / ${String(n.length)}`),n.forEach((o,i)=>{o.hidden=i!==t}),e.querySelectorAll(`[${Ig}]`).forEach((o,i)=>{o.setAttribute("aria-current",String(i===t))})}function D9(e,t){if(e.length===0)return"";let n=z9(t,e.length),r=e.map((i,s)=>`<div ${wp}="${i.id}" class="reticle-carousel-slide"${s===n?"":" hidden"}>${i.html}</div>`).join(""),o=e.length===1?"":`<div class="reticle-carousel-controls"><button type="button" ${cM} aria-label="Previous message" class="reticle-carousel-arrow">\u2039</button><div class="reticle-carousel-dots">${e.map((i,s)=>`<button type="button" ${Ig}="${String(s)}" class="reticle-carousel-dot" aria-label="Show ${i.id}" aria-current="${String(s===n)}"></button>`).join("")}</div><span ${uM} aria-live="polite">${String(n+1)} / ${String(e.length)}</span><button type="button" ${lM} aria-label="Next message" class="reticle-carousel-arrow">\u203A</button></div>`;return`<div ${sM} class="reticle-carousel" role="region" aria-label="Reticle" data-active="${String(n)}">
1380
- <button type="button" ${aM} class="reticle-carousel-close" aria-label="${iM}" title="${iM}">\xD7</button>
1379
+ `});function Ox(e){let t=Rx.get(e);t!==void 0&&clearInterval(t),Rx.delete(e)}function tW(){var e;try{return((e=globalThis.matchMedia)==null?void 0:e.call(globalThis,"(prefers-reduced-motion: reduce)").matches)===!0}catch{return!1}}function Cg(e,t){e.setAttribute("data-active",String(t));let n=e.querySelectorAll(`[${vp}]`),r=e.querySelector(`[${TM}]`);r!==null&&(r.textContent=`${String(t+1)} / ${String(n.length)}`),n.forEach((o,i)=>{o.hidden=i!==t}),e.querySelectorAll(`[${Lg}]`).forEach((o,i)=>{o.setAttribute("aria-current",String(i===t))})}function rW(e,t){if(e.length===0)return"";let n=nW(t,e.length),r=e.map((i,s)=>`<div ${vp}="${i.id}" class="reticle-carousel-slide"${s===n?"":" hidden"}>${i.html}</div>`).join(""),o=e.length===1?"":`<div class="reticle-carousel-controls"><button type="button" ${_M} aria-label="Previous message" class="reticle-carousel-arrow">\u2039</button><div class="reticle-carousel-dots">${e.map((i,s)=>`<button type="button" ${Lg}="${String(s)}" class="reticle-carousel-dot" aria-label="Show ${i.id}" aria-current="${String(s===n)}"></button>`).join("")}</div><span ${TM} aria-live="polite">${String(n+1)} / ${String(e.length)}</span><button type="button" ${SM} aria-label="Next message" class="reticle-carousel-arrow">\u203A</button></div>`;return`<div ${EM} class="reticle-carousel" role="region" aria-label="Reticle" data-active="${String(n)}">
1380
+ <button type="button" ${bM} class="reticle-carousel-close" aria-label="${gM}" title="${gM}">\xD7</button>
1381
1381
  <div class="reticle-carousel-track">${r}</div>
1382
1382
  ${o}
1383
- </div>`}function P9(e){try{return(e==null?void 0:e.getItem(dM))==="1"}catch{return!1}}function pM(e,t,n){var a,l,u,d;let r=e.querySelector(`:scope > [${sM}]`),o=Number((a=r==null?void 0:r.getAttribute("data-active"))!=null?a:"0");if(r==null||r.remove(),yx(e),P9(n))return;let i=D9(t,o);if(i==="")return;e.insertAdjacentHTML("afterbegin",i);let s=e.firstElementChild;if(s instanceof HTMLElement){(l=s.querySelector(`[${aM}]`))==null||l.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation();try{n==null||n.setItem(dM,"1")}catch{}yx(e),s.remove()});for(let f of s.querySelectorAll(`[${Ig}]`))f.addEventListener("click",m=>{m.preventDefault(),m.stopPropagation(),Og(s,Number(f.getAttribute(Ig)))});(u=s.querySelector(`[${cM}]`))==null||u.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation(),Og(s,(Number(s.getAttribute("data-active"))+t.length-1)%t.length)}),(d=s.querySelector(`[${lM}]`))==null||d.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation(),Og(s,(Number(s.getAttribute("data-active"))+1)%t.length)}),M9(e,s,t.length)}}function M9(e,t,n){if(n<2||k9())return;let r=!1,o=()=>{r=!0},i=()=>{r=!1};t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",i),t.addEventListener("focusin",o),t.addEventListener("focusout",i),Ax.set(e,setInterval(()=>{if(!t.isConnected){yx(e);return}r||Og(t,(Number(t.getAttribute("data-active"))+1)%n)},$9))}var sM,wp,Ig,aM,cM,lM,uM,dM,iM,$9,Ax,z9,fM,Cg=y(()=>{"use strict";co();sM="data-reticle-carousel",wp="data-reticle-carousel-slide",Ig="data-reticle-carousel-dot",aM="data-reticle-carousel-close",cM="data-reticle-carousel-prev",lM="data-reticle-carousel-next",uM="data-reticle-carousel-position",dM=Tt.CAROUSEL_DISMISSED,iM="Close",$9=6e3,Ax=new WeakMap;z9=(e,t)=>Number.isInteger(e)&&e>=0&&e<t?e:0;fM=`
1383
+ </div>`}function oW(e){try{return(e==null?void 0:e.getItem(xM))==="1"}catch{return!1}}function AM(e,t,n){var a,l,u,d;let r=e.querySelector(`:scope > [${EM}]`),o=Number((a=r==null?void 0:r.getAttribute("data-active"))!=null?a:"0");if(r==null||r.remove(),Ox(e),oW(n))return;let i=rW(t,o);if(i==="")return;e.insertAdjacentHTML("afterbegin",i);let s=e.firstElementChild;if(s instanceof HTMLElement){(l=s.querySelector(`[${bM}]`))==null||l.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation();try{n==null||n.setItem(xM,"1")}catch{}Ox(e),s.remove()});for(let f of s.querySelectorAll(`[${Lg}]`))f.addEventListener("click",m=>{m.preventDefault(),m.stopPropagation(),Cg(s,Number(f.getAttribute(Lg)))});(u=s.querySelector(`[${_M}]`))==null||u.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation(),Cg(s,(Number(s.getAttribute("data-active"))+t.length-1)%t.length)}),(d=s.querySelector(`[${SM}]`))==null||d.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation(),Cg(s,(Number(s.getAttribute("data-active"))+1)%t.length)}),iW(e,s,t.length)}}function iW(e,t,n){if(n<2||tW())return;let r=!1,o=()=>{r=!0},i=()=>{r=!1};t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",i),t.addEventListener("focusin",o),t.addEventListener("focusout",i),Rx.set(e,setInterval(()=>{if(!t.isConnected){Ox(e);return}r||Cg(t,(Number(t.getAttribute("data-active"))+1)%n)},eW))}var EM,vp,Lg,bM,_M,SM,TM,xM,gM,eW,Rx,nW,yM,$g=y(()=>{"use strict";po();EM="data-reticle-carousel",vp="data-reticle-carousel-slide",Lg="data-reticle-carousel-dot",bM="data-reticle-carousel-close",_M="data-reticle-carousel-prev",SM="data-reticle-carousel-next",TM="data-reticle-carousel-position",xM=At.CAROUSEL_DISMISSED,gM="Close",eW=6e3,Rx=new WeakMap;nW=(e,t)=>Number.isInteger(e)&&e>=0&&e<t?e:0;yM=`
1384
1384
  .reticle-carousel{position:relative;margin:8px 10px;padding:10px 12px 8px;border:1px solid var(--reticle-line,#2a2f3a);border-radius:10px;background:var(--reticle-surface-inset,rgba(255,255,255,.03));}
1385
1385
  .reticle-carousel-track{height:100px;overflow:hidden;}
1386
1386
  .reticle-carousel-slide .reticle-talk{margin:0;padding:0;border:0;background:none;}
@@ -1393,26 +1393,26 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1393
1393
  .reticle-carousel-arrow{width:24px;height:24px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--reticle-line);border-radius:6px;background:rgba(255,255,255,.04);color:var(--reticle-fg);font:inherit;font-size:18px;line-height:1;cursor:pointer;}
1394
1394
  .reticle-carousel-arrow:hover{border-color:var(--reticle-accent);background:var(--reticle-accent-soft);}
1395
1395
  .reticle-carousel-position{margin-left:auto;color:var(--reticle-muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;}
1396
- `});function EM(e,t){let n=e.querySelector(`[${Sr}]`),r=e.querySelector(`[${et}]`),o=t!==void 0&&!t.signedIn;n!==null&&(n.hidden=!o),r!==null&&(r.hidden=o)}var et,Sr,Rx,U9,qt,Lg,wx,mM,gM,vx,Nx,hM,bM,$g=y(()=>{"use strict";bo();Lt();Fr();et="data-reticle-rail",Sr="data-reticle-rail-signin",Rx="data-reticle-rail-promo",U9="data-reticle-page-open",qt="data-reticle-page-panel",Lg="data-reticle-overlay",wx={TITLE:"Sign in to try Reticle Harness",DETAIL:"Free credits to start.",CTA:"Sign in"},mM=`<div ${Sr} class="reticle-rail-signin" hidden>
1397
- <span class="reticle-rail-copy"><strong>${wx.TITLE}</strong><span>${wx.DETAIL}</span></span>
1398
- <button type="button" ${Xt} class="reticle-rail-cta" title="${fe.SIGNIN_TITLE}">${wx.CTA}</button>
1399
- </div>`,gM=`<div ${et} class="reticle-rail" role="complementary" aria-label="Reticle">
1400
- <div ${Rx} class="reticle-rail-promo"></div>
1401
- </div>`;vx=`:is([${En}],[${qt}],[${B}],[${D}])`,Nx=`[${Lg}][${Ke}="0"]:is([${yt}="1"],[${U9}],[${On}="1"],[${pt}="1"])`,hM=`[${F}]:is([${ui}="below"],[${rs}="below"])`,bM=`
1396
+ `});function RM(e,t){let n=e.querySelector(`[${xr}]`),r=e.querySelector(`[${tt}]`),o=t!==void 0&&!t.signedIn;n!==null&&(n.hidden=!o),r!==null&&(r.hidden=o)}var tt,xr,$x,sW,Jt,kg,Ix,vM,NM,Cx,Lx,wM,OM,zg=y(()=>{"use strict";xo();Ct();Vr();tt="data-reticle-rail",xr="data-reticle-rail-signin",$x="data-reticle-rail-promo",sW="data-reticle-page-open",Jt="data-reticle-page-panel",kg="data-reticle-overlay",Ix={TITLE:"Sign in to try Reticle Harness",DETAIL:"Free credits to start.",CTA:"Sign in"},vM=`<div ${xr} class="reticle-rail-signin" hidden>
1397
+ <span class="reticle-rail-copy"><strong>${Ix.TITLE}</strong><span>${Ix.DETAIL}</span></span>
1398
+ <button type="button" ${qt} class="reticle-rail-cta" title="${fe.SIGNIN_TITLE}">${Ix.CTA}</button>
1399
+ </div>`,NM=`<div ${tt} class="reticle-rail" role="complementary" aria-label="Reticle">
1400
+ <div ${$x} class="reticle-rail-promo"></div>
1401
+ </div>`;Cx=`:is([${En}],[${Jt}],[${B}],[${P}])`,Lx=`[${kg}][${Ze}="0"]:is([${yt}="1"],[${sW}],[${On}="1"],[${ft}="1"])`,wM=`[${F}]:is([${fi}="below"],[${is}="below"])`,OM=`
1402
1402
  [${F}]{
1403
1403
  /* Short enough to leave most of a laptop screen to the app; the log scrolls inside it. */
1404
1404
  --reticle-frame-h:min(440px,60vh,calc(100vh - 190px));
1405
1405
  --reticle-rail-h:52px;--reticle-frame-gap:6px;}
1406
- [${F}] ${vx}{
1406
+ [${F}] ${Cx}{
1407
1407
  right:0;left:auto;top:auto;
1408
1408
  bottom:calc(100% + 8px + var(--reticle-rail-h) + var(--reticle-frame-gap));
1409
1409
  width:var(--reticle-dock-w);max-width:min(var(--reticle-dock-w),calc(100vw - 24px));
1410
1410
  height:var(--reticle-frame-h);max-height:var(--reticle-frame-h);
1411
1411
  border-radius:var(--reticle-hud-radius-lg);
1412
- ${sl}}
1413
- [${F}] [${D}]::after{display:none;}
1414
- [${F}] [${D}] .reticle-settings-inner{height:100%;}
1415
- [${F}] [${D}] :is(.reticle-settings-body,.reticle-settings-foot){background:transparent;}
1412
+ ${cl}}
1413
+ [${F}] [${P}]::after{display:none;}
1414
+ [${F}] [${P}] .reticle-settings-inner{height:100%;}
1415
+ [${F}] [${P}] :is(.reticle-settings-body,.reticle-settings-foot){background:transparent;}
1416
1416
  [${F}] [${B}] .reticle-report-inner{height:100%;}
1417
1417
  /* The Agent Log section fills the frame, so the footer sits on the bottom edge, not mid-panel. */
1418
1418
  [${En}] .reticle-chat-view{flex:1;min-height:0;display:flex;flex-direction:column;}
@@ -1422,17 +1422,17 @@ ${gP}`,px="[data-reticle-harness-page] :is([data-reticle-harness-run],[data-reti
1422
1422
  * handoff notice) takes the status text's place instead of arriving as a row of its own, and the
1423
1423
  * Harness block sits in the footer above the project capsule.
1424
1424
  */
1425
- [${Lg}] [${En}] .reticle-act-strip .reticle-banner{display:none;flex:1;min-width:0;min-height:0;padding:0;border:0;background:none;
1425
+ [${kg}] [${En}] .reticle-act-strip .reticle-banner{display:none;flex:1;min-width:0;min-height:0;padding:0;border:0;background:none;
1426
1426
  font-size:11px;font-weight:600;line-height:1.3;color:var(--reticle-hud-text);
1427
1427
  overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
1428
- [${Lg}][data-reticle-state="ended"] [${En}] .reticle-act-strip .reticle-banner{display:-webkit-box;}
1429
- [${Lg}][data-reticle-state="ended"] [${En}] .reticle-act-strip .reticle-act{display:none;}
1428
+ [${kg}][data-reticle-state="ended"] [${En}] .reticle-act-strip .reticle-banner{display:-webkit-box;}
1429
+ [${kg}][data-reticle-state="ended"] [${En}] .reticle-act-strip .reticle-act{display:none;}
1430
1430
  [${En}] .reticle-foot-workspace-row{gap:var(--reticle-hud-space-2);}
1431
1431
  /* The Harness block sits above the project capsule, full width: one clear thing to press. */
1432
1432
  [${En}] [data-reticle-foot] .reticle-foot-stack{display:flex;flex-direction:column;gap:var(--reticle-hud-space-2);}
1433
1433
  [${En}] [data-reticle-foot] .reticle-foot-workspace-row:has(> .reticle-workspace-wrap[hidden]){display:none;}
1434
- ${hM} ${vx}{bottom:auto;top:calc(100% + 8px + var(--reticle-rail-h) + var(--reticle-frame-gap));}
1435
- [${F}][${Yt}="start"] :is(${vx},[${et}]){right:auto;left:0;}
1434
+ ${wM} ${Cx}{bottom:auto;top:calc(100% + 8px + var(--reticle-rail-h) + var(--reticle-frame-gap));}
1435
+ [${F}][${Xt}="start"] :is(${Cx},[${tt}]){right:auto;left:0;}
1436
1436
 
1437
1437
  /* \u2500\u2500 Every page's header: title over a one-line subtitle, its actions, then close. \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1438
1438
  [${F}] :is(.reticle-page-heading,.reticle-report-head,.reticle-settings-head){
@@ -1464,33 +1464,33 @@ ${hM} ${vx}{bottom:auto;top:calc(100% + 8px + var(--reticle-rail-h) + var(--reti
1464
1464
  [${F}] :is(.reticle-flows-empty,.reticle-annotation-empty) span{max-width:260px;font-size:var(--reticle-hud-size-sm);line-height:1.45;color:var(--reticle-hud-text-muted);}
1465
1465
 
1466
1466
  /* \u2500\u2500 Saved flows: one row per journey. \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1467
- [${qt}="flows"] .reticle-all-flows{display:flex;flex-direction:column;gap:var(--reticle-hud-space-1);padding:var(--reticle-hud-space-2);}
1468
- [${qt}="flows"] .reticle-flow-row{display:flex;align-items:center;gap:var(--reticle-hud-space-3);width:100%;min-height:48px;
1467
+ [${Jt}="flows"] .reticle-all-flows{display:flex;flex-direction:column;gap:var(--reticle-hud-space-1);padding:var(--reticle-hud-space-2);}
1468
+ [${Jt}="flows"] .reticle-flow-row{display:flex;align-items:center;gap:var(--reticle-hud-space-3);width:100%;min-height:48px;
1469
1469
  padding:var(--reticle-hud-space-2) var(--reticle-hud-space-3);border:1px solid transparent;border-radius:var(--reticle-hud-radius-md);
1470
1470
  background:transparent;color:var(--reticle-hud-text);font:inherit;text-align:left;cursor:pointer;}
1471
- [${qt}="flows"] .reticle-flow-row:hover:not(:disabled){background:var(--reticle-hud-hover);border-color:var(--reticle-hud-border);}
1472
- [${qt}="flows"] .reticle-flow-row:focus-visible{outline:2px solid var(--reticle-hud-brand);outline-offset:1px;}
1473
- [${qt}="flows"] .reticle-flow-row:disabled{cursor:not-allowed;opacity:.5;}
1474
- [${qt}="flows"] .reticle-flow-play{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;
1471
+ [${Jt}="flows"] .reticle-flow-row:hover:not(:disabled){background:var(--reticle-hud-hover);border-color:var(--reticle-hud-border);}
1472
+ [${Jt}="flows"] .reticle-flow-row:focus-visible{outline:2px solid var(--reticle-hud-brand);outline-offset:1px;}
1473
+ [${Jt}="flows"] .reticle-flow-row:disabled{cursor:not-allowed;opacity:.5;}
1474
+ [${Jt}="flows"] .reticle-flow-play{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;
1475
1475
  border-radius:50%;background:var(--reticle-hud-brand-soft);color:var(--reticle-hud-brand);font-size:11px;}
1476
- [${qt}="flows"] .reticle-flow-row:disabled .reticle-flow-play{background:var(--reticle-hud-inset);color:var(--reticle-hud-text-faint);}
1477
- [${qt}="flows"] .reticle-flow-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:1px;}
1478
- [${qt}="flows"] .reticle-flow-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--reticle-hud-size-sm);font-weight:600;}
1479
- [${qt}="flows"] .reticle-flow-meta{font-size:var(--reticle-hud-size-xs);color:var(--reticle-hud-text-muted);}
1476
+ [${Jt}="flows"] .reticle-flow-row:disabled .reticle-flow-play{background:var(--reticle-hud-inset);color:var(--reticle-hud-text-faint);}
1477
+ [${Jt}="flows"] .reticle-flow-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:1px;}
1478
+ [${Jt}="flows"] .reticle-flow-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--reticle-hud-size-sm);font-weight:600;}
1479
+ [${Jt}="flows"] .reticle-flow-meta{font-size:var(--reticle-hud-size-xs);color:var(--reticle-hud-text-muted);}
1480
1480
 
1481
1481
  /* \u2500\u2500 Notes: a segmented list switch, then the page's tools on the right. \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1482
- [${qt}="annotations"] .reticle-annotations-tabs{gap:var(--reticle-hud-space-1);padding:var(--reticle-hud-space-2) var(--reticle-hud-space-3);}
1482
+ [${Jt}="annotations"] .reticle-annotations-tabs{gap:var(--reticle-hud-space-1);padding:var(--reticle-hud-space-2) var(--reticle-hud-space-3);}
1483
1483
  /* One segmented switch for every "show me this or that": Notes' list and Impact's scope. */
1484
1484
  [${F}] .reticle-segmented{display:inline-flex;flex:none;padding:2px;border-radius:var(--reticle-hud-radius-sm);background:var(--reticle-hud-inset);}
1485
- [${qt}="annotations"] .reticle-segmented{margin-right:auto;}
1485
+ [${Jt}="annotations"] .reticle-segmented{margin-right:auto;}
1486
1486
  [${F}] .reticle-segmented button{height:24px;padding:0 var(--reticle-hud-space-3);border:0;border-radius:4px;background:transparent;
1487
1487
  color:var(--reticle-hud-text-muted);font:inherit;font-size:var(--reticle-hud-size-xs);white-space:nowrap;cursor:pointer;}
1488
1488
  [${F}] .reticle-segmented button:hover{color:var(--reticle-hud-text);}
1489
1489
  [${F}] .reticle-segmented button[aria-pressed="true"]{background:var(--reticle-hud-border-strong);color:var(--reticle-hud-text);}
1490
1490
  [${F}] .reticle-report-head .reticle-segmented{margin-left:auto;}
1491
- [${qt}="annotations"] .reticle-annotations-tabs .reticle-copy-all{margin-left:0;color:var(--reticle-hud-text-muted);}
1492
- [${qt}="annotations"] .reticle-annotation-list{display:flex;flex-direction:column;}
1493
- [${qt}="annotations"] .reticle-annotation-item{padding:var(--reticle-hud-space-3) 2px;}
1491
+ [${Jt}="annotations"] .reticle-annotations-tabs .reticle-copy-all{margin-left:0;color:var(--reticle-hud-text-muted);}
1492
+ [${Jt}="annotations"] .reticle-annotation-list{display:flex;flex-direction:column;}
1493
+ [${Jt}="annotations"] .reticle-annotation-item{padding:var(--reticle-hud-space-3) 2px;}
1494
1494
 
1495
1495
  /* \u2500\u2500 Impact: the streak and the account share the first line instead of a row each. \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1496
1496
  [${B}] .reticle-report-top{display:flex;align-items:center;justify-content:space-between;gap:var(--reticle-hud-space-2);min-height:28px;margin-bottom:var(--reticle-hud-space-2);}
@@ -1501,11 +1501,11 @@ ${hM} ${vx}{bottom:auto;top:calc(100% + 8px + var(--reticle-rail-h) + var(--reti
1501
1501
  [${B}] :is(.reticle-report-foot,.reticle-report-links){padding-left:var(--reticle-hud-space-3);padding-right:var(--reticle-hud-space-3);}
1502
1502
 
1503
1503
  /* \u2500\u2500 Settings: the help links scroll with the rest instead of pinning a footer over the options. */
1504
- [${D}] .reticle-settings-body .reticle-settings-foot{margin-top:0;border-top:0;}
1505
- [${D}] .reticle-settings-row{flex-wrap:wrap;}
1506
- [${D}] .reticle-settings-helptext{flex-basis:100%;margin:6px 0 2px;font-size:var(--reticle-hud-size-xs);line-height:1.45;color:var(--reticle-hud-text-muted);}
1507
- [${D}] .reticle-settings-help[aria-expanded="true"]{color:var(--reticle-hud-brand);}
1508
- [${D}] .reticle-settings-reset{background:none;text-align:left;padding-left:14px;font-weight:500;}
1504
+ [${P}] .reticle-settings-body .reticle-settings-foot{margin-top:0;border-top:0;}
1505
+ [${P}] .reticle-settings-row{flex-wrap:wrap;}
1506
+ [${P}] .reticle-settings-helptext{flex-basis:100%;margin:6px 0 2px;font-size:var(--reticle-hud-size-xs);line-height:1.45;color:var(--reticle-hud-text-muted);}
1507
+ [${P}] .reticle-settings-help[aria-expanded="true"]{color:var(--reticle-hud-brand);}
1508
+ [${P}] .reticle-settings-reset{background:none;text-align:left;padding-left:14px;font-weight:500;}
1509
1509
 
1510
1510
  /* \u2500\u2500 Toolbar: Settings and Exit are tabs like the four beside them, so they light the same way. \u2500\u2500 */
1511
1511
  [data-reticle-hud] .reticle-toolbar-chrome .reticle-tb-btn{width:100%;height:auto;flex-direction:column;gap:2px;min-height:42px;padding:4px 0 3px;
@@ -1514,52 +1514,52 @@ ${hM} ${vx}{bottom:auto;top:calc(100% + 8px + var(--reticle-rail-h) + var(--reti
1514
1514
  [data-reticle-hud] .reticle-toolbar-chrome .reticle-tb-btn[data-active="1"],
1515
1515
  [data-reticle-hud] .reticle-toolbar-chrome .reticle-tb-btn[data-active="1"]:hover{background:transparent;color:var(--reticle-hud-text);}
1516
1516
 
1517
- [${et}]{
1517
+ [${tt}]{
1518
1518
  display:none;position:absolute;right:0;left:auto;bottom:calc(100% + 8px);z-index:7;
1519
1519
  box-sizing:border-box;width:var(--reticle-dock-w);max-width:min(var(--reticle-dock-w),calc(100vw - 24px));
1520
1520
  height:var(--reticle-rail-h);padding:0 var(--reticle-hud-space-3);align-items:center;
1521
1521
  border:1px solid color-mix(in srgb,var(--reticle-hud-brand) 30%,var(--reticle-hud-border));
1522
1522
  border-radius:var(--reticle-hud-radius-lg);
1523
1523
  background:linear-gradient(135deg,var(--reticle-hud-brand-soft),var(--reticle-hud-surface) 65%);
1524
- box-shadow:${Hr};color:var(--reticle-hud-text);font-family:var(--reticle-font);
1524
+ box-shadow:${Gr};color:var(--reticle-hud-text);font-family:var(--reticle-font);
1525
1525
  pointer-events:auto;}
1526
- ${hM} [${et}]{bottom:auto;top:calc(100% + 8px);}
1527
- ${Nx} [${et}]{display:flex;}
1528
- ${Nx} [${et}][hidden]{display:none;}
1526
+ ${wM} [${tt}]{bottom:auto;top:calc(100% + 8px);}
1527
+ ${Lx} [${tt}]{display:flex;}
1528
+ ${Lx} [${tt}][hidden]{display:none;}
1529
1529
  /* No rail, no gap for it: the page sits straight above the toolbar. */
1530
- [${F}]:has(> [${et}][hidden]){--reticle-rail-h:0px;--reticle-frame-gap:0px;}
1530
+ [${F}]:has(> [${tt}][hidden]){--reticle-rail-h:0px;--reticle-frame-gap:0px;}
1531
1531
  /* The capsule and the rail share a slot: the capsule is for "nothing open", the rail for "a page is". */
1532
- ${Nx} [${Ft}]{display:none !important;}
1533
- [${et}] > [hidden]{display:none !important;}
1534
- [${et}] .reticle-rail-promo{flex:1;min-width:0;}
1532
+ ${Lx} [${Ht}]{display:none !important;}
1533
+ [${tt}] > [hidden]{display:none !important;}
1534
+ [${tt}] .reticle-rail-promo{flex:1;min-width:0;}
1535
1535
  /* The sign-in ask: one row in the Agent Log, above its footer. */
1536
- [${Sr}]{display:flex;flex:none;align-items:center;gap:var(--reticle-hud-space-3);
1536
+ [${xr}]{display:flex;flex:none;align-items:center;gap:var(--reticle-hud-space-3);
1537
1537
  margin:0 var(--reticle-hud-space-3) var(--reticle-hud-space-2);padding:var(--reticle-hud-space-2) var(--reticle-hud-space-3);
1538
1538
  border:1px solid color-mix(in srgb,var(--reticle-hud-brand) 30%,var(--reticle-hud-border));border-radius:var(--reticle-hud-radius-md);
1539
1539
  background:linear-gradient(135deg,var(--reticle-hud-brand-soft),transparent 65%);}
1540
- [${Sr}][hidden]{display:none;}
1541
- [${Sr}] .reticle-rail-copy{display:flex;flex:1;min-width:0;flex-direction:column;line-height:1.3;}
1542
- [${Sr}] .reticle-rail-copy strong{font-size:var(--reticle-hud-size-sm);font-weight:600;}
1543
- [${Sr}] .reticle-rail-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--reticle-hud-size-xs);color:var(--reticle-hud-text-muted);}
1544
- [${Sr}] .reticle-rail-cta{flex:none;height:28px;padding:0 var(--reticle-hud-space-3);border:0;border-radius:var(--reticle-hud-radius-pill);
1540
+ [${xr}][hidden]{display:none;}
1541
+ [${xr}] .reticle-rail-copy{display:flex;flex:1;min-width:0;flex-direction:column;line-height:1.3;}
1542
+ [${xr}] .reticle-rail-copy strong{font-size:var(--reticle-hud-size-sm);font-weight:600;}
1543
+ [${xr}] .reticle-rail-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--reticle-hud-size-xs);color:var(--reticle-hud-text-muted);}
1544
+ [${xr}] .reticle-rail-cta{flex:none;height:28px;padding:0 var(--reticle-hud-space-3);border:0;border-radius:var(--reticle-hud-radius-pill);
1545
1545
  background:var(--reticle-hud-brand);color:#160b02;font:inherit;font-size:var(--reticle-hud-size-sm);font-weight:700;cursor:pointer;}
1546
- [${Sr}] .reticle-rail-cta:hover{filter:brightness(1.08);}
1547
- [${Sr}] .reticle-rail-cta:focus-visible{outline:2px solid var(--reticle-hud-text);outline-offset:2px;}
1546
+ [${xr}] .reticle-rail-cta:hover{filter:brightness(1.08);}
1547
+ [${xr}] .reticle-rail-cta:focus-visible{outline:2px solid var(--reticle-hud-text);outline-offset:2px;}
1548
1548
  /* The promo: one line of copy, its link, and dots. The carousel draws no frame of its own here. */
1549
- [${et}] .reticle-carousel{margin:0;padding:0;border:0;background:none;}
1550
- [${et}] .reticle-carousel-track{height:32px;overflow:hidden;}
1551
- [${et}] :is(.reticle-carousel-close,.reticle-carousel-arrow,[data-reticle-carousel-position]){display:none;}
1552
- [${et}] .reticle-carousel-controls{position:absolute;right:var(--reticle-hud-space-3);top:6px;height:auto;margin:0;}
1553
- [${et}] .reticle-carousel-dots{position:static;display:flex;gap:4px;margin:0;}
1554
- [${et}] .reticle-carousel-dot{width:10px;height:3px;padding:0;border:0;border-radius:99px;background:var(--reticle-hud-text-muted);opacity:.35;cursor:pointer;}
1555
- [${et}] .reticle-carousel-dot[aria-current="true"]{background:var(--reticle-hud-brand);opacity:1;}
1556
- [${et}] .reticle-promo-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;padding-right:0;}
1557
- [${et}] .reticle-promo-kicker{display:none;}
1558
- [${et}] .reticle-promo-title{grid-column:1/-1;overflow:hidden;padding-right:40px;font-size:var(--reticle-hud-size-sm);font-weight:600;line-height:1.3;text-overflow:ellipsis;white-space:nowrap;}
1559
- [${et}] .reticle-promo-detail{grid-column:1;overflow:hidden;color:var(--reticle-hud-text-muted);font-size:var(--reticle-hud-size-xs);line-height:1.3;text-overflow:ellipsis;white-space:nowrap;}
1560
- [${et}] .reticle-promo-link{position:static;grid-column:2;color:var(--reticle-hud-brand);font-size:var(--reticle-hud-size-xs);font-weight:600;text-decoration:none;white-space:nowrap;}
1561
- [${et}] .reticle-promo-link:hover{text-decoration:underline;}
1562
- `});var _M,SM=y(()=>{"use strict";_M=`
1549
+ [${tt}] .reticle-carousel{margin:0;padding:0;border:0;background:none;}
1550
+ [${tt}] .reticle-carousel-track{height:32px;overflow:hidden;}
1551
+ [${tt}] :is(.reticle-carousel-close,.reticle-carousel-arrow,[data-reticle-carousel-position]){display:none;}
1552
+ [${tt}] .reticle-carousel-controls{position:absolute;right:var(--reticle-hud-space-3);top:6px;height:auto;margin:0;}
1553
+ [${tt}] .reticle-carousel-dots{position:static;display:flex;gap:4px;margin:0;}
1554
+ [${tt}] .reticle-carousel-dot{width:10px;height:3px;padding:0;border:0;border-radius:99px;background:var(--reticle-hud-text-muted);opacity:.35;cursor:pointer;}
1555
+ [${tt}] .reticle-carousel-dot[aria-current="true"]{background:var(--reticle-hud-brand);opacity:1;}
1556
+ [${tt}] .reticle-promo-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;padding-right:0;}
1557
+ [${tt}] .reticle-promo-kicker{display:none;}
1558
+ [${tt}] .reticle-promo-title{grid-column:1/-1;overflow:hidden;padding-right:40px;font-size:var(--reticle-hud-size-sm);font-weight:600;line-height:1.3;text-overflow:ellipsis;white-space:nowrap;}
1559
+ [${tt}] .reticle-promo-detail{grid-column:1;overflow:hidden;color:var(--reticle-hud-text-muted);font-size:var(--reticle-hud-size-xs);line-height:1.3;text-overflow:ellipsis;white-space:nowrap;}
1560
+ [${tt}] .reticle-promo-link{position:static;grid-column:2;color:var(--reticle-hud-brand);font-size:var(--reticle-hud-size-xs);font-weight:600;text-decoration:none;white-space:nowrap;}
1561
+ [${tt}] .reticle-promo-link:hover{text-decoration:underline;}
1562
+ `});var IM,CM=y(()=>{"use strict";IM=`
1563
1563
  [data-reticle-overlay]{
1564
1564
  --reticle-hud-space-0:0px;
1565
1565
  --reticle-hud-space-1:4px;
@@ -1592,8 +1592,8 @@ ${Nx} [${Ft}]{display:none !important;}
1592
1592
  --reticle-hud-brand-soft:#2a1b0d;
1593
1593
  --reticle-hud-ease:cubic-bezier(.4,0,.2,1);
1594
1594
  }
1595
- `});var TM,xM=y(()=>{"use strict";ci();Tx();XP();vT();eM();Fr();nM();oM();Cg();Ag();ug();$g();SM();TM=`
1596
- ${_M}
1595
+ `});var LM,$M=y(()=>{"use strict";di();vx();aM();CT();dM();Vr();fM();mM();$g();wg();pg();zg();CM();LM=`
1596
+ ${IM}
1597
1597
  [data-reticle-overlay]{position:fixed;inset:0;pointer-events:none;z-index:${String(2147483600)};}
1598
1598
  /**
1599
1599
  * The session glow: the page itself says an agent is here, and BREATHES while it is working.
@@ -1643,104 +1643,104 @@ ${_M}
1643
1643
  [data-reticle-overlay] .reticle-sl-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;flex-shrink:0;color:inherit;overflow:visible;}
1644
1644
  [data-reticle-overlay] .reticle-hi-icon svg,
1645
1645
  [data-reticle-overlay] .reticle-sl-icon svg{display:block;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;overflow:visible;}
1646
- ${Z1}
1647
- ${W1}
1648
- ${YP}
1649
- ${tg}
1650
- ${tM}
1651
- ${QP}
1652
- ${rM}
1653
- ${fM}
1654
- ${N1}
1655
- ${CP}
1656
- ${qD}
1657
- ${HP}
1658
- ${bM}`});function RM(){let e=Ie(se.REMOVE,xe.MIN);return`<div ${B} class="reticle-report ${Xn}" role="region" aria-label="Reticle impact" aria-hidden="true">
1646
+ ${o1}
1647
+ ${i1}
1648
+ ${sM}
1649
+ ${rg}
1650
+ ${pM}
1651
+ ${uM}
1652
+ ${hM}
1653
+ ${yM}
1654
+ ${MD}
1655
+ ${BP}
1656
+ ${cP}
1657
+ ${qP}
1658
+ ${OM}`});function UM(){let e=Ie(se.REMOVE,Ae.MIN);return`<div ${B} class="reticle-report ${Xn}" role="region" aria-label="Reticle impact" aria-hidden="true">
1659
1659
  <div class="reticle-report-inner">
1660
1660
  <div class="reticle-report-head">
1661
1661
  <span class="reticle-report-title">${Q.TITLE}</span>
1662
- <span class="reticle-segmented reticle-report-scopes" role="group" aria-label="${Q.SCOPE_LABEL}"><button type="button" ${zg}="${Ox.PROJECT}" aria-pressed="true">${Q.PROJECT}</button><button type="button" ${zg}="${Ox.MACHINE}" aria-pressed="false" title="${Q.GLOBAL_TITLE}">${Q.GLOBAL}</button></span>
1663
- <button type="button" ${_T} class="reticle-report-close" title="Close" aria-label="Close impact">${e}</button>
1662
+ <span class="reticle-segmented reticle-report-scopes" role="group" aria-label="${Q.SCOPE_LABEL}"><button type="button" ${Pg}="${kx.PROJECT}" aria-pressed="true">${Q.PROJECT}</button><button type="button" ${Pg}="${kx.MACHINE}" aria-pressed="false" title="${Q.GLOBAL_TITLE}">${Q.GLOBAL}</button></span>
1663
+ <button type="button" ${yT} class="reticle-report-close" title="Close" aria-label="Close impact">${e}</button>
1664
1664
  </div>
1665
1665
  <div class="reticle-report-body" data-reticle-report-body></div>
1666
1666
  <div class="reticle-report-foot" role="group" aria-label="${Q.SHARE_LABEL}">
1667
1667
  <span class="reticle-report-share-label">${Q.SHARE_LABEL}</span>
1668
- <button type="button" ${yM} class="reticle-report-share">${Q.POST_X}</button>
1669
- <button type="button" ${wM} class="reticle-report-share">${Q.POST_IN}</button>
1670
- <button type="button" ${vM} class="reticle-report-share">${Q.COPY}</button>
1671
- <button type="button" ${NM} class="reticle-report-share reticle-report-refer">${Q.REFER}</button>
1668
+ <button type="button" ${zM} class="reticle-report-share">${Q.POST_X}</button>
1669
+ <button type="button" ${DM} class="reticle-report-share">${Q.POST_IN}</button>
1670
+ <button type="button" ${PM} class="reticle-report-share">${Q.COPY}</button>
1671
+ <button type="button" ${MM} class="reticle-report-share reticle-report-refer">${Q.REFER}</button>
1672
1672
  </div>
1673
1673
  <div class="reticle-report-links">
1674
- <a data-reticle-link="docs" href="${ls.DOCS}" target="_blank" rel="noreferrer noopener">Docs</a>
1675
- <a data-reticle-link="github" href="${ls.GITHUB}" target="_blank" rel="noreferrer noopener">GitHub</a>
1676
- <a data-reticle-link="site" href="${ls.SITE}" target="_blank" rel="noreferrer noopener">reticle.sh</a>
1677
- <a data-reticle-link="discord" href="${ls.DISCORD}" target="_blank" rel="noreferrer noopener">Discord</a>
1674
+ <a data-reticle-link="docs" href="${ds.DOCS}" target="_blank" rel="noreferrer noopener">Docs</a>
1675
+ <a data-reticle-link="github" href="${ds.GITHUB}" target="_blank" rel="noreferrer noopener">GitHub</a>
1676
+ <a data-reticle-link="site" href="${ds.SITE}" target="_blank" rel="noreferrer noopener">reticle.sh</a>
1677
+ <a data-reticle-link="discord" href="${ds.DISCORD}" target="_blank" rel="noreferrer noopener">Discord</a>
1678
1678
  </div>
1679
1679
  </div>
1680
- </div>`}function fs(e,t,n){let r=n===void 0?"":`<span class="reticle-report-basis" title="${n}">${Q.ESTIMATE_TAG}</span>`;return`<div class="reticle-report-card"><span class="reticle-report-value">${e}</span><span class="reticle-report-label">${t}${r}</span></div>`}function F9(e){let t=e.days.slice(-30);if(t.length===0)return"";let n=Math.max(1,...t.map(o=>o.counts.verdicts)),r=t.map(o=>{let i=Math.max(4,Math.round(o.counts.verdicts/n*100)),s=`${o.date}: ${String(o.counts.verdicts)} verdicts, ${String(o.counts.failed)} defects`,a=o.counts.failed>0?' data-hot="1"':"";return`<span class="reticle-report-bar" style="height:${String(i)}%" title="${s}"${a}></span>`}).join("");return`<div class="reticle-report-chart-wrap"><span class="reticle-report-section">${Q.CHART}</span><div class="reticle-report-chart">${r}</div></div>`}function B9(e,t){var u;let n=((u=e.defects)!=null?u:[]).slice(0,E0);if(n.length===0)return"";let r=t!==void 0&&mr(t),o=r?`<a class="reticle-report-defect-link" data-reticle-link="defect" href="${de(t)}" target="_blank" rel="noreferrer noopener" title="${Q.DEFECT_LINK_TITLE}" aria-label="${Q.DEFECT_LINK_TITLE}">${Ie(se.VIEW,xe.SEND)}</a>`:"",i=n.map(d=>{let f=d.detail===void 0?"":`<span class="reticle-report-defect-detail">${de(d.detail)}</span>`,m=d.source===void 0?"":`<span class="reticle-report-defect-source">${de(d.source)}</span>`;return`<li class="reticle-report-defect"><span class="reticle-report-defect-title">${de(d.title)}</span>${f}${m}${o}</li>`}).join(""),s=e.counts.failed>n.length,a=r?`<a class="reticle-report-defects-more" data-reticle-link="dashboard" href="${de(t)}" target="_blank" rel="noreferrer noopener">${Q.DEFECTS_MORE}${s?` (${String(e.counts.failed)})`:""}</a>`:s?`<button type="button" data-reticle-defects-all ${Xt} class="reticle-report-defects-all" title="${Q.DEFECTS_SEE_ALL_TITLE}">${Q.DEFECTS_SEE_ALL} (${String(e.counts.failed)}) \u2192</button>`:"",l=$T(t);return`<div class="reticle-report-defects-wrap"><div class="reticle-report-defects-head"><span class="reticle-report-section">${Q.DEFECTS}</span>${l}</div><ul class="reticle-report-defects">${i}</ul>${a}</div>`}function G9(e){if(e===void 0)return"";let t=l=>typeof e[l]=="number"?e[l]:0,n=e.status,r=typeof e.keyRefused=="string"?e.keyRefused:void 0,o=r!==void 0?Q.KEY_REFUSED:n==="refused"?`${String(t("refused"))} refused`:n==="pending"?`${String(t("pending"))} waiting`:n==="on-platform"?`Synced \xB7 ${String(t("onPlatform"))}`:n==="local-only"?`${String(t("pending"))} ${Q.NOT_SENT}`:void 0;if(o===void 0)return"";let i=r!==void 0?r:n==="local-only"?Q.NOT_SENT_HELP:typeof e.said=="string"?e.said:"",s=e.runUrl,a=typeof s=="string"&&mr(s)?` <a class="reticle-sync-run" data-reticle-link="run" href="${de(s)}" target="_blank" rel="noreferrer noopener">${Q.SEE_RUN}</a>`:"";return`<span class="reticle-sync-status" data-reticle-sync-status="${de(String(n))}" title="${de(i)}">${o}</span>${a}`}function V9(e){var i,s;if(e===void 0)return"";let t=hP.filter(a=>typeof e[a.key]=="number");if(t.length===0)return"";let n=a=>{var l;return`${String(Math.round((l=e[a])!=null?l:0))}%`},r=typeof e.proved=="number"?n("proved"):n((s=(i=t[0])==null?void 0:i.key)!=null?s:""),o=t.map(a=>`<span class="reticle-report-coverage-level">${n(a.key)} ${a.label}</span>`).join("");return`<div class="reticle-report-coverage" title="${Q.COVERAGE_HELP}"><span class="reticle-report-section">${Q.COVERAGE}</span><span class="reticle-report-coverage-value">${r}</span><div class="reticle-report-coverage-levels">${o}</div></div>`}function j9(e,t,n,r,o,i){let s=e.counts;if(s.calls===0)return`<p class="reticle-report-empty">${Q.EMPTY}</p>`;let a=e.records.streakDays>0?`<span class="reticle-report-streak" title="Consecutive days with at least one verdict">\u{1F525} ${String(e.records.streakDays)} <span class="reticle-report-streak-label">${Q.STREAK}</span></span>`:"",l=`<div class="reticle-report-hero"><span class="reticle-report-hero-value">${So(s.failed)}</span><span class="reticle-report-hero-label">${Q.heroDefects(s.failed)}</span></div>`,u=`<div class="reticle-report-verdicts" title="${Q.UNKNOWN_HELP}">
1681
- <span class="reticle-report-verdict" data-kind="pass">${So(s.passed)} ${Q.PASSED}</span>
1682
- <span class="reticle-report-verdict" data-kind="fail">${So(s.failed)} ${Q.FAILED}</span>
1683
- <span class="reticle-report-verdict" data-kind="unknown">${So(s.unknown)} ${Q.UNKNOWN}</span>
1684
- </div>`,d=[fs(So(s.verdicts),Q.VERDICTS),fs(So(s.calls),Q.CALLS),fs(mp(s.drivingMs),Q.DRIVING),fs(So(s.sessions),Q.SESSIONS),fs(mp(e.records.longestRunMs),Q.LONGEST),fs(So(s.tokensReturned),Q.TOKENS),fs(So(e.savings.tokens.value),Q.SAVED_TOKENS,e.savings.tokens.basis),fs(mp(e.savings.minutes.value*6e4),Q.SAVED_MINUTES,e.savings.minutes.basis)].join(""),f=`<div class="reticle-report-identity">${pl(n,{dashboardUrl:t,projectName:r,verdicts:s.verdicts,defects:s.failed})}${$T(t)}${G9(i)}</div>`;return`<div class="reticle-report-top">${a}${f}</div>${l}${u}${V9(o)}<div class="reticle-report-grid">${d}</div>${B9(e,t)}${F9(e)}${K9(e,t,n)}`}function K9(e,t,n){if(t!==void 0||e.counts.verdicts<=0||n===void 0)return"";let[r,o,i]=n.signedIn?[Q.UNLINKED,Q.UNLINKED_ACTION,Q.UNLINKED_TAIL]:[Q.LOCAL_ONLY,Q.LOCAL_ONLY_ACTION,Q.LOCAL_ONLY_TAIL];return`<p class="reticle-report-local-only">${r} <code>${o}</code> ${i}</p>`}var zg,Ox,yM,wM,vM,NM,H9,Z9,AM,Na,Dl,hs,Tr,ms,Pl,Jt,OM,kg,Ix,vp,Dg,IM=y(()=>{"use strict";M();Pr();Fr();fa();bo();Lt();Eg();zg="data-reticle-report-scope",Ox={PROJECT:"project",MACHINE:"machine"},yM="data-reticle-share-x",wM="data-reticle-share-in",vM="data-reticle-share-copy",NM="data-reticle-refer",H9=1600;Z9=1200,AM="data-syncing",Dg=class{constructor(t={}){x(this,Jt);x(this,Na);x(this,Dl);x(this,hs);x(this,Tr);x(this,ms,!1);x(this,Pl);g(this,Pl,t)}mount(t){var r,o,i,s,a,l,u;g(this,hs,t),g(this,Na,(r=t.querySelector(`[${B}]`))!=null?r:void 0),g(this,Dl,(o=t.querySelector("[data-reticle-report-body]"))!=null?o:void 0),(i=t.querySelector(`[${_T}]`))==null||i.addEventListener("click",d=>{d.stopPropagation(),this.close()});let n=t.querySelectorAll(`[${zg}]`);for(let d of n)d.addEventListener("click",f=>{f.stopPropagation(),g(this,ms,Ox.MACHINE===d.getAttribute(zg));for(let m of n)m.setAttribute("aria-pressed",m===d?"true":"false");T(this,Jt,kg).call(this)});(s=t.querySelector(`[${yM}]`))==null||s.addEventListener("click",d=>{d.stopPropagation(),T(this,Jt,Ix).call(this,dP(this.shareText()))}),(a=t.querySelector(`[${wM}]`))==null||a.addEventListener("click",d=>{d.stopPropagation(),T(this,Jt,vp).call(this,this.shareText()),T(this,Jt,Ix).call(this,pP())}),(l=t.querySelector(`[${vM}]`))==null||l.addEventListener("click",d=>{d.stopPropagation(),T(this,Jt,vp).call(this,this.shareText(),d.currentTarget)}),(u=t.querySelector(`[${NM}]`))==null||u.addEventListener("click",d=>{d.stopPropagation(),T(this,Jt,vp).call(this,ux(),d.currentTarget)}),t.addEventListener("click",d=>{var E,_;let f=d.target;if(!(f instanceof Element))return;let m=f.closest(`[${Xt}]`);if(m!==null){d.stopPropagation(),T(this,Jt,vp).call(this,fe.SIGNIN_COMMAND,m);return}let h=f.closest(`[${LT}]`);h!==null&&(d.stopPropagation(),(_=(E=c(this,Pl)).onSyncNow)==null||_.call(E),h.setAttribute(AM,"1"),setTimeout(()=>h.removeAttribute(AM),Z9))})}setSnapshot(t){g(this,Tr,t),this.isOpen()&&T(this,Jt,kg).call(this)}snapshot(){return c(this,Tr)}isOpen(){var t;return((t=c(this,hs))==null?void 0:t.getAttribute(On))==="1"}open(){var t,n,r;c(this,hs)!==void 0&&((n=(t=c(this,Pl)).onBeforeOpen)==null||n.call(t),T(this,Jt,kg).call(this),c(this,hs).setAttribute(On,"1"),(r=c(this,Na))==null||r.setAttribute("aria-hidden","false"))}close(){var t,n;(t=c(this,hs))==null||t.setAttribute(On,"0"),(n=c(this,Na))==null||n.setAttribute("aria-hidden","true")}toggle(){this.isOpen()?this.close():this.open()}contains(t){var n;return((n=c(this,Na))==null?void 0:n.contains(t))===!0}shareText(){let t=c(this,Tr);return t===void 0?ux():c(this,ms)?lx(t.global):lx(t.project,t.projectName)}};Na=new WeakMap,Dl=new WeakMap,hs=new WeakMap,Tr=new WeakMap,ms=new WeakMap,Pl=new WeakMap,Jt=new WeakSet,OM=function(){let t=c(this,Tr);if(t!==void 0)return c(this,ms)?t.global:t.project},kg=function(){var n,r,o,i,s;let t=T(this,Jt,OM).call(this);c(this,Dl)!==void 0&&(c(this,Dl).innerHTML=t===void 0?`<p class="reticle-report-empty">${Q.EMPTY}</p>`:j9(t,(n=c(this,Tr))==null?void 0:n.dashboardUrl,(r=c(this,Tr))==null?void 0:r.account,(o=c(this,Tr))==null?void 0:o.projectName,c(this,ms)||(i=c(this,Tr))==null?void 0:i.coverage,c(this,ms)||(s=c(this,Tr))==null?void 0:s.sync))},Ix=function(t){window.open(t,"_blank","noopener,noreferrer")},vp=async function(t,n){var r,o;try{await((r=navigator.clipboard)==null?void 0:r.writeText(t))}catch{}if(n instanceof HTMLElement){let i=(o=n.textContent)!=null?o:"";n.textContent=Q.COPIED,window.setTimeout(()=>{n.textContent=i},H9)}}});function J9(e){let t=e.kicker===void 0?"":`<span class="reticle-promo-kicker">${de(e.kicker)}</span>`,n=e.detail===void 0?"":`<span class="reticle-promo-detail" title="${de(e.detail)}">${de(e.detail)}</span>`,r=e.cta===void 0?"":`<a data-reticle-promo-link class="reticle-promo-link" href="${de(e.cta.url)}" target="_blank" rel="noopener noreferrer">${de(e.cta.label)} \u2192</a>`;return{id:`${q9}${e.id}`,html:`<div class="reticle-promo-copy">${t}<strong class="reticle-promo-title">${de(e.title)}</strong>${n}${r}</div>`}}function LM(e=[],t=Mf){let n=e.flatMap(r=>{let o=NT.safeParse(r);return o.success&&!o.data.id.startsWith(X9)?[o.data]:[]});return 0<n.length?n.map(J9):[...Y9(t)]}var W9,CM,Np,Y9,X9,q9,$M=y(()=>{"use strict";ul();fa();M();W9="/settings?group=billing",CM={REPLAY:"replay-confidence",NOTES:"notes-for-agent"},Np={REPLAY_TITLE:"Replay what your agent verified",REPLAY_DETAIL:"Saved flows re-run after each edit.",REPLAY_LINK:"See how \u2192",NOTES_TITLE:"Point your agent at anything",NOTES_DETAIL:"Open Notes, then click an element."},Y9=e=>[{id:CM.REPLAY,html:`<div class="reticle-promo-copy"><strong class="reticle-promo-title">${Np.REPLAY_TITLE}</strong><span class="reticle-promo-detail">${Np.REPLAY_DETAIL}</span><a data-reticle-promo-link class="reticle-promo-link" href="${e}${W9}" target="_blank" rel="noopener noreferrer">${Np.REPLAY_LINK}</a></div>`},{id:CM.NOTES,html:`<div class="reticle-promo-copy"><strong class="reticle-promo-title">${Np.NOTES_TITLE}</strong><span class="reticle-promo-detail">${Np.NOTES_DETAIL}</span></div>`}],X9="harness",q9="notice-"});var Q9,kM,Cx,eW,zM,DM=y(()=>{"use strict";Q9="Reticle",kM='<path d="M92.82 92.16C93.07 93.4 91.77 94.4 90.63 93.83C89.62 93.33 88.62 92.82 87.63 92.3C71.14 83.78 54.79 72.27 39.61 57.96C39.09 57.49 38.57 56.98 38.06 56.49C22.45 41.52 9.78 25.14 .33 8.52C0.29 8.45 .25 8.38 .2 8.31C-0.44 7.2 .51 5.84 1.79 6.05L24.07 9.71C43.06 12.83 60.63 11.75 75.55 6.53L93.95 .09C95.15-0.33 96.31 .78 95.93 1.98L90.1 20.49C85.37 35.48 84.9 52.97 88.69 71.73L92.83 92.16H92.82Z"/><path d="M58.72 89.23L6.15 92.8C5.24 92.86 4.48 92.13 4.51 91.22L6.56 30.39C6.61 28.91 8.51 28.36 9.35 29.57C16.23 39.43 24.98 52.35 33.01 61.26C41.05 70.17 50.6 78.72 59.62 86.56C60.65 87.45 60.08 89.13 58.72 89.23Z"/>',Cx=`<svg class="reticle-mark" viewBox="0 0 96 94" fill="currentColor" aria-hidden="true">${kM}</svg>`,eW=`<svg class="reticle-fab-mark" viewBox="0 0 96 94" fill="currentColor" aria-hidden="true">${kM}</svg>`,zM=`<button type="button" class="reticle-fab" data-reticle-fab aria-label="Start ${Q9}" aria-expanded="false">${eW}<span class="reticle-fab-pulse" aria-hidden="true"></span><span data-reticle-mark-count class="reticle-fab-badge" hidden>0</span></button>`});function kx(e,t=[],n){let r=e.querySelector(`[${Rx}]`);if(r===null)return;let o;try{o=window.sessionStorage}catch{o=void 0}pM(r,LM(t,n),o)}function BM(){try{return globalThis.sessionStorage.getItem(Vm)==="1"}catch{return!1}}function HM(e){try{e?globalThis.sessionStorage.setItem(Vm,"1"):globalThis.sessionStorage.removeItem(Vm)}catch{}}function rW(){try{return globalThis.localStorage.getItem(jm)==="1"}catch{return!1}}function Ml(e){try{e?globalThis.localStorage.setItem(jm,"1"):globalThis.localStorage.removeItem(jm)}catch{}}function Px(){return rW()&&!BM()}function GM(e){return e&&!BM()}var PM,tW,MM,UM,Lx,nW,$x,Le,Qt,xr,Ra,Ul,jt,gt,Hl,Fl,Oa,Ia,No,gs,Ca,La,Ro,Kr,$a,Bl,Op,gi,Gl,Cn,Pg,zx,Dx,FM,Mg,Ug,Rp,Mx=y(()=>{"use strict";lt();IM();qT();bo();hl();Lt();Cg();$M();$g();DM();ci();wT();rp();Pr();Fr();Ag();hl();PM="reticle-toolbar-drag",tW=120,MM="Minimise chat",UM="Open agent chat",Lx="Settings",nW="Reticle",$x="Exit";Rp=class{constructor(t={}){x(this,Cn);x(this,Le);x(this,Qt);x(this,xr);x(this,Ra);x(this,Ul);x(this,jt);x(this,gt);x(this,Hl);x(this,Fl);x(this,Oa,!1);x(this,Ia,!1);x(this,No);x(this,gs,!1);x(this,Ca);x(this,La);x(this,Ro,new Dg({onBeforeOpen:()=>{c(this,jt).close(),this.closeChat()},onSyncNow:()=>{var t,n;return(n=(t=c(this,Kr)).onSyncNow)==null?void 0:n.call(t)}}));x(this,Kr);x(this,$a);x(this,Bl,[]);x(this,Op);x(this,gi);x(this,Gl);x(this,Mg,t=>{if(c(this,Le)===void 0||c(this,Qt)===void 0||!c(this,jt).isOpen())return;let n=t.target;n instanceof Node&&(c(this,Qt).contains(n)||c(this,jt).contains(n)||c(this,jt).close())});x(this,Ug,t=>{if(t.key!=="Escape"||c(this,Le)===void 0||t.defaultPrevented||mh(document))return;let n=t.target;if(!(n instanceof HTMLElement&&(n.tagName==="INPUT"||n.tagName==="TEXTAREA"||n.isContentEditable===!0))){if(this.isChatOpen()){Ml(!1),this.closeChat();return}if(c(this,jt).isOpen()){c(this,jt).close();return}this.isCollapsed()||(Ml(!1),this.collapse())}});g(this,Kr,t),g(this,gt,new xg(()=>{c(this,gt).closePage(),this.closeChat(),c(this,Ro).open()},n=>{if(n==="activity"){c(this,gt).open(n),this.showChat();return}this.isCollapsed()&&this.expand(),this.closeChat(),c(this,jt).close(),c(this,Ro).close()},{run:n=>{var r;return(r=t.onHarnessRun)==null?void 0:r.call(t,n)},stop:()=>{var n;return(n=t.onHarnessStop)==null?void 0:n.call(t)},setHarness:n=>{var r;return(r=t.onHarness)==null?void 0:r.call(t,n)},link:()=>{var n;return(n=t.onHarnessLink)==null?void 0:n.call(t)}})),g(this,jt,new lp({...t.settings,onBeforeOpen:()=>{var n,r;this.closeChat(),c(this,gt).closePage(),c(this,Ro).close(),(r=(n=t.settings)==null?void 0:n.onBeforeOpen)==null||r.call(n)}}))}setProjectId(t){c(this,gt).setProjectId(t)}paintHarnessDrive(t,n){c(this,gt).paintDrive(t,n)}paintAgent(t){c(this,gt).paintAgent(t)}paintHarness(t){g(this,Op,t),c(this,jt).paintHarness(t),c(this,gt).paintHarness(t),T(this,Cn,zx).call(this)}paintImpact(t){c(this,gt).paintImpact(t)}paintAnnotations(t){c(this,gt).paintAnnotations(t)}openView(t){t==="activity"?this.showChat():(this.isCollapsed()&&this.expand(),this.closeChat(),c(this,jt).close(),c(this,Ro).close()),c(this,gt).open(t)}paintAccount(t,n,r={}){g(this,$a,{account:t,dashboardUrl:n,details:r}),c(this,Le)!==void 0&&(jD(c(this,Le),t,n,r),GT(c(this,Le),t,n,r),EM(c(this,Le),t),c(this,gt).paintAccount(t),T(this,Cn,zx).call(this))}paintNotices(t=[]){g(this,Bl,t),g(this,gi,T(this,Cn,Pg).call(this)),c(this,Le)!==void 0&&kx(c(this,Le),t,c(this,gi))}static dockHtml(t,n,r,o,i){let s=Nm(se.GEAR,xe.TOOLBAR),a=Ie(se.REMOVE,xe.TOOLBAR);return`<div ${F} role="complementary" aria-label="Reticle">
1680
+ </div>`}function ms(e,t,n){let r=n===void 0?"":`<span class="reticle-report-basis" title="${n}">${Q.ESTIMATE_TAG}</span>`;return`<div class="reticle-report-card"><span class="reticle-report-value">${e}</span><span class="reticle-report-label">${t}${r}</span></div>`}function cW(e){let t=e.days.slice(-30);if(t.length===0)return"";let n=Math.max(1,...t.map(o=>o.counts.verdicts)),r=t.map(o=>{let i=Math.max(4,Math.round(o.counts.verdicts/n*100)),s=`${o.date}: ${String(o.counts.verdicts)} verdicts, ${String(o.counts.failed)} defects`,a=o.counts.failed>0?' data-hot="1"':"";return`<span class="reticle-report-bar" style="height:${String(i)}%" title="${s}"${a}></span>`}).join("");return`<div class="reticle-report-chart-wrap"><span class="reticle-report-section">${Q.CHART}</span><div class="reticle-report-chart">${r}</div></div>`}function lW(e,t){var u;let n=((u=e.defects)!=null?u:[]).slice(0,w0);if(n.length===0)return"";let r=t!==void 0&&Er(t),o=r?`<a class="reticle-report-defect-link" data-reticle-link="defect" href="${de(t)}" target="_blank" rel="noreferrer noopener" title="${Q.DEFECT_LINK_TITLE}" aria-label="${Q.DEFECT_LINK_TITLE}">${Ie(se.VIEW,Ae.SEND)}</a>`:"",i=n.map(d=>{let f=d.detail===void 0?"":`<span class="reticle-report-defect-detail">${de(d.detail)}</span>`,m=d.source===void 0?"":`<span class="reticle-report-defect-source">${de(d.source)}</span>`;return`<li class="reticle-report-defect"><span class="reticle-report-defect-title">${de(d.title)}</span>${f}${m}${o}</li>`}).join(""),s=e.counts.failed>n.length,a=r?`<a class="reticle-report-defects-more" data-reticle-link="dashboard" href="${de(t)}" target="_blank" rel="noreferrer noopener">${Q.DEFECTS_MORE}${s?` (${String(e.counts.failed)})`:""}</a>`:s?`<button type="button" data-reticle-defects-all ${qt} class="reticle-report-defects-all" title="${Q.DEFECTS_SEE_ALL_TITLE}">${Q.DEFECTS_SEE_ALL} (${String(e.counts.failed)}) \u2192</button>`:"",l=MT(t);return`<div class="reticle-report-defects-wrap"><div class="reticle-report-defects-head"><span class="reticle-report-section">${Q.DEFECTS}</span>${l}</div><ul class="reticle-report-defects">${i}</ul>${a}</div>`}function uW(e){if(e===void 0)return"";let t=l=>typeof e[l]=="number"?e[l]:0,n=e.status,r=typeof e.keyRefused=="string"?e.keyRefused:void 0,o=r!==void 0?Q.KEY_REFUSED:n==="refused"?`${String(t("refused"))} refused`:n==="pending"?`${String(t("pending"))} waiting`:n==="on-platform"?`Synced \xB7 ${String(t("onPlatform"))}`:n==="local-only"?`${String(t("pending"))} ${Q.NOT_SENT}`:void 0;if(o===void 0)return"";let i=r!==void 0?r:n==="local-only"?Q.NOT_SENT_HELP:typeof e.said=="string"?e.said:"",s=e.runUrl,a=typeof s=="string"&&Er(s)?` <a class="reticle-sync-run" data-reticle-link="run" href="${de(s)}" target="_blank" rel="noreferrer noopener">${Q.SEE_RUN}</a>`:"";return`<span class="reticle-sync-status" data-reticle-sync-status="${de(String(n))}" title="${de(i)}">${o}</span>${a}`}function dW(e){var i,s;if(e===void 0)return"";let t=wP.filter(a=>typeof e[a.key]=="number");if(t.length===0)return"";let n=a=>{var l;return`${String(Math.round((l=e[a])!=null?l:0))}%`},r=typeof e.proved=="number"?n("proved"):n((s=(i=t[0])==null?void 0:i.key)!=null?s:""),o=t.map(a=>`<span class="reticle-report-coverage-level">${n(a.key)} ${a.label}</span>`).join("");return`<div class="reticle-report-coverage" title="${Q.COVERAGE_HELP}"><span class="reticle-report-section">${Q.COVERAGE}</span><span class="reticle-report-coverage-value">${r}</span><div class="reticle-report-coverage-levels">${o}</div></div>`}function pW(e,t,n,r,o,i){let s=e.counts;if(s.calls===0)return`<p class="reticle-report-empty">${Q.EMPTY}</p>`;let a=e.records.streakDays>0?`<span class="reticle-report-streak" title="Consecutive days with at least one verdict">\u{1F525} ${String(e.records.streakDays)} <span class="reticle-report-streak-label">${Q.STREAK}</span></span>`:"",l=`<div class="reticle-report-hero"><span class="reticle-report-hero-value">${yo(s.failed)}</span><span class="reticle-report-hero-label">${Q.heroDefects(s.failed)}</span></div>`,u=`<div class="reticle-report-verdicts" title="${Q.UNKNOWN_HELP}">
1681
+ <span class="reticle-report-verdict" data-kind="pass">${yo(s.passed)} ${Q.PASSED}</span>
1682
+ <span class="reticle-report-verdict" data-kind="fail">${yo(s.failed)} ${Q.FAILED}</span>
1683
+ <span class="reticle-report-verdict" data-kind="unknown">${yo(s.unknown)} ${Q.UNKNOWN}</span>
1684
+ </div>`,d=[ms(yo(s.verdicts),Q.VERDICTS),ms(yo(s.calls),Q.CALLS),ms(gp(s.drivingMs),Q.DRIVING),ms(yo(s.sessions),Q.SESSIONS),ms(gp(e.records.longestRunMs),Q.LONGEST),ms(yo(s.tokensReturned),Q.TOKENS),ms(yo(e.savings.tokens.value),Q.SAVED_TOKENS,e.savings.tokens.basis),ms(gp(e.savings.minutes.value*6e4),Q.SAVED_MINUTES,e.savings.minutes.basis)].join(""),f=`<div class="reticle-report-identity">${hl(n,{dashboardUrl:t,projectName:r,verdicts:s.verdicts,defects:s.failed})}${MT(t)}${uW(i)}</div>`;return`<div class="reticle-report-top">${a}${f}</div>${l}${u}${dW(o)}<div class="reticle-report-grid">${d}</div>${lW(e,t)}${cW(e)}${fW(e,t,n)}`}function fW(e,t,n){if(t!==void 0||e.counts.verdicts<=0||n===void 0)return"";let[r,o,i]=n.signedIn?[Q.UNLINKED,Q.UNLINKED_ACTION,Q.UNLINKED_TAIL]:[Q.LOCAL_ONLY,Q.LOCAL_ONLY_ACTION,Q.LOCAL_ONLY_TAIL];return`<p class="reticle-report-local-only">${r} <code>${o}</code> ${i}</p>`}var Pg,kx,zM,DM,PM,MM,aW,hW,kM,Ra,Ml,gs,Ar,Es,Ul,Qt,HM,Dg,zx,Np,Mg,FM=y(()=>{"use strict";M();Hr();Vr();ha();xo();Ct();_g();Pg="data-reticle-report-scope",kx={PROJECT:"project",MACHINE:"machine"},zM="data-reticle-share-x",DM="data-reticle-share-in",PM="data-reticle-share-copy",MM="data-reticle-refer",aW=1600;hW=1200,kM="data-syncing",Mg=class{constructor(t={}){x(this,Qt);x(this,Ra);x(this,Ml);x(this,gs);x(this,Ar);x(this,Es,!1);x(this,Ul);g(this,Ul,t)}mount(t){var r,o,i,s,a,l,u;g(this,gs,t),g(this,Ra,(r=t.querySelector(`[${B}]`))!=null?r:void 0),g(this,Ml,(o=t.querySelector("[data-reticle-report-body]"))!=null?o:void 0),(i=t.querySelector(`[${yT}]`))==null||i.addEventListener("click",d=>{d.stopPropagation(),this.close()});let n=t.querySelectorAll(`[${Pg}]`);for(let d of n)d.addEventListener("click",f=>{f.stopPropagation(),g(this,Es,kx.MACHINE===d.getAttribute(Pg));for(let m of n)m.setAttribute("aria-pressed",m===d?"true":"false");T(this,Qt,Dg).call(this)});(s=t.querySelector(`[${zM}]`))==null||s.addEventListener("click",d=>{d.stopPropagation(),T(this,Qt,zx).call(this,xP(this.shareText()))}),(a=t.querySelector(`[${DM}]`))==null||a.addEventListener("click",d=>{d.stopPropagation(),T(this,Qt,Np).call(this,this.shareText()),T(this,Qt,zx).call(this,AP())}),(l=t.querySelector(`[${PM}]`))==null||l.addEventListener("click",d=>{d.stopPropagation(),T(this,Qt,Np).call(this,this.shareText(),d.currentTarget)}),(u=t.querySelector(`[${MM}]`))==null||u.addEventListener("click",d=>{d.stopPropagation(),T(this,Qt,Np).call(this,mx(),d.currentTarget)}),t.addEventListener("click",d=>{var E,_;let f=d.target;if(!(f instanceof Element))return;let m=f.closest(`[${qt}]`);if(m!==null){d.stopPropagation(),T(this,Qt,Np).call(this,fe.SIGNIN_COMMAND,m);return}let h=f.closest(`[${PT}]`);h!==null&&(d.stopPropagation(),(_=(E=c(this,Ul)).onSyncNow)==null||_.call(E),h.setAttribute(kM,"1"),setTimeout(()=>h.removeAttribute(kM),hW))})}setSnapshot(t){g(this,Ar,t),this.isOpen()&&T(this,Qt,Dg).call(this)}snapshot(){return c(this,Ar)}isOpen(){var t;return((t=c(this,gs))==null?void 0:t.getAttribute(On))==="1"}open(){var t,n,r;c(this,gs)!==void 0&&((n=(t=c(this,Ul)).onBeforeOpen)==null||n.call(t),T(this,Qt,Dg).call(this),c(this,gs).setAttribute(On,"1"),(r=c(this,Ra))==null||r.setAttribute("aria-hidden","false"))}close(){var t,n;(t=c(this,gs))==null||t.setAttribute(On,"0"),(n=c(this,Ra))==null||n.setAttribute("aria-hidden","true")}toggle(){this.isOpen()?this.close():this.open()}contains(t){var n;return((n=c(this,Ra))==null?void 0:n.contains(t))===!0}shareText(){let t=c(this,Ar);return t===void 0?mx():c(this,Es)?hx(t.global):hx(t.project,t.projectName)}};Ra=new WeakMap,Ml=new WeakMap,gs=new WeakMap,Ar=new WeakMap,Es=new WeakMap,Ul=new WeakMap,Qt=new WeakSet,HM=function(){let t=c(this,Ar);if(t!==void 0)return c(this,Es)?t.global:t.project},Dg=function(){var n,r,o,i,s;let t=T(this,Qt,HM).call(this);c(this,Ml)!==void 0&&(c(this,Ml).innerHTML=t===void 0?`<p class="reticle-report-empty">${Q.EMPTY}</p>`:pW(t,(n=c(this,Ar))==null?void 0:n.dashboardUrl,(r=c(this,Ar))==null?void 0:r.account,(o=c(this,Ar))==null?void 0:o.projectName,c(this,Es)||(i=c(this,Ar))==null?void 0:i.coverage,c(this,Es)||(s=c(this,Ar))==null?void 0:s.sync))},zx=function(t){window.open(t,"_blank","noopener,noreferrer")},Np=async function(t,n){var r,o;try{await((r=navigator.clipboard)==null?void 0:r.writeText(t))}catch{}if(n instanceof HTMLElement){let i=(o=n.textContent)!=null?o:"";n.textContent=Q.COPIED,window.setTimeout(()=>{n.textContent=i},aW)}}});function _W(e){let t=e.kicker===void 0?"":`<span class="reticle-promo-kicker">${de(e.kicker)}</span>`,n=e.detail===void 0?"":`<span class="reticle-promo-detail" title="${de(e.detail)}">${de(e.detail)}</span>`,r=e.cta===void 0?"":`<a data-reticle-promo-link class="reticle-promo-link" href="${de(e.cta.url)}" target="_blank" rel="noopener noreferrer">${de(e.cta.label)} \u2192</a>`;return{id:`${bW}${e.id}`,html:`<div class="reticle-promo-copy">${t}<strong class="reticle-promo-title">${de(e.title)}</strong>${n}${r}</div>`}}function GM(e=[],t=Uf){let n=e.flatMap(r=>{let o=LT.safeParse(r);return o.success&&!o.data.id.startsWith(EW)?[o.data]:[]});return 0<n.length?n.map(_W):[...gW(t)]}var mW,BM,Rp,gW,EW,bW,VM=y(()=>{"use strict";pl();ha();M();mW="/settings?group=billing",BM={REPLAY:"replay-confidence",NOTES:"notes-for-agent"},Rp={REPLAY_TITLE:"Replay what your agent verified",REPLAY_DETAIL:"Saved flows re-run after each edit.",REPLAY_LINK:"See how \u2192",NOTES_TITLE:"Point your agent at anything",NOTES_DETAIL:"Open Notes, then click an element."},gW=e=>[{id:BM.REPLAY,html:`<div class="reticle-promo-copy"><strong class="reticle-promo-title">${Rp.REPLAY_TITLE}</strong><span class="reticle-promo-detail">${Rp.REPLAY_DETAIL}</span><a data-reticle-promo-link class="reticle-promo-link" href="${e}${mW}" target="_blank" rel="noopener noreferrer">${Rp.REPLAY_LINK}</a></div>`},{id:BM.NOTES,html:`<div class="reticle-promo-copy"><strong class="reticle-promo-title">${Rp.NOTES_TITLE}</strong><span class="reticle-promo-detail">${Rp.NOTES_DETAIL}</span></div>`}],EW="harness",bW="notice-"});var SW,jM,Dx,TW,KM,ZM=y(()=>{"use strict";SW="Reticle",jM='<path d="M92.82 92.16C93.07 93.4 91.77 94.4 90.63 93.83C89.62 93.33 88.62 92.82 87.63 92.3C71.14 83.78 54.79 72.27 39.61 57.96C39.09 57.49 38.57 56.98 38.06 56.49C22.45 41.52 9.78 25.14 .33 8.52C0.29 8.45 .25 8.38 .2 8.31C-0.44 7.2 .51 5.84 1.79 6.05L24.07 9.71C43.06 12.83 60.63 11.75 75.55 6.53L93.95 .09C95.15-0.33 96.31 .78 95.93 1.98L90.1 20.49C85.37 35.48 84.9 52.97 88.69 71.73L92.83 92.16H92.82Z"/><path d="M58.72 89.23L6.15 92.8C5.24 92.86 4.48 92.13 4.51 91.22L6.56 30.39C6.61 28.91 8.51 28.36 9.35 29.57C16.23 39.43 24.98 52.35 33.01 61.26C41.05 70.17 50.6 78.72 59.62 86.56C60.65 87.45 60.08 89.13 58.72 89.23Z"/>',Dx=`<svg class="reticle-mark" viewBox="0 0 96 94" fill="currentColor" aria-hidden="true">${jM}</svg>`,TW=`<svg class="reticle-fab-mark" viewBox="0 0 96 94" fill="currentColor" aria-hidden="true">${jM}</svg>`,KM=`<button type="button" class="reticle-fab" data-reticle-fab aria-label="Start ${SW}" aria-expanded="false">${TW}<span class="reticle-fab-pulse" aria-hidden="true"></span><span data-reticle-mark-count class="reticle-fab-badge" hidden>0</span></button>`});function Ux(e,t=[],n){let r=e.querySelector(`[${$x}]`);if(r===null)return;let o;try{o=window.sessionStorage}catch{o=void 0}AM(r,GM(t,n),o)}function QM(){try{return globalThis.sessionStorage.getItem(Km)==="1"}catch{return!1}}function qM(e){try{e?globalThis.sessionStorage.setItem(Km,"1"):globalThis.sessionStorage.removeItem(Km)}catch{}}function yW(){try{return globalThis.localStorage.getItem(Zm)==="1"}catch{return!1}}function Hl(e){try{e?globalThis.localStorage.setItem(Zm,"1"):globalThis.localStorage.removeItem(Zm)}catch{}}function Bx(){return yW()&&!QM()}function e2(e){return e&&!QM()}var WM,xW,YM,XM,Px,AW,Mx,$e,en,yr,Oa,Fl,Vt,bt,Bl,Gl,Ia,Ca,Co,bs,La,$a,Lo,Yr,ka,Vl,Ip,_i,jl,Cn,Ug,Hx,Fx,JM,Hg,Fg,Op,Gx=y(()=>{"use strict";nt();FM();nx();xo();gl();Ct();$g();VM();zg();ZM();di();IT();op();Hr();Vr();wg();gl();WM="reticle-toolbar-drag",xW=120,YM="Minimise chat",XM="Open agent chat",Px="Settings",AW="Reticle",Mx="Exit";Op=class{constructor(t={}){x(this,Cn);x(this,$e);x(this,en);x(this,yr);x(this,Oa);x(this,Fl);x(this,Vt);x(this,bt);x(this,Bl);x(this,Gl);x(this,Ia,!1);x(this,Ca,!1);x(this,Co);x(this,bs,!1);x(this,La);x(this,$a);x(this,Lo,new Mg({onBeforeOpen:()=>{c(this,Vt).close(),this.closeChat()},onSyncNow:()=>{var t,n;return(n=(t=c(this,Yr)).onSyncNow)==null?void 0:n.call(t)}}));x(this,Yr);x(this,ka);x(this,Vl,[]);x(this,Ip);x(this,_i);x(this,jl);x(this,Hg,t=>{if(c(this,$e)===void 0||c(this,en)===void 0||!c(this,Vt).isOpen())return;let n=t.target;n instanceof Node&&(c(this,en).contains(n)||c(this,Vt).contains(n)||c(this,Vt).close())});x(this,Fg,t=>{if(t.key!=="Escape"||c(this,$e)===void 0||t.defaultPrevented||gh(document))return;let n=t.target;if(!(n instanceof HTMLElement&&(n.tagName==="INPUT"||n.tagName==="TEXTAREA"||n.isContentEditable===!0))){if(this.isChatOpen()){Hl(!1),this.closeChat();return}if(c(this,Vt).isOpen()){c(this,Vt).close();return}this.isCollapsed()||(Hl(!1),this.collapse())}});g(this,Yr,t),g(this,bt,new yg(()=>{c(this,bt).closePage(),this.closeChat(),c(this,Lo).open()},n=>{if(n==="activity"){c(this,bt).open(n),this.showChat();return}this.isCollapsed()&&this.expand(),this.closeChat(),c(this,Vt).close(),c(this,Lo).close()},{run:n=>{var r;return(r=t.onHarnessRun)==null?void 0:r.call(t,n)},stop:()=>{var n;return(n=t.onHarnessStop)==null?void 0:n.call(t)},setHarness:n=>{var r;return(r=t.onHarness)==null?void 0:r.call(t,n)},link:()=>{var n;return(n=t.onHarnessLink)==null?void 0:n.call(t)}})),g(this,Vt,new up({...t.settings,onBeforeOpen:()=>{var n,r;this.closeChat(),c(this,bt).closePage(),c(this,Lo).close(),(r=(n=t.settings)==null?void 0:n.onBeforeOpen)==null||r.call(n)}}))}setProjectId(t){c(this,bt).setProjectId(t)}paintHarnessDrive(t,n){c(this,bt).paintDrive(t,n)}paintAgent(t){c(this,bt).paintAgent(t)}paintHarness(t){g(this,Ip,t),c(this,Vt).paintHarness(t),c(this,bt).paintHarness(t),T(this,Cn,Hx).call(this)}paintImpact(t){c(this,bt).paintImpact(t)}paintAnnotations(t){c(this,bt).paintAnnotations(t)}openView(t){t==="activity"?this.showChat():(this.isCollapsed()&&this.expand(),this.closeChat(),c(this,Vt).close(),c(this,Lo).close()),c(this,bt).open(t)}paintAccount(t,n,r={}){g(this,ka,{account:t,dashboardUrl:n,details:r}),c(this,$e)!==void 0&&(nP(c(this,$e),t,n,r),WT(c(this,$e),t,n,r),RM(c(this,$e),t),c(this,bt).paintAccount(t),T(this,Cn,Hx).call(this))}paintNotices(t=[]){g(this,Vl,t),g(this,_i,T(this,Cn,Ug).call(this)),c(this,$e)!==void 0&&Ux(c(this,$e),t,c(this,_i))}static dockHtml(t,n,r,o,i){let s=Om(se.GEAR,Ae.TOOLBAR),a=Ie(se.REMOVE,Ae.TOOLBAR);return`<div ${F} role="complementary" aria-label="Reticle">
1685
1685
  <div ${En} class="reticle-chat-panel ${Xn}" role="region" aria-label="Agent Log" aria-hidden="true">
1686
1686
  <div class="reticle-chat-head">
1687
- <span class="reticle-chat-brand">${Cx}<span class="reticle-chat-brandname">${nW}</span></span>
1688
- <span ${dl} class="reticle-head-team"></span>
1689
- <span ${YT} class="reticle-head-account"></span>
1687
+ <span class="reticle-chat-brand">${Dx}<span class="reticle-chat-brandname">${AW}</span></span>
1688
+ <span ${fl} class="reticle-head-team"></span>
1689
+ <span ${ex} class="reticle-head-account"></span>
1690
1690
  </div>
1691
- <button type="button" ${bT} class="reticle-chat-min" title="${MM}" aria-label="${MM}">${Ie(se.CARET_DOWN,xe.TOOLBAR)}</button>
1691
+ <button type="button" ${AT} class="reticle-chat-min" title="${YM}" aria-label="${YM}">${Ie(se.CARET_DOWN,Ae.TOOLBAR)}</button>
1692
1692
  ${t}
1693
1693
  <span class="reticle-tally" data-reticle-tally hidden></span>
1694
1694
  <section class="reticle-chat-view" role="region" aria-label="Agent Log">
1695
1695
  ${n}
1696
- <div class="${qm}"><div ${r}></div></div>
1696
+ <div class="${Qm}"><div ${r}></div></div>
1697
1697
  ${o}
1698
1698
  </section>
1699
- ${mM}
1699
+ ${vM}
1700
1700
  ${i}
1701
1701
  </div>
1702
- ${NP}
1703
- ${OP}
1704
- ${IP}
1705
- <button type="button" ${Ft} class="reticle-chat-pill" title="${UM}" aria-label="${UM}">
1706
- ${Cx}
1702
+ ${MP}
1703
+ ${HP}
1704
+ ${FP}
1705
+ <button type="button" ${Ht} class="reticle-chat-pill" title="${XM}" aria-label="${XM}">
1706
+ ${Dx}
1707
1707
  <span class="reticle-chat-pill-text" data-reticle-chat-pill-text></span>
1708
1708
  <span class="reticle-chat-pill-time" data-reticle-chat-pill-time></span>
1709
- <span class="reticle-chat-pill-caret" aria-hidden="true">${Ie(se.CARET_DOWN,xe.TOOLBAR)}</span>
1709
+ <span class="reticle-chat-pill-caret" aria-hidden="true">${Ie(se.CARET_DOWN,Ae.TOOLBAR)}</span>
1710
1710
  </button>
1711
- ${jT()}
1712
- ${RM()}
1713
- ${gM}
1711
+ ${XT()}
1712
+ ${UM()}
1713
+ ${NM}
1714
1714
  <div data-reticle-hud>
1715
1715
  <div class="reticle-hud-deco" aria-hidden="true"></div>
1716
- ${zM}
1717
- <div class="reticle-toolbar ${PM}" role="toolbar" aria-label="Reticle controls">
1716
+ ${KM}
1717
+ <div class="reticle-toolbar ${WM}" role="toolbar" aria-label="Reticle controls">
1718
1718
  <div class="reticle-toolbar-chrome">
1719
- ${RP}
1719
+ ${UP}
1720
1720
  <div class="reticle-tb-wrap">
1721
- <button type="button" ${qd} class="reticle-tb-btn reticle-tb-btn--toggle" title="${Lx}" aria-label="${Lx}" aria-pressed="false" data-active="0">${s}${ba(us.SETTINGS)}</button>
1722
- <span class="reticle-tb-tip">${Lx}</span>
1721
+ <button type="button" ${Jd} class="reticle-tb-btn reticle-tb-btn--toggle" title="${Px}" aria-label="${Px}" aria-pressed="false" data-active="0">${s}${_a(ps.SETTINGS)}</button>
1722
+ <span class="reticle-tb-tip">${Px}</span>
1723
1723
  </div>
1724
1724
  <div class="reticle-tb-wrap">
1725
- <button type="button" data-reticle-min-btn class="reticle-tb-btn" title="${$x}" aria-label="${$x}">${a}${ba(us.HIDE)}</button>
1726
- <span class="reticle-tb-tip">${$x}<span class="reticle-tb-kbd">Esc</span></span>
1725
+ <button type="button" data-reticle-min-btn class="reticle-tb-btn" title="${Mx}" aria-label="${Mx}">${a}${_a(ps.HIDE)}</button>
1726
+ <span class="reticle-tb-tip">${Mx}<span class="reticle-tb-kbd">Esc</span></span>
1727
1727
  </div>
1728
1728
  </div>
1729
1729
  </div>
1730
1730
  </div>
1731
- </div>`}get report(){return c(this,Ro)}isAnnotateOn(){return c(this,gs)}setAnnotateOn(t){var r,o,i,s,a,l,u;g(this,gs,t),(r=c(this,No))==null||r.setAttribute("aria-pressed",t?"true":"false"),(o=c(this,No))==null||o.setAttribute("data-active",t?"1":"0"),(i=c(this,No))==null||i.setAttribute("aria-label",t?"Stop adding notes":"Add notes"),(s=c(this,No))==null||s.setAttribute("title",t?"Stop adding notes":"Add notes");let n=(a=c(this,No))==null?void 0:a.querySelector("[data-reticle-notes-toggle-label]");n!=null&&(n.textContent=t?"Stop adding notes":"Add notes"),(u=(l=c(this,Le))==null?void 0:l.querySelector('[data-reticle-chat-view-btn="annotations"]'))==null||u.setAttribute("data-capture",t?"1":"0")}mount(t){var f,m,h,E;g(this,La,new AbortController);let{signal:n}=c(this,La);g(this,Le,t),g(this,Qt,(f=t.querySelector(`[${F}]`))!=null?f:void 0);let r=t.querySelector(`[${H1}]`);g(this,xr,r instanceof HTMLButtonElement?r:void 0);let o=t.querySelector(`[${En}]`);g(this,Ra,o instanceof HTMLElement?o:void 0);let i=t.querySelector(`[${Gm}]`);g(this,No,i instanceof HTMLButtonElement?i:void 0),this.setAnnotateOn(c(this,gs)),(m=c(this,No))==null||m.addEventListener("click",_=>{var A,v;_.preventDefault(),_.stopPropagation(),this.setAnnotateOn(!c(this,gs)),(v=(A=c(this,Kr)).onAnnotateToggle)==null||v.call(A,c(this,gs))},{signal:n});let s=t.querySelector(`[${Ft}]`);s==null||s.addEventListener("click",_=>{_.preventDefault(),_.stopPropagation(),Ml(!0),this.showChat()},{signal:n});let a=t.querySelector(`[${bT}]`);a==null||a.addEventListener("click",_=>{_.preventDefault(),_.stopPropagation(),Ml(!1),this.closeChat()},{signal:n});let l=t.querySelector("[data-reticle-min-btn]");g(this,Ul,l instanceof HTMLButtonElement?l:void 0),t.setAttribute(Ke,"1"),t.setAttribute(pt,"0"),t.removeAttribute(yt),c(this,jt).mount(t),c(this,Ro).mount(t),c(this,gt).mount(t),g(this,gi,T(this,Cn,Pg).call(this)),kx(t,c(this,Bl),c(this,gi)),g(this,Ca,new MutationObserver(()=>T(this,Cn,Dx).call(this))),c(this,Ca).observe(t,{attributes:!0,attributeFilter:[yt,pt,On]}),T(this,Cn,Dx).call(this),(h=c(this,xr))==null||h.addEventListener("click",_=>{if(_.stopPropagation(),c(this,Ia)){g(this,Ia,!1);return}Ml(!0),this.expand()},{signal:n}),(E=c(this,Ul))==null||E.addEventListener("click",_=>{_.stopPropagation(),Ml(!1),this.collapse()},{signal:n});let u=t.querySelector(`.${PM}`),d=[c(this,xr),u].filter(_=>_ instanceof HTMLElement);if(c(this,Qt)!==void 0&&d.length>0&&(g(this,Hl,cD(c(this,Qt),d,{onDragMove:()=>{g(this,Ia,!0)},onDragEnd:_=>{g(this,Ia,_&&this.isCollapsed())}})),g(this,Fl,aD(c(this,Qt),t))),document.addEventListener("pointerdown",c(this,Mg),{signal:n}),document.addEventListener("keydown",c(this,Ug),{signal:n}),g(this,Gl,AD(t,()=>{var _,A;return(A=(_=c(this,Kr)).onSignIn)==null?void 0:A.call(_)})),c(this,$a)!==void 0){let _=c(this,$a);this.paintAccount(_.account,_.dashboardUrl,_.details)}}teardown(){var t,n,r,o,i;(t=c(this,Gl))==null||t.call(this),g(this,Gl,void 0),(n=c(this,La))==null||n.abort(),g(this,La,void 0),(r=c(this,Ca))==null||r.disconnect(),g(this,Ca,void 0),(o=c(this,Hl))==null||o.call(this),g(this,Hl,void 0),(i=c(this,Fl))==null||i.call(this),g(this,Fl,void 0),c(this,jt).teardown(),c(this,gt).teardown(),g(this,Le,void 0),g(this,Qt,void 0),g(this,xr,void 0),g(this,Ra,void 0),g(this,Ul,void 0)}isCollapsed(){var t;return((t=c(this,Le))==null?void 0:t.getAttribute(Ke))==="1"}isChatOpen(){var t;return((t=c(this,Le))==null?void 0:t.getAttribute(yt))==="1"}expand(){var t,n;c(this,Le)===void 0||!this.isCollapsed()||c(this,Oa)||(T(this,Cn,FM).call(this),c(this,Le).setAttribute(Ke,"0"),HM(!1),c(this,xr)!==void 0&&c(this,xr).setAttribute("aria-expanded","true"),(n=(t=c(this,Kr)).onExpand)==null||n.call(t),this.openChat(),c(this,Qt)!==void 0&&Br(c(this,Qt),c(this,Le)))}collapse(){var t,n;c(this,Le)!==void 0&&(g(this,Oa,!1),this.closeChat(),c(this,jt).close(),c(this,Le).setAttribute(Ke,"1"),HM(!0),c(this,xr)!==void 0&&c(this,xr).setAttribute("aria-expanded","false"),(n=(t=c(this,Kr)).onCollapse)==null||n.call(t))}openChat(){var n,r,o;if(c(this,Le)===void 0||(this.isCollapsed()&&this.expand(),c(this,jt).close(),c(this,gt).closePage(),c(this,gt).open("activity"),this.isChatOpen()))return;c(this,Le).setAttribute(yt,"1");let t=c(this,Le).querySelector("[data-reticle-log]");t!==null&&R1(t),(n=c(this,Ra))==null||n.setAttribute("aria-hidden","false"),(o=(r=c(this,Kr)).onChatOpen)==null||o.call(r),c(this,Qt)!==void 0&&Br(c(this,Qt),c(this,Le))}closeChat(){var t,n,r;c(this,Le)===void 0||!this.isChatOpen()||(c(this,Le).removeAttribute(yt),(t=c(this,Ra))==null||t.setAttribute("aria-hidden","true"),(r=(n=c(this,Kr)).onChatClose)==null||r.call(n),c(this,Qt)!==void 0&&Br(c(this,Qt),c(this,Le)))}toggleChat(){this.isChatOpen()?this.closeChat():this.showChat()}showChat(){c(this,Ro).close(),this.openChat()}pulseFab(t){var n;(n=c(this,xr))==null||n.setAttribute("data-pulse",t?"1":"0")}};Le=new WeakMap,Qt=new WeakMap,xr=new WeakMap,Ra=new WeakMap,Ul=new WeakMap,jt=new WeakMap,gt=new WeakMap,Hl=new WeakMap,Fl=new WeakMap,Oa=new WeakMap,Ia=new WeakMap,No=new WeakMap,gs=new WeakMap,Ca=new WeakMap,La=new WeakMap,Ro=new WeakMap,Kr=new WeakMap,$a=new WeakMap,Bl=new WeakMap,Op=new WeakMap,gi=new WeakMap,Gl=new WeakMap,Cn=new WeakSet,Pg=function(){var t,n;return _x(c(this,Op),(n=(t=c(this,$a))==null?void 0:t.account)!=null?n:{signedIn:!1})},zx=function(){let t=T(this,Cn,Pg).call(this);c(this,Le)===void 0||t===c(this,gi)||(g(this,gi,t),kx(c(this,Le),c(this,Bl),t))},Dx=function(){let t=c(this,Le);if(t===void 0)return;let n=(o,i)=>{let s=t.querySelector(`[${o}]`);s==null||s.setAttribute("data-active",i?"1":"0"),s==null||s.setAttribute("aria-pressed",i?"true":"false")};n(Mm,t.getAttribute(yt)==="1"),n(qd,t.getAttribute(pt)==="1");let r=t.querySelector("[data-reticle-chat-impact]");if(r!==null){let o=t.getAttribute(On)==="1";r.setAttribute("data-active",o?"1":"0"),c(this,gt).setImpactOpen(o),o?r.setAttribute("aria-current","page"):r.removeAttribute("aria-current")}},FM=function(){g(this,Oa,!0),window.setTimeout(()=>{g(this,Oa,!1)},tW)},Mg=new WeakMap,Ug=new WeakMap});function VM(e){var r,o;let t=(r=e.startMs)!=null?r:e.now,n={reads:0,acts:0,narrations:0,human:0,passes:0,fails:0};for(let i of e.runLog)i.kind===Ge.READ?n.reads+=1:i.kind===Ge.ACT?n.acts+=1:i.kind===Ge.NARRATION?n.narrations+=1:i.kind===Ge.HUMAN&&(n.human+=1),i.result===Kn.PASS?n.passes+=1:i.result===Kn.FAIL&&(n.fails+=1);return{session:e.sessionId,url:typeof location=="undefined"?"":Rh(),state:e.state,startedMs:t,durationMs:Math.max(0,((o=e.endMs)!=null?o:e.now)-t),counts:n,capabilities:Bi(),log:e.runLog.map(i=>({...i}))}}var jM=y(()=>{"use strict";fd();ci();Gi()});function KM(e,t,n){e!==void 0&&(e.setAttribute("data-on","1"),e.style.transform=`translate(${String(t)}px, ${String(n)}px)`)}function ZM(e,t){e!==void 0&&(e.style.left=`${String(t.left-4)}px`,e.style.top=`${String(t.top-4)}px`,e.style.width=`${String(t.width+8)}px`,e.style.height=`${String(t.height+8)}px`,e.setAttribute("data-on","1"),ue(()=>e.setAttribute("data-on","0"),700))}function WM(e,t,n){if(e===void 0)return;let r=document.createElement("div");r.setAttribute("data-reticle-ripple",""),r.style.left=`${String(t)}px`,r.style.top=`${String(n)}px`,e.appendChild(r),ue(()=>r.remove(),520)}function Ux(e){return new Promise(t=>ue(t,e))}var YM=y(()=>{"use strict";mt()});var Zr,ka,Wr,Yr,Es,Vl,jl,za,Ip,Kl,Cp,Ar,XM,Hx,Fx,qM,Hg,JM=y(()=>{"use strict";M();mt();Lt();Hg=class{constructor(t){x(this,Ar);x(this,Zr,Mr.IDLE);x(this,ka,0);x(this,Wr);x(this,Yr);x(this,Es);x(this,Vl);x(this,jl);x(this,za);x(this,Ip);x(this,Kl);x(this,Cp);g(this,jl,t.now),g(this,za,t.idleAfterMs),g(this,Ip,t.glowFadeMs),g(this,Kl,t.borderMode),g(this,Cp,t.setMode)}setElements(t,n){g(this,Es,t),g(this,Vl,n)}phase(){return c(this,Zr)}lastActivityMs(){return c(this,ka)}resetActivity(t){g(this,ka,t)}markActivity(t=c(this,jl).call(this)){g(this,ka,t),(c(this,Zr)===Mr.IDLE||c(this,Zr)===Mr.FADING)&&T(this,Ar,XM).call(this),T(this,Ar,Hx).call(this)}scheduleIdle(){T(this,Ar,Hx).call(this)}teardown(){c(this,Wr)!==void 0&&Re(c(this,Wr)),c(this,Yr)!==void 0&&Re(c(this,Yr)),g(this,Wr,void 0),g(this,Yr,void 0)}};Zr=new WeakMap,ka=new WeakMap,Wr=new WeakMap,Yr=new WeakMap,Es=new WeakMap,Vl=new WeakMap,jl=new WeakMap,za=new WeakMap,Ip=new WeakMap,Kl=new WeakMap,Cp=new WeakMap,Ar=new WeakSet,XM=function(){var t,n,r;c(this,Yr)!==void 0&&(Re(c(this,Yr)),g(this,Yr,void 0)),g(this,Zr,Mr.BUSY),c(this,Kl)===da.SESSION?(t=c(this,Es))==null||t.setAttribute(Xd,L1):(n=c(this,Es))==null||n.setAttribute(gn,li),(r=c(this,Vl))==null||r.setAttribute(gn,li)},Hx=function(){c(this,Wr)!==void 0&&Re(c(this,Wr)),g(this,Wr,ue(()=>T(this,Ar,Fx).call(this),c(this,za)))},Fx=function(){if(g(this,Wr,void 0),c(this,Zr)!==Mr.BUSY)return;let t=c(this,jl).call(this)-c(this,ka);if(t<c(this,za)){g(this,Wr,ue(()=>T(this,Ar,Fx).call(this),c(this,za)-t));return}T(this,Ar,qM).call(this)},qM=function(){var t,n,r;g(this,Zr,Mr.FADING),c(this,Kl)===da.SESSION?(t=c(this,Es))==null||t.setAttribute(Xd,Dm):(n=c(this,Es))==null||n.setAttribute(gn,ns),(r=c(this,Vl))==null||r.setAttribute(gn,ns),c(this,Cp).call(this,it.IDLE),g(this,Yr,ue(()=>{g(this,Yr,void 0),c(this,Zr)===Mr.FADING&&g(this,Zr,Mr.IDLE)},c(this,Ip)))}});function QM(e,t,n){let r=oW(t);if(e===void 0)return r;if(r.passes===0&&r.fails===0)return e.setAttribute("hidden",""),e.replaceChildren(),r;let o=e.ownerDocument;e.removeAttribute("hidden"),e.className="reticle-tally reticle-pill-group reticle-head-ctl",e.replaceChildren();let i=o.createElement("span");if(i.className="reticle-t-pass reticle-pill-segment",r.passes===0&&i.setAttribute("data-z","1"),r.passes>n.passes&&i.setAttribute("data-bump","1"),i.append(go(se.CHECK,xe.TALLY)),r.passes>0){let l=o.createElement("span");l.className="reticle-pill-count",l.textContent=String(r.passes),i.append(l)}let s=o.createElement("span");s.className="reticle-pill-sep",s.setAttribute("aria-hidden","true");let a=o.createElement("span");if(a.className="reticle-t-fail reticle-pill-segment",r.fails===0&&a.setAttribute("data-z","1"),r.fails>n.fails&&a.setAttribute("data-bump","1"),a.append(go(se.REMOVE,xe.TALLY)),r.fails>0){let l=o.createElement("span");l.className="reticle-pill-count",l.textContent=String(r.fails),a.append(l)}return e.append(i,s,a),r}function oW(e){let t=0,n=0;for(let r of e)r.result===Kn.PASS?t+=1:r.result===Kn.FAIL&&(n+=1);return{passes:t,fails:n}}var e2=y(()=>{"use strict";ci();Pr()});function r2(e){for(let t of Array.from(e.attributes)){if(!t.name.startsWith(t2))continue;let n=t.name.slice(t2.length),r=lD.includes(n)?`${n}.${t.value}`:n;if(uD(r))return r}}function sW(e){for(let t of e)if(t instanceof Element&&r2(t)!==void 0)return t}function Bx(e){let t=aW(e);return Fn.BUBBLE===t.view||e.querySelector(`[${ss}]:not([hidden])`)===null?t:{view:t.view,panel:Pt.ACCOUNT}}function aW(e){if(e.getAttribute(Ke)==="1")return{view:Fn.BUBBLE,panel:Pt.NONE};if(e.getAttribute(pt)==="1")return{view:Fn.EXPANDED,panel:Pt.SETTINGS};if(e.getAttribute(On)==="1")return{view:Fn.EXPANDED,panel:Pt.REPORT};let t=e.getAttribute(n2);return t==="flows"?{view:Fn.EXPANDED,panel:Pt.FLOWS}:t==="annotations"?{view:Fn.EXPANDED,panel:Pt.NOTES}:t==="harness"?{view:Fn.EXPANDED,panel:Pt.HARNESS}:e.getAttribute(yt)==="1"?{view:Fn.EXPANDED,panel:Pt.CHAT}:{view:Fn.COLLAPSED,panel:Pt.NONE}}function o2(e,t,n){let r=h=>{try{n(h)}catch{}},o=h=>{var A;let E=sW(h.composedPath());if(E===void 0||!ao(E))return;let _=r2(E);if(_!==void 0){if(!iW.has((A=E.getAttribute("role"))!=null?A:"")){r({control:_});return}ue(()=>{let v=E.getAttribute("aria-checked")==="true";r({control:_,toggle:v?Hu.ON:Hu.OFF})},0)}},i="",s=()=>{let h=Bx(t),E=`${h.view}/${h.panel}`;E!==i&&(i=E,r(h))},a="",l=()=>{var _;if(Pt.CHAT!==Bx(t).panel)return;let h=t.querySelector(`[${wp}]:not([hidden])`),E=(_=h==null?void 0:h.getAttribute(wp))!=null?_:"";E.length===0||E===a||(a=E,r({slide:E}))},u=new Set,d=()=>{let h=Bx(t);for(let E of cW){if(u.has(E.surface)||!E.shown(h))continue;let _=t.querySelector(E.selector);_===null||!lW(_)||(u.add(E.surface),r({prompt:E.surface}))}},f=new MutationObserver(()=>{l(),s(),d()});f.observe(t,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-active","hidden"]}),e.addEventListener("click",o,!0);let m=new MutationObserver(h=>{s(),0<h.length&&l(),d()});return m.observe(t,{attributes:!0,attributeFilter:[Ke,yt,pt,On,n2]}),s(),d(),()=>{e.removeEventListener("click",o,!0),m.disconnect(),f.disconnect()}}var t2,n2,iW,cW,lW,i2=y(()=>{"use strict";ul();M();lt();mt();Lt();Cg();bo();gg();$g();t2="data-reticle-",n2="data-reticle-page-open",iW=new Set(["switch","checkbox"]);cW=[{surface:Ci.RAIL,selector:`[${Sr}]`,shown:e=>Pt.CHAT===e.panel},{surface:Ci.HARNESS,selector:`[data-reticle-page-panel="harness"] :is([${Xt}],[${hp}])`,shown:e=>Pt.HARNESS===e.panel},{surface:Ci.HEADER,selector:`[${sp}]`,shown:e=>Fn.BUBBLE!==e.view}],lW=e=>e.closest("[hidden]")===null});function s2(){var e;try{let t=JSON.parse((e=globalThis.sessionStorage.getItem(Gx))!=null?e:"[]");return Array.isArray(t)?t.filter(n=>typeof n=="object"&&n!==null&&typeof n.text=="string"&&typeof n.kind=="string"&&typeof n.ts=="string"&&typeof n.at=="number"):[]}catch{return[]}}function Lp(e){try{globalThis.sessionStorage.setItem(Gx,JSON.stringify(e))}catch{}}function a2(e){try{let t=e!=null?e:"",n=globalThis.sessionStorage.getItem(Tt.PRESENTER_LOG_OWNER);return globalThis.sessionStorage.setItem(Tt.PRESENTER_LOG_OWNER,t),n===null||n===t?!1:(globalThis.sessionStorage.removeItem(Gx),!0)}catch{return!1}}var Gx,c2=y(()=>{"use strict";co();Gx=Tt.PRESENTER_LOG});var _2={};Wa(_2,{GlowPhase:()=>Mr,LOG_KIND:()=>Ge,LOG_RESULT:()=>Kn,Presenter:()=>Vx});var uW,Wl,Ze,Ei,Pa,$p,Ma,Xr,Yl,Xl,_s,bi,Ua,ql,Jl,Jn,Ql,kp,Ha,Qn,Oo,zp,en,eu,Dp,Pp,Fa,Io,qr,Mp,Ln,yr,Jr,Up,Ss,Hp,wr,Co,er,tu,nu,tr,Pe,ru,Fp,J,l2,u2,Da,jx,d2,p2,bs,Kx,f2,h2,Zx,m2,g2,Wx,E2,Zl,b2,Vx,S2=y(()=>{"use strict";M();xt();$S();WS();mt();ci();xM();Mx();gg();bo();Eg();rp();np();Lt();jM();YM();JM();Pr();e2();Tx();hl();Mx();i2();ug();c2();Lt();ci();uW=1600,Vx=class{constructor(t={}){x(this,J);x(this,Wl);x(this,Ze);x(this,Ei);x(this,Pa);x(this,$p);x(this,Ma);x(this,Xr);x(this,Yl);x(this,Xl);x(this,_s);x(this,bi);x(this,Ua);x(this,ql,{passes:0,fails:0});x(this,Jl,it.IDLE);x(this,Jn);x(this,Ql);x(this,kp);x(this,Ha);x(this,Qn);x(this,Oo,"");x(this,zp);x(this,en);x(this,eu);x(this,Dp);x(this,Pp);x(this,Fa);x(this,Io,[]);x(this,qr,!1);x(this,Mp,!1);x(this,Ln);x(this,yr);x(this,Jr);x(this,Up);x(this,Ss);x(this,Hp,new lg);x(this,wr,[]);x(this,Co);x(this,er);x(this,tu);x(this,nu);x(this,tr);x(this,Pe);x(this,ru);x(this,Fp,!1);var n,r,o,i,s,a,l,u,d;g(this,Wl,$1(t.paceMs)),g(this,Jn,(n=t.now)!=null?n:Kh),g(this,Ql,(r=t.heartbeatMs)!=null?r:z1),g(this,kp,(o=t.idleNoticeMs)!=null?o:D1),g(this,eu,(i=t.idleEndMs)!=null?i:P1),g(this,Dp,(s=t.sessionId)!=null?s:""),g(this,Ha,(a=t.border)!=null?a:C1),g(this,Qn,new Hg({now:c(this,Jn),idleAfterMs:(l=t.idleAfterMs)!=null?l:k1,glowFadeMs:(u=t.glowFadeMs)!=null?u:U1,borderMode:c(this,Ha),setMode:f=>this.setMode(f)})),g(this,Ln,gT(t.logMax)),g(this,er,t.onControl),g(this,tu,t.onHudUse),g(this,tr,new Rg({emit:(f,m)=>{var h;return(h=c(this,er))==null?void 0:h.call(this,m!==void 0?{kind:f,text:m}:{kind:f})},logHuman:f=>{this.log(Ge.HUMAN,f)},endedFadeMs:(d=t.endedFadeMs)!=null?d:UP,runState:()=>this.runState(),clearRunLog:()=>T(this,J,Zx).call(this),onStateChange:()=>T(this,J,Da).call(this)})),g(this,Pe,new Rp({onChatOpen:()=>c(this,Pe).pulseFab(!1),onExpand:()=>T(this,J,Da).call(this),onAnnotateToggle:()=>T(this,J,Da).call(this),onCollapse:()=>T(this,J,Da).call(this),onSyncNow:()=>{var f;return(f=c(this,er))==null?void 0:f.call(this,{kind:ln.SYNC})},onSignIn:()=>{var f;return(f=c(this,er))==null?void 0:f.call(this,{kind:ln.SIGNIN})},onHarness:f=>{var m;return(m=c(this,er))==null?void 0:m.call(this,{kind:ln.HARNESS,text:f?"on":"off"})},onHarnessRun:f=>{var m;return(m=c(this,er))==null?void 0:m.call(this,{kind:ln.HARNESS_RUN,...f===void 0?{}:{text:f}})},onHarnessStop:()=>{var f;return(f=c(this,er))==null?void 0:f.call(this,{kind:ln.HARNESS_STOP})},onHarnessLink:()=>{var f;return(f=c(this,er))==null?void 0:f.call(this,{kind:ln.HARNESS_LINK})},settings:{onBeforeOpen:()=>{c(this,Pe).isCollapsed()&&c(this,Pe).expand()},onHideUntilRestart:()=>T(this,J,m2).call(this),onKill:()=>{var f;return(f=t.onKill)==null?void 0:f.call(t)},onSettingsChange:f=>T(this,J,g2).call(this,f),onHarness:f=>{var m;return(m=c(this,er))==null?void 0:m.call(this,{kind:ln.HARNESS,text:f?"on":"off"})}}})),c(this,Pe).setProjectId(t.projectId)}setControlHandler(t){g(this,er,t)}get state(){return c(this,tr).state}get sessionActive(){return c(this,qr)}setState(t,n,r){c(this,tr).setState(t,n,r)}refilterFlows(){c(this,tr).refilterFlows()}showSdkVersion(t){c(this,Ze)!==void 0&&VT(c(this,Ze),t)}handlePush(t){var s;let n=t.args;if(t.name===H.FLOWS)return void c(this,tr).setFlows(n.flows);if(t.name===H.FLOW_PROGRESS)return void c(this,tr).setFlowProgress(n);if(t.name===H.PLAN){let a=JD(n);a!==void 0&&c(this,Hp).paint(a);return}if(t.name===H.IMPACT){let a=fP(n.snapshot);if(a!==void 0){c(this,Pe).report.setSnapshot(a),c(this,Pe).paintNotices(a.notices),c(this,Pe).paintHarness(a.harnessConfig),c(this,Pe).paintHarnessDrive(a.harnessDrive,a.lastDrive),T(this,J,p2).call(this,a.harnessDrive),c(this,Pe).paintAgent(a.agent),c(this,Pe).paintImpact(a.project.counts.verdicts);let l=((s=a.account)==null?void 0:s.signedIn)===!0?a.account.email:void 0;a2(l)&&T(this,J,Zx).call(this),c(this,Pe).paintAccount(a.account,a.dashboardUrl,{projectName:a.projectName,dashboardUrl:a.dashboardUrl,verdicts:a.project.counts.verdicts,defects:a.project.counts.failed,...TD(a.harnessConfig,a.sync)})}return}let r=n.state,o=n.tone,i=typeof n.text=="string"&&n.text.length>0?n.text:void 0;IO(r)&&this.setState(r,i,wI(o)?o:void 0)}get logMax(){return c(this,Ln)}set logMax(t){g(this,Ln,gT(t)),T(this,J,b2).call(this)}mount(){var o,i,s,a,l,u,d,f,m,h,E,_;if(c(this,Ze)!==void 0||typeof document=="undefined")return;let t=document.createElement("style");t.setAttribute("data-reticle-overlay",""),t.textContent=TM,document.head.appendChild(t);let n=document.createElement("div");n.setAttribute("data-reticle-overlay","");let r=`<div class="reticle-act-strip" data-liveness="idle"><span class="reticle-act-dot" aria-hidden="true"></span><span class="reticle-act" data-reticle-act-line>${Ur.READY}</span>${BP}<span class="reticle-chip" data-reticle-chip></span><div class="reticle-act-actions">${FP}</div></div>`;n.innerHTML=`
1732
- ${KT()}
1731
+ </div>`}get report(){return c(this,Lo)}isAnnotateOn(){return c(this,bs)}setAnnotateOn(t){var r,o,i,s,a,l,u;g(this,bs,t),(r=c(this,Co))==null||r.setAttribute("aria-pressed",t?"true":"false"),(o=c(this,Co))==null||o.setAttribute("data-active",t?"1":"0"),(i=c(this,Co))==null||i.setAttribute("aria-label",t?"Stop adding notes":"Add notes"),(s=c(this,Co))==null||s.setAttribute("title",t?"Stop adding notes":"Add notes");let n=(a=c(this,Co))==null?void 0:a.querySelector("[data-reticle-notes-toggle-label]");n!=null&&(n.textContent=t?"Stop adding notes":"Add notes"),(u=(l=c(this,$e))==null?void 0:l.querySelector('[data-reticle-chat-view-btn="annotations"]'))==null||u.setAttribute("data-capture",t?"1":"0")}mount(t){var f,m,h,E;g(this,$a,new AbortController);let{signal:n}=c(this,$a);g(this,$e,t),g(this,en,(f=t.querySelector(`[${F}]`))!=null?f:void 0);let r=t.querySelector(`[${qD}]`);g(this,yr,r instanceof HTMLButtonElement?r:void 0);let o=t.querySelector(`[${En}]`);g(this,Oa,o instanceof HTMLElement?o:void 0);let i=t.querySelector(`[${jm}]`);g(this,Co,i instanceof HTMLButtonElement?i:void 0),this.setAnnotateOn(c(this,bs)),(m=c(this,Co))==null||m.addEventListener("click",_=>{var A,v;_.preventDefault(),_.stopPropagation(),this.setAnnotateOn(!c(this,bs)),(v=(A=c(this,Yr)).onAnnotateToggle)==null||v.call(A,c(this,bs))},{signal:n});let s=t.querySelector(`[${Ht}]`);s==null||s.addEventListener("click",_=>{_.preventDefault(),_.stopPropagation(),Hl(!0),this.showChat()},{signal:n});let a=t.querySelector(`[${AT}]`);a==null||a.addEventListener("click",_=>{_.preventDefault(),_.stopPropagation(),Hl(!1),this.closeChat()},{signal:n});let l=t.querySelector("[data-reticle-min-btn]");g(this,Fl,l instanceof HTMLButtonElement?l:void 0),t.setAttribute(Ze,"1"),t.setAttribute(ft,"0"),t.removeAttribute(yt),c(this,Vt).mount(t),c(this,Lo).mount(t),c(this,bt).mount(t),g(this,_i,T(this,Cn,Ug).call(this)),Ux(t,c(this,Vl),c(this,_i)),g(this,La,new MutationObserver(()=>T(this,Cn,Fx).call(this))),c(this,La).observe(t,{attributes:!0,attributeFilter:[yt,ft,On]}),T(this,Cn,Fx).call(this),(h=c(this,yr))==null||h.addEventListener("click",_=>{if(_.stopPropagation(),c(this,Ca)){g(this,Ca,!1);return}Hl(!0),this.expand()},{signal:n}),(E=c(this,Fl))==null||E.addEventListener("click",_=>{_.stopPropagation(),Hl(!1),this.collapse()},{signal:n});let u=t.querySelector(`.${WM}`),d=[c(this,yr),u].filter(_=>_ instanceof HTMLElement);if(c(this,en)!==void 0&&d.length>0&&(g(this,Bl,_1(c(this,en),d,{onDragMove:()=>{g(this,Ca,!0)},onDragEnd:_=>{g(this,Ca,_&&this.isCollapsed())}})),g(this,Gl,b1(c(this,en),t))),document.addEventListener("pointerdown",c(this,Hg),{signal:n}),document.addEventListener("keydown",c(this,Fg),{signal:n}),g(this,jl,k1(t,()=>{var _,A;return(A=(_=c(this,Yr)).onSignIn)==null?void 0:A.call(_)})),c(this,ka)!==void 0){let _=c(this,ka);this.paintAccount(_.account,_.dashboardUrl,_.details)}}teardown(){var t,n,r,o,i;(t=c(this,jl))==null||t.call(this),g(this,jl,void 0),(n=c(this,$a))==null||n.abort(),g(this,$a,void 0),(r=c(this,La))==null||r.disconnect(),g(this,La,void 0),(o=c(this,Bl))==null||o.call(this),g(this,Bl,void 0),(i=c(this,Gl))==null||i.call(this),g(this,Gl,void 0),c(this,Vt).teardown(),c(this,bt).teardown(),g(this,$e,void 0),g(this,en,void 0),g(this,yr,void 0),g(this,Oa,void 0),g(this,Fl,void 0)}isCollapsed(){var t;return((t=c(this,$e))==null?void 0:t.getAttribute(Ze))==="1"}isChatOpen(){var t;return((t=c(this,$e))==null?void 0:t.getAttribute(yt))==="1"}expand(){var t,n;c(this,$e)===void 0||!this.isCollapsed()||c(this,Ia)||(T(this,Cn,JM).call(this),c(this,$e).setAttribute(Ze,"0"),qM(!1),c(this,yr)!==void 0&&c(this,yr).setAttribute("aria-expanded","true"),(n=(t=c(this,Yr)).onExpand)==null||n.call(t),this.openChat(),c(this,en)!==void 0&&jr(c(this,en),c(this,$e)))}collapse(){var t,n;c(this,$e)!==void 0&&(g(this,Ia,!1),this.closeChat(),c(this,Vt).close(),c(this,$e).setAttribute(Ze,"1"),qM(!0),c(this,yr)!==void 0&&c(this,yr).setAttribute("aria-expanded","false"),(n=(t=c(this,Yr)).onCollapse)==null||n.call(t))}openChat(){var n,r,o;if(c(this,$e)===void 0||(this.isCollapsed()&&this.expand(),c(this,Vt).close(),c(this,bt).closePage(),c(this,bt).open("activity"),this.isChatOpen()))return;c(this,$e).setAttribute(yt,"1");let t=c(this,$e).querySelector("[data-reticle-log]");t!==null&&UD(t),(n=c(this,Oa))==null||n.setAttribute("aria-hidden","false"),(o=(r=c(this,Yr)).onChatOpen)==null||o.call(r),c(this,en)!==void 0&&jr(c(this,en),c(this,$e))}closeChat(){var t,n,r;c(this,$e)===void 0||!this.isChatOpen()||(c(this,$e).removeAttribute(yt),(t=c(this,Oa))==null||t.setAttribute("aria-hidden","true"),(r=(n=c(this,Yr)).onChatClose)==null||r.call(n),c(this,en)!==void 0&&jr(c(this,en),c(this,$e)))}toggleChat(){this.isChatOpen()?this.closeChat():this.showChat()}showChat(){c(this,Lo).close(),this.openChat()}pulseFab(t){var n;(n=c(this,yr))==null||n.setAttribute("data-pulse",t?"1":"0")}};$e=new WeakMap,en=new WeakMap,yr=new WeakMap,Oa=new WeakMap,Fl=new WeakMap,Vt=new WeakMap,bt=new WeakMap,Bl=new WeakMap,Gl=new WeakMap,Ia=new WeakMap,Ca=new WeakMap,Co=new WeakMap,bs=new WeakMap,La=new WeakMap,$a=new WeakMap,Lo=new WeakMap,Yr=new WeakMap,ka=new WeakMap,Vl=new WeakMap,Ip=new WeakMap,_i=new WeakMap,jl=new WeakMap,Cn=new WeakSet,Ug=function(){var t,n;return yx(c(this,Ip),(n=(t=c(this,ka))==null?void 0:t.account)!=null?n:{signedIn:!1})},Hx=function(){let t=T(this,Cn,Ug).call(this);c(this,$e)===void 0||t===c(this,_i)||(g(this,_i,t),Ux(c(this,$e),c(this,Vl),t))},Fx=function(){let t=c(this,$e);if(t===void 0)return;let n=(o,i)=>{let s=t.querySelector(`[${o}]`);s==null||s.setAttribute("data-active",i?"1":"0"),s==null||s.setAttribute("aria-pressed",i?"true":"false")};n(Hm,t.getAttribute(yt)==="1"),n(Jd,t.getAttribute(ft)==="1");let r=t.querySelector("[data-reticle-chat-impact]");if(r!==null){let o=t.getAttribute(On)==="1";r.setAttribute("data-active",o?"1":"0"),c(this,bt).setImpactOpen(o),o?r.setAttribute("aria-current","page"):r.removeAttribute("aria-current")}},JM=function(){g(this,Ia,!0),window.setTimeout(()=>{g(this,Ia,!1)},xW)},Hg=new WeakMap,Fg=new WeakMap});function t2(e){var r,o;let t=(r=e.startMs)!=null?r:e.now,n={reads:0,acts:0,narrations:0,human:0,passes:0,fails:0};for(let i of e.runLog)i.kind===Ge.READ?n.reads+=1:i.kind===Ge.ACT?n.acts+=1:i.kind===Ge.NARRATION?n.narrations+=1:i.kind===Ge.HUMAN&&(n.human+=1),i.result===Kn.PASS?n.passes+=1:i.result===Kn.FAIL&&(n.fails+=1);return{session:e.sessionId,url:typeof location=="undefined"?"":Oh(),state:e.state,startedMs:t,durationMs:Math.max(0,((o=e.endMs)!=null?o:e.now)-t),counts:n,capabilities:ji(),log:e.runLog.map(i=>({...i}))}}var n2=y(()=>{"use strict";md();di();Ki()});function r2(e,t,n){e!==void 0&&(e.setAttribute("data-on","1"),e.style.transform=`translate(${String(t)}px, ${String(n)}px)`)}function o2(e,t){e!==void 0&&(e.style.left=`${String(t.left-4)}px`,e.style.top=`${String(t.top-4)}px`,e.style.width=`${String(t.width+8)}px`,e.style.height=`${String(t.height+8)}px`,e.setAttribute("data-on","1"),ue(()=>e.setAttribute("data-on","0"),700))}function i2(e,t,n){if(e===void 0)return;let r=document.createElement("div");r.setAttribute("data-reticle-ripple",""),r.style.left=`${String(t)}px`,r.style.top=`${String(n)}px`,e.appendChild(r),ue(()=>r.remove(),520)}function Vx(e){return new Promise(t=>ue(t,e))}var s2=y(()=>{"use strict";dt()});var Xr,za,qr,Jr,_s,Kl,Zl,Da,Cp,Wl,Lp,wr,a2,jx,Kx,c2,Bg,l2=y(()=>{"use strict";M();dt();Ct();Bg=class{constructor(t){x(this,wr);x(this,Xr,Fr.IDLE);x(this,za,0);x(this,qr);x(this,Jr);x(this,_s);x(this,Kl);x(this,Zl);x(this,Da);x(this,Cp);x(this,Wl);x(this,Lp);g(this,Zl,t.now),g(this,Da,t.idleAfterMs),g(this,Cp,t.glowFadeMs),g(this,Wl,t.borderMode),g(this,Lp,t.setMode)}setElements(t,n){g(this,_s,t),g(this,Kl,n)}phase(){return c(this,Xr)}lastActivityMs(){return c(this,za)}resetActivity(t){g(this,za,t)}markActivity(t=c(this,Zl).call(this)){g(this,za,t),(c(this,Xr)===Fr.IDLE||c(this,Xr)===Fr.FADING)&&T(this,wr,a2).call(this),T(this,wr,jx).call(this)}scheduleIdle(){T(this,wr,jx).call(this)}teardown(){c(this,qr)!==void 0&&Re(c(this,qr)),c(this,Jr)!==void 0&&Re(c(this,Jr)),g(this,qr,void 0),g(this,Jr,void 0)}};Xr=new WeakMap,za=new WeakMap,qr=new WeakMap,Jr=new WeakMap,_s=new WeakMap,Kl=new WeakMap,Zl=new WeakMap,Da=new WeakMap,Cp=new WeakMap,Wl=new WeakMap,Lp=new WeakMap,wr=new WeakSet,a2=function(){var t,n,r;c(this,Jr)!==void 0&&(Re(c(this,Jr)),g(this,Jr,void 0)),g(this,Xr,Fr.BUSY),c(this,Wl)===pa.SESSION?(t=c(this,_s))==null||t.setAttribute(qd,GD):(n=c(this,_s))==null||n.setAttribute(gn,pi),(r=c(this,Kl))==null||r.setAttribute(gn,pi)},jx=function(){c(this,qr)!==void 0&&Re(c(this,qr)),g(this,qr,ue(()=>T(this,wr,Kx).call(this),c(this,Da)))},Kx=function(){if(g(this,qr,void 0),c(this,Xr)!==Fr.BUSY)return;let t=c(this,Zl).call(this)-c(this,za);if(t<c(this,Da)){g(this,qr,ue(()=>T(this,wr,Kx).call(this),c(this,Da)-t));return}T(this,wr,c2).call(this)},c2=function(){var t,n,r;g(this,Xr,Fr.FADING),c(this,Wl)===pa.SESSION?(t=c(this,_s))==null||t.setAttribute(qd,Mm):(n=c(this,_s))==null||n.setAttribute(gn,os),(r=c(this,Kl))==null||r.setAttribute(gn,os),c(this,Lp).call(this,ct.IDLE),g(this,Jr,ue(()=>{g(this,Jr,void 0),c(this,Xr)===Fr.FADING&&g(this,Xr,Fr.IDLE)},c(this,Cp)))}});function u2(e,t,n){let r=wW(t);if(e===void 0)return r;if(r.passes===0&&r.fails===0)return e.setAttribute("hidden",""),e.replaceChildren(),r;let o=e.ownerDocument;e.removeAttribute("hidden"),e.className="reticle-tally reticle-pill-group reticle-head-ctl",e.replaceChildren();let i=o.createElement("span");if(i.className="reticle-t-pass reticle-pill-segment",r.passes===0&&i.setAttribute("data-z","1"),r.passes>n.passes&&i.setAttribute("data-bump","1"),i.append(So(se.CHECK,Ae.TALLY)),r.passes>0){let l=o.createElement("span");l.className="reticle-pill-count",l.textContent=String(r.passes),i.append(l)}let s=o.createElement("span");s.className="reticle-pill-sep",s.setAttribute("aria-hidden","true");let a=o.createElement("span");if(a.className="reticle-t-fail reticle-pill-segment",r.fails===0&&a.setAttribute("data-z","1"),r.fails>n.fails&&a.setAttribute("data-bump","1"),a.append(So(se.REMOVE,Ae.TALLY)),r.fails>0){let l=o.createElement("span");l.className="reticle-pill-count",l.textContent=String(r.fails),a.append(l)}return e.append(i,s,a),r}function wW(e){let t=0,n=0;for(let r of e)r.result===Kn.PASS?t+=1:r.result===Kn.FAIL&&(n+=1);return{passes:t,fails:n}}var d2=y(()=>{"use strict";di();Hr()});function h2(e){for(let t of Array.from(e.attributes)){if(!t.name.startsWith(p2))continue;let n=t.name.slice(p2.length),r=S1.includes(n)?`${n}.${t.value}`:n;if(T1(r))return r}}function NW(e){for(let t of e)if(t instanceof Element&&h2(t)!==void 0)return t}function Zx(e){let t=RW(e);return Fn.BUBBLE===t.view||e.querySelector(`[${cs}]:not([hidden])`)===null?t:{view:t.view,panel:Dt.ACCOUNT}}function RW(e){if(e.getAttribute(Ze)==="1")return{view:Fn.BUBBLE,panel:Dt.NONE};if(e.getAttribute(ft)==="1")return{view:Fn.EXPANDED,panel:Dt.SETTINGS};if(e.getAttribute(On)==="1")return{view:Fn.EXPANDED,panel:Dt.REPORT};let t=e.getAttribute(f2);return t==="flows"?{view:Fn.EXPANDED,panel:Dt.FLOWS}:t==="annotations"?{view:Fn.EXPANDED,panel:Dt.NOTES}:t==="harness"?{view:Fn.EXPANDED,panel:Dt.HARNESS}:e.getAttribute(yt)==="1"?{view:Fn.EXPANDED,panel:Dt.CHAT}:{view:Fn.COLLAPSED,panel:Dt.NONE}}function m2(e,t,n){let r=h=>{try{n(h)}catch{}},o=h=>{var A;let E=NW(h.composedPath());if(E===void 0||!lr(E))return;let _=h2(E);if(_!==void 0){if(!vW.has((A=E.getAttribute("role"))!=null?A:"")){r({control:_});return}ue(()=>{let v=E.getAttribute("aria-checked")==="true";r({control:_,toggle:v?Bu.ON:Bu.OFF})},0)}},i="",s=()=>{let h=Zx(t),E=`${h.view}/${h.panel}`;E!==i&&(i=E,r(h))},a="",l=()=>{var _;if(Dt.CHAT!==Zx(t).panel)return;let h=t.querySelector(`[${vp}]:not([hidden])`),E=(_=h==null?void 0:h.getAttribute(vp))!=null?_:"";E.length===0||E===a||(a=E,r({slide:E}))},u=new Set,d=()=>{let h=Zx(t);for(let E of OW){if(u.has(E.surface)||!E.shown(h))continue;let _=t.querySelector(E.selector);_===null||!IW(_)||(u.add(E.surface),r({prompt:E.surface}))}},f=new MutationObserver(()=>{l(),s(),d()});f.observe(t,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-active","hidden"]}),e.addEventListener("click",o,!0);let m=new MutationObserver(h=>{s(),0<h.length&&l(),d()});return m.observe(t,{attributes:!0,attributeFilter:[Ze,yt,ft,On,f2]}),s(),d(),()=>{e.removeEventListener("click",o,!0),m.disconnect(),f.disconnect()}}var p2,f2,vW,OW,IW,g2=y(()=>{"use strict";pl();M();nt();dt();Ct();$g();xo();bg();zg();p2="data-reticle-",f2="data-reticle-page-open",vW=new Set(["switch","checkbox"]);OW=[{surface:ki.RAIL,selector:`[${xr}]`,shown:e=>Dt.CHAT===e.panel},{surface:ki.HARNESS,selector:`[data-reticle-page-panel="harness"] :is([${qt}],[${mp}])`,shown:e=>Dt.HARNESS===e.panel},{surface:ki.HEADER,selector:`[${ap}]`,shown:e=>Fn.BUBBLE!==e.view}],IW=e=>e.closest("[hidden]")===null});function E2(){var e;try{let t=JSON.parse((e=globalThis.sessionStorage.getItem(Wx))!=null?e:"[]");return Array.isArray(t)?t.filter(n=>typeof n=="object"&&n!==null&&typeof n.text=="string"&&typeof n.kind=="string"&&typeof n.ts=="string"&&typeof n.at=="number"):[]}catch{return[]}}function $p(e){try{globalThis.sessionStorage.setItem(Wx,JSON.stringify(e))}catch{}}function b2(e){try{let t=e!=null?e:"",n=globalThis.sessionStorage.getItem(At.PRESENTER_LOG_OWNER);return globalThis.sessionStorage.setItem(At.PRESENTER_LOG_OWNER,t),n===null||n===t?!1:(globalThis.sessionStorage.removeItem(Wx),!0)}catch{return!1}}var Wx,_2=y(()=>{"use strict";po();Wx=At.PRESENTER_LOG});var I2={};Ya(I2,{GlowPhase:()=>Fr,LOG_KIND:()=>Ge,LOG_RESULT:()=>Kn,Presenter:()=>Yx});var CW,Xl,We,Si,Ma,kp,Ua,Qr,ql,Jl,Ts,Ti,Ha,Ql,eu,Jn,tu,zp,Fa,Qn,$o,Dp,tn,nu,Pp,Mp,Ba,ko,eo,Up,Ln,vr,to,Hp,xs,Fp,Nr,zo,er,ru,ou,tr,Pe,iu,Bp,J,S2,T2,Pa,Xx,x2,A2,Ss,qx,y2,w2,Jx,v2,N2,Qx,R2,Yl,O2,Yx,C2=y(()=>{"use strict";M();gt();MS();QS();dt();di();$M();Gx();bg();xo();_g();op();rp();Ct();n2();s2();l2();Hr();d2();vx();gl();Gx();g2();pg();_2();Ct();di();CW=1600,Yx=class{constructor(t={}){x(this,J);x(this,Xl);x(this,We);x(this,Si);x(this,Ma);x(this,kp);x(this,Ua);x(this,Qr);x(this,ql);x(this,Jl);x(this,Ts);x(this,Ti);x(this,Ha);x(this,Ql,{passes:0,fails:0});x(this,eu,ct.IDLE);x(this,Jn);x(this,tu);x(this,zp);x(this,Fa);x(this,Qn);x(this,$o,"");x(this,Dp);x(this,tn);x(this,nu);x(this,Pp);x(this,Mp);x(this,Ba);x(this,ko,[]);x(this,eo,!1);x(this,Up,!1);x(this,Ln);x(this,vr);x(this,to);x(this,Hp);x(this,xs);x(this,Fp,new dg);x(this,Nr,[]);x(this,zo);x(this,er);x(this,ru);x(this,ou);x(this,tr);x(this,Pe);x(this,iu);x(this,Bp,!1);var n,r,o,i,s,a,l,u,d;g(this,Xl,VD(t.paceMs)),g(this,Jn,(n=t.now)!=null?n:Zh),g(this,tu,(r=t.heartbeatMs)!=null?r:KD),g(this,zp,(o=t.idleNoticeMs)!=null?o:ZD),g(this,nu,(i=t.idleEndMs)!=null?i:WD),g(this,Pp,(s=t.sessionId)!=null?s:""),g(this,Fa,(a=t.border)!=null?a:BD),g(this,Qn,new Bg({now:c(this,Jn),idleAfterMs:(l=t.idleAfterMs)!=null?l:jD,glowFadeMs:(u=t.glowFadeMs)!=null?u:XD,borderMode:c(this,Fa),setMode:f=>this.setMode(f)})),g(this,Ln,TT(t.logMax)),g(this,er,t.onControl),g(this,ru,t.onHudUse),g(this,tr,new Ig({emit:(f,m)=>{var h;return(h=c(this,er))==null?void 0:h.call(this,m!==void 0?{kind:f,text:m}:{kind:f})},logHuman:f=>{this.log(Ge.HUMAN,f)},endedFadeMs:(d=t.endedFadeMs)!=null?d:XP,runState:()=>this.runState(),clearRunLog:()=>T(this,J,Jx).call(this),onStateChange:()=>T(this,J,Pa).call(this)})),g(this,Pe,new Op({onChatOpen:()=>c(this,Pe).pulseFab(!1),onExpand:()=>T(this,J,Pa).call(this),onAnnotateToggle:()=>T(this,J,Pa).call(this),onCollapse:()=>T(this,J,Pa).call(this),onSyncNow:()=>{var f;return(f=c(this,er))==null?void 0:f.call(this,{kind:ln.SYNC})},onSignIn:()=>{var f;return(f=c(this,er))==null?void 0:f.call(this,{kind:ln.SIGNIN})},onHarness:f=>{var m;return(m=c(this,er))==null?void 0:m.call(this,{kind:ln.HARNESS,text:f?"on":"off"})},onHarnessRun:f=>{var m;return(m=c(this,er))==null?void 0:m.call(this,{kind:ln.HARNESS_RUN,...f===void 0?{}:{text:f}})},onHarnessStop:()=>{var f;return(f=c(this,er))==null?void 0:f.call(this,{kind:ln.HARNESS_STOP})},onHarnessLink:()=>{var f;return(f=c(this,er))==null?void 0:f.call(this,{kind:ln.HARNESS_LINK})},settings:{onBeforeOpen:()=>{c(this,Pe).isCollapsed()&&c(this,Pe).expand()},onHideUntilRestart:()=>T(this,J,v2).call(this),onKill:()=>{var f;return(f=t.onKill)==null?void 0:f.call(t)},onSettingsChange:f=>T(this,J,N2).call(this,f),onHarness:f=>{var m;return(m=c(this,er))==null?void 0:m.call(this,{kind:ln.HARNESS,text:f?"on":"off"})}}})),c(this,Pe).setProjectId(t.projectId)}setControlHandler(t){g(this,er,t)}get state(){return c(this,tr).state}get sessionActive(){return c(this,eo)}setState(t,n,r){c(this,tr).setState(t,n,r)}refilterFlows(){c(this,tr).refilterFlows()}showSdkVersion(t){c(this,We)!==void 0&&YT(c(this,We),t)}handlePush(t){var s;let n=t.args;if(t.name===H.FLOWS)return void c(this,tr).setFlows(n.flows);if(t.name===H.FLOW_PROGRESS)return void c(this,tr).setFlowProgress(n);if(t.name===H.PLAN){let a=lP(n);a!==void 0&&c(this,Fp).paint(a);return}if(t.name===H.IMPACT){let a=yP(n.snapshot);if(a!==void 0){c(this,Pe).report.setSnapshot(a),c(this,Pe).paintNotices(a.notices),c(this,Pe).paintHarness(a.harnessConfig),c(this,Pe).paintHarnessDrive(a.harnessDrive,a.lastDrive),T(this,J,A2).call(this,a.harnessDrive),c(this,Pe).paintAgent(a.agent),c(this,Pe).paintImpact(a.project.counts.verdicts);let l=((s=a.account)==null?void 0:s.signedIn)===!0?a.account.email:void 0;b2(l)&&T(this,J,Jx).call(this),c(this,Pe).paintAccount(a.account,a.dashboardUrl,{projectName:a.projectName,dashboardUrl:a.dashboardUrl,verdicts:a.project.counts.verdicts,defects:a.project.counts.failed,...L1(a.harnessConfig,a.sync)})}return}let r=n.state,o=n.tone,i=typeof n.text=="string"&&n.text.length>0?n.text:void 0;MO(r)&&this.setState(r,i,$I(o)?o:void 0)}get logMax(){return c(this,Ln)}set logMax(t){g(this,Ln,TT(t)),T(this,J,O2).call(this)}mount(){var o,i,s,a,l,u,d,f,m,h,E,_;if(c(this,We)!==void 0||typeof document=="undefined")return;let t=document.createElement("style");t.setAttribute("data-reticle-overlay",""),t.textContent=LM,document.head.appendChild(t);let n=document.createElement("div");n.setAttribute("data-reticle-overlay","");let r=`<div class="reticle-act-strip" data-liveness="idle"><span class="reticle-act-dot" aria-hidden="true"></span><span class="reticle-act" data-reticle-act-line>${Br.READY}</span>${QP}<span class="reticle-chip" data-reticle-chip></span><div class="reticle-act-actions">${JP}</div></div>`;n.innerHTML=`
1732
+ ${qT()}
1733
1733
  <div data-reticle-glow></div>
1734
1734
  <div data-reticle-cursor></div>
1735
1735
  <div data-reticle-ring></div>
1736
- ${Rp.dockHtml(r,"",mT,GP,VP)}`,document.body.appendChild(n),g(this,Ze,n),g(this,Ei,(o=n.querySelector("[data-reticle-glow]"))!=null?o:void 0),g(this,Pa,(i=n.querySelector("[data-reticle-cursor]"))!=null?i:void 0),g(this,$p,(s=n.querySelector("[data-reticle-ring]"))!=null?s:void 0),g(this,Ma,(a=n.querySelector("[data-reticle-hud]"))!=null?a:void 0),g(this,Xr,(l=n.querySelector(".reticle-act"))!=null?l:void 0),g(this,Yl,(u=n.querySelector(".reticle-act-strip"))!=null?u:void 0),g(this,Xl,(d=n.querySelector("[data-reticle-chat-pill-text]"))!=null?d:void 0),g(this,_s,(f=n.querySelector("[data-reticle-chat-pill-time]"))!=null?f:void 0),g(this,yr,(m=n.querySelector(`[${mT}]`))!=null?m:void 0),g(this,Jr,(h=n.querySelector(`[${mg}]`))!=null?h:void 0),g(this,bi,(E=n.querySelector("[data-reticle-chip]"))!=null?E:void 0),g(this,Ua,(_=n.querySelector("[data-reticle-tally]"))!=null?_:void 0),c(this,Pe).mount(n),ag(n,_r(),!1),c(this,Qn).setElements(c(this,Ei),c(this,Pa)),c(this,tr).mount(n,c(this,Ei)),c(this,Hp).mount(n),c(this,tu)!==void 0&&g(this,nu,o2(document,n,c(this,tu))),this.setMode(c(this,Jl)),T(this,J,l2).call(this),T(this,J,Zl).call(this)}bindAnnotator(t){g(this,ru,t);let n=c(this,Ze);if(n===void 0)return;let r=n.querySelector(`[${Um}]`),o=n.querySelector(`[${Hm}]`),i=n.querySelector(`[${F1}]`),s=n.querySelector(`[${Fm}]`),a=n.querySelector(`[${Bm}]`),l={};a instanceof HTMLElement&&(l.copyRow=a);let u=t.markCount;l.onCount=d=>{u===0&&d>0&&c(this,Pe).openView("annotations"),u=d},l.onMarksChange=d=>c(this,Pe).paintAnnotations(d),s instanceof HTMLElement&&s.addEventListener("click",d=>{d.stopPropagation(),T(this,J,u2).call(this,t,s)}),r instanceof HTMLElement&&(l.markersBtn=r),o instanceof HTMLElement&&(l.clearBtn=o),i instanceof HTMLElement&&(l.countEl=i),t.attachChrome(l),t.setAccent(up(_r().statusThemeId).active),T(this,J,Da).call(this)}destroy(){var t,n;c(this,Qn).teardown(),c(this,en)!==void 0&&Re(c(this,en)),g(this,en,void 0),(t=c(this,nu))==null||t.call(this),g(this,nu,void 0),c(this,Pe).teardown(),c(this,tr).teardown(),g(this,qr,!1),g(this,Co,void 0),g(this,yr,void 0),g(this,Jr,void 0),g(this,wr,[]),Lp([]),(n=c(this,Ze))==null||n.remove(),document.querySelectorAll("style[data-reticle-overlay]").forEach(r=>r.remove()),g(this,Ze,void 0)}sessionStart(){var t,n;if(this.state===Ye.ENDED){T(this,J,d2).call(this);return}c(this,qr)||(ET===((t=c(this,Ze))==null?void 0:t.getAttribute(Pm))&&c(this,Ze).removeAttribute(Pm),g(this,qr,!0),(n=c(this,Pp))!=null||g(this,Pp,c(this,Jn).call(this)),g(this,Fa,void 0),T(this,J,jx).call(this),c(this,Qn).resetActivity(c(this,Jn).call(this)),T(this,J,Kx).call(this),Px()&&c(this,Pe).openChat())}showUnreachable(t,n){var o,i,s,a;if(c(this,qr))return;(o=c(this,Ze))==null||o.setAttribute(Pm,ET);let r=(i=c(this,Ze))==null?void 0:i.querySelector("[data-reticle-dock]");r==null||r.setAttribute(gn,li),(s=c(this,Ma))==null||s.setAttribute(gn,li),g(this,Oo,ak),T(this,J,bs).call(this,c(this,Oo),!0),(a=c(this,Xr))==null||a.setAttribute("title",um(t,n)),Px()&&c(this,Pe).openChat()}sessionEnd(){var n,r,o,i;if(!c(this,qr))return;g(this,qr,!1),c(this,en)!==void 0&&(Re(c(this,en)),g(this,en,void 0));let t=(n=c(this,Ze))==null?void 0:n.querySelector("[data-reticle-dock]");t==null||t.setAttribute(gn,ns),(r=c(this,Ma))==null||r.setAttribute(gn,ns),c(this,Pe).collapse(),c(this,Ha)===da.SESSION&&((o=c(this,Ei))==null||o.setAttribute(gn,ns),(i=c(this,Ei))==null||i.setAttribute(Xd,Dm))}markActivity(){c(this,Qn).markActivity()}scheduleIdle(){c(this,Qn).scheduleIdle()}glowPhase(){return c(this,Qn).phase()}get mode(){return c(this,Jl)}setMode(t){var n,r;if(g(this,Jl,t),(n=c(this,Ze))==null||n.setAttribute("data-reticle-mode",t),c(this,bi)!==void 0){let o=w1[t];if(c(this,bi).setAttribute("data-mode",t),c(this,bi).replaceChildren(),o.length>0){let i=t===it.READING?se.VIEW:t===it.ACTING?se.POINTER:void 0;i!==void 0&&c(this,bi).appendChild(go(i,xe.CHIP));let s=document.createElement("span");s.className="reticle-chip-label",s.textContent=o,c(this,bi).appendChild(s)}}t===it.READING&&((r=c(this,Pa))==null||r.setAttribute(gn,ns))}status(t){this.markActivity(),c(this,_s)!==void 0&&(c(this,_s).textContent=Ur.NOW),g(this,Oo,t),T(this,J,bs).call(this,t,!1)}placeHud(t,n){let r=c(this,Ze);if(r===void 0)return c(this,Fp)?[$O]:[];let o=[];if(Bn.REMOVED===t)return g(this,Fp,!0),this.destroy(),[t];Bn.HIDDEN===t&&r.setAttribute(il,"1"),Bn.SHOWN===t&&r.removeAttribute(il),t!==void 0&&o.push(t);let i=r.querySelector(`[${F}]`);if(n!==void 0&&i instanceof HTMLElement){if(qf.BOTTOM_RIGHT===n)ep(i);else{let s=ll(i),a=n.endsWith("left")?0:window.innerWidth,l=n.startsWith("top")?0:window.innerHeight,u=cl(a,l,s.width,s.height,window.innerWidth,window.innerHeight);os(i,u.left,u.top)}o.push(n),Br(i,r)}return o}setIdleEndMs(t){Number.isFinite(t)&&g(this,eu,Math.max(M1,Math.floor(t)))}runState(){let t=VM({sessionId:c(this,Dp),state:this.state,startMs:c(this,Pp),endMs:c(this,Fa),now:c(this,Jn).call(this),runLog:c(this,Io)}),n=_r();return n.outputDetail===Gr.MINIMAL?{session:t.session,url:t.url,state:t.state,startedMs:t.startedMs,durationMs:t.durationMs,counts:t.counts}:n.outputDetail===Gr.VERBOSE&&n.reactComponents?{...t,includeReactComponents:!0}:t}log(t,n,r,o,i=!1){var h;let s=c(this,Jn).call(this);if(c(this,Qn).markActivity(s),g(this,zp,o),c(this,yr)===void 0)return;let a=n.trim();if(a.length===0)return;(h=c(this,Co))!=null||g(this,Co,s);let l=r!==void 0?{at:s-c(this,Co),kind:t,text:a,result:r}:{at:s-c(this,Co),kind:t,text:a};for(c(this,Io).push(l);c(this,Io).length>c(this,Ln);)c(this,Io).shift();let u=I1(s-c(this,Co)),d=T(this,J,Wx).call(this,o,i).map(E=>zm(E,t,a,u,c(this,Ln),o)),f={result:E=>d.forEach(_=>_.result(E))};r!==void 0&&f.result(r);let m={kind:t,text:a,ts:u,at:s-c(this,Co),...o===void 0?{}:{actor:o},...i?{summary:!0}:{},...r===void 0?{}:{result:r}};for(c(this,wr).push(m);c(this,wr).length>c(this,Ln);)c(this,wr).shift();return Lp(c(this,wr)),T(this,J,E2).call(this,t),c(this,Pe).isCollapsed()&&c(this,Pe).pulseFab(!0),T(this,J,Zl).call(this),{result:E=>{f.result(E),l.result=E,m.result=E,Lp(c(this,wr)),T(this,J,Zl).call(this)}}}narrate(t,n="info",r=hn.AGENT,o=!1){let i=n==="info"?t:`[${n}] ${t}`;return this.log(Ge.NARRATION,i,void 0,r,o)}setThrottled(t){var n;(n=c(this,Ze))==null||n.setAttribute(K1,t?"1":"0"),t&&c(this,Xr)!==void 0&&(c(this,Xr).textContent="Tab backgrounded - actions throttled. Bring tab to front or use `reticle drive`.")}async beforeAct(t,n,r){let o=re.resolve(t);if(this.status(`${$d(n)} ${r}`),!(o instanceof HTMLElement)){await Ux(c(this,Wl));return}let i=o.getBoundingClientRect(),s=i.left+i.width/2,a=i.top+i.height/2;KM(c(this,Pa),s,a),ZM(c(this,$p),i),await Ux(c(this,Wl)),(P.CLICK===n||P.DBLCLICK===n||P.SUBMIT===n)&&WM(c(this,Ze),s,a)}};Wl=new WeakMap,Ze=new WeakMap,Ei=new WeakMap,Pa=new WeakMap,$p=new WeakMap,Ma=new WeakMap,Xr=new WeakMap,Yl=new WeakMap,Xl=new WeakMap,_s=new WeakMap,bi=new WeakMap,Ua=new WeakMap,ql=new WeakMap,Jl=new WeakMap,Jn=new WeakMap,Ql=new WeakMap,kp=new WeakMap,Ha=new WeakMap,Qn=new WeakMap,Oo=new WeakMap,zp=new WeakMap,en=new WeakMap,eu=new WeakMap,Dp=new WeakMap,Pp=new WeakMap,Fa=new WeakMap,Io=new WeakMap,qr=new WeakMap,Mp=new WeakMap,Ln=new WeakMap,yr=new WeakMap,Jr=new WeakMap,Up=new WeakMap,Ss=new WeakMap,Hp=new WeakMap,wr=new WeakMap,Co=new WeakMap,er=new WeakMap,tu=new WeakMap,nu=new WeakMap,tr=new WeakMap,Pe=new WeakMap,ru=new WeakMap,Fp=new WeakMap,J=new WeakSet,l2=function(){if(!(c(this,yr)===void 0||0<c(this,wr).length))for(let t of s2().slice(-c(this,Ln))){for(let n of T(this,J,Wx).call(this,t.actor,t.summary===!0)){let r=zm(n,t.kind,t.text,t.ts,c(this,Ln),t.actor);t.result!==void 0&&r.result(t.result)}g(this,Co,c(this,Jn).call(this)-t.at),c(this,Io).push({at:t.at,kind:t.kind,text:t.text,...t.result===void 0?{}:{result:t.result}}),c(this,wr).push(t)}},u2=function(t,n){var o;let r=t.agentPrompt(window.location.href);(o=navigator.clipboard)==null||o.writeText(r).catch(()=>{}),n.setAttribute("data-copied","1"),ue(()=>n.removeAttribute("data-copied"),uW),_r().clearOnCopy&&t.clearAll()},Da=function(){var n;let t=!c(this,Pe).isCollapsed()&&c(this,Pe).isAnnotateOn();(n=c(this,ru))==null||n.toggle(t),c(this,Ze)!==void 0&&ag(c(this,Ze),_r(),t)},jx=function(){var n,r,o;let t=(n=c(this,Ze))==null?void 0:n.querySelector("[data-reticle-dock]");t==null||t.setAttribute(gn,li),(r=c(this,Ma))==null||r.setAttribute(gn,li),c(this,Ha)===da.SESSION&&((o=c(this,Ei))==null||o.setAttribute(gn,li))},d2=function(){c(this,tr).setState(Ye.ACTIVE),g(this,Fa,void 0),T(this,J,jx).call(this),c(this,Qn).resetActivity(c(this,Jn).call(this)),T(this,J,Kx).call(this)},p2=function(t){var o;let n=c(this,Jr);if(t!==void 0&&t.runId!==c(this,Up)&&(g(this,Up,t.runId),n!==void 0&&km(n)),n!==void 0&&n.childElementCount===0)for(let i of(o=t==null?void 0:t.lines)!=null?o:[])zm(n,Ge.NARRATION,i,"",c(this,Ln),hn.HARNESS);let r=c(this,Ss);g(this,Ss,t==null?void 0:t.steps),t!==void 0?T(this,J,bs).call(this,c(this,Oo),!1):r!==void 0&&T(this,J,bs).call(this,Ur.READY,!0)},bs=function(t,n){var i;let r=c(this,Ss)===void 0?t:Ur.harnessTesting(c(this,Ss));c(this,Xr)!==void 0&&(c(this,Xr).textContent=r,c(this,Xr).removeAttribute("title"));let o=n?"idle":"active";c(this,Yl)!==void 0&&c(this,Yl).setAttribute("data-liveness",o),(i=c(this,Ze))==null||i.setAttribute(Jd,o),c(this,Xl)!==void 0&&(c(this,Xl).textContent=n?c(this,Oo)!==""?c(this,Oo):Ur.READY:r)},Kx=function(){c(this,en)!==void 0&&Re(c(this,en));let t=()=>{T(this,J,f2).call(this),g(this,en,ue(t,c(this,Ql)))};g(this,en,ue(t,c(this,Ql)))},f2=function(){if(!c(this,qr)||c(this,Xr)===void 0||this.state===Ye.ENDED)return;let t=c(this,Jn).call(this)-c(this,Qn).lastActivityMs();if(t>=c(this,eu)){T(this,J,h2).call(this,t);return}if(t<c(this,kp)||c(this,Oo)===""||c(this,Ss)!==void 0)return;if(hn.HARNESS===c(this,zp)){T(this,J,bs).call(this,Ur.READY,!0);return}let n=Ur.SINCE_LAST;T(this,J,bs).call(this,`${Ur.PLANNING_PREFIX}${Yd(t)}${n}`,!0),c(this,_s)!==void 0&&(c(this,_s).textContent=Yd(t))},h2=function(t){g(this,Fa,c(this,Jn).call(this)),c(this,tr).setState(Ye.ENDED,`${Ur.STOPPED_PREFIX}${Yd(t)} quiet`),T(this,J,bs).call(this,Ur.STOPPED,!1),c(this,en)!==void 0&&(Re(c(this,en)),g(this,en,void 0))},Zx=function(){g(this,Io,[]),g(this,wr,[]),Lp([]),g(this,ql,{passes:0,fails:0}),c(this,yr)!==void 0&&km(c(this,yr)),c(this,Jr)!==void 0&&km(c(this,Jr)),T(this,J,Zl).call(this)},m2=function(){var t;(t=c(this,Ze))==null||t.setAttribute("data-reticle-hidden","1"),c(this,Pe).collapse()},g2=function(t){var n,r;(n=c(this,ru))==null||n.setAccent(up(t.statusThemeId).active),t.showTally?T(this,J,Zl).call(this):(r=c(this,Ua))==null||r.setAttribute("hidden",""),T(this,J,Da).call(this)},Wx=function(t,n){let r=c(this,yr),o=c(this,Jr);return hn.HARNESS!==t||o===void 0?r===void 0?[]:[r]:n&&r!==void 0?[r,o]:[o]},E2=function(t){c(this,Mp)||Ge.HUMAN===t||(g(this,Mp,!0),GM(_r().autoOpenChat)&&c(this,Pe).openChat())},Zl=function(){var t;if(!_r().showTally){(t=c(this,Ua))==null||t.setAttribute("hidden","");return}g(this,ql,QM(c(this,Ua),c(this,Io),c(this,ql)))},b2=function(){c(this,yr)!==void 0&&($m(c(this,yr),c(this,Ln)),c(this,Jr)!==void 0&&$m(c(this,Jr),c(this,Ln)))}});var tt,T2,x2,A2,y2=y(()=>{"use strict";tt={NONE:"none",HUD:"hud",APP:"app",HUD_CHAT:"hud-chat",HUD_FLOWS:"hud-flows",HUD_ANNOTATE:"hud-annotate",HUD_IMPACT:"hud-impact",HUD_SETTINGS:"hud-settings"},T2=[{label:"Verify one flow",text:"verify the login flow with Reticle, and tell me the verdict"},{label:"Check what is proved",text:"/reticle"},{label:"Let it loose",text:"monkey-test the checkout flow with Reticle and tell me what breaks"}],x2=[{id:"connect",title:"Yayyy! It is connected",say:"That panel is Reticle. Seeing it is your proof the SDK is connected to your app.",why:"It only mounts on a connected session, so it cannot show up without one. Having the tools is not the same as being set up.",call:'reticle_session { action: "list" }',anchor:tt.HUD},{id:"look",title:"Look, without pixels",say:"Take a semantic snapshot. You get the controls and their refs, not pixels, so you can point at things by name.",why:"A ref is stable across snapshots, which is what lets you plan several steps before spending any of them.",call:'reticle_look { action: "page" }',anchor:tt.APP},{id:"declare",title:"Say it first",say:'Decide what should happen BEFORE you touch anything. "Clicking Pay makes the receipt appear" is a claim that can be wrong.',why:"This is the whole idea. A consequence named first is a check; the same sentence written after the fact is a rationalisation, and it is the difference between a verdict and a story.",call:'until: { signal: "order:placed" } // a consequence \u2014 not until: { ms: 500 }',anchor:tt.NONE},{id:"verdict",title:"Act, and prove it",say:"Act and prove in one call. The answer says verified yes / no / unknown, and `because` names the evidence that decided it.",why:'Only `reticle_act_and_wait` and `reticle_assert` produce a verdict. A drive that ends without one has no result, however many tools it used \u2014 and "unknown" is an honest answer, not a pass.',call:'reticle_act_and_wait { ref, action: "click", until: { signal: "order:placed" } }',anchor:tt.HUD}],A2=[{id:"hud-chat",title:"Agent Log",say:"Watch what your agent is doing in your app, as it happens, and which steps it proved.",anchor:tt.HUD_CHAT,tryIt:"Open it."},{id:"hud-flows",title:"Saved flows",say:"Every journey your agent verifies is saved here. Replay one with a click, with no agent in the loop.",anchor:tt.HUD_FLOWS,tryIt:"Open them."},{id:"hud-annotate",title:"Notes",say:"Open Notes, then click anywhere in your app to drop a numbered pin with a note. Hand the pins to your agent and it fixes them.",anchor:tt.HUD_ANNOTATE,tryIt:"Open Notes, then pin something in your app."},{id:"hud-impact",title:"What's the impact?",say:"Everything Reticle has done here. Every bug it caught, every metric.",anchor:tt.HUD_IMPACT,tryIt:"Take a look."},{id:"hud-settings",title:"Make it yours",say:"Change how Reticle looks and behaves.",anchor:tt.HUD_SETTINGS,tryIt:"Open it."}]});var Yx=y(()=>{"use strict";y2()});function Jx(){return[...Xx.map(pW),{index:dW,title:"Get Started",body:"Paste one of these into Claude Code, Cursor, Codex, or whatever you use.",anchor:tt.NONE,prompts:T2}]}function Bp(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")}function fW(e){return Bp(e).replace(/`([^`]+)`/g,'<code class="reticle-tour-code">$1</code>')}function Qx(e,t){let n=e+t;return n<0?0:n>Fg-1?Fg-1:n}function O2(e,t,n){let r=Math.max(0,e.left),o=Math.max(0,e.top),i=Math.min(t,e.left+e.width),s=Math.min(n,e.top+e.height);return[{left:0,top:0,width:t,height:o},{left:0,top:s,width:t,height:n-s},{left:0,top:o,width:r,height:s-o},{left:i,top:o,width:t-i,height:s-o}].filter(l=>l.width>0&&l.height>0)}function I2(e){let t=Jx().map(s=>`<span class="reticle-tour-dot${s.index===e.index?" is-on":""}" aria-hidden="true"></span>`).join(""),n=e.tryIt===void 0?"":`<p class="reticle-tour-try" ${_i}="try">${Bp(e.tryIt)}</p>`,r=e.prompts===void 0?"":'<div class="reticle-tour-prompts">'+e.prompts.map((s,a)=>`<div class="reticle-tour-prompt" ${Gp}="${String(a)}"><span class="reticle-tour-prompt-label">${Bp(s.label)}</span><pre class="reticle-tour-prompt-text">${Bp(s.text)}</pre><button type="button" class="reticle-tour-copy" ${_i}="copy" ${Gp}="${String(a)}">${qx}</button></div>`).join("")+"</div>",o=e.index===0?"":`<button type="button" class="reticle-tour-back" ${_i}="back">Back</button>`,i=eA(e.index)?`<button type="button" class="reticle-tour-next" ${_i}="done">Done</button>`:`<button type="button" class="reticle-tour-next" ${_i}="next">Next</button>`;return`<div class="reticle-tour-card" role="dialog" aria-modal="false" aria-label="Reticle tour"><button type="button" class="reticle-tour-skip" ${_i}="skip" aria-label="Skip the tour">Skip</button><p class="reticle-tour-step">Step ${String(e.index+1)} of ${String(Fg)}</p><h2 class="reticle-tour-title">${Bp(e.title)}</h2><p class="reticle-tour-body">${fW(e.body)}</p>`+n+r+`<div class="reticle-tour-foot"><div class="reticle-tour-dots">${t}</div><div class="reticle-tour-nav">${o}${i}</div></div></div>`}var Xx,dW,Fg,Se,_i,Gp,qx,w2,v2,N2,pW,R2,eA,C2,L2=y(()=>{"use strict";Yx();Xx=[...x2.slice(0,1),...A2],dW=Xx.length,Fg=Xx.length+1,Se="data-reticle-tour",_i="data-reticle-tour-target",Gp="data-reticle-tour-prompt",qx="Copy",w2="Copied",v2="Selected \u2014 press Ctrl/Cmd+C",N2=1600,pW=(e,t)=>{var n;return{index:t,title:e.title,body:e.say,anchor:(n=e.anchor)!=null?n:tt.NONE,...e.tryIt===void 0?{}:{tryIt:e.tryIt}}},R2=e=>e.tryIt!==void 0;eA=e=>e===Fg-1;C2=`
1737
- [${Se}]{position:fixed;inset:0;z-index:${String(2147483630)};pointer-events:none;
1736
+ ${Op.dockHtml(r,"",ST,eM,tM)}`,document.body.appendChild(n),g(this,We,n),g(this,Si,(o=n.querySelector("[data-reticle-glow]"))!=null?o:void 0),g(this,Ma,(i=n.querySelector("[data-reticle-cursor]"))!=null?i:void 0),g(this,kp,(s=n.querySelector("[data-reticle-ring]"))!=null?s:void 0),g(this,Ua,(a=n.querySelector("[data-reticle-hud]"))!=null?a:void 0),g(this,Qr,(l=n.querySelector(".reticle-act"))!=null?l:void 0),g(this,ql,(u=n.querySelector(".reticle-act-strip"))!=null?u:void 0),g(this,Jl,(d=n.querySelector("[data-reticle-chat-pill-text]"))!=null?d:void 0),g(this,Ts,(f=n.querySelector("[data-reticle-chat-pill-time]"))!=null?f:void 0),g(this,vr,(m=n.querySelector(`[${ST}]`))!=null?m:void 0),g(this,to,(h=n.querySelector(`[${Eg}]`))!=null?h:void 0),g(this,Ti,(E=n.querySelector("[data-reticle-chip]"))!=null?E:void 0),g(this,Ha,(_=n.querySelector("[data-reticle-tally]"))!=null?_:void 0),c(this,Pe).mount(n),lg(n,Tr(),!1),c(this,Qn).setElements(c(this,Si),c(this,Ma)),c(this,tr).mount(n,c(this,Si)),c(this,Fp).mount(n),c(this,ru)!==void 0&&g(this,ou,m2(document,n,c(this,ru))),this.setMode(c(this,eu)),T(this,J,S2).call(this),T(this,J,Yl).call(this)}bindAnnotator(t){g(this,iu,t);let n=c(this,We);if(n===void 0)return;let r=n.querySelector(`[${Fm}]`),o=n.querySelector(`[${Bm}]`),i=n.querySelector(`[${JD}]`),s=n.querySelector(`[${Gm}]`),a=n.querySelector(`[${Vm}]`),l={};a instanceof HTMLElement&&(l.copyRow=a);let u=t.markCount;l.onCount=d=>{u===0&&d>0&&c(this,Pe).openView("annotations"),u=d},l.onMarksChange=d=>c(this,Pe).paintAnnotations(d),s instanceof HTMLElement&&s.addEventListener("click",d=>{d.stopPropagation(),T(this,J,T2).call(this,t,s)}),r instanceof HTMLElement&&(l.markersBtn=r),o instanceof HTMLElement&&(l.clearBtn=o),i instanceof HTMLElement&&(l.countEl=i),t.attachChrome(l),t.setAccent(dp(Tr().statusThemeId).active),T(this,J,Pa).call(this)}destroy(){var t,n;c(this,Qn).teardown(),c(this,tn)!==void 0&&Re(c(this,tn)),g(this,tn,void 0),(t=c(this,ou))==null||t.call(this),g(this,ou,void 0),c(this,Pe).teardown(),c(this,tr).teardown(),g(this,eo,!1),g(this,zo,void 0),g(this,vr,void 0),g(this,to,void 0),g(this,Nr,[]),$p([]),(n=c(this,We))==null||n.remove(),document.querySelectorAll("style[data-reticle-overlay]").forEach(r=>r.remove()),g(this,We,void 0)}sessionStart(){var t,n;if(this.state===Xe.ENDED){T(this,J,x2).call(this);return}c(this,eo)||(xT===((t=c(this,We))==null?void 0:t.getAttribute(Um))&&c(this,We).removeAttribute(Um),g(this,eo,!0),(n=c(this,Mp))!=null||g(this,Mp,c(this,Jn).call(this)),g(this,Ba,void 0),T(this,J,Xx).call(this),c(this,Qn).resetActivity(c(this,Jn).call(this)),T(this,J,qx).call(this),Bx()&&c(this,Pe).openChat())}showUnreachable(t,n){var o,i,s,a;if(c(this,eo))return;(o=c(this,We))==null||o.setAttribute(Um,xT);let r=(i=c(this,We))==null?void 0:i.querySelector("[data-reticle-dock]");r==null||r.setAttribute(gn,pi),(s=c(this,Ua))==null||s.setAttribute(gn,pi),g(this,$o,bk),T(this,J,Ss).call(this,c(this,$o),!0),(a=c(this,Qr))==null||a.setAttribute("title",pm(t,n)),Bx()&&c(this,Pe).openChat()}sessionEnd(){var n,r,o,i;if(!c(this,eo))return;g(this,eo,!1),c(this,tn)!==void 0&&(Re(c(this,tn)),g(this,tn,void 0));let t=(n=c(this,We))==null?void 0:n.querySelector("[data-reticle-dock]");t==null||t.setAttribute(gn,os),(r=c(this,Ua))==null||r.setAttribute(gn,os),c(this,Pe).collapse(),c(this,Fa)===pa.SESSION&&((o=c(this,Si))==null||o.setAttribute(gn,os),(i=c(this,Si))==null||i.setAttribute(qd,Mm))}markActivity(){c(this,Qn).markActivity()}scheduleIdle(){c(this,Qn).scheduleIdle()}glowPhase(){return c(this,Qn).phase()}get mode(){return c(this,eu)}setMode(t){var n,r;if(g(this,eu,t),(n=c(this,We))==null||n.setAttribute("data-reticle-mode",t),c(this,Ti)!==void 0){let o=DD[t];if(c(this,Ti).setAttribute("data-mode",t),c(this,Ti).replaceChildren(),o.length>0){let i=t===ct.READING?se.VIEW:t===ct.ACTING?se.POINTER:void 0;i!==void 0&&c(this,Ti).appendChild(So(i,Ae.CHIP));let s=document.createElement("span");s.className="reticle-chip-label",s.textContent=o,c(this,Ti).appendChild(s)}}t===ct.READING&&((r=c(this,Ma))==null||r.setAttribute(gn,os))}status(t){this.markActivity(),c(this,Ts)!==void 0&&(c(this,Ts).textContent=Br.NOW),g(this,$o,t),T(this,J,Ss).call(this,t,!1)}placeHud(t,n){let r=c(this,We);if(r===void 0)return c(this,Bp)?[FO]:[];let o=[];if(Bn.REMOVED===t)return g(this,Bp,!0),this.destroy(),[t];Bn.HIDDEN===t&&r.setAttribute(al,"1"),Bn.SHOWN===t&&r.removeAttribute(al),t!==void 0&&o.push(t);let i=r.querySelector(`[${F}]`);if(n!==void 0&&i instanceof HTMLElement){if(Jf.BOTTOM_RIGHT===n)tp(i);else{let s=dl(i),a=n.endsWith("left")?0:window.innerWidth,l=n.startsWith("top")?0:window.innerHeight,u=ul(a,l,s.width,s.height,window.innerWidth,window.innerHeight);ss(i,u.left,u.top)}o.push(n),jr(i,r)}return o}setIdleEndMs(t){Number.isFinite(t)&&g(this,nu,Math.max(YD,Math.floor(t)))}runState(){let t=t2({sessionId:c(this,Pp),state:this.state,startMs:c(this,Mp),endMs:c(this,Ba),now:c(this,Jn).call(this),runLog:c(this,ko)}),n=Tr();return n.outputDetail===Kr.MINIMAL?{session:t.session,url:t.url,state:t.state,startedMs:t.startedMs,durationMs:t.durationMs,counts:t.counts}:n.outputDetail===Kr.VERBOSE&&n.reactComponents?{...t,includeReactComponents:!0}:t}log(t,n,r,o,i=!1){var h;let s=c(this,Jn).call(this);if(c(this,Qn).markActivity(s),g(this,Dp,o),c(this,vr)===void 0)return;let a=n.trim();if(a.length===0)return;(h=c(this,zo))!=null||g(this,zo,s);let l=r!==void 0?{at:s-c(this,zo),kind:t,text:a,result:r}:{at:s-c(this,zo),kind:t,text:a};for(c(this,ko).push(l);c(this,ko).length>c(this,Ln);)c(this,ko).shift();let u=FD(s-c(this,zo)),d=T(this,J,Qx).call(this,o,i).map(E=>Pm(E,t,a,u,c(this,Ln),o)),f={result:E=>d.forEach(_=>_.result(E))};r!==void 0&&f.result(r);let m={kind:t,text:a,ts:u,at:s-c(this,zo),...o===void 0?{}:{actor:o},...i?{summary:!0}:{},...r===void 0?{}:{result:r}};for(c(this,Nr).push(m);c(this,Nr).length>c(this,Ln);)c(this,Nr).shift();return $p(c(this,Nr)),T(this,J,R2).call(this,t),c(this,Pe).isCollapsed()&&c(this,Pe).pulseFab(!0),T(this,J,Yl).call(this),{result:E=>{f.result(E),l.result=E,m.result=E,$p(c(this,Nr)),T(this,J,Yl).call(this)}}}narrate(t,n="info",r=hn.AGENT,o=!1){let i=n==="info"?t:`[${n}] ${t}`;return this.log(Ge.NARRATION,i,void 0,r,o)}setThrottled(t){var n;(n=c(this,We))==null||n.setAttribute(r1,t?"1":"0"),t&&c(this,Qr)!==void 0&&(c(this,Qr).textContent="Tab backgrounded - actions throttled. Bring tab to front or use `reticle drive`.")}async beforeAct(t,n,r){let o=re.resolve(t);if(this.status(`${kd(n)} ${r}`),!(o instanceof HTMLElement)){await Vx(c(this,Xl));return}let i=o.getBoundingClientRect(),s=i.left+i.width/2,a=i.top+i.height/2;r2(c(this,Ma),s,a),o2(c(this,kp),i),await Vx(c(this,Xl)),(D.CLICK===n||D.DBLCLICK===n||D.SUBMIT===n)&&i2(c(this,We),s,a)}};Xl=new WeakMap,We=new WeakMap,Si=new WeakMap,Ma=new WeakMap,kp=new WeakMap,Ua=new WeakMap,Qr=new WeakMap,ql=new WeakMap,Jl=new WeakMap,Ts=new WeakMap,Ti=new WeakMap,Ha=new WeakMap,Ql=new WeakMap,eu=new WeakMap,Jn=new WeakMap,tu=new WeakMap,zp=new WeakMap,Fa=new WeakMap,Qn=new WeakMap,$o=new WeakMap,Dp=new WeakMap,tn=new WeakMap,nu=new WeakMap,Pp=new WeakMap,Mp=new WeakMap,Ba=new WeakMap,ko=new WeakMap,eo=new WeakMap,Up=new WeakMap,Ln=new WeakMap,vr=new WeakMap,to=new WeakMap,Hp=new WeakMap,xs=new WeakMap,Fp=new WeakMap,Nr=new WeakMap,zo=new WeakMap,er=new WeakMap,ru=new WeakMap,ou=new WeakMap,tr=new WeakMap,Pe=new WeakMap,iu=new WeakMap,Bp=new WeakMap,J=new WeakSet,S2=function(){if(!(c(this,vr)===void 0||0<c(this,Nr).length))for(let t of E2().slice(-c(this,Ln))){for(let n of T(this,J,Qx).call(this,t.actor,t.summary===!0)){let r=Pm(n,t.kind,t.text,t.ts,c(this,Ln),t.actor);t.result!==void 0&&r.result(t.result)}g(this,zo,c(this,Jn).call(this)-t.at),c(this,ko).push({at:t.at,kind:t.kind,text:t.text,...t.result===void 0?{}:{result:t.result}}),c(this,Nr).push(t)}},T2=function(t,n){var o;let r=t.agentPrompt(window.location.href);(o=navigator.clipboard)==null||o.writeText(r).catch(()=>{}),n.setAttribute("data-copied","1"),ue(()=>n.removeAttribute("data-copied"),CW),Tr().clearOnCopy&&t.clearAll()},Pa=function(){var n;let t=!c(this,Pe).isCollapsed()&&c(this,Pe).isAnnotateOn();(n=c(this,iu))==null||n.toggle(t),c(this,We)!==void 0&&lg(c(this,We),Tr(),t)},Xx=function(){var n,r,o;let t=(n=c(this,We))==null?void 0:n.querySelector("[data-reticle-dock]");t==null||t.setAttribute(gn,pi),(r=c(this,Ua))==null||r.setAttribute(gn,pi),c(this,Fa)===pa.SESSION&&((o=c(this,Si))==null||o.setAttribute(gn,pi))},x2=function(){c(this,tr).setState(Xe.ACTIVE),g(this,Ba,void 0),T(this,J,Xx).call(this),c(this,Qn).resetActivity(c(this,Jn).call(this)),T(this,J,qx).call(this)},A2=function(t){var o;let n=c(this,to);if(t!==void 0&&t.runId!==c(this,Hp)&&(g(this,Hp,t.runId),n!==void 0&&Dm(n)),n!==void 0&&n.childElementCount===0)for(let i of(o=t==null?void 0:t.lines)!=null?o:[])Pm(n,Ge.NARRATION,i,"",c(this,Ln),hn.HARNESS);let r=c(this,xs);g(this,xs,t==null?void 0:t.steps),t!==void 0?T(this,J,Ss).call(this,c(this,$o),!1):r!==void 0&&T(this,J,Ss).call(this,Br.READY,!0)},Ss=function(t,n){var i;let r=c(this,xs)===void 0?t:Br.harnessTesting(c(this,xs));c(this,Qr)!==void 0&&(c(this,Qr).textContent=r,c(this,Qr).removeAttribute("title"));let o=n?"idle":"active";c(this,ql)!==void 0&&c(this,ql).setAttribute("data-liveness",o),(i=c(this,We))==null||i.setAttribute(Qd,o),c(this,Jl)!==void 0&&(c(this,Jl).textContent=n?c(this,$o)!==""?c(this,$o):Br.READY:r)},qx=function(){c(this,tn)!==void 0&&Re(c(this,tn));let t=()=>{T(this,J,y2).call(this),g(this,tn,ue(t,c(this,tu)))};g(this,tn,ue(t,c(this,tu)))},y2=function(){if(!c(this,eo)||c(this,Qr)===void 0||this.state===Xe.ENDED)return;let t=c(this,Jn).call(this)-c(this,Qn).lastActivityMs();if(t>=c(this,nu)){T(this,J,w2).call(this,t);return}if(t<c(this,zp)||c(this,$o)===""||c(this,xs)!==void 0)return;if(hn.HARNESS===c(this,Dp)){T(this,J,Ss).call(this,Br.READY,!0);return}let n=Br.SINCE_LAST;T(this,J,Ss).call(this,`${Br.PLANNING_PREFIX}${Xd(t)}${n}`,!0),c(this,Ts)!==void 0&&(c(this,Ts).textContent=Xd(t))},w2=function(t){g(this,Ba,c(this,Jn).call(this)),c(this,tr).setState(Xe.ENDED,`${Br.STOPPED_PREFIX}${Xd(t)} quiet`),T(this,J,Ss).call(this,Br.STOPPED,!1),c(this,tn)!==void 0&&(Re(c(this,tn)),g(this,tn,void 0))},Jx=function(){g(this,ko,[]),g(this,Nr,[]),$p([]),g(this,Ql,{passes:0,fails:0}),c(this,vr)!==void 0&&Dm(c(this,vr)),c(this,to)!==void 0&&Dm(c(this,to)),T(this,J,Yl).call(this)},v2=function(){var t;(t=c(this,We))==null||t.setAttribute("data-reticle-hidden","1"),c(this,Pe).collapse()},N2=function(t){var n,r;(n=c(this,iu))==null||n.setAccent(dp(t.statusThemeId).active),t.showTally?T(this,J,Yl).call(this):(r=c(this,Ha))==null||r.setAttribute("hidden",""),T(this,J,Pa).call(this)},Qx=function(t,n){let r=c(this,vr),o=c(this,to);return hn.HARNESS!==t||o===void 0?r===void 0?[]:[r]:n&&r!==void 0?[r,o]:[o]},R2=function(t){c(this,Up)||Ge.HUMAN===t||(g(this,Up,!0),e2(Tr().autoOpenChat)&&c(this,Pe).openChat())},Yl=function(){var t;if(!Tr().showTally){(t=c(this,Ha))==null||t.setAttribute("hidden","");return}g(this,Ql,u2(c(this,Ha),c(this,ko),c(this,Ql)))},O2=function(){c(this,vr)!==void 0&&(zm(c(this,vr),c(this,Ln)),c(this,to)!==void 0&&zm(c(this,to),c(this,Ln)))}});var ot,L2,$2,k2,z2=y(()=>{"use strict";ot={NONE:"none",HUD:"hud",APP:"app",HUD_CHAT:"hud-chat",HUD_FLOWS:"hud-flows",HUD_ANNOTATE:"hud-annotate",HUD_IMPACT:"hud-impact",HUD_SETTINGS:"hud-settings"},L2=[{label:"Verify one flow",text:"verify the login flow with Reticle, and tell me the verdict"},{label:"Check what is proved",text:"/reticle"},{label:"Let it loose",text:"monkey-test the checkout flow with Reticle and tell me what breaks"}],$2=[{id:"connect",title:"Yayyy! It is connected",say:"That panel is Reticle. Seeing it is your proof the SDK is connected to your app.",why:"It only mounts on a connected session, so it cannot show up without one. Having the tools is not the same as being set up.",call:'reticle_session { action: "list" }',anchor:ot.HUD},{id:"look",title:"Look, without pixels",say:"Take a semantic snapshot. You get the controls and their refs, not pixels, so you can point at things by name.",why:"A ref is stable across snapshots, which is what lets you plan several steps before spending any of them.",call:'reticle_look { action: "page" }',anchor:ot.APP},{id:"declare",title:"Say it first",say:'Decide what should happen BEFORE you touch anything. "Clicking Pay makes the receipt appear" is a claim that can be wrong.',why:"This is the whole idea. A consequence named first is a check; the same sentence written after the fact is a rationalisation, and it is the difference between a verdict and a story.",call:'until: { signal: "order:placed" } // a consequence \u2014 not until: { ms: 500 }',anchor:ot.NONE},{id:"verdict",title:"Act, and prove it",say:"Act and prove in one call. The answer says verified yes / no / unknown, and `because` names the evidence that decided it.",why:'Only `reticle_act_and_wait` and `reticle_assert` produce a verdict. A drive that ends without one has no result, however many tools it used \u2014 and "unknown" is an honest answer, not a pass.',call:'reticle_act_and_wait { ref, action: "click", until: { signal: "order:placed" } }',anchor:ot.HUD}],k2=[{id:"hud-chat",title:"Agent Log",say:"Watch what your agent is doing in your app, as it happens, and which steps it proved.",anchor:ot.HUD_CHAT,tryIt:"Open it."},{id:"hud-flows",title:"Saved flows",say:"Every journey your agent verifies is saved here. Replay one with a click, with no agent in the loop.",anchor:ot.HUD_FLOWS,tryIt:"Open them."},{id:"hud-annotate",title:"Notes",say:"Open Notes, then click anywhere in your app to drop a numbered pin with a note. Hand the pins to your agent and it fixes them.",anchor:ot.HUD_ANNOTATE,tryIt:"Open Notes, then pin something in your app."},{id:"hud-impact",title:"What's the impact?",say:"Everything Reticle has done here. Every bug it caught, every metric.",anchor:ot.HUD_IMPACT,tryIt:"Take a look."},{id:"hud-settings",title:"Make it yours",say:"Change how Reticle looks and behaves.",anchor:ot.HUD_SETTINGS,tryIt:"Open it."}]});var eA=y(()=>{"use strict";z2()});function rA(){return[...tA.map($W),{index:LW,title:"Get Started",body:"Paste one of these into Claude Code, Cursor, Codex, or whatever you use.",anchor:ot.NONE,prompts:L2}]}function Gp(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")}function kW(e){return Gp(e).replace(/`([^`]+)`/g,'<code class="reticle-tour-code">$1</code>')}function oA(e,t){let n=e+t;return n<0?0:n>Gg-1?Gg-1:n}function H2(e,t,n){let r=Math.max(0,e.left),o=Math.max(0,e.top),i=Math.min(t,e.left+e.width),s=Math.min(n,e.top+e.height);return[{left:0,top:0,width:t,height:o},{left:0,top:s,width:t,height:n-s},{left:0,top:o,width:r,height:s-o},{left:i,top:o,width:t-i,height:s-o}].filter(l=>l.width>0&&l.height>0)}function F2(e){let t=rA().map(s=>`<span class="reticle-tour-dot${s.index===e.index?" is-on":""}" aria-hidden="true"></span>`).join(""),n=e.tryIt===void 0?"":`<p class="reticle-tour-try" ${xi}="try">${Gp(e.tryIt)}</p>`,r=e.prompts===void 0?"":'<div class="reticle-tour-prompts">'+e.prompts.map((s,a)=>`<div class="reticle-tour-prompt" ${Vp}="${String(a)}"><span class="reticle-tour-prompt-label">${Gp(s.label)}</span><pre class="reticle-tour-prompt-text">${Gp(s.text)}</pre><button type="button" class="reticle-tour-copy" ${xi}="copy" ${Vp}="${String(a)}">${nA}</button></div>`).join("")+"</div>",o=e.index===0?"":`<button type="button" class="reticle-tour-back" ${xi}="back">Back</button>`,i=iA(e.index)?`<button type="button" class="reticle-tour-next" ${xi}="done">Done</button>`:`<button type="button" class="reticle-tour-next" ${xi}="next">Next</button>`;return`<div class="reticle-tour-card" role="dialog" aria-modal="false" aria-label="Reticle tour"><button type="button" class="reticle-tour-skip" ${xi}="skip" aria-label="Skip the tour">Skip</button><p class="reticle-tour-step">Step ${String(e.index+1)} of ${String(Gg)}</p><h2 class="reticle-tour-title">${Gp(e.title)}</h2><p class="reticle-tour-body">${kW(e.body)}</p>`+n+r+`<div class="reticle-tour-foot"><div class="reticle-tour-dots">${t}</div><div class="reticle-tour-nav">${o}${i}</div></div></div>`}var tA,LW,Gg,Te,xi,Vp,nA,D2,P2,M2,$W,U2,iA,B2,G2=y(()=>{"use strict";eA();tA=[...$2.slice(0,1),...k2],LW=tA.length,Gg=tA.length+1,Te="data-reticle-tour",xi="data-reticle-tour-target",Vp="data-reticle-tour-prompt",nA="Copy",D2="Copied",P2="Selected \u2014 press Ctrl/Cmd+C",M2=1600,$W=(e,t)=>{var n;return{index:t,title:e.title,body:e.say,anchor:(n=e.anchor)!=null?n:ot.NONE,...e.tryIt===void 0?{}:{tryIt:e.tryIt}}},U2=e=>e.tryIt!==void 0;iA=e=>e===Gg-1;B2=`
1737
+ [${Te}]{position:fixed;inset:0;z-index:${String(2147483630)};pointer-events:none;
1738
1738
  font:13px/1.55 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;}
1739
- [${Se}] .reticle-tour-scrim{position:absolute;inset:0;background:rgba(6,8,14,.55);
1739
+ [${Te}] .reticle-tour-scrim{position:absolute;inset:0;background:rgba(6,8,14,.55);
1740
1740
  backdrop-filter:blur(1.5px);pointer-events:auto;z-index:0;}
1741
1741
  /* Blocks the click everywhere the hole is not. Same job as the scrim, minus the one rectangle the
1742
1742
  slide is inviting somebody to press. */
1743
- [${Se}] .reticle-tour-blocker{position:absolute;pointer-events:auto;z-index:0;}
1743
+ [${Te}] .reticle-tour-blocker{position:absolute;pointer-events:auto;z-index:0;}
1744
1744
  /* Ringed slides dim through the ring's own 9999px shadow, which leaves a hole over the thing being
1745
1745
  pointed at. The scrim would cover that hole -- dimming the HUD the slide is ABOUT, and washing
1746
1746
  the page twice (~80% rather than 55%).
@@ -1748,7 +1748,7 @@ ${bM}`});function RM(){let e=Ie(se.REMOVE,xe.MIN);return`<div ${B} class="reticl
1748
1748
  VISIBLY blocking: reported from the field on 3.1.0 by several users, one of whom removed the
1749
1749
  plugin, because a cleared scrim went on eating every press on a page that looked lit and
1750
1750
  reachable. An overlay that looks transparent and behaves opaque reads as the app being broken. */
1751
- [${Se}] .reticle-tour-scrim.is-clear{background:transparent;backdrop-filter:none;
1751
+ [${Te}] .reticle-tour-scrim.is-clear{background:transparent;backdrop-filter:none;
1752
1752
  pointer-events:none;}
1753
1753
  /* Above the ring, and the z-index is the whole point.
1754
1754
  The ring is appended after the card, and both are positioned with an auto z-index, so the ring
@@ -1756,58 +1756,58 @@ ${bM}`});function RM(){let e=Ie(se.REMOVE,xe.MIN);return`<div ${B} class="reticl
1756
1756
  card as well. On every ringed slide the card was washed at 55% and read as sitting BEHIND the page
1757
1757
  it was drawn over. The ring must stay above the scrim and below the card; saying so explicitly is
1758
1758
  the fix, because DOM order alone cannot express "between these two". */
1759
- [${Se}] .reticle-tour-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
1759
+ [${Te}] .reticle-tour-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
1760
1760
  width:min(430px,calc(100vw - 32px));box-sizing:border-box;pointer-events:auto;z-index:3;
1761
1761
  background:#14161d;color:#e8eaf0;border:1px solid #2b303d;border-radius:14px;padding:20px 20px 16px;
1762
1762
  box-shadow:0 24px 60px rgba(0,0,0,.5);}
1763
- [${Se}] .reticle-tour-skip{position:absolute;top:10px;right:12px;background:none;border:0;
1763
+ [${Te}] .reticle-tour-skip{position:absolute;top:10px;right:12px;background:none;border:0;
1764
1764
  color:#8a93a6;font:inherit;font-size:12px;cursor:pointer;padding:4px 6px;border-radius:6px;}
1765
- [${Se}] .reticle-tour-skip:hover{color:#e8eaf0;background:rgba(255,255,255,.06);}
1766
- [${Se}] .reticle-tour-step{margin:0 0 6px;font-size:11px;letter-spacing:.06em;
1765
+ [${Te}] .reticle-tour-skip:hover{color:#e8eaf0;background:rgba(255,255,255,.06);}
1766
+ [${Te}] .reticle-tour-step{margin:0 0 6px;font-size:11px;letter-spacing:.06em;
1767
1767
  text-transform:uppercase;color:#7f8798;}
1768
- [${Se}] .reticle-tour-title{margin:0 0 8px;font-size:18px;line-height:1.25;font-weight:650;
1768
+ [${Te}] .reticle-tour-title{margin:0 0 8px;font-size:18px;line-height:1.25;font-weight:650;
1769
1769
  color:#f2f4f8;}
1770
- [${Se}] .reticle-tour-body{margin:0 0 10px;color:#c9cedb;}
1770
+ [${Te}] .reticle-tour-body{margin:0 0 10px;color:#c9cedb;}
1771
1771
  /* A call named inside a sentence. Sets its own colour for the reason every other text class does:
1772
1772
  an inherited one loses to any direct element selector in the host app. */
1773
- [${Se}] .reticle-tour-code{padding:1px 5px;border-radius:5px;background:#0c0e14;
1773
+ [${Te}] .reticle-tour-code{padding:1px 5px;border-radius:5px;background:#0c0e14;
1774
1774
  border:1px solid #232834;color:#9fb6ff;
1775
1775
  font:11.5px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;}
1776
- [${Se}] .reticle-tour-try{margin:0 0 12px;padding:8px 10px;border-radius:8px;
1776
+ [${Te}] .reticle-tour-try{margin:0 0 12px;padding:8px 10px;border-radius:8px;
1777
1777
  background:rgba(99,102,241,.1);border:1px solid rgba(99,102,241,.32);color:#c7cbff;
1778
1778
  font-size:12.5px;font-weight:550;}
1779
- [${Se}] .reticle-tour-prompts{display:flex;flex-direction:column;gap:8px;margin:0 0 12px;}
1780
- [${Se}] .reticle-tour-prompt{display:grid;gap:6px;padding:9px 10px;border-radius:8px;
1779
+ [${Te}] .reticle-tour-prompts{display:flex;flex-direction:column;gap:8px;margin:0 0 12px;}
1780
+ [${Te}] .reticle-tour-prompt{display:grid;gap:6px;padding:9px 10px;border-radius:8px;
1781
1781
  background:#0c0e14;border:1px solid #232834;
1782
1782
  grid-template-columns:1fr auto;grid-template-areas:"label copy" "text text";align-items:center;}
1783
- [${Se}] .reticle-tour-prompt-label{grid-area:label;color:#8a93a6;font-size:11px;
1783
+ [${Te}] .reticle-tour-prompt-label{grid-area:label;color:#8a93a6;font-size:11px;
1784
1784
  letter-spacing:.05em;text-transform:uppercase;}
1785
- [${Se}] .reticle-tour-prompt-text{grid-area:text;width:100%;box-sizing:border-box;margin:0;
1785
+ [${Te}] .reticle-tour-prompt-text{grid-area:text;width:100%;box-sizing:border-box;margin:0;
1786
1786
  white-space:pre-wrap;overflow-wrap:anywhere;color:#c9cedb;
1787
1787
  font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;}
1788
- [${Se}] .reticle-tour-copy{grid-area:copy;padding:5px 10px;border-radius:6px;
1788
+ [${Te}] .reticle-tour-copy{grid-area:copy;padding:5px 10px;border-radius:6px;
1789
1789
  border:1px solid #2b303d;background:transparent;color:#c9cedb;font:inherit;font-size:11.5px;
1790
1790
  font-weight:600;cursor:pointer;white-space:nowrap;}
1791
- [${Se}] .reticle-tour-copy:hover{background:rgba(255,255,255,.07);color:#fff;}
1791
+ [${Te}] .reticle-tour-copy:hover{background:rgba(255,255,255,.07);color:#fff;}
1792
1792
  /* The flash that tells somebody the click did something. Colour AND text: colour alone is not an
1793
1793
  answer for the people who cannot see the difference. */
1794
- [${Se}] .reticle-tour-copy.is-done{background:#16a34a;border-color:#16a34a;color:#fff;}
1795
- [${Se}] .reticle-tour-copy.is-manual{background:#b45309;border-color:#b45309;color:#fff;}
1796
- [${Se}] .reticle-tour-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;}
1797
- [${Se}] .reticle-tour-dots{display:flex;gap:6px;}
1798
- [${Se}] .reticle-tour-dot{width:6px;height:6px;border-radius:50%;background:#333a49;}
1799
- [${Se}] .reticle-tour-dot.is-on{background:#6366f1;}
1800
- [${Se}] .reticle-tour-nav{display:flex;gap:8px;}
1801
- [${Se}] .reticle-tour-back,[${Se}] .reticle-tour-next{padding:8px 14px;border-radius:8px;
1794
+ [${Te}] .reticle-tour-copy.is-done{background:#16a34a;border-color:#16a34a;color:#fff;}
1795
+ [${Te}] .reticle-tour-copy.is-manual{background:#b45309;border-color:#b45309;color:#fff;}
1796
+ [${Te}] .reticle-tour-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;}
1797
+ [${Te}] .reticle-tour-dots{display:flex;gap:6px;}
1798
+ [${Te}] .reticle-tour-dot{width:6px;height:6px;border-radius:50%;background:#333a49;}
1799
+ [${Te}] .reticle-tour-dot.is-on{background:#6366f1;}
1800
+ [${Te}] .reticle-tour-nav{display:flex;gap:8px;}
1801
+ [${Te}] .reticle-tour-back,[${Te}] .reticle-tour-next{padding:8px 14px;border-radius:8px;
1802
1802
  font:inherit;font-weight:600;cursor:pointer;border:1px solid #2b303d;background:transparent;color:#c9cedb;}
1803
- [${Se}] .reticle-tour-next{background:#6366f1;border-color:#6366f1;color:#fff;}
1804
- [${Se}] .reticle-tour-next:hover{filter:brightness(1.08);}
1805
- [${Se}] .reticle-tour-back:hover{background:rgba(255,255,255,.06);color:#e8eaf0;}
1806
- [${Se}] .reticle-tour-ring{position:absolute;border-radius:14px;pointer-events:none;z-index:1;
1803
+ [${Te}] .reticle-tour-next{background:#6366f1;border-color:#6366f1;color:#fff;}
1804
+ [${Te}] .reticle-tour-next:hover{filter:brightness(1.08);}
1805
+ [${Te}] .reticle-tour-back:hover{background:rgba(255,255,255,.06);color:#e8eaf0;}
1806
+ [${Te}] .reticle-tour-ring{position:absolute;border-radius:14px;pointer-events:none;z-index:1;
1807
1807
  box-shadow:0 0 0 3px #6366f1,0 0 0 9999px rgba(6,8,14,.55);transition:all .25s ease;}
1808
1808
  /* A ring somebody is being asked to press, rather than to look at: it pulses, so the invitation in
1809
1809
  the prose has something on the page agreeing with it. */
1810
- [${Se}] .reticle-tour-ring.is-live{animation:reticle-tour-pulse 1.8s ease-in-out infinite;}
1810
+ [${Te}] .reticle-tour-ring.is-live{animation:reticle-tour-pulse 1.8s ease-in-out infinite;}
1811
1811
  @keyframes reticle-tour-pulse{
1812
1812
  0%,100%{box-shadow:0 0 0 3px #6366f1,0 0 0 9999px rgba(6,8,14,.55);}
1813
1813
  50%{box-shadow:0 0 0 6px rgba(99,102,241,.55),0 0 0 9999px rgba(6,8,14,.55);}
@@ -1816,21 +1816,21 @@ ${bM}`});function RM(){let e=Ie(se.REMOVE,xe.MIN);return`<div ${B} class="reticl
1816
1816
  something small and wrong for the app: the hole becomes the whole viewport, the dimming
1817
1817
  disappears, and the card is left competing with a fully lit page while the ring edges sit off at
1818
1818
  the margins pointing at nothing. An outline says "all of this" without turning the lights on. */
1819
- [${Se}] .reticle-tour-ring.is-region{box-shadow:none;border:2px dashed #7c83f5;
1819
+ [${Te}] .reticle-tour-ring.is-region{box-shadow:none;border:2px dashed #7c83f5;
1820
1820
  background:rgba(99,102,241,.06);}
1821
1821
  @media (prefers-reduced-motion:reduce){
1822
- [${Se}] .reticle-tour-ring{transition:none;}
1822
+ [${Te}] .reticle-tour-ring{transition:none;}
1823
1823
  }
1824
- `});var D2={};Wa(D2,{HUD_CONTROL_SELECTORS:()=>$2,TOUR_SEEN_KEY_PREFIX:()=>Eh,isLastSlide:()=>eA,mountTour:()=>_W,openedByReticle:()=>k2,safeLocalStorage:()=>SW,tourAlreadySeen:()=>z2,tourSeenKey:()=>tA});function gW(e,t){var s;let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,i=Number.NEGATIVE_INFINITY;for(let a of t){let l=(s=e.querySelector(a))==null?void 0:s.getBoundingClientRect();l===void 0||l.width<=0||l.height<=0||(n=Math.min(n,l.left),r=Math.min(r,l.top),o=Math.max(o,l.left+l.width),i=Math.max(i,l.top+l.height))}if(o!==Number.NEGATIVE_INFINITY)return{left:n,top:r,width:o-n,height:i-r}}function EW(e,t){var r;if(tt.HUD===t)return gW(e,mW);let n=$2[t];if(n!==void 0){let o=(r=e.querySelector(n))==null?void 0:r.getBoundingClientRect();return o===void 0?void 0:o}if(tt.APP===t)for(let o of hW){let i=e.querySelector(o);if(i===null)continue;let s=i.getBoundingClientRect();if(s.width>0)return s}}function k2(e){if(e===void 0||e==="")return!1;let t=new URLSearchParams(e.startsWith("?")?e.slice(1):e);return t.has(rr.OPENED)||t.has(rr.SESSION)||t.has(rr.PROJECT)}function z2(e,t){if(e===void 0)return!0;try{return e.getItem(tA(t))!==null}catch{return!0}}function bW(e,t){try{e==null||e.setItem(tA(t),"1")}catch{}}function _W(e){var A;if(e.isDriving()||k2(e.search)||((A=e.navigator)==null?void 0:A.webdriver)===!0||z2(e.storage,e.projectId))return;let t=e.document,n=t.createElement("style");n.setAttribute(Se,""),n.textContent=C2,t.head.appendChild(n);let r=t.createElement("div");r.setAttribute(Se,"");let o=Jx(),i=0,s=!0,a=()=>{},l=()=>{},u=()=>{s&&(s=!1,a(),l(),r.remove(),n.remove())},d=()=>{s&&(bW(e.storage,e.projectId),u())},f=()=>{e.isDriving()&&u()},m=()=>{var N,O,k,j;let v=o[i];if(v!==void 0&&(r.innerHTML=`<div class="reticle-tour-scrim"></div>${I2(v)}`,tt.NONE!==v.anchor)){let Y=EW(t,v.anchor);if(Y!==void 0&&Y.width>0){let X=tt.APP===v.anchor,G=t.createElement("div");G.className=X?"reticle-tour-ring is-region":"reticle-tour-ring";let ee=X?-2:6;if(G.style.left=`${String(Math.round(Y.left-ee))}px`,G.style.top=`${String(Math.round(Y.top-ee))}px`,G.style.width=`${String(Math.round(Y.width+ee*2))}px`,G.style.height=`${String(Math.round(Y.height+ee*2))}px`,r.appendChild(G),X||(N=r.querySelector(".reticle-tour-scrim"))==null||N.classList.add("is-clear"),R2(v)){G.classList.add("is-live"),(O=r.querySelector(".reticle-tour-scrim"))==null||O.remove();let ye=t.defaultView;for(let me of O2({left:Y.left-ee,top:Y.top-ee,width:Y.width+ee*2,height:Y.height+ee*2},(k=ye==null?void 0:ye.innerWidth)!=null?k:t.documentElement.clientWidth,(j=ye==null?void 0:ye.innerHeight)!=null?j:t.documentElement.clientHeight)){let nt=t.createElement("div");nt.className="reticle-tour-blocker",nt.style.left=`${String(Math.round(me.left))}px`,nt.style.top=`${String(Math.round(me.top))}px`,nt.style.width=`${String(Math.round(me.width))}px`,nt.style.height=`${String(Math.round(me.height))}px`,r.appendChild(nt)}}}}},h=v=>{var G,ee;let N=o[i],O=Number(v.getAttribute(Gp)),k=(G=N==null?void 0:N.prompts)==null?void 0:G[O];if(k===void 0)return;let j=(ye,me)=>{var nt;v.textContent=ye,v.classList.add(me),(nt=t.defaultView)==null||nt.setTimeout(()=>{v.textContent=qx,v.classList.remove(me)},N2)},Y=ye=>{var nt;if(ye){j(w2,"is-done");return}let me=r.querySelector(`.reticle-tour-prompt[${Gp}="${String(O)}"] .reticle-tour-prompt-text`);me!==null&&((nt=e.select)==null||nt.call(e,me)),j(v2,"is-manual")},X=(ee=e.copy)==null?void 0:ee.call(e,k.text);if(X===void 0){Y(!1);return}if(typeof X=="boolean"){Y(X);return}X.then(Y).catch(()=>{Y(!1)})};r.addEventListener("click",v=>{let N=v.target;if(!(N instanceof Element))return;let O=N.closest(`[${_i}]`);if(O===null)return;let k=O.getAttribute(_i);if(k===null)return;if(v.preventDefault(),v.stopPropagation(),k==="skip"||k==="done"){d();return}if(k==="copy"){h(O);return}let j=Qx(i,k==="back"?-1:1);j!==i&&(i=j,m())});let E=v=>{if(!s||mh(t))return;let N=v.key==="ArrowRight"?1:v.key==="ArrowLeft"?-1:0;if(v.key==="Escape"){v.preventDefault(),d();return}if(N===0)return;let O=Qx(i,N);O!==i&&(v.preventDefault(),i=O,m())};t.addEventListener("keydown",E),a=()=>{t.removeEventListener("keydown",E)},m(),t.body.appendChild(r);let _=t.querySelector("[data-reticle-overlay]");if(_!==null){let v=new MutationObserver(f);v.observe(_,{attributes:!0,attributeFilter:["data-reticle-mode"]}),l=()=>v.disconnect(),f()}return{destroy:d,isOpen:()=>s}}function SW(){try{return window.localStorage}catch{return}}var hW,mW,$2,tA,P2=y(()=>{"use strict";L2();Yx();M();lt();co();hW=["main","#root","#app"],mW=["[data-reticle-hud]","[data-reticle-chat-panel]"];$2={[tt.HUD_CHAT]:"[data-reticle-chat-toggle]",[tt.HUD_FLOWS]:'[data-reticle-chat-view-btn="flows"]',[tt.HUD_ANNOTATE]:'[data-reticle-chat-view-btn="annotations"]',[tt.HUD_IMPACT]:"[data-reticle-chat-impact]",[tt.HUD_SETTINGS]:"[data-reticle-settings-btn]"};tA=e=>`${Eh}${e}`});var kW={};Wa(kW,{Annotator:()=>ua,RefRegistry:()=>ed,Reticle:()=>lu,SESSION_AUTO:()=>Uu,adapterNames:()=>pd,buildSnapshot:()=>Ch,canvasChartData:()=>EC,commitAndSignal:()=>s5,createReticleEmitter:()=>i5,describe:()=>uo,elementHasHoverHandlers:()=>Nh,executeAction:()=>vd,executeSequence:()=>rm,getAccessibleName:()=>Ne,getCapabilities:()=>Bi,getRole:()=>ke,getStates:()=>Yo,hasCapabilities:()=>Ph,identifyComponent:()=>lr,inspectChart:()=>Th,installAnnotator:()=>f1,isVisible:()=>ct,jotaiStore:()=>q2,markAdapterSource:()=>$h,matchQuery:()=>Ed,mobxStore:()=>e5,piniaStore:()=>r5,pushStore:()=>o5,readComponentState:()=>vh,readStores:()=>fL,readStoresWithTruncation:()=>md,recoilStore:()=>t5,refs:()=>re,registerAdapter:()=>LC,registerCapabilities:()=>Oc,registerReticleDomain:()=>a5,registerStore:()=>uL,resolveMarkAnchor:()=>Md,reticle:()=>uu,runQuery:()=>Gh,setCapabilitiesListener:()=>Dh,setIgnoreSelectors:()=>oC,sourceOwner:()=>mL,storeNames:()=>Fi,svelteStore:()=>n5,tanstackQueryStore:()=>X2,trackShortTimers:()=>$W,unregisterStore:()=>dL,valtioStore:()=>Q2,xstateStore:()=>J2});lt();M();Vo();function sC(e,t){t(Iu,{delta:1});let n=()=>{t(Iu,{delta:-1})};return e.then(n,n),e}var o4=1e3;function aC(e,t=o4){let n=$e(window,"setTimeout"),r=$e(window,"clearTimeout"),o=n.bind(window),i=r.bind(window),s=new Set,a=l=>{s.delete(l)&&e(Iu,{delta:-1})};return window.setTimeout=((l,u=0,...d)=>{if(typeof l!="function"||u>t)return Reflect.apply(n,window,[l,u,...d]);e(Iu,{delta:1});let f=o(()=>{a(f),l(...d)},u);return s.add(f),f}),window.clearTimeout=(l=>{l!==void 0&&a(l),i(l)}),()=>{window.setTimeout=n,window.clearTimeout=r}}M();function oe(e){try{e()}catch{}}function Zt(e){try{return e()}catch{return}}Vo();M();function i4(){return{pathname:location.pathname,search:location.search,hash:location.hash,href:location.href}}var cC=[];function lC(e){cC=e.map(t=>({pattern:t,parts:t.split("/").filter(Boolean)}))}function s4(){var t,n;let e=(n=(t=globalThis.next)==null?void 0:t.router)==null?void 0:n.pathname;if(!(typeof e!="string"||!e.startsWith("/")))return e.replace(/\[\.\.\.[^\]]+\]/g,"*").replace(/\[([^\]]+)\]/g,":$1")}function a4(e){var r;let t=e.split("/").filter(Boolean),n;for(let{pattern:o,parts:i}of cC){let s=i.at(-1)==="*",a=s?i.slice(0,-1):i;if((s?t.length<a.length:t.length!==a.length)||!a.every((u,d)=>u.startsWith(":")||u===t[d]))continue;let l=i.filter(u=>u.startsWith(":")||u==="*").length;(n===void 0||l<n.params)&&(n={pattern:o,params:l})}return(r=n==null?void 0:n.pattern)!=null?r:s4()}function uC(e){let t=new AbortController,n=$e(history,"pushState"),r=$e(history,"replaceState"),o=n.bind(history),i=r.bind(history),s=location.href,a=(f,m)=>{oe(()=>{let h=i4();if(h.href===f)return;s=h.href;let E=a4(h.pathname);e(w.ROUTE_CHANGE,{from:ar(f),to:ar(h.href),pathname:h.pathname,...E===void 0?{}:{pattern:E},search:ar(h.search),hash:ar(h.hash),[d_]:m})})},l=(f,m,h)=>{let E=location.href;o(f,m,h!=null?h:null),a(E,Ku.PUSH)},u=(f,m,h)=>{let E=location.href;i(f,m,h!=null?h:null),a(E,Ku.REPLACE)};history.pushState=l,history.replaceState=u;let d=()=>{a(s,Ku.POP)};return window.addEventListener("popstate",d,{signal:t.signal}),window.addEventListener("hashchange",d,{signal:t.signal}),()=>{history.pushState===l&&(history.pushState=n),history.replaceState===u&&(history.replaceState=r),t.abort()}}M();At();dn();var N4=new Set(["submit","button","reset","image"]);function R4(e){return at(e)&&e.isContentEditable||e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!N4.has(e.type.toLowerCase()):!1}var O4="A";function TC(e){if(O4!==e.tagName)return;let t=e.getAttribute("href");return t===null||eI(t)?void 0:t}function xC(e){var o,i,s,a,l,u;let t=TC(e);if(t!==void 0)return t;let n=e.closest("form"),r=R4(e)?["",""]:[(o=e.textContent)!=null?o:"",(i=e.getAttribute("value"))!=null?i:""];return[Gu(Ne(e)),Gu(r.join(" ")),Gu((s=e.getAttribute("title"))!=null?s:""),Gu((a=e.getAttribute("aria-label"))!=null?a:""),(l=e.getAttribute("href"))!=null?l:"",(u=n==null?void 0:n.getAttribute("action"))!=null?u:""].join(" ")}var I4='button[type="submit"], input[type="submit"], button:not([type]):not([type=""])';function AC(e){var n;let t=(n=e.closest("form"))==null?void 0:n.querySelector(I4);return at(t)?t:null}function wh(e){let t=TC(e);return t!==void 0?tI(t):QO(xC(e),ke(e))}var ld;function j_(e){ld=e}function yC(e){if(ld!==void 0)for(let t of e){if(t===null)continue;let n=oI(xC(t),ke(t));if(n!==void 0&&!ld.includes(n))throw new Error(i_(n))}}function wC(e){var n,r,o,i,s;if(ld===void 0||ld.includes(_t.PAY))return;let t={autocomplete:(n=e.getAttribute("autocomplete"))!=null?n:void 0,name:(r=e.getAttribute("name"))!=null?r:void 0,id:(o=e.getAttribute("id"))!=null?o:void 0,inputMode:(i=e.getAttribute("inputmode"))!=null?i:void 0,label:`${Ne(e)} ${(s=e.getAttribute("placeholder"))!=null?s:""}`};if(rI(t))throw new Error(i_(_t.PAY))}M();Ot();var vC=(e,t)=>Array.from(e.querySelectorAll(t)).some(n=>n.closest(Bu)===null);function NC(e){return[...vC(e,`[${pc}]`)?[Fs.SOURCE]:[],...vC(e,Vn())?[Fs.TESTID]:[]]}function RC(e){return e.buildPlugin||0<e.adapters.length||e.markers.includes(Fs.SOURCE)?[]:[Jf]}M();co();var OC=Tt.SESSION;function IC(e,t,n){var a;let r=()=>{try{let l=t==null?void 0:t.getItem(OC);return l!=null&&l.length>0?l:void 0}catch{return}},o=l=>{try{t==null||t.setItem(OC,l)}catch{}},i=e!==void 0&&e.length>0?e:void 0,s=(a=i!=null?i:r())!=null?a:n();return o(s),s}xt();var C4="vite:afterUpdate",L4=3,$4="no longer resolves to an element",k4="the code changed underneath it";function K_(e){return e!==null&&typeof e=="object"?e:void 0}function z4(e){var t;return typeof((t=K_(e))==null?void 0:t.on)=="function"}function D4(e){var r,o;let t=(r=K_(e))==null?void 0:r.updates;if(!Array.isArray(t))return[];let n=[];for(let i of t){let s=(o=K_(i))==null?void 0:o.path;typeof s=="string"&&s.length>0&&!n.includes(s)&&n.push(s)}return n}var ud,yc,wc,Z_=class{constructor(t){x(this,ud,0);x(this,yc,[]);x(this,wc);g(this,wc,t)}get current(){return c(this,ud)}observe(t){z4(t)&&t.on(C4,n=>this.applied(D4(n)))}applied(t){g(this,ud,c(this,ud)+1),g(this,yc,t.slice(0,L4)),c(this,wc).markEdited()}staleRefMessage(t){let n=`ref '${js(t)}' ${$4}`;if(!c(this,wc).mintedBeforeLastEdit(t))return n;let r=c(this,yc).length===0?"the page hot-updated":`${c(this,yc).join(", ")} hot-updated`;return`${n} \u2014 ${r} after this ref was taken, so ${k4} and the framework replaced the node. Query again for a fresh ref: this is your own edit landing, not the app failing.`}};ud=new WeakMap,yc=new WeakMap,wc=new WeakMap;var dd=new Z_(re);M();M();jo();dn();At();Ko();xt();Ot();Xo();xt();At();lt();var Y_={CLIPPED:"clipped",OVERLAP:"overlap",CONTRAST:"contrast"},X_=20,P4=300,M4=60,$C=1,kC=.25,U4=4.5,H4=3,F4=24,B4=18.66,G4=700,V4='button, a[href], input:not([type="hidden"]), select, textarea, [role="button"], [role="link"], [role="tab"], [role="menuitem"]',zC=/rect\(\s*0(px)?[\s,]+0(px)?[\s,]+0(px)?[\s,]+0(px)?\s*\)|inset\(\s*50%/,DC=4,PC=e=>{let t=e.getBoundingClientRect();if(t.width<DC||t.height<DC)return null;let n=getComputedStyle(e);return n.visibility==="hidden"||n.display==="none"||n.opacity==="0"||zC.test(n.clip)||zC.test(n.clipPath)?null:t},MC=e=>{var t;return(Ne(e)||((t=e.textContent)!=null?t:"")).replace(/\s+/g," ").trim().slice(0,M4)},j4=e=>[...e.childNodes].filter(t=>Node.TEXT_NODE===t.nodeType).map(t=>{var n;return(n=t.textContent)!=null?n:""}).join("").trim(),UC=new Set(["hidden","clip"]),K4=e=>{let t=getComputedStyle(e),n=e.scrollWidth>e.clientWidth+$C&&UC.has(t.overflowX),r=e.scrollHeight>e.clientHeight+$C&&UC.has(t.overflowY);return t.textOverflow==="ellipsis"||t.getPropertyValue("-webkit-line-clamp")!==""&&t.getPropertyValue("-webkit-line-clamp")!=="none"||!n&&!r?null:n?{detail:`${String(e.scrollWidth)}px of text in a ${String(e.clientWidth)}px box, cut with no ellipsis`,value:e.scrollWidth,bound:e.clientWidth}:{detail:`${String(e.scrollHeight)}px of text in a ${String(e.clientHeight)}px box, cut with no line clamp`,value:e.scrollHeight,bound:e.clientHeight}},Z4=/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+([\d.]+%?))?\s*\)/,BC=e=>{let t=Z4.exec(e);if(t===null)return null;let n=t[4],r=1;return n!==void 0&&(r=n.endsWith("%")?Number(n.slice(0,-1))/100:Number(n)),[Number(t[1]),Number(t[2]),Number(t[3]),r]},HC=([e,t,n])=>{let r=o=>{let i=o/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)},GC=(e,t)=>{let n=e[3];return[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n),1]},W4=e=>{let t=[];for(let n=e;n!==null;n=n.parentElement){let r=getComputedStyle(n);if(r.backgroundImage!=="none"&&r.backgroundImage!=="")return null;let o=BC(r.backgroundColor);if(o!==null&&o[3]>0&&(t.push(o),o[3]===1))break}return t.reduceRight((n,r)=>GC(r,n),[255,255,255,1])},Y4=e=>{let t=getComputedStyle(e),n=BC(t.color),r=W4(e);if(n===null||r===null)return null;let o=GC(n,r),[i,s]=[HC(o),HC(r)].sort((d,f)=>f-d),a=Number.parseFloat(t.fontSize),l=Number.parseInt(t.fontWeight,10),u=a>=F4||a>=B4&&l>=G4;return{ratio:(i+.05)/(s+.05),min:u?H4:U4}},VC=(e,t,...n)=>{if(typeof document.elementFromPoint!="function")return!0;let r=document.elementFromPoint(e,t);return r!==null&&n.some(o=>o===r||o.contains(r))},Hi=2,FC=(e,t)=>[[t.left+t.width/2,t.top+t.height/2],[t.left+Hi,t.top+Hi],[t.right-Hi,t.top+Hi],[t.left+Hi,t.bottom-Hi],[t.right-Hi,t.bottom-Hi]].some(([n=0,r=0])=>VC(n,r,e)),X4=(e,t)=>{let n=Math.min(e.right,t.right)-Math.max(e.left,t.left),r=Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top);return n<=0||r<=0?0:n*r/Math.min(e.width*e.height,t.width*t.height)};function jC(e=document.body){let t=[],n=(o,i,s)=>{t.length<X_&&t.push({kind:o,ref:re.refFor(i),what:MC(i),...s})};for(let o of e.querySelectorAll("*")){if(t.length>=X_)break;if(Ut(o)||j4(o)==="")continue;let i=PC(o);if(i===null||!VC(i.left+i.width/2,i.top+i.height/2,o))continue;let s=K4(o);s!==null&&n(Y_.CLIPPED,o,s);let a=Y4(o);a!==null&&a.ratio<a.min&&n(Y_.CONTRAST,o,{detail:`contrast ${a.ratio.toFixed(2)}:1, under ${String(a.min)}:1`,value:Math.round(a.ratio*100)/100,bound:a.min})}let r=[...e.querySelectorAll(V4)].filter(o=>!Ut(o)).slice(0,P4).flatMap(o=>{let i=PC(o);return i===null?[]:[{el:o,rect:i}]});for(let[o,i]of r.entries())for(let s of r.slice(o+1)){if(t.length>=X_)return t;if(i.el.contains(s.el)||s.el.contains(i.el))continue;let a=X4(i.rect,s.rect);a>=kC&&FC(i.el,i.rect)&&FC(s.el,s.rect)&&n(Y_.OVERLAP,i.el,{detail:`drawn over "${MC(s.el)}" (${re.refFor(s.el)})`,value:Math.round(a*100)/100,bound:kC})}return t}fd();lt();var Nc=new Set(["button","link","textbox","searchbox","checkbox","radio","combobox","listbox","slider","spinbutton","switch","tab","menuitem","option"]),q4=new Set(["script","style","noscript","template","head","meta","link"]),J4=new Set(["alert","status"]);function WC(e,t){if(J4.has(t))return!0;let n=e.getAttribute("aria-live");return n!==null&&n!=="off"}var KC=80;function Q4(e){let t=YC(e),n=(t.own?t.text:"").replace(/\s+/g," ").trim();return n.length>KC?`${n.slice(0,KC)}\u2026`:n}function YC(e){var r,o;let t="",n=!1;for(let i of e.childNodes)if(i.nodeType===3)t+=(r=i.textContent)!=null?r:"",n||(n=0<((o=i.textContent)!=null?o:"").trim().length);else if(wn(i)&&qC(i)){let s=YC(i);t+=s.text,n||(n=s.own)}else wn(i)&&XC(i)&&Nc.has(ke(i))&&(t+=Ne(i));return{text:t,own:n}}function XC(e){let t=e.ownerDocument.defaultView,n=e.parentElement;if(t===null||n===null)return!1;let r=t.getComputedStyle(n).display;return r.includes("flex")||r.includes("grid")?!1:t.getComputedStyle(e).display==="inline"}function qC(e){if(QC(e)||!XC(e))return!1;let t=ke(e);return!Nc.has(t)&&!WC(e,t)&&Ne(e).length===0}var ej=50;function JC(e){return e.getAttribute("aria-hidden")==="true"?!0:e instanceof HTMLElement&&e.hidden}function QC(e){return q4.has(e.tagName.toLowerCase())||Ut(e)?!0:JC(e)}function tj(e){let t=Yo(e).filter(n=>n===_e.DISABLED||n===_e.CHECKED||n===_e.EXPANDED||n===_e.PRESSED||n===_e.FOCUSED);return t.length>0?` [${t.join(",")}]`:""}function nj(e,t,n,r,o,i="",s=!1){let a=" ".repeat(t),l=V_(e),u=r,d=u.length>0?` "${u}"`:"",f=Nc.has(n)||u.length>0?` (ref=${re.refFor(e)})`:"",m=l!==void 0&&l.length>0?` [value="${l}"]`:"",h=o.length>0?` [${o}]`:"",E=i.length>0?` [text="${i}"]`:"",_=s?ve(e):null,A=s?lr(e):null,v=_===null?A==null?void 0:A.componentStack[0]:void 0,N=A==null?void 0:A.source,O="";_!==null?O=` [testid=${_}]`:v!==void 0&&(O=` [component=${v}]`);let k=`${O}${N===void 0?"":` [src=${N.file}:${String(N.line)}]`}`;return`${a}- ${n}${d}${f}${m}${E}${h}${tj(e)}${k}`}function rj(e,t){return`${" ".repeat(e)}- text "${t}"`}function oj(e){if(e===null)return"";let t=e.display;if(t==="grid"||t==="inline-grid"){let n=e.gridTemplateColumns;return n!==""&&n!=="none"?`grid-cols:${n}`:"grid"}return""}var eL=e=>e.hasAttribute("data-aria-hidden")&&e.getAttribute("aria-hidden")==="true";function ZC(e,t){for(let n of e){if(t.unread.length>=ej){t.unreadOverflow=!0;return}t.unread.push(re.refFor(n))}}function ij(e){var r,o;let t=[...e.children],n=(r=e.shadowRoot)!=null?r:Vs(e);if(n!==null&&t.push(...n.children),ph(e))try{let i=(o=e.contentDocument)==null?void 0:o.body;i!=null&&t.push(...i.children)}catch{}return t}function q_(e,t,n,r){if(!(n.throughOverlay===!0&&eL(e)&&!Ut(e)&&!(e instanceof HTMLElement&&e.hidden))&&QC(e)){JC(e)&&(n.hiddenSkipped+=1);return}let i=e.ownerDocument.defaultView,s=i!==null?i.getComputedStyle(e):null;if(s!==null&&s.display==="none"){n.hiddenSkipped+=1;return}if(s!==null&&s.display==="inline"&&!r&&qC(e)){Ih(e,t,n,r);return}let a=ke(e),l=Ne(e),u=Nc.has(a),d=r||WC(e,a),f=n.mode===cc.INTERACTIVE&&!d,m=!f&&l.length===0?Q4(e):"",h=f?"":oj(s),E=u,_=E||a!=="generic"||l.length>0||m.length>0||h.length>0,A=f?E:_;f&&!A&&_&&(n.leanSkipped+=1),A?(n.nodes+=1,n.lines.push(a==="generic"&&m.length>0&&h.length===0?rj(t,m):nj(e,t,a,l,h,m,n.ids===!0)),Ih(e,t+1,n,d)):Ih(e,t,n,d)}function Ih(e,t,n,r=!1){let o=ij(e);if(t>n.maxDepth){o.length>0&&(n.truncated=!0,ZC([e],n));return}for(let i=0;i<o.length;i+=1){if(n.nodes>=n.maxNodes){n.truncated=!0,ZC(o.slice(i),n);return}let s=o[i];s!==void 0&&q_(s,t,n,r)}}function sj(e){let t=e.querySelectorAll('[role="dialog"], dialog[open], [aria-modal="true"]'),n=[];for(let r of t)Rt(r)||ct(r)&&n.push(Ne(r)||"(unnamed dialog)");return n}var aj='[role="dialog"], [role="alertdialog"], dialog[open], [aria-modal="true"]';function cj(e){if(e!==document.body)return;let t=document.body.querySelectorAll('[role="dialog"], dialog[open], [aria-modal="true"]'),n,r;for(let s of t)if(!Rt(s)){if(ct(s)){n=s;break}r!=null||(r=s)}if(n!=null||(n=r),n===void 0)return;let o=n,i=Array.from(document.body.children).filter(s=>!s.contains(o));if(i.length!==0&&i.every(s=>s.getAttribute("aria-hidden")==="true"))return"the rest of the page is aria-hidden behind an open overlay (a focus-trap modal), so this snapshot shows only the overlay. If it will not close its cleanup may be stuck on a throttled tab: dismiss the overlay, or snapshot with { scope } inside it."}function lj(e){let t=sj(e),n=cj(e);return{route:Oh(),title:document.title,...t.length>0?{visibleDialogs:t}:{},...n!==void 0?{overlayHidingPage:n}:{}}}function Ch(e={}){var l,u,d,f;let t=(l=e.mode)!=null?l:cc.FULL,n=(u=e.scope)==null?void 0:u.trim(),r=document.body;if(n!==void 0&&n!==""&&(r=re.resolve(n),r===null))try{r=document.querySelector(n)}catch{}let o=r===null,i=r!=null?r:document.body,s=lj(i);if(o)return{tree:"",status:s,nodes:0,truncated:!1,scopeMissing:!0};if(t===cc.STATUS)return{tree:"",status:s,nodes:0,truncated:!1};let a={lines:[],nodes:0,leanSkipped:0,hiddenSkipped:0,truncated:!1,mode:t,maxNodes:(d=e.maxNodes)!=null?d:400,maxDepth:(f=e.maxDepth)!=null?f:20,unread:[],unreadOverflow:!1,...e.ids===!0?{ids:!0}:{}};if(e.includeRoot===!0?q_(i,0,a,!1):Ih(i,0,a),a.nodes===0&&i===document.body){a.throughOverlay=!0;for(let m of Array.from(i.children))eL(m)&&m.querySelector(aj)!==null&&q_(m,0,a,!1);a.throughOverlay=!1}return{tree:a.lines.join(`
1825
- `),status:s,nodes:a.nodes,truncated:a.truncated,...a.nodes===0?{domElements:i.querySelectorAll("*").length}:{},...a.leanSkipped>0?{leanSkipped:a.leanSkipped}:{},...a.hiddenSkipped>0?{hiddenSkipped:a.hiddenSkipped}:{},...a.unread.length>0?{unread:a.unread}:{},...a.unreadOverflow?{unreadOverflow:!0}:{},...e.audit===!0?{audit:jC(i)}:{}}}C_();M();dn();jo();At();Ko();lt();cr();Gi();xt();Ot();Ot();function SL(e){let t=Ej(e);if(t===void 0)return;let n=e.ownerDocument.querySelectorAll(t);return n.length===1&&n[0]===e?t:void 0}function Ej(e){let t=ve(e);if(t!==null&&0<t.length){let r=t.replace(/\\/g,"\\\\").replace(/"/g,'\\"');return`[${Mi()}="${r}"]`}let n=e.getAttribute("id");if(n!==null&&/^[A-Za-z_][A-Za-z0-9_-]*$/.test(n))return`#${n}`}jo();function Mh(e){return e.replace(/\s+/g," ").trim().normalize("NFC")}var bj=/[\u2018\u2019]/g,_j=/[\u201c\u201d]/g,Sj=/[\u2013\u2014]/g;function Uh(e){return e.replace(bj,"'").replace(_j,'"').replace(Sj,"-")}function ur(e){return Uh(Mh(e))}function Vi(e,t){return ur(e).toLowerCase().includes(ur(t).toLowerCase())}function Ic(e,t,n){return t.matchCase!==!0?Vi(e,n):ur(e).includes(ur(n))}function wL(e,t){return ur(e)===ur(t)}var iS={uppercase:e=>e.toUpperCase(),lowercase:e=>e.toLowerCase(),capitalize:e=>e.replace(/(^|\s)(\p{L})/gu,(t,n,r)=>n+r.toUpperCase())};function vL(e,t){var r,o,i;let n=(o=(r=e.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(e).textTransform)!=null?o:"";return(i=iS[n])==null?void 0:i.call(iS,t)}var Tj=1.5,xj=.05,Aj=[255,255,255,1];function TL(e){let t=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+([\d.]+))?\s*\)$/.exec(e);if(t!==null)return[Number(t[1]),Number(t[2]),Number(t[3]),t[4]===void 0?1:Number(t[4])]}function xL(e,t){let n=e[3],r=(o,i)=>o*n+i*(1-n);return[r(e[0],t[0]),r(e[1],t[1]),r(e[2],t[2]),1]}function sS(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function AL(e){return .2126*sS(e[0])+.7152*sS(e[1])+.0722*sS(e[2])}function yj(e,t){let n=AL(e),r=AL(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function yL(e){return`rgb(${[e[0],e[1],e[2]].map(t=>String(Math.round(t))).join(", ")})`}function wj(e){let t=Number.parseFloat(e.getPropertyValue("-webkit-text-stroke-width"));return/\dpx/.test(e.textShadow)||t>0}function vj(e){let t=e.ownerDocument.defaultView;if(t===null)return;let n=t.getComputedStyle(e),r=TL(n.color);if(r===void 0||wj(n))return;let o=1,i=[],s=!1;for(let d=e;d!==null;d=ki(d)){let f=t.getComputedStyle(d),m=Number.parseFloat(f.opacity);if(o*=Number.isNaN(m)?1:m,s)continue;if(f.backgroundImage!==""&&f.backgroundImage!=="none")return;let h=TL(f.backgroundColor);if(h===void 0)return;h[3]>0&&i.push(h),s=h[3]>=1}if(o<xj)return`the composed opacity is ${o.toFixed(2)}`;let a=i.reduceRight((d,f)=>xL(f,d),Aj),l=xL(r,a),u=yj(l,a);if(!(u>=Tj))return`text ${yL(l)} on ${yL(a)}: contrast ${u.toFixed(2)}:1`}function NL(e){let t=e.map(vj);return t.length>0&&t.every(n=>n!==void 0)?t[0]:void 0}fd();M();dn();At();Ko();Xo();Ot();var zL=pc,Nj=2e3,Rj=()=>`[${zL}], ${Vn()}, button, a, input, select, textarea, [role]`;function jn(e){return[...Node.ELEMENT_NODE===e.nodeType?[e]:[],...Array.from(e.querySelectorAll("*"))]}var Oj=["script","style","template","noscript"];function aS(e){return Oj.includes(e.tagName.toLowerCase())}function Ij(e){if(He(e)){let t=e.type.toLowerCase();if(t==="submit"||t==="button"||t==="reset")return e.value}return aS(e)?"":Array.from(e.childNodes).filter(t=>Node.TEXT_NODE===t.nodeType).map(t=>{var n;return(n=t.textContent)!=null?n:""}).join("")}function Cj(e){if(He(e)||vn(e)||Cr(e))return!0;let t=e.tagName.toLowerCase();return t==="button"||t==="meter"||t==="output"||t==="progress"||e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")}function Lj(e,t){let n=`${t.file}:${t.line}:`.replace(/\\/g,"\\\\").replace(/"/g,'\\"');try{return Array.from(e.querySelectorAll(`[${zL}^="${n}"]`))}catch{return[]}}function $j(e,t){let n=[],r=0;for(let o of Array.from(e.querySelectorAll(Rj()))){if(r>=Nj)break;r+=1;let i=lr(o);i!==null&&i.componentStack[0]===t&&n.push(o)}return n}function RL(e,t){if(t.source!==void 0){let n=Lj(e,t.source);if(n.length>0)return n}return t.component!==void 0&&t.component.length>0?$j(e,t.component):[]}function kj(e,t){return e===t||t==="textbox"&&e==="searchbox"}var zj="option",Dj="option",Pj="select",OL=1;function cS(e){if(Dj!==e.localName)return!1;let t=e.closest(Pj);return Cr(t)?ct(t)?Mj(t):!0:!1}function Mj(e){let t=e.getBoundingClientRect();return t.width>0&&t.height>0&&t.width<=OL&&t.height<=OL}function Uj(e,t){if(zj!==e)return t;let n=t.filter(r=>!cS(r));return n.length===t.length?t:n}function Hh(e,t,n){let r=jn(e).filter(o=>kj(ke(o),t)&&(n===void 0||wL(Ne(o),n)));return Uj(t,r)}function IL(e,t,n){return jn(e).filter(r=>{let o=Ij(r);if(Ic(o,n,t))return!0;if(n.matchCase!==!0||!Vi(o,t))return!1;let i=vL(r,o);return i!==void 0&&Ic(i,n,t)})}function CL(e,t){let n=ur(t).toLowerCase(),r=[],o=[];for(let i of jn(e)){if(!Cj(i))continue;let s=ur(Ne(i)).toLowerCase();s.includes(n)&&(s===n?r:o).push(i)}return r.length>0?r:o}function LL(e,t){return jn(e).filter(n=>{let r=n.getAttribute("placeholder");return r!==null&&Vi(r,t)})}function $L(e,t){return jn(e).filter(n=>ve(n)===t)}function kL(e,t){return jn(e).filter(n=>{let r=n.getAttribute("alt");return r!==null&&Vi(r,t)})}function lS(e,t){var o;let n=t.by,r=t.value;if(n!==void 0&&r!==void 0)switch(n){case ot.ROLE:return Hh(e,r,t.name);case ot.TEXT:return IL(e,r,t);case ot.LABEL:return CL(e,r);case ot.PLACEHOLDER:return LL(e,r);case ot.TESTID:return $L(e,r);case ot.ALT:return kL(e,r);case ot.COMPONENT:return RL(e,{...t,component:(o=t.component)!=null?o:r});default:throw new Error(`unsupported query strategy '${String(n)}' - use one of: ${Object.values(ot).join(", ")}`)}return t.component!==void 0||t.source!==void 0?RL(e,t):t.role!==void 0?Hh(e,t.role,t.name):t.text!==void 0?IL(e,t.text,t):t.label!==void 0?CL(e,t.label):t.placeholder!==void 0?LL(e,t.placeholder):t.testid!==void 0?$L(e,t.testid):t.alt!==void 0?kL(e,t.alt):[]}var Hj=12;function gd(e,t){var i;if(aS(e)||Qu(e))return"";let n=ct(e,t),r=Fj(e),o="";for(let s of Array.from(e.childNodes))if(Node.TEXT_NODE===s.nodeType&&n)o+=(i=s.textContent)!=null?i:"";else if(wn(s)){let a=gd(s,t);o+=r||Bj(s)?` ${a} `:a}return o}function Fj(e){var n,r;let t=(r=(n=e.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(e).display)!=null?r:"";return t.includes("flex")||t.includes("grid")}function Bj(e){var n,r;let t=(r=(n=e.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(e).display)!=null?r:"inline";return!t.startsWith("inline")&&t!=="contents"}function Bh(e){if(e===void 0)return{container:document.body,scopeMissing:!1};let t=re.resolve(e);if(zi(t))return{container:t,scopeMissing:!1};try{let n=document.querySelector(e);if(zi(n))return{container:n,scopeMissing:!1}}catch{}return{container:null,scopeMissing:!0}}function Gj(e){var t,n;try{return(n=(t=e.contentDocument)==null?void 0:t.body)!=null?n:null}catch{return null}}var Vj=3;function jj(e){let t=[],n=(r,o)=>{var i;for(let s of r.querySelectorAll("*")){let a=(i=s.shadowRoot)!=null?i:Vs(s);if(a!==null){t.push(a),n(a,o);continue}if(o>=Vj||!ph(s))continue;let l=Gj(s);l!==null&&(t.push(l),n(l,o+1))}};return n(e,0),t}function PL(e){let{container:t,scopeMissing:n}=Bh(e.scope);if(t===null)return{candidates:[],scopeMissing:!0};if(e.self===!0)return e.scope===void 0?{candidates:[],scopeMissing:n}:e.text!==void 0&&!Ic(gd(t,new Map),e,e.text)?{candidates:[],scopeMissing:n}:{candidates:Ut(t)?[]:[t],scopeMissing:n};let r=new Set,o=[],i=Fh(e)===void 0?Ut:Qu,s=a=>{for(let l of a)r.has(l)||i(l)||(r.add(l),o.push(l))};s(lS(t,e));for(let a of jj(t))s(lS(a,e));return{candidates:o,scopeMissing:n}}var Kj=512,Zj=12;function Wj(e,t){let n={};for(let r of t.slice(0,Zj)){let o=e.getAttribute(r);o!==null&&(n[r]=bt(r)?we:o.slice(0,Kj))}return Object.keys(n).length>0?n:void 0}function Yj(e,t,n){return _e.IN_VIEWPORT===t?z_(e,n):Yo(e,ct(e,n)).includes(t)}var DL=Z.MAX_COLLECTION_ITEMS;function Ed(e,t,n=DL,r=!0,o=!0){let i=PL(e),s=i.scopeMissing,a=r&&e6(e)?Fh(e):void 0,l=i.candidates.length===0?Bh(e.scope).container:null,u=l===null||a===void 0?void 0:ML(l,a,e),d=u===void 0?i.candidates:[u],f=new Map,m=t===void 0?d:d.filter(O=>Yj(O,t,f)),h=e.attrs,E=m.slice(0,Math.max(0,Math.min(n,DL))),_=E.length>1||_e.IN_VIEWPORT===t,A=E.map(O=>{let k=uo(O,f);if(_&&z_(O,f)&&!k.states.includes(_e.IN_VIEWPORT)&&(k={...k,states:[...k.states,_e.IN_VIEWPORT]}),h===void 0||h.length===0)return k;let j=Wj(O,h);return j===void 0?k:{...k,attrs:j}}),v=iC(m),N=Fh(e)===void 0?void 0:NL(E);return{matched:m.length>0,count:m.length,elements:A,...s?{scopeMissing:!0}:{},...v===void 0?{}:{coveredBy:v},...N===void 0?{}:{unreadable:N},...m.length===0?{hint:UL(e,t,o)}:{}}}function Xj(e){let t=e.getAttribute("aria-labelledby");if(t===null)return;let n=t.split(/\s+/).map(r=>{var o,i,s;return r.length>0&&(s=(i=(o=e.ownerDocument.getElementById(r))==null?void 0:o.textContent)==null?void 0:i.trim())!=null?s:""}).filter(r=>r.length>0).join(" ");return n.length>0?n:void 0}function qj(e){var o,i,s,a,l,u,d,f;let t=(o=Bh(e.scope).container)!=null?o:document.body,n=[],r=["list","listbox","grid","table","tree","treegrid","dialog","alertdialog","navigation","main","banner","form","search","menu","menubar","tablist"];for(let m of r){let h=Hh(t,m,void 0);for(let E of h){if(Rt(E))continue;let _=(a=(s=(i=E.getAttribute("aria-label"))!=null?i:Xj(E))!=null?s:ve(E))!=null?a:void 0,A=E.querySelectorAll("[role]"),v=[];for(let O of Array.from(A)){if(v.length>=3)break;let k=O.getAttribute("role"),j=(f=(d=(l=O.getAttribute("aria-label"))!=null?l:ve(O))!=null?d:(u=O.textContent)==null?void 0:u.trim().slice(0,40))!=null?f:"";k!==null&&j.length>0&&v.push(`${k}[${j}]`)}let N={role:m,childCount:A.length,sample:v};if(_!==void 0&&_.length>0&&(N.name=_),n.push(N),n.length>=10)return n}}return n}function ML(e,t,n){let r,o=-1,i=new Map;for(let s of jn(e)){if(Ut(s)||!Ic(gd(s,i),n,t))continue;let a=0;for(let l=s.parentElement;l!==null;l=l.parentElement)a++;a>o&&(r=s,o=a)}return r}function Jj(e,t){let n=ur(t).toLowerCase();if(n.length===0)return;let r=new Map;for(let o of jn(e)){if(Ut(o))continue;let i=Mh(gd(o,r)),s=Uh(i).toLowerCase().indexOf(n);if(s!==-1)return i.slice(s,s+n.length)}}var Qj=new Set(["text","matchCase","scope","by","value"]);function e6(e){return(e.by===void 0||ot.TEXT===e.by)&&Object.keys(e).every(t=>Qj.has(t))}function Fh(e){return e.text!==void 0?e.text:ot.TEXT===e.by?e.value:void 0}var t6=5;function n6(e,t){let n=ot.ROLE===t.by?t.value:t.role,r=t.name;if(n===void 0||r===void 0||r.length===0)return[];let o=ur(r).toLowerCase();if(o.length===0)return[];let i=[];for(let s of jn(e)){if(Ut(s)||ke(s)!==n)continue;let a=Mh(Ne(s));if(a.length===0)continue;let l=Uh(a).toLowerCase();if(!(!l.includes(o)&&!o.includes(l))&&(i.includes(a)||i.push(a),i.length>=t6))break}return i}function r6(e,t){if(ot.TESTID!==t.by||t.value===void 0)return;let n=Mi();for(let r of[Ps,...bO]){if(r===n)continue;if(jn(e).some(i=>i.getAttribute(r)===t.value&&!Ut(i)))return r}}function o6(e,t){var o;let n=!1;for(let i of jn(e))if(!Ut(i)&&K0(i)&&Vi((o=i.textContent)!=null?o:"",t)){n=!0;break}if(!n)return!1;let r=new Map;for(let i of jn(e))if(!Ut(i)&&Z0(i)&&Vi(gd(i,r),t))return!1;return!0}function UL(e,t,n=!0){var E;let r=(E=Bh(e.scope).container)!=null?E:document.body,o=r.querySelectorAll(Vn()),i=[],s=new Set;for(let _ of Array.from(o)){if(Ut(_))continue;let A=ve(_);A===null||A.length===0||s.has(A)||(s.add(A),i.length<Hj&&i.push(A))}let a=_L(),l=i.some(_=>a.includes(_)),d={route:Oh(!1),presentTestids:i,...s.size>i.length?{presentTestidsTotal:s.size}:{},presentRegions:qj(e),knownEmptyState:l},f=Fh(e);if(f!==void 0){let _=ML(r,f,e);if(_!==void 0){let A=uo(_),v=SL(_);d.splitText=v===void 0?A:{...A,selector:v}}else if(e.matchCase===!0){let A=Jj(r,f);A!==void 0&&(d.caseMiss=A)}}n&&f!==void 0&&d.splitText===void 0&&(t===void 0||_e.VISIBLE===t||_e.IN_VIEWPORT===t)&&o6(r,f)&&(d.ariaHiddenMatch=!0);let m=n6(r,e);m.length>0&&(d.nameNearMiss=m);let h=r6(r,e);return h!==void 0&&(d.testidFoundUnder=h),d}function uS(e){return PL(e).candidates}function Gh(e,t){let n=Ed(e,void 0,t,!1),r=n.scopeMissing===!0?{scopeMissing:!0}:{};return n.elements.length===0?{elements:n.elements,count:n.count,hint:UL(e),...r}:{elements:n.elements,count:n.count,...r}}M();lt();Cc();xt();Vo();dn();var i6=/\b(current|new)-password\b/,s6=/Chrome|Chromium|Edg\/|Firefox|Gecko\//;function pS(e,t=navigator.userAgent){var r,o,i;return!(e instanceof HTMLInputElement)||!(e.type.toLowerCase()==="password"||i6.test((r=e.getAttribute("autocomplete"))!=null?r:""))||s6.test(t)?!1:600<=Number((i=(o=/AppleWebKit\/(\d+)/.exec(t))==null?void 0:o[1])!=null?i:0)}function jh(e,t){let n=U0(e),r=n===void 0?void 0:v0(n);r!==void 0?r.call(e,t):e.value=t;let o=e.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}));return e.dispatchEvent(new Event("change",{bubbles:!0})),!o}function a6(e){let t=e.getAttribute("contenteditable");if(at(e)&&e.isContentEditable||t!==null&&t!=="false"||e.getAttribute("role")==="textbox")return!0;if(!("editContext"in e))return!1;let n=e;return n.editContext!==null&&n.editContext!==void 0}function fS(e,t){if(a6(e))throw new Error(`cannot ${t} a contenteditable or EditContext editor; use press or an input`)}function hS(e,t){if(e.disabled)throw new Error(`cannot ${t} a disabled <${e.tagName.toLowerCase()}> \u2014 a user could not edit it, so forcing the value would put the app in a state nobody can reach`);if(e.readOnly)throw new Error(`cannot ${t} a readonly <${e.tagName.toLowerCase()}> \u2014 a user could not edit it, so forcing the value would put the app in a state nobody can reach`)}At();Ko();Xo();dn();mt();Ot();M();At();var ZL=160,c6=150,l6="checkbox",u6="radio",bd;function Wh(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement}function YL(e){return e instanceof HTMLInputElement&&(l6===e.type||u6===e.type)}function ES(e){return YL(e)?{value:e.value,checked:e.checked}:{value:e.value}}function d6(e,t){return e.checked!==void 0||t.checked!==void 0?e.checked!==t.checked:e.value!==t.value}function WL(e){return e.length>ZL?`${e.slice(0,ZL)}\u2026`:e}function p6(e){let t=ve(e);if(t!==null&&t.length>0)return t;if(e.name.length>0)return e.name;let n=Ne(e);if(n.length>0)return n;let r=e.getAttribute("id");return r!==null&&r.length>0?r:e.tagName.toLowerCase()}function XL(e,t,n,r){let o=pn(e),i={[Mt.FIELD]:p6(e),[Mt.KIND]:t,[Mt.LENGTH]:n.value.length};return n.checked!==void 0&&(i[Mt.CHECKED]=n.checked),(r==null?void 0:r.checked)!==void 0&&(i[Mt.PREVIOUS_CHECKED]=r.checked),o?(i[Mt.REDACTED]=!0,i):(i[Mt.VALUE]=WL(n.value),r!==void 0&&r.checked===void 0&&(i[Mt.PREVIOUS]=WL(r.value)),i)}function f6(e){return YL(e)?"checked":"value"}function h6(e,t){for(let n=Object.getPrototypeOf(e);n!==null;){let r=Object.getOwnPropertyDescriptor(n,t);if(r!==void 0)return r;n=Object.getPrototypeOf(n)}}function m6(e,t){var u;let n=Object.getOwnPropertyDescriptor(e,t),r=n!=null?n:h6(e,t),o=r===void 0?void 0:Reflect.get(r,"get"),i=r===void 0?void 0:Reflect.get(r,"set"),s=!1;if(!(typeof o=="function"&&typeof i=="function")||(n==null?void 0:n.configurable)===!1)return{stop:()=>{},written:()=>s};Object.defineProperty(e,t,{configurable:!0,enumerable:(u=r==null?void 0:r.enumerable)!=null?u:!1,get(){return Reflect.apply(o,this,[])},set(d){s=!0,Reflect.apply(i,this,[d])}});let l=!1;return{stop:()=>{l||(l=!0,n===void 0?Reflect.deleteProperty(e,t):Object.defineProperty(e,t,n))},written:()=>s}}function qL(e){if(!(!Wh(e)||e instanceof HTMLSelectElement))return{before:ES(e),...m6(e,f6(e))}}function JL(e,t){let n=bd;if(t===void 0||(t.stop(),n===void 0||!Wh(e)||!e.isConnected||!t.written()))return;let r=t.before;if(pn(e)&&r.checked===void 0)return;let o=ES(e);d6(r,o)&&n(w.FIELD_CHANGE,XL(e,Zu.SETTLED,o,r))}function QL(e){let t=new AbortController,{signal:n}=t,r=bd;bd=e;let o=new Map,i=(u,d)=>{e(w.FIELD_CHANGE,XL(u,d,ES(u)))},s=u=>{let d=o.get(u);d!==void 0&&clearTimeout(d),o.delete(u)},a=u=>{let d=u.target;Wh(d)&&(s(d),o.set(d,setTimeout(()=>{o.delete(d),i(d,Zu.INPUT)},c6)))},l=u=>{let d=u.target;Wh(d)&&(s(d),i(d,Zu.CHANGE))};return document.addEventListener("input",a,{signal:n,capture:!0}),document.addEventListener("change",l,{signal:n,capture:!0}),()=>{for(let u of o.values())clearTimeout(u);o.clear(),bd===e&&(bd=r),t.abort()}}lt();At();var bS=200,e$=" | ",g6=3,E6=/\p{L}/u;function b6(e){return E6.test(e)}var _6=3;function S6(e){return e instanceof Element&&e.querySelectorAll("*").length>_6}var Lc,_d,Ki,_S,SS,Yh=class{constructor(){x(this,Ki);x(this,Lc,new Set);x(this,_d,0)}collect(t){for(let n of t){if(T(this,Ki,_S).call(this))return;if(n.type==="characterData"){T(this,Ki,SS).call(this,n.target.textContent,n.target.parentElement);continue}for(let r of n.addedNodes){if(T(this,Ki,_S).call(this))return;if(S6(r))continue;let o=g6===r.nodeType?r.parentElement:T6(r);T(this,Ki,SS).call(this,r.textContent,o)}}}effect(t){let n=[...c(this,Lc)].filter(o=>o!==t);if(n.length===0)return{};let r=n.join(e$);return{appeared:r.length>bS?`${r.slice(0,bS)}\u2026`:r}}};Lc=new WeakMap,_d=new WeakMap,Ki=new WeakSet,_S=function(){return c(this,_d)>bS},SS=function(t,n){if(n!==null&&Qu(n)||n!==null&&pn(n))return;let r=(t!=null?t:"").replace(/\s+/g," ").trim();r.length!==0&&b6(r)&&(c(this,Lc).has(r)||(c(this,Lc).add(r),g(this,_d,c(this,_d)+(r.length+e$.length))))};function T6(e){return e instanceof Element?e:e.parentElement}M();dn();var x6=new Set(["checkbox","switch"]),t$="aria-checked",Xh=e=>{var t;return!He(e)&&x6.has((t=e.getAttribute("role"))!=null?t:"")},n$=e=>e.getAttribute(t$)==="true";function r$(e,t,n){var o;if(n||!Xh(e)||t!==P.CHECK&&t!==P.UNCHECK)return;let r=t===P.CHECK;if(n$(e)!==r)throw new Error(`${t} clicked the ${(o=e.getAttribute("role"))!=null?o:""} but ${t$} is still "${String(!r)}" \u2014 the app did not toggle it`)}function qh(e,t){if(t!==P.CHECK&&t!==P.UNCHECK)return!1;let n=t===P.CHECK;return He(e)?e.checked===n:Xh(e)&&n$(e)===n}M();Cc();mt();dn();var TS=e=>new Promise(t=>ue(t,e));function A6(e,t=""){return typeof e=="string"?e:t}function Qh(e){return Kb(e)}var y6=["metaKey","ctrlKey","shiftKey","altKey"],a$={meta:"metaKey",cmd:"metaKey",command:"metaKey",super:"metaKey",win:"metaKey",control:"ctrlKey",ctrl:"ctrlKey",shift:"shiftKey",alt:"altKey",option:"altKey",opt:"altKey"};function c$(e){let t=e.modifiers,n=Array.isArray(t)?t.map(o=>A6(o).toLowerCase()):[],r={metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1};for(let o of n){let i=a$[o];i!==void 0&&(r[i]=!0)}return r}function o$(e){return a$[e.toLowerCase()]}function Jh(e,t){let n=e.code;return typeof n=="string"&&0<n.length?n:t===" "?"Space":t.length===1?/[a-z]/i.test(t)?`Key${t.toUpperCase()}`:/[0-9]/.test(t)?`Digit${t}`:"":/^[A-Z][A-Za-z0-9]*$/.test(t)&&N6.has(t)?t:""}function em(e,t,n,r,o=!1){if(i$!==t&&t.length!==1)return;let i=new KeyboardEvent("keypress",{key:t,code:n,bubbles:!0,cancelable:!0,repeat:o,...r}),s=i$===t?w6:t.charCodeAt(0);for(let a of v6)Object.defineProperty(i,a,{value:s});ut(()=>e.dispatchEvent(i))}var i$="Enter",w6=13,v6=["keyCode","charCode","which"],N6=new Set(["Enter","Escape","Tab","Backspace","Delete","Home","End","PageUp","PageDown","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Insert","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]),R6="no document to press into";function l$(){let e=document.activeElement;if(at(e)&&document.body!==e)return e;if(at(document.body))return document.body;let t=document.documentElement;if(at(t))return t;throw new Error(R6)}function u$(e,t,n){return e.length===0&&yO(n)&&P.PRESS===t}function d$(e){return Zb(e)}var O6=33,s$=500,I6={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,Escape:27," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Delete:46,Meta:91},C6=/^[a-z0-9]$/i,L6=e=>{var t;return(t=I6[e])!=null?t:C6.test(e)?e.toUpperCase().charCodeAt(0):0};function Sd(e,t){let n=new KeyboardEvent(e,t),r=L6(t.key);for(let o of["keyCode","which"])Object.defineProperty(n,o,{get:()=>r});return n}async function p$(e,t,n,r,o){let i=Date.now();for(o>s$&&await TS(s$);Date.now()-i<o;)ut(()=>e.dispatchEvent(Sd("keydown",{key:t,code:n,bubbles:!0,cancelable:!0,repeat:!0,...r})))&&em(e,t,n,r,!0),await TS(Math.min(O6,Math.max(0,o-(Date.now()-i))))}async function f$(e,t,n,r){let o={...n},i=(d,f)=>{let m=Jh({},f);return ut(()=>e.dispatchEvent(Sd(d,{key:f,code:m,bubbles:!0,cancelable:!0,...o})))},s=new Map;for(let d of y6)o[d]&&s.set(d,1);let a=d=>{var f;s.set(d,((f=s.get(d))!=null?f:0)+1),o[d]=!0},l=d=>{var m;let f=((m=s.get(d))!=null?m:1)-1;s.set(d,f),f<=0&&(o[d]=!1)},u=!1;for(let d of t){let f=o$(d);f!==void 0&&a(f);let m=i("keydown",d);m||(u=!0),m&&em(e,d,Jh({},d),o),xS(e,d,m)}r>0&&await TS(r);for(let d of[...t].reverse()){let f=o$(d);f!==void 0&&l(f),i("keyup",d)}return u}function xS(e,t,n){var r,o;if(!(t!=="Escape"||!n))for(let i=e.closest("dialog");i!==null;i=(o=(r=i.parentElement)==null?void 0:r.closest("dialog"))!=null?o:null){try{if(!i.open||!i.matches(":modal"))continue}catch{return}typeof i.requestClose=="function"?i.requestClose():i.dispatchEvent(new Event("cancel",{cancelable:!0}))&&i.close();return}}Ot();M();At();Xo();lt();var $6="canvas";function h$(e){var o,i,s,a;let t=(i=(o=e.defaultView)==null?void 0:o.innerWidth)!=null?i:0,n=(a=(s=e.defaultView)==null?void 0:s.innerHeight)!=null?a:0,r=0;for(let l of e.querySelectorAll($6)){if(ao(l))continue;let u=l.getBoundingClientRect(),d=u.width>0&&u.height>0,f=u.bottom>0&&u.right>0&&u.top<n&&u.left<t;d&&f&&(r+=1)}return r}function m$(e){var a;let t=(a=ve(e))!=null?a:void 0,n=lr(e),r={};if(t!==void 0){r.testid=t;let l=uS({by:ot.TESTID,value:t}).length;1<l&&(r.testidOf=l)}let o=n==null?void 0:n.componentStack[0];o!==void 0&&(r.component=o),(n==null?void 0:n.source)!==void 0&&(r.source=n.source);let i=ke(e),s=Ne(e);if(i.length>0&&(r.role=i),s.length>0&&(r.name=s),pn(e)&&(r.secret=!0),i.length>0&&s.length>0){let l=uS({by:ot.ROLE,value:i,name:s}),u=l.indexOf(e);1<l.length&&0<=u&&(r.nth=u,r.of=l.length)}return r}var g$=(e,t,n,r,o,i,s)=>{let a={ok:!0,ref:e,action:t,dispatched:!0,settled:r,settleReason:o,effect:n};return i.testid!==void 0&&(a.testid=i.testid),i.testidOf!==void 0&&(a.testidOf=i.testidOf),i.component!==void 0&&(a.component=i.component),i.source!==void 0&&(a.source=i.source),i.role!==void 0&&(a.role=i.role),i.name!==void 0&&(a.name=i.name),i.nth!==void 0&&(a.nth=i.nth),i.of!==void 0&&(a.of=i.of),i.secret!==void 0&&(a.secret=i.secret),s!==void 0&&(a.warning=s),a};xt();Ot();At();lt();var k6=[[.5,.5],[.25,.25],[.75,.25],[.25,.75],[.75,.75]],z6=3;function tm(e,t){var u;if(t.width===0||t.height===0)return null;let n=e.ownerDocument;if(typeof n.elementFromPoint!="function")return null;let r=n,o=d=>ao(d)&&d!==e&&!e.contains(d)&&!d.contains(e),i=(d,f)=>{var h,E,_;return(_=((E=(h=r.elementsFromPoint)==null?void 0:h.call(r,d,f))!=null?E:[n.elementFromPoint(d,f)]).find(A=>A!==null&&!o(A)))!=null?_:null},s=new Map;for(let[d,f]of k6){let m=i(t.left+t.width*d,t.top+t.height*f);m!==null&&(m===e||e.contains(m)||m.contains(e)||s.set(m,((u=s.get(m))!=null?u:0)+1))}let a=null,l=0;for(let[d,f]of s)f>l&&(a=d,l=f);return l>=z6?a:null}mt();Cc();var Td={occluded:!1,occludedBy:null,scrolledIntoView:!1};function Zi(e,t,n={}){return new MouseEvent(t,{...n,view:e.ownerDocument.defaultView})}function nm(e,t,n){let r={...n,view:e.ownerDocument.defaultView};return typeof PointerEvent=="function"?new PointerEvent(t,r):new MouseEvent(t,r)}var Ct=1,xd=0;function qe(e,t,n,r,o,i=0){let s={bubbles:!(t.endsWith("enter")||t.endsWith("leave")),cancelable:!0,detail:i,clientX:n.x,clientY:n.y,screenX:n.x,screenY:n.y,buttons:r,button:0,...o!==void 0?{relatedTarget:o}:{}};return e.dispatchEvent(t.startsWith("pointer")?nm(e,t,{...s,pointerId:1,isPrimary:!0}):Zi(e,t,s))}async function yd(e,t,n){var u;let r=e.ownerDocument,o=(u=r.activeElement)!=null?u:r.body,i=AS(e),s=n!=null?n:0;ut(()=>qe(e,"pointerdown",i,Ct,o,s)),ut(()=>qe(e,"mousedown",i,Ct,void 0,s)),e.tabIndex>=0&&typeof e.focus=="function"&&e.focus();let a=0;if(t!==void 0&&t.ms>0){let d=t.now();await t.sleep(t.ms),a=t.now()-d}return ut(()=>qe(e,"pointerup",i,xd,o,s)),ut(()=>qe(e,"mouseup",i,xd,void 0,s)),{prevented:!ut(()=>qe(e,"click",i,xd,void 0,s)),heldMs:a}}function D6(e){return e.width>0||e.height>0}function Ad(e,t){let n=e.ownerDocument.defaultView;if(n===null)return!1;let r=t.left+t.width/2,o=t.top+t.height/2;return r<0||o<0||r>n.innerWidth||o>n.innerHeight}function P6(e,t){let n=tm(e,t);return n===null?{occluded:!1,occludedBy:null}:{occluded:!0,occludedBy:re.refFor(n),occluderName:M6(n)}}function M6(e){let t=ve(e);if(t!==null&&t.length>0)return`[data-testid="${t}"]`;let n=Ne(e).trim();return n.length>0?`${ke(e)} "${n.slice(0,40)}"`:e.tagName.toLowerCase()}function U6(e){if(typeof e.getClientRects!="function")return!1;let t=Array.from(e.getClientRects());return t.length>0&&t.every(n=>n.width===0||n.height===0)}function S$(e){if(typeof e.getBoundingClientRect!="function")return Td;let t=e.getBoundingClientRect();if(!D6(t))return U6(e)?{...Td,noSize:!0}:Td;let n=!1;Ad(e,t)&&typeof e.scrollIntoView=="function"&&(e.scrollIntoView({block:"center",inline:"center"}),n=!0,t=e.getBoundingClientRect());let r=n&&Ad(e,t);return{...P6(e,t),scrolledIntoView:n,...r?{offViewport:!0}:{}}}function yS(e,t,n=null){ut(()=>e.dispatchEvent(nm(e,t,{bubbles:!0,cancelable:!0,relatedTarget:n})))}function T$(e,t,n=null){ut(()=>e.dispatchEvent(nm(e,t,{bubbles:!1,cancelable:!0,relatedTarget:n})))}function H6(e){if(typeof DataTransfer!="function")return null;let t=new DataTransfer,n=Array.isArray(e)?e:e!==void 0?[e]:[];for(let r of n)if(typeof r=="object"&&r!==null){let o=r;typeof o.mime=="string"&&typeof o.value=="string"&&t.setData(o.mime,o.value)}return t}var E$=5;function AS(e){let t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}}function F6(e,t,n){return{x:Math.round(e.x+(t.x-e.x)*n),y:Math.round(e.y+(t.y-e.y)*n)}}async function wS(e,t,n){let r=t!=null?t:e,o=AS(e),i=AS(r),s=e.getBoundingClientRect(),a=t!==null?r.getBoundingClientRect():null,l=(m,h)=>h.x>=m.left&&h.x<=m.right&&h.y>=m.top&&h.y<=m.bottom;qe(e,"pointerdown",o,Ct),qe(e,"mousedown",o,Ct),await ji();let u=!1,d=!1;for(let m=1;m<=E$;m+=1){let h=F6(o,i,m/E$);!u&&!l(s,h)&&(u=!0,qe(e,"pointerout",h,Ct,r),qe(e,"mouseout",h,Ct,r),qe(e,"pointerleave",h,Ct,r),qe(e,"mouseleave",h,Ct,r)),u&&!d&&a!==null&&l(a,h)&&(d=!0,qe(r,"pointerover",h,Ct,e),qe(r,"mouseover",h,Ct,e),qe(r,"pointerenter",h,Ct,e),qe(r,"mouseenter",h,Ct,e)),qe(r,"pointermove",h,Ct),qe(r,"mousemove",h,Ct),await ji()}!d&&a!==null&&(qe(r,"pointerover",i,Ct,e),qe(r,"mouseover",i,Ct,e),qe(r,"pointerenter",i,Ct,e),qe(r,"mouseenter",i,Ct,e)),qe(r,"pointerup",i,xd),qe(r,"mouseup",i,xd);let f=!1;if(typeof DragEvent=="function"){let m=H6(n),h={bubbles:!0,cancelable:!0};m!==null&&(h.dataTransfer=m),e.dispatchEvent(new DragEvent("dragstart",h)),await ji(),r.dispatchEvent(new DragEvent("dragenter",h)),r.dispatchEvent(new DragEvent("dragover",h)),await ji(),f=!r.dispatchEvent(new DragEvent("drop",h)),e.dispatchEvent(new DragEvent("dragend",h))}return f}async function x$(e,t){let n=B6(e);b$(e,"pointerdown"),ut(()=>e.dispatchEvent(_$("touchstart",n))),e.tabIndex>=0&&typeof e.focus=="function"&&e.focus();let r=0;if(t!==void 0&&t.ms>0){let i=t.now();await t.sleep(t.ms),r=t.now()-i}return ut(()=>e.dispatchEvent(_$("touchend",[]))),b$(e,"pointerup"),{prevented:!ut(()=>e.dispatchEvent(Zi(e,"click",{bubbles:!0,cancelable:!0}))),heldMs:r}}function b$(e,t){ut(()=>e.dispatchEvent(nm(e,t,{bubbles:!0,cancelable:!0,pointerType:"touch",isPrimary:!0,width:23,height:23})))}function B6(e){if(typeof Touch!="function"||typeof e.getBoundingClientRect!="function")return[];let t=e.getBoundingClientRect();try{return[new Touch({identifier:0,target:e,clientX:t.left+t.width/2,clientY:t.top+t.height/2})]}catch{return[]}}function _$(e,t){if(typeof TouchEvent=="function")try{return new TouchEvent(e,{bubbles:!0,cancelable:!0,touches:t,targetTouches:t,changedTouches:t})}catch{}return new Event(e,{bubbles:!0,cancelable:!0})}var G6=new Set(["menu","menubar","listbox","dialog","alertdialog","tooltip"]),V6="closed";function A$(e){var t,n;for(let r=e.parentElement;r!==null;r=r.parentElement)if(V6===r.getAttribute("data-state")&&G6.has((t=r.getAttribute("role"))!=null?t:""))throw new Error(`'${(n=r.getAttribute("role"))!=null?n:"popup"}' holding this element is closing (data-state="closed"), so a person could not click it: look again once it has gone and act on what is open`)}xt();var j6=400,K6=.8,Z6="scroll fraction must be between 0 and 1, got ";function W6(e){return`${Z6}${e}`}function Y6(e,t){var r;let n=e;for(;n!==null&&n!==document.body;){let o=getComputedStyle(n),i=t==="x"?o.overflowX:o.overflowY,s=t==="x"?n.scrollWidth>n.clientWidth:n.scrollHeight>n.clientHeight;if((i==="auto"||i==="scroll")&&s)return n;n=n.parentElement}return(r=document.scrollingElement)!=null?r:document.documentElement}function y$(e,t,n,r){let o=e!==void 0?re.resolve(e):null;return vS(o instanceof Element?o:void 0,t,n,r)}function vS(e,t,n,r){var d;if(n!==void 0&&(n<0||n>1||Number.isNaN(n)))throw new RangeError(W6(n));let i=e!==void 0?Y6(e,r!==void 0&&r!==0&&(t===void 0||t===0)?"x":"y"):(d=document.scrollingElement)!=null?d:document.documentElement,s=i.scrollTop,a=i.scrollLeft;if(n!==void 0)i.scrollTop=Math.round(i.scrollHeight*n);else if(r!==void 0&&r!==0&&(i.scrollLeft=a+r),r===void 0||t!==void 0&&t!==0){let f=t!=null?t:Math.round(i.clientHeight*K6)||j6;i.scrollTop=s+f}i.dispatchEvent(new Event("scroll",{bubbles:!1}));let l=i.scrollTop,u=i.scrollLeft;return{scrolled:l!==s||u!==a,scrollTop:l,scrollHeight:i.scrollHeight,clientHeight:i.clientHeight,atEnd:l+i.clientHeight>=i.scrollHeight-1,atStart:l<=1,scrollLeft:u,scrollWidth:i.scrollWidth,clientWidth:i.clientWidth,atLeftEnd:u<=1,atRightEnd:u+i.clientWidth>=i.scrollWidth-1}}M();At();jo();var X6='label, summary, [onclick], [tabindex], [contenteditable]:not([contenteditable="false"])';function w$(e,t){if(P.CLICK!==t&&P.DBLCLICK!==t)return!1;for(let n=e;n!==null;n=ki(n))if(Nc.has(ke(n))||n.matches(X6))return!1;return getComputedStyle(e).cursor!=="pointer"}function wd(e,t=""){return typeof e=="string"?e:t}function q6(e){let t=re.resolve(e);if(t===null)throw new Error(`ref '${js(e)}' no longer resolves to an element`);if(!zi(t))throw new Error(`ref '${js(e)}' is not an HTML or SVG element`);return t}var J6=new Set([P.FILL,P.TYPE,P.CLEAR,P.SELECT]),Q6=e=>J6.has(e),O$=new Set([P.CLICK,P.DBLCLICK,P.CHECK,P.UNCHECK]);function I$(e){let t=wd(e.toRef);return t!==""?t:wd(e.target)}var v$=new Set(["content","name","type","__base64"]),eK=new Set([Uf,ER,"holdMs"]);function tK(e){let t=Object.keys(e),n=t.filter(o=>!v$.has(o)&&!eK.has(o));if(n.length===0&&t.some(o=>v$.has(o)))return;let r=n.length===0?"no file was described":`upload does not read ${n.join(", ")}, so it would be dropped`;throw new Error(`upload needs the file described as args: { name, content?, type? } \u2014 ${r}. To upload a file from disk, use the reticle daemon which reads it via args.path and delivers real bytes; calling with { path } directly reaches only fabricated content.`)}function nK(e,t,n){let r=t===P.CLICK||t===P.DBLCLICK||t===P.CHECK||t===P.UNCHECK||t===P.DRAG||t===P.SUBMIT||t===P.PRESS&&Qh(n)==="Enter",o=t===P.DRAG?re.resolve(I$(n)):null,i=t===P.PRESS&&Qh(n)==="Enter"?AC(e):null;r&&yC([e,i,zi(o)?o:null]),(t===P.FILL||t===P.TYPE)&&wC(e);let s=wh(e)||i!==null&&wh(i),a=zi(o)&&wh(o);if(r&&(s||a)&&n[Uf]!==!0)throw new Error(`potentially destructive action blocked; retry with args.${Uf}=true`);if(O$.has(t)&&e instanceof HTMLElement&&cS(e))throw new Error("cannot click a native <option> inside a visually-hidden <select> \u2014 open the dropdown and target the visible option")}function rK(e,t){var r,o;if(e.some(i=>i.value===t))return t;let n=e.filter(i=>i.label.trim()===t.trim());return n.length===1&&(o=(r=n[0])==null?void 0:r.value)!=null?o:t}function C$(e){return!Yo(e).includes(_e.DISABLED)}function N$(e){if(He(e)||vn(e)||Cr(e))return e.value}function R$(e){let t=e.ownerDocument.activeElement;return t===null||t===e.ownerDocument.body?null:re.refFor(t)}async function oK(e,t,n){if(P.CLICK===t){let r=fc(n.holdMs);return await yd(e,r===0?void 0:{ms:r,sleep:RS,now:()=>Date.now()})}if(P.TAP===t){let r=fc(n.holdMs);return await x$(e,r===0?void 0:{ms:r,sleep:RS,now:()=>Date.now()})}return{prevented:await sK(e,t,n),heldMs:0}}var iK="cannot zoom from inside the page \u2014 CSS zoom changes how it LOOKS without changing the layout viewport, visualViewport or media queries, so a layout that breaks at 200% would be reported as checked and passing. Drive a real browser (reticle drive <url>, or reticle_lease) and zoom there.";function NS(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}async function sK(e,t,n){var r;switch(t){case P.DBLCLICK:return await yd(e,void 0,1),await yd(e,void 0,2),!ut(()=>e.dispatchEvent(Zi(e,"dblclick",{bubbles:!0,cancelable:!0,detail:2})));case P.HOVER:{let o=e.ownerDocument,i=(r=o.activeElement)!=null?r:o.body;yS(e,"pointerover",i),e.dispatchEvent(Zi(e,"mouseover",{bubbles:!0,relatedTarget:i})),T$(e,"pointerenter",i),e.dispatchEvent(Zi(e,"mouseenter",{relatedTarget:i})),yS(e,"pointermove",i);let s=e.dispatchEvent(Zi(e,"mousemove",{bubbles:!0,cancelable:!0})),a=fc(n.holdMs);return a>0&&await RS(a),!s}case P.FOCUS:return e.focus(),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),!1;case P.BLUR:{let i=e.getRootNode().activeElement===e;return e.blur(),i||(e.dispatchEvent(new FocusEvent("blur")),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0}))),!1}case P.FILL:if(He(e)||vn(e)){if(typeof n.value!="string")throw new Error("fill requires a string `value` \u2014 pass it nested, as args: { value: '\u2026' }. To empty a field on purpose use the `clear` action, or fill with an explicit \"\".");return hS(e,"fill"),pS(e)||e.focus(),jh(e,n.value)}throw fS(e,"fill"),new Error(`cannot fill a <${e.tagName.toLowerCase()}>`);case P.TYPE:if(He(e)||vn(e)){if(typeof n.text!="string")throw new Error("type requires a string `text` \u2014 pass it nested, as args: { text: '\u2026' }.");return hS(e,"type"),e.focus(),jh(e,e.value+n.text)}throw fS(e,"type into"),new Error(`cannot type into a <${e.tagName.toLowerCase()}>`);case P.CLEAR:if(He(e)||vn(e))return jh(e,"");throw new Error(`cannot clear a <${e.tagName.toLowerCase()}>`);case P.SELECT:if(Cr(e)){if(typeof n.value!="string")throw new Error("select requires a string `value` \u2014 pass it nested, as args: { value: '\u2026' }.");let o=Array.from(e.options),i=rK(o,n.value);if(!o.some(s=>s.value===i)){let s=o.map(a=>`${a.value} (${a.label})`).join(", ");throw new Error(`no <option> with value '${js(i)}' \u2014 available: ${o.length===0?"(none)":s}`)}return e.value=i,e.dispatchEvent(new Event("change",{bubbles:!0})),!1}throw new Error(`cannot select on a <${e.tagName.toLowerCase()}>`);case P.CHECK:case P.UNCHECK:{let o=Xh(e);if(!He(e)&&!o)throw new Error(`cannot (un)check a <${e.tagName.toLowerCase()}>`);if(!C$(e))throw new Error(`cannot ${t} a disabled control \u2014 a real user could not, so neither will Reticle`);if(!He(e))return qh(e,t)?!1:(await yd(e)).prevented;if(e.type==="radio"&&t===P.UNCHECK)throw new Error("cannot uncheck a radio button \u2014 a real user could not; select another radio in the group");if(qh(e,t))return!1;let i=Zi(e,"click",{bubbles:!0,cancelable:!0,composed:!0});return!ut(()=>e.dispatchEvent(i))||i.defaultPrevented}case P.SUBMIT:{let o=M0(e)?e:e.closest("form");if(o===null)throw new Error("no form to submit");return o.requestSubmit(),!1}case P.PRESS:{let o=c$(n),i=d$(n);if(i.length>0)return await f$(e,i,o,fc(n.holdMs));let s=Qh(n),a=Jh(n,s),l=ut(()=>e.dispatchEvent(Sd("keydown",{key:s,code:a,bubbles:!0,cancelable:!0,...o})));xS(e,s,l),l&&em(e,s,a,o);let u=fc(n.holdMs);return u>0&&await p$(e,s,a,o,u),ut(()=>e.dispatchEvent(Sd("keyup",{key:s,code:a,bubbles:!0,...o}))),!l}case P.SCROLL_INTO_VIEW:return e.scrollIntoView(),!1;case P.ZOOM:throw new Error(iK);case P.SCROLL:{let o=NS(n.dy),i=NS(n.dx),s=NS(n.fraction);return vS(e,o,s,i),!1}case P.UPLOAD:{if(!He(e)||e.type!=="file")throw new Error('upload target must be a <input type="file">');tK(n);let o=wd(n.content,"reticle test file"),i=o;if(n.__base64===!0){let u=atob(o),d=new Uint8Array(u.length);for(let f=0;f<u.length;f++)d[f]=u.charCodeAt(f);i=d.buffer.slice(0)}let s=new File([i],wd(n.name,"file.txt"),{type:wd(n.type,"text/plain")}),a=new DataTransfer;a.items.add(s),e.files=a.files;let l=e.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}));return e.dispatchEvent(new Event("change",{bubbles:!0})),!l}case P.DRAG:{let o=I$(n);if(o==="")return await wS(e,null,n.data);let i=re.resolve(o);if(!zi(i))throw new Error(`drag target '${js(o)}' did not resolve to an element \u2014 pass a ref from reticle_snapshot or reticle_query as args.toRef (alias: args.target)`);return await wS(e,i,n.data)}default:throw new Error(`unknown action '${t}'`)}}async function vd(e,t,n={}){let r=0<e.length,o=u$(e,t,n)?l$():q6(e);r&&nK(o,t,n),r&&A$(o);let i=r?m$(o):{},s=ct(o),a=C$(o),l=R$(o),u=N$(o),d=qL(o),f=O$.has(t)?S$(o):Td,m=qh(o,t),h=w$(o,t),E=0,_=new Yh,A=new MutationObserver(ye=>{E+=ye.length,_.collect(ye)});A.observe(o.ownerDocument.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0});let v=!1,N=0,O=!1,k=null;try{let ye=await oK(o,t,n);v=ye.prevented,N=ye.heldMs}finally{let ye=KL(n.settleMs),me=await jL(ye);O=me.settled,k=me.settled?null:xR.TIMEOUT,A.disconnect(),d==null||d.stop()}r$(o,t,m);let j=N$(o);JL(o,d);let Y=R$(o),X={dispatched:!0,targetMatched:r&&o.isConnected,visible:s,enabled:a,defaultPrevented:v,focusMoved:l!==Y?`${l!=null?l:"null"}->${Y!=null?Y:"null"}`:null,valueChanged:Q6(t)?u!==j:!1,...P.FILL===t&&pS(o)?{autofillSafe:!0}:{},domMutatedWithin:E,..._.effect(j),occluded:f.occluded,occludedBy:f.occludedBy,scrolledIntoView:f.scrolledIntoView,...f.occluderName===void 0?{}:{occluderName:f.occluderName},...f.noSize===!0?{noSize:!0}:{},...f.offViewport===!0?{offViewport:!0}:{},...N>0?{heldMs:N}:{},...m?{alreadyAtValue:!0}:{},...aK()},G;r?f.occluded?G=Cu.CLICK_OCCLUDED:t===P.HOVER&&Nh(o)?G=Cu.HOVER_NATIVE_ENTER_LEAVE:h&&(G=Cu.CLICK_NOT_A_CONTROL):G=Cu.GLOBAL_PRESS;let ee=g$(e,t,X,O,k,i,G);return ao(o)?{...ee,reticleUi:!0}:ee}function aK(){let e=h$(document);return e>0?{canvases:e}:{}}var RS=e=>new Promise(t=>ue(t,e));async function rm(e){var r;let t=[],n=[];for(let o of e){let i=await vd(o.ref,o.action,(r=o.args)!=null?r:{});t.push(i.effect);let s={ref:i.ref,action:i.action,dispatched:i.dispatched,settled:i.settled,settleReason:i.settleReason};i.testid!==void 0&&(s.testid=i.testid),i.component!==void 0&&(s.component=i.component),i.role!==void 0&&(s.role=i.role),i.name!==void 0&&(s.name=i.name),i.source!==void 0&&(s.source=i.source),i.secret!==void 0&&(s.secret=i.secret),i.warning!==void 0&&(s.warning=i.warning),n.push(s)}return{ok:!0,count:e.length,effects:t,steps:n}}At();cd();var L$="data-theme";function cK(e){return"cssRules"in e&&e.cssRules instanceof CSSRuleList}function z$(e,t,n){if(!(n<=0))for(let r of Array.from(e))if(r instanceof CSSStyleRule)for(let o of Array.from(r.style))o.startsWith("--")&&t.add(o);else cK(r)&&z$(r.cssRules,t,n-1)}function lK(){let e=new Set;for(let t of Array.from(document.styleSheets)){let n=null;try{n=t.cssRules}catch{continue}n!==null&&z$(n,e,8)}return e}function uK(){var o;let e=new Map,t=(o=document.body)!=null?o:document.documentElement;if(t===null)return e;let n=getComputedStyle(t),r=document.createElement("span");r.style.position="absolute",r.style.pointerEvents="none",document.body.appendChild(r);try{for(let i of lK()){let s=dK(r,n.getPropertyValue(i).trim());if(s===null)continue;let a=e.get(s);a===void 0?e.set(s,[i]):a.push(i)}}finally{r.remove()}for(let i of e.values())i.sort();return e}function dK(e,t){return t.length===0||(e.style.color="",e.style.color=t,e.style.color==="")?null:getComputedStyle(e).color}function $$(e){return e==="rgba(0, 0, 0, 0)"||e==="transparent"}function pK(){let e=document.documentElement;if(e===null)return null;let t=Array.from(e.classList).map(o=>`.${o}`).join(""),n=e.getAttribute(L$),r=`${t}${n===null?"":`[${L$}="${n}"]`}`;return r.length===0?null:r}function k$(e){var t;return e.length===1&&(t=e[0])!=null?t:null}function D$(e){var a,l;let t=uK(),n=(a=t.get(e.color))!=null?a:[],r=(l=t.get(e.backgroundColor))!=null?l:[],o=!$$(e.color)&&n.length===0,i=!$$(e.backgroundColor)&&r.length===0,s=0;for(let u of t.values())s+=u.length;return{colorToken:k$(n),colorTokens:n,backgroundToken:k$(r),backgroundTokens:r,offTheme:s>0&&(o||i),tokenCount:s,themeScope:pK()}}xt();dn();M();cr();co();function Nd(e){try{return e()}catch{return null}}function om(e){var n;let t={};if(e===null)return t;for(let r=0;r<e.length;r+=1){let o=e.key(r);if(o===null)continue;let i=(n=e.getItem(o))!=null?n:"";t[o]=bt(o)?we:no(i)}return t}function P$(){let e={},t="";try{t=typeof document!="undefined"?document.cookie:""}catch{return e}for(let n of t.split(";")){let r=n.indexOf("=");if(r===-1)continue;let o=n.slice(0,r).trim();if(o==="")continue;if(bt(o)){e[o]=we;continue}let i="";try{i=decodeURIComponent(n.slice(r+1).trim())}catch{i=n.slice(r+1).trim()}e[o]=no(i)}return e}function M$(e){return e===Bs.LOCAL?om(Nd(()=>window.localStorage)):e===Bs.SESSION?om(Nd(()=>window.sessionStorage)):Bs.COOKIE===e?P$():{local:om(Nd(()=>window.localStorage)),session:om(Nd(()=>window.sessionStorage)),cookies:P$()}}function Ys(e,t){if(t!==null)return bt(e)?we:no(t)}function U$(e){var d,f,m;if(typeof Storage=="undefined")return()=>{};let t=Storage.prototype,n=(d=Object.getOwnPropertyDescriptor(t,"setItem"))==null?void 0:d.value,r=(f=Object.getOwnPropertyDescriptor(t,"removeItem"))==null?void 0:f.value,o=(m=Object.getOwnPropertyDescriptor(t,"clear"))==null?void 0:m.value;if(n===void 0||r===void 0||o===void 0)return()=>{};let i=h=>h===Nd(()=>window.sessionStorage)?Bs.SESSION:Bs.LOCAL,s=(h,E)=>{try{return h.getItem(E)}catch{return null}},a=function(h,E){var A;let _=(A=Zt(()=>s(this,h)))!=null?A:null;n.call(this,h,E),_!==E&&(Sh(h)||oe(()=>{var v;e(w.STORAGE_CHANGE,{area:i(this),key:h,...Ys(h,_)===void 0?{}:{old:Ys(h,_)},new:(v=Ys(h,E))!=null?v:we})}))};t.setItem=a;let l=function(h){var _;let E=(_=Zt(()=>s(this,h)))!=null?_:null;r.call(this,h),!Sh(h)&&oe(()=>{e(w.STORAGE_CHANGE,{area:i(this),key:h,...Ys(h,E)===void 0?{}:{old:Ys(h,E)}})})};t.removeItem=l;let u=function(){let h=i(this),E=[];try{for(let _=0;_<this.length;_+=1){let A=this.key(_);A!==null&&!Sh(A)&&E.push({key:A,old:s(this,A)})}}catch{}o.call(this);for(let{key:_,old:A}of E)oe(()=>{e(w.STORAGE_CHANGE,{area:h,key:_,...Ys(_,A)===void 0?{}:{old:Ys(_,A)}})})};return t.clear=u,()=>{t.setItem===a&&(t.setItem=n),t.removeItem===l&&(t.removeItem=r),t.clear===u&&(t.clear=o)}}M();xt();mt();var $c=16,fK=500,hK=4,mK=2166136261,gK=16777619,EK=8;function bK(e){var i,s;let t=mK,n=[0,0,0],r=Math.max(1,e.length/4);for(let a=0;a<e.length;a+=4)for(let l=0;l<3;l+=1){let u=(i=e[a+l])!=null?i:0;n[l]=((s=n[l])!=null?s:0)+u,t=Math.imul(t^Math.floor(u/EK),gK)>>>0}let o=n.map(a=>Math.round(a/r));return{digest:t.toString(16).padStart(8,"0"),mean:o}}function _K(e){if(e.width===0||e.height===0)return;let t=document.createElement("canvas");t.width=$c,t.height=$c;let n=t.getContext("2d");if(n===null)return;let r=Zt(()=>(n.drawImage(e,0,0,$c,$c),n.getImageData(0,0,$c,$c).data));return r===void 0?void 0:{data:r,width:e.width,height:e.height}}var kc;function OS(){kc==null||kc(Ls.ACT)}function H$(e,t={}){var a,l;let n=(a=t.sample)!=null?a:_K,r=(l=t.every)!=null?l:Zh,o=new WeakMap,i=u=>{oe(()=>{let d=Array.from(document.querySelectorAll("canvas")).slice(0,hK);for(let f of d){let m=n(f);if(m===void 0)continue;let{digest:h,mean:E}=bK(m.data);Ls.POLL===u&&o.get(f)===h||(o.set(f,h),e(w.CANVAS_DIGEST,{digest:h,width:m.width,height:m.height,mean:E,trigger:u},re.refFor(f)))}})};kc=i;let s=r(()=>i(Ls.POLL),fK);return()=>{s(),kc===i&&(kc=void 0)}}M();mt();lt();var SK=sc.FULL_PAGE_UNSUPPORTED,TK=[SK,sc.NOT_COMPOSITED],xK="__TAURI_INTERNALS__";function AK(){let e=window[xK];if(typeof(e==null?void 0:e.invoke)!="function")return;let t=e.invoke.bind(e);return async n=>{let r=await t(ch,{fullPage:n===!0});return typeof r=="string"?r:null}}async function yK(e){let t=[...document.querySelectorAll(Di)],n=t.map(r=>r.style.visibility);for(let r of t)r.style.visibility="hidden";try{return t.length>0&&(await ji(),await ji()),await e()}finally{t.forEach((r,o)=>{var i;r.style.visibility=(i=n[o])!=null?i:""})}}async function F$(e=!1){let t=window[Bo],n=typeof(t==null?void 0:t.capture)=="function"?t.capture:AK();if(n===void 0)return{ok:!1,reason:"no desktop capture helper installed"};try{let r=await yK(()=>n(e));return typeof r=="string"&&r.length>0?{ok:!0,path:r}:{ok:!1,reason:"capture returned no image"}}catch(r){let o=r instanceof Error?r.message:String(r);for(let i of TK)if(o.includes(i))return{ok:!1,reason:i};return{ok:!1,reason:o}}}Xo();Ws();cr();Gi();function wK(e,t){var n;return(n=Object.getOwnPropertyDescriptor(e,t))==null?void 0:n.value}function $r(e,t){let n=wK(e,t);if(n===void 0)throw new Error(`[Reticle] cannot patch ${String(t)}: it is not an own property of the target`);return n}Vo();var vK=12e4,Dc=!1,Jo=0,B$=0,G$=1,Qo=[],zc=null,Xs,im={};function V$(){if(zc===null)return;let e=zc,t=e.clearTimeout.bind(window);Xs!==void 0&&t(Xs),Xs=e.setTimeout.bind(window)(()=>{Xs=void 0,Pc()},vK)}function j$(){return Dc}function K$(){if(Dc||typeof window=="undefined")return;Dc=!0,Jo=0,B$=Date.now(),zc={setTimeout:$r(window,"setTimeout"),clearTimeout:$r(window,"clearTimeout"),setInterval:$r(window,"setInterval"),clearInterval:$r(window,"clearInterval"),dateNow:$r(Date,"now")};let e=(r,o,i)=>{let s=G$;return G$+=1,Qo.push({id:s,time:Jo+Math.max(0,o),cb:r,interval:i}),s},t=r=>{Qo=Qo.filter(o=>o.id!==r)},n=(r,o)=>()=>{r(...o)};window.setTimeout=((r,o=0,...i)=>e(n(r,i),o)),window.clearTimeout=(r=>t(r)),window.setInterval=((r,o=0,...i)=>e(n(r,i),o,Math.max(1,o))),window.clearInterval=(r=>t(r)),im={setTimeout:$e(window,"setTimeout"),clearTimeout:$e(window,"clearTimeout"),setInterval:$e(window,"setInterval"),clearInterval:$e(window,"clearInterval")},Date.now=()=>B$+Jo,im.dateNow=$e(Date,"now"),V$()}function Z$(e){if(!Dc)return;let t=Jo+Math.max(0,e),n=0;for(;n+=1,!(n>1e5);){let o=Qo.filter(i=>i.time<=t).sort((i,s)=>i.time-s.time)[0];if(o===void 0)break;Qo=Qo.filter(i=>i!==o),Jo=o.time,o.cb(),o.interval!==void 0&&Qo.push({...o,time:Jo+o.interval})}Jo=t,V$()}function Pc(){if(!Dc||zc===null)return;let e=zc,t=Qo;Xs!==void 0&&(e.clearTimeout.bind(window)(Xs),Xs=void 0);let n=im;im={},window.setTimeout===n.setTimeout&&(window.setTimeout=e.setTimeout),window.clearTimeout===n.clearTimeout&&(window.clearTimeout=e.clearTimeout),window.setInterval===n.setInterval&&(window.setInterval=e.setInterval),window.clearInterval===n.clearInterval&&(window.clearInterval=e.clearInterval),Date.now===n.dateNow&&(Date.now=e.dateNow);let r=Jo;if(zc=null,Qo=[],Dc=!1,Jo=0,t.length===0)return;let o=e.setTimeout.bind(window),i=e.setInterval.bind(window),s=new Map,a={},l=u=>{s.delete(u),s.size===0&&a.current!==void 0&&RK(e,a.current)};for(let u of t)u.interval!==void 0?s.set(u.id,i(u.cb,u.interval)):s.set(u.id,o(()=>{l(u.id),u.cb()},Math.max(0,u.time-r)));a.current=NK(s,e,l)}function NK(e,t,n){let r=o=>{let i=o.bind(window);return(s=>{let a=e.get(s);if(a===void 0){i(s);return}i(a),n(s)})};return window.clearTimeout=r(t.clearTimeout),window.clearInterval=r(t.clearInterval),{clearTimeout:$e(window,"clearTimeout"),clearInterval:$e(window,"clearInterval")}}function RK(e,t){window.clearTimeout===t.clearTimeout&&(window.clearTimeout=e.clearTimeout),window.clearInterval===t.clearInterval&&(window.clearInterval=e.clearInterval)}var sm="_reticle_reload";function Je(e){return typeof e=="string"?e:void 0}function tk(e){return typeof e=="number"?e:void 0}function Q$(e){return typeof e=="object"&&e!==null?e:{}}function VK(e){if(typeof e!="object"||e===null)return;let t=e;if(!(typeof t.file!="string"||typeof t.line!="number"))return{file:t.file,line:t.line,column:tk(t.column)}}function jK(e){return{by:Je(e.by),value:Je(e.value),role:Je(e.role),name:Je(e.name),text:Je(e.text),label:Je(e.label),placeholder:Je(e.placeholder),testid:Je(e.testid),alt:Je(e.alt),component:Je(e.component),scope:Je(e.scope),self:e.self===!0?!0:void 0,attrs:Array.isArray(e.attrs)?e.attrs.filter(t=>typeof t=="string"):void 0,source:VK(e.source)}}function KK(e,t=!1){var h,E,_,A,v,N,O;let n=re.resolve(e);if(n===null)throw new Error(dd.staleRefMessage(e));let r=t&&typeof n.scrollIntoView=="function"&&Ad(n,n.getBoundingClientRect());r&&n.scrollIntoView({block:"center",inline:"center"});let o=n.getBoundingClientRect(),i=lr(n),s=n.ownerDocument.defaultView,a=s!==null?s.getComputedStyle(n):null,l=a!==null?{color:a.color,backgroundColor:a.backgroundColor,opacity:a.opacity,cursor:a.cursor,display:a.display,visibility:a.visibility}:null,u=Ah(xh(n,i==null?void 0:i.source)),d=u!==void 0?void 0:_C(n.ownerDocument)?"This element has no source stamp. Others on the page do, so the stamping loader is running \u2014 the nearest stamped ancestor is out of range, or this element is rendered outside instrumented code.":"No element in this document carries a source stamp, so the stamping loader is not running: an older adapter, a bundler whose hook never ran, or a build the plugin was dropped from. Add @reticlehq/vite-plugin (or @reticlehq/babel-plugin) to the dev build and restart the dev server to get `file:line` back.",f={scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,clientHeight:n.clientHeight,overflowY:(h=a==null?void 0:a.overflowY)!=null?h:"visible",scrollLeft:n.scrollLeft,scrollWidth:n.scrollWidth,clientWidth:n.clientWidth,overflowX:(E=a==null?void 0:a.overflowX)!=null?E:"visible"},m=H0(n);return{...uo(n),...u!==void 0?{source:u}:{},...m.length>0?{paintContext:m}:{},...d!==void 0?{sourceUnavailable:d}:{},tag:n.tagName.toLowerCase(),href:(_=n.getAttribute("href"))!=null?_:void 0,formAction:(Ju(n)||He(n))&&(v=(A=n.form)==null?void 0:A.getAttribute("action"))!=null?v:void 0,formText:(Ju(n)||He(n))&&(O=(N=n.form)==null?void 0:N.textContent)!=null?O:void 0,box:{x:o.x,y:o.y,width:o.width,height:o.height},...r?{scrolledIntoView:!0}:{},...t?{[_R]:!Ad(n,o)}:{},occluded:ZK(n,o),styles:l,scroll:f,theme:a!==null?D$(a):null,component:i}}function ZK(e,t){return tm(e,t)!==null}function WK(e){return typeof e=="object"&&e!==null&&"ok"in e&&typeof e.ok=="boolean"}var ek={ok:!1,reason:AR.UNAVAILABLE};function YK(e,t,n,r){let o=Fi();if(n!==void 0||r!==void 0){let l=nS(t);if(t!==void 0&&!Object.hasOwn(l,t))return{store:t,path:n,found:!1,value:null,storeNames:o};let u=t!==void 0?l[t]:{stores:l,storeNames:o},d=n!==void 0?UI(u,n):{found:!0,value:u},f=d.found&&r!==void 0?Ec(d.value,r):d.value,m=Ks(f);return{store:t,path:n,found:d.found,value:m.value,...m.truncation===void 0?{}:{truncation:m.truncation},..."availableKeys"in d?{availableKeys:d.availableKeys}:{},..."totalKeys"in d?{totalKeys:d.totalKeys}:{},storeNames:o}}let{stores:i,truncation:s}=md(t),a={stores:i,storeNames:o};if(s!==void 0&&(a.truncation=s),e!==void 0&&e.length>0){let l=re.resolve(e);if(l===null)a.component=ek;else{let u=vh(l);a.component=WK(u)?u:ek}}return a}function XK(){let e=document;return typeof e.getAnimations!="function"?{animations:[]}:{animations:e.getAnimations().map(n=>{var s;let r=n.effect,o=r==null?void 0:r.getTiming(),i=(s=r==null?void 0:r.target)!=null?s:null;return{playState:n.playState,currentTime:n.currentTime,duration:o==null?void 0:o.duration,target:i===null?null:uo(i)}})}}function qK(e,t){if(e.length===0||e.length>Z.MAX_URL_LENGTH)return null;try{let n=new URL(e,t);return n.protocol==="http:"||n.protocol==="https:"?n.toString():null}catch{return null}}function nk(){let e=new Map;return e.set(H.SNAPSHOT,t=>{var n;return Ch({scope:Je(t.scope),mode:(n=Je(t.mode))!=null?n:cc.FULL,includeRoot:t.includeRoot===!0,ids:t.ids===!0,audit:t.audit===!0})}),e.set(H.QUERY,t=>{let n=t.limit;return Gh(jK(t),typeof n=="number"?n:void 0)}),e.set(H.MATCH,t=>Ed(ku.parse(Q$(t.query)),Je(t.state),void 0,void 0,t.diagnose===!0)),e.set(H.ACT,async t=>{var o,i;let n=(o=Je(t.action))!=null?o:"",r=await vd((i=Je(t.ref))!=null?i:"",n,Q$(t.args));return OS(),r}),e.set(H.ACT_SEQUENCE,async t=>{let n=await rm(Array.isArray(t.steps)?t.steps:[]);return OS(),n}),e.set(H.INSPECT,t=>{var n;return KK((n=Je(t.ref))!=null?n:"",t[bR]===!0)}),e.set(H.ANIMATIONS,()=>XK()),e.set(H.CLOCK,t=>{if(t.reset===!0)Pc();else{t.freeze===!0&&K$();let n=t.advanceMs;typeof n=="number"&&Z$(n)}return{frozen:j$()}}),e.set(H.STATE_READ,t=>YK(Je(t.ref),Je(t.store),Je(t.path),tk(t.depth))),e.set(H.STORAGE_READ,t=>M$(Je(t.area))),e.set(H.CAPABILITIES,()=>Bi()),e.set(H.CAPTURE,t=>F$(t.fullPage===!0)),e.set(H.RENDER,()=>Promise.resolve().then(()=>(J$(),q$)).then(t=>t.renderPage())),e.set(H.SCROLL,t=>{let n=t.dy,r=t.fraction;return y$(Je(t.ref),typeof n=="number"?n:void 0,typeof r=="number"?r:void 0)}),e.set(H.NAVIGATE,t=>{let n=Je(t.url);if(n===void 0||n.length===0)return{ok:!1,reason:"url required"};let r=qK(n,window.location.href);return r===null?{ok:!1,reason:"only http(s) navigation is allowed"}:(window.location.assign(r),{ok:!0,url:r})}),e.set(H.REFRESH,t=>{if(t.hard===!0){let n=new URL(window.location.href);n.searchParams.set(sm,String(Date.now())),window.location.replace(n.toString())}else window.location.reload();return{ok:!0}}),e}M();mt();hd();cr();function JK(e){if(typeof document=="undefined")return()=>{};let t=()=>{document.visibilityState==="visible"&&e()};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)}var am=1e3,QK=3e4;function e3(e){return Math.min(e*2,QK)}var t3=500,n3=1008,r3=3,Wt,ei,Wi,lm,po,Yi,Uc,Hc,Xi,Fc,Od,Bc,Id,Gc,qs,Vc,jc,fn,Cd,ze,rk,Mc,IS,ok,CS,LS,ik,Rd,sk,cm=class{constructor(t){x(this,ze);x(this,Wt);x(this,ei,[]);x(this,Wi,[]);x(this,lm,0);x(this,po,!1);x(this,Yi,!1);x(this,Uc,!1);x(this,Hc);x(this,Xi,am);x(this,Fc,!1);x(this,Od,!1);x(this,Bc,0);x(this,Id,!1);x(this,Gc,0);x(this,qs);x(this,Vc);x(this,jc);x(this,fn);x(this,Cd);var n;g(this,fn,t),g(this,Cd,(n=t.now)!=null?n:Kh)}connect(){var t,n;typeof WebSocket!="undefined"&&(g(this,po,!1),(n=c(this,jc))!=null||g(this,jc,((t=c(this,fn).onVisible)!=null?t:JK)(()=>T(this,ze,rk).call(this))),T(this,ze,Mc).call(this))}sendEvent(t){T(this,ze,Rd).call(this,lo({kind:on.EVENT,event:t}),{seq:t.seq,t:t.t,type:t.type})}redialAfterRefusal(){if(!c(this,po)){if(c(this,Yi)&&c(this,Wt)===void 0){g(this,Yi,!1),g(this,Xi,am),T(this,ze,Mc).call(this);return}g(this,Uc,!0)}}reannounce(){c(this,Wt)===void 0||c(this,Wt).readyState!==WebSocket.OPEN||c(this,Wt).send(JSON.stringify(c(this,fn).hello()))}close(){var t,n;g(this,po,!0),(t=c(this,jc))==null||t.call(this),g(this,jc,void 0),(n=c(this,Wt))==null||n.close(),g(this,Wt,void 0)}};Wt=new WeakMap,ei=new WeakMap,Wi=new WeakMap,lm=new WeakMap,po=new WeakMap,Yi=new WeakMap,Uc=new WeakMap,Hc=new WeakMap,Xi=new WeakMap,Fc=new WeakMap,Od=new WeakMap,Bc=new WeakMap,Id=new WeakMap,Gc=new WeakMap,qs=new WeakMap,Vc=new WeakMap,jc=new WeakMap,fn=new WeakMap,Cd=new WeakMap,ze=new WeakSet,rk=function(){c(this,po)||(g(this,Xi,am),c(this,Wt)===void 0&&(g(this,Yi,!1),T(this,ze,Mc).call(this)))},Mc=function(){let t;try{t=new WebSocket(c(this,fn).url)}catch{T(this,ze,LS).call(this),T(this,ze,CS).call(this),T(this,ze,IS).call(this);return}g(this,Wt,t),t.onopen=()=>{var o,i,s;g(this,Hc,void 0),g(this,Fc,!1),g(this,Od,!0),g(this,Xi,am);let n=c(this,fn).hello();(o=c(this,Vc))!=null||g(this,Vc,n.sessionId),t.send(JSON.stringify(n)),T(this,ze,sk).call(this,t,n.sessionId);let r=[...c(this,ei),...c(this,Wi)].sort((a,l)=>a.order-l.order);for(let a of r)t.send(a.text);g(this,ei,[]),g(this,Wi,[]),(s=(i=c(this,fn)).onConnected)==null||s.call(i)},t.onmessage=n=>{let r=n.data;T(this,ze,ik).call(this,typeof r=="string"?r:String(r))},t.onclose=n=>{var r,o;if(g(this,Wt,void 0),n.code===n3){if(c(this,Uc)&&!c(this,po)){g(this,Uc,!1),T(this,ze,Mc).call(this);return}g(this,Yi,!0);let i=n.reason.length>0?n.reason:"policy violation";Lr(`[reticle] bridge refused the connection: ${i} \u2014 not retrying until you come back to this tab.`),(o=(r=c(this,fn)).onConnectionLost)==null||o.call(r);return}T(this,ze,LS).call(this),T(this,ze,CS).call(this),T(this,ze,IS).call(this)},t.onerror=()=>{t.close()}},IS=function(){var r;if(c(this,po)||c(this,Yi))return;let t=c(this,Xi);g(this,Xi,e3(t)),((r=c(this,fn).schedule)!=null?r:ue)(()=>T(this,ze,ok).call(this),t)},ok=function(){c(this,po)||c(this,Wt)!==void 0||T(this,ze,Mc).call(this)},CS=function(){var t,n;c(this,Od)||c(this,Id)||(g(this,Bc,c(this,Bc)+1),c(this,Bc)>=r3&&(g(this,Id,!0),(n=(t=c(this,fn)).onUnreachable)==null||n.call(t,{url:c(this,fn).url,attempts:c(this,Bc)})))},LS=function(){var n,r,o;let t=c(this,Cd).call(this);(n=c(this,Hc))!=null||g(this,Hc,t),!c(this,Fc)&&t-c(this,Hc)>=LO.BRIDGE_LOST_MS&&(g(this,Fc,!0),(o=(r=c(this,fn)).onConnectionLost)==null||o.call(r))},ik=async function(t){var s;let n;try{n=JSON.parse(t)}catch{return}let r=c_.safeParse(n);if(!r.success){let a=n==null?void 0:n.id;typeof a=="string"&&a.length>0&&T(this,ze,Rd).call(this,lo({kind:on.COMMAND_RESULT,id:a,ok:!1,error:"this page could not parse the command \u2014 the @reticlehq/browser SDK and the daemon are probably different versions. Nothing ran."}));return}let o=r.data;if(o.sessionId!==void 0&&o.sessionId!==c(this,Vc)){T(this,ze,Rd).call(this,lo({kind:on.COMMAND_RESULT,id:o.id,ok:!1,error:`command addressed to session ${o.sessionId} but this page is ${(s=c(this,Vc))!=null?s:"(none)"} \u2014 the page reconnected under a new id, or two sessions share a socket. Nothing ran.`}));return}let i;try{i=await c(this,fn).handleCommand(o)}catch(a){i={ok:!1,error:a instanceof Error?a.message:String(a)}}T(this,ze,Rd).call(this,lo({kind:on.COMMAND_RESULT,id:o.id,ok:i.ok,result:i.result,error:i.error}))},Rd=function(t,n){if(c(this,Wt)!==void 0&&c(this,Wt).readyState===WebSocket.OPEN){c(this,Wt).send(t);return}if(c(this,ei).length+c(this,Wi).length>=t3){let i=c(this,ei).length>0?c(this,ei).shift():c(this,Wi).shift();if((i==null?void 0:i.event)!==void 0){g(this,Gc,c(this,Gc)+1);let s=c(this,qs);(s===void 0||i.event.t<s.t)&&g(this,qs,i.event)}}let r=n!==void 0&&TO.has(n.type),o=fA(this,lm)._++;r?c(this,ei).push({text:t,event:n,order:o}):c(this,Wi).push({text:t,event:n,order:o})},sk=function(t,n){let r=c(this,qs);if(r===void 0)return;let o={t:r.t,seq:r.seq,type:w.TRANSPORT_OVERFLOW,sessionId:n,data:{dropped:c(this,Gc)}};t.send(lo({kind:on.EVENT,event:o})),g(this,qs,void 0),g(this,Gc,0)};$S();Xo();M();Ws();function ck(){let e=[$.UI,$.NET,$.LOG,$.ROUTE,$.STORAGE,$.TIME,$.SIGNAL];return Fi().length>0?[...e,$.STATE]:e}M();var o3="__TAURI_INTERNALS__";function lk(){if(typeof window=="undefined")return ro.SERVICE;let e=window;return e[Bo]!==void 0||e[o3]!==void 0?ro.WEBVIEW:ro.WEB}var i3=[H.SNAPSHOT,H.QUERY,H.MATCH,H.INSPECT,H.ACT,H.ACT_SEQUENCE,H.ANIMATIONS,H.NARRATE,H.CLOCK,H.CAPABILITIES,H.STATE_READ,H.STORAGE_READ,H.SCROLL,H.SESSION_CONFIG,H.PRESENTER,H.IMPACT,H.CAPTURE,H.RENDER,H.NAVIGATE,H.REFRESH,H.FLOWS,H.FLOW_PROGRESS,H.PLAN,H.MARKERS];function uk(){return[...i3]}Gi();Ot();M();At();Ko();xt();lt();jo();dn();function s3(e){var t,n;try{return(n=(t=e.contentDocument)==null?void 0:t.body)!=null?n:null}catch{return null}}function kS(e){let t=[],n=(r,o)=>{if(!(o>=3))for(let i of r.querySelectorAll("iframe")){let s=s3(i);s!==null&&(t.push(s),n(s,o+1))}};return n(e,0),t}function dk(e){let t=new AbortController,n=()=>{for(let o of kS(document))e(o)};n();let r=o=>{o.target instanceof HTMLIFrameElement&&n()};return document.addEventListener("load",r,{capture:!0,signal:t.signal}),()=>t.abort()}function pk(e){var r;let t=wn(e)?e:null;if(t===null)return;let n=t.closest(Vn());return(r=n?ve(n):null)!=null?r:re.refFor(t)}var a3=["class","hidden","disabled","open","aria-hidden","aria-expanded","aria-selected","aria-checked","data-state","style","src","href","value"],fk=120;function dm(e){if(e!==null)return e.length>fk?`${e.slice(0,fk)}\u2026`:e}var c3=new Set(["dialog","alertdialog"]),l3=new Set(["alert","status"]),Ld=40;function hk(e,t){return e!=="generic"||t.length>0}var u3=40;function mk(e){let t=ke(e),n=Ne(e);if(hk(t,n))return{role:t,name:n,el:e};let r=0;for(let o of e.querySelectorAll("*")){if(r>=u3)return;if(r+=1,Pi(o))continue;let i=ke(o),s=Ne(o);if(hk(i,s))return{role:i,name:s,el:o}}}var d3=3;function zS(e){var r;let t="";for(let o of e)o.nodeType===d3&&(t+=(r=o.nodeValue)!=null?r:"");let n=t.trim();return n.length>0?n:void 0}var p3=new Set(["class","style","type","disabled","readonly","required","hidden"]);function f3(e,t){return!p3.has(t)&&!t.startsWith("aria-")&&pn(e)}var h3=3,m3=50;function g3(e){let t=e;for(let n=0;t!==null&&n<=h3;n+=1){let r=ve(t);if(r!==null&&r.length>0)return r;t=t.parentElement}}var gk=e=>{let t=g3(e);return t===void 0?{}:{testid:t}};function Ek(e){let t=$0(),n=new MutationObserver(s=>{var m,h,E,_,A,v,N;let a=0,l=0,u=0,d=0,f=0;for(let O of s){if(O.type==="attributes"){let k=O.target;if(wn(k)&&O.attributeName!==null&&!Pi(k)){if(u>=Ld){f+=1;continue}u+=1;let j=f3(k,O.attributeName),Y=j?we:dm(k.getAttribute(O.attributeName)),X=j&&O.oldValue!==null?we:dm(O.oldValue);e(w.DOM_ATTR,{attr:O.attributeName,...Y===void 0?{}:{value:Y},...X===void 0?{}:{old:X}},re.refFor(k))}continue}if(O.type==="characterData"){let k=O.target.parentElement;if(k!==null&&!Pi(k)){if(u>=Ld){f+=1;continue}u+=1;let j=pn(k),Y=j?we:((m=O.target.textContent)!=null?m:"").trim().slice(0,80),X=j?void 0:dm((E=(h=O.oldValue)==null?void 0:h.trim())!=null?E:null);e(w.DOM_TEXT,{text:Y,...X===void 0?{}:{old:X},...gk(k)},re.refFor(k))}continue}if(zS(O.addedNodes)!==void 0||zS(O.removedNodes)!==void 0){let k=wn(O.target)?O.target:null;if(k!==null&&!Pi(k))if(u>=Ld)f+=1;else{u+=1;let j=pn(k),Y=j?we:((_=k.textContent)!=null?_:"").trim().slice(0,80),X=j?void 0:dm((A=zS(O.removedNodes))!=null?A:null);e(w.DOM_TEXT,{text:Y,...X===void 0?{}:{old:X},...gk(k)},re.refFor(k))}}for(let k of O.addedNodes){if(!wn(k))continue;if(a>=Ld){f+=1;continue}if(Pi(k))continue;let j=[k,...Array.from(k.querySelectorAll(Vn()))].filter(ye=>ve(ye)!==null);for(let ye of j){let me=((v=ye.textContent)!=null?v:"").trim();if(me.length===0)continue;if(d>=m3){f+=1;continue}d+=1;let nt=pn(ye)?we:me.slice(0,80);e(w.DOM_TEXT,{text:nt,testid:(N=ve(ye))!=null?N:"",initial:!0},re.refFor(ye))}let Y=mk(k);if(Y===void 0)continue;let{role:X,name:G}=Y;a+=1;let ee=re.refFor(Y.el);e(w.DOM_ADDED,{role:X,name:G,region:pk(O.target)},ee),(c3.has(X)||l3.has(X)||k.getAttribute("aria-modal")==="true")&&ct(k)&&e(w.VISIBLE_SHOWN,{role:X,name:G},ee)}for(let k of O.removedNodes){if(!wn(k))continue;if(l>=Ld){f+=1;continue}if(Pi(k)||wn(O.target)&&Pi(O.target))continue;let j=mk(k);if(j===void 0)continue;let{role:Y,name:X}=j;l+=1,e(w.DOM_REMOVED,{role:Y,name:X,region:pk(O.target)})}}f>0&&e(w.TRUNCATED,{channel:Ff.DOM,dropped:f})}),r={subtree:!0,childList:!0,attributes:!0,attributeFilter:a3,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0};n.observe(document.documentElement,r);for(let s of I0())n.observe(s,r);let o=L0(s=>n.observe(s,r)),i=dk(s=>n.observe(s,r));return()=>{i(),o(),t(),n.disconnect()}}M();Ws();cr();function bk(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function E3(e,t){if(!bk(e)||!bk(t))return Object.is(e,t)?[]:[{path:"",old:e,new:t}];let n=[];for(let r of new Set([...Object.keys(e),...Object.keys(t)]))Object.is(e[r],t[r])||n.push({path:r,old:e[r],new:t[r]});return n}function _k(e,t){return bt(e)?we:sd(t)}function Sk(e,t){if(Object.is(e,t))return!0;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}function Tk(e){try{return e()}catch{return}}function xk(e){let t=new Map,n=([o,i,s])=>{var l;try{(l=t.get(o))==null||l()}catch{}let a=Tk(i);t.set(o,s(()=>{oe(()=>{let u=Tk(i),d=E3(a,u);a=u;for(let f of d){let m=_k(f.path,f.new),h=_k(f.path,f.old);(bt(f.path)?Sk(sd(f.old),sd(f.new)):Sk(h,m))||oe(()=>e(w.STATE_CHANGE,{name:o,path:f.path,value:m,old:h}))}})}))};for(let o of pL())n(o);t.size===0&&e(w.BLIND_SPOT,{kind:cn.UNWATCHED_STATE,count:1});let r=lL(o=>{let i=t.size===0;n(o),i&&t.size>0&&e(w.BLIND_SPOT,{kind:cn.UNWATCHED_STATE,count:0})});return()=>{r();for(let o of t.values())try{o()}catch{}t.clear()}}M();At();function Kc(e){if(!(e instanceof Element)||e===document.body)return;let t=ke(e),n=Ne(e);return n.length>0?`${t} "${n}"`:t}function b3(e){return e===null||e===document.body}function Ak(e){let t=new AbortController,{signal:n}=t,r=null,o=s=>{let a=s.target,l=r;r=a,e(w.FOCUS_CHANGE,{...Kc(a)===void 0?{}:{to:Kc(a)},...Kc(l)===void 0?{}:{from:Kc(l)},toBody:b3(a)})},i=s=>{if(s.relatedTarget!==null)return;let a=r;r=null,e(w.FOCUS_CHANGE,{...Kc(a)===void 0?{}:{from:Kc(a)},toBody:!0})};return document.addEventListener("focusin",o,{signal:n}),document.addEventListener("focusout",i,{signal:n}),()=>t.abort()}M();function _3(e){let t=e;for(let n=0;n<3;n+=1){let r=Array.from(t.children).filter(i=>i instanceof HTMLElement),o=r.length===1?r[0]:void 0;if(o===void 0||o.offsetHeight<t.scrollHeight*.9)return t;t=o}return t}function S3(e){let t=e.scrollHeight,n=e.clientHeight;if(n<=0||t<n*1.2)return 0;let r=_3(e),o=Array.from(r.children).filter(m=>m instanceof HTMLElement);if(o.length<2)return 0;let i=1/0,s=0,a=0,l=e.getBoundingClientRect(),u=e.offsetHeight>0&&l.height>0?l.height/e.offsetHeight:1;for(let m of o){let h=(m.getBoundingClientRect().top-l.top)/u-e.clientTop+e.scrollTop,E=h+m.offsetHeight;h<i&&(i=h),E>s&&(s=E),a+=m.offsetHeight}let d=Math.max(0,i)+Math.max(0,t-s);if(d<t*.25)return 0;let f=a/o.length;return f<=0?0:Math.round(d/f)}function yk(){let e=0;for(let t of document.querySelectorAll("*"))t.scrollHeight<=t.clientHeight||(e+=S3(t));return e}jo();mt();function T3(){var t;let e=0;for(let n of document.querySelectorAll("*"))n.tagName.includes("-")&&n.shadowRoot===null&&(C0(n)||n.children.length>0||((t=n.textContent)!=null?t:"").trim().length>0||n.offsetHeight<=0&&n.offsetWidth<=0||(e+=1));return e}function x3(e){let t=e.getAttribute("src");if(t===null||t.length===0)return!1;try{return e.contentDocument===null}catch{return!0}}function A3(e){let t=0;for(let n of e)x3(n)&&(t+=1);return t}function y3(){return A3(Array.from(document.querySelectorAll("iframe")))}function w3(){return kS(document).length}var v3=250;function wk(e){let t=[{kind:cn.CROSS_ORIGIN_IFRAME,count:y3},{kind:cn.UNINSTRUMENTED_FRAME,count:w3},{kind:cn.CLOSED_SHADOW_ROOT,count:T3},{kind:cn.VIRTUALIZED_UNMOUNTED,count:yk}],n=new Map,r=()=>{for(let s of t){let a=s.count(),l=n.get(s.kind);a!==l&&(n.set(s.kind,a),(a>0||l!==void 0)&&e(w.BLIND_SPOT,{kind:s.kind,count:a}))}};r();let o,i=new MutationObserver(()=>{o===void 0&&(o=ue(()=>{o=void 0,r()},v3))});return i.observe(document.documentElement,{childList:!0,subtree:!0}),()=>{o!==void 0&&Re(o),i.disconnect()}}M();Vo();M();cr();mt();M();cr();var N3=/^text\/event-stream(?:\s*;|\s*$)/i,DS="data:",R3="data",O3=/^[{[]/,I3=/^\[[A-Z_]+\]$/;function qi(e){return e!==null&&N3.test(e)}function vk(e){return R3===e||e.startsWith(DS)}function Nk(e){let t=!1;return{body:e.replace(/\r\n?/g,`
1824
+ `});var Z2={};Ya(Z2,{HUD_CONTROL_SELECTORS:()=>V2,TOUR_SEEN_KEY_PREFIX:()=>bh,isLastSlide:()=>iA,mountTour:()=>HW,openedByReticle:()=>j2,safeLocalStorage:()=>FW,tourAlreadySeen:()=>K2,tourSeenKey:()=>sA});function PW(e,t){var s;let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,i=Number.NEGATIVE_INFINITY;for(let a of t){let l=(s=e.querySelector(a))==null?void 0:s.getBoundingClientRect();l===void 0||l.width<=0||l.height<=0||(n=Math.min(n,l.left),r=Math.min(r,l.top),o=Math.max(o,l.left+l.width),i=Math.max(i,l.top+l.height))}if(o!==Number.NEGATIVE_INFINITY)return{left:n,top:r,width:o-n,height:i-r}}function MW(e,t){var r;if(ot.HUD===t)return PW(e,DW);let n=V2[t];if(n!==void 0){let o=(r=e.querySelector(n))==null?void 0:r.getBoundingClientRect();return o===void 0?void 0:o}if(ot.APP===t)for(let o of zW){let i=e.querySelector(o);if(i===null)continue;let s=i.getBoundingClientRect();if(s.width>0)return s}}function j2(e){if(e===void 0||e==="")return!1;let t=new URLSearchParams(e.startsWith("?")?e.slice(1):e);return t.has(rr.OPENED)||t.has(rr.SESSION)||t.has(rr.PROJECT)}function K2(e,t){if(e===void 0)return!0;try{return e.getItem(sA(t))!==null}catch{return!0}}function UW(e,t){try{e==null||e.setItem(sA(t),"1")}catch{}}function HW(e){var A;if(e.isDriving()||j2(e.search)||((A=e.navigator)==null?void 0:A.webdriver)===!0||K2(e.storage,e.projectId))return;let t=e.document,n=t.createElement("style");n.setAttribute(Te,""),n.textContent=B2,t.head.appendChild(n);let r=t.createElement("div");r.setAttribute(Te,"");let o=rA(),i=0,s=!0,a=()=>{},l=()=>{},u=()=>{s&&(s=!1,a(),l(),r.remove(),n.remove())},d=()=>{s&&(UW(e.storage,e.projectId),u())},f=()=>{e.isDriving()&&u()},m=()=>{var N,O,k,j;let v=o[i];if(v!==void 0&&(r.innerHTML=`<div class="reticle-tour-scrim"></div>${F2(v)}`,ot.NONE!==v.anchor)){let Y=MW(t,v.anchor);if(Y!==void 0&&Y.width>0){let X=ot.APP===v.anchor,G=t.createElement("div");G.className=X?"reticle-tour-ring is-region":"reticle-tour-ring";let ee=X?-2:6;if(G.style.left=`${String(Math.round(Y.left-ee))}px`,G.style.top=`${String(Math.round(Y.top-ee))}px`,G.style.width=`${String(Math.round(Y.width+ee*2))}px`,G.style.height=`${String(Math.round(Y.height+ee*2))}px`,r.appendChild(G),X||(N=r.querySelector(".reticle-tour-scrim"))==null||N.classList.add("is-clear"),U2(v)){G.classList.add("is-live"),(O=r.querySelector(".reticle-tour-scrim"))==null||O.remove();let be=t.defaultView;for(let me of H2({left:Y.left-ee,top:Y.top-ee,width:Y.width+ee*2,height:Y.height+ee*2},(k=be==null?void 0:be.innerWidth)!=null?k:t.documentElement.clientWidth,(j=be==null?void 0:be.innerHeight)!=null?j:t.documentElement.clientHeight)){let it=t.createElement("div");it.className="reticle-tour-blocker",it.style.left=`${String(Math.round(me.left))}px`,it.style.top=`${String(Math.round(me.top))}px`,it.style.width=`${String(Math.round(me.width))}px`,it.style.height=`${String(Math.round(me.height))}px`,r.appendChild(it)}}}}},h=v=>{var G,ee;let N=o[i],O=Number(v.getAttribute(Vp)),k=(G=N==null?void 0:N.prompts)==null?void 0:G[O];if(k===void 0)return;let j=(be,me)=>{var it;v.textContent=be,v.classList.add(me),(it=t.defaultView)==null||it.setTimeout(()=>{v.textContent=nA,v.classList.remove(me)},M2)},Y=be=>{var it;if(be){j(D2,"is-done");return}let me=r.querySelector(`.reticle-tour-prompt[${Vp}="${String(O)}"] .reticle-tour-prompt-text`);me!==null&&((it=e.select)==null||it.call(e,me)),j(P2,"is-manual")},X=(ee=e.copy)==null?void 0:ee.call(e,k.text);if(X===void 0){Y(!1);return}if(typeof X=="boolean"){Y(X);return}X.then(Y).catch(()=>{Y(!1)})};r.addEventListener("click",v=>{let N=v.target;if(!(N instanceof Element))return;let O=N.closest(`[${xi}]`);if(O===null)return;let k=O.getAttribute(xi);if(k===null)return;if(v.preventDefault(),v.stopPropagation(),k==="skip"||k==="done"){d();return}if(k==="copy"){h(O);return}let j=oA(i,k==="back"?-1:1);j!==i&&(i=j,m())});let E=v=>{if(!s||gh(t))return;let N=v.key==="ArrowRight"?1:v.key==="ArrowLeft"?-1:0;if(v.key==="Escape"){v.preventDefault(),d();return}if(N===0)return;let O=oA(i,N);O!==i&&(v.preventDefault(),i=O,m())};t.addEventListener("keydown",E),a=()=>{t.removeEventListener("keydown",E)},m(),t.body.appendChild(r);let _=t.querySelector("[data-reticle-overlay]");if(_!==null){let v=new MutationObserver(f);v.observe(_,{attributes:!0,attributeFilter:["data-reticle-mode"]}),l=()=>v.disconnect(),f()}return{destroy:d,isOpen:()=>s}}function FW(){try{return window.localStorage}catch{return}}var zW,DW,V2,sA,W2=y(()=>{"use strict";G2();eA();M();nt();po();zW=["main","#root","#app"],DW=["[data-reticle-hud]","[data-reticle-chat-panel]"];V2={[ot.HUD_CHAT]:"[data-reticle-chat-toggle]",[ot.HUD_FLOWS]:'[data-reticle-chat-view-btn="flows"]',[ot.HUD_ANNOTATE]:'[data-reticle-chat-view-btn="annotations"]',[ot.HUD_IMPACT]:"[data-reticle-chat-impact]",[ot.HUD_SETTINGS]:"[data-reticle-settings-btn]"};sA=e=>`${bh}${e}`});var tY={};Ya(tY,{Annotator:()=>da,RefRegistry:()=>nd,Reticle:()=>du,SESSION_AUTO:()=>Fu,adapterNames:()=>hd,buildSnapshot:()=>Lh,canvasChartData:()=>wC,commitAndSignal:()=>E5,createReticleEmitter:()=>g5,describe:()=>ho,elementHasHoverHandlers:()=>Rh,executeAction:()=>Nd,executeSequence:()=>im,getAccessibleName:()=>we,getCapabilities:()=>ji,getRole:()=>Le,getStates:()=>Jo,hasCapabilities:()=>Mh,identifyComponent:()=>dr,inspectChart:()=>xh,installAnnotator:()=>yD,isVisible:()=>Je,jotaiStore:()=>c5,markAdapterSource:()=>kh,matchQuery:()=>_d,mobxStore:()=>d5,piniaStore:()=>h5,pushStore:()=>m5,readComponentState:()=>Nh,readStores:()=>TL,readStoresWithTruncation:()=>Ed,recoilStore:()=>p5,refs:()=>re,registerAdapter:()=>HC,registerCapabilities:()=>Ic,registerReticleDomain:()=>b5,registerStore:()=>bL,resolveMarkAnchor:()=>Ud,reticle:()=>pu,runQuery:()=>Vh,setCapabilitiesListener:()=>Ph,setIgnoreSelectors:()=>pC,sourceOwner:()=>AL,storeNames:()=>Vi,svelteStore:()=>f5,tanstackQueryStore:()=>a5,trackShortTimers:()=>eY,unregisterStore:()=>_L,valtioStore:()=>u5,xstateStore:()=>l5});nt();M();Wo();function hC(e,t){t(Lu,{delta:1});let n=()=>{t(Lu,{delta:-1})};return e.then(n,n),e}var E4=1e3;function mC(e,t=E4){let n=ke(window,"setTimeout"),r=ke(window,"clearTimeout"),o=n.bind(window),i=r.bind(window),s=new Set,a=l=>{s.delete(l)&&e(Lu,{delta:-1})};return window.setTimeout=((l,u=0,...d)=>{if(typeof l!="function"||u>t)return Reflect.apply(n,window,[l,u,...d]);e(Lu,{delta:1});let f=o(()=>{a(f),l(...d)},u);return s.add(f),f}),window.clearTimeout=(l=>{l!==void 0&&a(l),i(l)}),()=>{window.setTimeout=n,window.clearTimeout=r}}M();function oe(e){try{e()}catch{}}function Zt(e){try{return e()}catch{return}}Wo();M();function b4(){return{pathname:location.pathname,search:location.search,hash:location.hash,href:location.href}}var gC=[];function EC(e){gC=e.map(t=>({pattern:t,parts:t.split("/").filter(Boolean)}))}function _4(){var t,n;let e=(n=(t=globalThis.next)==null?void 0:t.router)==null?void 0:n.pathname;if(!(typeof e!="string"||!e.startsWith("/")))return e.replace(/\[\.\.\.[^\]]+\]/g,"*").replace(/\[([^\]]+)\]/g,":$1")}function S4(e){var r;let t=e.split("/").filter(Boolean),n;for(let{pattern:o,parts:i}of gC){let s=i.at(-1)==="*",a=s?i.slice(0,-1):i;if((s?t.length<a.length:t.length!==a.length)||!a.every((u,d)=>u.startsWith(":")||u===t[d]))continue;let l=i.filter(u=>u.startsWith(":")||u==="*").length;(n===void 0||l<n.params)&&(n={pattern:o,params:l})}return(r=n==null?void 0:n.pattern)!=null?r:_4()}function bC(e){let t=new AbortController,n=ke(history,"pushState"),r=ke(history,"replaceState"),o=n.bind(history),i=r.bind(history),s=location.href,a=(f,m)=>{oe(()=>{let h=b4();if(h.href===f)return;s=h.href;let E=S4(h.pathname);e(w.ROUTE_CHANGE,{from:cr(f),to:cr(h.href),pathname:h.pathname,...E===void 0?{}:{pattern:E},search:cr(h.search),hash:cr(h.hash),[m_]:m})})},l=(f,m,h)=>{let E=location.href;o(f,m,h!=null?h:null),a(E,Wu.PUSH)},u=(f,m,h)=>{let E=location.href;i(f,m,h!=null?h:null),a(E,Wu.REPLACE)};history.pushState=l,history.replaceState=u;let d=()=>{a(s,Wu.POP)};return window.addEventListener("popstate",d,{signal:t.signal}),window.addEventListener("hashchange",d,{signal:t.signal}),()=>{history.pushState===l&&(history.pushState=n),history.replaceState===u&&(history.replaceState=r),t.abort()}}M();Et();dn();var H4=new Set(["submit","button","reset","image"]);function F4(e){return ut(e)&&e.isContentEditable||e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!H4.has(e.type.toLowerCase()):!1}var B4="A";function OC(e){if(B4!==e.tagName)return;let t=e.getAttribute("href");return t===null||cI(t)?void 0:t}function IC(e){var o,i,s,a,l,u;let t=OC(e);if(t!==void 0)return t;let n=e.closest("form"),r=F4(e)?["",""]:[(o=e.textContent)!=null?o:"",(i=e.getAttribute("value"))!=null?i:""];return[ju(we(e)),ju(r.join(" ")),ju((s=e.getAttribute("title"))!=null?s:""),ju((a=e.getAttribute("aria-label"))!=null?a:""),(l=e.getAttribute("href"))!=null?l:"",(u=n==null?void 0:n.getAttribute("action"))!=null?u:""].join(" ")}var G4='button[type="submit"], input[type="submit"], button:not([type]):not([type=""])';function CC(e){var n;let t=(n=e.closest("form"))==null?void 0:n.querySelector(G4);return ut(t)?t:null}function vh(e){let t=OC(e);return t!==void 0?lI(t):aI(IC(e),Le(e))}var dd;function Y_(e){dd=e}function LC(e){if(dd!==void 0)for(let t of e){if(t===null)continue;let n=pI(IC(t),Le(t));if(n!==void 0&&!dd.includes(n))throw new Error(l_(n))}}function $C(e){var n,r,o,i,s;if(dd===void 0||dd.includes(Tt.PAY))return;let t={autocomplete:(n=e.getAttribute("autocomplete"))!=null?n:void 0,name:(r=e.getAttribute("name"))!=null?r:void 0,id:(o=e.getAttribute("id"))!=null?o:void 0,inputMode:(i=e.getAttribute("inputmode"))!=null?i:void 0,label:`${we(e)} ${(s=e.getAttribute("placeholder"))!=null?s:""}`};if(dI(t))throw new Error(l_(Tt.PAY))}M();Ot();var kC=(e,t)=>Array.from(e.querySelectorAll(t)).some(n=>n.closest(Vu)===null);function zC(e){return[...kC(e,`[${fc}]`)?[Gs.SOURCE]:[],...kC(e,Vn())?[Gs.TESTID]:[]]}function DC(e){return e.buildPlugin||0<e.adapters.length||e.markers.includes(Gs.SOURCE)?[]:[Qf]}M();po();var PC=At.SESSION;function MC(e,t,n){var a;let r=()=>{try{let l=t==null?void 0:t.getItem(PC);return l!=null&&l.length>0?l:void 0}catch{return}},o=l=>{try{t==null||t.setItem(PC,l)}catch{}},i=e!==void 0&&e.length>0?e:void 0,s=(a=i!=null?i:r())!=null?a:n();return o(s),s}gt();var V4="vite:afterUpdate",j4=3,K4="no longer resolves to an element",Z4="the code changed underneath it";function X_(e){return e!==null&&typeof e=="object"?e:void 0}function W4(e){var t;return typeof((t=X_(e))==null?void 0:t.on)=="function"}function Y4(e){var r,o;let t=(r=X_(e))==null?void 0:r.updates;if(!Array.isArray(t))return[];let n=[];for(let i of t){let s=(o=X_(i))==null?void 0:o.path;typeof s=="string"&&s.length>0&&!n.includes(s)&&n.push(s)}return n}var pd,wc,vc,q_=class{constructor(t){x(this,pd,0);x(this,wc,[]);x(this,vc);g(this,vc,t)}get current(){return c(this,pd)}observe(t){W4(t)&&t.on(V4,n=>this.applied(Y4(n)))}applied(t){g(this,pd,c(this,pd)+1),g(this,wc,t.slice(0,j4)),c(this,vc).markEdited()}staleRefMessage(t){let n=`ref '${kr(t)}' ${K4}`;if(!c(this,vc).mintedBeforeLastEdit(t))return n;let r=c(this,wc).length===0?"the page hot-updated":`${c(this,wc).join(", ")} hot-updated`;return`${n} \u2014 ${r} after this ref was taken, so ${Z4} and the framework replaced the node. Query again for a fresh ref: this is your own edit landing, not the app failing.`}};pd=new WeakMap,wc=new WeakMap,vc=new WeakMap;var fd=new q_(re);M();M();Yo();dn();Et();uo();gt();Ot();Qo();gt();Et();nt();var Q_={CLIPPED:"clipped",OVERLAP:"overlap",CONTRAST:"contrast"},eS=20,X4=300,q4=60,FC=1,BC=.25,J4=4.5,Q4=3,ej=24,tj=18.66,nj=700,rj='button, a[href], input:not([type="hidden"]), select, textarea, [role="button"], [role="link"], [role="tab"], [role="menuitem"]',GC=/rect\(\s*0(px)?[\s,]+0(px)?[\s,]+0(px)?[\s,]+0(px)?\s*\)|inset\(\s*50%/,VC=4,jC=e=>{let t=e.getBoundingClientRect();if(t.width<VC||t.height<VC)return null;let n=getComputedStyle(e);return n.visibility==="hidden"||n.display==="none"||n.opacity==="0"||GC.test(n.clip)||GC.test(n.clipPath)?null:t},KC=e=>{var t;return(we(e)||((t=e.textContent)!=null?t:"")).replace(/\s+/g," ").trim().slice(0,q4)},oj=e=>[...e.childNodes].filter(t=>Node.TEXT_NODE===t.nodeType).map(t=>{var n;return(n=t.textContent)!=null?n:""}).join("").trim(),ZC=new Set(["hidden","clip"]),ij=e=>{let t=getComputedStyle(e),n=e.scrollWidth>e.clientWidth+FC&&ZC.has(t.overflowX),r=e.scrollHeight>e.clientHeight+FC&&ZC.has(t.overflowY);return t.textOverflow==="ellipsis"||t.getPropertyValue("-webkit-line-clamp")!==""&&t.getPropertyValue("-webkit-line-clamp")!=="none"||!n&&!r?null:n?{detail:`${String(e.scrollWidth)}px of text in a ${String(e.clientWidth)}px box, cut with no ellipsis`,value:e.scrollWidth,bound:e.clientWidth}:{detail:`${String(e.scrollHeight)}px of text in a ${String(e.clientHeight)}px box, cut with no line clamp`,value:e.scrollHeight,bound:e.clientHeight}},sj=/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+([\d.]+%?))?\s*\)/,XC=e=>{let t=sj.exec(e);if(t===null)return null;let n=t[4],r=1;return n!==void 0&&(r=n.endsWith("%")?Number(n.slice(0,-1))/100:Number(n)),[Number(t[1]),Number(t[2]),Number(t[3]),r]},WC=([e,t,n])=>{let r=o=>{let i=o/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)},qC=(e,t)=>{let n=e[3];return[e[0]*n+t[0]*(1-n),e[1]*n+t[1]*(1-n),e[2]*n+t[2]*(1-n),1]},aj=e=>{let t=[];for(let n=e;n!==null;n=n.parentElement){let r=getComputedStyle(n);if(r.backgroundImage!=="none"&&r.backgroundImage!=="")return null;let o=XC(r.backgroundColor);if(o!==null&&o[3]>0&&(t.push(o),o[3]===1))break}return t.reduceRight((n,r)=>qC(r,n),[255,255,255,1])},cj=e=>{let t=getComputedStyle(e),n=XC(t.color),r=aj(e);if(n===null||r===null)return null;let o=qC(n,r),[i,s]=[WC(o),WC(r)].sort((d,f)=>f-d),a=Number.parseFloat(t.fontSize),l=Number.parseInt(t.fontWeight,10),u=a>=ej||a>=tj&&l>=nj;return{ratio:(i+.05)/(s+.05),min:u?Q4:J4}},JC=(e,t,...n)=>{if(typeof document.elementFromPoint!="function")return!0;let r=document.elementFromPoint(e,t);return r!==null&&n.some(o=>o===r||o.contains(r))},Gi=2,YC=(e,t)=>[[t.left+t.width/2,t.top+t.height/2],[t.left+Gi,t.top+Gi],[t.right-Gi,t.top+Gi],[t.left+Gi,t.bottom-Gi],[t.right-Gi,t.bottom-Gi]].some(([n=0,r=0])=>JC(n,r,e)),lj=(e,t)=>{let n=Math.min(e.right,t.right)-Math.max(e.left,t.left),r=Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top);return n<=0||r<=0?0:n*r/Math.min(e.width*e.height,t.width*t.height)};function QC(e=document.body){let t=[],n=(o,i,s)=>{t.length<eS&&t.push({kind:o,ref:re.refFor(i),what:KC(i),...s})};for(let o of e.querySelectorAll("*")){if(t.length>=eS)break;if(Mt(o)||oj(o)==="")continue;let i=jC(o);if(i===null||!JC(i.left+i.width/2,i.top+i.height/2,o))continue;let s=ij(o);s!==null&&n(Q_.CLIPPED,o,s);let a=cj(o);a!==null&&a.ratio<a.min&&n(Q_.CONTRAST,o,{detail:`contrast ${a.ratio.toFixed(2)}:1, under ${String(a.min)}:1`,value:Math.round(a.ratio*100)/100,bound:a.min})}let r=[...e.querySelectorAll(rj)].filter(o=>!Mt(o)).slice(0,X4).flatMap(o=>{let i=jC(o);return i===null?[]:[{el:o,rect:i}]});for(let[o,i]of r.entries())for(let s of r.slice(o+1)){if(t.length>=eS)return t;if(i.el.contains(s.el)||s.el.contains(i.el))continue;let a=lj(i.rect,s.rect);a>=BC&&YC(i.el,i.rect)&&YC(s.el,s.rect)&&n(Q_.OVERLAP,i.el,{detail:`drawn over "${KC(s.el)}" (${re.refFor(s.el)})`,value:Math.round(a*100)/100,bound:BC})}return t}md();nt();var Rc=new Set(["button","link","textbox","searchbox","checkbox","radio","combobox","listbox","slider","spinbutton","switch","tab","menuitem","option"]),uj=new Set(["script","style","noscript","template","head","meta","link"]),dj=new Set(["alert","status"]);function nL(e,t){if(dj.has(t))return!0;let n=e.getAttribute("aria-live");return n!==null&&n!=="off"}var eL=80;function pj(e){let t=rL(e),n=(t.own?t.text:"").replace(/\s+/g," ").trim();return n.length>eL?`${n.slice(0,eL)}\u2026`:n}function rL(e){var r,o;let t="",n=!1;for(let i of e.childNodes)if(i.nodeType===3)t+=(r=i.textContent)!=null?r:"",n||(n=0<((o=i.textContent)!=null?o:"").trim().length);else if(wn(i)&&iL(i)){let s=rL(i);t+=s.text,n||(n=s.own)}else wn(i)&&oL(i)&&Rc.has(Le(i))&&(t+=we(i));return{text:t,own:n}}function oL(e){let t=e.ownerDocument.defaultView,n=e.parentElement;if(t===null||n===null)return!1;let r=t.getComputedStyle(n).display;return r.includes("flex")||r.includes("grid")?!1:t.getComputedStyle(e).display==="inline"}function iL(e){if(aL(e)||!oL(e))return!1;let t=Le(e);return!Rc.has(t)&&!nL(e,t)&&we(e).length===0}var fj=50;function sL(e){return e.getAttribute("aria-hidden")==="true"?!0:e instanceof HTMLElement&&e.hidden}function aL(e){return uj.has(e.tagName.toLowerCase())||Mt(e)?!0:sL(e)}function hj(e){let t=Jo(e).filter(n=>n===Se.DISABLED||n===Se.CHECKED||n===Se.EXPANDED||n===Se.PRESSED||n===Se.FOCUSED);return t.length>0?` [${t.join(",")}]`:""}function mj(e,t,n,r,o,i="",s=!1){let a=" ".repeat(t),l=W_(e),u=r,d=u.length>0?` "${u}"`:"",f=Rc.has(n)||u.length>0?` (ref=${re.refFor(e)})`:"",m=l!==void 0&&l.length>0?` [value="${l}"]`:"",h=o.length>0?` [${o}]`:"",E=i.length>0?` [text="${i}"]`:"",_=s?Ne(e):null,A=s?dr(e):null,v=_===null?A==null?void 0:A.componentStack[0]:void 0,N=A==null?void 0:A.source,O="";_!==null?O=` [testid=${_}]`:v!==void 0&&(O=` [component=${v}]`);let k=`${O}${N===void 0?"":` [src=${N.file}:${String(N.line)}]`}`;return`${a}- ${n}${d}${f}${m}${E}${h}${hj(e)}${k}`}function gj(e,t){return`${" ".repeat(e)}- text "${t}"`}function Ej(e){if(e===null)return"";let t=e.display;if(t==="grid"||t==="inline-grid"){let n=e.gridTemplateColumns;return n!==""&&n!=="none"?`grid-cols:${n}`:"grid"}return""}var cL=e=>e.hasAttribute("data-aria-hidden")&&e.getAttribute("aria-hidden")==="true";function tL(e,t){for(let n of e){if(t.unread.length>=fj){t.unreadOverflow=!0;return}t.unread.push(re.refFor(n))}}function bj(e){var r,o;let t=[...e.children],n=(r=e.shadowRoot)!=null?r:Ks(e);if(n!==null&&t.push(...n.children),fh(e))try{let i=(o=e.contentDocument)==null?void 0:o.body;i!=null&&t.push(...i.children)}catch{}return t}function tS(e,t,n,r){if(!(n.throughOverlay===!0&&cL(e)&&!Mt(e)&&!(e instanceof HTMLElement&&e.hidden))&&aL(e)){sL(e)&&(n.hiddenSkipped+=1);return}let i=e.ownerDocument.defaultView,s=i!==null?i.getComputedStyle(e):null;if(s!==null&&s.display==="none"){n.hiddenSkipped+=1;return}if(s!==null&&s.display==="inline"&&!r&&iL(e)){Ch(e,t,n,r);return}let a=Le(e),l=we(e),u=Rc.has(a),d=r||nL(e,a),f=n.mode===lc.INTERACTIVE&&!d,m=!f&&l.length===0?pj(e):"",h=f?"":Ej(s),E=u,_=E||a!=="generic"||l.length>0||m.length>0||h.length>0,A=f?E:_;f&&!A&&_&&(n.leanSkipped+=1),A?(n.nodes+=1,n.lines.push(a==="generic"&&m.length>0&&h.length===0?gj(t,m):mj(e,t,a,l,h,m,n.ids===!0)),Ch(e,t+1,n,d)):Ch(e,t,n,d)}function Ch(e,t,n,r=!1){let o=bj(e);if(t>n.maxDepth){o.length>0&&(n.truncated=!0,tL([e],n));return}for(let i=0;i<o.length;i+=1){if(n.nodes>=n.maxNodes){n.truncated=!0,tL(o.slice(i),n);return}let s=o[i];s!==void 0&&tS(s,t,n,r)}}function _j(e){let t=e.querySelectorAll('[role="dialog"], dialog[open], [aria-modal="true"]'),n=[];for(let r of t)Rt(r)||Je(r)&&n.push(we(r)||"(unnamed dialog)");return n}var Sj='[role="dialog"], [role="alertdialog"], dialog[open], [aria-modal="true"]';function Tj(e){if(e!==document.body)return;let t=document.body.querySelectorAll('[role="dialog"], dialog[open], [aria-modal="true"]'),n,r;for(let s of t)if(!Rt(s)){if(Je(s)){n=s;break}r!=null||(r=s)}if(n!=null||(n=r),n===void 0)return;let o=n,i=Array.from(document.body.children).filter(s=>!s.contains(o));if(i.length!==0&&i.every(s=>s.getAttribute("aria-hidden")==="true"))return"the rest of the page is aria-hidden behind an open overlay (a focus-trap modal), so this snapshot shows only the overlay. If it will not close its cleanup may be stuck on a throttled tab: dismiss the overlay, or snapshot with { scope } inside it."}function xj(e){let t=_j(e),n=Tj(e);return{route:Ih(),title:document.title,...t.length>0?{visibleDialogs:t}:{},...n!==void 0?{overlayHidingPage:n}:{}}}function Lh(e={}){var l,u,d,f;let t=(l=e.mode)!=null?l:lc.FULL,n=(u=e.scope)==null?void 0:u.trim(),r=document.body;if(n!==void 0&&n!==""&&(r=re.resolve(n),r===null))try{r=document.querySelector(n)}catch{}let o=r===null,i=r!=null?r:document.body,s=xj(i);if(o)return{tree:"",status:s,nodes:0,truncated:!1,scopeMissing:!0};if(t===lc.STATUS)return{tree:"",status:s,nodes:0,truncated:!1};let a={lines:[],nodes:0,leanSkipped:0,hiddenSkipped:0,truncated:!1,mode:t,maxNodes:(d=e.maxNodes)!=null?d:400,maxDepth:(f=e.maxDepth)!=null?f:20,unread:[],unreadOverflow:!1,...e.ids===!0?{ids:!0}:{}};if(e.includeRoot===!0?tS(i,0,a,!1):Ch(i,0,a),a.nodes===0&&i===document.body){a.throughOverlay=!0;for(let m of Array.from(i.children))cL(m)&&m.querySelector(Sj)!==null&&tS(m,0,a,!1);a.throughOverlay=!1}return{tree:a.lines.join(`
1825
+ `),status:s,nodes:a.nodes,truncated:a.truncated,...a.nodes===0?{domElements:i.querySelectorAll("*").length}:{},...a.leanSkipped>0?{leanSkipped:a.leanSkipped}:{},...a.hiddenSkipped>0?{hiddenSkipped:a.hiddenSkipped}:{},...a.unread.length>0?{unread:a.unread}:{},...a.unreadOverflow?{unreadOverflow:!0}:{},...e.audit===!0?{audit:QC(i)}:{}}}z_();M();dn();Yo();Et();uo();nt();ur();Ki();gt();Ot();Ot();function RL(e){let t=Ij(e);if(t===void 0)return;let n=e.ownerDocument.querySelectorAll(t);return n.length===1&&n[0]===e?t:void 0}function Ij(e){let t=Ne(e);if(t!==null&&0<t.length){let r=t.replace(/\\/g,"\\\\").replace(/"/g,'\\"');return`[${Fi()}="${r}"]`}let n=e.getAttribute("id");if(n!==null&&/^[A-Za-z_][A-Za-z0-9_-]*$/.test(n))return`#${n}`}Yo();function Uh(e){return e.replace(/\s+/g," ").trim().normalize("NFC")}var Cj=/[\u2018\u2019]/g,Lj=/[\u201c\u201d]/g,$j=/[\u2013\u2014]/g;function Hh(e){return e.replace(Cj,"'").replace(Lj,'"').replace($j,"-")}function pr(e){return Hh(Uh(e))}function Zi(e,t){return pr(e).toLowerCase().includes(pr(t).toLowerCase())}function Cc(e,t,n){return t.matchCase!==!0?Zi(e,n):pr(e).includes(pr(n))}function $L(e,t){return pr(e)===pr(t)}var lS={uppercase:e=>e.toUpperCase(),lowercase:e=>e.toLowerCase(),capitalize:e=>e.replace(/(^|\s)(\p{L})/gu,(t,n,r)=>n+r.toUpperCase())};function kL(e,t){var r,o,i;let n=(o=(r=e.ownerDocument.defaultView)==null?void 0:r.getComputedStyle(e).textTransform)!=null?o:"";return(i=lS[n])==null?void 0:i.call(lS,t)}var kj=1.5,zj=.05,Dj=[255,255,255,1];function OL(e){let t=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+([\d.]+))?\s*\)$/.exec(e);if(t!==null)return[Number(t[1]),Number(t[2]),Number(t[3]),t[4]===void 0?1:Number(t[4])]}function IL(e,t){let n=e[3],r=(o,i)=>o*n+i*(1-n);return[r(e[0],t[0]),r(e[1],t[1]),r(e[2],t[2]),1]}function uS(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function CL(e){return .2126*uS(e[0])+.7152*uS(e[1])+.0722*uS(e[2])}function Pj(e,t){let n=CL(e),r=CL(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function LL(e){return`rgb(${[e[0],e[1],e[2]].map(t=>String(Math.round(t))).join(", ")})`}function Mj(e){let t=Number.parseFloat(e.getPropertyValue("-webkit-text-stroke-width"));return/\dpx/.test(e.textShadow)||t>0}function Uj(e){let t=e.ownerDocument.defaultView;if(t===null)return;let n=t.getComputedStyle(e),r=OL(n.color);if(r===void 0||Mj(n))return;let o=1,i=[],s=!1;for(let d=e;d!==null;d=Pi(d)){let f=t.getComputedStyle(d),m=Number.parseFloat(f.opacity);if(o*=Number.isNaN(m)?1:m,s)continue;if(f.backgroundImage!==""&&f.backgroundImage!=="none")return;let h=OL(f.backgroundColor);if(h===void 0)return;h[3]>0&&i.push(h),s=h[3]>=1}if(o<zj)return`the composed opacity is ${o.toFixed(2)}`;let a=i.reduceRight((d,f)=>IL(f,d),Dj),l=IL(r,a),u=Pj(l,a);if(!(u>=kj))return`text ${LL(l)} on ${LL(a)}: contrast ${u.toFixed(2)}:1`}function zL(e){let t=e.map(Uj);return t.length>0&&t.every(n=>n!==void 0)?t[0]:void 0}md();M();dn();Et();uo();Qo();Ot();var GL=fc,Hj=2e3,Fj=()=>`[${GL}], ${Vn()}, button, a, input, select, textarea, [role]`;function jn(e){return[...Node.ELEMENT_NODE===e.nodeType?[e]:[],...Array.from(e.querySelectorAll("*"))]}var Bj=["script","style","template","noscript"];function dS(e){return Bj.includes(e.tagName.toLowerCase())}function Gj(e){if(He(e)){let t=e.type.toLowerCase();if(t==="submit"||t==="button"||t==="reset")return e.value}return dS(e)?"":Array.from(e.childNodes).filter(t=>Node.TEXT_NODE===t.nodeType).map(t=>{var n;return(n=t.textContent)!=null?n:""}).join("")}function Vj(e){if(He(e)||vn(e)||$r(e))return!0;let t=e.tagName.toLowerCase();return t==="button"||t==="meter"||t==="output"||t==="progress"||e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")}function jj(e,t){let n=`${t.file}:${t.line}:`.replace(/\\/g,"\\\\").replace(/"/g,'\\"');try{return Array.from(e.querySelectorAll(`[${GL}^="${n}"]`))}catch{return[]}}function Kj(e,t){let n=[],r=0;for(let o of Array.from(e.querySelectorAll(Fj()))){if(r>=Hj)break;r+=1;let i=dr(o);i!==null&&i.componentStack[0]===t&&n.push(o)}return n}function DL(e,t){if(t.source!==void 0){let n=jj(e,t.source);if(n.length>0)return n}return t.component!==void 0&&t.component.length>0?Kj(e,t.component):[]}function Zj(e,t){return e===t||t==="textbox"&&e==="searchbox"}var Wj="option",Yj="option",Xj="select",PL=1;function pS(e){if(Yj!==e.localName)return!1;let t=e.closest(Xj);return $r(t)?Je(t)?qj(t):!0:!1}function qj(e){let t=e.getBoundingClientRect();return t.width>0&&t.height>0&&t.width<=PL&&t.height<=PL}function Jj(e,t){if(Wj!==e)return t;let n=t.filter(r=>!pS(r));return n.length===t.length?t:n}function Fh(e,t,n){let r=jn(e).filter(o=>Zj(Le(o),t)&&(n===void 0||$L(we(o),n)));return Jj(t,r)}function ML(e,t,n){return jn(e).filter(r=>{let o=Gj(r);if(Cc(o,n,t))return!0;if(n.matchCase!==!0||!Zi(o,t))return!1;let i=kL(r,o);return i!==void 0&&Cc(i,n,t)})}function UL(e,t){let n=pr(t).toLowerCase(),r=[],o=[];for(let i of jn(e)){if(!Vj(i))continue;let s=pr(we(i)).toLowerCase();s.includes(n)&&(s===n?r:o).push(i)}return r.length>0?r:o}function HL(e,t){return jn(e).filter(n=>{let r=n.getAttribute("placeholder");return r!==null&&Zi(r,t)})}function FL(e,t){return jn(e).filter(n=>Ne(n)===t)}function BL(e,t){return jn(e).filter(n=>{let r=n.getAttribute("alt");return r!==null&&Zi(r,t)})}function fS(e,t){var o;let n=t.by,r=t.value;if(n!==void 0&&r!==void 0)switch(n){case at.ROLE:return Fh(e,r,t.name);case at.TEXT:return ML(e,r,t);case at.LABEL:return UL(e,r);case at.PLACEHOLDER:return HL(e,r);case at.TESTID:return FL(e,r);case at.ALT:return BL(e,r);case at.COMPONENT:return DL(e,{...t,component:(o=t.component)!=null?o:r});default:throw new Error(`unsupported query strategy '${String(n)}' - use one of: ${Object.values(at).join(", ")}`)}return t.component!==void 0||t.source!==void 0?DL(e,t):t.role!==void 0?Fh(e,t.role,t.name):t.text!==void 0?ML(e,t.text,t):t.label!==void 0?UL(e,t.label):t.placeholder!==void 0?HL(e,t.placeholder):t.testid!==void 0?FL(e,t.testid):t.alt!==void 0?BL(e,t.alt):[]}var Qj=12;function bd(e,t){var i;if(dS(e)||td(e))return"";let n=Je(e,t),r=e6(e),o="";for(let s of Array.from(e.childNodes))if(Node.TEXT_NODE===s.nodeType&&n)o+=(i=s.textContent)!=null?i:"";else if(wn(s)){let a=bd(s,t);o+=r||t6(s)?` ${a} `:a}return o}function e6(e){var n,r;let t=(r=(n=e.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(e).display)!=null?r:"";return t.includes("flex")||t.includes("grid")}function t6(e){var n,r;let t=(r=(n=e.ownerDocument.defaultView)==null?void 0:n.getComputedStyle(e).display)!=null?r:"inline";return!t.startsWith("inline")&&t!=="contents"}function Gh(e){if(e===void 0)return{container:document.body,scopeMissing:!1};let t=re.resolve(e);if(Mi(t))return{container:t,scopeMissing:!1};try{let n=document.querySelector(e);if(Mi(n))return{container:n,scopeMissing:!1}}catch{}return{container:null,scopeMissing:!0}}function n6(e){var t,n;try{return(n=(t=e.contentDocument)==null?void 0:t.body)!=null?n:null}catch{return null}}var r6=3;function o6(e){let t=[],n=(r,o)=>{var i;for(let s of r.querySelectorAll("*")){let a=(i=s.shadowRoot)!=null?i:Ks(s);if(a!==null){t.push(a),n(a,o);continue}if(o>=r6||!fh(s))continue;let l=n6(s);l!==null&&(t.push(l),n(l,o+1))}};return n(e,0),t}function jL(e){let{container:t,scopeMissing:n}=Gh(e.scope);if(t===null)return{candidates:[],scopeMissing:!0};if(e.self===!0)return e.scope===void 0?{candidates:[],scopeMissing:n}:e.text!==void 0&&!Cc(bd(t,new Map),e,e.text)?{candidates:[],scopeMissing:n}:{candidates:Mt(t)?[]:[t],scopeMissing:n};let r=new Set,o=[],i=Bh(e)===void 0?Mt:td,s=a=>{for(let l of a)r.has(l)||i(l)||(r.add(l),o.push(l))};s(fS(t,e));for(let a of o6(t))s(fS(a,e));return{candidates:o,scopeMissing:n}}var i6=512,s6=12;function a6(e,t){let n={};for(let r of t.slice(0,s6)){let o=e.getAttribute(r);o!==null&&(n[r]=St(r)?ve:o.slice(0,i6))}return Object.keys(n).length>0?n:void 0}function c6(e,t,n){return Se.IN_VIEWPORT===t?U_(e,n):Jo(e,Je(e,n)).includes(t)}var VL=Z.MAX_COLLECTION_ITEMS;function _d(e,t,n=VL,r=!0,o=!0){let i=jL(e),s=i.scopeMissing,a=r&&f6(e)?Bh(e):void 0,l=i.candidates.length===0?Gh(e.scope).container:null,u=l===null||a===void 0?void 0:KL(l,a,e),d=u===void 0?i.candidates:[u],f=new Map,m=t===void 0?d:d.filter(O=>c6(O,t,f)),h=e.attrs,E=m.slice(0,Math.max(0,Math.min(n,VL))),_=E.length>1||Se.IN_VIEWPORT===t,A=E.map(O=>{let k=ho(O,f);if(_&&U_(O,f)&&!k.states.includes(Se.IN_VIEWPORT)&&(k={...k,states:[...k.states,Se.IN_VIEWPORT]}),h===void 0||h.length===0)return k;let j=a6(O,h);return j===void 0?k:{...k,attrs:j}}),v=fC(m),N=Bh(e)===void 0?void 0:zL(E);return{matched:m.length>0,count:m.length,elements:A,...s?{scopeMissing:!0}:{},...v===void 0?{}:{coveredBy:v},...N===void 0?{}:{unreadable:N},...m.length===0?{hint:ZL(e,t,o)}:{}}}function l6(e){let t=e.getAttribute("aria-labelledby");if(t===null)return;let n=t.split(/\s+/).map(r=>{var o,i,s;return r.length>0&&(s=(i=(o=e.ownerDocument.getElementById(r))==null?void 0:o.textContent)==null?void 0:i.trim())!=null?s:""}).filter(r=>r.length>0).join(" ");return n.length>0?n:void 0}function u6(e){var o,i,s,a,l,u,d,f;let t=(o=Gh(e.scope).container)!=null?o:document.body,n=[],r=["list","listbox","grid","table","tree","treegrid","dialog","alertdialog","navigation","main","banner","form","search","menu","menubar","tablist"];for(let m of r){let h=Fh(t,m,void 0);for(let E of h){if(Rt(E))continue;let _=(a=(s=(i=E.getAttribute("aria-label"))!=null?i:l6(E))!=null?s:Ne(E))!=null?a:void 0,A=E.querySelectorAll("[role]"),v=[];for(let O of Array.from(A)){if(v.length>=3)break;let k=O.getAttribute("role"),j=(f=(d=(l=O.getAttribute("aria-label"))!=null?l:Ne(O))!=null?d:(u=O.textContent)==null?void 0:u.trim().slice(0,40))!=null?f:"";k!==null&&j.length>0&&v.push(`${k}[${j}]`)}let N={role:m,childCount:A.length,sample:v};if(_!==void 0&&_.length>0&&(N.name=_),n.push(N),n.length>=10)return n}}return n}function KL(e,t,n){let r,o=-1,i=new Map;for(let s of jn(e)){if(Mt(s)||!Cc(bd(s,i),n,t))continue;let a=0;for(let l=s.parentElement;l!==null;l=l.parentElement)a++;a>o&&(r=s,o=a)}return r}function d6(e,t){let n=pr(t).toLowerCase();if(n.length===0)return;let r=new Map;for(let o of jn(e)){if(Mt(o))continue;let i=Uh(bd(o,r)),s=Hh(i).toLowerCase().indexOf(n);if(s!==-1)return i.slice(s,s+n.length)}}var p6=new Set(["text","matchCase","scope","by","value"]);function f6(e){return(e.by===void 0||at.TEXT===e.by)&&Object.keys(e).every(t=>p6.has(t))}function Bh(e){return e.text!==void 0?e.text:at.TEXT===e.by?e.value:void 0}var h6=5;function m6(e,t){let n=at.ROLE===t.by?t.value:t.role,r=t.name;if(n===void 0||r===void 0||r.length===0)return[];let o=pr(r).toLowerCase();if(o.length===0)return[];let i=[];for(let s of jn(e)){if(Mt(s)||Le(s)!==n)continue;let a=Uh(we(s));if(a.length===0)continue;let l=Hh(a).toLowerCase();if(!(!l.includes(o)&&!o.includes(l))&&(i.includes(a)||i.push(a),i.length>=h6))break}return i}function g6(e,t){if(at.TESTID!==t.by||t.value===void 0)return;let n=Fi();for(let r of[Us,...AO]){if(r===n)continue;if(jn(e).some(i=>i.getAttribute(r)===t.value&&!Mt(i)))return r}}function E6(e,t){var o;let n=!1;for(let i of jn(e))if(!Mt(i)&&eC(i)&&Zi((o=i.textContent)!=null?o:"",t)){n=!0;break}if(!n)return!1;let r=new Map;for(let i of jn(e))if(!Mt(i)&&tC(i)&&Zi(bd(i,r),t))return!1;return!0}function ZL(e,t,n=!0){var E;let r=(E=Gh(e.scope).container)!=null?E:document.body,o=r.querySelectorAll(Vn()),i=[],s=new Set;for(let _ of Array.from(o)){if(Mt(_))continue;let A=Ne(_);A===null||A.length===0||s.has(A)||(s.add(A),i.length<Qj&&i.push(A))}let a=NL(),l=i.some(_=>a.includes(_)),d={route:Ih(!1),presentTestids:i,...s.size>i.length?{presentTestidsTotal:s.size}:{},presentRegions:u6(e),knownEmptyState:l},f=Bh(e);if(f!==void 0){let _=KL(r,f,e);if(_!==void 0){let A=ho(_),v=RL(_);d.splitText=v===void 0?A:{...A,selector:v}}else if(e.matchCase===!0){let A=d6(r,f);A!==void 0&&(d.caseMiss=A)}}n&&f!==void 0&&d.splitText===void 0&&(t===void 0||Se.VISIBLE===t||Se.IN_VIEWPORT===t)&&E6(r,f)&&(d.ariaHiddenMatch=!0);let m=m6(r,e);m.length>0&&(d.nameNearMiss=m);let h=g6(r,e);return h!==void 0&&(d.testidFoundUnder=h),d}function hS(e){return jL(e).candidates}function Vh(e,t){let n=_d(e,void 0,t,!1),r=n.scopeMissing===!0?{scopeMissing:!0}:{};return n.elements.length===0?{elements:n.elements,count:n.count,hint:ZL(e),...r}:{elements:n.elements,count:n.count,...r}}M();nt();Lc();gt();Wo();dn();var b6=/\b(current|new)-password\b/,_6=/Chrome|Chromium|Edg\/|Firefox|Gecko\//;function gS(e,t=navigator.userAgent){var r,o,i;return!(e instanceof HTMLInputElement)||!(e.type.toLowerCase()==="password"||b6.test((r=e.getAttribute("autocomplete"))!=null?r:""))||_6.test(t)?!1:600<=Number((i=(o=/AppleWebKit\/(\d+)/.exec(t))==null?void 0:o[1])!=null?i:0)}function Kh(e,t){let n=Z0(e),r=n===void 0?void 0:k0(n);r!==void 0?r.call(e,t):e.value=t;let o=e.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}));return e.dispatchEvent(new Event("change",{bubbles:!0})),!o}function S6(e){let t=e.getAttribute("contenteditable");if(ut(e)&&e.isContentEditable||t!==null&&t!=="false"||e.getAttribute("role")==="textbox")return!0;if(!("editContext"in e))return!1;let n=e;return n.editContext!==null&&n.editContext!==void 0}function ES(e,t){if(S6(e))throw new Error(`cannot ${t} a contenteditable or EditContext editor; use press or an input`)}function bS(e,t){if(e.disabled)throw new Error(`cannot ${t} a disabled <${e.tagName.toLowerCase()}> \u2014 a user could not edit it, so forcing the value would put the app in a state nobody can reach`);if(e.readOnly)throw new Error(`cannot ${t} a readonly <${e.tagName.toLowerCase()}> \u2014 a user could not edit it, so forcing the value would put the app in a state nobody can reach`)}Et();uo();gt();Et();nt();uo();dt();var T6=30,x6="option";function t$(e){return we(e).trim()}function A6(e){var i,s;let t=e.ownerDocument,r=((s=(i=e.getAttribute("aria-controls"))!=null?i:e.getAttribute("aria-owns"))!=null?s:"").split(/\s+/).filter(a=>0<a.length).map(a=>t.getElementById(a)).filter(a=>a!==null);return(0<r.length?r:[t]).flatMap(a=>Array.from(a.querySelectorAll(`[role="${x6}"]`))).filter(a=>!lr(a)&&Je(a))}async function y6(e){for(let t=0;t<T6;t+=1){let n=A6(e);if(0<n.length)return n;await mo()}return[]}function w6(e,t){let n=t.trim();return t$(e)===n||e.getAttribute("data-value")===t||e.getAttribute("value")===t}async function n$(e,t,n,r){let o=e.getAttribute("aria-expanded")!=="true";o&&await n(e);let i=await y6(e),s=i.filter(u=>w6(u,t)),[a]=s,l=i.length===0?r:v6(s,i,t);if(a===void 0||l!==void 0)throw o&&await n(e),new Error(l!=null?l:"no option");return(await n(a)).prevented}function v6(e,t,n){let[r]=e;if(r===void 0)return`no option '${kr(n)}' \u2014 available: ${t.map(t$).join(", ")}`;if(1<e.length)return`${e.length} options match '${kr(n)}' \u2014 name one by its exact label`;if(r.getAttribute("aria-disabled")==="true")return`cannot select a disabled option '${kr(n)}' \u2014 a real user could not, so neither will Reticle`}Qo();dn();dt();Ot();M();Et();var r$=160,N6=150,R6="checkbox",O6="radio",Sd;function Yh(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement}function i$(e){return e instanceof HTMLInputElement&&(R6===e.type||O6===e.type)}function TS(e){return i$(e)?{value:e.value,checked:e.checked}:{value:e.value}}function I6(e,t){return e.checked!==void 0||t.checked!==void 0?e.checked!==t.checked:e.value!==t.value}function o$(e){return e.length>r$?`${e.slice(0,r$)}\u2026`:e}function C6(e){let t=Ne(e);if(t!==null&&t.length>0)return t;if(e.name.length>0)return e.name;let n=we(e);if(n.length>0)return n;let r=e.getAttribute("id");return r!==null&&r.length>0?r:e.tagName.toLowerCase()}function s$(e,t,n,r){let o=pn(e),i={[Pt.FIELD]:C6(e),[Pt.KIND]:t,[Pt.LENGTH]:n.value.length};return n.checked!==void 0&&(i[Pt.CHECKED]=n.checked),(r==null?void 0:r.checked)!==void 0&&(i[Pt.PREVIOUS_CHECKED]=r.checked),o?(i[Pt.REDACTED]=!0,i):(i[Pt.VALUE]=o$(n.value),r!==void 0&&r.checked===void 0&&(i[Pt.PREVIOUS]=o$(r.value)),i)}function L6(e){return i$(e)?"checked":"value"}function $6(e,t){for(let n=Object.getPrototypeOf(e);n!==null;){let r=Object.getOwnPropertyDescriptor(n,t);if(r!==void 0)return r;n=Object.getPrototypeOf(n)}}function k6(e,t){var u;let n=Object.getOwnPropertyDescriptor(e,t),r=n!=null?n:$6(e,t),o=r===void 0?void 0:Reflect.get(r,"get"),i=r===void 0?void 0:Reflect.get(r,"set"),s=!1;if(!(typeof o=="function"&&typeof i=="function")||(n==null?void 0:n.configurable)===!1)return{stop:()=>{},written:()=>s};Object.defineProperty(e,t,{configurable:!0,enumerable:(u=r==null?void 0:r.enumerable)!=null?u:!1,get(){return Reflect.apply(o,this,[])},set(d){s=!0,Reflect.apply(i,this,[d])}});let l=!1;return{stop:()=>{l||(l=!0,n===void 0?Reflect.deleteProperty(e,t):Object.defineProperty(e,t,n))},written:()=>s}}function a$(e){if(!(!Yh(e)||e instanceof HTMLSelectElement))return{before:TS(e),...k6(e,L6(e))}}function c$(e,t){let n=Sd;if(t===void 0||(t.stop(),n===void 0||!Yh(e)||!e.isConnected||!t.written()))return;let r=t.before;if(pn(e)&&r.checked===void 0)return;let o=TS(e);I6(r,o)&&n(w.FIELD_CHANGE,s$(e,Yu.SETTLED,o,r))}function l$(e){let t=new AbortController,{signal:n}=t,r=Sd;Sd=e;let o=new Map,i=(u,d)=>{e(w.FIELD_CHANGE,s$(u,d,TS(u)))},s=u=>{let d=o.get(u);d!==void 0&&clearTimeout(d),o.delete(u)},a=u=>{let d=u.target;Yh(d)&&(s(d),o.set(d,setTimeout(()=>{o.delete(d),i(d,Yu.INPUT)},N6)))},l=u=>{let d=u.target;Yh(d)&&(s(d),i(d,Yu.CHANGE))};return document.addEventListener("input",a,{signal:n,capture:!0}),document.addEventListener("change",l,{signal:n,capture:!0}),()=>{for(let u of o.values())clearTimeout(u);o.clear(),Sd===e&&(Sd=r),t.abort()}}nt();Et();var xS=200,u$=" | ",z6=3,D6=/\p{L}/u;function P6(e){return D6.test(e)}var M6=3;function U6(e){return e instanceof Element&&e.querySelectorAll("*").length>M6}var $c,Td,Wi,AS,yS,Xh=class{constructor(){x(this,Wi);x(this,$c,new Set);x(this,Td,0)}collect(t){for(let n of t){if(T(this,Wi,AS).call(this))return;if(n.type==="characterData"){T(this,Wi,yS).call(this,n.target.textContent,n.target.parentElement);continue}for(let r of n.addedNodes){if(T(this,Wi,AS).call(this))return;if(U6(r))continue;let o=z6===r.nodeType?r.parentElement:H6(r);T(this,Wi,yS).call(this,r.textContent,o)}}}effect(t){let n=[...c(this,$c)].filter(o=>o!==t);if(n.length===0)return{};let r=n.join(u$);return{appeared:r.length>xS?`${r.slice(0,xS)}\u2026`:r}}};$c=new WeakMap,Td=new WeakMap,Wi=new WeakSet,AS=function(){return c(this,Td)>xS},yS=function(t,n){if(n!==null&&td(n)||n!==null&&pn(n))return;let r=(t!=null?t:"").replace(/\s+/g," ").trim();r.length!==0&&P6(r)&&(c(this,$c).has(r)||(c(this,$c).add(r),g(this,Td,c(this,Td)+(r.length+u$.length))))};function H6(e){return e instanceof Element?e:e.parentElement}M();dn();var F6=new Set(["checkbox","switch"]),d$="aria-checked",qh=e=>{var t;return!He(e)&&F6.has((t=e.getAttribute("role"))!=null?t:"")},p$=e=>e.getAttribute(d$)==="true";function f$(e,t,n){var o;if(n||!qh(e)||t!==D.CHECK&&t!==D.UNCHECK)return;let r=t===D.CHECK;if(p$(e)!==r)throw new Error(`${t} clicked the ${(o=e.getAttribute("role"))!=null?o:""} but ${d$} is still "${String(!r)}" \u2014 the app did not toggle it`)}function Jh(e,t){if(t!==D.CHECK&&t!==D.UNCHECK)return!1;let n=t===D.CHECK;return He(e)?e.checked===n:qh(e)&&p$(e)===n}M();Lc();dt();dn();var wS=e=>new Promise(t=>ue(t,e));function B6(e,t=""){return typeof e=="string"?e:t}function em(e){return Wb(e)}var G6=["metaKey","ctrlKey","shiftKey","altKey"],E$={meta:"metaKey",cmd:"metaKey",command:"metaKey",super:"metaKey",win:"metaKey",control:"ctrlKey",ctrl:"ctrlKey",shift:"shiftKey",alt:"altKey",option:"altKey",opt:"altKey"};function tm(e){let t=e.modifiers,n=Array.isArray(t)?t.map(o=>B6(o).toLowerCase()):[],r={metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1};for(let o of n){let i=E$[o];i!==void 0&&(r[i]=!0)}return r}function h$(e){return E$[e.toLowerCase()]}function Qh(e,t){let n=e.code;return typeof n=="string"&&0<n.length?n:t===" "?"Space":t.length===1?/[a-z]/i.test(t)?`Key${t.toUpperCase()}`:/[0-9]/.test(t)?`Digit${t}`:"":/^[A-Z][A-Za-z0-9]*$/.test(t)&&K6.has(t)?t:""}function nm(e,t,n,r,o=!1){if(m$!==t&&t.length!==1)return;let i=new KeyboardEvent("keypress",{key:t,code:n,bubbles:!0,cancelable:!0,repeat:o,...r}),s=m$===t?V6:t.charCodeAt(0);for(let a of j6)Object.defineProperty(i,a,{value:s});rt(()=>e.dispatchEvent(i))}var m$="Enter",V6=13,j6=["keyCode","charCode","which"],K6=new Set(["Enter","Escape","Tab","Backspace","Delete","Home","End","PageUp","PageDown","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Insert","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]),Z6="no document to press into";function b$(){let e=document.activeElement;if(ut(e)&&document.body!==e)return e;if(ut(document.body))return document.body;let t=document.documentElement;if(ut(t))return t;throw new Error(Z6)}function _$(e,t,n){return e.length===0&&IO(n)&&D.PRESS===t}function S$(e){return Yb(e)}var W6=33,g$=500,Y6={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,Escape:27," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Delete:46,Meta:91},X6=/^[a-z0-9]$/i,q6=e=>{var t;return(t=Y6[e])!=null?t:X6.test(e)?e.toUpperCase().charCodeAt(0):0};function xd(e,t){let n=new KeyboardEvent(e,t),r=q6(t.key);for(let o of["keyCode","which"])Object.defineProperty(n,o,{get:()=>r});return n}async function T$(e,t,n,r,o){let i=Date.now();for(o>g$&&await wS(g$);Date.now()-i<o;)rt(()=>e.dispatchEvent(xd("keydown",{key:t,code:n,bubbles:!0,cancelable:!0,repeat:!0,...r})))&&nm(e,t,n,r,!0),await wS(Math.min(W6,Math.max(0,o-(Date.now()-i))))}async function x$(e,t,n,r){let o={...n},i=(d,f)=>{let m=Qh({},f);return rt(()=>e.dispatchEvent(xd(d,{key:f,code:m,bubbles:!0,cancelable:!0,...o})))},s=new Map;for(let d of G6)o[d]&&s.set(d,1);let a=d=>{var f;s.set(d,((f=s.get(d))!=null?f:0)+1),o[d]=!0},l=d=>{var m;let f=((m=s.get(d))!=null?m:1)-1;s.set(d,f),f<=0&&(o[d]=!1)},u=!1;for(let d of t){let f=h$(d);f!==void 0&&a(f);let m=i("keydown",d);m||(u=!0),m&&nm(e,d,Qh({},d),o),vS(e,d,m)}r>0&&await wS(r);for(let d of[...t].reverse()){let f=h$(d);f!==void 0&&l(f),i("keyup",d)}return u}function vS(e,t,n){var r,o;if(!(t!=="Escape"||!n))for(let i=e.closest("dialog");i!==null;i=(o=(r=i.parentElement)==null?void 0:r.closest("dialog"))!=null?o:null){try{if(!i.open||!i.matches(":modal"))continue}catch{return}typeof i.requestClose=="function"?i.requestClose():i.dispatchEvent(new Event("cancel",{cancelable:!0}))&&i.close();return}}Ot();M();Et();Qo();nt();var J6="canvas";function A$(e){var o,i,s,a;let t=(i=(o=e.defaultView)==null?void 0:o.innerWidth)!=null?i:0,n=(a=(s=e.defaultView)==null?void 0:s.innerHeight)!=null?a:0,r=0;for(let l of e.querySelectorAll(J6)){if(lr(l))continue;let u=l.getBoundingClientRect(),d=u.width>0&&u.height>0,f=u.bottom>0&&u.right>0&&u.top<n&&u.left<t;d&&f&&(r+=1)}return r}function y$(e){var a;let t=(a=Ne(e))!=null?a:void 0,n=dr(e),r={};if(t!==void 0){r.testid=t;let l=hS({by:at.TESTID,value:t}).length;1<l&&(r.testidOf=l)}let o=n==null?void 0:n.componentStack[0];o!==void 0&&(r.component=o),(n==null?void 0:n.source)!==void 0&&(r.source=n.source);let i=Le(e),s=we(e);if(i.length>0&&(r.role=i),s.length>0&&(r.name=s),pn(e)&&(r.secret=!0),i.length>0&&s.length>0){let l=hS({by:at.ROLE,value:i,name:s}),u=l.indexOf(e);1<l.length&&0<=u&&(r.nth=u,r.of=l.length)}return r}var w$=(e,t,n,r,o,i,s)=>{let a={ok:!0,ref:e,action:t,dispatched:!0,settled:r,settleReason:o,effect:n};return i.testid!==void 0&&(a.testid=i.testid),i.testidOf!==void 0&&(a.testidOf=i.testidOf),i.component!==void 0&&(a.component=i.component),i.source!==void 0&&(a.source=i.source),i.role!==void 0&&(a.role=i.role),i.name!==void 0&&(a.name=i.name),i.nth!==void 0&&(a.nth=i.nth),i.of!==void 0&&(a.of=i.of),i.secret!==void 0&&(a.secret=i.secret),s!==void 0&&(a.warning=s),a};gt();Ot();Et();nt();var Q6=[[.5,.5],[.25,.25],[.75,.25],[.25,.75],[.75,.75]],eK=3;function rm(e,t){var u;if(t.width===0||t.height===0)return null;let n=e.ownerDocument;if(typeof n.elementFromPoint!="function")return null;let r=n,o=d=>lr(d)&&d!==e&&!e.contains(d)&&!d.contains(e),i=(d,f)=>{var h,E,_;return(_=((E=(h=r.elementsFromPoint)==null?void 0:h.call(r,d,f))!=null?E:[n.elementFromPoint(d,f)]).find(A=>A!==null&&!o(A)))!=null?_:null},s=new Map;for(let[d,f]of Q6){let m=i(t.left+t.width*d,t.top+t.height*f);m!==null&&(m===e||e.contains(m)||m.contains(e)||s.set(m,((u=s.get(m))!=null?u:0)+1))}let a=null,l=0;for(let[d,f]of s)f>l&&(a=d,l=f);return l>=eK?a:null}dt();Lc();M();var Ad={occluded:!1,occludedBy:null,scrolledIntoView:!1};function Yi(e,t,n={}){return new MouseEvent(t,{...n,view:e.ownerDocument.defaultView})}function om(e,t,n){let r={...n,view:e.ownerDocument.defaultView};return typeof PointerEvent=="function"?new PointerEvent(t,r):new MouseEvent(t,r)}var Wt=1,yd=0,O$={modifiers:{metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1},button:ar.LEFT},I$={[ar.LEFT]:{button:0,bit:1},[ar.RIGHT]:{button:2,bit:2},[ar.MIDDLE]:{button:1,bit:4}};function RS(e){var t;return{modifiers:tm(e),button:(t=qb(e))!=null?t:ar.LEFT}}function Ke(e,t,n,r,o,i=0,s=O$){let a={bubbles:!(t.endsWith("enter")||t.endsWith("leave")),cancelable:!0,detail:i,clientX:n.x,clientY:n.y,screenX:n.x,screenY:n.y,buttons:r,button:I$[s.button].button,...s.modifiers,...o!==void 0?{relatedTarget:o}:{}};return e.dispatchEvent(t.startsWith("pointer")?om(e,t,{...a,pointerId:1,isPrimary:!0}):Yi(e,t,a))}async function kc(e,t,n,r=O$){var h;let o=e.ownerDocument,i=(h=o.activeElement)!=null?h:o.body,s=NS(e),a=n!=null?n:0,l=I$[r.button].bit,u=ar.LEFT===r.button,d=!0;rt(()=>Ke(e,"pointerdown",s,l,i,a,r)),rt(()=>Ke(e,"mousedown",s,l,void 0,a,r)),ar.RIGHT===r.button&&(d=rt(()=>Ke(e,"contextmenu",s,l,void 0,a,r))),e.tabIndex>=0&&typeof e.focus=="function"&&e.focus();let f=0;if(t!==void 0&&t.ms>0){let E=t.now();await t.sleep(t.ms),f=t.now()-E}rt(()=>Ke(e,"pointerup",s,yd,i,a,r)),rt(()=>Ke(e,"mouseup",s,yd,void 0,a,r));let m=rt(()=>Ke(e,u?"click":"auxclick",s,yd,void 0,a,r));return ar.RIGHT!==r.button&&(d=m),{prevented:!d,heldMs:f}}function tK(e){return e.width>0||e.height>0}function wd(e,t){let n=e.ownerDocument.defaultView;if(n===null)return!1;let r=t.left+t.width/2,o=t.top+t.height/2;return r<0||o<0||r>n.innerWidth||o>n.innerHeight}function nK(e,t){let n=rm(e,t);return n===null?{occluded:!1,occludedBy:null}:{occluded:!0,occludedBy:re.refFor(n),occluderName:rK(n)}}function rK(e){let t=Ne(e);if(t!==null&&t.length>0)return`[data-testid="${t}"]`;let n=we(e).trim();return n.length>0?`${Le(e)} "${n.slice(0,40)}"`:e.tagName.toLowerCase()}function oK(e){if(typeof e.getClientRects!="function")return!1;let t=Array.from(e.getClientRects());return t.length>0&&t.every(n=>n.width===0||n.height===0)}function C$(e){if(typeof e.getBoundingClientRect!="function")return Ad;let t=e.getBoundingClientRect();if(!tK(t))return oK(e)?{...Ad,noSize:!0}:Ad;let n=!1;wd(e,t)&&typeof e.scrollIntoView=="function"&&(e.scrollIntoView({block:"center",inline:"center"}),n=!0,t=e.getBoundingClientRect());let r=n&&wd(e,t);return{...nK(e,t),scrolledIntoView:n,...r?{offViewport:!0}:{}}}function OS(e,t,n=null){rt(()=>e.dispatchEvent(om(e,t,{bubbles:!0,cancelable:!0,relatedTarget:n})))}function L$(e,t,n=null){rt(()=>e.dispatchEvent(om(e,t,{bubbles:!1,cancelable:!0,relatedTarget:n})))}function iK(e){if(typeof DataTransfer!="function")return null;let t=new DataTransfer,n=Array.isArray(e)?e:e!==void 0?[e]:[];for(let r of n)if(typeof r=="object"&&r!==null){let o=r;typeof o.mime=="string"&&typeof o.value=="string"&&t.setData(o.mime,o.value)}return t}var v$=5;function NS(e){let t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}}function sK(e,t,n){return{x:Math.round(e.x+(t.x-e.x)*n),y:Math.round(e.y+(t.y-e.y)*n)}}async function IS(e,t,n){let r=t!=null?t:e,o=NS(e),i=NS(r),s=e.getBoundingClientRect(),a=t!==null?r.getBoundingClientRect():null,l=(m,h)=>h.x>=m.left&&h.x<=m.right&&h.y>=m.top&&h.y<=m.bottom;Ke(e,"pointerdown",o,Wt),Ke(e,"mousedown",o,Wt),await mo();let u=!1,d=!1;for(let m=1;m<=v$;m+=1){let h=sK(o,i,m/v$);!u&&!l(s,h)&&(u=!0,Ke(e,"pointerout",h,Wt,r),Ke(e,"mouseout",h,Wt,r),Ke(e,"pointerleave",h,Wt,r),Ke(e,"mouseleave",h,Wt,r)),u&&!d&&a!==null&&l(a,h)&&(d=!0,Ke(r,"pointerover",h,Wt,e),Ke(r,"mouseover",h,Wt,e),Ke(r,"pointerenter",h,Wt,e),Ke(r,"mouseenter",h,Wt,e)),Ke(r,"pointermove",h,Wt),Ke(r,"mousemove",h,Wt),await mo()}!d&&a!==null&&(Ke(r,"pointerover",i,Wt,e),Ke(r,"mouseover",i,Wt,e),Ke(r,"pointerenter",i,Wt,e),Ke(r,"mouseenter",i,Wt,e)),Ke(r,"pointerup",i,yd),Ke(r,"mouseup",i,yd);let f=!1;if(typeof DragEvent=="function"){let m=iK(n),h={bubbles:!0,cancelable:!0};m!==null&&(h.dataTransfer=m),e.dispatchEvent(new DragEvent("dragstart",h)),await mo(),r.dispatchEvent(new DragEvent("dragenter",h)),r.dispatchEvent(new DragEvent("dragover",h)),await mo(),f=!r.dispatchEvent(new DragEvent("drop",h)),e.dispatchEvent(new DragEvent("dragend",h))}return f}async function $$(e,t){let n=aK(e);N$(e,"pointerdown"),rt(()=>e.dispatchEvent(R$("touchstart",n))),e.tabIndex>=0&&typeof e.focus=="function"&&e.focus();let r=0;if(t!==void 0&&t.ms>0){let i=t.now();await t.sleep(t.ms),r=t.now()-i}return rt(()=>e.dispatchEvent(R$("touchend",[]))),N$(e,"pointerup"),{prevented:!rt(()=>e.dispatchEvent(Yi(e,"click",{bubbles:!0,cancelable:!0}))),heldMs:r}}function N$(e,t){rt(()=>e.dispatchEvent(om(e,t,{bubbles:!0,cancelable:!0,pointerType:"touch",isPrimary:!0,width:23,height:23})))}function aK(e){if(typeof Touch!="function"||typeof e.getBoundingClientRect!="function")return[];let t=e.getBoundingClientRect();try{return[new Touch({identifier:0,target:e,clientX:t.left+t.width/2,clientY:t.top+t.height/2})]}catch{return[]}}function R$(e,t){if(typeof TouchEvent=="function")try{return new TouchEvent(e,{bubbles:!0,cancelable:!0,touches:t,targetTouches:t,changedTouches:t})}catch{}return new Event(e,{bubbles:!0,cancelable:!0})}var cK=new Set(["menu","menubar","listbox","dialog","alertdialog","tooltip"]),lK="closed";function k$(e){var t,n;for(let r=e.parentElement;r!==null;r=r.parentElement)if(lK===r.getAttribute("data-state")&&cK.has((t=r.getAttribute("role"))!=null?t:""))throw new Error(`'${(n=r.getAttribute("role"))!=null?n:"popup"}' holding this element is closing (data-state="closed"), so a person could not click it: look again once it has gone and act on what is open`)}gt();var uK=400,dK=.8,pK="scroll fraction must be between 0 and 1, got ";function fK(e){return`${pK}${e}`}function hK(e,t){var r;let n=e;for(;n!==null&&n!==document.body;){let o=getComputedStyle(n),i=t==="x"?o.overflowX:o.overflowY,s=t==="x"?n.scrollWidth>n.clientWidth:n.scrollHeight>n.clientHeight;if((i==="auto"||i==="scroll")&&s)return n;n=n.parentElement}return(r=document.scrollingElement)!=null?r:document.documentElement}function z$(e,t,n,r){let o=e!==void 0?re.resolve(e):null;return CS(o instanceof Element?o:void 0,t,n,r)}function CS(e,t,n,r){var d;if(n!==void 0&&(n<0||n>1||Number.isNaN(n)))throw new RangeError(fK(n));let i=e!==void 0?hK(e,r!==void 0&&r!==0&&(t===void 0||t===0)?"x":"y"):(d=document.scrollingElement)!=null?d:document.documentElement,s=i.scrollTop,a=i.scrollLeft;if(n!==void 0)i.scrollTop=Math.round(i.scrollHeight*n);else if(r!==void 0&&r!==0&&(i.scrollLeft=a+r),r===void 0||t!==void 0&&t!==0){let f=t!=null?t:Math.round(i.clientHeight*dK)||uK;i.scrollTop=s+f}i.dispatchEvent(new Event("scroll",{bubbles:!1}));let l=i.scrollTop,u=i.scrollLeft;return{scrolled:l!==s||u!==a,scrollTop:l,scrollHeight:i.scrollHeight,clientHeight:i.clientHeight,atEnd:l+i.clientHeight>=i.scrollHeight-1,atStart:l<=1,scrollLeft:u,scrollWidth:i.scrollWidth,clientWidth:i.clientWidth,atLeftEnd:u<=1,atRightEnd:u+i.clientWidth>=i.scrollWidth-1}}M();Et();Yo();var mK='label, summary, [onclick], [tabindex], [contenteditable]:not([contenteditable="false"])';function D$(e,t){if(D.CLICK!==t&&D.DBLCLICK!==t)return!1;for(let n=e;n!==null;n=Pi(n))if(Rc.has(Le(n))||n.matches(mK))return!1;return getComputedStyle(e).cursor!=="pointer"}function vd(e,t=""){return typeof e=="string"?e:t}function gK(e){let t=re.resolve(e);if(t===null)throw new Error(`ref '${kr(e)}' no longer resolves to an element`);if(!Mi(t))throw new Error(`ref '${kr(e)}' is not an HTML or SVG element`);return t}var EK=new Set([D.FILL,D.TYPE,D.CLEAR,D.SELECT]),bK=e=>EK.has(e),H$=new Set([D.CLICK,D.DBLCLICK,D.CHECK,D.UNCHECK]);function F$(e){let t=vd(e.toRef);return t!==""?t:vd(e.target)}var P$=new Set(["content","name","type","__base64"]),_K=new Set([Hf,xR,"holdMs"]);function SK(e){let t=Object.keys(e),n=t.filter(o=>!P$.has(o)&&!_K.has(o));if(n.length===0&&t.some(o=>P$.has(o)))return;let r=n.length===0?"no file was described":`upload does not read ${n.join(", ")}, so it would be dropped`;throw new Error(`upload needs the file described as args: { name, content?, type? } \u2014 ${r}. To upload a file from disk, use the reticle daemon which reads it via args.path and delivers real bytes; calling with { path } directly reaches only fabricated content.`)}function TK(e,t,n){let r=t===D.CLICK||t===D.DBLCLICK||t===D.CHECK||t===D.UNCHECK||t===D.DRAG||t===D.SUBMIT||t===D.PRESS&&em(n)==="Enter",o=t===D.DRAG?re.resolve(F$(n)):null,i=t===D.PRESS&&em(n)==="Enter"?CC(e):null;r&&LC([e,i,Mi(o)?o:null]),(t===D.FILL||t===D.TYPE)&&$C(e);let s=vh(e)||i!==null&&vh(i),a=Mi(o)&&vh(o);if(r&&(s||a)&&n[Hf]!==!0)throw new Error(`potentially destructive action blocked; retry with args.${Hf}=true`);if(H$.has(t)&&e instanceof HTMLElement&&pS(e))throw new Error("cannot click a native <option> inside a visually-hidden <select> \u2014 open the dropdown and target the visible option")}function xK(e,t){var r,o;if(e.some(i=>i.value===t))return t;let n=e.filter(i=>i.label.trim()===t.trim());return n.length===1&&(o=(r=n[0])==null?void 0:r.value)!=null?o:t}function B$(e){return!Jo(e).includes(Se.DISABLED)}function M$(e){if(He(e)||vn(e)||$r(e))return e.value}function U$(e){let t=e.ownerDocument.activeElement;return t===null||t===e.ownerDocument.body?null:re.refFor(t)}async function AK(e,t,n){if(D.CLICK===t){let r=hc(n.holdMs);return await kc(e,r===0?void 0:{ms:r,sleep:$S,now:()=>Date.now()},void 0,RS(n))}if(D.TAP===t){let r=hc(n.holdMs);return await $$(e,r===0?void 0:{ms:r,sleep:$S,now:()=>Date.now()})}return{prevented:await NK(e,t,n),heldMs:0}}var yK="cannot zoom from inside the page \u2014 CSS zoom changes how it LOOKS without changing the layout viewport, visualViewport or media queries, so a layout that breaks at 200% would be reported as checked and passing. Drive a real browser (reticle drive <url>, or reticle_lease) and zoom there.";function wK(e){return Le(e)==="combobox"||e.getAttribute("aria-haspopup")==="listbox"}var vK=e=>`cannot select on a <${e}> \u2014 it is an ARIA combobox, not a native <select>. Click the combobox to open it, then click the option with { role: "option", name: "<label>" }.`;function LS(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}async function NK(e,t,n){var r;switch(t){case D.DBLCLICK:{let o=RS(n);return await kc(e,void 0,1,o),await kc(e,void 0,2,o),!rt(()=>e.dispatchEvent(Yi(e,"dblclick",{bubbles:!0,cancelable:!0,detail:2,...o.modifiers})))}case D.HOVER:{let o=e.ownerDocument,i=(r=o.activeElement)!=null?r:o.body;OS(e,"pointerover",i),e.dispatchEvent(Yi(e,"mouseover",{bubbles:!0,relatedTarget:i})),L$(e,"pointerenter",i),e.dispatchEvent(Yi(e,"mouseenter",{relatedTarget:i})),OS(e,"pointermove",i);let s=e.dispatchEvent(Yi(e,"mousemove",{bubbles:!0,cancelable:!0})),a=hc(n.holdMs);return a>0&&await $S(a),!s}case D.FOCUS:return e.focus(),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),!1;case D.BLUR:{let i=e.getRootNode().activeElement===e;return e.blur(),i||(e.dispatchEvent(new FocusEvent("blur")),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0}))),!1}case D.FILL:if(He(e)||vn(e)){if(typeof n.value!="string")throw new Error("fill requires a string `value` \u2014 pass it nested, as args: { value: '\u2026' }. To empty a field on purpose use the `clear` action, or fill with an explicit \"\".");return bS(e,"fill"),gS(e)||e.focus(),Kh(e,n.value)}throw ES(e,"fill"),new Error(`cannot fill a <${e.tagName.toLowerCase()}>`);case D.TYPE:if(He(e)||vn(e)){if(typeof n.text!="string")throw new Error("type requires a string `text` \u2014 pass it nested, as args: { text: '\u2026' }.");return bS(e,"type"),e.focus(),Kh(e,e.value+n.text)}throw ES(e,"type into"),new Error(`cannot type into a <${e.tagName.toLowerCase()}>`);case D.CLEAR:if(He(e)||vn(e))return Kh(e,"");throw new Error(`cannot clear a <${e.tagName.toLowerCase()}>`);case D.SELECT:if($r(e)){if(typeof n.value!="string")throw new Error("select requires a string `value` \u2014 pass it nested, as args: { value: '\u2026' }.");let o=Array.from(e.options),i=xK(o,n.value);if(!o.some(s=>s.value===i)){let s=o.map(a=>`${a.value} (${a.label})`).join(", ");throw new Error(`no <option> with value '${kr(i)}' \u2014 available: ${o.length===0?"(none)":s}`)}return e.value=i,e.dispatchEvent(new Event("change",{bubbles:!0})),!1}if(wK(e)){if(typeof n.value!="string")throw new Error("select requires a string `value` \u2014 pass it nested, as args: { value: '\u2026' }.");return await n$(e,n.value,o=>kc(o),vK(e.tagName.toLowerCase()))}throw new Error(`cannot select on a <${e.tagName.toLowerCase()}>`);case D.CHECK:case D.UNCHECK:{let o=qh(e);if(!He(e)&&!o)throw new Error(`cannot (un)check a <${e.tagName.toLowerCase()}>`);if(!B$(e))throw new Error(`cannot ${t} a disabled control \u2014 a real user could not, so neither will Reticle`);if(!He(e))return Jh(e,t)?!1:(await kc(e)).prevented;if(e.type==="radio"&&t===D.UNCHECK)throw new Error("cannot uncheck a radio button \u2014 a real user could not; select another radio in the group");if(Jh(e,t))return!1;let i=Yi(e,"click",{bubbles:!0,cancelable:!0,composed:!0});return!rt(()=>e.dispatchEvent(i))||i.defaultPrevented}case D.SUBMIT:{let o=K0(e)?e:e.closest("form");if(o===null)throw new Error("no form to submit");return o.requestSubmit(),!1}case D.PRESS:{let o=tm(n),i=S$(n);if(i.length>0)return await x$(e,i,o,hc(n.holdMs));let s=em(n),a=Qh(n,s),l=rt(()=>e.dispatchEvent(xd("keydown",{key:s,code:a,bubbles:!0,cancelable:!0,...o})));vS(e,s,l),l&&nm(e,s,a,o);let u=hc(n.holdMs);return u>0&&await T$(e,s,a,o,u),rt(()=>e.dispatchEvent(xd("keyup",{key:s,code:a,bubbles:!0,...o}))),!l}case D.SCROLL_INTO_VIEW:return e.scrollIntoView(),!1;case D.ZOOM:throw new Error(yK);case D.SCROLL:{let o=LS(n.dy),i=LS(n.dx),s=LS(n.fraction);return CS(e,o,s,i),!1}case D.UPLOAD:{if(!He(e)||e.type!=="file")throw new Error('upload target must be a <input type="file">');SK(n);let o=vd(n.content,"reticle test file"),i=o;if(n.__base64===!0){let u=atob(o),d=new Uint8Array(u.length);for(let f=0;f<u.length;f++)d[f]=u.charCodeAt(f);i=d.buffer.slice(0)}let s=new File([i],vd(n.name,"file.txt"),{type:vd(n.type,"text/plain")}),a=new DataTransfer;a.items.add(s),e.files=a.files;let l=e.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}));return e.dispatchEvent(new Event("change",{bubbles:!0})),!l}case D.DRAG:{let o=F$(n);if(o==="")return await IS(e,null,n.data);let i=re.resolve(o);if(!Mi(i))throw new Error(`drag target '${kr(o)}' did not resolve to an element \u2014 pass a ref from reticle_snapshot or reticle_query as args.toRef (alias: args.target)`);return await IS(e,i,n.data)}default:throw new Error(`unknown action '${t}'`)}}async function Nd(e,t,n={}){let r=0<e.length;if(D.CLICK===t||D.DBLCLICK===t){let be=LO(t,n);if(be!==void 0)throw new Error(`cannot ${t}: ${be}`)}let o=_$(e,t,n)?b$():gK(e);r&&TK(o,t,n),r&&k$(o);let i=r?y$(o):{},s=Je(o),a=B$(o),l=U$(o),u=M$(o),d=a$(o),f=H$.has(t)?C$(o):Ad,m=Jh(o,t),h=D$(o,t),E=0,_=new Xh,A=new MutationObserver(be=>{E+=be.length,_.collect(be)});A.observe(o.ownerDocument.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0});let v=!1,N=0,O=!1,k=null;try{let be=await AK(o,t,n);v=be.prevented,N=be.heldMs}finally{let be=e$(n.settleMs),me=await QL(be);O=me.settled,k=me.settled?null:NR.TIMEOUT,A.disconnect(),d==null||d.stop()}f$(o,t,m);let j=M$(o);c$(o,d);let Y=U$(o),X={dispatched:!0,targetMatched:r&&o.isConnected,visible:s,enabled:a,defaultPrevented:v,focusMoved:l!==Y?`${l!=null?l:"null"}->${Y!=null?Y:"null"}`:null,valueChanged:bK(t)?u!==j:!1,...D.FILL===t&&gS(o)?{autofillSafe:!0}:{},domMutatedWithin:E,..._.effect(j),occluded:f.occluded,occludedBy:f.occludedBy,scrolledIntoView:f.scrolledIntoView,...f.occluderName===void 0?{}:{occluderName:f.occluderName},...f.noSize===!0?{noSize:!0}:{},...f.offViewport===!0?{offViewport:!0}:{},...N>0?{heldMs:N}:{},...m?{alreadyAtValue:!0}:{},...RK()},G;r?f.occluded?G=$u.CLICK_OCCLUDED:t===D.HOVER&&Rh(o)?G=$u.HOVER_NATIVE_ENTER_LEAVE:h&&(G=$u.CLICK_NOT_A_CONTROL):G=$u.GLOBAL_PRESS;let ee=w$(e,t,X,O,k,i,G);return lr(o)?{...ee,reticleUi:!0}:ee}function RK(){let e=A$(document);return e>0?{canvases:e}:{}}var $S=e=>new Promise(t=>ue(t,e));async function im(e){var r;let t=[],n=[];for(let o of e){let i=await Nd(o.ref,o.action,(r=o.args)!=null?r:{});t.push(i.effect);let s={ref:i.ref,action:i.action,dispatched:i.dispatched,settled:i.settled,settleReason:i.settleReason};i.testid!==void 0&&(s.testid=i.testid),i.component!==void 0&&(s.component=i.component),i.role!==void 0&&(s.role=i.role),i.name!==void 0&&(s.name=i.name),i.source!==void 0&&(s.source=i.source),i.secret!==void 0&&(s.secret=i.secret),i.warning!==void 0&&(s.warning=i.warning),n.push(s)}return{ok:!0,count:e.length,effects:t,steps:n}}Et();ud();var G$="data-theme";function OK(e){return"cssRules"in e&&e.cssRules instanceof CSSRuleList}function K$(e,t,n){if(!(n<=0))for(let r of Array.from(e))if(r instanceof CSSStyleRule)for(let o of Array.from(r.style))o.startsWith("--")&&t.add(o);else OK(r)&&K$(r.cssRules,t,n-1)}function IK(){let e=new Set;for(let t of Array.from(document.styleSheets)){let n=null;try{n=t.cssRules}catch{continue}n!==null&&K$(n,e,8)}return e}function CK(){var o;let e=new Map,t=(o=document.body)!=null?o:document.documentElement;if(t===null)return e;let n=getComputedStyle(t),r=document.createElement("span");r.style.position="absolute",r.style.pointerEvents="none",document.body.appendChild(r);try{for(let i of IK()){let s=LK(r,n.getPropertyValue(i).trim());if(s===null)continue;let a=e.get(s);a===void 0?e.set(s,[i]):a.push(i)}}finally{r.remove()}for(let i of e.values())i.sort();return e}function LK(e,t){return t.length===0||(e.style.color="",e.style.color=t,e.style.color==="")?null:getComputedStyle(e).color}function V$(e){return e==="rgba(0, 0, 0, 0)"||e==="transparent"}function $K(){let e=document.documentElement;if(e===null)return null;let t=Array.from(e.classList).map(o=>`.${o}`).join(""),n=e.getAttribute(G$),r=`${t}${n===null?"":`[${G$}="${n}"]`}`;return r.length===0?null:r}function j$(e){var t;return e.length===1&&(t=e[0])!=null?t:null}function Z$(e){var a,l;let t=CK(),n=(a=t.get(e.color))!=null?a:[],r=(l=t.get(e.backgroundColor))!=null?l:[],o=!V$(e.color)&&n.length===0,i=!V$(e.backgroundColor)&&r.length===0,s=0;for(let u of t.values())s+=u.length;return{colorToken:j$(n),colorTokens:n,backgroundToken:j$(r),backgroundTokens:r,offTheme:s>0&&(o||i),tokenCount:s,themeScope:$K()}}gt();dn();M();ur();po();function Rd(e){try{return e()}catch{return null}}function sm(e){var n;let t={};if(e===null)return t;for(let r=0;r<e.length;r+=1){let o=e.key(r);if(o===null)continue;let i=(n=e.getItem(o))!=null?n:"";t[o]=St(o)?ve:io(i)}return t}function W$(){let e={},t="";try{t=typeof document!="undefined"?document.cookie:""}catch{return e}for(let n of t.split(";")){let r=n.indexOf("=");if(r===-1)continue;let o=n.slice(0,r).trim();if(o==="")continue;if(St(o)){e[o]=ve;continue}let i="";try{i=decodeURIComponent(n.slice(r+1).trim())}catch{i=n.slice(r+1).trim()}e[o]=io(i)}return e}function Y$(e){return e===Vs.LOCAL?sm(Rd(()=>window.localStorage)):e===Vs.SESSION?sm(Rd(()=>window.sessionStorage)):Vs.COOKIE===e?W$():{local:sm(Rd(()=>window.localStorage)),session:sm(Rd(()=>window.sessionStorage)),cookies:W$()}}function Xs(e,t){if(t!==null)return St(e)?ve:io(t)}function X$(e){var d,f,m;if(typeof Storage=="undefined")return()=>{};let t=Storage.prototype,n=(d=Object.getOwnPropertyDescriptor(t,"setItem"))==null?void 0:d.value,r=(f=Object.getOwnPropertyDescriptor(t,"removeItem"))==null?void 0:f.value,o=(m=Object.getOwnPropertyDescriptor(t,"clear"))==null?void 0:m.value;if(n===void 0||r===void 0||o===void 0)return()=>{};let i=h=>h===Rd(()=>window.sessionStorage)?Vs.SESSION:Vs.LOCAL,s=(h,E)=>{try{return h.getItem(E)}catch{return null}},a=function(h,E){var A;let _=(A=Zt(()=>s(this,h)))!=null?A:null;n.call(this,h,E),_!==E&&(Th(h)||oe(()=>{var v;e(w.STORAGE_CHANGE,{area:i(this),key:h,...Xs(h,_)===void 0?{}:{old:Xs(h,_)},new:(v=Xs(h,E))!=null?v:ve})}))};t.setItem=a;let l=function(h){var _;let E=(_=Zt(()=>s(this,h)))!=null?_:null;r.call(this,h),!Th(h)&&oe(()=>{e(w.STORAGE_CHANGE,{area:i(this),key:h,...Xs(h,E)===void 0?{}:{old:Xs(h,E)}})})};t.removeItem=l;let u=function(){let h=i(this),E=[];try{for(let _=0;_<this.length;_+=1){let A=this.key(_);A!==null&&!Th(A)&&E.push({key:A,old:s(this,A)})}}catch{}o.call(this);for(let{key:_,old:A}of E)oe(()=>{e(w.STORAGE_CHANGE,{area:h,key:_,...Xs(_,A)===void 0?{}:{old:Xs(_,A)}})})};return t.clear=u,()=>{t.setItem===a&&(t.setItem=n),t.removeItem===l&&(t.removeItem=r),t.clear===u&&(t.clear=o)}}M();gt();dt();var zc=16,kK=500,zK=4,DK=2166136261,PK=16777619,MK=8;function UK(e){var i,s;let t=DK,n=[0,0,0],r=Math.max(1,e.length/4);for(let a=0;a<e.length;a+=4)for(let l=0;l<3;l+=1){let u=(i=e[a+l])!=null?i:0;n[l]=((s=n[l])!=null?s:0)+u,t=Math.imul(t^Math.floor(u/MK),PK)>>>0}let o=n.map(a=>Math.round(a/r));return{digest:t.toString(16).padStart(8,"0"),mean:o}}function HK(e){if(e.width===0||e.height===0)return;let t=document.createElement("canvas");t.width=zc,t.height=zc;let n=t.getContext("2d");if(n===null)return;let r=Zt(()=>(n.drawImage(e,0,0,zc,zc),n.getImageData(0,0,zc,zc).data));return r===void 0?void 0:{data:r,width:e.width,height:e.height}}var Dc;function kS(){Dc==null||Dc(ks.ACT)}function q$(e,t={}){var a,l;let n=(a=t.sample)!=null?a:HK,r=(l=t.every)!=null?l:Wh,o=new WeakMap,i=u=>{oe(()=>{let d=Array.from(document.querySelectorAll("canvas")).slice(0,zK);for(let f of d){let m=n(f);if(m===void 0)continue;let{digest:h,mean:E}=UK(m.data);ks.POLL===u&&o.get(f)===h||(o.set(f,h),e(w.CANVAS_DIGEST,{digest:h,width:m.width,height:m.height,mean:E,trigger:u},re.refFor(f)))}})};Dc=i;let s=r(()=>i(ks.POLL),kK);return()=>{s(),Dc===i&&(Dc=void 0)}}M();dt();nt();var FK=ac.FULL_PAGE_UNSUPPORTED,BK=[FK,ac.NOT_COMPOSITED],GK="__TAURI_INTERNALS__";function VK(){let e=window[GK];if(typeof(e==null?void 0:e.invoke)!="function")return;let t=e.invoke.bind(e);return async n=>{let r=await t(lh,{fullPage:n===!0});return typeof r=="string"?r:null}}async function jK(e){let t=[...document.querySelectorAll(Ui)],n=t.map(r=>r.style.visibility);for(let r of t)r.style.visibility="hidden";try{return t.length>0&&(await mo(),await mo()),await e()}finally{t.forEach((r,o)=>{var i;r.style.visibility=(i=n[o])!=null?i:""})}}async function J$(e=!1){let t=window[Ko],n=typeof(t==null?void 0:t.capture)=="function"?t.capture:VK();if(n===void 0)return{ok:!1,reason:"no desktop capture helper installed"};try{let r=await jK(()=>n(e));return typeof r=="string"&&r.length>0?{ok:!0,path:r}:{ok:!1,reason:"capture returned no image"}}catch(r){let o=r instanceof Error?r.message:String(r);for(let i of BK)if(o.includes(i))return{ok:!1,reason:i};return{ok:!1,reason:o}}}Qo();Ys();ur();Ki();function KK(e,t){var n;return(n=Object.getOwnPropertyDescriptor(e,t))==null?void 0:n.value}function Dr(e,t){let n=KK(e,t);if(n===void 0)throw new Error(`[Reticle] cannot patch ${String(t)}: it is not an own property of the target`);return n}Wo();var ZK=12e4,Mc=!1,ti=0,Q$=0,ek=1,ni=[],Pc=null,qs,am={};function tk(){if(Pc===null)return;let e=Pc,t=e.clearTimeout.bind(window);qs!==void 0&&t(qs),qs=e.setTimeout.bind(window)(()=>{qs=void 0,Uc()},ZK)}function nk(){return Mc}function rk(){if(Mc||typeof window=="undefined")return;Mc=!0,ti=0,Q$=Date.now(),Pc={setTimeout:Dr(window,"setTimeout"),clearTimeout:Dr(window,"clearTimeout"),setInterval:Dr(window,"setInterval"),clearInterval:Dr(window,"clearInterval"),dateNow:Dr(Date,"now")};let e=(r,o,i)=>{let s=ek;return ek+=1,ni.push({id:s,time:ti+Math.max(0,o),cb:r,interval:i}),s},t=r=>{ni=ni.filter(o=>o.id!==r)},n=(r,o)=>()=>{r(...o)};window.setTimeout=((r,o=0,...i)=>e(n(r,i),o)),window.clearTimeout=(r=>t(r)),window.setInterval=((r,o=0,...i)=>e(n(r,i),o,Math.max(1,o))),window.clearInterval=(r=>t(r)),am={setTimeout:ke(window,"setTimeout"),clearTimeout:ke(window,"clearTimeout"),setInterval:ke(window,"setInterval"),clearInterval:ke(window,"clearInterval")},Date.now=()=>Q$+ti,am.dateNow=ke(Date,"now"),tk()}function ok(e){if(!Mc)return;let t=ti+Math.max(0,e),n=0;for(;n+=1,!(n>1e5);){let o=ni.filter(i=>i.time<=t).sort((i,s)=>i.time-s.time)[0];if(o===void 0)break;ni=ni.filter(i=>i!==o),ti=o.time,o.cb(),o.interval!==void 0&&ni.push({...o,time:ti+o.interval})}ti=t,tk()}function Uc(){if(!Mc||Pc===null)return;let e=Pc,t=ni;qs!==void 0&&(e.clearTimeout.bind(window)(qs),qs=void 0);let n=am;am={},window.setTimeout===n.setTimeout&&(window.setTimeout=e.setTimeout),window.clearTimeout===n.clearTimeout&&(window.clearTimeout=e.clearTimeout),window.setInterval===n.setInterval&&(window.setInterval=e.setInterval),window.clearInterval===n.clearInterval&&(window.clearInterval=e.clearInterval),Date.now===n.dateNow&&(Date.now=e.dateNow);let r=ti;if(Pc=null,ni=[],Mc=!1,ti=0,t.length===0)return;let o=e.setTimeout.bind(window),i=e.setInterval.bind(window),s=new Map,a={},l=u=>{s.delete(u),s.size===0&&a.current!==void 0&&YK(e,a.current)};for(let u of t)u.interval!==void 0?s.set(u.id,i(u.cb,u.interval)):s.set(u.id,o(()=>{l(u.id),u.cb()},Math.max(0,u.time-r)));a.current=WK(s,e,l)}function WK(e,t,n){let r=o=>{let i=o.bind(window);return(s=>{let a=e.get(s);if(a===void 0){i(s);return}i(a),n(s)})};return window.clearTimeout=r(t.clearTimeout),window.clearInterval=r(t.clearInterval),{clearTimeout:ke(window,"clearTimeout"),clearInterval:ke(window,"clearInterval")}}function YK(e,t){window.clearTimeout===t.clearTimeout&&(window.clearTimeout=e.clearTimeout),window.clearInterval===t.clearInterval&&(window.clearInterval=e.clearInterval)}var cm="_reticle_reload";function Qe(e){return typeof e=="string"?e:void 0}function pk(e){return typeof e=="number"?e:void 0}function uk(e){return typeof e=="object"&&e!==null?e:{}}function d3(e){if(typeof e!="object"||e===null)return;let t=e;if(!(typeof t.file!="string"||typeof t.line!="number"))return{file:t.file,line:t.line,column:pk(t.column)}}function p3(e){return{by:Qe(e.by),value:Qe(e.value),role:Qe(e.role),name:Qe(e.name),text:Qe(e.text),label:Qe(e.label),placeholder:Qe(e.placeholder),testid:Qe(e.testid),alt:Qe(e.alt),component:Qe(e.component),scope:Qe(e.scope),self:e.self===!0?!0:void 0,attrs:Array.isArray(e.attrs)?e.attrs.filter(t=>typeof t=="string"):void 0,source:d3(e.source)}}function f3(e,t=!1){var h,E,_,A,v,N,O;let n=re.resolve(e);if(n===null)throw new Error(fd.staleRefMessage(e));let r=t&&typeof n.scrollIntoView=="function"&&wd(n,n.getBoundingClientRect());r&&n.scrollIntoView({block:"center",inline:"center"});let o=n.getBoundingClientRect(),i=dr(n),s=n.ownerDocument.defaultView,a=s!==null?s.getComputedStyle(n):null,l=a!==null?{color:a.color,backgroundColor:a.backgroundColor,opacity:a.opacity,cursor:a.cursor,display:a.display,visibility:a.visibility}:null,u=yh(Ah(n,i==null?void 0:i.source)),d=u!==void 0?void 0:NC(n.ownerDocument)?"This element has no source stamp. Others on the page do, so the stamping loader is running \u2014 the nearest stamped ancestor is out of range, or this element is rendered outside instrumented code.":"No element in this document carries a source stamp, so the stamping loader is not running: an older adapter, a bundler whose hook never ran, or a build the plugin was dropped from. Add @reticlehq/vite-plugin (or @reticlehq/babel-plugin) to the dev build and restart the dev server to get `file:line` back.",f={scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,clientHeight:n.clientHeight,overflowY:(h=a==null?void 0:a.overflowY)!=null?h:"visible",scrollLeft:n.scrollLeft,scrollWidth:n.scrollWidth,clientWidth:n.clientWidth,overflowX:(E=a==null?void 0:a.overflowX)!=null?E:"visible"},m=W0(n);return{...ho(n),...u!==void 0?{source:u}:{},...m.length>0?{paintContext:m}:{},...d!==void 0?{sourceUnavailable:d}:{},tag:n.tagName.toLowerCase(),href:(_=n.getAttribute("href"))!=null?_:void 0,formAction:(ed(n)||He(n))&&(v=(A=n.form)==null?void 0:A.getAttribute("action"))!=null?v:void 0,formText:(ed(n)||He(n))&&(O=(N=n.form)==null?void 0:N.textContent)!=null?O:void 0,box:{x:o.x,y:o.y,width:o.width,height:o.height},...r?{scrolledIntoView:!0}:{},...t?{[yR]:!wd(n,o)}:{},occluded:h3(n,o),styles:l,scroll:f,theme:a!==null?Z$(a):null,component:i}}function h3(e,t){return rm(e,t)!==null}function m3(e){return typeof e=="object"&&e!==null&&"ok"in e&&typeof e.ok=="boolean"}var dk={ok:!1,reason:RR.UNAVAILABLE};function g3(e,t,n,r){let o=Vi();if(n!==void 0||r!==void 0){let l=sS(t);if(t!==void 0&&!Object.hasOwn(l,t))return{store:t,path:n,found:!1,value:null,storeNames:o};let u=t!==void 0?l[t]:{stores:l,storeNames:o},d=n!==void 0?ZI(u,n):{found:!0,value:u},f=d.found&&r!==void 0?bc(d.value,r):d.value,m=Zs(f);return{store:t,path:n,found:d.found,value:m.value,...m.truncation===void 0?{}:{truncation:m.truncation},..."availableKeys"in d?{availableKeys:d.availableKeys}:{},..."totalKeys"in d?{totalKeys:d.totalKeys}:{},storeNames:o}}let{stores:i,truncation:s}=Ed(t),a={stores:i,storeNames:o};if(s!==void 0&&(a.truncation=s),e!==void 0&&e.length>0){let l=re.resolve(e);if(l===null)a.component=dk;else{let u=Nh(l);a.component=m3(u)?u:dk}}return a}function E3(){let e=document;return typeof e.getAnimations!="function"?{animations:[]}:{animations:e.getAnimations().map(n=>{var s;let r=n.effect,o=r==null?void 0:r.getTiming(),i=(s=r==null?void 0:r.target)!=null?s:null;return{playState:n.playState,currentTime:n.currentTime,duration:o==null?void 0:o.duration,target:i===null?null:ho(i)}})}}function b3(e,t){if(e.length===0||e.length>Z.MAX_URL_LENGTH)return null;try{let n=new URL(e,t);return n.protocol==="http:"||n.protocol==="https:"?n.toString():null}catch{return null}}function fk(){let e=new Map;return e.set(H.SNAPSHOT,t=>{var n;return Lh({scope:Qe(t.scope),mode:(n=Qe(t.mode))!=null?n:lc.FULL,includeRoot:t.includeRoot===!0,ids:t.ids===!0,audit:t.audit===!0})}),e.set(H.QUERY,t=>{let n=t.limit;return Vh(p3(t),typeof n=="number"?n:void 0)}),e.set(H.MATCH,t=>_d(Du.parse(uk(t.query)),Qe(t.state),void 0,void 0,t.diagnose===!0)),e.set(H.ACT,async t=>{var o,i;let n=(o=Qe(t.action))!=null?o:"",r=await Nd((i=Qe(t.ref))!=null?i:"",n,uk(t.args));return kS(),r}),e.set(H.ACT_SEQUENCE,async t=>{let n=await im(Array.isArray(t.steps)?t.steps:[]);return kS(),n}),e.set(H.INSPECT,t=>{var n;return f3((n=Qe(t.ref))!=null?n:"",t[AR]===!0)}),e.set(H.ANIMATIONS,()=>E3()),e.set(H.CLOCK,t=>{if(t.reset===!0)Uc();else{t.freeze===!0&&rk();let n=t.advanceMs;typeof n=="number"&&ok(n)}return{frozen:nk()}}),e.set(H.STATE_READ,t=>g3(Qe(t.ref),Qe(t.store),Qe(t.path),pk(t.depth))),e.set(H.STORAGE_READ,t=>Y$(Qe(t.area))),e.set(H.CAPABILITIES,()=>ji()),e.set(H.CAPTURE,t=>J$(t.fullPage===!0)),e.set(H.RENDER,()=>Promise.resolve().then(()=>(lk(),ck)).then(t=>t.renderPage())),e.set(H.SCROLL,t=>{let n=t.dy,r=t.fraction;return z$(Qe(t.ref),typeof n=="number"?n:void 0,typeof r=="number"?r:void 0)}),e.set(H.NAVIGATE,t=>{let n=Qe(t.url);if(n===void 0||n.length===0)return{ok:!1,reason:"url required"};let r=b3(n,window.location.href);return r===null?{ok:!1,reason:"only http(s) navigation is allowed"}:(window.location.assign(r),{ok:!0,url:r})}),e.set(H.REFRESH,t=>{if(t.hard===!0){let n=new URL(window.location.href);n.searchParams.set(cm,String(Date.now())),window.location.replace(n.toString())}else window.location.reload();return{ok:!0}}),e}M();dt();gd();ur();function _3(e){if(typeof document=="undefined")return()=>{};let t=()=>{document.visibilityState==="visible"&&e()};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)}var lm=1e3,S3=3e4;function T3(e){return Math.min(e*2,S3)}var x3=500,A3=1008,y3=3,Yt,ri,Xi,dm,go,qi,Fc,Bc,Ji,Gc,Id,Vc,Cd,jc,Js,Kc,Zc,fn,Ld,ze,hk,Hc,zS,mk,DS,PS,gk,Od,Ek,um=class{constructor(t){x(this,ze);x(this,Yt);x(this,ri,[]);x(this,Xi,[]);x(this,dm,0);x(this,go,!1);x(this,qi,!1);x(this,Fc,!1);x(this,Bc);x(this,Ji,lm);x(this,Gc,!1);x(this,Id,!1);x(this,Vc,0);x(this,Cd,!1);x(this,jc,0);x(this,Js);x(this,Kc);x(this,Zc);x(this,fn);x(this,Ld);var n;g(this,fn,t),g(this,Ld,(n=t.now)!=null?n:Zh)}connect(){var t,n;typeof WebSocket!="undefined"&&(g(this,go,!1),(n=c(this,Zc))!=null||g(this,Zc,((t=c(this,fn).onVisible)!=null?t:_3)(()=>T(this,ze,hk).call(this))),T(this,ze,Hc).call(this))}sendEvent(t){T(this,ze,Od).call(this,fo({kind:sn.EVENT,event:t}),{seq:t.seq,t:t.t,type:t.type})}redialAfterRefusal(){if(!c(this,go)){if(c(this,qi)&&c(this,Yt)===void 0){g(this,qi,!1),g(this,Ji,lm),T(this,ze,Hc).call(this);return}g(this,Fc,!0)}}reannounce(){c(this,Yt)===void 0||c(this,Yt).readyState!==WebSocket.OPEN||c(this,Yt).send(JSON.stringify(c(this,fn).hello()))}close(){var t,n;g(this,go,!0),(t=c(this,Zc))==null||t.call(this),g(this,Zc,void 0),(n=c(this,Yt))==null||n.close(),g(this,Yt,void 0)}};Yt=new WeakMap,ri=new WeakMap,Xi=new WeakMap,dm=new WeakMap,go=new WeakMap,qi=new WeakMap,Fc=new WeakMap,Bc=new WeakMap,Ji=new WeakMap,Gc=new WeakMap,Id=new WeakMap,Vc=new WeakMap,Cd=new WeakMap,jc=new WeakMap,Js=new WeakMap,Kc=new WeakMap,Zc=new WeakMap,fn=new WeakMap,Ld=new WeakMap,ze=new WeakSet,hk=function(){c(this,go)||(g(this,Ji,lm),c(this,Yt)===void 0&&(g(this,qi,!1),T(this,ze,Hc).call(this)))},Hc=function(){let t;try{t=new WebSocket(c(this,fn).url)}catch{T(this,ze,PS).call(this),T(this,ze,DS).call(this),T(this,ze,zS).call(this);return}g(this,Yt,t),t.onopen=()=>{var o,i,s;g(this,Bc,void 0),g(this,Gc,!1),g(this,Id,!0),g(this,Ji,lm);let n=c(this,fn).hello();(o=c(this,Kc))!=null||g(this,Kc,n.sessionId),t.send(JSON.stringify(n)),T(this,ze,Ek).call(this,t,n.sessionId);let r=[...c(this,ri),...c(this,Xi)].sort((a,l)=>a.order-l.order);for(let a of r)t.send(a.text);g(this,ri,[]),g(this,Xi,[]),(s=(i=c(this,fn)).onConnected)==null||s.call(i)},t.onmessage=n=>{let r=n.data;T(this,ze,gk).call(this,typeof r=="string"?r:String(r))},t.onclose=n=>{var r,o;if(g(this,Yt,void 0),n.code===A3){if(c(this,Fc)&&!c(this,go)){g(this,Fc,!1),T(this,ze,Hc).call(this);return}g(this,qi,!0);let i=n.reason.length>0?n.reason:"policy violation";zr(`[reticle] bridge refused the connection: ${i} \u2014 not retrying until you come back to this tab.`),(o=(r=c(this,fn)).onConnectionLost)==null||o.call(r);return}T(this,ze,PS).call(this),T(this,ze,DS).call(this),T(this,ze,zS).call(this)},t.onerror=()=>{t.close()}},zS=function(){var r;if(c(this,go)||c(this,qi))return;let t=c(this,Ji);g(this,Ji,T3(t)),((r=c(this,fn).schedule)!=null?r:ue)(()=>T(this,ze,mk).call(this),t)},mk=function(){c(this,go)||c(this,Yt)!==void 0||T(this,ze,Hc).call(this)},DS=function(){var t,n;c(this,Id)||c(this,Cd)||(g(this,Vc,c(this,Vc)+1),c(this,Vc)>=y3&&(g(this,Cd,!0),(n=(t=c(this,fn)).onUnreachable)==null||n.call(t,{url:c(this,fn).url,attempts:c(this,Vc)})))},PS=function(){var n,r,o;let t=c(this,Ld).call(this);(n=c(this,Bc))!=null||g(this,Bc,t),!c(this,Gc)&&t-c(this,Bc)>=HO.BRIDGE_LOST_MS&&(g(this,Gc,!0),(o=(r=c(this,fn)).onConnectionLost)==null||o.call(r))},gk=async function(t){var s;let n;try{n=JSON.parse(t)}catch{return}let r=p_.safeParse(n);if(!r.success){let a=n==null?void 0:n.id;typeof a=="string"&&a.length>0&&T(this,ze,Od).call(this,fo({kind:sn.COMMAND_RESULT,id:a,ok:!1,error:"this page could not parse the command \u2014 the @reticlehq/browser SDK and the daemon are probably different versions. Nothing ran."}));return}let o=r.data;if(o.sessionId!==void 0&&o.sessionId!==c(this,Kc)){T(this,ze,Od).call(this,fo({kind:sn.COMMAND_RESULT,id:o.id,ok:!1,error:`command addressed to session ${o.sessionId} but this page is ${(s=c(this,Kc))!=null?s:"(none)"} \u2014 the page reconnected under a new id, or two sessions share a socket. Nothing ran.`}));return}let i;try{i=await c(this,fn).handleCommand(o)}catch(a){i={ok:!1,error:a instanceof Error?a.message:String(a)}}T(this,ze,Od).call(this,fo({kind:sn.COMMAND_RESULT,id:o.id,ok:i.ok,result:i.result,error:i.error}))},Od=function(t,n){if(c(this,Yt)!==void 0&&c(this,Yt).readyState===WebSocket.OPEN){c(this,Yt).send(t);return}if(c(this,ri).length+c(this,Xi).length>=x3){let i=c(this,ri).length>0?c(this,ri).shift():c(this,Xi).shift();if((i==null?void 0:i.event)!==void 0){g(this,jc,c(this,jc)+1);let s=c(this,Js);(s===void 0||i.event.t<s.t)&&g(this,Js,i.event)}}let r=n!==void 0&&vO.has(n.type),o=bA(this,dm)._++;r?c(this,ri).push({text:t,event:n,order:o}):c(this,Xi).push({text:t,event:n,order:o})},Ek=function(t,n){let r=c(this,Js);if(r===void 0)return;let o={t:r.t,seq:r.seq,type:w.TRANSPORT_OVERFLOW,sessionId:n,data:{dropped:c(this,jc)}};t.send(fo({kind:sn.EVENT,event:o})),g(this,Js,void 0),g(this,jc,0)};MS();Qo();M();Ys();function _k(){let e=[$.UI,$.NET,$.LOG,$.ROUTE,$.STORAGE,$.TIME,$.SIGNAL];return Vi().length>0?[...e,$.STATE]:e}M();var w3="__TAURI_INTERNALS__";function Sk(){if(typeof window=="undefined")return so.SERVICE;let e=window;return e[Ko]!==void 0||e[w3]!==void 0?so.WEBVIEW:so.WEB}var v3=[H.SNAPSHOT,H.QUERY,H.MATCH,H.INSPECT,H.ACT,H.ACT_SEQUENCE,H.ANIMATIONS,H.NARRATE,H.CLOCK,H.CAPABILITIES,H.STATE_READ,H.STORAGE_READ,H.SCROLL,H.SESSION_CONFIG,H.PRESENTER,H.IMPACT,H.CAPTURE,H.RENDER,H.NAVIGATE,H.REFRESH,H.FLOWS,H.FLOW_PROGRESS,H.PLAN,H.MARKERS];function Tk(){return[...v3]}Ki();Ot();M();Et();uo();gt();nt();Yo();dn();function N3(e){var t,n;try{return(n=(t=e.contentDocument)==null?void 0:t.body)!=null?n:null}catch{return null}}function US(e){let t=[],n=(r,o)=>{if(!(o>=3))for(let i of r.querySelectorAll("iframe")){let s=N3(i);s!==null&&(t.push(s),n(s,o+1))}};return n(e,0),t}function xk(e){let t=new AbortController,n=()=>{for(let o of US(document))e(o)};n();let r=o=>{o.target instanceof HTMLIFrameElement&&n()};return document.addEventListener("load",r,{capture:!0,signal:t.signal}),()=>t.abort()}function Ak(e){var r;let t=wn(e)?e:null;if(t===null)return;let n=t.closest(Vn());return(r=n?Ne(n):null)!=null?r:re.refFor(t)}var R3=["class","hidden","disabled","open","aria-hidden","aria-expanded","aria-selected","aria-checked","data-state","style","src","href","value"],yk=120;function fm(e){if(e!==null)return e.length>yk?`${e.slice(0,yk)}\u2026`:e}var O3=new Set(["dialog","alertdialog"]),I3=new Set(["alert","status"]),$d=40;function wk(e,t){return e!=="generic"||t.length>0}var C3=40;function vk(e){let t=Le(e),n=we(e);if(wk(t,n))return{role:t,name:n,el:e};let r=0;for(let o of e.querySelectorAll("*")){if(r>=C3)return;if(r+=1,Hi(o))continue;let i=Le(o),s=we(o);if(wk(i,s))return{role:i,name:s,el:o}}}var L3=3;function HS(e){var r;let t="";for(let o of e)o.nodeType===L3&&(t+=(r=o.nodeValue)!=null?r:"");let n=t.trim();return n.length>0?n:void 0}var $3=new Set(["class","style","type","disabled","readonly","required","hidden"]);function k3(e,t){return!$3.has(t)&&!t.startsWith("aria-")&&pn(e)}var z3=3,D3=50;function P3(e){let t=e;for(let n=0;t!==null&&n<=z3;n+=1){let r=Ne(t);if(r!==null&&r.length>0)return r;t=t.parentElement}}var Nk=e=>{let t=P3(e);return t===void 0?{}:{testid:t}};function Rk(e){let t=F0(),n=new MutationObserver(s=>{var m,h,E,_,A,v,N;let a=0,l=0,u=0,d=0,f=0;for(let O of s){if(O.type==="attributes"){let k=O.target;if(wn(k)&&O.attributeName!==null&&!Hi(k)){if(u>=$d){f+=1;continue}u+=1;let j=k3(k,O.attributeName),Y=j?ve:fm(k.getAttribute(O.attributeName)),X=j&&O.oldValue!==null?ve:fm(O.oldValue);e(w.DOM_ATTR,{attr:O.attributeName,...Y===void 0?{}:{value:Y},...X===void 0?{}:{old:X}},re.refFor(k))}continue}if(O.type==="characterData"){let k=O.target.parentElement;if(k!==null&&!Hi(k)){if(u>=$d){f+=1;continue}u+=1;let j=pn(k),Y=j?ve:((m=O.target.textContent)!=null?m:"").trim().slice(0,80),X=j?void 0:fm((E=(h=O.oldValue)==null?void 0:h.trim())!=null?E:null);e(w.DOM_TEXT,{text:Y,...X===void 0?{}:{old:X},...Nk(k)},re.refFor(k))}continue}if(HS(O.addedNodes)!==void 0||HS(O.removedNodes)!==void 0){let k=wn(O.target)?O.target:null;if(k!==null&&!Hi(k))if(u>=$d)f+=1;else{u+=1;let j=pn(k),Y=j?ve:((_=k.textContent)!=null?_:"").trim().slice(0,80),X=j?void 0:fm((A=HS(O.removedNodes))!=null?A:null);e(w.DOM_TEXT,{text:Y,...X===void 0?{}:{old:X},...Nk(k)},re.refFor(k))}}for(let k of O.addedNodes){if(!wn(k))continue;if(a>=$d){f+=1;continue}if(Hi(k))continue;let j=[k,...Array.from(k.querySelectorAll(Vn()))].filter(be=>Ne(be)!==null);for(let be of j){let me=((v=be.textContent)!=null?v:"").trim();if(me.length===0)continue;if(d>=D3){f+=1;continue}d+=1;let it=pn(be)?ve:me.slice(0,80);e(w.DOM_TEXT,{text:it,testid:(N=Ne(be))!=null?N:"",initial:!0},re.refFor(be))}let Y=vk(k);if(Y===void 0)continue;let{role:X,name:G}=Y;a+=1;let ee=re.refFor(Y.el);e(w.DOM_ADDED,{role:X,name:G,region:Ak(O.target)},ee),(O3.has(X)||I3.has(X)||k.getAttribute("aria-modal")==="true")&&Je(k)&&e(w.VISIBLE_SHOWN,{role:X,name:G},ee)}for(let k of O.removedNodes){if(!wn(k))continue;if(l>=$d){f+=1;continue}if(Hi(k)||wn(O.target)&&Hi(O.target))continue;let j=vk(k);if(j===void 0)continue;let{role:Y,name:X}=j;l+=1,e(w.DOM_REMOVED,{role:Y,name:X,region:Ak(O.target)})}}f>0&&e(w.TRUNCATED,{channel:Bf.DOM,dropped:f})}),r={subtree:!0,childList:!0,attributes:!0,attributeFilter:R3,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0};n.observe(document.documentElement,r);for(let s of M0())n.observe(s,r);let o=H0(s=>n.observe(s,r)),i=xk(s=>n.observe(s,r));return()=>{i(),o(),t(),n.disconnect()}}M();Ys();ur();function Ok(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function M3(e,t){if(!Ok(e)||!Ok(t))return Object.is(e,t)?[]:[{path:"",old:e,new:t}];let n=[];for(let r of new Set([...Object.keys(e),...Object.keys(t)]))Object.is(e[r],t[r])||n.push({path:r,old:e[r],new:t[r]});return n}function Ik(e,t){return St(e)?ve:cd(t)}function Ck(e,t){if(Object.is(e,t))return!0;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}function Lk(e){try{return e()}catch{return}}function $k(e){let t=new Map,n=([o,i,s])=>{var l;try{(l=t.get(o))==null||l()}catch{}let a=Lk(i);t.set(o,s(()=>{oe(()=>{let u=Lk(i),d=M3(a,u);a=u;for(let f of d){let m=Ik(f.path,f.new),h=Ik(f.path,f.old);(St(f.path)?Ck(cd(f.old),cd(f.new)):Ck(h,m))||oe(()=>e(w.STATE_CHANGE,{name:o,path:f.path,value:m,old:h}))}})}))};for(let o of SL())n(o);t.size===0&&e(w.BLIND_SPOT,{kind:cn.UNWATCHED_STATE,count:1});let r=EL(o=>{let i=t.size===0;n(o),i&&t.size>0&&e(w.BLIND_SPOT,{kind:cn.UNWATCHED_STATE,count:0})});return()=>{r();for(let o of t.values())try{o()}catch{}t.clear()}}M();Et();function Wc(e){if(!(e instanceof Element)||e===document.body)return;let t=Le(e),n=we(e);return n.length>0?`${t} "${n}"`:t}function U3(e){return e===null||e===document.body}function kk(e){let t=new AbortController,{signal:n}=t,r=null,o=s=>{let a=s.target,l=r;r=a,e(w.FOCUS_CHANGE,{...Wc(a)===void 0?{}:{to:Wc(a)},...Wc(l)===void 0?{}:{from:Wc(l)},toBody:U3(a)})},i=s=>{if(s.relatedTarget!==null)return;let a=r;r=null,e(w.FOCUS_CHANGE,{...Wc(a)===void 0?{}:{from:Wc(a)},toBody:!0})};return document.addEventListener("focusin",o,{signal:n}),document.addEventListener("focusout",i,{signal:n}),()=>t.abort()}M();function H3(e){let t=e;for(let n=0;n<3;n+=1){let r=Array.from(t.children).filter(i=>i instanceof HTMLElement),o=r.length===1?r[0]:void 0;if(o===void 0||o.offsetHeight<t.scrollHeight*.9)return t;t=o}return t}function F3(e){let t=e.scrollHeight,n=e.clientHeight;if(n<=0||t<n*1.2)return 0;let r=H3(e),o=Array.from(r.children).filter(m=>m instanceof HTMLElement);if(o.length<2)return 0;let i=1/0,s=0,a=0,l=e.getBoundingClientRect(),u=e.offsetHeight>0&&l.height>0?l.height/e.offsetHeight:1;for(let m of o){let h=(m.getBoundingClientRect().top-l.top)/u-e.clientTop+e.scrollTop,E=h+m.offsetHeight;h<i&&(i=h),E>s&&(s=E),a+=m.offsetHeight}let d=Math.max(0,i)+Math.max(0,t-s);if(d<t*.25)return 0;let f=a/o.length;return f<=0?0:Math.round(d/f)}function zk(){let e=0;for(let t of document.querySelectorAll("*"))t.scrollHeight<=t.clientHeight||(e+=F3(t));return e}Yo();dt();function B3(){var t;let e=0;for(let n of document.querySelectorAll("*"))n.tagName.includes("-")&&n.shadowRoot===null&&(U0(n)||n.children.length>0||((t=n.textContent)!=null?t:"").trim().length>0||n.offsetHeight<=0&&n.offsetWidth<=0||(e+=1));return e}function G3(e){let t=e.getAttribute("src");if(t===null||t.length===0)return!1;try{return e.contentDocument===null}catch{return!0}}function V3(e){let t=0;for(let n of e)G3(n)&&(t+=1);return t}function j3(){return V3(Array.from(document.querySelectorAll("iframe")))}function K3(){return US(document).length}var Z3=250;function Dk(e){let t=[{kind:cn.CROSS_ORIGIN_IFRAME,count:j3},{kind:cn.UNINSTRUMENTED_FRAME,count:K3},{kind:cn.CLOSED_SHADOW_ROOT,count:B3},{kind:cn.VIRTUALIZED_UNMOUNTED,count:zk}],n=new Map,r=()=>{for(let s of t){let a=s.count(),l=n.get(s.kind);a!==l&&(n.set(s.kind,a),(a>0||l!==void 0)&&e(w.BLIND_SPOT,{kind:s.kind,count:a}))}};r();let o,i=new MutationObserver(()=>{o===void 0&&(o=ue(()=>{o=void 0,r()},Z3))});return i.observe(document.documentElement,{childList:!0,subtree:!0}),()=>{o!==void 0&&Re(o),i.disconnect()}}M();Wo();M();ur();dt();M();ur();var W3=/^text\/event-stream(?:\s*;|\s*$)/i,FS="data:",Y3="data",X3=/^[{[]/,q3=/^\[[A-Z_]+\]$/;function Qi(e){return e!==null&&W3.test(e)}function Pk(e){return Y3===e||e.startsWith(FS)}function Mk(e){let t=!1;return{body:e.replace(/\r\n?/g,`
1826
1826
  `).split(`
1827
1827
 
1828
1828
  `).map(o=>{let i=o.split(`
1829
- `),s=i.filter(vk).map(u=>u.slice(DS.length).replace(/^ /,"")).join(`
1830
- `);if(!O3.test(s.trimStart())||I3.test(s.trim()))return o;let a;try{let u=Ks(JSON.parse(s));a=JSON.stringify(u.value),u.truncation!==void 0&&(t=!0)}catch{a=we,t=!0}let l=!0;return i.flatMap(u=>vk(u)?l?(l=!1,[`${DS} ${a}`]):[]:[u]).join(`
1829
+ `),s=i.filter(Pk).map(u=>u.slice(FS.length).replace(/^ /,"")).join(`
1830
+ `);if(!X3.test(s.trimStart())||q3.test(s.trim()))return o;let a;try{let u=Zs(JSON.parse(s));a=JSON.stringify(u.value),u.truncation!==void 0&&(t=!0)}catch{a=ve,t=!0}let l=!0;return i.flatMap(u=>Pk(u)?l?(l=!1,[`${FS} ${a}`]):[]:[u]).join(`
1831
1831
  `)}).join(`
1832
1832
 
1833
- `),truncated:t}}var C3=/application\/json|text\/|application\/xml|x-www-form-urlencoded|graphql/i,Ok=/event-stream|x-ndjson|application\/stream/i,L3=/event-stream/i;function Ik(e,t){return e!==null&&L3.test(e)?!1:t===null}var $3=500;async function Ck(e){let t;try{return await Promise.race([e,new Promise(n=>{t=ue(()=>n(void 0),$3)})])}finally{t!==void 0&&Re(t)}}function MS(e){if(e!==null)return Ok.test(e)?sr.STREAMING:sr.NOT_TEXT}function US(e){return e===null||Ok.test(e)?!1:C3.test(e)}var Lk=8192,k3=262144,z3=256,Zc=Lk;function $k(e){Number.isFinite(e)&&(Zc=Math.min(k3,Math.max(z3,Math.floor(e))))}function kk(){return Zc}var D3=Lk*2;function P3(e){let t=Zc*2;return e?Math.min(t,D3):t}var M3=/\b(Bearer|Basic)\s+(?=[A-Za-z0-9._~+/=-]{16,})(?=[A-Za-z0-9._~+/=-]*[\d._~+/=-])[A-Za-z0-9._~+/=-]+/gi;function PS(e){return e.replace(M3,(t,n)=>`${n} ${we}`).replace(/([A-Za-z0-9_.-]+)("?\s*[=:]\s*)("(?:\\.|[^"\\])*"?|[^&\s,;"}]+)/g,(t,n,r,o)=>{if(!bt(n))return t;let i=o.startsWith('"')?`"${we}"`:we;return`${n}${r}${i}`})}var Rk=4096;function HS(e,t){return t&&e>=400}function pm(e,t){let n=fo(e,t);return n.body.length<=Rk?n:{body:n.body.slice(0,Rk),truncated:!0}}function fo(e,t){let n=t!==null&&/json|graphql/i.test(t),r=P3(!n),o=e.length>r,i=o?e.slice(0,r):e,s=!1,a;if(n)try{a=lo(JSON.parse(i))}catch{a=PS(i)}else if(qi(t)){let u=Nk(i);a=PS(u.body),s=u.truncated}else a=PS(i);a=no(a);let l=s||o||a.length>Zc;return{body:a.length>Zc?a.slice(0,Zc):a,truncated:l}}var U3=/text\/|json|csv|xml|ndjson|javascript/i,H3=2e3;function zk(e,t={}){if(typeof URL.createObjectURL!="function")return()=>{};let n=new AbortController,r=URL.createObjectURL.bind(URL),o=new Map,i=$e(URL,"createObjectURL"),s=function(h){let E=r(h);return oe(()=>{if(typeof Blob!="undefined"&&h instanceof Blob){let _=U3.test(h.type)?h.text().catch(()=>{}):Promise.resolve(void 0);o.set(E,{type:h.type,size:h.size,text:_})}}),E};URL.createObjectURL=s;let a=(m,h)=>{let E=o.get(m);E!==void 0&&(o.delete(m),E.text.then(_=>{oe(()=>{l(E,h,_)})}))},l=(m,h,E)=>{let _={mimeType:m.type,bytes:m.size};if(h!==void 0&&h.length>0&&(_.filename=h),E!==void 0&&(_.lines=E.split(`
1834
- `).filter(A=>A.length>0).length,t.capturePreview===!0)){let{body:A,truncated:v}=fo(E.slice(0,H3),m.type);_.preview=A,v&&(_.previewTruncated=!0)}e(w.DOWNLOAD,_)},u=m=>{oe(()=>{var _,A;let h=m.target,E=h instanceof Element?h.closest("a[download]"):null;E!==null&&a((_=E.getAttribute("href"))!=null?_:"",(A=E.getAttribute("download"))!=null?A:void 0)})};document.addEventListener("click",u,{capture:!0,signal:n.signal});let d=$e(HTMLAnchorElement.prototype,"click"),f=function(){let h=Zt(()=>{var E,_;return this.hasAttribute("download")?{href:(E=this.getAttribute("href"))!=null?E:"",name:(_=this.getAttribute("download"))!=null?_:void 0}:void 0});d.call(this),oe(()=>{h!==void 0&&a(h.href,h.name)})};return HTMLAnchorElement.prototype.click=f,()=>{n.abort(),URL.createObjectURL===s&&(URL.createObjectURL=i),HTMLAnchorElement.prototype.click===f&&(HTMLAnchorElement.prototype.click=d),o.clear()}}M();Vo();function Dk(e){let t=$e(window,"open");if(t===void 0)return()=>{};let r=function(o,i,s){let a=t.call(this,o,i,s);return oe(()=>{e(w.CONTEXT_OPENED,{...o===void 0?{}:{href:o}})}),a};return window.open=r,()=>{window.open===r&&(window.open=t)}}M();Vo();M();mt();var F3=1e4,B3=4,G3=2;async function V3(e,t){var f;if(t.aborted||typeof((f=e.body)==null?void 0:f.getReader)!="function")return;let n=e.body.getReader(),r=new TextDecoder,o=kk()*G3,i="",s=!1,a=!1,l=()=>{},u=new Promise(m=>{l=()=>{a=!0,m()}}),d=ue(l,F3);t.addEventListener("abort",l,{once:!0});try{await Promise.race([(async()=>{for(;!a&&!t.aborted;){let m=await n.read();if(a||t.aborted)return;if(m.done){i+=r.decode(),s=!0;return}let h=o-i.length,E=m.value.subarray(0,h*B3),_=r.decode(E,{stream:!0});if(i+=_.slice(0,h),i.length>=o||E.byteLength<m.value.byteLength)return}})(),u])}catch{}finally{Re(d),t.removeEventListener("abort",l),s||n.cancel().catch(()=>{}),n.releaseLock()}return!s&&i.length===0?void 0:{text:i,complete:s}}async function FS(e,t,n,r){let o=n?{responseBodyReason:sr.UNREADABLE}:{};if(qi(t)&&(!n||r.aborted))return o;try{let i=e.clone(),s,a=!1;if(qi(t)){let u=await V3(i,r);s=u==null?void 0:u.text,a=(u==null?void 0:u.complete)===!1}else s=await Ck(i.text());if(s===void 0)return o;let l=n?fo(s,t):pm(s,t);return{responseBody:l.body,...a||l.truncated?{responseBodyTruncated:!0}:{},...n?{}:{responseBodyReason:sr.ERROR_STATUS}}}catch{return o}}M();M();mt();var j3=1e4;function Pk(e,t,n,r,o,i){var l;if(!Ik(o,i)||typeof((l=t.body)==null?void 0:l.getReader)!="function")return;let s;try{s=t.clone()}catch{return}let a=s.body;a!==null&&(e(w.NET_STREAM,{transport:oo.FETCH,direction:io.OPEN,...r,id:n}),(async()=>{let u=a.getReader(),d=!1,f,m=new Promise(h=>{f=ue(()=>h("expired"),j3)});try{for(;;){let h=await Promise.race([u.read(),m]);if(h==="expired"){d=!0,u.cancel().catch(()=>{});break}if(h.done)break}}catch{}finally{f!==void 0&&Re(f)}e(w.NET_STREAM,{transport:oo.FETCH,direction:io.CLOSE,...r,id:n,...d?{gaveUp:!0}:{}})})())}M();function K3(e){if(e instanceof ArrayBuffer)return e.byteLength;if(typeof Blob!="undefined"&&e instanceof Blob)return e.size;if(ArrayBuffer.isView(e))return e.byteLength}function fm(e,t){if(typeof e!="string"){let r=K3(e);return r===void 0?{frameType:typeof e}:{frameType:"binary",frameBytes:r}}let n={frameBytes:e.length};if(t){let{body:r,truncated:o}=fo(e,"application/json");n.frame=r,o&&(n.frameTruncated=!0)}return n}function Mk(e){try{return new URL(e,location.href).pathname===$s}catch{return e.includes($s)}}var Wc={NULL:"0",STRING:"s",NUMBER:"n",BOOLEAN:"b",OTHER:"?"};function gm(e){if(e===null)return Wc.NULL;if(Array.isArray(e))return`[${e.map(gm).join(",")}]`;if(typeof e=="object"){let t=e;return`{${Object.keys(t).sort().map(n=>`${n}:${gm(t[n])}`).join(",")}}`}return typeof e=="string"?Wc.STRING:typeof e=="number"?Wc.NUMBER:typeof e=="boolean"?Wc.BOOLEAN:Wc.OTHER}function VS(e,t){return bc(`${e}#${String(t)}`)}function Z3(e){try{return gm(JSON.parse(e))}catch{return Wc.OTHER}}var W3=1<<20,Y3=9,X3=10,q3=13,J3=32,Q3=127;function e8(e){for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n===Q3||n<J3&&n!==Y3&&n!==X3&&n!==q3)return!0}return!1}function t8(e){if((e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&!(e.byteLength>W3))try{let t=new TextDecoder("utf-8",{fatal:!0}).decode(e);return e8(t)?void 0:t}catch{return}}function n8(e){let t=[],n=0;return e.forEach((r,o)=>{typeof r=="string"&&(n+=r.length),t.push(JSON.stringify([o,typeof r=="string"?0:[r.type,r.size]]))}),t.length===0?void 0:VS(t.sort().join(),n)}function BS(e,t){let n,r="application/json",o=hO,i=t8(e),s=()=>{var d,f;return(f=(d=e.constructor)==null?void 0:d.name)!=null?f:typeof e};if(typeof e=="string"||i!==void 0)n=i!=null?i:e,n.length>0&&(o=VS(Z3(n),n.length));else if(typeof FormData!="undefined"&&e instanceof FormData){let d=n8(e);return{...d===void 0?{}:{[Pu]:d},...t?{requestBodyType:s()}:{}}}else if(typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams){if(n=e.toString(),r="application/x-www-form-urlencoded",n.length>0){let d=Object.fromEntries(new URLSearchParams(n));o=VS(gm(d),n.length)}}else if(e!=null)return t?{requestBodyType:s()}:{};let a={[Pu]:o};if(!t||n===void 0||n.length===0)return a;let{body:l,truncated:u}=fo(n,r);return u?{...a,requestBody:l,requestBodyTruncated:!0}:{...a,requestBody:l}}function Uk(e){return e>=200&&e<400}function Hk(e,t,n){let r={};e!==""&&(r.statusText=e),t!==null&&t!==""&&(r.contentType=t);let o=n!==null?Number.parseInt(n,10):Number.NaN;return Number.isFinite(o)&&(r.responseSize=o),r}function r8(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function o8(e,t){return(t==null?void 0:t.method)!==void 0?t.method.toUpperCase():e instanceof Request?e.method.toUpperCase():"GET"}function i8(e,t){var n,r;if(t!==void 0&&t.headers!==void 0)return(n=Zt(()=>new Headers(t.headers).get(Vb)))!=null?n:void 0;if(e instanceof Request)return(r=Zt(()=>e.headers.get(Vb)))!=null?r:void 0}var s8=/@reticlehq|reticle\.ts|network\.ts|transport\.ts|<anonymous>|new Promise|node:internal/i,a8=/node_modules|\/\.vite\/deps\//i;function c8(e){var r;if(e===void 0)return;let t=e.split(`
1835
- `).slice(1).map(o=>o.trim()).filter(o=>o.length>0&&!s8.test(o)),n=t.find(o=>!a8.test(o));return(r=n!=null?n:t[0])==null?void 0:r.slice(0,300)}function GS(){return c8(new Error().stack)}function l8(e){if(e===void 0)return{};let t={};return e.responseStart>0&&e.requestStart>0&&(t.ttfbMs=Math.round(e.responseStart-e.requestStart)),e.transferSize>0&&(t.transferSize=e.transferSize),t}function Fk(e){try{let t=performance.getEntriesByName(e,"resource");return l8(t[t.length-1])}catch{return{}}}function u8(e){try{return Function.prototype.toString.call(e).includes("native code")}catch{return!1}}var Bk=new WeakSet,hm=Symbol.for("reticle.network"),mm=()=>window;function Gk(e,t={}){var xi,sA,aA;if(mm()[hm]!==void 0)return()=>{};let n={};mm()[hm]=n;let r=t.captureBodies===!0,o=new AbortController,i=t.captureErrorBodies!==!1,s=t.reinterpret,a=$r(window,"fetch"),l=a.bind(window);!u8(a)&&!Bk.has(a)&&e(w.BLIND_SPOT,{kind:cn.WRAPPED_NETWORK,count:1});let u=0,d=()=>`n${++u}`;window.fetch=async(Fe,Te)=>{var cA,lA,uA;let Et=r8(Fe);if(((cA=t.ignore)==null?void 0:cA.call(t,Et))===!0)return l(Fe,Te);let $t=d(),rt=performance.now(),kt=o8(Fe,Te),Kt=i8(Fe,Te),Ai=Kt===void 0?{}:{[Yf]:Kt},ys=(lA=Zt(()=>BS(Te==null?void 0:Te.body,r)))!=null?lA:{},yi=to(Et),ws=yi.url,Xp=Zt(()=>GS()),Gg=Xp===void 0?{}:{initiatorStack:Xp};oe(()=>{e(w.NET_PENDING,{id:$t,method:kt,...yi,initiator:"fetch",...Gg})});try{let zt=await l(Fe,Te),c5=performance.now(),vs=(uA=Zt(()=>zt.headers.get("content-type")))!=null?uA:null;oe(()=>{Pk(e,zt,$t,yi,vs,zt.headers.get("content-length"))}),me.add(Et);let Vg=Ns=>{oe(()=>{var dA;e(w.NET_REQUEST,{id:$t,method:kt,...yi,status:zt.status,ok:Uk(zt.status),durationMs:Math.round(c5-rt),initiator:"fetch",...Gg,...Fk(Et),...Hk(zt.statusText,vs,zt.headers.get("content-length")),...ys,...Ai,...Ns,...(dA=s==null?void 0:s(ws,u5=>zt.headers.get(u5)))!=null?dA:{}})})},l5=HS(zt.status,i);if(r&&qi(vs))Vg({responseBodyReason:sr.UNREADABLE}),FS(zt,vs,!0,o.signal).then(Ns=>{typeof Ns.responseBody=="string"&&oe(()=>e(w.NET_RESPONSE_BODY,{id:$t,method:kt,...yi,...Ns}))}).catch(()=>{});else if((r||l5)&&US(vs))FS(zt,vs,r,o.signal).then(Vg).catch(()=>{});else{let Ns=r?MS(vs):void 0;Vg(Ns===void 0?{}:{responseBodyReason:Ns})}return zt}catch(zt){throw oe(()=>{e(w.NET_REQUEST,{id:$t,method:kt,url:ws,status:0,ok:!1,error:zt instanceof Error?zt.message:String(zt),durationMs:Math.round(performance.now()-rt),initiator:"fetch",...Gg,...Ai})}),zt}};let f=$r(window,"fetch");Bk.add(f);let m=new WeakMap,h=XMLHttpRequest.prototype,E=$e(h,"open"),_=$e(h,"send"),A=E;h.open=function(Fe,Te,...Et){oe(()=>{m.set(this,{id:d(),method:Fe.toUpperCase(),url:ar(String(Te)),rawUrl:String(Te),start:0})}),A.call(this,Fe,Te,...Et)};let v=$e(h,"open"),N=new WeakSet;h.send=function(Fe){oe(()=>{var Et;let Te=m.get(this);if(Te!==void 0){Te.start=performance.now(),Te.reqFields=(Et=Zt(()=>BS(Fe!=null?Fe:null,r)))!=null?Et:{},Te.initiatorStack=GS();let $t=Te.initiatorStack===void 0?{}:{initiatorStack:Te.initiatorStack};e(w.NET_PENDING,{id:Te.id,method:Te.method,...to(Te.rawUrl),initiator:"xhr",...$t}),N.has(this)||(N.add(this),this.addEventListener("loadend",()=>{oe(()=>{let rt=m.get(this);if(rt===void 0)return;me.add(rt.rawUrl);let kt=this.getResponseHeader("content-type"),Kt={},Ai=this.responseType===""||this.responseType==="text",ys=HS(this.status,i),yi=US(kt)||r&&qi(kt);if(r){let ws=yi?sr.UNREADABLE:MS(kt);ws!==void 0&&(Kt={responseBodyReason:ws})}if((r||ys)&&Ai&&yi)try{let{body:ws,truncated:Xp}=r?fo(this.responseText,kt):pm(this.responseText,kt);Kt={responseBody:ws,...Xp?{responseBodyTruncated:!0}:{},...r?{}:{responseBodyReason:sr.ERROR_STATUS}}}catch{}e(w.NET_REQUEST,{id:rt.id,method:rt.method,...to(rt.rawUrl),status:this.status,ok:Uk(this.status),durationMs:Math.round(performance.now()-rt.start),initiator:"xhr",...rt.initiatorStack===void 0?{}:{initiatorStack:rt.initiatorStack},...Fk(rt.rawUrl),...Hk(this.statusText,kt,this.getResponseHeader("content-length")),...rt.reqFields,...Kt})})}))}}),_.call(this,Fe!=null?Fe:null)};let O=$e(h,"send"),k=window.EventSource,j=window.WebSocket,Y,X;r&&typeof k=="function"&&(window.EventSource=class extends k{constructor(Fe,Te){super(Fe,Te),oe(()=>{let Et=to(String(Fe));e(w.NET_STREAM,{transport:oo.SSE,direction:io.OPEN,...Et}),this.addEventListener("message",$t=>{oe(()=>{e(w.NET_STREAM,{transport:oo.SSE,direction:io.IN,...Et,...fm($t.data,r)})})})})}},Y=window.EventSource),r&&typeof j=="function"&&(window.WebSocket=(sA=class extends j{constructor(Te,Et){super(Te,Et);x(this,xi);g(this,xi,Mk(String(Te))),!c(this,xi)&&oe(()=>{let $t=to(String(Te));e(w.NET_STREAM,{transport:oo.WS,direction:io.OPEN,...$t}),this.addEventListener("message",rt=>{oe(()=>{e(w.NET_STREAM,{transport:oo.WS,direction:io.IN,...$t,...fm(rt.data,r)})})})})}send(Te){if(c(this,xi)){super.send(Te);return}super.send(Te),oe(()=>{e(w.NET_STREAM,{transport:oo.WS,direction:io.OUT,...to(this.url),...fm(Te,r)})})}},xi=new WeakMap,sA),X=window.WebSocket);let G=typeof navigator!="undefined"?Object.getPrototypeOf(navigator):null,ee=G===null||(aA=Object.getOwnPropertyDescriptor(G,"sendBeacon"))==null?void 0:aA.value,ye;G!==null&&ee!==void 0&&(ye=function(Fe,Te){let Et=d(),$t=Zt(()=>to(String(Fe))),rt=Zt(()=>GS()),kt=ee.call(this,Fe,Te);return oe(()=>{e(w.NET_REQUEST,{id:Et,method:"POST",...$t,status:0,ok:kt,queued:kt,durationMs:0,initiator:"beacon",...rt===void 0?{}:{initiatorStack:rt},...BS(Te,!1)})}),kt},G.sendBeacon=ye);let me=new Set,nt=0,Yp=200,Za;if(typeof PerformanceObserver!="undefined")try{let Fe=new PerformanceObserver(Te=>{var Et,$t,rt;for(let kt of Te.getEntries()){let Kt=kt;if(nt>=Yp)return;let Ai=Kt.initiatorType||"other";if(Ai==="fetch"||Ai==="xmlhttprequest")continue;let ys=Kt.name;me.has(ys)||(me.add(ys),nt+=1,e(w.NET_REQUEST,{id:d(),method:"GET",...to(ys),durationMs:Math.round(Kt.duration),initiator:Ai,...Kt.transferSize>0?{transferSize:Kt.transferSize}:{},...((Et=Kt.responseStatus)!=null?Et:0)>0?{status:Kt.responseStatus,ok:(($t=Kt.responseStatus)!=null?$t:0)>=200&&((rt=Kt.responseStatus)!=null?rt:0)<400}:{}}))}});Za=Fe,Fe.observe({type:"resource",buffered:!0})}catch{}return()=>{mm()[hm]===n&&delete mm()[hm],o.abort(),Za==null||Za.disconnect(),window.fetch===f&&(window.fetch=a),$e(h,"open")===v&&(h.open=E),$e(h,"send")===O&&(h.send=_),Y!==void 0&&window.EventSource===Y&&(window.EventSource=k),X!==void 0&&window.WebSocket===X&&(window.WebSocket=j),G!==null&&ee!==void 0&&G.sendBeacon===ye&&(G.sendBeacon=ee)}}M();var d8="Tauri-Response",p8="error",Vk={OK:"Ok",ERROR:"Err"},jk=/^(?:ipc:\/\/[^/]*|https?:\/\/ipc\.localhost(?::\d+)?)\/(.+)$/;function Kk(e,t){let n=jk.exec(e),r=n==null?void 0:n[1];if(r===void 0)return;let o=t(d8)!==p8;return{url:`${Gb}${r}`,initiator:xn.IPC,method:xn.IPC,ok:o,status:o?Du.OK:Du.ERROR,statusText:o?Vk.OK:Vk.ERROR}}function Zk(e){var t;return((t=jk.exec(e))==null?void 0:t[1])===ch}function f8(){return navigator.userAgent.includes("Electron")}function Wk(e,t={}){let n=window[Bo];if(typeof(n==null?void 0:n.subscribe)!="function")return f8()&&e(w.BLIND_SPOT,{kind:cn.UNOBSERVED_IPC,count:1}),()=>{};let r=n.subscribe(o=>{oe(()=>{var l;let i=`${Gb}${o.channel}`;if(o.phase==="start"){e(w.NET_PENDING,{id:o.id,method:xn.IPC,url:i,initiator:xn.IPC});return}let s=o.oneWay===!0&&o.ok===void 0;s&&e(w.BLIND_SPOT,{kind:cn.VERDICTLESS_SEND,count:1});let a=o.ok===!0;e(w.NET_REQUEST,{id:o.id,method:xn.IPC,url:i,...s?{}:{ok:a,status:a?Du.OK:Du.ERROR},...o.oneWay===!0?{oneWay:!0}:{},durationMs:(l=o.durationMs)!=null?l:0,initiator:xn.IPC,...o.error===void 0?{}:{error:o.error},...o.responseSize===void 0?{}:{responseSize:o.responseSize},...t.captureBodies===!0?{...o.requestBody===void 0?{}:{requestBody:o.requestBody},...o.responseBody===void 0?{}:{responseBody:o.responseBody},...o.responseBodyTruncated===!0?{responseBodyTruncated:!0}:{}}:{}})})});return()=>{var o;(o=n.unsubscribe)==null||o.call(n,r)}}M();xt();Ot();lt();dn();var Yk=e=>e===void 0?0:Math.max(0,e.width)*Math.max(0,e.height);function Xk(e){let t=globalThis.CSS;if(typeof(t==null?void 0:t.escape)=="function")return t.escape(e);let n="";for(let[r,o]of[...e].entries())/\d/.test(o)&&(r===0||r===1&&e.startsWith("-"))?n+=`\\${o.charCodeAt(0).toString(16)} `:/[\w-]/.test(o)?n+=o:n+=`\\${o}`;return n}function h8(e){let t=ve(e);if(t!==null)return`[${Mi()}="${t.replace(/["\\]/g,"\\$&")}"]`;let n=e.tagName.toLowerCase();if(0<e.id.length)return`${n}#${Xk(e.id)}`;let r=e.classList.item(0);return r===null?n:`${n}.${Xk(r)}`}function m8(e){var n;let t;for(let r of e!=null?e:[]){let o=(n=r.node)!=null?n:null,i=o===null?null:wn(o)?o:o.parentElement;if(i===null||Rt(i))continue;let s=Math.max(Yk(r.previousRect),Yk(r.currentRect));(t===void 0||s>t.area)&&(t={el:i,area:s})}return t===void 0?void 0:{ref:re.refFor(t.el),selector:h8(t.el)}}function qk(e){if(typeof PerformanceObserver!="function")return()=>{};let t=[],n=(i,s)=>{try{let a=new PerformanceObserver(l=>{for(let u of l.getEntries())s(u)});a.observe({type:i,buffered:!0}),t.push(a)}catch{}},r=0,o=0;return n("largest-contentful-paint",i=>{let s=Math.round(i.startTime);s<=o||(o=s,e(w.PERF,{metric:ac.LCP,value:s,at:s}))}),n("layout-shift",i=>{var l;let s=i;if(s.hadRecentInput===!0)return;r+=(l=s.value)!=null?l:0;let a=m8(s.sources);e(w.PERF,{metric:ac.CLS,value:r,at:Math.round(i.startTime),...a===void 0?{}:{shifted:a}})}),n("longtask",i=>{e(w.PERF,{metric:ac.LONGTASK,value:Math.round(i.duration),at:Math.round(i.startTime)})}),()=>{for(let i of t)i.disconnect()}}M();var g8=new Set(["navigate","reload","back_forward"]);function E8(){try{let[e]=performance.getEntriesByType("navigation");return e}catch{return}}function Jk(e){var s,a;let t=E8(),n=t==null?void 0:t.type,r=t==null?void 0:t.name;if(t===void 0||typeof r!="string"||r.length===0)return()=>{};if(typeof n!="string"||!g8.has(n))return()=>{};let o=t.responseStatus,i=typeof o=="number"&&o>0;return e(w.NET_REQUEST,{id:`doc-${String(Math.round((s=t.duration)!=null?s:0))}`,method:"GET",url:r,initiator:xn.DOCUMENT,durationMs:Math.round((a=t.duration)!=null?a:0),...i?{status:o,ok:o<400}:{},navigationType:n,...typeof t.transferSize=="number"?{transferSize:t.transferSize}:{}}),()=>{}}M();var b8=/^(javascript|mailto|tel|sms|blob|data):/i;function _8(){if(typeof window=="undefined")return;let e=window.navigation;return e instanceof EventTarget?e:void 0}function S8(e){if(!(e instanceof Element))return;let t=e.closest("a");return t instanceof HTMLAnchorElement?t:void 0}var T8=1e3;function Qk(e,t,n){if(e.length===0||b8.test(e))return!1;if(t)return!0;try{let r=new URL(e,n),o=new URL(n);return r.origin===o.origin?r.pathname!==o.pathname||r.search!==o.search:!0}catch{return!1}}function ez(e){if(typeof document=="undefined")return()=>{};let t=0,n,r=(a,l)=>{let u=Date.now();n!==void 0&&n.url===a&&u-n.at<T8||(n={url:a,at:u},t+=1,e(w.NET_PENDING,{id:`nav-${String(t)}`,method:"GET",url:a,initiator:xn.NAVIGATION,...l?{download:!0}:{}}))},o=a=>{oe(()=>{var h;let l=S8(a.target);if(l===void 0)return;let u=(h=l.getAttribute("href"))!=null?h:"",d=document.location.href,f=l.hasAttribute("download");if(!Qk(u,f,d))return;let m=new URL(u,d).toString();queueMicrotask(()=>{oe(()=>{a.defaultPrevented||r(m,f)})})})},i=a=>{oe(()=>{let l=a.destination;if(l===void 0||l.sameDocument)return;let u=l.url;Qk(u,!1,document.location.href)&&queueMicrotask(()=>{oe(()=>{a.defaultPrevented||r(u,!1)})})})},s=_8();return s!==void 0&&s.addEventListener("navigate",i),document.addEventListener("click",o,!0),()=>{document.removeEventListener("click",o,!0),s!==void 0&&s.removeEventListener("navigate",i)}}M();cr();M();var x8=3,A8=256,y8={emit:!0},w8={emit:!1};function v8(e){if(e<10)return!1;let t=e;for(;t%10===0;)t/=10;return t===1}function N8(e){var t,n,r;return bc([e.message,(t=e.source)!=null?t:"",e.line===void 0?"":String(e.line),(n=e.kind)!=null?n:"",(r=e.stack)!=null?r:""].join("\0"))}function tz(e=x8,t=A8){let n=new Map;return{admit(r){var s,a;let o=N8(r),i=((s=n.get(o))!=null?s:0)+1;if(n.delete(o),n.size>=t){let l=n.keys().next();(a=l.done)!=null&&a||n.delete(l.value)}return n.set(o,i),i<=e?y8:v8(i)?{emit:!0,repeats:i}:w8}}}var nz="securitypolicyviolation",R8="report",O8={log:w.CONSOLE_LOG,warn:w.CONSOLE_WARN,error:w.CONSOLE_ERROR,info:w.CONSOLE_INFO,debug:w.CONSOLE_DEBUG};function I8(e){return e.map(t=>typeof t=="string"?t:t instanceof Error?t.message:lo(t)).join(" ")}var rz=Z.MAX_STACK_LENGTH;function jS(e){if(!(e===void 0||e.length===0))return e.length>rz?e.slice(0,rz):e}function C8(e){for(let t of e)if(t instanceof Error)return jS(t.stack)}function oz(e){let t=["log","warn","error","info","debug"],n=new Map,r=new Map;for(let f of t){let m=$r(console,f);n.set(f,m);let h=m.bind(console),E=(..._)=>{h(..._),oe(()=>{let A=f==="error"?C8(_):void 0;e(O8[f],{message:I8(_),...A===void 0?{}:{stack:A}})})};r.set(f,E),console[f]=E}let o=tz(),i=f=>{let m=o.admit(f);m.emit&&e(w.ERROR_UNCAUGHT,{...f,...m.repeats===void 0?{}:{repeats:m.repeats}})},s=f=>{var m,h;if(!(f instanceof ErrorEvent)){let E=f.target;if(!(E instanceof Element)||E===document)return;let _=E.tagName.toLowerCase(),A=(h=(m=E.getAttribute("src"))!=null?m:E.getAttribute("href"))!=null?h:"";oe(()=>{let v=`<${_}> failed to load${A.length===0?"":`: ${A}`}`;i({message:v,kind:"resource",...A.length===0?{}:{source:A}})});return}oe(()=>{let E=jS(f.error instanceof Error?f.error.stack:void 0),_={message:f.message,source:f.filename,line:f.lineno,...E===void 0?{}:{stack:E}};i(_)})},a=f=>{oe(()=>{let m=f.reason,h=jS(m instanceof Error?m.stack:void 0),E={message:m instanceof Error?m.message:String(m),kind:"unhandledrejection",...h===void 0?{}:{stack:h}};i(E)})},l=f=>{let m=f.blockedURI.length===0?"inline content":f.blockedURI,h=R8===f.disposition;e(h?w.CONSOLE_WARN:w.CONSOLE_ERROR,{message:h?`[Report Only] Content Security Policy directive: ${f.violatedDirective} would block ${m}`:`Content Security Policy directive: ${f.violatedDirective} blocked ${m}`,kind:nz,...f.blockedURI.length===0?{}:{source:f.blockedURI}})},u=new AbortController,{signal:d}=u;return window.addEventListener("error",s,{capture:!0,signal:d}),window.addEventListener("unhandledrejection",a,{signal:d}),window.addEventListener(nz,l,{capture:!0,signal:d}),()=>{for(let[f,m]of n)console[f]===r.get(f)&&(console[f]=m);u.abort()}}M();Cc();var L8={alert:void 0,confirm:!1,prompt:null},$8=["alert","confirm","prompt"];function iz(e){let t=window,n=new Map,r=new Map;for(let o of $8){let i=t[o];if(typeof i!="function")continue;n.set(o,i);let s=i.bind(window),a=(...l)=>{if(!Vh())return s(...l);let u=L8[o],d=l[0];return oe(()=>{e(w.DIALOG_OPENED,{kind:o,...typeof d=="string"?{message:d}:{},...u===void 0?{}:{answered:u}})}),u};r.set(o,a),t[o]=a}return()=>{for(let[o,i]of n)t[o]===r.get(o)&&(t[o]=i)}}M();xt();lt();function sz(e){let t=new AbortController,{signal:n}=t,r=s=>{let a=s.target;a instanceof Element&&!Rt(a)&&e(w.ANIM_START,{name:s.animationName},re.refFor(a))},o=s=>{let a=s.target;a instanceof Element&&!Rt(a)&&e(w.ANIM_END,{name:s.animationName},re.refFor(a))},i=s=>{let a=s.target;a instanceof Element&&!Rt(a)&&e(w.ANIM_END,{name:s.propertyName,kind:"transition"},re.refFor(a))};return document.addEventListener("animationstart",r,{capture:!0,signal:n}),document.addEventListener("animationend",o,{capture:!0,signal:n}),document.addEventListener("transitionend",i,{capture:!0,signal:n}),()=>t.abort()}M();xt();mt();var az=100,k8="[data-reticle-reveal], [data-reveal], section";function cz(e){let t=new AbortController,{signal:n}=t,r=0,o=0,i,s=()=>{r=performance.now();let u=window.scrollY,d=Math.max(1,document.documentElement.scrollHeight-window.innerHeight);e(w.SCROLL_POSITION,{x:window.scrollX,y:u,percent:Math.round(u/d*100),direction:u>=o?ah.DOWN:ah.UP}),o=u},a=()=>{let u=performance.now()-r;if(u>=az){i!==void 0&&(Re(i),i=void 0),s();return}i===void 0&&(i=ue(()=>{i=void 0,s()},az-u))};window.addEventListener("scroll",a,{passive:!0,signal:n});let l;if(typeof IntersectionObserver=="function"){l=new IntersectionObserver(d=>{for(let f of d)f.isIntersecting&&e(w.REVEAL_SHOWN,{ratio:f.intersectionRatio},re.refFor(f.target))},{threshold:.25});let u=l;for(let d of document.querySelectorAll(k8))u.observe(d)}return()=>{t.abort(),i!==void 0&&Re(i),l==null||l.disconnect()}}M();mt();function uz(){let e=window;return e.__TAURI_INTERNALS__!==void 0||e.__TAURI__!==void 0?"tauri":navigator.userAgent.includes("Electron")||e[Bo]!==void 0?"electron":"web"}function z8(){let e=navigator.userAgent;return/Chrome|Chromium|Edg\//.test(e)?"blink":/Gecko\/|Firefox/.test(e)?"gecko":"webkit"}var D8={"google chrome":Xe.CHROME,chrome:Xe.CHROME,"microsoft edge":Xe.EDGE,edge:Xe.EDGE,brave:Xe.BRAVE,opera:Xe.OPERA,arc:Xe.ARC,dia:Xe.DIA,firefox:Xe.FIREFOX,safari:Xe.SAFARI};function P8(e){return e==="chromium"||e.includes("not")&&e.includes("brand")}function M8(){var t;try{let r=(t=navigator.userAgentData)==null?void 0:t.brands;if(Array.isArray(r)){let o;for(let i of r){let s=typeof(i==null?void 0:i.brand)=="string"?i.brand.toLowerCase():"";if(s===""||P8(s))continue;let a=D8[s];if(a!==void 0)if(Xe.CHROME===a)o=a;else return a}return o!=null?o:Xe.OTHER}}catch{}let e=navigator.userAgent;return/Edg\//.test(e)?Xe.EDGE:/OPR\/|Opera/.test(e)?Xe.OPERA:/Firefox/.test(e)?Xe.FIREFOX:/Chrome|Chromium/.test(e)?Xe.CHROME:/Safari/.test(e)?Xe.SAFARI:Xe.OTHER}var lz=typeof window!="undefined"&&typeof window.fetch=="function"?window.fetch.bind(window):void 0;function U8(){var n,r;let e=window.__TAURI_INTERNALS__,t=(r=(n=e==null?void 0:e.metadata)==null?void 0:n.currentWindow)==null?void 0:r.label;return typeof t=="string"&&t.length>0?t:void 0}function H8(){try{let[e]=performance.getEntriesByType("navigation"),t=e==null?void 0:e.responseStatus;return typeof t=="number"&&t>0?t:void 0}catch{return}}async function F8(e){let t=H8();if(t!==void 0)return t;try{return e==="web"||lz===void 0||!/^https?:$/.test(location.protocol)?void 0:(await lz(location.href,{method:"HEAD",cache:"no-store"})).status}catch{return}}async function B8(){let e=window[Bo];if(typeof(e==null?void 0:e.windowLabel)=="function")try{let t=await e.windowLabel();return typeof t=="string"&&t.length>0?t:void 0}catch{return}}function G8(e){return{hidden:document.visibilityState==="hidden",focused:document.hasFocus(),runtime:uz(),engine:z8(),brand:M8(),...e===void 0?{}:{windowLabel:e}}}function dz(e){let t=new AbortController,{signal:n}=t,r,o=U8(),i=a=>{e(w.PAGE_HEALTH,{...G8(o),...r===void 0?{}:{documentStatus:r},reason:a})};document.addEventListener("visibilitychange",()=>i(Hs.VISIBILITY),{signal:n}),window.addEventListener("focus",()=>i(Hs.FOCUS),{signal:n}),window.addEventListener("blur",()=>i(Hs.BLUR),{signal:n}),i(Hs.INITIAL),Promise.all([F8(uz()),o===void 0?B8():Promise.resolve(o)]).then(([a,l])=>{n.aborted||a===void 0&&l===o||(r=a,o=l,i(Hs.HEARTBEAT))});let s=Zh(()=>i(Hs.HEARTBEAT),CO.HEARTBEAT_MS);return()=>{s(),t.abort()}}M();xt();var V8={VIDEO:"video",AUDIO:"audio"};function pz(e){let t=new AbortController,n=r=>{oe(()=>{let o=r.target;if(!(o instanceof HTMLMediaElement))return;let i=V8[o.tagName];if(i===void 0)return;let s=Number.isFinite(o.duration)?o.duration:void 0;e(w.MEDIA_STATE,{event:r.type,tag:i,currentTime:o.currentTime,...s===void 0?{}:{duration:s},readyState:o.readyState,paused:o.paused},re.refFor(o))})};for(let r of Object.values(Ou))document.addEventListener(r,n,{capture:!0,signal:t.signal});return()=>t.abort()}M();var Qe={CONNECT:"connect",DOM_OBSERVER:"dom_observer",NETWORK_OBSERVER:"network_observer",CONSOLE_OBSERVER:"console_observer",IPC_OBSERVER:"ipc_observer",HEALTH_OBSERVER:"health_observer",ROUTER_OBSERVER:"router_observer",ANIMATION_OBSERVER:"animation_observer",STORE_ADAPTER:"store_adapter",SNAPSHOT:"snapshot",ACTION:"action",COMMAND:"command",RECORDER:"recorder",TRANSPORT:"transport",TEARDOWN:"teardown"},j8=500;function KS(e,t,n){try{let r=n instanceof Error?n.message:String(n);e(w.SDK_FAILED,{site:t,message:r.slice(0,j8),...n instanceof Error?{errorType:n.constructor.name.slice(0,64)}:{}})}catch{}}function dt(e,t,n){try{return n()}catch(r){return KS(e,t,r),()=>{}}}function fz(e,t){for(let n of t)try{n()}catch(r){KS(e,Qe.TEARDOWN,r)}}function hz(e,t){return[dt(e,Qe.NETWORK_OBSERVER,()=>Gk(e,{captureBodies:t.captureBodies,...t.captureErrorBodies===void 0?{}:{captureErrorBodies:t.captureErrorBodies},reinterpret:Kk,ignore:Zk})),dt(e,Qe.IPC_OBSERVER,()=>Wk(e,{captureBodies:t.captureBodies})),dt(e,Qe.ANIMATION_OBSERVER,()=>qk(e)),dt(e,Qe.ROUTER_OBSERVER,()=>uC(e)),dt(e,Qe.NETWORK_OBSERVER,()=>Jk(e)),dt(e,Qe.NETWORK_OBSERVER,()=>ez(e)),dt(e,Qe.CONSOLE_OBSERVER,()=>oz(e)),dt(e,Qe.CONSOLE_OBSERVER,()=>iz(e)),dt(e,Qe.ANIMATION_OBSERVER,()=>sz(e)),dt(e,Qe.DOM_OBSERVER,()=>cz(e)),dt(e,Qe.DOM_OBSERVER,()=>Ek(e)),dt(e,Qe.STORE_ADAPTER,()=>U$(e)),dt(e,Qe.STORE_ADAPTER,()=>xk(e)),dt(e,Qe.DOM_OBSERVER,()=>Ak(e)),dt(e,Qe.DOM_OBSERVER,()=>QL(e)),dt(e,Qe.NETWORK_OBSERVER,()=>zk(e,{capturePreview:t.captureBodies})),dt(e,Qe.DOM_OBSERVER,()=>wk(e)),dt(e,Qe.HEALTH_OBSERVER,()=>dz(e)),dt(e,Qe.DOM_OBSERVER,()=>Dk(e)),dt(e,Qe.DOM_OBSERVER,()=>pz(e)),dt(e,Qe.DOM_OBSERVER,()=>H$(e))]}Ot();fd();cr();var K8=["position:fixed","bottom:8px","right:8px","z-index:2147483647","font:11px ui-monospace,SFMono-Regular,Menlo,monospace","background:#151823","color:#e6e9f0","border:1px solid #2a2f3d","border-radius:8px","padding:6px 10px","pointer-events:none","opacity:0.85"].join(";");function mz(){let e=document.createElement("div");return e.setAttribute("data-reticle-overlay",""),e.style.cssText=K8,e.textContent="Reticle: connecting\u2026",document.body.appendChild(e),{update:t=>{e.textContent=`Reticle ${t.connected?"\u25CF":"\u25CB"} ${String(t.events)} events`},destroy:()=>{e.remove()}}}ZS();WS();M();xt();At();function Zn(e,t=""){return typeof e=="string"?e:t}function ti(e){let t=Zn(e);return t===""?void 0:t}function Em(e){let t=re.resolve(e);if(!(t instanceof Element))return e;let n=uo(t);return n.name.length>0?`${n.role} "${n.name}"`:`${n.role} (${e})`}function gz(e){switch(e){case H.ACT:case H.ACT_SEQUENCE:return it.ACTING;case H.SNAPSHOT:case H.QUERY:case H.MATCH:case H.INSPECT:case H.ANIMATIONS:case H.STATE_READ:case H.CAPABILITIES:return it.READING;default:return it.IDLE}}function Ez(e,t={}){var n;switch(e){case H.SNAPSHOT:return"Looking at the page";case H.QUERY:case H.MATCH:{let r=e===H.MATCH?(n=t.query)!=null?n:{}:t,o=Z8(r);return o!==void 0?`Finding ${o}`:"Finding an element"}case H.INSPECT:{let r=ti(t.ref);return r!==void 0?`Inspecting ${Em(r)}`:"Inspecting an element"}case H.ANIMATIONS:return"Reading animations";case H.STATE_READ:{let r=ti(t.store);return r!==void 0?`Reading state: ${r}`:"Reading state"}case H.CAPABILITIES:return"Reading capabilities";default:return e}}function Z8(e){var o,i,s,a;let t=(o=ti(e.testid))!=null?o:ot.TESTID===Zn(e.by)?ti(e.value):void 0;if(t!==void 0)return`[testid=${t}]`;let n=ti(e.name),r=(a=(s=(i=ti(e.value))!=null?i:ti(e.text))!=null?s:ti(e.label))!=null?a:ti(e.role);return r!==void 0?n!==void 0?`"${r}" (${n})`:`"${r}"`:n!==void 0?`"${n}"`:void 0}hd();Ot();M();M();cd();At();lt();Gi();var bz=["position:fixed","top:8px","left:50%","transform:translateX(-50%)","z-index:2147483647","display:flex","gap:6px","align-items:center","flex-wrap:wrap","max-width:90vw","font:12px ui-sans-serif,system-ui,sans-serif","background:#151823","color:#e6e9f0","border:1px solid #2a2f3d","border-radius:10px","padding:6px 10px","box-shadow:0 8px 30px rgba(0,0,0,.5)"].join(";"),bm=["font:inherit","cursor:pointer","background:#262b3a","color:#e6e9f0","border:1px solid #3a4151","border-radius:7px","padding:3px 9px"].join(";"),YS=["font:inherit","background:#0e1018","color:#e6e9f0","border:1px solid #3a4151","border-radius:7px","padding:3px 8px"].join(";"),_z=["opacity:.75","margin-left:4px"].join(";"),Sz=["display:flex","gap:6px","align-items:center","flex-wrap:wrap"].join(";");var W8="recorded 0 steps",Y8="recording\u2026",Tz="ready",X8="pick an annotation",q8=ic.ACT,XS={record:"Record",stop:"Stop",annotate:"Annotate"},J8={[je.ASSERT_SIGNAL]:"assert signal",[je.ASSERT_VISIBLE]:"assert visible",[je.ASSERT_STATE]:"assert state",[je.ASSERT_NET]:"assert request",[je.MARK_DYNAMIC]:"mark dynamic",[je.SUCCESS_STATE]:"success state",[je.INTENT]:"intent"},Q8=new Set([je.ASSERT_SIGNAL,je.SUCCESS_STATE]),eZ="recorded-flow";function yz(e){let t=ve(e);if(t!==null&&t.length>0)return{anchor:{kind:nr.TESTID,value:t},degraded:!1};let n=ke(e),r=Ne(e);return n!=="generic"&&(n.length>0||r.length>0)?{anchor:r.length>0?{kind:nr.ROLE,role:n,name:r}:{kind:nr.ROLE,role:n},degraded:!1}:{anchor:{kind:nr.ROLE,role:dR},degraded:!0}}function xz(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement&&kd(e)==="textbox"}function kd(e){let t=e.type.toLowerCase();return t==="checkbox"?"checkbox":t==="radio"?"radio":["text","email","tel","url","search","password",""].includes(t)?"textbox":"other"}function Yc(e,t,n){let{anchor:r,degraded:o}=yz(e),i={tool:q8,anchor:r,action:t};n!==void 0&&(i.args=n),o&&(i.degraded=!0);let s=ad(e);return s!==void 0&&(i.source=s.line===void 0?{file:s.file}:{file:s.file,line:s.line}),i}function tZ(e,t,n,r,o){let i=t.map(u=>({...u})),s=[],a;for(let u of n){if(u.kind===je.MARK_DYNAMIC){s.push(u.anchor);continue}if(u.kind===je.SUCCESS_STATE){u.signal!==void 0&&(a={kind:z.SIGNAL,name:u.signal});continue}let d=i.at(-1);d!==void 0&&(u.kind===je.ASSERT_SIGNAL&&u.signal!==void 0?d.expect=Az(d.expect,{kind:z.SIGNAL,name:u.signal}):u.kind===je.ASSERT_VISIBLE&&(d.expect=Az(d.expect,{kind:z.ELEMENT,query:nZ(u.anchor)})))}let l={version:lb,name:e,createdAt:r,steps:i};return o!==void 0&&o.length>0&&(l.startPath=o),s.length>0&&(l.dynamic=s),a!==void 0&&(l.success=a),l}function Az(e,t){return e===void 0?t:e.kind===z.ALL_OF?{kind:z.ALL_OF,predicates:[...e.predicates,t]}:{kind:z.ALL_OF,predicates:[e,t]}}function nZ(e){return e.kind===nr.TESTID?{testid:e.value}:e.kind===nr.ROLE?e.name!==void 0?{role:e.role,name:e.name}:{role:e.role}:{}}var Qs,pr,mn,Pd,Qi,ni,Xc,es,ea,ho,kr,W,wz,zd,vz,Nz,Rz,Oz,Ji,Iz,Cz,JS,Lz,$z,kz,Js,zz,_m,Dz,Pz,Dd,Sm,Mz,qS=class{constructor(t){x(this,W);x(this,Qs);x(this,pr,rn.IDLE);x(this,mn,[]);x(this,Pd);x(this,Qi,[]);x(this,ni);x(this,Xc);x(this,es);x(this,ea);x(this,ho);x(this,kr);g(this,Qs,t)}phase(){return c(this,pr)}steps(){return c(this,mn).map(t=>({...t}))}mount(){c(this,es)===void 0&&typeof document!="undefined"&&(T(this,W,zz).call(this),T(this,W,wz).call(this))}destroy(){var t,n;(t=c(this,Xc))==null||t.abort(),g(this,Xc,void 0),(n=c(this,es))==null||n.remove(),g(this,es,void 0),g(this,ea,void 0),g(this,ho,void 0),g(this,pr,rn.IDLE),g(this,mn,[]),g(this,Qi,[]),g(this,kr,void 0),g(this,ni,void 0)}};Qs=new WeakMap,pr=new WeakMap,mn=new WeakMap,Pd=new WeakMap,Qi=new WeakMap,ni=new WeakMap,Xc=new WeakMap,es=new WeakMap,ea=new WeakMap,ho=new WeakMap,kr=new WeakMap,W=new WeakSet,wz=function(){let t=new AbortController;g(this,Xc,t);let n={capture:!0,signal:t.signal};document.addEventListener("click",r=>T(this,W,vz).call(this,r),n),document.addEventListener("input",r=>T(this,W,Nz).call(this,r),n),document.addEventListener("change",r=>T(this,W,Rz).call(this,r),n),document.addEventListener("submit",r=>T(this,W,Oz).call(this,r),n)},zd=function(t){let n=t.target;if(n instanceof Element&&!Rt(n))return n},vz=function(t){let n=T(this,W,zd).call(this,t);if(n!==void 0){if(c(this,pr)===rn.ANNOTATING){T(this,W,Iz).call(this,n);return}c(this,pr)===rn.RECORDING&&(n instanceof HTMLInputElement&&(kd(n)==="checkbox"||kd(n)==="radio")||n instanceof HTMLSelectElement||(T(this,W,Ji).call(this),c(this,mn).push(Yc(n,P.CLICK))))}},Nz=function(t){if(c(this,pr)!==rn.RECORDING)return;let n=T(this,W,zd).call(this,t);n===void 0||!xz(n)||g(this,ni,{el:n,value:n.value})},Rz=function(t){if(c(this,pr)!==rn.RECORDING)return;let n=T(this,W,zd).call(this,t);if(n!==void 0){if(n instanceof HTMLInputElement&&kd(n)==="checkbox"){T(this,W,Ji).call(this),c(this,mn).push(Yc(n,n.checked?P.CHECK:P.UNCHECK));return}if(n instanceof HTMLInputElement&&kd(n)==="radio"){T(this,W,Ji).call(this),c(this,mn).push(Yc(n,P.CHECK));return}if(n instanceof HTMLSelectElement){T(this,W,Ji).call(this),c(this,mn).push(Yc(n,P.SELECT,{value:n.value}));return}xz(n)&&(g(this,ni,{el:n,value:n.value}),T(this,W,Ji).call(this))}},Oz=function(t){if(c(this,pr)!==rn.RECORDING)return;let n=T(this,W,zd).call(this,t);n!==void 0&&(T(this,W,Ji).call(this),c(this,mn).push(Yc(n,P.SUBMIT)))},Ji=function(){let t=c(this,ni);if(t===void 0)return;g(this,ni,void 0);let n=pn(t.el)?we:t.value;c(this,mn).push(Yc(t.el,P.FILL,{value:n}))},Iz=function(t){let n=c(this,kr);if(n===void 0)return;let{anchor:r}=yz(t),o={kind:n.kind,anchor:r},i=T(this,W,JS).call(this);i!==void 0&&(o.signal=i),c(this,Qi).push(o),g(this,kr,void 0),T(this,W,Js).call(this,rn.RECORDING),T(this,W,Dd).call(this)},Cz=function(){let t=c(this,kr);if(t===void 0)return;let n=c(this,mn).at(-1);if(n===void 0){g(this,kr,void 0),T(this,W,Js).call(this,rn.RECORDING),T(this,W,Dd).call(this);return}let r={kind:t.kind,anchor:n.anchor},o=T(this,W,JS).call(this);o!==void 0&&(r.signal=o),c(this,Qi).push(r),g(this,kr,void 0),T(this,W,Js).call(this,rn.RECORDING),T(this,W,Dd).call(this)},JS=function(){var r,o;let t=(r=c(this,ho))==null?void 0:r.querySelector("[data-reticle-signal]"),n=(o=t==null?void 0:t.value)!=null?o:"";return n.length>0?n:void 0},Lz=function(){g(this,mn,[]),g(this,Pd,typeof location=="undefined"?void 0:location.pathname),g(this,Qi,[]),g(this,ni,void 0),g(this,kr,void 0),T(this,W,Js).call(this,rn.RECORDING),T(this,W,Sm).call(this,Y8)},$z=function(){var r,o;T(this,W,Ji).call(this);let t=(o=(r=T(this,W,Mz).call(this))!=null?r:c(this,Qs).defaultName)!=null?o:eZ,n=tZ(t,c(this,mn),c(this,Qi),c(this,Qs).now(),c(this,Pd));c(this,Qs).emit(w.FLOW_RECORDED,{name:t,flow:n}),T(this,W,Sm).call(this,c(this,mn).length===0?W8:Tz),T(this,W,Js).call(this,rn.IDLE),T(this,W,Dd).call(this)},kz=function(){c(this,pr)===rn.RECORDING&&(T(this,W,Js).call(this,rn.ANNOTATING),T(this,W,Sm).call(this,X8),T(this,W,Dz).call(this))},Js=function(t){g(this,pr,t)},zz=function(){let t=document.createElement("div");t.setAttribute("data-reticle-overlay",""),t.style.cssText=bz;let n=document.createElement("input");n.setAttribute("data-reticle-name",""),n.setAttribute("placeholder","flow name"),n.style.cssText=YS,t.appendChild(n),t.appendChild(T(this,W,_m).call(this,"record",XS.record,()=>T(this,W,Lz).call(this))),t.appendChild(T(this,W,_m).call(this,"stop",XS.stop,()=>T(this,W,$z).call(this))),t.appendChild(T(this,W,_m).call(this,"annotate",XS.annotate,()=>T(this,W,kz).call(this)));let r=document.createElement("span");r.setAttribute("data-reticle-status",""),r.style.cssText=_z,r.textContent=Tz,t.appendChild(r);let o=document.createElement("div");o.setAttribute("data-reticle-menu",""),o.style.cssText=Sz,t.appendChild(o),document.body.appendChild(t),g(this,es,t),g(this,ea,r),g(this,ho,o)},_m=function(t,n,r){let o=document.createElement("button");return o.setAttribute("data-reticle-action",t),o.textContent=n,o.style.cssText=bm,o.addEventListener("click",r),o},Dz=function(){let t=c(this,ho);if(t!==void 0){t.textContent="";for(let n of Object.values(je)){if(n===je.INTENT)continue;let r=document.createElement("button");r.setAttribute("data-reticle-annkind",n),r.textContent=J8[n],r.style.cssText=bm,r.addEventListener("click",()=>T(this,W,Pz).call(this,n)),t.appendChild(r)}}},Pz=function(t){g(this,kr,{kind:t});let n=c(this,ho);if(n===void 0)return;if(Q8.has(t)){let o=document.createElement("select");o.setAttribute("data-reticle-signal",""),o.style.cssText=YS;for(let i of Bi().signals){let s=document.createElement("option");s.value=i,s.textContent=i,o.appendChild(s)}n.appendChild(o)}let r=document.createElement("button");r.setAttribute("data-reticle-action","annotate-confirm"),r.textContent="on prior step",r.style.cssText=bm,r.addEventListener("click",()=>T(this,W,Cz).call(this)),n.appendChild(r)},Dd=function(){c(this,ho)!==void 0&&(c(this,ho).textContent="")},Sm=function(t){c(this,ea)!==void 0&&(c(this,ea).textContent=t)},Mz=function(){var r,o;let t=(r=c(this,es))==null?void 0:r.querySelector("[data-reticle-name]"),n=(o=t==null?void 0:t.value.trim())!=null?o:"";return n.length>0?n:void 0};function Uz(e){return new qS(e)}dT();M();function h1(e){return{...e.env===void 0?{}:{env:e.env},...e.scope===void 0?{}:{scope:e.scope},...e.injected===!0?{instrumentation:rh.INJECTED}:{}}}function m1(e,t){return e==="production"&&!t}function g1(e,t){let n=e.token;if(!(e.lease!==!0||n===void 0||n.length===0||n===t))return n}function TW(e){let t;try{t=new URL(e)}catch{return{url:e,adjusted:!1}}return t.protocol!=="ws:"&&t.protocol!=="wss:"||t.pathname!==""&&t.pathname!=="/"?{url:e,adjusted:!1}:(t.pathname=$s,{url:t.toString(),adjusted:!0})}function xW(e,t,n,r,o="http:"){var l;let i;try{i=new URL(t)}catch{return{allowed:!1,reason:"invalid Reticle bridge URL"}}if(i.protocol!=="ws:"&&i.protocol!=="wss:")return{allowed:!1,reason:"Reticle bridge URL must use ws:// or wss://"};if(((l=r==null?void 0:r.length)!=null?l:0)>Z.MAX_TOKEN_LENGTH)return{allowed:!1,reason:`Reticle pairing token exceeds ${String(Z.MAX_TOKEN_LENGTH)} characters`};let s=!o_(i.hostname);return s&&i.protocol!=="wss:"?{allowed:!1,reason:"a non-local Reticle bridge must use wss://"}:!JO(o,e)||s?n?r===void 0||r.length===0?{allowed:!1,reason:"a pairing token is required outside localhost"}:{allowed:!0}:{allowed:!1,reason:"Reticle is disabled outside localhost unless allowNonLocalhost is explicitly enabled"}:{allowed:!0}}var AW=20,yW="[Reticle] killed for this page. Restart your dev server or reload the page to bring it back.",wW="Session ended - lost connection to Reticle (the agent is no longer running).";function vW(e,t){return e===void 0||e===Uu?t():e}function NW(){try{let e=new URL(window.location.href);if(!e.searchParams.has(sm))return;e.searchParams.delete(sm),window.history.replaceState(window.history.state,"",e.toString())}catch{}}function nA(e){let t=new URLSearchParams(e),n={},r=t.get(rr.SESSION),o=t.get(rr.PROJECT),i=rA(Bn,t.get(rr.HUD));return r!==null&&r.length>0&&(n.session=r),o!==null&&o.length>0&&(n.projectId=o),i!==void 0&&(n.hud=i),n}function RW(e){return e===void 0?{placed:[]}:{remember:e,placed:Bn.SHOWN===e?[]:[e]}}function M2(e,t){var i;let n=nA(t),r=e.session!==void 0&&e.session!==Uu?e.session:void 0,o=(i=e.projectId)!=null?i:n.projectId;return{session:r!=null?r:n.session,projectId:o!==void 0&&o.length>0?o:void 0}}function OW(e){return{t:e.t,seq:e.seq,type:e.type,sessionId:e.sessionId,ref:e.ref,documentId:e.documentId,editEpoch:0===e.editEpoch?void 0:e.editEpoch,data:e.data}}var Qr,Vp,Ba,Lo,Ga,Bg,jp,Ts,Ue,ou,Va,Si,Kp,iu,Zp,ja,$o,su,xs,Wp,As,au,Ka,ko,cu,Ti,$n,H2,zo,F2,B2,G2,V2,j2,lu=class{constructor(){x(this,$n);x(this,Qr);x(this,Vp,new Map);x(this,Ba,[]);x(this,Lo,!1);x(this,Ga,"default");x(this,Bg,HO(Math.random));x(this,jp,0);x(this,Ts);x(this,Ue);x(this,ou,new Map);x(this,Va,[]);x(this,Si);x(this,Kp);x(this,iu,!1);x(this,Zp,!1);x(this,ja);x(this,$o);x(this,su,0);x(this,xs);x(this,Wp,{});x(this,As);x(this,au,!1);x(this,Ka);x(this,ko);x(this,cu,[]);x(this,Ti);x(this,zo,(t,n,r)=>{var i,s,a;let o=OW({seq:c(this,su),t:Math.round(performance.now()-c(this,jp)),type:t,sessionId:c(this,Ga),documentId:c(this,Bg),editEpoch:dd.current,data:n,ref:r});try{(i=c(this,Qr))==null||i.sendEvent(o),g(this,su,c(this,su)+1),(s=c(this,Ts))==null||s.update({connected:!0,events:c(this,su)}),t===w.ROUTE_CHANGE&&((a=c(this,Ue))==null||a.refilterFlows())}catch{}})}connect(t={}){var f,m,h,E,_,A,v;if(c(this,Lo)){let N=g1(t,c(this,xs));N!==void 0&&(g(this,xs,N),(f=c(this,Qr))==null||f.redialAfterRefusal()),T(this,$n,B2).call(this,t);return}if(typeof window=="undefined"||typeof document=="undefined")return;let n=globalThis.process,r=(m=n==null?void 0:n.env)==null?void 0:m.NODE_ENV;if(m1(r,t.allowInProduction===!0)){globalThis.console.warn("[Reticle] disabled in production (NODE_ENV=production). Gate the import behind import.meta.env.DEV, or pass allowInProduction:true to override.");return}NW();let o=TW((h=t.url)!=null?h:gR(db)),i=o.url;o.adjusted&&globalThis.console.warn(`[Reticle] bridge URL has no path; using ${i} (the bridge only accepts WebSocket upgrades on ${$s}).`);let s=xW(window.location.hostname,i,t.allowNonLocalhost===!0,t.token,window.location.protocol);if(!s.allowed){globalThis.console.warn(`[Reticle] ${(E=s.reason)!=null?E:"connection blocked"}`);return}t.root!==void 0&&t.root.length>0&&(globalThis[Xf]=t.root);let a=(_=t.sdkVersion)!=null?_:globalThis[gO];g(this,As,typeof a=="string"&&a.length>0?a:void 0);let l=M2(t,window.location.search),u=vW(l.session,()=>"");g(this,Ga,IC(u.length>0?u:void 0,typeof globalThis.sessionStorage=="undefined"?void 0:globalThis.sessionStorage,()=>{var N;return typeof((N=globalThis.crypto)==null?void 0:N.randomUUID)=="function"?`s${globalThis.crypto.randomUUID()}`:`s${Date.now().toString(36)}`})),g(this,xs,t.token!==void 0&&t.token.length>0?t.token:void 0),g(this,ko,l.projectId),g(this,Wp,h1(t)),T(this,$n,F2).call(this,t.redact),g(this,jp,performance.now()),g(this,Vp,nk()),g(this,Qr,new cm({url:i,hello:()=>T(this,$n,G2).call(this),handleCommand:N=>T(this,$n,V2).call(this,N),onConnected:()=>{var N;g(this,Zp,!0),(N=c(this,Ue))==null||N.sessionStart()},onConnectionLost:()=>{var N;Pc(),((N=c(this,Ue))==null?void 0:N.sessionActive)===!0&&c(this,Ue).setState(Ye.ENDED,wW)},onUnreachable:({url:N,attempts:O})=>{var k;Lr(um(N,O)),(k=c(this,Ue))==null||k.showUnreachable(N,O)}})),Dh(()=>{var N;return(N=c(this,Qr))==null?void 0:N.reannounce()}),eC(t.exposePresenter===!0),dC(t.testIdAttribute),t.networkBodyMaxChars!==void 0&&$k(t.networkBodyMaxChars);let d=c(this,zo);g(this,au,t.captureNetworkBodies===!0),g(this,Ka,typeof t.sourceMapping=="boolean"?t.sourceMapping:void 0),g(this,Ba,hz(d,{captureBodies:c(this,au),...t.captureErrorBodies===void 0?{}:{captureErrorBodies:t.captureErrorBodies}})),t.overlay===!0&&(g(this,Ts,mz()),c(this,Ts).update({connected:!0,events:0})),g(this,Si,nA(window.location.search).hud),t.present!==!1&&Bn.REMOVED!==c(this,Si)&&T(this,$n,H2).call(this,t),t.recorder===!0&&(g(this,ja,Uz({emit:d,now:()=>Date.now()})),c(this,ja).mount()),((A=t.annotate)!=null?A:t.present!==!1)&&(g(this,$o,new ua({emit:d,now:()=>Date.now(),onMark:N=>{var O;return(O=c(this,Ue))==null?void 0:O.log(Ge.HUMAN,`\u{1F6A9} #${String(N.index)} ${N.label}${N.source!==void 0?` \xB7 ${N.source}`:""} \u2014 ${N.note}`)},shouldBlock:()=>{var N,O;return(O=(N=c(this,Kp))==null?void 0:N.call(this).blockPageInteractions)!=null?O:!0}})),c(this,$o).mount(),(v=c(this,Ue))==null||v.bindAnnotator(c(this,$o))),c(this,Qr).connect(),g(this,Lo,!0)}get connected(){return c(this,Lo)}routes(t){lC(t)}signal(t,n={}){c(this,zo).call(this,w.SIGNAL,{name:t,data:n})}busy(t){return sC(t,(n,r)=>{this.signal(n,r)})}state(t,n){c(this,zo).call(this,w.STATE_CHANGE,{name:t,value:n})}renderCommit(t){t>0&&c(this,zo).call(this,w.RENDER_COMMIT,{commits:t})}describe(t){Oc(t)}endSession(){var t;(t=c(this,Ue))==null||t.setState(Ye.ENDED)}observeHotUpdates(t){dd.observe(t)}disconnect(){var t,n,r,o,i,s;c(this,Lo)&&(fz(c(this,zo),c(this,Ba)),g(this,Ba,[]),(t=c(this,Qr))==null||t.close(),g(this,Qr,void 0),(n=c(this,Ts))==null||n.destroy(),g(this,Ts,void 0),(r=c(this,Ue))==null||r.sessionEnd(),(o=c(this,Ue))==null||o.destroy(),g(this,Ue,void 0),(i=c(this,ja))==null||i.destroy(),g(this,ja,void 0),(s=c(this,$o))==null||s.destroy(),g(this,$o,void 0),Pc(),g(this,Lo,!1))}};Qr=new WeakMap,Vp=new WeakMap,Ba=new WeakMap,Lo=new WeakMap,Ga=new WeakMap,Bg=new WeakMap,jp=new WeakMap,Ts=new WeakMap,Ue=new WeakMap,ou=new WeakMap,Va=new WeakMap,Si=new WeakMap,Kp=new WeakMap,iu=new WeakMap,Zp=new WeakMap,ja=new WeakMap,$o=new WeakMap,su=new WeakMap,xs=new WeakMap,Wp=new WeakMap,As=new WeakMap,au=new WeakMap,Ka=new WeakMap,ko=new WeakMap,cu=new WeakMap,Ti=new WeakMap,$n=new WeakSet,H2=function(t){c(this,iu)||(g(this,iu,!0),Promise.resolve().then(()=>(S2(),_2)).then(({Presenter:n})=>Promise.resolve().then(()=>(hl(),zD)).then(r=>({Presenter:n,settings:r}))).then(({Presenter:n,settings:r})=>{if(!c(this,Lo))return;g(this,Kp,r.getPresenterSettings);let o={};t.pace!==void 0&&(o.paceMs=t.pace),t.narrationDwellMs!==void 0&&(o.narrationDwellMs=t.narrationDwellMs),t.border!==void 0&&(o.border=t.border),t.logMax!==void 0&&(o.logMax=t.logMax),t.endedFadeMs!==void 0&&(o.endedFadeMs=t.endedFadeMs),t.idleEndMs!==void 0&&(o.idleEndMs=t.idleEndMs),o.sessionId=c(this,Ga),c(this,ko)!==void 0&&(o.projectId=c(this,ko)),o.onControl=s=>c(this,zo).call(this,w.HUMAN_CONTROL,s.text!==void 0?{kind:s.kind,text:s.text}:{kind:s.kind}),o.onHudUse=s=>c(this,zo).call(this,w.HUD_USED,{...s}),o.onKill=()=>{this.disconnect(),Lr(yW)};let i=new n(o);g(this,Ue,i),i.mount(),i.showSdkVersion(c(this,As));for(let s of c(this,ou).values())i.handlePush(s);c(this,ou).clear(),0<c(this,Va).length&&i.sessionStart();for(let s of c(this,Va).splice(0))i.narrate(s.text,s.level,s.actor,s.summary);c(this,Si)!==void 0&&i.placeHud(c(this,Si),void 0),g(this,Si,void 0),Promise.resolve().then(()=>(P2(),D2)).then(s=>{var l;if(!c(this,Lo))return;let a=s.mountTour({document,storage:s.safeLocalStorage(),projectId:(l=nA(window.location.search).projectId)!=null?l:window.location.origin,isDriving:()=>it.IDLE!==i.mode,search:window.location.search,navigator,copy:u=>{var d,f;return(f=(d=navigator.clipboard)==null?void 0:d.writeText(u).then(()=>!0,()=>!1))!=null?f:!1},select:u=>{let d=window.getSelection();if(d===null)return;let f=document.createRange();f.selectNodeContents(u),d.removeAllRanges(),d.addRange(f)}});a!==void 0&&c(this,Ba).push(a.destroy)}),c(this,Zp)&&i.sessionStart(),c(this,$o)!==void 0&&i.bindAnnotator(c(this,$o))}).catch(()=>{}))},zo=new WeakMap,F2=function(t){jO(VO(t,Lr)),g(this,cu,KO(t))},B2=function(t){var r;if(c(this,ko)!==void 0)return;let n=M2(t,window.location.search).projectId;n!==void 0&&(g(this,ko,n),(r=c(this,Qr))==null||r.reannounce())},G2=function(){return{kind:on.HELLO,protocolVersion:Pf,sessionId:c(this,Ga),...c(this,ko)===void 0?{}:{projectId:c(this,ko)},url:Rh(),title:no(document.title),adapters:pd(),...c(this,xs)===void 0?{}:{token:c(this,xs)},...c(this,Wp),hasCapabilities:Ph(),channels:ck(),platform:lk(),commands:uk(),captureBodies:c(this,au),...c(this,Ka)===void 0?{}:{sourceMapping:c(this,Ka)},...c(this,As)===void 0?{}:{sdkVersion:c(this,As)},contract:w_,contractParts:{commands:[...qu.commands],events:[...qu.events],actions:[...qu.actions]},...c(this,cu).length===0?{}:{redactKeys:c(this,cu)}}},V2=async function(t){var r,o,i,s,a,l,u,d;if(t.name===H.MARKERS){let f=NC(document),m=c(this,As)!==void 0||c(this,Ka)!==void 0,h=RC({buildPlugin:m,adapters:pd(),markers:f});return{ok:!0,result:{markers:f,...h.length===0?{}:{notApplicable:h}}}}if(t.name===H.NARRATE)return c(this,Ue)===void 0&&c(this,iu)?(c(this,Va).length<AW&&c(this,Va).push({text:Zn(t.args.text),level:Zn(t.args.level,"info"),actor:U2(t.args),summary:t.args.summary===!0}),{ok:!0,result:{shown:!1,buffered:!0}}):((r=c(this,Ue))==null||r.sessionStart(),(o=c(this,Ue))==null||o.narrate(Zn(t.args.text),Zn(t.args.level,"info"),U2(t.args),t.args.summary===!0),{ok:!0,result:{shown:c(this,Ue)!==void 0}});if(t.name===H.SESSION_CONFIG){let f=t.args.idleEndMs;typeof f=="number"&&((i=c(this,Ue))==null||i.setIdleEndMs(f));let m=rA(Bn,t.args.hud),h=rA(qf,t.args.corner),E=c(this,Ue),_;if(E!==void 0)_=E.placeHud(m,h);else{let A=RW(m);A.remember!==void 0&&g(this,Si,A.remember),_=A.placed}return{ok:!0,result:{applied:c(this,Ue)!==void 0,idleEndMs:f,...0<_.length?{hud:_}:{}}}}if(t.name===H.PRESENTER||t.name===H.FLOWS||t.name===H.FLOW_PROGRESS||t.name===H.PLAN||t.name===H.IMPACT)return c(this,Ue)===void 0?(c(this,ou).set(t.name,t),{ok:!0,result:{applied:!1,buffered:!0}}):(c(this,Ue).handlePush(t),{ok:!0,result:{applied:!0}});let n=c(this,Vp).get(t.name);if(n===void 0)return{ok:!1,error:`unknown command '${t.name}'`};(s=c(this,Ue))==null||s.sessionStart(),await T(this,$n,j2).call(this,t),M_(Vu.HARNESS===t.by),j_((a=t.outward)==null?void 0:a.allowed);try{let f=await n(t.args);return(l=c(this,Ti))==null||l.result(Kn.PASS),{ok:!0,result:f}}catch(f){return(u=c(this,Ti))==null||u.result(Kn.FAIL),{ok:!1,error:f instanceof Error?f.message:String(f)}}finally{M_(!1),j_(void 0),g(this,Ti,void 0),(d=c(this,Ue))==null||d.scheduleIdle()}},j2=async function(t){let n=c(this,Ue);if(n===void 0)return;n.setMode(gz(t.name)),g(this,Ti,void 0);let r=Vu.HARNESS===t.by?hn.HARNESS:hn.AGENT;if(t.name===H.ACT){let o=Zn(t.args.ref),i=Em(o);g(this,Ti,n.log(Ge.ACT,`${$d(Zn(t.args.action))} ${i}`,void 0,r)),await n.beforeAct(o,Zn(t.args.action),i)}else if(t.name===H.ACT_SEQUENCE){let o=Array.isArray(t.args.steps)?t.args.steps:[];for(let i of o){let s=i,a=Zn(s.ref),l=Em(a);g(this,Ti,n.log(Ge.ACT,`${$d(Zn(s.action))} ${l}`,void 0,r)),await n.beforeAct(a,Zn(s.action),l)}}else{let o=Ez(t.name,t.args);n.status(o),n.log(Ge.READ,o,void 0,r)}};function U2(e){return Vu.HARNESS===e.actor?hn.HARNESS:hn.AGENT}function rA(e,t){return Object.values(e).includes(t)?t:void 0}var oA=globalThis,K2,uu=(K2=oA.__reticleInstance)!=null?K2:oA.__reticleInstance=new lu;M();lt();Xo();Ws();hd();Ws();function Y2(e){try{return iA(e,new WeakMap)}catch{return e}}function iA(e,t){if(typeof e!="object"||e===null)return e;let n=t.get(e);if(n!==void 0)return n;if(Array.isArray(e)){let i=[];t.set(e,i);for(let s of e)i.push(iA(s,t));return i}let r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null)return e;let o={};t.set(e,o);for(let[i,s]of Object.entries(e))o[i]=iA(s,t);return o}function IW(e){return typeof e!="object"||e===null?String(e):JSON.stringify(e,(t,n)=>{if(typeof n!="object"||n===null||Array.isArray(n))return n;let r=Object.getPrototypeOf(n);if(r!==Object.prototype&&r!==null)return n;let o=n,i={};for(let s of Object.keys(o).sort())i[s]=o[s];return i})}function X2(e){let t={getState:()=>{var r,o,i;let n={};for(let s of e.getQueryCache().getAll()){let a=s.queryKey.map(IW).join("/");n[a]={status:s.state.status,fetchStatus:s.state.fetchStatus,isStale:(r=s.isStale)==null?void 0:r.call(s),isInvalidated:s.state.isInvalidated,dataUpdatedAt:s.state.dataUpdatedAt,error:(i=(o=s.state.error)==null?void 0:o.message)!=null?i:null,data:s.state.data}}return n},subscribe:n=>e.getQueryCache().subscribe(n)};return $h(t,e),t}function q2(e,t){return{getState:()=>{let n={};for(let[r,o]of Object.entries(t))n[r]=e.get(o);return n},subscribe:n=>{let r=Object.values(t).map(o=>e.sub(o,n));return()=>{for(let o of r)o()}}}}function J2(e){return{getState:()=>e.getSnapshot(),subscribe:t=>{let n=e.subscribe(t);return()=>n.unsubscribe()}}}function Q2(e,t,n){return{getState:()=>t(e),subscribe:r=>n(e,r)}}function e5(e,t,n){return{getState:()=>t(e),subscribe:r=>n(()=>t(e),()=>r())}}var Z2={HAS_VALUE:"hasValue",LOADING:"loading",HAS_ERROR:"hasError"};function CW(e){if(e.state===Z2.HAS_ERROR){let t=e.contents;return{status:e.state,value:null,error:t instanceof Error?t.message:String(t)}}return e.state!==Z2.HAS_VALUE?{status:e.state,value:null,error:null}:{status:e.state,value:e.contents,error:null}}function t5(e,t,n){return{getState:()=>{let r=t(),o={};for(let[i,s]of Object.entries(e))o[i]=CW(r.getLoadable(s));return o},subscribe:n}}function W2(e){if(typeof e=="function"){e();return}e.unsubscribe()}function n5(e,t=Lr){let n=!1;return{getState:()=>{let r,o=!1;return W2(e.subscribe(i=>{r=Y2(i),o=!0})),!o&&!n&&(n=!0,t("[reticle] a store passed to svelteStore did not call its subscriber synchronously, so its current value cannot be read. reticle_state will report undefined for it. Svelte stores always call back immediately; an RxJS Observable does not unless it is a BehaviorSubject.")),r},subscribe:r=>{let o=!0,i=e.subscribe(()=>{o||r()});return o=!1,()=>W2(i)}}}var LW={detached:!0,flush:"sync"};function r5(e){return{getState:()=>Y2(e.$state),subscribe:t=>e.$subscribe(()=>t(),{...LW})}}function o5(e){let t=e,n=new Set;return{store:{getState:()=>t,subscribe:o=>(n.add(o),()=>n.delete(o))},push:o=>{t=o;for(let i of n)i()}}}Gi();function i5(e={}){var n;let t=(n=e.target)!=null?n:uu;return{signal(r,o={}){t.connected&&t.signal(r,o)},state(r,o){t.connected&&t.state(r,o)}}}function s5(e,t,n,r){let o=t();return e.signal(n,r),o}Gi();function a5(e){let t={};e.testids!==void 0&&(t.testids=[...e.testids]),e.signals!==void 0&&(t.signals=[...e.signals]),e.stores!==void 0&&(t.stores=[...e.stores]),Oc(t)}F_();At();Ko();xt();dT();QS();var $W=e=>aC((t,n)=>{uu.signal(t,n)},e);return m5(kW);})();
1833
+ `),truncated:t}}var J3=/application\/json|text\/|application\/xml|x-www-form-urlencoded|graphql/i,Hk=/event-stream|x-ndjson|application\/stream/i,Q3=/event-stream/i;function Fk(e,t){return e!==null&&Q3.test(e)?!1:t===null}var e8=500;async function Bk(e){let t;try{return await Promise.race([e,new Promise(n=>{t=ue(()=>n(void 0),e8)})])}finally{t!==void 0&&Re(t)}}function GS(e){if(e!==null)return Hk.test(e)?sr.STREAMING:sr.NOT_TEXT}function VS(e){return e===null||Hk.test(e)?!1:J3.test(e)}var Gk=8192,t8=262144,n8=256,Yc=Gk;function Vk(e){Number.isFinite(e)&&(Yc=Math.min(t8,Math.max(n8,Math.floor(e))))}function jk(){return Yc}var r8=Gk*2;function o8(e){let t=Yc*2;return e?Math.min(t,r8):t}var i8=/\b(Bearer|Basic)\s+(?=[A-Za-z0-9._~+/=-]{16,})(?=[A-Za-z0-9._~+/=-]*[\d._~+/=-])[A-Za-z0-9._~+/=-]+/gi;function BS(e){return e.replace(i8,(t,n)=>`${n} ${ve}`).replace(/([A-Za-z0-9_.-]+)("?\s*[=:]\s*)("(?:\\.|[^"\\])*"?|[^&\s,;"}]+)/g,(t,n,r,o)=>{if(!St(n))return t;let i=o.startsWith('"')?`"${ve}"`:ve;return`${n}${r}${i}`})}var Uk=4096;function jS(e,t){return t&&e>=400}function hm(e,t){let n=Eo(e,t);return n.body.length<=Uk?n:{body:n.body.slice(0,Uk),truncated:!0}}function Eo(e,t){let n=t!==null&&/json|graphql/i.test(t),r=o8(!n),o=e.length>r,i=o?e.slice(0,r):e,s=!1,a;if(n)try{a=fo(JSON.parse(i))}catch{a=BS(i)}else if(Qi(t)){let u=Mk(i);a=BS(u.body),s=u.truncated}else a=BS(i);a=io(a);let l=s||o||a.length>Yc;return{body:a.length>Yc?a.slice(0,Yc):a,truncated:l}}var s8=/text\/|json|csv|xml|ndjson|javascript/i,a8=2e3;function Kk(e,t={}){if(typeof URL.createObjectURL!="function")return()=>{};let n=new AbortController,r=URL.createObjectURL.bind(URL),o=new Map,i=ke(URL,"createObjectURL"),s=function(h){let E=r(h);return oe(()=>{if(typeof Blob!="undefined"&&h instanceof Blob){let _=s8.test(h.type)?h.text().catch(()=>{}):Promise.resolve(void 0);o.set(E,{type:h.type,size:h.size,text:_})}}),E};URL.createObjectURL=s;let a=(m,h)=>{let E=o.get(m);E!==void 0&&(o.delete(m),E.text.then(_=>{oe(()=>{l(E,h,_)})}))},l=(m,h,E)=>{let _={mimeType:m.type,bytes:m.size};if(h!==void 0&&h.length>0&&(_.filename=h),E!==void 0&&(_.lines=E.split(`
1834
+ `).filter(A=>A.length>0).length,t.capturePreview===!0)){let{body:A,truncated:v}=Eo(E.slice(0,a8),m.type);_.preview=A,v&&(_.previewTruncated=!0)}e(w.DOWNLOAD,_)},u=m=>{oe(()=>{var _,A;let h=m.target,E=h instanceof Element?h.closest("a[download]"):null;E!==null&&a((_=E.getAttribute("href"))!=null?_:"",(A=E.getAttribute("download"))!=null?A:void 0)})};document.addEventListener("click",u,{capture:!0,signal:n.signal});let d=ke(HTMLAnchorElement.prototype,"click"),f=function(){let h=Zt(()=>{var E,_;return this.hasAttribute("download")?{href:(E=this.getAttribute("href"))!=null?E:"",name:(_=this.getAttribute("download"))!=null?_:void 0}:void 0});d.call(this),oe(()=>{h!==void 0&&a(h.href,h.name)})};return HTMLAnchorElement.prototype.click=f,()=>{n.abort(),URL.createObjectURL===s&&(URL.createObjectURL=i),HTMLAnchorElement.prototype.click===f&&(HTMLAnchorElement.prototype.click=d),o.clear()}}M();Wo();function Zk(e){let t=ke(window,"open");if(t===void 0)return()=>{};let r=function(o,i,s){let a=t.call(this,o,i,s);return oe(()=>{e(w.CONTEXT_OPENED,{...o===void 0?{}:{href:o}})}),a};return window.open=r,()=>{window.open===r&&(window.open=t)}}M();Wo();M();dt();var c8=1e4,l8=4,u8=2;async function d8(e,t){var f;if(t.aborted||typeof((f=e.body)==null?void 0:f.getReader)!="function")return;let n=e.body.getReader(),r=new TextDecoder,o=jk()*u8,i="",s=!1,a=!1,l=()=>{},u=new Promise(m=>{l=()=>{a=!0,m()}}),d=ue(l,c8);t.addEventListener("abort",l,{once:!0});try{await Promise.race([(async()=>{for(;!a&&!t.aborted;){let m=await n.read();if(a||t.aborted)return;if(m.done){i+=r.decode(),s=!0;return}let h=o-i.length,E=m.value.subarray(0,h*l8),_=r.decode(E,{stream:!0});if(i+=_.slice(0,h),i.length>=o||E.byteLength<m.value.byteLength)return}})(),u])}catch{}finally{Re(d),t.removeEventListener("abort",l),s||n.cancel().catch(()=>{}),n.releaseLock()}return!s&&i.length===0?void 0:{text:i,complete:s}}async function KS(e,t,n,r){let o=n?{responseBodyReason:sr.UNREADABLE}:{};if(Qi(t)&&(!n||r.aborted))return o;try{let i=e.clone(),s,a=!1;if(Qi(t)){let u=await d8(i,r);s=u==null?void 0:u.text,a=(u==null?void 0:u.complete)===!1}else s=await Bk(i.text());if(s===void 0)return o;let l=n?Eo(s,t):hm(s,t);return{responseBody:l.body,...a||l.truncated?{responseBodyTruncated:!0}:{},...n?{}:{responseBodyReason:sr.ERROR_STATUS}}}catch{return o}}M();M();dt();var p8=1e4;function Wk(e,t,n,r,o,i){var l;if(!Fk(o,i)||typeof((l=t.body)==null?void 0:l.getReader)!="function")return;let s;try{s=t.clone()}catch{return}let a=s.body;a!==null&&(e(w.NET_STREAM,{transport:ao.FETCH,direction:co.OPEN,...r,id:n}),(async()=>{let u=a.getReader(),d=!1,f,m=new Promise(h=>{f=ue(()=>h("expired"),p8)});try{for(;;){let h=await Promise.race([u.read(),m]);if(h==="expired"){d=!0,u.cancel().catch(()=>{});break}if(h.done)break}}catch{}finally{f!==void 0&&Re(f)}e(w.NET_STREAM,{transport:ao.FETCH,direction:co.CLOSE,...r,id:n,...d?{gaveUp:!0}:{}})})())}M();function f8(e){if(e instanceof ArrayBuffer)return e.byteLength;if(typeof Blob!="undefined"&&e instanceof Blob)return e.size;if(ArrayBuffer.isView(e))return e.byteLength}function mm(e,t){if(typeof e!="string"){let r=f8(e);return r===void 0?{frameType:typeof e}:{frameType:"binary",frameBytes:r}}let n={frameBytes:e.length};if(t){let{body:r,truncated:o}=Eo(e,"application/json");n.frame=r,o&&(n.frameTruncated=!0)}return n}function Yk(e){try{return new URL(e,location.href).pathname===zs}catch{return e.includes(zs)}}var Xc={NULL:"0",STRING:"s",NUMBER:"n",BOOLEAN:"b",OTHER:"?"};function bm(e){if(e===null)return Xc.NULL;if(Array.isArray(e))return`[${e.map(bm).join(",")}]`;if(typeof e=="object"){let t=e;return`{${Object.keys(t).sort().map(n=>`${n}:${bm(t[n])}`).join(",")}}`}return typeof e=="string"?Xc.STRING:typeof e=="number"?Xc.NUMBER:typeof e=="boolean"?Xc.BOOLEAN:Xc.OTHER}function YS(e,t){return _c(`${e}#${String(t)}`)}function h8(e){try{return bm(JSON.parse(e))}catch{return Xc.OTHER}}var m8=1<<20,g8=9,E8=10,b8=13,_8=32,S8=127;function T8(e){for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n===S8||n<_8&&n!==g8&&n!==E8&&n!==b8)return!0}return!1}function x8(e){if((e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&!(e.byteLength>m8))try{let t=new TextDecoder("utf-8",{fatal:!0}).decode(e);return T8(t)?void 0:t}catch{return}}function A8(e){let t=[],n=0;return e.forEach((r,o)=>{typeof r=="string"&&(n+=r.length),t.push(JSON.stringify([o,typeof r=="string"?0:[r.type,r.size]]))}),t.length===0?void 0:YS(t.sort().join(),n)}function ZS(e,t){let n,r="application/json",o=_O,i=x8(e),s=()=>{var d,f;return(f=(d=e.constructor)==null?void 0:d.name)!=null?f:typeof e};if(typeof e=="string"||i!==void 0)n=i!=null?i:e,n.length>0&&(o=YS(h8(n),n.length));else if(typeof FormData!="undefined"&&e instanceof FormData){let d=A8(e);return{...d===void 0?{}:{[Uu]:d},...t?{requestBodyType:s()}:{}}}else if(typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams){if(n=e.toString(),r="application/x-www-form-urlencoded",n.length>0){let d=Object.fromEntries(new URLSearchParams(n));o=YS(bm(d),n.length)}}else if(e!=null)return t?{requestBodyType:s()}:{};let a={[Uu]:o};if(!t||n===void 0||n.length===0)return a;let{body:l,truncated:u}=Eo(n,r);return u?{...a,requestBody:l,requestBodyTruncated:!0}:{...a,requestBody:l}}function Xk(e){return e>=200&&e<400}function qk(e,t,n){let r={};e!==""&&(r.statusText=e),t!==null&&t!==""&&(r.contentType=t);let o=n!==null?Number.parseInt(n,10):Number.NaN;return Number.isFinite(o)&&(r.responseSize=o),r}function y8(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function w8(e,t){return(t==null?void 0:t.method)!==void 0?t.method.toUpperCase():e instanceof Request?e.method.toUpperCase():"GET"}function v8(e,t){var n,r;if(t!==void 0&&t.headers!==void 0)return(n=Zt(()=>new Headers(t.headers).get(Kb)))!=null?n:void 0;if(e instanceof Request)return(r=Zt(()=>e.headers.get(Kb)))!=null?r:void 0}var N8=/@reticlehq|reticle\.ts|network\.ts|transport\.ts|<anonymous>|new Promise|node:internal/i,R8=/node_modules|\/\.vite\/deps\//i;function O8(e){var r;if(e===void 0)return;let t=e.split(`
1835
+ `).slice(1).map(o=>o.trim()).filter(o=>o.length>0&&!N8.test(o)),n=t.find(o=>!R8.test(o));return(r=n!=null?n:t[0])==null?void 0:r.slice(0,300)}function WS(){return O8(new Error().stack)}function I8(e){if(e===void 0)return{};let t={};return e.responseStart>0&&e.requestStart>0&&(t.ttfbMs=Math.round(e.responseStart-e.requestStart)),e.transferSize>0&&(t.transferSize=e.transferSize),t}function Jk(e){try{let t=performance.getEntriesByName(e,"resource");return I8(t[t.length-1])}catch{return{}}}function C8(e){try{return Function.prototype.toString.call(e).includes("native code")}catch{return!1}}var Qk=new WeakSet,gm=Symbol.for("reticle.network"),Em=()=>window;function ez(e,t={}){var wi,dA,pA;if(Em()[gm]!==void 0)return()=>{};let n={};Em()[gm]=n;let r=t.captureBodies===!0,o=new AbortController,i=t.captureErrorBodies!==!1,s=t.reinterpret,a=Dr(window,"fetch"),l=a.bind(window);!C8(a)&&!Qk.has(a)&&e(w.BLIND_SPOT,{kind:cn.WRAPPED_NETWORK,count:1});let u=0,d=()=>`n${++u}`;window.fetch=async(Fe,xe)=>{var fA,hA,mA;let _t=y8(Fe);if(((fA=t.ignore)==null?void 0:fA.call(t,_t))===!0)return l(Fe,xe);let Lt=d(),st=performance.now(),$t=w8(Fe,xe),jt=v8(Fe,xe),vi=jt===void 0?{}:{[Xf]:jt},vs=(hA=Zt(()=>ZS(xe==null?void 0:xe.body,r)))!=null?hA:{},Ni=oo(_t),Ns=Ni.url,qp=Zt(()=>WS()),jg=qp===void 0?{}:{initiatorStack:qp};oe(()=>{e(w.NET_PENDING,{id:Lt,method:$t,...Ni,initiator:"fetch",...jg})});try{let kt=await l(Fe,xe),_5=performance.now(),Rs=(mA=Zt(()=>kt.headers.get("content-type")))!=null?mA:null;oe(()=>{Wk(e,kt,Lt,Ni,Rs,kt.headers.get("content-length"))}),me.add(_t);let Kg=Os=>{oe(()=>{var gA;e(w.NET_REQUEST,{id:Lt,method:$t,...Ni,status:kt.status,ok:Xk(kt.status),durationMs:Math.round(_5-st),initiator:"fetch",...jg,...Jk(_t),...qk(kt.statusText,Rs,kt.headers.get("content-length")),...vs,...vi,...Os,...(gA=s==null?void 0:s(Ns,T5=>kt.headers.get(T5)))!=null?gA:{}})})},S5=jS(kt.status,i);if(r&&Qi(Rs))Kg({responseBodyReason:sr.UNREADABLE}),KS(kt,Rs,!0,o.signal).then(Os=>{typeof Os.responseBody=="string"&&oe(()=>e(w.NET_RESPONSE_BODY,{id:Lt,method:$t,...Ni,...Os}))}).catch(()=>{});else if((r||S5)&&VS(Rs))KS(kt,Rs,r,o.signal).then(Kg).catch(()=>{});else{let Os=r?GS(Rs):void 0;Kg(Os===void 0?{}:{responseBodyReason:Os})}return kt}catch(kt){throw oe(()=>{e(w.NET_REQUEST,{id:Lt,method:$t,url:Ns,status:0,ok:!1,error:kt instanceof Error?kt.message:String(kt),durationMs:Math.round(performance.now()-st),initiator:"fetch",...jg,...vi})}),kt}};let f=Dr(window,"fetch");Qk.add(f);let m=new WeakMap,h=XMLHttpRequest.prototype,E=ke(h,"open"),_=ke(h,"send"),A=E;h.open=function(Fe,xe,..._t){oe(()=>{m.set(this,{id:d(),method:Fe.toUpperCase(),url:cr(String(xe)),rawUrl:String(xe),start:0})}),A.call(this,Fe,xe,..._t)};let v=ke(h,"open"),N=new WeakSet;h.send=function(Fe){oe(()=>{var _t;let xe=m.get(this);if(xe!==void 0){xe.start=performance.now(),xe.reqFields=(_t=Zt(()=>ZS(Fe!=null?Fe:null,r)))!=null?_t:{},xe.initiatorStack=WS();let Lt=xe.initiatorStack===void 0?{}:{initiatorStack:xe.initiatorStack};e(w.NET_PENDING,{id:xe.id,method:xe.method,...oo(xe.rawUrl),initiator:"xhr",...Lt}),N.has(this)||(N.add(this),this.addEventListener("loadend",()=>{oe(()=>{let st=m.get(this);if(st===void 0)return;me.add(st.rawUrl);let $t=this.getResponseHeader("content-type"),jt={},vi=this.responseType===""||this.responseType==="text",vs=jS(this.status,i),Ni=VS($t)||r&&Qi($t);if(r){let Ns=Ni?sr.UNREADABLE:GS($t);Ns!==void 0&&(jt={responseBodyReason:Ns})}if((r||vs)&&vi&&Ni)try{let{body:Ns,truncated:qp}=r?Eo(this.responseText,$t):hm(this.responseText,$t);jt={responseBody:Ns,...qp?{responseBodyTruncated:!0}:{},...r?{}:{responseBodyReason:sr.ERROR_STATUS}}}catch{}e(w.NET_REQUEST,{id:st.id,method:st.method,...oo(st.rawUrl),status:this.status,ok:Xk(this.status),durationMs:Math.round(performance.now()-st.start),initiator:"xhr",...st.initiatorStack===void 0?{}:{initiatorStack:st.initiatorStack},...Jk(st.rawUrl),...qk(this.statusText,$t,this.getResponseHeader("content-length")),...st.reqFields,...jt})})}))}}),_.call(this,Fe!=null?Fe:null)};let O=ke(h,"send"),k=window.EventSource,j=window.WebSocket,Y,X;r&&typeof k=="function"&&(window.EventSource=class extends k{constructor(Fe,xe){super(Fe,xe),oe(()=>{let _t=oo(String(Fe));e(w.NET_STREAM,{transport:ao.SSE,direction:co.OPEN,..._t}),this.addEventListener("message",Lt=>{oe(()=>{e(w.NET_STREAM,{transport:ao.SSE,direction:co.IN,..._t,...mm(Lt.data,r)})})})})}},Y=window.EventSource),r&&typeof j=="function"&&(window.WebSocket=(dA=class extends j{constructor(xe,_t){super(xe,_t);x(this,wi);g(this,wi,Yk(String(xe))),!c(this,wi)&&oe(()=>{let Lt=oo(String(xe));e(w.NET_STREAM,{transport:ao.WS,direction:co.OPEN,...Lt}),this.addEventListener("message",st=>{oe(()=>{e(w.NET_STREAM,{transport:ao.WS,direction:co.IN,...Lt,...mm(st.data,r)})})})})}send(xe){if(c(this,wi)){super.send(xe);return}super.send(xe),oe(()=>{e(w.NET_STREAM,{transport:ao.WS,direction:co.OUT,...oo(this.url),...mm(xe,r)})})}},wi=new WeakMap,dA),X=window.WebSocket);let G=typeof navigator!="undefined"?Object.getPrototypeOf(navigator):null,ee=G===null||(pA=Object.getOwnPropertyDescriptor(G,"sendBeacon"))==null?void 0:pA.value,be;G!==null&&ee!==void 0&&(be=function(Fe,xe){let _t=d(),Lt=Zt(()=>oo(String(Fe))),st=Zt(()=>WS()),$t=ee.call(this,Fe,xe);return oe(()=>{e(w.NET_REQUEST,{id:_t,method:"POST",...Lt,status:0,ok:$t,queued:$t,durationMs:0,initiator:"beacon",...st===void 0?{}:{initiatorStack:st},...ZS(xe,!1)})}),$t},G.sendBeacon=be);let me=new Set,it=0,Xp=200,Wa;if(typeof PerformanceObserver!="undefined")try{let Fe=new PerformanceObserver(xe=>{var _t,Lt,st;for(let $t of xe.getEntries()){let jt=$t;if(it>=Xp)return;let vi=jt.initiatorType||"other";if(vi==="fetch"||vi==="xmlhttprequest")continue;let vs=jt.name;me.has(vs)||(me.add(vs),it+=1,e(w.NET_REQUEST,{id:d(),method:"GET",...oo(vs),durationMs:Math.round(jt.duration),initiator:vi,...jt.transferSize>0?{transferSize:jt.transferSize}:{},...((_t=jt.responseStatus)!=null?_t:0)>0?{status:jt.responseStatus,ok:((Lt=jt.responseStatus)!=null?Lt:0)>=200&&((st=jt.responseStatus)!=null?st:0)<400}:{}}))}});Wa=Fe,Fe.observe({type:"resource",buffered:!0})}catch{}return()=>{Em()[gm]===n&&delete Em()[gm],o.abort(),Wa==null||Wa.disconnect(),window.fetch===f&&(window.fetch=a),ke(h,"open")===v&&(h.open=E),ke(h,"send")===O&&(h.send=_),Y!==void 0&&window.EventSource===Y&&(window.EventSource=k),X!==void 0&&window.WebSocket===X&&(window.WebSocket=j),G!==null&&ee!==void 0&&G.sendBeacon===be&&(G.sendBeacon=ee)}}M();var L8="Tauri-Response",$8="error",tz={OK:"Ok",ERROR:"Err"},nz=/^(?:ipc:\/\/[^/]*|https?:\/\/ipc\.localhost(?::\d+)?)\/(.+)$/;function rz(e,t){let n=nz.exec(e),r=n==null?void 0:n[1];if(r===void 0)return;let o=t(L8)!==$8;return{url:`${jb}${r}`,initiator:xn.IPC,method:xn.IPC,ok:o,status:o?Mu.OK:Mu.ERROR,statusText:o?tz.OK:tz.ERROR}}function oz(e){var t;return((t=nz.exec(e))==null?void 0:t[1])===lh}function k8(){return navigator.userAgent.includes("Electron")}function iz(e,t={}){let n=window[Ko];if(typeof(n==null?void 0:n.subscribe)!="function")return k8()&&e(w.BLIND_SPOT,{kind:cn.UNOBSERVED_IPC,count:1}),()=>{};let r=n.subscribe(o=>{oe(()=>{var l;let i=`${jb}${o.channel}`;if(o.phase==="start"){e(w.NET_PENDING,{id:o.id,method:xn.IPC,url:i,initiator:xn.IPC});return}let s=o.oneWay===!0&&o.ok===void 0;s&&e(w.BLIND_SPOT,{kind:cn.VERDICTLESS_SEND,count:1});let a=o.ok===!0;e(w.NET_REQUEST,{id:o.id,method:xn.IPC,url:i,...s?{}:{ok:a,status:a?Mu.OK:Mu.ERROR},...o.oneWay===!0?{oneWay:!0}:{},durationMs:(l=o.durationMs)!=null?l:0,initiator:xn.IPC,...o.error===void 0?{}:{error:o.error},...o.responseSize===void 0?{}:{responseSize:o.responseSize},...t.captureBodies===!0?{...o.requestBody===void 0?{}:{requestBody:o.requestBody},...o.responseBody===void 0?{}:{responseBody:o.responseBody},...o.responseBodyTruncated===!0?{responseBodyTruncated:!0}:{}}:{}})})});return()=>{var o;(o=n.unsubscribe)==null||o.call(n,r)}}M();gt();Ot();nt();dn();var sz=e=>e===void 0?0:Math.max(0,e.width)*Math.max(0,e.height);function az(e){let t=globalThis.CSS;if(typeof(t==null?void 0:t.escape)=="function")return t.escape(e);let n="";for(let[r,o]of[...e].entries())/\d/.test(o)&&(r===0||r===1&&e.startsWith("-"))?n+=`\\${o.charCodeAt(0).toString(16)} `:/[\w-]/.test(o)?n+=o:n+=`\\${o}`;return n}function z8(e){let t=Ne(e);if(t!==null)return`[${Fi()}="${t.replace(/["\\]/g,"\\$&")}"]`;let n=e.tagName.toLowerCase();if(0<e.id.length)return`${n}#${az(e.id)}`;let r=e.classList.item(0);return r===null?n:`${n}.${az(r)}`}function D8(e){var n;let t;for(let r of e!=null?e:[]){let o=(n=r.node)!=null?n:null,i=o===null?null:wn(o)?o:o.parentElement;if(i===null||Rt(i))continue;let s=Math.max(sz(r.previousRect),sz(r.currentRect));(t===void 0||s>t.area)&&(t={el:i,area:s})}return t===void 0?void 0:{ref:re.refFor(t.el),selector:z8(t.el)}}function cz(e){if(typeof PerformanceObserver!="function")return()=>{};let t=[],n=(i,s)=>{try{let a=new PerformanceObserver(l=>{for(let u of l.getEntries())s(u)});a.observe({type:i,buffered:!0}),t.push(a)}catch{}},r=0,o=0;return n("largest-contentful-paint",i=>{let s=Math.round(i.startTime);s<=o||(o=s,e(w.PERF,{metric:cc.LCP,value:s,at:s}))}),n("layout-shift",i=>{var l;let s=i;if(s.hadRecentInput===!0)return;r+=(l=s.value)!=null?l:0;let a=D8(s.sources);e(w.PERF,{metric:cc.CLS,value:r,at:Math.round(i.startTime),...a===void 0?{}:{shifted:a}})}),n("longtask",i=>{e(w.PERF,{metric:cc.LONGTASK,value:Math.round(i.duration),at:Math.round(i.startTime)})}),()=>{for(let i of t)i.disconnect()}}M();var P8=new Set(["navigate","reload","back_forward"]);function M8(){try{let[e]=performance.getEntriesByType("navigation");return e}catch{return}}function lz(e){var s,a;let t=M8(),n=t==null?void 0:t.type,r=t==null?void 0:t.name;if(t===void 0||typeof r!="string"||r.length===0)return()=>{};if(typeof n!="string"||!P8.has(n))return()=>{};let o=t.responseStatus,i=typeof o=="number"&&o>0;return e(w.NET_REQUEST,{id:`doc-${String(Math.round((s=t.duration)!=null?s:0))}`,method:"GET",url:r,initiator:xn.DOCUMENT,durationMs:Math.round((a=t.duration)!=null?a:0),...i?{status:o,ok:o<400}:{},navigationType:n,...typeof t.transferSize=="number"?{transferSize:t.transferSize}:{}}),()=>{}}M();var U8=/^(javascript|mailto|tel|sms|blob|data):/i;function H8(){if(typeof window=="undefined")return;let e=window.navigation;return e instanceof EventTarget?e:void 0}function F8(e){if(!(e instanceof Element))return;let t=e.closest("a");return t instanceof HTMLAnchorElement?t:void 0}var B8=1e3;function uz(e,t,n){if(e.length===0||U8.test(e))return!1;if(t)return!0;try{let r=new URL(e,n),o=new URL(n);return r.origin===o.origin?r.pathname!==o.pathname||r.search!==o.search:!0}catch{return!1}}function dz(e){if(typeof document=="undefined")return()=>{};let t=0,n,r=(a,l)=>{let u=Date.now();n!==void 0&&n.url===a&&u-n.at<B8||(n={url:a,at:u},t+=1,e(w.NET_PENDING,{id:`nav-${String(t)}`,method:"GET",url:a,initiator:xn.NAVIGATION,...l?{download:!0}:{}}))},o=a=>{oe(()=>{var h;let l=F8(a.target);if(l===void 0)return;let u=(h=l.getAttribute("href"))!=null?h:"",d=document.location.href,f=l.hasAttribute("download");if(!uz(u,f,d))return;let m=new URL(u,d).toString();queueMicrotask(()=>{oe(()=>{a.defaultPrevented||r(m,f)})})})},i=a=>{oe(()=>{let l=a.destination;if(l===void 0||l.sameDocument)return;let u=l.url;uz(u,!1,document.location.href)&&queueMicrotask(()=>{oe(()=>{a.defaultPrevented||r(u,!1)})})})},s=H8();return s!==void 0&&s.addEventListener("navigate",i),document.addEventListener("click",o,!0),()=>{document.removeEventListener("click",o,!0),s!==void 0&&s.removeEventListener("navigate",i)}}M();ur();M();var G8=3,V8=256,j8={emit:!0},K8={emit:!1};function Z8(e){if(e<10)return!1;let t=e;for(;t%10===0;)t/=10;return t===1}function W8(e){var t,n,r;return _c([e.message,(t=e.source)!=null?t:"",e.line===void 0?"":String(e.line),(n=e.kind)!=null?n:"",(r=e.stack)!=null?r:""].join("\0"))}function pz(e=G8,t=V8){let n=new Map;return{admit(r){var s,a;let o=W8(r),i=((s=n.get(o))!=null?s:0)+1;if(n.delete(o),n.size>=t){let l=n.keys().next();(a=l.done)!=null&&a||n.delete(l.value)}return n.set(o,i),i<=e?j8:Z8(i)?{emit:!0,repeats:i}:K8}}}var fz="securitypolicyviolation",Y8="report",X8={log:w.CONSOLE_LOG,warn:w.CONSOLE_WARN,error:w.CONSOLE_ERROR,info:w.CONSOLE_INFO,debug:w.CONSOLE_DEBUG};function q8(e){return e.map(t=>typeof t=="string"?t:t instanceof Error?t.message:fo(t)).join(" ")}var hz=Z.MAX_STACK_LENGTH;function XS(e){if(!(e===void 0||e.length===0))return e.length>hz?e.slice(0,hz):e}function J8(e){for(let t of e)if(t instanceof Error)return XS(t.stack)}function mz(e){let t=["log","warn","error","info","debug"],n=new Map,r=new Map;for(let f of t){let m=Dr(console,f);n.set(f,m);let h=m.bind(console),E=(..._)=>{h(..._),oe(()=>{let A=f==="error"?J8(_):void 0;e(X8[f],{message:q8(_),...A===void 0?{}:{stack:A}})})};r.set(f,E),console[f]=E}let o=pz(),i=f=>{let m=o.admit(f);m.emit&&e(w.ERROR_UNCAUGHT,{...f,...m.repeats===void 0?{}:{repeats:m.repeats}})},s=f=>{var m,h;if(!(f instanceof ErrorEvent)){let E=f.target;if(!(E instanceof Element)||E===document)return;let _=E.tagName.toLowerCase(),A=(h=(m=E.getAttribute("src"))!=null?m:E.getAttribute("href"))!=null?h:"";oe(()=>{let v=`<${_}> failed to load${A.length===0?"":`: ${A}`}`;i({message:v,kind:"resource",...A.length===0?{}:{source:A}})});return}oe(()=>{let E=XS(f.error instanceof Error?f.error.stack:void 0),_={message:f.message,source:f.filename,line:f.lineno,...E===void 0?{}:{stack:E}};i(_)})},a=f=>{oe(()=>{let m=f.reason,h=XS(m instanceof Error?m.stack:void 0),E={message:m instanceof Error?m.message:String(m),kind:"unhandledrejection",...h===void 0?{}:{stack:h}};i(E)})},l=f=>{let m=f.blockedURI.length===0?"inline content":f.blockedURI,h=Y8===f.disposition;e(h?w.CONSOLE_WARN:w.CONSOLE_ERROR,{message:h?`[Report Only] Content Security Policy directive: ${f.violatedDirective} would block ${m}`:`Content Security Policy directive: ${f.violatedDirective} blocked ${m}`,kind:fz,...f.blockedURI.length===0?{}:{source:f.blockedURI}})},u=new AbortController,{signal:d}=u;return window.addEventListener("error",s,{capture:!0,signal:d}),window.addEventListener("unhandledrejection",a,{signal:d}),window.addEventListener(fz,l,{capture:!0,signal:d}),()=>{for(let[f,m]of n)console[f]===r.get(f)&&(console[f]=m);u.abort()}}M();Lc();var Q8={alert:void 0,confirm:!1,prompt:null},eZ=["alert","confirm","prompt"];function gz(e){let t=window,n=new Map,r=new Map;for(let o of eZ){let i=t[o];if(typeof i!="function")continue;n.set(o,i);let s=i.bind(window),a=(...l)=>{if(!jh())return s(...l);let u=Q8[o],d=l[0];return oe(()=>{e(w.DIALOG_OPENED,{kind:o,...typeof d=="string"?{message:d}:{},...u===void 0?{}:{answered:u}})}),u};r.set(o,a),t[o]=a}return()=>{for(let[o,i]of n)t[o]===r.get(o)&&(t[o]=i)}}M();gt();nt();function Ez(e){let t=new AbortController,{signal:n}=t,r=s=>{let a=s.target;a instanceof Element&&!Rt(a)&&e(w.ANIM_START,{name:s.animationName},re.refFor(a))},o=s=>{let a=s.target;a instanceof Element&&!Rt(a)&&e(w.ANIM_END,{name:s.animationName},re.refFor(a))},i=s=>{let a=s.target;a instanceof Element&&!Rt(a)&&e(w.ANIM_END,{name:s.propertyName,kind:"transition"},re.refFor(a))};return document.addEventListener("animationstart",r,{capture:!0,signal:n}),document.addEventListener("animationend",o,{capture:!0,signal:n}),document.addEventListener("transitionend",i,{capture:!0,signal:n}),()=>t.abort()}M();gt();dt();var bz=100,tZ="[data-reticle-reveal], [data-reveal], section";function _z(e){let t=new AbortController,{signal:n}=t,r=0,o=0,i,s=()=>{r=performance.now();let u=window.scrollY,d=Math.max(1,document.documentElement.scrollHeight-window.innerHeight);e(w.SCROLL_POSITION,{x:window.scrollX,y:u,percent:Math.round(u/d*100),direction:u>=o?ch.DOWN:ch.UP}),o=u},a=()=>{let u=performance.now()-r;if(u>=bz){i!==void 0&&(Re(i),i=void 0),s();return}i===void 0&&(i=ue(()=>{i=void 0,s()},bz-u))};window.addEventListener("scroll",a,{passive:!0,signal:n});let l;if(typeof IntersectionObserver=="function"){l=new IntersectionObserver(d=>{for(let f of d)f.isIntersecting&&e(w.REVEAL_SHOWN,{ratio:f.intersectionRatio},re.refFor(f.target))},{threshold:.25});let u=l;for(let d of document.querySelectorAll(tZ))u.observe(d)}return()=>{t.abort(),i!==void 0&&Re(i),l==null||l.disconnect()}}M();dt();function Tz(){let e=window;return e.__TAURI_INTERNALS__!==void 0||e.__TAURI__!==void 0?"tauri":navigator.userAgent.includes("Electron")||e[Ko]!==void 0?"electron":"web"}function nZ(){let e=navigator.userAgent;return/Chrome|Chromium|Edg\//.test(e)?"blink":/Gecko\/|Firefox/.test(e)?"gecko":"webkit"}var rZ={"google chrome":qe.CHROME,chrome:qe.CHROME,"microsoft edge":qe.EDGE,edge:qe.EDGE,brave:qe.BRAVE,opera:qe.OPERA,arc:qe.ARC,dia:qe.DIA,firefox:qe.FIREFOX,safari:qe.SAFARI};function oZ(e){return e==="chromium"||e.includes("not")&&e.includes("brand")}function iZ(){var t;try{let r=(t=navigator.userAgentData)==null?void 0:t.brands;if(Array.isArray(r)){let o;for(let i of r){let s=typeof(i==null?void 0:i.brand)=="string"?i.brand.toLowerCase():"";if(s===""||oZ(s))continue;let a=rZ[s];if(a!==void 0)if(qe.CHROME===a)o=a;else return a}return o!=null?o:qe.OTHER}}catch{}let e=navigator.userAgent;return/Edg\//.test(e)?qe.EDGE:/OPR\/|Opera/.test(e)?qe.OPERA:/Firefox/.test(e)?qe.FIREFOX:/Chrome|Chromium/.test(e)?qe.CHROME:/Safari/.test(e)?qe.SAFARI:qe.OTHER}var Sz=typeof window!="undefined"&&typeof window.fetch=="function"?window.fetch.bind(window):void 0;function sZ(){var n,r;let e=window.__TAURI_INTERNALS__,t=(r=(n=e==null?void 0:e.metadata)==null?void 0:n.currentWindow)==null?void 0:r.label;return typeof t=="string"&&t.length>0?t:void 0}function aZ(){try{let[e]=performance.getEntriesByType("navigation"),t=e==null?void 0:e.responseStatus;return typeof t=="number"&&t>0?t:void 0}catch{return}}async function cZ(e){let t=aZ();if(t!==void 0)return t;try{return e==="web"||Sz===void 0||!/^https?:$/.test(location.protocol)?void 0:(await Sz(location.href,{method:"HEAD",cache:"no-store"})).status}catch{return}}async function lZ(){let e=window[Ko];if(typeof(e==null?void 0:e.windowLabel)=="function")try{let t=await e.windowLabel();return typeof t=="string"&&t.length>0?t:void 0}catch{return}}function uZ(e){return{hidden:document.visibilityState==="hidden",focused:document.hasFocus(),runtime:Tz(),engine:nZ(),brand:iZ(),...e===void 0?{}:{windowLabel:e}}}function xz(e){let t=new AbortController,{signal:n}=t,r,o=sZ(),i=a=>{e(w.PAGE_HEALTH,{...uZ(o),...r===void 0?{}:{documentStatus:r},reason:a})};document.addEventListener("visibilitychange",()=>i(Bs.VISIBILITY),{signal:n}),window.addEventListener("focus",()=>i(Bs.FOCUS),{signal:n}),window.addEventListener("blur",()=>i(Bs.BLUR),{signal:n}),i(Bs.INITIAL),Promise.all([cZ(Tz()),o===void 0?lZ():Promise.resolve(o)]).then(([a,l])=>{n.aborted||a===void 0&&l===o||(r=a,o=l,i(Bs.HEARTBEAT))});let s=Wh(()=>i(Bs.HEARTBEAT),UO.HEARTBEAT_MS);return()=>{s(),t.abort()}}M();gt();var dZ={VIDEO:"video",AUDIO:"audio"};function Az(e){let t=new AbortController,n=r=>{oe(()=>{let o=r.target;if(!(o instanceof HTMLMediaElement))return;let i=dZ[o.tagName];if(i===void 0)return;let s=Number.isFinite(o.duration)?o.duration:void 0;e(w.MEDIA_STATE,{event:r.type,tag:i,currentTime:o.currentTime,...s===void 0?{}:{duration:s},readyState:o.readyState,paused:o.paused},re.refFor(o))})};for(let r of Object.values(Cu))document.addEventListener(r,n,{capture:!0,signal:t.signal});return()=>t.abort()}M();var et={CONNECT:"connect",DOM_OBSERVER:"dom_observer",NETWORK_OBSERVER:"network_observer",CONSOLE_OBSERVER:"console_observer",IPC_OBSERVER:"ipc_observer",HEALTH_OBSERVER:"health_observer",ROUTER_OBSERVER:"router_observer",ANIMATION_OBSERVER:"animation_observer",STORE_ADAPTER:"store_adapter",SNAPSHOT:"snapshot",ACTION:"action",COMMAND:"command",RECORDER:"recorder",TRANSPORT:"transport",TEARDOWN:"teardown"},pZ=500;function qS(e,t,n){try{let r=n instanceof Error?n.message:String(n);e(w.SDK_FAILED,{site:t,message:r.slice(0,pZ),...n instanceof Error?{errorType:n.constructor.name.slice(0,64)}:{}})}catch{}}function pt(e,t,n){try{return n()}catch(r){return qS(e,t,r),()=>{}}}function yz(e,t){for(let n of t)try{n()}catch(r){qS(e,et.TEARDOWN,r)}}function wz(e,t){return[pt(e,et.NETWORK_OBSERVER,()=>ez(e,{captureBodies:t.captureBodies,...t.captureErrorBodies===void 0?{}:{captureErrorBodies:t.captureErrorBodies},reinterpret:rz,ignore:oz})),pt(e,et.IPC_OBSERVER,()=>iz(e,{captureBodies:t.captureBodies})),pt(e,et.ANIMATION_OBSERVER,()=>cz(e)),pt(e,et.ROUTER_OBSERVER,()=>bC(e)),pt(e,et.NETWORK_OBSERVER,()=>lz(e)),pt(e,et.NETWORK_OBSERVER,()=>dz(e)),pt(e,et.CONSOLE_OBSERVER,()=>mz(e)),pt(e,et.CONSOLE_OBSERVER,()=>gz(e)),pt(e,et.ANIMATION_OBSERVER,()=>Ez(e)),pt(e,et.DOM_OBSERVER,()=>_z(e)),pt(e,et.DOM_OBSERVER,()=>Rk(e)),pt(e,et.STORE_ADAPTER,()=>X$(e)),pt(e,et.STORE_ADAPTER,()=>$k(e)),pt(e,et.DOM_OBSERVER,()=>kk(e)),pt(e,et.DOM_OBSERVER,()=>l$(e)),pt(e,et.NETWORK_OBSERVER,()=>Kk(e,{capturePreview:t.captureBodies})),pt(e,et.DOM_OBSERVER,()=>Dk(e)),pt(e,et.HEALTH_OBSERVER,()=>xz(e)),pt(e,et.DOM_OBSERVER,()=>Zk(e)),pt(e,et.DOM_OBSERVER,()=>Az(e)),pt(e,et.DOM_OBSERVER,()=>q$(e))]}Ot();md();ur();var fZ=["position:fixed","bottom:8px","right:8px","z-index:2147483647","font:11px ui-monospace,SFMono-Regular,Menlo,monospace","background:#151823","color:#e6e9f0","border:1px solid #2a2f3d","border-radius:8px","padding:6px 10px","pointer-events:none","opacity:0.85"].join(";");function vz(){let e=document.createElement("div");return e.setAttribute("data-reticle-overlay",""),e.style.cssText=fZ,e.textContent="Reticle: connecting\u2026",document.body.appendChild(e),{update:t=>{e.textContent=`Reticle ${t.connected?"\u25CF":"\u25CB"} ${String(t.events)} events`},destroy:()=>{e.remove()}}}JS();QS();M();gt();Et();function Zn(e,t=""){return typeof e=="string"?e:t}function oi(e){let t=Zn(e);return t===""?void 0:t}function _m(e){let t=re.resolve(e);if(!(t instanceof Element))return e;let n=ho(t);return n.name.length>0?`${n.role} "${n.name}"`:`${n.role} (${e})`}function Nz(e){switch(e){case H.ACT:case H.ACT_SEQUENCE:return ct.ACTING;case H.SNAPSHOT:case H.QUERY:case H.MATCH:case H.INSPECT:case H.ANIMATIONS:case H.STATE_READ:case H.CAPABILITIES:return ct.READING;default:return ct.IDLE}}function Rz(e,t={}){var n;switch(e){case H.SNAPSHOT:return"Looking at the page";case H.QUERY:case H.MATCH:{let r=e===H.MATCH?(n=t.query)!=null?n:{}:t,o=hZ(r);return o!==void 0?`Finding ${o}`:"Finding an element"}case H.INSPECT:{let r=oi(t.ref);return r!==void 0?`Inspecting ${_m(r)}`:"Inspecting an element"}case H.ANIMATIONS:return"Reading animations";case H.STATE_READ:{let r=oi(t.store);return r!==void 0?`Reading state: ${r}`:"Reading state"}case H.CAPABILITIES:return"Reading capabilities";default:return e}}function hZ(e){var o,i,s,a;let t=(o=oi(e.testid))!=null?o:at.TESTID===Zn(e.by)?oi(e.value):void 0;if(t!==void 0)return`[testid=${t}]`;let n=oi(e.name),r=(a=(s=(i=oi(e.value))!=null?i:oi(e.text))!=null?s:oi(e.label))!=null?a:oi(e.role);return r!==void 0?n!==void 0?`"${r}" (${n})`:`"${r}"`:n!==void 0?`"${n}"`:void 0}gd();Ot();M();M();ud();Et();nt();Ki();var Oz=["position:fixed","top:8px","left:50%","transform:translateX(-50%)","z-index:2147483647","display:flex","gap:6px","align-items:center","flex-wrap:wrap","max-width:90vw","font:12px ui-sans-serif,system-ui,sans-serif","background:#151823","color:#e6e9f0","border:1px solid #2a2f3d","border-radius:10px","padding:6px 10px","box-shadow:0 8px 30px rgba(0,0,0,.5)"].join(";"),Sm=["font:inherit","cursor:pointer","background:#262b3a","color:#e6e9f0","border:1px solid #3a4151","border-radius:7px","padding:3px 9px"].join(";"),eT=["font:inherit","background:#0e1018","color:#e6e9f0","border:1px solid #3a4151","border-radius:7px","padding:3px 8px"].join(";"),Iz=["opacity:.75","margin-left:4px"].join(";"),Cz=["display:flex","gap:6px","align-items:center","flex-wrap:wrap"].join(";");var mZ="recorded 0 steps",gZ="recording\u2026",Lz="ready",EZ="pick an annotation",bZ=sc.ACT,tT={record:"Record",stop:"Stop",annotate:"Annotate"},_Z={[je.ASSERT_SIGNAL]:"assert signal",[je.ASSERT_VISIBLE]:"assert visible",[je.ASSERT_STATE]:"assert state",[je.ASSERT_NET]:"assert request",[je.MARK_DYNAMIC]:"mark dynamic",[je.SUCCESS_STATE]:"success state",[je.INTENT]:"intent"},SZ=new Set([je.ASSERT_SIGNAL,je.SUCCESS_STATE]),TZ="recorded-flow";function zz(e){let t=Ne(e);if(t!==null&&t.length>0)return{anchor:{kind:nr.TESTID,value:t},degraded:!1};let n=Le(e),r=we(e);return n!=="generic"&&(n.length>0||r.length>0)?{anchor:r.length>0?{kind:nr.ROLE,role:n,name:r}:{kind:nr.ROLE,role:n},degraded:!1}:{anchor:{kind:nr.ROLE,role:gR},degraded:!0}}function $z(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement&&zd(e)==="textbox"}function zd(e){let t=e.type.toLowerCase();return t==="checkbox"?"checkbox":t==="radio"?"radio":["text","email","tel","url","search","password",""].includes(t)?"textbox":"other"}function qc(e,t,n){let{anchor:r,degraded:o}=zz(e),i={tool:bZ,anchor:r,action:t};n!==void 0&&(i.args=n),o&&(i.degraded=!0);let s=ld(e);return s!==void 0&&(i.source=s.line===void 0?{file:s.file}:{file:s.file,line:s.line}),i}function xZ(e,t,n,r,o){let i=t.map(u=>({...u})),s=[],a;for(let u of n){if(u.kind===je.MARK_DYNAMIC){s.push(u.anchor);continue}if(u.kind===je.SUCCESS_STATE){u.signal!==void 0&&(a={kind:z.SIGNAL,name:u.signal});continue}let d=i.at(-1);d!==void 0&&(u.kind===je.ASSERT_SIGNAL&&u.signal!==void 0?d.expect=kz(d.expect,{kind:z.SIGNAL,name:u.signal}):u.kind===je.ASSERT_VISIBLE&&(d.expect=kz(d.expect,{kind:z.ELEMENT,query:AZ(u.anchor)})))}let l={version:db,name:e,createdAt:r,steps:i};return o!==void 0&&o.length>0&&(l.startPath=o),s.length>0&&(l.dynamic=s),a!==void 0&&(l.success=a),l}function kz(e,t){return e===void 0?t:e.kind===z.ALL_OF?{kind:z.ALL_OF,predicates:[...e.predicates,t]}:{kind:z.ALL_OF,predicates:[e,t]}}function AZ(e){return e.kind===nr.TESTID?{testid:e.value}:e.kind===nr.ROLE?e.name!==void 0?{role:e.role,name:e.name}:{role:e.role}:{}}var ea,hr,mn,Md,ts,ii,Jc,ns,ta,bo,Pr,W,Dz,Dd,Pz,Mz,Uz,Hz,es,Fz,Bz,rT,Gz,Vz,jz,Qs,Kz,Tm,Zz,Wz,Pd,xm,Yz,nT=class{constructor(t){x(this,W);x(this,ea);x(this,hr,on.IDLE);x(this,mn,[]);x(this,Md);x(this,ts,[]);x(this,ii);x(this,Jc);x(this,ns);x(this,ta);x(this,bo);x(this,Pr);g(this,ea,t)}phase(){return c(this,hr)}steps(){return c(this,mn).map(t=>({...t}))}mount(){c(this,ns)===void 0&&typeof document!="undefined"&&(T(this,W,Kz).call(this),T(this,W,Dz).call(this))}destroy(){var t,n;(t=c(this,Jc))==null||t.abort(),g(this,Jc,void 0),(n=c(this,ns))==null||n.remove(),g(this,ns,void 0),g(this,ta,void 0),g(this,bo,void 0),g(this,hr,on.IDLE),g(this,mn,[]),g(this,ts,[]),g(this,Pr,void 0),g(this,ii,void 0)}};ea=new WeakMap,hr=new WeakMap,mn=new WeakMap,Md=new WeakMap,ts=new WeakMap,ii=new WeakMap,Jc=new WeakMap,ns=new WeakMap,ta=new WeakMap,bo=new WeakMap,Pr=new WeakMap,W=new WeakSet,Dz=function(){let t=new AbortController;g(this,Jc,t);let n={capture:!0,signal:t.signal};document.addEventListener("click",r=>T(this,W,Pz).call(this,r),n),document.addEventListener("input",r=>T(this,W,Mz).call(this,r),n),document.addEventListener("change",r=>T(this,W,Uz).call(this,r),n),document.addEventListener("submit",r=>T(this,W,Hz).call(this,r),n)},Dd=function(t){let n=t.target;if(n instanceof Element&&!Rt(n))return n},Pz=function(t){let n=T(this,W,Dd).call(this,t);if(n!==void 0){if(c(this,hr)===on.ANNOTATING){T(this,W,Fz).call(this,n);return}c(this,hr)===on.RECORDING&&(n instanceof HTMLInputElement&&(zd(n)==="checkbox"||zd(n)==="radio")||n instanceof HTMLSelectElement||(T(this,W,es).call(this),c(this,mn).push(qc(n,D.CLICK))))}},Mz=function(t){if(c(this,hr)!==on.RECORDING)return;let n=T(this,W,Dd).call(this,t);n===void 0||!$z(n)||g(this,ii,{el:n,value:n.value})},Uz=function(t){if(c(this,hr)!==on.RECORDING)return;let n=T(this,W,Dd).call(this,t);if(n!==void 0){if(n instanceof HTMLInputElement&&zd(n)==="checkbox"){T(this,W,es).call(this),c(this,mn).push(qc(n,n.checked?D.CHECK:D.UNCHECK));return}if(n instanceof HTMLInputElement&&zd(n)==="radio"){T(this,W,es).call(this),c(this,mn).push(qc(n,D.CHECK));return}if(n instanceof HTMLSelectElement){T(this,W,es).call(this),c(this,mn).push(qc(n,D.SELECT,{value:n.value}));return}$z(n)&&(g(this,ii,{el:n,value:n.value}),T(this,W,es).call(this))}},Hz=function(t){if(c(this,hr)!==on.RECORDING)return;let n=T(this,W,Dd).call(this,t);n!==void 0&&(T(this,W,es).call(this),c(this,mn).push(qc(n,D.SUBMIT)))},es=function(){let t=c(this,ii);if(t===void 0)return;g(this,ii,void 0);let n=pn(t.el)?ve:t.value;c(this,mn).push(qc(t.el,D.FILL,{value:n}))},Fz=function(t){let n=c(this,Pr);if(n===void 0)return;let{anchor:r}=zz(t),o={kind:n.kind,anchor:r},i=T(this,W,rT).call(this);i!==void 0&&(o.signal=i),c(this,ts).push(o),g(this,Pr,void 0),T(this,W,Qs).call(this,on.RECORDING),T(this,W,Pd).call(this)},Bz=function(){let t=c(this,Pr);if(t===void 0)return;let n=c(this,mn).at(-1);if(n===void 0){g(this,Pr,void 0),T(this,W,Qs).call(this,on.RECORDING),T(this,W,Pd).call(this);return}let r={kind:t.kind,anchor:n.anchor},o=T(this,W,rT).call(this);o!==void 0&&(r.signal=o),c(this,ts).push(r),g(this,Pr,void 0),T(this,W,Qs).call(this,on.RECORDING),T(this,W,Pd).call(this)},rT=function(){var r,o;let t=(r=c(this,bo))==null?void 0:r.querySelector("[data-reticle-signal]"),n=(o=t==null?void 0:t.value)!=null?o:"";return n.length>0?n:void 0},Gz=function(){g(this,mn,[]),g(this,Md,typeof location=="undefined"?void 0:location.pathname),g(this,ts,[]),g(this,ii,void 0),g(this,Pr,void 0),T(this,W,Qs).call(this,on.RECORDING),T(this,W,xm).call(this,gZ)},Vz=function(){var r,o;T(this,W,es).call(this);let t=(o=(r=T(this,W,Yz).call(this))!=null?r:c(this,ea).defaultName)!=null?o:TZ,n=xZ(t,c(this,mn),c(this,ts),c(this,ea).now(),c(this,Md));c(this,ea).emit(w.FLOW_RECORDED,{name:t,flow:n}),T(this,W,xm).call(this,c(this,mn).length===0?mZ:Lz),T(this,W,Qs).call(this,on.IDLE),T(this,W,Pd).call(this)},jz=function(){c(this,hr)===on.RECORDING&&(T(this,W,Qs).call(this,on.ANNOTATING),T(this,W,xm).call(this,EZ),T(this,W,Zz).call(this))},Qs=function(t){g(this,hr,t)},Kz=function(){let t=document.createElement("div");t.setAttribute("data-reticle-overlay",""),t.style.cssText=Oz;let n=document.createElement("input");n.setAttribute("data-reticle-name",""),n.setAttribute("placeholder","flow name"),n.style.cssText=eT,t.appendChild(n),t.appendChild(T(this,W,Tm).call(this,"record",tT.record,()=>T(this,W,Gz).call(this))),t.appendChild(T(this,W,Tm).call(this,"stop",tT.stop,()=>T(this,W,Vz).call(this))),t.appendChild(T(this,W,Tm).call(this,"annotate",tT.annotate,()=>T(this,W,jz).call(this)));let r=document.createElement("span");r.setAttribute("data-reticle-status",""),r.style.cssText=Iz,r.textContent=Lz,t.appendChild(r);let o=document.createElement("div");o.setAttribute("data-reticle-menu",""),o.style.cssText=Cz,t.appendChild(o),document.body.appendChild(t),g(this,ns,t),g(this,ta,r),g(this,bo,o)},Tm=function(t,n,r){let o=document.createElement("button");return o.setAttribute("data-reticle-action",t),o.textContent=n,o.style.cssText=Sm,o.addEventListener("click",r),o},Zz=function(){let t=c(this,bo);if(t!==void 0){t.textContent="";for(let n of Object.values(je)){if(n===je.INTENT)continue;let r=document.createElement("button");r.setAttribute("data-reticle-annkind",n),r.textContent=_Z[n],r.style.cssText=Sm,r.addEventListener("click",()=>T(this,W,Wz).call(this,n)),t.appendChild(r)}}},Wz=function(t){g(this,Pr,{kind:t});let n=c(this,bo);if(n===void 0)return;if(SZ.has(t)){let o=document.createElement("select");o.setAttribute("data-reticle-signal",""),o.style.cssText=eT;for(let i of ji().signals){let s=document.createElement("option");s.value=i,s.textContent=i,o.appendChild(s)}n.appendChild(o)}let r=document.createElement("button");r.setAttribute("data-reticle-action","annotate-confirm"),r.textContent="on prior step",r.style.cssText=Sm,r.addEventListener("click",()=>T(this,W,Bz).call(this)),n.appendChild(r)},Pd=function(){c(this,bo)!==void 0&&(c(this,bo).textContent="")},xm=function(t){c(this,ta)!==void 0&&(c(this,ta).textContent=t)},Yz=function(){var r,o;let t=(r=c(this,ns))==null?void 0:r.querySelector("[data-reticle-name]"),n=(o=t==null?void 0:t.value.trim())!=null?o:"";return n.length>0?n:void 0};function Xz(e){return new nT(e)}gT();M();function wD(e){return{...e.env===void 0?{}:{env:e.env},...e.scope===void 0?{}:{scope:e.scope},...e.injected===!0?{instrumentation:oh.INJECTED}:{}}}function vD(e,t){return e==="production"&&!t}function ND(e,t){let n=e.token;if(!(e.lease!==!0||n===void 0||n.length===0||n===t))return n}function BW(e){let t;try{t=new URL(e)}catch{return{url:e,adjusted:!1}}return t.protocol!=="ws:"&&t.protocol!=="wss:"||t.pathname!==""&&t.pathname!=="/"?{url:e,adjusted:!1}:(t.pathname=zs,{url:t.toString(),adjusted:!0})}function GW(e,t,n,r,o="http:"){var l;let i;try{i=new URL(t)}catch{return{allowed:!1,reason:"invalid Reticle bridge URL"}}if(i.protocol!=="ws:"&&i.protocol!=="wss:")return{allowed:!1,reason:"Reticle bridge URL must use ws:// or wss://"};if(((l=r==null?void 0:r.length)!=null?l:0)>Z.MAX_TOKEN_LENGTH)return{allowed:!1,reason:`Reticle pairing token exceeds ${String(Z.MAX_TOKEN_LENGTH)} characters`};let s=!c_(i.hostname);return s&&i.protocol!=="wss:"?{allowed:!1,reason:"a non-local Reticle bridge must use wss://"}:!sI(o,e)||s?n?r===void 0||r.length===0?{allowed:!1,reason:"a pairing token is required outside localhost"}:{allowed:!0}:{allowed:!1,reason:"Reticle is disabled outside localhost unless allowNonLocalhost is explicitly enabled"}:{allowed:!0}}var VW=20,jW="[Reticle] killed for this page. Restart your dev server or reload the page to bring it back.",KW="Session ended - lost connection to Reticle (the agent is no longer running).";function ZW(e,t){return e===void 0||e===Fu?t():e}function WW(){try{let e=new URL(window.location.href);if(!e.searchParams.has(cm))return;e.searchParams.delete(cm),window.history.replaceState(window.history.state,"",e.toString())}catch{}}function aA(e){let t=new URLSearchParams(e),n={},r=t.get(rr.SESSION),o=t.get(rr.PROJECT),i=cA(Bn,t.get(rr.HUD));return r!==null&&r.length>0&&(n.session=r),o!==null&&o.length>0&&(n.projectId=o),i!==void 0&&(n.hud=i),n}function YW(e){return e===void 0?{placed:[]}:{remember:e,placed:Bn.SHOWN===e?[]:[e]}}function Y2(e,t){var i;let n=aA(t),r=e.session!==void 0&&e.session!==Fu?e.session:void 0,o=(i=e.projectId)!=null?i:n.projectId;return{session:r!=null?r:n.session,projectId:o!==void 0&&o.length>0?o:void 0}}function XW(e){return{t:e.t,seq:e.seq,type:e.type,sessionId:e.sessionId,ref:e.ref,documentId:e.documentId,editEpoch:0===e.editEpoch?void 0:e.editEpoch,data:e.data}}var no,jp,Ga,Do,Va,Vg,Kp,As,Ue,su,ja,Ai,Zp,au,Wp,Ka,Po,cu,ys,Yp,ws,lu,Za,Mo,uu,yi,$n,q2,Uo,J2,Q2,e5,t5,n5,du=class{constructor(){x(this,$n);x(this,no);x(this,jp,new Map);x(this,Ga,[]);x(this,Do,!1);x(this,Va,"default");x(this,Vg,WO(Math.random));x(this,Kp,0);x(this,As);x(this,Ue);x(this,su,new Map);x(this,ja,[]);x(this,Ai);x(this,Zp);x(this,au,!1);x(this,Wp,!1);x(this,Ka);x(this,Po);x(this,cu,0);x(this,ys);x(this,Yp,{});x(this,ws);x(this,lu,!1);x(this,Za);x(this,Mo);x(this,uu,[]);x(this,yi);x(this,Uo,(t,n,r)=>{var i,s,a;let o=XW({seq:c(this,cu),t:Math.round(performance.now()-c(this,Kp)),type:t,sessionId:c(this,Va),documentId:c(this,Vg),editEpoch:fd.current,data:n,ref:r});try{(i=c(this,no))==null||i.sendEvent(o),g(this,cu,c(this,cu)+1),(s=c(this,As))==null||s.update({connected:!0,events:c(this,cu)}),t===w.ROUTE_CHANGE&&((a=c(this,Ue))==null||a.refilterFlows())}catch{}})}connect(t={}){var f,m,h,E,_,A,v;if(c(this,Do)){let N=ND(t,c(this,ys));N!==void 0&&(g(this,ys,N),(f=c(this,no))==null||f.redialAfterRefusal()),T(this,$n,Q2).call(this,t);return}if(typeof window=="undefined"||typeof document=="undefined")return;let n=globalThis.process,r=(m=n==null?void 0:n.env)==null?void 0:m.NODE_ENV;if(vD(r,t.allowInProduction===!0)){globalThis.console.warn("[Reticle] disabled in production (NODE_ENV=production). Gate the import behind import.meta.env.DEV, or pass allowInProduction:true to override.");return}WW();let o=BW((h=t.url)!=null?h:TR(fb)),i=o.url;o.adjusted&&globalThis.console.warn(`[Reticle] bridge URL has no path; using ${i} (the bridge only accepts WebSocket upgrades on ${zs}).`);let s=GW(window.location.hostname,i,t.allowNonLocalhost===!0,t.token,window.location.protocol);if(!s.allowed){globalThis.console.warn(`[Reticle] ${(E=s.reason)!=null?E:"connection blocked"}`);return}t.root!==void 0&&t.root.length>0&&(globalThis[qf]=t.root);let a=(_=t.sdkVersion)!=null?_:globalThis[TO];g(this,ws,typeof a=="string"&&a.length>0?a:void 0);let l=Y2(t,window.location.search),u=ZW(l.session,()=>"");g(this,Va,MC(u.length>0?u:void 0,typeof globalThis.sessionStorage=="undefined"?void 0:globalThis.sessionStorage,()=>{var N;return typeof((N=globalThis.crypto)==null?void 0:N.randomUUID)=="function"?`s${globalThis.crypto.randomUUID()}`:`s${Date.now().toString(36)}`})),g(this,ys,t.token!==void 0&&t.token.length>0?t.token:void 0),g(this,Mo,l.projectId),g(this,Yp,wD(t)),T(this,$n,J2).call(this,t.redact),g(this,Kp,performance.now()),g(this,jp,fk()),g(this,no,new um({url:i,hello:()=>T(this,$n,e5).call(this),handleCommand:N=>T(this,$n,t5).call(this,N),onConnected:()=>{var N;g(this,Wp,!0),(N=c(this,Ue))==null||N.sessionStart()},onConnectionLost:()=>{var N;Uc(),((N=c(this,Ue))==null?void 0:N.sessionActive)===!0&&c(this,Ue).setState(Xe.ENDED,KW)},onUnreachable:({url:N,attempts:O})=>{var k;zr(pm(N,O)),(k=c(this,Ue))==null||k.showUnreachable(N,O)}})),Ph(()=>{var N;return(N=c(this,no))==null?void 0:N.reannounce()}),cC(t.exposePresenter===!0),_C(t.testIdAttribute),t.networkBodyMaxChars!==void 0&&Vk(t.networkBodyMaxChars);let d=c(this,Uo);g(this,lu,t.captureNetworkBodies===!0),g(this,Za,typeof t.sourceMapping=="boolean"?t.sourceMapping:void 0),g(this,Ga,wz(d,{captureBodies:c(this,lu),...t.captureErrorBodies===void 0?{}:{captureErrorBodies:t.captureErrorBodies}})),t.overlay===!0&&(g(this,As,vz()),c(this,As).update({connected:!0,events:0})),g(this,Ai,aA(window.location.search).hud),t.present!==!1&&Bn.REMOVED!==c(this,Ai)&&T(this,$n,q2).call(this,t),t.recorder===!0&&(g(this,Ka,Xz({emit:d,now:()=>Date.now()})),c(this,Ka).mount()),((A=t.annotate)!=null?A:t.present!==!1)&&(g(this,Po,new da({emit:d,now:()=>Date.now(),onMark:N=>{var O;return(O=c(this,Ue))==null?void 0:O.log(Ge.HUMAN,`\u{1F6A9} #${String(N.index)} ${N.label}${N.source!==void 0?` \xB7 ${N.source}`:""} \u2014 ${N.note}`)},shouldBlock:()=>{var N,O;return(O=(N=c(this,Zp))==null?void 0:N.call(this).blockPageInteractions)!=null?O:!0}})),c(this,Po).mount(),(v=c(this,Ue))==null||v.bindAnnotator(c(this,Po))),c(this,no).connect(),g(this,Do,!0)}get connected(){return c(this,Do)}routes(t){EC(t)}signal(t,n={}){c(this,Uo).call(this,w.SIGNAL,{name:t,data:n})}busy(t){return hC(t,(n,r)=>{this.signal(n,r)})}state(t,n){c(this,Uo).call(this,w.STATE_CHANGE,{name:t,value:n})}renderCommit(t){t>0&&c(this,Uo).call(this,w.RENDER_COMMIT,{commits:t})}describe(t){Ic(t)}endSession(){var t;(t=c(this,Ue))==null||t.setState(Xe.ENDED)}observeHotUpdates(t){fd.observe(t)}disconnect(){var t,n,r,o,i,s;c(this,Do)&&(yz(c(this,Uo),c(this,Ga)),g(this,Ga,[]),(t=c(this,no))==null||t.close(),g(this,no,void 0),(n=c(this,As))==null||n.destroy(),g(this,As,void 0),(r=c(this,Ue))==null||r.sessionEnd(),(o=c(this,Ue))==null||o.destroy(),g(this,Ue,void 0),(i=c(this,Ka))==null||i.destroy(),g(this,Ka,void 0),(s=c(this,Po))==null||s.destroy(),g(this,Po,void 0),Uc(),g(this,Do,!1))}};no=new WeakMap,jp=new WeakMap,Ga=new WeakMap,Do=new WeakMap,Va=new WeakMap,Vg=new WeakMap,Kp=new WeakMap,As=new WeakMap,Ue=new WeakMap,su=new WeakMap,ja=new WeakMap,Ai=new WeakMap,Zp=new WeakMap,au=new WeakMap,Wp=new WeakMap,Ka=new WeakMap,Po=new WeakMap,cu=new WeakMap,ys=new WeakMap,Yp=new WeakMap,ws=new WeakMap,lu=new WeakMap,Za=new WeakMap,Mo=new WeakMap,uu=new WeakMap,yi=new WeakMap,$n=new WeakSet,q2=function(t){c(this,au)||(g(this,au,!0),Promise.resolve().then(()=>(C2(),I2)).then(({Presenter:n})=>Promise.resolve().then(()=>(gl(),K1)).then(r=>({Presenter:n,settings:r}))).then(({Presenter:n,settings:r})=>{if(!c(this,Do))return;g(this,Zp,r.getPresenterSettings);let o={};t.pace!==void 0&&(o.paceMs=t.pace),t.narrationDwellMs!==void 0&&(o.narrationDwellMs=t.narrationDwellMs),t.border!==void 0&&(o.border=t.border),t.logMax!==void 0&&(o.logMax=t.logMax),t.endedFadeMs!==void 0&&(o.endedFadeMs=t.endedFadeMs),t.idleEndMs!==void 0&&(o.idleEndMs=t.idleEndMs),o.sessionId=c(this,Va),c(this,Mo)!==void 0&&(o.projectId=c(this,Mo)),o.onControl=s=>c(this,Uo).call(this,w.HUMAN_CONTROL,s.text!==void 0?{kind:s.kind,text:s.text}:{kind:s.kind}),o.onHudUse=s=>c(this,Uo).call(this,w.HUD_USED,{...s}),o.onKill=()=>{this.disconnect(),zr(jW)};let i=new n(o);g(this,Ue,i),i.mount(),i.showSdkVersion(c(this,ws));for(let s of c(this,su).values())i.handlePush(s);c(this,su).clear(),0<c(this,ja).length&&i.sessionStart();for(let s of c(this,ja).splice(0))i.narrate(s.text,s.level,s.actor,s.summary);c(this,Ai)!==void 0&&i.placeHud(c(this,Ai),void 0),g(this,Ai,void 0),Promise.resolve().then(()=>(W2(),Z2)).then(s=>{var l;if(!c(this,Do))return;let a=s.mountTour({document,storage:s.safeLocalStorage(),projectId:(l=aA(window.location.search).projectId)!=null?l:window.location.origin,isDriving:()=>ct.IDLE!==i.mode,search:window.location.search,navigator,copy:u=>{var d,f;return(f=(d=navigator.clipboard)==null?void 0:d.writeText(u).then(()=>!0,()=>!1))!=null?f:!1},select:u=>{let d=window.getSelection();if(d===null)return;let f=document.createRange();f.selectNodeContents(u),d.removeAllRanges(),d.addRange(f)}});a!==void 0&&c(this,Ga).push(a.destroy)}),c(this,Wp)&&i.sessionStart(),c(this,Po)!==void 0&&i.bindAnnotator(c(this,Po))}).catch(()=>{}))},Uo=new WeakMap,J2=function(t){QO(JO(t,zr)),g(this,uu,eI(t))},Q2=function(t){var r;if(c(this,Mo)!==void 0)return;let n=Y2(t,window.location.search).projectId;n!==void 0&&(g(this,Mo,n),(r=c(this,no))==null||r.reannounce())},e5=function(){return{kind:sn.HELLO,protocolVersion:Mf,sessionId:c(this,Va),...c(this,Mo)===void 0?{}:{projectId:c(this,Mo)},url:Oh(),title:io(document.title),adapters:hd(),...c(this,ys)===void 0?{}:{token:c(this,ys)},...c(this,Yp),hasCapabilities:Mh(),channels:_k(),platform:Sk(),commands:Tk(),captureBodies:c(this,lu),...c(this,Za)===void 0?{}:{sourceMapping:c(this,Za)},...c(this,ws)===void 0?{}:{sdkVersion:c(this,ws)},contract:O_,contractParts:{commands:[...Qu.commands],events:[...Qu.events],actions:[...Qu.actions]},...c(this,uu).length===0?{}:{redactKeys:c(this,uu)}}},t5=async function(t){var r,o,i,s,a,l,u,d;if(t.name===H.MARKERS){let f=zC(document),m=c(this,ws)!==void 0||c(this,Za)!==void 0,h=DC({buildPlugin:m,adapters:hd(),markers:f});return{ok:!0,result:{markers:f,...h.length===0?{}:{notApplicable:h}}}}if(t.name===H.NARRATE)return c(this,Ue)===void 0&&c(this,au)?(c(this,ja).length<VW&&c(this,ja).push({text:Zn(t.args.text),level:Zn(t.args.level,"info"),actor:X2(t.args),summary:t.args.summary===!0}),{ok:!0,result:{shown:!1,buffered:!0}}):((r=c(this,Ue))==null||r.sessionStart(),(o=c(this,Ue))==null||o.narrate(Zn(t.args.text),Zn(t.args.level,"info"),X2(t.args),t.args.summary===!0),{ok:!0,result:{shown:c(this,Ue)!==void 0}});if(t.name===H.SESSION_CONFIG){let f=t.args.idleEndMs;typeof f=="number"&&((i=c(this,Ue))==null||i.setIdleEndMs(f));let m=cA(Bn,t.args.hud),h=cA(Jf,t.args.corner),E=c(this,Ue),_;if(E!==void 0)_=E.placeHud(m,h);else{let A=YW(m);A.remember!==void 0&&g(this,Ai,A.remember),_=A.placed}return{ok:!0,result:{applied:c(this,Ue)!==void 0,idleEndMs:f,...0<_.length?{hud:_}:{}}}}if(t.name===H.PRESENTER||t.name===H.FLOWS||t.name===H.FLOW_PROGRESS||t.name===H.PLAN||t.name===H.IMPACT)return c(this,Ue)===void 0?(c(this,su).set(t.name,t),{ok:!0,result:{applied:!1,buffered:!0}}):(c(this,Ue).handlePush(t),{ok:!0,result:{applied:!0}});let n=c(this,jp).get(t.name);if(n===void 0)return{ok:!1,error:`unknown command '${t.name}'`};(s=c(this,Ue))==null||s.sessionStart(),await T(this,$n,n5).call(this,t),B_(Ku.HARNESS===t.by),Y_((a=t.outward)==null?void 0:a.allowed);try{let f=await n(t.args);return(l=c(this,yi))==null||l.result(Kn.PASS),{ok:!0,result:f}}catch(f){return(u=c(this,yi))==null||u.result(Kn.FAIL),{ok:!1,error:f instanceof Error?f.message:String(f)}}finally{B_(!1),Y_(void 0),g(this,yi,void 0),(d=c(this,Ue))==null||d.scheduleIdle()}},n5=async function(t){let n=c(this,Ue);if(n===void 0)return;n.setMode(Nz(t.name)),g(this,yi,void 0);let r=Ku.HARNESS===t.by?hn.HARNESS:hn.AGENT;if(t.name===H.ACT){let o=Zn(t.args.ref),i=_m(o);g(this,yi,n.log(Ge.ACT,`${kd(Zn(t.args.action))} ${i}`,void 0,r)),await n.beforeAct(o,Zn(t.args.action),i)}else if(t.name===H.ACT_SEQUENCE){let o=Array.isArray(t.args.steps)?t.args.steps:[];for(let i of o){let s=i,a=Zn(s.ref),l=_m(a);g(this,yi,n.log(Ge.ACT,`${kd(Zn(s.action))} ${l}`,void 0,r)),await n.beforeAct(a,Zn(s.action),l)}}else{let o=Rz(t.name,t.args);n.status(o),n.log(Ge.READ,o,void 0,r)}};function X2(e){return Ku.HARNESS===e.actor?hn.HARNESS:hn.AGENT}function cA(e,t){return Object.values(e).includes(t)?t:void 0}var lA=globalThis,r5,pu=(r5=lA.__reticleInstance)!=null?r5:lA.__reticleInstance=new du;M();nt();Qo();Ys();gd();Ys();function s5(e){try{return uA(e,new WeakMap)}catch{return e}}function uA(e,t){if(typeof e!="object"||e===null)return e;let n=t.get(e);if(n!==void 0)return n;if(Array.isArray(e)){let i=[];t.set(e,i);for(let s of e)i.push(uA(s,t));return i}let r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null)return e;let o={};t.set(e,o);for(let[i,s]of Object.entries(e))o[i]=uA(s,t);return o}function qW(e){return typeof e!="object"||e===null?String(e):JSON.stringify(e,(t,n)=>{if(typeof n!="object"||n===null||Array.isArray(n))return n;let r=Object.getPrototypeOf(n);if(r!==Object.prototype&&r!==null)return n;let o=n,i={};for(let s of Object.keys(o).sort())i[s]=o[s];return i})}function a5(e){let t={getState:()=>{var r,o,i;let n={};for(let s of e.getQueryCache().getAll()){let a=s.queryKey.map(qW).join("/");n[a]={status:s.state.status,fetchStatus:s.state.fetchStatus,isStale:(r=s.isStale)==null?void 0:r.call(s),isInvalidated:s.state.isInvalidated,dataUpdatedAt:s.state.dataUpdatedAt,error:(i=(o=s.state.error)==null?void 0:o.message)!=null?i:null,data:s.state.data}}return n},subscribe:n=>e.getQueryCache().subscribe(n)};return kh(t,e),t}function c5(e,t){return{getState:()=>{let n={};for(let[r,o]of Object.entries(t))n[r]=e.get(o);return n},subscribe:n=>{let r=Object.values(t).map(o=>e.sub(o,n));return()=>{for(let o of r)o()}}}}function l5(e){return{getState:()=>e.getSnapshot(),subscribe:t=>{let n=e.subscribe(t);return()=>n.unsubscribe()}}}function u5(e,t,n){return{getState:()=>t(e),subscribe:r=>n(e,r)}}function d5(e,t,n){return{getState:()=>t(e),subscribe:r=>n(()=>t(e),()=>r())}}var o5={HAS_VALUE:"hasValue",LOADING:"loading",HAS_ERROR:"hasError"};function JW(e){if(e.state===o5.HAS_ERROR){let t=e.contents;return{status:e.state,value:null,error:t instanceof Error?t.message:String(t)}}return e.state!==o5.HAS_VALUE?{status:e.state,value:null,error:null}:{status:e.state,value:e.contents,error:null}}function p5(e,t,n){return{getState:()=>{let r=t(),o={};for(let[i,s]of Object.entries(e))o[i]=JW(r.getLoadable(s));return o},subscribe:n}}function i5(e){if(typeof e=="function"){e();return}e.unsubscribe()}function f5(e,t=zr){let n=!1;return{getState:()=>{let r,o=!1;return i5(e.subscribe(i=>{r=s5(i),o=!0})),!o&&!n&&(n=!0,t("[reticle] a store passed to svelteStore did not call its subscriber synchronously, so its current value cannot be read. reticle_state will report undefined for it. Svelte stores always call back immediately; an RxJS Observable does not unless it is a BehaviorSubject.")),r},subscribe:r=>{let o=!0,i=e.subscribe(()=>{o||r()});return o=!1,()=>i5(i)}}}var QW={detached:!0,flush:"sync"};function h5(e){return{getState:()=>s5(e.$state),subscribe:t=>e.$subscribe(()=>t(),{...QW})}}function m5(e){let t=e,n=new Set;return{store:{getState:()=>t,subscribe:o=>(n.add(o),()=>n.delete(o))},push:o=>{t=o;for(let i of n)i()}}}Ki();function g5(e={}){var n;let t=(n=e.target)!=null?n:pu;return{signal(r,o={}){t.connected&&t.signal(r,o)},state(r,o){t.connected&&t.state(r,o)}}}function E5(e,t,n,r){let o=t();return e.signal(n,r),o}Ki();function b5(e){let t={};e.testids!==void 0&&(t.testids=[...e.testids]),e.signals!==void 0&&(t.signals=[...e.signals]),e.stores!==void 0&&(t.stores=[...e.stores]),Ic(t)}j_();Et();uo();gt();gT();oT();var eY=e=>mC((t,n)=>{pu.signal(t,n)},e);return v5(tY);})();
1836
1836
  if(typeof module==="object"&&module&&module.exports)module.exports=ReticleSdk;