@charmland/gem 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -784,11 +784,11 @@ function _Debug_crash_UNUSED(identifier, fact1, fact2, fact3, fact4)
784
784
 
785
785
  function _Debug_regionToString(region)
786
786
  {
787
- if (region.c0.ao === region.a$.ao)
787
+ if (region.c0.ap === region.a$.ap)
788
788
  {
789
- return 'on line ' + region.c0.ao;
789
+ return 'on line ' + region.c0.ap;
790
790
  }
791
- return 'on lines ' + region.c0.ao + ' through ' + region.a$.ao;
791
+ return 'on lines ' + region.c0.ap + ' through ' + region.a$.ap;
792
792
  }
793
793
 
794
794
 
@@ -2728,8 +2728,8 @@ var _VirtualDom_mapEventRecord = F2(function(func, record)
2728
2728
  {
2729
2729
  return {
2730
2730
  O: func(record.O),
2731
- aR: record.aR,
2732
- aP: record.aP
2731
+ aT: record.aT,
2732
+ aR: record.aR
2733
2733
  }
2734
2734
  });
2735
2735
 
@@ -2998,10 +2998,10 @@ function _VirtualDom_makeCallback(eventNode, initialHandler)
2998
2998
 
2999
2999
  var value = result.a;
3000
3000
  var message = !tag ? value : tag < 3 ? value.a : value.O;
3001
- var stopPropagation = tag == 1 ? value.b : tag == 3 && value.aR;
3001
+ var stopPropagation = tag == 1 ? value.b : tag == 3 && value.aT;
3002
3002
  var currentEventNode = (
3003
3003
  stopPropagation && event.stopPropagation(),
3004
- (tag == 2 ? value.b : tag == 3 && value.aP) && event.preventDefault(),
3004
+ (tag == 2 ? value.b : tag == 3 && value.aR) && event.preventDefault(),
3005
3005
  eventNode
3006
3006
  );
3007
3007
  var tagger;
@@ -3991,7 +3991,7 @@ var _Browser_document = _Debugger_document || F4(function(impl, flagDecoder, deb
3991
3991
  impl.da,
3992
3992
  impl.c1,
3993
3993
  function(sendToApp, initialModel) {
3994
- var divertHrefToApp = impl.aQ && impl.aQ(sendToApp)
3994
+ var divertHrefToApp = impl.aS && impl.aS(sendToApp)
3995
3995
  var view = impl.dc;
3996
3996
  var title = _VirtualDom_doc.title;
3997
3997
  var bodyNode = _VirtualDom_doc.body;
@@ -4000,7 +4000,7 @@ var _Browser_document = _Debugger_document || F4(function(impl, flagDecoder, deb
4000
4000
  {
4001
4001
  _VirtualDom_divertHrefToApp = divertHrefToApp;
4002
4002
  var doc = view(model);
4003
- var nextNode = _VirtualDom_node('body')(_List_Nil)(doc.bu);
4003
+ var nextNode = _VirtualDom_node('body')(_List_Nil)(doc.bs);
4004
4004
  var patches = _VirtualDom_diff(currNode, nextNode);
4005
4005
  bodyNode = _VirtualDom_applyPatches(bodyNode, currNode, patches, sendToApp);
4006
4006
  currNode = nextNode;
@@ -4066,7 +4066,7 @@ function _Browser_application(impl)
4066
4066
  var key = function() { key.a(onUrlChange(_Browser_getUrl())); };
4067
4067
 
4068
4068
  return _Browser_document({
4069
- aQ: function(sendToApp)
4069
+ aS: function(sendToApp)
4070
4070
  {
4071
4071
  key.a = sendToApp;
4072
4072
  _Browser_window.addEventListener('popstate', key);
@@ -4082,9 +4082,9 @@ function _Browser_application(impl)
4082
4082
  var next = $elm$url$Url$fromString(href).a;
4083
4083
  sendToApp(onUrlRequest(
4084
4084
  (next
4085
- && curr.be === next.be
4086
- && curr.a5 === next.a5
4087
- && curr.bb.a === next.bb.a
4085
+ && curr.bc === next.bc
4086
+ && curr.a3 === next.a3
4087
+ && curr.a9.a === next.a9.a
4088
4088
  )
4089
4089
  ? $elm$browser$Browser$Internal(next)
4090
4090
  : $elm$browser$Browser$External(href)
@@ -4164,17 +4164,17 @@ var _Browser_decodeEvent = F2(function(decoder, event)
4164
4164
  function _Browser_visibilityInfo()
4165
4165
  {
4166
4166
  return (typeof _VirtualDom_doc.hidden !== 'undefined')
4167
- ? { an: 'hidden', bz: 'visibilitychange' }
4167
+ ? { ao: 'hidden', bx: 'visibilitychange' }
4168
4168
  :
4169
4169
  (typeof _VirtualDom_doc.mozHidden !== 'undefined')
4170
- ? { an: 'mozHidden', bz: 'mozvisibilitychange' }
4170
+ ? { ao: 'mozHidden', bx: 'mozvisibilitychange' }
4171
4171
  :
4172
4172
  (typeof _VirtualDom_doc.msHidden !== 'undefined')
4173
- ? { an: 'msHidden', bz: 'msvisibilitychange' }
4173
+ ? { ao: 'msHidden', bx: 'msvisibilitychange' }
4174
4174
  :
4175
4175
  (typeof _VirtualDom_doc.webkitHidden !== 'undefined')
4176
- ? { an: 'webkitHidden', bz: 'webkitvisibilitychange' }
4177
- : { an: 'hidden', bz: 'visibilitychange' };
4176
+ ? { ao: 'webkitHidden', bx: 'webkitvisibilitychange' }
4177
+ : { ao: 'hidden', bx: 'visibilitychange' };
4178
4178
  }
4179
4179
 
4180
4180
 
@@ -4258,9 +4258,9 @@ function _Browser_getViewport()
4258
4258
  cV: _Browser_getScene(),
4259
4259
  dd: {
4260
4260
  aE: _Browser_window.pageXOffset,
4261
- bm: _Browser_window.pageYOffset,
4261
+ di: _Browser_window.pageYOffset,
4262
4262
  dg: _Browser_doc.documentElement.clientWidth,
4263
- a4: _Browser_doc.documentElement.clientHeight
4263
+ a2: _Browser_doc.documentElement.clientHeight
4264
4264
  }
4265
4265
  };
4266
4266
  }
@@ -4271,7 +4271,7 @@ function _Browser_getScene()
4271
4271
  var elem = _Browser_doc.documentElement;
4272
4272
  return {
4273
4273
  dg: Math.max(body.scrollWidth, body.offsetWidth, elem.scrollWidth, elem.offsetWidth, elem.clientWidth),
4274
- a4: Math.max(body.scrollHeight, body.offsetHeight, elem.scrollHeight, elem.offsetHeight, elem.clientHeight)
4274
+ a2: Math.max(body.scrollHeight, body.offsetHeight, elem.scrollHeight, elem.offsetHeight, elem.clientHeight)
4275
4275
  };
4276
4276
  }
4277
4277
 
@@ -4296,13 +4296,13 @@ function _Browser_getViewportOf(id)
4296
4296
  return {
4297
4297
  cV: {
4298
4298
  dg: node.scrollWidth,
4299
- a4: node.scrollHeight
4299
+ a2: node.scrollHeight
4300
4300
  },
4301
4301
  dd: {
4302
4302
  aE: node.scrollLeft,
4303
- bm: node.scrollTop,
4303
+ di: node.scrollTop,
4304
4304
  dg: node.clientWidth,
4305
- a4: node.clientHeight
4305
+ a2: node.clientHeight
4306
4306
  }
4307
4307
  };
4308
4308
  });
@@ -4335,15 +4335,15 @@ function _Browser_getElement(id)
4335
4335
  cV: _Browser_getScene(),
4336
4336
  dd: {
4337
4337
  aE: x,
4338
- bm: y,
4338
+ di: y,
4339
4339
  dg: _Browser_doc.documentElement.clientWidth,
4340
- a4: _Browser_doc.documentElement.clientHeight
4340
+ a2: _Browser_doc.documentElement.clientHeight
4341
4341
  },
4342
- a_: {
4342
+ bS: {
4343
4343
  aE: x + rect.left,
4344
- bm: y + rect.top,
4344
+ di: y + rect.top,
4345
4345
  dg: rect.width,
4346
- a4: rect.height
4346
+ a2: rect.height
4347
4347
  }
4348
4348
  };
4349
4349
  });
@@ -4395,7 +4395,7 @@ function _Url_percentDecode(string)
4395
4395
  {
4396
4396
  return $elm$core$Maybe$Nothing;
4397
4397
  }
4398
- }var $author$project$Gem$App$Noop = {$: 24};
4398
+ }var $author$project$Gem$App$Noop = {$: 23};
4399
4399
  var $author$project$Gem$App$ChangedUrl = function (a) {
4400
4400
  return {$: 1, a: a};
4401
4401
  };
@@ -4906,7 +4906,7 @@ var $elm$url$Url$Http = 0;
4906
4906
  var $elm$url$Url$Https = 1;
4907
4907
  var $elm$url$Url$Url = F6(
4908
4908
  function (protocol, host, port_, path, query, fragment) {
4909
- return {a2: fragment, a5: host, aq: path, bb: port_, be: protocol, m: query};
4909
+ return {b_: fragment, a3: host, ar: path, a9: port_, bc: protocol, n: query};
4910
4910
  });
4911
4911
  var $elm$core$String$contains = _String_contains;
4912
4912
  var $elm$core$String$length = _String_length;
@@ -5255,8 +5255,8 @@ var $elm$core$Maybe$withDefault = F2(
5255
5255
  var $author$project$Gem$Page$firstDoc = function (site_) {
5256
5256
  return A2(
5257
5257
  $elm$core$Maybe$withDefault,
5258
- {a: 'docs', c: site_.ap.p, aK: _List_Nil, aO: '', aB: '/'},
5259
- $elm$core$List$head(site_.M));
5258
+ {b: 'docs', c: site_.aq.p, aM: _List_Nil, aQ: '', aB: '/'},
5259
+ $elm$core$List$head(site_.z));
5260
5260
  };
5261
5261
  var $elm$core$List$sortBy = _List_sortBy;
5262
5262
  var $author$project$Gem$Page$docFor = F2(
@@ -5268,14 +5268,14 @@ var $author$project$Gem$Page$docFor = F2(
5268
5268
  A2(
5269
5269
  $elm$core$List$filter,
5270
5270
  function (item) {
5271
- return _Utils_eq(item.aB, path) || ((item.aB === '/') || A2($elm$core$String$startsWith, item.aO + '/', path));
5271
+ return _Utils_eq(item.aB, path) || ((item.aB === '/') || A2($elm$core$String$startsWith, item.aQ + '/', path));
5272
5272
  },
5273
5273
  A2(
5274
5274
  $elm$core$List$sortBy,
5275
5275
  function (item) {
5276
- return 0 - $elm$core$String$length(item.aO);
5276
+ return 0 - $elm$core$String$length(item.aQ);
5277
5277
  },
5278
- site_.M))));
5278
+ site_.z))));
5279
5279
  });
5280
5280
  var $elm$core$Maybe$map = F2(
5281
5281
  function (f, maybe) {
@@ -5304,45 +5304,46 @@ var $author$project$Gem$App$docsIndex = F2(
5304
5304
  $elm$core$List$filter,
5305
5305
  function (_v0) {
5306
5306
  var doc = _v0.b;
5307
- return _Utils_eq(doc.a, docId);
5307
+ return _Utils_eq(doc.b, docId);
5308
5308
  },
5309
- A2($elm$core$List$indexedMap, $elm$core$Tuple$pair, site.M)))));
5309
+ A2($elm$core$List$indexedMap, $elm$core$Tuple$pair, site.z)))));
5310
5310
  });
5311
5311
  var $elm$core$Dict$RBEmpty_elm_builtin = {$: -2};
5312
5312
  var $elm$core$Dict$empty = $elm$core$Dict$RBEmpty_elm_builtin;
5313
5313
  var $author$project$Gem$App$emptySite = {
5314
- aY: {
5315
- a1: {bt: '', bB: _List_Nil, bF: _List_Nil, bV: false, bW: false, v: 'Gem'},
5316
- a3: {bp: _List_Nil, M: true, a7: true, u: true, o: true},
5317
- c7: {K: true, cK: true}
5314
+ bp: '/',
5315
+ aF: {
5316
+ a1: {br: '', bz: _List_Nil, bD: _List_Nil, bU: false, bV: false, v: 'Gem'},
5317
+ aJ: {bm: _List_Nil, z: true, a5: true, u: true, j: true},
5318
+ c7: {L: true, cK: true}
5318
5319
  },
5319
- bE: _List_Nil,
5320
- M: _List_fromArray(
5320
+ bC: _List_Nil,
5321
+ z: _List_fromArray(
5321
5322
  [
5322
- {a: 'docs', c: 'Gem', aK: _List_Nil, aO: '', aB: '/'}
5323
+ {b: 'docs', c: 'Gem', aM: _List_Nil, aQ: '', aB: '/'}
5323
5324
  ]),
5324
- aH: _List_Nil,
5325
- ap: {am: '', bT: $elm$core$Maybe$Nothing, a1: $elm$core$Maybe$Nothing, a6: 'en', a7: 'Gem', ce: $elm$core$Maybe$Nothing, p: 'Gem', I: ''},
5325
+ aI: _List_Nil,
5326
+ aq: {am: '', bR: $elm$core$Maybe$Nothing, a1: $elm$core$Maybe$Nothing, a4: 'en', a5: 'Gem', ce: $elm$core$Maybe$Nothing, p: 'Gem', J: ''},
5326
5327
  cN: $elm$core$Dict$empty,
5327
- o: 'dark',
5328
- as: true
5328
+ j: 'dark',
5329
+ at: true
5329
5330
  };
5330
5331
  var $carlsson87$spring$Spring$Spring = $elm$core$Basics$identity;
5331
5332
  var $carlsson87$spring$Spring$create = function (x) {
5332
- return {c3: x.c3, bk: x.bk, aa: 0};
5333
+ return {c3: x.c3, bi: x.bi, aa: 0};
5333
5334
  };
5334
5335
  var $author$project$Ui$Burger$init = {
5335
- aN: false,
5336
+ aP: false,
5336
5337
  y: $carlsson87$spring$Spring$create(
5337
- {c3: 0, bk: 0})
5338
+ {c3: 0, bi: 0})
5338
5339
  };
5339
5340
  var $author$project$Ui$CopyButton$init = {ad: $elm$core$Maybe$Nothing};
5340
5341
  var $author$project$Ui$Search$init = function (id) {
5341
- return {U: false, a: id, cX: 0};
5342
+ return {U: false, b: id, cX: 0};
5342
5343
  };
5343
5344
  var $author$project$Ui$Tabs$init = F3(
5344
5345
  function (id, activeIndex, active) {
5345
- return {d: active, ac: activeIndex, an: false, a: id, _: $elm$core$Maybe$Nothing};
5346
+ return {d: active, ac: activeIndex, ao: false, b: id, _: $elm$core$Maybe$Nothing};
5346
5347
  });
5347
5348
  var $elm$core$Basics$composeL = F3(
5348
5349
  function (g, f, x) {
@@ -5389,7 +5390,7 @@ var $author$project$Gem$App$measureAnchors = function (anchors) {
5389
5390
  $elm$core$Task$map2,
5390
5391
  F2(
5391
5392
  function (positions, viewport) {
5392
- return {aA: positions, aC: viewport.cV.a4, aD: viewport.dd.a4};
5393
+ return {aA: positions, aC: viewport.cV.a2, aD: viewport.dd.a2};
5393
5394
  }),
5394
5395
  $elm$core$Task$sequence(
5395
5396
  A2(
@@ -5398,7 +5399,7 @@ var $author$project$Gem$App$measureAnchors = function (anchors) {
5398
5399
  return A2(
5399
5400
  $elm$core$Task$map,
5400
5401
  function (el) {
5401
- return _Utils_Tuple2(id, el.a_.bm);
5402
+ return _Utils_Tuple2(id, el.bS.di);
5402
5403
  },
5403
5404
  $elm$browser$Browser$Dom$getElement(id));
5404
5405
  },
@@ -5406,54 +5407,39 @@ var $author$project$Gem$App$measureAnchors = function (anchors) {
5406
5407
  $elm$browser$Browser$Dom$getViewport));
5407
5408
  };
5408
5409
  var $elm$core$Platform$Cmd$none = $elm$core$Platform$Cmd$batch(_List_Nil);
5409
- var $elm$core$Basics$negate = function (n) {
5410
- return -n;
5411
- };
5412
- var $elm$core$String$dropRight = F2(
5413
- function (n, string) {
5414
- return (n < 1) ? string : A3($elm$core$String$slice, 0, -n, string);
5415
- });
5416
- var $elm$core$String$endsWith = _String_endsWith;
5417
- var $author$project$Gem$App$normalize = function (path) {
5418
- return (($elm$core$String$length(path) > 1) && A2($elm$core$String$endsWith, '/', path)) ? A2($elm$core$String$dropRight, 1, path) : ((path === '') ? '/' : path);
5419
- };
5420
5410
  var $author$project$Gem$App$pageAnchors = function (page) {
5421
5411
  if (!page.$) {
5422
5412
  var item = page.a;
5423
5413
  return A2(
5424
5414
  $elm$core$List$map,
5425
5415
  function ($) {
5426
- return $.a;
5416
+ return $.b;
5427
5417
  },
5428
5418
  item.c6);
5429
5419
  } else {
5430
5420
  return _List_Nil;
5431
5421
  }
5432
5422
  };
5433
- var $author$project$Gem$App$ScrolledTo = function (a) {
5434
- return {$: 23, a: a};
5423
+ var $elm$core$Basics$negate = function (n) {
5424
+ return -n;
5435
5425
  };
5436
- var $elm$browser$Browser$Dom$setViewport = _Browser_setViewport;
5437
- var $author$project$Gem$App$scrollTo = function (url) {
5438
- var _v0 = url.a2;
5439
- if (!_v0.$) {
5440
- var id = _v0.a;
5441
- return A2(
5442
- $elm$core$Task$attempt,
5443
- $author$project$Gem$App$ScrolledTo,
5444
- A2(
5445
- $elm$core$Task$andThen,
5446
- function (element) {
5447
- return A2($elm$browser$Browser$Dom$setViewport, 0, element.a_.bm);
5448
- },
5449
- $elm$browser$Browser$Dom$getElement(id)));
5450
- } else {
5451
- return A2(
5452
- $elm$core$Task$attempt,
5453
- $author$project$Gem$App$ScrolledTo,
5454
- A2($elm$browser$Browser$Dom$setViewport, 0, 0));
5455
- }
5426
+ var $elm$core$String$dropRight = F2(
5427
+ function (n, string) {
5428
+ return (n < 1) ? string : A3($elm$core$String$slice, 0, -n, string);
5429
+ });
5430
+ var $elm$core$String$endsWith = _String_endsWith;
5431
+ var $author$project$Gem$Page$normalizeRoute = function (path) {
5432
+ return (path === '') ? '/' : ((($elm$core$String$length(path) > 1) && A2($elm$core$String$endsWith, '/', path)) ? A2($elm$core$String$dropRight, 1, path) : path);
5456
5433
  };
5434
+ var $author$project$Gem$Page$routeOf = F2(
5435
+ function (site_, path) {
5436
+ var basePath = site_.bp;
5437
+ var withoutBase = (basePath === '/') ? path : (A2($elm$core$String$startsWith, basePath, path) ? ('/' + A2(
5438
+ $elm$core$String$dropLeft,
5439
+ $elm$core$String$length(basePath),
5440
+ path)) : (_Utils_eq(path + '/', basePath) ? '/' : path));
5441
+ return $author$project$Gem$Page$normalizeRoute(withoutBase);
5442
+ });
5457
5443
  var $author$project$Gem$App$landingRoute = function (model) {
5458
5444
  return A2(
5459
5445
  $elm$core$Maybe$withDefault,
@@ -5463,21 +5449,32 @@ var $author$project$Gem$App$landingRoute = function (model) {
5463
5449
  function ($) {
5464
5450
  return $.aB;
5465
5451
  },
5466
- $elm$core$List$head(model.b.M)));
5452
+ $elm$core$List$head(model.a.z)));
5467
5453
  };
5468
5454
  var $author$project$Gem$App$documentTitle = function (model) {
5469
- var _v0 = model.C;
5455
+ var _v0 = model.D;
5470
5456
  if (!_v0.$) {
5471
5457
  var page = _v0.a;
5472
5458
  return _Utils_eq(
5473
- page.n,
5474
- $author$project$Gem$App$landingRoute(model)) ? model.b.ap.p : (page.p + (' · ' + model.b.ap.p));
5459
+ page.o,
5460
+ $author$project$Gem$App$landingRoute(model)) ? model.a.aq.p : (page.p + (' · ' + model.a.aq.p));
5475
5461
  } else {
5476
- return model.b.ap.p;
5462
+ return model.a.aq.p;
5477
5463
  }
5478
5464
  };
5465
+ var $elm$core$Basics$not = _Basics_not;
5466
+ var $author$project$Gem$Page$isRootAbsolute = function (value) {
5467
+ return A2($elm$core$String$startsWith, '/', value) && (!A2($elm$core$String$startsWith, '//', value));
5468
+ };
5469
+ var $author$project$Gem$Page$href = F2(
5470
+ function (site_, value) {
5471
+ var basePath = site_.bp;
5472
+ return ((basePath === '/') || (!$author$project$Gem$Page$isRootAbsolute(value))) ? value : _Utils_ap(
5473
+ A2($elm$core$String$dropRight, 1, basePath),
5474
+ value);
5475
+ });
5479
5476
  var $author$project$Gem$App$ogPath = function (page) {
5480
- return (page.n === '/') ? '/og/index.png' : ('/og' + (page.n + '.png'));
5477
+ return (page.o === '/') ? '/og/index.png' : ('/og' + (page.o + '.png'));
5481
5478
  };
5482
5479
  var $elm$json$Json$Encode$object = function (pairs) {
5483
5480
  return _Json_wrap(
@@ -5513,27 +5510,30 @@ var $author$project$Gem$Ports$setMeta = _Platform_outgoingPort(
5513
5510
  $elm$json$Json$Encode$string($.p)),
5514
5511
  _Utils_Tuple2(
5515
5512
  'url',
5516
- $elm$json$Json$Encode$string($.I))
5513
+ $elm$json$Json$Encode$string($.J))
5517
5514
  ]));
5518
5515
  });
5519
5516
  var $author$project$Gem$App$setMeta = function (model) {
5520
- var page = model.C;
5517
+ var page = model.D;
5521
5518
  var description = A2(
5522
5519
  $elm$core$Maybe$withDefault,
5523
- model.b.ap.am,
5520
+ model.a.aq.am,
5524
5521
  A2(
5525
5522
  $elm$core$Maybe$map,
5526
5523
  function (item) {
5527
- return $elm$core$String$isEmpty(item.am) ? item.aS : item.am;
5524
+ return $elm$core$String$isEmpty(item.am) ? item.aU : item.am;
5528
5525
  },
5529
5526
  page));
5530
5527
  return $author$project$Gem$Ports$setMeta(
5531
5528
  {
5532
5529
  am: description,
5533
5530
  b4: A2(
5534
- $elm$core$Maybe$withDefault,
5535
- '/og/index.png',
5536
- A2($elm$core$Maybe$map, $author$project$Gem$App$ogPath, page)),
5531
+ $author$project$Gem$Page$href,
5532
+ model.a,
5533
+ A2(
5534
+ $elm$core$Maybe$withDefault,
5535
+ '/og/index.png',
5536
+ A2($elm$core$Maybe$map, $author$project$Gem$App$ogPath, page))),
5537
5537
  b9: A2(
5538
5538
  $elm$core$Maybe$withDefault,
5539
5539
  '',
@@ -5544,24 +5544,27 @@ var $author$project$Gem$App$setMeta = function (model) {
5544
5544
  },
5545
5545
  page)),
5546
5546
  p: $author$project$Gem$App$documentTitle(model),
5547
- I: A2(
5548
- $elm$core$Maybe$withDefault,
5549
- '/',
5547
+ J: A2(
5548
+ $author$project$Gem$Page$href,
5549
+ model.a,
5550
5550
  A2(
5551
- $elm$core$Maybe$map,
5552
- function ($) {
5553
- return $.n;
5554
- },
5555
- page))
5551
+ $elm$core$Maybe$withDefault,
5552
+ '/',
5553
+ A2(
5554
+ $elm$core$Maybe$map,
5555
+ function ($) {
5556
+ return $.o;
5557
+ },
5558
+ page)))
5556
5559
  });
5557
5560
  };
