efficient-shell 7.54.0 → 7.56.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.
Files changed (85) hide show
  1. package/README.md +17 -9
  2. package/dist/{Browser-ZSP7T7AA.js → Browser-6SOGC27E.js} +14 -14
  3. package/dist/{Calculator-5MVTWQWV.js → Calculator-Z6JA6D6Q.js} +12 -12
  4. package/dist/ConfirmDialog-ZWVAYCJQ.js +1 -0
  5. package/dist/{CurrencyConverter-VYC463F4.js → CurrencyConverter-XFICWUGP.js} +7 -7
  6. package/dist/{Documents-URKLA3VN.js → Documents-C7DJOE4M.js} +10 -10
  7. package/dist/Files-Q5HVPRVK.js +87 -0
  8. package/dist/{Notepad-HWM57JW5.js → Notepad-3XPZIKLE.js} +11 -11
  9. package/dist/PdfViewer-NW6NQ6NP.js +1 -0
  10. package/dist/{PomodoroTimer-MXKIOXM7.js → PomodoroTimer-ZEPPQYCU.js} +64 -64
  11. package/dist/{Preview-AP3AOSFW.js → Preview-HV2KJRRI.js} +46 -46
  12. package/dist/{Sidebar-CWUGH47O.js → Sidebar-LKER76LS.js} +36 -36
  13. package/dist/Spreadsheet-URLX55NC.js +37 -0
  14. package/dist/{Stock-S5HULMS7.js → Stock-M6GGO7XF.js} +3 -3
  15. package/dist/{Weather-5GWQJ4VD.js → Weather-VU7VGUDO.js} +20 -20
  16. package/dist/{WorldClock-3UZK5M7S.js → WorldClock-QAMG23XA.js} +6 -6
  17. package/dist/ai/index.js +18 -18
  18. package/dist/apps/index.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/brand.css +1 -1
  21. package/dist/chunk-2H3XIWVB.js +14 -0
  22. package/dist/{chunk-K73JEGD5.js → chunk-4AHFABYE.js} +9 -9
  23. package/dist/{chunk-SGIM64RL.js → chunk-54LUMK66.js} +1 -1
  24. package/dist/{chunk-EQZ7DF3J.js → chunk-56DUNIS6.js} +19 -19
  25. package/dist/{chunk-FDZP4YPX.js → chunk-5H3MONF5.js} +1 -1
  26. package/dist/{chunk-BMKGFJR7.js → chunk-63RTIL66.js} +1 -1
  27. package/dist/{chunk-TXLJEUYC.js → chunk-6ST5FSQF.js} +4 -4
  28. package/dist/{chunk-UB2IV2II.js → chunk-7ZYZDQ5V.js} +7 -7
  29. package/dist/chunk-BLMDTJOK.js +1 -0
  30. package/dist/{chunk-HXU6LDQB.js → chunk-DCMTTLLV.js} +4 -4
  31. package/dist/{chunk-7SNZKUCI.js → chunk-DRQF3Z2O.js} +1 -1
  32. package/dist/{chunk-3ZZ2UPNR.js → chunk-EVSRRTEN.js} +1 -1
  33. package/dist/{chunk-6HJPHOUV.js → chunk-FP4N53XC.js} +1 -1
  34. package/dist/{chunk-YDDG7MXB.js → chunk-GEHGFIQ6.js} +1 -1
  35. package/dist/{chunk-LBZF6GCK.js → chunk-H4SBJXBL.js} +1 -1
  36. package/dist/{chunk-O5R4V3KH.js → chunk-HCC7EJUD.js} +1 -1
  37. package/dist/{chunk-ANYZYIEY.js → chunk-J4NEE4AO.js} +27 -27
  38. package/dist/{chunk-VOUSFISE.js → chunk-J5USRYOM.js} +17 -17
  39. package/dist/{chunk-S5XQ5DBA.js → chunk-KNOKDBRY.js} +9 -9
  40. package/dist/{chunk-SFO2M76G.js → chunk-L37CPWIB.js} +13 -13
  41. package/dist/chunk-MRQLTNG6.js +1017 -0
  42. package/dist/{chunk-R42GJPQL.js → chunk-NKOABAWD.js} +1 -1
  43. package/dist/{chunk-2ZSSYQFK.js → chunk-OWXCXFL6.js} +2 -2
  44. package/dist/chunk-QGMHTEJ2.js +21 -0
  45. package/dist/{chunk-4FQTMGCA.js → chunk-T3YRSGP6.js} +2 -2
  46. package/dist/chunk-T6D5LTQR.js +1 -0
  47. package/dist/{chunk-YT4B3NSV.js → chunk-TAUIAKU3.js} +4 -3
  48. package/dist/chunk-WFQIEKM3.js +106 -0
  49. package/dist/{chunk-OUURHOIS.js → chunk-YIIFH7CK.js} +1 -1
  50. package/dist/file-intake/index.js +1 -1
  51. package/dist/i18n/index.d.ts +1 -1
  52. package/dist/icons/efficient-looks.js +19 -17
  53. package/dist/icons/efficient.d.ts +4 -2
  54. package/dist/icons/efficient.js +95 -94
  55. package/dist/icons/iconoir.js +4 -1
  56. package/dist/icons/index.d.ts +1 -1
  57. package/dist/icons/index.js +1 -1
  58. package/dist/icons/lucide.js +6 -1
  59. package/dist/icons/phosphor.js +2 -1
  60. package/dist/icons/tabler.js +8 -1
  61. package/dist/{index-EuZDrQc_.d.ts → index-pjuTiAkS.d.ts} +5 -3
  62. package/dist/index.d.ts +21 -9
  63. package/dist/index.js +297 -297
  64. package/dist/locales/zh-Hans.d.ts +1 -1
  65. package/dist/locales/zh-Hans.js +1 -1
  66. package/dist/map/index.js +8 -8
  67. package/dist/markdown/index.js +1 -1
  68. package/dist/page-tabs/index.js +5 -5
  69. package/dist/pdf/index.js +1 -1
  70. package/dist/{strings-IB8gUtul.d.ts → strings-C7ZZ22PO.d.ts} +4 -0
  71. package/dist/telemetry/index.js +1 -1
  72. package/dist/ui/index.d.ts +2 -2
  73. package/dist/ui/index.js +1 -1
  74. package/package.json +1 -1
  75. package/dist/ConfirmDialog-5LHOXDQS.js +0 -1
  76. package/dist/Files-HTROHCLI.js +0 -87
  77. package/dist/PdfViewer-EUW7YVAH.js +0 -1
  78. package/dist/Spreadsheet-2XAXIZ36.js +0 -37
  79. package/dist/chunk-2ZRV46PX.js +0 -108
  80. package/dist/chunk-3RSAW3BM.js +0 -21
  81. package/dist/chunk-FNR5SPQM.js +0 -10
  82. package/dist/chunk-HQLDTFAF.js +0 -1
  83. package/dist/chunk-NZBX24NL.js +0 -1
  84. package/dist/chunk-RC27X4SF.js +0 -1
  85. package/dist/chunk-VA4OTNJP.js +0 -1021
@@ -1,4 +1,4 @@
1
- import { a as ShellStrings } from '../strings-IB8gUtul.js';
1
+ import { a as ShellStrings } from '../strings-C7ZZ22PO.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
 
