performance.mark("js-parse-end:86065-3c4de58826a817ae.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["86065"],{63429(e,t,i){i.d(t,{Fr:()=>d,R0:()=>l,U0:()=>u,xl:()=>c});var n=i(26316);let s="Android",o="macOS",a="Windows",r="Linux";function l(){let e="Unknown",t=!1;if(n.cg){let i=n.cg.navigator,l="";try{l=i.userAgent}catch{}let d="";try{d=i?.userAgentData?.platform||i.platform}catch{}-1!==["Macintosh","MacIntel","MacPPC","Mac68K","macOS"].indexOf(d)?e=o:-1!==["iPhone","iPad","iPod"].indexOf(d)?e="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(d)?e=a:/Android/.test(l)?e=s:/Linux/.test(d)&&(e=r),t=i?.userAgentData?.mobile??(e===s||"iOS"===e)}return{os:e,isAndroid:e===s,isIOS:"iOS"===e,isMacOS:e===o,isWindows:e===a,isLinux:e===r,isDesktop:e===o||e===a||e===r,isMobile:t}}function d(){return l().isMobile}function c(){return l().isDesktop}function u(){return l().isMacOS}},98795(e,t,i){i.d(t,{JC:()=>n.JC,KK:()=>n.KK,SK:()=>o,Vy:()=>n.Vy,ai:()=>n.ai,rd:()=>n.rd});var n=i(50515);let s=/(?:^|,)((?:[^,]|,(?=\+| |$))*(?:,(?=,))?)/g;function o(e){return Array.from(e.matchAll(s)).map(([,e])=>e)}},39423(e,t,i){i.d(t,{$$:()=>d,GI:()=>a,fg:()=>l,zw:()=>o});var n=i(63429),s=i(98795);let o=()=>{if("u"/Enter|Arrow|Escape|Meta|Control|Mod|Esc|Tab/.test(e)||!(0,n.U0)()&&e.includes("Alt")&&e.includes("Shift"),r=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]);function l(e){if(!(e instanceof HTMLElement))return!1;let t=e.nodeName.toLowerCase(),i=e.getAttribute("type")?.toLowerCase()??"text",n="true"===e.ariaReadOnly||"true"===e.getAttribute("aria-readonly")||null!==e.getAttribute("readonly");return("select"===t||"textarea"===t||"input"===t&&!r.has(i)||e.isContentEditable)&&!n}let d=e=>{let t=(0,s.Vy)(e),i=o()&&!l(e.target);return a(t)||i}},47314(e,t,i){i.d(t,{J:()=>o,k:()=>s});var n=i(69807);class s{commandId;constructor(e){this.commandId=e}}let o={entries:e=>Object.entries(e).filter(e=>n.dx.is(e[0])&&void 0!==e[1]),keys:e=>Object.keys(e).filter(n.dx.is)}},8204(e,t,i){i.d(t,{J:()=>d,c:()=>l});var n=i(16522),s=i(96540),o=i(47314),a=i(69807);let r=new Map;function l(){let e=new Map;for(let t of new Set(Array.from(r.values()).flat())){let i=a.dx.getServiceId(t);if(!e.has(i)){let t=(0,a.tp)(i);e.set(i,{service:{id:t.id,name:t.name},commands:[]})}let n=(0,a.fL)(t),s=(0,a.eY)(t);n&&s.length>0&&e.get(i)?.commands.push({id:t,name:n.name,description:n.description,keybinding:s.length>1?s:s[0]})}return Array.from(e.values())}let d=e=>{let t,i,a=(0,n.c)(4),l=(0,s.useId)();a[0]!==e||a[1]!==l?(t=()=>(r.set(l,o.J.keys(e)),()=>{r.delete(l)}),i=[e,l],a[0]=e,a[1]=l,a[2]=t,a[3]=i):(t=a[2],i=a[3]),(0,s.useEffect)(t,i)}},69807(e,t,i){i.d(t,{tp:()=>c,dx:()=>l,eY:()=>u,hq:()=>p,LU:()=>m,fL:()=>d});var n=i(73537),s=i(98795);let{P:o,$:a}=JSON.parse('{"$":{"commit-diff-view":{"id":"commit-diff-view","name":"Commits","commandIds":["commit-diff-view:open-find","commit-diff-view:create-permalink","commit-diff-view:collapse-expand-comments"]},"copilot-chat":{"id":"copilot-chat","name":"Copilot Chat","commandIds":["copilot-chat:open-assistive","copilot-chat:open-immersive","copilot-chat:continue-in-immersive","copilot-chat:send-message","copilot-chat:send-message-new-conversation","copilot-chat:add-attachment","copilot-chat:close-assistive","copilot-chat:deep-codesearch","copilot-chat:edit-last-message"]},"github":{"id":"github","name":"GitHub (site-wide)","commandIds":["github:submit-form","github:select","github:select-multiple","github:cancel","github:go-to-start","github:go-to-end","github:up","github:down","github:focus-next"]},"global-navigation":{"id":"global-navigation","name":"Global navigation","commandIds":["global-navigation:open-repo-picker","global-navigation:show-shortcuts-dialog","global-navigation:search","global-navigation:go-to-dashboard","global-navigation:go-to-notifications","global-navigation:go-to-repositories","global-navigation:go-to-issues","global-navigation:go-to-pull-requests"]},"issue-body":{"id":"issue-body","name":"Issues: issue body","commandIds":["issue-body:open-copilot-panel"]},"issue-create":{"id":"issue-create","name":"Issue creation","commandIds":["issue-create:new","issue-create:submit-and-create-more","issue-create:open-fullscreen","issue-create:edit-parent","issue-create:mark-blocked-by","issue-create:mark-blocking","issue-create:open-copilot-panel"]},"issue-viewer":{"id":"issue-viewer","name":"Issues: issue viewer","commandIds":["issue-viewer:edit-parent","issue-viewer:edit-title-submit","issue-viewer:close-edit-title","issue-viewer:mark-blocked-by","issue-viewer:mark-blocking","issue-viewer:edit-security-alert"]},"issues-react":{"id":"issues-react","name":"Issues","commandIds":["issues-react:focus-next-issue","issues-react:focus-previous-issue"]},"item-pickers":{"id":"item-pickers","name":"Item pickers","commandIds":["item-pickers:open-assignees","item-pickers:open-development","item-pickers:open-labels","item-pickers:open-milestone","item-pickers:open-projects","item-pickers:open-issue-type","item-pickers:open-author","item-pickers:open-fields"]},"list-view-items-issues-prs":{"id":"list-view-items-issues-prs","name":"Issue and pull request lists","commandIds":["list-view-items-issues-prs:open-focused-item","list-view-items-issues-prs:toggle-focused-item-selection"]},"list-views":{"id":"list-views","name":"List views","commandIds":["list-views:open-manage-item-dialog"]},"projects":{"id":"projects","name":"Projects","commandIds":["projects:save-view","projects:save-form"]},"pull-request-files-changed":{"id":"pull-request-files-changed","name":"Pull Requests: \'files changed\' view","commandIds":["pull-request-files-changed:collapse-expand-comments","pull-request-files-changed:open-commits-list","pull-request-files-changed:focus-file-tree-filter","pull-request-files-changed:submit-review","pull-request-files-changed:go-to-previous-commit","pull-request-files-changed:go-to-next-commit"]},"pull-requests-conversations":{"id":"pull-requests-conversations","name":"Pull Requests: conversations","commandIds":["pull-requests-conversations:submit-comment-and-review"]},"pull-requests-diff-file-tree":{"id":"pull-requests-diff-file-tree","name":"Pull Requests: file tree","commandIds":["pull-requests-diff-file-tree:focus-file-tree"]},"pull-requests-diff-view":{"id":"pull-requests-diff-view","name":"Pull Requests: diff view","commandIds":["pull-requests-diff-view:copy-anchor-link","pull-requests-diff-view:copy-code","pull-requests-diff-view:close-find","pull-requests-diff-view:jump-to-next-result","pull-requests-diff-view:jump-to-next-result-alternate","pull-requests-diff-view:jump-to-previous-result","pull-requests-diff-view:jump-to-previous-result-alternate","pull-requests-diff-view:open-find","pull-requests-diff-view:submit-comment-and-review","pull-requests-diff-view:start-conversation-current","pull-requests-diff-view:quote-reply"]},"react-sandbox":{"id":"react-sandbox","name":"React Sandbox","commandIds":["react-sandbox:example-command"]},"repositories":{"id":"repositories","name":"Repositories","commandIds":["repositories:go-to-code","repositories:go-to-issues","repositories:go-to-pull-requests","repositories:go-to-discussions","repositories:go-to-actions","repositories:go-to-projects","repositories:go-to-models","repositories:go-to-agents","repositories:go-to-wiki","repositories:go-to-security","repositories:go-to-insights","repositories:go-to-settings"]},"repository-label":{"id":"repository-label","name":"Repository label","commandIds":["repository-label:save-label-submit","repository-label:cancel-save-label"]},"sub-issues":{"id":"sub-issues","name":"Sub-issues","commandIds":["sub-issues:create-sub-issue","sub-issues:add-existing-issue"]},"ui-commands":{"id":"ui-commands","name":"UI Commands","commandIds":["ui-commands:test-chord","ui-commands:test-sequence","ui-commands:conflicting-chord","ui-commands:flagged-command","ui-commands:single-key"]},"workspace-editor":{"id":"workspace-editor","name":"Workspace editor","commandIds":["workspace-editor:escape-editor--mac","workspace-editor:escape-editor","workspace-editor:toggle-file-tree-pane"]}},"P":{"commit-diff-view:collapse-expand-comments":{"name":"Toggle comments","description":"Toggle between collapsed and expanded comments","defaultBinding":"i"},"commit-diff-view:create-permalink":{"name":"Create permalink","description":"Expand the current URL to a full permalink","defaultBinding":"y"},"commit-diff-view:open-find":{"name":"Open find and search on selection","description":"Open the find widget with the current selection","defaultBinding":"Mod+e"},"copilot-chat:add-attachment":{"name":"Add attachment","description":"Add an attachment to the current message","defaultBinding":"Mod+Shift+@"},"copilot-chat:close-assistive":{"name":"Close chat","description":"Close the assistive chat","defaultBinding":"Shift+Z"},"copilot-chat:continue-in-immersive":{"name":"Continue conversation in immersive","description":"Continue the current assistive chat conversation in immersive mode","defaultBinding":"Mod+Shift+C"},"copilot-chat:deep-codesearch":{"name":"Deep code search","description":"Perform a deep code search for the current message if applicable"},"copilot-chat:edit-last-message":{"name":"Edit last message","description":"Edit the last-sent message in the conversation","defaultBinding":"ArrowUp"},"copilot-chat:open-assistive":{"name":"Open Copilot Chat (assistive mode)","description":"Open Copilot Chat in the assistive overlay mode"},"copilot-chat:open-immersive":{"name":"Open Copilot Chat (immersive mode)","description":"Open Copilot Chat in the full-page immersive mode","defaultBinding":"Shift+C"},"copilot-chat:send-message":{"name":"Send message","description":"Send the current message","defaultBinding":"Enter"},"copilot-chat:send-message-new-conversation":{"name":"Send message to new conversation","description":"Send the current message to a newly created conversation","defaultBinding":"Mod+Shift+S"},"github:cancel":{"name":"Cancel","description":"Cancel the current operation","defaultBinding":"Escape"},"github:down":{"name":"Down","description":"Navigate down","defaultBinding":"ArrowDown"},"github:focus-next":{"name":"Focus next item","description":"Navigate to the next focusable item","defaultBinding":"Tab"},"github:go-to-end":{"name":"Go to end","description":"Go to the last item in a list","defaultBinding":"End"},"github:go-to-start":{"name":"Go to start","description":"Go to the first item in a list","defaultBinding":"Home"},"github:select":{"name":"Select item","description":"Select the current item","defaultBinding":"Enter"},"github:select-multiple":{"name":"Select multiple items","description":"Add the current item to a multi-selection (or remove it if already added)","defaultBinding":"Mod+Enter"},"github:submit-form":{"name":"Submit form","description":"Submit the current form","defaultBinding":"Mod+Enter"},"github:up":{"name":"Up","description":"Navigate up","defaultBinding":"ArrowUp"},"global-navigation:go-to-dashboard":{"name":"Go to dashboard","description":"Navigate to the main dashboard","defaultBinding":"g d","featureFlag":"global_nav_ui_commands"},"global-navigation:go-to-issues":{"name":"Go to your issues","description":"Navigate to your issues dashboard page","defaultBinding":"g i","featureFlag":"global_nav_ui_commands"},"global-navigation:go-to-notifications":{"name":"Go to notifications","description":"Navigate to the notifications page","defaultBinding":"g n","featureFlag":"global_nav_ui_commands"},"global-navigation:go-to-pull-requests":{"name":"Go to your pull requests","description":"Navigate to your pull requests dashboard page","defaultBinding":"g p","featureFlag":"global_nav_ui_commands"},"global-navigation:go-to-repositories":{"name":"Go to your repositories","description":"Navigate to your repositories dashboard page","featureFlag":"global_nav_ui_commands"},"global-navigation:open-repo-picker":{"name":"Open repository switcher","description":"Open the repository switcher to navigate between repositories","defaultBinding":"Alt+Shift+R"},"global-navigation:search":{"name":"Open search bar","description":"Opens and focus the search experience","defaultBinding":"/,s","featureFlag":"global_nav_ui_commands"},"global-navigation:show-shortcuts-dialog":{"name":"Show keyboard shortcuts dialog","description":"Display the keyboard shortcuts help dialog","defaultBinding":"Shift+?"},"issue-body:open-copilot-panel":{"name":"Open Write with Copilot panel","description":"Open the Copilot panel to generate an issue description","defaultBinding":"Mod+Shift+C","featureFlag":"write_issue_body_with_copilot"},"issue-create:edit-parent":{"name":"Add or change parent issue","description":"Open picker to add or change the parent issue","defaultBinding":"Alt+Shift+P","featureFlag":"issue_create_relationships"},"issue-create:mark-blocked-by":{"name":"Add or change blocked by","description":"Add or change an issue that blocks the current issue","defaultBinding":"b b","featureFlag":"issue_create_relationships"},"issue-create:mark-blocking":{"name":"Add or change blocking","description":"Add or change an issue that is blocked by the current issue","defaultBinding":"b x","featureFlag":"issue_create_relationships"},"issue-create:new":{"name":"Create issue","description":"Open the new issue creation flow","defaultBinding":"c"},"issue-create:open-copilot-panel":{"name":"Open Write with Copilot panel","description":"Open the Copilot panel to generate an issue description","defaultBinding":"Mod+Shift+C","featureFlag":"write_issue_body_with_copilot"},"issue-create:open-fullscreen":{"name":"Open issue creation in fullscreen","description":"Open the issue creation dialog in fullscreen mode","defaultBinding":"Mod+Shift+Enter"},"issue-create:submit-and-create-more":{"name":"Submit and create more","description":"Submit the current issue and create a new one","defaultBinding":"Mod+Alt+Enter"},"issue-viewer:close-edit-title":{"name":"Cancel","description":"Cancel out of editing an issue\'s title","defaultBinding":"Escape"},"issue-viewer:edit-parent":{"name":"Edit parent issue","description":"Change the parent issue","defaultBinding":"Alt+Shift+P"},"issue-viewer:edit-security-alert":{"name":"Add or change security alert","description":"Add or change a security alert related to the current issue","featureFlag":"code_scanning_alert_tracking_links_phase_2"},"issue-viewer:edit-title-submit":{"name":"Save","description":"Submit changes made to an issue\'s title","defaultBinding":"Enter"},"issue-viewer:mark-blocked-by":{"name":"Add or change blocked by","description":"Add or change an issue that blocks the current issue","defaultBinding":"b b"},"issue-viewer:mark-blocking":{"name":"Add or change blocking","description":"Add or change an issue that is blocked by the current issue","defaultBinding":"b x"},"issues-react:focus-next-issue":{"name":"Focus next issue","description":"Move focus to the next issue in the list, or the first if none are focused","defaultBinding":"j"},"issues-react:focus-previous-issue":{"name":"Focus previous issue","description":"Move focus to the previous issue in the list","defaultBinding":"k"},"item-pickers:open-assignees":{"name":"Open assignees panel","description":"Open panel to select assignees","defaultBinding":"a"},"item-pickers:open-author":{"name":"Open author panel","description":"Open panel to select author","defaultBinding":"u"},"item-pickers:open-development":{"name":"Open development panel","description":"Open panel to create or link a pull request","defaultBinding":"d"},"item-pickers:open-fields":{"name":"Open fields panel","description":"Open panel to select custom fields","defaultBinding":"f"},"item-pickers:open-issue-type":{"name":"Open issue type panel","description":"Open panel to select issue type","defaultBinding":"t"},"item-pickers:open-labels":{"name":"Open labels panel","description":"Open panel to select labels","defaultBinding":"l"},"item-pickers:open-milestone":{"name":"Open milestone panel","description":"Open panel to select milestone","defaultBinding":"m"},"item-pickers:open-projects":{"name":"Open projects panel","description":"Open panel to select projects","defaultBinding":"p"},"list-view-items-issues-prs:open-focused-item":{"name":"Open focused item","description":"Open the currently focused item","defaultBinding":"o"},"list-view-items-issues-prs:toggle-focused-item-selection":{"name":"Toggle focused item selection","description":"Toggle the selection state of the currently focused item for bulk actions","defaultBinding":"x"},"list-views:open-manage-item-dialog":{"name":"Open manage item dialog","defaultBinding":"Mod+Shift+U","description":"Open a dialog to manage the currently focused item"},"projects:save-form":{"name":"Save","description":"Submit the currently focused form","defaultBinding":"Mod+Enter"},"projects:save-view":{"name":"Save view","description":"Save any unsaved changes to the current project view","defaultBinding":"Mod+s"},"pull-request-files-changed:collapse-expand-comments":{"name":"Toggle comments","description":"Toggle between collapsed and expanded comments","defaultBinding":"i"},"pull-request-files-changed:focus-file-tree-filter":{"name":"Focus file tree filter","description":"Open the file tree and focus the filter input","defaultBinding":"t"},"pull-request-files-changed:go-to-next-commit":{"name":"Go to next commit","description":"Navigate to the next commit in the commit range","defaultBinding":"n"},"pull-request-files-changed:go-to-previous-commit":{"name":"Go to previous commit","description":"Navigate to the previous commit in the commit range","defaultBinding":"p"},"pull-request-files-changed:open-commits-list":{"name":"Open commit selector","description":"Open the commit selector dialog","defaultBinding":"c"},"pull-request-files-changed:submit-review":{"name":"Submit review","description":"Submit the current review","defaultBinding":"Mod+Enter"},"pull-requests-conversations:submit-comment-and-review":{"name":"Submit comment and review","description":"Submit the new comment and any pending review comments","defaultBinding":"Mod+Shift+Enter"},"pull-requests-diff-file-tree:focus-file-tree":{"name":"Focus file tree","description":"Move focus to the file tree","defaultBinding":"Mod+F6"},"pull-requests-diff-view:close-find":{"name":"Close find","description":"Close the find widget","defaultBinding":"Escape"},"pull-requests-diff-view:copy-anchor-link":{"name":"Copy link","description":"Copy link to the current line","defaultBinding":"Mod+Alt+y"},"pull-requests-diff-view:copy-code":{"name":"Copy","description":"Copy the code for the current line(s)","defaultBinding":"Mod+c"},"pull-requests-diff-view:jump-to-next-result":{"name":"Jump to next result","description":"Move to the next search result","defaultBinding":"Enter"},"pull-requests-diff-view:jump-to-next-result-alternate":{"name":"Jump to next result","description":"Move to the next search result","defaultBinding":"Mod+g"},"pull-requests-diff-view:jump-to-previous-result":{"name":"Jump to previous result","description":"Move to the previous search result","defaultBinding":"Shift+Enter"},"pull-requests-diff-view:jump-to-previous-result-alternate":{"name":"Jump to previous result","description":"Move to the previous search result","defaultBinding":"Mod+Shift+G"},"pull-requests-diff-view:open-find":{"name":"Open find","description":"Open the find widget","defaultBinding":"Mod+f"},"pull-requests-diff-view:quote-reply":{"name":"Quote reply","description":"Reply to a comment with quoted text","defaultBinding":"r"},"pull-requests-diff-view:start-conversation-current":{"name":"Add comment on line","description":"Add a comment on the current line"},"pull-requests-diff-view:submit-comment-and-review":{"name":"Submit comment and review","description":"Submit the new comment and any pending review comments","defaultBinding":"Mod+Shift+Enter"},"react-sandbox:example-command":{"name":"React Sandbox example command","description":"Do something","defaultBinding":"Mod+Shift+Enter"},"repositories:go-to-actions":{"name":"Go to actions","description":"Navigate to the current repository\'s actions tab","defaultBinding":"g a","featureFlag":"global_nav_ui_commands"},"repositories:go-to-agents":{"name":"Go to agents","description":"Navigate to the current repository\'s AI agents tab","defaultBinding":"g e","featureFlag":"global_nav_ui_commands"},"repositories:go-to-code":{"name":"Go to code","description":"Navigate to the current repository\'s code tab","defaultBinding":"g c","featureFlag":"global_nav_ui_commands"},"repositories:go-to-discussions":{"name":"Go to discussions","description":"Navigate to the current repository\'s discussions tab","defaultBinding":"g g","featureFlag":"global_nav_ui_commands"},"repositories:go-to-insights":{"name":"Go to insights","description":"Navigate to the current repository\'s insights tab","featureFlag":"global_nav_ui_commands"},"repositories:go-to-issues":{"name":"Go to issues","description":"Navigate to the current repository\'s issues tab","defaultBinding":"g i","featureFlag":"global_nav_ui_commands"},"repositories:go-to-models":{"name":"Go to models","description":"Navigate to the current repository\'s AI models tab","defaultBinding":"g m","featureFlag":"global_nav_ui_commands"},"repositories:go-to-projects":{"name":"Go to projects","description":"Navigate to the current repository\'s projects tab","defaultBinding":"g b","featureFlag":"global_nav_ui_commands"},"repositories:go-to-pull-requests":{"name":"Go to pull requests","description":"Navigate to the current repository\'s pull requests tab","defaultBinding":"g p","featureFlag":"global_nav_ui_commands"},"repositories:go-to-security":{"name":"Go to security","description":"Navigate to the current repository\'s security tab","defaultBinding":"g s","featureFlag":"global_nav_ui_commands"},"repositories:go-to-settings":{"name":"Go to settings","description":"Navigate to the current repository\'s settings tab","featureFlag":"global_nav_ui_commands"},"repositories:go-to-wiki":{"name":"Go to wiki","description":"Navigate to the current repository\'s wiki tab","defaultBinding":"g w","featureFlag":"global_nav_ui_commands"},"repository-label:cancel-save-label":{"name":"Cancel","description":"Cancel out of editing a label","defaultBinding":"Escape"},"repository-label:save-label-submit":{"name":"Create label","description":"Submit changes made to a label","defaultBinding":"Mod+Enter"},"sub-issues:add-existing-issue":{"name":"Add existing issue","description":"Add an existing issue as a sub-issue","defaultBinding":"Alt+Shift+A"},"sub-issues:create-sub-issue":{"name":"Create sub-issue","description":"Create a new sub-issue","defaultBinding":"Alt+Shift+C"},"ui-commands:conflicting-chord":{"name":"Conflicting Chord","description":"This is just a test chord to test when there is a conflict","defaultBinding":"Control+Shift+Enter"},"ui-commands:flagged-command":{"name":"Flagged command","description":"This command is flagged","defaultBinding":"a","featureFlag":"test_feature"},"ui-commands:single-key":{"name":"Single-key","description":"This is test command for a single-key keybinding","defaultBinding":"a"},"ui-commands:test-chord":{"name":"Test chord","description":"This is just a test chord for unit testing purposes","defaultBinding":"Control+Shift+Enter"},"ui-commands:test-sequence":{"name":"Test sequence","description":"This is just a test sequence for unit testing purposes","defaultBinding":"g q"},"workspace-editor:escape-editor":{"name":"Move focus out of editor","description":"Move focus out of the editor to other elements","defaultBinding":"Mod+m"},"workspace-editor:escape-editor--mac":{"name":"Move focus out of editor","description":"Move focus out of the editor to other elements","defaultBinding":"Alt+Tab"},"workspace-editor:toggle-file-tree-pane":{"name":"Toggle file tree pane","description":"Show or hide the file tree pane","defaultBinding":"Mod+b"}}}'),r=new Set(Object.keys(o)),l={is:e=>r.has(e),getServiceId:e=>e.split(":")[0]},d=e=>{let t=o[e];return!t?.featureFlag||(0,n.G7)(t.featureFlag)?t:void 0},c=e=>a[e],u=e=>{let t=d(e);return t?.defaultBinding?(0,s.SK)(t.defaultBinding).map(s.rd):[]},m=e=>u(e)[0],p=e=>{let t=[];for(let i of e)for(let e of u(i))t.push([i,e]);return t}},70056(e,t,i){i.d(t,{N5:()=>M,eY:()=>s.eY,LU:()=>s.LU,cQ:()=>E,tL:()=>T,hh:()=>S,ak:()=>w,Vr:()=>C});var n=i(47314),s=i(69807),o=i(74848),a=i(16522),r=i(18990),l=i(96540),d=i(8204),c=i(66743);let u={TYPE:"command.trigger",send(e){(0,c.BI)(u.TYPE,e)}};function m(e,t){var i;let n,o;u.send({app_name:"ui-commands",command_id:e.commandId,trigger_type:t instanceof KeyboardEvent?"keybinding":"click",target_element_html:t.target instanceof HTMLElement?(n=(i=t.target).tagName.toLowerCase(),o=Array.from(i.attributes).map(e=>`${e.name}="${e.value.replaceAll('"','\\"')}"`).join(" "),`<${n}${o?` ${o}`:""}>`):void 0,keybinding:(0,s.LU)(e.commandId)})}let p=new Map;function g(e,t){let i,o,r,d=(0,a.c)(5);d[0]===Symbol.for("react.memo_cache_sentinel")?(i=new Map,d[0]=i):i=d[0];let c=i,u="global"===e?p:c;d[1]!==t||d[2]!==u?(o=()=>{for(let[e,i]of(0,s.hq)(n.J.keys(t))){let t=u.get(i)?.filter(t=>t!==e)??[];t.length&&console.warn(`The keybinding (${i}) for the "${e}" command conflicts with the keybinding for the already-registered command(s) "${t.join(", ")}". This may result in unpredictable behavior.`),u.set(i,t.concat(e))}return()=>{for(let[e,i]of(0,s.hq)(n.J.keys(t))){let t=function(e,t){let i=!1;return e.filter(e=>e!==t||!!i||(i=!0,!1))}(u.get(i)??[],e);t?.length?u.set(i,t):u.delete(i)}}},r=[t,u],d[1]=t,d[2]=u,d[3]=o,d[4]=r):(o=d[3],r=d[4]),(0,l.useEffect)(o,r)}var f=i(98795),h=i(39423);function v(e,t,i){let n,o,r,d,c=(0,a.c)(9);c[0]!==i?(n=void 0===i?{}:i,c[0]=i,c[1]=n):n=c[1];let{triggerOnDefaultPrevented:u}=n,m=void 0!==u&&u;c[2]===Symbol.for("react.memo_cache_sentinel")?(o=new f.KK,c[2]=o):o=c[2];let p=o;if(c[3]!==e){for(let[t,i]of(r=new Map,(0,s.hq)(e)))r.set(i,t);c[3]=e,c[4]=r}else r=c[4];let g=r,v=(0,l.useRef)(null);return c[5]!==g||c[6]!==t||c[7]!==m?(d=e=>{let i="nativeEvent"in e?e.nativeEvent:e;if(!m&&i.defaultPrevented||v.current===i)return;if(v.current=i,!(0,h.$$)(i))return void p.reset();p.registerKeypress(i);let n=g.get(p.sequence)??g.get((0,f.Vy)(i));!n||(t(n,i)??!0)&&(p.reset(),e.preventDefault(),e.stopPropagation(),i.stopImmediatePropagation())},c[5]=g,c[6]=t,c[7]=m,c[8]=d):d=c[8],d}class b extends Event{commandId;domEvent;constructor(e,t){super(y),this.commandId=e,this.domEvent=t}}let y="ui-command-trigger",w=({commands:e})=>{let t=(0,l.useRef)(null),i=(0,l.useCallback)((i,s)=>{if(s instanceof KeyboardEvent){var o;let e,i=(e=[...document.querySelectorAll('dialog:modal, [role="dialog"][aria-modal="true"]')].filter(e=>e.childNodes.length>0&&function e(t){if(t.clientHeight>0)return!0;for(let i of t.children)if(e(i))return!0;return!1}(e))).length?e[e.length-1]:null;if(i&&!((o=t.current)&&i.contains(o)))return!1}let a=e[i];if(!a)return!1;{let e=new n.k(i);try{a(e)}finally{m(e,s)}}},[e]),s=(0,l.useEffectEvent)(i),a=(0,l.useEffectEvent)(v(n.J.keys(e),i));return g("global",e),(0,d.J)(e),(0,l.useEffect)(()=>{let e=e=>{if(!(e instanceof b))return;let{commandId:t,domEvent:i}=e;s(t,i)};return document.addEventListener("keydown",a),document.addEventListener(y,e),()=>{document.removeEventListener("keydown",a),document.removeEventListener(y,e)}},[]),(0,o.jsx)("div",{ref:t,className:"d-none"})};w.displayName="GlobalCommands";let k=(0,l.createContext)({triggerCommand(e,t,i=!1){if(i)return!1;document.dispatchEvent(new b(e,t))},registerLimitedKeybindingScope:()=>{}});k.displayName="CommandsContext";let B=()=>(0,l.use)(k);var _=i(79076);let S=e=>{let t,i,n,r,l=(0,a.c)(8);l[0]!==e?({commandId:t,...i}=e,l[0]=e,l[1]=t,l[2]=i):(t=l[1],i=l[2]),l[3]!==t?(n=(0,s.LU)(t),l[3]=t,l[4]=n):n=l[4];let d=n;return l[5]!==d||l[6]!==i?(r=d?(0,o.jsx)(_.U,{keys:d,...i}):null,l[5]=d,l[6]=i,l[7]=r):r=l[7],r};S.displayName="CommandKeybindingHint";let C=e=>{let t,i,n,l,d,c,u,m,p,g,f,h,v,b=(0,a.c)(29);b[0]!==e?({commandId:i,children:t,description:n,leadingVisual:d,trailingVisual:c,...l}=e,b[0]=e,b[1]=t,b[2]=i,b[3]=n,b[4]=l,b[5]=d,b[6]=c):(t=b[1],i=b[2],n=b[3],l=b[4],d=b[5],c=b[6]),b[7]!==i?(u=(0,s.fL)(i),b[7]=i,b[8]=u):u=b[8];let y=u,{triggerCommand:w}=B();return y?(b[9]!==i||b[10]!==w?(m=e=>w(i,e.nativeEvent),b[9]=i,b[10]=w,b[11]=m):m=b[11],b[12]!==t||b[13]!==y?(p=t??(0,o.jsx)("span",{children:y.name}),b[12]=t,b[13]=y,b[14]=p):p=b[14],b[15]!==n?(g=n?(0,o.jsx)(r.l.Description,{truncate:!0,children:n}):null,b[15]=n,b[16]=g):g=b[16],b[17]!==d?(f=d?(0,o.jsx)(r.l.LeadingVisual,{children:d}):null,b[17]=d,b[18]=f):f=b[18],b[19]!==i||b[20]!==c?(h=null!==c&&(0,o.jsxs)(r.l.TrailingVisual,{children:[(0,o.jsx)("span",{className:"sr-only",children:"("}),c??(0,o.jsx)(S,{commandId:i,format:"condensed"}),(0,o.jsx)("span",{className:"sr-only",children:")"})]}),b[19]=i,b[20]=c,b[21]=h):h=b[21],b[22]!==l||b[23]!==m||b[24]!==p||b[25]!==g||b[26]!==f||b[27]!==h?(v=(0,o.jsxs)(r.l.Item,{...l,onSelect:m,children:[p,g,f,h]}),b[22]=l,b[23]=m,b[24]=p,b[25]=g,b[26]=f,b[27]=h,b[28]=v):v=b[28],v):null};C.displayName="CommandActionListItem",C.displayName="ActionList.CommandItem";var x=i(21373);let q=e=>{let t,i,n,s,r=(0,a.c)(6),{commandId:l}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,o.jsx)("span",{className:"sr-only",children:"("}),r[0]=t):t=r[0],r[1]!==l?(i=(0,o.jsx)(S,{commandId:l,format:"condensed"}),r[1]=l,r[2]=i):i=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)("span",{className:"sr-only",children:")"}),r[3]=n):n=r[3],r[4]!==i?(s=(0,o.jsxs)(o.Fragment,{children:[t,i,n]}),r[4]=i,r[5]=s):s=r[5],s};q.displayName="ButtonKeybindingHint";let E=e=>{let t,i,n,r,l,d,c,u,m,p,g,f=(0,a.c)(24);f[0]!==e?({ref:l,commandId:i,children:t,trailingVisual:c,showKeybindingHint:d,onClick:n,...r}=e,f[0]=e,f[1]=t,f[2]=i,f[3]=n,f[4]=r,f[5]=l,f[6]=d,f[7]=c):(t=f[1],i=f[2],n=f[3],r=f[4],l=f[5],d=f[6],c=f[7]);let h=void 0!==d&&d;f[8]!==i?(u=(0,s.fL)(i),f[8]=i,f[9]=u):u=f[9];let v=u,{triggerCommand:b}=B();if(!v)return null;f[10]!==i||f[11]!==n||f[12]!==b?(m=e=>{n?.(e),e.defaultPrevented||b(i,e.nativeEvent)},f[10]=i,f[11]=n,f[12]=b,f[13]=m):m=f[13],f[14]!==i||f[15]!==h||f[16]!==c?(p=c??(h?(0,o.jsx)(q,{commandId:i}):void 0),f[14]=i,f[15]=h,f[16]=c,f[17]=p):p=f[17];let y=t??v.name;return f[18]!==r||f[19]!==l||f[20]!==m||f[21]!==p||f[22]!==y?(g=(0,o.jsx)(x.Q,{...r,onClick:m,trailingVisual:p,ref:l,children:y}),f[18]=r,f[19]=l,f[20]=m,f[21]=p,f[22]=y,f[23]=g):g=f[23],g};E.displayName="CommandButton",E.displayName="CommandButton";var O=i(26108);let M=({ref:e,commandId:t,"aria-label":i,onClick:n,icon:a,...r})=>{let l=(0,s.fL)(t),{triggerCommand:d}=B();return l?(0,o.jsx)(O.K,{"aria-label":i??l.name,onClick:e=>{n?.(e),e.defaultPrevented||d(t,e.nativeEvent)},icon:a,ref:e,keybindingHint:(0,s.LU)(t),...r}):null};M.displayName="CommandIconButton",M.displayName="CommandIconButton";var I=i(4485),j=i(53449),A=i(21513);let N=new Map,L=({ref:e,commands:t,...i})=>{let s=(0,j.M)(t),a=B(),r=(0,l.useCallback)((e,t,i=!1)=>{let o=s.current[e];if(!o)return a.triggerCommand(e,t,i);{let i=new n.k(e);try{o(i)}finally{m(i,t)}}},[s,a]);g("scoped",t),(0,d.J)(t);let[c,u]=(0,l.useState)(N),p=(0,l.useCallback)((e,t)=>u(i=>{let n=i.get(e);return t.length===n?.length&&t.every((e,t)=>n[t]===e)?i:new Map([...i,[e,t]])}),[]),f=(0,l.useMemo)(()=>{let e=new Set(Array.from(c.values()).flat());return n.J.keys(t).filter(i=>void 0!==t[i]&&!e.has(i))},[t,c]),h=(0,l.useMemo)(()=>({triggerCommand:r,registerLimitedKeybindingScope:p}),[r,p]);return(0,o.jsx)(k,{value:h,children:(0,o.jsx)(F,{commandIds:f,...i,ref:e})})};L.displayName="ScopedCommands";let F=e=>{let t,i,n,s,r,d,c,u,m,p,g,f,h=(0,a.c)(23);h[0]!==e?({ref:n,commandIds:i,as:t,limited:r,triggerOnDefaultPrevented:d,...s}=e,h[0]=e,h[1]=t,h[2]=i,h[3]=n,h[4]=s,h[5]=r,h[6]=d):(t=h[1],i=h[2],n=h[3],s=h[4],r=h[5],d=h[6]);let b=void 0!==r&&r,y=B();h[7]!==b||h[8]!==y?(c=(e,t)=>y.triggerCommand(e,t,b),h[7]=b,h[8]=y,h[9]=c):c=h[9];let w=c;h[10]!==d?(u={triggerOnDefaultPrevented:d},h[10]=d,h[11]=u):u=h[11];let k=v(i,w,u),_=(0,I._)(k),S=(0,l.useRef)(null);(0,A.T)(n??null,S);let C=(0,l.useEffectEvent)(_.onKeyDown);h[12]!==C?(m=()=>{let e=S.current;if(e)return e.addEventListener("keydown",C),()=>e.removeEventListener("keydown",C)},h[12]=C,h[13]=m):m=h[13],h[14]===Symbol.for("react.memo_cache_sentinel")?(p=[],h[14]=p):p=h[14],(0,l.useEffect)(m,p),h[15]!==t||h[16]!==s?(g=void 0!==t||void 0!==s.className?void 0:{display:"contents"},h[15]=t,h[16]=s,h[17]=g):g=h[17];let x=g,q=t??"div";return h[18]!==q||h[19]!==_||h[20]!==s||h[21]!==x?(f=(0,o.jsx)(q,{style:x,...s,..._,ref:S}),h[18]=q,h[19]=_,h[20]=s,h[21]=x,h[22]=f):f=h[22],f};F.displayName="KeyboardScope";let G=e=>{let t,i,n,s,r,d,c,u,m=(0,a.c)(17);m[0]!==e?({ref:i,commandIds:t,...n}=e,m[0]=e,m[1]=t,m[2]=i,m[3]=n):(t=m[1],i=m[2],n=m[3]);let p=B(),g=(0,l.useId)();return m[4]!==t||m[5]!==p||m[6]!==g?(s=()=>p.registerLimitedKeybindingScope(g,t),r=[p,t,g],m[4]=t,m[5]=p,m[6]=g,m[7]=s,m[8]=r):(s=m[7],r=m[8]),(0,l.useEffect)(s,r),m[9]!==p||m[10]!==g?(d=()=>()=>p.registerLimitedKeybindingScope(g,[]),c=[p,g],m[9]=p,m[10]=g,m[11]=d,m[12]=c):(d=m[11],c=m[12]),(0,l.useEffect)(d,c),m[13]!==t||m[14]!==i||m[15]!==n?(u=(0,o.jsx)(F,{limited:!0,commandIds:t,...n,ref:i}),m[13]=t,m[14]=i,m[15]=n,m[16]=u):u=m[16],u};G.displayName="LimitKeybindingScope";let T=Object.assign(L,{LimitKeybindingScope:G})},4485(e,t,i){i.d(t,{_:()=>r});var n=i(16522),s=i(63429),o=i(96540);let a=new Set(["enter","tab"]),r=e=>{let t,i,r,l=(0,n.c)(5),d=(0,o.useRef)(!1);l[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{"compositionstart"===e.type&&(d.current=!0),"compositionend"===e.type&&(d.current=!1)},l[0]=t):t=l[0];let c=t;l[1]!==e?(i=t=>{let i=t.nativeEvent,n=i&&"isComposing"in i&&i.isComposing,o="Process"===t.key;if((0,s.U0)()&&229===t.keyCode)return;let r=d.current||n||o;a.has(t.key.toLowerCase())&&r||e(t)},l[1]=e,l[2]=i):i=l[2];let u=i;return l[3]!==u?(r={onCompositionStart:c,onCompositionEnd:c,onKeyDown:u},l[3]=u,l[4]=r):r=l[4],r}},53449(e,t,i){i.d(t,{M:()=>o});var n=i(16522),s=i(96540);function o(e){let t,i,o=(0,n.c)(3),a=(0,s.useRef)(e);return o[0]!==e?(t=()=>{a.current=e},i=[e],o[0]=e,o[1]=t,o[2]=i):(t=o[1],i=o[2]),(0,s.useLayoutEffect)(t,i),a}}}]); //# sourceMappingURL=86065-3c4de58826a817ae-5b1ffe80bdba8438.js.map