5558
5561
  var $author$project$Gem$Page$Meta = F8(
5559
5562
  function (title, description, url, lang, logo, logoImage, footer, editUrl) {
5560
- return {am: description, bT: editUrl, a1: footer, a6: lang, a7: logo, ce: logoImage, p: title, I: url};
5563
+ return {am: description, bR: editUrl, a1: footer, a4: lang, a5: logo, ce: logoImage, p: title, J: url};
5561
5564
  });
5562
- var $author$project$Gem$Page$Site = F8(
5563
- function (meta, pages, docs, entries, colors, theme, themeSystem, chrome) {
5564
- return {aY: chrome, bE: colors, M: docs, aH: entries, ap: meta, cN: pages, o: theme, as: themeSystem};
5565
+ var $author$project$Gem$Page$Site = F9(
5566
+ function (meta, pages, docs, entries, colors, theme, themeSystem, chrome, base) {
5567
+ return {bp: base, aF: chrome, bC: colors, z: docs, aI: entries, aq: meta, cN: pages, j: theme, at: themeSystem};
5565
5568
  });
5566
5569
  var $elm$json$Json$Decode$field = _Json_decodeField;
5567
5570
  var $elm$json$Json$Decode$at = F2(
@@ -5571,19 +5574,19 @@ var $elm$json$Json$Decode$at = F2(
5571
5574
  var $elm$json$Json$Decode$bool = _Json_decodeBool;
5572
5575
  var $author$project$Gem$Page$Chrome = F3(
5573
5576
  function (header, toolbar, footer) {
5574
- return {a1: footer, a3: header, c7: toolbar};
5577
+ return {a1: footer, aJ: header, c7: toolbar};
5575
5578
  });
5576
5579
  var $author$project$Gem$Page$FooterConfig = F6(
5577
5580
  function (enabled, text, blurb, chips, columns, eof) {
5578
- return {bt: blurb, bB: chips, bF: columns, bV: enabled, bW: eof, v: text};
5581
+ return {br: blurb, bz: chips, bD: columns, bU: enabled, bV: eof, v: text};
5579
5582
  });
5580
5583
  var $author$project$Gem$Page$HeaderConfig = F5(
5581
5584
  function (logo, search, theme, docs, actions) {
5582
- return {bp: actions, M: docs, a7: logo, u: search, o: theme};
5585
+ return {bm: actions, z: docs, a5: logo, u: search, j: theme};
5583
5586
  });
5584
5587
  var $author$project$Gem$Page$ToolbarConfig = F2(
5585
5588
  function (copy, openIn) {
5586
- return {K: copy, cK: openIn};
5589
+ return {L: copy, cK: openIn};
5587
5590
  });
5588
5591
  var $author$project$Gem$Page$ChromeColumn = F2(
5589
5592
  function (heading, links) {
@@ -5739,7 +5742,7 @@ var $author$project$Gem$Page$chrome = A4(
5739
5742
  ])));
5740
5743
  var $author$project$Gem$Page$Color = F3(
5741
5744
  function (name, light, dark) {
5742
- return {bM: dark, cb: light, cg: name};
5745
+ return {bK: dark, cb: light, cg: name};
5743
5746
  });
5744
5747
  var $elm$json$Json$Decode$maybe = function (decoder) {
5745
5748
  return $elm$json$Json$Decode$oneOf(
@@ -5759,7 +5762,7 @@ var $author$project$Gem$Page$color = A4(
5759
5762
  A2($elm$json$Json$Decode$field, 'dark', $elm$json$Json$Decode$string)));
5760
5763
  var $author$project$Gem$Page$Doc = F5(
5761
5764
  function (id, label, prefix, root, nav) {
5762
- return {a: id, c: label, aK: nav, aO: prefix, aB: root};
5765
+ return {b: id, c: label, aM: nav, aQ: prefix, aB: root};
5763
5766
  });
5764
5767
  var $author$project$Gem$Page$Category = function (a) {
5765
5768
  return {$: 1, a: a};
@@ -5779,7 +5782,7 @@ function $author$project$Gem$Page$cyclic$nav() {
5779
5782
  F4(
5780
5783
  function (id, label, collapsed, items) {
5781
5784
  return $author$project$Gem$Page$Category(
5782
- {G: collapsed, a: id, b8: items, c: label});
5785
+ {H: collapsed, b: id, b8: items, c: label});
5783
5786
  }),
5784
5787
  A2($elm$json$Json$Decode$field, 'id', $elm$json$Json$Decode$string),
5785
5788
  A2($elm$json$Json$Decode$field, 'label', $elm$json$Json$Decode$string),
@@ -5795,7 +5798,7 @@ function $author$project$Gem$Page$cyclic$nav() {
5795
5798
  F2(
5796
5799
  function (route, title) {
5797
5800
  return $author$project$Gem$Page$PageItem(
5798
- {n: route, p: title});
5801
+ {o: route, p: title});
5799
5802
  }),
5800
5803
  A2($elm$json$Json$Decode$field, 'route', $elm$json$Json$Decode$string),
5801
5804
  A2($elm$json$Json$Decode$field, 'title', $elm$json$Json$Decode$string));
@@ -5820,11 +5823,11 @@ var $author$project$Gem$Page$doc = A6(
5820
5823
  $elm$json$Json$Decode$list($author$project$Gem$Page$nav)));
5821
5824
  var $author$project$Gem$Page$Entry = F6(
5822
5825
  function (route, title, summary, tags, text, sections) {
5823
- return {n: route, cW: sections, aS: summary, c2: tags, v: text, p: title};
5826
+ return {o: route, cW: sections, aU: summary, c2: tags, v: text, p: title};
5824
5827
  });
5825
5828
  var $author$project$Gem$Page$Section = F3(
5826
5829
  function (id, label, text) {
5827
- return {a: id, c: label, v: text};
5830
+ return {b: id, c: label, v: text};
5828
5831
  });
5829
5832
  var $author$project$Gem$Page$section = A4(
5830
5833
  $elm$json$Json$Decode$map3,
@@ -5848,6 +5851,81 @@ var $author$project$Gem$Page$entry = A7(
5848
5851
  'sections',
5849
5852
  $elm$json$Json$Decode$list($author$project$Gem$Page$section)));
5850
5853
  var $elm$json$Json$Decode$map8 = _Json_map8;
5854
+ var $author$project$Gem$Page$before = F2(
5855
+ function (marker, text) {
5856
+ return A2(
5857
+ $elm$core$Maybe$withDefault,
5858
+ '',
5859
+ $elm$core$List$head(
5860
+ A2($elm$core$String$split, marker, text)));
5861
+ });
5862
+ var $elm$core$List$isEmpty = function (xs) {
5863
+ if (!xs.b) {
5864
+ return true;
5865
+ } else {
5866
+ return false;
5867
+ }
5868
+ };
5869
+ var $elm$core$String$toLower = _String_toLower;
5870
+ var $author$project$Gem$Page$isHttpUrl = function (value) {
5871
+ var lower = $elm$core$String$toLower(value);
5872
+ return A2($elm$core$String$startsWith, 'http://', lower) || A2($elm$core$String$startsWith, 'https://', lower);
5873
+ };
5874
+ var $elm$core$String$trim = _String_trim;
5875
+ var $elm$core$List$drop = F2(
5876
+ function (n, list) {
5877
+ drop:
5878
+ while (true) {
5879
+ if (n <= 0) {
5880
+ return list;
5881
+ } else {
5882
+ if (!list.b) {
5883
+ return list;
5884
+ } else {
5885
+ var x = list.a;
5886
+ var xs = list.b;
5887
+ var $temp$n = n - 1,
5888
+ $temp$list = xs;
5889
+ n = $temp$n;
5890
+ list = $temp$list;
5891
+ continue drop;
5892
+ }
5893
+ }
5894
+ }
5895
+ });
5896
+ var $author$project$Gem$Page$urlPath = function (url) {
5897
+ var afterScheme = A2(
5898
+ $elm$core$String$join,
5899
+ '://',
5900
+ A2(
5901
+ $elm$core$List$drop,
5902
+ 1,
5903
+ A2($elm$core$String$split, '://', url)));
5904
+ var pathParts = A2(
5905
+ $elm$core$List$drop,
5906
+ 1,
5907
+ A2($elm$core$String$split, '/', afterScheme));
5908
+ return '/' + A2($elm$core$String$join, '/', pathParts);
5909
+ };
5910
+ var $author$project$Gem$Page$normalizeBase = function (raw) {
5911
+ var trimmed = $elm$core$String$trim(raw);
5912
+ if ($elm$core$String$isEmpty(trimmed) || (trimmed === '/')) {
5913
+ return '/';
5914
+ } else {
5915
+ var pathOnly = $author$project$Gem$Page$isHttpUrl(trimmed) ? $author$project$Gem$Page$urlPath(trimmed) : trimmed;
5916
+ var clean = A2(
5917
+ $author$project$Gem$Page$before,
5918
+ '#',
5919
+ A2($author$project$Gem$Page$before, '?', pathOnly));
5920
+ var segments = A2(
5921
+ $elm$core$List$filter,
5922
+ function (segment) {
5923
+ return !$elm$core$String$isEmpty(segment);
5924
+ },
5925
+ A2($elm$core$String$split, '/', clean));
5926
+ return $elm$core$List$isEmpty(segments) ? '/' : ('/' + (A2($elm$core$String$join, '/', segments) + '/'));
5927
+ }
5928
+ };
5851
5929
  var $elm$json$Json$Decode$null = _Json_decodeNull;
5852
5930
  var $elm$json$Json$Decode$nullable = function (decoder) {
5853
5931
  return $elm$json$Json$Decode$oneOf(
@@ -5859,7 +5937,7 @@ var $elm$json$Json$Decode$nullable = function (decoder) {
5859
5937
  };
5860
5938
  var $author$project$Gem$Page$Page = F9(
5861
5939
  function (route, slug, source, title, summary, description, tags, toc, blocks) {
5862
- return {bs: blocks, am: description, n: route, cZ: slug, c_: source, aS: summary, c2: tags, p: title, c6: toc};
5940
+ return {bq: blocks, am: description, o: route, cZ: slug, c_: source, aU: summary, c2: tags, p: title, c6: toc};
5863
5941
  });
5864
5942
  var $author$project$Gem$Node$BlockComponent = F3(
5865
5943
  function (a, b, c) {
@@ -6096,7 +6174,7 @@ function $author$project$Gem$Node$cyclic$inline() {
6096
6174
  return A2(
6097
6175
  $author$project$Gem$Node$Link,
6098
6176
  {
6099
- bY: $author$project$Gem$Node$isExternal(href),
6177
+ bX: $author$project$Gem$Node$isExternal(href),
6100
6178
  b2: href,
6101
6179
  p: title
6102
6180
  },
@@ -6116,7 +6194,7 @@ function $author$project$Gem$Node$cyclic$inline() {
6116
6194
  F3(
6117
6195
  function (src, alt, title) {
6118
6196
  return $author$project$Gem$Node$Image(
6119
- {bq: alt, c$: src, p: title});
6197
+ {bn: alt, c$: src, p: title});
6120
6198
  }),
6121
6199
  A2($elm$json$Json$Decode$field, 'src', $elm$json$Json$Decode$string),
6122
6200
  A2($elm$json$Json$Decode$field, 'alt', $elm$json$Json$Decode$string),
@@ -6149,7 +6227,7 @@ $author$project$Gem$Node$cyclic$inline = function () {
6149
6227
  var $elm$json$Json$Decode$int = _Json_decodeInt;
6150
6228
  var $author$project$Gem$Node$Token = F4(
6151
6229
  function (text, color, italic, bold) {
6152
- return {bv: bold, bD: color, b7: italic, v: text};
6230
+ return {bt: bold, bB: color, b7: italic, v: text};
6153
6231
  });
6154
6232
  var $author$project$Gem$Node$token = A5(
6155
6233
  $elm$json$Json$Decode$map4,
@@ -6198,7 +6276,7 @@ function $author$project$Gem$Node$cyclic$block() {
6198
6276
  F3(
6199
6277
  function (lang, title, lines) {
6200
6278
  return $author$project$Gem$Node$CodeBlock(
6201
- {a6: lang, cc: lines, p: title});
6279
+ {a4: lang, cc: lines, p: title});
6202
6280
  }),
6203
6281
  $elm$json$Json$Decode$maybe(
6204
6282
  A2($elm$json$Json$Decode$field, 'lang', $elm$json$Json$Decode$string)),
@@ -6290,7 +6368,7 @@ $author$project$Gem$Node$cyclic$block = function () {
6290
6368
  var $author$project$Gem$Node$blocks = $elm$json$Json$Decode$list($author$project$Gem$Node$block);
6291
6369
  var $author$project$Gem$Page$Heading = F3(
6292
6370
  function (depth, id, text) {
6293
- return {bN: depth, a: id, v: text};
6371
+ return {bL: depth, b: id, v: text};
6294
6372
  });
6295
6373
  var $author$project$Gem$Page$heading = A4(
6296
6374
  $elm$json$Json$Decode$map3,
@@ -6325,111 +6403,124 @@ var $author$project$Gem$Page$pagesByRoute = function (pages) {
6325
6403
  $elm$core$List$foldl,
6326
6404
  F2(
6327
6405
  function (item, acc) {
6328
- return A3($elm$core$Dict$insert, item.n, item, acc);
6406
+ return A3($elm$core$Dict$insert, item.o, item, acc);
6329
6407
  }),
6330
6408
  $elm$core$Dict$empty,
6331
6409
  pages);
6332
6410
  };
6333
- var $author$project$Gem$Page$site = A9(
6334
- $elm$json$Json$Decode$map8,
6335
- $author$project$Gem$Page$Site,
6411
+ var $author$project$Gem$Page$site = A3(
6412
+ $elm$json$Json$Decode$map2,
6413
+ F2(
6414
+ function (build, baseRaw) {
6415
+ return build(
6416
+ $author$project$Gem$Page$normalizeBase(baseRaw));
6417
+ }),
6336
6418
  A9(
6337
6419
  $elm$json$Json$Decode$map8,
6338
- $author$project$Gem$Page$Meta,
6339
- A2(
6340
- $elm$json$Json$Decode$at,
6341
- _List_fromArray(
6342
- ['site', 'title']),
6343
- $elm$json$Json$Decode$string),
6420
+ $author$project$Gem$Page$Site,
6421
+ A9(
6422
+ $elm$json$Json$Decode$map8,
6423
+ $author$project$Gem$Page$Meta,
6424
+ A2(
6425
+ $elm$json$Json$Decode$at,
6426
+ _List_fromArray(
6427
+ ['site', 'title']),
6428
+ $elm$json$Json$Decode$string),
6429
+ A2(
6430
+ $elm$json$Json$Decode$at,
6431
+ _List_fromArray(
6432
+ ['site', 'description']),
6433
+ $elm$json$Json$Decode$string),
6434
+ A2(
6435
+ $elm$json$Json$Decode$at,
6436
+ _List_fromArray(
6437
+ ['site', 'url']),
6438
+ $elm$json$Json$Decode$string),
6439
+ A2(
6440
+ $elm$json$Json$Decode$at,
6441
+ _List_fromArray(
6442
+ ['site', 'lang']),
6443
+ $elm$json$Json$Decode$string),
6444
+ A2(
6445
+ $elm$json$Json$Decode$at,
6446
+ _List_fromArray(
6447
+ ['site', 'logo']),
6448
+ $elm$json$Json$Decode$string),
6449
+ $elm$json$Json$Decode$oneOf(
6450
+ _List_fromArray(
6451
+ [
6452
+ A2(
6453
+ $elm$json$Json$Decode$at,
6454
+ _List_fromArray(
6455
+ ['site', 'logoImage']),
6456
+ $elm$json$Json$Decode$nullable($elm$json$Json$Decode$string)),
6457
+ $elm$json$Json$Decode$succeed($elm$core$Maybe$Nothing)
6458
+ ])),
6459
+ A2(
6460
+ $elm$json$Json$Decode$at,
6461
+ _List_fromArray(
6462
+ ['site', 'footer']),
6463
+ $elm$json$Json$Decode$nullable($elm$json$Json$Decode$string)),
6464
+ $elm$json$Json$Decode$oneOf(
6465
+ _List_fromArray(
6466
+ [
6467
+ A2(
6468
+ $elm$json$Json$Decode$at,
6469
+ _List_fromArray(
6470
+ ['site', 'editUrl']),
6471
+ $elm$json$Json$Decode$nullable($elm$json$Json$Decode$string)),
6472
+ $elm$json$Json$Decode$succeed($elm$core$Maybe$Nothing)
6473
+ ]))),
6344
6474
  A2(
6345
- $elm$json$Json$Decode$at,
6346
- _List_fromArray(
6347
- ['site', 'description']),
6348
- $elm$json$Json$Decode$string),
6475
+ $elm$json$Json$Decode$map,
6476
+ $author$project$Gem$Page$pagesByRoute,
6477
+ A2(
6478
+ $elm$json$Json$Decode$field,
6479
+ 'pages',
6480
+ $elm$json$Json$Decode$list($author$project$Gem$Page$page))),
6349
6481
  A2(
6350
- $elm$json$Json$Decode$at,
6351
- _List_fromArray(
6352
- ['site', 'url']),
6353
- $elm$json$Json$Decode$string),
6482
+ $elm$json$Json$Decode$field,
6483
+ 'docs',
6484
+ $elm$json$Json$Decode$list($author$project$Gem$Page$doc)),
6354
6485
  A2(
6355
- $elm$json$Json$Decode$at,
6356
- _List_fromArray(
6357
- ['site', 'lang']),
6358
- $elm$json$Json$Decode$string),
6486
+ $elm$json$Json$Decode$field,
6487
+ 'search',
6488
+ $elm$json$Json$Decode$list($author$project$Gem$Page$entry)),
6359
6489
  A2(
6360
- $elm$json$Json$Decode$at,
6361
- _List_fromArray(
6362
- ['site', 'logo']),
6363
- $elm$json$Json$Decode$string),
6490
+ $elm$json$Json$Decode$field,
6491
+ 'colors',
6492
+ $elm$json$Json$Decode$list($author$project$Gem$Page$color)),
6364
6493
  $elm$json$Json$Decode$oneOf(
6365
6494
  _List_fromArray(
6366
6495
  [
6367
6496
  A2(
6368
6497
  $elm$json$Json$Decode$at,
6369
6498
  _List_fromArray(
6370
- ['site', 'logoImage']),
6371
- $elm$json$Json$Decode$nullable($elm$json$Json$Decode$string)),
6372
- $elm$json$Json$Decode$succeed($elm$core$Maybe$Nothing)
6499
+ ['theme', 'mode']),
6500
+ $elm$json$Json$Decode$string),
6501
+ $elm$json$Json$Decode$succeed('dark')
6373
6502
  ])),
6374
- A2(
6375
- $elm$json$Json$Decode$at,
6376
- _List_fromArray(
6377
- ['site', 'footer']),
6378
- $elm$json$Json$Decode$nullable($elm$json$Json$Decode$string)),
6379
6503
  $elm$json$Json$Decode$oneOf(
6380
6504
  _List_fromArray(
6381
6505
  [
6382
6506
  A2(
6383
6507
  $elm$json$Json$Decode$at,
6384
6508
  _List_fromArray(
6385
- ['site', 'editUrl']),
6386
- $elm$json$Json$Decode$nullable($elm$json$Json$Decode$string)),
6387
- $elm$json$Json$Decode$succeed($elm$core$Maybe$Nothing)
6388
- ]))),
6389
- A2(
6390
- $elm$json$Json$Decode$map,
6391
- $author$project$Gem$Page$pagesByRoute,
6509
+ ['theme', 'system']),
6510
+ $elm$json$Json$Decode$bool),
6511
+ $elm$json$Json$Decode$succeed(false)
6512
+ ])),
6392
6513
  A2(
6393
- $elm$json$Json$Decode$field,
6394
- 'pages',
6395
- $elm$json$Json$Decode$list($author$project$Gem$Page$page))),
6396
- A2(
6397
- $elm$json$Json$Decode$field,
6398
- 'docs',
6399
- $elm$json$Json$Decode$list($author$project$Gem$Page$doc)),
6400
- A2(
6401
- $elm$json$Json$Decode$field,
6402
- 'search',
6403
- $elm$json$Json$Decode$list($author$project$Gem$Page$entry)),
6404
- A2(
6405
- $elm$json$Json$Decode$field,
6406
- 'colors',
6407
- $elm$json$Json$Decode$list($author$project$Gem$Page$color)),
6408
- $elm$json$Json$Decode$oneOf(
6409
- _List_fromArray(
6410
- [
6411
- A2(
6412
- $elm$json$Json$Decode$at,
6413
- _List_fromArray(
6414
- ['theme', 'mode']),
6415
- $elm$json$Json$Decode$string),
6416
- $elm$json$Json$Decode$succeed('dark')
6417
- ])),
6514
+ $elm$json$Json$Decode$at,
6515
+ _List_fromArray(
6516
+ ['chrome']),
6517
+ $author$project$Gem$Page$chrome)),
6418
6518
  $elm$json$Json$Decode$oneOf(
6419
6519
  _List_fromArray(
6420
6520
  [
6421
- A2(
6422
- $elm$json$Json$Decode$at,
6423
- _List_fromArray(
6424
- ['theme', 'system']),
6425
- $elm$json$Json$Decode$bool),
6426
- $elm$json$Json$Decode$succeed(false)
6427
- ])),
6428
- A2(
6429
- $elm$json$Json$Decode$at,
6430
- _List_fromArray(
6431
- ['chrome']),
6432
- $author$project$Gem$Page$chrome));
6521
+ A2($elm$json$Json$Decode$field, 'base', $elm$json$Json$Decode$string),
6522
+ $elm$json$Json$Decode$succeed('/')
6523
+ ])));
6433
6524
  var $elm$core$List$append = F2(
6434
6525
  function (xs, ys) {
6435
6526
  if (!ys.b) {
@@ -6446,7 +6537,6 @@ var $elm$core$List$concatMap = F2(
6446
6537
  return $elm$core$List$concat(
6447
6538
  A2($elm$core$List$map, f, list));
6448
6539
  });
6449
- var $elm$core$String$trim = _String_trim;
6450
6540
  var $author$project$Gem$App$nonEmpty = function (value) {
6451
6541
  return $elm$core$String$isEmpty(
6452
6542
  $elm$core$String$trim(value)) ? $elm$core$Maybe$Nothing : $elm$core$Maybe$Just(value);
@@ -6456,13 +6546,12 @@ var $author$project$Gem$App$snippetFor = function (text) {
6456
6546
  return $elm$core$String$isEmpty(trimmed) ? $elm$core$Maybe$Nothing : (($elm$core$String$length(trimmed) > 110) ? $elm$core$Maybe$Just(
6457
6547
  A2($elm$core$String$left, 107, trimmed) + '…') : $elm$core$Maybe$Just(trimmed));
6458
6548
  };
6459
- var $elm$core$String$toLower = _String_toLower;
6460
6549
  var $author$project$Gem$App$sectionHit = F2(
6461
6550
  function (entry, section) {
6462
6551
  return {
6463
- L: $elm$core$Maybe$Just(entry.p),
6552
+ M: $elm$core$Maybe$Just(entry.p),
6464
6553
  c: $elm$core$String$isEmpty(section.c) ? entry.p : section.c,
6465
- n: $elm$core$String$isEmpty(section.a) ? entry.n : (entry.n + ('#' + section.a)),
6554
+ o: $elm$core$String$isEmpty(section.b) ? entry.o : (entry.o + ('#' + section.b)),
6466
6555
  aj: $author$project$Gem$App$snippetFor(section.v),
6467
6556
  v: $elm$core$String$toLower(section.c + (' ' + (entry.p + (' ' + section.v))))
6468
6557
  };
@@ -6471,10 +6560,10 @@ var $author$project$Gem$App$pageHits = function (entry) {
6471
6560
  return A2(
6472
6561
  $elm$core$List$cons,
6473
6562
  {
6474
- L: $elm$core$Maybe$Nothing,
6563
+ M: $elm$core$Maybe$Nothing,
6475
6564
  c: entry.p,
6476
- n: entry.n,
6477
- aj: $author$project$Gem$App$nonEmpty(entry.aS),
6565
+ o: entry.o,
6566
+ aj: $author$project$Gem$App$nonEmpty(entry.aU),
6478
6567
  v: $elm$core$String$toLower(entry.p + (' ' + entry.v))
6479
6568
  },
6480
6569
  A2(
@@ -6483,7 +6572,7 @@ var $author$project$Gem$App$pageHits = function (entry) {
6483
6572
  entry.cW));
6484
6573
  };
6485
6574
  var $author$project$Gem$App$siteIndex = function (site) {
6486
- return A2($elm$core$List$concatMap, $author$project$Gem$App$pageHits, site.aH);
6575
+ return A2($elm$core$List$concatMap, $author$project$Gem$App$pageHits, site.aI);
6487
6576
  };
6488
6577
  var $author$project$Gem$App$themeIndex = F2(
6489
6578
  function (system, theme) {
@@ -6497,63 +6586,62 @@ var $author$project$Gem$App$init = F4(
6497
6586
  var page = A2(
6498
6587
  $author$project$Gem$Page$byRoute,
6499
6588
  site,
6500
- $author$project$Gem$App$normalize(url.aq));
6589
+ A2($author$project$Gem$Page$routeOf, site, url.ar));
6501
6590
  var doc = A2(
6502
6591
  $author$project$Gem$Page$docFor,
6503
6592
  site,
6504
- $author$project$Gem$App$normalize(url.aq));
6593
+ A2($author$project$Gem$Page$routeOf, site, url.ar));
6505
6594
  var model = {
6506
- E: $elm$core$Maybe$Nothing,
6595
+ F: $elm$core$Maybe$Nothing,
6507
6596
  T: false,
6508
- F: false,
6597
+ G: false,
6509
6598
  q: $author$project$Ui$Burger$init,
6510
- G: _List_Nil,
6511
- K: $author$project$Ui$CopyButton$init,
6599
+ H: _List_Nil,
6600
+ L: $author$project$Ui$CopyButton$init,
6512
6601
  i: doc,
6513
- l: A3(
6602
+ m: A3(
6514
6603
  $author$project$Ui$Tabs$init,
6515
6604
  'docs-tabs',
6516
- A2($author$project$Gem$App$docsIndex, site, doc.a),
6517
- doc.a),
6518
- ay: $elm$core$Maybe$Nothing,
6605
+ A2($author$project$Gem$App$docsIndex, site, doc.b),
6606
+ doc.b),
6607
+ an: $elm$core$Maybe$Nothing,
6519
6608
  N: false,
6520
6609
  az: $author$project$Gem$App$siteIndex(site),
6521
6610
  af: false,
6522
6611
  ag: key,
6523
6612
  ah: $elm$core$Maybe$Nothing,
6524
- k: A3(
6613
+ l: A3(
6525
6614
  $author$project$Ui$Tabs$init,
6526
6615
  'burger-docs-tabs',
6527
- A2($author$project$Gem$App$docsIndex, site, doc.a),
6528
- doc.a),
6529
- z: A3(
6616
+ A2($author$project$Gem$App$docsIndex, site, doc.b),
6617
+ doc.b),
6618
+ A: A3(
6530
6619
  $author$project$Ui$Tabs$init,
6531
6620
  'burger-theme-tabs',
6532
- A2($author$project$Gem$App$themeIndex, site.as, site.o),
6533
- site.o),
6534
- C: page,
6621
+ A2($author$project$Gem$App$themeIndex, site.at, site.j),
6622
+ site.j),
6623
+ D: page,
6535
6624
  P: false,
6536
- m: '',
6625
+ n: '',
6537
6626
  Z: 0,
6538
6627
  u: $author$project$Ui$Search$init('gem-search'),
6539
6628
  x: false,
6540
- b: site,
6541
- ar: slots,
6542
- o: site.o,
6543
- D: A3(
6629
+ a: site,
6630
+ as: slots,
6631
+ j: site.j,
6632
+ E: A3(
6544
6633
  $author$project$Ui$Tabs$init,
6545
6634
  'docs-theme-tabs',
6546
- A2($author$project$Gem$App$themeIndex, site.as, site.o),
6547
- site.o),
6635
+ A2($author$project$Gem$App$themeIndex, site.at, site.j),
6636
+ site.j),
6548
6637
  R: false,
6549
- I: url
6638
+ J: url
6550
6639
  };
6551
6640
  return _Utils_Tuple2(
6552
6641
  model,
6553
6642
  $elm$core$Platform$Cmd$batch(
6554
6643
  _List_fromArray(
6555
6644
  [
6556
- $author$project$Gem$App$scrollTo(url),
6557
6645
  $author$project$Gem$App$measureAnchors(
6558
6646
  $author$project$Gem$App$pageAnchors(page)),
6559
6647
  $author$project$Gem$App$setMeta(model)
@@ -6562,35 +6650,35 @@ var $author$project$Gem$App$init = F4(
6562
6650
  var error = _v0.a;
6563
6651
  return _Utils_Tuple2(
6564
6652
  {
6565
- E: $elm$core$Maybe$Nothing,
6653
+ F: $elm$core$Maybe$Nothing,
6566
6654
  T: false,
6567
- F: false,
6655
+ G: false,
6568
6656
  q: $author$project$Ui$Burger$init,
6569
- G: _List_Nil,
6570
- K: $author$project$Ui$CopyButton$init,
6657
+ H: _List_Nil,
6658
+ L: $author$project$Ui$CopyButton$init,
6571
6659
  i: A2($author$project$Gem$Page$docFor, $author$project$Gem$App$emptySite, '/'),
6572
- l: A3($author$project$Ui$Tabs$init, 'docs-tabs', 0, 'docs'),
6573
- ay: $elm$core$Maybe$Just(
6660
+ m: A3($author$project$Ui$Tabs$init, 'docs-tabs', 0, 'docs'),
6661
+ an: $elm$core$Maybe$Just(
6574
6662
  $elm$json$Json$Decode$errorToString(error)),
6575
6663
  N: false,
6576
6664
  az: _List_Nil,
6577
6665
  af: false,
6578
6666
  ag: key,
6579
6667
  ah: $elm$core$Maybe$Nothing,
6580
- k: A3($author$project$Ui$Tabs$init, 'burger-docs-tabs', 0, 'docs'),
6581
- z: A3($author$project$Ui$Tabs$init, 'burger-theme-tabs', 1, 'dark'),
6582
- C: $elm$core$Maybe$Nothing,
6668
+ l: A3($author$project$Ui$Tabs$init, 'burger-docs-tabs', 0, 'docs'),
6669
+ A: A3($author$project$Ui$Tabs$init, 'burger-theme-tabs', 1, 'dark'),
6670
+ D: $elm$core$Maybe$Nothing,
6583
6671
  P: false,
6584
- m: '',
6672
+ n: '',
6585
6673
  Z: 0,
6586
6674
  u: $author$project$Ui$Search$init('gem-search'),
6587
6675
  x: false,
6588
- b: $author$project$Gem$App$emptySite,
6589
- ar: slots,
6590
- o: 'dark',
6591
- D: A3($author$project$Ui$Tabs$init, 'docs-theme-tabs', 1, 'dark'),
6676
+ a: $author$project$Gem$App$emptySite,
6677
+ as: slots,
6678
+ j: 'dark',
6679
+ E: A3($author$project$Ui$Tabs$init, 'docs-theme-tabs', 1, 'dark'),
6592
6680
  R: false,
6593
- I: url
6681
+ J: url
6594
6682
  },
6595
6683
  $elm$core$Platform$Cmd$none);
6596
6684
  }
@@ -6627,7 +6715,7 @@ var $elm$browser$Browser$Events$MySub = F3(
6627
6715
  });
6628
6716
  var $elm$browser$Browser$Events$State = F2(
6629
6717
  function (subs, pids) {
6630
- return {ba: pids, bi: subs};
6718
+ return {a8: pids, bg: subs};
6631
6719
  });
6632
6720
  var $elm$browser$Browser$Events$init = $elm$core$Task$succeed(
6633
6721
  A2($elm$browser$Browser$Events$State, _List_Nil, $elm$core$Dict$empty));
@@ -6811,7 +6899,7 @@ var $elm$browser$Browser$Events$onEffects = F3(
6811
6899
  stepLeft,
6812
6900
  stepBoth,
6813
6901
  stepRight,
6814
- state.ba,
6902
+ state.a8,
6815
6903
  $elm$core$Dict$fromList(newSubs),
6816
6904
  _Utils_Tuple3(_List_Nil, $elm$core$Dict$empty, _List_Nil));
6817
6905
  var deadPids = _v0.a;
@@ -6867,7 +6955,7 @@ var $elm$browser$Browser$Events$onSelfMsg = F3(
6867
6955
  var decoder = _v3.c;
6868
6956
  return _Utils_eq(subKey, key) ? A2(_Browser_decodeEvent, decoder, event) : $elm$core$Maybe$Nothing;
6869
6957
  };
6870
- var messages = A2($elm$core$List$filterMap, toMessage, state.bi);
6958
+ var messages = A2($elm$core$List$filterMap, toMessage, state.bg);
6871
6959
  return A2(
6872
6960
  $elm$core$Task$andThen,
6873
6961
  function (_v1) {
@@ -6930,14 +7018,14 @@ var $author$project$Ui$Burger$Frame = function (a) {
6930
7018
  };
6931
7019
  var $carlsson87$spring$Spring$equilibrium = function (_v0) {
6932
7020
  var x = _v0;
6933
- return _Utils_eq(x.bk, x.c3) && (!x.aa);
7021
+ return _Utils_eq(x.bi, x.c3) && (!x.aa);
6934
7022
  };
6935
7023
  var $elm$browser$Browser$AnimationManager$Delta = function (a) {
6936
7024
  return {$: 1, a: a};
6937
7025
  };
6938
7026
  var $elm$browser$Browser$AnimationManager$State = F3(
6939
7027
  function (subs, request, oldTime) {
6940
- return {aL: oldTime, bg: request, bi: subs};
7028
+ return {aN: oldTime, be: request, bg: subs};
6941
7029
  });
6942
7030
  var $elm$browser$Browser$AnimationManager$init = $elm$core$Task$succeed(
6943
7031
  A3($elm$browser$Browser$AnimationManager$State, _List_Nil, $elm$core$Maybe$Nothing, 0));
@@ -6946,8 +7034,8 @@ var $elm$browser$Browser$AnimationManager$rAF = _Browser_rAF(0);
6946
7034
  var $elm$core$Process$spawn = _Scheduler_spawn;
6947
7035
  var $elm$browser$Browser$AnimationManager$onEffects = F3(
6948
7036
  function (router, subs, _v0) {
6949
- var oldTime = _v0.aL;
6950
- var request = _v0.bg;
7037
+ var oldTime = _v0.aN;
7038
+ var request = _v0.be;
6951
7039
  var _v1 = _Utils_Tuple2(request, subs);
6952
7040
  if (_v1.a.$ === 1) {
6953
7041
  if (!_v1.b.b) {
@@ -6995,8 +7083,8 @@ var $elm$time$Time$Posix = $elm$core$Basics$identity;
6995
7083
  var $elm$time$Time$millisToPosix = $elm$core$Basics$identity;
6996
7084
  var $elm$browser$Browser$AnimationManager$onSelfMsg = F3(
6997
7085
  function (router, newTime, _v0) {
6998
- var oldTime = _v0.aL;
6999
- var subs = _v0.bi;
7086
+ var oldTime = _v0.aN;
7087
+ var subs = _v0.bg;
7000
7088
  var send = function (sub) {
7001
7089
  if (!sub.$) {
7002
7090
  var tagger = sub.a;
@@ -7119,7 +7207,6 @@ var $elm$core$Basics$always = F2(
7119
7207
  function (a, _v0) {
7120
7208
  return a;
7121
7209
  });
7122
- var $elm$core$Basics$not = _Basics_not;
7123
7210
  var $elm$browser$Browser$AnimationManager$onAnimationFrame = function (tagger) {
7124
7211
  return $elm$browser$Browser$AnimationManager$subscription(
7125
7212
  $elm$browser$Browser$AnimationManager$Time(tagger));
@@ -7142,7 +7229,7 @@ var $elm$browser$Browser$Events$onResize = function (func) {
7142
7229
  };
7143
7230
  var $author$project$Ui$Tabs$subscriptions = F2(
7144
7231
  function (mounted, model) {
7145
- return (!mounted) ? $elm$core$Platform$Sub$none : ((_Utils_eq(model._, $elm$core$Maybe$Nothing) && (!model.an)) ? $elm$core$Platform$Sub$batch(
7232
+ return (!mounted) ? $elm$core$Platform$Sub$none : ((_Utils_eq(model._, $elm$core$Maybe$Nothing) && (!model.ao)) ? $elm$core$Platform$Sub$batch(
7146
7233
  _List_fromArray(
7147
7234
  [
7148
7235
  $elm$browser$Browser$Events$onAnimationFrame(
@@ -7159,6 +7246,9 @@ var $author$project$Ui$Tabs$subscriptions = F2(
7159
7246
  })));
7160
7247
  });
7161
7248
  var $author$project$Gem$App$subscriptions = function (model) {
7249
+ var shell = _Utils_eq(model.an, $elm$core$Maybe$Nothing);
7250
+ var header = model.a.aF.aJ;
7251
+ var docsSwitcher = shell && (header.z && ($elm$core$List$length(model.a.z) > 1));
7162
7252
  return $elm$core$Platform$Sub$batch(
7163
7253
  _List_fromArray(
7164
7254
  [
@@ -7173,20 +7263,20 @@ var $author$project$Gem$App$subscriptions = function (model) {
7173
7263
  A2(
7174
7264
  $elm$core$Platform$Sub$map,
7175
7265
  $author$project$Gem$App$DocsTabsMsg,
7176
- A2($author$project$Ui$Tabs$subscriptions, true, model.l)),
7266
+ A2($author$project$Ui$Tabs$subscriptions, docsSwitcher, model.m)),
7177
7267
  A2(
7178
7268
  $elm$core$Platform$Sub$map,
7179
7269
  $author$project$Gem$App$MenuDocsTabsMsg,
7180
- A2($author$project$Ui$Tabs$subscriptions, model.q.aN, model.k)),
7270
+ A2($author$project$Ui$Tabs$subscriptions, model.q.aP && docsSwitcher, model.l)),
7181
7271
  A2(
7182
7272
  $elm$core$Platform$Sub$map,
7183
7273
  $author$project$Gem$App$ThemeTabsMsg,
7184
- A2($author$project$Ui$Tabs$subscriptions, true, model.D)),
7274
+ A2($author$project$Ui$Tabs$subscriptions, shell && header.j, model.E)),
7185
7275
  A2(
7186
7276
  $elm$core$Platform$Sub$map,
7187
7277
  $author$project$Gem$App$MenuTabsMsg,
7188
- A2($author$project$Ui$Tabs$subscriptions, model.q.aN, model.z)),
7189
- A3($author$project$Ui$Dropdown$subscriptions, 'ai-dropdown', model.F, $author$project$Gem$App$AiToggled),
7278
+ A2($author$project$Ui$Tabs$subscriptions, model.q.aP && (shell && header.j), model.A)),
7279
+ A3($author$project$Ui$Dropdown$subscriptions, 'ai-dropdown', model.G, $author$project$Gem$App$AiToggled),
7190
7280
  $author$project$Gem$Ports$onScroll($author$project$Gem$App$Scrolled),
7191
7281
  $elm$browser$Browser$Events$onKeyDown($author$project$Gem$App$searchShortcutKey),
7192
7282
  model.x ? $elm$browser$Browser$Events$onKeyDown($author$project$Gem$App$searchEscapeKey) : $elm$core$Platform$Sub$none
@@ -7246,12 +7336,12 @@ var $author$project$Gem$App$activeAt = F2(
7246
7336
  });
7247
7337
  var $author$project$Gem$App$chatbots = _List_fromArray(
7248
7338
  [
7249
- {a: 'chatgpt', c: 'Open in ChatGPT', X: 'https://chatgpt.com/?q='},
7250
- {a: 'claude', c: 'Open in Claude', X: 'https://claude.ai/new?q='},
7251
- {a: 'perplexity', c: 'Open in Perplexity', X: 'https://www.perplexity.ai/search?q='},
7252
- {a: 'copilot', c: 'Open in Copilot', X: 'https://copilot.microsoft.com/?q='},
7253
- {a: 'you', c: 'Open in You.com', X: 'https://you.com/search?q='},
7254
- {a: 'phind', c: 'Open in Phind', X: 'https://www.phind.com/search?q='}
7339
+ {b: 'chatgpt', c: 'Open in ChatGPT', X: 'https://chatgpt.com/?q='},
7340
+ {b: 'claude', c: 'Open in Claude', X: 'https://claude.ai/new?q='},
7341
+ {b: 'perplexity', c: 'Open in Perplexity', X: 'https://www.perplexity.ai/search?q='},
7342
+ {b: 'copilot', c: 'Open in Copilot', X: 'https://copilot.microsoft.com/?q='},
7343
+ {b: 'you', c: 'Open in You.com', X: 'https://you.com/search?q='},
7344
+ {b: 'phind', c: 'Open in Phind', X: 'https://www.phind.com/search?q='}
7255
7345
  ]);
7256
7346
  var $elm$url$Url$percentEncode = _Url_percentEncode;
7257
7347
  var $author$project$Gem$App$chatbotUrl = F2(
@@ -7270,7 +7360,7 @@ var $author$project$Gem$App$chatbotUrl = F2(
7270
7360
  A2(
7271
7361
  $elm$core$List$filter,
7272
7362
  function (bot) {
7273
- return _Utils_eq(bot.a, botId);
7363
+ return _Utils_eq(bot.b, botId);
7274
7364
  },
7275
7365
  $author$project$Gem$App$chatbots)))),
7276
7366
  $elm$url$Url$percentEncode(prompt));
@@ -7278,14 +7368,14 @@ var $author$project$Gem$App$chatbotUrl = F2(
7278
7368
  var $author$project$Ui$Burger$Closed = {$: 1};
7279
7369
  var $carlsson87$spring$Spring$Config = $elm$core$Basics$identity;
7280
7370
  var $carlsson87$spring$Spring$config = function (x) {
7281
- return {ax: 0.05, b$: x.b$, c4: x.c4};
7371
+ return {ay: 0.05, b$: x.b$, c4: x.c4};
7282
7372
  };
7283
7373
  var $carlsson87$spring$Spring$setEquilibriumThreshold = F2(
7284
7374
  function (equilibriumThreshold, _v0) {
7285
7375
  var cfg = _v0;
7286
7376
  return _Utils_update(
7287
7377
  cfg,
7288
- {ax: equilibriumThreshold});
7378
+ {ay: equilibriumThreshold});
7289
7379
  });
7290
7380
  var $author$project$Ui$Burger$drawerSpring = A2(
7291
7381
  $carlsson87$spring$Spring$setEquilibriumThreshold,
@@ -7300,25 +7390,25 @@ var $carlsson87$spring$Spring$update = F3(
7300
7390
  var cfg = _v0;
7301
7391
  var x = _v1;
7302
7392
  if ((_Utils_cmp(
7303
- $elm$core$Basics$abs(x.bk - x.c3),
7304
- cfg.ax) < 0) && (_Utils_cmp(
7393
+ $elm$core$Basics$abs(x.bi - x.c3),
7394
+ cfg.ay) < 0) && (_Utils_cmp(
7305
7395
  $elm$core$Basics$abs(x.aa),
7306
- cfg.ax) < 0)) {
7396
+ cfg.ay) < 0)) {
7307
7397
  return _Utils_update(
7308
7398
  x,
7309
- {bk: x.c3, aa: 0});
7399
+ {bi: x.c3, aa: 0});
7310
7400
  } else {
7311
7401
  var deltaSeconds = deltaMs / 1000;
7312
- var acc = deltaSeconds * (((x.c3 - x.bk) * cfg.c4) - (x.aa * cfg.b$));
7402
+ var acc = deltaSeconds * (((x.c3 - x.bi) * cfg.c4) - (x.aa * cfg.b$));
7313
7403
  var newVelocity = x.aa + acc;
7314
7404
  return _Utils_update(
7315
7405
  x,
7316
- {bk: x.bk + (newVelocity * deltaSeconds), aa: newVelocity});
7406
+ {bi: x.bi + (newVelocity * deltaSeconds), aa: newVelocity});
7317
7407
  }
7318
7408
  });
7319
7409
  var $carlsson87$spring$Spring$value = function (_v0) {
7320
7410
  var x = _v0;
7321
- return x.bk;
7411
+ return x.bi;
7322
7412
  };
7323
7413
  var $author$project$Ui$Burger$update = F2(
7324
7414
  function (msg, model) {
@@ -7328,11 +7418,11 @@ var $author$project$Ui$Burger$update = F2(
7328
7418
  _Utils_update(
7329
7419
  model,
7330
7420
  {
7331
- aN: !model.aN,
7421
+ aP: !model.aP,
7332
7422
  y: $carlsson87$spring$Spring$create(
7333
7423
  {
7334
- c3: model.aN ? 0 : 1,
7335
- bk: $carlsson87$spring$Spring$value(model.y)
7424
+ c3: model.aP ? 0 : 1,
7425
+ bi: $carlsson87$spring$Spring$value(model.y)
7336
7426
  })
7337
7427
  }),
7338
7428
  $elm$core$Platform$Cmd$none);
@@ -7341,11 +7431,11 @@ var $author$project$Ui$Burger$update = F2(
7341
7431
  _Utils_update(
7342
7432
  model,
7343
7433
  {
7344
- aN: false,
7434
+ aP: false,
7345
7435
  y: $carlsson87$spring$Spring$create(
7346
7436
  {
7347
7437
  c3: 0,
7348
- bk: $carlsson87$spring$Spring$value(model.y)
7438
+ bi: $carlsson87$spring$Spring$value(model.y)
7349
7439
  })
7350
7440
  }),
7351
7441
  $elm$core$Platform$Cmd$none);
@@ -7361,7 +7451,7 @@ var $author$project$Ui$Burger$update = F2(
7361
7451
  }
7362
7452
  });
7363
7453
  var $author$project$Gem$App$closeBurger = function (burger) {
7364
- return burger.aN ? A2($author$project$Ui$Burger$update, $author$project$Ui$Burger$Closed, burger).a : burger;
7454
+ return burger.aP ? A2($author$project$Ui$Burger$update, $author$project$Ui$Burger$Closed, burger).a : burger;
7365
7455
  };
7366
7456
  var $author$project$Gem$Ports$copyMarkdown = _Platform_outgoingPort('copyMarkdown', $elm$json$Json$Encode$string);
7367
7457
  var $author$project$Gem$Ports$copyToClipboard = _Platform_outgoingPort('copyToClipboard', $elm$json$Json$Encode$string);
@@ -7374,9 +7464,9 @@ var $author$project$Gem$App$docAt = F3(
7374
7464
  A2(
7375
7465
  $elm$core$List$filter,
7376
7466
  function (doc) {
7377
- return _Utils_eq(doc.a, id);
7467
+ return _Utils_eq(doc.b, id);
7378
7468
  },
7379
- site.M)));
7469
+ site.z)));
7380
7470
  });
7381
7471
  var $elm$core$Basics$neq = _Utils_notEqual;
7382
7472
  var $elm$browser$Browser$Navigation$pushUrl = _Browser_pushUrl;
@@ -7389,12 +7479,15 @@ var $author$project$Gem$App$docNavigation = F3(
7389
7479
  A2(
7390
7480
  $elm$core$List$filter,
7391
7481
  function (doc) {
7392
- return _Utils_eq(doc.a, after.d);
7482
+ return _Utils_eq(doc.b, after.d);
7393
7483
  },
7394
- model.b.M));
7484
+ model.a.z));
7395
7485
  if (!_v0.$) {
7396
7486
  var doc = _v0.a;
7397
- return (!_Utils_eq(doc.a, model.i.a)) ? A2($elm$browser$Browser$Navigation$pushUrl, model.ag, doc.aB) : $elm$core$Platform$Cmd$none;
7487
+ return (!_Utils_eq(doc.b, model.i.b)) ? A2(
7488
+ $elm$browser$Browser$Navigation$pushUrl,
7489
+ model.ag,
7490
+ A2($author$project$Gem$Page$href, model.a, doc.aB)) : $elm$core$Platform$Cmd$none;
7398
7491
  } else {
7399
7492
  return $elm$core$Platform$Cmd$none;
7400
7493
  }
@@ -7404,8 +7497,15 @@ var $elm$browser$Browser$Dom$focus = _Browser_call('focus');
7404
7497
  var $elm$browser$Browser$Navigation$load = _Browser_load;
7405
7498
  var $elm$core$Platform$Cmd$map = _Platform_map;
7406
7499
  var $author$project$Gem$Page$markdownPath = function (target) {
7407
- return (target.n === '/') ? '/index.md' : (target.n + '.md');
7500
+ return (target.o === '/') ? '/index.md' : (target.o + '.md');
7408
7501
  };
7502
+ var $author$project$Gem$Page$markdownHref = F2(
7503
+ function (site_, target) {
7504
+ return A2(
7505
+ $author$project$Gem$Page$href,
7506
+ site_,
7507
+ $author$project$Gem$Page$markdownPath(target));
7508
+ });
7409
7509
  var $elm$core$Task$map3 = F4(
7410
7510
  function (func, taskA, taskB, taskC) {
7411
7511
  return A2(
@@ -7438,9 +7538,9 @@ var $author$project$Ui$Dropdown$measure = F2(
7438
7538
  var button = _v1.a;
7439
7539
  var menu = _v1.b;
7440
7540
  var viewport = _v1.c;
7441
- var spaceBelow = (viewport.dd.a4 - button.a_.bm) - button.a_.a4;
7442
- var menuHeight = menu.a_.a4;
7443
- var shouldFlip = (_Utils_cmp(spaceBelow, menuHeight) < 0) && (_Utils_cmp(button.a_.bm, menuHeight) > 0);
7541
+ var spaceBelow = (viewport.dd.a2 - button.bS.di) - button.bS.a2;
7542
+ var menuHeight = menu.bS.a2;
7543
+ var shouldFlip = (_Utils_cmp(spaceBelow, menuHeight) < 0) && (_Utils_cmp(button.bS.di, menuHeight) > 0);
7444
7544
  return toMsg(shouldFlip);
7445
7545
  } else {
7446
7546
  return toMsg(false);
@@ -7509,7 +7609,7 @@ var $elm$url$Url$addPrefixed = F3(
7509
7609
  });
7510
7610
  var $elm$url$Url$toString = function (url) {
7511
7611
  var http = function () {
7512
- var _v0 = url.be;
7612
+ var _v0 = url.bc;
7513
7613
  if (!_v0) {
7514
7614
  return 'http://';
7515
7615
  } else {
@@ -7519,35 +7619,35 @@ var $elm$url$Url$toString = function (url) {
7519
7619
  return A3(
7520
7620
  $elm$url$Url$addPrefixed,
7521
7621
  '#',
7522
- url.a2,
7622
+ url.b_,
7523
7623
  A3(
7524
7624
  $elm$url$Url$addPrefixed,
7525
7625
  '?',
7526
- url.m,
7626
+ url.n,
7527
7627
  _Utils_ap(
7528
7628
  A2(
7529
7629
  $elm$url$Url$addPort,
7530
- url.bb,
7531
- _Utils_ap(http, url.a5)),
7532
- url.aq)));
7630
+ url.a9,
7631
+ _Utils_ap(http, url.a3)),
7632
+ url.ar)));
7533
7633
  };
7534
7634
  var $author$project$Gem$App$origin = function (model) {
7535
- var url = model.I;
7635
+ var url = model.J;
7536
7636
  return A2(
7537
7637
  $elm$core$String$dropRight,
7538
7638
  1,
7539
7639
  $elm$url$Url$toString(
7540
7640
  _Utils_update(
7541
7641
  url,
7542
- {a2: $elm$core$Maybe$Nothing, aq: '/', m: $elm$core$Maybe$Nothing})));
7642
+ {b_: $elm$core$Maybe$Nothing, ar: '/', n: $elm$core$Maybe$Nothing})));
7543
7643
  };
7544
7644
  var $author$project$Gem$App$pageUrl = function (model) {
7545
- var _v0 = model.C;
7645
+ var _v0 = model.D;
7546
7646
  if (!_v0.$) {
7547
7647
  var page = _v0.a;
7548
7648
  return _Utils_ap(
7549
7649
  $author$project$Gem$App$origin(model),
7550
- $author$project$Gem$Page$markdownPath(page));
7650
+ A2($author$project$Gem$Page$markdownHref, model.a, page));
7551
7651
  } else {
7552
7652
  return $author$project$Gem$App$origin(model);
7553
7653
  }
@@ -7562,7 +7662,7 @@ var $author$project$Gem$App$resyncTabs = F3(
7562
7662
  });
7563
7663
  var $author$project$Gem$Ports$saveTheme = _Platform_outgoingPort('saveTheme', $elm$json$Json$Encode$string);
7564
7664
  var $author$project$Gem$App$searchEnabled = function (model) {
7565
- return model.b.aY.a3.u;
7665
+ return model.a.aF.aJ.u;
7566
7666
  };
7567
7667
  var $elm$core$Process$sleep = _Process_sleep;
7568
7668
  var $author$project$Gem$App$syncDocsTabs = F5(
@@ -7622,8 +7722,8 @@ var $author$project$Ui$Search$update = F2(
7622
7722
  {U: false}),
7623
7723
  $elm$core$Platform$Cmd$none);
7624
7724
  case 2:
7625
- var count = msg.a.aG;
7626
- var up = msg.a.aT;
7725
+ var count = msg.a.aH;
7726
+ var up = msg.a.aV;
7627
7727
  if (count <= 1) {
7628
7728
  return _Utils_Tuple2(
7629
7729
  _Utils_update(
@@ -7659,7 +7759,7 @@ var $author$project$Ui$Tabs$measure = F2(
7659
7759
  $elm$core$Task$map2,
7660
7760
  F2(
7661
7761
  function (track, button) {
7662
- return _Utils_Tuple2(button.a_.aE - track.a_.aE, button.a_.dg);
7762
+ return _Utils_Tuple2(button.bS.aE - track.bS.aE, button.bS.dg);
7663
7763
  }),
7664
7764
  $elm$browser$Browser$Dom$getElement(id),
7665
7765
  $elm$browser$Browser$Dom$getElement(buttonId));
@@ -7677,7 +7777,7 @@ var $author$project$Ui$Tabs$update = F2(
7677
7777
  A2(
7678
7778
  $elm$core$Task$attempt,
7679
7779
  $author$project$Ui$Tabs$Measured(index),
7680
- A2($author$project$Ui$Tabs$measure, model.a, index)));
7780
+ A2($author$project$Ui$Tabs$measure, model.b, index)));
7681
7781
  case 1:
7682
7782
  if (!msg.b.$) {
7683
7783
  var index = msg.a;
@@ -7687,14 +7787,14 @@ var $author$project$Ui$Tabs$update = F2(
7687
7787
  return (!_Utils_eq(index, model.ac)) ? _Utils_Tuple2(model, $elm$core$Platform$Cmd$none) : ((w <= 0) ? _Utils_Tuple2(
7688
7788
  _Utils_update(
7689
7789
  model,
7690
- {an: true, _: $elm$core$Maybe$Nothing}),
7790
+ {ao: true, _: $elm$core$Maybe$Nothing}),
7691
7791
  $elm$core$Platform$Cmd$none) : _Utils_Tuple2(
7692
7792
  _Utils_update(
7693
7793
  model,
7694
7794
  {
7695
- an: false,
7795
+ ao: false,
7696
7796
  _: $elm$core$Maybe$Just(
7697
- {bl: w, aE: x})
7797
+ {bj: w, aE: x})
7698
7798
  }),
7699
7799
  $elm$core$Platform$Cmd$none));
7700
7800
  } else {
@@ -7706,7 +7806,7 @@ var $author$project$Ui$Tabs$update = F2(
7706
7806
  A2(
7707
7807
  $elm$core$Task$attempt,
7708
7808
  $author$project$Ui$Tabs$Measured(model.ac),
7709
- A2($author$project$Ui$Tabs$measure, model.a, model.ac)));
7809
+ A2($author$project$Ui$Tabs$measure, model.b, model.ac)));
7710
7810
  }
7711
7811
  });
7712
7812
  var $author$project$Gem$App$update = F2(
@@ -7732,44 +7832,43 @@ var $author$project$Gem$App$update = F2(
7732
7832
  var url = msg.a;
7733
7833
  var page = A2(
7734
7834
  $author$project$Gem$Page$byRoute,
7735
- model.b,
7736
- $author$project$Gem$App$normalize(url.aq));
7835
+ model.a,
7836
+ A2($author$project$Gem$Page$routeOf, model.a, url.ar));
7737
7837
  var doc = A2(
7738
7838
  $author$project$Gem$Page$docFor,
7739
- model.b,
7740
- $author$project$Gem$App$normalize(url.aq));
7839
+ model.a,
7840
+ A2($author$project$Gem$Page$routeOf, model.a, url.ar));
7741
7841
  var next = _Utils_update(
7742
7842
  model,
7743
7843
  {
7744
- E: $elm$core$Maybe$Nothing,
7844
+ F: $elm$core$Maybe$Nothing,
7745
7845
  q: model.af ? model.q : $author$project$Gem$App$closeBurger(model.q),
7746
7846
  i: doc,
7747
- l: (!_Utils_eq(doc.a, model.i.a)) ? A3(
7847
+ m: (!_Utils_eq(doc.b, model.i.b)) ? A3(
7748
7848
  $author$project$Ui$Tabs$init,
7749
7849
  'docs-tabs',
7750
- A2($author$project$Gem$App$docsIndex, model.b, doc.a),
7751
- doc.a) : model.l,
7850
+ A2($author$project$Gem$App$docsIndex, model.a, doc.b),
7851
+ doc.b) : model.m,
7752
7852
  N: false,
7753
7853
  af: false,
7754
7854
  ah: $elm$core$Maybe$Nothing,
7755
- k: (!_Utils_eq(doc.a, model.i.a)) ? A3(
7855
+ l: (!_Utils_eq(doc.b, model.i.b)) ? A3(
7756
7856
  $author$project$Ui$Tabs$init,
7757
7857
  'burger-docs-tabs',
7758
- A2($author$project$Gem$App$docsIndex, model.b, doc.a),
7759
- doc.a) : model.k,
7760
- C: page,
7858
+ A2($author$project$Gem$App$docsIndex, model.a, doc.b),
7859
+ doc.b) : model.l,
7860
+ D: page,
7761
7861
  P: false,
7762
- m: '',
7862
+ n: '',
7763
7863
  x: false,
7764
7864
  R: false,
7765
- I: url
7865
+ J: url
7766
7866
  });
7767
7867
  return _Utils_Tuple2(
7768
7868
  next,
7769
7869
  $elm$core$Platform$Cmd$batch(
7770
7870
  _List_fromArray(
7771
7871
  [
7772
- $author$project$Gem$App$scrollTo(url),
7773
7872
  $author$project$Gem$App$measureAnchors(
7774
7873
  $author$project$Gem$App$pageAnchors(page)),
7775
7874
  $author$project$Gem$App$setMeta(next)
@@ -7779,13 +7878,13 @@ var $author$project$Gem$App$update = F2(
7779
7878
  return _Utils_Tuple2(
7780
7879
  _Utils_update(
7781
7880
  model,
7782
- {m: query}),
7881
+ {n: query}),
7783
7882
  $elm$core$Platform$Cmd$none);
7784
7883
  case 3:
7785
7884
  return _Utils_Tuple2(
7786
7885
  _Utils_update(
7787
7886
  model,
7788
- {m: ''}),
7887
+ {n: ''}),
7789
7888
  $elm$core$Platform$Cmd$none);
7790
7889
  case 4:
7791
7890
  var inner = msg.a;
@@ -7797,8 +7896,11 @@ var $author$project$Gem$App$update = F2(
7797
7896
  return _Utils_Tuple2(
7798
7897
  _Utils_update(
7799
7898
  model,
7800
- {m: '', u: search, x: false}),
7801
- A2($elm$browser$Browser$Navigation$pushUrl, model.ag, route));
7899
+ {n: '', u: search, x: false}),
7900
+ A2(
7901
+ $elm$browser$Browser$Navigation$pushUrl,
7902
+ model.ag,
7903
+ A2($author$project$Gem$Page$href, model.a, route)));
7802
7904
  } else {
7803
7905
  return _Utils_Tuple2(
7804
7906
  _Utils_update(
@@ -7822,7 +7924,7 @@ var $author$project$Gem$App$update = F2(
7822
7924
  _Utils_update(
7823
7925
  model,
7824
7926
  {
7825
- m: '',
7927
+ n: '',
7826
7928
  u: $author$project$Ui$Search$init('gem-search'),
7827
7929
  x: false
7828
7930
  }),
@@ -7833,12 +7935,12 @@ var $author$project$Gem$App$update = F2(
7833
7935
  _Utils_update(
7834
7936
  model,
7835
7937
  {
7836
- G: A2($elm$core$List$member, id, model.G) ? A2(
7938
+ H: A2($elm$core$List$member, id, model.H) ? A2(
7837
7939
  $elm$core$List$filter,
7838
7940
  function (open) {
7839
7941
  return !_Utils_eq(open, id);
7840
7942
  },
7841
- model.G) : A2($elm$core$List$cons, id, model.G)
7943
+ model.H) : A2($elm$core$List$cons, id, model.H)
7842
7944
  }),
7843
7945
  $elm$core$Platform$Cmd$none);
7844
7946
  case 8:
@@ -7853,14 +7955,14 @@ var $author$project$Gem$App$update = F2(
7853
7955
  A2($elm$core$Platform$Cmd$map, $author$project$Gem$App$BurgerMsg, command));
7854
7956
  case 9:
7855
7957
  var inner = msg.a;
7856
- var _v6 = A2($author$project$Ui$CopyButton$update, inner, model.K);
7958
+ var _v6 = A2($author$project$Ui$CopyButton$update, inner, model.L);
7857
7959
  var copy = _v6.a;
7858
7960
  var maybeText = _v6.b;
7859
7961
  var command = _v6.c;
7860
7962
  return _Utils_Tuple2(
7861
7963
  _Utils_update(
7862
7964
  model,
7863
- {K: copy}),
7965
+ {L: copy}),
7864
7966
  $elm$core$Platform$Cmd$batch(
7865
7967
  _List_fromArray(
7866
7968
  [
@@ -7876,57 +7978,57 @@ var $author$project$Gem$App$update = F2(
7876
7978
  ])));
7877
7979
  case 12:
7878
7980
  var tabsMsg = msg.a;
7879
- var _v8 = A2($author$project$Ui$Tabs$update, tabsMsg, model.l);
7981
+ var _v8 = A2($author$project$Ui$Tabs$update, tabsMsg, model.m);
7880
7982
  var docsTabs = _v8.a;
7881
7983
  var cmd = _v8.b;
7882
7984
  return _Utils_Tuple2(
7883
7985
  _Utils_update(
7884
7986
  model,
7885
7987
  {
7886
- i: A3($author$project$Gem$App$docAt, model.b, docsTabs.d, model.i),
7887
- l: docsTabs,
7888
- k: A5($author$project$Gem$App$syncDocsTabs, model.b, model.k, 'burger-docs-tabs', model.l.d, docsTabs.d)
7988
+ i: A3($author$project$Gem$App$docAt, model.a, docsTabs.d, model.i),
7989
+ m: docsTabs,
7990
+ l: A5($author$project$Gem$App$syncDocsTabs, model.a, model.l, 'burger-docs-tabs', model.m.d, docsTabs.d)
7889
7991
  }),
7890
7992
  $elm$core$Platform$Cmd$batch(
7891
7993
  _List_fromArray(
7892
7994
  [
7893
- A3($author$project$Gem$App$docNavigation, model, model.l, docsTabs),
7995
+ A3($author$project$Gem$App$docNavigation, model, model.m, docsTabs),
7894
7996
  A2($elm$core$Platform$Cmd$map, $author$project$Gem$App$DocsTabsMsg, cmd)
7895
7997
  ])));
7896
7998
  case 13:
7897
7999
  var tabsMsg = msg.a;
7898
- var _v9 = A2($author$project$Ui$Tabs$update, tabsMsg, model.k);
8000
+ var _v9 = A2($author$project$Ui$Tabs$update, tabsMsg, model.l);
7899
8001
  var menuDocsTabs = _v9.a;
7900
8002
  var cmd = _v9.b;
7901
- var switching = !_Utils_eq(menuDocsTabs.d, model.k.d);
8003
+ var switching = !_Utils_eq(menuDocsTabs.d, model.l.d);
7902
8004
  return _Utils_Tuple2(
7903
8005
  _Utils_update(
7904
8006
  model,
7905
8007
  {
7906
- i: A3($author$project$Gem$App$docAt, model.b, menuDocsTabs.d, model.i),
7907
- l: A5($author$project$Gem$App$syncDocsTabs, model.b, model.l, 'docs-tabs', model.k.d, menuDocsTabs.d),
8008
+ i: A3($author$project$Gem$App$docAt, model.a, menuDocsTabs.d, model.i),
8009
+ m: A5($author$project$Gem$App$syncDocsTabs, model.a, model.m, 'docs-tabs', model.l.d, menuDocsTabs.d),
7908
8010
  af: switching,
7909
- k: menuDocsTabs
8011
+ l: menuDocsTabs
7910
8012
  }),
7911
8013
  $elm$core$Platform$Cmd$batch(
7912
8014
  _List_fromArray(
7913
8015
  [
7914
- A3($author$project$Gem$App$docNavigation, model, model.k, menuDocsTabs),
8016
+ A3($author$project$Gem$App$docNavigation, model, model.l, menuDocsTabs),
7915
8017
  A2($elm$core$Platform$Cmd$map, $author$project$Gem$App$MenuDocsTabsMsg, cmd)
7916
8018
  ])));
7917
8019
  case 14:
7918
8020
  var tabsMsg = msg.a;
7919
- var _v10 = A2($author$project$Ui$Tabs$update, tabsMsg, model.D);
8021
+ var _v10 = A2($author$project$Ui$Tabs$update, tabsMsg, model.E);
7920
8022
  var themeTabs = _v10.a;
7921
8023
  var cmd = _v10.b;
7922
- var changed = !_Utils_eq(themeTabs.d, model.o);
8024
+ var changed = !_Utils_eq(themeTabs.d, model.j);
7923
8025
  return _Utils_Tuple2(
7924
8026
  _Utils_update(
7925
8027
  model,
7926
8028
  {
7927
- z: changed ? A3($author$project$Gem$App$resyncTabs, model.b.as, 'burger-theme-tabs', themeTabs.d) : model.z,
7928
- o: themeTabs.d,
7929
- D: themeTabs
8029
+ A: changed ? A3($author$project$Gem$App$resyncTabs, model.a.at, 'burger-theme-tabs', themeTabs.d) : model.A,
8030
+ j: themeTabs.d,
8031
+ E: themeTabs
7930
8032
  }),
7931
8033
  $elm$core$Platform$Cmd$batch(
7932
8034
  _List_fromArray(
@@ -7936,17 +8038,17 @@ var $author$project$Gem$App$update = F2(
7936
8038
  ])));
7937
8039
  case 15:
7938
8040
  var tabsMsg = msg.a;
7939
- var _v11 = A2($author$project$Ui$Tabs$update, tabsMsg, model.z);
8041
+ var _v11 = A2($author$project$Ui$Tabs$update, tabsMsg, model.A);
7940
8042
  var menuTabs = _v11.a;
7941
8043
  var cmd = _v11.b;
7942
- var changed = !_Utils_eq(menuTabs.d, model.o);
8044
+ var changed = !_Utils_eq(menuTabs.d, model.j);
7943
8045
  return _Utils_Tuple2(
7944
8046
  _Utils_update(
7945
8047
  model,
7946
8048
  {
7947
- z: menuTabs,
7948
- o: menuTabs.d,
7949
- D: changed ? A3($author$project$Gem$App$resyncTabs, model.b.as, 'docs-theme-tabs', menuTabs.d) : model.D
8049
+ A: menuTabs,
8050
+ j: menuTabs.d,
8051
+ E: changed ? A3($author$project$Gem$App$resyncTabs, model.a.at, 'docs-theme-tabs', menuTabs.d) : model.E
7950
8052
  }),
7951
8053
  $elm$core$Platform$Cmd$batch(
7952
8054
  _List_fromArray(
@@ -7955,11 +8057,11 @@ var $author$project$Gem$App$update = F2(
7955
8057
  A2($elm$core$Platform$Cmd$map, $author$project$Gem$App$MenuTabsMsg, cmd)
7956
8058
  ])));
7957
8059
  case 16:
7958
- var opening = !model.F;
8060
+ var opening = !model.G;
7959
8061
  return _Utils_Tuple2(
7960
8062
  _Utils_update(
7961
8063
  model,
7962
- {T: false, F: opening}),
8064
+ {T: false, G: opening}),
7963
8065
  opening ? A2($author$project$Ui$Dropdown$measure, $author$project$Gem$App$AiFlipped, 'ai-dropdown') : $elm$core$Platform$Cmd$none);
7964
8066
  case 17:
7965
8067
  var flip = msg.a;
@@ -7973,14 +8075,14 @@ var $author$project$Gem$App$update = F2(
7973
8075
  return _Utils_Tuple2(
7974
8076
  _Utils_update(
7975
8077
  model,
7976
- {F: false}),
8078
+ {G: false}),
7977
8079
  $author$project$Gem$Ports$openExternal(
7978
8080
  A2(
7979
8081
  $author$project$Gem$App$chatbotUrl,
7980
8082
  botId,
7981
8083
  $author$project$Gem$App$pageUrl(model))));
7982
8084
  case 10:
7983
- var _v12 = model.C;
8085
+ var _v12 = model.D;
7984
8086
  if (!_v12.$) {
7985
8087
  var page = _v12.a;
7986
8088
  return _Utils_Tuple2(
@@ -7991,7 +8093,7 @@ var $author$project$Gem$App$update = F2(
7991
8093
  _List_fromArray(
7992
8094
  [
7993
8095
  $author$project$Gem$Ports$copyMarkdown(
7994
- $author$project$Gem$Page$markdownPath(page)),
8096
+ A2($author$project$Gem$Page$markdownHref, model.a, page)),
7995
8097
  A2(
7996
8098
  $elm$core$Task$perform,
7997
8099
  function (_v13) {
@@ -8014,13 +8116,13 @@ var $author$project$Gem$App$update = F2(
8014
8116
  _Utils_update(
8015
8117
  model,
8016
8118
  {
8017
- E: function () {
8119
+ F: function () {
8018
8120
  var _v14 = model.ah;
8019
8121
  if (!_v14.$) {
8020
8122
  var measurements = _v14.a;
8021
8123
  return A2($author$project$Gem$App$activeAt, scrollY, measurements);
8022
8124
  } else {
8023
- return model.E;
8125
+ return model.F;
8024
8126
  }
8025
8127
  }(),
8026
8128
  N: (scrollY < 96) ? false : ((_Utils_cmp(scrollY, model.Z + 2) > 0) ? true : ((_Utils_cmp(scrollY, model.Z - 2) < 0) ? false : model.N)),
@@ -8039,7 +8141,7 @@ var $author$project$Gem$App$update = F2(
8039
8141
  _Utils_update(
8040
8142
  model,
8041
8143
  {
8042
- E: A2($author$project$Gem$App$activeAt, model.Z, measurements),
8144
+ F: A2($author$project$Gem$App$activeAt, model.Z, measurements),
8043
8145
  ah: $elm$core$Maybe$Just(measurements)
8044
8146
  }),
8045
8147
  $elm$core$Platform$Cmd$none);
@@ -8054,8 +8156,6 @@ var $author$project$Gem$App$update = F2(
8054
8156
  return $author$project$Gem$App$Noop;
8055
8157
  },
8056
8158
  $elm$browser$Browser$Dom$focus('gem-search-input'))) : _Utils_Tuple2(model, $elm$core$Platform$Cmd$none);
8057
- case 23:
8058
- return _Utils_Tuple2(model, $elm$core$Platform$Cmd$none);
8059
8159
  default:
8060
8160
  return _Utils_Tuple2(model, $elm$core$Platform$Cmd$none);
8061
8161
  }
@@ -8083,13 +8183,6 @@ var $elm$html$Html$Attributes$stringProperty = F2(
8083
8183
  var $elm$html$Html$Attributes$class = $elm$html$Html$Attributes$stringProperty('className');
8084
8184
  var $elm$html$Html$code = _VirtualDom_node('code');
8085
8185
  var $elm$html$Html$div = _VirtualDom_node('div');
8086
- var $elm$core$List$isEmpty = function (xs) {
8087
- if (!xs.b) {
8088
- return true;
8089
- } else {
8090
- return false;
8091
- }
8092
- };
8093
8186
  var $elm$html$Html$span = _VirtualDom_node('span');
8094
8187
  var $elm$virtual_dom$VirtualDom$text = _VirtualDom_text;
8095
8188
  var $elm$html$Html$text = $elm$virtual_dom$VirtualDom$text;
@@ -8203,7 +8296,7 @@ var $author$project$Gem$Render$token = function (value) {
8203
8296
  $elm$html$Html$span,
8204
8297
  _Utils_ap(
8205
8298
  function () {
8206
- var _v0 = value.bD;
8299
+ var _v0 = value.bB;
8207
8300
  if (!_v0.$) {
8208
8301
  var color = _v0.a;
8209
8302
  return _List_fromArray(
@@ -8219,7 +8312,7 @@ var $author$project$Gem$Render$token = function (value) {
8219
8312
  [
8220
8313
  A2($elm$html$Html$Attributes$style, 'font-style', 'italic')
8221
8314
  ]) : _List_Nil,
8222
- value.bv ? _List_fromArray(
8315
+ value.bt ? _List_fromArray(
8223
8316
  [
8224
8317
  A2($elm$html$Html$Attributes$style, 'font-weight', '620')
8225
8318
  ]) : _List_Nil)),
@@ -8328,7 +8421,7 @@ var $author$project$Ui$Button$view = function (config) {
8328
8421
  },
8329
8422
  $author$project$Ui$Button$sizeClass(config.cY)));
8330
8423
  var label = function () {
8331
- var _v0 = config.bw;
8424
+ var _v0 = config.bu;
8332
8425
  if (!_v0.$) {
8333
8426
  var busyLabel = _v0.a;
8334
8427
  return busyLabel;
@@ -8349,11 +8442,11 @@ var $author$project$Ui$Button$view = function (config) {
8349
8442
  true),
8350
8443
  sizeAttrs)),
8351
8444
  $elm$html$Html$Attributes$disabled(
8352
- config.bO || (!_Utils_eq(config.bw, $elm$core$Maybe$Nothing))),
8445
+ config.bM || (!_Utils_eq(config.bu, $elm$core$Maybe$Nothing))),
8353
8446
  $elm$html$Html$Attributes$type_('button'),
8354
8447
  $elm$html$Html$Events$onClick(config.co)
8355
8448
  ]),
8356
- config.aV),
8449
+ config.aX),
8357
8450
  function (icon) {
8358
8451
  return _Utils_ap(
8359
8452
  icon,
@@ -8376,14 +8469,14 @@ var $author$project$Ui$Button$view = function (config) {
8376
8469
  var $author$project$Gem$App$languageButton = function (name) {
8377
8470
  return $author$project$Ui$Button$view(
8378
8471
  {
8379
- aV: _List_fromArray(
8472
+ aX: _List_fromArray(
8380
8473
  [
8381
8474
  $elm$html$Html$Attributes$class('code-lang'),
8382
8475
  A2($elm$html$Html$Attributes$attribute, 'tabindex', '-1'),
8383
8476
  A2($elm$html$Html$Attributes$attribute, 'aria-hidden', 'true')
8384
8477
  ]),
8385
- bw: $elm$core$Maybe$Nothing,
8386
- bO: false,
8478
+ bu: $elm$core$Maybe$Nothing,
8479
+ bM: false,
8387
8480
  b3: $elm$core$Maybe$Nothing,
8388
8481
  c: name,
8389
8482
  co: $author$project$Gem$App$Noop,
@@ -9120,7 +9213,7 @@ var $author$project$Ui$CopyButton$view = F2(
9120
9213
  $elm$html$Html$Events$onClick(
9121
9214
  $author$project$Ui$CopyButton$Copy(config.v))
9122
9215
  ]),
9123
- config.aV),
9216
+ config.aX),
9124
9217
  _List_fromArray(
9125
9218
  [
9126
9219
  copied ? $author$project$Ui$Icon$view(3) : $author$project$Ui$Icon$view(4)
@@ -9139,7 +9232,7 @@ var $author$project$Gem$App$codeView = F2(
9139
9232
  A4(
9140
9233
  $author$project$Gem$Render$codeHead,
9141
9234
  $author$project$Gem$App$languageButton,
9142
- code.a6,
9235
+ code.a4,
9143
9236
  code.p,
9144
9237
  _List_fromArray(
9145
9238
  [
@@ -9149,14 +9242,14 @@ var $author$project$Gem$App$codeView = F2(
9149
9242
  A2(
9150
9243
  $author$project$Ui$CopyButton$view,
9151
9244
  {
9152
- aV: _List_fromArray(
9245
+ aX: _List_fromArray(
9153
9246
  [
9154
9247
  $elm$html$Html$Attributes$class('code-copy secondary xs')
9155
9248
  ]),
9156
9249
  c: 'Copy code',
9157
9250
  v: code.v
9158
9251
  },
9159
- model.K))
9252
+ model.L))
9160
9253
  ])),
9161
9254
  A2(
9162
9255
  $elm$html$Html$div,
@@ -9210,11 +9303,11 @@ var $author$project$Gem$App$hitHasPhrase = F2(
9210
9303
  $elm$core$String$contains,
9211
9304
  phrase,
9212
9305
  $elm$core$String$toLower(
9213
- A2($elm$core$Maybe$withDefault, '', hit.L))) || A2($elm$core$String$contains, phrase, hit.v));
9306
+ A2($elm$core$Maybe$withDefault, '', hit.M))) || A2($elm$core$String$contains, phrase, hit.v));
9214
9307
  });
9215
9308
  var $author$project$Gem$App$inDoc = F2(
9216
9309
  function (doc, route) {
9217
- return _Utils_eq(route, doc.aB) || (A2($elm$core$String$startsWith, doc.aO + '/', route) || ((doc.aO === '/') && A2($elm$core$String$startsWith, '/', route)));
9310
+ return _Utils_eq(route, doc.aB) || (A2($elm$core$String$startsWith, doc.aQ + '/', route) || ((doc.aQ === '/') && A2($elm$core$String$startsWith, '/', route)));
9218
9311
  });
9219
9312
  var $elm$core$List$all = F2(
9220
9313
  function (isOkay, list) {
@@ -9233,7 +9326,7 @@ var $author$project$Gem$App$scoreHit = F3(
9233
9326
  $elm$core$String$trim(query));
9234
9327
  var label = $elm$core$String$toLower(hit.c);
9235
9328
  var detail = $elm$core$String$toLower(
9236
- A2($elm$core$Maybe$withDefault, '', hit.L));
9329
+ A2($elm$core$Maybe$withDefault, '', hit.M));
9237
9330
  var wordScore = function (word) {
9238
9331
  return (((A2($elm$core$String$contains, word, label) ? 6 : 0) + (A2(
9239
9332
  $elm$core$List$any,
@@ -9381,18 +9474,18 @@ var $author$project$Gem$App$results = function (model) {
9381
9474
  $elm$core$List$filter,
9382
9475
  A2($elm$core$Basics$composeR, $elm$core$String$isEmpty, $elm$core$Basics$not),
9383
9476
  $elm$core$String$words(
9384
- $elm$core$String$toLower(model.m)));
9477
+ $elm$core$String$toLower(model.n)));
9385
9478
  var toItem = function (hit) {
9386
- return {L: hit.L, c: hit.c, aj: hit.aj, bk: hit.n};
9479
+ return {M: hit.M, c: hit.c, aj: hit.aj, bi: hit.o};
9387
9480
  };
9388
9481
  var scorable = A2(
9389
9482
  $elm$core$List$filter,
9390
9483
  function (hit) {
9391
- return A2($author$project$Gem$App$inDoc, model.i, hit.n);
9484
+ return A2($author$project$Gem$App$inDoc, model.i, hit.o);
9392
9485
  },
9393
9486
  model.az);
9394
9487
  var phrase = $elm$core$String$toLower(
9395
- $elm$core$String$trim(model.m));
9488
+ $elm$core$String$trim(model.n));
9396
9489
  var phraseMatches = A2(
9397
9490
  $elm$core$List$filter,
9398
9491
  $author$project$Gem$App$hitHasPhrase(phrase),
@@ -9402,10 +9495,10 @@ var $author$project$Gem$App$results = function (model) {
9402
9495
  $elm$core$List$map,
9403
9496
  function (entry) {
9404
9497
  return {
9405
- L: $elm$core$Maybe$Nothing,
9498
+ M: $elm$core$Maybe$Nothing,
9406
9499
  c: entry.p,
9407
- aj: $author$project$Gem$App$nonEmpty(entry.aS),
9408
- bk: entry.n
9500
+ aj: $author$project$Gem$App$nonEmpty(entry.aU),
9501
+ bi: entry.o
9409
9502
  };
9410
9503
  },
9411
9504
  A2(
@@ -9414,9 +9507,9 @@ var $author$project$Gem$App$results = function (model) {
9414
9507
  A2(
9415
9508
  $elm$core$List$filter,
9416
9509
  function (entry) {
9417
- return A2($author$project$Gem$App$inDoc, model.i, entry.n);
9510
+ return A2($author$project$Gem$App$inDoc, model.i, entry.o);
9418
9511
  },
9419
- model.b.aH))) : A2(
9512
+ model.a.aI))) : A2(
9420
9513
  $elm$core$List$map,
9421
9514
  A2($elm$core$Basics$composeR, $elm$core$Tuple$second, toItem),
9422
9515
  A2(
@@ -9427,7 +9520,7 @@ var $author$project$Gem$App$results = function (model) {
9427
9520
  $author$project$Gem$App$compareScored,
9428
9521
  A2(
9429
9522
  $elm$core$List$filterMap,
9430
- A2($author$project$Gem$App$scoreHit, model.m, words),
9523
+ A2($author$project$Gem$App$scoreHit, model.n, words),
9431
9524
  candidates))));
9432
9525
  };
9433
9526
  var $author$project$Ui$Burger$Toggled = {$: 0};
@@ -9436,9 +9529,9 @@ var $author$project$Gem$Shell$docsChoices = function (config) {
9436
9529
  return A2(
9437
9530
  $elm$core$List$map,
9438
9531
  function (doc) {
9439
- return {b3: $elm$core$Maybe$Nothing, c: doc.c, bk: doc.a};
9532
+ return {b3: $elm$core$Maybe$Nothing, c: doc.c, bi: doc.b};
9440
9533
  },
9441
- config.M);
9534
+ config.z);
9442
9535
  };
9443
9536
  var $author$project$Ui$Tabs$Select = F2(
9444
9537
  function (a, b) {
@@ -9451,7 +9544,7 @@ var $author$project$Ui$Tabs$view = F2(
9451
9544
  var thumb = function () {
9452
9545
  var _v2 = model._;
9453
9546
  if (!_v2.$) {
9454
- var w = _v2.a.bl;
9547
+ var w = _v2.a.bj;
9455
9548
  var x = _v2.a.aE;
9456
9549
  return _List_fromArray(
9457
9550
  [
@@ -9503,18 +9596,18 @@ var $author$project$Ui$Tabs$view = F2(
9503
9596
  [
9504
9597
  _Utils_Tuple2(
9505
9598
  'active',
9506
- _Utils_eq(choice.bk, model.d))
9599
+ _Utils_eq(choice.bi, model.d))
9507
9600
  ])),
9508
9601
  $elm$html$Html$Attributes$id(
9509
- model.a + ('-' + $elm$core$String$fromInt(index))),
9602
+ model.b + ('-' + $elm$core$String$fromInt(index))),
9510
9603
  $elm$html$Html$Attributes$type_('button'),
9511
9604
  A2($elm$html$Html$Attributes$attribute, 'role', 'tab'),
9512
9605
  A2(
9513
9606
  $elm$html$Html$Attributes$attribute,
9514
9607
  'aria-selected',
9515
- _Utils_eq(choice.bk, model.d) ? 'true' : 'false'),
9608
+ _Utils_eq(choice.bi, model.d) ? 'true' : 'false'),
9516
9609
  $elm$html$Html$Events$onClick(
9517
- A2($author$project$Ui$Tabs$Select, index, choice.bk))
9610
+ A2($author$project$Ui$Tabs$Select, index, choice.bi))
9518
9611
  ]),
9519
9612
  function () {
9520
9613
  var _v0 = choice.b3;
@@ -9547,29 +9640,29 @@ var $author$project$Ui$Tabs$view = F2(
9547
9640
  'measured',
9548
9641
  !_Utils_eq(model._, $elm$core$Maybe$Nothing)),
9549
9642
  sizeClass))),
9550
- $elm$html$Html$Attributes$id(model.a),
9643
+ $elm$html$Html$Attributes$id(model.b),
9551
9644
  A2($elm$html$Html$Attributes$attribute, 'role', 'tablist')
9552
9645
  ]),
9553
- config.aV),
9646
+ config.aX),
9554
9647
  _Utils_ap(
9555
9648
  thumb,
9556
- A2($elm$core$List$indexedMap, button_, config.aw)));
9649
+ A2($elm$core$List$indexedMap, button_, config.ax)));
9557
9650
  });
9558
9651
  var $author$project$Gem$Shell$menuDocsTabsView = function (config) {
9559
- return ($elm$core$List$length(config.M) < 2) ? $elm$html$Html$text('') : A2(
9652
+ return ($elm$core$List$length(config.z) < 2) ? $elm$html$Html$text('') : A2(
9560
9653
  $elm$html$Html$map,
9561
9654
  config.cy,
9562
9655
  A2(
9563
9656
  $author$project$Ui$Tabs$view,
9564
9657
  {
9565
- aV: _List_fromArray(
9658
+ aX: _List_fromArray(
9566
9659
  [
9567
9660
  $elm$html$Html$Attributes$class('docs-tabs')
9568
9661
  ]),
9569
- aw: $author$project$Gem$Shell$docsChoices(config),
9662
+ ax: $author$project$Gem$Shell$docsChoices(config),
9570
9663
  cY: 1
9571
9664
  },
9572
- config.k));
9665
+ config.l));
9573
9666
  };
9574
9667
  var $author$project$Gem$Shell$themeIcon = function (kind) {
9575
9668
  return A2(
@@ -9653,7 +9746,7 @@ var $author$project$Gem$Shell$themeChoices = function (system) {
9653
9746
  b3: $elm$core$Maybe$Just(
9654
9747
  $author$project$Gem$Shell$themeIcon('light')),
9655
9748
  c: '',
9656
- bk: 'light'
9749
+ bi: 'light'
9657
9750
  }
9658
9751
  ]),
9659
9752
  _Utils_ap(
@@ -9663,7 +9756,7 @@ var $author$project$Gem$Shell$themeChoices = function (system) {
9663
9756
  b3: $elm$core$Maybe$Just(
9664
9757
  $author$project$Gem$Shell$themeIcon('system')),
9665
9758
  c: '',
9666
- bk: 'system'
9759
+ bi: 'system'
9667
9760
  }
9668
9761
  ]) : _List_Nil,
9669
9762
  _List_fromArray(
@@ -9672,14 +9765,14 @@ var $author$project$Gem$Shell$themeChoices = function (system) {
9672
9765
  b3: $elm$core$Maybe$Just(
9673
9766
  $author$project$Gem$Shell$themeIcon('dark')),
9674
9767
  c: '',
9675
- bk: 'dark'
9768
+ bi: 'dark'
9676
9769
  }
9677
9770
  ])));
9678
9771
  };
9679
9772
  var $author$project$Gem$Shell$burgerControls = function (config) {
9680
- var chrome = config.b.aY.a3;
9773
+ var chrome = config.a.aF.aJ;
9681
9774
  var parts = _Utils_ap(
9682
- chrome.o ? _List_fromArray(
9775
+ chrome.j ? _List_fromArray(
9683
9776
  [
9684
9777
  A2(
9685
9778
  $elm$html$Html$map,
@@ -9687,13 +9780,13 @@ var $author$project$Gem$Shell$burgerControls = function (config) {
9687
9780
  A2(
9688
9781
  $author$project$Ui$Tabs$view,
9689
9782
  {
9690
- aV: _List_Nil,
9691
- aw: $author$project$Gem$Shell$themeChoices(config.b.as),
9783
+ aX: _List_Nil,
9784
+ ax: $author$project$Gem$Shell$themeChoices(config.a.at),
9692
9785
  cY: 1
9693
9786
  },
9694
- config.z))
9787
+ config.A))
9695
9788
  ]) : _List_Nil,
9696
- (chrome.M && ($elm$core$List$length(config.M) > 1)) ? _List_fromArray(
9789
+ (chrome.z && ($elm$core$List$length(config.z) > 1)) ? _List_fromArray(
9697
9790
  [
9698
9791
  $author$project$Gem$Shell$menuDocsTabsView(config)
9699
9792
  ]) : _List_Nil);
@@ -9718,25 +9811,49 @@ var $elm$html$Html$Attributes$src = function (url) {
9718
9811
  'src',
9719
9812
  _VirtualDom_noJavaScriptOrHtmlUri(url));
9720
9813
  };
9721
- var $author$project$Gem$Shell$logoView = F2(
9722
- function (label, config) {
9723
- var _v0 = config.b.ap.ce;
9724
- if (!_v0.$) {
9725
- var src = _v0.a;
9726
- return A3(
9727
- $elm$html$Html$node,
9728
- 'img',
9729
- _List_fromArray(
9730
- [
9731
- $elm$html$Html$Attributes$class('site-logo'),
9732
- $elm$html$Html$Attributes$src(src),
9733
- $elm$html$Html$Attributes$alt(label)
9734
- ]),
9735
- _List_Nil);
9736
- } else {
9737
- return $elm$html$Html$text(label);
9738
- }
9739
- });
9814
+ var $author$project$Gem$Shell$logoView = function (config) {
9815
+ var logo = config.a.aq.a5;
9816
+ var wordmark = $elm$core$String$isEmpty(logo) ? _List_Nil : _List_fromArray(
9817
+ [
9818
+ A2(
9819
+ $elm$html$Html$span,
9820
+ _List_fromArray(
9821
+ [
9822
+ $elm$html$Html$Attributes$class('site-brand-text')
9823
+ ]),
9824
+ _List_fromArray(
9825
+ [
9826
+ $elm$html$Html$text(logo)
9827
+ ]))
9828
+ ]);
9829
+ var label = $elm$core$String$isEmpty(logo) ? config.a.aq.p : logo;
9830
+ var _v0 = config.a.aq.ce;
9831
+ if (!_v0.$) {
9832
+ var src = _v0.a;
9833
+ return A2(
9834
+ $elm$html$Html$span,
9835
+ _List_fromArray(
9836
+ [
9837
+ $elm$html$Html$Attributes$class('site-brand')
9838
+ ]),
9839
+ A2(
9840
+ $elm$core$List$cons,
9841
+ A3(
9842
+ $elm$html$Html$node,
9843
+ 'img',
9844
+ _List_fromArray(
9845
+ [
9846
+ $elm$html$Html$Attributes$class('site-logo'),
9847
+ $elm$html$Html$Attributes$src(
9848
+ A2($author$project$Gem$Page$href, config.a, src)),
9849
+ $elm$html$Html$Attributes$alt(label)
9850
+ ]),
9851
+ _List_Nil),
9852
+ wordmark));
9853
+ } else {
9854
+ return $elm$html$Html$text(label);
9855
+ }
9856
+ };
9740
9857
  var $author$project$Ui$Sidebar$Unlabeled = function (a) {
9741
9858
  return {$: 0, a: a};
9742
9859
  };
@@ -9747,23 +9864,20 @@ var $author$project$Ui$Sidebar$Group = F3(
9747
9864
  var $author$project$Ui$Sidebar$Href = function (a) {
9748
9865
  return {$: 0, a: a};
9749
9866
  };
9750
- var $author$project$Gem$Shell$normalize = function (path) {
9751
- var trimmed = (($elm$core$String$length(path) > 1) && A2($elm$core$String$endsWith, '/', path)) ? A2($elm$core$String$dropRight, 1, path) : path;
9752
- return (trimmed === '') ? '/' : trimmed;
9753
- };
9754
9867
  var $author$project$Gem$Shell$isActive = F2(
9755
- function (path, route) {
9868
+ function (config, route) {
9756
9869
  return _Utils_eq(
9757
- $author$project$Gem$Shell$normalize(path),
9758
- $author$project$Gem$Shell$normalize(route));
9870
+ A2($author$project$Gem$Page$routeOf, config.a, config.J.ar),
9871
+ route);
9759
9872
  });
9760
9873
  var $author$project$Gem$Shell$navItem = F3(
9761
9874
  function (config, label, route) {
9762
9875
  return {
9763
- d: A2($author$project$Gem$Shell$isActive, config.I.aq, route),
9876
+ d: A2($author$project$Gem$Shell$isActive, config, route),
9764
9877
  b3: $elm$core$Maybe$Nothing,
9765
9878
  c: label,
9766
- c3: $author$project$Ui$Sidebar$Href(route)
9879
+ c3: $author$project$Ui$Sidebar$Href(
9880
+ A2($author$project$Gem$Page$href, config.a, route))
9767
9881
  };
9768
9882
  });
9769
9883
  var $author$project$Gem$Shell$pageItem = F2(
@@ -9771,7 +9885,7 @@ var $author$project$Gem$Shell$pageItem = F2(
9771
9885
  if (!item.$) {
9772
9886
  var page = item.a;
9773
9887
  return $elm$core$Maybe$Just(
9774
- A3($author$project$Gem$Shell$navItem, config, page.p, page.n));
9888
+ A3($author$project$Gem$Shell$navItem, config, page.p, page.o));
9775
9889
  } else {
9776
9890
  return $elm$core$Maybe$Nothing;
9777
9891
  }
@@ -9785,7 +9899,7 @@ var $author$project$Gem$Shell$categorySection = F2(
9785
9899
  return $elm$core$Maybe$Just(
9786
9900
  A3(
9787
9901
  $author$project$Ui$Sidebar$Group,
9788
- {ag: category.a, c: category.c},
9902
+ {ag: category.b, c: category.c},
9789
9903
  A2(
9790
9904
  $elm$core$List$filterMap,
9791
9905
  $author$project$Gem$Shell$pageItem(config),
@@ -9800,11 +9914,11 @@ var $author$project$Gem$Shell$sections = function (config) {
9800
9914
  var rootItems = A2(
9801
9915
  $elm$core$List$filterMap,
9802
9916
  $author$project$Gem$Shell$pageItem(config),
9803
- config.aK);
9917
+ config.aM);
9804
9918
  var groups = A2(
9805
9919
  $elm$core$List$filterMap,
9806
9920
  $author$project$Gem$Shell$categorySection(config),
9807
- config.aK);
9921
+ config.aM);
9808
9922
  return _Utils_ap(
9809
9923
  $elm$core$List$isEmpty(rootItems) ? _List_Nil : _List_fromArray(
9810
9924
  [
@@ -10107,7 +10221,7 @@ var $author$project$Ui$Sidebar$view = function (config) {
10107
10221
  _Utils_Tuple2('narrow', config.ch)
10108
10222
  ]))
10109
10223
  ]),
10110
- config.aV),
10224
+ config.aX),
10111
10225
  A2(
10112
10226
  $elm$core$List$cons,
10113
10227
  A2(
@@ -10118,7 +10232,7 @@ var $author$project$Ui$Sidebar$view = function (config) {
10118
10232
  ]),
10119
10233
  A2(
10120
10234
  $elm$core$List$concatMap,
10121
- A2($author$project$Ui$Sidebar$sectionNode, config.cH, config.G),
10235
+ A2($author$project$Ui$Sidebar$sectionNode, config.cH, config.H),
10122
10236
  config.cW)),
10123
10237
  function () {
10124
10238
  var _v0 = config.a1;
@@ -10144,8 +10258,8 @@ var $author$project$Gem$Shell$sidebarView = F2(
10144
10258
  function (config, attributes) {
10145
10259
  return $author$project$Ui$Sidebar$view(
10146
10260
  {
10147
- aV: attributes,
10148
- G: config.G,
10261
+ aX: attributes,
10262
+ H: config.H,
10149
10263
  a1: $elm$core$Maybe$Nothing,
10150
10264
  ch: false,
10151
10265
  cH: $elm$core$Maybe$Just(config.cH),
@@ -10210,7 +10324,7 @@ var $author$project$Ui$Burger$view = F2(
10210
10324
  _Utils_Tuple2('open', shown)
10211
10325
  ]))
10212
10326
  ]),
10213
- config.aV),
10327
+ config.aX),
10214
10328
  _List_fromArray(
10215
10329
  [
10216
10330
  A2(
@@ -10218,11 +10332,11 @@ var $author$project$Ui$Burger$view = F2(
10218
10332
  _List_fromArray(
10219
10333
  [
10220
10334
  $elm$html$Html$Attributes$class('burger-toggle'),
10221
- $elm$html$Html$Events$onClick(config.aM),
10335
+ $elm$html$Html$Events$onClick(config.aO),
10222
10336
  A2(
10223
10337
  $elm$html$Html$Attributes$attribute,
10224
10338
  'aria-expanded',
10225
- model.aN ? 'true' : 'false'),
10339
+ model.aP ? 'true' : 'false'),
10226
10340
  A2($elm$html$Html$Attributes$attribute, 'aria-controls', 'burger-drawer'),
10227
10341
  A2($elm$html$Html$Attributes$attribute, 'aria-label', 'Open menu')
10228
10342
  ]),
@@ -10283,7 +10397,7 @@ var $author$project$Ui$Burger$view = F2(
10283
10397
  'transform',
10284
10398
  'translateY(calc(-100% + ' + ($elm$core$String$fromFloat(progress * 100) + '%))'))
10285
10399
  ]),
10286
- config.aV)),
10400
+ config.aX)),
10287
10401
  _Utils_ap(
10288
10402
  _List_fromArray(
10289
10403
  [
@@ -10298,7 +10412,7 @@ var $author$project$Ui$Burger$view = F2(
10298
10412
  A2(
10299
10413
  $elm$core$Maybe$withDefault,
10300
10414
  $elm$html$Html$text(''),
10301
- config.a7),
10415
+ config.a5),
10302
10416
  A2(
10303
10417
  $elm$html$Html$button,
10304
10418
  _List_fromArray(
@@ -10322,7 +10436,7 @@ var $author$project$Ui$Burger$view = F2(
10322
10436
  $elm$html$Html$Attributes$class('burger-content')
10323
10437
  ]),
10324
10438
  function () {
10325
- var _v0 = config.a3;
10439
+ var _v0 = config.aJ;
10326
10440
  if (!_v0.$) {
10327
10441
  var header = _v0.a;
10328
10442
  return _List_fromArray(
@@ -10347,8 +10461,8 @@ var $author$project$Gem$Shell$drawer = function (config) {
10347
10461
  return A2(
10348
10462
  $author$project$Ui$Burger$view,
10349
10463
  {
10350
- aV: _List_Nil,
10351
- a3: $elm$core$Maybe$Just(
10464
+ aX: _List_Nil,
10465
+ aJ: $elm$core$Maybe$Just(
10352
10466
  A2(
10353
10467
  $elm$html$Html$div,
10354
10468
  _List_fromArray(
@@ -10370,7 +10484,7 @@ var $author$project$Gem$Shell$drawer = function (config) {
10370
10484
  ]))
10371
10485
  ]))),
10372
10486
  c: 'Menu',
10373
- a7: $elm$core$Maybe$Just(
10487
+ a5: $elm$core$Maybe$Just(
10374
10488
  A2(
10375
10489
  $elm$html$Html$span,
10376
10490
  _List_fromArray(
@@ -10379,10 +10493,10 @@ var $author$project$Gem$Shell$drawer = function (config) {
10379
10493
  ]),
10380
10494
  _List_fromArray(
10381
10495
  [
10382
- A2($author$project$Gem$Shell$logoView, config.b.ap.a7, config)
10496
+ $author$project$Gem$Shell$logoView(config)
10383
10497
  ]))),
10384
10498
  cp: config.cl($author$project$Ui$Burger$Closed),
10385
- aM: config.cl($author$project$Ui$Burger$Toggled)
10499
+ aO: config.cl($author$project$Ui$Burger$Toggled)
10386
10500
  },
10387
10501
  config.q);
10388
10502
  };
@@ -10431,7 +10545,7 @@ var $author$project$Gem$CharmSticker$view = A2(
10431
10545
  ]))
10432
10546
  ]));
10433
10547
  var $author$project$Gem$Shell$footerView = function (config) {
10434
- var footer = config.b.aY.a1;
10548
+ var footer = config.a.aF.a1;
10435
10549
  var column = function (view_) {
10436
10550
  return A2(
10437
10551
  $elm$html$Html$div,
@@ -10466,7 +10580,8 @@ var $author$project$Gem$Shell$footerView = function (config) {
10466
10580
  $elm$html$Html$a,
10467
10581
  _List_fromArray(
10468
10582
  [
10469
- $elm$html$Html$Attributes$href(link.b2)
10583
+ $elm$html$Html$Attributes$href(
10584
+ A2($author$project$Gem$Page$href, config.a, link.b2))
10470
10585
  ]),
10471
10586
  _List_fromArray(
10472
10587
  [
@@ -10495,7 +10610,7 @@ var $author$project$Gem$Shell$footerView = function (config) {
10495
10610
  ]),
10496
10611
  _List_fromArray(
10497
10612
  [$author$project$Gem$CharmSticker$view])),
10498
- $elm$core$String$isEmpty(footer.bt) ? $elm$html$Html$text('') : A2(
10613
+ $elm$core$String$isEmpty(footer.br) ? $elm$html$Html$text('') : A2(
10499
10614
  $elm$html$Html$p,
10500
10615
  _List_fromArray(
10501
10616
  [
@@ -10503,9 +10618,9 @@ var $author$project$Gem$Shell$footerView = function (config) {
10503
10618
  ]),
10504
10619
  _List_fromArray(
10505
10620
  [
10506
- $elm$html$Html$text(footer.bt)
10621
+ $elm$html$Html$text(footer.br)
10507
10622
  ])),
10508
- $elm$core$List$isEmpty(footer.bB) ? $elm$html$Html$text('') : A2(
10623
+ $elm$core$List$isEmpty(footer.bz) ? $elm$html$Html$text('') : A2(
10509
10624
  $elm$html$Html$div,
10510
10625
  _List_fromArray(
10511
10626
  [
@@ -10525,9 +10640,9 @@ var $author$project$Gem$Shell$footerView = function (config) {
10525
10640
  $elm$html$Html$text(chip)
10526
10641
  ]));
10527
10642
  },
10528
- footer.bB))
10643
+ footer.bz))
10529
10644
  ]));
10530
- return (!footer.bV) ? $elm$html$Html$text('') : A2(
10645
+ return (!footer.bU) ? $elm$html$Html$text('') : A2(
10531
10646
  $elm$html$Html$footer,
10532
10647
  _List_fromArray(
10533
10648
  [
@@ -10544,7 +10659,7 @@ var $author$project$Gem$Shell$footerView = function (config) {
10544
10659
  A2(
10545
10660
  $elm$core$List$cons,
10546
10661
  brand,
10547
- A2($elm$core$List$map, column, footer.bF))),
10662
+ A2($elm$core$List$map, column, footer.bD))),
10548
10663
  A2(
10549
10664
  $elm$html$Html$div,
10550
10665
  _List_fromArray(
@@ -10559,7 +10674,7 @@ var $author$project$Gem$Shell$footerView = function (config) {
10559
10674
  _List_fromArray(
10560
10675
  [
10561
10676
  $elm$html$Html$text(
10562
- A2($elm$core$Maybe$withDefault, '', config.b.ap.a1))
10677
+ A2($elm$core$Maybe$withDefault, '', config.a.aq.a1))
10563
10678
  ])),
10564
10679
  A2(
10565
10680
  $elm$html$Html$a,
@@ -10576,20 +10691,20 @@ var $author$project$Gem$Shell$footerView = function (config) {
10576
10691
  ]));
10577
10692
  };
10578
10693
  var $author$project$Gem$Shell$docsTabsView = function (config) {
10579
- return ($elm$core$List$length(config.M) < 2) ? $elm$html$Html$text('') : A2(
10694
+ return ($elm$core$List$length(config.z) < 2) ? $elm$html$Html$text('') : A2(
10580
10695
  $elm$html$Html$map,
10581
10696
  config.cv,
10582
10697
  A2(
10583
10698
  $author$project$Ui$Tabs$view,
10584
10699
  {
10585
- aV: _List_fromArray(
10700
+ aX: _List_fromArray(
10586
10701
  [
10587
10702
  $elm$html$Html$Attributes$class('docs-tabs')
10588
10703
  ]),
10589
- aw: $author$project$Gem$Shell$docsChoices(config),
10704
+ ax: $author$project$Gem$Shell$docsChoices(config),
10590
10705
  cY: 1
10591
10706
  },
10592
- config.l));
10707
+ config.m));
10593
10708
  };
10594
10709
  var $author$project$Ui$Button$Compact = 1;
10595
10710
  var $author$project$Ui$Button$viewLink = F2(
@@ -10610,7 +10725,7 @@ var $author$project$Ui$Button$viewLink = F2(
10610
10725
  ]);
10611
10726
  },
10612
10727
  $author$project$Ui$Button$sizeClass(config.cY)));
