progon-agent 1.3.1 → 1.4.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/dist/supervisor/cli.js +41 -41
- package/extension-bundle.json +3 -3
- package/extension-dist/background/background.js +89 -89
- package/extension-dist/card/card.html +8 -7
- package/extension-dist/card/card.js +3 -3
- package/extension-dist/chunks/shared-B4EisBUi.js +1 -0
- package/extension-dist/chunks/shared-B7QwPadt.js +98 -0
- package/extension-dist/chunks/shared-BQF2LG1p.js +377 -0
- package/extension-dist/chunks/shared-BgsXTfSV.js +1 -0
- package/extension-dist/chunks/shared-BpcMA-xb.js +135 -0
- package/extension-dist/chunks/shared-BvwA-cm2.css +1 -0
- package/extension-dist/chunks/shared-BwS34Mep.js +111 -0
- package/extension-dist/chunks/shared-CAKh7jnb.css +1 -0
- package/extension-dist/chunks/{shared-BJIubFtc.js → shared-CCOKrUJ3.js} +1 -1
- package/extension-dist/chunks/shared-Co5HfH-n.js +1 -0
- package/extension-dist/chunks/shared-Cs6uBr12.js +1 -0
- package/extension-dist/chunks/shared-D7SUgUlB.js +1 -0
- package/extension-dist/chunks/shared-DGDE0AeD.js +1 -0
- package/extension-dist/chunks/shared-DjlOTYdL.js +1 -0
- package/extension-dist/chunks/shared-Dk6zuyaK.css +1 -0
- package/extension-dist/chunks/shared-LK5ScAJA.js +227 -0
- package/extension-dist/chunks/shared-_8sSdh22.js +21 -0
- package/extension-dist/chunks/shared-sY-POWsC.js +51 -0
- package/extension-dist/content/content.css +1 -1
- package/extension-dist/content/content.js +211 -211
- package/extension-dist/manifest.json +30 -28
- package/extension-dist/offscreen/offscreen.html +2 -2
- package/extension-dist/offscreen/offscreen.js +1 -1
- package/extension-dist/popup/popup.html +7 -7
- package/extension-dist/popup/popup.js +3 -3
- package/extension-dist/sidepanel/sidepanel.html +10 -10
- package/extension-dist/sidepanel/sidepanel.js +1 -1
- package/extension-dist/workspace/workspace.css +1 -1
- package/extension-dist/workspace/workspace.html +12 -11
- package/extension-dist/workspace/workspace.js +59 -55
- package/package.json +2 -2
- package/extension-dist/chunks/shared-B3hsjAeB.js +0 -371
- package/extension-dist/chunks/shared-BJOAkaqO.js +0 -1
- package/extension-dist/chunks/shared-BUQXvbGJ.css +0 -1
- package/extension-dist/chunks/shared-BWYPh-Al.js +0 -1
- package/extension-dist/chunks/shared-Bdgj5eQ5.js +0 -1
- package/extension-dist/chunks/shared-BiDh2lEA.js +0 -1
- package/extension-dist/chunks/shared-BjgSKbjc.js +0 -1
- package/extension-dist/chunks/shared-Ccz3X65G.js +0 -51
- package/extension-dist/chunks/shared-CdkSNWvx.js +0 -21
- package/extension-dist/chunks/shared-CwW6XlwM.js +0 -1
- package/extension-dist/chunks/shared-DCs5uS1P.js +0 -1
- package/extension-dist/chunks/shared-DdJtX3_m.js +0 -105
- package/extension-dist/chunks/shared-O0OgUhxM.js +0 -227
- package/extension-dist/chunks/shared-SnJc3X_h.js +0 -126
- package/extension-dist/chunks/shared-UK_0TOj7.js +0 -98
- package/extension-dist/chunks/shared-c_EHmnKR.css +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Bn as e,Dn as t,Gn as n,Jn as r,Ln as i,Mn as a,Nn as o,Rn as s,Rt as c,Vn as l,Xn as u,ht as d,i as f,jn as p,kn as m}from"./shared-UK_0TOj7.js";var h=o(`kind`,[l({key:n().min(1),label:l({ru:n().min(1),en:n().min(1)}),kind:i(`text`),text:n().min(1)}),l({key:n().min(1),label:l({ru:n().min(1),en:n().min(1)}),kind:i(`token`),token:n().min(1)}),l({key:n().min(1),label:l({ru:n().min(1),en:n().min(1)}),kind:i(`list`),items:p(n().min(1)).min(1)}),l({key:n().min(1),label:l({ru:n().min(1),en:n().min(1)}),kind:i(`workflow`),workflowId:n().min(1),topic:s({kind:i(`preset`),presetId:n().min(1)})})]),g=`busyWith`,_=l({facts:p(h)}),v={"stand.main":`default`,"stand.dangerous":`warning`,"scenarios.ad_hoc_batch":`default`,"environment.projectDefault":`default`,"status.running":`default`,"status.finished":`default`,"status.aborted":`default`,"aiRunMode.mapping":`default`,"aiRunMode.agentic":`default`,"window.headful":`default`,"window.headless":`default`,"executor.extension":`default`,"executor.agent":`default`,"billingPeriod.monthly":`default`,"billingPeriod.yearly":`default`,"requestType.plan_change":`default`,"requestType.topup":`default`,"requestType.seats":`default`,"role.user":`default`,"allowedChange.file_bugs":`default`,"allowedChange.write_tests":`default`,"allowedChange.edit_project":`default`,"scope.project":`default`},y=n().uuid(),b=p(y).min(1).max(6).refine(e=>new Set(e).size===e.length,`selectedOptionIds must be unique`),x=l({questionId:y,selectedOptionIds:b.optional(),customText:n().optional(),skip:i(!0).optional()}).strict().superRefine((e,t)=>{[e.selectedOptionIds!==void 0,e.customText!==void 0,e.skip===!0].filter(Boolean).length!==1&&t.addIssue({code:`custom`,message:`exactly one answer resolution is required`})}),S=p(x).min(1).max(10).refine(e=>new Set(e.map(e=>e.questionId)).size===e.length,`questionId must be unique within answers`),C=l({name:i(`chat-question-answer`),batchId:y,revision:e().int().positive(),idempotencyKey:y,answers:S,modelSelectionId:n().min(1).optional(),tabFreeTestRunId:n().uuid().nullable().optional()}).strict(),w=l({name:i(`chat-question-cancel`),batchId:y,revision:e().int().positive(),idempotencyKey:y,tabFreeTestRunId:n().uuid().nullable().optional()}).strict(),T=l({t:i(`hello`),protocol_version:i(`1c.1`),resume:l({epoch:n().nullable(),last_seen_seq:t().nonnegative()}).optional(),runner_type:m([`extension`,`web`,`playwright`]).optional(),client_capabilities:p(n().min(1).max(64)).max(16).optional(),panel_id:u().optional()}),E=l({t:i(`ping`),ts:e().int()}),D=o(`kind`,[l({kind:i(`this_browser`)}).strict(),l({kind:i(`runner`),agentId:u()}).strict(),l({kind:i(`none`)}).strict()]),O=f.omit({kind:!0,window:!0}).extend({place:D,target:m([`calling_conversation`,`new_conversation`])}).strict(),k=l({name:i(`chat-send`),message:n(),mode:n(),effort:m(d),maxAgents:e().int().min(1).nullable(),place:D,modelSelectionId:n().min(1).optional(),policyVersion:n().min(1).optional(),pageSnapshot:c.optional(),tabFreeTestRunId:n().uuid().nullable().optional(),attachmentIds:p(u()).min(1).optional()}).strict().superRefine((e,t)=>{e.attachmentIds!==void 0&&(e.pageSnapshot!==void 0&&t.addIssue({code:`custom`,message:`attachmentIds are not allowed on a snapshot-delivery send`,path:[`attachmentIds`]}),new Set(e.attachmentIds).size!==e.attachmentIds.length&&t.addIssue({code:`custom`,message:`attachmentIds must be distinct`,path:[`attachmentIds`]})),e.effort===`max`!=(e.maxAgents!==null)&&t.addIssue({code:`custom`,message:`maxAgents is required with effort 'max' and must be null otherwise`,path:[`maxAgents`]}),e.pageSnapshot===void 0&&e.message.length===0&&t.addIssue({code:`custom`,message:`message is required`,path:[`message`]}),e.pageSnapshot!==void 0&&e.message.length!==0&&t.addIssue({code:`custom`,message:`message must be empty on a snapshot-delivery send`,path:[`message`]})}),A=l({name:i(`chat-stop`)}),j=l({name:i(`chat-host-action-complete`),conversationId:n().uuid(),toolCallId:n().min(1),historyId:n().uuid(),tabFreeTestRunId:n().uuid().nullable().optional()}),M=l({name:i(`chat-atlas-host-action-complete`),conversationId:n().uuid(),toolCallId:n().min(1),atlasRunId:n().uuid(),tabFreeTestRunId:n().uuid().nullable().optional()}),N=l({name:i(`chat-ai-host-action-complete`),conversationId:n().uuid(),toolCallId:n().min(1),aiRunId:n().uuid(),tabFreeTestRunId:n().uuid().nullable().optional()}),P=l({name:i(`chat-tool-confirm`),toolCallId:n(),modelSelectionId:n().min(1).optional(),tabFreeTestRunId:n().uuid().nullable().optional(),edits:O.optional()}),F=l({name:i(`chat-tool-reject`),toolCallId:n(),modelSelectionId:n().min(1).optional(),tabFreeTestRunId:n().uuid().nullable().optional()}),I=l({name:i(`run-cancel`)}),L=l({name:i(`session-bye`),release_runner:a().optional()}),R=l({name:i(`onboarding-start`)}).strict(),z=l({name:i(`onboarding-send`),message:n().min(1).max(4e3)}).strict(),B=l({name:i(`onboarding-advance`),action:m([`continue`,`skip_stage`]),stageId:n().min(1).max(50),stateRevision:e().int().positive()}).strict(),V=o(`name`,[k,A,j,M,N,P,F,I,L,R,z,B,C,w]),H=l({t:i(`cmd`),request_id:n().guid(),cmd:V}),U=l({t:i(`auth:refresh`),token:n().min(1)});o(`t`,[T,E,H,U]);var W=[`scenario-run`,`make-auto-queue`,`user-notifications`,`workflow`],G=l({t:i(`hello-ack`),session_id:n().guid(),channel:m([`run`,`conversation`,...W]),channel_id:n().guid(),epoch:n(),top_seq:t(),recovered:a(),server_time:e().int()}),K=l({t:i(`event`),seq:t().positive(),epoch:n(),event_type:n(),recorded_at:e().int().nonnegative(),payload:r(),payload_version:n()}),q=l({t:i(`notify`),channel:m(W),channel_id:n().guid(),seq:t().positive()}).strict(),J=l({t:i(`ack`),request_id:n().guid(),status:m([`accepted`,`duplicate`,`rejected`]),result:r().optional(),error_code:n().optional(),error_message:n().optional()}),Y=l({t:i(`pong`),ts:e().int(),server_ts:e().int()}),X=l({t:i(`auth:refresh-required`),expires_in_ms:e().int().nonnegative()}),Z=l({t:i(`auth:refreshed`),expires_at:e().int()});o(`t`,[G,K,q,J,Y,X,Z]);export{_ as i,g as n,v as r,O as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={popup:{brand:`Progon`,languageGroup:`Interface language`,header:{switchLabel:`Progon on pages`,switchOn:`On in every tab`,switchOff:`Off in every tab`,switchFailed:`Could not switch Progon`,switchFailedDetail:`Pages stay as they were.`,settings:`Settings`,account:`Account: {{name}}`,unknownUser:`Unknown user`,openWeb:`Open Progon Web`,signOut:`Sign out`,signOutFailed:`Could not sign out`},language:{profileSaveFailed:`Couldn't save the language to your profile. AI answers may come in the previous language.`},paused:{title:`Progon is off in every tab`,enable:`Turn on`},project:{label:`Project`,placeholder:`Choose a project`,search:`Find a project`,empty:`Nothing found`,loading:`Loading projects`,contextLabel:`Project and the tab\u2019s site`,switchFailed:`Could not switch the project`},projects:{emptyTitle:`No projects yet`,emptyText:`Create a project in Progon Web and open this window again.`,openWeb:`Open Progon Web`,failedTitle:`Could not load projects`,failedText:`The server did not respond. Check your connection.`},application:{label:`Application`,all:`All applications`,switchFailed:`Could not switch the application`},site:{reading:`Checking the site address`,cellLabel:`Application and environment of this site`,more:`More: {{about}}`,environmentChoice:`Which environment are you working in?`,environmentChoiceHint:`This address belongs to several environments of the project. Your choice is remembered.`,environmentPlaceholder:`Choose an environment`,environmentLabel:`Environment`,environmentFailed:`Could not remember the environment`,ambiguous:`Shared by several apps in {{environment}}`,ambiguousHint:`Fix the addresses in Progon Web: Environments \u2192 Addresses.`,notBound:`This site is not bound to <b>\u201C<project/>\u201D</b>`,noTargets:`<b>\u201C<project/>\u201D</b> has no addresses yet`,bindMore:`More about binding`,bindInfo:`Binding records whose address this is: which application, in which environment. Progon uses it to recognise the site in the tab and to open it in runs.`,applicationLabel:`Application`,newApplication:`New application`,newEnvironment:`New environment`,newApplicationPlaceholder:`e.g. Admin`,newEnvironmentPlaceholder:`e.g. Demo`,backToList:`Choose from the list`,taken:`in use: {{address}}`,noEnvironmentsHint:`The project has no environments yet; this is the first.`,allTakenHint:`{{application}} has an address in every environment.`,emptyApplication:`Enter the application name`,emptyEnvironment:`Enter the environment name`,environmentRequired:`Choose an environment from the list`,duplicateApplication:`Application {{name}} already exists.`,duplicateEnvironment:`Environment {{name}} already exists.`,chooseExisting:`Choose it`,bindSay:{free:`<b><host/></b> becomes the address of <b><application/></b> in\u00A0<b><environment/></b>.`,newEnvironment:`A new environment <b><environment/></b> is created, with <b><host/></b> as the address of <b><application/></b> in it.`,newApplication:`A new application <b><application/></b> is created, with <b><host/></b> as its address in\u00A0<b><environment/></b>.`,both:`A new application <b><application/></b> and environment <b><environment/></b> are created, with <b><host/></b> as the address.`,replace:`<b><application/></b> in\u00A0<b><environment/></b> is at <b><old/></b> now. It changes to <b><host/></b> for the whole team.`,freshTaken:`While you were choosing, <b><application/></b> got an address in\u00A0<b><environment/></b>: <b><old/></b>. It changes to <b><host/></b> for the whole team.`,freshChanged:`While you were choosing, the address of <b><application/></b> in\u00A0<b><environment/></b> changed to <b><old/></b>. It changes to <b><host/></b> for the whole team.`},bind:`Bind`,replace:`Replace address`,bindFailed:`Could not bind the site: no response from the server, or a server error. Press Bind again.`,bindPartial:{application:`Application {{application}} was created, but the address is not bound: no response from the server, or a server error. Press Bind again.`,environment:`Environment {{environment}} was created, but the address is not bound: no response from the server, or a server error. Press Bind again.`,both:`Application {{application}} and environment {{environment}} were created, but the address is not bound: no response from the server, or a server error. Press Bind again.`},createdNotBound:{application:`Application {{application}} was created, but the address is not bound. {{reason}}`,environment:`Environment {{environment}} was created, but the address is not bound. {{reason}}`,both:`Application {{application}} and environment {{environment}} were created, but the address is not bound. {{reason}}`},hostConflict:`{{host}} is already the address of {{application}} in {{environment}}. Choose another environment.`,readFailed:`Could not load the project addresses`,notSite:`This tab has no site`,notSiteHint:`Addresses are checked on http and https pages only.`,suggestion:`Site of`,suggestionProject:`\u201C{{project}}\u201D`,select:`Select`,environmentSuggestion:{dev:`Dev`,staging:`Staging`,local:`Local`,prod:`Prod`}},run:{free:`Free test run #{{number}} in progress`,plan:`Plan \u201C{{plan}}\u201D run in progress`,where:`in this tab`},switchRun:{freeTitle:`Switch project and cancel the test run?`,freeText:`Free test run #{{number}} in this tab will be cancelled. The tab\u2019s project becomes \u201C{{project}}\u201D.`,freeConfirm:`Switch and cancel the run`,planTitle:`Switch project?`,planText:`The \u201C{{plan}}\u201D run stays in progress in \u201C{{project}}\u201D \u2014 continue it from \u201CAssigned to me\u201D.`,planTextNoProject:`The \u201C{{plan}}\u201D run stays in progress \u2014 continue it from \u201CAssigned to me\u201D.`,planConfirm:`Switch project`,stay:`Keep the project`},filters:{title:`Show on pages`,bugs:`Bugs`,checklists:`Checklists`,incidents:`Incidents`,saveFailed:`Could not save the filter`},settings:{title:`Settings`,back:`Back`,saveFailed:`Could not save the setting`,groups:{view:`Appearance`,recording:`Recording and playback`,assistant:`Assistant`,pages:`Pages`,notifications:`Notifications`,notificationsHint:`One setting for the web and every browser where you have the extension.`,thisBrowser:`Notifications in this browser`},theme:`Theme`,themeLight:`Light`,themeDark:`Dark`,themeSystem:`System`,language:`Language`,hotkey:`Element picking`,hotkeyCapture:`Press a shortcut\u2026`,hotkeyName:`Element picking shortcut: {{hotkey}}. Press to change`,pause:`Pause between steps`,pauseName:`Pause between steps, ms`,ms:`ms`,pauseInvalid:`Enter a whole number, 0 or more`,pauseTooLong:`At most {{max}} ms`,isolation:`Input isolation`,isolationHint:`Use it if a site steals keys in the bug and incident forms.`,isolationOff:`Off`,isolationWindow:`Window`,isolationElement:`Element`,model:`AI model`,modelNone:`No models available`,modelKeyCompany:`company key`,modelKeyPersonal:`own key`,modelLoadFailed:`Could not load the AI models`,notifications:`Notifications on pages`,notificationsHint:`Progon pop-up messages on the pages of this browser. The feed and the number on the icon stay.`,osNotifications:`System notifications`,osNotificationsHint:`Shown when the AI is waiting for you and Progon is not on screen. Turning this on asks the browser for permission.`,osNotificationsWhen:`When the AI is waiting for you`,osNotificationsDenied:`The browser did not grant permission`,osNotificationsReadFailed:`Could not load the setting`,discovery:`Passive discovery`,discoveryHint:`Pages you open are added to the project map.`,discoveryStatus:{on:`On in \u201C{{project}}\u201D`,off:`Off`,companyOff:`Turned off by your company for everyone`,projectOff:`Turned off in \u201C{{project}}\u201D`,saving:`Saving\u2026`,readFailed:`Could not load the setting`,saveFailed:`Not saved`,noProject:`Choose a project to set this up`}}},panelFailureHead:{title:`Progon`},panelFeed:{back:`Back to chat`,backPlain:`Back`,settings:`Notification settings in Progon Web`,settingsTip:`Settings are in Progon Web`},shell:{loading:`Loading`,signIn:{title:`Sign in to Progon`,subtitlePopup:`QA testing platform`,subtitleSidepanel:`Sign in to open the assistant`,subtitleWorkspace:`The panel opens where you left off`,email:`Email`,emailPlaceholder:`you@company.com`,password:`Password`,passwordPlaceholder:`\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022`,submit:`Sign in`,forgotPassword:`Forgot password?`,createAccount:`Create account`,refused:`Wrong email or password`,noAnswer:`The server did not respond. Check your connection and sign in again.`},renderError:{popup:{title:`The popup failed to open`,message:`The error is logged. Reloading the window usually helps.`,reload:`Reload`},sidepanel:{title:`The assistant failed to open`,message:`The error is logged. Reloading the panel usually helps.`,reload:`Reload the panel`},card:{title:`The window failed to open`,message:`The error is logged. Reloading the window usually helps.`,reload:`Reload the window`},workspace:{title:`The panel failed to open`,message:`The error is logged. Reloading the panel usually helps.`,reload:`Reload the panel`},details:`Details`,copy:`Copy`,copied:`Copied`}},card:{field:{step:`step {{step}}`,done:`Done`,inputValue:{title:`Input value`,label:`Value`},password:{title:`Password`,label:`Password`,placeholder:`Enter the password again`,required:`Enter the password`,notKept:`The password is not kept after the browser closes`,show:`Show password`,hide:`Hide password`},expectedValue:{title:`Expected value`,label:`Expected value`},pageName:{title:`New page name`,label:`Page name`,placeholder:`e.g. Settings`,required:`Name the page`,why:`The tab has no title \u2014 name the page`}},assert:{title:`Add check`,titleElementNotExists:`Element to check`,type:`Type`,expectedValue:`Expected value`,inBlock:`in the \u201C{{block}}\u201D block`,replacesText:`Instead of the text \u201C<b>{{text}}</b>\u201D`,noBlock:`Block not found \u2014 this check cannot be bound here`,targetNotUnique:`There are several such elements in the block \u2014 pick the one that tells the row apart, such as its name`,targetTextTooLong:`The element's text is too long \u2014 pick a smaller element`,valueRequired:`Enter the expected text`,valueTooLong:`The value is longer than {{max}} characters \u2014 now {{length}}. Shorten it`,supportsVariables:`Supports`,variablesToken:`variables`,missingReference:`The value does not contain the variable`,insertReference:`Insert`,passwordNeedsReference:`For a password field, enter a variable`,nameToken:`name`},failure:{noResponse:`The server did not answer.`,refused:`The server did not accept the request.`,again:`Try again.`,retry:`Retry`},data:{checklistItems_one:`{{count}} checklist item`,checklistItems_other:`{{count}} checklist items`,checklists_one:`{{count}} checklist`,checklists_other:`{{count}} checklists`,itemsInParens_one:`({{count}} item)`,itemsInParens_other:`({{count}} items)`,bugs_one:`{{count}} bug`,bugs_other:`{{count}} bugs`,incidents_one:`{{count}} incident`,incidents_other:`{{count}} incidents`,comments_one:`{{count}} comment`,comments_other:`{{count}} comments`,none:`No data`},changePage:{title:`Change page`,current:`Now`,unknownPage:`Unknown page`,target:`Move to page`,search:`Find a page`,currentMark:`now`,noMatch:`No such pages \u2014 create a new one below.`,pagesLoading:`Loading pages`,pagesFailed:`The project pages did not load`,elementFailed:`The element did not load`,newPage:`New page`,newPageName:`Name`,newPageNamePlaceholder:`e.g. User profile`,newPagePath:`Path`,template:`Template:`,move:`Move`,createAndMove:`Create and move`,choosePage:`Choose a page`,nameRequired:`Name the page`,pathTaken:{line:`Page \u201C{{name}}\u201D already has this path`,choose:`Choose \u201C{{name}}\u201D`,reason:`Page \u201C{{name}}\u201D already has this path \u2014 choose it or change the path`},pathClaimed:`New page \u201C{{name}}\u201D in another row already has this path \u2014 change the path`,moveFailed:`The element was not moved`,noProject:`Choose a project in Progon to move the element to another page.`},pageConflict:{title:`Page conflict`,count_one:`{{count}} element`,count_other:`{{count}} elements`,subject_one:`One node of the page matches {{count}} element`,subject_other:`One node of the page matches {{count}} elements`,loadFailed:`The elements did not load`,unknownPage:`Unknown page`,choiceFor:`What to do with the element of page \u201C{{page}}\u201D`,choice:{keep:`Keep`,stale:`Outdated`,move:`To another page`,ignore:`Ignore`},merges:`\u201C{{name}}\u201D is already there \u2014 they will merge`,mergesUnnamed:`An unnamed element is already there \u2014 they will merge`,will:{stale:`\u201C{{page}}\u201D: mark outdated`,move:`\u201C{{page}}\u201D: move to \u201C{{target}}\u201D`,moveSomewhere:`\u201C{{page}}\u201D: move to another page`,merge:`\u201C{{page}}\u201D: move to \u201C{{target}}\u201D and merge with \u201C{{name}}\u201D`,mergeUnnamed:`\u201C{{page}}\u201D: move to \u201C{{target}}\u201D and merge with the unnamed element`,ignore:`\u201C{{page}}\u201D: hide the badge in this browser`,show:`\u201C{{page}}\u201D: show the badge again in this browser`},apply:`Apply`,nothingChosen:`Choose what to do with at least one element`,noProject:`Choose a project in Progon to apply these choices.`,choosePageFor:`Choose the page for \u201C{{page}}\u201D`,applyFailed:`Not applied`,choicesKept:`Your choices are kept \u2014 try again.`},merge:{title:`Merge elements`,loading:`Loading the elements`,loadFailed:`The elements did not load`,stays:`Stays \u2014 this element\u2019s name and locator`,receives:`receives the data and links`,deleted:`Will be deleted`,swap:`Swap`,merge:`Merge`,failed:`Not merged`},elementCard:{pin:`Pin`,pinned:`Pinned \u2014 a click outside will not close it`},elementData:{label:`Data of the element \u201C{{name}}\u201D`,labelUnnamed:`Data of an unnamed element`,merge:`Merge with another element`,loading:`Loading the element\u2019s data`,loadFailed:`The element\u2019s data did not load`,emptyTitle:`The element has no bugs or checklists`,emptyHint:`Add them in the \u201CAdd\u201D mode.`,bugs:`Bugs`,incidents:`Incidents`,checklist:`Checklist`,checklists:`Checklists`,actions:`Actions`,move:`Move to an element`,edit:`Edit`,outdate:`Outdated`,bindBug:`Bind to another element`,editBlocked:`Cannot edit: a test run of this checklist is in progress`,outdateBlocked:`Cannot mark as outdated: a test run of this checklist is in progress`,needsReview:`Needs review`,needsReviewShort:`Review`,items_one:`{{count}} item`,items_other:`{{count}} items`,itemsShort:`{{count}} it.`,neverRun:`never run`,lastPassed:`passed {{time}}`,lastFailed:`failed {{time}}`,edited:`edited {{time}}`,source:`Source: {{source}}`,sourceManual:`Manual`,sourceImport:`Import`,sourceExtension:`Recording`,untitled:`Untitled`,showChecklist:`Show {{number}} \u201C{{title}}\u201D`,showChecklistUntitled:`Show {{number}}`,outdated:`marked as outdated`,undo:`Undo`,outdateFailed:`Could not mark {{number}} as outdated \u2014 the checklist is back.`,undoFailed:`Could not bring {{number}} back.`,severityCritical:`Critical`,severityHigh:`High`,severityMedium:`Medium`,severityLow:`Low`,severityInfo:`Info`},unstableLocator:{title:`Element locator is unstable`,message:`The element was found by a fallback and may not be the right one.`,whyName:`Why this happens`,why:`The page structure changed or the saved locator no longer matches the DOM. Check that checklists and scenarios use the right element.`,editElement:`Edit element`,changePage:`Change page`,ignore:`Ignore`,deleteElement:`Delete element`,deleteFailed:`Error deleting element`},navigate:{title:`Go to address`,label:`Address on this site`,placeholder:`/path/to/page`,formatEmpty:`The path starts with /`,formatExact:`The path starts with /. * is any value`,wildcardCount:`{{count}} *`,wildcards:`* is replaced with any value on playback`,errorNoSlash:`The path must start with /`,go:`Go`},atlas:{title:`Explore the product`,hintLabel:`Instructions for the agent`,hintInfo:`Sign-in address, test credentials, where to start. The agent reads this before the crawl.`,hintPlaceholder:`Address, credentials, where to start`,hintInfoName:`Hint: instructions for the agent`,entryUrlLabel:`Start address`,entryUrlPlaceholder:`https://app.example.com/login`,allowedForms:`Allowed: {{forms}}`,entryUrlNotParsable:`The address could not be read`,entryUrlSchemeNotNavigable:`Use an http or https address`,entryUrlCarriesCredentials:`Remove the username and password from the address`,entryUrlHostNotInEnvironment:`This host does not belong to the chosen environment`,environmentLabel:`Environment`,environmentNoAddresses:`The environment \u201C{{name}}\u201D has no addresses`,environmentNoAddressesFix:`Add them in Environments \u2192 Addresses.`,environmentHasNoAddresses:`The project has no addresses in this environment. Add them in Environments \u2192 Addresses`,projectHasNoAddresses:`The project has no addresses, so an exploration cannot be started`,accessLabel:`What the agent may do`,tierSafeName:`Safe`,tierSafeDesc:`Creates and changes data, deletes only its own`,tierFullName:`Full`,tierFullDesc:`May change and delete any data`,submit:`Start exploration`,submitting:`Starting\u2026`,loading:`Reading the project\u2019s addresses`,contextFailed:`Could not read the project`,contextFailedWhy:`Without the project\u2019s addresses the start cannot be checked.`,refusedTitle:`The exploration did not start`,refusal:{projectScopeUnresolvable:`The project has no domain or it cannot be read, so the crawl cannot start. Check the project domain`,adoptedRunNotContinuable:`The crawl was not continued: a crawl handed over by the runner cannot be continued`,laneRefused:`Start not accepted by the extension: {{code}}`,insufficientCredits:`The company is out of AI credits, so the crawl did not start`,projectNotFound:`The project was not found or is no longer available`,environmentNotFound:`The chosen environment was not found. Choose another one`,workerUnreachable:`The extension background did not answer the start ({{code}}) \u2014 the crawl may have started. Press again without reloading the page: a repeated press does not create a second crawl`,extensionReloaded:`The extension was updated or reloaded during the start \u2014 the crawl may have started, and this card can no longer send it. Reload the page, and before starting again check whether the crawl appeared in Launches: a start after the reload creates a new crawl`,serverUnconfirmed:`The server did not confirm the start (no answer or a temporary error) \u2014 the crawl may have started. Press again: a repeated press does not create a second crawl`,pressRunAlreadyStarted:`This launch already created a crawl \u2014 find it in Launches`,requestMismatch:`This launch was already sent with other data, so the crawl did not start. Press again to send it as a new launch`}},extract:{title:`Extract a variable`,step:`Step #{{step}}`,source:`Source`,sourceElement:`Element`,sourceAddress:`Page address`,changeElement:`Change element`,addressPart:`Part of the address`,addressSegments:`Address segments`,how:`How to extract`,kindText:`Text`,kindAttribute:`Attribute`,kindRegex:`Regex`,kindSegment:`Segment`,attributeLabel:`Attribute name`,attributePlaceholder:`e.g. data-id`,regexLabel:`Regular expression`,regexPlaceholder:`e.g. # (\\d+)`,previewEmpty:`No value extracted`,previewNoMatch:`The regular expression found nothing`,previewHidden:`The value is hidden`,nameLabel:`Variable name`,namePlaceholder:`e.g. authToken`,nameInvalid:`Latin letters, digits and _ \u2014 up to 100 characters`,secret:`Hide the value`,secretInfo:`The value stays out of logs and run history.`,secretInfoName:`Hint: hide the value`,secretBadge:`Hidden`,remove:`Remove the variable`,add:`Another variable`,save:`Save step`,saveBlocked:`Fill in the name and the settings of every variable`,maxVariables:`Up to {{max}} variables in one step`},verdicts:{label:`Verdicts \u00AB{{name}}\u00BB`,labelUnnamed:`Verdicts of an unnamed element`,copyNumber:`Copy number {{number}}`,loading:`Loading the checklist`,loadFailed:`The checklist did not load`,notFound:`Checklist not found`,notFoundBody:`The element \u00AB{{name}}\u00BB no longer has it.`,notFoundBodyUnnamed:`This element no longer has it.`,untitled:`Untitled`,empty:`The checklist has no items`,emptyBody:`Add items with \u00ABEdit\u00BB in the element data.`,hydrating:`Loading saved results\u2026`,hydrateFailed:`Saved results did not load`,hydrateFailedBody:`Verdicts are hidden so that a marked item is not shown as empty.`,summary:`{{passed}} passed, {{failed}} failed, {{pending}} left`,summaryUnknown:`Results are not known yet`,needsReview:`Needs review`,passShort:`PASS`,failShort:`FAIL`,pass:`PASS \u2014 success`,fail:`FAIL \u2014 fail`,itemGroup:`Verdict of item {{number}}`,saving:`Saving\u2026`,unsaved:`Not saved`,failed:`The result was not saved. Retry in the row.`,unanswered:`The result was not saved: no connection to the server. Retry in the row.`}},workspace:{label:`Progon workspace`,loading:`Loading`,header:{expand:`Expand`,dock:`Shrink`,collapse:`Collapse to the edge`,close:`Close`,projectLoading:`Loading the project`,brand:`Progon`},rail:{label:`Sections`},views:{scenario:`Scenario`,sharedStep:`Shared step`,scenarioCreate:`New scenario`,sharedStepCreate:`New shared step`,apiRun:`API run`,network:`Network and console`},back:{underHint:`Back to the view under the hub`},lost:{title:`The panel lost its connection to the page`,message:`Open views and drafts are kept \u2014 reload the panel.`,reload:`Reload the panel`},apiRun:{title:`API run`,requests_one:`{{count}} request`,requests_other:`{{count}} requests`,noEnvironment:`No environment`,plan:`Plan`,cancel:`Cancel`,retryFailed:`Retry failed`,rerunAll:`Run again`,authExpiredTitle:`The address answered 401`,authExpiredText:`The run was stopped.`,authExpiredHintName:`Hint: how to continue`,authExpiredHint:`Sign in again in the test environment and run it again.`,planWriteFailed:`The outcome was not written into the plan item: {{message}}`,resultAbsent:`The full result of this request is not available: the browser did not keep it.`,ended:{allPassed:`API run finished \u2014 {{passed}} passed`,allFailed:`API run finished \u2014 {{failed}} failed`,mixed:`API run finished \u2014 {{passed}} passed, {{failed}} failed`,authExpired:`API run stopped \u2014 the address answered 401 ({{stopped}} not sent)`,cancelled:`API run cancelled \u2014 {{passed}} passed \u00B7 {{failed}} failed \u00B7 {{stopped}} cancelled`,interrupted:`API run interrupted: the extension's background work restarted`}},network:{title:`Network and console`,start:`Start recording`,stop:`Stop`,retry:`Retry`,connecting:`Connecting\u2026`,stopping:`Stopping\u2026`,stateLive:`Recording`,stateStopped:`Stopped`,stateOff:`Off`,stateError:`Capture stopped with an error`,requestsUnit_one:`request`,requestsUnit_other:`requests`,requestsSessionUnit_one:`request this recording`,requestsSessionUnit_other:`requests this recording`,filter:`Filter v{{version}}`,filterHintName:`More: filter`,filterHint:`Requests are picked by the project's capture rules, version {{version}}. You can set them up in the project on the \u00ABCapture rules\u00BB page.`,syncLabel:`Sync with the API catalogue`,syncSent:`Saved on the server`,syncPending:`Waiting to be sent`,syncFailed:`Rejected`,syncFailedReason:`Rejected: {{reason}}`,syncReason:{no_project:`no project selected`,server_rejected:`the server rejected the request`,network:`network error`,unauthorized:`sign-in required`,project_unavailable:`the project is unavailable`,server_error:`server error`},calibratingTitle:`Setting up request capture`,calibratingText:`AI is looking at the first requests. Recording goes on.`,repairingTitle:`Updating the capture rules`,repairingText:`The site changed, and AI is extending the rules. The filter keeps working.`,manualTitle:`Automatic setup did not succeed`,manualText:`The rules need to be set up by hand.`,manualSettings:`Settings`,degradedTitle:`Request body limit reached`,degradedText:`Requests are recorded without their content.`,errorTitle:`Capture stopped`,readFailedTitle:`Capture state not received`,readFailedText:`The extension did not return this tab\u2019s capture state.`,runOwnedTitle:`Atlas is capturing this tab's traffic`,runOwnedText:`Manual capture is unavailable while the exploration runs.`,failure:{cors:`Blocked by CORS`,aborted:`Request aborted`,blocked:`Blocked by the browser`,net_error:`Network error`},errorText:`Chrome detached debugging from the tab. Start again.`,syncRejectedTitle_one:`{{count}} record not saved`,syncRejectedTitle_other:`{{count}} records not saved`,syncRejectedText:`The rest go through as usual.`,uploadFailedTitle:`Upload failed`,uploadFailure:{unauthorized:`Sign in to Progon. Records are waiting to upload.`,session_revoked:`The server closed the capture session.`,server_rejected:`The server rejected the upload.`,network:`No connection to the server. Records are waiting to upload.`,server_error:`Server error. Records are waiting to upload.`},tabsLabel:`Capture log`,tabNetwork:`Network`,tabConsole:`Console`,errorCount:`errors: {{n}}`,include4xx:`4xx`,offTitle:`Capture is off`,offText:`We'll record this tab's requests and show network and console errors.`,chromeBarHintName:`More: the Chrome bar`,chromeBarHint:`Chrome will show the bar \u00ABProgon started debugging this browser\u00BB. That is how the extension sees responses and timings. Only this tab is recorded.`,liveEmptyTitle:`No errors yet`,liveEmptyText:`4xx, 5xx and console errors will show up here right away.`,stoppedEmptyTitle:`No errors during the recording`,stoppedEmptyText_one:`{{count}} request recorded, no errors.`,stoppedEmptyText_other:`{{count}} requests recorded, all without errors.`,tabEmpty:`No errors on this tab`,footer:`Newest first \u00B7 keeps up to {{max}}`,clear:`Clear`,occurrences:`Occurrences: {{count}}`,copy:`Copy the record`,copied:`Copied`},noProject:{title:`No project is selected in this tab`,message:`Choose a project in the extension window \u2014 the Progon button on the browser toolbar.`},recordedSteps:{cellsUnknown:`The project addresses are not loaded yet \u2014 try saving again in a moment`,ambiguousApplication:`The host {{host}} belongs to several applications ({{applications}}) \u2014 leave one address per host in Environments \u2192 Addresses`,pageCreateNoAnswer:`the server did not answer`}},hub:{bindingDraft:{continue:`Continue`},reason:{page_url_unknown:`No page address`},search:{label:`Search`,clear:`Clear the search`,placeholder:{page:`Search the whole project`,scenarios:`Name, number, page\u2026`,checklists:`Name, number, page\u2026`,sharedSteps:`Shared step name or number\u2026`,api:`Name, path, method\u2026`}},filters:{title:`Filters`,needsBinding:`Needs binding`,needsBindingCount:`{{count}} \u2014 grouped by import`,needsBindingNone:`None right now`,needsBindingUnknown:`The section is still loading`,textOnly:`Only with text steps`,textOnlyHint:`Candidates for \u00ABMake Auto\u00BB`,method:`Method \u00B7 any of the ticked`,methodGroup:`Method`,collection:`Collection`,reset:`Reset the filters`},toolbar:{select:`Select`,selectingOn:`Select mode on`,selectAll:`All`,selectAllHint:`Select everything in the results and turn select mode on`,clearSelection:`Clear the selection ({{count}})`},list:{selectRow:`Select {{row}}`,thisPage:`this page`,loadFailed:`The list did not load`,loading:`Loading\u2026`,loadMore:`Load more`,loadingMore:`Loading\u2026`,loadMoreFailed:`The next part of the list did not load`,retry:`Try again`,errors:{network:`No connection to Progon. Check the network or the VPN and press \u00ABTry again\u00BB.`,timeout:`Progon did not answer in time. Press \u00ABTry again\u00BB.`,session:`Your Progon session has ended. Sign in to the extension again and press \u00ABTry again\u00BB.`,forbidden:`No access: this account has no rights to the project\u2019s data (403).`,notFound:`Not found: the project or the record was deleted or is not available to this account (404).`,upgrade:`This version of the extension is outdated \u2014 update the extension.`,rateLimited:`Too many requests to Progon. Wait a moment and press \u00ABTry again\u00BB.`,server:`The Progon server answered with an error ({{status}}). Try again later.`,rejected:`Progon refused the request ({{status}}).`,unreadable:`The extension did not get an answer it can read. Press \u00ABTry again\u00BB, and if that does not help, reload the tab.`},auxiliary:{tags:`The project\u2019s tags did not load \u2014 the tag filter is unavailable`,imports:`Imports did not load \u2014 \u00ABNeeds binding\u00BB cannot group rows by import`,launchDecisions:`Auto launch check did not load \u2014 Auto launch is unavailable`,recent:`Recent activity did not load \u2014 the \u00ABRecent\u00BB group is unavailable`},countOf:`{{visible}} of {{total}}`,countLoaded:`{{loaded}} of {{total}} loaded`,countFound:`{{count}} found`,blank:{page:{title:`This project has nothing to show yet`,body:`No scenario, checklist or API request \u2014 record a scenario from the Progon panel or import them in the web app.`},scenarios:{title:`This project has no scenarios yet`,body:`Record the first one on this page or build it in the editor.`,newScenario:`New scenario`},checklists:{title:`This project has no checklists yet`,body:`Checklists are created in the Progon web app or by import.`},sharedSteps:{title:`This project has no shared steps yet`,body:`A shared step is created from the scenario editor: select steps and extract them.`},api:{title:`This project has no API requests yet`,body:`Import a Postman or OpenAPI collection in the web app \u2014 the requests appear here.`}},noResults:{title:`Nothing found`,body:`Try another name or number. The filters narrow the list too.`},allBound:{title:`Everything is bound`,body:`Nothing in this section is waiting for binding. Clear the filter to see the rest.`},resetSearch:`Reset the search and the filters`},rowActions:{edit:`Edit`,makeAuto:`Make Auto`,run:`Run`,testRun:`Test run in this browser`,testRunEmpty:`This shared step has no steps \u2014 a test run is unavailable`,checklistRun:`Run on the page`,checklistRunUnbound:`Not bound to a page element \u2014 bind it first`,usages:`Used by`,openWeb:`Open on the web`},rail:{total:`total: {{count}}`,runnable:`ready to run: {{count}}`,announce:{noSelection:`{{section}} section.`,withSelection:`{{section}} section. {{count}} selected.`,withRunnable:`{{section}} section. {{count}} selected, {{runnable}} ready to run.`}},actions:{bindingEntries:{editElement:`Edit element`,bindChecklist:`Bind checklist`,rebindChecklist:`Rebind checklist`,rebindBug:`Rebind bug`},errors:{aiDisabled:`AI is turned off by your administrator`,hooksLoad:`Failed to load run hooks. Try again.`,environmentLoad:`Failed to load the environment preference. Try again.`,environmentSave:`Failed to save the environment choice. Try again.`,noEligibleScenarios:`None of the selected scenarios is eligible for binding.`,checklistNotBound:`Bind this checklist to a page element first.`,checklistPageMismatch:`This checklist belongs to another page.`,host:{protocolMount:`This hub frame no longer belongs to the open panel.`,agentActive:`An agent is working in this tab`,urlNotNavigable:`Cannot open the page: \u201C{{url}}\u201D is not an http or https address.`,noProject:`No project is selected in this tab.`,playbackActive:`Stop the playback first.`,recordingActive:`Stop the recording first.`,queueAlreadyRunning:`A scenario queue is already running.`,emptySelection:`Select at least one item.`,hookResolutionFailed:`One of the selected hooks is unavailable.`,testRunInFlight:`A shared-step test run is already starting.`,sharedStepNoSteps:`This shared step has no steps to run.`,checklistNotBound:`Bind this checklist to a page element first.`,checklistPageMismatch:`This checklist belongs to another page.`,elementNotFound:`The bound element was not found on this page.`,pageNotMapped:`Add this page to the project before running the action.`,makeAutoQueueRefused:`The \u00AB\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0430\u0432\u0442\u043E\u00BB queue refused this press.`,workflowLaunchRefused:`The swarm was not launched.`,bindingBusyEntity:`Finish \u00AB{{entry}}\u00BB first.`,bindingBusy:{activeInThisTab:`Binding {{code}} {{name}} is in progress on this page.`,activeInOtherTab:`Binding {{code}} {{name}} is in progress in another tab.`,draftOfOtherScenario:`Finish binding {{code}} {{name}} first, or discard its draft.`},scenarioUnavailable:`The scenario did not open: it was deleted, you have no access to it, or the server did not respond. Refresh the list.`,nothingToBind:`No step of this scenario needs binding. The list is refreshed.`,clientUpgradeRequired:`Update Progon to run scenarios: this version is no longer supported by the server.`,scenarioNoSteps:`This scenario has no steps \u2014 the run did not start.`,environmentNotChosen:`No environment chosen \u2014 the run did not start.`,siteNotInProject:`{{host}} is not among the project addresses \u2014 the run environment cannot be determined. Bind the site in the extension popup.`,playbackStopped:`The run was cancelled.`,playbackStartFailed:`The run did not start. The reason is in the message on the page.`,internal:`The tab could not complete this action. Try again.`,elementSaveFailed:`The element was not saved. Try again.`,elementSaveOffline:`The element was not saved: no connection to the server.`,pageConnectionLost:`The connection to the page was lost \u2014 the action was not done.`},api:{validation:`Check the selected values and try again.`,duplicateScenarios:`The scenario selection contains duplicates. Refresh the list.`,session:`Your session has expired. Sign in again and retry.`,forbidden:`You do not have permission to perform this action.`,rateLimited:`Too many requests. Wait a little and try again.`,upgrade:`Update the extension before using this action.`,projectMissing:`This project is no longer available.`,pageMissing:`The selected page is no longer available.`,scenariosMissing:`One or more scenarios are no longer available.`,collectionMissing:`The selected collection is no longer available.`,folderMismatch:`The selected folder does not belong to that collection.`,requestMissing:`One of the API requests is no longer available.`,requestInUse:`This API request is used by a scenario and cannot be deleted.`,applicationMismatch:`The selected application does not belong to this project.`,pageApplicationMismatch:`The page belongs to another application.`,missingRequests:`One or more selected API requests are no longer available.`,requestMissingName:`Give every selected API request a name before creating a scenario.`,scenarioNameRequired:`Enter a scenario name.`,bindingMissing:`One of the scenario steps has an invalid binding.`,partialMove:`Only part of the selected requests was moved.`,blockReasons:{missingEnvironment:`Select an environment for this request.`,missingVariables:`Fill in the variables required by this request.`,unsupportedAuth:`This authentication type is not supported in the launcher.`,secretValueNotSet:`Set the required secret value in the selected environment.`,setupRequired:`Finish configuring this request on the web.`,contractViolation:`The server did not provide a valid block reason.`},unblockHints:{finishInWeb:`Finish the setup in the web app \u2014 environments and variables are edited there.`,chooseEnvironment:`Pick an environment at the bottom of the panel \u2014 project environments are created in the web app.`},timeout:`The server did not answer in time. Try again.`,generic:`The action could not be completed. Try again.`},gates:{activityLoading:`The tab state is still loading`,manualBinding:{live:`Binding {{scenarioCode}} is in progress`,unreadable:`The binding state could not be read. Reload the page`},noSelection:`Select at least one item`,selectScenario:`Select a scenario`,selectRows:`Select rows`,hooksLoading:`Run hooks are still loading`,hooksUnavailable:`Run hooks are unavailable \u2014 retry loading them`,environmentLoading:`The environment preference is still loading`,environmentUnavailable:`The environment preference is unavailable \u2014 retry loading it`,runSettingsLoading:`The run settings are still loading`,requestInFlight:`Wait for the previous action to finish`,autoLaunchChecking:`Auto launch is still being checked`,autoLaunchUnchecked:`Auto launch not checked \u2014 retry loading`,noApplication:`This tab is not linked to a project application`,noPage:`This checklist is not linked to a project page`}},common:{cancel:`Cancel`,retry:`Retry`,saving:`Saving\u2026`,dismiss:`Dismiss message`},footer:{run:`Run`,runCount:`Run \u00B7 {{count}}`,environment:`Environment`,noEnvironment:`No environment`,environmentsLoading:`Loading environments`,environmentsError:`Could not load the project environments: {{reason}}`,retryEnvironments:`Retry loading environments`,scenarios:{bind:`Bind elements`,bindCount:`Bind elements \u00B7 {{count}}`,makeAuto:`Make Auto`,makeAutoCount:`Make Auto ({{eligible}} of {{total}})`,assignPage:`Assign page`},api:{readyCount:`ready: {{count}}`,blockedCount:`need setup: {{count}}`,move:`Move`,delete:`Delete`,createScenario:`Create scenario`},sharedStepRun:`Test run in browser`,checklistRun:`Run on the page`,bulk:{selected:`Selected: {{n}}`,label:`Actions on the selected`,clear:`Clear selection`,more:`More`}},dialogs:{pageLabel:`Page`,noPage:`No page`,selectPage:`Select a page`,collectionLabel:`Collection`,selectCollection:`Select a collection`,folderLabel:`Folder`,collectionRoot:`No folder \u00B7 collection root`,scenarioNameLabel:`Scenario name`,assignPage:{title:`Assign page`,description:`{{count}} scenarios selected. The page changes for the whole batch.`,submit:`Assign`},moveApi:{title:`Move API requests`,description:`{{count}} requests selected. Choose a collection and, optionally, a folder.`,submit:`Move`},deleteApi:{title:`Delete API requests?`,description:`{{count}} requests selected. This action cannot be undone.`,submit:`Delete`},createScenario:{title:`Create scenario from API requests`,description:`{{count}} requests selected. Enter a name and a start page.`,submit:`Create scenario`}},preview:{completedTitle:`Run completed`,completedDescription:`{{code}} \u00B7 the latest run is up to date`,failedTitle:`Run failed`,failedDescription:`{{code}} \u00B7 the latest failed run is up to date`,stoppedTitle:`Run stopped`,stoppedDescription:`{{code}} \u00B7 the stopped run is up to date`,openEntity:`Open {{code}}`,runnerQueuedTitle:`Queued on runner \u00B7 {{run}}`,runnerQueuedDescription:`The run was accepted by \u201C{{agent}}\u201D.`,openRun:`Open run`},run:{loadingMode:`Loading the run mode`,modeLabel:`Project execution mode`,mode:{manual:`Manual`,auto:`Auto`},start:`Run`,startCount:`Run \u00B7 {{count}}`,starting:`Starting\u2026`,where:`Where to run`,browser:`In this browser`,browserDescription:`Run in the selected mode in the current tab`,runner:`On a runner\u2026`,runnerDescription:`Choose an agent, environment and queue options`,modeError:`The run mode could not be loaded or saved.`,readyOfTotal:`{{ready}} of {{total}}`,batchCheck:{readyLead:`Ready for Auto: {{ready}} of {{total}}. The others will not start:`,launch:`Run \u00B7 {{count}} \u00B7 {{mode}}`}},autoConsent:{title:`Enable Auto mode?`,description:`Scenario steps run automatically. AI runs locked text steps and checks expected results written as text. You can switch back to Manual in the mode switch.`,descriptionWithProject:`Scenario steps run automatically. AI runs locked text steps and checks expected results written as text. You can switch back to Manual in the mode switch. You can remember the mode for \u201C{{project}}\u201D.`,remember:`Remember my choice`,enable:`Enable Auto`},hooks:{trigger:`Hooks: {{before}} before the scenario, {{after}} after`,title:`Run hooks`,description:`Shared steps run before and after every scenario in the queue. A single Manual run ignores hooks.`,phase:{before:`Before the scenario`,after:`After the scenario`},none:`No hooks`,add:`Add a shared step`,remove:`Remove \u201C{{name}}\u201D`,loadingStep:`Loading shared step\u2026`,unavailableStep:`Shared step unavailable`,searchLabel:`Search shared steps`,searchPlaceholder:`Name or description\u2026`,results:`Shared steps for \u201C{{phase}}\u201D`,loading:`Loading shared steps\u2026`,loadError:`The shared steps could not be loaded.`,empty:`Nothing found.`,loadMore:`Load more \u00B7 {{loaded}} of {{total}}`,loadingMore:`Loading more\u2026`,loadMoreError:`The next page could not be loaded. The loaded steps remain available.`,saveError:`The project hooks could not be saved.`},makeAuto:{title:`Make Auto \u00B7 {{count}} scenarios`,title_one:`Make Auto \u00B7 {{count}} scenario`,title_other:`Make Auto \u00B7 {{count}} scenarios`,description:`The agent will walk the text steps and bind the elements.`,previewLoading:`Asking the server what would go into the queue\u2026`,previewFailedTitle:`The server could not be asked`,previewRetry:`Try again`,eligibleTitle:`To queue \u00B7 {{count}}`,eligibleEmpty:`No selected scenario needs binding.`,skippedTitle:`Skipped \u00B7 {{count}}`,unavailableTitle:`Unavailable \u00B7 {{count}}`,unknownScenarioLabel:`Scenario unavailable`,instructionsLabel:`Instructions for the agent \u00B7 optional`,instructionsScope:`Applies to every run in this batch.`,instructionsPlaceholder:`For example: the promo code is applied; do not change the address.`,instructionsHint:`One set of instructions for the whole batch \u2014 the agent receives it with every scenario. Sent to the AI provider in plain text; not stored on the scenario.`,instructionsTooLong:`Instructions are too long: {{used}} of 8 KB. Shorten the text.`,instructionsControlChars:`Instructions contain forbidden control characters.`,byteCounter:`{{used}} of 8 KB`,startPageWarning:`The queue starts from whatever page this tab is on. For every scenario that does not start there, the agent will get to its start page itself \u2014 those actions are billed to your run credits.`,cancelKeepsSelection:`Cancel preserves the selection`,submit:`Start \u00B7 {{count}}`,submitting:`Sending\u2026`,submitError:`The scenarios could not be queued. The instructions and the selection are preserved.`,submitUnknown:`The server may have received the launch. Press again \u2014 it won't start twice. The instructions, selection and effort stay fixed until then.`},runner:{back:`Back to selection`,heading:`Run on a runner`,scenariosMissing:`No scenarios selected`,scenarioSummaryMore:`{{shown}} and {{count}} more`,loading:`Loading agents\u2026`,common:{cancel:`Cancel`,retry:`Retry`,done:`Done`},agentLoadError:{title:`Agents could not be loaded`,description:`Check your connection and try loading the list again.`,liveSummary:`Agents could not be loaded. Retry is available.`,footerSupport:`Agent loading failed. Retry the request or close the runner.`},noAgents:{title:`No agents yet`,description:`Install and enroll an agent before sending scenarios to a runner.`,action:`Open My Agents`,liveSummary:`No agents are available. Open My Agents to enroll one.`,footerSupport:`Connect an agent in My Agents before starting a run.`},agent:{label:`Runner agent`,you:`you`,ready:`Ready`,offlineSeen:`{{reason}} \u00B7 last seen {{seen}}`,activeRun:`running \u201C{{name}}\u201D`,activeBatch:`batch of {{count}} scenarios`,busy:`Busy \u00B7 {{detail}} \u00B7 the run will be queued`,version:`agent {{version}}`,noneDispatchable:`No available agent can accept this run.`,hint:`Busy agents remain selectable: the new run waits in their queue.`,blocked:{notOwner:`Only the owner can dispatch`,notEnrolled:`Enrollment is not complete`,offline:`Offline`},activeJob:{make_auto:`binding scenarios`,atlas_crawl:`mapping the site`,swarm:`hosting an agent swarm`},lifecycle:{pending_enroll:`Pending enrollment`,active:`Enrolled`,revoked:`Revoked`},readiness:{not_owner:`Not owned`,pending_enroll:`Pending enrollment`,offline:`Offline`,capability_missing:`Update required`,queue_full:`Queue full`,ready:`Ready for runs`}},queue:{unpublishedShort:`Queue not reported`,row:`{{remaining}} of {{limit}} free`,noAgent:`Select an available agent`,unpublished:`This agent does not publish queue capacity. You can still dispatch; the server will verify capacity.`,capacity:`Queue capacity: {{remaining}} of {{limit}} runs available`,myAgents:`My Agents`,full:`This agent queue is full (limit {{limit}}). Choose another agent.`,overLimit:`{{count}} scenarios exceed this agent queue limit of {{limit}} by {{excess}}.`},environment:{label:`Environment`,projectDefault:`Project default`,loading:`Loading environments\u2026`,loadError:`Environments could not be loaded.`,empty:`No custom environments. The project default will be used.`,hint:`Only an explicit environment overrides the project default.`,unavailable:`The selected environment is no longer available.`},entryUrl:{label:`Entry URL`,reset:`Reset to the current page`,hint:`The current page URL is used unless you change it.`,batchHint:`Every scenario in the batch starts from this URL.`,errors:{required:`Enter an entry URL.`,tooLong:`The URL must be 2,000 characters or fewer.`,invalid:`Enter a complete navigable http:// or https:// URL without surrounding spaces.`}},headful:{label:`Show browser window`,description:`Run visibly on the agent machine.`},debug:{label:`Debug run`,description:`Mark this dispatch as a debug run.`},errors:{dispatch:`The run could not be queued. Check the agent and try again.`,queueFullGeneric:`The agent queue filled up. Choose another agent or try later.`,queueFull:`The agent already has {{queued}} of {{limit}} queued runs.`,scenarioMissing:`A selected scenario is no longer available. Refresh the list.`,agentMissing:`The selected agent is no longer available. Reload the agent list.`,notOwner:`Only this agent\u2019s owner can start a run on it.`,offline:`The selected agent went offline. Choose another agent or try later.`,environmentMissing:`The selected environment is no longer available.`,targetsNotConfigured:`The project has no addresses \u2014 add them in Environments \u2192 Addresses or bind the site in the extension popup.`,targetsCellMissing:`The scenario application has no address in the selected environment.`,targetsAddressRequired:`In the selected environment the scenario application has only a host pattern \u2014 an exact address is needed.`,startPage:`The scenario start page could not be resolved.`,entryUrl:`The entry URL override was rejected. Check the URL and try again.`,dispatchMismatch:`This retry does not match the original dispatch. Start it again.`,timeout:`No answer from the server in {{seconds}} seconds. The dispatch may still have reached the agent. Retry uses the same request identity, so it cannot create the same runs twice.`,invalidInput:`The project or scenario selection is incomplete.`},rejections:{unknown:`The runner rejected this scenario for an unknown reason.`,scenarioMissing:`The scenario is no longer available.`,environmentMissing:`The environment is no longer available.`,targetsNotConfigured:`The project has no addresses.`,targetsCellMissing:`The scenario application has no address in this environment.`,targetsAddressRequired:`The scenario application has only a host pattern here.`,startPage:`The start page could not be resolved.`,entryUrl:`The entry URL override is invalid.`,dispatchMismatch:`This retry no longer matches the original dispatch.`,offline:`The agent went offline before accepting this scenario.`},results:{queuedCount:`{{count}} queued`,duplicateCount:`{{count}} already queued`,rejectedCount:`{{count}} rejected`,agent:`Agent: {{name}}`,openQueue:`Open runner queue`,rejectedTitle:`Some scenarios were rejected`,rejectedDescription:`Rejected scenarios remain selected so you can fix or retry them.`,bindRejected:`Bind elements`,queued:`Queued`,duplicate:`Already queued`,openRun:`Open run {{id}}`,runStatus:`Server status: {{status}}`,makeAutoTitle:`Make rejected scenarios auto-runnable`,makeAutoAction:`Make Auto \u00B7 {{count}}`,liveSummary:`Dispatch result: {{queued}} queued, {{duplicate}} already queued, {{rejected}} rejected.`},submittingLock:`Sending to the runner \u2014 this step cannot be closed.`,tabRemainsFree:`The run continues on the agent; this browser tab remains free.`,submitting:`Sending\u2026`,submitBatch:`Queue {{count}} scenarios`,submitSingle:`Queue scenario`}},units:{page_one:`{{count}} row`,page_other:`{{count}} rows`,scenarios_one:`{{count}} scenario`,scenarios_other:`{{count}} scenarios`,checklists_one:`{{count}} checklist`,checklists_other:`{{count}} checklists`,sharedSteps_one:`{{count}} shared step`,sharedSteps_other:`{{count}} shared steps`,api_one:`{{count}} request`,api_other:`{{count}} requests`},row:{needsBinding:`Needs binding`,checklistNeedsBindingTooltip:`The checklist is not bound to a page element.`,textSteps:`Text steps`,textStepsTooltip:`Has unlocked text steps \u2014 the AI executes them`,steps_one:`{{count}} step`,steps_other:`{{count}} steps`,runs_one:`{{count}} run`,runs_other:`{{count}} runs`,checks_one:`{{count}} check`,checks_other:`{{count}} checks`,usages_one:`{{count}} scenario`,usages_other:`{{count}} scenarios`,imported:`imported`,noSteps:`no steps`,updated:`updated {{at}}`,needsSetup:`Needs setup`,runDot:{ok:`Last run: passed`,fail:`Last run: failed`,error:`Last run: error`,running:`Last run: running`,unknown:`Last run: no verdict`,never:`Never run`},runDotStale:`{{run}}. {{stale}}`,stale_one:`Not run for {{count}} day`,stale_other:`Not run for {{count}} days`,staleNeverRun_one:`Never run \u2014 scenario older than {{count}} day`,staleNeverRun_other:`Never run \u2014 scenario older than {{count}} days`,markPassed:`Mark as passed`,markFailed:`Mark as failed`,addToTestRun:`Add to the current test run`,outOfPlan:`outside the test plan`},groups:{uncategorized:`No page`,noPage:`No page`,noBatch:`No group`},preview:{title:`Preview`,loading:`Loading the preview`,untitled:`Untitled`,collapseDrawer:`Collapse the preview`,expandDrawer:`Expand the preview`,openInEditor:`Open`,openInWeb:`Open on the web`,close:`Close the preview`,fold:`Show less`,moreSteps_one:`{{count}} more step`,moreSteps_other:`{{count}} more steps`,moreChecks_one:`{{count}} more check`,moreChecks_other:`{{count}} more checks`,closeRecord:`Close`,errorTitle:`The preview did not load`,retry:`Try again`,errors:{otherProject:`This shared step belongs to another project \u2014 open the hub on a page of that project.`},lastRun:{ok:`Passed \u00B7 {{at}}`,okBare:`Passed`,fail:`Failed \u00B7 {{at}}`,failBare:`Failed`,error:`Error \u00B7 {{at}}`,errorBare:`Error`,running:`Running`,unknown:`No verdict \u00B7 {{at}}`,unknownBare:`No verdict`,never:`Never run`},step:{locked:`locked`,noElement:`element not found`,text:`text`,masked:`\u2022\u2022\u2022\u2022\u2022\u2022`},scenario:{noRuns:`never run`,steps:`Steps`,noSteps:`This scenario has no steps. Record them in the editor or from the Progon panel.`,bindTitle:`Elements need binding`,bindBody_one:`{{count}} step points at an element that is not on the page map yet. Bind it \u2014 otherwise the run stops there.`,bindBody_other:`{{count}} steps point at elements that are not on the page map yet. Bind them \u2014 otherwise the run stops at the first one.`,bindAction:`Bind elements`},checklist:{sourceImport:`Imported`,sourceManual:`Manual`,items:`Checks`,noItems:`This checklist has no items. Add them in the web app.`,bindTitle:`This checklist is not bound to an element`,bindBody:`The checklist is not linked to an element on the page yet \u2014 running unlocks after binding.`,bindAction:`Bind elements`,footnote:`Items are edited on the web \u2014 the extension has no checklist editor. Verdicts are set during a run on the page.`},sharedStep:{steps:`Steps`,noSteps:`This shared step contains no steps. Add them in the editor to unlock the test run.`,usages:`Used by`,noUsages:`No scenario calls this step yet.`,inEditor:`In the editor`,moreUsages:`Showing {{shown}} of {{total}} \u2014 the rest are in the editor.`},api:{readyPill:`Ready to run`,blockedTitle:`What needs setting up`,params:`Parameters`,collection:`Collection`,environment:`Environment`,noEnvironment:`No environment`,environmentPending:`Loading\u2026`,environmentNamesUnavailable:`Name unavailable \u2014 environments did not load`,environmentMissing:`Environment not found in the project`,auth:`Authorisation`,authNone:`No authorisation`,preset:`Preset`,headers:`Headers`,noHeaders:`No extra headers.`,body:`Request body`},batch:{title:`Batch \u00B7 {{units}}`,ready:`ready: {{count}}`,blocked:`Blocked`,blockedCount:`blocked: {{count}}`,unboundCount:`need binding: {{count}}`,textCount:`text: {{count}}`,more:`\u2026and {{units}}`}},page:{groups:{starts:`Starts here`,passes:`Passes through this page`,checklists:`Checklists of this page`,api:`API requests of this page`,recent:`Recent`,onThisPage:`On this page`,inProject:`In the whole project`},startsOn:`starts on \u00AB{{page}}\u00BB`,stepHere_one:`step {{steps}} of {{total}} is here`,stepHere_other:`steps {{steps}} of {{total}} are here`,showMore:`Show {{count}} more`,empty:{title:`No scenarios for this page`,body:`Record the first one \u2014 it will start here.`,recordScenario:`Record scenario`,allScenarios:`All scenarios of the project`},testPlan:`Test plan`,testPlanRunning:`Test run in progress`},assigned:{apiRequestRef:`API request`,type:{scenario:`Scenario`,checklist:`Checklist`},status:{todo:`Not started`,now:`Next up`,ok:`Passed`,fail:`Failed`,skip:`Skipped`},backToPlans:`Back to plans`,openOnPage:`Open on page`,runLabel:`Run \u2116{{number}}`,of:`of`,next:`Next:`,view:{ariaLabel:`List view`,order:`Plan order`,pages:`By pages`},pageGroup:{starts:`Starts here`,passes:`Passes through this page`,checklists:`Checklists of this page`,api:`API requests of this page`,other:`On other pages`},pageContextOverflow:`This page has more than {{limit}} saved requests \u2014 the by-pages view is unavailable for it`,planEmpty:`The plan has no items`,plansEmpty:`No plans are assigned to you`,plansEmptyBody:`Plans are assigned in Progon Web, under \u00ABRuns\u00BB.`,group:{in_work:`In progress`,not_started:`Not started`,done:`Completed`},countFailed:`Could not count the assigned plans`},placeholder:{loading:`Loading\u2026`}},agentRuntime:{startNotice:`AI sees the active tab of this window. If you switch to another tab, AI will see that one`,startRefusal:{tabBusy:`An AI run is already in progress in this tab \u2014 wait for it to end or stop it`,upgradeRequired:`This extension version is outdated \u2014 update the extension`,serverNoAnswer:`The server did not answer \u2014 the run was not started. Try again`,serverError:`The server did not answer ({{status}}) \u2014 the run was not started. Try again`,serverCode:`The server refused the start: {{code}}`,serverStatus:`The server refused the start ({{status}})`,invalidStart:`Start not accepted: invalid start data inside the extension (invalid_start)`}},workflowLaunch:{refusal:{serverUnconfirmed:`The server did not confirm the launch (no answer or a temporary error) \u2014 the swarm may have started. Press again: a repeated press does not create a second swarm`,sessionRefreshFailed:`The sign-in session could not be refreshed \u2014 the launch was not sent and the swarm did not start. Press again`,workerNoAnswer:`The extension background stopped before it answered \u2014 the swarm may have started. Press again without reloading the page: a repeated press does not create a second swarm`,extensionReloaded:`The extension was updated or reloaded during the launch \u2014 the swarm may have started. Reload the page, and before pressing again check whether the swarm appeared among the launches in Progon: a press after the reload starts a new swarm`,extension:`The extension did not complete the swarm launch ({{code}}). Press again: a repeated press does not create a second swarm`}}};export{e as default};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./shared-hePW80VL.js";import{$r as t,Fi as n,Hi as r,Qi as i,Ur as a,Xr as o,bi as s,ca as c,ei as l,ma as u,pa as d,rr as f,sa as p,ur as m,wa as h,wo as g,yi as _}from"./shared-O0OgUhxM.js";import{$n as v,Bn as y,Gn as b,Mn as x,Vn as S,Xn as C,jn as w,kn as T,t as ee}from"./shared-UK_0TOj7.js"
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.574.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
;var E=_(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),D=_(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),O=_(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),te=_(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),ne=_(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),k=_(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),A=_(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),j=_(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),M=/* @__PURE__ */ e(c(),1),N=p(),re=[`M28 5 L52 16 L28 27 Z`,`M59 28 L48 52 L37 28 Z`,`M36 59 L12 48 L36 37 Z`,`M5 36 L16 12 L27 36 Z`],ie={brand:[`var(--color-primary-300)`,`var(--color-primary-400)`,`var(--color-secondary)`,`var(--color-primary)`],"primary-ramp":[`var(--color-primary-300)`,`var(--color-primary-400)`,`var(--color-primary-500)`,`var(--color-primary-600)`]}
|
|
9
|
-
/**
|
|
10
|
-
* @license lucide-react v0.574.0 - ISC
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the ISC license.
|
|
13
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* @license lucide-react v0.574.0 - ISC
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the ISC license.
|
|
19
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* @license lucide-react v0.574.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* @license lucide-react v0.574.0 - ISC
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the ISC license.
|
|
31
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* @license lucide-react v0.574.0 - ISC
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the ISC license.
|
|
37
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* @license lucide-react v0.574.0 - ISC
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the ISC license.
|
|
43
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* @license lucide-react v0.574.0 - ISC
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the ISC license.
|
|
49
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/
|
|
51
|
-
;function P({className:e,palette:t=`brand`}){let n=ie[t];return/* @__PURE__ */ (0,N.jsx)(`svg`,{viewBox:`0 0 64 64`,"aria-hidden":`true`,className:e,children:re.map((e,t)=>/* @__PURE__ */ (0,N.jsx)(`path`,{d:e,fill:n[t],stroke:n[t],strokeWidth:`4`,strokeLinejoin:`round`},e))})}var ae=ee(`pgs-3273faf788`);function oe({subtitle:e,footer:t}){let{t:i}=n(),s=a(),c=(0,M.useId)(),[l,u]=(0,M.useState)(``),[d,p]=(0,M.useState)(``),[g,_]=(0,M.useState)(!1),[v,y]=(0,M.useState)(null),b=(0,M.useRef)(!1),x=async e=>{if(e.preventDefault(),!b.current){b.current=!0,_(!0);try{let e=await h.auth.login({email:l.trim(),password:d});y(null),s.signedIn(e.user)}catch(e){y(se(e))}finally{b.current=!1,_(!1)}}},S=(v==null?void 0:v.kind)===`refused`;return/* @__PURE__ */ (0,N.jsxs)(`form`,{className:`grid content-start gap-4.5 px-5 pt-7 pb-4`,"aria-labelledby":c,noValidate:!0,onSubmit:e=>{x(e)},"data-testid":`shell-sign-in`,children:[/* @__PURE__ */ (0,N.jsxs)(`div`,{className:`grid justify-items-center gap-1.5 text-center`,children:[/* @__PURE__ */ (0,N.jsx)(`span`,{className:`mb-1 grid size-16 place-items-center rounded-full bg-[radial-gradient(circle_at_50%_45%,color-mix(in_srgb,var(--color-primary)_24%,transparent)_0%,transparent_68%)]`,children:/* @__PURE__ */ (0,N.jsx)(P,{className:`size-10`})}),/* @__PURE__ */ (0,N.jsx)(`h1`,{id:c,className:`m-0 text-(length:--text-window-title) leading-(--leading-window-title) font-semibold tracking-(--tracking-window-title) text-fg-primary`,children:i(`shell.signIn.title`)}),/* @__PURE__ */ (0,N.jsx)(`p`,{className:`m-0 text-body-sm text-fg-muted`,children:e})]}),/* @__PURE__ */ (0,N.jsxs)(`div`,{className:`grid gap-3`,children:[/* @__PURE__ */ (0,N.jsx)(f,{type:`email`,label:i(`shell.signIn.email`),autoComplete:`username`,placeholder:i(`shell.signIn.emailPlaceholder`),value:l,onValueChange:u,invalid:S,autoFocus:!0}),/* @__PURE__ */ (0,N.jsx)(f,{type:`password`,label:i(`shell.signIn.password`),autoComplete:`current-password`,placeholder:i(`shell.signIn.passwordPlaceholder`),value:d,onValueChange:p,invalid:S}),v!==null&&/* @__PURE__ */ (0,N.jsx)(m,{tone:`error`,icon:v.kind===`noAnswer`?/* @__PURE__ */ (0,N.jsx)(j,{"aria-hidden":`true`}):void 0,title:v.kind===`noAnswer`?i(`shell.signIn.noAnswer`):v.message,"data-testid":`shell-sign-in-error`}),/* @__PURE__ */ (0,N.jsx)(o,{type:`submit`,size:`lg`,fullWidth:!0,loading:g,"data-testid":`shell-sign-in-submit`,children:i(`shell.signIn.submit`)}),/* @__PURE__ */ (0,N.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[/* @__PURE__ */ (0,N.jsx)(F,{onOpen:()=>r(`/forgot-password`),children:i(`shell.signIn.forgotPassword`)}),/* @__PURE__ */ (0,N.jsx)(F,{onOpen:()=>r(`/register`),external:!0,children:i(`shell.signIn.createAccount`)})]})]}),t!==void 0&&/* @__PURE__ */ (0,N.jsx)(`div`,{className:`flex justify-center border-t border-stroke-light pt-3.5`,children:t})]})}function F({onOpen:e,external:t=!1,children:n}){return/* @__PURE__ */ (0,N.jsxs)(`a`,{href:`#`,className:`rounded-xs px-0.5 py-1 text-body-sm font-medium text-fg-link no-underline hover:underline hover:underline-offset-3 focus-visible:outline-2 focus-visible:outline-stroke-focus`,onClick:t=>{t.preventDefault(),e()},children:[n,t&&/* @__PURE__ */ (0,N.jsx)(O,{"aria-hidden":`true`,className:`ml-0.75 inline size-3 align-[-1px]`})]})}function se(e){return e instanceof g&&e.status!==0?{kind:`refused`,message:d(u,e,`shell.signIn.refused`)}:(ae.error(`pgm-53794f16d4`,{error:e instanceof Error?e.message:String(e)}),{kind:`noAnswer`})}function ce({user:e,project:t,children:n}){let{id:r,number:a}=t,o=(0,M.useMemo)(()=>({projectId:r,projectNumber:a,user:e}),[r,a,e]);return/* @__PURE__ */ (0,N.jsx)(i,{value:o,children:n})}function le({label:e,loadingLabel:n,loading:r,onLoadMore:i,className:a,"data-testid":o}){return/* @__PURE__ */ (0,N.jsx)(`button`,{type:`button`,onClick:i,disabled:r,"aria-busy":r||void 0,"data-testid":o,className:l(`flex h-9 w-full items-center justify-center gap-2 rounded-md border border-dashed border-stroke-hover bg-transparent text-(length:--text-body-sm) font-medium text-fg-secondary transition-colors duration-(--motion-short) ease-out hover-enabled:border-solid hover-enabled:bg-surface-hover-layer hover-enabled:text-fg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-stroke-focus aria-busy:cursor-progress`,a),children:r?/* @__PURE__ */ (0,N.jsxs)(N.Fragment,{children:[/* @__PURE__ */ (0,N.jsx)(t,{}),n]}):e})}var I=6e4,L=Date.now(),R=/* @__PURE__ */ new Set,z;function B(e){return R.add(e),z===void 0&&(L=Date.now(),z=setInterval(()=>{L=Date.now(),R.forEach(e=>e())},I)),()=>{R.delete(e),R.size===0&&z!==void 0&&(clearInterval(z),z=void 0)}}function V(){return L}function H(){return(0,M.useSyncExternalStore)(B,V,V)}var U=`relative inline-block shrink-0 rounded-full bg-surface-active-layer shadow-[inset_0_0_0_1px_var(--color-border-hairline)] [transition:background-color_var(--motion-short)_var(--ease-out)] peer-checked:bg-primary after:absolute after:rounded-full after:bg-toggle-thumb after:shadow-toggle-thumb after:content-[''] after:[transition:translate_var(--motion-short)_var(--ease-out)]`,W=`peer-checked:bg-primary/40`,ue={md:`h-5 w-9 after:top-0.75 after:left-0.75 after:size-3.5 peer-checked:after:translate-x-4`,sm:`h-3.75 w-6.5 after:top-0.5 after:left-0.5 after:size-2.75 peer-checked:after:translate-x-2.75`},de={md:`peer-checked:*:translate-x-4`,sm:`peer-checked:*:translate-x-2.75`},fe={md:`top-0.75 left-0.75 size-3.5 [&>[data-slot=spinner]]:size-2.5`,sm:`top-0.5 left-0.5 size-2.75 [&>[data-slot=spinner]]:size-2 [&>[data-slot=spinner]]:border`},pe={md:`peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-stroke-focus`,sm:``},me={md:`gap-2.5 text-body-sm text-fg-primary`,sm:`h-8 gap-2 rounded-full px-2.5 text-xs font-medium text-fg-secondary [transition:background-color_var(--motion-short)_var(--ease-out)] has-focus-visible:outline-2 has-focus-visible:outline-offset-2 has-focus-visible:outline-stroke-focus`},he={md:``,sm:`hover:bg-surface-hover-layer`};function G({checked:e,onChange:n,disabled:r=!1,saving:i=!1,muted:a=!1,size:o=`md`,id:s,className:c,label:u,"aria-label":d,"aria-describedby":f,"aria-keyshortcuts":p,"data-testid":m,...h}){let g=r||i;return/* @__PURE__ */ (0,N.jsxs)(`label`,{...h,className:l(`relative inline-flex select-none items-center`,me[o],r?`cursor-not-allowed opacity-disabled`:i?`cursor-progress`:l(`cursor-pointer`,he[o]),c),children:[/* @__PURE__ */ (0,N.jsx)(`input`,{type:`checkbox`,role:`switch`,id:s,checked:e,"aria-checked":e,disabled:g,"aria-busy":i||void 0,"aria-label":d,"aria-describedby":f,"aria-keyshortcuts":p,"data-testid":m,onChange:e=>n(e.target.checked),className:`peer sr-only`}),/* @__PURE__ */ (0,N.jsx)(`span`,{"aria-hidden":`true`,className:l(U,ue[o],pe[o],a&&W,i&&de[o]),children:i&&/* @__PURE__ */ (0,N.jsx)(`span`,{className:l(`absolute z-1 grid place-items-center text-(--color-primary-text) [transition:translate_var(--motion-short)_var(--ease-out)]`,fe[o]),children:/* @__PURE__ */ (0,N.jsx)(t,{})})}),u]})}function ge({hint:e,shortcut:t,ref:n,...r}){return e===void 0?/* @__PURE__ */ (0,N.jsx)(G,{...r,ref:n}):/* @__PURE__ */ (0,N.jsx)(s,{relationship:`description`,content:e,shortcut:t,children:/* @__PURE__ */ (0,N.jsx)(G,{...r,ref:n})})}S({maxEdgePx:y().int().min(1),patchPx:y().int().min(1).nullable(),maxPatches:y().int().min(1).nullable()}).refine(e=>e.patchPx===null==(e.maxPatches===null),{message:`patchPx and maxPatches are null together`});var _e=S({width:y().int().min(1),height:y().int().min(1)});function ve(e,t){return Math.ceil(e.width/t.patchPx)*Math.ceil(e.height/t.patchPx)}var K=T([`image/png`,`image/jpeg`,`image/webp`,`application/pdf`,`text/plain`,`text/markdown`]),ye=[`image/png`,`image/jpeg`,`image/webp`],be=[`text/plain`,`text/markdown`];function q(e){return ye.includes(e)}function xe(e){return be.includes(e)}var Se={"image/png":5e7,"image/jpeg":5e7,"image/webp":5e7,"application/pdf":5e7,"text/plain":4e6,"text/markdown":4e6},Ce=_e,we=T([`pending`,`sent`]),Te=S({id:C(),projectId:C(),fileName:b().min(1).max(255),mediaType:K,byteSize:y().int().min(1),pageCount:y().int().min(1).nullable(),image:Ce.nullable(),state:we,createdAt:v()}).strict().superRefine((e,t)=>{e.mediaType===`application/pdf`!=(e.pageCount!==null)&&t.addIssue({code:`custom`,message:`pageCount is set exactly for application/pdf`,path:[`pageCount`]}),q(e.mediaType)!==(e.image!==null)&&t.addIssue({code:`custom`,message:`image is set exactly for an image media type`,path:[`image`]})}),Ee=T([`media_type`,`file_bytes`,`image_bytes`,`image_edge`,`image_patches`,`pdf_pages`,`request_bytes`,`files_bytes`,`images_count`,`many_images_edge`,`context_window`]),De=S({requestMaxBytes:y().int().min(1).nullable(),fileMaxBytes:y().int().min(1).nullable(),filesMaxBytesPerRequest:y().int().min(1).nullable(),imageMaxBase64Bytes:y().int().min(1).nullable(),imageMaxEdgePx:y().int().min(1).nullable(),imageMaxPatches:S({patchPx:y().int().min(1),maxPatches:y().int().min(1)}).nullable(),manyImages:S({over:y().int().min(1),maxEdgePx:y().int().min(1)}).nullable(),imagesMaxPerRequest:y().int().min(1).nullable(),pdfMaxPagesPerRequest:y().int().min(1).nullable()}),Oe=S({mediaTypes:w(K).min(1),facts:De}).nullable();function ke(e){return 4*Math.ceil(e/3)}function Ae(e,t){let n=J(e,t);if(!n.ok||t===null)return n;if(e.mediaType===`application/pdf`){if(e.pageCount===null)throw Error(`checkAttachmentFitsModel: an application/pdf attachment has no page count`);let{pdfMaxPagesPerRequest:n}=t.facts;if(n!==null&&e.pageCount>n)return{ok:!1,fact:`pdf_pages`}}return{ok:!0}}function J(e,t){if(t===null||!t.mediaTypes.includes(e.mediaType))return{ok:!1,fact:`media_type`};let{facts:n}=t,r=q(e.mediaType),i=ke(e.byteSize);if(!r&&n.fileMaxBytes!==null&&e.byteSize>n.fileMaxBytes)return{ok:!1,fact:`file_bytes`};if(r&&n.imageMaxBase64Bytes!==null&&i>n.imageMaxBase64Bytes)return{ok:!1,fact:`image_bytes`};if(n.requestMaxBytes!==null&&i>n.requestMaxBytes)return{ok:!1,fact:`request_bytes`};if(r){let{image:t}=e;if(t===null)throw Error(`checkAttachmentFitsModel: an ${e.mediaType} attachment has no image size`);if(n.imageMaxEdgePx!==null&&Math.max(t.width,t.height)>n.imageMaxEdgePx)return{ok:!1,fact:`image_edge`};let r=n.imageMaxPatches;if(r!==null&&ve(t,r)>r.maxPatches)return{ok:!1,fact:`image_patches`}}return{ok:!0}}var je={invalidFileName:`chat_attachments.invalid_file_name`,emptyFile:`chat_attachments.empty_file`,contentMismatch:`chat_attachments.content_mismatch`,textNotUtf8:`chat_attachments.text_not_utf8`,pdfEncrypted:`chat_attachments.pdf_encrypted`,pdfUnreadable:`chat_attachments.pdf_unreadable`,imageUnreadable:`chat_attachments.image_unreadable`,notFound:`chat_attachments.not_found`,alreadySent:`chat_attachments.already_sent`,unsupportedByModel:`chat_attachments.unsupported_by_model`};S({declared:K}).strict(),S({attachmentIds:w(C()).min(1)}).strict();var Me=S({modelId:b().min(1),attachmentIds:w(C()).min(1),fact:Ee,factValue:y().nullable()}).strict(),Y=e=>encodeURIComponent(e);function X(e,t){let n=t.toString();return n===``?e:`${e}?${n}`}var Z={conversationList:{method:`GET`,path:e=>{let t=new URLSearchParams;return t.set(`projectId`,e.projectId),t.set(`limit`,String(e.limit)),e.cursor!==null&&t.set(`cursor`,e.cursor),e.search!==null&&t.set(`search`,e.search),X(`/assistant/conversations`,t)}},conversationCreate:{method:`POST`,path:()=>`/assistant/conversations`},conversationDelete:{method:`DELETE`,path:e=>`/assistant/conversations/${Y(e)}`},conversationPermissionMode:{method:`PATCH`,path:e=>`/assistant/conversations/${Y(e)}`},lastPermissionModeRead:{method:`GET`,path:()=>`/assistant/permission-mode`},lastPermissionModeWrite:{method:`PATCH`,path:()=>`/assistant/permission-mode`},conversationMessages:{method:`GET`,path:(e,t)=>{let n=new URLSearchParams({limit:String(t.limit),offset:String(t.offset)});return t.decisionLaneId!==void 0&&n.set(`decisionLaneId`,t.decisionLaneId),X(`/assistant/conversations/${Y(e)}/messages`,n)}},browserApiHostActionResolve:{method:`POST`,path:(e,t)=>`/assistant/conversations/${Y(e)}/host-actions/${Y(t)}/resolve`},browserApiHostActionPersist:{method:`POST`,path:(e,t)=>`/assistant/conversations/${Y(e)}/host-actions/${Y(t)}/persist`},hostActionRefusal:{method:`POST`,path:(e,t)=>`/assistant/conversations/${Y(e)}/host-actions/${Y(t)}/refusal`},availableModels:{method:`GET`,path:()=>`/ai-settings/available-models`},subscription:{method:`GET`,path:()=>`/subscription`},aiSettingsUser:{method:`GET`,path:()=>`/ai-settings/user`},agentList:{method:`GET`,path:e=>X(`/agents`,new URLSearchParams({limit:String(e.limit),offset:String(e.offset)}))},myLiveBrowserTasks:{method:`GET`,path:(e,t)=>X(`/test-runs`,new URLSearchParams({projectId:e,assignedToMe:`true`,launchKind:`preset`,status:`in_progress`,executor:`browser`,limit:String(t.limit),offset:String(t.offset)}))},workflowCancel:{method:`POST`,path:e=>`/workflows/${Y(e)}/cancel`},attachmentUpload:{method:`POST`,path:(e,t)=>`/assistant/projects/${Y(e)}/attachments?fileName=${encodeURIComponent(t)}`},attachmentDelete:{method:`DELETE`,path:e=>`/assistant/attachments/${Y(e)}`},attachmentContent:{method:`GET`,path:e=>`/assistant/attachments/${Y(e)}/content`},changeSetSnapshot:{method:`GET`,path:(e,t)=>`/assistant/projects/${Y(e)}/change-sets/${Y(t)}`},changeSetCommand:{method:`POST`,path:(e,t,n)=>`/assistant/projects/${Y(e)}/change-sets/${Y(t)}/${n}`},changeSetUndo:{method:`POST`,path:e=>`/assistant/change-sets/${Y(e)}/undo`},changeSetSecretHandoff:{method:`POST`,path:(e,t)=>`/assistant/projects/${Y(e)}/change-sets/${Y(t)}/handoff-token`},agentJobStatus:{method:`GET`,path:e=>`/agent-jobs/${Y(e)}/status`},agentJobCommand:{method:`POST`,path:(e,t)=>`/agent-jobs/${Y(e)}/${t}`},scenarioSteps:{method:`GET`,path:(e,t)=>X(`/scenarios/${Y(e)}/steps`,new URLSearchParams({limit:String(t.limit),offset:String(t.offset)}))},scenarioRuns:{method:`GET`,path:(e,t)=>X(`/scenario-runs/scenario/${Y(e)}`,new URLSearchParams({limit:String(t.limit),offset:String(t.offset),includeOutdated:`true`}))},searchPage:{method:`GET`,path:(e,t,n)=>{let r=new URLSearchParams;r.set(`q`,t.query);for(let e of t.entityTypes)r.append(`entityTypes`,e);return r.set(`limit`,String(n.limit)),r.set(`cursor`,n.cursor),X(`/assistant/projects/${Y(e)}/search`,r)}}};function Q(e){return e.selectable&&e.sendable}var Ne=[`fastest`,`balanced`,`smartest`],Pe=[`managed`,`company`,`personal`],Fe=S({id:b().min(1),name:b(),selectionId:b().min(1),selectable:x(),sendable:x(),disabledReason:T([`key_invalid`,`no_key`]).nullable(),tier:b(),reasoning:x(),attachments:Oe}),Ie=S({defaultSelectionId:b().nullable(),policyVersion:b(),providers:w(S({type:b(),models:w(Fe)}))}),Le=S({plan:b()});function $(e){return Pe.includes(e)}function Re(e){return Ne.includes(e)}var ze=[`Claude `,`Anthropic `];function Be(e){for(let t of ze)if(e.startsWith(t)){let n=e.slice(t.length).trim();if(n!==``)return n}return e}function Ve(e,t){let n=/* @__PURE__ */ new Map,r=[],i=[];for(let t of e.providers){if(!$(t.type)){r.push({type:t.type,modelIds:t.models.map(e=>e.id)});continue}let e=t.type,a=t.models.flatMap(t=>Re(t.tier)?[{id:t.id,name:t.name,shortName:Be(t.name),selectionId:t.selectionId,selectable:t.selectable,sendable:t.sendable,disabledReason:t.disabledReason,tier:t.tier,reasoning:t.reasoning,attachments:t.attachments}]:(i.push({type:e,modelId:t.id,tier:t.tier}),[]));if(a.length===0)continue;let o=n.get(e);n.set(e,o===void 0?{source:e,models:a}:{...o,models:[...o.models,...a]})}return(r.length>0||i.length>0)&&t.warn(`available-models: wire values outside the client contract were dropped`,{policyVersion:e.policyVersion,droppedBuckets:r,droppedModels:i}),{groups:[...n.values()],defaultSelectionId:e.defaultSelectionId}}function He(e,t){let n=e.groups.find(e=>e.source===t.keySource);if(n===void 0)return null;let r=n.models.find(e=>e.id===t.modelId);return r===void 0||!Q(r)?null:r.selectionId}function Ue(e,t,n){let{groups:r,defaultSelectionId:i}=e,a=e=>{for(let t of r){let n=t.models.find(t=>t.selectionId===e);if(n!==void 0)return{model:n,source:t.source}}return null};if(t!==null){let e=a(t);if(e!==null)return e}if(n!==null){let e=r.find(e=>e.source===n.provider),t=e==null?void 0:e.models.find(e=>e.id===n.model);if(e!==void 0&&t!==void 0)return{model:t,source:e.source}}if(i!==null){let e=a(i);if(e!==null&&Q(e.model))return e}return null}function We(e){let{http:t,logger:n}=e;return{async load(){let[e,r]=await Promise.all([t.request({method:Z.availableModels.method,path:Z.availableModels.path(),schema:Ie}),t.request({method:Z.subscription.method,path:Z.subscription.path(),schema:Le})]),i=Ve(e,n);return{groups:i.groups,defaultSelectionId:i.defaultSelectionId,isEnterprise:r.plan===`enterprise`}}}}var Ge=class extends Error{constructor(e){super(e.message),this.name=`ChatHttpError`,this.status=e.status,this.errorCode=e.errorCode,this.params=e.params}};export{k as C,D,O as E,E as O,A as S,te as T,le as _,He as a,P as b,Se as c,Ae as d,J as f,H as g,ge as h,Q as i,Te as l,xe as m,We as n,Z as o,q as p,Ue as r,je as s,Ge as t,Me as u,ce as v,ne as w,j as x,oe as y};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./shared-hePW80VL.js";import{$r as t,Dr as n,Ea as r,Jr as i,Kr as a,Lr as o,Pa as s,Qn as c,Ta as l,Xr as u,bi as d,ca as f,ei as p,er as m,gi as h,hi as g,ii as _,mi as v,sa as y,si as b,tr as x,vi as S,wo as C,yi as w}from"./shared-O0OgUhxM.js";import{$n as T,Bn as E,Gn as D,Vn as ee,jn as te,t as O}from"./shared-UK_0TOj7.js";import{C as ne,D as k,E as A,T as re,_ as ie,g as ae,h as oe,t as j,x as se}from"./shared-Ccz3X65G.js"
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.574.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
;var M=w(`bell-off`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742`,key:`178tsu`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05`,key:`1hqiys`}]]),N=w(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),P=w(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),ce=O(`pgs-c323e6f59d`)
|
|
9
|
-
/**
|
|
10
|
-
* @license lucide-react v0.574.0 - ISC
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the ISC license.
|
|
13
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* @license lucide-react v0.574.0 - ISC
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the ISC license.
|
|
19
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/
|
|
21
|
-
;function le(){return{start(e,t){let n=!1,r=null,i=null,a=0,o=e=>{n||(ce.error(`pgm-9dc91cfaa1`,{windowId:r,error:e.message}),t(e))},s=t=>{n||t===i||(i=t,e(t))},c=()=>{if(r===null)return;let e=++a;chrome.tabs.query({active:!0,windowId:r}).then(t=>{var n;if(e!==a)return;let i=(n=t[0])==null?void 0:n.id;if(i===void 0){o(/* @__PURE__ */ Error(`The window ${String(r)} of this document has no active tab`));return}s(i)},e=>{o(F(e))})},l=e=>{e.windowId===r&&(a+=1,s(e.tabId))},u=e=>{e===r&&c()};return chrome.windows.getCurrent().then(e=>{if(!n){if(e.id===void 0){o(/* @__PURE__ */ Error(`chrome.windows.getCurrent() answered a window without an id`));return}r=e.id,chrome.tabs.onActivated.addListener(l),chrome.windows.onFocusChanged.addListener(u),c()}},e=>{o(F(e))}),()=>{n=!0,chrome.tabs.onActivated.removeListener(l),chrome.windows.onFocusChanged.removeListener(u)}}}}function F(e){return e instanceof Error?e:Error(String(e))}var I=O(`pgs-1f4abfc72f`);function L(e){return e instanceof Error?e.message:String(e)}function ue(e,t){r.call(`OPEN_NOTIFICATION_TARGET`,{notificationId:e.id,target:e.target,windowId:t}).then(t=>{t.success||I.error(`pgm-9d95f41149`,{notificationId:e.id,error:t.error})},t=>{I.error(`pgm-75d229efd3`,{notificationId:e.id,error:L(t)})})}function de(e){r.call(`NOTIFICATIONS_REFRESH`).then(t=>{t.success||I.warn(`pgm-f7016cc548`,{cause:e,error:t.error})},t=>{I.error(`pgm-da30882b0d`,{cause:e,error:L(t)})})}var R=/* @__PURE__ */ e(f(),1),z=`notifications:snapshot`,B=T({offset:!0}),fe=ee({userId:D().min(1),waitingCount:E().int().min(0),unseenCount:E().int().min(0),attentionToken:D().min(1),disabledGroups:te(D().min(1)),nextExpiryAt:B.nullable(),fetchedAt:B}).strict();function V(e){return e===void 0?null:fe.parse(e)}function pe(e,t){if(e.length!==t.length)return!1;let n=new Set(e);return t.every(e=>n.has(e))}function me(e){let t=(t,n)=>{if(n!==`local`)return;let r=t[z];r!==void 0&&e(V(r.newValue))};return chrome.storage.onChanged.addListener(t),()=>chrome.storage.onChanged.removeListener(t)}var he=O(`pgs-f455a5ff56`);function ge(e,t){return e===null||t===null?e!==t:e.userId!==t.userId||e.attentionToken!==t.attentionToken||t.unseenCount>e.unseenCount||!pe(e.disabledGroups,t.disabledGroups)}function _e(e){let[t,n]=(0,R.useState)({status:`loading`});if((0,R.useEffect)(()=>{let e=!0,t=!1,r=e=>{n(t=>t.status===`ready`?{status:`ready`,snapshot:e,revision:ge(t.snapshot,e)?t.revision+1:t.revision}:{status:`ready`,snapshot:e,revision:0})},i=t=>{if(!e)return;let r=t instanceof Error?t:Error(String(t));he.error(`pgm-bbac8e31b8`,{error:r.message}),n({status:`failed`,error:r})},a=me(n=>{e&&(t=!0,r(n))});return chrome.storage.local.get(z).then(n=>{if(e&&!t)try{r(V(n[z]))}catch(e){i(e)}},e=>{i(e)}),()=>{e=!1,a()}},[]),t.status===`failed`)throw t.error;return t.status===`loading`||t.snapshot===null||t.snapshot.userId===e?t:{status:`ready`,snapshot:null,revision:t.revision}}var ve=O(`pgs-c9315bb341`);function ye(){let[e,t]=(0,R.useState)({status:`loading`});if((0,R.useEffect)(()=>{let e=!0;return chrome.windows.getCurrent().then(n=>{if(e){if(n.id===void 0){t({status:`failed`,error:/* @__PURE__ */ Error(`chrome.windows.getCurrent() answered a window without an id`)});return}t({status:`ready`,windowId:n.id})}},n=>{if(!e)return;let r=n instanceof Error?n:Error(String(n));ve.error(`pgm-2ad602d0e7`,{error:r.message}),t({status:`failed`,error:r})}),()=>{e=!1}},[]),e.status===`failed`)throw e.error;return e.status===`ready`?e.windowId:void 0}var H=y(),U=99,be={web:`chrome`,popup:`notification-window`,panel:`notification-window`};function xe(e,t){if(t===null)return e(`notifications.bell.name`);let n=[];return t.waitingCount>0&&n.push(e(`notifications.bell.waiting`,{count:t.waitingCount})),t.unseenCount>0&&n.push(e(`notifications.bell.unseen`,{count:t.unseenCount})),n.length===0?e(`notifications.bell.name`):e(`notifications.bell.nameWithCounts`,{counts:n.join(`, `)})}function Se({host:e,t,counts:n,onClick:r,popoverOpen:i,ref:a}){let o=n===null?0:n.waitingCount+n.unseenCount,[s,c]=(0,R.useState)(o),[l,u]=(0,R.useState)(0);o!==s&&(c(o),o>s&&u(e=>e+1));let f=xe(t,n),m=i===!0,h=n!==null&&n.waitingCount>0,g=/* @__PURE__ */ (0,H.jsxs)(`button`,{ref:a,type:`button`,onClick:r,...i===void 0?{}:{"aria-haspopup":`dialog`,"aria-expanded":m},...m?{"aria-label":f}:{},className:p(`relative inline-grid size-8 flex-none cursor-pointer place-items-center rounded-full border-0 bg-transparent p-0 transition-[background-color,color,transform] duration-(--motion-short) ease-(--ease-out) hover:bg-surface-hover-layer hover:text-fg-primary focus-visible:outline-2 focus-visible:outline-stroke-focus active:scale-[.94] active:duration-(--motion-instant)`,o>0?`text-fg-primary`:`text-fg-muted`,m?`bg-surface-active-layer text-fg-primary`:``),children:[/* @__PURE__ */ (0,H.jsx)(N,{"aria-hidden":`true`,className:p(`size-[18px] origin-[50%_2px]`,l>0?`animate-notification-bell-ring motion-reduce:animate-none`:``)},l),o>0?/* @__PURE__ */ (0,H.jsx)(x,{tone:h?`primary`:`quiet`,ring:be[e],children:o>U?`${U}+`:o}):null]});return/* @__PURE__ */ (0,H.jsx)(d,{relationship:`label`,content:f,placement:`bottom-end`,disabled:m,children:g})}var W={conversation:ne,page:re},Ce={answered:S,cancelled:_,expired:k},we={neutral:null,positive:v,negative:g},Te={answered:`notifications.resolution.answered`,cancelled:`notifications.resolution.cancelled`,expired:`notifications.resolution.expired`};function G(e){if(e.class===`action_required`)return e.resolution===null?W[e.target.kind]:Ce[e.resolution];let t=we[e.tone];return t===null?W[e.target.kind]:t}function Ee(e){return e.class!==`informational`||e.tone===`neutral`?null:e.tone}function De(e,t,n){return t.kind===`conversation`?{label:e(`notifications.action.openChat`),mark:/* @__PURE__ */ (0,H.jsx)(h,{"aria-hidden":`true`}),external:!1}:n===`web`?{label:e(`notifications.action.go`),mark:/* @__PURE__ */ (0,H.jsx)(h,{"aria-hidden":`true`}),external:!1}:{label:e(`notifications.action.openInWeb`),mark:/* @__PURE__ */ (0,H.jsx)(A,{"aria-hidden":`true`}),external:!0}}var Oe=6e4,K=60,q=1440;function J(e,t){let n=Math.floor(t/Oe);return n<1?e(`notifications.duration.lessThanMinute`):n<K?e(`notifications.duration.minutes`,{count:n}):n<q?e(`notifications.duration.hours`,{count:Math.floor(n/K)}):e(`notifications.duration.days`,{count:Math.floor(n/q)})}function Y(e,t){return t.project!==null&&t.body!==``?e(`notifications.projectLine`,{project:t.project.name,body:t.body}):t.project===null?t.body===``?null:t.body:t.project.name}var ke=[`today`,`yesterday`,`earlier`],Ae={today:`notifications.feed.today`,yesterday:`notifications.feed.yesterday`,earlier:`notifications.feed.earlier`};function je(e,t){return e(Ae[t])}function X(e,t){let n=new Date(e);return new Date(n.getFullYear(),n.getMonth(),n.getDate()-t).getTime()}function Me(e,t){let n=Date.parse(e);return n>=X(t,0)?`today`:n>=X(t,1)?`yesterday`:`earlier`}var Ne=/* @__PURE__ */ new Map,Pe=/* @__PURE__ */ new Map;function Fe(e){let t=Ne.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e,{hour:`2-digit`,minute:`2-digit`}),Ne.set(e,t)),t}function Ie(e,t){let n=`${e}:${t?`y`:`-`}`,r=Pe.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t?{day:`numeric`,month:`short`,year:`numeric`}:{day:`numeric`,month:`short`}),Pe.set(n,r)),r}function Le(e,t,n,r){let i=Date.parse(n);switch(Me(n,r)){case`today`:return J(e,r-i);case`yesterday`:return Fe(t).format(i);case`earlier`:return Ie(t,new Date(i).getFullYear()!==new Date(r).getFullYear()).format(i)}}var Re=`overflow-hidden rounded-lg border border-[color-mix(in_srgb,var(--color-primary)_var(--notification-deck-edge),var(--color-border))] bg-[color-mix(in_srgb,var(--color-primary)_var(--notification-deck-tint),var(--nf-surface))] shadow-[var(--shadow-md),var(--glow-primary-sm)] animate-notification-deck-in motion-reduce:animate-none`,ze=`border-0 border-t border-t-[color-mix(in_srgb,var(--color-primary)_20%,transparent)]`,Be=`hover:bg-[color-mix(in_srgb,var(--color-primary)_10%,transparent)] active:bg-[color-mix(in_srgb,var(--color-primary)_15%,transparent)]`;function Ve({entries:e,count:t,host:n,t:r,now:i,onOpen:a,onLeft:o,footer:s,className:c}){let l=(0,R.useId)();return/* @__PURE__ */ (0,H.jsxs)(`section`,{"aria-labelledby":l,className:p(Re,c),children:[/* @__PURE__ */ (0,H.jsxs)(`div`,{className:`flex items-center gap-2 pt-[9px] pr-3 pb-[7px] pl-[calc(var(--nf-x)-1px)]`,children:[/* @__PURE__ */ (0,H.jsx)(`i`,{"aria-hidden":`true`,className:`size-2 flex-none rounded-full bg-(--color-primary-400) shadow-[0_0_0_3px_var(--color-ring-primary-25)] animate-pulse-dot`}),/* @__PURE__ */ (0,H.jsx)(`h3`,{id:l,className:`m-0 text-(length:--text-body-sm) leading-5 font-semibold tracking-[-0.1px] text-fg-on-primary-tint`,children:r(`notifications.deck.title`)}),/* @__PURE__ */ (0,H.jsx)(`span`,{className:`h-5 min-w-5 rounded-full bg-primary px-1.5 text-center text-(length:--text-caption) leading-5 font-semibold text-fg-on-accent tabular-nums`,children:t})]}),e.map(e=>/* @__PURE__ */ (0,H.jsx)(He,{entry:e,host:n,t:r,now:i,onOpen:a,onLeft:o},e.item.id)),s===void 0?null:/* @__PURE__ */ (0,H.jsxs)(`button`,{type:`button`,onClick:s.onClick,className:`flex h-9 w-full cursor-pointer items-center gap-1.5 bg-transparent pr-2.5 pl-[calc(var(--nf-x)-1px)] text-left text-(length:--text-body-sm) font-medium text-(--color-primary-text) focus-visible:rounded-md focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-stroke-focus [&_svg]:ml-auto [&_svg]:size-3.5 ${ze} hover:bg-[color-mix(in_srgb,var(--color-primary)_10%,transparent)]`,children:[s.label,/* @__PURE__ */ (0,H.jsx)(h,{"aria-hidden":`true`})]})]})}function He({entry:e,host:t,t:n,now:r,onOpen:i,onLeft:a}){let{item:o,leaving:s}=e,c=G(o),l=Y(n,o),u=De(n,o.target,t),d=Ue(o,r);return/* @__PURE__ */ (0,H.jsxs)(`button`,{type:`button`,"data-feed-row":``,onClick:()=>i(o),onAnimationEnd:e=>{s&&e.target===e.currentTarget&&a(o.id)},className:p(`group relative grid w-full cursor-pointer grid-cols-[32px_minmax(0,1fr)_auto] items-center gap-x-3 bg-transparent pt-2.5 pr-2 pb-3 pl-[calc(var(--nf-x)-1px)] text-left text-inherit transition-[background-color] duration-(--motion-short) ease-(--ease-out) focus-visible:rounded-md focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-stroke-focus @max-[350px]:gap-x-2.5`,ze,Be,s?`animate-notification-leave motion-reduce:[animation-duration:1ms]`:``),children:[/* @__PURE__ */ (0,H.jsx)(`span`,{"aria-hidden":`true`,className:`grid size-8 place-items-center self-start rounded-md border border-[color-mix(in_srgb,var(--color-primary)_40%,transparent)] bg-surface-primary-tint-15 text-(--color-primary-text) [&_svg]:size-[15px]`,children:/* @__PURE__ */ (0,H.jsx)(c,{})}),/* @__PURE__ */ (0,H.jsxs)(`span`,{className:`grid min-w-0 gap-px`,children:[/* @__PURE__ */ (0,H.jsx)(`span`,{className:`text-sm leading-[1.35] font-semibold tracking-[-0.15px] text-fg-primary [overflow-wrap:anywhere]`,children:o.title}),l===null?null:/* @__PURE__ */ (0,H.jsx)(`span`,{className:`text-(length:--text-notification-detail) leading-[1.45] text-fg-secondary [overflow-wrap:anywhere]`,children:l}),/* @__PURE__ */ (0,H.jsx)(`span`,{className:`mt-[3px] flex items-center gap-[5px] text-xs leading-4 text-fg-secondary tabular-nums [&_svg]:size-3`,children:d===null?/* @__PURE__ */ (0,H.jsx)(`span`,{children:n(`notifications.deck.waitingFor`,{duration:J(n,r-Date.parse(o.createdAt))})}):/* @__PURE__ */ (0,H.jsxs)(H.Fragment,{children:[/* @__PURE__ */ (0,H.jsx)(k,{"aria-hidden":`true`}),/* @__PURE__ */ (0,H.jsx)(`span`,{children:n(`notifications.deck.timeLeft`,{duration:J(n,d.left)})})]})})]}),/* @__PURE__ */ (0,H.jsxs)(`span`,{className:`inline-flex h-7 items-center gap-0.5 rounded-sm pr-1 pl-2.5 text-(length:--text-body-sm) font-medium whitespace-nowrap text-(--color-primary-text) transition-[background-color] duration-(--motion-short) ease-(--ease-out) group-hover:bg-surface-primary-tint-15 [&_svg]:size-3.5 [&_svg]:transition-transform [&_svg]:duration-(--motion-medium) [&_svg]:ease-(--ease-out) @max-[350px]:w-6 @max-[350px]:justify-center @max-[350px]:p-0`,children:[/* @__PURE__ */ (0,H.jsx)(`span`,{className:`@max-[350px]:sr-only`,children:u.label}),/* @__PURE__ */ (0,H.jsx)(`span`,{className:p(`inline-flex`,u.external?``:`group-hover:[&_svg]:translate-x-0.5`),children:u.mark})]}),d===null?null:/* @__PURE__ */ (0,H.jsx)(`span`,{"aria-hidden":`true`,className:`absolute right-3 bottom-1 left-[calc(var(--nf-x)-1px)] h-0.5 overflow-hidden rounded-full bg-[color-mix(in_srgb,var(--color-primary)_20%,transparent)]`,children:/* @__PURE__ */ (0,H.jsx)(`i`,{className:`block h-full rounded-[inherit] bg-(--color-primary-400)`,style:{width:`${d.fraction*100}%`}})})]})}function Ue(e,t){if(e.expiresAt===null)return null;let n=Date.parse(e.expiresAt),r=n-Date.parse(e.createdAt),i=Math.max(0,n-t);return{left:i,fraction:r>0?Math.min(1,i/r):0}}var We=`grid grid-cols-[32px_1fr_40px] items-center gap-3`,Ge=[`w-[70%]`,`w-[58%]`],Ke=[`w-[82%]`,`w-[64%]`,`w-[74%]`,`w-[52%]`];function qe({width:e,inDeck:t}){return/* @__PURE__ */ (0,H.jsxs)(`div`,{className:t?We:`${We} py-2 pr-2 pl-(--nf-x)`,children:[/* @__PURE__ */ (0,H.jsx)(n,{className:`size-7 rounded-sm`}),/* @__PURE__ */ (0,H.jsxs)(`div`,{className:`grid gap-1.5`,children:[/* @__PURE__ */ (0,H.jsx)(n,{className:`h-3 ${e}`}),/* @__PURE__ */ (0,H.jsx)(n,{className:`h-2.5 w-[34%]`})]}),/* @__PURE__ */ (0,H.jsx)(n,{className:`h-2.5 w-9`})]})}function Je({label:e}){return/* @__PURE__ */ (0,H.jsxs)(`div`,{role:`status`,"aria-label":e,children:[/* @__PURE__ */ (0,H.jsxs)(`div`,{className:`mt-0.5 mb-2.5 grid gap-3 rounded-lg border border-stroke pt-3 pr-3 pb-3.5 pl-[calc(var(--nf-x)-1px)]`,children:[/* @__PURE__ */ (0,H.jsx)(n,{className:`h-3 w-[84px]`}),Ge.map(e=>/* @__PURE__ */ (0,H.jsx)(qe,{width:e,inDeck:!0},e))]}),/* @__PURE__ */ (0,H.jsx)(n,{className:`mt-3 mb-1.5 ml-(--nf-x) h-2.5 w-[60px]`}),Ke.map(e=>/* @__PURE__ */ (0,H.jsx)(qe,{width:e,inDeck:!1},e))]})}function Ye({entries:e,t,locale:n,now:r,onOpen:i,onLanded:a}){let o=/* @__PURE__ */ new Map;for(let t of e){let e=Me(t.item.createdAt,r),n=o.get(e);n===void 0?o.set(e,[t]):n.push(t)}return/* @__PURE__ */ (0,H.jsx)(H.Fragment,{children:ke.map(e=>{let s=o.get(e);return s===void 0?null:/* @__PURE__ */ (0,H.jsx)(Xe,{title:je(t,e),rows:s,t,locale:n,now:r,onOpen:i,onLanded:a},e)})})}function Xe({title:e,rows:t,...n}){let r=(0,R.useId)();return/* @__PURE__ */ (0,H.jsxs)(H.Fragment,{children:[/* @__PURE__ */ (0,H.jsx)(`h3`,{id:r,className:`m-0 pt-2.5 pr-2 pb-[3px] pl-(--nf-x) text-xs leading-4 font-medium tracking-normal text-fg-muted`,children:e}),/* @__PURE__ */ (0,H.jsx)(`ul`,{"aria-labelledby":r,className:`m-0 grid list-none gap-px p-0`,children:t.map(e=>/* @__PURE__ */ (0,H.jsx)(`li`,{children:/* @__PURE__ */ (0,H.jsx)(nt,{entry:e,...n})},e.item.id))})]})}var Ze={new:`font-semibold text-fg-primary`,seen:`font-medium text-fg-primary`,read:`font-normal text-fg-secondary`},Qe=`border-stroke bg-surface-hover-layer text-fg-secondary`,$e=`border-stroke bg-surface-hover-layer text-fg-success`,et=p(i.error.edge,i.error.fill,i.error.ink),tt=`border-dashed border-stroke-hover bg-transparent text-fg-muted`;function nt({entry:e,t,locale:n,now:r,onOpen:i,onLanded:a}){let{item:o,reading:s,landed:c}=e,l=G(o),u=Y(t,o),d=o.class===`action_required`?o.resolution:null,f=Ee(o),m=d===null?f===`negative`?et:f===`positive`?$e:Qe:tt;return/* @__PURE__ */ (0,H.jsxs)(`button`,{type:`button`,"data-feed-row":``,"data-state":s,"data-tone":f===null?void 0:f,"data-closed":d===null?void 0:``,onClick:()=>i(o),onAnimationEnd:e=>{c&&e.target===e.currentTarget&&a(o.id)},className:p(`group grid w-full cursor-pointer grid-cols-[32px_minmax(0,1fr)_auto] items-start gap-x-3 rounded-md border-0 bg-transparent py-2 pr-2 pl-(--nf-x) text-left text-inherit transition-[background-color] duration-(--motion-instant) ease-(--ease-out) hover:bg-surface-hover-layer active:bg-surface-active-layer focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-stroke-focus @max-[350px]:gap-x-2.5`,c?`animate-notification-land motion-reduce:[animation-duration:1ms]`:``),children:[/* @__PURE__ */ (0,H.jsx)(`span`,{"aria-hidden":`true`,className:`mt-px grid size-7 place-items-center justify-self-start rounded-sm border [&_svg]:size-3.5 ${m}`,children:/* @__PURE__ */ (0,H.jsx)(l,{})}),/* @__PURE__ */ (0,H.jsxs)(`span`,{className:`grid min-w-0 gap-px`,children:[/* @__PURE__ */ (0,H.jsx)(`span`,{className:`text-(length:--text-notification-title) leading-[1.35] tracking-[-0.1px] [overflow-wrap:anywhere] ${Ze[s]}`,children:o.title}),u===null?null:/* @__PURE__ */ (0,H.jsx)(`span`,{className:`text-(length:--text-notification-detail) leading-[1.45] text-fg-muted [overflow-wrap:anywhere] group-hover:text-fg-secondary`,children:u}),d===null?null:/* @__PURE__ */ (0,H.jsx)(`span`,{className:`mt-1 inline-flex items-center gap-1 text-xs leading-4 text-fg-muted`,children:t(Te[d])})]}),/* @__PURE__ */ (0,H.jsxs)(`span`,{className:`flex items-center gap-[7px] pt-0.5 text-xs leading-[18px] whitespace-nowrap text-fg-muted tabular-nums group-hover:text-fg-secondary`,children:[Le(t,n,o.createdAt,r),s===`new`?/* @__PURE__ */ (0,H.jsxs)(H.Fragment,{children:[/* @__PURE__ */ (0,H.jsx)(`span`,{"aria-hidden":`true`,className:`size-2 flex-none rounded-full bg-(--color-primary-400) shadow-[0_0_0_3px_var(--color-ring-primary-25)]`}),/* @__PURE__ */ (0,H.jsx)(`span`,{className:`sr-only`,children:t(`notifications.feed.new`)})]}):null]})]})}function rt({children:e,align:t=`start`,className:n}){return/* @__PURE__ */ (0,H.jsxs)(`div`,{role:`alert`,className:p(`flex gap-1.5 text-xs leading-[1.45] text-fg-error [&>svg]:size-3.5 [&>svg]:flex-none`,t===`start`?`items-start [&>svg]:mt-px`:`items-center`,n),children:[/* @__PURE__ */ (0,H.jsx)(g,{"aria-hidden":`true`}),e]})}function it({onClick:e,children:t,size:n=`md`,className:r}){return/* @__PURE__ */ (0,H.jsx)(`button`,{type:`button`,onClick:e,className:p(`cursor-pointer rounded-xs border-0 bg-transparent px-0.5 font-medium text-(--color-primary-text) no-underline hover:underline hover:underline-offset-3 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-stroke-focus [&_svg]:ml-[3px] [&_svg]:inline [&_svg]:size-3 [&_svg]:align-[-1px]`,n===`md`?`py-1 text-(length:--text-body-sm)`:`py-0 text-xs`,r),children:t})}function at(e,t){let n=e=>e.class===`action_required`&&e.open?0:1;return n(e)-n(t)||Date.parse(t.createdAt)-Date.parse(e.createdAt)||(e.id<t.id?-1:+(e.id>t.id))}function ot(e){return e.map(e=>e.id).join(`|`)}function st(e){let t=e.filter(s),n=ot(t),[r,i]=(0,R.useState)(t),[a,o]=(0,R.useState)(n),[c,l]=(0,R.useState)(()=>/* @__PURE__ */ new Map),[u,d]=(0,R.useState)(()=>/* @__PURE__ */ new Set);if(a!==n){let a=new Set(t.map(e=>e.id)),c=new Set(e.filter(e=>!s(e)).map(e=>e.id)),u=r.filter(e=>!a.has(e.id)&&c.has(e.id));o(n),i(t),u.length>0&&l(e=>new Map([...e,...u.map(e=>[e.id,e])]))}let f=new Set(t.map(e=>e.id));return{deck:[...t.map(e=>({item:e,leaving:!1})),...[...c.values()].filter(e=>!f.has(e.id)).map(e=>({item:e,leaving:!0}))].sort((e,t)=>at(e.item,t.item)),openCount:t.length,history:e.filter(e=>!s(e)&&!c.has(e.id)),landedIds:u,onLeft:e=>{l(t=>{let n=new Map(t);return n.delete(e),n}),d(t=>/* @__PURE__ */ new Set([...t,e]))},onLanded:e=>{d(t=>{let n=new Set(t);return n.delete(e),n})}}}function ct(e,t){let n=new Set(e.map(e=>e.id));return[...e,...t.filter(e=>!n.has(e.id))]}async function lt(e,t,n,r){let i=[],a=0,o=0;for(;o<n;){let s=await e.list({locale:t,signal:r,limit:Math.min(500,n-o),offset:o});if(i=ct(i,s.items),a=s.total,o+=s.items.length,o>=s.total||s.items.length===0)break}return{items:i,total:a,nextOffset:o}}function ut(e,t){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}var dt=2**31-1;function ft({api:e,locale:t,revision:n,logger:r,onSeen:i}){let[a,o]=(0,R.useState)({status:`loading`}),[c,l]=(0,R.useState)(0),[u,d]=(0,R.useState)(0),[f,p]=(0,R.useState)(()=>/* @__PURE__ */ new Set),m=ae(),h=(0,R.useRef)(null),g=(0,R.useRef)(null),_=(0,R.useRef)(/* @__PURE__ */ new Set),v=(0,R.useRef)(i),y=(0,R.useRef)(r);(0,R.useEffect)(()=>{v.current=i,y.current=r});let b=(0,R.useCallback)(e=>{h.current=e,o({status:`ready`,data:e,more:`idle`})},[]);(0,R.useEffect)(()=>{var n;let r=new AbortController;(n=g.current)==null||n.abort();let i=h.current;return(async()=>{if(i===null){let[n,i]=await Promise.all([e.list({locale:t,signal:r.signal}),e.listGroups({locale:t,signal:r.signal})]);return{items:n.items,total:n.total,nextOffset:n.items.length,pageLimit:n.limit,groups:i.items}}let[n,a]=await Promise.all([lt(e,t,Math.max(i.nextOffset,i.pageLimit),r.signal),e.listGroups({locale:t,signal:r.signal})]);return{...n,pageLimit:i.pageLimit,groups:a.items}})().then(e=>{r.signal.aborted||b(e)},e=>{if(!r.signal.aborted){if(i===null){o({status:`error`,retrying:!1});return}y.current.error(`notification feed: re-read failed`,{error:e}),o({status:`ready`,data:i,more:`idle`})}}),()=>r.abort()},[e,t,n,c,u,b]);let x=(0,R.useCallback)(()=>{o({status:`error`,retrying:!0}),l(e=>e+1)},[]),S=(0,R.useCallback)(()=>{var n;let r=h.current;if(r===null)throw Error(`notification feed: \u00AB\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451\u00BB before the first page`);(n=g.current)==null||n.abort();let i=new AbortController;g.current=i,o({status:`ready`,data:r,more:`busy`}),e.list({locale:t,signal:i.signal,limit:r.pageLimit,offset:r.nextOffset}).then(e=>{if(i.signal.aborted)return;let t=h.current;t!==null&&b({...t,items:ct(t.items,e.items),total:e.total,nextOffset:t.nextOffset+e.items.length})},e=>{if(i.signal.aborted)return;y.current.error(`notification feed: next page failed`,{offset:r.nextOffset,error:e});let t=h.current;t!==null&&o({status:`ready`,data:t,more:`error`})})},[e,t,b]),C=a.status===`ready`?a.data.items:null;(0,R.useEffect)(()=>{if(C===null)return;let t=C.filter(e=>e.seenAt===null&&!_.current.has(e.id)).map(e=>e.id);if(t.length!==0){for(let e of t)_.current.add(e);p(e=>/* @__PURE__ */ new Set([...e,...t]));for(let n of ut(t,500))e.markSeen(n).then(e=>{var t;return(t=v.current)==null?void 0:t.call(v,e)},e=>{for(let e of n)_.current.delete(e);y.current.error(`notification feed: marking seen failed`,{count:n.length,error:e})})}},[e,C]);let w=C===null?null:C.reduce((e,t)=>{if(!s(t)||t.expiresAt===null)return e;let n=Date.parse(t.expiresAt);return e===null||n<e?n:e},null),T=(0,R.useRef)(null);return(0,R.useEffect)(()=>{if(w===null)return;let e=`${w}@${m}`;if(T.current===e)return;let t=w-Date.now();if(t>dt)return;let n=setTimeout(()=>{T.current=e,d(e=>e+1)},t);return()=>clearTimeout(n)},[w,m]),{load:a,freshIds:f,now:m,retry:x,loadMore:S}}var pt={web:`px-2 pt-1 pb-2.5`,popup:`px-2 pt-1.5 pb-3`,panel:`px-2.5 pt-2 pb-3.5`},mt=/* @__PURE__ */ new Set([`ArrowDown`,`ArrowUp`,`Home`,`End`]);function ht(e){var t;if(!mt.has(e.key))return;let n=[...e.currentTarget.querySelectorAll(`[data-feed-row]`)],r=n.findIndex(e=>e===document.activeElement);if(r===-1)return;let i=e.key===`Home`?0:e.key===`End`?n.length-1:e.key===`ArrowDown`?Math.min(n.length-1,r+1):Math.max(0,r-1);e.preventDefault(),(t=n[i])==null||t.focus()}function gt(e){let{api:t,locale:n,t:r,revision:i,logger:s,onSeen:c,host:l,onOpenSettings:u}=e,f=ft({api:t,locale:n,revision:i,logger:s,onSeen:c}),{load:p}=f;return/* @__PURE__ */ (0,H.jsxs)(`div`,{"data-host":l,className:`@container flex min-h-0 min-w-0 flex-col text-left [--nf-x:13px] ${l===`web`?`[--nf-surface:var(--color-bg-elevated)]`:`flex-1 [--nf-surface:var(--color-bg-notification-window)]`}`,children:[e.host===`web`?/* @__PURE__ */ (0,H.jsxs)(`div`,{className:`flex flex-none items-center gap-2 pt-3 pr-2.5 pb-1.5 pl-[calc(8px+var(--nf-x))]`,children:[/* @__PURE__ */ (0,H.jsx)(`h2`,{id:e.headingId,className:`m-0 mr-auto text-base leading-6 font-semibold tracking-[-0.35px] text-fg-primary`,children:r(`notifications.feed.title`)}),/* @__PURE__ */ (0,H.jsx)(d,{relationship:`label`,content:r(`notifications.feed.settings`),children:/* @__PURE__ */ (0,H.jsx)(a,{size:`sm`,icon:/* @__PURE__ */ (0,H.jsx)(P,{"aria-hidden":`true`}),onClick:u})})]}):null,/* @__PURE__ */ (0,H.jsx)(`div`,{onKeyDown:ht,className:`min-h-0 flex-1 overflow-y-auto [scrollbar-color:var(--scrollbar-thumb)_transparent] [scrollbar-width:thin] ${pt[l]}`,children:p.status===`loading`?/* @__PURE__ */ (0,H.jsx)(Je,{label:r(`notifications.feed.loading`)}):p.status===`error`?/* @__PURE__ */ (0,H.jsx)(_t,{host:l,children:/* @__PURE__ */ (0,H.jsx)(o,{icon:/* @__PURE__ */ (0,H.jsx)(se,{"aria-hidden":`true`}),title:r(`notifications.feed.errorTitle`),description:r(`notifications.feed.errorText`),retry:{label:r(`common.retry`),onRetry:f.retry,pending:p.retrying,pendingLabel:r(`common.loading`)},className:`[&_p]:max-w-70`})}):/* @__PURE__ */ (0,H.jsx)(vt,{...e,data:p.data,more:p.more,freshIds:f.freshIds,now:f.now,onLoadMore:f.loadMore})}),p.status===`ready`?/* @__PURE__ */ (0,H.jsx)(yt,{host:l,t:r,data:p.data,onOpenSettings:u}):null]})}function _t({host:e,children:t}){return/* @__PURE__ */ (0,H.jsx)(`div`,{className:p(`grid flex-1 content-center p-2`,e===`popup`?`min-h-80`:`min-h-[300px]`),children:t})}function vt({host:e,t,locale:n,data:r,more:i,freshIds:a,now:o,onLoadMore:s,onOpenTarget:c,onOpenSettings:l,focusFirstRow:d}){let f=st(r.items),[p,h]=(0,R.useState)(()=>/* @__PURE__ */ new Set),g=(0,R.useRef)(null),_=(0,R.useRef)(!1),v=r.items.length>0;(0,R.useEffect)(()=>{var e;d===!0&&!_.current&&v&&(_.current=!0,(e=g.current)==null||(e=e.querySelector(`[data-feed-row]`))==null||e.focus())},[d,v]);let y=e=>{h(t=>/* @__PURE__ */ new Set([...t,e.id])),c(e)},b=e=>e.readAt!==null||p.has(e.id)?`read`:e.seenAt===null||a.has(e.id)?`new`:`seen`;if(!v&&f.deck.length===0){let n=r.groups.length>0&&r.groups.every(e=>!e.enabled);return/* @__PURE__ */ (0,H.jsx)(_t,{host:e,children:n?/* @__PURE__ */ (0,H.jsx)(m,{icon:/* @__PURE__ */ (0,H.jsx)(M,{"aria-hidden":`true`}),title:t(`notifications.feed.allOffTitle`),description:t(`notifications.feed.allOffText`),className:`[&_p]:max-w-70`,action:/* @__PURE__ */ (0,H.jsx)(u,{variant:`primary`,onClick:l,children:e===`panel`?/* @__PURE__ */ (0,H.jsxs)(H.Fragment,{children:[t(`notifications.feed.configureInWeb`),/* @__PURE__ */ (0,H.jsx)(A,{"aria-hidden":`true`})]}):t(`notifications.feed.openSettings`)})}):/* @__PURE__ */ (0,H.jsx)(m,{icon:/* @__PURE__ */ (0,H.jsx)(N,{"aria-hidden":`true`}),title:t(`notifications.feed.emptyTitle`),description:t(`notifications.feed.emptyText`),className:`[&_p]:max-w-70`})})}return/* @__PURE__ */ (0,H.jsxs)(`div`,{ref:g,children:[f.deck.length>0?/* @__PURE__ */ (0,H.jsx)(Ve,{entries:f.deck,count:f.openCount,host:e,t,now:o,onOpen:y,onLeft:f.onLeft,className:`mt-0.5 mb-1.5`}):null,/* @__PURE__ */ (0,H.jsx)(Ye,{entries:f.history.map(e=>({item:e,reading:b(e),landed:f.landedIds.has(e.id)})),t,locale:n,now:o,onOpen:y,onLanded:f.onLanded}),r.nextOffset<r.total?/* @__PURE__ */ (0,H.jsxs)(`div`,{className:`mt-2 mb-0.5`,children:[i===`error`?/* @__PURE__ */ (0,H.jsx)(rt,{className:`mb-1.5 ml-(--nf-x)`,children:/* @__PURE__ */ (0,H.jsx)(`span`,{children:t(`notifications.feed.loadMoreFailed`)})}):null,/* @__PURE__ */ (0,H.jsx)(ie,{label:t(i===`error`?`common.retry`:`notifications.feed.loadMore`),loadingLabel:t(`notifications.feed.loadMore`),loading:i===`busy`,onLoadMore:s})]}):null]})}function yt({host:e,t,data:n,onOpenSettings:r}){let i=n.groups.filter(e=>!e.enabled);return i.length===0||i.length===n.groups.length?null:/* @__PURE__ */ (0,H.jsxs)(`div`,{className:`flex min-h-10 flex-none items-center gap-2 border-t border-stroke-light py-1.5 pr-2.5 pl-[calc(8px+var(--nf-x))] text-(length:--text-notification-detail) leading-[1.4] text-fg-secondary`,children:[/* @__PURE__ */ (0,H.jsx)(M,{"aria-hidden":`true`,className:`size-3.5 flex-none text-fg-muted`}),/* @__PURE__ */ (0,H.jsxs)(`p`,{className:`m-0 min-w-0 flex-1`,children:[t(`notifications.feed.disabled`),` `,/* @__PURE__ */ (0,H.jsx)(`b`,{className:`font-medium text-fg-primary`,children:i.map(e=>e.title).join(`, `)})]}),/* @__PURE__ */ (0,H.jsx)(it,{onClick:r,className:`flex-none`,children:e===`panel`?/* @__PURE__ */ (0,H.jsxs)(H.Fragment,{children:[t(`notifications.feed.configureInWeb`),/* @__PURE__ */ (0,H.jsx)(A,{"aria-hidden":`true`})]}):t(`notifications.feed.configure`)})]})}function bt({api:e,locale:t,t:n,waitingCount:r,revision:i,logger:a,onOpenTarget:o,onOpenFeed:c,onSeen:l,className:u}){let[d,f]=(0,R.useState)(null),m=ae(),h=(0,R.useRef)(a),g=(0,R.useRef)(l);if((0,R.useEffect)(()=>{h.current=a,g.current=l}),(0,R.useEffect)(()=>{if(r===0)return;let n=new AbortController;return e.list({locale:t,limit:2,offset:0,signal:n.signal}).then(t=>{if(n.signal.aborted)return;let r=t.items.filter(s);f(r);let i=r.filter(e=>e.seenAt===null).map(e=>e.id);i.length!==0&&e.markSeen(i).then(e=>{var t;return(t=g.current)==null?void 0:t.call(g,e)},e=>h.current.error(`waiting strip: marking seen failed`,{count:i.length,error:e}))},e=>{n.signal.aborted||h.current.error(`waiting strip: read failed`,{error:e})}),()=>n.abort()},[e,t,r,i]),r===0||d===null||d.length===0)return null;let _=r-d.length;return/* @__PURE__ */ (0,H.jsx)(`div`,{className:p(`@container flex-none [--nf-x:13px] [--nf-surface:var(--color-bg-notification-window)]`,u),children:/* @__PURE__ */ (0,H.jsx)(Ve,{entries:d.map(e=>({item:e,leaving:!1})),count:r,host:`popup`,t:n,now:m,onOpen:o,onLeft:()=>void 0,footer:{label:_>0?n(`notifications.deck.moreAndAll`,{count:_}):n(`notifications.deck.all`),onClick:c}})})}var xt=[[`w-[38%]`,`w-[74%]`],[`w-[52%]`,`w-[86%]`],[`w-[44%]`,`w-[68%]`]];function St({api:e,locale:r,t:i,logger:a,onChanged:o}){let[s,l]=(0,R.useState)({status:`loading`}),[d,f]=(0,R.useState)(0),[p,m]=(0,R.useState)(()=>/* @__PURE__ */ new Map),h=(0,R.useRef)(/* @__PURE__ */ new Map),_=(0,R.useRef)(a),v=(0,R.useRef)(o);(0,R.useEffect)(()=>{_.current=a,v.current=o});let y=(0,R.useRef)(!0);(0,R.useEffect)(()=>{y.current=!0;let e=h.current;return()=>{y.current=!1;for(let t of e.values())t.next=null}},[]),(0,R.useEffect)(()=>{let t=new AbortController;return e.listGroups({locale:r,signal:t.signal}).then(e=>{t.signal.aborted||l({status:`ready`,groups:e.items})},()=>{t.signal.aborted||l({status:`error`,retrying:!1})}),()=>t.abort()},[e,r,d]);let x=(0,R.useCallback)((e,t)=>{m(n=>{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})},[]),S=(0,R.useCallback)((t,n)=>{let i=h.current.get(t);i===void 0&&(i={inFlight:!1,next:null},h.current.set(t,i));let a=i;a.inFlight=!0,x(t,{shown:n,busy:!0,failed:null});let o=e=>{if(a.inFlight=!1,y.current){if(a.next!==null){let e=a.next;a.next=null,S(t,e);return}x(t,e===null?null:{shown:!e,busy:!1,failed:e})}};e.setGroupEnabled(t,n,{locale:r}).then(e=>{var t;l(t=>t.status===`ready`?{status:`ready`,groups:t.groups.map(t=>t.key===e.key?e:t)}:t),y.current&&((t=v.current)==null||t.call(v,e)),o(null)},e=>{_.current.error(`notification groups: save failed`,{key:t,enabled:n,error:e}),o(n)})},[e,r,x]),C=(e,t)=>{let n=h.current.get(e);if((n==null?void 0:n.inFlight)===!0){n.next=t,x(e,{shown:t,busy:!0,failed:null});return}S(e,t)};return s.status===`loading`?/* @__PURE__ */ (0,H.jsx)(H.Fragment,{children:xt.map(([e,t],r)=>/* @__PURE__ */ (0,H.jsxs)(c,{end:/* @__PURE__ */ (0,H.jsx)(n,{className:`h-5 w-9 rounded-full`}),children:[r===0?/* @__PURE__ */ (0,H.jsx)(`span`,{role:`status`,className:`sr-only`,children:i(`notifications.groups.loading`)}):null,/* @__PURE__ */ (0,H.jsxs)(`span`,{"aria-hidden":`true`,className:`grid gap-1.5`,children:[/* @__PURE__ */ (0,H.jsx)(n,{className:`h-3.25 ${e}`}),/* @__PURE__ */ (0,H.jsx)(n,{className:`h-2.75 ${t}`})]})]},e))}):s.status===`error`?/* @__PURE__ */ (0,H.jsx)(c,{children:/* @__PURE__ */ (0,H.jsxs)(`div`,{role:`alert`,className:`grid justify-items-start gap-2.5`,children:[/* @__PURE__ */ (0,H.jsxs)(`p`,{className:`m-0 flex gap-1.5 text-(length:--text-body-sm) leading-normal text-fg-error [&>svg]:mt-0.5 [&>svg]:size-3.5 [&>svg]:flex-none`,children:[/* @__PURE__ */ (0,H.jsx)(g,{"aria-hidden":`true`}),/* @__PURE__ */ (0,H.jsx)(`span`,{children:i(`notifications.groups.loadFailed`)})]}),/* @__PURE__ */ (0,H.jsx)(u,{variant:`secondary`,size:`sm`,icon:/* @__PURE__ */ (0,H.jsx)(b,{"aria-hidden":`true`}),loading:s.retrying,loadingLabel:i(`common.loading`),onClick:()=>{l({status:`error`,retrying:!0}),f(e=>e+1)},children:i(`common.retry`)})]})}):/* @__PURE__ */ (0,H.jsx)(H.Fragment,{children:s.groups.map(e=>{let n=p.get(e.key),r=n!==void 0&&n.busy?n.shown:e.enabled;return/* @__PURE__ */ (0,H.jsx)(c,{"data-on":String(r),title:e.title,caption:e.description===``?void 0:e.description,end:/* @__PURE__ */ (0,H.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-fg-muted`,children:[n!==void 0&&n.busy?/* @__PURE__ */ (0,H.jsx)(t,{}):null,/* @__PURE__ */ (0,H.jsx)(oe,{checked:r,onChange:t=>C(e.key,t),"aria-label":e.title})]}),children:n!==void 0&&n.failed!==null?/* @__PURE__ */ (0,H.jsxs)(rt,{align:`center`,className:`mt-1.5`,children:[/* @__PURE__ */ (0,H.jsx)(`span`,{children:i(`notifications.groups.saveFailed`)}),/* @__PURE__ */ (0,H.jsx)(it,{size:`sm`,onClick:()=>C(e.key,n.failed===!0),children:i(`common.retry`)})]}):null},e.key)})})}var Ct=`animate-[extension-view-in_var(--motion-medium)_var(--ease-out)_both]`,wt=`animate-[extension-view-back_var(--motion-medium)_var(--ease-out)_both]`;function Tt(e){let{url:t,headers:n,contentType:r,bytes:i,signal:a,onProgress:o}=e;return a.aborted?Promise.reject(a.reason):new Promise((e,s)=>{let c=new XMLHttpRequest,l=()=>{c.abort(),s(a.reason)},u=()=>{a.removeEventListener(`abort`,l)};c.open(`POST`,t);for(let[e,t]of Object.entries(n))c.setRequestHeader(e,t);c.setRequestHeader(`Content-Type`,r),c.upload.addEventListener(`progress`,e=>{o(e.loaded)}),c.upload.addEventListener(`load`,()=>{o(i.byteLength)}),c.addEventListener(`load`,()=>{u(),e({status:c.status,body:c.responseText})}),c.addEventListener(`error`,()=>{u(),s(new j({status:0,errorCode:null,params:null,message:`POST ${t}: no HTTP answer`}))}),a.addEventListener(`abort`,l,{once:!0}),o(0),c.send(i)})}var Et=401;async function Dt(e){let{contentType:t,bytes:n,signal:r,onProgress:i,authorize:a,refuse:o}=e,s=async()=>{let{url:e,headers:o}=await a();return Tt({url:e,headers:o,contentType:t,bytes:n,signal:r,onProgress:i})},c=await s();return c.status===Et&&(c=await s()),c.status<200||c.status>=300?o(c):JSON.parse(c.body)}function Ot(e,t){return(t==null?void 0:t.aborted)===!0?t.reason:e instanceof TypeError?new j({status:0,errorCode:null,params:null,message:e.message}):e}async function Z(e,t){try{return await e()}catch(e){throw Ot(e,t)}}var kt=401;async function At(e,t){let n=await r.call(`API_DIRECT_AUTHORIZE`,{path:t});if(`error`in n)throw new C(n.error,n.status,{method:e,path:t});return{url:n.url,headers:n.headers}}async function Q(e,t,n,i){let a=await r.call(`API_DIRECT_REFUSED`,{path:t,status:n,body:i});throw new C(a.error,a.status,{method:e,path:t})}function jt(e){let{path:t,contentType:n,bytes:r,signal:i,onProgress:a}=e;return Dt({contentType:n,bytes:r,signal:i,onProgress:a,authorize:()=>At(`POST`,t),refuse:({status:e,body:n})=>Q(`POST`,t,e,n)})}async function Mt(e){let{path:t,signal:n}=e,r=async()=>{let{url:e,headers:r}=await At(`GET`,t);return Z(()=>fetch(e,{headers:r,...n!==void 0&&{signal:n}}),n)},i=await r();if(i.status===kt&&(i=await r()),!i.ok){let e=await Z(()=>i.text(),n);return Q(`GET`,t,i.status,e)}let a=i.headers.get(`content-type`);if(a===null)throw Error(`GET ${t} answered ${String(i.status)} without a Content-Type`);let o=await Z(()=>i.arrayBuffer(),n);return{contentType:a,bytes:new Uint8Array(o)}}function Nt(){return{async request({method:e,path:t,body:n,schema:r}){let i=await $(l(t,{method:e,...n!==void 0&&{body:JSON.stringify(n)}}));return r.parse(i)},async upload({path:e,contentType:t,bytes:n,schema:r,signal:i,onProgress:a}){let o=await $(jt({path:e,contentType:t,bytes:n,signal:i,onProgress:a}));return r.parse(o)},download({path:e,signal:t}){return $(Mt({path:e,signal:t}))}}}async function $(e){try{return await e}catch(e){throw e instanceof C?Pt(e):e}}function Pt(e){let t=typeof e.payload.message==`string`&&e.payload.message!==``?e.payload.message:`Chat request failed with HTTP ${String(e.status)}`;return new j({status:e.status,errorCode:e.errorCode??null,params:e.params??null,message:t})}export{bt as a,ye as c,de as d,le as f,St as i,_e as l,wt as n,gt as o,P as p,Ct as r,Se as s,Nt as t,ue as u};
|