@cardenelabs/cdl 0.73.0 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.js CHANGED
@@ -2870,6 +2870,66 @@ function textWidth(s, size, \u5B57\u9001\u308A = 0) {
2870
2870
  }
2871
2871
  return \u5E45 * size + \u5B57\u9001\u308A * \u5B57\u6570;
2872
2872
  }
2873
+
2874
+ // src/kinds/row-align.ts
2875
+ var GENERIC_ROW_LEFT_SIZE_PX = 18;
2876
+ var GENERIC_ROW_RIGHT_SIZE_PX = 21;
2877
+ var MONO_ADVANCE_RATIO = 0.6;
2878
+ var STORAGE_CHAR_ADVANCE_PX = 26 * MONO_ADVANCE_RATIO;
2879
+ var ROW_PAD_X_PX = 26;
2880
+ var ROW_COL_GAP_PX = 16;
2881
+ var STORAGE_COL_GAP_PX = 32;
2882
+ var ROW_RIGHT_PAD_PX = 26;
2883
+ var DELIMITERS = [" -> ", " \u2192 ", " = ", ": ", ":"];
2884
+ function splitRow(row) {
2885
+ for (const d of DELIMITERS) {
2886
+ const idx = row.indexOf(d);
2887
+ if (idx > 0) {
2888
+ return {
2889
+ left: row.slice(0, idx).trim(),
2890
+ right: row.slice(idx + d.length).trim(),
2891
+ split: true
2892
+ };
2893
+ }
2894
+ }
2895
+ return { left: row.trim(), right: "", split: false };
2896
+ }
2897
+ function rowColumnWidth(text, size, mono) {
2898
+ return mono ? displayWidth(text) * size * MONO_ADVANCE_RATIO : textWidth(text, size);
2899
+ }
2900
+ function displayWidth(text) {
2901
+ let w = 0;
2902
+ for (const ch of text) {
2903
+ const code = ch.codePointAt(0) ?? 0;
2904
+ w += code >= 32 && code <= 126 ? 1 : 2;
2905
+ }
2906
+ return w;
2907
+ }
2908
+ function \u6841\u3067\u5272\u308B(text, \u6841) {
2909
+ let w = 0;
2910
+ let \u53D6\u3063\u305F = "";
2911
+ for (const ch of text) {
2912
+ const code = ch.codePointAt(0) ?? 0;
2913
+ const \u5B57\u306E\u6841 = code >= 32 && code <= 126 ? 1 : 2;
2914
+ if (w + \u5B57\u306E\u6841 > \u6841) break;
2915
+ w += \u5B57\u306E\u6841;
2916
+ \u53D6\u3063\u305F += ch;
2917
+ }
2918
+ return [\u53D6\u3063\u305F, text.slice(\u53D6\u3063\u305F.length)];
2919
+ }
2920
+ function \u6841\u3067\u7701\u304F(text, \u4E0A\u9650) {
2921
+ if (displayWidth(text) <= \u4E0A\u9650) return text;
2922
+ return `${\u6841\u3067\u5272\u308B(text, \u4E0A\u9650 - 1)[0]}\u2026`;
2923
+ }
2924
+ function requiredRowsWidth(rows, kind) {
2925
+ if (!rows || rows.length === 0) return 0;
2926
+ const splits = rows.map(splitRow);
2927
+ const \u4E00\u756A\u5E83\u3044 = (\u53D6\u308B) => splits.reduce((m, s) => Math.max(m, \u53D6\u308B(s)), 0);
2928
+ const storage = ROW_PAD_X_PX + \u4E00\u756A\u5E83\u3044((s) => rowColumnWidth(s.left, 26, true)) + STORAGE_COL_GAP_PX + \u4E00\u756A\u5E83\u3044((s) => rowColumnWidth(s.right, 26, true)) + ROW_RIGHT_PAD_PX;
2929
+ const generic = ROW_PAD_X_PX + \u4E00\u756A\u5E83\u3044((s) => rowColumnWidth(s.left, GENERIC_ROW_LEFT_SIZE_PX, false)) + ROW_COL_GAP_PX + \u4E00\u756A\u5E83\u3044((s) => rowColumnWidth(s.right, GENERIC_ROW_RIGHT_SIZE_PX, true)) + ROW_RIGHT_PAD_PX;
2930
+ if (kind === void 0) return Math.ceil(Math.max(storage, generic));
2931
+ return Math.ceil(kind === "storage" ? storage : generic);
2932
+ }
2873
2933
  var TITLE_MAX = 18;
2874
2934
  var TITLE_MIN = 9;
2875
2935
  var TITLE_RATIO = 0.17;
@@ -3050,7 +3110,38 @@ function fitArt(region, extent, art) {
3050
3110
  const dx = region.cx - s * \u7D75cx;
3051
3111
  const dy = region.cy - s * \u7D75cy;
3052
3112
  if (s >= 1 && dx === 0 && dy === 0) return \u7D44\u3080(1);
3053
- return /* @__PURE__ */ jsx("g", { transform: `translate(${dx} ${dy}) scale(${s})`, children: \u7D44\u3080(s) });
3113
+ return (
3114
+ /*
3115
+ * 包みに印を付ける (#886)。 **`scale(` を持つ変換は他にもある** = `event` は目立たせる
3116
+ * ための脈動を `scale(0.78)` から `scale(1)` で描き、絵を箱に収める縮小ではない。
3117
+ * 祖先の変換を正規表現で見る形だと、その脈動まで「絵の縮小」 として数える。
3118
+ */
3119
+ /* @__PURE__ */ jsx("g", { "data-cdl-art-fit": "1", transform: `translate(${dx} ${dy}) scale(${s})`, children: \u7D44\u3080(s) })
3120
+ );
3121
+ }
3122
+ var \u5E2F\u306E\u9AD8\u3055\u306B\u5BFE\u3059\u308B\u4E0A\u9650 = 0.8;
3123
+ function \u7D75\u306E\u4E2D\u306E\u5B57\u306E\u5E45(text, size, letterSpacing = 0) {
3124
+ return Math.max(
3125
+ displayWidth(text) * size * MONO_ADVANCE_RATIO,
3126
+ textWidth(text, size, letterSpacing)
3127
+ );
3128
+ }
3129
+ function \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387, \u5B57\u3089) {
3130
+ const \u623B\u3057 = Number.isFinite(\u500D\u7387) && \u500D\u7387 > 0 ? 1 / \u500D\u7387 : 1;
3131
+ let \u4E0A\u9650 = Number.POSITIVE_INFINITY;
3132
+ for (const \u5B572 of \u5B57\u3089) {
3133
+ if (!(Number.isFinite(\u5B572.size) && \u5B572.size > 0)) continue;
3134
+ const { \u5E45, \u9AD8\u3055 } = \u5B572.\u5E2F;
3135
+ if (Number.isFinite(\u9AD8\u3055) && \u9AD8\u3055 > 0) {
3136
+ \u4E0A\u9650 = Math.min(\u4E0A\u9650, \u9AD8\u3055 * \u5E2F\u306E\u9AD8\u3055\u306B\u5BFE\u3059\u308B\u4E0A\u9650 / \u5B572.size);
3137
+ }
3138
+ const \u5B9F\u5E45 = \u7D75\u306E\u4E2D\u306E\u5B57\u306E\u5E45(\u5B572.text, \u5B572.size, \u5B572.letterSpacing ?? 0);
3139
+ if (Number.isFinite(\u5E45) && \u5E45 > 0 && \u5B9F\u5E45 > 0) {
3140
+ \u4E0A\u9650 = Math.min(\u4E0A\u9650, \u5E45 / \u5B9F\u5E45);
3141
+ }
3142
+ }
3143
+ if (!Number.isFinite(\u4E0A\u9650)) return 1;
3144
+ return Math.max(1, Math.min(\u623B\u3057, \u4E0A\u9650));
3054
3145
  }
3055
3146
 
3056
3147
  // src/kinds/compact-title.ts
@@ -9605,66 +9696,6 @@ function recomputeContainedLanes(lanes, nodes) {
9605
9696
  });
9606
9697
  }
9607
9698
 
9608
- // src/kinds/row-align.ts
9609
- var GENERIC_ROW_LEFT_SIZE_PX = 18;
9610
- var GENERIC_ROW_RIGHT_SIZE_PX = 21;
9611
- var MONO_ADVANCE_RATIO = 0.6;
9612
- var STORAGE_CHAR_ADVANCE_PX = 26 * MONO_ADVANCE_RATIO;
9613
- var ROW_PAD_X_PX = 26;
9614
- var ROW_COL_GAP_PX = 16;
9615
- var STORAGE_COL_GAP_PX = 32;
9616
- var ROW_RIGHT_PAD_PX = 26;
9617
- var DELIMITERS = [" -> ", " \u2192 ", " = ", ": ", ":"];
9618
- function splitRow(row) {
9619
- for (const d of DELIMITERS) {
9620
- const idx = row.indexOf(d);
9621
- if (idx > 0) {
9622
- return {
9623
- left: row.slice(0, idx).trim(),
9624
- right: row.slice(idx + d.length).trim(),
9625
- split: true
9626
- };
9627
- }
9628
- }
9629
- return { left: row.trim(), right: "", split: false };
9630
- }
9631
- function rowColumnWidth(text, size, mono) {
9632
- return mono ? displayWidth(text) * size * MONO_ADVANCE_RATIO : textWidth(text, size);
9633
- }
9634
- function displayWidth(text) {
9635
- let w = 0;
9636
- for (const ch of text) {
9637
- const code = ch.codePointAt(0) ?? 0;
9638
- w += code >= 32 && code <= 126 ? 1 : 2;
9639
- }
9640
- return w;
9641
- }
9642
- function \u6841\u3067\u5272\u308B(text, \u6841) {
9643
- let w = 0;
9644
- let \u53D6\u3063\u305F = "";
9645
- for (const ch of text) {
9646
- const code = ch.codePointAt(0) ?? 0;
9647
- const \u5B57\u306E\u6841 = code >= 32 && code <= 126 ? 1 : 2;
9648
- if (w + \u5B57\u306E\u6841 > \u6841) break;
9649
- w += \u5B57\u306E\u6841;
9650
- \u53D6\u3063\u305F += ch;
9651
- }
9652
- return [\u53D6\u3063\u305F, text.slice(\u53D6\u3063\u305F.length)];
9653
- }
9654
- function \u6841\u3067\u7701\u304F(text, \u4E0A\u9650) {
9655
- if (displayWidth(text) <= \u4E0A\u9650) return text;
9656
- return `${\u6841\u3067\u5272\u308B(text, \u4E0A\u9650 - 1)[0]}\u2026`;
9657
- }
9658
- function requiredRowsWidth(rows, kind) {
9659
- if (!rows || rows.length === 0) return 0;
9660
- const splits = rows.map(splitRow);
9661
- const \u4E00\u756A\u5E83\u3044 = (\u53D6\u308B) => splits.reduce((m, s) => Math.max(m, \u53D6\u308B(s)), 0);
9662
- const storage = ROW_PAD_X_PX + \u4E00\u756A\u5E83\u3044((s) => rowColumnWidth(s.left, 26, true)) + STORAGE_COL_GAP_PX + \u4E00\u756A\u5E83\u3044((s) => rowColumnWidth(s.right, 26, true)) + ROW_RIGHT_PAD_PX;
9663
- const generic = ROW_PAD_X_PX + \u4E00\u756A\u5E83\u3044((s) => rowColumnWidth(s.left, GENERIC_ROW_LEFT_SIZE_PX, false)) + ROW_COL_GAP_PX + \u4E00\u756A\u5E83\u3044((s) => rowColumnWidth(s.right, GENERIC_ROW_RIGHT_SIZE_PX, true)) + ROW_RIGHT_PAD_PX;
9664
- if (kind === void 0) return Math.ceil(Math.max(storage, generic));
9665
- return Math.ceil(kind === "storage" ? storage : generic);
9666
- }
9667
-
9668
9699
  // src/layout/head-label.ts
