[{"data":1,"prerenderedAt":6521},["ShallowReactive",2],{"wrun-open-editor-url":3,"indicators:cookbook/session-map":4},"https://openmarket.xyz/chart/#wrun-open=v1",{"slug":5,"filePath":6,"frontmatter":7,"rawMarkdown":12,"tree":13},"cookbook/session-map","cookbook/session-map.md",{"title":8,"description":9,"order":10,"section":11},"Session map","Asia, London and New York each drawn as a box around the session's high and low, with a small tag inside the box's left edge (Asia violet, London sky, New York…",74,"cookbook","---\ntitle: \"Session map\"\ndescription: \"Asia, London and New York each drawn as a box around the session's high and low, with a small tag inside the box's left edge (Asia violet, London sky, New York…\"\norder: 74\nsection: \"cookbook\"\n---\n\n\u003C!-- source: docs/indicators/cookbook/session-map.md; generated by packages/cli/scripts/gen-indicator-docs.ts, do not edit -->\n\n# Session map\n\n![Asia, London and New York session boxes on a BTC chart](/wrun/images/session-map.png)\n\nAsia, London and New York each drawn as a box around the session's high and low, with a small tag inside the box's left edge (Asia violet, London sky, New York amber). The live session's box grows with every bar. Where two sessions overlap (London into New York, Asia into London) the boxes overlap too. The last five days stay on the chart; older boxes are reused.\n\nThe parts are box and label handles in chart time and price ([Drawing objects](../presentation/drawing-objects.md)), one bounded text slot every tag is written through, and the bar's open time, `bar.time()`, placed in each window's own zone by a session setting ([Time and sessions](../core-concepts/time-and-sessions.md), [Sessions and units](../settings/sessions-and-units.md)). Nothing is drawn per bar beyond moving the open session's box, so a closed day costs nothing. This is also the `session-map` template: the **Session Map** card under **On price** in the editor's starter list, and it compiles as written.\n\n## The wrun indicator\n\n```typescript sample=session-map\n// Session Map: Asia, London and New York boxed around each session's high and low, a small tag on each box, the live session growing bar by bar.\n// The trader sees which session set the range, where the overlaps traded, and how far the live session has run. Each session is a window in its own zone.\n\nsection(\"Sessions\"); // the dialog's first section: a window and its zone per session; daylight saving follows the zone, bar by bar\nparam.session(\"asia\", \"00:00-08:00\", { tz: \"UTC\", label: \"Asia\" });\nparam.session(\"london\", \"07:00-16:00\", { tz: \"UTC\", label: \"London\" });\nparam.session(\"new_york\", \"13:30-20:00\", { tz: \"UTC\", label: \"New York\" });\nsection(\"Boxes\");\nparam.int(\"days_kept\", 5, { min: 1, max: 10, label: \"Days kept\", description: \"Days of sessions kept on the chart; the oldest box is reused\" });\nparam.bool(\"show_tags\", true, { label: \"Show tags\", description: \"Tag each box with its session name\" });\ninput(\"high\", ohlcv.high); // the bar's high and low grow the open session's box\noutput(\"sessions_open\", none, overlay, { description: \"Sessions open on this bar: 0, 1, or 2 where two sessions overlap\" }); // data-only, so the Console can read it\nstring(\"tag\", { max_bytes: 48 }); // one bounded slot every tag is written through\nhandles.box({ opacity: 0.08, borderWidth: 1 }); // boxes in chart time and price: one per session per day\nhandles.label({ size: 11, align: \"left\" }); // the tags, and the one line of words on a coarse chart\n\nconst SESSIONS = 3; // Asia, London, New York\nconst MAX_DAYS = 10; // the ring's ceiling: 30 boxes and 30 tags at most, ids in one space\nconst NAMES = [\"Asia\", \"London\", \"New York\"];\nconst inks: i32[] = [rgba(167, 139, 250, 255), rgba(56, 189, 248, 255), rgba(248, 192, 0, 255)]; // violet, sky, amber\nconst SLATE: i32 = rgba(148, 163, 184, 255);\nconst starts = new StaticArray\u003Cf64>(SESSIONS); // each window's start and end in minutes from midnight, and its zone, read from the settings in onStart()\nconst ends = new StaticArray\u003Cf64>(SESSIONS);\nconst zones = new StaticArray\u003Ci32>(SESSIONS);\nconst dayKey = new StaticArray\u003Cf64>(SESSIONS); // the day the open instance's window opened, in its zone (NaN = none yet): a new day opens a new box whatever bars the feed has\nlet clocks: Clock[] = []; // one bar clock per session, built in onStart() for the zone each window is set in\nconst slot = new StaticArray\u003Ci32>(SESSIONS); // the ring slot that instance sits in\nconst instances = new StaticArray\u003Ci32>(SESSIONS); // instances seen so far, per session\nconst startT = new StaticArray\u003Cf64>(SESSIONS); // the open instance's first bar open\nconst endT = new StaticArray\u003Cf64>(SESSIONS); // the open instance's right edge (the newest bar's close)\nconst hiP = new StaticArray\u003Cf64>(SESSIONS); // the open instance's high and low so far\nconst loP = new StaticArray\u003Cf64>(SESSIONS);\nconst touched = new StaticArray\u003Ci32>(SESSIONS); // 1 when this bar sits inside the session\nconst fresh = new StaticArray\u003Ci32>(SESSIONS); // 1 on the bar that opens a new instance\nconst grew = new StaticArray\u003Ci32>(SESSIONS); // 1 when this bar lifted the instance's high (a top tag moves up)\nconst sank = new StaticArray\u003Ci32>(SESSIONS); // 1 when this bar pushed the instance's low down (a bottom tag moves down)\n\nfunction makeBoxes(first: i32, count: i32): BoxHandle[] { const out: BoxHandle[] = []; for (let i = 0; i \u003C count; i += 1) out.push(draw.box(first + i)); return out; }\nfunction makeLabels(first: i32, count: i32): LabelHandle[] { const out: LabelHandle[] = []; for (let i = 0; i \u003C count; i += 1) out.push(draw.label(first + i)); return out; }\nconst boxes = makeBoxes(0, SESSIONS * MAX_DAYS); // handle objects allocate once, at module load\nconst tags = makeLabels(SESSIONS * MAX_DAYS, SESSIONS * MAX_DAYS);\nconst words = draw.label(90); // the one line of words when the chart is too coarse\n\nlet daysKept = 5; let showTags = true;\nlet t: f64 = NaN; let prevT: f64 = NaN; let width: f64 = NaN; // width = the smallest gap between bar opens seen, so a weekend gap never widens a box\nlet wordsShown = false;\n\n// onStart() runs once before the first bar: read the settings, three readers per session, and build a clock per zone.\nfunction onStart(): void {\n  starts[0] = p_asia_start(); ends[0] = p_asia_end(); zones[0] = i32(p_asia_tz());\n  starts[1] = p_london_start(); ends[1] = p_london_end(); zones[1] = i32(p_london_tz());\n  starts[2] = p_new_york_start(); ends[2] = p_new_york_end(); zones[2] = i32(p_new_york_tz());\n  daysKept = i32(p_days_kept()); if (daysKept \u003C 1) daysKept = 1; if (daysKept > MAX_DAYS) daysKept = MAX_DAYS;\n  showTags = pb_show_tags();\n  clocks = [new Clock(SESSION_TZ_IDS[zones[0]]), new Clock(SESSION_TZ_IDS[zones[1]]), new Clock(SESSION_TZ_IDS[zones[2]])];\n  for (let s = 0; s \u003C SESSIONS; s += 1) dayKey[s] = NaN;\n}\n// onBar() runs once per bar: place the bar in its sessions, open a new instance on a new day, grow the open ones;\n// then write the output, move the boxes this bar touched, and place a tag when a box opens or grows past its tag's edge.\nfunction onBar(): void {\n  prevT = t; t = bar.time(); const high = bar.high(); const low = bar.low();\n  if (!isNaN(prevT) && t > prevT && (isNaN(width) || t - prevT \u003C width)) width = t - prevT;\n  for (let s = 0; s \u003C SESSIONS; s += 1) { touched[s] = 0; fresh[s] = 0; grew[s] = 0; sank[s] = 0; }\n  if (isNaN(width)) return; // the first bar has no width yet: nothing to draw\n  const coarse = width >= 14400.0; // 4h and coarser: a session is one or two bars, the boxes would say nothing\n  if (coarse) {\n    out_sessions_open(0.0);\n    if (!wordsShown) { // once: the handle stays\n      sb_clear(); sb_text(\"Session Map needs a chart finer than 4h\");\n      words.set(56, 14).text(str_tag_sb).anchor(ANCHOR_TOP_RIGHT).align(ALIGN_RIGHT).color(SLATE);\n      wordsShown = true;\n    }\n    return;\n  }\n  let openCount = 0;\n  for (let s = 0; s \u003C SESSIONS; s += 1) {\n    clocks[s].update(t); // the bar in the window's zone, daylight saving included\n    // A bar counts when its span reaches into the window: its open inside it, or the window opening before its close (New\n    // York's 13:30 open inside the 13:00 bar of a 1h chart); lead = minutes from the bar's open to the window's start.\n    const early = !inSession(t, unchecked(starts[s]), unchecked(ends[s]), unchecked(zones[s]));\n    const lead = (unchecked(starts[s]) - f64(clocks[s].hour() * 60 + clocks[s].minute()) + 1440.0) % 1440.0;\n    if (early && !(lead > 0.0 && lead * 60.0 \u003C width)) continue;\n    openCount += 1; touched[s] = 1;\n    const key = Math.floor((t + (early ? lead * 60.0 : 0.0) + f64(clocks[s].offsetSec()) - unchecked(starts[s]) * 60.0) / 86400.0); // the local day the window opened, read at its open (a wrapped window keeps its opening day)\n    if (key != unchecked(dayKey[s])) { // a new session day: the next ring slot (the oldest box moves here)\n      dayKey[s] = key; slot[s] = unchecked(instances[s]) % daysKept; instances[s] = unchecked(instances[s]) + 1;\n      startT[s] = t; hiP[s] = high; loP[s] = low; fresh[s] = 1;\n    } else {\n      if (high > unchecked(hiP[s])) { hiP[s] = high; grew[s] = 1; }\n      if (low \u003C unchecked(loP[s])) { loP[s] = low; sank[s] = 1; }\n    }\n    endT[s] = t + width; // the box ends at this bar's close\n  }\n  out_sessions_open(f64(openCount));\n  for (let s = 0; s \u003C SESSIONS; s += 1) {\n    if (unchecked(touched[s]) == 0) continue;\n    const id = s * MAX_DAYS + unchecked(slot[s]);\n    const box = boxes[id];\n    box.set(unchecked(startT[s]), unchecked(hiP[s]), unchecked(endT[s]), unchecked(loP[s]));\n    if (unchecked(fresh[s]) == 1) box.color(inks[s]).fill(inks[s]).opacity(0.08).border(1.0); // the session's colour, set when the box is (re)opened\n    const bottom = s == 1; // the tag sits inside its box's left edge, clear of the chart's High and Low labels: London's on the bottom, Asia's and New York's under the top, so overlapping sessions never share an edge\n    if (showTags && (unchecked(fresh[s]) == 1 || (bottom ? unchecked(sank[s]) : unchecked(grew[s])) == 1)) {\n      sb_clear(); sb_text(NAMES[s]);\n      const tag = tags[id];\n      tag.set(unchecked(startT[s]), bottom ? unchecked(loP[s]) : unchecked(hiP[s])).text(str_tag_sb);\n      if (unchecked(fresh[s]) == 1) tag.color(inks[s]).size(11).align(ALIGN_LEFT).valign(bottom ? VALIGN_BOTTOM : VALIGN_TOP);\n    }\n  }\n}\n```\n\n## How it works\n\n**Sessions are cut from the clock.** `bar.time()` gives each bar's open in epoch seconds, UTC. Each session is a `param.session` (Asia 00:00 to 08:00, London 07:00 to 16:00, New York 13:30 to 20:00, all in UTC by default), read in `onStart()` as a start, an end and a zone; per bar, a bar belongs to a session when its span reaches into the window in that zone, daylight saving included: `inSession(...)` says whether the bar's open falls inside the window, and a `Clock` in that zone says whether the window opens before the bar closes, so on a 1h chart New York's 13:30 open puts the 13:00 bar in its box. The same clock keys each day's instance, read at the window's open. The bar's high and low grow the open session's box; a box is created on the session's first bar and moved with `set()` on every bar after that, so the live session's box grows as the bars arrive.\n\n**A ring of boxes, reused.** `days_kept` (5, up to 10) times three sessions is the number of box handles in play; each day's session takes the slot of the same session `days_kept` days earlier, so the oldest box is reused rather than a new one made. The handle objects are made once, at module start.\n\n**Tags sit inside their box.** Each tag hangs inside its box's left edge, so the chart's own High and Low labels, drawn outside the candles' extremes, never sit on one: Asia's and New York's under the top edge (`valign(VALIGN_TOP)`), London's on the bottom edge (`valign(VALIGN_BOTTOM)`), so the two sessions that overlap London never put their tags on the same edge. A tag moves when its edge does: up with a new session high, down with a new session low.\n\n**One slot, many tags.** `string(\"tag\", { max_bytes: 48 })` is the one bounded slot; each tag is built with the allocation-free builder (`sb_clear`, `sb_text`, `str_tag_sb`) and sent to its label handle in turn, so the three session names never allocate a string on the live bar. `show_tags` off leaves the boxes bare.\n\n**The count is data.** `sessions_open` is a data-only output: 0, 1, or 2 where two sessions overlap. It draws nothing; the editor's Console prompt reads it after a Run.\n\n## Where it runs\n\nEvery market with candles, on charts finer than 4h. Sessions are cut in the zone each one is set to, UTC by default.\n\n## When data is missing\n\nOn a 4h or coarser chart a session is one or two bars, so the example draws one slate line of words at the top-right (\"Session Map needs a chart finer than 4h\") and nothing else. At 1h a session is eight or nine bars wide, and a box starts on the bar its session opens in (New York's at 13:00 for the 13:30 open).\n\n## Customize it\n\n- **Other sessions.** The three windows are settings, each with its own zone; a window that crosses midnight (`22:00-04:00`) wraps on its own.\n- **More days.** `days_kept` goes up to 10; past that, raise the ring's ceiling where the handles are made (each day is three box and three label ids).\n- **Quieter boxes.** `handles.box({ opacity: 0.08, borderWidth: 1 })` sets the fill and the border for every box; the per-session colours are set where each box is created.\n\n## Run it\n\n1. In the editor's Explorer, press the **Templates** icon (\"Browse starter templates\") and pick **Session Map** under **On price**.\n2. Press **Run** on a chart finer than 4h, such as 15m: the boxes draw on the chart and the live session's box grows as bars arrive.\n3. At the editor's Console prompt, type `last 60 sessions_open` to read how many sessions were open on each of the last 60 bars.\n\n## Concepts used\n\n- [Drawing objects](../presentation/drawing-objects.md) for box and label handles, chart coordinates and ids reused by slot\n- [Time and sessions](../core-concepts/time-and-sessions.md) for `bar.time()` and UTC day math\n- [Execution model](../core-concepts/execution-model.md) for module-level state and where `onStart()` and `onBar()` run\n",{"type":14,"children":15,"data":6514,"position":6516},"root",[16,26,29,30,51,52,67,68,249,250,268,269,5438,5439,5455,5456,5605,5606,5674,5675,5743,5744,5871,5872,5920,5921,5937,5938,5953,5954,5969,5970,5984,5985,6000,6001,6158,6159,6175,6176,6341,6342,6357,6358],{"type":17,"value":18,"position":19},"comment"," source: docs/indicators/cookbook/session-map.md; generated by packages/cli/scripts/gen-indicator-docs.ts, do not edit ",{"start":20,"end":23},{"line":21,"column":21,"offset":22},1,0,{"line":21,"column":24,"offset":25},127,126,{"type":27,"value":28},"text","\n",{"type":27,"value":28},{"type":31,"tagName":32,"properties":33,"children":34,"position":48},"element","p",{},[35],{"type":31,"tagName":36,"properties":37,"children":40,"position":41},"img",{"src":38,"alt":39},"/wrun/images/session-map.png","Asia, London and New York session boxes on a BTC chart",[],{"start":42,"end":45},{"line":43,"column":21,"offset":44},5,143,{"line":43,"column":46,"offset":47},88,230,{"start":49,"end":50},{"line":43,"column":21,"offset":44},{"line":43,"column":46,"offset":47},{"type":27,"value":28},{"type":31,"tagName":32,"properties":53,"children":54,"position":64},{},[55],{"type":27,"value":56,"position":57},"Asia, London and New York each drawn as a box around the session's high and low, with a small tag inside the box's left edge (Asia violet, London sky, New York amber). The live session's box grows with every bar. Where two sessions overlap (London into New York, Asia into London) the boxes overlap too. The last five days stay on the chart; older boxes are reused.",{"start":58,"end":61},{"line":59,"column":21,"offset":60},7,232,{"line":59,"column":62,"offset":63},366,597,{"start":65,"end":66},{"line":59,"column":21,"offset":60},{"line":59,"column":62,"offset":63},{"type":27,"value":28},{"type":31,"tagName":32,"properties":69,"children":70,"position":246},{},[71,80,99,106,120,127,145,152,170,177,190,197,215,222,239],{"type":27,"value":72,"position":73},"The parts are box and label handles in chart time and price (",{"start":74,"end":77},{"line":75,"column":21,"offset":76},9,599,{"line":75,"column":78,"offset":79},62,660,{"type":31,"tagName":81,"properties":82,"children":84,"position":94},"a",{"href":83},"../presentation/drawing-objects.md",[85],{"type":27,"value":86,"position":87},"Drawing objects",{"start":88,"end":91},{"line":75,"column":89,"offset":90},63,661,{"line":75,"column":92,"offset":93},78,676,{"start":95,"end":96},{"line":75,"column":78,"offset":79},{"line":75,"column":97,"offset":98},115,713,{"type":27,"value":100,"position":101},"), one bounded text slot every tag is written through, and the bar's open time, ",{"start":102,"end":103},{"line":75,"column":97,"offset":98},{"line":75,"column":104,"offset":105},195,793,{"type":31,"tagName":107,"properties":108,"children":109,"position":117},"code",{},[110],{"type":27,"value":111,"position":112},"bar.time()",{"start":113,"end":114},{"line":75,"column":104,"offset":105},{"line":75,"column":115,"offset":116},207,805,{"start":118,"end":119},{"line":75,"column":104,"offset":105},{"line":75,"column":115,"offset":116},{"type":27,"value":121,"position":122},", placed in each window's own zone by a session setting (",{"start":123,"end":124},{"line":75,"column":115,"offset":116},{"line":75,"column":125,"offset":126},264,862,{"type":31,"tagName":81,"properties":128,"children":130,"position":140},{"href":129},"../core-concepts/time-and-sessions.md",[131],{"type":27,"value":132,"position":133},"Time and sessions",{"start":134,"end":137},{"line":75,"column":135,"offset":136},265,863,{"line":75,"column":138,"offset":139},282,880,{"start":141,"end":142},{"line":75,"column":125,"offset":126},{"line":75,"column":143,"offset":144},322,920,{"type":27,"value":146,"position":147},", ",{"start":148,"end":149},{"line":75,"column":143,"offset":144},{"line":75,"column":150,"offset":151},324,922,{"type":31,"tagName":81,"properties":153,"children":155,"position":165},{"href":154},"../settings/sessions-and-units.md",[156],{"type":27,"value":157,"position":158},"Sessions and units",{"start":159,"end":162},{"line":75,"column":160,"offset":161},325,923,{"line":75,"column":163,"offset":164},343,941,{"start":166,"end":167},{"line":75,"column":150,"offset":151},{"line":75,"column":168,"offset":169},379,977,{"type":27,"value":171,"position":172},"). Nothing is drawn per bar beyond moving the open session's box, so a closed day costs nothing. This is also the ",{"start":173,"end":174},{"line":75,"column":168,"offset":169},{"line":75,"column":175,"offset":176},493,1091,{"type":31,"tagName":107,"properties":178,"children":179,"position":187},{},[180],{"type":27,"value":181,"position":182},"session-map",{"start":183,"end":184},{"line":75,"column":175,"offset":176},{"line":75,"column":185,"offset":186},506,1104,{"start":188,"end":189},{"line":75,"column":175,"offset":176},{"line":75,"column":185,"offset":186},{"type":27,"value":191,"position":192}," template: the ",{"start":193,"end":194},{"line":75,"column":185,"offset":186},{"line":75,"column":195,"offset":196},521,1119,{"type":31,"tagName":198,"properties":199,"children":200,"position":210},"strong",{},[201],{"type":27,"value":202,"position":203},"Session Map",{"start":204,"end":207},{"line":75,"column":205,"offset":206},523,1121,{"line":75,"column":208,"offset":209},534,1132,{"start":211,"end":212},{"line":75,"column":195,"offset":196},{"line":75,"column":213,"offset":214},536,1134,{"type":27,"value":216,"position":217}," card under ",{"start":218,"end":219},{"line":75,"column":213,"offset":214},{"line":75,"column":220,"offset":221},548,1146,{"type":31,"tagName":198,"properties":223,"children":224,"position":234},{},[225],{"type":27,"value":226,"position":227},"On price",{"start":228,"end":231},{"line":75,"column":229,"offset":230},550,1148,{"line":75,"column":232,"offset":233},558,1156,{"start":235,"end":236},{"line":75,"column":220,"offset":221},{"line":75,"column":237,"offset":238},560,1158,{"type":27,"value":240,"position":241}," in the editor's starter list, and it compiles as written.",{"start":242,"end":243},{"line":75,"column":237,"offset":238},{"line":75,"column":244,"offset":245},618,1216,{"start":247,"end":248},{"line":75,"column":21,"offset":76},{"line":75,"column":244,"offset":245},{"type":27,"value":28},{"type":31,"tagName":251,"properties":252,"children":253,"position":264},"h2",{},[254],{"type":27,"value":255,"position":256},"The wrun indicator",{"start":257,"end":261},{"line":258,"column":259,"offset":260},11,4,1221,{"line":258,"column":262,"offset":263},22,1239,{"start":265,"end":267},{"line":258,"column":21,"offset":266},1218,{"line":258,"column":262,"offset":263},{"type":27,"value":28},{"type":14,"children":270},[271],{"type":31,"tagName":272,"properties":273,"children":277,"data":-1},"pre",{"class":274,"style":275,"tabindex":276,"data-sample":181},"shiki shiki-themes github-dark github-light","--shiki-dark:#e1e4e8;--shiki-light:#24292e;--shiki-dark-bg:#24292e;--shiki-light-bg:#fff","0",[278],{"type":31,"tagName":107,"properties":279,"children":282},{"class":280},[281],"language-typescript",[283,294,295,303,304,307,308,339,340,396,397,447,448,498,499,520,521,595,596,649,650,677,678,715,716,752,753,794,795,836,837,840,841,875,876,906,907,953,954,1126,1127,1195,1196,1251,1252,1296,1297,1342,1343,1392,1393,1433,1434,1483,1484,1533,1534,1583,1584,1633,1634,1683,1684,1728,1729,1778,1779,1828,1829,1878,1879,1928,1929,1932,1933,2125,2126,2295,2296,2350,2351,2407,2408,2451,2452,2455,2456,2504,2505,2602,2603,2628,2629,2632,2633,2641,2642,2673,2674,2757,2758,2836,2837,2916,2917,3015,3016,3038,3039,3144,3145,3216,3217,3225,3226,3234,3235,3243,3244,3272,3273,3361,3362,3469,3470,3578,3579,3612,3613,3654,3655,3667,3668,3689,3690,3716,3717,3747,3748,3846,3847,3867,3868,3876,3877,3889,3890,3898,3899,3924,3925,3981,3982,4005,4006,4014,4015,4023,4024,4084,4085,4194,4195,4267,4268,4301,4302,4436,4437,4468,4469,4532,4533,4580,4581,4598,4599,4646,4647,4693,4694,4701,4702,4732,4733,4740,4741,4762,4763,4818,4819,4860,4861,4902,4903,4924,4925,4977,4978,5069,5070,5107,5108,5193,5194,5223,5224,5246,5247,5307,5308,5414,5415,5422,5423,5430,5431],{"type":31,"tagName":284,"properties":285,"children":287},"span",{"class":286},"line",[288],{"type":31,"tagName":284,"properties":289,"children":291},{"style":290},"--shiki-dark:#6A737D;--shiki-light:#6A737D",[292],{"type":27,"value":293},"// Session Map: Asia, London and New York boxed around each session's high and low, a small tag on each box, the live session growing bar by bar.",{"type":27,"value":28},{"type":31,"tagName":284,"properties":296,"children":297},{"class":286},[298],{"type":31,"tagName":284,"properties":299,"children":300},{"style":290},[301],{"type":27,"value":302},"// The trader sees which session set the range, where the overlaps traded, and how far the live session has run. Each session is a window in its own zone.",{"type":27,"value":28},{"type":31,"tagName":284,"properties":305,"children":306},{"class":286},[],{"type":27,"value":28},{"type":31,"tagName":284,"properties":309,"children":310},{"class":286},[311,317,323,329,334],{"type":31,"tagName":284,"properties":312,"children":314},{"style":313},"--shiki-dark:#B392F0;--shiki-light:#6F42C1",[315],{"type":27,"value":316},"section",{"type":31,"tagName":284,"properties":318,"children":320},{"style":319},"--shiki-dark:#E1E4E8;--shiki-light:#24292E",[321],{"type":27,"value":322},"(",{"type":31,"tagName":284,"properties":324,"children":326},{"style":325},"--shiki-dark:#9ECBFF;--shiki-light:#032F62",[327],{"type":27,"value":328},"\"Sessions\"",{"type":31,"tagName":284,"properties":330,"children":331},{"style":319},[332],{"type":27,"value":333},"); ",{"type":31,"tagName":284,"properties":335,"children":336},{"style":290},[337],{"type":27,"value":338},"// the dialog's first section: a window and its zone per session; daylight saving follows the zone, bar by bar",{"type":27,"value":28},{"type":31,"tagName":284,"properties":341,"children":342},{"class":286},[343,348,353,357,362,366,371,376,381,386,391],{"type":31,"tagName":284,"properties":344,"children":345},{"style":319},[346],{"type":27,"value":347},"param.",{"type":31,"tagName":284,"properties":349,"children":350},{"style":313},[351],{"type":27,"value":352},"session",{"type":31,"tagName":284,"properties":354,"children":355},{"style":319},[356],{"type":27,"value":322},{"type":31,"tagName":284,"properties":358,"children":359},{"style":325},[360],{"type":27,"value":361},"\"asia\"",{"type":31,"tagName":284,"properties":363,"children":364},{"style":319},[365],{"type":27,"value":146},{"type":31,"tagName":284,"properties":367,"children":368},{"style":325},[369],{"type":27,"value":370},"\"00:00-08:00\"",{"type":31,"tagName":284,"properties":372,"children":373},{"style":319},[374],{"type":27,"value":375},", { tz: ",{"type":31,"tagName":284,"properties":377,"children":378},{"style":325},[379],{"type":27,"value":380},"\"UTC\"",{"type":31,"tagName":284,"properties":382,"children":383},{"style":319},[384],{"type":27,"value":385},", label: ",{"type":31,"tagName":284,"properties":387,"children":388},{"style":325},[389],{"type":27,"value":390},"\"Asia\"",{"type":31,"tagName":284,"properties":392,"children":393},{"style":319},[394],{"type":27,"value":395}," });",{"type":27,"value":28},{"type":31,"tagName":284,"properties":398,"children":399},{"class":286},[400,404,408,412,417,421,426,430,434,438,443],{"type":31,"tagName":284,"properties":401,"children":402},{"style":319},[403],{"type":27,"value":347},{"type":31,"tagName":284,"properties":405,"children":406},{"style":313},[407],{"type":27,"value":352},{"type":31,"tagName":284,"properties":409,"children":410},{"style":319},[411],{"type":27,"value":322},{"type":31,"tagName":284,"properties":413,"children":414},{"style":325},[415],{"type":27,"value":416},"\"london\"",{"type":31,"tagName":284,"properties":418,"children":419},{"style":319},[420],{"type":27,"value":146},{"type":31,"tagName":284,"properties":422,"children":423},{"style":325},[424],{"type":27,"value":425},"\"07:00-16:00\"",{"type":31,"tagName":284,"properties":427,"children":428},{"style":319},[429],{"type":27,"value":375},{"type":31,"tagName":284,"properties":431,"children":432},{"style":325},[433],{"type":27,"value":380},{"type":31,"tagName":284,"properties":435,"children":436},{"style":319},[437],{"type":27,"value":385},{"type":31,"tagName":284,"properties":439,"children":440},{"style":325},[441],{"type":27,"value":442},"\"London\"",{"type":31,"tagName":284,"properties":444,"children":445},{"style":319},[446],{"type":27,"value":395},{"type":27,"value":28},{"type":31,"tagName":284,"properties":449,"children":450},{"class":286},[451,455,459,463,468,472,477,481,485,489,494],{"type":31,"tagName":284,"properties":452,"children":453},{"style":319},[454],{"type":27,"value":347},{"type":31,"tagName":284,"properties":456,"children":457},{"style":313},[458],{"type":27,"value":352},{"type":31,"tagName":284,"properties":460,"children":461},{"style":319},[462],{"type":27,"value":322},{"type":31,"tagName":284,"properties":464,"children":465},{"style":325},[466],{"type":27,"value":467},"\"new_york\"",{"type":31,"tagName":284,"properties":469,"children":470},{"style":319},[471],{"type":27,"value":146},{"type":31,"tagName":284,"properties":473,"children":474},{"style":325},[475],{"type":27,"value":476},"\"13:30-20:00\"",{"type":31,"tagName":284,"properties":478,"children":479},{"style":319},[480],{"type":27,"value":375},{"type":31,"tagName":284,"properties":482,"children":483},{"style":325},[484],{"type":27,"value":380},{"type":31,"tagName":284,"properties":486,"children":487},{"style":319},[488],{"type":27,"value":385},{"type":31,"tagName":284,"properties":490,"children":491},{"style":325},[492],{"type":27,"value":493},"\"New York\"",{"type":31,"tagName":284,"properties":495,"children":496},{"style":319},[497],{"type":27,"value":395},{"type":27,"value":28},{"type":31,"tagName":284,"properties":500,"children":501},{"class":286},[502,506,510,515],{"type":31,"tagName":284,"properties":503,"children":504},{"style":313},[505],{"type":27,"value":316},{"type":31,"tagName":284,"properties":507,"children":508},{"style":319},[509],{"type":27,"value":322},{"type":31,"tagName":284,"properties":511,"children":512},{"style":325},[513],{"type":27,"value":514},"\"Boxes\"",{"type":31,"tagName":284,"properties":516,"children":517},{"style":319},[518],{"type":27,"value":519},");",{"type":27,"value":28},{"type":31,"tagName":284,"properties":522,"children":523},{"class":286},[524,528,533,537,542,546,552,557,562,567,572,576,581,586,591],{"type":31,"tagName":284,"properties":525,"children":526},{"style":319},[527],{"type":27,"value":347},{"type":31,"tagName":284,"properties":529,"children":530},{"style":313},[531],{"type":27,"value":532},"int",{"type":31,"tagName":284,"properties":534,"children":535},{"style":319},[536],{"type":27,"value":322},{"type":31,"tagName":284,"properties":538,"children":539},{"style":325},[540],{"type":27,"value":541},"\"days_kept\"",{"type":31,"tagName":284,"properties":543,"children":544},{"style":319},[545],{"type":27,"value":146},{"type":31,"tagName":284,"properties":547,"children":549},{"style":548},"--shiki-dark:#79B8FF;--shiki-light:#005CC5",[550],{"type":27,"value":551},"5",{"type":31,"tagName":284,"properties":553,"children":554},{"style":319},[555],{"type":27,"value":556},", { min: ",{"type":31,"tagName":284,"properties":558,"children":559},{"style":548},[560],{"type":27,"value":561},"1",{"type":31,"tagName":284,"properties":563,"children":564},{"style":319},[565],{"type":27,"value":566},", max: ",{"type":31,"tagName":284,"properties":568,"children":569},{"style":548},[570],{"type":27,"value":571},"10",{"type":31,"tagName":284,"properties":573,"children":574},{"style":319},[575],{"type":27,"value":385},{"type":31,"tagName":284,"properties":577,"children":578},{"style":325},[579],{"type":27,"value":580},"\"Days kept\"",{"type":31,"tagName":284,"properties":582,"children":583},{"style":319},[584],{"type":27,"value":585},", description: ",{"type":31,"tagName":284,"properties":587,"children":588},{"style":325},[589],{"type":27,"value":590},"\"Days of sessions kept on the chart; the oldest box is reused\"",{"type":31,"tagName":284,"properties":592,"children":593},{"style":319},[594],{"type":27,"value":395},{"type":27,"value":28},{"type":31,"tagName":284,"properties":597,"children":598},{"class":286},[599,603,608,612,617,621,626,631,636,640,645],{"type":31,"tagName":284,"properties":600,"children":601},{"style":319},[602],{"type":27,"value":347},{"type":31,"tagName":284,"properties":604,"children":605},{"style":313},[606],{"type":27,"value":607},"bool",{"type":31,"tagName":284,"properties":609,"children":610},{"style":319},[611],{"type":27,"value":322},{"type":31,"tagName":284,"properties":613,"children":614},{"style":325},[615],{"type":27,"value":616},"\"show_tags\"",{"type":31,"tagName":284,"properties":618,"children":619},{"style":319},[620],{"type":27,"value":146},{"type":31,"tagName":284,"properties":622,"children":623},{"style":548},[624],{"type":27,"value":625},"true",{"type":31,"tagName":284,"properties":627,"children":628},{"style":319},[629],{"type":27,"value":630},", { label: ",{"type":31,"tagName":284,"properties":632,"children":633},{"style":325},[634],{"type":27,"value":635},"\"Show tags\"",{"type":31,"tagName":284,"properties":637,"children":638},{"style":319},[639],{"type":27,"value":585},{"type":31,"tagName":284,"properties":641,"children":642},{"style":325},[643],{"type":27,"value":644},"\"Tag each box with its session name\"",{"type":31,"tagName":284,"properties":646,"children":647},{"style":319},[648],{"type":27,"value":395},{"type":27,"value":28},{"type":31,"tagName":284,"properties":651,"children":652},{"class":286},[653,658,662,667,672],{"type":31,"tagName":284,"properties":654,"children":655},{"style":313},[656],{"type":27,"value":657},"input",{"type":31,"tagName":284,"properties":659,"children":660},{"style":319},[661],{"type":27,"value":322},{"type":31,"tagName":284,"properties":663,"children":664},{"style":325},[665],{"type":27,"value":666},"\"high\"",{"type":31,"tagName":284,"properties":668,"children":669},{"style":319},[670],{"type":27,"value":671},", ohlcv.high); ",{"type":31,"tagName":284,"properties":673,"children":674},{"style":290},[675],{"type":27,"value":676},"// the bar's high and low grow the open session's box",{"type":27,"value":28},{"type":31,"tagName":284,"properties":679,"children":680},{"class":286},[681,686,690,695,700,705,710],{"type":31,"tagName":284,"properties":682,"children":683},{"style":313},[684],{"type":27,"value":685},"output",{"type":31,"tagName":284,"properties":687,"children":688},{"style":319},[689],{"type":27,"value":322},{"type":31,"tagName":284,"properties":691,"children":692},{"style":325},[693],{"type":27,"value":694},"\"sessions_open\"",{"type":31,"tagName":284,"properties":696,"children":697},{"style":319},[698],{"type":27,"value":699},", none, overlay, { description: ",{"type":31,"tagName":284,"properties":701,"children":702},{"style":325},[703],{"type":27,"value":704},"\"Sessions open on this bar: 0, 1, or 2 where two sessions overlap\"",{"type":31,"tagName":284,"properties":706,"children":707},{"style":319},[708],{"type":27,"value":709}," }); ",{"type":31,"tagName":284,"properties":711,"children":712},{"style":290},[713],{"type":27,"value":714},"// data-only, so the Console can read it",{"type":27,"value":28},{"type":31,"tagName":284,"properties":717,"children":718},{"class":286},[719,724,728,733,738,743,747],{"type":31,"tagName":284,"properties":720,"children":721},{"style":313},[722],{"type":27,"value":723},"string",{"type":31,"tagName":284,"properties":725,"children":726},{"style":319},[727],{"type":27,"value":322},{"type":31,"tagName":284,"properties":729,"children":730},{"style":325},[731],{"type":27,"value":732},"\"tag\"",{"type":31,"tagName":284,"properties":734,"children":735},{"style":319},[736],{"type":27,"value":737},", { max_bytes: ",{"type":31,"tagName":284,"properties":739,"children":740},{"style":548},[741],{"type":27,"value":742},"48",{"type":31,"tagName":284,"properties":744,"children":745},{"style":319},[746],{"type":27,"value":709},{"type":31,"tagName":284,"properties":748,"children":749},{"style":290},[750],{"type":27,"value":751},"// one bounded slot every tag is written through",{"type":27,"value":28},{"type":31,"tagName":284,"properties":754,"children":755},{"class":286},[756,761,766,771,776,781,785,789],{"type":31,"tagName":284,"properties":757,"children":758},{"style":319},[759],{"type":27,"value":760},"handles.",{"type":31,"tagName":284,"properties":762,"children":763},{"style":313},[764],{"type":27,"value":765},"box",{"type":31,"tagName":284,"properties":767,"children":768},{"style":319},[769],{"type":27,"value":770},"({ opacity: ",{"type":31,"tagName":284,"properties":772,"children":773},{"style":548},[774],{"type":27,"value":775},"0.08",{"type":31,"tagName":284,"properties":777,"children":778},{"style":319},[779],{"type":27,"value":780},", borderWidth: ",{"type":31,"tagName":284,"properties":782,"children":783},{"style":548},[784],{"type":27,"value":561},{"type":31,"tagName":284,"properties":786,"children":787},{"style":319},[788],{"type":27,"value":709},{"type":31,"tagName":284,"properties":790,"children":791},{"style":290},[792],{"type":27,"value":793},"// boxes in chart time and price: one per session per day",{"type":27,"value":28},{"type":31,"tagName":284,"properties":796,"children":797},{"class":286},[798,802,807,812,817,822,827,831],{"type":31,"tagName":284,"properties":799,"children":800},{"style":319},[801],{"type":27,"value":760},{"type":31,"tagName":284,"properties":803,"children":804},{"style":313},[805],{"type":27,"value":806},"label",{"type":31,"tagName":284,"properties":808,"children":809},{"style":319},[810],{"type":27,"value":811},"({ size: ",{"type":31,"tagName":284,"properties":813,"children":814},{"style":548},[815],{"type":27,"value":816},"11",{"type":31,"tagName":284,"properties":818,"children":819},{"style":319},[820],{"type":27,"value":821},", align: ",{"type":31,"tagName":284,"properties":823,"children":824},{"style":325},[825],{"type":27,"value":826},"\"left\"",{"type":31,"tagName":284,"properties":828,"children":829},{"style":319},[830],{"type":27,"value":709},{"type":31,"tagName":284,"properties":832,"children":833},{"style":290},[834],{"type":27,"value":835},"// the tags, and the one line of words on a coarse chart",{"type":27,"value":28},{"type":31,"tagName":284,"properties":838,"children":839},{"class":286},[],{"type":27,"value":28},{"type":31,"tagName":284,"properties":842,"children":843},{"class":286},[844,850,855,860,865,870],{"type":31,"tagName":284,"properties":845,"children":847},{"style":846},"--shiki-dark:#F97583;--shiki-light:#D73A49",[848],{"type":27,"value":849},"const",{"type":31,"tagName":284,"properties":851,"children":852},{"style":548},[853],{"type":27,"value":854}," SESSIONS",{"type":31,"tagName":284,"properties":856,"children":857},{"style":846},[858],{"type":27,"value":859}," =",{"type":31,"tagName":284,"properties":861,"children":862},{"style":548},[863],{"type":27,"value":864}," 3",{"type":31,"tagName":284,"properties":866,"children":867},{"style":319},[868],{"type":27,"value":869},"; ",{"type":31,"tagName":284,"properties":871,"children":872},{"style":290},[873],{"type":27,"value":874},"// Asia, London, New York",{"type":27,"value":28},{"type":31,"tagName":284,"properties":877,"children":878},{"class":286},[879,883,888,892,897,901],{"type":31,"tagName":284,"properties":880,"children":881},{"style":846},[882],{"type":27,"value":849},{"type":31,"tagName":284,"properties":884,"children":885},{"style":548},[886],{"type":27,"value":887}," MAX_DAYS",{"type":31,"tagName":284,"properties":889,"children":890},{"style":846},[891],{"type":27,"value":859},{"type":31,"tagName":284,"properties":893,"children":894},{"style":548},[895],{"type":27,"value":896}," 10",{"type":31,"tagName":284,"properties":898,"children":899},{"style":319},[900],{"type":27,"value":869},{"type":31,"tagName":284,"properties":902,"children":903},{"style":290},[904],{"type":27,"value":905},"// the ring's ceiling: 30 boxes and 30 tags at most, ids in one space",{"type":27,"value":28},{"type":31,"tagName":284,"properties":908,"children":909},{"class":286},[910,914,919,923,928,932,936,940,944,948],{"type":31,"tagName":284,"properties":911,"children":912},{"style":846},[913],{"type":27,"value":849},{"type":31,"tagName":284,"properties":915,"children":916},{"style":548},[917],{"type":27,"value":918}," NAMES",{"type":31,"tagName":284,"properties":920,"children":921},{"style":846},[922],{"type":27,"value":859},{"type":31,"tagName":284,"properties":924,"children":925},{"style":319},[926],{"type":27,"value":927}," [",{"type":31,"tagName":284,"properties":929,"children":930},{"style":325},[931],{"type":27,"value":390},{"type":31,"tagName":284,"properties":933,"children":934},{"style":319},[935],{"type":27,"value":146},{"type":31,"tagName":284,"properties":937,"children":938},{"style":325},[939],{"type":27,"value":442},{"type":31,"tagName":284,"properties":941,"children":942},{"style":319},[943],{"type":27,"value":146},{"type":31,"tagName":284,"properties":945,"children":946},{"style":325},[947],{"type":27,"value":493},{"type":31,"tagName":284,"properties":949,"children":950},{"style":319},[951],{"type":27,"value":952},"];",{"type":27,"value":28},{"type":31,"tagName":284,"properties":955,"children":956},{"class":286},[957,961,966,971,976,981,986,990,995,999,1004,1008,1013,1017,1022,1026,1031,1036,1040,1044,1049,1053,1058,1062,1067,1071,1075,1079,1083,1087,1091,1095,1100,1104,1108,1112,1116,1121],{"type":31,"tagName":284,"properties":958,"children":959},{"style":846},[960],{"type":27,"value":849},{"type":31,"tagName":284,"properties":962,"children":963},{"style":548},[964],{"type":27,"value":965}," inks",{"type":31,"tagName":284,"properties":967,"children":968},{"style":846},[969],{"type":27,"value":970},":",{"type":31,"tagName":284,"properties":972,"children":973},{"style":313},[974],{"type":27,"value":975}," i32",{"type":31,"tagName":284,"properties":977,"children":978},{"style":319},[979],{"type":27,"value":980},"[] ",{"type":31,"tagName":284,"properties":982,"children":983},{"style":846},[984],{"type":27,"value":985},"=",{"type":31,"tagName":284,"properties":987,"children":988},{"style":319},[989],{"type":27,"value":927},{"type":31,"tagName":284,"properties":991,"children":992},{"style":313},[993],{"type":27,"value":994},"rgba",{"type":31,"tagName":284,"properties":996,"children":997},{"style":319},[998],{"type":27,"value":322},{"type":31,"tagName":284,"properties":1000,"children":1001},{"style":548},[1002],{"type":27,"value":1003},"167",{"type":31,"tagName":284,"properties":1005,"children":1006},{"style":319},[1007],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1009,"children":1010},{"style":548},[1011],{"type":27,"value":1012},"139",{"type":31,"tagName":284,"properties":1014,"children":1015},{"style":319},[1016],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1018,"children":1019},{"style":548},[1020],{"type":27,"value":1021},"250",{"type":31,"tagName":284,"properties":1023,"children":1024},{"style":319},[1025],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1027,"children":1028},{"style":548},[1029],{"type":27,"value":1030},"255",{"type":31,"tagName":284,"properties":1032,"children":1033},{"style":319},[1034],{"type":27,"value":1035},"), ",{"type":31,"tagName":284,"properties":1037,"children":1038},{"style":313},[1039],{"type":27,"value":994},{"type":31,"tagName":284,"properties":1041,"children":1042},{"style":319},[1043],{"type":27,"value":322},{"type":31,"tagName":284,"properties":1045,"children":1046},{"style":548},[1047],{"type":27,"value":1048},"56",{"type":31,"tagName":284,"properties":1050,"children":1051},{"style":319},[1052],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1054,"children":1055},{"style":548},[1056],{"type":27,"value":1057},"189",{"type":31,"tagName":284,"properties":1059,"children":1060},{"style":319},[1061],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1063,"children":1064},{"style":548},[1065],{"type":27,"value":1066},"248",{"type":31,"tagName":284,"properties":1068,"children":1069},{"style":319},[1070],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1072,"children":1073},{"style":548},[1074],{"type":27,"value":1030},{"type":31,"tagName":284,"properties":1076,"children":1077},{"style":319},[1078],{"type":27,"value":1035},{"type":31,"tagName":284,"properties":1080,"children":1081},{"style":313},[1082],{"type":27,"value":994},{"type":31,"tagName":284,"properties":1084,"children":1085},{"style":319},[1086],{"type":27,"value":322},{"type":31,"tagName":284,"properties":1088,"children":1089},{"style":548},[1090],{"type":27,"value":1066},{"type":31,"tagName":284,"properties":1092,"children":1093},{"style":319},[1094],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1096,"children":1097},{"style":548},[1098],{"type":27,"value":1099},"192",{"type":31,"tagName":284,"properties":1101,"children":1102},{"style":319},[1103],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1105,"children":1106},{"style":548},[1107],{"type":27,"value":276},{"type":31,"tagName":284,"properties":1109,"children":1110},{"style":319},[1111],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1113,"children":1114},{"style":548},[1115],{"type":27,"value":1030},{"type":31,"tagName":284,"properties":1117,"children":1118},{"style":319},[1119],{"type":27,"value":1120},")]; ",{"type":31,"tagName":284,"properties":1122,"children":1123},{"style":290},[1124],{"type":27,"value":1125},"// violet, sky, amber",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1128,"children":1129},{"class":286},[1130,1134,1139,1143,1147,1151,1156,1160,1165,1169,1174,1178,1183,1187,1191],{"type":31,"tagName":284,"properties":1131,"children":1132},{"style":846},[1133],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1135,"children":1136},{"style":548},[1137],{"type":27,"value":1138}," SLATE",{"type":31,"tagName":284,"properties":1140,"children":1141},{"style":846},[1142],{"type":27,"value":970},{"type":31,"tagName":284,"properties":1144,"children":1145},{"style":313},[1146],{"type":27,"value":975},{"type":31,"tagName":284,"properties":1148,"children":1149},{"style":846},[1150],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1152,"children":1153},{"style":313},[1154],{"type":27,"value":1155}," rgba",{"type":31,"tagName":284,"properties":1157,"children":1158},{"style":319},[1159],{"type":27,"value":322},{"type":31,"tagName":284,"properties":1161,"children":1162},{"style":548},[1163],{"type":27,"value":1164},"148",{"type":31,"tagName":284,"properties":1166,"children":1167},{"style":319},[1168],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1170,"children":1171},{"style":548},[1172],{"type":27,"value":1173},"163",{"type":31,"tagName":284,"properties":1175,"children":1176},{"style":319},[1177],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1179,"children":1180},{"style":548},[1181],{"type":27,"value":1182},"184",{"type":31,"tagName":284,"properties":1184,"children":1185},{"style":319},[1186],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1188,"children":1189},{"style":548},[1190],{"type":27,"value":1030},{"type":31,"tagName":284,"properties":1192,"children":1193},{"style":319},[1194],{"type":27,"value":519},{"type":27,"value":28},{"type":31,"tagName":284,"properties":1197,"children":1198},{"class":286},[1199,1203,1208,1212,1217,1222,1227,1232,1237,1242,1246],{"type":31,"tagName":284,"properties":1200,"children":1201},{"style":846},[1202],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1204,"children":1205},{"style":548},[1206],{"type":27,"value":1207}," starts",{"type":31,"tagName":284,"properties":1209,"children":1210},{"style":846},[1211],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1213,"children":1214},{"style":846},[1215],{"type":27,"value":1216}," new",{"type":31,"tagName":284,"properties":1218,"children":1219},{"style":313},[1220],{"type":27,"value":1221}," StaticArray",{"type":31,"tagName":284,"properties":1223,"children":1224},{"style":319},[1225],{"type":27,"value":1226},"\u003C",{"type":31,"tagName":284,"properties":1228,"children":1229},{"style":313},[1230],{"type":27,"value":1231},"f64",{"type":31,"tagName":284,"properties":1233,"children":1234},{"style":319},[1235],{"type":27,"value":1236},">(",{"type":31,"tagName":284,"properties":1238,"children":1239},{"style":548},[1240],{"type":27,"value":1241},"SESSIONS",{"type":31,"tagName":284,"properties":1243,"children":1244},{"style":319},[1245],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1247,"children":1248},{"style":290},[1249],{"type":27,"value":1250},"// each window's start and end in minutes from midnight, and its zone, read from the settings in onStart()",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1253,"children":1254},{"class":286},[1255,1259,1264,1268,1272,1276,1280,1284,1288,1292],{"type":31,"tagName":284,"properties":1256,"children":1257},{"style":846},[1258],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1260,"children":1261},{"style":548},[1262],{"type":27,"value":1263}," ends",{"type":31,"tagName":284,"properties":1265,"children":1266},{"style":846},[1267],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1269,"children":1270},{"style":846},[1271],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1273,"children":1274},{"style":313},[1275],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1277,"children":1278},{"style":319},[1279],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1281,"children":1282},{"style":313},[1283],{"type":27,"value":1231},{"type":31,"tagName":284,"properties":1285,"children":1286},{"style":319},[1287],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1289,"children":1290},{"style":548},[1291],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1293,"children":1294},{"style":319},[1295],{"type":27,"value":519},{"type":27,"value":28},{"type":31,"tagName":284,"properties":1298,"children":1299},{"class":286},[1300,1304,1309,1313,1317,1321,1325,1330,1334,1338],{"type":31,"tagName":284,"properties":1301,"children":1302},{"style":846},[1303],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1305,"children":1306},{"style":548},[1307],{"type":27,"value":1308}," zones",{"type":31,"tagName":284,"properties":1310,"children":1311},{"style":846},[1312],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1314,"children":1315},{"style":846},[1316],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1318,"children":1319},{"style":313},[1320],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1322,"children":1323},{"style":319},[1324],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1326,"children":1327},{"style":313},[1328],{"type":27,"value":1329},"i32",{"type":31,"tagName":284,"properties":1331,"children":1332},{"style":319},[1333],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1335,"children":1336},{"style":548},[1337],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1339,"children":1340},{"style":319},[1341],{"type":27,"value":519},{"type":27,"value":28},{"type":31,"tagName":284,"properties":1344,"children":1345},{"class":286},[1346,1350,1355,1359,1363,1367,1371,1375,1379,1383,1387],{"type":31,"tagName":284,"properties":1347,"children":1348},{"style":846},[1349],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1351,"children":1352},{"style":548},[1353],{"type":27,"value":1354}," dayKey",{"type":31,"tagName":284,"properties":1356,"children":1357},{"style":846},[1358],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1360,"children":1361},{"style":846},[1362],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1364,"children":1365},{"style":313},[1366],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1368,"children":1369},{"style":319},[1370],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1372,"children":1373},{"style":313},[1374],{"type":27,"value":1231},{"type":31,"tagName":284,"properties":1376,"children":1377},{"style":319},[1378],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1380,"children":1381},{"style":548},[1382],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1384,"children":1385},{"style":319},[1386],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1388,"children":1389},{"style":290},[1390],{"type":27,"value":1391},"// the day the open instance's window opened, in its zone (NaN = none yet): a new day opens a new box whatever bars the feed has",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1394,"children":1395},{"class":286},[1396,1401,1406,1410,1415,1419,1423,1428],{"type":31,"tagName":284,"properties":1397,"children":1398},{"style":846},[1399],{"type":27,"value":1400},"let",{"type":31,"tagName":284,"properties":1402,"children":1403},{"style":319},[1404],{"type":27,"value":1405}," clocks",{"type":31,"tagName":284,"properties":1407,"children":1408},{"style":846},[1409],{"type":27,"value":970},{"type":31,"tagName":284,"properties":1411,"children":1412},{"style":313},[1413],{"type":27,"value":1414}," Clock",{"type":31,"tagName":284,"properties":1416,"children":1417},{"style":319},[1418],{"type":27,"value":980},{"type":31,"tagName":284,"properties":1420,"children":1421},{"style":846},[1422],{"type":27,"value":985},{"type":31,"tagName":284,"properties":1424,"children":1425},{"style":319},[1426],{"type":27,"value":1427}," []; ",{"type":31,"tagName":284,"properties":1429,"children":1430},{"style":290},[1431],{"type":27,"value":1432},"// one bar clock per session, built in onStart() for the zone each window is set in",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1435,"children":1436},{"class":286},[1437,1441,1446,1450,1454,1458,1462,1466,1470,1474,1478],{"type":31,"tagName":284,"properties":1438,"children":1439},{"style":846},[1440],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1442,"children":1443},{"style":548},[1444],{"type":27,"value":1445}," slot",{"type":31,"tagName":284,"properties":1447,"children":1448},{"style":846},[1449],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1451,"children":1452},{"style":846},[1453],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1455,"children":1456},{"style":313},[1457],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1459,"children":1460},{"style":319},[1461],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1463,"children":1464},{"style":313},[1465],{"type":27,"value":1329},{"type":31,"tagName":284,"properties":1467,"children":1468},{"style":319},[1469],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1471,"children":1472},{"style":548},[1473],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1475,"children":1476},{"style":319},[1477],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1479,"children":1480},{"style":290},[1481],{"type":27,"value":1482},"// the ring slot that instance sits in",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1485,"children":1486},{"class":286},[1487,1491,1496,1500,1504,1508,1512,1516,1520,1524,1528],{"type":31,"tagName":284,"properties":1488,"children":1489},{"style":846},[1490],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1492,"children":1493},{"style":548},[1494],{"type":27,"value":1495}," instances",{"type":31,"tagName":284,"properties":1497,"children":1498},{"style":846},[1499],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1501,"children":1502},{"style":846},[1503],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1505,"children":1506},{"style":313},[1507],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1509,"children":1510},{"style":319},[1511],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1513,"children":1514},{"style":313},[1515],{"type":27,"value":1329},{"type":31,"tagName":284,"properties":1517,"children":1518},{"style":319},[1519],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1521,"children":1522},{"style":548},[1523],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1525,"children":1526},{"style":319},[1527],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1529,"children":1530},{"style":290},[1531],{"type":27,"value":1532},"// instances seen so far, per session",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1535,"children":1536},{"class":286},[1537,1541,1546,1550,1554,1558,1562,1566,1570,1574,1578],{"type":31,"tagName":284,"properties":1538,"children":1539},{"style":846},[1540],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1542,"children":1543},{"style":548},[1544],{"type":27,"value":1545}," startT",{"type":31,"tagName":284,"properties":1547,"children":1548},{"style":846},[1549],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1551,"children":1552},{"style":846},[1553],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1555,"children":1556},{"style":313},[1557],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1559,"children":1560},{"style":319},[1561],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1563,"children":1564},{"style":313},[1565],{"type":27,"value":1231},{"type":31,"tagName":284,"properties":1567,"children":1568},{"style":319},[1569],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1571,"children":1572},{"style":548},[1573],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1575,"children":1576},{"style":319},[1577],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1579,"children":1580},{"style":290},[1581],{"type":27,"value":1582},"// the open instance's first bar open",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1585,"children":1586},{"class":286},[1587,1591,1596,1600,1604,1608,1612,1616,1620,1624,1628],{"type":31,"tagName":284,"properties":1588,"children":1589},{"style":846},[1590],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1592,"children":1593},{"style":548},[1594],{"type":27,"value":1595}," endT",{"type":31,"tagName":284,"properties":1597,"children":1598},{"style":846},[1599],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1601,"children":1602},{"style":846},[1603],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1605,"children":1606},{"style":313},[1607],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1609,"children":1610},{"style":319},[1611],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1613,"children":1614},{"style":313},[1615],{"type":27,"value":1231},{"type":31,"tagName":284,"properties":1617,"children":1618},{"style":319},[1619],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1621,"children":1622},{"style":548},[1623],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1625,"children":1626},{"style":319},[1627],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1629,"children":1630},{"style":290},[1631],{"type":27,"value":1632},"// the open instance's right edge (the newest bar's close)",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1635,"children":1636},{"class":286},[1637,1641,1646,1650,1654,1658,1662,1666,1670,1674,1678],{"type":31,"tagName":284,"properties":1638,"children":1639},{"style":846},[1640],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1642,"children":1643},{"style":548},[1644],{"type":27,"value":1645}," hiP",{"type":31,"tagName":284,"properties":1647,"children":1648},{"style":846},[1649],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1651,"children":1652},{"style":846},[1653],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1655,"children":1656},{"style":313},[1657],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1659,"children":1660},{"style":319},[1661],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1663,"children":1664},{"style":313},[1665],{"type":27,"value":1231},{"type":31,"tagName":284,"properties":1667,"children":1668},{"style":319},[1669],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1671,"children":1672},{"style":548},[1673],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1675,"children":1676},{"style":319},[1677],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1679,"children":1680},{"style":290},[1681],{"type":27,"value":1682},"// the open instance's high and low so far",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1685,"children":1686},{"class":286},[1687,1691,1696,1700,1704,1708,1712,1716,1720,1724],{"type":31,"tagName":284,"properties":1688,"children":1689},{"style":846},[1690],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1692,"children":1693},{"style":548},[1694],{"type":27,"value":1695}," loP",{"type":31,"tagName":284,"properties":1697,"children":1698},{"style":846},[1699],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1701,"children":1702},{"style":846},[1703],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1705,"children":1706},{"style":313},[1707],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1709,"children":1710},{"style":319},[1711],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1713,"children":1714},{"style":313},[1715],{"type":27,"value":1231},{"type":31,"tagName":284,"properties":1717,"children":1718},{"style":319},[1719],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1721,"children":1722},{"style":548},[1723],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1725,"children":1726},{"style":319},[1727],{"type":27,"value":519},{"type":27,"value":28},{"type":31,"tagName":284,"properties":1730,"children":1731},{"class":286},[1732,1736,1741,1745,1749,1753,1757,1761,1765,1769,1773],{"type":31,"tagName":284,"properties":1733,"children":1734},{"style":846},[1735],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1737,"children":1738},{"style":548},[1739],{"type":27,"value":1740}," touched",{"type":31,"tagName":284,"properties":1742,"children":1743},{"style":846},[1744],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1746,"children":1747},{"style":846},[1748],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1750,"children":1751},{"style":313},[1752],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1754,"children":1755},{"style":319},[1756],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1758,"children":1759},{"style":313},[1760],{"type":27,"value":1329},{"type":31,"tagName":284,"properties":1762,"children":1763},{"style":319},[1764],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1766,"children":1767},{"style":548},[1768],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1770,"children":1771},{"style":319},[1772],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1774,"children":1775},{"style":290},[1776],{"type":27,"value":1777},"// 1 when this bar sits inside the session",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1780,"children":1781},{"class":286},[1782,1786,1791,1795,1799,1803,1807,1811,1815,1819,1823],{"type":31,"tagName":284,"properties":1783,"children":1784},{"style":846},[1785],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1787,"children":1788},{"style":548},[1789],{"type":27,"value":1790}," fresh",{"type":31,"tagName":284,"properties":1792,"children":1793},{"style":846},[1794],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1796,"children":1797},{"style":846},[1798],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1800,"children":1801},{"style":313},[1802],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1804,"children":1805},{"style":319},[1806],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1808,"children":1809},{"style":313},[1810],{"type":27,"value":1329},{"type":31,"tagName":284,"properties":1812,"children":1813},{"style":319},[1814],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1816,"children":1817},{"style":548},[1818],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1820,"children":1821},{"style":319},[1822],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1824,"children":1825},{"style":290},[1826],{"type":27,"value":1827},"// 1 on the bar that opens a new instance",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1830,"children":1831},{"class":286},[1832,1836,1841,1845,1849,1853,1857,1861,1865,1869,1873],{"type":31,"tagName":284,"properties":1833,"children":1834},{"style":846},[1835],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1837,"children":1838},{"style":548},[1839],{"type":27,"value":1840}," grew",{"type":31,"tagName":284,"properties":1842,"children":1843},{"style":846},[1844],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1846,"children":1847},{"style":846},[1848],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1850,"children":1851},{"style":313},[1852],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1854,"children":1855},{"style":319},[1856],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1858,"children":1859},{"style":313},[1860],{"type":27,"value":1329},{"type":31,"tagName":284,"properties":1862,"children":1863},{"style":319},[1864],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1866,"children":1867},{"style":548},[1868],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1870,"children":1871},{"style":319},[1872],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1874,"children":1875},{"style":290},[1876],{"type":27,"value":1877},"// 1 when this bar lifted the instance's high (a top tag moves up)",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1880,"children":1881},{"class":286},[1882,1886,1891,1895,1899,1903,1907,1911,1915,1919,1923],{"type":31,"tagName":284,"properties":1883,"children":1884},{"style":846},[1885],{"type":27,"value":849},{"type":31,"tagName":284,"properties":1887,"children":1888},{"style":548},[1889],{"type":27,"value":1890}," sank",{"type":31,"tagName":284,"properties":1892,"children":1893},{"style":846},[1894],{"type":27,"value":859},{"type":31,"tagName":284,"properties":1896,"children":1897},{"style":846},[1898],{"type":27,"value":1216},{"type":31,"tagName":284,"properties":1900,"children":1901},{"style":313},[1902],{"type":27,"value":1221},{"type":31,"tagName":284,"properties":1904,"children":1905},{"style":319},[1906],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":1908,"children":1909},{"style":313},[1910],{"type":27,"value":1329},{"type":31,"tagName":284,"properties":1912,"children":1913},{"style":319},[1914],{"type":27,"value":1236},{"type":31,"tagName":284,"properties":1916,"children":1917},{"style":548},[1918],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":1920,"children":1921},{"style":319},[1922],{"type":27,"value":333},{"type":31,"tagName":284,"properties":1924,"children":1925},{"style":290},[1926],{"type":27,"value":1927},"// 1 when this bar pushed the instance's low down (a bottom tag moves down)",{"type":27,"value":28},{"type":31,"tagName":284,"properties":1930,"children":1931},{"class":286},[],{"type":27,"value":28},{"type":31,"tagName":284,"properties":1934,"children":1935},{"class":286},[1936,1941,1946,1950,1956,1960,1964,1968,1973,1977,1981,1986,1990,1995,2000,2004,2009,2013,2017,2021,2025,2029,2034,2039,2043,2048,2052,2057,2062,2066,2071,2076,2081,2086,2091,2096,2100,2105,2110,2115,2120],{"type":31,"tagName":284,"properties":1937,"children":1938},{"style":846},[1939],{"type":27,"value":1940},"function",{"type":31,"tagName":284,"properties":1942,"children":1943},{"style":313},[1944],{"type":27,"value":1945}," makeBoxes",{"type":31,"tagName":284,"properties":1947,"children":1948},{"style":319},[1949],{"type":27,"value":322},{"type":31,"tagName":284,"properties":1951,"children":1953},{"style":1952},"--shiki-dark:#FFAB70;--shiki-light:#E36209",[1954],{"type":27,"value":1955},"first",{"type":31,"tagName":284,"properties":1957,"children":1958},{"style":846},[1959],{"type":27,"value":970},{"type":31,"tagName":284,"properties":1961,"children":1962},{"style":313},[1963],{"type":27,"value":975},{"type":31,"tagName":284,"properties":1965,"children":1966},{"style":319},[1967],{"type":27,"value":146},{"type":31,"tagName":284,"properties":1969,"children":1970},{"style":1952},[1971],{"type":27,"value":1972},"count",{"type":31,"tagName":284,"properties":1974,"children":1975},{"style":846},[1976],{"type":27,"value":970},{"type":31,"tagName":284,"properties":1978,"children":1979},{"style":313},[1980],{"type":27,"value":975},{"type":31,"tagName":284,"properties":1982,"children":1983},{"style":319},[1984],{"type":27,"value":1985},")",{"type":31,"tagName":284,"properties":1987,"children":1988},{"style":846},[1989],{"type":27,"value":970},{"type":31,"tagName":284,"properties":1991,"children":1992},{"style":313},[1993],{"type":27,"value":1994}," BoxHandle",{"type":31,"tagName":284,"properties":1996,"children":1997},{"style":319},[1998],{"type":27,"value":1999},"[] { ",{"type":31,"tagName":284,"properties":2001,"children":2002},{"style":846},[2003],{"type":27,"value":849},{"type":31,"tagName":284,"properties":2005,"children":2006},{"style":548},[2007],{"type":27,"value":2008}," out",{"type":31,"tagName":284,"properties":2010,"children":2011},{"style":846},[2012],{"type":27,"value":970},{"type":31,"tagName":284,"properties":2014,"children":2015},{"style":313},[2016],{"type":27,"value":1994},{"type":31,"tagName":284,"properties":2018,"children":2019},{"style":319},[2020],{"type":27,"value":980},{"type":31,"tagName":284,"properties":2022,"children":2023},{"style":846},[2024],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2026,"children":2027},{"style":319},[2028],{"type":27,"value":1427},{"type":31,"tagName":284,"properties":2030,"children":2031},{"style":846},[2032],{"type":27,"value":2033},"for",{"type":31,"tagName":284,"properties":2035,"children":2036},{"style":319},[2037],{"type":27,"value":2038}," (",{"type":31,"tagName":284,"properties":2040,"children":2041},{"style":846},[2042],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":2044,"children":2045},{"style":319},[2046],{"type":27,"value":2047}," i ",{"type":31,"tagName":284,"properties":2049,"children":2050},{"style":846},[2051],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2053,"children":2054},{"style":548},[2055],{"type":27,"value":2056}," 0",{"type":31,"tagName":284,"properties":2058,"children":2059},{"style":319},[2060],{"type":27,"value":2061},"; i ",{"type":31,"tagName":284,"properties":2063,"children":2064},{"style":846},[2065],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":2067,"children":2068},{"style":319},[2069],{"type":27,"value":2070}," count; i ",{"type":31,"tagName":284,"properties":2072,"children":2073},{"style":846},[2074],{"type":27,"value":2075},"+=",{"type":31,"tagName":284,"properties":2077,"children":2078},{"style":548},[2079],{"type":27,"value":2080}," 1",{"type":31,"tagName":284,"properties":2082,"children":2083},{"style":319},[2084],{"type":27,"value":2085},") out.",{"type":31,"tagName":284,"properties":2087,"children":2088},{"style":313},[2089],{"type":27,"value":2090},"push",{"type":31,"tagName":284,"properties":2092,"children":2093},{"style":319},[2094],{"type":27,"value":2095},"(draw.",{"type":31,"tagName":284,"properties":2097,"children":2098},{"style":313},[2099],{"type":27,"value":765},{"type":31,"tagName":284,"properties":2101,"children":2102},{"style":319},[2103],{"type":27,"value":2104},"(first ",{"type":31,"tagName":284,"properties":2106,"children":2107},{"style":846},[2108],{"type":27,"value":2109},"+",{"type":31,"tagName":284,"properties":2111,"children":2112},{"style":319},[2113],{"type":27,"value":2114}," i)); ",{"type":31,"tagName":284,"properties":2116,"children":2117},{"style":846},[2118],{"type":27,"value":2119},"return",{"type":31,"tagName":284,"properties":2121,"children":2122},{"style":319},[2123],{"type":27,"value":2124}," out; }",{"type":27,"value":28},{"type":31,"tagName":284,"properties":2127,"children":2128},{"class":286},[2129,2133,2138,2142,2146,2150,2154,2158,2162,2166,2170,2174,2178,2183,2187,2191,2195,2199,2203,2207,2211,2215,2219,2223,2227,2231,2235,2239,2243,2247,2251,2255,2259,2263,2267,2271,2275,2279,2283,2287,2291],{"type":31,"tagName":284,"properties":2130,"children":2131},{"style":846},[2132],{"type":27,"value":1940},{"type":31,"tagName":284,"properties":2134,"children":2135},{"style":313},[2136],{"type":27,"value":2137}," makeLabels",{"type":31,"tagName":284,"properties":2139,"children":2140},{"style":319},[2141],{"type":27,"value":322},{"type":31,"tagName":284,"properties":2143,"children":2144},{"style":1952},[2145],{"type":27,"value":1955},{"type":31,"tagName":284,"properties":2147,"children":2148},{"style":846},[2149],{"type":27,"value":970},{"type":31,"tagName":284,"properties":2151,"children":2152},{"style":313},[2153],{"type":27,"value":975},{"type":31,"tagName":284,"properties":2155,"children":2156},{"style":319},[2157],{"type":27,"value":146},{"type":31,"tagName":284,"properties":2159,"children":2160},{"style":1952},[2161],{"type":27,"value":1972},{"type":31,"tagName":284,"properties":2163,"children":2164},{"style":846},[2165],{"type":27,"value":970},{"type":31,"tagName":284,"properties":2167,"children":2168},{"style":313},[2169],{"type":27,"value":975},{"type":31,"tagName":284,"properties":2171,"children":2172},{"style":319},[2173],{"type":27,"value":1985},{"type":31,"tagName":284,"properties":2175,"children":2176},{"style":846},[2177],{"type":27,"value":970},{"type":31,"tagName":284,"properties":2179,"children":2180},{"style":313},[2181],{"type":27,"value":2182}," LabelHandle",{"type":31,"tagName":284,"properties":2184,"children":2185},{"style":319},[2186],{"type":27,"value":1999},{"type":31,"tagName":284,"properties":2188,"children":2189},{"style":846},[2190],{"type":27,"value":849},{"type":31,"tagName":284,"properties":2192,"children":2193},{"style":548},[2194],{"type":27,"value":2008},{"type":31,"tagName":284,"properties":2196,"children":2197},{"style":846},[2198],{"type":27,"value":970},{"type":31,"tagName":284,"properties":2200,"children":2201},{"style":313},[2202],{"type":27,"value":2182},{"type":31,"tagName":284,"properties":2204,"children":2205},{"style":319},[2206],{"type":27,"value":980},{"type":31,"tagName":284,"properties":2208,"children":2209},{"style":846},[2210],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2212,"children":2213},{"style":319},[2214],{"type":27,"value":1427},{"type":31,"tagName":284,"properties":2216,"children":2217},{"style":846},[2218],{"type":27,"value":2033},{"type":31,"tagName":284,"properties":2220,"children":2221},{"style":319},[2222],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":2224,"children":2225},{"style":846},[2226],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":2228,"children":2229},{"style":319},[2230],{"type":27,"value":2047},{"type":31,"tagName":284,"properties":2232,"children":2233},{"style":846},[2234],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2236,"children":2237},{"style":548},[2238],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":2240,"children":2241},{"style":319},[2242],{"type":27,"value":2061},{"type":31,"tagName":284,"properties":2244,"children":2245},{"style":846},[2246],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":2248,"children":2249},{"style":319},[2250],{"type":27,"value":2070},{"type":31,"tagName":284,"properties":2252,"children":2253},{"style":846},[2254],{"type":27,"value":2075},{"type":31,"tagName":284,"properties":2256,"children":2257},{"style":548},[2258],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":2260,"children":2261},{"style":319},[2262],{"type":27,"value":2085},{"type":31,"tagName":284,"properties":2264,"children":2265},{"style":313},[2266],{"type":27,"value":2090},{"type":31,"tagName":284,"properties":2268,"children":2269},{"style":319},[2270],{"type":27,"value":2095},{"type":31,"tagName":284,"properties":2272,"children":2273},{"style":313},[2274],{"type":27,"value":806},{"type":31,"tagName":284,"properties":2276,"children":2277},{"style":319},[2278],{"type":27,"value":2104},{"type":31,"tagName":284,"properties":2280,"children":2281},{"style":846},[2282],{"type":27,"value":2109},{"type":31,"tagName":284,"properties":2284,"children":2285},{"style":319},[2286],{"type":27,"value":2114},{"type":31,"tagName":284,"properties":2288,"children":2289},{"style":846},[2290],{"type":27,"value":2119},{"type":31,"tagName":284,"properties":2292,"children":2293},{"style":319},[2294],{"type":27,"value":2124},{"type":27,"value":28},{"type":31,"tagName":284,"properties":2297,"children":2298},{"class":286},[2299,2303,2308,2312,2316,2320,2324,2328,2332,2337,2341,2345],{"type":31,"tagName":284,"properties":2300,"children":2301},{"style":846},[2302],{"type":27,"value":849},{"type":31,"tagName":284,"properties":2304,"children":2305},{"style":548},[2306],{"type":27,"value":2307}," boxes",{"type":31,"tagName":284,"properties":2309,"children":2310},{"style":846},[2311],{"type":27,"value":859},{"type":31,"tagName":284,"properties":2313,"children":2314},{"style":313},[2315],{"type":27,"value":1945},{"type":31,"tagName":284,"properties":2317,"children":2318},{"style":319},[2319],{"type":27,"value":322},{"type":31,"tagName":284,"properties":2321,"children":2322},{"style":548},[2323],{"type":27,"value":276},{"type":31,"tagName":284,"properties":2325,"children":2326},{"style":319},[2327],{"type":27,"value":146},{"type":31,"tagName":284,"properties":2329,"children":2330},{"style":548},[2331],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":2333,"children":2334},{"style":846},[2335],{"type":27,"value":2336}," *",{"type":31,"tagName":284,"properties":2338,"children":2339},{"style":548},[2340],{"type":27,"value":887},{"type":31,"tagName":284,"properties":2342,"children":2343},{"style":319},[2344],{"type":27,"value":333},{"type":31,"tagName":284,"properties":2346,"children":2347},{"style":290},[2348],{"type":27,"value":2349},"// handle objects allocate once, at module load",{"type":27,"value":28},{"type":31,"tagName":284,"properties":2352,"children":2353},{"class":286},[2354,2358,2363,2367,2371,2375,2379,2383,2387,2391,2395,2399,2403],{"type":31,"tagName":284,"properties":2355,"children":2356},{"style":846},[2357],{"type":27,"value":849},{"type":31,"tagName":284,"properties":2359,"children":2360},{"style":548},[2361],{"type":27,"value":2362}," tags",{"type":31,"tagName":284,"properties":2364,"children":2365},{"style":846},[2366],{"type":27,"value":859},{"type":31,"tagName":284,"properties":2368,"children":2369},{"style":313},[2370],{"type":27,"value":2137},{"type":31,"tagName":284,"properties":2372,"children":2373},{"style":319},[2374],{"type":27,"value":322},{"type":31,"tagName":284,"properties":2376,"children":2377},{"style":548},[2378],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":2380,"children":2381},{"style":846},[2382],{"type":27,"value":2336},{"type":31,"tagName":284,"properties":2384,"children":2385},{"style":548},[2386],{"type":27,"value":887},{"type":31,"tagName":284,"properties":2388,"children":2389},{"style":319},[2390],{"type":27,"value":146},{"type":31,"tagName":284,"properties":2392,"children":2393},{"style":548},[2394],{"type":27,"value":1241},{"type":31,"tagName":284,"properties":2396,"children":2397},{"style":846},[2398],{"type":27,"value":2336},{"type":31,"tagName":284,"properties":2400,"children":2401},{"style":548},[2402],{"type":27,"value":887},{"type":31,"tagName":284,"properties":2404,"children":2405},{"style":319},[2406],{"type":27,"value":519},{"type":27,"value":28},{"type":31,"tagName":284,"properties":2409,"children":2410},{"class":286},[2411,2415,2420,2424,2429,2433,2437,2442,2446],{"type":31,"tagName":284,"properties":2412,"children":2413},{"style":846},[2414],{"type":27,"value":849},{"type":31,"tagName":284,"properties":2416,"children":2417},{"style":548},[2418],{"type":27,"value":2419}," words",{"type":31,"tagName":284,"properties":2421,"children":2422},{"style":846},[2423],{"type":27,"value":859},{"type":31,"tagName":284,"properties":2425,"children":2426},{"style":319},[2427],{"type":27,"value":2428}," draw.",{"type":31,"tagName":284,"properties":2430,"children":2431},{"style":313},[2432],{"type":27,"value":806},{"type":31,"tagName":284,"properties":2434,"children":2435},{"style":319},[2436],{"type":27,"value":322},{"type":31,"tagName":284,"properties":2438,"children":2439},{"style":548},[2440],{"type":27,"value":2441},"90",{"type":31,"tagName":284,"properties":2443,"children":2444},{"style":319},[2445],{"type":27,"value":333},{"type":31,"tagName":284,"properties":2447,"children":2448},{"style":290},[2449],{"type":27,"value":2450},"// the one line of words when the chart is too coarse",{"type":27,"value":28},{"type":31,"tagName":284,"properties":2453,"children":2454},{"class":286},[],{"type":27,"value":28},{"type":31,"tagName":284,"properties":2457,"children":2458},{"class":286},[2459,2463,2468,2472,2477,2481,2485,2490,2494,2499],{"type":31,"tagName":284,"properties":2460,"children":2461},{"style":846},[2462],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":2464,"children":2465},{"style":319},[2466],{"type":27,"value":2467}," daysKept ",{"type":31,"tagName":284,"properties":2469,"children":2470},{"style":846},[2471],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2473,"children":2474},{"style":548},[2475],{"type":27,"value":2476}," 5",{"type":31,"tagName":284,"properties":2478,"children":2479},{"style":319},[2480],{"type":27,"value":869},{"type":31,"tagName":284,"properties":2482,"children":2483},{"style":846},[2484],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":2486,"children":2487},{"style":319},[2488],{"type":27,"value":2489}," showTags ",{"type":31,"tagName":284,"properties":2491,"children":2492},{"style":846},[2493],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2495,"children":2496},{"style":548},[2497],{"type":27,"value":2498}," true",{"type":31,"tagName":284,"properties":2500,"children":2501},{"style":319},[2502],{"type":27,"value":2503},";",{"type":27,"value":28},{"type":31,"tagName":284,"properties":2506,"children":2507},{"class":286},[2508,2512,2517,2521,2526,2530,2535,2539,2543,2548,2552,2556,2560,2564,2568,2572,2577,2581,2585,2589,2593,2597],{"type":31,"tagName":284,"properties":2509,"children":2510},{"style":846},[2511],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":2513,"children":2514},{"style":319},[2515],{"type":27,"value":2516}," t",{"type":31,"tagName":284,"properties":2518,"children":2519},{"style":846},[2520],{"type":27,"value":970},{"type":31,"tagName":284,"properties":2522,"children":2523},{"style":313},[2524],{"type":27,"value":2525}," f64",{"type":31,"tagName":284,"properties":2527,"children":2528},{"style":846},[2529],{"type":27,"value":859},{"type":31,"tagName":284,"properties":2531,"children":2532},{"style":548},[2533],{"type":27,"value":2534}," NaN",{"type":31,"tagName":284,"properties":2536,"children":2537},{"style":319},[2538],{"type":27,"value":869},{"type":31,"tagName":284,"properties":2540,"children":2541},{"style":846},[2542],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":2544,"children":2545},{"style":319},[2546],{"type":27,"value":2547}," prevT",{"type":31,"tagName":284,"properties":2549,"children":2550},{"style":846},[2551],{"type":27,"value":970},{"type":31,"tagName":284,"properties":2553,"children":2554},{"style":313},[2555],{"type":27,"value":2525},{"type":31,"tagName":284,"properties":2557,"children":2558},{"style":846},[2559],{"type":27,"value":859},{"type":31,"tagName":284,"properties":2561,"children":2562},{"style":548},[2563],{"type":27,"value":2534},{"type":31,"tagName":284,"properties":2565,"children":2566},{"style":319},[2567],{"type":27,"value":869},{"type":31,"tagName":284,"properties":2569,"children":2570},{"style":846},[2571],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":2573,"children":2574},{"style":319},[2575],{"type":27,"value":2576}," width",{"type":31,"tagName":284,"properties":2578,"children":2579},{"style":846},[2580],{"type":27,"value":970},{"type":31,"tagName":284,"properties":2582,"children":2583},{"style":313},[2584],{"type":27,"value":2525},{"type":31,"tagName":284,"properties":2586,"children":2587},{"style":846},[2588],{"type":27,"value":859},{"type":31,"tagName":284,"properties":2590,"children":2591},{"style":548},[2592],{"type":27,"value":2534},{"type":31,"tagName":284,"properties":2594,"children":2595},{"style":319},[2596],{"type":27,"value":869},{"type":31,"tagName":284,"properties":2598,"children":2599},{"style":290},[2600],{"type":27,"value":2601},"// width = the smallest gap between bar opens seen, so a weekend gap never widens a box",{"type":27,"value":28},{"type":31,"tagName":284,"properties":2604,"children":2605},{"class":286},[2606,2610,2615,2619,2624],{"type":31,"tagName":284,"properties":2607,"children":2608},{"style":846},[2609],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":2611,"children":2612},{"style":319},[2613],{"type":27,"value":2614}," wordsShown ",{"type":31,"tagName":284,"properties":2616,"children":2617},{"style":846},[2618],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2620,"children":2621},{"style":548},[2622],{"type":27,"value":2623}," false",{"type":31,"tagName":284,"properties":2625,"children":2626},{"style":319},[2627],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":2630,"children":2631},{"class":286},[],{"type":27,"value":28},{"type":31,"tagName":284,"properties":2634,"children":2635},{"class":286},[2636],{"type":31,"tagName":284,"properties":2637,"children":2638},{"style":290},[2639],{"type":27,"value":2640},"// onStart() runs once before the first bar: read the settings, three readers per session, and build a clock per zone.",{"type":27,"value":28},{"type":31,"tagName":284,"properties":2643,"children":2644},{"class":286},[2645,2649,2654,2659,2663,2668],{"type":31,"tagName":284,"properties":2646,"children":2647},{"style":846},[2648],{"type":27,"value":1940},{"type":31,"tagName":284,"properties":2650,"children":2651},{"style":313},[2652],{"type":27,"value":2653}," onStart",{"type":31,"tagName":284,"properties":2655,"children":2656},{"style":319},[2657],{"type":27,"value":2658},"()",{"type":31,"tagName":284,"properties":2660,"children":2661},{"style":846},[2662],{"type":27,"value":970},{"type":31,"tagName":284,"properties":2664,"children":2665},{"style":548},[2666],{"type":27,"value":2667}," void",{"type":31,"tagName":284,"properties":2669,"children":2670},{"style":319},[2671],{"type":27,"value":2672}," {",{"type":27,"value":28},{"type":31,"tagName":284,"properties":2675,"children":2676},{"class":286},[2677,2682,2686,2691,2695,2700,2705,2709,2713,2717,2722,2727,2731,2735,2739,2743,2747,2752],{"type":31,"tagName":284,"properties":2678,"children":2679},{"style":319},[2680],{"type":27,"value":2681},"  starts[",{"type":31,"tagName":284,"properties":2683,"children":2684},{"style":548},[2685],{"type":27,"value":276},{"type":31,"tagName":284,"properties":2687,"children":2688},{"style":319},[2689],{"type":27,"value":2690},"] ",{"type":31,"tagName":284,"properties":2692,"children":2693},{"style":846},[2694],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2696,"children":2697},{"style":313},[2698],{"type":27,"value":2699}," p_asia_start",{"type":31,"tagName":284,"properties":2701,"children":2702},{"style":319},[2703],{"type":27,"value":2704},"(); ends[",{"type":31,"tagName":284,"properties":2706,"children":2707},{"style":548},[2708],{"type":27,"value":276},{"type":31,"tagName":284,"properties":2710,"children":2711},{"style":319},[2712],{"type":27,"value":2690},{"type":31,"tagName":284,"properties":2714,"children":2715},{"style":846},[2716],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2718,"children":2719},{"style":313},[2720],{"type":27,"value":2721}," p_asia_end",{"type":31,"tagName":284,"properties":2723,"children":2724},{"style":319},[2725],{"type":27,"value":2726},"(); zones[",{"type":31,"tagName":284,"properties":2728,"children":2729},{"style":548},[2730],{"type":27,"value":276},{"type":31,"tagName":284,"properties":2732,"children":2733},{"style":319},[2734],{"type":27,"value":2690},{"type":31,"tagName":284,"properties":2736,"children":2737},{"style":846},[2738],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2740,"children":2741},{"style":313},[2742],{"type":27,"value":975},{"type":31,"tagName":284,"properties":2744,"children":2745},{"style":319},[2746],{"type":27,"value":322},{"type":31,"tagName":284,"properties":2748,"children":2749},{"style":313},[2750],{"type":27,"value":2751},"p_asia_tz",{"type":31,"tagName":284,"properties":2753,"children":2754},{"style":319},[2755],{"type":27,"value":2756},"());",{"type":27,"value":28},{"type":31,"tagName":284,"properties":2759,"children":2760},{"class":286},[2761,2765,2769,2773,2777,2782,2786,2790,2794,2798,2803,2807,2811,2815,2819,2823,2827,2832],{"type":31,"tagName":284,"properties":2762,"children":2763},{"style":319},[2764],{"type":27,"value":2681},{"type":31,"tagName":284,"properties":2766,"children":2767},{"style":548},[2768],{"type":27,"value":561},{"type":31,"tagName":284,"properties":2770,"children":2771},{"style":319},[2772],{"type":27,"value":2690},{"type":31,"tagName":284,"properties":2774,"children":2775},{"style":846},[2776],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2778,"children":2779},{"style":313},[2780],{"type":27,"value":2781}," p_london_start",{"type":31,"tagName":284,"properties":2783,"children":2784},{"style":319},[2785],{"type":27,"value":2704},{"type":31,"tagName":284,"properties":2787,"children":2788},{"style":548},[2789],{"type":27,"value":561},{"type":31,"tagName":284,"properties":2791,"children":2792},{"style":319},[2793],{"type":27,"value":2690},{"type":31,"tagName":284,"properties":2795,"children":2796},{"style":846},[2797],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2799,"children":2800},{"style":313},[2801],{"type":27,"value":2802}," p_london_end",{"type":31,"tagName":284,"properties":2804,"children":2805},{"style":319},[2806],{"type":27,"value":2726},{"type":31,"tagName":284,"properties":2808,"children":2809},{"style":548},[2810],{"type":27,"value":561},{"type":31,"tagName":284,"properties":2812,"children":2813},{"style":319},[2814],{"type":27,"value":2690},{"type":31,"tagName":284,"properties":2816,"children":2817},{"style":846},[2818],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2820,"children":2821},{"style":313},[2822],{"type":27,"value":975},{"type":31,"tagName":284,"properties":2824,"children":2825},{"style":319},[2826],{"type":27,"value":322},{"type":31,"tagName":284,"properties":2828,"children":2829},{"style":313},[2830],{"type":27,"value":2831},"p_london_tz",{"type":31,"tagName":284,"properties":2833,"children":2834},{"style":319},[2835],{"type":27,"value":2756},{"type":27,"value":28},{"type":31,"tagName":284,"properties":2838,"children":2839},{"class":286},[2840,2844,2849,2853,2857,2862,2866,2870,2874,2878,2883,2887,2891,2895,2899,2903,2907,2912],{"type":31,"tagName":284,"properties":2841,"children":2842},{"style":319},[2843],{"type":27,"value":2681},{"type":31,"tagName":284,"properties":2845,"children":2846},{"style":548},[2847],{"type":27,"value":2848},"2",{"type":31,"tagName":284,"properties":2850,"children":2851},{"style":319},[2852],{"type":27,"value":2690},{"type":31,"tagName":284,"properties":2854,"children":2855},{"style":846},[2856],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2858,"children":2859},{"style":313},[2860],{"type":27,"value":2861}," p_new_york_start",{"type":31,"tagName":284,"properties":2863,"children":2864},{"style":319},[2865],{"type":27,"value":2704},{"type":31,"tagName":284,"properties":2867,"children":2868},{"style":548},[2869],{"type":27,"value":2848},{"type":31,"tagName":284,"properties":2871,"children":2872},{"style":319},[2873],{"type":27,"value":2690},{"type":31,"tagName":284,"properties":2875,"children":2876},{"style":846},[2877],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2879,"children":2880},{"style":313},[2881],{"type":27,"value":2882}," p_new_york_end",{"type":31,"tagName":284,"properties":2884,"children":2885},{"style":319},[2886],{"type":27,"value":2726},{"type":31,"tagName":284,"properties":2888,"children":2889},{"style":548},[2890],{"type":27,"value":2848},{"type":31,"tagName":284,"properties":2892,"children":2893},{"style":319},[2894],{"type":27,"value":2690},{"type":31,"tagName":284,"properties":2896,"children":2897},{"style":846},[2898],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2900,"children":2901},{"style":313},[2902],{"type":27,"value":975},{"type":31,"tagName":284,"properties":2904,"children":2905},{"style":319},[2906],{"type":27,"value":322},{"type":31,"tagName":284,"properties":2908,"children":2909},{"style":313},[2910],{"type":27,"value":2911},"p_new_york_tz",{"type":31,"tagName":284,"properties":2913,"children":2914},{"style":319},[2915],{"type":27,"value":2756},{"type":27,"value":28},{"type":31,"tagName":284,"properties":2918,"children":2919},{"class":286},[2920,2925,2929,2933,2937,2942,2947,2952,2957,2961,2965,2970,2974,2978,2982,2986,2990,2995,2999,3003,3007,3011],{"type":31,"tagName":284,"properties":2921,"children":2922},{"style":319},[2923],{"type":27,"value":2924},"  daysKept ",{"type":31,"tagName":284,"properties":2926,"children":2927},{"style":846},[2928],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2930,"children":2931},{"style":313},[2932],{"type":27,"value":975},{"type":31,"tagName":284,"properties":2934,"children":2935},{"style":319},[2936],{"type":27,"value":322},{"type":31,"tagName":284,"properties":2938,"children":2939},{"style":313},[2940],{"type":27,"value":2941},"p_days_kept",{"type":31,"tagName":284,"properties":2943,"children":2944},{"style":319},[2945],{"type":27,"value":2946},"()); ",{"type":31,"tagName":284,"properties":2948,"children":2949},{"style":846},[2950],{"type":27,"value":2951},"if",{"type":31,"tagName":284,"properties":2953,"children":2954},{"style":319},[2955],{"type":27,"value":2956}," (daysKept ",{"type":31,"tagName":284,"properties":2958,"children":2959},{"style":846},[2960],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":2962,"children":2963},{"style":548},[2964],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":2966,"children":2967},{"style":319},[2968],{"type":27,"value":2969},") daysKept ",{"type":31,"tagName":284,"properties":2971,"children":2972},{"style":846},[2973],{"type":27,"value":985},{"type":31,"tagName":284,"properties":2975,"children":2976},{"style":548},[2977],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":2979,"children":2980},{"style":319},[2981],{"type":27,"value":869},{"type":31,"tagName":284,"properties":2983,"children":2984},{"style":846},[2985],{"type":27,"value":2951},{"type":31,"tagName":284,"properties":2987,"children":2988},{"style":319},[2989],{"type":27,"value":2956},{"type":31,"tagName":284,"properties":2991,"children":2992},{"style":846},[2993],{"type":27,"value":2994},">",{"type":31,"tagName":284,"properties":2996,"children":2997},{"style":548},[2998],{"type":27,"value":887},{"type":31,"tagName":284,"properties":3000,"children":3001},{"style":319},[3002],{"type":27,"value":2969},{"type":31,"tagName":284,"properties":3004,"children":3005},{"style":846},[3006],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3008,"children":3009},{"style":548},[3010],{"type":27,"value":887},{"type":31,"tagName":284,"properties":3012,"children":3013},{"style":319},[3014],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3017,"children":3018},{"class":286},[3019,3024,3028,3033],{"type":31,"tagName":284,"properties":3020,"children":3021},{"style":319},[3022],{"type":27,"value":3023},"  showTags ",{"type":31,"tagName":284,"properties":3025,"children":3026},{"style":846},[3027],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3029,"children":3030},{"style":313},[3031],{"type":27,"value":3032}," pb_show_tags",{"type":31,"tagName":284,"properties":3034,"children":3035},{"style":319},[3036],{"type":27,"value":3037},"();",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3040,"children":3041},{"class":286},[3042,3047,3051,3055,3060,3064,3068,3073,3078,3082,3087,3091,3095,3099,3103,3107,3111,3115,3119,3123,3127,3131,3135,3139],{"type":31,"tagName":284,"properties":3043,"children":3044},{"style":319},[3045],{"type":27,"value":3046},"  clocks ",{"type":31,"tagName":284,"properties":3048,"children":3049},{"style":846},[3050],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3052,"children":3053},{"style":319},[3054],{"type":27,"value":927},{"type":31,"tagName":284,"properties":3056,"children":3057},{"style":846},[3058],{"type":27,"value":3059},"new",{"type":31,"tagName":284,"properties":3061,"children":3062},{"style":313},[3063],{"type":27,"value":1414},{"type":31,"tagName":284,"properties":3065,"children":3066},{"style":319},[3067],{"type":27,"value":322},{"type":31,"tagName":284,"properties":3069,"children":3070},{"style":548},[3071],{"type":27,"value":3072},"SESSION_TZ_IDS",{"type":31,"tagName":284,"properties":3074,"children":3075},{"style":319},[3076],{"type":27,"value":3077},"[zones[",{"type":31,"tagName":284,"properties":3079,"children":3080},{"style":548},[3081],{"type":27,"value":276},{"type":31,"tagName":284,"properties":3083,"children":3084},{"style":319},[3085],{"type":27,"value":3086},"]]), ",{"type":31,"tagName":284,"properties":3088,"children":3089},{"style":846},[3090],{"type":27,"value":3059},{"type":31,"tagName":284,"properties":3092,"children":3093},{"style":313},[3094],{"type":27,"value":1414},{"type":31,"tagName":284,"properties":3096,"children":3097},{"style":319},[3098],{"type":27,"value":322},{"type":31,"tagName":284,"properties":3100,"children":3101},{"style":548},[3102],{"type":27,"value":3072},{"type":31,"tagName":284,"properties":3104,"children":3105},{"style":319},[3106],{"type":27,"value":3077},{"type":31,"tagName":284,"properties":3108,"children":3109},{"style":548},[3110],{"type":27,"value":561},{"type":31,"tagName":284,"properties":3112,"children":3113},{"style":319},[3114],{"type":27,"value":3086},{"type":31,"tagName":284,"properties":3116,"children":3117},{"style":846},[3118],{"type":27,"value":3059},{"type":31,"tagName":284,"properties":3120,"children":3121},{"style":313},[3122],{"type":27,"value":1414},{"type":31,"tagName":284,"properties":3124,"children":3125},{"style":319},[3126],{"type":27,"value":322},{"type":31,"tagName":284,"properties":3128,"children":3129},{"style":548},[3130],{"type":27,"value":3072},{"type":31,"tagName":284,"properties":3132,"children":3133},{"style":319},[3134],{"type":27,"value":3077},{"type":31,"tagName":284,"properties":3136,"children":3137},{"style":548},[3138],{"type":27,"value":2848},{"type":31,"tagName":284,"properties":3140,"children":3141},{"style":319},[3142],{"type":27,"value":3143},"]])];",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3146,"children":3147},{"class":286},[3148,3153,3157,3161,3166,3170,3174,3179,3183,3187,3191,3195,3199,3204,3208,3212],{"type":31,"tagName":284,"properties":3149,"children":3150},{"style":846},[3151],{"type":27,"value":3152},"  for",{"type":31,"tagName":284,"properties":3154,"children":3155},{"style":319},[3156],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":3158,"children":3159},{"style":846},[3160],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":3162,"children":3163},{"style":319},[3164],{"type":27,"value":3165}," s ",{"type":31,"tagName":284,"properties":3167,"children":3168},{"style":846},[3169],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3171,"children":3172},{"style":548},[3173],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":3175,"children":3176},{"style":319},[3177],{"type":27,"value":3178},"; s ",{"type":31,"tagName":284,"properties":3180,"children":3181},{"style":846},[3182],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":3184,"children":3185},{"style":548},[3186],{"type":27,"value":854},{"type":31,"tagName":284,"properties":3188,"children":3189},{"style":319},[3190],{"type":27,"value":3178},{"type":31,"tagName":284,"properties":3192,"children":3193},{"style":846},[3194],{"type":27,"value":2075},{"type":31,"tagName":284,"properties":3196,"children":3197},{"style":548},[3198],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":3200,"children":3201},{"style":319},[3202],{"type":27,"value":3203},") dayKey[s] ",{"type":31,"tagName":284,"properties":3205,"children":3206},{"style":846},[3207],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3209,"children":3210},{"style":548},[3211],{"type":27,"value":2534},{"type":31,"tagName":284,"properties":3213,"children":3214},{"style":319},[3215],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3218,"children":3219},{"class":286},[3220],{"type":31,"tagName":284,"properties":3221,"children":3222},{"style":319},[3223],{"type":27,"value":3224},"}",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3227,"children":3228},{"class":286},[3229],{"type":31,"tagName":284,"properties":3230,"children":3231},{"style":290},[3232],{"type":27,"value":3233},"// onBar() runs once per bar: place the bar in its sessions, open a new instance on a new day, grow the open ones;",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3236,"children":3237},{"class":286},[3238],{"type":31,"tagName":284,"properties":3239,"children":3240},{"style":290},[3241],{"type":27,"value":3242},"// then write the output, move the boxes this bar touched, and place a tag when a box opens or grows past its tag's edge.",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3245,"children":3246},{"class":286},[3247,3251,3256,3260,3264,3268],{"type":31,"tagName":284,"properties":3248,"children":3249},{"style":846},[3250],{"type":27,"value":1940},{"type":31,"tagName":284,"properties":3252,"children":3253},{"style":313},[3254],{"type":27,"value":3255}," onBar",{"type":31,"tagName":284,"properties":3257,"children":3258},{"style":319},[3259],{"type":27,"value":2658},{"type":31,"tagName":284,"properties":3261,"children":3262},{"style":846},[3263],{"type":27,"value":970},{"type":31,"tagName":284,"properties":3265,"children":3266},{"style":548},[3267],{"type":27,"value":2667},{"type":31,"tagName":284,"properties":3269,"children":3270},{"style":319},[3271],{"type":27,"value":2672},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3274,"children":3275},{"class":286},[3276,3281,3285,3290,3294,3299,3304,3309,3313,3318,3322,3326,3331,3335,3339,3344,3348,3352,3357],{"type":31,"tagName":284,"properties":3277,"children":3278},{"style":319},[3279],{"type":27,"value":3280},"  prevT ",{"type":31,"tagName":284,"properties":3282,"children":3283},{"style":846},[3284],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3286,"children":3287},{"style":319},[3288],{"type":27,"value":3289}," t; t ",{"type":31,"tagName":284,"properties":3291,"children":3292},{"style":846},[3293],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3295,"children":3296},{"style":319},[3297],{"type":27,"value":3298}," bar.",{"type":31,"tagName":284,"properties":3300,"children":3301},{"style":313},[3302],{"type":27,"value":3303},"time",{"type":31,"tagName":284,"properties":3305,"children":3306},{"style":319},[3307],{"type":27,"value":3308},"(); ",{"type":31,"tagName":284,"properties":3310,"children":3311},{"style":846},[3312],{"type":27,"value":849},{"type":31,"tagName":284,"properties":3314,"children":3315},{"style":548},[3316],{"type":27,"value":3317}," high",{"type":31,"tagName":284,"properties":3319,"children":3320},{"style":846},[3321],{"type":27,"value":859},{"type":31,"tagName":284,"properties":3323,"children":3324},{"style":319},[3325],{"type":27,"value":3298},{"type":31,"tagName":284,"properties":3327,"children":3328},{"style":313},[3329],{"type":27,"value":3330},"high",{"type":31,"tagName":284,"properties":3332,"children":3333},{"style":319},[3334],{"type":27,"value":3308},{"type":31,"tagName":284,"properties":3336,"children":3337},{"style":846},[3338],{"type":27,"value":849},{"type":31,"tagName":284,"properties":3340,"children":3341},{"style":548},[3342],{"type":27,"value":3343}," low",{"type":31,"tagName":284,"properties":3345,"children":3346},{"style":846},[3347],{"type":27,"value":859},{"type":31,"tagName":284,"properties":3349,"children":3350},{"style":319},[3351],{"type":27,"value":3298},{"type":31,"tagName":284,"properties":3353,"children":3354},{"style":313},[3355],{"type":27,"value":3356},"low",{"type":31,"tagName":284,"properties":3358,"children":3359},{"style":319},[3360],{"type":27,"value":3037},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3363,"children":3364},{"class":286},[3365,3370,3374,3379,3384,3389,3394,3399,3403,3408,3412,3416,3420,3425,3430,3434,3439,3443,3447,3452,3456,3460,3464],{"type":31,"tagName":284,"properties":3366,"children":3367},{"style":846},[3368],{"type":27,"value":3369},"  if",{"type":31,"tagName":284,"properties":3371,"children":3372},{"style":319},[3373],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":3375,"children":3376},{"style":846},[3377],{"type":27,"value":3378},"!",{"type":31,"tagName":284,"properties":3380,"children":3381},{"style":313},[3382],{"type":27,"value":3383},"isNaN",{"type":31,"tagName":284,"properties":3385,"children":3386},{"style":319},[3387],{"type":27,"value":3388},"(prevT) ",{"type":31,"tagName":284,"properties":3390,"children":3391},{"style":846},[3392],{"type":27,"value":3393},"&&",{"type":31,"tagName":284,"properties":3395,"children":3396},{"style":319},[3397],{"type":27,"value":3398}," t ",{"type":31,"tagName":284,"properties":3400,"children":3401},{"style":846},[3402],{"type":27,"value":2994},{"type":31,"tagName":284,"properties":3404,"children":3405},{"style":319},[3406],{"type":27,"value":3407}," prevT ",{"type":31,"tagName":284,"properties":3409,"children":3410},{"style":846},[3411],{"type":27,"value":3393},{"type":31,"tagName":284,"properties":3413,"children":3414},{"style":319},[3415],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":3417,"children":3418},{"style":313},[3419],{"type":27,"value":3383},{"type":31,"tagName":284,"properties":3421,"children":3422},{"style":319},[3423],{"type":27,"value":3424},"(width) ",{"type":31,"tagName":284,"properties":3426,"children":3427},{"style":846},[3428],{"type":27,"value":3429},"||",{"type":31,"tagName":284,"properties":3431,"children":3432},{"style":319},[3433],{"type":27,"value":3398},{"type":31,"tagName":284,"properties":3435,"children":3436},{"style":846},[3437],{"type":27,"value":3438},"-",{"type":31,"tagName":284,"properties":3440,"children":3441},{"style":319},[3442],{"type":27,"value":3407},{"type":31,"tagName":284,"properties":3444,"children":3445},{"style":846},[3446],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":3448,"children":3449},{"style":319},[3450],{"type":27,"value":3451}," width)) width ",{"type":31,"tagName":284,"properties":3453,"children":3454},{"style":846},[3455],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3457,"children":3458},{"style":319},[3459],{"type":27,"value":3398},{"type":31,"tagName":284,"properties":3461,"children":3462},{"style":846},[3463],{"type":27,"value":3438},{"type":31,"tagName":284,"properties":3465,"children":3466},{"style":319},[3467],{"type":27,"value":3468}," prevT;",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3471,"children":3472},{"class":286},[3473,3477,3481,3485,3489,3493,3497,3501,3505,3509,3513,3517,3521,3526,3530,3534,3539,3543,3547,3552,3556,3560,3565,3569,3573],{"type":31,"tagName":284,"properties":3474,"children":3475},{"style":846},[3476],{"type":27,"value":3152},{"type":31,"tagName":284,"properties":3478,"children":3479},{"style":319},[3480],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":3482,"children":3483},{"style":846},[3484],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":3486,"children":3487},{"style":319},[3488],{"type":27,"value":3165},{"type":31,"tagName":284,"properties":3490,"children":3491},{"style":846},[3492],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3494,"children":3495},{"style":548},[3496],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":3498,"children":3499},{"style":319},[3500],{"type":27,"value":3178},{"type":31,"tagName":284,"properties":3502,"children":3503},{"style":846},[3504],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":3506,"children":3507},{"style":548},[3508],{"type":27,"value":854},{"type":31,"tagName":284,"properties":3510,"children":3511},{"style":319},[3512],{"type":27,"value":3178},{"type":31,"tagName":284,"properties":3514,"children":3515},{"style":846},[3516],{"type":27,"value":2075},{"type":31,"tagName":284,"properties":3518,"children":3519},{"style":548},[3520],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":3522,"children":3523},{"style":319},[3524],{"type":27,"value":3525},") { touched[s] ",{"type":31,"tagName":284,"properties":3527,"children":3528},{"style":846},[3529],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3531,"children":3532},{"style":548},[3533],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":3535,"children":3536},{"style":319},[3537],{"type":27,"value":3538},"; fresh[s] ",{"type":31,"tagName":284,"properties":3540,"children":3541},{"style":846},[3542],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3544,"children":3545},{"style":548},[3546],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":3548,"children":3549},{"style":319},[3550],{"type":27,"value":3551},"; grew[s] ",{"type":31,"tagName":284,"properties":3553,"children":3554},{"style":846},[3555],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3557,"children":3558},{"style":548},[3559],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":3561,"children":3562},{"style":319},[3563],{"type":27,"value":3564},"; sank[s] ",{"type":31,"tagName":284,"properties":3566,"children":3567},{"style":846},[3568],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3570,"children":3571},{"style":548},[3572],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":3574,"children":3575},{"style":319},[3576],{"type":27,"value":3577},"; }",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3580,"children":3581},{"class":286},[3582,3586,3590,3594,3599,3603,3607],{"type":31,"tagName":284,"properties":3583,"children":3584},{"style":846},[3585],{"type":27,"value":3369},{"type":31,"tagName":284,"properties":3587,"children":3588},{"style":319},[3589],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":3591,"children":3592},{"style":313},[3593],{"type":27,"value":3383},{"type":31,"tagName":284,"properties":3595,"children":3596},{"style":319},[3597],{"type":27,"value":3598},"(width)) ",{"type":31,"tagName":284,"properties":3600,"children":3601},{"style":846},[3602],{"type":27,"value":2119},{"type":31,"tagName":284,"properties":3604,"children":3605},{"style":319},[3606],{"type":27,"value":869},{"type":31,"tagName":284,"properties":3608,"children":3609},{"style":290},[3610],{"type":27,"value":3611},"// the first bar has no width yet: nothing to draw",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3614,"children":3615},{"class":286},[3616,3621,3626,3630,3635,3640,3645,3649],{"type":31,"tagName":284,"properties":3617,"children":3618},{"style":846},[3619],{"type":27,"value":3620},"  const",{"type":31,"tagName":284,"properties":3622,"children":3623},{"style":548},[3624],{"type":27,"value":3625}," coarse",{"type":31,"tagName":284,"properties":3627,"children":3628},{"style":846},[3629],{"type":27,"value":859},{"type":31,"tagName":284,"properties":3631,"children":3632},{"style":319},[3633],{"type":27,"value":3634}," width ",{"type":31,"tagName":284,"properties":3636,"children":3637},{"style":846},[3638],{"type":27,"value":3639},">=",{"type":31,"tagName":284,"properties":3641,"children":3642},{"style":548},[3643],{"type":27,"value":3644}," 14400.0",{"type":31,"tagName":284,"properties":3646,"children":3647},{"style":319},[3648],{"type":27,"value":869},{"type":31,"tagName":284,"properties":3650,"children":3651},{"style":290},[3652],{"type":27,"value":3653},"// 4h and coarser: a session is one or two bars, the boxes would say nothing",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3656,"children":3657},{"class":286},[3658,3662],{"type":31,"tagName":284,"properties":3659,"children":3660},{"style":846},[3661],{"type":27,"value":3369},{"type":31,"tagName":284,"properties":3663,"children":3664},{"style":319},[3665],{"type":27,"value":3666}," (coarse) {",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3669,"children":3670},{"class":286},[3671,3676,3680,3685],{"type":31,"tagName":284,"properties":3672,"children":3673},{"style":313},[3674],{"type":27,"value":3675},"    out_sessions_open",{"type":31,"tagName":284,"properties":3677,"children":3678},{"style":319},[3679],{"type":27,"value":322},{"type":31,"tagName":284,"properties":3681,"children":3682},{"style":548},[3683],{"type":27,"value":3684},"0.0",{"type":31,"tagName":284,"properties":3686,"children":3687},{"style":319},[3688],{"type":27,"value":519},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3691,"children":3692},{"class":286},[3693,3698,3702,3706,3711],{"type":31,"tagName":284,"properties":3694,"children":3695},{"style":846},[3696],{"type":27,"value":3697},"    if",{"type":31,"tagName":284,"properties":3699,"children":3700},{"style":319},[3701],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":3703,"children":3704},{"style":846},[3705],{"type":27,"value":3378},{"type":31,"tagName":284,"properties":3707,"children":3708},{"style":319},[3709],{"type":27,"value":3710},"wordsShown) { ",{"type":31,"tagName":284,"properties":3712,"children":3713},{"style":290},[3714],{"type":27,"value":3715},"// once: the handle stays",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3718,"children":3719},{"class":286},[3720,3725,3729,3734,3738,3743],{"type":31,"tagName":284,"properties":3721,"children":3722},{"style":313},[3723],{"type":27,"value":3724},"      sb_clear",{"type":31,"tagName":284,"properties":3726,"children":3727},{"style":319},[3728],{"type":27,"value":3308},{"type":31,"tagName":284,"properties":3730,"children":3731},{"style":313},[3732],{"type":27,"value":3733},"sb_text",{"type":31,"tagName":284,"properties":3735,"children":3736},{"style":319},[3737],{"type":27,"value":322},{"type":31,"tagName":284,"properties":3739,"children":3740},{"style":325},[3741],{"type":27,"value":3742},"\"Session Map needs a chart finer than 4h\"",{"type":31,"tagName":284,"properties":3744,"children":3745},{"style":319},[3746],{"type":27,"value":519},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3749,"children":3750},{"class":286},[3751,3756,3761,3765,3769,3773,3778,3783,3787,3792,3797,3801,3806,3810,3815,3819,3824,3828,3833,3837,3842],{"type":31,"tagName":284,"properties":3752,"children":3753},{"style":319},[3754],{"type":27,"value":3755},"      words.",{"type":31,"tagName":284,"properties":3757,"children":3758},{"style":313},[3759],{"type":27,"value":3760},"set",{"type":31,"tagName":284,"properties":3762,"children":3763},{"style":319},[3764],{"type":27,"value":322},{"type":31,"tagName":284,"properties":3766,"children":3767},{"style":548},[3768],{"type":27,"value":1048},{"type":31,"tagName":284,"properties":3770,"children":3771},{"style":319},[3772],{"type":27,"value":146},{"type":31,"tagName":284,"properties":3774,"children":3775},{"style":548},[3776],{"type":27,"value":3777},"14",{"type":31,"tagName":284,"properties":3779,"children":3780},{"style":319},[3781],{"type":27,"value":3782},").",{"type":31,"tagName":284,"properties":3784,"children":3785},{"style":313},[3786],{"type":27,"value":27},{"type":31,"tagName":284,"properties":3788,"children":3789},{"style":319},[3790],{"type":27,"value":3791},"(str_tag_sb).",{"type":31,"tagName":284,"properties":3793,"children":3794},{"style":313},[3795],{"type":27,"value":3796},"anchor",{"type":31,"tagName":284,"properties":3798,"children":3799},{"style":319},[3800],{"type":27,"value":322},{"type":31,"tagName":284,"properties":3802,"children":3803},{"style":548},[3804],{"type":27,"value":3805},"ANCHOR_TOP_RIGHT",{"type":31,"tagName":284,"properties":3807,"children":3808},{"style":319},[3809],{"type":27,"value":3782},{"type":31,"tagName":284,"properties":3811,"children":3812},{"style":313},[3813],{"type":27,"value":3814},"align",{"type":31,"tagName":284,"properties":3816,"children":3817},{"style":319},[3818],{"type":27,"value":322},{"type":31,"tagName":284,"properties":3820,"children":3821},{"style":548},[3822],{"type":27,"value":3823},"ALIGN_RIGHT",{"type":31,"tagName":284,"properties":3825,"children":3826},{"style":319},[3827],{"type":27,"value":3782},{"type":31,"tagName":284,"properties":3829,"children":3830},{"style":313},[3831],{"type":27,"value":3832},"color",{"type":31,"tagName":284,"properties":3834,"children":3835},{"style":319},[3836],{"type":27,"value":322},{"type":31,"tagName":284,"properties":3838,"children":3839},{"style":548},[3840],{"type":27,"value":3841},"SLATE",{"type":31,"tagName":284,"properties":3843,"children":3844},{"style":319},[3845],{"type":27,"value":519},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3848,"children":3849},{"class":286},[3850,3855,3859,3863],{"type":31,"tagName":284,"properties":3851,"children":3852},{"style":319},[3853],{"type":27,"value":3854},"      wordsShown ",{"type":31,"tagName":284,"properties":3856,"children":3857},{"style":846},[3858],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3860,"children":3861},{"style":548},[3862],{"type":27,"value":2498},{"type":31,"tagName":284,"properties":3864,"children":3865},{"style":319},[3866],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3869,"children":3870},{"class":286},[3871],{"type":31,"tagName":284,"properties":3872,"children":3873},{"style":319},[3874],{"type":27,"value":3875},"    }",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3878,"children":3879},{"class":286},[3880,3885],{"type":31,"tagName":284,"properties":3881,"children":3882},{"style":846},[3883],{"type":27,"value":3884},"    return",{"type":31,"tagName":284,"properties":3886,"children":3887},{"style":319},[3888],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3891,"children":3892},{"class":286},[3893],{"type":31,"tagName":284,"properties":3894,"children":3895},{"style":319},[3896],{"type":27,"value":3897},"  }",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3900,"children":3901},{"class":286},[3902,3907,3912,3916,3920],{"type":31,"tagName":284,"properties":3903,"children":3904},{"style":846},[3905],{"type":27,"value":3906},"  let",{"type":31,"tagName":284,"properties":3908,"children":3909},{"style":319},[3910],{"type":27,"value":3911}," openCount ",{"type":31,"tagName":284,"properties":3913,"children":3914},{"style":846},[3915],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3917,"children":3918},{"style":548},[3919],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":3921,"children":3922},{"style":319},[3923],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":3926,"children":3927},{"class":286},[3928,3932,3936,3940,3944,3948,3952,3956,3960,3964,3968,3972,3976],{"type":31,"tagName":284,"properties":3929,"children":3930},{"style":846},[3931],{"type":27,"value":3152},{"type":31,"tagName":284,"properties":3933,"children":3934},{"style":319},[3935],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":3937,"children":3938},{"style":846},[3939],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":3941,"children":3942},{"style":319},[3943],{"type":27,"value":3165},{"type":31,"tagName":284,"properties":3945,"children":3946},{"style":846},[3947],{"type":27,"value":985},{"type":31,"tagName":284,"properties":3949,"children":3950},{"style":548},[3951],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":3953,"children":3954},{"style":319},[3955],{"type":27,"value":3178},{"type":31,"tagName":284,"properties":3957,"children":3958},{"style":846},[3959],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":3961,"children":3962},{"style":548},[3963],{"type":27,"value":854},{"type":31,"tagName":284,"properties":3965,"children":3966},{"style":319},[3967],{"type":27,"value":3178},{"type":31,"tagName":284,"properties":3969,"children":3970},{"style":846},[3971],{"type":27,"value":2075},{"type":31,"tagName":284,"properties":3973,"children":3974},{"style":548},[3975],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":3977,"children":3978},{"style":319},[3979],{"type":27,"value":3980},") {",{"type":27,"value":28},{"type":31,"tagName":284,"properties":3983,"children":3984},{"class":286},[3985,3990,3995,4000],{"type":31,"tagName":284,"properties":3986,"children":3987},{"style":319},[3988],{"type":27,"value":3989},"    clocks[s].",{"type":31,"tagName":284,"properties":3991,"children":3992},{"style":313},[3993],{"type":27,"value":3994},"update",{"type":31,"tagName":284,"properties":3996,"children":3997},{"style":319},[3998],{"type":27,"value":3999},"(t); ",{"type":31,"tagName":284,"properties":4001,"children":4002},{"style":290},[4003],{"type":27,"value":4004},"// the bar in the window's zone, daylight saving included",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4007,"children":4008},{"class":286},[4009],{"type":31,"tagName":284,"properties":4010,"children":4011},{"style":290},[4012],{"type":27,"value":4013},"    // A bar counts when its span reaches into the window: its open inside it, or the window opening before its close (New",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4016,"children":4017},{"class":286},[4018],{"type":31,"tagName":284,"properties":4019,"children":4020},{"style":290},[4021],{"type":27,"value":4022},"    // York's 13:30 open inside the 13:00 bar of a 1h chart); lead = minutes from the bar's open to the window's start.",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4025,"children":4026},{"class":286},[4027,4032,4037,4041,4046,4051,4056,4061,4066,4070,4075,4079],{"type":31,"tagName":284,"properties":4028,"children":4029},{"style":846},[4030],{"type":27,"value":4031},"    const",{"type":31,"tagName":284,"properties":4033,"children":4034},{"style":548},[4035],{"type":27,"value":4036}," early",{"type":31,"tagName":284,"properties":4038,"children":4039},{"style":846},[4040],{"type":27,"value":859},{"type":31,"tagName":284,"properties":4042,"children":4043},{"style":846},[4044],{"type":27,"value":4045}," !",{"type":31,"tagName":284,"properties":4047,"children":4048},{"style":313},[4049],{"type":27,"value":4050},"inSession",{"type":31,"tagName":284,"properties":4052,"children":4053},{"style":319},[4054],{"type":27,"value":4055},"(t, ",{"type":31,"tagName":284,"properties":4057,"children":4058},{"style":313},[4059],{"type":27,"value":4060},"unchecked",{"type":31,"tagName":284,"properties":4062,"children":4063},{"style":319},[4064],{"type":27,"value":4065},"(starts[s]), ",{"type":31,"tagName":284,"properties":4067,"children":4068},{"style":313},[4069],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":4071,"children":4072},{"style":319},[4073],{"type":27,"value":4074},"(ends[s]), ",{"type":31,"tagName":284,"properties":4076,"children":4077},{"style":313},[4078],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":4080,"children":4081},{"style":319},[4082],{"type":27,"value":4083},"(zones[s]));",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4086,"children":4087},{"class":286},[4088,4092,4097,4101,4105,4109,4114,4118,4122,4127,4132,4137,4142,4147,4152,4157,4162,4167,4171,4176,4181,4186,4190],{"type":31,"tagName":284,"properties":4089,"children":4090},{"style":846},[4091],{"type":27,"value":4031},{"type":31,"tagName":284,"properties":4093,"children":4094},{"style":548},[4095],{"type":27,"value":4096}," lead",{"type":31,"tagName":284,"properties":4098,"children":4099},{"style":846},[4100],{"type":27,"value":859},{"type":31,"tagName":284,"properties":4102,"children":4103},{"style":319},[4104],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":4106,"children":4107},{"style":313},[4108],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":4110,"children":4111},{"style":319},[4112],{"type":27,"value":4113},"(starts[s]) ",{"type":31,"tagName":284,"properties":4115,"children":4116},{"style":846},[4117],{"type":27,"value":3438},{"type":31,"tagName":284,"properties":4119,"children":4120},{"style":313},[4121],{"type":27,"value":2525},{"type":31,"tagName":284,"properties":4123,"children":4124},{"style":319},[4125],{"type":27,"value":4126},"(clocks[s].",{"type":31,"tagName":284,"properties":4128,"children":4129},{"style":313},[4130],{"type":27,"value":4131},"hour",{"type":31,"tagName":284,"properties":4133,"children":4134},{"style":319},[4135],{"type":27,"value":4136},"() ",{"type":31,"tagName":284,"properties":4138,"children":4139},{"style":846},[4140],{"type":27,"value":4141},"*",{"type":31,"tagName":284,"properties":4143,"children":4144},{"style":548},[4145],{"type":27,"value":4146}," 60",{"type":31,"tagName":284,"properties":4148,"children":4149},{"style":846},[4150],{"type":27,"value":4151}," +",{"type":31,"tagName":284,"properties":4153,"children":4154},{"style":319},[4155],{"type":27,"value":4156}," clocks[s].",{"type":31,"tagName":284,"properties":4158,"children":4159},{"style":313},[4160],{"type":27,"value":4161},"minute",{"type":31,"tagName":284,"properties":4163,"children":4164},{"style":319},[4165],{"type":27,"value":4166},"()) ",{"type":31,"tagName":284,"properties":4168,"children":4169},{"style":846},[4170],{"type":27,"value":2109},{"type":31,"tagName":284,"properties":4172,"children":4173},{"style":548},[4174],{"type":27,"value":4175}," 1440.0",{"type":31,"tagName":284,"properties":4177,"children":4178},{"style":319},[4179],{"type":27,"value":4180},") ",{"type":31,"tagName":284,"properties":4182,"children":4183},{"style":846},[4184],{"type":27,"value":4185},"%",{"type":31,"tagName":284,"properties":4187,"children":4188},{"style":548},[4189],{"type":27,"value":4175},{"type":31,"tagName":284,"properties":4191,"children":4192},{"style":319},[4193],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4196,"children":4197},{"class":286},[4198,4202,4207,4211,4215,4220,4224,4229,4234,4239,4243,4248,4253,4258,4263],{"type":31,"tagName":284,"properties":4199,"children":4200},{"style":846},[4201],{"type":27,"value":3697},{"type":31,"tagName":284,"properties":4203,"children":4204},{"style":319},[4205],{"type":27,"value":4206}," (early ",{"type":31,"tagName":284,"properties":4208,"children":4209},{"style":846},[4210],{"type":27,"value":3393},{"type":31,"tagName":284,"properties":4212,"children":4213},{"style":846},[4214],{"type":27,"value":4045},{"type":31,"tagName":284,"properties":4216,"children":4217},{"style":319},[4218],{"type":27,"value":4219},"(lead ",{"type":31,"tagName":284,"properties":4221,"children":4222},{"style":846},[4223],{"type":27,"value":2994},{"type":31,"tagName":284,"properties":4225,"children":4226},{"style":548},[4227],{"type":27,"value":4228}," 0.0",{"type":31,"tagName":284,"properties":4230,"children":4231},{"style":846},[4232],{"type":27,"value":4233}," &&",{"type":31,"tagName":284,"properties":4235,"children":4236},{"style":319},[4237],{"type":27,"value":4238}," lead ",{"type":31,"tagName":284,"properties":4240,"children":4241},{"style":846},[4242],{"type":27,"value":4141},{"type":31,"tagName":284,"properties":4244,"children":4245},{"style":548},[4246],{"type":27,"value":4247}," 60.0",{"type":31,"tagName":284,"properties":4249,"children":4250},{"style":846},[4251],{"type":27,"value":4252}," \u003C",{"type":31,"tagName":284,"properties":4254,"children":4255},{"style":319},[4256],{"type":27,"value":4257}," width)) ",{"type":31,"tagName":284,"properties":4259,"children":4260},{"style":846},[4261],{"type":27,"value":4262},"continue",{"type":31,"tagName":284,"properties":4264,"children":4265},{"style":319},[4266],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4269,"children":4270},{"class":286},[4271,4276,4280,4284,4289,4293,4297],{"type":31,"tagName":284,"properties":4272,"children":4273},{"style":319},[4274],{"type":27,"value":4275},"    openCount ",{"type":31,"tagName":284,"properties":4277,"children":4278},{"style":846},[4279],{"type":27,"value":2075},{"type":31,"tagName":284,"properties":4281,"children":4282},{"style":548},[4283],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":4285,"children":4286},{"style":319},[4287],{"type":27,"value":4288},"; touched[s] ",{"type":31,"tagName":284,"properties":4290,"children":4291},{"style":846},[4292],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4294,"children":4295},{"style":548},[4296],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":4298,"children":4299},{"style":319},[4300],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4303,"children":4304},{"class":286},[4305,4309,4314,4318,4323,4328,4333,4337,4341,4346,4350,4354,4358,4363,4367,4371,4375,4379,4383,4388,4392,4396,4401,4405,4409,4413,4417,4422,4427,4431],{"type":31,"tagName":284,"properties":4306,"children":4307},{"style":846},[4308],{"type":27,"value":4031},{"type":31,"tagName":284,"properties":4310,"children":4311},{"style":548},[4312],{"type":27,"value":4313}," key",{"type":31,"tagName":284,"properties":4315,"children":4316},{"style":846},[4317],{"type":27,"value":859},{"type":31,"tagName":284,"properties":4319,"children":4320},{"style":319},[4321],{"type":27,"value":4322}," Math.",{"type":31,"tagName":284,"properties":4324,"children":4325},{"style":313},[4326],{"type":27,"value":4327},"floor",{"type":31,"tagName":284,"properties":4329,"children":4330},{"style":319},[4331],{"type":27,"value":4332},"((t ",{"type":31,"tagName":284,"properties":4334,"children":4335},{"style":846},[4336],{"type":27,"value":2109},{"type":31,"tagName":284,"properties":4338,"children":4339},{"style":319},[4340],{"type":27,"value":4206},{"type":31,"tagName":284,"properties":4342,"children":4343},{"style":846},[4344],{"type":27,"value":4345},"?",{"type":31,"tagName":284,"properties":4347,"children":4348},{"style":319},[4349],{"type":27,"value":4238},{"type":31,"tagName":284,"properties":4351,"children":4352},{"style":846},[4353],{"type":27,"value":4141},{"type":31,"tagName":284,"properties":4355,"children":4356},{"style":548},[4357],{"type":27,"value":4247},{"type":31,"tagName":284,"properties":4359,"children":4360},{"style":846},[4361],{"type":27,"value":4362}," :",{"type":31,"tagName":284,"properties":4364,"children":4365},{"style":548},[4366],{"type":27,"value":4228},{"type":31,"tagName":284,"properties":4368,"children":4369},{"style":319},[4370],{"type":27,"value":4180},{"type":31,"tagName":284,"properties":4372,"children":4373},{"style":846},[4374],{"type":27,"value":2109},{"type":31,"tagName":284,"properties":4376,"children":4377},{"style":313},[4378],{"type":27,"value":2525},{"type":31,"tagName":284,"properties":4380,"children":4381},{"style":319},[4382],{"type":27,"value":4126},{"type":31,"tagName":284,"properties":4384,"children":4385},{"style":313},[4386],{"type":27,"value":4387},"offsetSec",{"type":31,"tagName":284,"properties":4389,"children":4390},{"style":319},[4391],{"type":27,"value":4166},{"type":31,"tagName":284,"properties":4393,"children":4394},{"style":846},[4395],{"type":27,"value":3438},{"type":31,"tagName":284,"properties":4397,"children":4398},{"style":313},[4399],{"type":27,"value":4400}," unchecked",{"type":31,"tagName":284,"properties":4402,"children":4403},{"style":319},[4404],{"type":27,"value":4113},{"type":31,"tagName":284,"properties":4406,"children":4407},{"style":846},[4408],{"type":27,"value":4141},{"type":31,"tagName":284,"properties":4410,"children":4411},{"style":548},[4412],{"type":27,"value":4247},{"type":31,"tagName":284,"properties":4414,"children":4415},{"style":319},[4416],{"type":27,"value":4180},{"type":31,"tagName":284,"properties":4418,"children":4419},{"style":846},[4420],{"type":27,"value":4421},"/",{"type":31,"tagName":284,"properties":4423,"children":4424},{"style":548},[4425],{"type":27,"value":4426}," 86400.0",{"type":31,"tagName":284,"properties":4428,"children":4429},{"style":319},[4430],{"type":27,"value":333},{"type":31,"tagName":284,"properties":4432,"children":4433},{"style":290},[4434],{"type":27,"value":4435},"// the local day the window opened, read at its open (a wrapped window keeps its opening day)",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4438,"children":4439},{"class":286},[4440,4444,4449,4454,4458,4463],{"type":31,"tagName":284,"properties":4441,"children":4442},{"style":846},[4443],{"type":27,"value":3697},{"type":31,"tagName":284,"properties":4445,"children":4446},{"style":319},[4447],{"type":27,"value":4448}," (key ",{"type":31,"tagName":284,"properties":4450,"children":4451},{"style":846},[4452],{"type":27,"value":4453},"!=",{"type":31,"tagName":284,"properties":4455,"children":4456},{"style":313},[4457],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":4459,"children":4460},{"style":319},[4461],{"type":27,"value":4462},"(dayKey[s])) { ",{"type":31,"tagName":284,"properties":4464,"children":4465},{"style":290},[4466],{"type":27,"value":4467},"// a new session day: the next ring slot (the oldest box moves here)",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4470,"children":4471},{"class":286},[4472,4477,4481,4486,4490,4494,4499,4503,4508,4512,4516,4520,4524,4528],{"type":31,"tagName":284,"properties":4473,"children":4474},{"style":319},[4475],{"type":27,"value":4476},"      dayKey[s] ",{"type":31,"tagName":284,"properties":4478,"children":4479},{"style":846},[4480],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4482,"children":4483},{"style":319},[4484],{"type":27,"value":4485}," key; slot[s] ",{"type":31,"tagName":284,"properties":4487,"children":4488},{"style":846},[4489],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4491,"children":4492},{"style":313},[4493],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":4495,"children":4496},{"style":319},[4497],{"type":27,"value":4498},"(instances[s]) ",{"type":31,"tagName":284,"properties":4500,"children":4501},{"style":846},[4502],{"type":27,"value":4185},{"type":31,"tagName":284,"properties":4504,"children":4505},{"style":319},[4506],{"type":27,"value":4507}," daysKept; instances[s] ",{"type":31,"tagName":284,"properties":4509,"children":4510},{"style":846},[4511],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4513,"children":4514},{"style":313},[4515],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":4517,"children":4518},{"style":319},[4519],{"type":27,"value":4498},{"type":31,"tagName":284,"properties":4521,"children":4522},{"style":846},[4523],{"type":27,"value":2109},{"type":31,"tagName":284,"properties":4525,"children":4526},{"style":548},[4527],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":4529,"children":4530},{"style":319},[4531],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4534,"children":4535},{"class":286},[4536,4541,4545,4550,4554,4559,4563,4568,4572,4576],{"type":31,"tagName":284,"properties":4537,"children":4538},{"style":319},[4539],{"type":27,"value":4540},"      startT[s] ",{"type":31,"tagName":284,"properties":4542,"children":4543},{"style":846},[4544],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4546,"children":4547},{"style":319},[4548],{"type":27,"value":4549}," t; hiP[s] ",{"type":31,"tagName":284,"properties":4551,"children":4552},{"style":846},[4553],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4555,"children":4556},{"style":319},[4557],{"type":27,"value":4558}," high; loP[s] ",{"type":31,"tagName":284,"properties":4560,"children":4561},{"style":846},[4562],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4564,"children":4565},{"style":319},[4566],{"type":27,"value":4567}," low; fresh[s] ",{"type":31,"tagName":284,"properties":4569,"children":4570},{"style":846},[4571],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4573,"children":4574},{"style":548},[4575],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":4577,"children":4578},{"style":319},[4579],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4582,"children":4583},{"class":286},[4584,4589,4594],{"type":31,"tagName":284,"properties":4585,"children":4586},{"style":319},[4587],{"type":27,"value":4588},"    } ",{"type":31,"tagName":284,"properties":4590,"children":4591},{"style":846},[4592],{"type":27,"value":4593},"else",{"type":31,"tagName":284,"properties":4595,"children":4596},{"style":319},[4597],{"type":27,"value":2672},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4600,"children":4601},{"class":286},[4602,4607,4612,4616,4620,4625,4629,4634,4638,4642],{"type":31,"tagName":284,"properties":4603,"children":4604},{"style":846},[4605],{"type":27,"value":4606},"      if",{"type":31,"tagName":284,"properties":4608,"children":4609},{"style":319},[4610],{"type":27,"value":4611}," (high ",{"type":31,"tagName":284,"properties":4613,"children":4614},{"style":846},[4615],{"type":27,"value":2994},{"type":31,"tagName":284,"properties":4617,"children":4618},{"style":313},[4619],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":4621,"children":4622},{"style":319},[4623],{"type":27,"value":4624},"(hiP[s])) { hiP[s] ",{"type":31,"tagName":284,"properties":4626,"children":4627},{"style":846},[4628],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4630,"children":4631},{"style":319},[4632],{"type":27,"value":4633}," high; grew[s] ",{"type":31,"tagName":284,"properties":4635,"children":4636},{"style":846},[4637],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4639,"children":4640},{"style":548},[4641],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":4643,"children":4644},{"style":319},[4645],{"type":27,"value":3577},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4648,"children":4649},{"class":286},[4650,4654,4659,4663,4667,4672,4676,4681,4685,4689],{"type":31,"tagName":284,"properties":4651,"children":4652},{"style":846},[4653],{"type":27,"value":4606},{"type":31,"tagName":284,"properties":4655,"children":4656},{"style":319},[4657],{"type":27,"value":4658}," (low ",{"type":31,"tagName":284,"properties":4660,"children":4661},{"style":846},[4662],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":4664,"children":4665},{"style":313},[4666],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":4668,"children":4669},{"style":319},[4670],{"type":27,"value":4671},"(loP[s])) { loP[s] ",{"type":31,"tagName":284,"properties":4673,"children":4674},{"style":846},[4675],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4677,"children":4678},{"style":319},[4679],{"type":27,"value":4680}," low; sank[s] ",{"type":31,"tagName":284,"properties":4682,"children":4683},{"style":846},[4684],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4686,"children":4687},{"style":548},[4688],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":4690,"children":4691},{"style":319},[4692],{"type":27,"value":3577},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4695,"children":4696},{"class":286},[4697],{"type":31,"tagName":284,"properties":4698,"children":4699},{"style":319},[4700],{"type":27,"value":3875},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4703,"children":4704},{"class":286},[4705,4710,4714,4718,4722,4727],{"type":31,"tagName":284,"properties":4706,"children":4707},{"style":319},[4708],{"type":27,"value":4709},"    endT[s] ",{"type":31,"tagName":284,"properties":4711,"children":4712},{"style":846},[4713],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4715,"children":4716},{"style":319},[4717],{"type":27,"value":3398},{"type":31,"tagName":284,"properties":4719,"children":4720},{"style":846},[4721],{"type":27,"value":2109},{"type":31,"tagName":284,"properties":4723,"children":4724},{"style":319},[4725],{"type":27,"value":4726}," width; ",{"type":31,"tagName":284,"properties":4728,"children":4729},{"style":290},[4730],{"type":27,"value":4731},"// the box ends at this bar's close",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4734,"children":4735},{"class":286},[4736],{"type":31,"tagName":284,"properties":4737,"children":4738},{"style":319},[4739],{"type":27,"value":3897},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4742,"children":4743},{"class":286},[4744,4749,4753,4757],{"type":31,"tagName":284,"properties":4745,"children":4746},{"style":313},[4747],{"type":27,"value":4748},"  out_sessions_open",{"type":31,"tagName":284,"properties":4750,"children":4751},{"style":319},[4752],{"type":27,"value":322},{"type":31,"tagName":284,"properties":4754,"children":4755},{"style":313},[4756],{"type":27,"value":1231},{"type":31,"tagName":284,"properties":4758,"children":4759},{"style":319},[4760],{"type":27,"value":4761},"(openCount));",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4764,"children":4765},{"class":286},[4766,4770,4774,4778,4782,4786,4790,4794,4798,4802,4806,4810,4814],{"type":31,"tagName":284,"properties":4767,"children":4768},{"style":846},[4769],{"type":27,"value":3152},{"type":31,"tagName":284,"properties":4771,"children":4772},{"style":319},[4773],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":4775,"children":4776},{"style":846},[4777],{"type":27,"value":1400},{"type":31,"tagName":284,"properties":4779,"children":4780},{"style":319},[4781],{"type":27,"value":3165},{"type":31,"tagName":284,"properties":4783,"children":4784},{"style":846},[4785],{"type":27,"value":985},{"type":31,"tagName":284,"properties":4787,"children":4788},{"style":548},[4789],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":4791,"children":4792},{"style":319},[4793],{"type":27,"value":3178},{"type":31,"tagName":284,"properties":4795,"children":4796},{"style":846},[4797],{"type":27,"value":1226},{"type":31,"tagName":284,"properties":4799,"children":4800},{"style":548},[4801],{"type":27,"value":854},{"type":31,"tagName":284,"properties":4803,"children":4804},{"style":319},[4805],{"type":27,"value":3178},{"type":31,"tagName":284,"properties":4807,"children":4808},{"style":846},[4809],{"type":27,"value":2075},{"type":31,"tagName":284,"properties":4811,"children":4812},{"style":548},[4813],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":4815,"children":4816},{"style":319},[4817],{"type":27,"value":3980},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4820,"children":4821},{"class":286},[4822,4826,4830,4834,4839,4844,4848,4852,4856],{"type":31,"tagName":284,"properties":4823,"children":4824},{"style":846},[4825],{"type":27,"value":3697},{"type":31,"tagName":284,"properties":4827,"children":4828},{"style":319},[4829],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":4831,"children":4832},{"style":313},[4833],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":4835,"children":4836},{"style":319},[4837],{"type":27,"value":4838},"(touched[s]) ",{"type":31,"tagName":284,"properties":4840,"children":4841},{"style":846},[4842],{"type":27,"value":4843},"==",{"type":31,"tagName":284,"properties":4845,"children":4846},{"style":548},[4847],{"type":27,"value":2056},{"type":31,"tagName":284,"properties":4849,"children":4850},{"style":319},[4851],{"type":27,"value":4180},{"type":31,"tagName":284,"properties":4853,"children":4854},{"style":846},[4855],{"type":27,"value":4262},{"type":31,"tagName":284,"properties":4857,"children":4858},{"style":319},[4859],{"type":27,"value":2503},{"type":27,"value":28},{"type":31,"tagName":284,"properties":4862,"children":4863},{"class":286},[4864,4868,4873,4877,4881,4885,4889,4893,4897],{"type":31,"tagName":284,"properties":4865,"children":4866},{"style":846},[4867],{"type":27,"value":4031},{"type":31,"tagName":284,"properties":4869,"children":4870},{"style":548},[4871],{"type":27,"value":4872}," id",{"type":31,"tagName":284,"properties":4874,"children":4875},{"style":846},[4876],{"type":27,"value":859},{"type":31,"tagName":284,"properties":4878,"children":4879},{"style":319},[4880],{"type":27,"value":3165},{"type":31,"tagName":284,"properties":4882,"children":4883},{"style":846},[4884],{"type":27,"value":4141},{"type":31,"tagName":284,"properties":4886,"children":4887},{"style":548},[4888],{"type":27,"value":887},{"type":31,"tagName":284,"properties":4890,"children":4891},{"style":846},[4892],{"type":27,"value":4151},{"type":31,"tagName":284,"properties":4894,"children":4895},{"style":313},[4896],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":4898,"children":4899},{"style":319},[4900],{"type":27,"value":4901},"(slot[s]);",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4904,"children":4905},{"class":286},[4906,4910,4915,4919],{"type":31,"tagName":284,"properties":4907,"children":4908},{"style":846},[4909],{"type":27,"value":4031},{"type":31,"tagName":284,"properties":4911,"children":4912},{"style":548},[4913],{"type":27,"value":4914}," box",{"type":31,"tagName":284,"properties":4916,"children":4917},{"style":846},[4918],{"type":27,"value":859},{"type":31,"tagName":284,"properties":4920,"children":4921},{"style":319},[4922],{"type":27,"value":4923}," boxes[id];",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4926,"children":4927},{"class":286},[4928,4933,4937,4941,4945,4950,4954,4959,4963,4968,4972],{"type":31,"tagName":284,"properties":4929,"children":4930},{"style":319},[4931],{"type":27,"value":4932},"    box.",{"type":31,"tagName":284,"properties":4934,"children":4935},{"style":313},[4936],{"type":27,"value":3760},{"type":31,"tagName":284,"properties":4938,"children":4939},{"style":319},[4940],{"type":27,"value":322},{"type":31,"tagName":284,"properties":4942,"children":4943},{"style":313},[4944],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":4946,"children":4947},{"style":319},[4948],{"type":27,"value":4949},"(startT[s]), ",{"type":31,"tagName":284,"properties":4951,"children":4952},{"style":313},[4953],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":4955,"children":4956},{"style":319},[4957],{"type":27,"value":4958},"(hiP[s]), ",{"type":31,"tagName":284,"properties":4960,"children":4961},{"style":313},[4962],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":4964,"children":4965},{"style":319},[4966],{"type":27,"value":4967},"(endT[s]), ",{"type":31,"tagName":284,"properties":4969,"children":4970},{"style":313},[4971],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":4973,"children":4974},{"style":319},[4975],{"type":27,"value":4976},"(loP[s]));",{"type":27,"value":28},{"type":31,"tagName":284,"properties":4979,"children":4980},{"class":286},[4981,4985,4989,4993,4998,5002,5006,5011,5015,5020,5025,5029,5034,5038,5042,5046,5051,5055,5060,5064],{"type":31,"tagName":284,"properties":4982,"children":4983},{"style":846},[4984],{"type":27,"value":3697},{"type":31,"tagName":284,"properties":4986,"children":4987},{"style":319},[4988],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":4990,"children":4991},{"style":313},[4992],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":4994,"children":4995},{"style":319},[4996],{"type":27,"value":4997},"(fresh[s]) ",{"type":31,"tagName":284,"properties":4999,"children":5000},{"style":846},[5001],{"type":27,"value":4843},{"type":31,"tagName":284,"properties":5003,"children":5004},{"style":548},[5005],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":5007,"children":5008},{"style":319},[5009],{"type":27,"value":5010},") box.",{"type":31,"tagName":284,"properties":5012,"children":5013},{"style":313},[5014],{"type":27,"value":3832},{"type":31,"tagName":284,"properties":5016,"children":5017},{"style":319},[5018],{"type":27,"value":5019},"(inks[s]).",{"type":31,"tagName":284,"properties":5021,"children":5022},{"style":313},[5023],{"type":27,"value":5024},"fill",{"type":31,"tagName":284,"properties":5026,"children":5027},{"style":319},[5028],{"type":27,"value":5019},{"type":31,"tagName":284,"properties":5030,"children":5031},{"style":313},[5032],{"type":27,"value":5033},"opacity",{"type":31,"tagName":284,"properties":5035,"children":5036},{"style":319},[5037],{"type":27,"value":322},{"type":31,"tagName":284,"properties":5039,"children":5040},{"style":548},[5041],{"type":27,"value":775},{"type":31,"tagName":284,"properties":5043,"children":5044},{"style":319},[5045],{"type":27,"value":3782},{"type":31,"tagName":284,"properties":5047,"children":5048},{"style":313},[5049],{"type":27,"value":5050},"border",{"type":31,"tagName":284,"properties":5052,"children":5053},{"style":319},[5054],{"type":27,"value":322},{"type":31,"tagName":284,"properties":5056,"children":5057},{"style":548},[5058],{"type":27,"value":5059},"1.0",{"type":31,"tagName":284,"properties":5061,"children":5062},{"style":319},[5063],{"type":27,"value":333},{"type":31,"tagName":284,"properties":5065,"children":5066},{"style":290},[5067],{"type":27,"value":5068},"// the session's colour, set when the box is (re)opened",{"type":27,"value":28},{"type":31,"tagName":284,"properties":5071,"children":5072},{"class":286},[5073,5077,5082,5086,5090,5094,5098,5102],{"type":31,"tagName":284,"properties":5074,"children":5075},{"style":846},[5076],{"type":27,"value":4031},{"type":31,"tagName":284,"properties":5078,"children":5079},{"style":548},[5080],{"type":27,"value":5081}," bottom",{"type":31,"tagName":284,"properties":5083,"children":5084},{"style":846},[5085],{"type":27,"value":859},{"type":31,"tagName":284,"properties":5087,"children":5088},{"style":319},[5089],{"type":27,"value":3165},{"type":31,"tagName":284,"properties":5091,"children":5092},{"style":846},[5093],{"type":27,"value":4843},{"type":31,"tagName":284,"properties":5095,"children":5096},{"style":548},[5097],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":5099,"children":5100},{"style":319},[5101],{"type":27,"value":869},{"type":31,"tagName":284,"properties":5103,"children":5104},{"style":290},[5105],{"type":27,"value":5106},"// the tag sits inside its box's left edge, clear of the chart's High and Low labels: London's on the bottom, Asia's and New York's under the top, so overlapping sessions never share an edge",{"type":27,"value":28},{"type":31,"tagName":284,"properties":5109,"children":5110},{"class":286},[5111,5115,5120,5124,5128,5132,5136,5140,5144,5149,5154,5158,5162,5167,5171,5175,5180,5184,5188],{"type":31,"tagName":284,"properties":5112,"children":5113},{"style":846},[5114],{"type":27,"value":3697},{"type":31,"tagName":284,"properties":5116,"children":5117},{"style":319},[5118],{"type":27,"value":5119}," (showTags ",{"type":31,"tagName":284,"properties":5121,"children":5122},{"style":846},[5123],{"type":27,"value":3393},{"type":31,"tagName":284,"properties":5125,"children":5126},{"style":319},[5127],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":5129,"children":5130},{"style":313},[5131],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":5133,"children":5134},{"style":319},[5135],{"type":27,"value":4997},{"type":31,"tagName":284,"properties":5137,"children":5138},{"style":846},[5139],{"type":27,"value":4843},{"type":31,"tagName":284,"properties":5141,"children":5142},{"style":548},[5143],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":5145,"children":5146},{"style":846},[5147],{"type":27,"value":5148}," ||",{"type":31,"tagName":284,"properties":5150,"children":5151},{"style":319},[5152],{"type":27,"value":5153}," (bottom ",{"type":31,"tagName":284,"properties":5155,"children":5156},{"style":846},[5157],{"type":27,"value":4345},{"type":31,"tagName":284,"properties":5159,"children":5160},{"style":313},[5161],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":5163,"children":5164},{"style":319},[5165],{"type":27,"value":5166},"(sank[s]) ",{"type":31,"tagName":284,"properties":5168,"children":5169},{"style":846},[5170],{"type":27,"value":970},{"type":31,"tagName":284,"properties":5172,"children":5173},{"style":313},[5174],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":5176,"children":5177},{"style":319},[5178],{"type":27,"value":5179},"(grew[s])) ",{"type":31,"tagName":284,"properties":5181,"children":5182},{"style":846},[5183],{"type":27,"value":4843},{"type":31,"tagName":284,"properties":5185,"children":5186},{"style":548},[5187],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":5189,"children":5190},{"style":319},[5191],{"type":27,"value":5192},")) {",{"type":27,"value":28},{"type":31,"tagName":284,"properties":5195,"children":5196},{"class":286},[5197,5201,5205,5209,5213,5218],{"type":31,"tagName":284,"properties":5198,"children":5199},{"style":313},[5200],{"type":27,"value":3724},{"type":31,"tagName":284,"properties":5202,"children":5203},{"style":319},[5204],{"type":27,"value":3308},{"type":31,"tagName":284,"properties":5206,"children":5207},{"style":313},[5208],{"type":27,"value":3733},{"type":31,"tagName":284,"properties":5210,"children":5211},{"style":319},[5212],{"type":27,"value":322},{"type":31,"tagName":284,"properties":5214,"children":5215},{"style":548},[5216],{"type":27,"value":5217},"NAMES",{"type":31,"tagName":284,"properties":5219,"children":5220},{"style":319},[5221],{"type":27,"value":5222},"[s]);",{"type":27,"value":28},{"type":31,"tagName":284,"properties":5225,"children":5226},{"class":286},[5227,5232,5237,5241],{"type":31,"tagName":284,"properties":5228,"children":5229},{"style":846},[5230],{"type":27,"value":5231},"      const",{"type":31,"tagName":284,"properties":5233,"children":5234},{"style":548},[5235],{"type":27,"value":5236}," tag",{"type":31,"tagName":284,"properties":5238,"children":5239},{"style":846},[5240],{"type":27,"value":859},{"type":31,"tagName":284,"properties":5242,"children":5243},{"style":319},[5244],{"type":27,"value":5245}," tags[id];",{"type":27,"value":28},{"type":31,"tagName":284,"properties":5248,"children":5249},{"class":286},[5250,5255,5259,5263,5267,5272,5276,5280,5285,5289,5293,5298,5302],{"type":31,"tagName":284,"properties":5251,"children":5252},{"style":319},[5253],{"type":27,"value":5254},"      tag.",{"type":31,"tagName":284,"properties":5256,"children":5257},{"style":313},[5258],{"type":27,"value":3760},{"type":31,"tagName":284,"properties":5260,"children":5261},{"style":319},[5262],{"type":27,"value":322},{"type":31,"tagName":284,"properties":5264,"children":5265},{"style":313},[5266],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":5268,"children":5269},{"style":319},[5270],{"type":27,"value":5271},"(startT[s]), bottom ",{"type":31,"tagName":284,"properties":5273,"children":5274},{"style":846},[5275],{"type":27,"value":4345},{"type":31,"tagName":284,"properties":5277,"children":5278},{"style":313},[5279],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":5281,"children":5282},{"style":319},[5283],{"type":27,"value":5284},"(loP[s]) ",{"type":31,"tagName":284,"properties":5286,"children":5287},{"style":846},[5288],{"type":27,"value":970},{"type":31,"tagName":284,"properties":5290,"children":5291},{"style":313},[5292],{"type":27,"value":4400},{"type":31,"tagName":284,"properties":5294,"children":5295},{"style":319},[5296],{"type":27,"value":5297},"(hiP[s])).",{"type":31,"tagName":284,"properties":5299,"children":5300},{"style":313},[5301],{"type":27,"value":27},{"type":31,"tagName":284,"properties":5303,"children":5304},{"style":319},[5305],{"type":27,"value":5306},"(str_tag_sb);",{"type":27,"value":28},{"type":31,"tagName":284,"properties":5309,"children":5310},{"class":286},[5311,5315,5319,5323,5327,5331,5335,5340,5344,5348,5353,5357,5361,5365,5369,5373,5378,5382,5387,5392,5396,5401,5405,5410],{"type":31,"tagName":284,"properties":5312,"children":5313},{"style":846},[5314],{"type":27,"value":4606},{"type":31,"tagName":284,"properties":5316,"children":5317},{"style":319},[5318],{"type":27,"value":2038},{"type":31,"tagName":284,"properties":5320,"children":5321},{"style":313},[5322],{"type":27,"value":4060},{"type":31,"tagName":284,"properties":5324,"children":5325},{"style":319},[5326],{"type":27,"value":4997},{"type":31,"tagName":284,"properties":5328,"children":5329},{"style":846},[5330],{"type":27,"value":4843},{"type":31,"tagName":284,"properties":5332,"children":5333},{"style":548},[5334],{"type":27,"value":2080},{"type":31,"tagName":284,"properties":5336,"children":5337},{"style":319},[5338],{"type":27,"value":5339},") tag.",{"type":31,"tagName":284,"properties":5341,"children":5342},{"style":313},[5343],{"type":27,"value":3832},{"type":31,"tagName":284,"properties":5345,"children":5346},{"style":319},[5347],{"type":27,"value":5019},{"type":31,"tagName":284,"properties":5349,"children":5350},{"style":313},[5351],{"type":27,"value":5352},"size",{"type":31,"tagName":284,"properties":5354,"children":5355},{"style":319},[5356],{"type":27,"value":322},{"type":31,"tagName":284,"properties":5358,"children":5359},{"style":548},[5360],{"type":27,"value":816},{"type":31,"tagName":284,"properties":5362,"children":5363},{"style":319},[5364],{"type":27,"value":3782},{"type":31,"tagName":284,"properties":5366,"children":5367},{"style":313},[5368],{"type":27,"value":3814},{"type":31,"tagName":284,"properties":5370,"children":5371},{"style":319},[5372],{"type":27,"value":322},{"type":31,"tagName":284,"properties":5374,"children":5375},{"style":548},[5376],{"type":27,"value":5377},"ALIGN_LEFT",{"type":31,"tagName":284,"properties":5379,"children":5380},{"style":319},[5381],{"type":27,"value":3782},{"type":31,"tagName":284,"properties":5383,"children":5384},{"style":313},[5385],{"type":27,"value":5386},"valign",{"type":31,"tagName":284,"properties":5388,"children":5389},{"style":319},[5390],{"type":27,"value":5391},"(bottom ",{"type":31,"tagName":284,"properties":5393,"children":5394},{"style":846},[5395],{"type":27,"value":4345},{"type":31,"tagName":284,"properties":5397,"children":5398},{"style":548},[5399],{"type":27,"value":5400}," VALIGN_BOTTOM",{"type":31,"tagName":284,"properties":5402,"children":5403},{"style":846},[5404],{"type":27,"value":4362},{"type":31,"tagName":284,"properties":5406,"children":5407},{"style":548},[5408],{"type":27,"value":5409}," VALIGN_TOP",{"type":31,"tagName":284,"properties":5411,"children":5412},{"style":319},[5413],{"type":27,"value":519},{"type":27,"value":28},{"type":31,"tagName":284,"properties":5416,"children":5417},{"class":286},[5418],{"type":31,"tagName":284,"properties":5419,"children":5420},{"style":319},[5421],{"type":27,"value":3875},{"type":27,"value":28},{"type":31,"tagName":284,"properties":5424,"children":5425},{"class":286},[5426],{"type":31,"tagName":284,"properties":5427,"children":5428},{"style":319},[5429],{"type":27,"value":3897},{"type":27,"value":28},{"type":31,"tagName":284,"properties":5432,"children":5433},{"class":286},[5434],{"type":31,"tagName":284,"properties":5435,"children":5436},{"style":319},[5437],{"type":27,"value":3224},{"type":27,"value":28},{"type":31,"tagName":251,"properties":5440,"children":5441,"position":5451},{},[5442],{"type":27,"value":5443,"position":5444},"How it works",{"start":5445,"end":5448},{"line":5446,"column":259,"offset":5447},125,9595,{"line":5446,"column":5449,"offset":5450},16,9607,{"start":5452,"end":5454},{"line":5446,"column":21,"offset":5453},9592,{"line":5446,"column":5449,"offset":5450},{"type":27,"value":28},{"type":31,"tagName":32,"properties":5457,"children":5458,"position":5602},{},[5459,5477,5484,5496,5503,5516,5522,5535,5542,5555,5562,5575,5582,5595],{"type":31,"tagName":198,"properties":5460,"children":5461,"position":5471},{},[5462],{"type":27,"value":5463,"position":5464},"Sessions are cut from the clock.",{"start":5465,"end":5468},{"line":24,"column":5466,"offset":5467},3,9611,{"line":24,"column":5469,"offset":5470},35,9643,{"start":5472,"end":5474},{"line":24,"column":21,"offset":5473},9609,{"line":24,"column":5475,"offset":5476},37,9645,{"type":27,"value":5478,"position":5479}," ",{"start":5480,"end":5481},{"line":24,"column":5475,"offset":5476},{"line":24,"column":5482,"offset":5483},38,9646,{"type":31,"tagName":107,"properties":5485,"children":5486,"position":5493},{},[5487],{"type":27,"value":111,"position":5488},{"start":5489,"end":5490},{"line":24,"column":5482,"offset":5483},{"line":24,"column":5491,"offset":5492},50,9658,{"start":5494,"end":5495},{"line":24,"column":5482,"offset":5483},{"line":24,"column":5491,"offset":5492},{"type":27,"value":5497,"position":5498}," gives each bar's open in epoch seconds, UTC. Each session is a ",{"start":5499,"end":5500},{"line":24,"column":5491,"offset":5492},{"line":24,"column":5501,"offset":5502},114,9722,{"type":31,"tagName":107,"properties":5504,"children":5505,"position":5513},{},[5506],{"type":27,"value":5507,"position":5508},"param.session",{"start":5509,"end":5510},{"line":24,"column":5501,"offset":5502},{"line":24,"column":5511,"offset":5512},129,9737,{"start":5514,"end":5515},{"line":24,"column":5501,"offset":5502},{"line":24,"column":5511,"offset":5512},{"type":27,"value":5517,"position":5518}," (Asia 00:00 to 08:00, London 07:00 to 16:00, New York 13:30 to 20:00, all in UTC by default), read in ",{"start":5519,"end":5520},{"line":24,"column":5511,"offset":5512},{"line":24,"column":60,"offset":5521},9840,{"type":31,"tagName":107,"properties":5523,"children":5524,"position":5532},{},[5525],{"type":27,"value":5526,"position":5527},"onStart()",{"start":5528,"end":5529},{"line":24,"column":60,"offset":5521},{"line":24,"column":5530,"offset":5531},243,9851,{"start":5533,"end":5534},{"line":24,"column":60,"offset":5521},{"line":24,"column":5530,"offset":5531},{"type":27,"value":5536,"position":5537}," as a start, an end and a zone; per bar, a bar belongs to a session when its span reaches into the window in that zone, daylight saving included: ",{"start":5538,"end":5539},{"line":24,"column":5530,"offset":5531},{"line":24,"column":5540,"offset":5541},389,9997,{"type":31,"tagName":107,"properties":5543,"children":5544,"position":5552},{},[5545],{"type":27,"value":5546,"position":5547},"inSession(...)",{"start":5548,"end":5549},{"line":24,"column":5540,"offset":5541},{"line":24,"column":5550,"offset":5551},405,10013,{"start":5553,"end":5554},{"line":24,"column":5540,"offset":5541},{"line":24,"column":5550,"offset":5551},{"type":27,"value":5556,"position":5557}," says whether the bar's open falls inside the window, and a ",{"start":5558,"end":5559},{"line":24,"column":5550,"offset":5551},{"line":24,"column":5560,"offset":5561},465,10073,{"type":31,"tagName":107,"properties":5563,"children":5564,"position":5572},{},[5565],{"type":27,"value":5566,"position":5567},"Clock",{"start":5568,"end":5569},{"line":24,"column":5560,"offset":5561},{"line":24,"column":5570,"offset":5571},472,10080,{"start":5573,"end":5574},{"line":24,"column":5560,"offset":5561},{"line":24,"column":5570,"offset":5571},{"type":27,"value":5576,"position":5577}," in that zone says whether the window opens before the bar closes, so on a 1h chart New York's 13:30 open puts the 13:00 bar in its box. The same clock keys each day's instance, read at the window's open. The bar's high and low grow the open session's box; a box is created on the session's first bar and moved with ",{"start":5578,"end":5579},{"line":24,"column":5570,"offset":5571},{"line":24,"column":5580,"offset":5581},788,10396,{"type":31,"tagName":107,"properties":5583,"children":5584,"position":5592},{},[5585],{"type":27,"value":5586,"position":5587},"set()",{"start":5588,"end":5589},{"line":24,"column":5580,"offset":5581},{"line":24,"column":5590,"offset":5591},795,10403,{"start":5593,"end":5594},{"line":24,"column":5580,"offset":5581},{"line":24,"column":5590,"offset":5591},{"type":27,"value":5596,"position":5597}," on every bar after that, so the live session's box grows as the bars arrive.",{"start":5598,"end":5599},{"line":24,"column":5590,"offset":5591},{"line":24,"column":5600,"offset":5601},872,10480,{"start":5603,"end":5604},{"line":24,"column":21,"offset":5473},{"line":24,"column":5600,"offset":5601},{"type":27,"value":28},{"type":31,"tagName":32,"properties":5607,"children":5608,"position":5671},{},[5609,5626,5632,5645,5652,5664],{"type":31,"tagName":198,"properties":5610,"children":5611,"position":5620},{},[5612],{"type":27,"value":5613,"position":5614},"A ring of boxes, reused.",{"start":5615,"end":5617},{"line":5511,"column":5466,"offset":5616},10484,{"line":5511,"column":5618,"offset":5619},27,10508,{"start":5621,"end":5623},{"line":5511,"column":21,"offset":5622},10482,{"line":5511,"column":5624,"offset":5625},29,10510,{"type":27,"value":5478,"position":5627},{"start":5628,"end":5629},{"line":5511,"column":5624,"offset":5625},{"line":5511,"column":5630,"offset":5631},30,10511,{"type":31,"tagName":107,"properties":5633,"children":5634,"position":5642},{},[5635],{"type":27,"value":5636,"position":5637},"days_kept",{"start":5638,"end":5639},{"line":5511,"column":5630,"offset":5631},{"line":5511,"column":5640,"offset":5641},41,10522,{"start":5643,"end":5644},{"line":5511,"column":5630,"offset":5631},{"line":5511,"column":5640,"offset":5641},{"type":27,"value":5646,"position":5647}," (5, up to 10) times three sessions is the number of box handles in play; each day's session takes the slot of the same session ",{"start":5648,"end":5649},{"line":5511,"column":5640,"offset":5641},{"line":5511,"column":5650,"offset":5651},169,10650,{"type":31,"tagName":107,"properties":5653,"children":5654,"position":5661},{},[5655],{"type":27,"value":5636,"position":5656},{"start":5657,"end":5658},{"line":5511,"column":5650,"offset":5651},{"line":5511,"column":5659,"offset":5660},180,10661,{"start":5662,"end":5663},{"line":5511,"column":5650,"offset":5651},{"line":5511,"column":5659,"offset":5660},{"type":27,"value":5665,"position":5666}," days earlier, so the oldest box is reused rather than a new one made. The handle objects are made once, at module start.",{"start":5667,"end":5668},{"line":5511,"column":5659,"offset":5660},{"line":5511,"column":5669,"offset":5670},301,10782,{"start":5672,"end":5673},{"line":5511,"column":21,"offset":5622},{"line":5511,"column":5669,"offset":5670},{"type":27,"value":28},{"type":31,"tagName":32,"properties":5676,"children":5677,"position":5740},{},[5678,5695,5702,5714,5720,5733],{"type":31,"tagName":198,"properties":5679,"children":5680,"position":5689},{},[5681],{"type":27,"value":5682,"position":5683},"Tags sit inside their box.",{"start":5684,"end":5687},{"line":5685,"column":5466,"offset":5686},131,10786,{"line":5685,"column":5624,"offset":5688},10812,{"start":5690,"end":5692},{"line":5685,"column":21,"offset":5691},10784,{"line":5685,"column":5693,"offset":5694},31,10814,{"type":27,"value":5696,"position":5697}," Each tag hangs inside its box's left edge, so the chart's own High and Low labels, drawn outside the candles' extremes, never sit on one: Asia's and New York's under the top edge (",{"start":5698,"end":5699},{"line":5685,"column":5693,"offset":5694},{"line":5685,"column":5700,"offset":5701},212,10995,{"type":31,"tagName":107,"properties":5703,"children":5704,"position":5711},{},[5705],{"type":27,"value":5706,"position":5707},"valign(VALIGN_TOP)",{"start":5708,"end":5709},{"line":5685,"column":5700,"offset":5701},{"line":5685,"column":60,"offset":5710},11015,{"start":5712,"end":5713},{"line":5685,"column":5700,"offset":5701},{"line":5685,"column":60,"offset":5710},{"type":27,"value":5715,"position":5716},"), London's on the bottom edge (",{"start":5717,"end":5718},{"line":5685,"column":60,"offset":5710},{"line":5685,"column":125,"offset":5719},11047,{"type":31,"tagName":107,"properties":5721,"children":5722,"position":5730},{},[5723],{"type":27,"value":5724,"position":5725},"valign(VALIGN_BOTTOM)",{"start":5726,"end":5727},{"line":5685,"column":125,"offset":5719},{"line":5685,"column":5728,"offset":5729},287,11070,{"start":5731,"end":5732},{"line":5685,"column":125,"offset":5719},{"line":5685,"column":5728,"offset":5729},{"type":27,"value":5734,"position":5735},"), so the two sessions that overlap London never put their tags on the same edge. A tag moves when its edge does: up with a new session high, down with a new session low.",{"start":5736,"end":5737},{"line":5685,"column":5728,"offset":5729},{"line":5685,"column":5738,"offset":5739},457,11240,{"start":5741,"end":5742},{"line":5685,"column":21,"offset":5691},{"line":5685,"column":5738,"offset":5739},{"type":27,"value":28},{"type":31,"tagName":32,"properties":5745,"children":5746,"position":5868},{},[5747,5765,5771,5784,5791,5804,5810,5822,5828,5841,5848,5861],{"type":31,"tagName":198,"properties":5748,"children":5749,"position":5759},{},[5750],{"type":27,"value":5751,"position":5752},"One slot, many tags.",{"start":5753,"end":5756},{"line":5754,"column":5466,"offset":5755},133,11244,{"line":5754,"column":5757,"offset":5758},23,11264,{"start":5760,"end":5762},{"line":5754,"column":21,"offset":5761},11242,{"line":5754,"column":5763,"offset":5764},25,11266,{"type":27,"value":5478,"position":5766},{"start":5767,"end":5768},{"line":5754,"column":5763,"offset":5764},{"line":5754,"column":5769,"offset":5770},26,11267,{"type":31,"tagName":107,"properties":5772,"children":5773,"position":5781},{},[5774],{"type":27,"value":5775,"position":5776},"string(\"tag\", { max_bytes: 48 })",{"start":5777,"end":5778},{"line":5754,"column":5769,"offset":5770},{"line":5754,"column":5779,"offset":5780},60,11301,{"start":5782,"end":5783},{"line":5754,"column":5769,"offset":5770},{"line":5754,"column":5779,"offset":5780},{"type":27,"value":5785,"position":5786}," is the one bounded slot; each tag is built with the allocation-free builder (",{"start":5787,"end":5788},{"line":5754,"column":5779,"offset":5780},{"line":5754,"column":5789,"offset":5790},138,11379,{"type":31,"tagName":107,"properties":5792,"children":5793,"position":5801},{},[5794],{"type":27,"value":5795,"position":5796},"sb_clear",{"start":5797,"end":5798},{"line":5754,"column":5789,"offset":5790},{"line":5754,"column":5799,"offset":5800},148,11389,{"start":5802,"end":5803},{"line":5754,"column":5789,"offset":5790},{"line":5754,"column":5799,"offset":5800},{"type":27,"value":146,"position":5805},{"start":5806,"end":5807},{"line":5754,"column":5799,"offset":5800},{"line":5754,"column":5808,"offset":5809},150,11391,{"type":31,"tagName":107,"properties":5811,"children":5812,"position":5819},{},[5813],{"type":27,"value":3733,"position":5814},{"start":5815,"end":5816},{"line":5754,"column":5808,"offset":5809},{"line":5754,"column":5817,"offset":5818},159,11400,{"start":5820,"end":5821},{"line":5754,"column":5808,"offset":5809},{"line":5754,"column":5817,"offset":5818},{"type":27,"value":146,"position":5823},{"start":5824,"end":5825},{"line":5754,"column":5817,"offset":5818},{"line":5754,"column":5826,"offset":5827},161,11402,{"type":31,"tagName":107,"properties":5829,"children":5830,"position":5838},{},[5831],{"type":27,"value":5832,"position":5833},"str_tag_sb",{"start":5834,"end":5835},{"line":5754,"column":5826,"offset":5827},{"line":5754,"column":5836,"offset":5837},173,11414,{"start":5839,"end":5840},{"line":5754,"column":5826,"offset":5827},{"line":5754,"column":5836,"offset":5837},{"type":27,"value":5842,"position":5843},") and sent to its label handle in turn, so the three session names never allocate a string on the live bar. ",{"start":5844,"end":5845},{"line":5754,"column":5836,"offset":5837},{"line":5754,"column":5846,"offset":5847},281,11522,{"type":31,"tagName":107,"properties":5849,"children":5850,"position":5858},{},[5851],{"type":27,"value":5852,"position":5853},"show_tags",{"start":5854,"end":5855},{"line":5754,"column":5846,"offset":5847},{"line":5754,"column":5856,"offset":5857},292,11533,{"start":5859,"end":5860},{"line":5754,"column":5846,"offset":5847},{"line":5754,"column":5856,"offset":5857},{"type":27,"value":5862,"position":5863}," off leaves the boxes bare.",{"start":5864,"end":5865},{"line":5754,"column":5856,"offset":5857},{"line":5754,"column":5866,"offset":5867},319,11560,{"start":5869,"end":5870},{"line":5754,"column":21,"offset":5761},{"line":5754,"column":5866,"offset":5867},{"type":27,"value":28},{"type":31,"tagName":32,"properties":5873,"children":5874,"position":5917},{},[5875,5892,5898,5911],{"type":31,"tagName":198,"properties":5876,"children":5877,"position":5887},{},[5878],{"type":27,"value":5879,"position":5880},"The count is data.",{"start":5881,"end":5884},{"line":5882,"column":5466,"offset":5883},135,11564,{"line":5882,"column":5885,"offset":5886},21,11582,{"start":5888,"end":5890},{"line":5882,"column":21,"offset":5889},11562,{"line":5882,"column":5757,"offset":5891},11584,{"type":27,"value":5478,"position":5893},{"start":5894,"end":5895},{"line":5882,"column":5757,"offset":5891},{"line":5882,"column":5896,"offset":5897},24,11585,{"type":31,"tagName":107,"properties":5899,"children":5900,"position":5908},{},[5901],{"type":27,"value":5902,"position":5903},"sessions_open",{"start":5904,"end":5905},{"line":5882,"column":5896,"offset":5897},{"line":5882,"column":5906,"offset":5907},39,11600,{"start":5909,"end":5910},{"line":5882,"column":5896,"offset":5897},{"line":5882,"column":5906,"offset":5907},{"type":27,"value":5912,"position":5913}," is a data-only output: 0, 1, or 2 where two sessions overlap. It draws nothing; the editor's Console prompt reads it after a Run.",{"start":5914,"end":5915},{"line":5882,"column":5906,"offset":5907},{"line":5882,"column":5650,"offset":5916},11730,{"start":5918,"end":5919},{"line":5882,"column":21,"offset":5889},{"line":5882,"column":5650,"offset":5916},{"type":27,"value":28},{"type":31,"tagName":251,"properties":5922,"children":5923,"position":5933},{},[5924],{"type":27,"value":5925,"position":5926},"Where it runs",{"start":5927,"end":5930},{"line":5928,"column":259,"offset":5929},137,11735,{"line":5928,"column":5931,"offset":5932},17,11748,{"start":5934,"end":5936},{"line":5928,"column":21,"offset":5935},11732,{"line":5928,"column":5931,"offset":5932},{"type":27,"value":28},{"type":31,"tagName":32,"properties":5939,"children":5940,"position":5950},{},[5941],{"type":27,"value":5942,"position":5943},"Every market with candles, on charts finer than 4h. Sessions are cut in the zone each one is set to, UTC by default.",{"start":5944,"end":5947},{"line":5945,"column":21,"offset":5946},139,11750,{"line":5945,"column":5948,"offset":5949},117,11866,{"start":5951,"end":5952},{"line":5945,"column":21,"offset":5946},{"line":5945,"column":5948,"offset":5949},{"type":27,"value":28},{"type":31,"tagName":251,"properties":5955,"children":5956,"position":5965},{},[5957],{"type":27,"value":5958,"position":5959},"When data is missing",{"start":5960,"end":5963},{"line":5961,"column":259,"offset":5962},141,11871,{"line":5961,"column":5896,"offset":5964},11891,{"start":5966,"end":5968},{"line":5961,"column":21,"offset":5967},11868,{"line":5961,"column":5896,"offset":5964},{"type":27,"value":28},{"type":31,"tagName":32,"properties":5971,"children":5972,"position":5981},{},[5973],{"type":27,"value":5974,"position":5975},"On a 4h or coarser chart a session is one or two bars, so the example draws one slate line of words at the top-right (\"Session Map needs a chart finer than 4h\") and nothing else. At 1h a session is eight or nine bars wide, and a box starts on the bar its session opens in (New York's at 13:00 for the 13:30 open).",{"start":5976,"end":5978},{"line":44,"column":21,"offset":5977},11893,{"line":44,"column":5979,"offset":5980},314,12206,{"start":5982,"end":5983},{"line":44,"column":21,"offset":5977},{"line":44,"column":5979,"offset":5980},{"type":27,"value":28},{"type":31,"tagName":251,"properties":5986,"children":5987,"position":5996},{},[5988],{"type":27,"value":5989,"position":5990},"Customize it",{"start":5991,"end":5994},{"line":5992,"column":259,"offset":5993},145,12211,{"line":5992,"column":5449,"offset":5995},12223,{"start":5997,"end":5999},{"line":5992,"column":21,"offset":5998},12208,{"line":5992,"column":5449,"offset":5995},{"type":27,"value":28},{"type":31,"tagName":6002,"properties":6003,"children":6004,"position":6155},"ul",{},[6005,6006,6057,6058,6105,6106,6154],{"type":27,"value":28},{"type":31,"tagName":6007,"properties":6008,"children":6009,"position":6053},"li",{},[6010,6027,6034,6047],{"type":31,"tagName":198,"properties":6011,"children":6012,"position":6022},{},[6013],{"type":27,"value":6014,"position":6015},"Other sessions.",{"start":6016,"end":6019},{"line":6017,"column":43,"offset":6018},147,12229,{"line":6017,"column":6020,"offset":6021},20,12244,{"start":6023,"end":6025},{"line":6017,"column":5466,"offset":6024},12227,{"line":6017,"column":262,"offset":6026},12246,{"type":27,"value":6028,"position":6029}," The three windows are settings, each with its own zone; a window that crosses midnight (",{"start":6030,"end":6031},{"line":6017,"column":262,"offset":6026},{"line":6017,"column":6032,"offset":6033},111,12335,{"type":31,"tagName":107,"properties":6035,"children":6036,"position":6044},{},[6037],{"type":27,"value":6038,"position":6039},"22:00-04:00",{"start":6040,"end":6041},{"line":6017,"column":6032,"offset":6033},{"line":6017,"column":6042,"offset":6043},124,12348,{"start":6045,"end":6046},{"line":6017,"column":6032,"offset":6033},{"line":6017,"column":6042,"offset":6043},{"type":27,"value":6048,"position":6049},") wraps on its own.",{"start":6050,"end":6051},{"line":6017,"column":6042,"offset":6043},{"line":6017,"column":44,"offset":6052},12367,{"start":6054,"end":6056},{"line":6017,"column":21,"offset":6055},12225,{"line":6017,"column":44,"offset":6052},{"type":27,"value":28},{"type":31,"tagName":6007,"properties":6059,"children":6060,"position":6101},{},[6061,6077,6083,6094],{"type":31,"tagName":198,"properties":6062,"children":6063,"position":6072},{},[6064],{"type":27,"value":6065,"position":6066},"More days.",{"start":6067,"end":6069},{"line":5799,"column":43,"offset":6068},12372,{"line":5799,"column":6070,"offset":6071},15,12382,{"start":6073,"end":6075},{"line":5799,"column":5466,"offset":6074},12370,{"line":5799,"column":5931,"offset":6076},12384,{"type":27,"value":5478,"position":6078},{"start":6079,"end":6080},{"line":5799,"column":5931,"offset":6076},{"line":5799,"column":6081,"offset":6082},18,12385,{"type":31,"tagName":107,"properties":6084,"children":6085,"position":6091},{},[6086],{"type":27,"value":5636,"position":6087},{"start":6088,"end":6089},{"line":5799,"column":6081,"offset":6082},{"line":5799,"column":5624,"offset":6090},12396,{"start":6092,"end":6093},{"line":5799,"column":6081,"offset":6082},{"line":5799,"column":5624,"offset":6090},{"type":27,"value":6095,"position":6096}," goes up to 10; past that, raise the ring's ceiling where the handles are made (each day is three box and three label ids).",{"start":6097,"end":6098},{"line":5799,"column":5624,"offset":6090},{"line":5799,"column":6099,"offset":6100},152,12519,{"start":6102,"end":6104},{"line":5799,"column":21,"offset":6103},12368,{"line":5799,"column":6099,"offset":6100},{"type":27,"value":28},{"type":31,"tagName":6007,"properties":6107,"children":6108,"position":6150},{},[6109,6126,6131,6144],{"type":31,"tagName":198,"properties":6110,"children":6111,"position":6121},{},[6112],{"type":27,"value":6113,"position":6114},"Quieter boxes.",{"start":6115,"end":6118},{"line":6116,"column":43,"offset":6117},149,12524,{"line":6116,"column":6119,"offset":6120},19,12538,{"start":6122,"end":6124},{"line":6116,"column":5466,"offset":6123},12522,{"line":6116,"column":5885,"offset":6125},12540,{"type":27,"value":5478,"position":6127},{"start":6128,"end":6129},{"line":6116,"column":5885,"offset":6125},{"line":6116,"column":262,"offset":6130},12541,{"type":31,"tagName":107,"properties":6132,"children":6133,"position":6141},{},[6134],{"type":27,"value":6135,"position":6136},"handles.box({ opacity: 0.08, borderWidth: 1 })",{"start":6137,"end":6138},{"line":6116,"column":262,"offset":6130},{"line":6116,"column":6139,"offset":6140},70,12589,{"start":6142,"end":6143},{"line":6116,"column":262,"offset":6130},{"line":6116,"column":6139,"offset":6140},{"type":27,"value":6145,"position":6146}," sets the fill and the border for every box; the per-session colours are set where each box is created.",{"start":6147,"end":6148},{"line":6116,"column":6139,"offset":6140},{"line":6116,"column":5836,"offset":6149},12692,{"start":6151,"end":6153},{"line":6116,"column":21,"offset":6152},12520,{"line":6116,"column":5836,"offset":6149},{"type":27,"value":28},{"start":6156,"end":6157},{"line":6017,"column":21,"offset":6055},{"line":6116,"column":5836,"offset":6149},{"type":27,"value":28},{"type":31,"tagName":251,"properties":6160,"children":6161,"position":6171},{},[6162],{"type":27,"value":6163,"position":6164},"Run it",{"start":6165,"end":6168},{"line":6166,"column":259,"offset":6167},151,12697,{"line":6166,"column":6169,"offset":6170},10,12703,{"start":6172,"end":6174},{"line":6166,"column":21,"offset":6173},12694,{"line":6166,"column":6169,"offset":6170},{"type":27,"value":28},{"type":31,"tagName":6177,"properties":6178,"children":6179,"position":6338},"ol",{},[6180,6181,6265,6266,6302,6303,6337],{"type":27,"value":28},{"type":31,"tagName":6007,"properties":6182,"children":6183,"position":6261},{},[6184,6193,6210,6217,6233,6240,6254],{"type":27,"value":6185,"position":6186},"In the editor's Explorer, press the ",{"start":6187,"end":6190},{"line":6188,"column":259,"offset":6189},153,12708,{"line":6188,"column":6191,"offset":6192},40,12744,{"type":31,"tagName":198,"properties":6194,"children":6195,"position":6205},{},[6196],{"type":27,"value":6197,"position":6198},"Templates",{"start":6199,"end":6202},{"line":6188,"column":6200,"offset":6201},42,12746,{"line":6188,"column":6203,"offset":6204},51,12755,{"start":6206,"end":6207},{"line":6188,"column":6191,"offset":6192},{"line":6188,"column":6208,"offset":6209},53,12757,{"type":27,"value":6211,"position":6212}," icon (\"Browse starter templates\") and pick ",{"start":6213,"end":6214},{"line":6188,"column":6208,"offset":6209},{"line":6188,"column":6215,"offset":6216},97,12801,{"type":31,"tagName":198,"properties":6218,"children":6219,"position":6228},{},[6220],{"type":27,"value":202,"position":6221},{"start":6222,"end":6225},{"line":6188,"column":6223,"offset":6224},99,12803,{"line":6188,"column":6226,"offset":6227},110,12814,{"start":6229,"end":6230},{"line":6188,"column":6215,"offset":6216},{"line":6188,"column":6231,"offset":6232},112,12816,{"type":27,"value":6234,"position":6235}," under ",{"start":6236,"end":6237},{"line":6188,"column":6231,"offset":6232},{"line":6188,"column":6238,"offset":6239},119,12823,{"type":31,"tagName":198,"properties":6241,"children":6242,"position":6250},{},[6243],{"type":27,"value":226,"position":6244},{"start":6245,"end":6248},{"line":6188,"column":6246,"offset":6247},121,12825,{"line":6188,"column":5511,"offset":6249},12833,{"start":6251,"end":6252},{"line":6188,"column":6238,"offset":6239},{"line":6188,"column":5685,"offset":6253},12835,{"type":27,"value":6255,"position":6256},".",{"start":6257,"end":6258},{"line":6188,"column":5685,"offset":6253},{"line":6188,"column":6259,"offset":6260},132,12836,{"start":6262,"end":6264},{"line":6188,"column":21,"offset":6263},12705,{"line":6188,"column":6259,"offset":6260},{"type":27,"value":28},{"type":31,"tagName":6007,"properties":6267,"children":6268,"position":6298},{},[6269,6277,6292],{"type":27,"value":6270,"position":6271},"Press ",{"start":6272,"end":6275},{"line":6273,"column":259,"offset":6274},154,12840,{"line":6273,"column":6169,"offset":6276},12846,{"type":31,"tagName":198,"properties":6278,"children":6279,"position":6288},{},[6280],{"type":27,"value":6281,"position":6282},"Run",{"start":6283,"end":6286},{"line":6273,"column":6284,"offset":6285},12,12848,{"line":6273,"column":6070,"offset":6287},12851,{"start":6289,"end":6290},{"line":6273,"column":6169,"offset":6276},{"line":6273,"column":5931,"offset":6291},12853,{"type":27,"value":6293,"position":6294}," on a chart finer than 4h, such as 15m: the boxes draw on the chart and the live session's box grows as bars arrive.",{"start":6295,"end":6296},{"line":6273,"column":5931,"offset":6291},{"line":6273,"column":5754,"offset":6297},12969,{"start":6299,"end":6301},{"line":6273,"column":21,"offset":6300},12837,{"line":6273,"column":5754,"offset":6297},{"type":27,"value":28},{"type":31,"tagName":6007,"properties":6304,"children":6305,"position":6333},{},[6306,6314,6327],{"type":27,"value":6307,"position":6308},"At the editor's Console prompt, type ",{"start":6309,"end":6312},{"line":6310,"column":259,"offset":6311},155,12973,{"line":6310,"column":5640,"offset":6313},13010,{"type":31,"tagName":107,"properties":6315,"children":6316,"position":6324},{},[6317],{"type":27,"value":6318,"position":6319},"last 60 sessions_open",{"start":6320,"end":6321},{"line":6310,"column":5640,"offset":6313},{"line":6310,"column":6322,"offset":6323},64,13033,{"start":6325,"end":6326},{"line":6310,"column":5640,"offset":6313},{"line":6310,"column":6322,"offset":6323},{"type":27,"value":6328,"position":6329}," to read how many sessions were open on each of the last 60 bars.",{"start":6330,"end":6331},{"line":6310,"column":6322,"offset":6323},{"line":6310,"column":5511,"offset":6332},13098,{"start":6334,"end":6336},{"line":6310,"column":21,"offset":6335},12970,{"line":6310,"column":5511,"offset":6332},{"type":27,"value":28},{"start":6339,"end":6340},{"line":6188,"column":21,"offset":6263},{"line":6310,"column":5511,"offset":6332},{"type":27,"value":28},{"type":31,"tagName":251,"properties":6343,"children":6344,"position":6353},{},[6345],{"type":27,"value":6346,"position":6347},"Concepts used",{"start":6348,"end":6351},{"line":6349,"column":259,"offset":6350},157,13103,{"line":6349,"column":5931,"offset":6352},13116,{"start":6354,"end":6356},{"line":6349,"column":21,"offset":6355},13100,{"line":6349,"column":5931,"offset":6352},{"type":27,"value":28},{"type":31,"tagName":6002,"properties":6359,"children":6360,"position":6511},{},[6361,6362,6390,6391,6439,6440,6510],{"type":27,"value":28},{"type":31,"tagName":6007,"properties":6363,"children":6364,"position":6386},{},[6365,6380],{"type":31,"tagName":81,"properties":6366,"children":6367,"position":6374},{"href":83},[6368],{"type":27,"value":86,"position":6369},{"start":6370,"end":6372},{"line":5817,"column":259,"offset":6371},13121,{"line":5817,"column":6119,"offset":6373},13136,{"start":6375,"end":6377},{"line":5817,"column":5466,"offset":6376},13120,{"line":5817,"column":6378,"offset":6379},56,13173,{"type":27,"value":6381,"position":6382}," for box and label handles, chart coordinates and ids reused by slot",{"start":6383,"end":6384},{"line":5817,"column":6378,"offset":6379},{"line":5817,"column":6042,"offset":6385},13241,{"start":6387,"end":6389},{"line":5817,"column":21,"offset":6388},13118,{"line":5817,"column":6042,"offset":6385},{"type":27,"value":28},{"type":31,"tagName":6007,"properties":6392,"children":6393,"position":6435},{},[6394,6410,6417,6428],{"type":31,"tagName":81,"properties":6395,"children":6396,"position":6404},{"href":129},[6397],{"type":27,"value":132,"position":6398},{"start":6399,"end":6402},{"line":6400,"column":259,"offset":6401},160,13245,{"line":6400,"column":5885,"offset":6403},13262,{"start":6405,"end":6407},{"line":6400,"column":5466,"offset":6406},13244,{"line":6400,"column":6408,"offset":6409},61,13302,{"type":27,"value":6411,"position":6412}," for ",{"start":6413,"end":6414},{"line":6400,"column":6408,"offset":6409},{"line":6400,"column":6415,"offset":6416},66,13307,{"type":31,"tagName":107,"properties":6418,"children":6419,"position":6425},{},[6420],{"type":27,"value":111,"position":6421},{"start":6422,"end":6423},{"line":6400,"column":6415,"offset":6416},{"line":6400,"column":92,"offset":6424},13319,{"start":6426,"end":6427},{"line":6400,"column":6415,"offset":6416},{"line":6400,"column":92,"offset":6424},{"type":27,"value":6429,"position":6430}," and UTC day math",{"start":6431,"end":6432},{"line":6400,"column":92,"offset":6424},{"line":6400,"column":6433,"offset":6434},95,13336,{"start":6436,"end":6438},{"line":6400,"column":21,"offset":6437},13242,{"line":6400,"column":6433,"offset":6434},{"type":27,"value":28},{"type":31,"tagName":6007,"properties":6441,"children":6442,"position":6506},{},[6443,6460,6467,6479,6486,6499],{"type":31,"tagName":81,"properties":6444,"children":6446,"position":6454},{"href":6445},"../core-concepts/execution-model.md",[6447],{"type":27,"value":6448,"position":6449},"Execution model",{"start":6450,"end":6452},{"line":5826,"column":259,"offset":6451},13340,{"line":5826,"column":6119,"offset":6453},13355,{"start":6455,"end":6457},{"line":5826,"column":5466,"offset":6456},13339,{"line":5826,"column":6458,"offset":6459},57,13393,{"type":27,"value":6461,"position":6462}," for module-level state and where ",{"start":6463,"end":6464},{"line":5826,"column":6458,"offset":6459},{"line":5826,"column":6465,"offset":6466},91,13427,{"type":31,"tagName":107,"properties":6468,"children":6469,"position":6476},{},[6470],{"type":27,"value":5526,"position":6471},{"start":6472,"end":6473},{"line":5826,"column":6465,"offset":6466},{"line":5826,"column":6474,"offset":6475},102,13438,{"start":6477,"end":6478},{"line":5826,"column":6465,"offset":6466},{"line":5826,"column":6474,"offset":6475},{"type":27,"value":6480,"position":6481}," and ",{"start":6482,"end":6483},{"line":5826,"column":6474,"offset":6475},{"line":5826,"column":6484,"offset":6485},107,13443,{"type":31,"tagName":107,"properties":6487,"children":6488,"position":6496},{},[6489],{"type":27,"value":6490,"position":6491},"onBar()",{"start":6492,"end":6493},{"line":5826,"column":6484,"offset":6485},{"line":5826,"column":6494,"offset":6495},116,13452,{"start":6497,"end":6498},{"line":5826,"column":6484,"offset":6485},{"line":5826,"column":6494,"offset":6495},{"type":27,"value":6500,"position":6501}," run",{"start":6502,"end":6503},{"line":5826,"column":6494,"offset":6495},{"line":5826,"column":6504,"offset":6505},120,13456,{"start":6507,"end":6509},{"line":5826,"column":21,"offset":6508},13337,{"line":5826,"column":6504,"offset":6505},{"type":27,"value":28},{"start":6512,"end":6513},{"line":5817,"column":21,"offset":6388},{"line":5826,"column":6504,"offset":6505},{"quirksMode":6515},false,{"start":6517,"end":6518},{"line":21,"column":21,"offset":22},{"line":6519,"column":21,"offset":6520},162,13457,1791265105843]