@vanelsas/baredom 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +7 -0
- package/custom-elements.json +4287 -4287
- package/dist/baredom.d.ts +95 -95
- package/dist/base.js +30 -30
- package/dist/integrity.json +102 -102
- package/dist/x-alert.js +13 -13
- package/dist/x-avatar-group.js +9 -9
- package/dist/x-avatar.js +9 -9
- package/dist/x-badge.js +5 -5
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +13 -13
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +35 -35
- package/dist/x-cancel-dialogue.js +13 -13
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +28 -28
- package/dist/x-chart.js +22 -22
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +17 -17
- package/dist/x-collapse.js +5 -5
- package/dist/x-color-picker.js +42 -42
- package/dist/x-combobox.js +2 -2
- package/dist/x-command-palette.js +26 -26
- package/dist/x-confetti.js +19 -19
- package/dist/x-container.js +3 -3
- package/dist/x-context-menu.js +12 -12
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +12 -12
- package/dist/x-date-picker.js +9 -9
- package/dist/x-divider.js +3 -3
- package/dist/x-drag-panel.js +29 -29
- package/dist/x-drawer.js +10 -10
- package/dist/x-drop-zone.js +11 -10
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +4 -4
- package/dist/x-file-upload.js +22 -22
- package/dist/x-form-field.js +6 -6
- package/dist/x-form.js +9 -9
- package/dist/x-gaussian-blur.js +8 -8
- package/dist/x-grid.js +6 -6
- package/dist/x-i18n-provider.js +5 -5
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +6 -6
- package/dist/x-image.js +10 -10
- package/dist/x-kbd.js +6 -6
- package/dist/x-kinetic-canvas.js +24 -24
- package/dist/x-kinetic-font.js +15 -15
- package/dist/x-kinetic-typography.js +20 -20
- package/dist/x-liquid-dock.js +14 -14
- package/dist/x-liquid-fill.js +21 -21
- package/dist/x-liquid-glass.js +17 -17
- package/dist/x-menu-item.js +4 -4
- package/dist/x-menu.js +7 -7
- package/dist/x-metaball-cursor.js +20 -20
- package/dist/x-modal.js +8 -8
- package/dist/x-morph-stack.js +37 -37
- package/dist/x-multi-combobox.js +34 -34
- package/dist/x-navbar.js +7 -7
- package/dist/x-neural-glow.js +26 -26
- package/dist/x-organic-divider.js +9 -9
- package/dist/x-organic-progress.js +24 -24
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +18 -18
- package/dist/x-pagination.js +7 -7
- package/dist/x-particle-button.js +27 -27
- package/dist/x-popover.js +22 -22
- package/dist/x-progress-circle.js +4 -4
- package/dist/x-progress.js +4 -4
- package/dist/x-radio.js +10 -10
- package/dist/x-range-slider.js +25 -25
- package/dist/x-rating.js +20 -20
- package/dist/x-ripple-effect.js +7 -7
- package/dist/x-scroll-parallax.js +14 -14
- package/dist/x-scroll-stack.js +16 -16
- package/dist/x-scroll-story.js +16 -16
- package/dist/x-scroll-timeline.js +39 -39
- package/dist/x-scroll.js +17 -17
- package/dist/x-sidebar.js +11 -11
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-slider.js +12 -12
- package/dist/x-soft-body.js +16 -16
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +3 -3
- package/dist/x-splash.js +9 -9
- package/dist/x-split-pane.js +7 -7
- package/dist/x-spotlight-card.js +8 -8
- package/dist/x-stat.js +7 -7
- package/dist/x-switch.js +5 -5
- package/dist/x-table-cell.js +12 -12
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.d.ts +32 -32
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +10 -10
- package/dist/x-theme.js +24 -24
- package/dist/x-timeline.js +5 -5
- package/dist/x-toast.js +20 -20
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +11 -11
- package/dist/x-trace-history.js +122 -122
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +59 -59
- package/package.json +1 -1
package/dist/x-trace-history.js
CHANGED
|
@@ -1,129 +1,129 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
b);else{var c=
|
|
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:"")},
|
|
5
|
-
return b}return
|
|
6
|
-
$APP.Rr),f=$APP.C(a,
|
|
7
|
-
b.field=c,a=
|
|
8
|
-
$APP.Ce(function(c){var d=$APP.B(c,0,null);$APP.B(c,1,null);return $APP.cd(b,d)}),a)},
|
|
9
|
-
x[y]=A;u+=1}else if(k=$APP.q(k))$APP.Zc(k)?(r=$APP.Eb(k),k=$APP.Fb(k),m=r,r=$APP.w(r)):(m=$APP.t(k),r=$APP.B(m,0,null),u=$APP.B(m,1,null),m=e,r=""+$APP.P.i(r),u={tag:$APP.Rr.i(u),firstSeen:
|
|
10
|
-
(r=$APP.Eb(c),c=$APP.Fb(c),m=r,r=$APP.w(r)):(m=$APP.t(c),A=$APP.G(m),m=$APP.C(A,$APP.hu),r=$APP.C(A,$APP.Z),u=$APP.C(A,
|
|
2
|
+
var fN=function(a,b,c){for(var d=$APP.q(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.q(d))$APP.Zc(d)?(e=$APP.Eb(d),d=$APP.Fb(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},gN=function(a,b){const c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},hN=function(a,b){if(a!=null&&a.Ac!=null)a=a.Ac(a,
|
|
3
|
+
b);else{var c=hN[$APP.ba(a==null?null:a)];if(c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else if(c=hN._,c!=null)a=c.j?c.j(a,b):c.call(null,a,b);else throw $APP.va("IReset.-reset!",a);}return a},iN=function(a){return a+1},Iga=function(a){return a-1},Jga=function(a,b){return $APP.id(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.gd($APP.dd);return e.j?e.j(c,d):e.call(null,c,d)},b)},jN=function(a,b){return Jga(a,b)},kN=function(a){if(a instanceof RegExp)return a;var b=$APP.sh(/^\(\?([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:"")},Kga=function(a){return $APP.Qd($APP.za(function(b,c){return $APP.Td(b,c,$APP.Kc(b,c,0)+1)},$APP.xb($APP.je),a))},Lga=function(a){return new $APP.J(null,2,5,$APP.K,[$APP.ve(200,a),$APP.we(200,a)],null)},lN=function(a,b){if(a instanceof $APP.te){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&&fN(a,c,b);
|
|
5
|
+
return b}return hN(a,b)},mN=function(){var a=window;var b=a.location.search;b=b==null?null:$APP.sh(Mga,b);return $APP.D(b)||$APP.l(a,"BAREDOM_TRACE_HISTORY")===!0||$APP.z.j("raw",$APP.l(a,"BAREDOM_TRACE_HISTORY"))},Nga=function(a){a=a==null?null:a.tagName;a=a==null?null:a.toLowerCase();return $APP.n(a)?a:"document"},nN=function(a){try{return a==null?null:$APP.$m(a)}catch(b){try{return""+$APP.P.i(a)}catch(c){return"(unprintable)"}}},Oga=function(a,b,c){a=$APP.G(a);var d=$APP.C(a,$APP.N),e=$APP.C(a,
|
|
6
|
+
$APP.Rr),f=$APP.C(a,oN),h=$APP.C(a,pN);var k=$APP.Gd(d);k=$APP.n(k)?""+$APP.P.i(k)+"/"+$APP.P.i($APP.jh(d)):$APP.jh(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.bj.i(a),b.eventName=c,c=nN($APP.V.i(a)),b.detail=c,c=$APP.D($APP.cj.i(a)),b.cancelable=c,a=$APP.D($APP.dj.i(a)),b.defaultPrevented=a,b;case "state/instance-field-set":return c=$APP.Si.i(a),
|
|
7
|
+
b.field=c,a=nN($APP.Ti.i(a)),b.value=a,b;case "dom/attribute-set":return c=$APP.ni.i(a),b.attribute=c,a=$APP.Ti.i(a),b.value=a,b;case "dom/attribute-removed":return a=$APP.ni.i(a),b.attribute=a,b;case "lifecycle/attribute-changed":return c=$APP.ni.i(a),b.attribute=c,c=$APP.oi.i(a),b.oldValue=c,a=$APP.pi.i(a),b.newValue=a,b;case "lifecycle/connected":case "lifecycle/disconnected":return b;default:return b}},qN=function(a){a=""+$APP.P.i(a);return a.length<2?"0"+$APP.P.i(a):a},Pga=function(a,b){return $APP.Ff.m($APP.je,
|
|
8
|
+
$APP.Ce(function(c){var d=$APP.B(c,0,null);$APP.B(c,1,null);return $APP.cd(b,d)}),a)},zN=function(a,b,c,d){var e=$APP.G(d);d=$APP.C(e,rN);var f=$APP.C(e,$APP.mu),h=$APP.C(e,sN);e=$APP.C(e,tN);a:{var k=a.length;for(var m=0,r=$APP.xb($APP.ch);;){if(m>=k){k=$APP.zb(r);break a}var u=a[m].componentId;m+=1;r=u!=null?$APP.yb(r,u):r}k=void 0}k=Pga(b,k);b=$APP.D(e);e={};k=$APP.q(k);m=null;for(u=r=0;;)if(u<r){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.Rr.i(A),firstSeen:uN.i(A)};
|
|
9
|
+
x[y]=A;u+=1}else if(k=$APP.q(k))$APP.Zc(k)?(r=$APP.Eb(k),k=$APP.Fb(k),m=r,r=$APP.w(r)):(m=$APP.t(k),r=$APP.B(m,0,null),u=$APP.B(m,1,null),m=e,r=""+$APP.P.i(r),u={tag:$APP.Rr.i(u),firstSeen:uN.i(u)},m[r]=u,k=$APP.v(k),m=null,r=0),u=0;else break;k=[];c=$APP.q(c);m=null;for(u=r=0;;)if(u<r){x=m.C(null,u);var E=$APP.G(x);x=$APP.C(E,$APP.hu);y=$APP.C(E,$APP.Z);A=$APP.C(E,vN);var H=$APP.C(E,wN),O=$APP.C(E,xN);E=$APP.C(E,yN);k.push({id:x,label:y,startT:A,endT:H,startId:O,endId:E});u+=1}else if(c=$APP.q(c))$APP.Zc(c)?
|
|
10
|
+
(r=$APP.Eb(c),c=$APP.Fb(c),m=r,r=$APP.w(r)):(m=$APP.t(c),A=$APP.G(m),m=$APP.C(A,$APP.hu),r=$APP.C(A,$APP.Z),u=$APP.C(A,vN),x=$APP.C(A,wN),y=$APP.C(A,xN),A=$APP.C(A,yN),k.push({id:m,label:r,startT:u,endT:x,startId:y,endId:A}),c=$APP.v(c),m=null,r=0),u=0;else break;return{schemaVersion:1,exportedAt:d,origin:f,userAgent:h,forensic:b,components:e,sessions:k,records:a}},AN=function(a){if($APP.sa(a)){if(typeof a.schemaVersion!=="number")return new $APP.M(null,1,[$APP.vj,"Envelope is missing schemaVersion."],
|
|
11
11
|
null);if($APP.I(1,a.schemaVersion))return new $APP.M(null,1,[$APP.vj,"Schema version mismatch: expected "+$APP.P.i(1)+", got "+$APP.P.i(a.schemaVersion)+"."],null);if($APP.p($APP.ra(a.records)))return new $APP.M(null,1,[$APP.vj,"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.sa(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.Et,a],null):new $APP.M(null,1,[$APP.vj,"Record at index "+$APP.P.i(b)+" is missing required fields (id, t, type)."],null)}return new $APP.M(null,1,[$APP.vj,"Envelope is not a JSON object."],null)},
|
|
13
|
-
return $APP.n(b)?b:
|
|
14
|
-
$APP.Dc(a))))},
|
|
15
|
-
$APP.P.i($APP.n(a.defaultPrevented)?" (prevented)":null)+$APP.P.i(function(){var b=
|
|
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.Qh($APP.Dc([a.oldValue])))+" → "+$APP.P.i($APP.Qh($APP.Dc([a.newValue])));default:return"("+$APP.P.i(a.type)+")"}},
|
|
17
|
-
"s";var b=$APP.td(a,6E4)/1E3;return""+$APP.P.i(Math.floor(a/6E4))+"m"+$APP.P.i(b.toFixed(1))+"s"},
|
|
18
|
-
a);a=$APP.$d($APP.Rl,b);b=$APP.$d($APP.Ql,b);return new $APP.M(null,3,[
|
|
19
|
-
4)},a);return $APP.Ze(
|
|
20
|
-
a=
|
|
21
|
-
2,[
|
|
22
|
-
d)?"lane":"lanes"),b=$APP.P,d=b.i,c=
|
|
23
|
-
d=$APP.n(d)?d:{};b=$APP.jh(b);d[b]=c;a.__xTraceHistoryUiState=d},
|
|
24
|
-
$APP.B(b,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},
|
|
25
|
-
|
|
26
|
-
c;return new $APP.M(null,2,[$APP.hu,c,
|
|
27
|
-
if($APP.n($APP.l(a,"__xTraceHistoryInternal")))return!0;a=
|
|
28
|
-
f+=1;else break}c+=1}}}else return null},
|
|
29
|
-
$APP.Rr,k,$APP.Dc([
|
|
30
|
-
case "state/instance-field-set":return""+$APP.P.i(b)+":fld:"+$APP.P.i($APP.Si.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.P.i(b)+":attr:"+$APP.P.i($APP.ni.i(a));default:return null}else return null},
|
|
31
|
-
|
|
32
|
-
e:$APP.cb(
|
|
33
|
-
c.detail,$APP.cj,c.cancelable,$APP.dj,c.defaultPrevented],null),k,f,!0),
|
|
34
|
-
0,null),e=$APP.B(c,1,null),c=b,d=""+$APP.P.i(d),e={tag:$APP.Rr.i(e),firstSeen:
|
|
35
|
-
$APP.Mq,!0);return
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[]},
|
|
39
|
-
a=$APP.C(b,$APP.hu);var c=$APP.C(b,$APP.Z),d=$APP.C(b,
|
|
40
|
-
c.userAgent;return $APP.n(c)?c:""}(),
|
|
41
|
-
{type:"application/json"}));c=document.createElement("a");c.href=b;c.download=a;c.style.display="none";document.body.appendChild(c);try{var e=c.click()}finally{document.body.removeChild(c),URL.revokeObjectURL(b)}return e},
|
|
42
|
-
"none")},
|
|
43
|
-
$APP.P.i(
|
|
44
|
-
"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(
|
|
45
|
-
b,c,d){a=
|
|
46
|
-
c)?f:null},e)},a);return $APP.n(a)?(d=d.i?d.i(a):d.call(null,a),"\x3cline class\x3d'density-selected' x1\x3d'"+$APP.P.i(d)+"' y1\x3d'"+$APP.P.i(b)+"' x2\x3d'"+$APP.P.i(d)+"' y2\x3d'"+$APP.P.i(b+20)+"' /\x3e"):""},
|
|
47
|
-
|
|
48
|
-
$APP.P.i(u)+"' /\x3e"},a)))+$APP.P.i(
|
|
49
|
-
f.id:null,m=$APP.Ff.j($APP.je,$APP.re(function(A,E){E=$APP.G(E);E=$APP.C(E,
|
|
50
|
-
|
|
51
|
-
$APP.P.i(a.type)},
|
|
52
|
-
"'\x3e"+$APP.P.i($APP.$d($APP.P,$APP.xe.j(
|
|
53
|
-
null)+"' x\x3d'"+$APP.P.i(m)+"' y\x3d'"+$APP.P.i(r)+"' width\x3d'"+$APP.P.i(140)+"' height\x3d'"+$APP.P.i(28)+"' /\x3e\x3ccircle class\x3d'node-dot' cx\x3d'"+$APP.P.i(x)+"' cy\x3d'"+$APP.P.i(h)+"' r\x3d'"+$APP.P.i(4)+"' fill\x3d'"+$APP.P.i(
|
|
54
|
-
f:""+$APP.P.i(f.substring(0,21))+"…";return k+m.call(h,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
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.So);h=$APP.C(h,$APP.To);var k=
|
|
58
|
-
d){c=$APP.zb(f);break a}var h=c[e].value;e+=1;f=$APP.z.j(h,"all")?f:$APP.yb(f,h)}c=void 0}b=$APP.Ee(c,b);$APP.q(b)&&(b=$APP.$d($APP.P,$APP.xe.j(
|
|
59
|
-
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(
|
|
60
|
-
new $APP.M(null,5,[
|
|
61
|
-
null)},$APP.Dc(b));return $APP.$d($APP.P,$APP.xe.j(
|
|
62
|
-
$APP.P.i(a.id)+"' title\x3d'"+$APP.P.i(
|
|
63
|
-
$APP.Rv);h=$APP.C(h
|
|
64
|
-
|
|
65
|
-
c);b!=null&&$APP.z.j(
|
|
66
|
-
break;default:b.removeAttribute("hidden"),c.setAttribute("hidden",""),a.classList.remove("causality-mode")}},
|
|
12
|
+
1,[$APP.Et,a],null):new $APP.M(null,1,[$APP.vj,"Record at index "+$APP.P.i(b)+" is missing required fields (id, t, type)."],null)}return new $APP.M(null,1,[$APP.vj,"Envelope is not a JSON object."],null)},Qga=function(a,b,c){return $APP.w(a)>=c?$APP.Ad.j($APP.Rc(a),b):$APP.Ad.j(a,b)},Rga=function(){var a=tN.i($APP.cb(BN));return $APP.n(a)?$APP.gh(CN):$APP.wp.j($APP.gh(CN),$APP.Lu)},EN=function(a){var b=$APP.oe(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.cd(c,a)?d:null},Sga);
|
|
13
|
+
return $APP.n(b)?b:DN},FN=function(a){try{var b=JSON.stringify(a)}catch(c){b=""}return $APP.n(b)?b.toLowerCase():""},JN=function(a,b){var c=$APP.G(b),d=$APP.C(c,$APP.Rr),e=$APP.C(c,GN);b=$APP.C(c,HN);c=$APP.Kc(c,IN,FN);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,EN(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},KN=function(a,b){return $APP.Ze(jN(function(c){return c.t},$APP.De(function(c){return JN(c,b)},
|
|
14
|
+
$APP.Dc(a))))},LN=function(a,b){return typeof b==="number"?a.find(function(c){return $APP.z.j(b,c.id)}):null},MN=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},NN=function(a){switch(a.type){case "event/dispatch":return""+$APP.P.i(a.eventName)+$APP.P.i(function(){var b=MN(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=MN(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=MN(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=MN(a.value);return $APP.n(b)?b:"null"}());case "dom/attribute-set":return""+$APP.P.i(a.attribute)+"\x3d"+$APP.P.i($APP.Qh($APP.Dc([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.Qh($APP.Dc([a.oldValue])))+" → "+$APP.P.i($APP.Qh($APP.Dc([a.newValue])));default:return"("+$APP.P.i(a.type)+")"}},ON=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.td(a,6E4)/1E3;return""+$APP.P.i(Math.floor(a/6E4))+"m"+$APP.P.i(b.toFixed(1))+"s"},QN=function(a){a=EN(a.type);return $APP.C(PN,$APP.n(a)?a:DN)},SN=function(a){a=a.componentId;return $APP.n(a)?a:RN},Tga=function(a){return $APP.Ze(jN(TN,$APP.xe.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,[UN,c,$APP.Rr,d.tag,TN,$APP.$d($APP.Rl,$APP.xe.j(function(e){return e.t},b))],null)},$APP.Yh(SN,a))))},XN=function(a){if($APP.q(a)){var b=$APP.xe.j(function(c){return c.t},
|
|
18
|
+
a);a=$APP.$d($APP.Rl,b);b=$APP.$d($APP.Ql,b);return new $APP.M(null,3,[VN,a,Uga,b,WN,$APP.Ql.j(1,b-a)],null)}return null},Vga=function(a,b){return $APP.q(a)?$APP.ae(YN,function(c){return Math.abs(c.t-b)},a):null},Wga=function(a){if($APP.q(a)){var b=Kga($APP.xe.j(function(d){return EN(d.type)},a)),c=$APP.$d($APP.Ql,$APP.Mg(b));a=$APP.oe(function(d){return $APP.z.j(c,$APP.C(b,d))?d:null},CN);return $APP.n(a)?a:DN}return null},$ga=function(a,b){a=$APP.Yh(function(c){c=b.i?b.i(c):b.call(null,c);return Math.floor(c/
|
|
19
|
+
4)},a);return $APP.Ze(jN(ZN,$APP.xe.j(function(c){var d=$APP.B(c,0,null),e=$APP.B(c,1,null);c=$APP.xe.j(function(f){return f.t},e);e=$APP.Ze(jN(function(f){return f.id},e));return new $APP.M(null,7,[ZN,d,$N,e,aO,Wga(e),bO,d*4,Xga,(d+1)*4,Yga,$APP.$d($APP.Rl,c),Zga,$APP.$d($APP.Ql,c)],null)},a)))},aha=function(a){return $APP.oe(function(b){return $APP.w($N.i(b))>3},a)},bha=function(a){return $APP.q(a)?$APP.$d($APP.Ql,$APP.xe.j(function(b){return $APP.w($N.i(b))},a)):0},cha=function(a,b){var c=b.id;
|
|
20
|
+
a=jN(function(d){return d.t},$APP.De(function(d){return $APP.z.j(c,d.causeId)},$APP.Dc(a)));return new $APP.M(null,2,[$APP.Rv,$APP.w(a),$N,$APP.Ze($APP.ve(50,a))],null)},dha=function(a,b){return $APP.Ze(jN(function(c){return c.id},$APP.De(function(c){return $APP.z.j(b,c.causeId)},$APP.Dc(a))))},eha=function(a,b){var c=Lga(cO(a,b));a=$APP.B(c,0,null);c=$APP.B(c,1,null);var d=$APP.Yh(function(e){return e.causeId},a);return $APP.Zg.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,[dO,f,eO,$APP.Ge(h,k)],null)}(b),fO,$APP.D($APP.q(c)))},fha=function(a,b){return typeof b==="number"?$APP.oe(function(c){return $APP.z.j(b,$APP.hu.i(c))?c:null},gO.i(a)):null},gha=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=WN.i(c),c=$APP.n(c)?" · spanning "+$APP.P.i(ON(c)):null,c=a+d.call(b,c));return c},iO=function(a){return $APP.Yc(a)&&$APP.z.j(hO,$APP.t(a))},kO=function(a){return $APP.Yc(a)&&$APP.z.j(jO,$APP.t(a))},lO=function(a){return $APP.Yc(a)&&($APP.z.j(hO,$APP.t(a))||$APP.z.j(jO,$APP.t(a)))?$APP.Gc(a):null},mO=function(a,b){a=$APP.l(a,"__xTraceHistoryUiState");return $APP.n(a)?(b=$APP.l(a,$APP.jh(b)),void 0===b?null:b):null},nO=function(a,b,c){var d=$APP.l(a,"__xTraceHistoryUiState");
|
|
23
|
+
d=$APP.n(d)?d:{};b=$APP.jh(b);d[b]=c;a.__xTraceHistoryUiState=d},pO=function(){var a=$N.i($APP.cb(BN)),b=$APP.cb(oO),c=b[1];if(b[0]===a)return c;b=$APP.$m($APP.Ze(a));lN(oO,[a,b]);return b},hha=function(){var a=qO.J(rO,$APP.Zg,$APP.Ll,!1);a=$APP.G(a);a=$APP.C(a,sO);a=$APP.q(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.q(a)){if($APP.Zc(a))c=$APP.Eb(a),a=$APP.Fb(a),b=c,c=$APP.w(c);else{b=$APP.t(a);
|
|
24
|
+
$APP.B(b,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},tO=function(){if(rO instanceof $APP.te){var a=rO.state;a=$APP.Zg.m?$APP.Zg.m(a,$APP.Ll,!0):$APP.Zg.call(null,a,$APP.Ll,!0);if(rO instanceof $APP.te){var b=rO.oc;if(b!=null&&!$APP.n(b.i?b.i(a):b.call(null,a)))throw Error("Validator rejected reference state");b=rO.state;rO.state=a;rO.cc!=null&&fN(rO,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(rO),
|
|
25
|
+
hN(rO,a)],null)}else a=new $APP.J(null,2,5,$APP.K,[$APP.cb(rO),$APP.rp(rO,$APP.Zg,$APP.Ll,!0)],null);b=$APP.B(a,0,null);$APP.B(a,1,null);return $APP.n($APP.Ll.i(b))?null:requestAnimationFrame(hha)},iha=function(a,b){var c=uO.i(a)+1;return vO($APP.Zg.m(a,uO,c),new $APP.J(null,2,5,$APP.K,[sO,c],null),b)},jha=function(a,b,c){if($APP.z.j("document",b))return new $APP.M(null,2,[$APP.hu,null,wO,!1],null);b=$APP.l(a,"__xTraceHistoryId");if(b!=null)return new $APP.M(null,2,[$APP.hu,b,wO,!1],null);a.__xTraceHistoryId=
|
|
26
|
+
c;return new $APP.M(null,2,[$APP.hu,c,wO,!0],null)},zO=function(){var a=qO.J(BN,xO,yO,iN);return yO.i(a)-1},kha=function(a){qO.j(AO,iN);try{a.H?a.H():a.call(null)}finally{qO.j(AO,Iga)}},BO=function(a){var b=a.getRootNode();return b instanceof ShadowRoot?b.host:a.parentNode},CO=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=BO(a)}else return null},DO=function(a){if(a instanceof Node)for(a=BO(a);;){if(a==null||a===document)return!1;
|
|
27
|
+
if($APP.n($APP.l(a,"__xTraceHistoryInternal")))return!0;a=BO(a)}else return!1},EO=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]),
|
|
28
|
+
f+=1;else break}c+=1}}}else return null},FO=function(a){var b=$APP.ki.i(a);return $APP.cd(lha,$APP.N.i(a))?b instanceof Node?(a=$APP.l(b,"__xTraceHistoryInternal"),$APP.n(a)?a:DO(b)):!1:DO(b)},JO=function(a,b,c,d){var e=$APP.cb(BN),f=$APP.ki.i(a);if(!$APP.n(function(){var u=(u=$APP.p(d))?$APP.Mq.i(e):u;return $APP.n(u)?u:FO(a)}())){var h=function(){var u=CO(f);return $APP.n(u)?u:f}(),k=Nga(h);h=jha(h,k,GO.i(e));var m=$APP.G(h);h=$APP.C(m,$APP.hu);m=$APP.C(m,wO);var r=$APP.Qc($APP.cb(HO));r=$APP.Zg.B(a,
|
|
29
|
+
$APP.Rr,k,$APP.Dc([oN,h,pN,r]));b=Oga(r,b,c);b=Qga($N.i(e),b,$APP.Kl.i(e));c=$APP.n(m)?$APP.Zg.m(IO.i(e),h,new $APP.M(null,2,[$APP.Rr,k,uN,c],null)):IO.i(e);k=$APP.n(m)?h+1:GO.i(e);qO.B(BN,$APP.Zg,$N,b,$APP.Dc([GO,k,IO,c]));tO()}},KO=function(a,b){var c=CO(b);b=$APP.l($APP.n(c)?c:b,"__xTraceHistoryId");if($APP.n(b))switch(c=$APP.N.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.bj.i(a));
|
|
30
|
+
case "state/instance-field-set":return""+$APP.P.i(b)+":fld:"+$APP.P.i($APP.Si.i(a));case "dom/attribute-set":case "dom/attribute-removed":return""+$APP.P.i(b)+":attr:"+$APP.P.i($APP.ni.i(a));default:return null}else return null},MO=function(a,b,c,d){var e=$APP.p(tN.i(a));return e?(b=KO(b,c),$APP.n(b)?(a=$APP.C(LO.i(a),b),$APP.n(a)?d-a<16:null):null):e},NO=function(a,b,c){if($APP.n(tN.i($APP.cb(BN))))return null;a=KO(a,b);return $APP.n(a)?qO.J(BN,vO,new $APP.J(null,2,5,$APP.K,[LO,a],null),c):null},
|
|
31
|
+
PO=function(a){var b=$APP.N.i(a),c=$APP.ki.i(a),d=performance.now();if($APP.n(function(){var f=$APP.cb(AO)>0;if(f)return f;f=$APP.cb(OO);f=$APP.n(f)?$APP.cd(mha,b):f;if($APP.n(f))return f;f=FO(a);return $APP.n(f)?f:MO($APP.cb(BN),a,c,d)}()))return null;var e=zO();JO(a,e,d,!1);return NO(a,c,d)},nha=function(){var a=EventTarget.prototype,b=a.dispatchEvent;$APP.n($APP.l(b,"__xTraceHistoryWrapped"))||(lN(QO,b),b=function(c){var d=$APP.cb(QO);var e=$APP.p($APP.cb(OO));e||(e=$APP.Mq.i($APP.cb(BN)),e=$APP.n(e)?
|
|
32
|
+
e:$APP.cb(AO)>0||DO(this));if($APP.n(e))c=d.call(this,c);else{e=c instanceof CustomEvent;var f=performance.now(),h=e?new $APP.M(null,2,[$APP.N,this===document?$APP.hj:$APP.n(c.cancelable)?$APP.fj:$APP.aj,$APP.bj,c.type],null):null;if($APP.n(e?MO($APP.cb(BN),h,this,f):e))c=d.call(this,c);else{var k=zO();qO.m(HO,$APP.Ad,k);try{var m=d.call(this,c)}finally{qO.j(HO,$APP.Rc)}if(e)try{JO(new $APP.M(null,6,[$APP.N,this===document?$APP.hj:$APP.n(c.cancelable)?$APP.fj:$APP.aj,$APP.ki,this,$APP.bj,c.type,$APP.V,
|
|
33
|
+
c.detail,$APP.cj,c.cancelable,$APP.dj,c.defaultPrevented],null),k,f,!0),NO(h,this,f)}catch(r){}c=m}}return c},b.__xTraceHistoryWrapped=!0,a.dispatchEvent=b)},oha=function(){return pO()},pha=function(){var a=IO.i($APP.cb(BN)),b={};a=$APP.q(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.Rr.i(k),firstSeen:uN.i(k)};f[h]=k;e+=1}else if(a=$APP.q(a))$APP.Zc(a)?(d=$APP.Eb(a),a=$APP.Fb(a),c=d,d=$APP.w(d)):(c=$APP.t(a),d=$APP.B(c,
|
|
34
|
+
0,null),e=$APP.B(c,1,null),c=b,d=""+$APP.P.i(d),e={tag:$APP.Rr.i(e),firstSeen:uN.i(e)},c[d]=e,a=$APP.v(a),c=null,d=0),e=0;else break;return b},qha=function(a){var b=a.components;return b==null?$APP.Fe:$APP.xe.j(function(c){return $APP.l(b,c).tag},Object.keys(b))},rha=function(){var a=$APP.cb(BN),b=$APP.xe.j($APP.Rr,$APP.Mg(IO.i(a)));a=$APP.Be(function(c){c=$APP.G(c);c=$APP.C(c,RO);return qha(c)},$APP.Dc([SO.i(a)]));return $APP.Ze($APP.Ff.j($APP.ih(),$APP.Ae.j(b,a)))},TO=function(){qO.J(BN,$APP.Zg,
|
|
35
|
+
$APP.Mq,!0);return tO()},UO=function(){qO.J(BN,$APP.Zg,$APP.Mq,!1);return tO()},ZO=function(){qO.B(BN,$APP.Zg,$N,VO,$APP.Dc([yO,0,WO,$APP.Fe,XO,0,YO,null,LO,$APP.je]));return tO()},$O=function(){return YO.i($APP.cb(BN))},sha=function(a,b,c,d){return b==null?a:$APP.Ge(function(e){e=$APP.G(e);var f=$APP.C(e,$APP.hu);return $APP.z.j(f,b)?$APP.Zg.B(e,wN,c,$APP.Dc([yN,d])):e},a)},aP=function(){var a=performance.now();qO.j(BN,function(b){return $APP.Zg.m(xO.va(b,WO,sha,YO.i(b),a,yO.i(b)),YO,null)});return tO()},
|
|
36
|
+
bP=function(){$O()!=null&&(console.warn("[x-trace-history] start-session! called while a session was already active — stopping the previous one"),aP());var a=performance.now();qO.j(BN,function(b){var c=XO.i(b),d=yO.i(b);return $APP.Zg.B(xO.J(b,WO,$APP.Ad,new $APP.M(null,6,[$APP.hu,c,$APP.Z,"Session "+$APP.P.i(c),vN,a,wN,null,xN,d,yN,null],null)),YO,c,$APP.Dc([XO,c+1]))});tO();return YO.i($APP.cb(BN))},cP=function(a,b){var c=$APP.G(b);b=$APP.C(c,xN);c=$APP.C(c,yN);a=a.id;return a>=b&&(c==null||a<c)},
|
|
37
|
+
dP=function(){var a=$APP.cb(BN),b=pO(),c=$APP.Dc(b);return $APP.$m($APP.Ge(function(d){var e=$APP.G(d);d=$APP.C(e,$APP.hu);var f=$APP.C(e,$APP.Z),h=$APP.C(e,vN),k=$APP.C(e,wN),m=$APP.w($APP.De(function(r){return cP(r,e)},c));return{id:d,label:f,startT:h,endT:$APP.n(k)?k:null,recordCount:m}},WO.i(a)))},eP=function(a){var b=$APP.cb(BN),c=$APP.t($APP.De(function(d){return $APP.z.j($APP.hu.i(d),a)},WO.i(b)));return $APP.n(c)?$APP.$m(jN(function(d){return d.t},$APP.De(function(d){return cP(d,c)},$APP.Ec(pO())))):
|
|
38
|
+
[]},tha=function(a){if(typeof a==="string"){try{var b=JSON.parse(a)}catch(c){b=fP}a=$APP.z.j(b,fP)?new $APP.M(null,1,[$APP.vj,"File is not valid JSON."],null):AN(b)}else a=$APP.sa(a)?AN(a):new $APP.M(null,1,[$APP.vj,"Import expects a JSON string or a parsed envelope object."],null);return a},gP=function(a){qO.J(BN,xO,SO,function(b){return $APP.Ze($APP.Ee(function(c){c=$APP.G(c);c=$APP.C(c,$APP.hu);return $APP.z.j(c,a)},b))});return tO()},iP=function(){return $APP.$m($APP.Ge(function(a){var b=$APP.G(a);
|
|
39
|
+
a=$APP.C(b,$APP.hu);var c=$APP.C(b,$APP.Z),d=$APP.C(b,hP);b=$APP.C(b,RO);return{id:a,label:c,importedAt:d,recordCount:b.records.length}},SO.i($APP.cb(BN))))},jP=function(a){var b=$APP.t($APP.De(function(c){return $APP.z.j($APP.hu.i(c),a)},SO.i($APP.cb(BN))));return $APP.n(b)?RO.i(b).records:[]},kP=function(a,b){return new $APP.M(null,4,[rN,a.getTime(),$APP.mu,function(){var c=window;c=c==null?null:c.location;c=c==null?null:c.href;return $APP.n(c)?c:""}(),sN,function(){var c=navigator;c=c==null?null:
|
|
40
|
+
c.userAgent;return $APP.n(c)?c:""}(),tN,b],null)},uha=function(){var a=$APP.cb(BN),b=pO(),c=kP(new Date,tN.i(a));return zN(b,IO.i(a),WO.i(a),c)},lP=function(){var a=new Date,b=$APP.cb(BN),c=pO(),d=kP(a,tN.i(b));b=zN(c,IO.i(b),WO.i(b),d);b=JSON.stringify(b,null,2);a=""+$APP.P.i("baredom-trace-")+$APP.P.i(a.getFullYear())+$APP.P.i(qN(a.getMonth()+1))+$APP.P.i(qN(a.getDate()))+"-"+$APP.P.i(qN(a.getHours()))+$APP.P.i(qN(a.getMinutes()))+$APP.P.i(qN(a.getSeconds()))+$APP.P.i(".trace.json");b=URL.createObjectURL(new Blob([b],
|
|
41
|
+
{type:"application/json"}));c=document.createElement("a");c.href=b;c.download=a;c.style.display="none";document.body.appendChild(c);try{var e=c.click()}finally{document.body.removeChild(c),URL.revokeObjectURL(b)}return e},mP=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"},nP=function(a){a=$APP.l(a,"__xTraceHistoryHighlightBox");$APP.n(a)&&(a.style.display=
|
|
42
|
+
"none")},oP=function(a){var b=$APP.l(a,"__xTraceHistoryHighlightCid");if($APP.n(b)){b=EO(b);if($APP.n(b))return a=$APP.l(a,"__xTraceHistoryHighlightBox"),$APP.n(a)?(mP(a,b),a.style.display="block"):null;nP(a);return $APP.Zi(a,"__xTraceHistoryHighlightCid",null)}return null},pP=function(a){return(""+$APP.P.i(a)).replace(vha,"\x26amp;").replace(wha,"\x26lt;").replace(xha,"\x26gt;").replace(yha,"\x26quot;").replace(zha,"\x26#39;")},Aha=function(a){return"\x3coption value\x3d'"+$APP.P.i(pP(a))+"'\x3e"+
|
|
43
|
+
$APP.P.i(pP(a))+"\x3c/option\x3e"},qP=function(a,b){return"\x3clabel class\x3d'cat'\x3e\x3cx-checkbox data-x-th-cat\x3d'"+$APP.P.i(a)+"' "+$APP.P.i($APP.n(b)?"checked ":null)+"aria-label\x3d'"+$APP.P.i(a)+"'\x3e\x3c/x-checkbox\x3e"+$APP.P.i(a)+"\x3c/label\x3e"},Bha=function(a,b){return $APP.$d($APP.P,$APP.xe.j(function(c){var d=$APP.G(c);c=$APP.C(d,UN);var e=$APP.C(d,$APP.Rr),f=$APP.G(d);d=$APP.C(f,UN);f=$APP.C(f,$APP.Rr);d=$APP.z.j(RN,d)?"document":""+$APP.P.i(f)+" #"+$APP.P.i(d);f=$APP.z.j(RN,c)?
|
|
44
|
+
"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(pP(f))+"' title\x3d'"+$APP.P.i(pP(d))+"'\x3e"+$APP.P.i(pP($APP.z.j(RN,c)?"document":e))+$APP.P.i($APP.I(RN,c)?" \x3cspan class\x3d'cid'\x3e#"+$APP.P.i(c)+"\x3c/span\x3e":null)+"\x3c/div\x3e"},a))},Cha=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":""},rP=function(a,
|
|
45
|
+
b,c,d){a=jN(function(e){return $APP.z.j(e.id,d)?1:0},a);return $APP.$d($APP.P,$APP.xe.j(function(e){var f=c.i?c.i(e):c.call(null,e),h=b+10,k=$APP.z.j(e.id,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(QN(e))+"' /\x3e"},a))},Dha=function(a,b,c,d){if(c==null)return"";a=$APP.oe(function(e){e=$APP.G(e);e=$APP.C(e,$N);return $APP.oe(function(f){return $APP.z.j(f.id,
|
|
46
|
+
c)?f:null},e)},a);return $APP.n(a)?(d=d.i?d.i(a):d.call(null,a),"\x3cline class\x3d'density-selected' x1\x3d'"+$APP.P.i(d)+"' y1\x3d'"+$APP.P.i(b)+"' x2\x3d'"+$APP.P.i(d)+"' y2\x3d'"+$APP.P.i(b+20)+"' /\x3e"):""},Eha=function(a,b,c,d){var e=bha(a);return""+$APP.P.i($APP.$d($APP.P,$APP.xe.j(function(f){var h=$APP.G(f),k=$APP.C(h,$N);f=$APP.C(h,aO);h=$APP.C(h,bO);var m=$APP.t(k),r=$APP.C(PN,$APP.n(f)?f:DN);var u=$APP.w(k);u=u==null||u===0||e==null||e===0?0:u>=e?1:.4+.6*((u-1)/$APP.Ql.j(1,e-1));var x=
|
|
47
|
+
pP($APP.jh($APP.n(f)?f:DN));k=$APP.w(k);f=""+$APP.P.i(k)+" "+$APP.P.i($APP.z.j(1,k)?"record":"records")+" · "+$APP.P.i($APP.jh($APP.n(f)?f:DN));return"\x3crect class\x3d'density-bin' role\x3d'button' aria-label\x3d'"+$APP.P.i(pP(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(r)+"' fill-opacity\x3d'"+
|
|
48
|
+
$APP.P.i(u)+"' /\x3e"},a)))+$APP.P.i(Dha(a,b,c,d))},Fha=function(a,b,c,d,e,f){function h(A){a:{var E=$APP.C(x,A.id);var H=a instanceof $APP.F?a.da:null;switch(H){case "order":A=$APP.Ql.j(0,e-16);E=u===0||u<0?8:$APP.z.j(1,u)?8+A/2:8+$APP.Rl.j($APP.Ql.j(E/(u-1),0),1)*A;break a;case "time":E=A.t;H=$APP.G(d);A=$APP.C(H,VN);H=$APP.C(H,WN);var O=$APP.Ql.j(0,e-16);E=A==null||H==null?8:8+$APP.Rl.j($APP.Ql.j((E-A)/H,0),1)*O;break a;default:throw Error("No matching clause: "+$APP.P.i(H));}}return E}var k=$APP.n(f)?
|
|
49
|
+
f.id:null,m=$APP.Ff.j($APP.je,$APP.re(function(A,E){E=$APP.G(E);E=$APP.C(E,UN);return new $APP.J(null,2,5,$APP.K,[E,A*20],null)},c)),r=$APP.Ql.j(20,20*$APP.w(c)),u=$APP.w(b),x=$APP.Ff.j($APP.je,$APP.re(function(A,E){return new $APP.J(null,2,5,$APP.K,[E.id,A],null)},b)),y=$APP.Yh(SN,b);return"\x3csvg class\x3d'timeline-svg' width\x3d'"+$APP.P.i(e)+"' height\x3d'"+$APP.P.i(r)+"' viewBox\x3d'0 0 "+$APP.P.i(e)+" "+$APP.P.i(r)+"'\x3e"+$APP.P.i($APP.$d($APP.P,$APP.xe.j(function(A){A=$APP.G(A);var E=$APP.C(A,
|
|
50
|
+
UN);A=$APP.Kc(y,E,$APP.Fe);E=$APP.C(m,E);if($APP.z.j(sP,a)){var H=$ga(A,h);A=$APP.n(aha(H))?Eha(H,E,k,h):rP(A,E,h,k)}else A=rP(A,E,h,k);return A},c)))+$APP.P.i(Cha(f,$APP.n(f)?h(f):null,r))+"\x3c/svg\x3e"},Gha=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.Ql.j(200,b.clientWidth);a.innerHTML=Bha(e,k);b.innerHTML=Fha(c,d,e,f,m,h)}},tP=function(a){return""+$APP.P.i(a.tag)+" · "+
|
|
51
|
+
$APP.P.i(a.type)},Hha=function(a){var b=$APP.G(a);a=$APP.C(b,uP);var c=$APP.C(b,vP),d=$APP.C(b,wP);b=$APP.C(b,xP);c+=14;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"},Iha=function(a,b){var c=$APP.G(a);a=$APP.C(c,gO);var d=$APP.C(c,yP),e=$APP.C(c,$APP.So);c=$APP.C(c,$APP.To);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)+
|
|
52
|
+
"'\x3e"+$APP.P.i($APP.$d($APP.P,$APP.xe.j(Hha,d)))+$APP.P.i($APP.$d($APP.P,$APP.xe.j(function(f){var h=$APP.G(f),k=$APP.C(h,$APP.hu);f=$APP.C(h,dO);var m=$APP.C(h,zP);h=$APP.C(h,AP);m-=70;var r=h-14,u=$APP.z.j(k,b),x=m+12,y=m+22,A=m+22,E=r+18,H=r+11,O=pP("#"+$APP.P.i(k)+" "+$APP.P.i(tP(f))+" · "+$APP.P.i(NN(f)));k="\x3cg data-x-th-link-id\x3d'"+$APP.P.i(k)+"' role\x3d'button' aria-label\x3d'"+$APP.P.i(O)+"'\x3e\x3ctitle\x3e"+$APP.P.i(O)+"\x3c/title\x3e\x3crect class\x3d'node-rect"+$APP.P.i(u?" selected":
|
|
53
|
+
null)+"' x\x3d'"+$APP.P.i(m)+"' y\x3d'"+$APP.P.i(r)+"' width\x3d'"+$APP.P.i(140)+"' height\x3d'"+$APP.P.i(28)+"' /\x3e\x3ccircle class\x3d'node-dot' cx\x3d'"+$APP.P.i(x)+"' cy\x3d'"+$APP.P.i(h)+"' r\x3d'"+$APP.P.i(4)+"' fill\x3d'"+$APP.P.i(QN(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=tP(f);f=""+$APP.P.i(f);f=f.length<=22?
|
|
54
|
+
f:""+$APP.P.i(f.substring(0,21))+"…";return k+m.call(h,pP(f))+"\x3c/text\x3e\x3c/g\x3e"},a)))+"\x3c/svg\x3e"},Kha=function(a,b,c,d){if(d==null)nO(a,BP,null),b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+$APP.P.i(pP("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=LN(c,h);if($APP.n(h))f+=1,e=h;else break a}e=void 0}e=eha(c,e);c=new $APP.M(null,2,[CP,DP(e),Jha,EP(e)],null);if($APP.n(fO.i(e)))nO(a,
|
|
55
|
+
BP,null),a=$APP.P,d=a.i,c=$APP.G(c),c=$APP.C(c,CP),c="Causality tree exceeds the "+$APP.P.i(200)+"-node cap (≥ "+$APP.P.i(c)+" nodes). Pick a smaller leaf record to view its subtree.",b.innerHTML="\x3cdiv class\x3d'causality-empty'\x3e"+d.call(a,pP(c))+"\x3c/div\x3e";else{e=FP(e,0,16);f=$APP.B(e,0,null);$APP.B(e,1,null);e=GP(f);f=HP(f);h=$APP.za($APP.Ql,0,$APP.xe.j(zP,e));var k=$APP.za($APP.Ql,0,$APP.xe.j(AP,e));e=new $APP.M(null,4,[gO,e,yP,f,$APP.So,h+70+16,$APP.To,k+14+16],null);c=$APP.z.j(1,CP.i(c));
|
|
56
|
+
nO(a,BP,e);b.innerHTML=""+$APP.P.i(c?"\x3cdiv class\x3d'causality-leaf-hint'\x3e"+$APP.P.i(pP("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":null)+$APP.P.i(Iha(e,d.id))}}},Lha=function(a){if($APP.n(mO(a,IP))){var b=$APP.l(a,"__xTraceHistoryCausalityEl"),c=mO(a,BP),d=JP.i?JP.i(a):JP.call(null,a),e=$APP.n(c)?fha(c,d):null,f=b==null?null:b.clientWidth;d=b==null?null:b.clientHeight;
|
|
57
|
+
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.So);h=$APP.C(h,$APP.To);var k=zP.i(e),m=AP.i(e);e=k-f/2;k=m-d/2;f=$APP.Ql.j(0,c-f);d=$APP.Ql.j(0,h-d);d=new $APP.M(null,2,[KP,$APP.Ql.j(0,$APP.Rl.j(f,e)),LP,$APP.Ql.j(0,$APP.Rl.j(d,k))],null);f=$APP.G(d);d=$APP.C(f,KP);f=$APP.C(f,LP);b.scrollLeft=d;b.scrollTop=f;nO(a,IP,!1)}}},Mha=function(a){var b=rha();a:{var c=a.querySelectorAll("option");for(var d=c.length,e=0,f=$APP.xb($APP.ch);;){if(e>=
|
|
58
|
+
d){c=$APP.zb(f);break a}var h=c[e].value;e+=1;f=$APP.z.j(h,"all")?f:$APP.yb(f,h)}c=void 0}b=$APP.Ee(c,b);$APP.q(b)&&(b=$APP.$d($APP.P,$APP.xe.j(Aha,b)),a.insertAdjacentHTML("beforeend",b))},Nha=function(a){var b=$APP.Mq.i($APP.cb(BN));a.textContent=$APP.n(b)?"Resume":"Pause";a.pressed=b},Oha=function(a){var b=$O()!=null;a.textContent=b?"Stop":"Record";a.pressed=b},Pha=function(a){var b=$APP.G(a);a=$APP.C(b,MP);var c=$APP.C(b,$APP.Gn),d=$APP.C(b,NP),e=$APP.C(b,OP),f=$APP.C(b,$APP.Z);b=$APP.C(b,PP);
|
|
59
|
+
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(pP(a))+"'\x3e"+$APP.P.i($APP.n(d)?"\x3cspan class\x3d'live-dot' aria-hidden\x3d'true'\x3e\x3c/span\x3e":null)+$APP.P.i(pP(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"},Qha=function(a,b,c,d){var e=
|
|
60
|
+
new $APP.M(null,5,[MP,"live",$APP.Gn,$APP.z.j(c,$APP.Kq),NP,!1,OP,!1,$APP.Z,"Live"],null),f=iO(c)?lO(c):null,h=kO(c)?lO(c):null;a=$APP.Ge(function(k){var m=k.id;return new $APP.M(null,5,[MP,""+$APP.P.i(m),$APP.Gn,$APP.z.j(m,f),NP,$APP.z.j(m,d),OP,!1,$APP.Z,""+$APP.P.i(k.label)+" · "+$APP.P.i(k.recordCount)],null)},$APP.Dc(a));b=$APP.Ge(function(k){var m=k.id;return new $APP.M(null,6,[MP,"import:"+$APP.P.i(m),$APP.Gn,$APP.z.j(m,h),NP,!1,OP,!0,PP,m,$APP.Z,""+$APP.P.i(k.label)+" · "+$APP.P.i(k.recordCount)],
|
|
61
|
+
null)},$APP.Dc(b));return $APP.$d($APP.P,$APP.xe.j(Pha,$APP.Ae.B(new $APP.J(null,1,5,$APP.K,[e],null),a,$APP.Dc([b]))))},Rha=function(a,b,c,d,e){a.innerHTML=Qha(b,c,d,e);b.length===0&&c.length===0?a.setAttribute("hidden",""):a.removeAttribute("hidden")},QP=function(a){var b=NN(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.Ai(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'"+
|
|
62
|
+
$APP.P.i(a.id)+"' title\x3d'"+$APP.P.i(pP(b))+"'\x3e"+$APP.P.i(pP(b))+"\x3c/x-button\x3e"},Sha=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"?LN(c,f):null;f=cha(c,d);e="\x3cpre class\x3d'detail-json'\x3e"+$APP.P.i(pP(e))+"\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(QP(h))+"\x3c/div\x3e":null);c=$APP.P;d=c.i;h=$APP.G(f);f=$APP.C(h,
|
|
63
|
+
$APP.Rv);h=$APP.C(h,$N);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.$d($APP.P,$APP.xe.j(QP,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","")},SP=function(a){var b=
|
|
64
|
+
RP.get(a);if($APP.n(b))return b;b=FN(a);RP.set(a,b);return b},TP=function(a){return $APP.z.j(a,$APP.Kq)?"live":iO(a)?"session:"+$APP.P.i(lO(a)):kO(a)?"import:"+$APP.P.i(lO(a)):"live"},JP=function(a){var b=$APP.l(a,"__xTraceHistoryView");a=$APP.l(a,"__xTraceHistoryViewSelected");return $APP.n(a)?$APP.l(a,TP(b)):null},VP=function(a,b){var c=$APP.l(a,"__xTraceHistoryViewSelected");c=$APP.n(c)?c:{};var d=TP($APP.l(a,"__xTraceHistoryView"));b==null?d in c&&delete c[d]:c[d]=b;$APP.Q(a,"__xTraceHistoryViewSelected",
|
|
65
|
+
c);b!=null&&$APP.z.j(UP,$APP.l(a,"__xTraceHistoryDockMode"))&&nO(a,IP,!0)},Tha=function(a,b,c){var d=JP(a);b=LN(b,d);if(b==null)return null;if(JN(b,$APP.Zg.m(c,IN,SP)))return b;VP(a,null);return null},WP=function(a){return $APP.z.j(a,$APP.Kq)?pO():iO(a)?(a=eP(lO(a)),a.length===0?pO():a):kO(a)?(a=jP(lO(a)),a.length===0?pO():a):pO()},Uha=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");
|
|
66
|
+
break;default:b.removeAttribute("hidden"),c.setAttribute("hidden",""),a.classList.remove("causality-mode")}},XP=function(a){nP(a);return $APP.Zi(a,"__xTraceHistoryHighlightCid",null)},Vha=function(a,b){if(b!=null&&b.componentId!=null&&$APP.I("document",b.tag))if($APP.z.j(b.componentId,$APP.l(a,"__xTraceHistoryHighlightCid")))b=oP(a);else{var c=b.componentId;b=EO(c);if($APP.n(b)){$APP.Zi(a,"__xTraceHistoryHighlightCid",c);c=$APP.l(a,"__xTraceHistoryHighlightBox");if($APP.n(c))a=c;else{c=$APP.Ck(a,
|
|
67
67
|
":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",
|
|
68
|
-
9998);var d=c.shadowRoot,e=document.createElement("div");e.className="outline";d.appendChild(e);$APP.Zi(a,"__xTraceHistoryHighlightLayer",c);$APP.Zi(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(
|
|
69
|
-
|
|
70
|
-
A=$APP.l(a,"__xTraceHistoryFilter"),E=$APP.l(a,"__xTraceHistoryView"),H=
|
|
71
|
-
""+$APP.P.i(T);m.textContent=
|
|
72
|
-
$APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.n(a)?(a.textContent=$APP.n(b)?"»":"«",a.setAttribute("aria-expanded",$APP.n(b)?"false":"true")):null},
|
|
73
|
-
case "causality":return
|
|
74
|
-
e=$APP.l(a,"__xTraceHistoryTimelineEl");a=
|
|
75
|
-
c:h:f)?new $APP.M(null,3,[
|
|
76
|
-
"")},
|
|
77
|
-
$APP.P.i(b));}return $APP.n(c)?(
|
|
78
|
-
d);b.removeEventListener("pointerup",y);return b.removeEventListener("pointercancel",y)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},
|
|
79
|
-
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.Qc(c);break a;default:throw Error("No matching clause: "+$APP.P.i(b));}else b=$APP.z.j(b,$APP.hs)?$APP.C(c,d+1):$APP.C(c,d-1)}else b=null;return $APP.n(b)?(
|
|
80
|
-
|
|
81
|
-
d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},
|
|
82
|
-
d=
|
|
68
|
+
9998);var d=c.shadowRoot,e=document.createElement("div");e.className="outline";d.appendChild(e);$APP.Zi(a,"__xTraceHistoryHighlightLayer",c);$APP.Zi(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(YP)?YP.matches:null)?"auto":"smooth"});mP(a,b);a.style.display="block";b=a;b.style.animation="none";b=b.style.animation=""}else b=
|
|
69
|
+
XP(a)}else b=XP(a);return b},$P=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"),r=$APP.l(a,"__xTraceHistoryPauseBtn"),u=$APP.l(a,"__xTraceHistoryRecordBtn"),x=$APP.l(a,"__xTraceHistorySessionsEl"),y=$APP.l(a,"__xTraceHistoryTagSelectEl"),
|
|
70
|
+
A=$APP.l(a,"__xTraceHistoryFilter"),E=$APP.l(a,"__xTraceHistoryView"),H=WP(E),O=KN(H,$APP.Zg.m(A,IN,SP)),T=$APP.w(O),R=H.length,aa=XN(O),ma=Tga(O),ia=Tha(a,H,A),na=dP(),Na=iP(),Oa=$O(),fb=function(){var Kb=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(Kb)?Kb:$APP.vs}(),qb=function(){var Kb=$APP.l(a,"__xTraceHistoryDockMode");return $APP.n(Kb)?Kb:ZP}();Mha(y);Uha(a,b,c,qb);switch(qb instanceof $APP.F?qb.da:null){case "causality":Kha(a,c,H,ia);break;default:Gha(d,e,fb,O,ma,aa,ia,$APP.Rr.i(A))}f.textContent=
|
|
71
|
+
""+$APP.P.i(T);m.textContent=gha(T,R,aa,$APP.w(ma));Sha(h,k,H,ia);Nha(r);Oha(u);Rha(x,na,Na,E,Oa);Lha(a);return Vha(a,ia)},aQ=function(a){return $APP.n(a)?$APP.z.j("circle",a.tagName.toLowerCase()):a},bQ=function(a){return $APP.n(a)?$APP.z.j("rect",a.tagName.toLowerCase())&&a.getAttribute("data-x-th-bin-record-id")!=null:a},cQ=function(a){a=a.getAttribute("data-x-th-id");return $APP.n(a)?parseInt(a,10):null},dQ=function(a,b){$APP.n(b)?a.classList.add("collapsed"):a.classList.remove("collapsed");a=
|
|
72
|
+
$APP.l(a,"__xTraceHistoryCollapseBtn");return $APP.n(a)?(a.textContent=$APP.n(b)?"»":"«",a.setAttribute("aria-expanded",$APP.n(b)?"false":"true")):null},eQ=function(a){var b=!$APP.D($APP.l(a,"__xTraceHistoryCollapsed"));$APP.Q(a,"__xTraceHistoryCollapsed",b);return dQ(a,b)},Wha=function(a,b){$APP.Q(a,"__xTraceHistoryAxisMode",function(){switch(b){case "order":return $APP.vs;case "time":return sP;default:return $APP.vs}}());return $P(a)},Xha=function(a,b){var c=function(){switch(b){case "timeline":return ZP;
|
|
73
|
+
case "causality":return UP;default:return ZP}}();$APP.Q(a,"__xTraceHistoryDockMode",c);$APP.z.j(UP,c)?nO(a,IP,!0):nO(a,IP,!1);return $P(a)},fQ=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.Ql.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"},Yha=function(a,b){var c=b.target,d=$APP.l(a,"__xTraceHistoryTooltipEl"),
|
|
74
|
+
e=$APP.l(a,"__xTraceHistoryTimelineEl");a=WP($APP.l(a,"__xTraceHistoryView"));if($APP.n(aQ(c))){c=cQ(c);a=LN(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(NN(a))+"\n@ "+$APP.P.i(ON(a.t));b=fQ(d,e,b,a)}else b=null;return b}if($APP.n(bQ(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)?
|
|
75
|
+
c:h:f)?new $APP.M(null,3,[gQ,parseInt(f,10),hQ,parseInt(h,10),aO,$APP.Dh.i(c)],null):null;if($APP.n(c)){f=$APP.G(c);h=$APP.C(f,gQ);c=$APP.C(f,hQ);f=$APP.C(f,aO);a=LN(a,h);if($APP.n(a)){h=""+$APP.P.i(a.tag);k=$APP.P;var m=k.i;var r=a.componentId;r=$APP.n(r)?" #"+$APP.P.i(r):null;a=h+m.call(k,r)+"\n"+$APP.P.i(c)+" "+$APP.P.i($APP.z.j(1,c)?"record":"records")+" · "+$APP.P.i($APP.jh($APP.n(f)?f:DN))+"\n@ "+$APP.P.i(ON(a.t));b=fQ(d,e,b,a)}else b=null;return b}return null}return d.setAttribute("hidden",
|
|
76
|
+
"")},iQ=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.Ql.j(0,e-16);d===0||d<0?f=null:$APP.z.j(1,d)||e===0?f=0:(f=$APP.Rl.j($APP.Ql.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,VN);b=$APP.C(h,WN);var k=$APP.Ql.j(0,e-16);h==null||d==null||b==null?f=0:e===0||e<0||k===0?f=d:(f=$APP.Rl.j($APP.Ql.j((f-8)/k,0),1),f=d+f*b);c=Vga(c,f);break a;default:throw Error("No matching clause: "+
|
|
77
|
+
$APP.P.i(b));}return $APP.n(c)?(VP(a,c.id),$P(a)):null},Zha=function(a,b,c){function d(x){return iQ(a,k,r,u,f,x.clientX-e.left)}c.preventDefault();b.setPointerCapture(c.pointerId);var e=b.getBoundingClientRect(),f=$APP.Ql.j(200,b.clientWidth),h=$APP.l(a,"__xTraceHistoryFilter"),k=function(){var x=$APP.l(a,"__xTraceHistoryAxisMode");return $APP.n(x)?x:$APP.vs}(),m=WP($APP.l(a,"__xTraceHistoryView")),r=KN(m,$APP.Zg.m(h,IN,SP)),u=XN(r);iQ(a,k,r,u,f,c.clientX-e.left);c=function y(){b.removeEventListener("pointermove",
|
|
78
|
+
d);b.removeEventListener("pointerup",y);return b.removeEventListener("pointercancel",y)};b.addEventListener("pointermove",d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},jQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryFilter"),d=WP($APP.l(a,"__xTraceHistoryView"));c=KN(d,$APP.Zg.m(c,IN,SP));d=JP(a);a:if($APP.q(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=
|
|
79
|
+
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.Qc(c);break a;default:throw Error("No matching clause: "+$APP.P.i(b));}else b=$APP.z.j(b,$APP.hs)?$APP.C(c,d+1):$APP.C(c,d-1)}else b=null;return $APP.n(b)?(VP(a,b.id),$P(a)):null},kQ=function(a){var b=$APP.D(a==null?null:a.isContentEditable);b?a=b:(a=a==null?null:a.tagName,a=$APP.cd($ha,a==null?null:a.toLowerCase()));return a},aia=function(a,b){if(kQ(b.target))return null;switch(b.key){case "ArrowRight":return b.preventDefault(),
|
|
80
|
+
jQ(a,$APP.hs);case "ArrowLeft":return b.preventDefault(),jQ(a,$APP.as);default:return null}},bia=function(a,b,c){function d(h){h=$APP.Ql.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",
|
|
81
|
+
d);b.addEventListener("pointerup",c);return b.addEventListener("pointercancel",c)},cia=function(a){return a==null||$APP.z.j("",a)?null:gN(a,".trace.json")?$APP.wd(a,$APP.w(a)-11):gN(a,".json")?$APP.wd(a,$APP.w(a)-5):a},mQ=function(a,b){var c=$APP.l(a,"__xTraceHistoryHintEl"),d=mO(a,lQ);typeof d==="number"&&clearTimeout(d);c.textContent=b;c.classList.add("error");b=setTimeout(function(){c.classList.remove("error");nO(a,lQ,null);return $P(a)},4E3);return nO(a,lQ,b)},oQ=function(a,b){var c=new FileReader,
|
|
82
|
+
d=cia(b.name);c.onload=function(){var e=nQ.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,[jO,e],null)),e=$P(a)):e=mQ(a,"Import failed — see console for details.");return e};c.onerror=function(){return mQ(a,"Could not read file.")};return c.readAsText(b)},pQ=function(a){a=a.dataTransfer;return $APP.n(a)?a.types.includes("Files"):null},dia=function(a,b){var c=a.shadowRoot;a=$APP.n(c)?c:a.attachShadow({mode:"open"});
|
|
83
83
|
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; }")+
|
|
84
84
|
"\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"+
|
|
85
|
-
$APP.P.i(
|
|
86
|
-
a.innerHTML=c+e.call(d,b)}return a},
|
|
85
|
+
$APP.P.i(qP("events",$APP.cd(b,$APP.dv)))+$APP.P.i(qP("state",$APP.cd(b,$APP.Lu)))+$APP.P.i(qP("dom",$APP.cd(b,qQ)))+$APP.P.i(qP("lifecycle",$APP.cd(b,rQ)))+"\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";
|
|
86
|
+
a.innerHTML=c+e.call(d,b)}return a},eia=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]"));
|
|
87
87
|
$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",
|
|
88
|
-
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']"))},
|
|
89
|
-
|
|
90
|
-
$APP.Kq);
|
|
91
|
-
u=$APP.z.j(u,x)?null:u;r=$APP.Zg.m(r,$APP.Rr,u);$APP.Q(a,"__xTraceHistoryFilter",r);r=$APP.l(a,"__xTraceHistoryTagSelectEl");$APP.n(r)&&(r.value=$APP.n(u)?u:"all")
|
|
92
|
-
r)?null:m,
|
|
93
|
-
m=$APP.l(a,"__xTraceHistoryFilter");var x=
|
|
94
|
-
return m}],[c,"pointermove",function(m){return
|
|
95
|
-
[b,"dragenter",function(m){if($APP.n(
|
|
96
|
-
0?m.setAttribute("hidden",""):null}else m=null;return m}],[b,"drop",function(m){$APP.n(
|
|
97
|
-
m=null;return m}]]},
|
|
98
|
-
"__xTraceHistoryHighlightRaf",null);return
|
|
99
|
-
[$APP.Rr,null,
|
|
100
|
-
|
|
101
|
-
c)
|
|
102
|
-
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.sh(
|
|
103
|
-
imports:
|
|
104
|
-
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
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
arguments[3],arguments[4],arguments[5],6<c.length?new $APP.bc(c.slice(6),0,null):null)}};
|
|
109
|
-
|
|
110
|
-
var
|
|
111
|
-
else break;return
|
|
112
|
-
|
|
113
|
-
var
|
|
114
|
-
"auto-switch-import",-809333661),
|
|
115
|
-
"to-id","to-id",1021626465),
|
|
116
|
-
"categories","categories",178386610),
|
|
117
|
-
"parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),
|
|
118
|
-
755331060),
|
|
119
|
-
"depth","depth",1768663640),
|
|
120
|
-
"drag-depth","drag-depth",-226189617),
|
|
121
|
-
"document","baredom.dev.x-trace-history.model/document",-1776453896),
|
|
122
|
-
null,"dom/attribute-set",null],null),null),
|
|
123
|
-
b.id)]))},null))},
|
|
124
|
-
1,null);return new $APP.J(null,2,5,$APP.K,[$APP.Ad.j(u,r),m],null)},new $APP.J(null,2,5,$APP.K,[$APP.Fe,c],null),f);c=$APP.B(f,0,null);f=$APP.B(f,1,null);var h=
|
|
125
|
-
6,[
|
|
126
|
-
case 2:return
|
|
127
|
-
|
|
88
|
+
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']"))},fia=function(a,b,c,d,e,f,h,k){return[[b,"click",function(m){m=m.target;var r=m.closest("[data-x-th-action]");if($APP.n(r))switch(r.getAttribute("data-x-th-action")){case "pause":$APP.n($APP.Mq.i($APP.cb(BN)))?
|
|
89
|
+
UO():TO();break;case "record":$O()!=null?aP():bP();break;case "clear":$APP.Q(a,"__xTraceHistoryViewSelected",{});$APP.Q(a,"__xTraceHistoryView",$APP.Kq);ZO();break;case "export":lP();break;case "import":r=$APP.l(a,"__xTraceHistoryImportInput");$APP.n(r)&&(r.value="",r.click());break;case "collapse":eQ(a)}r=m.closest("[data-x-th-import-close]");if($APP.n(r)){r=parseInt(r.getAttribute("data-x-th-import-close"),10);var u=$APP.l(a,"__xTraceHistoryView");kO(u)&&$APP.z.j(r,lO(u))&&$APP.Q(a,"__xTraceHistoryView",
|
|
90
|
+
$APP.Kq);gP(r)}$APP.n(m.closest("[data-x-th-import-close]"))||(r=m.closest("[data-x-th-session]"),$APP.n(r)&&(r=r.getAttribute("data-x-th-session"),r=$APP.z.j(r,"live")?$APP.Kq:r.lastIndexOf("import:",0)==0?new $APP.J(null,2,5,$APP.K,[jO,parseInt(r.substring(7),10)],null):new $APP.J(null,2,5,$APP.K,[hO,parseInt(r,10)],null),$APP.Q(a,"__xTraceHistoryView",r),$P(a)));r=m.closest("[data-x-th-lane-tag]");if($APP.n(r)){u=r.getAttribute("data-x-th-lane-tag");r=$APP.l(a,"__xTraceHistoryFilter");var x=$APP.Rr.i(r);
|
|
91
|
+
u=$APP.z.j(u,x)?null:u;r=$APP.Zg.m(r,$APP.Rr,u);$APP.Q(a,"__xTraceHistoryFilter",r);r=$APP.l(a,"__xTraceHistoryTagSelectEl");$APP.n(r)&&(r.value=$APP.n(u)?u:"all");$P(a)}r=m.closest("[data-x-th-link-id]");$APP.n(r)&&(r=r.getAttribute("data-x-th-link-id"),$APP.n(r)&&(r=parseInt(r,10),$APP.n(isNaN(r))||(VP(a,r),$P(a))));r=aQ(m);r=$APP.n(r)?r:bQ(m);$APP.n(r)?($APP.n(aQ(m))?m=cQ(m):$APP.n(bQ(m))?(m=m.getAttribute("data-x-th-bin-record-id"),m=$APP.n(m)?parseInt(m,10):null):m=null,r=JP(a),m=$APP.z.j(m,
|
|
92
|
+
r)?null:m,VP(a,m),m=$P(a)):m=null;return m}],[b,"select-change",function(m){var r=m.target;m=m.detail.value;r.getAttribute("data-x-th-tag")!=null?(r=$APP.Zg.m($APP.l(a,"__xTraceHistoryFilter"),$APP.Rr,$APP.z.j(m,"all")?null:m),$APP.Q(a,"__xTraceHistoryFilter",r),r=$P(a)):r=r.getAttribute("data-x-th-mode")!=null?Xha(a,m):r.getAttribute("data-x-th-axis")!=null?Wha(a,m):null;return r}],[b,"x-checkbox-change",function(m){var r=m.target.getAttribute("data-x-th-cat");if(r!=null){var u=m.detail.checked;
|
|
93
|
+
m=$APP.l(a,"__xTraceHistoryFilter");var x=GN.i(m);x=$APP.n(x)?x:$APP.gh(CN);r=$APP.Dh.i(r);r=$APP.n(u)?$APP.Ad.j(x,r):$APP.wp.j(x,r);m=$APP.Zg.m(m,GN,r);$APP.Q(a,"__xTraceHistoryFilter",m);m=$P(a)}else m=null;return m}],[b,"x-search-field-input",function(m){var r=m.target;$APP.n($APP.n(r)?r.hasAttribute("data-x-th-search"):r)?(m=m.detail.value,m=($APP.n(m)?m:"").toLowerCase(),m=$APP.Zg.m($APP.l(a,"__xTraceHistoryFilter"),HN,$APP.z.j("",m)?null:m),$APP.Q(a,"__xTraceHistoryFilter",m),m=$P(a)):m=null;
|
|
94
|
+
return m}],[c,"pointermove",function(m){return Yha(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 aia(a,m)}],[d,"pointerdown",function(m){return Zha(a,$APP.l(a,"__xTraceHistorySvgPaneEl"),m)}],[e,"pointerdown",function(m){return bia(f,e,m)}],[h,"change",function(m){m=m.target.files;return m.length>0?oQ(a,m[0]):null}],
|
|
95
|
+
[b,"dragenter",function(m){if($APP.n(pQ(m))){m.preventDefault();m=$APP.l(a,"__xTraceHistoryDropOverlay");var r=mO(a,sQ);nO(a,sQ,($APP.n(r)?r:0)+1);m=m.removeAttribute("hidden")}else m=null;return m}],[b,"dragover",function(m){$APP.n(pQ(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(pQ(m))){m=$APP.l(a,"__xTraceHistoryDropOverlay");var r=$APP.Ql.j,u=mO(a,sQ);r=r.call($APP.Ql,0,($APP.n(u)?u:0)-1);nO(a,sQ,r);m=r===
|
|
96
|
+
0?m.setAttribute("hidden",""):null}else m=null;return m}],[b,"drop",function(m){$APP.n(pQ(m))?(m.preventDefault(),nO(a,sQ,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)?oQ(a,m[0]):null):m=null;return m}],[document,"keydown",function(m){var r;if(r=$APP.z.j("\\",m.key))r=m.metaKey,r=$APP.n(r)?r:m.ctrlKey,r=$APP.n(r)?$APP.p(m.altKey)&&$APP.p(m.shiftKey)&&!kQ(m.target):r;$APP.n(r)?(m.preventDefault(),m=eQ(a)):
|
|
97
|
+
m=null;return m}]]},gia=function(a,b){b=fia(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}},hia=function(a){if($APP.n($APP.l(a,"__xTraceHistoryHighlightRaf")))return null;var b=requestAnimationFrame(function(){$APP.Zi(a,
|
|
98
|
+
"__xTraceHistoryHighlightRaf",null);return oP(a)});return $APP.Zi(a,"__xTraceHistoryHighlightRaf",b)},iia=function(a){function b(){return hia(a)}var c=[[window,"scroll",b,{capture:!0,passive:!0}],[window,"resize",b,{capture:!1,passive:!0}]];$APP.Zi(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},jia=function(a,b){$APP.n($APP.l(a,"__xTraceHistoryFilter"))||$APP.Q(a,"__xTraceHistoryFilter",new $APP.M(null,3,
|
|
99
|
+
[$APP.Rr,null,GN,b,HN,null],null));$APP.n($APP.l(a,"__xTraceHistoryView"))||$APP.Q(a,"__xTraceHistoryView",$APP.Kq);$APP.n($APP.l(a,"__xTraceHistoryViewSelected"))||$APP.Q(a,"__xTraceHistoryViewSelected",{});$APP.n($APP.l(a,"__xTraceHistoryAxisMode"))||$APP.Q(a,"__xTraceHistoryAxisMode",$APP.vs);$APP.n($APP.l(a,"__xTraceHistoryDockMode"))||$APP.Q(a,"__xTraceHistoryDockMode",ZP);$APP.l(a,"__xTraceHistoryCollapsed")==null&&$APP.Q(a,"__xTraceHistoryCollapsed",!1);dQ(a,$APP.D($APP.l(a,"__xTraceHistoryCollapsed")))},
|
|
100
|
+
kia=function(a){if($APP.n($APP.l(a,"__xTraceHistoryMounted")))return null;a.__xTraceHistoryInternal=!0;var b=pO().length;kha(function(){var c=Rga(),d=dia(a,c);eia(a,d);jia(a,c);gia(a,d);iia(a);c=uO.i(qO.m(rO,iha,function(){var e=$APP.l(a,"__xTraceHistoryView"),f=iP(),h=f.length;var k=mO(a,tQ);k=$APP.n(k)?k:0;h>k?(nO(a,tQ,h),$APP.z.j(e,$APP.Kq)&&pO().length===0&&$APP.Q(a,"__xTraceHistoryView",new $APP.J(null,2,5,$APP.K,[jO,f[h-1].id],null))):h<k&&nO(a,tQ,h);return $P(a)}));$APP.Q(a,"__xTraceHistorySubToken",
|
|
101
|
+
c);$P(a);return $APP.Q(a,"__xTraceHistoryMounted",!0)});return $APP.I(b,pO().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},uQ=function(){return $APP.n(document.querySelector("x-trace-history"))?null:document.body.appendChild(document.createElement("x-trace-history"))},vQ=function(){if(mN()){var a=qO.B;var b=$APP.l(window,"BAREDOM_TRACE_HISTORY_CAPACITY");
|
|
102
|
+
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.sh(lia,c),d=$APP.D(c));a.call(qO,BN,$APP.Zg,$APP.Kl,b,$APP.Dc([tN,d]));lN($APP.Qi,PO);lN($APP.Zh,PO);lN(AO,0);lN(HO,$APP.Fe);nha();lN(OO,!0);a=$APP.l(window,"BareDOM");a=$APP.n(a)?a:{};a.traceHistory={records:oha,sessions:dP,"export":uha,download:lP,stopSession:aP,"import":nQ,pause:TO,importRecords:jP,sessionRecords:eP,startSession:bP,components:pha,clear:ZO,
|
|
103
|
+
imports:iP,removeImport:gP,resume:UO};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.qo();$APP.xm();$APP.Bk();$APP.Mo();$APP.ri("x-trace-history",mia);return mN()?$APP.n(document.body)?uQ():document.addEventListener("DOMContentLoaded",uQ,{once:!0}):null},wQ=function(){return vQ()},YN=function YN(a){switch(arguments.length){case 2:return YN.j(arguments[0],arguments[1]);case 3:return YN.m(arguments[0],
|
|
104
|
+
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 YN.B(arguments[0],arguments[1],arguments[2],3<c.length?new $APP.bc(c.slice(3),0,null):null)}};YN.j=function(a,b){return b};YN.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};YN.B=function(a,b,c,d){return $APP.za(function(e,f){return YN.m(a,e,f)},YN.m(a,b,c),d)};
|
|
105
|
+
YN.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)};YN.M=3;var xQ=function xQ(a){switch(arguments.length){case 0:return xQ.H();case 1:return xQ.i(arguments[0]);case 2:return xQ.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 xQ.B(arguments[0],arguments[1],2<c.length?new $APP.bc(c.slice(2),0,null):null)}};xQ.H=function(){return 0};xQ.i=function(a){return a};
|
|
106
|
+
xQ.j=function(a,b){return a+b};xQ.B=function(a,b,c){return $APP.za(xQ,a+b,c)};xQ.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)};xQ.M=2;
|
|
107
|
+
var xO=function xO(a){switch(arguments.length){case 3:return xO.m(arguments[0],arguments[1],arguments[2]);case 4:return xO.J(arguments[0],arguments[1],arguments[2],arguments[3]);case 5:return xO.W(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return xO.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 xO.B(arguments[0],arguments[1],arguments[2],
|
|
108
|
+
arguments[3],arguments[4],arguments[5],6<c.length?new $APP.bc(c.slice(6),0,null):null)}};xO.m=function(a,b,c){var d=$APP.Zg.m,e=$APP.C(a,b);c=c.i?c.i(e):c.call(null,e);return d.call($APP.Zg,a,b,c)};xO.J=function(a,b,c,d){var e=$APP.Zg.m,f=$APP.C(a,b);c=c.j?c.j(f,d):c.call(null,f,d);return e.call($APP.Zg,a,b,c)};xO.W=function(a,b,c,d,e){var f=$APP.Zg.m,h=$APP.C(a,b);c=c.m?c.m(h,d,e):c.call(null,h,d,e);return f.call($APP.Zg,a,b,c)};
|
|
109
|
+
xO.va=function(a,b,c,d,e,f){var h=$APP.Zg.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.Zg,a,b,c)};xO.B=function(a,b,c,d,e,f,h){return $APP.Zg.m(a,b,$APP.de(c,$APP.C(a,b),d,e,f,$APP.Dc([h])))};xO.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)};xO.M=6;
|
|
110
|
+
var vO=function vO(a,b,c){var e=$APP.q(b);b=$APP.t(e);var f=$APP.v(e);if(f){e=$APP.Zg.m;var h=$APP.C(a,b);c=vO.m?vO.m(h,f,c):vO.call(null,h,f,c);a=e.call($APP.Zg,a,b,c)}else a=$APP.Zg.m(a,b,c);return a},qO=function qO(a){switch(arguments.length){case 2:return qO.j(arguments[0],arguments[1]);case 3:return qO.m(arguments[0],arguments[1],arguments[2]);case 4:return qO.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;
|
|
111
|
+
else break;return qO.B(arguments[0],arguments[1],arguments[2],arguments[3],4<c.length?new $APP.bc(c.slice(4),0,null):null)}};qO.j=function(a,b){if(a instanceof $APP.te){var c=a.state;b=b.i?b.i(c):b.call(null,c);a=lN(a,b)}else a=$APP.rp(a,b);return a};qO.m=function(a,b,c){if(a instanceof $APP.te){var d=a.state;b=b.j?b.j(d,c):b.call(null,d,c);a=lN(a,b)}else a=$APP.rp(a,b,c);return a};
|
|
112
|
+
qO.J=function(a,b,c,d){if(a instanceof $APP.te){var e=a.state;b=b.m?b.m(e,c,d):b.call(null,e,c,d);a=lN(a,b)}else a=$APP.rp(a,b,c,d);return a};qO.B=function(a,b,c,d,e){return a instanceof $APP.te?lN(a,$APP.ce(b,a.state,c,d,e)):$APP.rp(a,b,c,d,e)};qO.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)};qO.M=4;
|
|
113
|
+
var vN=new $APP.F(null,"start-t","start-t",1829305353),pN=new $APP.F(null,"cause-id","cause-id",-1282947263),Xga=new $APP.F(null,"x-end","x-end",-1725631203),CP=new $APP.F(null,"node-count","node-count",383091297),xN=new $APP.F(null,"start-id","start-id",-456790067),yN=new $APP.F(null,"end-id","end-id",2084513705),Uga=new $APP.F(null,"tmax","tmax",2006118392),ZP=new $APP.F(null,"timeline","timeline",192903161),hQ=new $APP.F(null,"bin-count","bin-count",1792167977),tQ=new $APP.F(null,"auto-switch-import",
|
|
114
|
+
"auto-switch-import",-809333661),IP=new $APP.F(null,"causality-needs-fit","causality-needs-fit",1728707358),xP=new $APP.F(null,"to-cy","to-cy",1542880464),wP=new $APP.F(null,"to-cx","to-cx",698995232),LP=new $APP.F(null,"scroll-top","scroll-top",-46723100),MP=new $APP.F(null,"chip-key","chip-key",644014552),GO=new $APP.F(null,"next-component-id","next-component-id",1588977206),LO=new $APP.F(null,"rate-limit","rate-limit",1748082022),VN=new $APP.F(null,"tmin","tmin",-39508962),nia=new $APP.F(null,
|
|
115
|
+
"to-id","to-id",1021626465),yP=new $APP.F(null,"edges","edges",-694791395),uO=new $APP.F(null,"next-token","next-token",1432414974),Yga=new $APP.F(null,"t-min","t-min",-488887638),sN=new $APP.F(null,"user-agent","user-agent",1220426212),UP=new $APP.F(null,"causality","causality",-712927373),tN=new $APP.F(null,"forensic?","forensic?",188264321),HN=new $APP.F(null,"search","search",1564939822),hO=new $APP.F(null,"session","session",1008279103),yO=new $APP.F(null,"next-id","next-id",-224240762),GN=new $APP.F(null,
|
|
116
|
+
"categories","categories",178386610),BP=new $APP.F(null,"causality-layout","causality-layout",-1264013405),Zga=new $APP.F(null,"t-max","t-max",-949530573),NP=new $APP.F(null,"recording?","recording?",-1477514924),$N=new $APP.F(null,"records","records",1326822832),sP=new $APP.F(null,"time","time",1385887882),aO=new $APP.F(null,"dominant-cat","dominant-cat",-914257775),rQ=new $APP.F(null,"lifecycle","lifecycle",341496205),DN=new $APP.F(null,"other","other",995793544),fP=new $APP.F("baredom.dev.x-trace-history.model",
|
|
117
|
+
"parse-error","baredom.dev.x-trace-history.model/parse-error",840657481),wO=new $APP.F(null,"new?","new?",777958557),Jha=new $APP.F(null,"max-depth","max-depth",127060793),TN=new $APP.F(null,"min-t","min-t",-1349871659),fO=new $APP.F(null,"capped?","capped?",-65680820),SO=new $APP.F(null,"imports","imports",-1249933394),ZN=new $APP.F(null,"bin-i","bin-i",791326307),uN=new $APP.F(null,"first-seen","first-seen",390191468),OP=new $APP.F(null,"import?","import?",-40157302),AP=new $APP.F(null,"cy","cy",
|
|
118
|
+
755331060),eO=new $APP.F(null,"children","children",-940561982),zP=new $APP.F(null,"cx","cx",1272694324),qQ=new $APP.F(null,"dom","dom",-1236537922),XO=new $APP.F(null,"next-session-id","next-session-id",1944278844),bO=new $APP.F(null,"x-start","x-start",1183238797),KP=new $APP.F(null,"scroll-left","scroll-left",-211761103),hP=new $APP.F(null,"imported-at","imported-at",-1157103926),UN=new $APP.F(null,"lane-id","lane-id",2005926623),IN=new $APP.F(null,"haystack-fn","haystack-fn",1813797862),yQ=new $APP.F(null,
|
|
119
|
+
"depth","depth",1768663640),gQ=new $APP.F(null,"record-id","record-id",-1468971877),YO=new $APP.F(null,"active-session-id","active-session-id",943086451),uP=new $APP.F(null,"from-cx","from-cx",-293616201),vP=new $APP.F(null,"from-cy","from-cy",1126835724),WO=new $APP.F(null,"sessions","sessions",-699316392),rN=new $APP.F(null,"exported-at","exported-at",1661975683),oN=new $APP.F(null,"component-id","component-id",1551113783),lQ=new $APP.F(null,"import-error","import-error",1672727808),sQ=new $APP.F(null,
|
|
120
|
+
"drag-depth","drag-depth",-226189617),oia=new $APP.F(null,"from-id","from-id",-106962526),PP=new $APP.F(null,"import-id","import-id",940580069),gO=new $APP.F(null,"nodes","nodes",-2099585805),wN=new $APP.F(null,"end-t","end-t",-218701242),sO=new $APP.F(null,"by-token","by-token",-1485378511),zQ=new $APP.F(null,"next-import-id","next-import-id",287496955),dO=new $APP.F(null,"record","record",-779106859),WN=new $APP.F(null,"span","span",1394872991),RN=new $APP.F("baredom.dev.x-trace-history.model",
|
|
121
|
+
"document","baredom.dev.x-trace-history.model/document",-1776453896),IO=new $APP.F(null,"components","components",-1073188942),jO=new $APP.F(null,"import","import",-1399500709),RO=new $APP.F(null,"envelope","envelope",-236796318);var VO=$APP.Ff.j($APP.Ep,$APP.Fe),Mga=kN("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"(?:\x3d|\x26|$)"),lia=kN("(?:^\\?|\x26)"+$APP.P.i("baredom-trace-history")+"\x3d"+$APP.P.i("raw")+"(?:\x26|$)"),Sga=new $APP.M(null,4,[$APP.dv,new $APP.bh(null,new $APP.M(null,3,["event/dispatch",null,"event/dispatch-document",null,"event/dispatch-cancelable",null],null),null),$APP.Lu,new $APP.bh(null,new $APP.M(null,1,["state/instance-field-set",null],null),null),qQ,new $APP.bh(null,new $APP.M(null,2,["dom/attribute-removed",
|
|
122
|
+
null,"dom/attribute-set",null],null),null),rQ,new $APP.bh(null,new $APP.M(null,3,["lifecycle/attribute-changed",null,"lifecycle/connected",null,"lifecycle/disconnected",null],null),null)],null),CN=new $APP.J(null,4,5,$APP.K,[$APP.dv,$APP.Lu,qQ,rQ],null),PN=new $APP.M(null,5,[$APP.dv,"#94e2d5",$APP.Lu,"#f9e2af",qQ,"#fab387",rQ,"#cba6f7",DN,"#6c7086"],null),cO=function cO(a,b){return $APP.Ed(b,new $APP.Hd(null,function(){return $APP.Be(function(d){return cO.j?cO.j(a,d):cO.call(null,a,d)},$APP.Dc([dha(a,
|
|
123
|
+
b.id)]))},null))},DP=function DP(a){return $APP.za(xQ,0,$APP.xe.j(DP,eO.i(a)))+1},EP=function EP(a){return $APP.Sc(eO.i(a))?0:$APP.$d($APP.Ql,$APP.xe.j(EP,eO.i(a)))+1},FP=function FP(a,b,c){var e=dO.i(a),f=eO.i(a);a=30+b*56;if($APP.Sc(f))return new $APP.J(null,2,5,$APP.K,[new $APP.M(null,6,[$APP.hu,e.id,dO,e,zP,c+70,AP,a,yQ,b,eO,$APP.Fe],null),c+158],null);f=$APP.za(function(m,r){var u=$APP.B(m,0,null);m=$APP.B(m,1,null);var x=b+1;m=FP.m?FP.m(r,x,m):FP.call(null,r,x,m);r=$APP.B(m,0,null);m=$APP.B(m,
|
|
124
|
+
1,null);return new $APP.J(null,2,5,$APP.K,[$APP.Ad.j(u,r),m],null)},new $APP.J(null,2,5,$APP.K,[$APP.Fe,c],null),f);c=$APP.B(f,0,null);f=$APP.B(f,1,null);var h=zP.i($APP.t(c)),k=zP.i($APP.Hc(c));return new $APP.J(null,2,5,$APP.K,[new $APP.M(null,6,[$APP.hu,e.id,dO,e,zP,(h+k)/2,AP,a,yQ,b,eO,c],null),f],null)},GP=function GP(a){return $APP.Ff.j(new $APP.J(null,1,5,$APP.K,[$APP.vp.j(a,eO)],null),$APP.Be(GP,$APP.Dc([eO.i(a)])))},HP=function HP(a){var c=$APP.hu.i(a),d=zP.i(a),e=AP.i(a);return $APP.Ze($APP.Be(function(f){return $APP.Ed(new $APP.M(null,
|
|
125
|
+
6,[oia,c,uP,d,vP,e,nia,$APP.hu.i(f),wP,zP.i(f),xP,AP.i(f)],null),HP.i?HP.i(f):HP.call(null,f))},$APP.Dc([eO.i(a)])))};var BN=$APP.ue($APP.vg([tN,$APP.Kl,LO,yO,$APP.Mq,SO,$N,IO,YO,GO,WO,zQ,XO],[!1,5E3,$APP.je,0,!1,$APP.Fe,VO,$APP.je,null,0,$APP.Fe,0,0])),rO=$APP.ue(new $APP.M(null,3,[uO,0,$APP.Ll,!1,sO,$APP.je],null)),HO=$APP.ue($APP.Fe),QO=$APP.ue(null),OO=$APP.ue(!1),AO=$APP.ue(0),oO=$APP.ue([null,null]),lha=new $APP.bh(null,new $APP.M(null,3,[$APP.Xi,null,$APP.Ri,null,$APP.Wi,null],null),null),mha=new $APP.bh(null,new $APP.M(null,3,[$APP.fj,null,$APP.hj,null,$APP.aj,null],null),null),nQ=function nQ(a){switch(arguments.length){case 1:return nQ.i(arguments[0]);
|
|
126
|
+
case 2:return nQ.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",arguments.length].join(""));}};nQ.i=function(a){return nQ.j(a,null)};
|
|
127
|
+
nQ.j=function(a,b){a=tha(a);var c=$APP.G(a);a=$APP.C(c,$APP.Et);c=$APP.C(c,$APP.vj);if($APP.n(c))return console.warn("[x-trace-history] import rejected:",c),null;c=performance.now();var d=zQ.i($APP.cb(BN));b=b==null||$APP.z.j("",b)?"Import "+$APP.P.i(d):b;var e=new $APP.M(null,4,[$APP.hu,d,$APP.Z,b,hP,c,RO,a],null);qO.j(BN,function(f){return xO.m(xO.J(f,SO,$APP.Ad,e),zQ,iN)});tO();return d};nQ.M=2;var YP,AQ=window.matchMedia;YP=$APP.n(AQ)?AQ.call(window,"(prefers-reduced-motion: reduce)"):null;var vha=RegExp("\x26","g"),wha=RegExp("\x3c","g"),xha=RegExp("\x3e","g"),yha=RegExp('"',"g"),zha=RegExp("'","g"),RP=new WeakMap,$ha=new $APP.bh(null,new $APP.M(null,5,["x-select",null,"select",null,"input",null,"textarea",null,"x-checkbox",null],null),null),mia=new $APP.M(null,5,[$APP.fi,!0,$APP.ii,[],$APP.gi,function(a){return kia(a)},$APP.di,function(a){var b=$APP.l(a,"__xTraceHistorySubToken");$APP.n(b)&&qO.B(rO,xO,sO,$APP.vp,$APP.Dc([b]));b=mO(a,lQ);$APP.n(b)&&typeof b==="number"&&clearTimeout(b);
|
|
128
128
|
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.Zi(a,"__xTraceHistoryHighlightListeners",null)}b=$APP.l(a,"__xTraceHistoryHighlightRaf");$APP.n(b)&&(cancelAnimationFrame(b),$APP.Zi(a,"__xTraceHistoryHighlightRaf",
|
|
129
|
-
null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.n(b)&&$APP.Ek(b);$APP.Zi(a,"__xTraceHistoryHighlightLayer",null);$APP.Zi(a,"__xTraceHistoryHighlightBox",null);$APP.Zi(a,"__xTraceHistoryHighlightCid",null);$APP.Q(a,"__xTraceHistorySubToken",null);
|
|
129
|
+
null));b=$APP.l(a,"__xTraceHistoryHighlightLayer");$APP.n(b)&&$APP.Ek(b);$APP.Zi(a,"__xTraceHistoryHighlightLayer",null);$APP.Zi(a,"__xTraceHistoryHighlightBox",null);$APP.Zi(a,"__xTraceHistoryHighlightCid",null);$APP.Q(a,"__xTraceHistorySubToken",null);nO(a,lQ,null);return $APP.Q(a,"__xTraceHistoryMounted",null)},$APP.ci,function(){return null}],null);$APP.ha("baredom.exports.x_trace_history.init",wQ);vQ();export const init=wQ;
|