10613
- var disabledAttrs = config.bO ? _List_fromArray(
10728
+ var disabledAttrs = config.bM ? _List_fromArray(
10614
10729
  [
10615
10730
  A2($elm$html$Html$Attributes$attribute, 'aria-disabled', 'true')
10616
10731
  ]) : _List_Nil;
@@ -10628,7 +10743,7 @@ var $author$project$Ui$Button$viewLink = F2(
10628
10743
  _Utils_ap(sizeAttrs, wideAttrs))),
10629
10744
  $elm$html$Html$Attributes$href(href)
10630
10745
  ]),
10631
- _Utils_ap(disabledAttrs, config.aV)),
10746
+ _Utils_ap(disabledAttrs, config.aX)),
10632
10747
  A2(
10633
10748
  $elm$core$List$map,
10634
10749
  $elm$core$Basics$identity,
@@ -10651,23 +10766,24 @@ var $author$project$Ui$Button$viewLink = F2(
10651
10766
  $elm$html$Html$map($elm$core$Basics$never),
10652
10767
  config.b3))))));
10653
10768
  });
10654
- var $author$project$Gem$Shell$headerAction = function (action) {
10655
- return A2(
10656
- $author$project$Ui$Button$viewLink,
10657
- {
10658
- aV: _List_fromArray(
10659
- [
10660
- $elm$html$Html$Attributes$class('docs-header-action')
10661
- ]),
10662
- bO: false,
10663
- b3: $elm$core$Maybe$Nothing,
10664
- c: action.c,
10665
- cY: 1,
10666
- db: 1,
10667
- df: false
10668
- },
10669
- action.b2);
10670
- };
10769
+ var $author$project$Gem$Shell$headerAction = F2(
10770
+ function (config, action) {
10771
+ return A2(
10772
+ $author$project$Ui$Button$viewLink,
10773
+ {
10774
+ aX: _List_fromArray(
10775
+ [
10776
+ $elm$html$Html$Attributes$class('docs-header-action')
10777
+ ]),
10778
+ bM: false,
10779
+ b3: $elm$core$Maybe$Nothing,
10780
+ c: action.c,
10781
+ cY: 1,
10782
+ db: 1,
10783
+ df: false
10784
+ },
10785
+ A2($author$project$Gem$Page$href, config.a, action.b2));
10786
+ });
10671
10787
  var $author$project$Ui$Icon$Search = 17;
