@open-qa/qa 0.1.0-alpha.3 → 0.1.0-alpha.5

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.
Files changed (118) hide show
  1. package/THIRD_PARTY.md +5 -0
  2. package/drizzle/0017_provider_notifications.sql +13 -0
  3. package/drizzle/0018_classification_registry.sql +39 -0
  4. package/drizzle/0019_trial_audit.sql +44 -0
  5. package/drizzle/meta/0017_snapshot.json +2092 -0
  6. package/drizzle/meta/0018_snapshot.json +2102 -0
  7. package/drizzle/meta/0019_snapshot.json +2451 -0
  8. package/drizzle/meta/_journal.json +21 -0
  9. package/package.json +12 -7
  10. package/src/access-binding.d.ts +8 -0
  11. package/src/access-binding.js +26 -0
  12. package/src/adapters/classification-write.d.ts +87 -0
  13. package/src/adapters/classification-write.js +64 -0
  14. package/src/adapters/e2b-executor.js +4 -0
  15. package/src/adapters/file-run-store.d.ts +186 -41
  16. package/src/adapters/file-run-store.js +87 -19
  17. package/src/adapters/file-trial-audit.d.ts +280 -0
  18. package/src/adapters/file-trial-audit.js +105 -0
  19. package/src/adapters/pg-classification-store.d.ts +98 -20
  20. package/src/adapters/pg-classification-store.js +84 -44
  21. package/src/adapters/pg-run-store.d.ts +1 -0
  22. package/src/adapters/pg-run-store.js +70 -9
  23. package/src/adapters/run-metadata.d.ts +2 -0
  24. package/src/adapters/run-metadata.js +10 -0
  25. package/src/adapters/secret-manager-credential-resolver.d.ts +1 -1
  26. package/src/attempt-audit.d.ts +363 -0
  27. package/src/attempt-audit.js +253 -0
  28. package/src/audit-command.d.ts +13 -0
  29. package/src/audit-command.js +77 -0
  30. package/src/classification-command.d.ts +14 -9
  31. package/src/classification-command.js +119 -26
  32. package/src/classification-model.d.ts +10 -3
  33. package/src/classification-model.js +40 -24
  34. package/src/classification-notifier.d.ts +4 -3
  35. package/src/classification-notifier.js +26 -6
  36. package/src/classify-runs.d.ts +2 -1
  37. package/src/classify-runs.js +39 -3
  38. package/src/cli-program.js +54 -8
  39. package/src/commands.d.ts +1 -0
  40. package/src/commands.js +2 -0
  41. package/src/db/database.d.ts +7 -0
  42. package/src/db/database.js +15 -0
  43. package/src/db/event-chunks.d.ts +38 -29
  44. package/src/db/flow-status.d.ts +7 -3
  45. package/src/db/flow-status.js +240 -16
  46. package/src/db/queries.d.ts +24 -1
  47. package/src/db/queries.js +22 -0
  48. package/src/db/schema.d.ts +333 -4
  49. package/src/db/schema.js +83 -11
  50. package/src/db/trial-audit.d.ts +526 -0
  51. package/src/db/trial-audit.js +84 -0
  52. package/src/doctor-command.js +2 -1
  53. package/src/draft-api.d.ts +25 -421
  54. package/src/draft-api.js +10 -3
  55. package/src/engine.d.ts +47 -4
  56. package/src/engine.js +97 -8
  57. package/src/execution-snapshot.d.ts +1 -1
  58. package/src/execution-snapshot.js +24 -18
  59. package/src/export-command.d.ts +6 -0
  60. package/src/export-command.js +106 -0
  61. package/src/flow-check.js +1 -1
  62. package/src/flow-loader.d.ts +72 -6
  63. package/src/flow-loader.js +76 -12
  64. package/src/http-stage-client.d.ts +98 -1
  65. package/src/independent-model.js +53 -6
  66. package/src/judge-review-store.d.ts +13 -0
  67. package/src/judge-review-store.js +58 -0
  68. package/src/local-host-executor.d.ts +3 -1
  69. package/src/local-host-executor.js +2 -0
  70. package/src/quarantine-command.d.ts +5 -1
  71. package/src/quarantine-command.js +56 -13
  72. package/src/remote-command.js +2 -0
  73. package/src/report/browser.css +1 -1
  74. package/src/report/browser.js +41 -41
  75. package/src/report/ctrf.d.ts +983 -0
  76. package/src/report/ctrf.js +306 -0
  77. package/src/report/generate.d.ts +1 -1
  78. package/src/report/generate.js +29 -6
  79. package/src/report/load.d.ts +738 -42
  80. package/src/report/load.js +78 -6
  81. package/src/result-notifier.js +1 -1
  82. package/src/result-trace.d.ts +62 -0
  83. package/src/result-trace.js +81 -0
  84. package/src/run-command.d.ts +9 -0
  85. package/src/run-command.js +300 -63
  86. package/src/run-setup-error.d.ts +11 -0
  87. package/src/run-setup-error.js +18 -0
  88. package/src/server/app.js +5 -4
  89. package/src/server/index.d.ts +2 -0
  90. package/src/server/index.js +11 -2
  91. package/src/server/repository.d.ts +166 -29
  92. package/src/server/repository.js +14 -2
  93. package/src/studio-command.d.ts +1 -0
  94. package/src/studio-command.js +11 -0
  95. package/src/studio-control.d.ts +5 -0
  96. package/src/studio-control.js +207 -0
  97. package/src/studio-review.d.ts +24 -0
  98. package/src/studio-review.js +64 -0
  99. package/src/studio-worker.d.ts +1 -0
  100. package/src/studio-worker.js +48 -0
  101. package/src/system-config.d.ts +2 -2
  102. package/src/system-config.js +5 -4
  103. package/src/trial-audit.d.ts +630 -0
  104. package/src/trial-audit.js +272 -0
  105. package/src/visual-baseline.d.ts +4 -0
  106. package/src/visual-baseline.js +42 -0
  107. package/src/webhook-notification.d.ts +15 -0
  108. package/src/webhook-notification.js +61 -0
  109. package/src/worker/execution.d.ts +2 -1
  110. package/src/worker/execution.js +122 -3
  111. package/src/worker/index.d.ts +4 -0
  112. package/src/worker/index.js +10 -1
  113. package/src/worker/quarantine-notifications.js +2 -2
  114. package/src/worker/queue.d.ts +6 -2
  115. package/src/worker/queue.js +80 -19
  116. package/src/worker/result-notifications.d.ts +10 -2
  117. package/src/worker/result-notifications.js +120 -23
  118. package/src/worker/store.js +6 -3
@@ -1,7 +1,7 @@
1
- "use strict";(()=>{var Zy=Object.defineProperty;var Ge=(e,r)=>{for(var n in r)Zy(e,n,{get:r[n],enumerable:!0})};var hn={queued:{word:"Queued",tone:"neutral",icon:"clock"},preparing:{word:"Preparing",tone:"info",icon:"dot"},running:{word:"Running",tone:"info",icon:"dot"},checking:{word:"Checking",tone:"info",icon:"dot"},"cleaning-up":{word:"Cleaning up",tone:"info",icon:"dot"},passed:{word:"Passed",tone:"success",icon:"check"},failed:{word:"Failed",tone:"danger",icon:"circle-x"},error:{word:"Error",tone:"danger",icon:"circle-x"},inconclusive:{word:"Inconclusive",tone:"neutral",icon:"circle-help"},canceled:{word:"Canceled",tone:"neutral",icon:"circle-stop"},incomplete:{word:"Incomplete",tone:"neutral",icon:"circle-help"},"result-unavailable":{word:"Result unavailable",tone:"neutral",icon:"circle-help"},"not-started":{word:"Not started",tone:"neutral",icon:"circle"},unknown:{word:"Unknown",tone:"neutral",icon:"circle-help"},inconsistent:{word:"Data inconsistent",tone:"neutral",icon:"circle-alert"}};var m={};Ge(m,{$brand:()=>Go,$input:()=>hc,$output:()=>mc,NEVER:()=>Wo,TimePrecision:()=>bc,ZodAny:()=>cu,ZodArray:()=>pu,ZodBase64:()=>Fi,ZodBase64URL:()=>Vi,ZodBigInt:()=>fr,ZodBigIntFormat:()=>Ji,ZodBoolean:()=>pr,ZodCIDRv4:()=>Li,ZodCIDRv6:()=>Zi,ZodCUID:()=>Ri,ZodCUID2:()=>Ti,ZodCatch:()=>Tu,ZodCodec:()=>nn,ZodCustom:()=>on,ZodCustomStringFormat:()=>ur,ZodDate:()=>Yr,ZodDefault:()=>Ou,ZodDiscriminatedUnion:()=>mu,ZodE164:()=>qi,ZodEmail:()=>Ni,ZodEmoji:()=>Di,ZodEnum:()=>cr,ZodError:()=>yw,ZodExactOptional:()=>ku,ZodFile:()=>_u,ZodFirstPartyTypeKind:()=>Wu,ZodFunction:()=>qu,ZodGUID:()=>Wr,ZodIPv4:()=>Ui,ZodIPv6:()=>Mi,ZodISODate:()=>Si,ZodISODateTime:()=>_i,ZodISODuration:()=>Ii,ZodISOTime:()=>ki,ZodIntersection:()=>hu,ZodIssueCode:()=>xw,ZodJWT:()=>Bi,ZodKSUID:()=>Ai,ZodLazy:()=>Zu,ZodLiteral:()=>$u,ZodMAC:()=>tu,ZodMap:()=>xu,ZodNaN:()=>Cu,ZodNanoID:()=>Pi,ZodNever:()=>uu,ZodNonOptional:()=>Yi,ZodNull:()=>su,ZodNullable:()=>zu,ZodNumber:()=>dr,ZodNumberFormat:()=>zt,ZodObject:()=>en,ZodOptional:()=>Hi,ZodPipe:()=>rn,ZodPrefault:()=>Nu,ZodPreprocess:()=>Au,ZodPromise:()=>Vu,ZodReadonly:()=>Uu,ZodRealError:()=>Se,ZodRecord:()=>ar,ZodSet:()=>wu,ZodString:()=>lr,ZodStringFormat:()=>Q,ZodSuccess:()=>Ru,ZodSymbol:()=>iu,ZodTemplateLiteral:()=>Lu,ZodTransform:()=>Su,ZodTuple:()=>vu,ZodType:()=>F,ZodULID:()=>ji,ZodURL:()=>Hr,ZodUUID:()=>qe,ZodUndefined:()=>ou,ZodUnion:()=>tn,ZodUnknown:()=>lu,ZodVoid:()=>du,ZodXID:()=>Ci,ZodXor:()=>fu,_ZodString:()=>Ei,_default:()=>Eu,_function:()=>Vh,any:()=>xh,array:()=>Qr,base64:()=>nh,base64url:()=>ih,bigint:()=>hh,boolean:()=>nu,catch:()=>ju,check:()=>qh,cidrv4:()=>th,cidrv6:()=>rh,clone:()=>ye,codec:()=>Mh,coerce:()=>Gu,config:()=>oe,core:()=>He,cuid:()=>Wm,cuid2:()=>Gm,custom:()=>Bh,date:()=>$h,decode:()=>Gl,decodeAsync:()=>Xl,describe:()=>Jh,discriminatedUnion:()=>Oh,e164:()=>oh,email:()=>Am,emoji:()=>Bm,encode:()=>Wl,encodeAsync:()=>Kl,endsWith:()=>Ht,enum:()=>Ki,exactOptional:()=>Iu,file:()=>jh,flattenError:()=>Rr,float32:()=>dh,float64:()=>ph,formatError:()=>Tr,fromJSONSchema:()=>Qh,function:()=>Vh,getErrorMap:()=>$w,globalRegistry:()=>he,gt:()=>Fe,gte:()=>xe,guid:()=>Um,hash:()=>uh,hex:()=>lh,hostname:()=>ch,httpUrl:()=>qm,includes:()=>Kt,instanceof:()=>Gh,int:()=>zi,int32:()=>fh,int64:()=>gh,intersection:()=>gu,invertCodec:()=>Lh,ipv4:()=>Ym,ipv6:()=>eh,iso:()=>sr,json:()=>Xh,jwt:()=>sh,keyof:()=>_h,ksuid:()=>Hm,lazy:()=>Fu,length:()=>kt,literal:()=>Th,locales:()=>Fr,looseObject:()=>Ih,looseRecord:()=>Nh,lowercase:()=>Wt,lt:()=>Ze,lte:()=>Oe,mac:()=>Qm,map:()=>Dh,maxLength:()=>St,maxSize:()=>st,meta:()=>Wh,mime:()=>Yt,minLength:()=>Xe,minSize:()=>Ve,multipleOf:()=>ot,nan:()=>Uh,nanoid:()=>Jm,nativeEnum:()=>Rh,negative:()=>fi,never:()=>Wi,nonnegative:()=>hi,nonoptional:()=>Pu,nonpositive:()=>mi,normalize:()=>Qt,null:()=>au,nullable:()=>Kr,nullish:()=>Ch,number:()=>ru,object:()=>Sh,optional:()=>Gr,overwrite:()=>Ce,parse:()=>Vl,parseAsync:()=>ql,partialRecord:()=>Eh,pipe:()=>Oi,positive:()=>pi,prefault:()=>Du,preprocess:()=>Hh,prettifyError:()=>as,promise:()=>Fh,property:()=>gi,readonly:()=>Mu,record:()=>bu,refine:()=>Bu,regex:()=>Jt,regexes:()=>ze,registry:()=>Bn,safeDecode:()=>Yl,safeDecodeAsync:()=>eu,safeEncode:()=>Hl,safeEncodeAsync:()=>Ql,safeParse:()=>Bl,safeParseAsync:()=>Jl,set:()=>Ph,setErrorMap:()=>ww,size:()=>_t,slugify:()=>nr,startsWith:()=>Xt,strictObject:()=>kh,string:()=>Jr,stringFormat:()=>ah,stringbool:()=>Kh,success:()=>Ah,superRefine:()=>Ju,symbol:()=>yh,templateLiteral:()=>Zh,toJSONSchema:()=>xi,toLowerCase:()=>tr,toUpperCase:()=>rr,transform:()=>Xi,treeifyError:()=>ss,trim:()=>er,tuple:()=>yu,uint32:()=>mh,uint64:()=>vh,ulid:()=>Km,undefined:()=>bh,union:()=>Gi,unknown:()=>It,uppercase:()=>Gt,url:()=>Vm,util:()=>R,uuid:()=>Mm,uuidv4:()=>Lm,uuidv6:()=>Zm,uuidv7:()=>Fm,void:()=>wh,xid:()=>Xm,xor:()=>zh});var He={};Ge(He,{$ZodAny:()=>Ca,$ZodArray:()=>Za,$ZodAsyncError:()=>je,$ZodBase64:()=>Ia,$ZodBase64URL:()=>za,$ZodBigInt:()=>An,$ZodBigIntFormat:()=>Pa,$ZodBoolean:()=>Ur,$ZodCIDRv4:()=>_a,$ZodCIDRv6:()=>Sa,$ZodCUID:()=>da,$ZodCUID2:()=>pa,$ZodCatch:()=>oc,$ZodCheck:()=>ee,$ZodCheckBigIntFormat:()=>Zs,$ZodCheckEndsWith:()=>Qs,$ZodCheckGreaterThan:()=>Dn,$ZodCheckIncludes:()=>Hs,$ZodCheckLengthEquals:()=>Ws,$ZodCheckLessThan:()=>Nn,$ZodCheckLowerCase:()=>Ks,$ZodCheckMaxLength:()=>Bs,$ZodCheckMaxSize:()=>Fs,$ZodCheckMimeType:()=>ta,$ZodCheckMinLength:()=>Js,$ZodCheckMinSize:()=>Vs,$ZodCheckMultipleOf:()=>Ms,$ZodCheckNumberFormat:()=>Ls,$ZodCheckOverwrite:()=>ra,$ZodCheckProperty:()=>ea,$ZodCheckRegex:()=>Gs,$ZodCheckSizeEquals:()=>qs,$ZodCheckStartsWith:()=>Ys,$ZodCheckStringFormat:()=>qt,$ZodCheckUpperCase:()=>Xs,$ZodCodec:()=>Lr,$ZodCustom:()=>fc,$ZodCustomStringFormat:()=>Na,$ZodDate:()=>La,$ZodDefault:()=>tc,$ZodDiscriminatedUnion:()=>qa,$ZodE164:()=>Oa,$ZodEmail:()=>aa,$ZodEmoji:()=>la,$ZodEncodeError:()=>et,$ZodEnum:()=>Ka,$ZodError:()=>Pr,$ZodExactOptional:()=>Qa,$ZodFile:()=>Ha,$ZodFunction:()=>uc,$ZodGUID:()=>oa,$ZodIPv4:()=>xa,$ZodIPv6:()=>wa,$ZodISODate:()=>va,$ZodISODateTime:()=>ga,$ZodISODuration:()=>ba,$ZodISOTime:()=>ya,$ZodIntersection:()=>Ba,$ZodJWT:()=>Ea,$ZodKSUID:()=>ha,$ZodLazy:()=>pc,$ZodLiteral:()=>Xa,$ZodMAC:()=>$a,$ZodMap:()=>Wa,$ZodNaN:()=>sc,$ZodNanoID:()=>ua,$ZodNever:()=>Ua,$ZodNonOptional:()=>nc,$ZodNull:()=>ja,$ZodNullable:()=>ec,$ZodNumber:()=>Cn,$ZodNumberFormat:()=>Da,$ZodObject:()=>Pf,$ZodObjectJIT:()=>Fa,$ZodOptional:()=>Mn,$ZodPipe:()=>Ln,$ZodPrefault:()=>rc,$ZodPreprocess:()=>ac,$ZodPromise:()=>dc,$ZodReadonly:()=>cc,$ZodRealError:()=>_e,$ZodRecord:()=>Ja,$ZodRegistry:()=>qn,$ZodSet:()=>Ga,$ZodString:()=>$t,$ZodStringFormat:()=>Y,$ZodSuccess:()=>ic,$ZodSymbol:()=>Ra,$ZodTemplateLiteral:()=>lc,$ZodTransform:()=>Ya,$ZodTuple:()=>Un,$ZodType:()=>Z,$ZodULID:()=>fa,$ZodURL:()=>ca,$ZodUUID:()=>sa,$ZodUndefined:()=>Ta,$ZodUnion:()=>Mr,$ZodUnknown:()=>Aa,$ZodVoid:()=>Ma,$ZodXID:()=>ma,$ZodXor:()=>Va,$brand:()=>Go,$constructor:()=>S,$input:()=>hc,$output:()=>mc,Doc:()=>Ar,JSONSchema:()=>Tm,JSONSchemaGenerator:()=>wi,NEVER:()=>Wo,TimePrecision:()=>bc,_any:()=>Lc,_array:()=>Wc,_base64:()=>ci,_base64url:()=>li,_bigint:()=>Rc,_boolean:()=>Dc,_catch:()=>uw,_check:()=>Rm,_cidrv4:()=>si,_cidrv6:()=>ai,_coercedBigint:()=>Tc,_coercedBoolean:()=>Pc,_coercedDate:()=>Bc,_coercedNumber:()=>kc,_coercedString:()=>vc,_cuid:()=>Qn,_cuid2:()=>ei,_custom:()=>Kc,_date:()=>qc,_decode:()=>wn,_decodeAsync:()=>_n,_default:()=>aw,_discriminatedUnion:()=>Kx,_e164:()=>ui,_email:()=>Jn,_emoji:()=>Hn,_encode:()=>xn,_encodeAsync:()=>$n,_endsWith:()=>Ht,_enum:()=>tw,_file:()=>Gc,_float32:()=>zc,_float64:()=>Oc,_gt:()=>Fe,_gte:()=>xe,_guid:()=>Vr,_includes:()=>Kt,_int:()=>Ic,_int32:()=>Ec,_int64:()=>jc,_intersection:()=>Xx,_ipv4:()=>ii,_ipv6:()=>oi,_isoDate:()=>wc,_isoDateTime:()=>xc,_isoDuration:()=>_c,_isoTime:()=>$c,_jwt:()=>di,_ksuid:()=>ni,_lazy:()=>mw,_length:()=>kt,_literal:()=>nw,_lowercase:()=>Wt,_lt:()=>Ze,_lte:()=>Oe,_mac:()=>yc,_map:()=>Qx,_max:()=>Oe,_maxLength:()=>St,_maxSize:()=>st,_mime:()=>Yt,_min:()=>xe,_minLength:()=>Xe,_minSize:()=>Ve,_multipleOf:()=>ot,_nan:()=>Jc,_nanoid:()=>Yn,_nativeEnum:()=>rw,_negative:()=>fi,_never:()=>Fc,_nonnegative:()=>hi,_nonoptional:()=>cw,_nonpositive:()=>mi,_normalize:()=>Qt,_null:()=>Mc,_nullable:()=>sw,_number:()=>Sc,_optional:()=>ow,_overwrite:()=>Ce,_parse:()=>Lt,_parseAsync:()=>Zt,_pipe:()=>dw,_positive:()=>pi,_promise:()=>hw,_property:()=>gi,_readonly:()=>pw,_record:()=>Yx,_refine:()=>Xc,_regex:()=>Jt,_safeDecode:()=>kn,_safeDecodeAsync:()=>zn,_safeEncode:()=>Sn,_safeEncodeAsync:()=>In,_safeParse:()=>Ft,_safeParseAsync:()=>Vt,_set:()=>ew,_size:()=>_t,_slugify:()=>nr,_startsWith:()=>Xt,_string:()=>gc,_stringFormat:()=>ir,_stringbool:()=>el,_success:()=>lw,_superRefine:()=>Hc,_symbol:()=>Ac,_templateLiteral:()=>fw,_toLowerCase:()=>tr,_toUpperCase:()=>rr,_transform:()=>iw,_trim:()=>er,_tuple:()=>Hx,_uint32:()=>Nc,_uint64:()=>Cc,_ulid:()=>ti,_undefined:()=>Uc,_union:()=>Wx,_unknown:()=>Zc,_uppercase:()=>Gt,_url:()=>qr,_uuid:()=>Wn,_uuidv4:()=>Gn,_uuidv6:()=>Kn,_uuidv7:()=>Xn,_void:()=>Vc,_xid:()=>ri,_xor:()=>Gx,clone:()=>ye,config:()=>oe,createStandardJSONSchemaMethod:()=>or,createToJSONSchemaMethod:()=>tl,decode:()=>hb,decodeAsync:()=>vb,describe:()=>Yc,encode:()=>mb,encodeAsync:()=>gb,extractDefs:()=>ct,finalize:()=>lt,flattenError:()=>Rr,formatError:()=>Tr,globalConfig:()=>bt,globalRegistry:()=>he,initializeContext:()=>at,isValidBase64:()=>ka,isValidBase64URL:()=>Of,isValidJWT:()=>Ef,locales:()=>Fr,meta:()=>Qc,parse:()=>yn,parseAsync:()=>bn,prettifyError:()=>as,process:()=>G,regexes:()=>ze,registry:()=>Bn,safeDecode:()=>bb,safeDecodeAsync:()=>wb,safeEncode:()=>yb,safeEncodeAsync:()=>xb,safeParse:()=>cs,safeParseAsync:()=>ls,toDotPath:()=>af,toJSONSchema:()=>xi,treeifyError:()=>ss,util:()=>R,version:()=>na});var tf,Wo=Object.freeze({status:"aborted"});function S(e,r,n){function o(a,u){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:u,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),r(a,u);let l=s.prototype,c=Object.keys(l);for(let f=0;f<c.length;f++){let d=c[f];d in a||(a[d]=l[d].bind(a))}}let t=n?.Parent??Object;class i extends t{}Object.defineProperty(i,"name",{value:e});function s(a){var u;let l=n?.Parent?new i:this;o(l,a),(u=l._zod).deferred??(u.deferred=[]);for(let c of l._zod.deferred)c();return l}return Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Go=Symbol("zod_brand"),je=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},et=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(tf=globalThis).__zod_globalConfig??(tf.__zod_globalConfig={});var bt=globalThis.__zod_globalConfig;function oe(e){return e&&Object.assign(bt,e),bt}var R={};Ge(R,{BIGINT_FORMAT_RANGES:()=>is,Class:()=>Xo,NUMBER_FORMAT_RANGES:()=>ns,aborted:()=>it,allowsEval:()=>Qo,assert:()=>Jy,assertEqual:()=>Fy,assertIs:()=>qy,assertNever:()=>By,assertNotEqual:()=>Vy,assignProp:()=>rt,base64ToUint8Array:()=>nf,base64urlToUint8Array:()=>lb,cached:()=>Ut,captureStackTrace:()=>vn,cleanEnum:()=>cb,cleanRegex:()=>Or,clone:()=>ye,cloneDef:()=>Gy,createTransparentProxy:()=>eb,defineLazy:()=>V,esc:()=>gn,escapeRegex:()=>Pe,explicitlyAborted:()=>os,extend:()=>nb,finalizeIssue:()=>be,floatSafeRemainder:()=>Ho,getElementAtPath:()=>Ky,getEnumValues:()=>zr,getLengthableOrigin:()=>Dr,getParsedType:()=>Qy,getSizableOrigin:()=>Nr,hexToUint8Array:()=>db,isObject:()=>xt,isPlainObject:()=>nt,issue:()=>Mt,joinValues:()=>I,jsonStringifyReplacer:()=>At,merge:()=>ob,mergeDefs:()=>Ke,normalizeParams:()=>T,nullish:()=>tt,numKeys:()=>Yy,objectClone:()=>Wy,omit:()=>rb,optionalKeys:()=>rs,parsedType:()=>P,partial:()=>sb,pick:()=>tb,prefixIssues:()=>$e,primitiveTypes:()=>ts,promiseAllObject:()=>Xy,propertyKeyTypes:()=>Er,randomString:()=>Hy,required:()=>ab,safeExtend:()=>ib,shallowClone:()=>es,slugify:()=>Yo,stringifyPrimitive:()=>D,uint8ArrayToBase64:()=>of,uint8ArrayToBase64url:()=>ub,uint8ArrayToHex:()=>pb,unwrapMessage:()=>Ir});function Fy(e){return e}function Vy(e){return e}function qy(e){}function By(e){throw new Error("Unexpected value in exhaustive check")}function Jy(e){}function zr(e){let r=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,t])=>r.indexOf(+o)===-1).map(([o,t])=>t)}function I(e,r="|"){return e.map(n=>D(n)).join(r)}function At(e,r){return typeof r=="bigint"?r.toString():r}function Ut(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function tt(e){return e==null}function Or(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Ho(e,r){let n=e/r,o=Math.round(n),t=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<t?0:n-o}var rf=Symbol("evaluating");function V(e,r,n){let o;Object.defineProperty(e,r,{get(){if(o!==rf)return o===void 0&&(o=rf,o=n()),o},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function Wy(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function rt(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ke(...e){let r={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(r,o)}return Object.defineProperties({},r)}function Gy(e){return Ke(e._zod.def)}function Ky(e,r){return r?r.reduce((n,o)=>n?.[o],e):e}function Xy(e){let r=Object.keys(e),n=r.map(o=>e[o]);return Promise.all(n).then(o=>{let t={};for(let i=0;i<r.length;i++)t[r[i]]=o[i];return t})}function Hy(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function gn(e){return JSON.stringify(e)}function Yo(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var vn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function xt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Qo=Ut(()=>{if(bt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function nt(e){if(xt(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let n=r.prototype;return!(xt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function es(e){return nt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Yy(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}var Qy=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Er=new Set(["string","number","symbol"]),ts=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Pe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(e,r,n){let o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function T(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function eb(e){let r;return new Proxy({},{get(n,o,t){return r??(r=e()),Reflect.get(r,o,t)},set(n,o,t,i){return r??(r=e()),Reflect.set(r,o,t,i)},has(n,o){return r??(r=e()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=e()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,t){return r??(r=e()),Reflect.defineProperty(r,o,t)}})}function D(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function rs(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var ns={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},is={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tb(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Ke(e._zod.def,{get shape(){let s={};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=n.shape[a])}return rt(this,"shape",s),s},checks:[]});return ye(e,i)}function rb(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Ke(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete s[a]}return rt(this,"shape",s),s},checks:[]});return ye(e,i)}function nb(e,r){if(!nt(r))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let s in r)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let t=Ke(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return rt(this,"shape",i),i}});return ye(e,t)}function ib(e,r){if(!nt(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Ke(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r};return rt(this,"shape",o),o}});return ye(e,n)}function ob(e,r){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=Ke(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r._zod.def.shape};return rt(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return ye(e,n)}function sb(e,r,n){let t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=Ke(r._zod.def,{get shape(){let a=r._zod.def.shape,u={...a};if(n)for(let l in n){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(u[l]=e?new e({type:"optional",innerType:a[l]}):a[l])}else for(let l in a)u[l]=e?new e({type:"optional",innerType:a[l]}):a[l];return rt(this,"shape",u),u},checks:[]});return ye(r,s)}function ab(e,r,n){let o=Ke(r._zod.def,{get shape(){let t=r._zod.def.shape,i={...t};if(n)for(let s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:t[s]}))}else for(let s in t)i[s]=new e({type:"nonoptional",innerType:t[s]});return rt(this,"shape",i),i}});return ye(r,o)}function it(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function os(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function $e(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Ir(e){return typeof e=="string"?e:e?.message}function be(e,r,n){let o=e.message?e.message:Ir(e.inst?._zod.def?.error?.(e))??Ir(r?.error?.(e))??Ir(n.customError?.(e))??Ir(n.localeError?.(e))??"Invalid input",{inst:t,continue:i,input:s,...a}=e;return a.path??(a.path=[]),a.message=o,r?.reportInput&&(a.input=s),a}function Nr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Dr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function P(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}function Mt(...e){let[r,n,o]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function cb(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function nf(e){let r=atob(e),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function of(e){let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}function lb(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return nf(r+n)}function ub(e){return of(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function db(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let o=0;o<r.length;o+=2)n[o/2]=Number.parseInt(r.slice(o,o+2),16);return n}function pb(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var Xo=class{constructor(...r){}};var sf=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,At,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Pr=S("$ZodError",sf),_e=S("$ZodError",sf,{Parent:Error});function Rr(e,r=n=>n.message){let n={},o=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):o.push(r(t));return{formErrors:o,fieldErrors:n}}function Tr(e,r=n=>n.message){let n={_errors:[]},o=(t,i=[])=>{for(let s of t.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(r(s));else{let u=n,l=0;for(;l<a.length;){let c=a[l];l===a.length-1?(u[c]=u[c]||{_errors:[]},u[c]._errors.push(r(s))):u[c]=u[c]||{_errors:[]},u=u[c],l++}}}};return o(e),n}function ss(e,r=n=>n.message){let n={errors:[]},o=(t,i=[])=>{var s,a;for(let u of t.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>o({issues:l},[...i,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...i,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...i,...u.path]);else{let l=[...i,...u.path];if(l.length===0){n.errors.push(r(u));continue}let c=n,f=0;for(;f<l.length;){let d=l[f],p=f===l.length-1;typeof d=="string"?(c.properties??(c.properties={}),(s=c.properties)[d]??(s[d]={errors:[]}),c=c.properties[d]):(c.items??(c.items=[]),(a=c.items)[d]??(a[d]={errors:[]}),c=c.items[d]),p&&c.errors.push(r(u)),f++}}};return o(e),n}function af(e){let r=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?r.push(`[${o}]`):typeof o=="symbol"?r.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?r.push(`[${JSON.stringify(o)}]`):(r.length&&r.push("."),r.push(o));return r.join("")}function as(e){let r=[],n=[...e.issues].sort((o,t)=>(o.path??[]).length-(t.path??[]).length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${af(o.path)}`);return r.join(`
2
- `)}var Lt=e=>(r,n,o,t)=>{let i=o?{...o,async:!1}:{async:!1},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new je;if(s.issues.length){let a=new(t?.Err??e)(s.issues.map(u=>be(u,i,oe())));throw vn(a,t?.callee),a}return s.value},yn=Lt(_e),Zt=e=>async(r,n,o,t)=>{let i=o?{...o,async:!0}:{async:!0},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new(t?.Err??e)(s.issues.map(u=>be(u,i,oe())));throw vn(a,t?.callee),a}return s.value},bn=Zt(_e),Ft=e=>(r,n,o)=>{let t=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},t);if(i instanceof Promise)throw new je;return i.issues.length?{success:!1,error:new(e??Pr)(i.issues.map(s=>be(s,t,oe())))}:{success:!0,data:i.value}},cs=Ft(_e),Vt=e=>async(r,n,o)=>{let t=o?{...o,async:!0}:{async:!0},i=r._zod.run({value:n,issues:[]},t);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>be(s,t,oe())))}:{success:!0,data:i.value}},ls=Vt(_e),xn=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Lt(e)(r,n,t)},mb=xn(_e),wn=e=>(r,n,o)=>Lt(e)(r,n,o),hb=wn(_e),$n=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Zt(e)(r,n,t)},gb=$n(_e),_n=e=>async(r,n,o)=>Zt(e)(r,n,o),vb=_n(_e),Sn=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Ft(e)(r,n,t)},yb=Sn(_e),kn=e=>(r,n,o)=>Ft(e)(r,n,o),bb=kn(_e),In=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Vt(e)(r,n,t)},xb=In(_e),zn=e=>async(r,n,o)=>Vt(e)(r,n,o),wb=zn(_e);var ze={};Ge(ze,{base64:()=>ks,base64url:()=>On,bigint:()=>Ps,boolean:()=>Ts,browserEmail:()=>Eb,cidrv4:()=>_s,cidrv6:()=>Ss,cuid:()=>us,cuid2:()=>ds,date:()=>Os,datetime:()=>Ns,domain:()=>Pb,duration:()=>gs,e164:()=>zs,email:()=>ys,emoji:()=>bs,extendedDuration:()=>$b,guid:()=>vs,hex:()=>Rb,hostname:()=>Db,html5Email:()=>Ib,httpProtocol:()=>Is,idnEmail:()=>Ob,integer:()=>Rs,ipv4:()=>xs,ipv6:()=>ws,ksuid:()=>ms,lowercase:()=>As,mac:()=>$s,md5_base64:()=>jb,md5_base64url:()=>Cb,md5_hex:()=>Tb,nanoid:()=>hs,null:()=>js,number:()=>En,rfc5322Email:()=>zb,sha1_base64:()=>Ub,sha1_base64url:()=>Mb,sha1_hex:()=>Ab,sha256_base64:()=>Zb,sha256_base64url:()=>Fb,sha256_hex:()=>Lb,sha384_base64:()=>qb,sha384_base64url:()=>Bb,sha384_hex:()=>Vb,sha512_base64:()=>Wb,sha512_base64url:()=>Gb,sha512_hex:()=>Jb,string:()=>Ds,time:()=>Es,ulid:()=>ps,undefined:()=>Cs,unicodeEmail:()=>cf,uppercase:()=>Us,uuid:()=>wt,uuid4:()=>_b,uuid6:()=>Sb,uuid7:()=>kb,xid:()=>fs});var us=/^[cC][0-9a-z]{6,}$/,ds=/^[0-9a-z]+$/,ps=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,fs=/^[0-9a-vA-V]{20}$/,ms=/^[A-Za-z0-9]{27}$/,hs=/^[a-zA-Z0-9_-]{21}$/,gs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,$b=/^[-+]?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)?)??$/,vs=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,wt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_b=wt(4),Sb=wt(6),kb=wt(7),ys=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ib=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,zb=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,cf=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Ob=cf,Eb=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Nb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bs(){return new RegExp(Nb,"u")}var xs=/^(?:(?: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])$/,ws=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$s=e=>{let r=Pe(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},_s=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ss=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ks=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,On=/^[A-Za-z0-9_-]*$/,Db=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Pb=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Is=/^https?$/,zs=/^\+[1-9]\d{6,14}$/,lf="(?:(?:\\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])))",Os=new RegExp(`^${lf}$`);function uf(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Es(e){return new RegExp(`^${uf(e)}$`)}function Ns(e){let r=uf({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${lf}T(?:${o})$`)}var Ds=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Ps=/^-?\d+n?$/,Rs=/^-?\d+$/,En=/^-?\d+(?:\.\d+)?$/,Ts=/^(?:true|false)$/i,js=/^null$/i;var Cs=/^undefined$/i;var As=/^[^A-Z]*$/,Us=/^[^a-z]*$/,Rb=/^[0-9a-fA-F]*$/;function jr(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Cr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Tb=/^[0-9a-fA-F]{32}$/,jb=jr(22,"=="),Cb=Cr(22),Ab=/^[0-9a-fA-F]{40}$/,Ub=jr(27,"="),Mb=Cr(27),Lb=/^[0-9a-fA-F]{64}$/,Zb=jr(43,"="),Fb=Cr(43),Vb=/^[0-9a-fA-F]{96}$/,qb=jr(64,""),Bb=Cr(64),Jb=/^[0-9a-fA-F]{128}$/,Wb=jr(86,"=="),Gb=Cr(86);var ee=S("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),pf={number:"number",bigint:"bigint",object:"date"},Nn=S("$ZodCheckLessThan",(e,r)=>{ee.init(e,r);let n=pf[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Dn=S("$ZodCheckGreaterThan",(e,r)=>{ee.init(e,r);let n=pf[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Ms=S("$ZodCheckMultipleOf",(e,r)=>{ee.init(e,r),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):Ho(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),Ls=S("$ZodCheckNumberFormat",(e,r)=>{ee.init(e,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[t,i]=ns[r.format];e._zod.onattach.push(s=>{let a=s._zod.bag;a.format=r.format,a.minimum=t,a.maximum=i,n&&(a.pattern=Rs)}),e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort});return}}a<t&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!r.abort})}}),Zs=S("$ZodCheckBigIntFormat",(e,r)=>{ee.init(e,r);let[n,o]=is[r.format];e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),e._zod.check=t=>{let i=t.value;i<n&&t.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),i>o&&t.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!r.abort})}}),Fs=S("$ZodCheckMaxSize",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!tt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;t.size<=r.maximum||o.issues.push({origin:Nr(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Vs=S("$ZodCheckMinSize",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!tt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;t.size>=r.minimum||o.issues.push({origin:Nr(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),qs=S("$ZodCheckSizeEquals",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!tt(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=o=>{let t=o.value,i=t.size;if(i===r.size)return;let s=i>r.size;o.issues.push({origin:Nr(t),...s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),Bs=S("$ZodCheckMaxLength",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!tt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;if(t.length<=r.maximum)return;let s=Dr(t);o.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Js=S("$ZodCheckMinLength",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!tt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;if(t.length>=r.minimum)return;let s=Dr(t);o.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),Ws=S("$ZodCheckLengthEquals",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!tt(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=o=>{let t=o.value,i=t.length;if(i===r.length)return;let s=Dr(t),a=i>r.length;o.issues.push({origin:s,...a?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),qt=S("$ZodCheckStringFormat",(e,r)=>{var n,o;ee.init(e,r),e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(o=e._zod).check??(o.check=()=>{})}),Gs=S("$ZodCheckRegex",(e,r)=>{qt.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Ks=S("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=As),qt.init(e,r)}),Xs=S("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Us),qt.init(e,r)}),Hs=S("$ZodCheckIncludes",(e,r)=>{ee.init(e,r);let n=Pe(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,e._zod.onattach.push(t=>{let i=t._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Ys=S("$ZodCheckStartsWith",(e,r)=>{ee.init(e,r);let n=new RegExp(`^${Pe(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:e,continue:!r.abort})}}),Qs=S("$ZodCheckEndsWith",(e,r)=>{ee.init(e,r);let n=new RegExp(`.*${Pe(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:e,continue:!r.abort})}});function df(e,r,n){e.issues.length&&r.issues.push(...$e(n,e.issues))}var ea=S("$ZodCheckProperty",(e,r)=>{ee.init(e,r),e._zod.check=n=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then(t=>df(t,n,r.property));df(o,n,r.property)}}),ta=S("$ZodCheckMimeType",(e,r)=>{ee.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=r.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:e,continue:!r.abort})}}),ra=S("$ZodCheckOverwrite",(e,r)=>{ee.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});var Ar=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let o=r.split(`
1
+ "use strict";(()=>{var Ub=Object.defineProperty;var Ke=(e,r)=>{for(var n in r)Ub(e,n,{get:r[n],enumerable:!0})};var _n={queued:{word:"Queued",tone:"neutral",icon:"clock"},preparing:{word:"Preparing",tone:"info",icon:"dot"},running:{word:"Running",tone:"info",icon:"dot"},checking:{word:"Checking",tone:"info",icon:"dot"},"cleaning-up":{word:"Cleaning up",tone:"info",icon:"dot"},passed:{word:"Passed",tone:"success",icon:"check"},failed:{word:"Failed",tone:"danger",icon:"circle-x"},error:{word:"Error",tone:"danger",icon:"circle-x"},inconclusive:{word:"Inconclusive",tone:"neutral",icon:"circle-help"},canceled:{word:"Canceled",tone:"neutral",icon:"circle-stop"},incomplete:{word:"Incomplete",tone:"neutral",icon:"circle-help"},"result-unavailable":{word:"Result unavailable",tone:"neutral",icon:"circle-help"},"not-started":{word:"Not started",tone:"neutral",icon:"circle"},unknown:{word:"Unknown",tone:"neutral",icon:"circle-help"},inconsistent:{word:"Data inconsistent",tone:"neutral",icon:"circle-alert"}};var d={};Ke(d,{$brand:()=>ds,$input:()=>Dc,$output:()=>Nc,NEVER:()=>us,TimePrecision:()=>jc,ZodAny:()=>ku,ZodArray:()=>Eu,ZodBase64:()=>Hi,ZodBase64URL:()=>Xi,ZodBigInt:()=>fr,ZodBigIntFormat:()=>eo,ZodBoolean:()=>pr,ZodCIDRv4:()=>Gi,ZodCIDRv6:()=>Ki,ZodCUID:()=>Zi,ZodCUID2:()=>Fi,ZodCatch:()=>Xu,ZodCodec:()=>ln,ZodCustom:()=>un,ZodCustomStringFormat:()=>ur,ZodDate:()=>nn,ZodDefault:()=>Bu,ZodDiscriminatedUnion:()=>Nu,ZodE164:()=>Yi,ZodEmail:()=>Ui,ZodEmoji:()=>Mi,ZodEnum:()=>cr,ZodError:()=>h$,ZodExactOptional:()=>Fu,ZodFile:()=>Lu,ZodFirstPartyTypeKind:()=>ud,ZodFunction:()=>ad,ZodGUID:()=>Yr,ZodIPv4:()=>Wi,ZodIPv6:()=>Ji,ZodISODate:()=>Di,ZodISODateTime:()=>Ni,ZodISODuration:()=>Ti,ZodISOTime:()=>Ri,ZodIntersection:()=>Du,ZodIssueCode:()=>v$,ZodJWT:()=>Qi,ZodKSUID:()=>Bi,ZodLazy:()=>id,ZodLiteral:()=>Mu,ZodMAC:()=>yu,ZodMap:()=>Au,ZodNaN:()=>Qu,ZodNanoID:()=>Li,ZodNever:()=>zu,ZodNonOptional:()=>so,ZodNull:()=>_u,ZodNullable:()=>qu,ZodNumber:()=>dr,ZodNumberFormat:()=>Et,ZodObject:()=>sn,ZodOptional:()=>oo,ZodPipe:()=>cn,ZodPrefault:()=>Ju,ZodPreprocess:()=>ed,ZodPromise:()=>sd,ZodReadonly:()=>td,ZodRealError:()=>ke,ZodRecord:()=>ar,ZodSet:()=>Uu,ZodString:()=>lr,ZodStringFormat:()=>Q,ZodSuccess:()=>Hu,ZodSymbol:()=>wu,ZodTemplateLiteral:()=>nd,ZodTransform:()=>Zu,ZodTuple:()=>Tu,ZodType:()=>F,ZodULID:()=>Vi,ZodURL:()=>rn,ZodUUID:()=>qe,ZodUndefined:()=>$u,ZodUnion:()=>an,ZodUnknown:()=>Iu,ZodVoid:()=>Ou,ZodXID:()=>qi,ZodXor:()=>Pu,_ZodString:()=>Ai,_default:()=>Wu,_function:()=>mg,any:()=>Bh,array:()=>on,base64:()=>Oh,base64url:()=>Eh,bigint:()=>Lh,boolean:()=>xu,catch:()=>Yu,check:()=>hg,cidrv4:()=>Ih,cidrv6:()=>zh,clone:()=>be,codec:()=>ug,coerce:()=>dd,config:()=>se,core:()=>Ye,cuid:()=>yh,cuid2:()=>bh,custom:()=>gg,date:()=>Jh,decode:()=>du,decodeAsync:()=>fu,describe:()=>vg,discriminatedUnion:()=>Qh,e164:()=>Ph,email:()=>ch,emoji:()=>gh,encode:()=>uu,encodeAsync:()=>pu,endsWith:()=>Xt,enum:()=>no,exactOptional:()=>Vu,file:()=>sg,flattenError:()=>Ur,float32:()=>jh,float64:()=>Ah,formatError:()=>Mr,fromJSONSchema:()=>Sg,function:()=>mg,getErrorMap:()=>b$,globalRegistry:()=>he,gt:()=>Fe,gte:()=>we,guid:()=>lh,hash:()=>Ch,hex:()=>Th,hostname:()=>Rh,httpUrl:()=>hh,includes:()=>Kt,instanceof:()=>bg,int:()=>Ci,int32:()=>Uh,int64:()=>Zh,intersection:()=>Ru,invertCodec:()=>dg,ipv4:()=>_h,ipv6:()=>kh,iso:()=>sr,json:()=>wg,jwt:()=>Nh,keyof:()=>Gh,ksuid:()=>$h,lazy:()=>od,length:()=>zt,literal:()=>og,locales:()=>Jr,looseObject:()=>Xh,looseRecord:()=>tg,lowercase:()=>Jt,lt:()=>Ze,lte:()=>Oe,mac:()=>Sh,map:()=>rg,maxLength:()=>It,maxSize:()=>lt,meta:()=>yg,mime:()=>Yt,minLength:()=>Xe,minSize:()=>Ve,multipleOf:()=>ct,nan:()=>lg,nanoid:()=>vh,nativeEnum:()=>ig,negative:()=>wi,never:()=>to,nonnegative:()=>_i,nonoptional:()=>Ku,nonpositive:()=>$i,normalize:()=>Qt,null:()=>Su,nullable:()=>en,nullish:()=>ag,number:()=>bu,object:()=>Kh,optional:()=>Qr,overwrite:()=>je,parse:()=>su,parseAsync:()=>au,partialRecord:()=>eg,pipe:()=>ji,positive:()=>xi,prefault:()=>Gu,preprocess:()=>$g,prettifyError:()=>Ss,promise:()=>fg,property:()=>Si,readonly:()=>rd,record:()=>ju,refine:()=>cd,regex:()=>Wt,regexes:()=>ze,registry:()=>Qn,safeDecode:()=>hu,safeDecodeAsync:()=>vu,safeEncode:()=>mu,safeEncodeAsync:()=>gu,safeParse:()=>cu,safeParseAsync:()=>lu,set:()=>ng,setErrorMap:()=>y$,size:()=>kt,slugify:()=>nr,startsWith:()=>Ht,strictObject:()=>Hh,string:()=>Xr,stringFormat:()=>Dh,stringbool:()=>xg,success:()=>cg,superRefine:()=>ld,symbol:()=>Vh,templateLiteral:()=>pg,toJSONSchema:()=>Oi,toLowerCase:()=>tr,toUpperCase:()=>rr,transform:()=>io,treeifyError:()=>_s,trim:()=>er,tuple:()=>Cu,uint32:()=>Mh,uint64:()=>Fh,ulid:()=>xh,undefined:()=>qh,union:()=>ro,unknown:()=>Ot,uppercase:()=>Gt,url:()=>mh,util:()=>R,uuid:()=>uh,uuidv4:()=>dh,uuidv6:()=>ph,uuidv7:()=>fh,void:()=>Wh,xid:()=>wh,xor:()=>Yh});var Ye={};Ke(Ye,{$ZodAny:()=>Qa,$ZodArray:()=>ic,$ZodAsyncError:()=>Ce,$ZodBase64:()=>Va,$ZodBase64URL:()=>qa,$ZodBigInt:()=>Bn,$ZodBigIntFormat:()=>Ka,$ZodBoolean:()=>Vr,$ZodCIDRv4:()=>La,$ZodCIDRv6:()=>Za,$ZodCUID:()=>Oa,$ZodCUID2:()=>Ea,$ZodCatch:()=>$c,$ZodCheck:()=>ee,$ZodCheckBigIntFormat:()=>ia,$ZodCheckEndsWith:()=>ga,$ZodCheckGreaterThan:()=>Mn,$ZodCheckIncludes:()=>ma,$ZodCheckLengthEquals:()=>ua,$ZodCheckLessThan:()=>Un,$ZodCheckLowerCase:()=>pa,$ZodCheckMaxLength:()=>ca,$ZodCheckMaxSize:()=>oa,$ZodCheckMimeType:()=>ya,$ZodCheckMinLength:()=>la,$ZodCheckMinSize:()=>sa,$ZodCheckMultipleOf:()=>ra,$ZodCheckNumberFormat:()=>na,$ZodCheckOverwrite:()=>ba,$ZodCheckProperty:()=>va,$ZodCheckRegex:()=>da,$ZodCheckSizeEquals:()=>aa,$ZodCheckStartsWith:()=>ha,$ZodCheckStringFormat:()=>qt,$ZodCheckUpperCase:()=>fa,$ZodCodec:()=>Br,$ZodCustom:()=>Pc,$ZodCustomStringFormat:()=>Ja,$ZodDate:()=>nc,$ZodDefault:()=>yc,$ZodDiscriminatedUnion:()=>ac,$ZodE164:()=>Ba,$ZodEmail:()=>Sa,$ZodEmoji:()=>Ia,$ZodEncodeError:()=>nt,$ZodEnum:()=>pc,$ZodError:()=>Ar,$ZodExactOptional:()=>gc,$ZodFile:()=>mc,$ZodFunction:()=>zc,$ZodGUID:()=>$a,$ZodIPv4:()=>Aa,$ZodIPv6:()=>Ua,$ZodISODate:()=>Ta,$ZodISODateTime:()=>Ra,$ZodISODuration:()=>ja,$ZodISOTime:()=>Ca,$ZodIntersection:()=>cc,$ZodJWT:()=>Wa,$ZodKSUID:()=>Da,$ZodLazy:()=>Ec,$ZodLiteral:()=>fc,$ZodMAC:()=>Ma,$ZodMap:()=>uc,$ZodNaN:()=>_c,$ZodNanoID:()=>za,$ZodNever:()=>tc,$ZodNonOptional:()=>xc,$ZodNull:()=>Ya,$ZodNullable:()=>vc,$ZodNumber:()=>qn,$ZodNumberFormat:()=>Ga,$ZodObject:()=>nm,$ZodObjectJIT:()=>oc,$ZodOptional:()=>Jn,$ZodPipe:()=>Gn,$ZodPrefault:()=>bc,$ZodPreprocess:()=>Sc,$ZodPromise:()=>Oc,$ZodReadonly:()=>kc,$ZodRealError:()=>Se,$ZodRecord:()=>lc,$ZodRegistry:()=>Yn,$ZodSet:()=>dc,$ZodString:()=>St,$ZodStringFormat:()=>Y,$ZodSuccess:()=>wc,$ZodSymbol:()=>Ha,$ZodTemplateLiteral:()=>Ic,$ZodTransform:()=>hc,$ZodTuple:()=>Wn,$ZodType:()=>Z,$ZodULID:()=>Pa,$ZodURL:()=>ka,$ZodUUID:()=>_a,$ZodUndefined:()=>Xa,$ZodUnion:()=>qr,$ZodUnknown:()=>ec,$ZodVoid:()=>rc,$ZodXID:()=>Na,$ZodXor:()=>sc,$brand:()=>ds,$constructor:()=>S,$input:()=>Dc,$output:()=>Nc,Doc:()=>Fr,JSONSchema:()=>oh,JSONSchemaGenerator:()=>Ei,NEVER:()=>us,TimePrecision:()=>jc,_any:()=>nl,_array:()=>ul,_base64:()=>gi,_base64url:()=>vi,_bigint:()=>Hc,_boolean:()=>Gc,_catch:()=>a$,_check:()=>ih,_cidrv4:()=>mi,_cidrv6:()=>hi,_coercedBigint:()=>Xc,_coercedBoolean:()=>Kc,_coercedDate:()=>cl,_coercedNumber:()=>Fc,_coercedString:()=>Tc,_cuid:()=>ai,_cuid2:()=>ci,_custom:()=>pl,_date:()=>al,_decode:()=>En,_decodeAsync:()=>Nn,_default:()=>i$,_discriminatedUnion:()=>Ww,_e164:()=>yi,_email:()=>ei,_emoji:()=>oi,_encode:()=>On,_encodeAsync:()=>Pn,_endsWith:()=>Xt,_enum:()=>Yw,_file:()=>dl,_float32:()=>qc,_float64:()=>Bc,_gt:()=>Fe,_gte:()=>we,_guid:()=>Gr,_includes:()=>Kt,_int:()=>Vc,_int32:()=>Wc,_int64:()=>Yc,_intersection:()=>Jw,_ipv4:()=>pi,_ipv6:()=>fi,_isoDate:()=>Uc,_isoDateTime:()=>Ac,_isoDuration:()=>Lc,_isoTime:()=>Mc,_jwt:()=>bi,_ksuid:()=>di,_lazy:()=>d$,_length:()=>zt,_literal:()=>e$,_lowercase:()=>Jt,_lt:()=>Ze,_lte:()=>Oe,_mac:()=>Cc,_map:()=>Hw,_max:()=>Oe,_maxLength:()=>It,_maxSize:()=>lt,_mime:()=>Yt,_min:()=>we,_minLength:()=>Xe,_minSize:()=>Ve,_multipleOf:()=>ct,_nan:()=>ll,_nanoid:()=>si,_nativeEnum:()=>Qw,_negative:()=>wi,_never:()=>ol,_nonnegative:()=>_i,_nonoptional:()=>o$,_nonpositive:()=>$i,_normalize:()=>Qt,_null:()=>rl,_nullable:()=>n$,_number:()=>Zc,_optional:()=>r$,_overwrite:()=>je,_parse:()=>Lt,_parseAsync:()=>Zt,_pipe:()=>c$,_positive:()=>xi,_promise:()=>p$,_property:()=>Si,_readonly:()=>l$,_record:()=>Kw,_refine:()=>fl,_regex:()=>Wt,_safeDecode:()=>Rn,_safeDecodeAsync:()=>Cn,_safeEncode:()=>Dn,_safeEncodeAsync:()=>Tn,_safeParse:()=>Ft,_safeParseAsync:()=>Vt,_set:()=>Xw,_size:()=>kt,_slugify:()=>nr,_startsWith:()=>Ht,_string:()=>Rc,_stringFormat:()=>ir,_stringbool:()=>vl,_success:()=>s$,_superRefine:()=>ml,_symbol:()=>el,_templateLiteral:()=>u$,_toLowerCase:()=>tr,_toUpperCase:()=>rr,_transform:()=>t$,_trim:()=>er,_tuple:()=>Gw,_uint32:()=>Jc,_uint64:()=>Qc,_ulid:()=>li,_undefined:()=>tl,_union:()=>qw,_unknown:()=>il,_uppercase:()=>Gt,_url:()=>Kr,_uuid:()=>ti,_uuidv4:()=>ri,_uuidv6:()=>ni,_uuidv7:()=>ii,_void:()=>sl,_xid:()=>ui,_xor:()=>Bw,clone:()=>be,config:()=>se,createStandardJSONSchemaMethod:()=>or,createToJSONSchemaMethod:()=>yl,decode:()=>px,decodeAsync:()=>mx,describe:()=>hl,encode:()=>dx,encodeAsync:()=>fx,extractDefs:()=>dt,finalize:()=>pt,flattenError:()=>Ur,formatError:()=>Mr,globalConfig:()=>wt,globalRegistry:()=>he,initializeContext:()=>ut,isValidBase64:()=>Fa,isValidBase64URL:()=>Qf,isValidJWT:()=>em,locales:()=>Jr,meta:()=>gl,parse:()=>In,parseAsync:()=>zn,prettifyError:()=>Ss,process:()=>K,regexes:()=>ze,registry:()=>Qn,safeDecode:()=>gx,safeDecodeAsync:()=>yx,safeEncode:()=>hx,safeEncodeAsync:()=>vx,safeParse:()=>ks,safeParseAsync:()=>Is,toDotPath:()=>Df,toJSONSchema:()=>Oi,treeifyError:()=>_s,util:()=>R,version:()=>xa});var zf,us=Object.freeze({status:"aborted"});function S(e,r,n){function o(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),r(a,l);let u=s.prototype,c=Object.keys(u);for(let m=0;m<c.length;m++){let p=c[m];p in a||(a[p]=u[p].bind(a))}}let t=n?.Parent??Object;class i extends t{}Object.defineProperty(i,"name",{value:e});function s(a){var l;let u=n?.Parent?new i:this;o(u,a),(l=u._zod).deferred??(l.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(s,"init",{value:o}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var ds=Symbol("zod_brand"),Ce=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},nt=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(zf=globalThis).__zod_globalConfig??(zf.__zod_globalConfig={});var wt=globalThis.__zod_globalConfig;function se(e){return e&&Object.assign(wt,e),wt}var R={};Ke(R,{BIGINT_FORMAT_RANGES:()=>ws,Class:()=>fs,NUMBER_FORMAT_RANGES:()=>xs,aborted:()=>at,allowsEval:()=>gs,assert:()=>Vb,assertEqual:()=>Mb,assertIs:()=>Zb,assertNever:()=>Fb,assertNotEqual:()=>Lb,assignProp:()=>ot,base64ToUint8Array:()=>Ef,base64urlToUint8Array:()=>sx,cached:()=>Ut,captureStackTrace:()=>kn,cleanEnum:()=>ox,cleanRegex:()=>Rr,clone:()=>be,cloneDef:()=>Bb,createTransparentProxy:()=>Xb,defineLazy:()=>V,esc:()=>Sn,escapeRegex:()=>De,explicitlyAborted:()=>$s,extend:()=>ex,finalizeIssue:()=>xe,floatSafeRemainder:()=>ms,getElementAtPath:()=>Wb,getEnumValues:()=>Dr,getLengthableOrigin:()=>jr,getParsedType:()=>Hb,getSizableOrigin:()=>Cr,hexToUint8Array:()=>cx,isObject:()=>$t,isPlainObject:()=>st,issue:()=>Mt,joinValues:()=>I,jsonStringifyReplacer:()=>At,merge:()=>rx,mergeDefs:()=>He,normalizeParams:()=>T,nullish:()=>it,numKeys:()=>Kb,objectClone:()=>qb,omit:()=>Qb,optionalKeys:()=>bs,parsedType:()=>D,partial:()=>nx,pick:()=>Yb,prefixIssues:()=>_e,primitiveTypes:()=>ys,promiseAllObject:()=>Jb,propertyKeyTypes:()=>Tr,randomString:()=>Gb,required:()=>ix,safeExtend:()=>tx,shallowClone:()=>vs,slugify:()=>hs,stringifyPrimitive:()=>N,uint8ArrayToBase64:()=>Pf,uint8ArrayToBase64url:()=>ax,uint8ArrayToHex:()=>lx,unwrapMessage:()=>Nr});function Mb(e){return e}function Lb(e){return e}function Zb(e){}function Fb(e){throw new Error("Unexpected value in exhaustive check")}function Vb(e){}function Dr(e){let r=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,t])=>r.indexOf(+o)===-1).map(([o,t])=>t)}function I(e,r="|"){return e.map(n=>N(n)).join(r)}function At(e,r){return typeof r=="bigint"?r.toString():r}function Ut(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function it(e){return e==null}function Rr(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function ms(e,r){let n=e/r,o=Math.round(n),t=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<t?0:n-o}var Of=Symbol("evaluating");function V(e,r,n){let o;Object.defineProperty(e,r,{get(){if(o!==Of)return o===void 0&&(o=Of,o=n()),o},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function qb(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ot(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function He(...e){let r={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(r,o)}return Object.defineProperties({},r)}function Bb(e){return He(e._zod.def)}function Wb(e,r){return r?r.reduce((n,o)=>n?.[o],e):e}function Jb(e){let r=Object.keys(e),n=r.map(o=>e[o]);return Promise.all(n).then(o=>{let t={};for(let i=0;i<r.length;i++)t[r[i]]=o[i];return t})}function Gb(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function Sn(e){return JSON.stringify(e)}function hs(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var kn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function $t(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gs=Ut(()=>{if(wt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function st(e){if($t(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let n=r.prototype;return!($t(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function vs(e){return st(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Kb(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}var Hb=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Tr=new Set(["string","number","symbol"]),ys=new Set(["string","number","bigint","boolean","symbol","undefined"]);function De(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function be(e,r,n){let o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function T(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Xb(e){let r;return new Proxy({},{get(n,o,t){return r??(r=e()),Reflect.get(r,o,t)},set(n,o,t,i){return r??(r=e()),Reflect.set(r,o,t,i)},has(n,o){return r??(r=e()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=e()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,t){return r??(r=e()),Reflect.defineProperty(r,o,t)}})}function N(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function bs(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var xs={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ws={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Yb(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=He(e._zod.def,{get shape(){let s={};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=n.shape[a])}return ot(this,"shape",s),s},checks:[]});return be(e,i)}function Qb(e,r){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=He(e._zod.def,{get shape(){let s={...e._zod.def.shape};for(let a in r){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete s[a]}return ot(this,"shape",s),s},checks:[]});return be(e,i)}function ex(e,r){if(!st(r))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let s in r)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let t=He(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return ot(this,"shape",i),i}});return be(e,t)}function tx(e,r){if(!st(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=He(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r};return ot(this,"shape",o),o}});return be(e,n)}function rx(e,r){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=He(e._zod.def,{get shape(){let o={...e._zod.def.shape,...r._zod.def.shape};return ot(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return be(e,n)}function nx(e,r,n){let t=r._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=He(r._zod.def,{get shape(){let a=r._zod.def.shape,l={...a};if(n)for(let u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(l[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(let u in a)l[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return ot(this,"shape",l),l},checks:[]});return be(r,s)}function ix(e,r,n){let o=He(r._zod.def,{get shape(){let t=r._zod.def.shape,i={...t};if(n)for(let s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:t[s]}))}else for(let s in t)i[s]=new e({type:"nonoptional",innerType:t[s]});return ot(this,"shape",i),i}});return be(r,o)}function at(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function $s(e,r=0){if(e.aborted===!0)return!0;for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function _e(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Nr(e){return typeof e=="string"?e:e?.message}function xe(e,r,n){let o=e.message?e.message:Nr(e.inst?._zod.def?.error?.(e))??Nr(r?.error?.(e))??Nr(n.customError?.(e))??Nr(n.localeError?.(e))??"Invalid input",{inst:t,continue:i,input:s,...a}=e;return a.path??(a.path=[]),a.message=o,r?.reportInput&&(a.input=s),a}function Cr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function jr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function D(e){let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}function Mt(...e){let[r,n,o]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function ox(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function Ef(e){let r=atob(e),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function Pf(e){let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}function sx(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return Ef(r+n)}function ax(e){return Pf(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function cx(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let o=0;o<r.length;o+=2)n[o/2]=Number.parseInt(r.slice(o,o+2),16);return n}function lx(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var fs=class{constructor(...r){}};var Nf=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,At,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ar=S("$ZodError",Nf),Se=S("$ZodError",Nf,{Parent:Error});function Ur(e,r=n=>n.message){let n={},o=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):o.push(r(t));return{formErrors:o,fieldErrors:n}}function Mr(e,r=n=>n.message){let n={_errors:[]},o=(t,i=[])=>{for(let s of t.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(r(s));else{let l=n,u=0;for(;u<a.length;){let c=a[u];u===a.length-1?(l[c]=l[c]||{_errors:[]},l[c]._errors.push(r(s))):l[c]=l[c]||{_errors:[]},l=l[c],u++}}}};return o(e),n}function _s(e,r=n=>n.message){let n={errors:[]},o=(t,i=[])=>{var s,a;for(let l of t.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>o({issues:u},[...i,...l.path]));else if(l.code==="invalid_key")o({issues:l.issues},[...i,...l.path]);else if(l.code==="invalid_element")o({issues:l.issues},[...i,...l.path]);else{let u=[...i,...l.path];if(u.length===0){n.errors.push(r(l));continue}let c=n,m=0;for(;m<u.length;){let p=u[m],f=m===u.length-1;typeof p=="string"?(c.properties??(c.properties={}),(s=c.properties)[p]??(s[p]={errors:[]}),c=c.properties[p]):(c.items??(c.items=[]),(a=c.items)[p]??(a[p]={errors:[]}),c=c.items[p]),f&&c.errors.push(r(l)),m++}}};return o(e),n}function Df(e){let r=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?r.push(`[${o}]`):typeof o=="symbol"?r.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?r.push(`[${JSON.stringify(o)}]`):(r.length&&r.push("."),r.push(o));return r.join("")}function Ss(e){let r=[],n=[...e.issues].sort((o,t)=>(o.path??[]).length-(t.path??[]).length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${Df(o.path)}`);return r.join(`
2
+ `)}var Lt=e=>(r,n,o,t)=>{let i=o?{...o,async:!1}:{async:!1},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Ce;if(s.issues.length){let a=new(t?.Err??e)(s.issues.map(l=>xe(l,i,se())));throw kn(a,t?.callee),a}return s.value},In=Lt(Se),Zt=e=>async(r,n,o,t)=>{let i=o?{...o,async:!0}:{async:!0},s=r._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new(t?.Err??e)(s.issues.map(l=>xe(l,i,se())));throw kn(a,t?.callee),a}return s.value},zn=Zt(Se),Ft=e=>(r,n,o)=>{let t=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},t);if(i instanceof Promise)throw new Ce;return i.issues.length?{success:!1,error:new(e??Ar)(i.issues.map(s=>xe(s,t,se())))}:{success:!0,data:i.value}},ks=Ft(Se),Vt=e=>async(r,n,o)=>{let t=o?{...o,async:!0}:{async:!0},i=r._zod.run({value:n,issues:[]},t);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>xe(s,t,se())))}:{success:!0,data:i.value}},Is=Vt(Se),On=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Lt(e)(r,n,t)},dx=On(Se),En=e=>(r,n,o)=>Lt(e)(r,n,o),px=En(Se),Pn=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Zt(e)(r,n,t)},fx=Pn(Se),Nn=e=>async(r,n,o)=>Zt(e)(r,n,o),mx=Nn(Se),Dn=e=>(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Ft(e)(r,n,t)},hx=Dn(Se),Rn=e=>(r,n,o)=>Ft(e)(r,n,o),gx=Rn(Se),Tn=e=>async(r,n,o)=>{let t=o?{...o,direction:"backward"}:{direction:"backward"};return Vt(e)(r,n,t)},vx=Tn(Se),Cn=e=>async(r,n,o)=>Vt(e)(r,n,o),yx=Cn(Se);var ze={};Ke(ze,{base64:()=>Fs,base64url:()=>jn,bigint:()=>Ks,boolean:()=>Xs,browserEmail:()=>Ix,cidrv4:()=>Ls,cidrv6:()=>Zs,cuid:()=>zs,cuid2:()=>Os,date:()=>Bs,datetime:()=>Js,domain:()=>Ex,duration:()=>Rs,e164:()=>qs,email:()=>Cs,emoji:()=>js,extendedDuration:()=>bx,guid:()=>Ts,hex:()=>Px,hostname:()=>Ox,html5Email:()=>_x,httpProtocol:()=>Vs,idnEmail:()=>kx,integer:()=>Hs,ipv4:()=>As,ipv6:()=>Us,ksuid:()=>Ns,lowercase:()=>ea,mac:()=>Ms,md5_base64:()=>Dx,md5_base64url:()=>Rx,md5_hex:()=>Nx,nanoid:()=>Ds,null:()=>Ys,number:()=>An,rfc5322Email:()=>Sx,sha1_base64:()=>Cx,sha1_base64url:()=>jx,sha1_hex:()=>Tx,sha256_base64:()=>Ux,sha256_base64url:()=>Mx,sha256_hex:()=>Ax,sha384_base64:()=>Zx,sha384_base64url:()=>Fx,sha384_hex:()=>Lx,sha512_base64:()=>qx,sha512_base64url:()=>Bx,sha512_hex:()=>Vx,string:()=>Gs,time:()=>Ws,ulid:()=>Es,undefined:()=>Qs,unicodeEmail:()=>Rf,uppercase:()=>ta,uuid:()=>_t,uuid4:()=>xx,uuid6:()=>wx,uuid7:()=>$x,xid:()=>Ps});var zs=/^[cC][0-9a-z]{6,}$/,Os=/^[0-9a-z]+$/,Es=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ps=/^[0-9a-vA-V]{20}$/,Ns=/^[A-Za-z0-9]{27}$/,Ds=/^[a-zA-Z0-9_-]{21}$/,Rs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bx=/^[-+]?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)?)??$/,Ts=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,_t=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,xx=_t(4),wx=_t(6),$x=_t(7),Cs=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_x=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Sx=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Rf=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,kx=Rf,Ix=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,zx="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function js(){return new RegExp(zx,"u")}var As=/^(?:(?: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])$/,Us=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ms=e=>{let r=De(e??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},Ls=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Zs=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Fs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,jn=/^[A-Za-z0-9_-]*$/,Ox=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Ex=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Vs=/^https?$/,qs=/^\+[1-9]\d{6,14}$/,Tf="(?:(?:\\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])))",Bs=new RegExp(`^${Tf}$`);function Cf(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ws(e){return new RegExp(`^${Cf(e)}$`)}function Js(e){let r=Cf({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${Tf}T(?:${o})$`)}var Gs=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Ks=/^-?\d+n?$/,Hs=/^-?\d+$/,An=/^-?\d+(?:\.\d+)?$/,Xs=/^(?:true|false)$/i,Ys=/^null$/i;var Qs=/^undefined$/i;var ea=/^[^A-Z]*$/,ta=/^[^a-z]*$/,Px=/^[0-9a-fA-F]*$/;function Lr(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Zr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Nx=/^[0-9a-fA-F]{32}$/,Dx=Lr(22,"=="),Rx=Zr(22),Tx=/^[0-9a-fA-F]{40}$/,Cx=Lr(27,"="),jx=Zr(27),Ax=/^[0-9a-fA-F]{64}$/,Ux=Lr(43,"="),Mx=Zr(43),Lx=/^[0-9a-fA-F]{96}$/,Zx=Lr(64,""),Fx=Zr(64),Vx=/^[0-9a-fA-F]{128}$/,qx=Lr(86,"=="),Bx=Zr(86);var ee=S("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),Af={number:"number",bigint:"bigint",object:"date"},Un=S("$ZodCheckLessThan",(e,r)=>{ee.init(e,r);let n=Af[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Mn=S("$ZodCheckGreaterThan",(e,r)=>{ee.init(e,r);let n=Af[typeof r.value];e._zod.onattach.push(o=>{let t=o._zod.bag,i=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),ra=S("$ZodCheckMultipleOf",(e,r)=>{ee.init(e,r),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):ms(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),na=S("$ZodCheckNumberFormat",(e,r)=>{ee.init(e,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[t,i]=xs[r.format];e._zod.onattach.push(s=>{let a=s._zod.bag;a.format=r.format,a.minimum=t,a.maximum=i,n&&(a.pattern=Hs)}),e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!r.abort});return}}a<t&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!r.abort})}}),ia=S("$ZodCheckBigIntFormat",(e,r)=>{ee.init(e,r);let[n,o]=ws[r.format];e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),e._zod.check=t=>{let i=t.value;i<n&&t.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),i>o&&t.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!r.abort})}}),oa=S("$ZodCheckMaxSize",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!it(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;t.size<=r.maximum||o.issues.push({origin:Cr(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),sa=S("$ZodCheckMinSize",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!it(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;t.size>=r.minimum||o.issues.push({origin:Cr(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),aa=S("$ZodCheckSizeEquals",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!it(t)&&t.size!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=o=>{let t=o.value,i=t.size;if(i===r.size)return;let s=i>r.size;o.issues.push({origin:Cr(t),...s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),ca=S("$ZodCheckMaxLength",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!it(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{let t=o.value;if(t.length<=r.maximum)return;let s=jr(t);o.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),la=S("$ZodCheckMinLength",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!it(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{let t=o.value;if(t.length>=r.minimum)return;let s=jr(t);o.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),ua=S("$ZodCheckLengthEquals",(e,r)=>{var n;ee.init(e,r),(n=e._zod.def).when??(n.when=o=>{let t=o.value;return!it(t)&&t.length!==void 0}),e._zod.onattach.push(o=>{let t=o._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=o=>{let t=o.value,i=t.length;if(i===r.length)return;let s=jr(t),a=i>r.length;o.issues.push({origin:s,...a?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),qt=S("$ZodCheckStringFormat",(e,r)=>{var n,o;ee.init(e,r),e._zod.onattach.push(t=>{let i=t._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(o=e._zod).check??(o.check=()=>{})}),da=S("$ZodCheckRegex",(e,r)=>{qt.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),pa=S("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=ea),qt.init(e,r)}),fa=S("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=ta),qt.init(e,r)}),ma=S("$ZodCheckIncludes",(e,r)=>{ee.init(e,r);let n=De(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,e._zod.onattach.push(t=>{let i=t._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),ha=S("$ZodCheckStartsWith",(e,r)=>{ee.init(e,r);let n=new RegExp(`^${De(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:e,continue:!r.abort})}}),ga=S("$ZodCheckEndsWith",(e,r)=>{ee.init(e,r);let n=new RegExp(`.*${De(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{let t=o._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:e,continue:!r.abort})}});function jf(e,r,n){e.issues.length&&r.issues.push(..._e(n,e.issues))}var va=S("$ZodCheckProperty",(e,r)=>{ee.init(e,r),e._zod.check=n=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then(t=>jf(t,n,r.property));jf(o,n,r.property)}}),ya=S("$ZodCheckMimeType",(e,r)=>{ee.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=r.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:e,continue:!r.abort})}}),ba=S("$ZodCheckOverwrite",(e,r)=>{ee.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});var Fr=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let o=r.split(`
3
3
  `).filter(s=>s),t=Math.min(...o.map(s=>s.length-s.trimStart().length)),i=o.map(s=>s.slice(t)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let r=Function,n=this?.args,t=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...n,t.join(`
4
- `))}};var na={major:4,minor:4,patch:3};var Z=S("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=na;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let t of o)for(let i of t._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(s,a,u)=>{let l=it(s),c;for(let f of a){if(f._zod.def.when){if(os(s)||!f._zod.def.when(s))continue}else if(l)continue;let d=s.issues.length,p=f._zod.check(s);if(p instanceof Promise&&u?.async===!1)throw new je;if(c||p instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await p,s.issues.length!==d&&(l||(l=it(s,d)))});else{if(s.issues.length===d)continue;l||(l=it(s,d))}}return c?c.then(()=>s):s},i=(s,a,u)=>{if(it(s))return s.aborted=!0,s;let l=t(a,o,u);if(l instanceof Promise){if(u.async===!1)throw new je;return l.then(c=>e._zod.parse(c,u))}return e._zod.parse(l,u)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){let l=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return l instanceof Promise?l.then(c=>i(c,s,a)):i(l,s,a)}let u=e._zod.parse(s,a);if(u instanceof Promise){if(a.async===!1)throw new je;return u.then(l=>t(l,o,a))}return t(u,o,a)}}V(e,"~standard",()=>({validate:t=>{try{let i=cs(e,t);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ls(e,t).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),$t=S("$ZodString",(e,r)=>{Z.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ds(e._zod.bag),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Y=S("$ZodStringFormat",(e,r)=>{qt.init(e,r),$t.init(e,r)}),oa=S("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=vs),Y.init(e,r)}),sa=S("$ZodUUID",(e,r)=>{if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=wt(o))}else r.pattern??(r.pattern=wt());Y.init(e,r)}),aa=S("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=ys),Y.init(e,r)}),ca=S("$ZodURL",(e,r)=>{Y.init(e,r),e._zod.check=n=>{try{let o=n.value.trim();if(!r.normalize&&r.protocol?.source===Is.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!r.abort});return}let t=new URL(o);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),r.normalize?n.value=t.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),la=S("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=bs()),Y.init(e,r)}),ua=S("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=hs),Y.init(e,r)}),da=S("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=us),Y.init(e,r)}),pa=S("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=ds),Y.init(e,r)}),fa=S("$ZodULID",(e,r)=>{r.pattern??(r.pattern=ps),Y.init(e,r)}),ma=S("$ZodXID",(e,r)=>{r.pattern??(r.pattern=fs),Y.init(e,r)}),ha=S("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=ms),Y.init(e,r)}),ga=S("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Ns(r)),Y.init(e,r)}),va=S("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Os),Y.init(e,r)}),ya=S("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Es(r)),Y.init(e,r)}),ba=S("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=gs),Y.init(e,r)}),xa=S("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=xs),Y.init(e,r),e._zod.bag.format="ipv4"}),wa=S("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=ws),Y.init(e,r),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),$a=S("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=$s(r.delimiter)),Y.init(e,r),e._zod.bag.format="mac"}),_a=S("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=_s),Y.init(e,r)}),Sa=S("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Ss),Y.init(e,r),e._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[t,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${t}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});function ka(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Ia=S("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=ks),Y.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ka(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function Of(e){if(!On.test(e))return!1;let r=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return ka(n)}var za=S("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=On),Y.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Of(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),Oa=S("$ZodE164",(e,r)=>{r.pattern??(r.pattern=zs),Y.init(e,r)});function Ef(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let t=JSON.parse(atob(o));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}var Ea=S("$ZodJWT",(e,r)=>{Y.init(e,r),e._zod.check=n=>{Ef(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),Na=S("$ZodCustomStringFormat",(e,r)=>{Y.init(e,r),e._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),Cn=S("$ZodNumber",(e,r)=>{Z.init(e,r),e._zod.pattern=e._zod.bag.pattern??En,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let t=n.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return n;let i=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...i?{received:i}:{}}),n}}),Da=S("$ZodNumberFormat",(e,r)=>{Ls.init(e,r),Cn.init(e,r)}),Ur=S("$ZodBoolean",(e,r)=>{Z.init(e,r),e._zod.pattern=Ts,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}let t=n.value;return typeof t=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),An=S("$ZodBigInt",(e,r)=>{Z.init(e,r),e._zod.pattern=Ps,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Pa=S("$ZodBigIntFormat",(e,r)=>{Zs.init(e,r),An.init(e,r)}),Ra=S("$ZodSymbol",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),Ta=S("$ZodUndefined",(e,r)=>{Z.init(e,r),e._zod.pattern=Cs,e._zod.values=new Set([void 0]),e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),ja=S("$ZodNull",(e,r)=>{Z.init(e,r),e._zod.pattern=js,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let t=n.value;return t===null||n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),Ca=S("$ZodAny",(e,r)=>{Z.init(e,r),e._zod.parse=n=>n}),Aa=S("$ZodUnknown",(e,r)=>{Z.init(e,r),e._zod.parse=n=>n}),Ua=S("$ZodNever",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Ma=S("$ZodVoid",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),La=S("$ZodDate",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let t=n.value,i=t instanceof Date;return i&&!Number.isNaN(t.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:t,...i?{received:"Invalid Date"}:{},inst:e}),n}});function mf(e,r,n){e.issues.length&&r.issues.push(...$e(n,e.issues)),r.value[n]=e.value}var Za=S("$ZodArray",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let i=[];for(let s=0;s<t.length;s++){let a=t[s],u=r.element._zod.run({value:a,issues:[]},o);u instanceof Promise?i.push(u.then(l=>mf(l,n,s))):mf(u,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function jn(e,r,n,o,t,i){let s=n in o;if(e.issues.length){if(t&&i&&!s)return;r.issues.push(...$e(n,e.issues))}if(!s&&!t){e.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?s&&(r.value[n]=void 0):r.value[n]=e.value}function Nf(e){let r=Object.keys(e.shape);for(let o of r)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=rs(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function Df(e,r,n,o,t,i){let s=[],a=t.keySet,u=t.catchall._zod,l=u.def.type,c=u.optin==="optional",f=u.optout==="optional";for(let d in r){if(d==="__proto__"||a.has(d))continue;if(l==="never"){s.push(d);continue}let p=u.run({value:r[d],issues:[]},o);p instanceof Promise?e.push(p.then(h=>jn(h,n,d,r,c,f))):jn(p,n,d,r,c,f)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:r,inst:i}),e.length?Promise.all(e).then(()=>n):n}var Pf=S("$ZodObject",(e,r)=>{if(Z.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let a=r.shape;Object.defineProperty(r,"shape",{get:()=>{let u={...a};return Object.defineProperty(r,"shape",{value:u}),u}})}let o=Ut(()=>Nf(r));V(e._zod,"propValues",()=>{let a=r.shape,u={};for(let l in a){let c=a[l]._zod;if(c.values){u[l]??(u[l]=new Set);for(let f of c.values)u[l].add(f)}}return u});let t=xt,i=r.catchall,s;e._zod.parse=(a,u)=>{s??(s=o.value);let l=a.value;if(!t(l))return a.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),a;a.value={};let c=[],f=s.shape;for(let d of s.keys){let p=f[d],h=p._zod.optin==="optional",g=p._zod.optout==="optional",v=p._zod.run({value:l[d],issues:[]},u);v instanceof Promise?c.push(v.then(b=>jn(b,a,d,l,h,g))):jn(v,a,d,l,h,g)}return i?Df(c,l,a,u,o.value,e):c.length?Promise.all(c).then(()=>a):a}}),Fa=S("$ZodObjectJIT",(e,r)=>{Pf.init(e,r);let n=e._zod.parse,o=Ut(()=>Nf(r)),t=d=>{let p=new Ar(["shape","payload","ctx"]),h=o.value,g=$=>{let _=gn($);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};p.write("const input = payload.value;");let v=Object.create(null),b=0;for(let $ of h.keys)v[$]=`key_${b++}`;p.write("const newResult = {};");for(let $ of h.keys){let _=v[$],y=gn($),w=d[$],k=w?._zod?.optin==="optional",O=w?._zod?.optout==="optional";p.write(`const ${_} = ${g($)};`),k&&O?p.write(`
4
+ `))}};var xa={major:4,minor:4,patch:3};var Z=S("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=xa;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let t of o)for(let i of t._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(s,a,l)=>{let u=at(s),c;for(let m of a){if(m._zod.def.when){if($s(s)||!m._zod.def.when(s))continue}else if(u)continue;let p=s.issues.length,f=m._zod.check(s);if(f instanceof Promise&&l?.async===!1)throw new Ce;if(c||f instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await f,s.issues.length!==p&&(u||(u=at(s,p)))});else{if(s.issues.length===p)continue;u||(u=at(s,p))}}return c?c.then(()=>s):s},i=(s,a,l)=>{if(at(s))return s.aborted=!0,s;let u=t(a,o,l);if(u instanceof Promise){if(l.async===!1)throw new Ce;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){let u=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(c=>i(c,s,a)):i(u,s,a)}let l=e._zod.parse(s,a);if(l instanceof Promise){if(a.async===!1)throw new Ce;return l.then(u=>t(u,o,a))}return t(l,o,a)}}V(e,"~standard",()=>({validate:t=>{try{let i=ks(e,t);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Is(e,t).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),St=S("$ZodString",(e,r)=>{Z.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Gs(e._zod.bag),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Y=S("$ZodStringFormat",(e,r)=>{qt.init(e,r),St.init(e,r)}),$a=S("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Ts),Y.init(e,r)}),_a=S("$ZodUUID",(e,r)=>{if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=_t(o))}else r.pattern??(r.pattern=_t());Y.init(e,r)}),Sa=S("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Cs),Y.init(e,r)}),ka=S("$ZodURL",(e,r)=>{Y.init(e,r),e._zod.check=n=>{try{let o=n.value.trim();if(!r.normalize&&r.protocol?.source===Vs.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!r.abort});return}let t=new URL(o);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),r.normalize?n.value=t.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),Ia=S("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=js()),Y.init(e,r)}),za=S("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Ds),Y.init(e,r)}),Oa=S("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=zs),Y.init(e,r)}),Ea=S("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Os),Y.init(e,r)}),Pa=S("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Es),Y.init(e,r)}),Na=S("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Ps),Y.init(e,r)}),Da=S("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Ns),Y.init(e,r)}),Ra=S("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Js(r)),Y.init(e,r)}),Ta=S("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Bs),Y.init(e,r)}),Ca=S("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Ws(r)),Y.init(e,r)}),ja=S("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Rs),Y.init(e,r)}),Aa=S("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=As),Y.init(e,r),e._zod.bag.format="ipv4"}),Ua=S("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Us),Y.init(e,r),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),Ma=S("$ZodMAC",(e,r)=>{r.pattern??(r.pattern=Ms(r.delimiter)),Y.init(e,r),e._zod.bag.format="mac"}),La=S("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Ls),Y.init(e,r)}),Za=S("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Zs),Y.init(e,r),e._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[t,i]=o;if(!i)throw new Error;let s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${t}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});function Fa(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Va=S("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Fs),Y.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Fa(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function Qf(e){if(!jn.test(e))return!1;let r=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return Fa(n)}var qa=S("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=jn),Y.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Qf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),Ba=S("$ZodE164",(e,r)=>{r.pattern??(r.pattern=qs),Y.init(e,r)});function em(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let t=JSON.parse(atob(o));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}var Wa=S("$ZodJWT",(e,r)=>{Y.init(e,r),e._zod.check=n=>{em(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),Ja=S("$ZodCustomStringFormat",(e,r)=>{Y.init(e,r),e._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),qn=S("$ZodNumber",(e,r)=>{Z.init(e,r),e._zod.pattern=e._zod.bag.pattern??An,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let t=n.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return n;let i=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...i?{received:i}:{}}),n}}),Ga=S("$ZodNumberFormat",(e,r)=>{na.init(e,r),qn.init(e,r)}),Vr=S("$ZodBoolean",(e,r)=>{Z.init(e,r),e._zod.pattern=Xs,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}let t=n.value;return typeof t=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),Bn=S("$ZodBigInt",(e,r)=>{Z.init(e,r),e._zod.pattern=Ks,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Ka=S("$ZodBigIntFormat",(e,r)=>{ia.init(e,r),Bn.init(e,r)}),Ha=S("$ZodSymbol",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),Xa=S("$ZodUndefined",(e,r)=>{Z.init(e,r),e._zod.pattern=Qs,e._zod.values=new Set([void 0]),e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),Ya=S("$ZodNull",(e,r)=>{Z.init(e,r),e._zod.pattern=Ys,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let t=n.value;return t===null||n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),Qa=S("$ZodAny",(e,r)=>{Z.init(e,r),e._zod.parse=n=>n}),ec=S("$ZodUnknown",(e,r)=>{Z.init(e,r),e._zod.parse=n=>n}),tc=S("$ZodNever",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),rc=S("$ZodVoid",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),nc=S("$ZodDate",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let t=n.value,i=t instanceof Date;return i&&!Number.isNaN(t.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:t,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Mf(e,r,n){e.issues.length&&r.issues.push(..._e(n,e.issues)),r.value[n]=e.value}var ic=S("$ZodArray",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let i=[];for(let s=0;s<t.length;s++){let a=t[s],l=r.element._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(u=>Mf(u,n,s))):Mf(l,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function Vn(e,r,n,o,t,i){let s=n in o;if(e.issues.length){if(t&&i&&!s)return;r.issues.push(..._e(n,e.issues))}if(!s&&!t){e.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?s&&(r.value[n]=void 0):r.value[n]=e.value}function tm(e){let r=Object.keys(e.shape);for(let o of r)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=bs(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function rm(e,r,n,o,t,i){let s=[],a=t.keySet,l=t.catchall._zod,u=l.def.type,c=l.optin==="optional",m=l.optout==="optional";for(let p in r){if(p==="__proto__"||a.has(p))continue;if(u==="never"){s.push(p);continue}let f=l.run({value:r[p],issues:[]},o);f instanceof Promise?e.push(f.then(h=>Vn(h,n,p,r,c,m))):Vn(f,n,p,r,c,m)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:r,inst:i}),e.length?Promise.all(e).then(()=>n):n}var nm=S("$ZodObject",(e,r)=>{if(Z.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let a=r.shape;Object.defineProperty(r,"shape",{get:()=>{let l={...a};return Object.defineProperty(r,"shape",{value:l}),l}})}let o=Ut(()=>tm(r));V(e._zod,"propValues",()=>{let a=r.shape,l={};for(let u in a){let c=a[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let m of c.values)l[u].add(m)}}return l});let t=$t,i=r.catchall,s;e._zod.parse=(a,l)=>{s??(s=o.value);let u=a.value;if(!t(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};let c=[],m=s.shape;for(let p of s.keys){let f=m[p],h=f._zod.optin==="optional",g=f._zod.optout==="optional",v=f._zod.run({value:u[p],issues:[]},l);v instanceof Promise?c.push(v.then(b=>Vn(b,a,p,u,h,g))):Vn(v,a,p,u,h,g)}return i?rm(c,u,a,l,o.value,e):c.length?Promise.all(c).then(()=>a):a}}),oc=S("$ZodObjectJIT",(e,r)=>{nm.init(e,r);let n=e._zod.parse,o=Ut(()=>tm(r)),t=p=>{let f=new Fr(["shape","payload","ctx"]),h=o.value,g=$=>{let _=Sn($);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};f.write("const input = payload.value;");let v=Object.create(null),b=0;for(let $ of h.keys)v[$]=`key_${b++}`;f.write("const newResult = {};");for(let $ of h.keys){let _=v[$],y=Sn($),w=p[$],k=w?._zod?.optin==="optional",O=w?._zod?.optout==="optional";f.write(`const ${_} = ${g($)};`),k&&O?f.write(`
5
5
  if (${_}.issues.length) {
6
6
  if (${y} in input) {
7
7
  payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
@@ -19,7 +19,7 @@
19
19
  newResult[${y}] = ${_}.value;
20
20
  }
21
21
 
22
- `):k?p.write(`
22
+ `):k?f.write(`
23
23
  if (${_}.issues.length) {
24
24
  payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
25
25
  ...iss,
@@ -35,7 +35,7 @@
35
35
  newResult[${y}] = ${_}.value;
36
36
  }
37
37
 
38
- `):p.write(`
38
+ `):f.write(`
39
39
  const ${_}_present = ${y} in input;
40
40
  if (${_}.issues.length) {
41
41
  payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
@@ -60,62 +60,62 @@
60
60
  }
61
61
  }
62
62
 
63
- `)}p.write("payload.value = newResult;"),p.write("return payload;");let x=p.compile();return($,_)=>x(d,$,_)},i,s=xt,a=!bt.jitless,l=a&&Qo.value,c=r.catchall,f;e._zod.parse=(d,p)=>{f??(f=o.value);let h=d.value;return s(h)?a&&l&&p?.async===!1&&p.jitless!==!0?(i||(i=t(r.shape)),d=i(d,p),c?Df([],h,d,p,f,e):d):n(d,p):(d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d)}});function hf(e,r,n,o){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let t=e.filter(i=>!it(i));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>be(s,o,oe())))}),r)}var Mr=S("$ZodUnion",(e,r)=>{Z.init(e,r),V(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),V(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),V(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),V(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(t=>t._zod.pattern);return new RegExp(`^(${o.map(t=>Or(t.source)).join("|")})$`)}});let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let u=a._zod.run({value:o.value,issues:[]},t);if(u instanceof Promise)s.push(u),i=!0;else{if(u.issues.length===0)return u;s.push(u)}}return i?Promise.all(s).then(a=>hf(a,o,e,t)):hf(s,o,e,t)}});function gf(e,r,n,o){let t=e.filter(i=>i.issues.length===0);return t.length===1?(r.value=t[0].value,r):(t.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>be(s,o,oe())))}):r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1}),r)}var Va=S("$ZodXor",(e,r)=>{Mr.init(e,r),r.inclusive=!1;let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let u=a._zod.run({value:o.value,issues:[]},t);u instanceof Promise?(s.push(u),i=!0):s.push(u)}return i?Promise.all(s).then(a=>gf(a,o,e,t)):gf(s,o,e,t)}}),qa=S("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,Mr.init(e,r);let n=e._zod.parse;V(e._zod,"propValues",()=>{let t={};for(let i of r.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let[a,u]of Object.entries(s)){t[a]||(t[a]=new Set);for(let l of u)t[a].add(l)}}return t});let o=Ut(()=>{let t=r.options,i=new Map;for(let s of t){let a=s._zod.propValues?.[r.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(s)}"`);for(let u of a){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,s)}}return i});e._zod.parse=(t,i)=>{let s=t.value;if(!xt(s))return t.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),t;let a=o.value.get(s?.[r.discriminator]);return a?a._zod.run(t,i):r.unionFallback||i.direction==="backward"?n(t,i):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(o.value.keys()),input:s,path:[r.discriminator],inst:e}),t)}}),Ba=S("$ZodIntersection",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value,i=r.left._zod.run({value:t,issues:[]},o),s=r.right._zod.run({value:t,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([u,l])=>vf(n,u,l)):vf(n,i,s)}});function ia(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(nt(e)&&nt(r)){let n=Object.keys(r),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),t={...e,...r};for(let i of o){let s=ia(e[i],r[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};t[i]=s.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let t=e[o],i=r[o],s=ia(t,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function vf(e,r,n){let o=new Map,t;for(let a of r.issues)if(a.code==="unrecognized_keys"){t??(t=a);for(let u of a.keys)o.has(u)||o.set(u,{}),o.get(u).l=!0}else e.issues.push(a);for(let a of n.issues)if(a.code==="unrecognized_keys")for(let u of a.keys)o.has(u)||o.set(u,{}),o.get(u).r=!0;else e.issues.push(a);let i=[...o].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&t&&e.issues.push({...t,keys:i}),it(e))return e;let s=ia(r.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var Un=S("$ZodTuple",(e,r)=>{Z.init(e,r);let n=r.items;e._zod.parse=(o,t)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],a=yf(n,"optin"),u=yf(n,"optout");if(!r.rest){if(i.length<a)return o.issues.push({code:"too_small",minimum:a,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}let l=new Array(n.length);for(let c=0;c<n.length;c++){let f=n[c]._zod.run({value:i[c],issues:[]},t);f instanceof Promise?s.push(f.then(d=>{l[c]=d})):l[c]=f}if(r.rest){let c=n.length-1,f=i.slice(n.length);for(let d of f){c++;let p=r.rest._zod.run({value:d,issues:[]},t);p instanceof Promise?s.push(p.then(h=>bf(h,o,c))):bf(p,o,c)}}return s.length?Promise.all(s).then(()=>xf(l,o,n,i,u)):xf(l,o,n,i,u)}});function yf(e,r){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[r]!=="optional")return n+1;return 0}function bf(e,r,n){e.issues.length&&r.issues.push(...$e(n,e.issues)),r.value[n]=e.value}function xf(e,r,n,o,t){for(let i=0;i<n.length;i++){let s=e[i],a=i<o.length;if(s.issues.length){if(!a&&i>=t){r.value.length=i;break}r.issues.push(...$e(i,s.issues))}r.value[i]=s.value}for(let i=r.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&r.value[i]===void 0);i--)r.value.length=i;return r}var Ja=S("$ZodRecord",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!nt(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let i=[],s=r.keyType._zod.values;if(s){n.value={};let a=new Set;for(let l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){a.add(typeof l=="number"?l.toString():l);let c=r.keyType._zod.run({value:l,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>be(p,o,oe())),input:l,path:[l],inst:e});continue}let f=c.value,d=r.valueType._zod.run({value:t[l],issues:[]},o);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&n.issues.push(...$e(l,p.issues)),n.value[f]=p.value})):(d.issues.length&&n.issues.push(...$e(l,d.issues)),n.value[f]=d.value)}let u;for(let l in t)a.has(l)||(u=u??[],u.push(l));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:u})}else{n.value={};for(let a of Reflect.ownKeys(t)){if(a==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,a))continue;let u=r.keyType._zod.run({value:a,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&En.test(a)&&u.issues.length){let f=r.keyType._zod.run({value:Number(a),issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(u=f)}if(u.issues.length){r.mode==="loose"?n.value[a]=t[a]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>be(f,o,oe())),input:a,path:[a],inst:e});continue}let c=r.valueType._zod.run({value:t[a],issues:[]},o);c instanceof Promise?i.push(c.then(f=>{f.issues.length&&n.issues.push(...$e(a,f.issues)),n.value[u.value]=f.value})):(c.issues.length&&n.issues.push(...$e(a,c.issues)),n.value[u.value]=c.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Wa=S("$ZodMap",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let i=[];n.value=new Map;for(let[s,a]of t){let u=r.keyType._zod.run({value:s,issues:[]},o),l=r.valueType._zod.run({value:a,issues:[]},o);u instanceof Promise||l instanceof Promise?i.push(Promise.all([u,l]).then(([c,f])=>{wf(c,f,n,s,t,e,o)})):wf(u,l,n,s,t,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function wf(e,r,n,o,t,i,s){e.issues.length&&(Er.has(typeof o)?n.issues.push(...$e(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:t,inst:i,issues:e.issues.map(a=>be(a,s,oe()))})),r.issues.length&&(Er.has(typeof o)?n.issues.push(...$e(o,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:t,inst:i,key:o,issues:r.issues.map(a=>be(a,s,oe()))})),n.value.set(e.value,r.value)}var Ga=S("$ZodSet",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let s of t){let a=r.valueType._zod.run({value:s,issues:[]},o);a instanceof Promise?i.push(a.then(u=>$f(u,n))):$f(a,n)}return i.length?Promise.all(i).then(()=>n):n}});function $f(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var Ka=S("$ZodEnum",(e,r)=>{Z.init(e,r);let n=zr(r.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(t=>Er.has(typeof t)).map(t=>typeof t=="string"?Pe(t):t.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let s=t.value;return o.has(s)||t.issues.push({code:"invalid_value",values:n,input:s,inst:e}),t}}),Xa=S("$ZodLiteral",(e,r)=>{if(Z.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(r.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?Pe(o):o?Pe(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,t)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r.values,input:i,inst:e}),o}}),Ha=S("$ZodFile",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return t instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),Ya=S("$ZodTransform",(e,r)=>{Z.init(e,r),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new et(e.constructor.name);let t=r.transform(n.value,n);if(o.async)return(t instanceof Promise?t:Promise.resolve(t)).then(s=>(n.value=s,n.fallback=!0,n));if(t instanceof Promise)throw new je;return n.value=t,n.fallback=!0,n}});function _f(e,r){return r===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Mn=S("$ZodOptional",(e,r)=>{Z.init(e,r),e._zod.optin="optional",e._zod.optout="optional",V(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),V(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Or(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(r.innerType._zod.optin==="optional"){let t=n.value,i=r.innerType._zod.run(n,o);return i instanceof Promise?i.then(s=>_f(s,t)):_f(i,t)}return n.value===void 0?n:r.innerType._zod.run(n,o)}}),Qa=S("$ZodExactOptional",(e,r)=>{Mn.init(e,r),V(e._zod,"values",()=>r.innerType._zod.values),V(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(n,o)=>r.innerType._zod.run(n,o)}),ec=S("$ZodNullable",(e,r)=>{Z.init(e,r),V(e._zod,"optin",()=>r.innerType._zod.optin),V(e._zod,"optout",()=>r.innerType._zod.optout),V(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Or(n.source)}|null)$`):void 0}),V(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),tc=S("$ZodDefault",(e,r)=>{Z.init(e,r),e._zod.optin="optional",V(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>Sf(i,r)):Sf(t,r)}});function Sf(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var rc=S("$ZodPrefault",(e,r)=>{Z.init(e,r),e._zod.optin="optional",V(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),nc=S("$ZodNonOptional",(e,r)=>{Z.init(e,r),V(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>kf(i,e)):kf(t,e)}});function kf(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var ic=S("$ZodSuccess",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new et("ZodSuccess");let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.issues.length===0,n)):(n.value=t.issues.length===0,n)}}),oc=S("$ZodCatch",(e,r)=>{Z.init(e,r),e._zod.optin="optional",V(e._zod,"optout",()=>r.innerType._zod.optout),V(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(s=>be(s,o,oe()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=t.value,t.issues.length&&(n.value=r.catchValue({...n,error:{issues:t.issues.map(i=>be(i,o,oe()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),sc=S("$ZodNaN",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Ln=S("$ZodPipe",(e,r)=>{Z.init(e,r),V(e._zod,"values",()=>r.in._zod.values),V(e._zod,"optin",()=>r.in._zod.optin),V(e._zod,"optout",()=>r.out._zod.optout),V(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>Pn(s,r.in,o)):Pn(i,r.in,o)}let t=r.in._zod.run(n,o);return t instanceof Promise?t.then(i=>Pn(i,r.out,o)):Pn(t,r.out,o)}});function Pn(e,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Lr=S("$ZodCodec",(e,r)=>{Z.init(e,r),V(e._zod,"values",()=>r.in._zod.values),V(e._zod,"optin",()=>r.in._zod.optin),V(e._zod,"optout",()=>r.out._zod.optout),V(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=r.in._zod.run(n,o);return i instanceof Promise?i.then(s=>Rn(s,r,o)):Rn(i,r,o)}else{let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>Rn(s,r,o)):Rn(i,r,o)}}});function Rn(e,r,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(i=>Tn(e,i,r.out,n)):Tn(e,t,r.out,n)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(i=>Tn(e,i,r.in,n)):Tn(e,t,r.in,n)}}function Tn(e,r,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:r,issues:e.issues},o)}var ac=S("$ZodPreprocess",(e,r)=>{Ln.init(e,r)}),cc=S("$ZodReadonly",(e,r)=>{Z.init(e,r),V(e._zod,"propValues",()=>r.innerType._zod.propValues),V(e._zod,"values",()=>r.innerType._zod.values),V(e._zod,"optin",()=>r.innerType?._zod?.optin),V(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(If):If(t)}});function If(e){return e.value=Object.freeze(e.value),e}var lc=S("$ZodTemplateLiteral",(e,r)=>{Z.init(e,r);let n=[];for(let o of r.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let t=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=t.startsWith("^")?1:0,s=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(i,s))}else if(o===null||ts.has(typeof o))n.push(Pe(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,t)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),o)}),uc=S("$ZodFunction",(e,r)=>(Z.init(e,r),e._def=r,e._zod.def=r,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let t=e._def.input?yn(e._def.input,o):o,i=Reflect.apply(n,this,t);return e._def.output?yn(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let t=e._def.input?await bn(e._def.input,o):o,i=await Reflect.apply(n,this,t);return e._def.output?await bn(e._def.output,i):i}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new Un({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),dc=S("$ZodPromise",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(t=>r.innerType._zod.run({value:t,issues:[]},o))}),pc=S("$ZodLazy",(e,r)=>{Z.init(e,r),V(e._zod,"innerType",()=>{let n=r;return n._cachedInner||(n._cachedInner=r.getter()),n._cachedInner}),V(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),V(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),V(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),V(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),fc=S("$ZodCustom",(e,r)=>{ee.init(e,r),Z.init(e,r),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,t=r.fn(o);if(t instanceof Promise)return t.then(i=>zf(i,n,o,e));zf(t,n,o,e)}});function zf(e,r,n,o){if(!e){let t={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(t.params=o._zod.def.params),r.issues.push(Mt(t))}}var Fr={};Ge(Fr,{ar:()=>Rf,az:()=>Tf,be:()=>Cf,bg:()=>Af,ca:()=>Uf,cs:()=>Mf,da:()=>Lf,de:()=>Zf,el:()=>Ff,en:()=>Zn,eo:()=>Vf,es:()=>qf,fa:()=>Bf,fi:()=>Jf,fr:()=>Wf,frCA:()=>Gf,he:()=>Kf,hr:()=>Xf,hu:()=>Hf,hy:()=>Qf,id:()=>em,is:()=>tm,it:()=>rm,ja:()=>nm,ka:()=>im,kh:()=>om,km:()=>Fn,ko:()=>sm,lt:()=>cm,mk:()=>lm,ms:()=>um,nl:()=>dm,no:()=>pm,ota:()=>fm,pl:()=>hm,ps:()=>mm,pt:()=>gm,ro:()=>vm,ru:()=>bm,sl:()=>xm,sv:()=>wm,ta:()=>$m,th:()=>_m,tr:()=>Sm,ua:()=>km,uk:()=>Vn,ur:()=>Im,uz:()=>zm,vi:()=>Om,yo:()=>Dm,zhCN:()=>Em,zhTW:()=>Nm});var Xb=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`}case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${D(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Rf(){return{localeError:Xb()}}var Hb=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${a}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${D(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Tf(){return{localeError:Hb()}}function jf(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var Yb=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${D(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),u=jf(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),u=jf(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Cf(){return{localeError:Yb()}}var Qb=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${D(t.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Af(){return{localeError:Qb()}}var ex=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${a}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${D(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${I(t.values," o ")}`;case"too_big":{let i=t.inclusive?"com a m\xE0xim":"menys de",s=r(t.origin);return s?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${i} ${t.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"com a m\xEDnim":"m\xE9s de",s=r(t.origin);return s?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${i} ${t.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}};function Uf(){return{localeError:ex()}}var tx=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${a}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${D(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${I(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}};function Mf(){return{localeError:tx()}}var rx=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(t){return e[t]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${a}`:`Ugyldigt input: forventede ${i}, fik ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${D(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${i} ${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For lille: forventede ${a} ${s.verb} ${i} ${t.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}};function Lf(){return{localeError:rx()}}var nx=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${a}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${D(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ist`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Zf(){return{localeError:nx()}}var ix=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(t){return e[t]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${t.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`}case"invalid_value":return t.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${D(t.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.maximum.toString()} ${s.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.minimum.toString()} ${s.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${t.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${t.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${t.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${t.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${t.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Ff(){return{localeError:ix()}}var ox=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(t){return e[t]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return`Invalid input: expected ${i}, received ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${D(t.values[0])}`:`Invalid option: expected one of ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Too big: expected ${t.origin??"value"} to have ${i}${t.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${s.unit}`:`Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function Zn(){return{localeError:ox()}}var sx=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(t){return e[t]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${a}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${D(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${i}${t.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function Vf(){return{localeError:sx()}}var ax=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${D(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${i}${t.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}};function qf(){return{localeError:ax()}}var cx=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${D(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${I(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${I(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Bf(){return{localeError:cx()}}var lx=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${a}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${D(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${t.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${t.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${I(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Jf(){return{localeError:lx()}}var ux=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${a} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${D(t.values[0])} attendu`:`Option invalide : une valeur parmi ${I(t.values,"|")} attendue`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Trop grand : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Trop petit : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Wf(){return{localeError:ux()}}var dx=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${a}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${D(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u2264":"<",s=r(t.origin);return s?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${i}${t.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u2265":">",s=r(t.origin);return s?`Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function Gf(){return{localeError:dx()}}var px=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=l=>l?e[l]:void 0,o=l=>{let c=n(l);return c?c.label:l??e.unknown.label},t=l=>`\u05D4${o(l)}`,i=l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=l=>l?r[l]??null:null,a={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let c=l.expected,f=u[c??""]??o(c),d=P(l.input),p=u[d]??e[d]?.label??d;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(l.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${D(l.values[0])}`;let c=l.values.map(p=>D(p));if(l.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let f=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let c=s(l.origin),f=t(l.origin??"value");if(l.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${c?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let h=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",g=l.inclusive?`${l.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let d=l.inclusive?"<=":"<",p=i(l.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${l.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${l.maximum.toString()}`}case"too_small":{let c=s(l.origin),f=t(l.origin??"value");if(l.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${c?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let h=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let v=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${v}`}let g=l.inclusive?`${l.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let d=l.inclusive?">=":">",p=i(l.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${l.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${l.minimum.toString()}`}case"invalid_format":{let c=l;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${c.pattern}`;let f=a[c.format],d=f?.label??c.format,h=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${d} \u05DC\u05D0 ${h}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${I(l.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Kf(){return{localeError:px()}}var fx=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(t){return e[t]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${t.expected}, a primljeno je ${a}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${a}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${D(t.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Preveliko: o\u010Dekivano da ${a??"vrijednost"} ima ${i}${t.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${a??"vrijednost"} bude ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Premalo: o\u010Dekivano da ${a} ima ${i}${t.minimum.toString()} ${s.unit}`:`Premalo: o\u010Dekivano da ${a} bude ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function Xf(){return{localeError:fx()}}var mx=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${D(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${t.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${i}${t.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Hf(){return{localeError:mx()}}function Yf(e,r,n){return Math.abs(e)===1?r:n}function Bt(e){if(!e)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(r.includes(n)?"\u0576":"\u0568")}var hx=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(t){return e[t]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`}case"invalid_value":return t.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${D(t.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),u=Yf(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),u=Yf(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bt(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bt(t.origin)} \u056C\u056B\u0576\u056B ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??t.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${I(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Bt(t.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Bt(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Qf(){return{localeError:hx()}}var gx=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${D(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function em(){return{localeError:gx()}}var vx=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(t){return e[t]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${D(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${i}${t.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${i}${t.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${I(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}};function tm(){return{localeError:vx()}}var yx=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${a}`:`Input non valido: atteso ${i}, ricevuto ${a}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${D(t.values[0])}`:`Opzione non valida: atteso uno tra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Troppo grande: ${t.origin??"valore"} deve avere ${i}${t.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${I(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function rm(){return{localeError:yx()}}var bx=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${D(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${I(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=r(t.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=r(t.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function nm(){return{localeError:bx()}}var xx=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(t){return e[t]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`}case"invalid_value":return t.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${D(t.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${I(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${t.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function im(){return{localeError:xx()}}var wx=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`}case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${D(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${I(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Fn(){return{localeError:wx()}}function om(){return Fn()}var $x=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${D(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${I(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),u=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${u} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${i}${s}`}case"too_small":{let i=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),u=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${u} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${I(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function sm(){return{localeError:$x()}}var Zr=e=>e.charAt(0).toUpperCase()+e.slice(1);function am(e){let r=Math.abs(e),n=r%10,o=r%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var _x=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(t,i,s,a){let u=e[t]??null;return u===null?u:{unit:u.unit[i],verb:u.verb[a][s?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${i}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${D(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${I(t.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[t.origin]??t.origin,s=r(t.origin,am(Number(t.maximum)),t.inclusive??!1,"smaller");if(s?.verb)return`${Zr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.maximum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Zr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[t.origin]??t.origin,s=r(t.origin,am(Number(t.minimum)),t.inclusive??!1,"bigger");if(s?.verb)return`${Zr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.minimum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Zr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${I(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[t.origin]??t.origin;return`${Zr(i??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function cm(){return{localeError:_x()}}var Sx=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${D(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function lm(){return{localeError:Sx()}}var kx=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${a}`:`Input tidak sah: dijangka ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${D(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: dijangka ${t.origin??"nilai"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: dijangka ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${I(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function um(){return{localeError:kx()}}var Ix=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(t){return e[t]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${i}, ontving ${a}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${D(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} is`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function dm(){return{localeError:Ix()}}var zx=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${a}`:`Ugyldig input: forventet ${i}, fikk ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${D(t.values[0])}`:`Ugyldig valg: forventet en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function pm(){return{localeError:zx()}}var Ox=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${D(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=t;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function fm(){return{localeError:Ox()}}var Ex=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${D(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${I(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function mm(){return{localeError:Ex()}}var Nx=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${a}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${D(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function hm(){return{localeError:Nx()}}var Dx=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${D(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}};function gm(){return{localeError:Dx()}}var Px=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(t){return e[t]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${a}`}case"invalid_value":return t.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${D(t.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} s\u0103 fie ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Prea mic: a\u0219teptat ca ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Prea mic: a\u0219teptat ca ${t.origin} s\u0103 fie ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??t.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${I(t.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${t.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${t.origin}`;default:return"Intrare invalid\u0103"}}};function vm(){return{localeError:Px()}}function ym(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var Rx=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${D(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),u=ym(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),u=ym(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function bm(){return{localeError:Rx()}}var Tx=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${a}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${D(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${i}${t.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function xm(){return{localeError:Tx()}}var jx=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${a}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${D(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function wm(){return{localeError:jx()}}var Cx=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`}case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${D(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${I(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function $m(){return{localeError:Cx()}}var Ax=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${D(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${I(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function _m(){return{localeError:Ax()}}var Ux=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(t){return e[t]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${D(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Sm(){return{localeError:Ux()}}var Mx=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${D(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Vn(){return{localeError:Mx()}}function km(){return Vn()}var Lx=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${D(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${I(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${i}${t.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${i}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Im(){return{localeError:Lx()}}var Zx=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(t){return e[t]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${a}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${D(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function zm(){return{localeError:Zx()}}var Fx=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${D(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${I(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Om(){return{localeError:Fx()}}var Vx=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${D(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Em(){return{localeError:Vx()}}var qx=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${D(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Nm(){return{localeError:qx()}}var Bx=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=P(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${D(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${s.verb} ${i}${t.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.maximum}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${s.verb} ${i}${t.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.minimum}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${I(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Dm(){return{localeError:Bx()}}var Pm,mc=Symbol("ZodOutput"),hc=Symbol("ZodInput"),qn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let o=n[0];return this._map.set(r,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let t={...o,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function Bn(){return new qn}(Pm=globalThis).__zod_globalRegistry??(Pm.__zod_globalRegistry=Bn());var he=globalThis.__zod_globalRegistry;function gc(e,r){return new e({type:"string",...T(r)})}function vc(e,r){return new e({type:"string",coerce:!0,...T(r)})}function Jn(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...T(r)})}function Vr(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...T(r)})}function Wn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...T(r)})}function Gn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...T(r)})}function Kn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...T(r)})}function Xn(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...T(r)})}function qr(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...T(r)})}function Hn(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...T(r)})}function Yn(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...T(r)})}function Qn(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...T(r)})}function ei(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...T(r)})}function ti(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...T(r)})}function ri(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...T(r)})}function ni(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...T(r)})}function ii(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...T(r)})}function oi(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...T(r)})}function yc(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...T(r)})}function si(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...T(r)})}function ai(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...T(r)})}function ci(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...T(r)})}function li(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...T(r)})}function ui(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...T(r)})}function di(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...T(r)})}var bc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function xc(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...T(r)})}function wc(e,r){return new e({type:"string",format:"date",check:"string_format",...T(r)})}function $c(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...T(r)})}function _c(e,r){return new e({type:"string",format:"duration",check:"string_format",...T(r)})}function Sc(e,r){return new e({type:"number",checks:[],...T(r)})}function kc(e,r){return new e({type:"number",coerce:!0,checks:[],...T(r)})}function Ic(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...T(r)})}function zc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...T(r)})}function Oc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...T(r)})}function Ec(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...T(r)})}function Nc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...T(r)})}function Dc(e,r){return new e({type:"boolean",...T(r)})}function Pc(e,r){return new e({type:"boolean",coerce:!0,...T(r)})}function Rc(e,r){return new e({type:"bigint",...T(r)})}function Tc(e,r){return new e({type:"bigint",coerce:!0,...T(r)})}function jc(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...T(r)})}function Cc(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...T(r)})}function Ac(e,r){return new e({type:"symbol",...T(r)})}function Uc(e,r){return new e({type:"undefined",...T(r)})}function Mc(e,r){return new e({type:"null",...T(r)})}function Lc(e){return new e({type:"any"})}function Zc(e){return new e({type:"unknown"})}function Fc(e,r){return new e({type:"never",...T(r)})}function Vc(e,r){return new e({type:"void",...T(r)})}function qc(e,r){return new e({type:"date",...T(r)})}function Bc(e,r){return new e({type:"date",coerce:!0,...T(r)})}function Jc(e,r){return new e({type:"nan",...T(r)})}function Ze(e,r){return new Nn({check:"less_than",...T(r),value:e,inclusive:!1})}function Oe(e,r){return new Nn({check:"less_than",...T(r),value:e,inclusive:!0})}function Fe(e,r){return new Dn({check:"greater_than",...T(r),value:e,inclusive:!1})}function xe(e,r){return new Dn({check:"greater_than",...T(r),value:e,inclusive:!0})}function pi(e){return Fe(0,e)}function fi(e){return Ze(0,e)}function mi(e){return Oe(0,e)}function hi(e){return xe(0,e)}function ot(e,r){return new Ms({check:"multiple_of",...T(r),value:e})}function st(e,r){return new Fs({check:"max_size",...T(r),maximum:e})}function Ve(e,r){return new Vs({check:"min_size",...T(r),minimum:e})}function _t(e,r){return new qs({check:"size_equals",...T(r),size:e})}function St(e,r){return new Bs({check:"max_length",...T(r),maximum:e})}function Xe(e,r){return new Js({check:"min_length",...T(r),minimum:e})}function kt(e,r){return new Ws({check:"length_equals",...T(r),length:e})}function Jt(e,r){return new Gs({check:"string_format",format:"regex",...T(r),pattern:e})}function Wt(e){return new Ks({check:"string_format",format:"lowercase",...T(e)})}function Gt(e){return new Xs({check:"string_format",format:"uppercase",...T(e)})}function Kt(e,r){return new Hs({check:"string_format",format:"includes",...T(r),includes:e})}function Xt(e,r){return new Ys({check:"string_format",format:"starts_with",...T(r),prefix:e})}function Ht(e,r){return new Qs({check:"string_format",format:"ends_with",...T(r),suffix:e})}function gi(e,r,n){return new ea({check:"property",property:e,schema:r,...T(n)})}function Yt(e,r){return new ta({check:"mime_type",mime:e,...T(r)})}function Ce(e){return new ra({check:"overwrite",tx:e})}function Qt(e){return Ce(r=>r.normalize(e))}function er(){return Ce(e=>e.trim())}function tr(){return Ce(e=>e.toLowerCase())}function rr(){return Ce(e=>e.toUpperCase())}function nr(){return Ce(e=>Yo(e))}function Wc(e,r,n){return new e({type:"array",element:r,...T(n)})}function Wx(e,r,n){return new e({type:"union",options:r,...T(n)})}function Gx(e,r,n){return new e({type:"union",options:r,inclusive:!1,...T(n)})}function Kx(e,r,n,o){return new e({type:"union",options:n,discriminator:r,...T(o)})}function Xx(e,r,n){return new e({type:"intersection",left:r,right:n})}function Hx(e,r,n,o){let t=n instanceof Z,i=t?o:n,s=t?n:null;return new e({type:"tuple",items:r,rest:s,...T(i)})}function Yx(e,r,n,o){return new e({type:"record",keyType:r,valueType:n,...T(o)})}function Qx(e,r,n,o){return new e({type:"map",keyType:r,valueType:n,...T(o)})}function ew(e,r,n){return new e({type:"set",valueType:r,...T(n)})}function tw(e,r,n){let o=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:o,...T(n)})}function rw(e,r,n){return new e({type:"enum",entries:r,...T(n)})}function nw(e,r,n){return new e({type:"literal",values:Array.isArray(r)?r:[r],...T(n)})}function Gc(e,r){return new e({type:"file",...T(r)})}function iw(e,r){return new e({type:"transform",transform:r})}function ow(e,r){return new e({type:"optional",innerType:r})}function sw(e,r){return new e({type:"nullable",innerType:r})}function aw(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():es(n)}})}function cw(e,r,n){return new e({type:"nonoptional",innerType:r,...T(n)})}function lw(e,r){return new e({type:"success",innerType:r})}function uw(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function dw(e,r,n){return new e({type:"pipe",in:r,out:n})}function pw(e,r){return new e({type:"readonly",innerType:r})}function fw(e,r,n){return new e({type:"template_literal",parts:r,...T(n)})}function mw(e,r){return new e({type:"lazy",getter:r})}function hw(e,r){return new e({type:"promise",innerType:r})}function Kc(e,r,n){let o=T(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:r,...o})}function Xc(e,r,n){return new e({type:"custom",check:"custom",fn:r,...T(n)})}function Hc(e,r){let n=Rm(o=>(o.addIssue=t=>{if(typeof t=="string")o.issues.push(Mt(t,o.value,n._zod.def));else{let i=t;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(Mt(i))}},e(o.value,o)),r);return n}function Rm(e,r){let n=new ee({check:"custom",...T(r)});return n._zod.check=e,n}function Yc(e){let r=new ee({check:"describe"});return r._zod.onattach=[n=>{let o=he.get(n)??{};he.add(n,{...o,description:e})}],r._zod.check=()=>{},r}function Qc(e){let r=new ee({check:"meta"});return r._zod.onattach=[n=>{let o=he.get(n)??{};he.add(n,{...o,...e})}],r._zod.check=()=>{},r}function el(e,r){let n=T(r),o=n.truthy??["true","1","yes","on","y","enabled"],t=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(p=>typeof p=="string"?p.toLowerCase():p),t=t.map(p=>typeof p=="string"?p.toLowerCase():p));let i=new Set(o),s=new Set(t),a=e.Codec??Lr,u=e.Boolean??Ur,l=e.String??$t,c=new l({type:"string",error:n.error}),f=new u({type:"boolean",error:n.error}),d=new a({type:"pipe",in:c,out:f,transform:((p,h)=>{let g=p;return n.case!=="sensitive"&&(g=g.toLowerCase()),i.has(g)?!0:s.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:h.value,inst:d,continue:!1}),{})}),reverseTransform:((p,h)=>p===!0?o[0]||"true":t[0]||"false"),error:n.error});return d}function ir(e,r,n,o={}){let t=T(o),i={...T(o),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:a=>n.test(a),...t};return n instanceof RegExp&&(i.pattern=n),new e(i)}function at(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??he,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function G(e,r,n={path:[],schemaPath:[]}){var o;let t=e._zod.def,i=r.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let c={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,s.schema,c);else{let d=s.schema,p=r.processors[t.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);p(e,r,d,c)}let f=e._zod.parent;f&&(s.ref||(s.ref=f),G(f,r,c),r.seen.get(f).isParent=!0)}let u=r.metadataRegistry.get(e);return u&&Object.assign(s.schema,u),r.io==="input"&&we(e)&&(delete s.schema.examples,delete s.schema.default),r.io==="input"&&"_prefault"in s.schema&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(e).schema}function ct(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let u=o.get(a);if(u&&u!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(a,s[0])}}let t=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(s[0])?.id,d=e.external.uri??(h=>h);if(f)return{ref:d(f)};let p=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=p,{defId:p,ref:`${d("__shared")}#/${a}/${p}`}}if(s[1]===n)return{ref:"#"};let l=`#/${a}/`,c=s[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:l+c}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:u,defId:l}=t(s);a.def={...a.schema},l&&(a.defId=l);let c=a.schema;for(let f in c)delete c[f];c.$ref=u};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
63
+ `)}f.write("payload.value = newResult;"),f.write("return payload;");let x=f.compile();return($,_)=>x(p,$,_)},i,s=$t,a=!wt.jitless,u=a&&gs.value,c=r.catchall,m;e._zod.parse=(p,f)=>{m??(m=o.value);let h=p.value;return s(h)?a&&u&&f?.async===!1&&f.jitless!==!0?(i||(i=t(r.shape)),p=i(p,f),c?rm([],h,p,f,m,e):p):n(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),p)}});function Lf(e,r,n,o){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let t=e.filter(i=>!at(i));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>xe(s,o,se())))}),r)}var qr=S("$ZodUnion",(e,r)=>{Z.init(e,r),V(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),V(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),V(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),V(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(t=>t._zod.pattern);return new RegExp(`^(${o.map(t=>Rr(t.source)).join("|")})$`)}});let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let l=a._zod.run({value:o.value,issues:[]},t);if(l instanceof Promise)s.push(l),i=!0;else{if(l.issues.length===0)return l;s.push(l)}}return i?Promise.all(s).then(a=>Lf(a,o,e,t)):Lf(s,o,e,t)}});function Zf(e,r,n,o){let t=e.filter(i=>i.issues.length===0);return t.length===1?(r.value=t[0].value,r):(t.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(i=>i.issues.map(s=>xe(s,o,se())))}):r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1}),r)}var sc=S("$ZodXor",(e,r)=>{qr.init(e,r),r.inclusive=!1;let n=r.options.length===1?r.options[0]._zod.run:null;e._zod.parse=(o,t)=>{if(n)return n(o,t);let i=!1,s=[];for(let a of r.options){let l=a._zod.run({value:o.value,issues:[]},t);l instanceof Promise?(s.push(l),i=!0):s.push(l)}return i?Promise.all(s).then(a=>Zf(a,o,e,t)):Zf(s,o,e,t)}}),ac=S("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,qr.init(e,r);let n=e._zod.parse;V(e._zod,"propValues",()=>{let t={};for(let i of r.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let[a,l]of Object.entries(s)){t[a]||(t[a]=new Set);for(let u of l)t[a].add(u)}}return t});let o=Ut(()=>{let t=r.options,i=new Map;for(let s of t){let a=s._zod.propValues?.[r.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(s)}"`);for(let l of a){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,s)}}return i});e._zod.parse=(t,i)=>{let s=t.value;if(!$t(s))return t.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),t;let a=o.value.get(s?.[r.discriminator]);return a?a._zod.run(t,i):r.unionFallback||i.direction==="backward"?n(t,i):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(o.value.keys()),input:s,path:[r.discriminator],inst:e}),t)}}),cc=S("$ZodIntersection",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value,i=r.left._zod.run({value:t,issues:[]},o),s=r.right._zod.run({value:t,issues:[]},o);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,u])=>Ff(n,l,u)):Ff(n,i,s)}});function wa(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(st(e)&&st(r)){let n=Object.keys(r),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),t={...e,...r};for(let i of o){let s=wa(e[i],r[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};t[i]=s.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let t=e[o],i=r[o],s=wa(t,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ff(e,r,n){let o=new Map,t;for(let a of r.issues)if(a.code==="unrecognized_keys"){t??(t=a);for(let l of a.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else e.issues.push(a);for(let a of n.issues)if(a.code==="unrecognized_keys")for(let l of a.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else e.issues.push(a);let i=[...o].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&t&&e.issues.push({...t,keys:i}),at(e))return e;let s=wa(r.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var Wn=S("$ZodTuple",(e,r)=>{Z.init(e,r);let n=r.items;e._zod.parse=(o,t)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let s=[],a=Vf(n,"optin"),l=Vf(n,"optout");if(!r.rest){if(i.length<a)return o.issues.push({code:"too_small",minimum:a,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}let u=new Array(n.length);for(let c=0;c<n.length;c++){let m=n[c]._zod.run({value:i[c],issues:[]},t);m instanceof Promise?s.push(m.then(p=>{u[c]=p})):u[c]=m}if(r.rest){let c=n.length-1,m=i.slice(n.length);for(let p of m){c++;let f=r.rest._zod.run({value:p,issues:[]},t);f instanceof Promise?s.push(f.then(h=>qf(h,o,c))):qf(f,o,c)}}return s.length?Promise.all(s).then(()=>Bf(u,o,n,i,l)):Bf(u,o,n,i,l)}});function Vf(e,r){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[r]!=="optional")return n+1;return 0}function qf(e,r,n){e.issues.length&&r.issues.push(..._e(n,e.issues)),r.value[n]=e.value}function Bf(e,r,n,o,t){for(let i=0;i<n.length;i++){let s=e[i],a=i<o.length;if(s.issues.length){if(!a&&i>=t){r.value.length=i;break}r.issues.push(..._e(i,s.issues))}r.value[i]=s.value}for(let i=r.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&r.value[i]===void 0);i--)r.value.length=i;return r}var lc=S("$ZodRecord",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!st(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let i=[],s=r.keyType._zod.values;if(s){n.value={};let a=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let c=r.keyType._zod.run({value:u,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>xe(f,o,se())),input:u,path:[u],inst:e});continue}let m=c.value,p=r.valueType._zod.run({value:t[u],issues:[]},o);p instanceof Promise?i.push(p.then(f=>{f.issues.length&&n.issues.push(..._e(u,f.issues)),n.value[m]=f.value})):(p.issues.length&&n.issues.push(..._e(u,p.issues)),n.value[m]=p.value)}let l;for(let u in t)a.has(u)||(l=l??[],l.push(u));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:l})}else{n.value={};for(let a of Reflect.ownKeys(t)){if(a==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,a))continue;let l=r.keyType._zod.run({value:a,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&An.test(a)&&l.issues.length){let m=r.keyType._zod.run({value:Number(a),issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(l=m)}if(l.issues.length){r.mode==="loose"?n.value[a]=t[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(m=>xe(m,o,se())),input:a,path:[a],inst:e});continue}let c=r.valueType._zod.run({value:t[a],issues:[]},o);c instanceof Promise?i.push(c.then(m=>{m.issues.length&&n.issues.push(..._e(a,m.issues)),n.value[l.value]=m.value})):(c.issues.length&&n.issues.push(..._e(a,c.issues)),n.value[l.value]=c.value)}}return i.length?Promise.all(i).then(()=>n):n}}),uc=S("$ZodMap",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let i=[];n.value=new Map;for(let[s,a]of t){let l=r.keyType._zod.run({value:s,issues:[]},o),u=r.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise||u instanceof Promise?i.push(Promise.all([l,u]).then(([c,m])=>{Wf(c,m,n,s,t,e,o)})):Wf(l,u,n,s,t,e,o)}return i.length?Promise.all(i).then(()=>n):n}});function Wf(e,r,n,o,t,i,s){e.issues.length&&(Tr.has(typeof o)?n.issues.push(..._e(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:t,inst:i,issues:e.issues.map(a=>xe(a,s,se()))})),r.issues.length&&(Tr.has(typeof o)?n.issues.push(..._e(o,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:t,inst:i,key:o,issues:r.issues.map(a=>xe(a,s,se()))})),n.value.set(e.value,r.value)}var dc=S("$ZodSet",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let s of t){let a=r.valueType._zod.run({value:s,issues:[]},o);a instanceof Promise?i.push(a.then(l=>Jf(l,n))):Jf(a,n)}return i.length?Promise.all(i).then(()=>n):n}});function Jf(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var pc=S("$ZodEnum",(e,r)=>{Z.init(e,r);let n=Dr(r.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(t=>Tr.has(typeof t)).map(t=>typeof t=="string"?De(t):t.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let s=t.value;return o.has(s)||t.issues.push({code:"invalid_value",values:n,input:s,inst:e}),t}}),fc=S("$ZodLiteral",(e,r)=>{if(Z.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(r.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?De(o):o?De(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,t)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r.values,input:i,inst:e}),o}}),mc=S("$ZodFile",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{let t=n.value;return t instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),hc=S("$ZodTransform",(e,r)=>{Z.init(e,r),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new nt(e.constructor.name);let t=r.transform(n.value,n);if(o.async)return(t instanceof Promise?t:Promise.resolve(t)).then(s=>(n.value=s,n.fallback=!0,n));if(t instanceof Promise)throw new Ce;return n.value=t,n.fallback=!0,n}});function Gf(e,r){return r===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Jn=S("$ZodOptional",(e,r)=>{Z.init(e,r),e._zod.optin="optional",e._zod.optout="optional",V(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),V(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Rr(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(r.innerType._zod.optin==="optional"){let t=n.value,i=r.innerType._zod.run(n,o);return i instanceof Promise?i.then(s=>Gf(s,t)):Gf(i,t)}return n.value===void 0?n:r.innerType._zod.run(n,o)}}),gc=S("$ZodExactOptional",(e,r)=>{Jn.init(e,r),V(e._zod,"values",()=>r.innerType._zod.values),V(e._zod,"pattern",()=>r.innerType._zod.pattern),e._zod.parse=(n,o)=>r.innerType._zod.run(n,o)}),vc=S("$ZodNullable",(e,r)=>{Z.init(e,r),V(e._zod,"optin",()=>r.innerType._zod.optin),V(e._zod,"optout",()=>r.innerType._zod.optout),V(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Rr(n.source)}|null)$`):void 0}),V(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),yc=S("$ZodDefault",(e,r)=>{Z.init(e,r),e._zod.optin="optional",V(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>Kf(i,r)):Kf(t,r)}});function Kf(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var bc=S("$ZodPrefault",(e,r)=>{Z.init(e,r),e._zod.optin="optional",V(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),xc=S("$ZodNonOptional",(e,r)=>{Z.init(e,r),V(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>Hf(i,e)):Hf(t,e)}});function Hf(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var wc=S("$ZodSuccess",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new nt("ZodSuccess");let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.issues.length===0,n)):(n.value=t.issues.length===0,n)}}),$c=S("$ZodCatch",(e,r)=>{Z.init(e,r),e._zod.optin="optional",V(e._zod,"optout",()=>r.innerType._zod.optout),V(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(s=>xe(s,o,se()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=t.value,t.issues.length&&(n.value=r.catchValue({...n,error:{issues:t.issues.map(i=>xe(i,o,se()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),_c=S("$ZodNaN",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Gn=S("$ZodPipe",(e,r)=>{Z.init(e,r),V(e._zod,"values",()=>r.in._zod.values),V(e._zod,"optin",()=>r.in._zod.optin),V(e._zod,"optout",()=>r.out._zod.optout),V(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>Ln(s,r.in,o)):Ln(i,r.in,o)}let t=r.in._zod.run(n,o);return t instanceof Promise?t.then(i=>Ln(i,r.out,o)):Ln(t,r.out,o)}});function Ln(e,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Br=S("$ZodCodec",(e,r)=>{Z.init(e,r),V(e._zod,"values",()=>r.in._zod.values),V(e._zod,"optin",()=>r.in._zod.optin),V(e._zod,"optout",()=>r.out._zod.optout),V(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=r.in._zod.run(n,o);return i instanceof Promise?i.then(s=>Zn(s,r,o)):Zn(i,r,o)}else{let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(s=>Zn(s,r,o)):Zn(i,r,o)}}});function Zn(e,r,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(i=>Fn(e,i,r.out,n)):Fn(e,t,r.out,n)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(i=>Fn(e,i,r.in,n)):Fn(e,t,r.in,n)}}function Fn(e,r,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:r,issues:e.issues},o)}var Sc=S("$ZodPreprocess",(e,r)=>{Gn.init(e,r)}),kc=S("$ZodReadonly",(e,r)=>{Z.init(e,r),V(e._zod,"propValues",()=>r.innerType._zod.propValues),V(e._zod,"values",()=>r.innerType._zod.values),V(e._zod,"optin",()=>r.innerType?._zod?.optin),V(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let t=r.innerType._zod.run(n,o);return t instanceof Promise?t.then(Xf):Xf(t)}});function Xf(e){return e.value=Object.freeze(e.value),e}var Ic=S("$ZodTemplateLiteral",(e,r)=>{Z.init(e,r);let n=[];for(let o of r.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let t=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=t.startsWith("^")?1:0,s=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(i,s))}else if(o===null||ys.has(typeof o))n.push(De(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,t)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),o)}),zc=S("$ZodFunction",(e,r)=>(Z.init(e,r),e._def=r,e._zod.def=r,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let t=e._def.input?In(e._def.input,o):o,i=Reflect.apply(n,this,t);return e._def.output?In(e._def.output,i):i}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let t=e._def.input?await zn(e._def.input,o):o,i=await Reflect.apply(n,this,t);return e._def.output?await zn(e._def.output,i):i}},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new Wn({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),Oc=S("$ZodPromise",(e,r)=>{Z.init(e,r),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(t=>r.innerType._zod.run({value:t,issues:[]},o))}),Ec=S("$ZodLazy",(e,r)=>{Z.init(e,r),V(e._zod,"innerType",()=>{let n=r;return n._cachedInner||(n._cachedInner=r.getter()),n._cachedInner}),V(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),V(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),V(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),V(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Pc=S("$ZodCustom",(e,r)=>{ee.init(e,r),Z.init(e,r),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,t=r.fn(o);if(t instanceof Promise)return t.then(i=>Yf(i,n,o,e));Yf(t,n,o,e)}});function Yf(e,r,n,o){if(!e){let t={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(t.params=o._zod.def.params),r.issues.push(Mt(t))}}var Jr={};Ke(Jr,{ar:()=>im,az:()=>om,be:()=>am,bg:()=>cm,ca:()=>lm,cs:()=>um,da:()=>dm,de:()=>pm,el:()=>fm,en:()=>Kn,eo:()=>mm,es:()=>hm,fa:()=>gm,fi:()=>vm,fr:()=>ym,frCA:()=>bm,he:()=>xm,hr:()=>wm,hu:()=>$m,hy:()=>Sm,id:()=>km,is:()=>Im,it:()=>zm,ja:()=>Om,ka:()=>Em,kh:()=>Pm,km:()=>Hn,ko:()=>Nm,lt:()=>Rm,mk:()=>Tm,ms:()=>Cm,nl:()=>jm,no:()=>Am,ota:()=>Um,pl:()=>Lm,ps:()=>Mm,pt:()=>Zm,ro:()=>Fm,ru:()=>qm,sl:()=>Bm,sv:()=>Wm,ta:()=>Jm,th:()=>Gm,tr:()=>Km,ua:()=>Hm,uk:()=>Xn,ur:()=>Xm,uz:()=>Ym,vi:()=>Qm,yo:()=>rh,zhCN:()=>eh,zhTW:()=>th});var Jx=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`}case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${N(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function im(){return{localeError:Jx()}}var Gx=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${a}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${N(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function om(){return{localeError:Gx()}}function sm(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var Kx=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${N(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),l=sm(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),l=sm(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${i}${t.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function am(){return{localeError:Kx()}}var Hx=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${N(t.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function cm(){return{localeError:Hx()}}var Xx=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${a}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${N(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${I(t.values," o ")}`;case"too_big":{let i=t.inclusive?"com a m\xE0xim":"menys de",s=r(t.origin);return s?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${i} ${t.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"com a m\xEDnim":"m\xE9s de",s=r(t.origin);return s?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${i} ${t.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}};function lm(){return{localeError:Xx()}}var Yx=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(t){return e[t]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${a}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${N(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${i}${t.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${I(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}};function um(){return{localeError:Yx()}}var Qx=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(t){return e[t]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${a}`:`Ugyldigt input: forventede ${i}, fik ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${N(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${i} ${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`For lille: forventede ${a} ${s.verb} ${i} ${t.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}};function dm(){return{localeError:Qx()}}var ew=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){return e[t]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${a}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${N(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${i}${t.maximum.toString()} ist`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}};function pm(){return{localeError:ew()}}var tw=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(t){return e[t]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${t.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`}case"invalid_value":return t.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${N(t.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.maximum.toString()} ${s.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${t.minimum.toString()} ${s.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${t.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${t.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${t.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${t.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${t.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function fm(){return{localeError:tw()}}var rw=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(t){return e[t]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return`Invalid input: expected ${i}, received ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${N(t.values[0])}`:`Invalid option: expected one of ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Too big: expected ${t.origin??"value"} to have ${i}${t.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${s.unit}`:`Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function Kn(){return{localeError:rw()}}var nw=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(t){return e[t]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${a}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${N(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${i}${t.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function mm(){return{localeError:nw()}}var iw=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(t){return e[t]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${N(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${i}${t.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}};function hm(){return{localeError:iw()}}var ow=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${N(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${I(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${I(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function gm(){return{localeError:ow()}}var sw=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(t){return e[t]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${a}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${N(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${i}${t.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${i}${t.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${I(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function vm(){return{localeError:sw()}}var aw=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${a} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${N(t.values[0])} attendu`:`Option invalide : une valeur parmi ${I(t.values,"|")} attendue`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Trop grand : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Trop petit : ${o[t.origin]??"valeur"} doit ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : ${o[t.origin]??"valeur"} doit \xEAtre ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function ym(){return{localeError:aw()}}var cw=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(t){return e[t]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${a}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${N(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u2264":"<",s=r(t.origin);return s?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${i}${t.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u2265":">",s=r(t.origin);return s?`Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${I(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}};function bm(){return{localeError:cw()}}var lw=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=u=>u?e[u]:void 0,o=u=>{let c=n(u);return c?c.label:u??e.unknown.label},t=u=>`\u05D4${o(u)}`,i=u=>(n(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=u=>u?r[u]??null:null,a={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let c=u.expected,m=l[c??""]??o(c),p=D(u.input),f=l[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${N(u.values[0])}`;let c=u.values.map(f=>N(f));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let m=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${m}`}case"too_big":{let c=s(u.origin),m=t(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let h=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(u.origin==="array"||u.origin==="set"){let h=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",g=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let p=u.inclusive?"<=":"<",f=i(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.maximum.toString()}`}case"too_small":{let c=s(u.origin),m=t(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let h=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(u.origin==="array"||u.origin==="set"){let h=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let v=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${v}`}let g=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let p=u.inclusive?">=":">",f=i(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${c.pattern}`;let m=a[c.format],p=m?.label??c.format,h=(m?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${h}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${I(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function xm(){return{localeError:lw()}}var uw=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(t){return e[t]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${t.expected}, a primljeno je ${a}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${a}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${N(t.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Preveliko: o\u010Dekivano da ${a??"vrijednost"} ima ${i}${t.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${a??"vrijednost"} bude ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=o[t.origin]??t.origin;return s?`Premalo: o\u010Dekivano da ${a} ima ${i}${t.minimum.toString()} ${s.unit}`:`Premalo: o\u010Dekivano da ${a} bude ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function wm(){return{localeError:uw()}}var dw=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${N(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${t.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${i}${t.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function $m(){return{localeError:dw()}}function _m(e,r,n){return Math.abs(e)===1?r:n}function Bt(e){if(!e)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(r.includes(n)?"\u0576":"\u0568")}var pw=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(t){return e[t]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`}case"invalid_value":return t.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${N(t.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),l=_m(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bt(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),l=_m(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bt(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${t.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Bt(t.origin)} \u056C\u056B\u0576\u056B ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??t.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${I(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Bt(t.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Bt(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Sm(){return{localeError:pw()}}var fw=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${N(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function km(){return{localeError:fw()}}var mw=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(t){return e[t]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${N(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${i}${t.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${i}${t.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${I(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}};function Im(){return{localeError:mw()}}var hw=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${a}`:`Input non valido: atteso ${i}, ricevuto ${a}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${N(t.values[0])}`:`Opzione non valida: atteso uno tra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Troppo grande: ${t.origin??"valore"} deve avere ${i}${t.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${I(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function zm(){return{localeError:hw()}}var gw=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(t){return e[t]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${N(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${I(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=r(t.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${s.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=r(t.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${s.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Om(){return{localeError:gw()}}var vw=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(t){return e[t]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`}case"invalid_value":return t.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${N(t.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${I(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${t.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Em(){return{localeError:vw()}}var yw=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(t){return e[t]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`}case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${N(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${I(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Hn(){return{localeError:yw()}}function Pm(){return Hn()}var bw=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(t){return e[t]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${N(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${I(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),l=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${l} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${i}${s}`}case"too_small":{let i=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=r(t.origin),l=a?.unit??"\uC694\uC18C";return a?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${l} ${i}${s}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${i}${s}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${I(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Nm(){return{localeError:bw()}}var Wr=e=>e.charAt(0).toUpperCase()+e.slice(1);function Dm(e){let r=Math.abs(e),n=r%10,o=r%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var xw=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(t,i,s,a){let l=e[t]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[a][s?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${i}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${N(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${I(t.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[t.origin]??t.origin,s=r(t.origin,Dm(Number(t.maximum)),t.inclusive??!1,"smaller");if(s?.verb)return`${Wr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.maximum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Wr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.maximum.toString()} ${s?.unit}`}case"too_small":{let i=o[t.origin]??t.origin,s=r(t.origin,Dm(Number(t.minimum)),t.inclusive??!1,"bigger");if(s?.verb)return`${Wr(i??t.origin??"reik\u0161m\u0117")} ${s.verb} ${t.minimum.toString()} ${s.unit??"element\u0173"}`;let a=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Wr(i??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${t.minimum.toString()} ${s?.unit}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${I(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[t.origin]??t.origin;return`${Wr(i??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Rm(){return{localeError:xw()}}var ww=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(t){return e[t]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${N(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${t.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Tm(){return{localeError:ww()}}var $w=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${a}`:`Input tidak sah: dijangka ${i}, diterima ${a}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${N(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Terlalu besar: dijangka ${t.origin??"nilai"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Terlalu kecil: dijangka ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${I(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function Cm(){return{localeError:$w()}}var _w=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(t){return e[t]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${i}, ontving ${a}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${N(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin),a=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin??"waarde"} ${i}${t.maximum.toString()} is`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin),a=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function jm(){return{localeError:_w()}}var Sw=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(t){return e[t]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${a}`:`Ugyldig input: forventet ${i}, fikk ${a}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${N(t.values[0])}`:`Ugyldig valg: forventet en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function Am(){return{localeError:Sw()}}var kw=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(t){return e[t]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${N(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${i}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${i}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=t;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Um(){return{localeError:kw()}}var Iw=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(t){return e[t]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${N(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${I(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${i}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${I(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Mm(){return{localeError:Iw()}}var zw=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(t){return e[t]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${a}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${N(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${t.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Lm(){return{localeError:zw()}}var Ow=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${a}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${N(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${i}${t.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}};function Zm(){return{localeError:Ow()}}var Ew=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(t){return e[t]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${a}`}case"invalid_value":return t.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${N(t.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} s\u0103 fie ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Prea mic: a\u0219teptat ca ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Prea mic: a\u0219teptat ca ${t.origin} s\u0103 fie ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??t.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${I(t.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${t.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${t.origin}`;default:return"Intrare invalid\u0103"}}};function Fm(){return{localeError:Ew()}}function Vm(e,r,n,o){let t=Math.abs(e),i=t%10,s=t%100;return s>=11&&s<=19?o:i===1?r:i>=2&&i<=4?n:o}var Pw=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${N(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);if(s){let a=Number(t.maximum),l=Vm(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);if(s){let a=Number(t.minimum),l=Vm(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${t.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function qm(){return{localeError:Pw()}}var Nw=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${a}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${N(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${i}${t.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${I(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function Bm(){return{localeError:Nw()}}var Dw=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(t){return e[t]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${a}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${N(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${I(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Wm(){return{localeError:Dw()}}var Rw=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(t){return e[t]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`}case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${N(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${I(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${i}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Jm(){return{localeError:Rw()}}var Tw=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(t){return e[t]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${N(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=r(t.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${I(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Gm(){return{localeError:Tw()}}var Cw=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(t){return e[t]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${a}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${N(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Km(){return{localeError:Cw()}}var jw=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(t){return e[t]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${N(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${I(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Xn(){return{localeError:jw()}}function Hm(){return Xn()}var Aw=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(t){return e[t]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${N(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${I(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${t.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${i}${t.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${i}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${I(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Xm(){return{localeError:Aw()}}var Uw=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(t){return e[t]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${a}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${N(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Ym(){return{localeError:Uw()}}var Mw=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(t){return e[t]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${N(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${i}${t.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${s.verb} ${i}${t.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${I(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Qm(){return{localeError:Mw()}}var Lw=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(t){return e[t]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${N(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${I(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function eh(){return{localeError:Lw()}}var Zw=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(t){return e[t]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${N(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${i}${t.maximum.toString()}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${i}${t.minimum.toString()}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${I(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function th(){return{localeError:Zw()}}var Fw=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(t){return e[t]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let i=o[t.expected]??t.expected,s=D(t.input),a=o[s]??s;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${N(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${I(t.values,"|")}`;case"too_big":{let i=t.inclusive?"<=":"<",s=r(t.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${s.verb} ${i}${t.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.maximum}`}case"too_small":{let i=t.inclusive?">=":">",s=r(t.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${s.verb} ${i}${t.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${t.minimum}`}case"invalid_format":{let i=t;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${I(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function rh(){return{localeError:Fw()}}var nh,Nc=Symbol("ZodOutput"),Dc=Symbol("ZodInput"),Yn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let o=n[0];return this._map.set(r,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let t={...o,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function Qn(){return new Yn}(nh=globalThis).__zod_globalRegistry??(nh.__zod_globalRegistry=Qn());var he=globalThis.__zod_globalRegistry;function Rc(e,r){return new e({type:"string",...T(r)})}function Tc(e,r){return new e({type:"string",coerce:!0,...T(r)})}function ei(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...T(r)})}function Gr(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...T(r)})}function ti(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...T(r)})}function ri(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...T(r)})}function ni(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...T(r)})}function ii(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...T(r)})}function Kr(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...T(r)})}function oi(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...T(r)})}function si(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...T(r)})}function ai(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...T(r)})}function ci(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...T(r)})}function li(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...T(r)})}function ui(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...T(r)})}function di(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...T(r)})}function pi(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...T(r)})}function fi(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...T(r)})}function Cc(e,r){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...T(r)})}function mi(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...T(r)})}function hi(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...T(r)})}function gi(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...T(r)})}function vi(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...T(r)})}function yi(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...T(r)})}function bi(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...T(r)})}var jc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ac(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...T(r)})}function Uc(e,r){return new e({type:"string",format:"date",check:"string_format",...T(r)})}function Mc(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...T(r)})}function Lc(e,r){return new e({type:"string",format:"duration",check:"string_format",...T(r)})}function Zc(e,r){return new e({type:"number",checks:[],...T(r)})}function Fc(e,r){return new e({type:"number",coerce:!0,checks:[],...T(r)})}function Vc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...T(r)})}function qc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...T(r)})}function Bc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...T(r)})}function Wc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...T(r)})}function Jc(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...T(r)})}function Gc(e,r){return new e({type:"boolean",...T(r)})}function Kc(e,r){return new e({type:"boolean",coerce:!0,...T(r)})}function Hc(e,r){return new e({type:"bigint",...T(r)})}function Xc(e,r){return new e({type:"bigint",coerce:!0,...T(r)})}function Yc(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...T(r)})}function Qc(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...T(r)})}function el(e,r){return new e({type:"symbol",...T(r)})}function tl(e,r){return new e({type:"undefined",...T(r)})}function rl(e,r){return new e({type:"null",...T(r)})}function nl(e){return new e({type:"any"})}function il(e){return new e({type:"unknown"})}function ol(e,r){return new e({type:"never",...T(r)})}function sl(e,r){return new e({type:"void",...T(r)})}function al(e,r){return new e({type:"date",...T(r)})}function cl(e,r){return new e({type:"date",coerce:!0,...T(r)})}function ll(e,r){return new e({type:"nan",...T(r)})}function Ze(e,r){return new Un({check:"less_than",...T(r),value:e,inclusive:!1})}function Oe(e,r){return new Un({check:"less_than",...T(r),value:e,inclusive:!0})}function Fe(e,r){return new Mn({check:"greater_than",...T(r),value:e,inclusive:!1})}function we(e,r){return new Mn({check:"greater_than",...T(r),value:e,inclusive:!0})}function xi(e){return Fe(0,e)}function wi(e){return Ze(0,e)}function $i(e){return Oe(0,e)}function _i(e){return we(0,e)}function ct(e,r){return new ra({check:"multiple_of",...T(r),value:e})}function lt(e,r){return new oa({check:"max_size",...T(r),maximum:e})}function Ve(e,r){return new sa({check:"min_size",...T(r),minimum:e})}function kt(e,r){return new aa({check:"size_equals",...T(r),size:e})}function It(e,r){return new ca({check:"max_length",...T(r),maximum:e})}function Xe(e,r){return new la({check:"min_length",...T(r),minimum:e})}function zt(e,r){return new ua({check:"length_equals",...T(r),length:e})}function Wt(e,r){return new da({check:"string_format",format:"regex",...T(r),pattern:e})}function Jt(e){return new pa({check:"string_format",format:"lowercase",...T(e)})}function Gt(e){return new fa({check:"string_format",format:"uppercase",...T(e)})}function Kt(e,r){return new ma({check:"string_format",format:"includes",...T(r),includes:e})}function Ht(e,r){return new ha({check:"string_format",format:"starts_with",...T(r),prefix:e})}function Xt(e,r){return new ga({check:"string_format",format:"ends_with",...T(r),suffix:e})}function Si(e,r,n){return new va({check:"property",property:e,schema:r,...T(n)})}function Yt(e,r){return new ya({check:"mime_type",mime:e,...T(r)})}function je(e){return new ba({check:"overwrite",tx:e})}function Qt(e){return je(r=>r.normalize(e))}function er(){return je(e=>e.trim())}function tr(){return je(e=>e.toLowerCase())}function rr(){return je(e=>e.toUpperCase())}function nr(){return je(e=>hs(e))}function ul(e,r,n){return new e({type:"array",element:r,...T(n)})}function qw(e,r,n){return new e({type:"union",options:r,...T(n)})}function Bw(e,r,n){return new e({type:"union",options:r,inclusive:!1,...T(n)})}function Ww(e,r,n,o){return new e({type:"union",options:n,discriminator:r,...T(o)})}function Jw(e,r,n){return new e({type:"intersection",left:r,right:n})}function Gw(e,r,n,o){let t=n instanceof Z,i=t?o:n,s=t?n:null;return new e({type:"tuple",items:r,rest:s,...T(i)})}function Kw(e,r,n,o){return new e({type:"record",keyType:r,valueType:n,...T(o)})}function Hw(e,r,n,o){return new e({type:"map",keyType:r,valueType:n,...T(o)})}function Xw(e,r,n){return new e({type:"set",valueType:r,...T(n)})}function Yw(e,r,n){let o=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:o,...T(n)})}function Qw(e,r,n){return new e({type:"enum",entries:r,...T(n)})}function e$(e,r,n){return new e({type:"literal",values:Array.isArray(r)?r:[r],...T(n)})}function dl(e,r){return new e({type:"file",...T(r)})}function t$(e,r){return new e({type:"transform",transform:r})}function r$(e,r){return new e({type:"optional",innerType:r})}function n$(e,r){return new e({type:"nullable",innerType:r})}function i$(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():vs(n)}})}function o$(e,r,n){return new e({type:"nonoptional",innerType:r,...T(n)})}function s$(e,r){return new e({type:"success",innerType:r})}function a$(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function c$(e,r,n){return new e({type:"pipe",in:r,out:n})}function l$(e,r){return new e({type:"readonly",innerType:r})}function u$(e,r,n){return new e({type:"template_literal",parts:r,...T(n)})}function d$(e,r){return new e({type:"lazy",getter:r})}function p$(e,r){return new e({type:"promise",innerType:r})}function pl(e,r,n){let o=T(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:r,...o})}function fl(e,r,n){return new e({type:"custom",check:"custom",fn:r,...T(n)})}function ml(e,r){let n=ih(o=>(o.addIssue=t=>{if(typeof t=="string")o.issues.push(Mt(t,o.value,n._zod.def));else{let i=t;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(Mt(i))}},e(o.value,o)),r);return n}function ih(e,r){let n=new ee({check:"custom",...T(r)});return n._zod.check=e,n}function hl(e){let r=new ee({check:"describe"});return r._zod.onattach=[n=>{let o=he.get(n)??{};he.add(n,{...o,description:e})}],r._zod.check=()=>{},r}function gl(e){let r=new ee({check:"meta"});return r._zod.onattach=[n=>{let o=he.get(n)??{};he.add(n,{...o,...e})}],r._zod.check=()=>{},r}function vl(e,r){let n=T(r),o=n.truthy??["true","1","yes","on","y","enabled"],t=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(f=>typeof f=="string"?f.toLowerCase():f),t=t.map(f=>typeof f=="string"?f.toLowerCase():f));let i=new Set(o),s=new Set(t),a=e.Codec??Br,l=e.Boolean??Vr,u=e.String??St,c=new u({type:"string",error:n.error}),m=new l({type:"boolean",error:n.error}),p=new a({type:"pipe",in:c,out:m,transform:((f,h)=>{let g=f;return n.case!=="sensitive"&&(g=g.toLowerCase()),i.has(g)?!0:s.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:h.value,inst:p,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?o[0]||"true":t[0]||"false"),error:n.error});return p}function ir(e,r,n,o={}){let t=T(o),i={...T(o),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:a=>n.test(a),...t};return n instanceof RegExp&&(i.pattern=n),new e(i)}function ut(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??he,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function K(e,r,n={path:[],schemaPath:[]}){var o;let t=e._zod.def,i=r.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(e,s);let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let c={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,s.schema,c);else{let p=s.schema,f=r.processors[t.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);f(e,r,p,c)}let m=e._zod.parent;m&&(s.ref||(s.ref=m),K(m,r,c),r.seen.get(m).isParent=!0)}let l=r.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),r.io==="input"&&$e(e)&&(delete s.schema.examples,delete s.schema.default),r.io==="input"&&"_prefault"in s.schema&&((o=s.schema).default??(o.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(e).schema}function dt(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let l=o.get(a);if(l&&l!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(a,s[0])}}let t=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(s[0])?.id,p=e.external.uri??(h=>h);if(m)return{ref:p(m)};let f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${p("__shared")}#/${a}/${f}`}}if(s[1]===n)return{ref:"#"};let u=`#/${a}/`,c=s[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:l,defId:u}=t(s);a.def={...a.schema},u&&(a.defId=u);let c=a.schema;for(let m in c)delete c[m];c.$ref=l};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
64
64
 
65
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(r===s[0]){i(s);continue}if(e.external){let l=e.external.registry.get(s[0])?.id;if(r!==s[0]&&l){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function lt(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let u=e.seen.get(a);if(u.ref===null)return;let l=u.def??u.schema,c={...l},f=u.ref;if(u.ref=null,f){o(f);let p=e.seen.get(f),h=p.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,c),a._zod.parent===f)for(let v in l)v==="$ref"||v==="allOf"||v in c||delete l[v];if(h.$ref&&p.def)for(let v in l)v==="$ref"||v==="allOf"||v in p.def&&JSON.stringify(l[v])===JSON.stringify(p.def[v])&&delete l[v]}let d=a._zod.parent;if(d&&d!==f){o(d);let p=e.seen.get(d);if(p?.schema.$ref&&(l.$ref=p.schema.$ref,p.def))for(let h in l)h==="$ref"||h==="allOf"||h in p.def&&JSON.stringify(l[h])===JSON.stringify(p.def[h])&&delete l[h]}e.override({zodSchema:a,jsonSchema:l,path:u.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(a)}Object.assign(t,n.def??n.schema);let i=e.metadataRegistry.get(r)?.id;i!==void 0&&t.id===i&&delete t.id;let s=e.external?.defs??{};for(let a of e.seen.entries()){let u=a[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,s[u.defId]=u.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?t.$defs=s:t.definitions=s);try{let a=JSON.parse(JSON.stringify(t));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:or(r,"input",e.processors),output:or(r,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function we(e,r){let n=r??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return we(o.element,n);if(o.type==="set")return we(o.valueType,n);if(o.type==="lazy")return we(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return we(o.innerType,n);if(o.type==="intersection")return we(o.left,n)||we(o.right,n);if(o.type==="record"||o.type==="map")return we(o.keyType,n)||we(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:we(o.in,n)||we(o.out,n);if(o.type==="object"){for(let t in o.shape)if(we(o.shape[t],n))return!0;return!1}if(o.type==="union"){for(let t of o.options)if(we(t,n))return!0;return!1}if(o.type==="tuple"){for(let t of o.items)if(we(t,n))return!0;return!!(o.rest&&we(o.rest,n))}return!1}var tl=(e,r={})=>n=>{let o=at({...n,processors:r});return G(e,o),ct(o,e),lt(o,e)},or=(e,r,n={})=>o=>{let{libraryOptions:t,target:i}=o??{},s=at({...t??{},target:i,io:r,processors:n});return G(e,s),ct(s,e),lt(s,e)};var gw={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},rl=(e,r,n,o)=>{let t=n;t.type="string";let{minimum:i,maximum:s,format:a,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(t.minLength=i),typeof s=="number"&&(t.maxLength=s),a&&(t.format=gw[a]??a,t.format===""&&delete t.format,a==="time"&&delete t.format),l&&(t.contentEncoding=l),u&&u.size>0){let c=[...u];c.length===1?t.pattern=c[0].source:c.length>1&&(t.allOf=[...c.map(f=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},nl=(e,r,n,o)=>{let t=n,{minimum:i,maximum:s,format:a,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;typeof a=="string"&&a.includes("int")?t.type="integer":t.type="number";let f=typeof c=="number"&&c>=(i??Number.NEGATIVE_INFINITY),d=typeof l=="number"&&l<=(s??Number.POSITIVE_INFINITY),p=r.target==="draft-04"||r.target==="openapi-3.0";f?p?(t.minimum=c,t.exclusiveMinimum=!0):t.exclusiveMinimum=c:typeof i=="number"&&(t.minimum=i),d?p?(t.maximum=l,t.exclusiveMaximum=!0):t.exclusiveMaximum=l:typeof s=="number"&&(t.maximum=s),typeof u=="number"&&(t.multipleOf=u)},il=(e,r,n,o)=>{n.type="boolean"},ol=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},sl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},al=(e,r,n,o)=>{r.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},cl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ll=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},ul=(e,r,n,o)=>{n.not={}},dl=(e,r,n,o)=>{},pl=(e,r,n,o)=>{},fl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},ml=(e,r,n,o)=>{let t=e._zod.def,i=zr(t.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},hl=(e,r,n,o)=>{let t=e._zod.def,i=[];for(let s of t.values)if(s===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,r.target==="draft-04"||r.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},gl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},vl=(e,r,n,o)=>{let t=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=i.source},yl=(e,r,n,o)=>{let t=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:u}=e._zod.bag;s!==void 0&&(i.minLength=s),a!==void 0&&(i.maxLength=a),u?u.length===1?(i.contentMediaType=u[0],Object.assign(t,i)):(Object.assign(t,i),t.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(t,i)},bl=(e,r,n,o)=>{n.type="boolean"},xl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},wl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},$l=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},_l=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Sl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},kl=(e,r,n,o)=>{let t=n,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(t.minItems=s),typeof a=="number"&&(t.maxItems=a),t.type="array",t.items=G(i.element,r,{...o,path:[...o.path,"items"]})},Il=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object",t.properties={};let s=i.shape;for(let l in s)t.properties[l]=G(s[l],r,{...o,path:[...o.path,"properties",l]});let a=new Set(Object.keys(s)),u=new Set([...a].filter(l=>{let c=i.shape[l]._zod;return r.io==="input"?c.optin===void 0:c.optout===void 0}));u.size>0&&(t.required=Array.from(u)),i.catchall?._zod.def.type==="never"?t.additionalProperties=!1:i.catchall?i.catchall&&(t.additionalProperties=G(i.catchall,r,{...o,path:[...o.path,"additionalProperties"]})):r.io==="output"&&(t.additionalProperties=!1)},yi=(e,r,n,o)=>{let t=e._zod.def,i=t.inclusive===!1,s=t.options.map((a,u)=>G(a,r,{...o,path:[...o.path,i?"oneOf":"anyOf",u]}));i?n.oneOf=s:n.anyOf=s},zl=(e,r,n,o)=>{let t=e._zod.def,i=G(t.left,r,{...o,path:[...o.path,"allOf",0]}),s=G(t.right,r,{...o,path:[...o.path,"allOf",1]}),a=l=>"allOf"in l&&Object.keys(l).length===1,u=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=u},Ol=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="array";let s=r.target==="draft-2020-12"?"prefixItems":"items",a=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((d,p)=>G(d,r,{...o,path:[...o.path,s,p]})),l=i.rest?G(i.rest,r,{...o,path:[...o.path,a,...r.target==="openapi-3.0"?[i.items.length]:[]]}):null;r.target==="draft-2020-12"?(t.prefixItems=u,l&&(t.items=l)):r.target==="openapi-3.0"?(t.items={anyOf:u},l&&t.items.anyOf.push(l),t.minItems=u.length,l||(t.maxItems=u.length)):(t.items=u,l&&(t.additionalItems=l));let{minimum:c,maximum:f}=e._zod.bag;typeof c=="number"&&(t.minItems=c),typeof f=="number"&&(t.maxItems=f)},El=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object";let s=i.keyType,u=s._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){let c=G(i.valueType,r,{...o,path:[...o.path,"patternProperties","*"]});t.patternProperties={};for(let f of u)t.patternProperties[f.source]=c}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(t.propertyNames=G(i.keyType,r,{...o,path:[...o.path,"propertyNames"]})),t.additionalProperties=G(i.valueType,r,{...o,path:[...o.path,"additionalProperties"]});let l=s._zod.values;if(l){let c=[...l].filter(f=>typeof f=="string"||typeof f=="number");c.length>0&&(t.required=c)}},Nl=(e,r,n,o)=>{let t=e._zod.def,i=G(t.innerType,r,o),s=r.seen.get(e);r.target==="openapi-3.0"?(s.ref=t.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Dl=(e,r,n,o)=>{let t=e._zod.def;G(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},Pl=(e,r,n,o)=>{let t=e._zod.def;G(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.default=JSON.parse(JSON.stringify(t.defaultValue))},Rl=(e,r,n,o)=>{let t=e._zod.def;G(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,r.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},Tl=(e,r,n,o)=>{let t=e._zod.def;G(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType;let s;try{s=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},jl=(e,r,n,o)=>{let t=e._zod.def,i=t.in._zod.traits.has("$ZodTransform"),s=r.io==="input"?i?t.out:t.in:t.out;G(s,r,o);let a=r.seen.get(e);a.ref=s},Cl=(e,r,n,o)=>{let t=e._zod.def;G(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.readOnly=!0},Al=(e,r,n,o)=>{let t=e._zod.def;G(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},bi=(e,r,n,o)=>{let t=e._zod.def;G(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},Ul=(e,r,n,o)=>{let t=e._zod.innerType;G(t,r,o);let i=r.seen.get(e);i.ref=t},vi={string:rl,number:nl,boolean:il,bigint:ol,symbol:sl,null:al,undefined:cl,void:ll,never:ul,any:dl,unknown:pl,date:fl,enum:ml,literal:hl,nan:gl,template_literal:vl,file:yl,success:bl,custom:xl,function:wl,transform:$l,map:_l,set:Sl,array:kl,object:Il,union:yi,intersection:zl,tuple:Ol,record:El,nullable:Nl,nonoptional:Dl,default:Pl,prefault:Rl,catch:Tl,pipe:jl,readonly:Cl,promise:Al,optional:bi,lazy:Ul};function xi(e,r){if("_idmap"in e){let o=e,t=at({...r,processors:vi}),i={};for(let u of o._idmap.entries()){let[l,c]=u;G(c,t)}let s={},a={registry:o,uri:r?.uri,defs:i};t.external=a;for(let u of o._idmap.entries()){let[l,c]=u;ct(t,c),s[l]=lt(t,c)}if(Object.keys(i).length>0){let u=t.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[u]:i}}return{schemas:s}}let n=at({...r,processors:vi});return G(e,n),ct(n,e),lt(n,e)}var wi=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let n=r?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=at({processors:vi,target:n,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,n={path:[],schemaPath:[]}){return G(r,this.ctx,n)}emit(r,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),ct(this.ctx,r);let o=lt(this.ctx,r),{"~standard":t,...i}=o;return i}};var Tm={};var Br={};Ge(Br,{ZodAny:()=>cu,ZodArray:()=>pu,ZodBase64:()=>Fi,ZodBase64URL:()=>Vi,ZodBigInt:()=>fr,ZodBigIntFormat:()=>Ji,ZodBoolean:()=>pr,ZodCIDRv4:()=>Li,ZodCIDRv6:()=>Zi,ZodCUID:()=>Ri,ZodCUID2:()=>Ti,ZodCatch:()=>Tu,ZodCodec:()=>nn,ZodCustom:()=>on,ZodCustomStringFormat:()=>ur,ZodDate:()=>Yr,ZodDefault:()=>Ou,ZodDiscriminatedUnion:()=>mu,ZodE164:()=>qi,ZodEmail:()=>Ni,ZodEmoji:()=>Di,ZodEnum:()=>cr,ZodExactOptional:()=>ku,ZodFile:()=>_u,ZodFunction:()=>qu,ZodGUID:()=>Wr,ZodIPv4:()=>Ui,ZodIPv6:()=>Mi,ZodIntersection:()=>hu,ZodJWT:()=>Bi,ZodKSUID:()=>Ai,ZodLazy:()=>Zu,ZodLiteral:()=>$u,ZodMAC:()=>tu,ZodMap:()=>xu,ZodNaN:()=>Cu,ZodNanoID:()=>Pi,ZodNever:()=>uu,ZodNonOptional:()=>Yi,ZodNull:()=>su,ZodNullable:()=>zu,ZodNumber:()=>dr,ZodNumberFormat:()=>zt,ZodObject:()=>en,ZodOptional:()=>Hi,ZodPipe:()=>rn,ZodPrefault:()=>Nu,ZodPreprocess:()=>Au,ZodPromise:()=>Vu,ZodReadonly:()=>Uu,ZodRecord:()=>ar,ZodSet:()=>wu,ZodString:()=>lr,ZodStringFormat:()=>Q,ZodSuccess:()=>Ru,ZodSymbol:()=>iu,ZodTemplateLiteral:()=>Lu,ZodTransform:()=>Su,ZodTuple:()=>vu,ZodType:()=>F,ZodULID:()=>ji,ZodURL:()=>Hr,ZodUUID:()=>qe,ZodUndefined:()=>ou,ZodUnion:()=>tn,ZodUnknown:()=>lu,ZodVoid:()=>du,ZodXID:()=>Ci,ZodXor:()=>fu,_ZodString:()=>Ei,_default:()=>Eu,_function:()=>Vh,any:()=>xh,array:()=>Qr,base64:()=>nh,base64url:()=>ih,bigint:()=>hh,boolean:()=>nu,catch:()=>ju,check:()=>qh,cidrv4:()=>th,cidrv6:()=>rh,codec:()=>Mh,cuid:()=>Wm,cuid2:()=>Gm,custom:()=>Bh,date:()=>$h,describe:()=>Jh,discriminatedUnion:()=>Oh,e164:()=>oh,email:()=>Am,emoji:()=>Bm,enum:()=>Ki,exactOptional:()=>Iu,file:()=>jh,float32:()=>dh,float64:()=>ph,function:()=>Vh,guid:()=>Um,hash:()=>uh,hex:()=>lh,hostname:()=>ch,httpUrl:()=>qm,instanceof:()=>Gh,int:()=>zi,int32:()=>fh,int64:()=>gh,intersection:()=>gu,invertCodec:()=>Lh,ipv4:()=>Ym,ipv6:()=>eh,json:()=>Xh,jwt:()=>sh,keyof:()=>_h,ksuid:()=>Hm,lazy:()=>Fu,literal:()=>Th,looseObject:()=>Ih,looseRecord:()=>Nh,mac:()=>Qm,map:()=>Dh,meta:()=>Wh,nan:()=>Uh,nanoid:()=>Jm,nativeEnum:()=>Rh,never:()=>Wi,nonoptional:()=>Pu,null:()=>au,nullable:()=>Kr,nullish:()=>Ch,number:()=>ru,object:()=>Sh,optional:()=>Gr,partialRecord:()=>Eh,pipe:()=>Oi,prefault:()=>Du,preprocess:()=>Hh,promise:()=>Fh,readonly:()=>Mu,record:()=>bu,refine:()=>Bu,set:()=>Ph,strictObject:()=>kh,string:()=>Jr,stringFormat:()=>ah,stringbool:()=>Kh,success:()=>Ah,superRefine:()=>Ju,symbol:()=>yh,templateLiteral:()=>Zh,transform:()=>Xi,tuple:()=>yu,uint32:()=>mh,uint64:()=>vh,ulid:()=>Km,undefined:()=>bh,union:()=>Gi,unknown:()=>It,url:()=>Vm,uuid:()=>Mm,uuidv4:()=>Lm,uuidv6:()=>Zm,uuidv7:()=>Fm,void:()=>wh,xid:()=>Xm,xor:()=>zh});var $i={};Ge($i,{endsWith:()=>Ht,gt:()=>Fe,gte:()=>xe,includes:()=>Kt,length:()=>kt,lowercase:()=>Wt,lt:()=>Ze,lte:()=>Oe,maxLength:()=>St,maxSize:()=>st,mime:()=>Yt,minLength:()=>Xe,minSize:()=>Ve,multipleOf:()=>ot,negative:()=>fi,nonnegative:()=>hi,nonpositive:()=>mi,normalize:()=>Qt,overwrite:()=>Ce,positive:()=>pi,property:()=>gi,regex:()=>Jt,size:()=>_t,slugify:()=>nr,startsWith:()=>Xt,toLowerCase:()=>tr,toUpperCase:()=>rr,trim:()=>er,uppercase:()=>Gt});var sr={};Ge(sr,{ZodISODate:()=>Si,ZodISODateTime:()=>_i,ZodISODuration:()=>Ii,ZodISOTime:()=>ki,date:()=>Ll,datetime:()=>Ml,duration:()=>Fl,time:()=>Zl});var _i=S("ZodISODateTime",(e,r)=>{ga.init(e,r),Q.init(e,r)});function Ml(e){return xc(_i,e)}var Si=S("ZodISODate",(e,r)=>{va.init(e,r),Q.init(e,r)});function Ll(e){return wc(Si,e)}var ki=S("ZodISOTime",(e,r)=>{ya.init(e,r),Q.init(e,r)});function Zl(e){return $c(ki,e)}var Ii=S("ZodISODuration",(e,r)=>{ba.init(e,r),Q.init(e,r)});function Fl(e){return _c(Ii,e)}var jm=(e,r)=>{Pr.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Tr(e,n)},flatten:{value:n=>Rr(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,At,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,At,2)}},isEmpty:{get(){return e.issues.length===0}}})},yw=S("ZodError",jm),Se=S("ZodError",jm,{Parent:Error});var Vl=Lt(Se),ql=Zt(Se),Bl=Ft(Se),Jl=Vt(Se),Wl=xn(Se),Gl=wn(Se),Kl=$n(Se),Xl=_n(Se),Hl=Sn(Se),Yl=kn(Se),Ql=In(Se),eu=zn(Se);var Cm=new WeakMap;function Xr(e,r,n){let o=Object.getPrototypeOf(e),t=Cm.get(o);if(t||(t=new Set,Cm.set(o,t)),!t.has(r)){t.add(r);for(let i in n){let s=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let a=s.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}var F=S("ZodType",(e,r)=>(Z.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:or(e,"input"),output:or(e,"output")}}),e.toJSONSchema=tl(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.parse=(n,o)=>Vl(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Bl(e,n,o),e.parseAsync=async(n,o)=>ql(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Jl(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Wl(e,n,o),e.decode=(n,o)=>Gl(e,n,o),e.encodeAsync=async(n,o)=>Kl(e,n,o),e.decodeAsync=async(n,o)=>Xl(e,n,o),e.safeEncode=(n,o)=>Hl(e,n,o),e.safeDecode=(n,o)=>Yl(e,n,o),e.safeEncodeAsync=async(n,o)=>Ql(e,n,o),e.safeDecodeAsync=async(n,o)=>eu(e,n,o),Xr(e,"ZodType",{check(...n){let o=this.def;return this.clone(R.mergeDefs(o,{checks:[...o.checks??[],...n.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return ye(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Bu(n,o))},superRefine(n,o){return this.check(Ju(n,o))},overwrite(n){return this.check(Ce(n))},optional(){return Gr(this)},exactOptional(){return Iu(this)},nullable(){return Kr(this)},nullish(){return Gr(Kr(this))},nonoptional(n){return Pu(this,n)},array(){return Qr(this)},or(n){return Gi([this,n])},and(n){return gu(this,n)},transform(n){return Oi(this,Xi(n))},default(n){return Eu(this,n)},prefault(n){return Du(this,n)},catch(n){return ju(this,n)},pipe(n){return Oi(this,n)},readonly(){return Mu(this)},describe(n){let o=this.clone();return he.add(o,{description:n}),o},meta(...n){if(n.length===0)return he.get(this);let o=this.clone();return he.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return he.get(e)?.description},configurable:!0}),e)),Ei=S("_ZodString",(e,r)=>{$t.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>rl(e,o,t,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Xr(e,"_ZodString",{regex(...o){return this.check(Jt(...o))},includes(...o){return this.check(Kt(...o))},startsWith(...o){return this.check(Xt(...o))},endsWith(...o){return this.check(Ht(...o))},min(...o){return this.check(Xe(...o))},max(...o){return this.check(St(...o))},length(...o){return this.check(kt(...o))},nonempty(...o){return this.check(Xe(1,...o))},lowercase(o){return this.check(Wt(o))},uppercase(o){return this.check(Gt(o))},trim(){return this.check(er())},normalize(...o){return this.check(Qt(...o))},toLowerCase(){return this.check(tr())},toUpperCase(){return this.check(rr())},slugify(){return this.check(nr())}})}),lr=S("ZodString",(e,r)=>{$t.init(e,r),Ei.init(e,r),e.email=n=>e.check(Jn(Ni,n)),e.url=n=>e.check(qr(Hr,n)),e.jwt=n=>e.check(di(Bi,n)),e.emoji=n=>e.check(Hn(Di,n)),e.guid=n=>e.check(Vr(Wr,n)),e.uuid=n=>e.check(Wn(qe,n)),e.uuidv4=n=>e.check(Gn(qe,n)),e.uuidv6=n=>e.check(Kn(qe,n)),e.uuidv7=n=>e.check(Xn(qe,n)),e.nanoid=n=>e.check(Yn(Pi,n)),e.guid=n=>e.check(Vr(Wr,n)),e.cuid=n=>e.check(Qn(Ri,n)),e.cuid2=n=>e.check(ei(Ti,n)),e.ulid=n=>e.check(ti(ji,n)),e.base64=n=>e.check(ci(Fi,n)),e.base64url=n=>e.check(li(Vi,n)),e.xid=n=>e.check(ri(Ci,n)),e.ksuid=n=>e.check(ni(Ai,n)),e.ipv4=n=>e.check(ii(Ui,n)),e.ipv6=n=>e.check(oi(Mi,n)),e.cidrv4=n=>e.check(si(Li,n)),e.cidrv6=n=>e.check(ai(Zi,n)),e.e164=n=>e.check(ui(qi,n)),e.datetime=n=>e.check(Ml(n)),e.date=n=>e.check(Ll(n)),e.time=n=>e.check(Zl(n)),e.duration=n=>e.check(Fl(n))});function Jr(e){return gc(lr,e)}var Q=S("ZodStringFormat",(e,r)=>{Y.init(e,r),Ei.init(e,r)}),Ni=S("ZodEmail",(e,r)=>{aa.init(e,r),Q.init(e,r)});function Am(e){return Jn(Ni,e)}var Wr=S("ZodGUID",(e,r)=>{oa.init(e,r),Q.init(e,r)});function Um(e){return Vr(Wr,e)}var qe=S("ZodUUID",(e,r)=>{sa.init(e,r),Q.init(e,r)});function Mm(e){return Wn(qe,e)}function Lm(e){return Gn(qe,e)}function Zm(e){return Kn(qe,e)}function Fm(e){return Xn(qe,e)}var Hr=S("ZodURL",(e,r)=>{ca.init(e,r),Q.init(e,r)});function Vm(e){return qr(Hr,e)}function qm(e){return qr(Hr,{protocol:ze.httpProtocol,hostname:ze.domain,...R.normalizeParams(e)})}var Di=S("ZodEmoji",(e,r)=>{la.init(e,r),Q.init(e,r)});function Bm(e){return Hn(Di,e)}var Pi=S("ZodNanoID",(e,r)=>{ua.init(e,r),Q.init(e,r)});function Jm(e){return Yn(Pi,e)}var Ri=S("ZodCUID",(e,r)=>{da.init(e,r),Q.init(e,r)});function Wm(e){return Qn(Ri,e)}var Ti=S("ZodCUID2",(e,r)=>{pa.init(e,r),Q.init(e,r)});function Gm(e){return ei(Ti,e)}var ji=S("ZodULID",(e,r)=>{fa.init(e,r),Q.init(e,r)});function Km(e){return ti(ji,e)}var Ci=S("ZodXID",(e,r)=>{ma.init(e,r),Q.init(e,r)});function Xm(e){return ri(Ci,e)}var Ai=S("ZodKSUID",(e,r)=>{ha.init(e,r),Q.init(e,r)});function Hm(e){return ni(Ai,e)}var Ui=S("ZodIPv4",(e,r)=>{xa.init(e,r),Q.init(e,r)});function Ym(e){return ii(Ui,e)}var tu=S("ZodMAC",(e,r)=>{$a.init(e,r),Q.init(e,r)});function Qm(e){return yc(tu,e)}var Mi=S("ZodIPv6",(e,r)=>{wa.init(e,r),Q.init(e,r)});function eh(e){return oi(Mi,e)}var Li=S("ZodCIDRv4",(e,r)=>{_a.init(e,r),Q.init(e,r)});function th(e){return si(Li,e)}var Zi=S("ZodCIDRv6",(e,r)=>{Sa.init(e,r),Q.init(e,r)});function rh(e){return ai(Zi,e)}var Fi=S("ZodBase64",(e,r)=>{Ia.init(e,r),Q.init(e,r)});function nh(e){return ci(Fi,e)}var Vi=S("ZodBase64URL",(e,r)=>{za.init(e,r),Q.init(e,r)});function ih(e){return li(Vi,e)}var qi=S("ZodE164",(e,r)=>{Oa.init(e,r),Q.init(e,r)});function oh(e){return ui(qi,e)}var Bi=S("ZodJWT",(e,r)=>{Ea.init(e,r),Q.init(e,r)});function sh(e){return di(Bi,e)}var ur=S("ZodCustomStringFormat",(e,r)=>{Na.init(e,r),Q.init(e,r)});function ah(e,r,n={}){return ir(ur,e,r,n)}function ch(e){return ir(ur,"hostname",ze.hostname,e)}function lh(e){return ir(ur,"hex",ze.hex,e)}function uh(e,r){let n=r?.enc??"hex",o=`${e}_${n}`,t=ze[o];if(!t)throw new Error(`Unrecognized hash format: ${o}`);return ir(ur,o,t,r)}var dr=S("ZodNumber",(e,r)=>{Cn.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>nl(e,o,t,i),Xr(e,"ZodNumber",{gt(o,t){return this.check(Fe(o,t))},gte(o,t){return this.check(xe(o,t))},min(o,t){return this.check(xe(o,t))},lt(o,t){return this.check(Ze(o,t))},lte(o,t){return this.check(Oe(o,t))},max(o,t){return this.check(Oe(o,t))},int(o){return this.check(zi(o))},safe(o){return this.check(zi(o))},positive(o){return this.check(Fe(0,o))},nonnegative(o){return this.check(xe(0,o))},negative(o){return this.check(Ze(0,o))},nonpositive(o){return this.check(Oe(0,o))},multipleOf(o,t){return this.check(ot(o,t))},step(o,t){return this.check(ot(o,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function ru(e){return Sc(dr,e)}var zt=S("ZodNumberFormat",(e,r)=>{Da.init(e,r),dr.init(e,r)});function zi(e){return Ic(zt,e)}function dh(e){return zc(zt,e)}function ph(e){return Oc(zt,e)}function fh(e){return Ec(zt,e)}function mh(e){return Nc(zt,e)}var pr=S("ZodBoolean",(e,r)=>{Ur.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>il(e,n,o,t)});function nu(e){return Dc(pr,e)}var fr=S("ZodBigInt",(e,r)=>{An.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>ol(e,o,t,i),e.gte=(o,t)=>e.check(xe(o,t)),e.min=(o,t)=>e.check(xe(o,t)),e.gt=(o,t)=>e.check(Fe(o,t)),e.gte=(o,t)=>e.check(xe(o,t)),e.min=(o,t)=>e.check(xe(o,t)),e.lt=(o,t)=>e.check(Ze(o,t)),e.lte=(o,t)=>e.check(Oe(o,t)),e.max=(o,t)=>e.check(Oe(o,t)),e.positive=o=>e.check(Fe(BigInt(0),o)),e.negative=o=>e.check(Ze(BigInt(0),o)),e.nonpositive=o=>e.check(Oe(BigInt(0),o)),e.nonnegative=o=>e.check(xe(BigInt(0),o)),e.multipleOf=(o,t)=>e.check(ot(o,t));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function hh(e){return Rc(fr,e)}var Ji=S("ZodBigIntFormat",(e,r)=>{Pa.init(e,r),fr.init(e,r)});function gh(e){return jc(Ji,e)}function vh(e){return Cc(Ji,e)}var iu=S("ZodSymbol",(e,r)=>{Ra.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>sl(e,n,o,t)});function yh(e){return Ac(iu,e)}var ou=S("ZodUndefined",(e,r)=>{Ta.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>cl(e,n,o,t)});function bh(e){return Uc(ou,e)}var su=S("ZodNull",(e,r)=>{ja.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>al(e,n,o,t)});function au(e){return Mc(su,e)}var cu=S("ZodAny",(e,r)=>{Ca.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>dl(e,n,o,t)});function xh(){return Lc(cu)}var lu=S("ZodUnknown",(e,r)=>{Aa.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>pl(e,n,o,t)});function It(){return Zc(lu)}var uu=S("ZodNever",(e,r)=>{Ua.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ul(e,n,o,t)});function Wi(e){return Fc(uu,e)}var du=S("ZodVoid",(e,r)=>{Ma.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ll(e,n,o,t)});function wh(e){return Vc(du,e)}var Yr=S("ZodDate",(e,r)=>{La.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>fl(e,o,t,i),e.min=(o,t)=>e.check(xe(o,t)),e.max=(o,t)=>e.check(Oe(o,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function $h(e){return qc(Yr,e)}var pu=S("ZodArray",(e,r)=>{Za.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>kl(e,n,o,t),e.element=r.element,Xr(e,"ZodArray",{min(n,o){return this.check(Xe(n,o))},nonempty(n){return this.check(Xe(1,n))},max(n,o){return this.check(St(n,o))},length(n,o){return this.check(kt(n,o))},unwrap(){return this.element}})});function Qr(e,r){return Wc(pu,e,r)}function _h(e){let r=e._zod.def.shape;return Ki(Object.keys(r))}var en=S("ZodObject",(e,r)=>{Fa.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Il(e,n,o,t),R.defineLazy(e,"shape",()=>r.shape),Xr(e,"ZodObject",{keyof(){return Ki(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:It()})},loose(){return this.clone({...this._zod.def,catchall:It()})},strict(){return this.clone({...this._zod.def,catchall:Wi()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return R.extend(this,n)},safeExtend(n){return R.safeExtend(this,n)},merge(n){return R.merge(this,n)},pick(n){return R.pick(this,n)},omit(n){return R.omit(this,n)},partial(...n){return R.partial(Hi,this,n[0])},required(...n){return R.required(Yi,this,n[0])}})});function Sh(e,r){let n={type:"object",shape:e??{},...R.normalizeParams(r)};return new en(n)}function kh(e,r){return new en({type:"object",shape:e,catchall:Wi(),...R.normalizeParams(r)})}function Ih(e,r){return new en({type:"object",shape:e,catchall:It(),...R.normalizeParams(r)})}var tn=S("ZodUnion",(e,r)=>{Mr.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>yi(e,n,o,t),e.options=r.options});function Gi(e,r){return new tn({type:"union",options:e,...R.normalizeParams(r)})}var fu=S("ZodXor",(e,r)=>{tn.init(e,r),Va.init(e,r),e._zod.processJSONSchema=(n,o,t)=>yi(e,n,o,t),e.options=r.options});function zh(e,r){return new fu({type:"union",options:e,inclusive:!1,...R.normalizeParams(r)})}var mu=S("ZodDiscriminatedUnion",(e,r)=>{tn.init(e,r),qa.init(e,r)});function Oh(e,r,n){return new mu({type:"union",options:r,discriminator:e,...R.normalizeParams(n)})}var hu=S("ZodIntersection",(e,r)=>{Ba.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>zl(e,n,o,t)});function gu(e,r){return new hu({type:"intersection",left:e,right:r})}var vu=S("ZodTuple",(e,r)=>{Un.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ol(e,n,o,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function yu(e,r,n){let o=r instanceof Z,t=o?n:r,i=o?r:null;return new vu({type:"tuple",items:e,rest:i,...R.normalizeParams(t)})}var ar=S("ZodRecord",(e,r)=>{Ja.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>El(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType});function bu(e,r,n){return!r||!r._zod?new ar({type:"record",keyType:Jr(),valueType:e,...R.normalizeParams(r)}):new ar({type:"record",keyType:e,valueType:r,...R.normalizeParams(n)})}function Eh(e,r,n){let o=ye(e);return o._zod.values=void 0,new ar({type:"record",keyType:o,valueType:r,...R.normalizeParams(n)})}function Nh(e,r,n){return new ar({type:"record",keyType:e,valueType:r,mode:"loose",...R.normalizeParams(n)})}var xu=S("ZodMap",(e,r)=>{Wa.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>_l(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...n)=>e.check(Ve(...n)),e.nonempty=n=>e.check(Ve(1,n)),e.max=(...n)=>e.check(st(...n)),e.size=(...n)=>e.check(_t(...n))});function Dh(e,r,n){return new xu({type:"map",keyType:e,valueType:r,...R.normalizeParams(n)})}var wu=S("ZodSet",(e,r)=>{Ga.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Sl(e,n,o,t),e.min=(...n)=>e.check(Ve(...n)),e.nonempty=n=>e.check(Ve(1,n)),e.max=(...n)=>e.check(st(...n)),e.size=(...n)=>e.check(_t(...n))});function Ph(e,r){return new wu({type:"set",valueType:e,...R.normalizeParams(r)})}var cr=S("ZodEnum",(e,r)=>{Ka.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>ml(e,o,t,i),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(o,t)=>{let i={};for(let s of o)if(n.has(s))i[s]=r.entries[s];else throw new Error(`Key ${s} not found in enum`);return new cr({...r,checks:[],...R.normalizeParams(t),entries:i})},e.exclude=(o,t)=>{let i={...r.entries};for(let s of o)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new cr({...r,checks:[],...R.normalizeParams(t),entries:i})}});function Ki(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new cr({type:"enum",entries:n,...R.normalizeParams(r)})}function Rh(e,r){return new cr({type:"enum",entries:e,...R.normalizeParams(r)})}var $u=S("ZodLiteral",(e,r)=>{Xa.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>hl(e,n,o,t),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Th(e,r){return new $u({type:"literal",values:Array.isArray(e)?e:[e],...R.normalizeParams(r)})}var _u=S("ZodFile",(e,r)=>{Ha.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>yl(e,n,o,t),e.min=(n,o)=>e.check(Ve(n,o)),e.max=(n,o)=>e.check(st(n,o)),e.mime=(n,o)=>e.check(Yt(Array.isArray(n)?n:[n],o))});function jh(e){return Gc(_u,e)}var Su=S("ZodTransform",(e,r)=>{Ya.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>$l(e,n,o,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new et(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(R.issue(i,n.value,r));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(R.issue(s))}};let t=r.transform(n.value,n);return t instanceof Promise?t.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=t,n.fallback=!0,n)}});function Xi(e){return new Su({type:"transform",transform:e})}var Hi=S("ZodOptional",(e,r)=>{Mn.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>bi(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Gr(e){return new Hi({type:"optional",innerType:e})}var ku=S("ZodExactOptional",(e,r)=>{Qa.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>bi(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Iu(e){return new ku({type:"optional",innerType:e})}var zu=S("ZodNullable",(e,r)=>{ec.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Nl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Kr(e){return new zu({type:"nullable",innerType:e})}function Ch(e){return Gr(Kr(e))}var Ou=S("ZodDefault",(e,r)=>{tc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Pl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Eu(e,r){return new Ou({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():R.shallowClone(r)}})}var Nu=S("ZodPrefault",(e,r)=>{rc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Rl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Du(e,r){return new Nu({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():R.shallowClone(r)}})}var Yi=S("ZodNonOptional",(e,r)=>{nc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Dl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Pu(e,r){return new Yi({type:"nonoptional",innerType:e,...R.normalizeParams(r)})}var Ru=S("ZodSuccess",(e,r)=>{ic.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>bl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Ah(e){return new Ru({type:"success",innerType:e})}var Tu=S("ZodCatch",(e,r)=>{oc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Tl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ju(e,r){return new Tu({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var Cu=S("ZodNaN",(e,r)=>{sc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>gl(e,n,o,t)});function Uh(e){return Jc(Cu,e)}var rn=S("ZodPipe",(e,r)=>{Ln.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>jl(e,n,o,t),e.in=r.in,e.out=r.out});function Oi(e,r){return new rn({type:"pipe",in:e,out:r})}var nn=S("ZodCodec",(e,r)=>{rn.init(e,r),Lr.init(e,r)});function Mh(e,r,n){return new nn({type:"pipe",in:e,out:r,transform:n.decode,reverseTransform:n.encode})}function Lh(e){let r=e._zod.def;return new nn({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var Au=S("ZodPreprocess",(e,r)=>{rn.init(e,r),ac.init(e,r)}),Uu=S("ZodReadonly",(e,r)=>{cc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Cl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Mu(e){return new Uu({type:"readonly",innerType:e})}var Lu=S("ZodTemplateLiteral",(e,r)=>{lc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>vl(e,n,o,t)});function Zh(e,r){return new Lu({type:"template_literal",parts:e,...R.normalizeParams(r)})}var Zu=S("ZodLazy",(e,r)=>{pc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ul(e,n,o,t),e.unwrap=()=>e._zod.def.getter()});function Fu(e){return new Zu({type:"lazy",getter:e})}var Vu=S("ZodPromise",(e,r)=>{dc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Al(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Fh(e){return new Vu({type:"promise",innerType:e})}var qu=S("ZodFunction",(e,r)=>{uc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>wl(e,n,o,t)});function Vh(e){return new qu({type:"function",input:Array.isArray(e?.input)?yu(e?.input):e?.input??Qr(It()),output:e?.output??It()})}var on=S("ZodCustom",(e,r)=>{fc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>xl(e,n,o,t)});function qh(e){let r=new ee({check:"custom"});return r._zod.check=e,r}function Bh(e,r){return Kc(on,e??(()=>!0),r)}function Bu(e,r={}){return Xc(on,e,r)}function Ju(e,r){return Hc(e,r)}var Jh=Yc,Wh=Qc;function Gh(e,r={}){let n=new on({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...R.normalizeParams(r)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Kh=(...e)=>el({Codec:nn,Boolean:pr,String:lr},...e);function Xh(e){let r=Fu(()=>Gi([Jr(e),ru(),nu(),au(),Qr(r),bu(Jr(),r)]));return r}function Hh(e,r){return new Au({type:"pipe",in:Xi(e),out:r})}var xw={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function ww(e){oe({customError:e})}function $w(){return oe().customError}var Wu;Wu||(Wu={});var C={...Br,...$i,iso:sr},_w=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Sw(e,r){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function kw(e,r){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let o=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let t=n[1];if(!t||!r.defs[t])throw new Error(`Reference not found: ${e}`);return r.defs[t]}throw new Error(`Reference not found: ${e}`)}function Yh(e,r){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return C.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return C.lazy(()=>{if(!r.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let i=kw(t,r),s=ge(i,r);return r.refs.set(t,s),r.processing.delete(t),s}if(e.enum!==void 0){let t=e.enum;if(r.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return C.null();if(t.length===0)return C.never();if(t.length===1)return C.literal(t[0]);if(t.every(s=>typeof s=="string"))return C.enum(t);let i=t.map(s=>C.literal(s));return i.length<2?i[0]:C.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return C.literal(e.const);let n=e.type;if(Array.isArray(n)){let t=n.map(i=>{let s={...e,type:i};return Yh(s,r)});return t.length===0?C.never():t.length===1?t[0]:C.union(t)}if(!n)return C.any();let o;switch(n){case"string":{let t=C.string();if(e.format){let i=e.format;i==="email"?t=t.check(C.email()):i==="uri"||i==="uri-reference"?t=t.check(C.url()):i==="uuid"||i==="guid"?t=t.check(C.uuid()):i==="date-time"?t=t.check(C.iso.datetime()):i==="date"?t=t.check(C.iso.date()):i==="time"?t=t.check(C.iso.time()):i==="duration"?t=t.check(C.iso.duration()):i==="ipv4"?t=t.check(C.ipv4()):i==="ipv6"?t=t.check(C.ipv6()):i==="mac"?t=t.check(C.mac()):i==="cidr"?t=t.check(C.cidrv4()):i==="cidr-v6"?t=t.check(C.cidrv6()):i==="base64"?t=t.check(C.base64()):i==="base64url"?t=t.check(C.base64url()):i==="e164"?t=t.check(C.e164()):i==="jwt"?t=t.check(C.jwt()):i==="emoji"?t=t.check(C.emoji()):i==="nanoid"?t=t.check(C.nanoid()):i==="cuid"?t=t.check(C.cuid()):i==="cuid2"?t=t.check(C.cuid2()):i==="ulid"?t=t.check(C.ulid()):i==="xid"?t=t.check(C.xid()):i==="ksuid"&&(t=t.check(C.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),o=t;break}case"number":case"integer":{let t=n==="integer"?C.number().int():C.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),o=t;break}case"boolean":{o=C.boolean();break}case"null":{o=C.null();break}case"object":{let t={},i=e.properties||{},s=new Set(e.required||[]);for(let[u,l]of Object.entries(i)){let c=ge(l,r);t[u]=s.has(u)?c:c.optional()}if(e.propertyNames){let u=ge(e.propertyNames,r),l=e.additionalProperties&&typeof e.additionalProperties=="object"?ge(e.additionalProperties,r):C.any();if(Object.keys(t).length===0){o=C.record(u,l);break}let c=C.object(t).passthrough(),f=C.looseRecord(u,l);o=C.intersection(c,f);break}if(e.patternProperties){let u=e.patternProperties,l=Object.keys(u),c=[];for(let d of l){let p=ge(u[d],r),h=C.string().regex(new RegExp(d));c.push(C.looseRecord(h,p))}let f=[];if(Object.keys(t).length>0&&f.push(C.object(t).passthrough()),f.push(...c),f.length===0)o=C.object({}).passthrough();else if(f.length===1)o=f[0];else{let d=C.intersection(f[0],f[1]);for(let p=2;p<f.length;p++)d=C.intersection(d,f[p]);o=d}break}let a=C.object(t);e.additionalProperties===!1?o=a.strict():typeof e.additionalProperties=="object"?o=a.catchall(ge(e.additionalProperties,r)):o=a.passthrough();break}case"array":{let t=e.prefixItems,i=e.items;if(t&&Array.isArray(t)){let s=t.map(u=>ge(u,r)),a=i&&typeof i=="object"&&!Array.isArray(i)?ge(i,r):void 0;a?o=C.tuple(s).rest(a):o=C.tuple(s),typeof e.minItems=="number"&&(o=o.check(C.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(C.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(u=>ge(u,r)),a=e.additionalItems&&typeof e.additionalItems=="object"?ge(e.additionalItems,r):void 0;a?o=C.tuple(s).rest(a):o=C.tuple(s),typeof e.minItems=="number"&&(o=o.check(C.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(C.maxLength(e.maxItems)))}else if(i!==void 0){let s=ge(i,r),a=C.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),o=a}else o=C.array(C.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function ge(e,r){if(typeof e=="boolean")return e?C.any():C.never();let n=Yh(e,r),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(l=>ge(l,r)),u=C.union(a);n=o?C.intersection(n,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(l=>ge(l,r)),u=C.xor(a);n=o?C.intersection(n,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:C.any();else{let a=o?n:ge(e.allOf[0],r),u=o?0:1;for(let l=u;l<e.allOf.length;l++)a=C.intersection(a,ge(e.allOf[l],r));n=a}e.nullable===!0&&r.version==="openapi-3.0"&&(n=C.nullable(n)),e.readOnly===!0&&(n=C.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let t={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(t[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(t[a]=e[a]);for(let a of Object.keys(e))_w.has(a)||(t[a]=e[a]);return Object.keys(t).length>0&&r.registry.add(n,t),e.description&&(n=n.describe(e.description)),n}function Qh(e,r){if(typeof e=="boolean")return e?C.any():C.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=Sw(n,r?.defaultTarget),t=n.$defs||n.definitions||{},i={version:o,defs:t,refs:new Map,processing:new Set,rootSchema:n,registry:r?.registry??he};return ge(n,i)}var Gu={};Ge(Gu,{bigint:()=>Ew,boolean:()=>Ow,date:()=>Nw,number:()=>zw,string:()=>Iw});function Iw(e){return vc(lr,e)}function zw(e){return kc(dr,e)}function Ow(e){return Pc(pr,e)}function Ew(e){return Tc(fr,e)}function Nw(e){return Bc(Yr,e)}oe(Zn());var z=m.string().min(1),se=m.number().finite().nonnegative(),eg=m.number().int().nonnegative(),pe=m.record(m.string(),m.json()),Ot=m.strictObject({width:m.number().int().positive(),height:m.number().int().positive()}),Et=m.enum(["passed","failed","error","inconclusive","canceled"]),Ku=m.enum(["queued","provisioning","leasing","setup","running","judging","cleanup","finished"]),Xu=m.strictObject({inputTokens:m.number().int().nonnegative(),outputTokens:m.number().int().nonnegative(),cacheReadTokens:m.number().int().nonnegative().optional(),cacheWriteTokens:m.number().int().nonnegative().optional(),costUsd:m.number().finite().nonnegative().optional(),costUnknown:m.literal(!0).optional()}),Hu=Xu.extend({actions:m.number().int().nonnegative(),minutes:m.number().finite().nonnegative(),e2bMinutes:m.number().finite().nonnegative().optional()}),tg=Hu.extend({costUnavailableRuns:m.number().int().nonnegative().optional()}),Tz=m.discriminatedUnion("mode",[m.strictObject({mode:m.literal("inherit-login")}),m.strictObject({mode:m.literal("env"),env:m.record(z,m.string())})]).default({mode:"inherit-login"}),jz=Object.freeze({mode:"inherit-login"}),rg=m.discriminatedUnion("ok",[m.strictObject({ok:m.literal(!0),data:pe,ms:se,changed:m.boolean().optional(),shot:z.optional()}),m.strictObject({ok:m.literal(!1),error:m.strictObject({code:z,message:m.string()}),ms:se,shot:z.optional()})]),sn=m.discriminatedUnion("layer",[m.strictObject({layer:m.literal("semantic"),crop:z.max(1024).optional(),ref:z.optional(),role:m.string().optional(),name:m.string().optional(),label:m.string().optional(),point:m.strictObject({x:m.number().finite().nonnegative(),y:m.number().finite().nonnegative()}).optional(),viewport:Ot.optional()}),m.strictObject({layer:m.literal("pixel"),x:m.number().finite().nonnegative(),y:m.number().finite().nonnegative(),viewport:Ot,image:Ot,scale:m.strictObject({x:m.number().positive().finite(),y:m.number().positive().finite()}).optional(),point:m.strictObject({x:m.number().finite().nonnegative(),y:m.number().finite().nonnegative()}).optional(),crop:z.max(1024).optional(),end:m.strictObject({x:m.number().finite().nonnegative(),y:m.number().finite().nonnegative(),crop:z.max(1024)}).optional(),path:m.array(m.strictObject({x:m.number().finite().nonnegative(),y:m.number().finite().nonnegative(),t:se})).optional()})]),Nt=pe.and(m.object({type:z})),Qi=m.strictObject({passed:m.boolean(),evidence:pe,reason:m.string().optional()}),ng=m.strictObject({confidence:m.number().min(0).max(1).optional(),verdict:m.enum(["passed","failed","inconclusive"]),reason:m.string(),evidence:pe});var Dw=128*1024,Pw=m.strictObject({data:m.string().max(Math.ceil(Dw/3)*4),mimeType:m.literal("image/jpeg"),width:m.number().int().positive().max(1280),height:m.number().int().positive().max(1280)}),ig=m.strictObject({view:z,shot:z.max(1024).optional(),phase:m.enum(["before","after"]),image:Pw.optional(),omitted:m.string().max(1024).optional()}),og=m.strictObject({view:z,text:m.string().max(16e3).optional(),snapshot:m.string().max(16e3).optional(),shot:z.max(1024).optional(),truncated:m.boolean(),unavailable:m.boolean()}),sg=m.strictObject({actor:z,step:z,screenshots:m.boolean().optional(),phase:m.enum(["before","after"]).optional()}),ag=m.strictObject({views:m.array(og).max(8),screenshots:m.array(ig).max(8).optional()}),Rw=256,cg=m.strictObject({schemaVersion:m.literal(1),actor:z,step:z,method:m.enum(["agent","replay"]),events:m.array(pe).max(Rw),views:m.array(og).max(8),screenshots:m.array(ig).max(16).optional(),incomplete:m.boolean()});var Tw=["do","evidence","wait","scope","other"],lg={eventSeqs:m.array(m.number().int().positive()).max(128),shots:m.array(m.string().min(1).max(1024)).max(32)},jw=m.strictObject({item:m.enum(Tw),actor:z,step:z,status:m.enum(["pass","fail","unknown"]),reason:m.string().min(1).max(2e3),failureCause:m.enum(["agent","product-result"]).optional(),...lg}),Cw=m.strictObject({actor:z,step:z,category:m.enum(["scope","other"]),severity:m.enum(["low","medium","high"]),description:m.string().min(1).max(4e3),...lg}),Vz=m.strictObject({target:m.string().min(1).max(2048),steps:m.array(m.strictObject({instruction:m.string(),evidence:cg})).max(32),incomplete:m.boolean()}),ug=m.strictObject({status:m.enum(["completed","incomplete","skipped"]),reason:m.string().min(1).max(8e3),checks:m.array(jw).max(160),findings:m.array(Cw).max(32),evidence:pe.optional()});var te={seq:m.number().int().positive(),t:se,actor:z.optional(),view:z.optional(),step:z.optional(),by:m.enum(["agent","program","replay","hook","conductor","system"])},dg={view:z,format:m.literal("rrweb"),index:z},mr=m.discriminatedUnion("kind",[m.strictObject({...te,kind:m.literal("reviewer_result"),result:ug,originalVerdict:Et,verdict:Et,failureType:m.literal("agent").optional()}),m.strictObject({...te,kind:m.literal("heal_result"),runtime:z.optional(),model:z.optional(),modelAccess:m.enum(["login","env"]).optional(),actor:z,step:z,sourceVersion:m.number().int().positive(),version:m.number().int().positive().optional(),cacheId:m.string().regex(/^[a-f0-9]{64}:[1-9][0-9]*$/).optional(),mode:m.enum(["auto","review"]),outcome:m.enum(["passed","failed"]),cache:m.enum(["saved","pending","unavailable"]),beforeShot:z.optional(),shot:z.optional()}),m.strictObject({...te,kind:m.literal("armed"),barrier:z,actor:z,step:z,tool:z}),m.strictObject({...te,kind:m.literal("together_fired"),barrier:z,actions:m.array(m.strictObject({actor:z,step:z,tool:z,startedAt:se.optional(),ok:m.boolean()})),maxSkewMs:se}),m.strictObject({...te,kind:m.literal("together_warning"),barrier:z,maxSkewMs:se,message:m.string()}),m.strictObject({...te,kind:m.literal("cache_warning"),message:m.string()}),m.strictObject({...te,kind:m.literal("run_phase"),phase:Ku,runtime:z.optional(),modelAccess:m.enum(["login","env"]).optional(),agentAt:m.enum(["host","stage"]).optional(),marker:z.optional()}),m.strictObject({...te,kind:m.literal("lease_acquired"),leaseId:z,expiresAt:se.optional(),resources:m.array(m.strictObject({actor:z,kind:z,resource:z}))}),m.strictObject({...te,kind:m.literal("view_opened"),actor:z,view:z,type:m.enum(["page","rendered"]),url:m.url()}),m.strictObject({...te,kind:m.literal("view_closed"),view:z}),m.strictObject({...te,kind:m.literal("step_phase"),actor:z,step:z,phase:m.enum(["replaying","agent","healing","checking"])}),m.strictObject({...te,kind:m.literal("step_started"),actor:z,step:z}),m.strictObject({...te,kind:m.literal("action"),tool:z,args:pe,data:pe.optional(),ok:m.boolean(),ms:se,changed:m.boolean().optional(),beforeShot:z.optional(),shot:z.optional(),target:sn.optional(),error:m.string().optional()}),m.strictObject({...te,kind:m.literal("expect_result"),condition:Nt,result:Qi}),m.strictObject({...te,kind:m.literal("judge_result"),condition:z,result:ng}),m.strictObject({...te,kind:m.literal("agent_text"),text:m.string()}),m.strictObject({...te,kind:m.literal("usage"),...Xu.shape,source:m.enum(["main","heal","judge","reviewer"]).optional(),billing:m.enum(["subscription","metered"]).optional()}),m.strictObject({...te,kind:m.literal("step_finished"),step:z,status:m.enum(["passed","failed"]),reason:m.string().optional()}),m.strictObject({...te,kind:m.literal("deadlock"),lanes:m.array(m.strictObject({actor:z,step:z.optional(),waitsFor:m.array(m.string())})).min(1)}),m.strictObject({...te,kind:m.literal("run_finished"),verdict:Et,reason:m.string().optional()}),m.strictObject({...te,kind:m.literal("record_started"),...dg}),m.strictObject({...te,kind:m.literal("record_stopped"),...dg}),m.strictObject({...te,kind:m.literal("console"),view:z,level:m.enum(["log","debug","info","error","warning","dir","dirxml","table","trace","clear","startGroup","startGroupCollapsed","endGroup","assert","profile","profileEnd","count","time","timeEnd"]),text:m.string()}),m.strictObject({...te,kind:m.literal("page_error"),view:z,message:m.string()}),m.strictObject({...te,kind:m.literal("page_crash"),view:z}),m.strictObject({...te,kind:m.literal("network"),view:z,url:m.url(),method:z,status:m.number().int().min(100).max(599).optional(),ms:se,error:m.string().optional()})]),Gz=new Set(mr.options.map(e=>e.shape.kind.value)),Kz=new Set(mr.options.flatMap(e=>Object.keys(e.shape)));var Aw=["step_done","step_blocked","arm"],Uw=["vars_set","vars_get","signal_send"],Mw=["snapshot","screenshot","text"],Lw=["view_list",...Mw.map(e=>`view_${e}`)],Yu=["web_goto","web_back","web_reload","web_click","web_fill","web_press","web_select","web_scroll","web_wait_for","web_open_window"],Qu=["screen_click","screen_double_click","screen_drag","screen_type","screen_key","screen_scroll"],Hz=[...Lw,...Aw,...Uw,...Yu,...Qu],pg=["telegram_send","telegram_read","telegram_wait_for","telegram_open_button"],fg=["discord_read","discord_wait_for","discord_open_button"],mg=["email_read","email_open_link"];var Zw=m.discriminatedUnion("layer",[sn.options[0].omit({ref:!0}),sn.options[1]]),hg=m.strictObject({tool:m.enum([...Yu,...Qu,...pg,...fg,...mg]),args:pe,target:Zw.optional(),arm:m.literal(!0).optional()}),gg=m.strictObject({actor:z,step:z,commands:m.array(hg.extend({cropImage:m.string().max(262144).optional(),endCropImage:m.string().max(262144).optional()})).max(256),postconditions:m.array(Nt).min(1).max(100)}),vg=m.discriminatedUnion("ok",[m.strictObject({ok:m.literal(!0)}),m.strictObject({ok:m.literal(!1),completed:m.array(hg).optional(),retrySafe:m.boolean().optional(),commandIndex:m.number().int().nonnegative(),reason:m.string().min(1).max(2e3)})]);var ve=m.string().max(16e3),Fw=m.discriminatedUnion("template",[m.strictObject({template:m.literal("chat"),title:ve,messages:m.array(m.strictObject({id:z.max(128),author:ve,time:ve,content:ve,embeds:m.array(m.strictObject({title:ve.optional(),description:ve.optional(),fields:m.array(m.strictObject({name:ve,value:ve})).max(25).optional(),footer:ve.optional()})).max(10).optional(),buttons:m.array(m.strictObject({label:ve,url:m.url().refine(e=>{let r=new URL(e);return["http:","https:"].includes(r.protocol)&&!r.username&&!r.password}).optional()})).max(25).optional()})).max(200)}),m.strictObject({template:m.literal("telegram"),title:ve,messages:m.array(m.strictObject({id:z.max(128),author:ve,time:ve,html:m.string().max(64e3),buttons:m.array(m.strictObject({label:ve})).max(25).optional()})).max(200)}),m.strictObject({template:m.literal("email"),from:ve,subject:ve,html:m.string().max(256e3)})]),Vw=m.strictObject({view:z,content:Fw}),qw=m.strictObject({view:z,rendered:m.literal(!0)}),Bw=m.strictObject({actor:z,view:z,type:m.literal("page"),url:m.url(),storageState:pe.optional(),viewport:Ot.optional()}),Jw=m.discriminatedUnion("type",[Bw,m.strictObject({actor:z,view:z,type:m.literal("rendered"),template:m.enum(["chat","email","telegram"]),email:m.strictObject({address:m.email()}).optional(),telegram:m.strictObject({token:m.string().min(6).max(4096),chatId:m.union([m.number().int(),m.string().min(1).max(128)])}).optional(),source:m.strictObject({surface:m.literal("discord"),channel:m.string().regex(/^\d{1,20}$/)}).optional(),viewport:Ot.optional()})]),Ww=m.strictObject({actor:z,view:z,type:m.enum(["page","rendered"]),url:m.url(),viewport:Ot.optional()}),yg=m.strictObject({actor:z,step:z.optional(),barrier:z.optional(),level:m.enum(["semantic","pixel","hybrid"])}),Gw=yg,Kw=m.strictObject({view:z}),Xw=m.strictObject({view:z,closed:m.literal(!0)}),Hw=m.strictObject({actor:z,view:z.optional(),step:z.optional(),condition:Nt}),Yw=Qi.extend({condition:Nt.optional()}),bg=m.strictObject({views:m.union([m.literal("all"),m.array(z).min(1)])}),Qw=bg,xg=m.strictObject({format:m.literal("rrweb"),recordings:m.array(m.strictObject({view:z,index:z}))}),e$=xg,t$=xg,r$=m.strictObject({path:z,contentType:z,bytes:m.number().int().nonnegative()}),n$=m.strictObject({destination:m.discriminatedUnion("type",[m.strictObject({type:m.literal("directory"),path:z}),m.strictObject({type:m.literal("signed-urls"),urls:m.record(z,m.url()),snapshot:z.optional()})])}),i$=m.strictObject({artifacts:m.array(r$),snapshot:z.optional()}),o$=m.strictObject({}),s$=m.strictObject({status:m.enum(["starting","ready","stopping"]),t:se}),a$=m.strictObject({afterSeq:eg.default(0)}),c$=m.array(mr),l$=m.strictObject({calls:m.array(m.strictObject({actor:z,tool:z.max(128),args:pe})).min(1).max(32)}),u$=m.strictObject({results:m.array(rg)}),d$=m.strictObject({barrier:z,actors:m.array(z).min(1).max(100).refine(e=>new Set(e).size===e.length,"Duplicate actors")}),p$=m.strictObject({barrier:z,actions:m.array(m.strictObject({actor:z,step:z,tool:z,startedAt:se.optional(),ok:m.boolean()})),maxSkewMs:se}),lO={captureEvidence:{request:sg,response:ag},replay:{request:gg,response:vg},addRedactions:{request:m.strictObject({values:m.array(m.string().min(1).max(65536)).max(1e4)}),response:m.strictObject({ok:m.literal(!0)})},executeTools:{request:l$,response:u$},fire:{request:d$,response:p$},setStep:{request:yg,response:Gw},openView:{request:Jw,response:Ww},renderView:{request:Vw,response:qw},closeView:{request:Kw,response:Xw},expect:{request:Hw,response:Yw},recordStart:{request:bg,response:e$},recordStop:{request:Qw,response:t$},flushArtifacts:{request:n$,response:i$},health:{request:o$,response:s$},events:{request:a$,response:c$}};var f$=pe.and(m.object({type:m.number().int().nonnegative(),timestamp:se,data:m.json()})),fO=m.strictObject({seq:m.number().int().positive(),t:se,view:z,event:f$}),ed=m.strictObject({first:se,last:se}),wg=m.strictObject({block:z,seq:m.number().int().positive()}),$g=m.strictObject({meta:wg,snapshot:wg}),mO=m.strictObject({schemaVersion:m.literal(1),view:z,calibrations:m.array(m.strictObject({document:z,seq:m.number().int().positive(),browserTime:se,t:se})),checkpoints:m.array($g),blocks:m.array(m.strictObject({path:z,seq:ed,timestamp:ed,t:ed,bytes:m.number().int().nonnegative(),rawBytes:m.number().int().nonnegative(),sha256:m.string().regex(/^[a-f0-9]{64}$/),checkpoint:$g.nullable()}))}),hO=m.record(z,m.strictObject({hash:m.string().regex(/^[a-f0-9]{64}$/),mime:z,bytes:m.number().int().nonnegative()})),gO=m.strictObject({schemaVersion:m.literal(1),format:m.literal("rrweb"),recorder:m.strictObject({name:m.literal("@rrweb/record"),version:z}),player:m.strictObject({name:m.literal("@rrweb/replay"),version:z}),assets:z,views:m.array(m.strictObject({view:z,index:z,browser:z,viewport:m.strictObject({width:m.number().positive(),height:m.number().positive()}),segments:m.array(m.strictObject({document:z,firstSeq:m.number().int().positive(),lastSeq:m.number().int().nonnegative(),missing:m.array(m.enum(["canvas","cross-origin-iframe","page-crash","unflushed-tail","resource-limit","recording-failed"]))}))})),warnings:m.array(m.string())});var eo=m.string().min(3).max(4096),bO=m.strictObject({target:m.enum(["dev","staging","prod"]),db:m.strictObject({url:m.url().refine(e=>{let r=new URL(e);return["libsql:","https:"].includes(r.protocol)&&!!r.hostname&&!r.username&&!r.password&&!r.search&&!r.hash&&["","/"].includes(r.pathname)}),token:eo}).optional(),logs:m.strictObject({project:m.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/),accessToken:eo}).optional(),github:m.strictObject({repos:m.array(m.string().regex(/^[a-zA-Z0-9_-][\w.-]*\/[a-zA-Z0-9_-][\w.-]*$/)).min(1),token:eo}).optional(),secrets:m.record(m.string(),eo).optional()});var ad=m.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$/,"projectId must be a persistent opaque identifier (letters, digits, underscores or hyphens)"),m$=m.string().refine(e=>{try{return/^[+-]/.test(e)?!1:(new Intl.DateTimeFormat("en",{timeZone:e}),!0)}catch{return!1}},"timeZone must be an IANA time zone"),td=m.strictObject({source:m.string(),sha256:m.string().regex(/^[a-f0-9]{64}$/)}),ro=m.strictObject({surfaces:m.array(m.enum(["web","telegram","discord"])),recording:m.array(m.literal("rrweb")),levels:m.array(m.enum(["semantic","pixel","hybrid"]))}),no=m.strictObject({runtime:m.enum(["claude-code","codex","scripted"]).nullable(),modelAccess:m.enum(["login","env"]).nullable(),credentialSource:m.enum(["subscription-token","local-login","model-env"]).nullable(),placement:m.enum(["local-host","e2b"]).nullable(),capabilities:ro.nullable()}),to=m.strictObject({schemaVersion:m.literal(1),capturedAt:m.number().finite().nonnegative(),projectId:ad,timeZone:m.strictObject({value:m$,source:m.enum(["config","machine","fallback"])}),definitions:m.strictObject({flow:td,suite:td.nullable(),config:td.nullable()}),target:m.strictObject({name:m.string(),origin:m.url().refine(e=>{if(!URL.canParse(e))return!1;let r=new URL(e);return["http:","https:"].includes(r.protocol)&&e===r.origin}).nullable(),allow:m.array(m.string()),access:m.enum(["cloudflare","none"]),prodSafeOnly:m.boolean()}),effective:m.strictObject({prod:m.enum(["never","safe"]),tier:m.enum(["T1","T2","T3","T4"]).nullable(),budget:m.strictObject({actions:m.number().positive().optional(),minutes:m.number().positive().optional()}).nullable(),record:m.array(m.literal("rrweb")),retries:m.union([m.literal(0),m.literal(1)]),level:m.literal("pixel").nullable(),headed:m.boolean()}),declared:m.strictObject({runtime:m.enum(["claude-code","codex"]),modelAccess:m.literal("login"),placement:m.enum(["local-host","e2b"]),capabilities:ro}),observed:no.extend({modelAccess:m.literal("login").nullable(),credentialSource:m.enum(["subscription-token","local-login"]).nullable()}),versions:m.strictObject({cli:m.string(),engine:m.string(),node:m.string(),commit:m.string().regex(/^[a-f0-9]{40,64}$/).nullable(),dirty:m.boolean().nullable()}),environment:m.strictObject({subscriptionToken:m.enum(["set","missing","unknown"]),cloudflareAccess:m.enum(["set","missing","unknown"])})}),rd=to.extend({schemaVersion:m.literal(2),target:to.shape.target.extend({revision:m.string().regex(/^[a-f0-9]{40,64}$/).optional()})}),nd=rd.extend({schemaVersion:m.literal(3),declared:rd.shape.declared.extend({modelAccess:m.enum(["login","env"]),agentAt:m.enum(["host","stage"])}),observed:no}),id=nd.extend({schemaVersion:m.literal(4),effective:nd.shape.effective.extend({budget:to.shape.effective.shape.budget.unwrap().extend({usd:m.number().positive().optional()}).nullable()})}),od=id.extend({schemaVersion:m.literal(5),declared:id.shape.declared.extend({heal:m.strictObject({runtime:m.enum(["claude-code","codex","pi"]),model:m.string().nullable(),modelAccess:m.enum(["login","env"])})})}),sd=ro.extend({surfaces:m.array(m.enum(["web","telegram","discord","email","testapp","desktop"]))}),h$=od.extend({schemaVersion:m.literal(6),declared:od.shape.declared.extend({capabilities:sd}),observed:no.extend({capabilities:sd.nullable()})}),$O=m.discriminatedUnion("schemaVersion",[to,rd,nd,id,od,h$]),_O=no.extend({capabilities:m.union([ro,sd]).nullable()});var fe=ad,io=m.string().max(1024).refine(e=>!e.includes("\0")),g$=m.strictObject({flows:m.array(fe).min(1).max(100),target:fe,runtime:m.enum(["claude-code","pi"]).default("claude-code"),modelAccess:m.enum(["personal","team"]).default("personal"),commit:m.string().regex(/^[a-f0-9]{40,64}$/).optional(),retries:m.union([m.literal(0),m.literal(1)]).default(1)}),v$=m.strictObject({schemaVersion:m.literal(1),projectId:fe,id:fe,trigger:m.enum(["developer","pr-label","schedule"]),createdAt:m.string().datetime(),request:g$,usage:tg.optional()}),NO=m.strictObject({schemaVersion:m.literal(1),projectId:fe,id:fe,flow:io,startedAt:m.number().nonnegative(),lastSeq:m.number().int().nonnegative(),result:m.strictObject({verdict:Et,finishedAt:m.number().nonnegative(),usage:Hu.optional(),costStatus:m.enum(["recorded","unavailable"]).optional(),errorReason:m.literal("budget").optional()}).nullable()}),DO=m.strictObject({schemaVersion:m.literal(1),projectId:fe,runId:fe,events:m.array(mr),next:m.number().int().nonnegative()}),PO=m.strictObject({runtime:m.enum(["claude-code","pi"]),kind:m.enum(["claude","anthropic-key","openai-key"]),token:m.string().min(32).max(65536).regex(/^[!-~]+$/),expiresAt:m.number().int().positive().max(864e13).nullable().refine(e=>e===null||e>Date.now())}).refine(e=>e.runtime==="claude-code"?e.kind==="claude":e.kind!=="claude").refine(e=>({claude:/^sk-ant-oat01-[A-Za-z0-9_-]+$/,"anthropic-key":/^sk-ant-api03-[A-Za-z0-9_-]+$/,"openai-key":/^sk-(?!ant-)[A-Za-z0-9_-]+$/})[e.kind].test(e.token)),y$=m.strictObject({id:m.enum(["claude-code","pi"]),expiresAt:m.number().nullable(),state:m.enum(["connected","expired"])}),b$=m.strictObject({id:fe,runId:fe,state:m.enum(["active","quarantined","released"]),expiresAt:m.string().datetime()}),RO=m.strictObject({schemaVersion:m.literal(1),projectId:fe,batches:m.array(v$)}),TO=m.strictObject({schemaVersion:m.literal(1),projectId:fe,credentials:m.array(y$)}),jO=m.strictObject({schemaVersion:m.literal(1),projectId:fe,leases:m.array(b$)}),x$=m.url().refine(e=>{let r=new URL(e);return["http:","https:"].includes(r.protocol)&&r.origin===e});var w$=m.strictObject({flows:m.array(m.strictObject({id:fe,name:io,tags:m.array(fe).max(100),revision:m.string().regex(/^[a-f0-9]{64}$/),prod:m.enum(["never","safe"])})).max(1e4)}),$$=m.strictObject({targets:m.array(m.strictObject({name:fe,origin:x$,allow:m.array(io).max(100),prodSafeOnly:m.boolean()})).max(100),timeZone:io}),_$=m.strictObject({target:fe,checks:m.array(m.strictObject({id:m.enum(["runtime","login","browser","accounts","target","database","access","gmail","telegram","models","locking"]),status:m.enum(["passed","failed","not_checked"])})).max(20)}),cd=m.strictObject({schemaVersion:m.literal(1),projectId:fe,source:m.enum(["worker","cli"]),revision:m.string().regex(/^[a-f0-9]{64}$/),capturedAt:m.string().datetime()}),CO={catalog:cd.extend({data:w$}),configuration:cd.extend({data:$$}),diagnostics:cd.extend({data:_$})},AO=m.string().max(512).regex(/^[a-zA-Z0-9_./-]+$/).refine(e=>!e.startsWith("/")&&e.split("/").every(r=>!!r&&r!=="."&&r!==".."));var S$=["product-bug","test-case","env","flaky","agent"],_g=m.enum(S$),Sg=m.strictObject({category:_g,confidence:m.number().min(0).max(1),reason:m.string().trim().min(1).max(8e3),source:m.enum(["rule","model","fallback","human"])}),k$=m.strictObject({category:_g,reason:m.string().trim().min(1).max(2e3)}),I$=k$.extend({modifiedBy:m.string().min(1).max(512),modifiedAt:m.number().int().nonnegative(),predicted:Sg.nullable()}),LO=m.strictObject({classification:Sg.nullable(),labels:m.array(I$)});function ld(e,r){return e?e.costUnknown?`Cost unknown${e.costUsd!=null?` (known subtotal $${e.costUsd.toFixed(6)})`:""}`:e.costUsd!=null?`$${e.costUsd.toFixed(6)}`:r==="login"?"Subscription":"Cost unknown":"Not recorded"}function oo(e){return e==="login"?"Subscription login":e==="env"?"API":"Not recorded"}function ud(e,r,n){if(!n?.length)return[{label:e?"Recorded usage (source not recorded)":"",usage:e,access:r}];let o={main:"Main flow",heal:"Self-heal",judge:"Judge",reviewer:"Reviewer"},t=n.map(i=>({label:i.source?`${o[i.source]} ${i.billing==="subscription"?"Subscription":i.billing==="metered"?"API":"(billing not recorded)"}`:"Recorded usage (source not recorded)",usage:i.usage,access:i.billing==="subscription"?"login":i.billing==="metered"?"env":null}));return n.some(i=>i.source==="main"||i.source===null)||t.unshift({label:r==="login"?"Main flow Subscription":r==="env"?"Main flow API":"Main flow",usage:null,access:r??null}),t}var O$=Object.defineProperty,E$=(e,r,n)=>r in e?O$(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,L=(e,r,n)=>E$(e,typeof r!="symbol"?r+"":r,n),kg,N$=Object.defineProperty,D$=(e,r,n)=>r in e?N$(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ig=(e,r,n)=>D$(e,typeof r!="symbol"?r+"":r,n),ce=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ce||{});Date.now().toString();function P$(e){return e.nodeType===e.ELEMENT_NODE}var mo=class{constructor(){Ig(this,"idNodeMap",new Map),Ig(this,"nodeMetaMap",new WeakMap)}getId(r){var n;return r?((n=this.getMeta(r))==null?void 0:n.id)??-1:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let n=this.getId(r);this.idNodeMap.delete(n),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,n){let o=n.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,n)}replace(r,n){let o=this.getNode(r);if(o){let t=this.nodeMetaMap.get(o);t&&this.nodeMetaMap.set(n,t)}this.idNodeMap.set(r,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Yv(){return new mo}function R$(e){return e.toLowerCase()}function T$(e,r){return!e||!r||e.type!==r.type?!1:e.type===ce.Document?e.compatMode===r.compatMode:e.type===ce.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===ce.Comment||e.type===ce.Text||e.type===ce.CDATA?e.textContent===r.textContent:e.type===ce.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function j$(e,r){let n;try{n=new URL(e,r??window.location.href)}catch{return null}let o=/\.([0-9a-z]+)(?:$)/i,t=n.pathname.match(o);return t?.[1]??null}var C$=/(max|min)-device-(width|height)/,zg=new RegExp(C$.source,"g"),A$={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(zg)&&(e.params=e.params.replace(zg,"$1-$2"))}}}},U$={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(n){n.includes(":hover")&&(r.selector+=`,
66
- `+n.replace(/:hover/g,".\\:hover"))}))}}}};function M$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function L$(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}var so={exports:{}},Og;function Z$(){if(Og)return so.exports;Og=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return so.exports=r(),so.exports.createColors=r,so.exports}var F$={},V$=Object.freeze(Object.defineProperty({__proto__:null,default:F$},Symbol.toStringTag,{value:"Module"})),Ae=L$(V$),dd,Eg;function Pp(){if(Eg)return dd;Eg=1;let e=Z$(),r=Ae;class n extends Error{constructor(t,i,s,a,u,l){super(t),this.name="CssSyntaxError",this.reason=t,u&&(this.file=u),a&&(this.source=a),l&&(this.plugin=l),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(this.line=i,this.column=s):(this.line=i.line,this.column=i.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let i=this.source;t==null&&(t=e.isColorSupported),r&&t&&(i=r(i));let s=i.split(/\r?\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),l=String(u).length,c,f;if(t){let{bold:d,gray:p,red:h}=e.createColors(!0);c=g=>d(h(g)),f=g=>p(g)}else c=f=d=>d;return s.slice(a,u).map((d,p)=>{let h=a+1+p,g=" "+(" "+h).slice(-l)+" | ";if(h===this.line){let v=f(g.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return c(">")+f(g)+d+`
67
- `+v+c("^")}return" "+f(g)+d}).join(`
65
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(r===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(r!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function pt(e,r){let n=e.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let l=e.seen.get(a);if(l.ref===null)return;let u=l.def??l.schema,c={...u},m=l.ref;if(l.ref=null,m){o(m);let f=e.seen.get(m),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):Object.assign(u,h),Object.assign(u,c),a._zod.parent===m)for(let v in u)v==="$ref"||v==="allOf"||v in c||delete u[v];if(h.$ref&&f.def)for(let v in u)v==="$ref"||v==="allOf"||v in f.def&&JSON.stringify(u[v])===JSON.stringify(f.def[v])&&delete u[v]}let p=a._zod.parent;if(p&&p!==m){o(p);let f=e.seen.get(p);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let h in u)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(u[h])===JSON.stringify(f.def[h])&&delete u[h]}e.override({zodSchema:a,jsonSchema:u,path:l.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(a)}Object.assign(t,n.def??n.schema);let i=e.metadataRegistry.get(r)?.id;i!==void 0&&t.id===i&&delete t.id;let s=e.external?.defs??{};for(let a of e.seen.entries()){let l=a[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,s[l.defId]=l.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?t.$defs=s:t.definitions=s);try{let a=JSON.parse(JSON.stringify(t));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:or(r,"input",e.processors),output:or(r,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function $e(e,r){let n=r??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return $e(o.element,n);if(o.type==="set")return $e(o.valueType,n);if(o.type==="lazy")return $e(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return $e(o.innerType,n);if(o.type==="intersection")return $e(o.left,n)||$e(o.right,n);if(o.type==="record"||o.type==="map")return $e(o.keyType,n)||$e(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:$e(o.in,n)||$e(o.out,n);if(o.type==="object"){for(let t in o.shape)if($e(o.shape[t],n))return!0;return!1}if(o.type==="union"){for(let t of o.options)if($e(t,n))return!0;return!1}if(o.type==="tuple"){for(let t of o.items)if($e(t,n))return!0;return!!(o.rest&&$e(o.rest,n))}return!1}var yl=(e,r={})=>n=>{let o=ut({...n,processors:r});return K(e,o),dt(o,e),pt(o,e)},or=(e,r,n={})=>o=>{let{libraryOptions:t,target:i}=o??{},s=ut({...t??{},target:i,io:r,processors:n});return K(e,s),dt(s,e),pt(s,e)};var f$={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},bl=(e,r,n,o)=>{let t=n;t.type="string";let{minimum:i,maximum:s,format:a,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(t.minLength=i),typeof s=="number"&&(t.maxLength=s),a&&(t.format=f$[a]??a,t.format===""&&delete t.format,a==="time"&&delete t.format),u&&(t.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?t.pattern=c[0].source:c.length>1&&(t.allOf=[...c.map(m=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},xl=(e,r,n,o)=>{let t=n,{minimum:i,maximum:s,format:a,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof a=="string"&&a.includes("int")?t.type="integer":t.type="number";let m=typeof c=="number"&&c>=(i??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),f=r.target==="draft-04"||r.target==="openapi-3.0";m?f?(t.minimum=c,t.exclusiveMinimum=!0):t.exclusiveMinimum=c:typeof i=="number"&&(t.minimum=i),p?f?(t.maximum=u,t.exclusiveMaximum=!0):t.exclusiveMaximum=u:typeof s=="number"&&(t.maximum=s),typeof l=="number"&&(t.multipleOf=l)},wl=(e,r,n,o)=>{n.type="boolean"},$l=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},_l=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Sl=(e,r,n,o)=>{r.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},kl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Il=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},zl=(e,r,n,o)=>{n.not={}},Ol=(e,r,n,o)=>{},El=(e,r,n,o)=>{},Pl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Nl=(e,r,n,o)=>{let t=e._zod.def,i=Dr(t.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},Dl=(e,r,n,o)=>{let t=e._zod.def,i=[];for(let s of t.values)if(s===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,r.target==="draft-04"||r.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},Rl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Tl=(e,r,n,o)=>{let t=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=i.source},Cl=(e,r,n,o)=>{let t=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:l}=e._zod.bag;s!==void 0&&(i.minLength=s),a!==void 0&&(i.maxLength=a),l?l.length===1?(i.contentMediaType=l[0],Object.assign(t,i)):(Object.assign(t,i),t.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(t,i)},jl=(e,r,n,o)=>{n.type="boolean"},Al=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Ul=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ml=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ll=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Zl=(e,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Fl=(e,r,n,o)=>{let t=n,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(t.minItems=s),typeof a=="number"&&(t.maxItems=a),t.type="array",t.items=K(i.element,r,{...o,path:[...o.path,"items"]})},Vl=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object",t.properties={};let s=i.shape;for(let u in s)t.properties[u]=K(s[u],r,{...o,path:[...o.path,"properties",u]});let a=new Set(Object.keys(s)),l=new Set([...a].filter(u=>{let c=i.shape[u]._zod;return r.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(t.required=Array.from(l)),i.catchall?._zod.def.type==="never"?t.additionalProperties=!1:i.catchall?i.catchall&&(t.additionalProperties=K(i.catchall,r,{...o,path:[...o.path,"additionalProperties"]})):r.io==="output"&&(t.additionalProperties=!1)},Ii=(e,r,n,o)=>{let t=e._zod.def,i=t.inclusive===!1,s=t.options.map((a,l)=>K(a,r,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=s:n.anyOf=s},ql=(e,r,n,o)=>{let t=e._zod.def,i=K(t.left,r,{...o,path:[...o.path,"allOf",0]}),s=K(t.right,r,{...o,path:[...o.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=l},Bl=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="array";let s=r.target==="draft-2020-12"?"prefixItems":"items",a=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((p,f)=>K(p,r,{...o,path:[...o.path,s,f]})),u=i.rest?K(i.rest,r,{...o,path:[...o.path,a,...r.target==="openapi-3.0"?[i.items.length]:[]]}):null;r.target==="draft-2020-12"?(t.prefixItems=l,u&&(t.items=u)):r.target==="openapi-3.0"?(t.items={anyOf:l},u&&t.items.anyOf.push(u),t.minItems=l.length,u||(t.maxItems=l.length)):(t.items=l,u&&(t.additionalItems=u));let{minimum:c,maximum:m}=e._zod.bag;typeof c=="number"&&(t.minItems=c),typeof m=="number"&&(t.maxItems=m)},Wl=(e,r,n,o)=>{let t=n,i=e._zod.def;t.type="object";let s=i.keyType,l=s._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let c=K(i.valueType,r,{...o,path:[...o.path,"patternProperties","*"]});t.patternProperties={};for(let m of l)t.patternProperties[m.source]=c}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(t.propertyNames=K(i.keyType,r,{...o,path:[...o.path,"propertyNames"]})),t.additionalProperties=K(i.valueType,r,{...o,path:[...o.path,"additionalProperties"]});let u=s._zod.values;if(u){let c=[...u].filter(m=>typeof m=="string"||typeof m=="number");c.length>0&&(t.required=c)}},Jl=(e,r,n,o)=>{let t=e._zod.def,i=K(t.innerType,r,o),s=r.seen.get(e);r.target==="openapi-3.0"?(s.ref=t.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Gl=(e,r,n,o)=>{let t=e._zod.def;K(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},Kl=(e,r,n,o)=>{let t=e._zod.def;K(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.default=JSON.parse(JSON.stringify(t.defaultValue))},Hl=(e,r,n,o)=>{let t=e._zod.def;K(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,r.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},Xl=(e,r,n,o)=>{let t=e._zod.def;K(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType;let s;try{s=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},Yl=(e,r,n,o)=>{let t=e._zod.def,i=t.in._zod.traits.has("$ZodTransform"),s=r.io==="input"?i?t.out:t.in:t.out;K(s,r,o);let a=r.seen.get(e);a.ref=s},Ql=(e,r,n,o)=>{let t=e._zod.def;K(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType,n.readOnly=!0},eu=(e,r,n,o)=>{let t=e._zod.def;K(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},zi=(e,r,n,o)=>{let t=e._zod.def;K(t.innerType,r,o);let i=r.seen.get(e);i.ref=t.innerType},tu=(e,r,n,o)=>{let t=e._zod.innerType;K(t,r,o);let i=r.seen.get(e);i.ref=t},ki={string:bl,number:xl,boolean:wl,bigint:$l,symbol:_l,null:Sl,undefined:kl,void:Il,never:zl,any:Ol,unknown:El,date:Pl,enum:Nl,literal:Dl,nan:Rl,template_literal:Tl,file:Cl,success:jl,custom:Al,function:Ul,transform:Ml,map:Ll,set:Zl,array:Fl,object:Vl,union:Ii,intersection:ql,tuple:Bl,record:Wl,nullable:Jl,nonoptional:Gl,default:Kl,prefault:Hl,catch:Xl,pipe:Yl,readonly:Ql,promise:eu,optional:zi,lazy:tu};function Oi(e,r){if("_idmap"in e){let o=e,t=ut({...r,processors:ki}),i={};for(let l of o._idmap.entries()){let[u,c]=l;K(c,t)}let s={},a={registry:o,uri:r?.uri,defs:i};t.external=a;for(let l of o._idmap.entries()){let[u,c]=l;dt(t,c),s[u]=pt(t,c)}if(Object.keys(i).length>0){let l=t.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:i}}return{schemas:s}}let n=ut({...r,processors:ki});return K(e,n),dt(n,e),pt(n,e)}var Ei=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let n=r?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=ut({processors:ki,target:n,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,n={path:[],schemaPath:[]}){return K(r,this.ctx,n)}emit(r,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),dt(this.ctx,r);let o=pt(this.ctx,r),{"~standard":t,...i}=o;return i}};var oh={};var Hr={};Ke(Hr,{ZodAny:()=>ku,ZodArray:()=>Eu,ZodBase64:()=>Hi,ZodBase64URL:()=>Xi,ZodBigInt:()=>fr,ZodBigIntFormat:()=>eo,ZodBoolean:()=>pr,ZodCIDRv4:()=>Gi,ZodCIDRv6:()=>Ki,ZodCUID:()=>Zi,ZodCUID2:()=>Fi,ZodCatch:()=>Xu,ZodCodec:()=>ln,ZodCustom:()=>un,ZodCustomStringFormat:()=>ur,ZodDate:()=>nn,ZodDefault:()=>Bu,ZodDiscriminatedUnion:()=>Nu,ZodE164:()=>Yi,ZodEmail:()=>Ui,ZodEmoji:()=>Mi,ZodEnum:()=>cr,ZodExactOptional:()=>Fu,ZodFile:()=>Lu,ZodFunction:()=>ad,ZodGUID:()=>Yr,ZodIPv4:()=>Wi,ZodIPv6:()=>Ji,ZodIntersection:()=>Du,ZodJWT:()=>Qi,ZodKSUID:()=>Bi,ZodLazy:()=>id,ZodLiteral:()=>Mu,ZodMAC:()=>yu,ZodMap:()=>Au,ZodNaN:()=>Qu,ZodNanoID:()=>Li,ZodNever:()=>zu,ZodNonOptional:()=>so,ZodNull:()=>_u,ZodNullable:()=>qu,ZodNumber:()=>dr,ZodNumberFormat:()=>Et,ZodObject:()=>sn,ZodOptional:()=>oo,ZodPipe:()=>cn,ZodPrefault:()=>Ju,ZodPreprocess:()=>ed,ZodPromise:()=>sd,ZodReadonly:()=>td,ZodRecord:()=>ar,ZodSet:()=>Uu,ZodString:()=>lr,ZodStringFormat:()=>Q,ZodSuccess:()=>Hu,ZodSymbol:()=>wu,ZodTemplateLiteral:()=>nd,ZodTransform:()=>Zu,ZodTuple:()=>Tu,ZodType:()=>F,ZodULID:()=>Vi,ZodURL:()=>rn,ZodUUID:()=>qe,ZodUndefined:()=>$u,ZodUnion:()=>an,ZodUnknown:()=>Iu,ZodVoid:()=>Ou,ZodXID:()=>qi,ZodXor:()=>Pu,_ZodString:()=>Ai,_default:()=>Wu,_function:()=>mg,any:()=>Bh,array:()=>on,base64:()=>Oh,base64url:()=>Eh,bigint:()=>Lh,boolean:()=>xu,catch:()=>Yu,check:()=>hg,cidrv4:()=>Ih,cidrv6:()=>zh,codec:()=>ug,cuid:()=>yh,cuid2:()=>bh,custom:()=>gg,date:()=>Jh,describe:()=>vg,discriminatedUnion:()=>Qh,e164:()=>Ph,email:()=>ch,emoji:()=>gh,enum:()=>no,exactOptional:()=>Vu,file:()=>sg,float32:()=>jh,float64:()=>Ah,function:()=>mg,guid:()=>lh,hash:()=>Ch,hex:()=>Th,hostname:()=>Rh,httpUrl:()=>hh,instanceof:()=>bg,int:()=>Ci,int32:()=>Uh,int64:()=>Zh,intersection:()=>Ru,invertCodec:()=>dg,ipv4:()=>_h,ipv6:()=>kh,json:()=>wg,jwt:()=>Nh,keyof:()=>Gh,ksuid:()=>$h,lazy:()=>od,literal:()=>og,looseObject:()=>Xh,looseRecord:()=>tg,mac:()=>Sh,map:()=>rg,meta:()=>yg,nan:()=>lg,nanoid:()=>vh,nativeEnum:()=>ig,never:()=>to,nonoptional:()=>Ku,null:()=>Su,nullable:()=>en,nullish:()=>ag,number:()=>bu,object:()=>Kh,optional:()=>Qr,partialRecord:()=>eg,pipe:()=>ji,prefault:()=>Gu,preprocess:()=>$g,promise:()=>fg,readonly:()=>rd,record:()=>ju,refine:()=>cd,set:()=>ng,strictObject:()=>Hh,string:()=>Xr,stringFormat:()=>Dh,stringbool:()=>xg,success:()=>cg,superRefine:()=>ld,symbol:()=>Vh,templateLiteral:()=>pg,transform:()=>io,tuple:()=>Cu,uint32:()=>Mh,uint64:()=>Fh,ulid:()=>xh,undefined:()=>qh,union:()=>ro,unknown:()=>Ot,url:()=>mh,uuid:()=>uh,uuidv4:()=>dh,uuidv6:()=>ph,uuidv7:()=>fh,void:()=>Wh,xid:()=>wh,xor:()=>Yh});var Pi={};Ke(Pi,{endsWith:()=>Xt,gt:()=>Fe,gte:()=>we,includes:()=>Kt,length:()=>zt,lowercase:()=>Jt,lt:()=>Ze,lte:()=>Oe,maxLength:()=>It,maxSize:()=>lt,mime:()=>Yt,minLength:()=>Xe,minSize:()=>Ve,multipleOf:()=>ct,negative:()=>wi,nonnegative:()=>_i,nonpositive:()=>$i,normalize:()=>Qt,overwrite:()=>je,positive:()=>xi,property:()=>Si,regex:()=>Wt,size:()=>kt,slugify:()=>nr,startsWith:()=>Ht,toLowerCase:()=>tr,toUpperCase:()=>rr,trim:()=>er,uppercase:()=>Gt});var sr={};Ke(sr,{ZodISODate:()=>Di,ZodISODateTime:()=>Ni,ZodISODuration:()=>Ti,ZodISOTime:()=>Ri,date:()=>nu,datetime:()=>ru,duration:()=>ou,time:()=>iu});var Ni=S("ZodISODateTime",(e,r)=>{Ra.init(e,r),Q.init(e,r)});function ru(e){return Ac(Ni,e)}var Di=S("ZodISODate",(e,r)=>{Ta.init(e,r),Q.init(e,r)});function nu(e){return Uc(Di,e)}var Ri=S("ZodISOTime",(e,r)=>{Ca.init(e,r),Q.init(e,r)});function iu(e){return Mc(Ri,e)}var Ti=S("ZodISODuration",(e,r)=>{ja.init(e,r),Q.init(e,r)});function ou(e){return Lc(Ti,e)}var sh=(e,r)=>{Ar.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Mr(e,n)},flatten:{value:n=>Ur(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,At,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,At,2)}},isEmpty:{get(){return e.issues.length===0}}})},h$=S("ZodError",sh),ke=S("ZodError",sh,{Parent:Error});var su=Lt(ke),au=Zt(ke),cu=Ft(ke),lu=Vt(ke),uu=On(ke),du=En(ke),pu=Pn(ke),fu=Nn(ke),mu=Dn(ke),hu=Rn(ke),gu=Tn(ke),vu=Cn(ke);var ah=new WeakMap;function tn(e,r,n){let o=Object.getPrototypeOf(e),t=ah.get(o);if(t||(t=new Set,ah.set(o,t)),!t.has(r)){t.add(r);for(let i in n){let s=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let a=s.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}var F=S("ZodType",(e,r)=>(Z.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:or(e,"input"),output:or(e,"output")}}),e.toJSONSchema=yl(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.parse=(n,o)=>su(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>cu(e,n,o),e.parseAsync=async(n,o)=>au(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>lu(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>uu(e,n,o),e.decode=(n,o)=>du(e,n,o),e.encodeAsync=async(n,o)=>pu(e,n,o),e.decodeAsync=async(n,o)=>fu(e,n,o),e.safeEncode=(n,o)=>mu(e,n,o),e.safeDecode=(n,o)=>hu(e,n,o),e.safeEncodeAsync=async(n,o)=>gu(e,n,o),e.safeDecodeAsync=async(n,o)=>vu(e,n,o),tn(e,"ZodType",{check(...n){let o=this.def;return this.clone(R.mergeDefs(o,{checks:[...o.checks??[],...n.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return be(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(cd(n,o))},superRefine(n,o){return this.check(ld(n,o))},overwrite(n){return this.check(je(n))},optional(){return Qr(this)},exactOptional(){return Vu(this)},nullable(){return en(this)},nullish(){return Qr(en(this))},nonoptional(n){return Ku(this,n)},array(){return on(this)},or(n){return ro([this,n])},and(n){return Ru(this,n)},transform(n){return ji(this,io(n))},default(n){return Wu(this,n)},prefault(n){return Gu(this,n)},catch(n){return Yu(this,n)},pipe(n){return ji(this,n)},readonly(){return rd(this)},describe(n){let o=this.clone();return he.add(o,{description:n}),o},meta(...n){if(n.length===0)return he.get(this);let o=this.clone();return he.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return he.get(e)?.description},configurable:!0}),e)),Ai=S("_ZodString",(e,r)=>{St.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>bl(e,o,t,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,tn(e,"_ZodString",{regex(...o){return this.check(Wt(...o))},includes(...o){return this.check(Kt(...o))},startsWith(...o){return this.check(Ht(...o))},endsWith(...o){return this.check(Xt(...o))},min(...o){return this.check(Xe(...o))},max(...o){return this.check(It(...o))},length(...o){return this.check(zt(...o))},nonempty(...o){return this.check(Xe(1,...o))},lowercase(o){return this.check(Jt(o))},uppercase(o){return this.check(Gt(o))},trim(){return this.check(er())},normalize(...o){return this.check(Qt(...o))},toLowerCase(){return this.check(tr())},toUpperCase(){return this.check(rr())},slugify(){return this.check(nr())}})}),lr=S("ZodString",(e,r)=>{St.init(e,r),Ai.init(e,r),e.email=n=>e.check(ei(Ui,n)),e.url=n=>e.check(Kr(rn,n)),e.jwt=n=>e.check(bi(Qi,n)),e.emoji=n=>e.check(oi(Mi,n)),e.guid=n=>e.check(Gr(Yr,n)),e.uuid=n=>e.check(ti(qe,n)),e.uuidv4=n=>e.check(ri(qe,n)),e.uuidv6=n=>e.check(ni(qe,n)),e.uuidv7=n=>e.check(ii(qe,n)),e.nanoid=n=>e.check(si(Li,n)),e.guid=n=>e.check(Gr(Yr,n)),e.cuid=n=>e.check(ai(Zi,n)),e.cuid2=n=>e.check(ci(Fi,n)),e.ulid=n=>e.check(li(Vi,n)),e.base64=n=>e.check(gi(Hi,n)),e.base64url=n=>e.check(vi(Xi,n)),e.xid=n=>e.check(ui(qi,n)),e.ksuid=n=>e.check(di(Bi,n)),e.ipv4=n=>e.check(pi(Wi,n)),e.ipv6=n=>e.check(fi(Ji,n)),e.cidrv4=n=>e.check(mi(Gi,n)),e.cidrv6=n=>e.check(hi(Ki,n)),e.e164=n=>e.check(yi(Yi,n)),e.datetime=n=>e.check(ru(n)),e.date=n=>e.check(nu(n)),e.time=n=>e.check(iu(n)),e.duration=n=>e.check(ou(n))});function Xr(e){return Rc(lr,e)}var Q=S("ZodStringFormat",(e,r)=>{Y.init(e,r),Ai.init(e,r)}),Ui=S("ZodEmail",(e,r)=>{Sa.init(e,r),Q.init(e,r)});function ch(e){return ei(Ui,e)}var Yr=S("ZodGUID",(e,r)=>{$a.init(e,r),Q.init(e,r)});function lh(e){return Gr(Yr,e)}var qe=S("ZodUUID",(e,r)=>{_a.init(e,r),Q.init(e,r)});function uh(e){return ti(qe,e)}function dh(e){return ri(qe,e)}function ph(e){return ni(qe,e)}function fh(e){return ii(qe,e)}var rn=S("ZodURL",(e,r)=>{ka.init(e,r),Q.init(e,r)});function mh(e){return Kr(rn,e)}function hh(e){return Kr(rn,{protocol:ze.httpProtocol,hostname:ze.domain,...R.normalizeParams(e)})}var Mi=S("ZodEmoji",(e,r)=>{Ia.init(e,r),Q.init(e,r)});function gh(e){return oi(Mi,e)}var Li=S("ZodNanoID",(e,r)=>{za.init(e,r),Q.init(e,r)});function vh(e){return si(Li,e)}var Zi=S("ZodCUID",(e,r)=>{Oa.init(e,r),Q.init(e,r)});function yh(e){return ai(Zi,e)}var Fi=S("ZodCUID2",(e,r)=>{Ea.init(e,r),Q.init(e,r)});function bh(e){return ci(Fi,e)}var Vi=S("ZodULID",(e,r)=>{Pa.init(e,r),Q.init(e,r)});function xh(e){return li(Vi,e)}var qi=S("ZodXID",(e,r)=>{Na.init(e,r),Q.init(e,r)});function wh(e){return ui(qi,e)}var Bi=S("ZodKSUID",(e,r)=>{Da.init(e,r),Q.init(e,r)});function $h(e){return di(Bi,e)}var Wi=S("ZodIPv4",(e,r)=>{Aa.init(e,r),Q.init(e,r)});function _h(e){return pi(Wi,e)}var yu=S("ZodMAC",(e,r)=>{Ma.init(e,r),Q.init(e,r)});function Sh(e){return Cc(yu,e)}var Ji=S("ZodIPv6",(e,r)=>{Ua.init(e,r),Q.init(e,r)});function kh(e){return fi(Ji,e)}var Gi=S("ZodCIDRv4",(e,r)=>{La.init(e,r),Q.init(e,r)});function Ih(e){return mi(Gi,e)}var Ki=S("ZodCIDRv6",(e,r)=>{Za.init(e,r),Q.init(e,r)});function zh(e){return hi(Ki,e)}var Hi=S("ZodBase64",(e,r)=>{Va.init(e,r),Q.init(e,r)});function Oh(e){return gi(Hi,e)}var Xi=S("ZodBase64URL",(e,r)=>{qa.init(e,r),Q.init(e,r)});function Eh(e){return vi(Xi,e)}var Yi=S("ZodE164",(e,r)=>{Ba.init(e,r),Q.init(e,r)});function Ph(e){return yi(Yi,e)}var Qi=S("ZodJWT",(e,r)=>{Wa.init(e,r),Q.init(e,r)});function Nh(e){return bi(Qi,e)}var ur=S("ZodCustomStringFormat",(e,r)=>{Ja.init(e,r),Q.init(e,r)});function Dh(e,r,n={}){return ir(ur,e,r,n)}function Rh(e){return ir(ur,"hostname",ze.hostname,e)}function Th(e){return ir(ur,"hex",ze.hex,e)}function Ch(e,r){let n=r?.enc??"hex",o=`${e}_${n}`,t=ze[o];if(!t)throw new Error(`Unrecognized hash format: ${o}`);return ir(ur,o,t,r)}var dr=S("ZodNumber",(e,r)=>{qn.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>xl(e,o,t,i),tn(e,"ZodNumber",{gt(o,t){return this.check(Fe(o,t))},gte(o,t){return this.check(we(o,t))},min(o,t){return this.check(we(o,t))},lt(o,t){return this.check(Ze(o,t))},lte(o,t){return this.check(Oe(o,t))},max(o,t){return this.check(Oe(o,t))},int(o){return this.check(Ci(o))},safe(o){return this.check(Ci(o))},positive(o){return this.check(Fe(0,o))},nonnegative(o){return this.check(we(0,o))},negative(o){return this.check(Ze(0,o))},nonpositive(o){return this.check(Oe(0,o))},multipleOf(o,t){return this.check(ct(o,t))},step(o,t){return this.check(ct(o,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function bu(e){return Zc(dr,e)}var Et=S("ZodNumberFormat",(e,r)=>{Ga.init(e,r),dr.init(e,r)});function Ci(e){return Vc(Et,e)}function jh(e){return qc(Et,e)}function Ah(e){return Bc(Et,e)}function Uh(e){return Wc(Et,e)}function Mh(e){return Jc(Et,e)}var pr=S("ZodBoolean",(e,r)=>{Vr.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>wl(e,n,o,t)});function xu(e){return Gc(pr,e)}var fr=S("ZodBigInt",(e,r)=>{Bn.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>$l(e,o,t,i),e.gte=(o,t)=>e.check(we(o,t)),e.min=(o,t)=>e.check(we(o,t)),e.gt=(o,t)=>e.check(Fe(o,t)),e.gte=(o,t)=>e.check(we(o,t)),e.min=(o,t)=>e.check(we(o,t)),e.lt=(o,t)=>e.check(Ze(o,t)),e.lte=(o,t)=>e.check(Oe(o,t)),e.max=(o,t)=>e.check(Oe(o,t)),e.positive=o=>e.check(Fe(BigInt(0),o)),e.negative=o=>e.check(Ze(BigInt(0),o)),e.nonpositive=o=>e.check(Oe(BigInt(0),o)),e.nonnegative=o=>e.check(we(BigInt(0),o)),e.multipleOf=(o,t)=>e.check(ct(o,t));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Lh(e){return Hc(fr,e)}var eo=S("ZodBigIntFormat",(e,r)=>{Ka.init(e,r),fr.init(e,r)});function Zh(e){return Yc(eo,e)}function Fh(e){return Qc(eo,e)}var wu=S("ZodSymbol",(e,r)=>{Ha.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>_l(e,n,o,t)});function Vh(e){return el(wu,e)}var $u=S("ZodUndefined",(e,r)=>{Xa.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>kl(e,n,o,t)});function qh(e){return tl($u,e)}var _u=S("ZodNull",(e,r)=>{Ya.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Sl(e,n,o,t)});function Su(e){return rl(_u,e)}var ku=S("ZodAny",(e,r)=>{Qa.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ol(e,n,o,t)});function Bh(){return nl(ku)}var Iu=S("ZodUnknown",(e,r)=>{ec.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>El(e,n,o,t)});function Ot(){return il(Iu)}var zu=S("ZodNever",(e,r)=>{tc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>zl(e,n,o,t)});function to(e){return ol(zu,e)}var Ou=S("ZodVoid",(e,r)=>{rc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Il(e,n,o,t)});function Wh(e){return sl(Ou,e)}var nn=S("ZodDate",(e,r)=>{nc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Pl(e,o,t,i),e.min=(o,t)=>e.check(we(o,t)),e.max=(o,t)=>e.check(Oe(o,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Jh(e){return al(nn,e)}var Eu=S("ZodArray",(e,r)=>{ic.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Fl(e,n,o,t),e.element=r.element,tn(e,"ZodArray",{min(n,o){return this.check(Xe(n,o))},nonempty(n){return this.check(Xe(1,n))},max(n,o){return this.check(It(n,o))},length(n,o){return this.check(zt(n,o))},unwrap(){return this.element}})});function on(e,r){return ul(Eu,e,r)}function Gh(e){let r=e._zod.def.shape;return no(Object.keys(r))}var sn=S("ZodObject",(e,r)=>{oc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Vl(e,n,o,t),R.defineLazy(e,"shape",()=>r.shape),tn(e,"ZodObject",{keyof(){return no(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Ot()})},loose(){return this.clone({...this._zod.def,catchall:Ot()})},strict(){return this.clone({...this._zod.def,catchall:to()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return R.extend(this,n)},safeExtend(n){return R.safeExtend(this,n)},merge(n){return R.merge(this,n)},pick(n){return R.pick(this,n)},omit(n){return R.omit(this,n)},partial(...n){return R.partial(oo,this,n[0])},required(...n){return R.required(so,this,n[0])}})});function Kh(e,r){let n={type:"object",shape:e??{},...R.normalizeParams(r)};return new sn(n)}function Hh(e,r){return new sn({type:"object",shape:e,catchall:to(),...R.normalizeParams(r)})}function Xh(e,r){return new sn({type:"object",shape:e,catchall:Ot(),...R.normalizeParams(r)})}var an=S("ZodUnion",(e,r)=>{qr.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ii(e,n,o,t),e.options=r.options});function ro(e,r){return new an({type:"union",options:e,...R.normalizeParams(r)})}var Pu=S("ZodXor",(e,r)=>{an.init(e,r),sc.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ii(e,n,o,t),e.options=r.options});function Yh(e,r){return new Pu({type:"union",options:e,inclusive:!1,...R.normalizeParams(r)})}var Nu=S("ZodDiscriminatedUnion",(e,r)=>{an.init(e,r),ac.init(e,r)});function Qh(e,r,n){return new Nu({type:"union",options:r,discriminator:e,...R.normalizeParams(n)})}var Du=S("ZodIntersection",(e,r)=>{cc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>ql(e,n,o,t)});function Ru(e,r){return new Du({type:"intersection",left:e,right:r})}var Tu=S("ZodTuple",(e,r)=>{Wn.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Bl(e,n,o,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Cu(e,r,n){let o=r instanceof Z,t=o?n:r,i=o?r:null;return new Tu({type:"tuple",items:e,rest:i,...R.normalizeParams(t)})}var ar=S("ZodRecord",(e,r)=>{lc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Wl(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType});function ju(e,r,n){return!r||!r._zod?new ar({type:"record",keyType:Xr(),valueType:e,...R.normalizeParams(r)}):new ar({type:"record",keyType:e,valueType:r,...R.normalizeParams(n)})}function eg(e,r,n){let o=be(e);return o._zod.values=void 0,new ar({type:"record",keyType:o,valueType:r,...R.normalizeParams(n)})}function tg(e,r,n){return new ar({type:"record",keyType:e,valueType:r,mode:"loose",...R.normalizeParams(n)})}var Au=S("ZodMap",(e,r)=>{uc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ll(e,n,o,t),e.keyType=r.keyType,e.valueType=r.valueType,e.min=(...n)=>e.check(Ve(...n)),e.nonempty=n=>e.check(Ve(1,n)),e.max=(...n)=>e.check(lt(...n)),e.size=(...n)=>e.check(kt(...n))});function rg(e,r,n){return new Au({type:"map",keyType:e,valueType:r,...R.normalizeParams(n)})}var Uu=S("ZodSet",(e,r)=>{dc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Zl(e,n,o,t),e.min=(...n)=>e.check(Ve(...n)),e.nonempty=n=>e.check(Ve(1,n)),e.max=(...n)=>e.check(lt(...n)),e.size=(...n)=>e.check(kt(...n))});function ng(e,r){return new Uu({type:"set",valueType:e,...R.normalizeParams(r)})}var cr=S("ZodEnum",(e,r)=>{pc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(o,t,i)=>Nl(e,o,t,i),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(o,t)=>{let i={};for(let s of o)if(n.has(s))i[s]=r.entries[s];else throw new Error(`Key ${s} not found in enum`);return new cr({...r,checks:[],...R.normalizeParams(t),entries:i})},e.exclude=(o,t)=>{let i={...r.entries};for(let s of o)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new cr({...r,checks:[],...R.normalizeParams(t),entries:i})}});function no(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new cr({type:"enum",entries:n,...R.normalizeParams(r)})}function ig(e,r){return new cr({type:"enum",entries:e,...R.normalizeParams(r)})}var Mu=S("ZodLiteral",(e,r)=>{fc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Dl(e,n,o,t),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function og(e,r){return new Mu({type:"literal",values:Array.isArray(e)?e:[e],...R.normalizeParams(r)})}var Lu=S("ZodFile",(e,r)=>{mc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Cl(e,n,o,t),e.min=(n,o)=>e.check(Ve(n,o)),e.max=(n,o)=>e.check(lt(n,o)),e.mime=(n,o)=>e.check(Yt(Array.isArray(n)?n:[n],o))});function sg(e){return dl(Lu,e)}var Zu=S("ZodTransform",(e,r)=>{hc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ml(e,n,o,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new nt(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(R.issue(i,n.value,r));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(R.issue(s))}};let t=r.transform(n.value,n);return t instanceof Promise?t.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=t,n.fallback=!0,n)}});function io(e){return new Zu({type:"transform",transform:e})}var oo=S("ZodOptional",(e,r)=>{Jn.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>zi(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Qr(e){return new oo({type:"optional",innerType:e})}var Fu=S("ZodExactOptional",(e,r)=>{gc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>zi(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Vu(e){return new Fu({type:"optional",innerType:e})}var qu=S("ZodNullable",(e,r)=>{vc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Jl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function en(e){return new qu({type:"nullable",innerType:e})}function ag(e){return Qr(en(e))}var Bu=S("ZodDefault",(e,r)=>{yc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Kl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Wu(e,r){return new Bu({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():R.shallowClone(r)}})}var Ju=S("ZodPrefault",(e,r)=>{bc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Hl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Gu(e,r){return new Ju({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():R.shallowClone(r)}})}var so=S("ZodNonOptional",(e,r)=>{xc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Gl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function Ku(e,r){return new so({type:"nonoptional",innerType:e,...R.normalizeParams(r)})}var Hu=S("ZodSuccess",(e,r)=>{wc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>jl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function cg(e){return new Hu({type:"success",innerType:e})}var Xu=S("ZodCatch",(e,r)=>{$c.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Xl(e,n,o,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Yu(e,r){return new Xu({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var Qu=S("ZodNaN",(e,r)=>{_c.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Rl(e,n,o,t)});function lg(e){return ll(Qu,e)}var cn=S("ZodPipe",(e,r)=>{Gn.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Yl(e,n,o,t),e.in=r.in,e.out=r.out});function ji(e,r){return new cn({type:"pipe",in:e,out:r})}var ln=S("ZodCodec",(e,r)=>{cn.init(e,r),Br.init(e,r)});function ug(e,r,n){return new ln({type:"pipe",in:e,out:r,transform:n.decode,reverseTransform:n.encode})}function dg(e){let r=e._zod.def;return new ln({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var ed=S("ZodPreprocess",(e,r)=>{cn.init(e,r),Sc.init(e,r)}),td=S("ZodReadonly",(e,r)=>{kc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ql(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function rd(e){return new td({type:"readonly",innerType:e})}var nd=S("ZodTemplateLiteral",(e,r)=>{Ic.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Tl(e,n,o,t)});function pg(e,r){return new nd({type:"template_literal",parts:e,...R.normalizeParams(r)})}var id=S("ZodLazy",(e,r)=>{Ec.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>tu(e,n,o,t),e.unwrap=()=>e._zod.def.getter()});function od(e){return new id({type:"lazy",getter:e})}var sd=S("ZodPromise",(e,r)=>{Oc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>eu(e,n,o,t),e.unwrap=()=>e._zod.def.innerType});function fg(e){return new sd({type:"promise",innerType:e})}var ad=S("ZodFunction",(e,r)=>{zc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Ul(e,n,o,t)});function mg(e){return new ad({type:"function",input:Array.isArray(e?.input)?Cu(e?.input):e?.input??on(Ot()),output:e?.output??Ot()})}var un=S("ZodCustom",(e,r)=>{Pc.init(e,r),F.init(e,r),e._zod.processJSONSchema=(n,o,t)=>Al(e,n,o,t)});function hg(e){let r=new ee({check:"custom"});return r._zod.check=e,r}function gg(e,r){return pl(un,e??(()=>!0),r)}function cd(e,r={}){return fl(un,e,r)}function ld(e,r){return ml(e,r)}var vg=hl,yg=gl;function bg(e,r={}){let n=new un({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...R.normalizeParams(r)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var xg=(...e)=>vl({Codec:ln,Boolean:pr,String:lr},...e);function wg(e){let r=od(()=>ro([Xr(e),bu(),xu(),Su(),on(r),ju(Xr(),r)]));return r}function $g(e,r){return new ed({type:"pipe",in:io(e),out:r})}var v$={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function y$(e){se({customError:e})}function b$(){return se().customError}var ud;ud||(ud={});var j={...Hr,...Pi,iso:sr},x$=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function w$(e,r){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function $$(e,r){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let o=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let t=n[1];if(!t||!r.defs[t])throw new Error(`Reference not found: ${e}`);return r.defs[t]}throw new Error(`Reference not found: ${e}`)}function _g(e,r){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return j.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(r.refs.has(t))return r.refs.get(t);if(r.processing.has(t))return j.lazy(()=>{if(!r.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return r.refs.get(t)});r.processing.add(t);let i=$$(t,r),s=ge(i,r);return r.refs.set(t,s),r.processing.delete(t),s}if(e.enum!==void 0){let t=e.enum;if(r.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return j.null();if(t.length===0)return j.never();if(t.length===1)return j.literal(t[0]);if(t.every(s=>typeof s=="string"))return j.enum(t);let i=t.map(s=>j.literal(s));return i.length<2?i[0]:j.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return j.literal(e.const);let n=e.type;if(Array.isArray(n)){let t=n.map(i=>{let s={...e,type:i};return _g(s,r)});return t.length===0?j.never():t.length===1?t[0]:j.union(t)}if(!n)return j.any();let o;switch(n){case"string":{let t=j.string();if(e.format){let i=e.format;i==="email"?t=t.check(j.email()):i==="uri"||i==="uri-reference"?t=t.check(j.url()):i==="uuid"||i==="guid"?t=t.check(j.uuid()):i==="date-time"?t=t.check(j.iso.datetime()):i==="date"?t=t.check(j.iso.date()):i==="time"?t=t.check(j.iso.time()):i==="duration"?t=t.check(j.iso.duration()):i==="ipv4"?t=t.check(j.ipv4()):i==="ipv6"?t=t.check(j.ipv6()):i==="mac"?t=t.check(j.mac()):i==="cidr"?t=t.check(j.cidrv4()):i==="cidr-v6"?t=t.check(j.cidrv6()):i==="base64"?t=t.check(j.base64()):i==="base64url"?t=t.check(j.base64url()):i==="e164"?t=t.check(j.e164()):i==="jwt"?t=t.check(j.jwt()):i==="emoji"?t=t.check(j.emoji()):i==="nanoid"?t=t.check(j.nanoid()):i==="cuid"?t=t.check(j.cuid()):i==="cuid2"?t=t.check(j.cuid2()):i==="ulid"?t=t.check(j.ulid()):i==="xid"?t=t.check(j.xid()):i==="ksuid"&&(t=t.check(j.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),o=t;break}case"number":case"integer":{let t=n==="integer"?j.number().int():j.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),o=t;break}case"boolean":{o=j.boolean();break}case"null":{o=j.null();break}case"object":{let t={},i=e.properties||{},s=new Set(e.required||[]);for(let[l,u]of Object.entries(i)){let c=ge(u,r);t[l]=s.has(l)?c:c.optional()}if(e.propertyNames){let l=ge(e.propertyNames,r),u=e.additionalProperties&&typeof e.additionalProperties=="object"?ge(e.additionalProperties,r):j.any();if(Object.keys(t).length===0){o=j.record(l,u);break}let c=j.object(t).passthrough(),m=j.looseRecord(l,u);o=j.intersection(c,m);break}if(e.patternProperties){let l=e.patternProperties,u=Object.keys(l),c=[];for(let p of u){let f=ge(l[p],r),h=j.string().regex(new RegExp(p));c.push(j.looseRecord(h,f))}let m=[];if(Object.keys(t).length>0&&m.push(j.object(t).passthrough()),m.push(...c),m.length===0)o=j.object({}).passthrough();else if(m.length===1)o=m[0];else{let p=j.intersection(m[0],m[1]);for(let f=2;f<m.length;f++)p=j.intersection(p,m[f]);o=p}break}let a=j.object(t);e.additionalProperties===!1?o=a.strict():typeof e.additionalProperties=="object"?o=a.catchall(ge(e.additionalProperties,r)):o=a.passthrough();break}case"array":{let t=e.prefixItems,i=e.items;if(t&&Array.isArray(t)){let s=t.map(l=>ge(l,r)),a=i&&typeof i=="object"&&!Array.isArray(i)?ge(i,r):void 0;a?o=j.tuple(s).rest(a):o=j.tuple(s),typeof e.minItems=="number"&&(o=o.check(j.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(j.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=i.map(l=>ge(l,r)),a=e.additionalItems&&typeof e.additionalItems=="object"?ge(e.additionalItems,r):void 0;a?o=j.tuple(s).rest(a):o=j.tuple(s),typeof e.minItems=="number"&&(o=o.check(j.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(j.maxLength(e.maxItems)))}else if(i!==void 0){let s=ge(i,r),a=j.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),o=a}else o=j.array(j.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function ge(e,r){if(typeof e=="boolean")return e?j.any():j.never();let n=_g(e,r),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>ge(u,r)),l=j.union(a);n=o?j.intersection(n,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>ge(u,r)),l=j.xor(a);n=o?j.intersection(n,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:j.any();else{let a=o?n:ge(e.allOf[0],r),l=o?0:1;for(let u=l;u<e.allOf.length;u++)a=j.intersection(a,ge(e.allOf[u],r));n=a}e.nullable===!0&&r.version==="openapi-3.0"&&(n=j.nullable(n)),e.readOnly===!0&&(n=j.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let t={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(t[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(t[a]=e[a]);for(let a of Object.keys(e))x$.has(a)||(t[a]=e[a]);return Object.keys(t).length>0&&r.registry.add(n,t),e.description&&(n=n.describe(e.description)),n}function Sg(e,r){if(typeof e=="boolean")return e?j.any():j.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=w$(n,r?.defaultTarget),t=n.$defs||n.definitions||{},i={version:o,defs:t,refs:new Map,processing:new Set,rootSchema:n,registry:r?.registry??he};return ge(n,i)}var dd={};Ke(dd,{bigint:()=>I$,boolean:()=>k$,date:()=>z$,number:()=>S$,string:()=>_$});function _$(e){return Tc(lr,e)}function S$(e){return Fc(dr,e)}function k$(e){return Kc(pr,e)}function I$(e){return Xc(fr,e)}function z$(e){return cl(nn,e)}se(Kn());var z=d.string().min(1),ie=d.number().finite().nonnegative(),kg=d.number().int().nonnegative(),de=d.record(d.string(),d.json()),Pt=d.strictObject({width:d.number().int().positive(),height:d.number().int().positive()}),Qe=d.enum(["passed","failed","error","inconclusive","canceled"]),pd=d.enum(["queued","provisioning","leasing","setup","running","judging","cleanup","finished"]),O$=d.strictObject({provider:d.string().max(200).nullable(),model:d.string().max(200).nullable(),deployment:d.string().max(200).optional(),promptVersion:d.string().max(200).optional(),promptHash:d.string().regex(/^[a-f0-9]{64}$/).optional(),parameters:de.optional(),seed:d.union([d.number().int(),d.enum(["unsupported","unknown"])]),billingVersion:d.string().max(200).nullable()}),ao=d.strictObject({inputTokens:d.number().int().nonnegative(),outputTokens:d.number().int().nonnegative(),cacheReadTokens:d.number().int().nonnegative().optional(),cacheWriteTokens:d.number().int().nonnegative().optional(),costUsd:d.number().finite().nonnegative().optional(),costUnknown:d.literal(!0).optional()}),H0=ao.extend({model:O$.optional(),billingMode:d.enum(["subscription","metered"]).optional(),costUnknownReason:d.enum(["unpriced","usage-unavailable","subscription","billing-unrecorded"]).optional()}),fd=ao.extend({actions:d.number().int().nonnegative(),minutes:d.number().finite().nonnegative(),e2bMinutes:d.number().finite().nonnegative().optional()}),Ig=fd.extend({costUnavailableRuns:d.number().int().nonnegative().optional()}),X0=d.discriminatedUnion("mode",[d.strictObject({mode:d.literal("inherit-login")}),d.strictObject({mode:d.literal("env"),env:d.record(z,d.string())})]).default({mode:"inherit-login"}),Y0=Object.freeze({mode:"inherit-login"}),zg=d.discriminatedUnion("ok",[d.strictObject({ok:d.literal(!0),data:de,ms:ie,changed:d.boolean().optional(),shot:z.optional()}),d.strictObject({ok:d.literal(!1),error:d.strictObject({code:z,message:d.string()}),ms:ie,shot:z.optional()})]),dn=d.discriminatedUnion("layer",[d.strictObject({layer:d.literal("semantic"),crop:z.max(1024).optional(),ref:z.optional(),role:d.string().optional(),name:d.string().optional(),label:d.string().optional(),point:d.strictObject({x:d.number().finite().nonnegative(),y:d.number().finite().nonnegative()}).optional(),viewport:Pt.optional()}),d.strictObject({layer:d.literal("pixel"),x:d.number().finite().nonnegative(),y:d.number().finite().nonnegative(),viewport:Pt,image:Pt,scale:d.strictObject({x:d.number().positive().finite(),y:d.number().positive().finite()}).optional(),point:d.strictObject({x:d.number().finite().nonnegative(),y:d.number().finite().nonnegative()}).optional(),crop:z.max(1024).optional(),end:d.strictObject({x:d.number().finite().nonnegative(),y:d.number().finite().nonnegative(),crop:z.max(1024)}).optional(),path:d.array(d.strictObject({x:d.number().finite().nonnegative(),y:d.number().finite().nonnegative(),t:ie})).optional()})]),Nt=de.and(d.object({type:z})),co=d.strictObject({passed:d.boolean(),evidence:de,reason:d.string().optional()}),Og=d.strictObject({confidence:d.number().min(0).max(1).optional(),verdict:d.enum(["passed","failed","inconclusive"]),reason:d.string(),evidence:de});var Eg=d.string().trim().min(1),md=d.strictObject({id:Eg,text:d.string().refine(e=>e.trim().length>0,"expected nonblank text"),source:d.string().min(1).optional()}),E$=d.array(md).superRefine((e,r)=>{let n=new Set;e.forEach(({id:o},t)=>{n.has(o)&&r.addIssue({code:"custom",path:[t,"id"],message:`duplicate acceptance id "${o}"`}),n.add(o)})}),hd=d.array(Eg),Pg=d.strictObject({caseId:d.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$/).optional(),risk:d.string().trim().min(1).optional(),owner:d.string().trim().min(1).optional()}),Ng=d.strictObject({source:d.string().min(1),revision:d.string().regex(/^[a-f0-9]{64}$/),criteria:E$,flows:d.array(d.strictObject({flow:d.string().min(1),covers:hd}))});var P$=128*1024,N$=d.strictObject({data:d.string().max(Math.ceil(P$/3)*4),mimeType:d.literal("image/jpeg"),width:d.number().int().positive().max(1280),height:d.number().int().positive().max(1280)}),Dg=d.strictObject({view:z,shot:z.max(1024).optional(),phase:d.enum(["before","after"]),image:N$.optional(),omitted:d.string().max(1024).optional()}),Rg=d.strictObject({view:z,text:d.string().max(16e3).optional(),snapshot:d.string().max(16e3).optional(),shot:z.max(1024).optional(),truncated:d.boolean(),unavailable:d.boolean()}),Tg=d.strictObject({actor:z,step:z,screenshots:d.boolean().optional(),phase:d.enum(["before","after"]).optional()}),Cg=d.strictObject({views:d.array(Rg).max(8),screenshots:d.array(Dg).max(8).optional()}),D$=256,R$=d.enum(["action","expect_result","console","page_error","page_crash","network"]),jg=d.strictObject({schemaVersion:d.literal(1),actor:z,step:z,method:d.enum(["agent","replay"]),events:d.array(de).max(D$),omittedEvents:d.partialRecord(R$,d.number().int().positive()).optional(),views:d.array(Rg).max(8),screenshots:d.array(Dg).max(16).optional(),incomplete:d.boolean(),acceptance:d.array(md.pick({id:!0,text:!0})).optional()});var T$=["do","evidence","wait","scope","other"],Ag={eventSeqs:d.array(d.number().int().positive()).max(128),shots:d.array(d.string().min(1).max(1024)).max(32)},C$=d.strictObject({item:d.enum(T$),actor:z,step:z,status:d.enum(["pass","fail","unknown"]),reason:d.string().min(1).max(2e3),failureCause:d.enum(["agent","product-result"]).optional(),...Ag}),j$=d.strictObject({actor:z,step:z,category:d.enum(["scope","other"]),severity:d.enum(["low","medium","high"]),description:d.string().min(1).max(4e3),...Ag}),lO=d.strictObject({target:d.string().min(1).max(2048),steps:d.array(d.strictObject({instruction:d.string(),evidence:jg})).max(32),incomplete:d.boolean()}),Ug=d.strictObject({status:d.enum(["completed","incomplete","skipped"]),reason:d.string().min(1).max(8e3),checks:d.array(C$).max(160),findings:d.array(j$).max(32),evidence:de.optional()});var te={seq:d.number().int().positive(),t:ie,actor:z.optional(),view:z.optional(),step:z.optional(),by:d.enum(["agent","program","replay","hook","conductor","system"])},Mg={view:z,format:d.literal("rrweb"),index:z},mr=d.discriminatedUnion("kind",[d.strictObject({...te,kind:d.literal("reviewer_result"),result:Ug,originalVerdict:Qe,verdict:Qe,failureType:d.literal("agent").optional()}),d.strictObject({...te,kind:d.literal("heal_result"),runtime:z.optional(),model:z.optional(),modelAccess:d.enum(["login","env"]).optional(),actor:z,step:z,sourceVersion:d.number().int().positive(),version:d.number().int().positive().optional(),cacheId:d.string().regex(/^[a-f0-9]{64}:[1-9][0-9]*$/).optional(),mode:d.enum(["auto","review"]),outcome:d.enum(["passed","failed"]),cache:d.enum(["saved","pending","unavailable"]),beforeShot:z.optional(),shot:z.optional()}),d.strictObject({...te,kind:d.literal("armed"),barrier:z,actor:z,step:z,tool:z}),d.strictObject({...te,kind:d.literal("together_fired"),barrier:z,actions:d.array(d.strictObject({actor:z,step:z,tool:z,startedAt:ie.optional(),ok:d.boolean()})),maxSkewMs:ie}),d.strictObject({...te,kind:d.literal("together_warning"),barrier:z,maxSkewMs:ie,message:d.string()}),d.strictObject({...te,kind:d.literal("cache_warning"),message:d.string()}),d.strictObject({...te,kind:d.literal("run_phase"),phase:pd,runtime:z.optional(),modelAccess:d.enum(["login","env"]).optional(),agentAt:d.enum(["host","stage"]).optional(),marker:z.optional()}),d.strictObject({...te,kind:d.literal("lease_acquired"),leaseId:z,expiresAt:ie.optional(),resources:d.array(d.strictObject({actor:z,kind:z,resource:z}))}),d.strictObject({...te,kind:d.literal("view_opened"),actor:z,view:z,type:d.enum(["page","rendered"]),url:d.url()}),d.strictObject({...te,kind:d.literal("view_closed"),view:z}),d.strictObject({...te,kind:d.literal("step_phase"),actor:z,step:z,phase:d.enum(["replaying","agent","healing","checking"])}),d.strictObject({...te,kind:d.literal("step_started"),actor:z,step:z}),d.strictObject({...te,kind:d.literal("action"),tool:z,args:de,data:de.optional(),ok:d.boolean(),ms:ie,changed:d.boolean().optional(),beforeShot:z.optional(),shot:z.optional(),target:dn.optional(),error:d.string().optional()}),d.strictObject({...te,kind:d.literal("web_evidence"),path:z}),d.strictObject({...te,kind:d.literal("expect_result"),condition:Nt,result:co}),d.strictObject({...te,kind:d.literal("judge_result"),condition:z,result:Og}),d.strictObject({...te,kind:d.literal("agent_text"),text:d.string()}),d.strictObject({...te,kind:d.literal("usage"),...ao.shape,source:d.enum(["main","heal","judge","reviewer"]).optional(),billing:d.enum(["subscription","metered"]).optional()}),d.strictObject({...te,kind:d.literal("step_finished"),step:z,status:d.enum(["passed","failed"]),reason:d.string().optional()}),d.strictObject({...te,kind:d.literal("deadlock"),lanes:d.array(d.strictObject({actor:z,step:z.optional(),waitsFor:d.array(d.string())})).min(1)}),d.strictObject({...te,kind:d.literal("run_finished"),verdict:Qe,reason:d.string().optional()}),d.strictObject({...te,kind:d.literal("record_started"),...Mg}),d.strictObject({...te,kind:d.literal("record_stopped"),...Mg}),d.strictObject({...te,kind:d.literal("console"),view:z,level:d.enum(["log","debug","info","error","warning","dir","dirxml","table","trace","clear","startGroup","startGroupCollapsed","endGroup","assert","profile","profileEnd","count","time","timeEnd"]),text:d.string()}),d.strictObject({...te,kind:d.literal("page_error"),view:z,message:d.string()}),d.strictObject({...te,kind:d.literal("page_crash"),view:z}),d.strictObject({...te,kind:d.literal("network"),view:z,url:d.url(),method:z,status:d.number().int().min(100).max(599).optional(),ms:ie,error:d.string().optional()})]),mO=new Set(mr.options.map(e=>e.shape.kind.value)),hO=new Set(mr.options.flatMap(e=>Object.keys(e.shape)));var A$=["step_done","step_blocked","arm"],U$=["vars_set","vars_get","signal_send"],M$=["snapshot","screenshot","text"],L$=["view_list",...M$.map(e=>`view_${e}`)],pn=["web_goto","web_back","web_reload","web_click","web_fill","web_press","web_select","web_scroll","web_wait_for","web_open_window"],gd=["screen_click","screen_double_click","screen_drag","screen_type","screen_key","screen_scroll"],Z$=[...L$,...A$,...U$,...pn,...gd],vd=["telegram_send","telegram_read","telegram_wait_for","telegram_open_button"],yd=["discord_read","discord_wait_for","discord_open_button"],bd=["email_read","email_open_link"];var xd=d.string().regex(/^[a-z0-9][a-z0-9_-]{0,79}$/),qg=d.string().regex(/^[a-f0-9]{64}$/),Lg=d.string().trim().min(1).max(240),po=d.string().trim().min(1).max(240),F$=d.strictObject({width:d.number().int().min(1).max(2560),height:d.number().int().min(1).max(2560)}),V$=d.literal("chromium",{error:"Only Chromium is supported for Web views"}),q$=d.enum(["desktop","mobile"]),B$=d.string().min(2).max(64).refine(e=>{try{return Intl.getCanonicalLocales(e).length===1}catch{return!1}},"Expected a valid BCP 47 locale"),Bg={browser:V$,preset:q$,viewport:F$,userAgent:d.string().min(1).max(512).regex(/^[\x20-\x7E]+$/),hasTouch:d.boolean(),isMobile:d.boolean(),locale:B$,colorScheme:d.enum(["light","dark"]),deviceScaleFactor:d.number().finite().min(1).max(3)},fo=d.strictObject(Bg).partial(),hr=d.strictObject({...Bg,viewport:d.strictObject({width:d.number().int().positive(),height:d.number().int().positive()}),version:po}),wd=d.strictObject({actor:z,view:z,device:hr}),Zg=d.url().refine(e=>{let r=new URL(e);return(r.protocol==="https:"||r.protocol==="http:")&&r.origin===e},"Expected an exact HTTP(S) origin without a trailing slash"),Wg=d.strictObject({allowedOrigins:d.array(Zg).min(1).max(8),callbackOrigin:Zg.optional()}).refine(e=>!e.callbackOrigin||e.allowedOrigins.includes(e.callbackOrigin),{path:["callbackOrigin"],message:"Callback origin must appear in allowedOrigins"});var lo={view:z.optional()},Fg=d.enum(["step","view"]).default("step"),Vg=d.string().max(24).regex(/^(?:\d+(?:\.\d+)?)(?:ms|s|m|h)$/).refine(e=>{let r=parseFloat(e),n=e.endsWith("ms")?1:e.endsWith("s")?1e3:e.endsWith("m")?6e4:36e5;return r>0&&r*n<=2147483647},"Expected a positive duration up to 2147483647ms"),uo={"web.trace":d.strictObject({...lo,scope:Fg,operation:d.enum([...pn,"web_callback"]),outcome:d.enum(["passed","failed"]).default("passed"),within:Vg.optional()}),"web.network":d.strictObject({...lo,scope:Fg,method:d.enum(["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]),path:d.string().startsWith("/").max(512).regex(/^\/[^?#\s]*$/),status:d.number().int().min(100).max(599),within:Vg.optional()}),"web.visual":d.strictObject({...lo,baseline:xd,maxDiffRatio:d.number().finite().min(0).max(1).default(0),mask:d.array(Lg).max(20).default([])}),"web.a11y":d.strictObject({...lo,tags:d.array(d.enum(["wcag2a","wcag2aa","wcag21a","wcag21aa","wcag22aa","best-practice"])).min(1).max(6).default(["wcag2a","wcag2aa","wcag21a","wcag21aa"]),exemptions:d.array(d.strictObject({rule:xd,target:Lg,reason:po})).max(30).default([])})},wO=d.discriminatedUnion("type",[uo["web.trace"].extend({type:d.literal("web.trace")}),uo["web.network"].extend({type:d.literal("web.network")}),uo["web.visual"].extend({type:d.literal("web.visual")}),uo["web.a11y"].extend({type:d.literal("web.a11y")})]),Jg=d.strictObject({caseId:z,caseRevision:qg,check:xd,environment:z.max(128),device:hr}),W$=d.strictObject({schemaVersion:d.literal(1),key:Jg,version:d.number().int().positive(),sha256:qg,updatedBy:po,reason:po,sourceAttempt:z}),J$=3e6,Gg=d.strictObject({key:Jg,attemptId:z,baseline:d.strictObject({manifest:W$,png:d.base64().max(Math.ceil(J$/3)*4)}).optional()});var G$=d.discriminatedUnion("layer",[dn.options[0].omit({ref:!0}),dn.options[1]]),Kg=d.strictObject({tool:d.enum([...pn,...gd,...vd,...yd,...bd]),args:de,target:G$.optional(),arm:d.literal(!0).optional()}),Hg=d.strictObject({actor:z,step:z,commands:d.array(Kg.extend({cropImage:d.string().max(262144).optional(),endCropImage:d.string().max(262144).optional()})).max(256),postconditions:d.array(Nt).min(1).max(100)}),Xg=d.discriminatedUnion("ok",[d.strictObject({ok:d.literal(!0)}),d.strictObject({ok:d.literal(!1),completed:d.array(Kg).optional(),retrySafe:d.boolean().optional(),commandIndex:d.number().int().nonnegative(),reason:d.string().min(1).max(2e3)})]);var ve=d.string().max(16e3),K$=d.discriminatedUnion("template",[d.strictObject({template:d.literal("chat"),title:ve,messages:d.array(d.strictObject({id:z.max(128),author:ve,time:ve,content:ve,embeds:d.array(d.strictObject({title:ve.optional(),description:ve.optional(),fields:d.array(d.strictObject({name:ve,value:ve})).max(25).optional(),footer:ve.optional()})).max(10).optional(),buttons:d.array(d.strictObject({label:ve,url:d.url().refine(e=>{let r=new URL(e);return["http:","https:"].includes(r.protocol)&&!r.username&&!r.password}).optional()})).max(25).optional()})).max(200)}),d.strictObject({template:d.literal("telegram"),title:ve,messages:d.array(d.strictObject({id:z.max(128),author:ve,time:ve,html:d.string().max(64e3),buttons:d.array(d.strictObject({label:ve})).max(25).optional()})).max(200)}),d.strictObject({template:d.literal("email"),from:ve,subject:ve,html:d.string().max(256e3)})]),H$=d.strictObject({view:z,content:K$}),X$=d.strictObject({view:z,rendered:d.literal(!0)}),Y$=d.strictObject({actor:z,view:z,type:d.literal("page"),url:d.url(),storageState:de.optional(),device:fo.optional(),popup:Wg.optional(),viewport:Pt.optional()}),Q$=d.discriminatedUnion("type",[Y$,d.strictObject({actor:z,view:z,type:d.literal("provider"),surface:d.string().regex(/^[a-z][a-z0-9-]{0,63}$/),url:d.url()}),d.strictObject({actor:z,view:z,type:d.literal("rendered"),template:d.enum(["chat","email","telegram"]),email:d.strictObject({address:d.email()}).optional(),telegram:d.strictObject({token:d.string().min(6).max(4096),chatId:d.union([d.number().int(),d.string().min(1).max(128)])}).optional(),source:d.strictObject({surface:d.literal("discord"),channel:d.string().regex(/^\d{1,20}$/)}).optional(),viewport:Pt.optional()})]),e_=d.strictObject({actor:z,view:z,type:d.enum(["page","rendered"]),url:d.url(),viewport:Pt.optional(),browser:d.string().max(200).optional(),device:d.string().max(200).optional(),browserSettings:hr.optional()}),Yg=d.strictObject({actor:z,step:z.optional(),barrier:z.optional(),level:d.enum(["semantic","pixel","hybrid"])}),t_=Yg,r_=d.strictObject({view:z}),n_=d.strictObject({view:z,closed:d.literal(!0)}),i_=d.strictObject({actor:z,view:z.optional(),step:z.optional(),condition:Nt,visual:Gg.optional()}),o_=co.extend({condition:Nt.optional()}),Qg=d.strictObject({views:d.union([d.literal("all"),d.array(z).min(1)])}),s_=Qg,ev=d.strictObject({format:d.literal("rrweb"),recordings:d.array(d.strictObject({view:z,index:z}))}),a_=ev,c_=ev,l_=d.strictObject({path:z,contentType:z,bytes:d.number().int().nonnegative()}),u_=d.strictObject({destination:d.discriminatedUnion("type",[d.strictObject({type:d.literal("directory"),path:z}),d.strictObject({type:d.literal("signed-urls"),urls:d.record(z,d.url()),snapshot:z.optional()})])}),d_=d.strictObject({artifacts:d.array(l_),snapshot:z.optional()}),p_=d.strictObject({}),f_=d.strictObject({status:d.enum(["starting","ready","stopping"]),t:ie}),m_=d.strictObject({afterSeq:kg.default(0)}),h_=d.array(mr),g_=d.strictObject({calls:d.array(d.strictObject({actor:z,tool:z.max(128),args:de})).min(1).max(32)}),v_=d.strictObject({results:d.array(zg)}),y_=d.strictObject({barrier:z,actors:d.array(z).min(1).max(100).refine(e=>new Set(e).size===e.length,"Duplicate actors")}),b_=d.strictObject({barrier:z,actions:d.array(d.strictObject({actor:z,step:z,tool:z,startedAt:ie.optional(),ok:d.boolean()})),maxSkewMs:ie}),TO={captureEvidence:{request:Tg,response:Cg},replay:{request:Hg,response:Xg},addRedactions:{request:d.strictObject({values:d.array(d.string().min(1).max(65536)).max(1e4)}),response:d.strictObject({ok:d.literal(!0)})},executeTools:{request:g_,response:v_},fire:{request:y_,response:b_},setStep:{request:Yg,response:t_},openView:{request:Q$,response:e_},renderView:{request:H$,response:X$},closeView:{request:r_,response:n_},expect:{request:i_,response:o_},recordStart:{request:Qg,response:a_},recordStop:{request:s_,response:c_},flushArtifacts:{request:u_,response:d_},health:{request:p_,response:f_},events:{request:m_,response:h_}};var x_=de.and(d.object({type:d.number().int().nonnegative(),timestamp:ie,data:d.json()})),MO=d.strictObject({seq:d.number().int().positive(),t:ie,view:z,event:x_}),$d=d.strictObject({first:ie,last:ie}),tv=d.strictObject({block:z,seq:d.number().int().positive()}),rv=d.strictObject({meta:tv,snapshot:tv}),LO=d.strictObject({schemaVersion:d.literal(1),view:z,calibrations:d.array(d.strictObject({document:z,seq:d.number().int().positive(),browserTime:ie,t:ie})),checkpoints:d.array(rv),blocks:d.array(d.strictObject({path:z,seq:$d,timestamp:$d,t:$d,bytes:d.number().int().nonnegative(),rawBytes:d.number().int().nonnegative(),sha256:d.string().regex(/^[a-f0-9]{64}$/),checkpoint:rv.nullable()}))}),ZO=d.record(z,d.strictObject({hash:d.string().regex(/^[a-f0-9]{64}$/),mime:z,bytes:d.number().int().nonnegative()})),_d=d.strictObject({schemaVersion:d.literal(1),format:d.literal("rrweb"),recorder:d.strictObject({name:d.literal("@rrweb/record"),version:z}),player:d.strictObject({name:d.literal("@rrweb/replay"),version:z}),assets:z,views:d.array(d.strictObject({view:z,index:z,browser:z,viewport:d.strictObject({width:d.number().positive(),height:d.number().positive()}),segments:d.array(d.strictObject({document:z,firstSeq:d.number().int().positive(),lastSeq:d.number().int().nonnegative(),missing:d.array(d.enum(["canvas","cross-origin-iframe","page-crash","unflushed-tail","resource-limit","recording-failed"]))}))})),warnings:d.array(d.string())}),w_=_d.extend({schemaVersion:d.literal(2),views:d.array(_d.shape.views.element.extend({browserSettings:hr.optional()}))}),FO=d.discriminatedUnion("schemaVersion",[_d,w_]);var nv={db:"db_query",logs:"logs_query",github:"github_read",http:"http_request"},mo=d.string().min(3).max(4096),BO=d.strictObject({target:d.enum(["dev","staging","prod"]),db:d.strictObject({url:d.url().refine(e=>{let r=new URL(e);return["libsql:","https:"].includes(r.protocol)&&!!r.hostname&&!r.username&&!r.password&&!r.search&&!r.hash&&["","/"].includes(r.pathname)}),token:mo}).optional(),logs:d.strictObject({project:d.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/),accessToken:mo}).optional(),github:d.strictObject({repos:d.array(d.string().regex(/^[a-zA-Z0-9_-][\w.-]*\/[a-zA-Z0-9_-][\w.-]*$/)).min(1),token:mo}).optional(),secrets:d.record(d.string(),mo).optional()}),WO=d.strictObject({origin:d.url().refine(e=>URL.canParse(e)&&new URL(e).origin===e&&e.startsWith("https://")),headers:d.record(d.string().regex(/^(?:authorization|cf-access-client-id|cf-access-client-secret|x-[a-z0-9-]{1,64})$/),d.string().regex(/^[\x20-\x7e]{1,4096}$/)).refine(e=>Object.keys(e).length>0&&Object.keys(e).length<=16)});var fn=d.string().regex(/^[a-z][a-z0-9-]{0,63}$/),$_=d.string().regex(/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/).max(80),iv=d.strictObject({kind:d.enum(["surface","tool","access"]),id:fn,provider:fn,version:$_}),XO=d.enum(["batch.completed","flow.failed"]),__=["web","telegram","discord","email","testapp","desktop"];var YO={apiVersion:1,id:"open-qa",version:"1.0.0",surfaces:__.map(e=>({id:e,placements:e==="desktop"||e==="testapp"?[]:["local-host","e2b"]})),tools:Object.entries(nv).map(([e,r])=>({id:e,placements:["local-host","e2b"],commands:[r]})),accessPolicies:[{id:"cloudflare",targets:[],credentialKeys:["QA_CF_ACCESS_CLIENT_ID","QA_CF_ACCESS_CLIENT_SECRET"],headers:e=>({"cf-access-client-id":e.QA_CF_ACCESS_CLIENT_ID,"cf-access-client-secret":e.QA_CF_ACCESS_CLIENT_SECRET})}]};var Be=d.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$/,"projectId must be a persistent opaque identifier (letters, digits, underscores or hyphens)"),S_=d.string().refine(e=>{try{return/^[+-]/.test(e)?!1:(new Intl.DateTimeFormat("en",{timeZone:e}),!0)}catch{return!1}},"timeZone must be an IANA time zone"),Sd=d.strictObject({source:d.string(),sha256:d.string().regex(/^[a-f0-9]{64}$/)}),bo=d.strictObject({surfaces:d.array(d.enum(["web","telegram","discord"])),recording:d.array(d.literal("rrweb")),levels:d.array(d.enum(["semantic","pixel","hybrid"]))}),mn=d.strictObject({runtime:d.enum(["claude-code","codex","scripted"]).nullable(),modelAccess:d.enum(["login","env"]).nullable(),credentialSource:d.enum(["subscription-token","local-login","model-env"]).nullable(),placement:d.enum(["local-host","e2b"]).nullable(),capabilities:bo.nullable()}),vo=d.strictObject({schemaVersion:d.literal(1),capturedAt:d.number().finite().nonnegative(),projectId:Be,timeZone:d.strictObject({value:S_,source:d.enum(["config","machine","fallback"])}),definitions:d.strictObject({flow:Sd,suite:Sd.nullable(),config:Sd.nullable()}),target:d.strictObject({name:d.string(),origin:d.url().refine(e=>{if(!URL.canParse(e))return!1;let r=new URL(e);return["http:","https:"].includes(r.protocol)&&e===r.origin}).nullable(),allow:d.array(d.string()),access:d.enum(["cloudflare","none"]),prodSafeOnly:d.boolean()}),effective:d.strictObject({prod:d.enum(["never","safe"]),tier:d.enum(["T1","T2","T3","T4"]).nullable(),budget:d.strictObject({actions:d.number().positive().optional(),minutes:d.number().positive().optional()}).nullable(),record:d.array(d.literal("rrweb")),retries:d.union([d.literal(0),d.literal(1)]),level:d.literal("pixel").nullable(),headed:d.boolean()}),declared:d.strictObject({runtime:d.enum(["claude-code","codex"]),modelAccess:d.literal("login"),placement:d.enum(["local-host","e2b"]),capabilities:bo}),observed:mn.extend({modelAccess:d.literal("login").nullable(),credentialSource:d.enum(["subscription-token","local-login"]).nullable()}),versions:d.strictObject({cli:d.string(),engine:d.string(),node:d.string(),commit:d.string().regex(/^[a-f0-9]{40,64}$/).nullable(),dirty:d.boolean().nullable()}),environment:d.strictObject({subscriptionToken:d.enum(["set","missing","unknown"]),cloudflareAccess:d.enum(["set","missing","unknown"])})}),kd=vo.extend({schemaVersion:d.literal(2),target:vo.shape.target.extend({revision:d.string().regex(/^[a-f0-9]{40,64}$/).optional()})}),Id=kd.extend({schemaVersion:d.literal(3),declared:kd.shape.declared.extend({modelAccess:d.enum(["login","env"]),agentAt:d.enum(["host","stage"])}),observed:mn}),zd=Id.extend({schemaVersion:d.literal(4),effective:Id.shape.effective.extend({budget:vo.shape.effective.shape.budget.unwrap().extend({usd:d.number().positive().optional()}).nullable()})}),Od=zd.extend({schemaVersion:d.literal(5),declared:zd.shape.declared.extend({heal:d.strictObject({runtime:d.enum(["claude-code","codex","pi"]),model:d.string().nullable(),modelAccess:d.enum(["login","env"])})})}),yo=bo.extend({surfaces:d.array(d.enum(["web","telegram","discord","email","testapp","desktop"]))}),ho=Od.extend({schemaVersion:d.literal(6),declared:Od.shape.declared.extend({capabilities:yo}),observed:mn.extend({capabilities:yo.nullable()})}),Ed=yo.extend({surfaces:d.array(fn),providers:d.array(iv)}),go=ho.extend({schemaVersion:d.literal(7),target:ho.shape.target.extend({access:fn}),declared:ho.shape.declared.extend({capabilities:Ed}),observed:mn.extend({capabilities:Ed.nullable()})}),k_=go.extend({schemaVersion:d.literal(8),declared:go.shape.declared.extend({runtime:d.enum(["claude-code","codex","pi"]),webDevices:d.record(d.string(),fo).optional()}),observed:go.shape.observed.extend({browserViews:d.array(wd)})}),nE=d.discriminatedUnion("schemaVersion",[vo,kd,Id,zd,Od,ho,go,k_]),iE=mn.extend({browserViews:d.array(wd).optional(),capabilities:d.union([bo,yo,Ed]).nullable()});var et=d.string().trim().min(1).max(512).refine(e=>Array.from(e).every(r=>r.charCodeAt(0)>=32&&r!=="\x7F")),gr=d.url({protocol:/^https?$/}).max(2048).refine(e=>{if(!URL.canParse(e))return!1;let r=new URL(e);return!r.username&&!r.password&&!r.search&&!r.hash},"use an HTTP(S) URL without credentials, query or fragment"),I_=d.string().regex(/^[a-f0-9]{40,64}$/),ov=e=>d.string().length(e).regex(/^[a-f0-9]+$/).refine(r=>/[1-9a-f]/.test(r)),xo=d.strictObject({device:et.optional(),ci:d.strictObject({pipeline:et.optional(),task:et.optional(),runId:et.optional(),runUrl:gr.optional()}).optional(),build:d.strictObject({id:et.optional(),url:gr.optional()}).optional(),correlation:d.strictObject({traceId:ov(32).optional(),spanId:ov(16).optional(),requestId:et.optional()}).optional(),productPr:d.strictObject({url:gr,base:et.optional(),head:et.optional(),revision:I_.optional()}).optional(),qa:d.strictObject({issue:gr.optional(),pr:gr.optional()}).optional(),defects:d.array(d.strictObject({url:gr,acceptance:d.array(et).min(1)})).max(100).optional()});var fe=Be,wo=d.string().max(1024).refine(e=>!e.includes("\0")),z_=d.strictObject({flows:d.array(fe).min(1).max(100),runContext:xo.optional(),target:fe,runtime:d.enum(["claude-code","pi"]).default("claude-code"),modelAccess:d.enum(["personal","team"]).default("personal"),commit:d.string().regex(/^[a-f0-9]{40,64}$/).optional(),retries:d.union([d.literal(0),d.literal(1)]).default(1)}),O_=d.strictObject({schemaVersion:d.literal(1),projectId:fe,id:fe,trigger:d.enum(["developer","pr-label","schedule"]),createdAt:d.string().datetime(),request:z_,usage:Ig.optional()}),mE=d.strictObject({schemaVersion:d.literal(1),projectId:fe,id:fe,flow:wo,startedAt:d.number().nonnegative(),lastSeq:d.number().int().nonnegative(),result:d.strictObject({verdict:Qe,finishedAt:d.number().nonnegative(),usage:fd.optional(),costStatus:d.enum(["recorded","unavailable"]).optional(),errorReason:d.literal("budget").optional()}).nullable()}),hE=d.strictObject({schemaVersion:d.literal(1),projectId:fe,runId:fe,events:d.array(mr),next:d.number().int().nonnegative()}),gE=d.strictObject({runtime:d.enum(["claude-code","pi"]),kind:d.enum(["claude","anthropic-key","openai-key"]),token:d.string().min(32).max(65536).regex(/^[!-~]+$/),expiresAt:d.number().int().positive().max(864e13).nullable().refine(e=>e===null||e>Date.now())}).refine(e=>e.runtime==="claude-code"?e.kind==="claude":e.kind!=="claude").refine(e=>({claude:/^sk-ant-oat01-[A-Za-z0-9_-]+$/,"anthropic-key":/^sk-ant-api03-[A-Za-z0-9_-]+$/,"openai-key":/^sk-(?!ant-)[A-Za-z0-9_-]+$/})[e.kind].test(e.token)),E_=d.strictObject({id:d.enum(["claude-code","pi"]),expiresAt:d.number().nullable(),state:d.enum(["connected","expired"])}),P_=d.strictObject({id:fe,runId:fe,state:d.enum(["active","quarantined","released"]),expiresAt:d.string().datetime()}),vE=d.strictObject({schemaVersion:d.literal(1),projectId:fe,batches:d.array(O_)}),yE=d.strictObject({schemaVersion:d.literal(1),projectId:fe,credentials:d.array(E_)}),bE=d.strictObject({schemaVersion:d.literal(1),projectId:fe,leases:d.array(P_)}),N_=d.url().refine(e=>{let r=new URL(e);return["http:","https:"].includes(r.protocol)&&r.origin===e});var D_=d.strictObject({flows:d.array(d.strictObject({id:fe,name:wo,tags:d.array(fe).max(100),revision:d.string().regex(/^[a-f0-9]{64}$/),prod:d.enum(["never","safe"])})).max(1e4)}),R_=d.strictObject({targets:d.array(d.strictObject({name:fe,origin:N_,allow:d.array(wo).max(100),prodSafeOnly:d.boolean()})).max(100),timeZone:wo}),T_=d.strictObject({target:fe,checks:d.array(d.strictObject({id:d.enum(["runtime","login","browser","accounts","target","database","access","gmail","telegram","models","locking"]),status:d.enum(["passed","failed","not_checked"])})).max(20)}),Pd=d.strictObject({schemaVersion:d.literal(1),projectId:fe,source:d.enum(["worker","cli"]),revision:d.string().regex(/^[a-f0-9]{64}$/),capturedAt:d.string().datetime()}),xE={catalog:Pd.extend({data:D_}),configuration:Pd.extend({data:R_}),diagnostics:Pd.extend({data:T_})},sv=d.string().max(512).regex(/^[a-zA-Z0-9_./-]+$/).refine(e=>!e.startsWith("/")&&e.split("/").every(r=>!!r&&r!=="."&&r!==".."));var av=d.string(),cv=d.string().regex(/^[a-z][a-z0-9-]{0,69}$/),lv=d.strictObject({project:Be,version:cv}),C_=d.enum(["product","harness","judge","infra","unknown"]),j_=d.enum(["observed","unknown"]),$o={origin:C_.optional(),cause:d.string().trim().min(1).max(2e3).optional(),flakiness:j_.optional()},uv=d.strictObject({category:av.nullable(),confidence:d.number().min(0).max(1),reason:d.string().trim().min(1).max(8e3),origin:$o.origin,cause:$o.cause}),dv=d.string().min(1).max(200),A_=uv.extend({modelVersion:dv.optional()}),pv=uv.extend({source:d.enum(["rule","model","fallback","human"]),taxonomy:lv.optional(),flakiness:$o.flakiness,needsReview:d.boolean().optional(),classifierVersion:dv.optional(),rawPrediction:A_.optional()}),U_=d.strictObject({category:cv,reason:d.string().trim().min(1).max(2e3),taxonomy:lv.optional(),...$o}),M_=U_.extend({category:av,modifiedBy:d.string().min(1).max(512),modifiedAt:d.number().int().nonnegative(),predicted:pv.nullable()}),SE=d.strictObject({classification:pv.nullable(),labels:d.array(M_)});var Nd=d.string().regex(/^[a-f0-9]{64}$/),fv=d.string().regex(/^[a-f0-9]{40,64}$/),L_=d.strictObject({path:sv,actor:d.string().max(512).nullable(),view:d.string().max(512).nullable(),step:d.string().max(512).nullable(),eventSeq:d.number().int().positive()}),Z_=d.strictObject({verdict:Qe,reason:d.string().nullable(),finishedAt:ie}),DE=d.strictObject({schemaVersion:d.literal(1),projectId:Be,caseId:d.string().min(1),caseRevision:Nd.nullable(),executionId:d.string().min(1),attemptId:Be,attempt:d.number().int().positive(),started:d.boolean(),retryOf:Be.nullable(),batchId:Be.nullable(),trial:d.strictObject({groupId:d.string().min(1),index:d.number().int().positive(),count:d.number().int().positive()}).nullable(),target:d.string().nullable(),acceptance:Ng.optional(),covers:hd.optional(),traceability:Pg.optional(),context:xo.optional(),targetRevision:fv.nullable(),commit:fv.nullable(),parameters:d.strictObject({runtime:d.enum(["claude-code","codex","pi","scripted"]).nullable(),modelAccess:d.enum(["login","env","personal","team"]).nullable(),placement:d.enum(["local-host","e2b"]).nullable(),agentAt:d.enum(["host","stage"]).nullable(),headed:d.boolean().nullable(),level:d.enum(["semantic","pixel","hybrid"]).nullable(),device:d.string().nullable(),persona:d.string().nullable(),replay:d.enum(["off","enabled"]).nullable()}),parameterFingerprint:Nd,environmentFingerprint:Nd,outcome:d.enum(["blocked","skipped","not-run","expected-failure"]).optional(),engineResult:Z_.optional(),evidence:d.array(L_).optional()});function Dd(e,r){return e?e.costUnknown?`Cost unknown${e.costUsd!=null?` (known subtotal $${e.costUsd.toFixed(6)})`:""}`:e.costUsd!=null?`$${e.costUsd.toFixed(6)}`:r==="login"?"Subscription":"Cost unknown":"Not recorded"}function _o(e){return e==="login"?"Subscription login":e==="env"?"API":"Not recorded"}function Rd(e,r,n){if(!n?.length)return[{label:e?"Recorded usage (source not recorded)":"",usage:e,access:r}];let o={main:"Main flow",heal:"Self-heal",judge:"Judge",reviewer:"Reviewer"},t=n.map(i=>({label:i.source?`${o[i.source]} ${i.billing==="subscription"?"Subscription":i.billing==="metered"?"API":"(billing not recorded)"}`:"Recorded usage (source not recorded)",usage:i.usage,access:i.billing==="subscription"?"login":i.billing==="metered"?"env":null}));return n.some(i=>i.source==="main"||i.source===null)||t.unshift({label:r==="login"?"Main flow Subscription":r==="env"?"Main flow API":"Main flow",usage:null,access:r??null}),t}var V_=Object.defineProperty,q_=(e,r,n)=>r in e?V_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,L=(e,r,n)=>q_(e,typeof r!="symbol"?r+"":r,n),mv,B_=Object.defineProperty,W_=(e,r,n)=>r in e?B_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,hv=(e,r,n)=>W_(e,typeof r!="symbol"?r+"":r,n),ce=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ce||{});Date.now().toString();function J_(e){return e.nodeType===e.ELEMENT_NODE}var No=class{constructor(){hv(this,"idNodeMap",new Map),hv(this,"nodeMetaMap",new WeakMap)}getId(r){var n;return r?((n=this.getMeta(r))==null?void 0:n.id)??-1:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let n=this.getId(r);this.idNodeMap.delete(n),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,n){let o=n.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,n)}replace(r,n){let o=this.getNode(r);if(o){let t=this.nodeMetaMap.get(o);t&&this.nodeMetaMap.set(n,t)}this.idNodeMap.set(r,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Zy(){return new No}function G_(e){return e.toLowerCase()}function K_(e,r){return!e||!r||e.type!==r.type?!1:e.type===ce.Document?e.compatMode===r.compatMode:e.type===ce.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===ce.Comment||e.type===ce.Text||e.type===ce.CDATA?e.textContent===r.textContent:e.type===ce.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function H_(e,r){let n;try{n=new URL(e,r??window.location.href)}catch{return null}let o=/\.([0-9a-z]+)(?:$)/i,t=n.pathname.match(o);return t?.[1]??null}var X_=/(max|min)-device-(width|height)/,gv=new RegExp(X_.source,"g"),Y_={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(gv)&&(e.params=e.params.replace(gv,"$1-$2"))}}}},Q_={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(n){n.includes(":hover")&&(r.selector+=`,
66
+ `+n.replace(/:hover/g,".\\:hover"))}))}}}};function eS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tS(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}var So={exports:{}},vv;function rS(){if(vv)return So.exports;vv=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return So.exports=r(),So.exports.createColors=r,So.exports}var nS={},iS=Object.freeze(Object.defineProperty({__proto__:null,default:nS},Symbol.toStringTag,{value:"Module"})),Ae=tS(iS),Td,yv;function tf(){if(yv)return Td;yv=1;let e=rS(),r=Ae;class n extends Error{constructor(t,i,s,a,l,u){super(t),this.name="CssSyntaxError",this.reason=t,l&&(this.file=l),a&&(this.source=a),u&&(this.plugin=u),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(this.line=i,this.column=s):(this.line=i.line,this.column=i.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let i=this.source;t==null&&(t=e.isColorSupported),r&&t&&(i=r(i));let s=i.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length,c,m;if(t){let{bold:p,gray:f,red:h}=e.createColors(!0);c=g=>p(h(g)),m=g=>f(g)}else c=m=p=>p;return s.slice(a,l).map((p,f)=>{let h=a+1+f,g=" "+(" "+h).slice(-u)+" | ";if(h===this.line){let v=m(g.replace(/\d/g," "))+p.slice(0,this.column-1).replace(/[^\t]/g," ");return c(">")+m(g)+p+`
67
+ `+v+c("^")}return" "+m(g)+p}).join(`
68
68
  `)}toString(){let t=this.showSourceCode();return t&&(t=`
69
69
 
70
70
  `+t+`
71
- `),this.name+": "+this.message+t}}return dd=n,n.default=n,dd}var ao={},Ng;function Rp(){return Ng||(Ng=1,ao.isClean=Symbol("isClean"),ao.my=Symbol("my")),ao}var pd,Dg;function Qv(){if(Dg)return pd;Dg=1;let e={after:`
71
+ `),this.name+": "+this.message+t}}return Td=n,n.default=n,Td}var ko={},bv;function rf(){return bv||(bv=1,ko.isClean=Symbol("isClean"),ko.my=Symbol("my")),ko}var Cd,xv;function Fy(){if(xv)return Cd;xv=1;let e={after:`
72
72
  `,beforeClose:`
73
73
  `,beforeComment:`
74
74
  `,beforeDecl:`
75
75
  `,beforeOpen:" ",beforeRule:`
76
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(o){return o[0].toUpperCase()+o.slice(1)}class n{constructor(t){this.builder=t}atrule(t,i){let s="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?s+=t.raws.afterName:a&&(s+=" "),t.nodes)this.block(t,s+a);else{let u=(t.raws.between||"")+(i?";":"");this.builder(s+a+u,t)}}beforeAfter(t,i){let s;t.type==="decl"?s=this.raw(t,null,"beforeDecl"):t.type==="comment"?s=this.raw(t,null,"beforeComment"):i==="before"?s=this.raw(t,null,"beforeRule"):s=this.raw(t,null,"beforeClose");let a=t.parent,u=0;for(;a&&a.type!=="root";)u+=1,a=a.parent;if(s.includes(`
77
- `)){let l=this.raw(t,null,"indent");if(l.length)for(let c=0;c<u;c++)s+=l}return s}block(t,i){let s=this.raw(t,"between","beforeOpen");this.builder(i+s+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let i=t.nodes.length-1;for(;i>0&&t.nodes[i].type==="comment";)i-=1;let s=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let u=t.nodes[a],l=this.raw(u,"before");l&&this.builder(l),this.stringify(u,i!==a||s)}}comment(t){let i=this.raw(t,"left","commentLeft"),s=this.raw(t,"right","commentRight");this.builder("/*"+i+t.text+s+"*/",t)}decl(t,i){let s=this.raw(t,"between","colon"),a=t.prop+s+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),i&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,i,s){let a;if(s||(s=i),i&&(a=t.raws[i],typeof a<"u"))return a;let u=t.parent;if(s==="before"&&(!u||u.type==="root"&&u.first===t||u&&u.type==="document"))return"";if(!u)return e[s];let l=t.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[s]<"u")return l.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(t,s);{let c="raw"+r(s);this[c]?a=this[c](l,t):l.walk(f=>{if(a=f.raws[i],typeof a<"u")return!1})}return typeof a>"u"&&(a=e[s]),l.rawCache[s]=a,a}rawBeforeClose(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return i=s.raws.after,i.includes(`
76
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(o){return o[0].toUpperCase()+o.slice(1)}class n{constructor(t){this.builder=t}atrule(t,i){let s="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?s+=t.raws.afterName:a&&(s+=" "),t.nodes)this.block(t,s+a);else{let l=(t.raws.between||"")+(i?";":"");this.builder(s+a+l,t)}}beforeAfter(t,i){let s;t.type==="decl"?s=this.raw(t,null,"beforeDecl"):t.type==="comment"?s=this.raw(t,null,"beforeComment"):i==="before"?s=this.raw(t,null,"beforeRule"):s=this.raw(t,null,"beforeClose");let a=t.parent,l=0;for(;a&&a.type!=="root";)l+=1,a=a.parent;if(s.includes(`
77
+ `)){let u=this.raw(t,null,"indent");if(u.length)for(let c=0;c<l;c++)s+=u}return s}block(t,i){let s=this.raw(t,"between","beforeOpen");this.builder(i+s+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let i=t.nodes.length-1;for(;i>0&&t.nodes[i].type==="comment";)i-=1;let s=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let l=t.nodes[a],u=this.raw(l,"before");u&&this.builder(u),this.stringify(l,i!==a||s)}}comment(t){let i=this.raw(t,"left","commentLeft"),s=this.raw(t,"right","commentRight");this.builder("/*"+i+t.text+s+"*/",t)}decl(t,i){let s=this.raw(t,"between","colon"),a=t.prop+s+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),i&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,i,s){let a;if(s||(s=i),i&&(a=t.raws[i],typeof a<"u"))return a;let l=t.parent;if(s==="before"&&(!l||l.type==="root"&&l.first===t||l&&l.type==="document"))return"";if(!l)return e[s];let u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]<"u")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(t,s);{let c="raw"+r(s);this[c]?a=this[c](u,t):u.walk(m=>{if(a=m.raws[i],typeof a<"u")return!1})}return typeof a>"u"&&(a=e[s]),u.rawCache[s]=a,a}rawBeforeClose(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return i=s.raws.after,i.includes(`
78
78
  `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawBeforeComment(t,i){let s;return t.walkComments(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
79
79
  `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(t,i){let s;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
80
80
  `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(t){let i;return t.walk(s=>{if(s.type!=="decl"&&(i=s.raws.between,typeof i<"u"))return!1}),i}rawBeforeRule(t){let i;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
81
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(t){let i;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i}rawIndent(t){if(t.raws.indent)return t.raws.indent;let i;return t.walk(s=>{let a=s.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof s.raws.before<"u"){let u=s.raws.before.split(`
82
- `);return i=u[u.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let s=t[i],a=t.raws[i];return a&&a.value===s?a.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}}return pd=n,n.default=n,pd}var fd,Pg;function So(){if(Pg)return fd;Pg=1;let e=Qv();function r(n,o){new e(o).stringify(n)}return fd=r,r.default=r,fd}var md,Rg;function ko(){if(Rg)return md;Rg=1;let{isClean:e,my:r}=Rp(),n=Pp(),o=Qv(),t=So();function i(a,u){let l=new a.constructor;for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||c==="proxyCache")continue;let f=a[c],d=typeof f;c==="parent"&&d==="object"?u&&(l[c]=u):c==="source"?l[c]=f:Array.isArray(f)?l[c]=f.map(p=>i(p,l)):(d==="object"&&f!==null&&(f=i(f)),l[c]=f)}return l}class s{constructor(u={}){this.raws={},this[e]=!1,this[r]=!0;for(let l in u)if(l==="nodes"){this.nodes=[];for(let c of u[l])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[l]=u[l]}addToError(u){if(u.postcssNode=this,u.stack&&this.source&&/\n\s{4}at /.test(u.stack)){let l=this.source;u.stack=u.stack.replace(/\n\s{4}at /,`$&${l.input.from}:${l.start.line}:${l.start.column}$&`)}return u}after(u){return this.parent.insertAfter(this,u),this}assign(u={}){for(let l in u)this[l]=u[l];return this}before(u){return this.parent.insertBefore(this,u),this}cleanRaws(u){delete this.raws.before,delete this.raws.after,u||delete this.raws.between}clone(u={}){let l=i(this);for(let c in u)l[c]=u[c];return l}cloneAfter(u={}){let l=this.clone(u);return this.parent.insertAfter(this,l),l}cloneBefore(u={}){let l=this.clone(u);return this.parent.insertBefore(this,l),l}error(u,l={}){if(this.source){let{end:c,start:f}=this.rangeBy(l);return this.source.input.error(u,{column:f.column,line:f.line},{column:c.column,line:c.line},l)}return new n(u)}getProxyProcessor(){return{get(u,l){return l==="proxyOf"?u:l==="root"?()=>u.root().toProxy():u[l]},set(u,l,c){return u[l]===c||(u[l]=c,(l==="prop"||l==="value"||l==="name"||l==="params"||l==="important"||l==="text")&&u.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let u=this;for(;u=u.parent;)u[e]=!1}}next(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u+1]}positionBy(u,l){let c=this.source.start;if(u.index)c=this.positionInside(u.index,l);else if(u.word){l=this.toString();let f=l.indexOf(u.word);f!==-1&&(c=this.positionInside(f,l))}return c}positionInside(u,l){let c=l||this.toString(),f=this.source.start.column,d=this.source.start.line;for(let p=0;p<u;p++)c[p]===`
83
- `?(f=1,d+=1):f+=1;return{column:f,line:d}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u){let l={column:this.source.start.column,line:this.source.start.line},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:l.column+1,line:l.line};if(u.word){let f=this.toString(),d=f.indexOf(u.word);d!==-1&&(l=this.positionInside(d,f),c=this.positionInside(d+u.word.length,f))}else u.start?l={column:u.start.column,line:u.start.line}:u.index&&(l=this.positionInside(u.index)),u.end?c={column:u.end.column,line:u.end.line}:typeof u.endIndex=="number"?c=this.positionInside(u.endIndex):u.index&&(c=this.positionInside(u.index+1));return(c.line<l.line||c.line===l.line&&c.column<=l.column)&&(c={column:l.column+1,line:l.line}),{end:c,start:l}}raw(u,l){return new o().raw(this,u,l)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let l=this,c=!1;for(let f of u)f===this?c=!0:c?(this.parent.insertAfter(l,f),l=f):this.parent.insertBefore(l,f);c||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,l){let c={},f=l==null;l=l||new Map;let d=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let h=this[p];if(Array.isArray(h))c[p]=h.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,l):g);else if(typeof h=="object"&&h.toJSON)c[p]=h.toJSON(null,l);else if(p==="source"){let g=l.get(h.input);g==null&&(g=d,l.set(h.input,d),d++),c[p]={end:h.end,inputId:g,start:h.start}}else c[p]=h}return f&&(c.inputs=[...l.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=t){u.stringify&&(u=u.stringify);let l="";return u(this,c=>{l+=c}),l}warn(u,l,c){let f={node:this};for(let d in c)f[d]=c[d];return u.warn(l,f)}get proxyOf(){return this}}return md=s,s.default=s,md}var hd,Tg;function Io(){if(Tg)return hd;Tg=1;let e=ko();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return hd=r,r.default=r,hd}var gd,jg;function q$(){if(jg)return gd;jg=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return gd={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},gd}var vd,Cg;function ey(){if(Cg)return vd;Cg=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ae,{existsSync:n,readFileSync:o}=Ae,{dirname:t,join:i}=Ae;function s(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}class a{constructor(l,c){if(c.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let f=c.map?c.map.prev:void 0,d=this.loadMap(c.from,f);!this.mapFile&&c.from&&(this.mapFile=c.from),this.mapFile&&(this.root=t(this.mapFile)),d&&(this.text=d)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(l){let c=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,d=/^data:application\/json;charset=utf-?8,/,p=/^data:application\/json,/;if(d.test(l)||p.test(l))return decodeURIComponent(l.substr(RegExp.lastMatch.length));if(c.test(l)||f.test(l))return s(l.substr(RegExp.lastMatch.length));let h=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let c=l.match(/\/\*\s*# sourceMappingURL=/gm);if(!c)return;let f=l.lastIndexOf(c.pop()),d=l.indexOf("*/",f);f>-1&&d>-1&&(this.annotation=this.getAnnotationURL(l.substring(f,d)))}loadFile(l){if(this.root=t(l),n(l))return this.mapFile=l,o(l,"utf-8").toString().trim()}loadMap(l,c){if(c===!1)return!1;if(c){if(typeof c=="string")return c;if(typeof c=="function"){let f=c(l);if(f){let d=this.loadFile(f);if(!d)throw new Error("Unable to load previous source map: "+f.toString());return d}}else{if(c instanceof e)return r.fromSourceMap(c).toString();if(c instanceof r)return c.toString();if(this.isMap(c))return JSON.stringify(c);throw new Error("Unsupported previous source map format: "+c.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return l&&(f=i(t(l),f)),this.loadFile(f)}}}startWith(l,c){return l?l.substr(0,c.length)===c:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return vd=a,a.default=a,vd}var yd,Ag;function zo(){if(Ag)return yd;Ag=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ae,{fileURLToPath:n,pathToFileURL:o}=Ae,{isAbsolute:t,resolve:i}=Ae,{nanoid:s}=q$(),a=Ae,u=Pp(),l=ey(),c=Symbol("fromOffsetCache"),f=!!(e&&r),d=!!(i&&t);class p{constructor(g,v={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,v.from&&(!d||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=i(v.from)),d&&f){let b=new l(this.css,v);if(b.text){this.map=b;let x=b.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,b,x={}){let $,_,y;if(v&&typeof v=="object"){let k=v,O=b;if(typeof k.offset=="number"){let A=this.fromOffset(k.offset);v=A.line,b=A.col}else v=k.line,b=k.column;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);_=A.line,y=A.col}else _=O.line,y=O.column}else if(!b){let k=this.fromOffset(v);v=k.line,b=k.col}let w=this.origin(v,b,_,y);return w?$=new u(g,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):$=new u(g,_===void 0?v:{column:b,line:v},_===void 0?b:{column:y,line:_},this.css,this.file,x.plugin),$.input={column:b,endColumn:y,endLine:_,line:v,source:this.css},this.file&&(o&&($.input.url=o(this.file).toString()),$.input.file=this.file),$}fromOffset(g){let v,b;if(this[c])b=this[c];else{let $=this.css.split(`
84
- `);b=new Array($.length);let _=0;for(let y=0,w=$.length;y<w;y++)b[y]=_,_+=$[y].length+1;this[c]=b}v=b[b.length-1];let x=0;if(g>=v)x=b.length-1;else{let $=b.length-2,_;for(;x<$;)if(_=x+($-x>>1),g<b[_])$=_-1;else if(g>=b[_+1])x=_+1;else{x=_;break}}return{col:g-b[x]+1,line:x+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:i(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,b,x){if(!this.map)return!1;let $=this.map.consumer(),_=$.originalPositionFor({column:v,line:g});if(!_.source)return!1;let y;typeof b=="number"&&(y=$.originalPositionFor({column:x,line:b}));let w;t(_.source)?w=o(_.source):w=new URL(_.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let k={column:_.column,endColumn:y&&y.column,endLine:y&&y.line,line:_.line,url:w.toString()};if(w.protocol==="file:")if(n)k.file=n(w);else throw new Error("file: protocol is not available in this PostCSS build");let O=$.sourceContentFor(_.source);return O&&(k.source=O),k}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}get from(){return this.file||this.id}}return yd=p,p.default=p,a&&a.registerInput&&a.registerInput(p),yd}var bd,Ug;function ty(){if(Ug)return bd;Ug=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ae,{dirname:n,relative:o,resolve:t,sep:i}=Ae,{pathToFileURL:s}=Ae,a=zo(),u=!!(e&&r),l=!!(n&&t&&o&&i);class c{constructor(d,p,h,g){this.stringify=d,this.mapOpts=h.map||{},this.root=p,this.opts=h,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let d;this.isInline()?d="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?d=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?d=this.mapOpts.annotation(this.opts.to,this.root):d=this.outputFile()+".map";let p=`
81
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(t){let i;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i}rawIndent(t){if(t.raws.indent)return t.raws.indent;let i;return t.walk(s=>{let a=s.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof s.raws.before<"u"){let l=s.raws.before.split(`
82
+ `);return i=l[l.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let s=t[i],a=t.raws[i];return a&&a.value===s?a.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}}return Cd=n,n.default=n,Cd}var jd,wv;function Zo(){if(wv)return jd;wv=1;let e=Fy();function r(n,o){new e(o).stringify(n)}return jd=r,r.default=r,jd}var Ad,$v;function Fo(){if($v)return Ad;$v=1;let{isClean:e,my:r}=rf(),n=tf(),o=Fy(),t=Zo();function i(a,l){let u=new a.constructor;for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||c==="proxyCache")continue;let m=a[c],p=typeof m;c==="parent"&&p==="object"?l&&(u[c]=l):c==="source"?u[c]=m:Array.isArray(m)?u[c]=m.map(f=>i(f,u)):(p==="object"&&m!==null&&(m=i(m)),u[c]=m)}return u}class s{constructor(l={}){this.raws={},this[e]=!1,this[r]=!0;for(let u in l)if(u==="nodes"){this.nodes=[];for(let c of l[u])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[u]=l[u]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let u=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let u in l)this[u]=l[u];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let u=i(this);for(let c in l)u[c]=l[c];return u}cloneAfter(l={}){let u=this.clone(l);return this.parent.insertAfter(this,u),u}cloneBefore(l={}){let u=this.clone(l);return this.parent.insertBefore(this,u),u}error(l,u={}){if(this.source){let{end:c,start:m}=this.rangeBy(u);return this.source.input.error(l,{column:m.column,line:m.line},{column:c.column,line:c.line},u)}return new n(l)}getProxyProcessor(){return{get(l,u){return u==="proxyOf"?l:u==="root"?()=>l.root().toProxy():l[u]},set(l,u,c){return l[u]===c||(l[u]=c,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,u){let c=this.source.start;if(l.index)c=this.positionInside(l.index,u);else if(l.word){u=this.toString();let m=u.indexOf(l.word);m!==-1&&(c=this.positionInside(m,u))}return c}positionInside(l,u){let c=u||this.toString(),m=this.source.start.column,p=this.source.start.line;for(let f=0;f<l;f++)c[f]===`
83
+ `?(m=1,p+=1):m+=1;return{column:m,line:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let u={column:this.source.start.column,line:this.source.start.line},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(l.word){let m=this.toString(),p=m.indexOf(l.word);p!==-1&&(u=this.positionInside(p,m),c=this.positionInside(p+l.word.length,m))}else l.start?u={column:l.start.column,line:l.start.line}:l.index&&(u=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<u.line||c.line===u.line&&c.column<=u.column)&&(c={column:u.column+1,line:u.line}),{end:c,start:u}}raw(l,u){return new o().raw(this,l,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let u=this,c=!1;for(let m of l)m===this?c=!0:c?(this.parent.insertAfter(u,m),u=m):this.parent.insertBefore(u,m);c||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,u){let c={},m=u==null;u=u||new Map;let p=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let h=this[f];if(Array.isArray(h))c[f]=h.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,u):g);else if(typeof h=="object"&&h.toJSON)c[f]=h.toJSON(null,u);else if(f==="source"){let g=u.get(h.input);g==null&&(g=p,u.set(h.input,p),p++),c[f]={end:h.end,inputId:g,start:h.start}}else c[f]=h}return m&&(c.inputs=[...u.keys()].map(f=>f.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=t){l.stringify&&(l=l.stringify);let u="";return l(this,c=>{u+=c}),u}warn(l,u,c){let m={node:this};for(let p in c)m[p]=c[p];return l.warn(u,m)}get proxyOf(){return this}}return Ad=s,s.default=s,Ad}var Ud,_v;function Vo(){if(_v)return Ud;_v=1;let e=Fo();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ud=r,r.default=r,Ud}var Md,Sv;function oS(){if(Sv)return Md;Sv=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Md={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},Md}var Ld,kv;function Vy(){if(kv)return Ld;kv=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ae,{existsSync:n,readFileSync:o}=Ae,{dirname:t,join:i}=Ae;function s(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class a{constructor(u,c){if(c.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let m=c.map?c.map.prev:void 0,p=this.loadMap(c.from,m);!this.mapFile&&c.from&&(this.mapFile=c.from),this.mapFile&&(this.root=t(this.mapFile)),p&&(this.text=p)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(u){let c=/^data:application\/json;charset=utf-?8;base64,/,m=/^data:application\/json;base64,/,p=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(p.test(u)||f.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(c.test(u)||m.test(u))return s(u.substr(RegExp.lastMatch.length));let h=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let c=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!c)return;let m=u.lastIndexOf(c.pop()),p=u.indexOf("*/",m);m>-1&&p>-1&&(this.annotation=this.getAnnotationURL(u.substring(m,p)))}loadFile(u){if(this.root=t(u),n(u))return this.mapFile=u,o(u,"utf-8").toString().trim()}loadMap(u,c){if(c===!1)return!1;if(c){if(typeof c=="string")return c;if(typeof c=="function"){let m=c(u);if(m){let p=this.loadFile(m);if(!p)throw new Error("Unable to load previous source map: "+m.toString());return p}}else{if(c instanceof e)return r.fromSourceMap(c).toString();if(c instanceof r)return c.toString();if(this.isMap(c))return JSON.stringify(c);throw new Error("Unsupported previous source map format: "+c.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let m=this.annotation;return u&&(m=i(t(u),m)),this.loadFile(m)}}}startWith(u,c){return u?u.substr(0,c.length)===c:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ld=a,a.default=a,Ld}var Zd,Iv;function qo(){if(Iv)return Zd;Iv=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ae,{fileURLToPath:n,pathToFileURL:o}=Ae,{isAbsolute:t,resolve:i}=Ae,{nanoid:s}=oS(),a=Ae,l=tf(),u=Vy(),c=Symbol("fromOffsetCache"),m=!!(e&&r),p=!!(i&&t);class f{constructor(g,v={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,v.from&&(!p||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=i(v.from)),p&&m){let b=new u(this.css,v);if(b.text){this.map=b;let x=b.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,b,x={}){let $,_,y;if(v&&typeof v=="object"){let k=v,O=b;if(typeof k.offset=="number"){let A=this.fromOffset(k.offset);v=A.line,b=A.col}else v=k.line,b=k.column;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);_=A.line,y=A.col}else _=O.line,y=O.column}else if(!b){let k=this.fromOffset(v);v=k.line,b=k.col}let w=this.origin(v,b,_,y);return w?$=new l(g,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):$=new l(g,_===void 0?v:{column:b,line:v},_===void 0?b:{column:y,line:_},this.css,this.file,x.plugin),$.input={column:b,endColumn:y,endLine:_,line:v,source:this.css},this.file&&(o&&($.input.url=o(this.file).toString()),$.input.file=this.file),$}fromOffset(g){let v,b;if(this[c])b=this[c];else{let $=this.css.split(`
84
+ `);b=new Array($.length);let _=0;for(let y=0,w=$.length;y<w;y++)b[y]=_,_+=$[y].length+1;this[c]=b}v=b[b.length-1];let x=0;if(g>=v)x=b.length-1;else{let $=b.length-2,_;for(;x<$;)if(_=x+($-x>>1),g<b[_])$=_-1;else if(g>=b[_+1])x=_+1;else{x=_;break}}return{col:g-b[x]+1,line:x+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:i(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,b,x){if(!this.map)return!1;let $=this.map.consumer(),_=$.originalPositionFor({column:v,line:g});if(!_.source)return!1;let y;typeof b=="number"&&(y=$.originalPositionFor({column:x,line:b}));let w;t(_.source)?w=o(_.source):w=new URL(_.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let k={column:_.column,endColumn:y&&y.column,endLine:y&&y.line,line:_.line,url:w.toString()};if(w.protocol==="file:")if(n)k.file=n(w);else throw new Error("file: protocol is not available in this PostCSS build");let O=$.sourceContentFor(_.source);return O&&(k.source=O),k}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}get from(){return this.file||this.id}}return Zd=f,f.default=f,a&&a.registerInput&&a.registerInput(f),Zd}var Fd,zv;function qy(){if(zv)return Fd;zv=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ae,{dirname:n,relative:o,resolve:t,sep:i}=Ae,{pathToFileURL:s}=Ae,a=qo(),l=!!(e&&r),u=!!(n&&t&&o&&i);class c{constructor(p,f,h,g){this.stringify=p,this.mapOpts=h.map||{},this.root=f,this.opts=h,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let p;this.isInline()?p="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?p=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?p=this.mapOpts.annotation(this.opts.to,this.root):p=this.outputFile()+".map";let f=`
85
85
  `;this.css.includes(`\r
86
- `)&&(p=`\r
87
- `),this.css+=p+"/*# sourceMappingURL="+d+" */"}applyPrevMaps(){for(let d of this.previous()){let p=this.toUrl(this.path(d.file)),h=d.root||n(d.file),g;this.mapOpts.sourcesContent===!1?(g=new e(d.text),g.sourcesContent&&(g.sourcesContent=null)):g=d.consumer(),this.map.applySourceMap(g,p,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let d;for(let p=this.root.nodes.length-1;p>=0;p--)d=this.root.nodes[p],d.type==="comment"&&d.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(p)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&u&&this.isMap())return this.generateMap();{let d="";return this.stringify(this.root,p=>{d+=p}),[d]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let d=this.previous()[0].consumer();d.file=this.outputFile(),this.map=r.fromSourceMap(d,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let d=1,p=1,h="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},v,b;this.stringify(this.root,(x,$,_)=>{if(this.css+=x,$&&_!=="end"&&(g.generated.line=d,g.generated.column=p-1,$.source&&$.source.start?(g.source=this.sourcePath($),g.original.line=$.source.start.line,g.original.column=$.source.start.column-1,this.map.addMapping(g)):(g.source=h,g.original.line=1,g.original.column=0,this.map.addMapping(g))),v=x.match(/\n/g),v?(d+=v.length,b=x.lastIndexOf(`
88
- `),p=x.length-b):p+=x.length,$&&_!=="start"){let y=$.parent||{raws:{}};(!($.type==="decl"||$.type==="atrule"&&!$.nodes)||$!==y.last||y.raws.semicolon)&&($.source&&$.source.end?(g.source=this.sourcePath($),g.original.line=$.source.end.line,g.original.column=$.source.end.column-1,g.generated.line=d,g.generated.column=p-2,this.map.addMapping(g)):(g.source=h,g.original.line=1,g.original.column=0,g.generated.line=d,g.generated.column=p-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(d=>d.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let d=this.mapOpts.annotation;return typeof d<"u"&&d!==!0?!1:this.previous().length?this.previous().some(p=>p.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(d=>d.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(d){if(this.mapOpts.absolute||d.charCodeAt(0)===60||/^\w+:\/\//.test(d))return d;let p=this.memoizedPaths.get(d);if(p)return p;let h=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=n(t(h,this.mapOpts.annotation)));let g=o(h,d);return this.memoizedPaths.set(d,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(d=>{if(d.source&&d.source.input.map){let p=d.source.input.map;this.previousMaps.includes(p)||this.previousMaps.push(p)}});else{let d=new a(this.originalCSS,this.opts);d.map&&this.previousMaps.push(d.map)}return this.previousMaps}setSourcesContent(){let d={};if(this.root)this.root.walk(p=>{if(p.source){let h=p.source.input.from;if(h&&!d[h]){d[h]=!0;let g=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(g,p.source.input.css)}}});else if(this.css){let p=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(p,this.css)}}sourcePath(d){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(d.source.input.from):this.toUrl(this.path(d.source.input.from))}toBase64(d){return Buffer?Buffer.from(d).toString("base64"):window.btoa(unescape(encodeURIComponent(d)))}toFileUrl(d){let p=this.memoizedFileURLs.get(d);if(p)return p;if(s){let h=s(d).toString();return this.memoizedFileURLs.set(d,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(d){let p=this.memoizedURLs.get(d);if(p)return p;i==="\\"&&(d=d.replace(/\\/g,"/"));let h=encodeURI(d).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(d,h),h}}return bd=c,bd}var xd,Mg;function Oo(){if(Mg)return xd;Mg=1;let e=ko();class r extends e{constructor(o){super(o),this.type="comment"}}return xd=r,r.default=r,xd}var wd,Lg;function Dt(){if(Lg)return wd;Lg=1;let{isClean:e,my:r}=Rp(),n=Io(),o=Oo(),t=ko(),i,s,a,u;function l(d){return d.map(p=>(p.nodes&&(p.nodes=l(p.nodes)),delete p.source,p))}function c(d){if(d[e]=!1,d.proxyOf.nodes)for(let p of d.proxyOf.nodes)c(p)}class f extends t{append(...p){for(let h of p){let g=this.normalize(h,this.last);for(let v of g)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(p){if(super.cleanRaws(p),this.nodes)for(let h of this.nodes)h.cleanRaws(p)}each(p){if(!this.proxyOf.nodes)return;let h=this.getIterator(),g,v;for(;this.indexes[h]<this.proxyOf.nodes.length&&(g=this.indexes[h],v=p(this.proxyOf.nodes[g],g),v!==!1);)this.indexes[h]+=1;return delete this.indexes[h],v}every(p){return this.nodes.every(p)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach;return this.indexes[p]=0,p}getProxyProcessor(){return{get(p,h){return h==="proxyOf"?p:p[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...g)=>p[h](...g.map(v=>typeof v=="function"?(b,x)=>v(b.toProxy(),x):v)):h==="every"||h==="some"?g=>p[h]((v,...b)=>g(v.toProxy(),...b)):h==="root"?()=>p.root().toProxy():h==="nodes"?p.nodes.map(g=>g.toProxy()):h==="first"||h==="last"?p[h].toProxy():p[h]:p[h]},set(p,h,g){return p[h]===g||(p[h]=g,(h==="name"||h==="params"||h==="selector")&&p.markDirty()),!0}}}index(p){return typeof p=="number"?p:(p.proxyOf&&(p=p.proxyOf),this.proxyOf.nodes.indexOf(p))}insertAfter(p,h){let g=this.index(p),v=this.normalize(h,this.proxyOf.nodes[g]).reverse();g=this.index(p);for(let x of v)this.proxyOf.nodes.splice(g+1,0,x);let b;for(let x in this.indexes)b=this.indexes[x],g<b&&(this.indexes[x]=b+v.length);return this.markDirty(),this}insertBefore(p,h){let g=this.index(p),v=g===0?"prepend":!1,b=this.normalize(h,this.proxyOf.nodes[g],v).reverse();g=this.index(p);for(let $ of b)this.proxyOf.nodes.splice(g,0,$);let x;for(let $ in this.indexes)x=this.indexes[$],g<=x&&(this.indexes[$]=x+b.length);return this.markDirty(),this}normalize(p,h){if(typeof p=="string")p=l(i(p).nodes);else if(typeof p>"u")p=[];else if(Array.isArray(p)){p=p.slice(0);for(let v of p)v.parent&&v.parent.removeChild(v,"ignore")}else if(p.type==="root"&&this.type!=="document"){p=p.nodes.slice(0);for(let v of p)v.parent&&v.parent.removeChild(v,"ignore")}else if(p.type)p=[p];else if(p.prop){if(typeof p.value>"u")throw new Error("Value field is missed in node creation");typeof p.value!="string"&&(p.value=String(p.value)),p=[new n(p)]}else if(p.selector)p=[new s(p)];else if(p.name)p=[new a(p)];else if(p.text)p=[new o(p)];else throw new Error("Unknown node type in node creation");return p.map(v=>(v[r]||f.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[e]&&c(v),typeof v.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(v.raws.before=h.raws.before.replace(/\S/g,"")),v.parent=this.proxyOf,v))}prepend(...p){p=p.reverse();for(let h of p){let g=this.normalize(h,this.first,"prepend").reverse();for(let v of g)this.proxyOf.nodes.unshift(v);for(let v in this.indexes)this.indexes[v]=this.indexes[v]+g.length}return this.markDirty(),this}push(p){return p.parent=this,this.proxyOf.nodes.push(p),this}removeAll(){for(let p of this.proxyOf.nodes)p.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(p){p=this.index(p),this.proxyOf.nodes[p].parent=void 0,this.proxyOf.nodes.splice(p,1);let h;for(let g in this.indexes)h=this.indexes[g],h>=p&&(this.indexes[g]=h-1);return this.markDirty(),this}replaceValues(p,h,g){return g||(g=h,h={}),this.walkDecls(v=>{h.props&&!h.props.includes(v.prop)||h.fast&&!v.value.includes(h.fast)||(v.value=v.value.replace(p,g))}),this.markDirty(),this}some(p){return this.nodes.some(p)}walk(p){return this.each((h,g)=>{let v;try{v=p(h,g)}catch(b){throw h.addToError(b)}return v!==!1&&h.walk&&(v=h.walk(p)),v})}walkAtRules(p,h){return h?p instanceof RegExp?this.walk((g,v)=>{if(g.type==="atrule"&&p.test(g.name))return h(g,v)}):this.walk((g,v)=>{if(g.type==="atrule"&&g.name===p)return h(g,v)}):(h=p,this.walk((g,v)=>{if(g.type==="atrule")return h(g,v)}))}walkComments(p){return this.walk((h,g)=>{if(h.type==="comment")return p(h,g)})}walkDecls(p,h){return h?p instanceof RegExp?this.walk((g,v)=>{if(g.type==="decl"&&p.test(g.prop))return h(g,v)}):this.walk((g,v)=>{if(g.type==="decl"&&g.prop===p)return h(g,v)}):(h=p,this.walk((g,v)=>{if(g.type==="decl")return h(g,v)}))}walkRules(p,h){return h?p instanceof RegExp?this.walk((g,v)=>{if(g.type==="rule"&&p.test(g.selector))return h(g,v)}):this.walk((g,v)=>{if(g.type==="rule"&&g.selector===p)return h(g,v)}):(h=p,this.walk((g,v)=>{if(g.type==="rule")return h(g,v)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return f.registerParse=d=>{i=d},f.registerRule=d=>{s=d},f.registerAtRule=d=>{a=d},f.registerRoot=d=>{u=d},wd=f,f.default=f,f.rebuild=d=>{d.type==="atrule"?Object.setPrototypeOf(d,a.prototype):d.type==="rule"?Object.setPrototypeOf(d,s.prototype):d.type==="decl"?Object.setPrototypeOf(d,n.prototype):d.type==="comment"?Object.setPrototypeOf(d,o.prototype):d.type==="root"&&Object.setPrototypeOf(d,u.prototype),d[r]=!0,d.nodes&&d.nodes.forEach(p=>{f.rebuild(p)})},wd}var $d,Zg;function Tp(){if(Zg)return $d;Zg=1;let e=Dt(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},$d=o,o.default=o,$d}var _d,Fg;function ry(){if(Fg)return _d;Fg=1;let e={};return _d=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},_d}var Sd,Vg;function ny(){if(Vg)return Sd;Vg=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Sd=e,e.default=e,Sd}var kd,qg;function jp(){if(qg)return kd;qg=1;let e=ny();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return kd=r,r.default=r,kd}var Id,Bg;function B$(){if(Bg)return Id;Bg=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,u=13,l=91,c=93,f=40,d=41,p=123,h=125,g=59,v=42,b=58,x=64,$=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Id=function(O,A={}){let N=O.css.valueOf(),X=A.ignoreErrors,M,E,ht,Je,De,J,me,Qe,ue,re,Sr=N.length,j=0,gt=[],We=[];function Vo(){return j}function vt(Ie){throw O.error("Unclosed "+Ie,j)}function qo(){return We.length===0&&j>=Sr}function Bo(Ie){if(We.length)return We.pop();if(j>=Sr)return;let yt=Ie?Ie.ignoreUnclosed:!1;switch(M=N.charCodeAt(j),M){case t:case i:case a:case u:case s:{E=j;do E+=1,M=N.charCodeAt(E);while(M===i||M===t||M===a||M===u||M===s);re=["space",N.slice(j,E)],j=E-1;break}case l:case c:case p:case h:case b:case g:case d:{let kr=String.fromCharCode(M);re=[kr,kr,j];break}case f:{if(Qe=gt.length?gt.pop()[1]:"",ue=N.charCodeAt(j+1),Qe==="url"&&ue!==e&&ue!==r&&ue!==i&&ue!==t&&ue!==a&&ue!==s&&ue!==u){E=j;do{if(J=!1,E=N.indexOf(")",E+1),E===-1)if(X||yt){E=j;break}else vt("bracket");for(me=E;N.charCodeAt(me-1)===n;)me-=1,J=!J}while(J);re=["brackets",N.slice(j,E+1),j,E],j=E}else E=N.indexOf(")",j+1),Je=N.slice(j,E+1),E===-1||y.test(Je)?re=["(","(",j]:(re=["brackets",Je,j,E],j=E);break}case e:case r:{ht=M===e?"'":'"',E=j;do{if(J=!1,E=N.indexOf(ht,E+1),E===-1)if(X||yt){E=j+1;break}else vt("string");for(me=E;N.charCodeAt(me-1)===n;)me-=1,J=!J}while(J);re=["string",N.slice(j,E+1),j,E],j=E;break}case x:{$.lastIndex=j+1,$.test(N),$.lastIndex===0?E=N.length-1:E=$.lastIndex-2,re=["at-word",N.slice(j,E+1),j,E],j=E;break}case n:{for(E=j,De=!0;N.charCodeAt(E+1)===n;)E+=1,De=!De;if(M=N.charCodeAt(E+1),De&&M!==o&&M!==i&&M!==t&&M!==a&&M!==u&&M!==s&&(E+=1,w.test(N.charAt(E)))){for(;w.test(N.charAt(E+1));)E+=1;N.charCodeAt(E+1)===i&&(E+=1)}re=["word",N.slice(j,E+1),j,E],j=E;break}default:{M===o&&N.charCodeAt(j+1)===v?(E=N.indexOf("*/",j+2)+1,E===0&&(X||yt?E=N.length:vt("comment")),re=["comment",N.slice(j,E+1),j,E],j=E):(_.lastIndex=j+1,_.test(N),_.lastIndex===0?E=N.length-1:E=_.lastIndex-2,re=["word",N.slice(j,E+1),j,E],gt.push(re),j=E);break}}return j++,re}function Jo(Ie){We.push(Ie)}return{back:Jo,endOfFile:qo,nextToken:Bo,position:Vo}},Id}var zd,Jg;function Cp(){if(Jg)return zd;Jg=1;let e=Dt();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return zd=r,r.default=r,e.registerAtRule(r),zd}var Od,Wg;function dn(){if(Wg)return Od;Wg=1;let e=Dt(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let u=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let l of u)l.raws.before=s.raws.before}return u}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Od=o,o.default=o,e.registerRoot(o),Od}var Ed,Gg;function iy(){if(Gg)return Ed;Gg=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
89
- `," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,u=!1,l="",c=!1;for(let f of r)c?c=!1:f==="\\"?c=!0:u?f===l&&(u=!1):f==='"'||f==="'"?(u=!0,l=f):f==="("?a+=1:f===")"?a>0&&(a-=1):a===0&&n.includes(f)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=f;return(o||i!=="")&&t.push(i.trim()),t}};return Ed=e,e.default=e,Ed}var Nd,Kg;function Ap(){if(Kg)return Nd;Kg=1;let e=Dt(),r=iy();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return Nd=n,n.default=n,e.registerRule(n),Nd}var Dd,Xg;function J$(){if(Xg)return Dd;Xg=1;let e=Io(),r=B$(),n=Oo(),o=Cp(),t=dn(),i=Ap(),s={empty:!0,space:!0};function a(l){for(let c=l.length-1;c>=0;c--){let f=l[c],d=f[3]||f[2];if(d)return d}}class u{constructor(c){this.input=c,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:c,start:{column:1,line:1,offset:0}}}atrule(c){let f=new o;f.name=c[1].slice(1),f.name===""&&this.unnamedAtrule(f,c),this.init(f,c[2]);let d,p,h,g=!1,v=!1,b=[],x=[];for(;!this.tokenizer.endOfFile();){if(c=this.tokenizer.nextToken(),d=c[0],d==="("||d==="["?x.push(d==="("?")":"]"):d==="{"&&x.length>0?x.push("}"):d===x[x.length-1]&&x.pop(),x.length===0)if(d===";"){f.source.end=this.getPosition(c[2]),f.source.end.offset++,this.semicolon=!0;break}else if(d==="{"){v=!0;break}else if(d==="}"){if(b.length>0){for(h=b.length-1,p=b[h];p&&p[0]==="space";)p=b[--h];p&&(f.source.end=this.getPosition(p[3]||p[2]),f.source.end.offset++)}this.end(c);break}else b.push(c);else b.push(c);if(this.tokenizer.endOfFile()){g=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(f.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(f,"params",b),g&&(c=b[b.length-1],f.source.end=this.getPosition(c[3]||c[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),v&&(f.nodes=[],this.current=f)}checkMissedSemicolon(c){let f=this.colon(c);if(f===!1)return;let d=0,p;for(let h=f-1;h>=0&&(p=c[h],!(p[0]!=="space"&&(d+=1,d===2)));h--);throw this.input.error("Missed semicolon",p[0]==="word"?p[3]+1:p[2])}colon(c){let f=0,d,p,h;for(let[g,v]of c.entries()){if(d=v,p=d[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!h)this.doubleColon(d);else{if(h[0]==="word"&&h[1]==="progid")continue;return g}h=d}return!1}comment(c){let f=new n;this.init(f,c[2]),f.source.end=this.getPosition(c[3]||c[2]),f.source.end.offset++;let d=c[1].slice(2,-2);if(/^\s*$/.test(d))f.text="",f.raws.left=d,f.raws.right="";else{let p=d.match(/^(\s*)([^]*\S)(\s*)$/);f.text=p[2],f.raws.left=p[1],f.raws.right=p[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(c,f){let d=new e;this.init(d,c[0][2]);let p=c[c.length-1];for(p[0]===";"&&(this.semicolon=!0,c.pop()),d.source.end=this.getPosition(p[3]||p[2]||a(c)),d.source.end.offset++;c[0][0]!=="word";)c.length===1&&this.unknownWord(c),d.raws.before+=c.shift()[1];for(d.source.start=this.getPosition(c[0][2]),d.prop="";c.length;){let x=c[0][0];if(x===":"||x==="space"||x==="comment")break;d.prop+=c.shift()[1]}d.raws.between="";let h;for(;c.length;)if(h=c.shift(),h[0]===":"){d.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),d.raws.between+=h[1];(d.prop[0]==="_"||d.prop[0]==="*")&&(d.raws.before+=d.prop[0],d.prop=d.prop.slice(1));let g=[],v;for(;c.length&&(v=c[0][0],!(v!=="space"&&v!=="comment"));)g.push(c.shift());this.precheckMissedSemicolon(c);for(let x=c.length-1;x>=0;x--){if(h=c[x],h[1].toLowerCase()==="!important"){d.important=!0;let $=this.stringFrom(c,x);$=this.spacesFromEnd(c)+$,$!==" !important"&&(d.raws.important=$);break}else if(h[1].toLowerCase()==="important"){let $=c.slice(0),_="";for(let y=x;y>0;y--){let w=$[y][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=$.pop()[1]+_}_.trim().indexOf("!")===0&&(d.important=!0,d.raws.important=_,c=$)}if(h[0]!=="space"&&h[0]!=="comment")break}c.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(d.raws.between+=g.map(x=>x[1]).join(""),g=[]),this.raw(d,"value",g.concat(c),f),d.value.includes(":")&&!f&&this.checkMissedSemicolon(c)}doubleColon(c){throw this.input.error("Double colon",{offset:c[2]},{offset:c[2]+c[1].length})}emptyRule(c){let f=new i;this.init(f,c[2]),f.selector="",f.raws.between="",this.current=f}end(c){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(c[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(c)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(c){if(this.spaces+=c[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(c){let f=this.input.fromOffset(c);return{column:f.col,line:f.line,offset:c}}init(c,f){this.current.push(c),c.source={input:this.input,start:this.getPosition(f)},c.raws.before=this.spaces,this.spaces="",c.type!=="comment"&&(this.semicolon=!1)}other(c){let f=!1,d=null,p=!1,h=null,g=[],v=c[1].startsWith("--"),b=[],x=c;for(;x;){if(d=x[0],b.push(x),d==="("||d==="[")h||(h=x),g.push(d==="("?")":"]");else if(v&&p&&d==="{")h||(h=x),g.push("}");else if(g.length===0)if(d===";")if(p){this.decl(b,v);return}else break;else if(d==="{"){this.rule(b);return}else if(d==="}"){this.tokenizer.back(b.pop()),f=!0;break}else d===":"&&(p=!0);else d===g[g.length-1]&&(g.pop(),g.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),g.length>0&&this.unclosedBracket(h),f&&p){if(!v)for(;b.length&&(x=b[b.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,v)}else this.unknownWord(b)}parse(){let c;for(;!this.tokenizer.endOfFile();)switch(c=this.tokenizer.nextToken(),c[0]){case"space":this.spaces+=c[1];break;case";":this.freeSemicolon(c);break;case"}":this.end(c);break;case"comment":this.comment(c);break;case"at-word":this.atrule(c);break;case"{":this.emptyRule(c);break;default:this.other(c);break}this.endFile()}precheckMissedSemicolon(){}raw(c,f,d,p){let h,g,v=d.length,b="",x=!0,$,_;for(let y=0;y<v;y+=1)h=d[y],g=h[0],g==="space"&&y===v-1&&!p?x=!1:g==="comment"?(_=d[y-1]?d[y-1][0]:"empty",$=d[y+1]?d[y+1][0]:"empty",!s[_]&&!s[$]?b.slice(-1)===","?x=!1:b+=h[1]:x=!1):b+=h[1];if(!x){let y=d.reduce((w,k)=>w+k[1],"");c.raws[f]={raw:y,value:b}}c[f]=b}rule(c){c.pop();let f=new i;this.init(f,c[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(c),this.raw(f,"selector",c),this.current=f}spacesAndCommentsFromEnd(c){let f,d="";for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)d=c.pop()[1]+d;return d}spacesAndCommentsFromStart(c){let f,d="";for(;c.length&&(f=c[0][0],!(f!=="space"&&f!=="comment"));)d+=c.shift()[1];return d}spacesFromEnd(c){let f,d="";for(;c.length&&(f=c[c.length-1][0],f==="space");)d=c.pop()[1]+d;return d}stringFrom(c,f){let d="";for(let p=f;p<c.length;p++)d+=c[p][1];return c.splice(f,c.length-f),d}unclosedBlock(){let c=this.current.source.start;throw this.input.error("Unclosed block",c.line,c.column)}unclosedBracket(c){throw this.input.error("Unclosed bracket",{offset:c[2]},{offset:c[2]+1})}unexpectedClose(c){throw this.input.error("Unexpected }",{offset:c[2]},{offset:c[2]+1})}unknownWord(c){throw this.input.error("Unknown word",{offset:c[0][2]},{offset:c[0][2]+c[0][1].length})}unnamedAtrule(c,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return Dd=u,Dd}var Pd,Hg;function Up(){if(Hg)return Pd;Hg=1;let e=Dt(),r=J$(),n=zo();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(u){throw u}return a.root}return Pd=o,o.default=o,e.registerParse(o),Pd}var Rd,Yg;function oy(){if(Yg)return Rd;Yg=1;let{isClean:e,my:r}=Rp(),n=ty(),o=So(),t=Dt(),i=Tp(),s=ry(),a=jp(),u=Up(),l=dn(),c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},d={Once:!0,postcssPlugin:!0,prepare:!0},p=0;function h(_){return typeof _=="object"&&typeof _.then=="function"}function g(_){let y=!1,w=c[_.type];return _.type==="decl"?y=_.prop.toLowerCase():_.type==="atrule"&&(y=_.name.toLowerCase()),y&&_.append?[w,w+"-"+y,p,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:_.append?[w,p,w+"Exit"]:[w,w+"Exit"]}function v(_){let y;return _.type==="document"?y=["Document",p,"DocumentExit"]:_.type==="root"?y=["Root",p,"RootExit"]:y=g(_),{eventIndex:0,events:y,iterator:0,node:_,visitorIndex:0,visitors:[]}}function b(_){return _[e]=!1,_.nodes&&_.nodes.forEach(y=>b(y)),_}let x={};class ${constructor(y,w,k){this.stringified=!1,this.processed=!1;let O;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))O=b(w);else if(w instanceof $||w instanceof a)O=b(w.root),w.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=w.map);else{let A=u;k.syntax&&(A=k.syntax.parse),k.parser&&(A=k.parser),A.parse&&(A=A.parse);try{O=A(w,k)}catch(N){this.processed=!0,this.error=N}O&&!O[r]&&t.rebuild(O)}this.result=new a(y,O,k),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?{...A,...A.prepare(this.result)}:A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let k=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=k.postcssPlugin,y.setMessage()):k.postcssVersion}catch(O){console&&console.error&&console.error(O)}return y}prepareVisitors(){this.listeners={};let y=(w,k,O)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([w,O])};for(let w of this.plugins)if(typeof w=="object")for(let k in w){if(!f[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[k])if(typeof w[k]=="object")for(let O in w[k])O==="*"?y(w,k,w[k][O]):y(w,k+"-"+O.toLowerCase(),w[k][O]);else typeof w[k]=="function"&&y(w,k,w[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],k=this.runOnRoot(w);if(h(k))try{await k}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[v(y)];for(;w.length>0;){let k=this.visitTick(w);if(h(k))try{await k}catch(O){let A=w[w.length-1].node;throw this.handleError(O,A)}}}if(this.listeners.OnceExit)for(let[w,k]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let O=y.nodes.map(A=>k(A,this.helpers));await Promise.all(O)}else await k(y,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(k=>y.Once(k,this.helpers));return h(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=o;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let O=new n(w,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[k,O]of y){this.result.lastPlugin=k;let A;try{A=O(w,this.helpers)}catch(N){throw this.handleError(N,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:k,visitors:O}=w;if(k.type!=="root"&&k.type!=="document"&&!k.parent){y.pop();return}if(O.length>0&&w.visitorIndex<O.length){let[N,X]=O[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===O.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=N;try{return X(k.toProxy(),this.helpers)}catch(M){throw this.handleError(M,k)}}if(w.iterator!==0){let N=w.iterator,X;for(;X=k.nodes[k.indexes[N]];)if(k.indexes[N]+=1,!X[e]){X[e]=!0,y.push(v(X));return}w.iterator=0,delete k.indexes[N]}let A=w.events;for(;w.eventIndex<A.length;){let N=A[w.eventIndex];if(w.eventIndex+=1,N===p){k.nodes&&k.nodes.length&&(k[e]=!0,w.iterator=k.getIterator());return}else if(this.listeners[N]){w.visitors=this.listeners[N];return}}y.pop()}walkSync(y){y[e]=!0;let w=g(y);for(let k of w)if(k===p)y.nodes&&y.each(O=>{O[e]||this.walkSync(O)});else{let O=this.listeners[k];if(O&&this.visitSync(O,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return $.registerPostcss=_=>{x=_},Rd=$,$.default=$,l.registerLazyResult($),i.registerLazyResult($),Rd}var Td,Qg;function W$(){if(Qg)return Td;Qg=1;let e=ty(),r=So(),n=ry(),o=Up(),t=jp();class i{constructor(a,u,l){u=u.toString(),this.stringified=!1,this._processor=a,this._css=u,this._opts=l,this._map=void 0;let c,f=r;this.result=new t(this._processor,c,this._opts),this.result.css=u;let d=this;Object.defineProperty(this.result,"root",{get(){return d.root}});let p=new e(f,c,this._opts,u);if(p.isMap()){let[h,g]=p.generate();h&&(this.result.css=h),g&&(this.result.map=g)}else p.clearAnnotation(),this.result.css=p.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,u){return this.async().then(a,u)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,u=o;try{a=u(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return Td=i,i.default=i,Td}var jd,ev;function G$(){if(ev)return jd;ev=1;let e=W$(),r=oy(),n=Tp(),o=dn();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let u of s)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))a=a.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)a.push(u);else if(typeof u=="function")a.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return jd=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),jd}var Cd,tv;function K$(){if(tv)return Cd;tv=1;let e=Io(),r=ey(),n=Oo(),o=Cp(),t=zo(),i=dn(),s=Ap();function a(u,l){if(Array.isArray(u))return u.map(d=>a(d));let{inputs:c,...f}=u;if(c){l=[];for(let d of c){let p={...d,__proto__:t.prototype};p.map&&(p.map={...p.map,__proto__:r.prototype}),l.push(p)}}if(f.nodes&&(f.nodes=u.nodes.map(d=>a(d,l))),f.source){let{inputId:d,...p}=f.source;f.source=p,d!=null&&(f.source.input=l[d])}if(f.type==="root")return new i(f);if(f.type==="decl")return new e(f);if(f.type==="rule")return new s(f);if(f.type==="comment")return new n(f);if(f.type==="atrule")return new o(f);throw new Error("Unknown node type: "+u.type)}return Cd=a,a.default=a,Cd}var Ad,rv;function X$(){if(rv)return Ad;rv=1;let e=Pp(),r=Io(),n=oy(),o=Dt(),t=G$(),i=So(),s=K$(),a=Tp(),u=ny(),l=Oo(),c=Cp(),f=jp(),d=zo(),p=Up(),h=iy(),g=Ap(),v=dn(),b=ko();function x(...$){return $.length===1&&Array.isArray($[0])&&($=$[0]),new t($)}return x.plugin=function(_,y){let w=!1;function k(...A){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
86
+ `)&&(f=`\r
87
+ `),this.css+=f+"/*# sourceMappingURL="+p+" */"}applyPrevMaps(){for(let p of this.previous()){let f=this.toUrl(this.path(p.file)),h=p.root||n(p.file),g;this.mapOpts.sourcesContent===!1?(g=new e(p.text),g.sourcesContent&&(g.sourcesContent=null)):g=p.consumer(),this.map.applySourceMap(g,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let p;for(let f=this.root.nodes.length-1;f>=0;f--)p=this.root.nodes[f],p.type==="comment"&&p.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&l&&this.isMap())return this.generateMap();{let p="";return this.stringify(this.root,f=>{p+=f}),[p]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let p=this.previous()[0].consumer();p.file=this.outputFile(),this.map=r.fromSourceMap(p,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let p=1,f=1,h="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},v,b;this.stringify(this.root,(x,$,_)=>{if(this.css+=x,$&&_!=="end"&&(g.generated.line=p,g.generated.column=f-1,$.source&&$.source.start?(g.source=this.sourcePath($),g.original.line=$.source.start.line,g.original.column=$.source.start.column-1,this.map.addMapping(g)):(g.source=h,g.original.line=1,g.original.column=0,this.map.addMapping(g))),v=x.match(/\n/g),v?(p+=v.length,b=x.lastIndexOf(`
88
+ `),f=x.length-b):f+=x.length,$&&_!=="start"){let y=$.parent||{raws:{}};(!($.type==="decl"||$.type==="atrule"&&!$.nodes)||$!==y.last||y.raws.semicolon)&&($.source&&$.source.end?(g.source=this.sourcePath($),g.original.line=$.source.end.line,g.original.column=$.source.end.column-1,g.generated.line=p,g.generated.column=f-2,this.map.addMapping(g)):(g.source=h,g.original.line=1,g.original.column=0,g.generated.line=p,g.generated.column=f-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(p=>p.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let p=this.mapOpts.annotation;return typeof p<"u"&&p!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(p=>p.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(p){if(this.mapOpts.absolute||p.charCodeAt(0)===60||/^\w+:\/\//.test(p))return p;let f=this.memoizedPaths.get(p);if(f)return f;let h=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=n(t(h,this.mapOpts.annotation)));let g=o(h,p);return this.memoizedPaths.set(p,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(p=>{if(p.source&&p.source.input.map){let f=p.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let p=new a(this.originalCSS,this.opts);p.map&&this.previousMaps.push(p.map)}return this.previousMaps}setSourcesContent(){let p={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!p[h]){p[h]=!0;let g=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(g,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(p){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(p.source.input.from):this.toUrl(this.path(p.source.input.from))}toBase64(p){return Buffer?Buffer.from(p).toString("base64"):window.btoa(unescape(encodeURIComponent(p)))}toFileUrl(p){let f=this.memoizedFileURLs.get(p);if(f)return f;if(s){let h=s(p).toString();return this.memoizedFileURLs.set(p,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(p){let f=this.memoizedURLs.get(p);if(f)return f;i==="\\"&&(p=p.replace(/\\/g,"/"));let h=encodeURI(p).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(p,h),h}}return Fd=c,Fd}var Vd,Ov;function Bo(){if(Ov)return Vd;Ov=1;let e=Fo();class r extends e{constructor(o){super(o),this.type="comment"}}return Vd=r,r.default=r,Vd}var qd,Ev;function Dt(){if(Ev)return qd;Ev=1;let{isClean:e,my:r}=rf(),n=Vo(),o=Bo(),t=Fo(),i,s,a,l;function u(p){return p.map(f=>(f.nodes&&(f.nodes=u(f.nodes)),delete f.source,f))}function c(p){if(p[e]=!1,p.proxyOf.nodes)for(let f of p.proxyOf.nodes)c(f)}class m extends t{append(...f){for(let h of f){let g=this.normalize(h,this.last);for(let v of g)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),g,v;for(;this.indexes[h]<this.proxyOf.nodes.length&&(g=this.indexes[h],v=f(this.proxyOf.nodes[g],g),v!==!1);)this.indexes[h]+=1;return delete this.indexes[h],v}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...g)=>f[h](...g.map(v=>typeof v=="function"?(b,x)=>v(b.toProxy(),x):v)):h==="every"||h==="some"?g=>f[h]((v,...b)=>g(v.toProxy(),...b)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(g=>g.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,g){return f[h]===g||(f[h]=g,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let g=this.index(f),v=this.normalize(h,this.proxyOf.nodes[g]).reverse();g=this.index(f);for(let x of v)this.proxyOf.nodes.splice(g+1,0,x);let b;for(let x in this.indexes)b=this.indexes[x],g<b&&(this.indexes[x]=b+v.length);return this.markDirty(),this}insertBefore(f,h){let g=this.index(f),v=g===0?"prepend":!1,b=this.normalize(h,this.proxyOf.nodes[g],v).reverse();g=this.index(f);for(let $ of b)this.proxyOf.nodes.splice(g,0,$);let x;for(let $ in this.indexes)x=this.indexes[$],g<=x&&(this.indexes[$]=x+b.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=u(i(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let v of f)v.parent&&v.parent.removeChild(v,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let v of f)v.parent&&v.parent.removeChild(v,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new n(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new a(f)];else if(f.text)f=[new o(f)];else throw new Error("Unknown node type in node creation");return f.map(v=>(v[r]||m.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[e]&&c(v),typeof v.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(v.raws.before=h.raws.before.replace(/\S/g,"")),v.parent=this.proxyOf,v))}prepend(...f){f=f.reverse();for(let h of f){let g=this.normalize(h,this.first,"prepend").reverse();for(let v of g)this.proxyOf.nodes.unshift(v);for(let v in this.indexes)this.indexes[v]=this.indexes[v]+g.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let g in this.indexes)h=this.indexes[g],h>=f&&(this.indexes[g]=h-1);return this.markDirty(),this}replaceValues(f,h,g){return g||(g=h,h={}),this.walkDecls(v=>{h.props&&!h.props.includes(v.prop)||h.fast&&!v.value.includes(h.fast)||(v.value=v.value.replace(f,g))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,g)=>{let v;try{v=f(h,g)}catch(b){throw h.addToError(b)}return v!==!1&&h.walk&&(v=h.walk(f)),v})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((g,v)=>{if(g.type==="atrule"&&f.test(g.name))return h(g,v)}):this.walk((g,v)=>{if(g.type==="atrule"&&g.name===f)return h(g,v)}):(h=f,this.walk((g,v)=>{if(g.type==="atrule")return h(g,v)}))}walkComments(f){return this.walk((h,g)=>{if(h.type==="comment")return f(h,g)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((g,v)=>{if(g.type==="decl"&&f.test(g.prop))return h(g,v)}):this.walk((g,v)=>{if(g.type==="decl"&&g.prop===f)return h(g,v)}):(h=f,this.walk((g,v)=>{if(g.type==="decl")return h(g,v)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((g,v)=>{if(g.type==="rule"&&f.test(g.selector))return h(g,v)}):this.walk((g,v)=>{if(g.type==="rule"&&g.selector===f)return h(g,v)}):(h=f,this.walk((g,v)=>{if(g.type==="rule")return h(g,v)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return m.registerParse=p=>{i=p},m.registerRule=p=>{s=p},m.registerAtRule=p=>{a=p},m.registerRoot=p=>{l=p},qd=m,m.default=m,m.rebuild=p=>{p.type==="atrule"?Object.setPrototypeOf(p,a.prototype):p.type==="rule"?Object.setPrototypeOf(p,s.prototype):p.type==="decl"?Object.setPrototypeOf(p,n.prototype):p.type==="comment"?Object.setPrototypeOf(p,o.prototype):p.type==="root"&&Object.setPrototypeOf(p,l.prototype),p[r]=!0,p.nodes&&p.nodes.forEach(f=>{m.rebuild(f)})},qd}var Bd,Pv;function nf(){if(Pv)return Bd;Pv=1;let e=Dt(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Bd=o,o.default=o,Bd}var Wd,Nv;function By(){if(Nv)return Wd;Nv=1;let e={};return Wd=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},Wd}var Jd,Dv;function Wy(){if(Dv)return Jd;Dv=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Jd=e,e.default=e,Jd}var Gd,Rv;function of(){if(Rv)return Gd;Rv=1;let e=Wy();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return Gd=r,r.default=r,Gd}var Kd,Tv;function sS(){if(Tv)return Kd;Tv=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,l=13,u=91,c=93,m=40,p=41,f=123,h=125,g=59,v=42,b=58,x=64,$=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Kd=function(O,A={}){let P=O.css.valueOf(),X=A.ignoreErrors,M,E,vt,Je,Ne,W,me,rt,ue,re,Er=P.length,C=0,yt=[],Ge=[];function ss(){return C}function bt(Ie){throw O.error("Unclosed "+Ie,C)}function as(){return Ge.length===0&&C>=Er}function cs(Ie){if(Ge.length)return Ge.pop();if(C>=Er)return;let xt=Ie?Ie.ignoreUnclosed:!1;switch(M=P.charCodeAt(C),M){case t:case i:case a:case l:case s:{E=C;do E+=1,M=P.charCodeAt(E);while(M===i||M===t||M===a||M===l||M===s);re=["space",P.slice(C,E)],C=E-1;break}case u:case c:case f:case h:case b:case g:case p:{let Pr=String.fromCharCode(M);re=[Pr,Pr,C];break}case m:{if(rt=yt.length?yt.pop()[1]:"",ue=P.charCodeAt(C+1),rt==="url"&&ue!==e&&ue!==r&&ue!==i&&ue!==t&&ue!==a&&ue!==s&&ue!==l){E=C;do{if(W=!1,E=P.indexOf(")",E+1),E===-1)if(X||xt){E=C;break}else bt("bracket");for(me=E;P.charCodeAt(me-1)===n;)me-=1,W=!W}while(W);re=["brackets",P.slice(C,E+1),C,E],C=E}else E=P.indexOf(")",C+1),Je=P.slice(C,E+1),E===-1||y.test(Je)?re=["(","(",C]:(re=["brackets",Je,C,E],C=E);break}case e:case r:{vt=M===e?"'":'"',E=C;do{if(W=!1,E=P.indexOf(vt,E+1),E===-1)if(X||xt){E=C+1;break}else bt("string");for(me=E;P.charCodeAt(me-1)===n;)me-=1,W=!W}while(W);re=["string",P.slice(C,E+1),C,E],C=E;break}case x:{$.lastIndex=C+1,$.test(P),$.lastIndex===0?E=P.length-1:E=$.lastIndex-2,re=["at-word",P.slice(C,E+1),C,E],C=E;break}case n:{for(E=C,Ne=!0;P.charCodeAt(E+1)===n;)E+=1,Ne=!Ne;if(M=P.charCodeAt(E+1),Ne&&M!==o&&M!==i&&M!==t&&M!==a&&M!==l&&M!==s&&(E+=1,w.test(P.charAt(E)))){for(;w.test(P.charAt(E+1));)E+=1;P.charCodeAt(E+1)===i&&(E+=1)}re=["word",P.slice(C,E+1),C,E],C=E;break}default:{M===o&&P.charCodeAt(C+1)===v?(E=P.indexOf("*/",C+2)+1,E===0&&(X||xt?E=P.length:bt("comment")),re=["comment",P.slice(C,E+1),C,E],C=E):(_.lastIndex=C+1,_.test(P),_.lastIndex===0?E=P.length-1:E=_.lastIndex-2,re=["word",P.slice(C,E+1),C,E],yt.push(re),C=E);break}}return C++,re}function ls(Ie){Ge.push(Ie)}return{back:ls,endOfFile:as,nextToken:cs,position:ss}},Kd}var Hd,Cv;function sf(){if(Cv)return Hd;Cv=1;let e=Dt();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return Hd=r,r.default=r,e.registerAtRule(r),Hd}var Xd,jv;function bn(){if(jv)return Xd;jv=1;let e=Dt(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let l=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let u of l)u.raws.before=s.raws.before}return l}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Xd=o,o.default=o,e.registerRoot(o),Xd}var Yd,Av;function Jy(){if(Av)return Yd;Av=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
89
+ `," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,l=!1,u="",c=!1;for(let m of r)c?c=!1:m==="\\"?c=!0:l?m===u&&(l=!1):m==='"'||m==="'"?(l=!0,u=m):m==="("?a+=1:m===")"?a>0&&(a-=1):a===0&&n.includes(m)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=m;return(o||i!=="")&&t.push(i.trim()),t}};return Yd=e,e.default=e,Yd}var Qd,Uv;function af(){if(Uv)return Qd;Uv=1;let e=Dt(),r=Jy();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return Qd=n,n.default=n,e.registerRule(n),Qd}var ep,Mv;function aS(){if(Mv)return ep;Mv=1;let e=Vo(),r=sS(),n=Bo(),o=sf(),t=bn(),i=af(),s={empty:!0,space:!0};function a(u){for(let c=u.length-1;c>=0;c--){let m=u[c],p=m[3]||m[2];if(p)return p}}class l{constructor(c){this.input=c,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:c,start:{column:1,line:1,offset:0}}}atrule(c){let m=new o;m.name=c[1].slice(1),m.name===""&&this.unnamedAtrule(m,c),this.init(m,c[2]);let p,f,h,g=!1,v=!1,b=[],x=[];for(;!this.tokenizer.endOfFile();){if(c=this.tokenizer.nextToken(),p=c[0],p==="("||p==="["?x.push(p==="("?")":"]"):p==="{"&&x.length>0?x.push("}"):p===x[x.length-1]&&x.pop(),x.length===0)if(p===";"){m.source.end=this.getPosition(c[2]),m.source.end.offset++,this.semicolon=!0;break}else if(p==="{"){v=!0;break}else if(p==="}"){if(b.length>0){for(h=b.length-1,f=b[h];f&&f[0]==="space";)f=b[--h];f&&(m.source.end=this.getPosition(f[3]||f[2]),m.source.end.offset++)}this.end(c);break}else b.push(c);else b.push(c);if(this.tokenizer.endOfFile()){g=!0;break}}m.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(m.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(m,"params",b),g&&(c=b[b.length-1],m.source.end=this.getPosition(c[3]||c[2]),m.source.end.offset++,this.spaces=m.raws.between,m.raws.between="")):(m.raws.afterName="",m.params=""),v&&(m.nodes=[],this.current=m)}checkMissedSemicolon(c){let m=this.colon(c);if(m===!1)return;let p=0,f;for(let h=m-1;h>=0&&(f=c[h],!(f[0]!=="space"&&(p+=1,p===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(c){let m=0,p,f,h;for(let[g,v]of c.entries()){if(p=v,f=p[0],f==="("&&(m+=1),f===")"&&(m-=1),m===0&&f===":")if(!h)this.doubleColon(p);else{if(h[0]==="word"&&h[1]==="progid")continue;return g}h=p}return!1}comment(c){let m=new n;this.init(m,c[2]),m.source.end=this.getPosition(c[3]||c[2]),m.source.end.offset++;let p=c[1].slice(2,-2);if(/^\s*$/.test(p))m.text="",m.raws.left=p,m.raws.right="";else{let f=p.match(/^(\s*)([^]*\S)(\s*)$/);m.text=f[2],m.raws.left=f[1],m.raws.right=f[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(c,m){let p=new e;this.init(p,c[0][2]);let f=c[c.length-1];for(f[0]===";"&&(this.semicolon=!0,c.pop()),p.source.end=this.getPosition(f[3]||f[2]||a(c)),p.source.end.offset++;c[0][0]!=="word";)c.length===1&&this.unknownWord(c),p.raws.before+=c.shift()[1];for(p.source.start=this.getPosition(c[0][2]),p.prop="";c.length;){let x=c[0][0];if(x===":"||x==="space"||x==="comment")break;p.prop+=c.shift()[1]}p.raws.between="";let h;for(;c.length;)if(h=c.shift(),h[0]===":"){p.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),p.raws.between+=h[1];(p.prop[0]==="_"||p.prop[0]==="*")&&(p.raws.before+=p.prop[0],p.prop=p.prop.slice(1));let g=[],v;for(;c.length&&(v=c[0][0],!(v!=="space"&&v!=="comment"));)g.push(c.shift());this.precheckMissedSemicolon(c);for(let x=c.length-1;x>=0;x--){if(h=c[x],h[1].toLowerCase()==="!important"){p.important=!0;let $=this.stringFrom(c,x);$=this.spacesFromEnd(c)+$,$!==" !important"&&(p.raws.important=$);break}else if(h[1].toLowerCase()==="important"){let $=c.slice(0),_="";for(let y=x;y>0;y--){let w=$[y][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=$.pop()[1]+_}_.trim().indexOf("!")===0&&(p.important=!0,p.raws.important=_,c=$)}if(h[0]!=="space"&&h[0]!=="comment")break}c.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(p.raws.between+=g.map(x=>x[1]).join(""),g=[]),this.raw(p,"value",g.concat(c),m),p.value.includes(":")&&!m&&this.checkMissedSemicolon(c)}doubleColon(c){throw this.input.error("Double colon",{offset:c[2]},{offset:c[2]+c[1].length})}emptyRule(c){let m=new i;this.init(m,c[2]),m.selector="",m.raws.between="",this.current=m}end(c){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(c[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(c)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(c){if(this.spaces+=c[1],this.current.nodes){let m=this.current.nodes[this.current.nodes.length-1];m&&m.type==="rule"&&!m.raws.ownSemicolon&&(m.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(c){let m=this.input.fromOffset(c);return{column:m.col,line:m.line,offset:c}}init(c,m){this.current.push(c),c.source={input:this.input,start:this.getPosition(m)},c.raws.before=this.spaces,this.spaces="",c.type!=="comment"&&(this.semicolon=!1)}other(c){let m=!1,p=null,f=!1,h=null,g=[],v=c[1].startsWith("--"),b=[],x=c;for(;x;){if(p=x[0],b.push(x),p==="("||p==="[")h||(h=x),g.push(p==="("?")":"]");else if(v&&f&&p==="{")h||(h=x),g.push("}");else if(g.length===0)if(p===";")if(f){this.decl(b,v);return}else break;else if(p==="{"){this.rule(b);return}else if(p==="}"){this.tokenizer.back(b.pop()),m=!0;break}else p===":"&&(f=!0);else p===g[g.length-1]&&(g.pop(),g.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(m=!0),g.length>0&&this.unclosedBracket(h),m&&f){if(!v)for(;b.length&&(x=b[b.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,v)}else this.unknownWord(b)}parse(){let c;for(;!this.tokenizer.endOfFile();)switch(c=this.tokenizer.nextToken(),c[0]){case"space":this.spaces+=c[1];break;case";":this.freeSemicolon(c);break;case"}":this.end(c);break;case"comment":this.comment(c);break;case"at-word":this.atrule(c);break;case"{":this.emptyRule(c);break;default:this.other(c);break}this.endFile()}precheckMissedSemicolon(){}raw(c,m,p,f){let h,g,v=p.length,b="",x=!0,$,_;for(let y=0;y<v;y+=1)h=p[y],g=h[0],g==="space"&&y===v-1&&!f?x=!1:g==="comment"?(_=p[y-1]?p[y-1][0]:"empty",$=p[y+1]?p[y+1][0]:"empty",!s[_]&&!s[$]?b.slice(-1)===","?x=!1:b+=h[1]:x=!1):b+=h[1];if(!x){let y=p.reduce((w,k)=>w+k[1],"");c.raws[m]={raw:y,value:b}}c[m]=b}rule(c){c.pop();let m=new i;this.init(m,c[0][2]),m.raws.between=this.spacesAndCommentsFromEnd(c),this.raw(m,"selector",c),this.current=m}spacesAndCommentsFromEnd(c){let m,p="";for(;c.length&&(m=c[c.length-1][0],!(m!=="space"&&m!=="comment"));)p=c.pop()[1]+p;return p}spacesAndCommentsFromStart(c){let m,p="";for(;c.length&&(m=c[0][0],!(m!=="space"&&m!=="comment"));)p+=c.shift()[1];return p}spacesFromEnd(c){let m,p="";for(;c.length&&(m=c[c.length-1][0],m==="space");)p=c.pop()[1]+p;return p}stringFrom(c,m){let p="";for(let f=m;f<c.length;f++)p+=c[f][1];return c.splice(m,c.length-m),p}unclosedBlock(){let c=this.current.source.start;throw this.input.error("Unclosed block",c.line,c.column)}unclosedBracket(c){throw this.input.error("Unclosed bracket",{offset:c[2]},{offset:c[2]+1})}unexpectedClose(c){throw this.input.error("Unexpected }",{offset:c[2]},{offset:c[2]+1})}unknownWord(c){throw this.input.error("Unknown word",{offset:c[0][2]},{offset:c[0][2]+c[0][1].length})}unnamedAtrule(c,m){throw this.input.error("At-rule without name",{offset:m[2]},{offset:m[2]+m[1].length})}}return ep=l,ep}var tp,Lv;function cf(){if(Lv)return tp;Lv=1;let e=Dt(),r=aS(),n=qo();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(l){throw l}return a.root}return tp=o,o.default=o,e.registerParse(o),tp}var rp,Zv;function Gy(){if(Zv)return rp;Zv=1;let{isClean:e,my:r}=rf(),n=qy(),o=Zo(),t=Dt(),i=nf(),s=By(),a=of(),l=cf(),u=bn(),c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},m={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(_){return typeof _=="object"&&typeof _.then=="function"}function g(_){let y=!1,w=c[_.type];return _.type==="decl"?y=_.prop.toLowerCase():_.type==="atrule"&&(y=_.name.toLowerCase()),y&&_.append?[w,w+"-"+y,f,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:_.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function v(_){let y;return _.type==="document"?y=["Document",f,"DocumentExit"]:_.type==="root"?y=["Root",f,"RootExit"]:y=g(_),{eventIndex:0,events:y,iterator:0,node:_,visitorIndex:0,visitors:[]}}function b(_){return _[e]=!1,_.nodes&&_.nodes.forEach(y=>b(y)),_}let x={};class ${constructor(y,w,k){this.stringified=!1,this.processed=!1;let O;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))O=b(w);else if(w instanceof $||w instanceof a)O=b(w.root),w.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=w.map);else{let A=l;k.syntax&&(A=k.syntax.parse),k.parser&&(A=k.parser),A.parse&&(A=A.parse);try{O=A(w,k)}catch(P){this.processed=!0,this.error=P}O&&!O[r]&&t.rebuild(O)}this.result=new a(y,O,k),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?{...A,...A.prepare(this.result)}:A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let k=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=k.postcssPlugin,y.setMessage()):k.postcssVersion}catch(O){console&&console.error&&console.error(O)}return y}prepareVisitors(){this.listeners={};let y=(w,k,O)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([w,O])};for(let w of this.plugins)if(typeof w=="object")for(let k in w){if(!m[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[k])if(typeof w[k]=="object")for(let O in w[k])O==="*"?y(w,k,w[k][O]):y(w,k+"-"+O.toLowerCase(),w[k][O]);else typeof w[k]=="function"&&y(w,k,w[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],k=this.runOnRoot(w);if(h(k))try{await k}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[v(y)];for(;w.length>0;){let k=this.visitTick(w);if(h(k))try{await k}catch(O){let A=w[w.length-1].node;throw this.handleError(O,A)}}}if(this.listeners.OnceExit)for(let[w,k]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let O=y.nodes.map(A=>k(A,this.helpers));await Promise.all(O)}else await k(y,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(k=>y.Once(k,this.helpers));return h(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=o;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let O=new n(w,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[k,O]of y){this.result.lastPlugin=k;let A;try{A=O(w,this.helpers)}catch(P){throw this.handleError(P,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:k,visitors:O}=w;if(k.type!=="root"&&k.type!=="document"&&!k.parent){y.pop();return}if(O.length>0&&w.visitorIndex<O.length){let[P,X]=O[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===O.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=P;try{return X(k.toProxy(),this.helpers)}catch(M){throw this.handleError(M,k)}}if(w.iterator!==0){let P=w.iterator,X;for(;X=k.nodes[k.indexes[P]];)if(k.indexes[P]+=1,!X[e]){X[e]=!0,y.push(v(X));return}w.iterator=0,delete k.indexes[P]}let A=w.events;for(;w.eventIndex<A.length;){let P=A[w.eventIndex];if(w.eventIndex+=1,P===f){k.nodes&&k.nodes.length&&(k[e]=!0,w.iterator=k.getIterator());return}else if(this.listeners[P]){w.visitors=this.listeners[P];return}}y.pop()}walkSync(y){y[e]=!0;let w=g(y);for(let k of w)if(k===f)y.nodes&&y.each(O=>{O[e]||this.walkSync(O)});else{let O=this.listeners[k];if(O&&this.visitSync(O,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return $.registerPostcss=_=>{x=_},rp=$,$.default=$,u.registerLazyResult($),i.registerLazyResult($),rp}var np,Fv;function cS(){if(Fv)return np;Fv=1;let e=qy(),r=Zo(),n=By(),o=cf(),t=of();class i{constructor(a,l,u){l=l.toString(),this.stringified=!1,this._processor=a,this._css=l,this._opts=u,this._map=void 0;let c,m=r;this.result=new t(this._processor,c,this._opts),this.result.css=l;let p=this;Object.defineProperty(this.result,"root",{get(){return p.root}});let f=new e(m,c,this._opts,l);if(f.isMap()){let[h,g]=f.generate();h&&(this.result.css=h),g&&(this.result.map=g)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,l){return this.async().then(a,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,l=o;try{a=l(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return np=i,i.default=i,np}var ip,Vv;function lS(){if(Vv)return ip;Vv=1;let e=cS(),r=Gy(),n=nf(),o=bn();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let l of s)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))a=a.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)a.push(l);else if(typeof l=="function")a.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return ip=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),ip}var op,qv;function uS(){if(qv)return op;qv=1;let e=Vo(),r=Vy(),n=Bo(),o=sf(),t=qo(),i=bn(),s=af();function a(l,u){if(Array.isArray(l))return l.map(p=>a(p));let{inputs:c,...m}=l;if(c){u=[];for(let p of c){let f={...p,__proto__:t.prototype};f.map&&(f.map={...f.map,__proto__:r.prototype}),u.push(f)}}if(m.nodes&&(m.nodes=l.nodes.map(p=>a(p,u))),m.source){let{inputId:p,...f}=m.source;m.source=f,p!=null&&(m.source.input=u[p])}if(m.type==="root")return new i(m);if(m.type==="decl")return new e(m);if(m.type==="rule")return new s(m);if(m.type==="comment")return new n(m);if(m.type==="atrule")return new o(m);throw new Error("Unknown node type: "+l.type)}return op=a,a.default=a,op}var sp,Bv;function dS(){if(Bv)return sp;Bv=1;let e=tf(),r=Vo(),n=Gy(),o=Dt(),t=lS(),i=Zo(),s=uS(),a=nf(),l=Wy(),u=Bo(),c=sf(),m=of(),p=qo(),f=cf(),h=Jy(),g=af(),v=bn(),b=Fo();function x(...$){return $.length===1&&Array.isArray($[0])&&($=$[0]),new t($)}return x.plugin=function(_,y){let w=!1;function k(...A){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
90
90
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(_+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
91
- https://www.w3ctech.com/topic/2226`));let N=y(...A);return N.postcssPlugin=_,N.postcssVersion=new t().version,N}let O;return Object.defineProperty(k,"postcss",{get(){return O||(O=k()),O}}),k.process=function(A,N,X){return x([k(X)]).process(A,N)},k},x.stringify=i,x.parse=p,x.fromJSON=s,x.list=h,x.comment=$=>new l($),x.atRule=$=>new c($),x.decl=$=>new r($),x.rule=$=>new g($),x.root=$=>new v($),x.document=$=>new a($),x.CssSyntaxError=e,x.Declaration=r,x.Container=o,x.Processor=t,x.Document=a,x.Comment=l,x.Warning=u,x.AtRule=c,x.Result=f,x.Input=d,x.Rule=g,x.Root=v,x.Node=b,n.registerPostcss(x),Ad=x,x.default=x,Ad}var H$=X$(),ne=M$(H$);ne.stringify;ne.fromJSON;ne.plugin;ne.parse;ne.list;ne.document;ne.comment;ne.atRule;ne.rule;ne.decl;ne.root;ne.CssSyntaxError;ne.Declaration;ne.Container;ne.Processor;ne.Document;ne.Comment;ne.Warning;ne.AtRule;ne.Result;ne.Input;ne.Rule;ne.Root;ne.Node;var nv={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function Y$(e){let r=nv[e.tagName]?nv[e.tagName]:e.tagName;return r==="link"&&e.attributes._cssText&&(r="style"),r}function Eo(e,r){let n=r?.stylesWithHoverClass.get(e);if(n)return n;let o=e;try{o=ne([A$,U$]).process(e).css}catch(t){console.warn("Failed to adapt css for replay",t)}return r?.stylesWithHoverClass.set(e,o),o}function iv(){return{stylesWithHoverClass:new Map}}var Q$="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",ov="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",sy=new WeakSet;function e_(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let r=Array.from(e.sandbox);return r.length===1&&r[0]==="allow-same-origin"}function t_(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let r=e.doc.defaultView;if(r&&!(sy.has(e.doc)&&e_(r.frameElement)))throw new Error(Q$)}function r_(e,r,n,o){let t=[];for(let l of e.childNodes)l.type===ce.Text&&t.push(l);let i=r.split("/* rr_split */");for(;i.length>1&&i.length>t.length;)i.splice(-2,2,i.slice(-2).join(""));let s="";n&&(s=Eo(i.join(""),o));let a=0,u=-1;for(let l=0;l<t.length&&l!==i.length;l++){let c=t[l],f=i[l],d=l<i.length-1?i[l+1]:null;if(n&&d){let p=a,h=d.length;h=Math.min(h,30);let g=!1;for(;h>2;h--){let v=d.substring(0,h),b=s.substring(a).indexOf(v);if(g=b!==-1,g){p+=b;break}}g||(p+=f.length),f=s.substring(a,p),a=p}else n&&(f=s.substring(a));u!==-1&&(f=f.substring(u)),d&&(u!==-1||f.endsWith("0p")&&d.startsWith("x"))&&(u=d.indexOf("}"),u!==-1&&(u+=1,f+=d.substring(0,u))),c.textContent=f}}function n_(e,r,n,o){let{doc:t,hackCss:i,cache:s}=o;e.childNodes.length?r_(e,n,i,s):(i&&(n=Eo(n,s)),r.appendChild(t.createTextNode(n)))}function i_(e,r){var n;let{doc:o,hackCss:t,cache:i}=r;switch(e.type){case ce.Document:return o.implementation.createDocument(null,"",null);case ce.DocumentType:return o.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case ce.Element:{let s=Y$(e),a;e.isSVG?a=o.createElementNS("http://www.w3.org/2000/svg",s):(e.isCustom&&((n=o.defaultView)!=null&&n.customElements)&&!o.defaultView.customElements.get(e.tagName)&&o.defaultView.customElements.define(e.tagName,class extends o.defaultView.HTMLElement{}),a=o.createElement(s));let u={};for(let l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let c=e.attributes[l];if(!(s==="option"&&l==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),l.startsWith("rr_")){u[l]=c;continue}if(typeof c=="string"){if(s==="style"&&l==="_cssText"){n_(e,a,c,r);continue}else if(s==="textarea"&&l==="value"){a.appendChild(o.createTextNode(c)),e.childNodes=[];continue}}try{if(e.isSVG&&l==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",l,c.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")a.setAttribute("_"+l,c.toString());else if(s==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){a.setAttribute("csp-content",c.toString());continue}else s==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||s==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&j$(e.attributes.href)==="js"||(s==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",e.attributes.srcset):a.setAttribute(l,c.toString()))}catch{}}}for(let l in u){let c=u[l];if(s==="canvas"&&l==="rr_dataURL"){let f=o.createElement("img");f.onload=()=>{let d=a.getContext("2d");d&&d.drawImage(f,0,0,f.width,f.height)},f.src=c.toString(),a.RRNodeType&&(a.rr_dataURL=c.toString())}else if(s==="img"&&l==="rr_dataURL"){let f=a;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",e.attributes.src),f.src=c.toString())}if(l==="rr_width")a.style.setProperty("width",c.toString());else if(l==="rr_height")a.style.setProperty("height",c.toString());else if(l==="rr_mediaCurrentTime"&&typeof c=="number")a.currentTime=c;else if(l==="rr_mediaState")switch(c){case"played":a.play().catch(f=>console.warn("media playback error",f));break;case"paused":a.pause();break}else l==="rr_mediaPlaybackRate"&&typeof c=="number"?a.playbackRate=c:l==="rr_mediaMuted"&&typeof c=="boolean"?a.muted=c:l==="rr_mediaLoop"&&typeof c=="boolean"?a.loop=c:l==="rr_mediaVolume"&&typeof c=="number"?a.volume=c:l==="rr_open_mode"&&a.setAttribute("rr_open_mode",c)}if(e.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return(s==="input"||s==="textarea")&&a.setAttribute("autocomplete","off"),a}case ce.Text:return e.isStyle&&t?o.createTextNode(Eo(e.textContent,i)):o.createTextNode(e.textContent);case ce.CDATA:return o.createCDATASection(e.textContent);case ce.Comment:return o.createComment(e.textContent);default:return null}}function un(e,r){let{doc:n,mirror:o,skipChild:t=!1,hackCss:i=!0,afterAppend:s,cache:a}=r;if(o.has(e.id)){let l=o.getNode(e.id),c=o.getMeta(l);if(T$(c,e))return o.getNode(e.id)}let u=i_(e,{doc:n,hackCss:i,cache:a});if(!u)return null;if(e.rootId&&o.getNode(e.rootId)!==n&&o.replace(e.rootId,n),e.type===ce.Document&&(n.close(),n.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==ce.DocumentType&&(e.childNodes[0].type===ce.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=n),o.add(u,e),(e.type===ce.Document||e.type===ce.Element)&&!t)for(let l of e.childNodes){let c=un(l,{doc:n,mirror:o,skipChild:!1,hackCss:i,afterAppend:s,cache:a});if(!c){console.warn("Failed to rebuild",l);continue}if(l.isShadow&&P$(u)&&u.shadowRoot)u.shadowRoot.appendChild(c);else if(e.type===ce.Document&&l.type==ce.Element){let f=c,d=null;f.childNodes.forEach(p=>{p.nodeName==="BODY"&&(d=p)}),d?(f.removeChild(d),u.appendChild(c),f.appendChild(d)):u.appendChild(c)}else u.appendChild(c);s&&s(c,l.id)}return u}function o_(e,r){function n(o){r(o)}for(let o of e.getIds())e.has(o)&&n(e.getNode(o))}function s_(e,r){let n=r.getMeta(e);if(n?.type!==ce.Element)return;let o=e;for(let t in n.attributes){if(!(Object.prototype.hasOwnProperty.call(n.attributes,t)&&t.startsWith("rr_")))continue;let i=n.attributes[t];t==="rr_scrollLeft"&&(o.scrollLeft=i),t==="rr_scrollTop"&&(o.scrollTop=i)}}function a_(e,r){t_(r);let{doc:n,onVisit:o,hackCss:t=!0,afterAppend:i,cache:s,mirror:a=new mo}=r,u=un(e,{doc:n,mirror:a,skipChild:!1,hackCss:t,afterAppend:i,cache:s});return o_(a,l=>{o&&o(l),s_(l,a)}),u}function c_(e){var r;if(!e.root.isConnected)throw new Error(ov);let n=e.root.ownerDocument.createElement("iframe");for(let[t,i]of Object.entries(e.iframeAttributes||{}))t!=="sandbox"&&n.setAttribute(t,i);n.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(n);let o=n.contentDocument;if(!o||!n.contentWindow)throw(r=n.parentNode)==null||r.removeChild(n),new Error(ov);return sy.add(o),n}var l_=Object.defineProperty,u_=(e,r,n)=>r in e?l_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,U=(e,r,n)=>u_(e,typeof r!="symbol"?r+"":r,n),d_=Object.defineProperty,p_=(e,r,n)=>r in e?d_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,sv=(e,r,n)=>p_(e,typeof r!="symbol"?r+"":r,n);Date.now().toString();var f_=class{constructor(){sv(this,"idNodeMap",new Map),sv(this,"nodeMetaMap",new WeakMap)}getId(r){var n;return r?((n=this.getMeta(r))==null?void 0:n.id)??-1:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let n=this.getId(r);this.idNodeMap.delete(n),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,n){let o=n.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,n)}replace(r,n){let o=this.getNode(r);if(o){let t=this.nodeMetaMap.get(o);t&&this.nodeMetaMap.set(n,t)}this.idNodeMap.set(r,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function m_(){return new f_}function h_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g_(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}var co={exports:{}},av;function v_(){if(av)return co.exports;av=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return co.exports=r(),co.exports.createColors=r,co.exports}var y_={},b_=Object.freeze(Object.defineProperty({__proto__:null,default:y_},Symbol.toStringTag,{value:"Module"})),Ue=g_(b_),Ud,cv;function Mp(){if(cv)return Ud;cv=1;let e=v_(),r=Ue;class n extends Error{constructor(t,i,s,a,u,l){super(t),this.name="CssSyntaxError",this.reason=t,u&&(this.file=u),a&&(this.source=a),l&&(this.plugin=l),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(this.line=i,this.column=s):(this.line=i.line,this.column=i.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let i=this.source;t==null&&(t=e.isColorSupported),r&&t&&(i=r(i));let s=i.split(/\r?\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),l=String(u).length,c,f;if(t){let{bold:d,gray:p,red:h}=e.createColors(!0);c=g=>d(h(g)),f=g=>p(g)}else c=f=d=>d;return s.slice(a,u).map((d,p)=>{let h=a+1+p,g=" "+(" "+h).slice(-l)+" | ";if(h===this.line){let v=f(g.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return c(">")+f(g)+d+`
92
- `+v+c("^")}return" "+f(g)+d}).join(`
91
+ https://www.w3ctech.com/topic/2226`));let P=y(...A);return P.postcssPlugin=_,P.postcssVersion=new t().version,P}let O;return Object.defineProperty(k,"postcss",{get(){return O||(O=k()),O}}),k.process=function(A,P,X){return x([k(X)]).process(A,P)},k},x.stringify=i,x.parse=f,x.fromJSON=s,x.list=h,x.comment=$=>new u($),x.atRule=$=>new c($),x.decl=$=>new r($),x.rule=$=>new g($),x.root=$=>new v($),x.document=$=>new a($),x.CssSyntaxError=e,x.Declaration=r,x.Container=o,x.Processor=t,x.Document=a,x.Comment=u,x.Warning=l,x.AtRule=c,x.Result=m,x.Input=p,x.Rule=g,x.Root=v,x.Node=b,n.registerPostcss(x),sp=x,x.default=x,sp}var pS=dS(),ne=eS(pS);ne.stringify;ne.fromJSON;ne.plugin;ne.parse;ne.list;ne.document;ne.comment;ne.atRule;ne.rule;ne.decl;ne.root;ne.CssSyntaxError;ne.Declaration;ne.Container;ne.Processor;ne.Document;ne.Comment;ne.Warning;ne.AtRule;ne.Result;ne.Input;ne.Rule;ne.Root;ne.Node;var Wv={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function fS(e){let r=Wv[e.tagName]?Wv[e.tagName]:e.tagName;return r==="link"&&e.attributes._cssText&&(r="style"),r}function Wo(e,r){let n=r?.stylesWithHoverClass.get(e);if(n)return n;let o=e;try{o=ne([Y_,Q_]).process(e).css}catch(t){console.warn("Failed to adapt css for replay",t)}return r?.stylesWithHoverClass.set(e,o),o}function Jv(){return{stylesWithHoverClass:new Map}}var mS="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",Gv="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",Ky=new WeakSet;function hS(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let r=Array.from(e.sandbox);return r.length===1&&r[0]==="allow-same-origin"}function gS(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let r=e.doc.defaultView;if(r&&!(Ky.has(e.doc)&&hS(r.frameElement)))throw new Error(mS)}function vS(e,r,n,o){let t=[];for(let u of e.childNodes)u.type===ce.Text&&t.push(u);let i=r.split("/* rr_split */");for(;i.length>1&&i.length>t.length;)i.splice(-2,2,i.slice(-2).join(""));let s="";n&&(s=Wo(i.join(""),o));let a=0,l=-1;for(let u=0;u<t.length&&u!==i.length;u++){let c=t[u],m=i[u],p=u<i.length-1?i[u+1]:null;if(n&&p){let f=a,h=p.length;h=Math.min(h,30);let g=!1;for(;h>2;h--){let v=p.substring(0,h),b=s.substring(a).indexOf(v);if(g=b!==-1,g){f+=b;break}}g||(f+=m.length),m=s.substring(a,f),a=f}else n&&(m=s.substring(a));l!==-1&&(m=m.substring(l)),p&&(l!==-1||m.endsWith("0p")&&p.startsWith("x"))&&(l=p.indexOf("}"),l!==-1&&(l+=1,m+=p.substring(0,l))),c.textContent=m}}function yS(e,r,n,o){let{doc:t,hackCss:i,cache:s}=o;e.childNodes.length?vS(e,n,i,s):(i&&(n=Wo(n,s)),r.appendChild(t.createTextNode(n)))}function bS(e,r){var n;let{doc:o,hackCss:t,cache:i}=r;switch(e.type){case ce.Document:return o.implementation.createDocument(null,"",null);case ce.DocumentType:return o.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case ce.Element:{let s=fS(e),a;e.isSVG?a=o.createElementNS("http://www.w3.org/2000/svg",s):(e.isCustom&&((n=o.defaultView)!=null&&n.customElements)&&!o.defaultView.customElements.get(e.tagName)&&o.defaultView.customElements.define(e.tagName,class extends o.defaultView.HTMLElement{}),a=o.createElement(s));let l={};for(let u in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,u))continue;let c=e.attributes[u];if(!(s==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){l[u]=c;continue}if(typeof c=="string"){if(s==="style"&&u==="_cssText"){yS(e,a,c,r);continue}else if(s==="textarea"&&u==="value"){a.appendChild(o.createTextNode(c)),e.childNodes=[];continue}}try{if(e.isSVG&&u==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")a.setAttribute("_"+u,c.toString());else if(s==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){a.setAttribute("csp-content",c.toString());continue}else s==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||s==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&H_(e.attributes.href)==="js"||(s==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",e.attributes.srcset):a.setAttribute(u,c.toString()))}catch{}}}for(let u in l){let c=l[u];if(s==="canvas"&&u==="rr_dataURL"){let m=o.createElement("img");m.onload=()=>{let p=a.getContext("2d");p&&p.drawImage(m,0,0,m.width,m.height)},m.src=c.toString(),a.RRNodeType&&(a.rr_dataURL=c.toString())}else if(s==="img"&&u==="rr_dataURL"){let m=a;m.currentSrc.startsWith("data:")||(m.setAttribute("rrweb-original-src",e.attributes.src),m.src=c.toString())}if(u==="rr_width")a.style.setProperty("width",c.toString());else if(u==="rr_height")a.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")a.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":a.play().catch(m=>console.warn("media playback error",m));break;case"paused":a.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?a.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?a.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?a.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?a.volume=c:u==="rr_open_mode"&&a.setAttribute("rr_open_mode",c)}if(e.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return(s==="input"||s==="textarea")&&a.setAttribute("autocomplete","off"),a}case ce.Text:return e.isStyle&&t?o.createTextNode(Wo(e.textContent,i)):o.createTextNode(e.textContent);case ce.CDATA:return o.createCDATASection(e.textContent);case ce.Comment:return o.createComment(e.textContent);default:return null}}function yn(e,r){let{doc:n,mirror:o,skipChild:t=!1,hackCss:i=!0,afterAppend:s,cache:a}=r;if(o.has(e.id)){let u=o.getNode(e.id),c=o.getMeta(u);if(K_(c,e))return o.getNode(e.id)}let l=bS(e,{doc:n,hackCss:i,cache:a});if(!l)return null;if(e.rootId&&o.getNode(e.rootId)!==n&&o.replace(e.rootId,n),e.type===ce.Document&&(n.close(),n.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==ce.DocumentType&&(e.childNodes[0].type===ce.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=n),o.add(l,e),(e.type===ce.Document||e.type===ce.Element)&&!t)for(let u of e.childNodes){let c=yn(u,{doc:n,mirror:o,skipChild:!1,hackCss:i,afterAppend:s,cache:a});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&J_(l)&&l.shadowRoot)l.shadowRoot.appendChild(c);else if(e.type===ce.Document&&u.type==ce.Element){let m=c,p=null;m.childNodes.forEach(f=>{f.nodeName==="BODY"&&(p=f)}),p?(m.removeChild(p),l.appendChild(c),m.appendChild(p)):l.appendChild(c)}else l.appendChild(c);s&&s(c,u.id)}return l}function xS(e,r){function n(o){r(o)}for(let o of e.getIds())e.has(o)&&n(e.getNode(o))}function wS(e,r){let n=r.getMeta(e);if(n?.type!==ce.Element)return;let o=e;for(let t in n.attributes){if(!(Object.prototype.hasOwnProperty.call(n.attributes,t)&&t.startsWith("rr_")))continue;let i=n.attributes[t];t==="rr_scrollLeft"&&(o.scrollLeft=i),t==="rr_scrollTop"&&(o.scrollTop=i)}}function $S(e,r){gS(r);let{doc:n,onVisit:o,hackCss:t=!0,afterAppend:i,cache:s,mirror:a=new No}=r,l=yn(e,{doc:n,mirror:a,skipChild:!1,hackCss:t,afterAppend:i,cache:s});return xS(a,u=>{o&&o(u),wS(u,a)}),l}function _S(e){var r;if(!e.root.isConnected)throw new Error(Gv);let n=e.root.ownerDocument.createElement("iframe");for(let[t,i]of Object.entries(e.iframeAttributes||{}))t!=="sandbox"&&n.setAttribute(t,i);n.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(n);let o=n.contentDocument;if(!o||!n.contentWindow)throw(r=n.parentNode)==null||r.removeChild(n),new Error(Gv);return Ky.add(o),n}var SS=Object.defineProperty,kS=(e,r,n)=>r in e?SS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,U=(e,r,n)=>kS(e,typeof r!="symbol"?r+"":r,n),IS=Object.defineProperty,zS=(e,r,n)=>r in e?IS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Kv=(e,r,n)=>zS(e,typeof r!="symbol"?r+"":r,n);Date.now().toString();var OS=class{constructor(){Kv(this,"idNodeMap",new Map),Kv(this,"nodeMetaMap",new WeakMap)}getId(r){var n;return r?((n=this.getMeta(r))==null?void 0:n.id)??-1:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let n=this.getId(r);this.idNodeMap.delete(n),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,n){let o=n.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,n)}replace(r,n){let o=this.getNode(r);if(o){let t=this.nodeMetaMap.get(o);t&&this.nodeMetaMap.set(n,t)}this.idNodeMap.set(r,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ES(){return new OS}function PS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function NS(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}var Io={exports:{}},Hv;function DS(){if(Hv)return Io.exports;Hv=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Io.exports=r(),Io.exports.createColors=r,Io.exports}var RS={},TS=Object.freeze(Object.defineProperty({__proto__:null,default:RS},Symbol.toStringTag,{value:"Module"})),Ue=NS(TS),ap,Xv;function lf(){if(Xv)return ap;Xv=1;let e=DS(),r=Ue;class n extends Error{constructor(t,i,s,a,l,u){super(t),this.name="CssSyntaxError",this.reason=t,l&&(this.file=l),a&&(this.source=a),u&&(this.plugin=u),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(this.line=i,this.column=s):(this.line=i.line,this.column=i.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let i=this.source;t==null&&(t=e.isColorSupported),r&&t&&(i=r(i));let s=i.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length,c,m;if(t){let{bold:p,gray:f,red:h}=e.createColors(!0);c=g=>p(h(g)),m=g=>f(g)}else c=m=p=>p;return s.slice(a,l).map((p,f)=>{let h=a+1+f,g=" "+(" "+h).slice(-u)+" | ";if(h===this.line){let v=m(g.replace(/\d/g," "))+p.slice(0,this.column-1).replace(/[^\t]/g," ");return c(">")+m(g)+p+`
92
+ `+v+c("^")}return" "+m(g)+p}).join(`
93
93
  `)}toString(){let t=this.showSourceCode();return t&&(t=`
94
94
 
95
95
  `+t+`
96
- `),this.name+": "+this.message+t}}return Ud=n,n.default=n,Ud}var lo={},lv;function Lp(){return lv||(lv=1,lo.isClean=Symbol("isClean"),lo.my=Symbol("my")),lo}var Md,uv;function ay(){if(uv)return Md;uv=1;let e={after:`
96
+ `),this.name+": "+this.message+t}}return ap=n,n.default=n,ap}var zo={},Yv;function uf(){return Yv||(Yv=1,zo.isClean=Symbol("isClean"),zo.my=Symbol("my")),zo}var cp,Qv;function Hy(){if(Qv)return cp;Qv=1;let e={after:`
97
97
  `,beforeClose:`
98
98
  `,beforeComment:`
99
99
  `,beforeDecl:`
100
100
  `,beforeOpen:" ",beforeRule:`
101
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(o){return o[0].toUpperCase()+o.slice(1)}class n{constructor(t){this.builder=t}atrule(t,i){let s="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?s+=t.raws.afterName:a&&(s+=" "),t.nodes)this.block(t,s+a);else{let u=(t.raws.between||"")+(i?";":"");this.builder(s+a+u,t)}}beforeAfter(t,i){let s;t.type==="decl"?s=this.raw(t,null,"beforeDecl"):t.type==="comment"?s=this.raw(t,null,"beforeComment"):i==="before"?s=this.raw(t,null,"beforeRule"):s=this.raw(t,null,"beforeClose");let a=t.parent,u=0;for(;a&&a.type!=="root";)u+=1,a=a.parent;if(s.includes(`
102
- `)){let l=this.raw(t,null,"indent");if(l.length)for(let c=0;c<u;c++)s+=l}return s}block(t,i){let s=this.raw(t,"between","beforeOpen");this.builder(i+s+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let i=t.nodes.length-1;for(;i>0&&t.nodes[i].type==="comment";)i-=1;let s=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let u=t.nodes[a],l=this.raw(u,"before");l&&this.builder(l),this.stringify(u,i!==a||s)}}comment(t){let i=this.raw(t,"left","commentLeft"),s=this.raw(t,"right","commentRight");this.builder("/*"+i+t.text+s+"*/",t)}decl(t,i){let s=this.raw(t,"between","colon"),a=t.prop+s+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),i&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,i,s){let a;if(s||(s=i),i&&(a=t.raws[i],typeof a<"u"))return a;let u=t.parent;if(s==="before"&&(!u||u.type==="root"&&u.first===t||u&&u.type==="document"))return"";if(!u)return e[s];let l=t.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[s]<"u")return l.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(t,s);{let c="raw"+r(s);this[c]?a=this[c](l,t):l.walk(f=>{if(a=f.raws[i],typeof a<"u")return!1})}return typeof a>"u"&&(a=e[s]),l.rawCache[s]=a,a}rawBeforeClose(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return i=s.raws.after,i.includes(`
101
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function r(o){return o[0].toUpperCase()+o.slice(1)}class n{constructor(t){this.builder=t}atrule(t,i){let s="@"+t.name,a=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?s+=t.raws.afterName:a&&(s+=" "),t.nodes)this.block(t,s+a);else{let l=(t.raws.between||"")+(i?";":"");this.builder(s+a+l,t)}}beforeAfter(t,i){let s;t.type==="decl"?s=this.raw(t,null,"beforeDecl"):t.type==="comment"?s=this.raw(t,null,"beforeComment"):i==="before"?s=this.raw(t,null,"beforeRule"):s=this.raw(t,null,"beforeClose");let a=t.parent,l=0;for(;a&&a.type!=="root";)l+=1,a=a.parent;if(s.includes(`
102
+ `)){let u=this.raw(t,null,"indent");if(u.length)for(let c=0;c<l;c++)s+=u}return s}block(t,i){let s=this.raw(t,"between","beforeOpen");this.builder(i+s+"{",t,"start");let a;t.nodes&&t.nodes.length?(this.body(t),a=this.raw(t,"after")):a=this.raw(t,"after","emptyBody"),a&&this.builder(a),this.builder("}",t,"end")}body(t){let i=t.nodes.length-1;for(;i>0&&t.nodes[i].type==="comment";)i-=1;let s=this.raw(t,"semicolon");for(let a=0;a<t.nodes.length;a++){let l=t.nodes[a],u=this.raw(l,"before");u&&this.builder(u),this.stringify(l,i!==a||s)}}comment(t){let i=this.raw(t,"left","commentLeft"),s=this.raw(t,"right","commentRight");this.builder("/*"+i+t.text+s+"*/",t)}decl(t,i){let s=this.raw(t,"between","colon"),a=t.prop+s+this.rawValue(t,"value");t.important&&(a+=t.raws.important||" !important"),i&&(a+=";"),this.builder(a,t)}document(t){this.body(t)}raw(t,i,s){let a;if(s||(s=i),i&&(a=t.raws[i],typeof a<"u"))return a;let l=t.parent;if(s==="before"&&(!l||l.type==="root"&&l.first===t||l&&l.type==="document"))return"";if(!l)return e[s];let u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]<"u")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(t,s);{let c="raw"+r(s);this[c]?a=this[c](u,t):u.walk(m=>{if(a=m.raws[i],typeof a<"u")return!1})}return typeof a>"u"&&(a=e[s]),u.rawCache[s]=a,a}rawBeforeClose(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return i=s.raws.after,i.includes(`
103
103
  `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawBeforeComment(t,i){let s;return t.walkComments(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
104
104
  `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(t,i){let s;return t.walkDecls(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
105
105
  `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(t){let i;return t.walk(s=>{if(s.type!=="decl"&&(i=s.raws.between,typeof i<"u"))return!1}),i}rawBeforeRule(t){let i;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
106
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(t){let i;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i}rawIndent(t){if(t.raws.indent)return t.raws.indent;let i;return t.walk(s=>{let a=s.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof s.raws.before<"u"){let u=s.raws.before.split(`
107
- `);return i=u[u.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let s=t[i],a=t.raws[i];return a&&a.value===s?a.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}}return Md=n,n.default=n,Md}var Ld,dv;function No(){if(dv)return Ld;dv=1;let e=ay();function r(n,o){new e(o).stringify(n)}return Ld=r,r.default=r,Ld}var Zd,pv;function Do(){if(pv)return Zd;pv=1;let{isClean:e,my:r}=Lp(),n=Mp(),o=ay(),t=No();function i(a,u){let l=new a.constructor;for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||c==="proxyCache")continue;let f=a[c],d=typeof f;c==="parent"&&d==="object"?u&&(l[c]=u):c==="source"?l[c]=f:Array.isArray(f)?l[c]=f.map(p=>i(p,l)):(d==="object"&&f!==null&&(f=i(f)),l[c]=f)}return l}class s{constructor(u={}){this.raws={},this[e]=!1,this[r]=!0;for(let l in u)if(l==="nodes"){this.nodes=[];for(let c of u[l])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[l]=u[l]}addToError(u){if(u.postcssNode=this,u.stack&&this.source&&/\n\s{4}at /.test(u.stack)){let l=this.source;u.stack=u.stack.replace(/\n\s{4}at /,`$&${l.input.from}:${l.start.line}:${l.start.column}$&`)}return u}after(u){return this.parent.insertAfter(this,u),this}assign(u={}){for(let l in u)this[l]=u[l];return this}before(u){return this.parent.insertBefore(this,u),this}cleanRaws(u){delete this.raws.before,delete this.raws.after,u||delete this.raws.between}clone(u={}){let l=i(this);for(let c in u)l[c]=u[c];return l}cloneAfter(u={}){let l=this.clone(u);return this.parent.insertAfter(this,l),l}cloneBefore(u={}){let l=this.clone(u);return this.parent.insertBefore(this,l),l}error(u,l={}){if(this.source){let{end:c,start:f}=this.rangeBy(l);return this.source.input.error(u,{column:f.column,line:f.line},{column:c.column,line:c.line},l)}return new n(u)}getProxyProcessor(){return{get(u,l){return l==="proxyOf"?u:l==="root"?()=>u.root().toProxy():u[l]},set(u,l,c){return u[l]===c||(u[l]=c,(l==="prop"||l==="value"||l==="name"||l==="params"||l==="important"||l==="text")&&u.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let u=this;for(;u=u.parent;)u[e]=!1}}next(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u+1]}positionBy(u,l){let c=this.source.start;if(u.index)c=this.positionInside(u.index,l);else if(u.word){l=this.toString();let f=l.indexOf(u.word);f!==-1&&(c=this.positionInside(f,l))}return c}positionInside(u,l){let c=l||this.toString(),f=this.source.start.column,d=this.source.start.line;for(let p=0;p<u;p++)c[p]===`
108
- `?(f=1,d+=1):f+=1;return{column:f,line:d}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u){let l={column:this.source.start.column,line:this.source.start.line},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:l.column+1,line:l.line};if(u.word){let f=this.toString(),d=f.indexOf(u.word);d!==-1&&(l=this.positionInside(d,f),c=this.positionInside(d+u.word.length,f))}else u.start?l={column:u.start.column,line:u.start.line}:u.index&&(l=this.positionInside(u.index)),u.end?c={column:u.end.column,line:u.end.line}:typeof u.endIndex=="number"?c=this.positionInside(u.endIndex):u.index&&(c=this.positionInside(u.index+1));return(c.line<l.line||c.line===l.line&&c.column<=l.column)&&(c={column:l.column+1,line:l.line}),{end:c,start:l}}raw(u,l){return new o().raw(this,u,l)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let l=this,c=!1;for(let f of u)f===this?c=!0:c?(this.parent.insertAfter(l,f),l=f):this.parent.insertBefore(l,f);c||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,l){let c={},f=l==null;l=l||new Map;let d=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let h=this[p];if(Array.isArray(h))c[p]=h.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,l):g);else if(typeof h=="object"&&h.toJSON)c[p]=h.toJSON(null,l);else if(p==="source"){let g=l.get(h.input);g==null&&(g=d,l.set(h.input,d),d++),c[p]={end:h.end,inputId:g,start:h.start}}else c[p]=h}return f&&(c.inputs=[...l.keys()].map(p=>p.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=t){u.stringify&&(u=u.stringify);let l="";return u(this,c=>{l+=c}),l}warn(u,l,c){let f={node:this};for(let d in c)f[d]=c[d];return u.warn(l,f)}get proxyOf(){return this}}return Zd=s,s.default=s,Zd}var Fd,fv;function Po(){if(fv)return Fd;fv=1;let e=Do();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Fd=r,r.default=r,Fd}var Vd,mv;function x_(){if(mv)return Vd;mv=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Vd={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},Vd}var qd,hv;function cy(){if(hv)return qd;hv=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ue,{existsSync:n,readFileSync:o}=Ue,{dirname:t,join:i}=Ue;function s(u){return Buffer?Buffer.from(u,"base64").toString():window.atob(u)}class a{constructor(l,c){if(c.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let f=c.map?c.map.prev:void 0,d=this.loadMap(c.from,f);!this.mapFile&&c.from&&(this.mapFile=c.from),this.mapFile&&(this.root=t(this.mapFile)),d&&(this.text=d)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(l){let c=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,d=/^data:application\/json;charset=utf-?8,/,p=/^data:application\/json,/;if(d.test(l)||p.test(l))return decodeURIComponent(l.substr(RegExp.lastMatch.length));if(c.test(l)||f.test(l))return s(l.substr(RegExp.lastMatch.length));let h=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let c=l.match(/\/\*\s*# sourceMappingURL=/gm);if(!c)return;let f=l.lastIndexOf(c.pop()),d=l.indexOf("*/",f);f>-1&&d>-1&&(this.annotation=this.getAnnotationURL(l.substring(f,d)))}loadFile(l){if(this.root=t(l),n(l))return this.mapFile=l,o(l,"utf-8").toString().trim()}loadMap(l,c){if(c===!1)return!1;if(c){if(typeof c=="string")return c;if(typeof c=="function"){let f=c(l);if(f){let d=this.loadFile(f);if(!d)throw new Error("Unable to load previous source map: "+f.toString());return d}}else{if(c instanceof e)return r.fromSourceMap(c).toString();if(c instanceof r)return c.toString();if(this.isMap(c))return JSON.stringify(c);throw new Error("Unsupported previous source map format: "+c.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return l&&(f=i(t(l),f)),this.loadFile(f)}}}startWith(l,c){return l?l.substr(0,c.length)===c:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return qd=a,a.default=a,qd}var Bd,gv;function Ro(){if(gv)return Bd;gv=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ue,{fileURLToPath:n,pathToFileURL:o}=Ue,{isAbsolute:t,resolve:i}=Ue,{nanoid:s}=x_(),a=Ue,u=Mp(),l=cy(),c=Symbol("fromOffsetCache"),f=!!(e&&r),d=!!(i&&t);class p{constructor(g,v={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,v.from&&(!d||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=i(v.from)),d&&f){let b=new l(this.css,v);if(b.text){this.map=b;let x=b.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,b,x={}){let $,_,y;if(v&&typeof v=="object"){let k=v,O=b;if(typeof k.offset=="number"){let A=this.fromOffset(k.offset);v=A.line,b=A.col}else v=k.line,b=k.column;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);_=A.line,y=A.col}else _=O.line,y=O.column}else if(!b){let k=this.fromOffset(v);v=k.line,b=k.col}let w=this.origin(v,b,_,y);return w?$=new u(g,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):$=new u(g,_===void 0?v:{column:b,line:v},_===void 0?b:{column:y,line:_},this.css,this.file,x.plugin),$.input={column:b,endColumn:y,endLine:_,line:v,source:this.css},this.file&&(o&&($.input.url=o(this.file).toString()),$.input.file=this.file),$}fromOffset(g){let v,b;if(this[c])b=this[c];else{let $=this.css.split(`
109
- `);b=new Array($.length);let _=0;for(let y=0,w=$.length;y<w;y++)b[y]=_,_+=$[y].length+1;this[c]=b}v=b[b.length-1];let x=0;if(g>=v)x=b.length-1;else{let $=b.length-2,_;for(;x<$;)if(_=x+($-x>>1),g<b[_])$=_-1;else if(g>=b[_+1])x=_+1;else{x=_;break}}return{col:g-b[x]+1,line:x+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:i(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,b,x){if(!this.map)return!1;let $=this.map.consumer(),_=$.originalPositionFor({column:v,line:g});if(!_.source)return!1;let y;typeof b=="number"&&(y=$.originalPositionFor({column:x,line:b}));let w;t(_.source)?w=o(_.source):w=new URL(_.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let k={column:_.column,endColumn:y&&y.column,endLine:y&&y.line,line:_.line,url:w.toString()};if(w.protocol==="file:")if(n)k.file=n(w);else throw new Error("file: protocol is not available in this PostCSS build");let O=$.sourceContentFor(_.source);return O&&(k.source=O),k}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}get from(){return this.file||this.id}}return Bd=p,p.default=p,a&&a.registerInput&&a.registerInput(p),Bd}var Jd,vv;function ly(){if(vv)return Jd;vv=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ue,{dirname:n,relative:o,resolve:t,sep:i}=Ue,{pathToFileURL:s}=Ue,a=Ro(),u=!!(e&&r),l=!!(n&&t&&o&&i);class c{constructor(d,p,h,g){this.stringify=d,this.mapOpts=h.map||{},this.root=p,this.opts=h,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let d;this.isInline()?d="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?d=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?d=this.mapOpts.annotation(this.opts.to,this.root):d=this.outputFile()+".map";let p=`
106
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(t){let i;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i}rawIndent(t){if(t.raws.indent)return t.raws.indent;let i;return t.walk(s=>{let a=s.parent;if(a&&a!==t&&a.parent&&a.parent===t&&typeof s.raws.before<"u"){let l=s.raws.before.split(`
107
+ `);return i=l[l.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(t){let i;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(t,i){let s=t[i],a=t.raws[i];return a&&a.value===s?a.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,i){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,i)}}return cp=n,n.default=n,cp}var lp,ey;function Jo(){if(ey)return lp;ey=1;let e=Hy();function r(n,o){new e(o).stringify(n)}return lp=r,r.default=r,lp}var up,ty;function Go(){if(ty)return up;ty=1;let{isClean:e,my:r}=uf(),n=lf(),o=Hy(),t=Jo();function i(a,l){let u=new a.constructor;for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||c==="proxyCache")continue;let m=a[c],p=typeof m;c==="parent"&&p==="object"?l&&(u[c]=l):c==="source"?u[c]=m:Array.isArray(m)?u[c]=m.map(f=>i(f,u)):(p==="object"&&m!==null&&(m=i(m)),u[c]=m)}return u}class s{constructor(l={}){this.raws={},this[e]=!1,this[r]=!0;for(let u in l)if(u==="nodes"){this.nodes=[];for(let c of l[u])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[u]=l[u]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let u=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let u in l)this[u]=l[u];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let u=i(this);for(let c in l)u[c]=l[c];return u}cloneAfter(l={}){let u=this.clone(l);return this.parent.insertAfter(this,u),u}cloneBefore(l={}){let u=this.clone(l);return this.parent.insertBefore(this,u),u}error(l,u={}){if(this.source){let{end:c,start:m}=this.rangeBy(u);return this.source.input.error(l,{column:m.column,line:m.line},{column:c.column,line:c.line},u)}return new n(l)}getProxyProcessor(){return{get(l,u){return u==="proxyOf"?l:u==="root"?()=>l.root().toProxy():l[u]},set(l,u,c){return l[u]===c||(l[u]=c,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,u){let c=this.source.start;if(l.index)c=this.positionInside(l.index,u);else if(l.word){u=this.toString();let m=u.indexOf(l.word);m!==-1&&(c=this.positionInside(m,u))}return c}positionInside(l,u){let c=u||this.toString(),m=this.source.start.column,p=this.source.start.line;for(let f=0;f<l;f++)c[f]===`
108
+ `?(m=1,p+=1):m+=1;return{column:m,line:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let u={column:this.source.start.column,line:this.source.start.line},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(l.word){let m=this.toString(),p=m.indexOf(l.word);p!==-1&&(u=this.positionInside(p,m),c=this.positionInside(p+l.word.length,m))}else l.start?u={column:l.start.column,line:l.start.line}:l.index&&(u=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<u.line||c.line===u.line&&c.column<=u.column)&&(c={column:u.column+1,line:u.line}),{end:c,start:u}}raw(l,u){return new o().raw(this,l,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let u=this,c=!1;for(let m of l)m===this?c=!0:c?(this.parent.insertAfter(u,m),u=m):this.parent.insertBefore(u,m);c||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,u){let c={},m=u==null;u=u||new Map;let p=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let h=this[f];if(Array.isArray(h))c[f]=h.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,u):g);else if(typeof h=="object"&&h.toJSON)c[f]=h.toJSON(null,u);else if(f==="source"){let g=u.get(h.input);g==null&&(g=p,u.set(h.input,p),p++),c[f]={end:h.end,inputId:g,start:h.start}}else c[f]=h}return m&&(c.inputs=[...u.keys()].map(f=>f.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=t){l.stringify&&(l=l.stringify);let u="";return l(this,c=>{u+=c}),u}warn(l,u,c){let m={node:this};for(let p in c)m[p]=c[p];return l.warn(u,m)}get proxyOf(){return this}}return up=s,s.default=s,up}var dp,ry;function Ko(){if(ry)return dp;ry=1;let e=Go();class r extends e{constructor(o){o&&typeof o.value<"u"&&typeof o.value!="string"&&(o={...o,value:String(o.value)}),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return dp=r,r.default=r,dp}var pp,ny;function CS(){if(ny)return pp;ny=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return pp={nanoid:(o=21)=>{let t="",i=o;for(;i--;)t+=e[Math.random()*64|0];return t},customAlphabet:(o,t=21)=>(i=t)=>{let s="",a=i;for(;a--;)s+=o[Math.random()*o.length|0];return s}},pp}var fp,iy;function Xy(){if(iy)return fp;iy=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ue,{existsSync:n,readFileSync:o}=Ue,{dirname:t,join:i}=Ue;function s(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class a{constructor(u,c){if(c.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let m=c.map?c.map.prev:void 0,p=this.loadMap(c.from,m);!this.mapFile&&c.from&&(this.mapFile=c.from),this.mapFile&&(this.root=t(this.mapFile)),p&&(this.text=p)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(u){let c=/^data:application\/json;charset=utf-?8;base64,/,m=/^data:application\/json;base64,/,p=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(p.test(u)||f.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(c.test(u)||m.test(u))return s(u.substr(RegExp.lastMatch.length));let h=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let c=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!c)return;let m=u.lastIndexOf(c.pop()),p=u.indexOf("*/",m);m>-1&&p>-1&&(this.annotation=this.getAnnotationURL(u.substring(m,p)))}loadFile(u){if(this.root=t(u),n(u))return this.mapFile=u,o(u,"utf-8").toString().trim()}loadMap(u,c){if(c===!1)return!1;if(c){if(typeof c=="string")return c;if(typeof c=="function"){let m=c(u);if(m){let p=this.loadFile(m);if(!p)throw new Error("Unable to load previous source map: "+m.toString());return p}}else{if(c instanceof e)return r.fromSourceMap(c).toString();if(c instanceof r)return c.toString();if(this.isMap(c))return JSON.stringify(c);throw new Error("Unsupported previous source map format: "+c.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let m=this.annotation;return u&&(m=i(t(u),m)),this.loadFile(m)}}}startWith(u,c){return u?u.substr(0,c.length)===c:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return fp=a,a.default=a,fp}var mp,oy;function Ho(){if(oy)return mp;oy=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ue,{fileURLToPath:n,pathToFileURL:o}=Ue,{isAbsolute:t,resolve:i}=Ue,{nanoid:s}=CS(),a=Ue,l=lf(),u=Xy(),c=Symbol("fromOffsetCache"),m=!!(e&&r),p=!!(i&&t);class f{constructor(g,v={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,v.from&&(!p||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=i(v.from)),p&&m){let b=new u(this.css,v);if(b.text){this.map=b;let x=b.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,b,x={}){let $,_,y;if(v&&typeof v=="object"){let k=v,O=b;if(typeof k.offset=="number"){let A=this.fromOffset(k.offset);v=A.line,b=A.col}else v=k.line,b=k.column;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);_=A.line,y=A.col}else _=O.line,y=O.column}else if(!b){let k=this.fromOffset(v);v=k.line,b=k.col}let w=this.origin(v,b,_,y);return w?$=new l(g,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):$=new l(g,_===void 0?v:{column:b,line:v},_===void 0?b:{column:y,line:_},this.css,this.file,x.plugin),$.input={column:b,endColumn:y,endLine:_,line:v,source:this.css},this.file&&(o&&($.input.url=o(this.file).toString()),$.input.file=this.file),$}fromOffset(g){let v,b;if(this[c])b=this[c];else{let $=this.css.split(`
109
+ `);b=new Array($.length);let _=0;for(let y=0,w=$.length;y<w;y++)b[y]=_,_+=$[y].length+1;this[c]=b}v=b[b.length-1];let x=0;if(g>=v)x=b.length-1;else{let $=b.length-2,_;for(;x<$;)if(_=x+($-x>>1),g<b[_])$=_-1;else if(g>=b[_+1])x=_+1;else{x=_;break}}return{col:g-b[x]+1,line:x+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:i(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,b,x){if(!this.map)return!1;let $=this.map.consumer(),_=$.originalPositionFor({column:v,line:g});if(!_.source)return!1;let y;typeof b=="number"&&(y=$.originalPositionFor({column:x,line:b}));let w;t(_.source)?w=o(_.source):w=new URL(_.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let k={column:_.column,endColumn:y&&y.column,endLine:y&&y.line,line:_.line,url:w.toString()};if(w.protocol==="file:")if(n)k.file=n(w);else throw new Error("file: protocol is not available in this PostCSS build");let O=$.sourceContentFor(_.source);return O&&(k.source=O),k}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}get from(){return this.file||this.id}}return mp=f,f.default=f,a&&a.registerInput&&a.registerInput(f),mp}var hp,sy;function Yy(){if(sy)return hp;sy=1;let{SourceMapConsumer:e,SourceMapGenerator:r}=Ue,{dirname:n,relative:o,resolve:t,sep:i}=Ue,{pathToFileURL:s}=Ue,a=Ho(),l=!!(e&&r),u=!!(n&&t&&o&&i);class c{constructor(p,f,h,g){this.stringify=p,this.mapOpts=h.map||{},this.root=f,this.opts=h,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let p;this.isInline()?p="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?p=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?p=this.mapOpts.annotation(this.opts.to,this.root):p=this.outputFile()+".map";let f=`
110
110
  `;this.css.includes(`\r
111
- `)&&(p=`\r
112
- `),this.css+=p+"/*# sourceMappingURL="+d+" */"}applyPrevMaps(){for(let d of this.previous()){let p=this.toUrl(this.path(d.file)),h=d.root||n(d.file),g;this.mapOpts.sourcesContent===!1?(g=new e(d.text),g.sourcesContent&&(g.sourcesContent=null)):g=d.consumer(),this.map.applySourceMap(g,p,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let d;for(let p=this.root.nodes.length-1;p>=0;p--)d=this.root.nodes[p],d.type==="comment"&&d.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(p)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&u&&this.isMap())return this.generateMap();{let d="";return this.stringify(this.root,p=>{d+=p}),[d]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let d=this.previous()[0].consumer();d.file=this.outputFile(),this.map=r.fromSourceMap(d,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let d=1,p=1,h="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},v,b;this.stringify(this.root,(x,$,_)=>{if(this.css+=x,$&&_!=="end"&&(g.generated.line=d,g.generated.column=p-1,$.source&&$.source.start?(g.source=this.sourcePath($),g.original.line=$.source.start.line,g.original.column=$.source.start.column-1,this.map.addMapping(g)):(g.source=h,g.original.line=1,g.original.column=0,this.map.addMapping(g))),v=x.match(/\n/g),v?(d+=v.length,b=x.lastIndexOf(`
113
- `),p=x.length-b):p+=x.length,$&&_!=="start"){let y=$.parent||{raws:{}};(!($.type==="decl"||$.type==="atrule"&&!$.nodes)||$!==y.last||y.raws.semicolon)&&($.source&&$.source.end?(g.source=this.sourcePath($),g.original.line=$.source.end.line,g.original.column=$.source.end.column-1,g.generated.line=d,g.generated.column=p-2,this.map.addMapping(g)):(g.source=h,g.original.line=1,g.original.column=0,g.generated.line=d,g.generated.column=p-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(d=>d.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let d=this.mapOpts.annotation;return typeof d<"u"&&d!==!0?!1:this.previous().length?this.previous().some(p=>p.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(d=>d.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(d){if(this.mapOpts.absolute||d.charCodeAt(0)===60||/^\w+:\/\//.test(d))return d;let p=this.memoizedPaths.get(d);if(p)return p;let h=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=n(t(h,this.mapOpts.annotation)));let g=o(h,d);return this.memoizedPaths.set(d,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(d=>{if(d.source&&d.source.input.map){let p=d.source.input.map;this.previousMaps.includes(p)||this.previousMaps.push(p)}});else{let d=new a(this.originalCSS,this.opts);d.map&&this.previousMaps.push(d.map)}return this.previousMaps}setSourcesContent(){let d={};if(this.root)this.root.walk(p=>{if(p.source){let h=p.source.input.from;if(h&&!d[h]){d[h]=!0;let g=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(g,p.source.input.css)}}});else if(this.css){let p=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(p,this.css)}}sourcePath(d){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(d.source.input.from):this.toUrl(this.path(d.source.input.from))}toBase64(d){return Buffer?Buffer.from(d).toString("base64"):window.btoa(unescape(encodeURIComponent(d)))}toFileUrl(d){let p=this.memoizedFileURLs.get(d);if(p)return p;if(s){let h=s(d).toString();return this.memoizedFileURLs.set(d,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(d){let p=this.memoizedURLs.get(d);if(p)return p;i==="\\"&&(d=d.replace(/\\/g,"/"));let h=encodeURI(d).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(d,h),h}}return Jd=c,Jd}var Wd,yv;function To(){if(yv)return Wd;yv=1;let e=Do();class r extends e{constructor(o){super(o),this.type="comment"}}return Wd=r,r.default=r,Wd}var Gd,bv;function Pt(){if(bv)return Gd;bv=1;let{isClean:e,my:r}=Lp(),n=Po(),o=To(),t=Do(),i,s,a,u;function l(d){return d.map(p=>(p.nodes&&(p.nodes=l(p.nodes)),delete p.source,p))}function c(d){if(d[e]=!1,d.proxyOf.nodes)for(let p of d.proxyOf.nodes)c(p)}class f extends t{append(...p){for(let h of p){let g=this.normalize(h,this.last);for(let v of g)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(p){if(super.cleanRaws(p),this.nodes)for(let h of this.nodes)h.cleanRaws(p)}each(p){if(!this.proxyOf.nodes)return;let h=this.getIterator(),g,v;for(;this.indexes[h]<this.proxyOf.nodes.length&&(g=this.indexes[h],v=p(this.proxyOf.nodes[g],g),v!==!1);)this.indexes[h]+=1;return delete this.indexes[h],v}every(p){return this.nodes.every(p)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach;return this.indexes[p]=0,p}getProxyProcessor(){return{get(p,h){return h==="proxyOf"?p:p[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...g)=>p[h](...g.map(v=>typeof v=="function"?(b,x)=>v(b.toProxy(),x):v)):h==="every"||h==="some"?g=>p[h]((v,...b)=>g(v.toProxy(),...b)):h==="root"?()=>p.root().toProxy():h==="nodes"?p.nodes.map(g=>g.toProxy()):h==="first"||h==="last"?p[h].toProxy():p[h]:p[h]},set(p,h,g){return p[h]===g||(p[h]=g,(h==="name"||h==="params"||h==="selector")&&p.markDirty()),!0}}}index(p){return typeof p=="number"?p:(p.proxyOf&&(p=p.proxyOf),this.proxyOf.nodes.indexOf(p))}insertAfter(p,h){let g=this.index(p),v=this.normalize(h,this.proxyOf.nodes[g]).reverse();g=this.index(p);for(let x of v)this.proxyOf.nodes.splice(g+1,0,x);let b;for(let x in this.indexes)b=this.indexes[x],g<b&&(this.indexes[x]=b+v.length);return this.markDirty(),this}insertBefore(p,h){let g=this.index(p),v=g===0?"prepend":!1,b=this.normalize(h,this.proxyOf.nodes[g],v).reverse();g=this.index(p);for(let $ of b)this.proxyOf.nodes.splice(g,0,$);let x;for(let $ in this.indexes)x=this.indexes[$],g<=x&&(this.indexes[$]=x+b.length);return this.markDirty(),this}normalize(p,h){if(typeof p=="string")p=l(i(p).nodes);else if(typeof p>"u")p=[];else if(Array.isArray(p)){p=p.slice(0);for(let v of p)v.parent&&v.parent.removeChild(v,"ignore")}else if(p.type==="root"&&this.type!=="document"){p=p.nodes.slice(0);for(let v of p)v.parent&&v.parent.removeChild(v,"ignore")}else if(p.type)p=[p];else if(p.prop){if(typeof p.value>"u")throw new Error("Value field is missed in node creation");typeof p.value!="string"&&(p.value=String(p.value)),p=[new n(p)]}else if(p.selector)p=[new s(p)];else if(p.name)p=[new a(p)];else if(p.text)p=[new o(p)];else throw new Error("Unknown node type in node creation");return p.map(v=>(v[r]||f.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[e]&&c(v),typeof v.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(v.raws.before=h.raws.before.replace(/\S/g,"")),v.parent=this.proxyOf,v))}prepend(...p){p=p.reverse();for(let h of p){let g=this.normalize(h,this.first,"prepend").reverse();for(let v of g)this.proxyOf.nodes.unshift(v);for(let v in this.indexes)this.indexes[v]=this.indexes[v]+g.length}return this.markDirty(),this}push(p){return p.parent=this,this.proxyOf.nodes.push(p),this}removeAll(){for(let p of this.proxyOf.nodes)p.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(p){p=this.index(p),this.proxyOf.nodes[p].parent=void 0,this.proxyOf.nodes.splice(p,1);let h;for(let g in this.indexes)h=this.indexes[g],h>=p&&(this.indexes[g]=h-1);return this.markDirty(),this}replaceValues(p,h,g){return g||(g=h,h={}),this.walkDecls(v=>{h.props&&!h.props.includes(v.prop)||h.fast&&!v.value.includes(h.fast)||(v.value=v.value.replace(p,g))}),this.markDirty(),this}some(p){return this.nodes.some(p)}walk(p){return this.each((h,g)=>{let v;try{v=p(h,g)}catch(b){throw h.addToError(b)}return v!==!1&&h.walk&&(v=h.walk(p)),v})}walkAtRules(p,h){return h?p instanceof RegExp?this.walk((g,v)=>{if(g.type==="atrule"&&p.test(g.name))return h(g,v)}):this.walk((g,v)=>{if(g.type==="atrule"&&g.name===p)return h(g,v)}):(h=p,this.walk((g,v)=>{if(g.type==="atrule")return h(g,v)}))}walkComments(p){return this.walk((h,g)=>{if(h.type==="comment")return p(h,g)})}walkDecls(p,h){return h?p instanceof RegExp?this.walk((g,v)=>{if(g.type==="decl"&&p.test(g.prop))return h(g,v)}):this.walk((g,v)=>{if(g.type==="decl"&&g.prop===p)return h(g,v)}):(h=p,this.walk((g,v)=>{if(g.type==="decl")return h(g,v)}))}walkRules(p,h){return h?p instanceof RegExp?this.walk((g,v)=>{if(g.type==="rule"&&p.test(g.selector))return h(g,v)}):this.walk((g,v)=>{if(g.type==="rule"&&g.selector===p)return h(g,v)}):(h=p,this.walk((g,v)=>{if(g.type==="rule")return h(g,v)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return f.registerParse=d=>{i=d},f.registerRule=d=>{s=d},f.registerAtRule=d=>{a=d},f.registerRoot=d=>{u=d},Gd=f,f.default=f,f.rebuild=d=>{d.type==="atrule"?Object.setPrototypeOf(d,a.prototype):d.type==="rule"?Object.setPrototypeOf(d,s.prototype):d.type==="decl"?Object.setPrototypeOf(d,n.prototype):d.type==="comment"?Object.setPrototypeOf(d,o.prototype):d.type==="root"&&Object.setPrototypeOf(d,u.prototype),d[r]=!0,d.nodes&&d.nodes.forEach(p=>{f.rebuild(p)})},Gd}var Kd,xv;function Zp(){if(xv)return Kd;xv=1;let e=Pt(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Kd=o,o.default=o,Kd}var Xd,wv;function uy(){if(wv)return Xd;wv=1;let e={};return Xd=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},Xd}var Hd,$v;function dy(){if($v)return Hd;$v=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Hd=e,e.default=e,Hd}var Yd,_v;function Fp(){if(_v)return Yd;_v=1;let e=dy();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return Yd=r,r.default=r,Yd}var Qd,Sv;function w_(){if(Sv)return Qd;Sv=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,u=13,l=91,c=93,f=40,d=41,p=123,h=125,g=59,v=42,b=58,x=64,$=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Qd=function(O,A={}){let N=O.css.valueOf(),X=A.ignoreErrors,M,E,ht,Je,De,J,me,Qe,ue,re,Sr=N.length,j=0,gt=[],We=[];function Vo(){return j}function vt(Ie){throw O.error("Unclosed "+Ie,j)}function qo(){return We.length===0&&j>=Sr}function Bo(Ie){if(We.length)return We.pop();if(j>=Sr)return;let yt=Ie?Ie.ignoreUnclosed:!1;switch(M=N.charCodeAt(j),M){case t:case i:case a:case u:case s:{E=j;do E+=1,M=N.charCodeAt(E);while(M===i||M===t||M===a||M===u||M===s);re=["space",N.slice(j,E)],j=E-1;break}case l:case c:case p:case h:case b:case g:case d:{let kr=String.fromCharCode(M);re=[kr,kr,j];break}case f:{if(Qe=gt.length?gt.pop()[1]:"",ue=N.charCodeAt(j+1),Qe==="url"&&ue!==e&&ue!==r&&ue!==i&&ue!==t&&ue!==a&&ue!==s&&ue!==u){E=j;do{if(J=!1,E=N.indexOf(")",E+1),E===-1)if(X||yt){E=j;break}else vt("bracket");for(me=E;N.charCodeAt(me-1)===n;)me-=1,J=!J}while(J);re=["brackets",N.slice(j,E+1),j,E],j=E}else E=N.indexOf(")",j+1),Je=N.slice(j,E+1),E===-1||y.test(Je)?re=["(","(",j]:(re=["brackets",Je,j,E],j=E);break}case e:case r:{ht=M===e?"'":'"',E=j;do{if(J=!1,E=N.indexOf(ht,E+1),E===-1)if(X||yt){E=j+1;break}else vt("string");for(me=E;N.charCodeAt(me-1)===n;)me-=1,J=!J}while(J);re=["string",N.slice(j,E+1),j,E],j=E;break}case x:{$.lastIndex=j+1,$.test(N),$.lastIndex===0?E=N.length-1:E=$.lastIndex-2,re=["at-word",N.slice(j,E+1),j,E],j=E;break}case n:{for(E=j,De=!0;N.charCodeAt(E+1)===n;)E+=1,De=!De;if(M=N.charCodeAt(E+1),De&&M!==o&&M!==i&&M!==t&&M!==a&&M!==u&&M!==s&&(E+=1,w.test(N.charAt(E)))){for(;w.test(N.charAt(E+1));)E+=1;N.charCodeAt(E+1)===i&&(E+=1)}re=["word",N.slice(j,E+1),j,E],j=E;break}default:{M===o&&N.charCodeAt(j+1)===v?(E=N.indexOf("*/",j+2)+1,E===0&&(X||yt?E=N.length:vt("comment")),re=["comment",N.slice(j,E+1),j,E],j=E):(_.lastIndex=j+1,_.test(N),_.lastIndex===0?E=N.length-1:E=_.lastIndex-2,re=["word",N.slice(j,E+1),j,E],gt.push(re),j=E);break}}return j++,re}function Jo(Ie){We.push(Ie)}return{back:Jo,endOfFile:qo,nextToken:Bo,position:Vo}},Qd}var ep,kv;function Vp(){if(kv)return ep;kv=1;let e=Pt();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return ep=r,r.default=r,e.registerAtRule(r),ep}var tp,Iv;function pn(){if(Iv)return tp;Iv=1;let e=Pt(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let u=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let l of u)l.raws.before=s.raws.before}return u}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},tp=o,o.default=o,e.registerRoot(o),tp}var rp,zv;function py(){if(zv)return rp;zv=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
114
- `," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,u=!1,l="",c=!1;for(let f of r)c?c=!1:f==="\\"?c=!0:u?f===l&&(u=!1):f==='"'||f==="'"?(u=!0,l=f):f==="("?a+=1:f===")"?a>0&&(a-=1):a===0&&n.includes(f)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=f;return(o||i!=="")&&t.push(i.trim()),t}};return rp=e,e.default=e,rp}var np,Ov;function qp(){if(Ov)return np;Ov=1;let e=Pt(),r=py();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return np=n,n.default=n,e.registerRule(n),np}var ip,Ev;function $_(){if(Ev)return ip;Ev=1;let e=Po(),r=w_(),n=To(),o=Vp(),t=pn(),i=qp(),s={empty:!0,space:!0};function a(l){for(let c=l.length-1;c>=0;c--){let f=l[c],d=f[3]||f[2];if(d)return d}}class u{constructor(c){this.input=c,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:c,start:{column:1,line:1,offset:0}}}atrule(c){let f=new o;f.name=c[1].slice(1),f.name===""&&this.unnamedAtrule(f,c),this.init(f,c[2]);let d,p,h,g=!1,v=!1,b=[],x=[];for(;!this.tokenizer.endOfFile();){if(c=this.tokenizer.nextToken(),d=c[0],d==="("||d==="["?x.push(d==="("?")":"]"):d==="{"&&x.length>0?x.push("}"):d===x[x.length-1]&&x.pop(),x.length===0)if(d===";"){f.source.end=this.getPosition(c[2]),f.source.end.offset++,this.semicolon=!0;break}else if(d==="{"){v=!0;break}else if(d==="}"){if(b.length>0){for(h=b.length-1,p=b[h];p&&p[0]==="space";)p=b[--h];p&&(f.source.end=this.getPosition(p[3]||p[2]),f.source.end.offset++)}this.end(c);break}else b.push(c);else b.push(c);if(this.tokenizer.endOfFile()){g=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(f.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(f,"params",b),g&&(c=b[b.length-1],f.source.end=this.getPosition(c[3]||c[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),v&&(f.nodes=[],this.current=f)}checkMissedSemicolon(c){let f=this.colon(c);if(f===!1)return;let d=0,p;for(let h=f-1;h>=0&&(p=c[h],!(p[0]!=="space"&&(d+=1,d===2)));h--);throw this.input.error("Missed semicolon",p[0]==="word"?p[3]+1:p[2])}colon(c){let f=0,d,p,h;for(let[g,v]of c.entries()){if(d=v,p=d[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!h)this.doubleColon(d);else{if(h[0]==="word"&&h[1]==="progid")continue;return g}h=d}return!1}comment(c){let f=new n;this.init(f,c[2]),f.source.end=this.getPosition(c[3]||c[2]),f.source.end.offset++;let d=c[1].slice(2,-2);if(/^\s*$/.test(d))f.text="",f.raws.left=d,f.raws.right="";else{let p=d.match(/^(\s*)([^]*\S)(\s*)$/);f.text=p[2],f.raws.left=p[1],f.raws.right=p[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(c,f){let d=new e;this.init(d,c[0][2]);let p=c[c.length-1];for(p[0]===";"&&(this.semicolon=!0,c.pop()),d.source.end=this.getPosition(p[3]||p[2]||a(c)),d.source.end.offset++;c[0][0]!=="word";)c.length===1&&this.unknownWord(c),d.raws.before+=c.shift()[1];for(d.source.start=this.getPosition(c[0][2]),d.prop="";c.length;){let x=c[0][0];if(x===":"||x==="space"||x==="comment")break;d.prop+=c.shift()[1]}d.raws.between="";let h;for(;c.length;)if(h=c.shift(),h[0]===":"){d.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),d.raws.between+=h[1];(d.prop[0]==="_"||d.prop[0]==="*")&&(d.raws.before+=d.prop[0],d.prop=d.prop.slice(1));let g=[],v;for(;c.length&&(v=c[0][0],!(v!=="space"&&v!=="comment"));)g.push(c.shift());this.precheckMissedSemicolon(c);for(let x=c.length-1;x>=0;x--){if(h=c[x],h[1].toLowerCase()==="!important"){d.important=!0;let $=this.stringFrom(c,x);$=this.spacesFromEnd(c)+$,$!==" !important"&&(d.raws.important=$);break}else if(h[1].toLowerCase()==="important"){let $=c.slice(0),_="";for(let y=x;y>0;y--){let w=$[y][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=$.pop()[1]+_}_.trim().indexOf("!")===0&&(d.important=!0,d.raws.important=_,c=$)}if(h[0]!=="space"&&h[0]!=="comment")break}c.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(d.raws.between+=g.map(x=>x[1]).join(""),g=[]),this.raw(d,"value",g.concat(c),f),d.value.includes(":")&&!f&&this.checkMissedSemicolon(c)}doubleColon(c){throw this.input.error("Double colon",{offset:c[2]},{offset:c[2]+c[1].length})}emptyRule(c){let f=new i;this.init(f,c[2]),f.selector="",f.raws.between="",this.current=f}end(c){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(c[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(c)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(c){if(this.spaces+=c[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(c){let f=this.input.fromOffset(c);return{column:f.col,line:f.line,offset:c}}init(c,f){this.current.push(c),c.source={input:this.input,start:this.getPosition(f)},c.raws.before=this.spaces,this.spaces="",c.type!=="comment"&&(this.semicolon=!1)}other(c){let f=!1,d=null,p=!1,h=null,g=[],v=c[1].startsWith("--"),b=[],x=c;for(;x;){if(d=x[0],b.push(x),d==="("||d==="[")h||(h=x),g.push(d==="("?")":"]");else if(v&&p&&d==="{")h||(h=x),g.push("}");else if(g.length===0)if(d===";")if(p){this.decl(b,v);return}else break;else if(d==="{"){this.rule(b);return}else if(d==="}"){this.tokenizer.back(b.pop()),f=!0;break}else d===":"&&(p=!0);else d===g[g.length-1]&&(g.pop(),g.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),g.length>0&&this.unclosedBracket(h),f&&p){if(!v)for(;b.length&&(x=b[b.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,v)}else this.unknownWord(b)}parse(){let c;for(;!this.tokenizer.endOfFile();)switch(c=this.tokenizer.nextToken(),c[0]){case"space":this.spaces+=c[1];break;case";":this.freeSemicolon(c);break;case"}":this.end(c);break;case"comment":this.comment(c);break;case"at-word":this.atrule(c);break;case"{":this.emptyRule(c);break;default:this.other(c);break}this.endFile()}precheckMissedSemicolon(){}raw(c,f,d,p){let h,g,v=d.length,b="",x=!0,$,_;for(let y=0;y<v;y+=1)h=d[y],g=h[0],g==="space"&&y===v-1&&!p?x=!1:g==="comment"?(_=d[y-1]?d[y-1][0]:"empty",$=d[y+1]?d[y+1][0]:"empty",!s[_]&&!s[$]?b.slice(-1)===","?x=!1:b+=h[1]:x=!1):b+=h[1];if(!x){let y=d.reduce((w,k)=>w+k[1],"");c.raws[f]={raw:y,value:b}}c[f]=b}rule(c){c.pop();let f=new i;this.init(f,c[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(c),this.raw(f,"selector",c),this.current=f}spacesAndCommentsFromEnd(c){let f,d="";for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)d=c.pop()[1]+d;return d}spacesAndCommentsFromStart(c){let f,d="";for(;c.length&&(f=c[0][0],!(f!=="space"&&f!=="comment"));)d+=c.shift()[1];return d}spacesFromEnd(c){let f,d="";for(;c.length&&(f=c[c.length-1][0],f==="space");)d=c.pop()[1]+d;return d}stringFrom(c,f){let d="";for(let p=f;p<c.length;p++)d+=c[p][1];return c.splice(f,c.length-f),d}unclosedBlock(){let c=this.current.source.start;throw this.input.error("Unclosed block",c.line,c.column)}unclosedBracket(c){throw this.input.error("Unclosed bracket",{offset:c[2]},{offset:c[2]+1})}unexpectedClose(c){throw this.input.error("Unexpected }",{offset:c[2]},{offset:c[2]+1})}unknownWord(c){throw this.input.error("Unknown word",{offset:c[0][2]},{offset:c[0][2]+c[0][1].length})}unnamedAtrule(c,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return ip=u,ip}var op,Nv;function Bp(){if(Nv)return op;Nv=1;let e=Pt(),r=$_(),n=Ro();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(u){throw u}return a.root}return op=o,o.default=o,e.registerParse(o),op}var sp,Dv;function fy(){if(Dv)return sp;Dv=1;let{isClean:e,my:r}=Lp(),n=ly(),o=No(),t=Pt(),i=Zp(),s=uy(),a=Fp(),u=Bp(),l=pn(),c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},d={Once:!0,postcssPlugin:!0,prepare:!0},p=0;function h(_){return typeof _=="object"&&typeof _.then=="function"}function g(_){let y=!1,w=c[_.type];return _.type==="decl"?y=_.prop.toLowerCase():_.type==="atrule"&&(y=_.name.toLowerCase()),y&&_.append?[w,w+"-"+y,p,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:_.append?[w,p,w+"Exit"]:[w,w+"Exit"]}function v(_){let y;return _.type==="document"?y=["Document",p,"DocumentExit"]:_.type==="root"?y=["Root",p,"RootExit"]:y=g(_),{eventIndex:0,events:y,iterator:0,node:_,visitorIndex:0,visitors:[]}}function b(_){return _[e]=!1,_.nodes&&_.nodes.forEach(y=>b(y)),_}let x={};class ${constructor(y,w,k){this.stringified=!1,this.processed=!1;let O;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))O=b(w);else if(w instanceof $||w instanceof a)O=b(w.root),w.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=w.map);else{let A=u;k.syntax&&(A=k.syntax.parse),k.parser&&(A=k.parser),A.parse&&(A=A.parse);try{O=A(w,k)}catch(N){this.processed=!0,this.error=N}O&&!O[r]&&t.rebuild(O)}this.result=new a(y,O,k),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?{...A,...A.prepare(this.result)}:A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let k=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=k.postcssPlugin,y.setMessage()):k.postcssVersion}catch(O){console&&console.error&&console.error(O)}return y}prepareVisitors(){this.listeners={};let y=(w,k,O)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([w,O])};for(let w of this.plugins)if(typeof w=="object")for(let k in w){if(!f[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[k])if(typeof w[k]=="object")for(let O in w[k])O==="*"?y(w,k,w[k][O]):y(w,k+"-"+O.toLowerCase(),w[k][O]);else typeof w[k]=="function"&&y(w,k,w[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],k=this.runOnRoot(w);if(h(k))try{await k}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[v(y)];for(;w.length>0;){let k=this.visitTick(w);if(h(k))try{await k}catch(O){let A=w[w.length-1].node;throw this.handleError(O,A)}}}if(this.listeners.OnceExit)for(let[w,k]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let O=y.nodes.map(A=>k(A,this.helpers));await Promise.all(O)}else await k(y,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(k=>y.Once(k,this.helpers));return h(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=o;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let O=new n(w,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[k,O]of y){this.result.lastPlugin=k;let A;try{A=O(w,this.helpers)}catch(N){throw this.handleError(N,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:k,visitors:O}=w;if(k.type!=="root"&&k.type!=="document"&&!k.parent){y.pop();return}if(O.length>0&&w.visitorIndex<O.length){let[N,X]=O[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===O.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=N;try{return X(k.toProxy(),this.helpers)}catch(M){throw this.handleError(M,k)}}if(w.iterator!==0){let N=w.iterator,X;for(;X=k.nodes[k.indexes[N]];)if(k.indexes[N]+=1,!X[e]){X[e]=!0,y.push(v(X));return}w.iterator=0,delete k.indexes[N]}let A=w.events;for(;w.eventIndex<A.length;){let N=A[w.eventIndex];if(w.eventIndex+=1,N===p){k.nodes&&k.nodes.length&&(k[e]=!0,w.iterator=k.getIterator());return}else if(this.listeners[N]){w.visitors=this.listeners[N];return}}y.pop()}walkSync(y){y[e]=!0;let w=g(y);for(let k of w)if(k===p)y.nodes&&y.each(O=>{O[e]||this.walkSync(O)});else{let O=this.listeners[k];if(O&&this.visitSync(O,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return $.registerPostcss=_=>{x=_},sp=$,$.default=$,l.registerLazyResult($),i.registerLazyResult($),sp}var ap,Pv;function __(){if(Pv)return ap;Pv=1;let e=ly(),r=No(),n=uy(),o=Bp(),t=Fp();class i{constructor(a,u,l){u=u.toString(),this.stringified=!1,this._processor=a,this._css=u,this._opts=l,this._map=void 0;let c,f=r;this.result=new t(this._processor,c,this._opts),this.result.css=u;let d=this;Object.defineProperty(this.result,"root",{get(){return d.root}});let p=new e(f,c,this._opts,u);if(p.isMap()){let[h,g]=p.generate();h&&(this.result.css=h),g&&(this.result.map=g)}else p.clearAnnotation(),this.result.css=p.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,u){return this.async().then(a,u)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,u=o;try{a=u(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return ap=i,i.default=i,ap}var cp,Rv;function S_(){if(Rv)return cp;Rv=1;let e=__(),r=fy(),n=Zp(),o=pn();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let u of s)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))a=a.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)a.push(u);else if(typeof u=="function")a.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return cp=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),cp}var lp,Tv;function k_(){if(Tv)return lp;Tv=1;let e=Po(),r=cy(),n=To(),o=Vp(),t=Ro(),i=pn(),s=qp();function a(u,l){if(Array.isArray(u))return u.map(d=>a(d));let{inputs:c,...f}=u;if(c){l=[];for(let d of c){let p={...d,__proto__:t.prototype};p.map&&(p.map={...p.map,__proto__:r.prototype}),l.push(p)}}if(f.nodes&&(f.nodes=u.nodes.map(d=>a(d,l))),f.source){let{inputId:d,...p}=f.source;f.source=p,d!=null&&(f.source.input=l[d])}if(f.type==="root")return new i(f);if(f.type==="decl")return new e(f);if(f.type==="rule")return new s(f);if(f.type==="comment")return new n(f);if(f.type==="atrule")return new o(f);throw new Error("Unknown node type: "+u.type)}return lp=a,a.default=a,lp}var up,jv;function I_(){if(jv)return up;jv=1;let e=Mp(),r=Po(),n=fy(),o=Pt(),t=S_(),i=No(),s=k_(),a=Zp(),u=dy(),l=To(),c=Vp(),f=Fp(),d=Ro(),p=Bp(),h=py(),g=qp(),v=pn(),b=Do();function x(...$){return $.length===1&&Array.isArray($[0])&&($=$[0]),new t($)}return x.plugin=function(_,y){let w=!1;function k(...A){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
111
+ `)&&(f=`\r
112
+ `),this.css+=f+"/*# sourceMappingURL="+p+" */"}applyPrevMaps(){for(let p of this.previous()){let f=this.toUrl(this.path(p.file)),h=p.root||n(p.file),g;this.mapOpts.sourcesContent===!1?(g=new e(p.text),g.sourcesContent&&(g.sourcesContent=null)):g=p.consumer(),this.map.applySourceMap(g,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let p;for(let f=this.root.nodes.length-1;f>=0;f--)p=this.root.nodes[f],p.type==="comment"&&p.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&l&&this.isMap())return this.generateMap();{let p="";return this.stringify(this.root,f=>{p+=f}),[p]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let p=this.previous()[0].consumer();p.file=this.outputFile(),this.map=r.fromSourceMap(p,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let p=1,f=1,h="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},v,b;this.stringify(this.root,(x,$,_)=>{if(this.css+=x,$&&_!=="end"&&(g.generated.line=p,g.generated.column=f-1,$.source&&$.source.start?(g.source=this.sourcePath($),g.original.line=$.source.start.line,g.original.column=$.source.start.column-1,this.map.addMapping(g)):(g.source=h,g.original.line=1,g.original.column=0,this.map.addMapping(g))),v=x.match(/\n/g),v?(p+=v.length,b=x.lastIndexOf(`
113
+ `),f=x.length-b):f+=x.length,$&&_!=="start"){let y=$.parent||{raws:{}};(!($.type==="decl"||$.type==="atrule"&&!$.nodes)||$!==y.last||y.raws.semicolon)&&($.source&&$.source.end?(g.source=this.sourcePath($),g.original.line=$.source.end.line,g.original.column=$.source.end.column-1,g.generated.line=p,g.generated.column=f-2,this.map.addMapping(g)):(g.source=h,g.original.line=1,g.original.column=0,g.generated.line=p,g.generated.column=f-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(p=>p.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let p=this.mapOpts.annotation;return typeof p<"u"&&p!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(p=>p.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(p){if(this.mapOpts.absolute||p.charCodeAt(0)===60||/^\w+:\/\//.test(p))return p;let f=this.memoizedPaths.get(p);if(f)return f;let h=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=n(t(h,this.mapOpts.annotation)));let g=o(h,p);return this.memoizedPaths.set(p,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(p=>{if(p.source&&p.source.input.map){let f=p.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let p=new a(this.originalCSS,this.opts);p.map&&this.previousMaps.push(p.map)}return this.previousMaps}setSourcesContent(){let p={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!p[h]){p[h]=!0;let g=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(g,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(p){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(p.source.input.from):this.toUrl(this.path(p.source.input.from))}toBase64(p){return Buffer?Buffer.from(p).toString("base64"):window.btoa(unescape(encodeURIComponent(p)))}toFileUrl(p){let f=this.memoizedFileURLs.get(p);if(f)return f;if(s){let h=s(p).toString();return this.memoizedFileURLs.set(p,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(p){let f=this.memoizedURLs.get(p);if(f)return f;i==="\\"&&(p=p.replace(/\\/g,"/"));let h=encodeURI(p).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(p,h),h}}return hp=c,hp}var gp,ay;function Xo(){if(ay)return gp;ay=1;let e=Go();class r extends e{constructor(o){super(o),this.type="comment"}}return gp=r,r.default=r,gp}var vp,cy;function Rt(){if(cy)return vp;cy=1;let{isClean:e,my:r}=uf(),n=Ko(),o=Xo(),t=Go(),i,s,a,l;function u(p){return p.map(f=>(f.nodes&&(f.nodes=u(f.nodes)),delete f.source,f))}function c(p){if(p[e]=!1,p.proxyOf.nodes)for(let f of p.proxyOf.nodes)c(f)}class m extends t{append(...f){for(let h of f){let g=this.normalize(h,this.last);for(let v of g)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),g,v;for(;this.indexes[h]<this.proxyOf.nodes.length&&(g=this.indexes[h],v=f(this.proxyOf.nodes[g],g),v!==!1);)this.indexes[h]+=1;return delete this.indexes[h],v}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...g)=>f[h](...g.map(v=>typeof v=="function"?(b,x)=>v(b.toProxy(),x):v)):h==="every"||h==="some"?g=>f[h]((v,...b)=>g(v.toProxy(),...b)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(g=>g.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,g){return f[h]===g||(f[h]=g,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let g=this.index(f),v=this.normalize(h,this.proxyOf.nodes[g]).reverse();g=this.index(f);for(let x of v)this.proxyOf.nodes.splice(g+1,0,x);let b;for(let x in this.indexes)b=this.indexes[x],g<b&&(this.indexes[x]=b+v.length);return this.markDirty(),this}insertBefore(f,h){let g=this.index(f),v=g===0?"prepend":!1,b=this.normalize(h,this.proxyOf.nodes[g],v).reverse();g=this.index(f);for(let $ of b)this.proxyOf.nodes.splice(g,0,$);let x;for(let $ in this.indexes)x=this.indexes[$],g<=x&&(this.indexes[$]=x+b.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=u(i(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let v of f)v.parent&&v.parent.removeChild(v,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let v of f)v.parent&&v.parent.removeChild(v,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new n(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new a(f)];else if(f.text)f=[new o(f)];else throw new Error("Unknown node type in node creation");return f.map(v=>(v[r]||m.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[e]&&c(v),typeof v.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(v.raws.before=h.raws.before.replace(/\S/g,"")),v.parent=this.proxyOf,v))}prepend(...f){f=f.reverse();for(let h of f){let g=this.normalize(h,this.first,"prepend").reverse();for(let v of g)this.proxyOf.nodes.unshift(v);for(let v in this.indexes)this.indexes[v]=this.indexes[v]+g.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let g in this.indexes)h=this.indexes[g],h>=f&&(this.indexes[g]=h-1);return this.markDirty(),this}replaceValues(f,h,g){return g||(g=h,h={}),this.walkDecls(v=>{h.props&&!h.props.includes(v.prop)||h.fast&&!v.value.includes(h.fast)||(v.value=v.value.replace(f,g))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,g)=>{let v;try{v=f(h,g)}catch(b){throw h.addToError(b)}return v!==!1&&h.walk&&(v=h.walk(f)),v})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((g,v)=>{if(g.type==="atrule"&&f.test(g.name))return h(g,v)}):this.walk((g,v)=>{if(g.type==="atrule"&&g.name===f)return h(g,v)}):(h=f,this.walk((g,v)=>{if(g.type==="atrule")return h(g,v)}))}walkComments(f){return this.walk((h,g)=>{if(h.type==="comment")return f(h,g)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((g,v)=>{if(g.type==="decl"&&f.test(g.prop))return h(g,v)}):this.walk((g,v)=>{if(g.type==="decl"&&g.prop===f)return h(g,v)}):(h=f,this.walk((g,v)=>{if(g.type==="decl")return h(g,v)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((g,v)=>{if(g.type==="rule"&&f.test(g.selector))return h(g,v)}):this.walk((g,v)=>{if(g.type==="rule"&&g.selector===f)return h(g,v)}):(h=f,this.walk((g,v)=>{if(g.type==="rule")return h(g,v)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return m.registerParse=p=>{i=p},m.registerRule=p=>{s=p},m.registerAtRule=p=>{a=p},m.registerRoot=p=>{l=p},vp=m,m.default=m,m.rebuild=p=>{p.type==="atrule"?Object.setPrototypeOf(p,a.prototype):p.type==="rule"?Object.setPrototypeOf(p,s.prototype):p.type==="decl"?Object.setPrototypeOf(p,n.prototype):p.type==="comment"?Object.setPrototypeOf(p,o.prototype):p.type==="root"&&Object.setPrototypeOf(p,l.prototype),p[r]=!0,p.nodes&&p.nodes.forEach(f=>{m.rebuild(f)})},vp}var yp,ly;function df(){if(ly)return yp;ly=1;let e=Rt(),r,n;class o extends e{constructor(i){super({type:"document",...i}),this.nodes||(this.nodes=[])}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},yp=o,o.default=o,yp}var bp,uy;function Qy(){if(uy)return bp;uy=1;let e={};return bp=function(n){e[n]||(e[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},bp}var xp,dy;function eb(){if(dy)return xp;dy=1;class e{constructor(n,o={}){if(this.type="warning",this.text=n,o.node&&o.node.source){let t=o.node.rangeBy(o);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in o)this[t]=o[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return xp=e,e.default=e,xp}var wp,py;function pf(){if(py)return wp;py=1;let e=eb();class r{constructor(o,t,i){this.processor=o,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new e(o,t);return this.messages.push(i),i}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return wp=r,r.default=r,wp}var $p,fy;function jS(){if(fy)return $p;fy=1;let e=39,r=34,n=92,o=47,t=10,i=32,s=12,a=9,l=13,u=91,c=93,m=40,p=41,f=123,h=125,g=59,v=42,b=58,x=64,$=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return $p=function(O,A={}){let P=O.css.valueOf(),X=A.ignoreErrors,M,E,vt,Je,Ne,W,me,rt,ue,re,Er=P.length,C=0,yt=[],Ge=[];function ss(){return C}function bt(Ie){throw O.error("Unclosed "+Ie,C)}function as(){return Ge.length===0&&C>=Er}function cs(Ie){if(Ge.length)return Ge.pop();if(C>=Er)return;let xt=Ie?Ie.ignoreUnclosed:!1;switch(M=P.charCodeAt(C),M){case t:case i:case a:case l:case s:{E=C;do E+=1,M=P.charCodeAt(E);while(M===i||M===t||M===a||M===l||M===s);re=["space",P.slice(C,E)],C=E-1;break}case u:case c:case f:case h:case b:case g:case p:{let Pr=String.fromCharCode(M);re=[Pr,Pr,C];break}case m:{if(rt=yt.length?yt.pop()[1]:"",ue=P.charCodeAt(C+1),rt==="url"&&ue!==e&&ue!==r&&ue!==i&&ue!==t&&ue!==a&&ue!==s&&ue!==l){E=C;do{if(W=!1,E=P.indexOf(")",E+1),E===-1)if(X||xt){E=C;break}else bt("bracket");for(me=E;P.charCodeAt(me-1)===n;)me-=1,W=!W}while(W);re=["brackets",P.slice(C,E+1),C,E],C=E}else E=P.indexOf(")",C+1),Je=P.slice(C,E+1),E===-1||y.test(Je)?re=["(","(",C]:(re=["brackets",Je,C,E],C=E);break}case e:case r:{vt=M===e?"'":'"',E=C;do{if(W=!1,E=P.indexOf(vt,E+1),E===-1)if(X||xt){E=C+1;break}else bt("string");for(me=E;P.charCodeAt(me-1)===n;)me-=1,W=!W}while(W);re=["string",P.slice(C,E+1),C,E],C=E;break}case x:{$.lastIndex=C+1,$.test(P),$.lastIndex===0?E=P.length-1:E=$.lastIndex-2,re=["at-word",P.slice(C,E+1),C,E],C=E;break}case n:{for(E=C,Ne=!0;P.charCodeAt(E+1)===n;)E+=1,Ne=!Ne;if(M=P.charCodeAt(E+1),Ne&&M!==o&&M!==i&&M!==t&&M!==a&&M!==l&&M!==s&&(E+=1,w.test(P.charAt(E)))){for(;w.test(P.charAt(E+1));)E+=1;P.charCodeAt(E+1)===i&&(E+=1)}re=["word",P.slice(C,E+1),C,E],C=E;break}default:{M===o&&P.charCodeAt(C+1)===v?(E=P.indexOf("*/",C+2)+1,E===0&&(X||xt?E=P.length:bt("comment")),re=["comment",P.slice(C,E+1),C,E],C=E):(_.lastIndex=C+1,_.test(P),_.lastIndex===0?E=P.length-1:E=_.lastIndex-2,re=["word",P.slice(C,E+1),C,E],yt.push(re),C=E);break}}return C++,re}function ls(Ie){Ge.push(Ie)}return{back:ls,endOfFile:as,nextToken:cs,position:ss}},$p}var _p,my;function ff(){if(my)return _p;my=1;let e=Rt();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return _p=r,r.default=r,e.registerAtRule(r),_p}var Sp,hy;function xn(){if(hy)return Sp;hy=1;let e=Rt(),r,n;class o extends e{constructor(i){super(i),this.type="root",this.nodes||(this.nodes=[])}normalize(i,s,a){let l=super.normalize(i);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let u of l)u.raws.before=s.raws.before}return l}removeChild(i,s){let a=this.index(i);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(i)}toResult(i={}){return new r(new n,this,i).stringify()}}return o.registerLazyResult=t=>{r=t},o.registerProcessor=t=>{n=t},Sp=o,o.default=o,e.registerRoot(o),Sp}var kp,gy;function tb(){if(gy)return kp;gy=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let n=[" ",`
114
+ `," "];return e.split(r,n)},split(r,n,o){let t=[],i="",s=!1,a=0,l=!1,u="",c=!1;for(let m of r)c?c=!1:m==="\\"?c=!0:l?m===u&&(l=!1):m==='"'||m==="'"?(l=!0,u=m):m==="("?a+=1:m===")"?a>0&&(a-=1):a===0&&n.includes(m)&&(s=!0),s?(i!==""&&t.push(i.trim()),i="",s=!1):i+=m;return(o||i!=="")&&t.push(i.trim()),t}};return kp=e,e.default=e,kp}var Ip,vy;function mf(){if(vy)return Ip;vy=1;let e=Rt(),r=tb();class n extends e{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(t){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}return Ip=n,n.default=n,e.registerRule(n),Ip}var zp,yy;function AS(){if(yy)return zp;yy=1;let e=Ko(),r=jS(),n=Xo(),o=ff(),t=xn(),i=mf(),s={empty:!0,space:!0};function a(u){for(let c=u.length-1;c>=0;c--){let m=u[c],p=m[3]||m[2];if(p)return p}}class l{constructor(c){this.input=c,this.root=new t,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:c,start:{column:1,line:1,offset:0}}}atrule(c){let m=new o;m.name=c[1].slice(1),m.name===""&&this.unnamedAtrule(m,c),this.init(m,c[2]);let p,f,h,g=!1,v=!1,b=[],x=[];for(;!this.tokenizer.endOfFile();){if(c=this.tokenizer.nextToken(),p=c[0],p==="("||p==="["?x.push(p==="("?")":"]"):p==="{"&&x.length>0?x.push("}"):p===x[x.length-1]&&x.pop(),x.length===0)if(p===";"){m.source.end=this.getPosition(c[2]),m.source.end.offset++,this.semicolon=!0;break}else if(p==="{"){v=!0;break}else if(p==="}"){if(b.length>0){for(h=b.length-1,f=b[h];f&&f[0]==="space";)f=b[--h];f&&(m.source.end=this.getPosition(f[3]||f[2]),m.source.end.offset++)}this.end(c);break}else b.push(c);else b.push(c);if(this.tokenizer.endOfFile()){g=!0;break}}m.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(m.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(m,"params",b),g&&(c=b[b.length-1],m.source.end=this.getPosition(c[3]||c[2]),m.source.end.offset++,this.spaces=m.raws.between,m.raws.between="")):(m.raws.afterName="",m.params=""),v&&(m.nodes=[],this.current=m)}checkMissedSemicolon(c){let m=this.colon(c);if(m===!1)return;let p=0,f;for(let h=m-1;h>=0&&(f=c[h],!(f[0]!=="space"&&(p+=1,p===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(c){let m=0,p,f,h;for(let[g,v]of c.entries()){if(p=v,f=p[0],f==="("&&(m+=1),f===")"&&(m-=1),m===0&&f===":")if(!h)this.doubleColon(p);else{if(h[0]==="word"&&h[1]==="progid")continue;return g}h=p}return!1}comment(c){let m=new n;this.init(m,c[2]),m.source.end=this.getPosition(c[3]||c[2]),m.source.end.offset++;let p=c[1].slice(2,-2);if(/^\s*$/.test(p))m.text="",m.raws.left=p,m.raws.right="";else{let f=p.match(/^(\s*)([^]*\S)(\s*)$/);m.text=f[2],m.raws.left=f[1],m.raws.right=f[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(c,m){let p=new e;this.init(p,c[0][2]);let f=c[c.length-1];for(f[0]===";"&&(this.semicolon=!0,c.pop()),p.source.end=this.getPosition(f[3]||f[2]||a(c)),p.source.end.offset++;c[0][0]!=="word";)c.length===1&&this.unknownWord(c),p.raws.before+=c.shift()[1];for(p.source.start=this.getPosition(c[0][2]),p.prop="";c.length;){let x=c[0][0];if(x===":"||x==="space"||x==="comment")break;p.prop+=c.shift()[1]}p.raws.between="";let h;for(;c.length;)if(h=c.shift(),h[0]===":"){p.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),p.raws.between+=h[1];(p.prop[0]==="_"||p.prop[0]==="*")&&(p.raws.before+=p.prop[0],p.prop=p.prop.slice(1));let g=[],v;for(;c.length&&(v=c[0][0],!(v!=="space"&&v!=="comment"));)g.push(c.shift());this.precheckMissedSemicolon(c);for(let x=c.length-1;x>=0;x--){if(h=c[x],h[1].toLowerCase()==="!important"){p.important=!0;let $=this.stringFrom(c,x);$=this.spacesFromEnd(c)+$,$!==" !important"&&(p.raws.important=$);break}else if(h[1].toLowerCase()==="important"){let $=c.slice(0),_="";for(let y=x;y>0;y--){let w=$[y][0];if(_.trim().indexOf("!")===0&&w!=="space")break;_=$.pop()[1]+_}_.trim().indexOf("!")===0&&(p.important=!0,p.raws.important=_,c=$)}if(h[0]!=="space"&&h[0]!=="comment")break}c.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(p.raws.between+=g.map(x=>x[1]).join(""),g=[]),this.raw(p,"value",g.concat(c),m),p.value.includes(":")&&!m&&this.checkMissedSemicolon(c)}doubleColon(c){throw this.input.error("Double colon",{offset:c[2]},{offset:c[2]+c[1].length})}emptyRule(c){let m=new i;this.init(m,c[2]),m.selector="",m.raws.between="",this.current=m}end(c){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(c[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(c)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(c){if(this.spaces+=c[1],this.current.nodes){let m=this.current.nodes[this.current.nodes.length-1];m&&m.type==="rule"&&!m.raws.ownSemicolon&&(m.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(c){let m=this.input.fromOffset(c);return{column:m.col,line:m.line,offset:c}}init(c,m){this.current.push(c),c.source={input:this.input,start:this.getPosition(m)},c.raws.before=this.spaces,this.spaces="",c.type!=="comment"&&(this.semicolon=!1)}other(c){let m=!1,p=null,f=!1,h=null,g=[],v=c[1].startsWith("--"),b=[],x=c;for(;x;){if(p=x[0],b.push(x),p==="("||p==="[")h||(h=x),g.push(p==="("?")":"]");else if(v&&f&&p==="{")h||(h=x),g.push("}");else if(g.length===0)if(p===";")if(f){this.decl(b,v);return}else break;else if(p==="{"){this.rule(b);return}else if(p==="}"){this.tokenizer.back(b.pop()),m=!0;break}else p===":"&&(f=!0);else p===g[g.length-1]&&(g.pop(),g.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(m=!0),g.length>0&&this.unclosedBracket(h),m&&f){if(!v)for(;b.length&&(x=b[b.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,v)}else this.unknownWord(b)}parse(){let c;for(;!this.tokenizer.endOfFile();)switch(c=this.tokenizer.nextToken(),c[0]){case"space":this.spaces+=c[1];break;case";":this.freeSemicolon(c);break;case"}":this.end(c);break;case"comment":this.comment(c);break;case"at-word":this.atrule(c);break;case"{":this.emptyRule(c);break;default:this.other(c);break}this.endFile()}precheckMissedSemicolon(){}raw(c,m,p,f){let h,g,v=p.length,b="",x=!0,$,_;for(let y=0;y<v;y+=1)h=p[y],g=h[0],g==="space"&&y===v-1&&!f?x=!1:g==="comment"?(_=p[y-1]?p[y-1][0]:"empty",$=p[y+1]?p[y+1][0]:"empty",!s[_]&&!s[$]?b.slice(-1)===","?x=!1:b+=h[1]:x=!1):b+=h[1];if(!x){let y=p.reduce((w,k)=>w+k[1],"");c.raws[m]={raw:y,value:b}}c[m]=b}rule(c){c.pop();let m=new i;this.init(m,c[0][2]),m.raws.between=this.spacesAndCommentsFromEnd(c),this.raw(m,"selector",c),this.current=m}spacesAndCommentsFromEnd(c){let m,p="";for(;c.length&&(m=c[c.length-1][0],!(m!=="space"&&m!=="comment"));)p=c.pop()[1]+p;return p}spacesAndCommentsFromStart(c){let m,p="";for(;c.length&&(m=c[0][0],!(m!=="space"&&m!=="comment"));)p+=c.shift()[1];return p}spacesFromEnd(c){let m,p="";for(;c.length&&(m=c[c.length-1][0],m==="space");)p=c.pop()[1]+p;return p}stringFrom(c,m){let p="";for(let f=m;f<c.length;f++)p+=c[f][1];return c.splice(m,c.length-m),p}unclosedBlock(){let c=this.current.source.start;throw this.input.error("Unclosed block",c.line,c.column)}unclosedBracket(c){throw this.input.error("Unclosed bracket",{offset:c[2]},{offset:c[2]+1})}unexpectedClose(c){throw this.input.error("Unexpected }",{offset:c[2]},{offset:c[2]+1})}unknownWord(c){throw this.input.error("Unknown word",{offset:c[0][2]},{offset:c[0][2]+c[0][1].length})}unnamedAtrule(c,m){throw this.input.error("At-rule without name",{offset:m[2]},{offset:m[2]+m[1].length})}}return zp=l,zp}var Op,by;function hf(){if(by)return Op;by=1;let e=Rt(),r=AS(),n=Ho();function o(t,i){let s=new n(t,i),a=new r(s);try{a.parse()}catch(l){throw l}return a.root}return Op=o,o.default=o,e.registerParse(o),Op}var Ep,xy;function rb(){if(xy)return Ep;xy=1;let{isClean:e,my:r}=uf(),n=Yy(),o=Jo(),t=Rt(),i=df(),s=Qy(),a=pf(),l=hf(),u=xn(),c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},m={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(_){return typeof _=="object"&&typeof _.then=="function"}function g(_){let y=!1,w=c[_.type];return _.type==="decl"?y=_.prop.toLowerCase():_.type==="atrule"&&(y=_.name.toLowerCase()),y&&_.append?[w,w+"-"+y,f,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:_.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function v(_){let y;return _.type==="document"?y=["Document",f,"DocumentExit"]:_.type==="root"?y=["Root",f,"RootExit"]:y=g(_),{eventIndex:0,events:y,iterator:0,node:_,visitorIndex:0,visitors:[]}}function b(_){return _[e]=!1,_.nodes&&_.nodes.forEach(y=>b(y)),_}let x={};class ${constructor(y,w,k){this.stringified=!1,this.processed=!1;let O;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))O=b(w);else if(w instanceof $||w instanceof a)O=b(w.root),w.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=w.map);else{let A=l;k.syntax&&(A=k.syntax.parse),k.parser&&(A=k.parser),A.parse&&(A=A.parse);try{O=A(w,k)}catch(P){this.processed=!0,this.error=P}O&&!O[r]&&t.rebuild(O)}this.result=new a(y,O,k),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?{...A,...A.prepare(this.result)}:A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let k=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=k.postcssPlugin,y.setMessage()):k.postcssVersion}catch(O){console&&console.error&&console.error(O)}return y}prepareVisitors(){this.listeners={};let y=(w,k,O)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([w,O])};for(let w of this.plugins)if(typeof w=="object")for(let k in w){if(!m[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[k])if(typeof w[k]=="object")for(let O in w[k])O==="*"?y(w,k,w[k][O]):y(w,k+"-"+O.toLowerCase(),w[k][O]);else typeof w[k]=="function"&&y(w,k,w[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],k=this.runOnRoot(w);if(h(k))try{await k}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[v(y)];for(;w.length>0;){let k=this.visitTick(w);if(h(k))try{await k}catch(O){let A=w[w.length-1].node;throw this.handleError(O,A)}}}if(this.listeners.OnceExit)for(let[w,k]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let O=y.nodes.map(A=>k(A,this.helpers));await Promise.all(O)}else await k(y,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(k=>y.Once(k,this.helpers));return h(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=o;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let O=new n(w,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[k,O]of y){this.result.lastPlugin=k;let A;try{A=O(w,this.helpers)}catch(P){throw this.handleError(P,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:k,visitors:O}=w;if(k.type!=="root"&&k.type!=="document"&&!k.parent){y.pop();return}if(O.length>0&&w.visitorIndex<O.length){let[P,X]=O[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===O.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=P;try{return X(k.toProxy(),this.helpers)}catch(M){throw this.handleError(M,k)}}if(w.iterator!==0){let P=w.iterator,X;for(;X=k.nodes[k.indexes[P]];)if(k.indexes[P]+=1,!X[e]){X[e]=!0,y.push(v(X));return}w.iterator=0,delete k.indexes[P]}let A=w.events;for(;w.eventIndex<A.length;){let P=A[w.eventIndex];if(w.eventIndex+=1,P===f){k.nodes&&k.nodes.length&&(k[e]=!0,w.iterator=k.getIterator());return}else if(this.listeners[P]){w.visitors=this.listeners[P];return}}y.pop()}walkSync(y){y[e]=!0;let w=g(y);for(let k of w)if(k===f)y.nodes&&y.each(O=>{O[e]||this.walkSync(O)});else{let O=this.listeners[k];if(O&&this.visitSync(O,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return $.registerPostcss=_=>{x=_},Ep=$,$.default=$,u.registerLazyResult($),i.registerLazyResult($),Ep}var Pp,wy;function US(){if(wy)return Pp;wy=1;let e=Yy(),r=Jo(),n=Qy(),o=hf(),t=pf();class i{constructor(a,l,u){l=l.toString(),this.stringified=!1,this._processor=a,this._css=l,this._opts=u,this._map=void 0;let c,m=r;this.result=new t(this._processor,c,this._opts),this.result.css=l;let p=this;Object.defineProperty(this.result,"root",{get(){return p.root}});let f=new e(m,c,this._opts,l);if(f.isMap()){let[h,g]=f.generate();h&&(this.result.css=h),g&&(this.result.map=g)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,l){return this.async().then(a,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,l=o;try{a=l(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return Pp=i,i.default=i,Pp}var Np,$y;function MS(){if($y)return Np;$y=1;let e=US(),r=rb(),n=df(),o=xn();class t{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let l of s)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))a=a.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)a.push(l);else if(typeof l=="function")a.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new e(this,s,a):new r(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Np=t,t.default=t,o.registerProcessor(t),n.registerProcessor(t),Np}var Dp,_y;function LS(){if(_y)return Dp;_y=1;let e=Ko(),r=Xy(),n=Xo(),o=ff(),t=Ho(),i=xn(),s=mf();function a(l,u){if(Array.isArray(l))return l.map(p=>a(p));let{inputs:c,...m}=l;if(c){u=[];for(let p of c){let f={...p,__proto__:t.prototype};f.map&&(f.map={...f.map,__proto__:r.prototype}),u.push(f)}}if(m.nodes&&(m.nodes=l.nodes.map(p=>a(p,u))),m.source){let{inputId:p,...f}=m.source;m.source=f,p!=null&&(m.source.input=u[p])}if(m.type==="root")return new i(m);if(m.type==="decl")return new e(m);if(m.type==="rule")return new s(m);if(m.type==="comment")return new n(m);if(m.type==="atrule")return new o(m);throw new Error("Unknown node type: "+l.type)}return Dp=a,a.default=a,Dp}var Rp,Sy;function ZS(){if(Sy)return Rp;Sy=1;let e=lf(),r=Ko(),n=rb(),o=Rt(),t=MS(),i=Jo(),s=LS(),a=df(),l=eb(),u=Xo(),c=ff(),m=pf(),p=Ho(),f=hf(),h=tb(),g=mf(),v=xn(),b=Go();function x(...$){return $.length===1&&Array.isArray($[0])&&($=$[0]),new t($)}return x.plugin=function(_,y){let w=!1;function k(...A){console&&console.warn&&!w&&(w=!0,console.warn(_+`: postcss.plugin was deprecated. Migration guide:
115
115
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(_+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
116
- https://www.w3ctech.com/topic/2226`));let N=y(...A);return N.postcssPlugin=_,N.postcssVersion=new t().version,N}let O;return Object.defineProperty(k,"postcss",{get(){return O||(O=k()),O}}),k.process=function(A,N,X){return x([k(X)]).process(A,N)},k},x.stringify=i,x.parse=p,x.fromJSON=s,x.list=h,x.comment=$=>new l($),x.atRule=$=>new c($),x.decl=$=>new r($),x.rule=$=>new g($),x.root=$=>new v($),x.document=$=>new a($),x.CssSyntaxError=e,x.Declaration=r,x.Container=o,x.Processor=t,x.Document=a,x.Comment=l,x.Warning=u,x.AtRule=c,x.Result=f,x.Input=d,x.Rule=g,x.Root=v,x.Node=b,n.registerPostcss(x),up=x,x.default=x,up}var z_=I_(),ie=h_(z_);ie.stringify;ie.fromJSON;ie.plugin;ie.parse;ie.list;ie.document;ie.comment;ie.atRule;ie.rule;ie.decl;ie.root;ie.CssSyntaxError;ie.Declaration;ie.Container;ie.Processor;ie.Document;ie.Comment;ie.Warning;ie.AtRule;ie.Result;ie.Input;ie.Rule;ie.Root;ie.Node;var B=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(B||{});function O_(e){let r={},n=/;(?![^(]*\))/g,o=/:(.+)/,t=/\/\*.*?\*\//g;return e.replace(t,"").split(n).forEach(function(i){if(i){let s=i.split(o);s.length>1&&(r[gp(s[0].trim())]=s[1].trim())}}),r}function Cv(e){let r=[];for(let n in e){let o=e[n];if(typeof o!="string")continue;let t=P_(n);r.push(`${t}: ${o};`)}return r.join(" ")}var E_=/-([a-z])/g,N_=/^--[a-zA-Z0-9-]+$/,gp=e=>N_.test(e)?e:e.replace(E_,(r,n)=>n?n.toUpperCase():""),D_=/\B([A-Z])/g,P_=e=>e.replace(D_,"-$1").toLowerCase(),Me=class e{constructor(...r){U(this,"parentElement",null),U(this,"parentNode",null),U(this,"ownerDocument"),U(this,"firstChild",null),U(this,"lastChild",null),U(this,"previousSibling",null),U(this,"nextSibling",null),U(this,"ELEMENT_NODE",1),U(this,"TEXT_NODE",3),U(this,"nodeType"),U(this,"nodeName"),U(this,"RRNodeType")}get childNodes(){let r=[],n=this.firstChild;for(;n;)r.push(n),n=n.nextSibling;return r}contains(r){if(r instanceof e){if(r.ownerDocument!==this.ownerDocument)return!1;if(r===this)return!0}else return!1;for(;r.parentNode;){if(r.parentNode===this)return!0;r=r.parentNode}return!1}appendChild(r){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(r,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(r){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},vp=class e extends Me{constructor(...r){super(r),U(this,"nodeType",9),U(this,"nodeName","#document"),U(this,"compatMode","CSS1Compat"),U(this,"RRNodeType",B.Document),U(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(r=>r.RRNodeType===B.Element&&r.tagName==="HTML")||null}get body(){var r;return((r=this.documentElement)==null?void 0:r.childNodes.find(n=>n.RRNodeType===B.Element&&n.tagName==="BODY"))||null}get head(){var r;return((r=this.documentElement)==null?void 0:r.childNodes.find(n=>n.RRNodeType===B.Element&&n.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(r){let n=r.RRNodeType;if((n===B.Element||n===B.DocumentType)&&this.childNodes.some(t=>t.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${n===B.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let o=Jp(this,r);return o.parentElement=null,o}insertBefore(r,n){let o=r.RRNodeType;if((o===B.Element||o===B.DocumentType)&&this.childNodes.some(i=>i.RRNodeType===o))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${o===B.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let t=my(this,r,n);return t.parentElement=null,t}removeChild(r){return hy(this,r)}open(){this.firstChild=null,this.lastChild=null}close(){}write(r){let n;if(r==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?n="-//W3C//DTD XHTML 1.0 Transitional//EN":r==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(n="-//W3C//DTD HTML 4.0 Transitional//EN"),n){let o=this.createDocumentType("html",n,"");this.open(),this.appendChild(o)}}createDocument(r,n,o){return new e}createDocumentType(r,n,o){let t=new ho(r,n,o);return t.ownerDocument=this,t}createElement(r){let n=new br(r);return n.ownerDocument=this,n}createElementNS(r,n){return this.createElement(n)}createTextNode(r){let n=new go(r);return n.ownerDocument=this,n}createComment(r){let n=new vo(r);return n.ownerDocument=this,n}createCDATASection(r){let n=new yo(r);return n.ownerDocument=this,n}toString(){return"RRDocument"}},ho=class extends Me{constructor(r,n,o){super(),U(this,"nodeType",10),U(this,"RRNodeType",B.DocumentType),U(this,"name"),U(this,"publicId"),U(this,"systemId"),U(this,"textContent",null),this.name=r,this.publicId=n,this.systemId=o,this.nodeName=r}toString(){return"RRDocumentType"}},br=class extends Me{constructor(r){super(),U(this,"nodeType",1),U(this,"RRNodeType",B.Element),U(this,"tagName"),U(this,"attributes",{}),U(this,"shadowRoot",null),U(this,"scrollLeft"),U(this,"scrollTop"),this.tagName=r.toUpperCase(),this.nodeName=r.toUpperCase()}get textContent(){let r="";return this.childNodes.forEach(n=>r+=n.textContent),r}set textContent(r){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(r))}get classList(){return new xp(this.attributes.class,r=>{this.attributes.class=r})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let r=this.attributes.style?O_(this.attributes.style):{},n=/\B([A-Z])/g;return r.setProperty=(o,t,i)=>{if(n.test(o))return;let s=gp(o);t?r[s]=t:delete r[s],i==="important"&&(r[s]+=" !important"),this.attributes.style=Cv(r)},r.removeProperty=o=>{if(n.test(o))return"";let t=gp(o),i=r[t]||"";return delete r[t],this.attributes.style=Cv(r),i},r}getAttribute(r){return this.attributes[r]===void 0?null:this.attributes[r]}setAttribute(r,n){this.attributes[r]=n}setAttributeNS(r,n,o){this.setAttribute(n,o)}removeAttribute(r){delete this.attributes[r]}appendChild(r){return Jp(this,r)}insertBefore(r,n){return my(this,r,n)}removeChild(r){return hy(this,r)}attachShadow(r){let n=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=n,n}dispatchEvent(r){return!0}toString(){let r="";for(let n in this.attributes)r+=`${n}="${this.attributes[n]}" `;return`${this.tagName} ${r}`}},yp=class extends br{constructor(){super(...arguments),U(this,"currentTime"),U(this,"volume"),U(this,"paused"),U(this,"muted"),U(this,"playbackRate"),U(this,"loop")}attachShadow(r){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}},bp=class extends br{constructor(){super(...arguments),U(this,"tagName","DIALOG"),U(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}},go=class extends Me{constructor(r){super(),U(this,"nodeType",3),U(this,"nodeName","#text"),U(this,"RRNodeType",B.Text),U(this,"data"),this.data=r}get textContent(){return this.data}set textContent(r){this.data=r}toString(){return`RRText text=${JSON.stringify(this.data)}`}},vo=class extends Me{constructor(r){super(),U(this,"nodeType",8),U(this,"nodeName","#comment"),U(this,"RRNodeType",B.Comment),U(this,"data"),this.data=r}get textContent(){return this.data}set textContent(r){this.data=r}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},yo=class extends Me{constructor(r){super(),U(this,"nodeName","#cdata-section"),U(this,"nodeType",4),U(this,"RRNodeType",B.CDATA),U(this,"data"),this.data=r}get textContent(){return this.data}set textContent(r){this.data=r}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},xp=class{constructor(r,n){if(U(this,"onChange"),U(this,"classes",[]),U(this,"add",(...o)=>{for(let t of o){let i=String(t);this.classes.indexOf(i)>=0||this.classes.push(i)}this.onChange&&this.onChange(this.classes.join(" "))}),U(this,"remove",(...o)=>{this.classes=this.classes.filter(t=>o.indexOf(t)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),r){let o=r.trim().split(/\s+/);this.classes.push(...o)}this.onChange=n}};function Jp(e,r){return r.parentNode&&r.parentNode.removeChild(r),e.lastChild?(e.lastChild.nextSibling=r,r.previousSibling=e.lastChild):(e.firstChild=r,r.previousSibling=null),e.lastChild=r,r.nextSibling=null,r.parentNode=e,r.parentElement=e,r.ownerDocument=e.ownerDocument,r}function my(e,r,n){if(!n)return Jp(e,r);if(n.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return r===n||(r.parentNode&&r.parentNode.removeChild(r),r.previousSibling=n.previousSibling,n.previousSibling=r,r.nextSibling=n,r.previousSibling?r.previousSibling.nextSibling=r:e.firstChild=r,r.parentElement=e,r.parentNode=e,r.ownerDocument=e.ownerDocument),r}function hy(e,r){if(r.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return r.previousSibling?r.previousSibling.nextSibling=r.nextSibling:e.firstChild=r.nextSibling,r.nextSibling?r.nextSibling.previousSibling=r.previousSibling:e.lastChild=r.previousSibling,r.previousSibling=null,r.nextSibling=null,r.parentElement=null,r.parentNode=null,r}var Ee=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(Ee||{}),wp={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},R_={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},Be=null;function bo(e,r,n,o=r.mirror||r.ownerDocument.mirror){e=T_(e,r,n,o),gy(e,r,n,o),j_(e,r,n)}function T_(e,r,n,o){var t;if(n.afterAppend&&!Be&&(Be=new WeakSet,setTimeout(()=>{Be=null},0)),!Wp(e,r)){let i=xo(r,n.mirror,o);(t=e.parentNode)==null||t.replaceChild(i,e),e=i}switch(r.RRNodeType){case B.Document:{if(!hr(e,r,n.mirror,o)){let i=o.getMeta(r);i&&(n.mirror.removeNodeFromMap(e),e.close(),e.open(),n.mirror.add(e,i),Be?.add(e))}break}case B.Element:{let i=e,s=r;switch(s.tagName){case"IFRAME":{let a=e.contentDocument;if(!a)break;bo(a,r.contentDocument,n,o);break}}s.shadowRoot&&(i.shadowRoot||i.attachShadow({mode:"open"}),gy(i.shadowRoot,s.shadowRoot,n,o)),C_(i,s,o);break}}return e}function j_(e,r,n){var o;switch(r.RRNodeType){case B.Document:{let t=r.scrollData;t&&n.applyScroll(t,!0);break}case B.Element:{let t=e,i=r;switch(i.scrollData&&n.applyScroll(i.scrollData,!0),i.inputData&&n.applyInput(i.inputData),i.tagName){case"AUDIO":case"VIDEO":{let s=e,a=i;a.paused!==void 0&&(a.paused?s.pause():s.play()),a.muted!==void 0&&(s.muted=a.muted),a.volume!==void 0&&(s.volume=a.volume),a.currentTime!==void 0&&(s.currentTime=a.currentTime),a.playbackRate!==void 0&&(s.playbackRate=a.playbackRate),a.loop!==void 0&&(s.loop=a.loop);break}case"CANVAS":{let s=r;if(s.rr_dataURL!==null){let a=document.createElement("img");a.onload=()=>{let u=t.getContext("2d");u&&u.drawImage(a,0,0,a.width,a.height)},a.src=s.rr_dataURL}s.canvasMutations.forEach(a=>n.applyCanvas(a.event,a.mutation,e));break}case"STYLE":{let s=t.sheet;s&&r.rules.forEach(a=>n.applyStyleSheetMutation(a,s));break}case"DIALOG":{let s=t,a=i,u=s.open,l=s.matches("dialog:modal"),c=a.open,f=a.isModal,d=l!==f,p=u!==c;if((d||u&&p)&&s.close(),c&&(p||d))try{f?s.showModal():s.show()}catch(h){console.warn(h)}break}}break}case B.Text:case B.Comment:case B.CDATA:{e.textContent!==r.data&&(e.textContent=r.data);break}}Be?.has(e)&&(Be.delete(e),(o=n.afterAppend)==null||o.call(n,e,n.mirror.getId(e)))}function C_(e,r,n){let o=e.attributes,t=r.attributes;for(let i in t){let s=t[i],a=n.getMeta(r);if(a?.isSVG&&wp[i])e.setAttributeNS(wp[i],i,s);else if(r.tagName==="CANVAS"&&i==="rr_dataURL"){let u=document.createElement("img");u.src=s,u.onload=()=>{let l=e.getContext("2d");l&&l.drawImage(u,0,0,u.width,u.height)}}else{if(r.tagName==="IFRAME"&&i==="srcdoc")continue;try{e.setAttribute(i,s)}catch(u){console.warn(u)}}}for(let{name:i}of Array.from(o))i in t||e.removeAttribute(i);r.scrollLeft&&(e.scrollLeft=r.scrollLeft),r.scrollTop&&(e.scrollTop=r.scrollTop)}function gy(e,r,n,o){let t=Array.from(e.childNodes),i=r.childNodes;if(t.length===0&&i.length===0)return;let s=0,a=t.length-1,u=0,l=i.length-1,c=t[s],f=t[a],d=i[u],p=i[l],h,g;for(;s<=a&&u<=l;)if(c===void 0)c=t[++s];else if(f===void 0)f=t[--a];else if(hr(c,d,n.mirror,o))c=t[++s],d=i[++u];else if(hr(f,p,n.mirror,o))f=t[--a],p=i[--l];else if(hr(c,p,n.mirror,o)){try{e.insertBefore(c,f.nextSibling)}catch(x){console.warn(x)}c=t[++s],p=i[--l]}else if(hr(f,d,n.mirror,o)){try{e.insertBefore(f,c)}catch(x){console.warn(x)}f=t[--a],d=i[++u]}else{if(!h){h={};for(let $=s;$<=a;$++){let _=t[$];_&&n.mirror.hasNode(_)&&(h[n.mirror.getId(_)]=$)}}g=h[o.getId(d)];let x=t[g];if(g!==void 0&&x&&hr(x,d,n.mirror,o)){try{e.insertBefore(x,c)}catch($){console.warn($)}t[g]=void 0}else{let $=xo(d,n.mirror,o);e.nodeName==="#document"&&c&&($.nodeType===$.DOCUMENT_TYPE_NODE&&c.nodeType===c.DOCUMENT_TYPE_NODE||$.nodeType===$.ELEMENT_NODE&&c.nodeType===c.ELEMENT_NODE)&&(e.removeChild(c),n.mirror.removeNodeFromMap(c),c=t[++s]);try{e.insertBefore($,c||null)}catch(_){console.warn(_)}}d=i[++u]}if(s>a){let x=i[l+1],$=null;for(x&&($=n.mirror.getNode(o.getId(x)));u<=l;++u){let _=xo(i[u],n.mirror,o);try{e.insertBefore(_,$)}catch(y){console.warn(y)}}}else if(u>l)for(;s<=a;s++){let x=t[s];if(!(!x||x.parentNode!==e))try{e.removeChild(x),n.mirror.removeNodeFromMap(x)}catch($){console.warn($)}}let v=e.firstChild,b=r.firstChild;for(;v!==null&&b!==null;)bo(v,b,n,o),v=v.nextSibling,b=b.nextSibling}function xo(e,r,n){let o=n.getId(e),t=n.getMeta(e),i=null;if(o>-1&&(i=r.getNode(o)),i!==null&&Wp(i,e))return i;switch(e.RRNodeType){case B.Document:i=new Document;break;case B.DocumentType:i=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case B.Element:{let s=e.tagName.toLowerCase();s=R_[s]||s,t&&"isSVG"in t&&t?.isSVG?i=document.createElementNS(wp.svg,s):i=document.createElement(e.tagName);break}case B.Text:i=document.createTextNode(e.data);break;case B.Comment:i=document.createComment(e.data);break;case B.CDATA:i=document.createCDATASection(e.data);break}t&&r.add(i,{...t});try{Be?.add(i)}catch{}return i}function Wp(e,r){return e.nodeType!==r.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===r.tagName}function hr(e,r,n,o){let t=n.getId(e),i=o.getId(r);return t===-1||t!==i?!1:Wp(e,r)}var xr=class e extends vp{constructor(r){super(),U(this,"UNSERIALIZED_STARTING_ID",-2),U(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),U(this,"mirror",V_()),U(this,"scrollData",null),r&&(this.mirror=r)}get unserializedId(){return this._unserializedId--}createDocument(r,n,o){return new e}createDocumentType(r,n,o){let t=new A_(r,n,o);return t.ownerDocument=this,t}createElement(r){let n=r.toUpperCase(),o;switch(n){case"AUDIO":case"VIDEO":o=new $p(n);break;case"IFRAME":o=new Ip(n,this.mirror);break;case"CANVAS":o=new Sp(n);break;case"STYLE":o=new kp(n);break;case"DIALOG":o=new _p(n);break;default:o=new wr(n);break}return o.ownerDocument=this,o}createComment(r){let n=new M_(r);return n.ownerDocument=this,n}createCDATASection(r){let n=new L_(r);return n.ownerDocument=this,n}createTextNode(r){let n=new U_(r);return n.ownerDocument=this,n}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},A_=ho,wr=class extends br{constructor(){super(...arguments),U(this,"inputData",null),U(this,"scrollData",null)}},$p=class extends yp{},_p=class extends bp{},Sp=class extends wr{constructor(){super(...arguments),U(this,"rr_dataURL",null),U(this,"canvasMutations",[])}getContext(){return null}},kp=class extends wr{constructor(){super(...arguments),U(this,"rules",[])}},Ip=class extends wr{constructor(r,n){super(r),U(this,"contentDocument",new xr),this.contentDocument.mirror=n}},U_=go,M_=vo,L_=yo;function Z_(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function vy(e,r,n,o){let t;switch(e.nodeType){case Ee.DOCUMENT_NODE:o&&o.nodeName==="IFRAME"?t=o.contentDocument:(t=r,t.compatMode=e.compatMode);break;case Ee.DOCUMENT_TYPE_NODE:{let s=e;t=r.createDocumentType(s.name,s.publicId,s.systemId);break}case Ee.ELEMENT_NODE:{let s=e,a=Z_(s);t=r.createElement(a);let u=t;for(let{name:l,value:c}of Array.from(s.attributes))u.attributes[l]=c;s.scrollLeft&&(u.scrollLeft=s.scrollLeft),s.scrollTop&&(u.scrollTop=s.scrollTop);break}case Ee.TEXT_NODE:t=r.createTextNode(e.textContent||"");break;case Ee.CDATA_SECTION_NODE:t=r.createCDATASection(e.data);break;case Ee.COMMENT_NODE:t=r.createComment(e.textContent||"");break;case Ee.DOCUMENT_FRAGMENT_NODE:t=o.attachShadow({mode:"open"});break;default:return null}let i=n.getMeta(e);return r instanceof xr&&(i||(i=yy(t,r.unserializedId),n.add(e,i)),r.mirror.add(t,{...i})),t}function F_(e,r=m_(),n=new xr){function o(t,i){let s=vy(t,n,r,i);if(s!==null)if(i?.nodeName!=="IFRAME"&&t.nodeType!==Ee.DOCUMENT_FRAGMENT_NODE&&(i?.appendChild(s),s.parentNode=i,s.parentElement=i),t.nodeName==="IFRAME"){let a=t.contentDocument;a&&o(a,s)}else(t.nodeType===Ee.DOCUMENT_NODE||t.nodeType===Ee.ELEMENT_NODE||t.nodeType===Ee.DOCUMENT_FRAGMENT_NODE)&&(t.nodeType===Ee.ELEMENT_NODE&&t.shadowRoot&&o(t.shadowRoot,s),t.childNodes.forEach(a=>o(a,s)))}return o(e,null),n}function V_(){return new zp}var zp=class{constructor(){U(this,"idNodeMap",new Map),U(this,"nodeMetaMap",new WeakMap)}getId(r){var n;return r?((n=this.getMeta(r))==null?void 0:n.id)??-1:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let n=this.getId(r);this.idNodeMap.delete(n),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,n){let o=n.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,n)}replace(r,n){let o=this.getNode(r);if(o){let t=this.nodeMetaMap.get(o);t&&this.nodeMetaMap.set(n,t)}this.idNodeMap.set(r,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function yy(e,r){switch(e.RRNodeType){case B.Document:return{id:r,type:e.RRNodeType,childNodes:[]};case B.DocumentType:{let n=e;return{id:r,type:e.RRNodeType,name:n.name,publicId:n.publicId,systemId:n.systemId}}case B.Element:return{id:r,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case B.Text:return{id:r,type:e.RRNodeType,textContent:e.textContent||""};case B.Comment:return{id:r,type:e.RRNodeType,textContent:e.textContent||""};case B.CDATA:return{id:r,type:e.RRNodeType,textContent:""}}}var Av={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Uv={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},uo={},by={},q_=()=>!!globalThis.Zone;function Gp(e){if(uo[e])return uo[e];let r=globalThis[e],n=r.prototype,o=e in Av?Av[e]:void 0,t=!!(o&&o.every(a=>{var u,l;return!!((l=(u=Object.getOwnPropertyDescriptor(n,a))==null?void 0:u.get)!=null&&l.toString().includes("[native code]"))})),i=e in Uv?Uv[e]:void 0,s=!!(i&&i.every(a=>{var u;return typeof n[a]=="function"&&((u=n[a])==null?void 0:u.toString().includes("[native code]"))}));if(t&&s&&!q_())return uo[e]=r.prototype,r.prototype;try{let a=document.createElement("iframe");a.style.display="none",document.body.appendChild(a);let u=a.contentWindow;if(!u)return r.prototype;let l=u[e].prototype;if(!l)return a.remove(),n;let c=navigator.userAgent;return c.includes("Safari")&&!c.includes("Chrome")?(a.classList.add("rr-block"),a.setAttribute("__rrwebUntaintedMutationObserver",""),by[e]=()=>a.remove()):a.remove(),uo[e]=l}catch{return n}}var dp={};function Ne(e,r,n){var o,t;let i=(o=dp[e])==null?void 0:o[n];if(i)return i.call(r);let s=Gp(e),a=(t=Object.getOwnPropertyDescriptor(s,n))==null?void 0:t.get;return a?((dp[e]||(dp[e]={}))[n]=a,a.call(r)):r[n]}var pp={};function xy(e,r,n){let o=`${e}.${String(n)}`;if(pp[o])return pp[o].bind(r);let i=Gp(e)[n];return typeof i!="function"?r[n]:(pp[o]=i,i.bind(r))}function B_(e){return Ne("Node",e,"ownerDocument")}function J_(e){return Ne("Node",e,"childNodes")}function W_(e){return Ne("Node",e,"parentNode")}function G_(e){return Ne("Node",e,"parentElement")}function K_(e){return Ne("Node",e,"textContent")}function X_(e){return Ne("Node",e,"firstChild")}function H_(e){return Ne("Node",e,"lastChild")}function Y_(e){return Ne("Node",e,"nextSibling")}function Q_(e){return Ne("Node",e,"previousSibling")}function eS(e,r){return xy("Node",e,"contains")(r)}function tS(e){return xy("Node",e,"getRootNode")()}function rS(e){return!e||!("host"in e)?null:Ne("ShadowRoot",e,"host")}function nS(e){return e.styleSheets}function iS(e){return!e||!("shadowRoot"in e)?null:Ne("Element",e,"shadowRoot")}function oS(e,r){return Ne("Element",e,"querySelector")(r)}function sS(e,r){return Ne("Element",e,"querySelectorAll")(r)}function aS(){return[Gp("MutationObserver").constructor,by.MutationObserver??(()=>{})]}var wy=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(wy=()=>new Date().getTime());function cS(e,r,n){try{if(!(r in e))return()=>{};let o=e[r],t=n(o);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=t,()=>{e[r]=o}}catch{return()=>{}}}var lS={ownerDocument:B_,childNodes:J_,parentNode:W_,parentElement:G_,textContent:K_,firstChild:X_,lastChild:H_,nextSibling:Y_,previousSibling:Q_,contains:eS,getRootNode:tS,host:rS,styleSheets:nS,shadowRoot:iS,querySelector:oS,querySelectorAll:sS,nowTimestamp:wy,mutationObserverCtor:aS,patch:cS},gr=`Please stop import mirror directly. Instead of that,\r
116
+ https://www.w3ctech.com/topic/2226`));let P=y(...A);return P.postcssPlugin=_,P.postcssVersion=new t().version,P}let O;return Object.defineProperty(k,"postcss",{get(){return O||(O=k()),O}}),k.process=function(A,P,X){return x([k(X)]).process(A,P)},k},x.stringify=i,x.parse=f,x.fromJSON=s,x.list=h,x.comment=$=>new u($),x.atRule=$=>new c($),x.decl=$=>new r($),x.rule=$=>new g($),x.root=$=>new v($),x.document=$=>new a($),x.CssSyntaxError=e,x.Declaration=r,x.Container=o,x.Processor=t,x.Document=a,x.Comment=u,x.Warning=l,x.AtRule=c,x.Result=m,x.Input=p,x.Rule=g,x.Root=v,x.Node=b,n.registerPostcss(x),Rp=x,x.default=x,Rp}var FS=ZS(),oe=PS(FS);oe.stringify;oe.fromJSON;oe.plugin;oe.parse;oe.list;oe.document;oe.comment;oe.atRule;oe.rule;oe.decl;oe.root;oe.CssSyntaxError;oe.Declaration;oe.Container;oe.Processor;oe.Document;oe.Comment;oe.Warning;oe.AtRule;oe.Result;oe.Input;oe.Rule;oe.Root;oe.Node;var B=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(B||{});function VS(e){let r={},n=/;(?![^(]*\))/g,o=/:(.+)/,t=/\/\*.*?\*\//g;return e.replace(t,"").split(n).forEach(function(i){if(i){let s=i.split(o);s.length>1&&(r[Mp(s[0].trim())]=s[1].trim())}}),r}function ky(e){let r=[];for(let n in e){let o=e[n];if(typeof o!="string")continue;let t=JS(n);r.push(`${t}: ${o};`)}return r.join(" ")}var qS=/-([a-z])/g,BS=/^--[a-zA-Z0-9-]+$/,Mp=e=>BS.test(e)?e:e.replace(qS,(r,n)=>n?n.toUpperCase():""),WS=/\B([A-Z])/g,JS=e=>e.replace(WS,"-$1").toLowerCase(),Me=class e{constructor(...r){U(this,"parentElement",null),U(this,"parentNode",null),U(this,"ownerDocument"),U(this,"firstChild",null),U(this,"lastChild",null),U(this,"previousSibling",null),U(this,"nextSibling",null),U(this,"ELEMENT_NODE",1),U(this,"TEXT_NODE",3),U(this,"nodeType"),U(this,"nodeName"),U(this,"RRNodeType")}get childNodes(){let r=[],n=this.firstChild;for(;n;)r.push(n),n=n.nextSibling;return r}contains(r){if(r instanceof e){if(r.ownerDocument!==this.ownerDocument)return!1;if(r===this)return!0}else return!1;for(;r.parentNode;){if(r.parentNode===this)return!0;r=r.parentNode}return!1}appendChild(r){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(r,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(r){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},Lp=class e extends Me{constructor(...r){super(r),U(this,"nodeType",9),U(this,"nodeName","#document"),U(this,"compatMode","CSS1Compat"),U(this,"RRNodeType",B.Document),U(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(r=>r.RRNodeType===B.Element&&r.tagName==="HTML")||null}get body(){var r;return((r=this.documentElement)==null?void 0:r.childNodes.find(n=>n.RRNodeType===B.Element&&n.tagName==="BODY"))||null}get head(){var r;return((r=this.documentElement)==null?void 0:r.childNodes.find(n=>n.RRNodeType===B.Element&&n.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(r){let n=r.RRNodeType;if((n===B.Element||n===B.DocumentType)&&this.childNodes.some(t=>t.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${n===B.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let o=gf(this,r);return o.parentElement=null,o}insertBefore(r,n){let o=r.RRNodeType;if((o===B.Element||o===B.DocumentType)&&this.childNodes.some(i=>i.RRNodeType===o))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${o===B.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let t=nb(this,r,n);return t.parentElement=null,t}removeChild(r){return ib(this,r)}open(){this.firstChild=null,this.lastChild=null}close(){}write(r){let n;if(r==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?n="-//W3C//DTD XHTML 1.0 Transitional//EN":r==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(n="-//W3C//DTD HTML 4.0 Transitional//EN"),n){let o=this.createDocumentType("html",n,"");this.open(),this.appendChild(o)}}createDocument(r,n,o){return new e}createDocumentType(r,n,o){let t=new Do(r,n,o);return t.ownerDocument=this,t}createElement(r){let n=new wr(r);return n.ownerDocument=this,n}createElementNS(r,n){return this.createElement(n)}createTextNode(r){let n=new Ro(r);return n.ownerDocument=this,n}createComment(r){let n=new To(r);return n.ownerDocument=this,n}createCDATASection(r){let n=new Co(r);return n.ownerDocument=this,n}toString(){return"RRDocument"}},Do=class extends Me{constructor(r,n,o){super(),U(this,"nodeType",10),U(this,"RRNodeType",B.DocumentType),U(this,"name"),U(this,"publicId"),U(this,"systemId"),U(this,"textContent",null),this.name=r,this.publicId=n,this.systemId=o,this.nodeName=r}toString(){return"RRDocumentType"}},wr=class extends Me{constructor(r){super(),U(this,"nodeType",1),U(this,"RRNodeType",B.Element),U(this,"tagName"),U(this,"attributes",{}),U(this,"shadowRoot",null),U(this,"scrollLeft"),U(this,"scrollTop"),this.tagName=r.toUpperCase(),this.nodeName=r.toUpperCase()}get textContent(){let r="";return this.childNodes.forEach(n=>r+=n.textContent),r}set textContent(r){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(r))}get classList(){return new Vp(this.attributes.class,r=>{this.attributes.class=r})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let r=this.attributes.style?VS(this.attributes.style):{},n=/\B([A-Z])/g;return r.setProperty=(o,t,i)=>{if(n.test(o))return;let s=Mp(o);t?r[s]=t:delete r[s],i==="important"&&(r[s]+=" !important"),this.attributes.style=ky(r)},r.removeProperty=o=>{if(n.test(o))return"";let t=Mp(o),i=r[t]||"";return delete r[t],this.attributes.style=ky(r),i},r}getAttribute(r){return this.attributes[r]===void 0?null:this.attributes[r]}setAttribute(r,n){this.attributes[r]=n}setAttributeNS(r,n,o){this.setAttribute(n,o)}removeAttribute(r){delete this.attributes[r]}appendChild(r){return gf(this,r)}insertBefore(r,n){return nb(this,r,n)}removeChild(r){return ib(this,r)}attachShadow(r){let n=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=n,n}dispatchEvent(r){return!0}toString(){let r="";for(let n in this.attributes)r+=`${n}="${this.attributes[n]}" `;return`${this.tagName} ${r}`}},Zp=class extends wr{constructor(){super(...arguments),U(this,"currentTime"),U(this,"volume"),U(this,"paused"),U(this,"muted"),U(this,"playbackRate"),U(this,"loop")}attachShadow(r){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}},Fp=class extends wr{constructor(){super(...arguments),U(this,"tagName","DIALOG"),U(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}},Ro=class extends Me{constructor(r){super(),U(this,"nodeType",3),U(this,"nodeName","#text"),U(this,"RRNodeType",B.Text),U(this,"data"),this.data=r}get textContent(){return this.data}set textContent(r){this.data=r}toString(){return`RRText text=${JSON.stringify(this.data)}`}},To=class extends Me{constructor(r){super(),U(this,"nodeType",8),U(this,"nodeName","#comment"),U(this,"RRNodeType",B.Comment),U(this,"data"),this.data=r}get textContent(){return this.data}set textContent(r){this.data=r}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},Co=class extends Me{constructor(r){super(),U(this,"nodeName","#cdata-section"),U(this,"nodeType",4),U(this,"RRNodeType",B.CDATA),U(this,"data"),this.data=r}get textContent(){return this.data}set textContent(r){this.data=r}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},Vp=class{constructor(r,n){if(U(this,"onChange"),U(this,"classes",[]),U(this,"add",(...o)=>{for(let t of o){let i=String(t);this.classes.indexOf(i)>=0||this.classes.push(i)}this.onChange&&this.onChange(this.classes.join(" "))}),U(this,"remove",(...o)=>{this.classes=this.classes.filter(t=>o.indexOf(t)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),r){let o=r.trim().split(/\s+/);this.classes.push(...o)}this.onChange=n}};function gf(e,r){return r.parentNode&&r.parentNode.removeChild(r),e.lastChild?(e.lastChild.nextSibling=r,r.previousSibling=e.lastChild):(e.firstChild=r,r.previousSibling=null),e.lastChild=r,r.nextSibling=null,r.parentNode=e,r.parentElement=e,r.ownerDocument=e.ownerDocument,r}function nb(e,r,n){if(!n)return gf(e,r);if(n.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return r===n||(r.parentNode&&r.parentNode.removeChild(r),r.previousSibling=n.previousSibling,n.previousSibling=r,r.nextSibling=n,r.previousSibling?r.previousSibling.nextSibling=r:e.firstChild=r,r.parentElement=e,r.parentNode=e,r.ownerDocument=e.ownerDocument),r}function ib(e,r){if(r.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return r.previousSibling?r.previousSibling.nextSibling=r.nextSibling:e.firstChild=r.nextSibling,r.nextSibling?r.nextSibling.previousSibling=r.previousSibling:e.lastChild=r.previousSibling,r.previousSibling=null,r.nextSibling=null,r.parentElement=null,r.parentNode=null,r}var Ee=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(Ee||{}),qp={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},GS={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},We=null;function jo(e,r,n,o=r.mirror||r.ownerDocument.mirror){e=KS(e,r,n,o),ob(e,r,n,o),HS(e,r,n)}function KS(e,r,n,o){var t;if(n.afterAppend&&!We&&(We=new WeakSet,setTimeout(()=>{We=null},0)),!vf(e,r)){let i=Ao(r,n.mirror,o);(t=e.parentNode)==null||t.replaceChild(i,e),e=i}switch(r.RRNodeType){case B.Document:{if(!vr(e,r,n.mirror,o)){let i=o.getMeta(r);i&&(n.mirror.removeNodeFromMap(e),e.close(),e.open(),n.mirror.add(e,i),We?.add(e))}break}case B.Element:{let i=e,s=r;switch(s.tagName){case"IFRAME":{let a=e.contentDocument;if(!a)break;jo(a,r.contentDocument,n,o);break}}s.shadowRoot&&(i.shadowRoot||i.attachShadow({mode:"open"}),ob(i.shadowRoot,s.shadowRoot,n,o)),XS(i,s,o);break}}return e}function HS(e,r,n){var o;switch(r.RRNodeType){case B.Document:{let t=r.scrollData;t&&n.applyScroll(t,!0);break}case B.Element:{let t=e,i=r;switch(i.scrollData&&n.applyScroll(i.scrollData,!0),i.inputData&&n.applyInput(i.inputData),i.tagName){case"AUDIO":case"VIDEO":{let s=e,a=i;a.paused!==void 0&&(a.paused?s.pause():s.play()),a.muted!==void 0&&(s.muted=a.muted),a.volume!==void 0&&(s.volume=a.volume),a.currentTime!==void 0&&(s.currentTime=a.currentTime),a.playbackRate!==void 0&&(s.playbackRate=a.playbackRate),a.loop!==void 0&&(s.loop=a.loop);break}case"CANVAS":{let s=r;if(s.rr_dataURL!==null){let a=document.createElement("img");a.onload=()=>{let l=t.getContext("2d");l&&l.drawImage(a,0,0,a.width,a.height)},a.src=s.rr_dataURL}s.canvasMutations.forEach(a=>n.applyCanvas(a.event,a.mutation,e));break}case"STYLE":{let s=t.sheet;s&&r.rules.forEach(a=>n.applyStyleSheetMutation(a,s));break}case"DIALOG":{let s=t,a=i,l=s.open,u=s.matches("dialog:modal"),c=a.open,m=a.isModal,p=u!==m,f=l!==c;if((p||l&&f)&&s.close(),c&&(f||p))try{m?s.showModal():s.show()}catch(h){console.warn(h)}break}}break}case B.Text:case B.Comment:case B.CDATA:{e.textContent!==r.data&&(e.textContent=r.data);break}}We?.has(e)&&(We.delete(e),(o=n.afterAppend)==null||o.call(n,e,n.mirror.getId(e)))}function XS(e,r,n){let o=e.attributes,t=r.attributes;for(let i in t){let s=t[i],a=n.getMeta(r);if(a?.isSVG&&qp[i])e.setAttributeNS(qp[i],i,s);else if(r.tagName==="CANVAS"&&i==="rr_dataURL"){let l=document.createElement("img");l.src=s,l.onload=()=>{let u=e.getContext("2d");u&&u.drawImage(l,0,0,l.width,l.height)}}else{if(r.tagName==="IFRAME"&&i==="srcdoc")continue;try{e.setAttribute(i,s)}catch(l){console.warn(l)}}}for(let{name:i}of Array.from(o))i in t||e.removeAttribute(i);r.scrollLeft&&(e.scrollLeft=r.scrollLeft),r.scrollTop&&(e.scrollTop=r.scrollTop)}function ob(e,r,n,o){let t=Array.from(e.childNodes),i=r.childNodes;if(t.length===0&&i.length===0)return;let s=0,a=t.length-1,l=0,u=i.length-1,c=t[s],m=t[a],p=i[l],f=i[u],h,g;for(;s<=a&&l<=u;)if(c===void 0)c=t[++s];else if(m===void 0)m=t[--a];else if(vr(c,p,n.mirror,o))c=t[++s],p=i[++l];else if(vr(m,f,n.mirror,o))m=t[--a],f=i[--u];else if(vr(c,f,n.mirror,o)){try{e.insertBefore(c,m.nextSibling)}catch(x){console.warn(x)}c=t[++s],f=i[--u]}else if(vr(m,p,n.mirror,o)){try{e.insertBefore(m,c)}catch(x){console.warn(x)}m=t[--a],p=i[++l]}else{if(!h){h={};for(let $=s;$<=a;$++){let _=t[$];_&&n.mirror.hasNode(_)&&(h[n.mirror.getId(_)]=$)}}g=h[o.getId(p)];let x=t[g];if(g!==void 0&&x&&vr(x,p,n.mirror,o)){try{e.insertBefore(x,c)}catch($){console.warn($)}t[g]=void 0}else{let $=Ao(p,n.mirror,o);e.nodeName==="#document"&&c&&($.nodeType===$.DOCUMENT_TYPE_NODE&&c.nodeType===c.DOCUMENT_TYPE_NODE||$.nodeType===$.ELEMENT_NODE&&c.nodeType===c.ELEMENT_NODE)&&(e.removeChild(c),n.mirror.removeNodeFromMap(c),c=t[++s]);try{e.insertBefore($,c||null)}catch(_){console.warn(_)}}p=i[++l]}if(s>a){let x=i[u+1],$=null;for(x&&($=n.mirror.getNode(o.getId(x)));l<=u;++l){let _=Ao(i[l],n.mirror,o);try{e.insertBefore(_,$)}catch(y){console.warn(y)}}}else if(l>u)for(;s<=a;s++){let x=t[s];if(!(!x||x.parentNode!==e))try{e.removeChild(x),n.mirror.removeNodeFromMap(x)}catch($){console.warn($)}}let v=e.firstChild,b=r.firstChild;for(;v!==null&&b!==null;)jo(v,b,n,o),v=v.nextSibling,b=b.nextSibling}function Ao(e,r,n){let o=n.getId(e),t=n.getMeta(e),i=null;if(o>-1&&(i=r.getNode(o)),i!==null&&vf(i,e))return i;switch(e.RRNodeType){case B.Document:i=new Document;break;case B.DocumentType:i=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case B.Element:{let s=e.tagName.toLowerCase();s=GS[s]||s,t&&"isSVG"in t&&t?.isSVG?i=document.createElementNS(qp.svg,s):i=document.createElement(e.tagName);break}case B.Text:i=document.createTextNode(e.data);break;case B.Comment:i=document.createComment(e.data);break;case B.CDATA:i=document.createCDATASection(e.data);break}t&&r.add(i,{...t});try{We?.add(i)}catch{}return i}function vf(e,r){return e.nodeType!==r.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===r.tagName}function vr(e,r,n,o){let t=n.getId(e),i=o.getId(r);return t===-1||t!==i?!1:vf(e,r)}var $r=class e extends Lp{constructor(r){super(),U(this,"UNSERIALIZED_STARTING_ID",-2),U(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),U(this,"mirror",ik()),U(this,"scrollData",null),r&&(this.mirror=r)}get unserializedId(){return this._unserializedId--}createDocument(r,n,o){return new e}createDocumentType(r,n,o){let t=new YS(r,n,o);return t.ownerDocument=this,t}createElement(r){let n=r.toUpperCase(),o;switch(n){case"AUDIO":case"VIDEO":o=new Bp(n);break;case"IFRAME":o=new Kp(n,this.mirror);break;case"CANVAS":o=new Jp(n);break;case"STYLE":o=new Gp(n);break;case"DIALOG":o=new Wp(n);break;default:o=new _r(n);break}return o.ownerDocument=this,o}createComment(r){let n=new ek(r);return n.ownerDocument=this,n}createCDATASection(r){let n=new tk(r);return n.ownerDocument=this,n}createTextNode(r){let n=new QS(r);return n.ownerDocument=this,n}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},YS=Do,_r=class extends wr{constructor(){super(...arguments),U(this,"inputData",null),U(this,"scrollData",null)}},Bp=class extends Zp{},Wp=class extends Fp{},Jp=class extends _r{constructor(){super(...arguments),U(this,"rr_dataURL",null),U(this,"canvasMutations",[])}getContext(){return null}},Gp=class extends _r{constructor(){super(...arguments),U(this,"rules",[])}},Kp=class extends _r{constructor(r,n){super(r),U(this,"contentDocument",new $r),this.contentDocument.mirror=n}},QS=Ro,ek=To,tk=Co;function rk(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function sb(e,r,n,o){let t;switch(e.nodeType){case Ee.DOCUMENT_NODE:o&&o.nodeName==="IFRAME"?t=o.contentDocument:(t=r,t.compatMode=e.compatMode);break;case Ee.DOCUMENT_TYPE_NODE:{let s=e;t=r.createDocumentType(s.name,s.publicId,s.systemId);break}case Ee.ELEMENT_NODE:{let s=e,a=rk(s);t=r.createElement(a);let l=t;for(let{name:u,value:c}of Array.from(s.attributes))l.attributes[u]=c;s.scrollLeft&&(l.scrollLeft=s.scrollLeft),s.scrollTop&&(l.scrollTop=s.scrollTop);break}case Ee.TEXT_NODE:t=r.createTextNode(e.textContent||"");break;case Ee.CDATA_SECTION_NODE:t=r.createCDATASection(e.data);break;case Ee.COMMENT_NODE:t=r.createComment(e.textContent||"");break;case Ee.DOCUMENT_FRAGMENT_NODE:t=o.attachShadow({mode:"open"});break;default:return null}let i=n.getMeta(e);return r instanceof $r&&(i||(i=ab(t,r.unserializedId),n.add(e,i)),r.mirror.add(t,{...i})),t}function nk(e,r=ES(),n=new $r){function o(t,i){let s=sb(t,n,r,i);if(s!==null)if(i?.nodeName!=="IFRAME"&&t.nodeType!==Ee.DOCUMENT_FRAGMENT_NODE&&(i?.appendChild(s),s.parentNode=i,s.parentElement=i),t.nodeName==="IFRAME"){let a=t.contentDocument;a&&o(a,s)}else(t.nodeType===Ee.DOCUMENT_NODE||t.nodeType===Ee.ELEMENT_NODE||t.nodeType===Ee.DOCUMENT_FRAGMENT_NODE)&&(t.nodeType===Ee.ELEMENT_NODE&&t.shadowRoot&&o(t.shadowRoot,s),t.childNodes.forEach(a=>o(a,s)))}return o(e,null),n}function ik(){return new Hp}var Hp=class{constructor(){U(this,"idNodeMap",new Map),U(this,"nodeMetaMap",new WeakMap)}getId(r){var n;return r?((n=this.getMeta(r))==null?void 0:n.id)??-1:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let n=this.getId(r);this.idNodeMap.delete(n),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,n){let o=n.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,n)}replace(r,n){let o=this.getNode(r);if(o){let t=this.nodeMetaMap.get(o);t&&this.nodeMetaMap.set(n,t)}this.idNodeMap.set(r,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ab(e,r){switch(e.RRNodeType){case B.Document:return{id:r,type:e.RRNodeType,childNodes:[]};case B.DocumentType:{let n=e;return{id:r,type:e.RRNodeType,name:n.name,publicId:n.publicId,systemId:n.systemId}}case B.Element:return{id:r,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case B.Text:return{id:r,type:e.RRNodeType,textContent:e.textContent||""};case B.Comment:return{id:r,type:e.RRNodeType,textContent:e.textContent||""};case B.CDATA:return{id:r,type:e.RRNodeType,textContent:""}}}var Iy={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},zy={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Oo={},cb={},ok=()=>!!globalThis.Zone;function yf(e){if(Oo[e])return Oo[e];let r=globalThis[e],n=r.prototype,o=e in Iy?Iy[e]:void 0,t=!!(o&&o.every(a=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(n,a))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),i=e in zy?zy[e]:void 0,s=!!(i&&i.every(a=>{var l;return typeof n[a]=="function"&&((l=n[a])==null?void 0:l.toString().includes("[native code]"))}));if(t&&s&&!ok())return Oo[e]=r.prototype,r.prototype;try{let a=document.createElement("iframe");a.style.display="none",document.body.appendChild(a);let l=a.contentWindow;if(!l)return r.prototype;let u=l[e].prototype;if(!u)return a.remove(),n;let c=navigator.userAgent;return c.includes("Safari")&&!c.includes("Chrome")?(a.classList.add("rr-block"),a.setAttribute("__rrwebUntaintedMutationObserver",""),cb[e]=()=>a.remove()):a.remove(),Oo[e]=u}catch{return n}}var Tp={};function Pe(e,r,n){var o,t;let i=(o=Tp[e])==null?void 0:o[n];if(i)return i.call(r);let s=yf(e),a=(t=Object.getOwnPropertyDescriptor(s,n))==null?void 0:t.get;return a?((Tp[e]||(Tp[e]={}))[n]=a,a.call(r)):r[n]}var Cp={};function lb(e,r,n){let o=`${e}.${String(n)}`;if(Cp[o])return Cp[o].bind(r);let i=yf(e)[n];return typeof i!="function"?r[n]:(Cp[o]=i,i.bind(r))}function sk(e){return Pe("Node",e,"ownerDocument")}function ak(e){return Pe("Node",e,"childNodes")}function ck(e){return Pe("Node",e,"parentNode")}function lk(e){return Pe("Node",e,"parentElement")}function uk(e){return Pe("Node",e,"textContent")}function dk(e){return Pe("Node",e,"firstChild")}function pk(e){return Pe("Node",e,"lastChild")}function fk(e){return Pe("Node",e,"nextSibling")}function mk(e){return Pe("Node",e,"previousSibling")}function hk(e,r){return lb("Node",e,"contains")(r)}function gk(e){return lb("Node",e,"getRootNode")()}function vk(e){return!e||!("host"in e)?null:Pe("ShadowRoot",e,"host")}function yk(e){return e.styleSheets}function bk(e){return!e||!("shadowRoot"in e)?null:Pe("Element",e,"shadowRoot")}function xk(e,r){return Pe("Element",e,"querySelector")(r)}function wk(e,r){return Pe("Element",e,"querySelectorAll")(r)}function $k(){return[yf("MutationObserver").constructor,cb.MutationObserver??(()=>{})]}var ub=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ub=()=>new Date().getTime());function _k(e,r,n){try{if(!(r in e))return()=>{};let o=e[r],t=n(o);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=t,()=>{e[r]=o}}catch{return()=>{}}}var Sk={ownerDocument:sk,childNodes:ak,parentNode:ck,parentElement:lk,textContent:uk,firstChild:dk,lastChild:pk,nextSibling:fk,previousSibling:mk,contains:hk,getRootNode:gk,host:vk,styleSheets:yk,shadowRoot:bk,querySelector:xk,querySelectorAll:wk,nowTimestamp:ub,mutationObserverCtor:$k,patch:_k},yr=`Please stop import mirror directly. Instead of that,\r
117
117
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
118
- or you can use record.mirror to access the mirror instance during recording.`,Mv={map:{},getId(){return console.error(gr),-1},getNode(){return console.error(gr),null},removeNodeFromMap(){console.error(gr)},has(){return console.error(gr),!1},reset(){console.error(gr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Mv=new Proxy(Mv,{get(e,r,n){return r==="map"&&console.error(gr),Reflect.get(e,r,n)}}));function uS(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function dS(e){let r={},n=(t,i)=>{let s={value:t,parent:i,children:[]};return r[t.node.id]=s,s},o=[];for(let t of e){let{nextId:i,parentId:s}=t;if(i&&i in r){let a=r[i];if(a.parent){let u=a.parent.children.indexOf(a);a.parent.children.splice(u,0,n(t,a.parent))}else{let u=o.indexOf(a);o.splice(u,0,n(t,null))}continue}if(s in r){let a=r[s];a.children.push(n(t,a));continue}o.push(n(t,null))}return o}function $y(e,r){r(e.value);for(let n=e.children.length-1;n>=0;n--)$y(e.children[n],r)}function fp(e,r){return!!(e.nodeName==="IFRAME"&&r.getMeta(e))}function _y(e,r){var n,o;let t=(o=(n=e.ownerDocument)==null?void 0:n.defaultView)==null?void 0:o.frameElement;if(!t||t===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};let i=t.getBoundingClientRect(),s=_y(t,r),a=i.height/t.clientHeight;return{x:i.x*s.relativeScale+s.x,y:i.y*s.relativeScale+s.y,relativeScale:a,absoluteScale:s.absoluteScale*a}}function po(e){return e?e instanceof Me&&"shadowRoot"in e?!!e.shadowRoot:!!lS.shadowRoot(e):!1}function cn(e,r){let n=e?.[r[0]];return n?r.length===1?n:cn(n.cssRules,r.slice(1)):null}function Lv(e){let r=[...e],n=r.pop();return{positions:r,index:n}}function pS(e){let r=new Set,n=[];for(let o=e.length;o--;){let t=e[o];r.has(t.id)||(n.push(t),r.add(t.id))}return n}var Op=class{constructor(){L(this,"id",1),L(this,"styleIDMap",new WeakMap),L(this,"idStyleMap",new Map)}getId(r){return this.styleIDMap.get(r)??-1}has(r){return this.styleIDMap.has(r)}add(r,n){if(this.has(r))return this.getId(r);let o;return n===void 0?o=this.id++:o=n,this.styleIDMap.set(r,o),this.idStyleMap.set(o,r),o}getStyle(r){return this.idStyleMap.get(r)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},ae=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(ae||{}),K=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(K||{}),de=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(de||{}),wo=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(wo||{}),Ep=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ep||{}),W=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(W||{}),ut=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ut||{}),Zv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ln=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(an=0;an<Zv.length;an++)ln[Zv.charCodeAt(an)]=an;var an,fS=function(e){var r=e.length*.75,n=e.length,o,t=0,i,s,a,u;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var l=new ArrayBuffer(r),c=new Uint8Array(l);for(o=0;o<n;o+=4)i=ln[e.charCodeAt(o)],s=ln[e.charCodeAt(o+1)],a=ln[e.charCodeAt(o+2)],u=ln[e.charCodeAt(o+3)],c[t++]=i<<2|s>>4,c[t++]=(s&15)<<4|a>>2,c[t++]=(a&3)<<6|u&63;return l},mS=`(function() {
118
+ or you can use record.mirror to access the mirror instance during recording.`,Oy={map:{},getId(){return console.error(yr),-1},getNode(){return console.error(yr),null},removeNodeFromMap(){console.error(yr)},has(){return console.error(yr),!1},reset(){console.error(yr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Oy=new Proxy(Oy,{get(e,r,n){return r==="map"&&console.error(yr),Reflect.get(e,r,n)}}));function kk(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Ik(e){let r={},n=(t,i)=>{let s={value:t,parent:i,children:[]};return r[t.node.id]=s,s},o=[];for(let t of e){let{nextId:i,parentId:s}=t;if(i&&i in r){let a=r[i];if(a.parent){let l=a.parent.children.indexOf(a);a.parent.children.splice(l,0,n(t,a.parent))}else{let l=o.indexOf(a);o.splice(l,0,n(t,null))}continue}if(s in r){let a=r[s];a.children.push(n(t,a));continue}o.push(n(t,null))}return o}function db(e,r){r(e.value);for(let n=e.children.length-1;n>=0;n--)db(e.children[n],r)}function jp(e,r){return!!(e.nodeName==="IFRAME"&&r.getMeta(e))}function pb(e,r){var n,o;let t=(o=(n=e.ownerDocument)==null?void 0:n.defaultView)==null?void 0:o.frameElement;if(!t||t===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};let i=t.getBoundingClientRect(),s=pb(t,r),a=i.height/t.clientHeight;return{x:i.x*s.relativeScale+s.x,y:i.y*s.relativeScale+s.y,relativeScale:a,absoluteScale:s.absoluteScale*a}}function Eo(e){return e?e instanceof Me&&"shadowRoot"in e?!!e.shadowRoot:!!Sk.shadowRoot(e):!1}function gn(e,r){let n=e?.[r[0]];return n?r.length===1?n:gn(n.cssRules,r.slice(1)):null}function Ey(e){let r=[...e],n=r.pop();return{positions:r,index:n}}function zk(e){let r=new Set,n=[];for(let o=e.length;o--;){let t=e[o];r.has(t.id)||(n.push(t),r.add(t.id))}return n}var Xp=class{constructor(){L(this,"id",1),L(this,"styleIDMap",new WeakMap),L(this,"idStyleMap",new Map)}getId(r){return this.styleIDMap.get(r)??-1}has(r){return this.styleIDMap.has(r)}add(r,n){if(this.has(r))return this.getId(r);let o;return n===void 0?o=this.id++:o=n,this.styleIDMap.set(r,o),this.idStyleMap.set(o,r),o}getStyle(r){return this.idStyleMap.get(r)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},ae=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(ae||{}),H=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(H||{}),pe=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(pe||{}),Uo=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Uo||{}),Yp=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Yp||{}),G=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(G||{}),ft=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ft||{}),Py="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(hn=0;hn<Py.length;hn++)vn[Py.charCodeAt(hn)]=hn;var hn,Ok=function(e){var r=e.length*.75,n=e.length,o,t=0,i,s,a,l;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var u=new ArrayBuffer(r),c=new Uint8Array(u);for(o=0;o<n;o+=4)i=vn[e.charCodeAt(o)],s=vn[e.charCodeAt(o+1)],a=vn[e.charCodeAt(o+2)],l=vn[e.charCodeAt(o+3)],c[t++]=i<<2|s>>4,c[t++]=(s&15)<<4|a>>2,c[t++]=(a&3)<<6|l&63;return u},Ek=`(function() {
119
119
  "use strict";
120
120
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
121
121
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -190,7 +190,7 @@ or you can use record.mirror to access the mirror instance during recording.`,Mv
190
190
  };
191
191
  })();
192
192
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
193
- `;typeof self<"u"&&self.Blob&&new Blob([mS],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((kg=e.contentWindow)==null?void 0:kg.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Yv();function hS(e){return{all:e=e||new Map,on:function(r,n){var o=e.get(r);o?o.push(n):e.set(r,[n])},off:function(r,n){var o=e.get(r);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(r,[]))},emit:function(r,n){var o=e.get(r);o&&o.slice().map(function(t){t(n)}),(o=e.get("*"))&&o.slice().map(function(t){t(r,n)})}}}function gS(e=window,r=document){if("scrollBehavior"in r.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let n=e.HTMLElement||e.Element,o=468,t={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||u,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function s(b){let x=["MSIE ","Trident/","Edge/"];return new RegExp(x.join("|")).test(b)}let a=s(e.navigator.userAgent)?1:0;function u(b,x){this.scrollLeft=b,this.scrollTop=x}function l(b){return .5*(1-Math.cos(Math.PI*b))}function c(b){if(b===null||typeof b!="object"||b.behavior===void 0||b.behavior==="auto"||b.behavior==="instant")return!0;if(typeof b=="object"&&b.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+b.behavior+" is not a valid value for enumeration ScrollBehavior.")}function f(b,x){if(x==="Y")return b.clientHeight+a<b.scrollHeight;if(x==="X")return b.clientWidth+a<b.scrollWidth}function d(b,x){let $=e.getComputedStyle(b,null)["overflow"+x];return $==="auto"||$==="scroll"}function p(b){let x=f(b,"Y")&&d(b,"Y"),$=f(b,"X")&&d(b,"X");return x||$}function h(b){for(;b!==r.body&&p(b)===!1;)b=b.parentNode||b.host;return b}function g(b){let x=i(),$,_,y,w=(x-b.startTime)/o;w=w>1?1:w,$=l(w),_=b.startX+(b.x-b.startX)*$,y=b.startY+(b.y-b.startY)*$,b.method.call(b.scrollable,_,y),(_!==b.x||y!==b.y)&&e.requestAnimationFrame(g.bind(e,b))}function v(b,x,$){let _,y,w,k,O=i();b===r.body?(_=e,y=e.scrollX||e.pageXOffset,w=e.scrollY||e.pageYOffset,k=t.scroll):(_=b,y=b.scrollLeft,w=b.scrollTop,k=u),g({scrollable:_,method:k,startTime:O,startX:y,startY:w,x,y:$})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(c(arguments[0])===!0){t.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}v.call(e,r.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(c(arguments[0])){t.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}v.call(e,r.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(c(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");t.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}let b=arguments[0].left,x=arguments[0].top;v.call(this,this,typeof b>"u"?this.scrollLeft:~~b,typeof x>"u"?this.scrollTop:~~x)},n.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(c(arguments[0])===!0){t.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(c(arguments[0])===!0){t.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let b=h(this),x=b.getBoundingClientRect(),$=this.getBoundingClientRect();b!==r.body?(v.call(this,b,b.scrollLeft+$.left-x.left,b.scrollTop+$.top-x.top),e.getComputedStyle(b).position!=="fixed"&&e.scrollBy({left:x.left,top:x.top,behavior:"smooth"})):e.scrollBy({left:$.left,top:$.top,behavior:"smooth"})}}var Np=class{constructor(r=[],n){L(this,"timeOffset",0),L(this,"speed"),L(this,"actions"),L(this,"raf",null),L(this,"lastTimestamp"),this.actions=r,this.speed=n.speed}addAction(r){let n=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=r.delay)this.actions.push(r);else{let o=this.findActionIndex(r);this.actions.splice(o,0,r)}n&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}updateLiveTime(){this.raf===!0&&this.rafCheck()}rafCheck(){let r=performance.now();for(this.timeOffset+=(r-this.lastTimestamp)*this.speed,this.lastTimestamp=r;this.actions.length;){let n=this.actions[0];if(this.timeOffset>=n.delay)this.actions.shift(),n.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(r){this.speed=r}isActive(){return this.raf!==null}findActionIndex(r){let n=0,o=this.actions.length-1;for(;n<=o;){let t=Math.floor((n+o)/2);if(this.actions[t].delay<r.delay)n=t+1;else if(this.actions[t].delay>r.delay)o=t-1;else return t+1}return n}};function Fv(e,r){if(e.type===ae.IncrementalSnapshot&&e.data.source===K.MouseMove&&e.data.positions&&e.data.positions.length){let n=e.data.positions[0].timeOffset,o=e.timestamp+n;return e.delay=o-r,o-r}return e.delay=e.timestamp-r,e.delay}/*! *****************************************************************************
193
+ `;typeof self<"u"&&self.Blob&&new Blob([Ek],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((mv=e.contentWindow)==null?void 0:mv.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Zy();function Pk(e){return{all:e=e||new Map,on:function(r,n){var o=e.get(r);o?o.push(n):e.set(r,[n])},off:function(r,n){var o=e.get(r);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(r,[]))},emit:function(r,n){var o=e.get(r);o&&o.slice().map(function(t){t(n)}),(o=e.get("*"))&&o.slice().map(function(t){t(r,n)})}}}function Nk(e=window,r=document){if("scrollBehavior"in r.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let n=e.HTMLElement||e.Element,o=468,t={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||l,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function s(b){let x=["MSIE ","Trident/","Edge/"];return new RegExp(x.join("|")).test(b)}let a=s(e.navigator.userAgent)?1:0;function l(b,x){this.scrollLeft=b,this.scrollTop=x}function u(b){return .5*(1-Math.cos(Math.PI*b))}function c(b){if(b===null||typeof b!="object"||b.behavior===void 0||b.behavior==="auto"||b.behavior==="instant")return!0;if(typeof b=="object"&&b.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+b.behavior+" is not a valid value for enumeration ScrollBehavior.")}function m(b,x){if(x==="Y")return b.clientHeight+a<b.scrollHeight;if(x==="X")return b.clientWidth+a<b.scrollWidth}function p(b,x){let $=e.getComputedStyle(b,null)["overflow"+x];return $==="auto"||$==="scroll"}function f(b){let x=m(b,"Y")&&p(b,"Y"),$=m(b,"X")&&p(b,"X");return x||$}function h(b){for(;b!==r.body&&f(b)===!1;)b=b.parentNode||b.host;return b}function g(b){let x=i(),$,_,y,w=(x-b.startTime)/o;w=w>1?1:w,$=u(w),_=b.startX+(b.x-b.startX)*$,y=b.startY+(b.y-b.startY)*$,b.method.call(b.scrollable,_,y),(_!==b.x||y!==b.y)&&e.requestAnimationFrame(g.bind(e,b))}function v(b,x,$){let _,y,w,k,O=i();b===r.body?(_=e,y=e.scrollX||e.pageXOffset,w=e.scrollY||e.pageYOffset,k=t.scroll):(_=b,y=b.scrollLeft,w=b.scrollTop,k=l),g({scrollable:_,method:k,startTime:O,startX:y,startY:w,x,y:$})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(c(arguments[0])===!0){t.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}v.call(e,r.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(c(arguments[0])){t.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}v.call(e,r.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(c(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");t.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}let b=arguments[0].left,x=arguments[0].top;v.call(this,this,typeof b>"u"?this.scrollLeft:~~b,typeof x>"u"?this.scrollTop:~~x)},n.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(c(arguments[0])===!0){t.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(c(arguments[0])===!0){t.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let b=h(this),x=b.getBoundingClientRect(),$=this.getBoundingClientRect();b!==r.body?(v.call(this,b,b.scrollLeft+$.left-x.left,b.scrollTop+$.top-x.top),e.getComputedStyle(b).position!=="fixed"&&e.scrollBy({left:x.left,top:x.top,behavior:"smooth"})):e.scrollBy({left:$.left,top:$.top,behavior:"smooth"})}}var Qp=class{constructor(r=[],n){L(this,"timeOffset",0),L(this,"speed"),L(this,"actions"),L(this,"raf",null),L(this,"lastTimestamp"),this.actions=r,this.speed=n.speed}addAction(r){let n=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=r.delay)this.actions.push(r);else{let o=this.findActionIndex(r);this.actions.splice(o,0,r)}n&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}updateLiveTime(){this.raf===!0&&this.rafCheck()}rafCheck(){let r=performance.now();for(this.timeOffset+=(r-this.lastTimestamp)*this.speed,this.lastTimestamp=r;this.actions.length;){let n=this.actions[0];if(this.timeOffset>=n.delay)this.actions.shift(),n.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(r){this.speed=r}isActive(){return this.raf!==null}findActionIndex(r){let n=0,o=this.actions.length-1;for(;n<=o;){let t=Math.floor((n+o)/2);if(this.actions[t].delay<r.delay)n=t+1;else if(this.actions[t].delay>r.delay)o=t-1;else return t+1}return n}};function Ny(e,r){if(e.type===ae.IncrementalSnapshot&&e.data.source===H.MouseMove&&e.data.positions&&e.data.positions.length){let n=e.data.positions[0].timeOffset,o=e.timestamp+n;return e.delay=o-r,o-r}return e.delay=e.timestamp-r,e.delay}/*! *****************************************************************************
194
194
  Copyright (c) Microsoft Corporation.
195
195
 
196
196
  Permission to use, copy, modify, and/or distribute this software for any
@@ -203,8 +203,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
203
203
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
204
204
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
205
205
  PERFORMANCE OF THIS SOFTWARE.
206
- ***************************************************************************** */function Vv(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o,t,i=n.call(e),s=[];try{for(;(r===void 0||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return s}var yr;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(yr||(yr={}));var Sy={type:"xstate.init"};function mp(e){return e===void 0?[]:[].concat(e)}function vr(e){return{type:"xstate.assign",assignment:e}}function qv(e,r){return typeof(e=typeof e=="string"&&r&&r[e]?r[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function $o(e){return function(r){return e===r}}function ky(e){return typeof e=="string"?{type:e}:e}function Bv(e,r){return{value:e,context:r,actions:[],changed:!1,matches:$o(e)}}function Jv(e,r,n){var o=r,t=!1;return[e.filter(function(i){if(i.type==="xstate.assign"){t=!0;var s=Object.assign({},o);return typeof i.assignment=="function"?s=i.assignment(o,n):Object.keys(i.assignment).forEach(function(a){s[a]=typeof i.assignment[a]=="function"?i.assignment[a](o,n):i.assignment[a]}),o=s,!1}return!0}),o,t]}function Iy(e,r){r===void 0&&(r={});var n=Vv(Jv(mp(e.states[e.initial].entry).map(function(s){return qv(s,r.actions)}),e.context,Sy),2),o=n[0],t=n[1],i={config:e,_options:r,initialState:{value:e.initial,actions:o,context:t,matches:$o(e.initial)},transition:function(s,a){var u,l,c=typeof s=="string"?{value:s,context:e.context}:s,f=c.value,d=c.context,p=ky(a),h=e.states[f];if(h.on){var g=mp(h.on[p.type]);try{for(var v=(function(J){var me=typeof Symbol=="function"&&Symbol.iterator,Qe=me&&J[me],ue=0;if(Qe)return Qe.call(J);if(J&&typeof J.length=="number")return{next:function(){return J&&ue>=J.length&&(J=void 0),{value:J&&J[ue++],done:!J}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")})(g),b=v.next();!b.done;b=v.next()){var x=b.value;if(x===void 0)return Bv(f,d);var $=typeof x=="string"?{target:x}:x,_=$.target,y=$.actions,w=y===void 0?[]:y,k=$.cond,O=k===void 0?function(){return!0}:k,A=_===void 0,N=_??f,X=e.states[N];if(O(d,p)){var M=Vv(Jv((A?mp(w):[].concat(h.exit,w,X.entry).filter(function(J){return J})).map(function(J){return qv(J,i._options.actions)}),d,p),3),E=M[0],ht=M[1],Je=M[2],De=_??f;return{value:De,context:ht,actions:E,changed:_!==f||E.length>0||Je,matches:$o(De)}}}}catch(J){u={error:J}}finally{try{b&&!b.done&&(l=v.return)&&l.call(v)}finally{if(u)throw u.error}}}return Bv(f,d)}};return i}var Wv=function(e,r){return e.actions.forEach(function(n){var o=n.exec;return o&&o(e.context,r)})};function zy(e){var r=e.initialState,n=yr.NotStarted,o=new Set,t={_machine:e,send:function(i){n===yr.Running&&(r=e.transition(r,i),Wv(r,ky(i)),o.forEach(function(s){return s(r)}))},subscribe:function(i){return o.add(i),i(r),{unsubscribe:function(){return o.delete(i)}}},start:function(i){if(i){var s=typeof i=="object"?i:{context:e.config.context,value:i};r={value:s.value,actions:[],context:s.context,matches:$o(s.value)}}return n=yr.Running,Wv(r,Sy),t},stop:function(){return n=yr.Stopped,o.clear(),t},get state(){return r},get status(){return n}};return t}function vS(e,r){for(let n=e.length-1;n>=0;n--){let o=e[n];if(o.type===ae.Meta&&o.timestamp<=r)return e.slice(n)}return e}function yS(e,{getCastFn:r,applyEventsSynchronously:n,emitter:o}){let t=Iy({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:vr({lastPlayedEvent:(i,s)=>s.type==="CAST_EVENT"?s.payload.event:i.lastPlayedEvent}),recordTimeOffset:vr((i,s)=>{let a=i.timeOffset;return"payload"in s&&"timeOffset"in s.payload&&(a=s.payload.timeOffset),{...i,timeOffset:a,baselineTime:i.events[0].timestamp+a}}),play(i){var s;let{timer:a,events:u,baselineTime:l,lastPlayedEvent:c}=i;a.clear();for(let h of u)Fv(h,l);let f=vS(u,l),d=c?.timestamp;c?.type===ae.IncrementalSnapshot&&c.data.source===K.MouseMove&&(d=c.timestamp+((s=c.data.positions[0])==null?void 0:s.timeOffset)),l<(d||0)&&o.emit(W.PlayBack);let p=new Array;for(let h of f)if(!(d&&d<l&&(h.timestamp<=d||h===c)))if(h.timestamp<l)p.push(h);else{let g=r(h,!1);a.addAction({doAction:()=>{g()},delay:h.delay})}n(p),o.emit(W.Flush),a.start()},pause(i){i.timer.clear()},resetLastPlayedEvent:vr(i=>({...i,lastPlayedEvent:null})),startLive:vr({baselineTime:(i,s)=>(i.timer.start(),s.type==="TO_LIVE"&&s.payload.baselineTime?s.payload.baselineTime:Date.now())}),addEvent:vr((i,s)=>{let{baselineTime:a,timer:u,events:l}=i;if(s.type==="ADD_EVENT"){let{event:c}=s.payload;Fv(c,a);let f=l.length-1;if(!l[f]||l[f].timestamp<=c.timestamp)l.push(c);else{let h=-1,g=0;for(;g<=f;){let v=Math.floor((g+f)/2);l[v].timestamp<=c.timestamp?g=v+1:f=v-1}h===-1&&(h=g),l.splice(h,0,c)}let d=c.timestamp<a,p=r(c,d);d?p():u.isActive()&&u.addAction({doAction:()=>{p()},delay:c.delay})}return{...i,events:l}})}});return zy(t)}function bS(e){let r=Iy({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(n,o)=>{"payload"in o&&n.timer.setSpeed(o.payload.speed)},recordSpeed:vr({normalSpeed:n=>n.timer.speed}),restoreSpeed:n=>{n.timer.setSpeed(n.normalSpeed)}}});return zy(r)}var xS=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Gv=new Map;function Oy(e,r){let n=Gv.get(e);return n||(n=new Map,Gv.set(e,n)),n.has(r)||n.set(r,[]),n.get(r)}function dt(e,r,n){return async o=>{if(o&&typeof o=="object"&&"rr_type"in o)if(n&&(n.isUnchanged=!1),o.rr_type==="ImageBitmap"&&"args"in o){let t=await dt(e,r,n)(o.args);return await createImageBitmap.apply(null,t)}else if("index"in o){if(n||r===null)return o;let{rr_type:t,index:i}=o;return Oy(r,t)[i]}else if("args"in o){let{rr_type:t,args:i}=o,s=window[t];return new s(...await Promise.all(i.map(dt(e,r,n))))}else{if("base64"in o)return fS(o.base64);if("src"in o){let t=e.get(o.src);if(t)return t;{let i=new Image;return i.src=o.src,e.set(o.src,i),i}}else if("data"in o&&o.rr_type==="Blob"){let t=await Promise.all(o.data.map(dt(e,r,n)));return new Blob(t,{type:o.type})}}else if(Array.isArray(o))return await Promise.all(o.map(dt(e,r,n)));return o}}function wS(e,r){try{return r===wo.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}var $S=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function _S(e,r){if(!r?.constructor)return;let{name:n}=r.constructor;if(!$S.includes(n))return;let o=Oy(e,n);o.includes(r)||o.push(r)}async function SS({mutation:e,target:r,type:n,imageMap:o,errorHandler:t}){try{let i=wS(r,n);if(!i)return;if(e.setter){i[e.property]=e.args[0];return}let s=i[e.property],a=await Promise.all(e.args.map(dt(o,i))),u=s.apply(i,a);_S(i,u);let l=!1}catch(i){t(e,i)}}async function kS({event:e,mutations:r,target:n,imageMap:o,errorHandler:t}){let i=n.getContext("2d");if(!i){t(r[0],new Error("Canvas context is null"));return}let s=r.map(async u=>Promise.all(u.args.map(dt(o,i))));(await Promise.all(s)).forEach((u,l)=>{let c=r[l];try{if(c.setter){i[c.property]=c.args[0];return}let f=i[c.property];c.property==="drawImage"&&typeof c.args[0]=="string"?(o.get(e),f.apply(i,c.args)):f.apply(i,u)}catch(f){t(c,f)}})}async function Kv({event:e,mutation:r,target:n,imageMap:o,canvasEventMap:t,errorHandler:i}){try{let s=t.get(e)||r,a="commands"in s?s.commands:[s];if([wo.WebGL,wo.WebGL2].includes(r.type)){for(let u=0;u<a.length;u++){let l=a[u];await SS({mutation:l,type:r.type,target:n,imageMap:o,errorHandler:i})}return}await kS({event:e,mutations:a,target:n,imageMap:o,errorHandler:i})}catch(s){i(r,s)}}var Dp=class{constructor(r){L(this,"mediaMap",new Map),L(this,"warn"),L(this,"service"),L(this,"speedService"),L(this,"emitter"),L(this,"getCurrentTime"),L(this,"metadataCallbackMap",new Map),this.warn=r.warn,this.service=r.service,this.speedService=r.speedService,this.emitter=r.emitter,this.getCurrentTime=r.getCurrentTime,this.emitter.on(W.Start,this.start.bind(this)),this.emitter.on(W.SkipStart,this.start.bind(this)),this.emitter.on(W.Pause,this.pause.bind(this)),this.emitter.on(W.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(r={pause:!1}){this.mediaMap.forEach((n,o)=>{this.syncTargetWithState(o),r.pause&&o.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:r,target:n,mediaState:o}){if(o.isPlaying){let i=(r-o.lastInteractionTimeOffset)/1e3*o.playbackRate,s="duration"in n&&n.duration;if(Number.isNaN(s)){this.waitForMetadata(n);return}let a=o.currentTimeAtLastInteraction+i;n.loop&&s!==!1&&(a=a%s),n.currentTime=a}else n.pause(),n.currentTime=o.currentTimeAtLastInteraction}waitForMetadata(r){if(this.metadataCallbackMap.has(r)||!("addEventListener"in r))return;let n=()=>{this.metadataCallbackMap.delete(r);let o=this.mediaMap.get(r);o&&this.seekTo({time:this.getCurrentTime(),target:r,mediaState:o})};this.metadataCallbackMap.set(r,n),r.addEventListener("loadedmetadata",n,{once:!0})}getMediaStateFromMutation({target:r,timeOffset:n,mutation:o}){let t=this.mediaMap.get(r),{type:i,playbackRate:s,currentTime:a,muted:u,volume:l,loop:c}=o;return{isPlaying:i===Ep.Play||i!==Ep.Pause&&(t?.isPlaying||r.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:a??t?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:n,playbackRate:s??t?.playbackRate??1,volume:l??t?.volume??1,muted:u??t?.muted??r.getAttribute("muted")===null,loop:c??t?.loop??r.getAttribute("loop")===null}}syncTargetWithState(r){let n=this.mediaMap.get(r);if(!n)return;let{muted:o,loop:t,volume:i,isPlaying:s}=n,a=this.service.state.matches("paused"),u=n.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:r,mediaState:n}),r.volume!==i&&(r.volume=i),r.muted=o,r.loop=t,r.playbackRate!==u&&(r.playbackRate=u),s&&!a?r.play():r.pause()}catch(l){this.warn(`Failed to replay media interactions: ${l.message||l}`)}}addMediaElements(r,n,o){if(!["AUDIO","VIDEO"].includes(r.nodeName))return;let t=r,i=o.getMeta(t);if(!i||!("attributes"in i))return;let s=this.service.state.matches("paused"),a=i.attributes,u=!1;a.rr_mediaState?u=a.rr_mediaState==="played":u=t.getAttribute("autoplay")!==null,u&&s&&t.pause();let l=1;typeof a.rr_mediaPlaybackRate=="number"&&(l=a.rr_mediaPlaybackRate);let c=!1;typeof a.rr_mediaMuted=="boolean"?c=a.rr_mediaMuted:c=t.getAttribute("muted")!==null;let f=!1;typeof a.rr_mediaLoop=="boolean"?f=a.rr_mediaLoop:f=t.getAttribute("loop")!==null;let d=1;typeof a.rr_mediaVolume=="number"&&(d=a.rr_mediaVolume);let p=0;typeof a.rr_mediaCurrentTime=="number"&&(p=a.rr_mediaCurrentTime),this.mediaMap.set(t,{isPlaying:u,currentTimeAtLastInteraction:p,lastInteractionTimeOffset:n,playbackRate:l,volume:d,muted:c,loop:f}),this.syncTargetWithState(t)}mediaMutation({target:r,timeOffset:n,mutation:o}){this.mediaMap.set(r,this.getMediaStateFromMutation({target:r,timeOffset:n,mutation:o})),this.syncTargetWithState(r)}isSupportedMediaElement(r){return["AUDIO","VIDEO"].includes(r.nodeName)}reset(){this.mediaMap.clear()}};function fo(e,r){if(e.nodeName!=="DIALOG"||e instanceof Me)return;let n=e,o=n.open,t=o&&n.matches("dialog:modal"),i=n.getAttribute("rr_open_mode"),s=typeof r?.attributes.open=="string"||typeof n.getAttribute("open")=="string",a=i==="modal";if(!(o&&!(t&&i==="non-modal"||!t&&a))){if(!n.isConnected){console.warn("dialog is not attached to the dom",n);return}o&&n.close(),s&&(a?n.showModal():n.show())}}function IS(e,r){if(e.nodeName!=="DIALOG"||e instanceof Me)return;let n=e;if(!n.isConnected){console.warn("dialog is not attached to the dom",n);return}r.attributes.open===null&&(n.removeAttribute("open"),n.removeAttribute("rr_open_mode"))}var zS=5*1e3,OS=hS,Xv="[replayer]",hp={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Hv(e){return e.type==ae.IncrementalSnapshot&&(e.data.source==K.TouchMove||e.data.source==K.MouseInteraction&&e.data.type==de.TouchStart)}var _o=class{constructor(r,n){if(L(this,"wrapper"),L(this,"iframe"),L(this,"UNSAFE_replayCanvas",!1),L(this,"service"),L(this,"speedService"),L(this,"config"),L(this,"usingVirtualDom",!1),L(this,"virtualDom",new xr),L(this,"mouse"),L(this,"mouseTail",null),L(this,"tailPositions",[]),L(this,"emitter",OS()),L(this,"nextUserInteractionEvent"),L(this,"legacy_missingNodeRetryMap",{}),L(this,"cache",iv()),L(this,"imageMap",new Map),L(this,"canvasEventMap",new Map),L(this,"mirror",Yv()),L(this,"styleMirror",new Op),L(this,"mediaManager"),L(this,"firstFullSnapshot",null),L(this,"newDocumentQueue",[]),L(this,"mousePos",null),L(this,"touchActive",null),L(this,"lastMouseDownEvent",null),L(this,"lastHoveredRootNode"),L(this,"lastSelectionData",null),L(this,"constructedStyleMutations",[]),L(this,"adoptedStyleSheets",[]),L(this,"handleResize",a=>{this.iframe.style.display="inherit";for(let u of[this.mouseTail,this.iframe])u&&(u.setAttribute("width",String(a.width)),u.setAttribute("height",String(a.height)))}),L(this,"applyEventsSynchronously",a=>{for(let u of a){switch(u.type){case ae.DomContentLoaded:case ae.Load:continue;case ae.FullSnapshot:case ae.Meta:case ae.Plugin:case ae.IncrementalSnapshot:break}this.getCastFn(u,!0)()}}),L(this,"getCastFn",(a,u=!1)=>{let l;switch(a.type){case ae.DomContentLoaded:case ae.Load:break;case ae.Custom:l=()=>{this.emitter.emit(W.CustomEvent,a)};break;case ae.Meta:l=()=>this.emitter.emit(W.Resize,{width:a.data.width,height:a.data.height});break;case ae.FullSnapshot:l=()=>{var f;if(this.firstFullSnapshot){if(this.firstFullSnapshot===a){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(a,u),(f=this.iframe.contentWindow)==null||f.scrollTo(a.data.initialOffset)};break;case ae.IncrementalSnapshot:l=()=>{if(this.applyIncremental(a,u),!u&&(a===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let f of this.service.state.context.events)if(!(f.timestamp<=a.timestamp)&&this.isUserInteraction(f)){f.delay-a.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=f);break}if(this.nextUserInteractionEvent){let f=this.nextUserInteractionEvent.delay-a.delay,d={speed:Math.min(Math.round(f/zS),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:d}),this.emitter.emit(W.SkipStart,d)}}};break}return()=>{l&&l();for(let d of this.config.plugins||[])d.handler&&d.handler(a,u,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:a}});let f=this.service.state.context.events.length-1;if(!this.config.liveMode&&a===this.service.state.context.events[f]){let d=()=>{f<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(W.Finish))},p=50;a.type===ae.IncrementalSnapshot&&a.data.source===K.MouseMove&&a.data.positions.length&&(p+=Math.max(0,-a.data.positions[0].timeOffset)),setTimeout(d,p)}this.emitter.emit(W.EventCast,a)}}),!n?.liveMode&&r.length<2)throw new Error("Replayer need at least 2 events.");let o={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:hp,useVirtualDom:!0,logger:console};this.config=Object.assign({},o,n),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(W.Resize,this.handleResize),this.setupDom();for(let a of this.config.plugins||[])a.getMirror&&a.getMirror({nodeMirror:this.mirror});this.emitter.on(W.Flush,()=>{if(this.usingVirtualDom){let a={mirror:this.mirror,applyCanvas:(u,l,c)=>{Kv({event:u,mutation:l,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(u,l)=>{u.source===K.StyleSheetRule?this.applyStyleSheetRule(u,l):u.source===K.StyleDeclaration&&this.applyStyleDeclaration(u,l)},afterAppend:(u,l)=>{for(let c of this.config.plugins||[])c.onBuild&&c.onBuild(u,{id:l,replayer:this})}};if(this.iframe.contentDocument)try{bo(this.iframe.contentDocument,this.virtualDom,a,this.virtualDom.mirror)}catch(u){this.warn(u)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let u in this.legacy_missingNodeRetryMap)try{let l=this.legacy_missingNodeRetryMap[u],c=xo(l.node,this.mirror,this.virtualDom.mirror);bo(c,l.node,a,this.virtualDom.mirror),l.node=c}catch(l){this.warn(l)}this.constructedStyleMutations.forEach(u=>{this.applyStyleSheetMutation(u)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(u=>{this.applyAdoptedStyleSheet(u)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[a,u]=this.lastMouseDownEvent;a.dispatchEvent(u)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(W.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let t=new Np([],{speed:this.config.speed});this.service=yS({events:r.map(a=>n&&n.unpackFn?n.unpackFn(a):a).sort((a,u)=>a.timestamp-u.timestamp),timer:t,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(a=>{this.emitter.emit(W.StateChange,{player:a})}),this.speedService=bS({normalSpeed:-1,timer:t}),this.speedService.start(),this.speedService.subscribe(a=>{this.emitter.emit(W.StateChange,{speed:a})}),this.mediaManager=new Dp({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let i=this.service.state.context.events.find(a=>a.type===ae.Meta),s=this.service.state.context.events.find(a=>a.type===ae.FullSnapshot);if(i){let{width:a,height:u}=i.data;setTimeout(()=>{this.emitter.emit(W.Resize,{width:a,height:u})},0)}s&&setTimeout(()=>{var a;this.firstFullSnapshot||(this.firstFullSnapshot=s,this.rebuildFullSnapshot(s),(a=this.iframe.contentWindow)==null||a.scrollTo(s.data.initialOffset))},1),this.service.state.context.events.find(Hv)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(r,n){return this.emitter.on(r,n),this}off(r,n){return this.emitter.off(r,n),this}setConfig(r){Object.keys(r).forEach(n=>{r[n],this.config[n]=r[n]}),this.config.skipInactive||this.backToNormal(),typeof r.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:r.speed}}),typeof r.mouseTail<"u"&&(r.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let r=this.service.state.context.events[0],n=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:r.timestamp,endTime:n.timestamp,totalTime:n.timestamp-r.timestamp}}getCurrentTime(){return this.config.liveMode&&this.timer.updateLiveTime(),this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:r,events:n}=this.service.state.context;return r-n[0].timestamp}getMirror(){return this.mirror}play(r=0){var n,o;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:r}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:r}})),(o=(n=this.iframe.contentDocument)==null?void 0:n.getElementsByTagName("html")[0])==null||o.classList.remove("rrweb-paused"),this.emitter.emit(W.Start)}pause(r){var n,o;r===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof r=="number"&&(this.play(r),this.service.send({type:"PAUSE"})),(o=(n=this.iframe.contentDocument)==null?void 0:n.getElementsByTagName("html")[0])==null||o.classList.add("rrweb-paused"),this.emitter.emit(W.Pause)}resume(r=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(r),this.emitter.emit(W.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(W.Destroy)}startLive(r){this.service.send({type:"TO_LIVE",payload:{baselineTime:r}})}addEvent(r){let n=this.config.unpackFn?this.config.unpackFn(r):r;Hv(n)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:n}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=iv()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=c_({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(gS(this.iframe.contentWindow,this.iframe.contentDocument),uS(this.iframe.contentWindow))}rebuildFullSnapshot(r,n=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let o=[],t=new Set,i=(u,l)=>{if(u.nodeName==="DIALOG"&&t.add(u),this.collectIframeAndAttachDocument(o,u),this.mediaManager.isSupportedMediaElement(u)){let{events:c}=this.service.state.context;this.mediaManager.addMediaElements(u,r.timestamp-c[0].timestamp,this.mirror)}for(let c of this.config.plugins||[])c.onBuild&&c.onBuild(u,{id:l,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),a_(r.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),i(this.iframe.contentDocument,r.data.node.id);for(let{mutationInQueue:u,builtNode:l}of o)this.attachDocumentToIframe(u,l),this.newDocumentQueue=this.newDocumentQueue.filter(c=>c!==u);let{documentElement:s,head:a}=this.iframe.contentDocument;this.insertStyleRules(s,a),t.forEach(u=>fo(u)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(W.FullsnapshotRebuilded,r),n||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(r,n){var o;let t=xS(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&t.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!t.length)if(this.usingVirtualDom){let i=this.virtualDom.createElement("style");this.virtualDom.mirror.add(i,yy(i,this.virtualDom.unserializedId)),r.insertBefore(i,n),i.rules.push({source:K.StyleSheetRule,adds:t.map((s,a)=>({rule:s,index:a}))})}else{let i=document.createElement("style");r.insertBefore(i,n);for(let s=0;s<t.length;s++)(o=i.sheet)==null||o.insertRule(t[s],s)}}attachDocumentToIframe(r,n){let o=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,t=[],i=new Set,s=(a,u)=>{a.nodeName==="DIALOG"&&i.add(a),this.collectIframeAndAttachDocument(t,a);let l=o.getMeta(a);if(l?.type===ut.Element&&l?.tagName.toUpperCase()==="HTML"){let{documentElement:c,head:f}=n.contentDocument;this.insertStyleRules(c,f)}if(!this.usingVirtualDom)for(let c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:u,replayer:this})};un(r.node,{doc:n.contentDocument,mirror:o,hackCss:!0,skipChild:!1,afterAppend:s,cache:this.cache}),s(n.contentDocument,r.node.id);for(let{mutationInQueue:a,builtNode:u}of t)this.attachDocumentToIframe(a,u),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==a);i.forEach(a=>fo(a))}collectIframeAndAttachDocument(r,n){if(fp(n,this.mirror)){let o=this.newDocumentQueue.find(t=>t.parentId===this.mirror.getId(n));o&&r.push({mutationInQueue:o,builtNode:n})}}waitForStylesheetLoad(){var r;let n=(r=this.iframe.contentDocument)==null?void 0:r.head;if(n){let o=new Set,t,i=this.service.state,s=()=>{i=this.service.state};this.emitter.on(W.Start,s),this.emitter.on(W.Pause,s);let a=()=>{this.emitter.off(W.Start,s),this.emitter.off(W.Pause,s)};n.querySelectorAll('link[rel="stylesheet"]').forEach(u=>{u.sheet||(o.add(u),u.addEventListener("load",()=>{o.delete(u),o.size===0&&t!==-1&&(i.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(W.LoadStylesheetEnd),t&&clearTimeout(t),a())}))}),o.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(W.LoadStylesheetStart),t=setTimeout(()=>{i.matches("playing")&&this.play(this.getCurrentTime()),t=-1,a()},this.config.loadTimeout))}}async preloadAllImages(){let r=[];for(let n of this.service.state.context.events)n.type===ae.IncrementalSnapshot&&n.data.source===K.CanvasMutation&&(r.push(this.deserializeAndPreloadCanvasEvents(n.data,n)),("commands"in n.data?n.data.commands:[n.data]).forEach(t=>{this.preloadImages(t,n)}));return Promise.all(r)}preloadImages(r,n){if(r.property==="drawImage"&&typeof r.args[0]=="string"&&!this.imageMap.has(n)){let o=document.createElement("canvas"),t=o.getContext("2d"),i=t?.createImageData(o.width,o.height);t?.putImageData(i,0,0)}}async deserializeAndPreloadCanvasEvents(r,n){if(!this.canvasEventMap.has(n)){let o={isUnchanged:!0};if("commands"in r){let t=await Promise.all(r.commands.map(async i=>{let s=await Promise.all(i.args.map(dt(this.imageMap,null,o)));return{...i,args:s}}));o.isUnchanged===!1&&this.canvasEventMap.set(n,{...r,commands:t})}else{let t=await Promise.all(r.args.map(dt(this.imageMap,null,o)));o.isUnchanged===!1&&this.canvasEventMap.set(n,{...r,args:t})}}}applyIncremental(r,n){var o,t,i;let{data:s}=r;switch(s.source){case K.Mutation:{try{this.applyMutation(s,n)}catch(a){this.warn(`Exception in mutation ${a.message||a}`,s)}break}case K.Drag:case K.TouchMove:case K.MouseMove:if(n){let a=s.positions[s.positions.length-1];this.mousePos={x:a.x,y:a.y,id:a.id,debugData:s}}else s.positions.forEach(a=>{let u={doAction:()=>{this.moveAndHover(a.x,a.y,a.id,n,s)},delay:a.timeOffset+r.timestamp-this.service.state.context.baselineTime};this.timer.addAction(u)}),this.timer.addAction({doAction(){},delay:r.delay-((o=s.positions[0])==null?void 0:o.timeOffset)});break;case K.MouseInteraction:{if(s.id===-1)break;let a=new Event(R$(de[s.type])),u=this.mirror.getNode(s.id);if(!u)return this.debugNodeNotFound(s,s.id);this.emitter.emit(W.MouseInteraction,{type:s.type,target:u});let{triggerFocus:l}=this.config;switch(s.type){case de.Blur:"blur"in u&&u.blur();break;case de.Focus:l&&u.focus&&u.focus({preventScroll:!0});break;case de.Click:case de.TouchStart:case de.TouchEnd:case de.MouseDown:case de.MouseUp:n?(s.type===de.TouchStart?this.touchActive=!0:s.type===de.TouchEnd&&(this.touchActive=!1),s.type===de.MouseDown?this.lastMouseDownEvent=[u,a]:s.type===de.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:s.x||0,y:s.y||0,id:s.id,debugData:s}):(s.type===de.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(s.x||0,s.y||0,s.id,n,s),s.type===de.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):s.type===de.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):s.type===de.TouchEnd?this.mouse.classList.remove("touch-active"):u.dispatchEvent(a));break;case de.TouchCancel:n?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:u.dispatchEvent(a)}break}case K.Scroll:{if(s.id===-1)break;if(this.usingVirtualDom){let a=this.virtualDom.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);a.scrollData=s;break}this.applyScroll(s,n);break}case K.ViewportResize:this.emitter.emit(W.Resize,{width:s.width,height:s.height});break;case K.Input:{if(s.id===-1)break;if(this.usingVirtualDom){let a=this.virtualDom.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);a.inputData=s;break}this.applyInput(s);break}case K.MediaInteraction:{let a=this.usingVirtualDom?this.virtualDom.mirror.getNode(s.id):this.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);let u=a,{events:l}=this.service.state.context;this.mediaManager.mediaMutation({target:u,timeOffset:r.timestamp-l[0].timestamp,mutation:s});break}case K.StyleSheetRule:case K.StyleDeclaration:{this.usingVirtualDom?s.styleId?this.constructedStyleMutations.push(s):s.id&&((t=this.virtualDom.mirror.getNode(s.id))==null||t.rules.push(s)):this.applyStyleSheetMutation(s);break}case K.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let a=this.virtualDom.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);a.canvasMutations.push({event:r,mutation:s})}else{let a=this.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);Kv({event:r,mutation:s,target:a,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case K.Font:{try{let a=new FontFace(s.family,s.buffer?new Uint8Array(JSON.parse(s.fontSource)):s.fontSource,s.descriptors);(i=this.iframe.contentDocument)==null||i.fonts.add(a)}catch(a){this.warn(a)}break}case K.Selection:{if(n){this.lastSelectionData=s;break}this.applySelection(s);break}case K.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(s):this.applyAdoptedStyleSheet(s);break}}}applyMutation(r,n){if(this.config.useVirtualDom&&!this.usingVirtualDom&&n&&(this.usingVirtualDom=!0,F_(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let l in this.legacy_missingNodeRetryMap)try{let c=this.legacy_missingNodeRetryMap[l],f=vy(c.node,this.virtualDom,this.mirror);f&&(c.node=f)}catch(c){this.warn(c)}let o=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;r.removes=r.removes.filter(l=>o.getNode(l.id)?!0:(this.warnNodeNotFound(r,l.id),!1)),r.removes.forEach(l=>{var c;let f=o.getNode(l.id);if(!f)return;let d=o.getNode(l.parentId);if(!d)return this.warnNodeNotFound(r,l.parentId);if(l.isShadow&&po(d)&&(d=d.shadowRoot),o.removeNodeFromMap(f),d)try{d.removeChild(f),this.usingVirtualDom&&f.nodeName==="#text"&&d.nodeName==="STYLE"&&((c=d.rules)==null?void 0:c.length)>0&&(d.rules=[])}catch(p){if(p instanceof DOMException)this.warn("parent could not remove child in mutation",d,f,r);else throw p}});let t={...this.legacy_missingNodeRetryMap},i=[],s=l=>{let c=null;return l.nextId&&(c=o.getNode(l.nextId)),l.nextId!==null&&l.nextId!==void 0&&l.nextId!==-1&&!c},a=l=>{var c,f;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let d=o.getNode(l.parentId);if(!d)return l.node.type===ut.Document?this.newDocumentQueue.push(l):i.push(l);l.node.isShadow&&(po(d)||d.attachShadow({mode:"open"}),d=d.shadowRoot);let p=null,h=null;if(l.previousId&&(p=o.getNode(l.previousId)),l.nextId&&(h=o.getNode(l.nextId)),s(l))return i.push(l);if(l.node.rootId&&!o.getNode(l.node.rootId))return;let g=l.node.rootId?o.getNode(l.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(fp(d,o)){this.attachDocumentToIframe(l,d);return}let v=($,_)=>{if(!this.usingVirtualDom){fo($);for(let y of this.config.plugins||[])y.onBuild&&y.onBuild($,{id:_,replayer:this})}},b=un(l.node,{doc:g,mirror:o,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:v});if(l.previousId===-1||l.nextId===-1){t[l.node.id]={node:b,mutation:l};return}let x=o.getMeta(d);if(x&&x.type===ut.Element&&l.node.type===ut.Text){let $=Array.isArray(d.childNodes)?d.childNodes:Array.from(d.childNodes);if(x.tagName==="textarea")for(let _ of $)_.nodeType===d.TEXT_NODE&&d.removeChild(_);else if(x.tagName==="style"&&$.length===1)for(let _ of $)_.nodeType===d.TEXT_NODE&&!o.hasNode(_)&&(b.textContent=_.textContent,d.removeChild(_))}else if(x?.type===ut.Document){let $=d;l.node.type===ut.DocumentType&&((c=$.childNodes[0])==null?void 0:c.nodeType)===Node.DOCUMENT_TYPE_NODE&&$.removeChild($.childNodes[0]),b.nodeName==="HTML"&&$.documentElement&&$.removeChild($.documentElement)}if(p&&p.nextSibling&&p.nextSibling.parentNode?d.insertBefore(b,p.nextSibling):h&&h.parentNode?d.contains(h)?d.insertBefore(b,h):d.insertBefore(b,null):d.appendChild(b),v(b,l.node.id),this.usingVirtualDom&&b.nodeName==="#text"&&d.nodeName==="STYLE"&&((f=d.rules)==null?void 0:f.length)>0&&(d.rules=[]),fp(b,this.mirror)){let $=this.mirror.getId(b),_=this.newDocumentQueue.find(y=>y.parentId===$);_&&(this.attachDocumentToIframe(_,b),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==_))}(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(t,d,b,l)};r.adds.forEach(l=>{a(l)});let u=Date.now();for(;i.length;){let l=dS(i);if(i.length=0,Date.now()-u>500){this.warn("Timeout in the loop, please check the resolve tree data:",l);break}for(let c of l)o.getNode(c.value.parentId)?$y(c,d=>{a(d)}):this.debug("Drop resolve tree since there is no parent for the root node.",c)}Object.keys(t).length&&Object.assign(this.legacy_missingNodeRetryMap,t),pS(r.texts).forEach(l=>{var c;let f=o.getNode(l.id);if(!f)return r.removes.find(p=>p.id===l.id)?void 0:this.warnNodeNotFound(r,l.id);let d=f.parentElement;if(l.value&&d&&d.tagName==="STYLE"?f.textContent=Eo(l.value,this.cache):f.textContent=l.value,this.usingVirtualDom){let p=f.parentNode;((c=p?.rules)==null?void 0:c.length)>0&&(p.rules=[])}}),r.attributes.forEach(l=>{var c;let f=o.getNode(l.id);if(!f)return r.removes.find(d=>d.id===l.id)?void 0:this.warnNodeNotFound(r,l.id);for(let d in l.attributes)if(typeof d=="string"){let p=l.attributes[d];if(p===null)f.removeAttribute(d),d==="open"&&IS(f,l);else if(typeof p=="string")try{if(d==="_cssText"&&(f.nodeName==="LINK"||f.nodeName==="STYLE"))try{let h=o.getMeta(f),g=un({...h,attributes:{...h.attributes,...l.attributes}},{doc:f.ownerDocument,mirror:o,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(h.attributes,l.attributes);let v=f.nextSibling,b=f.parentNode;if(g&&b){b.removeChild(f),b.insertBefore(g,v),o.replace(l.id,g);break}}catch{}if(d==="value"&&f.nodeName==="TEXTAREA"){let h=f;h.childNodes.forEach(v=>h.removeChild(v));let g=(c=f.ownerDocument)==null?void 0:c.createTextNode(p);g&&h.appendChild(g)}else f.setAttribute(d,p);d==="rr_open_mode"&&f.nodeName==="DIALOG"&&fo(f,l)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(d==="style"){let h=p,g=f;for(let v in h)if(h[v]===!1)g.style.removeProperty(v);else if(h[v]instanceof Array){let b=h[v];g.style.setProperty(v,b[0],b[1])}else{let b=h[v];g.style.setProperty(v,b)}}}})}applyScroll(r,n){var o,t;let i=this.mirror.getNode(r.id);if(!i)return this.debugNodeNotFound(r,r.id);let s=this.mirror.getMeta(i);if(i===this.iframe.contentDocument)(o=this.iframe.contentWindow)==null||o.scrollTo({top:r.y,left:r.x,behavior:n?"auto":"smooth"});else if(s?.type===ut.Document)(t=i.defaultView)==null||t.scrollTo({top:r.y,left:r.x,behavior:n?"auto":"smooth"});else try{i.scrollTo({top:r.y,left:r.x,behavior:n?"auto":"smooth"})}catch{}}applyInput(r){let n=this.mirror.getNode(r.id);if(!n)return this.debugNodeNotFound(r,r.id);try{n.checked=r.isChecked,n.value=r.text}catch{}}applySelection(r){try{let n=new Set,o=r.ranges.map(({start:t,startOffset:i,end:s,endOffset:a})=>{let u=this.mirror.getNode(t),l=this.mirror.getNode(s);if(!u||!l)return;let c=new Range;c.setStart(u,i),c.setEnd(l,a);let f=u.ownerDocument,d=f?.getSelection();return d&&n.add(d),{range:c,selection:d}});n.forEach(t=>t.removeAllRanges()),o.forEach(t=>{var i;return t&&((i=t.selection)==null?void 0:i.addRange(t.range))})}catch{}}applyStyleSheetMutation(r){var n;let o=null;r.styleId?o=this.styleMirror.getStyle(r.styleId):r.id&&(o=((n=this.mirror.getNode(r.id))==null?void 0:n.sheet)||null),o&&(r.source===K.StyleSheetRule?this.applyStyleSheetRule(r,o):r.source===K.StyleDeclaration&&this.applyStyleDeclaration(r,o))}applyStyleSheetRule(r,n){var o,t,i,s;if((o=r.adds)==null||o.forEach(({rule:a,index:u})=>{try{if(Array.isArray(u)){let{positions:l,index:c}=Lv(u),f=cn(n.cssRules,l);f?.insertRule(a,c)}else{let l=u===void 0?void 0:Math.min(u,n.cssRules.length);n?.insertRule(a,l)}}catch{}}),(t=r.removes)==null||t.forEach(({index:a})=>{try{if(Array.isArray(a)){let{positions:u,index:l}=Lv(a),c=cn(n.cssRules,u);c?.deleteRule(l||0)}else n?.deleteRule(a)}catch{}}),typeof r.replace=="string")try{(i=n.replace)==null||i.call(n,r.replace)}catch{}if(typeof r.replaceSync=="string")try{(s=n.replaceSync)==null||s.call(n,r.replaceSync)}catch{}}applyStyleDeclaration(r,n){if(r.set){let o=cn(n.rules,r.index);o?.style&&o.style.setProperty(r.set.property,r.set.value,r.set.priority)}if(r.remove){let o=cn(n.rules,r.index);o?.style&&o.style.removeProperty(r.remove.property)}}applyAdoptedStyleSheet(r){var n;let o=this.mirror.getNode(r.id);if(!o)return;(n=r.styles)==null||n.forEach(a=>{var u;let l=null,c=null;if(po(o)?c=((u=o.ownerDocument)==null?void 0:u.defaultView)||null:o.nodeName==="#document"&&(c=o.defaultView),!!c)try{l=new c.CSSStyleSheet,this.styleMirror.add(l,a.styleId),this.applyStyleSheetRule({source:K.StyleSheetRule,adds:a.rules},l)}catch{}});let t=10,i=0,s=(a,u)=>{let l=u.map(c=>this.styleMirror.getStyle(c)).filter(c=>c!==null);po(a)?a.shadowRoot.adoptedStyleSheets=l:a.nodeName==="#document"&&(a.adoptedStyleSheets=l),l.length!==u.length&&i<t&&(setTimeout(()=>s(a,u),0+100*i),i++)};s(o,r.styleIds)}legacy_resolveMissingNode(r,n,o,t){let{previousId:i,nextId:s}=t,a=i&&r[i],u=s&&r[s];if(a){let{node:l,mutation:c}=a;n.insertBefore(l,o),delete r[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(r,n,l,c)}if(u){let{node:l,mutation:c}=u;n.insertBefore(l,o.nextSibling),delete r[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(r,n,l,c)}}moveAndHover(r,n,o,t,i){let s=this.mirror.getNode(o);if(!s)return this.debugNodeNotFound(i,o);let a=_y(s,this.iframe),u=r*a.absoluteScale+a.x,l=n*a.absoluteScale+a.y;this.mouse.style.left=`${u}px`,this.mouse.style.top=`${l}px`,t||this.drawMouseTail({x:u,y:l}),this.hoverElements(s)}drawMouseTail(r){if(!this.mouseTail)return;let{lineCap:n,lineWidth:o,strokeStyle:t,duration:i}=this.config.mouseTail===!0?hp:Object.assign({},hp,this.config.mouseTail),s=()=>{if(!this.mouseTail)return;let a=this.mouseTail.getContext("2d");!a||!this.tailPositions.length||(a.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),a.beginPath(),a.lineWidth=o,a.lineCap=n,a.strokeStyle=t,a.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(u=>a.lineTo(u.x,u.y)),a.stroke())};this.tailPositions.push(r),s(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(a=>a!==r),s()},i/this.speedService.state.context.timer.speed)}hoverElements(r){var n;(n=this.lastHoveredRootNode||this.iframe.contentDocument)==null||n.querySelectorAll(".\\:hover").forEach(t=>{t.classList.remove(":hover")}),this.lastHoveredRootNode=r.getRootNode();let o=r;for(;o;)o.classList&&o.classList.add(":hover"),o=o.parentElement}isUserInteraction(r){return r.type!==ae.IncrementalSnapshot?!1:r.data.source>K.Mutation&&r.data.source<=K.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(W.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(r,n){this.warn(`Node with id '${n}' not found. `,r)}warnCanvasMutationFailed(r,n){this.warn("Has error on canvas update",n,"canvas mutation:",r)}debugNodeNotFound(r,n){this.debug(`Node with id '${n}' not found. `,r)}warn(...r){this.config.showWarning&&this.config.logger.warn(Xv,...r)}debug(...r){this.config.showDebug&&this.config.logger.log(Xv,...r)}};function Kp(e,r){let n=e.filter(t=>t.view===r),o=n.find(t=>t.kind==="view_opened");return{actor:o?.actor??n.find(t=>t.actor)?.actor??null,type:o?.type??null,openedAt:o?.t??0,closedAt:n.find(t=>t.kind==="view_closed")?.t??null,cursors:n.flatMap(t=>{if(t.kind!=="action"||!t.target)return[];let i=t.target,s=i.point??(i.layer==="pixel"?{x:i.x*i.viewport.width/i.image.width,y:i.y*i.viewport.height/i.image.height}:void 0);return s?[{t:t.t,...s,click:/click|tap|press/i.test(t.tool)}]:[]})}}function Ey(e){let r=new Map;for(let o of e)r.set(o.actor,[...r.get(o.actor)??[],o]);let n=r.get(null);return r.delete(null),[...r.values(),...n?[n]:[]]}function Ny(e,r){let n=e.findLastIndex(s=>s.t<=r);if(n<0)return null;let o=e[n],t=e[n+1],i=t?Math.min(1,Math.max(0,(r-o.t)/(t.t-o.t))):0;return{x:o.x+((t?.x??o.x)-o.x)*i,y:o.y+((t?.y??o.y)-o.y)*i,click:o.click&&r-o.t<250}}var jo=class{constructor(r,n){this.players=r;this.onError=n}players;onError;failed=new Set;speed=1;each(r){this.players.forEach((n,o)=>{if(!this.failed.has(n))try{r(n)}catch{this.failed.add(n);try{n.destroy()}catch{}this.onError(o)}})}seek(r,n=!1){this.failed.clear(),this.each(o=>{o.setSpeed(this.speed),o.seek(r,n)})}advance(r){this.each(n=>n.advance(r))}setSpeed(r){this.speed=r,this.each(n=>n.setSpeed(r))}destroy(){this.each(r=>r.destroy())}};function pt(e,r){let n=e.index.calibrations.findLast(o=>o.seq<=r.seq);return e.offset+(n?r.event.timestamp-n.browserTime+n.t:r.t)}function Dy(e,r,n=!1){let t=e.index.checkpoints.filter(a=>{let u=e.blocks[a.snapshot.block]?.find(l=>l.seq===a.snapshot.seq);return u&&pt(e,u)<=r}).at(-1);if(!t)return[];let i=e.index.blocks.findIndex(a=>a.path===t.meta.block),s=[];for(let a of e.index.blocks.slice(i)){let u=e.blocks[a.path]??[];if(s.push(...u.filter(l=>l.seq>=t.meta.seq)),!n&&u.some(l=>pt(e,l)>=r))break}return s.map(a=>({...a.event,timestamp:Math.max(0,pt(e,a))}))}var Co=class{constructor(r,n){this.root=r;this.view=n;let o=Object.values(n.blocks).flat().flatMap(t=>{let i=t.event.data;return t.event.type!==3||!i||typeof i!="object"||Array.isArray(i)?[]:i.source===1&&Array.isArray(i.positions)?i.positions.flatMap(s=>s&&typeof s=="object"&&!Array.isArray(s)&&typeof s.x=="number"&&typeof s.y=="number"&&typeof s.timeOffset=="number"?[{t:pt(n,t)+s.timeOffset,x:s.x,y:s.y,click:!1}]:[]):i.source===2&&typeof i.x=="number"&&typeof i.y=="number"?[{t:pt(n,t),x:i.x,y:i.y,click:i.type===2}]:[]}).sort((t,i)=>t.t-i.t);this.points=[...o,...(n.timeline?.cursors??[]).filter((t,i,s)=>!o.some(a=>a.t>=(s[i-1]?.t??t.t-250)&&a.t<=t.t))].sort((t,i)=>t.t-i.t),this.resize=new ResizeObserver(()=>this.fit()),this.resize.observe(r)}root;view;player;speed=1;resize;firstTime=0;closed=!1;points;cursor;seek(r,n=!1){this.resize.observe(this.root);let o=this.view.timeline;if(o&&r<o.openedAt){this.player?.destroy(),this.player=void 0,this.root.textContent="Not opened yet";return}this.closed=o?.closedAt!=null&&r>=o.closedAt,this.closed&&(r=o.closedAt,n=!1),this.player?.destroy(),this.player=void 0,this.root.replaceChildren(),this.cursor=void 0;let t=Dy(this.view,r,n);if(t.length<2){this.root.textContent="Waiting for recording";return}this.player=new _o(t,{root:this.root,useVirtualDom:!1,showWarning:!1,showDebug:!1,UNSAFE_replayCanvas:!1,mouseTail:!0,skipInactive:!1,loadTimeout:0,speed:this.speed});let i=Math.max(0,r-t[0].timestamp)+.01;this.firstTime=t[0].timestamp,n?this.player.play(i):this.player.pause(i),this.fit();let s=this.root.querySelector(".replayer-wrapper");if(s){for(let a of s.querySelectorAll(".replayer-mouse"))a.style.visibility="hidden";this.cursor=document.createElement("div"),this.cursor.className="replayer-mouse open-qa-cursor",this.cursor.setAttribute("aria-hidden","true"),s.append(this.cursor),this.drawCursor(r)}if(this.closed){let a=document.createElement("p");a.textContent="View ended",a.style.cssText="position:absolute;bottom:0;left:0;margin:0;padding:4px 8px;background:Canvas;color:CanvasText",this.root.style.position="relative",this.root.append(a)}}advance(r){if(this.view.timeline?.closedAt!=null&&r>=this.view.timeline.closedAt){this.closed||this.seek(this.view.timeline.closedAt,!1);return}this.player?Math.abs(this.firstTime+this.player.getCurrentTime()-r)>100&&this.seek(r,!0):this.seek(r,!0),this.drawCursor(r)}drawCursor(r){if(!this.cursor)return;let n=Ny(this.points,r);this.cursor.hidden=!n,n&&(this.cursor.style.left=`${n.x}px`,this.cursor.style.top=`${n.y}px`,this.cursor.classList.toggle("active",n.click),this.cursor.dataset.click=String(n.click))}setSpeed(r){this.speed=r,this.player?.setConfig({speed:r})}fit(){let r=this.root.querySelector(".replayer-wrapper"),n=this.root.querySelector("iframe, [data-rrweb-surface]");if(!r||!n)return;let o=Number(n.width)||this.view.viewport.width,t=Number(n.height)||this.view.viewport.height;n.hasAttribute("data-rrweb-surface")&&(n.style.width=`${o}px`,n.style.height=`${t}px`);let i=Math.min(1,this.root.clientWidth/o);r.style.transformOrigin="top left",r.style.transform=`scale(${i})`,this.root.style.height=`${t*i}px`}destroy(){try{this.player?.destroy()}finally{this.player=void 0,this.resize.disconnect()}}};var ES={clock:'<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>',dot:'<circle cx="12" cy="12" r="2" fill="currentColor"/>',check:'<path d="m5 12 4 4L19 6"/>',"circle-x":'<circle cx="12" cy="12" r="10"/><path d="m9 9 6 6m0-6-6 6"/>',"circle-help":'<circle cx="12" cy="12" r="10"/><path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3m.1 4h.01"/>',"circle-stop":'<circle cx="12" cy="12" r="10"/><rect x="9" y="9" width="6" height="6" rx="1"/>',circle:'<circle cx="12" cy="12" r="10"/>',"circle-alert":'<circle cx="12" cy="12" r="10"/><path d="M12 8v4m0 4h.01"/>'};function Xp(e){let r=document.createElement("span");return r.className=`status-icon ${e.tone}`,r.setAttribute("aria-hidden","true"),r.innerHTML=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${ES[e.icon]}</svg>`,r}function Hp(e){let r=new Map,n=new Set,o=s=>s.replace(/open-qa-asset:\d+/g,t);function t(s){let a=r.get(s);if(a)return a;let u=e[s];if(!u||n.has(s))return"data:,";n.add(s);let l=u.css?o(u.content):Uint8Array.from(atob(u.content),f=>f.charCodeAt(0)),c=URL.createObjectURL(new Blob([l],{type:u.mime}));return r.set(s,c),n.delete(s),c}function i(s){return typeof s=="string"?o(s):Array.isArray(s)?s.map(i):s&&typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,u])=>[a,i(u)])):s}return{rewrite:s=>i(s),destroy:()=>{for(let s of r.values())URL.revokeObjectURL(s)}}}var{data:q,replay:Rt,resources:NS,healShots:Py={}}=JSON.parse(document.getElementById("report-data").textContent),jy=Hp(NS);for(let e of Rt.views)for(let r of Object.values(e.blocks))for(let n of r)n.event=jy.rewrite(n.event);var DS=document.getElementById("report");DS.innerHTML=`<header><div class="brand">open-qa <span>Run report</span></div><span class="offline">Offline report</span></header>
207
- <section class="summary"><div><p class="eyebrow">Run result</p><h1><span id="verdict-icon" aria-hidden="true"></span> <span id="verdict"></span></h1><button id="go-failure" hidden>Go to failure</button><details id="run-details"><summary>Details</summary><p id="reason"></p><pre id="status-sources"></pre><ul id="deadlock" hidden></ul></details></div><div id="metrics"></div></section>
206
+ ***************************************************************************** */function Dy(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o,t,i=n.call(e),s=[];try{for(;(r===void 0||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return s}var xr;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(xr||(xr={}));var fb={type:"xstate.init"};function Ap(e){return e===void 0?[]:[].concat(e)}function br(e){return{type:"xstate.assign",assignment:e}}function Ry(e,r){return typeof(e=typeof e=="string"&&r&&r[e]?r[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Mo(e){return function(r){return e===r}}function mb(e){return typeof e=="string"?{type:e}:e}function Ty(e,r){return{value:e,context:r,actions:[],changed:!1,matches:Mo(e)}}function Cy(e,r,n){var o=r,t=!1;return[e.filter(function(i){if(i.type==="xstate.assign"){t=!0;var s=Object.assign({},o);return typeof i.assignment=="function"?s=i.assignment(o,n):Object.keys(i.assignment).forEach(function(a){s[a]=typeof i.assignment[a]=="function"?i.assignment[a](o,n):i.assignment[a]}),o=s,!1}return!0}),o,t]}function hb(e,r){r===void 0&&(r={});var n=Dy(Cy(Ap(e.states[e.initial].entry).map(function(s){return Ry(s,r.actions)}),e.context,fb),2),o=n[0],t=n[1],i={config:e,_options:r,initialState:{value:e.initial,actions:o,context:t,matches:Mo(e.initial)},transition:function(s,a){var l,u,c=typeof s=="string"?{value:s,context:e.context}:s,m=c.value,p=c.context,f=mb(a),h=e.states[m];if(h.on){var g=Ap(h.on[f.type]);try{for(var v=(function(W){var me=typeof Symbol=="function"&&Symbol.iterator,rt=me&&W[me],ue=0;if(rt)return rt.call(W);if(W&&typeof W.length=="number")return{next:function(){return W&&ue>=W.length&&(W=void 0),{value:W&&W[ue++],done:!W}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")})(g),b=v.next();!b.done;b=v.next()){var x=b.value;if(x===void 0)return Ty(m,p);var $=typeof x=="string"?{target:x}:x,_=$.target,y=$.actions,w=y===void 0?[]:y,k=$.cond,O=k===void 0?function(){return!0}:k,A=_===void 0,P=_??m,X=e.states[P];if(O(p,f)){var M=Dy(Cy((A?Ap(w):[].concat(h.exit,w,X.entry).filter(function(W){return W})).map(function(W){return Ry(W,i._options.actions)}),p,f),3),E=M[0],vt=M[1],Je=M[2],Ne=_??m;return{value:Ne,context:vt,actions:E,changed:_!==m||E.length>0||Je,matches:Mo(Ne)}}}}catch(W){l={error:W}}finally{try{b&&!b.done&&(u=v.return)&&u.call(v)}finally{if(l)throw l.error}}}return Ty(m,p)}};return i}var jy=function(e,r){return e.actions.forEach(function(n){var o=n.exec;return o&&o(e.context,r)})};function gb(e){var r=e.initialState,n=xr.NotStarted,o=new Set,t={_machine:e,send:function(i){n===xr.Running&&(r=e.transition(r,i),jy(r,mb(i)),o.forEach(function(s){return s(r)}))},subscribe:function(i){return o.add(i),i(r),{unsubscribe:function(){return o.delete(i)}}},start:function(i){if(i){var s=typeof i=="object"?i:{context:e.config.context,value:i};r={value:s.value,actions:[],context:s.context,matches:Mo(s.value)}}return n=xr.Running,jy(r,fb),t},stop:function(){return n=xr.Stopped,o.clear(),t},get state(){return r},get status(){return n}};return t}function Dk(e,r){for(let n=e.length-1;n>=0;n--){let o=e[n];if(o.type===ae.Meta&&o.timestamp<=r)return e.slice(n)}return e}function Rk(e,{getCastFn:r,applyEventsSynchronously:n,emitter:o}){let t=hb({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:br({lastPlayedEvent:(i,s)=>s.type==="CAST_EVENT"?s.payload.event:i.lastPlayedEvent}),recordTimeOffset:br((i,s)=>{let a=i.timeOffset;return"payload"in s&&"timeOffset"in s.payload&&(a=s.payload.timeOffset),{...i,timeOffset:a,baselineTime:i.events[0].timestamp+a}}),play(i){var s;let{timer:a,events:l,baselineTime:u,lastPlayedEvent:c}=i;a.clear();for(let h of l)Ny(h,u);let m=Dk(l,u),p=c?.timestamp;c?.type===ae.IncrementalSnapshot&&c.data.source===H.MouseMove&&(p=c.timestamp+((s=c.data.positions[0])==null?void 0:s.timeOffset)),u<(p||0)&&o.emit(G.PlayBack);let f=new Array;for(let h of m)if(!(p&&p<u&&(h.timestamp<=p||h===c)))if(h.timestamp<u)f.push(h);else{let g=r(h,!1);a.addAction({doAction:()=>{g()},delay:h.delay})}n(f),o.emit(G.Flush),a.start()},pause(i){i.timer.clear()},resetLastPlayedEvent:br(i=>({...i,lastPlayedEvent:null})),startLive:br({baselineTime:(i,s)=>(i.timer.start(),s.type==="TO_LIVE"&&s.payload.baselineTime?s.payload.baselineTime:Date.now())}),addEvent:br((i,s)=>{let{baselineTime:a,timer:l,events:u}=i;if(s.type==="ADD_EVENT"){let{event:c}=s.payload;Ny(c,a);let m=u.length-1;if(!u[m]||u[m].timestamp<=c.timestamp)u.push(c);else{let h=-1,g=0;for(;g<=m;){let v=Math.floor((g+m)/2);u[v].timestamp<=c.timestamp?g=v+1:m=v-1}h===-1&&(h=g),u.splice(h,0,c)}let p=c.timestamp<a,f=r(c,p);p?f():l.isActive()&&l.addAction({doAction:()=>{f()},delay:c.delay})}return{...i,events:u}})}});return gb(t)}function Tk(e){let r=hb({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(n,o)=>{"payload"in o&&n.timer.setSpeed(o.payload.speed)},recordSpeed:br({normalSpeed:n=>n.timer.speed}),restoreSpeed:n=>{n.timer.setSpeed(n.normalSpeed)}}});return gb(r)}var Ck=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Ay=new Map;function vb(e,r){let n=Ay.get(e);return n||(n=new Map,Ay.set(e,n)),n.has(r)||n.set(r,[]),n.get(r)}function mt(e,r,n){return async o=>{if(o&&typeof o=="object"&&"rr_type"in o)if(n&&(n.isUnchanged=!1),o.rr_type==="ImageBitmap"&&"args"in o){let t=await mt(e,r,n)(o.args);return await createImageBitmap.apply(null,t)}else if("index"in o){if(n||r===null)return o;let{rr_type:t,index:i}=o;return vb(r,t)[i]}else if("args"in o){let{rr_type:t,args:i}=o,s=window[t];return new s(...await Promise.all(i.map(mt(e,r,n))))}else{if("base64"in o)return Ok(o.base64);if("src"in o){let t=e.get(o.src);if(t)return t;{let i=new Image;return i.src=o.src,e.set(o.src,i),i}}else if("data"in o&&o.rr_type==="Blob"){let t=await Promise.all(o.data.map(mt(e,r,n)));return new Blob(t,{type:o.type})}}else if(Array.isArray(o))return await Promise.all(o.map(mt(e,r,n)));return o}}function jk(e,r){try{return r===Uo.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}var Ak=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Uk(e,r){if(!r?.constructor)return;let{name:n}=r.constructor;if(!Ak.includes(n))return;let o=vb(e,n);o.includes(r)||o.push(r)}async function Mk({mutation:e,target:r,type:n,imageMap:o,errorHandler:t}){try{let i=jk(r,n);if(!i)return;if(e.setter){i[e.property]=e.args[0];return}let s=i[e.property],a=await Promise.all(e.args.map(mt(o,i))),l=s.apply(i,a);Uk(i,l);let u=!1}catch(i){t(e,i)}}async function Lk({event:e,mutations:r,target:n,imageMap:o,errorHandler:t}){let i=n.getContext("2d");if(!i){t(r[0],new Error("Canvas context is null"));return}let s=r.map(async l=>Promise.all(l.args.map(mt(o,i))));(await Promise.all(s)).forEach((l,u)=>{let c=r[u];try{if(c.setter){i[c.property]=c.args[0];return}let m=i[c.property];c.property==="drawImage"&&typeof c.args[0]=="string"?(o.get(e),m.apply(i,c.args)):m.apply(i,l)}catch(m){t(c,m)}})}async function Uy({event:e,mutation:r,target:n,imageMap:o,canvasEventMap:t,errorHandler:i}){try{let s=t.get(e)||r,a="commands"in s?s.commands:[s];if([Uo.WebGL,Uo.WebGL2].includes(r.type)){for(let l=0;l<a.length;l++){let u=a[l];await Mk({mutation:u,type:r.type,target:n,imageMap:o,errorHandler:i})}return}await Lk({event:e,mutations:a,target:n,imageMap:o,errorHandler:i})}catch(s){i(r,s)}}var ef=class{constructor(r){L(this,"mediaMap",new Map),L(this,"warn"),L(this,"service"),L(this,"speedService"),L(this,"emitter"),L(this,"getCurrentTime"),L(this,"metadataCallbackMap",new Map),this.warn=r.warn,this.service=r.service,this.speedService=r.speedService,this.emitter=r.emitter,this.getCurrentTime=r.getCurrentTime,this.emitter.on(G.Start,this.start.bind(this)),this.emitter.on(G.SkipStart,this.start.bind(this)),this.emitter.on(G.Pause,this.pause.bind(this)),this.emitter.on(G.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(r={pause:!1}){this.mediaMap.forEach((n,o)=>{this.syncTargetWithState(o),r.pause&&o.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:r,target:n,mediaState:o}){if(o.isPlaying){let i=(r-o.lastInteractionTimeOffset)/1e3*o.playbackRate,s="duration"in n&&n.duration;if(Number.isNaN(s)){this.waitForMetadata(n);return}let a=o.currentTimeAtLastInteraction+i;n.loop&&s!==!1&&(a=a%s),n.currentTime=a}else n.pause(),n.currentTime=o.currentTimeAtLastInteraction}waitForMetadata(r){if(this.metadataCallbackMap.has(r)||!("addEventListener"in r))return;let n=()=>{this.metadataCallbackMap.delete(r);let o=this.mediaMap.get(r);o&&this.seekTo({time:this.getCurrentTime(),target:r,mediaState:o})};this.metadataCallbackMap.set(r,n),r.addEventListener("loadedmetadata",n,{once:!0})}getMediaStateFromMutation({target:r,timeOffset:n,mutation:o}){let t=this.mediaMap.get(r),{type:i,playbackRate:s,currentTime:a,muted:l,volume:u,loop:c}=o;return{isPlaying:i===Yp.Play||i!==Yp.Pause&&(t?.isPlaying||r.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:a??t?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:n,playbackRate:s??t?.playbackRate??1,volume:u??t?.volume??1,muted:l??t?.muted??r.getAttribute("muted")===null,loop:c??t?.loop??r.getAttribute("loop")===null}}syncTargetWithState(r){let n=this.mediaMap.get(r);if(!n)return;let{muted:o,loop:t,volume:i,isPlaying:s}=n,a=this.service.state.matches("paused"),l=n.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:r,mediaState:n}),r.volume!==i&&(r.volume=i),r.muted=o,r.loop=t,r.playbackRate!==l&&(r.playbackRate=l),s&&!a?r.play():r.pause()}catch(u){this.warn(`Failed to replay media interactions: ${u.message||u}`)}}addMediaElements(r,n,o){if(!["AUDIO","VIDEO"].includes(r.nodeName))return;let t=r,i=o.getMeta(t);if(!i||!("attributes"in i))return;let s=this.service.state.matches("paused"),a=i.attributes,l=!1;a.rr_mediaState?l=a.rr_mediaState==="played":l=t.getAttribute("autoplay")!==null,l&&s&&t.pause();let u=1;typeof a.rr_mediaPlaybackRate=="number"&&(u=a.rr_mediaPlaybackRate);let c=!1;typeof a.rr_mediaMuted=="boolean"?c=a.rr_mediaMuted:c=t.getAttribute("muted")!==null;let m=!1;typeof a.rr_mediaLoop=="boolean"?m=a.rr_mediaLoop:m=t.getAttribute("loop")!==null;let p=1;typeof a.rr_mediaVolume=="number"&&(p=a.rr_mediaVolume);let f=0;typeof a.rr_mediaCurrentTime=="number"&&(f=a.rr_mediaCurrentTime),this.mediaMap.set(t,{isPlaying:l,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:n,playbackRate:u,volume:p,muted:c,loop:m}),this.syncTargetWithState(t)}mediaMutation({target:r,timeOffset:n,mutation:o}){this.mediaMap.set(r,this.getMediaStateFromMutation({target:r,timeOffset:n,mutation:o})),this.syncTargetWithState(r)}isSupportedMediaElement(r){return["AUDIO","VIDEO"].includes(r.nodeName)}reset(){this.mediaMap.clear()}};function Po(e,r){if(e.nodeName!=="DIALOG"||e instanceof Me)return;let n=e,o=n.open,t=o&&n.matches("dialog:modal"),i=n.getAttribute("rr_open_mode"),s=typeof r?.attributes.open=="string"||typeof n.getAttribute("open")=="string",a=i==="modal";if(!(o&&!(t&&i==="non-modal"||!t&&a))){if(!n.isConnected){console.warn("dialog is not attached to the dom",n);return}o&&n.close(),s&&(a?n.showModal():n.show())}}function Zk(e,r){if(e.nodeName!=="DIALOG"||e instanceof Me)return;let n=e;if(!n.isConnected){console.warn("dialog is not attached to the dom",n);return}r.attributes.open===null&&(n.removeAttribute("open"),n.removeAttribute("rr_open_mode"))}var Fk=5*1e3,Vk=Pk,My="[replayer]",Up={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Ly(e){return e.type==ae.IncrementalSnapshot&&(e.data.source==H.TouchMove||e.data.source==H.MouseInteraction&&e.data.type==pe.TouchStart)}var Lo=class{constructor(r,n){if(L(this,"wrapper"),L(this,"iframe"),L(this,"UNSAFE_replayCanvas",!1),L(this,"service"),L(this,"speedService"),L(this,"config"),L(this,"usingVirtualDom",!1),L(this,"virtualDom",new $r),L(this,"mouse"),L(this,"mouseTail",null),L(this,"tailPositions",[]),L(this,"emitter",Vk()),L(this,"nextUserInteractionEvent"),L(this,"legacy_missingNodeRetryMap",{}),L(this,"cache",Jv()),L(this,"imageMap",new Map),L(this,"canvasEventMap",new Map),L(this,"mirror",Zy()),L(this,"styleMirror",new Xp),L(this,"mediaManager"),L(this,"firstFullSnapshot",null),L(this,"newDocumentQueue",[]),L(this,"mousePos",null),L(this,"touchActive",null),L(this,"lastMouseDownEvent",null),L(this,"lastHoveredRootNode"),L(this,"lastSelectionData",null),L(this,"constructedStyleMutations",[]),L(this,"adoptedStyleSheets",[]),L(this,"handleResize",a=>{this.iframe.style.display="inherit";for(let l of[this.mouseTail,this.iframe])l&&(l.setAttribute("width",String(a.width)),l.setAttribute("height",String(a.height)))}),L(this,"applyEventsSynchronously",a=>{for(let l of a){switch(l.type){case ae.DomContentLoaded:case ae.Load:continue;case ae.FullSnapshot:case ae.Meta:case ae.Plugin:case ae.IncrementalSnapshot:break}this.getCastFn(l,!0)()}}),L(this,"getCastFn",(a,l=!1)=>{let u;switch(a.type){case ae.DomContentLoaded:case ae.Load:break;case ae.Custom:u=()=>{this.emitter.emit(G.CustomEvent,a)};break;case ae.Meta:u=()=>this.emitter.emit(G.Resize,{width:a.data.width,height:a.data.height});break;case ae.FullSnapshot:u=()=>{var m;if(this.firstFullSnapshot){if(this.firstFullSnapshot===a){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(a,l),(m=this.iframe.contentWindow)==null||m.scrollTo(a.data.initialOffset)};break;case ae.IncrementalSnapshot:u=()=>{if(this.applyIncremental(a,l),!l&&(a===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let m of this.service.state.context.events)if(!(m.timestamp<=a.timestamp)&&this.isUserInteraction(m)){m.delay-a.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=m);break}if(this.nextUserInteractionEvent){let m=this.nextUserInteractionEvent.delay-a.delay,p={speed:Math.min(Math.round(m/Fk),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:p}),this.emitter.emit(G.SkipStart,p)}}};break}return()=>{u&&u();for(let p of this.config.plugins||[])p.handler&&p.handler(a,l,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:a}});let m=this.service.state.context.events.length-1;if(!this.config.liveMode&&a===this.service.state.context.events[m]){let p=()=>{m<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(G.Finish))},f=50;a.type===ae.IncrementalSnapshot&&a.data.source===H.MouseMove&&a.data.positions.length&&(f+=Math.max(0,-a.data.positions[0].timeOffset)),setTimeout(p,f)}this.emitter.emit(G.EventCast,a)}}),!n?.liveMode&&r.length<2)throw new Error("Replayer need at least 2 events.");let o={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Up,useVirtualDom:!0,logger:console};this.config=Object.assign({},o,n),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(G.Resize,this.handleResize),this.setupDom();for(let a of this.config.plugins||[])a.getMirror&&a.getMirror({nodeMirror:this.mirror});this.emitter.on(G.Flush,()=>{if(this.usingVirtualDom){let a={mirror:this.mirror,applyCanvas:(l,u,c)=>{Uy({event:l,mutation:u,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(l,u)=>{l.source===H.StyleSheetRule?this.applyStyleSheetRule(l,u):l.source===H.StyleDeclaration&&this.applyStyleDeclaration(l,u)},afterAppend:(l,u)=>{for(let c of this.config.plugins||[])c.onBuild&&c.onBuild(l,{id:u,replayer:this})}};if(this.iframe.contentDocument)try{jo(this.iframe.contentDocument,this.virtualDom,a,this.virtualDom.mirror)}catch(l){this.warn(l)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let l in this.legacy_missingNodeRetryMap)try{let u=this.legacy_missingNodeRetryMap[l],c=Ao(u.node,this.mirror,this.virtualDom.mirror);jo(c,u.node,a,this.virtualDom.mirror),u.node=c}catch(u){this.warn(u)}this.constructedStyleMutations.forEach(l=>{this.applyStyleSheetMutation(l)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(l=>{this.applyAdoptedStyleSheet(l)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[a,l]=this.lastMouseDownEvent;a.dispatchEvent(l)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(G.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let t=new Qp([],{speed:this.config.speed});this.service=Rk({events:r.map(a=>n&&n.unpackFn?n.unpackFn(a):a).sort((a,l)=>a.timestamp-l.timestamp),timer:t,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(a=>{this.emitter.emit(G.StateChange,{player:a})}),this.speedService=Tk({normalSpeed:-1,timer:t}),this.speedService.start(),this.speedService.subscribe(a=>{this.emitter.emit(G.StateChange,{speed:a})}),this.mediaManager=new ef({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let i=this.service.state.context.events.find(a=>a.type===ae.Meta),s=this.service.state.context.events.find(a=>a.type===ae.FullSnapshot);if(i){let{width:a,height:l}=i.data;setTimeout(()=>{this.emitter.emit(G.Resize,{width:a,height:l})},0)}s&&setTimeout(()=>{var a;this.firstFullSnapshot||(this.firstFullSnapshot=s,this.rebuildFullSnapshot(s),(a=this.iframe.contentWindow)==null||a.scrollTo(s.data.initialOffset))},1),this.service.state.context.events.find(Ly)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(r,n){return this.emitter.on(r,n),this}off(r,n){return this.emitter.off(r,n),this}setConfig(r){Object.keys(r).forEach(n=>{r[n],this.config[n]=r[n]}),this.config.skipInactive||this.backToNormal(),typeof r.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:r.speed}}),typeof r.mouseTail<"u"&&(r.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let r=this.service.state.context.events[0],n=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:r.timestamp,endTime:n.timestamp,totalTime:n.timestamp-r.timestamp}}getCurrentTime(){return this.config.liveMode&&this.timer.updateLiveTime(),this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:r,events:n}=this.service.state.context;return r-n[0].timestamp}getMirror(){return this.mirror}play(r=0){var n,o;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:r}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:r}})),(o=(n=this.iframe.contentDocument)==null?void 0:n.getElementsByTagName("html")[0])==null||o.classList.remove("rrweb-paused"),this.emitter.emit(G.Start)}pause(r){var n,o;r===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof r=="number"&&(this.play(r),this.service.send({type:"PAUSE"})),(o=(n=this.iframe.contentDocument)==null?void 0:n.getElementsByTagName("html")[0])==null||o.classList.add("rrweb-paused"),this.emitter.emit(G.Pause)}resume(r=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(r),this.emitter.emit(G.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(G.Destroy)}startLive(r){this.service.send({type:"TO_LIVE",payload:{baselineTime:r}})}addEvent(r){let n=this.config.unpackFn?this.config.unpackFn(r):r;Ly(n)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:n}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Jv()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=_S({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(Nk(this.iframe.contentWindow,this.iframe.contentDocument),kk(this.iframe.contentWindow))}rebuildFullSnapshot(r,n=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let o=[],t=new Set,i=(l,u)=>{if(l.nodeName==="DIALOG"&&t.add(l),this.collectIframeAndAttachDocument(o,l),this.mediaManager.isSupportedMediaElement(l)){let{events:c}=this.service.state.context;this.mediaManager.addMediaElements(l,r.timestamp-c[0].timestamp,this.mirror)}for(let c of this.config.plugins||[])c.onBuild&&c.onBuild(l,{id:u,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),$S(r.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),i(this.iframe.contentDocument,r.data.node.id);for(let{mutationInQueue:l,builtNode:u}of o)this.attachDocumentToIframe(l,u),this.newDocumentQueue=this.newDocumentQueue.filter(c=>c!==l);let{documentElement:s,head:a}=this.iframe.contentDocument;this.insertStyleRules(s,a),t.forEach(l=>Po(l)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(G.FullsnapshotRebuilded,r),n||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(r,n){var o;let t=Ck(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&t.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!t.length)if(this.usingVirtualDom){let i=this.virtualDom.createElement("style");this.virtualDom.mirror.add(i,ab(i,this.virtualDom.unserializedId)),r.insertBefore(i,n),i.rules.push({source:H.StyleSheetRule,adds:t.map((s,a)=>({rule:s,index:a}))})}else{let i=document.createElement("style");r.insertBefore(i,n);for(let s=0;s<t.length;s++)(o=i.sheet)==null||o.insertRule(t[s],s)}}attachDocumentToIframe(r,n){let o=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,t=[],i=new Set,s=(a,l)=>{a.nodeName==="DIALOG"&&i.add(a),this.collectIframeAndAttachDocument(t,a);let u=o.getMeta(a);if(u?.type===ft.Element&&u?.tagName.toUpperCase()==="HTML"){let{documentElement:c,head:m}=n.contentDocument;this.insertStyleRules(c,m)}if(!this.usingVirtualDom)for(let c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:l,replayer:this})};yn(r.node,{doc:n.contentDocument,mirror:o,hackCss:!0,skipChild:!1,afterAppend:s,cache:this.cache}),s(n.contentDocument,r.node.id);for(let{mutationInQueue:a,builtNode:l}of t)this.attachDocumentToIframe(a,l),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==a);i.forEach(a=>Po(a))}collectIframeAndAttachDocument(r,n){if(jp(n,this.mirror)){let o=this.newDocumentQueue.find(t=>t.parentId===this.mirror.getId(n));o&&r.push({mutationInQueue:o,builtNode:n})}}waitForStylesheetLoad(){var r;let n=(r=this.iframe.contentDocument)==null?void 0:r.head;if(n){let o=new Set,t,i=this.service.state,s=()=>{i=this.service.state};this.emitter.on(G.Start,s),this.emitter.on(G.Pause,s);let a=()=>{this.emitter.off(G.Start,s),this.emitter.off(G.Pause,s)};n.querySelectorAll('link[rel="stylesheet"]').forEach(l=>{l.sheet||(o.add(l),l.addEventListener("load",()=>{o.delete(l),o.size===0&&t!==-1&&(i.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(G.LoadStylesheetEnd),t&&clearTimeout(t),a())}))}),o.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(G.LoadStylesheetStart),t=setTimeout(()=>{i.matches("playing")&&this.play(this.getCurrentTime()),t=-1,a()},this.config.loadTimeout))}}async preloadAllImages(){let r=[];for(let n of this.service.state.context.events)n.type===ae.IncrementalSnapshot&&n.data.source===H.CanvasMutation&&(r.push(this.deserializeAndPreloadCanvasEvents(n.data,n)),("commands"in n.data?n.data.commands:[n.data]).forEach(t=>{this.preloadImages(t,n)}));return Promise.all(r)}preloadImages(r,n){if(r.property==="drawImage"&&typeof r.args[0]=="string"&&!this.imageMap.has(n)){let o=document.createElement("canvas"),t=o.getContext("2d"),i=t?.createImageData(o.width,o.height);t?.putImageData(i,0,0)}}async deserializeAndPreloadCanvasEvents(r,n){if(!this.canvasEventMap.has(n)){let o={isUnchanged:!0};if("commands"in r){let t=await Promise.all(r.commands.map(async i=>{let s=await Promise.all(i.args.map(mt(this.imageMap,null,o)));return{...i,args:s}}));o.isUnchanged===!1&&this.canvasEventMap.set(n,{...r,commands:t})}else{let t=await Promise.all(r.args.map(mt(this.imageMap,null,o)));o.isUnchanged===!1&&this.canvasEventMap.set(n,{...r,args:t})}}}applyIncremental(r,n){var o,t,i;let{data:s}=r;switch(s.source){case H.Mutation:{try{this.applyMutation(s,n)}catch(a){this.warn(`Exception in mutation ${a.message||a}`,s)}break}case H.Drag:case H.TouchMove:case H.MouseMove:if(n){let a=s.positions[s.positions.length-1];this.mousePos={x:a.x,y:a.y,id:a.id,debugData:s}}else s.positions.forEach(a=>{let l={doAction:()=>{this.moveAndHover(a.x,a.y,a.id,n,s)},delay:a.timeOffset+r.timestamp-this.service.state.context.baselineTime};this.timer.addAction(l)}),this.timer.addAction({doAction(){},delay:r.delay-((o=s.positions[0])==null?void 0:o.timeOffset)});break;case H.MouseInteraction:{if(s.id===-1)break;let a=new Event(G_(pe[s.type])),l=this.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);this.emitter.emit(G.MouseInteraction,{type:s.type,target:l});let{triggerFocus:u}=this.config;switch(s.type){case pe.Blur:"blur"in l&&l.blur();break;case pe.Focus:u&&l.focus&&l.focus({preventScroll:!0});break;case pe.Click:case pe.TouchStart:case pe.TouchEnd:case pe.MouseDown:case pe.MouseUp:n?(s.type===pe.TouchStart?this.touchActive=!0:s.type===pe.TouchEnd&&(this.touchActive=!1),s.type===pe.MouseDown?this.lastMouseDownEvent=[l,a]:s.type===pe.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:s.x||0,y:s.y||0,id:s.id,debugData:s}):(s.type===pe.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(s.x||0,s.y||0,s.id,n,s),s.type===pe.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):s.type===pe.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):s.type===pe.TouchEnd?this.mouse.classList.remove("touch-active"):l.dispatchEvent(a));break;case pe.TouchCancel:n?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:l.dispatchEvent(a)}break}case H.Scroll:{if(s.id===-1)break;if(this.usingVirtualDom){let a=this.virtualDom.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);a.scrollData=s;break}this.applyScroll(s,n);break}case H.ViewportResize:this.emitter.emit(G.Resize,{width:s.width,height:s.height});break;case H.Input:{if(s.id===-1)break;if(this.usingVirtualDom){let a=this.virtualDom.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);a.inputData=s;break}this.applyInput(s);break}case H.MediaInteraction:{let a=this.usingVirtualDom?this.virtualDom.mirror.getNode(s.id):this.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);let l=a,{events:u}=this.service.state.context;this.mediaManager.mediaMutation({target:l,timeOffset:r.timestamp-u[0].timestamp,mutation:s});break}case H.StyleSheetRule:case H.StyleDeclaration:{this.usingVirtualDom?s.styleId?this.constructedStyleMutations.push(s):s.id&&((t=this.virtualDom.mirror.getNode(s.id))==null||t.rules.push(s)):this.applyStyleSheetMutation(s);break}case H.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let a=this.virtualDom.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);a.canvasMutations.push({event:r,mutation:s})}else{let a=this.mirror.getNode(s.id);if(!a)return this.debugNodeNotFound(s,s.id);Uy({event:r,mutation:s,target:a,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case H.Font:{try{let a=new FontFace(s.family,s.buffer?new Uint8Array(JSON.parse(s.fontSource)):s.fontSource,s.descriptors);(i=this.iframe.contentDocument)==null||i.fonts.add(a)}catch(a){this.warn(a)}break}case H.Selection:{if(n){this.lastSelectionData=s;break}this.applySelection(s);break}case H.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(s):this.applyAdoptedStyleSheet(s);break}}}applyMutation(r,n){if(this.config.useVirtualDom&&!this.usingVirtualDom&&n&&(this.usingVirtualDom=!0,nk(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let u in this.legacy_missingNodeRetryMap)try{let c=this.legacy_missingNodeRetryMap[u],m=sb(c.node,this.virtualDom,this.mirror);m&&(c.node=m)}catch(c){this.warn(c)}let o=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;r.removes=r.removes.filter(u=>o.getNode(u.id)?!0:(this.warnNodeNotFound(r,u.id),!1)),r.removes.forEach(u=>{var c;let m=o.getNode(u.id);if(!m)return;let p=o.getNode(u.parentId);if(!p)return this.warnNodeNotFound(r,u.parentId);if(u.isShadow&&Eo(p)&&(p=p.shadowRoot),o.removeNodeFromMap(m),p)try{p.removeChild(m),this.usingVirtualDom&&m.nodeName==="#text"&&p.nodeName==="STYLE"&&((c=p.rules)==null?void 0:c.length)>0&&(p.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",p,m,r);else throw f}});let t={...this.legacy_missingNodeRetryMap},i=[],s=u=>{let c=null;return u.nextId&&(c=o.getNode(u.nextId)),u.nextId!==null&&u.nextId!==void 0&&u.nextId!==-1&&!c},a=u=>{var c,m;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let p=o.getNode(u.parentId);if(!p)return u.node.type===ft.Document?this.newDocumentQueue.push(u):i.push(u);u.node.isShadow&&(Eo(p)||p.attachShadow({mode:"open"}),p=p.shadowRoot);let f=null,h=null;if(u.previousId&&(f=o.getNode(u.previousId)),u.nextId&&(h=o.getNode(u.nextId)),s(u))return i.push(u);if(u.node.rootId&&!o.getNode(u.node.rootId))return;let g=u.node.rootId?o.getNode(u.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(jp(p,o)){this.attachDocumentToIframe(u,p);return}let v=($,_)=>{if(!this.usingVirtualDom){Po($);for(let y of this.config.plugins||[])y.onBuild&&y.onBuild($,{id:_,replayer:this})}},b=yn(u.node,{doc:g,mirror:o,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:v});if(u.previousId===-1||u.nextId===-1){t[u.node.id]={node:b,mutation:u};return}let x=o.getMeta(p);if(x&&x.type===ft.Element&&u.node.type===ft.Text){let $=Array.isArray(p.childNodes)?p.childNodes:Array.from(p.childNodes);if(x.tagName==="textarea")for(let _ of $)_.nodeType===p.TEXT_NODE&&p.removeChild(_);else if(x.tagName==="style"&&$.length===1)for(let _ of $)_.nodeType===p.TEXT_NODE&&!o.hasNode(_)&&(b.textContent=_.textContent,p.removeChild(_))}else if(x?.type===ft.Document){let $=p;u.node.type===ft.DocumentType&&((c=$.childNodes[0])==null?void 0:c.nodeType)===Node.DOCUMENT_TYPE_NODE&&$.removeChild($.childNodes[0]),b.nodeName==="HTML"&&$.documentElement&&$.removeChild($.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?p.insertBefore(b,f.nextSibling):h&&h.parentNode?p.contains(h)?p.insertBefore(b,h):p.insertBefore(b,null):p.appendChild(b),v(b,u.node.id),this.usingVirtualDom&&b.nodeName==="#text"&&p.nodeName==="STYLE"&&((m=p.rules)==null?void 0:m.length)>0&&(p.rules=[]),jp(b,this.mirror)){let $=this.mirror.getId(b),_=this.newDocumentQueue.find(y=>y.parentId===$);_&&(this.attachDocumentToIframe(_,b),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==_))}(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,p,b,u)};r.adds.forEach(u=>{a(u)});let l=Date.now();for(;i.length;){let u=Ik(i);if(i.length=0,Date.now()-l>500){this.warn("Timeout in the loop, please check the resolve tree data:",u);break}for(let c of u)o.getNode(c.value.parentId)?db(c,p=>{a(p)}):this.debug("Drop resolve tree since there is no parent for the root node.",c)}Object.keys(t).length&&Object.assign(this.legacy_missingNodeRetryMap,t),zk(r.texts).forEach(u=>{var c;let m=o.getNode(u.id);if(!m)return r.removes.find(f=>f.id===u.id)?void 0:this.warnNodeNotFound(r,u.id);let p=m.parentElement;if(u.value&&p&&p.tagName==="STYLE"?m.textContent=Wo(u.value,this.cache):m.textContent=u.value,this.usingVirtualDom){let f=m.parentNode;((c=f?.rules)==null?void 0:c.length)>0&&(f.rules=[])}}),r.attributes.forEach(u=>{var c;let m=o.getNode(u.id);if(!m)return r.removes.find(p=>p.id===u.id)?void 0:this.warnNodeNotFound(r,u.id);for(let p in u.attributes)if(typeof p=="string"){let f=u.attributes[p];if(f===null)m.removeAttribute(p),p==="open"&&Zk(m,u);else if(typeof f=="string")try{if(p==="_cssText"&&(m.nodeName==="LINK"||m.nodeName==="STYLE"))try{let h=o.getMeta(m),g=yn({...h,attributes:{...h.attributes,...u.attributes}},{doc:m.ownerDocument,mirror:o,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(h.attributes,u.attributes);let v=m.nextSibling,b=m.parentNode;if(g&&b){b.removeChild(m),b.insertBefore(g,v),o.replace(u.id,g);break}}catch{}if(p==="value"&&m.nodeName==="TEXTAREA"){let h=m;h.childNodes.forEach(v=>h.removeChild(v));let g=(c=m.ownerDocument)==null?void 0:c.createTextNode(f);g&&h.appendChild(g)}else m.setAttribute(p,f);p==="rr_open_mode"&&m.nodeName==="DIALOG"&&Po(m,u)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(p==="style"){let h=f,g=m;for(let v in h)if(h[v]===!1)g.style.removeProperty(v);else if(h[v]instanceof Array){let b=h[v];g.style.setProperty(v,b[0],b[1])}else{let b=h[v];g.style.setProperty(v,b)}}}})}applyScroll(r,n){var o,t;let i=this.mirror.getNode(r.id);if(!i)return this.debugNodeNotFound(r,r.id);let s=this.mirror.getMeta(i);if(i===this.iframe.contentDocument)(o=this.iframe.contentWindow)==null||o.scrollTo({top:r.y,left:r.x,behavior:n?"auto":"smooth"});else if(s?.type===ft.Document)(t=i.defaultView)==null||t.scrollTo({top:r.y,left:r.x,behavior:n?"auto":"smooth"});else try{i.scrollTo({top:r.y,left:r.x,behavior:n?"auto":"smooth"})}catch{}}applyInput(r){let n=this.mirror.getNode(r.id);if(!n)return this.debugNodeNotFound(r,r.id);try{n.checked=r.isChecked,n.value=r.text}catch{}}applySelection(r){try{let n=new Set,o=r.ranges.map(({start:t,startOffset:i,end:s,endOffset:a})=>{let l=this.mirror.getNode(t),u=this.mirror.getNode(s);if(!l||!u)return;let c=new Range;c.setStart(l,i),c.setEnd(u,a);let m=l.ownerDocument,p=m?.getSelection();return p&&n.add(p),{range:c,selection:p}});n.forEach(t=>t.removeAllRanges()),o.forEach(t=>{var i;return t&&((i=t.selection)==null?void 0:i.addRange(t.range))})}catch{}}applyStyleSheetMutation(r){var n;let o=null;r.styleId?o=this.styleMirror.getStyle(r.styleId):r.id&&(o=((n=this.mirror.getNode(r.id))==null?void 0:n.sheet)||null),o&&(r.source===H.StyleSheetRule?this.applyStyleSheetRule(r,o):r.source===H.StyleDeclaration&&this.applyStyleDeclaration(r,o))}applyStyleSheetRule(r,n){var o,t,i,s;if((o=r.adds)==null||o.forEach(({rule:a,index:l})=>{try{if(Array.isArray(l)){let{positions:u,index:c}=Ey(l),m=gn(n.cssRules,u);m?.insertRule(a,c)}else{let u=l===void 0?void 0:Math.min(l,n.cssRules.length);n?.insertRule(a,u)}}catch{}}),(t=r.removes)==null||t.forEach(({index:a})=>{try{if(Array.isArray(a)){let{positions:l,index:u}=Ey(a),c=gn(n.cssRules,l);c?.deleteRule(u||0)}else n?.deleteRule(a)}catch{}}),typeof r.replace=="string")try{(i=n.replace)==null||i.call(n,r.replace)}catch{}if(typeof r.replaceSync=="string")try{(s=n.replaceSync)==null||s.call(n,r.replaceSync)}catch{}}applyStyleDeclaration(r,n){if(r.set){let o=gn(n.rules,r.index);o?.style&&o.style.setProperty(r.set.property,r.set.value,r.set.priority)}if(r.remove){let o=gn(n.rules,r.index);o?.style&&o.style.removeProperty(r.remove.property)}}applyAdoptedStyleSheet(r){var n;let o=this.mirror.getNode(r.id);if(!o)return;(n=r.styles)==null||n.forEach(a=>{var l;let u=null,c=null;if(Eo(o)?c=((l=o.ownerDocument)==null?void 0:l.defaultView)||null:o.nodeName==="#document"&&(c=o.defaultView),!!c)try{u=new c.CSSStyleSheet,this.styleMirror.add(u,a.styleId),this.applyStyleSheetRule({source:H.StyleSheetRule,adds:a.rules},u)}catch{}});let t=10,i=0,s=(a,l)=>{let u=l.map(c=>this.styleMirror.getStyle(c)).filter(c=>c!==null);Eo(a)?a.shadowRoot.adoptedStyleSheets=u:a.nodeName==="#document"&&(a.adoptedStyleSheets=u),u.length!==l.length&&i<t&&(setTimeout(()=>s(a,l),0+100*i),i++)};s(o,r.styleIds)}legacy_resolveMissingNode(r,n,o,t){let{previousId:i,nextId:s}=t,a=i&&r[i],l=s&&r[s];if(a){let{node:u,mutation:c}=a;n.insertBefore(u,o),delete r[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(r,n,u,c)}if(l){let{node:u,mutation:c}=l;n.insertBefore(u,o.nextSibling),delete r[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(r,n,u,c)}}moveAndHover(r,n,o,t,i){let s=this.mirror.getNode(o);if(!s)return this.debugNodeNotFound(i,o);let a=pb(s,this.iframe),l=r*a.absoluteScale+a.x,u=n*a.absoluteScale+a.y;this.mouse.style.left=`${l}px`,this.mouse.style.top=`${u}px`,t||this.drawMouseTail({x:l,y:u}),this.hoverElements(s)}drawMouseTail(r){if(!this.mouseTail)return;let{lineCap:n,lineWidth:o,strokeStyle:t,duration:i}=this.config.mouseTail===!0?Up:Object.assign({},Up,this.config.mouseTail),s=()=>{if(!this.mouseTail)return;let a=this.mouseTail.getContext("2d");!a||!this.tailPositions.length||(a.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),a.beginPath(),a.lineWidth=o,a.lineCap=n,a.strokeStyle=t,a.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(l=>a.lineTo(l.x,l.y)),a.stroke())};this.tailPositions.push(r),s(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(a=>a!==r),s()},i/this.speedService.state.context.timer.speed)}hoverElements(r){var n;(n=this.lastHoveredRootNode||this.iframe.contentDocument)==null||n.querySelectorAll(".\\:hover").forEach(t=>{t.classList.remove(":hover")}),this.lastHoveredRootNode=r.getRootNode();let o=r;for(;o;)o.classList&&o.classList.add(":hover"),o=o.parentElement}isUserInteraction(r){return r.type!==ae.IncrementalSnapshot?!1:r.data.source>H.Mutation&&r.data.source<=H.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(G.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(r,n){this.warn(`Node with id '${n}' not found. `,r)}warnCanvasMutationFailed(r,n){this.warn("Has error on canvas update",n,"canvas mutation:",r)}debugNodeNotFound(r,n){this.debug(`Node with id '${n}' not found. `,r)}warn(...r){this.config.showWarning&&this.config.logger.warn(My,...r)}debug(...r){this.config.showDebug&&this.config.logger.log(My,...r)}};var yb="M2 2L25 18L15 19L19 28L14 30L10 21L4 27Z";function bf(e,r){let n=e.filter(t=>t.view===r),o=n.find(t=>t.kind==="view_opened");return{actor:o?.actor??n.find(t=>t.actor)?.actor??null,type:o?.type??null,openedAt:o?.t??0,closedAt:n.find(t=>t.kind==="view_closed")?.t??null,cursors:n.flatMap(t=>{if(t.kind!=="action"||!t.target)return[];let i=t.target,s=i.point??(i.layer==="pixel"?{x:i.x*i.viewport.width/i.image.width,y:i.y*i.viewport.height/i.image.height}:void 0);return s?[{t:t.t,...s,click:/(?:^|_)(?:click|tap|dblclick)$/.test(t.tool)}]:[]})}}function bb(e){let r=new Map;for(let o of e)r.set(o.actor,[...r.get(o.actor)??[],o]);let n=r.get(null);return r.delete(null),[...r.values(),...n?[n]:[]]}function xb(e,r){let n=0,o=e.length;for(;n<o;){let c=Math.floor((n+o)/2);e[c].t<=r?n=c+1:o=c}let t=n-1;if(t<0){let{x:c,y:m}=e[0]??{x:12,y:12};return{x:c,y:m,click:!1}}let i=e[t],s=e[t+1],a=s?Math.max(i.t,s.t-120):i.t,l=s?Math.max(0,(r-a)/(s.t-a)):0,u=!1;for(let c=t;c>=0&&r-e[c].t<250;c--)if(e[c].click){u=!0;break}return{x:i.x+((s?.x??i.x)-i.x)*l,y:i.y+((s?.y??i.y)-i.y)*l,click:u}}var Yo=class{constructor(r,n){this.players=r;this.onError=n}players;onError;failed=new Set;speed=1;each(r){this.players.forEach((n,o)=>{if(!this.failed.has(n))try{r(n)}catch{this.failed.add(n);try{n.destroy()}catch{}this.onError(o)}})}seek(r,n=!1){this.failed.clear(),this.each(o=>{o.setSpeed(this.speed),o.seek(r,n)})}advance(r){this.each(n=>n.advance(r))}setSpeed(r){this.speed=r,this.each(n=>n.setSpeed(r))}destroy(){this.each(r=>r.destroy())}};function Sr(e,r){let n=e.index.calibrations.findLast(o=>o.seq<=r.seq);return e.offset+(n?r.event.timestamp-n.browserTime+n.t:r.t)}function wb(e,r){let n=Object.values(e.blocks).flat().flatMap(i=>{let s=i.event.data;if(i.event.type!==3||!s||typeof s!="object"||Array.isArray(s))return[];let a=Sr(e,i);return[1,6,12].some(l=>l===s.source)&&Array.isArray(s.positions)?s.positions.flatMap(l=>l&&typeof l=="object"&&!Array.isArray(l)&&typeof l.x=="number"&&typeof l.y=="number"&&typeof l.timeOffset=="number"?[{t:a+l.timeOffset,x:l.x,y:l.y,click:!1}]:[]):s.source===2&&[0,1,2,3,4,7,9].some(l=>l===s.type)&&typeof s.x=="number"&&typeof s.y=="number"?[{t:a,x:s.x,y:s.y,click:s.type===2||s.type===4||s.type===7}]:[]}).sort((i,s)=>i.t-s.t),o=0,t=[...e.timeline?.cursors??[]].sort((i,s)=>i.t-s.t).filter(i=>{for(;o<n.length&&n[o].t<i.t-250;)o++;return!i.click||o===n.length||n[o].t>i.t});return[...r?[r]:[],...t,...n].sort((i,s)=>i.t-s.t)}function $b(e){return e.index.checkpoints.flatMap(r=>{let n=e.blocks[r.snapshot.block]?.find(o=>o.seq===r.snapshot.seq);return n?[{...r,time:Sr(e,n)}]:[]})}function _b(e,r,n=!1,o=!1){let t=$b(e),i=t.findLastIndex(c=>c.time<=r);if(i<0)return[];let s=t[i],a=o?t[i+1]?.meta.seq:void 0,l=e.index.blocks.findIndex(c=>c.path===s.meta.block),u=[];for(let c of e.index.blocks.slice(l)){let m=e.blocks[c.path]??[];if(u.push(...m.filter(p=>p.seq>=s.meta.seq&&(a===void 0||p.seq<a))),!n&&m.some(p=>Sr(e,p)>=r))break}return u.map(c=>({...c.event,timestamp:Math.max(0,Sr(e,c))}))}function Sb(e){return $b(e).map(r=>r.time)}var Qo=class{constructor(r,n,o,t,i){this.root=r;this.view=n;this.onViewport=o;this.onCursor=t;this.points=wb(n,i),this.checkpoints=o?Sb(n):[],o||(this.resize=new ResizeObserver(()=>this.fit()),this.resize.observe(r))}root;view;onViewport;onCursor;player;speed=1;resize;seekTime=0;sizes=[];frameSize=new MutationObserver(()=>this.fit());reportedSize="";firstTime=0;lastTime=0;continuous=!1;closed=!1;points;animation=0;cursorTime=0;checkpoints;cursorAtWallTime=0;cursor;seek(r,n=!1){cancelAnimationFrame(this.animation),this.frameSize.disconnect(),this.resize?.observe(this.root);let o=this.view.timeline;if(o&&r<o.openedAt){this.player?.destroy(),this.player=void 0,this.root.textContent="Not opened yet";return}this.closed=o?.closedAt!=null&&r>=o.closedAt,this.closed&&(r=o.closedAt,n=!1),this.player?.destroy(),this.player=void 0,this.root.replaceChildren(),this.cursor=void 0;let t=_b(this.view,r,n,!!this.onViewport);if(t.length<2){this.root.textContent="Waiting for recording";return}this.player=new Lo(t,{root:this.root,useVirtualDom:!1,showWarning:!1,showDebug:!1,UNSAFE_replayCanvas:!1,mouseTail:!1,skipInactive:!1,loadTimeout:0,speed:this.speed});let i=Math.max(0,r-t[0].timestamp)+.01;this.seekTime=r,this.sizes=t.flatMap(({data:l,type:u,timestamp:c})=>!l||typeof l!="object"||Array.isArray(l)||!(u===4||u===3&&l.source===4)||typeof l.width!="number"||typeof l.height!="number"?[]:[{t:c,width:l.width,height:l.height}]),this.firstTime=t[0].timestamp,this.lastTime=t[t.length-1].timestamp,this.continuous=n,n?this.player.play(i):this.player.pause(i);let s=this.root.querySelector("iframe, [data-rrweb-surface]");s&&this.frameSize.observe(s,{attributes:!0,attributeFilter:["width","height"]}),this.fit(),!n&&s&&(this.animation=requestAnimationFrame(()=>{let l=s.contentDocument?.documentElement;for(let u of l?.getAnimations({subtree:!0})??[]){let c=u.effect;if(!c||!Number.isFinite(c.getComputedTiming().endTime))continue;let m=c.getKeyframes(),p=m[0]?.opacity,f=m.at(-1)?.opacity;p!==void 0&&Number(p)<=.01&&(f===void 0||Number(f)>.01)&&u.finish()}}));let a=this.root.querySelector(".replayer-wrapper");if(a){for(let l of a.querySelectorAll(".replayer-mouse"))l.style.visibility="hidden";if(!this.onCursor){this.cursor=document.createElement("div"),this.cursor.className="open-qa-cursor";let l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("viewBox","0 0 32 32");let u=document.createElementNS(l.namespaceURI,"path");u.setAttribute("d",yb),l.append(u),this.cursor.append(l),this.cursor.setAttribute("aria-hidden","true"),a.append(this.cursor)}if(this.updateCursorTime(r),this.drawCursor(r),n){let l=()=>{this.player&&(this.drawCursor(this.cursorTime+(performance.now()-this.cursorAtWallTime)*this.speed),this.animation=requestAnimationFrame(l))};this.animation=requestAnimationFrame(l)}}if(this.closed){let l=document.createElement("p");l.textContent="View ended",l.style.cssText="position:absolute;bottom:0;left:0;margin:0;padding:4px 8px;background:Canvas;color:CanvasText",this.root.style.position="relative",this.root.append(l)}}checkpointAt(r){let n=this.view.timeline?.openedAt??0,o=this.view.timeline?.closedAt;return r<n?-1:o!=null&&r>=o?o:this.checkpoints.findLast(t=>t<=r)??-1}advance(r){if(this.view.timeline?.closedAt!=null&&r>=this.view.timeline.closedAt){this.closed||this.seek(this.view.timeline.closedAt,!1);return}if(!this.player||!this.continuous){this.seek(r,!0);return}this.updateCursorTime(r);let n=Math.min(r,this.lastTime),o=Math.min(this.firstTime+this.player.getCurrentTime(),this.lastTime);Math.abs(o-n)>100&&this.player.play(Math.max(0,n-this.firstTime))}cursorBefore(r){return this.points.findLast(n=>n.t<=r)}updateCursorTime(r){this.cursorTime=r,this.cursorAtWallTime=performance.now()}drawCursor(r){let n=xb(this.points,r);this.onCursor?.(n),this.cursor&&(this.cursor.style.left=`${n.x}px`,this.cursor.style.top=`${n.y}px`,this.cursor.dataset.click=String(n.click))}setSpeed(r){this.speed=r,this.player?.setConfig({speed:r})}fit(){let r=this.root.querySelector(".replayer-wrapper"),n=this.root.querySelector("iframe, [data-rrweb-surface]");if(!r||!n)return;let o=this.continuous&&this.player?Math.max(this.seekTime,this.firstTime+this.player.getCurrentTime()):this.seekTime,{width:t,height:i}=this.sizes.findLast(l=>l.t<=o)??this.view.viewport;if(!(t>0&&i>0&&t<=32768&&i<=32768))return;n.style.width=t+"px",n.style.height=i+"px";let s=t+"x"+i;this.reportedSize!==s&&(this.reportedSize=s,this.onViewport?.(t,i)),r.style.width=t+"px",r.style.height=i+"px";let a=this.onViewport?1:Math.min(1,this.root.clientWidth/t);!this.onViewport&&a>0&&r.style.setProperty("--replay-display-scale",String(a)),r.style.transformOrigin="top left",r.style.transform=`scale(${a})`,this.root.style.height=`${i*a}px`}destroy(){cancelAnimationFrame(this.animation);try{this.player?.destroy()}finally{this.player=void 0,this.resize?.disconnect(),this.frameSize.disconnect()}}};var qk={clock:'<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>',dot:'<circle cx="12" cy="12" r="2" fill="currentColor"/>',check:'<path d="m5 12 4 4L19 6"/>',"circle-x":'<circle cx="12" cy="12" r="10"/><path d="m9 9 6 6m0-6-6 6"/>',"circle-help":'<circle cx="12" cy="12" r="10"/><path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3m.1 4h.01"/>',"circle-stop":'<circle cx="12" cy="12" r="10"/><rect x="9" y="9" width="6" height="6" rx="1"/>',circle:'<circle cx="12" cy="12" r="10"/>',"circle-alert":'<circle cx="12" cy="12" r="10"/><path d="M12 8v4m0 4h.01"/>'};function xf(e){let r=document.createElement("span");return r.className=`status-icon ${e.tone}`,r.setAttribute("aria-hidden","true"),r.innerHTML=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${qk[e.icon]}</svg>`,r}function wf(e){let r=new Map,n=new Set,o=s=>s.replace(/open-qa-asset:\d+/g,t);function t(s){let a=r.get(s);if(a)return a;let l=e[s];if(!l||n.has(s))return"data:,";n.add(s);let u=l.css?o(l.content):Uint8Array.from(atob(l.content),m=>m.charCodeAt(0)),c=URL.createObjectURL(new Blob([u],{type:l.mime}));return r.set(s,c),n.delete(s),c}function i(s){return typeof s=="string"?o(s):Array.isArray(s)?s.map(i):s&&typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,l])=>[a,i(l)])):s}return{rewrite:s=>i(s),destroy:()=>{for(let s of r.values())URL.revokeObjectURL(s)}}}var{data:q,replay:Ir,executionSnapshot:kr,classificationHistory:$f,attemptAudit:kb,trial:Ib,quarantined:zb,quarantineOverdueSince:Bk,resources:Wk,healShots:Ob={}}=JSON.parse(document.getElementById("report-data").textContent),Db=wf(Wk);for(let e of Ir.views)for(let r of Object.values(e.blocks))for(let n of r)n.event=Db.rewrite(n.event);var Jk=document.getElementById("report");Jk.innerHTML=`<header><div class="brand">open-qa <span>Run report</span></div><span class="offline">Offline report</span></header>
207
+ <section class="summary"><div><p class="eyebrow">Run result</p><h1><span id="verdict-icon" aria-hidden="true"></span> <span id="verdict"></span></h1><button id="go-failure" hidden>Go to failure</button><details id="run-details"><summary>Details</summary><p id="reason"></p><div id="classification" hidden><h3>Failure classification</h3><p id="classification-category"></p><p id="classification-reason"></p></div><pre id="status-sources"></pre><div id="run-providers" hidden><p>Declared providers</p><ul></ul></div><ul id="deadlock" hidden></ul></details></div><div id="metrics"></div></section>
208
208
  <div id="warnings" role="status"></div>
209
209
  <div class="workspace"><section class="playback"><div class="section-heading"><h2>Session replay</h2><select id="view" aria-label="Replay view"></select><button id="focus-view" aria-pressed="false">Focus view</button></div><div id="screen"></div>
210
210
  <p id="recording-start" role="status" style="visibility:hidden"><span id="recording-start-text"></span> <button id="skip-recording">Skip to recording</button></p>
@@ -212,8 +212,8 @@ PERFORMANCE OF THIS SOFTWARE.
212
212
  <p id="caption"></p><h2>Timeline</h2><div id="timeline"></div></section><aside><h2>Steps <span id="step-count"></span></h2><div id="steps"></div></aside></div>
213
213
  <section id="heals"><h2>Self-heal</h2></section>
214
214
  <section id="reviewer" class="reviewer"><h2>Independent review</h2><p id="review-status"></p><div id="review-checks"></div><h3>Findings</h3><div id="review-findings"></div><details><summary>Review evidence and calibration</summary><pre id="review-calibration"></pre></details></section>
215
- <div class="panels"><section><h2>Agent activity</h2><div id="agent" class="event-panel"></div></section><section><h2>Network</h2><div id="network" class="event-panel"></div></section><section><h2>Console</h2><div id="console" class="event-panel"></div></section></div><footer>Recorded page scripts are disabled. Missing recording data is shown above.</footer>`;var H=e=>document.getElementById(e),ke=(e,r)=>{H(e).textContent=r},Ct=e=>`${(e/1e3).toFixed(2)}s`;ke("verdict",q.status.word);H("verdict-icon").append(Xp(q.status));ke("reason",q.reason??"Run event log");ke("status-sources",JSON.stringify(q.status.sources,null,2));if(q.deadlock){H("deadlock").hidden=!1;for(let e of q.deadlock){let r=document.createElement("li");r.textContent=e.step===void 0?`${e.actor}: finished`:`${e.actor} at step ${e.step} waits for ${e.waitsFor.join(", ")}`,H("deadlock").append(r)}}var PS=[["Duration",q.duration===null?"Not recorded":Ct(q.duration)],["Actions",String(q.actions)],...ud(q.usage,q.modelAccess,q.usageBreakdown).flatMap(({label:e,usage:r,access:n})=>!r&&!e?[["Usage","Not recorded"]]:[[e,ld(r,n)],[`${e} tokens`,r?`${r.inputTokens} in, ${r.outputTokens} out`:"Not recorded"],[`${e} cache read tokens`,r?.cacheReadTokens?.toString()??"Not recorded"],[`${e} cache write tokens`,r?.cacheWriteTokens?.toString()??"Not recorded"]]),["Runtime",q.runtime??"Not recorded"],...q.marker?[["Marker",q.marker]]:[],...q.leases?[["Resources",q.leases.map(e=>`${e.actor}: ${e.kind}/${e.resource}`).join(", ")]]:[],["Account",oo(q.modelAccess)]];for(let[e,r]of PS){let n=document.createElement("div"),o=document.createElement("span");o.textContent=e;let t=document.createElement("strong");t.textContent=r,n.append(o,t),H("metrics").append(n)}ke("warnings",Rt.warnings.join(`
216
- `));H("warnings").hidden=!Rt.warnings.length;ke("step-count",String(q.steps.length));var Le=q.steps.find(e=>e.status==="failed"),Re=H("view");for(let e of Rt.manifest?.views??[]){let r=document.createElement("option");r.value=e.view;let n=Kp(q.events,e.view);r.textContent=`${n.actor??"Observers"}: ${e.view}${e.view===Le?.failureView?" \xB7 Failure view":""}`,Re.append(r)}Re.disabled=!Re.options.length;Le?.failureView&&[...Re.options].some(e=>e.value===Le.failureView)&&(Re.value=Le.failureView);var Tt,fn=!1,Cy=matchMedia("(max-width: 767px)"),jt,ft=!1,le=0,Uo=1,ef=0,Mo=0,mt=Math.max(q.duration??0,1),Lo=H("scrubber");Lo.max=String(mt);var mn=[];function RS(e){switch(e.kind){case"agent_text":return e.text;case"action":return`${e.tool}, ${e.ok?"ok":"failed"}, ${e.ms}ms
215
+ <div class="panels"><section><h2>Agent activity</h2><div id="agent" class="event-panel"></div></section><section><h2>Network</h2><div id="network" class="event-panel"></div></section><section><h2>Console</h2><div id="console" class="event-panel"></div></section></div><footer>Recorded page scripts are disabled. Missing recording data is shown above.</footer>`;var J=e=>document.getElementById(e),ye=(e,r)=>{J(e).textContent=r},jt=e=>`${(e/1e3).toFixed(2)}s`;ye("verdict",q.status.word);J("verdict-icon").append(xf(q.status));ye("reason",q.reason??"Run event log");if(kb||Ib||zb){let e=document.createElement("details"),r=document.createElement("summary");r.textContent="Trial and attempt audit";let n=document.createElement("pre");n.textContent=JSON.stringify({attemptAudit:kb,trial:Ib,quarantined:zb},null,2),e.append(r,n),J("run-details").append(e)}if($f?.classification){let{category:e,reason:r,taxonomy:n}=$f.classification,o=$f.status.replaceAll("-"," ");J("classification").hidden=!1,ye("classification-category",[e??"Unclassified",o,n&&`${n.project}@${n.version}`].filter(Boolean).join(" \xB7 ")),ye("classification-reason",r)}ye("status-sources",JSON.stringify(q.status.sources,null,2));if(kr?.status==="recorded"&&(kr.snapshot.schemaVersion===7||kr.snapshot.schemaVersion===8)){let e=kr.snapshot.declared.capabilities.providers,r=J("run-providers"),n=r.querySelector("ul");r.hidden=e.length===0;for(let o of e){let t=document.createElement("li");t.textContent=`${o.kind}/${o.id} \xB7 ${o.provider}@${o.version}`,n.append(t)}if(kr.snapshot.schemaVersion===8){let o=kr.snapshot.observed.browserViews;if(o.length){let t=document.createElement("details"),i=document.createElement("summary");i.textContent="Observed browser settings";let s=document.createElement("pre");s.textContent=JSON.stringify(o,null,2),t.append(i,s),J("run-details").append(t)}}}if(q.webEvidence.length){let e=document.createElement("details"),r=document.createElement("summary");r.textContent="Browser diagnostic artifacts";let n=document.createElement("ul");for(let{path:o,actor:t,view:i,step:s,seq:a}of q.webEvidence){let l=document.createElement("li");l.textContent=[t,i,s,`Event ${a}`,`stage/${o}`].filter(Boolean).join(" \xB7 "),n.append(l)}e.append(r,n),J("run-details").append(e)}if(q.deadlock){J("deadlock").hidden=!1;for(let e of q.deadlock){let r=document.createElement("li");r.textContent=e.step===void 0?`${e.actor}: finished`:`${e.actor} at step ${e.step} waits for ${e.waitsFor.join(", ")}`,J("deadlock").append(r)}}var Gk=[["Duration",q.duration===null?"Not recorded":jt(q.duration)],["Actions",String(q.actions)],...Rd(q.usage,q.modelAccess,q.usageBreakdown).flatMap(({label:e,usage:r,access:n})=>!r&&!e?[["Usage","Not recorded"]]:[[e,Dd(r,n)],[`${e} tokens`,r?`${r.inputTokens} in, ${r.outputTokens} out`:"Not recorded"],[`${e} cache read tokens`,r?.cacheReadTokens?.toString()??"Not recorded"],[`${e} cache write tokens`,r?.cacheWriteTokens?.toString()??"Not recorded"]]),["Runtime",q.runtime??"Not recorded"],...q.marker?[["Marker",q.marker]]:[],...q.leases?[["Resources",q.leases.map(e=>`${e.actor}: ${e.kind}/${e.resource}`).join(", ")]]:[],["Account",_o(q.modelAccess)]];for(let[e,r]of Gk){let n=document.createElement("div"),o=document.createElement("span");o.textContent=e;let t=document.createElement("strong");t.textContent=r,n.append(o,t),J("metrics").append(n)}var If=[...Ir.warnings],Eb=new Date(Bk??NaN);Number.isFinite(Eb.getTime())&&If.push(`Quarantine overdue since ${Eb.toISOString()}`);ye("warnings",If.join(`
216
+ `));J("warnings").hidden=!If.length;ye("step-count",String(q.steps.length));var Le=q.steps.find(e=>e.status==="failed"),Re=J("view");for(let e of Ir.manifest?.views??[]){let r=document.createElement("option");r.value=e.view;let n=bf(q.events,e.view);r.textContent=`${n.actor??"Observers"}: ${e.view}${e.view===Le?.failureView?" \xB7 Failure view":""}`,Re.append(r)}Re.disabled=!Re.options.length;Le?.failureView&&[...Re.options].some(e=>e.value===Le.failureView)&&(Re.value=Le.failureView);var Tt,wn=!1,Rb=matchMedia("(max-width: 767px)"),Ct,ht=!1,le=0,ts=1,kf=0,rs=0,gt=Math.max(q.duration??0,1),ns=J("scrubber");ns.max=String(gt);var $n=[];function Kk(e){switch(e.kind){case"agent_text":return e.text;case"action":return`${e.tool}, ${e.ok?"ok":"failed"}, ${e.ms}ms
217
217
  ${JSON.stringify(e.args)}${e.error?`
218
218
  ${e.error}`:""}`;case"network":return`${e.method} ${e.status??e.error??"pending"}, ${e.ms}ms
219
- ${e.url}`;case"console":return`${e.level}: ${e.text}`;case"page_error":return e.message;case"step_finished":return`${e.step}: ${e.status}`;default:return`${e.kind}${e.step?`, ${e.step}`:""}`}}function Ay(e,r,n){let o=document.createElement("button");o.className="event",o.classList.add("future"),o.hidden=n,o.dataset.seq=String(e.seq),o.textContent=`${Ct(e.t)}, ${RS(e)}`,o.onclick=()=>Te(e.t),mn.push({element:o,t:e.t,panel:n}),r.append(o)}var Zo=new Map(q.events.map(e=>[e.seq,e])),Ye=q.events.filter(e=>e.kind==="reviewer_result"),Ao=Ye.at(-1),$r={completed:0,incomplete:0,skipped:0};for(let e of Ye)$r[e.result.status]++;var Uy=$r.incomplete?"incomplete":$r.completed?"completed":"skipped",Ry=Ye.flatMap(e=>e.result.status==="incomplete"?e.result.checks.filter(r=>r.status==="unknown"):[]);ke("review-status",Ao?`Reviewer ${Uy} \xB7 ${Ao.originalVerdict} \u2192 ${Ao.verdict} \xB7 ${$r.completed} completed \xB7 ${$r.incomplete} incomplete \xB7 ${$r.skipped} skipped${Ry.length?` \xB7 unresolved: ${Ry.map(e=>`${e.actor}/${e.step}: ${e.item}`).join(", ")}`:""}`:"Reviewer incomplete \xB7 No review was recorded for this run");if(Ao){ke("review-calibration",JSON.stringify(Ye.map(r=>r.result.evidence??{}),null,2));let e=(r,n,o)=>{for(let t of n){let i=document.createElement("button");i.textContent=`Event #${t}`,i.disabled=!Zo.has(t),i.onclick=()=>{let s=Zo.get(t);s&&Te(s.t)},r.append(i)}if(o.length){let t=document.createElement("p");t.textContent=`Screenshot paths: ${o.join(", ")}`,r.append(t)}};for(let[r,n]of Ye.entries()){let o=document.createElement("p");o.textContent=`Batch ${r+1}/${Ye.length} \xB7 ${n.result.status} \xB7 ${n.result.reason}`,H("review-checks").append(o)}for(let r of Ye.flatMap(n=>n.result.checks)){let n=document.createElement("p");n.textContent=`${r.actor}/${r.step} \xB7 ${r.item}: ${r.status} \xB7 ${r.reason} `,e(n,r.eventSeqs,r.shots),H("review-checks").append(n)}for(let r of Ye.flatMap(n=>n.result.findings)){let n=document.createElement("article"),o=document.createElement("p");o.textContent=`${r.severity} \xB7 ${r.category} \xB7 ${r.actor}/${r.step}: ${r.description}`,n.append(o),e(n,r.eventSeqs,r.shots),H("review-findings").append(n)}Ye.some(r=>r.result.findings.length)||ke("review-findings",Uy==="completed"?"No findings":"Findings unavailable")}for(let e of q.events)Ay(e,H("timeline"),!1);for(let[e,r]of[["agent",q.agent],["network",q.network],["console",q.console]]){for(let o of r)Ay(Zo.get(o),H(e),!0);let n=document.createElement("p");n.className="empty",n.textContent="No events at this time",H(e).append(n)}for(let e of q.steps){let r=document.createElement("details");r.open=e.status==="failed",r.className=`step ${e.status}`,r.dataset.start=String(e.start),r.dataset.end=String(e.end??mt);let n=document.createElement("summary"),o=document.createElement("button"),t=hn[e.status],i=Xp(t);o.append(i,document.createTextNode(` ${t.word}: ${e.id}`)),o.dataset.step=e.id,o.onclick=a=>{a.preventDefault(),Te(e.seek)},n.append(o);let s=document.createElement("p");s.textContent=`Actor: ${e.actor}, methods: ${e.methods.join(", ")||"No actions"}, actions: ${e.actions}, duration: ${e.duration==null?"Not recorded":Ct(e.duration)}`,r.append(n,s);for(let[a,u]of[["End",e.end],["Failure",e.failure]]){let l=document.createElement("button");l.textContent=u===null?`${a}: Not recorded`:`${a} ${Ct(u)}`,l.disabled=u===null,l.dataset.stepAction=a.toLowerCase(),l.onclick=()=>{u!==null&&(a==="Failure"&&e.failureView&&[...Re.options].some(c=>c.value===e.failureView)&&(Re.value=e.failureView,_r()),Te(u))},r.append(l)}if(e.reason){let a=document.createElement("p");a.textContent=e.reason,r.append(a)}for(let a of e.evidence){let u=document.createElement("pre");u.textContent=JSON.stringify({condition:a.condition,result:a.result},null,2),r.append(u)}H("steps").append(r)}H("heals").hidden=q.heals.length===0;for(let e of q.heals){let r=document.createElement("section");r.className="step",H("heals").append(r);let n=document.createElement("p");n.style.overflowWrap="anywhere",n.textContent=`${e.step} \xB7 Self-heal ${hn[e.outcome].word} \xB7 ${e.mode} \xB7 source v${e.sourceVersion} \xB7 cache ${e.cache}${e.version?` v${e.version}`:""}${e.cacheId?` \xB7 ${e.cacheId}`:""}`,r.append(n);let o=document.createElement("p");o.textContent=`Heal runtime: ${e.runtime??"Not recorded"} \xB7 Model: ${e.model??"Not recorded"} \xB7 Access: ${oo(e.modelAccess)}`,r.append(o);for(let[t,i]of[["Before healing",e.beforeShot],["After healing",e.shot]]){if(!i||!Py[i]){let u=document.createElement("p");u.textContent=`${t}: ${i?"Screenshot unavailable":"Not recorded"}`,r.append(u);continue}let s=document.createElement("img");s.alt=`${t}: ${e.step}`,s.src=Py[i],s.style.maxWidth="100%";let a=document.createElement("p");a.textContent=t,r.append(a,s)}}mn.sort((e,r)=>e.t-r.t);var TS=[...document.querySelectorAll(".event-panel")],jS=[...document.querySelectorAll("#steps .step")],Fo=new Map;for(let e of mn){let r=Number(e.element.dataset.seq);Fo.set(r,[...Fo.get(r)??[],e.element])}var Yp=0,Qp;function Ty(e,r){let n=0,o=e.length;for(;n<o;){let t=n+o>>>1;e[t].t<=r?n=t+1:o=t}return n}function My(){H("recording-start").style.visibility=jt===void 0||le>=jt?"hidden":"visible",Lo.value=String(le),ke("time",`${Ct(le)} / ${Ct(mt)}`),H("report").dataset.time=String(Math.round(le)),ke("play",ft?"Pause":"Play"),ke("caption",q.steps.filter(n=>n.seek<=le&&(n.end===null||n.end>=le)).map(n=>`${n.actor}: ${n.id}`).join(" \xB7 ")||"No step at this time");let e=Ty(mn,le);for(let n=Math.min(Yp,e);n<Math.max(Yp,e);n++){let o=mn[n],t=n>=e;o.element.hidden=o.panel&&t,o.element.classList.toggle("future",t)}Yp=e;let r=q.events[Ty(q.events,le)-1]?.seq;if(r!==Qp){for(let n of Fo.get(Qp)??[])n.classList.remove("current");for(let n of Fo.get(r)??[])n.classList.add("current");Qp=r}for(let n of TS){n.dataset.time=String(Math.round(le));let o=q[n.id];n.querySelector(".empty").hidden=!!o.length&&Zo.get(o[0]).t<=le}for(let n of jS)n.classList.toggle("current",le>=Number(n.dataset.start)&&le<=Number(n.dataset.end))}function Te(e,r=!1){cancelAnimationFrame(Mo),ft=r,le=Math.min(mt,Math.max(0,e)),Tt?.seek(le,ft),My(),ft&&(ef=performance.now(),Mo=requestAnimationFrame(Ly))}function Ly(e){if(le=Math.min(mt,le+(e-ef)*Uo),ef=e,le>=mt){Te(mt);return}Tt?.advance(le),My(),Mo=requestAnimationFrame(Ly)}function _r(){Tt?.destroy();let e=Rt.views.find(i=>i.index.view===Re.value);jt=e?.index.checkpoints.flatMap(i=>{let s=e.blocks[i.snapshot.block]?.find(a=>a.seq===i.snapshot.seq);return s?[pt(e,s)]:[]}).sort((i,s)=>i-s)[0],ke("recording-start-text",jt===void 0?"":`Recording starts at ${Ct(jt)}.`),H("screen").replaceChildren();let r=(Rt.manifest?.views??[]).map(i=>({id:i.view,actor:Kp(q.events,i.view).actor})),n=fn||Cy.matches?r.filter(i=>i.id===Re.value):r,o=[],t=[];for(let i of Ey(n)){let s=document.createElement("section");s.className=i.length>1?"actor-row actor-row-wide":"actor-row";let a=document.createElement("h3");a.textContent=i[0].actor??"Observers",s.append(a);let u=document.createElement("div");u.className="view-grid",s.append(u);for(let l of i){let c=document.createElement("section"),f=document.createElement("h4"),d=document.createElement("div");c.className="view-cell",c.dataset.view=l.id,d.className="view-surface",f.textContent=l.id,c.append(f,d),u.append(c);let p=Rt.views.find(h=>h.index.view===l.id);if(p)try{o.push(new Co(d,p)),t.push(d)}catch{d.textContent="Recording unavailable"}else d.textContent="Recording unavailable"}H("screen").append(s)}Tt=new jo(o,i=>{t[i].textContent="Recording unavailable"}),Tt.setSpeed(Uo),r.length||ke("screen","No session replay available"),Te(le,ft)}H("skip-recording").onclick=()=>{jt!==void 0&&Te(jt,ft)};H("go-failure").hidden=!Le;H("go-failure").onclick=()=>{Le&&(Le.failureView&&[...Re.options].some(e=>e.value===Le.failureView)&&(Re.value=Le.failureView,_r()),Te(Le.failure??Le.start))};H("play").onclick=()=>Te(le>=mt?0:le,!ft);Lo.oninput=()=>Te(Number(Lo.value));Re.onchange=_r;H("focus-view").onclick=()=>{fn=!fn,H("focus-view").setAttribute("aria-pressed",String(fn)),ke("focus-view",fn?"Show all views":"Focus view"),_r()};Cy.addEventListener("change",_r);H("speed").onchange=()=>{Uo=Number(H("speed").value),Tt?.setSpeed(Uo),Te(le,ft)};window.addEventListener("load",()=>{_r(),Te(q.initialTime)},{once:!0});window.addEventListener("pagehide",()=>{cancelAnimationFrame(Mo),Tt?.destroy(),jy.destroy()});})();
219
+ ${e.url}`;case"console":return`${e.level}: ${e.text}`;case"page_error":return e.message;case"step_finished":return`${e.step}: ${e.status}`;default:return`${e.kind}${e.step?`, ${e.step}`:""}`}}function Tb(e,r,n){let o=document.createElement("button");o.className="event",o.classList.add("future"),o.hidden=n,o.dataset.seq=String(e.seq),o.textContent=`${jt(e.t)}, ${Kk(e)}`,o.onclick=()=>Te(e.t),$n.push({element:o,t:e.t,panel:n}),r.append(o)}var is=new Map(q.events.map(e=>[e.seq,e])),tt=q.events.filter(e=>e.kind==="reviewer_result"),es=tt.at(-1),zr={completed:0,incomplete:0,skipped:0};for(let e of tt)zr[e.result.status]++;var Cb=zr.incomplete?"incomplete":zr.completed?"completed":"skipped",Pb=tt.flatMap(e=>e.result.status==="incomplete"?e.result.checks.filter(r=>r.status==="unknown"):[]);ye("review-status",es?`Reviewer ${Cb} \xB7 ${es.originalVerdict} \u2192 ${es.verdict} \xB7 ${zr.completed} completed \xB7 ${zr.incomplete} incomplete \xB7 ${zr.skipped} skipped${Pb.length?` \xB7 unresolved: ${Pb.map(e=>`${e.actor}/${e.step}: ${e.item}`).join(", ")}`:""}`:"Reviewer incomplete \xB7 No review was recorded for this run");if(es){ye("review-calibration",JSON.stringify(tt.map(r=>r.result.evidence??{}),null,2));let e=(r,n,o)=>{for(let t of n){let i=document.createElement("button");i.textContent=`Event #${t}`,i.disabled=!is.has(t),i.onclick=()=>{let s=is.get(t);s&&Te(s.t)},r.append(i)}if(o.length){let t=document.createElement("p");t.textContent=`Screenshot paths: ${o.join(", ")}`,r.append(t)}};for(let[r,n]of tt.entries()){let o=document.createElement("p");o.textContent=`Batch ${r+1}/${tt.length} \xB7 ${n.result.status} \xB7 ${n.result.reason}`,J("review-checks").append(o)}for(let r of tt.flatMap(n=>n.result.checks)){let n=document.createElement("p");n.textContent=`${r.actor}/${r.step} \xB7 ${r.item}: ${r.status} \xB7 ${r.reason} `,e(n,r.eventSeqs,r.shots),J("review-checks").append(n)}for(let r of tt.flatMap(n=>n.result.findings)){let n=document.createElement("article"),o=document.createElement("p");o.textContent=`${r.severity} \xB7 ${r.category} \xB7 ${r.actor}/${r.step}: ${r.description}`,n.append(o),e(n,r.eventSeqs,r.shots),J("review-findings").append(n)}tt.some(r=>r.result.findings.length)||ye("review-findings",Cb==="completed"?"No findings":"Findings unavailable")}for(let e of q.events)Tb(e,J("timeline"),!1);for(let[e,r]of[["agent",q.agent],["network",q.network],["console",q.console]]){for(let o of r)Tb(is.get(o),J(e),!0);let n=document.createElement("p");n.className="empty",n.textContent="No events at this time",J(e).append(n)}for(let e of q.steps){let r=document.createElement("details");r.open=e.status==="failed",r.className=`step ${e.status}`,r.dataset.start=String(e.start),r.dataset.end=String(e.end??gt);let n=document.createElement("summary"),o=document.createElement("button"),t=_n[e.status],i=xf(t);o.append(i,document.createTextNode(` ${t.word}: ${e.id}`)),o.dataset.step=e.id,o.onclick=a=>{a.preventDefault(),Te(e.seek)},n.append(o);let s=document.createElement("p");s.textContent=`Actor: ${e.actor}, methods: ${e.methods.join(", ")||"No actions"}, actions: ${e.actions}, duration: ${e.duration==null?"Not recorded":jt(e.duration)}`,r.append(n,s);for(let[a,l]of[["End",e.end],["Failure",e.failure]]){let u=document.createElement("button");u.textContent=l===null?`${a}: Not recorded`:`${a} ${jt(l)}`,u.disabled=l===null,u.dataset.stepAction=a.toLowerCase(),u.onclick=()=>{l!==null&&(a==="Failure"&&e.failureView&&[...Re.options].some(c=>c.value===e.failureView)&&(Re.value=e.failureView,Or()),Te(l))},r.append(u)}if(e.reason){let a=document.createElement("p");a.textContent=e.reason,r.append(a)}for(let a of e.evidence){let l=document.createElement("pre");l.textContent=JSON.stringify({condition:a.condition,result:a.result},null,2),r.append(l)}J("steps").append(r)}J("heals").hidden=q.heals.length===0;for(let e of q.heals){let r=document.createElement("section");r.className="step",J("heals").append(r);let n=document.createElement("p");n.style.overflowWrap="anywhere",n.textContent=`${e.step} \xB7 Self-heal ${_n[e.outcome].word} \xB7 ${e.mode} \xB7 source v${e.sourceVersion} \xB7 cache ${e.cache}${e.version?` v${e.version}`:""}${e.cacheId?` \xB7 ${e.cacheId}`:""}`,r.append(n);let o=document.createElement("p");o.textContent=`Heal runtime: ${e.runtime??"Not recorded"} \xB7 Model: ${e.model??"Not recorded"} \xB7 Access: ${_o(e.modelAccess)}`,r.append(o);for(let[t,i]of[["Before healing",e.beforeShot],["After healing",e.shot]]){if(!i||!Ob[i]){let l=document.createElement("p");l.textContent=`${t}: ${i?"Screenshot unavailable":"Not recorded"}`,r.append(l);continue}let s=document.createElement("img");s.alt=`${t}: ${e.step}`,s.src=Ob[i],s.style.maxWidth="100%";let a=document.createElement("p");a.textContent=t,r.append(a,s)}}$n.sort((e,r)=>e.t-r.t);var Hk=[...document.querySelectorAll(".event-panel")],Xk=[...document.querySelectorAll("#steps .step")],os=new Map;for(let e of $n){let r=Number(e.element.dataset.seq);os.set(r,[...os.get(r)??[],e.element])}var _f=0,Sf;function Nb(e,r){let n=0,o=e.length;for(;n<o;){let t=n+o>>>1;e[t].t<=r?n=t+1:o=t}return n}function jb(){J("recording-start").style.visibility=Ct===void 0||le>=Ct?"hidden":"visible",ns.value=String(le),ye("time",`${jt(le)} / ${jt(gt)}`),J("report").dataset.time=String(Math.round(le)),ye("play",ht?"Pause":"Play"),ye("caption",q.steps.filter(n=>n.seek<=le&&(n.end===null||n.end>=le)).map(n=>`${n.actor}: ${n.id}`).join(" \xB7 ")||"No step at this time");let e=Nb($n,le);for(let n=Math.min(_f,e);n<Math.max(_f,e);n++){let o=$n[n],t=n>=e;o.element.hidden=o.panel&&t,o.element.classList.toggle("future",t)}_f=e;let r=q.events[Nb(q.events,le)-1]?.seq;if(r!==Sf){for(let n of os.get(Sf)??[])n.classList.remove("current");for(let n of os.get(r)??[])n.classList.add("current");Sf=r}for(let n of Hk){n.dataset.time=String(Math.round(le));let o=q[n.id];n.querySelector(".empty").hidden=!!o.length&&is.get(o[0]).t<=le}for(let n of Xk)n.classList.toggle("current",le>=Number(n.dataset.start)&&le<=Number(n.dataset.end))}function Te(e,r=!1){cancelAnimationFrame(rs),ht=r,le=Math.min(gt,Math.max(0,e)),Tt?.seek(le,ht),jb(),ht&&(kf=performance.now(),rs=requestAnimationFrame(Ab))}function Ab(e){if(le=Math.min(gt,le+(e-kf)*ts),kf=e,le>=gt){Te(gt);return}Tt?.advance(le),jb(),rs=requestAnimationFrame(Ab)}function Or(){Tt?.destroy();let e=Ir.views.find(i=>i.index.view===Re.value);Ct=e?.index.checkpoints.flatMap(i=>{let s=e.blocks[i.snapshot.block]?.find(a=>a.seq===i.snapshot.seq);return s?[Sr(e,s)]:[]}).sort((i,s)=>i-s)[0],ye("recording-start-text",Ct===void 0?"":`Recording starts at ${jt(Ct)}.`),J("screen").replaceChildren();let r=(Ir.manifest?.views??[]).map(i=>({id:i.view,actor:bf(q.events,i.view).actor})),n=wn||Rb.matches?r.filter(i=>i.id===Re.value):r,o=[],t=[];for(let i of bb(n)){let s=document.createElement("section");s.className=i.length>1?"actor-row actor-row-wide":"actor-row";let a=document.createElement("h3");a.textContent=i[0].actor??"Observers",s.append(a);let l=document.createElement("div");l.className="view-grid",s.append(l);for(let u of i){let c=document.createElement("section"),m=document.createElement("h4"),p=document.createElement("div");c.className="view-cell",c.dataset.view=u.id,p.className="view-surface",m.textContent=u.id,c.append(m,p),l.append(c);let f=Ir.views.find(h=>h.index.view===u.id);if(f)try{o.push(new Qo(p,f)),t.push(p)}catch{p.textContent="Recording unavailable"}else p.textContent="Recording unavailable"}J("screen").append(s)}Tt=new Yo(o,i=>{t[i].textContent="Recording unavailable"}),Tt.setSpeed(ts),r.length||ye("screen","No session replay available"),Te(le,ht)}J("skip-recording").onclick=()=>{Ct!==void 0&&Te(Ct,ht)};J("go-failure").hidden=!Le;J("go-failure").onclick=()=>{Le&&(Le.failureView&&[...Re.options].some(e=>e.value===Le.failureView)&&(Re.value=Le.failureView,Or()),Te(Le.failure??Le.start))};J("play").onclick=()=>Te(le>=gt?0:le,!ht);ns.oninput=()=>Te(Number(ns.value));Re.onchange=Or;J("focus-view").onclick=()=>{wn=!wn,J("focus-view").setAttribute("aria-pressed",String(wn)),ye("focus-view",wn?"Show all views":"Focus view"),Or()};Rb.addEventListener("change",Or);J("speed").onchange=()=>{ts=Number(J("speed").value),Tt?.setSpeed(ts),Te(le,ht)};window.addEventListener("load",()=>{Or(),Te(q.initialTime)},{once:!0});window.addEventListener("pagehide",()=>{cancelAnimationFrame(rs),Tt?.destroy(),Db.destroy()});})();