@vanelsas/baredom 3.0.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 (136) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/custom-elements.json +3673 -2681
  3. package/dist/baredom.d.ts +91 -86
  4. package/dist/base.js +595 -541
  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 +14 -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 -13
  17. package/dist/x-card.d.ts +1 -1
  18. package/dist/x-card.js +7 -7
  19. package/dist/x-carousel.d.ts +3 -0
  20. package/dist/x-carousel.js +35 -33
  21. package/dist/x-chart.js +47 -47
  22. package/dist/x-checkbox.js +1 -1
  23. package/dist/x-chip.js +1 -1
  24. package/dist/x-code.d.ts +48 -0
  25. package/dist/x-code.js +28 -0
  26. package/dist/x-collapse.d.ts +1 -0
  27. package/dist/x-collapse.js +11 -10
  28. package/dist/x-color-picker.js +46 -45
  29. package/dist/x-combobox.d.ts +2 -0
  30. package/dist/x-combobox.js +30 -26
  31. package/dist/x-command-palette.d.ts +3 -0
  32. package/dist/x-command-palette.js +28 -26
  33. package/dist/x-confetti.js +24 -24
  34. package/dist/x-container.js +5 -6
  35. package/dist/x-context-menu.d.ts +4 -0
  36. package/dist/x-context-menu.js +20 -20
  37. package/dist/x-copy.js +1 -21
  38. package/dist/x-currency-field.d.ts +2 -0
  39. package/dist/x-currency-field.js +24 -23
  40. package/dist/x-date-picker.d.ts +3 -0
  41. package/dist/x-date-picker.js +39 -42
  42. package/dist/x-divider.js +10 -9
  43. package/dist/x-drawer.js +11 -10
  44. package/dist/x-dropdown.d.ts +3 -0
  45. package/dist/x-dropdown.js +12 -11
  46. package/dist/x-fieldset.js +6 -5
  47. package/dist/x-file-download.js +7 -7
  48. package/dist/x-file-upload.d.ts +2 -0
  49. package/dist/x-file-upload.js +23 -22
  50. package/dist/x-form-field.js +15 -15
  51. package/dist/x-form.d.ts +4 -0
  52. package/dist/x-form.js +10 -9
  53. package/dist/x-gaussian-blur.js +13 -12
  54. package/dist/x-grid.js +6 -7
  55. package/dist/x-i18n-provider.js +7 -7
  56. package/dist/x-i18n.js +4 -4
  57. package/dist/x-icon.js +7 -7
  58. package/dist/x-image.js +17 -17
  59. package/dist/x-kbd.js +16 -16
  60. package/dist/x-kinetic-canvas.js +26 -25
  61. package/dist/x-kinetic-font.js +27 -27
  62. package/dist/x-kinetic-typography.js +35 -33
  63. package/dist/x-liquid-dock.js +34 -38
  64. package/dist/x-liquid-fill.js +42 -45
  65. package/dist/x-liquid-glass.js +41 -47
  66. package/dist/x-menu-item.js +8 -8
  67. package/dist/x-menu.js +10 -11
  68. package/dist/x-metaball-cursor.js +23 -26
  69. package/dist/x-modal.js +12 -11
  70. package/dist/x-morph-stack.d.ts +4 -0
  71. package/dist/x-morph-stack.js +37 -37
  72. package/dist/x-multi-combobox.js +36 -36
  73. package/dist/x-navbar.js +15 -12
  74. package/dist/x-neural-glow.js +30 -33
  75. package/dist/x-notification-center.d.ts +2 -0
  76. package/dist/x-notification-center.js +9 -9
  77. package/dist/x-organic-divider.js +18 -17
  78. package/dist/x-organic-progress.js +35 -37
  79. package/dist/x-organic-shape.js +14 -13
  80. package/dist/x-otp-input.js +22 -22
  81. package/dist/x-pagination.js +14 -15
  82. package/dist/x-particle-button.js +51 -51
  83. package/dist/x-popover.d.ts +3 -0
  84. package/dist/x-popover.js +27 -25
  85. package/dist/x-progress-circle.d.ts +3 -0
  86. package/dist/x-progress-circle.js +9 -9
  87. package/dist/x-progress.js +8 -10
  88. package/dist/x-proximity-list.js +20 -20
  89. package/dist/x-radio.js +11 -11
  90. package/dist/x-range-slider.d.ts +51 -0
  91. package/dist/x-range-slider.js +29 -0
  92. package/dist/x-rating.d.ts +49 -0
  93. package/dist/x-rating.js +24 -0
  94. package/dist/x-ripple-effect.js +10 -11
  95. package/dist/x-scroll-parallax.js +17 -18
  96. package/dist/x-scroll-stack.js +16 -17
  97. package/dist/x-scroll-story.js +33 -34
  98. package/dist/x-scroll-timeline.js +46 -45
  99. package/dist/x-scroll.d.ts +3 -0
  100. package/dist/x-scroll.js +38 -40
  101. package/dist/x-search-field.d.ts +2 -0
  102. package/dist/x-search-field.js +1 -1
  103. package/dist/x-select.js +1 -1
  104. package/dist/x-sidebar.js +18 -17
  105. package/dist/x-skeleton-group.js +12 -12
  106. package/dist/x-skeleton.js +1 -1
  107. package/dist/x-slider.js +16 -15
  108. package/dist/x-soft-body.js +20 -22
  109. package/dist/x-spacer.js +4 -4
  110. package/dist/x-spinner.js +4 -4
  111. package/dist/x-splash.js +12 -13
  112. package/dist/x-split-pane.d.ts +44 -0
  113. package/dist/x-split-pane.js +16 -0
  114. package/dist/x-spotlight-card.js +12 -12
  115. package/dist/x-stat.js +10 -10
  116. package/dist/x-stepper.js +13 -14
  117. package/dist/x-switch.js +11 -10
  118. package/dist/x-tab.js +7 -7
  119. package/dist/x-table-cell.js +21 -20
  120. package/dist/x-table-row.js +8 -8
  121. package/dist/x-table.d.ts +32 -32
  122. package/dist/x-table.js +13 -12
  123. package/dist/x-tabs.js +11 -11
  124. package/dist/x-text-area.js +19 -19
  125. package/dist/x-theme.js +25 -25
  126. package/dist/x-timeline-item.js +20 -20
  127. package/dist/x-timeline.js +8 -8
  128. package/dist/x-toast.d.ts +1 -0
  129. package/dist/x-toast.js +22 -22
  130. package/dist/x-toaster.js +7 -8
  131. package/dist/x-tooltip.d.ts +2 -0
  132. package/dist/x-tooltip.js +12 -12
  133. package/dist/x-trace-history.js +127 -117
  134. package/dist/x-typography.js +9 -9
  135. package/dist/x-welcome-tour.js +63 -61
  136. package/package.json +29 -2