10672
10788
  var $author$project$Gem$Shell$searchToggle = function (config) {
10673
10789
  return A2(
@@ -10686,7 +10802,7 @@ var $author$project$Gem$Shell$searchToggle = function (config) {
10686
10802
  ]));
10687
10803
  };
10688
10804
  var $author$project$Gem$Shell$header = function (config) {
10689
- var chrome = config.b.aY.a3;
10805
+ var chrome = config.a.aF.aJ;
10690
10806
  return A2(
10691
10807
  $elm$html$Html$div,
10692
10808
  _List_fromArray(
@@ -10701,16 +10817,17 @@ var $author$project$Gem$Shell$header = function (config) {
10701
10817
  _Utils_ap(
10702
10818
  _List_fromArray(
10703
10819
  [
10704
- chrome.a7 ? A2(
10820
+ chrome.a5 ? A2(
10705
10821
  $elm$html$Html$a,
10706
10822
  _List_fromArray(
10707
10823
  [
10708
10824
  $elm$html$Html$Attributes$class('docs-header-title'),
10709
- $elm$html$Html$Attributes$href(config.i.aB)
10825
+ $elm$html$Html$Attributes$href(
10826
+ A2($author$project$Gem$Page$href, config.a, config.i.aB))
10710
10827
  ]),
10711
10828
  _List_fromArray(
10712
10829
  [
10713
- A2($author$project$Gem$Shell$logoView, config.b.ap.a7, config)
10830
+ $author$project$Gem$Shell$logoView(config)
10714
10831
  ])) : $elm$html$Html$text('')
10715
10832
  ]),
10716
10833
  _List_fromArray(
@@ -10722,22 +10839,25 @@ var $author$project$Gem$Shell$header = function (config) {
10722
10839
  $elm$html$Html$Attributes$class('docs-header-end')
10723
10840
  ]),
10724
10841
  _Utils_ap(
10725
- A2($elm$core$List$map, $author$project$Gem$Shell$headerAction, chrome.bp),
10842
+ A2(
10843
+ $elm$core$List$map,
10844
+ $author$project$Gem$Shell$headerAction(config),
10845
+ chrome.bm),
10726
10846
  _List_fromArray(
10727
10847
  [
10728
10848
  chrome.u ? $author$project$Gem$Shell$searchToggle(config) : $elm$html$Html$text(''),
10729
- chrome.M ? $author$project$Gem$Shell$docsTabsView(config) : $elm$html$Html$text(''),
10730
- chrome.o ? A2(
10849
+ chrome.z ? $author$project$Gem$Shell$docsTabsView(config) : $elm$html$Html$text(''),
10850
+ chrome.j ? A2(
10731
10851
  $elm$html$Html$map,
10732
10852
  config.cF,
10733
10853
  A2(
10734
10854
  $author$project$Ui$Tabs$view,
10735
10855
  {
10736
- aV: _List_Nil,
10737
- aw: $author$project$Gem$Shell$themeChoices(config.b.as),
10856
+ aX: _List_Nil,
10857
+ ax: $author$project$Gem$Shell$themeChoices(config.a.at),
10738
10858
  cY: 1
10739
10859
  },
10740
- config.D)) : $elm$html$Html$text('')
10860
+ config.E)) : $elm$html$Html$text('')
10741
10861
  ])))
10742
10862
  ])));