9669
9700
  var \u7AEF\u306E\u5B57\u3092\u623B\u3059\u8DDD\u96E2 = 22;
9670
9701
  var \u7AEF\u306E\u5B57\u3068\u7DDA\u306E\u9699\u9593 = 8;
@@ -17309,15 +17340,6 @@ var \u540D\u306E\u5B57 = 10.5;
17309
17340
  var \u5024\u306E\u5B57 = 11;
17310
17341
  var \u884C\u306E\u9593\u9694 = 22;
17311
17342
  var \u898B\u51FA\u3057\u306E\u5E2F = 32;
17312
- var \u5E2F\u306B\u5BFE\u3059\u308B\u4E0A\u9650 = 0.8;
17313
- function \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(k) {
17314
- const \u623B\u3057 = Number.isFinite(k) && k > 0 ? 1 / k : 1;
17315
- const \u4E0A\u9650 = Math.min(
17316
- \u884C\u306E\u9593\u9694 * \u5E2F\u306B\u5BFE\u3059\u308B\u4E0A\u9650 / \u5024\u306E\u5B57,
17317
- \u898B\u51FA\u3057\u306E\u5E2F * \u5E2F\u306B\u5BFE\u3059\u308B\u4E0A\u9650 / \u898B\u51FA\u3057\u306E\u5B57
17318
- );
17319
- return Math.max(1, Math.min(\u623B\u3057, \u4E0A\u9650));
17320
- }
17321
17343
  var BLOCK_SHADOW = 6;
17322
17344
  var NFT_W = 220;
17323
17345
  var NFT_H = 240;
@@ -17328,6 +17350,15 @@ var CHAIN_BLOCK_H = 66;
17328
17350
  var CHAIN_LINK_W = 12;
17329
17351
  var CHAIN_SHADOW = 3;
17330
17352
  var CHAIN_BLOCK_SW = 2.5;
17353
+ var CHAIN_HEAD_H = 16;
17354
+ var CHAIN_TEXT_W = CHAIN_BLOCK_W - 8;
17355
+ var CHAIN_ROW_GAP = 14;
17356
+ var CHAIN_NO_SIZE = 10;
17357
+ var CONTRACT_CALL_SIZE = 11;
17358
+ var NFT_ID_SIZE = 15;
17359
+ var CHAIN_HASH_SIZE = 7;
17360
+ var BTC_NO_SIZE = 9;
17361
+ var ETH_NO_SIZE = 9;
17331
17362
  var NODE_HEX_R = 44;
17332
17363
  var NODE_PEER_R = 12;
17333
17364
  var NODE_PEER_GAP = 22;
@@ -17441,30 +17472,40 @@ function ShapeSmartContractNode({ node, active, lang }) {
17441
17472
  gearPts.push(`${gearCx + Math.cos(a3) * gearTipR},${gearCy + Math.sin(a3) * gearTipR}`);
17442
17473
  gearPts.push(`${gearCx + Math.cos(a4) * gearBodyR},${gearCy + Math.sin(a4) * gearBodyR}`);
17443
17474
  }
17444
- const art = /* @__PURE__ */ jsxs("g", { children: [
17445
- /* @__PURE__ */ jsx("path", { "data-cdl-role": "node-body", d: path, ...frame, strokeLinejoin: "round" }),
17446
- /* @__PURE__ */ jsx("path", { d: foldPath, fill: "none", stroke: frame.stroke, strokeWidth: frame.strokeWidth, strokeLinejoin: "round" }),
17447
- [y + 40, y + 58, y + 76, y + 94].map((ly, i) => /* @__PURE__ */ jsx("rect", { x: x + 16, y: ly - 3, width: docW - 32 - i * 22, height: 5, rx: 1, fill: "var(--cdl-divider, #d4d4d8)", fillOpacity: 0.7, stroke: "none" }, i)),
17448
- /* @__PURE__ */ jsx("text", { x: x + 16, y: y + docH - 46, fontSize: 11, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fill: "var(--cdl-tone-accent, #2d6a8f)", children: \u5B57\u5F15("smartContract.call") }),
17449
- /* @__PURE__ */ jsx(
17450
- "polygon",
17451
- {
17452
- points: gearPts.join(" "),
17453
- fill: "var(--cdl-tone-accent, #2d6a8f)",
17454
- stroke: frame.stroke,
17455
- strokeWidth: 1.2,
17456
- strokeLinejoin: "round",
17457
- children: /* @__PURE__ */ jsx("animateTransform", { attributeName: "transform", type: "rotate", from: `0 ${gearCx} ${gearCy}`, to: `360 ${gearCx} ${gearCy}`, dur: "8s", repeatCount: "indefinite" })
17458
- }
17459
- ),
17460
- /* @__PURE__ */ jsx("circle", { cx: gearCx, cy: gearCy, r: gearBodyR * 0.4, fill: "var(--cdl-node-fill, #ffffff)", stroke: "none" })
17461
- ] });
17475
+ const \u6253\u3061\u6D88\u3059\u5B57\u3089 = [
17476
+ {
17477
+ text: \u5B57\u5F15("smartContract.call"),
17478
+ size: CONTRACT_CALL_SIZE,
17479
+ \u5E2F: { \u5E45: docW - 32, \u9AD8\u3055: 18 }
17480
+ }
17481
+ ];
17482
+ const art = (\u500D\u7387) => {
17483
+ const \u500D = \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387, \u6253\u3061\u6D88\u3059\u5B57\u3089);
17484
+ return /* @__PURE__ */ jsxs("g", { children: [
17485
+ /* @__PURE__ */ jsx("path", { "data-cdl-role": "node-body", d: path, ...frame, strokeLinejoin: "round" }),
17486
+ /* @__PURE__ */ jsx("path", { d: foldPath, fill: "none", stroke: frame.stroke, strokeWidth: frame.strokeWidth, strokeLinejoin: "round" }),
17487
+ [y + 40, y + 58, y + 76, y + 94].map((ly, i) => /* @__PURE__ */ jsx("rect", { x: x + 16, y: ly - 3, width: docW - 32 - i * 22, height: 5, rx: 1, fill: "var(--cdl-divider, #d4d4d8)", fillOpacity: 0.7, stroke: "none" }, i)),
17488
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "1", x: x + 16, y: y + docH - 46, fontSize: CONTRACT_CALL_SIZE * \u500D, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fill: "var(--cdl-tone-accent, #2d6a8f)", children: \u5B57\u5F15("smartContract.call") }),
17489
+ /* @__PURE__ */ jsx(
17490
+ "polygon",
17491
+ {
17492
+ points: gearPts.join(" "),
17493
+ fill: "var(--cdl-tone-accent, #2d6a8f)",
17494
+ stroke: frame.stroke,
17495
+ strokeWidth: 1.2,
17496
+ strokeLinejoin: "round",
17497
+ children: /* @__PURE__ */ jsx("animateTransform", { attributeName: "transform", type: "rotate", from: `0 ${gearCx} ${gearCy}`, to: `360 ${gearCx} ${gearCy}`, dur: "8s", repeatCount: "indefinite" })
17498
+ }
17499
+ ),
17500
+ /* @__PURE__ */ jsx("circle", { cx: gearCx, cy: gearCy, r: gearBodyR * 0.4, fill: "var(--cdl-node-fill, #ffffff)", stroke: "none" })
17501
+ ] });
17502
+ };
17462
17503
  return /* @__PURE__ */ jsxs("g", { children: [
17463
17504
  fitArt(r, smartContractExtent(frame.strokeWidth), art),
17464
17505
  bottomLabel2(node, r.cx, r.label)
17465
17506
  ] });
17466
17507
  }
17467
- var \u5B57\u306E\u5E45 = (text, size) => Math.max(displayWidth(text) * size * MONO_ADVANCE_RATIO, textWidth(text, size));
17508
+ var \u5B57\u306E\u5E45 = (text, size) => \u7D75\u306E\u4E2D\u306E\u5B57\u306E\u5E45(text, size);
17468
17509
  var BLOCK_DEFAULT_FIELDS = [
17469
17510
  { key: "hash", label: "blockchainBlock.hash", value: { text: "0xaf31c9d2..." } },
17470
17511
  { key: "prev", label: "blockchainBlock.prev", value: { text: "0x7b3f92c1..." } },
@@ -17493,8 +17534,19 @@ function ShapeBlockchainBlockNode({ node, active, lang }) {
17493
17534
  };
17494
17535
  });
17495
17536
  const \u898B\u51FA\u3057\u306E\u5E45 = bw - 14 - 30;
17537
+ const \u6253\u3061\u6D88\u3059\u5B57\u3089 = [
17538
+ { text: \u898B\u51FA\u3057, size: \u898B\u51FA\u3057\u306E\u5B57, \u5E2F: { \u5E45: \u898B\u51FA\u3057\u306E\u5E45, \u9AD8\u3055: \u898B\u51FA\u3057\u306E\u5E2F } },
17539
+ ...fields.flatMap((f) => [
17540
+ { text: f.label, size: \u540D\u306E\u5B57, \u5E2F: { \u5E45: bw - 28, \u9AD8\u3055: \u884C\u306E\u9593\u9694 } },
17541
+ {
17542
+ text: f.value,
17543
+ size: \u5024\u306E\u5B57,
17544
+ \u5E2F: { \u5E45: bw - 28 - \u5B57\u306E\u5E45(f.label, \u540D\u306E\u5B57) - 8, \u9AD8\u3055: \u884C\u306E\u9593\u9694 }
17545
+ }
17546
+ ])
17547
+ ];
17496
17548
  const art = (\u500D\u7387) => {
17497
- const \u500D = \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387);
17549
+ const \u500D = \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387, \u6253\u3061\u6D88\u3059\u5B57\u3089);
17498
17550
  const \u984C\u306E\u5927\u304D\u3055 = \u898B\u51FA\u3057\u306E\u5B57 * \u500D;
