@vanelsas/baredom 3.1.0 → 3.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/custom-elements.json +553 -0
  3. package/dist/baredom.d.ts +5 -0
  4. package/dist/base.js +590 -545
  5. package/dist/integrity.json +108 -103
  6. package/dist/x-alert.js +17 -16
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +9 -9
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -13
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.d.ts +55 -0
  15. package/dist/x-calendar.js +40 -0
  16. package/dist/x-cancel-dialogue.js +14 -14
  17. package/dist/x-card.js +7 -7
  18. package/dist/x-carousel.js +32 -32
  19. package/dist/x-chart.js +47 -47
  20. package/dist/x-checkbox.js +1 -1
  21. package/dist/x-chip.js +1 -1
  22. package/dist/x-code.d.ts +48 -0
  23. package/dist/x-code.js +28 -0
  24. package/dist/x-collapse.js +8 -8
  25. package/dist/x-color-picker.js +46 -46
  26. package/dist/x-combobox.js +28 -28
  27. package/dist/x-command-palette.js +27 -27
  28. package/dist/x-confetti.js +24 -24
  29. package/dist/x-container.js +5 -5
  30. package/dist/x-context-menu.js +20 -21
  31. package/dist/x-copy.js +1 -21
  32. package/dist/x-currency-field.js +23 -23
  33. package/dist/x-date-picker.js +38 -41
  34. package/dist/x-divider.js +10 -10
  35. package/dist/x-drawer.js +11 -11
  36. package/dist/x-dropdown.js +12 -12
  37. package/dist/x-fieldset.js +5 -5
  38. package/dist/x-file-download.js +6 -6
  39. package/dist/x-file-upload.js +21 -21
  40. package/dist/x-form-field.js +14 -14
  41. package/dist/x-form.js +10 -10
  42. package/dist/x-gaussian-blur.js +13 -13
  43. package/dist/x-grid.js +6 -6
  44. package/dist/x-i18n-provider.js +7 -7
  45. package/dist/x-i18n.js +4 -4
  46. package/dist/x-icon.js +7 -7
  47. package/dist/x-image.js +16 -16
  48. package/dist/x-kbd.js +15 -15
  49. package/dist/x-kinetic-canvas.js +25 -25
  50. package/dist/x-kinetic-font.js +23 -23
  51. package/dist/x-kinetic-typography.js +34 -34
  52. package/dist/x-liquid-dock.js +31 -31
  53. package/dist/x-liquid-fill.js +41 -41
  54. package/dist/x-liquid-glass.js +35 -35
  55. package/dist/x-menu-item.js +8 -8
  56. package/dist/x-menu.js +9 -9
  57. package/dist/x-metaball-cursor.js +23 -23
  58. package/dist/x-modal.js +12 -12
  59. package/dist/x-morph-stack.js +37 -37
  60. package/dist/x-multi-combobox.js +36 -36
  61. package/dist/x-navbar.js +15 -15
  62. package/dist/x-neural-glow.js +29 -29
  63. package/dist/x-notification-center.js +9 -9
  64. package/dist/x-organic-divider.js +17 -17
  65. package/dist/x-organic-progress.js +32 -32
  66. package/dist/x-organic-shape.js +12 -12
  67. package/dist/x-otp-input.js +21 -21
  68. package/dist/x-pagination.js +14 -14
  69. package/dist/x-particle-button.js +49 -49
  70. package/dist/x-popover.js +26 -26
  71. package/dist/x-progress-circle.js +8 -8
  72. package/dist/x-progress.js +7 -7
  73. package/dist/x-proximity-list.js +20 -20
  74. package/dist/x-radio.js +11 -11
  75. package/dist/x-range-slider.d.ts +51 -0
  76. package/dist/x-range-slider.js +29 -0
  77. package/dist/x-rating.d.ts +49 -0
  78. package/dist/x-rating.js +24 -0
  79. package/dist/x-ripple-effect.js +9 -9
  80. package/dist/x-scroll-parallax.js +17 -17
  81. package/dist/x-scroll-stack.js +16 -16
  82. package/dist/x-scroll-story.js +33 -33
  83. package/dist/x-scroll-timeline.js +45 -45
  84. package/dist/x-scroll.js +36 -36
  85. package/dist/x-search-field.js +1 -1
  86. package/dist/x-select.js +1 -1
  87. package/dist/x-sidebar.js +16 -16
  88. package/dist/x-skeleton-group.js +12 -12
  89. package/dist/x-skeleton.js +1 -1
  90. package/dist/x-slider.js +16 -16
  91. package/dist/x-soft-body.js +17 -17
  92. package/dist/x-spacer.js +4 -4
  93. package/dist/x-spinner.js +4 -4
  94. package/dist/x-splash.js +12 -12
  95. package/dist/x-split-pane.d.ts +44 -0
  96. package/dist/x-split-pane.js +16 -0
  97. package/dist/x-spotlight-card.js +12 -12
  98. package/dist/x-stat.js +10 -10
  99. package/dist/x-stepper.js +13 -13
  100. package/dist/x-switch.js +10 -10
  101. package/dist/x-tab.js +6 -6
  102. package/dist/x-table-cell.js +19 -19
  103. package/dist/x-table-row.js +8 -8
  104. package/dist/x-table.js +13 -13
  105. package/dist/x-tabs.js +11 -11
  106. package/dist/x-text-area.js +18 -18
  107. package/dist/x-theme.js +25 -25
  108. package/dist/x-timeline-item.js +20 -20
  109. package/dist/x-timeline.js +8 -8
  110. package/dist/x-toast.js +22 -22
  111. package/dist/x-toaster.js +7 -7
  112. package/dist/x-tooltip.js +12 -12
  113. package/dist/x-trace-history.js +126 -119
  114. package/dist/x-typography.js +6 -6
  115. package/dist/x-welcome-tour.js +63 -63
  116. package/package.json +26 -1