10743
10863
  };
@@ -10750,7 +10870,7 @@ var $author$project$Gem$Render$cardGroups = function (children) {
10750
10870
  var inner = node.c;
10751
10871
  return $elm$core$Maybe$Just(
10752
10872
  {
10753
- aW: inner,
10873
+ aY: inner,
10754
10874
  c: A2(
10755
10875
  $elm$core$Maybe$withDefault,
10756
10876
  '',
@@ -10791,7 +10911,7 @@ var $author$project$Gem$Render$codeBlocks = function (children) {
10791
10911
  var code = node.a;
10792
10912
  return $elm$core$Maybe$Just(
10793
10913
  {
10794
- a6: code.a6,
10914
+ a4: code.a4,
10795
10915
  cc: code.cc,
10796
10916
  v: $author$project$Gem$Render$linesToText(code.cc),
10797
10917
  p: code.p
@@ -10841,7 +10961,7 @@ var $author$project$Gem$Render$codeGroupView = F2(
10841
10961
  $elm$html$Html$text(
10842
10962
  A2(
10843
10963
  $elm$core$Maybe$withDefault,
10844
- A2($elm$core$Maybe$withDefault, 'text', code.a6),
10964
+ A2($elm$core$Maybe$withDefault, 'text', code.a4),
10845
10965
  code.p))
10846
10966
  ]));
10847
10967
  }),
@@ -10913,10 +11033,39 @@ var $elm$html$Html$del = _VirtualDom_node('del');
10913
11033
  var $elm$html$Html$em = _VirtualDom_node('em');
10914
11034
  var $elm$html$Html$img = _VirtualDom_node('img');
10915
11035
  var $elm$html$Html$Attributes$rel = _VirtualDom_attribute('rel');
11036
+ var $elm$core$Dict$map = F2(
11037
+ function (func, dict) {
11038
+ if (dict.$ === -2) {
11039
+ return $elm$core$Dict$RBEmpty_elm_builtin;
11040
+ } else {
11041
+ var color = dict.a;
11042
+ var key = dict.b;
11043
+ var value = dict.c;
11044
+ var left = dict.d;
11045
+ var right = dict.e;
11046
+ return A5(
11047
+ $elm$core$Dict$RBNode_elm_builtin,
11048
+ color,
11049
+ key,
11050
+ A2(func, key, value),
11051
+ A2($elm$core$Dict$map, func, left),
11052
+ A2($elm$core$Dict$map, func, right));
11053
+ }
11054
+ });
11055
+ var $author$project$Gem$Render$rewriteProps = F2(
11056
+ function (rewrite, props) {
11057
+ return A2(
11058
+ $elm$core$Dict$map,
11059
+ F2(
11060
+ function (key, value) {
11061
+ return ((key === 'href') || ((key === 'src') || (key === 'poster'))) ? rewrite(value) : value;
11062
+ }),
11063
+ props);
11064
+ });
10916
11065
  var $elm$html$Html$strong = _VirtualDom_node('strong');
10917
11066
  var $elm$html$Html$Attributes$target = $elm$html$Html$Attributes$stringProperty('target');
10918
- var $author$project$Gem$Render$inline = F2(
10919
- function (slots, node) {
11067
+ var $author$project$Gem$Render$inline = F3(
11068
+ function (rewrite, slots, node) {
10920
11069
  switch (node.$) {
10921
11070
  case 0:
10922
11071
  var text = node.a;
@@ -10938,19 +11087,19 @@ var $author$project$Gem$Render$inline = F2(
10938
11087
  return A2(
10939
11088
  $elm$html$Html$strong,
10940
11089
  _List_Nil,
10941
- A2($author$project$Gem$Render$inlines, slots, children));
11090
+ A3($author$project$Gem$Render$inlinesWithHref, rewrite, slots, children));
10942
11091
  case 3:
10943
11092
  var children = node.a;
10944
11093
  return A2(
10945
11094
  $elm$html$Html$em,
10946
11095
  _List_Nil,
10947
- A2($author$project$Gem$Render$inlines, slots, children));
11096
+ A3($author$project$Gem$Render$inlinesWithHref, rewrite, slots, children));
10948
11097
  case 4:
10949
11098
  var children = node.a;
10950
11099
  return A2(
10951
11100
  $elm$html$Html$del,
10952
11101
  _List_Nil,
10953
- A2($author$project$Gem$Render$inlines, slots, children));
11102
+ A3($author$project$Gem$Render$inlinesWithHref, rewrite, slots, children));
10954
11103
  case 5:
10955
11104
  var link = node.a;
10956
11105
  var children = node.b;
@@ -10961,17 +11110,18 @@ var $author$project$Gem$Render$inline = F2(
10961
11110
  $elm$html$Html$Attributes$class('md-link'),
10962
11111
  A2(
10963
11112
  $elm$core$List$cons,
10964
- $elm$html$Html$Attributes$href(link.b2),
11113
+ $elm$html$Html$Attributes$href(
11114
+ rewrite(link.b2)),
10965
11115
  A2(
10966
11116
  $elm$core$List$cons,
10967
11117
  $elm$html$Html$Attributes$title(
10968
11118
  A2($elm$core$Maybe$withDefault, '', link.p)),
10969
- link.bY ? _List_fromArray(
11119
+ link.bX ? _List_fromArray(
10970
11120
  [
10971
11121
  $elm$html$Html$Attributes$target('_blank'),
10972
11122
  $elm$html$Html$Attributes$rel('noreferrer')
10973
11123
  ]) : _List_Nil))),
10974
- A2($author$project$Gem$Render$inlines, slots, children));
11124
+ A3($author$project$Gem$Render$inlinesWithHref, rewrite, slots, children));
10975
11125
  case 6:
10976
11126
  var image = node.a;
10977
11127
  return A2(
@@ -10979,8 +11129,9 @@ var $author$project$Gem$Render$inline = F2(
10979
11129
  _List_fromArray(
10980
11130
  [
10981
11131
  $elm$html$Html$Attributes$class('md-image'),
10982
- $elm$html$Html$Attributes$src(image.c$),
10983
- $elm$html$Html$Attributes$alt(image.bq),
11132
+ $elm$html$Html$Attributes$src(
11133
+ rewrite(image.c$)),
11134
+ $elm$html$Html$Attributes$alt(image.bn),
10984
11135
  $elm$html$Html$Attributes$title(
10985
11136
  A2($elm$core$Maybe$withDefault, '', image.p))
10986
11137
  ]),
@@ -10992,17 +11143,17 @@ var $author$project$Gem$Render$inline = F2(
10992
11143
  var props = node.b;
10993
11144
  var children = node.c;
10994
11145
  return A3(
10995
- slots.aF,
11146
+ slots.aG,
10996
11147
  tag,
10997
- props,
10998
- A2($author$project$Gem$Render$inlines, slots, children));
11148
+ A2($author$project$Gem$Render$rewriteProps, rewrite, props),
11149
+ A3($author$project$Gem$Render$inlinesWithHref, rewrite, slots, children));
10999
11150
  }
11000
11151
  });
11001
- var $author$project$Gem$Render$inlines = F2(
11002
- function (slots, list) {
11152
+ var $author$project$Gem$Render$inlinesWithHref = F3(
11153
+ function (rewrite, slots, list) {
11003
11154
  return A2(
11004
11155
  $elm$core$List$map,
11005
- $author$project$Gem$Render$inline(slots),
11156
+ A2($author$project$Gem$Render$inline, rewrite, slots),
11006
11157
  list);
11007
11158
  });
11008
11159
  var $elm$html$Html$ol = _VirtualDom_node('ol');
@@ -11018,8 +11169,8 @@ var $elm$html$Html$td = _VirtualDom_node('td');
11018
11169
  var $elm$html$Html$th = _VirtualDom_node('th');
11019
11170
  var $elm$html$Html$thead = _VirtualDom_node('thead');
11020
11171
  var $elm$html$Html$tr = _VirtualDom_node('tr');
11021
- var $author$project$Gem$Render$tableView = F2(
11022
- function (slots, table) {
11172
+ var $author$project$Gem$Render$tableView = F3(
11173
+ function (rewrite, slots, table) {
11023
11174
  return A2(
11024
11175
  $elm$html$Html$div,
11025
11176
  _List_fromArray(
@@ -11047,7 +11198,7 @@ var $author$project$Gem$Render$tableView = F2(
11047
11198
  return A2(
11048
11199
  $elm$html$Html$th,
11049
11200
  _List_Nil,
11050
- A2($author$project$Gem$Render$inlines, slots, cell));
11201
+ A3($author$project$Gem$Render$inlinesWithHref, rewrite, slots, cell));
11051
11202
  },
11052
11203
  table.b0))
11053
11204
  ])),
@@ -11066,7 +11217,7 @@ var $author$project$Gem$Render$tableView = F2(
11066
11217
  return A2(
11067
11218
  $elm$html$Html$td,
11068
11219
  _List_Nil,
11069
- A2($author$project$Gem$Render$inlines, slots, cell));
11220
+ A3($author$project$Gem$Render$inlinesWithHref, rewrite, slots, cell));
11070
11221
  },
11071
11222
  row));
11072
11223
  },
@@ -11074,8 +11225,8 @@ var $author$project$Gem$Render$tableView = F2(
11074
11225
  ]))
