| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Data::TableData::Object::aohos; |
|
2
|
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
97
|
use 5.010001; |
|
|
4
|
|
|
|
|
16
|
|
|
4
|
4
|
|
|
4
|
|
25
|
use strict; |
|
|
4
|
|
|
|
|
9
|
|
|
|
4
|
|
|
|
|
135
|
|
|
5
|
4
|
|
|
4
|
|
23
|
use warnings; |
|
|
4
|
|
|
|
|
9
|
|
|
|
4
|
|
|
|
|
210
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
435
|
use parent 'Data::TableData::Object::Base'; |
|
|
4
|
|
|
|
|
351
|
|
|
|
4
|
|
|
|
|
37
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
|
10
|
|
|
|
|
|
|
our $DATE = '2021-11-17'; # DATE |
|
11
|
|
|
|
|
|
|
our $DIST = 'Data-TableData-Object'; # DIST |
|
12
|
|
|
|
|
|
|
our $VERSION = '0.114'; # VERSION |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
|
15
|
14
|
|
|
14
|
1
|
1713
|
my ($class, $data, $spec) = @_; |
|
16
|
14
|
|
|
|
|
64
|
my $self = bless { |
|
17
|
|
|
|
|
|
|
data => $data, |
|
18
|
|
|
|
|
|
|
spec => $spec, |
|
19
|
|
|
|
|
|
|
}, $class; |
|
20
|
14
|
100
|
|
|
|
69
|
if ($spec) { |
|
21
|
8
|
|
|
|
|
41
|
$self->{cols_by_idx} = []; |
|
22
|
8
|
|
|
|
|
22
|
my $ff = $spec->{fields}; |
|
23
|
8
|
|
|
|
|
40
|
for (keys %$ff) { |
|
24
|
22
|
|
|
|
|
62
|
$self->{cols_by_idx}[ $ff->{$_}{pos} ] = $_; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
$self->{cols_by_name} = { |
|
27
|
8
|
|
|
|
|
30
|
map { $_ => $ff->{$_}{pos} } |
|
|
22
|
|
|
|
|
72
|
|
|
28
|
|
|
|
|
|
|
keys %$ff |
|
29
|
|
|
|
|
|
|
}; |
|
30
|
|
|
|
|
|
|
} else { |
|
31
|
6
|
|
|
|
|
13
|
my %cols; |
|
32
|
6
|
|
|
|
|
19
|
for my $row (@$data) { |
|
33
|
11
|
|
|
|
|
46
|
$cols{$_}++ for keys %$row; |
|
34
|
|
|
|
|
|
|
} |
|
35
|
6
|
|
|
|
|
15
|
my $i = 0; |
|
36
|
6
|
|
|
|
|
24
|
$self->{cols_by_name} = {}; |
|
37
|
6
|
|
|
|
|
31
|
$self->{cols_by_idx} = []; |
|
38
|
6
|
|
|
|
|
40
|
for my $k (sort keys %cols) { |
|
39
|
14
|
|
|
|
|
31
|
$self->{cols_by_name}{$k} = $i; |
|
40
|
14
|
|
|
|
|
29
|
$self->{cols_by_idx}[$i] = $k; |
|
41
|
14
|
|
|
|
|
29
|
$i++; |
|
42
|
|
|
|
|
|
|
} |
|
43
|
|
|
|
|
|
|
} |
|
44
|
14
|
|
|
|
|
102
|
$self; |
|
45
|
|
|
|
|
|
|
} |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub row_count { |
|
48
|
7
|
|
|
7
|
1
|
15
|
my $self = shift; |
|
49
|
7
|
|
|
|
|
12
|
scalar @{ $self->{data} }; |
|
|
7
|
|
|
|
|
22
|
|
|
50
|
|
|
|
|
|
|
} |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub row { |
|
53
|
4
|
|
|
4
|
1
|
822
|
my ($self, $idx) = @_; |
|
54
|
4
|
|
|
|
|
26
|
$self->{data}[$idx]; |
|
55
|
|
|
|
|
|
|
} |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub row_as_aos { |
|
58
|
22
|
|
|
22
|
1
|
848
|
my ($self, $idx) = @_; |
|
59
|
22
|
|
|
|
|
43
|
my $row_hos = $self->{data}[$idx]; |
|
60
|
22
|
100
|
|
|
|
48
|
return undef unless $row_hos; ## no critic: Subroutines::ProhibitExplicitReturnUndef |
|
61
|
21
|
|
|
|
|
34
|
my $cols = $self->{cols_by_idx}; |
|
62
|
21
|
|
|
|
|
36
|
my $row_aos = []; |
|
63
|
21
|
|
|
|
|
31
|
for my $i (0..$#{$cols}) { |
|
|
21
|
|
|
|
|
46
|
|
|
64
|
63
|
|
|
|
|
137
|
$row_aos->[$i] = $row_hos->{$cols->[$i]}; |
|
65
|
|
|
|
|
|
|
} |
|
66
|
21
|
|
|
|
|
57
|
$row_aos; |
|
67
|
|
|
|
|
|
|
} |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
sub row_as_hos { |
|
70
|
4
|
|
|
4
|
1
|
837
|
my ($self, $idx) = @_; |
|
71
|
4
|
|
|
|
|
23
|
$self->{data}[$idx]; |
|
72
|
|
|
|
|
|
|
} |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
sub rows { |
|
75
|
1
|
|
|
1
|
1
|
836
|
my $self = shift; |
|
76
|
1
|
|
|
|
|
11
|
$self->{data}; |
|
77
|
|
|
|
|
|
|
} |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
sub rows_as_aoaos { |
|
80
|
1
|
|
|
1
|
1
|
814
|
my $self = shift; |
|
81
|
1
|
|
|
|
|
4
|
my $data = $self->{data}; |
|
82
|
|
|
|
|
|
|
|
|
83
|
1
|
|
|
|
|
3
|
my $cols = $self->{cols_by_idx}; |
|
84
|
1
|
|
|
|
|
3
|
my $rows = []; |
|
85
|
1
|
|
|
|
|
43
|
for my $hos (@{$self->{data}}) { |
|
|
1
|
|
|
|
|
29
|
|
|
86
|
3
|
|
|
|
|
7
|
my $row = []; |
|
87
|
3
|
|
|
|
|
6
|
for my $i (0..$#{$cols}) { |
|
|
3
|
|
|
|
|
9
|
|
|
88
|
9
|
|
|
|
|
19
|
$row->[$i] = $hos->{$cols->[$i]}; |
|
89
|
|
|
|
|
|
|
} |
|
90
|
3
|
|
|
|
|
7
|
push @$rows, $row; |
|
91
|
|
|
|
|
|
|
} |
|
92
|
1
|
|
|
|
|
8
|
$rows; |
|
93
|
|
|
|
|
|
|
} |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
sub rows_as_aohos { |
|
96
|
11
|
|
|
11
|
1
|
803
|
my $self = shift; |
|
97
|
11
|
|
|
|
|
88
|
$self->{data}; |
|
98
|
|
|
|
|
|
|
} |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
sub uniq_col_names { |
|
101
|
2
|
|
|
2
|
1
|
5
|
my $self = shift; |
|
102
|
|
|
|
|
|
|
|
|
103
|
2
|
|
|
|
|
3
|
my @res; |
|
104
|
|
|
|
|
|
|
COL: |
|
105
|
2
|
|
|
|
|
4
|
for my $col (sort keys %{$self->{cols_by_name}}) { |
|
|
2
|
|
|
|
|
9
|
|
|
106
|
4
|
|
|
|
|
8
|
my %mem; |
|
107
|
4
|
|
|
|
|
6
|
for my $row (@{$self->{data}}) { |
|
|
4
|
|
|
|
|
10
|
|
|
108
|
8
|
100
|
|
|
|
18
|
next COL unless defined $row->{$col}; |
|
109
|
6
|
100
|
|
|
|
19
|
next COL if $mem{ $row->{$col} }++; |
|
110
|
|
|
|
|
|
|
} |
|
111
|
1
|
|
|
|
|
3
|
push @res, $col; |
|
112
|
|
|
|
|
|
|
} |
|
113
|
2
|
|
|
|
|
11
|
@res; |
|
114
|
|
|
|
|
|
|
} |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
sub const_col_names { |
|
117
|
2
|
|
|
2
|
1
|
6
|
my $self = shift; |
|
118
|
|
|
|
|
|
|
|
|
119
|
2
|
|
|
|
|
5
|
my @res; |
|
120
|
|
|
|
|
|
|
COL: |
|
121
|
2
|
|
|
|
|
4
|
for my $col (sort keys %{$self->{cols_by_name}}) { |
|
|
2
|
|
|
|
|
8
|
|
|
122
|
4
|
|
|
|
|
9
|
my $i = -1; |
|
123
|
4
|
|
|
|
|
6
|
my $val; |
|
124
|
|
|
|
|
|
|
my $val_undef; |
|
125
|
4
|
|
|
|
|
8
|
for my $row (@{$self->{data}}) { |
|
|
4
|
|
|
|
|
9
|
|
|
126
|
9
|
100
|
|
|
|
21
|
next COL unless exists $row->{$col}; |
|
127
|
8
|
|
|
|
|
12
|
$i++; |
|
128
|
8
|
100
|
|
|
|
16
|
if ($i == 0) { |
|
129
|
3
|
|
|
|
|
6
|
$val = $row->{$col}; |
|
130
|
3
|
100
|
|
|
|
8
|
$val_undef = 1 unless defined $val; |
|
131
|
|
|
|
|
|
|
} else { |
|
132
|
5
|
100
|
|
|
|
12
|
if ($val_undef) { |
|
133
|
2
|
50
|
|
|
|
7
|
next COL if defined $row->{$col}; |
|
134
|
|
|
|
|
|
|
} else { |
|
135
|
3
|
50
|
|
|
|
6
|
next COL unless defined $row->{$col}; |
|
136
|
3
|
100
|
|
|
|
12
|
next COL unless $val eq $row->{$col}; |
|
137
|
|
|
|
|
|
|
} |
|
138
|
|
|
|
|
|
|
} |
|
139
|
|
|
|
|
|
|
} |
|
140
|
2
|
|
|
|
|
5
|
push @res, $col; |
|
141
|
|
|
|
|
|
|
} |
|
142
|
2
|
|
|
|
|
27
|
@res; |
|
143
|
|
|
|
|
|
|
} |
|
144
|
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
sub del_col { |
|
146
|
4
|
|
|
4
|
1
|
18
|
my ($self, $name_or_idx) = @_; |
|
147
|
|
|
|
|
|
|
|
|
148
|
4
|
|
|
|
|
24
|
my $idx = $self->col_idx($name_or_idx); |
|
149
|
4
|
100
|
|
|
|
23
|
return undef unless defined $idx; ## no critic: Subroutines::ProhibitExplicitReturnUndef |
|
150
|
|
|
|
|
|
|
|
|
151
|
3
|
|
|
|
|
11
|
my $name = $self->{cols_by_idx}[$idx]; |
|
152
|
|
|
|
|
|
|
|
|
153
|
3
|
|
|
|
|
5
|
for my $row (@{$self->{data}}) { |
|
|
3
|
|
|
|
|
12
|
|
|
154
|
9
|
|
|
|
|
19
|
delete $row->{$name}; |
|
155
|
|
|
|
|
|
|
} |
|
156
|
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
# adjust cols_by_{name,idx} |
|
158
|
3
|
|
|
|
|
11
|
for my $i (reverse 0..$#{$self->{cols_by_idx}}) { |
|
|
3
|
|
|
|
|
13
|
|
|
159
|
6
|
|
|
|
|
12
|
my $name = $self->{cols_by_idx}[$i]; |
|
160
|
6
|
100
|
|
|
|
22
|
if ($i > $idx) { |
|
|
|
100
|
|
|
|
|
|
|
161
|
2
|
|
|
|
|
6
|
$self->{cols_by_name}{$name}--; |
|
162
|
|
|
|
|
|
|
} elsif ($i == $idx) { |
|
163
|
3
|
|
|
|
|
8
|
splice @{ $self->{cols_by_idx} }, $i, 1; |
|
|
3
|
|
|
|
|
9
|
|
|
164
|
3
|
|
|
|
|
11
|
delete $self->{cols_by_name}{$name}; |
|
165
|
|
|
|
|
|
|
} |
|
166
|
|
|
|
|
|
|
} |
|
167
|
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
# adjust spec |
|
169
|
3
|
50
|
|
|
|
10
|
if ($self->{spec}) { |
|
170
|
3
|
|
|
|
|
9
|
my $ff = $self->{spec}{fields}; |
|
171
|
3
|
|
|
|
|
12
|
for my $name (keys %$ff) { |
|
172
|
6
|
100
|
|
|
|
17
|
if (!exists $self->{cols_by_name}{$name}) { |
|
173
|
3
|
|
|
|
|
9
|
delete $ff->{$name}; |
|
174
|
|
|
|
|
|
|
} else { |
|
175
|
3
|
|
|
|
|
8
|
$ff->{$name}{pos} = $self->{cols_by_name}{$name}; |
|
176
|
|
|
|
|
|
|
} |
|
177
|
|
|
|
|
|
|
} |
|
178
|
|
|
|
|
|
|
} |
|
179
|
|
|
|
|
|
|
|
|
180
|
3
|
|
|
|
|
14
|
$name; |
|
181
|
|
|
|
|
|
|
} |
|
182
|
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
sub rename_col { |
|
184
|
4
|
|
|
4
|
1
|
1208
|
my ($self, $old_name_or_idx, $new_name) = @_; |
|
185
|
|
|
|
|
|
|
|
|
186
|
4
|
|
|
|
|
16
|
my $idx = $self->col_idx($old_name_or_idx); |
|
187
|
4
|
100
|
|
|
|
24
|
die "Unknown column '$old_name_or_idx'" unless defined($idx); |
|
188
|
3
|
|
|
|
|
8
|
my $old_name = $self->{cols_by_idx}[$idx]; |
|
189
|
3
|
50
|
|
|
|
11
|
die "Please specify new column name" unless length($new_name); |
|
190
|
3
|
100
|
|
|
|
11
|
return if $new_name eq $old_name; |
|
191
|
2
|
100
|
|
|
|
19
|
die "New column name must not be a number" if $new_name =~ /\A\d+\z/; |
|
192
|
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
# adjust data |
|
194
|
1
|
|
|
|
|
3
|
for my $row (@{$self->{data}}) { |
|
|
1
|
|
|
|
|
3
|
|
|
195
|
3
|
|
|
|
|
10
|
$row->{$new_name} = delete($row->{$old_name}); |
|
196
|
|
|
|
|
|
|
} |
|
197
|
|
|
|
|
|
|
|
|
198
|
1
|
|
|
|
|
4
|
$self->{cols_by_idx}[$idx] = $new_name; |
|
199
|
1
|
|
|
|
|
4
|
$self->{cols_by_name}{$new_name} = delete($self->{cols_by_name}{$old_name}); |
|
200
|
1
|
50
|
|
|
|
5
|
if ($self->{spec}) { |
|
201
|
1
|
|
|
|
|
3
|
my $ff = $self->{spec}{fields}; |
|
202
|
1
|
|
|
|
|
3
|
$ff->{$new_name} = delete($ff->{$old_name}); |
|
203
|
|
|
|
|
|
|
} |
|
204
|
|
|
|
|
|
|
} |
|
205
|
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
sub switch_cols { |
|
207
|
4
|
|
|
4
|
1
|
1166
|
my ($self, $name_or_idx1, $name_or_idx2) = @_; |
|
208
|
|
|
|
|
|
|
|
|
209
|
4
|
|
|
|
|
17
|
my $idx1 = $self->col_idx($name_or_idx1); |
|
210
|
4
|
100
|
|
|
|
27
|
die "Unknown first column '$name_or_idx1'" unless defined($idx1); |
|
211
|
3
|
|
|
|
|
10
|
my $idx2 = $self->col_idx($name_or_idx2); |
|
212
|
3
|
100
|
|
|
|
19
|
die "Unknown second column '$name_or_idx2'" unless defined($idx2); |
|
213
|
2
|
100
|
|
|
|
10
|
return if $idx1 == $idx2; |
|
214
|
|
|
|
|
|
|
|
|
215
|
1
|
|
|
|
|
6
|
my $name1 = $self->col_name($name_or_idx1); |
|
216
|
1
|
|
|
|
|
5
|
my $name2 = $self->col_name($name_or_idx2); |
|
217
|
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
# adjust data |
|
219
|
1
|
|
|
|
|
4
|
for my $row (@{$self->{data}}) { |
|
|
1
|
|
|
|
|
5
|
|
|
220
|
3
|
|
|
|
|
25
|
($row->{$name1}, $row->{$name2}) = ($row->{$name2}, $row->{$name1}); |
|
221
|
|
|
|
|
|
|
} |
|
222
|
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
($self->{cols_by_idx}[$idx1], $self->{cols_by_idx}[$idx2]) = |
|
224
|
1
|
|
|
|
|
4
|
($self->{cols_by_idx}[$idx2], $self->{cols_by_idx}[$idx1]); |
|
225
|
|
|
|
|
|
|
($self->{cols_by_name}{$name1}, $self->{cols_by_name}{$name2}) = |
|
226
|
1
|
|
|
|
|
4
|
($self->{cols_by_name}{$name2}, $self->{cols_by_name}{$name1}); |
|
227
|
1
|
50
|
|
|
|
5
|
if ($self->{spec}) { |
|
228
|
1
|
|
|
|
|
2
|
my $ff = $self->{spec}{fields}; |
|
229
|
1
|
|
|
|
|
5
|
($ff->{$name1}, $ff->{$name2}) = ($ff->{$name2}, $ff->{$name1}); |
|
230
|
|
|
|
|
|
|
} |
|
231
|
|
|
|
|
|
|
} |
|
232
|
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
sub add_col { |
|
234
|
6
|
|
|
6
|
1
|
6451
|
my ($self, $name, $idx, $spec, $data) = @_; |
|
235
|
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
# XXX BEGIN CODE dupe with aoaos |
|
237
|
6
|
100
|
|
|
|
32
|
die "Column '$name' already exists" if defined $self->col_name($name); |
|
238
|
5
|
|
|
|
|
19
|
my $col_count = $self->col_count; |
|
239
|
5
|
100
|
|
|
|
85
|
if (defined $idx) { |
|
240
|
3
|
100
|
100
|
|
|
43
|
die "Index must be between 0..$col_count" |
|
241
|
|
|
|
|
|
|
unless $idx >= 0 && $idx <= $col_count; |
|
242
|
|
|
|
|
|
|
} else { |
|
243
|
2
|
|
|
|
|
5
|
$idx = $col_count; |
|
244
|
|
|
|
|
|
|
} |
|
245
|
|
|
|
|
|
|
|
|
246
|
3
|
|
|
|
|
6
|
for (keys %{ $self->{cols_by_name} }) { |
|
|
3
|
|
|
|
|
14
|
|
|
247
|
12
|
100
|
|
|
|
30
|
$self->{cols_by_name}{$_}++ if $self->{cols_by_name}{$_} >= $idx; |
|
248
|
|
|
|
|
|
|
} |
|
249
|
3
|
|
|
|
|
12
|
$self->{cols_by_name}{$name} = $idx; |
|
250
|
3
|
|
|
|
|
5
|
splice @{ $self->{cols_by_idx} }, $idx, 0, $name; |
|
|
3
|
|
|
|
|
11
|
|
|
251
|
3
|
50
|
|
|
|
12
|
if ($self->{spec}) { |
|
252
|
3
|
|
|
|
|
9
|
my $ff = $self->{spec}{fields}; |
|
253
|
3
|
|
|
|
|
9
|
for my $f (values %$ff) { |
|
254
|
12
|
100
|
66
|
|
|
50
|
$f->{pos}++ if defined($f->{pos}) && $f->{pos} >= $idx; |
|
255
|
|
|
|
|
|
|
} |
|
256
|
3
|
50
|
|
|
|
13
|
$ff->{$name} = defined($spec) ? {%$spec} : {}; |
|
257
|
3
|
|
|
|
|
10
|
$ff->{$name}{pos} = $idx; |
|
258
|
|
|
|
|
|
|
} |
|
259
|
|
|
|
|
|
|
# XXX BEGIN CODE dupe with aoaos |
|
260
|
|
|
|
|
|
|
|
|
261
|
3
|
|
|
|
|
8
|
my $i = 0; |
|
262
|
3
|
|
|
|
|
5
|
for my $row (@{ $self->{data} }) { |
|
|
3
|
|
|
|
|
8
|
|
|
263
|
9
|
100
|
|
|
|
21
|
$row->{$name} = $data ? $data->[$i] : undef; |
|
264
|
9
|
|
|
|
|
16
|
$i++; |
|
265
|
|
|
|
|
|
|
} |
|
266
|
|
|
|
|
|
|
} |
|
267
|
|
|
|
|
|
|
|
|
268
|
|
|
|
|
|
|
sub set_col_val { |
|
269
|
2
|
|
|
2
|
0
|
423
|
my ($self, $name_or_idx, $value_sub) = @_; |
|
270
|
|
|
|
|
|
|
|
|
271
|
2
|
|
|
|
|
10
|
my $col_name = $self->col_name($name_or_idx); |
|
272
|
2
|
|
|
|
|
8
|
my $col_idx = $self->col_idx($name_or_idx); |
|
273
|
|
|
|
|
|
|
|
|
274
|
2
|
100
|
|
|
|
22
|
die "Column '$name_or_idx' does not exist" unless defined $col_name; |
|
275
|
|
|
|
|
|
|
|
|
276
|
1
|
|
|
|
|
3
|
for my $i (0..$#{ $self->{data} }) { |
|
|
1
|
|
|
|
|
6
|
|
|
277
|
2
|
|
|
|
|
14
|
my $row = $self->{data}[$i]; |
|
278
|
|
|
|
|
|
|
$row->{$col_name} = $value_sub->( |
|
279
|
|
|
|
|
|
|
table => $self, |
|
280
|
|
|
|
|
|
|
row_idx => $i, |
|
281
|
|
|
|
|
|
|
col_name => $col_name, |
|
282
|
|
|
|
|
|
|
col_idx => $col_idx, |
|
283
|
2
|
|
|
|
|
7
|
value => $row->{$col_name}, |
|
284
|
|
|
|
|
|
|
); |
|
285
|
|
|
|
|
|
|
} |
|
286
|
|
|
|
|
|
|
} |
|
287
|
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
1; |
|
289
|
|
|
|
|
|
|
# ABSTRACT: Manipulate array of hashes-of-scalars via table object |
|
290
|
|
|
|
|
|
|
|
|
291
|
|
|
|
|
|
|
__END__ |