@openbkn/workshop 0.2.2-rc.5 → 0.2.2

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 (158) hide show
  1. package/README.md +83 -13
  2. package/component.d.ts +10 -0
  3. package/dist/ActionConfirm-DJ91X3ml.js +236 -0
  4. package/dist/ActionFailure-ZgPt_3B-.js +37 -0
  5. package/dist/AgentChat-CRYai8ge.js +1062 -0
  6. package/dist/AppFormModal-D73ucaHK.js +4282 -0
  7. package/dist/AppListPage-D87piiOw.js +1364 -0
  8. package/dist/AskDrawer-BUMYsRnt.js +38 -0
  9. package/dist/ComputedView-CgYrDbx1.js +3221 -0
  10. package/dist/ConclusionApply-sjGfoEBY.js +153 -0
  11. package/dist/CypherEditor-lus6FA5L.js +485 -0
  12. package/dist/LandingList-6JI6864C.js +230 -0
  13. package/dist/MenuUnfoldOutlined-Cdg24l2h.js +27 -0
  14. package/dist/ModelTrial-ClHFGTpQ.js +359 -0
  15. package/dist/PageRenderer-DBd_g6mN.js +85480 -0
  16. package/dist/README-DjRyTQSR.js +76 -0
  17. package/dist/ScenarioApply-DtW_hh47.js +590 -0
  18. package/dist/SimulateForm-C-i08Jjd.js +153 -0
  19. package/dist/Subgraph-CnrkH9AN.js +32586 -0
  20. package/dist/WorkshopLabPage-DiVXQL9e.js +11364 -0
  21. package/dist/WorkshopRunPage-6hjRUf64.js +253 -0
  22. package/dist/abnfDiagram-WEYOIA3C-beRNhN3c.js +87 -0
  23. package/dist/action-type-tool.service-B2B74fKC.js +1060 -0
  24. package/dist/actionButton-DA5CNEzx.js +94 -0
  25. package/dist/actionButton.en-US-qjeqA7hs.js +94 -0
  26. package/dist/agentChat-EoDznd58.js +116 -0
  27. package/dist/agentChat.en-US-B6-pFd9Y.js +116 -0
  28. package/dist/alertList-DqditwM8.js +84 -0
  29. package/dist/alertList.en-US-BAXAgltP.js +84 -0
  30. package/dist/architectureDiagram-ZHVYKT53-DY2l1qxx.js +4779 -0
  31. package/dist/asOfSlider-QPvHWUMV.js +83 -0
  32. package/dist/asOfSlider.en-US-BI4jVfSn.js +83 -0
  33. package/dist/bkn-agent-execution.service-DVh-SHyl.js +205 -0
  34. package/dist/blockDiagram-RJAE7QA3-DR0mjN2h.js +1435 -0
  35. package/dist/c4Diagram-XDPPPE54-DH5zsGug.js +1518 -0
  36. package/dist/channel-B034hcOF.js +5 -0
  37. package/dist/china-C6m7zXIv.js +9 -0
  38. package/dist/chunk-2E7WHVMD-Ba3svxgx.js +664 -0
  39. package/dist/chunk-2Q5K7J3B-rT4eU6_y.js +15 -0
  40. package/dist/chunk-4EMNKR2T-C1kQZYHK.js +262 -0
  41. package/dist/chunk-55XCU76K-dcpLOktb.js +68 -0
  42. package/dist/chunk-5VM5RSS4-BdpQuzmO.js +19 -0
  43. package/dist/chunk-JWPE2WC7-CDBrSjU7.js +8 -0
  44. package/dist/chunk-VQ5W62QI-BiVKc40w.js +19 -0
  45. package/dist/chunk-XXDRQBXY-CPYrcdVW.js +8 -0
  46. package/dist/chunk-ZCHMQSOR-BG8OLpvb.js +451 -0
  47. package/dist/classDiagram-v2-4MYWR3UA-DqbpQpwI.js +1564 -0
  48. package/dist/component.d-DFoMKuUv.js +179 -0
  49. package/dist/cose-bilkent-JH36ORCC-CdXk4sPf.js +2609 -0
  50. package/dist/customComponents-DasaZ6pq.js +4 -0
  51. package/dist/customComponents.en-US-CkabuCXg.js +79 -0
  52. package/dist/customParseFormat-C0uLEpdq.js +182 -0
  53. package/dist/cynefin-EF2NZ3EQ-D7MVnMHu.js +21746 -0
  54. package/dist/cynefinDiagram-WF24UDRP-BYT_KpDL.js +299 -0
  55. package/dist/cytoscape.esm-BCV9V6aO.js +18760 -0
  56. package/dist/d3-scale-DA8IHmf0.js +1841 -0
  57. package/dist/dagre-NK4GIZVX-l-ghPdM8.js +2154 -0
  58. package/dist/dateRange-BbkLMg8L.js +79 -0
  59. package/dist/dateRange.en-US-CV12Q02G.js +79 -0
  60. package/dist/dayjs.min-DZ-YV8Mv.js +284 -0
  61. package/dist/diagram-CBK3MWTC-Bt3HiwvA.js +542 -0
  62. package/dist/diagram-I5XIIV2D-DcbqfBjx.js +150 -0
  63. package/dist/diagram-ODIL2UCW-9PC1n3n5.js +346 -0
  64. package/dist/diagram-PFBEJUXE-DGhr2kc7.js +478 -0
  65. package/dist/diagram-RJA3I4VV-DwzpOjZ_.js +219 -0
  66. package/dist/diagram-TYUNFSNR-B3Bd3TDU.js +2583 -0
  67. package/dist/dropdownFilter-DOi_8-ZT.js +76 -0
  68. package/dist/dropdownFilter.en-US-BiXpvXtF.js +76 -0
  69. package/dist/ebnfDiagram-V4P3TTPT-E5NN2oKc.js +109 -0
  70. package/dist/elk-QONTBCTQ-dFjcujl_.js +49170 -0
  71. package/dist/erDiagram-KYQIGQAA-BMrasBzB.js +1061 -0
  72. package/dist/eventList-CnsAwfDS.js +115 -0
  73. package/dist/eventList.en-US-Cof3rCLq.js +115 -0
  74. package/dist/eventReport-XS-HegnH.js +76 -0
  75. package/dist/eventReport.en-US-DTx4vzWT.js +76 -0
  76. package/dist/flowDiagram-IUGLLWBU-BGIBH0q0.js +1769 -0
  77. package/dist/ganttChart-DEeSvTJA.js +77 -0
  78. package/dist/ganttChart.en-US-SwRKrnoD.js +77 -0
  79. package/dist/ganttDiagram-R7GPNTJY-C0tb1Lpp.js +1741 -0
  80. package/dist/generateCypher-Ch9_lQa6.js +399 -0
  81. package/dist/gitGraphDiagram-PDYL7XHY-DBqcOa-c.js +815 -0
  82. package/dist/graph-CKJmgLki.js +1541 -0
  83. package/dist/index-BA-GzCXt.js +441 -0
  84. package/dist/infoDiagram-MVDRKAX5-Bwuki4JA.js +24 -0
  85. package/dist/ishikawaDiagram-HPEHV2GE-Dz4d6ygx.js +622 -0
  86. package/dist/journeyDiagram-BOSHW7O7-C99m34Bb.js +834 -0
  87. package/dist/kanban-definition-FNSA4HC5-mdqjODsT.js +724 -0
  88. package/dist/katex-BsrBVQKd.js +11314 -0
  89. package/dist/manifest-BjV1PJ6u.js +41 -0
  90. package/dist/mermaid.core-yQghUlIz.js +17642 -0
  91. package/dist/metricCards-CSb-_cT2.js +104 -0
  92. package/dist/metricCards.en-US-BLLhRsQU.js +104 -0
  93. package/dist/mindmap-definition-6OY57UG3-BZhO2wX4.js +834 -0
  94. package/dist/modelTrial-Bvb-RhGt.js +137 -0
  95. package/dist/modelTrial.en-US-DYcuor-G.js +137 -0
  96. package/dist/models-DekiCOuZ.js +6 -0
  97. package/dist/object-metric-numeric-vs3BeDkH.js +42 -0
  98. package/dist/object-metric.service-flZgBMRX.js +233 -0
  99. package/dist/objectDetail-SQUbp4Py.js +117 -0
  100. package/dist/objectDetail.en-US-DW3mlONM.js +117 -0
  101. package/dist/objectList-D99wPtJH.js +97 -0
  102. package/dist/objectList.en-US-PBBNyVLW.js +97 -0
  103. package/dist/objectTable-0jsFFMN3.js +127 -0
  104. package/dist/objectTable.en-US-yWEs8qc_.js +127 -0
  105. package/dist/pegDiagram-ECIUJNBX-BDa5RfZt.js +95 -0
  106. package/dist/pieDiagram-GNMPY74T-DNVtzXPv.js +165 -0
  107. package/dist/pivotTable-CHmQw18-.js +102 -0
  108. package/dist/pivotTable.en-US-B4uv4P08.js +102 -0
  109. package/dist/prompt-DYrjlEFr.js +373 -0
  110. package/dist/quadrantDiagram-D57K4MC3-vK0f2OvQ.js +1023 -0
  111. package/dist/railroadDiagram-Y72NRBL7-j6ZrTmRp.js +77 -0
  112. package/dist/regionMap-Cme-JyV_.js +128 -0
  113. package/dist/regionMap.en-US-Bwr2_p32.js +128 -0
  114. package/dist/requirementDiagram-EQYSW5RA-DgfEyljA.js +886 -0
  115. package/dist/sankeyDiagram-SY24JHO5-CImx-IX0.js +1160 -0
  116. package/dist/scenarioBar-BV43p7n-.js +122 -0
  117. package/dist/scenarioBar.en-US-5KqMQ2Bg.js +122 -0
  118. package/dist/scheduleGantt-CTYO-zYP.js +180 -0
  119. package/dist/scheduleGantt.en-US-hE7mvVUW.js +180 -0
  120. package/dist/searchBox-Ca7w0f_6.js +67 -0
  121. package/dist/searchBox.en-US-ArS_XBvB.js +67 -0
  122. package/dist/segmentedFilter-MhjVcWo0.js +80 -0
  123. package/dist/segmentedFilter.en-US-BxNrQO5T.js +80 -0
  124. package/dist/sequenceDiagram-BLEHNHQU-nWmjd1ci.js +2969 -0
  125. package/dist/sizeCapture-INFHLROL-D3jlbt7h.js +46 -0
  126. package/dist/stageChain-BxBafwjD.js +74 -0
  127. package/dist/stageChain.en-US-CP0G27n8.js +74 -0
  128. package/dist/stateDiagram-v2-A6IESKWZ-DG1ZetEu.js +1514 -0
  129. package/dist/subgraph-7n4SwliR.js +71 -0
  130. package/dist/subgraph.en-US-BNvY18IW.js +71 -0
  131. package/dist/swimlanes-B3ENRKFQ-cCmJE8AU.js +4991 -0
  132. package/dist/swimlanesDiagram-AYQRV4AK-CtuhyguU.js +14 -0
  133. package/dist/taskInbox-DGWYeI2b.js +118 -0
  134. package/dist/taskInbox.en-US-B-OzDmVl.js +118 -0
  135. package/dist/text-BqSVQKS6.js +78 -0
  136. package/dist/text.en-US-BhAxy_LE.js +78 -0
  137. package/dist/timeline-definition-JXYKGLGB-Cc-INsOv.js +1057 -0
  138. package/dist/trendChart-BjEeRS5_.js +135 -0
  139. package/dist/trendChart.en-US-BBGqWUKM.js +135 -0
  140. package/dist/useLabData-Df-jEHKs.js +20470 -0
  141. package/dist/usecaseDiagram-WPOLBNNX-r8wVjopm.js +7920 -0
  142. package/dist/vennDiagram-Q3Y3IDCW-BZiOcgrj.js +1579 -0
  143. package/dist/wardleyDiagram-IVAIDKWA-16jd07C_.js +675 -0
  144. package/dist/workshop-app-DnHNjBqy.js +86038 -0
  145. package/dist/workshop-app.css +1 -0
  146. package/dist/workshop-app.js +4 -0
  147. package/dist/world-Djau1JyJ.js +9 -0
  148. package/dist/xychartDiagram-4URNHDU4-C8DwWQNh.js +1460 -0
  149. package/dist-cli/workshop.js +341 -218
  150. package/example/host.js +109 -0
  151. package/example/index.html +93 -0
  152. package/example/server.mjs +237 -0
  153. package/index.d.ts +48 -0
  154. package/lib/validate.js +47 -1
  155. package/package.json +17 -5
  156. package/runtime/frame-runtime.js +13 -1
  157. package/workshop-component.js +32 -12
  158. package/workshop.js +2 -0
