@everfur/sdk 0.5.4 → 0.5.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.
- package/CHANGELOG.md +79 -0
- package/README.md +8 -8
- package/dist/{Chat-Dfjegpf2.d.cts → Chat-BBnXSZQG.d.cts} +20 -3
- package/dist/{Chat-DXDS-MiC.d.ts → Chat-BzvoUe9L.d.ts} +20 -3
- package/dist/{DepthViews-BhBA6qiu.d.cts → DepthViews-BYEgUxDQ.d.ts} +1 -1
- package/dist/{DepthViews-meuqwdBv.d.cts → DepthViews-CsVphyQL.d.ts} +1 -1
- package/dist/{DepthViews-ru9SaVXz.d.ts → DepthViews-D-pleytA.d.cts} +1 -1
- package/dist/{DepthViews-DFODLIM2.d.ts → DepthViews-DKbfq4bX.d.cts} +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/{attachments-DN0VDOBG.d.cts → attachments-BcD6K0IF.d.cts} +5 -5
- package/dist/{attachments-Cnz4Zqxq.d.ts → attachments-CFK3WPF4.d.ts} +5 -5
- package/dist/{attachments-hAjG4YGo.d.cts → attachments-CieUG7nB.d.cts} +2 -2
- package/dist/{attachments-D3i4WG5V.d.ts → attachments-DorefS77.d.ts} +2 -2
- package/dist/{bookingCopy-Bu1pMPh1.d.ts → bookingCopy-BUTs_nKf.d.ts} +2 -2
- package/dist/{bookingCopy-DP3k0iBn.d.cts → bookingCopy-Cl3RZ_k2.d.cts} +2 -2
- package/dist/{casesRepository-Bf8QDDPM.d.ts → casesRepository-C29WolRA.d.ts} +1 -1
- package/dist/{casesRepository-BIV6eQxW.d.cts → casesRepository-Ct5MO1mM.d.cts} +1 -1
- package/dist/chat/index.cjs +1 -1
- package/dist/chat/index.d.cts +9 -9
- package/dist/chat/index.d.ts +9 -9
- package/dist/chat/index.js +1 -1
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +6 -6
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +2 -2
- package/dist/{config-3jJR8fVC.d.cts → config-BBeF3kv5.d.cts} +1 -1
- package/dist/{config-FhlcRHRe.d.ts → config-Dl8Iqs1i.d.ts} +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context-BVGuiYob.d.cts → context-DGZrfVkE.d.cts} +5 -5
- package/dist/{context-BqfAkCov.d.ts → context-DXj75_Lo.d.ts} +5 -5
- package/dist/{copy-DBbgO9g4.d.cts → copy-CQHEQwW7.d.cts} +2 -2
- package/dist/{copy-BDfIOo5Z.d.ts → copy-CSbMmuCV.d.ts} +2 -2
- package/dist/core/index.cjs +7 -7
- package/dist/core/index.d.cts +15 -13
- package/dist/core/index.d.ts +15 -13
- package/dist/core/index.js +7 -7
- package/dist/{depth-Cwmumplg.d.cts → depth-Bb2yphTT.d.cts} +2 -2
- package/dist/{depth-VpVaDj5I.d.ts → depth-DRzDoKeE.d.ts} +2 -2
- package/dist/{entitlementRepository-Cys2DfuQ.d.ts → entitlementRepository-S4bU03Ld.d.ts} +9 -2
- package/dist/{entitlementRepository-CCIj0Z0c.d.cts → entitlementRepository-lwXYn-lq.d.cts} +9 -2
- package/dist/{identity-BMPu-Kg6.d.ts → identity-C0r18khM.d.ts} +1 -1
- package/dist/{identity-DkVFMcyL.d.cts → identity-d2lu16uc.d.cts} +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +6 -6
- package/dist/notifications/index.d.cts +2 -2
- package/dist/notifications/index.d.ts +2 -2
- package/dist/{pets-B6QnvZi2.d.cts → pets-BZ0384Do.d.cts} +1 -1
- package/dist/{pets-BCgVJlJD.d.ts → pets-CJdq4rRX.d.ts} +1 -1
- package/dist/{petsRepository-CwIyiIvt.d.cts → petsRepository-BHooDwb1.d.cts} +1 -1
- package/dist/{petsRepository-I9vZvRpE.d.ts → petsRepository-DE8scL1O.d.ts} +1 -1
- package/dist/{ports-D0DaSL3j.d.cts → ports-CcUYur16.d.cts} +4 -4
- package/dist/{ports-BtrM61nV.d.ts → ports-DWL3Nl3j.d.ts} +4 -4
- package/dist/records/depth/index.d.cts +7 -7
- package/dist/records/depth/index.d.ts +7 -7
- package/dist/records/index.d.cts +9 -9
- package/dist/records/index.d.ts +9 -9
- package/dist/{requestFunnel-C1Fp7waD.d.ts → requestFunnel-C5LPty-S.d.ts} +2 -2
- package/dist/{requestFunnel-CR8wGfpV.d.cts → requestFunnel-TtUvlQS1.d.cts} +2 -2
- package/dist/{runtimeTypes-BCXujmD6.d.cts → runtimeTypes-BbLoCs-9.d.cts} +12 -4
- package/dist/{runtimeTypes-CuwgMArF.d.ts → runtimeTypes-CiJ6Y_wP.d.ts} +12 -4
- package/dist/server/events/index.cjs +1 -1
- package/dist/server/events/index.d.cts +2 -2
- package/dist/server/events/index.d.ts +2 -2
- package/dist/server/events/index.js +1 -1
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +2 -2
- package/dist/televet/booking/index.cjs +1 -1
- package/dist/televet/booking/index.d.cts +6 -6
- package/dist/televet/booking/index.d.ts +6 -6
- package/dist/televet/booking/index.js +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/rn/index.d.cts +7 -7
- package/dist/testing/rn/index.d.ts +7 -7
- package/dist/testing/web/index.d.cts +7 -7
- package/dist/testing/web/index.d.ts +7 -7
- package/dist/{timelineRows-EaAqBcX2.d.cts → timelineRows-BZ4YqN5G.d.cts} +1 -1
- package/dist/{timelineRows-DFmwWHyj.d.ts → timelineRows-Bv7nr5Oz.d.ts} +1 -1
- package/dist/{useRecordsDepth-DgQrho7p.d.cts → useRecordsDepth-BYVOh123.d.cts} +1 -1
- package/dist/{useRecordsDepth-Bo2d27fm.d.ts → useRecordsDepth-DuylsLXR.d.ts} +1 -1
- package/dist/{view-DwYhyFC2.d.cts → view-Cqtik97G.d.cts} +2 -2
- package/dist/{view-DGIjZtq8.d.ts → view-Uv0dWIQH.d.ts} +2 -2
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/index.cjs +7 -7
- package/dist/web/index.d.cts +14 -14
- package/dist/web/index.d.ts +14 -14
- package/dist/web/index.js +7 -7
- package/dist/web/notifications/index.d.cts +3 -3
- package/dist/web/notifications/index.d.ts +3 -3
- package/dist/web/records/depth/index.d.cts +7 -7
- package/dist/web/records/depth/index.d.ts +7 -7
- package/dist/web/records/index.d.cts +9 -9
- package/dist/web/records/index.d.ts +9 -9
- package/dist/web/televet/booking/index.cjs +2 -2
- package/dist/web/televet/booking/index.d.cts +6 -6
- package/dist/web/televet/booking/index.d.ts +6 -6
- package/dist/web/televet/booking/index.js +2 -2
- package/package.json +5 -4
package/dist/client/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var zod=require('zod');var yt=Object.defineProperty;var t=(e,r)=>yt(e,"name",{value:r,configurable:true});var Pe=Object.freeze([Object.freeze({wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false}),Object.freeze({wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true}),Object.freeze({wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true}),Object.freeze({wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true}),Object.freeze({wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false}),Object.freeze({wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false}),Object.freeze({wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false}),Object.freeze({wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false}),Object.freeze({wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false}),Object.freeze({wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true}),Object.freeze({wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false}),Object.freeze({wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false}),Object.freeze({wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false}),Object.freeze({wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false}),Object.freeze({wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false}),Object.freeze({wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false}),Object.freeze({wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false}),Object.freeze({wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true}),Object.freeze({wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true}),Object.freeze({wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true}),Object.freeze({wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false}),Object.freeze({wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false})]);Object.freeze(Pe.map(e=>e.wireCode));var mt=Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict"}),Sr=Object.freeze(Pe.map(e=>Object.freeze({wireCode:e.wireCode,envelope:e.envelope,retryable:e.retryable,normalized:mt[e.wireCode]}))),gt=new Map(Sr.map(e=>[e.envelope+e.wireCode.toUpperCase(),e])),bt=Object.freeze(["http_envelope",...[...new Set(Sr.map(e=>e.envelope))].filter(e=>e!=="http_envelope").sort()]);function ge(e,r){if(typeof e!="string")return;let n=e.trim().toUpperCase();if(n.length!==0)for(let o of [r??"http_envelope",...bt]){let i=gt.get(o+n);if(i)return i}}t(ge,"contractErrorFor");function ht(e){return e.envelope==="sse_frame"?`/errors#sse-${e.wireCode}`:e.envelope==="oauth_error"?`/errors#oauth-${e.wireCode}`:`/errors#${e.wireCode}`}t(ht,"contractDocUrl");var kr=null;function Fr(e){return null}t(Fr,"publishedDocUrl");var Pa=Object.freeze(["authExpired","authRejected","sessionRequired","accessDenied","paymentRequired","quotaExceeded","rateLimited","validationFailed","sdkUpdateRequired","conflict","idempotencyConflict","idempotencyInFlight","conversationNotFound","petNotFound","resourceNotFound","streamTimeout","mediaUploadFailed","moderationBlocked","upstreamLlmTimeout","internalError","notImplemented","serviceUnavailable","streamIncomplete","unknown"]),Da=Object.freeze(["authentication","authorization","entitlement","rateLimit","invalidRequest","notFound","conflict","connection","server","media","policy","unknown"]),Et=Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function xr(e){return Et[e]}t(xr,"categoryFor");function X(e){let r=ge(e);if(r)return r.normalized;let n=(e??"").trim().toUpperCase(),o=n.replace(/[^A-Z0-9]/g,"");if(o==="AUTHREJECTED")return "authRejected";if(n.startsWith("AUTH"))return "authExpired";switch(o){case "DAILYQUOTAEXCEEDED":case "QUOTAEXCEEDED":return "quotaExceeded";case "RATELIMITED":case "TOOMANYREQUESTS":case "TELEVETRATELIMITED":return "rateLimited";case "IDEMPOTENCYKEYCONFLICT":case "IDEMPOTENCYCONFLICT":return "idempotencyConflict";case "ACCESSDENIED":case "FORBIDDEN":return "accessDenied";case "NOTFOUND":case "CONVERSATIONNOTFOUND":return "conversationNotFound";case "PETNOTFOUND":return "petNotFound";case "TIMEOUT":case "STREAMTIMEOUT":return "streamTimeout";case "MEDIAUPLOADFAILED":case "UNRECOGNIZEDVIDEOFORMAT":case "FILETOOSMALL":return "mediaUploadFailed";case "MODERATIONBLOCKED":return "moderationBlocked";case "UPSTREAMLLMTIMEOUT":return "upstreamLlmTimeout";case "INTERNALERROR":case "INTERNALSERVERERROR":return "internalError";case "STREAMINCOMPLETE":case "CHATSTREAMINCOMPLETE":return "streamIncomplete";case "INVALIDANALYSISTYPE":case "INVALIDUPLOADPURPOSE":return "unknown";default:return "unknown"}}t(X,"fromWire");function wr(e){return e===401?"authExpired":e===403?"accessDenied":e===404?"conversationNotFound":e===409?"idempotencyConflict":e===421?"unknown":e===429?"rateLimited":e===400||e===422?"unknown":e>=500?"internalError":"unknown"}t(wr,"fromHttpStatus");var vt=new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function B(e){return vt.has(e)}t(B,"isAutoRetryable");var _t=new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function Or(e){return B(e)||_t.has(e)}t(Or,"isRetryableCode");function Ma(e,r=false){return r||B(e)}t(Ma,"shouldRetry");var Rt=500,De=8e3,Ar=4;function Ir(e,r=Math.random){let n=Math.max(0,e),o=Math.min(Rt*2**n,De);return Math.floor(r()*o)}t(Ir,"backoffDelayMs");function La(e){return e==="conversationNotFound"}t(La,"canRecreateOnNotFound");var Ct=Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:"This feature isn't available on your account right now.",paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:"Something in that request was not right. Check the details and try again.",sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",unknown:"Something went wrong. Please try again."});function Me(e){return Ct[e]}t(Me,"userFacingError");function Pr(e,r,n){Object.defineProperty(e,r,{value:n,enumerable:false,writable:false,configurable:false});}t(Pr,"defineHidden");var Tt=/^[a-z][a-z0-9_]{0,63}$/;function C(e,r){let n=ge(r?.wireCode,r?.wireEnvelope),o={code:e,category:xr(e),retryable:r?.retryable??Or(e),displayMessage:Me(e)};if(r?.httpStatus!==void 0&&(o.httpStatus=r.httpStatus),r?.requestId&&(o.requestId=r.requestId),typeof r?.reasonCode=="string"&&Tt.test(r.reasonCode)&&(o.reasonCode=r.reasonCode),n);return r?.wireMessage&&Pr(o,"wireMessage",r.wireMessage),r?.raw!==void 0&&r.raw!==null&&Pr(o,"raw",r.raw),Object.freeze(o)}t(C,"makeEverfurError");function k(e,r){return Object.freeze(r===void 0?{ok:true,value:e}:{ok:true,value:e,warning:r})}t(k,"ok");function y(e){return Object.freeze({ok:false,error:e})}t(y,"err");function Ha(e){return e.ok}t(Ha,"isOk");function Ka(e){return !e.ok}t(Ka,"isErr");var be=class be extends Error{constructor(r){super(`${r.code}: ${r.displayMessage}`),this.name="EverfurThrownError",this.error=r,this.code=r.code,this.category=r.category,Object.setPrototypeOf(this,be.prototype);}};t(be,"EverfurThrownError");var Le=be;function $a(e){if(e.ok)return e.value;throw new Le(e.error)}t($a,"unwrap");var he=class he extends Error{constructor(r,n){super(n),this.name="EverfurConfigError",this.kind=r,Object.setPrototypeOf(this,he.prototype);}};t(he,"EverfurConfigError");var E=he;var kt="0.5.4",St="react-native",Ft="2026-09-19",Dr="EVERFUR_API_BASE_URL";function ne(e,r){return Object.freeze({ok:false,failure:Object.freeze({reason:e,message:r})})}t(ne,"configFailure");function xt(e){let r=typeof e=="string"?e.trim():"";return r.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(r)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}t(xt,"checkPublishableKey");function wt(e,r){let n=xt(e?.publishableKey);if(n!==null)return Object.freeze({ok:false,failure:n});let o=e.publishableKey.trim(),i=Mr(e.apiBaseUrl);if(!i.ok)return i;let a=e.contractVersion?.trim()||Ft;return Object.freeze({ok:true,config:Object.freeze({publishableKey:o,apiBaseUrl:i.value,contractVersion:a,sdkVersion:kt,platform:r?.platform??St,debug:e.debug===true})})}t(wt,"tryResolveClientConfig");function Va(e,r){let n=wt(e,r);if(!n.ok)throw new E("invalid-argument",n.failure.message);return n.config}t(Va,"resolveClientConfig");function Mr(e){let r=e?.trim(),n=r&&r.length>0?r:Nt(Dr);return n?Mt(n):ne("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${Dr}. The SDK never ships a hardcoded host.`)}t(Mr,"tryResolveApiBaseUrl");function Xa(e){let r=Mr(e);if(!r.ok)throw new E("invalid-argument",r.failure.message);return r.value}t(Xa,"resolveApiBaseUrl");function Lr(e){return {"X-Everfur-SDK-Version":e.sdkVersion,"X-Everfur-SDK-Platform":e.platform,"X-Everfur-Contract":e.contractVersion}}t(Lr,"buildBaseHeaders");var Ot=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function At(e){return e.slice(e.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}t(At,"hostOf");function It(e){return e.length===0||e.includes("@")?false:e.startsWith("[")&&e.endsWith("]")?true:!e.includes(":")}t(It,"isPrintableHost");function Pt(e,r){let n=e.indexOf("://");return n<0||e.slice(n+3).includes("@")?false:It(r)}t(Pt,"canEchoOrigin");function Dt(e,r){return `${e}://${r}`}t(Dt,"safeOrigin");function Mt(e){let r=e.trim(),n=Ot.exec(r);if(n===null||n[2]===void 0||n[2].length===0)return ne("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let o=(n[1]??"").toLowerCase(),i=At(n[2]);if(i.length===0)return ne("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let a=Pt(r,i)?`: ${Dt(o,i)}`:"";if(o!=="https"){if(!(o==="http"&&Lt(i)))return o==="http"?ne("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${a}`):ne("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${a}`)}let s=r.endsWith("/")?r.slice(0,-1):r;return Object.freeze({ok:true,value:s})}t(Mt,"normalizeBaseUrl");function Lt(e){let r=e.toLowerCase();return r==="localhost"||r==="127.0.0.1"||r==="[::1]"||r==="::1"}t(Lt,"isLoopbackHost");function Nt(e){let n=globalThis.process?.env?.[e];return typeof n=="string"&&n.trim().length>0?n.trim():void 0}t(Nt,"readEnv");function Q(e){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>=55296&&n<=56319){let o=e.charCodeAt(r+1);if(!(o>=56320&&o<=57343))return true;r+=1;}else if(n>=56320&&n<=57343)return true}return false}t(Q,"hasLoneSurrogate");function j(e){return [...e].length}t(j,"serverLength");var Nr=128,zr=128,Br=/[\u0000-\u001F\u007F]/,zt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function ts(e){let r=e,n=j(r);if(n===0||n>zr)throw new E("invalid-argument",`petRef must be 1..${zr} characters`);if(Br.test(r))throw new E("invalid-argument","petRef must be printable (no control characters)");return r}t(ts,"petRef");function os(e){let r=e,n=j(r);if(n===0||n>Nr)throw new E("invalid-argument",`userRef must be 1..${Nr} characters`);if(r.includes("@"))throw new E("invalid-argument","userRef must not contain '@'");if(Br.test(r))throw new E("invalid-argument","userRef must be printable (no control characters)");return r}t(os,"userRef");function is(e){if(!zt.test(e))throw new E("invalid-argument","conversationId must be a UUID");return e}t(is,"conversationId");function as(e){return e}t(as,"unsafePetRef");function ss(e){return e}t(ss,"unsafeUserRef");function ls(e){return e}t(ls,"unsafeConversationId");function us(e){return e}t(us,"unsafeResponseId");function ds(e){return e}t(ds,"unsafeClientId");function cs(e){return e}t(cs,"unsafeDocumentId");function fs(e){return e}t(fs,"unsafeJobId");function ps(e){return e}t(ps,"unsafeRecordsRequestId");function hs(e,r,n){let o=null,i=null,a=false,s=t(()=>i||(i=(async()=>{try{let l=await r(),u=typeof l=="string"?l:l?.token;if(typeof u!="string"||u.length===0)throw new E("invalid-argument","TokenProvider returned an empty token");return o=u,n?.(typeof l=="string"?null:Bt(l.expiresAt)),u}finally{i=null;}})(),i),"load");return {userRef:e,async currentToken(l){if(a)throw new E("not-initialized","This identity was cleared (sign-out); mint a new one.");return l?.forceRefresh&&(o=null),o!==null?o:s()},hasToken(){return !a&&o!==null},clear(){a=true,o=null;}}}t(hs,"createIdentityProvider");function Bt(e){if(e===void 0)return null;let r=typeof e=="number"?e<1e11?e*1e3:e:new Date(e).getTime();return Number.isFinite(r)?r:null}t(Bt,"expiryMs");function Es(){let e=new Uint8Array(16),r=globalThis.crypto;if(typeof r?.getRandomValues=="function")r.getRandomValues(e);else for(let o=0;o<e.length;o+=1)e[o]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let n=[];for(let o=0;o<e.length;o+=1)n.push(e[o].toString(16).padStart(2,"0"));return n.slice(0,4).join("")+"-"+n.slice(4,6).join("")+"-"+n.slice(6,8).join("")+"-"+n.slice(8,10).join("")+"-"+n.slice(10,16).join("")}t(Es,"newSessionId");function jt(e){let r={};return e.mode==="personalized"?r.authorization=`Bearer ${e.token}`:r["x-everfur-partner-key"]=e.publishableKey,e.userRef&&(r["x-everfur-user-ref"]=e.userRef),e.sessionId&&(r["x-everfur-session-id"]=e.sessionId),r}t(jt,"authHeaders");function te(e,r){return {...e,headers:{...Ut(e.headers),...jt(r)}}}t(te,"withAuthHeaders");function Ut(e){if(!e)return {};let r={};for(let[n,o]of Object.entries(e)){let i=n.toLowerCase();i==="authorization"||i==="x-everfur-partner-key"||(r[n]=o);}return r}t(Ut,"stripAuthHeaders");async function jr(e,r){if(r.mode==="anonymous")return r.transport.request(te(e,{mode:"anonymous",publishableKey:r.publishableKey,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));let n;try{n=await r.identity.currentToken();}catch{return y(Ne())}let o=await r.transport.request(te(e,{mode:"personalized",token:n,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));if(o.ok||o.error.httpStatus!==401)return o;let i;try{i=await r.identity.currentToken({forceRefresh:!0});}catch{return y(Ne())}let a=await r.transport.request(te(e,{mode:"personalized",token:i,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));return !a.ok&&a.error.httpStatus===401?y(Ne(a.error.httpStatus)):a}t(jr,"authedSend");function Ne(e){return C("authRejected",{retryable:false,...e!==void 0?{httpStatus:e}:{}})}t(Ne,"authRejectedError");function Rs(e){throw new Error(`assertNever: unhandled discriminated-union member ${JSON.stringify(e)}`)}t(Rs,"assertNever");var qt=Object.freeze([]),Ht=Object.freeze([]);function Ur(e,r,n=null){return Object.freeze({kind:"accepted",streamId:e,lastEventId:r,serverRequestId:n,terminal:false})}t(Ur,"acceptedFrame");function qr(e,r=null){return Object.freeze({kind:"heartbeat",lastEventId:e,serverRequestId:r,terminal:false})}t(qr,"heartbeatFrame");function Hr(e,r,n=null){return Object.freeze({kind:"delta",delta:e,lastEventId:r,serverRequestId:n,terminal:false})}t(Hr,"deltaFrame");function Kr(e,r=null){return Object.freeze({kind:"done",terminal:true,conversationId:e.conversationId,messageId:e.messageId,title:e.title,followUpQuestions:Object.freeze([...e.followUpQuestions]),citations:Object.freeze([...e.citations]),citationStatus:e.citationStatus,urgencyLevel:e.urgencyLevel,urgencyReason:e.urgencyReason,urgencyProvided:e.urgencyProvided??e.urgencyLevel!==null,resultId:e.resultId,lastEventId:e.lastEventId,serverRequestId:r})}t(Kr,"doneFrame");function D(e){return Object.freeze({kind:"error",terminal:true,code:e.code,retryable:e.retryable,wireMessage:e.wireMessage,synthesized:e.synthesized,lastEventId:e.lastEventId,serverRequestId:e.serverRequestId??null})}t(D,"errorFrame");function $r(e,r,n=null){return Object.freeze({kind:"analysisStarted",requestId:e,lastEventId:r,serverRequestId:n,terminal:false})}t($r,"analysisStartedFrame");function Wr(e,r=null){return Object.freeze({kind:"analysisComplete",terminal:false,resultId:e.resultId,analysisType:e.analysisType,modelVersion:e.modelVersion,confidence:e.confidence,detections:Object.freeze([...e.detections]),interpretation:e.interpretation,lastEventId:e.lastEventId,serverRequestId:r})}t(Wr,"analysisCompleteFrame");function Gr(e,r,n=null){return Object.freeze({kind:"unknown",raw:{...e},lastEventId:r,serverRequestId:n,terminal:false})}t(Gr,"unknownFrame");var Cs=Object.freeze({strings:qt,maps:Ht});var Yr=`
|
|
1
|
+
'use strict';var zod=require('zod');var yt=Object.defineProperty;var t=(e,r)=>yt(e,"name",{value:r,configurable:true});var Pe=Object.freeze([Object.freeze({wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false}),Object.freeze({wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true}),Object.freeze({wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true}),Object.freeze({wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true}),Object.freeze({wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false}),Object.freeze({wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false}),Object.freeze({wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false}),Object.freeze({wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false}),Object.freeze({wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false}),Object.freeze({wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true}),Object.freeze({wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false}),Object.freeze({wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false}),Object.freeze({wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false}),Object.freeze({wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false}),Object.freeze({wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false}),Object.freeze({wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false}),Object.freeze({wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false}),Object.freeze({wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true}),Object.freeze({wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true}),Object.freeze({wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true}),Object.freeze({wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false}),Object.freeze({wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false})]);Object.freeze(Pe.map(e=>e.wireCode));var mt=Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict"}),Sr=Object.freeze(Pe.map(e=>Object.freeze({wireCode:e.wireCode,envelope:e.envelope,retryable:e.retryable,normalized:mt[e.wireCode]}))),gt=new Map(Sr.map(e=>[e.envelope+e.wireCode.toUpperCase(),e])),bt=Object.freeze(["http_envelope",...[...new Set(Sr.map(e=>e.envelope))].filter(e=>e!=="http_envelope").sort()]);function ge(e,r){if(typeof e!="string")return;let n=e.trim().toUpperCase();if(n.length!==0)for(let o of [r??"http_envelope",...bt]){let i=gt.get(o+n);if(i)return i}}t(ge,"contractErrorFor");function ht(e){return e.envelope==="sse_frame"?`/errors#sse-${e.wireCode}`:e.envelope==="oauth_error"?`/errors#oauth-${e.wireCode}`:`/errors#${e.wireCode}`}t(ht,"contractDocUrl");var kr=null;function Fr(e){return null}t(Fr,"publishedDocUrl");var Pa=Object.freeze(["authExpired","authRejected","sessionRequired","accessDenied","paymentRequired","quotaExceeded","rateLimited","validationFailed","sdkUpdateRequired","conflict","idempotencyConflict","idempotencyInFlight","conversationNotFound","petNotFound","resourceNotFound","streamTimeout","mediaUploadFailed","moderationBlocked","upstreamLlmTimeout","internalError","notImplemented","serviceUnavailable","streamIncomplete","unknown"]),Da=Object.freeze(["authentication","authorization","entitlement","rateLimit","invalidRequest","notFound","conflict","connection","server","media","policy","unknown"]),Et=Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function xr(e){return Et[e]}t(xr,"categoryFor");function X(e){let r=ge(e);if(r)return r.normalized;let n=(e??"").trim().toUpperCase(),o=n.replace(/[^A-Z0-9]/g,"");if(o==="AUTHREJECTED")return "authRejected";if(n.startsWith("AUTH"))return "authExpired";switch(o){case "DAILYQUOTAEXCEEDED":case "QUOTAEXCEEDED":return "quotaExceeded";case "RATELIMITED":case "TOOMANYREQUESTS":case "TELEVETRATELIMITED":return "rateLimited";case "IDEMPOTENCYKEYCONFLICT":case "IDEMPOTENCYCONFLICT":return "idempotencyConflict";case "ACCESSDENIED":case "FORBIDDEN":return "accessDenied";case "NOTFOUND":case "CONVERSATIONNOTFOUND":return "conversationNotFound";case "PETNOTFOUND":return "petNotFound";case "TIMEOUT":case "STREAMTIMEOUT":return "streamTimeout";case "MEDIAUPLOADFAILED":case "UNRECOGNIZEDVIDEOFORMAT":case "FILETOOSMALL":return "mediaUploadFailed";case "MODERATIONBLOCKED":return "moderationBlocked";case "UPSTREAMLLMTIMEOUT":return "upstreamLlmTimeout";case "INTERNALERROR":case "INTERNALSERVERERROR":return "internalError";case "STREAMINCOMPLETE":case "CHATSTREAMINCOMPLETE":return "streamIncomplete";case "INVALIDANALYSISTYPE":case "INVALIDUPLOADPURPOSE":return "unknown";default:return "unknown"}}t(X,"fromWire");function wr(e){return e===401?"authExpired":e===403?"accessDenied":e===404?"conversationNotFound":e===409?"idempotencyConflict":e===421?"unknown":e===429?"rateLimited":e===400||e===422?"unknown":e>=500?"internalError":"unknown"}t(wr,"fromHttpStatus");var vt=new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function B(e){return vt.has(e)}t(B,"isAutoRetryable");var _t=new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function Or(e){return B(e)||_t.has(e)}t(Or,"isRetryableCode");function Ma(e,r=false){return r||B(e)}t(Ma,"shouldRetry");var Rt=500,De=8e3,Ar=4;function Ir(e,r=Math.random){let n=Math.max(0,e),o=Math.min(Rt*2**n,De);return Math.floor(r()*o)}t(Ir,"backoffDelayMs");function La(e){return e==="conversationNotFound"}t(La,"canRecreateOnNotFound");var Ct=Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:"This feature isn't available on your account right now.",paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:"Something in that request was not right. Check the details and try again.",sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",unknown:"Something went wrong. Please try again."});function Me(e){return Ct[e]}t(Me,"userFacingError");function Pr(e,r,n){Object.defineProperty(e,r,{value:n,enumerable:false,writable:false,configurable:false});}t(Pr,"defineHidden");var Tt=/^[a-z][a-z0-9_]{0,63}$/;function C(e,r){let n=ge(r?.wireCode,r?.wireEnvelope),o={code:e,category:xr(e),retryable:r?.retryable??Or(e),displayMessage:Me(e)};if(r?.httpStatus!==void 0&&(o.httpStatus=r.httpStatus),r?.requestId&&(o.requestId=r.requestId),typeof r?.reasonCode=="string"&&Tt.test(r.reasonCode)&&(o.reasonCode=r.reasonCode),n);return r?.wireMessage&&Pr(o,"wireMessage",r.wireMessage),r?.raw!==void 0&&r.raw!==null&&Pr(o,"raw",r.raw),Object.freeze(o)}t(C,"makeEverfurError");function k(e,r){return Object.freeze(r===void 0?{ok:true,value:e}:{ok:true,value:e,warning:r})}t(k,"ok");function y(e){return Object.freeze({ok:false,error:e})}t(y,"err");function Ha(e){return e.ok}t(Ha,"isOk");function Ka(e){return !e.ok}t(Ka,"isErr");var be=class be extends Error{constructor(r){super(`${r.code}: ${r.displayMessage}`),this.name="EverfurThrownError",this.error=r,this.code=r.code,this.category=r.category,Object.setPrototypeOf(this,be.prototype);}};t(be,"EverfurThrownError");var Le=be;function $a(e){if(e.ok)return e.value;throw new Le(e.error)}t($a,"unwrap");var he=class he extends Error{constructor(r,n){super(n),this.name="EverfurConfigError",this.kind=r,Object.setPrototypeOf(this,he.prototype);}};t(he,"EverfurConfigError");var E=he;var kt="0.5.5",St="react-native",Ft="2026-09-19",Dr="EVERFUR_API_BASE_URL";function ne(e,r){return Object.freeze({ok:false,failure:Object.freeze({reason:e,message:r})})}t(ne,"configFailure");function xt(e){let r=typeof e=="string"?e.trim():"";return r.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(r)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}t(xt,"checkPublishableKey");function wt(e,r){let n=xt(e?.publishableKey);if(n!==null)return Object.freeze({ok:false,failure:n});let o=e.publishableKey.trim(),i=Mr(e.apiBaseUrl);if(!i.ok)return i;let a=e.contractVersion?.trim()||Ft;return Object.freeze({ok:true,config:Object.freeze({publishableKey:o,apiBaseUrl:i.value,contractVersion:a,sdkVersion:kt,platform:r?.platform??St,debug:e.debug===true})})}t(wt,"tryResolveClientConfig");function Va(e,r){let n=wt(e,r);if(!n.ok)throw new E("invalid-argument",n.failure.message);return n.config}t(Va,"resolveClientConfig");function Mr(e){let r=e?.trim(),n=r&&r.length>0?r:Nt(Dr);return n?Mt(n):ne("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${Dr}. The SDK never ships a hardcoded host.`)}t(Mr,"tryResolveApiBaseUrl");function Xa(e){let r=Mr(e);if(!r.ok)throw new E("invalid-argument",r.failure.message);return r.value}t(Xa,"resolveApiBaseUrl");function Lr(e){return {"X-Everfur-SDK-Version":e.sdkVersion,"X-Everfur-SDK-Platform":e.platform,"X-Everfur-Contract":e.contractVersion}}t(Lr,"buildBaseHeaders");var Ot=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function At(e){return e.slice(e.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}t(At,"hostOf");function It(e){return e.length===0||e.includes("@")?false:e.startsWith("[")&&e.endsWith("]")?true:!e.includes(":")}t(It,"isPrintableHost");function Pt(e,r){let n=e.indexOf("://");return n<0||e.slice(n+3).includes("@")?false:It(r)}t(Pt,"canEchoOrigin");function Dt(e,r){return `${e}://${r}`}t(Dt,"safeOrigin");function Mt(e){let r=e.trim(),n=Ot.exec(r);if(n===null||n[2]===void 0||n[2].length===0)return ne("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let o=(n[1]??"").toLowerCase(),i=At(n[2]);if(i.length===0)return ne("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let a=Pt(r,i)?`: ${Dt(o,i)}`:"";if(o!=="https"){if(!(o==="http"&&Lt(i)))return o==="http"?ne("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${a}`):ne("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${a}`)}let s=r.endsWith("/")?r.slice(0,-1):r;return Object.freeze({ok:true,value:s})}t(Mt,"normalizeBaseUrl");function Lt(e){let r=e.toLowerCase();return r==="localhost"||r==="127.0.0.1"||r==="[::1]"||r==="::1"}t(Lt,"isLoopbackHost");function Nt(e){let n=globalThis.process?.env?.[e];return typeof n=="string"&&n.trim().length>0?n.trim():void 0}t(Nt,"readEnv");function Q(e){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>=55296&&n<=56319){let o=e.charCodeAt(r+1);if(!(o>=56320&&o<=57343))return true;r+=1;}else if(n>=56320&&n<=57343)return true}return false}t(Q,"hasLoneSurrogate");function j(e){return [...e].length}t(j,"serverLength");var Nr=128,zr=128,Br=/[\u0000-\u001F\u007F]/,zt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function ts(e){let r=e,n=j(r);if(n===0||n>zr)throw new E("invalid-argument",`petRef must be 1..${zr} characters`);if(Br.test(r))throw new E("invalid-argument","petRef must be printable (no control characters)");return r}t(ts,"petRef");function os(e){let r=e,n=j(r);if(n===0||n>Nr)throw new E("invalid-argument",`userRef must be 1..${Nr} characters`);if(r.includes("@"))throw new E("invalid-argument","userRef must not contain '@'");if(Br.test(r))throw new E("invalid-argument","userRef must be printable (no control characters)");return r}t(os,"userRef");function is(e){if(!zt.test(e))throw new E("invalid-argument","conversationId must be a UUID");return e}t(is,"conversationId");function as(e){return e}t(as,"unsafePetRef");function ss(e){return e}t(ss,"unsafeUserRef");function ls(e){return e}t(ls,"unsafeConversationId");function us(e){return e}t(us,"unsafeResponseId");function ds(e){return e}t(ds,"unsafeClientId");function cs(e){return e}t(cs,"unsafeDocumentId");function fs(e){return e}t(fs,"unsafeJobId");function ps(e){return e}t(ps,"unsafeRecordsRequestId");function hs(e,r,n){let o=null,i=null,a=false,s=t(()=>i||(i=(async()=>{try{let l=await r(),u=typeof l=="string"?l:l?.token;if(typeof u!="string"||u.length===0)throw new E("invalid-argument","TokenProvider returned an empty token");return o=u,n?.(typeof l=="string"?null:Bt(l.expiresAt)),u}finally{i=null;}})(),i),"load");return {userRef:e,async currentToken(l){if(a)throw new E("not-initialized","This identity was cleared (sign-out); mint a new one.");return l?.forceRefresh&&(o=null),o!==null?o:s()},hasToken(){return !a&&o!==null},clear(){a=true,o=null;}}}t(hs,"createIdentityProvider");function Bt(e){if(e===void 0)return null;let r=typeof e=="number"?e<1e11?e*1e3:e:new Date(e).getTime();return Number.isFinite(r)?r:null}t(Bt,"expiryMs");function Es(){let e=new Uint8Array(16),r=globalThis.crypto;if(typeof r?.getRandomValues=="function")r.getRandomValues(e);else for(let o=0;o<e.length;o+=1)e[o]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let n=[];for(let o=0;o<e.length;o+=1)n.push(e[o].toString(16).padStart(2,"0"));return n.slice(0,4).join("")+"-"+n.slice(4,6).join("")+"-"+n.slice(6,8).join("")+"-"+n.slice(8,10).join("")+"-"+n.slice(10,16).join("")}t(Es,"newSessionId");function jt(e){let r={};return e.mode==="personalized"?r.authorization=`Bearer ${e.token}`:r["x-everfur-partner-key"]=e.publishableKey,e.userRef&&(r["x-everfur-user-ref"]=e.userRef),e.sessionId&&(r["x-everfur-session-id"]=e.sessionId),r}t(jt,"authHeaders");function te(e,r){return {...e,headers:{...Ut(e.headers),...jt(r)}}}t(te,"withAuthHeaders");function Ut(e){if(!e)return {};let r={};for(let[n,o]of Object.entries(e)){let i=n.toLowerCase();i==="authorization"||i==="x-everfur-partner-key"||(r[n]=o);}return r}t(Ut,"stripAuthHeaders");async function jr(e,r){if(r.mode==="anonymous")return r.transport.request(te(e,{mode:"anonymous",publishableKey:r.publishableKey,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));let n;try{n=await r.identity.currentToken();}catch{return y(Ne())}let o=await r.transport.request(te(e,{mode:"personalized",token:n,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));if(o.ok||o.error.httpStatus!==401)return o;let i;try{i=await r.identity.currentToken({forceRefresh:!0});}catch{return y(Ne())}let a=await r.transport.request(te(e,{mode:"personalized",token:i,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));return !a.ok&&a.error.httpStatus===401?y(Ne(a.error.httpStatus)):a}t(jr,"authedSend");function Ne(e){return C("authRejected",{retryable:false,...e!==void 0?{httpStatus:e}:{}})}t(Ne,"authRejectedError");function Rs(e){throw new Error(`assertNever: unhandled discriminated-union member ${JSON.stringify(e)}`)}t(Rs,"assertNever");var qt=Object.freeze([]),Ht=Object.freeze([]);function Ur(e,r,n=null){return Object.freeze({kind:"accepted",streamId:e,lastEventId:r,serverRequestId:n,terminal:false})}t(Ur,"acceptedFrame");function qr(e,r=null){return Object.freeze({kind:"heartbeat",lastEventId:e,serverRequestId:r,terminal:false})}t(qr,"heartbeatFrame");function Hr(e,r,n=null){return Object.freeze({kind:"delta",delta:e,lastEventId:r,serverRequestId:n,terminal:false})}t(Hr,"deltaFrame");function Kr(e,r=null){return Object.freeze({kind:"done",terminal:true,conversationId:e.conversationId,messageId:e.messageId,title:e.title,followUpQuestions:Object.freeze([...e.followUpQuestions]),citations:Object.freeze([...e.citations]),citationStatus:e.citationStatus,urgencyLevel:e.urgencyLevel,urgencyReason:e.urgencyReason,urgencyProvided:e.urgencyProvided??e.urgencyLevel!==null,resultId:e.resultId,lastEventId:e.lastEventId,serverRequestId:r})}t(Kr,"doneFrame");function D(e){return Object.freeze({kind:"error",terminal:true,code:e.code,retryable:e.retryable,wireMessage:e.wireMessage,synthesized:e.synthesized,lastEventId:e.lastEventId,serverRequestId:e.serverRequestId??null})}t(D,"errorFrame");function $r(e,r,n=null){return Object.freeze({kind:"analysisStarted",requestId:e,lastEventId:r,serverRequestId:n,terminal:false})}t($r,"analysisStartedFrame");function Wr(e,r=null){return Object.freeze({kind:"analysisComplete",terminal:false,resultId:e.resultId,analysisType:e.analysisType,modelVersion:e.modelVersion,confidence:e.confidence,detections:Object.freeze([...e.detections]),interpretation:e.interpretation,lastEventId:e.lastEventId,serverRequestId:r})}t(Wr,"analysisCompleteFrame");function Gr(e,r,n=null){return Object.freeze({kind:"unknown",raw:{...e},lastEventId:r,serverRequestId:n,terminal:false})}t(Gr,"unknownFrame");var Cs=Object.freeze({strings:qt,maps:Ht});var Yr=`
|
|
2
2
|
|
|
3
3
|
`,Kt=1048576,$t=zod.z.record(zod.z.string(),zod.z.unknown()),Wt=["emergency","schedule_soon","home_care"];async function*Ee(e,r=null){let n=null,o=t(()=>(n!==null||(n=typeof r=="function"?r():r),n),"requestIdNow"),i=new TextDecoder("utf-8"),a="",s=0,l=false;for await(let u of e){for(a+=i.decode(u,{stream:true});;){let d=a.indexOf(Yr,s);if(d===-1)break;let f=a.slice(0,d);a=a.slice(d+Yr.length),s=0;let c=Vr(f,o());if(c!==null&&(c.kind==="delta"&&(l=true),yield c,c.terminal))return}if(s=a.length>0?a.length-1:0,a.length>Kt){yield D({code:l?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:o()});return}}if(a+=i.decode(),a.trim().length>0){let u=Vr(a,o());if(u!==null&&(u.kind==="delta"&&(l=true),yield u,u.terminal))return}yield D({code:l?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:o()});}t(Ee,"parseSse");function Vr(e,r){let n=null,o=[];for(let s of e.split(`
|
|
4
4
|
`)){let l=s.replace(/\s+$/,"");l.length===0||l.startsWith(":")||(l.startsWith("id:")?n=l.slice(3).trim():l.startsWith("data:")&&o.push(l.slice(5).replace(/^ /,"")));}if(o.length===0)return null;let i;try{i=JSON.parse(o.join(`
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
`;d+=`
|
|
9
9
|
`,n.push(r.encode(d));},"onMessage"),a=t(()=>{l(),n.end();},"onDone"),s=t(u=>{let d=typeof u.xhrStatus=="number"?u.xhrStatus:0;if(d>=400){let f=nn(d),c=B(X(f));n.push(r.encode(`data: ${JSON.stringify({type:"error",code:f,retryable:c})}
|
|
10
10
|
|
|
11
|
-
`));}l(),n.end();},"onError");e.addEventListener("message",i),e.addEventListener("done",a),e.addEventListener("error",s);function l(){if(!o){o=true,e.removeEventListener("message",i),e.removeEventListener("done",a),e.removeEventListener("error",s);try{e.close();}catch{}}}return t(l,"cleanup"),eo(n.source,l)}t(Zt,"eventSourceByteSource");async function*eo(e,r){try{yield*e;}finally{r();}}t(eo,"sourceWithCleanup");function ro(){let e=[],r=false,n=null,o=t(()=>{if(n){let a=n;n=null,a();}},"signal");async function*i(){for(;;){let a=e.shift();if(a!==void 0){yield a;continue}if(r)return;await new Promise(s=>{n=s;});}}return t(i,"gen"),{source:i(),push:t(a=>{e.push(a),o();},"push"),end:t(()=>{r=true,o();},"end")}}t(ro,"createByteQueue");async function no(e,r){let n=r.fetchImpl??Ue(),o=qe(r.config.apiBaseUrl,e.path,e.query),i=He(r.config,e.headers,"application/json",e.body!==void 0&&e.multipart===void 0),a=so(Jt),s=lo(a.signal,e.signal),l;try{l=await n(o,Ke({...e,signal:s},i));}catch(d){return y(ve(d))}finally{a.cancel();}let u=await $e(l);return l.ok?k(u):y(rn(l.status,u,je(l)))}t(no,"requestJson");async function zs(e,r,n){let o=r.fetchImpl??Ue(),i=qe(r.config.apiBaseUrl,e.path,e.query),a=He(r.config,e.headers,"text/event-stream",e.body!==void 0&&e.multipart===void 0),s;try{s=await o(i,Ke(e,a));}catch(u){return y(ve(u))}if(!s.ok)return y(rn(s.status,await $e(s),je(s)));let l=n?n(s):Be(s.body);return k({ok:s.ok,status:s.status,headers:uo(s),bytes:l})}t(zs,"requestRaw");function Bs(e){return {request:t(r=>no(r,e),"request"),stream:t((r,n)=>to(ao(r,n),e),"stream")}}t(Bs,"createHttpTransport");async function*to(e,r){let n=qe(r.config.apiBaseUrl,e.path,e.query),o=He(r.config,e.headers,"text/event-stream",e.body!==void 0&&e.multipart===void 0);if(r.eventSourceFactory){let l=r.eventSourceFactory(n,oo(e,o));yield*Ee(Zt(l),()=>io(l));return}let i=r.fetchImpl??Ue(),a;try{a=await i(n,Ke(e,o));}catch(l){yield Jr("",true,sn(l));return}let s=je(a);if(!a.ok){let l=await $e(a),u=tn(l)??nn(a.status),d=an(l)||B(X(u));yield Jr(u,d,on(l),s);return}if(a.body){yield*Ee(Be(a.body),s);return}yield*Ee(Be(null),s);}t(to,"streamFrames");function oo(e,r){return {method:e.method,headers:r,pollingInterval:0,...e.body!==void 0?{body:JSON.stringify(e.body)}:{}}}t(oo,"buildEventSourceInit");function rn(e,r,n){let o=tn(r),i=o?X(o):wr(e),a=on(r);return C(i,{httpStatus:e,...an(r)?{retryable:true}:{},...n?{requestId:n}:{},...o?{wireCode:o}:{},...Zr(r)?{reasonCode:Zr(r)}:{},...a?{wireMessage:a}:{},...r!=null?{raw:r}:{}})}t(rn,"errorFromResponse");function ve(e){return C("internalError",{retryable:true,wireMessage:sn(e)})}t(ve,"networkError");function je(e){let r=e.headers.get(en);return typeof r=="string"&&r.length>0?r:null}t(je,"requestIdOf");function io(e){if(typeof e.getResponseHeader!="function")return null;let r;try{r=e.getResponseHeader(en);}catch{return null}return typeof r=="string"&&r.length>0?r:null}t(io,"eventSourceRequestId");function nn(e){return e===401?"AUTH_EXPIRED":e===403?"ACCESS_DENIED":e===404?"NOT_FOUND":e===409?"IDEMPOTENCY_CONFLICT":e===421?"MISDIRECTED_REQUEST":e===429?"RATE_LIMITED":e===400||e===422?"INVALID_REQUEST":e===503||e>=500?"INTERNAL_ERROR":""}t(nn,"statusToWireCode");function Jr(e,r,n,o=null){return D({code:e,retryable:r,wireMessage:n,synthesized:true,lastEventId:null,serverRequestId:o})}t(Jr,"syntheticErrorFrame");function Ue(){let e=globalThis.fetch;if(typeof e!="function")throw new E("missing-peer-dependency","global fetch is unavailable; provide config.transport or an injected fetch implementation");return e}t(Ue,"getGlobalFetch");function qe(e,r,n){let o=r.startsWith("/")?r:`/${r}`,i=`${e}${o}`;if(n){let a=Object.entries(n).filter(s=>s[1]!==void 0).map(([s,l])=>`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`).join("&");a&&(i+=`?${a}`);}return i}t(qe,"buildUrl");function He(e,r,n,o){let i={...Lr(e),accept:n};return o&&(i["content-type"]="application/json"),r&&Object.assign(i,r),i}t(He,"mergeHeaders");function Ke(e,r){let n={method:e.method,headers:r};return e.multipart!==void 0?n.body=e.multipart:e.body!==void 0&&(n.body=JSON.stringify(e.body)),e.signal&&(n.signal=e.signal),n}t(Ke,"buildInit");function ao(e,r){return e.signal?e:{...e,signal:r}}t(ao,"withSignal");function so(e){let r=new AbortController,n=setTimeout(()=>r.abort(),e);return {signal:r.signal,cancel:t(()=>clearTimeout(n),"cancel")}}t(so,"timeoutSignal");function lo(e,r){if(!r)return e;let n=new AbortController;if(e.aborted||r.aborted)return n.abort(),n.signal;let o=t(()=>n.abort(),"onAbort");return e.addEventListener("abort",o,{once:true}),r.addEventListener("abort",o,{once:true}),n.signal}t(lo,"mergeAbortSignals");async function $e(e){try{return await e.json()}catch{return null}}t($e,"safeJson");function uo(e){let r={};return e.headers.forEach?.((n,o)=>{r[o.toLowerCase()]=n;}),r}t(uo,"collectHeaders");function Zr(e){let r=e,n=r?.error?.reason_code??r?.reason_code;return typeof n=="string"&&n.length>0?n:null}t(Zr,"extractReasonCode");function tn(e){let r=e,n=r?.error?.code??r?.code;return typeof n=="string"&&n.length>0?n:null}t(tn,"extractWireCode");function on(e){let r=e,n=r?.error?.message??r?.message;return typeof n=="string"&&n.length>0?n:null}t(on,"extractWireMessage");function an(e){let r=e;return r?.error?.retryable===true||r?.retryable===true}t(an,"extractRetryable");function sn(e){return e instanceof Error?e.message:typeof e=="string"?e:"network request failed"}t(sn,"describeCause");function Hs(e){if(e.length===0)return ln({granted:[],asGrant:{allow:[],deny:[]}});let r=null,n=new Set;for(let i of e){let a=new Set(i.allow);r=r===null?a:co(r,a);for(let s of i.deny)n.add(s);}let o=[...r??new Set].filter(i=>!n.has(i)).sort();return ln({granted:o,asGrant:{allow:o,deny:[]}})}t(Hs,"resolveEntitlements");function co(e,r){let n=new Set;for(let o of e)r.has(o)&&n.add(o);return n}t(co,"intersect");function ln(e){return Object.freeze({granted:Object.freeze([...e.granted]),asGrant:Object.freeze({allow:Object.freeze([...e.asGrant.allow]),deny:Object.freeze([...e.asGrant.deny])})})}t(ln,"freezeResolved");var Ge=Object.freeze({chat:Object.freeze(["chat.message.create"]),records:Object.freeze(["records.upload.create","records.record.read"]),recordsClinic:Object.freeze(["records.clinic.create"]),video:Object.freeze(["video.gait.execute"]),photo:Object.freeze(["photo.checkup.execute"]),animations:Object.freeze(["animations.state.read"]),televet:Object.freeze(["televet.visit.create"])});function fo(e){return Ge[e]}t(fo,"requires");function Ks(e,r){let n=Object.freeze({reason:r,level:e,recoverable:false}),o=[],i=new Set;for(let a of Object.keys(Ge))for(let s of Ge[a])i.has(s)||(i.add(s),o.push(Object.freeze({resource:s,granted:false,disabled:n})));return Object.freeze(o)}t(Ks,"deniedDecisionsFor");function $s(e,r,n){let o=fo(e),i=new Map;for(let l of r)i.set(l.resource,l);if(n?.isPending===true&&o.some(l=>!i.has(l)))return We({name:e,enabled:false,isPending:true,limits:{}});let a=po(o,i);return o.filter(l=>i.get(l)?.granted!==true).length===0?We({name:e,enabled:true,isPending:false,limits:a}):We({name:e,enabled:false,isPending:false,limits:a,disabled:yo(o,i)})}t($s,"decideCapability");function po(e,r){let n={};for(let o of e){let i=r.get(o)?.limits;if(i)for(let[a,s]of Object.entries(i)){let l=n[a];n[a]=l===void 0?s:Math.min(l,s);}}return n}t(po,"mergeLimits");function yo(e,r){for(let n of e){let o=r.get(n)?.disabled;if(o)return Object.freeze({reason:o.reason,level:o.level,recoverable:o.recoverable})}return Object.freeze({reason:Me("accessDenied"),level:"user_entitlement",recoverable:false})}t(yo,"disabledFor");function We(e){let r={name:e.name,enabled:e.enabled,isPending:e.isPending,limits:Object.freeze({...e.limits})};return e.disabled!==void 0&&(r.disabled=e.disabled),Object.freeze(r)}t(We,"freezeDecision");var mo=3e4,go=De*2,bo="idempotency-key",ho=new Set(["POST","PUT","PATCH","DELETE"]),Eo=Object.freeze({onEvent(){}}),vo=Object.freeze({setTimeout:t((e,r)=>setTimeout(e,r),"setTimeout"),clearTimeout:t(e=>clearTimeout(e),"clearTimeout"),now:t(()=>Date.now(),"now")});function _o(e){let r=e.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return r.length===0?null:`efs_${r}`.slice(0,128)}t(_o,"seededIdempotencyKey");function M(e){let r=e.observer??Eo,n=e.timers??vo,o=e.rng??Math.random,i=e.sleep??((p,m)=>Mo(p,n,m)),a=e.maxAttempts??Ar,s=e.unaryTimeoutMs??mo,l=e.newIdempotencyKey??Co(),u=t(p=>{try{r.onEvent(p);}catch{}},"emit");async function d(p,m,b){let S=b?.maxAttempts,ce=Math.max(1,S??a),fe=b?.idempotent??ho.has(m.method),pe=b?.idempotencyKey===void 0?null:_o(b.idempotencyKey),V=fe?pe??l():null,ye=Ro(m,V),Oe=0;for(;;){let ee=t(Ie=>Object.freeze({call:p,method:m.method,path:m.path,attempt:Oe,...V?{idempotencyKey:V}:{},...Ie}),"stamp");u(ee({phase:"attempt"}));let Cr=Po(s,n),Tr=Do(Cr.signal,m.signal),re;try{re=await jr({...ye,signal:Tr.signal},e.auth);}catch(Ie){re=y(ve(Ie));}finally{Tr.dispose(),Cr.cancel();}if(re.ok)return u(ee({phase:"settled",ok:true,reason:"ok"})),re;let P=re.error,me=ko(P,Oe,{maxAttempts:ce,rng:o,now:n.now(),aborted:m.signal?.aborted===true,...S!==void 0?{perCallMaxAttempts:S}:{},...e.errorPolicy!==void 0?{policy:e.errorPolicy}:{}}),Ae={ok:false,code:P.code,reason:me.reason,...P.httpStatus!==void 0?{httpStatus:P.httpStatus}:{},...P.requestId!==void 0?{requestId:P.requestId}:{}};if(!me.retry)return u(ee({phase:"settled",...Ae})),y(P);if(u(ee({phase:"retry",...Ae,delayMs:me.delayMs})),await i(me.delayMs,m.signal),m.signal?.aborted===true)return u(ee({phase:"settled",...Ae,reason:"aborted"})),y(P);Oe+=1;}}t(d,"send");async function f(p){return te(p,await Io(e.auth))}t(f,"authorize");async function*c(p,m,b){u(Object.freeze({call:p,phase:"stream.open",method:m.method,path:m.path,attempt:0}));try{yield*e.auth.transport.stream(m,b);}catch{yield D({code:"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:null});}}return t(c,"stream"),Object.freeze({send:d,authorize:f,stream:c})}t(M,"createRequestFunnel");function Ro(e,r){let n={};for(let[o,i]of Object.entries(e.headers??{}))o.toLowerCase()!==bo&&(n[o]=i);return r!==null&&(n["Idempotency-Key"]=r),{...e,headers:n}}t(Ro,"assembleHeaders");function Co(){let e=0;return ()=>`efk_${Date.now().toString(36)}_${(e++).toString(36)}_${Math.random().toString(36).slice(2,12)}`}t(Co,"defaultIdempotencyKeyFactory");var To=10;function ko(e,r,n){if(n.aborted)return {retry:false,reason:"aborted"};let o=So(e);if(o==="quota")return {retry:false,reason:"daily-quota-exhausted"};if(o!=="burst"&&!B(e.code))return {retry:false,reason:"terminal-code"};let i=o==="burst"?"burst-throttle":"retryable-code";if(t(()=>{if(n.policy===void 0)return false;try{return !n.policy.shouldRetry(e.code,r)}catch{return false}},"policyVetoedRetry")())return {retry:false,reason:"terminal-code"};let s=t(()=>{if(n.policy===void 0)return null;let d;try{d=n.policy.maxAttempts(e.code);}catch{return null}return typeof d!="number"||!Number.isFinite(d)?null:Math.max(1,Math.min(To,Math.floor(d)))},"policyCeiling"),l=n.perCallMaxAttempts??s()??n.maxAttempts;if(r+1>=l)return {retry:false,reason:"attempts-exhausted"};let u=Fo(e,n.now);return u!==null?u>go?{retry:false,reason:"server-reset-beyond-budget"}:{retry:true,reason:i,delayMs:u}:{retry:true,reason:i,delayMs:Ir(r,n.rng)}}t(ko,"decideRetry");function So(e){let r=e.code==="unknown"?X(Ao(e.raw)):e.code;return r==="quotaExceeded"?"quota":r==="rateLimited"||e.httpStatus===429?"burst":null}t(So,"throttleKind");function Fo(e,r){let n=wo(e.raw);if(n!==null){let i=n-r;return i>0?i:0}let o=xo(e.raw);return o===null?null:Math.round(o*1e3)}t(Fo,"retryOverrideMs");function xo(e){for(let r of Ye(e)){let n=r.retry_after_seconds;if(typeof n=="number"&&Number.isFinite(n)&&n>=0)return n}return null}t(xo,"findRetryAfterSeconds");function wo(e){for(let r of Ye(e)){let n=r.resets_at,o=Oo(n);if(o!==null)return o}return null}t(wo,"findResetsAt");function Ye(e){if(!un(e))return [];let r=[e];for(let n of ["error","detail"]){let o=e[n];un(o)&&r.push(o);}return r}t(Ye,"candidateScopes");function Oo(e){if(typeof e=="number"&&Number.isFinite(e))return e<1e11?Math.round(e*1e3):Math.round(e);if(typeof e=="string"&&e.trim().length>0){let r=Date.parse(e);return Number.isFinite(r)?r:null}return null}t(Oo,"parseInstantMs");function Ao(e){for(let r of Ye(e)){let n=r.code;if(typeof n=="string"&&n.length>0)return n}return null}t(Ao,"rawWireCode");function un(e){return typeof e=="object"&&e!==null}t(un,"isRecord");async function Io(e){return e.mode==="anonymous"?{mode:"anonymous",publishableKey:e.publishableKey,userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{}}:{mode:"personalized",token:await e.identity.currentToken(),userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{}}}t(Io,"resolveDeviceAuth");function Po(e,r){let n=new AbortController,o=r.setTimeout(()=>n.abort(),e);return {signal:n.signal,cancel:t(()=>r.clearTimeout(o),"cancel")}}t(Po,"boundedSignal");function Do(e,r){let n=t(()=>{},"noop");if(!r)return {signal:e,dispose:n};let o=new AbortController;if(e.aborted||r.aborted)return o.abort(),{signal:o.signal,dispose:n};let i=t(()=>o.abort(),"onAbort");return e.addEventListener("abort",i,{once:true}),r.addEventListener("abort",i,{once:true}),{signal:o.signal,dispose:t(()=>{e.removeEventListener("abort",i),r.removeEventListener("abort",i);},"dispose")}}t(Do,"mergeSignals");function Mo(e,r,n){return e<=0||n?.aborted===true?Promise.resolve():new Promise(o=>{let i=r.setTimeout(()=>{n?.removeEventListener("abort",a),o();},e),a=t(()=>{r.clearTimeout(i),o();},"onAbort");n?.addEventListener("abort",a,{once:true});})}t(Mo,"delayAbortable");function T(e){let r=_(e);return r===null?null:No(r)}t(T,"parseColor");function _(e){if(typeof e=="number")return dn(e);if(typeof e!="string")return null;let r=e.trim();if(r.length===0)return null;if(r.startsWith("#"))return Ve(r.slice(1));if(r.toLowerCase().startsWith("0x"))return Ve(r.slice(2));if(r.toLowerCase().startsWith("rgb"))return Lo(r);if(/^[0-9a-fA-F]+$/.test(r)){let n=Ve(r);if(n!==null)return n}return /^\d+$/.test(r)?dn(Number.parseInt(r,10)):null}t(_,"toRgba");function Ve(e){let r=e.trim();if(!/^[0-9a-fA-F]+$/.test(r))return null;if(r.length===3)return {r:Xe(r[0]),g:Xe(r[1]),b:Xe(r[2]),a:1};if(r.length===6)return {r:U(r,0),g:U(r,2),b:U(r,4),a:1};if(r.length===8){let n=U(r,0);return {r:U(r,2),g:U(r,4),b:U(r,6),a:n/255}}return null}t(Ve,"fromHex");function Lo(e){let r=e.indexOf("("),n=e.indexOf(")");if(r<0||n<0||n<r)return null;let o=e.slice(r+1,n).split(",").map(u=>u.trim());if(o.length<3)return null;let i=Qe(Number(o[0])),a=Qe(Number(o[1])),s=Qe(Number(o[2]));if(i===null||a===null||s===null)return null;let l=1;if(o.length>=4){let u=Number(o[3]);if(!Number.isFinite(u))return null;l=Math.min(1,Math.max(0,u));}return {r:i,g:a,b:s,a:l}}t(Lo,"fromRgbFunc");function dn(e){if(!Number.isFinite(e))return null;let r=Math.trunc(e)>>>0,n=r>>>24&255;return {r:r>>>16&255,g:r>>>8&255,b:r&255,a:n===0?1:n/255}}t(dn,"argbIntToRgba");function U(e,r){return Number.parseInt(e.slice(r,r+2),16)}t(U,"byte");function Xe(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}t(Xe,"dup");function Qe(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}t(Qe,"clampByte");function No(e){if(e.a>=1)return H(e.r,e.g,e.b);let r=Math.round(e.a*1e3)/1e3;return `rgba(${e.r},${e.g},${e.b},${r})`}t(No,"normalizeRgba");function H(e,r,n){return `#${Je(e)}${Je(r)}${Je(n)}`.toUpperCase()}t(H,"rgbToHex");function Je(e){return e.toString(16).padStart(2,"0")}t(Je,"hex2");var zo="#111111",J="#FFFFFF",_e="#000000";function fn(e){let r=_(e);if(r===null)return J;let n=q(r),o=q({r:17,g:17,b:17}),i=q({r:255,g:255,b:255});return rr(n,i)>=rr(n,o)?J:zo}t(fn,"readableOn");function oe(e,r){let n=fn(e);return R(n,e)>=r?n:R(J,e)>=R(_e,e)?J:_e}t(oe,"legibleOn");function ie(e){let r=t(n=>e.reduce((o,i)=>Math.min(o,R(n,i)),Number.POSITIVE_INFINITY),"worst");return r(J)>=r(_e)?J:_e}t(ie,"poleForGrounds");function q(e){let r=Ze(e.r/255),n=Ze(e.g/255),o=Ze(e.b/255);return .2126*r+.7152*n+.0722*o}t(q,"relativeLuminance");function Ze(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}t(Ze,"linearize");function rr(e,r){let n=Math.max(e,r),o=Math.min(e,r);return (n+.05)/(o+.05)}t(rr,"luminanceContrast");function R(e,r){let n=_(e),o=_(r);if(n===null||o===null)return 1;let i=o.a>=1?o:{...o},a=n.a>=1?n:pn(n,i);return rr(q(a),q(i))}t(R,"contrastRatio");function pn(e,r){let n=e.a,o=t((i,a)=>Math.round(i*n+a*(1-n)),"mix");return {r:o(e.r,r.r),g:o(e.g,r.g),b:o(e.b,r.b),a:1}}t(pn,"composite");function K(e,r){let n=_(e),o=_(r);if(n===null||o===null)return null;let i=n.a>=1?n:pn(n,{...o});return H(i.r,i.g,i.b)}t(K,"flattenOnto");var cn=.05;function L(e,r,n,o){let i=r[0];if(i===void 0)return n;let a=t(d=>r.every(f=>R(d,f)>=o),"reads");if(_(e)===null)return n;if(a(e))return e;let s=K(e,i),l=s===null?null:_(s),u=_(n);if(l===null||u===null)return n;for(let d=1;d<1/cn;d+=1){let f=d*cn,c=t((m,b)=>Math.round(m+(b-m)*f),"mix"),p=H(c(l.r,u.r),c(l.g,u.g),c(l.b,u.b));if(a(p))return p}return n}t(L,"pushToContrast");function yn(e,r,n){let o=e/255,i=r/255,a=n/255,s=Math.max(o,i,a),l=Math.min(o,i,a),u=(s+l)/2;if(s===l)return {h:0,s:0,l:u};let d=s-l,f=d/(1-Math.abs(2*u-1)),c;return s===o?(c=(i-a)/d*60,c<0&&(c=c+360)):s===i?c=((a-o)/d+2)*60:c=((o-i)/d+4)*60,{h:c,s:f,l:u}}t(yn,"rgbToHsl");function nr(e){let{h:r,s:n,l:o}=e,i=(1-Math.abs(2*o-1))*n,a=r/60,s=i*(1-Math.abs(a%2-1)),l=o-i/2,u=Math.floor(a)%6,d=[[i,s,0],[s,i,0],[0,i,s],[0,s,i],[s,0,i],[i,0,s]],[f,c,p]=d[u];return {r:er(f+l),g:er(c+l),b:er(p+l)}}t(nr,"hslToRgb");function er(e){return Math.min(255,Math.max(0,Math.floor(e*255+.5)))}t(er,"channel");function A(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){Object.freeze(e);for(let r of Object.keys(e))A(e[r]);}return e}t(A,"deepFreeze");var Re=Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3}),gn={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},bn={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},mn={nano:8,small:9,micro:10,tiny:11,caption:12,bodyTight:13,body:14,subtitle:16,heading:18,verdict:24},Bo={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},jo={regular:"400",medium:"500",bold:"700"},Uo={eyebrow:1,monoWide:.9,headerBrand:-0.42,tight:-0.35},ir=0,$="System",N="monospace",qo=["content","heading","control","compact","badge"];function Ho(e){let r={};for(let n of qo)r[n]=e;return r}t(Ho,"authoredTierSizes");function hn(){return {family:$,mono:N,fontUrl:null,families:{regular:$,medium:$,bold:$,mono:N,monoMedium:N,monoBold:N},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:mn,tierSizes:Ho(mn),lineHeight:Bo,weight:jo,letterSpacing:Uo,scale:1,maxScale:ir,scaleCaps:Re}}t(hn,"baseType");var En={},tr=Object.freeze({standard:Object.freeze([.2,0,0,1]),emphasized:Object.freeze([.2,.8,.2,1]),exit:Object.freeze([.4,0,1,1])});function or(e){return `cubic-bezier(${e.join(", ")})`}t(or,"cssCubicBezier");var vn={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:or(tr.standard),emphasized:or(tr.emphasized),exit:or(tr.exit)},reducedMotion:false},Ko={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FDFBF8",surfaceSubtle:"#EFE9E3",background:"#FFFFFF",borderRingCream:"#D8D2C8",chatGround:"#FFFFFF",composerFill:"#FDFBF8",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#111111",secondary:"#0E462E",muted:"#6E6660",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#B91C1C",errorRed:"#FF1B00",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(185,28,28,0.12)",badgeBgNeutral:"rgba(110,102,96,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",skeleton:"#EFE9E3",scanButtonPink:"#FFC3BC",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)"},ae=A({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false},color:Ko,space:gn,radius:bn,type:hn(),motion:vn,slots:En}),$o={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A938C",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",skeleton:"#23272C",scanButtonPink:"#FFC3BC",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)"},Ce=A({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false},color:$o,space:gn,radius:bn,type:hn(),motion:vn,slots:En});var Wo="#23272C",_n=4.5,Go=.6,ar=.9,Yo=.02,Vo="#FFFFFF",Xo="#111111";function Qo(e){return R(e,Wo)>=_n&&Math.max(R(e,Vo),R(e,Xo))>=_n}t(Qo,"readsOnDark");function Tn(e){let r=_(e);if(r===null)return null;let{h:n,s:o,l:i}=yn(r.r,r.g,r.b),a=Math.min(Math.max(i,Go),ar);for(let l=0;;l+=1){let u=a+l*Yo;if(u>ar)break;let d=nr({h:n,s:o,l:u}),f=H(d.r,d.g,d.b);if(Qo(f))return f}let s=nr({h:n,s:o,l:ar});return H(s.r,s.g,s.b)}t(Tn,"deriveDarkVariant");var Jo=7,Rn=.05,Zo="#000000",ei="#FFFFFF";function ri(e,r,n,o){let i=K(e,r);if(i===null)return n;if(R(i,r)>=o)return i;let a=_(i),s=_(n);if(a===null||s===null)return n;for(let l=1;l<1/Rn;l+=1){let u=l*Rn,d=t((c,p)=>Math.round(c+(p-c)*u),"mix"),f=H(d(a.r,s.r),d(a.g,s.g),d(a.b,s.b));if(R(f,r)>=o)return f}return n}t(ri,"pushContrast");function ni(e,r){let n=[e.surface,e.surfaceCream,e.surfaceSubtle,e.background,e.chatGround,e.composerFill],o=n[0],i=Cn(o);for(let a of n){let s=Cn(a);(r?s>i:s<i)&&(o=a,i=s);}return o}t(ni,"hardestGround");function Cn(e){let r=_(e);return r===null?0:q(r)}t(Cn,"luminanceOf");function z(e,r){return K(e,r)??T(e)??r}t(z,"solid");function kn(e){let r=e.color,n=e.brightness==="dark",o=n?ei:Zo,i=ni(r,n),a=t(l=>ri(l,i,o,Jo),"text"),s={...r,brandSoft:z(r.brandSoft,r.surface),brandSofter:z(r.brandSofter,r.surface),brandBorder:a(r.brandBorder),borderHairlineGreen:a(r.borderHairlineGreen),brandBorderStrong:a(r.brandBorderStrong),brandInk:a(r.brandInk),linkInk:a(r.linkInk),borderRingCream:a(r.borderRingCream),composerBorder:a(r.composerBorder),text:{primary:a(r.text.primary),secondary:a(r.text.secondary),muted:a(r.text.muted),placeholder:a(r.text.placeholder),onBrand:r.text.onBrand,metaCool:a(r.text.metaCool),timestamp:a(r.text.timestamp)},badgeBgPositive:z(r.badgeBgPositive,r.surface),badgeBgCaution:z(r.badgeBgCaution,r.surface),badgeBgCritical:z(r.badgeBgCritical,r.surface),badgeBgNeutral:z(r.badgeBgNeutral,r.surface),checkupCardLowRiskBg:z(r.checkupCardLowRiskBg,r.surface),checkupCardConcernBg:z(r.checkupCardConcernBg,r.surface)};return A({...e,highContrast:true,color:s})}t(kn,"deriveHighContrast");var Z=Object.freeze(["composerInput","sendButton","userBubble","assistantBubble","recordCard","vetVisitButton","primaryButton","link"]),dl=Object.freeze(["backgroundColor","borderColor","borderRadius","textColor"]),F=4.5,ti=Object.freeze({});function oi(e){return Z.includes(e)}t(oi,"isSlotName");function ii(e){let r=typeof e=="number"?e:typeof e=="string"?Number(e.trim()):Number.NaN;return Number.isFinite(r)?Math.max(0,r):null}t(ii,"parseRadius");function Sn(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let r={},n=false;for(let[o,i]of Object.entries(e)){if(!oi(o)||i===null||typeof i!="object")continue;let a=ai(i);a!==null&&(r[o]=a,n=true);}return n?Object.freeze(r):null}t(Sn,"parseThemeSlots");function Te(e,r,n){return e[r]!==void 0?e[r]:e[n]}t(Te,"pick");function ai(e){let r={},n=T(Te(e,"background_color","backgroundColor"));n!==null&&(r.backgroundColor=n);let o=T(Te(e,"border_color","borderColor"));o!==null&&(r.borderColor=o);let i=ii(Te(e,"border_radius","borderRadius"));i!==null&&(r.borderRadius=i);let a=T(Te(e,"text_color","textColor"));return a!==null&&(r.textColor=a),Object.keys(r).length===0?null:Object.freeze(r)}t(ai,"parseSlot");function Fn(e,r){return r===null||Object.keys(r).length===0?e??ti:e===null||Object.keys(e).length===0?r:Object.freeze({...e,...r})}t(Fn,"mergeThemeSlots");var sr=3;function si(e,r){return e===void 0?r:r.length===0?[e]:r.map(n=>K(e,n)??n)}t(si,"seatsOf");function li(e,r){let n=ie(e);return e.every(o=>R(n,o)>=r)}t(li,"someInkReads");function ui(e,r){let n=r[0];return n===void 0?null:K(e,n)}t(ui,"collapseUnsatisfiableFill");function di(e){let r=oe(e[0],F);return e.every(n=>R(r,n)>=F)?r:ie(e)}t(di,"inkFor");function xn(e,r){let n=false,o={};for(let i of Z){let a=e[i];if(a===void 0)continue;let s=a.backgroundColor,l=r?.[i]??[],u=si(s,l),d={...a},f=false;if(s!==void 0&&u.length>1&&!li(u,F)){let c=ui(s,l);c!==null&&(d.backgroundColor=c,u=[c],f=true);}if(u.length>0){let c=a.textColor;if(s!==void 0)(c===void 0||u.some(p=>R(c,p)<F))&&(d.textColor=di(u),f=true);else if(c!==void 0){let p=L(c,u,ie(u),F);p!==c&&(d.textColor=p,f=true);}if(a.borderColor!==void 0){let p=L(a.borderColor,u,ie(u),sr);p!==a.borderColor&&(d.borderColor=p,f=true);}}o[i]=f?Object.freeze(d):a,n=n||f;}return n?Object.freeze(o):e}t(xn,"guardSlotContrast");var An=Object.freeze(["display_name","logo_url","logo_url_dark","primary_color","accent_color","primary_color_dark","accent_color_dark","brightness","color_scheme","font_family","font_url","fonts","font_urls","chat_placeholder","surface_style","radius_scale","accessibility_max_font_scale","slots"]),se="slots.",In=Object.freeze([1,2]);function ke(e){return Object.keys(e).every(r=>r==="schemaVersion"||(e[r]??null)===null)}t(ke,"isEmptyBranding");function Pn(e){let r=e?.schemaVersion??null;return r===null||In.includes(r)}t(Pn,"isKnownBrandingSchema");function Dn(e){return new Set(["hide_powered_by",...e?.lockedFields??[]])}t(Dn,"lockedFieldsOf");function ci(e){return e==="hide_powered_by"||An.includes(e)?true:e.startsWith(se)&&Z.includes(e.slice(se.length))}t(ci,"isThemeLockName");function G(e){if(e===null||typeof e!="object")return null;let r=e,n={displayName:W(g(r,"display_name","displayName")),logoUrl:W(g(r,"logo_url","logoUrl")),primaryColor:T(g(r,"primary_color","primaryColor")),accentColor:T(g(r,"accent_color","accentColor")),brightness:mi(g(r,"brightness","color_scheme","colorScheme")),fontFamily:W(g(r,"font_family","fontFamily")),fontUrl:W(g(r,"font_url","fontUrl")),fonts:wn(g(r,"fonts")),fontUrls:wn(g(r,"font_urls","fontUrls")),placeholder:W(g(r,"chat_placeholder","placeholder","chatPlaceholder")),hidePoweredBy:fi(g(r,"hide_powered_by","hidePoweredBy")),primaryColorDark:T(g(r,"primary_color_dark","primaryColorDark")),accentColorDark:T(g(r,"accent_color_dark","accentColorDark")),surfaceStyle:On(g(r,"surface_style","surfaceStyle"),pi),radiusScale:On(g(r,"radius_scale","radiusScale"),yi),logoUrlDark:W(g(r,"logo_url_dark","logoUrlDark")),slots:Sn(g(r,"slots")),accessibilityMaxFontScale:bi(g(r,"accessibility_max_font_scale","accessibilityMaxFontScale")),lockedFields:Ei(g(r,"locked_fields","lockedFields")),schemaVersion:hi(g(r,"schema_version","schemaVersion"))};return ke(n)?null:Object.freeze(n)}t(G,"parseClientBranding");function fi(e){if(typeof e=="boolean")return e;if(typeof e=="string"){let r=e.trim().toLowerCase();if(r==="true")return true;if(r==="false")return false}return null}t(fi,"parseBool");function g(e,...r){for(let n of r)if(Object.prototype.hasOwnProperty.call(e,n)){let o=e[n];if(o!==void 0)return o}}t(g,"pick");function W(e){if(typeof e!="string")return null;let r=e.trim();return r.length===0?null:r}t(W,"parseNonEmptyString");var le=["regular","medium","bold","mono","monoMedium","monoBold"];function wn(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let r=e,n={};for(let o of le){let i=W(g(r,o));i!==null&&(n[o]=i);}return Object.keys(n).length===0?null:Object.freeze(n)}t(wn,"parseFaceMap");var pi=["white","cream","subtle"],yi=["sharp","default","round"];function On(e,r){if(typeof e!="string")return null;let n=e.trim().toLowerCase();return r.includes(n)?n:null}t(On,"parseEnum");function mi(e){if(typeof e!="string")return null;let r=e.trim().toLowerCase();return r==="light"||r==="dark"||r==="auto"?r:null}t(mi,"parseBrightness");function Mn(e){let r=typeof e=="number"?e:typeof e=="string"?Number(e.trim()):Number.NaN;return Number.isFinite(r)&&(typeof e!="string"||e.trim().length>0)?r:null}t(Mn,"parseNumber");var gi=1,Ln=3.1;function bi(e){let r=Mn(e);return r===null?null:r<=0?0:Math.min(Ln,Math.max(gi,r))}t(bi,"parseMaxFontScale");function hi(e){if(e==null)return null;let r=Mn(e);return r!==null&&Number.isInteger(r)&&r>=1?r:0}t(hi,"parseSchemaVersion");function lr(e){let r=e.trim();return r.startsWith(se)?r:r.replace(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase()}t(lr,"toWireName");function Ei(e){if(!Array.isArray(e))return null;let r=[];for(let n of e){if(typeof n!="string")continue;let o=lr(n);ci(o)&&!r.includes(o)&&r.push(o);}return r.length===0?null:Object.freeze(r)}t(Ei,"parseLockedFields");function ur(e){if(e===null)return null;let r=e.trim();return r.length===0?null:/^https:\/\/\S+$/i.test(r)?r:null}t(ur,"hardenHttpsUrl");function Nn(e,r){if(r===null||ke(r))return e;let n=(r.brightness==="light"||r.brightness==="dark")&&r.brightness!==e.brightness?r.brightness==="dark"?Ce:ae:e,o=n.brightness==="dark"?Ce:ae,i=n.brightness==="dark",a=i?r.primaryColorDark??zn(r.primaryColor):r.primaryColor,s=i?r.accentColorDark??zn(r.accentColor):r.accentColor,l=a??n.color.primary,u=s??n.color.accent,d=a!==null&&Ti(r,l,o,i),f=d?o.color.primary:l,c=a!==null&&!d?_(f):null,p=t(S=>Math.round(S+(255-S)*.4),"lift"),m=c!==null?{brand:f,bubbleUser:f,brandInk:f,text:{...n.color.text,secondary:f},brandSoft:`rgba(${c.r}, ${c.g}, ${c.b}, 0.10)`,brandSofter:`rgba(${c.r}, ${c.g}, ${c.b}, 0.15)`,brandBorder:`rgba(${c.r}, ${c.g}, ${c.b}, 0.20)`,borderHairlineGreen:`rgba(${c.r}, ${c.g}, ${c.b}, 0.28)`,brandBorderStrong:`rgba(${c.r}, ${c.g}, ${c.b}, 0.55)`,composerBorder:`rgba(${c.r}, ${c.g}, ${c.b}, 0.75)`,accentEdge:`rgb(${p(c.r)}, ${p(c.g)}, ${p(c.b)})`}:d?ki(o,n.color.text):{},b={brightness:n.brightness,highContrast:n.highContrast,meta:{displayName:r.displayName??n.meta.displayName,logoUrl:(i?r.logoUrlDark??r.logoUrl:r.logoUrl)??n.meta.logoUrl,placeholder:r.placeholder??n.meta.placeholder,hidePoweredBy:r.hidePoweredBy??n.meta.hidePoweredBy},color:{...n.color,...m,...Ci(r.surfaceStyle??null,o),primary:f,accent:u,onPrimary:n.color.onPrimary,onAccent:n.color.onAccent},space:n.space,radius:Fi(r.radiusScale??null,n.radius,o),type:{...n.type,...Ri(n.type,r),maxScale:r.accessibilityMaxFontScale??n.type.maxScale},motion:n.motion,slots:Fn(n.slots,r.slots??null)};return A(b)}t(Nn,"withServerBranding");var vi={regular:["regular"],medium:["medium","regular"],bold:["bold","medium","regular"],mono:["mono"],monoMedium:["monoMedium","mono"],monoBold:["monoBold","monoMedium","mono"]},_i=[["regular","medium","bold"],["mono","monoMedium","monoBold"]];function dr(e){return e==="mono"||e==="monoMedium"||e==="monoBold"}t(dr,"isMonoFace");function Ri(e,r){let n=r.fonts??{},o=r.fontUrls??{},i={...e.families},a={...e.namedFaces},s={...e.fontUrls};for(let l of le){let u=vi[l].map(c=>n[c]).find(c=>c!==void 0),d=dr(l)?null:r.fontFamily;u!==void 0?(i[l]=u,a[l]=true):d!==null&&(i[l]=d,a[l]=false);let f=o[l]??(l==="regular"?r.fontUrl:null)??null;f!==null?s[l]=f:u!==void 0&&delete s[l];}for(let l of _i)for(let u of l)a[u]&&l.some(d=>d!==u&&i[d]===i[u])&&(a[u]=false);return {family:i.regular,mono:i.mono,fontUrl:s.regular??null,families:i,namedFaces:a,fontUrls:s}}t(Ri,"mergeFaces");function zn(e){return e===null?null:Tn(e)}t(zn,"darkVariantOf");function Ci(e,r){if(e===null)return {};let n=r.color;return {chatGround:e==="white"?n.surface:e==="subtle"?n.surfaceSubtle:n.surfaceCream}}t(Ci,"surfaceOf");function Bn(e,r){return e==null?false:T(e)===T(r)}t(Bn,"sameColor");function Ti(e,r,n,o){return Bn(r,n.color.primary)?true:o&&(e.primaryColorDark??null)===null&&Bn(e.primaryColor,ae.color.primary)}t(Ti,"isCompiledPrimary");function ki(e,r){let n=e.color;return {text:{...r,secondary:n.text.secondary},brand:n.brand,bubbleUser:n.bubbleUser,brandInk:n.brandInk,brandSoft:n.brandSoft,brandSofter:n.brandSofter,brandBorder:n.brandBorder,borderHairlineGreen:n.borderHairlineGreen,brandBorderStrong:n.brandBorderStrong,composerBorder:n.composerBorder,accentEdge:n.accentEdge}}t(ki,"compiledBrandFamily");var Si={sharp:.5,default:1,round:1.5};function Fi(e,r,n){if(e===null)return r;let o=Si[e],i=n.radius,a=t(s=>Math.round(s*o),"s");return {tile:a(i.tile),xs:a(i.xs),sm:a(i.sm),md:a(i.md),lg:a(i.lg),xl:a(i.xl),pill:i.pill}}t(Fi,"radiusOf");var xi="Everfur",wi=.5;function Oi(e){let r=e?.branding??null,n=Pn(r)?r:null,o=Di(e?.clientOverride??null,Dn(n)),i=e?.colorScheme==="dark"?"dark":"light",a=o?.brightness??n?.brightness??"light",u=Nn((a==="auto"?i:a)==="dark"?Ce:ae,jn(n)),d=Nn(u,jn(o));return Wi(d,e)}t(Oi,"resolveTheme");function Rl(e,r,n){return Oi({...n,branding:G(r),clientOverride:G(e)})}t(Rl,"previewTheme");function Ai(e){return e==="placeholder"?"chat_placeholder":lr(e)}t(Ai,"wireNameOf");var Ii={brightness:["color_scheme"],fontUrl:["font_family"],fonts:["font_family"],fontUrls:["font_url","font_family"],primaryColorDark:["primary_color"],accentColorDark:["accent_color"],logoUrlDark:["logo_url"]};function Pi(e,r){return r.has(Ai(e))?true:(Ii[e]??[]).some(n=>r.has(n))}t(Pi,"isLocked");function Di(e,r){if(e===null)return null;let n=false,o={...e};for(let s of Object.keys(e))(e[s]??null)!==null&&(Pi(s,r)||s==="lockedFields")&&(o[s]=null,n=true);let i=o.slots??null;if(i!==null){let s={},l=false;for(let u of Z){let d=i[u];d!==void 0&&(r.has(`${se}${u}`)?l=true:s[u]=d);}l&&(o.slots=Object.keys(s).length===0?null:Object.freeze(s),n=true);}if(!n)return e;let a=Object.freeze(o);return ke(a)?null:a}t(Di,"withoutFields");function jn(e){return e===null||e.brightness===null?e:Object.freeze({...e,brightness:null})}t(jn,"withoutBrightness");function Mi(e,r){if(r===1)return e;let n={};for(let[o,i]of Object.entries(e))n[o]=Math.round(i*r*10)/10;return n}t(Mi,"scaledSizes");function Li(e){return e===void 0||!Number.isFinite(e)?1:Math.max(wi,e)}t(Li,"effectiveScale");var Un=["content","heading","control","compact","badge"];function Ni(e){if(!(e>0))return Re;let r={};for(let n of Un){let o=Re[n];r[n]=o===0?0:Math.min(o,e);}return r}t(Ni,"tierCaps");function zi(e,r){return r>0?Math.min(e,r):e}t(zi,"capped");function Bi(e,r,n,o){let i={};for(let a of Un)i[a]=o?Mi(e,zi(r,n[a])):e;return i}t(Bi,"sizesByTier");function ji(e){return e==="dark"?"#FFFFFF":"#000000"}t(ji,"inkPole");function Ui(e){return [e.surface,e.surfaceCream,e.surfaceSubtle,e.background,e.chatGround,e.composerFill]}t(Ui,"textGrounds");function qi(e){return [e.surface,e.surfaceCream,e.background,e.chatGround,e.composerFill]}t(qi,"controlGrounds");function qn(e){return [e.chatGround,e.surface,e.surfaceCream]}t(qn,"linkGrounds");function Hi(e){return {composerInput:[e.composerFill],sendButton:[e.composerFill],userBubble:[e.bubbleUser],assistantBubble:[e.chatGround,e.surfaceCream],recordCard:[e.surface],vetVisitButton:[e.primary],primaryButton:[e.brand],link:qn(e)}}t(Hi,"slotGrounds");function Ki(e,r){try{let n=e(r);return n===!0||n===!1?n:null}catch{return null}}t(Ki,"registration");function $i(e,r){let n=r?.isFontRegistered,o=r?.platformMonoFamily?.trim()||null;if(n===void 0&&o===null)return {family:e.family,mono:e.mono,families:e.families,namedFaces:e.namedFaces};let i={...e.families},a={...e.namedFaces};for(let s of le)!(i[s]===$||i[s]===N)&&n!==void 0&&Ki(n,i[s])===false&&(i[s]=dr(s)?N:$,a[s]=false),o!==null&&dr(s)&&i[s]===N&&(i[s]=o);return {family:i.regular,mono:i.mono,families:i,namedFaces:a}}t($i,"platformFaces");function Wi(e,r){let n=e.color.primary,o=e.color.accent,i=e.meta.displayName.trim().length===0?xi:e.meta.displayName,a=ur(e.meta.logoUrl),s={};for(let V of le){let ye=e.type.fontUrls[V];ye!==void 0&&(s[V]=ur(ye));}let l=s.regular??null,d=r?.reducedMotion===true?{duration:{instant:0,fast:0,normal:0,slow:0},spring:{gentle:{damping:100,stiffness:1e3}},easing:e.motion.easing,reducedMotion:true}:e.motion,f=Number.isFinite(e.type.maxScale)?e.type.maxScale:ir,c=Li(r?.textScale),p=Ni(f),m=Bi(e.type.size,c,p,r?.scaleTypeSizes===true),b=e.color,S=ji(e.brightness),ce=Ui(b),fe={...b,primary:n,accent:o,onPrimary:oe(n,F),onAccent:oe(o,F),brandInk:L(b.brandInk,ce,S,F),linkInk:L(e.slots.link?.textColor??o,qn(b),S,F),text:{...b.text,secondary:L(b.text.secondary,ce,S,F)},brandBorderStrong:L(b.brandBorderStrong,qi(b),S,sr)},pe={brightness:e.brightness,highContrast:false,meta:{displayName:i,logoUrl:a,placeholder:e.meta.placeholder,hidePoweredBy:e.meta.hidePoweredBy},color:fe,space:e.space,radius:e.radius,type:{...e.type,...$i(e.type,r),fontUrl:l,fontUrls:s,size:m.content,tierSizes:m,scale:c,maxScale:f,scaleCaps:p},motion:d,slots:xn(e.slots,Hi(fe))};return r?.highContrast===true?kn(A(pe)):A(pe)}t(Wi,"finalize");var Hn="/widget/v1/entitlements",Gi=304,Yi=Object.freeze({kind:"notModified"});async function xl(e,r={},n=M({auth:e})){let o=await n.send("entitlements.fetch",Xi(r));return o.ok?Qi(o.value):o.error.httpStatus===Gi?Yi:{kind:"failed",error:o.error}}t(xl,"fetchEntitlements");var Vi=64;function Xi(e){let r={};return cr(e.cachedRevision)&&(r["if-none-match"]=`"${e.cachedRevision}"`),e.region&&e.region.length<=Vi?{method:"GET",path:Hn,headers:r,query:{region:e.region}}:{method:"GET",path:Hn,headers:r}}t(Xi,"buildRequest");function Qi(e){if(e===null||typeof e!="object"||!cr(e.revision))return Kn();let r=typeof e.region=="string"?e.region:"",n=cr(e.ttl_seconds)?e.ttl_seconds:0;return Object.freeze({kind:"updated",revision:e.revision,region:r,ttlSeconds:n,decisions:Zi(e.capabilities),branding:Ji(e)})}t(Qi,"parseUpdated");function Ji(e){let r=G(e.branding);if(r!==null)return r;let n=e.render_hints;if(n!==null&&typeof n=="object"){let o=G(n.branding);return o!==null?o:G(n)}return null}t(Ji,"parseBranding");function Zi(e){if(e===null||typeof e!="object")return Object.freeze([]);let r=[];for(let[n,o]of Object.entries(e))ea(o)&&r.push(Object.freeze({resource:n,granted:true}));return Object.freeze(r)}t(Zi,"mapCapabilities");function ea(e){return typeof e=="object"&&e!==null&&e.enabled===true}t(ea,"isEnabled");function Kn(){return {kind:"failed",error:C("internalError",{retryable:true,wireMessage:"malformed entitlements response"})}}t(Kn,"malformed");function cr(e){return typeof e=="number"&&Number.isFinite(e)}t(cr,"isFiniteNumber");var ra=Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function na(e,r){let n=e.type,o=n.families[r];return r==="mono"||n.namedFaces[r]?{fontFamily:o}:{fontFamily:o,fontWeight:n.weight[ra[r]]}}t(na,"face");var $n=Object.freeze({dog:"dog",canine:"dog",k9:"dog",puppy:"dog",cat:"cat",feline:"cat",kitten:"cat"});function Wn(e){if(typeof e!="string")return null;let r=e.trim().toLowerCase();return Object.prototype.hasOwnProperty.call($n,r)?$n[r]:null}t(Wn,"canonicalPetSpecies");var Gn=50,ta=128,fr=120,Yn=120,oa=2e3,Vn=120,ia=80,Jn=new Set(["male","female","unknown"]),Zn=new Set(["day","month","year"]),et=new Set(["low","medium","high","athletic"]),rt=new Set(["indoor","outdoor","both"]),nt=new Set(["mild","moderate","severe"]),aa=/^(\d{4})-(\d{2})-(\d{2})$/,tt=[["sex","sex"],["spayedNeutered","spayed_neutered"],["birthDate","birth_date"],["birthDatePrecision","birth_date_precision"],["activityLevel","activity_level"],["indoorOutdoor","indoor_outdoor"],["foodBrand","food_brand"],["foodType","food_type"],["microchipId","microchip_id"]],ot=[["allergies","allergies"],["medications","medications"],["supplements","supplements"],["conditions","conditions"]];Object.freeze([...tt,...ot].map(([e])=>e));function sa(e){let r=aa.exec(e);if(r===null)return false;let[n,o,i]=[Number(r[1]),Number(r[2]),Number(r[3])],a=new Date(Date.UTC(n,o-1,i));return a.getUTCFullYear()===n&&a.getUTCMonth()===o-1&&a.getUTCDate()===i}t(sa,"isRealDate");var de=t(e=>(r,n)=>typeof n=="string"&&e.has(n)?null:`${r} must be one of ${[...e].join(", ")}`,"oneOf"),la=t((e,r)=>typeof r=="boolean"?null:`${e} must be true or false`,"boolean"),Fe=t((e,r)=>typeof r=="string"&&sa(r)?null:`${e} must be a real date written YYYY-MM-DD`,"date"),x=t((e,r={})=>(n,o)=>{if(typeof o!="string")return `${n} must be a string`;if(Q(o))return `${n} contains an unpaired surrogate and cannot be encoded`;let i=r.trimmed?o.trim():o;if(r.required&&i.length===0)return `${n} is required and must not be blank`;let a=j(i);return a<=e?null:`${n} is ${a} characters; the server accepts at most ${e}`},"text"),ua={sex:de(Jn),spayedNeutered:la,birthDate:Fe,birthDatePrecision:de(Zn),activityLevel:de(et),indoorOutdoor:de(rt),foodBrand:x(Vn),foodType:x(Vn),microchipId:x(ia)},pr=["ref","ref",false,x(ta,{required:true,trimmed:true})],yr=["notes","notes",false,x(oa,{trimmed:true})],Xn=[pr,["name","name",true,x(fr,{required:true,trimmed:true})],["dose","dose",false,x(Yn,{trimmed:true})],["frequency","frequency",false,x(Yn,{trimmed:true})],["startDate","start_date",false,Fe],["endDate","end_date",false,Fe],yr],da={allergies:[pr,["allergen","allergen",true,x(fr,{required:true,trimmed:true})],["severity","severity",false,de(nt)],yr],medications:Xn,supplements:Xn,conditions:[pr,["conditionName","condition_name",true,x(fr,{required:true,trimmed:true})],["diagnosedDate","diagnosed_date",false,Fe],yr]};function ca(e,r,n){let o=`${e}[${r}]`;if(typeof n!="object"||n===null||Array.isArray(n))return {error:`${o} must be an object`};let i=n,a={};for(let[u,d,f,c]of da[e]){let p=i[u];if(p==null){if(f)return {error:`${o}.${u} is required`};p===null&&(a[d]=null);continue}let m=c(`${o}.${u}`,p);if(m!==null)return {error:m};a[d]=p;}let s=a.start_date,l=a.end_date;return typeof s=="string"&&typeof l=="string"&&l<s?{error:`${o}.endDate must not be before startDate`}:{item:a}}t(ca,"itemToWire");function fa(e,r){if(!Array.isArray(r))return {error:`${e} must be an array (send [] to clear it)`};if(r.length>Gn)return {error:`${e} has ${r.length} items; the server accepts at most ${Gn}`};let n=[],o=new Set;for(let i=0;i<r.length;i+=1){let a=ca(e,i,r[i]);if("error"in a)return a;let s=a.item.ref;if(typeof s=="string"){let l=s.trim();if(o.has(l))return {error:`${e}: ref ${JSON.stringify(l)} is used twice; a ref names one item`};o.add(l);}n.push(a.item);}return {items:n}}t(fa,"listToWire");function it(e,r){let n=e,o={};for(let[s,l]of tt){let u=n[s];if(u!==void 0){if(u!==null){let d=ua[s](s,u);if(d!==null)return {error:d}}o[l]=u;}}let i=n.birthDate!==void 0,a=n.birthDatePrecision!==void 0;if(i!==a||i&&n.birthDate===null!=(n.birthDatePrecision===null))return {error:"birthDate and birthDatePrecision must be sent together, both set or both null"};for(let[s,l]of ot){let u=n[s];if(u===void 0)continue;let d=fa(s,u);if("error"in d)return d;o[l]=d.items;}return Object.keys(o).length>0&&r!==void 0&&Wn(r)===null?{error:"health fields need a pet Everfur reads as a dog or a cat (dog, canine, k9, puppy, cat, feline, kitten)"}:{body:o}}t(it,"petHealthToWire");var h=t(e=>typeof e=="string"?e:null,"str"),ue=t((e,r)=>typeof r=="string"&&e.has(r)?r:null,"pick"),pa=t(e=>typeof e=="boolean"?e:null,"bool");function Se(e,r){return Array.isArray(e)?Object.freeze(e.flatMap(n=>{if(typeof n!="object"||n===null||Array.isArray(n))return [];let o=r(n);return o===null?[]:[o]})):Object.freeze([])}t(Se,"itemsFromWire");function Qn(e){let r=h(e.name);return r===null||r.length===0?null:Object.freeze({ref:h(e.ref),name:r,dose:h(e.dose),frequency:h(e.frequency),startDate:h(e.start_date),endDate:h(e.end_date),notes:h(e.notes)})}t(Qn,"medicationFromWire");function at(e){let r=e.profile_version;return Object.freeze({profileVersion:typeof r=="number"&&Number.isInteger(r)&&r>=0?r:0,sex:ue(Jn,e.sex),spayedNeutered:pa(e.spayed_neutered),birthDate:h(e.birth_date),birthDatePrecision:ue(Zn,e.birth_date_precision),activityLevel:ue(et,e.activity_level),indoorOutdoor:ue(rt,e.indoor_outdoor),foodBrand:h(e.food_brand),foodType:h(e.food_type),microchipId:h(e.microchip_id),allergies:Se(e.allergies,n=>{let o=h(n.allergen);return o===null||o.length===0?null:Object.freeze({ref:h(n.ref),allergen:o,severity:ue(nt,n.severity),notes:h(n.notes)})}),medications:Se(e.medications,Qn),supplements:Se(e.supplements,Qn),conditions:Se(e.conditions,n=>{let o=h(n.condition_name);return o===null||o.length===0?null:Object.freeze({ref:h(n.ref),conditionName:o,diagnosedDate:h(n.diagnosed_date),notes:h(n.notes)})})})}t(at,"petHealthFromWire");var mr=100,gr=50,br=100,hr=50,Er=500,ya=128,ma=6e4;function O(e){return C("validationFailed",{retryable:false,wireMessage:e})}t(O,"invalid");function Y(e,r,n){if(typeof r!="string")return O(`${e} must be a string`);let o=j(r);return o<=n?null:O(`${e} is ${o} characters; the server accepts at most ${n}`)}t(Y,"checkString");function xe(e,r,n){return typeof r=="number"&&Number.isFinite(r)&&r>=0&&r<=n?null:O(`${e} must be a finite number between 0 and ${n}`)}t(xe,"outOfRange");function st(e,r){if(typeof e!="string")return O("pet_ref must be a string");if(e.trim().length===0)return O("pet_ref must not be blank");if(Q(e))return O("pet_ref contains an unpaired surrogate and cannot be encoded");if(r!=null&&typeof r!="object")return O("profile must be an object");let n=[Y("pet_ref",e,ya)];return r?.name!==void 0&&n.push(Y("name",r.name,mr)),r?.species!==void 0&&n.push(Y("species",r.species,gr)),r?.breed!==void 0&&n.push(Y("breed",r.breed,br)),r?.ageYears!==void 0&&n.push(xe("age_years",r.ageYears,hr)),r?.weightKg!==void 0&&n.push(xe("weight_kg",r.weightKg,Er)),n.find(o=>o!==null)??null}t(st,"validate");function ut(e,r){let n=it(e,r);return "error"in n?{error:O(n.error)}:n}t(ut,"healthToWire");function ga(e){if(typeof e!="object"||e===null)return {error:O("patch must be an object")};let r=e,n=[["name","name",a=>Y("name",a,mr)],["species","species",a=>Y("species",a,gr)],["breed","breed",a=>Y("breed",a,br)],["ageYears","age_years",a=>xe("age_years",a,hr)],["weightKg","weight_kg",a=>xe("weight_kg",a,Er)]],o={};for(let[a,s,l]of n){let u=r[a];if(u!==void 0){if(u!==null){let d=l(u);if(d!==null)return {error:d}}o[s]=u;}}let i=ut(r,r.species);return "error"in i?i:(Object.assign(o,i.body),Object.keys(o).length===0?{error:O("patch must change at least one field")}:{body:o})}t(ga,"patchToWire");function ba(e){if(e==null)return {body:{}};let r=ut(e,e.species);return "error"in r?r:{body:{...e.name!==void 0?{name:e.name}:{},...e.species!==void 0?{species:e.species}:{},...e.breed!==void 0?{breed:e.breed}:{},...e.ageYears!==void 0?{age_years:e.ageYears}:{},...e.weightKg!==void 0?{weight_kg:e.weightKg}:{},...r.body}}}t(ba,"toWire");var w=t(e=>typeof e=="string"?e:null,"str"),we=t(e=>typeof e=="number"&&Number.isFinite(e)?e:null,"num");function lt(e,r){let n=typeof e=="object"&&e!==null?e:{};return Object.freeze({petRef:w(n.pet_ref)??r,name:w(n.name),species:w(n.species),breed:w(n.breed),ageYears:we(n.age_years),weightKg:we(n.weight_kg)})}t(lt,"fromWire");function vr(e){if(typeof e!="object"||e===null)return null;let r=e,n=w(r.pet_ref);return n===null||n.length===0?null:Object.freeze({petId:w(r.pet_id),petRef:n,name:w(r.name),species:w(r.species),breed:w(r.breed),ageYears:we(r.age_years),weightKg:we(r.weight_kg),updatedAt:w(r.updated_at)})}t(vr,"widgetPetFromWire");function ha(e){let r=vr(e);return r===null?null:Object.freeze({...r,...at(e)})}t(ha,"widgetPetProfileFromWire");function Ea(e){let r=Array.isArray(e)?e:typeof e=="object"&&e!==null&&Array.isArray(e.pets)?e.pets:[];return Object.freeze(r.flatMap(n=>{let o=vr(n);return o===null?[]:[o]}))}t(Ea,"petListFromWire");function va(e){return _a(M({auth:e}),M({auth:e,unaryTimeoutMs:ma}))}t(va,"createPetsRepository");function _a(e,r=e){let n=t((i,a)=>a?{...i,signal:a}:i,"withSignal"),o=t(i=>st(i,void 0)??`/widget/v1/pets/${encodeURIComponent(i)}`,"petPath");return {async list(i){let a=await e.send("pets.list",n({method:"GET",path:"/widget/v1/pets"},i?.signal));return a.ok?k(Ea(a.value)):y(a.error)},async registerPet(i,a,s){let l=st(i,a);if(l!==null)return y(l);let u=ba(a);if("error"in u)return y(u.error);let f={method:"POST",path:`/widget/v1/pets/${encodeURIComponent(i)}`,body:u.body},c=await e.send("pets.registerPet",s?.signal?{...f,signal:s.signal}:f);return c.ok?k(lt(c.value,i)):y(c.error)},async updatePet(i,a,s){let l=o(i);if(typeof l!="string")return y(l);let u=ga(a);if("error"in u)return y(u.error);let d=await e.send("pets.updatePet",n({method:"PATCH",path:l,body:u.body},s?.signal));return d.ok?k(lt(d.value,i)):y(d.error)},async getPetProfile(i,a){let s=o(i);if(typeof s!="string")return y(s);let l=await e.send("pets.getPetProfile",n({method:"GET",path:`${s}/profile`},a?.signal));if(!l.ok)return y(l.error);let u=ha(l.value);return u===null?y(C("internalError",{retryable:false,httpStatus:502,wireMessage:"the pet profile response carried no pet_ref"})):k(u)},async deletePet(i,a){let s=o(i);if(typeof s!="string")return y(s);let l=await e.send("pets.deletePet",n({method:"DELETE",path:s},a?.signal));return l.ok?k(void 0):y(l.error)},async eraseUserData(i){let a=await r.send("pets.eraseUserData",n({method:"DELETE",path:"/widget/v1/me"},i?.signal),{maxAttempts:1});return a.ok?k(void 0):y(a.error)}}}t(_a,"createPetsRepositoryOver");var Rr=Object.freeze(["better","same","worse"]),Ra=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function dt(e){return y(C("validationFailed",{retryable:false,wireMessage:e}))}t(dt,"invalid");function _r(){return y(C("internalError",{retryable:false}))}t(_r,"malformed");function ct(e){return typeof e!="string"||e.trim().length===0?C("validationFailed",{retryable:false,wireMessage:"pet_ref must not be blank"}):Q(e)?C("validationFailed",{retryable:false,wireMessage:"pet_ref contains an unpaired surrogate and cannot be encoded"}):`/widget/v1/pets/${encodeURIComponent(e)}/cases`}t(ct,"petPath");var I=t(e=>typeof e=="string"?e:null,"str"),ft=t(e=>typeof e=="number"&&Number.isFinite(e)?e:null,"count");function pt(e){if(typeof e!="object"||e===null)return null;let r=e,n=I(r.case_id),o=I(r.status);if(n===null||o===null)return null;let i=I(r.last_response);return Object.freeze({caseId:n,status:o,bodyLocation:I(r.body_location),lastResponse:i!==null&&Rr.includes(i)?i:null,checkInDueAt:I(r.check_in_due_at),openedAt:I(r.opened_at),resolvedAt:I(r.resolved_at),resolutionText:I(r.resolution_text),checkinAskCount:ft(r.checkin_ask_count),checkinAnswerCount:ft(r.checkin_answer_count)})}t(pt,"caseFromWire");function Ca(e){return Ta(M({auth:e}))}t(Ca,"createCasesRepository");function Ta(e){return {async list(r,n){let o=ct(r);if(typeof o!="string")return y(o);let i=await e.send("cases.list",{method:"GET",path:o,...n?.signal?{signal:n.signal}:{}});if(!i.ok)return y(i.error);let a=typeof i.value=="object"&&i.value!==null?i.value.cases:null;if(!Array.isArray(a))return _r();let s=a.map(pt);return s.every(l=>l!==null)?k(Object.freeze(s)):_r()},async checkin(r,n,o,i){let a=ct(r);if(typeof a!="string")return y(a);if(typeof n!="string"||!Ra.test(n))return dt("case_id must be a UUID");if(!Rr.includes(o))return dt("response must be one of better, same, worse");let s=await e.send("cases.checkin",{method:"POST",path:`${a}/${n}/checkin`,body:{response:o},...i?.signal?{signal:i.signal}:{}});if(!s.ok)return y(s.error);let l=typeof s.value=="object"&&s.value!==null?s.value:{},u=pt(l.case);return u===null?_r():k(Object.freeze({case:u,ctaDeepLink:I(l.cta_deep_link)}))}}}t(Ta,"createCasesRepositoryOver");exports.AUTO_RETRYABLE_CODES=vt;exports.BACKOFF_BASE_MS=Rt;exports.BACKOFF_CAP_MS=De;exports.CHECKIN_ANSWERS=Rr;exports.CONTRACT_ERROR_ROWS=Sr;exports.DARK_VARIANT_GROUND=Wo;exports.DARK_VARIANT_LIGHTNESS_CEILING=ar;exports.DARK_VARIANT_LIGHTNESS_FLOOR=Go;exports.DARK_VARIANT_LIGHTNESS_STEP=Yo;exports.DARK_VARIANT_TARGET_RATIO=_n;exports.DEFAULT_CONTRACT_VERSION=Ft;exports.DEFAULT_MAX_FONT_SCALE=ir;exports.DOC_SITE_ORIGIN=kr;exports.EASING_CURVES=tr;exports.EMPTY_FRAME_ARRAYS=Cs;exports.ENTITLEMENTS_PATH=Hn;exports.ENV_API_BASE_URL=Dr;exports.EVERFUR_DARK=Ce;exports.EVERFUR_ERROR_CATEGORIES=Da;exports.EVERFUR_ERROR_CODES=Pa;exports.EVERFUR_LIGHT=ae;exports.EverfurConfigError=E;exports.EverfurThrownError=Le;exports.HIGH_CONTRAST_TARGET_RATIO=Jo;exports.LOCKABLE_THEME_FIELDS=An;exports.MAX_FONT_SCALE_CEILING=Ln;exports.MAX_RETRY_ATTEMPTS=Ar;exports.PET_AGE_YEARS_MAX=hr;exports.PET_BREED_MAX=br;exports.PET_NAME_MAX=mr;exports.PET_SPECIES_MAX=gr;exports.PET_WEIGHT_KG_MAX=Er;exports.RETRYABLE_CONTRACT_CODES=_t;exports.SDK_PLATFORM=St;exports.SDK_VERSION=kt;exports.SLOT_LOCK_PREFIX=se;exports.SLOT_MIN_BORDER_CONTRAST=sr;exports.SLOT_MIN_CONTRAST=F;exports.SYSTEM_FONT_FAMILY=$;exports.SYSTEM_MONO_FAMILY=N;exports.TEXT_SCALE_FLOOR=wi;exports.TEXT_SCALE_TIER_CAPS=Re;exports.THEME_SCHEMA_VERSIONS=In;exports.THEME_SLOT_KEYS=dl;exports.THEME_SLOT_NAMES=Z;exports.acceptedFrame=Ur;exports.analysisCompleteFrame=Wr;exports.analysisStartedFrame=$r;exports.assertNever=Rs;exports.authHeaders=jt;exports.authedSend=jr;exports.backoffDelayMs=Ir;exports.bufferedTextByteSource=Ns;exports.buildBaseHeaders=Lr;exports.canRecreateOnNotFound=La;exports.categoryFor=xr;exports.checkPublishableKey=xt;exports.contractDocUrl=ht;exports.contractErrorFor=ge;exports.contrastRatio=R;exports.conversationId=is;exports.createCasesRepository=Ca;exports.createHttpTransport=Bs;exports.createIdentityProvider=hs;exports.createPetsRepository=va;exports.createRequestFunnel=M;exports.cssCubicBezier=or;exports.decideCapability=$s;exports.deepFreeze=A;exports.deltaFrame=Hr;exports.deniedDecisionsFor=Ks;exports.deriveDarkVariant=Tn;exports.deriveHighContrast=kn;exports.doneFrame=Kr;exports.err=y;exports.errorFrame=D;exports.errorFromResponse=rn;exports.eventSourceByteSource=Zt;exports.eventSourceRequestId=io;exports.face=na;exports.fetchByteSource=Be;exports.fetchEntitlements=xl;exports.fromHttpStatus=wr;exports.fromWire=X;exports.getGlobalFetch=Ue;exports.guardSlotContrast=xn;exports.hardenHttpsUrl=ur;exports.heartbeatFrame=qr;exports.isAutoRetryable=B;exports.isEmptyBranding=ke;exports.isErr=Ka;exports.isKnownBrandingSchema=Pn;exports.isOk=Ha;exports.isRetryableCode=Or;exports.lockedFieldsOf=Dn;exports.makeEverfurError=C;exports.mergeThemeSlots=Fn;exports.networkError=ve;exports.newSessionId=Es;exports.ok=k;exports.parseClientBranding=G;exports.parseColor=T;exports.parseSse=Ee;exports.parseThemeSlots=Sn;exports.petRef=ts;exports.previewTheme=Rl;exports.publishedDocUrl=Fr;exports.readableOn=fn;exports.requestIdOf=je;exports.requestJson=no;exports.requestRaw=zs;exports.requires=fo;exports.resolveApiBaseUrl=Xa;exports.resolveClientConfig=Va;exports.resolveEntitlements=Hs;exports.resolveTheme=Oi;exports.shouldRetry=Ma;exports.tryResolveApiBaseUrl=Mr;exports.tryResolveClientConfig=wt;exports.unknownFrame=Gr;exports.unsafeClientId=ds;exports.unsafeConversationId=ls;exports.unsafeDocumentId=cs;exports.unsafeJobId=fs;exports.unsafePetRef=as;exports.unsafeRecordsRequestId=ps;exports.unsafeResponseId=us;exports.unsafeUserRef=ss;exports.unwrap=$a;exports.userFacingError=Me;exports.userRef=os;exports.widgetPetFromWire=vr;exports.withAuthHeaders=te;exports.withServerBranding=Nn;
|
|
11
|
+
`));}l(),n.end();},"onError");e.addEventListener("message",i),e.addEventListener("done",a),e.addEventListener("error",s);function l(){if(!o){o=true,e.removeEventListener("message",i),e.removeEventListener("done",a),e.removeEventListener("error",s);try{e.close();}catch{}}}return t(l,"cleanup"),eo(n.source,l)}t(Zt,"eventSourceByteSource");async function*eo(e,r){try{yield*e;}finally{r();}}t(eo,"sourceWithCleanup");function ro(){let e=[],r=false,n=null,o=t(()=>{if(n){let a=n;n=null,a();}},"signal");async function*i(){for(;;){let a=e.shift();if(a!==void 0){yield a;continue}if(r)return;await new Promise(s=>{n=s;});}}return t(i,"gen"),{source:i(),push:t(a=>{e.push(a),o();},"push"),end:t(()=>{r=true,o();},"end")}}t(ro,"createByteQueue");async function no(e,r){let n=r.fetchImpl??Ue(),o=qe(r.config.apiBaseUrl,e.path,e.query),i=He(r.config,e.headers,"application/json",e.body!==void 0&&e.multipart===void 0),a=so(Jt),s=lo(a.signal,e.signal),l;try{l=await n(o,Ke({...e,signal:s},i));}catch(d){return y(ve(d))}finally{a.cancel();}let u=await $e(l);return l.ok?k(u):y(rn(l.status,u,je(l)))}t(no,"requestJson");async function zs(e,r,n){let o=r.fetchImpl??Ue(),i=qe(r.config.apiBaseUrl,e.path,e.query),a=He(r.config,e.headers,"text/event-stream",e.body!==void 0&&e.multipart===void 0),s;try{s=await o(i,Ke(e,a));}catch(u){return y(ve(u))}if(!s.ok)return y(rn(s.status,await $e(s),je(s)));let l=n?n(s):Be(s.body);return k({ok:s.ok,status:s.status,headers:uo(s),bytes:l})}t(zs,"requestRaw");function Bs(e){return {request:t(r=>no(r,e),"request"),stream:t((r,n)=>to(ao(r,n),e),"stream")}}t(Bs,"createHttpTransport");async function*to(e,r){let n=qe(r.config.apiBaseUrl,e.path,e.query),o=He(r.config,e.headers,"text/event-stream",e.body!==void 0&&e.multipart===void 0);if(r.eventSourceFactory){let l=r.eventSourceFactory(n,oo(e,o));yield*Ee(Zt(l),()=>io(l));return}let i=r.fetchImpl??Ue(),a;try{a=await i(n,Ke(e,o));}catch(l){yield Jr("",true,sn(l));return}let s=je(a);if(!a.ok){let l=await $e(a),u=tn(l)??nn(a.status),d=an(l)||B(X(u));yield Jr(u,d,on(l),s);return}if(a.body){yield*Ee(Be(a.body),s);return}yield*Ee(Be(null),s);}t(to,"streamFrames");function oo(e,r){return {method:e.method,headers:r,pollingInterval:0,...e.body!==void 0?{body:JSON.stringify(e.body)}:{}}}t(oo,"buildEventSourceInit");function rn(e,r,n){let o=tn(r),i=o?X(o):wr(e),a=on(r);return C(i,{httpStatus:e,...an(r)?{retryable:true}:{},...n?{requestId:n}:{},...o?{wireCode:o}:{},...Zr(r)?{reasonCode:Zr(r)}:{},...a?{wireMessage:a}:{},...r!=null?{raw:r}:{}})}t(rn,"errorFromResponse");function ve(e){return C("internalError",{retryable:true,wireMessage:sn(e)})}t(ve,"networkError");function je(e){let r=e.headers.get(en);return typeof r=="string"&&r.length>0?r:null}t(je,"requestIdOf");function io(e){if(typeof e.getResponseHeader!="function")return null;let r;try{r=e.getResponseHeader(en);}catch{return null}return typeof r=="string"&&r.length>0?r:null}t(io,"eventSourceRequestId");function nn(e){return e===401?"AUTH_EXPIRED":e===403?"ACCESS_DENIED":e===404?"NOT_FOUND":e===409?"IDEMPOTENCY_CONFLICT":e===421?"MISDIRECTED_REQUEST":e===429?"RATE_LIMITED":e===400||e===422?"INVALID_REQUEST":e===503||e>=500?"INTERNAL_ERROR":""}t(nn,"statusToWireCode");function Jr(e,r,n,o=null){return D({code:e,retryable:r,wireMessage:n,synthesized:true,lastEventId:null,serverRequestId:o})}t(Jr,"syntheticErrorFrame");function Ue(){let e=globalThis.fetch;if(typeof e!="function")throw new E("missing-peer-dependency","global fetch is unavailable; provide config.transport or an injected fetch implementation");return e}t(Ue,"getGlobalFetch");function qe(e,r,n){let o=r.startsWith("/")?r:`/${r}`,i=`${e}${o}`;if(n){let a=Object.entries(n).filter(s=>s[1]!==void 0).map(([s,l])=>`${encodeURIComponent(s)}=${encodeURIComponent(String(l))}`).join("&");a&&(i+=`?${a}`);}return i}t(qe,"buildUrl");function He(e,r,n,o){let i={...Lr(e),accept:n};return o&&(i["content-type"]="application/json"),r&&Object.assign(i,r),i}t(He,"mergeHeaders");function Ke(e,r){let n={method:e.method,headers:r};return e.multipart!==void 0?n.body=e.multipart:e.body!==void 0&&(n.body=JSON.stringify(e.body)),e.signal&&(n.signal=e.signal),n}t(Ke,"buildInit");function ao(e,r){return e.signal?e:{...e,signal:r}}t(ao,"withSignal");function so(e){let r=new AbortController,n=setTimeout(()=>r.abort(),e);return {signal:r.signal,cancel:t(()=>clearTimeout(n),"cancel")}}t(so,"timeoutSignal");function lo(e,r){if(!r)return e;let n=new AbortController;if(e.aborted||r.aborted)return n.abort(),n.signal;let o=t(()=>n.abort(),"onAbort");return e.addEventListener("abort",o,{once:true}),r.addEventListener("abort",o,{once:true}),n.signal}t(lo,"mergeAbortSignals");async function $e(e){try{return await e.json()}catch{return null}}t($e,"safeJson");function uo(e){let r={};return e.headers.forEach?.((n,o)=>{r[o.toLowerCase()]=n;}),r}t(uo,"collectHeaders");function Zr(e){let r=e,n=r?.error?.reason_code??r?.reason_code;return typeof n=="string"&&n.length>0?n:null}t(Zr,"extractReasonCode");function tn(e){let r=e,n=r?.error?.code??r?.code;return typeof n=="string"&&n.length>0?n:null}t(tn,"extractWireCode");function on(e){let r=e,n=r?.error?.message??r?.message;return typeof n=="string"&&n.length>0?n:null}t(on,"extractWireMessage");function an(e){let r=e;return r?.error?.retryable===true||r?.retryable===true}t(an,"extractRetryable");function sn(e){return e instanceof Error?e.message:typeof e=="string"?e:"network request failed"}t(sn,"describeCause");function Hs(e){if(e.length===0)return ln({granted:[],asGrant:{allow:[],deny:[]}});let r=null,n=new Set;for(let i of e){let a=new Set(i.allow);r=r===null?a:co(r,a);for(let s of i.deny)n.add(s);}let o=[...r??new Set].filter(i=>!n.has(i)).sort();return ln({granted:o,asGrant:{allow:o,deny:[]}})}t(Hs,"resolveEntitlements");function co(e,r){let n=new Set;for(let o of e)r.has(o)&&n.add(o);return n}t(co,"intersect");function ln(e){return Object.freeze({granted:Object.freeze([...e.granted]),asGrant:Object.freeze({allow:Object.freeze([...e.asGrant.allow]),deny:Object.freeze([...e.asGrant.deny])})})}t(ln,"freezeResolved");var Ge=Object.freeze({chat:Object.freeze(["chat.message.create"]),records:Object.freeze(["records.upload.create","records.record.read"]),recordsClinic:Object.freeze(["records.clinic.create"]),video:Object.freeze(["video.gait.execute"]),photo:Object.freeze(["photo.checkup.execute"]),animations:Object.freeze(["animations.state.read"]),televet:Object.freeze(["televet.visit.create"])});function fo(e){return Ge[e]}t(fo,"requires");function Ks(e,r){let n=Object.freeze({reason:r,level:e,recoverable:false}),o=[],i=new Set;for(let a of Object.keys(Ge))for(let s of Ge[a])i.has(s)||(i.add(s),o.push(Object.freeze({resource:s,granted:false,disabled:n})));return Object.freeze(o)}t(Ks,"deniedDecisionsFor");function $s(e,r,n){let o=fo(e),i=new Map;for(let l of r)i.set(l.resource,l);if(n?.isPending===true&&o.some(l=>!i.has(l)))return We({name:e,enabled:false,isPending:true,limits:{}});let a=po(o,i);return o.filter(l=>i.get(l)?.granted!==true).length===0?We({name:e,enabled:true,isPending:false,limits:a}):We({name:e,enabled:false,isPending:false,limits:a,disabled:yo(o,i)})}t($s,"decideCapability");function po(e,r){let n={};for(let o of e){let i=r.get(o)?.limits;if(i)for(let[a,s]of Object.entries(i)){let l=n[a];n[a]=l===void 0?s:Math.min(l,s);}}return n}t(po,"mergeLimits");function yo(e,r){for(let n of e){let o=r.get(n)?.disabled;if(o)return Object.freeze({reason:o.reason,level:o.level,recoverable:o.recoverable})}return Object.freeze({reason:Me("accessDenied"),level:"user_entitlement",recoverable:false})}t(yo,"disabledFor");function We(e){let r={name:e.name,enabled:e.enabled,isPending:e.isPending,limits:Object.freeze({...e.limits})};return e.disabled!==void 0&&(r.disabled=e.disabled),Object.freeze(r)}t(We,"freezeDecision");var mo=3e4,go=De*2,bo="idempotency-key",ho=new Set(["POST","PUT","PATCH","DELETE"]),Eo=Object.freeze({onEvent(){}}),vo=Object.freeze({setTimeout:t((e,r)=>setTimeout(e,r),"setTimeout"),clearTimeout:t(e=>clearTimeout(e),"clearTimeout"),now:t(()=>Date.now(),"now")});function _o(e){let r=e.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return r.length===0?null:`efs_${r}`.slice(0,128)}t(_o,"seededIdempotencyKey");function M(e){let r=e.observer??Eo,n=e.timers??vo,o=e.rng??Math.random,i=e.sleep??((p,m)=>Mo(p,n,m)),a=e.maxAttempts??Ar,s=e.unaryTimeoutMs??mo,l=e.newIdempotencyKey??Co(),u=t(p=>{try{r.onEvent(p);}catch{}},"emit");async function d(p,m,b){let S=b?.maxAttempts,ce=Math.max(1,S??a),fe=b?.idempotent??ho.has(m.method),pe=b?.idempotencyKey===void 0?null:_o(b.idempotencyKey),V=fe?pe??l():null,ye=Ro(m,V),Oe=0;for(;;){let ee=t(Ie=>Object.freeze({call:p,method:m.method,path:m.path,attempt:Oe,...V?{idempotencyKey:V}:{},...Ie}),"stamp");u(ee({phase:"attempt"}));let Cr=Po(s,n),Tr=Do(Cr.signal,m.signal),re;try{re=await jr({...ye,signal:Tr.signal},e.auth);}catch(Ie){re=y(ve(Ie));}finally{Tr.dispose(),Cr.cancel();}if(re.ok)return u(ee({phase:"settled",ok:true,reason:"ok"})),re;let P=re.error,me=ko(P,Oe,{maxAttempts:ce,rng:o,now:n.now(),aborted:m.signal?.aborted===true,...S!==void 0?{perCallMaxAttempts:S}:{},...e.errorPolicy!==void 0?{policy:e.errorPolicy}:{}}),Ae={ok:false,code:P.code,reason:me.reason,...P.httpStatus!==void 0?{httpStatus:P.httpStatus}:{},...P.requestId!==void 0?{requestId:P.requestId}:{}};if(!me.retry)return u(ee({phase:"settled",...Ae})),y(P);if(u(ee({phase:"retry",...Ae,delayMs:me.delayMs})),await i(me.delayMs,m.signal),m.signal?.aborted===true)return u(ee({phase:"settled",...Ae,reason:"aborted"})),y(P);Oe+=1;}}t(d,"send");async function f(p){return te(p,await Io(e.auth))}t(f,"authorize");async function*c(p,m,b){u(Object.freeze({call:p,phase:"stream.open",method:m.method,path:m.path,attempt:0}));try{yield*e.auth.transport.stream(m,b);}catch{yield D({code:"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:null});}}return t(c,"stream"),Object.freeze({send:d,authorize:f,stream:c})}t(M,"createRequestFunnel");function Ro(e,r){let n={};for(let[o,i]of Object.entries(e.headers??{}))o.toLowerCase()!==bo&&(n[o]=i);return r!==null&&(n["Idempotency-Key"]=r),{...e,headers:n}}t(Ro,"assembleHeaders");function Co(){let e=0;return ()=>`efk_${Date.now().toString(36)}_${(e++).toString(36)}_${Math.random().toString(36).slice(2,12)}`}t(Co,"defaultIdempotencyKeyFactory");var To=10;function ko(e,r,n){if(n.aborted)return {retry:false,reason:"aborted"};let o=So(e);if(o==="quota")return {retry:false,reason:"daily-quota-exhausted"};if(o!=="burst"&&!B(e.code))return {retry:false,reason:"terminal-code"};let i=o==="burst"?"burst-throttle":"retryable-code";if(t(()=>{if(n.policy===void 0)return false;try{return !n.policy.shouldRetry(e.code,r)}catch{return false}},"policyVetoedRetry")())return {retry:false,reason:"terminal-code"};let s=t(()=>{if(n.policy===void 0)return null;let d;try{d=n.policy.maxAttempts(e.code);}catch{return null}return typeof d!="number"||!Number.isFinite(d)?null:Math.max(1,Math.min(To,Math.floor(d)))},"policyCeiling"),l=n.perCallMaxAttempts??s()??n.maxAttempts;if(r+1>=l)return {retry:false,reason:"attempts-exhausted"};let u=Fo(e,n.now);return u!==null?u>go?{retry:false,reason:"server-reset-beyond-budget"}:{retry:true,reason:i,delayMs:u}:{retry:true,reason:i,delayMs:Ir(r,n.rng)}}t(ko,"decideRetry");function So(e){let r=e.code==="unknown"?X(Ao(e.raw)):e.code;return r==="quotaExceeded"?"quota":r==="rateLimited"||e.httpStatus===429?"burst":null}t(So,"throttleKind");function Fo(e,r){let n=wo(e.raw);if(n!==null){let i=n-r;return i>0?i:0}let o=xo(e.raw);return o===null?null:Math.round(o*1e3)}t(Fo,"retryOverrideMs");function xo(e){for(let r of Ye(e)){let n=r.retry_after_seconds;if(typeof n=="number"&&Number.isFinite(n)&&n>=0)return n}return null}t(xo,"findRetryAfterSeconds");function wo(e){for(let r of Ye(e)){let n=r.resets_at,o=Oo(n);if(o!==null)return o}return null}t(wo,"findResetsAt");function Ye(e){if(!un(e))return [];let r=[e];for(let n of ["error","detail"]){let o=e[n];un(o)&&r.push(o);}return r}t(Ye,"candidateScopes");function Oo(e){if(typeof e=="number"&&Number.isFinite(e))return e<1e11?Math.round(e*1e3):Math.round(e);if(typeof e=="string"&&e.trim().length>0){let r=Date.parse(e);return Number.isFinite(r)?r:null}return null}t(Oo,"parseInstantMs");function Ao(e){for(let r of Ye(e)){let n=r.code;if(typeof n=="string"&&n.length>0)return n}return null}t(Ao,"rawWireCode");function un(e){return typeof e=="object"&&e!==null}t(un,"isRecord");async function Io(e){return e.mode==="anonymous"?{mode:"anonymous",publishableKey:e.publishableKey,userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{}}:{mode:"personalized",token:await e.identity.currentToken(),userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{}}}t(Io,"resolveDeviceAuth");function Po(e,r){let n=new AbortController,o=r.setTimeout(()=>n.abort(),e);return {signal:n.signal,cancel:t(()=>r.clearTimeout(o),"cancel")}}t(Po,"boundedSignal");function Do(e,r){let n=t(()=>{},"noop");if(!r)return {signal:e,dispose:n};let o=new AbortController;if(e.aborted||r.aborted)return o.abort(),{signal:o.signal,dispose:n};let i=t(()=>o.abort(),"onAbort");return e.addEventListener("abort",i,{once:true}),r.addEventListener("abort",i,{once:true}),{signal:o.signal,dispose:t(()=>{e.removeEventListener("abort",i),r.removeEventListener("abort",i);},"dispose")}}t(Do,"mergeSignals");function Mo(e,r,n){return e<=0||n?.aborted===true?Promise.resolve():new Promise(o=>{let i=r.setTimeout(()=>{n?.removeEventListener("abort",a),o();},e),a=t(()=>{r.clearTimeout(i),o();},"onAbort");n?.addEventListener("abort",a,{once:true});})}t(Mo,"delayAbortable");function T(e){let r=_(e);return r===null?null:No(r)}t(T,"parseColor");function _(e){if(typeof e=="number")return dn(e);if(typeof e!="string")return null;let r=e.trim();if(r.length===0)return null;if(r.startsWith("#"))return Ve(r.slice(1));if(r.toLowerCase().startsWith("0x"))return Ve(r.slice(2));if(r.toLowerCase().startsWith("rgb"))return Lo(r);if(/^[0-9a-fA-F]+$/.test(r)){let n=Ve(r);if(n!==null)return n}return /^\d+$/.test(r)?dn(Number.parseInt(r,10)):null}t(_,"toRgba");function Ve(e){let r=e.trim();if(!/^[0-9a-fA-F]+$/.test(r))return null;if(r.length===3)return {r:Xe(r[0]),g:Xe(r[1]),b:Xe(r[2]),a:1};if(r.length===6)return {r:U(r,0),g:U(r,2),b:U(r,4),a:1};if(r.length===8){let n=U(r,0);return {r:U(r,2),g:U(r,4),b:U(r,6),a:n/255}}return null}t(Ve,"fromHex");function Lo(e){let r=e.indexOf("("),n=e.indexOf(")");if(r<0||n<0||n<r)return null;let o=e.slice(r+1,n).split(",").map(u=>u.trim());if(o.length<3)return null;let i=Qe(Number(o[0])),a=Qe(Number(o[1])),s=Qe(Number(o[2]));if(i===null||a===null||s===null)return null;let l=1;if(o.length>=4){let u=Number(o[3]);if(!Number.isFinite(u))return null;l=Math.min(1,Math.max(0,u));}return {r:i,g:a,b:s,a:l}}t(Lo,"fromRgbFunc");function dn(e){if(!Number.isFinite(e))return null;let r=Math.trunc(e)>>>0,n=r>>>24&255;return {r:r>>>16&255,g:r>>>8&255,b:r&255,a:n===0?1:n/255}}t(dn,"argbIntToRgba");function U(e,r){return Number.parseInt(e.slice(r,r+2),16)}t(U,"byte");function Xe(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}t(Xe,"dup");function Qe(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}t(Qe,"clampByte");function No(e){if(e.a>=1)return H(e.r,e.g,e.b);let r=Math.round(e.a*1e3)/1e3;return `rgba(${e.r},${e.g},${e.b},${r})`}t(No,"normalizeRgba");function H(e,r,n){return `#${Je(e)}${Je(r)}${Je(n)}`.toUpperCase()}t(H,"rgbToHex");function Je(e){return e.toString(16).padStart(2,"0")}t(Je,"hex2");var zo="#111111",J="#FFFFFF",_e="#000000";function fn(e){let r=_(e);if(r===null)return J;let n=q(r),o=q({r:17,g:17,b:17}),i=q({r:255,g:255,b:255});return rr(n,i)>=rr(n,o)?J:zo}t(fn,"readableOn");function oe(e,r){let n=fn(e);return R(n,e)>=r?n:R(J,e)>=R(_e,e)?J:_e}t(oe,"legibleOn");function ie(e){let r=t(n=>e.reduce((o,i)=>Math.min(o,R(n,i)),Number.POSITIVE_INFINITY),"worst");return r(J)>=r(_e)?J:_e}t(ie,"poleForGrounds");function q(e){let r=Ze(e.r/255),n=Ze(e.g/255),o=Ze(e.b/255);return .2126*r+.7152*n+.0722*o}t(q,"relativeLuminance");function Ze(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}t(Ze,"linearize");function rr(e,r){let n=Math.max(e,r),o=Math.min(e,r);return (n+.05)/(o+.05)}t(rr,"luminanceContrast");function R(e,r){let n=_(e),o=_(r);if(n===null||o===null)return 1;let i=o.a>=1?o:{...o},a=n.a>=1?n:pn(n,i);return rr(q(a),q(i))}t(R,"contrastRatio");function pn(e,r){let n=e.a,o=t((i,a)=>Math.round(i*n+a*(1-n)),"mix");return {r:o(e.r,r.r),g:o(e.g,r.g),b:o(e.b,r.b),a:1}}t(pn,"composite");function K(e,r){let n=_(e),o=_(r);if(n===null||o===null)return null;let i=n.a>=1?n:pn(n,{...o});return H(i.r,i.g,i.b)}t(K,"flattenOnto");var cn=.05;function L(e,r,n,o){let i=r[0];if(i===void 0)return n;let a=t(d=>r.every(f=>R(d,f)>=o),"reads");if(_(e)===null)return n;if(a(e))return e;let s=K(e,i),l=s===null?null:_(s),u=_(n);if(l===null||u===null)return n;for(let d=1;d<1/cn;d+=1){let f=d*cn,c=t((m,b)=>Math.round(m+(b-m)*f),"mix"),p=H(c(l.r,u.r),c(l.g,u.g),c(l.b,u.b));if(a(p))return p}return n}t(L,"pushToContrast");function yn(e,r,n){let o=e/255,i=r/255,a=n/255,s=Math.max(o,i,a),l=Math.min(o,i,a),u=(s+l)/2;if(s===l)return {h:0,s:0,l:u};let d=s-l,f=d/(1-Math.abs(2*u-1)),c;return s===o?(c=(i-a)/d*60,c<0&&(c=c+360)):s===i?c=((a-o)/d+2)*60:c=((o-i)/d+4)*60,{h:c,s:f,l:u}}t(yn,"rgbToHsl");function nr(e){let{h:r,s:n,l:o}=e,i=(1-Math.abs(2*o-1))*n,a=r/60,s=i*(1-Math.abs(a%2-1)),l=o-i/2,u=Math.floor(a)%6,d=[[i,s,0],[s,i,0],[0,i,s],[0,s,i],[s,0,i],[i,0,s]],[f,c,p]=d[u];return {r:er(f+l),g:er(c+l),b:er(p+l)}}t(nr,"hslToRgb");function er(e){return Math.min(255,Math.max(0,Math.floor(e*255+.5)))}t(er,"channel");function A(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){Object.freeze(e);for(let r of Object.keys(e))A(e[r]);}return e}t(A,"deepFreeze");var Re=Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3}),gn={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},bn={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},mn={nano:8,small:9,micro:10,tiny:11,caption:12,bodyTight:13,body:14,subtitle:16,heading:18,verdict:24},Bo={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},jo={regular:"400",medium:"500",bold:"700"},Uo={eyebrow:1,monoWide:.9,headerBrand:-0.42,tight:-0.35},ir=0,$="System",N="monospace",qo=["content","heading","control","compact","badge"];function Ho(e){let r={};for(let n of qo)r[n]=e;return r}t(Ho,"authoredTierSizes");function hn(){return {family:$,mono:N,fontUrl:null,families:{regular:$,medium:$,bold:$,mono:N,monoMedium:N,monoBold:N},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:mn,tierSizes:Ho(mn),lineHeight:Bo,weight:jo,letterSpacing:Uo,scale:1,maxScale:ir,scaleCaps:Re}}t(hn,"baseType");var En={},tr=Object.freeze({standard:Object.freeze([.2,0,0,1]),emphasized:Object.freeze([.2,.8,.2,1]),exit:Object.freeze([.4,0,1,1])});function or(e){return `cubic-bezier(${e.join(", ")})`}t(or,"cssCubicBezier");var vn={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:or(tr.standard),emphasized:or(tr.emphasized),exit:or(tr.exit)},reducedMotion:false},Ko={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FDFBF8",surfaceSubtle:"#EFE9E3",background:"#FFFFFF",borderRingCream:"#D8D2C8",chatGround:"#FFFFFF",composerFill:"#FDFBF8",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#111111",secondary:"#0E462E",muted:"#6E6660",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#B91C1C",errorRed:"#FF1B00",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(185,28,28,0.12)",badgeBgNeutral:"rgba(110,102,96,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",skeleton:"#EFE9E3",scanButtonPink:"#FFC3BC",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)"},ae=A({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false},color:Ko,space:gn,radius:bn,type:hn(),motion:vn,slots:En}),$o={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A938C",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",skeleton:"#23272C",scanButtonPink:"#FFC3BC",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)"},Ce=A({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false},color:$o,space:gn,radius:bn,type:hn(),motion:vn,slots:En});var Wo="#23272C",_n=4.5,Go=.6,ar=.9,Yo=.02,Vo="#FFFFFF",Xo="#111111";function Qo(e){return R(e,Wo)>=_n&&Math.max(R(e,Vo),R(e,Xo))>=_n}t(Qo,"readsOnDark");function Tn(e){let r=_(e);if(r===null)return null;let{h:n,s:o,l:i}=yn(r.r,r.g,r.b),a=Math.min(Math.max(i,Go),ar);for(let l=0;;l+=1){let u=a+l*Yo;if(u>ar)break;let d=nr({h:n,s:o,l:u}),f=H(d.r,d.g,d.b);if(Qo(f))return f}let s=nr({h:n,s:o,l:ar});return H(s.r,s.g,s.b)}t(Tn,"deriveDarkVariant");var Jo=7,Rn=.05,Zo="#000000",ei="#FFFFFF";function ri(e,r,n,o){let i=K(e,r);if(i===null)return n;if(R(i,r)>=o)return i;let a=_(i),s=_(n);if(a===null||s===null)return n;for(let l=1;l<1/Rn;l+=1){let u=l*Rn,d=t((c,p)=>Math.round(c+(p-c)*u),"mix"),f=H(d(a.r,s.r),d(a.g,s.g),d(a.b,s.b));if(R(f,r)>=o)return f}return n}t(ri,"pushContrast");function ni(e,r){let n=[e.surface,e.surfaceCream,e.surfaceSubtle,e.background,e.chatGround,e.composerFill],o=n[0],i=Cn(o);for(let a of n){let s=Cn(a);(r?s>i:s<i)&&(o=a,i=s);}return o}t(ni,"hardestGround");function Cn(e){let r=_(e);return r===null?0:q(r)}t(Cn,"luminanceOf");function z(e,r){return K(e,r)??T(e)??r}t(z,"solid");function kn(e){let r=e.color,n=e.brightness==="dark",o=n?ei:Zo,i=ni(r,n),a=t(l=>ri(l,i,o,Jo),"text"),s={...r,brandSoft:z(r.brandSoft,r.surface),brandSofter:z(r.brandSofter,r.surface),brandBorder:a(r.brandBorder),borderHairlineGreen:a(r.borderHairlineGreen),brandBorderStrong:a(r.brandBorderStrong),brandInk:a(r.brandInk),linkInk:a(r.linkInk),borderRingCream:a(r.borderRingCream),composerBorder:a(r.composerBorder),text:{primary:a(r.text.primary),secondary:a(r.text.secondary),muted:a(r.text.muted),placeholder:a(r.text.placeholder),onBrand:r.text.onBrand,metaCool:a(r.text.metaCool),timestamp:a(r.text.timestamp)},badgeBgPositive:z(r.badgeBgPositive,r.surface),badgeBgCaution:z(r.badgeBgCaution,r.surface),badgeBgCritical:z(r.badgeBgCritical,r.surface),badgeBgNeutral:z(r.badgeBgNeutral,r.surface),checkupCardLowRiskBg:z(r.checkupCardLowRiskBg,r.surface),checkupCardConcernBg:z(r.checkupCardConcernBg,r.surface)};return A({...e,highContrast:true,color:s})}t(kn,"deriveHighContrast");var Z=Object.freeze(["composerInput","sendButton","userBubble","assistantBubble","recordCard","vetVisitButton","primaryButton","link"]),dl=Object.freeze(["backgroundColor","borderColor","borderRadius","textColor"]),F=4.5,ti=Object.freeze({});function oi(e){return Z.includes(e)}t(oi,"isSlotName");function ii(e){let r=typeof e=="number"?e:typeof e=="string"?Number(e.trim()):Number.NaN;return Number.isFinite(r)?Math.max(0,r):null}t(ii,"parseRadius");function Sn(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let r={},n=false;for(let[o,i]of Object.entries(e)){if(!oi(o)||i===null||typeof i!="object")continue;let a=ai(i);a!==null&&(r[o]=a,n=true);}return n?Object.freeze(r):null}t(Sn,"parseThemeSlots");function Te(e,r,n){return e[r]!==void 0?e[r]:e[n]}t(Te,"pick");function ai(e){let r={},n=T(Te(e,"background_color","backgroundColor"));n!==null&&(r.backgroundColor=n);let o=T(Te(e,"border_color","borderColor"));o!==null&&(r.borderColor=o);let i=ii(Te(e,"border_radius","borderRadius"));i!==null&&(r.borderRadius=i);let a=T(Te(e,"text_color","textColor"));return a!==null&&(r.textColor=a),Object.keys(r).length===0?null:Object.freeze(r)}t(ai,"parseSlot");function Fn(e,r){return r===null||Object.keys(r).length===0?e??ti:e===null||Object.keys(e).length===0?r:Object.freeze({...e,...r})}t(Fn,"mergeThemeSlots");var sr=3;function si(e,r){return e===void 0?r:r.length===0?[e]:r.map(n=>K(e,n)??n)}t(si,"seatsOf");function li(e,r){let n=ie(e);return e.every(o=>R(n,o)>=r)}t(li,"someInkReads");function ui(e,r){let n=r[0];return n===void 0?null:K(e,n)}t(ui,"collapseUnsatisfiableFill");function di(e){let r=oe(e[0],F);return e.every(n=>R(r,n)>=F)?r:ie(e)}t(di,"inkFor");function xn(e,r){let n=false,o={};for(let i of Z){let a=e[i];if(a===void 0)continue;let s=a.backgroundColor,l=r?.[i]??[],u=si(s,l),d={...a},f=false;if(s!==void 0&&u.length>1&&!li(u,F)){let c=ui(s,l);c!==null&&(d.backgroundColor=c,u=[c],f=true);}if(u.length>0){let c=a.textColor;if(s!==void 0)(c===void 0||u.some(p=>R(c,p)<F))&&(d.textColor=di(u),f=true);else if(c!==void 0){let p=L(c,u,ie(u),F);p!==c&&(d.textColor=p,f=true);}if(a.borderColor!==void 0){let p=L(a.borderColor,u,ie(u),sr);p!==a.borderColor&&(d.borderColor=p,f=true);}}o[i]=f?Object.freeze(d):a,n=n||f;}return n?Object.freeze(o):e}t(xn,"guardSlotContrast");var An=Object.freeze(["display_name","logo_url","logo_url_dark","primary_color","accent_color","primary_color_dark","accent_color_dark","brightness","color_scheme","font_family","font_url","fonts","font_urls","chat_placeholder","surface_style","radius_scale","accessibility_max_font_scale","slots"]),se="slots.",In=Object.freeze([1,2]);function ke(e){return Object.keys(e).every(r=>r==="schemaVersion"||(e[r]??null)===null)}t(ke,"isEmptyBranding");function Pn(e){let r=e?.schemaVersion??null;return r===null||In.includes(r)}t(Pn,"isKnownBrandingSchema");function Dn(e){return new Set(["hide_powered_by",...e?.lockedFields??[]])}t(Dn,"lockedFieldsOf");function ci(e){return e==="hide_powered_by"||An.includes(e)?true:e.startsWith(se)&&Z.includes(e.slice(se.length))}t(ci,"isThemeLockName");function G(e){if(e===null||typeof e!="object")return null;let r=e,n={displayName:W(g(r,"display_name","displayName")),logoUrl:W(g(r,"logo_url","logoUrl")),primaryColor:T(g(r,"primary_color","primaryColor")),accentColor:T(g(r,"accent_color","accentColor")),brightness:mi(g(r,"brightness","color_scheme","colorScheme")),fontFamily:W(g(r,"font_family","fontFamily")),fontUrl:W(g(r,"font_url","fontUrl")),fonts:wn(g(r,"fonts")),fontUrls:wn(g(r,"font_urls","fontUrls")),placeholder:W(g(r,"chat_placeholder","placeholder","chatPlaceholder")),hidePoweredBy:fi(g(r,"hide_powered_by","hidePoweredBy")),primaryColorDark:T(g(r,"primary_color_dark","primaryColorDark")),accentColorDark:T(g(r,"accent_color_dark","accentColorDark")),surfaceStyle:On(g(r,"surface_style","surfaceStyle"),pi),radiusScale:On(g(r,"radius_scale","radiusScale"),yi),logoUrlDark:W(g(r,"logo_url_dark","logoUrlDark")),slots:Sn(g(r,"slots")),accessibilityMaxFontScale:bi(g(r,"accessibility_max_font_scale","accessibilityMaxFontScale")),lockedFields:Ei(g(r,"locked_fields","lockedFields")),schemaVersion:hi(g(r,"schema_version","schemaVersion"))};return ke(n)?null:Object.freeze(n)}t(G,"parseClientBranding");function fi(e){if(typeof e=="boolean")return e;if(typeof e=="string"){let r=e.trim().toLowerCase();if(r==="true")return true;if(r==="false")return false}return null}t(fi,"parseBool");function g(e,...r){for(let n of r)if(Object.prototype.hasOwnProperty.call(e,n)){let o=e[n];if(o!==void 0)return o}}t(g,"pick");function W(e){if(typeof e!="string")return null;let r=e.trim();return r.length===0?null:r}t(W,"parseNonEmptyString");var le=["regular","medium","bold","mono","monoMedium","monoBold"];function wn(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let r=e,n={};for(let o of le){let i=W(g(r,o));i!==null&&(n[o]=i);}return Object.keys(n).length===0?null:Object.freeze(n)}t(wn,"parseFaceMap");var pi=["white","cream","subtle"],yi=["sharp","default","round"];function On(e,r){if(typeof e!="string")return null;let n=e.trim().toLowerCase();return r.includes(n)?n:null}t(On,"parseEnum");function mi(e){if(typeof e!="string")return null;let r=e.trim().toLowerCase();return r==="light"||r==="dark"||r==="auto"?r:null}t(mi,"parseBrightness");function Mn(e){let r=typeof e=="number"?e:typeof e=="string"?Number(e.trim()):Number.NaN;return Number.isFinite(r)&&(typeof e!="string"||e.trim().length>0)?r:null}t(Mn,"parseNumber");var gi=1,Ln=3.1;function bi(e){let r=Mn(e);return r===null?null:r<=0?0:Math.min(Ln,Math.max(gi,r))}t(bi,"parseMaxFontScale");function hi(e){if(e==null)return null;let r=Mn(e);return r!==null&&Number.isInteger(r)&&r>=1?r:0}t(hi,"parseSchemaVersion");function lr(e){let r=e.trim();return r.startsWith(se)?r:r.replace(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase()}t(lr,"toWireName");function Ei(e){if(!Array.isArray(e))return null;let r=[];for(let n of e){if(typeof n!="string")continue;let o=lr(n);ci(o)&&!r.includes(o)&&r.push(o);}return r.length===0?null:Object.freeze(r)}t(Ei,"parseLockedFields");function ur(e){if(e===null)return null;let r=e.trim();return r.length===0?null:/^https:\/\/\S+$/i.test(r)?r:null}t(ur,"hardenHttpsUrl");function Nn(e,r){if(r===null||ke(r))return e;let n=(r.brightness==="light"||r.brightness==="dark")&&r.brightness!==e.brightness?r.brightness==="dark"?Ce:ae:e,o=n.brightness==="dark"?Ce:ae,i=n.brightness==="dark",a=i?r.primaryColorDark??zn(r.primaryColor):r.primaryColor,s=i?r.accentColorDark??zn(r.accentColor):r.accentColor,l=a??n.color.primary,u=s??n.color.accent,d=a!==null&&Ti(r,l,o,i),f=d?o.color.primary:l,c=a!==null&&!d?_(f):null,p=t(S=>Math.round(S+(255-S)*.4),"lift"),m=c!==null?{brand:f,bubbleUser:f,brandInk:f,text:{...n.color.text,secondary:f},brandSoft:`rgba(${c.r}, ${c.g}, ${c.b}, 0.10)`,brandSofter:`rgba(${c.r}, ${c.g}, ${c.b}, 0.15)`,brandBorder:`rgba(${c.r}, ${c.g}, ${c.b}, 0.20)`,borderHairlineGreen:`rgba(${c.r}, ${c.g}, ${c.b}, 0.28)`,brandBorderStrong:`rgba(${c.r}, ${c.g}, ${c.b}, 0.55)`,composerBorder:`rgba(${c.r}, ${c.g}, ${c.b}, 0.75)`,accentEdge:`rgb(${p(c.r)}, ${p(c.g)}, ${p(c.b)})`}:d?ki(o,n.color.text):{},b={brightness:n.brightness,highContrast:n.highContrast,meta:{displayName:r.displayName??n.meta.displayName,logoUrl:(i?r.logoUrlDark??r.logoUrl:r.logoUrl)??n.meta.logoUrl,placeholder:r.placeholder??n.meta.placeholder,hidePoweredBy:r.hidePoweredBy??n.meta.hidePoweredBy},color:{...n.color,...m,...Ci(r.surfaceStyle??null,o),primary:f,accent:u,onPrimary:n.color.onPrimary,onAccent:n.color.onAccent},space:n.space,radius:Fi(r.radiusScale??null,n.radius,o),type:{...n.type,...Ri(n.type,r),maxScale:r.accessibilityMaxFontScale??n.type.maxScale},motion:n.motion,slots:Fn(n.slots,r.slots??null)};return A(b)}t(Nn,"withServerBranding");var vi={regular:["regular"],medium:["medium","regular"],bold:["bold","medium","regular"],mono:["mono"],monoMedium:["monoMedium","mono"],monoBold:["monoBold","monoMedium","mono"]},_i=[["regular","medium","bold"],["mono","monoMedium","monoBold"]];function dr(e){return e==="mono"||e==="monoMedium"||e==="monoBold"}t(dr,"isMonoFace");function Ri(e,r){let n=r.fonts??{},o=r.fontUrls??{},i={...e.families},a={...e.namedFaces},s={...e.fontUrls};for(let l of le){let u=vi[l].map(c=>n[c]).find(c=>c!==void 0),d=dr(l)?null:r.fontFamily;u!==void 0?(i[l]=u,a[l]=true):d!==null&&(i[l]=d,a[l]=false);let f=o[l]??(l==="regular"?r.fontUrl:null)??null;f!==null?s[l]=f:u!==void 0&&delete s[l];}for(let l of _i)for(let u of l)a[u]&&l.some(d=>d!==u&&i[d]===i[u])&&(a[u]=false);return {family:i.regular,mono:i.mono,fontUrl:s.regular??null,families:i,namedFaces:a,fontUrls:s}}t(Ri,"mergeFaces");function zn(e){return e===null?null:Tn(e)}t(zn,"darkVariantOf");function Ci(e,r){if(e===null)return {};let n=r.color;return {chatGround:e==="white"?n.surface:e==="subtle"?n.surfaceSubtle:n.surfaceCream}}t(Ci,"surfaceOf");function Bn(e,r){return e==null?false:T(e)===T(r)}t(Bn,"sameColor");function Ti(e,r,n,o){return Bn(r,n.color.primary)?true:o&&(e.primaryColorDark??null)===null&&Bn(e.primaryColor,ae.color.primary)}t(Ti,"isCompiledPrimary");function ki(e,r){let n=e.color;return {text:{...r,secondary:n.text.secondary},brand:n.brand,bubbleUser:n.bubbleUser,brandInk:n.brandInk,brandSoft:n.brandSoft,brandSofter:n.brandSofter,brandBorder:n.brandBorder,borderHairlineGreen:n.borderHairlineGreen,brandBorderStrong:n.brandBorderStrong,composerBorder:n.composerBorder,accentEdge:n.accentEdge}}t(ki,"compiledBrandFamily");var Si={sharp:.5,default:1,round:1.5};function Fi(e,r,n){if(e===null)return r;let o=Si[e],i=n.radius,a=t(s=>Math.round(s*o),"s");return {tile:a(i.tile),xs:a(i.xs),sm:a(i.sm),md:a(i.md),lg:a(i.lg),xl:a(i.xl),pill:i.pill}}t(Fi,"radiusOf");var xi="Everfur",wi=.5;function Oi(e){let r=e?.branding??null,n=Pn(r)?r:null,o=Di(e?.clientOverride??null,Dn(n)),i=e?.colorScheme==="dark"?"dark":"light",a=o?.brightness??n?.brightness??"light",u=Nn((a==="auto"?i:a)==="dark"?Ce:ae,jn(n)),d=Nn(u,jn(o));return Wi(d,e)}t(Oi,"resolveTheme");function Rl(e,r,n){return Oi({...n,branding:G(r),clientOverride:G(e)})}t(Rl,"previewTheme");function Ai(e){return e==="placeholder"?"chat_placeholder":lr(e)}t(Ai,"wireNameOf");var Ii={brightness:["color_scheme"],fontUrl:["font_family"],fonts:["font_family"],fontUrls:["font_url","font_family"],primaryColorDark:["primary_color"],accentColorDark:["accent_color"],logoUrlDark:["logo_url"]};function Pi(e,r){return r.has(Ai(e))?true:(Ii[e]??[]).some(n=>r.has(n))}t(Pi,"isLocked");function Di(e,r){if(e===null)return null;let n=false,o={...e};for(let s of Object.keys(e))(e[s]??null)!==null&&(Pi(s,r)||s==="lockedFields")&&(o[s]=null,n=true);let i=o.slots??null;if(i!==null){let s={},l=false;for(let u of Z){let d=i[u];d!==void 0&&(r.has(`${se}${u}`)?l=true:s[u]=d);}l&&(o.slots=Object.keys(s).length===0?null:Object.freeze(s),n=true);}if(!n)return e;let a=Object.freeze(o);return ke(a)?null:a}t(Di,"withoutFields");function jn(e){return e===null||e.brightness===null?e:Object.freeze({...e,brightness:null})}t(jn,"withoutBrightness");function Mi(e,r){if(r===1)return e;let n={};for(let[o,i]of Object.entries(e))n[o]=Math.round(i*r*10)/10;return n}t(Mi,"scaledSizes");function Li(e){return e===void 0||!Number.isFinite(e)?1:Math.max(wi,e)}t(Li,"effectiveScale");var Un=["content","heading","control","compact","badge"];function Ni(e){if(!(e>0))return Re;let r={};for(let n of Un){let o=Re[n];r[n]=o===0?0:Math.min(o,e);}return r}t(Ni,"tierCaps");function zi(e,r){return r>0?Math.min(e,r):e}t(zi,"capped");function Bi(e,r,n,o){let i={};for(let a of Un)i[a]=o?Mi(e,zi(r,n[a])):e;return i}t(Bi,"sizesByTier");function ji(e){return e==="dark"?"#FFFFFF":"#000000"}t(ji,"inkPole");function Ui(e){return [e.surface,e.surfaceCream,e.surfaceSubtle,e.background,e.chatGround,e.composerFill]}t(Ui,"textGrounds");function qi(e){return [e.surface,e.surfaceCream,e.background,e.chatGround,e.composerFill]}t(qi,"controlGrounds");function qn(e){return [e.chatGround,e.surface,e.surfaceCream]}t(qn,"linkGrounds");function Hi(e){return {composerInput:[e.composerFill],sendButton:[e.composerFill],userBubble:[e.bubbleUser],assistantBubble:[e.chatGround,e.surfaceCream],recordCard:[e.surface],vetVisitButton:[e.primary],primaryButton:[e.brand],link:qn(e)}}t(Hi,"slotGrounds");function Ki(e,r){try{let n=e(r);return n===!0||n===!1?n:null}catch{return null}}t(Ki,"registration");function $i(e,r){let n=r?.isFontRegistered,o=r?.platformMonoFamily?.trim()||null;if(n===void 0&&o===null)return {family:e.family,mono:e.mono,families:e.families,namedFaces:e.namedFaces};let i={...e.families},a={...e.namedFaces};for(let s of le)!(i[s]===$||i[s]===N)&&n!==void 0&&Ki(n,i[s])===false&&(i[s]=dr(s)?N:$,a[s]=false),o!==null&&dr(s)&&i[s]===N&&(i[s]=o);return {family:i.regular,mono:i.mono,families:i,namedFaces:a}}t($i,"platformFaces");function Wi(e,r){let n=e.color.primary,o=e.color.accent,i=e.meta.displayName.trim().length===0?xi:e.meta.displayName,a=ur(e.meta.logoUrl),s={};for(let V of le){let ye=e.type.fontUrls[V];ye!==void 0&&(s[V]=ur(ye));}let l=s.regular??null,d=r?.reducedMotion===true?{duration:{instant:0,fast:0,normal:0,slow:0},spring:{gentle:{damping:100,stiffness:1e3}},easing:e.motion.easing,reducedMotion:true}:e.motion,f=Number.isFinite(e.type.maxScale)?e.type.maxScale:ir,c=Li(r?.textScale),p=Ni(f),m=Bi(e.type.size,c,p,r?.scaleTypeSizes===true),b=e.color,S=ji(e.brightness),ce=Ui(b),fe={...b,primary:n,accent:o,onPrimary:oe(n,F),onAccent:oe(o,F),brandInk:L(b.brandInk,ce,S,F),linkInk:L(e.slots.link?.textColor??o,qn(b),S,F),text:{...b.text,secondary:L(b.text.secondary,ce,S,F)},brandBorderStrong:L(b.brandBorderStrong,qi(b),S,sr)},pe={brightness:e.brightness,highContrast:false,meta:{displayName:i,logoUrl:a,placeholder:e.meta.placeholder,hidePoweredBy:e.meta.hidePoweredBy},color:fe,space:e.space,radius:e.radius,type:{...e.type,...$i(e.type,r),fontUrl:l,fontUrls:s,size:m.content,tierSizes:m,scale:c,maxScale:f,scaleCaps:p},motion:d,slots:xn(e.slots,Hi(fe))};return r?.highContrast===true?kn(A(pe)):A(pe)}t(Wi,"finalize");var Hn="/widget/v1/entitlements",Gi=304,Yi=Object.freeze({kind:"notModified"});async function xl(e,r={},n=M({auth:e})){let o=await n.send("entitlements.fetch",Xi(r));return o.ok?Qi(o.value):o.error.httpStatus===Gi?Yi:{kind:"failed",error:o.error}}t(xl,"fetchEntitlements");var Vi=64;function Xi(e){let r={};return cr(e.cachedRevision)&&(r["if-none-match"]=`"${e.cachedRevision}"`),e.region&&e.region.length<=Vi?{method:"GET",path:Hn,headers:r,query:{region:e.region}}:{method:"GET",path:Hn,headers:r}}t(Xi,"buildRequest");function Qi(e){if(e===null||typeof e!="object"||!cr(e.revision))return Kn();let r=typeof e.region=="string"?e.region:"",n=cr(e.ttl_seconds)?e.ttl_seconds:0;return Object.freeze({kind:"updated",revision:e.revision,region:r,ttlSeconds:n,decisions:Zi(e.capabilities),branding:Ji(e),livemode:e.livemode!==false})}t(Qi,"parseUpdated");function Ji(e){let r=G(e.branding);if(r!==null)return r;let n=e.render_hints;if(n!==null&&typeof n=="object"){let o=G(n.branding);return o!==null?o:G(n)}return null}t(Ji,"parseBranding");function Zi(e){if(e===null||typeof e!="object")return Object.freeze([]);let r=[];for(let[n,o]of Object.entries(e))ea(o)&&r.push(Object.freeze({resource:n,granted:true}));return Object.freeze(r)}t(Zi,"mapCapabilities");function ea(e){return typeof e=="object"&&e!==null&&e.enabled===true}t(ea,"isEnabled");function Kn(){return {kind:"failed",error:C("internalError",{retryable:true,wireMessage:"malformed entitlements response"})}}t(Kn,"malformed");function cr(e){return typeof e=="number"&&Number.isFinite(e)}t(cr,"isFiniteNumber");var ra=Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function na(e,r){let n=e.type,o=n.families[r];return r==="mono"||n.namedFaces[r]?{fontFamily:o}:{fontFamily:o,fontWeight:n.weight[ra[r]]}}t(na,"face");var $n=Object.freeze({dog:"dog",canine:"dog",k9:"dog",puppy:"dog",cat:"cat",feline:"cat",kitten:"cat"});function Wn(e){if(typeof e!="string")return null;let r=e.trim().toLowerCase();return Object.prototype.hasOwnProperty.call($n,r)?$n[r]:null}t(Wn,"canonicalPetSpecies");var Gn=50,ta=128,fr=120,Yn=120,oa=2e3,Vn=120,ia=80,Jn=new Set(["male","female","unknown"]),Zn=new Set(["day","month","year"]),et=new Set(["low","medium","high","athletic"]),rt=new Set(["indoor","outdoor","both"]),nt=new Set(["mild","moderate","severe"]),aa=/^(\d{4})-(\d{2})-(\d{2})$/,tt=[["sex","sex"],["spayedNeutered","spayed_neutered"],["birthDate","birth_date"],["birthDatePrecision","birth_date_precision"],["activityLevel","activity_level"],["indoorOutdoor","indoor_outdoor"],["foodBrand","food_brand"],["foodType","food_type"],["microchipId","microchip_id"]],ot=[["allergies","allergies"],["medications","medications"],["supplements","supplements"],["conditions","conditions"]];Object.freeze([...tt,...ot].map(([e])=>e));function sa(e){let r=aa.exec(e);if(r===null)return false;let[n,o,i]=[Number(r[1]),Number(r[2]),Number(r[3])],a=new Date(Date.UTC(n,o-1,i));return a.getUTCFullYear()===n&&a.getUTCMonth()===o-1&&a.getUTCDate()===i}t(sa,"isRealDate");var de=t(e=>(r,n)=>typeof n=="string"&&e.has(n)?null:`${r} must be one of ${[...e].join(", ")}`,"oneOf"),la=t((e,r)=>typeof r=="boolean"?null:`${e} must be true or false`,"boolean"),Fe=t((e,r)=>typeof r=="string"&&sa(r)?null:`${e} must be a real date written YYYY-MM-DD`,"date"),x=t((e,r={})=>(n,o)=>{if(typeof o!="string")return `${n} must be a string`;if(Q(o))return `${n} contains an unpaired surrogate and cannot be encoded`;let i=r.trimmed?o.trim():o;if(r.required&&i.length===0)return `${n} is required and must not be blank`;let a=j(i);return a<=e?null:`${n} is ${a} characters; the server accepts at most ${e}`},"text"),ua={sex:de(Jn),spayedNeutered:la,birthDate:Fe,birthDatePrecision:de(Zn),activityLevel:de(et),indoorOutdoor:de(rt),foodBrand:x(Vn),foodType:x(Vn),microchipId:x(ia)},pr=["ref","ref",false,x(ta,{required:true,trimmed:true})],yr=["notes","notes",false,x(oa,{trimmed:true})],Xn=[pr,["name","name",true,x(fr,{required:true,trimmed:true})],["dose","dose",false,x(Yn,{trimmed:true})],["frequency","frequency",false,x(Yn,{trimmed:true})],["startDate","start_date",false,Fe],["endDate","end_date",false,Fe],yr],da={allergies:[pr,["allergen","allergen",true,x(fr,{required:true,trimmed:true})],["severity","severity",false,de(nt)],yr],medications:Xn,supplements:Xn,conditions:[pr,["conditionName","condition_name",true,x(fr,{required:true,trimmed:true})],["diagnosedDate","diagnosed_date",false,Fe],yr]};function ca(e,r,n){let o=`${e}[${r}]`;if(typeof n!="object"||n===null||Array.isArray(n))return {error:`${o} must be an object`};let i=n,a={};for(let[u,d,f,c]of da[e]){let p=i[u];if(p==null){if(f)return {error:`${o}.${u} is required`};p===null&&(a[d]=null);continue}let m=c(`${o}.${u}`,p);if(m!==null)return {error:m};a[d]=p;}let s=a.start_date,l=a.end_date;return typeof s=="string"&&typeof l=="string"&&l<s?{error:`${o}.endDate must not be before startDate`}:{item:a}}t(ca,"itemToWire");function fa(e,r){if(!Array.isArray(r))return {error:`${e} must be an array (send [] to clear it)`};if(r.length>Gn)return {error:`${e} has ${r.length} items; the server accepts at most ${Gn}`};let n=[],o=new Set;for(let i=0;i<r.length;i+=1){let a=ca(e,i,r[i]);if("error"in a)return a;let s=a.item.ref;if(typeof s=="string"){let l=s.trim();if(o.has(l))return {error:`${e}: ref ${JSON.stringify(l)} is used twice; a ref names one item`};o.add(l);}n.push(a.item);}return {items:n}}t(fa,"listToWire");function it(e,r){let n=e,o={};for(let[s,l]of tt){let u=n[s];if(u!==void 0){if(u!==null){let d=ua[s](s,u);if(d!==null)return {error:d}}o[l]=u;}}let i=n.birthDate!==void 0,a=n.birthDatePrecision!==void 0;if(i!==a||i&&n.birthDate===null!=(n.birthDatePrecision===null))return {error:"birthDate and birthDatePrecision must be sent together, both set or both null"};for(let[s,l]of ot){let u=n[s];if(u===void 0)continue;let d=fa(s,u);if("error"in d)return d;o[l]=d.items;}return Object.keys(o).length>0&&r!==void 0&&Wn(r)===null?{error:"health fields need a pet Everfur reads as a dog or a cat (dog, canine, k9, puppy, cat, feline, kitten)"}:{body:o}}t(it,"petHealthToWire");var h=t(e=>typeof e=="string"?e:null,"str"),ue=t((e,r)=>typeof r=="string"&&e.has(r)?r:null,"pick"),pa=t(e=>typeof e=="boolean"?e:null,"bool");function Se(e,r){return Array.isArray(e)?Object.freeze(e.flatMap(n=>{if(typeof n!="object"||n===null||Array.isArray(n))return [];let o=r(n);return o===null?[]:[o]})):Object.freeze([])}t(Se,"itemsFromWire");function Qn(e){let r=h(e.name);return r===null||r.length===0?null:Object.freeze({ref:h(e.ref),name:r,dose:h(e.dose),frequency:h(e.frequency),startDate:h(e.start_date),endDate:h(e.end_date),notes:h(e.notes)})}t(Qn,"medicationFromWire");function at(e){let r=e.profile_version;return Object.freeze({profileVersion:typeof r=="number"&&Number.isInteger(r)&&r>=0?r:0,sex:ue(Jn,e.sex),spayedNeutered:pa(e.spayed_neutered),birthDate:h(e.birth_date),birthDatePrecision:ue(Zn,e.birth_date_precision),activityLevel:ue(et,e.activity_level),indoorOutdoor:ue(rt,e.indoor_outdoor),foodBrand:h(e.food_brand),foodType:h(e.food_type),microchipId:h(e.microchip_id),allergies:Se(e.allergies,n=>{let o=h(n.allergen);return o===null||o.length===0?null:Object.freeze({ref:h(n.ref),allergen:o,severity:ue(nt,n.severity),notes:h(n.notes)})}),medications:Se(e.medications,Qn),supplements:Se(e.supplements,Qn),conditions:Se(e.conditions,n=>{let o=h(n.condition_name);return o===null||o.length===0?null:Object.freeze({ref:h(n.ref),conditionName:o,diagnosedDate:h(n.diagnosed_date),notes:h(n.notes)})})})}t(at,"petHealthFromWire");var mr=100,gr=50,br=100,hr=50,Er=500,ya=128,ma=6e4;function O(e){return C("validationFailed",{retryable:false,wireMessage:e})}t(O,"invalid");function Y(e,r,n){if(typeof r!="string")return O(`${e} must be a string`);let o=j(r);return o<=n?null:O(`${e} is ${o} characters; the server accepts at most ${n}`)}t(Y,"checkString");function xe(e,r,n){return typeof r=="number"&&Number.isFinite(r)&&r>=0&&r<=n?null:O(`${e} must be a finite number between 0 and ${n}`)}t(xe,"outOfRange");function st(e,r){if(typeof e!="string")return O("pet_ref must be a string");if(e.trim().length===0)return O("pet_ref must not be blank");if(Q(e))return O("pet_ref contains an unpaired surrogate and cannot be encoded");if(r!=null&&typeof r!="object")return O("profile must be an object");let n=[Y("pet_ref",e,ya)];return r?.name!==void 0&&n.push(Y("name",r.name,mr)),r?.species!==void 0&&n.push(Y("species",r.species,gr)),r?.breed!==void 0&&n.push(Y("breed",r.breed,br)),r?.ageYears!==void 0&&n.push(xe("age_years",r.ageYears,hr)),r?.weightKg!==void 0&&n.push(xe("weight_kg",r.weightKg,Er)),n.find(o=>o!==null)??null}t(st,"validate");function ut(e,r){let n=it(e,r);return "error"in n?{error:O(n.error)}:n}t(ut,"healthToWire");function ga(e){if(typeof e!="object"||e===null)return {error:O("patch must be an object")};let r=e,n=[["name","name",a=>Y("name",a,mr)],["species","species",a=>Y("species",a,gr)],["breed","breed",a=>Y("breed",a,br)],["ageYears","age_years",a=>xe("age_years",a,hr)],["weightKg","weight_kg",a=>xe("weight_kg",a,Er)]],o={};for(let[a,s,l]of n){let u=r[a];if(u!==void 0){if(u!==null){let d=l(u);if(d!==null)return {error:d}}o[s]=u;}}let i=ut(r,r.species);return "error"in i?i:(Object.assign(o,i.body),Object.keys(o).length===0?{error:O("patch must change at least one field")}:{body:o})}t(ga,"patchToWire");function ba(e){if(e==null)return {body:{}};let r=ut(e,e.species);return "error"in r?r:{body:{...e.name!==void 0?{name:e.name}:{},...e.species!==void 0?{species:e.species}:{},...e.breed!==void 0?{breed:e.breed}:{},...e.ageYears!==void 0?{age_years:e.ageYears}:{},...e.weightKg!==void 0?{weight_kg:e.weightKg}:{},...r.body}}}t(ba,"toWire");var w=t(e=>typeof e=="string"?e:null,"str"),we=t(e=>typeof e=="number"&&Number.isFinite(e)?e:null,"num");function lt(e,r){let n=typeof e=="object"&&e!==null?e:{};return Object.freeze({petRef:w(n.pet_ref)??r,name:w(n.name),species:w(n.species),breed:w(n.breed),ageYears:we(n.age_years),weightKg:we(n.weight_kg)})}t(lt,"fromWire");function vr(e){if(typeof e!="object"||e===null)return null;let r=e,n=w(r.pet_ref);return n===null||n.length===0?null:Object.freeze({petId:w(r.pet_id),petRef:n,name:w(r.name),species:w(r.species),breed:w(r.breed),ageYears:we(r.age_years),weightKg:we(r.weight_kg),updatedAt:w(r.updated_at)})}t(vr,"widgetPetFromWire");function ha(e){let r=vr(e);return r===null?null:Object.freeze({...r,...at(e)})}t(ha,"widgetPetProfileFromWire");function Ea(e){let r=Array.isArray(e)?e:typeof e=="object"&&e!==null&&Array.isArray(e.pets)?e.pets:[];return Object.freeze(r.flatMap(n=>{let o=vr(n);return o===null?[]:[o]}))}t(Ea,"petListFromWire");function va(e){return _a(M({auth:e}),M({auth:e,unaryTimeoutMs:ma}))}t(va,"createPetsRepository");function _a(e,r=e){let n=t((i,a)=>a?{...i,signal:a}:i,"withSignal"),o=t(i=>st(i,void 0)??`/widget/v1/pets/${encodeURIComponent(i)}`,"petPath");return {async list(i){let a=await e.send("pets.list",n({method:"GET",path:"/widget/v1/pets"},i?.signal));return a.ok?k(Ea(a.value)):y(a.error)},async registerPet(i,a,s){let l=st(i,a);if(l!==null)return y(l);let u=ba(a);if("error"in u)return y(u.error);let f={method:"POST",path:`/widget/v1/pets/${encodeURIComponent(i)}`,body:u.body},c=await e.send("pets.registerPet",s?.signal?{...f,signal:s.signal}:f);return c.ok?k(lt(c.value,i)):y(c.error)},async updatePet(i,a,s){let l=o(i);if(typeof l!="string")return y(l);let u=ga(a);if("error"in u)return y(u.error);let d=await e.send("pets.updatePet",n({method:"PATCH",path:l,body:u.body},s?.signal));return d.ok?k(lt(d.value,i)):y(d.error)},async getPetProfile(i,a){let s=o(i);if(typeof s!="string")return y(s);let l=await e.send("pets.getPetProfile",n({method:"GET",path:`${s}/profile`},a?.signal));if(!l.ok)return y(l.error);let u=ha(l.value);return u===null?y(C("internalError",{retryable:false,httpStatus:502,wireMessage:"the pet profile response carried no pet_ref"})):k(u)},async deletePet(i,a){let s=o(i);if(typeof s!="string")return y(s);let l=await e.send("pets.deletePet",n({method:"DELETE",path:s},a?.signal));return l.ok?k(void 0):y(l.error)},async eraseUserData(i){let a=await r.send("pets.eraseUserData",n({method:"DELETE",path:"/widget/v1/me"},i?.signal),{maxAttempts:1});return a.ok?k(void 0):y(a.error)}}}t(_a,"createPetsRepositoryOver");var Rr=Object.freeze(["better","same","worse"]),Ra=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function dt(e){return y(C("validationFailed",{retryable:false,wireMessage:e}))}t(dt,"invalid");function _r(){return y(C("internalError",{retryable:false}))}t(_r,"malformed");function ct(e){return typeof e!="string"||e.trim().length===0?C("validationFailed",{retryable:false,wireMessage:"pet_ref must not be blank"}):Q(e)?C("validationFailed",{retryable:false,wireMessage:"pet_ref contains an unpaired surrogate and cannot be encoded"}):`/widget/v1/pets/${encodeURIComponent(e)}/cases`}t(ct,"petPath");var I=t(e=>typeof e=="string"?e:null,"str"),ft=t(e=>typeof e=="number"&&Number.isFinite(e)?e:null,"count");function pt(e){if(typeof e!="object"||e===null)return null;let r=e,n=I(r.case_id),o=I(r.status);if(n===null||o===null)return null;let i=I(r.last_response);return Object.freeze({caseId:n,status:o,bodyLocation:I(r.body_location),lastResponse:i!==null&&Rr.includes(i)?i:null,checkInDueAt:I(r.check_in_due_at),openedAt:I(r.opened_at),resolvedAt:I(r.resolved_at),resolutionText:I(r.resolution_text),checkinAskCount:ft(r.checkin_ask_count),checkinAnswerCount:ft(r.checkin_answer_count)})}t(pt,"caseFromWire");function Ca(e){return Ta(M({auth:e}))}t(Ca,"createCasesRepository");function Ta(e){return {async list(r,n){let o=ct(r);if(typeof o!="string")return y(o);let i=await e.send("cases.list",{method:"GET",path:o,...n?.signal?{signal:n.signal}:{}});if(!i.ok)return y(i.error);let a=typeof i.value=="object"&&i.value!==null?i.value.cases:null;if(!Array.isArray(a))return _r();let s=a.map(pt);return s.every(l=>l!==null)?k(Object.freeze(s)):_r()},async checkin(r,n,o,i){let a=ct(r);if(typeof a!="string")return y(a);if(typeof n!="string"||!Ra.test(n))return dt("case_id must be a UUID");if(!Rr.includes(o))return dt("response must be one of better, same, worse");let s=await e.send("cases.checkin",{method:"POST",path:`${a}/${n}/checkin`,body:{response:o},...i?.signal?{signal:i.signal}:{}});if(!s.ok)return y(s.error);let l=typeof s.value=="object"&&s.value!==null?s.value:{},u=pt(l.case);return u===null?_r():k(Object.freeze({case:u,ctaDeepLink:I(l.cta_deep_link)}))}}}t(Ta,"createCasesRepositoryOver");exports.AUTO_RETRYABLE_CODES=vt;exports.BACKOFF_BASE_MS=Rt;exports.BACKOFF_CAP_MS=De;exports.CHECKIN_ANSWERS=Rr;exports.CONTRACT_ERROR_ROWS=Sr;exports.DARK_VARIANT_GROUND=Wo;exports.DARK_VARIANT_LIGHTNESS_CEILING=ar;exports.DARK_VARIANT_LIGHTNESS_FLOOR=Go;exports.DARK_VARIANT_LIGHTNESS_STEP=Yo;exports.DARK_VARIANT_TARGET_RATIO=_n;exports.DEFAULT_CONTRACT_VERSION=Ft;exports.DEFAULT_MAX_FONT_SCALE=ir;exports.DOC_SITE_ORIGIN=kr;exports.EASING_CURVES=tr;exports.EMPTY_FRAME_ARRAYS=Cs;exports.ENTITLEMENTS_PATH=Hn;exports.ENV_API_BASE_URL=Dr;exports.EVERFUR_DARK=Ce;exports.EVERFUR_ERROR_CATEGORIES=Da;exports.EVERFUR_ERROR_CODES=Pa;exports.EVERFUR_LIGHT=ae;exports.EverfurConfigError=E;exports.EverfurThrownError=Le;exports.HIGH_CONTRAST_TARGET_RATIO=Jo;exports.LOCKABLE_THEME_FIELDS=An;exports.MAX_FONT_SCALE_CEILING=Ln;exports.MAX_RETRY_ATTEMPTS=Ar;exports.PET_AGE_YEARS_MAX=hr;exports.PET_BREED_MAX=br;exports.PET_NAME_MAX=mr;exports.PET_SPECIES_MAX=gr;exports.PET_WEIGHT_KG_MAX=Er;exports.RETRYABLE_CONTRACT_CODES=_t;exports.SDK_PLATFORM=St;exports.SDK_VERSION=kt;exports.SLOT_LOCK_PREFIX=se;exports.SLOT_MIN_BORDER_CONTRAST=sr;exports.SLOT_MIN_CONTRAST=F;exports.SYSTEM_FONT_FAMILY=$;exports.SYSTEM_MONO_FAMILY=N;exports.TEXT_SCALE_FLOOR=wi;exports.TEXT_SCALE_TIER_CAPS=Re;exports.THEME_SCHEMA_VERSIONS=In;exports.THEME_SLOT_KEYS=dl;exports.THEME_SLOT_NAMES=Z;exports.acceptedFrame=Ur;exports.analysisCompleteFrame=Wr;exports.analysisStartedFrame=$r;exports.assertNever=Rs;exports.authHeaders=jt;exports.authedSend=jr;exports.backoffDelayMs=Ir;exports.bufferedTextByteSource=Ns;exports.buildBaseHeaders=Lr;exports.canRecreateOnNotFound=La;exports.categoryFor=xr;exports.checkPublishableKey=xt;exports.contractDocUrl=ht;exports.contractErrorFor=ge;exports.contrastRatio=R;exports.conversationId=is;exports.createCasesRepository=Ca;exports.createHttpTransport=Bs;exports.createIdentityProvider=hs;exports.createPetsRepository=va;exports.createRequestFunnel=M;exports.cssCubicBezier=or;exports.decideCapability=$s;exports.deepFreeze=A;exports.deltaFrame=Hr;exports.deniedDecisionsFor=Ks;exports.deriveDarkVariant=Tn;exports.deriveHighContrast=kn;exports.doneFrame=Kr;exports.err=y;exports.errorFrame=D;exports.errorFromResponse=rn;exports.eventSourceByteSource=Zt;exports.eventSourceRequestId=io;exports.face=na;exports.fetchByteSource=Be;exports.fetchEntitlements=xl;exports.fromHttpStatus=wr;exports.fromWire=X;exports.getGlobalFetch=Ue;exports.guardSlotContrast=xn;exports.hardenHttpsUrl=ur;exports.heartbeatFrame=qr;exports.isAutoRetryable=B;exports.isEmptyBranding=ke;exports.isErr=Ka;exports.isKnownBrandingSchema=Pn;exports.isOk=Ha;exports.isRetryableCode=Or;exports.lockedFieldsOf=Dn;exports.makeEverfurError=C;exports.mergeThemeSlots=Fn;exports.networkError=ve;exports.newSessionId=Es;exports.ok=k;exports.parseClientBranding=G;exports.parseColor=T;exports.parseSse=Ee;exports.parseThemeSlots=Sn;exports.petRef=ts;exports.previewTheme=Rl;exports.publishedDocUrl=Fr;exports.readableOn=fn;exports.requestIdOf=je;exports.requestJson=no;exports.requestRaw=zs;exports.requires=fo;exports.resolveApiBaseUrl=Xa;exports.resolveClientConfig=Va;exports.resolveEntitlements=Hs;exports.resolveTheme=Oi;exports.shouldRetry=Ma;exports.tryResolveApiBaseUrl=Mr;exports.tryResolveClientConfig=wt;exports.unknownFrame=Gr;exports.unsafeClientId=ds;exports.unsafeConversationId=ls;exports.unsafeDocumentId=cs;exports.unsafeJobId=fs;exports.unsafePetRef=as;exports.unsafeRecordsRequestId=ps;exports.unsafeResponseId=us;exports.unsafeUserRef=ss;exports.unwrap=$a;exports.userFacingError=Me;exports.userRef=os;exports.widgetPetFromWire=vr;exports.withAuthHeaders=te;exports.withServerBranding=Nn;
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { b as EverfurErrorCode } from '../EverfurError-DmELDpXp.cjs';
|
|
2
2
|
export { A as AUTO_RETRYABLE_CODES, B as BACKOFF_BASE_MS, d as BACKOFF_CAP_MS, e as EVERFUR_ERROR_CATEGORIES, f as EVERFUR_ERROR_CODES, E as EverfurError, a as EverfurErrorCategory, M as MAX_RETRY_ATTEMPTS, g as MakeEverfurErrorOptions, R as RETRYABLE_CONTRACT_CODES, h as backoffDelayMs, j as canRecreateOnNotFound, c as categoryFor, k as fromHttpStatus, l as fromWire, m as isAutoRetryable, i as isRetryableCode, n as makeEverfurError, s as shouldRetry, u as userFacingError } from '../EverfurError-DmELDpXp.cjs';
|
|
3
3
|
export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, e as err, i as isErr, c as isOk, o as ok, u as unwrap } from '../EverfurResult-ZtH-YV1h.cjs';
|
|
4
|
-
export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, B as ByteSource, C as ClientConfigFailure, k as ClientConfigFailureReason, l as ClientConfigOutcome, m as DEFAULT_CONTRACT_VERSION, D as DeltaFrame, c as DoneFrame, n as EMPTY_FRAME_ARRAYS, o as ENV_API_BASE_URL, E as ErrorFrame, p as EventSourceFactory, q as EventSourceInit, r as EventSourceLike, s as EventSourceMessage, t as EverfurConfig, d as EverfurRequest, e as EverfurRequestBase, u as FetchInit, j as FetchLike, v as FetchResponseLike, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, R as RawResponse, w as ReadableStreamLike, x as ResolveClientConfigOptions, y as ResolvedClientConfig, S as SDK_PLATFORM, z as SDK_VERSION, G as SdkPlatform, I as ServerRequestIdSource, J as TransportDeps, T as TransportPort, U as UnknownFrame, i as UrgencyLevel, K as acceptedFrame, L as analysisCompleteFrame, N as analysisStartedFrame, O as assertNever, P as bufferedTextByteSource, Q as buildBaseHeaders, V as checkPublishableKey, W as createHttpTransport, X as deltaFrame, Y as doneFrame, Z as errorFrame, _ as errorFromResponse, $ as eventSourceByteSource, a0 as eventSourceRequestId, a1 as fetchByteSource, a2 as getGlobalFetch, a3 as heartbeatFrame, a4 as networkError, a5 as parseSse, a6 as requestIdOf, a7 as requestJson, a8 as requestRaw, a9 as resolveApiBaseUrl, aa as resolveClientConfig, ab as tryResolveApiBaseUrl, ac as tryResolveClientConfig, ad as unknownFrame } from '../config-
|
|
4
|
+
export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, B as ByteSource, C as ClientConfigFailure, k as ClientConfigFailureReason, l as ClientConfigOutcome, m as DEFAULT_CONTRACT_VERSION, D as DeltaFrame, c as DoneFrame, n as EMPTY_FRAME_ARRAYS, o as ENV_API_BASE_URL, E as ErrorFrame, p as EventSourceFactory, q as EventSourceInit, r as EventSourceLike, s as EventSourceMessage, t as EverfurConfig, d as EverfurRequest, e as EverfurRequestBase, u as FetchInit, j as FetchLike, v as FetchResponseLike, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, R as RawResponse, w as ReadableStreamLike, x as ResolveClientConfigOptions, y as ResolvedClientConfig, S as SDK_PLATFORM, z as SDK_VERSION, G as SdkPlatform, I as ServerRequestIdSource, J as TransportDeps, T as TransportPort, U as UnknownFrame, i as UrgencyLevel, K as acceptedFrame, L as analysisCompleteFrame, N as analysisStartedFrame, O as assertNever, P as bufferedTextByteSource, Q as buildBaseHeaders, V as checkPublishableKey, W as createHttpTransport, X as deltaFrame, Y as doneFrame, Z as errorFrame, _ as errorFromResponse, $ as eventSourceByteSource, a0 as eventSourceRequestId, a1 as fetchByteSource, a2 as getGlobalFetch, a3 as heartbeatFrame, a4 as networkError, a5 as parseSse, a6 as requestIdOf, a7 as requestJson, a8 as requestRaw, a9 as resolveApiBaseUrl, aa as resolveClientConfig, ab as tryResolveApiBaseUrl, ac as tryResolveClientConfig, ad as unknownFrame } from '../config-BBeF3kv5.cjs';
|
|
5
5
|
export { B as Brand, a as ClientId, C as ConversationId, D as DocumentId, J as JobId, P as PetRef, R as RecordsRequestId, b as ResponseId, U as UserRef, _ as __brand, c as conversationId, p as petRef, d as unsafeClientId, e as unsafeConversationId, f as unsafeDocumentId, g as unsafeJobId, h as unsafePetRef, i as unsafeRecordsRequestId, j as unsafeResponseId, k as unsafeUserRef, u as userRef } from '../ids-B2GAAifq.cjs';
|
|
6
|
-
export { A as AuthContext, D as DeviceAuth, I as IdentityProvider, M as MintedToken, T as TokenProvider, a as authHeaders, b as authedSend, c as createIdentityProvider, n as newSessionId, w as withAuthHeaders } from '../identity-
|
|
6
|
+
export { A as AuthContext, D as DeviceAuth, I as IdentityProvider, M as MintedToken, T as TokenProvider, a as authHeaders, b as authedSend, c as createIdentityProvider, n as newSessionId, w as withAuthHeaders } from '../identity-d2lu16uc.cjs';
|
|
7
7
|
export { a as CapabilityDecision, b as CapabilityDisabled, C as CapabilityName, c as DecideOptions, D as DisabledLevel, E as EntitlementDecision, L as LevelGrant, R as ResolvedEntitlements, d as decideCapability, e as deniedDecisionsFor, r as requires, f as resolveEntitlements } from '../resolve-D4Ywz5OS.cjs';
|
|
8
|
-
export { E as ENTITLEMENTS_PATH, a as EntitlementResolution, F as FetchEntitlementsArgs, f as fetchEntitlements } from '../entitlementRepository-
|
|
8
|
+
export { E as ENTITLEMENTS_PATH, a as EntitlementResolution, F as FetchEntitlementsArgs, f as fetchEntitlements } from '../entitlementRepository-lwXYn-lq.cjs';
|
|
9
9
|
import { E as EverfurTheme } from '../tokens-CIngRkvt.cjs';
|
|
10
10
|
export { D as DEFAULT_MAX_FONT_SCALE, v as EASING_CURVES, w as EVERFUR_DARK, x as EVERFUR_LIGHT, e as EverfurColorTokens, y as EverfurEasingCurve, b as EverfurFontFaceKey, f as EverfurFontFamilies, a as EverfurFontWeight, g as EverfurLetterSpacingTokens, h as EverfurLineHeightTokens, i as EverfurMotionDurationTokens, j as EverfurMotionTokens, k as EverfurRadiusTokens, l as EverfurSpaceTokens, m as EverfurSpringToken, n as EverfurTextColorTokens, z as EverfurTextScaleTier, o as EverfurThemeMeta, p as EverfurThemeSlot, q as EverfurThemeSlotKey, c as EverfurThemeSlotName, d as EverfurThemeSlots, r as EverfurTypeSizeTokens, s as EverfurTypeTokens, t as EverfurWeightTokens, S as SLOT_MIN_BORDER_CONTRAST, A as SLOT_MIN_CONTRAST, B as SYSTEM_FONT_FAMILY, C as SYSTEM_MONO_FAMILY, F as SlotGrounds, G as TEXT_SCALE_TIER_CAPS, T as THEME_SLOT_KEYS, u as THEME_SLOT_NAMES, H as cssCubicBezier, I as deepFreeze, J as guardSlotContrast, K as mergeThemeSlots, L as parseThemeSlots } from '../tokens-CIngRkvt.cjs';
|
|
11
11
|
export { E as EverfurFaceStyle, R as ResolveThemeInput, T as TEXT_SCALE_FLOOR, f as face, p as previewTheme, r as resolveTheme, w as withServerBranding } from '../typeStyle-DHJzDaUo.cjs';
|
|
12
12
|
export { C as ClientBranding, a as EverfurThemeFontFaceKey, b as EverfurThemeFontUrlsInput, c as EverfurThemeFontsInput, E as EverfurThemeInput, d as EverfurThemeSlotInput, e as EverfurThemeSlotsInput, L as LOCKABLE_THEME_FIELDS, f as LockableThemeField, M as MAX_FONT_SCALE_CEILING, R as RadiusScale, g as SLOT_LOCK_PREFIX, h as SlotLockName, S as SurfaceStyle, T as THEME_SCHEMA_VERSIONS, i as ThemeLockName, j as hardenHttpsUrl, k as isEmptyBranding, l as isKnownBrandingSchema, m as lockedFieldsOf, p as parseClientBranding } from '../branding-Xb_wL8N1.cjs';
|
|
13
|
-
export { F as FunnelSendOptions, R as RequestFunnel, a as RequestFunnelDeps, c as createRequestFunnel } from '../requestFunnel-
|
|
14
|
-
export { c as PET_AGE_YEARS_MAX, d as PET_BREED_MAX, e as PET_NAME_MAX, f as PET_SPECIES_MAX, g as PET_WEIGHT_KG_MAX, P as PetProfileInput, a as PetProfilePatch, h as PetsRepository, R as RegisteredPet, W as WidgetPet, i as createPetsRepository, w as widgetPetFromWire } from '../petsRepository-
|
|
15
|
-
export { b as CHECKIN_ANSWERS, c as CasesRepository, C as CheckinAnswer, a as CheckinOutcome, W as WatchCase, d as createCasesRepository } from '../casesRepository-
|
|
13
|
+
export { F as FunnelSendOptions, R as RequestFunnel, a as RequestFunnelDeps, c as createRequestFunnel } from '../requestFunnel-TtUvlQS1.cjs';
|
|
14
|
+
export { c as PET_AGE_YEARS_MAX, d as PET_BREED_MAX, e as PET_NAME_MAX, f as PET_SPECIES_MAX, g as PET_WEIGHT_KG_MAX, P as PetProfileInput, a as PetProfilePatch, h as PetsRepository, R as RegisteredPet, W as WidgetPet, i as createPetsRepository, w as widgetPetFromWire } from '../petsRepository-BHooDwb1.cjs';
|
|
15
|
+
export { b as CHECKIN_ANSWERS, c as CasesRepository, C as CheckinAnswer, a as CheckinOutcome, W as WatchCase, d as createCasesRepository } from '../casesRepository-Ct5MO1mM.cjs';
|
|
16
16
|
import '../ErrorPolicyPort-D6CybiqJ.cjs';
|
|
17
17
|
import '../profile-CSs1wlXT.cjs';
|
|
18
18
|
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { b as EverfurErrorCode } from '../EverfurError-DmELDpXp.js';
|
|
2
2
|
export { A as AUTO_RETRYABLE_CODES, B as BACKOFF_BASE_MS, d as BACKOFF_CAP_MS, e as EVERFUR_ERROR_CATEGORIES, f as EVERFUR_ERROR_CODES, E as EverfurError, a as EverfurErrorCategory, M as MAX_RETRY_ATTEMPTS, g as MakeEverfurErrorOptions, R as RETRYABLE_CONTRACT_CODES, h as backoffDelayMs, j as canRecreateOnNotFound, c as categoryFor, k as fromHttpStatus, l as fromWire, m as isAutoRetryable, i as isRetryableCode, n as makeEverfurError, s as shouldRetry, u as userFacingError } from '../EverfurError-DmELDpXp.js';
|
|
3
3
|
export { a as EverfurConfigError, E as EverfurResult, b as EverfurThrownError, e as err, i as isErr, c as isOk, o as ok, u as unwrap } from '../EverfurResult-SGvHKsCB.js';
|
|
4
|
-
export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, B as ByteSource, C as ClientConfigFailure, k as ClientConfigFailureReason, l as ClientConfigOutcome, m as DEFAULT_CONTRACT_VERSION, D as DeltaFrame, c as DoneFrame, n as EMPTY_FRAME_ARRAYS, o as ENV_API_BASE_URL, E as ErrorFrame, p as EventSourceFactory, q as EventSourceInit, r as EventSourceLike, s as EventSourceMessage, t as EverfurConfig, d as EverfurRequest, e as EverfurRequestBase, u as FetchInit, j as FetchLike, v as FetchResponseLike, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, R as RawResponse, w as ReadableStreamLike, x as ResolveClientConfigOptions, y as ResolvedClientConfig, S as SDK_PLATFORM, z as SDK_VERSION, G as SdkPlatform, I as ServerRequestIdSource, J as TransportDeps, T as TransportPort, U as UnknownFrame, i as UrgencyLevel, K as acceptedFrame, L as analysisCompleteFrame, N as analysisStartedFrame, O as assertNever, P as bufferedTextByteSource, Q as buildBaseHeaders, V as checkPublishableKey, W as createHttpTransport, X as deltaFrame, Y as doneFrame, Z as errorFrame, _ as errorFromResponse, $ as eventSourceByteSource, a0 as eventSourceRequestId, a1 as fetchByteSource, a2 as getGlobalFetch, a3 as heartbeatFrame, a4 as networkError, a5 as parseSse, a6 as requestIdOf, a7 as requestJson, a8 as requestRaw, a9 as resolveApiBaseUrl, aa as resolveClientConfig, ab as tryResolveApiBaseUrl, ac as tryResolveClientConfig, ad as unknownFrame } from '../config-
|
|
4
|
+
export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, B as ByteSource, C as ClientConfigFailure, k as ClientConfigFailureReason, l as ClientConfigOutcome, m as DEFAULT_CONTRACT_VERSION, D as DeltaFrame, c as DoneFrame, n as EMPTY_FRAME_ARRAYS, o as ENV_API_BASE_URL, E as ErrorFrame, p as EventSourceFactory, q as EventSourceInit, r as EventSourceLike, s as EventSourceMessage, t as EverfurConfig, d as EverfurRequest, e as EverfurRequestBase, u as FetchInit, j as FetchLike, v as FetchResponseLike, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, R as RawResponse, w as ReadableStreamLike, x as ResolveClientConfigOptions, y as ResolvedClientConfig, S as SDK_PLATFORM, z as SDK_VERSION, G as SdkPlatform, I as ServerRequestIdSource, J as TransportDeps, T as TransportPort, U as UnknownFrame, i as UrgencyLevel, K as acceptedFrame, L as analysisCompleteFrame, N as analysisStartedFrame, O as assertNever, P as bufferedTextByteSource, Q as buildBaseHeaders, V as checkPublishableKey, W as createHttpTransport, X as deltaFrame, Y as doneFrame, Z as errorFrame, _ as errorFromResponse, $ as eventSourceByteSource, a0 as eventSourceRequestId, a1 as fetchByteSource, a2 as getGlobalFetch, a3 as heartbeatFrame, a4 as networkError, a5 as parseSse, a6 as requestIdOf, a7 as requestJson, a8 as requestRaw, a9 as resolveApiBaseUrl, aa as resolveClientConfig, ab as tryResolveApiBaseUrl, ac as tryResolveClientConfig, ad as unknownFrame } from '../config-Dl8Iqs1i.js';
|
|
5
5
|
export { B as Brand, a as ClientId, C as ConversationId, D as DocumentId, J as JobId, P as PetRef, R as RecordsRequestId, b as ResponseId, U as UserRef, _ as __brand, c as conversationId, p as petRef, d as unsafeClientId, e as unsafeConversationId, f as unsafeDocumentId, g as unsafeJobId, h as unsafePetRef, i as unsafeRecordsRequestId, j as unsafeResponseId, k as unsafeUserRef, u as userRef } from '../ids-B2GAAifq.js';
|
|
6
|
-
export { A as AuthContext, D as DeviceAuth, I as IdentityProvider, M as MintedToken, T as TokenProvider, a as authHeaders, b as authedSend, c as createIdentityProvider, n as newSessionId, w as withAuthHeaders } from '../identity-
|
|
6
|
+
export { A as AuthContext, D as DeviceAuth, I as IdentityProvider, M as MintedToken, T as TokenProvider, a as authHeaders, b as authedSend, c as createIdentityProvider, n as newSessionId, w as withAuthHeaders } from '../identity-C0r18khM.js';
|
|
7
7
|
export { a as CapabilityDecision, b as CapabilityDisabled, C as CapabilityName, c as DecideOptions, D as DisabledLevel, E as EntitlementDecision, L as LevelGrant, R as ResolvedEntitlements, d as decideCapability, e as deniedDecisionsFor, r as requires, f as resolveEntitlements } from '../resolve-D4Ywz5OS.js';
|
|
8
|
-
export { E as ENTITLEMENTS_PATH, a as EntitlementResolution, F as FetchEntitlementsArgs, f as fetchEntitlements } from '../entitlementRepository-
|
|
8
|
+
export { E as ENTITLEMENTS_PATH, a as EntitlementResolution, F as FetchEntitlementsArgs, f as fetchEntitlements } from '../entitlementRepository-S4bU03Ld.js';
|
|
9
9
|
import { E as EverfurTheme } from '../tokens-CIngRkvt.js';
|
|
10
10
|
export { D as DEFAULT_MAX_FONT_SCALE, v as EASING_CURVES, w as EVERFUR_DARK, x as EVERFUR_LIGHT, e as EverfurColorTokens, y as EverfurEasingCurve, b as EverfurFontFaceKey, f as EverfurFontFamilies, a as EverfurFontWeight, g as EverfurLetterSpacingTokens, h as EverfurLineHeightTokens, i as EverfurMotionDurationTokens, j as EverfurMotionTokens, k as EverfurRadiusTokens, l as EverfurSpaceTokens, m as EverfurSpringToken, n as EverfurTextColorTokens, z as EverfurTextScaleTier, o as EverfurThemeMeta, p as EverfurThemeSlot, q as EverfurThemeSlotKey, c as EverfurThemeSlotName, d as EverfurThemeSlots, r as EverfurTypeSizeTokens, s as EverfurTypeTokens, t as EverfurWeightTokens, S as SLOT_MIN_BORDER_CONTRAST, A as SLOT_MIN_CONTRAST, B as SYSTEM_FONT_FAMILY, C as SYSTEM_MONO_FAMILY, F as SlotGrounds, G as TEXT_SCALE_TIER_CAPS, T as THEME_SLOT_KEYS, u as THEME_SLOT_NAMES, H as cssCubicBezier, I as deepFreeze, J as guardSlotContrast, K as mergeThemeSlots, L as parseThemeSlots } from '../tokens-CIngRkvt.js';
|
|
11
11
|
export { E as EverfurFaceStyle, R as ResolveThemeInput, T as TEXT_SCALE_FLOOR, f as face, p as previewTheme, r as resolveTheme, w as withServerBranding } from '../typeStyle-YPS_MXeI.js';
|
|
12
12
|
export { C as ClientBranding, a as EverfurThemeFontFaceKey, b as EverfurThemeFontUrlsInput, c as EverfurThemeFontsInput, E as EverfurThemeInput, d as EverfurThemeSlotInput, e as EverfurThemeSlotsInput, L as LOCKABLE_THEME_FIELDS, f as LockableThemeField, M as MAX_FONT_SCALE_CEILING, R as RadiusScale, g as SLOT_LOCK_PREFIX, h as SlotLockName, S as SurfaceStyle, T as THEME_SCHEMA_VERSIONS, i as ThemeLockName, j as hardenHttpsUrl, k as isEmptyBranding, l as isKnownBrandingSchema, m as lockedFieldsOf, p as parseClientBranding } from '../branding-xpQ056sM.js';
|
|
13
|
-
export { F as FunnelSendOptions, R as RequestFunnel, a as RequestFunnelDeps, c as createRequestFunnel } from '../requestFunnel-
|
|
14
|
-
export { c as PET_AGE_YEARS_MAX, d as PET_BREED_MAX, e as PET_NAME_MAX, f as PET_SPECIES_MAX, g as PET_WEIGHT_KG_MAX, P as PetProfileInput, a as PetProfilePatch, h as PetsRepository, R as RegisteredPet, W as WidgetPet, i as createPetsRepository, w as widgetPetFromWire } from '../petsRepository-
|
|
15
|
-
export { b as CHECKIN_ANSWERS, c as CasesRepository, C as CheckinAnswer, a as CheckinOutcome, W as WatchCase, d as createCasesRepository } from '../casesRepository-
|
|
13
|
+
export { F as FunnelSendOptions, R as RequestFunnel, a as RequestFunnelDeps, c as createRequestFunnel } from '../requestFunnel-C5LPty-S.js';
|
|
14
|
+
export { c as PET_AGE_YEARS_MAX, d as PET_BREED_MAX, e as PET_NAME_MAX, f as PET_SPECIES_MAX, g as PET_WEIGHT_KG_MAX, P as PetProfileInput, a as PetProfilePatch, h as PetsRepository, R as RegisteredPet, W as WidgetPet, i as createPetsRepository, w as widgetPetFromWire } from '../petsRepository-DE8scL1O.js';
|
|
15
|
+
export { b as CHECKIN_ANSWERS, c as CasesRepository, C as CheckinAnswer, a as CheckinOutcome, W as WatchCase, d as createCasesRepository } from '../casesRepository-C29WolRA.js';
|
|
16
16
|
import '../ErrorPolicyPort-D22LUVrK.js';
|
|
17
17
|
import '../profile-CSs1wlXT.js';
|
|
18
18
|
|