@@ -1,118 +1,128 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var yM=function(a,b,c){for(var d=$APP.t(a.$b),e=null,f=0,h=0;;)if(h<f){var l=e.F(null,h),m=$APP.Gc(l,0,null);l=$APP.Gc(l,1,null);l.J?l.J(m,a,b,c):l.call(null,m,a,b,c);h+=1}else if(d=$APP.t(d))$APP.Wc(d)?(e=$APP.Ab(d),d=$APP.Bb(d),m=e,f=$APP.y(e),e=m):(e=$APP.u(d),m=$APP.Gc(e,0,null),l=$APP.Gc(e,1,null),l.J?l.J(m,a,b,c):l.call(null,m,a,b,c),d=$APP.w(d),e=null,f=0),h=0;else break},zM=function(a,b){const c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},AM=function(a,b){if(a!=null&&a.xc!=null)a=a.xc(a,
3
- b);else{var c=AM[$APP.aa(a==null?null:a)];if(c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else if(c=AM._,c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else throw $APP.ta("IReset.-reset!",a);}return a},BM=function(a){return a+1},CM=function(a){return a-1},DM=function(a,b){return $APP.dd(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)},EM=function(a,b){return DM(a,b)},FM=function(a){if(a instanceof RegExp)return a;var b=$APP.Hg(/^\(\?([idmsux]*)\)/,
4
- a),c=$APP.Gc(b,0,null);b=$APP.Gc(b,1,null);return new RegExp(a.substring(c==null?0:c.length),$APP.n(b)?b:"")},GM=function(a){return $APP.Nd($APP.xa(function(b,c){return $APP.Pd(b,c,$APP.Hc(b,c,0)+1)},$APP.tb($APP.de),a))},HM=function(a){return new $APP.M(null,2,5,$APP.N,[$APP.ne(200,a),$APP.oe(200,a)],null)},IM=function(a,b){if(a instanceof $APP.le){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&&yM(a,c,b);
5
- return b}return AM(a,b)},KM=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.Hg(JM,b);return $APP.D(b)||$APP.k(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.A.j("raw",$APP.k(a,"BAREDOM_TRACE_HISTORY"))},LM=function(a){try{return a==null?null:$APP.$l(a)}catch(b){try{return""+$APP.V.i(a)}catch(c){return"(unprintable)"}}},PM=function(a,b,c){a=$APP.G(a);var d=$APP.C(a,$APP.Q),e=$APP.C(a,MM),f=$APP.C(a,NM),h=$APP.C(a,OM);var l=$APP.Bd(d);l=$APP.n(l)?""+$APP.V.i(l)+"/"+$APP.V.i($APP.yg(d)):$APP.yg(d);
6
- b={schemaVersion:1,id:b,t:c,type:l,tag:e,componentId:f,causeId:h};switch(d instanceof $APP.F?d.ga:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return c=$APP.Kh.i(a),b.eventName=c,c=LM($APP.U.i(a)),b.detail=c,c=$APP.D($APP.Lh.i(a)),b.cancelable=c,a=$APP.D($APP.Mh.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.Dh.i(a),b.field=c,a=LM($APP.Eh.i(a)),b.value=a,b;case "dom/attribute-set":return c=$APP.wh.i(a),b.attribute=c,a=$APP.Eh.i(a),
7
- b.value=a,b;case "dom/attribute-removed":return a=$APP.wh.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.wh.i(a),b.attribute=c,c=$APP.xh.i(a),b.oldValue=c,a=$APP.yh.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":return b;default:return b}},QM=function(a){a=""+$APP.V.i(a);return a.length<2?"0"+$APP.V.i(a):a},RM=function(a,b){return $APP.sf.m($APP.de,$APP.ve(function(c){var d=$APP.Gc(c,0,null);$APP.Gc(c,1,null);return $APP.$c(b,d)}),a)},$M=function(a,
8
- b,c,d){var e=$APP.G(d);d=$APP.C(e,SM);var f=$APP.C(e,$APP.Up),h=$APP.C(e,TM);e=$APP.C(e,UM);a:{var l=a.length;for(var m=0,q=$APP.tb($APP.qg);;){if(m>=l){l=$APP.vb(q);break a}var r=a[m].componentId;m+=1;q=r!=null?$APP.ub(q,r):q}l=void 0}l=RM(b,l);b=$APP.D(e);e={};l=$APP.t(l);m=null;for(r=q=0;;)if(r<q){var v=m.F(null,r),x=$APP.Gc(v,0,null),z=$APP.Gc(v,1,null);v=e;x=""+$APP.V.i(x);z={tag:MM.i(z),firstSeen:VM.i(z)};v[x]=z;r+=1}else if(l=$APP.t(l))$APP.Wc(l)?(q=$APP.Ab(l),l=$APP.Bb(l),m=q,q=$APP.y(q)):
9
- (m=$APP.u(l),q=$APP.Gc(m,0,null),r=$APP.Gc(m,1,null),m=e,q=""+$APP.V.i(q),r={tag:MM.i(r),firstSeen:VM.i(r)},m[q]=r,l=$APP.w(l),m=null,q=0),r=0;else break;l=[];c=$APP.t(c);m=null;for(r=q=0;;)if(r<q){v=m.F(null,r);var B=$APP.G(v);v=$APP.C(B,$APP.Pp);x=$APP.C(B,$APP.Z);z=$APP.C(B,WM);var E=$APP.C(B,XM),H=$APP.C(B,YM);B=$APP.C(B,ZM);l.push({id:v,label:x,startT:z,endT:E,startId:H,endId:B});r+=1}else if(c=$APP.t(c))$APP.Wc(c)?(q=$APP.Ab(c),c=$APP.Bb(c),m=q,q=$APP.y(q)):(m=$APP.u(c),z=$APP.G(m),m=$APP.C(z,
10
- $APP.Pp),q=$APP.C(z,$APP.Z),r=$APP.C(z,WM),v=$APP.C(z,XM),x=$APP.C(z,YM),z=$APP.C(z,ZM),l.push({id:m,label:q,startT:r,endT:v,startId:x,endId:z}),c=$APP.w(c),m=null,q=0),r=0;else break;return{schemaVersion:1,exportedAt:d,origin:f,userAgent:h,forensic:b,components:e,sessions:l,records:a}},aN=function(a){if($APP.qa(a)){if(typeof a.schemaVersion!=="number")return new $APP.O(null,1,[$APP.Nm,"Envelope is missing schemaVersion."],null);if($APP.I(1,a.schemaVersion))return new $APP.O(null,1,[$APP.Nm,"Schema version mismatch: expected "+
11
- $APP.V.i(1)+", got "+$APP.V.i(a.schemaVersion)+"."],null);if($APP.p($APP.pa(a.records)))return new $APP.O(null,1,[$APP.Nm,"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.qa(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.O(null,1,[$APP.qp,a],null):new $APP.O(null,1,[$APP.Nm,"Record at index "+$APP.V.i(b)+" is missing required fields (id, t, type)."],
12
- null)}return new $APP.O(null,1,[$APP.Nm,"Envelope is not a JSON object."],null)},dN=function(){var a=UM.i($APP.ab(bN));return $APP.n(a)?$APP.vg(cN):$APP.Fl.j($APP.vg(cN),$APP.pq)},gN=function(a){var b=$APP.ge(function(c){var d=$APP.Gc(c,0,null);c=$APP.Gc(c,1,null);return $APP.$c(c,a)?d:null},eN);return $APP.n(b)?b:fN},hN=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.n(b)?b.toLowerCase():""},lN=function(a,b){var c=$APP.G(b),d=$APP.C(c,MM),e=$APP.C(c,iN);b=$APP.C(c,jN);c=$APP.Hc(c,
13
- kN,hN);if(d=d==null||$APP.A.j("",d)||$APP.A.j("all",d)||$APP.A.j(d,a.tag)){if(e=e==null||$APP.$c(e,gN(a.type)))e=b==null||$APP.A.j("",b)||!((c.i?c.i(a):c.call(null,a)).indexOf(b)<0);d=e}return d},mN=function(a,b){return $APP.Qe(EM(function(c){return c.t},$APP.we(function(c){return lN(c,b)},$APP.zc(a))))},nN=function(a,b){return typeof b==="number"?a.find(function(c){return $APP.A.j(b,c.id)}):null},oN=function(a){if(a!=null)try{var b=JSON.stringify(a),c=""+$APP.V.i(b);return c.length<=60?c:""+$APP.V.i(c.substring(0,
14
- 60))+"…"}catch(d){return"(unstringifiable)"}else return null},pN=function(a){switch(a.type){case "event/dispatch":return""+$APP.V.i(a.eventName)+$APP.V.i(function(){var b=oN(a.detail);return $APP.n(b)?" "+$APP.V.i(b):null}());case "event/dispatch-cancelable":return""+$APP.V.i(a.eventName)+$APP.V.i($APP.n(a.defaultPrevented)?" (prevented)":null)+$APP.V.i(function(){var b=oN(a.detail);return $APP.n(b)?" "+$APP.V.i(b):null}());case "event/dispatch-document":return""+$APP.V.i(a.eventName)+$APP.V.i(function(){var b=
15
- oN(a.detail);return $APP.n(b)?" "+$APP.V.i(b):null}());case "state/instance-field-set":return""+$APP.V.i(a.field)+" \x3d "+$APP.V.i(function(){var b=oN(a.value);return $APP.n(b)?b:"null"}());case "dom/attribute-set":return""+$APP.V.i(a.attribute)+"\x3d"+$APP.V.i($APP.Yg($APP.zc([a.value])));case "dom/attribute-removed":return""+$APP.V.i(a.attribute)+" removed";case "lifecycle/connected":return"connected";case "lifecycle/disconnected":return"disconnected";case "lifecycle/attribute-changed":return""+
16
- $APP.V.i(a.attribute)+": "+$APP.V.i($APP.Yg($APP.zc([a.oldValue])))+" → "+$APP.V.i($APP.Yg($APP.zc([a.newValue])));default:return"("+$APP.V.i(a.type)+")"}},qN=function(a){if(typeof a!=="number")return"";if(a<1E3)return""+$APP.V.i(a.toFixed(0))+"ms";if(a<6E4)return""+$APP.V.i((a/1E3).toFixed(3))+"s";var b=$APP.qd(a,6E4)/1E3;return""+$APP.V.i(Math.floor(a/6E4))+"m"+$APP.V.i(b.toFixed(1))+"s"},sN=function(a){a=gN(a.type);return $APP.C(rN,$APP.n(a)?a:fN)},uN=function(a){a=a.componentId;return $APP.n(a)?
17
- a:tN},xN=function(a){return $APP.Qe(EM(vN,$APP.pe.j(function(b){var c=$APP.Gc(b,0,null);b=$APP.Gc(b,1,null);var d=$APP.u(b);return new $APP.O(null,3,[wN,c,MM,d.tag,vN,$APP.Wd($APP.Hl,$APP.pe.j(function(e){return e.t},b))],null)},$APP.fh(uN,a))))},BN=function(a){if($APP.t(a)){var b=$APP.pe.j(function(c){return c.t},a);a=$APP.Wd($APP.Hl,b);b=$APP.Wd($APP.Gl,b);return new $APP.O(null,3,[yN,a,zN,b,AN,$APP.Gl.j(1,b-a)],null)}return null},DN=function(a,b){return $APP.t(a)?$APP.Xd(CN,function(c){return Math.abs(c.t-
18
- b)},a):null},EN=function(a){if($APP.t(a)){var b=GM($APP.pe.j(function(d){return gN(d.type)},a)),c=$APP.Wd($APP.Gl,$APP.mg(b));a=$APP.ge(function(d){return $APP.A.j(c,$APP.C(b,d))?d:null},cN);return $APP.n(a)?a:fN}return null},MN=function(a,b){a=$APP.fh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/4)},a);return $APP.Qe(EM(FN,$APP.pe.j(function(c){var d=$APP.Gc(c,0,null),e=$APP.Gc(c,1,null);c=$APP.pe.j(function(f){return f.t},e);e=$APP.Qe(EM(function(f){return f.id},e));return new $APP.O(null,
19
- 7,[FN,d,GN,e,HN,EN(e),IN,d*4,JN,(d+1)*4,KN,$APP.Wd($APP.Hl,c),LN,$APP.Wd($APP.Gl,c)],null)},a)))},NN=function(a){return $APP.ge(function(b){return $APP.y(GN.i(b))>3},a)},ON=function(a){return $APP.t(a)?$APP.Wd($APP.Gl,$APP.pe.j(function(b){return $APP.y(GN.i(b))},a)):0},PN=function(a,b){var c=b.id;a=EM(function(d){return d.t},$APP.we(function(d){return $APP.A.j(c,d.causeId)},$APP.zc(a)));return new $APP.O(null,2,[$APP.kr,$APP.y(a),GN,$APP.Qe($APP.ne(50,a))],null)},QN=function(a,b){return $APP.Qe(EM(function(c){return c.id},
20
- $APP.we(function(c){return $APP.A.j(b,c.causeId)},$APP.zc(a))))},VN=function(a,b){var c=HM(RN(a,b));a=$APP.Gc(c,0,null);c=$APP.Gc(c,1,null);var d=$APP.fh(function(e){return e.causeId},a);return $APP.Dk.m(function h(f){var l=f.id;l=d.i?d.i(l):d.call(null,l);return new $APP.O(null,2,[SN,f,TN,$APP.ze(h,l)],null)}(b),UN,$APP.D($APP.t(c)))},XN=function(a,b){return typeof b==="number"?$APP.ge(function(c){return $APP.A.j(b,$APP.Pp.i(c))?c:null},WN.i(a)):null},YN=function(a,b,c,d){b===0?c="No records yet — interact with components to start tracing.":
21
- a===0?c=""+$APP.V.i(b)+" "+$APP.V.i($APP.A.j(1,b)?"record":"records")+" · all hidden by filter":(a=""+$APP.V.i(a)+$APP.V.i($APP.I(a,b)?" of "+$APP.V.i(b):null)+" "+$APP.V.i($APP.A.j(1,a)?"record":"records")+" · "+$APP.V.i(d)+" "+$APP.V.i($APP.A.j(1,d)?"lane":"lanes"),b=$APP.V,d=b.i,c=AN.i(c),c=$APP.n(c)?" · spanning "+$APP.V.i(qN(c)):null,c=a+d.call(b,c));return c},$N=function(a){return $APP.Vc(a)&&$APP.A.j(ZN,$APP.u(a))},bO=function(a){return $APP.Vc(a)&&$APP.A.j(aO,$APP.u(a))},cO=function(a){return $APP.Vc(a)&&
22
- ($APP.A.j(ZN,$APP.u(a))||$APP.A.j(aO,$APP.u(a)))?$APP.Cc(a):null},dO=function(a,b){a=$APP.k(a,"__xTraceHistoryUiState");return $APP.n(a)?(b=$APP.k(a,$APP.yg(b)),void 0===b?null:b):null},eO=function(a,b,c){var d=$APP.k(a,"__xTraceHistoryUiState");d=$APP.n(d)?d:{};b=$APP.yg(b);d[b]=c;a.__xTraceHistoryUiState=d;return null},gO=function(){var a=GN.i($APP.ab(bN)),b=$APP.ab(fO),c=b[1];if(b[0]===a)return c;b=$APP.$l($APP.Qe(a));IM(fO,[a,b]);return b},lO=function(){var a=hO.J(iO,$APP.Dk,jO,!1);a=$APP.G(a);
23
- a=$APP.C(a,kO);a=$APP.t(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.F(null,d);$APP.Gc(e,0,null);e=$APP.Gc(e,1,null);try{e.H?e.H():e.call(null)}catch(f){}d+=1}else if(a=$APP.t(a)){if($APP.Wc(a))c=$APP.Ab(a),a=$APP.Bb(a),b=c,c=$APP.y(c);else{b=$APP.u(a);$APP.Gc(b,0,null);e=$APP.Gc(b,1,null);try{e.H?e.H():e.call(null)}catch(f){}a=$APP.w(a);b=null;c=0}d=0}else return null},mO=function(){if(iO instanceof $APP.le){var a=iO.state;a=$APP.Dk.m?$APP.Dk.m(a,jO,!0):$APP.Dk.call(null,a,jO,!0);if(iO instanceof
24
- $APP.le){var b=iO.lc;if(b!=null&&!$APP.n(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=iO.state;iO.state=a;iO.$b!=null&&yM(iO,b,a);a=new $APP.M(null,2,5,$APP.N,[b,a],null)}else a=new $APP.M(null,2,5,$APP.N,[$APP.ab(iO),AM(iO,a)],null)}else a=new $APP.M(null,2,5,$APP.N,[$APP.ab(iO),$APP.Al(iO,$APP.Dk,jO,!0)],null);b=$APP.Gc(a,0,null);$APP.Gc(a,1,null);$APP.n(jO.i(b))||requestAnimationFrame(lO)},pO=function(a,b){var c=nO.i(a)+1;return oO($APP.Dk.m(a,nO,c),new $APP.M(null,
25
- 2,5,$APP.N,[kO,c],null),b)},sO=function(){var a=hO.J(bN,qO,rO,BM);return rO.i(a)-1},uO=function(a){hO.j(tO,BM);try{a.H?a.H():a.call(null)}finally{hO.j(tO,CM)}},vO=function(a){var b=a.getRootNode();return b instanceof ShadowRoot?b.host:a.parentNode},wO=function(a){if(a instanceof Node)for(a=vO(a);;){if(a==null||a===document)return!1;if($APP.n($APP.k(a,"__xTraceHistoryInternal")))return!0;a=vO(a)}else return!1},CO=function(a,b,c,d){var e=$APP.ab(bN),f=$APP.sh.i(a);d=(d=$APP.p(d))?$APP.Pm.i(e):d;d=$APP.n(d)?
26
- d:wO(f);if(!$APP.n(d)){d=f==null?null:f.tagName;d=d==null?null:d.toLowerCase();d=$APP.n(d)?d:"document";var h=xO.i(e);if($APP.A.j("document",d))f=new $APP.O(null,2,[$APP.Pp,null,yO,!1],null);else{var l=$APP.k(f,"__xTraceHistoryId");l!=null?f=new $APP.O(null,2,[$APP.Pp,l,yO,!1],null):(f.__xTraceHistoryId=h,f=new $APP.O(null,2,[$APP.Pp,h,yO,!0],null))}h=$APP.G(f);f=$APP.C(h,$APP.Pp);h=$APP.C(h,yO);l=$APP.Nc($APP.ab(zO));a=$APP.Dk.B(a,MM,d,$APP.zc([NM,f,OM,l]));b=PM(a,b,c);a=GN.i(e);l=AO.i(e);b=$APP.y(a)>=
27
- l?$APP.wd.j($APP.Oc(a),b):$APP.wd.j(a,b);c=$APP.n(h)?$APP.Dk.m(BO.i(e),f,new $APP.O(null,2,[MM,d,VM,c],null)):BO.i(e);e=$APP.n(h)?f+1:xO.i(e);hO.B(bN,$APP.Dk,GN,b,$APP.zc([xO,e,BO,c]));mO()}},DO=function(a,b){b=$APP.k(b,"__xTraceHistoryId");if($APP.n(b)){var c=$APP.Q.i(a);switch(c instanceof $APP.F?c.ga:null){case "event/dispatch":case "event/dispatch-cancelable":case "event/dispatch-document":return""+$APP.V.i(b)+":evt:"+$APP.V.i($APP.Kh.i(a));case "state/instance-field-set":return""+$APP.V.i(b)+
28
- ":fld:"+$APP.V.i($APP.Dh.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.V.i(b)+":attr:"+$APP.V.i($APP.wh.i(a));default:return null}}else return null},FO=function(a,b,c,d){var e=$APP.p(UM.i(a));return e?(b=DO(b,c),$APP.n(b)?(a=$APP.C(EO.i(a),b),$APP.n(a)?d-a<16:null):null):e},GO=function(a,b,c){$APP.n(UM.i($APP.ab(bN)))||(a=DO(a,b),$APP.n(a)&&hO.J(bN,oO,new $APP.M(null,2,5,$APP.N,[EO,a],null),c));return null},JO=function(a){var b=$APP.Q.i(a),c=$APP.sh.i(a),d=performance.now();
29
- if($APP.n(function(){var f=$APP.ab(tO)>0;if(f)return f;f=$APP.ab(HO);f=$APP.n(f)?$APP.$c(IO,b):f;return $APP.n(f)?f:(f=wO(c))?f:FO($APP.ab(bN),a,c,d)}()))return null;var e=sO();CO(a,e,d,!1);return GO(a,c,d)},LO=function(){var a=EventTarget.prototype,b=a.dispatchEvent;$APP.n($APP.k(b,"__xTraceHistoryWrapped"))||(IM(KO,b),b=function(c){var d=$APP.ab(KO);var e=$APP.p($APP.ab(HO));e||(e=$APP.Pm.i($APP.ab(bN)),e=$APP.n(e)?e:$APP.ab(tO)>0||wO(this));if($APP.n(e))c=d.call(this,c);else{e=c instanceof CustomEvent;
30
- var f=performance.now(),h=e?new $APP.O(null,2,[$APP.Q,this===document?$APP.Qh:$APP.n(c.cancelable)?$APP.Oh:$APP.Jh,$APP.Kh,c.type],null):null;if($APP.n(e?FO($APP.ab(bN),h,this,f):e))c=d.call(this,c);else{var l=sO();hO.m(zO,$APP.wd,l);try{var m=d.call(this,c)}finally{hO.j(zO,$APP.Oc)}if(e)try{CO(new $APP.O(null,6,[$APP.Q,this===document?$APP.Qh:$APP.n(c.cancelable)?$APP.Oh:$APP.Jh,$APP.sh,this,$APP.Kh,c.type,$APP.U,c.detail,$APP.Lh,c.cancelable,$APP.Mh,c.defaultPrevented],null),l,f,!0),GO(h,this,f)}catch(q){}c=
31
- m}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},MO=function(){return gO()},NO=function(){var a=BO.i($APP.ab(bN)),b={};a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e),h=$APP.Gc(f,0,null),l=$APP.Gc(f,1,null);f=b;h=""+$APP.V.i(h);l={tag:MM.i(l),firstSeen:VM.i(l)};f[h]=l;e+=1}else if(a=$APP.t(a))$APP.Wc(a)?(d=$APP.Ab(a),a=$APP.Bb(a),c=d,d=$APP.y(d)):(c=$APP.u(a),d=$APP.Gc(c,0,null),e=$APP.Gc(c,1,null),c=b,d=""+$APP.V.i(d),e={tag:MM.i(e),firstSeen:VM.i(e)},c[d]=e,a=$APP.w(a),
32
- c=null,d=0),e=0;else break;return b},OO=function(a){var b=a.components;return b==null?$APP.ye:$APP.pe.j(function(c){return $APP.k(b,c).tag},Object.keys(b))},RO=function(){var a=$APP.ab(bN),b=$APP.pe.j(MM,$APP.mg(BO.i(a)));a=$APP.ue(function(c){c=$APP.G(c);c=$APP.C(c,PO);return OO(c)},$APP.zc([QO.i(a)]));return $APP.Qe($APP.sf.j($APP.xg(),$APP.te.j(b,a)))},SO=function(){hO.J(bN,$APP.Dk,$APP.Pm,!0);mO();return null},TO=function(){hO.J(bN,$APP.Dk,$APP.Pm,!1);mO();return null},YO=function(){hO.B(bN,$APP.Dk,
33
- GN,UO,$APP.zc([rO,0,VO,$APP.ye,WO,0,XO,null,EO,$APP.de]));mO();return null},ZO=function(){return XO.i($APP.ab(bN))},$O=function(a,b,c,d){return b==null?a:$APP.ze(function(e){e=$APP.G(e);var f=$APP.C(e,$APP.Pp);return $APP.A.j(f,b)?$APP.Dk.B(e,XM,c,$APP.zc([ZM,d])):e},a)},aP=function(){var a=performance.now();hO.j(bN,function(b){return $APP.Dk.m(qO.ua(b,VO,$O,XO.i(b),a,rO.i(b)),XO,null)});mO();return null},bP=function(){ZO()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),
34
- aP());var a=performance.now();hO.j(bN,function(b){var c=WO.i(b),d=rO.i(b);return $APP.Dk.B(qO.J(b,VO,$APP.wd,new $APP.O(null,6,[$APP.Pp,c,$APP.Z,"Session "+$APP.V.i(c),WM,a,XM,null,YM,d,ZM,null],null)),XO,c,$APP.zc([WO,c+1]))});mO();return XO.i($APP.ab(bN))},cP=function(a,b){var c=$APP.G(b);b=$APP.C(c,YM);c=$APP.C(c,ZM);a=a.id;return a>=b&&(c==null||a<c)},dP=function(){var a=$APP.ab(bN),b=gO(),c=$APP.zc(b);return $APP.$l($APP.ze(function(d){var e=$APP.G(d);d=$APP.C(e,$APP.Pp);var f=$APP.C(e,$APP.Z),
35
- h=$APP.C(e,WM),l=$APP.C(e,XM),m=$APP.y($APP.we(function(q){return cP(q,e)},c));return{id:d,label:f,startT:h,endT:$APP.n(l)?l:null,recordCount:m}},VO.i(a)))},eP=function(a){var b=$APP.ab(bN),c=$APP.u($APP.we(function(d){return $APP.A.j($APP.Pp.i(d),a)},VO.i(b)));return $APP.n(c)?$APP.$l(EM(function(d){return d.t},$APP.we(function(d){return cP(d,c)},$APP.Ac(gO())))):[]},gP=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=fP}a=$APP.A.j(b,fP)?new $APP.O(null,1,[$APP.Nm,"File is not valid JSON."],
36
- null):aN(b)}else a=$APP.qa(a)?aN(a):new $APP.O(null,1,[$APP.Nm,"Import expects a JSON string or a parsed envelope object."],null);return a},hP=function(a){hO.J(bN,qO,QO,function(b){return $APP.Qe($APP.xe(function(c){c=$APP.G(c);c=$APP.C(c,$APP.Pp);return $APP.A.j(c,a)},b))});mO();return null},jP=function(){return $APP.$l($APP.ze(function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Pp);var c=$APP.C(b,$APP.Z),d=$APP.C(b,iP);b=$APP.C(b,PO);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},QO.i($APP.ab(bN))))},
37
- kP=function(a){var b=$APP.u($APP.we(function(c){return $APP.A.j($APP.Pp.i(c),a)},QO.i($APP.ab(bN))));return $APP.n(b)?PO.i(b).records:[]},lP=function(a,b){return new $APP.O(null,4,[SM,a.getTime(),$APP.Up,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.n(c)?c:""}(),TM,function(){var c=navigator;c=c==null?null:c.userAgent;return $APP.n(c)?c:""}(),UM,b],null)},mP=function(){var a=$APP.ab(bN),b=gO(),c=lP(new Date,UM.i(a));return $M(b,BO.i(a),VO.i(a),c)},nP=function(){var a=
38
- new Date,b=$APP.ab(bN),c=gO(),d=lP(a,UM.i(b));b=$M(c,BO.i(b),VO.i(b),d);b=JSON.stringify(b,null,2);a=""+$APP.V.i("baredom-trace-")+$APP.V.i(a.getFullYear())+$APP.V.i(QM(a.getMonth()+1))+$APP.V.i(QM(a.getDate()))+"-"+$APP.V.i(QM(a.getHours()))+$APP.V.i(QM(a.getMinutes()))+$APP.V.i(QM(a.getSeconds()))+$APP.V.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{c.click()}finally{document.body.removeChild(c),
39
- URL.revokeObjectURL(b)}return null},tP=function(a){return(""+$APP.V.i(a)).replace(oP,"\x26amp;").replace(pP,"\x26lt;").replace(qP,"\x26gt;").replace(rP,"\x26quot;").replace(sP,"\x26#39;")},uP=function(a){return"\x3coption value\x3d'"+$APP.V.i(tP(a))+"'\x3e"+$APP.V.i(tP(a))+"\x3c/option\x3e"},vP=function(a,b){return"\x3clabel class\x3d'cat'\x3e\x3cx-checkbox data-x-th-cat\x3d'"+$APP.V.i(a)+"' "+$APP.V.i($APP.n(b)?"checked ":null)+"aria-label\x3d'"+$APP.V.i(a)+"'\x3e\x3c/x-checkbox\x3e"+$APP.V.i(a)+
40
- "\x3c/label\x3e"},wP=function(a,b){return $APP.Wd($APP.V,$APP.pe.j(function(c){var d=$APP.G(c);c=$APP.C(d,wN);var e=$APP.C(d,MM),f=$APP.G(d);d=$APP.C(f,wN);f=$APP.C(f,MM);d=$APP.A.j(tN,d)?"document":""+$APP.V.i(f)+" #"+$APP.V.i(d);f=$APP.A.j(tN,c)?"document":e;var h=$APP.A.j(b,f);return"\x3cdiv class\x3d'lane-label"+$APP.V.i(h?" active":null)+"' data-x-th-lane-tag\x3d'"+$APP.V.i(tP(f))+"' title\x3d'"+$APP.V.i(tP(d))+"'\x3e"+$APP.V.i(tP($APP.A.j(tN,c)?"document":e))+$APP.V.i($APP.I(tN,c)?" \x3cspan class\x3d'cid'\x3e#"+
41
- $APP.V.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},xP=function(a,b,c){return $APP.n(a)?"\x3cline class\x3d'scrubber' x1\x3d'"+$APP.V.i(b)+"' y1\x3d'0' x2\x3d'"+$APP.V.i(b)+"' y2\x3d'"+$APP.V.i(c)+"' /\x3e":""},yP=function(a,b,c,d){a=EM(function(e){return $APP.A.j(e.id,d)?1:0},a);return $APP.Wd($APP.V,$APP.pe.j(function(e){var f=c.i?c.i(e):c.call(null,e),h=b+10,l=$APP.A.j(e.id,d),m=l?6.5:4.5;return"\x3ccircle class\x3d'dot"+$APP.V.i(l?" selected":null)+"' data-x-th-id\x3d'"+$APP.V.i(e.id)+"' cx\x3d'"+
42
- $APP.V.i(f)+"' cy\x3d'"+$APP.V.i(h)+"' r\x3d'"+$APP.V.i(m)+"' fill\x3d'"+$APP.V.i(sN(e))+"' /\x3e"},a))},zP=function(a,b,c,d){if(c==null)return"";a=$APP.ge(function(e){e=$APP.G(e);e=$APP.C(e,GN);return $APP.ge(function(f){return $APP.A.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.V.i(d)+"' y1\x3d'"+$APP.V.i(b)+"' x2\x3d'"+$APP.V.i(d)+"' y2\x3d'"+$APP.V.i(b+20)+"' /\x3e"):""},AP=function(a,b,c,d){var e=ON(a);return""+$APP.V.i($APP.Wd($APP.V,
43
- $APP.pe.j(function(f){var h=$APP.G(f),l=$APP.C(h,GN);f=$APP.C(h,HN);h=$APP.C(h,IN);var m=$APP.u(l),q=$APP.C(rN,$APP.n(f)?f:fN);var r=$APP.y(l);r=r==null||r===0||e==null||e===0?0:r>=e?1:.4+.6*((r-1)/$APP.Gl.j(1,e-1));var v=tP($APP.yg($APP.n(f)?f:fN));l=$APP.y(l);f=""+$APP.V.i(l)+" "+$APP.V.i($APP.A.j(1,l)?"record":"records")+" · "+$APP.V.i($APP.yg($APP.n(f)?f:fN));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+$APP.V.i(tP(f))+"' data-x-th-bin-record-id\x3d'"+$APP.V.i(m.id)+
44
- "' data-x-th-bin-count\x3d'"+$APP.V.i(l)+"' data-x-th-bin-cat\x3d'"+$APP.V.i(v)+"' x\x3d'"+$APP.V.i(h)+"' y\x3d'"+$APP.V.i(b)+"' width\x3d'"+$APP.V.i(4)+"' height\x3d'"+$APP.V.i(20)+"' fill\x3d'"+$APP.V.i(q)+"' fill-opacity\x3d'"+$APP.V.i(r)+"' /\x3e"},a)))+$APP.V.i(zP(a,b,c,d))},CP=function(a,b,c,d,e,f){function h(z){a:{var B=$APP.C(v,z.id);var E=a instanceof $APP.F?a.ga:null;switch(E){case "order":z=$APP.Gl.j(0,e-16);B=r===0||r<0?8:$APP.A.j(1,r)?8+z/2:8+$APP.Hl.j($APP.Gl.j(B/(r-1),0),1)*z;break a;
45
- case "time":B=z.t;E=$APP.G(d);z=$APP.C(E,yN);E=$APP.C(E,AN);var H=$APP.Gl.j(0,e-16);B=z==null||E==null?8:8+$APP.Hl.j($APP.Gl.j((B-z)/E,0),1)*H;break a;default:throw Error("No matching clause: "+$APP.V.i(E));}}return B}var l=$APP.n(f)?f.id:null,m=$APP.sf.j($APP.de,$APP.je(function(z,B){B=$APP.G(B);B=$APP.C(B,wN);return new $APP.M(null,2,5,$APP.N,[B,z*20],null)},c)),q=$APP.Gl.j(20,20*$APP.y(c)),r=$APP.y(b),v=$APP.sf.j($APP.de,$APP.je(function(z,B){return new $APP.M(null,2,5,$APP.N,[B.id,z],null)},b)),
46
- x=$APP.fh(uN,b);return"\x3csvg class\x3d'timeline-svg' width\x3d'"+$APP.V.i(e)+"' height\x3d'"+$APP.V.i(q)+"' viewBox\x3d'0 0 "+$APP.V.i(e)+" "+$APP.V.i(q)+"'\x3e"+$APP.V.i($APP.Wd($APP.V,$APP.pe.j(function(z){z=$APP.G(z);var B=$APP.C(z,wN);z=$APP.Hc(x,B,$APP.ye);B=$APP.C(m,B);if($APP.A.j(BP,a)){var E=MN(z,h);z=$APP.n(NN(E))?AP(E,B,l,h):yP(z,B,h,l)}else z=yP(z,B,h,l);return z},c)))+$APP.V.i(xP(f,$APP.n(f)?h(f):null,q))+"\x3c/svg\x3e"},DP=function(a,b,c,d,e,f,h,l){if($APP.y(d)===0)a.innerHTML="",b.innerHTML=
47
- "\x3cdiv class\x3d'timeline-empty'\x3eNo records match the current filter.\x3c/div\x3e";else{var m=$APP.Gl.j(200,b.clientWidth);a.innerHTML=wP(e,l);b.innerHTML=CP(c,d,e,f,m,h)}},EP=function(a){return""+$APP.V.i(a.tag)+" · "+$APP.V.i(a.type)},JP=function(a){var b=$APP.G(a);a=$APP.C(b,FP);var c=$APP.C(b,GP),d=$APP.C(b,HP);b=$APP.C(b,IP);c+=14;b-=14;return"\x3cline class\x3d'edge' x1\x3d'"+$APP.V.i(a)+"' y1\x3d'"+$APP.V.i(c)+"' x2\x3d'"+$APP.V.i(d)+"' y2\x3d'"+$APP.V.i(b)+"' /\x3e"},NP=function(a,b){var c=
48
- $APP.G(a);a=$APP.C(c,WN);var d=$APP.C(c,KP),e=$APP.C(c,$APP.nl);c=$APP.C(c,$APP.ol);return"\x3csvg class\x3d'causality-svg' width\x3d'"+$APP.V.i(e)+"' height\x3d'"+$APP.V.i(c)+"' viewBox\x3d'0 0 "+$APP.V.i(e)+" "+$APP.V.i(c)+"'\x3e"+$APP.V.i($APP.Wd($APP.V,$APP.pe.j(JP,d)))+$APP.V.i($APP.Wd($APP.V,$APP.pe.j(function(f){var h=$APP.G(f),l=$APP.C(h,$APP.Pp);f=$APP.C(h,SN);var m=$APP.C(h,LP);h=$APP.C(h,MP);m-=70;var q=h-14,r=$APP.A.j(l,b),v=m+12,x=m+22,z=m+22,B=q+18,E=q+11,H=tP("#"+$APP.V.i(l)+" "+$APP.V.i(EP(f))+
49
- " · "+$APP.V.i(pN(f)));l="\x3cg data-x-th-link-id\x3d'"+$APP.V.i(l)+"' role\x3d'button' aria-label\x3d'"+$APP.V.i(H)+"'\x3e\x3ctitle\x3e"+$APP.V.i(H)+"\x3c/title\x3e\x3crect class\x3d'node-rect"+$APP.V.i(r?" selected":null)+"' x\x3d'"+$APP.V.i(m)+"' y\x3d'"+$APP.V.i(q)+"' width\x3d'"+$APP.V.i(140)+"' height\x3d'"+$APP.V.i(28)+"' /\x3e\x3ccircle class\x3d'node-dot' cx\x3d'"+$APP.V.i(v)+"' cy\x3d'"+$APP.V.i(h)+"' r\x3d'"+$APP.V.i(4)+"' fill\x3d'"+$APP.V.i(sN(f))+"' /\x3e\x3ctext class\x3d'node-text id' x\x3d'"+
50
- $APP.V.i(x)+"' y\x3d'"+$APP.V.i(E)+"'\x3e#"+$APP.V.i(l)+"\x3c/text\x3e\x3ctext class\x3d'node-text' x\x3d'"+$APP.V.i(z)+"' y\x3d'"+$APP.V.i(B)+"'\x3e";h=$APP.V;m=h.i;f=EP(f);f=""+$APP.V.i(f);f=f.length<=22?f:""+$APP.V.i(f.substring(0,21))+"…";return l+m.call(h,tP(f))+"\x3c/text\x3e\x3c/g\x3e"},a)))+"\x3c/svg\x3e"},WP=function(a,b,c,d){if(d==null)eO(a,OP,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+$APP.V.i(tP("Select a record from the timeline to see its causality tree."))+"\x3c/div\x3e";
51
- else{a:{var e=d;for(var f=0;;){var h=e.causeId;if(typeof h!=="number"||f>=5E3)break a;h=nN(c,h);if($APP.n(h))f+=1,e=h;else break a}e=void 0}e=VN(c,e);c=new $APP.O(null,2,[PP,QP(e),RP,SP(e)],null);if($APP.n(UN.i(e)))eO(a,OP,null),a=$APP.V,d=a.i,c=$APP.G(c),c=$APP.C(c,PP),c="Causality tree exceeds the "+$APP.V.i(200)+"-node cap (≥ "+$APP.V.i(c)+" nodes). Pick a smaller leaf record to view its subtree.",b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+d.call(a,tP(c))+"\x3c/div\x3e";else{e=TP(e,0,
52
- 16);f=$APP.Gc(e,0,null);$APP.Gc(e,1,null);e=UP(f);f=VP(f);h=$APP.xa($APP.Gl,0,$APP.pe.j(LP,e));var l=$APP.xa($APP.Gl,0,$APP.pe.j(MP,e));e=new $APP.O(null,4,[WN,e,KP,f,$APP.nl,h+70+16,$APP.ol,l+14+16],null);c=$APP.A.j(1,PP.i(c));eO(a,OP,e);b.innerHTML=""+$APP.V.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.V.i(tP("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."))+"\x3c/div\x3e":
53
- null)+$APP.V.i(NP(e,d.id))}}},aQ=function(a){if($APP.n(dO(a,XP))){var b=$APP.k(a,"__xTraceHistoryCausalityEl"),c=dO(a,OP),d=YP.i?YP.i(a):YP.call(null,a),e=$APP.n(c)?XN(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.nl);h=$APP.C(h,$APP.ol);var l=LP.i(e),m=MP.i(e);e=l-f/2;l=m-d/2;f=$APP.Gl.j(0,c-f);d=$APP.Gl.j(0,h-d);d=new $APP.O(null,2,[ZP,$APP.Gl.j(0,
54
- $APP.Hl.j(f,e)),$P,$APP.Gl.j(0,$APP.Hl.j(d,l))],null);f=$APP.G(d);d=$APP.C(f,ZP);f=$APP.C(f,$P);b.scrollLeft=d;b.scrollTop=f;return eO(a,XP,!1)}}return null},bQ=function(a){var b=RO();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.tb($APP.qg);;){if(e>=d){c=$APP.vb(f);break a}var h=c[e].value;e+=1;f=$APP.A.j(h,"all")?f:$APP.ub(f,h)}c=void 0}b=$APP.xe(c,b);$APP.t(b)&&(b=$APP.Wd($APP.V,$APP.pe.j(uP,b)),a.insertAdjacentHTML("beforeend",b))},cQ=function(a){var b=$APP.Pm.i($APP.ab(bN));
55
- a.textContent=$APP.n(b)?"Resume":"Pause";a.pressed=b},dQ=function(a){var b=ZO()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},iQ=function(a){var b=$APP.G(a);a=$APP.C(b,eQ);var c=$APP.C(b,$APP.yk),d=$APP.C(b,fQ),e=$APP.C(b,gQ),f=$APP.C(b,$APP.Z);b=$APP.C(b,hQ);return"\x3cbutton class\x3d'session-chip"+$APP.V.i($APP.n(c)?" active":null)+$APP.V.i($APP.n(e)?" import":null)+"' type\x3d'button' data-x-th-session\x3d'"+$APP.V.i(tP(a))+"'\x3e"+$APP.V.i($APP.n(d)?"\x3cspan class\x3d'live-dot' aria-hidden\x3d'true'\x3e\x3c/span\x3e":
56
- null)+$APP.V.i(tP(f))+$APP.V.i($APP.n(e)?"\x3cspan class\x3d'chip-close' role\x3d'button' aria-label\x3d'Remove import' data-x-th-import-close\x3d'"+$APP.V.i(b)+"'\x3e×\x3c/span\x3e":null)+"\x3c/button\x3e"},jQ=function(a,b,c,d){var e=new $APP.O(null,5,[eQ,"live",$APP.yk,$APP.A.j(c,$APP.Om),fQ,!1,gQ,!1,$APP.Z,"Live"],null),f=$N(c)?cO(c):null,h=bO(c)?cO(c):null;a=$APP.ze(function(l){var m=l.id;return new $APP.O(null,5,[eQ,""+$APP.V.i(m),$APP.yk,$APP.A.j(m,f),fQ,$APP.A.j(m,d),gQ,!1,$APP.Z,""+$APP.V.i(l.label)+
57
- " · "+$APP.V.i(l.recordCount)],null)},$APP.zc(a));b=$APP.ze(function(l){var m=l.id;return new $APP.O(null,6,[eQ,"import:"+$APP.V.i(m),$APP.yk,$APP.A.j(m,h),fQ,!1,gQ,!0,hQ,m,$APP.Z,""+$APP.V.i(l.label)+" · "+$APP.V.i(l.recordCount)],null)},$APP.zc(b));return $APP.Wd($APP.V,$APP.pe.j(iQ,$APP.te.B(new $APP.M(null,1,5,$APP.N,[e],null),a,$APP.zc([b]))))},kQ=function(a,b,c,d,e){a.innerHTML=jQ(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},lQ=function(a){var b=
58
- pN(a);b="#"+$APP.V.i(a.id)+" "+$APP.V.i(a.tag)+" · "+$APP.V.i(a.type)+$APP.V.i($APP.n($APP.n(b)?!$APP.hi(b):b)?" · "+$APP.V.i(b):null);return"\x3cx-button class\x3d'detail-link' size\x3d'sm' variant\x3d'ghost' data-x-th-link-id\x3d'"+$APP.V.i(a.id)+"' title\x3d'"+$APP.V.i(tP(b))+"'\x3e"+$APP.V.i(tP(b))+"\x3c/x-button\x3e"},mQ=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"?nN(c,f):null;f=PN(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.V.i(tP(e))+
59
- "\x3c/pre\x3e"+$APP.V.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.V.i(lQ(h))+"\x3c/div\x3e":null);c=$APP.V;d=c.i;h=$APP.G(f);f=$APP.C(h,$APP.kr);h=$APP.C(h,GN);if(f>0){var l=$APP.y(h);f=$APP.A.j(l,f)?"Effects ("+$APP.V.i(f)+")":"Effects ("+$APP.V.i(l)+" of "+$APP.V.i(f)+")";f="\x3cdiv class\x3d'detail-section' data-x-th-detail-effects\x3e\x3cdiv class\x3d'detail-label'\x3e"+$APP.V.i(f)+"\x3c/div\x3e"+$APP.V.i($APP.Wd($APP.V,
60
- $APP.pe.j(lQ,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","")},oQ=function(a){var b=nQ.get(a);if($APP.n(b))return b;b=hN(a);nQ.set(a,b);return b},pQ=function(a){return $APP.A.j(a,$APP.Om)?"live":$N(a)?"session:"+$APP.V.i(cO(a)):bO(a)?"import:"+$APP.V.i(cO(a)):"live"},YP=function(a){var b=$APP.k(a,"__xTraceHistoryView");a=$APP.k(a,"__xTraceHistoryViewSelected");return $APP.n(a)?
61
- $APP.k(a,pQ(b)):null},rQ=function(a,b){var c=$APP.k(a,"__xTraceHistoryViewSelected");c=$APP.n(c)?c:{};var d=pQ($APP.k(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;a.__xTraceHistoryViewSelected=c;b!=null&&$APP.A.j(qQ,$APP.k(a,"__xTraceHistoryDockMode"))&&eO(a,XP,!0)},sQ=function(a,b,c){var d=YP(a);b=nN(b,d);if(b==null)return null;if(lN(b,$APP.Dk.m(c,kN,oQ)))return b;rQ(a,null);return null},tQ=function(a){return $APP.A.j(a,$APP.Om)?gO():$N(a)?(a=eP(cO(a)),a.length===0?gO():a):bO(a)?
62
- (a=kP(cO(a)),a.length===0?gO():a):gO()},uQ=function(a,b,c,d){switch(d instanceof $APP.F?d.ga: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")}},wQ=function(a){var b=$APP.k(a,"__xTraceHistoryTimelineEl"),c=$APP.k(a,"__xTraceHistoryCausalityEl"),d=$APP.k(a,"__xTraceHistoryLanesEl"),e=$APP.k(a,"__xTraceHistorySvgPaneEl"),f=$APP.k(a,
63
- "__xTraceHistoryCountEl"),h=$APP.k(a,"__xTraceHistoryDetailEl"),l=$APP.k(a,"__xTraceHistorySplitterEl"),m=$APP.k(a,"__xTraceHistoryHintEl"),q=$APP.k(a,"__xTraceHistoryPauseBtn"),r=$APP.k(a,"__xTraceHistoryRecordBtn"),v=$APP.k(a,"__xTraceHistorySessionsEl"),x=$APP.k(a,"__xTraceHistoryTagSelectEl"),z=$APP.k(a,"__xTraceHistoryFilter"),B=$APP.k(a,"__xTraceHistoryView"),E=tQ(B),H=mN(E,$APP.Dk.m(z,kN,oQ)),K=$APP.y(H),J=E.length,P=BN(H),ea=xN(H),la=sQ(a,E,z),Ea=dP(),Na=jP(),Za=ZO(),Eb=function(){var Kb=
64
- $APP.k(a,"__xTraceHistoryAxisMode");return $APP.n(Kb)?Kb:$APP.ko}(),Cb=function(){var Kb=$APP.k(a,"__xTraceHistoryDockMode");return $APP.n(Kb)?Kb:vQ}();bQ(x);uQ(a,b,c,Cb);switch(Cb instanceof $APP.F?Cb.ga:null){case "causality":WP(a,c,E,la);break;default:DP(d,e,Eb,H,ea,P,la,MM.i(z))}f.textContent=""+$APP.V.i(K);m.textContent=YN(K,J,P,$APP.y(ea));mQ(h,l,E,la);cQ(q);dQ(r);kQ(v,Ea,Na,B,Za);return aQ(a)},xQ=function(a){return $APP.n(a)?$APP.A.j("circle",a.tagName.toLowerCase()):a},yQ=function(a){return $APP.n(a)?
65
- $APP.A.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},zQ=function(a){a=a.getAttribute("data-x-th-id");return $APP.n(a)?parseInt(a,10):null},AQ=function(a,b){$APP.n(b)?a.classList.add("collapsed"):a.classList.remove("collapsed");a=$APP.k(a,"__xTraceHistoryCollapseBtn");return $APP.n(a)?(a.textContent=$APP.n(b)?"»":"«",a.setAttribute("aria-expanded",$APP.n(b)?"false":"true")):null},BQ=function(a){var b=!$APP.D($APP.k(a,"__xTraceHistoryCollapsed"));a.__xTraceHistoryCollapsed=
66
- b;return AQ(a,b)},CQ=function(a,b){$APP.ja(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.ko;case "time":return BP;default:return $APP.ko}}());return wQ(a)},DQ=function(a,b){var c=function(){switch(b){case "timeline":return vQ;case "causality":return qQ;default:return vQ}}();a.__xTraceHistoryDockMode=c;$APP.A.j(qQ,c)?eO(a,XP,!0):eO(a,XP,!1);return wQ(a)},EQ=function(a,b,c,d){a.textContent=d;a.removeAttribute("hidden");var e=b.getBoundingClientRect();d=c.clientX-e.left;c=
67
- c.clientY-e.top;e=b.scrollTop;var f=b.scrollLeft;b=$APP.Gl.j(0,d+12+280>b.clientWidth?d-12-280:d+12);a.style.left=""+$APP.V.i(b+f)+"px";return a.style.top=""+$APP.V.i(c+e+12)+"px"},HQ=function(a,b){var c=b.target,d=$APP.k(a,"__xTraceHistoryTooltipEl"),e=$APP.k(a,"__xTraceHistoryTimelineEl");a=tQ($APP.k(a,"__xTraceHistoryView"));if($APP.n(xQ(c))){c=zQ(c);a=nN(a,c);if($APP.n(a)){c=""+$APP.V.i(a.tag);var f=$APP.V,h=f.i;var l=a.componentId;l=$APP.n(l)?" #"+$APP.V.i(l):null;a=c+h.call(f,l)+"\n"+$APP.V.i(a.type)+
68
- "\n"+$APP.V.i(pN(a))+"\n@ "+$APP.V.i(qN(a.t));b=EQ(d,e,b,a)}else b=null;return b}if($APP.n(yQ(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.O(null,3,[FQ,parseInt(f,10),GQ,parseInt(h,10),HN,$APP.Sg.i(c)],null):null;if($APP.n(c)){f=$APP.G(c);h=$APP.C(f,FQ);c=$APP.C(f,GQ);f=$APP.C(f,HN);a=nN(a,h);if($APP.n(a)){h=""+$APP.V.i(a.tag);l=$APP.V;var m=l.i;var q=a.componentId;q=$APP.n(q)?
69
- " #"+$APP.V.i(q):null;a=h+m.call(l,q)+"\n"+$APP.V.i(c)+" "+$APP.V.i($APP.A.j(1,c)?"record":"records")+" · "+$APP.V.i($APP.yg($APP.n(f)?f:fN))+"\n@ "+$APP.V.i(qN(a.t));b=EQ(d,e,b,a)}else b=null;return b}return null}return d.setAttribute("hidden","")},IQ=function(a,b,c,d,e,f){a:switch(b=b instanceof $APP.F?b.ga:null,b){case "order":d=$APP.y(c);e=$APP.Gl.j(0,e-16);d===0||d<0?f=null:$APP.A.j(1,d)||e===0?f=0:(f=$APP.Hl.j($APP.Gl.j((f-8)/e,0),1),f=Math.round(f*(d-1)));c=$APP.n(f)?$APP.Gc(c,f,null):null;
70
- break a;case "time":var h=$APP.G(d);d=$APP.C(h,yN);b=$APP.C(h,AN);var l=$APP.Gl.j(0,e-16);h==null||d==null||b==null?f=0:e===0||e<0||l===0?f=d:(f=$APP.Hl.j($APP.Gl.j((f-8)/l,0),1),f=d+f*b);c=DN(c,f);break a;default:throw Error("No matching clause: "+$APP.V.i(b));}return $APP.n(c)?(rQ(a,c.id),wQ(a)):null},JQ=function(a,b,c){function d(v){return IQ(a,l,q,r,f,v.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.Gl.j(200,b.clientWidth),h=$APP.k(a,
71
- "__xTraceHistoryFilter"),l=function(){var v=$APP.k(a,"__xTraceHistoryAxisMode");return $APP.n(v)?v:$APP.ko}(),m=tQ($APP.k(a,"__xTraceHistoryView")),q=mN(m,$APP.Dk.m(h,kN,oQ)),r=BN(q);IQ(a,l,q,r,f,c.clientX-e.left);c=function x(){b.removeEventListener("pointermove",d);b.removeEventListener("pointerup",x);return b.removeEventListener("pointercancel",x)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},KQ=function(a,b){var c=$APP.k(a,
72
- "__xTraceHistoryFilter"),d=tQ($APP.k(a,"__xTraceHistoryView"));c=mN(d,$APP.Dk.m(c,kN,oQ));d=YP(a);a:if($APP.t(c)){if(d!=null)b:if(typeof d==="number"){for(var e=$APP.y(c),f=0;;){if(f>=e){d=null;break b}if($APP.A.j(d,$APP.tc(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.ga:null,b){case "next":b=$APP.u(c);break a;case "prev":b=$APP.Nc(c);break a;default:throw Error("No matching clause: "+$APP.V.i(b));}else b=$APP.A.j(b,$APP.Yn)?$APP.C(c,d+1):$APP.C(c,
73
- d-1)}else b=null;return $APP.n(b)?(rQ(a,b.id),wQ(a)):null},MQ=function(a){var b=$APP.D(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.$c(LQ,a==null?null:a.toLowerCase()));return a},NQ=function(a,b){if(MQ(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),KQ(a,$APP.Yn);case "ArrowLeft":return b.preventDefault(),KQ(a,$APP.Sn);default:return null}},OQ=function(a,b,c){function d(h){h=$APP.Gl.j(60,f+(e-h.clientY));return a.style.height=""+$APP.V.i(h)+
74
- "px"}c.preventDefault();b.setPointerCapture(c.pointerId);b.classList.add("dragging");var e=c.clientY,f=a.offsetHeight;c=function l(){b.removeEventListener("pointermove",d);b.removeEventListener("pointerup",l);b.removeEventListener("pointercancel",l);return b.classList.remove("dragging")};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},PQ=function(a){if(a==null||$APP.A.j("",a))a=null;else if(zM(a,".trace.json")){var b=$APP.y(a)-11;
75
- a=a.substring(0,b)}else zM(a,".json")&&(b=$APP.y(a)-5,a=a.substring(0,b));return a},RQ=function(a,b){var c=$APP.k(a,"__xTraceHistoryHintEl"),d=dO(a,QQ);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");eO(a,QQ,null);return wQ(a)},4E3);return eO(a,QQ,b)},TQ=function(a,b){var c=new FileReader,d=PQ(b.name);c.onload=function(){var e=SQ.j(c.result,d);e!=null?($APP.k(a,"__xTraceHistoryHintEl").classList.remove("error"),a.__xTraceHistoryView=
76
- new $APP.M(null,2,5,$APP.N,[aO,e],null),e=wQ(a)):e=RQ(a,"Import failed — see console for details.");return e};c.onerror=function(){return RQ(a,"Could not read file.")};return c.readAsText(b)},UQ=function(a){a=a.dataTransfer;return $APP.n(a)?a.types.includes("Files"):null},XQ=function(a,b){var c=a.shadowRoot;a=$APP.n(c)?c:a.attachShadow({mode:"open"});if(c==null){c="\x3cstyle\x3e"+$APP.V.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; }")+
77
- "\x3c/style\x3e";var d=$APP.V,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"+
78
- $APP.V.i(vP("events",$APP.$c(b,$APP.Hq)))+$APP.V.i(vP("state",$APP.$c(b,$APP.pq)))+$APP.V.i(vP("dom",$APP.$c(b,VQ)))+$APP.V.i(vP("lifecycle",$APP.$c(b,WQ)))+"\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";
79
- a.innerHTML=c+e.call(d,b)}return a},YQ=function(a,b){a.__xTraceHistoryShadow=b;a.__xTraceHistoryTimelineEl=b.querySelector("[data-x-th-timeline]");a.__xTraceHistoryLanesEl=b.querySelector("[data-x-th-lanes]");a.__xTraceHistorySvgPaneEl=b.querySelector("[data-x-th-svg-pane]");a.__xTraceHistoryTooltipEl=b.querySelector("[data-x-th-tooltip]");a.__xTraceHistoryCountEl=b.querySelector("[data-x-th-count]");a.__xTraceHistoryDetailEl=b.querySelector("[data-x-th-detail]");a.__xTraceHistorySplitterEl=b.querySelector("[data-x-th-splitter]");
80
- a.__xTraceHistoryHintEl=b.querySelector("[data-x-th-hint]");a.__xTraceHistoryTagSelectEl=b.querySelector("[data-x-th-tag]");a.__xTraceHistoryCausalityEl=b.querySelector("[data-x-th-causality]");a.__xTraceHistoryPauseBtn=b.querySelector("[data-x-th-action\x3d'pause']");a.__xTraceHistoryRecordBtn=b.querySelector("[data-x-th-action\x3d'record']");a.__xTraceHistorySessionsEl=b.querySelector("[data-x-th-sessions]");a.__xTraceHistoryImportInput=b.querySelector("[data-x-th-import-input]");a.__xTraceHistoryDropOverlay=
81
- b.querySelector("[data-x-th-drop-overlay]");a.__xTraceHistoryCollapseBtn=b.querySelector("[data-x-th-action\x3d'collapse']")},$Q=function(a,b,c,d,e,f,h,l){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.Pm.i($APP.ab(bN)))?TO():SO();break;case "record":ZO()!=null?aP():bP();break;case "clear":a.__xTraceHistoryViewSelected={};a.__xTraceHistoryView=$APP.Om;YO();break;case "export":nP();break;
82
- case "import":q=$APP.k(a,"__xTraceHistoryImportInput");$APP.n(q)&&(q.value="",q.click());break;case "collapse":BQ(a)}q=m.closest("[data-x-th-import-close]");if($APP.n(q)){q=parseInt(q.getAttribute("data-x-th-import-close"),10);var r=$APP.k(a,"__xTraceHistoryView");bO(r)&&$APP.A.j(q,cO(r))&&(a.__xTraceHistoryView=$APP.Om);hP(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.A.j(q,"live")?$APP.Om:q.lastIndexOf("import:",
83
- 0)==0?new $APP.M(null,2,5,$APP.N,[aO,parseInt(q.substring(7),10)],null):new $APP.M(null,2,5,$APP.N,[ZN,parseInt(q,10)],null),a.__xTraceHistoryView=q,wQ(a)));q=m.closest("[data-x-th-lane-tag]");if($APP.n(q)){r=q.getAttribute("data-x-th-lane-tag");q=$APP.k(a,"__xTraceHistoryFilter");var v=MM.i(q);r=$APP.A.j(r,v)?null:r;q=$APP.Dk.m(q,MM,r);a.__xTraceHistoryFilter=q;q=$APP.k(a,"__xTraceHistoryTagSelectEl");$APP.n(q)&&(q.value=$APP.n(r)?r:"all");wQ(a)}q=m.closest("[data-x-th-link-id]");$APP.n(q)&&(q=q.getAttribute("data-x-th-link-id"),
84
- $APP.n(q)&&(q=parseInt(q,10),$APP.n(isNaN(q))||(rQ(a,q),wQ(a))));q=xQ(m);q=$APP.n(q)?q:yQ(m);$APP.n(q)?($APP.n(xQ(m))?m=zQ(m):$APP.n(yQ(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.A.j(m,q)?null:m,rQ(a,m),m=wQ(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.Dk.m($APP.k(a,"__xTraceHistoryFilter"),MM,$APP.A.j(m,"all")?null:m),a.__xTraceHistoryFilter=q,q=wQ(a)):
85
- q=q.getAttribute("data-x-th-mode")!=null?DQ(a,m):q.getAttribute("data-x-th-axis")!=null?CQ(a,m):null;return q}],[b,"x-checkbox-change",function(m){var q=m.target.getAttribute("data-x-th-cat");if(q!=null){var r=m.detail.checked;m=$APP.k(a,"__xTraceHistoryFilter");var v=iN.i(m);v=$APP.n(v)?v:$APP.vg(cN);q=$APP.Sg.i(q);q=$APP.n(r)?$APP.wd.j(v,q):$APP.Fl.j(v,q);m=$APP.Dk.m(m,iN,q);a.__xTraceHistoryFilter=m;m=wQ(a)}else m=null;return m}],[b,"x-search-field-input",function(m){var q=m.target;$APP.n($APP.n(q)?
86
- q.hasAttribute("data-x-th-search"):q)?(m=m.detail.value,m=($APP.n(m)?m:"").toLowerCase(),m=$APP.Dk.m($APP.k(a,"__xTraceHistoryFilter"),jN,$APP.A.j("",m)?null:m),a.__xTraceHistoryFilter=m,m=wQ(a)):m=null;return m}],[c,"pointermove",function(m){return HQ(a,m)}],[c,"pointerleave",function(){return $APP.k(a,"__xTraceHistoryTooltipEl").setAttribute("hidden","")}],[c,"pointerdown",function(){return c.focus()}],[l,"pointerdown",function(){return l.focus()}],[b,"keydown",function(m){return NQ(a,m)}],[d,"pointerdown",
87
- function(m){return JQ(a,$APP.k(a,"__xTraceHistorySvgPaneEl"),m)}],[e,"pointerdown",function(m){return OQ(f,e,m)}],[h,"change",function(m){m=m.target.files;return m.length>0?TQ(a,m[0]):null}],[b,"dragenter",function(m){if($APP.n(UQ(m))){m.preventDefault();m=$APP.k(a,"__xTraceHistoryDropOverlay");var q=dO(a,ZQ);eO(a,ZQ,($APP.n(q)?q:0)+1);m=m.removeAttribute("hidden")}else m=null;return m}],[b,"dragover",function(m){$APP.n(UQ(m))?(m.preventDefault(),m=m.dataTransfer,m=$APP.n(m)?m.dropEffect="copy":null):
88
- m=null;return m}],[b,"dragleave",function(m){if($APP.n(UQ(m))){m=$APP.k(a,"__xTraceHistoryDropOverlay");var q=$APP.Gl.j,r=dO(a,ZQ);q=q.call($APP.Gl,0,($APP.n(r)?r:0)-1);eO(a,ZQ,q);m=q===0?m.setAttribute("hidden",""):null}else m=null;return m}],[b,"drop",function(m){$APP.n(UQ(m))?(m.preventDefault(),eO(a,ZQ,0),$APP.k(a,"__xTraceHistoryDropOverlay").setAttribute("hidden",""),m=m.dataTransfer,m=$APP.n(m)?m.files:null,m=$APP.n($APP.n(m)?m.length>0:m)?TQ(a,m[0]):null):m=null;return m}],[document,"keydown",
89
- function(m){var q;if(q=$APP.A.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)&&!MQ(m.target):q;$APP.n(q)?(m.preventDefault(),m=BQ(a)):m=null;return m}]]},aR=function(a,b){b=$Q(a,b,$APP.k(a,"__xTraceHistoryTimelineEl"),$APP.k(a,"__xTraceHistorySvgPaneEl"),$APP.k(a,"__xTraceHistorySplitterEl"),$APP.k(a,"__xTraceHistoryDetailEl"),$APP.k(a,"__xTraceHistoryImportInput"),$APP.k(a,"__xTraceHistoryCausalityEl"));a.__xTraceHistoryListeners=b;a:{a=b.length;
90
- for(var c=0;;)if(c<a){var d=b[c];d[0].addEventListener(d[1],d[2]);c+=1}else break a}},bR=function(a,b){$APP.n($APP.k(a,"__xTraceHistoryFilter"))||(a.__xTraceHistoryFilter=new $APP.O(null,3,[MM,null,iN,b,jN,null],null));$APP.n($APP.k(a,"__xTraceHistoryView"))||(a.__xTraceHistoryView=$APP.Om);$APP.n($APP.k(a,"__xTraceHistoryViewSelected"))||(a.__xTraceHistoryViewSelected={});$APP.n($APP.k(a,"__xTraceHistoryAxisMode"))||(a.__xTraceHistoryAxisMode=$APP.ko);$APP.n($APP.k(a,"__xTraceHistoryDockMode"))||
91
- (a.__xTraceHistoryDockMode=vQ);$APP.k(a,"__xTraceHistoryCollapsed")==null&&(a.__xTraceHistoryCollapsed=!1);AQ(a,$APP.D($APP.k(a,"__xTraceHistoryCollapsed")))},dR=function(a){if($APP.n($APP.k(a,"__xTraceHistoryMounted")))return null;a.__xTraceHistoryInternal=!0;var b=gO().length;uO(function(){var c=dN(),d=XQ(a,c);YQ(a,d);bR(a,c);aR(a,d);c=nO.i(hO.m(iO,pO,function(){var e=$APP.k(a,"__xTraceHistoryView"),f=jP(),h=f.length;var l=dO(a,cR);l=$APP.n(l)?l:0;h>l?(eO(a,cR,h),$APP.A.j(e,$APP.Om)&&gO().length===
92
- 0&&(a.__xTraceHistoryView=new $APP.M(null,2,5,$APP.N,[aO,f[h-1].id],null))):h<l&&eO(a,cR,h);return wQ(a)}));a.__xTraceHistorySubToken=c;wQ(a);a.__xTraceHistoryMounted=!0});return $APP.I(b,gO().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},eR=function(){return $APP.n(document.querySelector("x-trace-history"))?null:document.body.appendChild(document.createElement("x-trace-history"))},
93
- hR=function(){if(KM()){var a=hO.B;var b=$APP.k(window,"BAREDOM_TRACE_HISTORY_CAPACITY");b=typeof b==="number"&&b>0?b:5E3;var c=window,d;(d=$APP.A.j("raw",$APP.k(c,"BAREDOM_TRACE_HISTORY")))||(c=c.location.search,c=c==null?null:$APP.Hg(fR,c),d=$APP.D(c));a.call(hO,bN,$APP.Dk,AO,b,$APP.zc([UM,d]));IM($APP.Bh,JO);IM($APP.gh,JO);IM(tO,0);IM(zO,$APP.ye);LO();IM(HO,!0);a=$APP.k(window,"BareDOM");a=$APP.n(a)?a:{};a.traceHistory={records:MO,sessions:dP,"export":mP,download:nP,stopSession:aP,"import":SQ,pause:SO,
94
- importRecords:kP,sessionRecords:eP,startSession:bP,components:NO,clear:YO,imports:jP,removeImport:hP,resume:TO};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.Uk();$APP.ak();$APP.Vi();$APP.hl();$APP.Ah("x-trace-history",gR);return KM()?$APP.n(document.body)?eR():document.addEventListener("DOMContentLoaded",eR,{once:!0}):null},iR=function(){return hR()},CN=function CN(a){switch(arguments.length){case 2:return CN.j(arguments[0],
95
- arguments[1]);case 3:return CN.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 CN.B(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.Yb(c.slice(3),0,null):null)}};CN.j=function(a,b){return b};CN.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};CN.B=function(a,b,c,d){return $APP.xa(function(e,f){return CN.m(a,e,f)},CN.m(a,b,c),d)};
96
- CN.K=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);var d=$APP.w(c);c=$APP.u(d);d=$APP.w(d);return this.B(b,a,c,d)};CN.M=3;var jR=function jR(a){switch(arguments.length){case 0:return jR.H();case 1:return jR.i(arguments[0]);case 2:return jR.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 jR.B(arguments[0],arguments[1],2<c.length?new $APP.Yb(c.slice(2),0,null):null)}};jR.H=function(){return 0};jR.i=function(a){return a};
97
- jR.j=function(a,b){return a+b};jR.B=function(a,b,c){return $APP.xa(jR,a+b,c)};jR.K=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.B(b,a,c)};jR.M=2;
98
- var qO=function qO(a){switch(arguments.length){case 3:return qO.m(arguments[0],arguments[1],arguments[2]);case 4:return qO.J(arguments[0],arguments[1],arguments[2],arguments[3]);case 5:return qO.da(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return qO.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 qO.B(arguments[0],arguments[1],arguments[2],
99
- arguments[3],arguments[4],arguments[5],6<c.length?new $APP.Yb(c.slice(6),0,null):null)}};qO.m=function(a,b,c){var d=$APP.Dk.m,e=$APP.C(a,b);c=c.i?c.i(e):c.call(null,e);return d.call($APP.Dk,a,b,c)};qO.J=function(a,b,c,d){var e=$APP.Dk.m,f=$APP.C(a,b);c=c.j?c.j(f,d):c.call(null,f,d);return e.call($APP.Dk,a,b,c)};qO.da=function(a,b,c,d,e){var f=$APP.Dk.m,h=$APP.C(a,b);c=c.m?c.m(h,d,e):c.call(null,h,d,e);return f.call($APP.Dk,a,b,c)};
100
- qO.ua=function(a,b,c,d,e,f){var h=$APP.Dk.m,l=$APP.C(a,b);c=c.J?c.J(l,d,e,f):c.call(null,l,d,e,f);return h.call($APP.Dk,a,b,c)};qO.B=function(a,b,c,d,e,f,h){return $APP.Dk.m(a,b,$APP.$d(c,$APP.C(a,b),d,e,f,$APP.zc([h])))};qO.K=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);var d=$APP.w(c);c=$APP.u(d);var e=$APP.w(d);d=$APP.u(e);var f=$APP.w(e);e=$APP.u(f);var h=$APP.w(f);f=$APP.u(h);h=$APP.w(h);return this.B(b,a,c,d,e,f,h)};qO.M=6;
101
- var oO=function oO(a,b,c){var e=$APP.t(b);b=$APP.u(e);var f=$APP.w(e);if(f){e=$APP.Dk.m;var h=$APP.C(a,b);c=oO.m?oO.m(h,f,c):oO.call(null,h,f,c);a=e.call($APP.Dk,a,b,c)}else a=$APP.Dk.m(a,b,c);return a},hO=function hO(a){switch(arguments.length){case 2:return hO.j(arguments[0],arguments[1]);case 3:return hO.m(arguments[0],arguments[1],arguments[2]);case 4:return hO.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;
102
- else break;return hO.B(arguments[0],arguments[1],arguments[2],arguments[3],4<c.length?new $APP.Yb(c.slice(4),0,null):null)}};hO.j=function(a,b){if(a instanceof $APP.le){var c=a.state;b=b.i?b.i(c):b.call(null,c);a=IM(a,b)}else a=$APP.Al(a,b);return a};hO.m=function(a,b,c){if(a instanceof $APP.le){var d=a.state;b=b.j?b.j(d,c):b.call(null,d,c);a=IM(a,b)}else a=$APP.Al(a,b,c);return a};
103
- hO.J=function(a,b,c,d){if(a instanceof $APP.le){var e=a.state;b=b.m?b.m(e,c,d):b.call(null,e,c,d);a=IM(a,b)}else a=$APP.Al(a,b,c,d);return a};hO.B=function(a,b,c,d,e){return a instanceof $APP.le?IM(a,$APP.Zd(b,a.state,c,d,e)):$APP.Al(a,b,c,d,e)};hO.K=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);var d=$APP.w(c);c=$APP.u(d);var e=$APP.w(d);d=$APP.u(e);e=$APP.w(e);return this.B(b,a,c,d,e)};hO.M=4;
104
- var WM=new $APP.F(null,"start-t","start-t",1829305353),OM=new $APP.F(null,"cause-id","cause-id",-1282947263),JN=new $APP.F(null,"x-end","x-end",-1725631203),PP=new $APP.F(null,"node-count","node-count",383091297),YM=new $APP.F(null,"start-id","start-id",-456790067),ZM=new $APP.F(null,"end-id","end-id",2084513705),zN=new $APP.F(null,"tmax","tmax",2006118392),vQ=new $APP.F(null,"timeline","timeline",192903161),GQ=new $APP.F(null,"bin-count","bin-count",1792167977),cR=new $APP.F(null,"auto-switch-import",
105
- "auto-switch-import",-809333661),XP=new $APP.F(null,"causality-needs-fit","causality-needs-fit",1728707358),IP=new $APP.F(null,"to-cy","to-cy",1542880464),HP=new $APP.F(null,"to-cx","to-cx",698995232),$P=new $APP.F(null,"scroll-top","scroll-top",-46723100),eQ=new $APP.F(null,"chip-key","chip-key",644014552),xO=new $APP.F(null,"next-component-id","next-component-id",1588977206),jO=new $APP.F(null,"pending?","pending?",-2133618792),EO=new $APP.F(null,"rate-limit","rate-limit",1748082022),yN=new $APP.F(null,
106
- "tmin","tmin",-39508962),pR=new $APP.F(null,"to-id","to-id",1021626465),KP=new $APP.F(null,"edges","edges",-694791395),nO=new $APP.F(null,"next-token","next-token",1432414974),KN=new $APP.F(null,"t-min","t-min",-488887638),TM=new $APP.F(null,"user-agent","user-agent",1220426212),qQ=new $APP.F(null,"causality","causality",-712927373),UM=new $APP.F(null,"forensic?","forensic?",188264321),MM=new $APP.F(null,"tag","tag",-1290361223),jN=new $APP.F(null,"search","search",1564939822),ZN=new $APP.F(null,
107
- "session","session",1008279103),rO=new $APP.F(null,"next-id","next-id",-224240762),iN=new $APP.F(null,"categories","categories",178386610),OP=new $APP.F(null,"causality-layout","causality-layout",-1264013405),LN=new $APP.F(null,"t-max","t-max",-949530573),AO=new $APP.F(null,"capacity","capacity",72689734),fQ=new $APP.F(null,"recording?","recording?",-1477514924),GN=new $APP.F(null,"records","records",1326822832),BP=new $APP.F(null,"time","time",1385887882),HN=new $APP.F(null,"dominant-cat","dominant-cat",
108
- -914257775),WQ=new $APP.F(null,"lifecycle","lifecycle",341496205),fN=new $APP.F(null,"other","other",995793544),fP=new $APP.F("baredom.dev.x-trace-history.model","parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),yO=new $APP.F(null,"new?","new?",777958557),RP=new $APP.F(null,"max-depth","max-depth",127060793),vN=new $APP.F(null,"min-t","min-t",-1349871659),UN=new $APP.F(null,"capped?","capped?",-65680820),QO=new $APP.F(null,"imports","imports",-1249933394),FN=new $APP.F(null,
109
- "bin-i","bin-i",791326307),VM=new $APP.F(null,"first-seen","first-seen",390191468),gQ=new $APP.F(null,"import?","import?",-40157302),MP=new $APP.F(null,"cy","cy",755331060),TN=new $APP.F(null,"children","children",-940561982),LP=new $APP.F(null,"cx","cx",1272694324),VQ=new $APP.F(null,"dom","dom",-1236537922),WO=new $APP.F(null,"next-session-id","next-session-id",1944278844),IN=new $APP.F(null,"x-start","x-start",1183238797),ZP=new $APP.F(null,"scroll-left","scroll-left",-211761103),iP=new $APP.F(null,
110
- "imported-at","imported-at",-1157103926),wN=new $APP.F(null,"lane-id","lane-id",2005926623),kN=new $APP.F(null,"haystack-fn","haystack-fn",1813797862),qR=new $APP.F(null,"depth","depth",1768663640),FQ=new $APP.F(null,"record-id","record-id",-1468971877),XO=new $APP.F(null,"active-session-id","active-session-id",943086451),FP=new $APP.F(null,"from-cx","from-cx",-293616201),GP=new $APP.F(null,"from-cy","from-cy",1126835724),VO=new $APP.F(null,"sessions","sessions",-699316392),SM=new $APP.F(null,"exported-at",
111
- "exported-at",1661975683),NM=new $APP.F(null,"component-id","component-id",1551113783),QQ=new $APP.F(null,"import-error","import-error",1672727808),ZQ=new $APP.F(null,"drag-depth","drag-depth",-226189617),rR=new $APP.F(null,"from-id","from-id",-106962526),hQ=new $APP.F(null,"import-id","import-id",940580069),WN=new $APP.F(null,"nodes","nodes",-2099585805),XM=new $APP.F(null,"end-t","end-t",-218701242),kO=new $APP.F(null,"by-token","by-token",-1485378511),KR=new $APP.F(null,"next-import-id","next-import-id",
112
- 287496955),SN=new $APP.F(null,"record","record",-779106859),AN=new $APP.F(null,"span","span",1394872991),tN=new $APP.F("baredom.dev.x-trace-history.model","document","baredom.dev.x-trace-history.model/document",-1776453896),BO=new $APP.F(null,"components","components",-1073188942),aO=new $APP.F(null,"import","import",-1399500709),PO=new $APP.F(null,"envelope","envelope",-236796318);var UO=$APP.sf.j($APP.Ol,$APP.ye),JM=FM("(?:^\\?|\x26)"+$APP.V.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),fR=FM("(?:^\\?|\x26)"+$APP.V.i("baredom-trace-history")+"\x3d"+$APP.V.i("raw")+"(?:\x26|$)"),eN=new $APP.O(null,4,[$APP.Hq,new $APP.pg(null,new $APP.O(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.pq,new $APP.pg(null,new $APP.O(null,1,["state/instance-field-set",null],null),null),VQ,new $APP.pg(null,new $APP.O(null,2,["dom/attribute-removed",
113
- null,"dom/attribute-set",null],null),null),WQ,new $APP.pg(null,new $APP.O(null,3,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/disconnected",null],null),null)],null),cN=new $APP.M(null,4,5,$APP.N,[$APP.Hq,$APP.pq,VQ,WQ],null),rN=new $APP.O(null,5,[$APP.Hq,"#94e2d5",$APP.pq,"#f9e2af",VQ,"#fab387",WQ,"#cba6f7",fN,"#6c7086"],null),RN=function RN(a,b){return $APP.zd(b,new $APP.Cd(null,function(){return $APP.ue(function(d){return RN.j?RN.j(a,d):RN.call(null,a,d)},$APP.zc([QN(a,
114
- b.id)]))},null))},QP=function QP(a){return $APP.xa(jR,0,$APP.pe.j(QP,TN.i(a)))+1},SP=function SP(a){return $APP.Pc(TN.i(a))?0:$APP.Wd($APP.Gl,$APP.pe.j(SP,TN.i(a)))+1},TP=function TP(a,b,c){var e=SN.i(a),f=TN.i(a);a=30+b*56;if($APP.Pc(f))return new $APP.M(null,2,5,$APP.N,[new $APP.O(null,6,[$APP.Pp,e.id,SN,e,LP,c+70,MP,a,qR,b,TN,$APP.ye],null),c+158],null);f=$APP.xa(function(m,q){var r=$APP.Gc(m,0,null);m=$APP.Gc(m,1,null);var v=b+1;m=TP.m?TP.m(q,v,m):TP.call(null,q,v,m);q=$APP.Gc(m,0,null);m=$APP.Gc(m,
115
- 1,null);return new $APP.M(null,2,5,$APP.N,[$APP.wd.j(r,q),m],null)},new $APP.M(null,2,5,$APP.N,[$APP.ye,c],null),f);c=$APP.Gc(f,0,null);f=$APP.Gc(f,1,null);var h=LP.i($APP.u(c)),l=LP.i($APP.Dc(c));return new $APP.M(null,2,5,$APP.N,[new $APP.O(null,6,[$APP.Pp,e.id,SN,e,LP,(h+l)/2,MP,a,qR,b,TN,c],null),f],null)},UP=function UP(a){return $APP.sf.j(new $APP.M(null,1,5,$APP.N,[$APP.El.j(a,TN)],null),$APP.ue(UP,$APP.zc([TN.i(a)])))},VP=function VP(a){var c=$APP.Pp.i(a),d=LP.i(a),e=MP.i(a);return $APP.Qe($APP.ue(function(f){return $APP.zd(new $APP.O(null,
116
- 6,[rR,c,FP,d,GP,e,pR,$APP.Pp.i(f),HP,LP.i(f),IP,MP.i(f)],null),VP.i?VP.i(f):VP.call(null,f))},$APP.zc([TN.i(a)])))};var bN=$APP.me($APP.Wf([UM,AO,EO,rO,$APP.Pm,QO,GN,BO,XO,xO,VO,KR,WO],[!1,5E3,$APP.de,0,!1,$APP.ye,UO,$APP.de,null,0,$APP.ye,0,0])),iO=$APP.me(new $APP.O(null,3,[nO,0,jO,!1,kO,$APP.de],null)),zO=$APP.me($APP.ye),KO=$APP.me(null),HO=$APP.me(!1),tO=$APP.me(0),fO=$APP.me([null,null]),IO=new $APP.pg(null,new $APP.O(null,3,[$APP.Oh,null,$APP.Qh,null,$APP.Jh,null],null),null),SQ=function SQ(a){switch(arguments.length){case 1:return SQ.i(arguments[0]);case 2:return SQ.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",
117
- arguments.length].join(""));}};SQ.i=function(a){return SQ.j(a,null)};SQ.j=function(a,b){a=gP(a);var c=$APP.G(a);a=$APP.C(c,$APP.qp);c=$APP.C(c,$APP.Nm);if($APP.n(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=KR.i($APP.ab(bN));b=b==null||$APP.A.j("",b)?"Import "+$APP.V.i(d):b;var e=new $APP.O(null,4,[$APP.Pp,d,$APP.Z,b,iP,c,PO,a],null);hO.j(bN,function(f){return qO.m(qO.J(f,QO,$APP.wd,e),KR,BM)});mO();return d};SQ.M=2;var oP=RegExp("\x26","g"),pP=RegExp("\x3c","g"),qP=RegExp("\x3e","g"),rP=RegExp('"',"g"),sP=RegExp("'","g"),nQ=new WeakMap,LQ=new $APP.pg(null,new $APP.O(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),gR=new $APP.O(null,5,[$APP.nh,!0,$APP.qh,[],$APP.oh,function(a){return dR(a)},$APP.lh,function(a){var b=$APP.k(a,"__xTraceHistorySubToken");$APP.n(b)&&hO.B(iO,qO,kO,$APP.El,$APP.zc([b]));b=dO(a,QQ);$APP.n(b)&&typeof b==="number"&&clearTimeout(b);b=$APP.k(a,
118
- "__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;a.__xTraceHistoryListeners=null}a.__xTraceHistorySubToken=null;eO(a,QQ,null);a.__xTraceHistoryMounted=null},$APP.kh,function(){return null}],null);$APP.ha("baredom.exports.x_trace_history.init",iR);hR();export const init=iR;
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; }")+
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"+
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;