@@ -0,0 +1,79 @@
1
+ const n = `# 日期区间(dateRange)
2
+
3
+ 选起点和终点两个日期,页面上跟随它的组件只显示某个日期落在这段时间里的对象。用来回答“这个月签了多少”“近 30 天新增了哪些”。
4
+
5
+ ## 适用与不适用
6
+
7
+ - 适用:要按一段时间筛选对象,例如签约日期在本季度的合同、发生日期在近 30 天的事件。
8
+ - 不适用:
9
+ - 要看“截至某一天”的状态、而不是一段时间内发生的对象:用基准日期(\`asOfSlider\`)。
10
+ - 按某字段的取值筛选:用分段筛选(\`segmentedFilter\`)或下拉筛选(\`dropdownFilter\`)。
11
+ - 按月看趋势并点月份筛选:用图表(\`trendChart\`)。
12
+
13
+ ## 本体契约
14
+
15
+ | 角色 | 对象类要求 | 必要的属性 | 关系 | 必填 |
16
+ | --- | --- | --- | --- | --- |
17
+ | 被筛选的对象 | 要按时间筛的对象,通常是页面的主数据源 | 一个日期属性(“依据的日期”) | 无 | 是 |
18
+
19
+ 组件自己不读数据,只写一个日期区间筛选;“依据的日期”决定新加入页面的组件默认按哪个日期跟随它。
20
+
21
+ ## 组件内置的判断
22
+
23
+ - 起点、终点都含当天;任何一端可以留空(只设起点就是“从某天起”,只设终点就是“到某天止”);清空后不再筛选。
24
+ - 快捷项:本周(周一到周日)、本月、上月、本季度、近 30 天、近 90 天、今年。都从页面的基准日期算起,页面没有基准日期时从今天算起。
25
+ - 对象的日期为空时,在设置了区间后不显示。
26
+ - 起点不能晚于终点之类的校验由日期选择框处理;组件不再另做判断。
27
+
28
+ ## 扩展点
29
+
30
+ 无。快捷项固定,不能由知识网络提供;财年、业务周等行业口径不能通过扩展点接入。
31
+
32
+ ## 交互与联动
33
+
34
+ - **写入**:写入配置的日期区间变量,值为起点和终点。
35
+ - **读取**:不跟随任何筛选,也不读数据源。
36
+ - **谁会跟着变**:勾选了这个筛选的组件。新加入页面的组件,如果和它的“依据的日期”属于同一类对象,会默认跟随,并按那个日期筛;不同类对象的组件要在它的“联动”页自己勾选并选日期。
37
+ - 勾选时,每个组件各自指定按哪个日期字段筛,所以同一个区间可以让合同按签约日期、回款按回款日期筛。
38
+
39
+ ## 场景配方
40
+
41
+ ### 销售合同:本季度签约
42
+
43
+ | 角色 | 对应 |
44
+ | --- | --- |
45
+ | 被筛选的对象 | 合同(依据的日期:签约日期) |
46
+
47
+ **知识网络中要有:** 合同的签约日期属性。
48
+
49
+ **检查项:** 点“本季度”,对象表与指标卡组只剩签约日期在本季度的合同;清空后恢复全部。
50
+
51
+ ### 设备巡检:近 30 天的异常
52
+
53
+ | 角色 | 对应 |
54
+ | --- | --- |
55
+ | 被筛选的对象 | 巡检记录(依据的日期:巡检时间) |
56
+
57
+ **知识网络中要有:** 巡检记录的巡检时间;记录到设备的关系(用于在设备页同样筛选时,在联动页对设备组件选择它所属记录的日期)。
58
+
59
+ **检查项:** 选“近 30 天”后,列表只显示这段时间的记录;只设起点不设终点时,显示该日期之后的所有记录。
60
+
61
+ ## 给 AI 的指引
62
+
63
+ 1. 先问用户:按哪个日期筛(签约日期、发生日期、到期日期)?页面上有几类对象要跟随?
64
+ 2. 页面里要有一个日期区间类型的变量,组件的“写入”选它。
65
+ 3. 依据的日期必须是日期类型的属性。对象类里没有日期属性时,列出要补的属性,不要用文本字段凑。
66
+ 4. 常见错误:
67
+ - 要筛的组件没有跟随这个筛选:点击后页面不变。去那些组件的“联动”页勾选并选日期字段。
68
+ - 想“按月看”而用区间:区间只是一段时间;要看每月变化用图表。
69
+ - 要看某天的状态却用区间:用基准日期。
70
+
71
+ ## 限制
72
+
73
+ - 一个组件写一个日期区间;一个对象类里要按几个日期分别筛,需要几个区间。
74
+ - 快捷项固定为 7 个,无法增删,只能开或关。
75
+ - 日期按天比较,不含时分。
76
+ `;
77
+ export {
78
+ n as default
79
+ };
@@ -0,0 +1,79 @@
1
+ const e = `# Date range (dateRange)
2
+
3
+ Pick a start and an end date, and the components that follow it show only the objects whose date falls in that span. Use it for "how many were signed this month" or "what was added in the last 30 days".
4
+
5
+ ## When to use it and when not
6
+
7
+ - Use it to filter objects by a span of time, for example contracts signed this quarter, or events that happened in the last 30 days.
8
+ - Do not use it:
9
+ - To see the state as of one day rather than objects from a span: use the base date (\`asOfSlider\`).
10
+ - To filter by the value of a field: use the segmented filter (\`segmentedFilter\`) or the dropdown filter (\`dropdownFilter\`).
11
+ - To see a trend by month and click a month to filter: use the chart (\`trendChart\`).
12
+
13
+ ## Ontology contract
14
+
15
+ | Role | Object type requirement | Required properties | Relations | Required |
16
+ | --- | --- | --- | --- | --- |
17
+ | Filtered object | The object to filter by time, usually the page's main data source | One date property (the "date to filter on") | None | Yes |
18
+
19
+ The component reads no data itself. It only writes a date range filter; the "date to filter on" decides which date new components on the page follow it by default.
20
+
21
+ ## Built-in checks
22
+
23
+ - Both the start and the end include that day. Either end can be left empty (only a start means "from that day", only an end means "up to that day"). Clearing it removes the filter.
24
+ - Quick picks: this week (Monday to Sunday), this month, last month, this quarter, last 30 days, last 90 days, this year. All are counted from the page's base date, or from today when the page has none.
25
+ - Once a range is set, an object whose date is empty is not shown.
26
+ - Rules such as the start not being after the end are left to the date picker; the component adds none.
27
+
28
+ ## Extension points
29
+
30
+ None. The quick picks are fixed and cannot come from the knowledge network, so fiscal years, business weeks and the like cannot be plugged in.
31
+
32
+ ## Interaction and links
33
+
34
+ - **Writes**: the configured date range variable, holding a start and an end.
35
+ - **Reads**: it follows no filter and reads no data source.
36
+ - **What changes with it**: the components that follow this filter. A new component added to the page follows it by default when it is on the same kind of object as the "date to filter on", and filters by that date. Components on other kinds of objects must tick it on their link tab and choose a date.
37
+ - Each component chooses its own date field when it follows, so one range can filter contracts by signing date and payments by payment date.
38
+
39
+ ## Recipes
40
+
41
+ ### Sales contracts: signed this quarter
42
+
43
+ | Role | Maps to |
44
+ | --- | --- |
45
+ | Filtered object | Contract (date to filter on: signing date) |
46
+
47
+ **Needed in the knowledge network:** a signing date property on the contract.
48
+
49
+ **Checks:** click "this quarter" and the object table and metric cards keep only contracts signed this quarter; clearing restores everything.
50
+
51
+ ### Equipment inspection: abnormal records in the last 30 days
52
+
53
+ | Role | Maps to |
54
+ | --- | --- |
55
+ | Filtered object | Inspection record (date to filter on: inspection time) |
56
+
57
+ **Needed in the knowledge network:** the inspection time on the inspection record. A relation from record to equipment is useful when an equipment component should follow the range too: on its link tab, choose the date of the record it belongs to.
58
+
59
+ **Checks:** after "last 30 days" the list shows only records in that span; with only a start set, it shows every record from that date on.
60
+
61
+ ## Guidance for AI
62
+
63
+ 1. Ask the user first: which date to filter on (signing, occurrence, due)? How many kinds of objects on the page should follow it?
64
+ 2. The page needs a variable of the date range kind, and the component's "write" setting points to it.
65
+ 3. The date to filter on must be a date property. When the object type has none, list the property to add; do not stand in a text field.
66
+ 4. Common mistakes:
67
+ - The components to filter do not follow it: clicking changes nothing. Tick it on their link tab and choose the date field.
68
+ - Using a range to "look by month": a range is one span; use a chart for month-by-month change.
69
+ - Using a range to see the state on one day: use the base date.
70
+
71
+ ## Limits
72
+
73
+ - One component writes one date range; filtering by several dates separately takes several ranges.
74
+ - There are 7 fixed quick picks; they can only be turned on or off.
75
+ - Dates are compared by day, without time of day.
76
+ `;
77
+ export {
78
+ e as default
79
+ };
@@ -0,0 +1,284 @@
1
+ import { N as G } from "./workshop-app-DnHNjBqy.js";
2
+ var W = { exports: {} }, K = W.exports, E;
3
+ function X() {
4
+ return E || (E = 1, (function(V, et) {
5
+ (function(A, Y) {
6
+ V.exports = Y();
7
+ })(K, (function() {
8
+ var A = 1e3, Y = 6e4, U = 36e5, I = "millisecond", S = "second", w = "minute", _ = "hour", M = "day", H = "week", m = "month", J = "quarter", y = "year", O = "date", Z = "Invalid Date", B = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
9
+ var n = ["th", "st", "nd", "rd"], t = s % 100;
10
+ return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
11
+ } }, N = function(s, n, t) {
12
+ var r = String(s);
13
+ return !r || r.length >= n ? s : "" + Array(n + 1 - r.length).join(t) + s;
14
+ }, R = { s: N, z: function(s) {
15
+ var n = -s.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
16
+ return (n <= 0 ? "+" : "-") + N(r, 2, "0") + ":" + N(e, 2, "0");
17
+ }, m: function s(n, t) {
18
+ if (n.date() < t.date()) return -s(t, n);
19
+ var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, m), i = t - e < 0, u = n.clone().add(r + (i ? -1 : 1), m);
20
+ return +(-(r + (t - e) / (i ? e - u : u - e)) || 0);
21
+ }, a: function(s) {
22
+ return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
23
+ }, p: function(s) {
24
+ return { M: m, y, w: H, d: M, D: O, h: _, m: w, s: S, ms: I, Q: J }[s] || String(s || "").toLowerCase().replace(/s$/, "");
25
+ }, u: function(s) {
26
+ return s === void 0;
27
+ } }, x = "en", D = {};
28
+ D[x] = Q;
29
+ var q = "$isDayjsObject", F = function(s) {
30
+ return s instanceof C || !(!s || !s[q]);
31
+ }, T = function s(n, t, r) {
32
+ var e;
33
+ if (!n) return x;
34
+ if (typeof n == "string") {
35
+ var i = n.toLowerCase();
36
+ D[i] && (e = i), t && (D[i] = t, e = i);
37
+ var u = n.split("-");
38
+ if (!e && u.length > 1) return s(u[0]);
39
+ } else {
40
+ var o = n.name;
41
+ D[o] = n, e = o;
42
+ }
43
+ return !r && e && (x = e), e || !r && x;
44
+ }, f = function(s, n) {
45
+ if (F(s)) return s.clone();
46
+ var t = typeof n == "object" ? n : {};
47
+ return t.date = s, t.args = arguments, new C(t);
48
+ }, a = R;
49
+ a.l = T, a.i = F, a.w = function(s, n) {
50
+ return f(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
51
+ };
52
+ var C = (function() {
53
+ function s(t) {
54
+ this.$L = T(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[q] = !0;
55
+ }
56
+ var n = s.prototype;
57
+ return n.parse = function(t) {
58
+ this.$d = (function(r) {
59
+ var e = r.date, i = r.utc;
60
+ if (e === null) return /* @__PURE__ */ new Date(NaN);
61
+ if (a.u(e)) return /* @__PURE__ */ new Date();
62
+ if (e instanceof Date) return new Date(e);
63
+ if (typeof e == "string" && !/Z$/i.test(e)) {
64
+ var u = e.match(B);
65
+ if (u) {
66
+ var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
67
+ return i ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
68
+ }
69
+ }
70
+ return new Date(e);
71
+ })(t), this.init();
72
+ }, n.init = function() {
73
+ var t = this.$d;
74
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
75
+ }, n.$utils = function() {
76
+ return a;
77
+ }, n.isValid = function() {
78
+ return this.$d.toString() !== Z;
79
+ }, n.isSame = function(t, r) {
80
+ var e = f(t);
81
+ return this.startOf(r) <= e && e <= this.endOf(r);
82
+ }, n.isAfter = function(t, r) {
83
+ return f(t) < this.startOf(r);
84
+ }, n.isBefore = function(t, r) {
85
+ return this.endOf(r) < f(t);
86
+ }, n.$g = function(t, r, e) {
87
+ return a.u(t) ? this[r] : this.set(e, t);
88
+ }, n.unix = function() {
89
+ return Math.floor(this.valueOf() / 1e3);
90
+ }, n.valueOf = function() {
91
+ return this.$d.getTime();
92
+ }, n.startOf = function(t, r) {
93
+ var e = this, i = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
94
+ var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
95
+ return i ? v : v.endOf(M);
96
+ }, c = function(p, $) {
97
+ return a.w(e.toDate()[p].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
98
+ }, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
99
+ switch (u) {
100
+ case y:
101
+ return i ? o(1, 0) : o(31, 11);
102
+ case m:
103
+ return i ? o(1, d) : o(0, d + 1);
104
+ case H:
105
+ var g = this.$locale().weekStart || 0, k = (h < g ? h + 7 : h) - g;
106
+ return o(i ? l - k : l + (6 - k), d);
107
+ case M:
108
+ case O:
109
+ return c(b + "Hours", 0);
110
+ case _:
111
+ return c(b + "Minutes", 1);
112
+ case w:
113
+ return c(b + "Seconds", 2);
114
+ case S:
115
+ return c(b + "Milliseconds", 3);
116
+ default:
117
+ return this.clone();
118
+ }
119
+ }, n.endOf = function(t) {
120
+ return this.startOf(t, !1);
121
+ }, n.$set = function(t, r) {
122
+ var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[O] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[_] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[I] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (r - this.$W) : r;
123
+ if (i === m || i === y) {
124
+ var h = this.clone().set(O, 1);
125
+ h.$d[o](c), h.init(), this.$d = h.set(O, Math.min(this.$D, h.daysInMonth())).$d;
126
+ } else o && this.$d[o](c);
127
+ return this.init(), this;
128
+ }, n.set = function(t, r) {
129
+ return this.clone().$set(t, r);
130
+ }, n.get = function(t) {
131
+ return this[a.p(t)]();
132
+ }, n.add = function(t, r) {
133
+ var e, i = this;
134
+ t = Number(t);
135
+ var u = a.p(r), o = function(d) {
136
+ var l = f(i);
137
+ return a.w(l.date(l.date() + Math.round(d * t)), i);
138
+ };
139
+ if (u === m) return this.set(m, this.$M + t);
140
+ if (u === y) return this.set(y, this.$y + t);
141
+ if (u === M) return o(1);
142
+ if (u === H) return o(7);
143
+ var c = (e = {}, e[w] = Y, e[_] = U, e[S] = A, e)[u] || 1, h = this.$d.getTime() + t * c;
144
+ return a.w(h, this);
145
+ }, n.subtract = function(t, r) {
146
+ return this.add(-1 * t, r);
147
+ }, n.format = function(t) {
148
+ var r = this, e = this.$locale();
149
+ if (!this.isValid()) return e.invalidDate || Z;
150
+ var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, j, L) {
151
+ return $ && ($[v] || $(r, i)) || j[v].slice(0, L);
152
+ }, k = function($) {
153
+ return a.s(o % 12 || 12, $, "0");
154
+ }, p = b || function($, v, j) {
155
+ var L = $ < 12 ? "AM" : "PM";
156
+ return j ? L.toLowerCase() : L;
157
+ };
158
+ return i.replace(P, (function($, v) {
159
+ return v || (function(j) {
160
+ switch (j) {
161
+ case "YY":
162
+ return String(r.$y).slice(-2);
163
+ case "YYYY":
164
+ return a.s(r.$y, 4, "0");
165
+ case "M":
166
+ return h + 1;
167
+ case "MM":
168
+ return a.s(h + 1, 2, "0");
169
+ case "MMM":
170
+ return g(e.monthsShort, h, l, 3);
171
+ case "MMMM":
172
+ return g(l, h);
173
+ case "D":
174
+ return r.$D;
175
+ case "DD":
176
+ return a.s(r.$D, 2, "0");
177
+ case "d":
178
+ return String(r.$W);
179
+ case "dd":
180
+ return g(e.weekdaysMin, r.$W, d, 2);
181
+ case "ddd":
182
+ return g(e.weekdaysShort, r.$W, d, 3);
183
+ case "dddd":
184
+ return d[r.$W];
185
+ case "H":
186
+ return String(o);
187
+ case "HH":
188
+ return a.s(o, 2, "0");
189
+ case "h":
190
+ return k(1);
191
+ case "hh":
192
+ return k(2);
193
+ case "a":
194
+ return p(o, c, !0);
195
+ case "A":
196
+ return p(o, c, !1);
197
+ case "m":
198
+ return String(c);
199
+ case "mm":
200
+ return a.s(c, 2, "0");
201
+ case "s":
202
+ return String(r.$s);
203
+ case "ss":
204
+ return a.s(r.$s, 2, "0");
205
+ case "SSS":
206
+ return a.s(r.$ms, 3, "0");
207
+ case "Z":
208
+ return u;
209
+ }
210
+ return null;
211
+ })($) || u.replace(":", "");
212
+ }));
213
+ }, n.utcOffset = function() {
214
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
215
+ }, n.diff = function(t, r, e) {
216
+ var i, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * Y, d = this - c, l = function() {
217
+ return a.m(u, c);
218
+ };
219
+ switch (o) {
220
+ case y:
221
+ i = l() / 12;
222
+ break;
223
+ case m:
224
+ i = l();
225
+ break;
226
+ case J:
227
+ i = l() / 3;
228
+ break;
229
+ case H:
230
+ i = (d - h) / 6048e5;
231
+ break;
232
+ case M:
233
+ i = (d - h) / 864e5;
234
+ break;
235
+ case _:
236
+ i = d / U;
237
+ break;
238
+ case w:
239
+ i = d / Y;
240
+ break;
241
+ case S:
242
+ i = d / A;
243
+ break;
244
+ default:
245
+ i = d;
246
+ }
247
+ return e ? i : a.a(i);
248
+ }, n.daysInMonth = function() {
249
+ return this.endOf(m).$D;
250
+ }, n.$locale = function() {
251
+ return D[this.$L];
252
+ }, n.locale = function(t, r) {
253
+ if (!t) return this.$L;
254
+ var e = this.clone(), i = T(t, r, !0);
255
+ return i && (e.$L = i), e;
256
+ }, n.clone = function() {
257
+ return a.w(this.$d, this);
258
+ }, n.toDate = function() {
259
+ return new Date(this.valueOf());
260
+ }, n.toJSON = function() {
261
+ return this.isValid() ? this.toISOString() : null;
262
+ }, n.toISOString = function() {
263
+ return this.$d.toISOString();
264
+ }, n.toString = function() {
265
+ return this.$d.toUTCString();
266
+ }, s;
267
+ })(), z = C.prototype;
268
+ return f.prototype = z, [["$ms", I], ["$s", S], ["$m", w], ["$H", _], ["$W", M], ["$M", m], ["$y", y], ["$D", O]].forEach((function(s) {
269
+ z[s[1]] = function(n) {
270
+ return this.$g(n, s[0], s[1]);
271
+ };
272
+ })), f.extend = function(s, n) {
273
+ return s.$i || (s(n, C, f), s.$i = !0), f;
274
+ }, f.locale = T, f.isDayjs = F, f.unix = function(s) {
275
+ return f(1e3 * s);
276
+ }, f.en = D[x], f.Ls = D, f.p = {}, f;
277
+ }));
278
+ })(W)), W.exports;
279
+ }
280
+ var tt = X();
281
+ const rt = /* @__PURE__ */ G(tt);
282
+ export {
283
+ rt as d
284
+ };