11075
11226
  ]));
11076
11227
  });
11077
- var $author$project$Gem$Render$block = F3(
11078
- function (slots, codeView, node) {
11228
+ var $author$project$Gem$Render$block = F4(
11229
+ function (rewrite, slots, codeView, node) {
11079
11230
  switch (node.$) {
11080
11231
  case 0:
11081
11232
  var depth = node.a;
@@ -11085,7 +11236,7 @@ var $author$project$Gem$Render$block = F3(
11085
11236
  $author$project$Gem$Render$heading,
11086
11237
  depth,
11087
11238
  id,
11088
- A2($author$project$Gem$Render$inlines, slots, children));
11239
+ A3($author$project$Gem$Render$inlinesWithHref, rewrite, slots, children));
11089
11240
  case 1:
11090
11241
  var children = node.a;
11091
11242
  return A2(
@@ -11094,19 +11245,19 @@ var $author$project$Gem$Render$block = F3(
11094
11245
  [
11095
11246
  $elm$html$Html$Attributes$class('md-p')
11096
11247
  ]),
11097
- A2($author$project$Gem$Render$inlines, slots, children));
11248
+ A3($author$project$Gem$Render$inlinesWithHref, rewrite, slots, children));
11098
11249
  case 2:
11099
11250
  var code = node.a;
11100
11251
  return codeView(
11101
11252
  {
11102
- a6: code.a6,
11253
+ a4: code.a4,
11103
11254
  cc: code.cc,
11104
11255
  v: $author$project$Gem$Render$linesToText(code.cc),
11105
11256
  p: code.p
11106
11257
  });
11107
11258
  case 3:
11108
11259
  var list = node.a;
11109
- return A3($author$project$Gem$Render$listBlock, slots, codeView, list);
11260
+ return A4($author$project$Gem$Render$listBlock, rewrite, slots, codeView, list);
11110
11261
  case 4:
11111
11262
  var children = node.a;
11112
11263
  return A2(
@@ -11115,10 +11266,10 @@ var $author$project$Gem$Render$block = F3(
11115
11266
  [
11116
11267
  $elm$html$Html$Attributes$class('md-quote')
11117
11268
  ]),
11118
- A3($author$project$Gem$Render$blocks, slots, codeView, children));
11269
+ A4($author$project$Gem$Render$blocksWithHref, rewrite, slots, codeView, children));
11119
11270
  case 5:
11120
11271
  var table = node.a;
11121
- return A2($author$project$Gem$Render$tableView, slots, table);
11272
+ return A3($author$project$Gem$Render$tableView, rewrite, slots, table);
11122
11273
  case 6:
11123
11274
  return A2($elm$html$Html$hr, _List_Nil, _List_Nil);
11124
11275
  case 7:
@@ -11147,35 +11298,35 @@ var $author$project$Gem$Render$block = F3(
11147
11298
  var _v1 = $author$project$Gem$Render$cardGroups(children);
11148
11299
  if (!_v1.$) {
11149
11300
  var groups = _v1.a;
11150
- return A3($author$project$Gem$Render$cardsGroupView, slots, codeView, groups);
11301
+ return A4($author$project$Gem$Render$cardsGroupView, rewrite, slots, codeView, groups);
11151
11302
  } else {
11152
11303
  return A3(
11153
- slots.aF,
11304
+ slots.aG,
11154
11305
  'ui-cards',
11155
- props,
11156
- A3($author$project$Gem$Render$blocks, slots, codeView, children));
11306
+ A2($author$project$Gem$Render$rewriteProps, rewrite, props),
11307
+ A4($author$project$Gem$Render$blocksWithHref, rewrite, slots, codeView, children));
11157
11308
  }
11158
11309
  default:
11159
11310
  var tag = node.a;
11160
11311
  var props = node.b;
11161
11312
  var children = node.c;
11162
11313
  return A3(
11163
- slots.aF,
11314
+ slots.aG,
11164
11315
  tag,
11165
- props,
11166
- A3($author$project$Gem$Render$blocks, slots, codeView, children));
11316
+ A2($author$project$Gem$Render$rewriteProps, rewrite, props),
11317
+ A4($author$project$Gem$Render$blocksWithHref, rewrite, slots, codeView, children));
11167
11318
  }
