@happyvertical/smrt-planner 0.75.1 → 0.76.0
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/app/404.html +16 -16
- package/app/_app/immutable/chunks/{Da3hlns2.js → B-SdwI0o.js} +1 -1
- package/app/_app/immutable/chunks/{B-3F0YL9.js → B-n_IdHe.js} +1 -1
- package/app/_app/immutable/chunks/{jupFeyIp.js → B2Tp0jDb.js} +1 -1
- package/app/_app/immutable/chunks/{9JfOUQ5n.js → B7Ha6jE7.js} +1 -1
- package/app/_app/immutable/chunks/{CrlB_RJR.js → BIaULR6w.js} +1 -1
- package/app/_app/immutable/chunks/{BAXdps9t.js → BW1j1uAN.js} +1 -1
- package/app/_app/immutable/chunks/{BJEvKANS.js → Bg8l6mTW.js} +1 -1
- package/app/_app/immutable/chunks/BgcEvEiz.js +29 -0
- package/app/_app/immutable/chunks/{JLEY6O2R.js → BrigiJm8.js} +3 -3
- package/app/_app/immutable/chunks/{gspd1ixP.js → Bz6e5hD-.js} +1 -1
- package/app/_app/immutable/chunks/{FdKxQkgX.js → C5P_vHQu.js} +1 -1
- package/app/_app/immutable/chunks/{nQl2JuRR.js → C8ShXPO6.js} +1 -1
- package/app/_app/immutable/chunks/CCAu23P3.js +1 -0
- package/app/_app/immutable/chunks/{B2HxHVMy.js → CJ_EqubG.js} +1 -1
- package/app/_app/immutable/chunks/{C2XVyr3I.js → CSl4ScA9.js} +1 -1
- package/app/_app/immutable/chunks/{BEE_IQaO.js → CfJkCxBm.js} +1 -1
- package/app/_app/immutable/chunks/{BpRHWky1.js → CyWTJOpn.js} +1 -1
- package/app/_app/immutable/chunks/{BGk_jHRL.js → D0dHkcY3.js} +1 -1
- package/app/_app/immutable/chunks/{BGR3bfRV.js → DCrLWq9K.js} +1 -1
- package/app/_app/immutable/chunks/{Dosh_ELl.js → DD43h0lh.js} +1 -1
- package/app/_app/immutable/chunks/{CU92QKmO.js → DL_eL8gq.js} +1 -1
- package/app/_app/immutable/chunks/{BpNhJcpQ.js → DPP5JIeF.js} +2 -2
- package/app/_app/immutable/chunks/{CNmY8Yfn.js → DhxPx2wh.js} +1 -1
- package/app/_app/immutable/chunks/{DQOcBTE1.js → DyML_o9Q.js} +33 -33
- package/app/_app/immutable/chunks/{BRl1P2HZ.js → GR7DXWJL.js} +1 -1
- package/app/_app/immutable/chunks/{CJAcL0SD.js → Oh32ILmK.js} +1 -1
- package/app/_app/immutable/chunks/{CnqvPDFK.js → gCGkBCZK.js} +1 -1
- package/app/_app/immutable/chunks/{BJpPTAy0.js → pXowVnDU.js} +1 -1
- package/app/_app/immutable/entry/{app.BvZV724w.js → app.Cc-N1TBa.js} +2 -2
- package/app/_app/immutable/nodes/{0.CaJXCrnh.js → 0.BVPgKw82.js} +1 -1
- package/app/_app/immutable/nodes/{10.BaTpubSj.js → 10.CHyxp96u.js} +1 -1
- package/app/_app/immutable/nodes/{11.z6qVCvWY.js → 11.dN9lc07q.js} +1 -1
- package/app/_app/immutable/nodes/{12.WuxisECJ.js → 12.Wypg6rQh.js} +1 -1
- package/app/_app/immutable/nodes/{13.OKhVx_gu.js → 13.C_1f1jwL.js} +1 -1
- package/app/_app/immutable/nodes/{14.CExwXeaz.js → 14.B4_eLWmE.js} +1 -1
- package/app/_app/immutable/nodes/{2.BbiLajBR.js → 2.yZQzG6LM.js} +3 -3
- package/app/_app/immutable/nodes/{3.Cly1_cyG.js → 3.CDALqyE3.js} +1 -1
- package/app/_app/immutable/nodes/{4.CZeEdbnp.js → 4.BzbUeaNN.js} +1 -1
- package/app/_app/immutable/nodes/{7.BCRvO7h_.js → 7.BEMpEdQX.js} +1 -1
- package/app/_app/immutable/nodes/{8.D_JfMqo4.js → 8.1KBY0XvH.js} +1 -1
- package/app/_app/immutable/nodes/{9.BjK9PZdC.js → 9.CqIrnLxh.js} +1 -1
- package/app/_app/version.json +1 -1
- package/app/advanced-styles/index.html +18 -18
- package/app/ai/index.html +22 -22
- package/app/blueprint/index.html +16 -16
- package/app/cookbook/index.html +16 -16
- package/app/index.html +25 -25
- package/app/m/ads/AdDeliveryTier/index.html +21 -21
- package/app/m/ads/AdEvent/index.html +21 -21
- package/app/m/ads/AdFormat/index.html +21 -21
- package/app/m/ads/AdGroup/index.html +21 -21
- package/app/m/ads/AdVariation/index.html +21 -21
- package/app/m/analytics/AnalyticsDataStream/index.html +21 -21
- package/app/m/analytics/AnalyticsEvent/index.html +21 -21
- package/app/m/analytics/AnalyticsProperty/index.html +21 -21
- package/app/m/analytics/AnalyticsReport/index.html +21 -21
- package/app/m/approvals/ApprovalEvent/index.html +21 -21
- package/app/m/approvals/ApprovalPolicy/index.html +21 -21
- package/app/m/approvals/ApprovalRequest/index.html +21 -21
- package/app/m/assets/Asset/attachments/index.html +22 -22
- package/app/m/assets/Asset/index.html +21 -21
- package/app/m/assets/AssetAssociation/index.html +21 -21
- package/app/m/assets/AssetMetafield/index.html +21 -21
- package/app/m/assets/AssetStatus/index.html +21 -21
- package/app/m/assets/AssetType/index.html +21 -21
- package/app/m/assets/Folder/index.html +21 -21
- package/app/m/chat/AgentSession/index.html +21 -21
- package/app/m/chat/ChatMessage/index.html +21 -21
- package/app/m/chat/ChatParticipant/index.html +21 -21
- package/app/m/chat/ChatReaction/index.html +21 -21
- package/app/m/chat/ChatRoom/index.html +21 -21
- package/app/m/chat/ChatThread/index.html +21 -21
- package/app/m/chat/VoiceGatewayTurn/index.html +21 -21
- package/app/m/chat/VoiceSession/index.html +21 -21
- package/app/m/commerce/AccountingConnection/index.html +21 -21
- package/app/m/commerce/AccountingInvoiceReadback/index.html +21 -21
- package/app/m/commerce/AccountingMapping/index.html +21 -21
- package/app/m/commerce/AccountingPaymentSync/index.html +21 -21
- package/app/m/commerce/Agreement/index.html +21 -21
- package/app/m/commerce/Cart/index.html +21 -21
- package/app/m/commerce/Contract/index.html +21 -21
- package/app/m/commerce/ContractLineItem/index.html +21 -21
- package/app/m/commerce/Customer/index.html +21 -21
- package/app/m/commerce/DocumentTax/index.html +21 -21
- package/app/m/commerce/Estimate/index.html +21 -21
- package/app/m/commerce/Fulfillment/index.html +21 -21
- package/app/m/commerce/FulfillmentLineItem/index.html +21 -21
- package/app/m/commerce/HistoricalCustomerFunds/index.html +21 -21
- package/app/m/commerce/HistoricalCustomerFundsAllocation/index.html +21 -21
- package/app/m/commerce/HistoricalSalesLine/index.html +21 -21
- package/app/m/commerce/Invoice/index.html +21 -21
- package/app/m/commerce/InvoiceLineItem/index.html +21 -21
- package/app/m/commerce/Lease/index.html +21 -21
- package/app/m/commerce/LicenseSale/index.html +21 -21
- package/app/m/commerce/Order/index.html +21 -21
- package/app/m/commerce/Payment/index.html +21 -21
- package/app/m/commerce/PaymentAllocation/index.html +21 -21
- package/app/m/commerce/PaymentInstrument/index.html +21 -21
- package/app/m/commerce/PaymentIntent/index.html +21 -21
- package/app/m/commerce/Payout/index.html +21 -21
- package/app/m/commerce/ProductionOrder/index.html +21 -21
- package/app/m/commerce/PurchaseContract/index.html +21 -21
- package/app/m/commerce/PurchaseOrder/index.html +21 -21
- package/app/m/commerce/SalesContract/index.html +21 -21
- package/app/m/commerce/SupplierQuote/index.html +21 -21
- package/app/m/commerce/TaxCode/index.html +21 -21
- package/app/m/commerce/TaxComponent/index.html +21 -21
- package/app/m/commerce/TaxSettings/index.html +21 -21
- package/app/m/commerce/TaxSummaryReport/index.html +21 -21
- package/app/m/commerce/TenantPaymentAccount/index.html +21 -21
- package/app/m/commerce/Vendor/index.html +21 -21
- package/app/m/commerce/WholesaleOrder/index.html +21 -21
- package/app/m/content/Content/articles/index.html +22 -22
- package/app/m/content/Content/index.html +21 -21
- package/app/m/content/ContentContribution/index.html +21 -21
- package/app/m/content/ContentContributionAttachment/index.html +21 -21
- package/app/m/content/ContentContributionRevision/index.html +21 -21
- package/app/m/content/ContentContributionType/index.html +21 -21
- package/app/m/content/ContentContributor/index.html +21 -21
- package/app/m/content/ContentCorrection/index.html +21 -21
- package/app/m/content/ContentFeedSource/index.html +21 -21
- package/app/m/content/ContentGovernanceAssignment/index.html +21 -21
- package/app/m/content/ContentGovernancePolicy/index.html +21 -21
- package/app/m/content/ContentGovernanceProfile/index.html +21 -21
- package/app/m/content/ContentReference/index.html +21 -21
- package/app/m/content/ContentReview/index.html +21 -21
- package/app/m/content/ContentVersion/index.html +21 -21
- package/app/m/events/Event/index.html +21 -21
- package/app/m/events/EventParticipant/index.html +21 -21
- package/app/m/events/EventSeries/index.html +21 -21
- package/app/m/events/EventType/index.html +21 -21
- package/app/m/expenses/Expense/index.html +21 -21
- package/app/m/facts/Fact/index.html +21 -21
- package/app/m/facts/FactContent/index.html +21 -21
- package/app/m/facts/FactEvidence/index.html +21 -21
- package/app/m/facts/FactSource/index.html +21 -21
- package/app/m/facts/FactSubject/index.html +21 -21
- package/app/m/facts/FactTag/index.html +21 -21
- package/app/m/fields/FieldPolicy/index.html +21 -21
- package/app/m/fields/FieldPolicySuggestion/index.html +21 -21
- package/app/m/fields/FieldUsageCounter/index.html +21 -21
- package/app/m/human-resources/Employment/index.html +21 -21
- package/app/m/human-resources/EmploymentTerm/index.html +21 -21
- package/app/m/human-resources/HeldQualification/index.html +21 -21
- package/app/m/human-resources/Qualification/index.html +21 -21
- package/app/m/images/Image/index.html +21 -21
- package/app/m/inventory/InventoryLocation/index.html +21 -21
- package/app/m/inventory/Lot/index.html +21 -21
- package/app/m/inventory/LotCorrection/index.html +21 -21
- package/app/m/inventory/LotDocument/index.html +21 -21
- package/app/m/inventory/LotStockLevel/index.html +21 -21
- package/app/m/inventory/LotUsage/index.html +21 -21
- package/app/m/inventory/StockLevel/index.html +21 -21
- package/app/m/inventory/StockMovement/index.html +21 -21
- package/app/m/ledgers/Account/index.html +21 -21
- package/app/m/ledgers/Journal/index.html +21 -21
- package/app/m/ledgers/JournalEntry/index.html +21 -21
- package/app/m/ledgers/Ledger/index.html +21 -21
- package/app/m/manufacturing/Assembly/index.html +21 -21
- package/app/m/manufacturing/BillOfMaterials/index.html +21 -21
- package/app/m/manufacturing/BomLine/index.html +21 -21
- package/app/m/manufacturing/Operation/index.html +21 -21
- package/app/m/manufacturing/ProductionRun/index.html +21 -21
- package/app/m/manufacturing/ProductionRunCompletion/index.html +21 -21
- package/app/m/manufacturing/RoutingStep/index.html +21 -21
- package/app/m/marketing/Campaign/index.html +21 -21
- package/app/m/marketing/CampaignChannel/index.html +21 -21
- package/app/m/marketing/CampaignMetricSnapshot/index.html +21 -21
- package/app/m/messages/Account/index.html +21 -21
- package/app/m/messages/Attachment/index.html +21 -21
- package/app/m/messages/Blacklist/index.html +21 -21
- package/app/m/messages/Email/failed-sends/index.html +22 -22
- package/app/m/messages/Email/index.html +21 -21
- package/app/m/messages/Email/mailbox/index.html +22 -22
- package/app/m/messages/EmailAccount/index.html +21 -21
- package/app/m/messages/EmailAttachment/index.html +21 -21
- package/app/m/messages/EmailFolder/index.html +21 -21
- package/app/m/messages/Message/index.html +21 -21
- package/app/m/messages/MessagingEndpoint/index.html +21 -21
- package/app/m/messages/PersonaMessageRoute/index.html +21 -21
- package/app/m/messages/SlackAccount/index.html +21 -21
- package/app/m/messages/SlackMessage/index.html +21 -21
- package/app/m/messages/SlackMessage/slack-messages/index.html +22 -22
- package/app/m/messages/TelegramAccount/index.html +21 -21
- package/app/m/messages/Tweet/index.html +21 -21
- package/app/m/messages/TwitterAccount/index.html +21 -21
- package/app/m/messages/Whitelist/index.html +21 -21
- package/app/m/messages/ZulipAccount/index.html +21 -21
- package/app/m/places/Place/index.html +21 -21
- package/app/m/places/PlaceType/index.html +21 -21
- package/app/m/products/Category/index.html +21 -21
- package/app/m/products/Material/index.html +21 -21
- package/app/m/products/Product/index.html +21 -21
- package/app/m/products/Product/ingredients/index.html +22 -22
- package/app/m/products/ProductVariant/index.html +21 -21
- package/app/m/products/Sku/index.html +21 -21
- package/app/m/profiles/ApiKey/index.html +21 -21
- package/app/m/profiles/Bot/index.html +21 -21
- package/app/m/profiles/MagicLinkToken/index.html +21 -21
- package/app/m/profiles/NostrIdentity/index.html +21 -21
- package/app/m/profiles/OidcIdentity/index.html +21 -21
- package/app/m/profiles/Organization/index.html +21 -21
- package/app/m/profiles/Person/index.html +21 -21
- package/app/m/profiles/Profile/index.html +21 -21
- package/app/m/profiles/ProfileMetadata/index.html +21 -21
- package/app/m/profiles/ProfileMetafield/index.html +21 -21
- package/app/m/profiles/ProfileRelationship/index.html +21 -21
- package/app/m/profiles/ProfileRelationshipTerm/index.html +21 -21
- package/app/m/profiles/ProfileRelationshipType/index.html +21 -21
- package/app/m/profiles/ProfileType/index.html +21 -21
- package/app/m/projects/Comment/index.html +21 -21
- package/app/m/projects/Issue/index.html +21 -21
- package/app/m/projects/Label/index.html +21 -21
- package/app/m/projects/Project/index.html +21 -21
- package/app/m/projects/ProjectIntegration/index.html +21 -21
- package/app/m/projects/PullRequest/index.html +21 -21
- package/app/m/projects/Repository/index.html +21 -21
- package/app/m/properties/Property/index.html +21 -21
- package/app/m/properties/Zone/index.html +21 -21
- package/app/m/reports/RuntimeReport/index.html +21 -21
- package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +21 -21
- package/app/m/reports/SmrtReportLock/index.html +21 -21
- package/app/m/reports/SmrtReportRefreshTask/index.html +21 -21
- package/app/m/reports/SmrtReportRun/index.html +21 -21
- package/app/m/reports/SmrtReportSchedule/index.html +21 -21
- package/app/m/reports/SmrtReportWatermark/index.html +21 -21
- package/app/m/sales/Agreement/index.html +21 -21
- package/app/m/sales/AttributionException/index.html +21 -21
- package/app/m/sales/AttributionPolicy/index.html +21 -21
- package/app/m/sales/Commission/index.html +21 -21
- package/app/m/sales/CommissionAdjustment/index.html +21 -21
- package/app/m/sales/CommissionPayout/index.html +21 -21
- package/app/m/sales/CommissionPlan/index.html +21 -21
- package/app/m/sales/Earner/index.html +21 -21
- package/app/m/sales/EarnerSourceAttribution/index.html +21 -21
- package/app/m/sales/EarningEvent/index.html +21 -21
- package/app/m/sales/ExecutedAgreement/index.html +21 -21
- package/app/m/sales/Lead/index.html +21 -21
- package/app/m/sales/Opportunity/index.html +21 -21
- package/app/m/sales/OpportunityConversion/index.html +21 -21
- package/app/m/sales/PipelineDefinition/index.html +21 -21
- package/app/m/sales/PipelineStage/index.html +21 -21
- package/app/m/sales/Referral/index.html +21 -21
- package/app/m/sales/ReferralAgreement/index.html +21 -21
- package/app/m/sales/ReferralLink/index.html +21 -21
- package/app/m/sales/ReferralProgram/index.html +21 -21
- package/app/m/sales/ReferralTermSnapshot/index.html +21 -21
- package/app/m/sales/ReferralTouch/index.html +21 -21
- package/app/m/sales/Referrer/index.html +21 -21
- package/app/m/sales/ReferrerIdentifier/index.html +21 -21
- package/app/m/sales/SalesActivity/index.html +21 -21
- package/app/m/sales/SalesRepresentative/index.html +21 -21
- package/app/m/sites/DnsZone/index.html +21 -21
- package/app/m/sites/Domain/index.html +21 -21
- package/app/m/sites/ProjectDomain/index.html +21 -21
- package/app/m/sites/Site/index.html +21 -21
- package/app/m/sites/SiteAgentBinding/index.html +21 -21
- package/app/m/social/OAuthState/index.html +21 -21
- package/app/m/social/SocialAccount/index.html +21 -21
- package/app/m/social/SocialPost/index.html +21 -21
- package/app/m/social/SocialPostAnalyticsSnapshot/index.html +21 -21
- package/app/m/subscriptions/BillingAdjustment/index.html +21 -21
- package/app/m/subscriptions/ClientCharge/index.html +21 -21
- package/app/m/subscriptions/CreditGrant/index.html +21 -21
- package/app/m/subscriptions/PricingRule/index.html +21 -21
- package/app/m/subscriptions/RetailCharge/index.html +21 -21
- package/app/m/subscriptions/SpendingPolicy/index.html +21 -21
- package/app/m/subscriptions/SubscriptionPlan/index.html +21 -21
- package/app/m/subscriptions/SubscriptionPlanVersion/index.html +21 -21
- package/app/m/subscriptions/TenantSubscription/index.html +21 -21
- package/app/m/subscriptions/TenantUsageMetric/index.html +21 -21
- package/app/m/support/ServiceTimeEntry/index.html +21 -21
- package/app/m/support/SupportAiRun/index.html +21 -21
- package/app/m/support/SupportAvailability/index.html +21 -21
- package/app/m/support/SupportCase/index.html +21 -21
- package/app/m/support/SupportCaseEvent/index.html +21 -21
- package/app/m/support/SupportChannelBinding/index.html +21 -21
- package/app/m/support/SupportCharge/index.html +21 -21
- package/app/m/support/SupportCompensation/index.html +21 -21
- package/app/m/support/SupportCompensationPlan/index.html +21 -21
- package/app/m/support/SupportEscalation/index.html +21 -21
- package/app/m/support/SupportInteraction/index.html +21 -21
- package/app/m/support/SupportPlan/index.html +21 -21
- package/app/m/support/SupportPolicy/index.html +21 -21
- package/app/m/support/SupportQualification/index.html +21 -21
- package/app/m/support/SupportServiceTarget/index.html +21 -21
- package/app/m/support/SupportSpecialist/index.html +21 -21
- package/app/m/support/SupportWorkLink/index.html +21 -21
- package/app/m/tags/Tag/index.html +21 -21
- package/app/m/tags/TagAlias/index.html +21 -21
- package/app/m/timesheets/AttendanceBreak/index.html +21 -21
- package/app/m/timesheets/AttendancePunch/index.html +21 -21
- package/app/m/timesheets/AttendanceSegment/index.html +21 -21
- package/app/m/timesheets/ServiceChargeSnapshot/index.html +21 -21
- package/app/m/timesheets/ServiceCompensationSnapshot/index.html +21 -21
- package/app/m/timesheets/ServiceTimeEntry/index.html +21 -21
- package/app/m/users/Group/index.html +21 -21
- package/app/m/users/GroupMember/index.html +21 -21
- package/app/m/users/GroupRole/index.html +21 -21
- package/app/m/users/Membership/index.html +21 -21
- package/app/m/users/MembershipOverride/index.html +21 -21
- package/app/m/users/Permission/index.html +21 -21
- package/app/m/users/Role/index.html +21 -21
- package/app/m/users/RolePermission/index.html +21 -21
- package/app/m/users/Session/index.html +21 -21
- package/app/m/users/Tenant/index.html +21 -21
- package/app/m/users/TenantGuestGrant/index.html +21 -21
- package/app/m/users/TenantIntegration/index.html +21 -21
- package/app/m/users/TenantPermissionOverride/index.html +21 -21
- package/app/m/users/User/index.html +21 -21
- package/app/m/video/Character/index.html +21 -21
- package/app/m/video/CharacterAsset/index.html +21 -21
- package/app/m/video/CompositeJob/index.html +21 -21
- package/app/m/video/Performer/index.html +21 -21
- package/app/m/video/PerformerAsset/index.html +21 -21
- package/app/m/video/Scene/index.html +21 -21
- package/app/m/video/SceneAsset/index.html +21 -21
- package/app/m/video/VideoComposition/index.html +21 -21
- package/app/m/video/VideoCompositionAsset/index.html +21 -21
- package/app/m/video/VideoSequence/index.html +21 -21
- package/app/m/video/VideoSequenceAsset/index.html +21 -21
- package/app/m/video/VideoShot/index.html +21 -21
- package/app/m/video/VideoShotAsset/index.html +21 -21
- package/app/m/video/VideoShotCharacter/index.html +21 -21
- package/app/m/video/VideoWorkflow/index.html +21 -21
- package/app/m/voice/VoiceOutput/index.html +21 -21
- package/app/m/voice/VoiceProfile/index.html +21 -21
- package/app/m/voice/VoiceSample/index.html +21 -21
- package/app/mcp.html +90 -90
- package/app/packages/ads/index.html +19 -19
- package/app/packages/analytics/index.html +19 -19
- package/app/packages/app-mcp/index.html +19 -19
- package/app/packages/approvals/index.html +19 -19
- package/app/packages/assets/index.html +19 -19
- package/app/packages/chat/index.html +19 -19
- package/app/packages/comments/index.html +19 -19
- package/app/packages/commerce/index.html +19 -19
- package/app/packages/content/index.html +19 -19
- package/app/packages/events/index.html +19 -19
- package/app/packages/expenses/index.html +19 -19
- package/app/packages/facts/index.html +19 -19
- package/app/packages/fields/index.html +19 -19
- package/app/packages/human-resources/index.html +19 -19
- package/app/packages/images/index.html +19 -19
- package/app/packages/index.html +18 -18
- package/app/packages/inference/index.html +19 -19
- package/app/packages/ingestion/index.html +19 -19
- package/app/packages/inventory/index.html +19 -19
- package/app/packages/ledgers/index.html +19 -19
- package/app/packages/manufacturing/index.html +19 -19
- package/app/packages/marketing/index.html +19 -19
- package/app/packages/messages/index.html +19 -19
- package/app/packages/places/index.html +19 -19
- package/app/packages/preferences/index.html +19 -19
- package/app/packages/products/index.html +19 -19
- package/app/packages/profiles/index.html +19 -19
- package/app/packages/projects/index.html +19 -19
- package/app/packages/properties/index.html +19 -19
- package/app/packages/reactions/index.html +19 -19
- package/app/packages/reports/index.html +19 -19
- package/app/packages/sales/index.html +19 -19
- package/app/packages/sites/index.html +19 -19
- package/app/packages/social/index.html +19 -19
- package/app/packages/subscriptions/index.html +19 -19
- package/app/packages/support/index.html +19 -19
- package/app/packages/tags/index.html +19 -19
- package/app/packages/timesheets/index.html +19 -19
- package/app/packages/users/index.html +19 -19
- package/app/packages/video/index.html +19 -19
- package/app/packages/voice/index.html +19 -19
- package/app/packages/webhooks/index.html +19 -19
- package/app/recipes/account-access/help/index.html +19 -19
- package/app/recipes/account-access/index.html +22 -22
- package/app/recipes/activity/help/index.html +19 -19
- package/app/recipes/activity/index.html +22 -22
- package/app/recipes/ads.campaigns/help/index.html +19 -19
- package/app/recipes/ads.campaigns/index.html +22 -22
- package/app/recipes/affiliates.referrals/help/index.html +19 -19
- package/app/recipes/affiliates.referrals/index.html +22 -22
- package/app/recipes/agreements/help/index.html +19 -19
- package/app/recipes/agreements/index.html +22 -22
- package/app/recipes/analytics.reports/help/index.html +19 -19
- package/app/recipes/analytics.reports/index.html +22 -22
- package/app/recipes/approvals.requests/help/index.html +19 -19
- package/app/recipes/approvals.requests/index.html +22 -22
- package/app/recipes/assets/help/index.html +19 -19
- package/app/recipes/assets/index.html +22 -22
- package/app/recipes/billing/help/index.html +19 -19
- package/app/recipes/billing/index.html +22 -22
- package/app/recipes/chat.assistant/help/index.html +19 -19
- package/app/recipes/chat.assistant/index.html +22 -22
- package/app/recipes/comments/help/index.html +19 -19
- package/app/recipes/comments/index.html +22 -22
- package/app/recipes/commerce.customers/help/index.html +19 -19
- package/app/recipes/commerce.customers/index.html +22 -22
- package/app/recipes/commerce.estimates/help/index.html +19 -19
- package/app/recipes/commerce.estimates/index.html +22 -22
- package/app/recipes/commerce.purchases/help/index.html +19 -19
- package/app/recipes/commerce.purchases/index.html +22 -22
- package/app/recipes/commerce.sales/help/index.html +19 -19
- package/app/recipes/commerce.sales/index.html +22 -22
- package/app/recipes/commerce.vendors/help/index.html +19 -19
- package/app/recipes/commerce.vendors/index.html +22 -22
- package/app/recipes/commerce.wholesale/help/index.html +19 -19
- package/app/recipes/commerce.wholesale/index.html +22 -22
- package/app/recipes/content.articles/help/index.html +19 -19
- package/app/recipes/content.articles/index.html +22 -22
- package/app/recipes/events.calendar/help/index.html +19 -19
- package/app/recipes/events.calendar/index.html +22 -22
- package/app/recipes/expenses.tracking/help/index.html +19 -19
- package/app/recipes/expenses.tracking/index.html +22 -22
- package/app/recipes/fields.form-customization/help/index.html +19 -19
- package/app/recipes/fields.form-customization/index.html +22 -22
- package/app/recipes/human-resources.people/help/index.html +19 -19
- package/app/recipes/human-resources.people/index.html +22 -22
- package/app/recipes/human-resources.qualifications/help/index.html +19 -19
- package/app/recipes/human-resources.qualifications/index.html +22 -22
- package/app/recipes/ingestion/help/index.html +19 -19
- package/app/recipes/ingestion/index.html +22 -22
- package/app/recipes/integrations/help/index.html +19 -19
- package/app/recipes/integrations/index.html +22 -22
- package/app/recipes/inventory.stock/help/index.html +19 -19
- package/app/recipes/inventory.stock/index.html +22 -22
- package/app/recipes/ledgers.bookkeeping/help/index.html +19 -19
- package/app/recipes/ledgers.bookkeeping/index.html +22 -22
- package/app/recipes/manufacturing.assemblies/help/index.html +19 -19
- package/app/recipes/manufacturing.assemblies/index.html +22 -22
- package/app/recipes/manufacturing.production/help/index.html +19 -19
- package/app/recipes/manufacturing.production/index.html +22 -22
- package/app/recipes/marketing.campaigns/help/index.html +19 -19
- package/app/recipes/marketing.campaigns/index.html +22 -22
- package/app/recipes/messages/help/index.html +19 -19
- package/app/recipes/messages/index.html +22 -22
- package/app/recipes/places.locations/help/index.html +19 -19
- package/app/recipes/places.locations/index.html +22 -22
- package/app/recipes/products/help/index.html +19 -19
- package/app/recipes/products/index.html +22 -22
- package/app/recipes/profiles.identity/help/index.html +19 -19
- package/app/recipes/profiles.identity/index.html +22 -22
- package/app/recipes/projects.tracker/help/index.html +19 -19
- package/app/recipes/projects.tracker/index.html +22 -22
- package/app/recipes/reports.materialized/help/index.html +19 -19
- package/app/recipes/reports.materialized/index.html +22 -22
- package/app/recipes/reports.runtime/help/index.html +19 -19
- package/app/recipes/reports.runtime/index.html +22 -22
- package/app/recipes/sales.pipeline/help/index.html +19 -19
- package/app/recipes/sales.pipeline/index.html +22 -22
- package/app/recipes/social.posts/help/index.html +19 -19
- package/app/recipes/social.posts/index.html +22 -22
- package/app/recipes/subscriptions.plans/help/index.html +19 -19
- package/app/recipes/subscriptions.plans/index.html +22 -22
- package/app/recipes/support.tickets/help/index.html +19 -19
- package/app/recipes/support.tickets/index.html +22 -22
- package/app/recipes/tags.taxonomy/help/index.html +19 -19
- package/app/recipes/tags.taxonomy/index.html +22 -22
- package/app/recipes/team-collaboration/help/index.html +19 -19
- package/app/recipes/team-collaboration/index.html +22 -22
- package/app/recipes/timesheets.time-entries/help/index.html +19 -19
- package/app/recipes/timesheets.time-entries/index.html +22 -22
- package/app/recipes/video.library/help/index.html +19 -19
- package/app/recipes/video.library/index.html +22 -22
- package/app/recipes/voice.profiles/help/index.html +19 -19
- package/app/recipes/voice.profiles/index.html +22 -22
- package/app/s/custom-accounts/index.html +17 -17
- package/app/s/custom-appointments/index.html +17 -17
- package/app/s/custom-billing/index.html +17 -17
- package/app/s/custom-bookings/index.html +17 -17
- package/app/s/custom-buying/index.html +17 -17
- package/app/s/custom-checkout/index.html +17 -17
- package/app/s/custom-classes/index.html +17 -17
- package/app/s/custom-clients/index.html +17 -17
- package/app/s/custom-events/index.html +17 -17
- package/app/s/custom-fleet/index.html +17 -17
- package/app/s/custom-gigs/index.html +17 -17
- package/app/s/custom-giving/index.html +17 -17
- package/app/s/custom-instruments/index.html +17 -17
- package/app/s/custom-jobs/index.html +17 -17
- package/app/s/custom-kitchen/index.html +17 -17
- package/app/s/custom-lessons/index.html +17 -17
- package/app/s/custom-material/index.html +17 -17
- package/app/s/custom-meetings/index.html +17 -17
- package/app/s/custom-members/index.html +17 -17
- package/app/s/custom-merch/index.html +17 -17
- package/app/s/custom-money/index.html +17 -17
- package/app/s/custom-paint/index.html +17 -17
- package/app/s/custom-parts/index.html +17 -17
- package/app/s/custom-rentals/index.html +17 -17
- package/app/s/custom-roastery/index.html +17 -17
- package/app/s/custom-schedule/index.html +17 -17
- package/app/s/custom-shelf/index.html +17 -17
- package/app/s/custom-shop/index.html +17 -17
- package/app/s/custom-students/index.html +17 -17
- package/app/s/custom-wholesale/index.html +17 -17
- package/app/s/custom-work/index.html +17 -17
- package/app/s/custom-yard/index.html +17 -17
- package/app/s/section-access-control/index.html +17 -17
- package/app/s/section-account-security/index.html +17 -17
- package/app/s/section-accounting/index.html +17 -17
- package/app/s/section-agreements/index.html +17 -17
- package/app/s/section-analytics/index.html +17 -17
- package/app/s/section-approvals/index.html +17 -17
- package/app/s/section-assets/index.html +17 -17
- package/app/s/section-billing/index.html +17 -17
- package/app/s/section-calendar/index.html +17 -17
- package/app/s/section-catalog/index.html +17 -17
- package/app/s/section-grow/index.html +17 -17
- package/app/s/section-make/index.html +17 -17
- package/app/s/section-messages/index.html +17 -17
- package/app/s/section-more/index.html +17 -17
- package/app/s/section-operations/index.html +17 -17
- package/app/s/section-places/index.html +17 -17
- package/app/s/section-projects/index.html +17 -17
- package/app/s/section-publish/index.html +17 -17
- package/app/s/section-purchasing/index.html +17 -17
- package/app/s/section-reports.runtime/index.html +17 -17
- package/app/s/section-sales/index.html +17 -17
- package/app/s/section-staff/index.html +17 -17
- package/app/s/section-support/index.html +17 -17
- package/app/s/section-taxonomy/index.html +17 -17
- package/app/s/section-team/index.html +17 -17
- package/app/s/section-work/index.html +17 -17
- package/dist/catalog/catalog.json +41 -41
- package/dist/core/index.js +43 -43
- package/dist/smrt-version.d.ts +1 -1
- package/dist/smrt-version.js +1 -1
- package/package.json +59 -59
- package/app/_app/immutable/chunks/DFNkurDj.js +0 -29
- package/app/_app/immutable/chunks/T4ARvseH.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,r as t,t as n}from"./COiEfhsA.js";import{$ as r,Ct as i,Dt as a,Et as o,Ft as s,G as c,J as l,K as u,Ot as d,P as f,Pt as p,R as m,U as h,V as g,W as _,bt as v,ct as y,d as b,ft as x,h as S,ht as C,k as ee,kt as w,mt as T,n as E,p as D,pt as O,st as k,t as A,tt as te,vt as j,x as ne}from"./ALAldwdz.js";import{a as re,t as ie}from"./BU1eu_gC.js";import{Nt as ae}from"./DQOcBTE1.js";import{n as oe}from"./Dgd18Zb8.js";import"./B1k33P6j.js";var M=re({"ui.cookbook.assistant":`Assistant`,"ui.stt_test.heading":`STT Adapter Test`,"ui.stt_test.adapter_browser":`Browser (Web Speech API)`,"ui.stt_test.adapter_whisper_wasm":`Whisper WASM (v2)`,"ui.stt_test.adapter_whisper_cpp":`Whisper CPP`,"ui.stt_test.status_initializing":`Initializing...`,"ui.stt_test.status_ready":`Ready`,"ui.stt_test.status_not_initialized":`Not initialized`,"ui.workspace_shell.close_navigation":`Close navigation`,"ui.workspace_shell.close_inspector":`Close inspector`,"ui.workspace_shell.primary_navigation":`Primary navigation`,"ui.workspace_shell.workspace_navigation":`Workspace navigation`,"ui.workspace_shell.inspector_tools":`Inspector tools`,"ui.tools_dock.no_tools_available":`No tools available`,"ui.tools_dock.no_tools_context":`No tools are available for the current context.`,"ui.tools_dock.select_tool":`Select a tool to begin.`,"ui.tools_dock.workspace_tools":`Workspace tools`,"ui.admin_shell.no_focus_tools":`No focus tools`,"ui.admin_shell.focus_tools":`Focus tools`,"ui.admin_shell.no_app_panel":`No app panel`,"ui.admin_shell.no_system_panel":`No system panel`,"ui.admin_shell.shell_shortcuts":`Shell shortcuts`,"ui.admin_shell.close_shortcuts":`Close shortcuts`,"ui.admin_shell.shortcuts":`Shortcuts`,"ui.admin_shell.close":`Close`,"ui.admin_shell.home":`Home`,"ui.admin_shell.menu":`Menu`,"ui.admin_shell.close_menu":`Close menu`,"ui.admin_shell.tools":`Tools`,"ui.admin_shell.close_tools":`Close tools`,"ui.admin_shell.expand_sidebar":`Expand sidebar`,"ui.admin_shell.collapse_sidebar":`Collapse sidebar`,"ui.admin_shell.close_sidebar":`Close sidebar`,"ui.admin_shell.expand_panel":`Expand {panel}`,"ui.admin_shell.collapse_panel":`Collapse {panel}`,"ui.admin_shell.close_panel":`Close {label}`,"ui.admin_shell.open_panel":`Open {label}`,"ui.admin_shell.resize_panel":`Resize {label}`,"ui.admin_shell.panel":`Panel`,"ui.shell_nav_toggle.collapse":`Collapse {label}`,"ui.shell_nav_toggle.expand":`Expand {label}`,"ui.shell_nav_toggle.navigation":`navigation`,"ui.phone_top_bar.back":`Back to {label}`,"ui.phone_bottom_bar.label":`Main`,"ui.phone_bottom_bar.unread":`{count} unread`,"ui.phone_bottom_bar.new":`new`,"ui.activity_toasts.dismiss":`Dismiss activity notification`,"ui.activity_toasts.dismiss_action":`Dismiss`,"ui.activity_item.view":`View`,"ui.activity_item.cancel":`Cancel`,"ui.activity_item.just_now":`just now`,"ui.activity_item.dismiss_item":`Dismiss {title}`,"ui.activity_item.restore":`Restore`,"ui.activity_item.restore_item":`Restore {title}`,"ui.activity_list.empty":`No activities`,"ui.activity_list.no_activity":`No activity.`,"ui.activity_list.caught_up":`You're all caught up.`,"ui.activity_list.no_matching_activity":`No matching activity.`,"ui.activity_list.filter_all":`All`,"ui.activity_list.filter_by_source":`Filter activity by source`,"ui.activity_list.dismiss_visible":`Dismiss visible`,"ui.activity_list.undo":`Undo`,"ui.activity_list.show_dismissed":`Show dismissed ({count})`,"ui.activity_list.hide_dismissed":`Hide dismissed ({count})`,"ui.activity_ticker.label":`Running processes`,"ui.activity_ticker.empty":`No active processes`,"ui.activity_ticker.pause":`Pause scrolling activities`,"ui.activity_ticker.resume":`Resume scrolling activities`,"ui.activity_ticker.queued":`Queued`,"ui.app_scope_panel.app_scope":`App scope`,"ui.app_shell.settings_link":`Shell settings`,"ui.app_shell.navigation":`Application navigation`,"ui.app_shell.slot_content":`{slot} content`,"ui.shell_slot.header_start":`Header, left`,"ui.shell_slot.header_center":`Header, middle`,"ui.shell_slot.header_end":`Header, right`,"ui.shell_slot.footer_start":`Footer, left`,"ui.shell_slot.footer_center":`Footer, middle`,"ui.shell_slot.footer_end":`Footer, right`,"ui.shell_slot.left_sidebar_header":`Left sidebar, header`,"ui.shell_slot.left_sidebar_footer":`Left sidebar, footer`,"ui.shell_slot.right_sidebar_header":`Right sidebar, header`,"ui.shell_slot.right_sidebar_footer":`Right sidebar, footer`,"ui.shell_slot.short_header_start":`Left`,"ui.shell_slot.short_header_center":`Middle`,"ui.shell_slot.short_header_end":`Right`,"ui.shell_slot.short_footer_start":`Left`,"ui.shell_slot.short_footer_center":`Middle`,"ui.shell_slot.short_footer_end":`Right`,"ui.shell_slot.short_sidebar_header":`Header`,"ui.shell_slot.short_sidebar_footer":`Footer`,"ui.owner_setup.heading":`Set up your local application`,"ui.owner_setup.unavailable":`Local owner setup is unavailable or has already been completed.`,"ui.owner_setup.intro":`Create the real local owner account. This invitation works once and stays on this device.`,"ui.owner_setup.name":`Name`,"ui.owner_setup.email":`Email`,"ui.owner_setup.tenant_name":`Workspace name (optional)`,"ui.owner_setup.submit":`Create owner`,"ui.shell_settings_page.heading":`Settings`,"ui.shell_settings_page.description":`Adjust appearance, your account, and the workspace layout.`,"ui.shell_settings_page.back":`All settings`,"ui.shell_settings_page.menu_label":`Settings sections`,"ui.shell_settings_page.appearance_description":`Theme and light or dark color scheme.`,"ui.shell_settings_page.account_description":`Who you are signed in as, and sign out.`,"ui.shell_settings_page.layout_description":`Show or hide workspace areas and reset the layout.`,"ui.shell_settings_page.shortcuts_description":`Keyboard shortcuts for the workspace areas.`,"ui.hotkey_input.capture_title":`Press a key to capture it`,"ui.hotkey_input.conflicts_with":`Conflicts with`,"ui.shell_settings_panel.shell_settings":`Shell settings`,"ui.shell_settings_panel.description":`Show or hide the workspace areas and reset the layout.`,"ui.shell_settings_panel.disable_hotkeys":`Disable hotkeys`,"ui.shell_settings_panel.enable_hotkeys":`Enable hotkeys`,"ui.shell_settings_panel.collapse":`Collapse`,"ui.shell_settings_panel.expand":`Expand`,"ui.owner_setup.link_missing_heading":`This setup link is missing or has expired`,"ui.owner_setup.link_missing_body":`Setup links work once and only for a short time. Run these commands from the app folder. Recovery requires stopping the app first.`,"ui.owner_setup.desktop_reopen":`Reopen the desktop app to sign in with a fresh link.`,"ui.owner_setup.recovery_open":`Open a fresh setup link`,"ui.owner_setup.recovery_recover":`Recover the setup invitation`,"ui.shell_settings.appearance":`Appearance`,"ui.shell_settings.theme":`Theme`,"ui.shell_settings.color_scheme":`Color scheme`,"ui.shell_settings.account":`Account`,"ui.shell_settings.account_name":`Name`,"ui.shell_settings.account_email":`Email`,"ui.shell_settings.account_signed_out":`You are not signed in.`,"ui.shell_settings.sign_out":`Sign out`,"ui.shell_settings.sign_out_failed":`Couldn't sign out. Try again.`,"ui.shell_settings.layout":`Layout`,"ui.shell_settings.hide":`Hide`,"ui.shell_settings.show":`Show`,"ui.shell_settings.edit_layout_on":`Editing layout`,"ui.shell_settings.edit_layout_off":`Edit layout`,"ui.shell_settings.reset_layout":`Reset layout`,"ui.shell_settings.panels":`Shown areas`,"ui.shell_settings.show_region":`Show {region}`,"ui.shell_settings.hide_region":`Hide {region}`,"ui.shell_settings.region_shown":`Shown`,"ui.shell_settings.region_hidden":`Hidden`,"ui.shell_settings.shortcuts":`Keyboard shortcuts`,"ui.shell_layout_editor.heading":`Shell layout`,"ui.shell_layout_editor.description":`Choose which panels appear and arrange the navigation. Drag a handle, or focus it, press Space, and use the arrow keys.`,"ui.shell_layout_editor.reset":`Reset to defaults`,"ui.shell_layout_editor.panels":`Panels`,"ui.shell_layout_editor.show_panel":`Show {panel} panel`,"ui.shell_layout_editor.start_expanded":`Start {panel} panel expanded`,"ui.shell_layout_editor.panel_unavailable":`The {panel} panel is not available in this app.`,"ui.shell_layout_editor.navigation":`Navigation`,"ui.shell_layout_editor.top_level":`Top level`,"ui.shell_layout_editor.show_entry":`Show {label} in navigation`,"ui.shell_layout_editor.new_section":`New section`,"ui.shell_layout_editor.new_section_label":`New section`,"ui.shell_layout_editor.section_name":`Name of section {label}`,"ui.shell_layout_editor.rename_item":`Rename {label}`,"ui.shell_layout_editor.item_name":`Name of item {label}`,"ui.shell_layout_editor.reset_item":`Reset {label} to {original}`,"ui.shell_layout_editor.section_icon":`Icon of {label}`,"ui.shell_layout_editor.icon_option":`Use {icon} icon`,"ui.section_menu.label":`{label} entries`,"ui.section_menu.empty":`No entries in this section.`,"ui.shell_layout_editor.show_title_for":`Show title of {label}`,"ui.shell_layout_editor.delete":`Delete`,"ui.shell_layout_editor.delete_section":`Delete section {label}`,"ui.shell_layout_editor.delete_confirm":`Delete {label}? Its items return to their default sections.`,"ui.shell_layout_editor.preview":`Preview`,"ui.shell_layout_editor.preview_label":`Navigation preview`,"ui.shell_layout_editor.sortable_label":`Navigation sections and items`,"ui.layout_edit.toggle":`Edit layout`,"ui.layout_edit.announce_on":`Layout editing on. Drag items between zones, or focus a grip, press Space, and use the arrow keys.`,"ui.layout_edit.announce_off":`Layout editing off.`,"ui.layout_edit.zone":`{region} · {slot}`,"ui.layout_edit.region_hidden":`{region} · hidden`,"ui.layout_edit.show_region":`Show {region}`,"ui.layout_edit.hide_region":`Hide {region}`,"ui.layout_edit.hide_last_region":`Cannot hide {region}: at least one region must stay visible`,"ui.app_shell.brand_item":`App title`,"ui.layout_edit.section_options":`Options for section {label}`,"ui.layout_edit.edit_section":`Edit section {label}`,"ui.shell_region.header":`Header`,"ui.shell_region.left_sidebar":`Left sidebar`,"ui.shell_region.right_sidebar":`Right sidebar`,"ui.shell_region.footer":`Footer`,"ui.shortcuts_overlay.open_shortcuts":`Open shortcuts`,"ui.shortcuts_overlay.close_drawer":`Close drawer`,"ui.shortcuts_overlay.close":`Close`,"ui.shortcuts_overlay.escape":`Esc`,"ui.system_scope_panel.system_scope":`System scope`,"ui.system_scope_panel.activities":`Activities`,"ui.system_scope_panel.no_running_work":`No running work`,"ui.system_status_chips.system_status":`System status`,"ui.tenant_nav.tenant_navigation":`Tenant navigation`,"ui.tenant_nav.needs_attention":`Needs attention`,"ui.workspace_account_menu.open":`Open account menu`,"ui.workspace_account_menu.current_tenant":`{tenant} — current`,"ui.workspace_account_menu.sign_out":`Sign out`,"ui.workspace_account_menu.pending":`{count} waiting`,"ui.activity_feed.title":`Live activity feed`,"ui.activity_feed.description":`A smrt-web live collection reconciled into the shell activity registry.`,"ui.activity_feed.enqueue_job":`Enqueue job`,"ui.activity_feed.advance_job":`Advance job`,"ui.activity_feed.complete_job":`Complete job`,"ui.activity_feed.fail_job":`Fail job`,"ui.activity_feed.clear_finished":`Clear finished`,"ui.activity_feed.rows_heading":`Backing collection rows`,"ui.activity_feed.no_rows":`No rows yet`,"ui.activity_feed.job_label":`Render job`,"ui.system_feed.title":`System feed`,"ui.system_feed.description":`Polls an app-provided status endpoint and maps it into the system-scope panels and status chips.`,"ui.system_feed.pause":`Pause polling`,"ui.system_feed.resume":`Resume polling`,"ui.system_feed.refresh":`Refresh now`,"ui.system_feed.fail_next":`Fail next fetch`,"ui.system_feed.status_label":`Feed status`,"ui.system_feed.tick_label":`Ticks`,"ui.system_feed.error_label":`Last error`,"ui.system_feed.jobs_panel":`Jobs`,"ui.system_feed.schedules_panel":`Schedules`,"ui.system_feed.dispatch_panel":`Dispatch`,"ui.system_feed.chip_workers":`Workers`,"ui.system_feed.chip_running":`Running`,"ui.system_feed.chip_queued":`Queued`,"ui.system_feed.chip_failed":`Failed`,"ui.phone_tab_bar.label":`Main`,"ui.phone_tab_bar.more":`More`,"ui.app_shell.account_item":`Account menu`,"ui.app_shell.color_scheme_item":`Color scheme`,"ui.app_shell.color_scheme_dark":`Dark mode`,"ui.app_shell.color_scheme_to_dark":`Switch to dark mode`,"ui.app_shell.color_scheme_to_light":`Switch to light mode`,"ui.app_shell.command_palette_item":`Search`,"ui.app_shell.account_settings":`Settings`,"ui.app_shell.theme_item":`Theme: {mode}`,"ui.app_shell.theme_light":`Light`,"ui.app_shell.theme_dark":`Dark`,"ui.app_shell.panel_toggle":`Panel`,"ui.dock_toggles.set_up":`Set up {label}`});function N(e){for(let t of e){let e=t.codePointAt(0)??0;if(e<=31||e===127)return!0}return!1}function se(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`//`)||t.includes(`\\`)||N(t)))try{let e=new URL(t,`https://smrt.invalid`);return[`https:`,`http:`].includes(e.protocol)?t:void 0}catch{return}}var ce=/^\d{4}-\d{2}-\d{2}$/,le=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:?\d{2})$/i,ue=864e13;function de(e){return typeof e==`number`&&Number.isFinite(e)&&Math.abs(e)<=ue}function fe(e){let t=e?.trim();if(!t)return`UTC`;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:t}),t}catch{return`UTC`}}function pe(e){try{return new Intl.RelativeTimeFormat(e,{numeric:`auto`,style:`short`})}catch{return new Intl.RelativeTimeFormat(`en-US`,{numeric:`auto`,style:`short`})}}function P(e,t,n,r){try{return new Intl.DateTimeFormat(t,n).format(e)}catch{try{return new Intl.DateTimeFormat(`en-US`,n).format(e)}catch{return r}}}function me(e,t,n,r,i){let a=i?t:e.toISOString(),o=P(e,n,i?{dateStyle:`long`,timeZone:`UTC`}:{dateStyle:`medium`,timeStyle:`short`,timeZone:r},a);return o===a?a:`${o} (${a})`}function he(e,t,n,r,i){return P(e,n,i?{dateStyle:`medium`,timeZone:`UTC`}:{dateStyle:`medium`,timeStyle:`short`,timeZone:r},i?t:e.toISOString())}function ge(e,t,n){return Date.UTC(e,t-1,n)}function _e(e,t){let n=new Intl.DateTimeFormat(`en-CA`,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`}).formatToParts(new Date(e));return ge(Number(n.find(e=>e.type===`year`)?.value),Number(n.find(e=>e.type===`month`)?.value),Number(n.find(e=>e.type===`day`)?.value))}function ve(e,t={}){if(typeof e!=`string`)return null;let n=e.trim();if(!n)return null;let r=ce.test(n),i=!r&&le.test(n);if(!r&&!i)return{title:n,label:n};let a=r?`${n}T00:00:00.000Z`:n.replace(` `,`T`).replace(/([+-]\d{2})(\d{2})$/,`$1:$2`),o=new Date(a),s=o.getTime();if(!Number.isFinite(s)||r&&o.toISOString().slice(0,10)!==n)return{title:n,label:n};let c=t.locale?.trim()||`en-US`,l=fe(t.timeZone),u=t.justNowLabel||`just now`,d=de(t.now),f;if(!d)f=he(o,n,c,l,r);else if(r){let[e,r,i]=n.split(`-`),a=ge(Number(e),Number(r),Number(i)),o=_e(t.now,l),s=Math.round((a-o)/864e5),u=Math.abs(s),d=s<0?-1:1,p=pe(c);f=u===0?p.format(0,`day`):u<7?p.format(s,`day`):u<30?p.format(d*Math.max(1,Math.round(u/7)),`week`):u<365?p.format(d*Math.max(1,Math.round(u/30)),`month`):p.format(d*Math.max(1,Math.round(u/365)),`year`)}else{let e=Math.round((s-t.now)/1e3),n=Math.abs(e);if(n<45)f=u;else{let t=pe(c),r=e<0?-1:1,i=Math.round(n/60),a=Math.round(n/3600),o=Math.round(n/86400);f=n<3600?t.format(r*Math.max(1,i),`minute`):n<86400?t.format(r*Math.max(1,a),`hour`):o<7?t.format(r*Math.max(1,o),`day`):o<30?t.format(r*Math.max(1,Math.round(o/7)),`week`):o<365?t.format(r*Math.max(1,Math.round(o/30)),`month`):t.format(r*Math.max(1,Math.round(o/365)),`year`)}}return{datetime:r?n:o.toISOString(),title:me(o,n,c,l,r),label:f}}var ye=c(`<span class="smrt-activity-item__source svelte-1feuf58" data-smrt-part="source"> </span>`),be=c(`<a class="smrt-activity-item__context smrt-activity-item__context--link svelte-1feuf58" data-smrt-part="context"> </a>`),xe=c(`<span class="smrt-activity-item__context svelte-1feuf58" data-smrt-part="context"> </span>`),Se=c(`<span class="smrt-activity-item__job-status svelte-1feuf58" data-smrt-part="status"> </span>`),Ce=c(`<span class="smrt-activity-item__meta-text svelte-1feuf58" data-smrt-part="meta"> </span>`),we=c(`<time class="smrt-activity-item__time svelte-1feuf58" data-smrt-part="time"> </time>`),Te=c(`<span class="smrt-activity-item__time svelte-1feuf58" data-smrt-part="time"> </span>`),Ee=c(`<div class="smrt-activity-item__eyebrow svelte-1feuf58" data-smrt-part="eyebrow"><div class="smrt-activity-item__eyebrow-items svelte-1feuf58"><!> <!> <!> <!> <!></div> <!></div>`),De=c(`<code class="smrt-activity-item__code svelte-1feuf58" data-smrt-part="code"> </code>`),Oe=c(`<p class="smrt-activity-item__detail svelte-1feuf58" data-smrt-part="detail"> </p>`),ke=c(`<progress max="100" class="svelte-1feuf58"> </progress>`),Ae=c(`<span aria-hidden="true">✕</span>`),je=c(`<div class="smrt-activity-item__actions svelte-1feuf58" data-smrt-part="actions"><!> <!> <!></div>`),Me=c(`<article data-smrt-component="ActivityItem"><div class="smrt-activity-item__main svelte-1feuf58" data-smrt-part="body"><!> <div class="smrt-activity-item__heading svelte-1feuf58" data-smrt-part="heading"><!> <strong class="smrt-activity-item__title svelte-1feuf58" data-smrt-part="title"> </strong></div> <!> <!></div> <!></article>`);function Ne(e,t){d(t,!0);let n=new Set([`neutral`,`primary`,`success`,`warning`,`error`]),{locale:o,t:c}=ie(),u=i(()=>t.locale?.trim()||o),m=i(()=>!!t.entry?.dismissed),v=i(()=>t.entry?t.entry.title:t.activity?.label??``),y=i(()=>t.entry?t.entry.detail:t.activity?.message),b=i(()=>t.entry?.code?.trim()||void 0),ee=i(()=>t.entry?.sourceLabel?.trim()||t.entry?.source?.trim()||void 0),w=i(()=>t.entry?.context?.label?.trim()||void 0),E=i(()=>r(w)?se(t.entry?.context?.href):void 0),A=i(()=>{let e=t.entry?.status?.label?.trim();if(!e)return null;let r=t.entry?.status?.tone;return{label:e,tone:r&&n.has(r)?r:`neutral`}}),te=i(()=>t.entry?.meta?.trim()||void 0),j=i(()=>t.entry?void 0:t.activity?.status),re=i(()=>t.entry?t.entry.occurredAt:t.activity?.updatedAt??t.activity?.createdAt),N=i(()=>ve(r(re),{locale:r(u),timeZone:t.timeZone,justNowLabel:c(M[`ui.activity_item.just_now`]),now:t.now})),ce=i(()=>!!(r(ee)||r(w)||r(A)||r(te)||r(j)||r(N))),le=i(()=>se(t.entry?t.entry.href:t.activity?.detailHref)),ue=i(()=>!(t.entry||!t.activity?.cancel||t.activity.status!==`queued`&&t.activity.status!==`running`)),de=i(()=>!!(t.entry&&r(m)&&t.onRestore)),fe=i(()=>!!(t.entry&&!r(m)&&t.onDismiss)),pe=i(()=>!!(r(le)||r(ue)||r(de)||r(fe)));var P=Me();let me;var he=x(P),ge=x(he),_e=e=>{var t=Ee(),n=x(t),i=x(n),a=e=>{var t=ye(),n=T(t,!0);k(()=>g(n,r(ee))),h(e,t)};f(i,e=>{r(ee)&&e(a)});var o=C(i,2),c=e=>{var t=_(),n=O(t),i=e=>{var t=be(),n=T(t,!0);k(()=>{D(t,`href`,r(E)),g(n,r(w))}),h(e,t)},a=e=>{var t=xe(),n=T(t,!0);k(()=>g(n,r(w))),h(e,t)};f(n,e=>{r(E)?e(i):e(a,-1)}),h(e,t)};f(o,e=>{r(w)&&e(c)});var u=C(o,2),d=e=>{ae(e,{size:`sm`,get variant(){return r(A).tone},children:(e,t)=>{p();var n=l();k(()=>g(n,r(A).label)),h(e,n)},$$slots:{default:!0}})};f(u,e=>{r(A)&&e(d)});var m=C(u,2),v=e=>{var t=Se(),n=T(t,!0);k(()=>g(n,r(j))),h(e,t)};f(m,e=>{r(j)&&e(v)});var y=C(m,2),b=e=>{var t=Ce(),n=T(t,!0);k(()=>g(n,r(te))),h(e,t)};f(y,e=>{r(te)&&e(b)}),s(n);var S=C(n,2),ne=e=>{var t=_(),n=O(t),i=e=>{var t=we(),n=T(t,!0);k(()=>{D(t,`datetime`,r(N).datetime),D(t,`title`,r(N).title),g(n,r(N).label)}),h(e,t)},a=e=>{var t=Te(),n=T(t,!0);k(()=>g(n,r(N).label)),h(e,t)};f(n,e=>{r(N).datetime?e(i):e(a,-1)}),h(e,t)};f(S,e=>{r(N)&&e(ne)}),s(t),h(e,t)};f(ge,e=>{r(ce)&&e(_e)});var Ne=C(ge,2),Pe=x(Ne),Fe=e=>{var t=De(),n=T(t,!0);k(()=>g(n,r(b))),h(e,t)};f(Pe,e=>{r(b)&&e(Fe)});var Ie=C(Pe,2),Le=T(Ie,!0);s(Ne);var Re=C(Ne,2),ze=e=>{var t=Oe(),n=T(t,!0);k(()=>g(n,r(y))),h(e,t)};f(Re,e=>{r(y)&&e(ze)});var Be=C(Re,2),Ve=e=>{var n=ke(),r=T(n);k(e=>{S(n,t.activity.progress),g(r,`${e??``}%`)},[()=>Math.round(t.activity.progress)]),h(e,n)};f(Be,e=>{!t.entry&&typeof t.activity?.progress==`number`&&e(Ve)}),s(he);var He=C(he,2),Ue=e=>{var n=je(),a=x(n),o=e=>{oe(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,get href(){return r(le)},children:(e,t)=>{p();var n=l();k(e=>g(n,e),[()=>c(M[`ui.activity_item.view`])]),h(e,n)},$$slots:{default:!0}})};f(a,e=>{r(le)&&e(o)});var u=C(a,2),d=e=>{{let n=i(()=>c(M[`ui.activity_item.restore_item`],{title:t.entry.title}));oe(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,get"aria-label"(){return r(n)},onclick:()=>void t.onRestore?.(t.entry.id),children:(e,t)=>{p();var n=l();k(e=>g(n,e),[()=>c(M[`ui.activity_item.restore`])]),h(e,n)},$$slots:{default:!0}})}},m=e=>{{let n=i(()=>c(M[`ui.activity_item.dismiss_item`],{title:t.entry.title})),a=i(()=>c(M[`ui.activity_item.dismiss_item`],{title:t.entry.title}));oe(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,class:`smrt-activity-item__dismiss`,get"aria-label"(){return r(n)},get title(){return r(a)},onclick:()=>void t.onDismiss?.(t.entry.id),children:(e,t)=>{var n=Ae();h(e,n)},$$slots:{default:!0}})}};f(u,e=>{r(de)&&t.entry?e(d):r(fe)&&t.entry&&e(m,1)});var _=C(u,2),v=e=>{oe(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,onclick:()=>t.activity.cancel?.(),children:(e,t)=>{p();var n=l();k(e=>g(n,e),[()=>c(M[`ui.activity_item.cancel`])]),h(e,n)},$$slots:{default:!0}})};f(_,e=>{r(ue)&&t.activity&&e(v)}),s(n),h(e,n)};f(He,e=>{r(pe)&&e(Ue)}),s(P),k(()=>{me=ne(P,1,`smrt-activity-item svelte-1feuf58`,null,me,{"smrt-activity-item--dismissed":r(m)}),D(P,`data-status`,t.entry?r(A)?.tone:t.activity?.status),D(P,`data-dismissed`,r(m)?`true`:void 0),g(Le,r(v))}),h(e,P),a()}var Pe={edit:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z`,undo:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z`,done:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z`,eye:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z`,eyeOff:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z`,heading:`M5 4v3h5.5v12h3V7H19V4z`,headingOff:`M5 4v3h5.5v12h3V7H19V4zM3.5 2.5L2.1 3.9l18 18 1.4-1.4z`,trash:`M7 3h10v2h4v2H3V5h4V3zm-2 6h14v12H5V9zm4 2v8h2v-8H9zm4 0v8h2v-8h-2z`,add:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`,more:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`,settings:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z`,calendar:`M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z`,users:`M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z`,shoppingBag:`M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-8 4c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2zm2-6c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm4 6c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2z`,receipt:`M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z`,book:`M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z`,briefcase:`M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z`,truck:`M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z`,package:`M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-5 12H9v-2h6v2zm5-7H4V4h16v3z`,wrench:`M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z`,fileText:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z`,layers:`M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z`,folder:`M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z`,bank:`M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z`,creditCard:`M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z`,school:`M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z`,home:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`,repeat:`M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z`,tag:`M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z`,archive:`M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z`,placeholder:`M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10z`,chevronRight:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`,menu:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,chat:`M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z`,lightMode:`M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z`,darkMode:`M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z`,mic:`M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.91-3c-.49 0-.9.36-.98.85C16.52 14.2 14.47 16 12 16s-4.52-1.8-4.93-4.15c-.08-.49-.49-.85-.98-.85-.61 0-1.09.54-1 1.14.49 3 2.89 5.35 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08c3.02-.43 5.42-2.78 5.91-5.78.1-.6-.39-1.14-1-1.14z`,micOff:`M15 10.6V5c0-1.66-1.34-3-3-3-1.54 0-2.79 1.16-2.96 2.65L15 10.6zm3.08 1.96c.26-.5.43-1.05.43-1.56 0-.55-.45-1-1-1s-1 .45-1 1c0 .17-.03.34-.08.5l1.65 1.06zM4.27 3L3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73 4.27 3z`,close:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z`},Fe=`wrench`,Ie=`folder`,Le=`placeholder`,Re=[`folder`,`home`,`calendar`,`users`,`school`,`shoppingBag`,`truck`,`package`,`receipt`,`creditCard`,`bank`,`book`,`fileText`,`briefcase`,`wrench`,`layers`,`repeat`,`tag`,`archive`,`settings`];function ze(e){return Object.hasOwn(Pe,e)}function Be(e){let t=e-1;return t*t*t+1}function Ve(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=Be}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=He(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function He(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var Ue=`(prefers-reduced-motion: reduce)`,We=`--smrt-duration-short4`;function Ge(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(Ue).matches}function Ke(e){let t=/^(-?\d*\.?\d+)(ms|s)$/.exec(e.trim());if(!t)return 0;let n=Number(t[1])*(t[2]===`s`?1e3:1);return Number.isFinite(n)&&n>0?n:0}function qe(e,t){if(Ge()||typeof document>`u`||typeof getComputedStyle!=`function`)return 0;let n=t??document.documentElement;return Ke(getComputedStyle(n).getPropertyValue(e))}function Je(e,t,n={}){return Ve(e,t,{duration:qe(n.token??We,e)})}var Ye=Symbol(`smrt-shell-layout`);function Xe(e){return w(Ye,e),e}function Ze(){let e=o(Ye);if(!e)throw Error(`[useShellLayout] No AppShell layout found on context.`);return e}function Qe(){return o(Ye)??null}var $e=u(`<svg viewBox="0 0 24 24" fill="currentColor" focusable="false"><path></path></svg>`),et=c(`<span class="smrt-shell-section-icon svelte-9hljle" aria-hidden="true" data-smrt-component="ShellSectionIcon"><!></span>`);function tt(e,t){d(t,!0);let n=A(t,`size`,3,18),o=i(()=>!ze(t.name)&&!t.iconComponent);y(()=>{r(o)});var c=et(),l=x(c),u=e=>{var r=$e(),i=T(r);k(()=>{D(r,`width`,n()),D(r,`height`,n()),D(i,`d`,Pe[t.name])}),h(e,r)},p=i(()=>ze(t.name)),m=e=>{var r=_(),i=O(r);ee(i,()=>t.iconComponent,(e,r)=>{r(e,{get name(){return t.name},get size(){return n()}})}),h(e,r)},g=e=>{var t=$e(),r=T(t);k(()=>{D(t,`width`,n()),D(t,`height`,n()),D(r,`d`,Pe[Ie])}),h(e,t)};f(l,e=>{r(p)?e(u):t.iconComponent?e(m,1):e(g,-1)}),s(c),h(e,c),a()}var nt=new Set([`$$slots`,`$$events`,`$$legacy`,`label`,`icon`,`children`,`pressed`,`tooltip`,`size`,`type`,`class`]),rt=u(`<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path></path></svg>`),it=c(`<button><!></button>`);function at(e,t){d(t,!0);let n=A(t,`size`,3,18),r=A(t,`type`,3,`button`),i=A(t,`class`,3,``),o=E(t,nt);var c=it();b(c,()=>({...o,type:r(),class:`smrt-shell-icon-button ${i()??``}`,"aria-label":t.label,title:t.tooltip??t.label,"aria-pressed":t.pressed,"data-smrt-component":`ShellIconButton`}),void 0,void 0,void 0,`svelte-1mggjot`);var l=x(c),u=e=>{var n=_(),r=O(n);m(r,()=>t.children),h(e,n)},p=e=>{var r=rt(),i=T(r);k(()=>{D(r,`width`,n()),D(r,`height`,n()),D(i,`d`,Pe[t.icon])}),h(e,r)};f(l,e=>{t.children?e(u):t.icon&&e(p,1)}),s(c),h(e,c),a()}function ot(e,t){return Math.max(0,Math.min(e,t))}var st=class{options;#e=v();get drag(){return r(this.#e)}set drag(e){j(this.#e,e,!0)}#t=v(``);get announcement(){return r(this.#t)}set announcement(e){j(this.#t,e,!0)}#n=v();get focusItemId(){return r(this.#n)}set focusItemId(e){j(this.#n,e,!0)}#r=v();get suppressedSelectionId(){return r(this.#r)}set suppressedSelectionId(e){j(this.#r,e,!0)}#i=v(!1);get pending(){return r(this.#i)}set pending(e){j(this.#i,e,!0)}#a=v();get pointerSession(){return r(this.#a)}set pointerSession(e){j(this.#a,e,!0)}constructor(e){this.options=e,y(()=>{if(!this.focusItemId)return;let e=this.focusItemId;this.focusItemId=void 0,te().then(()=>{let t=this.options.root(),n=t?Array.from(t.querySelectorAll(this.options.selectors.item)).find(t=>t.dataset[this.options.selectors.itemKey]===e):void 0;(n?this.options.focusTarget?this.options.focusTarget(n):n:void 0)?.focus()})})}get movable(){return this.options.enabled()&&!this.pending}get nativeDraggable(){return this.movable&&this.pointerSession===void 0}get containers(){return this.options.containers()}itemsIn(e,t){let n=this.options.itemIds(e);return t?n.filter(e=>e!==t):n}findContainer(e){return this.containers.find(t=>t.id===e)}positionFor(e){if(this.options.itemLabel(e)!==void 0)for(let t of this.containers){let n=this.itemsIn(t.id).indexOf(e);if(n>=0)return{containerId:t.id,index:n}}}label(e){return this.options.itemLabel(e)??``}say(e){this.announcement=this.options.announce(e)}pickup(e,t){if(!this.movable)return;let n=this.positionFor(e);n&&(this.drag={itemId:e,source:n,target:{...n},mode:t},this.say({type:`pickup`,item:this.label(e),destinations:this.containers.filter(e=>!e.disabled).map(e=>e.label)}))}announcePosition(e){let t=this.findContainer(e.target.containerId);t&&this.options.itemLabel(e.itemId)!==void 0&&this.say({type:`position`,item:this.label(e.itemId),container:t.label,position:e.target.index+1,count:this.itemsIn(t.id,e.itemId).length+1})}moveKeyboardTarget(e,t){let n=this.drag;if(n?.mode!==`keyboard`)return;let r=this.options.orientation?.()===`vertical`,i={...n.target};if(this.options.flow?.()){let r=e===`horizontal`&&this.isRtl(),a=this.itemsIn(i.containerId,n.itemId).length;i.index=ot(i.index+(r?-t:t),a),this.drag={...n,target:i},this.announcePosition(this.drag);return}let a=!this.options.allowSameContainerReorder()&&i.containerId===n.source.containerId;if(e===`vertical`){if(a&&!r)return;let e=this.itemsIn(i.containerId,n.itemId).length,o=a?t<0?-1:e+1:i.index+t;if(r&&(o<0||o>e)){let e=this.containers.findIndex(e=>e.id===i.containerId),r=this.containers[e+t];if(!r)return;if(r.disabled){this.say({type:`unavailable`,container:r.label});return}i.containerId=r.id,i.index=t<0?this.itemsIn(r.id,n.itemId).length:0}else i.index=ot(o,e)}else{if(r)return;let e=this.containers.findIndex(e=>e.id===i.containerId),a=this.containers[e+t];if(!a)return;if(a.disabled){this.say({type:`unavailable`,container:a.label});return}i.containerId=a.id,i.index=ot(i.index,this.itemsIn(a.id,n.itemId).length)}!this.options.allowSameContainerReorder()&&i.containerId===n.source.containerId&&(i.index=n.source.index),this.drag={...n,target:i},this.announcePosition(this.drag)}isRtl(){let e=this.options.root();return e!==void 0&&typeof getComputedStyle==`function`&&getComputedStyle(e).direction===`rtl`}async drop(){let e=this.drag;if(!e)return;let t=this.options.itemLabel(e.itemId),n=this.findContainer(e.target.containerId),r=t!==void 0&&this.findContainer(e.source.containerId)!==void 0&&n!==void 0&&!n.disabled;if(this.drag=void 0,this.suppressSelection(e.itemId),r&&t!==void 0&&n){if(e.source.containerId===e.target.containerId&&e.source.index===e.target.index)this.focusItemId=e.itemId;else{this.pending=!0;try{await this.options.commit({itemId:e.itemId,source:e.source,target:e.target})}catch{this.say({type:`failed`,item:t}),this.focusItemId=e.itemId;return}finally{this.pending=!1}this.say({type:`drop`,item:t,container:n.label,position:e.target.index+1,count:this.itemsIn(n.id,e.itemId).length+1}),this.focusItemId=e.itemId}}}cancel(e=!0,t=!0){let n=this.drag;if(!n)return;let r=this.options.itemLabel(n.itemId);r!==void 0&&e&&this.say({type:`cancel`,item:r}),r!==void 0&&t&&(this.focusItemId=n.itemId),this.suppressSelection(n.itemId),this.drag=void 0}suppressSelection(e){this.suppressedSelectionId=e,window.setTimeout(()=>{this.suppressedSelectionId===e&&(this.suppressedSelectionId=void 0)},0)}consumeClick(e){return this.suppressedSelectionId===e&&(this.suppressedSelectionId=void 0,!0)}keydown(e,t){let n=this.drag;if(n)n.itemId===t&&n.mode===`keyboard`&&(e.key===`Escape`?(e.preventDefault(),this.cancel()):e.key===` `||e.key===`Enter`?(e.preventDefault(),this.drop()):e.key===`ArrowLeft`?(e.preventDefault(),this.moveKeyboardTarget(`horizontal`,-1)):e.key===`ArrowRight`?(e.preventDefault(),this.moveKeyboardTarget(`horizontal`,1)):e.key===`ArrowUp`?(e.preventDefault(),this.moveKeyboardTarget(`vertical`,-1)):e.key===`ArrowDown`&&(e.preventDefault(),this.moveKeyboardTarget(`vertical`,1)));else if(e.key===` `||e.key===`Enter`){if(!this.movable)return;e.preventDefault(),this.pickup(t,`keyboard`)}}blur(e,t){let n=this.drag;if(n?.mode!==`keyboard`||n.itemId!==t)return;let r=e.relatedTarget,i=e.currentTarget;r instanceof Node&&i instanceof Node&&i.contains(r)||this.cancel(!0,!1)}dragStart(e,t){this.movable?(this.pickup(t,`pointer`),e.dataTransfer?.setData(`text/plain`,t),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)):e.preventDefault()}dragEnd(){this.drag?.mode===`pointer`&&this.cancel()}pointerDown(e,t){this.movable&&e.button===0&&(this.pointerSession={itemId:t,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,active:!1},e.currentTarget.setPointerCapture?.(e.pointerId))}elementAtPointer(e){return document.elementFromPoint?.(e.clientX,e.clientY)??e.target}setPointerTargetFromElement(e,t,n){let r=this.options.root();if(!e||!r?.contains(e))return;let{selectors:i}=this.options,a=e.closest(i.container)?.dataset[i.containerKey];if(!a)return;let o=this.findContainer(a);if(!o||o.disabled)return o;let s=e.closest(i.item);if(!s)return this.pointerTarget(a,this.itemsIn(a,this.drag?.itemId).length),o;let c=this.itemsIn(a).indexOf(s.dataset[i.itemKey]??``);return c<0||this.pointerTarget(a,this.insertionIndex(a,c,s,t,n)),o}insertionIndex(e,t,n,r,i){let a=n.getBoundingClientRect(),o=r<a.top+a.height/2;if(this.options.flow?.()&&i!==void 0){let e=this.options.root()?.getBoundingClientRect().width??0;if(a.width<e*.95){let e=a.left+a.width/2;o=this.isRtl()?i>e:i<e}}let s=t+ +!o,c=this.drag;return c?.source.containerId===e&&s>c.source.index&&--s,s}finishPointerSession(e,t=!1){let n=this.pointerSession;this.pointerSession=void 0;let r=e.currentTarget;if(r.hasPointerCapture?.(e.pointerId)&&r.releasePointerCapture(e.pointerId),!n?.active||this.drag?.itemId!==n.itemId)return;if(t){this.cancel();return}let i=this.setPointerTargetFromElement(this.elementAtPointer(e),e.clientY,e.clientX);i?.disabled?(this.say({type:`unavailable`,container:i.label}),this.cancel(!1)):i?this.drop():this.cancel()}pointerUp(e){this.finishPointerSession(e)}pointerCancel(e){this.finishPointerSession(e,!0)}pointerMove(e){let t=this.pointerSession;if(t&&t.pointerId===e.pointerId){if(!t.active){if(Math.hypot(e.clientX-t.startX,e.clientY-t.startY)<6)return;this.pickup(t.itemId,`pointer`),this.pointerSession={...t,active:!0}}e.preventDefault(),this.setPointerTargetFromElement(this.elementAtPointer(e),e.clientY,e.clientX)}}pointerTarget(e,t){let n=this.drag;if(n?.mode!==`pointer`)return;if(!this.options.allowSameContainerReorder()&&e===n.source.containerId){this.drag={...n,target:{...n.source}};return}let r=this.itemsIn(e,n.itemId).length;this.drag={...n,target:{containerId:e,index:ot(t,r)}}}dropOnItem(e,t,n){if(e.preventDefault(),this.drag?.mode!==`pointer`)return;let r=this.findContainer(t);r?.disabled?(this.say({type:`unavailable`,container:r.label}),this.cancel(!1)):(this.pointerTarget(t,this.insertionIndex(t,n,e.currentTarget,e.clientY,e.clientX)),this.drop())}dropOnContainer(e,t){e.preventDefault();let n=this.findContainer(t);n?.disabled?(this.say({type:`unavailable`,container:n.label}),this.cancel(!1)):(this.pointerTarget(t,this.itemsIn(t,this.drag?.itemId).length),this.drop())}};function ct(e){return new st(e)}var lt=BigInt(2**32-1),ut=BigInt(32);function dt(e,t=!1){return t?{h:Number(e<),l:Number(e>>ut<)}:{h:Number(e>>ut<)|0,l:Number(e<)|0}}function ft(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l:o}=dt(e[a],t);[r[a],i[a]]=[n,o]}return[r,i]}new Uint8Array(new Uint32Array([287454020]).buffer)[0];var pt=BigInt(0),mt=BigInt(1),ht=BigInt(2),gt=BigInt(7),_t=BigInt(256),vt=BigInt(113),yt=[],bt=[],xt=[];for(let e=0,t=mt,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],yt.push(2*(5*r+n)),bt.push((e+1)*(e+2)/2%64);let i=pt;for(let e=0;e<7;e++)t=(t<<mt^(t>>gt)*vt)%_t,t&ht&&(i^=mt<<(mt<<BigInt(e))-mt);xt.push(i)}var St=ft(xt,!0);St[0],St[1];var Ct=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,wt=Math.ceil,F=Math.floor,I=`[BigNumber Error] `,Tt=I+`Number primitive has more than 15 significant digits: `,L=0x5af3107a4000,R=14,Et=9007199254740991,Dt=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,0xe8d4a51000,0x9184e72a000],z=1e7,B=1e9;function Ot(e){var t,n,r,i=v.prototype={constructor:v,toString:null,valueOf:null},a=new v(1),o=20,s=4,c=-7,l=21,u=-1e7,d=1e7,f=!1,p=1,m=0,h={prefix:``,groupSize:3,secondaryGroupSize:0,groupSeparator:`,`,decimalSeparator:`.`,fractionGroupSize:0,fractionGroupSeparator:`\xA0`,suffix:``},g=`0123456789abcdefghijklmnopqrstuvwxyz`,_=!0;function v(e,t){var i,a,c,l,f,p,m,h,y=this;if(!(y instanceof v))return new v(e,t);if(t==null){if(e&&e._isBigNumber===!0){y.s=e.s,!e.c||e.e>d?y.c=y.e=null:e.e<u?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice());return}if((p=typeof e==`number`)&&e*0==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,f=e;f>=10;f/=10,l++);l>d?y.c=y.e=null:(y.e=l,y.c=[e]);return}h=String(e)}else{if(!Ct.test(h=String(e)))return r(y,h,p);y.s=h.charCodeAt(0)==45?(h=h.slice(1),-1):1}(l=h.indexOf(`.`))>-1&&(h=h.replace(`.`,``)),(f=h.search(/e/i))>0?(l<0&&(l=f),l+=+h.slice(f+1),h=h.substring(0,f)):l<0&&(l=h.length)}else{if(U(t,2,g.length,`Base`),t==10&&_)return y=new v(e),S(y,o+y.e+1,s);if(h=String(e),p=typeof e==`number`){if(e*0!=0)return r(y,h,p,t);if(y.s=1/e<0?(h=h.slice(1),-1):1,v.DEBUG&&h.replace(/^0\.0*|\./,``).length>15)throw Error(Tt+e)}else y.s=h.charCodeAt(0)===45?(h=h.slice(1),-1):1;for(i=g.slice(0,t),l=f=0,m=h.length;f<m;f++)if(i.indexOf(a=h.charAt(f))<0){if(a==`.`){if(f>l){l=m;continue}}else if(!c&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){c=!0,f=-1,l=0;continue}return r(y,String(e),p,t)}p=!1,h=n(h,t,10,y.s),(l=h.indexOf(`.`))>-1?h=h.replace(`.`,``):l=h.length}for(f=0;h.charCodeAt(f)===48;f++);for(m=h.length;h.charCodeAt(--m)===48;);if(h=h.slice(f,++m)){if(m-=f,p&&v.DEBUG&&m>15&&(e>Et||e!==F(e)))throw Error(Tt+y.s*e);if((l=l-f-1)>d)y.c=y.e=null;else if(l<u)y.c=[y.e=0];else{if(y.e=l,y.c=[],f=(l+1)%R,l<0&&(f+=R),f<m){for(f&&y.c.push(+h.slice(0,f)),m-=R;f<m;)y.c.push(+h.slice(f,f+=R));f=R-(h=h.slice(f)).length}else f-=m;for(;f--;h+=`0`);y.c.push(+h)}}else y.c=[y.e=0]}v.clone=Ot,v.ROUND_UP=0,v.ROUND_DOWN=1,v.ROUND_CEIL=2,v.ROUND_FLOOR=3,v.ROUND_HALF_UP=4,v.ROUND_HALF_DOWN=5,v.ROUND_HALF_EVEN=6,v.ROUND_HALF_CEIL=7,v.ROUND_HALF_FLOOR=8,v.EUCLID=9,v.config=v.set=function(e){var t,n;if(e!=null){if(typeof e==`object`){if(e.hasOwnProperty(t=`DECIMAL_PLACES`)&&(n=e[t],U(n,0,B,t),o=n),e.hasOwnProperty(t=`ROUNDING_MODE`)&&(n=e[t],U(n,0,8,t),s=n),e.hasOwnProperty(t=`EXPONENTIAL_AT`)&&(n=e[t],n&&n.pop?(U(n[0],-B,0,t),U(n[1],0,B,t),c=n[0],l=n[1]):(U(n,-B,B,t),c=-(l=n<0?-n:n))),e.hasOwnProperty(t=`RANGE`)){if(n=e[t],n&&n.pop)U(n[0],-B,-1,t),U(n[1],1,B,t),u=n[0],d=n[1];else if(U(n,-B,B,t),n)u=-(d=n<0?-n:n);else throw Error(I+t+` cannot be zero: `+n)}if(e.hasOwnProperty(t=`CRYPTO`)){if(n=e[t],n===!!n){if(n){if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=n;else throw f=!n,Error(I+`crypto unavailable`)}else f=n}else throw Error(I+t+` not true or false: `+n)}if(e.hasOwnProperty(t=`MODULO_MODE`)&&(n=e[t],U(n,0,9,t),p=n),e.hasOwnProperty(t=`POW_PRECISION`)&&(n=e[t],U(n,0,B,t),m=n),e.hasOwnProperty(t=`FORMAT`)){if(n=e[t],typeof n==`object`)h=n;else throw Error(I+t+` not an object: `+n)}if(e.hasOwnProperty(t=`ALPHABET`)){if(n=e[t],typeof n==`string`&&!/^.?$|[+\-.\s]|(.).*\1/.test(n))_=n.slice(0,10)==`0123456789`,g=n;else throw Error(I+t+` invalid: `+n)}}else throw Error(I+`Object expected: `+e)}return{DECIMAL_PLACES:o,ROUNDING_MODE:s,EXPONENTIAL_AT:[c,l],RANGE:[u,d],CRYPTO:f,MODULO_MODE:p,POW_PRECISION:m,FORMAT:h,ALPHABET:g}},v.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!v.DEBUG)return!0;var t,n,r=e.c,i=e.e,a=e.s;out:if({}.toString.call(r)==`[object Array]`){if((a===1||a===-1)&&i>=-B&&i<=B&&i===F(i)){if(r[0]===0){if(i===0&&r.length===1)return!0;break out}if(t=(i+1)%R,t<1&&(t+=R),String(r[0]).length==t){for(t=0;t<r.length;t++)if(n=r[t],n<0||n>=L||n!==F(n))break out;if(n!==0)return!0}}}else if(r===null&&i===null&&(a===null||a===1||a===-1))return!0;throw Error(I+`Invalid BigNumber: `+e)},v.maximum=v.max=function(){return b(arguments,-1)},v.minimum=v.min=function(){return b(arguments,1)},v.random=(function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return F(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(e){var n,r,i,s,c,l=0,u=[],d=new v(a);if(e==null?e=o:U(e,0,B),s=wt(e/R),f){if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(s*=2));l<s;)c=n[l]*131072+(n[l+1]>>>11),c>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(u.push(c%0x5af3107a4000),l+=2);l=s/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(s*=7);l<s;)c=(n[l]&31)*281474976710656+n[l+1]*1099511627776+n[l+2]*4294967296+n[l+3]*16777216+(n[l+4]<<16)+(n[l+5]<<8)+n[l+6],c>=9e15?crypto.randomBytes(7).copy(n,l):(u.push(c%0x5af3107a4000),l+=7);l=s/7}else throw f=!1,Error(I+`crypto unavailable`)}if(!f)for(;l<s;)c=t(),c<9e15&&(u[l++]=c%0x5af3107a4000);for(s=u[--l],e%=R,s&&e&&(c=Dt[R-e],u[l]=F(s/c)*c);u[l]===0;u.pop(),l--);if(l<0)u=[i=0];else{for(i=-1;u[0]===0;u.splice(0,1),i-=R);for(l=1,c=u[0];c>=10;c/=10,l++);l<R&&(i-=R-l)}return d.e=i,d.c=u,d}})(),v.sum=function(){for(var e=1,t=arguments,n=new v(t[0]);e<t.length;)n=n.plus(t[e++]);return n},n=(function(){var e=`0123456789`;function n(e,t,n,r){for(var i,a=[0],o,s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(a[i+1]??(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,a,c,l){var u,d,f,p,h,_,y,b,x=r.indexOf(`.`),S=o,C=s;for(x>=0&&(p=m,m=0,r=r.replace(`.`,``),b=new v(i),_=b.pow(r.length-x),m=p,b.c=n(W(H(_.c),_.e,`0`),10,a,e),b.e=b.c.length),y=n(r,i,a,l?(u=g,e):(u=e,g)),f=p=y.length;y[--p]==0;y.pop());if(!y[0])return u.charAt(0);if(x<0?--f:(_.c=y,_.e=f,_.s=c,_=t(_,b,S,C,a),y=_.c,h=_.r,f=_.e),d=f+S+1,x=y[d],p=a/2,h=h||d<0||y[d+1]!=null,h=C<4?(x!=null||h)&&(C==0||C==(_.s<0?3:2)):x>p||x==p&&(C==4||h||C==6&&y[d-1]&1||C==(_.s<0?8:7)),d<1||!y[0])r=h?W(u.charAt(1),-S,u.charAt(0)):u.charAt(0);else{if(y.length=d,h)for(--a;++y[--d]>a;)y[d]=0,d||(++f,y=[1].concat(y));for(p=y.length;!y[--p];);for(x=0,r=``;x<=p;r+=u.charAt(y[x++]));r=W(r,f,u.charAt(0))}return r}})(),t=(function(){function e(e,t,n){var r,i,a,o,s=0,c=e.length,l=t%z,u=t/z|0;for(e=e.slice();c--;)a=e[c]%z,o=e[c]/z|0,r=u*a+o*l,i=l*a+r%z*z+s,s=(i/n|0)+(r/z|0)+u*o,e[c]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,o,s){var c,l,u,d,f,p,m,h,g,_,y,b,x,C,ee,w,T,E=r.s==i.s?1:-1,D=r.c,O=i.c;if(!D||!D[0]||!O||!O[0])return new v(!r.s||!i.s||(D?O&&D[0]==O[0]:!O)?NaN:D&&D[0]==0||!O?E*0:E/0);for(h=new v(E),g=h.c=[],l=r.e-i.e,E=a+l+1,s||(s=L,l=V(r.e/R)-V(i.e/R),E=E/R|0),u=0;O[u]==(D[u]||0);u++);if(O[u]>(D[u]||0)&&l--,E<0)g.push(1),d=!0;else{for(C=D.length,w=O.length,u=0,E+=2,f=F(s/(O[0]+1)),f>1&&(O=e(O,f,s),D=e(D,f,s),w=O.length,C=D.length),x=w,_=D.slice(0,w),y=_.length;y<w;_[y++]=0);T=O.slice(),T=[0].concat(T),ee=O[0],O[1]>=s/2&&ee++;do{if(f=0,c=t(O,_,w,y),c<0){if(b=_[0],w!=y&&(b=b*s+(_[1]||0)),f=F(b/ee),f>1)for(f>=s&&(f=s-1),p=e(O,f,s),m=p.length,y=_.length;t(p,_,m,y)==1;)f--,n(p,w<m?T:O,m,s),m=p.length,c=1;else f==0&&(c=f=1),p=O.slice(),m=p.length;if(m<y&&(p=[0].concat(p)),n(_,p,y,s),y=_.length,c==-1)for(;t(O,_,w,y)<1;)f++,n(_,w<y?T:O,y,s),y=_.length}else c===0&&(f++,_=[0]);g[u++]=f,_[0]?_[y++]=D[x]||0:(_=[D[x]],y=1)}while((x++<C||_[0]!=null)&&E--);d=_[0]!=null,g[0]||g.splice(0,1)}if(s==L){for(u=1,E=g[0];E>=10;E/=10,u++);S(h,a+(h.e=u+l*R-1)+1,o,d)}else h.e=l,h.r=+d;return h}})();function y(e,t,n,r){var i,a,o,u,d;if(n==null?n=s:U(n,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,t==null)d=H(e.c),d=r==1||r==2&&(o<=c||o>=l)?jt(d,o):W(d,o,`0`);else if(e=S(new v(e),t,n),a=e.e,d=H(e.c),u=d.length,r==1||r==2&&(t<=a||a<=c)){for(;u<t;d+=`0`,u++);d=jt(d,a)}else if(t-=o+(r===2&&a>o),d=W(d,a,`0`),a+1>u){if(--t>0)for(d+=`.`;t--;d+=`0`);}else if(t+=a-u,t>0)for(a+1==u&&(d+=`.`);t--;d+=`0`);return e.s<0&&i?`-`+d:d}function b(e,t){for(var n,r,i=1,a=new v(e[0]);i<e.length;i++)r=new v(e[i]),(!r.s||(n=kt(a,r))===t||n===0&&a.s===t)&&(a=r);return a}function x(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*R-1)>d?e.c=e.e=null:n<u?e.c=[e.e=0]:(e.e=n,e.c=t),e}r=(function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,o,s,c){var l,u=s?o:o.replace(i,``);if(r.test(u))a.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,function(e,t,n){return l=(n=n.toLowerCase())==`x`?16:n==`b`?2:8,!c||c==l?t:e}),c&&(l=c,u=u.replace(t,`$1`).replace(n,`0.$1`)),o!=u))return new v(u,l);if(v.DEBUG)throw Error(I+`Not a`+(c?` base `+c:``)+` number: `+o);a.s=null}a.c=a.e=null}})();function S(e,t,n,r){var i,a,o,s,c,l,f,p=e.c,m=Dt;if(p){out:{for(i=1,s=p[0];s>=10;s/=10,i++);if(a=t-i,a<0)a+=R,o=t,c=p[l=0],f=F(c/m[i-o-1]%10);else if(l=wt((a+1)/R),l>=p.length){if(r){for(;p.length<=l;p.push(0));c=f=0,i=1,a%=R,o=a-R+1}else break out}else{for(c=s=p[l],i=1;s>=10;s/=10,i++);a%=R,o=a-R+i,f=o<0?0:F(c/m[i-o-1]%10)}if(r=r||t<0||p[l+1]!=null||(o<0?c:c%m[i-o-1]),r=n<4?(f||r)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||r||n==6&&(a>0?o>0?c/m[i-o]:0:p[l-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=m[(R-t%R)%R],e.e=-t||0):p[0]=e.e=0,e;if(a==0?(p.length=l,s=1,l--):(p.length=l+1,s=m[R-a],p[l]=o>0?F(c/m[i-o]%m[o])*s:0),r)for(;;)if(l==0){for(a=1,o=p[0];o>=10;o/=10,a++);for(o=p[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(e.e++,p[0]==L&&(p[0]=1));break}else{if(p[l]+=s,p[l]!=L)break;p[l--]=0,s=1}for(a=p.length;p[--a]===0;p.pop());}e.e>d?e.c=e.e=null:e.e<u&&(e.c=[e.e=0])}return e}function C(e){var t,n=e.e;return n===null?e.toString():(t=H(e.c),t=n<=c||n>=l?jt(t,n):W(t,n,`0`),e.s<0?`-`+t:t)}return i.absoluteValue=i.abs=function(){var e=new v(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return kt(this,new v(e,t))},i.decimalPlaces=i.dp=function(e,t){var n,r,i,a=this;if(e!=null)return U(e,0,B),t==null?t=s:U(t,0,8),S(new v(a),e+a.e+1,t);if(!(n=a.c))return null;if(r=((i=n.length-1)-V(this.e/R))*R,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(e,n){return t(this,new v(e,n),o,s)},i.dividedToIntegerBy=i.idiv=function(e,n){return t(this,new v(e,n),0,1)},i.exponentiatedBy=i.pow=function(e,t){var n,r,i,o,c,l,u,d,f,p=this;if(e=new v(e),e.c&&!e.isInteger())throw Error(I+`Exponent not an integer: `+C(e));if(t!=null&&(t=new v(t)),l=e.e>14,!p.c||!p.c[0]||p.c[0]==1&&!p.e&&p.c.length==1||!e.c||!e.c[0])return f=new v((+C(p))**(l?e.s*(2-At(e)):+C(e))),t?f.mod(t):f;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new v(NaN);r=!u&&p.isInteger()&&t.isInteger(),r&&(p=p.mod(t))}else if(e.e>9&&(p.e>0||p.e<-1||(p.e==0?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return o=p.s<0&&At(e)?-0:0,p.e>-1&&(o=1/o),new v(u?1/o:o);else m&&(o=wt(m/R+2));for(l?(n=new v(.5),u&&(e.s=1),d=At(e)):(i=Math.abs(+C(e)),d=i%2),f=new v(a);;){if(d){if(f=f.times(p),!f.c)break;o?f.c.length>o&&(f.c.length=o):r&&(f=f.mod(t))}if(i){if(i=F(i/2),i===0)break;d=i%2}else if(e=e.times(n),S(e,e.e+1,1),e.e>14)d=At(e);else{if(i=+C(e),i===0)break;d=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?f:(u&&(f=a.div(f)),t?f.mod(t):o?S(f,m,s,c):f)},i.integerValue=function(e){var t=new v(this);return e==null?e=s:U(e,0,8),S(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return kt(this,new v(e,t))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return kt(this,new v(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return(t=kt(this,new v(e,t)))===1||t===0},i.isInteger=function(){return!!this.c&&V(this.e/R)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return kt(this,new v(e,t))<0},i.isLessThanOrEqualTo=i.lte=function(e,t){return(t=kt(this,new v(e,t)))===-1||t===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(e,t){var n,r,i,a,o=this,c=o.s;if(e=new v(e,t),t=e.s,!c||!t)return new v(NaN);if(c!=t)return e.s=-t,o.plus(e);var l=o.e/R,u=e.e/R,d=o.c,f=e.c;if(!l||!u){if(!d||!f)return d?(e.s=-t,e):new v(f?o:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new v(d[0]?o:s==3?-0:0)}if(l=V(l),u=V(u),d=d.slice(),c=l-u){for((a=c<0)?(c=-c,i=d):(u=l,i=f),i.reverse(),t=c;t--;i.push(0));i.reverse()}else for(r=(a=(c=d.length)<(t=f.length))?c:t,c=t=0;t<r;t++)if(d[t]!=f[t]){a=d[t]<f[t];break}if(a&&(i=d,d=f,f=i,e.s=-e.s),t=(r=f.length)-(n=d.length),t>0)for(;t--;d[n++]=0);for(t=L-1;r>c;){if(d[--r]<f[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=L}d[r]-=f[r]}for(;d[0]==0;d.splice(0,1),--u);return d[0]?x(e,d,u):(e.s=s==3?-1:1,e.c=[e.e=0],e)},i.modulo=i.mod=function(e,n){var r,i,a=this;return e=new v(e,n),!a.c||!e.s||e.c&&!e.c[0]?new v(NaN):!e.c||a.c&&!a.c[0]?new v(a):(p==9?(i=e.s,e.s=1,r=t(a,e,0,3),e.s=i,r.s*=i):r=t(a,e,0,p),e=a.minus(r.times(e)),!e.c[0]&&p==1&&(e.s=a.s),e)},i.multipliedBy=i.times=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_=this,y=_.c,b=(e=new v(e,t)).c;if(!y||!b||!y[0]||!b[0])return!_.s||!e.s||y&&!y[0]&&!b||b&&!b[0]&&!y?e.c=e.e=e.s=null:(e.s*=_.s,!y||!b?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(r=V(_.e/R)+V(e.e/R),e.s*=_.s,c=y.length,d=b.length,c<d&&(m=y,y=b,b=m,i=c,c=d,d=i),i=c+d,m=[];i--;m.push(0));for(h=L,g=z,i=d;--i>=0;){for(n=0,f=b[i]%g,p=b[i]/g|0,o=c,a=i+o;a>i;)l=y[--o]%g,u=y[o]/g|0,s=p*l+u*f,l=f*l+s%g*g+m[a]+n,n=(l/h|0)+(s/g|0)+p*u,m[a--]=l%h;m[a]=n}return n?++r:m.splice(0,1),x(e,m,r)},i.negated=function(){var e=new v(this);return e.s=-e.s||null,e},i.plus=function(e,t){var n,r=this,i=r.s;if(e=new v(e,t),t=e.s,!i||!t)return new v(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/R,o=e.e/R,s=r.c,c=e.c;if(!a||!o){if(!s||!c)return new v(i/0);if(!s[0]||!c[0])return c[0]?e:new v(s[0]?r:i*0)}if(a=V(a),o=V(o),s=s.slice(),i=a-o){for(i>0?(o=a,n=c):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,t=c.length,i-t<0&&(n=c,c=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/L|0,s[t]=L===s[t]?0:s[t]%L;return i&&(s=[i].concat(s),++o),x(e,s,o)},i.precision=i.sd=function(e,t){var n,r,i,a=this;if(e!=null&&e!==!!e)return U(e,1,B),t==null?t=s:U(t,0,8),S(new v(a),e,t);if(!(n=a.c))return null;if(i=n.length-1,r=i*R+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&a.e+1>r&&(r=a.e+1),r},i.shiftedBy=function(e){return U(e,-Et,Et),this.times(`1e`+e)},i.squareRoot=i.sqrt=function(){var e,n,r,i,a,c=this,l=c.c,u=c.s,d=c.e,f=o+4,p=new v(`0.5`);if(u!==1||!l||!l[0])return new v(!u||u<0&&(!l||l[0])?NaN:l?c:1/0);if(u=Math.sqrt(+C(c)),u==0||u==1/0?(n=H(l),(n.length+d)%2==0&&(n+=`0`),u=Math.sqrt(+n),d=V((d+1)/2)-(d<0||d%2),u==1/0?n=`5e`+d:(n=u.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+d),r=new v(n)):r=new v(u+``),r.c[0]){for(d=r.e,u=d+f,u<3&&(u=0);;)if(a=r,r=p.times(a.plus(t(c,a,f,1))),H(a.c).slice(0,u)===(n=H(r.c)).slice(0,u)){if(r.e<d&&--u,n=n.slice(u-3,u+1),n==`9999`||!i&&n==`4999`){if(!i&&(S(a,a.e+o+2,0),a.times(a).eq(c))){r=a;break}f+=4,u+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(S(r,r.e+o+2,1),e=!r.times(r).eq(c));break}}}return S(r,r.e+o+1,s,e)},i.toExponential=function(e,t){return e!=null&&(U(e,0,B),e++),y(this,e,t,1)},i.toFixed=function(e,t){return e!=null&&(U(e,0,B),e=e+this.e+1),y(this,e,t)},i.toFormat=function(e,t,n){var r,i=this;if(n==null)e!=null&&t&&typeof t==`object`?(n=t,t=null):e&&typeof e==`object`?(n=e,e=t=null):n=h;else if(typeof n!=`object`)throw Error(I+`Argument not an object: `+n);if(r=i.toFixed(e,t),i.c){var a,o=r.split(`.`),s=+n.groupSize,c=+n.secondaryGroupSize,l=n.groupSeparator||``,u=o[0],d=o[1],f=i.s<0,p=f?u.slice(1):u,m=p.length;if(c&&(a=s,s=c,c=a,m-=a),s>0&&m>0){for(a=m%s||s,u=p.substr(0,a);a<m;a+=s)u+=l+p.substr(a,s);c>0&&(u+=l+p.slice(a)),f&&(u=`-`+u)}r=d?u+(n.decimalSeparator||``)+((c=+n.fractionGroupSize)?d.replace(RegExp(`\\d{`+c+`}\\B`,`g`),`$&`+(n.fractionGroupSeparator||``)):d):u}return(n.prefix||``)+r+(n.suffix||``)},i.toFraction=function(e){var n,r,i,o,c,l,u,f,p,m,h,g,_=this,y=_.c;if(e!=null&&(u=new v(e),!u.isInteger()&&(u.c||u.s!==1)||u.lt(a)))throw Error(I+`Argument `+(u.isInteger()?`out of range: `:`not an integer: `)+C(u));if(!y)return new v(_);for(n=new v(a),p=r=new v(a),i=f=new v(a),g=H(y),c=n.e=g.length-_.e-1,n.c[0]=Dt[(l=c%R)<0?R+l:l],e=!e||u.comparedTo(n)>0?c>0?n:p:u,l=d,d=1/0,u=new v(g),f.c[0]=0;m=t(u,n,0,1),o=r.plus(m.times(i)),o.comparedTo(e)!=1;)r=i,i=o,p=f.plus(m.times(o=p)),f=o,n=u.minus(m.times(o=n)),u=o;return o=t(e.minus(r),i,0,1),f=f.plus(o.times(p)),r=r.plus(o.times(i)),f.s=p.s=_.s,c*=2,h=t(p,i,c,s).minus(_).abs().comparedTo(t(f,r,c,s).minus(_).abs())<1?[p,i]:[f,r],d=l,h},i.toNumber=function(){return+C(this)},i.toPrecision=function(e,t){return e!=null&&U(e,1,B),y(this,e,t,2)},i.toString=function(e){var t,r=this,i=r.s,a=r.e;return a===null?i?(t=`Infinity`,i<0&&(t=`-`+t)):t=`NaN`:(e==null?t=a<=c||a>=l?jt(H(r.c),a):W(H(r.c),a,`0`):e===10&&_?(r=S(new v(r),o+a+1,s),t=W(H(r.c),r.e,`0`)):(U(e,2,g.length,`Base`),t=n(W(H(r.c),a,`0`),10,e,i,!0)),i<0&&r.c[0]&&(t=`-`+t)),t},i.valueOf=i.toJSON=function(){return C(this)},i._isBigNumber=!0,i[Symbol.toStringTag]=`BigNumber`,i[Symbol.for(`nodejs.util.inspect.custom`)]=i.valueOf,e!=null&&v.set(e),v}function V(e){var t=e|0;return e>0||e===t?t:t-1}function H(e){for(var t,n,r=1,i=e.length,a=e[0]+``;r<i;){for(t=e[r++]+``,n=R-t.length;n--;t=`0`+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function kt(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,c=e.e,l=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=c==l,!i||!a)return r?0:!i^n?1:-1;if(!r)return c>l^n?1:-1;for(s=(c=i.length)<(l=a.length)?c:l,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function U(e,t,n,r){if(e<t||e>n||e!==F(e))throw Error(I+(r||`Argument`)+(typeof e==`number`?e<t||e>n?` out of range: `:` not an integer: `:` not a primitive number: `)+String(e))}function At(e){var t=e.c.length-1;return V(e.e/R)==t&&e.c[t]%2!=0}function jt(e,t){return(e.length>1?e.charAt(0)+`.`+e.slice(1):e)+(t<0?`e`:`e+`)+t}function W(e,t,n){var r,i;if(t<0){for(i=n+`.`;++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+`.`+e.slice(t));return e}Ot(),typeof globalThis<`u`&&globalThis.crypto&&globalThis.crypto.getRandomValues,Array.from({length:26},(e,t)=>String.fromCharCode(t+97));var Mt=e(n(((e,n,r)=>{(function(r,i){typeof t==`function`&&typeof e==`object`&&typeof n==`object`?n.exports=i():typeof define==`function`&&define.amd?define(function(){return i()}):r.pluralize=i()})(r,function(){var e=[],t=[],n={},r={},i={};function a(e){return typeof e==`string`?RegExp(`^`+e+`$`,`i`):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||``})}function c(e,t){return e.replace(t[0],function(n,r){var i=s(t[1],arguments);return o(n===``?e[r-1]:n,i)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var a=r[i];if(a[0].test(t))return c(t,a)}return t}function u(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?o(r,i):e.hasOwnProperty(i)?o(r,e[i]):l(i,r,n)}}function d(e,t,n,r){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?!0:!e.hasOwnProperty(i)&&l(i,i,n)===i}}function f(e,t,n){var r=t===1?f.singular(e):f.plural(e);return(n?t+` `:``)+r}return f.plural=u(i,r,e),f.isPlural=d(i,r,e),f.singular=u(r,i,t),f.isSingular=d(r,i,t),f.addPluralRule=function(t,n){e.push([a(t),n])},f.addSingularRule=function(e,n){t.push([a(e),n])},f.addUncountableRule=function(e){typeof e==`string`?n[e.toLowerCase()]=!0:(f.addPluralRule(e,`$0`),f.addSingularRule(e,`$0`))},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[[`I`,`we`],[`me`,`us`],[`he`,`they`],[`she`,`they`],[`them`,`them`],[`myself`,`ourselves`],[`yourself`,`yourselves`],[`itself`,`themselves`],[`herself`,`themselves`],[`himself`,`themselves`],[`themself`,`themselves`],[`is`,`are`],[`was`,`were`],[`has`,`have`],[`this`,`these`],[`that`,`those`],[`echo`,`echoes`],[`dingo`,`dingoes`],[`volcano`,`volcanoes`],[`tornado`,`tornadoes`],[`torpedo`,`torpedoes`],[`genus`,`genera`],[`viscus`,`viscera`],[`stigma`,`stigmata`],[`stoma`,`stomata`],[`dogma`,`dogmata`],[`lemma`,`lemmata`],[`schema`,`schemata`],[`anathema`,`anathemata`],[`ox`,`oxen`],[`axe`,`axes`],[`die`,`dice`],[`yes`,`yeses`],[`foot`,`feet`],[`eave`,`eaves`],[`goose`,`geese`],[`tooth`,`teeth`],[`quiz`,`quizzes`],[`human`,`humans`],[`proof`,`proofs`],[`carve`,`carves`],[`valve`,`valves`],[`looey`,`looies`],[`thief`,`thieves`],[`groove`,`grooves`],[`pickaxe`,`pickaxes`],[`passerby`,`passersby`]].forEach(function(e){return f.addIrregularRule(e[0],e[1])}),[[/s?$/i,`s`],[/[^\u0000-\u007F]$/i,`$0`],[/([^aeiou]ese)$/i,`$1`],[/(ax|test)is$/i,`$1es`],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,`$1es`],[/(e[mn]u)s?$/i,`$1s`],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,`$1`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1i`],[/(alumn|alg|vertebr)(?:a|ae)$/i,`$1ae`],[/(seraph|cherub)(?:im)?$/i,`$1im`],[/(her|at|gr)o$/i,`$1oes`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,`$1a`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,`$1a`],[/sis$/i,`ses`],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,`$1$2ves`],[/([^aeiouy]|qu)y$/i,`$1ies`],[/([^ch][ieo][ln])ey$/i,`$1ies`],[/(x|ch|ss|sh|zz)$/i,`$1es`],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,`$1ices`],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,`$1ice`],[/(pe)(?:rson|ople)$/i,`$1ople`],[/(child)(?:ren)?$/i,`$1ren`],[/eaux$/i,`$0`],[/m[ae]n$/i,`men`],[`thou`,`you`]].forEach(function(e){return f.addPluralRule(e[0],e[1])}),[[/s$/i,``],[/(ss)$/i,`$1`],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,`$1fe`],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,`$1f`],[/ies$/i,`y`],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,`$1ie`],[/\b(mon|smil)ies$/i,`$1ey`],[/\b((?:tit)?m|l)ice$/i,`$1ouse`],[/(seraph|cherub)im$/i,`$1`],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,`$1`],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,`$1sis`],[/(movie|twelve|abuse|e[mn]u)s$/i,`$1`],[/(test)(?:is|es)$/i,`$1is`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1us`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,`$1um`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,`$1on`],[/(alumn|alg|vertebr)ae$/i,`$1a`],[/(cod|mur|sil|vert|ind)ices$/i,`$1ex`],[/(matr|append)ices$/i,`$1ix`],[/(pe)(rson|ople)$/i,`$1rson`],[/(child)ren$/i,`$1`],[/(eau)x?$/i,`$1`],[/men$/i,`man`]].forEach(function(e){return f.addSingularRule(e[0],e[1])}),[`adulthood`,`advice`,`agenda`,`aid`,`aircraft`,`alcohol`,`ammo`,`analytics`,`anime`,`athletics`,`audio`,`bison`,`blood`,`bream`,`buffalo`,`butter`,`carp`,`cash`,`chassis`,`chess`,`clothing`,`cod`,`commerce`,`cooperation`,`corps`,`debris`,`diabetes`,`digestion`,`elk`,`energy`,`equipment`,`excretion`,`expertise`,`firmware`,`flounder`,`fun`,`gallows`,`garbage`,`graffiti`,`hardware`,`headquarters`,`health`,`herpes`,`highjinks`,`homework`,`housework`,`information`,`jeans`,`justice`,`kudos`,`labour`,`literature`,`machinery`,`mackerel`,`mail`,`media`,`mews`,`moose`,`music`,`mud`,`manga`,`news`,`only`,`personnel`,`pike`,`plankton`,`pliers`,`police`,`pollution`,`premises`,`rain`,`research`,`rice`,`salmon`,`scissors`,`series`,`sewage`,`shambles`,`shrimp`,`software`,`species`,`staff`,`swine`,`tennis`,`traffic`,`transportation`,`trout`,`tuna`,`wealth`,`welfare`,`whiting`,`wildebeest`,`wildlife`,`you`,/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})}))(),1);function Nt(e){return e.toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function Pt(e){return e.replace(/([A-Z])/g,`_$1`).toUpperCase().replace(/^_/,``)}function Ft(e,t){switch(t){case`number`:{let t=Number(e);if(Number.isNaN(t))throw Error(`Cannot convert "${e}" to number: result is NaN`);return t}case`boolean`:return e.toLowerCase()===`true`||e===`1`||e.toLowerCase()===`yes`;case`json`:try{return JSON.parse(e)}catch(t){throw Error(`Cannot parse "${e}" as JSON: ${t instanceof Error?t.message:`Unknown error`}`)}default:return e}}function It(e={},t={}){let{prefix:n=`HAVE`,packageName:r,schema:i={},transform:a={},allowUnknown:o=!0}=t,s=r&&n?`${n}_${r.toUpperCase()}_`:n?`${n}_`:``,c={...e},l={},u=o?new Set([...Object.keys(i),...Object.keys(l).filter(e=>s&&e.startsWith(s)).map(e=>Nt(e.slice(s.length)))]):new Set(Object.keys(i));for(let t of u){if(t in e)continue;let n=s?s+Pt(t):t,r=l[n];if(r===void 0)continue;let o=a[t];if(o){try{c[t]=o(r)}catch(e){console.warn(`Failed to transform ${n}="${r}":`,e instanceof Error?e.message:e)}continue}let u=i[t];if(u)try{c[t]=Ft(r,u)}catch(e){console.warn(`Failed to convert ${n}="${r}" to ${u}:`,e instanceof Error?e.message:e)}else c[t]=r}return c}new class{debug(e,t){t?console.debug(e,t):console.debug(e)}info(e,t){t?console.info(e,t):console.info(e)}warn(e,t){t?console.warn(e,t):console.warn(e)}error(e,t){t?console.error(e,t):console.error(e)}};var Lt=365.2425,Rt=6048e5,zt=6e4,Bt=36e5,Vt=1e3,Ht=86400;Ht*7,Ht*Lt/12*3;var Ut=Symbol.for(`constructDateFrom`);function G(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ut in e?e[Ut](t):e instanceof Date?new e.constructor(t):new Date(t)}function K(e,t){return G(t||e,e)}function Wt(e,t,n){let r=K(e,n?.in);return isNaN(t)?G(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}var Gt={};function Kt(){return Gt}function qt(e){let t=K(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function Jt(e,t){let n=Kt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=K(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Yt(e,t){return Jt(e,{...t,weekStartsOn:1})}function Xt(e,t){let n=K(e,t?.in),r=n.getFullYear(),i=G(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Yt(i),o=G(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Yt(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Zt(e,t){let n=Xt(e,t),r=G(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Yt(r)}function Qt(e,t){let n=K(e,t?.in),r=+Yt(n)-Zt(n);return Math.round(r/Rt)+1}function $t(e,t){let n=K(e,t?.in),r=n.getFullYear(),i=Kt(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=G(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Jt(o,t),c=G(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Jt(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function en(e,t){let n=Kt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=$t(e,t),a=G(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Jt(a,t)}function tn(e,t){let n=K(e,t?.in),r=+Jt(n,t)-en(n,t);return Math.round(r/Rt)+1}var nn=class{subPriority=0;validate(e,t){return!0}},rn=class extends nn{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},q=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new rn(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},an=class extends q{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},J={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Y={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function X(e,t){return e&&{value:t(e.value),rest:e.rest}}function Z(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Q(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*Bt+a*zt+o*Vt),rest:t.slice(n[0].length)}}function on(e){return Z(J.anyDigitsSigned,e)}function $(e,t){switch(e){case 1:return Z(J.singleDigit,t);case 2:return Z(J.twoDigits,t);case 3:return Z(J.threeDigits,t);case 4:return Z(J.fourDigits,t);default:return Z(RegExp(`^\\d{1,`+e+`}`),t)}}function sn(e,t){switch(e){case 1:return Z(J.singleDigitSigned,t);case 2:return Z(J.twoDigitsSigned,t);case 3:return Z(J.threeDigitsSigned,t);case 4:return Z(J.fourDigitsSigned,t);default:return Z(RegExp(`^-?\\d{1,`+e+`}`),t)}}function cn(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function ln(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function un(e){return e%400==0||e%4==0&&e%100!=0}var dn=class extends q{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return X($(4,e),r);case`yo`:return X(n.ordinalNumber(e,{unit:`year`}),r);default:return X($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=ln(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},fn=class extends q{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return X($(4,e),r);case`Yo`:return X(n.ordinalNumber(e,{unit:`year`}),r);default:return X($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=$t(e,r);if(n.isTwoDigitYear){let t=ln(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Jt(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Jt(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},pn=class extends q{priority=130;parse(e,t){return sn(t===`R`?4:t.length,e)}set(e,t,n){let r=G(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Yt(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},mn=class extends q{priority=130;parse(e,t){return sn(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},hn=class extends q{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return $(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},gn=class extends q{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return $(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},_n=class extends q{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return X(Z(J.month,e),r);case`MM`:return X($(2,e),r);case`Mo`:return X(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},vn=class extends q{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return X(Z(J.month,e),r);case`LL`:return X($(2,e),r);case`Lo`:return X(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function yn(e,t,n){let r=K(e,n?.in),i=tn(r,n)-t;return r.setDate(r.getDate()-i*7),K(r,n?.in)}var bn=class extends q{priority=100;parse(e,t,n){switch(t){case`w`:return Z(J.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Jt(yn(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function xn(e,t,n){let r=K(e,n?.in),i=Qt(r,n)-t;return r.setDate(r.getDate()-i*7),r}var Sn=class extends q{priority=100;parse(e,t,n){switch(t){case`I`:return Z(J.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Yt(xn(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},Cn=[31,28,31,30,31,30,31,31,30,31,30,31],wn=[31,29,31,30,31,30,31,31,30,31,30,31],Tn=class extends q{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return Z(J.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){let n=un(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=wn[r]:t>=1&&t<=Cn[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},En=class extends q{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return Z(J.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){return un(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function Dn(e,t,n){let r=Kt(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=K(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return Wt(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var On=class extends q{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},kn=class extends q{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return X($(t.length,e),i);case`eo`:return X(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},An=class extends q{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return X($(t.length,e),i);case`co`:return X(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function jn(e,t){let n=K(e,t?.in).getDay();return n===0?7:n}function Mn(e,t,n){let r=K(e,n?.in);return Wt(r,t-jn(r,n),n)}var Nn=class extends q{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return $(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return X(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return X(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return X(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return X(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=Mn(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},Pn=class extends q{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},Fn=class extends q{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},In=class extends q{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},Ln=class extends q{priority=70;parse(e,t,n){switch(t){case`h`:return Z(J.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},Rn=class extends q{priority=70;parse(e,t,n){switch(t){case`H`:return Z(J.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},zn=class extends q{priority=70;parse(e,t,n){switch(t){case`K`:return Z(J.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},Bn=class extends q{priority=70;parse(e,t,n){switch(t){case`k`:return Z(J.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},Vn=class extends q{priority=60;parse(e,t,n){switch(t){case`m`:return Z(J.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},Hn=class extends q{priority=50;parse(e,t,n){switch(t){case`s`:return Z(J.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},Un=class extends q{priority=30;parse(e,t){return X($(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},Wn=class extends q{priority=10;parse(e,t){switch(t){case`X`:return Q(Y.basicOptionalMinutes,e);case`XX`:return Q(Y.basic,e);case`XXXX`:return Q(Y.basicOptionalSeconds,e);case`XXXXX`:return Q(Y.extendedOptionalSeconds,e);default:return Q(Y.extended,e)}}set(e,t,n){return t.timestampIsSet?e:G(e,e.getTime()-qt(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},Gn=class extends q{priority=10;parse(e,t){switch(t){case`x`:return Q(Y.basicOptionalMinutes,e);case`xx`:return Q(Y.basic,e);case`xxxx`:return Q(Y.basicOptionalSeconds,e);case`xxxxx`:return Q(Y.extendedOptionalSeconds,e);default:return Q(Y.extended,e)}}set(e,t,n){return t.timestampIsSet?e:G(e,e.getTime()-qt(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},Kn=class extends q{priority=40;parse(e){return on(e)}set(e,t,n){return[G(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},qn=class extends q{priority=20;parse(e){return on(e)}set(e,t,n){return[G(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`};new an,new dn,new fn,new pn,new mn,new hn,new gn,new _n,new vn,new bn,new Sn,new Tn,new En,new On,new kn,new An,new Nn,new Pn,new Fn,new In,new Ln,new Rn,new zn,new Bn,new Vn,new Hn,new Un,new Wn,new Gn,new Kn,new qn,Mt.default.singular,Mt.default.isPlural,Mt.default.isSingular;var Jn=class e{level;static LEVELS=[`debug`,`info`,`warn`,`error`];constructor(e=`info`){this.level=e}shouldLog(t){let n=e.LEVELS.indexOf(this.level);return e.LEVELS.indexOf(t)>=n}formatContext(e){return!e||Object.keys(e).length===0?``:` ${JSON.stringify(e)}`}debug(e,t){this.shouldLog(`debug`)&&console.debug(`[DEBUG] ${e}${this.formatContext(t)}`)}info(e,t){this.shouldLog(`info`)&&console.info(`[INFO] ${e}${this.formatContext(t)}`)}warn(e,t){this.shouldLog(`warn`)&&console.warn(`[WARN] ${e}${this.formatContext(t)}`)}error(e,t){this.shouldLog(`error`)&&console.error(`[ERROR] ${e}${this.formatContext(t)}`)}},Yn=class{debug(e,t){}info(e,t){}warn(e,t){}error(e,t){}};function Xn(e){return typeof e==`boolean`?e?new Jn(It({},{packageName:`logger`,schema:{level:`string`}}).level||`info`):new Yn:new Jn(It(e,{packageName:`logger`,schema:{level:`string`}}).level||`info`)}var Zn=`warn`,Qn;function $n(){return Qn||=typeof process<`u`?Xn({level:Zn}):new Jn(Zn),Qn}var er={debug:(e,t)=>$n().debug(e,t),info:(e,t)=>$n().info(e,t),warn:(e,t)=>$n().warn(e,t),error:(e,t)=>$n().error(e,t)},tr=Symbol(`smrt-webmcp-bespoke-context`);function nr(e){w(tr,e)}var rr=Symbol(`smrt-webmcp-ui-context`);function ir(e){w(rr,e)}function ar(){return o(rr)??null}export{Le as _,ct as a,Ne as b,Xe as c,Je as d,qe as f,Pe as g,Fe as h,er as i,Qe as l,Ie as m,ar as n,at as o,Ve as p,nr as r,tt as s,ir as t,Ze as u,Re as v,M as x,ze as y};
|
|
1
|
+
import{i as e,r as t,t as n}from"./COiEfhsA.js";import{$ as r,Ct as i,Dt as a,Et as o,Ft as s,G as c,J as l,K as u,Ot as d,P as f,Pt as p,R as m,U as h,V as g,W as _,bt as v,ct as y,d as b,ft as x,h as S,ht as C,k as ee,kt as w,mt as T,n as E,p as D,pt as O,st as k,t as A,tt as te,vt as j,x as ne}from"./ALAldwdz.js";import{a as re,t as ie}from"./BU1eu_gC.js";import{Nt as ae}from"./DyML_o9Q.js";import{n as oe}from"./Dgd18Zb8.js";import"./B1k33P6j.js";var M=re({"ui.cookbook.assistant":`Assistant`,"ui.stt_test.heading":`STT Adapter Test`,"ui.stt_test.adapter_browser":`Browser (Web Speech API)`,"ui.stt_test.adapter_whisper_wasm":`Whisper WASM (v2)`,"ui.stt_test.adapter_whisper_cpp":`Whisper CPP`,"ui.stt_test.status_initializing":`Initializing...`,"ui.stt_test.status_ready":`Ready`,"ui.stt_test.status_not_initialized":`Not initialized`,"ui.workspace_shell.close_navigation":`Close navigation`,"ui.workspace_shell.close_inspector":`Close inspector`,"ui.workspace_shell.primary_navigation":`Primary navigation`,"ui.workspace_shell.workspace_navigation":`Workspace navigation`,"ui.workspace_shell.inspector_tools":`Inspector tools`,"ui.tools_dock.no_tools_available":`No tools available`,"ui.tools_dock.no_tools_context":`No tools are available for the current context.`,"ui.tools_dock.select_tool":`Select a tool to begin.`,"ui.tools_dock.workspace_tools":`Workspace tools`,"ui.admin_shell.no_focus_tools":`No focus tools`,"ui.admin_shell.focus_tools":`Focus tools`,"ui.admin_shell.no_app_panel":`No app panel`,"ui.admin_shell.no_system_panel":`No system panel`,"ui.admin_shell.shell_shortcuts":`Shell shortcuts`,"ui.admin_shell.close_shortcuts":`Close shortcuts`,"ui.admin_shell.shortcuts":`Shortcuts`,"ui.admin_shell.close":`Close`,"ui.admin_shell.home":`Home`,"ui.admin_shell.menu":`Menu`,"ui.admin_shell.close_menu":`Close menu`,"ui.admin_shell.tools":`Tools`,"ui.admin_shell.close_tools":`Close tools`,"ui.admin_shell.expand_sidebar":`Expand sidebar`,"ui.admin_shell.collapse_sidebar":`Collapse sidebar`,"ui.admin_shell.close_sidebar":`Close sidebar`,"ui.admin_shell.expand_panel":`Expand {panel}`,"ui.admin_shell.collapse_panel":`Collapse {panel}`,"ui.admin_shell.close_panel":`Close {label}`,"ui.admin_shell.open_panel":`Open {label}`,"ui.admin_shell.resize_panel":`Resize {label}`,"ui.admin_shell.panel":`Panel`,"ui.shell_nav_toggle.collapse":`Collapse {label}`,"ui.shell_nav_toggle.expand":`Expand {label}`,"ui.shell_nav_toggle.navigation":`navigation`,"ui.phone_top_bar.back":`Back to {label}`,"ui.phone_bottom_bar.label":`Main`,"ui.phone_bottom_bar.unread":`{count} unread`,"ui.phone_bottom_bar.new":`new`,"ui.activity_toasts.dismiss":`Dismiss activity notification`,"ui.activity_toasts.dismiss_action":`Dismiss`,"ui.activity_item.view":`View`,"ui.activity_item.cancel":`Cancel`,"ui.activity_item.just_now":`just now`,"ui.activity_item.dismiss_item":`Dismiss {title}`,"ui.activity_item.restore":`Restore`,"ui.activity_item.restore_item":`Restore {title}`,"ui.activity_list.empty":`No activities`,"ui.activity_list.no_activity":`No activity.`,"ui.activity_list.caught_up":`You're all caught up.`,"ui.activity_list.no_matching_activity":`No matching activity.`,"ui.activity_list.filter_all":`All`,"ui.activity_list.filter_by_source":`Filter activity by source`,"ui.activity_list.dismiss_visible":`Dismiss visible`,"ui.activity_list.undo":`Undo`,"ui.activity_list.show_dismissed":`Show dismissed ({count})`,"ui.activity_list.hide_dismissed":`Hide dismissed ({count})`,"ui.activity_ticker.label":`Running processes`,"ui.activity_ticker.empty":`No active processes`,"ui.activity_ticker.pause":`Pause scrolling activities`,"ui.activity_ticker.resume":`Resume scrolling activities`,"ui.activity_ticker.queued":`Queued`,"ui.app_scope_panel.app_scope":`App scope`,"ui.app_shell.settings_link":`Shell settings`,"ui.app_shell.navigation":`Application navigation`,"ui.app_shell.slot_content":`{slot} content`,"ui.shell_slot.header_start":`Header, left`,"ui.shell_slot.header_center":`Header, middle`,"ui.shell_slot.header_end":`Header, right`,"ui.shell_slot.footer_start":`Footer, left`,"ui.shell_slot.footer_center":`Footer, middle`,"ui.shell_slot.footer_end":`Footer, right`,"ui.shell_slot.left_sidebar_header":`Left sidebar, header`,"ui.shell_slot.left_sidebar_footer":`Left sidebar, footer`,"ui.shell_slot.right_sidebar_header":`Right sidebar, header`,"ui.shell_slot.right_sidebar_footer":`Right sidebar, footer`,"ui.shell_slot.short_header_start":`Left`,"ui.shell_slot.short_header_center":`Middle`,"ui.shell_slot.short_header_end":`Right`,"ui.shell_slot.short_footer_start":`Left`,"ui.shell_slot.short_footer_center":`Middle`,"ui.shell_slot.short_footer_end":`Right`,"ui.shell_slot.short_sidebar_header":`Header`,"ui.shell_slot.short_sidebar_footer":`Footer`,"ui.owner_setup.heading":`Set up your local application`,"ui.owner_setup.unavailable":`Local owner setup is unavailable or has already been completed.`,"ui.owner_setup.intro":`Create the real local owner account. This invitation works once and stays on this device.`,"ui.owner_setup.name":`Name`,"ui.owner_setup.email":`Email`,"ui.owner_setup.tenant_name":`Workspace name (optional)`,"ui.owner_setup.submit":`Create owner`,"ui.shell_settings_page.heading":`Settings`,"ui.shell_settings_page.description":`Adjust appearance, your account, and the workspace layout.`,"ui.shell_settings_page.back":`All settings`,"ui.shell_settings_page.menu_label":`Settings sections`,"ui.shell_settings_page.appearance_description":`Theme and light or dark color scheme.`,"ui.shell_settings_page.account_description":`Who you are signed in as, and sign out.`,"ui.shell_settings_page.layout_description":`Show or hide workspace areas and reset the layout.`,"ui.shell_settings_page.shortcuts_description":`Keyboard shortcuts for the workspace areas.`,"ui.hotkey_input.capture_title":`Press a key to capture it`,"ui.hotkey_input.conflicts_with":`Conflicts with`,"ui.shell_settings_panel.shell_settings":`Shell settings`,"ui.shell_settings_panel.description":`Show or hide the workspace areas and reset the layout.`,"ui.shell_settings_panel.disable_hotkeys":`Disable hotkeys`,"ui.shell_settings_panel.enable_hotkeys":`Enable hotkeys`,"ui.shell_settings_panel.collapse":`Collapse`,"ui.shell_settings_panel.expand":`Expand`,"ui.owner_setup.link_missing_heading":`This setup link is missing or has expired`,"ui.owner_setup.link_missing_body":`Setup links work once and only for a short time. Run these commands from the app folder. Recovery requires stopping the app first.`,"ui.owner_setup.desktop_reopen":`Reopen the desktop app to sign in with a fresh link.`,"ui.owner_setup.recovery_open":`Open a fresh setup link`,"ui.owner_setup.recovery_recover":`Recover the setup invitation`,"ui.shell_settings.appearance":`Appearance`,"ui.shell_settings.theme":`Theme`,"ui.shell_settings.color_scheme":`Color scheme`,"ui.shell_settings.account":`Account`,"ui.shell_settings.account_name":`Name`,"ui.shell_settings.account_email":`Email`,"ui.shell_settings.account_signed_out":`You are not signed in.`,"ui.shell_settings.sign_out":`Sign out`,"ui.shell_settings.sign_out_failed":`Couldn't sign out. Try again.`,"ui.shell_settings.layout":`Layout`,"ui.shell_settings.hide":`Hide`,"ui.shell_settings.show":`Show`,"ui.shell_settings.edit_layout_on":`Editing layout`,"ui.shell_settings.edit_layout_off":`Edit layout`,"ui.shell_settings.reset_layout":`Reset layout`,"ui.shell_settings.panels":`Shown areas`,"ui.shell_settings.show_region":`Show {region}`,"ui.shell_settings.hide_region":`Hide {region}`,"ui.shell_settings.region_shown":`Shown`,"ui.shell_settings.region_hidden":`Hidden`,"ui.shell_settings.shortcuts":`Keyboard shortcuts`,"ui.shell_layout_editor.heading":`Shell layout`,"ui.shell_layout_editor.description":`Choose which panels appear and arrange the navigation. Drag a handle, or focus it, press Space, and use the arrow keys.`,"ui.shell_layout_editor.reset":`Reset to defaults`,"ui.shell_layout_editor.panels":`Panels`,"ui.shell_layout_editor.show_panel":`Show {panel} panel`,"ui.shell_layout_editor.start_expanded":`Start {panel} panel expanded`,"ui.shell_layout_editor.panel_unavailable":`The {panel} panel is not available in this app.`,"ui.shell_layout_editor.navigation":`Navigation`,"ui.shell_layout_editor.top_level":`Top level`,"ui.shell_layout_editor.show_entry":`Show {label} in navigation`,"ui.shell_layout_editor.new_section":`New section`,"ui.shell_layout_editor.new_section_label":`New section`,"ui.shell_layout_editor.section_name":`Name of section {label}`,"ui.shell_layout_editor.rename_item":`Rename {label}`,"ui.shell_layout_editor.item_name":`Name of item {label}`,"ui.shell_layout_editor.reset_item":`Reset {label} to {original}`,"ui.shell_layout_editor.section_icon":`Icon of {label}`,"ui.shell_layout_editor.icon_option":`Use {icon} icon`,"ui.section_menu.label":`{label} entries`,"ui.section_menu.empty":`No entries in this section.`,"ui.shell_layout_editor.show_title_for":`Show title of {label}`,"ui.shell_layout_editor.delete":`Delete`,"ui.shell_layout_editor.delete_section":`Delete section {label}`,"ui.shell_layout_editor.delete_confirm":`Delete {label}? Its items return to their default sections.`,"ui.shell_layout_editor.preview":`Preview`,"ui.shell_layout_editor.preview_label":`Navigation preview`,"ui.shell_layout_editor.sortable_label":`Navigation sections and items`,"ui.layout_edit.toggle":`Edit layout`,"ui.layout_edit.announce_on":`Layout editing on. Drag items between zones, or focus a grip, press Space, and use the arrow keys.`,"ui.layout_edit.announce_off":`Layout editing off.`,"ui.layout_edit.zone":`{region} · {slot}`,"ui.layout_edit.region_hidden":`{region} · hidden`,"ui.layout_edit.show_region":`Show {region}`,"ui.layout_edit.hide_region":`Hide {region}`,"ui.layout_edit.hide_last_region":`Cannot hide {region}: at least one region must stay visible`,"ui.app_shell.brand_item":`App title`,"ui.layout_edit.section_options":`Options for section {label}`,"ui.layout_edit.edit_section":`Edit section {label}`,"ui.shell_region.header":`Header`,"ui.shell_region.left_sidebar":`Left sidebar`,"ui.shell_region.right_sidebar":`Right sidebar`,"ui.shell_region.footer":`Footer`,"ui.shortcuts_overlay.open_shortcuts":`Open shortcuts`,"ui.shortcuts_overlay.close_drawer":`Close drawer`,"ui.shortcuts_overlay.close":`Close`,"ui.shortcuts_overlay.escape":`Esc`,"ui.system_scope_panel.system_scope":`System scope`,"ui.system_scope_panel.activities":`Activities`,"ui.system_scope_panel.no_running_work":`No running work`,"ui.system_status_chips.system_status":`System status`,"ui.tenant_nav.tenant_navigation":`Tenant navigation`,"ui.tenant_nav.needs_attention":`Needs attention`,"ui.workspace_account_menu.open":`Open account menu`,"ui.workspace_account_menu.current_tenant":`{tenant} — current`,"ui.workspace_account_menu.sign_out":`Sign out`,"ui.workspace_account_menu.pending":`{count} waiting`,"ui.activity_feed.title":`Live activity feed`,"ui.activity_feed.description":`A smrt-web live collection reconciled into the shell activity registry.`,"ui.activity_feed.enqueue_job":`Enqueue job`,"ui.activity_feed.advance_job":`Advance job`,"ui.activity_feed.complete_job":`Complete job`,"ui.activity_feed.fail_job":`Fail job`,"ui.activity_feed.clear_finished":`Clear finished`,"ui.activity_feed.rows_heading":`Backing collection rows`,"ui.activity_feed.no_rows":`No rows yet`,"ui.activity_feed.job_label":`Render job`,"ui.system_feed.title":`System feed`,"ui.system_feed.description":`Polls an app-provided status endpoint and maps it into the system-scope panels and status chips.`,"ui.system_feed.pause":`Pause polling`,"ui.system_feed.resume":`Resume polling`,"ui.system_feed.refresh":`Refresh now`,"ui.system_feed.fail_next":`Fail next fetch`,"ui.system_feed.status_label":`Feed status`,"ui.system_feed.tick_label":`Ticks`,"ui.system_feed.error_label":`Last error`,"ui.system_feed.jobs_panel":`Jobs`,"ui.system_feed.schedules_panel":`Schedules`,"ui.system_feed.dispatch_panel":`Dispatch`,"ui.system_feed.chip_workers":`Workers`,"ui.system_feed.chip_running":`Running`,"ui.system_feed.chip_queued":`Queued`,"ui.system_feed.chip_failed":`Failed`,"ui.phone_tab_bar.label":`Main`,"ui.phone_tab_bar.more":`More`,"ui.app_shell.account_item":`Account menu`,"ui.app_shell.color_scheme_item":`Color scheme`,"ui.app_shell.color_scheme_dark":`Dark mode`,"ui.app_shell.color_scheme_to_dark":`Switch to dark mode`,"ui.app_shell.color_scheme_to_light":`Switch to light mode`,"ui.app_shell.command_palette_item":`Search`,"ui.app_shell.account_settings":`Settings`,"ui.app_shell.theme_item":`Theme: {mode}`,"ui.app_shell.theme_light":`Light`,"ui.app_shell.theme_dark":`Dark`,"ui.app_shell.panel_toggle":`Panel`,"ui.dock_toggles.set_up":`Set up {label}`});function N(e){for(let t of e){let e=t.codePointAt(0)??0;if(e<=31||e===127)return!0}return!1}function se(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`//`)||t.includes(`\\`)||N(t)))try{let e=new URL(t,`https://smrt.invalid`);return[`https:`,`http:`].includes(e.protocol)?t:void 0}catch{return}}var ce=/^\d{4}-\d{2}-\d{2}$/,le=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:?\d{2})$/i,ue=864e13;function de(e){return typeof e==`number`&&Number.isFinite(e)&&Math.abs(e)<=ue}function fe(e){let t=e?.trim();if(!t)return`UTC`;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:t}),t}catch{return`UTC`}}function pe(e){try{return new Intl.RelativeTimeFormat(e,{numeric:`auto`,style:`short`})}catch{return new Intl.RelativeTimeFormat(`en-US`,{numeric:`auto`,style:`short`})}}function P(e,t,n,r){try{return new Intl.DateTimeFormat(t,n).format(e)}catch{try{return new Intl.DateTimeFormat(`en-US`,n).format(e)}catch{return r}}}function me(e,t,n,r,i){let a=i?t:e.toISOString(),o=P(e,n,i?{dateStyle:`long`,timeZone:`UTC`}:{dateStyle:`medium`,timeStyle:`short`,timeZone:r},a);return o===a?a:`${o} (${a})`}function he(e,t,n,r,i){return P(e,n,i?{dateStyle:`medium`,timeZone:`UTC`}:{dateStyle:`medium`,timeStyle:`short`,timeZone:r},i?t:e.toISOString())}function ge(e,t,n){return Date.UTC(e,t-1,n)}function _e(e,t){let n=new Intl.DateTimeFormat(`en-CA`,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`}).formatToParts(new Date(e));return ge(Number(n.find(e=>e.type===`year`)?.value),Number(n.find(e=>e.type===`month`)?.value),Number(n.find(e=>e.type===`day`)?.value))}function ve(e,t={}){if(typeof e!=`string`)return null;let n=e.trim();if(!n)return null;let r=ce.test(n),i=!r&&le.test(n);if(!r&&!i)return{title:n,label:n};let a=r?`${n}T00:00:00.000Z`:n.replace(` `,`T`).replace(/([+-]\d{2})(\d{2})$/,`$1:$2`),o=new Date(a),s=o.getTime();if(!Number.isFinite(s)||r&&o.toISOString().slice(0,10)!==n)return{title:n,label:n};let c=t.locale?.trim()||`en-US`,l=fe(t.timeZone),u=t.justNowLabel||`just now`,d=de(t.now),f;if(!d)f=he(o,n,c,l,r);else if(r){let[e,r,i]=n.split(`-`),a=ge(Number(e),Number(r),Number(i)),o=_e(t.now,l),s=Math.round((a-o)/864e5),u=Math.abs(s),d=s<0?-1:1,p=pe(c);f=u===0?p.format(0,`day`):u<7?p.format(s,`day`):u<30?p.format(d*Math.max(1,Math.round(u/7)),`week`):u<365?p.format(d*Math.max(1,Math.round(u/30)),`month`):p.format(d*Math.max(1,Math.round(u/365)),`year`)}else{let e=Math.round((s-t.now)/1e3),n=Math.abs(e);if(n<45)f=u;else{let t=pe(c),r=e<0?-1:1,i=Math.round(n/60),a=Math.round(n/3600),o=Math.round(n/86400);f=n<3600?t.format(r*Math.max(1,i),`minute`):n<86400?t.format(r*Math.max(1,a),`hour`):o<7?t.format(r*Math.max(1,o),`day`):o<30?t.format(r*Math.max(1,Math.round(o/7)),`week`):o<365?t.format(r*Math.max(1,Math.round(o/30)),`month`):t.format(r*Math.max(1,Math.round(o/365)),`year`)}}return{datetime:r?n:o.toISOString(),title:me(o,n,c,l,r),label:f}}var ye=c(`<span class="smrt-activity-item__source svelte-1feuf58" data-smrt-part="source"> </span>`),be=c(`<a class="smrt-activity-item__context smrt-activity-item__context--link svelte-1feuf58" data-smrt-part="context"> </a>`),xe=c(`<span class="smrt-activity-item__context svelte-1feuf58" data-smrt-part="context"> </span>`),Se=c(`<span class="smrt-activity-item__job-status svelte-1feuf58" data-smrt-part="status"> </span>`),Ce=c(`<span class="smrt-activity-item__meta-text svelte-1feuf58" data-smrt-part="meta"> </span>`),we=c(`<time class="smrt-activity-item__time svelte-1feuf58" data-smrt-part="time"> </time>`),Te=c(`<span class="smrt-activity-item__time svelte-1feuf58" data-smrt-part="time"> </span>`),Ee=c(`<div class="smrt-activity-item__eyebrow svelte-1feuf58" data-smrt-part="eyebrow"><div class="smrt-activity-item__eyebrow-items svelte-1feuf58"><!> <!> <!> <!> <!></div> <!></div>`),De=c(`<code class="smrt-activity-item__code svelte-1feuf58" data-smrt-part="code"> </code>`),Oe=c(`<p class="smrt-activity-item__detail svelte-1feuf58" data-smrt-part="detail"> </p>`),ke=c(`<progress max="100" class="svelte-1feuf58"> </progress>`),Ae=c(`<span aria-hidden="true">✕</span>`),je=c(`<div class="smrt-activity-item__actions svelte-1feuf58" data-smrt-part="actions"><!> <!> <!></div>`),Me=c(`<article data-smrt-component="ActivityItem"><div class="smrt-activity-item__main svelte-1feuf58" data-smrt-part="body"><!> <div class="smrt-activity-item__heading svelte-1feuf58" data-smrt-part="heading"><!> <strong class="smrt-activity-item__title svelte-1feuf58" data-smrt-part="title"> </strong></div> <!> <!></div> <!></article>`);function Ne(e,t){d(t,!0);let n=new Set([`neutral`,`primary`,`success`,`warning`,`error`]),{locale:o,t:c}=ie(),u=i(()=>t.locale?.trim()||o),m=i(()=>!!t.entry?.dismissed),v=i(()=>t.entry?t.entry.title:t.activity?.label??``),y=i(()=>t.entry?t.entry.detail:t.activity?.message),b=i(()=>t.entry?.code?.trim()||void 0),ee=i(()=>t.entry?.sourceLabel?.trim()||t.entry?.source?.trim()||void 0),w=i(()=>t.entry?.context?.label?.trim()||void 0),E=i(()=>r(w)?se(t.entry?.context?.href):void 0),A=i(()=>{let e=t.entry?.status?.label?.trim();if(!e)return null;let r=t.entry?.status?.tone;return{label:e,tone:r&&n.has(r)?r:`neutral`}}),te=i(()=>t.entry?.meta?.trim()||void 0),j=i(()=>t.entry?void 0:t.activity?.status),re=i(()=>t.entry?t.entry.occurredAt:t.activity?.updatedAt??t.activity?.createdAt),N=i(()=>ve(r(re),{locale:r(u),timeZone:t.timeZone,justNowLabel:c(M[`ui.activity_item.just_now`]),now:t.now})),ce=i(()=>!!(r(ee)||r(w)||r(A)||r(te)||r(j)||r(N))),le=i(()=>se(t.entry?t.entry.href:t.activity?.detailHref)),ue=i(()=>!(t.entry||!t.activity?.cancel||t.activity.status!==`queued`&&t.activity.status!==`running`)),de=i(()=>!!(t.entry&&r(m)&&t.onRestore)),fe=i(()=>!!(t.entry&&!r(m)&&t.onDismiss)),pe=i(()=>!!(r(le)||r(ue)||r(de)||r(fe)));var P=Me();let me;var he=x(P),ge=x(he),_e=e=>{var t=Ee(),n=x(t),i=x(n),a=e=>{var t=ye(),n=T(t,!0);k(()=>g(n,r(ee))),h(e,t)};f(i,e=>{r(ee)&&e(a)});var o=C(i,2),c=e=>{var t=_(),n=O(t),i=e=>{var t=be(),n=T(t,!0);k(()=>{D(t,`href`,r(E)),g(n,r(w))}),h(e,t)},a=e=>{var t=xe(),n=T(t,!0);k(()=>g(n,r(w))),h(e,t)};f(n,e=>{r(E)?e(i):e(a,-1)}),h(e,t)};f(o,e=>{r(w)&&e(c)});var u=C(o,2),d=e=>{ae(e,{size:`sm`,get variant(){return r(A).tone},children:(e,t)=>{p();var n=l();k(()=>g(n,r(A).label)),h(e,n)},$$slots:{default:!0}})};f(u,e=>{r(A)&&e(d)});var m=C(u,2),v=e=>{var t=Se(),n=T(t,!0);k(()=>g(n,r(j))),h(e,t)};f(m,e=>{r(j)&&e(v)});var y=C(m,2),b=e=>{var t=Ce(),n=T(t,!0);k(()=>g(n,r(te))),h(e,t)};f(y,e=>{r(te)&&e(b)}),s(n);var S=C(n,2),ne=e=>{var t=_(),n=O(t),i=e=>{var t=we(),n=T(t,!0);k(()=>{D(t,`datetime`,r(N).datetime),D(t,`title`,r(N).title),g(n,r(N).label)}),h(e,t)},a=e=>{var t=Te(),n=T(t,!0);k(()=>g(n,r(N).label)),h(e,t)};f(n,e=>{r(N).datetime?e(i):e(a,-1)}),h(e,t)};f(S,e=>{r(N)&&e(ne)}),s(t),h(e,t)};f(ge,e=>{r(ce)&&e(_e)});var Ne=C(ge,2),Pe=x(Ne),Fe=e=>{var t=De(),n=T(t,!0);k(()=>g(n,r(b))),h(e,t)};f(Pe,e=>{r(b)&&e(Fe)});var Ie=C(Pe,2),Le=T(Ie,!0);s(Ne);var Re=C(Ne,2),ze=e=>{var t=Oe(),n=T(t,!0);k(()=>g(n,r(y))),h(e,t)};f(Re,e=>{r(y)&&e(ze)});var Be=C(Re,2),Ve=e=>{var n=ke(),r=T(n);k(e=>{S(n,t.activity.progress),g(r,`${e??``}%`)},[()=>Math.round(t.activity.progress)]),h(e,n)};f(Be,e=>{!t.entry&&typeof t.activity?.progress==`number`&&e(Ve)}),s(he);var He=C(he,2),Ue=e=>{var n=je(),a=x(n),o=e=>{oe(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,get href(){return r(le)},children:(e,t)=>{p();var n=l();k(e=>g(n,e),[()=>c(M[`ui.activity_item.view`])]),h(e,n)},$$slots:{default:!0}})};f(a,e=>{r(le)&&e(o)});var u=C(a,2),d=e=>{{let n=i(()=>c(M[`ui.activity_item.restore_item`],{title:t.entry.title}));oe(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,get"aria-label"(){return r(n)},onclick:()=>void t.onRestore?.(t.entry.id),children:(e,t)=>{p();var n=l();k(e=>g(n,e),[()=>c(M[`ui.activity_item.restore`])]),h(e,n)},$$slots:{default:!0}})}},m=e=>{{let n=i(()=>c(M[`ui.activity_item.dismiss_item`],{title:t.entry.title})),a=i(()=>c(M[`ui.activity_item.dismiss_item`],{title:t.entry.title}));oe(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,class:`smrt-activity-item__dismiss`,get"aria-label"(){return r(n)},get title(){return r(a)},onclick:()=>void t.onDismiss?.(t.entry.id),children:(e,t)=>{var n=Ae();h(e,n)},$$slots:{default:!0}})}};f(u,e=>{r(de)&&t.entry?e(d):r(fe)&&t.entry&&e(m,1)});var _=C(u,2),v=e=>{oe(e,{variant:`ghost`,size:`sm`,labelWhitespace:`trim`,onclick:()=>t.activity.cancel?.(),children:(e,t)=>{p();var n=l();k(e=>g(n,e),[()=>c(M[`ui.activity_item.cancel`])]),h(e,n)},$$slots:{default:!0}})};f(_,e=>{r(ue)&&t.activity&&e(v)}),s(n),h(e,n)};f(He,e=>{r(pe)&&e(Ue)}),s(P),k(()=>{me=ne(P,1,`smrt-activity-item svelte-1feuf58`,null,me,{"smrt-activity-item--dismissed":r(m)}),D(P,`data-status`,t.entry?r(A)?.tone:t.activity?.status),D(P,`data-dismissed`,r(m)?`true`:void 0),g(Le,r(v))}),h(e,P),a()}var Pe={edit:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z`,undo:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z`,done:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z`,eye:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z`,eyeOff:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z`,heading:`M5 4v3h5.5v12h3V7H19V4z`,headingOff:`M5 4v3h5.5v12h3V7H19V4zM3.5 2.5L2.1 3.9l18 18 1.4-1.4z`,trash:`M7 3h10v2h4v2H3V5h4V3zm-2 6h14v12H5V9zm4 2v8h2v-8H9zm4 0v8h2v-8h-2z`,add:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`,more:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`,settings:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z`,calendar:`M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z`,users:`M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z`,shoppingBag:`M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-8 4c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2zm2-6c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm4 6c0 .55-.45 1-1 1s-1-.45-1-1V8h2v2z`,receipt:`M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z`,book:`M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z`,briefcase:`M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z`,truck:`M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z`,package:`M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-5 12H9v-2h6v2zm5-7H4V4h16v3z`,wrench:`M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z`,fileText:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z`,layers:`M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z`,folder:`M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z`,bank:`M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z`,creditCard:`M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z`,school:`M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z`,home:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`,repeat:`M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z`,tag:`M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z`,archive:`M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z`,placeholder:`M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10z`,chevronRight:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`,menu:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,chat:`M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z`,lightMode:`M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z`,darkMode:`M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z`,mic:`M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.91-3c-.49 0-.9.36-.98.85C16.52 14.2 14.47 16 12 16s-4.52-1.8-4.93-4.15c-.08-.49-.49-.85-.98-.85-.61 0-1.09.54-1 1.14.49 3 2.89 5.35 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08c3.02-.43 5.42-2.78 5.91-5.78.1-.6-.39-1.14-1-1.14z`,micOff:`M15 10.6V5c0-1.66-1.34-3-3-3-1.54 0-2.79 1.16-2.96 2.65L15 10.6zm3.08 1.96c.26-.5.43-1.05.43-1.56 0-.55-.45-1-1-1s-1 .45-1 1c0 .17-.03.34-.08.5l1.65 1.06zM4.27 3L3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73 4.27 3z`,close:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z`},Fe=`wrench`,Ie=`folder`,Le=`placeholder`,Re=[`folder`,`home`,`calendar`,`users`,`school`,`shoppingBag`,`truck`,`package`,`receipt`,`creditCard`,`bank`,`book`,`fileText`,`briefcase`,`wrench`,`layers`,`repeat`,`tag`,`archive`,`settings`];function ze(e){return Object.hasOwn(Pe,e)}function Be(e){let t=e-1;return t*t*t+1}function Ve(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=Be}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=He(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function He(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var Ue=`(prefers-reduced-motion: reduce)`,We=`--smrt-duration-short4`;function Ge(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(Ue).matches}function Ke(e){let t=/^(-?\d*\.?\d+)(ms|s)$/.exec(e.trim());if(!t)return 0;let n=Number(t[1])*(t[2]===`s`?1e3:1);return Number.isFinite(n)&&n>0?n:0}function qe(e,t){if(Ge()||typeof document>`u`||typeof getComputedStyle!=`function`)return 0;let n=t??document.documentElement;return Ke(getComputedStyle(n).getPropertyValue(e))}function Je(e,t,n={}){return Ve(e,t,{duration:qe(n.token??We,e)})}var Ye=Symbol(`smrt-shell-layout`);function Xe(e){return w(Ye,e),e}function Ze(){let e=o(Ye);if(!e)throw Error(`[useShellLayout] No AppShell layout found on context.`);return e}function Qe(){return o(Ye)??null}var $e=u(`<svg viewBox="0 0 24 24" fill="currentColor" focusable="false"><path></path></svg>`),et=c(`<span class="smrt-shell-section-icon svelte-9hljle" aria-hidden="true" data-smrt-component="ShellSectionIcon"><!></span>`);function tt(e,t){d(t,!0);let n=A(t,`size`,3,18),o=i(()=>!ze(t.name)&&!t.iconComponent);y(()=>{r(o)});var c=et(),l=x(c),u=e=>{var r=$e(),i=T(r);k(()=>{D(r,`width`,n()),D(r,`height`,n()),D(i,`d`,Pe[t.name])}),h(e,r)},p=i(()=>ze(t.name)),m=e=>{var r=_(),i=O(r);ee(i,()=>t.iconComponent,(e,r)=>{r(e,{get name(){return t.name},get size(){return n()}})}),h(e,r)},g=e=>{var t=$e(),r=T(t);k(()=>{D(t,`width`,n()),D(t,`height`,n()),D(r,`d`,Pe[Ie])}),h(e,t)};f(l,e=>{r(p)?e(u):t.iconComponent?e(m,1):e(g,-1)}),s(c),h(e,c),a()}var nt=new Set([`$$slots`,`$$events`,`$$legacy`,`label`,`icon`,`children`,`pressed`,`tooltip`,`size`,`type`,`class`]),rt=u(`<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path></path></svg>`),it=c(`<button><!></button>`);function at(e,t){d(t,!0);let n=A(t,`size`,3,18),r=A(t,`type`,3,`button`),i=A(t,`class`,3,``),o=E(t,nt);var c=it();b(c,()=>({...o,type:r(),class:`smrt-shell-icon-button ${i()??``}`,"aria-label":t.label,title:t.tooltip??t.label,"aria-pressed":t.pressed,"data-smrt-component":`ShellIconButton`}),void 0,void 0,void 0,`svelte-1mggjot`);var l=x(c),u=e=>{var n=_(),r=O(n);m(r,()=>t.children),h(e,n)},p=e=>{var r=rt(),i=T(r);k(()=>{D(r,`width`,n()),D(r,`height`,n()),D(i,`d`,Pe[t.icon])}),h(e,r)};f(l,e=>{t.children?e(u):t.icon&&e(p,1)}),s(c),h(e,c),a()}function ot(e,t){return Math.max(0,Math.min(e,t))}var st=class{options;#e=v();get drag(){return r(this.#e)}set drag(e){j(this.#e,e,!0)}#t=v(``);get announcement(){return r(this.#t)}set announcement(e){j(this.#t,e,!0)}#n=v();get focusItemId(){return r(this.#n)}set focusItemId(e){j(this.#n,e,!0)}#r=v();get suppressedSelectionId(){return r(this.#r)}set suppressedSelectionId(e){j(this.#r,e,!0)}#i=v(!1);get pending(){return r(this.#i)}set pending(e){j(this.#i,e,!0)}#a=v();get pointerSession(){return r(this.#a)}set pointerSession(e){j(this.#a,e,!0)}constructor(e){this.options=e,y(()=>{if(!this.focusItemId)return;let e=this.focusItemId;this.focusItemId=void 0,te().then(()=>{let t=this.options.root(),n=t?Array.from(t.querySelectorAll(this.options.selectors.item)).find(t=>t.dataset[this.options.selectors.itemKey]===e):void 0;(n?this.options.focusTarget?this.options.focusTarget(n):n:void 0)?.focus()})})}get movable(){return this.options.enabled()&&!this.pending}get nativeDraggable(){return this.movable&&this.pointerSession===void 0}get containers(){return this.options.containers()}itemsIn(e,t){let n=this.options.itemIds(e);return t?n.filter(e=>e!==t):n}findContainer(e){return this.containers.find(t=>t.id===e)}positionFor(e){if(this.options.itemLabel(e)!==void 0)for(let t of this.containers){let n=this.itemsIn(t.id).indexOf(e);if(n>=0)return{containerId:t.id,index:n}}}label(e){return this.options.itemLabel(e)??``}say(e){this.announcement=this.options.announce(e)}pickup(e,t){if(!this.movable)return;let n=this.positionFor(e);n&&(this.drag={itemId:e,source:n,target:{...n},mode:t},this.say({type:`pickup`,item:this.label(e),destinations:this.containers.filter(e=>!e.disabled).map(e=>e.label)}))}announcePosition(e){let t=this.findContainer(e.target.containerId);t&&this.options.itemLabel(e.itemId)!==void 0&&this.say({type:`position`,item:this.label(e.itemId),container:t.label,position:e.target.index+1,count:this.itemsIn(t.id,e.itemId).length+1})}moveKeyboardTarget(e,t){let n=this.drag;if(n?.mode!==`keyboard`)return;let r=this.options.orientation?.()===`vertical`,i={...n.target};if(this.options.flow?.()){let r=e===`horizontal`&&this.isRtl(),a=this.itemsIn(i.containerId,n.itemId).length;i.index=ot(i.index+(r?-t:t),a),this.drag={...n,target:i},this.announcePosition(this.drag);return}let a=!this.options.allowSameContainerReorder()&&i.containerId===n.source.containerId;if(e===`vertical`){if(a&&!r)return;let e=this.itemsIn(i.containerId,n.itemId).length,o=a?t<0?-1:e+1:i.index+t;if(r&&(o<0||o>e)){let e=this.containers.findIndex(e=>e.id===i.containerId),r=this.containers[e+t];if(!r)return;if(r.disabled){this.say({type:`unavailable`,container:r.label});return}i.containerId=r.id,i.index=t<0?this.itemsIn(r.id,n.itemId).length:0}else i.index=ot(o,e)}else{if(r)return;let e=this.containers.findIndex(e=>e.id===i.containerId),a=this.containers[e+t];if(!a)return;if(a.disabled){this.say({type:`unavailable`,container:a.label});return}i.containerId=a.id,i.index=ot(i.index,this.itemsIn(a.id,n.itemId).length)}!this.options.allowSameContainerReorder()&&i.containerId===n.source.containerId&&(i.index=n.source.index),this.drag={...n,target:i},this.announcePosition(this.drag)}isRtl(){let e=this.options.root();return e!==void 0&&typeof getComputedStyle==`function`&&getComputedStyle(e).direction===`rtl`}async drop(){let e=this.drag;if(!e)return;let t=this.options.itemLabel(e.itemId),n=this.findContainer(e.target.containerId),r=t!==void 0&&this.findContainer(e.source.containerId)!==void 0&&n!==void 0&&!n.disabled;if(this.drag=void 0,this.suppressSelection(e.itemId),r&&t!==void 0&&n){if(e.source.containerId===e.target.containerId&&e.source.index===e.target.index)this.focusItemId=e.itemId;else{this.pending=!0;try{await this.options.commit({itemId:e.itemId,source:e.source,target:e.target})}catch{this.say({type:`failed`,item:t}),this.focusItemId=e.itemId;return}finally{this.pending=!1}this.say({type:`drop`,item:t,container:n.label,position:e.target.index+1,count:this.itemsIn(n.id,e.itemId).length+1}),this.focusItemId=e.itemId}}}cancel(e=!0,t=!0){let n=this.drag;if(!n)return;let r=this.options.itemLabel(n.itemId);r!==void 0&&e&&this.say({type:`cancel`,item:r}),r!==void 0&&t&&(this.focusItemId=n.itemId),this.suppressSelection(n.itemId),this.drag=void 0}suppressSelection(e){this.suppressedSelectionId=e,window.setTimeout(()=>{this.suppressedSelectionId===e&&(this.suppressedSelectionId=void 0)},0)}consumeClick(e){return this.suppressedSelectionId===e&&(this.suppressedSelectionId=void 0,!0)}keydown(e,t){let n=this.drag;if(n)n.itemId===t&&n.mode===`keyboard`&&(e.key===`Escape`?(e.preventDefault(),this.cancel()):e.key===` `||e.key===`Enter`?(e.preventDefault(),this.drop()):e.key===`ArrowLeft`?(e.preventDefault(),this.moveKeyboardTarget(`horizontal`,-1)):e.key===`ArrowRight`?(e.preventDefault(),this.moveKeyboardTarget(`horizontal`,1)):e.key===`ArrowUp`?(e.preventDefault(),this.moveKeyboardTarget(`vertical`,-1)):e.key===`ArrowDown`&&(e.preventDefault(),this.moveKeyboardTarget(`vertical`,1)));else if(e.key===` `||e.key===`Enter`){if(!this.movable)return;e.preventDefault(),this.pickup(t,`keyboard`)}}blur(e,t){let n=this.drag;if(n?.mode!==`keyboard`||n.itemId!==t)return;let r=e.relatedTarget,i=e.currentTarget;r instanceof Node&&i instanceof Node&&i.contains(r)||this.cancel(!0,!1)}dragStart(e,t){this.movable?(this.pickup(t,`pointer`),e.dataTransfer?.setData(`text/plain`,t),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)):e.preventDefault()}dragEnd(){this.drag?.mode===`pointer`&&this.cancel()}pointerDown(e,t){this.movable&&e.button===0&&(this.pointerSession={itemId:t,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,active:!1},e.currentTarget.setPointerCapture?.(e.pointerId))}elementAtPointer(e){return document.elementFromPoint?.(e.clientX,e.clientY)??e.target}setPointerTargetFromElement(e,t,n){let r=this.options.root();if(!e||!r?.contains(e))return;let{selectors:i}=this.options,a=e.closest(i.container)?.dataset[i.containerKey];if(!a)return;let o=this.findContainer(a);if(!o||o.disabled)return o;let s=e.closest(i.item);if(!s)return this.pointerTarget(a,this.itemsIn(a,this.drag?.itemId).length),o;let c=this.itemsIn(a).indexOf(s.dataset[i.itemKey]??``);return c<0||this.pointerTarget(a,this.insertionIndex(a,c,s,t,n)),o}insertionIndex(e,t,n,r,i){let a=n.getBoundingClientRect(),o=r<a.top+a.height/2;if(this.options.flow?.()&&i!==void 0){let e=this.options.root()?.getBoundingClientRect().width??0;if(a.width<e*.95){let e=a.left+a.width/2;o=this.isRtl()?i>e:i<e}}let s=t+ +!o,c=this.drag;return c?.source.containerId===e&&s>c.source.index&&--s,s}finishPointerSession(e,t=!1){let n=this.pointerSession;this.pointerSession=void 0;let r=e.currentTarget;if(r.hasPointerCapture?.(e.pointerId)&&r.releasePointerCapture(e.pointerId),!n?.active||this.drag?.itemId!==n.itemId)return;if(t){this.cancel();return}let i=this.setPointerTargetFromElement(this.elementAtPointer(e),e.clientY,e.clientX);i?.disabled?(this.say({type:`unavailable`,container:i.label}),this.cancel(!1)):i?this.drop():this.cancel()}pointerUp(e){this.finishPointerSession(e)}pointerCancel(e){this.finishPointerSession(e,!0)}pointerMove(e){let t=this.pointerSession;if(t&&t.pointerId===e.pointerId){if(!t.active){if(Math.hypot(e.clientX-t.startX,e.clientY-t.startY)<6)return;this.pickup(t.itemId,`pointer`),this.pointerSession={...t,active:!0}}e.preventDefault(),this.setPointerTargetFromElement(this.elementAtPointer(e),e.clientY,e.clientX)}}pointerTarget(e,t){let n=this.drag;if(n?.mode!==`pointer`)return;if(!this.options.allowSameContainerReorder()&&e===n.source.containerId){this.drag={...n,target:{...n.source}};return}let r=this.itemsIn(e,n.itemId).length;this.drag={...n,target:{containerId:e,index:ot(t,r)}}}dropOnItem(e,t,n){if(e.preventDefault(),this.drag?.mode!==`pointer`)return;let r=this.findContainer(t);r?.disabled?(this.say({type:`unavailable`,container:r.label}),this.cancel(!1)):(this.pointerTarget(t,this.insertionIndex(t,n,e.currentTarget,e.clientY,e.clientX)),this.drop())}dropOnContainer(e,t){e.preventDefault();let n=this.findContainer(t);n?.disabled?(this.say({type:`unavailable`,container:n.label}),this.cancel(!1)):(this.pointerTarget(t,this.itemsIn(t,this.drag?.itemId).length),this.drop())}};function ct(e){return new st(e)}var lt=BigInt(2**32-1),ut=BigInt(32);function dt(e,t=!1){return t?{h:Number(e<),l:Number(e>>ut<)}:{h:Number(e>>ut<)|0,l:Number(e<)|0}}function ft(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){let{h:n,l:o}=dt(e[a],t);[r[a],i[a]]=[n,o]}return[r,i]}new Uint8Array(new Uint32Array([287454020]).buffer)[0];var pt=BigInt(0),mt=BigInt(1),ht=BigInt(2),gt=BigInt(7),_t=BigInt(256),vt=BigInt(113),yt=[],bt=[],xt=[];for(let e=0,t=mt,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],yt.push(2*(5*r+n)),bt.push((e+1)*(e+2)/2%64);let i=pt;for(let e=0;e<7;e++)t=(t<<mt^(t>>gt)*vt)%_t,t&ht&&(i^=mt<<(mt<<BigInt(e))-mt);xt.push(i)}var St=ft(xt,!0);St[0],St[1];var Ct=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,wt=Math.ceil,F=Math.floor,I=`[BigNumber Error] `,Tt=I+`Number primitive has more than 15 significant digits: `,L=0x5af3107a4000,R=14,Et=9007199254740991,Dt=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,0xe8d4a51000,0x9184e72a000],z=1e7,B=1e9;function Ot(e){var t,n,r,i=v.prototype={constructor:v,toString:null,valueOf:null},a=new v(1),o=20,s=4,c=-7,l=21,u=-1e7,d=1e7,f=!1,p=1,m=0,h={prefix:``,groupSize:3,secondaryGroupSize:0,groupSeparator:`,`,decimalSeparator:`.`,fractionGroupSize:0,fractionGroupSeparator:`\xA0`,suffix:``},g=`0123456789abcdefghijklmnopqrstuvwxyz`,_=!0;function v(e,t){var i,a,c,l,f,p,m,h,y=this;if(!(y instanceof v))return new v(e,t);if(t==null){if(e&&e._isBigNumber===!0){y.s=e.s,!e.c||e.e>d?y.c=y.e=null:e.e<u?y.c=[y.e=0]:(y.e=e.e,y.c=e.c.slice());return}if((p=typeof e==`number`)&&e*0==0){if(y.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,f=e;f>=10;f/=10,l++);l>d?y.c=y.e=null:(y.e=l,y.c=[e]);return}h=String(e)}else{if(!Ct.test(h=String(e)))return r(y,h,p);y.s=h.charCodeAt(0)==45?(h=h.slice(1),-1):1}(l=h.indexOf(`.`))>-1&&(h=h.replace(`.`,``)),(f=h.search(/e/i))>0?(l<0&&(l=f),l+=+h.slice(f+1),h=h.substring(0,f)):l<0&&(l=h.length)}else{if(U(t,2,g.length,`Base`),t==10&&_)return y=new v(e),S(y,o+y.e+1,s);if(h=String(e),p=typeof e==`number`){if(e*0!=0)return r(y,h,p,t);if(y.s=1/e<0?(h=h.slice(1),-1):1,v.DEBUG&&h.replace(/^0\.0*|\./,``).length>15)throw Error(Tt+e)}else y.s=h.charCodeAt(0)===45?(h=h.slice(1),-1):1;for(i=g.slice(0,t),l=f=0,m=h.length;f<m;f++)if(i.indexOf(a=h.charAt(f))<0){if(a==`.`){if(f>l){l=m;continue}}else if(!c&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){c=!0,f=-1,l=0;continue}return r(y,String(e),p,t)}p=!1,h=n(h,t,10,y.s),(l=h.indexOf(`.`))>-1?h=h.replace(`.`,``):l=h.length}for(f=0;h.charCodeAt(f)===48;f++);for(m=h.length;h.charCodeAt(--m)===48;);if(h=h.slice(f,++m)){if(m-=f,p&&v.DEBUG&&m>15&&(e>Et||e!==F(e)))throw Error(Tt+y.s*e);if((l=l-f-1)>d)y.c=y.e=null;else if(l<u)y.c=[y.e=0];else{if(y.e=l,y.c=[],f=(l+1)%R,l<0&&(f+=R),f<m){for(f&&y.c.push(+h.slice(0,f)),m-=R;f<m;)y.c.push(+h.slice(f,f+=R));f=R-(h=h.slice(f)).length}else f-=m;for(;f--;h+=`0`);y.c.push(+h)}}else y.c=[y.e=0]}v.clone=Ot,v.ROUND_UP=0,v.ROUND_DOWN=1,v.ROUND_CEIL=2,v.ROUND_FLOOR=3,v.ROUND_HALF_UP=4,v.ROUND_HALF_DOWN=5,v.ROUND_HALF_EVEN=6,v.ROUND_HALF_CEIL=7,v.ROUND_HALF_FLOOR=8,v.EUCLID=9,v.config=v.set=function(e){var t,n;if(e!=null){if(typeof e==`object`){if(e.hasOwnProperty(t=`DECIMAL_PLACES`)&&(n=e[t],U(n,0,B,t),o=n),e.hasOwnProperty(t=`ROUNDING_MODE`)&&(n=e[t],U(n,0,8,t),s=n),e.hasOwnProperty(t=`EXPONENTIAL_AT`)&&(n=e[t],n&&n.pop?(U(n[0],-B,0,t),U(n[1],0,B,t),c=n[0],l=n[1]):(U(n,-B,B,t),c=-(l=n<0?-n:n))),e.hasOwnProperty(t=`RANGE`)){if(n=e[t],n&&n.pop)U(n[0],-B,-1,t),U(n[1],1,B,t),u=n[0],d=n[1];else if(U(n,-B,B,t),n)u=-(d=n<0?-n:n);else throw Error(I+t+` cannot be zero: `+n)}if(e.hasOwnProperty(t=`CRYPTO`)){if(n=e[t],n===!!n){if(n){if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=n;else throw f=!n,Error(I+`crypto unavailable`)}else f=n}else throw Error(I+t+` not true or false: `+n)}if(e.hasOwnProperty(t=`MODULO_MODE`)&&(n=e[t],U(n,0,9,t),p=n),e.hasOwnProperty(t=`POW_PRECISION`)&&(n=e[t],U(n,0,B,t),m=n),e.hasOwnProperty(t=`FORMAT`)){if(n=e[t],typeof n==`object`)h=n;else throw Error(I+t+` not an object: `+n)}if(e.hasOwnProperty(t=`ALPHABET`)){if(n=e[t],typeof n==`string`&&!/^.?$|[+\-.\s]|(.).*\1/.test(n))_=n.slice(0,10)==`0123456789`,g=n;else throw Error(I+t+` invalid: `+n)}}else throw Error(I+`Object expected: `+e)}return{DECIMAL_PLACES:o,ROUNDING_MODE:s,EXPONENTIAL_AT:[c,l],RANGE:[u,d],CRYPTO:f,MODULO_MODE:p,POW_PRECISION:m,FORMAT:h,ALPHABET:g}},v.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!v.DEBUG)return!0;var t,n,r=e.c,i=e.e,a=e.s;out:if({}.toString.call(r)==`[object Array]`){if((a===1||a===-1)&&i>=-B&&i<=B&&i===F(i)){if(r[0]===0){if(i===0&&r.length===1)return!0;break out}if(t=(i+1)%R,t<1&&(t+=R),String(r[0]).length==t){for(t=0;t<r.length;t++)if(n=r[t],n<0||n>=L||n!==F(n))break out;if(n!==0)return!0}}}else if(r===null&&i===null&&(a===null||a===1||a===-1))return!0;throw Error(I+`Invalid BigNumber: `+e)},v.maximum=v.max=function(){return b(arguments,-1)},v.minimum=v.min=function(){return b(arguments,1)},v.random=(function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return F(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(e){var n,r,i,s,c,l=0,u=[],d=new v(a);if(e==null?e=o:U(e,0,B),s=wt(e/R),f){if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(s*=2));l<s;)c=n[l]*131072+(n[l+1]>>>11),c>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(u.push(c%0x5af3107a4000),l+=2);l=s/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(s*=7);l<s;)c=(n[l]&31)*281474976710656+n[l+1]*1099511627776+n[l+2]*4294967296+n[l+3]*16777216+(n[l+4]<<16)+(n[l+5]<<8)+n[l+6],c>=9e15?crypto.randomBytes(7).copy(n,l):(u.push(c%0x5af3107a4000),l+=7);l=s/7}else throw f=!1,Error(I+`crypto unavailable`)}if(!f)for(;l<s;)c=t(),c<9e15&&(u[l++]=c%0x5af3107a4000);for(s=u[--l],e%=R,s&&e&&(c=Dt[R-e],u[l]=F(s/c)*c);u[l]===0;u.pop(),l--);if(l<0)u=[i=0];else{for(i=-1;u[0]===0;u.splice(0,1),i-=R);for(l=1,c=u[0];c>=10;c/=10,l++);l<R&&(i-=R-l)}return d.e=i,d.c=u,d}})(),v.sum=function(){for(var e=1,t=arguments,n=new v(t[0]);e<t.length;)n=n.plus(t[e++]);return n},n=(function(){var e=`0123456789`;function n(e,t,n,r){for(var i,a=[0],o,s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(a[i+1]??(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,a,c,l){var u,d,f,p,h,_,y,b,x=r.indexOf(`.`),S=o,C=s;for(x>=0&&(p=m,m=0,r=r.replace(`.`,``),b=new v(i),_=b.pow(r.length-x),m=p,b.c=n(W(H(_.c),_.e,`0`),10,a,e),b.e=b.c.length),y=n(r,i,a,l?(u=g,e):(u=e,g)),f=p=y.length;y[--p]==0;y.pop());if(!y[0])return u.charAt(0);if(x<0?--f:(_.c=y,_.e=f,_.s=c,_=t(_,b,S,C,a),y=_.c,h=_.r,f=_.e),d=f+S+1,x=y[d],p=a/2,h=h||d<0||y[d+1]!=null,h=C<4?(x!=null||h)&&(C==0||C==(_.s<0?3:2)):x>p||x==p&&(C==4||h||C==6&&y[d-1]&1||C==(_.s<0?8:7)),d<1||!y[0])r=h?W(u.charAt(1),-S,u.charAt(0)):u.charAt(0);else{if(y.length=d,h)for(--a;++y[--d]>a;)y[d]=0,d||(++f,y=[1].concat(y));for(p=y.length;!y[--p];);for(x=0,r=``;x<=p;r+=u.charAt(y[x++]));r=W(r,f,u.charAt(0))}return r}})(),t=(function(){function e(e,t,n){var r,i,a,o,s=0,c=e.length,l=t%z,u=t/z|0;for(e=e.slice();c--;)a=e[c]%z,o=e[c]/z|0,r=u*a+o*l,i=l*a+r%z*z+s,s=(i/n|0)+(r/z|0)+u*o,e[c]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,o,s){var c,l,u,d,f,p,m,h,g,_,y,b,x,C,ee,w,T,E=r.s==i.s?1:-1,D=r.c,O=i.c;if(!D||!D[0]||!O||!O[0])return new v(!r.s||!i.s||(D?O&&D[0]==O[0]:!O)?NaN:D&&D[0]==0||!O?E*0:E/0);for(h=new v(E),g=h.c=[],l=r.e-i.e,E=a+l+1,s||(s=L,l=V(r.e/R)-V(i.e/R),E=E/R|0),u=0;O[u]==(D[u]||0);u++);if(O[u]>(D[u]||0)&&l--,E<0)g.push(1),d=!0;else{for(C=D.length,w=O.length,u=0,E+=2,f=F(s/(O[0]+1)),f>1&&(O=e(O,f,s),D=e(D,f,s),w=O.length,C=D.length),x=w,_=D.slice(0,w),y=_.length;y<w;_[y++]=0);T=O.slice(),T=[0].concat(T),ee=O[0],O[1]>=s/2&&ee++;do{if(f=0,c=t(O,_,w,y),c<0){if(b=_[0],w!=y&&(b=b*s+(_[1]||0)),f=F(b/ee),f>1)for(f>=s&&(f=s-1),p=e(O,f,s),m=p.length,y=_.length;t(p,_,m,y)==1;)f--,n(p,w<m?T:O,m,s),m=p.length,c=1;else f==0&&(c=f=1),p=O.slice(),m=p.length;if(m<y&&(p=[0].concat(p)),n(_,p,y,s),y=_.length,c==-1)for(;t(O,_,w,y)<1;)f++,n(_,w<y?T:O,y,s),y=_.length}else c===0&&(f++,_=[0]);g[u++]=f,_[0]?_[y++]=D[x]||0:(_=[D[x]],y=1)}while((x++<C||_[0]!=null)&&E--);d=_[0]!=null,g[0]||g.splice(0,1)}if(s==L){for(u=1,E=g[0];E>=10;E/=10,u++);S(h,a+(h.e=u+l*R-1)+1,o,d)}else h.e=l,h.r=+d;return h}})();function y(e,t,n,r){var i,a,o,u,d;if(n==null?n=s:U(n,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,t==null)d=H(e.c),d=r==1||r==2&&(o<=c||o>=l)?jt(d,o):W(d,o,`0`);else if(e=S(new v(e),t,n),a=e.e,d=H(e.c),u=d.length,r==1||r==2&&(t<=a||a<=c)){for(;u<t;d+=`0`,u++);d=jt(d,a)}else if(t-=o+(r===2&&a>o),d=W(d,a,`0`),a+1>u){if(--t>0)for(d+=`.`;t--;d+=`0`);}else if(t+=a-u,t>0)for(a+1==u&&(d+=`.`);t--;d+=`0`);return e.s<0&&i?`-`+d:d}function b(e,t){for(var n,r,i=1,a=new v(e[0]);i<e.length;i++)r=new v(e[i]),(!r.s||(n=kt(a,r))===t||n===0&&a.s===t)&&(a=r);return a}function x(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*R-1)>d?e.c=e.e=null:n<u?e.c=[e.e=0]:(e.e=n,e.c=t),e}r=(function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,o,s,c){var l,u=s?o:o.replace(i,``);if(r.test(u))a.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,function(e,t,n){return l=(n=n.toLowerCase())==`x`?16:n==`b`?2:8,!c||c==l?t:e}),c&&(l=c,u=u.replace(t,`$1`).replace(n,`0.$1`)),o!=u))return new v(u,l);if(v.DEBUG)throw Error(I+`Not a`+(c?` base `+c:``)+` number: `+o);a.s=null}a.c=a.e=null}})();function S(e,t,n,r){var i,a,o,s,c,l,f,p=e.c,m=Dt;if(p){out:{for(i=1,s=p[0];s>=10;s/=10,i++);if(a=t-i,a<0)a+=R,o=t,c=p[l=0],f=F(c/m[i-o-1]%10);else if(l=wt((a+1)/R),l>=p.length){if(r){for(;p.length<=l;p.push(0));c=f=0,i=1,a%=R,o=a-R+1}else break out}else{for(c=s=p[l],i=1;s>=10;s/=10,i++);a%=R,o=a-R+i,f=o<0?0:F(c/m[i-o-1]%10)}if(r=r||t<0||p[l+1]!=null||(o<0?c:c%m[i-o-1]),r=n<4?(f||r)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||r||n==6&&(a>0?o>0?c/m[i-o]:0:p[l-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=m[(R-t%R)%R],e.e=-t||0):p[0]=e.e=0,e;if(a==0?(p.length=l,s=1,l--):(p.length=l+1,s=m[R-a],p[l]=o>0?F(c/m[i-o]%m[o])*s:0),r)for(;;)if(l==0){for(a=1,o=p[0];o>=10;o/=10,a++);for(o=p[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(e.e++,p[0]==L&&(p[0]=1));break}else{if(p[l]+=s,p[l]!=L)break;p[l--]=0,s=1}for(a=p.length;p[--a]===0;p.pop());}e.e>d?e.c=e.e=null:e.e<u&&(e.c=[e.e=0])}return e}function C(e){var t,n=e.e;return n===null?e.toString():(t=H(e.c),t=n<=c||n>=l?jt(t,n):W(t,n,`0`),e.s<0?`-`+t:t)}return i.absoluteValue=i.abs=function(){var e=new v(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return kt(this,new v(e,t))},i.decimalPlaces=i.dp=function(e,t){var n,r,i,a=this;if(e!=null)return U(e,0,B),t==null?t=s:U(t,0,8),S(new v(a),e+a.e+1,t);if(!(n=a.c))return null;if(r=((i=n.length-1)-V(this.e/R))*R,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(e,n){return t(this,new v(e,n),o,s)},i.dividedToIntegerBy=i.idiv=function(e,n){return t(this,new v(e,n),0,1)},i.exponentiatedBy=i.pow=function(e,t){var n,r,i,o,c,l,u,d,f,p=this;if(e=new v(e),e.c&&!e.isInteger())throw Error(I+`Exponent not an integer: `+C(e));if(t!=null&&(t=new v(t)),l=e.e>14,!p.c||!p.c[0]||p.c[0]==1&&!p.e&&p.c.length==1||!e.c||!e.c[0])return f=new v((+C(p))**(l?e.s*(2-At(e)):+C(e))),t?f.mod(t):f;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new v(NaN);r=!u&&p.isInteger()&&t.isInteger(),r&&(p=p.mod(t))}else if(e.e>9&&(p.e>0||p.e<-1||(p.e==0?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return o=p.s<0&&At(e)?-0:0,p.e>-1&&(o=1/o),new v(u?1/o:o);else m&&(o=wt(m/R+2));for(l?(n=new v(.5),u&&(e.s=1),d=At(e)):(i=Math.abs(+C(e)),d=i%2),f=new v(a);;){if(d){if(f=f.times(p),!f.c)break;o?f.c.length>o&&(f.c.length=o):r&&(f=f.mod(t))}if(i){if(i=F(i/2),i===0)break;d=i%2}else if(e=e.times(n),S(e,e.e+1,1),e.e>14)d=At(e);else{if(i=+C(e),i===0)break;d=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?f:(u&&(f=a.div(f)),t?f.mod(t):o?S(f,m,s,c):f)},i.integerValue=function(e){var t=new v(this);return e==null?e=s:U(e,0,8),S(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return kt(this,new v(e,t))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return kt(this,new v(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return(t=kt(this,new v(e,t)))===1||t===0},i.isInteger=function(){return!!this.c&&V(this.e/R)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return kt(this,new v(e,t))<0},i.isLessThanOrEqualTo=i.lte=function(e,t){return(t=kt(this,new v(e,t)))===-1||t===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(e,t){var n,r,i,a,o=this,c=o.s;if(e=new v(e,t),t=e.s,!c||!t)return new v(NaN);if(c!=t)return e.s=-t,o.plus(e);var l=o.e/R,u=e.e/R,d=o.c,f=e.c;if(!l||!u){if(!d||!f)return d?(e.s=-t,e):new v(f?o:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new v(d[0]?o:s==3?-0:0)}if(l=V(l),u=V(u),d=d.slice(),c=l-u){for((a=c<0)?(c=-c,i=d):(u=l,i=f),i.reverse(),t=c;t--;i.push(0));i.reverse()}else for(r=(a=(c=d.length)<(t=f.length))?c:t,c=t=0;t<r;t++)if(d[t]!=f[t]){a=d[t]<f[t];break}if(a&&(i=d,d=f,f=i,e.s=-e.s),t=(r=f.length)-(n=d.length),t>0)for(;t--;d[n++]=0);for(t=L-1;r>c;){if(d[--r]<f[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=L}d[r]-=f[r]}for(;d[0]==0;d.splice(0,1),--u);return d[0]?x(e,d,u):(e.s=s==3?-1:1,e.c=[e.e=0],e)},i.modulo=i.mod=function(e,n){var r,i,a=this;return e=new v(e,n),!a.c||!e.s||e.c&&!e.c[0]?new v(NaN):!e.c||a.c&&!a.c[0]?new v(a):(p==9?(i=e.s,e.s=1,r=t(a,e,0,3),e.s=i,r.s*=i):r=t(a,e,0,p),e=a.minus(r.times(e)),!e.c[0]&&p==1&&(e.s=a.s),e)},i.multipliedBy=i.times=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_=this,y=_.c,b=(e=new v(e,t)).c;if(!y||!b||!y[0]||!b[0])return!_.s||!e.s||y&&!y[0]&&!b||b&&!b[0]&&!y?e.c=e.e=e.s=null:(e.s*=_.s,!y||!b?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(r=V(_.e/R)+V(e.e/R),e.s*=_.s,c=y.length,d=b.length,c<d&&(m=y,y=b,b=m,i=c,c=d,d=i),i=c+d,m=[];i--;m.push(0));for(h=L,g=z,i=d;--i>=0;){for(n=0,f=b[i]%g,p=b[i]/g|0,o=c,a=i+o;a>i;)l=y[--o]%g,u=y[o]/g|0,s=p*l+u*f,l=f*l+s%g*g+m[a]+n,n=(l/h|0)+(s/g|0)+p*u,m[a--]=l%h;m[a]=n}return n?++r:m.splice(0,1),x(e,m,r)},i.negated=function(){var e=new v(this);return e.s=-e.s||null,e},i.plus=function(e,t){var n,r=this,i=r.s;if(e=new v(e,t),t=e.s,!i||!t)return new v(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/R,o=e.e/R,s=r.c,c=e.c;if(!a||!o){if(!s||!c)return new v(i/0);if(!s[0]||!c[0])return c[0]?e:new v(s[0]?r:i*0)}if(a=V(a),o=V(o),s=s.slice(),i=a-o){for(i>0?(o=a,n=c):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,t=c.length,i-t<0&&(n=c,c=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/L|0,s[t]=L===s[t]?0:s[t]%L;return i&&(s=[i].concat(s),++o),x(e,s,o)},i.precision=i.sd=function(e,t){var n,r,i,a=this;if(e!=null&&e!==!!e)return U(e,1,B),t==null?t=s:U(t,0,8),S(new v(a),e,t);if(!(n=a.c))return null;if(i=n.length-1,r=i*R+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&a.e+1>r&&(r=a.e+1),r},i.shiftedBy=function(e){return U(e,-Et,Et),this.times(`1e`+e)},i.squareRoot=i.sqrt=function(){var e,n,r,i,a,c=this,l=c.c,u=c.s,d=c.e,f=o+4,p=new v(`0.5`);if(u!==1||!l||!l[0])return new v(!u||u<0&&(!l||l[0])?NaN:l?c:1/0);if(u=Math.sqrt(+C(c)),u==0||u==1/0?(n=H(l),(n.length+d)%2==0&&(n+=`0`),u=Math.sqrt(+n),d=V((d+1)/2)-(d<0||d%2),u==1/0?n=`5e`+d:(n=u.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+d),r=new v(n)):r=new v(u+``),r.c[0]){for(d=r.e,u=d+f,u<3&&(u=0);;)if(a=r,r=p.times(a.plus(t(c,a,f,1))),H(a.c).slice(0,u)===(n=H(r.c)).slice(0,u)){if(r.e<d&&--u,n=n.slice(u-3,u+1),n==`9999`||!i&&n==`4999`){if(!i&&(S(a,a.e+o+2,0),a.times(a).eq(c))){r=a;break}f+=4,u+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(S(r,r.e+o+2,1),e=!r.times(r).eq(c));break}}}return S(r,r.e+o+1,s,e)},i.toExponential=function(e,t){return e!=null&&(U(e,0,B),e++),y(this,e,t,1)},i.toFixed=function(e,t){return e!=null&&(U(e,0,B),e=e+this.e+1),y(this,e,t)},i.toFormat=function(e,t,n){var r,i=this;if(n==null)e!=null&&t&&typeof t==`object`?(n=t,t=null):e&&typeof e==`object`?(n=e,e=t=null):n=h;else if(typeof n!=`object`)throw Error(I+`Argument not an object: `+n);if(r=i.toFixed(e,t),i.c){var a,o=r.split(`.`),s=+n.groupSize,c=+n.secondaryGroupSize,l=n.groupSeparator||``,u=o[0],d=o[1],f=i.s<0,p=f?u.slice(1):u,m=p.length;if(c&&(a=s,s=c,c=a,m-=a),s>0&&m>0){for(a=m%s||s,u=p.substr(0,a);a<m;a+=s)u+=l+p.substr(a,s);c>0&&(u+=l+p.slice(a)),f&&(u=`-`+u)}r=d?u+(n.decimalSeparator||``)+((c=+n.fractionGroupSize)?d.replace(RegExp(`\\d{`+c+`}\\B`,`g`),`$&`+(n.fractionGroupSeparator||``)):d):u}return(n.prefix||``)+r+(n.suffix||``)},i.toFraction=function(e){var n,r,i,o,c,l,u,f,p,m,h,g,_=this,y=_.c;if(e!=null&&(u=new v(e),!u.isInteger()&&(u.c||u.s!==1)||u.lt(a)))throw Error(I+`Argument `+(u.isInteger()?`out of range: `:`not an integer: `)+C(u));if(!y)return new v(_);for(n=new v(a),p=r=new v(a),i=f=new v(a),g=H(y),c=n.e=g.length-_.e-1,n.c[0]=Dt[(l=c%R)<0?R+l:l],e=!e||u.comparedTo(n)>0?c>0?n:p:u,l=d,d=1/0,u=new v(g),f.c[0]=0;m=t(u,n,0,1),o=r.plus(m.times(i)),o.comparedTo(e)!=1;)r=i,i=o,p=f.plus(m.times(o=p)),f=o,n=u.minus(m.times(o=n)),u=o;return o=t(e.minus(r),i,0,1),f=f.plus(o.times(p)),r=r.plus(o.times(i)),f.s=p.s=_.s,c*=2,h=t(p,i,c,s).minus(_).abs().comparedTo(t(f,r,c,s).minus(_).abs())<1?[p,i]:[f,r],d=l,h},i.toNumber=function(){return+C(this)},i.toPrecision=function(e,t){return e!=null&&U(e,1,B),y(this,e,t,2)},i.toString=function(e){var t,r=this,i=r.s,a=r.e;return a===null?i?(t=`Infinity`,i<0&&(t=`-`+t)):t=`NaN`:(e==null?t=a<=c||a>=l?jt(H(r.c),a):W(H(r.c),a,`0`):e===10&&_?(r=S(new v(r),o+a+1,s),t=W(H(r.c),r.e,`0`)):(U(e,2,g.length,`Base`),t=n(W(H(r.c),a,`0`),10,e,i,!0)),i<0&&r.c[0]&&(t=`-`+t)),t},i.valueOf=i.toJSON=function(){return C(this)},i._isBigNumber=!0,i[Symbol.toStringTag]=`BigNumber`,i[Symbol.for(`nodejs.util.inspect.custom`)]=i.valueOf,e!=null&&v.set(e),v}function V(e){var t=e|0;return e>0||e===t?t:t-1}function H(e){for(var t,n,r=1,i=e.length,a=e[0]+``;r<i;){for(t=e[r++]+``,n=R-t.length;n--;t=`0`+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function kt(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,c=e.e,l=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=c==l,!i||!a)return r?0:!i^n?1:-1;if(!r)return c>l^n?1:-1;for(s=(c=i.length)<(l=a.length)?c:l,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function U(e,t,n,r){if(e<t||e>n||e!==F(e))throw Error(I+(r||`Argument`)+(typeof e==`number`?e<t||e>n?` out of range: `:` not an integer: `:` not a primitive number: `)+String(e))}function At(e){var t=e.c.length-1;return V(e.e/R)==t&&e.c[t]%2!=0}function jt(e,t){return(e.length>1?e.charAt(0)+`.`+e.slice(1):e)+(t<0?`e`:`e+`)+t}function W(e,t,n){var r,i;if(t<0){for(i=n+`.`;++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+`.`+e.slice(t));return e}Ot(),typeof globalThis<`u`&&globalThis.crypto&&globalThis.crypto.getRandomValues,Array.from({length:26},(e,t)=>String.fromCharCode(t+97));var Mt=e(n(((e,n,r)=>{(function(r,i){typeof t==`function`&&typeof e==`object`&&typeof n==`object`?n.exports=i():typeof define==`function`&&define.amd?define(function(){return i()}):r.pluralize=i()})(r,function(){var e=[],t=[],n={},r={},i={};function a(e){return typeof e==`string`?RegExp(`^`+e+`$`,`i`):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||``})}function c(e,t){return e.replace(t[0],function(n,r){var i=s(t[1],arguments);return o(n===``?e[r-1]:n,i)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var a=r[i];if(a[0].test(t))return c(t,a)}return t}function u(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?o(r,i):e.hasOwnProperty(i)?o(r,e[i]):l(i,r,n)}}function d(e,t,n,r){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?!0:!e.hasOwnProperty(i)&&l(i,i,n)===i}}function f(e,t,n){var r=t===1?f.singular(e):f.plural(e);return(n?t+` `:``)+r}return f.plural=u(i,r,e),f.isPlural=d(i,r,e),f.singular=u(r,i,t),f.isSingular=d(r,i,t),f.addPluralRule=function(t,n){e.push([a(t),n])},f.addSingularRule=function(e,n){t.push([a(e),n])},f.addUncountableRule=function(e){typeof e==`string`?n[e.toLowerCase()]=!0:(f.addPluralRule(e,`$0`),f.addSingularRule(e,`$0`))},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[[`I`,`we`],[`me`,`us`],[`he`,`they`],[`she`,`they`],[`them`,`them`],[`myself`,`ourselves`],[`yourself`,`yourselves`],[`itself`,`themselves`],[`herself`,`themselves`],[`himself`,`themselves`],[`themself`,`themselves`],[`is`,`are`],[`was`,`were`],[`has`,`have`],[`this`,`these`],[`that`,`those`],[`echo`,`echoes`],[`dingo`,`dingoes`],[`volcano`,`volcanoes`],[`tornado`,`tornadoes`],[`torpedo`,`torpedoes`],[`genus`,`genera`],[`viscus`,`viscera`],[`stigma`,`stigmata`],[`stoma`,`stomata`],[`dogma`,`dogmata`],[`lemma`,`lemmata`],[`schema`,`schemata`],[`anathema`,`anathemata`],[`ox`,`oxen`],[`axe`,`axes`],[`die`,`dice`],[`yes`,`yeses`],[`foot`,`feet`],[`eave`,`eaves`],[`goose`,`geese`],[`tooth`,`teeth`],[`quiz`,`quizzes`],[`human`,`humans`],[`proof`,`proofs`],[`carve`,`carves`],[`valve`,`valves`],[`looey`,`looies`],[`thief`,`thieves`],[`groove`,`grooves`],[`pickaxe`,`pickaxes`],[`passerby`,`passersby`]].forEach(function(e){return f.addIrregularRule(e[0],e[1])}),[[/s?$/i,`s`],[/[^\u0000-\u007F]$/i,`$0`],[/([^aeiou]ese)$/i,`$1`],[/(ax|test)is$/i,`$1es`],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,`$1es`],[/(e[mn]u)s?$/i,`$1s`],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,`$1`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1i`],[/(alumn|alg|vertebr)(?:a|ae)$/i,`$1ae`],[/(seraph|cherub)(?:im)?$/i,`$1im`],[/(her|at|gr)o$/i,`$1oes`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,`$1a`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,`$1a`],[/sis$/i,`ses`],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,`$1$2ves`],[/([^aeiouy]|qu)y$/i,`$1ies`],[/([^ch][ieo][ln])ey$/i,`$1ies`],[/(x|ch|ss|sh|zz)$/i,`$1es`],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,`$1ices`],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,`$1ice`],[/(pe)(?:rson|ople)$/i,`$1ople`],[/(child)(?:ren)?$/i,`$1ren`],[/eaux$/i,`$0`],[/m[ae]n$/i,`men`],[`thou`,`you`]].forEach(function(e){return f.addPluralRule(e[0],e[1])}),[[/s$/i,``],[/(ss)$/i,`$1`],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,`$1fe`],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,`$1f`],[/ies$/i,`y`],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,`$1ie`],[/\b(mon|smil)ies$/i,`$1ey`],[/\b((?:tit)?m|l)ice$/i,`$1ouse`],[/(seraph|cherub)im$/i,`$1`],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,`$1`],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,`$1sis`],[/(movie|twelve|abuse|e[mn]u)s$/i,`$1`],[/(test)(?:is|es)$/i,`$1is`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1us`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,`$1um`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,`$1on`],[/(alumn|alg|vertebr)ae$/i,`$1a`],[/(cod|mur|sil|vert|ind)ices$/i,`$1ex`],[/(matr|append)ices$/i,`$1ix`],[/(pe)(rson|ople)$/i,`$1rson`],[/(child)ren$/i,`$1`],[/(eau)x?$/i,`$1`],[/men$/i,`man`]].forEach(function(e){return f.addSingularRule(e[0],e[1])}),[`adulthood`,`advice`,`agenda`,`aid`,`aircraft`,`alcohol`,`ammo`,`analytics`,`anime`,`athletics`,`audio`,`bison`,`blood`,`bream`,`buffalo`,`butter`,`carp`,`cash`,`chassis`,`chess`,`clothing`,`cod`,`commerce`,`cooperation`,`corps`,`debris`,`diabetes`,`digestion`,`elk`,`energy`,`equipment`,`excretion`,`expertise`,`firmware`,`flounder`,`fun`,`gallows`,`garbage`,`graffiti`,`hardware`,`headquarters`,`health`,`herpes`,`highjinks`,`homework`,`housework`,`information`,`jeans`,`justice`,`kudos`,`labour`,`literature`,`machinery`,`mackerel`,`mail`,`media`,`mews`,`moose`,`music`,`mud`,`manga`,`news`,`only`,`personnel`,`pike`,`plankton`,`pliers`,`police`,`pollution`,`premises`,`rain`,`research`,`rice`,`salmon`,`scissors`,`series`,`sewage`,`shambles`,`shrimp`,`software`,`species`,`staff`,`swine`,`tennis`,`traffic`,`transportation`,`trout`,`tuna`,`wealth`,`welfare`,`whiting`,`wildebeest`,`wildlife`,`you`,/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})}))(),1);function Nt(e){return e.toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function Pt(e){return e.replace(/([A-Z])/g,`_$1`).toUpperCase().replace(/^_/,``)}function Ft(e,t){switch(t){case`number`:{let t=Number(e);if(Number.isNaN(t))throw Error(`Cannot convert "${e}" to number: result is NaN`);return t}case`boolean`:return e.toLowerCase()===`true`||e===`1`||e.toLowerCase()===`yes`;case`json`:try{return JSON.parse(e)}catch(t){throw Error(`Cannot parse "${e}" as JSON: ${t instanceof Error?t.message:`Unknown error`}`)}default:return e}}function It(e={},t={}){let{prefix:n=`HAVE`,packageName:r,schema:i={},transform:a={},allowUnknown:o=!0}=t,s=r&&n?`${n}_${r.toUpperCase()}_`:n?`${n}_`:``,c={...e},l={},u=o?new Set([...Object.keys(i),...Object.keys(l).filter(e=>s&&e.startsWith(s)).map(e=>Nt(e.slice(s.length)))]):new Set(Object.keys(i));for(let t of u){if(t in e)continue;let n=s?s+Pt(t):t,r=l[n];if(r===void 0)continue;let o=a[t];if(o){try{c[t]=o(r)}catch(e){console.warn(`Failed to transform ${n}="${r}":`,e instanceof Error?e.message:e)}continue}let u=i[t];if(u)try{c[t]=Ft(r,u)}catch(e){console.warn(`Failed to convert ${n}="${r}" to ${u}:`,e instanceof Error?e.message:e)}else c[t]=r}return c}new class{debug(e,t){t?console.debug(e,t):console.debug(e)}info(e,t){t?console.info(e,t):console.info(e)}warn(e,t){t?console.warn(e,t):console.warn(e)}error(e,t){t?console.error(e,t):console.error(e)}};var Lt=365.2425,Rt=6048e5,zt=6e4,Bt=36e5,Vt=1e3,Ht=86400;Ht*7,Ht*Lt/12*3;var Ut=Symbol.for(`constructDateFrom`);function G(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ut in e?e[Ut](t):e instanceof Date?new e.constructor(t):new Date(t)}function K(e,t){return G(t||e,e)}function Wt(e,t,n){let r=K(e,n?.in);return isNaN(t)?G(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}var Gt={};function Kt(){return Gt}function qt(e){let t=K(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function Jt(e,t){let n=Kt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=K(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Yt(e,t){return Jt(e,{...t,weekStartsOn:1})}function Xt(e,t){let n=K(e,t?.in),r=n.getFullYear(),i=G(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Yt(i),o=G(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Yt(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Zt(e,t){let n=Xt(e,t),r=G(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Yt(r)}function Qt(e,t){let n=K(e,t?.in),r=+Yt(n)-Zt(n);return Math.round(r/Rt)+1}function $t(e,t){let n=K(e,t?.in),r=n.getFullYear(),i=Kt(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=G(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Jt(o,t),c=G(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Jt(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function en(e,t){let n=Kt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=$t(e,t),a=G(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Jt(a,t)}function tn(e,t){let n=K(e,t?.in),r=+Jt(n,t)-en(n,t);return Math.round(r/Rt)+1}var nn=class{subPriority=0;validate(e,t){return!0}},rn=class extends nn{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},q=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new rn(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},an=class extends q{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},J={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Y={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function X(e,t){return e&&{value:t(e.value),rest:e.rest}}function Z(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Q(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*Bt+a*zt+o*Vt),rest:t.slice(n[0].length)}}function on(e){return Z(J.anyDigitsSigned,e)}function $(e,t){switch(e){case 1:return Z(J.singleDigit,t);case 2:return Z(J.twoDigits,t);case 3:return Z(J.threeDigits,t);case 4:return Z(J.fourDigits,t);default:return Z(RegExp(`^\\d{1,`+e+`}`),t)}}function sn(e,t){switch(e){case 1:return Z(J.singleDigitSigned,t);case 2:return Z(J.twoDigitsSigned,t);case 3:return Z(J.threeDigitsSigned,t);case 4:return Z(J.fourDigitsSigned,t);default:return Z(RegExp(`^-?\\d{1,`+e+`}`),t)}}function cn(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function ln(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function un(e){return e%400==0||e%4==0&&e%100!=0}var dn=class extends q{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return X($(4,e),r);case`yo`:return X(n.ordinalNumber(e,{unit:`year`}),r);default:return X($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=ln(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},fn=class extends q{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return X($(4,e),r);case`Yo`:return X(n.ordinalNumber(e,{unit:`year`}),r);default:return X($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=$t(e,r);if(n.isTwoDigitYear){let t=ln(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Jt(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Jt(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},pn=class extends q{priority=130;parse(e,t){return sn(t===`R`?4:t.length,e)}set(e,t,n){let r=G(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Yt(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},mn=class extends q{priority=130;parse(e,t){return sn(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},hn=class extends q{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return $(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},gn=class extends q{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return $(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},_n=class extends q{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return X(Z(J.month,e),r);case`MM`:return X($(2,e),r);case`Mo`:return X(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},vn=class extends q{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return X(Z(J.month,e),r);case`LL`:return X($(2,e),r);case`Lo`:return X(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function yn(e,t,n){let r=K(e,n?.in),i=tn(r,n)-t;return r.setDate(r.getDate()-i*7),K(r,n?.in)}var bn=class extends q{priority=100;parse(e,t,n){switch(t){case`w`:return Z(J.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Jt(yn(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function xn(e,t,n){let r=K(e,n?.in),i=Qt(r,n)-t;return r.setDate(r.getDate()-i*7),r}var Sn=class extends q{priority=100;parse(e,t,n){switch(t){case`I`:return Z(J.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Yt(xn(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},Cn=[31,28,31,30,31,30,31,31,30,31,30,31],wn=[31,29,31,30,31,30,31,31,30,31,30,31],Tn=class extends q{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return Z(J.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){let n=un(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=wn[r]:t>=1&&t<=Cn[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},En=class extends q{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return Z(J.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){return un(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function Dn(e,t,n){let r=Kt(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=K(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return Wt(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var On=class extends q{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},kn=class extends q{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return X($(t.length,e),i);case`eo`:return X(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},An=class extends q{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return X($(t.length,e),i);case`co`:return X(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=Dn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function jn(e,t){let n=K(e,t?.in).getDay();return n===0?7:n}function Mn(e,t,n){let r=K(e,n?.in);return Wt(r,t-jn(r,n),n)}var Nn=class extends q{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return $(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return X(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return X(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return X(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return X(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=Mn(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},Pn=class extends q{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},Fn=class extends q{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},In=class extends q{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(cn(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},Ln=class extends q{priority=70;parse(e,t,n){switch(t){case`h`:return Z(J.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},Rn=class extends q{priority=70;parse(e,t,n){switch(t){case`H`:return Z(J.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},zn=class extends q{priority=70;parse(e,t,n){switch(t){case`K`:return Z(J.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},Bn=class extends q{priority=70;parse(e,t,n){switch(t){case`k`:return Z(J.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},Vn=class extends q{priority=60;parse(e,t,n){switch(t){case`m`:return Z(J.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},Hn=class extends q{priority=50;parse(e,t,n){switch(t){case`s`:return Z(J.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},Un=class extends q{priority=30;parse(e,t){return X($(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},Wn=class extends q{priority=10;parse(e,t){switch(t){case`X`:return Q(Y.basicOptionalMinutes,e);case`XX`:return Q(Y.basic,e);case`XXXX`:return Q(Y.basicOptionalSeconds,e);case`XXXXX`:return Q(Y.extendedOptionalSeconds,e);default:return Q(Y.extended,e)}}set(e,t,n){return t.timestampIsSet?e:G(e,e.getTime()-qt(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},Gn=class extends q{priority=10;parse(e,t){switch(t){case`x`:return Q(Y.basicOptionalMinutes,e);case`xx`:return Q(Y.basic,e);case`xxxx`:return Q(Y.basicOptionalSeconds,e);case`xxxxx`:return Q(Y.extendedOptionalSeconds,e);default:return Q(Y.extended,e)}}set(e,t,n){return t.timestampIsSet?e:G(e,e.getTime()-qt(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},Kn=class extends q{priority=40;parse(e){return on(e)}set(e,t,n){return[G(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},qn=class extends q{priority=20;parse(e){return on(e)}set(e,t,n){return[G(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`};new an,new dn,new fn,new pn,new mn,new hn,new gn,new _n,new vn,new bn,new Sn,new Tn,new En,new On,new kn,new An,new Nn,new Pn,new Fn,new In,new Ln,new Rn,new zn,new Bn,new Vn,new Hn,new Un,new Wn,new Gn,new Kn,new qn,Mt.default.singular,Mt.default.isPlural,Mt.default.isSingular;var Jn=class e{level;static LEVELS=[`debug`,`info`,`warn`,`error`];constructor(e=`info`){this.level=e}shouldLog(t){let n=e.LEVELS.indexOf(this.level);return e.LEVELS.indexOf(t)>=n}formatContext(e){return!e||Object.keys(e).length===0?``:` ${JSON.stringify(e)}`}debug(e,t){this.shouldLog(`debug`)&&console.debug(`[DEBUG] ${e}${this.formatContext(t)}`)}info(e,t){this.shouldLog(`info`)&&console.info(`[INFO] ${e}${this.formatContext(t)}`)}warn(e,t){this.shouldLog(`warn`)&&console.warn(`[WARN] ${e}${this.formatContext(t)}`)}error(e,t){this.shouldLog(`error`)&&console.error(`[ERROR] ${e}${this.formatContext(t)}`)}},Yn=class{debug(e,t){}info(e,t){}warn(e,t){}error(e,t){}};function Xn(e){return typeof e==`boolean`?e?new Jn(It({},{packageName:`logger`,schema:{level:`string`}}).level||`info`):new Yn:new Jn(It(e,{packageName:`logger`,schema:{level:`string`}}).level||`info`)}var Zn=`warn`,Qn;function $n(){return Qn||=typeof process<`u`?Xn({level:Zn}):new Jn(Zn),Qn}var er={debug:(e,t)=>$n().debug(e,t),info:(e,t)=>$n().info(e,t),warn:(e,t)=>$n().warn(e,t),error:(e,t)=>$n().error(e,t)},tr=Symbol(`smrt-webmcp-bespoke-context`);function nr(e){w(tr,e)}var rr=Symbol(`smrt-webmcp-ui-context`);function ir(e){w(rr,e)}function ar(){return o(rr)??null}export{Le as _,ct as a,Ne as b,Xe as c,Je as d,qe as f,Pe as g,Fe as h,er as i,Qe as l,Ie as m,ar as n,at as o,Ve as p,nr as r,tt as s,ir as t,Ze as u,Re as v,M as x,ze as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./ALAldwdz.js";import"./DyML_o9Q.js";import"./BrigiJm8.js";import"./B1k33P6j.js";import"./C8ShXPO6.js";import"./gCGkBCZK.js";import"./CeGpWFiq.js";function e(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}export{e as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,C as t,Ct as n,Dt as r,Ft as i,G as a,N as o,Ot as s,P as c,Pt as l,U as u,V as d,W as f,X as p,Y as m,Z as h,bt as g,ct as _,f as v,ft as y,gt as b,h as x,ht as S,j as C,k as w,mt as T,p as E,pt as D,st as O,t as k,tt as A,vt as j,wt as M,xt as N}from"./ALAldwdz.js";import{bt as P,c as F,l as I,p as L}from"./DQOcBTE1.js";import{i as R,o as z,x as B,y as V}from"./CeGpWFiq.js";import{a as ee,c as te,g as H,i as ne,l as re,m as U,o as ie,s as ae,y as W}from"./BpRHWky1.js";import{b as oe,t as G}from"./BGR3bfRV.js";import{r as se}from"./Dk2q53rr.js";import{a as K,c as q,d as J,f as Y,i as ce,n as X,o as le,p as ue,r as Z,s as de,u as fe}from"./CJAcL0SD.js";import{a as pe,c as me,i as he,l as ge,n as _e,o as ve,r as ye,s as be,t as xe,u as Se}from"./CrlB_RJR.js";function Ce(e){return e.form.kind===`field-map`}function we(e){return e.form.kind===`variant-grid`}function Te(e,t,n){let r=t.filter(t=>e.includes(t.id));return r.flatMap(e=>(e.forms??[]).filter(e=>e.model===n).map(t=>({recipeId:e.id,form:t,extensions:r.flatMap(e=>(e.extends??[]).filter(e=>e.form===t.id))})))}function Ee(e,t){return e.extensions.some(e=>(e.records??[]).some(e=>e.model===t))}function De(e){e instanceof HTMLElement&&e.querySelector(`[data-invalid] :is(input, select, textarea, button):not([type="hidden"])`)?.focus()}function Q(e){return{records:[...e.form.records,...e.extensions.flatMap(e=>e.records??[])],fields:[...e.form.fields,...e.extensions.flatMap(e=>e.fields??[])]}}function Oe(e,t){let{records:n,fields:r}=Q(e);return r.map(e=>({field:e,catalogField:J(e,n,t),modelId:Y(e,n)}))}function ke(e,t){return Object.fromEntries(Oe(e,t).map(({field:e,catalogField:t})=>[e.id,fe(e,t)]))}function Ae(e){let{records:t}=Q(e),n=t.findIndex(t=>t.model===e.form.model);return n<0?0:n}async function je(e,t,n,r){let{records:i}=Q(t),a=i[Ae(t)];if(!a)return{};let o=await e.get(n(a.model),r);return K(e,i,{[a.as]:o},n)}async function Me(e,t,n,r){let{fields:i}=Q(t),a=await je(e,t,n,r),o=ke(t,n);return{values:Object.fromEntries(i.map(e=>{let{alias:t,field:n}=de(e.to),r=a[t]?.[n];return[e.id,r===void 0?o[e.id]:r]})),rows:a}}function Ne(e,t,n,r,i={},a={}){let{records:o,fields:s}=Q(e),c=ce(s,n),l=Ae(e),u=new Set;return o.map((e,o)=>{let d=le(s,e.as,n),f={...ue(e.values,c),...o===l?Object.fromEntries(Object.entries(a).map(([e,t])=>[e,q(t)])):{}},p=t(e.model),m=r===void 0?void 0:i[e.as];try{if(o===l&&r!==void 0){let t=Object.fromEntries(Object.entries(f).filter(([,e])=>X(e)));return{op:`save`,as:e.as,model:p,id:r,values:{...d,...t}}}if(m)return{op:`save`,as:e.as,model:p,id:m.id,values:d};let t=e.match?ue(e.match,c):{},n=Object.values(t).some(e=>X(e)&&!u.has(e.ref))?{}:t,i=Object.keys(n).length>0;return{op:`save`,as:e.as,model:p,...i?{match:n}:{},onCreate:f,values:d}}finally{u.add(e.as)}})}var $=e=>typeof e==`string`&&e!==``?e:void 0;function Pe(e){let t=typeof e==`object`&&e&&!Array.isArray(e)?e:{},n=$(t.country),r=$(t.state);return{...$(t.street1)?{street:t.street1}:{},...$(t.city)?{city:t.city}:{},...r?{province:n===`US`?`US-${r}`:r}:{},...$(t.postalCode)?{postalCode:t.postalCode}:{},...n?{country:n}:{}}}function Fe(e,t){let n=typeof t==`object`&&t&&!Array.isArray(t)?{...t}:{};for(let e of[`street1`,`city`,`state`,`postalCode`,`country`])delete n[e];let r=$(e.province);return{...n,...$(e.street)?{street1:e.street}:{},...$(e.city)?{city:e.city}:{},...r?{state:r.replace(/^US-/,``)}:{},...$(e.postalCode)?{postalCode:e.postalCode}:{},...$(e.country)?{country:e.country}:{}}}function Ie(e){return document.body.appendChild(e),e.showModal(),()=>{e.close(),e.remove()}}function Le(e){let t=[e.status,e.customerType].filter(Boolean).join(` · `);return{id:e.id,label:e.profile.name,...t?{detail:t}:{}}}function Re(e){return{id:e.id,label:e.profile.name,...e.status?{detail:e.status}:{}}}function ze(e,t){s(t,!0);let n=k(t,`value`,15,``),i=k(t,`label`,3,`Customer`),a=k(t,`required`,3,!1),o=k(t,`disabled`,3,!1),c=k(t,`createLabel`,3,`New customer`);z(e,{get name(){return t.name},get label(){return i()},get required(){return a()},get disabled(){return o()},get error(){return t.error},get onCreate(){return t.onCreate},get createLabel(){return c()},get onchange(){return t.onchange},search:async e=>(await t.search(e)).map(Le),resolve:async e=>{let n=await t.resolve(e);return n?{id:n.id,label:n.profile.name}:null},get value(){return n()},set value(e){n(e)}}),r()}function Be(e,t){s(t,!0);let n=k(t,`value`,15,``),i=k(t,`label`,3,`Vendor`),a=k(t,`required`,3,!1),o=k(t,`disabled`,3,!1),c=k(t,`createLabel`,3,`New vendor`);z(e,{get name(){return t.name},get label(){return i()},get required(){return a()},get disabled(){return o()},get error(){return t.error},get onCreate(){return t.onCreate},get createLabel(){return c()},get onchange(){return t.onchange},search:async e=>(await t.search(e)).map(Re),resolve:async e=>{let n=await t.resolve(e);return n?{id:n.id,label:n.profile.name}:null},get value(){return n()},set value(e){n(e)}}),r()}var Ve=[{name:`CustomerSelect`,selects:`@happyvertical/smrt-commerce:Customer`,kind:`customer`,component:ze},{name:`VendorSelect`,selects:`@happyvertical/smrt-commerce:Vendor`,kind:`vendor`,component:Be}];function He(e,t=Ve){return t.find(t=>t.selects===e)}var Ue=a(`<label class="smrt-relation-field__plain svelte-1t0u16g" data-smrt-component="RelationField"> <input type="text"/></label>`),We=a(`<dialog class="smrt-relation-field__create svelte-1t0u16g" data-smrt-component="RelationField"><!></dialog>`),Ge=a(`<!> <!>`,1);function Ke(a,l){s(l,!0);let m=k(l,`creatable`,3,!0),C=se(),T=n(()=>l.field.related??``),A=n(()=>P(e(T))?.model),M=n(()=>He(e(T))),F=n(()=>m()?Te(G.ids,oe,e(T)).find(Ce):void 0),I=n(()=>e(A)?.name.toLowerCase()??`record`),L=g(b(typeof l.value==`string`?l.value:``));_(()=>{let t=typeof l.value==`string`?l.value:``;t!==e(L)&&j(L,t,!0)});let R=g(!1),B=g(0);function V(){N(B),j(R,!0)}function H(e){j(R,!1),j(L,e.id,!0),l.onchange(e.id)}function U(e){j(L,e,!0),l.onchange(e===``?null:e)}var W=Ge(),K=D(W),q=t=>{var n=Ue(),r=y(n),a=S(r);v(a),i(n),O(()=>{d(r,`${l.label??``} `),E(a,`name`,l.name),a.required=l.required,x(a,e(L))}),p(`input`,a,e=>U(e.currentTarget.value)),u(t,n)},J=t=>{let r=n(()=>e(M).component);var i=f(),a=D(i);{let t=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);w(a,()=>e(r),(n,r)=>{r(n,{get name(){return l.name},get label(){return l.label},get required(){return l.required},search:e=>ae(C,e),resolve:e=>ne(C,e),get onCreate(){return e(t)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){j(L,e,!0)}})})}u(t,i)},Y=t=>{let r=n(()=>e(M).component);var i=f(),a=D(i);{let t=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);w(a,()=>e(r),(n,r)=>{r(n,{get name(){return l.name},get label(){return l.label},get required(){return l.required},search:e=>re(C,e),resolve:e=>ie(C,e),get onCreate(){return e(t)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){j(L,e,!0)}})})}u(t,i)},ce=t=>{{let r=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);z(t,{get name(){return l.name},get label(){return l.label},get required(){return l.required},search:t=>te(C,e(A),t),resolve:t=>ee(C,e(A),t),get onCreate(){return e(r)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){j(L,e,!0)}})}};c(K,t=>{e(A)?e(M)?.kind===`customer`?t(J,1):e(M)?.kind===`vendor`?t(Y,2):t(ce,-1):t(q)});var X=S(K,2),le=n=>{var r=We(),a=y(r);o(a,()=>e(B),t=>{ct(t,{get active(){return e(F)},onsaved:H,oncancel:()=>j(R,!1)})}),i(r),t(r,()=>Ie),O(()=>E(r,`aria-label`,`New ${e(I)}`)),h(`close`,r,()=>j(R,!1)),u(n,r)};c(X,t=>{e(F)&&e(R)&&t(le)}),u(a,W),r()}m([`input`]);var qe=a(`<div class="smrt-field-input__percent svelte-n1ol00" data-smrt-part="row"><!> <span class="smrt-field-input__percent-sign svelte-n1ol00" data-smrt-part="label" aria-hidden="true">%</span></div>`),Je=a(`<input type="url" class="svelte-n1ol00"/>`),Ye=a(`<input type="number" step="1" class="svelte-n1ol00"/>`),Xe=a(`<input type="number" step="any" class="svelte-n1ol00"/>`),Ze=a(`<textarea rows="3" class="svelte-n1ol00"></textarea>`),Qe=a(`<input type="text" class="svelte-n1ol00"/>`),$e=a(`<!> <!>`,1),et=a(`<p class="smrt-field-input__error svelte-n1ol00" data-smrt-part="error" role="alert"> </p>`),tt=a(`<small class="svelte-n1ol00"> </small>`),nt=a(`<div class="smrt-planner-form__field svelte-n1ol00" data-smrt-component="FieldInput"><!> <!> <!></div>`);function rt(t,a){s(a,!0);let o=k(a,`idPrefix`,3,`field`),f=k(a,`hideRequired`,3,!1),m=k(a,`creatable`,3,!0),g=n(()=>W(a.field,a.modelId)),_=n(()=>a.label??L(a.field.name)),b=n(()=>`${o()}-${a.field.name}`),C=n(()=>a.field.required&&!f()),w=n(()=>a.value===null||a.value===void 0?``:typeof a.value==`object`?JSON.stringify(a.value):String(a.value)),A=n(()=>[...e(C)||(a.field.enum??[]).includes(``)?[]:[{value:``,label:`(none)`}],...(a.field.enum??[]).map(e=>({value:e,label:e===``?`(none)`:I(e)}))]);function j(e){if(e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}function N(e){try{return JSON.parse(e)}catch{return e}}let P=e=>e.slice(0,10);var F=nt(),z=y(F),ee=t=>{{let r=n(()=>a.value===!0);R(t,{get checked(){return e(r)},onchange:e=>a.onchange(e.currentTarget.checked),get label(){return e(_)}})}},te=t=>{Ke(t,{get field(){return a.field},get value(){return a.value},get onchange(){return a.onchange},get label(){return e(_)},get name(){return e(b)},get required(){return e(C)},get creatable(){return m()}})},H=t=>{pe(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},get options(){return e(A)},get value(){return e(w)},onchange:e=>a.onchange(e)})},ne=t=>{he(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},rows:4,get value(){return e(w)},onchange:e=>a.onchange(e)})},re=t=>{ye(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},type:`email`,get value(){return e(w)},onchange:e=>a.onchange(e)})},U=t=>{ve(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},get value(){return e(w)},onchange:e=>a.onchange(e)})},ie=t=>{{let r=n(()=>typeof a.value==`number`?a.value:null);me(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},currency:`USD`,min:0,get value(){return e(r)},onchange:e=>a.onchange(e)})}},ae=t=>{var r=qe(),o=y(r);{let t=n(()=>xe(a.value));be(o,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},min:0,step:.01,get value(){return e(t)},onchange:e=>a.onchange(_e(e))})}l(2),i(r),u(t,r)},oe=t=>{{let r=n(()=>P(e(w)));ge(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},includeTime:!1,get value(){return e(r)},onchange:e=>a.onchange(e?new Date(`${e}T00:00:00Z`).toISOString():``)})}},G=t=>{{let r=n(()=>Pe(a.value));Se(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},get value(){return e(r)},onchange:e=>a.onchange(Fe(e,a.value))})}},se=t=>{var n=$e(),r=D(n);B(r,{get for(){return e(b)},get label(){return e(_)},get required(){return e(C)}});var i=S(r,2),o=t=>{V(t,{get id(){return e(b)},get required(){return e(C)},get value(){return e(w)},onchange:e=>a.onchange(e.currentTarget.value)})},s=t=>{var n=Je();v(n),O(()=>{E(n,`id`,e(b)),n.required=e(C),x(n,e(w))}),p(`input`,n,e=>a.onchange(e.currentTarget.value)),u(t,n)},l=t=>{var n=Ye();v(n),O(()=>{E(n,`id`,e(b)),n.required=e(C),x(n,e(w))}),h(`focus`,n,e=>e.currentTarget.select()),p(`input`,n,e=>{let t=j(e.currentTarget.value);a.onchange(t===null?null:Math.trunc(t))}),u(t,n)},d=t=>{var n=Xe();v(n),O(()=>{E(n,`id`,e(b)),n.required=e(C),x(n,e(w))}),h(`focus`,n,e=>e.currentTarget.select()),p(`input`,n,e=>a.onchange(j(e.currentTarget.value))),u(t,n)},f=t=>{var n=Ze();M(n),O(()=>{E(n,`id`,e(b)),x(n,e(w))}),p(`input`,n,e=>a.onchange(N(e.currentTarget.value))),u(t,n)},m=t=>{var n=Qe();v(n),O(()=>{E(n,`id`,e(b)),n.required=e(C),x(n,e(w))}),p(`input`,n,e=>a.onchange(e.currentTarget.value)),u(t,n)};c(i,t=>{e(g)===`currency`?t(o):e(g)===`url`?t(s,1):e(g)===`integer`?t(l,2):e(g)===`decimal`?t(d,3):e(g)===`json`?t(f,4):t(m,-1)}),u(t,n)};c(z,t=>{e(g)===`boolean`?t(ee):e(g)===`relation`?t(te,1):e(g)===`enum`?t(H,2):e(g)===`textarea`?t(ne,3):e(g)===`email`?t(re,4):e(g)===`phone`?t(U,5):e(g)===`money`?t(ie,6):e(g)===`percent`?t(ae,7):e(g)===`datetime`?t(oe,8):e(g)===`address`?t(G,9):t(se,-1)});var K=S(z,2),q=t=>{var n=et(),r=T(n,!0);O(()=>{E(n,`id`,`${e(b)}-error`),d(r,a.error)}),u(t,n)};c(K,e=>{a.error&&e(q)});var J=S(K,2),Y=e=>{var t=tt(),n=T(t,!0);O(()=>d(n,a.help)),u(e,t)};c(J,e=>{a.help&&e(Y)}),i(F),O(()=>{E(F,`data-renderer`,e(g)),E(F,`data-invalid`,a.error?``:void 0)}),u(t,F),r()}m([`input`]);var it=a(`<p>Loading...</p>`),at=a(`<p class="smrt-planner-form__error svelte-1rp3j7g" role="alert" data-error-summary=""> </p>`),ot=a(`<p class="smrt-planner-form__error svelte-1rp3j7g" role="alert"> </p>`),st=a(`<form class="smrt-planner-form__root" novalidate="" data-smrt-component="FieldMapForm"><h3 class="svelte-1rp3j7g"> </h3> <!> <!> <!> <div class="smrt-planner-form__actions svelte-1rp3j7g"><button type="submit" class="svelte-1rp3j7g">Save</button> <button type="button" class="smrt-field-map-form__secondary svelte-1rp3j7g" data-smrt-part="action">Cancel</button></div></form>`);function ct(t,a){s(a,!0);let o=se(),l=n(()=>Oe(a.active,Z).filter(({catalogField:e,modelId:t})=>!G.rows.some(n=>n.objectRef===t&&n.fieldName===e.name&&n.visibility===`hidden`))),m=g(b(ke(a.active,Z))),_=g(a.id===void 0),v=g(``),x=g(b({})),w=n(()=>e(l).map(({field:e,catalogField:t})=>({...t,name:e.id,label:e.label,required:e.required??t.required}))),E=n(()=>U(e(w),e(x))),k={};async function M(e){let t=await Me(o,a.active,Z,e);j(m,t.values,!0),k=t.rows,j(_,!0)}a.id!==void 0&&M(a.id);async function N(t){t.preventDefault();let n=t.currentTarget;if(j(v,``),j(x,H(e(w),e(m)),!0),Object.keys(e(x)).length>0)await A(),De(n);else try{let t=await o.apply(Ne(a.active,Z,e(m),a.id,k,a.preset)),n=Q(a.active).records[Ae(a.active)],r=n?t[n.as]:void 0;if(!r)throw Error(`Nothing was saved.`);a.onsaved(r)}catch(e){j(v,e instanceof Error?e.message:`Could not save.`,!0)}}var P=f(),I=D(P),L=e=>{var t=it();u(e,t)},R=t=>{var r=st(),o=y(r),s=T(o),f=S(o,2);C(f,17,()=>e(l),({field:e,catalogField:t,modelId:n})=>e.id,(t,r)=>{let i=()=>e(r).field,o=()=>e(r).catalogField,s=()=>e(r).modelId;{let r=n(()=>({...o(),required:i().required??o().required}));rt(t,{get modelId(){return s()},get field(){return e(r)},get label(){return i().label},get help(){return i().help},get idPrefix(){return a.active.form.id},get error(){return e(x)[i().id]},get value(){return e(m)[i().id]},onchange:t=>{e(m)[i().id]=t,delete e(x)[i().id]}})}});var g=S(f,2),_=t=>{var n=at(),r=T(n,!0);O(()=>d(r,e(E))),u(t,n)};c(g,t=>{e(E)&&t(_)});var b=S(g,2),w=t=>{var n=ot(),r=T(n,!0);O(()=>d(r,e(v))),u(t,n)};c(b,t=>{e(v)&&t(w)});var D=S(b,2),k=S(y(D),2);i(D),i(r),O(e=>d(s,`${a.id===void 0?`New`:`Edit`} ${e??``}`),[()=>F(a.active.form.label,a.noun,a.noun!==void 0)]),h(`submit`,r,N),p(`click`,k,function(...e){a.oncancel?.apply(this,e)}),u(t,r)};c(I,t=>{e(_)?t(R,-1):t(L)}),u(t,P),r()}m([`click`]);export{Ee as a,Te as i,rt as n,Ce as o,De as r,we as s,ct as t};
|
|
1
|
+
import{$ as e,C as t,Ct as n,Dt as r,Ft as i,G as a,N as o,Ot as s,P as c,Pt as l,U as u,V as d,W as f,X as p,Y as m,Z as h,bt as g,ct as _,f as v,ft as y,gt as b,h as x,ht as S,j as C,k as w,mt as T,p as E,pt as D,st as O,t as k,tt as A,vt as j,wt as M,xt as N}from"./ALAldwdz.js";import{bt as P,c as F,l as I,p as L}from"./DyML_o9Q.js";import{i as R,o as z,x as B,y as V}from"./CeGpWFiq.js";import{a as ee,c as te,g as H,i as ne,l as re,m as U,o as ie,s as ae,y as W}from"./CyWTJOpn.js";import{b as oe,t as G}from"./DCrLWq9K.js";import{r as se}from"./Dk2q53rr.js";import{a as K,c as q,d as J,f as Y,i as ce,n as X,o as le,p as ue,r as Z,s as de,u as fe}from"./Oh32ILmK.js";import{a as pe,c as me,i as he,l as ge,n as _e,o as ve,r as ye,s as be,t as xe,u as Se}from"./BIaULR6w.js";function Ce(e){return e.form.kind===`field-map`}function we(e){return e.form.kind===`variant-grid`}function Te(e,t,n){let r=t.filter(t=>e.includes(t.id));return r.flatMap(e=>(e.forms??[]).filter(e=>e.model===n).map(t=>({recipeId:e.id,form:t,extensions:r.flatMap(e=>(e.extends??[]).filter(e=>e.form===t.id))})))}function Ee(e,t){return e.extensions.some(e=>(e.records??[]).some(e=>e.model===t))}function De(e){e instanceof HTMLElement&&e.querySelector(`[data-invalid] :is(input, select, textarea, button):not([type="hidden"])`)?.focus()}function Q(e){return{records:[...e.form.records,...e.extensions.flatMap(e=>e.records??[])],fields:[...e.form.fields,...e.extensions.flatMap(e=>e.fields??[])]}}function Oe(e,t){let{records:n,fields:r}=Q(e);return r.map(e=>({field:e,catalogField:J(e,n,t),modelId:Y(e,n)}))}function ke(e,t){return Object.fromEntries(Oe(e,t).map(({field:e,catalogField:t})=>[e.id,fe(e,t)]))}function Ae(e){let{records:t}=Q(e),n=t.findIndex(t=>t.model===e.form.model);return n<0?0:n}async function je(e,t,n,r){let{records:i}=Q(t),a=i[Ae(t)];if(!a)return{};let o=await e.get(n(a.model),r);return K(e,i,{[a.as]:o},n)}async function Me(e,t,n,r){let{fields:i}=Q(t),a=await je(e,t,n,r),o=ke(t,n);return{values:Object.fromEntries(i.map(e=>{let{alias:t,field:n}=de(e.to),r=a[t]?.[n];return[e.id,r===void 0?o[e.id]:r]})),rows:a}}function Ne(e,t,n,r,i={},a={}){let{records:o,fields:s}=Q(e),c=ce(s,n),l=Ae(e),u=new Set;return o.map((e,o)=>{let d=le(s,e.as,n),f={...ue(e.values,c),...o===l?Object.fromEntries(Object.entries(a).map(([e,t])=>[e,q(t)])):{}},p=t(e.model),m=r===void 0?void 0:i[e.as];try{if(o===l&&r!==void 0){let t=Object.fromEntries(Object.entries(f).filter(([,e])=>X(e)));return{op:`save`,as:e.as,model:p,id:r,values:{...d,...t}}}if(m)return{op:`save`,as:e.as,model:p,id:m.id,values:d};let t=e.match?ue(e.match,c):{},n=Object.values(t).some(e=>X(e)&&!u.has(e.ref))?{}:t,i=Object.keys(n).length>0;return{op:`save`,as:e.as,model:p,...i?{match:n}:{},onCreate:f,values:d}}finally{u.add(e.as)}})}var $=e=>typeof e==`string`&&e!==``?e:void 0;function Pe(e){let t=typeof e==`object`&&e&&!Array.isArray(e)?e:{},n=$(t.country),r=$(t.state);return{...$(t.street1)?{street:t.street1}:{},...$(t.city)?{city:t.city}:{},...r?{province:n===`US`?`US-${r}`:r}:{},...$(t.postalCode)?{postalCode:t.postalCode}:{},...n?{country:n}:{}}}function Fe(e,t){let n=typeof t==`object`&&t&&!Array.isArray(t)?{...t}:{};for(let e of[`street1`,`city`,`state`,`postalCode`,`country`])delete n[e];let r=$(e.province);return{...n,...$(e.street)?{street1:e.street}:{},...$(e.city)?{city:e.city}:{},...r?{state:r.replace(/^US-/,``)}:{},...$(e.postalCode)?{postalCode:e.postalCode}:{},...$(e.country)?{country:e.country}:{}}}function Ie(e){return document.body.appendChild(e),e.showModal(),()=>{e.close(),e.remove()}}function Le(e){let t=[e.status,e.customerType].filter(Boolean).join(` · `);return{id:e.id,label:e.profile.name,...t?{detail:t}:{}}}function Re(e){return{id:e.id,label:e.profile.name,...e.status?{detail:e.status}:{}}}function ze(e,t){s(t,!0);let n=k(t,`value`,15,``),i=k(t,`label`,3,`Customer`),a=k(t,`required`,3,!1),o=k(t,`disabled`,3,!1),c=k(t,`createLabel`,3,`New customer`);z(e,{get name(){return t.name},get label(){return i()},get required(){return a()},get disabled(){return o()},get error(){return t.error},get onCreate(){return t.onCreate},get createLabel(){return c()},get onchange(){return t.onchange},search:async e=>(await t.search(e)).map(Le),resolve:async e=>{let n=await t.resolve(e);return n?{id:n.id,label:n.profile.name}:null},get value(){return n()},set value(e){n(e)}}),r()}function Be(e,t){s(t,!0);let n=k(t,`value`,15,``),i=k(t,`label`,3,`Vendor`),a=k(t,`required`,3,!1),o=k(t,`disabled`,3,!1),c=k(t,`createLabel`,3,`New vendor`);z(e,{get name(){return t.name},get label(){return i()},get required(){return a()},get disabled(){return o()},get error(){return t.error},get onCreate(){return t.onCreate},get createLabel(){return c()},get onchange(){return t.onchange},search:async e=>(await t.search(e)).map(Re),resolve:async e=>{let n=await t.resolve(e);return n?{id:n.id,label:n.profile.name}:null},get value(){return n()},set value(e){n(e)}}),r()}var Ve=[{name:`CustomerSelect`,selects:`@happyvertical/smrt-commerce:Customer`,kind:`customer`,component:ze},{name:`VendorSelect`,selects:`@happyvertical/smrt-commerce:Vendor`,kind:`vendor`,component:Be}];function He(e,t=Ve){return t.find(t=>t.selects===e)}var Ue=a(`<label class="smrt-relation-field__plain svelte-1t0u16g" data-smrt-component="RelationField"> <input type="text"/></label>`),We=a(`<dialog class="smrt-relation-field__create svelte-1t0u16g" data-smrt-component="RelationField"><!></dialog>`),Ge=a(`<!> <!>`,1);function Ke(a,l){s(l,!0);let m=k(l,`creatable`,3,!0),C=se(),T=n(()=>l.field.related??``),A=n(()=>P(e(T))?.model),M=n(()=>He(e(T))),F=n(()=>m()?Te(G.ids,oe,e(T)).find(Ce):void 0),I=n(()=>e(A)?.name.toLowerCase()??`record`),L=g(b(typeof l.value==`string`?l.value:``));_(()=>{let t=typeof l.value==`string`?l.value:``;t!==e(L)&&j(L,t,!0)});let R=g(!1),B=g(0);function V(){N(B),j(R,!0)}function H(e){j(R,!1),j(L,e.id,!0),l.onchange(e.id)}function U(e){j(L,e,!0),l.onchange(e===``?null:e)}var W=Ge(),K=D(W),q=t=>{var n=Ue(),r=y(n),a=S(r);v(a),i(n),O(()=>{d(r,`${l.label??``} `),E(a,`name`,l.name),a.required=l.required,x(a,e(L))}),p(`input`,a,e=>U(e.currentTarget.value)),u(t,n)},J=t=>{let r=n(()=>e(M).component);var i=f(),a=D(i);{let t=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);w(a,()=>e(r),(n,r)=>{r(n,{get name(){return l.name},get label(){return l.label},get required(){return l.required},search:e=>ae(C,e),resolve:e=>ne(C,e),get onCreate(){return e(t)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){j(L,e,!0)}})})}u(t,i)},Y=t=>{let r=n(()=>e(M).component);var i=f(),a=D(i);{let t=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);w(a,()=>e(r),(n,r)=>{r(n,{get name(){return l.name},get label(){return l.label},get required(){return l.required},search:e=>re(C,e),resolve:e=>ie(C,e),get onCreate(){return e(t)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){j(L,e,!0)}})})}u(t,i)},ce=t=>{{let r=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);z(t,{get name(){return l.name},get label(){return l.label},get required(){return l.required},search:t=>te(C,e(A),t),resolve:t=>ee(C,e(A),t),get onCreate(){return e(r)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){j(L,e,!0)}})}};c(K,t=>{e(A)?e(M)?.kind===`customer`?t(J,1):e(M)?.kind===`vendor`?t(Y,2):t(ce,-1):t(q)});var X=S(K,2),le=n=>{var r=We(),a=y(r);o(a,()=>e(B),t=>{ct(t,{get active(){return e(F)},onsaved:H,oncancel:()=>j(R,!1)})}),i(r),t(r,()=>Ie),O(()=>E(r,`aria-label`,`New ${e(I)}`)),h(`close`,r,()=>j(R,!1)),u(n,r)};c(X,t=>{e(F)&&e(R)&&t(le)}),u(a,W),r()}m([`input`]);var qe=a(`<div class="smrt-field-input__percent svelte-n1ol00" data-smrt-part="row"><!> <span class="smrt-field-input__percent-sign svelte-n1ol00" data-smrt-part="label" aria-hidden="true">%</span></div>`),Je=a(`<input type="url" class="svelte-n1ol00"/>`),Ye=a(`<input type="number" step="1" class="svelte-n1ol00"/>`),Xe=a(`<input type="number" step="any" class="svelte-n1ol00"/>`),Ze=a(`<textarea rows="3" class="svelte-n1ol00"></textarea>`),Qe=a(`<input type="text" class="svelte-n1ol00"/>`),$e=a(`<!> <!>`,1),et=a(`<p class="smrt-field-input__error svelte-n1ol00" data-smrt-part="error" role="alert"> </p>`),tt=a(`<small class="svelte-n1ol00"> </small>`),nt=a(`<div class="smrt-planner-form__field svelte-n1ol00" data-smrt-component="FieldInput"><!> <!> <!></div>`);function rt(t,a){s(a,!0);let o=k(a,`idPrefix`,3,`field`),f=k(a,`hideRequired`,3,!1),m=k(a,`creatable`,3,!0),g=n(()=>W(a.field,a.modelId)),_=n(()=>a.label??L(a.field.name)),b=n(()=>`${o()}-${a.field.name}`),C=n(()=>a.field.required&&!f()),w=n(()=>a.value===null||a.value===void 0?``:typeof a.value==`object`?JSON.stringify(a.value):String(a.value)),A=n(()=>[...e(C)||(a.field.enum??[]).includes(``)?[]:[{value:``,label:`(none)`}],...(a.field.enum??[]).map(e=>({value:e,label:e===``?`(none)`:I(e)}))]);function j(e){if(e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}function N(e){try{return JSON.parse(e)}catch{return e}}let P=e=>e.slice(0,10);var F=nt(),z=y(F),ee=t=>{{let r=n(()=>a.value===!0);R(t,{get checked(){return e(r)},onchange:e=>a.onchange(e.currentTarget.checked),get label(){return e(_)}})}},te=t=>{Ke(t,{get field(){return a.field},get value(){return a.value},get onchange(){return a.onchange},get label(){return e(_)},get name(){return e(b)},get required(){return e(C)},get creatable(){return m()}})},H=t=>{pe(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},get options(){return e(A)},get value(){return e(w)},onchange:e=>a.onchange(e)})},ne=t=>{he(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},rows:4,get value(){return e(w)},onchange:e=>a.onchange(e)})},re=t=>{ye(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},type:`email`,get value(){return e(w)},onchange:e=>a.onchange(e)})},U=t=>{ve(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},get value(){return e(w)},onchange:e=>a.onchange(e)})},ie=t=>{{let r=n(()=>typeof a.value==`number`?a.value:null);me(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},currency:`USD`,min:0,get value(){return e(r)},onchange:e=>a.onchange(e)})}},ae=t=>{var r=qe(),o=y(r);{let t=n(()=>xe(a.value));be(o,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},min:0,step:.01,get value(){return e(t)},onchange:e=>a.onchange(_e(e))})}l(2),i(r),u(t,r)},oe=t=>{{let r=n(()=>P(e(w)));ge(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},includeTime:!1,get value(){return e(r)},onchange:e=>a.onchange(e?new Date(`${e}T00:00:00Z`).toISOString():``)})}},G=t=>{{let r=n(()=>Pe(a.value));Se(t,{get name(){return e(b)},get label(){return e(_)},get required(){return e(C)},get value(){return e(r)},onchange:e=>a.onchange(Fe(e,a.value))})}},se=t=>{var n=$e(),r=D(n);B(r,{get for(){return e(b)},get label(){return e(_)},get required(){return e(C)}});var i=S(r,2),o=t=>{V(t,{get id(){return e(b)},get required(){return e(C)},get value(){return e(w)},onchange:e=>a.onchange(e.currentTarget.value)})},s=t=>{var n=Je();v(n),O(()=>{E(n,`id`,e(b)),n.required=e(C),x(n,e(w))}),p(`input`,n,e=>a.onchange(e.currentTarget.value)),u(t,n)},l=t=>{var n=Ye();v(n),O(()=>{E(n,`id`,e(b)),n.required=e(C),x(n,e(w))}),h(`focus`,n,e=>e.currentTarget.select()),p(`input`,n,e=>{let t=j(e.currentTarget.value);a.onchange(t===null?null:Math.trunc(t))}),u(t,n)},d=t=>{var n=Xe();v(n),O(()=>{E(n,`id`,e(b)),n.required=e(C),x(n,e(w))}),h(`focus`,n,e=>e.currentTarget.select()),p(`input`,n,e=>a.onchange(j(e.currentTarget.value))),u(t,n)},f=t=>{var n=Ze();M(n),O(()=>{E(n,`id`,e(b)),x(n,e(w))}),p(`input`,n,e=>a.onchange(N(e.currentTarget.value))),u(t,n)},m=t=>{var n=Qe();v(n),O(()=>{E(n,`id`,e(b)),n.required=e(C),x(n,e(w))}),p(`input`,n,e=>a.onchange(e.currentTarget.value)),u(t,n)};c(i,t=>{e(g)===`currency`?t(o):e(g)===`url`?t(s,1):e(g)===`integer`?t(l,2):e(g)===`decimal`?t(d,3):e(g)===`json`?t(f,4):t(m,-1)}),u(t,n)};c(z,t=>{e(g)===`boolean`?t(ee):e(g)===`relation`?t(te,1):e(g)===`enum`?t(H,2):e(g)===`textarea`?t(ne,3):e(g)===`email`?t(re,4):e(g)===`phone`?t(U,5):e(g)===`money`?t(ie,6):e(g)===`percent`?t(ae,7):e(g)===`datetime`?t(oe,8):e(g)===`address`?t(G,9):t(se,-1)});var K=S(z,2),q=t=>{var n=et(),r=T(n,!0);O(()=>{E(n,`id`,`${e(b)}-error`),d(r,a.error)}),u(t,n)};c(K,e=>{a.error&&e(q)});var J=S(K,2),Y=e=>{var t=tt(),n=T(t,!0);O(()=>d(n,a.help)),u(e,t)};c(J,e=>{a.help&&e(Y)}),i(F),O(()=>{E(F,`data-renderer`,e(g)),E(F,`data-invalid`,a.error?``:void 0)}),u(t,F),r()}m([`input`]);var it=a(`<p>Loading...</p>`),at=a(`<p class="smrt-planner-form__error svelte-1rp3j7g" role="alert" data-error-summary=""> </p>`),ot=a(`<p class="smrt-planner-form__error svelte-1rp3j7g" role="alert"> </p>`),st=a(`<form class="smrt-planner-form__root" novalidate="" data-smrt-component="FieldMapForm"><h3 class="svelte-1rp3j7g"> </h3> <!> <!> <!> <div class="smrt-planner-form__actions svelte-1rp3j7g"><button type="submit" class="svelte-1rp3j7g">Save</button> <button type="button" class="smrt-field-map-form__secondary svelte-1rp3j7g" data-smrt-part="action">Cancel</button></div></form>`);function ct(t,a){s(a,!0);let o=se(),l=n(()=>Oe(a.active,Z).filter(({catalogField:e,modelId:t})=>!G.rows.some(n=>n.objectRef===t&&n.fieldName===e.name&&n.visibility===`hidden`))),m=g(b(ke(a.active,Z))),_=g(a.id===void 0),v=g(``),x=g(b({})),w=n(()=>e(l).map(({field:e,catalogField:t})=>({...t,name:e.id,label:e.label,required:e.required??t.required}))),E=n(()=>U(e(w),e(x))),k={};async function M(e){let t=await Me(o,a.active,Z,e);j(m,t.values,!0),k=t.rows,j(_,!0)}a.id!==void 0&&M(a.id);async function N(t){t.preventDefault();let n=t.currentTarget;if(j(v,``),j(x,H(e(w),e(m)),!0),Object.keys(e(x)).length>0)await A(),De(n);else try{let t=await o.apply(Ne(a.active,Z,e(m),a.id,k,a.preset)),n=Q(a.active).records[Ae(a.active)],r=n?t[n.as]:void 0;if(!r)throw Error(`Nothing was saved.`);a.onsaved(r)}catch(e){j(v,e instanceof Error?e.message:`Could not save.`,!0)}}var P=f(),I=D(P),L=e=>{var t=it();u(e,t)},R=t=>{var r=st(),o=y(r),s=T(o),f=S(o,2);C(f,17,()=>e(l),({field:e,catalogField:t,modelId:n})=>e.id,(t,r)=>{let i=()=>e(r).field,o=()=>e(r).catalogField,s=()=>e(r).modelId;{let r=n(()=>({...o(),required:i().required??o().required}));rt(t,{get modelId(){return s()},get field(){return e(r)},get label(){return i().label},get help(){return i().help},get idPrefix(){return a.active.form.id},get error(){return e(x)[i().id]},get value(){return e(m)[i().id]},onchange:t=>{e(m)[i().id]=t,delete e(x)[i().id]}})}});var g=S(f,2),_=t=>{var n=at(),r=T(n,!0);O(()=>d(r,e(E))),u(t,n)};c(g,t=>{e(E)&&t(_)});var b=S(g,2),w=t=>{var n=ot(),r=T(n,!0);O(()=>d(r,e(v))),u(t,n)};c(b,t=>{e(v)&&t(w)});var D=S(b,2),k=S(y(D),2);i(D),i(r),O(e=>d(s,`${a.id===void 0?`New`:`Edit`} ${e??``}`),[()=>F(a.active.form.label,a.noun,a.noun!==void 0)]),h(`submit`,r,N),p(`click`,k,function(...e){a.oncancel?.apply(this,e)}),u(t,r)};c(I,t=>{e(_)?t(R,-1):t(L)}),u(t,P),r()}m([`click`]);export{Ee as a,Te as i,rt as n,Ce as o,De as r,we as s,ct as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Dt as t,Ft as n,G as r,Ot as i,P as a,U as o,V as s,W as c,ft as l,ht as u,j as d,mt as f,p,pt as m,st as h}from"./ALAldwdz.js";import{t as g}from"./
|
|
1
|
+
import{$ as e,Dt as t,Ft as n,G as r,Ot as i,P as a,U as o,V as s,W as c,ft as l,ht as u,j as d,mt as f,p,pt as m,st as h}from"./ALAldwdz.js";import{t as g}from"./DyML_o9Q.js";import{nt as _}from"./DCrLWq9K.js";import{t as v}from"./DhxPx2wh.js";var y=r(`<li><a class="svelte-ra5apm"> </a></li> <li><a class="svelte-ra5apm"> </a></li>`,1),b=r(`<details class="smrt-section-actions__root svelte-ra5apm" data-smrt-component="SectionActions"><summary class="svelte-ra5apm"><!></summary> <ul class="svelte-ra5apm"></ul></details>`);function x(r,x){i(x,!0);var S=c(),C=m(S),w=e=>{v(e,{get section(){return x.groups[0].id},get label(){return x.groups[0].label},compact:!0})},T=t=>{var r=b(),i=l(r),a=l(i);_(a,{path:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z`,size:16}),n(i);var c=u(i,2);d(c,21,()=>x.groups,e=>e.id,(t,r)=>{var i=y(),a=m(i),c=l(a),d=f(c);n(a);var _=u(a,2),v=l(_),b=f(v);n(_),h((t,n)=>{p(c,`href`,t),s(d,`${e(r).label??``} options`),p(v,`href`,n),s(b,`${e(r).label??``} help`)},[()=>g(`/recipes/${e(r).id}/`),()=>g(`/recipes/${e(r).id}/help/`)]),o(t,i)}),n(c),n(r),h(()=>{p(i,`title`,`${x.label} options and help`),p(i,`aria-label`,`${x.label} options and help`)}),o(t,r)};a(C,e=>{x.groups.length===1?e(w):x.groups.length>1&&e(T,1)}),o(r,S),t()}export{x as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as e,Ct as t,Dt as n,Ft as r,G as i,Ot as a,P as o,Pt as s,U as c,V as l,ft as u,ht as d,j as f,mt as p,pt as m,st as h}from"./ALAldwdz.js";import{At as g}from"./
|
|
1
|
+
import{$ as e,Ct as t,Dt as n,Ft as r,G as i,Ot as a,P as o,Pt as s,U as c,V as l,ft as u,ht as d,j as f,mt as p,pt as m,st as h}from"./ALAldwdz.js";import{At as g}from"./DyML_o9Q.js";var _=i(`<li><code class="svelte-kxkftj"><b> </b> </code></li>`),v=i(`<li class="smrt-connect-tools__none svelte-kxkftj" data-smrt-part="empty">None</li>`),y=i(`<li><code class="svelte-kxkftj"> </code></li>`),b=i(`<mark class="svelte-kxkftj">AI</mark>`),x=i(`<li><code class="svelte-kxkftj"> </code> <!></li>`),S=i(`<article class="svelte-kxkftj"><h3 class="svelte-kxkftj"> </h3> <div class="smrt-connect-tools__grid svelte-kxkftj" data-smrt-part="grid"><div><h4 class="svelte-kxkftj">REST routes <span class="svelte-kxkftj"> </span></h4> <ul class="svelte-kxkftj"></ul></div> <div><h4 class="svelte-kxkftj">MCP tools <span class="svelte-kxkftj"> </span></h4> <ul class="svelte-kxkftj"></ul></div> <div><h4 class="svelte-kxkftj">CLI commands <span class="svelte-kxkftj"> </span></h4> <ul class="svelte-kxkftj"></ul></div> <div><h4 class="svelte-kxkftj">Methods <span class="svelte-kxkftj"> </span> AI-callable</h4> <ul class="svelte-kxkftj"></ul></div></div></article>`),C=i(`<p class="svelte-kxkftj">This app exposes no generated REST, MCP or CLI surface.</p>`),w=i(`<p class="smrt-connect-tools__lede svelte-kxkftj" data-smrt-part="description">For connecting other software or an AI assistant to this app. All of it is
|
|
2
2
|
generated by s-m-r-t from the model; none of it was written by hand.</p> <!>`,1),T=i(`<section class="smrt-connect-tools__root svelte-kxkftj" aria-label="Connect other tools" data-smrt-component="ConnectTools"><!></section>`);function E(i,E){a(E,!0);let D=t(()=>E.models.filter(e=>e.exposed));var O=T(),k=u(O);g(k,{title:`Connect other tools`,children:(t,n)=>{var i=w(),a=d(m(i),2);f(a,17,()=>e(D),e=>e.id,(t,n)=>{var i=S(),a=u(i),m=p(a,!0),g=d(a,2),C=u(g),w=u(C),T=d(u(w)),E=p(T,!0);r(w);var D=d(w,2);f(D,21,()=>e(n).rest,e=>e.method+e.path,(t,n)=>{var i=_(),a=u(i),o=u(a),s=p(o,!0),f=d(o);r(a),r(i),h(()=>{l(s,e(n).method),l(f,` /api${e(n).path??``}`)}),c(t,i)},e=>{var t=v();c(e,t)}),r(D),r(C);var O=d(C,2),k=u(O),A=d(u(k)),j=p(A,!0);r(k);var M=d(k,2);f(M,21,()=>e(n).mcp,e=>e.name,(t,n)=>{var i=y(),a=u(i),o=p(a,!0);r(i),h(()=>l(o,e(n).name)),c(t,i)},e=>{var t=v();c(e,t)}),r(M),r(O);var N=d(O,2),P=u(N),F=d(u(P)),I=p(F,!0);r(P);var L=d(P,2);f(L,21,()=>e(n).cli,e=>e.name,(t,n)=>{var i=y(),a=u(i),o=p(a,!0);r(i),h(()=>l(o,e(n).name)),c(t,i)},e=>{var t=v();c(e,t)}),r(L),r(N);var R=d(N,2),z=u(R),B=d(u(z)),V=p(B,!0);s(),r(z);var H=d(z,2);f(H,21,()=>e(n).methods,e=>e.name,(t,n)=>{var i=x(),a=u(i),s=p(a),f=d(a,2),m=e=>{var t=b();c(e,t)};o(f,t=>{e(n).aiCallable&&t(m)}),r(i),h(t=>l(s,`${e(n).name??``}(${t??``})`),[()=>e(n).parameters.join(`, `)]),c(t,i)},e=>{var t=v();c(e,t)}),r(H),r(R),r(g),r(i),h(t=>{l(m,e(n).name),l(E,e(n).rest.length),l(j,e(n).mcp.length),l(I,e(n).cli.length),l(V,t)},[()=>e(n).methods.filter(e=>e.aiCallable).length]),c(t,i)},e=>{var t=C();c(e,t)}),c(t,i)},$$slots:{default:!0}}),r(O),c(i,O),n()}export{E as t};
|