17499
17551
  const \u540D\u306E\u5927\u304D\u3055 = \u540D\u306E\u5B57 * \u500D;
17500
17552
  const \u5024\u306E\u5927\u304D\u3055 = \u5024\u306E\u5B57 * \u500D;
@@ -17502,11 +17554,11 @@ function ShapeBlockchainBlockNode({ node, active, lang }) {
17502
17554
  /* @__PURE__ */ jsx("rect", { x: x + 6, y: y + 6, width: bw, height: bh, rx: 8, fill: frame.stroke, opacity: 0.2, stroke: "none" }),
17503
17555
  /* @__PURE__ */ jsx("rect", { "data-cdl-role": "node-body", x, y, width: bw, height: bh, rx: 8, ...frame }),
17504
17556
  /* @__PURE__ */ jsx("path", { d: `M ${x} ${y + 32} L ${x} ${y + 8} Q ${x} ${y}, ${x + 8} ${y} L ${x + bw - 8} ${y} Q ${x + bw} ${y}, ${x + bw} ${y + 8} L ${x + bw} ${y + 32} Z`, fill: "var(--cdl-tone-accent, #2d6a8f)", fillOpacity: 0.9, stroke: "none" }),
17505
- /* @__PURE__ */ jsx("text", { "data-cdl-role": "blockchain-block-title", x: x + 14, y: y + 22, fontSize: \u984C\u306E\u5927\u304D\u3055, fontWeight: 700, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fill: "#ffffff", children: \u5E45\u3067\u5207\u308B(\u898B\u51FA\u3057, \u984C\u306E\u5927\u304D\u3055, \u898B\u51FA\u3057\u306E\u5E45, \u5B57\u306E\u5E45) }),
17557
+ /* @__PURE__ */ jsx("text", { "data-cdl-role": "blockchain-block-title", "data-cdl-counter-scaled": "1", x: x + 14, y: y + 22, fontSize: \u984C\u306E\u5927\u304D\u3055, fontWeight: 700, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fill: "#ffffff", children: \u5E45\u3067\u5207\u308B(\u898B\u51FA\u3057, \u984C\u306E\u5927\u304D\u3055, \u898B\u51FA\u3057\u306E\u5E45, \u5B57\u306E\u5E45) }),
17506
17558
  /* @__PURE__ */ jsx("circle", { cx: x + bw - 16, cy: y + 16, r: 5.5, fill: "#7cd88f", stroke: "#ffffff", strokeWidth: 1.5 }),
17507
17559
  fields.map((f, i) => /* @__PURE__ */ jsxs("g", { children: [
17508
- /* @__PURE__ */ jsx("text", { x: x + 14, y: y + 54 + i * \u884C\u306E\u9593\u9694, fontSize: \u540D\u306E\u5927\u304D\u3055, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fill: "var(--cdl-text-dim, #5a6270)", children: f.label }),
17509
- /* @__PURE__ */ jsx("text", { "data-cdl-role": `blockchain-block-${f.key}`, x: x + bw - 14, y: y + 54 + i * \u884C\u306E\u9593\u9694, fontSize: \u5024\u306E\u5927\u304D\u3055, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontWeight: 600, textAnchor: "end", fill: "var(--cdl-text, #1a1f2a)", children: \u5E45\u3067\u5207\u308B(f.value, \u5024\u306E\u5927\u304D\u3055, bw - 28 - \u5B57\u306E\u5E45(f.label, \u540D\u306E\u5927\u304D\u3055) - 8, \u5B57\u306E\u5E45) }),
17560
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "1", x: x + 14, y: y + 54 + i * \u884C\u306E\u9593\u9694, fontSize: \u540D\u306E\u5927\u304D\u3055, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fill: "var(--cdl-text-dim, #5a6270)", children: f.label }),
17561
+ /* @__PURE__ */ jsx("text", { "data-cdl-role": `blockchain-block-${f.key}`, "data-cdl-counter-scaled": "1", x: x + bw - 14, y: y + 54 + i * \u884C\u306E\u9593\u9694, fontSize: \u5024\u306E\u5927\u304D\u3055, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontWeight: 600, textAnchor: "end", fill: "var(--cdl-text, #1a1f2a)", children: \u5E45\u3067\u5207\u308B(f.value, \u5024\u306E\u5927\u304D\u3055, bw - 28 - \u5B57\u306E\u5E45(f.label, \u540D\u306E\u5927\u304D\u3055) - 8, \u5B57\u306E\u5E45) }),
17510
17562
  /* @__PURE__ */ jsx("line", { x1: x + 14, y1: y + 60 + i * \u884C\u306E\u9593\u9694, x2: x + bw - 14, y2: y + 60 + i * \u884C\u306E\u9593\u9694, stroke: "var(--cdl-divider, #d4d4d8)", strokeWidth: 0.5, opacity: 0.5 })
17511
17563
  ] }, i)),
