@replayops/sdk 0.1.3 → 0.1.6

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.
@@ -0,0 +1,36 @@
1
+ import {record}from'rrweb';var Rn=Object.defineProperty;var Mn=(t,e)=>{for(var n in e)Rn(t,n,{get:e[n],enumerable:true});};var In={samplingRate:1,environment:"production",maskInputs:true,maskSelectors:[],ignoreSelectors:[],recordConsole:true,recordNetwork:true,recordNetworkBodies:true,recordErrors:true,capturePerformance:true,captureMemory:true,captureWebVitals:true,tracePropagation:true,tracePropagationTargets:[],live:true,liveChat:true,testerTools:true,googleAnalytics:true,batchSize:100,flushIntervalMs:5e3,maxBatchBytes:1048576,requireConsent:false,idleTimeoutMs:36e5};function Nt(t){return {...In,...t}}var Lt="ro_anon_id",$t="ro_optout",jt="ro_consent",Ht="ro_consent_marketing",ut="ro_user_id",pt="ro_user_email";function qe(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return (t==="x"?e:e&3|8).toString(16)})}var Be=class{anonymousId;userId;userTraits={};rememberedUserId;rememberedEmail;constructor(){this.anonymousId=this.load(Lt)??qe(),this.save(Lt,this.anonymousId),this.rememberedUserId=this.load(ut)??void 0,this.rememberedEmail=this.load(pt)??void 0;}identify(e,n){this.userId=e,n&&(this.userTraits={...this.userTraits,...n}),this.rememberedUserId=e,this.save(ut,e);let r=this.userTraits.email;typeof r=="string"&&r&&(this.rememberedEmail=r,this.save(pt,r));}setUserProperties(e){this.userTraits={...this.userTraits,...e};}subjects(){let e=this.userTraits.email;return [this.userId??this.rememberedUserId,(typeof e=="string"?e:void 0)??this.rememberedEmail]}forgetUser(){this.rememberedUserId=void 0,this.rememberedEmail=void 0,this.save(ut,""),this.save(pt,"");}get anonymous(){return this.anonymousId}snapshot(){return {anonymousId:this.anonymousId,userId:this.userId,userTraits:Object.keys(this.userTraits).length?this.userTraits:void 0}}isOptedOut(){return this.load($t)==="1"}optOut(){this.save($t,"1"),this.forgetUser();}setConsent(e){this.save(jt,e?"1":"0");}hasConsent(){return this.load(jt)==="1"}setMarketingConsent(e){this.save(Ht,e?"1":"0");}marketingConsent(){let e=this.load(Ht);return e==="1"?true:e==="0"?false:void 0}load(e){try{return localStorage.getItem(e)}catch{return null}}save(e,n){try{localStorage.setItem(e,n);}catch{}}};function On(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=Math.imul(e,16777619);return e>>>0}function An(t){return On(t)/4294967296}function Dt(t,e="session",n=""){return !Number.isFinite(t)||t>=1?true:t<=0?false:e==="user"&&n?An(n)<t:Math.random()<t}async function Pn(t){let e=t.trim().toLowerCase();if(!e)return null;let n=typeof crypto<"u"?crypto.subtle:void 0;if(!n)return null;try{let r=new TextEncoder().encode(e),s=await n.digest("SHA-256",r);return [...new Uint8Array(s)].map(i=>i.toString(16).padStart(2,"0")).join("")}catch{return null}}async function Ut(t,e){if(!t||t.mode==="off")return;let n=e.filter(a=>!!a&&!!a.trim());if(n.length===0)return t.mode==="allow"?false:void 0;let s=(await Promise.all(n.map(Pn))).filter(a=>a!==null);if(s.length===0)return;let i=new Set(t.hashes),o=s.some(a=>i.has(a));return t.mode==="allow"?o:!o}var I;(function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t[t.NativeFrame=7]="NativeFrame",t[t.NativeInteraction=8]="NativeInteraction";})(I||(I={}));var Le;(function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Selection=11]="Selection",t[t.StyleDeclaration=12]="StyleDeclaration",t[t.Drag=13]="Drag";})(Le||(Le={}));var Ze;(function(t){t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchEnd=9]="TouchEnd";})(Ze||(Ze={}));var N;(function(t){t.Console="replayops/console",t.Network="replayops/network",t.Performance="replayops/performance",t.WebVitals="replayops/webvitals",t.Error="replayops/error";})(N||(N={}));var Vt;(function(t){t[t.Tap=0]="Tap",t[t.DoubleTap=1]="DoubleTap",t[t.LongPress=2]="LongPress",t[t.Scroll=3]="Scroll",t[t.Swipe=4]="Swipe",t[t.ScreenChange=5]="ScreenChange",t[t.KeyboardInput=6]="KeyboardInput",t[t.Back=7]="Back";})(Vt||(Vt={}));var w={};Mn(w,{BRAND:()=>ir,DIRTY:()=>ue,EMPTY_PATH:()=>jn,INVALID:()=>h,NEVER:()=>Fr,OK:()=>L,ParseStatus:()=>P,Schema:()=>b,ZodAny:()=>de,ZodArray:()=>se,ZodBigInt:()=>fe,ZodBoolean:()=>he,ZodBranded:()=>je,ZodCatch:()=>Se,ZodDate:()=>me,ZodDefault:()=>Te,ZodDiscriminatedUnion:()=>Ye,ZodEffects:()=>z,ZodEnum:()=>_e,ZodError:()=>H,ZodFirstPartyTypeKind:()=>g,ZodFunction:()=>Je,ZodIntersection:()=>xe,ZodIssueCode:()=>l,ZodLazy:()=>be,ZodLiteral:()=>we,ZodMap:()=>Ae,ZodNaN:()=>Ne,ZodNativeEnum:()=>ke,ZodNever:()=>Z,ZodNull:()=>ye,ZodNullable:()=>J,ZodNumber:()=>pe,ZodObject:()=>D,ZodOptional:()=>U,ZodParsedType:()=>p,ZodPipeline:()=>He,ZodPromise:()=>le,ZodReadonly:()=>Ee,ZodRecord:()=>Xe,ZodSchema:()=>b,ZodSet:()=>Pe,ZodString:()=>ce,ZodSymbol:()=>Ie,ZodTransformer:()=>z,ZodTuple:()=>X,ZodType:()=>b,ZodUndefined:()=>ge,ZodUnion:()=>ve,ZodUnknown:()=>re,ZodVoid:()=>Oe,addIssueToContext:()=>u,any:()=>hr,array:()=>vr,bigint:()=>dr,boolean:()=>Gt,coerce:()=>zr,custom:()=>Yt,date:()=>lr,datetimeRegex:()=>Wt,defaultErrorMap:()=>te,discriminatedUnion:()=>_r,effect:()=>Nr,enum:()=>Or,function:()=>Rr,getErrorMap:()=>Ce,getParsedType:()=>Y,instanceof:()=>ar,intersection:()=>kr,isAborted:()=>We,isAsync:()=>Re,isDirty:()=>Ke,isValid:()=>ae,late:()=>or,lazy:()=>Mr,literal:()=>Ir,makeIssue:()=>$e,map:()=>Er,nan:()=>cr,nativeEnum:()=>Ar,never:()=>gr,null:()=>fr,nullable:()=>$r,number:()=>Jt,object:()=>xr,objectUtil:()=>ft,oboolean:()=>Vr,onumber:()=>Ur,optional:()=>Lr,ostring:()=>Dr,pipeline:()=>Hr,preprocess:()=>jr,promise:()=>Pr,quotelessJson:()=>Nn,record:()=>Sr,set:()=>Cr,setErrorMap:()=>$n,strictObject:()=>br,string:()=>Xt,symbol:()=>ur,transformer:()=>Nr,tuple:()=>Tr,undefined:()=>pr,union:()=>wr,unknown:()=>mr,util:()=>_,void:()=>yr});var _;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{let i={};for(let o of s)i[o]=o;return i},t.getValidEnumValues=s=>{let i=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(let a of i)o[a]=s[a];return t.objectValues(o)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let i=[];for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},t.find=(s,i)=>{for(let o of s)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=r,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i;})(_||(_={}));var ft;(function(t){t.mergeShapes=(e,n)=>({...e,...n});})(ft||(ft={}));var p=_.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Y=t=>{switch(typeof t){case "undefined":return p.undefined;case "string":return p.string;case "number":return Number.isNaN(t)?p.nan:p.number;case "boolean":return p.boolean;case "function":return p.function;case "bigint":return p.bigint;case "symbol":return p.symbol;case "object":return Array.isArray(t)?p.array:t===null?p.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?p.promise:typeof Map<"u"&&t instanceof Map?p.map:typeof Set<"u"&&t instanceof Set?p.set:typeof Date<"u"&&t instanceof Date?p.date:p.object;default:return p.unknown}};var l=_.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Nn=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),H=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r];},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r];};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e;}format(e){let n=e||function(i){return i.message},r={_errors:[]},s=i=>{for(let o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else {let a=r,c=0;for(;c<o.path.length;){let d=o.path[c];c===o.path.length-1?(a[d]=a[d]||{_errors:[]},a[d]._errors.push(n(o))):a[d]=a[d]||{_errors:[]},a=a[d],c++;}}};return s(this),r}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,_.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){let n={},r=[];for(let s of this.issues)if(s.path.length>0){let i=s.path[0];n[i]=n[i]||[],n[i].push(e(s));}else r.push(e(s));return {formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};H.create=t=>new H(t);var Ln=(t,e)=>{let n;switch(t.code){case l.invalid_type:t.received===p.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case l.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,_.jsonStringifyReplacer)}`;break;case l.unrecognized_keys:n=`Unrecognized key(s) in object: ${_.joinValues(t.keys,", ")}`;break;case l.invalid_union:n="Invalid input";break;case l.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${_.joinValues(t.options)}`;break;case l.invalid_enum_value:n=`Invalid enum value. Expected ${_.joinValues(t.options)}, received '${t.received}'`;break;case l.invalid_arguments:n="Invalid function arguments";break;case l.invalid_return_type:n="Invalid function return type";break;case l.invalid_date:n="Invalid date";break;case l.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:_.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case l.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case l.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case l.custom:n="Invalid input";break;case l.invalid_intersection_types:n="Intersection results could not be merged";break;case l.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case l.not_finite:n="Number must be finite";break;default:n=e.defaultError,_.assertNever(t);}return {message:n}},te=Ln;var zt=te;function $n(t){zt=t;}function Ce(){return zt}var $e=t=>{let{data:e,path:n,errorMaps:r,issueData:s}=t,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return {...s,path:i,message:s.message};let a="",c=r.filter(d=>!!d).slice().reverse();for(let d of c)a=d(o,{data:e,defaultError:a}).message;return {...s,path:i,message:a}},jn=[];function u(t,e){let n=Ce(),r=$e({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===te?void 0:te].filter(s=>!!s)});t.common.issues.push(r);}var P=class t{constructor(){this.value="valid";}dirty(){this.value==="valid"&&(this.value="dirty");}abort(){this.value!=="aborted"&&(this.value="aborted");}static mergeArray(e,n){let r=[];for(let s of n){if(s.status==="aborted")return h;s.status==="dirty"&&e.dirty(),r.push(s.value);}return {status:e.value,value:r}}static async mergeObjectAsync(e,n){let r=[];for(let s of n){let i=await s.key,o=await s.value;r.push({key:i,value:o});}return t.mergeObjectSync(e,r)}static mergeObjectSync(e,n){let r={};for(let s of n){let{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return h;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value);}return {status:e.value,value:r}}},h=Object.freeze({status:"aborted"}),ue=t=>({status:"dirty",value:t}),L=t=>({status:"valid",value:t}),We=t=>t.status==="aborted",Ke=t=>t.status==="dirty",ae=t=>t.status==="valid",Re=t=>typeof Promise<"u"&&t instanceof Promise;var f;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message;})(f||(f={}));var V=class{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s;}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Ft=(t,e)=>{if(ae(e))return {success:true,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return {success:false,get error(){if(this._error)return this._error;let n=new H(t.common.issues);return this._error=n,this._error}}};function x(t){if(!t)return {};let{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(o,a)=>{let{message:c}=t;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??r??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:s}}var b=class{get description(){return this._def.description}_getType(e){return Y(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Y(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return {status:new P,ctx:{common:e.parent.common,data:e.data,parsedType:Y(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(Re(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){let n=this._parse(e);return Promise.resolve(n)}parse(e,n){let r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){let r={common:{issues:[],async:n?.async??false,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Y(e)},s=this._parseSync({data:e,path:r.path,parent:r});return Ft(r,s)}"~validate"(e){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Y(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:n});return ae(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=true),n.common={issues:[],async:true};}return this._parseAsync({data:e,path:[],parent:n}).then(r=>ae(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){let r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:true},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Y(e)},s=this._parse({data:e,path:r.path,parent:r}),i=await(Re(s)?s:Promise.resolve(s));return Ft(r,i)}refine(e,n){let r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{let o=e(s),a=()=>i.addIssue({code:l.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?true:(a(),false)):o?true:(a(),false)})}refinement(e,n){return this._refinement((r,s)=>e(r)?true:(s.addIssue(typeof n=="function"?n(r,s):n),false))}_refinement(e){return new z({schema:this,typeName:g.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)};}optional(){return U.create(this,this._def)}nullable(){return J.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return se.create(this)}promise(){return le.create(this,this._def)}or(e){return ve.create([this,e],this._def)}and(e){return xe.create(this,e,this._def)}transform(e){return new z({...x(this._def),schema:this,typeName:g.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let n=typeof e=="function"?e:()=>e;return new Te({...x(this._def),innerType:this,defaultValue:n,typeName:g.ZodDefault})}brand(){return new je({typeName:g.ZodBranded,type:this,...x(this._def)})}catch(e){let n=typeof e=="function"?e:()=>e;return new Se({...x(this._def),innerType:this,catchValue:n,typeName:g.ZodCatch})}describe(e){let n=this.constructor;return new n({...this._def,description:e})}pipe(e){return He.create(this,e)}readonly(){return Ee.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Hn=/^c[^\s-]{8,}$/i,Dn=/^[0-9a-z]+$/,Un=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Vn=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,zn=/^[a-z0-9_-]{21}$/i,Fn=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Bn=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,qn=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Zn="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ht,Wn=/^(?:(?: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])$/,Kn=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,Yn=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Xn=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Jn=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Gn=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qt="((\\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])))",Qn=new RegExp(`^${qt}$`);function Zt(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let n=t.precision?"+":"?";return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function er(t){return new RegExp(`^${Zt(t)}$`)}function Wt(t){let e=`${qt}T${Zt(t)}`,n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function tr(t,e){return !!((e==="v4"||!e)&&Wn.test(t)||(e==="v6"||!e)&&Yn.test(t))}function nr(t,e){if(!Fn.test(t))return false;try{let[n]=t.split(".");if(!n)return !1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return !(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return false}}function rr(t,e){return !!((e==="v4"||!e)&&Kn.test(t)||(e==="v6"||!e)&&Xn.test(t))}var ce=class t extends b{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==p.string){let i=this._getOrReturnCtx(e);return u(i,{code:l.invalid_type,expected:p.string,received:i.parsedType}),h}let r=new P,s;for(let i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.too_small,minimum:i.value,type:"string",inclusive:true,exact:false,message:i.message}),r.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.too_big,maximum:i.value,type:"string",inclusive:true,exact:false,message:i.message}),r.dirty());else if(i.kind==="length"){let o=e.data.length>i.value,a=e.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(e,s),o?u(s,{code:l.too_big,maximum:i.value,type:"string",inclusive:true,exact:true,message:i.message}):a&&u(s,{code:l.too_small,minimum:i.value,type:"string",inclusive:true,exact:true,message:i.message}),r.dirty());}else if(i.kind==="email")qn.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"email",code:l.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")ht||(ht=new RegExp(Zn,"u")),ht.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"emoji",code:l.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")Vn.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"uuid",code:l.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")zn.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"nanoid",code:l.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")Hn.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"cuid",code:l.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")Dn.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"cuid2",code:l.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")Un.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"ulid",code:l.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(e.data);}catch{s=this._getOrReturnCtx(e,s),u(s,{validation:"url",code:l.invalid_string,message:i.message}),r.dirty();}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"regex",code:l.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),u(s,{code:l.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),u(s,{code:l.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),u(s,{code:l.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Wt(i).test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:l.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?Qn.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:l.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?er(i).test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{code:l.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?Bn.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"duration",code:l.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?tr(e.data,i.version)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"ip",code:l.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?nr(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"jwt",code:l.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?rr(e.data,i.version)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"cidr",code:l.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?Jn.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"base64",code:l.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?Gn.test(e.data)||(s=this._getOrReturnCtx(e,s),u(s,{validation:"base64url",code:l.invalid_string,message:i.message}),r.dirty()):_.assertNever(i);return {status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:l.invalid_string,...f.errToObj(r)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...f.errToObj(e)})}url(e){return this._addCheck({kind:"url",...f.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...f.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...f.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...f.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...f.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...f.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...f.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...f.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...f.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...f.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...f.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...f.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:false,local:false,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??false,local:e?.local??false,...f.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...f.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...f.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...f.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...f.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...f.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...f.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...f.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...f.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...f.errToObj(n)})}nonempty(e){return this.min(1,f.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return !!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return !!this._def.checks.find(e=>e.kind==="date")}get isTime(){return !!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return !!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return !!this._def.checks.find(e=>e.kind==="email")}get isURL(){return !!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return !!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return !!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return !!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return !!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return !!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return !!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return !!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return !!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return !!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return !!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};ce.create=t=>new ce({checks:[],typeName:g.ZodString,coerce:t?.coerce??false,...x(t)});function sr(t,e){let n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(t.toFixed(s).replace(".","")),o=Number.parseInt(e.toFixed(s).replace(".",""));return i%o/10**s}var pe=class t extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf;}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==p.number){let i=this._getOrReturnCtx(e);return u(i,{code:l.invalid_type,expected:p.number,received:i.parsedType}),h}let r,s=new P;for(let i of this._def.checks)i.kind==="int"?_.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),u(r,{code:l.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),u(r,{code:l.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:false,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),u(r,{code:l.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:false,message:i.message}),s.dirty()):i.kind==="multipleOf"?sr(e.data,i.value)!==0&&(r=this._getOrReturnCtx(e,r),u(r,{code:l.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),u(r,{code:l.not_finite,message:i.message}),s.dirty()):_.assertNever(i);return {status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,true,f.toString(n))}gt(e,n){return this.setLimit("min",e,false,f.toString(n))}lte(e,n){return this.setLimit("max",e,true,f.toString(n))}lt(e,n){return this.setLimit("max",e,false,f.toString(n))}setLimit(e,n,r,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:f.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:f.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:false,message:f.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:false,message:f.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:true,message:f.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:true,message:f.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:f.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:f.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:true,value:Number.MIN_SAFE_INTEGER,message:f.toString(e)})._addCheck({kind:"max",inclusive:true,value:Number.MAX_SAFE_INTEGER,message:f.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return !!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&_.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return true;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);}return Number.isFinite(n)&&Number.isFinite(e)}};pe.create=t=>new pe({checks:[],typeName:g.ZodNumber,coerce:t?.coerce||false,...x(t)});var fe=class t extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte;}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data);}catch{return this._getInvalidInput(e)}if(this._getType(e)!==p.bigint)return this._getInvalidInput(e);let r,s=new P;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),u(r,{code:l.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),u(r,{code:l.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),u(r,{code:l.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):_.assertNever(i);return {status:s.value,value:e.data}}_getInvalidInput(e){let n=this._getOrReturnCtx(e);return u(n,{code:l.invalid_type,expected:p.bigint,received:n.parsedType}),h}gte(e,n){return this.setLimit("min",e,true,f.toString(n))}gt(e,n){return this.setLimit("min",e,false,f.toString(n))}lte(e,n){return this.setLimit("max",e,true,f.toString(n))}lt(e,n){return this.setLimit("max",e,false,f.toString(n))}setLimit(e,n,r,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:f.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:false,message:f.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:false,message:f.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:true,message:f.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:true,message:f.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:f.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};fe.create=t=>new fe({checks:[],typeName:g.ZodBigInt,coerce:t?.coerce??false,...x(t)});var he=class extends b{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==p.boolean){let r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_type,expected:p.boolean,received:r.parsedType}),h}return L(e.data)}};he.create=t=>new he({typeName:g.ZodBoolean,coerce:t?.coerce||false,...x(t)});var me=class t extends b{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==p.date){let i=this._getOrReturnCtx(e);return u(i,{code:l.invalid_type,expected:p.date,received:i.parsedType}),h}if(Number.isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return u(i,{code:l.invalid_date}),h}let r=new P,s;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.too_small,message:i.message,inclusive:true,exact:false,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),u(s,{code:l.too_big,message:i.message,inclusive:true,exact:false,maximum:i.value,type:"date"}),r.dirty()):_.assertNever(i);return {status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:f.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:f.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};me.create=t=>new me({checks:[],coerce:t?.coerce||false,typeName:g.ZodDate,...x(t)});var Ie=class extends b{_parse(e){if(this._getType(e)!==p.symbol){let r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_type,expected:p.symbol,received:r.parsedType}),h}return L(e.data)}};Ie.create=t=>new Ie({typeName:g.ZodSymbol,...x(t)});var ge=class extends b{_parse(e){if(this._getType(e)!==p.undefined){let r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_type,expected:p.undefined,received:r.parsedType}),h}return L(e.data)}};ge.create=t=>new ge({typeName:g.ZodUndefined,...x(t)});var ye=class extends b{_parse(e){if(this._getType(e)!==p.null){let r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_type,expected:p.null,received:r.parsedType}),h}return L(e.data)}};ye.create=t=>new ye({typeName:g.ZodNull,...x(t)});var de=class extends b{constructor(){super(...arguments),this._any=true;}_parse(e){return L(e.data)}};de.create=t=>new de({typeName:g.ZodAny,...x(t)});var re=class extends b{constructor(){super(...arguments),this._unknown=true;}_parse(e){return L(e.data)}};re.create=t=>new re({typeName:g.ZodUnknown,...x(t)});var Z=class extends b{_parse(e){let n=this._getOrReturnCtx(e);return u(n,{code:l.invalid_type,expected:p.never,received:n.parsedType}),h}};Z.create=t=>new Z({typeName:g.ZodNever,...x(t)});var Oe=class extends b{_parse(e){if(this._getType(e)!==p.undefined){let r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_type,expected:p.void,received:r.parsedType}),h}return L(e.data)}};Oe.create=t=>new Oe({typeName:g.ZodVoid,...x(t)});var se=class t extends b{_parse(e){let{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==p.array)return u(n,{code:l.invalid_type,expected:p.array,received:n.parsedType}),h;if(s.exactLength!==null){let o=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(o||a)&&(u(n,{code:o?l.too_big:l.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:true,exact:true,message:s.exactLength.message}),r.dirty());}if(s.minLength!==null&&n.data.length<s.minLength.value&&(u(n,{code:l.too_small,minimum:s.minLength.value,type:"array",inclusive:true,exact:false,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(u(n,{code:l.too_big,maximum:s.maxLength.value,type:"array",inclusive:true,exact:false,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new V(n,o,n.path,a)))).then(o=>P.mergeArray(r,o));let i=[...n.data].map((o,a)=>s.type._parseSync(new V(n,o,n.path,a)));return P.mergeArray(r,i)}get element(){return this._def.type}min(e,n){return new t({...this._def,minLength:{value:e,message:f.toString(n)}})}max(e,n){return new t({...this._def,maxLength:{value:e,message:f.toString(n)}})}length(e,n){return new t({...this._def,exactLength:{value:e,message:f.toString(n)}})}nonempty(e){return this.min(1,e)}};se.create=(t,e)=>new se({type:t,minLength:null,maxLength:null,exactLength:null,typeName:g.ZodArray,...x(e)});function Me(t){if(t instanceof D){let e={};for(let n in t.shape){let r=t.shape[n];e[n]=U.create(Me(r));}return new D({...t._def,shape:()=>e})}else return t instanceof se?new se({...t._def,type:Me(t.element)}):t instanceof U?U.create(Me(t.unwrap())):t instanceof J?J.create(Me(t.unwrap())):t instanceof X?X.create(t.items.map(e=>Me(e))):t}var D=class t extends b{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend;}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),n=_.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==p.object){let d=this._getOrReturnCtx(e);return u(d,{code:l.invalid_type,expected:p.object,received:d.parsedType}),h}let{status:r,ctx:s}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Z&&this._def.unknownKeys==="strip"))for(let d in s.data)o.includes(d)||a.push(d);let c=[];for(let d of o){let m=i[d],T=s.data[d];c.push({key:{status:"valid",value:d},value:m._parse(new V(s,T,s.path,d)),alwaysSet:d in s.data});}if(this._def.catchall instanceof Z){let d=this._def.unknownKeys;if(d==="passthrough")for(let m of a)c.push({key:{status:"valid",value:m},value:{status:"valid",value:s.data[m]}});else if(d==="strict")a.length>0&&(u(s,{code:l.unrecognized_keys,keys:a}),r.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else {let d=this._def.catchall;for(let m of a){let T=s.data[m];c.push({key:{status:"valid",value:m},value:d._parse(new V(s,T,s.path,m)),alwaysSet:m in s.data});}}return s.common.async?Promise.resolve().then(async()=>{let d=[];for(let m of c){let T=await m.key,S=await m.value;d.push({key:T,value:S,alwaysSet:m.alwaysSet});}return d}).then(d=>P.mergeObjectSync(r,d)):P.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return f.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{let s=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:f.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:g.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let n={};for(let r of _.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}omit(e){let n={};for(let r of _.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new t({...this._def,shape:()=>n})}deepPartial(){return Me(this)}partial(e){let n={};for(let r of _.objectKeys(this.shape)){let s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional();}return new t({...this._def,shape:()=>n})}required(e){let n={};for(let r of _.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else {let i=this.shape[r];for(;i instanceof U;)i=i._def.innerType;n[r]=i;}return new t({...this._def,shape:()=>n})}keyof(){return Kt(_.objectKeys(this.shape))}};D.create=(t,e)=>new D({shape:()=>t,unknownKeys:"strip",catchall:Z.create(),typeName:g.ZodObject,...x(e)});D.strictCreate=(t,e)=>new D({shape:()=>t,unknownKeys:"strict",catchall:Z.create(),typeName:g.ZodObject,...x(e)});D.lazycreate=(t,e)=>new D({shape:t,unknownKeys:"strip",catchall:Z.create(),typeName:g.ZodObject,...x(e)});var ve=class extends b{_parse(e){let{ctx:n}=this._processInputParams(e),r=this._def.options;function s(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let o=i.map(a=>new H(a.ctx.common.issues));return u(n,{code:l.invalid_union,unionErrors:o}),h}if(n.common.async)return Promise.all(r.map(async i=>{let o={...n,common:{...n.common,issues:[]},parent:null};return {result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i,o=[];for(let c of r){let d={...n,common:{...n.common,issues:[]},parent:null},m=c._parseSync({data:n.data,path:n.path,parent:d});if(m.status==="valid")return m;m.status==="dirty"&&!i&&(i={result:m,ctx:d}),d.common.issues.length&&o.push(d.common.issues);}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=o.map(c=>new H(c));return u(n,{code:l.invalid_union,unionErrors:a}),h}}get options(){return this._def.options}};ve.create=(t,e)=>new ve({options:t,typeName:g.ZodUnion,...x(e)});var ne=t=>t instanceof be?ne(t.schema):t instanceof z?ne(t.innerType()):t instanceof we?[t.value]:t instanceof _e?t.options:t instanceof ke?_.objectValues(t.enum):t instanceof Te?ne(t._def.innerType):t instanceof ge?[void 0]:t instanceof ye?[null]:t instanceof U?[void 0,...ne(t.unwrap())]:t instanceof J?[null,...ne(t.unwrap())]:t instanceof je||t instanceof Ee?ne(t.unwrap()):t instanceof Se?ne(t._def.innerType):[],Ye=class t extends b{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==p.object)return u(n,{code:l.invalid_type,expected:p.object,received:n.parsedType}),h;let r=this.discriminator,s=n.data[r],i=this.optionsMap.get(s);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(u(n,{code:l.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){let s=new Map;for(let i of n){let o=ne(i.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,i);}}return new t({typeName:g.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...x(r)})}};function mt(t,e){let n=Y(t),r=Y(e);if(t===e)return {valid:true,data:t};if(n===p.object&&r===p.object){let s=_.objectKeys(e),i=_.objectKeys(t).filter(a=>s.indexOf(a)!==-1),o={...t,...e};for(let a of i){let c=mt(t[a],e[a]);if(!c.valid)return {valid:false};o[a]=c.data;}return {valid:true,data:o}}else if(n===p.array&&r===p.array){if(t.length!==e.length)return {valid:false};let s=[];for(let i=0;i<t.length;i++){let o=t[i],a=e[i],c=mt(o,a);if(!c.valid)return {valid:false};s.push(c.data);}return {valid:true,data:s}}else return n===p.date&&r===p.date&&+t==+e?{valid:true,data:t}:{valid:false}}var xe=class extends b{_parse(e){let{status:n,ctx:r}=this._processInputParams(e),s=(i,o)=>{if(We(i)||We(o))return h;let a=mt(i.value,o.value);return a.valid?((Ke(i)||Ke(o))&&n.dirty(),{status:n.value,value:a.data}):(u(r,{code:l.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};xe.create=(t,e,n)=>new xe({left:t,right:e,typeName:g.ZodIntersection,...x(n)});var X=class t extends b{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.array)return u(r,{code:l.invalid_type,expected:p.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return u(r,{code:l.too_small,minimum:this._def.items.length,inclusive:true,exact:false,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(u(r,{code:l.too_big,maximum:this._def.items.length,inclusive:true,exact:false,type:"array"}),n.dirty());let i=[...r.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new V(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>P.mergeArray(n,o)):P.mergeArray(n,i)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};X.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new X({items:t,typeName:g.ZodTuple,rest:null,...x(e)})};var Xe=class t extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.object)return u(r,{code:l.invalid_type,expected:p.object,received:r.parsedType}),h;let s=[],i=this._def.keyType,o=this._def.valueType;for(let a in r.data)s.push({key:i._parse(new V(r,a,r.path,a)),value:o._parse(new V(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?P.mergeObjectAsync(n,s):P.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof b?new t({keyType:e,valueType:n,typeName:g.ZodRecord,...x(r)}):new t({keyType:ce.create(),valueType:e,typeName:g.ZodRecord,...x(n)})}},Ae=class extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.map)return u(r,{code:l.invalid_type,expected:p.map,received:r.parsedType}),h;let s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,c],d)=>({key:s._parse(new V(r,a,r.path,[d,"key"])),value:i._parse(new V(r,c,r.path,[d,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let d=await c.key,m=await c.value;if(d.status==="aborted"||m.status==="aborted")return h;(d.status==="dirty"||m.status==="dirty")&&n.dirty(),a.set(d.value,m.value);}return {status:n.value,value:a}})}else {let a=new Map;for(let c of o){let d=c.key,m=c.value;if(d.status==="aborted"||m.status==="aborted")return h;(d.status==="dirty"||m.status==="dirty")&&n.dirty(),a.set(d.value,m.value);}return {status:n.value,value:a}}}};Ae.create=(t,e,n)=>new Ae({valueType:e,keyType:t,typeName:g.ZodMap,...x(n)});var Pe=class t extends b{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==p.set)return u(r,{code:l.invalid_type,expected:p.set,received:r.parsedType}),h;let s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(u(r,{code:l.too_small,minimum:s.minSize.value,type:"set",inclusive:true,exact:false,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(u(r,{code:l.too_big,maximum:s.maxSize.value,type:"set",inclusive:true,exact:false,message:s.maxSize.message}),n.dirty());let i=this._def.valueType;function o(c){let d=new Set;for(let m of c){if(m.status==="aborted")return h;m.status==="dirty"&&n.dirty(),d.add(m.value);}return {status:n.value,value:d}}let a=[...r.data.values()].map((c,d)=>i._parse(new V(r,c,r.path,d)));return r.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,n){return new t({...this._def,minSize:{value:e,message:f.toString(n)}})}max(e,n){return new t({...this._def,maxSize:{value:e,message:f.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};Pe.create=(t,e)=>new Pe({valueType:t,minSize:null,maxSize:null,typeName:g.ZodSet,...x(e)});var Je=class t extends b{constructor(){super(...arguments),this.validate=this.implement;}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==p.function)return u(n,{code:l.invalid_type,expected:p.function,received:n.parsedType}),h;function r(a,c){return $e({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ce(),te].filter(d=>!!d),issueData:{code:l.invalid_arguments,argumentsError:c}})}function s(a,c){return $e({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ce(),te].filter(d=>!!d),issueData:{code:l.invalid_return_type,returnTypeError:c}})}let i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof le){let a=this;return L(async function(...c){let d=new H([]),m=await a._def.args.parseAsync(c,i).catch(A=>{throw d.addIssue(r(c,A)),d}),T=await Reflect.apply(o,this,m);return await a._def.returns._def.type.parseAsync(T,i).catch(A=>{throw d.addIssue(s(T,A)),d})})}else {let a=this;return L(function(...c){let d=a._def.args.safeParse(c,i);if(!d.success)throw new H([r(c,d.error)]);let m=Reflect.apply(o,this,d.data),T=a._def.returns.safeParse(m,i);if(!T.success)throw new H([s(m,T.error)]);return T.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:X.create(e).rest(re.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new t({args:e||X.create([]).rest(re.create()),returns:n||re.create(),typeName:g.ZodFunction,...x(r)})}},be=class extends b{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};be.create=(t,e)=>new be({getter:t,typeName:g.ZodLazy,...x(e)});var we=class extends b{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return u(n,{received:n.data,code:l.invalid_literal,expected:this._def.value}),h}return {status:"valid",value:e.data}}get value(){return this._def.value}};we.create=(t,e)=>new we({value:t,typeName:g.ZodLiteral,...x(e)});function Kt(t,e){return new _e({values:t,typeName:g.ZodEnum,...x(e)})}var _e=class t extends b{_parse(e){if(typeof e.data!="string"){let n=this._getOrReturnCtx(e),r=this._def.values;return u(n,{expected:_.joinValues(r),received:n.parsedType,code:l.invalid_type}),h}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let n=this._getOrReturnCtx(e),r=this._def.values;return u(n,{received:n.data,code:l.invalid_enum_value,options:r}),h}return L(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return t.create(e,{...this._def,...n})}exclude(e,n=this._def){return t.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}};_e.create=Kt;var ke=class extends b{_parse(e){let n=_.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==p.string&&r.parsedType!==p.number){let s=_.objectValues(n);return u(r,{expected:_.joinValues(s),received:r.parsedType,code:l.invalid_type}),h}if(this._cache||(this._cache=new Set(_.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let s=_.objectValues(n);return u(r,{received:r.data,code:l.invalid_enum_value,options:s}),h}return L(e.data)}get enum(){return this._def.values}};ke.create=(t,e)=>new ke({values:t,typeName:g.ZodNativeEnum,...x(e)});var le=class extends b{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==p.promise&&n.common.async===false)return u(n,{code:l.invalid_type,expected:p.promise,received:n.parsedType}),h;let r=n.parsedType===p.promise?n.data:Promise.resolve(n.data);return L(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}};le.create=(t,e)=>new le({type:t,typeName:g.ZodPromise,...x(e)});var z=class extends b{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===g.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:o=>{u(r,o),o.fatal?n.abort():n.dirty();},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){let o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return h;let c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?h:c.status==="dirty"?ue(c.value):n.value==="dirty"?ue(c.value):c});{if(n.value==="aborted")return h;let a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?h:a.status==="dirty"?ue(a.value):n.value==="dirty"?ue(a.value):a}}if(s.type==="refinement"){let o=a=>{let c=s.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===false){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?h:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?h:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===false){let o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ae(o))return h;let a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return {status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>ae(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):h);_.assertNever(s);}};z.create=(t,e,n)=>new z({schema:t,typeName:g.ZodEffects,effect:e,...x(n)});z.createWithPreprocess=(t,e,n)=>new z({schema:e,effect:{type:"preprocess",transform:t},typeName:g.ZodEffects,...x(n)});var U=class extends b{_parse(e){return this._getType(e)===p.undefined?L(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};U.create=(t,e)=>new U({innerType:t,typeName:g.ZodOptional,...x(e)});var J=class extends b{_parse(e){return this._getType(e)===p.null?L(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};J.create=(t,e)=>new J({innerType:t,typeName:g.ZodNullable,...x(e)});var Te=class extends b{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return n.parsedType===p.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Te.create=(t,e)=>new Te({innerType:t,typeName:g.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...x(e)});var Se=class extends b{_parse(e){let{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Re(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new H(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new H(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};Se.create=(t,e)=>new Se({innerType:t,typeName:g.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...x(e)});var Ne=class extends b{_parse(e){if(this._getType(e)!==p.nan){let r=this._getOrReturnCtx(e);return u(r,{code:l.invalid_type,expected:p.nan,received:r.parsedType}),h}return {status:"valid",value:e.data}}};Ne.create=t=>new Ne({typeName:g.ZodNaN,...x(t)});var ir=Symbol("zod_brand"),je=class extends b{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},He=class t extends b{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return (async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?h:i.status==="dirty"?(n.dirty(),ue(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?h:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new t({in:e,out:n,typeName:g.ZodPipeline})}},Ee=class extends b{_parse(e){let n=this._def.innerType._parse(e),r=s=>(ae(s)&&(s.value=Object.freeze(s.value)),s);return Re(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}};Ee.create=(t,e)=>new Ee({innerType:t,typeName:g.ZodReadonly,...x(e)});function Bt(t,e){let n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function Yt(t,e={},n){return t?de.create().superRefine((r,s)=>{let i=t(r);if(i instanceof Promise)return i.then(o=>{if(!o){let a=Bt(e,r),c=a.fatal??n??true;s.addIssue({code:"custom",...a,fatal:c});}});if(!i){let o=Bt(e,r),a=o.fatal??n??true;s.addIssue({code:"custom",...o,fatal:a});}}):de.create()}var or={object:D.lazycreate},g;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly";})(g||(g={}));var ar=(t,e={message:`Input not instance of ${t.name}`})=>Yt(n=>n instanceof t,e),Xt=ce.create,Jt=pe.create,cr=Ne.create,dr=fe.create,Gt=he.create,lr=me.create,ur=Ie.create,pr=ge.create,fr=ye.create,hr=de.create,mr=re.create,gr=Z.create,yr=Oe.create,vr=se.create,xr=D.create,br=D.strictCreate,wr=ve.create,_r=Ye.create,kr=xe.create,Tr=X.create,Sr=Xe.create,Er=Ae.create,Cr=Pe.create,Rr=Je.create,Mr=be.create,Ir=we.create,Or=_e.create,Ar=ke.create,Pr=le.create,Nr=z.create,Lr=U.create,$r=J.create,jr=z.createWithPreprocess,Hr=He.create,Dr=()=>Xt().optional(),Ur=()=>Jt().optional(),Vr=()=>Gt().optional(),zr={string:(t=>ce.create({...t,coerce:true})),number:(t=>pe.create({...t,coerce:true})),boolean:(t=>he.create({...t,coerce:true})),bigint:(t=>fe.create({...t,coerce:true})),date:(t=>me.create({...t,coerce:true}))};var Fr=h;var Br=w.object({type:w.nativeEnum(I),timestamp:w.number().int().nonnegative(),data:w.unknown()}),qr=w.object({browser:w.string(),browserVersion:w.string(),os:w.string(),osVersion:w.string(),deviceType:w.enum(["desktop","mobile","tablet","unknown"]),userAgent:w.string().max(1024),platform:w.enum(["web","ios","android"]).optional()}),Zr=w.object({entryUrl:w.string().url().max(2048),currentUrl:w.string().url().max(2048),referrer:w.string().max(2048),device:qr,screen:w.object({width:w.number().int().nonnegative(),height:w.number().int().nonnegative(),dpr:w.number().nonnegative()}),language:w.string().max(35),timezone:w.string().max(64),environment:w.enum(["production","staging","development"]),releaseVersion:w.string().max(128).optional(),sdkVersion:w.string().max(32)});w.object({v:w.literal(1),projectId:w.string().min(1).max(64),sessionId:w.string().uuid(),seq:w.number().int().nonnegative(),anonymousId:w.string().min(1).max(64),userId:w.string().max(256).optional(),userTraits:w.record(w.unknown()).optional(),events:w.array(Br).min(1).max(5e3),meta:Zr,sentAt:w.number().int().nonnegative()});function yt(t){let e=/Edg\/|EdgiOS\//.test(t)?"Edge":/OPR\/|OPiOS\//.test(t)?"Opera":/Chrome\/|CriOS\//.test(t)?"Chrome":/Firefox\/|FxiOS\//.test(t)?"Firefox":/Safari\//.test(t)?"Safari":"Unknown",n=t.match(/(?:EdgiOS|Edg|OPiOS|OPR|CriOS|Chrome|FxiOS|Firefox|Version)\/(\d+)/)?.[1]??"0",r=/Windows/.test(t)?"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/Mac OS X|Macintosh/.test(t)?"macOS":/Linux/.test(t)?"Linux":"Unknown",s=/iPad|Tablet/.test(t)||/Android/.test(t)&&!/Mobi/.test(t)?"tablet":/Mobi|Android|iPhone|iPod/.test(t)?"mobile":"desktop",i=(t.match(/(?:iPhone OS|CPU OS) ([\d_]+)/)?.[1]??t.match(/(?:Windows NT|Mac OS X|Android) ([\d._]+)/)?.[1]??"").replace(/_/g,".");return {browser:e,browserVersion:n,os:r,osVersion:i,deviceType:s,userAgent:t.slice(0,1024)}}var Yr=new Set(["password","email","tel","number","hidden"]),Xr=["cc-number","cc-csc","cc-exp","cc-name","current-password","new-password","one-time-code"],Jr=/(pass(word)?|card|cvv|cvc|ccv|iban|ssn|tckn|national|secret|token|pin)/i;function Qt(t){if(t instanceof HTMLInputElement&&Yr.has(t.type))return true;let e=t.getAttribute("autocomplete")?.toLowerCase()??"";if(Xr.some(r=>e.includes(r)))return true;let n=`${t.getAttribute("name")??""} ${t.id??""} ${t.getAttribute("aria-label")??""}`;return Jr.test(n)}var xt=new Set,en=false;function vt(t){for(let e of [...xt])try{e(t);}catch{}}function Gr(){if(!(en||typeof history>"u")){en=true;for(let[t,e]of [["pushState","push"],["replaceState","replace"]]){let n=history[t];history[t]=function(...r){let s=n.apply(this,r);return vt(e),s};}window.addEventListener("popstate",()=>vt("pop")),window.addEventListener("hashchange",()=>vt("hash"));}}function Ge(t){return Gr(),xt.add(t),()=>xt.delete(t)}function Qe(t){let e=t.indexOf("#");if(e===-1)return t;let n=t.slice(e);return n.startsWith("#/")||n.startsWith("#!/")?t:t.slice(0,e)}function bt(t){let e=Qe(t),n=e.indexOf("?");if(n===-1)return e;let r=e.indexOf("#",n);return e.slice(0,n)+(r===-1?"":e.slice(r))}var tn="0123456789abcdef";function nn(t){let e=new Uint8Array(t),n=globalThis.crypto;if(n?.getRandomValues)n.getRandomValues(e);else for(let s=0;s<t;s++)e[s]=Math.floor(Math.random()*256);let r="";for(let s of e)r+=tn[s>>4&15]+tn[s&15];return r}function rn(){let t=nn(16);return t==="0".repeat(32)?rn():t}function sn(){let t=nn(8);return t==="0".repeat(16)?sn():t}function Qr(t,e,n=true){return `00-${t}-${e}-${n?"01":"00"}`}function wt(t,e,n){let r;try{r=new URL(t,n);}catch{return true}return r.origin===n?true:e.some(s=>typeof s=="string"?r.href.includes(s):s.test(r.href))}function _t(t){let e=rn();return {traceId:e,traceparent:Qr(e,sn()),baggage:`replayops.session_id=${encodeURIComponent(t)}`}}function F(t,e){return {type:I.Plugin,timestamp:Date.now(),data:{plugin:t,payload:e}}}function an(t){let e=["log","info","warn","error","debug"],n={};for(let r of e)n[r]=console[r].bind(console),console[r]=(...s)=>{t(F(N.Console,{level:r,args:s.map(ts).slice(0,10)})),n[r](...s);};return ()=>{for(let r of e)console[r]=n[r];}}function cn(t){let e=r=>{let s=r.target,i=s&&s!==r.currentTarget?s.src||s.href:void 0;if(!r.message&&i){t(F(N.Error,{kind:"resource",message:"Failed to load resource",source:i}));return}r.message&&t(F(N.Error,{kind:"error",message:r.message,source:r.filename,line:r.lineno,column:r.colno,stack:r.error?.stack?.slice(0,4e3)}));},n=r=>t(F(N.Error,{kind:"unhandledrejection",message:String(r.reason?.message??r.reason),stack:r.reason?.stack?.slice(0,4e3)}));return window.addEventListener("error",e,true),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",e,true),window.removeEventListener("unhandledrejection",n);}}function dn(t,e,n={}){let r=!!n.bodies,s=n.selfEndpoint?n.selfEndpoint.replace(/\/$/,""):void 0,i=k=>{if(!s)return false;try{return new URL(k,location.href).href.startsWith(s)}catch{return k.startsWith(s)}},o=window.fetch;window.fetch=async(...k)=>{let y=Date.now(),C=typeof k[0]=="string"?k[0]:k[0].url;if(i(C))return o(...k);let R=(k[1]?.method??k[0]?.method??"GET").toUpperCase(),K=e?es(k,C,e):void 0,Q={};if(r){let q=ss(k[1]?.headers??(k[0]instanceof Request?k[0].headers:void 0)),ee=typeof k[1]?.body=="string"?k[1].body:void 0;Q=on(ee,q);}try{let q=await o(...k),ee={};return r&&(ee=await os(q)),t(F(N.Network,{type:"fetch",url:C,method:R,status:q.status,durationMs:Date.now()-y,...K?{traceId:K}:{},...Q,...ee})),q}catch(q){throw t(F(N.Network,{type:"fetch",url:C,method:R,status:0,error:String(q),durationMs:Date.now()-y,...K?{traceId:K}:{},...Q})),q}};let c=window.XMLHttpRequest.prototype,d=c.open,m=c.send,T=c.setRequestHeader;c.open=function(k,y,...C){return this.__ro={method:k,url:y,started:0,reqHeaders:{}},d.call(this,k,y,...C)},c.setRequestHeader=function(k,y){let C=this.__ro;return C&&r&&(C.reqHeaders[k]=y),T.call(this,k,y)},c.send=function(...k){let y=this.__ro,C={};if(y){if(y.started=Date.now(),r){let R=typeof k[0]=="string"?k[0]:void 0;C=on(R,tt(y.reqHeaders));}if(e&&wt(y.url,e.targets,location.origin)){let R=_t(e.sessionId);try{this.setRequestHeader("traceparent",R.traceparent),this.setRequestHeader("baggage",R.baggage),y.traceId=R.traceId;}catch{}}}return this.addEventListener("loadend",()=>{if(!y||i(y.url))return;let R={};if(r){let K=this.getResponseHeader("content-type")??void 0,Q=this.responseType===""||this.responseType==="text"?this.responseText:void 0;R={...Q!=null?{resBody:kt(Tt(Q,K))}:{},resHeaders:is(this.getAllResponseHeaders())};}t(F(N.Network,{type:"xhr",url:y.url,method:y.method,status:this.status,durationMs:Date.now()-y.started,...y.traceId?{traceId:y.traceId}:{},...C,...R}));}),m.apply(this,k)};let S=1500,A=0,ie=performance.now(),G=ie<12e4?0:ie-6e4,j;try{j=new PerformanceObserver(k=>{for(let y of k.getEntries()){if(A>=S)return;let C=y.initiatorType;if(C==="fetch"||C==="xmlhttprequest"||y.name.startsWith("data:")||i(y.name))continue;let R=y.startTime+y.duration;R<G||(A++,t({type:I.Plugin,timestamp:Math.round(Date.now()-(performance.now()-R)),data:{plugin:N.Network,payload:{type:"resource",initiator:C,url:y.name,status:y.responseStatus??0,durationMs:Math.round(y.duration),...y.transferSize?{sizeBytes:y.transferSize}:{}}}}));}}),j.observe({type:"resource",buffered:!0});}catch{}return ()=>{window.fetch=o,c.open=d,c.send=m,c.setRequestHeader=T,j?.disconnect();}}function es(t,e,n){if(!wt(e,n.targets,location.origin))return;let r=_t(n.sessionId);if(t[0]instanceof Request){let o=new Headers(t[0].headers);return o.set("traceparent",r.traceparent),o.set("baggage",r.baggage),t[0]=new Request(t[0],{headers:o}),r.traceId}let s=t[1]??={},i=new Headers(s.headers);return i.set("traceparent",r.traceparent),i.set("baggage",r.baggage),s.headers=i,r.traceId}function ln(t){let e=new PerformanceObserver(n=>{for(let r of n.getEntries())(r.entryType==="longtask"||r.entryType==="navigation")&&t(F(N.Performance,{entryType:r.entryType,name:r.name,startTime:Math.round(r.startTime),duration:Math.round(r.duration)}));});try{e.observe({entryTypes:["longtask","navigation"]});}catch{}return ()=>e.disconnect()}function un(t){let e=[],n=(s,i)=>{try{let o=new PerformanceObserver(a=>a.getEntries().forEach(i));o.observe({type:s,buffered:!0}),e.push(()=>o.disconnect());}catch{}};n("largest-contentful-paint",s=>t(F(N.WebVitals,{metric:"LCP",value:Math.round(s.startTime)}))),n("first-input",s=>{let i=s.processingStart-s.startTime;t(F(N.WebVitals,{metric:"FID",value:Math.round(i)}));});let r=0;return n("layout-shift",s=>{let i=s;i.hadRecentInput||(r+=i.value,t(F(N.WebVitals,{metric:"CLS",value:Number(r.toFixed(4))})));}),()=>e.forEach(s=>s())}function ts(t){try{return typeof t=="string"?t:JSON.stringify(t)}catch{return String(t)}}var et=8192,ns=/^(authorization|cookie|set-cookie|proxy-authorization|x-api-key|x-auth-token|x-csrf-token)$/i,rs=/(pass|secret|token|auth|credit|card|cvv|ssn|api[-_]?key)/i;function kt(t){return t.length>et?`${t.slice(0,et)}\u2026[truncated]`:t}function Tt(t,e){if(!(e&&/json/i.test(e)||/^\s*[[{]/.test(t)))return t;try{let r=s=>{if(Array.isArray(s))return s.map(r);if(s&&typeof s=="object"){let i={};for(let o of Object.keys(s))i[o]=rs.test(o)?"***":r(s[o]);return i}return s};return JSON.stringify(r(JSON.parse(t)))}catch{return t}}function ss(t){let e={};return t?(new Headers(t).forEach((n,r)=>e[r]=n),tt(e)):e}function tt(t){let e={};for(let n of Object.keys(t))e[n]=ns.test(n)?"***":t[n];return e}function is(t){let e={};for(let n of t.trim().split(/\r?\n/)){let r=n.indexOf(":");r>0&&(e[n.slice(0,r).trim()]=n.slice(r+1).trim());}return tt(e)}function on(t,e,n){let r={reqHeaders:e};if(t!=null){r.reqBody=kt(Tt(t,e["content-type"]));let s=cs(t);s&&Object.assign(r,s);}return r}async function os(t){let e={resHeaders:as(t.headers)},n=t.headers.get("content-type")??"",r=Number(t.headers.get("content-length")??0);if((/json|text|xml|javascript|graphql/i.test(n)||!n&&r>0&&r<et*8)&&r<et*8)try{let i=await t.clone().text();e.resBody=kt(Tt(i,n));}catch{}return e}function as(t){let e={};return t.forEach((n,r)=>e[r]=n),tt(e)}function cs(t){try{let e=JSON.parse(t),n=Array.isArray(e)?e[0]:e,r=n?.query;if(typeof r!="string")return;let s=r.match(/\b(query|mutation|subscription)\b\s+([A-Za-z0-9_]+)?/),i=typeof n.operationName=="string"?n.operationName:s?.[2];return {operationType:s?.[1]??"query",...i?{operationName:i}:{}}}catch{return}}function pn(t){let e=0,n=0,r=()=>{e++,n=requestAnimationFrame(r);};n=requestAnimationFrame(r);let s=setInterval(()=>{let i=performance.memory;t(F(N.Performance,{sample:true,fps:e/2,domNodes:document.getElementsByTagName("*").length,...i?{memoryMB:Math.round(i.usedJSHeapSize/1048576*10)/10}:{}})),e=0;},2e3);return ()=>{clearInterval(s),cancelAnimationFrame(n);}}var ds=100,ls=6e4,us=new Set([0,5,8,13,15]),nt=class{constructor(e,n,r=""){this.config=e;this.emit=n;this.sessionId=r;}config;emit;sessionId;stopFns=[];rrwebStop;lastPage="";changedSinceSnapshot=false;checkoutTimer;start(){this.beginRecording();}beginRecording(){if(this.rrwebStop)return;let e=["[data-mask]","[data-private]",...this.config.maskSelectors].filter(Boolean).join(","),n=["[data-ignore]",...this.config.ignoreSelectors].filter(Boolean).join(",");if(this.rrwebStop=record({emit:r=>{let s=r;s.type===I.Meta&&(this.lastPage=Qe(s.data.href??"")),s.type===I.FullSnapshot?this.changedSinceSnapshot=false:s.type===I.IncrementalSnapshot&&us.has(s.data.source??-1)&&(this.changedSinceSnapshot=true),this.emit(s);},maskAllInputs:this.config.maskInputs,maskTextSelector:e||void 0,blockSelector:n||void 0,maskInputFn:(r,s)=>this.config.maskInputs||Qt(s)?"\u2022".repeat(r.length):r,recordCanvas:false,sampling:{mousemove:true,scroll:150,input:"last"}}),this.checkoutTimer=setInterval(()=>{this.changedSinceSnapshot&&this.takeFullSnapshot();},ls),this.stopFns.push(this.recordNavigations()),this.config.recordConsole&&this.stopFns.push(an(this.emit)),this.config.recordErrors&&this.stopFns.push(cn(this.emit)),this.config.recordNetwork){let r=this.config.tracePropagation&&this.sessionId?{sessionId:this.sessionId,targets:this.config.tracePropagationTargets}:void 0;this.stopFns.push(dn(this.emit,r,{bodies:this.config.recordNetworkBodies,selfEndpoint:this.config.endpoint}));}this.config.capturePerformance&&this.stopFns.push(ln(this.emit)),this.config.captureMemory&&this.stopFns.push(pn(this.emit)),this.config.captureWebVitals&&this.stopFns.push(un(this.emit));}recordNavigations(){let e,n=false,r=()=>{e=void 0;let i=Qe(location.href),o=bt(location.href)!==bt(this.lastPage),a=i!==this.lastPage&&n;n=false,!(!o&&!a)&&(this.lastPage=i,this.emit({type:I.Meta,timestamp:Date.now(),data:{href:location.href,width:window.innerWidth,height:window.innerHeight}}));},s=Ge(i=>{i!=="replace"&&(n=true),e===void 0&&(e=setTimeout(r,ds));});return ()=>{s(),e!==void 0&&clearTimeout(e);}}emitCustom(e,n){this.emit({type:I.Custom,timestamp:Date.now(),data:{tag:e,payload:n}});}takeFullSnapshot(){try{record.takeFullSnapshot(!0);}catch{}}stop(){this.checkoutTimer&&clearInterval(this.checkoutTimer),this.checkoutTimer=void 0,this.rrwebStop?.(),this.rrwebStop=void 0;for(let e of this.stopFns)e();this.stopFns=[];}};var ps=1024*1024,fs=64,hs=60*1024,ms=1e3,hn=6e4,rt=class t{constructor(e,n){this.sessionId=e;this.opts=n;this.url=`${n.endpoint.replace(/\/$/,"")}/v1/collect`,this.maxBatchBytes=n.maxBatchBytes??ps;}sessionId;opts;buffer=[];seq=0;timer;url;maxBatchBytes;flushing;flushAgain=false;notBefore=0;backoffMs=0;start(){this.timer=setInterval(()=>this.flush(),this.opts.flushIntervalMs),window.addEventListener("pagehide",this.flushBeacon),document.addEventListener("visibilitychange",this.onVisibility);}enqueue(e){this.buffer.push(e),(e.type===I.FullSnapshot||this.buffer.length>=this.opts.batchSize)&&this.flush();}stop(){this.timer&&clearInterval(this.timer),window.removeEventListener("pagehide",this.flushBeacon),document.removeEventListener("visibilitychange",this.onVisibility),this.flushBeacon();}discard(){this.timer&&clearInterval(this.timer),window.removeEventListener("pagehide",this.flushBeacon),document.removeEventListener("visibilitychange",this.onVisibility),this.buffer=[];}onVisibility=()=>{document.visibilityState==="hidden"&&this.flushBeacon();};drain(e=this.maxBatchBytes){if(this.buffer.length===0)return null;let n=[],r=0;for(;this.buffer.length>0;){let i=JSON.stringify(this.buffer[0]).length,o=n.length>0&&n[n.length-1].type===I.Meta;if(n.length>0&&!o&&r+i>e)break;n.push(this.buffer.shift()),r+=i;}let s=this.opts.getIdentity();return {v:1,projectId:this.opts.projectId,sessionId:this.sessionId,seq:this.seq++,anonymousId:s.anonymousId,userId:s.userId,userTraits:s.userTraits,events:n,meta:this.opts.getMeta(),sentAt:Date.now()}}requeue(e){this.buffer.unshift(...e.events),this.seq--;}static GZIP_THRESHOLD_BYTES=64*1024;preferPlain=false;plainRetrySeq=null;static gzipDeadlineMs(e){return Math.min(15e3,2e3+Math.ceil(e/1e6)*1e3)}async encodeBody(e,n=false){if(n||this.preferPlain||e.length<t.GZIP_THRESHOLD_BYTES||typeof CompressionStream>"u")return {body:e};try{let r=await new Promise(s=>{let i=setTimeout(()=>s(null),t.gzipDeadlineMs(e.length));try{let o=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip"));new Response(o).blob().then(a=>{clearTimeout(i),s(a);}).catch(()=>{clearTimeout(i),s(null);});}catch{clearTimeout(i),s(null);}});return r?{body:r,encoding:"gzip"}:(this.preferPlain=!0,{body:e})}catch{return {body:e}}}flush(){return this.flushing?(this.flushAgain=true,this.flushing):(this.flushing=this.drainAll().finally(()=>{this.flushing=void 0;}),this.flushing)}async drainAll(){do{if(this.flushAgain=false,Date.now()<this.notBefore)return;for(let e=0;e<fs;e++){let n=this.drain();if(!n)break;if(!await this.send(n))return}}while(this.flushAgain)}async send(e){let n=this.plainRetrySeq===e.seq,{body:r,encoding:s}=await this.encodeBody(JSON.stringify(e),n);try{let i=await fetch(this.url,{method:"POST",headers:{"content-type":"application/json",...s?{"content-encoding":s}:{},"x-api-key":this.opts.apiKey},body:r,credentials:"omit",mode:"cors",signal:typeof AbortSignal<"u"&&"timeout"in AbortSignal?AbortSignal.timeout(6e4):void 0});return i.ok?(this.backoffMs=0,n&&(this.preferPlain=!0,this.plainRetrySeq=null),!0):s&&(i.status===400||i.status===415)?(this.plainRetrySeq=e.seq,this.requeue(e),!1):i.status===402?(this.opts.onQuotaExceeded?.(),!0):i.status===429||i.status>=500?(this.backOff(i.headers?.get?.("retry-after")),this.requeue(e),!1):(console.warn(`[replayops] collector rejected batch seq=${e.seq} with ${i.status}`+(i.status===413?": payload too large, so this session may not be replayable. Raise the ingest body limit.":"")),!0)}catch{return s?this.plainRetrySeq=e.seq:(n&&(this.plainRetrySeq=null),this.backOff(null)),this.requeue(e),false}}backOff(e){this.backoffMs=Math.min(hn,this.backoffMs?this.backoffMs*2:ms);let n=Number(e)*1e3,r=Number.isFinite(n)&&n>0?Math.min(hn,Math.max(n,this.backoffMs)):this.backoffMs;this.notBefore=Date.now()+r+Math.floor(Math.random()*r*.25);}flushBeacon=()=>{let e=this.drain(hs);e&&fetch(this.url,{method:"POST",headers:{"content-type":"application/json","x-api-key":this.opts.apiKey},body:JSON.stringify(e),keepalive:true,credentials:"omit",mode:"cors"}).catch(()=>{});}};function st(t,e){let n=i=>{let o=i.target;return !!o&&t.contains(o)},r=i=>{n(i)&&(i.stopImmediatePropagation(),i.type==="click"&&gs(t,i));};for(let i of e.atWindow)window.addEventListener(i,r,true);let s=i=>{i.stopPropagation();};for(let i of e.atRoot)t.addEventListener(i,s);return ()=>{for(let i of e.atWindow)window.removeEventListener(i,r,true);for(let i of e.atRoot)t.removeEventListener(i,s);}}function gs(t,e){let n=e.target;for(;n&&n!==t;){if(typeof n.onclick=="function"){n.onclick(e);return}n=n.parentElement;}}var mn={atWindow:["pointerdown","pointerup","mousedown","mouseup","touchstart","touchend","click","focusin","focusout"],atRoot:[]},gn={atWindow:["click","focusin","focusout"],atRoot:["pointerdown","pointerup","pointermove","mousedown","mouseup","touchstart","touchend"]};var yn=["#ef4444","#f59e0b","#22c55e","#3b82f6"],it=null;function ys(t){let e=window;return e.html2canvas?Promise.resolve(e.html2canvas):it||(it=new Promise((n,r)=>{let s=document.createElement("script");s.src=`${t}/sdk/v1/html2canvas.min.js`,s.async=true,s.onload=()=>e.html2canvas?n(e.html2canvas):r(new Error("html2canvas missing")),s.onerror=()=>r(new Error("html2canvas failed to load")),document.head.appendChild(s);}),it)}var St=null;async function vn(t){if(St)return;let e=t.endpoint.replace(/\/$/,""),n=await xs();if(!n){let s=B("","position:fixed;left:50%;top:16px;transform:translateX(-50%);z-index:2147483646;background:#111827;color:#fff;font:600 13px system-ui,sans-serif;padding:8px 14px;border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.3)");s.textContent="\u{1F41E} Capturing the screen\u2026",s.setAttribute("data-ignore",""),document.body.appendChild(s);try{n=await(await ys(e))(document.documentElement,{backgroundColor:"#ffffff",useCORS:!0,logging:!1,scale:Math.min(2,window.devicePixelRatio||1),ignoreElements:o=>o instanceof HTMLElement&&o.hasAttribute("data-ignore"),x:window.scrollX,y:window.scrollY,width:window.innerWidth,height:window.innerHeight,windowWidth:document.documentElement.scrollWidth,windowHeight:document.documentElement.scrollHeight});}catch{s.remove(),xn(e,t,null);return}s.remove();}let r=Ts(n,1600);bs(e,t,r);}var Ue=null;async function vs(t){ot();try{let e=await t.getDisplayMedia({video:{displaySurface:"browser"},audio:!1,preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"});return e.getVideoTracks().forEach(n=>n.onended=()=>{Ue===e&&(Ue=null);}),Ue=e,e}catch{return null}}async function xs(){let t=navigator.mediaDevices;if(!t?.getDisplayMedia)return null;let e=await vs(t);if(!e)return null;let n=document.createElement("style");n.setAttribute("data-ignore",""),n.textContent="[data-ignore]{visibility:hidden !important}",document.head.appendChild(n);try{let r=document.createElement("video");r.srcObject=e,r.muted=!0,await r.play(),await new Promise(a=>setTimeout(a,200));let s=r.videoWidth||window.innerWidth,i=r.videoHeight||window.innerHeight,o=document.createElement("canvas");return o.width=s,o.height=i,o.getContext("2d").drawImage(r,0,0,s,i),r.srcObject=null,o}catch{return null}finally{n.remove(),ot();}}function ot(){Ue?.getTracks().forEach(t=>t.stop()),Ue=null;}function bs(t,e,n){let r=document.createElement("style");r.setAttribute("data-ignore",""),r.textContent="@media (max-width:760px){.ro-tester-root{flex-direction:column !important}.ro-tester-stage{flex:1 1 45% !important;min-height:0;padding:8px !important}.ro-tester-panel{width:100% !important;flex:1 1 55% !important;min-height:0}}",document.head.appendChild(r);let s=B("ro-tester-root","position:fixed;inset:0;z-index:2147483646;pointer-events:auto;background:rgba(15,23,42,.82);display:flex;font-family:system-ui,-apple-system,sans-serif"),i=st(s,gn);s.setAttribute("data-ignore","");let o=B("ro-tester-stage","flex:1;min-width:0;display:grid;place-items:center;padding:16px;overflow:auto"),a=document.createElement("canvas");a.width=n.width,a.height=n.height,a.style.cssText="max-width:100%;max-height:100%;box-shadow:0 8px 40px rgba(0,0,0,.5);cursor:crosshair;touch-action:none;background:#fff",o.appendChild(a);let c=a.getContext("2d"),d=[],m="rect",T=yn[0],S=null,A=()=>Math.max(2,Math.round(a.width/320)),ie=()=>Math.max(16,Math.round(a.width/40)),G=v=>{if(c.strokeStyle=v.color,c.fillStyle=v.color,c.lineWidth=A(),c.lineJoin=c.lineCap="round",v.tool==="text"){let $=v.points[0];$&&v.text&&(c.font=`700 ${ie()}px system-ui,sans-serif`,c.textBaseline="top",v.text.split(`
2
+ `).forEach((oe,Cn)=>c.fillText(oe,$.x,$.y+Cn*ie()*1.25)));return}if(v.tool==="pen"){c.beginPath(),v.points.forEach(($,oe)=>oe?c.lineTo($.x,$.y):c.moveTo($.x,$.y)),c.stroke();return}if(v.points.length<2)return;let E=v.points[0],M=v.points[v.points.length-1];if(v.tool==="rect")c.strokeRect(E.x,E.y,M.x-E.x,M.y-E.y);else {c.beginPath(),c.moveTo(E.x,E.y),c.lineTo(M.x,M.y),c.stroke();let $=Math.atan2(M.y-E.y,M.x-E.x),oe=A()*4;c.beginPath(),c.moveTo(M.x,M.y),c.lineTo(M.x-oe*Math.cos($-Math.PI/6),M.y-oe*Math.sin($-Math.PI/6)),c.lineTo(M.x-oe*Math.cos($+Math.PI/6),M.y-oe*Math.sin($+Math.PI/6)),c.closePath(),c.fill();}},j=()=>{c.clearRect(0,0,a.width,a.height),c.drawImage(n,0,0),d.forEach(G),S&&G(S);};j();let k=v=>{let E=a.getBoundingClientRect();return {x:(v.clientX-E.left)/E.width*a.width,y:(v.clientY-E.top)/E.height*a.height}};a.addEventListener("pointerdown",v=>{if(m==="text"){v.preventDefault();let E=k(v);ks(v.clientX,v.clientY,T,M=>{M.trim()&&(d.push({tool:"text",color:T,points:[E],text:M}),j());});return}a.setPointerCapture(v.pointerId),S={tool:m,color:T,points:[k(v)]};}),a.addEventListener("pointermove",v=>{if(!S)return;let E=k(v);S.tool==="pen"?S.points.push(E):S.points[1]=E,j();}),a.addEventListener("pointerup",()=>{if(!S)return;let v=S;S=null,(v.tool==="pen"?v.points.length>1:v.points.length>=2)&&d.push(v),j();});let y=B("ro-tester-panel","width:320px;flex-shrink:0;background:#fff;display:flex;flex-direction:column;color:#0f172a;min-height:0");y.innerHTML='<div style="padding:14px 16px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #e2e8f0"><span style="font-size:18px">\u{1F41E}</span><b style="font-size:16px">Tester mode</b></div>';let C=B("","padding:14px 16px;overflow-y:auto;flex:1");y.appendChild(C);let R=B("","display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:12px"),K={};[["rect","\u25AD"],["arrow","\u2197"],["pen","\u270E"],["text","T"]].forEach(([v,E])=>{let M=De(E,"width:34px;height:32px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;font-size:15px;cursor:pointer");M.onclick=()=>{m=v,Object.values(K).forEach($=>$.style.background="#fff"),M.style.background="#e0e7ff";},K[v]=M,R.appendChild(M);}),K.rect.style.background="#e0e7ff",yn.forEach(v=>{let E=B("",`width:22px;height:22px;border-radius:50%;background:${v};cursor:pointer;border:2px solid ${v===T?"#fff":"transparent"};outline:2px solid ${v===T?v:"transparent"}`);E.onclick=()=>{T=v,[...R.querySelectorAll("[data-swatch]")].forEach(M=>{M.style.border="2px solid transparent",M.style.outline="2px solid transparent";}),E.style.border="2px solid #fff",E.style.outline=`2px solid ${v}`;},E.setAttribute("data-swatch",""),R.appendChild(E);});let Q=De("\u21B6","margin-left:auto;width:32px;height:32px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;cursor:pointer");Q.onclick=()=>{d.pop(),j();};let q=De("\u{1F5D1}","width:32px;height:32px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;cursor:pointer");q.onclick=()=>{d.length=0,j();},R.append(Q,q),C.appendChild(R);let ee=document.createElement("textarea");ee.placeholder="What's wrong on this page? (optional, AI will draft it)",ee.style.cssText="width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;min-height:90px;resize:vertical";let Ot=B("","font-size:12px;color:#64748b;margin-top:10px;word-break:break-all"),dt=document.createElement("b");dt.style.color="#334155",dt.textContent="URL ",Ot.append(dt,document.createTextNode(location.href)),C.append(_s("What's wrong?",ee),Ot);let At=B("","display:flex;gap:8px;padding:14px 16px;border-top:1px solid #e2e8f0"),Pt=De("Cancel","flex:1;padding:10px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;font:inherit;cursor:pointer"),Fe=De("Open ticket","flex:1;padding:10px;border:0;background:#0d9488;color:#fff;border-radius:8px;font:600 14px system-ui;cursor:pointer");At.append(Pt,Fe),y.appendChild(At),s.append(o,y),document.body.appendChild(s);let lt=()=>{i(),s.remove(),r.remove(),St=null;};St=lt,Pt.onclick=lt,Fe.onclick=()=>{Fe.disabled=true,Fe.textContent="Opening\u2026";let v=a.toDataURL("image/jpeg",.85);xn(t,e,{title:"",note:ee.value.trim(),screenshot:v}),lt();};}function xn(t,e,n){let r=new URLSearchParams({key:e.apiKey,url:location.href,sid:e.sessionId}),s=`${t}/tester-report.html?${r.toString()}`,i=window.open(s,"replayops-tester","width=480,height=680");if(!i){ws(s);return}if(!n)return;let o=a=>{a.origin!==t||!a.data||a.data.type!=="ro-tester:popup-ready"||(window.removeEventListener("message",o),i.postMessage({type:"ro-tester:payload",...n},t));};window.addEventListener("message",o);}function ws(t){let e=B("","position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:2147483647;pointer-events:auto;max-width:min(420px,calc(100vw - 32px));background:#0f172a;color:#fff;padding:14px 16px;border-radius:12px;font:14px system-ui;box-shadow:0 12px 40px rgba(0,0,0,.35)");e.setAttribute("data-ignore","");let n=document.createElement("div");n.textContent="ReplayOps could not open the report window. Your browser or app blocked it.";let r=document.createElement("a");r.href=t,r.target="_blank",r.rel="noopener",r.textContent="Open the report form",r.style.cssText="color:#5eead4;display:inline-block;margin-top:8px",e.append(n,r),document.body.appendChild(e),setTimeout(()=>e.remove(),12e3);}function B(t,e){let n=document.createElement("div");return t&&(n.className=t),n.style.cssText=e,n}function De(t,e){let n=document.createElement("button");return n.type="button",n.textContent=t,n.style.cssText=e,n}function _s(t,e){let n=B("","margin-bottom:4px"),r=B("","font-size:12px;font-weight:700;color:#475569;margin:8px 0 4px");return r.textContent=t,n.append(r,e),n}function ks(t,e,n,r){let s=document.createElement("input");s.setAttribute("data-ignore",""),s.placeholder="Type, then Enter";let i=Math.min(t,window.innerWidth-180),o=Math.min(e,window.innerHeight-40);s.style.cssText=`position:fixed;left:${i}px;top:${o}px;z-index:2147483647;font:700 15px system-ui;color:${n};background:rgba(255,255,255,.98);border:2px solid ${n};border-radius:4px;padding:4px 8px;outline:none;min-width:140px;box-shadow:0 4px 16px rgba(0,0,0,.25)`;let a=false,c=()=>{if(a)return;a=true;let d=s.value;s.remove(),r(d);};s.addEventListener("keydown",d=>{d.stopPropagation(),d.key==="Enter"&&(d.preventDefault(),c()),d.key==="Escape"&&(s.value="",c());}),document.body.appendChild(s),setTimeout(()=>{s.focus(),setTimeout(()=>s.addEventListener("blur",c),60);},0);}function Ts(t,e){if(t.width<=e)return t;let n=e/t.width,r=document.createElement("canvas");return r.width=e,r.height=Math.round(t.height*n),r.getContext("2d").drawImage(t,0,0,r.width,r.height),r}var Ss=1e4,Es=3e3;function Cs(){let t=new Uint8Array(16);return crypto.getRandomValues(t),Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")}var at=class{constructor(e){this.opts=e;}opts;ws;heartbeat;watching=false;closed=false;claim=Cs();lifecycleOff=[];widget;control;start(){(this.opts.chat||this.opts.tester)&&(this.widget=new Et({chat:!!this.opts.chat,onSend:e=>this.sendChat(e),onTester:this.opts.tester?()=>this.openTesterMode():void 0})),this.connect(),this.patchHistory(),this.watchLifecycle();}watchLifecycle(){let e=()=>{if(this.closed)return;let i=this.ws?.readyState;i===WebSocket.OPEN||i===WebSocket.CONNECTING||this.connect();},n=()=>{this.heartbeat&&clearInterval(this.heartbeat),this.ws?.close();},r=()=>document.visibilityState==="visible"?e():void 0,s=(i,o,a)=>{i.addEventListener(o,a),this.lifecycleOff.push(()=>i.removeEventListener(o,a));};s(window,"pagehide",n),s(window,"pageshow",e),s(window,"online",e),s(document,"visibilitychange",r);}openTesterMode(){vn({endpoint:this.opts.endpoint,apiKey:this.opts.apiKey,sessionId:this.opts.sessionId});}feedEvent(e){this.watching&&this.send({t:"evt",e});}stop(){this.closed=true;for(let e of this.lifecycleOff)e();this.lifecycleOff=[],this.heartbeat&&clearInterval(this.heartbeat),this.ws?.close(),this.widget?.destroy(),ot(),this.endControl();}wsUrl(){return `${this.opts.endpoint.replace(/^http/,"ws").replace(/\/$/,"")}/ws/live?key=${encodeURIComponent(this.opts.apiKey)}`}connect(){if(this.closed)return;let e=this.ws?.readyState;if(e===WebSocket.OPEN||e===WebSocket.CONNECTING)return;let n;try{n=new WebSocket(this.wsUrl());}catch{return}this.ws=n,n.onopen=()=>{this.send({t:"hello",sessionId:this.opts.sessionId,claim:this.claim,url:location.href,identity:this.opts.getIdentity(),meta:this.opts.getMeta()}),this.heartbeat=setInterval(()=>this.send({t:"ping"}),Ss);},n.onmessage=r=>{let s;try{s=JSON.parse(String(r.data));}catch{return}s.t==="watch"?(this.watching=!!s.on,s.on?(this.send({t:"evt",e:{type:4,timestamp:Date.now(),data:{href:location.href,width:window.innerWidth,height:window.innerHeight}}}),this.opts.onWatchStart()):this.endControl()):s.t==="chat"&&typeof s.text=="string"?this.widget?.receive(s.text):s.t==="control-request"?this.onControlRequest():s.t==="control-cmd"&&s.cmd?this.control?.apply(s.cmd):s.t==="control-end"&&this.endControl();},n.onclose=()=>{this.heartbeat&&clearInterval(this.heartbeat),this.watching=false,this.closed||setTimeout(()=>this.connect(),Es);},n.onerror=()=>n.close();}sendChat(e){this.send({t:"chat",text:e});}onControlRequest(){this.opts.remoteControl===false||this.control||Rs(()=>this.grantControl(),()=>this.send({t:"control",on:false}));}grantControl(){this.control||(this.send({t:"control",on:true}),this.control=new Ct(()=>{this.send({t:"control",on:false}),this.endControl();}));}endControl(){this.control?.destroy(),this.control=void 0;}send(e){this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify(e));}patchHistory(){Ge(()=>this.send({t:"nav",url:location.href}));}},Et=class{root;unshield;panel;log;badge;open=false;onSend;constructor(e){let{chat:n,onTester:r}=e;if(this.onSend=e.onSend,Rt(),this.root=O("div","ro-live-root"),this.root.setAttribute("data-ignore",""),n&&this.buildChat(),r){let s=O("button","ro-live-tester-launcher");s.type="button",s.setAttribute("aria-label","Report a bug (tester)"),s.title="Tester tools",s.textContent="\u{1F41E}",s.onclick=()=>r(),this.root.append(s);}this.isolateFromHost(),document.body.appendChild(this.root);}isolateFromHost(){this.unshield=st(this.root,mn);}buildChat(){let e=O("button","ro-live-launcher");e.setAttribute("aria-label","Chat"),e.innerHTML="\u{1F4AC}",this.badge=O("span","ro-live-badge"),this.badge.style.display="none",e.appendChild(this.badge),e.onclick=()=>this.toggle(),this.panel=O("div","ro-live-panel");let n=O("div","ro-live-header");n.textContent="Chat with us",this.log=O("div","ro-live-log");let r=O("form","ro-live-form"),s=O("input","ro-live-input");s.placeholder="Type a message\u2026";let i=O("button","ro-live-send");i.type="submit",i.textContent="Send",r.append(s,i),r.onsubmit=o=>{o.preventDefault();let a=s.value.trim();a&&(s.value="",this.append(a,"me"),this.onSend(a));},this.panel.append(n,this.log,r),this.panel.style.display="none",this.root.append(this.panel,e);}toggle(){this.panel&&(this.open=!this.open,this.panel.style.display=this.open?"flex":"none",this.open&&this.badge&&(this.badge.style.display="none",this.badge.textContent=""));}receive(e){if(!(!this.log||!this.badge)&&(this.append(e,"agent"),!this.open)){let n=(parseInt(this.badge.textContent||"0",10)||0)+1;this.badge.textContent=String(n),this.badge.style.display="grid";}}append(e,n){if(!this.log)return;let r=O("div",`ro-live-msg ro-live-${n}`);r.textContent=e,this.log.appendChild(r),this.log.scrollTop=this.log.scrollHeight;}destroy(){this.unshield?.(),this.root.remove();}};function Rs(t,e){Rt();let n=O("div","ro-ctl-consent");n.setAttribute("data-ignore","");let r=O("div","ro-ctl-card");r.innerHTML='<div class="ro-ctl-title">Allow support to control your screen?</div><div class="ro-ctl-body">A support agent is asking to take control of this page to help you. They can move your cursor, click, scroll and type. You can stop this at any time.</div>';let s=O("div","ro-ctl-actions"),i=O("button","ro-ctl-btn ro-ctl-decline");i.textContent="Not now";let o=O("button","ro-ctl-btn ro-ctl-allow");o.textContent="Allow control",s.append(i,o),r.appendChild(s),n.appendChild(r),document.body.appendChild(n);let a=()=>n.remove();i.onclick=()=>{a(),e();},o.onclick=()=>{a(),t();};}var Ct=class{constructor(e){this.onStop=e;Rt(),this.banner=O("div","ro-ctl-banner"),this.banner.setAttribute("data-ignore","");let n=O("span","ro-ctl-banner-text");n.textContent="A support agent is controlling your screen";let r=O("button","ro-ctl-stop");r.textContent="Stop",r.onclick=()=>this.onStop(),this.banner.append(n,r),this.cursor=O("div","ro-ctl-cursor"),this.cursor.setAttribute("data-ignore",""),this.cursor.innerHTML='<span class="ro-ctl-cursor-label">Agent</span>',document.body.append(this.banner,this.cursor);}onStop;banner;cursor;apply(e){switch(e.c){case "cursor":this.moveCursor(e.x,e.y);break;case "click":this.moveCursor(e.x,e.y),this.clickAt(e.x*window.innerWidth,e.y*window.innerHeight);break;case "scroll":window.scrollBy({left:e.x,top:e.y,behavior:"auto"});break;case "key":this.typeKey(e.key);break;case "nav":e.url&&e.url!==location.href&&/^https?:\/\//i.test(e.url)&&(location.href=e.url);break}}moveCursor(e,n){this.cursor.style.left=`${e*window.innerWidth}px`,this.cursor.style.top=`${n*window.innerHeight}px`;}clickAt(e,n){let r=document.elementFromPoint(e,n);if(!r||this.isOurs(r))return;let s={bubbles:true,cancelable:true,clientX:e,clientY:n,view:window};r.dispatchEvent(new MouseEvent("mousedown",s)),r.dispatchEvent(new MouseEvent("mouseup",s)),r.dispatchEvent(new MouseEvent("click",s));let i=r.tagName;(i==="INPUT"||i==="TEXTAREA"||i==="SELECT"||r.isContentEditable)&&r.focus(),this.pulse(e,n);}typeKey(e){let n=document.activeElement;if(!(!n||this.isOurs(n)||!(n.tagName==="INPUT"||n.tagName==="TEXTAREA"))&&!(n.tagName==="INPUT"&&n.type==="password")){if(e==="Enter"){n.dispatchEvent(new KeyboardEvent("keydown",{key:"Enter",bubbles:true})),n.form?.requestSubmit?.();return}if(e==="Backspace")n.value=n.value.slice(0,-1);else if(e.length===1)n.value+=e;else return;n.dispatchEvent(new Event("input",{bubbles:true})),n.dispatchEvent(new Event("change",{bubbles:true}));}}pulse(e,n){let r=O("div","ro-ctl-pulse");r.setAttribute("data-ignore",""),r.style.left=`${e}px`,r.style.top=`${n}px`,document.body.appendChild(r),setTimeout(()=>r.remove(),600);}isOurs(e){return !!e.closest("[data-ignore]")}destroy(){this.banner.remove(),this.cursor.remove();}};function O(t,e){let n=document.createElement(t);return n.className=e,n}var bn=false;function Rt(){if(bn)return;bn=true;let t=document.createElement("style");t.setAttribute("data-ignore",""),t.textContent=`
3
+ .ro-live-root{position:fixed;right:20px;bottom:20px;max-width:calc(100vw - 24px);z-index:2147483000;pointer-events:auto;font-family:system-ui,-apple-system,sans-serif;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
4
+ .ro-live-launcher{width:56px;height:56px;border-radius:50%;border:none;background:#6366f1;color:#fff;font-size:24px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25);position:relative}
5
+ .ro-live-badge{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;border-radius:10px;background:#ef4444;color:#fff;font-size:12px;display:grid;place-items:center;padding:0 5px}
6
+ /* Caps keep the panel inside a small phone viewport (a 320px panel plus
7
+ the 20px offsets overflows an iPhone SE) without changing the desktop look. */
8
+ .ro-live-panel{width:min(320px,calc(100vw - 32px));height:min(420px,calc(100vh - 160px));background:#fff;color:#111;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.28);flex-direction:column;overflow:hidden}
9
+ .ro-live-header{padding:14px 16px;background:#6366f1;color:#fff;font-weight:600}
10
+ .ro-live-log{flex:1;padding:12px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;background:#f7f8fa}
11
+ .ro-live-msg{max-width:78%;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.35;word-break:break-word}
12
+ .ro-live-me{align-self:flex-end;background:#6366f1;color:#fff;border-bottom-right-radius:4px}
13
+ .ro-live-agent{align-self:flex-start;background:#e8eaf1;color:#111;border-bottom-left-radius:4px}
14
+ .ro-live-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e3e6ee;background:#fff}
15
+ .ro-live-input{flex:1;border:1px solid #cdd2df;border-radius:10px;padding:9px 12px;font-size:14px;outline:none}
16
+ .ro-live-send{border:none;background:#6366f1;color:#fff;border-radius:10px;padding:0 14px;font-size:14px;cursor:pointer}
17
+ .ro-live-tester-launcher{width:44px;height:44px;border-radius:50%;border:none;background:#0d9488;color:#fff;font-size:20px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25);display:grid;place-items:center;padding:0;line-height:1}
18
+ .ro-live-tester-launcher:hover{background:#0f766e}
19
+ .ro-ctl-consent{position:fixed;inset:0;z-index:2147483600;pointer-events:auto;background:rgba(10,14,22,.55);display:grid;place-items:center;font-family:system-ui,-apple-system,sans-serif}
20
+ .ro-ctl-card{width:min(420px,92vw);background:#fff;color:#111;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.35);padding:22px}
21
+ .ro-ctl-title{font-size:17px;font-weight:700;margin-bottom:8px}
22
+ .ro-ctl-body{font-size:14px;line-height:1.5;color:#444}
23
+ .ro-ctl-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
24
+ .ro-ctl-btn{border:none;border-radius:10px;padding:10px 16px;font-size:14px;font-weight:600;cursor:pointer}
25
+ .ro-ctl-decline{background:#eceef4;color:#333}
26
+ .ro-ctl-allow{background:#6366f1;color:#fff}
27
+ .ro-ctl-banner{position:fixed;top:0;left:0;right:0;z-index:2147483500;pointer-events:auto;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;gap:14px;padding:9px 16px;font-family:system-ui,-apple-system,sans-serif;font-size:13px;box-shadow:0 2px 12px rgba(0,0,0,.3)}
28
+ .ro-ctl-banner-text::before{content:'\u25CF';color:#f87171;margin-right:7px}
29
+ .ro-ctl-stop{border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;border-radius:8px;padding:4px 12px;font-size:13px;font-weight:600;cursor:pointer}
30
+ .ro-ctl-cursor{position:fixed;z-index:2147483400;width:14px;height:14px;pointer-events:none;transform:translate(-2px,-2px);transition:left .06s linear,top .06s linear}
31
+ .ro-ctl-cursor::before{content:'';position:absolute;width:0;height:0;border-left:10px solid #6366f1;border-top:6px solid transparent;border-bottom:6px solid transparent;transform:rotate(-38deg)}
32
+ .ro-ctl-cursor-label{position:absolute;left:14px;top:12px;background:#6366f1;color:#fff;font:600 11px system-ui,sans-serif;padding:1px 6px;border-radius:6px;white-space:nowrap}
33
+ .ro-ctl-pulse{position:fixed;z-index:2147483400;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:rgba(99,102,241,.5);pointer-events:none;animation:ro-ctl-pulse .6s ease-out forwards}
34
+ @keyframes ro-ctl-pulse{from{transform:scale(.4);opacity:.9}to{transform:scale(2.6);opacity:0}}
35
+ `,document.head.appendChild(t);}function wn(){let t=document.cookie.match(/(?:^|;\s*)_ga=([^;]+)/);if(!t)return;let e=decodeURIComponent(t[1]).split(".");if(!(e.length<4))return `${e[e.length-2]}.${e[e.length-1]}`}function _n(t){let e=window.gtag;if(typeof e=="function")try{e("event","replayops_session",{replayops_session_id:t});}catch{}}function Mt(t,e,n,r){return {entryUrl:r,currentUrl:location.href,referrer:document.referrer,device:yt(navigator.userAgent),screen:{width:window.innerWidth||document.documentElement?.clientWidth||window.screen?.width||1,height:window.innerHeight||document.documentElement?.clientHeight||window.screen?.height||1,dpr:window.devicePixelRatio||1},language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,environment:t,releaseVersion:e,sdkVersion:n}}var It="replayops:rerun";function Ms(t){switch((t.inputType??"text").toLowerCase()){case "email":return "rerun@replayops.test";case "password":return "ReRunTest!12345";case "tel":case "number":return "4242424242";default:return "ReplayOps re-run"}}function Is(){if(/ro_rerun=/.test(location.hash))return location.hash;try{let t=performance.getEntriesByType("navigation")[0];if(t&&/ro_rerun=/.test(t.name))return new URL(t.name).hash}catch{}return ""}function kn(t){let e=/ro_rerun=([^&]+)/.exec(t);if(!e)return null;let[n,r]=e[1].split("|");if(!n||!r)return null;let s=decodeURIComponent(n).replace(/\/$/,"");try{let i=new URL(s);if(i.protocol!=="https:"&&i.protocol!=="http:")return null;let o=i.hostname==="localhost"||i.hostname==="127.0.0.1";if(location.protocol==="https:"&&i.protocol!=="https:"&&!o)return null}catch{return null}return {api:s,token:r}}function W(t,e,n){let r=document.createElement(t);return r.setAttribute("style",e),n&&(r.textContent=n),r}var Os="position:fixed;z-index:2147483646;bottom:16px;left:16px;max-width:340px;padding:14px 16px;background:#0f172a;color:#f1f5f9;border-radius:12px;font:13px/1.45 system-ui,sans-serif;box-shadow:0 8px 30px rgba(0,0,0,.35);",ct="margin-top:10px;margin-right:8px;padding:6px 14px;border:none;border-radius:8px;cursor:pointer;font:600 13px system-ui,sans-serif;background:#2ec2b3;color:#04211d;",Ve=ct+"background:transparent;color:#94a3b8;border:1px solid #334155;";async function As(t,e){let n=Date.now()+t;for(;!e.stopped&&(Date.now()<n||e.paused);)await new Promise(r=>setTimeout(r,100));}async function Ps(t,e){let n=Date.now()+5e3;for(;Date.now()<n&&!e.stopped;){if(e.paused){await new Promise(r=>setTimeout(r,150));continue}for(let r of t.selectors??[]){let s=[];try{s=[...document.querySelectorAll(r)];}catch{continue}if(!s.length)continue;return (t.text?s.find(o=>(o.textContent??"").replace(/\s+/g," ").trim().includes(t.text)):void 0)??s[0]}if(typeof t.x=="number"&&typeof t.y=="number"){let r=document.elementFromPoint(t.x,t.y);if(r)return r}await new Promise(r=>setTimeout(r,250));}return null}function Ns(t,e){let n=t instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype;Object.getOwnPropertyDescriptor(n,"value")?.set?.call(t,e),t.dispatchEvent(new Event("input",{bubbles:true})),t.dispatchEvent(new Event("change",{bubbles:true}));}function Ls(t){try{let e=new URL(t,location.href);return e.origin===location.origin?e:null}catch{return null}}function $s(t){return t.pathname===location.pathname&&t.search===location.search}async function js(t,e){let n=Date.now()+2e3;for(;!e.stopped;){if($s(t))return true;if(Date.now()>=n)return false;await new Promise(r=>setTimeout(r,100));}return false}function Hs(t){try{sessionStorage.setItem(It,JSON.stringify(t));}catch{}}function Ds(){try{let t=sessionStorage.getItem(It);if(!t)return null;sessionStorage.removeItem(It);let e=JSON.parse(t);return typeof e.token!="string"||typeof e.next!="number"||Date.now()-e.at>6e4?null:kn(`#ro_rerun=${encodeURIComponent(e.api)}|${e.token}`)?e:null}catch{return null}}async function Us(t,e,n,r){let s=r.ok,i=r.failed,o=r.start,a;for(let c=r.start;c<t.steps.length&&!n.stopped;c++){let d=t.steps[c];o=c+1,e.textContent=`Re-run ${c+1}/${t.steps.length}: ${d.label}`;let m=a===void 0?300:d.offsetMs-a;if(a=d.offsetMs,await As(Math.min(Math.max(m,300),2500),n),n.stopped)break;if(d.kind==="open"){s++;continue}if(d.kind==="navigate"&&d.url){let S=Ls(d.url);if(!S){i++;continue}if(await js(S,n)){s++;continue}if(n.stopped)break;return Hs({api:r.api,token:r.token,next:c+1,ok:s+1,failed:i,at:Date.now()}),location.href=S.href,{ok:s,failed:i,done:o,leftPage:true}}let T=await Ps(d,n);if(n.stopped)break;if(!T){i++;continue}T.scrollIntoView({block:"center",behavior:"instant"}),d.kind==="click"?(T.click(),s++):d.kind==="input"&&(Ns(T,d.masked?Ms(d):d.value??""),s++);}return {ok:s,failed:i,done:o}}function Tn(t){let e=Ds(),n=e?{api:e.api,token:e.token}:kn(Is());if(!n)return;if(!e){let s=`replayops:rerun-seen:${n.token}`;try{if(sessionStorage.getItem(s))return;sessionStorage.setItem(s,"1");}catch{}}/ro_rerun=/.test(location.hash)&&history.replaceState(null,"",location.href.replace(/#?ro_rerun=[^&]+&?/,"").replace(/#$/,""));let r=async()=>{let s=W("div",Os),i=W("div","font-weight:700;margin-bottom:4px;","ReplayOps scenario re-run"),o=W("div","color:#cbd5e1;");s.append(i,o);let a=S=>{o.textContent=S;let A=W("button",Ve,"Dismiss");A.addEventListener("click",()=>s.remove()),s.append(A),document.body.appendChild(s);},c;try{let S=await fetch(`${n.api}/v1/public/rerun/${encodeURIComponent(n.token)}`);if(!S.ok)return a(S.status===404||S.status===410?"This re-run link has expired or was revoked. Start a new re-run from the session.":`The scenario could not be loaded (HTTP ${S.status}).`);c=await S.json();}catch{return a(`The scenario could not be loaded: ${new URL(n.api).host} is unreachable from this page.`)}if(!c.steps?.length)return a("This session has no steps that can be replayed.");document.body.appendChild(s);let d=async(S={start:0,ok:0,failed:0})=>{let A={paused:false,stopped:false},ie=false,G=W("button",ct,"Pause"),j=W("button",Ve,"Restart"),k=W("button",Ve,"Stop");s.append(G,j,k),G.addEventListener("click",()=>{A.paused=!A.paused,G.textContent=A.paused?"Resume":"Pause";}),j.addEventListener("click",()=>{ie=true,A.stopped=true;}),k.addEventListener("click",()=>{A.stopped=true;}),S.start===0&&t("replayops_rerun",{sourceSessionId:c.sessionId,steps:c.steps.length});let y=await Us(c,o,A,{...n,...S});if(y.leftPage)return;if(G.remove(),j.remove(),k.remove(),ie)return d();o.textContent=A.stopped?`Re-run stopped at step ${y.done}/${c.steps.length}.`:`Re-run finished: ${y.ok}/${c.steps.length} steps succeeded`+(y.failed?`, ${y.failed} failed.`:".");let C=W("button",ct,"Run again"),R=W("button",Ve,"Dismiss");s.append(C,R),C.addEventListener("click",()=>{C.remove(),R.remove(),d();}),R.addEventListener("click",()=>s.remove());};if(e){d({start:e.next,ok:e.ok,failed:e.failed});return}o.textContent=`${c.steps.length} recorded steps from session ${c.sessionId.slice(0,8)} (via ${new URL(n.api).host}) will be replayed on this page.`;let m=W("button",ct,"Run scenario"),T=W("button",Ve,"Dismiss");s.append(m,T),T.addEventListener("click",()=>s.remove()),m.addEventListener("click",()=>{m.remove(),T.remove(),d();});};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{r();},{once:true}):r();}var Sn="0.1.6",ze=class{config;identity;recorder;transport;live;state="idle";sessionId="";entryUrl="";extraMask=[];extraIgnore=[];policyMaskInputs;policyLiveChat;policyTesterTools;policyLive;policySamplingRate;policySamplingMode;policyUserRules;ruledOut=false;quotaOut=false;init(e){this.config||(this.config=Nt(e),this.identity=new Be,this.sessionId=qe(),this.entryUrl=location.href,this.config.marketingConsent!==void 0&&this.identity.setMarketingConsent(this.config.marketingConsent),!this.identity.isOptedOut()&&(this.config.requireConsent&&!this.identity.hasConsent()||this.bootstrap()));}async bootstrap(){await this.fetchPolicy();let e=Math.min(this.config.samplingRate,this.policySamplingRate??1),n=this.policySamplingMode??"session";if(Dt(e,n,this.identity.anonymous)&&!this.quotaOut){if(await this.ruleVerdict()===false){this.ruledOut=true;return}this.start(),this.watchIdle(),Tn((r,s)=>this.track(r,s));}}lastActivityAt=Date.now();watchIdle(){let e=this.config?.idleTimeoutMs??0;if(e<=0)return;let n=0,r=()=>{let i=Date.now();(this.state==="suspended"||this.state==="recording"&&i-this.lastActivityAt>e)&&this.rotate(),i-n>1e3&&(n=i,this.lastActivityAt=i);};for(let i of ["pointerdown","keydown","mousemove","scroll","touchstart"])window.addEventListener(i,r,{capture:true,passive:true});let s=()=>{this.state==="recording"&&(Date.now()-this.lastActivityAt<=e||(this.recorder?.stop(),this.transport?.stop(),this.live?.stop(),this.recorder=void 0,this.transport=void 0,this.live=void 0,this.state="suspended"));};setInterval(s,6e4),document.addEventListener("visibilitychange",s);}rotate(){this.recorder?.stop(),this.transport?.stop(),this.live?.stop(),this.recorder=void 0,this.transport=void 0,this.live=void 0,this.sessionId=qe(),this.entryUrl=location.href,this.state="idle",this.start();}async fetchPolicy(){if(this.config)try{let e=`${this.config.endpoint.replace(/\/$/,"")}/v1/config`,n=new AbortController,r=setTimeout(()=>n.abort(),1500),s=await fetch(e,{headers:{"x-api-key":this.config.apiKey},signal:n.signal}).finally(()=>clearTimeout(r));if(s.ok){let i=await s.json();i.quotaExceeded===!0&&(this.quotaOut=!0),typeof i.maskInputs=="boolean"&&(this.policyMaskInputs=i.maskInputs),typeof i.samplingRate=="number"&&(this.policySamplingRate=i.samplingRate),(i.samplingMode==="user"||i.samplingMode==="session")&&(this.policySamplingMode=i.samplingMode),(i.userRuleMode==="allow"||i.userRuleMode==="deny")&&Array.isArray(i.userRuleHashes)&&(this.policyUserRules={mode:i.userRuleMode,hashes:i.userRuleHashes.filter(o=>typeof o=="string")}),typeof i.liveChat=="boolean"&&(this.policyLiveChat=i.liveChat),typeof i.testerTools=="boolean"&&(this.policyTesterTools=i.testerTools),typeof i.live=="boolean"&&(this.policyLive=i.live);}}catch{}}start(){if(!this.config||!this.identity||this.state==="recording"||this.ruledOut||this.quotaOut)return;let e={...this.config,maskInputs:this.policyMaskInputs??this.config.maskInputs,live:(this.policyLive??this.config.live)&&this.config.live,liveChat:(this.policyLiveChat??this.config.liveChat)&&this.config.liveChat,testerTools:(this.policyTesterTools??this.config.testerTools)&&this.config.testerTools,maskSelectors:[...this.config.maskSelectors,...this.extraMask],ignoreSelectors:[...this.config.ignoreSelectors,...this.extraIgnore]};if(this.transport=new rt(this.sessionId,{endpoint:e.endpoint,projectId:e.projectId,apiKey:e.apiKey,batchSize:e.batchSize,flushIntervalMs:e.flushIntervalMs,maxBatchBytes:e.maxBatchBytes,getMeta:()=>Mt(e.environment,e.releaseVersion,Sn,this.entryUrl),getIdentity:()=>this.identity.snapshot(),onQuotaExceeded:()=>this.haltForQuota()}),e.live&&(this.live=new at({endpoint:e.endpoint,apiKey:e.apiKey,sessionId:this.sessionId,chat:e.liveChat,tester:e.testerTools,getIdentity:()=>{let n=this.identity.snapshot();return {anonymousId:n.anonymousId,userId:n.userId,email:n.userTraits?.email}},getMeta:()=>{let n=Mt(e.environment,e.releaseVersion,Sn,this.entryUrl).device;return {browser:n.browser,os:n.os,deviceType:n.deviceType}},onWatchStart:()=>this.recorder?.takeFullSnapshot()})),this.recorder=new nt(e,n=>{this.transport.enqueue(n),this.live?.feedEvent(n);},this.sessionId),this.transport.start(),this.recorder.start(),this.live?.start(),this.announceMarketingConsent(),e.googleAnalytics){let n=wn();n&&(this.recorder.emitCustom("$ga",{clientId:n}),_n(this.sessionId));}this.state="recording";}pause(){this.state==="recording"&&(this.recorder?.stop(),this.recorder=void 0,this.live?.stop(),this.live=void 0,this.state="paused");}resume(){this.state==="paused"&&this.start();}stop(){this.recorder?.stop(),this.transport?.stop(),this.live?.stop(),this.recorder=void 0,this.transport=void 0,this.live=void 0,this.state="stopped";}identify(e,n){this.identity?.identify(e,n),this.recorder?.emitCustom("$identify",{userId:e,...n??{}}),this.enforceUserRule();}async ruleVerdict(){if(this.identity)return Ut(this.policyUserRules,this.identity.subjects())}haltForQuota(){this.quotaOut||(this.quotaOut=true,console.info("[replayops] Recording stopped: this organization has used its recording quota for the month."),setTimeout(()=>{this.recorder?.stop(),this.live?.stop(),this.transport?.discard(),this.recorder=void 0,this.transport=void 0,this.live=void 0,this.state="stopped";},0));}async enforceUserRule(){this.ruledOut||!this.policyUserRules||await this.ruleVerdict()===false&&(this.ruledOut=true,this.recorder?.stop(),this.live?.stop(),this.transport?.discard(),this.state="stopped");}track(e,n={}){this.recorder?.emitCustom(e,n);}setUserProperties(e){this.identity?.setUserProperties(e);}mask(e){this.extraMask.push(e);}ignore(e){this.extraIgnore.push(e);}consent(e,n={}){this.identity?.setConsent(e);let r=e?n.marketing:false;r!==void 0&&this.identity?.setMarketingConsent(r),e&&this.state==="idle"&&this.config?this.start():e&&r!==void 0&&this.announceMarketingConsent(),e||this.stop();}announceMarketingConsent(){let e=this.identity?.marketingConsent();e!==void 0&&this.recorder?.emitCustom("$consent",{marketing:e});}optOut(){this.identity?.optOut(),this.stop();}getState(){return this.state}getSessionId(){return this.sessionId}};var En=new ze;typeof window<"u"&&(window.ReplayOps=En);var ea=En;export{ze as a,En as b,ea as c};//# sourceMappingURL=chunk-HO5DNIXX.js.map
36
+ //# sourceMappingURL=chunk-HO5DNIXX.js.map