@@ -1,121 +1,128 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var OO=function(a,b,c){for(var d=$APP.r(a.$b),e=null,f=0,h=0;;)if(h<f){var k=e.F(null,h),m=$APP.B(k,0,null);k=$APP.B(k,1,null);k.J?k.J(m,a,b,c):k.call(null,m,a,b,c);h+=1}else if(d=$APP.r(d))$APP.Wc(d)?(e=$APP.Cb(d),d=$APP.Db(d),m=e,f=$APP.w(e),e=m):(e=$APP.t(d),m=$APP.B(e,0,null),k=$APP.B(e,1,null),k.J?k.J(m,a,b,c):k.call(null,m,a,b,c),d=$APP.v(d),e=null,f=0),h=0;else break},PO=function(a,b){const c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},QO=function(a,b){if(a!=null&&a.xc!=null)a=a.xc(a,
3
- b);else{var c=QO[$APP.aa(a==null?null:a)];if(c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else if(c=QO._,c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else throw $APP.ua("IReset.-reset!",a);}return a},RO=function(a){return a+1},SO=function(a){return a-1},TO=function(a,b){return $APP.ed(function(c,d){c=a.i?a.i(c):a.call(null,c);d=a.i?a.i(d):a.call(null,d);var e=$APP.cd($APP.ad);return e.j?e.j(c,d):e.call(null,c,d)},b)},UO=function(a,b){return TO(a,b)},VO=function(a){if(a instanceof RegExp)return a;var b=$APP.Mg(/^\(\?([idmsux]*)\)/,
4
- a),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new RegExp(a.substring(c==null?0:c.length),$APP.n(b)?b:"")},WO=function(a){return $APP.Md($APP.ya(function(b,c){return $APP.Od(b,c,$APP.Hc(b,c,0)+1)},$APP.vb($APP.ce),a))},XO=function(a){return new $APP.K(null,2,5,$APP.M,[$APP.me(200,a),$APP.ne(200,a)],null)},YO=function(a,b){if(a instanceof $APP.ke){var c=a.lc;if(c!=null&&!$APP.n(c.i?c.i(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;a.$b!=null&&OO(a,c,b);return b}return QO(a,
5
- b)},$O=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.Mg(ZO,b);return $APP.E(b)||$APP.l(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.y.j("raw",$APP.l(a,"BAREDOM_TRACE_HISTORY"))},aP=function(a){a=a==null?null:a.tagName;a=a==null?null:a.toLowerCase();return $APP.n(a)?a:"document"},bP=function(a){try{return a==null?null:$APP.Xm(a)}catch(b){try{return""+$APP.P.i(a)}catch(c){return"(unprintable)"}}},fP=function(a,b,c){a=$APP.H(a);var d=$APP.C(a,$APP.O),e=$APP.C(a,cP),f=$APP.C(a,dP),h=$APP.C(a,
6
- eP);var k=$APP.Bd(d);k=$APP.n(k)?""+$APP.P.i(k)+"/"+$APP.P.i($APP.Dg(d)):$APP.Dg(d);b={schemaVersion:1,id:b,t:c,type:k,tag:e,componentId:f,causeId:h};switch(d instanceof $APP.F?d.ea:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return c=$APP.mi.i(a),b.eventName=c,c=bP($APP.V.i(a)),b.detail=c,c=$APP.E($APP.ni.i(a)),b.cancelable=c,a=$APP.E($APP.oi.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.di.i(a),b.field=c,a=bP($APP.ei.i(a)),
7
- b.value=a,b;case "dom/attribute-set":return c=$APP.Gh.i(a),b.attribute=c,a=$APP.ei.i(a),b.value=a,b;case "dom/attribute-removed":return a=$APP.Gh.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.Gh.i(a),b.attribute=c,c=$APP.Hh.i(a),b.oldValue=c,a=$APP.Ih.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":return b;default:return b}},gP=function(a){a=""+$APP.P.i(a);return a.length<2?"0"+$APP.P.i(a):a},hP=function(a,b){return $APP.tf.m($APP.ce,$APP.te(function(c){var d=
8
- $APP.B(c,0,null);$APP.B(c,1,null);return $APP.$c(b,d)}),a)},qP=function(a,b,c,d){var e=$APP.H(d);d=$APP.C(e,iP);var f=$APP.C(e,$APP.fr),h=$APP.C(e,jP);e=$APP.C(e,kP);a:{var k=a.length;for(var m=0,q=$APP.vb($APP.sg);;){if(m>=k){k=$APP.xb(q);break a}var u=a[m].componentId;m+=1;q=u!=null?$APP.wb(q,u):q}k=void 0}k=hP(b,k);b=$APP.E(e);e={};k=$APP.r(k);m=null;for(u=q=0;;)if(u<q){var x=m.F(null,u),z=$APP.B(x,0,null),A=$APP.B(x,1,null);x=e;z=""+$APP.P.i(z);A={tag:cP.i(A),firstSeen:lP.i(A)};x[z]=A;u+=1}else if(k=
9
- $APP.r(k))$APP.Wc(k)?(q=$APP.Cb(k),k=$APP.Db(k),m=q,q=$APP.w(q)):(m=$APP.t(k),q=$APP.B(m,0,null),u=$APP.B(m,1,null),m=e,q=""+$APP.P.i(q),u={tag:cP.i(u),firstSeen:lP.i(u)},m[q]=u,k=$APP.v(k),m=null,q=0),u=0;else break;k=[];c=$APP.r(c);m=null;for(u=q=0;;)if(u<q){x=m.F(null,u);var D=$APP.H(x);x=$APP.C(D,$APP.ar);z=$APP.C(D,$APP.bj);A=$APP.C(D,mP);var G=$APP.C(D,nP),J=$APP.C(D,oP);D=$APP.C(D,pP);k.push({id:x,label:z,startT:A,endT:G,startId:J,endId:D});u+=1}else if(c=$APP.r(c))$APP.Wc(c)?(q=$APP.Cb(c),
10
- c=$APP.Db(c),m=q,q=$APP.w(q)):(m=$APP.t(c),A=$APP.H(m),m=$APP.C(A,$APP.ar),q=$APP.C(A,$APP.bj),u=$APP.C(A,mP),x=$APP.C(A,nP),z=$APP.C(A,oP),A=$APP.C(A,pP),k.push({id:m,label:q,startT:u,endT:x,startId:z,endId:A}),c=$APP.v(c),m=null,q=0),u=0;else break;return{schemaVersion:1,exportedAt:d,origin:f,userAgent:h,forensic:b,components:e,sessions:k,records:a}},rP=function(a){if($APP.ra(a)){if(typeof a.schemaVersion!=="number")return new $APP.N(null,1,[$APP.On,"Envelope is missing schemaVersion."],null);if($APP.I(1,
11
- a.schemaVersion))return new $APP.N(null,1,[$APP.On,"Schema version mismatch: expected "+$APP.P.i(1)+", got "+$APP.P.i(a.schemaVersion)+"."],null);if($APP.p($APP.qa(a.records)))return new $APP.N(null,1,[$APP.On,"Envelope.records is not an array."],null);var b=a.records,c=b.length;a:{for(var d=0;;){if(d>=c){b=null;break a}var e=b[d];if($APP.ra(e)&&typeof e.id==="number"&&typeof e.t==="number"&&typeof e.type==="string")d+=1;else{b=d;break a}}b=void 0}return b==null?new $APP.N(null,1,[$APP.Cq,a],null):
12
- new $APP.N(null,1,[$APP.On,"Record at index "+$APP.P.i(b)+" is missing required fields (id, t, type)."],null)}return new $APP.N(null,1,[$APP.On,"Envelope is not a JSON object."],null)},sP=function(a,b,c){return $APP.w(a)>=c?$APP.wd.j($APP.Oc(a),b):$APP.wd.j(a,b)},vP=function(){var a=kP.i($APP.bb(tP));return $APP.n(a)?$APP.wg(uP):$APP.Fm.j($APP.wg(uP),$APP.Br)},yP=function(a){var b=$APP.fe(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.$c(c,a)?d:null},wP);return $APP.n(b)?b:xP},
13
- zP=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.n(b)?b.toLowerCase():""},DP=function(a,b){var c=$APP.H(b),d=$APP.C(c,cP),e=$APP.C(c,AP);b=$APP.C(c,BP);c=$APP.Hc(c,CP,zP);if(d=d==null||$APP.y.j("",d)||$APP.y.j("all",d)||$APP.y.j(d,a.tag)){if(e=e==null||$APP.$c(e,yP(a.type)))e=b==null||$APP.y.j("",b)||!((c.i?c.i(a):c.call(null,a)).indexOf(b)<0);d=e}return d},EP=function(a,b){return $APP.Oe(UO(function(c){return c.t},$APP.ue(function(c){return DP(c,b)},$APP.Ac(a))))},FP=function(a,
14
- b){return typeof b==="number"?a.find(function(c){return $APP.y.j(b,c.id)}):null},GP=function(a){if(a!=null)try{var b=JSON.stringify(a),c=""+$APP.P.i(b);return c.length<=60?c:""+$APP.P.i(c.substring(0,60))+"…"}catch(d){return"(unstringifiable)"}else return null},HP=function(a){switch(a.type){case "event/dispatch":return""+$APP.P.i(a.eventName)+$APP.P.i(function(){var b=GP(a.detail);return $APP.n(b)?" "+$APP.P.i(b):null}());case "event/dispatch-cancelable":return""+$APP.P.i(a.eventName)+$APP.P.i($APP.n(a.defaultPrevented)?
15
- " (prevented)":null)+$APP.P.i(function(){var b=GP(a.detail);return $APP.n(b)?" "+$APP.P.i(b):null}());case "event/dispatch-document":return""+$APP.P.i(a.eventName)+$APP.P.i(function(){var b=GP(a.detail);return $APP.n(b)?" "+$APP.P.i(b):null}());case "state/instance-field-set":return""+$APP.P.i(a.field)+" \x3d "+$APP.P.i(function(){var b=GP(a.value);return $APP.n(b)?b:"null"}());case "dom/attribute-set":return""+$APP.P.i(a.attribute)+"\x3d"+$APP.P.i($APP.ch($APP.Ac([a.value])));case "dom/attribute-removed":return""+
16
- $APP.P.i(a.attribute)+" removed";case "lifecycle/connected":return"connected";case "lifecycle/disconnected":return"disconnected";case "lifecycle/attribute-changed":return""+$APP.P.i(a.attribute)+": "+$APP.P.i($APP.ch($APP.Ac([a.oldValue])))+" → "+$APP.P.i($APP.ch($APP.Ac([a.newValue])));default:return"("+$APP.P.i(a.type)+")"}},IP=function(a){if(typeof a!=="number")return"";if(a<1E3)return""+$APP.P.i(a.toFixed(0))+"ms";if(a<6E4)return""+$APP.P.i((a/1E3).toFixed(3))+"s";var b=$APP.qd(a,6E4)/1E3;return""+
17
- $APP.P.i(Math.floor(a/6E4))+"m"+$APP.P.i(b.toFixed(1))+"s"},KP=function(a){a=yP(a.type);return $APP.C(JP,$APP.n(a)?a:xP)},MP=function(a){a=a.componentId;return $APP.n(a)?a:LP},PP=function(a){return $APP.Oe(UO(NP,$APP.oe.j(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);var d=$APP.t(b);return new $APP.N(null,3,[OP,c,cP,d.tag,NP,$APP.Vd($APP.Hm,$APP.oe.j(function(e){return e.t},b))],null)},$APP.kh(MP,a))))},TP=function(a){if($APP.r(a)){var b=$APP.oe.j(function(c){return c.t},a);a=$APP.Vd($APP.Hm,
18
- b);b=$APP.Vd($APP.Gm,b);return new $APP.N(null,3,[QP,a,RP,b,SP,$APP.Gm.j(1,b-a)],null)}return null},VP=function(a,b){return $APP.r(a)?$APP.Wd(UP,function(c){return Math.abs(c.t-b)},a):null},WP=function(a){if($APP.r(a)){var b=WO($APP.oe.j(function(d){return yP(d.type)},a)),c=$APP.Vd($APP.Gm,$APP.og(b));a=$APP.fe(function(d){return $APP.y.j(c,$APP.C(b,d))?d:null},uP);return $APP.n(a)?a:xP}return null},dQ=function(a,b){a=$APP.kh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/4)},a);return $APP.Oe(UO(XP,
19
- $APP.oe.j(function(c){var d=$APP.B(c,0,null),e=$APP.B(c,1,null);c=$APP.oe.j(function(f){return f.t},e);e=$APP.Oe(UO(function(f){return f.id},e));return new $APP.N(null,7,[XP,d,YP,e,ZP,WP(e),$P,d*4,aQ,(d+1)*4,bQ,$APP.Vd($APP.Hm,c),cQ,$APP.Vd($APP.Gm,c)],null)},a)))},eQ=function(a){return $APP.fe(function(b){return $APP.w(YP.i(b))>3},a)},fQ=function(a){return $APP.r(a)?$APP.Vd($APP.Gm,$APP.oe.j(function(b){return $APP.w(YP.i(b))},a)):0},gQ=function(a,b){var c=b.id;a=UO(function(d){return d.t},$APP.ue(function(d){return $APP.y.j(c,
20
- d.causeId)},$APP.Ac(a)));return new $APP.N(null,2,[$APP.ys,$APP.w(a),YP,$APP.Oe($APP.me(50,a))],null)},hQ=function(a,b){return $APP.Oe(UO(function(c){return c.id},$APP.ue(function(c){return $APP.y.j(b,c.causeId)},$APP.Ac(a))))},mQ=function(a,b){var c=XO(iQ(a,b));a=$APP.B(c,0,null);c=$APP.B(c,1,null);var d=$APP.kh(function(e){return e.causeId},a);return $APP.Vk.m(function h(f){var k=f.id;k=d.i?d.i(k):d.call(null,k);return new $APP.N(null,2,[jQ,f,kQ,$APP.xe(h,k)],null)}(b),lQ,$APP.E($APP.r(c)))},oQ=
21
- function(a,b){return typeof b==="number"?$APP.fe(function(c){return $APP.y.j(b,$APP.ar.i(c))?c:null},nQ.i(a)):null},pQ=function(a,b,c,d){b===0?c="No records yet — interact with components to start tracing.":a===0?c=""+$APP.P.i(b)+" "+$APP.P.i($APP.y.j(1,b)?"record":"records")+" · all hidden by filter":(a=""+$APP.P.i(a)+$APP.P.i($APP.I(a,b)?" of "+$APP.P.i(b):null)+" "+$APP.P.i($APP.y.j(1,a)?"record":"records")+" · "+$APP.P.i(d)+" "+$APP.P.i($APP.y.j(1,d)?"lane":"lanes"),b=$APP.P,d=b.i,c=SP.i(c),c=
22
- $APP.n(c)?" · spanning "+$APP.P.i(IP(c)):null,c=a+d.call(b,c));return c},rQ=function(a){return $APP.Vc(a)&&$APP.y.j(qQ,$APP.t(a))},tQ=function(a){return $APP.Vc(a)&&$APP.y.j(sQ,$APP.t(a))},uQ=function(a){return $APP.Vc(a)&&($APP.y.j(qQ,$APP.t(a))||$APP.y.j(sQ,$APP.t(a)))?$APP.Dc(a):null},vQ=function(a,b){a=$APP.l(a,"__xTraceHistoryUiState");return $APP.n(a)?(b=$APP.l(a,$APP.Dg(b)),void 0===b?null:b):null},wQ=function(a,b,c){var d=$APP.l(a,"__xTraceHistoryUiState");d=$APP.n(d)?d:{};b=$APP.Dg(b);d[b]=
23
- c;a.__xTraceHistoryUiState=d},yQ=function(){var a=YP.i($APP.bb(tP)),b=$APP.bb(xQ),c=b[1];if(b[0]===a)return c;b=$APP.Xm($APP.Oe(a));YO(xQ,[a,b]);return b},DQ=function(){var a=zQ.J(AQ,$APP.Vk,BQ,!1);a=$APP.H(a);a=$APP.C(a,CQ);a=$APP.r(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.F(null,d);$APP.B(e,0,null);e=$APP.B(e,1,null);try{e.H?e.H():e.call(null)}catch(f){}d+=1}else if(a=$APP.r(a)){if($APP.Wc(a))c=$APP.Cb(a),a=$APP.Db(a),b=c,c=$APP.w(c);else{b=$APP.t(a);$APP.B(b,0,null);e=$APP.B(b,1,null);try{e.H?
24
- e.H():e.call(null)}catch(f){}a=$APP.v(a);b=null;c=0}d=0}else return null},EQ=function(){if(AQ instanceof $APP.ke){var a=AQ.state;a=$APP.Vk.m?$APP.Vk.m(a,BQ,!0):$APP.Vk.call(null,a,BQ,!0);if(AQ instanceof $APP.ke){var b=AQ.lc;if(b!=null&&!$APP.n(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=AQ.state;AQ.state=a;AQ.$b!=null&&OO(AQ,b,a);a=new $APP.K(null,2,5,$APP.M,[b,a],null)}else a=new $APP.K(null,2,5,$APP.M,[$APP.bb(AQ),QO(AQ,a)],null)}else a=new $APP.K(null,2,5,$APP.M,
25
- [$APP.bb(AQ),$APP.Am(AQ,$APP.Vk,BQ,!0)],null);b=$APP.B(a,0,null);$APP.B(a,1,null);return $APP.n(BQ.i(b))?null:requestAnimationFrame(DQ)},aaa=function(a,b){var c=FQ.i(a)+1;return GQ($APP.Vk.m(a,FQ,c),new $APP.K(null,2,5,$APP.M,[CQ,c],null),b)},baa=function(a,b,c){if($APP.y.j("document",b))return new $APP.N(null,2,[$APP.ar,null,HQ,!1],null);b=$APP.l(a,"__xTraceHistoryId");if(b!=null)return new $APP.N(null,2,[$APP.ar,b,HQ,!1],null);a.__xTraceHistoryId=c;return new $APP.N(null,2,[$APP.ar,c,HQ,!0],null)},
26
- KQ=function(){var a=zQ.J(tP,IQ,JQ,RO);return JQ.i(a)-1},caa=function(a){zQ.j(LQ,RO);try{a.H?a.H():a.call(null)}finally{zQ.j(LQ,SO)}},MQ=function(a){var b=a.getRootNode();return b instanceof ShadowRoot?b.host:a.parentNode},NQ=function(a){for(;;)if(a!=null&&a instanceof Element){var b=a.localName;var c=b!=null;b=c?b.includes("-"):c;if($APP.n(b))return a;a=MQ(a)}else return null},OQ=function(a){if(a instanceof Node)for(a=MQ(a);;){if(a==null||a===document)return!1;if($APP.n($APP.l(a,"__xTraceHistoryInternal")))return!0;
27
- a=MQ(a)}else return!1},PQ=function(a){var b=$APP.Dh.i(a);return $APP.$c(daa,$APP.O.i(a))?b instanceof Node?(a=$APP.l(b,"__xTraceHistoryInternal"),$APP.n(a)?a:OQ(b)):!1:OQ(b)},UQ=function(a,b,c,d){var e=$APP.bb(tP),f=$APP.Dh.i(a);if(!$APP.n(function(){var u=(u=$APP.p(d))?$APP.Qn.i(e):u;return $APP.n(u)?u:PQ(a)}())){var h=function(){var u=NQ(f);return $APP.n(u)?u:f}(),k=aP(h);h=baa(h,k,QQ.i(e));var m=$APP.H(h);h=$APP.C(m,$APP.ar);m=$APP.C(m,HQ);var q=$APP.Nc($APP.bb(RQ));q=$APP.Vk.B(a,cP,k,$APP.Ac([dP,
28
- h,eP,q]));b=fP(q,b,c);b=sP(YP.i(e),b,SQ.i(e));c=$APP.n(m)?$APP.Vk.m(TQ.i(e),h,new $APP.N(null,2,[cP,k,lP,c],null)):TQ.i(e);k=$APP.n(m)?h+1:QQ.i(e);zQ.B(tP,$APP.Vk,YP,b,$APP.Ac([QQ,k,TQ,c]));EQ()}},VQ=function(a,b){var c=NQ(b);b=$APP.l($APP.n(c)?c:b,"__xTraceHistoryId");if($APP.n(b))switch(c=$APP.O.i(a),c instanceof $APP.F?c.ea:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return""+$APP.P.i(b)+":evt:"+$APP.P.i($APP.mi.i(a));case "state/instance-field-set":return""+
29
- $APP.P.i(b)+":fld:"+$APP.P.i($APP.di.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.P.i(b)+":attr:"+$APP.P.i($APP.Gh.i(a));default:return null}else return null},XQ=function(a,b,c,d){var e=$APP.p(kP.i(a));return e?(b=VQ(b,c),$APP.n(b)?(a=$APP.C(WQ.i(a),b),$APP.n(a)?d-a<16:null):null):e},YQ=function(a,b,c){if($APP.n(kP.i($APP.bb(tP))))return null;a=VQ(a,b);return $APP.n(a)?zQ.J(tP,GQ,new $APP.K(null,2,5,$APP.M,[WQ,a],null),c):null},$Q=function(a){var b=$APP.O.i(a),c=$APP.Dh.i(a),
30
- d=performance.now();if($APP.n(function(){var f=$APP.bb(LQ)>0;if(f)return f;f=$APP.bb(ZQ);f=$APP.n(f)?$APP.$c(eaa,b):f;if($APP.n(f))return f;f=PQ(a);return $APP.n(f)?f:XQ($APP.bb(tP),a,c,d)}()))return null;var e=KQ();UQ(a,e,d,!1);return YQ(a,c,d)},faa=function(){var a=EventTarget.prototype,b=a.dispatchEvent;$APP.n($APP.l(b,"__xTraceHistoryWrapped"))||(YO(aR,b),b=function(c){var d=$APP.bb(aR);var e=$APP.p($APP.bb(ZQ));e||(e=$APP.Qn.i($APP.bb(tP)),e=$APP.n(e)?e:$APP.bb(LQ)>0||OQ(this));if($APP.n(e))c=
31
- d.call(this,c);else{e=c instanceof CustomEvent;var f=performance.now(),h=e?new $APP.N(null,2,[$APP.O,this===document?$APP.si:$APP.n(c.cancelable)?$APP.qi:$APP.li,$APP.mi,c.type],null):null;if($APP.n(e?XQ($APP.bb(tP),h,this,f):e))c=d.call(this,c);else{var k=KQ();zQ.m(RQ,$APP.wd,k);try{var m=d.call(this,c)}finally{zQ.j(RQ,$APP.Oc)}if(e)try{UQ(new $APP.N(null,6,[$APP.O,this===document?$APP.si:$APP.n(c.cancelable)?$APP.qi:$APP.li,$APP.Dh,this,$APP.mi,c.type,$APP.V,c.detail,$APP.ni,c.cancelable,$APP.oi,
32
- c.defaultPrevented],null),k,f,!0),YQ(h,this,f)}catch(q){}c=m}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},gaa=function(){return yQ()},haa=function(){var a=TQ.i($APP.bb(tP)),b={};a=$APP.r(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e),h=$APP.B(f,0,null),k=$APP.B(f,1,null);f=b;h=""+$APP.P.i(h);k={tag:cP.i(k),firstSeen:lP.i(k)};f[h]=k;e+=1}else if(a=$APP.r(a))$APP.Wc(a)?(d=$APP.Cb(a),a=$APP.Db(a),c=d,d=$APP.w(d)):(c=$APP.t(a),d=$APP.B(c,0,null),e=$APP.B(c,1,null),c=b,d=""+$APP.P.i(d),
33
- e={tag:cP.i(e),firstSeen:lP.i(e)},c[d]=e,a=$APP.v(a),c=null,d=0),e=0;else break;return b},iaa=function(a){var b=a.components;return b==null?$APP.we:$APP.oe.j(function(c){return $APP.l(b,c).tag},Object.keys(b))},jaa=function(){var a=$APP.bb(tP),b=$APP.oe.j(cP,$APP.og(TQ.i(a)));a=$APP.se(function(c){c=$APP.H(c);c=$APP.C(c,bR);return iaa(c)},$APP.Ac([cR.i(a)]));return $APP.Oe($APP.tf.j($APP.Cg(),$APP.re.j(b,a)))},dR=function(){zQ.J(tP,$APP.Vk,$APP.Qn,!0);return EQ()},eR=function(){zQ.J(tP,$APP.Vk,$APP.Qn,
34
- !1);return EQ()},jR=function(){zQ.B(tP,$APP.Vk,YP,fR,$APP.Ac([JQ,0,gR,$APP.we,hR,0,iR,null,WQ,$APP.ce]));return EQ()},kR=function(){return iR.i($APP.bb(tP))},kaa=function(a,b,c,d){return b==null?a:$APP.xe(function(e){e=$APP.H(e);var f=$APP.C(e,$APP.ar);return $APP.y.j(f,b)?$APP.Vk.B(e,nP,c,$APP.Ac([pP,d])):e},a)},lR=function(){var a=performance.now();zQ.j(tP,function(b){return $APP.Vk.m(IQ.ua(b,gR,kaa,iR.i(b),a,JQ.i(b)),iR,null)});return EQ()},mR=function(){kR()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),
35
- lR());var a=performance.now();zQ.j(tP,function(b){var c=hR.i(b),d=JQ.i(b);return $APP.Vk.B(IQ.J(b,gR,$APP.wd,new $APP.N(null,6,[$APP.ar,c,$APP.bj,"Session "+$APP.P.i(c),mP,a,nP,null,oP,d,pP,null],null)),iR,c,$APP.Ac([hR,c+1]))});EQ();return iR.i($APP.bb(tP))},nR=function(a,b){var c=$APP.H(b);b=$APP.C(c,oP);c=$APP.C(c,pP);a=a.id;return a>=b&&(c==null||a<c)},oR=function(){var a=$APP.bb(tP),b=yQ(),c=$APP.Ac(b);return $APP.Xm($APP.xe(function(d){var e=$APP.H(d);d=$APP.C(e,$APP.ar);var f=$APP.C(e,$APP.bj),
36
- h=$APP.C(e,mP),k=$APP.C(e,nP),m=$APP.w($APP.ue(function(q){return nR(q,e)},c));return{id:d,label:f,startT:h,endT:$APP.n(k)?k:null,recordCount:m}},gR.i(a)))},pR=function(a){var b=$APP.bb(tP),c=$APP.t($APP.ue(function(d){return $APP.y.j($APP.ar.i(d),a)},gR.i(b)));return $APP.n(c)?$APP.Xm(UO(function(d){return d.t},$APP.ue(function(d){return nR(d,c)},$APP.Bc(yQ())))):[]},laa=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=qR}a=$APP.y.j(b,qR)?new $APP.N(null,1,[$APP.On,"File is not valid JSON."],
37
- null):rP(b)}else a=$APP.ra(a)?rP(a):new $APP.N(null,1,[$APP.On,"Import expects a JSON string or a parsed envelope object."],null);return a},rR=function(a){zQ.J(tP,IQ,cR,function(b){return $APP.Oe($APP.ve(function(c){c=$APP.H(c);c=$APP.C(c,$APP.ar);return $APP.y.j(c,a)},b))});return EQ()},tR=function(){return $APP.Xm($APP.xe(function(a){var b=$APP.H(a);a=$APP.C(b,$APP.ar);var c=$APP.C(b,$APP.bj),d=$APP.C(b,sR);b=$APP.C(b,bR);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},cR.i($APP.bb(tP))))},
38
- uR=function(a){var b=$APP.t($APP.ue(function(c){return $APP.y.j($APP.ar.i(c),a)},cR.i($APP.bb(tP))));return $APP.n(b)?bR.i(b).records:[]},vR=function(a,b){return new $APP.N(null,4,[iP,a.getTime(),$APP.fr,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.n(c)?c:""}(),jP,function(){var c=navigator;c=c==null?null:c.userAgent;return $APP.n(c)?c:""}(),kP,b],null)},maa=function(){var a=$APP.bb(tP),b=yQ(),c=vR(new Date,kP.i(a));return qP(b,TQ.i(a),gR.i(a),c)},wR=function(){var a=
39
- new Date,b=$APP.bb(tP),c=yQ(),d=vR(a,kP.i(b));b=qP(c,TQ.i(b),gR.i(b),d);b=JSON.stringify(b,null,2);a=""+$APP.P.i("baredom-trace-")+$APP.P.i(a.getFullYear())+$APP.P.i(gP(a.getMonth()+1))+$APP.P.i(gP(a.getDate()))+"-"+$APP.P.i(gP(a.getHours()))+$APP.P.i(gP(a.getMinutes()))+$APP.P.i(gP(a.getSeconds()))+$APP.P.i(".trace.json");b=URL.createObjectURL(new Blob([b],{type:"application/json"}));c=document.createElement("a");c.href=b;c.download=a;c.style.display="none";document.body.appendChild(c);try{var e=
40
- c.click()}finally{document.body.removeChild(c),URL.revokeObjectURL(b)}return e},xR=function(a){return(""+$APP.P.i(a)).replace(naa,"\x26amp;").replace(oaa,"\x26lt;").replace(paa,"\x26gt;").replace(qaa,"\x26quot;").replace(raa,"\x26#39;")},saa=function(a){return"\x3coption value\x3d'"+$APP.P.i(xR(a))+"'\x3e"+$APP.P.i(xR(a))+"\x3c/option\x3e"},yR=function(a,b){return"\x3clabel class\x3d'cat'\x3e\x3cx-checkbox data-x-th-cat\x3d'"+$APP.P.i(a)+"' "+$APP.P.i($APP.n(b)?"checked ":null)+"aria-label\x3d'"+
41
- $APP.P.i(a)+"'\x3e\x3c/x-checkbox\x3e"+$APP.P.i(a)+"\x3c/label\x3e"},taa=function(a,b){return $APP.Vd($APP.P,$APP.oe.j(function(c){var d=$APP.H(c);c=$APP.C(d,OP);var e=$APP.C(d,cP),f=$APP.H(d);d=$APP.C(f,OP);f=$APP.C(f,cP);d=$APP.y.j(LP,d)?"document":""+$APP.P.i(f)+" #"+$APP.P.i(d);f=$APP.y.j(LP,c)?"document":e;var h=$APP.y.j(b,f);return"\x3cdiv class\x3d'lane-label"+$APP.P.i(h?" active":null)+"' data-x-th-lane-tag\x3d'"+$APP.P.i(xR(f))+"' title\x3d'"+$APP.P.i(xR(d))+"'\x3e"+$APP.P.i(xR($APP.y.j(LP,
42
- c)?"document":e))+$APP.P.i($APP.I(LP,c)?" \x3cspan class\x3d'cid'\x3e#"+$APP.P.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},uaa=function(a,b,c){return $APP.n(a)?"\x3cline class\x3d'scrubber' x1\x3d'"+$APP.P.i(b)+"' y1\x3d'0' x2\x3d'"+$APP.P.i(b)+"' y2\x3d'"+$APP.P.i(c)+"' /\x3e":""},zR=function(a,b,c,d){a=UO(function(e){return $APP.y.j(e.id,d)?1:0},a);return $APP.Vd($APP.P,$APP.oe.j(function(e){var f=c.i?c.i(e):c.call(null,e),h=b+10,k=$APP.y.j(e.id,d),m=k?6.5:4.5;return"\x3ccircle class\x3d'dot"+
43
- $APP.P.i(k?" selected":null)+"' data-x-th-id\x3d'"+$APP.P.i(e.id)+"' cx\x3d'"+$APP.P.i(f)+"' cy\x3d'"+$APP.P.i(h)+"' r\x3d'"+$APP.P.i(m)+"' fill\x3d'"+$APP.P.i(KP(e))+"' /\x3e"},a))},vaa=function(a,b,c,d){if(c==null)return"";a=$APP.fe(function(e){e=$APP.H(e);e=$APP.C(e,YP);return $APP.fe(function(f){return $APP.y.j(f.id,c)?f:null},e)},a);return $APP.n(a)?(d=d.i?d.i(a):d.call(null,a),"\x3cline class\x3d'density-selected' x1\x3d'"+$APP.P.i(d)+"' y1\x3d'"+$APP.P.i(b)+"' x2\x3d'"+$APP.P.i(d)+"' y2\x3d'"+
44
- $APP.P.i(b+20)+"' /\x3e"):""},waa=function(a,b,c,d){var e=fQ(a);return""+$APP.P.i($APP.Vd($APP.P,$APP.oe.j(function(f){var h=$APP.H(f),k=$APP.C(h,YP);f=$APP.C(h,ZP);h=$APP.C(h,$P);var m=$APP.t(k),q=$APP.C(JP,$APP.n(f)?f:xP);var u=$APP.w(k);u=u==null||u===0||e==null||e===0?0:u>=e?1:.4+.6*((u-1)/$APP.Gm.j(1,e-1));var x=xR($APP.Dg($APP.n(f)?f:xP));k=$APP.w(k);f=""+$APP.P.i(k)+" "+$APP.P.i($APP.y.j(1,k)?"record":"records")+" · "+$APP.P.i($APP.Dg($APP.n(f)?f:xP));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+
45
- $APP.P.i(xR(f))+"' data-x-th-bin-record-id\x3d'"+$APP.P.i(m.id)+"' data-x-th-bin-count\x3d'"+$APP.P.i(k)+"' data-x-th-bin-cat\x3d'"+$APP.P.i(x)+"' x\x3d'"+$APP.P.i(h)+"' y\x3d'"+$APP.P.i(b)+"' width\x3d'"+$APP.P.i(4)+"' height\x3d'"+$APP.P.i(20)+"' fill\x3d'"+$APP.P.i(q)+"' fill-opacity\x3d'"+$APP.P.i(u)+"' /\x3e"},a)))+$APP.P.i(vaa(a,b,c,d))},xaa=function(a,b,c,d,e,f){function h(A){a:{var D=$APP.C(x,A.id);var G=a instanceof $APP.F?a.ea:null;switch(G){case "order":A=$APP.Gm.j(0,e-16);D=u===0||u<0?
46
- 8:$APP.y.j(1,u)?8+A/2:8+$APP.Hm.j($APP.Gm.j(D/(u-1),0),1)*A;break a;case "time":D=A.t;G=$APP.H(d);A=$APP.C(G,QP);G=$APP.C(G,SP);var J=$APP.Gm.j(0,e-16);D=A==null||G==null?8:8+$APP.Hm.j($APP.Gm.j((D-A)/G,0),1)*J;break a;default:throw Error("No matching clause: "+$APP.P.i(G));}}return D}var k=$APP.n(f)?f.id:null,m=$APP.tf.j($APP.ce,$APP.ie(function(A,D){D=$APP.H(D);D=$APP.C(D,OP);return new $APP.K(null,2,5,$APP.M,[D,A*20],null)},c)),q=$APP.Gm.j(20,20*$APP.w(c)),u=$APP.w(b),x=$APP.tf.j($APP.ce,$APP.ie(function(A,
47
- D){return new $APP.K(null,2,5,$APP.M,[D.id,A],null)},b)),z=$APP.kh(MP,b);return"\x3csvg class\x3d'timeline-svg' width\x3d'"+$APP.P.i(e)+"' height\x3d'"+$APP.P.i(q)+"' viewBox\x3d'0 0 "+$APP.P.i(e)+" "+$APP.P.i(q)+"'\x3e"+$APP.P.i($APP.Vd($APP.P,$APP.oe.j(function(A){A=$APP.H(A);var D=$APP.C(A,OP);A=$APP.Hc(z,D,$APP.we);D=$APP.C(m,D);if($APP.y.j(AR,a)){var G=dQ(A,h);A=$APP.n(eQ(G))?waa(G,D,k,h):zR(A,D,h,k)}else A=zR(A,D,h,k);return A},c)))+$APP.P.i(uaa(f,$APP.n(f)?h(f):null,q))+"\x3c/svg\x3e"},yaa=
48
- function(a,b,c,d,e,f,h,k){if($APP.w(d)===0)a.innerHTML="",b.innerHTML="\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var m=$APP.Gm.j(200,b.clientWidth);a.innerHTML=taa(e,k);b.innerHTML=xaa(c,d,e,f,m,h)}},BR=function(a){return""+$APP.P.i(a.tag)+" · "+$APP.P.i(a.type)},zaa=function(a){var b=$APP.H(a);a=$APP.C(b,CR);var c=$APP.C(b,DR),d=$APP.C(b,ER);b=$APP.C(b,FR);c+=14;b-=14;return"\x3cline class\x3d'edge' x1\x3d'"+$APP.P.i(a)+"' y1\x3d'"+$APP.P.i(c)+"' x2\x3d'"+
49
- $APP.P.i(d)+"' y2\x3d'"+$APP.P.i(b)+"' /\x3e"},Aaa=function(a,b){var c=$APP.H(a);a=$APP.C(c,nQ);var d=$APP.C(c,GR),e=$APP.C(c,$APP.Vl);c=$APP.C(c,$APP.Wl);return"\x3csvg class\x3d'causality-svg' width\x3d'"+$APP.P.i(e)+"' height\x3d'"+$APP.P.i(c)+"' viewBox\x3d'0 0 "+$APP.P.i(e)+" "+$APP.P.i(c)+"'\x3e"+$APP.P.i($APP.Vd($APP.P,$APP.oe.j(zaa,d)))+$APP.P.i($APP.Vd($APP.P,$APP.oe.j(function(f){var h=$APP.H(f),k=$APP.C(h,$APP.ar);f=$APP.C(h,jQ);var m=$APP.C(h,HR);h=$APP.C(h,IR);m-=70;var q=h-14,u=$APP.y.j(k,
50
- b),x=m+12,z=m+22,A=m+22,D=q+18,G=q+11,J=xR("#"+$APP.P.i(k)+" "+$APP.P.i(BR(f))+" · "+$APP.P.i(HP(f)));k="\x3cg data-x-th-link-id\x3d'"+$APP.P.i(k)+"' role\x3d'button' aria-label\x3d'"+$APP.P.i(J)+"'\x3e\x3ctitle\x3e"+$APP.P.i(J)+"\x3c/title\x3e\x3crect class\x3d'node-rect"+$APP.P.i(u?" selected":null)+"' x\x3d'"+$APP.P.i(m)+"' y\x3d'"+$APP.P.i(q)+"' width\x3d'"+$APP.P.i(140)+"' height\x3d'"+$APP.P.i(28)+"' /\x3e\x3ccircle class\x3d'node-dot' cx\x3d'"+$APP.P.i(x)+"' cy\x3d'"+$APP.P.i(h)+"' r\x3d'"+
51
- $APP.P.i(4)+"' fill\x3d'"+$APP.P.i(KP(f))+"' /\x3e\x3ctext class\x3d'node-text id' x\x3d'"+$APP.P.i(z)+"' y\x3d'"+$APP.P.i(G)+"'\x3e#"+$APP.P.i(k)+"\x3c/text\x3e\x3ctext class\x3d'node-text' x\x3d'"+$APP.P.i(A)+"' y\x3d'"+$APP.P.i(D)+"'\x3e";h=$APP.P;m=h.i;f=BR(f);f=""+$APP.P.i(f);f=f.length<=22?f:""+$APP.P.i(f.substring(0,21))+"…";return k+m.call(h,xR(f))+"\x3c/text\x3e\x3c/g\x3e"},a)))+"\x3c/svg\x3e"},Caa=function(a,b,c,d){if(d==null)wQ(a,JR,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+
52
- $APP.P.i(xR("Select a record from the timeline to see its causality tree."))+"\x3c/div\x3e";else{a:{var e=d;for(var f=0;;){var h=e.causeId;if(typeof h!=="number"||f>=5E3)break a;h=FP(c,h);if($APP.n(h))f+=1,e=h;else break a}e=void 0}e=mQ(c,e);c=new $APP.N(null,2,[KR,LR(e),Baa,MR(e)],null);if($APP.n(lQ.i(e)))wQ(a,JR,null),a=$APP.P,d=a.i,c=$APP.H(c),c=$APP.C(c,KR),c="Causality tree exceeds the "+$APP.P.i(200)+"-node cap (≥ "+$APP.P.i(c)+" nodes). Pick a smaller leaf record to view its subtree.",b.innerHTML=
53
- "\x3cdiv class\x3d'causality-empty'\x3e"+d.call(a,xR(c))+"\x3c/div\x3e";else{e=NR(e,0,16);f=$APP.B(e,0,null);$APP.B(e,1,null);e=OR(f);f=PR(f);h=$APP.ya($APP.Gm,0,$APP.oe.j(HR,e));var k=$APP.ya($APP.Gm,0,$APP.oe.j(IR,e));e=new $APP.N(null,4,[nQ,e,GR,f,$APP.Vl,h+70+16,$APP.Wl,k+14+16],null);c=$APP.y.j(1,KR.i(c));wQ(a,JR,e);b.innerHTML=""+$APP.P.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.P.i(xR("This record has no cause and no effects in the current buffer. Pick an event/dispatch* record (or one with a 'Caused by' link in the detail pane) to see a chain."))+
54
- "\x3c/div\x3e":null)+$APP.P.i(Aaa(e,d.id))}}},Daa=function(a){if($APP.n(vQ(a,QR))){var b=$APP.l(a,"__xTraceHistoryCausalityEl"),c=vQ(a,JR),d=RR.i?RR.i(a):RR.call(null,a),e=$APP.n(c)?oQ(c,d):null,f=b==null?null:b.clientWidth;d=b==null?null:b.clientHeight;if($APP.n($APP.n(b)?$APP.n(c)?$APP.n(e)?typeof f==="number"&&typeof d==="number"&&f>0&&d>0:e:c:b)){var h=$APP.H(c);c=$APP.C(h,$APP.Vl);h=$APP.C(h,$APP.Wl);var k=HR.i(e),m=IR.i(e);e=k-f/2;k=m-d/2;f=$APP.Gm.j(0,c-f);d=$APP.Gm.j(0,h-d);d=new $APP.N(null,
55
- 2,[SR,$APP.Gm.j(0,$APP.Hm.j(f,e)),TR,$APP.Gm.j(0,$APP.Hm.j(d,k))],null);f=$APP.H(d);d=$APP.C(f,SR);f=$APP.C(f,TR);b.scrollLeft=d;b.scrollTop=f;return wQ(a,QR,!1)}}return null},Eaa=function(a){var b=jaa();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.vb($APP.sg);;){if(e>=d){c=$APP.xb(f);break a}var h=c[e].value;e+=1;f=$APP.y.j(h,"all")?f:$APP.wb(f,h)}c=void 0}b=$APP.ve(c,b);$APP.r(b)&&(b=$APP.Vd($APP.P,$APP.oe.j(saa,b)),a.insertAdjacentHTML("beforeend",b))},Faa=function(a){var b=
56
- $APP.Qn.i($APP.bb(tP));a.textContent=$APP.n(b)?"Resume":"Pause";a.pressed=b},Gaa=function(a){var b=kR()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},Haa=function(a){var b=$APP.H(a);a=$APP.C(b,UR);var c=$APP.C(b,$APP.Zk),d=$APP.C(b,VR),e=$APP.C(b,WR),f=$APP.C(b,$APP.bj);b=$APP.C(b,YR);return"\x3cbutton class\x3d'session-chip"+$APP.P.i($APP.n(c)?" active":null)+$APP.P.i($APP.n(e)?" import":null)+"' type\x3d'button' data-x-th-session\x3d'"+$APP.P.i(xR(a))+"'\x3e"+$APP.P.i($APP.n(d)?"\x3cspan class\x3d'live-dot' aria-hidden\x3d'true'\x3e\x3c/span\x3e":
57
- null)+$APP.P.i(xR(f))+$APP.P.i($APP.n(e)?"\x3cspan class\x3d'chip-close' role\x3d'button' aria-label\x3d'Remove import' data-x-th-import-close\x3d'"+$APP.P.i(b)+"'\x3e×\x3c/span\x3e":null)+"\x3c/button\x3e"},Iaa=function(a,b,c,d){var e=new $APP.N(null,5,[UR,"live",$APP.Zk,$APP.y.j(c,$APP.Pn),VR,!1,WR,!1,$APP.bj,"Live"],null),f=rQ(c)?uQ(c):null,h=tQ(c)?uQ(c):null;a=$APP.xe(function(k){var m=k.id;return new $APP.N(null,5,[UR,""+$APP.P.i(m),$APP.Zk,$APP.y.j(m,f),VR,$APP.y.j(m,d),WR,!1,$APP.bj,""+$APP.P.i(k.label)+
58
- " · "+$APP.P.i(k.recordCount)],null)},$APP.Ac(a));b=$APP.xe(function(k){var m=k.id;return new $APP.N(null,6,[UR,"import:"+$APP.P.i(m),$APP.Zk,$APP.y.j(m,h),VR,!1,WR,!0,YR,m,$APP.bj,""+$APP.P.i(k.label)+" · "+$APP.P.i(k.recordCount)],null)},$APP.Ac(b));return $APP.Vd($APP.P,$APP.oe.j(Haa,$APP.re.B(new $APP.K(null,1,5,$APP.M,[e],null),a,$APP.Ac([b]))))},Jaa=function(a,b,c,d,e){a.innerHTML=Iaa(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},ZR=function(a){var b=
59
- HP(a);b="#"+$APP.P.i(a.id)+" "+$APP.P.i(a.tag)+" · "+$APP.P.i(a.type)+$APP.P.i($APP.n($APP.n(b)?!$APP.Th(b):b)?" · "+$APP.P.i(b):null);return"\x3cx-button class\x3d'detail-link' size\x3d'sm' variant\x3d'ghost' data-x-th-link-id\x3d'"+$APP.P.i(a.id)+"' title\x3d'"+$APP.P.i(xR(b))+"'\x3e"+$APP.P.i(xR(b))+"\x3c/x-button\x3e"},Kaa=function(a,b,c,d){if($APP.n(d)){var e=JSON.stringify(d,null,2);var f=d.causeId;var h=typeof f==="number"?FP(c,f):null;f=gQ(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.P.i(xR(e))+
60
- "\x3c/pre\x3e"+$APP.P.i($APP.n(h)?"\x3cdiv class\x3d'detail-section' data-x-th-detail-cause\x3e\x3cdiv class\x3d'detail-label'\x3eCaused by\x3c/div\x3e"+$APP.P.i(ZR(h))+"\x3c/div\x3e":null);c=$APP.P;d=c.i;h=$APP.H(f);f=$APP.C(h,$APP.ys);h=$APP.C(h,YP);if(f>0){var k=$APP.w(h);f=$APP.y.j(k,f)?"Effects ("+$APP.P.i(f)+")":"Effects ("+$APP.P.i(k)+" of "+$APP.P.i(f)+")";f="\x3cdiv class\x3d'detail-section' data-x-th-detail-effects\x3e\x3cdiv class\x3d'detail-label'\x3e"+$APP.P.i(f)+"\x3c/div\x3e"+$APP.P.i($APP.Vd($APP.P,
61
- $APP.oe.j(ZR,h)))+"\x3c/div\x3e"}else f=null;e+=d.call(c,f);a.innerHTML=e;a.removeAttribute("hidden");b.removeAttribute("hidden")}else a.setAttribute("hidden",""),b.setAttribute("hidden","")},aS=function(a){var b=$R.get(a);if($APP.n(b))return b;b=zP(a);$R.set(a,b);return b},bS=function(a){return $APP.y.j(a,$APP.Pn)?"live":rQ(a)?"session:"+$APP.P.i(uQ(a)):tQ(a)?"import:"+$APP.P.i(uQ(a)):"live"},RR=function(a){var b=$APP.l(a,"__xTraceHistoryView");a=$APP.l(a,"__xTraceHistoryViewSelected");return $APP.n(a)?
62
- $APP.l(a,bS(b)):null},dS=function(a,b){var c=$APP.l(a,"__xTraceHistoryViewSelected");c=$APP.n(c)?c:{};var d=bS($APP.l(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;$APP.R(a,"__xTraceHistoryViewSelected",c);b!=null&&$APP.y.j(cS,$APP.l(a,"__xTraceHistoryDockMode"))&&wQ(a,QR,!0)},Laa=function(a,b,c){var d=RR(a);b=FP(b,d);if(b==null)return null;if(DP(b,$APP.Vk.m(c,CP,aS)))return b;dS(a,null);return null},eS=function(a){return $APP.y.j(a,$APP.Pn)?yQ():rQ(a)?(a=pR(uQ(a)),a.length===0?yQ():
63
- a):tQ(a)?(a=uR(uQ(a)),a.length===0?yQ():a):yQ()},Maa=function(a,b,c,d){switch(d instanceof $APP.F?d.ea:null){case "causality":b.setAttribute("hidden","");c.removeAttribute("hidden");a.classList.add("causality-mode");break;default:b.removeAttribute("hidden"),c.setAttribute("hidden",""),a.classList.remove("causality-mode")}},gS=function(a){var b=$APP.l(a,"__xTraceHistoryTimelineEl"),c=$APP.l(a,"__xTraceHistoryCausalityEl"),d=$APP.l(a,"__xTraceHistoryLanesEl"),e=$APP.l(a,"__xTraceHistorySvgPaneEl"),
64
- f=$APP.l(a,"__xTraceHistoryCountEl"),h=$APP.l(a,"__xTraceHistoryDetailEl"),k=$APP.l(a,"__xTraceHistorySplitterEl"),m=$APP.l(a,"__xTraceHistoryHintEl"),q=$APP.l(a,"__xTraceHistoryPauseBtn"),u=$APP.l(a,"__xTraceHistoryRecordBtn"),x=$APP.l(a,"__xTraceHistorySessionsEl"),z=$APP.l(a,"__xTraceHistoryTagSelectEl"),A=$APP.l(a,"__xTraceHistoryFilter"),D=$APP.l(a,"__xTraceHistoryView"),G=eS(D),J=EP(G,$APP.Vk.m(A,CP,aS)),S=$APP.w(J),Q=G.length,X=TP(J),ja=PP(J),ka=Laa(a,G,A),na=oR(),Ga=tR(),Ia=kR(),$a=function(){var Gb=
65
- $APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(Gb)?Gb:$APP.Cp}(),nb=function(){var Gb=$APP.l(a,"__xTraceHistoryDockMode");return $APP.n(Gb)?Gb:fS}();Eaa(z);Maa(a,b,c,nb);switch(nb instanceof $APP.F?nb.ea:null){case "causality":Caa(a,c,G,ka);break;default:yaa(d,e,$a,J,ja,X,ka,cP.i(A))}f.textContent=""+$APP.P.i(S);m.textContent=pQ(S,Q,X,$APP.w(ja));Kaa(h,k,G,ka);Faa(q);Gaa(u);Jaa(x,na,Ga,D,Ia);return Daa(a)},hS=function(a){return $APP.n(a)?$APP.y.j("circle",a.tagName.toLowerCase()):a},iS=function(a){return $APP.n(a)?
66
- $APP.y.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},jS=function(a){a=a.getAttribute("data-x-th-id");return $APP.n(a)?parseInt(a,10):null},kS=function(a,b){$APP.n(b)?a.classList.add("collapsed"):a.classList.remove("collapsed");a=$APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.n(a)?(a.textContent=$APP.n(b)?"»":"«",a.setAttribute("aria-expanded",$APP.n(b)?"false":"true")):null},lS=function(a){var b=!$APP.E($APP.l(a,"__xTraceHistoryCollapsed"));$APP.R(a,"__xTraceHistoryCollapsed",
67
- b);return kS(a,b)},Naa=function(a,b){$APP.R(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.Cp;case "time":return AR;default:return $APP.Cp}}());return gS(a)},Oaa=function(a,b){var c=function(){switch(b){case "timeline":return fS;case "causality":return cS;default:return fS}}();$APP.R(a,"__xTraceHistoryDockMode",c);$APP.y.j(cS,c)?wQ(a,QR,!0):wQ(a,QR,!1);return gS(a)},mS=function(a,b,c,d){a.textContent=d;a.removeAttribute("hidden");var e=b.getBoundingClientRect();d=c.clientX-
68
- e.left;c=c.clientY-e.top;e=b.scrollTop;var f=b.scrollLeft;b=$APP.Gm.j(0,d+12+280>b.clientWidth?d-12-280:d+12);a.style.left=""+$APP.P.i(b+f)+"px";return a.style.top=""+$APP.P.i(c+e+12)+"px"},Paa=function(a,b){var c=b.target,d=$APP.l(a,"__xTraceHistoryTooltipEl"),e=$APP.l(a,"__xTraceHistoryTimelineEl");a=eS($APP.l(a,"__xTraceHistoryView"));if($APP.n(hS(c))){c=jS(c);a=FP(a,c);if($APP.n(a)){c=""+$APP.P.i(a.tag);var f=$APP.P,h=f.i;var k=a.componentId;k=$APP.n(k)?" #"+$APP.P.i(k):null;a=c+h.call(f,k)+"\n"+
69
- $APP.P.i(a.type)+"\n"+$APP.P.i(HP(a))+"\n@ "+$APP.P.i(IP(a.t));b=mS(d,e,b,a)}else b=null;return b}if($APP.n(iS(c))){f=c.getAttribute("data-x-th-bin-record-id");h=c.getAttribute("data-x-th-bin-count");c=c.getAttribute("data-x-th-bin-cat");c=$APP.n($APP.n(f)?$APP.n(h)?c:h:f)?new $APP.N(null,3,[nS,parseInt(f,10),oS,parseInt(h,10),ZP,$APP.Xg.i(c)],null):null;if($APP.n(c)){f=$APP.H(c);h=$APP.C(f,nS);c=$APP.C(f,oS);f=$APP.C(f,ZP);a=FP(a,h);if($APP.n(a)){h=""+$APP.P.i(a.tag);k=$APP.P;var m=k.i;var q=a.componentId;
70
- q=$APP.n(q)?" #"+$APP.P.i(q):null;a=h+m.call(k,q)+"\n"+$APP.P.i(c)+" "+$APP.P.i($APP.y.j(1,c)?"record":"records")+" · "+$APP.P.i($APP.Dg($APP.n(f)?f:xP))+"\n@ "+$APP.P.i(IP(a.t));b=mS(d,e,b,a)}else b=null;return b}return null}return d.setAttribute("hidden","")},pS=function(a,b,c,d,e,f){a:switch(b=b instanceof $APP.F?b.ea:null,b){case "order":d=$APP.w(c);e=$APP.Gm.j(0,e-16);d===0||d<0?f=null:$APP.y.j(1,d)||e===0?f=0:(f=$APP.Hm.j($APP.Gm.j((f-8)/e,0),1),f=Math.round(f*(d-1)));c=$APP.n(f)?$APP.B(c,f,
71
- null):null;break a;case "time":var h=$APP.H(d);d=$APP.C(h,QP);b=$APP.C(h,SP);var k=$APP.Gm.j(0,e-16);h==null||d==null||b==null?f=0:e===0||e<0||k===0?f=d:(f=$APP.Hm.j($APP.Gm.j((f-8)/k,0),1),f=d+f*b);c=VP(c,f);break a;default:throw Error("No matching clause: "+$APP.P.i(b));}return $APP.n(c)?(dS(a,c.id),gS(a)):null},Qaa=function(a,b,c){function d(x){return pS(a,k,q,u,f,x.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.Gm.j(200,b.clientWidth),
72
- h=$APP.l(a,"__xTraceHistoryFilter"),k=function(){var x=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(x)?x:$APP.Cp}(),m=eS($APP.l(a,"__xTraceHistoryView")),q=EP(m,$APP.Vk.m(h,CP,aS)),u=TP(q);pS(a,k,q,u,f,c.clientX-e.left);c=function z(){b.removeEventListener("pointermove",d);b.removeEventListener("pointerup",z);return b.removeEventListener("pointercancel",z)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},qS=function(a,b){var c=
73
- $APP.l(a,"__xTraceHistoryFilter"),d=eS($APP.l(a,"__xTraceHistoryView"));c=EP(d,$APP.Vk.m(c,CP,aS));d=RR(a);a:if($APP.r(c)){if(d!=null)b:if(typeof d==="number"){for(var e=$APP.w(c),f=0;;){if(f>=e){d=null;break b}if($APP.y.j(d,$APP.vc(c,f).id)){d=f;break b}f+=1}d=void 0}else d=null;else d=null;if(d==null)switch(b=b instanceof $APP.F?b.ea:null,b){case "next":b=$APP.t(c);break a;case "prev":b=$APP.Nc(c);break a;default:throw Error("No matching clause: "+$APP.P.i(b));}else b=$APP.y.j(b,$APP.qp)?$APP.C(c,
74
- d+1):$APP.C(c,d-1)}else b=null;return $APP.n(b)?(dS(a,b.id),gS(a)):null},rS=function(a){var b=$APP.E(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.$c(Raa,a==null?null:a.toLowerCase()));return a},Saa=function(a,b){if(rS(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),qS(a,$APP.qp);case "ArrowLeft":return b.preventDefault(),qS(a,$APP.Vo);default:return null}},Taa=function(a,b,c){function d(h){h=$APP.Gm.j(60,f+(e-h.clientY));return a.style.height=
75
- ""+$APP.P.i(h)+"px"}c.preventDefault();b.setPointerCapture(c.pointerId);b.classList.add("dragging");var e=c.clientY,f=a.offsetHeight;c=function k(){b.removeEventListener("pointermove",d);b.removeEventListener("pointerup",k);b.removeEventListener("pointercancel",k);return b.classList.remove("dragging")};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},Uaa=function(a){if(a==null||$APP.y.j("",a))a=null;else if(PO(a,".trace.json")){var b=
76
- $APP.w(a)-11;a=a.substring(0,b)}else PO(a,".json")&&(b=$APP.w(a)-5,a=a.substring(0,b));return a},tS=function(a,b){var c=$APP.l(a,"__xTraceHistoryHintEl"),d=vQ(a,sS);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");wQ(a,sS,null);return gS(a)},4E3);return wQ(a,sS,b)},vS=function(a,b){var c=new FileReader,d=Uaa(b.name);c.onload=function(){var e=uS.j(c.result,d);e!=null?($APP.l(a,"__xTraceHistoryHintEl").classList.remove("error"),
77
- $APP.R(a,"__xTraceHistoryView",new $APP.K(null,2,5,$APP.M,[sQ,e],null)),e=gS(a)):e=tS(a,"Import failed — see console for details.");return e};c.onerror=function(){return tS(a,"Could not read file.")};return c.readAsText(b)},wS=function(a){a=a.dataTransfer;return $APP.n(a)?a.types.includes("Files"):null},Vaa=function(a,b){var c=a.shadowRoot;a=$APP.n(c)?c:a.attachShadow({mode:"open"});if(c==null){c="\x3cstyle\x3e"+$APP.P.i(":host {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n width: min(420px, calc(100vw - 1rem));\n z-index: 1999999;\n font: 11px/1.4 ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;\n color: #cdd6f4;\n pointer-events: auto;\n /* The width transition makes the collapse / expand toggle feel\n responsive without being slow. The dock is otherwise position:\n fixed so transitioning width doesn't reflow the host page. */\n transition: width 160ms ease;\n}\n/* Collapsed mode: shrink the host to a thin vertical strip so the\n user can reach components the full dock would otherwise cover.\n The only interactive element left is the collapse-toggle button,\n which expands the dock back to full width when clicked. */\n:host(.collapsed) {\n width: 32px;\n}\n:host(.collapsed) .dock \x3e *:not(.header) { display: none; }\n:host(.collapsed) .header {\n flex-direction: column;\n align-items: center;\n padding: 8px 0;\n gap: 4px;\n}\n:host(.collapsed) .header \x3e *:not([data-x-th-action\x3d'collapse']) {\n display: none;\n}\n/* Causality mode: hide the axis-mode select (Order / Time only\n affects the timeline pane, so it's noise in causality view). */\n:host(.causality-mode) [data-x-th-axis] {\n display: none;\n}\n@media (prefers-reduced-motion: reduce) {\n :host { transition: none; }\n}\n.dock {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: #11111b;\n border-left: 1px solid rgba(59,130,246,0.6);\n box-shadow: -4px 0 20px rgba(0,0,0,0.4);\n /* Anchor for the absolutely-positioned drop-overlay added in PR 11\n so its `inset: 0` reaches the dock edges. */\n position: relative;\n}\n.header {\n display: flex;\n /* Wrap so the count + action buttons survive narrow viewports\n (`min(420px, calc(100vw - 1rem))` reaches 304px at 320px screens,\n which is too tight for four action buttons + title + count on\n one row). */\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n padding: 8px 10px;\n background: rgba(59,130,246,0.15);\n border-bottom: 1px solid rgba(59,130,246,0.3);\n flex: 0 0 auto;\n}\n.title { font-weight: 700; color: #89b4fa; font-size: 12px; }\n.count { color: #6c7086; margin-left: auto; }\n.filters {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px 12px;\n padding: 6px 10px;\n border-bottom: 1px solid rgba(255,255,255,0.06);\n flex: 0 0 auto;\n}\n/* The tag dropdown is an \x3cx-select\x3e; its own shadow brings styling.\n We just constrain its width and font so it matches the dock's\n ui-monospace 11px tone. */\n.filters x-select {\n font-size: 11px;\n max-width: 140px;\n}\n/* x-checkbox has no slot for its label, so the visible text sits\n next to the checkbox inside a \x3clabel\x3e wrapper. The label uses\n inline-flex to keep the checkbox + text on one row, with a small\n gap. Cursor: pointer mirrors native checkbox-label affordance. */\n.filters label.cat {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: #a6adc8;\n font-size: 10px;\n cursor: pointer;\n user-select: none;\n}\n/* PR 16 — search input. x-search-field brings its own theming via its\n shadow DOM; the dock just constrains the host width so it shares\n the filter row's monospace tone with the tag dropdown. */\n.filters x-search-field {\n font-size: 11px;\n flex: 1 1 140px;\n min-width: 100px;\n max-width: 240px;\n}\n/* Session strip: thin row above the filter row listing the live view\n plus any captured session as a clickable chip. Hidden when the only\n chip is Live (no sessions yet) so the dock stays compact. Scrolls\n horizontally if the chip count overflows the dock width. */\n.sessions {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 4px 10px;\n background: rgba(0,0,0,0.15);\n border-bottom: 1px solid rgba(255,255,255,0.04);\n flex: 0 0 auto;\n overflow-x: auto;\n white-space: nowrap;\n}\n.sessions[hidden] { display: none; }\n.session-chip {\n flex: 0 0 auto;\n background: rgba(255,255,255,0.04);\n color: #a6adc8;\n border: 1px solid rgba(255,255,255,0.08);\n border-radius: 3px;\n padding: 1px 6px;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n user-select: none;\n}\n.session-chip:hover { background: rgba(59,130,246,0.12); color: #cdd6f4; }\n.session-chip.active {\n background: rgba(59,130,246,0.22);\n border-color: rgba(59,130,246,0.6);\n color: #89b4fa;\n font-weight: 600;\n}\n/* Imported traces are visually distinct from locally-captured\n sessions: amber border instead of blue, plus a small close button\n inside the chip so the user can drop the import without clearing\n live state. */\n.session-chip.import {\n border-color: rgba(249,226,175,0.45);\n color: #f9e2af;\n}\n.session-chip.import.active {\n background: rgba(249,226,175,0.18);\n border-color: rgba(249,226,175,0.7);\n color: #f9e2af;\n}\n.session-chip.import .chip-close {\n background: transparent;\n border: none;\n color: inherit;\n cursor: pointer;\n font: inherit;\n font-size: 12px;\n line-height: 1;\n padding: 0 0 0 6px;\n margin: 0;\n opacity: 0.6;\n}\n.session-chip.import .chip-close:hover { opacity: 1; }\n.session-chip .live-dot {\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: #f38ba8;\n margin-right: 4px;\n vertical-align: middle;\n animation: x-th-pulse 1s ease-in-out infinite;\n}\n@keyframes x-th-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.35; }\n}\n@media (prefers-reduced-motion: reduce) {\n .session-chip .live-dot { animation: none; }\n}\n.timeline {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n position: relative;\n /* Transparent border reserves 2px so the focus indicator below doesn't\n overlap the leftmost pixels of lane labels or shift content layout. */\n border: 2px solid transparent;\n box-sizing: border-box;\n}\n.timeline-body {\n display: flex;\n align-items: stretch;\n min-height: 100%;\n}\n.lanes {\n flex: 0 0 110px;\n display: flex;\n flex-direction: column;\n border-right: 1px solid rgba(255,255,255,0.06);\n background: #11111b;\n position: sticky;\n left: 0;\n z-index: 1;\n}\n.lane-label {\n height: 20px;\n padding: 0 8px;\n display: flex;\n align-items: center;\n font-size: 11px;\n color: #a6adc8;\n border-bottom: 1px solid rgba(255,255,255,0.04);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n cursor: pointer;\n user-select: none;\n}\n.lane-label:hover { background: rgba(59,130,246,0.08); color: #cdd6f4; }\n.lane-label.active {\n background: rgba(59,130,246,0.18);\n color: #89b4fa;\n font-weight: 600;\n}\n.lane-label .cid { color: #6c7086; margin-left: 4px; }\n.svg-pane {\n flex: 1 1 auto;\n min-width: 0;\n display: block;\n}\nsvg.timeline-svg {\n display: block;\n background:\n repeating-linear-gradient(\n to bottom,\n transparent 0,\n transparent 19px,\n rgba(255,255,255,0.03) 19px,\n rgba(255,255,255,0.03) 20px);\n}\n.dot { cursor: pointer; transition: r 80ms ease; }\n.dot:hover { stroke: #fff; stroke-width: 1; }\n.dot.selected { stroke: #fff; stroke-width: 1.5; }\n/* Heatmap bins (PR 18). Each lane that exceeds the density threshold\n renders as a row of these rects rather than individual dots; the\n per-bin fill-opacity is set inline by the renderer (scales with\n the bin's record count relative to the lane's max). */\n.density-bin {\n cursor: pointer;\n transition: stroke 80ms ease, fill-opacity 80ms ease;\n}\n.density-bin:hover {\n stroke: #fff;\n stroke-width: 0.5;\n}\n/* Thin pink bar drawn at the selected record's exact x inside its\n bin — keeps the scrubber-style highlight in dense lanes without\n obscuring the bin's category colour. */\nline.density-selected {\n stroke: #f5c2e7;\n stroke-width: 2;\n pointer-events: none;\n}\nline.scrubber {\n stroke: #f5c2e7;\n stroke-width: 1.5;\n stroke-dasharray: 4 2;\n pointer-events: none;\n}\n.svg-pane { cursor: crosshair; }\n.timeline:focus {\n outline: none;\n border-color: #89b4fa;\n}\n.tooltip {\n position: absolute;\n background: #1e1e2e;\n border: 1px solid rgba(59,130,246,0.6);\n border-radius: 4px;\n padding: 4px 8px;\n font-size: 10px;\n white-space: pre-wrap;\n pointer-events: none;\n max-width: 280px;\n color: #cdd6f4;\n z-index: 10;\n box-shadow: 0 4px 12px rgba(0,0,0,0.5);\n}\n.timeline-empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n width: 100%;\n}\n/* Causality DAG pane (PR 17). Shares the flexible vertical slot with\n .timeline — render! toggles which one is hidden by dock-mode. The\n scrollable container holds an inner \x3csvg\x3e sized to the tree's\n bounding box so the scrollbars correctly reflect off-screen depth\n and breadth. */\n.causality {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n position: relative;\n background: #11111b;\n border: 2px solid transparent;\n box-sizing: border-box;\n}\n.causality:focus { outline: none; border-color: #89b4fa; }\n.causality[hidden] { display: none; }\n.timeline[hidden] { display: none; }\n.causality-empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n width: 100%;\n}\n/* Leaf-hint banner rendered ABOVE the SVG when the tree has only\n one node. Pinned via sticky positioning so it stays visible even\n when the user scrolls the pane (the lone node sits at the\n padded origin and could be obscured by the banner otherwise). */\n.causality-leaf-hint {\n position: sticky;\n top: 0;\n left: 0;\n z-index: 1;\n background: rgba(249,226,175,0.10);\n border-bottom: 1px solid rgba(249,226,175,0.35);\n color: #f9e2af;\n font-size: 10px;\n padding: 6px 10px;\n line-height: 1.4;\n}\nsvg.causality-svg { display: block; }\nsvg.causality-svg .edge {\n stroke: rgba(255,255,255,0.18);\n stroke-width: 1;\n fill: none;\n}\nsvg.causality-svg .node-rect {\n fill: rgba(255,255,255,0.04);\n stroke: rgba(255,255,255,0.12);\n stroke-width: 1;\n cursor: pointer;\n rx: 4;\n ry: 4;\n transition: fill 80ms ease, stroke 80ms ease;\n}\nsvg.causality-svg .node-rect:hover {\n fill: rgba(59,130,246,0.16);\n stroke: rgba(59,130,246,0.6);\n}\nsvg.causality-svg .node-rect.selected {\n fill: rgba(245,194,231,0.18);\n stroke: #f5c2e7;\n stroke-width: 1.5;\n}\nsvg.causality-svg .node-dot {\n pointer-events: none;\n}\nsvg.causality-svg .node-text {\n fill: #cdd6f4;\n font: 10px ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;\n pointer-events: none;\n dominant-baseline: middle;\n}\nsvg.causality-svg .node-text.id {\n fill: #a6adc8;\n font-size: 9px;\n}\n.splitter {\n flex: 0 0 auto;\n height: 4px;\n background: rgba(255,255,255,0.04);\n cursor: ns-resize;\n touch-action: none;\n transition: background 120ms ease;\n}\n.splitter:hover, .splitter.dragging { background: rgba(59,130,246,0.6); }\n.detail {\n background: #181825;\n border-top: 1px solid rgba(59,130,246,0.2);\n padding: 8px 10px;\n font-size: 10px;\n color: #cdd6f4;\n flex: 0 0 auto;\n height: 35vh;\n min-height: 60px;\n max-height: 80%;\n overflow-y: auto;\n}\n.detail-json {\n margin: 0 0 8px 0;\n font: inherit;\n white-space: pre-wrap;\n word-break: break-all;\n color: #a6e3a1;\n}\n.detail-section { margin-top: 6px; }\n.detail-label {\n color: #89b4fa;\n font-weight: 600;\n margin-bottom: 2px;\n font-size: 10px;\n letter-spacing: 0.02em;\n}\n/* The host is an \x3cx-button\x3e; its own shadow brings background, hover,\n border-radius, etc. We keep block-layout + width on the host so each\n link fills its row, and reach into the button's `label` part to add\n ellipsis truncation (the summary string can exceed the dock width). */\n.detail-link {\n display: block;\n width: 100%;\n margin: 2px 0;\n}\n.detail-link::part(label) {\n display: block;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.detail-link::part(button) {\n width: 100%;\n justify-content: flex-start;\n}\n.detail-empty { color: #6c7086; font-style: italic; font-size: 10px; }\n.empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n}\n.hint { color: #6c7086; font-size: 10px; padding: 4px 10px; flex: 0 0 auto; }\n.hint.error { color: #f38ba8; }\n/* Drop overlay — covers the whole dock while a file is being hovered.\n pointer-events:none keeps drag events flowing through to the dock root\n so the dragleave/drop bookkeeping doesn't fight the overlay layer. */\n.drop-overlay {\n position: absolute;\n inset: 0;\n background: rgba(249,226,175,0.10);\n border: 2px dashed rgba(249,226,175,0.6);\n display: flex;\n align-items: center;\n justify-content: center;\n color: #f9e2af;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.02em;\n z-index: 100;\n pointer-events: none;\n}\n.drop-overlay[hidden] { display: none; }\n/* The hidden file input is kept off-screen — clicked programmatically\n by the Import button — but we mark it `display:none` to keep it out\n of layout entirely. */\n.import-input { display: none; }")+
2
+ var sN=function(a,b,c){for(var d=$APP.r(a.cc),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,null);k=$APP.B(k,1,null);k.J?k.J(m,a,b,c):k.call(null,m,a,b,c);h+=1}else if(d=$APP.r(d))$APP.Yc(d)?(e=$APP.Db(d),d=$APP.Eb(d),m=e,f=$APP.w(e),e=m):(e=$APP.t(d),m=$APP.B(e,0,null),k=$APP.B(e,1,null),k.J?k.J(m,a,b,c):k.call(null,m,a,b,c),d=$APP.v(d),e=null,f=0),h=0;else break},tN=function(a,b){const c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},uN=function(a,b){if(a!=null&&a.Ac!=null)a=a.Ac(a,
3
+ b);else{var c=uN[$APP.aa(a==null?null:a)];if(c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else if(c=uN._,c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else throw $APP.ua("IReset.-reset!",a);}return a},vN=function(a){return a+1},eda=function(a){return a-1},fda=function(a,b){return $APP.hd(function(c,d){c=a.i?a.i(c):a.call(null,c);d=a.i?a.i(d):a.call(null,d);var e=$APP.fd($APP.dd);return e.j?e.j(c,d):e.call(null,c,d)},b)},wN=function(a,b){return fda(a,b)},xN=function(a){if(a instanceof RegExp)return a;var b=$APP.yh(/^\(\?([idmsux]*)\)/,
4
+ a),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new RegExp(a.substring(c==null?0:c.length),$APP.n(b)?b:"")},gda=function(a){return $APP.Sd($APP.ya(function(b,c){return $APP.Ud(b,c,$APP.Jc(b,c,0)+1)},$APP.wb($APP.ie),a))},hda=function(a){return new $APP.J(null,2,5,$APP.K,[$APP.ue(200,a),$APP.ve(200,a)],null)},yN=function(a,b){if(a instanceof $APP.se){var c=a.oc;if(c!=null&&!$APP.n(c.i?c.i(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;a.cc!=null&&sN(a,c,b);
5
+ return b}return uN(a,b)},zN=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.yh(ida,b);return $APP.D(b)||$APP.l(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.z.j("raw",$APP.l(a,"BAREDOM_TRACE_HISTORY"))},jda=function(a){a=a==null?null:a.tagName;a=a==null?null:a.toLowerCase();return $APP.n(a)?a:"document"},AN=function(a){try{return a==null?null:$APP.bm(a)}catch(b){try{return""+$APP.P.i(a)}catch(c){return"(unprintable)"}}},kda=function(a,b,c){a=$APP.G(a);var d=$APP.C(a,$APP.O),e=$APP.C(a,
6
+ $APP.Kq),f=$APP.C(a,BN),h=$APP.C(a,CN);var k=$APP.Fd(d);k=$APP.n(k)?""+$APP.P.i(k)+"/"+$APP.P.i($APP.ph(d)):$APP.ph(d);b={schemaVersion:1,id:b,t:c,type:k,tag:e,componentId:f,causeId:h};switch(d instanceof $APP.F?d.da:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return c=$APP.aj.i(a),b.eventName=c,c=AN($APP.V.i(a)),b.detail=c,c=$APP.D($APP.bj.i(a)),b.cancelable=c,a=$APP.D($APP.cj.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.Ri.i(a),
7
+ b.field=c,a=AN($APP.Si.i(a)),b.value=a,b;case "dom/attribute-set":return c=$APP.ti.i(a),b.attribute=c,a=$APP.Si.i(a),b.value=a,b;case "dom/attribute-removed":return a=$APP.ti.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.ti.i(a),b.attribute=c,c=$APP.ui.i(a),b.oldValue=c,a=$APP.vi.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":return b;default:return b}},DN=function(a){a=""+$APP.P.i(a);return a.length<2?"0"+$APP.P.i(a):a},lda=function(a,b){return $APP.If.m($APP.ie,
8
+ $APP.Be(function(c){var d=$APP.B(c,0,null);$APP.B(c,1,null);return $APP.cd(b,d)}),a)},MN=function(a,b,c,d){var e=$APP.G(d);d=$APP.C(e,EN);var f=$APP.C(e,$APP.Qs),h=$APP.C(e,FN);e=$APP.C(e,GN);a:{var k=a.length;for(var m=0,q=$APP.wb($APP.bh);;){if(m>=k){k=$APP.yb(q);break a}var u=a[m].componentId;m+=1;q=u!=null?$APP.xb(q,u):q}k=void 0}k=lda(b,k);b=$APP.D(e);e={};k=$APP.r(k);m=null;for(u=q=0;;)if(u<q){var x=m.C(null,u),y=$APP.B(x,0,null),A=$APP.B(x,1,null);x=e;y=""+$APP.P.i(y);A={tag:$APP.Kq.i(A),firstSeen:HN.i(A)};
9
+ x[y]=A;u+=1}else if(k=$APP.r(k))$APP.Yc(k)?(q=$APP.Db(k),k=$APP.Eb(k),m=q,q=$APP.w(q)):(m=$APP.t(k),q=$APP.B(m,0,null),u=$APP.B(m,1,null),m=e,q=""+$APP.P.i(q),u={tag:$APP.Kq.i(u),firstSeen:HN.i(u)},m[q]=u,k=$APP.v(k),m=null,q=0),u=0;else break;k=[];c=$APP.r(c);m=null;for(u=q=0;;)if(u<q){x=m.C(null,u);var E=$APP.G(x);x=$APP.C(E,$APP.Ms);y=$APP.C(E,$APP.Rj);A=$APP.C(E,IN);var H=$APP.C(E,JN),N=$APP.C(E,KN);E=$APP.C(E,LN);k.push({id:x,label:y,startT:A,endT:H,startId:N,endId:E});u+=1}else if(c=$APP.r(c))$APP.Yc(c)?
10
+ (q=$APP.Db(c),c=$APP.Eb(c),m=q,q=$APP.w(q)):(m=$APP.t(c),A=$APP.G(m),m=$APP.C(A,$APP.Ms),q=$APP.C(A,$APP.Rj),u=$APP.C(A,IN),x=$APP.C(A,JN),y=$APP.C(A,KN),A=$APP.C(A,LN),k.push({id:m,label:q,startT:u,endT:x,startId:y,endId:A}),c=$APP.v(c),m=null,q=0),u=0;else break;return{schemaVersion:1,exportedAt:d,origin:f,userAgent:h,forensic:b,components:e,sessions:k,records:a}},NN=function(a){if($APP.ra(a)){if(typeof a.schemaVersion!=="number")return new $APP.M(null,1,[$APP.Dp,"Envelope is missing schemaVersion."],
11
+ null);if($APP.I(1,a.schemaVersion))return new $APP.M(null,1,[$APP.Dp,"Schema version mismatch: expected "+$APP.P.i(1)+", got "+$APP.P.i(a.schemaVersion)+"."],null);if($APP.p($APP.qa(a.records)))return new $APP.M(null,1,[$APP.Dp,"Envelope.records is not an array."],null);var b=a.records,c=b.length;a:{for(var d=0;;){if(d>=c){b=null;break a}var e=b[d];if($APP.ra(e)&&typeof e.id==="number"&&typeof e.t==="number"&&typeof e.type==="string")d+=1;else{b=d;break a}}b=void 0}return b==null?new $APP.M(null,
12
+ 1,[$APP.os,a],null):new $APP.M(null,1,[$APP.Dp,"Record at index "+$APP.P.i(b)+" is missing required fields (id, t, type)."],null)}return new $APP.M(null,1,[$APP.Dp,"Envelope is not a JSON object."],null)},mda=function(a,b,c){return $APP.w(a)>=c?$APP.Ad.j($APP.Qc(a),b):$APP.Ad.j(a,b)},nda=function(){var a=GN.i($APP.cb(ON));return $APP.n(a)?$APP.fh(PN):$APP.to.j($APP.fh(PN),$APP.mt)},RN=function(a){var b=$APP.ne(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.cd(c,a)?d:null},oda);
13
+ return $APP.n(b)?b:QN},SN=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.n(b)?b.toLowerCase():""},WN=function(a,b){var c=$APP.G(b),d=$APP.C(c,$APP.Kq),e=$APP.C(c,TN);b=$APP.C(c,UN);c=$APP.Jc(c,VN,SN);if(d=d==null||$APP.z.j("",d)||$APP.z.j("all",d)||$APP.z.j(d,a.tag)){if(e=e==null||$APP.cd(e,RN(a.type)))e=b==null||$APP.z.j("",b)||!((c.i?c.i(a):c.call(null,a)).indexOf(b)<0);d=e}return d},XN=function(a,b){return $APP.$e(wN(function(c){return c.t},$APP.Ce(function(c){return WN(c,b)},
14
+ $APP.Cc(a))))},YN=function(a,b){return typeof b==="number"?a.find(function(c){return $APP.z.j(b,c.id)}):null},ZN=function(a){if(a!=null)try{var b=JSON.stringify(a),c=""+$APP.P.i(b);return c.length<=60?c:""+$APP.P.i($APP.wd(c,60))+"…"}catch(d){return"(unstringifiable)"}else return null},$N=function(a){switch(a.type){case "event/dispatch":return""+$APP.P.i(a.eventName)+$APP.P.i(function(){var b=ZN(a.detail);return $APP.n(b)?" "+$APP.P.i(b):null}());case "event/dispatch-cancelable":return""+$APP.P.i(a.eventName)+
15
+ $APP.P.i($APP.n(a.defaultPrevented)?" (prevented)":null)+$APP.P.i(function(){var b=ZN(a.detail);return $APP.n(b)?" "+$APP.P.i(b):null}());case "event/dispatch-document":return""+$APP.P.i(a.eventName)+$APP.P.i(function(){var b=ZN(a.detail);return $APP.n(b)?" "+$APP.P.i(b):null}());case "state/instance-field-set":return""+$APP.P.i(a.field)+" \x3d "+$APP.P.i(function(){var b=ZN(a.value);return $APP.n(b)?b:"null"}());case "dom/attribute-set":return""+$APP.P.i(a.attribute)+"\x3d"+$APP.P.i($APP.Ph($APP.Cc([a.value])));
16
+ case "dom/attribute-removed":return""+$APP.P.i(a.attribute)+" removed";case "lifecycle/connected":return"connected";case "lifecycle/disconnected":return"disconnected";case "lifecycle/attribute-changed":return""+$APP.P.i(a.attribute)+": "+$APP.P.i($APP.Ph($APP.Cc([a.oldValue])))+" → "+$APP.P.i($APP.Ph($APP.Cc([a.newValue])));default:return"("+$APP.P.i(a.type)+")"}},aO=function(a){if(typeof a!=="number")return"";if(a<1E3)return""+$APP.P.i(a.toFixed(0))+"ms";if(a<6E4)return""+$APP.P.i((a/1E3).toFixed(3))+
17
+ "s";var b=$APP.sd(a,6E4)/1E3;return""+$APP.P.i(Math.floor(a/6E4))+"m"+$APP.P.i(b.toFixed(1))+"s"},cO=function(a){a=RN(a.type);return $APP.C(bO,$APP.n(a)?a:QN)},eO=function(a){a=a.componentId;return $APP.n(a)?a:dO},pda=function(a){return $APP.$e(wN(fO,$APP.we.j(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);var d=$APP.t(b);return new $APP.M(null,3,[gO,c,$APP.Kq,d.tag,fO,$APP.ae($APP.co,$APP.we.j(function(e){return e.t},b))],null)},$APP.Xh(eO,a))))},jO=function(a){if($APP.r(a)){var b=$APP.we.j(function(c){return c.t},
18
+ a);a=$APP.ae($APP.co,b);b=$APP.ae($APP.uo,b);return new $APP.M(null,3,[hO,a,qda,b,iO,$APP.uo.j(1,b-a)],null)}return null},rda=function(a,b){return $APP.r(a)?$APP.be(kO,function(c){return Math.abs(c.t-b)},a):null},sda=function(a){if($APP.r(a)){var b=gda($APP.we.j(function(d){return RN(d.type)},a)),c=$APP.ae($APP.uo,$APP.Vg(b));a=$APP.ne(function(d){return $APP.z.j(c,$APP.C(b,d))?d:null},PN);return $APP.n(a)?a:QN}return null},wda=function(a,b){a=$APP.Xh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/
19
+ 4)},a);return $APP.$e(wN(lO,$APP.we.j(function(c){var d=$APP.B(c,0,null),e=$APP.B(c,1,null);c=$APP.we.j(function(f){return f.t},e);e=$APP.$e(wN(function(f){return f.id},e));return new $APP.M(null,7,[lO,d,mO,e,nO,sda(e),oO,d*4,tda,(d+1)*4,uda,$APP.ae($APP.co,c),vda,$APP.ae($APP.uo,c)],null)},a)))},xda=function(a){return $APP.ne(function(b){return $APP.w(mO.i(b))>3},a)},yda=function(a){return $APP.r(a)?$APP.ae($APP.uo,$APP.we.j(function(b){return $APP.w(mO.i(b))},a)):0},zda=function(a,b){var c=b.id;
20
+ a=wN(function(d){return d.t},$APP.Ce(function(d){return $APP.z.j(c,d.causeId)},$APP.Cc(a)));return new $APP.M(null,2,[$APP.mu,$APP.w(a),mO,$APP.$e($APP.ue(50,a))],null)},Ada=function(a,b){return $APP.$e(wN(function(c){return c.id},$APP.Ce(function(c){return $APP.z.j(b,c.causeId)},$APP.Cc(a))))},Bda=function(a,b){var c=hda(pO(a,b));a=$APP.B(c,0,null);c=$APP.B(c,1,null);var d=$APP.Xh(function(e){return e.causeId},a);return $APP.Yg.m(function h(f){var k=f.id;k=d.i?d.i(k):d.call(null,k);return new $APP.M(null,
21
+ 2,[qO,f,rO,$APP.Fe(h,k)],null)}(b),sO,$APP.D($APP.r(c)))},Cda=function(a,b){return typeof b==="number"?$APP.ne(function(c){return $APP.z.j(b,$APP.Ms.i(c))?c:null},tO.i(a)):null},Dda=function(a,b,c,d){b===0?c="No records yet — interact with components to start tracing.":a===0?c=""+$APP.P.i(b)+" "+$APP.P.i($APP.z.j(1,b)?"record":"records")+" · all hidden by filter":(a=""+$APP.P.i(a)+$APP.P.i($APP.I(a,b)?" of "+$APP.P.i(b):null)+" "+$APP.P.i($APP.z.j(1,a)?"record":"records")+" · "+$APP.P.i(d)+" "+$APP.P.i($APP.z.j(1,
22
+ d)?"lane":"lanes"),b=$APP.P,d=b.i,c=iO.i(c),c=$APP.n(c)?" · spanning "+$APP.P.i(aO(c)):null,c=a+d.call(b,c));return c},vO=function(a){return $APP.Xc(a)&&$APP.z.j(uO,$APP.t(a))},xO=function(a){return $APP.Xc(a)&&$APP.z.j(wO,$APP.t(a))},yO=function(a){return $APP.Xc(a)&&($APP.z.j(uO,$APP.t(a))||$APP.z.j(wO,$APP.t(a)))?$APP.Fc(a):null},zO=function(a,b){a=$APP.l(a,"__xTraceHistoryUiState");return $APP.n(a)?(b=$APP.l(a,$APP.ph(b)),void 0===b?null:b):null},AO=function(a,b,c){var d=$APP.l(a,"__xTraceHistoryUiState");
23
+ d=$APP.n(d)?d:{};b=$APP.ph(b);d[b]=c;a.__xTraceHistoryUiState=d},CO=function(){var a=mO.i($APP.cb(ON)),b=$APP.cb(BO),c=b[1];if(b[0]===a)return c;b=$APP.bm($APP.$e(a));yN(BO,[a,b]);return b},Eda=function(){var a=DO.J(EO,$APP.Yg,FO,!1);a=$APP.G(a);a=$APP.C(a,GO);a=$APP.r(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d);$APP.B(e,0,null);e=$APP.B(e,1,null);try{e.H?e.H():e.call(null)}catch(f){}d+=1}else if(a=$APP.r(a)){if($APP.Yc(a))c=$APP.Db(a),a=$APP.Eb(a),b=c,c=$APP.w(c);else{b=$APP.t(a);$APP.B(b,
24
+ 0,null);e=$APP.B(b,1,null);try{e.H?e.H():e.call(null)}catch(f){}a=$APP.v(a);b=null;c=0}d=0}else return null},HO=function(){if(EO instanceof $APP.se){var a=EO.state;a=$APP.Yg.m?$APP.Yg.m(a,FO,!0):$APP.Yg.call(null,a,FO,!0);if(EO instanceof $APP.se){var b=EO.oc;if(b!=null&&!$APP.n(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=EO.state;EO.state=a;EO.cc!=null&&sN(EO,b,a);a=new $APP.J(null,2,5,$APP.K,[b,a],null)}else a=new $APP.J(null,2,5,$APP.K,[$APP.cb(EO),uN(EO,a)],
25
+ null)}else a=new $APP.J(null,2,5,$APP.K,[$APP.cb(EO),$APP.oo(EO,$APP.Yg,FO,!0)],null);b=$APP.B(a,0,null);$APP.B(a,1,null);return $APP.n(FO.i(b))?null:requestAnimationFrame(Eda)},Fda=function(a,b){var c=IO.i(a)+1;return JO($APP.Yg.m(a,IO,c),new $APP.J(null,2,5,$APP.K,[GO,c],null),b)},Gda=function(a,b,c){if($APP.z.j("document",b))return new $APP.M(null,2,[$APP.Ms,null,KO,!1],null);b=$APP.l(a,"__xTraceHistoryId");if(b!=null)return new $APP.M(null,2,[$APP.Ms,b,KO,!1],null);a.__xTraceHistoryId=c;return new $APP.M(null,
26
+ 2,[$APP.Ms,c,KO,!0],null)},NO=function(){var a=DO.J(ON,LO,MO,vN);return MO.i(a)-1},Hda=function(a){DO.j(OO,vN);try{a.H?a.H():a.call(null)}finally{DO.j(OO,eda)}},PO=function(a){var b=a.getRootNode();return b instanceof ShadowRoot?b.host:a.parentNode},QO=function(a){for(;;)if(a!=null&&a instanceof Element){var b=a.localName;var c=b!=null;b=c?b.includes("-"):c;if($APP.n(b))return a;a=PO(a)}else return null},RO=function(a){if(a instanceof Node)for(a=PO(a);;){if(a==null||a===document)return!1;if($APP.n($APP.l(a,
27
+ "__xTraceHistoryInternal")))return!0;a=PO(a)}else return!1},SO=function(a){var b=document.body;if($APP.n($APP.n(b)?a!=null:b)){b=[b];for(var c=0;;){if(b.length===0||c>=1E6)return null;var d=b.pop();if(d instanceof Element){if(!$APP.n($APP.l(d,"__xTraceHistoryInternal"))){if($APP.z.j(a,$APP.l(d,"__xTraceHistoryId")))return d;for(var e=d.children,f=e.length,h=0;;)if(h<f)b.push(e[h]),h+=1;else break;d=d.shadowRoot;if($APP.n(d))for(d=d.children,e=d.length,f=0;;)if(f<e)b.push(d[f]),f+=1;else break}c+=
28
+ 1}}}else return null},TO=function(a){var b=$APP.qi.i(a);return $APP.cd(Ida,$APP.O.i(a))?b instanceof Node?(a=$APP.l(b,"__xTraceHistoryInternal"),$APP.n(a)?a:RO(b)):!1:RO(b)},YO=function(a,b,c,d){var e=$APP.cb(ON),f=$APP.qi.i(a);if(!$APP.n(function(){var u=(u=$APP.p(d))?$APP.Gp.i(e):u;return $APP.n(u)?u:TO(a)}())){var h=function(){var u=QO(f);return $APP.n(u)?u:f}(),k=jda(h);h=Gda(h,k,UO.i(e));var m=$APP.G(h);h=$APP.C(m,$APP.Ms);m=$APP.C(m,KO);var q=$APP.Pc($APP.cb(VO));q=$APP.Yg.B(a,$APP.Kq,k,$APP.Cc([BN,
29
+ h,CN,q]));b=kda(q,b,c);b=mda(mO.i(e),b,WO.i(e));c=$APP.n(m)?$APP.Yg.m(XO.i(e),h,new $APP.M(null,2,[$APP.Kq,k,HN,c],null)):XO.i(e);k=$APP.n(m)?h+1:UO.i(e);DO.B(ON,$APP.Yg,mO,b,$APP.Cc([UO,k,XO,c]));HO()}},ZO=function(a,b){var c=QO(b);b=$APP.l($APP.n(c)?c:b,"__xTraceHistoryId");if($APP.n(b))switch(c=$APP.O.i(a),c instanceof $APP.F?c.da:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return""+$APP.P.i(b)+":evt:"+$APP.P.i($APP.aj.i(a));case "state/instance-field-set":return""+
30
+ $APP.P.i(b)+":fld:"+$APP.P.i($APP.Ri.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.P.i(b)+":attr:"+$APP.P.i($APP.ti.i(a));default:return null}else return null},aP=function(a,b,c,d){var e=$APP.p(GN.i(a));return e?(b=ZO(b,c),$APP.n(b)?(a=$APP.C($O.i(a),b),$APP.n(a)?d-a<16:null):null):e},bP=function(a,b,c){if($APP.n(GN.i($APP.cb(ON))))return null;a=ZO(a,b);return $APP.n(a)?DO.J(ON,JO,new $APP.J(null,2,5,$APP.K,[$O,a],null),c):null},dP=function(a){var b=$APP.O.i(a),c=$APP.qi.i(a),
31
+ d=performance.now();if($APP.n(function(){var f=$APP.cb(OO)>0;if(f)return f;f=$APP.cb(cP);f=$APP.n(f)?$APP.cd(Jda,b):f;if($APP.n(f))return f;f=TO(a);return $APP.n(f)?f:aP($APP.cb(ON),a,c,d)}()))return null;var e=NO();YO(a,e,d,!1);return bP(a,c,d)},Kda=function(){var a=EventTarget.prototype,b=a.dispatchEvent;$APP.n($APP.l(b,"__xTraceHistoryWrapped"))||(yN(eP,b),b=function(c){var d=$APP.cb(eP);var e=$APP.p($APP.cb(cP));e||(e=$APP.Gp.i($APP.cb(ON)),e=$APP.n(e)?e:$APP.cb(OO)>0||RO(this));if($APP.n(e))c=
32
+ d.call(this,c);else{e=c instanceof CustomEvent;var f=performance.now(),h=e?new $APP.M(null,2,[$APP.O,this===document?$APP.gj:$APP.n(c.cancelable)?$APP.ej:$APP.$i,$APP.aj,c.type],null):null;if($APP.n(e?aP($APP.cb(ON),h,this,f):e))c=d.call(this,c);else{var k=NO();DO.m(VO,$APP.Ad,k);try{var m=d.call(this,c)}finally{DO.j(VO,$APP.Qc)}if(e)try{YO(new $APP.M(null,6,[$APP.O,this===document?$APP.gj:$APP.n(c.cancelable)?$APP.ej:$APP.$i,$APP.qi,this,$APP.aj,c.type,$APP.V,c.detail,$APP.bj,c.cancelable,$APP.cj,
33
+ c.defaultPrevented],null),k,f,!0),bP(h,this,f)}catch(q){}c=m}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},Lda=function(){return CO()},Mda=function(){var a=XO.i($APP.cb(ON)),b={};a=$APP.r(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null),k=$APP.B(f,1,null);f=b;h=""+$APP.P.i(h);k={tag:$APP.Kq.i(k),firstSeen:HN.i(k)};f[h]=k;e+=1}else if(a=$APP.r(a))$APP.Yc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.w(d)):(c=$APP.t(a),d=$APP.B(c,0,null),e=$APP.B(c,1,null),c=b,d=""+$APP.P.i(d),
34
+ e={tag:$APP.Kq.i(e),firstSeen:HN.i(e)},c[d]=e,a=$APP.v(a),c=null,d=0),e=0;else break;return b},Nda=function(a){var b=a.components;return b==null?$APP.Ee:$APP.we.j(function(c){return $APP.l(b,c).tag},Object.keys(b))},Oda=function(){var a=$APP.cb(ON),b=$APP.we.j($APP.Kq,$APP.Vg(XO.i(a)));a=$APP.Ae(function(c){c=$APP.G(c);c=$APP.C(c,fP);return Nda(c)},$APP.Cc([gP.i(a)]));return $APP.$e($APP.If.j($APP.hh(),$APP.ze.j(b,a)))},hP=function(){DO.J(ON,$APP.Yg,$APP.Gp,!0);return HO()},iP=function(){DO.J(ON,
35
+ $APP.Yg,$APP.Gp,!1);return HO()},nP=function(){DO.B(ON,$APP.Yg,mO,jP,$APP.Cc([MO,0,kP,$APP.Ee,lP,0,mP,null,$O,$APP.ie]));return HO()},oP=function(){return mP.i($APP.cb(ON))},Pda=function(a,b,c,d){return b==null?a:$APP.Fe(function(e){e=$APP.G(e);var f=$APP.C(e,$APP.Ms);return $APP.z.j(f,b)?$APP.Yg.B(e,JN,c,$APP.Cc([LN,d])):e},a)},pP=function(){var a=performance.now();DO.j(ON,function(b){return $APP.Yg.m(LO.va(b,kP,Pda,mP.i(b),a,MO.i(b)),mP,null)});return HO()},qP=function(){oP()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),
36
+ pP());var a=performance.now();DO.j(ON,function(b){var c=lP.i(b),d=MO.i(b);return $APP.Yg.B(LO.J(b,kP,$APP.Ad,new $APP.M(null,6,[$APP.Ms,c,$APP.Rj,"Session "+$APP.P.i(c),IN,a,JN,null,KN,d,LN,null],null)),mP,c,$APP.Cc([lP,c+1]))});HO();return mP.i($APP.cb(ON))},rP=function(a,b){var c=$APP.G(b);b=$APP.C(c,KN);c=$APP.C(c,LN);a=a.id;return a>=b&&(c==null||a<c)},sP=function(){var a=$APP.cb(ON),b=CO(),c=$APP.Cc(b);return $APP.bm($APP.Fe(function(d){var e=$APP.G(d);d=$APP.C(e,$APP.Ms);var f=$APP.C(e,$APP.Rj),
37
+ h=$APP.C(e,IN),k=$APP.C(e,JN),m=$APP.w($APP.Ce(function(q){return rP(q,e)},c));return{id:d,label:f,startT:h,endT:$APP.n(k)?k:null,recordCount:m}},kP.i(a)))},tP=function(a){var b=$APP.cb(ON),c=$APP.t($APP.Ce(function(d){return $APP.z.j($APP.Ms.i(d),a)},kP.i(b)));return $APP.n(c)?$APP.bm(wN(function(d){return d.t},$APP.Ce(function(d){return rP(d,c)},$APP.Dc(CO())))):[]},Qda=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=uP}a=$APP.z.j(b,uP)?new $APP.M(null,1,[$APP.Dp,"File is not valid JSON."],
38
+ null):NN(b)}else a=$APP.ra(a)?NN(a):new $APP.M(null,1,[$APP.Dp,"Import expects a JSON string or a parsed envelope object."],null);return a},vP=function(a){DO.J(ON,LO,gP,function(b){return $APP.$e($APP.De(function(c){c=$APP.G(c);c=$APP.C(c,$APP.Ms);return $APP.z.j(c,a)},b))});return HO()},xP=function(){return $APP.bm($APP.Fe(function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Ms);var c=$APP.C(b,$APP.Rj),d=$APP.C(b,wP);b=$APP.C(b,fP);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},gP.i($APP.cb(ON))))},
39
+ yP=function(a){var b=$APP.t($APP.Ce(function(c){return $APP.z.j($APP.Ms.i(c),a)},gP.i($APP.cb(ON))));return $APP.n(b)?fP.i(b).records:[]},zP=function(a,b){return new $APP.M(null,4,[EN,a.getTime(),$APP.Qs,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.n(c)?c:""}(),FN,function(){var c=navigator;c=c==null?null:c.userAgent;return $APP.n(c)?c:""}(),GN,b],null)},Rda=function(){var a=$APP.cb(ON),b=CO(),c=zP(new Date,GN.i(a));return MN(b,XO.i(a),kP.i(a),c)},AP=function(){var a=
40
+ new Date,b=$APP.cb(ON),c=CO(),d=zP(a,GN.i(b));b=MN(c,XO.i(b),kP.i(b),d);b=JSON.stringify(b,null,2);a=""+$APP.P.i("baredom-trace-")+$APP.P.i(a.getFullYear())+$APP.P.i(DN(a.getMonth()+1))+$APP.P.i(DN(a.getDate()))+"-"+$APP.P.i(DN(a.getHours()))+$APP.P.i(DN(a.getMinutes()))+$APP.P.i(DN(a.getSeconds()))+$APP.P.i(".trace.json");b=URL.createObjectURL(new Blob([b],{type:"application/json"}));c=document.createElement("a");c.href=b;c.download=a;c.style.display="none";document.body.appendChild(c);try{var e=
41
+ c.click()}finally{document.body.removeChild(c),URL.revokeObjectURL(b)}return e},BP=function(a,b){b=b.getBoundingClientRect();a.style.top=""+$APP.P.i(b.top)+"px";a.style.left=""+$APP.P.i(b.left)+"px";a.style.width=""+$APP.P.i(b.width)+"px";a.style.height=""+$APP.P.i(b.height)+"px"},CP=function(a){a=$APP.l(a,"__xTraceHistoryHighlightBox");$APP.n(a)&&(a.style.display="none")},DP=function(a){var b=$APP.l(a,"__xTraceHistoryHighlightCid");if($APP.n(b)){b=SO(b);if($APP.n(b))return a=$APP.l(a,"__xTraceHistoryHighlightBox"),
42
+ $APP.n(a)?(BP(a,b),a.style.display="block"):null;CP(a);return $APP.Yi(a,"__xTraceHistoryHighlightCid",null)}return null},EP=function(a){return(""+$APP.P.i(a)).replace(Sda,"\x26amp;").replace(Tda,"\x26lt;").replace(Uda,"\x26gt;").replace(Vda,"\x26quot;").replace(Wda,"\x26#39;")},Xda=function(a){return"\x3coption value\x3d'"+$APP.P.i(EP(a))+"'\x3e"+$APP.P.i(EP(a))+"\x3c/option\x3e"},FP=function(a,b){return"\x3clabel class\x3d'cat'\x3e\x3cx-checkbox data-x-th-cat\x3d'"+$APP.P.i(a)+"' "+$APP.P.i($APP.n(b)?
43
+ "checked ":null)+"aria-label\x3d'"+$APP.P.i(a)+"'\x3e\x3c/x-checkbox\x3e"+$APP.P.i(a)+"\x3c/label\x3e"},Yda=function(a,b){return $APP.ae($APP.P,$APP.we.j(function(c){var d=$APP.G(c);c=$APP.C(d,gO);var e=$APP.C(d,$APP.Kq),f=$APP.G(d);d=$APP.C(f,gO);f=$APP.C(f,$APP.Kq);d=$APP.z.j(dO,d)?"document":""+$APP.P.i(f)+" #"+$APP.P.i(d);f=$APP.z.j(dO,c)?"document":e;var h=$APP.z.j(b,f);return"\x3cdiv class\x3d'lane-label"+$APP.P.i(h?" active":null)+"' data-x-th-lane-tag\x3d'"+$APP.P.i(EP(f))+"' title\x3d'"+
44
+ $APP.P.i(EP(d))+"'\x3e"+$APP.P.i(EP($APP.z.j(dO,c)?"document":e))+$APP.P.i($APP.I(dO,c)?" \x3cspan class\x3d'cid'\x3e#"+$APP.P.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},Zda=function(a,b,c){return $APP.n(a)?"\x3cline class\x3d'scrubber' x1\x3d'"+$APP.P.i(b)+"' y1\x3d'0' x2\x3d'"+$APP.P.i(b)+"' y2\x3d'"+$APP.P.i(c)+"' /\x3e":""},GP=function(a,b,c,d){a=wN(function(e){return $APP.z.j(e.id,d)?1:0},a);return $APP.ae($APP.P,$APP.we.j(function(e){var f=c.i?c.i(e):c.call(null,e),h=b+10,k=$APP.z.j(e.id,
45
+ d),m=k?6.5:4.5;return"\x3ccircle class\x3d'dot"+$APP.P.i(k?" selected":null)+"' data-x-th-id\x3d'"+$APP.P.i(e.id)+"' cx\x3d'"+$APP.P.i(f)+"' cy\x3d'"+$APP.P.i(h)+"' r\x3d'"+$APP.P.i(m)+"' fill\x3d'"+$APP.P.i(cO(e))+"' /\x3e"},a))},$da=function(a,b,c,d){if(c==null)return"";a=$APP.ne(function(e){e=$APP.G(e);e=$APP.C(e,mO);return $APP.ne(function(f){return $APP.z.j(f.id,c)?f:null},e)},a);return $APP.n(a)?(d=d.i?d.i(a):d.call(null,a),"\x3cline class\x3d'density-selected' x1\x3d'"+$APP.P.i(d)+"' y1\x3d'"+
46
+ $APP.P.i(b)+"' x2\x3d'"+$APP.P.i(d)+"' y2\x3d'"+$APP.P.i(b+20)+"' /\x3e"):""},aea=function(a,b,c,d){var e=yda(a);return""+$APP.P.i($APP.ae($APP.P,$APP.we.j(function(f){var h=$APP.G(f),k=$APP.C(h,mO);f=$APP.C(h,nO);h=$APP.C(h,oO);var m=$APP.t(k),q=$APP.C(bO,$APP.n(f)?f:QN);var u=$APP.w(k);u=u==null||u===0||e==null||e===0?0:u>=e?1:.4+.6*((u-1)/$APP.uo.j(1,e-1));var x=EP($APP.ph($APP.n(f)?f:QN));k=$APP.w(k);f=""+$APP.P.i(k)+" "+$APP.P.i($APP.z.j(1,k)?"record":"records")+" · "+$APP.P.i($APP.ph($APP.n(f)?
47
+ f:QN));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+$APP.P.i(EP(f))+"' data-x-th-bin-record-id\x3d'"+$APP.P.i(m.id)+"' data-x-th-bin-count\x3d'"+$APP.P.i(k)+"' data-x-th-bin-cat\x3d'"+$APP.P.i(x)+"' x\x3d'"+$APP.P.i(h)+"' y\x3d'"+$APP.P.i(b)+"' width\x3d'"+$APP.P.i(4)+"' height\x3d'"+$APP.P.i(20)+"' fill\x3d'"+$APP.P.i(q)+"' fill-opacity\x3d'"+$APP.P.i(u)+"' /\x3e"},a)))+$APP.P.i($da(a,b,c,d))},bea=function(a,b,c,d,e,f){function h(A){a:{var E=$APP.C(x,A.id);var H=a instanceof
48
+ $APP.F?a.da:null;switch(H){case "order":A=$APP.uo.j(0,e-16);E=u===0||u<0?8:$APP.z.j(1,u)?8+A/2:8+$APP.co.j($APP.uo.j(E/(u-1),0),1)*A;break a;case "time":E=A.t;H=$APP.G(d);A=$APP.C(H,hO);H=$APP.C(H,iO);var N=$APP.uo.j(0,e-16);E=A==null||H==null?8:8+$APP.co.j($APP.uo.j((E-A)/H,0),1)*N;break a;default:throw Error("No matching clause: "+$APP.P.i(H));}}return E}var k=$APP.n(f)?f.id:null,m=$APP.If.j($APP.ie,$APP.qe(function(A,E){E=$APP.G(E);E=$APP.C(E,gO);return new $APP.J(null,2,5,$APP.K,[E,A*20],null)},
49
+ c)),q=$APP.uo.j(20,20*$APP.w(c)),u=$APP.w(b),x=$APP.If.j($APP.ie,$APP.qe(function(A,E){return new $APP.J(null,2,5,$APP.K,[E.id,A],null)},b)),y=$APP.Xh(eO,b);return"\x3csvg class\x3d'timeline-svg' width\x3d'"+$APP.P.i(e)+"' height\x3d'"+$APP.P.i(q)+"' viewBox\x3d'0 0 "+$APP.P.i(e)+" "+$APP.P.i(q)+"'\x3e"+$APP.P.i($APP.ae($APP.P,$APP.we.j(function(A){A=$APP.G(A);var E=$APP.C(A,gO);A=$APP.Jc(y,E,$APP.Ee);E=$APP.C(m,E);if($APP.z.j(HP,a)){var H=wda(A,h);A=$APP.n(xda(H))?aea(H,E,k,h):GP(A,E,h,k)}else A=
50
+ GP(A,E,h,k);return A},c)))+$APP.P.i(Zda(f,$APP.n(f)?h(f):null,q))+"\x3c/svg\x3e"},cea=function(a,b,c,d,e,f,h,k){if($APP.w(d)===0)a.innerHTML="",b.innerHTML="\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var m=$APP.uo.j(200,b.clientWidth);a.innerHTML=Yda(e,k);b.innerHTML=bea(c,d,e,f,m,h)}},IP=function(a){return""+$APP.P.i(a.tag)+" · "+$APP.P.i(a.type)},dea=function(a){var b=$APP.G(a);a=$APP.C(b,JP);var c=$APP.C(b,KP),d=$APP.C(b,LP);b=$APP.C(b,MP);c+=14;
51
+ b-=14;return"\x3cline class\x3d'edge' x1\x3d'"+$APP.P.i(a)+"' y1\x3d'"+$APP.P.i(c)+"' x2\x3d'"+$APP.P.i(d)+"' y2\x3d'"+$APP.P.i(b)+"' /\x3e"},eea=function(a,b){var c=$APP.G(a);a=$APP.C(c,tO);var d=$APP.C(c,NP),e=$APP.C(c,$APP.Nn);c=$APP.C(c,$APP.On);return"\x3csvg class\x3d'causality-svg' width\x3d'"+$APP.P.i(e)+"' height\x3d'"+$APP.P.i(c)+"' viewBox\x3d'0 0 "+$APP.P.i(e)+" "+$APP.P.i(c)+"'\x3e"+$APP.P.i($APP.ae($APP.P,$APP.we.j(dea,d)))+$APP.P.i($APP.ae($APP.P,$APP.we.j(function(f){var h=$APP.G(f),
52
+ k=$APP.C(h,$APP.Ms);f=$APP.C(h,qO);var m=$APP.C(h,OP);h=$APP.C(h,PP);m-=70;var q=h-14,u=$APP.z.j(k,b),x=m+12,y=m+22,A=m+22,E=q+18,H=q+11,N=EP("#"+$APP.P.i(k)+" "+$APP.P.i(IP(f))+" · "+$APP.P.i($N(f)));k="\x3cg data-x-th-link-id\x3d'"+$APP.P.i(k)+"' role\x3d'button' aria-label\x3d'"+$APP.P.i(N)+"'\x3e\x3ctitle\x3e"+$APP.P.i(N)+"\x3c/title\x3e\x3crect class\x3d'node-rect"+$APP.P.i(u?" selected":null)+"' x\x3d'"+$APP.P.i(m)+"' y\x3d'"+$APP.P.i(q)+"' width\x3d'"+$APP.P.i(140)+"' height\x3d'"+$APP.P.i(28)+
53
+ "' /\x3e\x3ccircle class\x3d'node-dot' cx\x3d'"+$APP.P.i(x)+"' cy\x3d'"+$APP.P.i(h)+"' r\x3d'"+$APP.P.i(4)+"' fill\x3d'"+$APP.P.i(cO(f))+"' /\x3e\x3ctext class\x3d'node-text id' x\x3d'"+$APP.P.i(y)+"' y\x3d'"+$APP.P.i(H)+"'\x3e#"+$APP.P.i(k)+"\x3c/text\x3e\x3ctext class\x3d'node-text' x\x3d'"+$APP.P.i(A)+"' y\x3d'"+$APP.P.i(E)+"'\x3e";h=$APP.P;m=h.i;f=IP(f);f=""+$APP.P.i(f);f=f.length<=22?f:""+$APP.P.i(f.substring(0,21))+"…";return k+m.call(h,EP(f))+"\x3c/text\x3e\x3c/g\x3e"},a)))+"\x3c/svg\x3e"},
54
+ gea=function(a,b,c,d){if(d==null)AO(a,QP,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+$APP.P.i(EP("Select a record from the timeline to see its causality tree."))+"\x3c/div\x3e";else{a:{var e=d;for(var f=0;;){var h=e.causeId;if(typeof h!=="number"||f>=5E3)break a;h=YN(c,h);if($APP.n(h))f+=1,e=h;else break a}e=void 0}e=Bda(c,e);c=new $APP.M(null,2,[RP,SP(e),fea,TP(e)],null);if($APP.n(sO.i(e)))AO(a,QP,null),a=$APP.P,d=a.i,c=$APP.G(c),c=$APP.C(c,RP),c="Causality tree exceeds the "+$APP.P.i(200)+
55
+ "-node cap (≥ "+$APP.P.i(c)+" nodes). Pick a smaller leaf record to view its subtree.",b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+d.call(a,EP(c))+"\x3c/div\x3e";else{e=UP(e,0,16);f=$APP.B(e,0,null);$APP.B(e,1,null);e=VP(f);f=WP(f);h=$APP.ya($APP.uo,0,$APP.we.j(OP,e));var k=$APP.ya($APP.uo,0,$APP.we.j(PP,e));e=new $APP.M(null,4,[tO,e,NP,f,$APP.Nn,h+70+16,$APP.On,k+14+16],null);c=$APP.z.j(1,RP.i(c));AO(a,QP,e);b.innerHTML=""+$APP.P.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.P.i(EP("This record has no cause and no effects in the current buffer. Pick an event/dispatch* record (or one with a 'Caused by' link in the detail pane) to see a chain."))+
56
+ "\x3c/div\x3e":null)+$APP.P.i(eea(e,d.id))}}},hea=function(a){if($APP.n(zO(a,XP))){var b=$APP.l(a,"__xTraceHistoryCausalityEl"),c=zO(a,QP),d=YP.i?YP.i(a):YP.call(null,a),e=$APP.n(c)?Cda(c,d):null,f=b==null?null:b.clientWidth;d=b==null?null:b.clientHeight;if($APP.n($APP.n(b)?$APP.n(c)?$APP.n(e)?typeof f==="number"&&typeof d==="number"&&f>0&&d>0:e:c:b)){var h=$APP.G(c);c=$APP.C(h,$APP.Nn);h=$APP.C(h,$APP.On);var k=OP.i(e),m=PP.i(e);e=k-f/2;k=m-d/2;f=$APP.uo.j(0,c-f);d=$APP.uo.j(0,h-d);d=new $APP.M(null,
57
+ 2,[ZP,$APP.uo.j(0,$APP.co.j(f,e)),$P,$APP.uo.j(0,$APP.co.j(d,k))],null);f=$APP.G(d);d=$APP.C(f,ZP);f=$APP.C(f,$P);b.scrollLeft=d;b.scrollTop=f;AO(a,XP,!1)}}},iea=function(a){var b=Oda();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.wb($APP.bh);;){if(e>=d){c=$APP.yb(f);break a}var h=c[e].value;e+=1;f=$APP.z.j(h,"all")?f:$APP.xb(f,h)}c=void 0}b=$APP.De(c,b);$APP.r(b)&&(b=$APP.ae($APP.P,$APP.we.j(Xda,b)),a.insertAdjacentHTML("beforeend",b))},jea=function(a){var b=$APP.Gp.i($APP.cb(ON));
58
+ a.textContent=$APP.n(b)?"Resume":"Pause";a.pressed=b},kea=function(a){var b=oP()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},lea=function(a){var b=$APP.G(a);a=$APP.C(b,aQ);var c=$APP.C(b,$APP.Hm),d=$APP.C(b,bQ),e=$APP.C(b,cQ),f=$APP.C(b,$APP.Rj);b=$APP.C(b,dQ);return"\x3cbutton class\x3d'session-chip"+$APP.P.i($APP.n(c)?" active":null)+$APP.P.i($APP.n(e)?" import":null)+"' type\x3d'button' data-x-th-session\x3d'"+$APP.P.i(EP(a))+"'\x3e"+$APP.P.i($APP.n(d)?"\x3cspan class\x3d'live-dot' aria-hidden\x3d'true'\x3e\x3c/span\x3e":
59
+ null)+$APP.P.i(EP(f))+$APP.P.i($APP.n(e)?"\x3cspan class\x3d'chip-close' role\x3d'button' aria-label\x3d'Remove import' data-x-th-import-close\x3d'"+$APP.P.i(b)+"'\x3e×\x3c/span\x3e":null)+"\x3c/button\x3e"},mea=function(a,b,c,d){var e=new $APP.M(null,5,[aQ,"live",$APP.Hm,$APP.z.j(c,$APP.Ep),bQ,!1,cQ,!1,$APP.Rj,"Live"],null),f=vO(c)?yO(c):null,h=xO(c)?yO(c):null;a=$APP.Fe(function(k){var m=k.id;return new $APP.M(null,5,[aQ,""+$APP.P.i(m),$APP.Hm,$APP.z.j(m,f),bQ,$APP.z.j(m,d),cQ,!1,$APP.Rj,""+$APP.P.i(k.label)+
60
+ " · "+$APP.P.i(k.recordCount)],null)},$APP.Cc(a));b=$APP.Fe(function(k){var m=k.id;return new $APP.M(null,6,[aQ,"import:"+$APP.P.i(m),$APP.Hm,$APP.z.j(m,h),bQ,!1,cQ,!0,dQ,m,$APP.Rj,""+$APP.P.i(k.label)+" · "+$APP.P.i(k.recordCount)],null)},$APP.Cc(b));return $APP.ae($APP.P,$APP.we.j(lea,$APP.ze.B(new $APP.J(null,1,5,$APP.K,[e],null),a,$APP.Cc([b]))))},nea=function(a,b,c,d,e){a.innerHTML=mea(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},eQ=function(a){var b=
61
+ $N(a);b="#"+$APP.P.i(a.id)+" "+$APP.P.i(a.tag)+" · "+$APP.P.i(a.type)+$APP.P.i($APP.n($APP.n(b)?!$APP.Gi(b):b)?" · "+$APP.P.i(b):null);return"\x3cx-button class\x3d'detail-link' size\x3d'sm' variant\x3d'ghost' data-x-th-link-id\x3d'"+$APP.P.i(a.id)+"' title\x3d'"+$APP.P.i(EP(b))+"'\x3e"+$APP.P.i(EP(b))+"\x3c/x-button\x3e"},oea=function(a,b,c,d){if($APP.n(d)){var e=JSON.stringify(d,null,2);var f=d.causeId;var h=typeof f==="number"?YN(c,f):null;f=zda(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.P.i(EP(e))+
62
+ "\x3c/pre\x3e"+$APP.P.i($APP.n(h)?"\x3cdiv class\x3d'detail-section' data-x-th-detail-cause\x3e\x3cdiv class\x3d'detail-label'\x3eCaused by\x3c/div\x3e"+$APP.P.i(eQ(h))+"\x3c/div\x3e":null);c=$APP.P;d=c.i;h=$APP.G(f);f=$APP.C(h,$APP.mu);h=$APP.C(h,mO);if(f>0){var k=$APP.w(h);f=$APP.z.j(k,f)?"Effects ("+$APP.P.i(f)+")":"Effects ("+$APP.P.i(k)+" of "+$APP.P.i(f)+")";f="\x3cdiv class\x3d'detail-section' data-x-th-detail-effects\x3e\x3cdiv class\x3d'detail-label'\x3e"+$APP.P.i(f)+"\x3c/div\x3e"+$APP.P.i($APP.ae($APP.P,
63
+ $APP.we.j(eQ,h)))+"\x3c/div\x3e"}else f=null;e+=d.call(c,f);a.innerHTML=e;a.removeAttribute("hidden");b.removeAttribute("hidden")}else a.setAttribute("hidden",""),b.setAttribute("hidden","")},gQ=function(a){var b=fQ.get(a);if($APP.n(b))return b;b=SN(a);fQ.set(a,b);return b},hQ=function(a){return $APP.z.j(a,$APP.Ep)?"live":vO(a)?"session:"+$APP.P.i(yO(a)):xO(a)?"import:"+$APP.P.i(yO(a)):"live"},YP=function(a){var b=$APP.l(a,"__xTraceHistoryView");a=$APP.l(a,"__xTraceHistoryViewSelected");return $APP.n(a)?
64
+ $APP.l(a,hQ(b)):null},jQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryViewSelected");c=$APP.n(c)?c:{};var d=hQ($APP.l(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;$APP.Q(a,"__xTraceHistoryViewSelected",c);b!=null&&$APP.z.j(iQ,$APP.l(a,"__xTraceHistoryDockMode"))&&AO(a,XP,!0)},pea=function(a,b,c){var d=YP(a);b=YN(b,d);if(b==null)return null;if(WN(b,$APP.Yg.m(c,VN,gQ)))return b;jQ(a,null);return null},kQ=function(a){return $APP.z.j(a,$APP.Ep)?CO():vO(a)?(a=tP(yO(a)),a.length===0?CO():
65
+ a):xO(a)?(a=yP(yO(a)),a.length===0?CO():a):CO()},qea=function(a,b,c,d){switch(d instanceof $APP.F?d.da:null){case "causality":b.setAttribute("hidden","");c.removeAttribute("hidden");a.classList.add("causality-mode");break;default:b.removeAttribute("hidden"),c.setAttribute("hidden",""),a.classList.remove("causality-mode")}},lQ=function(a){CP(a);return $APP.Yi(a,"__xTraceHistoryHighlightCid",null)},rea=function(a,b){if(b!=null&&b.componentId!=null&&$APP.I("document",b.tag))if($APP.z.j(b.componentId,
66
+ $APP.l(a,"__xTraceHistoryHighlightCid")))b=DP(a);else{var c=b.componentId;b=SO(c);if($APP.n(b)){$APP.Yi(a,"__xTraceHistoryHighlightCid",c);c=$APP.l(a,"__xTraceHistoryHighlightBox");if($APP.n(c))a=c;else{c=$APP.kk(a,":host { all: initial; }\n.outline {\n position: absolute;\n pointer-events: none;\n box-sizing: border-box;\n border: 3px solid #ff2d8a;\n border-radius: 3px;\n background: rgba(255, 45, 138, 0.12);\n box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.85),\n 0 0 0 4px rgba(255, 255, 255, 0.85),\n 0 0 14px 2px rgba(255, 45, 138, 0.55);\n display: none;\n}\n@media (prefers-reduced-motion: no-preference) {\n .outline {\n transition: top .08s linear, left .08s linear,\n width .08s linear, height .08s linear;\n animation: x-th-highlight-pulse .55s ease-out 1 both;\n }\n @keyframes x-th-highlight-pulse {\n 0% { box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.85),\n 0 0 0 4px rgba(255, 255, 255, 0.85),\n 0 0 0 12px rgba(255, 45, 138, 0.55); }\n 100% { box-shadow:\n 0 0 0 1px rgba(0, 0, 0, 0.85),\n 0 0 0 4px rgba(255, 255, 255, 0.85),\n 0 0 14px 2px rgba(255, 45, 138, 0.55); }\n }\n}\n",
67
+ 9998);var d=c.shadowRoot,e=document.createElement("div");e.className="outline";d.appendChild(e);$APP.Yi(a,"__xTraceHistoryHighlightLayer",c);$APP.Yi(a,"__xTraceHistoryHighlightBox",e);a=e}c=b.getBoundingClientRect();d=window.innerWidth;e=window.innerHeight;c.top>=0&&c.left>=0&&c.bottom<=e&&c.right<=d||b.scrollIntoView({block:"nearest",inline:"nearest",behavior:$APP.D($APP.n(mQ)?mQ.matches:null)?"auto":"smooth"});BP(a,b);a.style.display="block";b=a;b.style.animation="none";b=b.style.animation=""}else b=
68
+ lQ(a)}else b=lQ(a);return b},oQ=function(a){var b=$APP.l(a,"__xTraceHistoryTimelineEl"),c=$APP.l(a,"__xTraceHistoryCausalityEl"),d=$APP.l(a,"__xTraceHistoryLanesEl"),e=$APP.l(a,"__xTraceHistorySvgPaneEl"),f=$APP.l(a,"__xTraceHistoryCountEl"),h=$APP.l(a,"__xTraceHistoryDetailEl"),k=$APP.l(a,"__xTraceHistorySplitterEl"),m=$APP.l(a,"__xTraceHistoryHintEl"),q=$APP.l(a,"__xTraceHistoryPauseBtn"),u=$APP.l(a,"__xTraceHistoryRecordBtn"),x=$APP.l(a,"__xTraceHistorySessionsEl"),y=$APP.l(a,"__xTraceHistoryTagSelectEl"),
69
+ A=$APP.l(a,"__xTraceHistoryFilter"),E=$APP.l(a,"__xTraceHistoryView"),H=kQ(E),N=XN(H,$APP.Yg.m(A,VN,gQ)),S=$APP.w(N),R=H.length,Y=jO(N),ka=pda(N),ha=pea(a,H,A),na=sP(),La=xP(),Na=oP(),ab=function(){var Hb=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(Hb)?Hb:$APP.lr}(),nb=function(){var Hb=$APP.l(a,"__xTraceHistoryDockMode");return $APP.n(Hb)?Hb:nQ}();iea(y);qea(a,b,c,nb);switch(nb instanceof $APP.F?nb.da:null){case "causality":gea(a,c,H,ha);break;default:cea(d,e,ab,N,ka,Y,ha,$APP.Kq.i(A))}f.textContent=
70
+ ""+$APP.P.i(S);m.textContent=Dda(S,R,Y,$APP.w(ka));oea(h,k,H,ha);jea(q);kea(u);nea(x,na,La,E,Na);hea(a);return rea(a,ha)},pQ=function(a){return $APP.n(a)?$APP.z.j("circle",a.tagName.toLowerCase()):a},qQ=function(a){return $APP.n(a)?$APP.z.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},rQ=function(a){a=a.getAttribute("data-x-th-id");return $APP.n(a)?parseInt(a,10):null},sQ=function(a,b){$APP.n(b)?a.classList.add("collapsed"):a.classList.remove("collapsed");a=
71
+ $APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.n(a)?(a.textContent=$APP.n(b)?"»":"«",a.setAttribute("aria-expanded",$APP.n(b)?"false":"true")):null},tQ=function(a){var b=!$APP.D($APP.l(a,"__xTraceHistoryCollapsed"));$APP.Q(a,"__xTraceHistoryCollapsed",b);return sQ(a,b)},sea=function(a,b){$APP.Q(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.lr;case "time":return HP;default:return $APP.lr}}());return oQ(a)},tea=function(a,b){var c=function(){switch(b){case "timeline":return nQ;
72
+ case "causality":return iQ;default:return nQ}}();$APP.Q(a,"__xTraceHistoryDockMode",c);$APP.z.j(iQ,c)?AO(a,XP,!0):AO(a,XP,!1);return oQ(a)},uQ=function(a,b,c,d){a.textContent=d;a.removeAttribute("hidden");var e=b.getBoundingClientRect();d=c.clientX-e.left;c=c.clientY-e.top;e=b.scrollTop;var f=b.scrollLeft;b=$APP.uo.j(0,d+12+280>b.clientWidth?d-12-280:d+12);a.style.left=""+$APP.P.i(b+f)+"px";return a.style.top=""+$APP.P.i(c+e+12)+"px"},uea=function(a,b){var c=b.target,d=$APP.l(a,"__xTraceHistoryTooltipEl"),
73
+ e=$APP.l(a,"__xTraceHistoryTimelineEl");a=kQ($APP.l(a,"__xTraceHistoryView"));if($APP.n(pQ(c))){c=rQ(c);a=YN(a,c);if($APP.n(a)){c=""+$APP.P.i(a.tag);var f=$APP.P,h=f.i;var k=a.componentId;k=$APP.n(k)?" #"+$APP.P.i(k):null;a=c+h.call(f,k)+"\n"+$APP.P.i(a.type)+"\n"+$APP.P.i($N(a))+"\n@ "+$APP.P.i(aO(a.t));b=uQ(d,e,b,a)}else b=null;return b}if($APP.n(qQ(c))){f=c.getAttribute("data-x-th-bin-record-id");h=c.getAttribute("data-x-th-bin-count");c=c.getAttribute("data-x-th-bin-cat");c=$APP.n($APP.n(f)?$APP.n(h)?
74
+ c:h:f)?new $APP.M(null,3,[vQ,parseInt(f,10),wQ,parseInt(h,10),nO,$APP.Jh.i(c)],null):null;if($APP.n(c)){f=$APP.G(c);h=$APP.C(f,vQ);c=$APP.C(f,wQ);f=$APP.C(f,nO);a=YN(a,h);if($APP.n(a)){h=""+$APP.P.i(a.tag);k=$APP.P;var m=k.i;var q=a.componentId;q=$APP.n(q)?" #"+$APP.P.i(q):null;a=h+m.call(k,q)+"\n"+$APP.P.i(c)+" "+$APP.P.i($APP.z.j(1,c)?"record":"records")+" · "+$APP.P.i($APP.ph($APP.n(f)?f:QN))+"\n@ "+$APP.P.i(aO(a.t));b=uQ(d,e,b,a)}else b=null;return b}return null}return d.setAttribute("hidden",
75
+ "")},xQ=function(a,b,c,d,e,f){a:switch(b=b instanceof $APP.F?b.da:null,b){case "order":d=$APP.w(c);e=$APP.uo.j(0,e-16);d===0||d<0?f=null:$APP.z.j(1,d)||e===0?f=0:(f=$APP.co.j($APP.uo.j((f-8)/e,0),1),f=Math.round(f*(d-1)));c=$APP.n(f)?$APP.B(c,f,null):null;break a;case "time":var h=$APP.G(d);d=$APP.C(h,hO);b=$APP.C(h,iO);var k=$APP.uo.j(0,e-16);h==null||d==null||b==null?f=0:e===0||e<0||k===0?f=d:(f=$APP.co.j($APP.uo.j((f-8)/k,0),1),f=d+f*b);c=rda(c,f);break a;default:throw Error("No matching clause: "+
76
+ $APP.P.i(b));}return $APP.n(c)?(jQ(a,c.id),oQ(a)):null},vea=function(a,b,c){function d(x){return xQ(a,k,q,u,f,x.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.uo.j(200,b.clientWidth),h=$APP.l(a,"__xTraceHistoryFilter"),k=function(){var x=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(x)?x:$APP.lr}(),m=kQ($APP.l(a,"__xTraceHistoryView")),q=XN(m,$APP.Yg.m(h,VN,gQ)),u=jO(q);xQ(a,k,q,u,f,c.clientX-e.left);c=function y(){b.removeEventListener("pointermove",
77
+ d);b.removeEventListener("pointerup",y);return b.removeEventListener("pointercancel",y)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},yQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryFilter"),d=kQ($APP.l(a,"__xTraceHistoryView"));c=XN(d,$APP.Yg.m(c,VN,gQ));d=YP(a);a:if($APP.r(c)){if(d!=null)b:if(typeof d==="number"){for(var e=$APP.w(c),f=0;;){if(f>=e){d=null;break b}if($APP.z.j(d,$APP.xc(c,f).id)){d=f;break b}f+=1}d=void 0}else d=
78
+ null;else d=null;if(d==null)switch(b=b instanceof $APP.F?b.da:null,b){case "next":b=$APP.t(c);break a;case "prev":b=$APP.Pc(c);break a;default:throw Error("No matching clause: "+$APP.P.i(b));}else b=$APP.z.j(b,$APP.Zq)?$APP.C(c,d+1):$APP.C(c,d-1)}else b=null;return $APP.n(b)?(jQ(a,b.id),oQ(a)):null},zQ=function(a){var b=$APP.D(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.cd(wea,a==null?null:a.toLowerCase()));return a},xea=function(a,b){if(zQ(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),
79
+ yQ(a,$APP.Zq);case "ArrowLeft":return b.preventDefault(),yQ(a,$APP.Tq);default:return null}},yea=function(a,b,c){function d(h){h=$APP.uo.j(60,f+(e-h.clientY));return a.style.height=""+$APP.P.i(h)+"px"}c.preventDefault();b.setPointerCapture(c.pointerId);b.classList.add("dragging");var e=c.clientY,f=a.offsetHeight;c=function k(){b.removeEventListener("pointermove",d);b.removeEventListener("pointerup",k);b.removeEventListener("pointercancel",k);return b.classList.remove("dragging")};b.addEventListener("pointermove",
80
+ d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},zea=function(a){return a==null||$APP.z.j("",a)?null:tN(a,".trace.json")?$APP.wd(a,$APP.w(a)-11):tN(a,".json")?$APP.wd(a,$APP.w(a)-5):a},BQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryHintEl"),d=zO(a,AQ);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");AO(a,AQ,null);return oQ(a)},4E3);return AO(a,AQ,b)},DQ=function(a,b){var c=new FileReader,
81
+ d=zea(b.name);c.onload=function(){var e=CQ.j(c.result,d);e!=null?($APP.l(a,"__xTraceHistoryHintEl").classList.remove("error"),$APP.Q(a,"__xTraceHistoryView",new $APP.J(null,2,5,$APP.K,[wO,e],null)),e=oQ(a)):e=BQ(a,"Import failed — see console for details.");return e};c.onerror=function(){return BQ(a,"Could not read file.")};return c.readAsText(b)},EQ=function(a){a=a.dataTransfer;return $APP.n(a)?a.types.includes("Files"):null},Aea=function(a,b){var c=a.shadowRoot;a=$APP.n(c)?c:a.attachShadow({mode:"open"});
82
+ if(c==null){c="\x3cstyle\x3e"+$APP.P.i(":host {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n width: min(420px, calc(100vw - 1rem));\n z-index: 1999999;\n font: 11px/1.4 ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;\n color: #cdd6f4;\n pointer-events: auto;\n /* The width transition makes the collapse / expand toggle feel\n responsive without being slow. The dock is otherwise position:\n fixed so transitioning width doesn't reflow the host page. */\n transition: width 160ms ease;\n}\n/* Collapsed mode: shrink the host to a thin vertical strip so the\n user can reach components the full dock would otherwise cover.\n The only interactive element left is the collapse-toggle button,\n which expands the dock back to full width when clicked. */\n:host(.collapsed) {\n width: 32px;\n}\n:host(.collapsed) .dock \x3e *:not(.header) { display: none; }\n:host(.collapsed) .header {\n flex-direction: column;\n align-items: center;\n padding: 8px 0;\n gap: 4px;\n}\n:host(.collapsed) .header \x3e *:not([data-x-th-action\x3d'collapse']) {\n display: none;\n}\n/* Causality mode: hide the axis-mode select (Order / Time only\n affects the timeline pane, so it's noise in causality view). */\n:host(.causality-mode) [data-x-th-axis] {\n display: none;\n}\n@media (prefers-reduced-motion: reduce) {\n :host { transition: none; }\n}\n.dock {\n display: flex;\n flex-direction: column;\n height: 100%;\n background: #11111b;\n border-left: 1px solid rgba(59,130,246,0.6);\n box-shadow: -4px 0 20px rgba(0,0,0,0.4);\n /* Anchor for the absolutely-positioned drop-overlay added in PR 11\n so its `inset: 0` reaches the dock edges. */\n position: relative;\n}\n.header {\n display: flex;\n /* Wrap so the count + action buttons survive narrow viewports\n (`min(420px, calc(100vw - 1rem))` reaches 304px at 320px screens,\n which is too tight for four action buttons + title + count on\n one row). */\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n padding: 8px 10px;\n background: rgba(59,130,246,0.15);\n border-bottom: 1px solid rgba(59,130,246,0.3);\n flex: 0 0 auto;\n}\n.title { font-weight: 700; color: #89b4fa; font-size: 12px; }\n.count { color: #6c7086; margin-left: auto; }\n.filters {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px 12px;\n padding: 6px 10px;\n border-bottom: 1px solid rgba(255,255,255,0.06);\n flex: 0 0 auto;\n}\n/* The tag dropdown is an \x3cx-select\x3e; its own shadow brings styling.\n We just constrain its width and font so it matches the dock's\n ui-monospace 11px tone. */\n.filters x-select {\n font-size: 11px;\n max-width: 140px;\n}\n/* x-checkbox has no slot for its label, so the visible text sits\n next to the checkbox inside a \x3clabel\x3e wrapper. The label uses\n inline-flex to keep the checkbox + text on one row, with a small\n gap. Cursor: pointer mirrors native checkbox-label affordance. */\n.filters label.cat {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: #a6adc8;\n font-size: 10px;\n cursor: pointer;\n user-select: none;\n}\n/* PR 16 — search input. x-search-field brings its own theming via its\n shadow DOM; the dock just constrains the host width so it shares\n the filter row's monospace tone with the tag dropdown. */\n.filters x-search-field {\n font-size: 11px;\n flex: 1 1 140px;\n min-width: 100px;\n max-width: 240px;\n}\n/* Session strip: thin row above the filter row listing the live view\n plus any captured session as a clickable chip. Hidden when the only\n chip is Live (no sessions yet) so the dock stays compact. Scrolls\n horizontally if the chip count overflows the dock width. */\n.sessions {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 4px 10px;\n background: rgba(0,0,0,0.15);\n border-bottom: 1px solid rgba(255,255,255,0.04);\n flex: 0 0 auto;\n overflow-x: auto;\n white-space: nowrap;\n}\n.sessions[hidden] { display: none; }\n.session-chip {\n flex: 0 0 auto;\n background: rgba(255,255,255,0.04);\n color: #a6adc8;\n border: 1px solid rgba(255,255,255,0.08);\n border-radius: 3px;\n padding: 1px 6px;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n user-select: none;\n}\n.session-chip:hover { background: rgba(59,130,246,0.12); color: #cdd6f4; }\n.session-chip.active {\n background: rgba(59,130,246,0.22);\n border-color: rgba(59,130,246,0.6);\n color: #89b4fa;\n font-weight: 600;\n}\n/* Imported traces are visually distinct from locally-captured\n sessions: amber border instead of blue, plus a small close button\n inside the chip so the user can drop the import without clearing\n live state. */\n.session-chip.import {\n border-color: rgba(249,226,175,0.45);\n color: #f9e2af;\n}\n.session-chip.import.active {\n background: rgba(249,226,175,0.18);\n border-color: rgba(249,226,175,0.7);\n color: #f9e2af;\n}\n.session-chip.import .chip-close {\n background: transparent;\n border: none;\n color: inherit;\n cursor: pointer;\n font: inherit;\n font-size: 12px;\n line-height: 1;\n padding: 0 0 0 6px;\n margin: 0;\n opacity: 0.6;\n}\n.session-chip.import .chip-close:hover { opacity: 1; }\n.session-chip .live-dot {\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: #f38ba8;\n margin-right: 4px;\n vertical-align: middle;\n animation: x-th-pulse 1s ease-in-out infinite;\n}\n@keyframes x-th-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.35; }\n}\n@media (prefers-reduced-motion: reduce) {\n .session-chip .live-dot { animation: none; }\n}\n.timeline {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n position: relative;\n /* Transparent border reserves 2px so the focus indicator below doesn't\n overlap the leftmost pixels of lane labels or shift content layout. */\n border: 2px solid transparent;\n box-sizing: border-box;\n}\n.timeline-body {\n display: flex;\n align-items: stretch;\n min-height: 100%;\n}\n.lanes {\n flex: 0 0 110px;\n display: flex;\n flex-direction: column;\n border-right: 1px solid rgba(255,255,255,0.06);\n background: #11111b;\n position: sticky;\n left: 0;\n z-index: 1;\n}\n.lane-label {\n height: 20px;\n padding: 0 8px;\n display: flex;\n align-items: center;\n font-size: 11px;\n color: #a6adc8;\n border-bottom: 1px solid rgba(255,255,255,0.04);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n cursor: pointer;\n user-select: none;\n}\n.lane-label:hover { background: rgba(59,130,246,0.08); color: #cdd6f4; }\n.lane-label.active {\n background: rgba(59,130,246,0.18);\n color: #89b4fa;\n font-weight: 600;\n}\n.lane-label .cid { color: #6c7086; margin-left: 4px; }\n.svg-pane {\n flex: 1 1 auto;\n min-width: 0;\n display: block;\n}\nsvg.timeline-svg {\n display: block;\n background:\n repeating-linear-gradient(\n to bottom,\n transparent 0,\n transparent 19px,\n rgba(255,255,255,0.03) 19px,\n rgba(255,255,255,0.03) 20px);\n}\n.dot { cursor: pointer; transition: r 80ms ease; }\n.dot:hover { stroke: #fff; stroke-width: 1; }\n.dot.selected { stroke: #fff; stroke-width: 1.5; }\n/* Heatmap bins (PR 18). Each lane that exceeds the density threshold\n renders as a row of these rects rather than individual dots; the\n per-bin fill-opacity is set inline by the renderer (scales with\n the bin's record count relative to the lane's max). */\n.density-bin {\n cursor: pointer;\n transition: stroke 80ms ease, fill-opacity 80ms ease;\n}\n.density-bin:hover {\n stroke: #fff;\n stroke-width: 0.5;\n}\n/* Thin pink bar drawn at the selected record's exact x inside its\n bin — keeps the scrubber-style highlight in dense lanes without\n obscuring the bin's category colour. */\nline.density-selected {\n stroke: #f5c2e7;\n stroke-width: 2;\n pointer-events: none;\n}\nline.scrubber {\n stroke: #f5c2e7;\n stroke-width: 1.5;\n stroke-dasharray: 4 2;\n pointer-events: none;\n}\n.svg-pane { cursor: crosshair; }\n.timeline:focus {\n outline: none;\n border-color: #89b4fa;\n}\n.tooltip {\n position: absolute;\n background: #1e1e2e;\n border: 1px solid rgba(59,130,246,0.6);\n border-radius: 4px;\n padding: 4px 8px;\n font-size: 10px;\n white-space: pre-wrap;\n pointer-events: none;\n max-width: 280px;\n color: #cdd6f4;\n z-index: 10;\n box-shadow: 0 4px 12px rgba(0,0,0,0.5);\n}\n.timeline-empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n width: 100%;\n}\n/* Causality DAG pane (PR 17). Shares the flexible vertical slot with\n .timeline — render! toggles which one is hidden by dock-mode. The\n scrollable container holds an inner \x3csvg\x3e sized to the tree's\n bounding box so the scrollbars correctly reflect off-screen depth\n and breadth. */\n.causality {\n flex: 1 1 auto;\n overflow: auto;\n min-height: 0;\n position: relative;\n background: #11111b;\n border: 2px solid transparent;\n box-sizing: border-box;\n}\n.causality:focus { outline: none; border-color: #89b4fa; }\n.causality[hidden] { display: none; }\n.timeline[hidden] { display: none; }\n.causality-empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n width: 100%;\n}\n/* Leaf-hint banner rendered ABOVE the SVG when the tree has only\n one node. Pinned via sticky positioning so it stays visible even\n when the user scrolls the pane (the lone node sits at the\n padded origin and could be obscured by the banner otherwise). */\n.causality-leaf-hint {\n position: sticky;\n top: 0;\n left: 0;\n z-index: 1;\n background: rgba(249,226,175,0.10);\n border-bottom: 1px solid rgba(249,226,175,0.35);\n color: #f9e2af;\n font-size: 10px;\n padding: 6px 10px;\n line-height: 1.4;\n}\nsvg.causality-svg { display: block; }\nsvg.causality-svg .edge {\n stroke: rgba(255,255,255,0.18);\n stroke-width: 1;\n fill: none;\n}\nsvg.causality-svg .node-rect {\n fill: rgba(255,255,255,0.04);\n stroke: rgba(255,255,255,0.12);\n stroke-width: 1;\n cursor: pointer;\n rx: 4;\n ry: 4;\n transition: fill 80ms ease, stroke 80ms ease;\n}\nsvg.causality-svg .node-rect:hover {\n fill: rgba(59,130,246,0.16);\n stroke: rgba(59,130,246,0.6);\n}\nsvg.causality-svg .node-rect.selected {\n fill: rgba(245,194,231,0.18);\n stroke: #f5c2e7;\n stroke-width: 1.5;\n}\nsvg.causality-svg .node-dot {\n pointer-events: none;\n}\nsvg.causality-svg .node-text {\n fill: #cdd6f4;\n font: 10px ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;\n pointer-events: none;\n dominant-baseline: middle;\n}\nsvg.causality-svg .node-text.id {\n fill: #a6adc8;\n font-size: 9px;\n}\n.splitter {\n flex: 0 0 auto;\n height: 4px;\n background: rgba(255,255,255,0.04);\n cursor: ns-resize;\n touch-action: none;\n transition: background 120ms ease;\n}\n.splitter:hover, .splitter.dragging { background: rgba(59,130,246,0.6); }\n.detail {\n background: #181825;\n border-top: 1px solid rgba(59,130,246,0.2);\n padding: 8px 10px;\n font-size: 10px;\n color: #cdd6f4;\n flex: 0 0 auto;\n height: 35vh;\n min-height: 60px;\n max-height: 80%;\n overflow-y: auto;\n}\n.detail-json {\n margin: 0 0 8px 0;\n font: inherit;\n white-space: pre-wrap;\n word-break: break-all;\n color: #a6e3a1;\n}\n.detail-section { margin-top: 6px; }\n.detail-label {\n color: #89b4fa;\n font-weight: 600;\n margin-bottom: 2px;\n font-size: 10px;\n letter-spacing: 0.02em;\n}\n/* The host is an \x3cx-button\x3e; its own shadow brings background, hover,\n border-radius, etc. We keep block-layout + width on the host so each\n link fills its row, and reach into the button's `label` part to add\n ellipsis truncation (the summary string can exceed the dock width). */\n.detail-link {\n display: block;\n width: 100%;\n margin: 2px 0;\n}\n.detail-link::part(label) {\n display: block;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.detail-link::part(button) {\n width: 100%;\n justify-content: flex-start;\n}\n.detail-empty { color: #6c7086; font-style: italic; font-size: 10px; }\n.empty {\n color: #6c7086;\n font-style: italic;\n text-align: center;\n padding: 20px;\n}\n.hint { color: #6c7086; font-size: 10px; padding: 4px 10px; flex: 0 0 auto; }\n.hint.error { color: #f38ba8; }\n/* Drop overlay — covers the whole dock while a file is being hovered.\n pointer-events:none keeps drag events flowing through to the dock root\n so the dragleave/drop bookkeeping doesn't fight the overlay layer. */\n.drop-overlay {\n position: absolute;\n inset: 0;\n background: rgba(249,226,175,0.10);\n border: 2px dashed rgba(249,226,175,0.6);\n display: flex;\n align-items: center;\n justify-content: center;\n color: #f9e2af;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.02em;\n z-index: 100;\n pointer-events: none;\n}\n.drop-overlay[hidden] { display: none; }\n/* The hidden file input is kept off-screen — clicked programmatically\n by the Import button — but we mark it `display:none` to keep it out\n of layout entirely. */\n.import-input { display: none; }")+
78
83
  "\x3c/style\x3e";var d=$APP.P,e=d.i;b="\x3cdiv class\x3d'dock'\x3e\x3cdiv class\x3d'header'\x3e\x3cx-button data-x-th-action\x3d'collapse' size\x3d'sm' variant\x3d'ghost' aria-label\x3d'Collapse panel' title\x3d'Collapse / expand panel (Ctrl/Cmd + \\\\)'\x3e«\x3c/x-button\x3e\x3cspan class\x3d'title'\x3ex-trace-history\x3c/span\x3e\x3cx-button data-x-th-action\x3d'pause' size\x3d'sm' variant\x3d'ghost'\x3ePause\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'record' size\x3d'sm' variant\x3d'ghost'\x3eRecord\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'clear' size\x3d'sm' variant\x3d'ghost'\x3eClear\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'export' size\x3d'sm' variant\x3d'ghost' title\x3d'Download trace as .trace.json'\x3eExport\x3c/x-button\x3e\x3cx-button data-x-th-action\x3d'import' size\x3d'sm' variant\x3d'ghost' title\x3d'Load a .trace.json file (or drag-drop one onto the dock)'\x3eImport\x3c/x-button\x3e\x3cspan class\x3d'count' data-x-th-count\x3e0\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d'sessions' data-x-th-sessions hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'filters'\x3e\x3cx-select data-x-th-tag size\x3d'sm'\x3e\x3coption value\x3d'all' selected\x3eAll tags\x3c/option\x3e\x3c/x-select\x3e\x3cx-search-field data-x-th-search name\x3d'search' placeholder\x3d'Search records…' autocomplete\x3d'off'\x3e\x3c/x-search-field\x3e"+
79
- $APP.P.i(yR("events",$APP.$c(b,$APP.Tr)))+$APP.P.i(yR("state",$APP.$c(b,$APP.Br)))+$APP.P.i(yR("dom",$APP.$c(b,xS)))+$APP.P.i(yR("lifecycle",$APP.$c(b,yS)))+"\x3cx-select data-x-th-mode size\x3d'sm'\x3e\x3coption value\x3d'timeline' selected\x3eTimeline\x3c/option\x3e\x3coption value\x3d'causality'\x3eCausality\x3c/option\x3e\x3c/x-select\x3e\x3cx-select data-x-th-axis size\x3d'sm'\x3e\x3coption value\x3d'order' selected\x3eOrder\x3c/option\x3e\x3coption value\x3d'time'\x3eTime\x3c/option\x3e\x3c/x-select\x3e\x3c/div\x3e\x3cdiv class\x3d'timeline' data-x-th-timeline tabindex\x3d'0'\x3e\x3cdiv class\x3d'lanes' data-x-th-lanes\x3e\x3c/div\x3e\x3cdiv class\x3d'svg-pane' data-x-th-svg-pane\x3e\x3c/div\x3e\x3cdiv class\x3d'tooltip' data-x-th-tooltip hidden\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'causality' data-x-th-causality tabindex\x3d'0' hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'splitter' data-x-th-splitter hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'detail' data-x-th-detail hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'hint' data-x-th-hint\x3e\x3c/div\x3e\x3cdiv class\x3d'drop-overlay' data-x-th-drop-overlay hidden\x3eDrop .trace.json to import\x3c/div\x3e\x3cinput class\x3d'import-input' data-x-th-import-input type\x3d'file' accept\x3d'.json,.trace.json,application/json' /\x3e\x3c/div\x3e";
80
- a.innerHTML=c+e.call(d,b)}return a},Waa=function(a,b){$APP.R(a,"__xTraceHistoryShadow",b);$APP.R(a,"__xTraceHistoryTimelineEl",b.querySelector("[data-x-th-timeline]"));$APP.R(a,"__xTraceHistoryLanesEl",b.querySelector("[data-x-th-lanes]"));$APP.R(a,"__xTraceHistorySvgPaneEl",b.querySelector("[data-x-th-svg-pane]"));$APP.R(a,"__xTraceHistoryTooltipEl",b.querySelector("[data-x-th-tooltip]"));$APP.R(a,"__xTraceHistoryCountEl",b.querySelector("[data-x-th-count]"));$APP.R(a,"__xTraceHistoryDetailEl",b.querySelector("[data-x-th-detail]"));
81
- $APP.R(a,"__xTraceHistorySplitterEl",b.querySelector("[data-x-th-splitter]"));$APP.R(a,"__xTraceHistoryHintEl",b.querySelector("[data-x-th-hint]"));$APP.R(a,"__xTraceHistoryTagSelectEl",b.querySelector("[data-x-th-tag]"));$APP.R(a,"__xTraceHistoryCausalityEl",b.querySelector("[data-x-th-causality]"));$APP.R(a,"__xTraceHistoryPauseBtn",b.querySelector("[data-x-th-action\x3d'pause']"));$APP.R(a,"__xTraceHistoryRecordBtn",b.querySelector("[data-x-th-action\x3d'record']"));$APP.R(a,"__xTraceHistorySessionsEl",
82
- b.querySelector("[data-x-th-sessions]"));$APP.R(a,"__xTraceHistoryImportInput",b.querySelector("[data-x-th-import-input]"));$APP.R(a,"__xTraceHistoryDropOverlay",b.querySelector("[data-x-th-drop-overlay]"));$APP.R(a,"__xTraceHistoryCollapseBtn",b.querySelector("[data-x-th-action\x3d'collapse']"))},Xaa=function(a,b,c,d,e,f,h,k){return[[b,"click",function(m){m=m.target;var q=m.closest("[data-x-th-action]");if($APP.n(q))switch(q.getAttribute("data-x-th-action")){case "pause":$APP.n($APP.Qn.i($APP.bb(tP)))?
83
- eR():dR();break;case "record":kR()!=null?lR():mR();break;case "clear":$APP.R(a,"__xTraceHistoryViewSelected",{});$APP.R(a,"__xTraceHistoryView",$APP.Pn);jR();break;case "export":wR();break;case "import":q=$APP.l(a,"__xTraceHistoryImportInput");$APP.n(q)&&(q.value="",q.click());break;case "collapse":lS(a)}q=m.closest("[data-x-th-import-close]");if($APP.n(q)){q=parseInt(q.getAttribute("data-x-th-import-close"),10);var u=$APP.l(a,"__xTraceHistoryView");tQ(u)&&$APP.y.j(q,uQ(u))&&$APP.R(a,"__xTraceHistoryView",
84
- $APP.Pn);rR(q)}$APP.n(m.closest("[data-x-th-import-close]"))||(q=m.closest("[data-x-th-session]"),$APP.n(q)&&(q=q.getAttribute("data-x-th-session"),q=$APP.y.j(q,"live")?$APP.Pn:q.lastIndexOf("import:",0)==0?new $APP.K(null,2,5,$APP.M,[sQ,parseInt(q.substring(7),10)],null):new $APP.K(null,2,5,$APP.M,[qQ,parseInt(q,10)],null),$APP.R(a,"__xTraceHistoryView",q),gS(a)));q=m.closest("[data-x-th-lane-tag]");if($APP.n(q)){u=q.getAttribute("data-x-th-lane-tag");q=$APP.l(a,"__xTraceHistoryFilter");var x=cP.i(q);
85
- u=$APP.y.j(u,x)?null:u;q=$APP.Vk.m(q,cP,u);$APP.R(a,"__xTraceHistoryFilter",q);q=$APP.l(a,"__xTraceHistoryTagSelectEl");$APP.n(q)&&(q.value=$APP.n(u)?u:"all");gS(a)}q=m.closest("[data-x-th-link-id]");$APP.n(q)&&(q=q.getAttribute("data-x-th-link-id"),$APP.n(q)&&(q=parseInt(q,10),$APP.n(isNaN(q))||(dS(a,q),gS(a))));q=hS(m);q=$APP.n(q)?q:iS(m);$APP.n(q)?($APP.n(hS(m))?m=jS(m):$APP.n(iS(m))?(m=m.getAttribute("data-x-th-bin-record-id"),m=$APP.n(m)?parseInt(m,10):null):m=null,q=RR(a),m=$APP.y.j(m,q)?null:
86
- m,dS(a,m),m=gS(a)):m=null;return m}],[b,"select-change",function(m){var q=m.target;m=m.detail.value;q.getAttribute("data-x-th-tag")!=null?(q=$APP.Vk.m($APP.l(a,"__xTraceHistoryFilter"),cP,$APP.y.j(m,"all")?null:m),$APP.R(a,"__xTraceHistoryFilter",q),q=gS(a)):q=q.getAttribute("data-x-th-mode")!=null?Oaa(a,m):q.getAttribute("data-x-th-axis")!=null?Naa(a,m):null;return q}],[b,"x-checkbox-change",function(m){var q=m.target.getAttribute("data-x-th-cat");if(q!=null){var u=m.detail.checked;m=$APP.l(a,"__xTraceHistoryFilter");
87
- var x=AP.i(m);x=$APP.n(x)?x:$APP.wg(uP);q=$APP.Xg.i(q);q=$APP.n(u)?$APP.wd.j(x,q):$APP.Fm.j(x,q);m=$APP.Vk.m(m,AP,q);$APP.R(a,"__xTraceHistoryFilter",m);m=gS(a)}else m=null;return m}],[b,"x-search-field-input",function(m){var q=m.target;$APP.n($APP.n(q)?q.hasAttribute("data-x-th-search"):q)?(m=m.detail.value,m=($APP.n(m)?m:"").toLowerCase(),m=$APP.Vk.m($APP.l(a,"__xTraceHistoryFilter"),BP,$APP.y.j("",m)?null:m),$APP.R(a,"__xTraceHistoryFilter",m),m=gS(a)):m=null;return m}],[c,"pointermove",function(m){return Paa(a,
88
- m)}],[c,"pointerleave",function(){return $APP.l(a,"__xTraceHistoryTooltipEl").setAttribute("hidden","")}],[c,"pointerdown",function(){return c.focus()}],[k,"pointerdown",function(){return k.focus()}],[b,"keydown",function(m){return Saa(a,m)}],[d,"pointerdown",function(m){return Qaa(a,$APP.l(a,"__xTraceHistorySvgPaneEl"),m)}],[e,"pointerdown",function(m){return Taa(f,e,m)}],[h,"change",function(m){m=m.target.files;return m.length>0?vS(a,m[0]):null}],[b,"dragenter",function(m){if($APP.n(wS(m))){m.preventDefault();
89
- m=$APP.l(a,"__xTraceHistoryDropOverlay");var q=vQ(a,zS);wQ(a,zS,($APP.n(q)?q:0)+1);m=m.removeAttribute("hidden")}else m=null;return m}],[b,"dragover",function(m){$APP.n(wS(m))?(m.preventDefault(),m=m.dataTransfer,m=$APP.n(m)?m.dropEffect="copy":null):m=null;return m}],[b,"dragleave",function(m){if($APP.n(wS(m))){m=$APP.l(a,"__xTraceHistoryDropOverlay");var q=$APP.Gm.j,u=vQ(a,zS);q=q.call($APP.Gm,0,($APP.n(u)?u:0)-1);wQ(a,zS,q);m=q===0?m.setAttribute("hidden",""):null}else m=null;return m}],[b,"drop",
90
- function(m){$APP.n(wS(m))?(m.preventDefault(),wQ(a,zS,0),$APP.l(a,"__xTraceHistoryDropOverlay").setAttribute("hidden",""),m=m.dataTransfer,m=$APP.n(m)?m.files:null,m=$APP.n($APP.n(m)?m.length>0:m)?vS(a,m[0]):null):m=null;return m}],[document,"keydown",function(m){var q;if(q=$APP.y.j("\\",m.key))q=m.metaKey,q=$APP.n(q)?q:m.ctrlKey,q=$APP.n(q)?$APP.p(m.altKey)&&$APP.p(m.shiftKey)&&!rS(m.target):q;$APP.n(q)?(m.preventDefault(),m=lS(a)):m=null;return m}]]},Yaa=function(a,b){b=Xaa(a,b,$APP.l(a,"__xTraceHistoryTimelineEl"),
91
- $APP.l(a,"__xTraceHistorySvgPaneEl"),$APP.l(a,"__xTraceHistorySplitterEl"),$APP.l(a,"__xTraceHistoryDetailEl"),$APP.l(a,"__xTraceHistoryImportInput"),$APP.l(a,"__xTraceHistoryCausalityEl"));$APP.R(a,"__xTraceHistoryListeners",b);a:{a=b.length;for(var c=0;;)if(c<a){var d=b[c];d[0].addEventListener(d[1],d[2]);c+=1}else break a}},Zaa=function(a,b){$APP.n($APP.l(a,"__xTraceHistoryFilter"))||$APP.R(a,"__xTraceHistoryFilter",new $APP.N(null,3,[cP,null,AP,b,BP,null],null));$APP.n($APP.l(a,"__xTraceHistoryView"))||
92
- $APP.R(a,"__xTraceHistoryView",$APP.Pn);$APP.n($APP.l(a,"__xTraceHistoryViewSelected"))||$APP.R(a,"__xTraceHistoryViewSelected",{});$APP.n($APP.l(a,"__xTraceHistoryAxisMode"))||$APP.R(a,"__xTraceHistoryAxisMode",$APP.Cp);$APP.n($APP.l(a,"__xTraceHistoryDockMode"))||$APP.R(a,"__xTraceHistoryDockMode",fS);$APP.l(a,"__xTraceHistoryCollapsed")==null&&$APP.R(a,"__xTraceHistoryCollapsed",!1);kS(a,$APP.E($APP.l(a,"__xTraceHistoryCollapsed")))},$aa=function(a){if($APP.n($APP.l(a,"__xTraceHistoryMounted")))return null;
93
- a.__xTraceHistoryInternal=!0;var b=yQ().length;caa(function(){var c=vP(),d=Vaa(a,c);Waa(a,d);Zaa(a,c);Yaa(a,d);c=FQ.i(zQ.m(AQ,aaa,function(){var e=$APP.l(a,"__xTraceHistoryView"),f=tR(),h=f.length;var k=vQ(a,AS);k=$APP.n(k)?k:0;h>k?(wQ(a,AS,h),$APP.y.j(e,$APP.Pn)&&yQ().length===0&&$APP.R(a,"__xTraceHistoryView",new $APP.K(null,2,5,$APP.M,[sQ,f[h-1].id],null))):h<k&&wQ(a,AS,h);return gS(a)}));$APP.R(a,"__xTraceHistorySubToken",c);gS(a);return $APP.R(a,"__xTraceHistoryMounted",!0)});return $APP.I(b,
94
- yQ().length)?console.warn("[x-trace-history] dock mount produced records — internal-host suppression is leaking. ","Wrap dynamic child-component constructors in recorder/with-suppressed-recording!."):null},BS=function(){return $APP.n(document.querySelector("x-trace-history"))?null:document.body.appendChild(document.createElement("x-trace-history"))},CS=function(){if($O()){var a=zQ.B;var b=$APP.l(window,"BAREDOM_TRACE_HISTORY_CAPACITY");b=typeof b==="number"&&b>0?b:5E3;var c=window,d;(d=$APP.y.j("raw",
95
- $APP.l(c,"BAREDOM_TRACE_HISTORY")))||(c=c.location.search,c=c==null?null:$APP.Mg(aba,c),d=$APP.E(c));a.call(zQ,tP,$APP.Vk,SQ,b,$APP.Ac([kP,d]));YO($APP.bi,$Q);YO($APP.lh,$Q);YO(LQ,0);YO(RQ,$APP.we);faa();YO(ZQ,!0);a=$APP.l(window,"BareDOM");a=$APP.n(a)?a:{};a.traceHistory={records:gaa,sessions:oR,"export":maa,download:wR,stopSession:lR,"import":uS,pause:dR,importRecords:uR,sessionRecords:pR,startSession:mR,components:haa,clear:jR,imports:tR,removeImport:rR,resume:eR};window.BareDOM=a;console.log("%c[BareDOM Trace History]%c Active — see window.BareDOM.traceHistory for the API",
96
- "color:#3b82f6;font-weight:bold","color:inherit")}$APP.zl();$APP.Fk();$APP.tj();$APP.Pl();$APP.Kh("x-trace-history",bba);return $O()?$APP.n(document.body)?BS():document.addEventListener("DOMContentLoaded",BS,{once:!0}):null},DS=function(){return CS()},UP=function UP(a){switch(arguments.length){case 2:return UP.j(arguments[0],arguments[1]);case 3:return UP.m(arguments[0],arguments[1],arguments[2]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return UP.B(arguments[0],
97
- arguments[1],arguments[2],3<c.length?new $APP.$b(c.slice(3),0,null):null)}};UP.j=function(a,b){return b};UP.m=function(a,b,c){return(a.i?a.i(b):a.call(null,b))<(a.i?a.i(c):a.call(null,c))?b:c};UP.B=function(a,b,c,d){return $APP.ya(function(e,f){return UP.m(a,e,f)},UP.m(a,b,c),d)};UP.K=function(a){var b=$APP.t(a),c=$APP.v(a);a=$APP.t(c);var d=$APP.v(c);c=$APP.t(d);d=$APP.v(d);return this.B(b,a,c,d)};UP.M=3;
98
- var ES=function ES(a){switch(arguments.length){case 0:return ES.H();case 1:return ES.i(arguments[0]);case 2:return ES.j(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return ES.B(arguments[0],arguments[1],2<c.length?new $APP.$b(c.slice(2),0,null):null)}};ES.H=function(){return 0};ES.i=function(a){return a};ES.j=function(a,b){return a+b};ES.B=function(a,b,c){return $APP.ya(ES,a+b,c)};
99
- ES.K=function(a){var b=$APP.t(a),c=$APP.v(a);a=$APP.t(c);c=$APP.v(c);return this.B(b,a,c)};ES.M=2;
100
- var IQ=function IQ(a){switch(arguments.length){case 3:return IQ.m(arguments[0],arguments[1],arguments[2]);case 4:return IQ.J(arguments[0],arguments[1],arguments[2],arguments[3]);case 5:return IQ.da(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return IQ.ua(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return IQ.B(arguments[0],arguments[1],arguments[2],
101
- arguments[3],arguments[4],arguments[5],6<c.length?new $APP.$b(c.slice(6),0,null):null)}};IQ.m=function(a,b,c){var d=$APP.Vk.m,e=$APP.C(a,b);c=c.i?c.i(e):c.call(null,e);return d.call($APP.Vk,a,b,c)};IQ.J=function(a,b,c,d){var e=$APP.Vk.m,f=$APP.C(a,b);c=c.j?c.j(f,d):c.call(null,f,d);return e.call($APP.Vk,a,b,c)};IQ.da=function(a,b,c,d,e){var f=$APP.Vk.m,h=$APP.C(a,b);c=c.m?c.m(h,d,e):c.call(null,h,d,e);return f.call($APP.Vk,a,b,c)};
102
- IQ.ua=function(a,b,c,d,e,f){var h=$APP.Vk.m,k=$APP.C(a,b);c=c.J?c.J(k,d,e,f):c.call(null,k,d,e,f);return h.call($APP.Vk,a,b,c)};IQ.B=function(a,b,c,d,e,f,h){return $APP.Vk.m(a,b,$APP.Zd(c,$APP.C(a,b),d,e,f,$APP.Ac([h])))};IQ.K=function(a){var b=$APP.t(a),c=$APP.v(a);a=$APP.t(c);var d=$APP.v(c);c=$APP.t(d);var e=$APP.v(d);d=$APP.t(e);var f=$APP.v(e);e=$APP.t(f);var h=$APP.v(f);f=$APP.t(h);h=$APP.v(h);return this.B(b,a,c,d,e,f,h)};IQ.M=6;
103
- var GQ=function GQ(a,b,c){var e=$APP.r(b);b=$APP.t(e);var f=$APP.v(e);if(f){e=$APP.Vk.m;var h=$APP.C(a,b);c=GQ.m?GQ.m(h,f,c):GQ.call(null,h,f,c);a=e.call($APP.Vk,a,b,c)}else a=$APP.Vk.m(a,b,c);return a},zQ=function zQ(a){switch(arguments.length){case 2:return zQ.j(arguments[0],arguments[1]);case 3:return zQ.m(arguments[0],arguments[1],arguments[2]);case 4:return zQ.J(arguments[0],arguments[1],arguments[2],arguments[3]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;
104
- else break;return zQ.B(arguments[0],arguments[1],arguments[2],arguments[3],4<c.length?new $APP.$b(c.slice(4),0,null):null)}};zQ.j=function(a,b){if(a instanceof $APP.ke){var c=a.state;b=b.i?b.i(c):b.call(null,c);a=YO(a,b)}else a=$APP.Am(a,b);return a};zQ.m=function(a,b,c){if(a instanceof $APP.ke){var d=a.state;b=b.j?b.j(d,c):b.call(null,d,c);a=YO(a,b)}else a=$APP.Am(a,b,c);return a};
105
- zQ.J=function(a,b,c,d){if(a instanceof $APP.ke){var e=a.state;b=b.m?b.m(e,c,d):b.call(null,e,c,d);a=YO(a,b)}else a=$APP.Am(a,b,c,d);return a};zQ.B=function(a,b,c,d,e){return a instanceof $APP.ke?YO(a,$APP.Yd(b,a.state,c,d,e)):$APP.Am(a,b,c,d,e)};zQ.K=function(a){var b=$APP.t(a),c=$APP.v(a);a=$APP.t(c);var d=$APP.v(c);c=$APP.t(d);var e=$APP.v(d);d=$APP.t(e);e=$APP.v(e);return this.B(b,a,c,d,e)};zQ.M=4;
106
- var mP=new $APP.F(null,"start-t","start-t",1829305353),eP=new $APP.F(null,"cause-id","cause-id",-1282947263),aQ=new $APP.F(null,"x-end","x-end",-1725631203),KR=new $APP.F(null,"node-count","node-count",383091297),oP=new $APP.F(null,"start-id","start-id",-456790067),pP=new $APP.F(null,"end-id","end-id",2084513705),RP=new $APP.F(null,"tmax","tmax",2006118392),fS=new $APP.F(null,"timeline","timeline",192903161),oS=new $APP.F(null,"bin-count","bin-count",1792167977),AS=new $APP.F(null,"auto-switch-import",
107
- "auto-switch-import",-809333661),QR=new $APP.F(null,"causality-needs-fit","causality-needs-fit",1728707358),FR=new $APP.F(null,"to-cy","to-cy",1542880464),ER=new $APP.F(null,"to-cx","to-cx",698995232),TR=new $APP.F(null,"scroll-top","scroll-top",-46723100),UR=new $APP.F(null,"chip-key","chip-key",644014552),QQ=new $APP.F(null,"next-component-id","next-component-id",1588977206),BQ=new $APP.F(null,"pending?","pending?",-2133618792),WQ=new $APP.F(null,"rate-limit","rate-limit",1748082022),QP=new $APP.F(null,
108
- "tmin","tmin",-39508962),cba=new $APP.F(null,"to-id","to-id",1021626465),GR=new $APP.F(null,"edges","edges",-694791395),FQ=new $APP.F(null,"next-token","next-token",1432414974),bQ=new $APP.F(null,"t-min","t-min",-488887638),jP=new $APP.F(null,"user-agent","user-agent",1220426212),cS=new $APP.F(null,"causality","causality",-712927373),kP=new $APP.F(null,"forensic?","forensic?",188264321),cP=new $APP.F(null,"tag","tag",-1290361223),BP=new $APP.F(null,"search","search",1564939822),qQ=new $APP.F(null,
109
- "session","session",1008279103),JQ=new $APP.F(null,"next-id","next-id",-224240762),AP=new $APP.F(null,"categories","categories",178386610),JR=new $APP.F(null,"causality-layout","causality-layout",-1264013405),cQ=new $APP.F(null,"t-max","t-max",-949530573),SQ=new $APP.F(null,"capacity","capacity",72689734),VR=new $APP.F(null,"recording?","recording?",-1477514924),YP=new $APP.F(null,"records","records",1326822832),AR=new $APP.F(null,"time","time",1385887882),ZP=new $APP.F(null,"dominant-cat","dominant-cat",
110
- -914257775),yS=new $APP.F(null,"lifecycle","lifecycle",341496205),xP=new $APP.F(null,"other","other",995793544),qR=new $APP.F("baredom.dev.x-trace-history.model","parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),HQ=new $APP.F(null,"new?","new?",777958557),Baa=new $APP.F(null,"max-depth","max-depth",127060793),NP=new $APP.F(null,"min-t","min-t",-1349871659),lQ=new $APP.F(null,"capped?","capped?",-65680820),cR=new $APP.F(null,"imports","imports",-1249933394),XP=new $APP.F(null,
111
- "bin-i","bin-i",791326307),lP=new $APP.F(null,"first-seen","first-seen",390191468),WR=new $APP.F(null,"import?","import?",-40157302),IR=new $APP.F(null,"cy","cy",755331060),kQ=new $APP.F(null,"children","children",-940561982),HR=new $APP.F(null,"cx","cx",1272694324),xS=new $APP.F(null,"dom","dom",-1236537922),hR=new $APP.F(null,"next-session-id","next-session-id",1944278844),$P=new $APP.F(null,"x-start","x-start",1183238797),SR=new $APP.F(null,"scroll-left","scroll-left",-211761103),sR=new $APP.F(null,
112
- "imported-at","imported-at",-1157103926),OP=new $APP.F(null,"lane-id","lane-id",2005926623),CP=new $APP.F(null,"haystack-fn","haystack-fn",1813797862),FS=new $APP.F(null,"depth","depth",1768663640),nS=new $APP.F(null,"record-id","record-id",-1468971877),iR=new $APP.F(null,"active-session-id","active-session-id",943086451),CR=new $APP.F(null,"from-cx","from-cx",-293616201),DR=new $APP.F(null,"from-cy","from-cy",1126835724),gR=new $APP.F(null,"sessions","sessions",-699316392),iP=new $APP.F(null,"exported-at",
113
- "exported-at",1661975683),dP=new $APP.F(null,"component-id","component-id",1551113783),sS=new $APP.F(null,"import-error","import-error",1672727808),zS=new $APP.F(null,"drag-depth","drag-depth",-226189617),dba=new $APP.F(null,"from-id","from-id",-106962526),YR=new $APP.F(null,"import-id","import-id",940580069),nQ=new $APP.F(null,"nodes","nodes",-2099585805),nP=new $APP.F(null,"end-t","end-t",-218701242),CQ=new $APP.F(null,"by-token","by-token",-1485378511),GS=new $APP.F(null,"next-import-id","next-import-id",
114
- 287496955),jQ=new $APP.F(null,"record","record",-779106859),SP=new $APP.F(null,"span","span",1394872991),LP=new $APP.F("baredom.dev.x-trace-history.model","document","baredom.dev.x-trace-history.model/document",-1776453896),TQ=new $APP.F(null,"components","components",-1073188942),sQ=new $APP.F(null,"import","import",-1399500709),bR=new $APP.F(null,"envelope","envelope",-236796318);var fR=$APP.tf.j($APP.Om,$APP.we),ZO=VO("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),aba=VO("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"\x3d"+$APP.P.i("raw")+"(?:\x26|$)"),wP=new $APP.N(null,4,[$APP.Tr,new $APP.rg(null,new $APP.N(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.Br,new $APP.rg(null,new $APP.N(null,1,["state/instance-field-set",null],null),null),xS,new $APP.rg(null,new $APP.N(null,2,["dom/attribute-removed",
115
- null,"dom/attribute-set",null],null),null),yS,new $APP.rg(null,new $APP.N(null,3,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/disconnected",null],null),null)],null),uP=new $APP.K(null,4,5,$APP.M,[$APP.Tr,$APP.Br,xS,yS],null),JP=new $APP.N(null,5,[$APP.Tr,"#94e2d5",$APP.Br,"#f9e2af",xS,"#fab387",yS,"#cba6f7",xP,"#6c7086"],null),iQ=function iQ(a,b){return $APP.zd(b,new $APP.Cd(null,function(){return $APP.se(function(d){return iQ.j?iQ.j(a,d):iQ.call(null,a,d)},$APP.Ac([hQ(a,
116
- b.id)]))},null))},LR=function LR(a){return $APP.ya(ES,0,$APP.oe.j(LR,kQ.i(a)))+1},MR=function MR(a){return $APP.Pc(kQ.i(a))?0:$APP.Vd($APP.Gm,$APP.oe.j(MR,kQ.i(a)))+1},NR=function NR(a,b,c){var e=jQ.i(a),f=kQ.i(a);a=30+b*56;if($APP.Pc(f))return new $APP.K(null,2,5,$APP.M,[new $APP.N(null,6,[$APP.ar,e.id,jQ,e,HR,c+70,IR,a,FS,b,kQ,$APP.we],null),c+158],null);f=$APP.ya(function(m,q){var u=$APP.B(m,0,null);m=$APP.B(m,1,null);var x=b+1;m=NR.m?NR.m(q,x,m):NR.call(null,q,x,m);q=$APP.B(m,0,null);m=$APP.B(m,
117
- 1,null);return new $APP.K(null,2,5,$APP.M,[$APP.wd.j(u,q),m],null)},new $APP.K(null,2,5,$APP.M,[$APP.we,c],null),f);c=$APP.B(f,0,null);f=$APP.B(f,1,null);var h=HR.i($APP.t(c)),k=HR.i($APP.Ec(c));return new $APP.K(null,2,5,$APP.M,[new $APP.N(null,6,[$APP.ar,e.id,jQ,e,HR,(h+k)/2,IR,a,FS,b,kQ,c],null),f],null)},OR=function OR(a){return $APP.tf.j(new $APP.K(null,1,5,$APP.M,[$APP.Em.j(a,kQ)],null),$APP.se(OR,$APP.Ac([kQ.i(a)])))},PR=function PR(a){var c=$APP.ar.i(a),d=HR.i(a),e=IR.i(a);return $APP.Oe($APP.se(function(f){return $APP.zd(new $APP.N(null,
118
- 6,[dba,c,CR,d,DR,e,cba,$APP.ar.i(f),ER,HR.i(f),FR,IR.i(f)],null),PR.i?PR.i(f):PR.call(null,f))},$APP.Ac([kQ.i(a)])))};var tP=$APP.le($APP.Yf([kP,SQ,WQ,JQ,$APP.Qn,cR,YP,TQ,iR,QQ,gR,GS,hR],[!1,5E3,$APP.ce,0,!1,$APP.we,fR,$APP.ce,null,0,$APP.we,0,0])),AQ=$APP.le(new $APP.N(null,3,[FQ,0,BQ,!1,CQ,$APP.ce],null)),RQ=$APP.le($APP.we),aR=$APP.le(null),ZQ=$APP.le(!1),LQ=$APP.le(0),xQ=$APP.le([null,null]),daa=new $APP.rg(null,new $APP.N(null,3,[$APP.hi,null,$APP.ci,null,$APP.gi,null],null),null),eaa=new $APP.rg(null,new $APP.N(null,3,[$APP.qi,null,$APP.si,null,$APP.li,null],null),null),uS=function uS(a){switch(arguments.length){case 1:return uS.i(arguments[0]);
119
- case 2:return uS.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};uS.i=function(a){return uS.j(a,null)};
120
- uS.j=function(a,b){a=laa(a);var c=$APP.H(a);a=$APP.C(c,$APP.Cq);c=$APP.C(c,$APP.On);if($APP.n(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=GS.i($APP.bb(tP));b=b==null||$APP.y.j("",b)?"Import "+$APP.P.i(d):b;var e=new $APP.N(null,4,[$APP.ar,d,$APP.bj,b,sR,c,bR,a],null);zQ.j(tP,function(f){return IQ.m(IQ.J(f,cR,$APP.wd,e),GS,RO)});EQ();return d};uS.M=2;var naa=RegExp("\x26","g"),oaa=RegExp("\x3c","g"),paa=RegExp("\x3e","g"),qaa=RegExp('"',"g"),raa=RegExp("'","g"),$R=new WeakMap,Raa=new $APP.rg(null,new $APP.N(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),bba=new $APP.N(null,5,[$APP.yh,!0,$APP.Bh,[],$APP.zh,function(a){return $aa(a)},$APP.qh,function(a){var b=$APP.l(a,"__xTraceHistorySubToken");$APP.n(b)&&zQ.B(AQ,IQ,CQ,$APP.Em,$APP.Ac([b]));b=vQ(a,sS);$APP.n(b)&&typeof b==="number"&&clearTimeout(b);
121
- b=$APP.l(a,"__xTraceHistoryListeners");if($APP.n(b)){for(var c=b.length,d=0;;)if(d<c){var e=b[d];e[0].removeEventListener(e[1],e[2]);d+=1}else break;$APP.R(a,"__xTraceHistoryListeners",null)}$APP.R(a,"__xTraceHistorySubToken",null);wQ(a,sS,null);return $APP.R(a,"__xTraceHistoryMounted",null)},$APP.ph,function(){return null}],null);$APP.fa("baredom.exports.x_trace_history.init",DS);CS();export const init=DS;
84
+ $APP.P.i(FP("events",$APP.cd(b,$APP.Gt)))+$APP.P.i(FP("state",$APP.cd(b,$APP.mt)))+$APP.P.i(FP("dom",$APP.cd(b,FQ)))+$APP.P.i(FP("lifecycle",$APP.cd(b,GQ)))+"\x3cx-select data-x-th-mode size\x3d'sm'\x3e\x3coption value\x3d'timeline' selected\x3eTimeline\x3c/option\x3e\x3coption value\x3d'causality'\x3eCausality\x3c/option\x3e\x3c/x-select\x3e\x3cx-select data-x-th-axis size\x3d'sm'\x3e\x3coption value\x3d'order' selected\x3eOrder\x3c/option\x3e\x3coption value\x3d'time'\x3eTime\x3c/option\x3e\x3c/x-select\x3e\x3c/div\x3e\x3cdiv class\x3d'timeline' data-x-th-timeline tabindex\x3d'0'\x3e\x3cdiv class\x3d'lanes' data-x-th-lanes\x3e\x3c/div\x3e\x3cdiv class\x3d'svg-pane' data-x-th-svg-pane\x3e\x3c/div\x3e\x3cdiv class\x3d'tooltip' data-x-th-tooltip hidden\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'causality' data-x-th-causality tabindex\x3d'0' hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'splitter' data-x-th-splitter hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'detail' data-x-th-detail hidden\x3e\x3c/div\x3e\x3cdiv class\x3d'hint' data-x-th-hint\x3e\x3c/div\x3e\x3cdiv class\x3d'drop-overlay' data-x-th-drop-overlay hidden\x3eDrop .trace.json to import\x3c/div\x3e\x3cinput class\x3d'import-input' data-x-th-import-input type\x3d'file' accept\x3d'.json,.trace.json,application/json' /\x3e\x3c/div\x3e";
85
+ a.innerHTML=c+e.call(d,b)}return a},Bea=function(a,b){$APP.Q(a,"__xTraceHistoryShadow",b);$APP.Q(a,"__xTraceHistoryTimelineEl",b.querySelector("[data-x-th-timeline]"));$APP.Q(a,"__xTraceHistoryLanesEl",b.querySelector("[data-x-th-lanes]"));$APP.Q(a,"__xTraceHistorySvgPaneEl",b.querySelector("[data-x-th-svg-pane]"));$APP.Q(a,"__xTraceHistoryTooltipEl",b.querySelector("[data-x-th-tooltip]"));$APP.Q(a,"__xTraceHistoryCountEl",b.querySelector("[data-x-th-count]"));$APP.Q(a,"__xTraceHistoryDetailEl",b.querySelector("[data-x-th-detail]"));
86
+ $APP.Q(a,"__xTraceHistorySplitterEl",b.querySelector("[data-x-th-splitter]"));$APP.Q(a,"__xTraceHistoryHintEl",b.querySelector("[data-x-th-hint]"));$APP.Q(a,"__xTraceHistoryTagSelectEl",b.querySelector("[data-x-th-tag]"));$APP.Q(a,"__xTraceHistoryCausalityEl",b.querySelector("[data-x-th-causality]"));$APP.Q(a,"__xTraceHistoryPauseBtn",b.querySelector("[data-x-th-action\x3d'pause']"));$APP.Q(a,"__xTraceHistoryRecordBtn",b.querySelector("[data-x-th-action\x3d'record']"));$APP.Q(a,"__xTraceHistorySessionsEl",
87
+ b.querySelector("[data-x-th-sessions]"));$APP.Q(a,"__xTraceHistoryImportInput",b.querySelector("[data-x-th-import-input]"));$APP.Q(a,"__xTraceHistoryDropOverlay",b.querySelector("[data-x-th-drop-overlay]"));$APP.Q(a,"__xTraceHistoryCollapseBtn",b.querySelector("[data-x-th-action\x3d'collapse']"))},Cea=function(a,b,c,d,e,f,h,k){return[[b,"click",function(m){m=m.target;var q=m.closest("[data-x-th-action]");if($APP.n(q))switch(q.getAttribute("data-x-th-action")){case "pause":$APP.n($APP.Gp.i($APP.cb(ON)))?
88
+ iP():hP();break;case "record":oP()!=null?pP():qP();break;case "clear":$APP.Q(a,"__xTraceHistoryViewSelected",{});$APP.Q(a,"__xTraceHistoryView",$APP.Ep);nP();break;case "export":AP();break;case "import":q=$APP.l(a,"__xTraceHistoryImportInput");$APP.n(q)&&(q.value="",q.click());break;case "collapse":tQ(a)}q=m.closest("[data-x-th-import-close]");if($APP.n(q)){q=parseInt(q.getAttribute("data-x-th-import-close"),10);var u=$APP.l(a,"__xTraceHistoryView");xO(u)&&$APP.z.j(q,yO(u))&&$APP.Q(a,"__xTraceHistoryView",
89
+ $APP.Ep);vP(q)}$APP.n(m.closest("[data-x-th-import-close]"))||(q=m.closest("[data-x-th-session]"),$APP.n(q)&&(q=q.getAttribute("data-x-th-session"),q=$APP.z.j(q,"live")?$APP.Ep:q.lastIndexOf("import:",0)==0?new $APP.J(null,2,5,$APP.K,[wO,parseInt(q.substring(7),10)],null):new $APP.J(null,2,5,$APP.K,[uO,parseInt(q,10)],null),$APP.Q(a,"__xTraceHistoryView",q),oQ(a)));q=m.closest("[data-x-th-lane-tag]");if($APP.n(q)){u=q.getAttribute("data-x-th-lane-tag");q=$APP.l(a,"__xTraceHistoryFilter");var x=$APP.Kq.i(q);
90
+ u=$APP.z.j(u,x)?null:u;q=$APP.Yg.m(q,$APP.Kq,u);$APP.Q(a,"__xTraceHistoryFilter",q);q=$APP.l(a,"__xTraceHistoryTagSelectEl");$APP.n(q)&&(q.value=$APP.n(u)?u:"all");oQ(a)}q=m.closest("[data-x-th-link-id]");$APP.n(q)&&(q=q.getAttribute("data-x-th-link-id"),$APP.n(q)&&(q=parseInt(q,10),$APP.n(isNaN(q))||(jQ(a,q),oQ(a))));q=pQ(m);q=$APP.n(q)?q:qQ(m);$APP.n(q)?($APP.n(pQ(m))?m=rQ(m):$APP.n(qQ(m))?(m=m.getAttribute("data-x-th-bin-record-id"),m=$APP.n(m)?parseInt(m,10):null):m=null,q=YP(a),m=$APP.z.j(m,
91
+ q)?null:m,jQ(a,m),m=oQ(a)):m=null;return m}],[b,"select-change",function(m){var q=m.target;m=m.detail.value;q.getAttribute("data-x-th-tag")!=null?(q=$APP.Yg.m($APP.l(a,"__xTraceHistoryFilter"),$APP.Kq,$APP.z.j(m,"all")?null:m),$APP.Q(a,"__xTraceHistoryFilter",q),q=oQ(a)):q=q.getAttribute("data-x-th-mode")!=null?tea(a,m):q.getAttribute("data-x-th-axis")!=null?sea(a,m):null;return q}],[b,"x-checkbox-change",function(m){var q=m.target.getAttribute("data-x-th-cat");if(q!=null){var u=m.detail.checked;
92
+ m=$APP.l(a,"__xTraceHistoryFilter");var x=TN.i(m);x=$APP.n(x)?x:$APP.fh(PN);q=$APP.Jh.i(q);q=$APP.n(u)?$APP.Ad.j(x,q):$APP.to.j(x,q);m=$APP.Yg.m(m,TN,q);$APP.Q(a,"__xTraceHistoryFilter",m);m=oQ(a)}else m=null;return m}],[b,"x-search-field-input",function(m){var q=m.target;$APP.n($APP.n(q)?q.hasAttribute("data-x-th-search"):q)?(m=m.detail.value,m=($APP.n(m)?m:"").toLowerCase(),m=$APP.Yg.m($APP.l(a,"__xTraceHistoryFilter"),UN,$APP.z.j("",m)?null:m),$APP.Q(a,"__xTraceHistoryFilter",m),m=oQ(a)):m=null;
93
+ return m}],[c,"pointermove",function(m){return uea(a,m)}],[c,"pointerleave",function(){return $APP.l(a,"__xTraceHistoryTooltipEl").setAttribute("hidden","")}],[c,"pointerdown",function(){return c.focus()}],[k,"pointerdown",function(){return k.focus()}],[b,"keydown",function(m){return xea(a,m)}],[d,"pointerdown",function(m){return vea(a,$APP.l(a,"__xTraceHistorySvgPaneEl"),m)}],[e,"pointerdown",function(m){return yea(f,e,m)}],[h,"change",function(m){m=m.target.files;return m.length>0?DQ(a,m[0]):null}],
94
+ [b,"dragenter",function(m){if($APP.n(EQ(m))){m.preventDefault();m=$APP.l(a,"__xTraceHistoryDropOverlay");var q=zO(a,HQ);AO(a,HQ,($APP.n(q)?q:0)+1);m=m.removeAttribute("hidden")}else m=null;return m}],[b,"dragover",function(m){$APP.n(EQ(m))?(m.preventDefault(),m=m.dataTransfer,m=$APP.n(m)?m.dropEffect="copy":null):m=null;return m}],[b,"dragleave",function(m){if($APP.n(EQ(m))){m=$APP.l(a,"__xTraceHistoryDropOverlay");var q=$APP.uo.j,u=zO(a,HQ);q=q.call($APP.uo,0,($APP.n(u)?u:0)-1);AO(a,HQ,q);m=q===
95
+ 0?m.setAttribute("hidden",""):null}else m=null;return m}],[b,"drop",function(m){$APP.n(EQ(m))?(m.preventDefault(),AO(a,HQ,0),$APP.l(a,"__xTraceHistoryDropOverlay").setAttribute("hidden",""),m=m.dataTransfer,m=$APP.n(m)?m.files:null,m=$APP.n($APP.n(m)?m.length>0:m)?DQ(a,m[0]):null):m=null;return m}],[document,"keydown",function(m){var q;if(q=$APP.z.j("\\",m.key))q=m.metaKey,q=$APP.n(q)?q:m.ctrlKey,q=$APP.n(q)?$APP.p(m.altKey)&&$APP.p(m.shiftKey)&&!zQ(m.target):q;$APP.n(q)?(m.preventDefault(),m=tQ(a)):
96
+ m=null;return m}]]},Dea=function(a,b){b=Cea(a,b,$APP.l(a,"__xTraceHistoryTimelineEl"),$APP.l(a,"__xTraceHistorySvgPaneEl"),$APP.l(a,"__xTraceHistorySplitterEl"),$APP.l(a,"__xTraceHistoryDetailEl"),$APP.l(a,"__xTraceHistoryImportInput"),$APP.l(a,"__xTraceHistoryCausalityEl"));$APP.Q(a,"__xTraceHistoryListeners",b);a:{a=b.length;for(var c=0;;)if(c<a){var d=b[c];d[0].addEventListener(d[1],d[2]);c+=1}else break a}},Eea=function(a){if($APP.n($APP.l(a,"__xTraceHistoryHighlightRaf")))return null;var b=requestAnimationFrame(function(){$APP.Yi(a,
97
+ "__xTraceHistoryHighlightRaf",null);return DP(a)});return $APP.Yi(a,"__xTraceHistoryHighlightRaf",b)},Fea=function(a){function b(){return Eea(a)}var c=[[window,"scroll",b,{capture:!0,passive:!0}],[window,"resize",b,{capture:!1,passive:!0}]];$APP.Yi(a,"__xTraceHistoryHighlightListeners",c);for(var d=c.length,e=0;;)if(e<d){var f=c[e];f[0].addEventListener(f[1],f[2],f[3]);e+=1}else break},Gea=function(a,b){$APP.n($APP.l(a,"__xTraceHistoryFilter"))||$APP.Q(a,"__xTraceHistoryFilter",new $APP.M(null,3,
98
+ [$APP.Kq,null,TN,b,UN,null],null));$APP.n($APP.l(a,"__xTraceHistoryView"))||$APP.Q(a,"__xTraceHistoryView",$APP.Ep);$APP.n($APP.l(a,"__xTraceHistoryViewSelected"))||$APP.Q(a,"__xTraceHistoryViewSelected",{});$APP.n($APP.l(a,"__xTraceHistoryAxisMode"))||$APP.Q(a,"__xTraceHistoryAxisMode",$APP.lr);$APP.n($APP.l(a,"__xTraceHistoryDockMode"))||$APP.Q(a,"__xTraceHistoryDockMode",nQ);$APP.l(a,"__xTraceHistoryCollapsed")==null&&$APP.Q(a,"__xTraceHistoryCollapsed",!1);sQ(a,$APP.D($APP.l(a,"__xTraceHistoryCollapsed")))},
99
+ Hea=function(a){if($APP.n($APP.l(a,"__xTraceHistoryMounted")))return null;a.__xTraceHistoryInternal=!0;var b=CO().length;Hda(function(){var c=nda(),d=Aea(a,c);Bea(a,d);Gea(a,c);Dea(a,d);Fea(a);c=IO.i(DO.m(EO,Fda,function(){var e=$APP.l(a,"__xTraceHistoryView"),f=xP(),h=f.length;var k=zO(a,IQ);k=$APP.n(k)?k:0;h>k?(AO(a,IQ,h),$APP.z.j(e,$APP.Ep)&&CO().length===0&&$APP.Q(a,"__xTraceHistoryView",new $APP.J(null,2,5,$APP.K,[wO,f[h-1].id],null))):h<k&&AO(a,IQ,h);return oQ(a)}));$APP.Q(a,"__xTraceHistorySubToken",
100
+ c);oQ(a);return $APP.Q(a,"__xTraceHistoryMounted",!0)});return $APP.I(b,CO().length)?console.warn("[x-trace-history] dock mount produced records — internal-host suppression is leaking. ","Wrap dynamic child-component constructors in recorder/with-suppressed-recording!."):null},JQ=function(){return $APP.n(document.querySelector("x-trace-history"))?null:document.body.appendChild(document.createElement("x-trace-history"))},KQ=function(){if(zN()){var a=DO.B;var b=$APP.l(window,"BAREDOM_TRACE_HISTORY_CAPACITY");
101
+ b=typeof b==="number"&&b>0?b:5E3;var c=window,d;(d=$APP.z.j("raw",$APP.l(c,"BAREDOM_TRACE_HISTORY")))||(c=c.location.search,c=c==null?null:$APP.yh(Iea,c),d=$APP.D(c));a.call(DO,ON,$APP.Yg,WO,b,$APP.Cc([GN,d]));yN($APP.Pi,dP);yN($APP.Yh,dP);yN(OO,0);yN(VO,$APP.Ee);Kda();yN(cP,!0);a=$APP.l(window,"BareDOM");a=$APP.n(a)?a:{};a.traceHistory={records:Lda,sessions:sP,"export":Rda,download:AP,stopSession:pP,"import":CQ,pause:hP,importRecords:yP,sessionRecords:tP,startSession:qP,components:Mda,clear:nP,imports:xP,
102
+ removeImport:vP,resume:iP};window.BareDOM=a;console.log("%c[BareDOM Trace History]%c Active — see window.BareDOM.traceHistory for the API","color:#3b82f6;font-weight:bold","color:inherit")}$APP.gn();$APP.zl();$APP.jk();$APP.Hn();$APP.xi("x-trace-history",Jea);return zN()?$APP.n(document.body)?JQ():document.addEventListener("DOMContentLoaded",JQ,{once:!0}):null},LQ=function(){return KQ()},kO=function kO(a){switch(arguments.length){case 2:return kO.j(arguments[0],arguments[1]);case 3:return kO.m(arguments[0],
103
+ arguments[1],arguments[2]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return kO.B(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.ac(c.slice(3),0,null):null)}};kO.j=function(a,b){return b};kO.m=function(a,b,c){return(a.i?a.i(b):a.call(null,b))<(a.i?a.i(c):a.call(null,c))?b:c};kO.B=function(a,b,c,d){return $APP.ya(function(e,f){return kO.m(a,e,f)},kO.m(a,b,c),d)};
104
+ kO.K=function(a){var b=$APP.t(a),c=$APP.v(a);a=$APP.t(c);var d=$APP.v(c);c=$APP.t(d);d=$APP.v(d);return this.B(b,a,c,d)};kO.M=3;var MQ=function MQ(a){switch(arguments.length){case 0:return MQ.H();case 1:return MQ.i(arguments[0]);case 2:return MQ.j(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return MQ.B(arguments[0],arguments[1],2<c.length?new $APP.ac(c.slice(2),0,null):null)}};MQ.H=function(){return 0};MQ.i=function(a){return a};
105
+ MQ.j=function(a,b){return a+b};MQ.B=function(a,b,c){return $APP.ya(MQ,a+b,c)};MQ.K=function(a){var b=$APP.t(a),c=$APP.v(a);a=$APP.t(c);c=$APP.v(c);return this.B(b,a,c)};MQ.M=2;
106
+ var LO=function LO(a){switch(arguments.length){case 3:return LO.m(arguments[0],arguments[1],arguments[2]);case 4:return LO.J(arguments[0],arguments[1],arguments[2],arguments[3]);case 5:return LO.W(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return LO.va(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return LO.B(arguments[0],arguments[1],arguments[2],
107
+ arguments[3],arguments[4],arguments[5],6<c.length?new $APP.ac(c.slice(6),0,null):null)}};LO.m=function(a,b,c){var d=$APP.Yg.m,e=$APP.C(a,b);c=c.i?c.i(e):c.call(null,e);return d.call($APP.Yg,a,b,c)};LO.J=function(a,b,c,d){var e=$APP.Yg.m,f=$APP.C(a,b);c=c.j?c.j(f,d):c.call(null,f,d);return e.call($APP.Yg,a,b,c)};LO.W=function(a,b,c,d,e){var f=$APP.Yg.m,h=$APP.C(a,b);c=c.m?c.m(h,d,e):c.call(null,h,d,e);return f.call($APP.Yg,a,b,c)};
108
+ LO.va=function(a,b,c,d,e,f){var h=$APP.Yg.m,k=$APP.C(a,b);c=c.J?c.J(k,d,e,f):c.call(null,k,d,e,f);return h.call($APP.Yg,a,b,c)};LO.B=function(a,b,c,d,e,f,h){return $APP.Yg.m(a,b,$APP.ee(c,$APP.C(a,b),d,e,f,$APP.Cc([h])))};LO.K=function(a){var b=$APP.t(a),c=$APP.v(a);a=$APP.t(c);var d=$APP.v(c);c=$APP.t(d);var e=$APP.v(d);d=$APP.t(e);var f=$APP.v(e);e=$APP.t(f);var h=$APP.v(f);f=$APP.t(h);h=$APP.v(h);return this.B(b,a,c,d,e,f,h)};LO.M=6;
109
+ var JO=function JO(a,b,c){var e=$APP.r(b);b=$APP.t(e);var f=$APP.v(e);if(f){e=$APP.Yg.m;var h=$APP.C(a,b);c=JO.m?JO.m(h,f,c):JO.call(null,h,f,c);a=e.call($APP.Yg,a,b,c)}else a=$APP.Yg.m(a,b,c);return a},DO=function DO(a){switch(arguments.length){case 2:return DO.j(arguments[0],arguments[1]);case 3:return DO.m(arguments[0],arguments[1],arguments[2]);case 4:return DO.J(arguments[0],arguments[1],arguments[2],arguments[3]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;
110
+ else break;return DO.B(arguments[0],arguments[1],arguments[2],arguments[3],4<c.length?new $APP.ac(c.slice(4),0,null):null)}};DO.j=function(a,b){if(a instanceof $APP.se){var c=a.state;b=b.i?b.i(c):b.call(null,c);a=yN(a,b)}else a=$APP.oo(a,b);return a};DO.m=function(a,b,c){if(a instanceof $APP.se){var d=a.state;b=b.j?b.j(d,c):b.call(null,d,c);a=yN(a,b)}else a=$APP.oo(a,b,c);return a};
111
+ DO.J=function(a,b,c,d){if(a instanceof $APP.se){var e=a.state;b=b.m?b.m(e,c,d):b.call(null,e,c,d);a=yN(a,b)}else a=$APP.oo(a,b,c,d);return a};DO.B=function(a,b,c,d,e){return a instanceof $APP.se?yN(a,$APP.de(b,a.state,c,d,e)):$APP.oo(a,b,c,d,e)};DO.K=function(a){var b=$APP.t(a),c=$APP.v(a);a=$APP.t(c);var d=$APP.v(c);c=$APP.t(d);var e=$APP.v(d);d=$APP.t(e);e=$APP.v(e);return this.B(b,a,c,d,e)};DO.M=4;
112
+ var IN=new $APP.F(null,"start-t","start-t",1829305353),CN=new $APP.F(null,"cause-id","cause-id",-1282947263),tda=new $APP.F(null,"x-end","x-end",-1725631203),RP=new $APP.F(null,"node-count","node-count",383091297),KN=new $APP.F(null,"start-id","start-id",-456790067),LN=new $APP.F(null,"end-id","end-id",2084513705),qda=new $APP.F(null,"tmax","tmax",2006118392),nQ=new $APP.F(null,"timeline","timeline",192903161),wQ=new $APP.F(null,"bin-count","bin-count",1792167977),IQ=new $APP.F(null,"auto-switch-import",
113
+ "auto-switch-import",-809333661),XP=new $APP.F(null,"causality-needs-fit","causality-needs-fit",1728707358),MP=new $APP.F(null,"to-cy","to-cy",1542880464),LP=new $APP.F(null,"to-cx","to-cx",698995232),$P=new $APP.F(null,"scroll-top","scroll-top",-46723100),aQ=new $APP.F(null,"chip-key","chip-key",644014552),UO=new $APP.F(null,"next-component-id","next-component-id",1588977206),FO=new $APP.F(null,"pending?","pending?",-2133618792),$O=new $APP.F(null,"rate-limit","rate-limit",1748082022),hO=new $APP.F(null,
114
+ "tmin","tmin",-39508962),Kea=new $APP.F(null,"to-id","to-id",1021626465),NP=new $APP.F(null,"edges","edges",-694791395),IO=new $APP.F(null,"next-token","next-token",1432414974),uda=new $APP.F(null,"t-min","t-min",-488887638),FN=new $APP.F(null,"user-agent","user-agent",1220426212),iQ=new $APP.F(null,"causality","causality",-712927373),GN=new $APP.F(null,"forensic?","forensic?",188264321),UN=new $APP.F(null,"search","search",1564939822),uO=new $APP.F(null,"session","session",1008279103),MO=new $APP.F(null,
115
+ "next-id","next-id",-224240762),TN=new $APP.F(null,"categories","categories",178386610),QP=new $APP.F(null,"causality-layout","causality-layout",-1264013405),vda=new $APP.F(null,"t-max","t-max",-949530573),WO=new $APP.F(null,"capacity","capacity",72689734),bQ=new $APP.F(null,"recording?","recording?",-1477514924),mO=new $APP.F(null,"records","records",1326822832),HP=new $APP.F(null,"time","time",1385887882),nO=new $APP.F(null,"dominant-cat","dominant-cat",-914257775),GQ=new $APP.F(null,"lifecycle",
116
+ "lifecycle",341496205),QN=new $APP.F(null,"other","other",995793544),uP=new $APP.F("baredom.dev.x-trace-history.model","parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),KO=new $APP.F(null,"new?","new?",777958557),fea=new $APP.F(null,"max-depth","max-depth",127060793),fO=new $APP.F(null,"min-t","min-t",-1349871659),sO=new $APP.F(null,"capped?","capped?",-65680820),gP=new $APP.F(null,"imports","imports",-1249933394),lO=new $APP.F(null,"bin-i","bin-i",791326307),HN=new $APP.F(null,
117
+ "first-seen","first-seen",390191468),cQ=new $APP.F(null,"import?","import?",-40157302),PP=new $APP.F(null,"cy","cy",755331060),rO=new $APP.F(null,"children","children",-940561982),OP=new $APP.F(null,"cx","cx",1272694324),FQ=new $APP.F(null,"dom","dom",-1236537922),lP=new $APP.F(null,"next-session-id","next-session-id",1944278844),oO=new $APP.F(null,"x-start","x-start",1183238797),ZP=new $APP.F(null,"scroll-left","scroll-left",-211761103),wP=new $APP.F(null,"imported-at","imported-at",-1157103926),
118
+ gO=new $APP.F(null,"lane-id","lane-id",2005926623),VN=new $APP.F(null,"haystack-fn","haystack-fn",1813797862),NQ=new $APP.F(null,"depth","depth",1768663640),vQ=new $APP.F(null,"record-id","record-id",-1468971877),mP=new $APP.F(null,"active-session-id","active-session-id",943086451),JP=new $APP.F(null,"from-cx","from-cx",-293616201),KP=new $APP.F(null,"from-cy","from-cy",1126835724),kP=new $APP.F(null,"sessions","sessions",-699316392),EN=new $APP.F(null,"exported-at","exported-at",1661975683),BN=new $APP.F(null,
119
+ "component-id","component-id",1551113783),AQ=new $APP.F(null,"import-error","import-error",1672727808),HQ=new $APP.F(null,"drag-depth","drag-depth",-226189617),Lea=new $APP.F(null,"from-id","from-id",-106962526),dQ=new $APP.F(null,"import-id","import-id",940580069),tO=new $APP.F(null,"nodes","nodes",-2099585805),JN=new $APP.F(null,"end-t","end-t",-218701242),GO=new $APP.F(null,"by-token","by-token",-1485378511),OQ=new $APP.F(null,"next-import-id","next-import-id",287496955),qO=new $APP.F(null,"record",
120
+ "record",-779106859),iO=new $APP.F(null,"span","span",1394872991),dO=new $APP.F("baredom.dev.x-trace-history.model","document","baredom.dev.x-trace-history.model/document",-1776453896),XO=new $APP.F(null,"components","components",-1073188942),wO=new $APP.F(null,"import","import",-1399500709),fP=new $APP.F(null,"envelope","envelope",-236796318);var jP=$APP.If.j($APP.Co,$APP.Ee),ida=xN("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),Iea=xN("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"\x3d"+$APP.P.i("raw")+"(?:\x26|$)"),oda=new $APP.M(null,4,[$APP.Gt,new $APP.ah(null,new $APP.M(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.mt,new $APP.ah(null,new $APP.M(null,1,["state/instance-field-set",null],null),null),FQ,new $APP.ah(null,new $APP.M(null,2,["dom/attribute-removed",
121
+ null,"dom/attribute-set",null],null),null),GQ,new $APP.ah(null,new $APP.M(null,3,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/disconnected",null],null),null)],null),PN=new $APP.J(null,4,5,$APP.K,[$APP.Gt,$APP.mt,FQ,GQ],null),bO=new $APP.M(null,5,[$APP.Gt,"#94e2d5",$APP.mt,"#f9e2af",FQ,"#fab387",GQ,"#cba6f7",QN,"#6c7086"],null),pO=function pO(a,b){return $APP.Dd(b,new $APP.Gd(null,function(){return $APP.Ae(function(d){return pO.j?pO.j(a,d):pO.call(null,a,d)},$APP.Cc([Ada(a,
122
+ b.id)]))},null))},SP=function SP(a){return $APP.ya(MQ,0,$APP.we.j(SP,rO.i(a)))+1},TP=function TP(a){return $APP.Rc(rO.i(a))?0:$APP.ae($APP.uo,$APP.we.j(TP,rO.i(a)))+1},UP=function UP(a,b,c){var e=qO.i(a),f=rO.i(a);a=30+b*56;if($APP.Rc(f))return new $APP.J(null,2,5,$APP.K,[new $APP.M(null,6,[$APP.Ms,e.id,qO,e,OP,c+70,PP,a,NQ,b,rO,$APP.Ee],null),c+158],null);f=$APP.ya(function(m,q){var u=$APP.B(m,0,null);m=$APP.B(m,1,null);var x=b+1;m=UP.m?UP.m(q,x,m):UP.call(null,q,x,m);q=$APP.B(m,0,null);m=$APP.B(m,
123
+ 1,null);return new $APP.J(null,2,5,$APP.K,[$APP.Ad.j(u,q),m],null)},new $APP.J(null,2,5,$APP.K,[$APP.Ee,c],null),f);c=$APP.B(f,0,null);f=$APP.B(f,1,null);var h=OP.i($APP.t(c)),k=OP.i($APP.Gc(c));return new $APP.J(null,2,5,$APP.K,[new $APP.M(null,6,[$APP.Ms,e.id,qO,e,OP,(h+k)/2,PP,a,NQ,b,rO,c],null),f],null)},VP=function VP(a){return $APP.If.j(new $APP.J(null,1,5,$APP.K,[$APP.so.j(a,rO)],null),$APP.Ae(VP,$APP.Cc([rO.i(a)])))},WP=function WP(a){var c=$APP.Ms.i(a),d=OP.i(a),e=PP.i(a);return $APP.$e($APP.Ae(function(f){return $APP.Dd(new $APP.M(null,
124
+ 6,[Lea,c,JP,d,KP,e,Kea,$APP.Ms.i(f),LP,OP.i(f),MP,PP.i(f)],null),WP.i?WP.i(f):WP.call(null,f))},$APP.Cc([rO.i(a)])))};var ON=$APP.te($APP.Eg([GN,WO,$O,MO,$APP.Gp,gP,mO,XO,mP,UO,kP,OQ,lP],[!1,5E3,$APP.ie,0,!1,$APP.Ee,jP,$APP.ie,null,0,$APP.Ee,0,0])),EO=$APP.te(new $APP.M(null,3,[IO,0,FO,!1,GO,$APP.ie],null)),VO=$APP.te($APP.Ee),eP=$APP.te(null),cP=$APP.te(!1),OO=$APP.te(0),BO=$APP.te([null,null]),Ida=new $APP.ah(null,new $APP.M(null,3,[$APP.Wi,null,$APP.Qi,null,$APP.Vi,null],null),null),Jda=new $APP.ah(null,new $APP.M(null,3,[$APP.ej,null,$APP.gj,null,$APP.$i,null],null),null),CQ=function CQ(a){switch(arguments.length){case 1:return CQ.i(arguments[0]);
125
+ case 2:return CQ.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};CQ.i=function(a){return CQ.j(a,null)};
126
+ CQ.j=function(a,b){a=Qda(a);var c=$APP.G(a);a=$APP.C(c,$APP.os);c=$APP.C(c,$APP.Dp);if($APP.n(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=OQ.i($APP.cb(ON));b=b==null||$APP.z.j("",b)?"Import "+$APP.P.i(d):b;var e=new $APP.M(null,4,[$APP.Ms,d,$APP.Rj,b,wP,c,fP,a],null);DO.j(ON,function(f){return LO.m(LO.J(f,gP,$APP.Ad,e),OQ,vN)});HO();return d};CQ.M=2;var mQ,PQ=window.matchMedia;mQ=$APP.n(PQ)?PQ.call(window,"(prefers-reduced-motion: reduce)"):null;var Sda=RegExp("\x26","g"),Tda=RegExp("\x3c","g"),Uda=RegExp("\x3e","g"),Vda=RegExp('"',"g"),Wda=RegExp("'","g"),fQ=new WeakMap,wea=new $APP.ah(null,new $APP.M(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),Jea=new $APP.M(null,5,[$APP.ei,!0,$APP.hi,[],$APP.fi,function(a){return Hea(a)},$APP.ci,function(a){var b=$APP.l(a,"__xTraceHistorySubToken");$APP.n(b)&&DO.B(EO,LO,GO,$APP.so,$APP.Cc([b]));b=zO(a,AQ);$APP.n(b)&&typeof b==="number"&&clearTimeout(b);
127
+ b=$APP.l(a,"__xTraceHistoryListeners");if($APP.n(b)){for(var c=b.length,d=0;;)if(d<c){var e=b[d];e[0].removeEventListener(e[1],e[2]);d+=1}else break;$APP.Q(a,"__xTraceHistoryListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightListeners");if($APP.n(b)){c=b.length;for(d=0;;)if(d<c)e=b[d],e[0].removeEventListener(e[1],e[2],e[3]),d+=1;else break;$APP.Yi(a,"__xTraceHistoryHighlightListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightRaf");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Yi(a,"__xTraceHistoryHighlightRaf",
128
+ null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.n(b)&&$APP.mk(b);$APP.Yi(a,"__xTraceHistoryHighlightLayer",null);$APP.Yi(a,"__xTraceHistoryHighlightBox",null);$APP.Yi(a,"__xTraceHistoryHighlightCid",null);$APP.Q(a,"__xTraceHistorySubToken",null);AO(a,AQ,null);return $APP.Q(a,"__xTraceHistoryMounted",null)},$APP.bi,function(){return null}],null);$APP.fa("baredom.exports.x_trace_history.init",LQ);KQ();export const init=LQ;