17512
17564
  /* @__PURE__ */ jsxs("g", { transform: `translate(${cx - 32}, ${y + bh - 26})`, children: [
@@ -17529,38 +17581,45 @@ function ShapeBlockchainNode({ node, active }) {
17529
17581
  const linkW = CHAIN_LINK_W;
17530
17582
  const totalW = blockCount * blockW + (blockCount - 1) * linkW;
17531
17583
  const startX = cx - totalW / 2;
17532
- const art = /* @__PURE__ */ jsx("g", { children: Array.from({ length: blockCount }, (_, i) => i).map((i) => {
17533
- const bx = startX + i * (blockW + linkW);
17534
- const isCurrent = i === blockCount - 1;
17535
- return /* @__PURE__ */ jsxs("g", { children: [
17536
- i > 0 && /* @__PURE__ */ jsxs("g", { children: [
17537
- /* @__PURE__ */ jsx("line", { x1: bx - linkW, y1: cy, x2: bx, y2: cy, stroke: frame.stroke, strokeWidth: 3, strokeLinecap: "round" }),
17538
- /* @__PURE__ */ jsx("circle", { cx: bx - linkW / 2, cy, r: 2.5, fill: "var(--cdl-tone-accent, #2d6a8f)", stroke: "none", children: /* @__PURE__ */ jsx("animate", { attributeName: "opacity", values: "0.3;1;0.3", dur: `${1 + i * 0.2}s`, repeatCount: "indefinite" }) })
17539
- ] }),
17540
- /* @__PURE__ */ jsx("rect", { x: bx + 3, y: cy - blockH / 2 + 3, width: blockW, height: blockH, rx: 4, fill: frame.stroke, opacity: 0.18, stroke: "none" }),
17541
- /* @__PURE__ */ jsx(
17542
- "rect",
17543
- {
17544
- "data-cdl-role": i === 0 ? "node-body" : void 0,
17545
- x: bx,
17546
- y: cy - blockH / 2,
17547
- width: blockW,
17548
- height: blockH,
17549
- rx: 4,
17550
- fill: isCurrent ? "var(--cdl-tone-accent, #2d6a8f)" : "var(--cdl-node-fill, #ffffff)",
17551
- stroke: frame.stroke,
17552
- strokeWidth: isCurrent ? 2.5 : 1.5
17553
- }
17554
- ),
17555
- /* @__PURE__ */ jsx("rect", { x: bx, y: cy - blockH / 2, width: blockW, height: 16, rx: 4, fill: isCurrent ? "#1a4a68" : "var(--cdl-divider, #d4d4d8)", fillOpacity: isCurrent ? 1 : 0.4, stroke: "none" }),
17556
- /* @__PURE__ */ jsxs("text", { x: bx + blockW / 2, y: cy - blockH / 2 + 12, fontSize: 10, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-text-dim, #5a6270)", children: [
17557
- "#",
17558
- 420 + i
17559
- ] }),
17560
- /* @__PURE__ */ jsx("text", { x: bx + blockW / 2, y: cy + 8, fontSize: 14, fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-tone-accent, #2d6a8f)", fontFamily: "Georgia, serif", children: "#" }),
17561
- /* @__PURE__ */ jsx("text", { x: bx + blockW / 2, y: cy + 22, fontSize: 7, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-text-dim, #5a6270)", opacity: 0.9, children: "0x\u2026" })
17562
- ] }, i);
17563
- }) });
17584
+ const \u6253\u3061\u6D88\u3059\u5B57\u3089 = [
17585
+ { text: "#420", size: CHAIN_NO_SIZE, \u5E2F: { \u5E45: CHAIN_TEXT_W, \u9AD8\u3055: CHAIN_HEAD_H } },
17586
+ { text: "0x\u2026", size: CHAIN_HASH_SIZE, \u5E2F: { \u5E45: CHAIN_TEXT_W, \u9AD8\u3055: CHAIN_ROW_GAP } }
17587
+ ];
17588
+ const art = (\u500D\u7387) => {
17589
+ const \u500D = \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387, \u6253\u3061\u6D88\u3059\u5B57\u3089);
17590
+ return /* @__PURE__ */ jsx("g", { children: Array.from({ length: blockCount }, (_, i) => i).map((i) => {
17591
+ const bx = startX + i * (blockW + linkW);
17592
+ const isCurrent = i === blockCount - 1;
17593
+ return /* @__PURE__ */ jsxs("g", { children: [
17594
+ i > 0 && /* @__PURE__ */ jsxs("g", { children: [
17595
+ /* @__PURE__ */ jsx("line", { x1: bx - linkW, y1: cy, x2: bx, y2: cy, stroke: frame.stroke, strokeWidth: 3, strokeLinecap: "round" }),
17596
+ /* @__PURE__ */ jsx("circle", { cx: bx - linkW / 2, cy, r: 2.5, fill: "var(--cdl-tone-accent, #2d6a8f)", stroke: "none", children: /* @__PURE__ */ jsx("animate", { attributeName: "opacity", values: "0.3;1;0.3", dur: `${1 + i * 0.2}s`, repeatCount: "indefinite" }) })
17597
+ ] }),
17598
+ /* @__PURE__ */ jsx("rect", { x: bx + 3, y: cy - blockH / 2 + 3, width: blockW, height: blockH, rx: 4, fill: frame.stroke, opacity: 0.18, stroke: "none" }),
17599
+ /* @__PURE__ */ jsx(
17600
+ "rect",
17601
+ {
17602
+ "data-cdl-role": i === 0 ? "node-body" : void 0,
17603
+ x: bx,
17604
+ y: cy - blockH / 2,
17605
+ width: blockW,
17606
+ height: blockH,
17607
+ rx: 4,
17608
+ fill: isCurrent ? "var(--cdl-tone-accent, #2d6a8f)" : "var(--cdl-node-fill, #ffffff)",
17609
+ stroke: frame.stroke,
17610
+ strokeWidth: isCurrent ? 2.5 : 1.5
17611
+ }
17612
+ ),
17613
+ /* @__PURE__ */ jsx("rect", { x: bx, y: cy - blockH / 2, width: blockW, height: CHAIN_HEAD_H, rx: 4, fill: isCurrent ? "#1a4a68" : "var(--cdl-divider, #d4d4d8)", fillOpacity: isCurrent ? 1 : 0.4, stroke: "none" }),
17614
+ /* @__PURE__ */ jsxs("text", { "data-cdl-counter-scaled": "1", x: bx + blockW / 2, y: cy - blockH / 2 + 12, fontSize: CHAIN_NO_SIZE * \u500D, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-text-dim, #5a6270)", children: [
17615
+ "#",
17616
+ 420 + i
17617
+ ] }),
17618
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: bx + blockW / 2, y: cy + 8, fontSize: 14, fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-tone-accent, #2d6a8f)", fontFamily: "Georgia, serif", children: "#" }),
17619
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "1", x: bx + blockW / 2, y: cy + 22, fontSize: CHAIN_HASH_SIZE * \u500D, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-text-dim, #5a6270)", opacity: 0.9, children: "0x\u2026" })
17620
+ ] }, i);
17621
+ }) });
17622
+ };
17564
17623
  return /* @__PURE__ */ jsxs("g", { children: [
17565
17624
  fitArt(r, chainExtent(), art),
17566
17625
  bottomLabel2(node, r.cx, r.label)
@@ -17578,33 +17637,39 @@ function ShapeBitcoinChainNode({ node, active }) {
17578
17637
  const linkW = CHAIN_LINK_W;
17579
17638
  const totalW = blockCount * blockW + (blockCount - 1) * linkW;
17580
17639
  const startX = cx - totalW / 2;
17581
- const art = /* @__PURE__ */ jsx("g", { children: Array.from({ length: blockCount }, (_, i) => i).map((i) => {
17582
- const bx = startX + i * (blockW + linkW);
17583
- const isCurrent = i === blockCount - 1;
17584
- return /* @__PURE__ */ jsxs("g", { children: [
17585
- i > 0 && /* @__PURE__ */ jsx("line", { x1: bx - linkW, y1: cy, x2: bx, y2: cy, stroke: btcOrange, strokeWidth: 3.5, strokeLinecap: "round" }),
17586
- /* @__PURE__ */ jsx("rect", { x: bx + 3, y: cy - blockH / 2 + 3, width: blockW, height: blockH, rx: 4, fill: frame.stroke, opacity: 0.18, stroke: "none" }),
17587
- /* @__PURE__ */ jsx(
17588
- "rect",
17589
- {
17590
- "data-cdl-role": i === 0 ? "node-body" : void 0,
17591
- x: bx,
17592
- y: cy - blockH / 2,
17593
- width: blockW,
17594
- height: blockH,
17595
- rx: 4,
17596
- fill: isCurrent ? btcOrange : "var(--cdl-node-fill, #ffffff)",
17597
- stroke: btcOrange,
17598
- strokeWidth: isCurrent ? 2.5 : 1.5
17599
- }
17600
- ),
17601
- /* @__PURE__ */ jsx("text", { x: bx + blockW / 2, y: cy - 4, fontSize: 30, fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : btcOrange, fontFamily: "Georgia, serif", children: "\u20BF" }),
17602
- /* @__PURE__ */ jsxs("text", { x: bx + blockW / 2, y: cy + 16, fontSize: 9, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-text-dim, #5a6270)", children: [
17603
- "#",
17604
- 820 + i
17605
- ] })
17606
- ] }, i);
17607
- }) });
17640
+ const \u6253\u3061\u6D88\u3059\u5B57\u3089 = [
17641
+ { text: "#820", size: BTC_NO_SIZE, \u5E2F: { \u5E45: CHAIN_TEXT_W, \u9AD8\u3055: 20 } }
17642
+ ];
17643
+ const art = (\u500D\u7387) => {
17644
+ const \u500D = \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387, \u6253\u3061\u6D88\u3059\u5B57\u3089);
17645
+ return /* @__PURE__ */ jsx("g", { children: Array.from({ length: blockCount }, (_, i) => i).map((i) => {
17646
+ const bx = startX + i * (blockW + linkW);
17647
+ const isCurrent = i === blockCount - 1;
17648
+ return /* @__PURE__ */ jsxs("g", { children: [
17649
+ i > 0 && /* @__PURE__ */ jsx("line", { x1: bx - linkW, y1: cy, x2: bx, y2: cy, stroke: btcOrange, strokeWidth: 3.5, strokeLinecap: "round" }),
17650
+ /* @__PURE__ */ jsx("rect", { x: bx + 3, y: cy - blockH / 2 + 3, width: blockW, height: blockH, rx: 4, fill: frame.stroke, opacity: 0.18, stroke: "none" }),
17651
+ /* @__PURE__ */ jsx(
17652
+ "rect",
17653
+ {
17654
+ "data-cdl-role": i === 0 ? "node-body" : void 0,
17655
+ x: bx,
17656
+ y: cy - blockH / 2,
17657
+ width: blockW,
17658
+ height: blockH,
17659
+ rx: 4,
17660
+ fill: isCurrent ? btcOrange : "var(--cdl-node-fill, #ffffff)",
17661
+ stroke: btcOrange,
17662
+ strokeWidth: isCurrent ? 2.5 : 1.5
17663
+ }
17664
+ ),
17665
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: bx + blockW / 2, y: cy - 4, fontSize: 30, fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : btcOrange, fontFamily: "Georgia, serif", children: "\u20BF" }),
17666
+ /* @__PURE__ */ jsxs("text", { "data-cdl-counter-scaled": "1", x: bx + blockW / 2, y: cy + 16, fontSize: BTC_NO_SIZE * \u500D, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-text-dim, #5a6270)", children: [
17667
+ "#",
17668
+ 820 + i
17669
+ ] })
17670
+ ] }, i);
17671
+ }) });
17672
+ };
17608
17673
  return /* @__PURE__ */ jsxs("g", { children: [
17609
17674
  fitArt(r, chainExtent(), art),
17610
17675
  bottomLabel2(node, r.cx, r.label)
@@ -17644,7 +17709,7 @@ function ShapeEthereumChainNode({ node, active }) {
17644
17709
  }
17645
17710
  ),
17646
17711
  /* @__PURE__ */ jsx(EthereumDiamond, { cx: bx + blockW / 2, cy: cy - 6, h: 16, colors: iconColors }),
17647
- /* @__PURE__ */ jsxs("text", { x: bx + blockW / 2, y: cy + 22, fontSize: 9, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-text-dim, #5a6270)", children: [
17712
+ /* @__PURE__ */ jsxs("text", { "data-cdl-counter-scaled": "0", x: bx + blockW / 2, y: cy + 22, fontSize: ETH_NO_SIZE, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontWeight: 700, textAnchor: "middle", fill: isCurrent ? "#ffffff" : "var(--cdl-text-dim, #5a6270)", children: [
17648
17713
  "#",
17649
17714
  21400 + i
17650
17715
  ] })
@@ -17823,39 +17888,46 @@ function ShapeNftNode({ node, active }) {
17823
17888
  const artH = cardH * 0.72;
17824
17889
  const artCx = x + cardW / 2;
17825
17890
  const artCy = y + artH / 2;
17826
- const art = /* @__PURE__ */ jsxs("g", { children: [
17827
- /* @__PURE__ */ jsx("rect", { x: x + 4, y: y + 4, width: cardW, height: cardH, rx: 14, fill: frame.stroke, opacity: 0.2, stroke: "none" }),
17828
- /* @__PURE__ */ jsx("rect", { "data-cdl-role": "node-body", x, y, width: cardW, height: cardH, rx: 14, ...frame }),
17829
- /* @__PURE__ */ jsx(
17830
- "path",
17831
- {
17832
- d: `M ${x} ${y + artH} L ${x} ${y + 14} Q ${x} ${y}, ${x + 14} ${y} L ${x + cardW - 14} ${y} Q ${x + cardW} ${y}, ${x + cardW} ${y + 14} L ${x + cardW} ${y + artH} Z`,
17833
- fill: "var(--cdl-tone-accent, #2d6a8f)",
17834
- fillOpacity: 0.15,
17835
- stroke: "none"
17836
- }
17837
- ),
17838
- /* @__PURE__ */ jsx(
17839
- "text",
17840
- {
17841
- x: artCx,
17842
- y: artCy + 24,
17843
- fontSize: 68,
17844
- fontWeight: 900,
17845
- letterSpacing: 4,
17846
- textAnchor: "middle",
17847
- fill: "var(--cdl-tone-accent, #2d6a8f)",
17848
- fontFamily: "Georgia, serif",
17849
- children: "NFT"
17850
- }
17851
- ),
17852
- /* @__PURE__ */ jsx("line", { x1: x, y1: y + artH, x2: x + cardW, y2: y + artH, stroke: frame.stroke, strokeWidth: 1, opacity: 0.5 }),
17853
- /* @__PURE__ */ jsx("text", { x: x + 16, y: y + artH + 30, fontSize: 15, fontWeight: 700, fill: "var(--cdl-text, #1a1f2a)", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", children: "#1024" }),
17854
- /* @__PURE__ */ jsxs("g", { transform: `translate(${x + cardW - 20}, ${y + artH + 22})`, children: [
17855
- /* @__PURE__ */ jsx("circle", { cx: 0, cy: 0, r: 10, fill: "#27c93f", stroke: "#ffffff", strokeWidth: 2 }),
17856
- /* @__PURE__ */ jsx("path", { d: "M -4 0 L -1 3 L 4 -3", fill: "none", stroke: "#ffffff", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round" })
17857
- ] })
17858
- ] });
17891
+ const \u6253\u3061\u6D88\u3059\u5B57\u3089 = [
17892
+ { text: "#1024", size: NFT_ID_SIZE, \u5E2F: { \u5E45: cardW - 16 - 34, \u9AD8\u3055: cardH - artH } }
17893
+ ];
17894
+ const art = (\u500D\u7387) => {
17895
+ const \u500D = \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387, \u6253\u3061\u6D88\u3059\u5B57\u3089);
17896
+ return /* @__PURE__ */ jsxs("g", { children: [
17897
+ /* @__PURE__ */ jsx("rect", { x: x + 4, y: y + 4, width: cardW, height: cardH, rx: 14, fill: frame.stroke, opacity: 0.2, stroke: "none" }),
17898
+ /* @__PURE__ */ jsx("rect", { "data-cdl-role": "node-body", x, y, width: cardW, height: cardH, rx: 14, ...frame }),
17899
+ /* @__PURE__ */ jsx(
17900
+ "path",
17901
+ {
17902
+ d: `M ${x} ${y + artH} L ${x} ${y + 14} Q ${x} ${y}, ${x + 14} ${y} L ${x + cardW - 14} ${y} Q ${x + cardW} ${y}, ${x + cardW} ${y + 14} L ${x + cardW} ${y + artH} Z`,
17903
+ fill: "var(--cdl-tone-accent, #2d6a8f)",
17904
+ fillOpacity: 0.15,
17905
+ stroke: "none"
17906
+ }
17907
+ ),
17908
+ /* @__PURE__ */ jsx(
17909
+ "text",
17910
+ {
17911
+ "data-cdl-counter-scaled": "0",
17912
+ x: artCx,
17913
+ y: artCy + 24,
17914
+ fontSize: 68,
17915
+ fontWeight: 900,
17916
+ letterSpacing: 4,
17917
+ textAnchor: "middle",
17918
+ fill: "var(--cdl-tone-accent, #2d6a8f)",
17919
+ fontFamily: "Georgia, serif",
17920
+ children: "NFT"
17921
+ }
17922
+ ),
17923
+ /* @__PURE__ */ jsx("line", { x1: x, y1: y + artH, x2: x + cardW, y2: y + artH, stroke: frame.stroke, strokeWidth: 1, opacity: 0.5 }),
17924
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "1", x: x + 16, y: y + artH + 30, fontSize: NFT_ID_SIZE * \u500D, fontWeight: 700, fill: "var(--cdl-text, #1a1f2a)", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", children: "#1024" }),
17925
+ /* @__PURE__ */ jsxs("g", { transform: `translate(${x + cardW - 20}, ${y + artH + 22})`, children: [
17926
+ /* @__PURE__ */ jsx("circle", { cx: 0, cy: 0, r: 10, fill: "#27c93f", stroke: "#ffffff", strokeWidth: 2 }),
17927
+ /* @__PURE__ */ jsx("path", { d: "M -4 0 L -1 3 L 4 -3", fill: "none", stroke: "#ffffff", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round" })
17928
+ ] })
17929
+ ] });
17930
+ };
17859
17931
  return /* @__PURE__ */ jsxs("g", { children: [
17860
17932
  fitArt(r, nftExtent(frame.strokeWidth), art),
17861
17933
  bottomLabel2(node, r.cx, r.label)
@@ -17984,7 +18056,7 @@ function ShapeBankNode({ node, active }) {
17984
18056
  }),
17985
18057
  /* @__PURE__ */ jsx("path", { d: `M ${x - BANK_BODY_OUT} ${y + pedimentH} L ${r.cx} ${y - BANK_PEDIMENT_RISE} L ${x + bldW + BANK_BODY_OUT} ${y + pedimentH} Z`, fill: "var(--cdl-node-fill, #ffffff)", stroke: frame.stroke, strokeWidth: frame.strokeWidth, strokeLinejoin: "round" }),
17986
18058
  /* @__PURE__ */ jsx("circle", { cx: r.cx, cy: y + pedimentH / 2 + 4, r: 14, fill: "var(--cdl-tone-accent, #2d6a8f)", stroke: frame.stroke, strokeWidth: 1.5 }),
17987
- /* @__PURE__ */ jsx("text", { x: r.cx, y: y + pedimentH / 2 + 10, fontSize: 18, fontWeight: 700, textAnchor: "middle", fill: "#ffffff", fontFamily: "Georgia, serif", children: "$" }),
18059
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: r.cx, y: y + pedimentH / 2 + 10, fontSize: 18, fontWeight: 700, textAnchor: "middle", fill: "#ffffff", fontFamily: "Georgia, serif", children: "$" }),
17988
18060
  /* @__PURE__ */ jsx("rect", { x: x - 4, y: y + pedimentH, width: bldW + 8, height: architraveH, fill: "var(--cdl-divider, #d4d4d8)", fillOpacity: 0.4, stroke: frame.stroke, strokeWidth: frame.strokeWidth }),
17989
18061
  Array.from({ length: nCols }, (_, i) => i).map((i) => {
17990
18062
  const colCx = x + 12 + colGap + i * (colW + colGap) + colW / 2;
@@ -18050,7 +18122,7 @@ function ShapeTrustBankNode({ node, active, lang }) {
18050
18122
  return /* @__PURE__ */ jsx("rect", { x: r.cx - w / 2, y: y + bldH + i * BANK_STEP_DY, width: w, height: BANK_STEP_H, fill: "var(--cdl-divider, #d4d4d8)", fillOpacity: 0.5 + i * 0.15, stroke: frame.stroke, strokeWidth: BANK_STEP_SW }, i);
18051
18123
  }),
18052
18124
  /* @__PURE__ */ jsx("path", { d: `M ${x - 6} ${y + pedimentH} L ${r.cx} ${y + 2} L ${x + bldW + 6} ${y + pedimentH} Z`, fill: "var(--cdl-node-fill, #ffffff)", stroke: frame.stroke, strokeWidth: frame.strokeWidth, strokeLinejoin: "round" }),
18053
- /* @__PURE__ */ jsx("text", { x: r.cx, y: y + pedimentH - 8, fontSize: 15, fontWeight: 700, letterSpacing: 2, textAnchor: "middle", fill: "var(--cdl-tone-accent, #2d6a8f)", fontFamily: "Georgia, serif", children: \u5B57\u5F15("trustBank.sign") }),
18125
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: r.cx, y: y + pedimentH - 8, fontSize: 15, fontWeight: 700, letterSpacing: 2, textAnchor: "middle", fill: "var(--cdl-tone-accent, #2d6a8f)", fontFamily: "Georgia, serif", children: \u5B57\u5F15("trustBank.sign") }),
18054
18126
  /* @__PURE__ */ jsx("rect", { x: x - 4, y: y + pedimentH, width: bldW + 8, height: architraveH, fill: "var(--cdl-divider, #d4d4d8)", fillOpacity: 0.4, stroke: frame.stroke, strokeWidth: frame.strokeWidth }),
18055
18127
  Array.from({ length: nCols }, (_, i) => i).map((i) => {
18056
18128
  const colCx = x + 15 + colGap + i * (colW + colGap) + colW / 2;
@@ -18124,6 +18196,9 @@ function ShapeCreditCardNode({ node, active }) {
18124
18196
  }
18125
18197
  var BROKERAGE_TICK_H = 12;
18126
18198
  var BROKERAGE_LOGO_H = 26;
18199
+ var BROKERAGE_TICK_INNER_H = 8;
18200
+ var BROKERAGE_TICKER_SIZE = 5.5;
18201
+ var BROKERAGE_SIGN_SIZE = 12;
18127
18202
  var BROKERAGE_GRID_TOP = 62;
18128
18203
  var BROKERAGE_CELL_W = 14;
18129
18204
  var BROKERAGE_CELL_H = 18;
@@ -18172,35 +18247,46 @@ function ShapeBrokerageNode({ node, active, lang }) {
18172
18247
  );
18173
18248
  const gridStartX = x + (w - (cols * cellW + (cols - 1) * gapX)) / 2;
18174
18249
  const goldCells = /* @__PURE__ */ new Set([`0,1`, `0,4`, `1,2`, `2,3`, `3,5`]);
18175
- const \u7D75 = /* @__PURE__ */ jsxs("g", { children: [
18176
- /* @__PURE__ */ jsx("ellipse", { cx, cy: y + h + BROKERAGE_SHADOW_DY, rx: w * BROKERAGE_SHADOW_RX_RATIO, ry: BROKERAGE_SHADOW_RY, fill: frame.stroke, opacity: 0.2, stroke: "none" }),
18177
- /* @__PURE__ */ jsx("rect", { "data-cdl-role": "node-body", x, y, width: w, height: h, fill: "#255a7a", stroke: accentDarker, strokeWidth: frame.strokeWidth }),
18178
- /* @__PURE__ */ jsx("rect", { x: x - BROKERAGE_SHADE_OUT, y, width: BROKERAGE_SHADE_OUT * 2, height: h, fill: accentDarker }),
18179
- /* @__PURE__ */ jsx("rect", { x, y, width: w, height: BROKERAGE_TICK_H, fill: "#0f1830", stroke: "none" }),
18180
- /* @__PURE__ */ jsx("rect", { x: x + 2, y: y + 2, width: w - 4, height: 8, fill: "#1a2340", stroke: "none" }),
18181
- /* @__PURE__ */ jsx("text", { x: cx, y: y + 9, fontSize: 5.5, fontWeight: 700, textAnchor: "middle", fill: "#4ea36a", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", children: \u5B57\u5F15("brokerage.ticker") }),
18182
- /* @__PURE__ */ jsx("rect", { x, y: y + BROKERAGE_TICK_H, width: w, height: BROKERAGE_LOGO_H, fill: "#e5c07b", stroke: "none" }),
18183
- /* @__PURE__ */ jsx("text", { x: cx, y: y + 30, fontSize: 12, fontWeight: 700, letterSpacing: 2.5, textAnchor: "middle", fill: "#0f1830", children: \u5B57\u5F15("brokerage.sign") }),
18184
- Array.from({ length: rows }).map(
18185
- (_, ri) => Array.from({ length: cols }).map((_2, ci) => {
18186
- const wx = gridStartX + ci * (cellW + gapX);
18187
- const wy = gridStartY + ri * (cellH + gapY);
18188
- const isGold = goldCells.has(`${ri},${ci}`);
18189
- return /* @__PURE__ */ jsx("rect", { x: wx, y: wy, width: cellW, height: cellH, fill: isGold ? "#e5c07b" : accentDarker }, `w${ri}${ci}`);
18190
- })
18191
- ),
18192
- /* @__PURE__ */ jsx("rect", { x, y: y + h - BROKERAGE_BASE_H, width: w, height: 12, fill: accentDarker }),
18193
- /* @__PURE__ */ jsx("circle", { cx, cy: y + h - 8, r: 12, fill: "#a89d8f", stroke: accentDarker, strokeWidth: 1.5 }),
18194
- /* @__PURE__ */ jsx("circle", { cx, cy: y + h - 8, r: 9, fill: "#8b949e", stroke: accentDarker, strokeWidth: 1 }),
18195
- /* @__PURE__ */ jsx("line", { x1: cx - 9, y1: y + h - 8, x2: cx + 9, y2: y + h - 8, stroke: accentDarker, strokeWidth: 0.8 }),
18196
- /* @__PURE__ */ jsx("line", { x1: cx, y1: y + h - 17, x2: cx, y2: y + h - 1, stroke: accentDarker, strokeWidth: 0.8 }),
18197
- /* @__PURE__ */ jsx("rect", { x: x - BROKERAGE_FLOOR_OUT, y: y + h + BROKERAGE_FLOOR_DY, width: w + BROKERAGE_FLOOR_OUT * 2, height: BROKERAGE_FLOOR_H, fill: "#5a6270", stroke: "none" })
18198
- ] });
18250
+ const \u6253\u3061\u6D88\u3059\u5B57\u3089 = [
18251
+ {
18252
+ text: \u5B57\u5F15("brokerage.ticker"),
18253
+ size: BROKERAGE_TICKER_SIZE,
18254
+ \u5E2F: { \u5E45: w - 4, \u9AD8\u3055: BROKERAGE_TICK_INNER_H }
18255
+ }
18256
+ ];
18257
+ const \u7D75 = (\u500D\u7387) => {
18258
+ const \u500D = \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387, \u6253\u3061\u6D88\u3059\u5B57\u3089);
18259
+ return /* @__PURE__ */ jsxs("g", { children: [
18260
+ /* @__PURE__ */ jsx("ellipse", { cx, cy: y + h + BROKERAGE_SHADOW_DY, rx: w * BROKERAGE_SHADOW_RX_RATIO, ry: BROKERAGE_SHADOW_RY, fill: frame.stroke, opacity: 0.2, stroke: "none" }),
18261
+ /* @__PURE__ */ jsx("rect", { "data-cdl-role": "node-body", x, y, width: w, height: h, fill: "#255a7a", stroke: accentDarker, strokeWidth: frame.strokeWidth }),
18262
+ /* @__PURE__ */ jsx("rect", { x: x - BROKERAGE_SHADE_OUT, y, width: BROKERAGE_SHADE_OUT * 2, height: h, fill: accentDarker }),
18263
+ /* @__PURE__ */ jsx("rect", { x, y, width: w, height: BROKERAGE_TICK_H, fill: "#0f1830", stroke: "none" }),
18264
+ /* @__PURE__ */ jsx("rect", { x: x + 2, y: y + 2, width: w - 4, height: 8, fill: "#1a2340", stroke: "none" }),
18265
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "1", x: cx, y: y + 9, fontSize: BROKERAGE_TICKER_SIZE * \u500D, fontWeight: 700, textAnchor: "middle", fill: "#4ea36a", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", children: \u5B57\u5F15("brokerage.ticker") }),
18266
+ /* @__PURE__ */ jsx("rect", { x, y: y + BROKERAGE_TICK_H, width: w, height: BROKERAGE_LOGO_H, fill: "#e5c07b", stroke: "none" }),
18267
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: cx, y: y + 30, fontSize: BROKERAGE_SIGN_SIZE, fontWeight: 700, letterSpacing: 2.5, textAnchor: "middle", fill: "#0f1830", children: \u5B57\u5F15("brokerage.sign") }),
18268
+ Array.from({ length: rows }).map(
18269
+ (_, ri) => Array.from({ length: cols }).map((_2, ci) => {
18270
+ const wx = gridStartX + ci * (cellW + gapX);
18271
+ const wy = gridStartY + ri * (cellH + gapY);
18272
+ const isGold = goldCells.has(`${ri},${ci}`);
18273
+ return /* @__PURE__ */ jsx("rect", { x: wx, y: wy, width: cellW, height: cellH, fill: isGold ? "#e5c07b" : accentDarker }, `w${ri}${ci}`);
18274
+ })
18275
+ ),
18276
+ /* @__PURE__ */ jsx("rect", { x, y: y + h - BROKERAGE_BASE_H, width: w, height: 12, fill: accentDarker }),
18277
+ /* @__PURE__ */ jsx("circle", { cx, cy: y + h - 8, r: 12, fill: "#a89d8f", stroke: accentDarker, strokeWidth: 1.5 }),
18278
+ /* @__PURE__ */ jsx("circle", { cx, cy: y + h - 8, r: 9, fill: "#8b949e", stroke: accentDarker, strokeWidth: 1 }),
18279
+ /* @__PURE__ */ jsx("line", { x1: cx - 9, y1: y + h - 8, x2: cx + 9, y2: y + h - 8, stroke: accentDarker, strokeWidth: 0.8 }),
18280
+ /* @__PURE__ */ jsx("line", { x1: cx, y1: y + h - 17, x2: cx, y2: y + h - 1, stroke: accentDarker, strokeWidth: 0.8 }),
18281
+ /* @__PURE__ */ jsx("rect", { x: x - BROKERAGE_FLOOR_OUT, y: y + h + BROKERAGE_FLOOR_DY, width: w + BROKERAGE_FLOOR_OUT * 2, height: BROKERAGE_FLOOR_H, fill: "#5a6270", stroke: "none" })
18282
+ ] });
18283
+ };
18199
18284
  return /* @__PURE__ */ jsxs("g", { children: [
18200
18285
  fitArt(r, \u5E83\u304C\u308A, \u7D75),
18201
18286
  bottomLabel3(node, r.cx, r.label)
18202
18287
  ] });
18203
18288
  }
18289
+ var EXCHANGE_SUB_SIZE = 8;
18204
18290
  function ShapeExchangeNode({ node, active, lang }) {
18205
18291
  const \u5B57\u5F15 = \u5B57\u5F15\u304D\u3092\u4F5C\u308B(lang);
18206
18292
  const frame = commonFrame5(active);
@@ -18228,7 +18314,7 @@ function ShapeExchangeNode({ node, active, lang }) {
18228
18314
  const hexPath = hexPoints.map((p, i) => `${i === 0 ? "M" : "L"} ${p.x} ${p.y}`).join(" ") + " Z";
18229
18315
  const \u7BC0\u70B9 = Math.max(0, nodeR) + 8 + 1.5 / 2;
18230
18316
  const \u516D\u89D2 = hexR + frame.strokeWidth / 2;
18231
- const \u5B57\u4E0B = 26 + 8 * 0.25;
18317
+ const \u5B57\u4E0B = 26 + EXCHANGE_SUB_SIZE * 0.25;
18232
18318
  const \u5916 = Math.max(\u7BC0\u70B9, \u516D\u89D2);
18233
18319
  const \u305A\u308C = cy - r.cy;
18234
18320
  const \u5E83\u304C\u308A = {
@@ -18237,21 +18323,27 @@ function ShapeExchangeNode({ node, active, lang }) {
18237
18323
  \u5DE6: \u5916,
18238
18324
  \u53F3: \u5916
18239
18325
  };
18240
- const \u7D75 = /* @__PURE__ */ jsxs("g", { children: [
18241
- nodes.map((n, i) => /* @__PURE__ */ jsx("line", { x1: cx, y1: cy, x2: n.cx, y2: n.cy, stroke: accentDarker, strokeWidth: 1.5, strokeDasharray: "3 2" }, `l${i}`)),
18242
- nodes.map((n, i) => {
18243
- const isGreen = i % 2 === 0;
18244
- return /* @__PURE__ */ jsxs("circle", { r: 4, fill: isGreen ? "#4ea36a" : "#c15a4a", stroke: "none", children: [
18245
- /* @__PURE__ */ jsx("animate", { attributeName: "cx", values: isGreen ? `${n.cx};${cx};${n.cx}` : `${cx};${n.cx};${cx}`, dur: `${1.5 + i % 3 * 0.3}s`, repeatCount: "indefinite", begin: `${i * 0.15}s` }),
18246
- /* @__PURE__ */ jsx("animate", { attributeName: "cy", values: isGreen ? `${n.cy};${cy};${n.cy}` : `${cy};${n.cy};${cy}`, dur: `${1.5 + i % 3 * 0.3}s`, repeatCount: "indefinite", begin: `${i * 0.15}s` })
18247
- ] }, `d${i}`);
18248
- }),
18249
- /* @__PURE__ */ jsx("path", { d: hexPath, fill: "#255a7a", stroke: accentDarker, strokeWidth: frame.strokeWidth, strokeLinejoin: "round" }),
18250
- /* @__PURE__ */ jsx("text", { x: cx, y: cy - 8, fontSize: 10, fontWeight: 700, letterSpacing: 2, textAnchor: "middle", fill: "#e5c07b", children: \u5B57\u5F15("exchange.sign") }),
18251
- /* @__PURE__ */ jsx("text", { "data-cdl-role": "node-body", x: cx, y: cy + 12, fontSize: 22, fontWeight: 700, textAnchor: "middle", fill: "#e5c07b", children: "\u21C4" }),
18252
- /* @__PURE__ */ jsx("text", { x: cx, y: cy + 26, fontSize: 8, fontWeight: 700, textAnchor: "middle", fill: "#a4b5f2", children: \u5B57\u5F15("exchange.sub") }),
18253
- nodes.map((n, i) => /* @__PURE__ */ jsx("circle", { cx: n.cx, cy: n.cy, r: 8, fill: n.fill, stroke: accentDarker, strokeWidth: 1.5 }, `n${i}`))
18254
- ] });
18326
+ const \u6253\u3061\u6D88\u3059\u5B57\u3089 = [
18327
+ { text: \u5B57\u5F15("exchange.sub"), size: EXCHANGE_SUB_SIZE, \u5E2F: { \u5E45: \u5916 * 2, \u9AD8\u3055: 14 } }
18328
+ ];
18329
+ const \u7D75 = (\u500D\u7387) => {
18330
+ const \u500D = \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387, \u6253\u3061\u6D88\u3059\u5B57\u3089);
18331
+ return /* @__PURE__ */ jsxs("g", { children: [
18332
+ nodes.map((n, i) => /* @__PURE__ */ jsx("line", { x1: cx, y1: cy, x2: n.cx, y2: n.cy, stroke: accentDarker, strokeWidth: 1.5, strokeDasharray: "3 2" }, `l${i}`)),
18333
+ nodes.map((n, i) => {
18334
+ const isGreen = i % 2 === 0;
18335
+ return /* @__PURE__ */ jsxs("circle", { r: 4, fill: isGreen ? "#4ea36a" : "#c15a4a", stroke: "none", children: [
18336
+ /* @__PURE__ */ jsx("animate", { attributeName: "cx", values: isGreen ? `${n.cx};${cx};${n.cx}` : `${cx};${n.cx};${cx}`, dur: `${1.5 + i % 3 * 0.3}s`, repeatCount: "indefinite", begin: `${i * 0.15}s` }),
18337
+ /* @__PURE__ */ jsx("animate", { attributeName: "cy", values: isGreen ? `${n.cy};${cy};${n.cy}` : `${cy};${n.cy};${cy}`, dur: `${1.5 + i % 3 * 0.3}s`, repeatCount: "indefinite", begin: `${i * 0.15}s` })
18338
+ ] }, `d${i}`);
18339
+ }),
18340
+ /* @__PURE__ */ jsx("path", { d: hexPath, fill: "#255a7a", stroke: accentDarker, strokeWidth: frame.strokeWidth, strokeLinejoin: "round" }),
18341
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: cx, y: cy - 8, fontSize: 10, fontWeight: 700, letterSpacing: 2, textAnchor: "middle", fill: "#e5c07b", children: \u5B57\u5F15("exchange.sign") }),
18342
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", "data-cdl-role": "node-body", x: cx, y: cy + 12, fontSize: 22, fontWeight: 700, textAnchor: "middle", fill: "#e5c07b", children: "\u21C4" }),
18343
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "1", x: cx, y: cy + 26, fontSize: EXCHANGE_SUB_SIZE * \u500D, fontWeight: 700, textAnchor: "middle", fill: "#a4b5f2", children: \u5B57\u5F15("exchange.sub") }),
18344
+ nodes.map((n, i) => /* @__PURE__ */ jsx("circle", { cx: n.cx, cy: n.cy, r: 8, fill: n.fill, stroke: accentDarker, strokeWidth: 1.5 }, `n${i}`))
18345
+ ] });
18346
+ };
18255
18347
  return /* @__PURE__ */ jsxs("g", { children: [
18256
18348
  fitArt(r, \u5E83\u304C\u308A, \u7D75),
18257
18349
  bottomLabel3(node, r.cx, r.label)
@@ -18306,13 +18398,13 @@ function ShapeAtmNode({ node, active, lang }) {
18306
18398
  const \u7D75 = /* @__PURE__ */ jsxs("g", { children: [
18307
18399
  /* @__PURE__ */ jsx("ellipse", { cx, cy: y + totalH + ATM_SHADOW_DY, rx: totalW * ATM_SHADOW_RX_RATIO, ry: ATM_SHADOW_RY, fill: frame.stroke, opacity: 0.15, stroke: "none" }),
18308
18400
  /* @__PURE__ */ jsx("rect", { x: centerX - totalW / 2, y: signY, width: totalW, height: signH, fill: accentDarker, stroke: "#000", strokeWidth: ATM_SIGN_SW }),
18309
- /* @__PURE__ */ jsx("text", { x: centerX, y: signY + 17, fontSize: 11, fontWeight: 700, letterSpacing: 2, textAnchor: "middle", fill: "#e5c07b", children: \u5B57\u5F15("atm.sign") }),
18401
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: centerX, y: signY + 17, fontSize: 11, fontWeight: 700, letterSpacing: 2, textAnchor: "middle", fill: "#e5c07b", children: \u5B57\u5F15("atm.sign") }),
18310
18402
  /* @__PURE__ */ jsx("rect", { "data-cdl-role": "node-body", x: atmX, y: atmY, width: atmW, height: atmH, rx: 6, fill: "#255a7a", stroke: accentDarker, strokeWidth: frame.strokeWidth }),
18311
18403
  /* @__PURE__ */ jsxs("g", { transform: `translate(${centerX} ${atmY}) scale(${\u9762})`, children: [
18312
18404
  /* @__PURE__ */ jsx("rect", { x: \u9762\u5DE6 + 8, y: 10, width: ATM_PANEL_W - 16, height: 52, rx: 3, fill: "#0f1830", stroke: "#000", strokeWidth: 1.5 }),
18313
- /* @__PURE__ */ jsx("text", { x: 0, y: 30, fontSize: 10, fontWeight: 700, letterSpacing: 1, textAnchor: "middle", fill: "#e5c07b", children: "\u304A\u5F15\u51FA\u3057" }),
18314
- /* @__PURE__ */ jsx("text", { x: 0, y: 44, fontSize: 8, fontWeight: 700, textAnchor: "middle", fill: "#a4b5f2", children: \u5B57\u5F15("atm.screen") }),
18315
- /* @__PURE__ */ jsx("text", { x: 0, y: 56, fontSize: 10, fontWeight: 700, textAnchor: "middle", fill: "#4ea36a", children: "\xA5 20,000" }),
18405
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: 0, y: 30, fontSize: 10, fontWeight: 700, letterSpacing: 1, textAnchor: "middle", fill: "#e5c07b", children: "\u304A\u5F15\u51FA\u3057" }),
18406
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: 0, y: 44, fontSize: 8, fontWeight: 700, textAnchor: "middle", fill: "#a4b5f2", children: \u5B57\u5F15("atm.screen") }),
18407
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: 0, y: 56, fontSize: 10, fontWeight: 700, textAnchor: "middle", fill: "#4ea36a", children: "\xA5 20,000" }),
18316
18408
  /* @__PURE__ */ jsx("rect", { x: \u9762\u5DE6 + 8, y: 68, width: ATM_PANEL_W - 16, height: 42, rx: 2, fill: "#8b949e", stroke: "#5a6270", strokeWidth: 1 }),
18317
18409
  (() => {
18318
18410
  const keys = [
@@ -18338,7 +18430,7 @@ function ShapeAtmNode({ node, active, lang }) {
18338
18430
  const ky = 74 + row * (keyH + 2);
18339
18431
  return /* @__PURE__ */ jsxs("g", { children: [
18340
18432
  /* @__PURE__ */ jsx("rect", { x: kx, y: ky, width: keyW, height: keyH, fill: k[1], stroke: "#0f1830", strokeWidth: 0.8 }),
18341
- /* @__PURE__ */ jsx("text", { x: kx + keyW / 2, y: ky + 7, fontSize: (
18433
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: kx + keyW / 2, y: ky + 7, fontSize: (
18342
18434
  /* 決める鍵 (末尾) は 2 字あるので小さく描く。 字は言語で変わるため位置で見分ける */
18343
18435
  i === keys.length - 1 ? 6 : 7
18344
18436
  ), fontWeight: 700, textAnchor: "middle", fill: "#ffffff", children: k[0] })
@@ -18347,7 +18439,7 @@ function ShapeAtmNode({ node, active, lang }) {
18347
18439
  })(),
18348
18440
  /* @__PURE__ */ jsx("rect", { x: \u9762\u5DE6 + 12, y: 116, width: ATM_PANEL_W - 24, height: 8, rx: 1.5, fill: "#0f1830", stroke: accentDarker, strokeWidth: 1 }),
18349
18441
  /* @__PURE__ */ jsx("rect", { x: \u9762\u5DE6 + 15, y: 118, width: ATM_PANEL_W - 30, height: 4, rx: 0.5, fill: "#e5c07b" }),
18350
- /* @__PURE__ */ jsx("text", { x: 0, y: 132, fontSize: 6, fontWeight: 700, letterSpacing: 1, textAnchor: "middle", fill: "#e5c07b", children: \u5B57\u5F15("atm.cardSlot") }),
18442
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: 0, y: 132, fontSize: 6, fontWeight: 700, letterSpacing: 1, textAnchor: "middle", fill: "#e5c07b", children: \u5B57\u5F15("atm.cardSlot") }),
18351
18443
  /* @__PURE__ */ jsx("rect", { x: \u9762\u5DE6 + 12, y: 136, width: ATM_PANEL_W - 24, height: 4, rx: 1, fill: "#0f1830" })
18352
18444
  ] }),
18353
18445
  /* @__PURE__ */ jsx("rect", { x: centerX - totalW / 2, y: floorY, width: totalW, height: 6, fill: "#8b949e", stroke: "none" }),
@@ -18520,7 +18612,7 @@ function ShapeWarehouseNode({ node, active, lang }) {
18520
18612
  /* @__PURE__ */ jsx("path", { d: `M ${x - WAREHOUSE_ROOF_OUT} ${y + roofH} L ${x + 12} ${y + 2} L ${x + bw - 12} ${y + 2} L ${x + bw + WAREHOUSE_ROOF_OUT} ${y + roofH} Z`, fill: "#5a6270", stroke: accentDarker, strokeWidth: WAREHOUSE_ROOF_SW, strokeLinejoin: "round" }),
18521
18613
  /* @__PURE__ */ jsx("rect", { "data-cdl-role": "node-body", x, y: y + roofH, width: bw, height: bh - roofH - 12, fill: "#a89d8f", stroke: "#5a6270", strokeWidth: frame.strokeWidth }),
18522
18614
  /* @__PURE__ */ jsx("rect", { x, y: y + roofH, width: bw, height: signH, fill: "#c15a4a", stroke: "#8b3f2f", strokeWidth: 1.5 }),
18523
- /* @__PURE__ */ jsx("text", { x: cx, y: y + roofH + 17, fontSize: 12, fontWeight: 900, letterSpacing: 6, textAnchor: "middle", fill: "#ffffff", children: \u5B57\u5F15("warehouse.sign") }),
18615
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: cx, y: y + roofH + 17, fontSize: 12, fontWeight: 900, letterSpacing: 6, textAnchor: "middle", fill: "#ffffff", children: \u5B57\u5F15("warehouse.sign") }),
18524
18616
  /* @__PURE__ */ jsx("rect", { x: shutterX, y: shutterY, width: shutterW, height: shutterH, fill: "#8b949e", stroke: accentDarker, strokeWidth: 2 }),
18525
18617
  /* @__PURE__ */ jsx("rect", { x: shutterX, y: shutterY, width: shutterW, height: 5, fill: "#5a6270", stroke: "none" }),
18526
18618
  Array.from({ length: 10 }, (_, i) => i).map((i) => /* @__PURE__ */ jsx(
@@ -18675,6 +18767,10 @@ var API_ROW_PITCH_MIN = 30;
18675
18767
  var API_ROW_BOTTOM_PAD = 12;
18676
18768
  var API_ROWS = 3;
18677
18769
  var API_H_MIN = API_ROW_TOP + (API_ROWS - 1) * API_ROW_PITCH_MIN + API_ROW_H + API_ROW_BOTTOM_PAD;
18770
+ var API_PATH_SIZE = 12;
18771
+ var API_SIGN_SIZE = 14;
18772
+ var API_METHOD_BOX_W = 54;
18773
+ var API_METHOD_TEXT_W = 48;
18678
18774
  var API_W_MIN = 200;
18679
18775
  var API_W_MAX = 300;
18680
18776
  function ShapeApiGatewayNode({ node, active, lang }) {
@@ -18689,28 +18785,37 @@ function ShapeApiGatewayNode({ node, active, lang }) {
18689
18785
  const x = cx - bw / 2;
18690
18786
  const y = r.cy - \u7E26 / 2 + \u4F59\u767D;
18691
18787
  const \u5E83\u304C\u308A = { \u4E0A: \u7E26 / 2, \u4E0B: \u7E26 / 2, \u5DE6: bw / 2 + \u4F59\u767D, \u53F3: bw / 2 + \u4F59\u767D };
18692
- const \u7A2E\u985E\u306E\u5B57 = (s) => Math.min(11, 11 * 48 / Math.max(displayWidth(s) * 11 * MONO_ADVANCE_RATIO, textWidth(s, 11)));
18788
+ const \u7A2E\u985E\u306E\u5B57 = (s) => Math.min(11, 11 * API_METHOD_TEXT_W / Math.max(displayWidth(s) * 11 * MONO_ADVANCE_RATIO, textWidth(s, 11)));
18693
18789
  const rowPitch = Math.max(
18694
18790
  API_ROW_PITCH_MIN,
18695
18791
  (bh - API_ROW_TOP - API_ROW_H - API_ROW_BOTTOM_PAD) / (API_ROWS - 1)
18696
18792
  );
18697
- const \u7D75 = /* @__PURE__ */ jsxs("g", { children: [
18698
- /* @__PURE__ */ jsx("rect", { x: x + DROP_SHADOW_D, y: y + DROP_SHADOW_D, width: bw, height: bh, rx: 10, fill: frame.stroke, opacity: 0.2, stroke: "none" }),
18699
- /* @__PURE__ */ jsx("rect", { "data-cdl-role": "node-body", x, y, width: bw, height: bh, rx: 10, fill: "#1a2332", stroke: frame.stroke, strokeWidth: frame.strokeWidth }),
18700
- /* @__PURE__ */ jsx("rect", { x, y, width: bw, height: 36, rx: 10, fill: "var(--cdl-tone-accent, #2d6a8f)", stroke: "none" }),
18701
- /* @__PURE__ */ jsx("text", { x: cx, y: y + 24, fontSize: 14, fontWeight: 700, letterSpacing: 3, textAnchor: "middle", fill: "#ffffff", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", children: \u5B57\u5F15("apiGateway.sign") }),
18702
- [
18703
- { method: "GET", path: \u5B57\u5F15("apiGateway.users"), color: "#27c93f" },
18704
- { method: "POST", path: \u5B57\u5F15("apiGateway.orders"), color: "#e5c07b" },
18705
- { method: \u5B57\u5F15("apiGateway.delete"), path: \u5B57\u5F15("apiGateway.session"), color: "#c9302c" }
18706
- ].map((e, i) => /* @__PURE__ */ jsxs("g", { transform: `translate(${x + 16}, ${y + API_ROW_TOP + i * rowPitch})`, children: [
18707
- /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: bw - 32, height: API_ROW_H, rx: 4, fill: "#0f1419", stroke: "none" }),
18708
- /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: 54, height: API_ROW_H, rx: 4, fill: e.color, stroke: "none" }),
18709
- /* @__PURE__ */ jsx("text", { x: 27, y: 16, fontSize: \u7A2E\u985E\u306E\u5B57(e.method), fontWeight: 700, textAnchor: "middle", fill: "#ffffff", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", children: e.method }),
18710
- /* @__PURE__ */ jsx("text", { x: 64, y: 16, fontSize: 12, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fill: "#e6edf3", children: e.path }),
18711
- /* @__PURE__ */ jsx("circle", { cx: bw - 44, cy: 12, r: 4, fill: "#27c93f", stroke: "none", children: /* @__PURE__ */ jsx("animate", { attributeName: "opacity", values: "0.4;1;0.4", dur: `${1.2 + i * 0.3}s`, repeatCount: "indefinite" }) })
18712
- ] }, i))
18713
- ] });
18793
+ const \u884C\u3089 = [
18794
+ { method: "GET", path: \u5B57\u5F15("apiGateway.users"), color: "#27c93f" },
18795
+ { method: "POST", path: \u5B57\u5F15("apiGateway.orders"), color: "#e5c07b" },
18796
+ { method: \u5B57\u5F15("apiGateway.delete"), path: \u5B57\u5F15("apiGateway.session"), color: "#c9302c" }
18797
+ ];
18798
+ const \u6253\u3061\u6D88\u3059\u5B57\u3089 = \u884C\u3089.map((e) => ({
18799
+ text: e.path,
18800
+ size: API_PATH_SIZE,
18801
+ \u5E2F: { \u5E45: bw - 32 - 64 - 16, \u9AD8\u3055: API_ROW_H }
18802
+ }));
18803
+ const \u7D75 = (\u500D\u7387) => {
18804
+ const \u500D = \u6253\u3061\u6D88\u3057\u306E\u500D\u7387(\u500D\u7387, \u6253\u3061\u6D88\u3059\u5B57\u3089);
18805
+ return /* @__PURE__ */ jsxs("g", { children: [
18806
+ /* @__PURE__ */ jsx("rect", { x: x + DROP_SHADOW_D, y: y + DROP_SHADOW_D, width: bw, height: bh, rx: 10, fill: frame.stroke, opacity: 0.2, stroke: "none" }),
18807
+ /* @__PURE__ */ jsx("rect", { "data-cdl-role": "node-body", x, y, width: bw, height: bh, rx: 10, fill: "#1a2332", stroke: frame.stroke, strokeWidth: frame.strokeWidth }),
18808
+ /* @__PURE__ */ jsx("rect", { x, y, width: bw, height: 36, rx: 10, fill: "var(--cdl-tone-accent, #2d6a8f)", stroke: "none" }),
18809
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: cx, y: y + 24, fontSize: API_SIGN_SIZE, fontWeight: 700, letterSpacing: 3, textAnchor: "middle", fill: "#ffffff", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", children: \u5B57\u5F15("apiGateway.sign") }),
18810
+ \u884C\u3089.map((e, i) => /* @__PURE__ */ jsxs("g", { transform: `translate(${x + 16}, ${y + API_ROW_TOP + i * rowPitch})`, children: [
18811
+ /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: bw - 32, height: API_ROW_H, rx: 4, fill: "#0f1419", stroke: "none" }),
18812
+ /* @__PURE__ */ jsx("rect", { x: 0, y: 0, width: API_METHOD_BOX_W, height: API_ROW_H, rx: 4, fill: e.color, stroke: "none" }),
18813
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: 27, y: 16, fontSize: \u7A2E\u985E\u306E\u5B57(e.method), fontWeight: 700, textAnchor: "middle", fill: "#ffffff", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", children: e.method }),
18814
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "1", x: 64, y: 16, fontSize: API_PATH_SIZE * \u500D, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fill: "#e6edf3", children: e.path }),
18815
+ /* @__PURE__ */ jsx("circle", { cx: bw - 44, cy: 12, r: 4, fill: "#27c93f", stroke: "none", children: /* @__PURE__ */ jsx("animate", { attributeName: "opacity", values: "0.4;1;0.4", dur: `${1.2 + i * 0.3}s`, repeatCount: "indefinite" }) })
18816
+ ] }, i))
18817
+ ] });
18818
+ };
18714
18819
  return /* @__PURE__ */ jsxs("g", { children: [
18715
18820
  fitArt(r, \u5E83\u304C\u308A, \u7D75),
18716
18821
  bottomLabel4(node, r.cx, r.label)
@@ -18930,11 +19035,11 @@ function ShapeNotaryNode({ node, active }) {
18930
19035
  /* @__PURE__ */ jsx("line", { x1: chestX - 14, y1: chestY + 14, x2: chestX + 14, y2: chestY + 14, stroke: "#8b949e", strokeWidth: 1 }),
18931
19036
  /* @__PURE__ */ jsx("line", { x1: chestX - 14, y1: chestY + 22, x2: chestX + 8, y2: chestY + 22, stroke: "#8b949e", strokeWidth: 1 }),
18932
19037
  /* @__PURE__ */ jsx("line", { x1: chestX - 14, y1: chestY + 34, x2: chestX + 2, y2: chestY + 34, stroke: "#0f3450", strokeWidth: 1.5 }),
18933
- /* @__PURE__ */ jsx("text", { x: chestX + 6, y: chestY + 37, fontSize: 8, fill: "#0f3450", fontFamily: "cursive", fontStyle: "italic", children: "\u2713" }),
19038
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: chestX + 6, y: chestY + 37, fontSize: 8, fill: "#0f3450", fontFamily: "cursive", fontStyle: "italic", children: "\u2713" }),
18934
19039
  haloBadge(bx, by, `nt-halo-${node.id}`, "#c15a4a", /* @__PURE__ */ jsxs("g", { children: [
18935
19040
  /* @__PURE__ */ jsx("circle", { cx: 0, cy: 0, r: 12, fill: "#c15a4a", stroke: "none" }),
18936
19041
  /* @__PURE__ */ jsx("circle", { cx: 0, cy: 0, r: 8, fill: "none", stroke: "#ffffff", strokeWidth: 1.2 }),
18937
- /* @__PURE__ */ jsx("text", { x: 0, y: 4, fontFamily: "Georgia, serif", fontSize: 10, fontWeight: 700, fill: "#ffffff", textAnchor: "middle", children: "\u5370" })
19042
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: 0, y: 4, fontFamily: "Georgia, serif", fontSize: 10, fontWeight: 700, fill: "#ffffff", textAnchor: "middle", children: "\u5370" })
18938
19043
  ] }))
18939
19044
  ] })),
18940
19045
  bottomLabel5(node, r.cx, r.label)
@@ -18993,7 +19098,7 @@ function ShapeCustomerServiceNode({ node, active }) {
18993
19098
  p.render,
18994
19099
  collarV(cx, cy, p.strokeColor),
18995
19100
  /* @__PURE__ */ jsx("rect", { x: chestX - 22, y: chestY + 5, width: 44, height: 22, rx: 11, fill: "#e5c07b", stroke: "#a67c00", strokeWidth: 2 }),
18996
- /* @__PURE__ */ jsx("text", { x: chestX, y: chestY + 20, fontSize: 12, fontWeight: 900, fill: "#5a3a10", textAnchor: "middle", letterSpacing: 2, children: "24H" }),
19101
+ /* @__PURE__ */ jsx("text", { "data-cdl-counter-scaled": "0", x: chestX, y: chestY + 20, fontSize: 12, fontWeight: 900, fill: "#5a3a10", textAnchor: "middle", letterSpacing: 2, children: "24H" }),
18997
19102
  haloBadge(bx, by, `cs-halo-${node.id}`, "#a67c00", /* @__PURE__ */ jsxs("g", { children: [
18998
19103
  /* @__PURE__ */ jsx("path", { d: "M -11 4 C -11 -10, -6 -12, 0 -12 C 6 -12, 11 -10, 11 4", fill: "none", stroke: "#a67c00", strokeWidth: 2.5, strokeLinecap: "round" }),
18999
19104
  /* @__PURE__ */ jsx("rect", { x: -13, y: 2, width: 6, height: 11, rx: 1.5, fill: "#e5c07b", stroke: "#a67c00", strokeWidth: 1.5 }),