1
- // size: 17441 (min) 6584 (brotli)
1
+ // size: 17482 (min) 6602 (brotli)
2
2
var empty = [ ] ,
3
3
rest = Symbol ( ) ;
4
4
function attrTag ( attrs2 ) {
@@ -97,10 +97,10 @@ var registeredValues = {},
97
97
Render = class {
98
98
l = [ ] ;
99
99
m = { } ;
100
- z = { _ : registeredValues } ;
100
+ A = { _ : registeredValues } ;
101
101
constructor ( renders , runtimeId , renderId ) {
102
- ( this . A = renders ) ,
103
- ( this . B = runtimeId ) ,
102
+ ( this . B = renders ) ,
103
+ ( this . C = runtimeId ) ,
104
104
( this . n = renderId ) ,
105
105
( this . o = renders [ renderId ] ) ,
106
106
this . p ( ) ;
@@ -110,7 +110,7 @@ var registeredValues = {},
110
110
}
111
111
p ( ) {
112
112
let data2 = this . o ,
113
- serializeContext = this . z ,
113
+ serializeContext = this . A ,
114
114
scopeLookup = this . m ,
115
115
visits = data2 . v ,
116
116
branchIds = new Set ( ) ,
@@ -200,7 +200,7 @@ var registeredValues = {},
200
200
{ $global : $global } = scopeLookup ;
201
201
$global ||
202
202
( ( scopeLookup . $global = $global = scopes . $ || { } ) ,
203
- ( $global . runtimeId = this . B ) ,
203
+ ( $global . runtimeId = this . C ) ,
204
204
( $global . renderId = this . n ) ) ;
205
205
for ( let scopeId in scopes )
206
206
if ( "$" !== scopeId ) {
@@ -225,7 +225,7 @@ var registeredValues = {},
225
225
}
226
226
} else
227
227
i === len || "string" != typeof resumes [ i ]
228
- ? delete this . A [ this . n ]
228
+ ? delete this . B [ this . n ]
229
229
: registeredValues [ resumes [ i ++ ] ] (
230
230
scopeLookup [ resumeData ] ,
231
231
scopeLookup [ resumeData ] ,
@@ -781,7 +781,7 @@ function destroyBranch(branch) {
781
781
branch . q ?. j ?. delete ( branch ) , destroyNestedBranches ( branch ) ;
782
782
}
783
783
function destroyNestedBranches ( branch ) {
784
- ( branch . C = 1 ) ,
784
+ ( branch . s = 1 ) ,
785
785
branch . j ?. forEach ( destroyNestedBranches ) ,
786
786
branch . D ?. forEach ( ( scope ) => {
787
787
for ( let id in scope . g ) scope . g [ id ] ?. abort ( ) ;
@@ -800,10 +800,10 @@ var pendingRenders = [],
800
800
function queueRender ( scope , signal , signalKey , value2 , scopeKey = scope . d ) {
801
801
let key = 1024 * scopeKey + signalKey ,
802
802
existingRender = - 1 !== signalKey && pendingRendersLookup . get ( key ) ;
803
- if ( existingRender ) existingRender . s = value2 ;
803
+ if ( existingRender ) existingRender . t = value2 ;
804
804
else {
805
805
let i = pendingRenders . length ,
806
- render = { t : scope , E : signal , s : value2 , u : key } ;
806
+ render = { u : scope , E : signal , t : value2 , x : key } ;
807
807
for (
808
808
pendingRendersLookup . set ( key , render ) , pendingRenders . push ( render ) ;
809
809
i ;
@@ -879,15 +879,15 @@ function runRenders() {
879
879
}
880
880
pendingRenders [ i ] = item ;
881
881
}
882
- render . t . c ?. C || render . E ( render . t , render . s ) ;
882
+ render . u . c ?. s || render . E ( render . u , render . t ) ;
883
883
}
884
884
! ( function ( ) {
885
885
for ( let scope of pendingScopes ) scope . f = 0 ;
886
886
pendingScopes = [ ] ;
887
887
} ) ( ) ;
888
888
}
889
889
function comparePendingRenders ( a , b ) {
890
- return a . u - b . u ;
890
+ return a . x - b . x ;
891
891
}
892
892
function resetAbortSignal ( scope , id ) {
893
893
let ctrl = scope . g ?. [ id ] ;
@@ -983,13 +983,13 @@ function createBranch($global, renderer, parentScope, parentNode) {
983
983
let branch = createScope ( $global ) ,
984
984
parentBranch = parentScope ?. c ;
985
985
return (
986
- ( branch . _ = renderer . x || parentScope ) ,
986
+ ( branch . _ = renderer . y || parentScope ) ,
987
987
( branch . c = branch ) ,
988
988
parentBranch
989
- ? ( ( branch . y = parentBranch . y + 1 ) ,
989
+ ? ( ( branch . z = parentBranch . z + 1 ) ,
990
990
( branch . q = parentBranch ) ,
991
991
( parentBranch . j ||= new Set ( ) ) . add ( branch ) )
992
- : ( branch . y = 1 ) ,
992
+ : ( branch . z = 1 ) ,
993
993
renderer . k ?. ( branch , parentNode . namespaceURI ) ,
994
994
branch
995
995
) ;
@@ -1032,7 +1032,7 @@ function createContent(id, template, rawWalks, setup, getArgs) {
1032
1032
return ( owner ) => ( {
1033
1033
d : id ,
1034
1034
k : init2 ,
1035
- x : owner ,
1035
+ y : owner ,
1036
1036
get h ( ) {
1037
1037
return ( args ||= getArgs ?. ( ) ) ;
1038
1038
} ,
@@ -1102,10 +1102,22 @@ function loopClosure(valueAccessor, ownerLoopNodeAccessor, fn) {
1102
1102
loopScopeAccessor = ownerLoopNodeAccessor + "!" ,
1103
1103
loopScopeMapAccessor = ownerLoopNodeAccessor + "(" ,
1104
1104
ownerSignal = ( ownerScope ) => {
1105
- for ( let scope of ownerScope [ loopScopeAccessor ] ||
1106
- ownerScope [ loopScopeMapAccessor ] ?. values ( ) ||
1107
- [ ] )
1108
- scope . f || queueRender ( scope , childSignal , - 1 ) ;
1105
+ let scopes =
1106
+ ownerScope [ loopScopeAccessor ] ||
1107
+ ownerScope [ loopScopeMapAccessor ] ?. values ( ) ||
1108
+ [ ] ,
1109
+ [ firstScope ] = scopes ;
1110
+ firstScope &&
1111
+ queueRender (
1112
+ ownerScope ,
1113
+ ( ) => {
1114
+ for ( let scope of scopes )
1115
+ ! scope . f && ! scope . s && childSignal ( scope ) ;
1116
+ } ,
1117
+ - 1 ,
1118
+ 0 ,
1119
+ firstScope . d ,
1120
+ ) ;
1109
1121
} ;
1110
1122
return ( ownerSignal . _ = childSignal ) , ownerSignal ;
1111
1123
}
@@ -1521,7 +1533,7 @@ var classIdToBranch = new Map(),
1521
1533
branch
1522
1534
? ( existing = ! 0 )
1523
1535
: ( branch = component . scope =
1524
- createBranch ( out . global , renderer , renderer . x , document . body ) ) ,
1536
+ createBranch ( out . global , renderer , renderer . y , document . body ) ) ,
1525
1537
applyArgs ( branch , args ) ;
1526
1538
} ) ) ,
1527
1539
! existing )
0 commit comments