11168
11319
  }
11169
11320
  });
11170
- var $author$project$Gem$Render$blocks = F3(
11171
- function (slots, codeView, list) {
11321
+ var $author$project$Gem$Render$blocksWithHref = F4(
11322
+ function (rewrite, slots, codeView, list) {
11172
11323
  return A2(
11173
11324
  $elm$core$List$map,
11174
- A2($author$project$Gem$Render$block, slots, codeView),
11325
+ A3($author$project$Gem$Render$block, rewrite, slots, codeView),
11175
11326
  list);
11176
11327
  });
11177
- var $author$project$Gem$Render$cardsGroupView = F3(
11178
- function (slots, codeView, groups) {
11328
+ var $author$project$Gem$Render$cardsGroupView = F4(
11329
+ function (rewrite, slots, codeView, groups) {
11179
11330
  return A2(
11180
11331
  $elm$html$Html$div,
11181
11332
  _List_fromArray(
@@ -11240,20 +11391,20 @@ var $author$project$Gem$Render$cardsGroupView = F3(
11240
11391
  [
11241
11392
  $elm$html$Html$Attributes$class('cards')
11242
11393
  ]),
11243
- A3($author$project$Gem$Render$blocks, slots, codeView, group.aW))
11394
+ A4($author$project$Gem$Render$blocksWithHref, rewrite, slots, codeView, group.aY))
11244
11395
  ]));
11245
11396
  }),
11246
11397
  groups)));
11247
11398
  });
11248
- var $author$project$Gem$Render$listBlock = F3(
11249
- function (slots, codeView, list) {
11399
+ var $author$project$Gem$Render$listBlock = F4(
11400
+ function (rewrite, slots, codeView, list) {
11250
11401
  var children = A2(
11251
11402
  $elm$core$List$map,
11252
11403
  function (item) {
11253
11404
  return A2(
11254
11405
  $elm$html$Html$li,
11255
11406
  _List_Nil,
11256
- A3($author$project$Gem$Render$blocks, slots, codeView, item));
11407
+ A4($author$project$Gem$Render$blocksWithHref, rewrite, slots, codeView, item));
11257
11408
  },
11258
11409
  list.b8);
11259
11410
  return list.cM ? A2(
@@ -11274,7 +11425,7 @@ var $author$project$Gem$Render$listBlock = F3(
11274
11425
  children);
11275
11426
  });
11276
11427
  var $author$project$Gem$Shell$lede = function (page) {
11277
- return $elm$core$String$isEmpty(page.aS) ? _List_Nil : _List_fromArray(
11428
+ return $elm$core$String$isEmpty(page.aU) ? _List_Nil : _List_fromArray(
11278
11429
  [
11279
11430
  A2(
11280
11431
  $elm$html$Html$p,
@@ -11284,22 +11435,22 @@ var $author$project$Gem$Shell$lede = function (page) {
11284
11435
  ]),
11285
11436
  _List_fromArray(
11286
11437
  [
11287
- $elm$html$Html$text(page.aS)
11438
+ $elm$html$Html$text(page.aU)
11288
11439
  ]))
11289
11440
  ]);
11290
11441
  };
11291
11442
  var $author$project$Gem$Shell$chatbots = _List_fromArray(
11292
11443
  [
11293
- {a: 'chatgpt', c: 'Open in ChatGPT'},
11294
- {a: 'claude', c: 'Open in Claude'},
11295
- {a: 'perplexity', c: 'Open in Perplexity'},
11296
- {a: 'copilot', c: 'Open in Copilot'},
11297
- {a: 'you', c: 'Open in You.com'},
11298
- {a: 'phind', c: 'Open in Phind'}
11444
+ {b: 'chatgpt', c: 'Open in ChatGPT'},
11445
+ {b: 'claude', c: 'Open in Claude'},
11446
+ {b: 'perplexity', c: 'Open in Perplexity'},
11447
+ {b: 'copilot', c: 'Open in Copilot'},
11448
+ {b: 'you', c: 'Open in You.com'},
11449
+ {b: 'phind', c: 'Open in Phind'}
11299
11450
  ]);
11300
11451
  var $author$project$Ui$Dropdown$option = F2(
11301
11452
  function (label, value) {
11302
- return {L: $elm$core$Maybe$Nothing, c: label, bk: value};
11453
+ return {M: $elm$core$Maybe$Nothing, c: label, bi: value};
11303
11454
  });
11304
11455
  var $author$project$Ui$Dropdown$actionNodes = function (maybeAction) {
11305
11456
  if (maybeAction.$ === 1) {
@@ -11387,7 +11538,7 @@ var $author$project$Ui$Dropdown$matchesQuery = F2(
11387
11538
  $elm$core$String$contains,
11388
11539
  needle,
11389
11540
  $elm$core$String$toLower(
11390
- A2($elm$core$Maybe$withDefault, '', o.L)));
11541
+ A2($elm$core$Maybe$withDefault, '', o.M)));
11391
11542
  });
11392
11543
  var $author$project$Ui$Dropdown$optionNodes = F5(
11393
11544
  function (options, onSelect, query, hasAction, selectedValue) {
@@ -11417,17 +11568,17 @@ var $author$project$Ui$Dropdown$optionNodes = F5(
11417
11568
  _Utils_Tuple2('option', true),
11418
11569
  _Utils_Tuple2(
11419
11570
  'current',
11420
- _Utils_eq(opt.bk, selectedValue))
11571
+ _Utils_eq(opt.bi, selectedValue))
11421
11572
  ])),
11422
11573
  $elm$html$Html$Attributes$type_('button'),
11423
11574
  A2(
11424
11575
  $elm$html$Html$Attributes$attribute,
11425
11576
  'aria-current',
11426
- _Utils_eq(opt.bk, selectedValue) ? 'true' : 'false'),
11577
+ _Utils_eq(opt.bi, selectedValue) ? 'true' : 'false'),
11427
11578
  $elm$html$Html$Events$onClick(
11428
- onSelect(opt.bk))
11579
+ onSelect(opt.bi))
11429
11580
  ]),
11430
- A2($author$project$Ui$Dropdown$labelNodes, opt.c, opt.L));
11581
+ A2($author$project$Ui$Dropdown$labelNodes, opt.c, opt.M));
11431
11582
  },
11432
11583
  options);
11433
11584
  });