@@ -1 +1 @@
1
- import{formatPlain as e,formatGrouped as o,formatFixed as t,formatPercent as a}from"../chunk-C3QOHMR6.js";var i=[],n=/^[A-Za-z0-9]/,r=/[A-Za-z0-9]$/,l=e=>n.test(e)?` ${e}`:e,s=e=>r.test(e)?`${e} `:e,d=e=>s(l(e));function c(i="zh-Hans"){const n=o=>e(o,i),r=e=>o(e,i),c=(e,o)=>t(e,o,i),p=(e,o)=>a(e,o,i);return{window:{minimize:"最小化",restore:"还原",maximize:"最大化",windowed:"向下还原",pinOnTop:"置顶",unpin:"取消置顶",close:"关闭",windowSuffix:"窗口",prev:"上一条",next:"下一条",snapLayouts:"贴靠布局",snapLeft:"贴靠到左半屏",snapRight:"贴靠到右半屏",snapTopLeft:"贴靠到左上角",snapTopRight:"贴靠到右上角",snapBottomLeft:"贴靠到左下角",snapBottomRight:"贴靠到右下角"},taskbar:{closeWindow:"关闭窗口",offscreenHint:"此窗口位于屏幕之外,点击即可移回",offscreenDot:"位于屏幕之外,点击即可移回此窗口",expose:"窗口概览:以缩略图显示所有打开的窗口",addToDesktop:"添加到桌面",removeFromDesktop:"从桌面移除",minimizeAllWindows:"全部最小化",restoreAllWindows:"全部还原",closeAllWindows:"全部关闭"},logout:{goodbye:"再见",seeYou:"下次再见"},about:{aboutPrefix:"关于",thisApp:"本应用",openSourceLicenses:"开源许可",whatsNew:"更新内容",noChangelog:"暂无更新日志。"},table:{empty:"暂无数据",loading:"加载中",selectAll:"选择全部行",selectRow:"选择此行"},select:{none:"— 无 —",noMatches:"无匹配项",allSelected:"已选择全部选项",clear:"清除所选",clearAll:"全部清除",changed:"已更改",selectedCount:e=>`已选 ${n(e)} 项`,remove:"移除",removeItem:e=>`移除${l(e)}`},notifications:{title:"通知",markAllRead:"全部标为已读",dnd:"勿扰模式",dndOn:"勿扰模式已开启",caughtUp:"全部已读",empty:"暂无通知",viewAll:"查看全部通知",cardLabel:"通知",dismiss:"关闭通知"},form:{errorSummaryTitle:"存在以下问题"},help:{title:"帮助",searchPlaceholder:"搜索帮助…",empty:"暂无帮助文章。",noResults:"没有符合搜索条件的文章。",loading:"加载中",pickArticle:"请从左侧选择一篇帮助文章。",noBody:"这篇文章暂无内容。",draft:"草稿",newArticle:"+ 新建",edit:"编辑"},update:{available:"有新版本可用。",refreshNow:"立即刷新"},pageTabs:{label:"已打开的页面",close:"关闭",closeTab:e=>`关闭${l(e)}`,closeOthers:"关闭其他标签页",closeRight:"关闭右侧标签页",closeAll:"关闭全部标签页",unsaved:"有未保存的更改",copy:e=>`复制${l(e)}`,copied:"已复制",tabMenu:"窗口菜单",discardTitle:"放弃未保存的更改?",discardOne:"此页面有尚未保存的更改。仍要关闭吗?",discardMany:"个页面有尚未保存的更改。仍要关闭吗?",discardCount:e=>`有 ${n(e)} 个页面的更改尚未保存。仍要关闭吗?`,discardConfirm:"放弃并关闭",keepEditing:"继续编辑"},dialog:{close:"关闭",cancel:"取消",ok:"确定",confirmTitle:"确认",destructiveTitle:"确认操作",destructiveCancel:"返回",destructiveConfirm:"删除",typeToConfirm:e=>`请输入 ${e} 以确认:`,promptTitle:"请输入内容"},calendar:{previousMonth:"上个月",nextMonth:"下个月",previousYear:"上一年",nextYear:"下一年",previousYears:"上一组年份",nextYears:"下一组年份",monthPanel:"选择月份",yearPanel:"选择年份",chooseMonth:e=>`选择月份,当前为${l(e)}`,chooseYear:e=>`选择年份,当前为 ${e} 年`},datePicker:{placeholder:"选择日期",dialog:"选择日期",clear:"清除",today:"今天",required:"必填"},dateRange:{placeholder:"日期范围",clearRange:"清除日期范围",dialog:"日期范围",from:"从",to:"至",start:"开始日期",end:"结束日期",fromOnly:e=>`自 ${e} 起`,toOnly:e=>`截至 ${e}`,range:(e,o)=>`${e} 至 ${o}`,required:"必填",last2Weeks:"过去 2 周",lastMonth:"上个月",last3Months:"过去 3 个月",last6Months:"过去 6 个月",last12Months:"过去 12 个月",lastHeading:"过去",last2WeeksShort:"2 周",lastMonthShort:"上个月",last3MonthsShort:"3 个月",last6MonthsShort:"6 个月",last12MonthsShort:"12 个月",custom:"自定义",clear:"清除",cancel:"取消",apply:"应用"},pagination:{label:"分页",first:"第一页",previous:"上一页",next:"下一页",last:"最后一页"},list:{selected:e=>`已选 ${n(e)} 项`,selectedNotShown:(e,o)=>`已选 ${n(e)} 项,${n(o)} 项未显示`,allLoaded:(e,o)=>`已加载全部 ${r(e)} ${o}`,count:(e,o)=>`共 ${r(e)} ${o}`,loadedOf:(e,o,t)=>`已加载 ${r(e)} / ${r(o)} ${t}`,loadingMore:"正在加载更多",loadError:"无法加载此列表",loadErrorMessage:"获取这些记录时出错。请检查网络连接后重试。",retry:"重试"},kanban:{loading:"加载中",empty:"暂无条目。",dropHere:"拖放到此处",addItem:"添加条目"},files:{attach:"添加附件",drop:"松开即可添加附件",remove:e=>`移除${l(e)}`,chooseMany:"选择文件",chooseOne:"选择文件",dragMany:"或拖放到此处",dragOne:"或拖放到此处",notAccepted:(e,o)=>`${s(e)}的文件类型不受支持${o?`(${o})`:""}`,tooLarge:(e,o,t)=>`${s(e)}大小为 ${o},上限为 ${t}`,tooMany:(e,o)=>`未添加${l(e)}:最多只能添加 ${n(o)} 个文件`,bytes:e=>`${n(e)} B`,kilobytes:e=>`${n(e)} KB`,megabytes:e=>`${c(e,1)} MB`},media:{uploadImage:"上传图片",uploadVideo:"上传视频",uploadFile:"上传文件",upload:"上传媒体",cta:"从媒体库选择或上传",replace:"替换",remove:"移除",uploading:"上传中",cover:"封面",add:"添加",addMedia:"添加媒体",empty:"暂无媒体。",removeItem:e=>`移除${l(e)}`,reorder:(e,o,t)=>`${e},第 ${n(o)} 项,共 ${n(t)} 项。使用方向键调整顺序。`},brandAsset:{save:(e,o)=>`保存${l(o)}`,remove:(e,o)=>`移除${l(o)}`,discard:"放弃更改",saveFailed:(e,o)=>`无法保存${l(o)}。`,removeFailed:(e,o)=>`无法移除${l(o)}。`,region:(e,o)=>`${s(o)}的${e}`,usedFor:e=>`用于${l(e)}。`,previews:e=>`${s(e)}预览`,preview:"预览",alt:(e,o)=>`${s(e)}${o}`},copy:{copy:"复制",copyLabel:e=>`复制${l(e)}`,copied:"已复制",copyValue:e=>`复制${l(e)}`,copiedValue:"已复制!",copiedLabel:e=>`已复制${l(e)}`,failed:"无法复制到剪贴板"},keypad:{backspace:"退格",enter:"确认"},banner:{dismiss:"关闭"},transfer:{uploading:"上传中",error:"出错",retry:"重试",dismiss:"关闭",cancel:"取消",cancelVerb:e=>`取消${l(String(e).replace(/中$/,""))}`},badge:{remove:"移除",removeItem:e=>`移除${l(e)}`},breadcrumbs:{label:"面包屑导航",hidden:"已隐藏的层级"},emptyState:{message:"暂无内容。"},errors:{notFound:"找不到页面",notFoundBody:"您访问的页面不存在或已被移动。",forbidden:"访问被拒绝",forbiddenBody:"您没有查看此页面的权限。",noAccess:"您无权访问此内容",serverError:"出错了",serverErrorBody:"发生意外错误,请重试。",retry:"重试",details:"错误详情"},search:{placeholder:"搜索…",escBadge:"ESC",searching:"搜索中",noResults:"未找到结果。",minChars:e=>`请至少输入 ${n(e)} 个字符再搜索…`,navigate:"切换",open:"打开",close:"关闭",enterKey:"Enter",escKey:"Esc",recent:"最近",favorites:"收藏",actions:"操作",listLabel:"搜索结果",groupCount:(e,o)=>`${n(e)}${o?"+":""}`,groupLabel:(e,o,t)=>`${e},${n(o)}${t?"+":""} 项`,seeAll:e=>`查看全部${l(e)}`,searchFailed:"搜索失败,请检查网络连接后重试。",partialFailure:"部分结果未能加载。",tabKey:"Tab",nextGroup:"下一组"},grid:{selectAll:"全选",insertRowAbove:"在上方插入行",insertRowBelow:"在下方插入行",deleteRow:e=>`删除第 ${e} 行`,insertColumnLeft:"在左侧插入列",insertColumnRight:"在右侧插入列",deleteColumn:e=>`删除${d(e)}列`,resize:"拖动调整大小 · 双击自动适应",fill:"拖动填充"},sidebar:{resize:"拖动调整大小 · 双击重置"},resizeHandle:{label:"调整面板大小",hint:"拖动调整大小 · 双击重置"},number:{increase:"增加",decrease:"减少"},slider:{value:e=>`${s(e)}数值`},displayChips:{shown:"显示中",hidden:"已隐藏",shownHint:"显示中 · 点击隐藏",hiddenHint:"已隐藏 · 点击显示"},corners:{radius:"圆角半径",unit:"px",radiusMark:"R"},iconPicker:{button:(e,o)=>`${e}:${o}`},iconNames:{none:"无","arrow-right":"箭头","arrow-long-right":"长箭头","arrow-up-right":"右上箭头","chevron-right":"尖括号",external:"外部链接",cart:"购物车",bag:"购物袋",tag:"标签",email:"邮件",location:"位置",play:"播放",download:"下载",search:"搜索",car:"汽车"},widths:{column:e=>`第 ${e} 栏`,divider:(e,o)=>`第 ${e} 栏和第 ${o} 栏之间的分隔线`,dividerValue:(e,o,t,a)=>`第 ${e} 栏 ${p(o,0)},第 ${t} 栏 ${p(a,0)}`,dragHint:"拖动来调整栏宽",hint:(e,o)=>`输入宽度,或拖动分隔线。每栏不少于 ${p(o,0)}。`,reset:"恢复等宽"},color:{swatch:(e,o)=>`${e}:${o}`,none:"无",panel:e=>`${s(e)}选择器`,square:"饱和度和亮度",squareValue:(e,o)=>`饱和度 ${p(e,0)},亮度 ${p(o,0)}`,hue:"色相",hex:e=>`${s(e)}十六进制色值`,presets:"预设",clear:"无颜色"},imageFocus:{picture:(e,o)=>`${e}:${o}`,hint:"拖动图片上的圆点,或用方向键移动。按住 Shift 可移动更多。",noImage:"请先选择图片,目前还没有可设置焦点的图片。"},link:{linkType:"链接类型",address:"链接地址",addressPlaceholder:"链接(本站页面 /… 或 https://…)",unsafe:"请使用网址(https://…)、本站页面(/…)、mailto: 或 tel:。",unavailable:e=>`${e}(不可用)`,filter:"筛选",noFilter:"不筛选(全部产品)",value:"值",filterHint:"筛选项来自产品类型。只列出本站目录中有的值。",title:"链接",apply:"应用",cancel:"取消",remove:"移除",addLink:"添加链接",text:e=>`${s(e)}文字`,linkOf:(e,o)=>`${s(e)}链接:${o||"无"}`},textToolbar:{formatting:"格式",bold:"粗体",italic:"斜体",underline:"下划线",strike:"删除线",color:"颜色",link:"链接",sup:"上标",sub:"下标",alignment:"对齐",alignLeft:"左对齐",alignCenter:"居中",alignRight:"右对齐",alignJustify:"两端对齐",bullet:"项目符号列表",number:"编号列表",letterCase:"大小写",caseNone:"常规",caseUpper:"大写",caseLower:"小写"},tree:{empty:"暂无内容",dropHere:"拖放到此处",dragHint:"拖动以移动",moveHint:"按 Alt+向上键或 Alt+向下键可移动此项",insertHere:"在此处插入"},layout:{desktop:"桌面",sidebar:"侧边栏",switchToDesktop:"切换到桌面模式",switchToSidebar:"切换到侧边栏模式",collapseSidebar:"收起侧边栏",expandSidebar:"展开侧边栏",search:"搜索…",navLabel:"主菜单",openWindows:"已打开的窗口",pageResult:"页面",accountMenu:e=>`${s(e)}的账户菜单`,profile:"个人资料",notifications:"通知",reportIssue:"建议与问题反馈",signOut:"退出登录",signOutTitle:"退出登录",signOutMessage:"您确定要退出登录吗?重新登录后将重新打开所有窗口。",openMenu:"打开菜单",closeMenu:"关闭菜单",openTabs:"已打开的标签页",getTheApp:e=>`获取 ${e} 应用`,openApp:"打开",dismiss:"不再显示",deviceUsesSidebar:"此设备始终使用侧边栏布局。在电脑上登录时,您的选择仍然有效。",largerScreensOnly:"仅限较大屏幕",usedOnThisDevice:"此设备正在使用",back:"返回"},markdown:{screenshot:"截图"},severity:{success:"正常",warning:"警告",danger:"严重",unrecognised:e=>`未识别的严重级别${l(e)}`},meter:{noData:"无数据",warningAt:e=>`警告 ≥ ${n(e)}`,criticalAt:e=>`严重 ≥ ${n(e)}`,noReading:"无读数",noBudget:"无预算",ofBudget:e=>`预算的 ${e}`,budget:"预算",pace:"此刻应达到",hoursMinutes:(e,o)=>`${n(e)} 小时 ${n(o)} 分`,minutesSeconds:(e,o)=>`${n(e)} 分 ${n(o)} 秒`,seconds:e=>`${n(e)} 秒`},charts:{showTable:"以表格显示数据",loading:"正在加载图表数据",noData:"此时间段内无数据。",windowStart:"时间段起点",windowEnd:"时间段终点",window:(e,o,t)=>`时间段:正在显示 ${e} 至 ${o},共 ${n(t)} 个区间`,overIntervals:(e,o)=>`${e.join("、")},共 ${n(o)} 个区间`,acrossCategories:(e,o)=>`${e.join("、")},共 ${n(o)} 个类别`,acrossMeasures:(e,o)=>`${e.join("、")},共 ${n(o)} 项指标`,breakdown:(e,o)=>`${s(e)}的构成,共 ${n(o)} 个部分`,funnel:(e,o,t)=>`漏斗图,共 ${n(e)} 个阶段,从${d(o)}到${l(t)}`,radialTrack:e=>`${n(e)} 个类别,以同心环占比显示`,radialCycle:e=>`${n(e)} 个类别,按环形周期排列`,tableFrom:"来源",tableTo:"去向",tableItem:"项目",tableLevel:"层级",tableSeries:"系列",inBucket:e=>`此区间内共 ${e}`,inCategory:e=>`此类别内共 ${e}`,value:"数值",share:"占比",count:"数量",flow:"流量",totalFlow:"总流量",throughput:"通过量",open:"开盘",high:"最高",low:"最低",close:"收盘",maximum:"最大值",q3:"Q3",median:"中位数",q1:"Q1",minimum:"最小值",distribution:"分布",fiveNumber:(e,o)=>`${e}:${n(o)} 个类别的五数概括`,outliers:e=>`${n(e)} 个离群值超出须线范围`,price:"价格",ohlc:(e,o)=>`${e}:${n(o)} 个周期的开盘、最高、最低和收盘`,closedAbove:"收盘高于开盘",closedBelow:"收盘低于开盘",noFlows:"没有可绘制的流量。",chord:e=>`${n(e)} 个参与方之间的流量`,chordFolded:e=>`另有 ${n(e)} 个参与方归入"其他"`,noStages:"没有可绘制的阶段。",ofFirstStage:"占首阶段",droppedHere:"此处流失",intensity:"强度",noActivity:"此时间段内无活动。",heatmap:(e,o,t)=>`${e},${n(o)} 行 ${n(t)} 列`,countAxis:"数量",histogram:(e,o,t)=>`${e}:${n(t)} 个观测值,分为 ${n(o)} 组`,observations:"观测值",notEnough:"符合条件的请求不足,无法判断。",objectiveMet:e=>`已达到目标 ${e}`,objectiveMissed:e=>`未达到目标 ${e}`,nothingToPlot:"没有可绘制的数据。",nothingToCompare:"没有可比较的数据。",other:"其他",nothingToBreakDown:"没有可细分的数据。",range:"范围",rangeLabel:(e,o)=>`${e}:${n(o)} 个类别的最低值和最高值`,nothingToRank:"此时间段内没有可排名的数据。",emphasised:"(重点)",sankey:(e,o)=>`${n(e)} 个节点之间的流量,共 ${n(o)} 条连接`,noObservations:"此时间段内无观测值。",xAxis:"x",yAxis:"y",size:"大小",scatter:(e,o,t)=>`${e.join("、")}:${s(o)}与${d(t)}的关系`,outsideRange:e=>`${n(e)} 个点超出显示范围`,waterfall:(e,o,t)=>`瀑布图,共 ${n(e)} 步,从${d(o)}到${l(t)}`,balance:"余额",increase:"增加",decrease:"减少",runningTotal:"累计",sunburst:(e,o)=>`${s(e)}的层级构成,共 ${n(o)} 层`,treemap:e=>`矩形树图,共 ${n(e)} 项`,trendUp:"上升",trendDown:"下降",trendFlat:"持平"},timeline:{days:e=>`${r(e)} 天`,daysToToday:e=>`距今 ${r(e)} 天`,notReached:"尚未达成",next:"下一项",more:e=>`还有 ${n(e)} 项`,today:"今天",todayTitle:e=>`今天:${e}`,open:e=>`打开${l(e)}`,openButton:"打开",scrub:"拖动浏览时间线",alsoToCome:e=>`后续还有:${e.join("、")}`,start:e=>`开始 · ${e}`,events:(e,o)=>`${n(e)} 个事件 · ${o.join("、")}`,started:e=>`开始于 ${e}`,duration:e=>`${r(e)} 天`,reached:(e,o)=>`已达成 ${n(e)} / ${n(o)} 个里程碑`,milestones:e=>`${s(e)}里程碑`},production:{heading:"生产进度",start:"开始",estimated:"预计",estimatedCompletion:"预计完成",estDone:"预计完工",play:"播放",pause:"暂停",playTitle:"逐份报告播放时间线",backTo:e=>`返回${l(e)}`,showing:e=>`正在显示 ${e}`,overall:e=>`总体 ${p(e,0)}`,inStock:e=>`库存 ${r(e)} 件`,noReport:"尚未提交生产报告",leadTime:e=>`交货周期 ${r(e)} 天`,report:"生产报告",shipment:"发货",inspection:"检验",invoice:"发票",scrub:"拖动浏览生产时间线",label:(e,o)=>`生产报告和事件,${e} 至 ${o}`},containers:{items:e=>`${n(e)} 项`,pieces:e=>`${n(e)} 件`,split:(e,o)=>`(指令 ${n(e)} / 已装 ${n(o)})`,added:(e,o)=>`新增 ${n(e)} 项(${n(o)} 件)`,fill:(e,o)=>`${c(e,1)} / ${n(o)} m³`,total:"合计:",instructed:e=>`指令 ${c(e,2)} m³`,loaded:e=>`已装 ${c(e,2)} m³`,volume:e=>`${c(e,2)} m³`,noVolume:"体积:暂无(这些料号没有体积数据)"},toast:{notification:"通知",undo:"撤销"},map:{failed:"无法在此处绘制地图。列表中包含地图显示的全部内容。",approximate:e=>`${e},大致位置`,approximateTitle:e=>`${e}(大致位置)`,places:()=>"地点",group:(e,o)=>`此处有 ${n(e)} 个${l(o)}`,stops:e=>`第 ${e} 站`,closeBy:(e,o)=>`附近还有 ${n(e)} 个${l(o)},放大地图后显示`,spread:"点按以分开查看",cycle:"这些地点位于同一位置:点按查看下一个",fullScreen:"全屏",leaveFullScreen:"退出全屏",chosen:e=>`${e},已在地图上选中`,closeCard:"关闭",openRecord:"打开"},pdf:{previousPage:"上一页",nextPage:"下一页",pageOf:(e,o)=>`${n(e)} / ${n(o)}`,zoomOut:"缩小",zoomIn:"放大",zoom:"缩放",fitWidth:"适合宽度",fitPage:"适合页面",fit:"适应",fitHint:"适应窗格:随窗格大小变化,直到您手动缩放",print:"打印",download:"下载",email:"发送邮件",loading:"正在加载 PDF",loadFailed:"PDF 加载失败",allowPopups:"请允许弹出窗口以便打印"},loading:{label:"加载中"},language:{title:"语言",description:"菜单、标签和消息所使用的语言。",reloadNote:"更改语言后页面将重新加载。"},entityList:{open:"打开",copy:"复制",copyColumn:e=>`复制${l(e)}`,copyRows:e=>1===e?"复制此行":`复制 ${n(e)} 行`,exportSelected:"将所选导出为 CSV",selectAll:"全选",selectAllLoaded:e=>`全选已加载的 ${n(e)} 项`,clearSelection:"清除所选",refresh:"刷新",copiedText:"文本",copiedRows:e=>1===e?"该行":`${n(e)} 行`,exported:e=>`已导出 ${n(e)} 行。`,exportTruncated:(e,o)=>`仅导出了 ${n(o)} 行中的 ${n(e)} 行。服务器限制了本次导出,文件不完整。`,exportTruncatedUnknown:e=>`仅导出了 ${n(e)} 行中的一部分。服务器限制了本次导出,文件不完整。`,exportFailed:"CSV 导出失败。"},columns:{choose:"选择列",heading:"列",reset:"重置",saveDefault:"保存为所有用户的默认设置",savedDefault:"已保存为默认设置",select:"选择",selectDone:"完成",showSelection:"显示选择列",hideSelection:"隐藏选择列"},record:{loading:"正在加载记录",signInRequired:"需要登录",signInBody:"您的会话可能已过期。请重新登录以打开此记录。",notFound:"未找到记录",loadFailed:"无法加载记录",checkConnection:"请检查网络连接后重试。",rejected:"服务器拒绝了此请求。",retry:"重试"},password:{current:"当前密码",newPassword:"新密码",confirm:"确认密码",submit:"修改密码",submitting:"修改中",done:"完成",currentRequired:"请输入当前密码。",tooShort:e=>`新密码至少需要 ${n(e)} 个字符。`,mismatch:"两次输入的密码不一致。",failed:"修改密码失败。",changed:"您的密码已修改成功。"},pdfAction:{label:"PDF",loading:"加载中",preview:"预览",download:"下载",email:"通过邮件发送",downloaded:e=>`${s(e)}已下载。`,tookTooLong:e=>`${s(e)}加载时间过长,请重试。`,previewLoading:"正在加载 PDF",previewTookTooLong:"此文档加载时间过长。请关闭此窗口后重试。",previewFailed:"PDF 加载失败。"},undo:{undo:"撤销",redo:"重做",undoStep:(e,o)=>`撤销${l(e)}(${o})`,redoStep:(e,o)=>`重做${l(e)}(${o})`,nothingToUndo:"没有可撤销的操作",nothingToRedo:"没有可重做的操作"},sounds:{title:"声音",enable:"音效",autosave:"更改会自动保存",choice:(e,o)=>`${e}:${o}`,packClassic:"经典",packMinimal:"极简",packRetro:"复古",packSoft:"柔和",packArcade:"街机",packSilent:"静音",eventClick:"点击",eventSuccess:"成功",eventError:"错误",eventNotification:"通知",eventStartup:"启动",eventTimerDone:"计时结束",eventLogout:"退出登录"},serverStatus:{connected:"已连接",disconnected:"已断开",checking:"检测中",lastOkTitle:(e,o)=>`${e} · 上次正常 ${o}`,details:"服务器连接详情",lastPoll:e=>`上次轮询:${e}。`,lastFailure:e=>`上次失败:${e}。`,firstPoll:"首次轮询进行中",server:"服务器",protocol:"协议",browser:"浏览器",online:"在线",offline:"离线",lastOk:"上次正常",lastFail:"上次失败",latency:"延迟",poll:"轮询",pollEvery:e=>`每 ${n(e)} 秒`,session:"会话",user:"用户",notSignedIn:"未登录",role:"角色",build:"构建",app:"应用",userAgent:"用户代理",pingHint:"点击 ↻ 立即检测",refresh:"刷新"},bulkImport:{description:"可从电子表格粘贴、直接输入或上传 CSV。行无需按顺序排列,系统会自动匹配。列表中没有的值将添加到末尾。留空的字段不受影响。",lines:e=>`${n(e)} 行`,total:(e,o)=>`${e}:${o}`,clear:"清除",upload:"上传 CSV",importLines:e=>`导入 ${n(e)} 行`,importing:"导入中",importFailed:"导入失败。",enterAtLeastOne:(e,o)=>`请至少输入一个${l(o)||"值"}。`,allSkipped:"所有行均已跳过。",cancel:"取消",mapTitle:"将 CSV 列映射到字段",skip:"— 跳过 —",columnOption:(e,o)=>`第 ${n(e)} 列(例如 ${o})`,rowsDetected:e=>`检测到 ${n(e)} 行`,confirmMapping:"确认映射",duplicatesTitle:"检测到重复项",duplicatesFound:e=>`导入内容中有 ${n(e)} 个值出现了多次。请先选择每个值的处理方式,然后再继续。`,occurrences:e=>`出现 ${n(e)} 次`,keepFirst:"保留第一个",keepLast:"保留最后一个",keepAll:"全部保留",skipAll:"全部跳过",keptDropped:(e,o)=>`保留 ${n(e)} · 丢弃 ${n(o)}`,proceed:"继续",duplicatesMerged:e=>`有 ${n(e)} 个值出现了多次。每个值已合并为一行,数量已累加,请检查后再继续。`,mergedFrom:"合并自",mergedRows:e=>`${n(e)} 行`,mergeSummary:(e,o)=>`${n(e)} 个重复行 → 合并为 ${n(o)} 行`},preview:{windowTitle:e=>`${e} - 预览`,untitled:"未命名",open:"打开",formats:"PDF · DXF · 3D · 图片",dropHere:e=>`将文件拖放到此处,或点击${e}。`,supportedFormats:"支持的格式",formatPdf:"多页文档查看器",formatDxf:e=>`矢量 CAD 图纸(可选依赖 ${e})`,format3d:e=>`3D 模型(可选依赖 ${e})`,formatImage:"位图图片",dwgNote:"DWG 文件需先在服务器端转换为 PDF 或 DXF。",dropToOpen:"松开以打开",dwgUnsupported:"DWG 文件需要在服务器端转换。请先转换为 PDF 或 DXF。",unsupportedType:e=>e?`不支持的文件类型:.${e}`:"不支持的文件类型:未知",converting:"正在转换文件",download:"下载",email:"发送邮件",howToNavigate:"操作方法",stopMeasuring:"停止测量(Esc)",scrollToZoom:"滚动缩放",closePanel:"关闭",annotate:"标注",annotateHint:"标注此图片",view:"查看",viewHint:"返回查看器",copy:"复制",save:"保存",imageFailed:"图片加载失败。",downloadFailed:"下载失败:无法访问该文件。"},drawing:{loading:"正在加载图纸",notInstalled:"此应用未安装 dxf-viewer。",renderFailed:"DXF 渲染失败。",layers:"图层",layersHint:"切换图层可见性",allLayers:"全部",noLayers:"无",measure:"测量",measureHint:"测量距离:在图纸上点击两点,或在下方输入 DI / DIM",auto:"自动",autoHint:"自动:等同 AutoCAD 的 DIMLINEAR,测量两个拾取点之间 ΔX 与 ΔY 中较大的一个",horizontalHint:"水平:两个拾取点之间沿 X 轴的距离(AutoCAD DIMLINEAR 水平)",verticalHint:"垂直:两个拾取点之间沿 Y 轴的距离(AutoCAD DIMLINEAR 垂直)",point:"两点",pointHint:"两点:两个拾取点之间的直线(欧氏)距离(AutoCAD DIST)",fixX:"固定 Δx",fixY:"固定 Δy",fixHint:"将第二个拾取点在该轴上的坐标锁定为第一个拾取点加上此值(mm)。此时显示的测量值为正交方向的距离。",clearFixed:"清除固定距离",horizontalDistance:e=>"两个拾取点之间的水平距离(Δx)"+(e?":自动模式已判定为 X 轴":""),verticalDistance:e=>"两个拾取点之间的垂直距离(Δy)"+(e?":自动模式已判定为 Y 轴":""),straightDistance:"两个拾取点之间的直线距离",fit:"适应",fitHint:"使图纸适应视图",dragToPan:"拖动平移",fitToReset:"点“适应”重置",typeToMeasure:e=>`输入 ${e} 进行测量`,commandPlaceholder:"输入命令:DI、DIM、H、V、Z、LA(输入 ? 查看帮助)",commandHelp:"命令:DI 距离 · DIM/DLI 线性标注 · H / V 强制轴向 · <数值> 锁定 Δ · U 撤销拾取 · Z 适应 · LA 图层 · Esc 退出",echoDistance:(e,o,t)=>`距离 = ${e} ΔX = ${o} ΔY = ${t}`,echoLinear:(e,o)=>`线性标注 = ${e}(${o})`,echoLocked:(e,o,t,a)=>`${e} = ${o},${t} 锁定为 ${a}`,axisLocked:(e,o)=>`${e} 已锁定为 ${o},标签显示的是正交方向的距离`,fixedCleared:"已清除固定距离。",fixedNeedsAxis:"固定距离仅适用于 H 或 V 模式,请先输入 H 或 V。",echoDist:"DIST:点击两点;直线距离(按 Esc 退出)",echoDimLinear:"DIMLINEAR:点击两点;测量 ΔX 与 ΔY 中较大的一个(输入 H / V 可强制轴向)",echoHorizontal:"水平:两个拾取点之间的 ΔX",echoVertical:"垂直:两个拾取点之间的 ΔY",echoAuto:"自动(DIMLINEAR):沿两个拾取点的主轴方向测量",measureOn:"测量已开启,请点击两点。",measureOff:"测量已关闭。",pickRemoved:"已移除上一个拾取点。",zoomExtents:"已缩放至全图。",layersToggled:"已切换图层面板。",measurementCleared:"已清除测量结果。",readOnly:e=>`${e} 是绘图命令,而“预览”是只读查看器。测量命令:DI、DIM、H、V(输入 ? 查看帮助)`,unknownCommand:e=>`未知命令“${e}”,请尝试 DI、DIM、H、V、Z、LA(输入 ? 查看帮助)`,cancelled:"*取消*"},model:{loading:"正在加载 3D 模型",stepNote:"STEP 文件首次使用时需加载 OpenCascade WASM(约 5 MB)。",notInstalled:"此应用未安装 online-3d-viewer。安装后即可查看 3D 文件。",loadFailed:"3D 模型加载失败。",rootNode:"根节点",node:"节点",collapse:"收起",expand:"展开",fitToView:"适应视图",hide:"隐藏",show:"显示",isometric:"轴测",isometricView:"等轴测视图",top:"俯视",topView:"俯视图",front:"前视",frontView:"前视图",side:"侧视",sideView:"侧视图",perspective:"透视",orthographic:"正交",toPerspective:"切换到透视视图",toOrthographic:"切换到正交视图",snapshot:"将快照保存为 PNG",measureHint:"测量距离:在模型上点击两点",point:"两点",pointHint:"两点:测量两个拾取点之间的直线距离",perpendicularHint:"垂直:拾取两个面,测量它们之间的垂直间距",straightDistance:"两个拾取点之间的直线距离",perpendicularDistance:"两个拾取面之间的垂直距离",meshesHint:"显示或隐藏网格面板",displayHint:"显示或隐藏显示设置面板",downloadOriginal:"下载原始文件",meshes:"网格",readingModel:"正在读取模型",noStructure:"无可用结构",allVisible:"全部可见",hiddenCount:e=>`已隐藏 ${n(e)} 个`,dragToRotate:"拖动旋转",rightDragToPan:"右键拖动平移",display:"模型显示",backgroundColor:"背景颜色",showEdges:"显示边线",edgeColor:"边线颜色",edgeThreshold:"边线阈值",sectionView:"剖面视图",angle:"角度",axis:"轴",flipHint:"翻转剖切方向",flip:"翻转 →",flipped:"← 已翻转",position:"位置",resetDisplay:"恢复默认"},annotator:{toolSelect:"选择 / 移动",toolDraw:"画笔 / 手绘",toolRect:"矩形",toolEllipse:"椭圆",toolArrow:"箭头",toolMosaic:"马赛克",toolText:"文字",toolCrop:"裁剪",weight:"粗细",radius:"圆角",size:"大小",padding:"边距",fontSystem:"系统",fontSerif:"衬线",fontMono:"等宽",fontCursive:"手写",bold:"加粗",boldLetter:"B",italic:"斜体",italicLetter:"I",underline:"下划线",underlineLetter:"U",border:"边框",borderColor:"文本框边框颜色",addBorder:"添加边框",removeBorder:"移除边框",fill:"填充",fillColor:"文本框背景颜色",addFill:"添加背景填充",removeFill:"移除填充",add:"添加",zoomOut:"缩小",zoomIn:"放大",fit:"适应",fitHint:"适应区域",undo:"撤销",applyCrop:"应用裁剪",cancel:"取消",apply:"应用",hintSelected:"拖动可移动。拖动边角可调整大小。按 Delete / Backspace 可删除。点击外部可取消选择。",hintSelect:"点按形状即可选中。双击文字即可编辑。",hintText:"点击以放置文字标签。",hintCrop:"拖出一个矩形以设定裁剪区域。",hintDraw:"拖动以自由绘制。",hintShape:"在图片上拖动以绘制。",textPlaceholder:"输入后按 Enter…",loadFailed:"图片加载失败",exportFailed:"导出失败",clipboardUnsupported:"此浏览器不支持将图片复制到剪贴板",copyFailed:"复制失败",copied:"已复制到剪贴板",copyRefused:"复制失败(没有剪贴板权限?)"},attachment:{fallbackName:"附件",noLink:"此附件没有下载链接。",spreadsheetFailed:"无法打开电子表格,将改为直接打开文件。",workbookUnavailable:"此文件类型不支持电子表格预览,将改为直接打开文件。",noViewer:"没有可在此显示该文件的查看器,将在应用外打开。",loading:"正在加载文件",loadFailed:"文件加载失败。"},aboutApp:{title:e=>`关于${l(e)}`,version:e=>`版本 ${e}`,partOf:e=>`属于 ${e} 桌面环境`,shellVersion:e=>`外壳 v${e}`,spreadsheet:"多工作表电子表格编辑器,支持导入和导出 CSV / TSV。",notepad:"带颜色标记的便笺,支持清单、桌面便签和实体自动链接。",documents:"信纸版面的编辑器,适用于 Word 文档和纯文本文件,支持图片、列表和对齐。",preview:"PDF 文档、图片、DXF 图纸和 3D 模型的查看器,支持带对象捕捉的 CAD 式测量和类似 AutoCAD 的命令栏。",files:"个人文件管理器,支持文件夹、上传、配额、回收站和桌面快捷文件夹。",browser:"简洁的网页浏览器,带书签、历史记录和导航栏。"}}}var p=c;export{i as ZH_HANS_REVIEWED_SECTIONS,p as default,c as zhHansStrings};
1
+ import{formatPlain as e,formatGrouped as o,formatFixed as t,formatPercent as a}from"../chunk-C3QOHMR6.js";var i=[],n=/^[A-Za-z0-9]/,r=/[A-Za-z0-9]$/,l=e=>n.test(e)?` ${e}`:e,s=e=>r.test(e)?`${e} `:e,d=e=>s(l(e));function c(i="zh-Hans"){const n=o=>e(o,i),r=e=>o(e,i),c=(e,o)=>t(e,o,i),p=(e,o)=>a(e,o,i);return{window:{minimize:"最小化",restore:"还原",maximize:"最大化",windowed:"向下还原",pinOnTop:"置顶",unpin:"取消置顶",close:"关闭",windowSuffix:"窗口",prev:"上一条",next:"下一条",snapLayouts:"贴靠布局",snapLeft:"贴靠到左半屏",snapRight:"贴靠到右半屏",snapTopLeft:"贴靠到左上角",snapTopRight:"贴靠到右上角",snapBottomLeft:"贴靠到左下角",snapBottomRight:"贴靠到右下角"},taskbar:{closeWindow:"关闭窗口",offscreenHint:"此窗口位于屏幕之外,点击即可移回",offscreenDot:"位于屏幕之外,点击即可移回此窗口",expose:"窗口概览:以缩略图显示所有打开的窗口",addToDesktop:"添加到桌面",removeFromDesktop:"从桌面移除",minimizeAllWindows:"全部最小化",restoreAllWindows:"全部还原",closeAllWindows:"全部关闭"},logout:{goodbye:"再见",seeYou:"下次再见"},about:{aboutPrefix:"关于",thisApp:"本应用",openSourceLicenses:"开源许可",whatsNew:"更新内容",noChangelog:"暂无更新日志。"},table:{empty:"暂无数据",loading:"加载中",selectAll:"选择全部行",selectRow:"选择此行"},select:{none:"— 无 —",noMatches:"无匹配项",allSelected:"已选择全部选项",clear:"清除所选",clearAll:"全部清除",changed:"已更改",selectedCount:e=>`已选 ${n(e)} 项`,remove:"移除",removeItem:e=>`移除${l(e)}`},notifications:{title:"通知",markAllRead:"全部标为已读",dnd:"勿扰模式",dndOn:"勿扰模式已开启",caughtUp:"全部已读",empty:"暂无通知",viewAll:"查看全部通知",cardLabel:"通知",dismiss:"关闭通知"},form:{errorSummaryTitle:"存在以下问题"},help:{title:"帮助",searchPlaceholder:"搜索帮助…",empty:"暂无帮助文章。",noResults:"没有符合搜索条件的文章。",loading:"加载中",pickArticle:"请从左侧选择一篇帮助文章。",noBody:"这篇文章暂无内容。",draft:"草稿",newArticle:"+ 新建",edit:"编辑"},update:{available:"有新版本可用。",refreshNow:"立即刷新"},pageTabs:{label:"已打开的页面",close:"关闭",closeTab:e=>`关闭${l(e)}`,closeOthers:"关闭其他标签页",closeRight:"关闭右侧标签页",closeAll:"关闭全部标签页",unsaved:"有未保存的更改",copy:e=>`复制${l(e)}`,copied:"已复制",tabMenu:"窗口菜单",discardTitle:"放弃未保存的更改?",discardOne:"此页面有尚未保存的更改。仍要关闭吗?",discardMany:"个页面有尚未保存的更改。仍要关闭吗?",discardCount:e=>`有 ${n(e)} 个页面的更改尚未保存。仍要关闭吗?`,discardConfirm:"放弃并关闭",keepEditing:"继续编辑"},dialog:{close:"关闭",cancel:"取消",ok:"确定",confirmTitle:"确认",destructiveTitle:"确认操作",destructiveCancel:"返回",destructiveConfirm:"删除",typeToConfirm:e=>`请输入 ${e} 以确认:`,promptTitle:"请输入内容"},calendar:{previousMonth:"上个月",nextMonth:"下个月",previousYear:"上一年",nextYear:"下一年",previousYears:"上一组年份",nextYears:"下一组年份",monthPanel:"选择月份",yearPanel:"选择年份",chooseMonth:e=>`选择月份,当前为${l(e)}`,chooseYear:e=>`选择年份,当前为 ${e} 年`},datePicker:{placeholder:"选择日期",dialog:"选择日期",clear:"清除",today:"今天",required:"必填"},dateRange:{placeholder:"日期范围",clearRange:"清除日期范围",dialog:"日期范围",from:"从",to:"至",start:"开始日期",end:"结束日期",fromOnly:e=>`自 ${e} 起`,toOnly:e=>`截至 ${e}`,range:(e,o)=>`${e} 至 ${o}`,required:"必填",last2Weeks:"过去 2 周",lastMonth:"上个月",last3Months:"过去 3 个月",last6Months:"过去 6 个月",last12Months:"过去 12 个月",lastHeading:"过去",last2WeeksShort:"2 周",lastMonthShort:"上个月",last3MonthsShort:"3 个月",last6MonthsShort:"6 个月",last12MonthsShort:"12 个月",custom:"自定义",clear:"清除",cancel:"取消",apply:"应用"},pagination:{label:"分页",first:"第一页",previous:"上一页",next:"下一页",last:"最后一页"},list:{selected:e=>`已选 ${n(e)} 项`,selectedNotShown:(e,o)=>`已选 ${n(e)} 项,${n(o)} 项未显示`,allLoaded:(e,o)=>`已加载全部 ${r(e)} ${o}`,count:(e,o)=>`共 ${r(e)} ${o}`,loadedOf:(e,o,t)=>`已加载 ${r(e)} / ${r(o)} ${t}`,loadingMore:"正在加载更多",loadError:"无法加载此列表",loadErrorMessage:"获取这些记录时出错。请检查网络连接后重试。",retry:"重试"},kanban:{loading:"加载中",empty:"暂无条目。",dropHere:"拖放到此处",addItem:"添加条目"},files:{attach:"添加附件",drop:"松开即可添加附件",remove:e=>`移除${l(e)}`,chooseMany:"选择文件",chooseOne:"选择文件",dragMany:"或拖放到此处",dragOne:"或拖放到此处",notAccepted:(e,o)=>`${s(e)}的文件类型不受支持${o?`(${o})`:""}`,tooLarge:(e,o,t)=>`${s(e)}大小为 ${o},上限为 ${t}`,tooMany:(e,o)=>`未添加${l(e)}:最多只能添加 ${n(o)} 个文件`,bytes:e=>`${n(e)} B`,kilobytes:e=>`${n(e)} KB`,megabytes:e=>`${c(e,1)} MB`},media:{uploadImage:"上传图片",uploadVideo:"上传视频",uploadFile:"上传文件",upload:"上传媒体",cta:"从媒体库选择或上传",replace:"替换",remove:"移除",uploading:"上传中",cover:"封面",add:"添加",addMedia:"添加媒体",empty:"暂无媒体。",removeItem:e=>`移除${l(e)}`,reorder:(e,o,t)=>`${e},第 ${n(o)} 项,共 ${n(t)} 项。使用方向键调整顺序。`},brandAsset:{save:(e,o)=>`保存${l(o)}`,remove:(e,o)=>`移除${l(o)}`,discard:"放弃更改",saveFailed:(e,o)=>`无法保存${l(o)}。`,removeFailed:(e,o)=>`无法移除${l(o)}。`,region:(e,o)=>`${s(o)}的${e}`,usedFor:e=>`用于${l(e)}。`,previews:e=>`${s(e)}预览`,preview:"预览",alt:(e,o)=>`${s(e)}${o}`},copy:{copy:"复制",copyLabel:e=>`复制${l(e)}`,copied:"已复制",copyValue:e=>`复制${l(e)}`,copiedValue:"已复制!",copiedLabel:e=>`已复制${l(e)}`,failed:"无法复制到剪贴板"},keypad:{backspace:"退格",enter:"确认"},banner:{dismiss:"关闭"},transfer:{uploading:"上传中",error:"出错",retry:"重试",dismiss:"关闭",cancel:"取消",cancelVerb:e=>`取消${l(String(e).replace(/中$/,""))}`},badge:{remove:"移除",removeItem:e=>`移除${l(e)}`},breadcrumbs:{label:"面包屑导航",hidden:"已隐藏的层级"},emptyState:{message:"暂无内容。"},errors:{notFound:"找不到页面",notFoundBody:"您访问的页面不存在或已被移动。",forbidden:"访问被拒绝",forbiddenBody:"您没有查看此页面的权限。",noAccess:"您无权访问此内容",serverError:"出错了",serverErrorBody:"发生意外错误,请重试。",retry:"重试",details:"错误详情"},search:{placeholder:"搜索…",escBadge:"ESC",searching:"搜索中",noResults:"未找到结果。",minChars:e=>`请至少输入 ${n(e)} 个字符再搜索…`,navigate:"切换",open:"打开",close:"关闭",enterKey:"Enter",escKey:"Esc",recent:"最近",favorites:"收藏",actions:"操作",listLabel:"搜索结果",groupCount:(e,o)=>`${n(e)}${o?"+":""}`,groupLabel:(e,o,t)=>`${e},${n(o)}${t?"+":""} 项`,seeAll:e=>`查看全部${l(e)}`,searchFailed:"搜索失败,请检查网络连接后重试。",partialFailure:"部分结果未能加载。",tabKey:"Tab",nextGroup:"下一组"},grid:{selectAll:"全选",insertRowAbove:"在上方插入行",insertRowBelow:"在下方插入行",deleteRow:e=>`删除第 ${e} 行`,insertColumnLeft:"在左侧插入列",insertColumnRight:"在右侧插入列",deleteColumn:e=>`删除${d(e)}列`,resize:"拖动调整大小 · 双击自动适应",fill:"拖动填充"},sidebar:{resize:"拖动调整大小 · 双击重置"},resizeHandle:{label:"调整面板大小",hint:"拖动调整大小 · 双击重置"},number:{increase:"增加",decrease:"减少"},slider:{value:e=>`${s(e)}数值`},displayChips:{shown:"显示中",hidden:"已隐藏",shownHint:"显示中 · 点击隐藏",hiddenHint:"已隐藏 · 点击显示"},corners:{radius:"圆角半径",unit:"px",radiusMark:"R"},iconPicker:{button:(e,o)=>`${e}:${o}`},iconNames:{none:"无","arrow-right":"箭头","arrow-long-right":"长箭头","arrow-up-right":"右上箭头","chevron-right":"尖括号",external:"外部链接",cart:"购物车",bag:"购物袋",tag:"标签",email:"邮件",location:"位置",play:"播放",download:"下载",search:"搜索",car:"汽车"},widths:{column:e=>`第 ${e} 栏`,divider:(e,o)=>`第 ${e} 栏和第 ${o} 栏之间的分隔线`,dividerValue:(e,o,t,a)=>`第 ${e} 栏 ${p(o,0)},第 ${t} 栏 ${p(a,0)}`,dragHint:"拖动来调整栏宽",hint:(e,o)=>`输入宽度,或拖动分隔线。每栏不少于 ${p(o,0)}。`,reset:"恢复等宽"},color:{swatch:(e,o)=>`${e}:${o}`,none:"无",panel:e=>`${s(e)}选择器`,square:"饱和度和亮度",squareValue:(e,o)=>`饱和度 ${p(e,0)},亮度 ${p(o,0)}`,hue:"色相",hex:e=>`${s(e)}十六进制色值`,presets:"预设",clear:"无颜色"},imageFocus:{picture:(e,o)=>`${e}:${o}`,hint:"拖动图片上的圆点,或用方向键移动。按住 Shift 可移动更多。",noImage:"请先选择图片,目前还没有可设置焦点的图片。"},link:{linkType:"链接类型",address:"链接地址",addressPlaceholder:"链接(本站页面 /… 或 https://…)",unsafe:"请使用网址(https://…)、本站页面(/…)、mailto: 或 tel:。",unavailable:e=>`${e}(不可用)`,filter:"筛选",noFilter:"不筛选(全部产品)",value:"值",filterHint:"筛选项来自产品类型。只列出本站目录中有的值。",title:"链接",apply:"应用",cancel:"取消",remove:"移除",addLink:"添加链接",text:e=>`${s(e)}文字`,linkOf:(e,o)=>`${s(e)}链接:${o||"无"}`},textToolbar:{formatting:"格式",bold:"粗体",italic:"斜体",underline:"下划线",strike:"删除线",color:"颜色",link:"链接",sup:"上标",sub:"下标",code:"代码",alignment:"对齐",alignLeft:"左对齐",alignCenter:"居中",alignRight:"右对齐",alignJustify:"两端对齐",bullet:"项目符号列表",number:"编号列表",quote:"引用",letterCase:"大小写",caseNone:"常规",caseUpper:"大写",caseLower:"小写"},tree:{empty:"暂无内容",dropHere:"拖放到此处",dragHint:"拖动以移动",moveHint:"按 Alt+向上键或 Alt+向下键可移动此项",insertHere:"在此处插入"},layout:{desktop:"桌面",sidebar:"侧边栏",switchToDesktop:"切换到桌面模式",switchToSidebar:"切换到侧边栏模式",collapseSidebar:"收起侧边栏",expandSidebar:"展开侧边栏",search:"搜索…",navLabel:"主菜单",openWindows:"已打开的窗口",pageResult:"页面",accountMenu:e=>`${s(e)}的账户菜单`,profile:"个人资料",notifications:"通知",reportIssue:"建议与问题反馈",signOut:"退出登录",signOutTitle:"退出登录",signOutMessage:"您确定要退出登录吗?重新登录后将重新打开所有窗口。",openMenu:"打开菜单",closeMenu:"关闭菜单",openTabs:"已打开的标签页",getTheApp:e=>`获取 ${e} 应用`,openApp:"打开",dismiss:"不再显示",deviceUsesSidebar:"此设备始终使用侧边栏布局。在电脑上登录时,您的选择仍然有效。",largerScreensOnly:"仅限较大屏幕",usedOnThisDevice:"此设备正在使用",back:"返回"},markdown:{screenshot:"截图"},severity:{success:"正常",warning:"警告",danger:"严重",unrecognised:e=>`未识别的严重级别${l(e)}`},meter:{noData:"无数据",warningAt:e=>`警告 ≥ ${n(e)}`,criticalAt:e=>`严重 ≥ ${n(e)}`,noReading:"无读数",noBudget:"无预算",ofBudget:e=>`预算的 ${e}`,budget:"预算",pace:"此刻应达到",hoursMinutes:(e,o)=>`${n(e)} 小时 ${n(o)} 分`,minutesSeconds:(e,o)=>`${n(e)} 分 ${n(o)} 秒`,seconds:e=>`${n(e)} 秒`},charts:{showTable:"以表格显示数据",loading:"正在加载图表数据",noData:"此时间段内无数据。",windowStart:"时间段起点",windowEnd:"时间段终点",window:(e,o,t)=>`时间段:正在显示 ${e} 至 ${o},共 ${n(t)} 个区间`,overIntervals:(e,o)=>`${e.join("、")},共 ${n(o)} 个区间`,acrossCategories:(e,o)=>`${e.join("、")},共 ${n(o)} 个类别`,acrossMeasures:(e,o)=>`${e.join("、")},共 ${n(o)} 项指标`,breakdown:(e,o)=>`${s(e)}的构成,共 ${n(o)} 个部分`,funnel:(e,o,t)=>`漏斗图,共 ${n(e)} 个阶段,从${d(o)}到${l(t)}`,radialTrack:e=>`${n(e)} 个类别,以同心环占比显示`,radialCycle:e=>`${n(e)} 个类别,按环形周期排列`,tableFrom:"来源",tableTo:"去向",tableItem:"项目",tableLevel:"层级",tableSeries:"系列",inBucket:e=>`此区间内共 ${e}`,inCategory:e=>`此类别内共 ${e}`,value:"数值",share:"占比",count:"数量",flow:"流量",totalFlow:"总流量",throughput:"通过量",open:"开盘",high:"最高",low:"最低",close:"收盘",maximum:"最大值",q3:"Q3",median:"中位数",q1:"Q1",minimum:"最小值",distribution:"分布",fiveNumber:(e,o)=>`${e}:${n(o)} 个类别的五数概括`,outliers:e=>`${n(e)} 个离群值超出须线范围`,price:"价格",ohlc:(e,o)=>`${e}:${n(o)} 个周期的开盘、最高、最低和收盘`,closedAbove:"收盘高于开盘",closedBelow:"收盘低于开盘",noFlows:"没有可绘制的流量。",chord:e=>`${n(e)} 个参与方之间的流量`,chordFolded:e=>`另有 ${n(e)} 个参与方归入"其他"`,noStages:"没有可绘制的阶段。",ofFirstStage:"占首阶段",droppedHere:"此处流失",intensity:"强度",noActivity:"此时间段内无活动。",heatmap:(e,o,t)=>`${e},${n(o)} 行 ${n(t)} 列`,countAxis:"数量",histogram:(e,o,t)=>`${e}:${n(t)} 个观测值,分为 ${n(o)} 组`,observations:"观测值",notEnough:"符合条件的请求不足,无法判断。",objectiveMet:e=>`已达到目标 ${e}`,objectiveMissed:e=>`未达到目标 ${e}`,nothingToPlot:"没有可绘制的数据。",nothingToCompare:"没有可比较的数据。",other:"其他",nothingToBreakDown:"没有可细分的数据。",range:"范围",rangeLabel:(e,o)=>`${e}:${n(o)} 个类别的最低值和最高值`,nothingToRank:"此时间段内没有可排名的数据。",emphasised:"(重点)",sankey:(e,o)=>`${n(e)} 个节点之间的流量,共 ${n(o)} 条连接`,noObservations:"此时间段内无观测值。",xAxis:"x",yAxis:"y",size:"大小",scatter:(e,o,t)=>`${e.join("、")}:${s(o)}与${d(t)}的关系`,outsideRange:e=>`${n(e)} 个点超出显示范围`,waterfall:(e,o,t)=>`瀑布图,共 ${n(e)} 步,从${d(o)}到${l(t)}`,balance:"余额",increase:"增加",decrease:"减少",runningTotal:"累计",sunburst:(e,o)=>`${s(e)}的层级构成,共 ${n(o)} 层`,treemap:e=>`矩形树图,共 ${n(e)} 项`,trendUp:"上升",trendDown:"下降",trendFlat:"持平"},timeline:{days:e=>`${r(e)} 天`,daysToToday:e=>`距今 ${r(e)} 天`,notReached:"尚未达成",next:"下一项",more:e=>`还有 ${n(e)} 项`,today:"今天",todayTitle:e=>`今天:${e}`,open:e=>`打开${l(e)}`,openButton:"打开",scrub:"拖动浏览时间线",alsoToCome:e=>`后续还有:${e.join("、")}`,start:e=>`开始 · ${e}`,events:(e,o)=>`${n(e)} 个事件 · ${o.join("、")}`,started:e=>`开始于 ${e}`,duration:e=>`${r(e)} 天`,reached:(e,o)=>`已达成 ${n(e)} / ${n(o)} 个里程碑`,milestones:e=>`${s(e)}里程碑`},production:{heading:"生产进度",start:"开始",estimated:"预计",estimatedCompletion:"预计完成",estDone:"预计完工",play:"播放",pause:"暂停",playTitle:"逐份报告播放时间线",backTo:e=>`返回${l(e)}`,showing:e=>`正在显示 ${e}`,overall:e=>`总体 ${p(e,0)}`,inStock:e=>`库存 ${r(e)} 件`,noReport:"尚未提交生产报告",leadTime:e=>`交货周期 ${r(e)} 天`,report:"生产报告",shipment:"发货",inspection:"检验",invoice:"发票",scrub:"拖动浏览生产时间线",label:(e,o)=>`生产报告和事件,${e} 至 ${o}`},containers:{items:e=>`${n(e)} 项`,pieces:e=>`${n(e)} 件`,split:(e,o)=>`(指令 ${n(e)} / 已装 ${n(o)})`,added:(e,o)=>`新增 ${n(e)} 项(${n(o)} 件)`,fill:(e,o)=>`${c(e,1)} / ${n(o)} m³`,total:"合计:",instructed:e=>`指令 ${c(e,2)} m³`,loaded:e=>`已装 ${c(e,2)} m³`,volume:e=>`${c(e,2)} m³`,noVolume:"体积:暂无(这些料号没有体积数据)"},toast:{notification:"通知",undo:"撤销"},map:{failed:"无法在此处绘制地图。列表中包含地图显示的全部内容。",approximate:e=>`${e},大致位置`,approximateTitle:e=>`${e}(大致位置)`,places:()=>"地点",group:(e,o)=>`此处有 ${n(e)} 个${l(o)}`,stops:e=>`第 ${e} 站`,closeBy:(e,o)=>`附近还有 ${n(e)} 个${l(o)},放大地图后显示`,spread:"点按以分开查看",cycle:"这些地点位于同一位置:点按查看下一个",fullScreen:"全屏",leaveFullScreen:"退出全屏",chosen:e=>`${e},已在地图上选中`,closeCard:"关闭",openRecord:"打开"},pdf:{previousPage:"上一页",nextPage:"下一页",pageOf:(e,o)=>`${n(e)} / ${n(o)}`,zoomOut:"缩小",zoomIn:"放大",zoom:"缩放",fitWidth:"适合宽度",fitPage:"适合页面",fit:"适应",fitHint:"适应窗格:随窗格大小变化,直到您手动缩放",print:"打印",download:"下载",email:"发送邮件",loading:"正在加载 PDF",loadFailed:"PDF 加载失败",allowPopups:"请允许弹出窗口以便打印"},loading:{label:"加载中"},language:{title:"语言",description:"菜单、标签和消息所使用的语言。",reloadNote:"更改语言后页面将重新加载。"},entityList:{open:"打开",copy:"复制",copyColumn:e=>`复制${l(e)}`,copyRows:e=>1===e?"复制此行":`复制 ${n(e)} 行`,exportSelected:"将所选导出为 CSV",selectAll:"全选",selectAllLoaded:e=>`全选已加载的 ${n(e)} 项`,clearSelection:"清除所选",refresh:"刷新",copiedText:"文本",copiedRows:e=>1===e?"该行":`${n(e)} 行`,exported:e=>`已导出 ${n(e)} 行。`,exportTruncated:(e,o)=>`仅导出了 ${n(o)} 行中的 ${n(e)} 行。服务器限制了本次导出,文件不完整。`,exportTruncatedUnknown:e=>`仅导出了 ${n(e)} 行中的一部分。服务器限制了本次导出,文件不完整。`,exportFailed:"CSV 导出失败。"},columns:{choose:"选择列",heading:"列",reset:"重置",saveDefault:"保存为所有用户的默认设置",savedDefault:"已保存为默认设置",select:"选择",selectDone:"完成",showSelection:"显示选择列",hideSelection:"隐藏选择列"},record:{loading:"正在加载记录",signInRequired:"需要登录",signInBody:"您的会话可能已过期。请重新登录以打开此记录。",notFound:"未找到记录",loadFailed:"无法加载记录",checkConnection:"请检查网络连接后重试。",rejected:"服务器拒绝了此请求。",retry:"重试"},password:{current:"当前密码",newPassword:"新密码",confirm:"确认密码",submit:"修改密码",submitting:"修改中",done:"完成",currentRequired:"请输入当前密码。",tooShort:e=>`新密码至少需要 ${n(e)} 个字符。`,mismatch:"两次输入的密码不一致。",failed:"修改密码失败。",changed:"您的密码已修改成功。"},pdfAction:{label:"PDF",loading:"加载中",preview:"预览",download:"下载",email:"通过邮件发送",downloaded:e=>`${s(e)}已下载。`,tookTooLong:e=>`${s(e)}加载时间过长,请重试。`,previewLoading:"正在加载 PDF",previewTookTooLong:"此文档加载时间过长。请关闭此窗口后重试。",previewFailed:"PDF 加载失败。"},undo:{undo:"撤销",redo:"重做",undoStep:(e,o)=>`撤销${l(e)}(${o})`,redoStep:(e,o)=>`重做${l(e)}(${o})`,nothingToUndo:"没有可撤销的操作",nothingToRedo:"没有可重做的操作"},sounds:{title:"声音",enable:"音效",autosave:"更改会自动保存",choice:(e,o)=>`${e}:${o}`,packClassic:"经典",packMinimal:"极简",packRetro:"复古",packSoft:"柔和",packArcade:"街机",packSilent:"静音",eventClick:"点击",eventSuccess:"成功",eventError:"错误",eventNotification:"通知",eventStartup:"启动",eventTimerDone:"计时结束",eventLogout:"退出登录"},serverStatus:{connected:"已连接",disconnected:"已断开",checking:"检测中",lastOkTitle:(e,o)=>`${e} · 上次正常 ${o}`,details:"服务器连接详情",lastPoll:e=>`上次轮询:${e}。`,lastFailure:e=>`上次失败:${e}。`,firstPoll:"首次轮询进行中",server:"服务器",protocol:"协议",browser:"浏览器",online:"在线",offline:"离线",lastOk:"上次正常",lastFail:"上次失败",latency:"延迟",poll:"轮询",pollEvery:e=>`每 ${n(e)} 秒`,session:"会话",user:"用户",notSignedIn:"未登录",role:"角色",build:"构建",app:"应用",userAgent:"用户代理",pingHint:"点击 ↻ 立即检测",refresh:"刷新"},bulkImport:{description:"可从电子表格粘贴、直接输入或上传 CSV。行无需按顺序排列,系统会自动匹配。列表中没有的值将添加到末尾。留空的字段不受影响。",lines:e=>`${n(e)} 行`,total:(e,o)=>`${e}:${o}`,clear:"清除",upload:"上传 CSV",importLines:e=>`导入 ${n(e)} 行`,importing:"导入中",importFailed:"导入失败。",enterAtLeastOne:(e,o)=>`请至少输入一个${l(o)||"值"}。`,allSkipped:"所有行均已跳过。",cancel:"取消",mapTitle:"将 CSV 列映射到字段",skip:"— 跳过 —",columnOption:(e,o)=>`第 ${n(e)} 列(例如 ${o})`,rowsDetected:e=>`检测到 ${n(e)} 行`,confirmMapping:"确认映射",duplicatesTitle:"检测到重复项",duplicatesFound:e=>`导入内容中有 ${n(e)} 个值出现了多次。请先选择每个值的处理方式,然后再继续。`,occurrences:e=>`出现 ${n(e)} 次`,keepFirst:"保留第一个",keepLast:"保留最后一个",keepAll:"全部保留",skipAll:"全部跳过",keptDropped:(e,o)=>`保留 ${n(e)} · 丢弃 ${n(o)}`,proceed:"继续",duplicatesMerged:e=>`有 ${n(e)} 个值出现了多次。每个值已合并为一行,数量已累加,请检查后再继续。`,mergedFrom:"合并自",mergedRows:e=>`${n(e)} 行`,mergeSummary:(e,o)=>`${n(e)} 个重复行 → 合并为 ${n(o)} 行`},preview:{windowTitle:e=>`${e} - 预览`,untitled:"未命名",open:"打开",formats:"PDF · DXF · 3D · 图片",dropHere:e=>`将文件拖放到此处,或点击${e}。`,supportedFormats:"支持的格式",formatPdf:"多页文档查看器",formatDxf:e=>`矢量 CAD 图纸(可选依赖 ${e})`,format3d:e=>`3D 模型(可选依赖 ${e})`,formatImage:"位图图片",dwgNote:"DWG 文件需先在服务器端转换为 PDF 或 DXF。",dropToOpen:"松开以打开",dwgUnsupported:"DWG 文件需要在服务器端转换。请先转换为 PDF 或 DXF。",unsupportedType:e=>e?`不支持的文件类型:.${e}`:"不支持的文件类型:未知",converting:"正在转换文件",download:"下载",email:"发送邮件",howToNavigate:"操作方法",stopMeasuring:"停止测量(Esc)",scrollToZoom:"滚动缩放",closePanel:"关闭",annotate:"标注",annotateHint:"标注此图片",view:"查看",viewHint:"返回查看器",copy:"复制",save:"保存",imageFailed:"图片加载失败。",downloadFailed:"下载失败:无法访问该文件。"},drawing:{loading:"正在加载图纸",notInstalled:"此应用未安装 dxf-viewer。",renderFailed:"DXF 渲染失败。",layers:"图层",layersHint:"切换图层可见性",allLayers:"全部",noLayers:"无",measure:"测量",measureHint:"测量距离:在图纸上点击两点,或在下方输入 DI / DIM",auto:"自动",autoHint:"自动:等同 AutoCAD 的 DIMLINEAR,测量两个拾取点之间 ΔX 与 ΔY 中较大的一个",horizontalHint:"水平:两个拾取点之间沿 X 轴的距离(AutoCAD DIMLINEAR 水平)",verticalHint:"垂直:两个拾取点之间沿 Y 轴的距离(AutoCAD DIMLINEAR 垂直)",point:"两点",pointHint:"两点:两个拾取点之间的直线(欧氏)距离(AutoCAD DIST)",fixX:"固定 Δx",fixY:"固定 Δy",fixHint:"将第二个拾取点在该轴上的坐标锁定为第一个拾取点加上此值(mm)。此时显示的测量值为正交方向的距离。",clearFixed:"清除固定距离",horizontalDistance:e=>"两个拾取点之间的水平距离(Δx)"+(e?":自动模式已判定为 X 轴":""),verticalDistance:e=>"两个拾取点之间的垂直距离(Δy)"+(e?":自动模式已判定为 Y 轴":""),straightDistance:"两个拾取点之间的直线距离",fit:"适应",fitHint:"使图纸适应视图",dragToPan:"拖动平移",fitToReset:"点“适应”重置",typeToMeasure:e=>`输入 ${e} 进行测量`,commandPlaceholder:"输入命令:DI、DIM、H、V、Z、LA(输入 ? 查看帮助)",commandHelp:"命令:DI 距离 · DIM/DLI 线性标注 · H / V 强制轴向 · <数值> 锁定 Δ · U 撤销拾取 · Z 适应 · LA 图层 · Esc 退出",echoDistance:(e,o,t)=>`距离 = ${e} ΔX = ${o} ΔY = ${t}`,echoLinear:(e,o)=>`线性标注 = ${e}(${o})`,echoLocked:(e,o,t,a)=>`${e} = ${o},${t} 锁定为 ${a}`,axisLocked:(e,o)=>`${e} 已锁定为 ${o},标签显示的是正交方向的距离`,fixedCleared:"已清除固定距离。",fixedNeedsAxis:"固定距离仅适用于 H 或 V 模式,请先输入 H 或 V。",echoDist:"DIST:点击两点;直线距离(按 Esc 退出)",echoDimLinear:"DIMLINEAR:点击两点;测量 ΔX 与 ΔY 中较大的一个(输入 H / V 可强制轴向)",echoHorizontal:"水平:两个拾取点之间的 ΔX",echoVertical:"垂直:两个拾取点之间的 ΔY",echoAuto:"自动(DIMLINEAR):沿两个拾取点的主轴方向测量",measureOn:"测量已开启,请点击两点。",measureOff:"测量已关闭。",pickRemoved:"已移除上一个拾取点。",zoomExtents:"已缩放至全图。",layersToggled:"已切换图层面板。",measurementCleared:"已清除测量结果。",readOnly:e=>`${e} 是绘图命令,而“预览”是只读查看器。测量命令:DI、DIM、H、V(输入 ? 查看帮助)`,unknownCommand:e=>`未知命令“${e}”,请尝试 DI、DIM、H、V、Z、LA(输入 ? 查看帮助)`,cancelled:"*取消*"},model:{loading:"正在加载 3D 模型",stepNote:"STEP 文件首次使用时需加载 OpenCascade WASM(约 5 MB)。",notInstalled:"此应用未安装 online-3d-viewer。安装后即可查看 3D 文件。",loadFailed:"3D 模型加载失败。",rootNode:"根节点",node:"节点",collapse:"收起",expand:"展开",fitToView:"适应视图",hide:"隐藏",show:"显示",isometric:"轴测",isometricView:"等轴测视图",top:"俯视",topView:"俯视图",front:"前视",frontView:"前视图",side:"侧视",sideView:"侧视图",perspective:"透视",orthographic:"正交",toPerspective:"切换到透视视图",toOrthographic:"切换到正交视图",snapshot:"将快照保存为 PNG",measureHint:"测量距离:在模型上点击两点",point:"两点",pointHint:"两点:测量两个拾取点之间的直线距离",perpendicularHint:"垂直:拾取两个面,测量它们之间的垂直间距",straightDistance:"两个拾取点之间的直线距离",perpendicularDistance:"两个拾取面之间的垂直距离",meshesHint:"显示或隐藏网格面板",displayHint:"显示或隐藏显示设置面板",downloadOriginal:"下载原始文件",meshes:"网格",readingModel:"正在读取模型",noStructure:"无可用结构",allVisible:"全部可见",hiddenCount:e=>`已隐藏 ${n(e)} 个`,dragToRotate:"拖动旋转",rightDragToPan:"右键拖动平移",display:"模型显示",backgroundColor:"背景颜色",showEdges:"显示边线",edgeColor:"边线颜色",edgeThreshold:"边线阈值",sectionView:"剖面视图",angle:"角度",axis:"轴",flipHint:"翻转剖切方向",flip:"翻转 →",flipped:"← 已翻转",position:"位置",resetDisplay:"恢复默认"},annotator:{toolSelect:"选择 / 移动",toolDraw:"画笔 / 手绘",toolRect:"矩形",toolEllipse:"椭圆",toolArrow:"箭头",toolMosaic:"马赛克",toolText:"文字",toolCrop:"裁剪",weight:"粗细",radius:"圆角",size:"大小",padding:"边距",fontSystem:"系统",fontSerif:"衬线",fontMono:"等宽",fontCursive:"手写",bold:"加粗",boldLetter:"B",italic:"斜体",italicLetter:"I",underline:"下划线",underlineLetter:"U",border:"边框",borderColor:"文本框边框颜色",addBorder:"添加边框",removeBorder:"移除边框",fill:"填充",fillColor:"文本框背景颜色",addFill:"添加背景填充",removeFill:"移除填充",add:"添加",zoomOut:"缩小",zoomIn:"放大",fit:"适应",fitHint:"适应区域",undo:"撤销",applyCrop:"应用裁剪",cancel:"取消",apply:"应用",hintSelected:"拖动可移动。拖动边角可调整大小。按 Delete / Backspace 可删除。点击外部可取消选择。",hintSelect:"点按形状即可选中。双击文字即可编辑。",hintText:"点击以放置文字标签。",hintCrop:"拖出一个矩形以设定裁剪区域。",hintDraw:"拖动以自由绘制。",hintShape:"在图片上拖动以绘制。",textPlaceholder:"输入后按 Enter…",loadFailed:"图片加载失败",exportFailed:"导出失败",clipboardUnsupported:"此浏览器不支持将图片复制到剪贴板",copyFailed:"复制失败",copied:"已复制到剪贴板",copyRefused:"复制失败(没有剪贴板权限?)"},attachment:{fallbackName:"附件",noLink:"此附件没有下载链接。",spreadsheetFailed:"无法打开电子表格,将改为直接打开文件。",workbookUnavailable:"此文件类型不支持电子表格预览,将改为直接打开文件。",noViewer:"没有可在此显示该文件的查看器,将在应用外打开。",loading:"正在加载文件",loadFailed:"文件加载失败。"},aboutApp:{title:e=>`关于${l(e)}`,version:e=>`版本 ${e}`,partOf:e=>`属于 ${e} 桌面环境`,shellVersion:e=>`外壳 v${e}`,spreadsheet:"多工作表电子表格编辑器,支持导入和导出 CSV / TSV。",notepad:"带颜色标记的便笺,支持清单、桌面便签和实体自动链接。",documents:"信纸版面的编辑器,适用于 Word 文档和纯文本文件,支持图片、列表和对齐。",preview:"PDF 文档、图片、DXF 图纸和 3D 模型的查看器,支持带对象捕捉的 CAD 式测量和类似 AutoCAD 的命令栏。",files:"个人文件管理器,支持文件夹、上传、配额、回收站和桌面快捷文件夹。",browser:"简洁的网页浏览器,带书签、历史记录和导航栏。"}}}var p=c;export{i as ZH_HANS_REVIEWED_SECTIONS,p as default,c as zhHansStrings};
package/dist/map/index.js CHANGED
@@ -1,21 +1,21 @@
1
1
  "use client";
2
- import{Button_default as e}from"../chunk-DELNCIUK.js";import"../chunk-RDLWLATO.js";import{rootIsDark as t,ROOT_THEME_ATTRIBUTES as n}from"../chunk-7IQ3B77H.js";import"../chunk-D65T4H6J.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import{Icon as r}from"../chunk-YT4B3NSV.js";import{useShellStrings as o}from"../chunk-HQLDTFAF.js";import"../chunk-C3QOHMR6.js";import{SpinnerRing as a}from"../chunk-2J6F4EE7.js";import{useRef as l,useState as s,useEffect as i,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var y="maplibregl-compact-show";function b(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(y)&&(e.classList.remove(y),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x=20,v=12,w=480,k={center:[0,0],left:[x,0],right:[-20,0],top:[0,x],"top-left":[0,x],"top-right":[0,x],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},N=(e,t=12)=>Math.max(0,Math.floor(e-t-v-x-10-16));function M(e,t,n,r=12){const o=e.y-x-r,a=n.height-e.y-x-v,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<v?(i="-left",c=Math.max(0,v-e.x)):e.x+t.width/2>n.width-v&&(i="-right",c=-Math.max(0,e.x-(n.width-v))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var C="maplibre-gl-worker.mjs",L=e=>`/maplibre-gl/${e}/${C}`,E=null;function $(){return E??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(L(e.getVersion())),e)).catch(e=>{throw E=null,e}),E}var S=24,j=28,A=29;function B(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function z(e){const t=Math.max(j,12+8*e.length);return t+t%2}var T=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function F(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var O=e=>T(e.x,e.y,e.width,e.height);function R(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(F(O(e[t]),O(e[n])))return[e[t],e[n]];return null}function K(e,t=[]){const n=[],r=e=>t.some(t=>F(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:j,height:j,under:0}));for(let e=R(o);e;e=R(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=z(B(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(O(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=T(t.x,t.y,S,S),l=o.find(t=>F(O(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>F(O(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:S,height:S,under:0})}return{groups:[...o,...a],hidden:n}}function W(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function q(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:n}),()=>t.disconnect()}var H=t;var _=(...e)=>e.filter(Boolean).join(" "),I=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function D(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!I.test(r.slice(7))})}var P="ring-2 ring-gray-900 ring-offset-2",Z={portal:{frame:e=>_("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>_("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return _("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!D(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":P),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>_("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!D(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>_("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&P),badge:e=>_("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-white text-gray-900"),iconHost:"contents"},site:{frame:e=>_("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>_("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>_("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>_("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>_("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon"}},G="routes",Q=["routes-road","routes-estimate"];function J(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),U(n)}function U(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var V={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},X={center:[30,20],zoom:1};var Y="http://www.w3.org/2000/svg",ee=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,te=(...e)=>e.filter(Boolean).join(" ");function ne(e){const t=document.createElementNS(Y,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(Y,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function re(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function oe({pins:t,selectedKey:n,focus:r,onSelect:a,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:v,marks:w,groupCrowded:C=!1,noun:L,highlightKey:E=null,picking:A=!1,onPick:z,card:T,cardMinMapWidth:F=480,fullScreen:O,initialView:R=X,cooperativeGestures:_=!1,look:I="portal",theme:D}){const P=o().map,Y=l(null),oe=l(null),se=l(null),ie=l(null),ce=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,ye]=s(!1),[be,xe]=s(!1),ve=d(q,H,()=>!1),we=D??(ve?"dark":"light"),ke=Z[I],Ne=l({onSelect:a,onPick:z,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:P,noun:L,looks:ke});i(()=>{Ne.current={onSelect:a,onPick:z,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:P,noun:L,looks:ke}});const Me=c(()=>{const e=se.current,{pins:t,selectedKey:n}=Ne.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:ee()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=se.current,r=ie.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>W(e,s.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,i))),duration:ee()?0:600})},[]),Ee=c(()=>{const e=se.current,t=ie.current;if(!e||!t||!Y.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...Y.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=K([...ue.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ue.current.get(r.keys[0]):null;if(l){d(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)d(ue.current.get(e).button,!1);const i=r.keys.join(" ");let m=de.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ue.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ue.current.get(e)),g=r.stops.length>0?B(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const y=m.button.firstElementChild;y.textContent=g;const b=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));y.className!==b&&(y.className=b),p.set(i,m)}for(const e of i.hidden)d(ue.current.get(e).button,!1);for(const[e,t]of de.current)p.has(e)||t.marker.remove();de.current=p}if(me.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ue.current.get(r):void 0,n=r?pe.current.get(r):void 0,o=e?{at:ue.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?j:S),height:t.button.offsetHeight||(null!=t.pin.stop?j:S)}:n?{at:n.mark,width:n.element.offsetWidth||j,height:n.element.offsetHeight||j}:null,a=me.current.getElement();a.style.display=o?"":"none",o&&(me.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);i(()=>{if(Ee(),!Y.current)return;const e=new ResizeObserver(()=>Ee());e.observe(Y.current);for(const t of Y.current.children)t.contains(oe.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await $();if(e||!oe.current)return;ie.current=o,t=new o.Map({container:oe.current,style:V[we],center:R.center,zoom:R.zoom,attributionControl:v?{compact:!0,customAttribution:v}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===_?window.matchMedia("(pointer: coarse)").matches:_}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(R.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",Ee),t.on("moveend",Ee),t.on("resize",Ee),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(oe.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(oe.current),se.current=t,ye(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),se.current=null}},[]);const $e=l(we);i(()=>{fe&&se.current&&$e.current!==we&&($e.current=we,se.current.setStyle(V[we]))},[fe,we]),i(()=>{const e=se.current,n=ie.current;if(!fe||!e||!n)return;ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=ke.pinButton(o,C);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const s=document.createElement("span");if(re(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(ne(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ke.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),ce.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,re(r,t.data),r.className=ke.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),ce.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),pe.current.set(t.key,{mark:t,element:r})}Ee()},[fe,t,w,C,Ee,I]),i(()=>{fe&&Ee()},[fe,n,E,Ee]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=se.current,n=ie.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[fe,t,w,x]),i(()=>{const e=se.current;if(!fe||!e)return;const t=(y??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),U(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?J(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(G);if(s&&(s.attribution||"")!==n){for(const t of Q)e.getLayer(t)&&e.removeLayer(t);e.removeSource(G)}const i=e.getSource(G);i?i.setData(o):e.addSource(G,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:G,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:G,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[fe,y,we]),i(()=>{const e=se.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=C?W(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};ee()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[Se,je]=s(!1);i(()=>{const e=Y.current;if(!e)return;const t=()=>je(e.clientWidth<F);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[F]);const Ae=n?t.find(e=>e.key===n)??null:null,Be=Ae?.key??null,ze=Ae?.lng??0,Te=Ae?.lat??0,Fe=fe&&!Se&&null!=T&&!!Ae,[Oe,Re]=s(null);i(()=>{const e=se.current,t=ie.current;if(!(Fe&&e&&t&&Be))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:k,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([ze,Te]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip"),s=Ne.current.looks===Z.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),Re(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),Y.current)+8,s=`${N(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=M(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:ee()?0:250}),Ee()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ue.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),Re(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(Be)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Fe,Be,ze,Te,Ee]);const Ke=O?.active??!1,We=l(O?.onChange);i(()=>{We.current=O?.onChange}),i(()=>{if(!O)return;const e=document.documentElement;Ke&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Ke&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Ke]);const qe=!!O;return i(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||We.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:Y,className:te(ke.frame(A),g),children:[
3
- /* @__PURE__ */h("div",{className:ke.fill,children:/* @__PURE__ */h("div",{ref:oe,className:ke.box,role:"region","aria-label":u})}),be&&/* @__PURE__ */h("p",{className:ke.failed,children:P.failed}),O&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>O.onChange(!O.active),leftIcon:/* @__PURE__ */h(le,{leave:O.active}),children:O.active?P.leaveFullScreen:P.fullScreen}),f,null!=T&&!Fe&&/* @__PURE__ */h("div",{"data-map-card":"",className:ke.cardInline,children:T}),Fe&&Oe?p(T,Oe):null,fe&&/* @__PURE__ */h(ae,{pins:t,hosts:he.current,hostClass:ke.iconHost})]})}function ae({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
2
+ import{Button_default as e}from"../chunk-DELNCIUK.js";import"../chunk-RDLWLATO.js";import{rootIsDark as t,ROOT_THEME_ATTRIBUTES as n}from"../chunk-7IQ3B77H.js";import"../chunk-D65T4H6J.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import{SpinnerRing as r}from"../chunk-2J6F4EE7.js";import{Icon as o}from"../chunk-TAUIAKU3.js";import{useShellStrings as a}from"../chunk-BLMDTJOK.js";import"../chunk-C3QOHMR6.js";import{useRef as l,useState as s,useEffect as i,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var y="maplibregl-compact-show";function b(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(y)&&(e.classList.remove(y),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x=20,v=12,w=480,k={center:[0,0],left:[x,0],right:[-20,0],top:[0,x],"top-left":[0,x],"top-right":[0,x],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},N=(e,t=12)=>Math.max(0,Math.floor(e-t-v-x-10-16));function M(e,t,n,r=12){const o=e.y-x-r,a=n.height-e.y-x-v,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<v?(i="-left",c=Math.max(0,v-e.x)):e.x+t.width/2>n.width-v&&(i="-right",c=-Math.max(0,e.x-(n.width-v))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var C="maplibre-gl-worker.mjs",L=e=>`/maplibre-gl/${e}/${C}`,E=null;function $(){return E??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(L(e.getVersion())),e)).catch(e=>{throw E=null,e}),E}var j=24,S=28,A=29;function B(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function z(e){const t=Math.max(S,12+8*e.length);return t+t%2}var O=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function T(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var R=e=>O(e.x,e.y,e.width,e.height);function F(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(T(R(e[t]),R(e[n])))return[e[t],e[n]];return null}function K(e,t=[]){const n=[],r=e=>t.some(t=>T(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:S,height:S,under:0}));for(let e=F(o);e;e=F(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=z(B(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(R(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=O(t.x,t.y,j,j),l=o.find(t=>T(R(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>T(R(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:j,height:j,under:0})}return{groups:[...o,...a],hidden:n}}function W(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function q(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:n}),()=>t.disconnect()}var I=t;var _=(...e)=>e.filter(Boolean).join(" "),H=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function D(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!H.test(r.slice(7))})}var P="ring-2 ring-gray-900 ring-offset-2",U={portal:{frame:e=>_("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>_("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return _("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!D(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":P),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>_("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!D(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>_("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&P),badge:e=>_("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-white text-gray-900"),iconHost:"contents"},site:{frame:e=>_("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>_("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>_("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>_("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>_("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon"}},Z="routes",G=["routes-road","routes-estimate"];function J(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),Q(n)}function Q(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var V={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},X={center:[30,20],zoom:1};var Y="http://www.w3.org/2000/svg",ee=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,te=(...e)=>e.filter(Boolean).join(" ");function ne(e){const t=document.createElementNS(Y,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(Y,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function re(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function oe({pins:t,selectedKey:n,focus:r,onSelect:o,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:v,marks:w,groupCrowded:C=!1,noun:L,highlightKey:E=null,picking:A=!1,onPick:z,card:O,cardMinMapWidth:T=480,fullScreen:R,initialView:F=X,cooperativeGestures:_=!1,look:H="portal",theme:D}){const P=a().map,Y=l(null),oe=l(null),se=l(null),ie=l(null),ce=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,ye]=s(!1),[be,xe]=s(!1),ve=d(q,I,()=>!1),we=D??(ve?"dark":"light"),ke=U[H],Ne=l({onSelect:o,onPick:z,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:P,noun:L,looks:ke});i(()=>{Ne.current={onSelect:o,onPick:z,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:P,noun:L,looks:ke}});const Me=c(()=>{const e=se.current,{pins:t,selectedKey:n}=Ne.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:ee()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=se.current,r=ie.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>W(e,s.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,i))),duration:ee()?0:600})},[]),Ee=c(()=>{const e=se.current,t=ie.current;if(!e||!t||!Y.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...Y.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=K([...ue.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ue.current.get(r.keys[0]):null;if(l){d(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)d(ue.current.get(e).button,!1);const i=r.keys.join(" ");let m=de.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ue.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ue.current.get(e)),g=r.stops.length>0?B(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const y=m.button.firstElementChild;y.textContent=g;const b=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));y.className!==b&&(y.className=b),p.set(i,m)}for(const e of i.hidden)d(ue.current.get(e).button,!1);for(const[e,t]of de.current)p.has(e)||t.marker.remove();de.current=p}if(me.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ue.current.get(r):void 0,n=r?pe.current.get(r):void 0,o=e?{at:ue.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?S:j),height:t.button.offsetHeight||(null!=t.pin.stop?S:j)}:n?{at:n.mark,width:n.element.offsetWidth||S,height:n.element.offsetHeight||S}:null,a=me.current.getElement();a.style.display=o?"":"none",o&&(me.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);i(()=>{if(Ee(),!Y.current)return;const e=new ResizeObserver(()=>Ee());e.observe(Y.current);for(const t of Y.current.children)t.contains(oe.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await $();if(e||!oe.current)return;ie.current=o,t=new o.Map({container:oe.current,style:V[we],center:F.center,zoom:F.zoom,attributionControl:v?{compact:!0,customAttribution:v}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===_?window.matchMedia("(pointer: coarse)").matches:_}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(F.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",Ee),t.on("moveend",Ee),t.on("resize",Ee),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(oe.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(oe.current),se.current=t,ye(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),se.current=null}},[]);const $e=l(we);i(()=>{fe&&se.current&&$e.current!==we&&($e.current=we,se.current.setStyle(V[we]))},[fe,we]),i(()=>{const e=se.current,n=ie.current;if(!fe||!e||!n)return;ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=ke.pinButton(o,C);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const s=document.createElement("span");if(re(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(ne(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ke.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),ce.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,re(r,t.data),r.className=ke.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),ce.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),pe.current.set(t.key,{mark:t,element:r})}Ee()},[fe,t,w,C,Ee,H]),i(()=>{fe&&Ee()},[fe,n,E,Ee]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=se.current,n=ie.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[fe,t,w,x]),i(()=>{const e=se.current;if(!fe||!e)return;const t=(y??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),Q(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?J(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(Z);if(s&&(s.attribution||"")!==n){for(const t of G)e.getLayer(t)&&e.removeLayer(t);e.removeSource(Z)}const i=e.getSource(Z);i?i.setData(o):e.addSource(Z,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:Z,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:Z,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[fe,y,we]),i(()=>{const e=se.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=C?W(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};ee()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[je,Se]=s(!1);i(()=>{const e=Y.current;if(!e)return;const t=()=>Se(e.clientWidth<T);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[T]);const Ae=n?t.find(e=>e.key===n)??null:null,Be=Ae?.key??null,ze=Ae?.lng??0,Oe=Ae?.lat??0,Te=fe&&!je&&null!=O&&!!Ae,[Re,Fe]=s(null);i(()=>{const e=se.current,t=ie.current;if(!(Te&&e&&t&&Be))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:k,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([ze,Oe]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip"),s=Ne.current.looks===U.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),Fe(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),Y.current)+8,s=`${N(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=M(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:ee()?0:250}),Ee()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ue.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),Fe(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(Be)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Te,Be,ze,Oe,Ee]);const Ke=R?.active??!1,We=l(R?.onChange);i(()=>{We.current=R?.onChange}),i(()=>{if(!R)return;const e=document.documentElement;Ke&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Ke&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Ke]);const qe=!!R;return i(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||We.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:Y,className:te(ke.frame(A),g),children:[
3
+ /* @__PURE__ */h("div",{className:ke.fill,children:/* @__PURE__ */h("div",{ref:oe,className:ke.box,role:"region","aria-label":u})}),be&&/* @__PURE__ */h("p",{className:ke.failed,children:P.failed}),R&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>R.onChange(!R.active),leftIcon:/* @__PURE__ */h(le,{leave:R.active}),children:R.active?P.leaveFullScreen:P.fullScreen}),f,null!=O&&!Te&&/* @__PURE__ */h("div",{"data-map-card":"",className:ke.cardInline,children:O}),Te&&Re?p(O,Re):null,fe&&/* @__PURE__ */h(ae,{pins:t,hosts:he.current,hostClass:ke.iconHost})]})}function ae({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
4
4
  return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),p(e.iconNode,r,e.key)})})}function le({leave:e}){/* @__PURE__ */
5
- return h(r,e?{name:"collapse","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2}:{name:"expand","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2})}function se(){const[e,t]=s(null);return{highlightKey:e,pointAt:c(e=>{const n=()=>t(e),r=()=>t(t=>t===e?null:t);return{onMouseEnter:n,onMouseLeave:r,onFocus:n,onBlur:r}},[])}}var ie=3e3,ce=e=>!!e?.pending&&3e3,ue=e=>`${e.kind}:${e.id}`,de=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function pe(e){switch(e){case"located":return null;case"approximate":return"Approximate: only the suburb or postcode matched";case"pending":return"Locating";case"not_found":return"Not on the map: address not found";case"failed":return"Not on the map: the map service could not be reached";case"no_address":return"Not on the map: no city or postcode"}}var me={importer:{label:"Importer",tone:"bg-sky-600 text-white"},dealer:{label:"Dealer",tone:"bg-purple-600 text-white"},retail:{label:"Retail",tone:"bg-green-600 text-white"},supplier:{label:"Supplier",tone:"bg-sky-600 text-white"},delivery_location:{label:"Delivery location",tone:"bg-amber-600 text-white"},warehouse:{label:"Warehouse",tone:"bg-amber-600 text-white"}},he=["importer","dealer","retail","supplier","delivery_location","warehouse"];function ge(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var fe=(e,t=me)=>t[e]?.tone??"bg-gray-700 text-white",ye=(e,t=me)=>t[e]?.label??e,be=(e,t)=>fe(ge(e),t);function xe(e,t,n=me){return null!=t?String(t):(n[ge(e)]?.label??"").charAt(0).toUpperCase()}var ve=["delivery_location","warehouse"];function we(e,t=ve){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(ue(o),++r);return n}function ke(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)de(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Ne(e){const t=[`${e.onMap} on the map`];return e.approximate&&t.push(`${e.approximate} approximate`),e.pending&&t.push(`${e.pending} locating`),e.off&&t.push(`${e.off} not on the map`),t.join(" · ")}function Me(e){const t=[...new Set(e.filter(de).map(ge))];return[...he.filter(e=>t.includes(e)),...t.filter(e=>!he.includes(e))]}function Ce(e,t){return e.filter(e=>!de(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(ue(e)),r=pe(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:ue(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function Le({categories:e,palette:t=me,floating:n=!0}){return e.length<2?null:/* @__PURE__ */h("div",{className:(n?"absolute left-3 top-3 z-10 ":"")+"flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs text-gray-600 shadow-sm",children:e.map(e=>/* @__PURE__ */m("span",{className:"inline-flex items-center gap-2",children:[
6
- /* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${fe(e,t)}`}),ye(e,t)]},e))})}function Ee({point:t,number:n,onOpen:a,onClose:l,palette:s=me}){const i=pe(t.placement),c=ge(t),u=o().map;/* @__PURE__ */
5
+ return h(o,e?{name:"collapse","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2}:{name:"expand","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2})}function se(){const[e,t]=s(null);return{highlightKey:e,pointAt:c(e=>{const n=()=>t(e),r=()=>t(t=>t===e?null:t);return{onMouseEnter:n,onMouseLeave:r,onFocus:n,onBlur:r}},[])}}var ie=3e3,ce=e=>!!e?.pending&&3e3,ue=e=>`${e.kind}:${e.id}`,de=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function pe(e){switch(e){case"located":return null;case"approximate":return"Approximate: only the suburb or postcode matched";case"pending":return"Locating";case"not_found":return"Not on the map: address not found";case"failed":return"Not on the map: the map service could not be reached";case"no_address":return"Not on the map: no city or postcode"}}var me={importer:{label:"Importer",tone:"bg-sky-600 text-white"},dealer:{label:"Dealer",tone:"bg-purple-600 text-white"},retail:{label:"Retail",tone:"bg-green-600 text-white"},supplier:{label:"Supplier",tone:"bg-sky-600 text-white"},delivery_location:{label:"Delivery location",tone:"bg-amber-600 text-white"},warehouse:{label:"Warehouse",tone:"bg-amber-600 text-white"}},he=["importer","dealer","retail","supplier","delivery_location","warehouse"];function ge(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var fe=(e,t=me)=>t[e]?.tone??"bg-gray-700 text-white",ye=(e,t=me)=>t[e]?.label??e,be=(e,t)=>fe(ge(e),t);function xe(e,t,n=me){return null!=t?String(t):(n[ge(e)]?.label??"").charAt(0).toUpperCase()}var ve=["delivery_location","warehouse"];function we(e,t=ve){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(ue(o),++r);return n}function ke(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)de(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Ne(e){const t=[`${e.onMap} on the map`];return e.approximate&&t.push(`${e.approximate} approximate`),e.pending&&t.push(`${e.pending} locating`),e.off&&t.push(`${e.off} not on the map`),t.join(" · ")}function Me(e){const t=[...new Set(e.filter(de).map(ge))];return[...he.filter(e=>t.includes(e)),...t.filter(e=>!he.includes(e))]}function Ce(e,t){return e.filter(e=>!de(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(ue(e)),r=pe(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:ue(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function Le({categories:e,palette:t=me,floating:n=!0}){return e.length<2?null:/* @__PURE__ */h("div",{className:(n?"absolute left-3 top-3 z-10 ":"")+"flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs text-gray-600 shadow-sm",children:e.map(e=>/* @__PURE__ */m("span",{className:"inline-flex items-center gap-2",children:[
6
+ /* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${fe(e,t)}`}),ye(e,t)]},e))})}function Ee({point:t,number:n,onOpen:r,onClose:l,palette:s=me}){const i=pe(t.placement),c=ge(t),u=a().map;/* @__PURE__ */
7
7
  return m("section",{"aria-label":u.chosen(t.label),className:"absolute bottom-3 left-3 right-3 z-10 max-w-md space-y-2 rounded-lg border border-gray-200 bg-white p-3 shadow-(--elevation-panel)",children:[
8
8
  /* @__PURE__ */m("div",{className:"flex items-start justify-between gap-2",children:[
9
9
  /* @__PURE__ */m("div",{className:"min-w-0",children:[
10
10
  /* @__PURE__ */m("h3",{className:"text-sm font-semibold text-gray-900 [overflow-wrap:anywhere]",children:[null!=n&&/* @__PURE__ */m("span",{className:"mr-1 text-gray-400",children:[n,"."]}),t.label,t.code&&/* @__PURE__ */h("span",{className:"ml-2 text-xs font-normal text-gray-400",children:t.code})]}),
11
11
  /* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s[c]?ye(c,s):t.category})]}),
12
- /* @__PURE__ */h("button",{type:"button",onClick:l,"aria-label":u.closeCard,className:"rounded p-0.5 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */h(r,{name:"close","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2})})]}),
13
- /* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:t.address||"—"}),i&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i}),t.matched&&"approximate"===t.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",t.matched]}),a&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:a,children:u.openRecord})})]})}function $e(e,t,{staleTime:n}={}){return f({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>ce(e.state.data)})}function Se({queryKey:e,queryFn:t,refreshSignal:n,onOpen:r,ariaLabel:o,title:c="Locations",palette:d=me,numbers:p,className:g="",mapClassName:f="min-h-[240px] flex-1"}){const{data:y,isError:b,refetch:x}=$e(e,t,{staleTime:0}),v=l(!1);i(()=>{v.current?x():v.current=!0},[n]);const[w,k]=s(null),N=u(()=>y?.points??[],[y]),M=u(()=>p??we(N),[p,N]),C=u(()=>N.filter(de).map(e=>({key:ue(e),label:e.label,lat:e.lat,lng:e.lng,glyph:xe(e,M.get(ue(e))??null,d),tone:be(e,d),approximate:"approximate"===e.placement})),[N,M,d]),L=u(()=>Ce(N,M),[N,M]),E=u(()=>Me(N),[N]),$=y?.pending??0,S=N.find(e=>ue(e)===w)??null,j=S&&r?r(S):null;/* @__PURE__ */
12
+ /* @__PURE__ */h("button",{type:"button",onClick:l,"aria-label":u.closeCard,className:"rounded p-0.5 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */h(o,{name:"close","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2})})]}),
13
+ /* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:t.address||"—"}),i&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i}),t.matched&&"approximate"===t.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",t.matched]}),r&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:r,children:u.openRecord})})]})}function $e(e,t,{staleTime:n}={}){return f({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>ce(e.state.data)})}function je({queryKey:e,queryFn:t,refreshSignal:n,onOpen:o,ariaLabel:a,title:c="Locations",palette:d=me,numbers:p,className:g="",mapClassName:f="min-h-[240px] flex-1"}){const{data:y,isError:b,refetch:x}=$e(e,t,{staleTime:0}),v=l(!1);i(()=>{v.current?x():v.current=!0},[n]);const[w,k]=s(null),N=u(()=>y?.points??[],[y]),M=u(()=>p??we(N),[p,N]),C=u(()=>N.filter(de).map(e=>({key:ue(e),label:e.label,lat:e.lat,lng:e.lng,glyph:xe(e,M.get(ue(e))??null,d),tone:be(e,d),approximate:"approximate"===e.placement})),[N,M,d]),L=u(()=>Ce(N,M),[N,M]),E=u(()=>Me(N),[N]),$=y?.pending??0,j=N.find(e=>ue(e)===w)??null,S=j&&o?o(j):null;/* @__PURE__ */
14
14
  return m("section",{"aria-label":c,className:`flex min-w-0 flex-col ${g}`,children:[
15
15
  /* @__PURE__ */m("div",{className:"flex min-h-[30px] items-center justify-between mb-2",children:[
16
16
  /* @__PURE__ */h("h3",{className:"text-sm font-semibold text-gray-900",children:c}),y&&/* @__PURE__ */h("span",{className:"text-xs text-gray-500",children:Ne(ke(N))})]}),
17
- /* @__PURE__ */m(oe,{pins:C,selectedKey:w,focus:null,onSelect:k,ariaLabel:o,className:f,children:[
17
+ /* @__PURE__ */m(oe,{pins:C,selectedKey:w,focus:null,onSelect:k,ariaLabel:a,className:f,children:[
18
18
  /* @__PURE__ */m("div",{className:"absolute left-3 top-3 z-10 flex max-w-[70%] flex-col items-start gap-2",children:[
19
19
  /* @__PURE__ */h(Le,{categories:E,palette:d,floating:!1}),b&&/* @__PURE__ */m("div",{className:"flex items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 min-h-8 py-1 text-xs text-gray-600 shadow-sm",children:["Couldn’t load the locations.",
20
20
  /* @__PURE__ */h("button",{type:"button",onClick:()=>{x()},className:"font-medium text-blue-600 hover:text-blue-800 hover:underline",children:"Try again"})]}),!b&&($>0||L.length>0)&&/* @__PURE__ */m("div",{className:"max-w-full space-y-0.5 rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs shadow-sm","aria-live":"polite",children:[$>0&&/* @__PURE__ */m("p",{className:"flex items-center gap-2 text-gray-500",children:[
21
- /* @__PURE__ */h(a,{}),"Locating ",$," address",1===$?"":"es"]}),L.slice(0,3).map(e=>/* @__PURE__ */h("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),L.length>3&&/* @__PURE__ */m("p",{className:"text-gray-500",children:["+",L.length-3," more not on the map"]})]})]}),S&&/* @__PURE__ */h(Ee,{point:S,number:M.get(ue(S))??null,onOpen:j,onClose:()=>k(null),palette:d})]})]})}export{w as CARD_MIN_MAP_WIDTH,y as COMPACT_SHOW,oe as EntityMap,Se as LocationsMap,C as MAPLIBRE_WORKER_FILE,A as MAP_APART_PX,me as MAP_CATEGORIES,Z as MAP_LOOKS,j as MAP_STOP_PX,S as MAP_TARGET_PX,Le as MapLegend,ie as PENDING_POLL_MS,ve as SECONDARY_KINDS,Ee as SelectedCard,N as cardMaxHeight,ye as categoryLabel,fe as categoryTone,b as foldAttributionOnce,de as isOnMap,K as layoutPins,Me as legendCategories,$ as loadMapLibre,we as locationNumbers,L as mapLibreWorkerUrl,ce as mapPointsRefetchInterval,Ce as offMapNotes,ge as pinCategory,xe as pinGlyph,be as pinTone,M as placeCard,pe as placementNote,ue as pointKey,B as stopsLabel,ke as summarize,Ne as summaryText,se as useMapHighlight,$e as useMapPoints,W as zoomApart};
21
+ /* @__PURE__ */h(r,{}),"Locating ",$," address",1===$?"":"es"]}),L.slice(0,3).map(e=>/* @__PURE__ */h("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),L.length>3&&/* @__PURE__ */m("p",{className:"text-gray-500",children:["+",L.length-3," more not on the map"]})]})]}),j&&/* @__PURE__ */h(Ee,{point:j,number:M.get(ue(j))??null,onOpen:S,onClose:()=>k(null),palette:d})]})]})}export{w as CARD_MIN_MAP_WIDTH,y as COMPACT_SHOW,oe as EntityMap,je as LocationsMap,C as MAPLIBRE_WORKER_FILE,A as MAP_APART_PX,me as MAP_CATEGORIES,U as MAP_LOOKS,S as MAP_STOP_PX,j as MAP_TARGET_PX,Le as MapLegend,ie as PENDING_POLL_MS,ve as SECONDARY_KINDS,Ee as SelectedCard,N as cardMaxHeight,ye as categoryLabel,fe as categoryTone,b as foldAttributionOnce,de as isOnMap,K as layoutPins,Me as legendCategories,$ as loadMapLibre,we as locationNumbers,L as mapLibreWorkerUrl,ce as mapPointsRefetchInterval,Ce as offMapNotes,ge as pinCategory,xe as pinGlyph,be as pinTone,M as placeCard,pe as placementNote,ue as pointKey,B as stopsLabel,ke as summarize,Ne as summaryText,se as useMapHighlight,$e as useMapPoints,W as zoomApart};
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import{useBrowserLayoutEffect as e}from"../chunk-D65T4H6J.js";import{Icon as t}from"../chunk-YT4B3NSV.js";import{memo as r,useRef as a,useState as o,useMemo as s}from"react";import l from"react-markdown";import n from"remark-breaks";import m from"remark-gfm";import{jsx as d,jsxs as c}from"react/jsx-runtime";function i(){const e=this.data();(e.micromarkExtensions??=[]).push({disable:{null:["codeIndented","htmlFlow","htmlText","setextUnderline"]}})}var b={note:[m,n,i],article:[m,i]},x=({node:e,...t})=>/* @__PURE__ */d("a",{...t,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline break-all"}),g=({node:e,...t})=>/* @__PURE__ */d("code",{className:"rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.85em] text-gray-800",...t}),h=e=>({node:t,...r})=>/* @__PURE__ */d("pre",{className:`${e} overflow-x-auto rounded-lg border border-gray-200 bg-gray-50 font-mono text-xs [&>code]:bg-transparent [&>code]:p-0 [&>code]:[font-size:inherit]`,...r}),y={th:({node:e,...t})=>/* @__PURE__ */d("th",{className:"border border-gray-200 bg-gray-50 px-2 py-1 text-left font-semibold text-gray-700",...t}),td:({node:e,...t})=>/* @__PURE__ */d("td",{className:"border border-gray-200 px-2 py-1 align-top",...t})},p={a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"text-base font-semibold text-gray-900",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"text-sm font-semibold text-gray-900",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"text-sm font-semibold text-gray-700",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"text-sm font-semibold text-gray-700",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"text-sm font-semibold text-gray-700",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"list-disc pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"list-decimal pl-5",...t}),code:g,pre:h("p-2"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"border-l-2 border-gray-300 pl-3 text-gray-600",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"overflow-x-auto",children:/* @__PURE__ */d("table",{className:"text-xs border-collapse",...t})}),...y,img:({node:e,alt:t,...r})=>/* @__PURE__ */d("img",{...r,alt:t??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})};function f(e){return e?{...p,img:({node:t,src:r,alt:a,...o})=>{const s="string"==typeof r?r:void 0;/* @__PURE__ */
2
+ import{useBrowserLayoutEffect as e}from"../chunk-D65T4H6J.js";import{Icon as t}from"../chunk-TAUIAKU3.js";import{memo as r,useRef as a,useState as o,useMemo as s}from"react";import l from"react-markdown";import n from"remark-breaks";import m from"remark-gfm";import{jsx as d,jsxs as c}from"react/jsx-runtime";function i(){const e=this.data();(e.micromarkExtensions??=[]).push({disable:{null:["codeIndented","htmlFlow","htmlText","setextUnderline"]}})}var b={note:[m,n,i],article:[m,i]},x=({node:e,...t})=>/* @__PURE__ */d("a",{...t,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline break-all"}),g=({node:e,...t})=>/* @__PURE__ */d("code",{className:"rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.85em] text-gray-800",...t}),h=e=>({node:t,...r})=>/* @__PURE__ */d("pre",{className:`${e} overflow-x-auto rounded-lg border border-gray-200 bg-gray-50 font-mono text-xs [&>code]:bg-transparent [&>code]:p-0 [&>code]:[font-size:inherit]`,...r}),y={th:({node:e,...t})=>/* @__PURE__ */d("th",{className:"border border-gray-200 bg-gray-50 px-2 py-1 text-left font-semibold text-gray-700",...t}),td:({node:e,...t})=>/* @__PURE__ */d("td",{className:"border border-gray-200 px-2 py-1 align-top",...t})},p={a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"text-base font-semibold text-gray-900",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"text-sm font-semibold text-gray-900",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"text-sm font-semibold text-gray-700",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"text-sm font-semibold text-gray-700",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"text-sm font-semibold text-gray-700",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"list-disc pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"list-decimal pl-5",...t}),code:g,pre:h("p-2"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"border-l-2 border-gray-300 pl-3 text-gray-600",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"overflow-x-auto",children:/* @__PURE__ */d("table",{className:"text-xs border-collapse",...t})}),...y,img:({node:e,alt:t,...r})=>/* @__PURE__ */d("img",{...r,alt:t??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})};function f(e){return e?{...p,img:({node:t,src:r,alt:a,...o})=>{const s="string"==typeof r?r:void 0;/* @__PURE__ */
3
3
  return d("img",{...o,src:s?e(s):s,alt:a??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})}}:p}function u({src:e,alt:r}){const[a,s]=o(!1),l=(r??"").replace(/^screenshot:\s*/i,"");return!e||a?/* @__PURE__ */c("span",{className:"my-3 flex items-start gap-2 rounded-lg border border-dashed border-gray-300 bg-gray-50 px-3 py-3 text-gray-500",children:[
4
4
  /* @__PURE__ */d(t,{name:"camera",look:"mini",className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),
5
5
  /* @__PURE__ */d("span",{className:"text-xs",children:l||"Screenshot"})]}):/* @__PURE__ */d("img",{src:e,alt:r??"",loading:"lazy",onError:()=>s(!0),className:"my-3 block max-w-full rounded-lg border border-gray-200"})}function N(e){return{a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"mt-6 mb-3 text-xl font-semibold text-gray-900 first:mt-0",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"mt-6 mb-3 border-b border-gray-200 pb-2 text-lg font-semibold text-gray-900 first:mt-0",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"mt-5 mb-2 text-base font-semibold text-gray-900 first:mt-0",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"mt-4 mb-2 text-sm font-semibold text-gray-900 first:mt-0",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"mt-4 mb-2 text-sm font-semibold text-gray-700 first:mt-0",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"mt-4 mb-2 text-sm font-semibold text-gray-700 first:mt-0",...t}),p:({node:e,...t})=>/* @__PURE__ */d("p",{className:"my-3 leading-relaxed",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"my-3 list-disc space-y-1 pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"my-3 list-decimal space-y-1 pl-5",...t}),li:({node:e,...t})=>/* @__PURE__ */d("li",{className:"leading-relaxed [&>p]:my-1",...t}),code:g,pre:h("my-3 p-3"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"my-3 rounded-r-lg border-l-4 border-blue-400/60 bg-blue-50 px-3 py-2 text-gray-700 [&>p]:my-1",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"my-4 border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"my-3 overflow-x-auto",children:/* @__PURE__ */d("table",{className:"border-collapse text-sm",...t})}),...y,img:({node:t,src:r,alt:a})=>{const o="string"==typeof r?r:void 0;/* @__PURE__ */
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{TabStrip as e}from"../chunk-3RSAW3BM.js";import{useShellLanguage as t}from"../chunk-R42GJPQL.js";import"../chunk-YDDG7MXB.js";import"../chunk-K73JEGD5.js";import{confirm as n}from"../chunk-VOUSFISE.js";import"../chunk-UVBK6YSR.js";import"../chunk-7IQ3B77H.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import"../chunk-YT4B3NSV.js";import{useShellStrings as i}from"../chunk-HQLDTFAF.js";import"../chunk-C3QOHMR6.js";import*as l from"react";import{createContext as c,memo as a,useRef as s,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as f,useState as p,useContext as k}from"react";import{useLocation as m,useNavigate as b}from"react-router-dom";import{jsx as v,Fragment as h,jsxs as g}from"react/jsx-runtime";var K=c(null),F=c(null),T=12;var A=(e,t)=>e.filter(e=>e!==t);function I(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function N(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let l={...e,tabs:i,activeKey:t.key,mounted:(c=e.mounted,a=t.key,c.includes(a)?c:[...c,a]),clock:r};var c,a;return l.closing&&l.closing!==t.key?l=M(l,l.closing):l.closing===t.key&&(l={...l,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=M(n,e[0].key)}return n}(l,n)}function j(e){let t={...e,activeKey:null};return t.closing&&(t=M(t,t.closing)),t}function M(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:A(e.mounted,t),dirty:A(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function w(e,t){switch(t.type){case"visit":return N(e,t.entry,t.maxTabs);case"transient":return j(e);case"close":{let n=e;for(const e of t.keys)n=M(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:A(e.dirty,t)}}(e,t.key,t.dirty)}}var C=e=>`${e.pathname}${e.search}`;function O(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function S({children:e,resolve:l,pinned:c=[],storageKey:a,maxTabs:k=12,enabled:h=!0,confirmDiscard:g}){const F=m(),T=b(),A=i().pageTabs,M=y(),S=s(l);S.current=l;const x=d(e=>{const t=S.current(e);return t?{key:t.key??e.pathname,path:C(e),title:t.title}:null},[]),{language:B}=t(),[L,D]=f(w,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const l=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),c=[];for(const e of i.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,i=t(r);if(!i||c.some(e=>e.key===i.key))continue;const a=!l&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;c.push({key:i.key,path:r,title:a||i.title,titleFrom:a?"page":"route",pinned:!1,lastActive:0})}return c}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(a),e=>x(O(e)),B);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:I(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},c.map(e=>x(O(e))).filter(e=>Boolean(e)));const n=h?x(F):null;return t=n?N(t,n,k):j(t),t}),E=s(L);E.current=L;const R=s(/* @__PURE__ */new Map),$=h?x(F):null,J=$?.key??null;r(()=>{if(!h)return;const e=x(F);e?(R.current.set(e.key,F),D({type:"visit",entry:e,maxTabs:k})):D({type:"transient"})},[F,h,k,x]),o(()=>{const e=new Set(L.tabs.map(e=>e.key));for(const t of R.current.keys())e.has(t)||R.current.delete(t)},[L.tabs]);const Q=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(n)}(L,B),[L,B]);o(()=>{if(a)try{localStorage.setItem(a,Q)}catch{}},[Q,a]);const G=L.dirty.length>0;o(()=>{if(!G)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[G]);const H=s(/* @__PURE__ */new Map),P=d((e,t)=>{let n=H.current.get(e);return void 0===n&&(n=H.current.size,H.current.set(e,n)),`${M}-page-${t}-${n}`},[M]),V=d(e=>g?g(e):n({title:A.discardTitle,message:1===e.length?A.discardOne:A.discardCount?.(e.length)??`${e.length} ${A.discardMany}`,confirmLabel:A.discardConfirm,cancelLabel:A.keepEditing,variant:"warning"}),[g,A]),W=d(()=>{const e=E.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),Y=d((e,t,n)=>{const r=E.current,i=r.activeKey;if(!i||!e.includes(i))return void D({type:"close",keys:e,closing:null});let l=t;if(!l){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},c=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;l=(c??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??W()}D({type:"close",keys:e.filter(e=>e!==i),closing:i}),T(l)},[T,W]),U=d(async(e,t={})=>{const n=E.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&T(t.to),!1):!(!t.force&&E.current.dirty.includes(e)&&!await V([n]))&&(!!E.current.tabs.some(t=>t.key===e)&&(Y([e],t.to),!0))},[V,Y,T]),X=d(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(E.current,e,t);const r=E.current.tabs.filter(e=>n.includes(e.key)&&E.current.dirty.includes(e.key));r.length&&!await V(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(E.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&Y(n,void 0,"all"===e?null:t)},[V,Y]),z=d(e=>{const t=E.current.tabs.find(t=>t.key===e);t&&e!==E.current.activeKey&&T(t.path)},[T]),q=d((e,t)=>D({type:"title",key:e,title:t}),[]),Z=d((e,t)=>D({type:"dirty",key:e,dirty:t}),[]),[_,ee]=p({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>x(e)?.key??null,[x]),re=d(e=>R.current.get(e),[]),ie=u(()=>h?L.tabs.filter(e=>e.key!==L.closing):[],[h,L.tabs,L.closing]),le=u(()=>({enabled:h,state:L,currentKey:J,resolve:l,keyFor:ne,locationFor:re,idFor:P,activate:z,close:U,closeMany:X,setTitle:q,setDirty:Z,copies:_,setCopy:te,visibleTabs:ie}),[h,L,J,l,ne,re,P,z,U,X,q,Z,_,te,ie]);/* @__PURE__ */
3
- return v(K.Provider,{value:le,children:e})}var x=l.Activity,B=Boolean(x);function L({active:e,children:t}){return x?/* @__PURE__ */v(x,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */v(h,{children:t})}var D=a(function({tabKey:e,active:t,location:n,render:i,className:l,panelId:c,tabId:a}){const y=s(null),d=s(t),f=s(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of f.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):f.current.delete(e)},[t]),o(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&f.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const p=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
4
- return v("div",{ref:y,role:c?"tabpanel":void 0,id:c,"aria-labelledby":a,hidden:!t,style:t?void 0:{display:"none"},className:l,"data-page-tab":e,children:/* @__PURE__ */v(F.Provider,{value:p,children:/* @__PURE__ */v(L,{active:t,children:i(n)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),E="\0transient";function R({children:e,frameClassName:t}){const n=k(K),r=m();if(!n||!n.enabled)/* @__PURE__ */
5
- return v("div",{className:t,children:e(r)},E);const{state:i,currentKey:l,locationFor:c,idFor:a}=n,s=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return l&&!s.includes(l)&&s.push(l),/* @__PURE__ */g(h,{children:[s.map(n=>{const i=n===l,s=i?r:c(n);return s?/* @__PURE__ */v(D,{tabKey:n,active:i,location:s,render:e,className:t,panelId:a(n,"panel"),tabId:a(n,"tab")},n):null}),!l&&/* @__PURE__ */v(D,{tabKey:E,active:!0,location:r,render:e,className:t},E)]})}function $({className:t,activeClassName:n,end:r}){const l=k(K),c=i().pageTabs;if(!l||!l.enabled)return null;const{visibleTabs:a,state:s,idFor:o,activate:u,close:y,closeMany:d,resolve:f}=l;/* @__PURE__ */
6
- return v(e,{tabs:a.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:s.dirty.includes(e.key),copy:l.copies[e.key],icon:f(O(e.path))?.icon})),activeKey:l.currentKey??null,idFor:o,panelMounted:e=>s.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:c.label,className:t,activeClassName:n,end:r})}var J={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function Q(){const e=k(K);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:J}function G(){const e=k(K),t=k(F),n=b();return{key:e?.enabled&&t?t.key:null,close:d(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function H(e){const t=k(K),n=k(F),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function P(e){const t=k(K),n=k(F),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function V(e){const t=k(K),n=k(F),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{T as DEFAULT_MAX_TABS,B as PAGE_TABS_PAUSE_HIDDEN,$ as PageTabBar,R as PageTabsOutlet,S as PageTabsProvider,O as parseTabPath,G as usePageTab,P as usePageTabCopy,V as usePageTabDirty,H as usePageTabTitle,Q as usePageTabs};
2
+ import{TabStrip as e}from"../chunk-QGMHTEJ2.js";import{useShellLanguage as t}from"../chunk-NKOABAWD.js";import"../chunk-GEHGFIQ6.js";import"../chunk-4AHFABYE.js";import{confirm as n}from"../chunk-J5USRYOM.js";import"../chunk-UVBK6YSR.js";import"../chunk-7IQ3B77H.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import"../chunk-TAUIAKU3.js";import{useShellStrings as i}from"../chunk-BLMDTJOK.js";import"../chunk-C3QOHMR6.js";import*as l from"react";import{createContext as c,memo as a,useRef as s,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as f,useState as p,useContext as k}from"react";import{useLocation as m,useNavigate as b}from"react-router-dom";import{jsx as v,Fragment as h,jsxs as g}from"react/jsx-runtime";var K=c(null),A=c(null),F=12;var T=(e,t)=>e.filter(e=>e!==t);function I(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function M(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let l={...e,tabs:i,activeKey:t.key,mounted:(c=e.mounted,a=t.key,c.includes(a)?c:[...c,a]),clock:r};var c,a;return l.closing&&l.closing!==t.key?l=j(l,l.closing):l.closing===t.key&&(l={...l,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=j(n,e[0].key)}return n}(l,n)}function N(e){let t={...e,activeKey:null};return t.closing&&(t=j(t,t.closing)),t}function j(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:T(e.mounted,t),dirty:T(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function w(e,t){switch(t.type){case"visit":return M(e,t.entry,t.maxTabs);case"transient":return N(e);case"close":{let n=e;for(const e of t.keys)n=j(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:T(e.dirty,t)}}(e,t.key,t.dirty)}}var O=e=>`${e.pathname}${e.search}`;function C(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function x({children:e,resolve:l,pinned:c=[],storageKey:a,maxTabs:k=12,enabled:h=!0,confirmDiscard:g}){const A=m(),F=b(),T=i().pageTabs,j=y(),x=s(l);x.current=l;const B=d(e=>{const t=x.current(e);return t?{key:t.key??e.pathname,path:O(e),title:t.title}:null},[]),{language:E}=t(),[L,S]=f(w,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const l=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),c=[];for(const e of i.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,i=t(r);if(!i||c.some(e=>e.key===i.key))continue;const a=!l&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;c.push({key:i.key,path:r,title:a||i.title,titleFrom:a?"page":"route",pinned:!1,lastActive:0})}return c}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(a),e=>B(C(e)),E);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:I(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},c.map(e=>B(C(e))).filter(e=>Boolean(e)));const n=h?B(A):null;return t=n?M(t,n,k):N(t),t}),D=s(L);D.current=L;const J=s(/* @__PURE__ */new Map),R=h?B(A):null,$=R?.key??null;r(()=>{if(!h)return;const e=B(A);e?(J.current.set(e.key,A),S({type:"visit",entry:e,maxTabs:k})):S({type:"transient"})},[A,h,k,B]),o(()=>{const e=new Set(L.tabs.map(e=>e.key));for(const t of J.current.keys())e.has(t)||J.current.delete(t)},[L.tabs]);const H=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(n)}(L,E),[L,E]);o(()=>{if(a)try{localStorage.setItem(a,H)}catch{}},[H,a]);const Q=L.dirty.length>0;o(()=>{if(!Q)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[Q]);const G=s(/* @__PURE__ */new Map),U=d((e,t)=>{let n=G.current.get(e);return void 0===n&&(n=G.current.size,G.current.set(e,n)),`${j}-page-${t}-${n}`},[j]),P=d(e=>g?g(e):n({title:T.discardTitle,message:1===e.length?T.discardOne:T.discardCount?.(e.length)??`${e.length} ${T.discardMany}`,confirmLabel:T.discardConfirm,cancelLabel:T.keepEditing,variant:"warning"}),[g,T]),W=d(()=>{const e=D.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),Y=d((e,t,n)=>{const r=D.current,i=r.activeKey;if(!i||!e.includes(i))return void S({type:"close",keys:e,closing:null});let l=t;if(!l){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},c=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;l=(c??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??W()}S({type:"close",keys:e.filter(e=>e!==i),closing:i}),F(l)},[F,W]),V=d(async(e,t={})=>{const n=D.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&F(t.to),!1):!(!t.force&&D.current.dirty.includes(e)&&!await P([n]))&&(!!D.current.tabs.some(t=>t.key===e)&&(Y([e],t.to),!0))},[P,Y,F]),z=d(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(D.current,e,t);const r=D.current.tabs.filter(e=>n.includes(e.key)&&D.current.dirty.includes(e.key));r.length&&!await P(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(D.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&Y(n,void 0,"all"===e?null:t)},[P,Y]),X=d(e=>{const t=D.current.tabs.find(t=>t.key===e);t&&e!==D.current.activeKey&&F(t.path)},[F]),q=d((e,t)=>S({type:"title",key:e,title:t}),[]),Z=d((e,t)=>S({type:"dirty",key:e,dirty:t}),[]),[_,ee]=p({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>B(e)?.key??null,[B]),re=d(e=>J.current.get(e),[]),ie=u(()=>h?L.tabs.filter(e=>e.key!==L.closing):[],[h,L.tabs,L.closing]),le=u(()=>({enabled:h,state:L,currentKey:$,resolve:l,keyFor:ne,locationFor:re,idFor:U,activate:X,close:V,closeMany:z,setTitle:q,setDirty:Z,copies:_,setCopy:te,visibleTabs:ie}),[h,L,$,l,ne,re,U,X,V,z,q,Z,_,te,ie]);/* @__PURE__ */
3
+ return v(K.Provider,{value:le,children:e})}var B=l.Activity,E=Boolean(B);function L({active:e,children:t}){return B?/* @__PURE__ */v(B,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */v(h,{children:t})}var S=a(function({tabKey:e,active:t,location:n,render:i,className:l,panelId:c,tabId:a}){const y=s(null),d=s(t),f=s(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of f.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):f.current.delete(e)},[t]),o(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&f.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const p=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
4
+ return v("div",{ref:y,role:c?"tabpanel":void 0,id:c,"aria-labelledby":a,hidden:!t,style:t?void 0:{display:"none"},className:l,"data-page-tab":e,children:/* @__PURE__ */v(A.Provider,{value:p,children:/* @__PURE__ */v(L,{active:t,children:i(n)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),D="\0transient";function J({children:e,frameClassName:t}){const n=k(K),r=m();if(!n||!n.enabled)/* @__PURE__ */
5
+ return v("div",{className:t,children:e(r)},D);const{state:i,currentKey:l,locationFor:c,idFor:a}=n,s=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return l&&!s.includes(l)&&s.push(l),/* @__PURE__ */g(h,{children:[s.map(n=>{const i=n===l,s=i?r:c(n);return s?/* @__PURE__ */v(S,{tabKey:n,active:i,location:s,render:e,className:t,panelId:a(n,"panel"),tabId:a(n,"tab")},n):null}),!l&&/* @__PURE__ */v(S,{tabKey:D,active:!0,location:r,render:e,className:t},D)]})}function R({className:t,activeClassName:n,end:r}){const l=k(K),c=i().pageTabs;if(!l||!l.enabled)return null;const{visibleTabs:a,state:s,idFor:o,activate:u,close:y,closeMany:d,resolve:f}=l;/* @__PURE__ */
6
+ return v(e,{tabs:a.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:s.dirty.includes(e.key),copy:l.copies[e.key],icon:f(C(e.path))?.icon})),activeKey:l.currentKey??null,idFor:o,panelMounted:e=>s.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:c.label,className:t,activeClassName:n,end:r})}var $={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function H(){const e=k(K);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:$}function Q(){const e=k(K),t=k(A),n=b();return{key:e?.enabled&&t?t.key:null,close:d(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function G(e){const t=k(K),n=k(A),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function U(e){const t=k(K),n=k(A),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function P(e){const t=k(K),n=k(A),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{F as DEFAULT_MAX_TABS,E as PAGE_TABS_PAUSE_HIDDEN,R as PageTabBar,J as PageTabsOutlet,x as PageTabsProvider,C as parseTabPath,Q as usePageTab,U as usePageTabCopy,P as usePageTabDirty,G as usePageTabTitle,H as usePageTabs};
package/dist/pdf/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-EUW7YVAH.js"));export{e as PdfViewer};
2
+ import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-NW6NQ6NP.js"));export{e as PdfViewer};
@@ -606,6 +606,8 @@ interface ShellStrings {
606
606
  link: string;
607
607
  sup: string;
608
608
  sub: string;
609
+ /** Inline code (`offered` has `code`). */
610
+ code: string;
609
611
  /** The alignment group's accessible name. */
610
612
  alignment: string;
611
613
  alignLeft: string;
@@ -614,6 +616,8 @@ interface ShellStrings {
614
616
  alignJustify: string;
615
617
  bullet: string;
616
618
  number: string;
619
+ /** A quoted paragraph (`offered` has `quote`). */
620
+ quote: string;
617
621
  /** The letter case group's accessible name. */
618
622
  letterCase: string;
619
623
  caseNone: string;
@@ -1 +1 @@
1
- export{startClientTelemetry}from"../chunk-FDZP4YPX.js";import"../chunk-RC27X4SF.js";import"../chunk-KNUR2UEG.js";
1
+ export{startClientTelemetry}from"../chunk-5H3MONF5.js";import"../chunk-T6D5LTQR.js";import"../chunk-KNUR2UEG.js";
@@ -1,9 +1,9 @@
1
- export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AlignmentGrid, k as AlignmentGridProps, l as AlignmentPoint, m as AngleScale, n as AppUpdateBanner, o as AppUpdateBannerProps, p as AttachButton, q as AttachButtonProps, r as AttachmentDropZone, s as AttachmentDropZoneProps, t as AttachmentList, u as AttachmentListProps, v as AuthScreen, w as AuthScreenProps, x as Avatar, y as AvatarGroup, z as AvatarGroupProps, B as AvatarProps, D as AvatarSize, E as AvatarStatus, F as BORDER_LINE_STYLES, G as BORDER_WIDTHS, H as BackgroundVariant, I as BandScale, J as Banner, K as BannerEmphasis, L as BannerProps, M as BannerTone, N as BorderInput, O as BorderInputProps, Q as BorderLineStyle, R as BorderRole, T as BorderValue, U as Bounds, V as BoxPlotBox, W as BoxPlotChart, X as BoxPlotChartProps, Y as BrandAssetEditor, Z as BrandAssetEditorProps, _ as BrandAssetPreview, $ as BrandMark, a0 as BrandMarkProps, a1 as BrandMarkSlot, a2 as BrandMarkSurface, a3 as BrandMarkTreatment, a4 as BreadcrumbItem, a5 as Breadcrumbs, a6 as BreadcrumbsProps, a7 as BudgetBar, a8 as BudgetBarProps, a9 as BudgetState, aa as Button, ab as ButtonClassesOptions, ac as ButtonProps, ad as ButtonSize, ae as ButtonVariant, af as CHART_INK, ag as CMD_A, ah as CMD_DOT, ai as CMD_ENTER, aj as CMD_K, ak as CMD_S, al as COLUMN_COUNT_MAX, am as COLUMN_COUNT_WIDTHS, an as COLUMN_SHARES_EQUAL, ao as COLUMN_SHARE_MIN, ap as CONTROL_HEIGHTS, aq as CORNERS, ar as CORNERS_FOR_THEME, as as Calendar, at as CalendarMode, au as CalendarProps, av as Candle, aw as CandlestickChart, ax as CandlestickChartProps, ay as Card, az as CardPadding, aA as CardProps, aB as CardTone, aC as CartesianPlot, aD as CartesianPlotProps, aE as CellStyle, aF as ChartBackgroundVariant, aG as ChartBrush, aH as ChartBrushProps, aI as ChartCurve, aJ as ChartDefs, aK as ChartDefsProps, aL as ChartDot, aM as ChartDotProps, aN as ChartDotVariant, aO as ChartFillVariant, aP as ChartFrame, aQ as ChartFrameProps, aR as ChartHighlightProvider, aS as ChartLegendEntry, aT as ChartLegendSwatch, aU as ChartRange, aV as ChartReferenceLine, aW as ChartRevealDirection, aX as ChartSkeleton, aY as ChartSkeletonProps, aZ as ChartStatusTone, a_ as ChartStrokeVariant, a$ as ChartTooltip, b0 as ChartTooltipProps, b1 as ChartTooltipRow, b2 as ChatTemplate, b3 as Checkbox, b4 as CheckboxProps, b5 as CheckoutTemplate, b6 as ChordChart, b7 as ChordChartProps, b8 as ColorPicker, b9 as ColorPickerPanel, ba as ColorPickerPanelProps, bb as ColorPickerProps, bc as ColorPreset, bd as ColorSwatch, be as ColorSwatchProps, bf as ColorSwatchSize, bg as ColoredBadge, bh as ColoredBadgeProps, bi as ColumnChart, bj as ColumnChartProps, C as ColumnDef, bk as ColumnSeries, bl as ColumnShares, bm as ComposerAttachments, bn as ComposerAttachmentsProps, bo as ConfirmProvider, bp as ContainerFillChart, bq as ContainerFillChartProps, br as ContainerFillItem, bs as ContextMenu, bt as ContextMenuPoint, bu as ContextMenuProps, bv as ContextMenuState, bw as ControlSize, bx as CornerOption, by as Corners, bz as CornersInput, bA as CornersInputProps, bB as CountBadge, bC as CountBadgeProps, bD as CountBadgeTone, bE as Curve, bF as DAY_MS, bG as DashboardTemplate, bH as DataTable, bI as DataTableColumn, bJ as DataTableColumnGroup, bK as DataTableHeader, bL as DataTablePage, bM as DataTableProps, bN as DataTableRowLink, bO as DataTableRowProps, bP as DatePicker, bQ as DatePickerProps, bR as DateRangePicker, bS as DateRangePickerProps, bT as DateTimePicker, bU as DateTimePickerProps, bV as DescriptionColumns, bW as DescriptionItem, bX as DescriptionList, bY as DescriptionListProps, bZ as Dialog, b_ as DialogProps, b$ as DialogSize, c0 as DisplayChipItem, c1 as DisplayChips, c2 as DisplayChipsProps, c3 as Divider, c4 as DividerProps, c5 as DividerSpacing, c6 as Drawer, c7 as DrawerProps, c8 as DrawerSide, c9 as DrawerSize, ca as DropdownMenu, cb as DropdownMenuAlign, cc as DropdownMenuCheckboxItem, cd as DropdownMenuDividerItem, ce as DropdownMenuEntry, cf as DropdownMenuFooterApi, cg as DropdownMenuItem, ch as DropdownMenuLabelItem, ci as DropdownMenuLinkItem, cj as DropdownMenuProps, ck as DropdownMenuRadioItem, cl as DropdownMenuSide, cm as DropdownMenuStatusItem, cn as DropdownPositionOptions, co as ELEVATION_LEVELS, cp as ENGLISH, cq as ENTER, cr as EditableGrid, cs as EditableGridProps, ct as ElevationLevel, cu as EmailTemplate, cv as EmptyState, cw as EmptyStateProps, cx as EmptyValue, cy as EmptyValueProps, cz as ErrorBoundary, cA as ErrorBoundaryProps, cB as ErrorPage, cC as ErrorPageProps, cD as FONT_WEIGHTS, cE as FileIntake, cF as FilePicker, cG as FilePickerProps, cH as FillVariant, cI as FloatingBar, cJ as FloatingBarAlign, cK as FloatingBarProps, cL as FloatingBarSide, cM as FontWeightRole, cN as FormError, cO as FormErrorSummary, cP as FormErrorSummaryProps, cQ as FormField, cR as FormFieldProps, cS as FormLayoutPage, cT as FunnelChart, cU as FunnelChartProps, cV as FunnelStage, cW as GLASS_DIVIDER, cY as GROUP_COLORS, cZ as GROUP_COLORS_SOLID, c_ as GalleryTemplate, c$ as Gap, d0 as GlassOptions, d1 as GlobalSearch, d2 as GlobalSearchProps, d3 as Grid, d4 as GridCols, d5 as GridColumn, d6 as GridProps, d7 as HeatmapChart, d8 as HeatmapChartProps, d9 as HelpCenter, da as HelpCenterDoc, db as HelpCenterProps, dc as HexInput, dd as HistogramBin, de as HistogramChart, df as HistogramChartProps, dg as Hsv, dh as INPUT_BASE, di as INPUT_SIZES, dj as IconButton, dk as IconButtonClassesOptions, dl as IconButtonProps, dm as IconPicker, dn as IconPickerOption, dp as IconPickerProps, dq as IconRail, dr as IconRailButton, ds as IconRailButtonProps, dt as IconRailLabels, du as IconRailLabelsShown, dv as IconRailOrientation, dw as IconRailProps, dx as ImageFocusPoint, dy as ImageFocusPointProps, dz as Inline, dA as InlineProps, dB as Input, dC as InputNumber, dD as InputNumberProps, dE as InputProps, dF as InputSize, dG as Justify, dH as Kanban, dI as KanbanColumn, dJ as KanbanProps, dK as Kbd, dL as KbdProps, dM as KbdSize, dN as KbdTone, dO as Label, dP as LabelClassesOptions, dQ as LabelProps, dR as LadderScale, dS as LanguagePanel, dT as LanguagePanelProps, dU as LanguageSelect, dV as LanguageSelectProps, dW as LinearScale, dX as LinkFilter, dY as LinkFilterField, dZ as LinkKindChoice, d_ as LinkOption, d$ as LinkOptionGroup, e0 as LinkPicker, e1 as LinkPickerFieldProps, e2 as LinkPickerProps, e3 as LinkPickerWindowProps, e4 as LinkRules, e5 as LinkTarget, e6 as ListDrop, e7 as ListFooter, e8 as ListLoadError, e9 as ListLoadErrorProps, ea as ListMove, eb as ListRow, ec as ListRowProps, ed as LoadingSpinner, ee as LoadingSpinnerProps, ef as MAX_FRACTION_DIGITS, eg as MENU_MAX_HEIGHT, eh as MOD, ei as MOTION, ej as MOTION_DURATIONS, ek as Markdown, ek as MarkdownLite, el as MarkdownLiteProps, el as MarkdownProps, em as MediaUploadField, en as MediaUploadFieldProps, eo as MediaUploadGrid, ep as MediaUploadGridItem, eq as MediaUploadGridProps, er as MenuAlign, es as MenuPlacement, et as MenuPos, eu as MenuSide, ev as Meter, ew as MeterProps, ex as MetricBar, ey as MetricBarProps, ez as Milestone, eA as MilestoneKind, eB as MilestoneTimeline, eC as MilestoneTimelineProps, eD as MotionSpeed, eF as NEXT_CHUNK_PATH_PREFIX, eG as NativeSelect, eH as NiceAxis, eI as NumericKeypad, eJ as NumericKeypadProps, eK as OVERLAY_OPEN_EVENT, eL as PLACEHOLDER_INK, eM as POPUP_MAX_WIDTH, eN as POST_PRODUCTION_STATUSES, eO as PageHeader, eP as PageHeaderProps, P as PaginatedResponse, eQ as Pagination, eR as PaginationProps, eS as PaperclipGlyph, eT as Paragraph, eU as ParagraphProps, eV as PictureTileOption, eW as PictureTiles, eX as PictureTilesProps, eY as PieChart, eZ as PieChartProps, e_ as PieSegment, e$ as PlotGeometry, f0 as Point, f1 as Popover, f2 as PopoverAlign, f3 as PopoverProps, f4 as PopoverRenderProps, f5 as PopoverSide, f6 as PopupMenu, f7 as PopupMenuDivider, f8 as PopupMenuItem, f9 as PopupMenuItemProps, fa as PopupMenuLabel, fb as PopupMenuProps, fc as PopupSubmenu, fd as PopupSubmenuProps, fe as PortalBrandingContextValue, ff as PortalBrandingProvider, fg as PortalBrandingProviderProps, fh as ProductionTimeline, fi as ProductionTimelineProps, fj as ProductionTimelineSnapshot, fk as ProgressItem, fl as PublicPortal, fm as PublicPortalBranding, fn as RADAR_SERIES_CAP, fo as RADIUS_ROLES, fp as ROW_HEIGHTS, fq as RadarAxis, fr as RadarChart, fs as RadarChartProps, ft as RadarSeries, fu as RadialBarChart, fv as RadialBarChartProps, fw as RadialBarRow, fx as Radio, fy as RadioGroup, fz as RadioGroupOption, fA as RadioGroupOrientation, fB as RadioGroupProps, fC as RadioProps, fD as RadiusRole, fE as Range, fF as RangeChart, fG as RangeChartProps, fH as RangeRow, fI as RankedBars, fJ as RankedBarsProps, fK as RankedBarsRow, fL as ResizeHandle, fM as ResizeHandleOrientation, fN as ResizeHandleProps, fO as ResizeHandleSide, fP as ResizeHandleStackSide, fQ as ResolvedPortalBrandAsset, fR as Result, fS as ResultProps, fT as ResultStatus, fU as RevealDirection, fV as SCATTER_SERIES_CAP, fW as SERIES_SLOT_COUNT, fX as SERIES_VARS, fY as SHELL_LANGUAGE_STORAGE_KEY, fZ as SHIFT, f_ as SPACING_ROLES, f$ as SPACING_SCALE, g0 as STAGES, g1 as STALE_CHUNK_RELOAD_COOLDOWN_MS, g2 as STALE_CHUNK_RELOAD_KEY, g3 as STATUS_VARS, g4 as SankeyChart, g5 as SankeyChartProps, g6 as SankeyLink, g7 as SankeyNode, g8 as ScatterChart, g9 as ScatterChartProps, ga as ScatterPoint, gb as ScatterSeries, S as SearchConfig, gc as SearchListRoute, gd as SearchProvider, ge as SearchQuickAction, gf as SearchResponse, gg as SearchResult, gh as SearchableItem, gi as SearchableOption, gj as SearchableOptionGroup, gk as SearchableSelect, gl as SearchableSelectBaseProps, gm as SearchableSelectMultipleProps, gn as SearchableSelectProps, go as Segmented, gp as SegmentedOption, gq as SegmentedProps, gr as SegmentedSize, gs as Select, gt as SelectBaseProps, gu as SelectFooterAction, gv as SelectItem, gw as SelectMultipleProps, gx as SelectOption, gy as SelectOptionGroup, gz as SelectProps, gA as SemanticGroup, gB as SeriesSlots, gC as SettingRow, gD as SettingRowProps, gE as SeverityTone, gH as ShellLanguage, gI as ShellLanguageProvider, gJ as ShellLanguageState, gK as ShellPrefsAdapter, gL as ShellPrefsProvider, gM as ShowWhen, gN as ShowWhenCheck, gO as ShowWhenContext, gP as ShowWhenProps, gQ as ShowWhenRule, gR as ShowWhenValue, gS as Side, gT as SidebarActionButton, gU as SidebarActionButtonProps, gV as SidebarGroupLabel, gW as SidebarGroupLabelProps, gX as SidebarLayout, gY as SidebarLayoutProps, gZ as SidebarNavGroup, g_ as SidebarNavGroupProps, g$ as SidebarNavItem, h0 as SidebarNavItemProps, h1 as SidesEachToggle, h2 as SidesInput, h3 as SidesInputProps, h4 as SidesValue, h5 as Skeleton, h6 as SkeletonProps, h7 as SkeletonVariant, h8 as Slider, h9 as SliderGroup, ha as SliderProps, hb as SliderSize, hc as Snippet, hd as SnippetProps, he as SnippetSize, hf as SnippetVariant, a as SortState, hg as SortableList, hh as SortableListProps, hi as SortableListSpacing, hj as SpacingRole, hk as SpacingStep, hl as Sparkline, hm as SparklineProps, hn as SpinnerRing, ho as SpinnerRingProps, hp as SplitButton, hq as SplitButtonProps, hr as SplitButtonVariant, hs as Stack, ht as StackProps, hu as StaleChunkReloadOptions, hv as StatCard, hw as StatCardProps, hx as StatTile, hy as StatTileProps, hz as Statistic, hA as StatisticProps, hB as StatisticSize, hC as StatisticTone, hD as StatusBadge, hE as StatusBadgeProvider, hF as StatusEmphasis, hG as StepChain, hH as StepChainItem, hI as StepChainItemProps, hJ as StepChainProps, hK as StepChainStatus, hL as StepItem, hM as Stepper, hN as StepperProps, hO as StrokeVariant, hP as SunburstChart, hQ as SunburstChartProps, hR as SunburstNode, hS as Switch, hT as SwitchProps, hU as SwitchSize, hV as TYPE_SCALE, hW as TabItem, hX as Tabs, hY as TabsProps, hZ as TagInput, h_ as TagInputOption, h$ as TagInputProps, i0 as TagInputTone, i1 as Text, i2 as TextLinkField, i3 as TextLinkFieldProps, i4 as TextProps, i5 as TextSize, i6 as TextTone, i7 as TextToolbar, i8 as TextToolbarAlign, i9 as TextToolbarCase, ia as TextToolbarMark, ib as TextToolbarProps, ic as TextWeight, id as Textarea, ie as TextareaProps, ig as Theme, ih as TileButton, ii as TileButtonProps, ij as TileSize, ik as TimeAgo, il as TimeAgoProps, im as TimePicker, io as TimePickerProps, ip as TimeSeriesChart, iq as TimeSeriesChartProps, ir as TimeSeriesSeries, is as TimelineMarker, it as TimelineMarkerKind, iu as TimelineReport, iv as TimelineScrubProgress, iw as TimelineTrack, ix as TimelineTrackItem, iy as TimelineTrackKind, iz as TimelineTrackPending, iA as TimelineTrackPhase, iB as TimelineTrackPlayback, iC as TimelineTrackProps, iD as TimelineTrackThumb, iE as Title, iF as TitleLevel, iG as TitleProps, iH as ToastAction, iI as ToastCloseReason, iJ as ToastOptions, iK as ToastPlacement, iL as ToastUndoableOptions, iM as Tooltip, iN as TooltipProps, iO as TopNav, iP as TopNavItem, iQ as TopNavProps, iR as TransferProgress, iS as TransferProgressProps, iT as TransferProgressState, iU as Tree, iV as TreeDrop, iW as TreeEmptySlot, iX as TreeEmptySlotProps, iY as TreeGroup, iZ as TreeGroupLabel, i_ as TreeGroupLabelProps, i$ as TreeGroupProps, j0 as TreeMove, j1 as TreeProps, j2 as TreeRow, j3 as TreeRowProps, j4 as TreeSeam, j5 as TreeSeamProps, j6 as TreemapChart, j7 as TreemapChartProps, j8 as TreemapItem, j9 as TreemapTile, ja as TypeStep, jb as UNDOABLE_MS, jc as UseAppUpdateOptions, jd as UseContextMenu, je as UseProductionTimelineOpts, jf as VERSION, jg as VITE_PRELOAD_ERROR_EVENT, jh as WaterfallChart, ji as WaterfallChartProps, jj as WaterfallStep, jk as WidthsBar, jl as WidthsBarProps, jm as ZLayer, jn as Z_LAYERS, jo as angleScale, jp as appendKey, jq as applyCorners, jr as applyIconSet, js as applyThemePrefs, jt as arcPath, ju as areaBetween, jv as areaFrom, jw as assignSeriesSlots, jx as autoHighlightIndex, jy as backspace, jz as bandScale, jA as binValues, jB as borderSides, jC as borderStartEach, jD as budgetState, jE as bumpPath, jF as buttonClasses, jG as calcOverall, jH as calcReportOverall, jI as colorFill, jJ as colorSwatchClasses, jK as columnSharesWidths, jL as confirm, jM as confirmDestructive, jN as cornersFor, jO as curvePath, jP as dashFor, jR as dismissPopups, jS as fillFor, jT as fillId, jU as fmtSliderDate, jV as fromDateKey, jW as glassStyle, jX as glowId, jY as groundId, jZ as groupColors, j_ as hexToHsv, j$ as highlightOpacity, k0 as hsvToHex, k1 as iconButtonClasses, k2 as inputClasses, k3 as installStaleChunkReload, k4 as isMac, k5 as isSeverityTone, k6 as isShown, k7 as isSpacingStep, k8 as isStaleChunkError, ka as labelClasses, kb as ladderScale, kc as languageSelectWidth, kd as leavesContextMenuAlone, ke as linearPath, kf as linearScale, kg as logScale, kh as maskId, ki as matchShellLanguage, kj as mediaFileName, kk as monotonePath, kl as niceAxis, km as niceMax, kn as openGlobalSearch, ko as parseHexColor, kp as placeMenu, kq as polygonPoints, kr as popupBounds, ks as prompt, kt as pushRecentSearch, ku as radiusScale, kv as readSavedShellLanguage, kw as registerModalEscapeInterceptor, kx as resolveBrandMarkTreatment, ky as resolveColumnShares, kz as resolveColumnWidths, kA as resolveCorners, kB as resolvePortalBrandAsset, kC as resolveSeriesColor, kD as resolveSeriesColorWithin, kE as resolveShellLanguage, kF as resolveTheme, kG as sanitizeRecentSearches, kH as saveShellLanguage, kI as seriesColor, kJ as severityOf, kK as sidesStartEach, kL as solidSurfaceStyle, kM as splinePath, kN as squarify, kO as stagger, kP as stepPath, kQ as tabButtonId, kR as tabPanelId, kS as textToolbarRows, kT as textToolbarWindowColumns, kU as toDateKey, kV as toDayMs, kW as toISODate, kX as toast, kY as toggleSeriesSlot, kZ as useAppUpdate, k_ as useClickOutside, k$ as useConfirm, l0 as useContextMenu, l1 as useDebouncedValue, l2 as useDropdownPosition, l3 as useFocusTrap, l4 as useHighlight, l5 as useIsMobile, l6 as useLocalStoragePrefs, l7 as usePlotWidth, l8 as usePortalBranding, l9 as useProductionTimeline, la as useScrollLock, lb as useShellLanguage, lc as useShellPrefs, ld as useStatusLabel, le as useTheme, lf as useTransferProgress } from '../index-EuZDrQc_.js';
1
+ export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AlignmentGrid, k as AlignmentGridProps, l as AlignmentPoint, m as AngleScale, n as AppUpdateBanner, o as AppUpdateBannerProps, p as AttachButton, q as AttachButtonProps, r as AttachmentDropZone, s as AttachmentDropZoneProps, t as AttachmentList, u as AttachmentListProps, v as AuthScreen, w as AuthScreenProps, x as Avatar, y as AvatarGroup, z as AvatarGroupProps, B as AvatarProps, D as AvatarSize, E as AvatarStatus, F as BORDER_LINE_STYLES, G as BORDER_WIDTHS, H as BackgroundVariant, I as BandScale, J as Banner, K as BannerEmphasis, L as BannerProps, M as BannerTone, N as BorderInput, O as BorderInputProps, Q as BorderLineStyle, R as BorderRole, T as BorderValue, U as Bounds, V as BoxPlotBox, W as BoxPlotChart, X as BoxPlotChartProps, Y as BrandAssetEditor, Z as BrandAssetEditorProps, _ as BrandAssetPreview, $ as BrandMark, a0 as BrandMarkProps, a1 as BrandMarkSlot, a2 as BrandMarkSurface, a3 as BrandMarkTreatment, a4 as BreadcrumbItem, a5 as Breadcrumbs, a6 as BreadcrumbsProps, a7 as BudgetBar, a8 as BudgetBarProps, a9 as BudgetState, aa as Button, ab as ButtonClassesOptions, ac as ButtonProps, ad as ButtonSize, ae as ButtonVariant, af as CHART_INK, ag as CMD_A, ah as CMD_DOT, ai as CMD_ENTER, aj as CMD_K, ak as CMD_S, al as COLUMN_COUNT_MAX, am as COLUMN_COUNT_WIDTHS, an as COLUMN_SHARES_EQUAL, ao as COLUMN_SHARE_MIN, ap as CONTROL_HEIGHTS, aq as CORNERS, ar as CORNERS_FOR_THEME, as as Calendar, at as CalendarMode, au as CalendarProps, av as Candle, aw as CandlestickChart, ax as CandlestickChartProps, ay as Card, az as CardPadding, aA as CardProps, aB as CardTone, aC as CartesianPlot, aD as CartesianPlotProps, aE as CellStyle, aF as ChartBackgroundVariant, aG as ChartBrush, aH as ChartBrushProps, aI as ChartCurve, aJ as ChartDefs, aK as ChartDefsProps, aL as ChartDot, aM as ChartDotProps, aN as ChartDotVariant, aO as ChartFillVariant, aP as ChartFrame, aQ as ChartFrameProps, aR as ChartHighlightProvider, aS as ChartLegendEntry, aT as ChartLegendSwatch, aU as ChartRange, aV as ChartReferenceLine, aW as ChartRevealDirection, aX as ChartSkeleton, aY as ChartSkeletonProps, aZ as ChartStatusTone, a_ as ChartStrokeVariant, a$ as ChartTooltip, b0 as ChartTooltipProps, b1 as ChartTooltipRow, b2 as ChatTemplate, b3 as Checkbox, b4 as CheckboxProps, b5 as CheckoutTemplate, b6 as ChordChart, b7 as ChordChartProps, b8 as ColorPicker, b9 as ColorPickerPanel, ba as ColorPickerPanelProps, bb as ColorPickerProps, bc as ColorPreset, bd as ColorSwatch, be as ColorSwatchProps, bf as ColorSwatchSize, bg as ColoredBadge, bh as ColoredBadgeProps, bi as ColumnChart, bj as ColumnChartProps, C as ColumnDef, bk as ColumnSeries, bl as ColumnShares, bm as ComposerAttachments, bn as ComposerAttachmentsProps, bo as ConfirmProvider, bp as ContainerFillChart, bq as ContainerFillChartProps, br as ContainerFillItem, bs as ContextMenu, bt as ContextMenuPoint, bu as ContextMenuProps, bv as ContextMenuState, bw as ControlSize, bx as CornerOption, by as Corners, bz as CornersInput, bA as CornersInputProps, bB as CountBadge, bC as CountBadgeProps, bD as CountBadgeTone, bE as Curve, bF as DAY_MS, bG as DashboardTemplate, bH as DataTable, bI as DataTableColumn, bJ as DataTableColumnGroup, bK as DataTableHeader, bL as DataTablePage, bM as DataTableProps, bN as DataTableRowLink, bO as DataTableRowProps, bP as DatePicker, bQ as DatePickerProps, bR as DateRangePicker, bS as DateRangePickerProps, bT as DateTimePicker, bU as DateTimePickerProps, bV as DescriptionColumns, bW as DescriptionItem, bX as DescriptionList, bY as DescriptionListProps, bZ as Dialog, b_ as DialogProps, b$ as DialogSize, c0 as DisplayChipItem, c1 as DisplayChips, c2 as DisplayChipsProps, c3 as Divider, c4 as DividerProps, c5 as DividerSpacing, c6 as Drawer, c7 as DrawerProps, c8 as DrawerSide, c9 as DrawerSize, ca as DropdownMenu, cb as DropdownMenuAlign, cc as DropdownMenuCheckboxItem, cd as DropdownMenuDividerItem, ce as DropdownMenuEntry, cf as DropdownMenuFooterApi, cg as DropdownMenuItem, ch as DropdownMenuLabelItem, ci as DropdownMenuLinkItem, cj as DropdownMenuProps, ck as DropdownMenuRadioItem, cl as DropdownMenuSide, cm as DropdownMenuStatusItem, cn as DropdownPositionOptions, co as ELEVATION_LEVELS, cp as ENGLISH, cq as ENTER, cr as EditableGrid, cs as EditableGridProps, ct as ElevationLevel, cu as EmailTemplate, cv as EmptyState, cw as EmptyStateProps, cx as EmptyValue, cy as EmptyValueProps, cz as ErrorBoundary, cA as ErrorBoundaryProps, cB as ErrorPage, cC as ErrorPageProps, cD as FONT_WEIGHTS, cE as FileIntake, cF as FilePicker, cG as FilePickerProps, cH as FillVariant, cI as FloatingBar, cJ as FloatingBarAlign, cK as FloatingBarProps, cL as FloatingBarSide, cM as FontWeightRole, cN as FormError, cO as FormErrorSummary, cP as FormErrorSummaryProps, cQ as FormField, cR as FormFieldProps, cS as FormLayoutPage, cT as FunnelChart, cU as FunnelChartProps, cV as FunnelStage, cW as GLASS_DIVIDER, cY as GROUP_COLORS, cZ as GROUP_COLORS_SOLID, c_ as GalleryTemplate, c$ as Gap, d0 as GlassOptions, d1 as GlobalSearch, d2 as GlobalSearchProps, d3 as Grid, d4 as GridCols, d5 as GridColumn, d6 as GridProps, d7 as HeatmapChart, d8 as HeatmapChartProps, d9 as HelpCenter, da as HelpCenterDoc, db as HelpCenterProps, dc as HexInput, dd as HistogramBin, de as HistogramChart, df as HistogramChartProps, dg as Hsv, dh as INPUT_BASE, di as INPUT_SIZES, dj as IconButton, dk as IconButtonClassesOptions, dl as IconButtonProps, dm as IconPicker, dn as IconPickerOption, dp as IconPickerProps, dq as IconRail, dr as IconRailButton, ds as IconRailButtonProps, dt as IconRailLabels, du as IconRailLabelsShown, dv as IconRailOrientation, dw as IconRailProps, dx as ImageFocusPoint, dy as ImageFocusPointProps, dz as Inline, dA as InlineProps, dB as Input, dC as InputNumber, dD as InputNumberProps, dE as InputProps, dF as InputSize, dG as Justify, dH as Kanban, dI as KanbanColumn, dJ as KanbanProps, dK as Kbd, dL as KbdProps, dM as KbdSize, dN as KbdTone, dO as Label, dP as LabelClassesOptions, dQ as LabelProps, dR as LadderScale, dS as LanguagePanel, dT as LanguagePanelProps, dU as LanguageSelect, dV as LanguageSelectProps, dW as LinearScale, dX as LinkFilter, dY as LinkFilterField, dZ as LinkKindChoice, d_ as LinkOption, d$ as LinkOptionGroup, e0 as LinkPicker, e1 as LinkPickerFieldProps, e2 as LinkPickerProps, e3 as LinkPickerWindowProps, e4 as LinkRules, e5 as LinkTarget, e6 as ListDrop, e7 as ListFooter, e8 as ListLoadError, e9 as ListLoadErrorProps, ea as ListMove, eb as ListRow, ec as ListRowProps, ed as LoadingSpinner, ee as LoadingSpinnerProps, ef as MAX_FRACTION_DIGITS, eg as MENU_MAX_HEIGHT, eh as MOD, ei as MOTION, ej as MOTION_DURATIONS, ek as Markdown, ek as MarkdownLite, el as MarkdownLiteProps, el as MarkdownProps, em as MediaUploadField, en as MediaUploadFieldProps, eo as MediaUploadGrid, ep as MediaUploadGridItem, eq as MediaUploadGridProps, er as MenuAlign, es as MenuPlacement, et as MenuPos, eu as MenuSide, ev as Meter, ew as MeterProps, ex as MetricBar, ey as MetricBarProps, ez as Milestone, eA as MilestoneKind, eB as MilestoneTimeline, eC as MilestoneTimelineProps, eD as MotionSpeed, eF as NEXT_CHUNK_PATH_PREFIX, eG as NativeSelect, eH as NiceAxis, eI as NumericKeypad, eJ as NumericKeypadProps, eK as OVERLAY_OPEN_EVENT, eL as PLACEHOLDER_INK, eM as POPUP_MAX_WIDTH, eN as POST_PRODUCTION_STATUSES, eO as PageHeader, eP as PageHeaderProps, P as PaginatedResponse, eQ as Pagination, eR as PaginationProps, eS as PaperclipGlyph, eT as Paragraph, eU as ParagraphProps, eV as PictureTileOption, eW as PictureTiles, eX as PictureTilesProps, eY as PieChart, eZ as PieChartProps, e_ as PieSegment, e$ as PlotGeometry, f0 as Point, f1 as Popover, f2 as PopoverAlign, f3 as PopoverProps, f4 as PopoverRenderProps, f5 as PopoverSide, f6 as PopupMenu, f7 as PopupMenuDivider, f8 as PopupMenuItem, f9 as PopupMenuItemProps, fa as PopupMenuLabel, fb as PopupMenuProps, fc as PopupSubmenu, fd as PopupSubmenuProps, fe as PortalBrandingContextValue, ff as PortalBrandingProvider, fg as PortalBrandingProviderProps, fh as ProductionTimeline, fi as ProductionTimelineProps, fj as ProductionTimelineSnapshot, fk as ProgressItem, fl as PublicPortal, fm as PublicPortalBranding, fn as RADAR_SERIES_CAP, fo as RADIUS_ROLES, fp as ROW_HEIGHTS, fq as RadarAxis, fr as RadarChart, fs as RadarChartProps, ft as RadarSeries, fu as RadialBarChart, fv as RadialBarChartProps, fw as RadialBarRow, fx as Radio, fy as RadioGroup, fz as RadioGroupOption, fA as RadioGroupOrientation, fB as RadioGroupProps, fC as RadioProps, fD as RadiusRole, fE as Range, fF as RangeChart, fG as RangeChartProps, fH as RangeRow, fI as RankedBars, fJ as RankedBarsProps, fK as RankedBarsRow, fL as ResizeHandle, fM as ResizeHandleOrientation, fN as ResizeHandleProps, fO as ResizeHandleSide, fP as ResizeHandleStackSide, fQ as ResolvedPortalBrandAsset, fR as Result, fS as ResultProps, fT as ResultStatus, fU as RevealDirection, fV as SCATTER_SERIES_CAP, fW as SERIES_SLOT_COUNT, fX as SERIES_VARS, fY as SHELL_LANGUAGE_STORAGE_KEY, fZ as SHIFT, f_ as SPACING_ROLES, f$ as SPACING_SCALE, g0 as STAGES, g1 as STALE_CHUNK_RELOAD_COOLDOWN_MS, g2 as STALE_CHUNK_RELOAD_KEY, g3 as STATUS_VARS, g4 as SankeyChart, g5 as SankeyChartProps, g6 as SankeyLink, g7 as SankeyNode, g8 as ScatterChart, g9 as ScatterChartProps, ga as ScatterPoint, gb as ScatterSeries, S as SearchConfig, gc as SearchListRoute, gd as SearchProvider, ge as SearchQuickAction, gf as SearchResponse, gg as SearchResult, gh as SearchableItem, gi as SearchableOption, gj as SearchableOptionGroup, gk as SearchableSelect, gl as SearchableSelectBaseProps, gm as SearchableSelectMultipleProps, gn as SearchableSelectProps, go as Segmented, gp as SegmentedOption, gq as SegmentedProps, gr as SegmentedSize, gs as Select, gt as SelectBaseProps, gu as SelectFooterAction, gv as SelectItem, gw as SelectMultipleProps, gx as SelectOption, gy as SelectOptionGroup, gz as SelectProps, gA as SemanticGroup, gB as SeriesSlots, gC as SettingRow, gD as SettingRowProps, gE as SeverityTone, gH as ShellLanguage, gI as ShellLanguageProvider, gJ as ShellLanguageState, gK as ShellPrefsAdapter, gL as ShellPrefsProvider, gM as ShowWhen, gN as ShowWhenCheck, gO as ShowWhenContext, gP as ShowWhenProps, gQ as ShowWhenRule, gR as ShowWhenValue, gS as Side, gT as SidebarActionButton, gU as SidebarActionButtonProps, gV as SidebarGroupLabel, gW as SidebarGroupLabelProps, gX as SidebarLayout, gY as SidebarLayoutProps, gZ as SidebarNavGroup, g_ as SidebarNavGroupProps, g$ as SidebarNavItem, h0 as SidebarNavItemProps, h1 as SidesEachToggle, h2 as SidesInput, h3 as SidesInputProps, h4 as SidesValue, h5 as Skeleton, h6 as SkeletonProps, h7 as SkeletonVariant, h8 as Slider, h9 as SliderGroup, ha as SliderProps, hb as SliderSize, hc as Snippet, hd as SnippetProps, he as SnippetSize, hf as SnippetVariant, a as SortState, hg as SortableList, hh as SortableListProps, hi as SortableListSpacing, hj as SpacingRole, hk as SpacingStep, hl as Sparkline, hm as SparklineProps, hn as SpinnerRing, ho as SpinnerRingProps, hp as SplitButton, hq as SplitButtonProps, hr as SplitButtonVariant, hs as Stack, ht as StackProps, hu as StaleChunkReloadOptions, hv as StatCard, hw as StatCardProps, hx as StatTile, hy as StatTileProps, hz as Statistic, hA as StatisticProps, hB as StatisticSize, hC as StatisticTone, hD as StatusBadge, hE as StatusBadgeProvider, hF as StatusEmphasis, hG as StepChain, hH as StepChainItem, hI as StepChainItemProps, hJ as StepChainProps, hK as StepChainStatus, hL as StepItem, hM as Stepper, hN as StepperProps, hO as StrokeVariant, hP as SunburstChart, hQ as SunburstChartProps, hR as SunburstNode, hS as Switch, hT as SwitchProps, hU as SwitchSize, hV as TYPE_SCALE, hW as TabItem, hX as Tabs, hY as TabsProps, hZ as TagInput, h_ as TagInputOption, h$ as TagInputProps, i0 as TagInputTone, i1 as Text, i2 as TextLinkField, i3 as TextLinkFieldProps, i4 as TextProps, i5 as TextSize, i6 as TextTone, i7 as TextToolbar, i8 as TextToolbarAlign, i9 as TextToolbarCase, ia as TextToolbarMark, ib as TextToolbarProps, ic as TextWeight, id as Textarea, ie as TextareaProps, ig as Theme, ih as TileButton, ii as TileButtonProps, ij as TileSize, ik as TimeAgo, il as TimeAgoProps, im as TimePicker, io as TimePickerProps, ip as TimeSeriesChart, iq as TimeSeriesChartProps, ir as TimeSeriesSeries, is as TimelineMarker, it as TimelineMarkerKind, iu as TimelineReport, iv as TimelineScrubProgress, iw as TimelineTrack, ix as TimelineTrackItem, iy as TimelineTrackKind, iz as TimelineTrackPending, iA as TimelineTrackPhase, iB as TimelineTrackPlayback, iC as TimelineTrackProps, iD as TimelineTrackThumb, iE as Title, iF as TitleLevel, iG as TitleProps, iH as ToastAction, iI as ToastCloseReason, iJ as ToastOptions, iK as ToastPlacement, iL as ToastUndoableOptions, iM as Tooltip, iN as TooltipProps, iO as TopNav, iP as TopNavItem, iQ as TopNavProps, iR as TransferProgress, iS as TransferProgressProps, iT as TransferProgressState, iU as Tree, iV as TreeDrop, iW as TreeEmptySlot, iX as TreeEmptySlotProps, iY as TreeGroup, iZ as TreeGroupLabel, i_ as TreeGroupLabelProps, i$ as TreeGroupProps, j0 as TreeMove, j1 as TreeProps, j2 as TreeRow, j3 as TreeRowProps, j4 as TreeSeam, j5 as TreeSeamProps, j6 as TreemapChart, j7 as TreemapChartProps, j8 as TreemapItem, j9 as TreemapTile, ja as TypeStep, jb as UNDOABLE_MS, jc as UseAppUpdateOptions, jd as UseContextMenu, je as UseProductionTimelineOpts, jf as VERSION, jg as VITE_PRELOAD_ERROR_EVENT, jh as WaterfallChart, ji as WaterfallChartProps, jj as WaterfallStep, jk as WidthsBar, jl as WidthsBarProps, jm as ZLayer, jn as Z_LAYERS, jo as angleScale, jp as appendKey, jq as applyCorners, jr as applyIconSet, js as applyThemePrefs, jt as arcPath, ju as areaBetween, jv as areaFrom, jw as assignSeriesSlots, jx as autoHighlightIndex, jy as backspace, jz as bandScale, jA as binValues, jB as borderSides, jC as borderStartEach, jD as budgetState, jE as bumpPath, jF as buttonClasses, jG as calcOverall, jH as calcReportOverall, jI as colorFill, jJ as colorSwatchClasses, jK as columnSharesWidths, jL as confirm, jM as confirmDestructive, jN as cornersFor, jO as curvePath, jP as dashFor, jR as dismissPopups, jS as fillFor, jT as fillId, jU as fmtSliderDate, jV as fromDateKey, jW as glassStyle, jX as glowId, jY as groundId, jZ as groupColors, j_ as hexToHsv, j$ as highlightOpacity, k0 as hsvToHex, k1 as iconButtonClasses, k2 as inputClasses, k3 as installStaleChunkReload, k4 as isMac, k5 as isSeverityTone, k6 as isShown, k7 as isSpacingStep, k8 as isStaleChunkError, ka as labelClasses, kb as ladderScale, kc as languageSelectWidth, kd as leavesContextMenuAlone, ke as linearPath, kf as linearScale, kg as logScale, kh as maskId, ki as matchShellLanguage, kj as mediaFileName, kk as monotonePath, kl as niceAxis, km as niceMax, kn as openGlobalSearch, ko as parseHexColor, kp as placeMenu, kq as polygonPoints, kr as popupBounds, ks as prompt, kt as pushRecentSearch, ku as radiusScale, kv as readSavedShellLanguage, kw as registerModalEscapeInterceptor, kx as resolveBrandMarkTreatment, ky as resolveColumnShares, kz as resolveColumnWidths, kA as resolveCorners, kB as resolvePortalBrandAsset, kC as resolveSeriesColor, kD as resolveSeriesColorWithin, kE as resolveShellLanguage, kF as resolveTheme, kG as sanitizeRecentSearches, kH as saveShellLanguage, kI as seriesColor, kJ as severityOf, kK as sidesStartEach, kL as solidSurfaceStyle, kM as splinePath, kN as squarify, kO as stagger, kP as stepPath, kQ as tabButtonId, kR as tabPanelId, kS as textToolbarRows, kT as textToolbarWindowColumns, kU as toDateKey, kV as toDayMs, kW as toISODate, kX as toast, kY as toggleSeriesSlot, kZ as useAppUpdate, k_ as useClickOutside, k$ as useConfirm, l0 as useContextMenu, l1 as useDebouncedValue, l2 as useDropdownPosition, l3 as useFocusTrap, l4 as useHighlight, l5 as useIsMobile, l6 as useLocalStoragePrefs, l7 as usePlotWidth, l8 as usePortalBranding, l9 as useProductionTimeline, la as useScrollLock, lb as useShellLanguage, lc as useShellPrefs, ld as useStatusLabel, le as useTheme, lf as useTransferProgress } from '../index-pjuTiAkS.js';
2
2
  export { C as CurrencyFormat, D as DATE_FORMAT_OPTIONS, a as DateFormatKey, E as EMPTY_VALUE, F as FOCAL_DEFAULT, b as FOCAL_NUDGE_COARSE, c as FOCAL_NUDGE_STEP, d as FocalPoint, e as FormatDateOptions, f as FormatMoneyOptions, T as TZ_AUTO, g as TimeAgoOptions, h as currencyDecimals, i as currencySymbol, j as firstDayOfWeek, k as focalFromRect, l as formatBytes, m as formatDate, n as formatDateTime, o as formatFocal, p as formatMoney, q as formatTime, r as getUserDateFormat, s as getUserTimezone, t as nudgeFocal, u as parseFocal, v as setCurrencyFormats, w as setUserDateFormat, x as setUserTimezone, y as syncTimezoneFromProfile, z as timeAgo } from '../index-CHufemKB.js';
3
3
  export { isSafeLinkHref } from '../markup/index.js';
4
4
  export { FileIntakeAlert, FileIntakeLimits, FileIntakeOptions, FileRejection, FileRejectionReason, acceptsFile, useFileIntake } from '../file-intake/index.js';
5
5
  export { ICON_NAMES, ICON_SET_FOR_THEME, Icon, IconName, IconProps, IconTone, THEME_ICON_SETS, ThemeIconSet, iconSetFor, isIconName, loadIconSet } from '../icons/index.js';
6
6
  export { a as IconDrawing, I as IconSet, b as activeIconSet, i as iconSets, c as iconsVersion, r as registerIconSet, d as registerIcons, e as resolveIcon, s as setDefaultIconSet, f as setIconSet, g as subscribeIcons } from '../registry-IyW-xYGB.js';
7
- export { D as DEFAULT_SHELL_STRINGS, a as ShellStrings, S as ShellStringsOverride, b as ShellStringsProvider, u as useShellLocale, c as useShellStrings } from '../strings-IB8gUtul.js';
7
+ export { D as DEFAULT_SHELL_STRINGS, a as ShellStrings, S as ShellStringsOverride, b as ShellStringsProvider, u as useShellLocale, c as useShellStrings } from '../strings-C7ZZ22PO.js';
8
8
  import 'react';
9
9
  import 'react/jsx-runtime';