@@ -11467,7 +11618,7 @@ var $author$project$Ui$Dropdown$searchNodes = function (maybeSearch) {
11467
11618
  return _List_Nil;
11468
11619
  } else {
11469
11620
  var cfg = maybeSearch.a;
11470
- var hasText = !$elm$core$String$isEmpty(cfg.m);
11621
+ var hasText = !$elm$core$String$isEmpty(cfg.n);
11471
11622
  return _List_fromArray(
11472
11623
  [
11473
11624
  A2(
@@ -11485,7 +11636,7 @@ var $author$project$Ui$Dropdown$searchNodes = function (maybeSearch) {
11485
11636
  $elm$html$Html$Attributes$type_('search'),
11486
11637
  $elm$html$Html$Attributes$class('query'),
11487
11638
  $elm$html$Html$Attributes$placeholder(cfg.cP),
11488
- $elm$html$Html$Attributes$value(cfg.m),
11639
+ $elm$html$Html$Attributes$value(cfg.n),
11489
11640
  $elm$html$Html$Events$onInput(cfg.cx)
11490
11641
  ]),
11491
11642
  _List_Nil),
@@ -11520,7 +11671,7 @@ var $author$project$Ui$Dropdown$view = function (config) {
11520
11671
  A2(
11521
11672
  $elm$core$List$filter,
11522
11673
  function (o) {
11523
- return _Utils_eq(o.bk, config.cX);
11674
+ return _Utils_eq(o.bi, config.cX);
11524
11675
  },
11525
11676
  config.cL));
11526
11677
  var selectedLabel = A2(
@@ -11535,7 +11686,7 @@ var $author$project$Ui$Dropdown$view = function (config) {
11535
11686
  var selectedDetail = A2(
11536
11687
  $elm$core$Maybe$andThen,
11537
11688
  function ($) {
11538
- return $.L;
11689
+ return $.M;
11539
11690
  },
11540
11691
  selectedOption);
11541
11692
  var query = A2(
@@ -11544,11 +11695,11 @@ var $author$project$Ui$Dropdown$view = function (config) {
11544
11695
  A2(
11545
11696
  $elm$core$Maybe$map,
11546
11697
  function ($) {
11547
- return $.m;
11698
+ return $.n;
11548
11699
  },
11549
11700
  config.u));
11550
11701
  var hasAction = function () {
11551
- var _v1 = config.bo;
11702
+ var _v1 = config.bl;
11552
11703
  if (!_v1.$) {
11553
11704
  return true;
11554
11705
  } else {
@@ -11573,31 +11724,31 @@ var $author$project$Ui$Dropdown$view = function (config) {
11573
11724
  _Utils_ap(
11574
11725
  _List_fromArray(
11575
11726
  [
11576
- $elm$html$Html$Attributes$id(config.a),
11727
+ $elm$html$Html$Attributes$id(config.b),
11577
11728
  $elm$html$Html$Attributes$classList(
11578
11729
  _List_fromArray(
11579
11730
  [
11580
11731
  _Utils_Tuple2('dropdown', true),
11581
- _Utils_Tuple2('open', config.aN),
11582
- _Utils_Tuple2('flip', config.b_),
11583
- _Utils_Tuple2('compact', config.bG)
11732
+ _Utils_Tuple2('open', config.aP),
11733
+ _Utils_Tuple2('flip', config.bZ),
11734
+ _Utils_Tuple2('compact', config.bE)
11584
11735
  ]))
11585
11736
  ]),
11586
- config.aV),
11737
+ config.aX),
11587
11738
  _List_fromArray(
11588
11739
  [
11589
11740
  A2(
11590
11741
  $elm$html$Html$button,
11591
11742
  _List_fromArray(
11592
11743
  [
11593
- $elm$html$Html$Attributes$id(config.a + '-button'),
11594
- $elm$html$Html$Events$onClick(config.aM),
11744
+ $elm$html$Html$Attributes$id(config.b + '-button'),
11745
+ $elm$html$Html$Events$onClick(config.aO),
11595
11746
  A2($elm$html$Html$Attributes$attribute, 'aria-haspopup', 'true'),
11596
11747
  A2($elm$html$Html$Attributes$attribute, 'aria-label', selectedLabel),
11597
11748
  A2(
11598
11749
  $elm$html$Html$Attributes$attribute,
11599
11750
  'aria-expanded',
11600
- config.aN ? 'true' : 'false')
11751
+ config.aP ? 'true' : 'false')
11601
11752
  ]),
11602
11753
  function () {
11603
11754
  var _v0 = config.c9;
@@ -11635,33 +11786,33 @@ var $author$project$Ui$Dropdown$view = function (config) {
11635
11786
  _List_fromArray(
11636
11787
  [
11637
11788
  $elm$html$Html$Attributes$class('menu'),
11638
- $elm$html$Html$Attributes$id(config.a + '-menu')
11789
+ $elm$html$Html$Attributes$id(config.b + '-menu')
11639
11790
  ]),
11640
11791
  _Utils_ap(
11641
11792
  $author$project$Ui$Dropdown$searchNodes(config.u),
11642
11793
  _Utils_ap(
11643
11794
  A5($author$project$Ui$Dropdown$optionNodes, filtered, config.cE, query, hasAction, config.cX),
11644
- $author$project$Ui$Dropdown$actionNodes(config.bo))))
11795
+ $author$project$Ui$Dropdown$actionNodes(config.bl))))
11645
11796
  ]));
11646
11797
  };
11647
11798
  var $author$project$Gem$Shell$aiDropdown = function (config) {
11648
11799
  return $author$project$Ui$Dropdown$view(
11649
11800
  {
11650
- bo: $elm$core$Maybe$Nothing,
11651
- aV: _List_fromArray(
11801
+ bl: $elm$core$Maybe$Nothing,
11802
+ aX: _List_fromArray(
11652
11803
  [
11653
11804
  $elm$html$Html$Attributes$class('ai-dropdown')
11654
11805
  ]),
11655
- bG: true,
11656
- b_: config.T,
11657
- a: 'ai-dropdown',
11806
+ bE: true,
11807
+ bZ: config.T,
11808
+ b: 'ai-dropdown',
11658
11809
  cE: config.cj,
11659
- aM: config.ck,
11660
- aN: config.F,
11810
+ aO: config.ck,
11811
+ aP: config.G,
11661
11812
  cL: A2(
11662
11813
  $elm$core$List$map,
11663
11814
  function (bot) {
11664
- return A2($author$project$Ui$Dropdown$option, bot.c, bot.a);
11815
+ return A2($author$project$Ui$Dropdown$option, bot.c, bot.b);
11665
11816
  },
11666
11817
  $author$project$Gem$Shell$chatbots),
11667
11818
  u: $elm$core$Maybe$Nothing,
@@ -11674,7 +11825,7 @@ var $author$project$Gem$Shell$aiDropdown = function (config) {
11674
11825
  var $author$project$Gem$Shell$copyPageButton = function (config) {
11675
11826
  return $author$project$Ui$Button$view(
11676
11827
  {
11677
- aV: _List_fromArray(
11828
+ aX: _List_fromArray(
11678
11829
  [
11679
11830
  $elm$html$Html$Attributes$class('page-copy'),
11680
11831
  $elm$html$Html$Attributes$classList(
@@ -11683,8 +11834,8 @@ var $author$project$Gem$Shell$copyPageButton = function (config) {
11683
11834
  _Utils_Tuple2('done', config.P)
11684
11835
  ]))
11685
11836
  ]),
11686
- bw: $elm$core$Maybe$Nothing,
11687
- bO: false,
11837
+ bu: $elm$core$Maybe$Nothing,
11838
+ bM: false,
11688
11839
  b3: $elm$core$Maybe$Just(
11689
11840
  config.P ? $author$project$Ui$Icon$view(3) : $author$project$Ui$Icon$view(4)),
11690
11841
  c: config.P ? 'Copied' : 'Copy page',
@@ -11695,9 +11846,9 @@ var $author$project$Gem$Shell$copyPageButton = function (config) {
11695
11846
  });
11696
11847
  };
11697
11848
  var $author$project$Gem$Shell$toolbarActions = function (config) {
11698
- var toolbar = config.b.aY.c7;
11849
+ var toolbar = config.a.aF.c7;
11699
11850
  return _Utils_ap(
11700
- toolbar.K ? _List_fromArray(
11851
+ toolbar.L ? _List_fromArray(
11701
11852
  [
11702
11853
  $author$project$Gem$Shell$copyPageButton(config)
11703
11854
  ]) : _List_Nil,
@@ -11719,7 +11870,7 @@ var $author$project$Gem$Shell$pageActions = function (config) {
11719
11870
  var $author$project$Ui$Icon$ExternalLink = 5;
11720
11871
  var $author$project$Gem$Shell$editLink = F2(
11721
11872
  function (config, page) {
11722
- var _v0 = config.b.ap.bT;
11873
+ var _v0 = config.a.aq.bR;
11723
11874
  if (!_v0.$) {
11724
11875
  var base = _v0.a;
11725
11876
  var prefix = A2($elm$core$String$endsWith, '/', base) ? base : (base + '/');
@@ -11744,15 +11895,29 @@ var $author$project$Gem$Shell$editLink = F2(
11744
11895
  });
11745
11896
  var $author$project$Gem$Shell$pageMarkdownUrl = F2(
11746
11897
  function (config, page) {
11747
- var raw = $elm$core$String$trim(config.b.ap.I);
11748
- var origin = A2($elm$core$String$endsWith, '/', raw) ? A2($elm$core$String$dropRight, 1, raw) : raw;
11749
- return $elm$core$String$isEmpty(origin) ? $author$project$Gem$Page$markdownPath(page) : _Utils_ap(
11750
- origin,
11751
- $author$project$Gem$Page$markdownPath(page));
11898
+ var raw = $elm$core$String$trim(config.a.aq.J);
11899
+ var markdown = A2($author$project$Gem$Page$markdownHref, config.a, page);
11900
+ var candidate = A2($elm$core$String$contains, '://', raw) ? raw : ('https://' + raw);
11901
+ if ($elm$core$String$isEmpty(raw)) {
11902
+ return markdown;
11903
+ } else {
11904
+ var _v0 = $elm$url$Url$fromString(candidate);
11905
+ if (!_v0.$) {
11906
+ var parsed = _v0.a;
11907
+ return _Utils_ap(
11908
+ $elm$url$Url$toString(
11909
+ _Utils_update(
11910
+ parsed,
11911
+ {b_: $elm$core$Maybe$Nothing, ar: '', n: $elm$core$Maybe$Nothing})),
11912
+ markdown);
11913
+ } else {
11914
+ return markdown;
11915
+ }
11916
+ }
11752
11917
  });
11753
11918
  var $author$project$Gem$Shell$eofBand = F2(
11754
11919
  function (config, page) {
11755
- if (!config.b.aY.a1.bW) {
11920
+ if (!config.a.aF.a1.bV) {
11756
11921
  return $elm$html$Html$text('');
11757
11922
  } else {
11758
11923
  var command = 'glow -p ' + A2($author$project$Gem$Shell$pageMarkdownUrl, config, page);
@@ -11812,14 +11977,14 @@ var $author$project$Gem$Shell$eofBand = F2(
11812
11977
  A2(
11813
11978
  $author$project$Ui$CopyButton$view,
11814
11979
  {
11815
- aV: _List_fromArray(
11980
+ aX: _List_fromArray(
11816
11981
  [
11817
11982
  $elm$html$Html$Attributes$class('docs-eof-copy')
11818
11983
  ]),
11819
11984
  c: 'Copy command',
11820
11985
  v: command
11821
11986
  },
11822
- config.bL))
11987
+ config.bJ))
11823
11988
  ])),
11824
11989
  A2(
11825
11990
  $elm$html$Html$span,
@@ -11836,7 +12001,7 @@ var $author$project$Gem$Shell$eofBand = F2(
11836
12001
  });
11837
12002
  var $author$project$Gem$Shell$pageTail = F2(
11838
12003
  function (config, page) {
11839
- return (config.b.aY.a1.bW || (!_Utils_eq(config.b.ap.bT, $elm$core$Maybe$Nothing))) ? A2(
12004
+ return (config.a.aF.a1.bV || (!_Utils_eq(config.a.aq.bR, $elm$core$Maybe$Nothing))) ? A2(
11840
12005
  $elm$html$Html$div,
11841
12006
  _List_fromArray(
11842
12007
  [
@@ -11853,53 +12018,37 @@ var $author$project$Gem$Shell$flatten = function (config) {
11853
12018
  if (!item.$) {
11854
12019
  var page = item.a;
11855
12020
  return _List_fromArray(
11856
- [page.n]);
12021
+ [page.o]);
11857
12022
  } else {
11858
12023
  var category = item.a;
11859
12024
  return A2($elm$core$List$concatMap, routeOf, category.b8);
11860
12025
  }
11861
12026
  };
11862
- var routes = A2($elm$core$List$concatMap, routeOf, config.aK);
12027
+ var routes = A2($elm$core$List$concatMap, routeOf, config.aM);
11863
12028
  var entryFor = function (route) {
11864
12029
  return $elm$core$List$head(
11865
12030
  A2(
11866
12031
  $elm$core$List$filter,
11867
12032
  function (entry) {
11868
- return _Utils_eq(entry.n, route);
12033
+ return _Utils_eq(entry.o, route);
11869
12034
  },
11870
- config.b.aH));
12035
+ config.a.aI));
11871
12036
  };
11872
12037
  return A2($elm$core$List$filterMap, entryFor, routes);
11873
12038
  };
11874
- var $elm$core$List$drop = F2(
11875
- function (n, list) {
11876
- drop:
11877
- while (true) {
11878
- if (n <= 0) {
11879
- return list;
11880
- } else {
11881
- if (!list.b) {
11882
- return list;
11883
- } else {
11884
- var x = list.a;
11885
- var xs = list.b;
11886
- var $temp$n = n - 1,
11887
- $temp$list = xs;
11888
- n = $temp$n;
11889
- list = $temp$list;
11890
- continue drop;
11891
- }
11892
- }
11893
- }
11894
- });
11895
12039
  var $author$project$Gem$Shell$itemAt = F2(
11896
12040
  function (index, items) {
11897
12041
  return $elm$core$List$head(
11898
12042
  A2($elm$core$List$drop, index, items));
11899
12043
  });
11900
- var $author$project$Gem$Shell$pageNavItem = function (entry) {
11901
- return {am: entry.aS, b2: entry.n, p: entry.p};
11902
- };
12044
+ var $author$project$Gem$Shell$pageNavItem = F2(
12045
+ function (config, entry) {
12046
+ return {
12047
+ am: entry.aU,
12048
+ b2: A2($author$project$Gem$Page$href, config.a, entry.o),
12049
+ p: entry.p
12050
+ };
12051
+ });
11903
12052
  var $author$project$Ui$PageNav$itemView = F3(
11904
12053
  function (directionLabel, directionClass, item) {
11905
12054
  return A2(
@@ -11952,7 +12101,7 @@ var $author$project$Ui$PageNav$view = function (config) {
11952
12101
  $elm$html$Html$Attributes$class('page-nav'),
11953
12102
  A2($elm$html$Html$Attributes$attribute, 'aria-label', 'Pagination')
11954
12103
  ]),
11955
- config.aV),
12104
+ config.aX),
11956
12105
  _List_fromArray(
11957
12106
  [
11958
12107
  function () {
@@ -11986,7 +12135,7 @@ var $author$project$Gem$Shell$pager = F2(
11986
12135
  $elm$core$List$filter,
11987
12136
  function (_v0) {
11988
12137
  var item = _v0.b;
11989
- return _Utils_eq(item.n, page.n);
12138
+ return _Utils_eq(item.o, page.o);
11990
12139
  },
11991
12140
  A2($elm$core$List$indexedMap, $elm$core$Tuple$pair, order))));
11992
12141
  var previous = A2(
@@ -12003,9 +12152,15 @@ var $author$project$Gem$Shell$pager = F2(
12003
12152
  position);
12004
12153
  return (_Utils_eq(previous, $elm$core$Maybe$Nothing) && _Utils_eq(next, $elm$core$Maybe$Nothing)) ? $elm$html$Html$text('') : $author$project$Ui$PageNav$view(
12005
12154
  {
12006
- aV: _List_Nil,
12007
- ci: A2($elm$core$Maybe$map, $author$project$Gem$Shell$pageNavItem, next),
12008
- cQ: A2($elm$core$Maybe$map, $author$project$Gem$Shell$pageNavItem, previous)
12155
+ aX: _List_Nil,
12156
+ ci: A2(
12157
+ $elm$core$Maybe$map,
12158
+ $author$project$Gem$Shell$pageNavItem(config),
12159
+ next),
12160
+ cQ: A2(
12161
+ $elm$core$Maybe$map,
12162
+ $author$project$Gem$Shell$pageNavItem(config),
12163
+ previous)
12009
12164
  });
12010
12165
  });
12011
12166
  var $elm$html$Html$aside = _VirtualDom_node('aside');
@@ -12017,10 +12172,10 @@ var $author$project$Gem$Shell$buildToc = F2(
12017
12172
  } else {
12018
12173
  var first = headings.a;
12019
12174
  var rest = headings.b;
12020
- if (_Utils_cmp(first.bN, level) < 0) {
12175
+ if (_Utils_cmp(first.bL, level) < 0) {
12021
12176
  return _Utils_Tuple2(_List_Nil, headings);
12022
12177
  } else {
12023
- var _v1 = A2($author$project$Gem$Shell$buildToc, first.bN + 1, rest);
12178
+ var _v1 = A2($author$project$Gem$Shell$buildToc, first.bL + 1, rest);
12024
12179
  var children = _v1.a;
12025
12180
  var afterChildren = _v1.b;
12026
12181
  var _v2 = A2($author$project$Gem$Shell$buildToc, level, afterChildren);
@@ -12029,7 +12184,7 @@ var $author$project$Gem$Shell$buildToc = F2(
12029
12184
  return _Utils_Tuple2(
12030
12185
  A2(
12031
12186
  $elm$core$List$cons,
12032
- {bA: children, b2: '#' + first.a, c: first.v},
12187
+ {by: children, b2: '#' + first.b, c: first.v},
12033
12188
  siblings),
12034
12189
  remaining);
12035
12190
  }
@@ -12075,9 +12230,9 @@ var $author$project$Ui$ToC$itemsView = F2(
12075
12230
  $elm$html$Html$text(item.c)
12076
12231
  ]))
12077
12232
  ]),
12078
- $elm$core$List$isEmpty(item.bA) ? _List_Nil : _List_fromArray(
12233
+ $elm$core$List$isEmpty(item.by) ? _List_Nil : _List_fromArray(
12079
12234
  [
12080
- A2($author$project$Ui$ToC$itemsView, active, item.bA)
12235
+ A2($author$project$Ui$ToC$itemsView, active, item.by)
12081
12236
  ])));
12082
12237
  },
12083
12238
  items));
@@ -12094,8 +12249,8 @@ var $author$project$Ui$ToC$titleView = F2(
12094
12249
  A2(
12095
12250
  $elm$html$Html$Attributes$attribute,
12096
12251
  'aria-expanded',
12097
- d.aN ? 'true' : 'false'),
12098
- $elm$html$Html$Events$onClick(d.aM)
12252
+ d.aP ? 'true' : 'false'),
12253
+ $elm$html$Html$Events$onClick(d.aO)
12099
12254
  ]),
12100
12255
  _List_fromArray(
12101
12256
  [
@@ -12146,7 +12301,7 @@ var $author$project$Ui$ToC$view = function (config) {
12146
12301
  _Utils_Tuple2(
12147
12302
  'collapsible',
12148
12303
  function () {
12149
- var _v0 = config.bP;
12304
+ var _v0 = config.bN;
12150
12305
  if (!_v0.$) {
12151
12306
  return true;
12152
12307
  } else {
@@ -12156,10 +12311,10 @@ var $author$project$Ui$ToC$view = function (config) {
12156
12311
  _Utils_Tuple2(
12157
12312
  'open',
12158
12313
  function () {
12159
- var _v1 = config.bP;
12314
+ var _v1 = config.bN;
12160
12315
  if (!_v1.$) {
12161
12316
  var d = _v1.a;
12162
- return d.aN;
12317
+ return d.aP;
12163
12318
  } else {
12164
12319
  return true;
12165
12320
  }
@@ -12167,10 +12322,10 @@ var $author$project$Ui$ToC$view = function (config) {
12167
12322
  ])),
12168
12323
  A2($elm$html$Html$Attributes$attribute, 'aria-label', config.p)
12169
12324
  ]),
12170
- config.aV),
12325
+ config.aX),
12171
12326
  A2(
12172
12327
  $elm$core$List$cons,
12173
- A2($author$project$Ui$ToC$titleView, config.bP, config.p),
12328
+ A2($author$project$Ui$ToC$titleView, config.bN, config.p),
12174
12329
  _List_fromArray(
12175
12330
  [
12176
12331
  A2($author$project$Ui$ToC$itemsView, config.d, config.b8)
@@ -12196,10 +12351,10 @@ var $author$project$Gem$Shell$tocView = F2(
12196
12351
  [
12197
12352
  $author$project$Ui$ToC$view(
12198
12353
  {
12199
- d: config.E,
12200
- aV: _List_Nil,
12201
- bP: $elm$core$Maybe$Just(
12202
- {aM: config.cG, aN: config.R}),
12354
+ d: config.F,
12355
+ aX: _List_Nil,
12356
+ bN: $elm$core$Maybe$Just(
12357
+ {aO: config.cG, aP: config.R}),
12203
12358
  b8: $author$project$Gem$Shell$tocTree(page.c6),
12204
12359
  p: 'On this page'
12205
12360
  })
@@ -12214,7 +12369,7 @@ var $author$project$Ui$Toolbar$view = function (config) {
12214
12369
  [
12215
12370
  $elm$html$Html$Attributes$class('toolbar')
12216
12371
  ]),
12217
- config.aV),
12372
+ config.aX),
12218
12373
  _List_fromArray(
12219
12374
  [
12220
12375
  A2(
@@ -12232,18 +12387,18 @@ var $author$project$Ui$Toolbar$view = function (config) {
12232
12387
  [
12233
12388
  $elm$html$Html$text(config.p)
12234
12389
  ])),
12235
- $elm$core$List$isEmpty(config.bp) ? $elm$html$Html$text('') : A2(
12390
+ $elm$core$List$isEmpty(config.bm) ? $elm$html$Html$text('') : A2(
12236
12391
  $elm$html$Html$div,
12237
12392
  _List_fromArray(
12238
12393
  [
12239
12394
  $elm$html$Html$Attributes$class('actions')
12240
12395
  ]),
12241
- config.bp)
12396
+ config.bm)
12242
12397
  ]))
12243
12398
  ]));
12244
12399
  };
12245
12400
  var $author$project$Gem$Shell$pageView = function (config) {
12246
- var _v0 = config.C;
12401
+ var _v0 = config.D;
12247
12402
  if (_v0.$ === 1) {
12248
12403
  return A2(
12249
12404
  $elm$html$Html$div,
@@ -12262,7 +12417,7 @@ var $author$project$Gem$Shell$pageView = function (config) {
12262
12417
  _List_fromArray(
12263
12418
  [
12264
12419
  $author$project$Ui$Toolbar$view(
12265
- {bp: _List_Nil, aV: _List_Nil, p: 'Not found'}),
12420
+ {bm: _List_Nil, aX: _List_Nil, p: 'Not found'}),
12266
12421
  A2(
12267
12422
  $elm$html$Html$p,
12268
12423
  _List_fromArray(
@@ -12277,7 +12432,8 @@ var $author$project$Gem$Shell$pageView = function (config) {
12277
12432
  _List_fromArray(
12278
12433
  [
12279
12434
  $elm$html$Html$Attributes$class('md-link'),
12280
- $elm$html$Html$Attributes$href(config.i.aB)
12435
+ $elm$html$Html$Attributes$href(
12436
+ A2($author$project$Gem$Page$href, config.a, config.i.aB))
12281
12437
  ]),
12282
12438
  _List_fromArray(
12283
12439
  [
@@ -12316,7 +12472,7 @@ var $author$project$Gem$Shell$pageView = function (config) {
12316
12472
  _List_fromArray(
12317
12473
  [
12318
12474
  $author$project$Ui$Toolbar$view(
12319
- {bp: _List_Nil, aV: _List_Nil, p: page.p})
12475
+ {bm: _List_Nil, aX: _List_Nil, p: page.p})
12320
12476
  ]),
12321
12477
  _Utils_ap(
12322
12478
  $author$project$Gem$Shell$lede(page),
@@ -12334,7 +12490,12 @@ var $author$project$Gem$Shell$pageView = function (config) {
12334
12490
  [
12335
12491
  $elm$html$Html$Attributes$class('md')
12336
12492
  ]),
12337
- A3($author$project$Gem$Render$blocks, config.ar, config.bC, page.bs))
12493
+ A4(
12494
+ $author$project$Gem$Render$blocksWithHref,
12495
+ $author$project$Gem$Page$href(config.a),
12496
+ config.as,
12497
+ config.bA,
12498
+ page.bq))
12338
12499
  ]),
12339
12500
  _Utils_ap(
12340
12501
  _List_fromArray(
@@ -12403,7 +12564,7 @@ var $author$project$Ui$Modal$view = function (config) {
12403
12564
  }
12404
12565
  }();
12405
12566
  var closeChip = function () {
12406
- var _v1 = config.bQ;
12567
+ var _v1 = config.bO;
12407
12568
  if (!_v1.$) {
12408
12569
  var onDismiss = _v1.a;
12409
12570
  return _List_fromArray(
@@ -12436,7 +12597,7 @@ var $author$project$Ui$Modal$view = function (config) {
12436
12597
  }
12437
12598
  }();
12438
12599
  var backdrop = function () {
12439
- var _v0 = config.bQ;
12600
+ var _v0 = config.bO;
12440
12601
  if (!_v0.$) {
12441
12602
  var onDismiss = _v0.a;
12442
12603
  return _List_fromArray(
@@ -12484,8 +12645,8 @@ var $author$project$Ui$Modal$view = function (config) {
12484
12645
  A2($elm$html$Html$Attributes$attribute, 'aria-modal', 'true'),
12485
12646
  $elm$html$Html$Attributes$class('modal')
12486
12647
  ]),
12487
- _Utils_ap(widthStyle, config.aV)),
12488
- _Utils_ap(closeChip, config.bJ))
12648
+ _Utils_ap(widthStyle, config.aX)),
12649
+ _Utils_ap(closeChip, config.bH))
12489
12650
  ])));
12490
12651
  };
12491
12652
  var $author$project$Ui$Search$Focused = {$: 0};
@@ -12660,7 +12821,7 @@ var $author$project$Ui$Search$view = F2(
12660
12821
  $elm$json$Json$Decode$succeed(
12661
12822
  _Utils_Tuple2(
12662
12823
  config.c5(
12663
- $author$project$Ui$Search$Select(item.bk)),
12824
+ $author$project$Ui$Search$Select(item.bi)),
12664
12825
  true)))
12665
12826
  ]),
12666
12827
  _List_fromArray(
@@ -12684,7 +12845,7 @@ var $author$project$Ui$Search$view = F2(
12684
12845
  $elm$html$Html$text(item.c)
12685
12846
  ])),
12686
12847
  function () {
12687
- var _v3 = item.L;
12848
+ var _v3 = item.M;
12688
12849
  if (!_v3.$) {
12689
12850
  var detail = _v3.a;
12690
12851
  return A2(
@@ -12714,7 +12875,7 @@ var $author$project$Ui$Search$view = F2(
12714
12875
  ]),
12715
12876
  A2(
12716
12877
  $author$project$Ui$Search$highlightWords,
12717
- $author$project$Ui$Search$queryNeedles(config.m),
12878
+ $author$project$Ui$Search$queryNeedles(config.n),
12718
12879
  snippet));
12719
12880
  } else {
12720
12881
  return $elm$html$Html$text('');
@@ -12740,7 +12901,7 @@ var $author$project$Ui$Search$view = F2(
12740
12901
  ]),
12741
12902
  _List_fromArray(
12742
12903
  [
12743
- $elm$html$Html$text(config.bU)
12904
+ $elm$html$Html$text(config.bT)
12744
12905
  ]))
12745
12906
  ]) : A2($elm$core$List$indexedMap, resultNode, config.b8))
12746
12907
  ]) : _List_Nil;
@@ -12749,17 +12910,17 @@ var $author$project$Ui$Search$view = F2(
12749
12910
  A2($elm$core$List$drop, selected, config.b8));
12750
12911
  if (!_v2.$) {
12751
12912
  var item = _v2.a;
12752
- return $elm$core$Maybe$Just(item.bk);
12913
+ return $elm$core$Maybe$Just(item.bi);
12753
12914
  } else {
12754
12915
  return A2(
12755
12916
  $elm$core$Maybe$map,
12756
12917
  function ($) {
12757
- return $.bk;
12918
+ return $.bi;
12758
12919
  },
12759
12920
  $elm$core$List$head(config.b8));
12760
12921
  }
12761
12922
  }();
12762
- var hasText = !$elm$core$String$isEmpty(config.m);
12923
+ var hasText = !$elm$core$String$isEmpty(config.n);
12763
12924
  return A2(
12764
12925
  $elm$html$Html$form,
12765
12926
  _Utils_ap(
@@ -12770,7 +12931,7 @@ var $author$project$Ui$Search$view = F2(
12770
12931
  [
12771
12932
  _Utils_Tuple2('search', true)
12772
12933
  ])),
12773
- $elm$html$Html$Attributes$id(model.a),
12934
+ $elm$html$Html$Attributes$id(model.b),
12774
12935
  function () {
12775
12936
  if (!selectedValue.$) {
12776
12937
  var value = selectedValue.a;
@@ -12783,7 +12944,7 @@ var $author$project$Ui$Search$view = F2(
12783
12944
  }
12784
12945
  }()
12785
12946
  ]),
12786
- config.aV),
12947
+ config.aX),
12787
12948
  _Utils_ap(
12788
12949
  _List_fromArray(
12789
12950
  [
@@ -12793,9 +12954,9 @@ var $author$project$Ui$Search$view = F2(
12793
12954
  [
12794
12955
  $elm$html$Html$Attributes$type_('search'),
12795
12956
  $elm$html$Html$Attributes$class('search-input'),
12796
- $elm$html$Html$Attributes$id(model.a + '-input'),
12957
+ $elm$html$Html$Attributes$id(model.b + '-input'),
12797
12958
  $elm$html$Html$Attributes$placeholder(config.cP),
12798
- $elm$html$Html$Attributes$value(config.m),
12959
+ $elm$html$Html$Attributes$value(config.n),
12799
12960
  $elm$html$Html$Attributes$autocomplete(false),
12800
12961
  $elm$html$Html$Events$onInput(config.cx),
12801
12962
  $elm$html$Html$Events$onFocus(
@@ -12814,14 +12975,14 @@ var $author$project$Ui$Search$view = F2(
12814
12975
  _Utils_Tuple2(
12815
12976
  config.c5(
12816
12977
  $author$project$Ui$Search$Move(
12817
- {aG: itemCount, aT: true})),
12978
+ {aH: itemCount, aV: true})),
12818
12979
  true));
12819
12980
  case 'ArrowDown':
12820
12981
  return $elm$json$Json$Decode$succeed(
12821
12982
  _Utils_Tuple2(
12822
12983
  config.c5(
12823
12984
  $author$project$Ui$Search$Move(
12824
- {aG: itemCount, aT: false})),
12985
+ {aH: itemCount, aV: false})),
12825
12986
  true));
12826
12987
  default:
12827
12988
  return $elm$json$Json$Decode$fail('not an arrow');
@@ -12858,11 +13019,11 @@ var $author$project$Ui$Search$view = F2(
12858
13019
  var $author$project$Gem$Shell$searchModal = function (config) {
12859
13020
  return (!config.x) ? $elm$html$Html$text('') : $author$project$Ui$Modal$view(
12860
13021
  {
12861
- aV: _List_fromArray(
13022
+ aX: _List_fromArray(
12862
13023
  [
12863
13024
  $elm$html$Html$Attributes$class('search-modal')
12864
13025
  ]),
12865
- bJ: _List_fromArray(
13026
+ bH: _List_fromArray(
12866
13027
  [
12867
13028
  A2(
12868
13029
  $elm$html$Html$div,
@@ -12875,17 +13036,17 @@ var $author$project$Gem$Shell$searchModal = function (config) {
12875
13036
  A2(
12876
13037
  $author$project$Ui$Search$view,
12877
13038
  {
12878
- aV: _List_fromArray(
13039
+ aX: _List_fromArray(
12879
13040
  [
12880
13041
  $elm$html$Html$Attributes$class('search-modal-field')
12881
13042
  ]),
12882
- bU: 'No matches',
13043
+ bT: 'No matches',
12883
13044
  b8: config.cS,
12884
13045
  cn: config.cn,
12885
13046
  cx: config.cA,
12886
13047
  cO: true,
12887
13048
  cP: 'Search pages and headings…',
12888
- m: config.m,
13049
+ n: config.n,
12889
13050
  c5: config.cC
12890
13051
  },
12891
13052
  config.u),
@@ -12928,7 +13089,7 @@ var $author$project$Gem$Shell$searchModal = function (config) {
12928
13089
  'close')
12929
13090
  ]))
12930
13091
  ]),
12931
- bQ: $elm$core$Maybe$Just(config.cB),
13092
+ bO: $elm$core$Maybe$Just(config.cB),
12932
13093
  cf: $elm$core$Maybe$Just(42)
12933
13094
  });
12934
13095
  };
@@ -12960,7 +13121,7 @@ var $author$project$Gem$Shell$tokenStyles = function (colors) {
12960
13121
  }) + '}');
12961
13122
  var dark = '{' + (define(
12962
13123
  function (color) {
12963
- return A2($elm$core$Maybe$withDefault, 'inherit', color.bM);
13124
+ return A2($elm$core$Maybe$withDefault, 'inherit', color.bK);
12964
13125
  }) + '}');
12965
13126
  return ':root' + (dark + (':root[data-theme=\u0022dark\u0022]' + (dark + (':root[data-theme=\u0022light\u0022]' + light))));
12966
13127
  }
@@ -12981,7 +13142,7 @@ var $author$project$Gem$Shell$view = function (config) {
12981
13142
  _List_fromArray(
12982
13143
  [
12983
13144
  $elm$html$Html$text(
12984
- $author$project$Gem$Shell$tokenStyles(config.b.bE))
13145
+ $author$project$Gem$Shell$tokenStyles(config.a.bC))
12985
13146
  ])),
12986
13147
  $author$project$Gem$Shell$header(config),
12987
13148
  A2(
@@ -13011,10 +13172,10 @@ var $author$project$Gem$Shell$view = function (config) {
13011
13172
  };
13012
13173
  var $author$project$Gem$App$view = function (model) {
13013
13174
  return {
13014
- bu: _List_fromArray(
13175
+ bs: _List_fromArray(
13015
13176
  [
13016
13177
  function () {
13017
- var _v0 = model.ay;
13178
+ var _v0 = model.an;
13018
13179
  if (!_v0.$) {
13019
13180
  var error = _v0.a;
13020
13181
  return A2(
@@ -13030,20 +13191,20 @@ var $author$project$Gem$App$view = function (model) {
13030
13191
  } else {
13031
13192
  return $author$project$Gem$Shell$view(
13032
13193
  {
13033
- E: model.E,
13034
- T: model.T,
13035
13194
  F: model.F,
13036
- q: model.q,
13037
- bC: $author$project$Gem$App$codeView(model),
13195
+ T: model.T,
13038
13196
  G: model.G,
13039
- bL: model.K,
13197
+ q: model.q,
13198
+ bA: $author$project$Gem$App$codeView(model),
13199
+ H: model.H,
13200
+ bJ: model.L,
13040
13201
  i: model.i,
13041
- M: model.b.M,
13042
- l: model.l,
13202
+ z: model.a.z,
13203
+ m: model.m,
13043
13204
  N: model.N,
13044
- k: model.k,
13045
- z: model.z,
13046
- aK: model.i.aK,
13205
+ l: model.l,
13206
+ A: model.A,
13207
+ aM: model.i.aM,
13047
13208
  cj: $author$project$Gem$App$AiPicked,
13048
13209
  ck: $author$project$Gem$App$AiToggled,
13049
13210
  cl: $author$project$Gem$App$BurgerMsg,
@@ -13060,17 +13221,17 @@ var $author$project$Gem$App$view = function (model) {
13060
13221
  cF: $author$project$Gem$App$ThemeTabsMsg,
13061
13222
  cG: $author$project$Gem$App$TocToggled,
13062
13223
  cH: $author$project$Gem$App$GroupToggled,
13063
- C: model.C,
13224
+ D: model.D,
13064
13225
  P: model.P,
13065
- m: model.m,
13226
+ n: model.n,
13066
13227
  cS: $author$project$Gem$App$results(model),
13067
13228
  u: model.u,
13068
13229
  x: model.x,
13069
- b: model.b,
13070
- ar: model.ar,
13071
- D: model.D,
13230
+ a: model.a,
13231
+ as: model.as,
13232
+ E: model.E,
13072
13233
  R: model.R,
13073
- I: model.I
13234
+ J: model.J
13074
13235
  });
13075
13236
  }
13076
13237
  }()
@@ -13348,7 +13509,7 @@ var $author$project$Ui$Stat$view = function (config) {
13348
13509
  [
13349
13510
  $elm$html$Html$Attributes$class('count')
13350
13511
  ]),
13351
- config.aV),
13512
+ config.aX),
13352
13513
  _List_fromArray(
13353
13514
  [
13354
13515
  A2(
@@ -13359,10 +13520,10 @@ var $author$project$Ui$Stat$view = function (config) {
13359
13520
  ]),
13360
13521
  _List_fromArray(
13361
13522
  [
13362
- $elm$html$Html$text(config.bk)
13523
+ $elm$html$Html$text(config.bi)
13363
13524
  ])),
13364
13525
  function () {
13365
- var _v0 = config.by;
13526
+ var _v0 = config.bw;
13366
13527
  if (!_v0.$) {
13367
13528
  var caption = _v0.a;
13368
13529
  return A2(
@@ -13382,7 +13543,7 @@ var $author$project$Ui$Stat$view = function (config) {
13382
13543
  ]));
13383
13544
  };
13384
13545
  var $author$project$Gem$Components$default = {
13385
- aF: F3(
13546
+ aG: F3(
13386
13547
  function (tag, props, children) {
13387
13548
  switch (tag) {
13388
13549
  case 'callout':
@@ -13405,9 +13566,9 @@ var $author$project$Gem$Components$default = {
13405
13566
  case 'ui-stat':
13406
13567
  return $author$project$Ui$Stat$view(
13407
13568
  {
13408
- aV: _List_Nil,
13409
- by: A2($author$project$Gem$Components$maybeText, props, 'label'),
13410
- bk: A2($author$project$Gem$Components$text, props, 'value')
13569
+ aX: _List_Nil,
13570
+ bw: A2($author$project$Gem$Components$maybeText, props, 'label'),
13571
+ bi: A2($author$project$Gem$Components$text, props, 'value')
13411
13572
  });
13412
13573
  case 'kbd':
13413
13574
  return A2(
@@ -13545,7 +13706,7 @@ var $author$project$Ui$Banner$view = function (config) {
13545
13706
  }
13546
13707
  }();
13547
13708
  var actionHtml = function () {
13548
- var _v0 = config.bo;
13709
+ var _v0 = config.bl;
13549
13710
  if (!_v0.$) {
13550
13711
  var action = _v0.a;
13551
13712
  return _List_fromArray(
@@ -13605,7 +13766,7 @@ var $author$project$Ui$Banner$view = function (config) {
13605
13766
  _List_Nil,
13606
13767
  _List_fromArray(
13607
13768
  [
13608
- $elm$html$Html$text(config.bu)
13769
+ $elm$html$Html$text(config.bs)
13609
13770
  ]))
13610
13771
  ]),
13611
13772
  _Utils_ap(actionHtml, dismissHtml)));
@@ -13615,15 +13776,15 @@ var $author$project$Gem$Components$withInteractive = F2(
13615
13776
  return _Utils_update(
13616
13777
  base,
13617
13778
  {
13618
- aF: F3(
13779
+ aG: F3(
13619
13780
  function (tag, props, children) {
13620
13781
  switch (tag) {
13621
13782
  case 'ui-button':
13622
13783
  return $author$project$Ui$Button$view(
13623
13784
  {
13624
- aV: _List_Nil,
13625
- bw: $elm$core$Maybe$Nothing,
13626
- bO: A2($author$project$Gem$Components$flag, props, 'disabled'),
13785
+ aX: _List_Nil,
13786
+ bu: $elm$core$Maybe$Nothing,
13787
+ bM: A2($author$project$Gem$Components$flag, props, 'disabled'),
13627
13788
  b3: $elm$core$Maybe$Nothing,
13628
13789
  c: A2($author$project$Gem$Components$text, props, 'label'),
13629
13790
  co: noop,
@@ -13634,15 +13795,15 @@ var $author$project$Gem$Components$withInteractive = F2(
13634
13795
  case 'ui-banner':
13635
13796
  return $author$project$Ui$Banner$view(
13636
13797
  {
13637
- bo: $elm$core$Maybe$Nothing,
13638
- aV: _List_Nil,
13639
- bu: A2($author$project$Gem$Components$text, props, 'body'),
13798
+ bl: $elm$core$Maybe$Nothing,
13799
+ aX: _List_Nil,
13800
+ bs: A2($author$project$Gem$Components$text, props, 'body'),
13640
13801
  ca: $author$project$Gem$Components$bannerKind(props),
13641
13802
  cu: $elm$core$Maybe$Nothing,
13642
13803
  p: A2($author$project$Gem$Components$text, props, 'title')
13643
13804
  });
13644
13805
  default:
13645
- return A3(base.aF, tag, props, children);
13806
+ return A3(base.aG, tag, props, children);
13646
13807
  }
13647
13808
  })
13648
13809
  });