hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiBaf331ecAhmet Kaan Gümüş2 months ago451 commits
| 1 | //! The pump behind the class layer: one link row changed, and every |
| 2 | //! `enrollment` row that link implies reconciled with it, in one transaction. |
| 3 | //! |
| 4 | //! A class section (şube) has two link tables — `class_member` (a student in |
| 5 | //! it) and `class_course` (a course attached to it) — and the *product* of the |
| 6 | //! two is the roster it owes: every member is enrolled in every attached |
| 7 | //! course, in real `enrollment` rows tagged [`source`](crate::domain::enrollment) |
| 8 | //! with the class that wrote them. Adding a member and attaching a course are |
| 9 | //! therefore the same operation seen along its two axes, and so are removing |
| 10 | //! one and detaching the other. |
| 11 | //! |
| 12 | //! What is *not* one primitive is attach and detach. They share no statement: |
| 13 | //! one gates on "this pair already holds a row" and claims a counter upwards, |
| 14 | //! the other gates on nothing, releases, and has to decide per enrollment row |
| 15 | //! whether a *rival* class still claims it. |
| 16 | //! |
| 17 | //! Every invariant is one Postgres statement or one row lock, in the shapes |
| 18 | //! [`crate::db::cap`] documents: the class counter is claimed by a conditional |
| 19 | //! `UPDATE` fused with the link's `INSERT` (one CTE — a refused insert takes |
| 20 | //! its own seat bump back), a duplicate is the link table's natural composite |
| 21 | //! primary key answering as `23505`, a gone parent is a real `FOREIGN KEY` |
| 22 | //! answering as `23503`, and the row locks (`FOR KEY SHARE` / `FOR NO KEY |
| 23 | //! UPDATE`) put each transaction on the very record a racing writer must |
| 24 | //! touch. A refusal is an early `Err` (or an `Ok` verdict) from the |
| 25 | //! [`crate::database::tx_with_retry`] closure — a decision, never a retry. |
| 26 | |
| 27 | use PgConnection; |
| 28 | |
| 29 | use crate; |
| 30 | use crate; |
| 31 | use cratecap; |
| 32 | use crateClassBlueprintId; |
| 33 | use crateClassCourse; |
| 34 | use crateClassGroupId; |
| 35 | use crateClassMember; |
| 36 | use crateCourseId; |
| 37 | use crateRole; |
| 38 | use crateTimestamp; |
| 39 | use crateUserId; |
| 40 | use crateAppError; |
| 41 | |
| 42 | /// What [`attach_course`]'s attach settled. The caller answers each verdict — |
| 43 | /// a hand attach turns them into this route's errors; a blueprint pump reads |
| 44 | /// them and carries on ([`crate::domain::class_blueprint`]). |
| 45 | |
| 46 | pub |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | /// Which way the pump runs: the loop below needs a `(course, user)` pair per |
| 135 | /// enrollment, and each caller supplies one side as a constant and reads the |
| 136 | /// other off the class's *other* link table. |
| 137 | |
| 138 | pub |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | |
| 205 | |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | /// The pivot of an attach: the row the link hangs off on its own axis, which |
| 216 | /// must still be there — and, on the member axis, still name a `student` — |
| 217 | /// when the transaction runs. |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | /// The verdicts the shared prechecks can settle before any counter moves. |
| 224 | |
| 225 | |
| 226 | |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | /// The gates that run before any counter moves, in the order their answers |
| 241 | /// outrank each other: |
| 242 | /// |
| 243 | /// 1. **Duplicate** — "you are already in" outranks "there is no room": a |
| 244 | /// caller whose row a rival placed a moment ago must not be told a course |
| 245 | /// is full about seats they already hold. (The link table's own primary key |
| 246 | /// re-answers this below as `23505` for a rival landing inside the window — |
| 247 | /// same verdict, no second seat.) |
| 248 | /// 2. **Source** — the blueprint that asked for this attach is still there. A |
| 249 | /// `FOR KEY SHARE` row lock on the blueprint row: it serializes the attach |
| 250 | /// against the blueprint's own delete — the closure the old process-wide |
| 251 | /// lease provided, now on the row itself. A concurrent blueprint `DELETE` |
| 252 | /// waits behind it and its sweep finds the committed row, while an attach |
| 253 | /// starting after the delete finds no row and writes nothing. `KEY SHARE` |
| 254 | /// is the weakest strength that blocks the delete, so two sourced attaches |
| 255 | /// still run concurrently, exactly as they did under the old shared read |
| 256 | /// lease. |
| 257 | /// 3. **Pivot** — the member axis takes the [`cap` role-claim |
| 258 | /// recipe](crate::db::cap)'s `FOR NO KEY UPDATE` handshake on the user row: |
| 259 | /// a role change away from `student` sweeps this membership, and demotion |
| 260 | /// and join now serialize on that row lock in both directions. The course |
| 261 | /// axis takes a `FOR KEY SHARE` on the course row, which a concurrent |
| 262 | /// course delete cannot take — the old bump-and-restore existence proof, |
| 263 | /// now a plain lock. |
| 264 | /// 4. **Overloaded** — the *other* axis standing above its own ceiling, which |
| 265 | /// no claim on this axis can see, and which is what bounds this |
| 266 | /// transaction's write loop. |
| 267 | async |
| 268 | |
| 269 | |
| 270 | |
| 271 | |
| 272 | |
| 273 | |
| 274 | |
| 275 | |
| 276 | |
| 277 | |
| 278 | |
| 279 | |
| 280 | |
| 281 | |
| 282 | |
| 283 | |
| 284 | |
| 285 | |
| 286 | |
| 287 | |
| 288 | |
| 289 | |
| 290 | |
| 291 | |
| 292 | |
| 293 | |
| 294 | |
| 295 | |
| 296 | |
| 297 | |
| 298 | |
| 299 | |
| 300 | |
| 301 | |
| 302 | |
| 303 | |
| 304 | |
| 305 | |
| 306 | |
| 307 | |
| 308 | |
| 309 | |
| 310 | |
| 311 | |
| 312 | |
| 313 | |
| 314 | |
| 315 | |
| 316 | |
| 317 | |
| 318 | |
| 319 | |
| 320 | |
| 321 | |
| 322 | |
| 323 | |
| 324 | |
| 325 | |
| 326 | |
| 327 | |
| 328 | |
| 329 | |
| 330 | |
| 331 | |
| 332 | |
| 333 | |
| 334 | |
| 335 | |
| 336 | |
| 337 | |
| 338 | |
| 339 | |
| 340 | |
| 341 | |
| 342 | |
| 343 | |
| 344 | |
| 345 | |
| 346 | |
| 347 | |
| 348 | |
| 349 | |
| 350 | |
| 351 | |
| 352 | |
| 353 | |
| 354 | |
| 355 | |
| 356 | |
| 357 | /// Write the member link and enroll the student into every course the class is |
| 358 | /// already attached to, or write nothing at all. |
| 359 | /// |
| 360 | /// A student already enrolled in one of those courses keeps the row they |
| 361 | /// have — no seat is charged, and the existing row's `source` is left exactly |
| 362 | /// as it was, so a hand-placed student is never quietly adopted by a class. |
| 363 | /// A course with no free seat refuses the *whole* join rather than half of it. |
| 364 | /// |
| 365 | /// The class counter is claimed by the conditional half of the CTE below |
| 366 | /// rather than a bare increment, so a class deleted out from under this run |
| 367 | /// matches nothing and the whole cascade aborts: [`Attached::Gone`] instead of |
| 368 | /// a counter on a row that no longer exists. The same write carries |
| 369 | /// [`Axis::Member`]'s cap, which is what keeps the pair loop — and therefore |
| 370 | /// this transaction — finite: [`Attached::ClassFull`] once the class is at its |
| 371 | /// ceiling. Claim and insert are one statement, so a refused insert takes its |
| 372 | /// own seat bump back. |
| 373 | pub async |
| 374 | |
| 375 | |
| 376 | |
| 377 | |
| 378 | |
| 379 | |
| 380 | |
| 381 | |
| 382 | |
| 383 | |
| 384 | |
| 385 | |
| 386 | |
| 387 | |
| 388 | |
| 389 | |
| 390 | |
| 391 | |
| 392 | |
| 393 | |
| 394 | |
| 395 | |
| 396 | |
| 397 | |
| 398 | |
| 399 | |
| 400 | |
| 401 | |
| 402 | |
| 403 | |
| 404 | |
| 405 | |
| 406 | |
| 407 | |
| 408 | |
| 409 | |
| 410 | |
| 411 | |
| 412 | |
| 413 | |
| 414 | |
| 415 | |
| 416 | |
| 417 | |
| 418 | |
| 419 | |
| 420 | |
| 421 | |
| 422 | |
| 423 | |
| 424 | |
| 425 | |
| 426 | |
| 427 | |
| 428 | |
| 429 | |
| 430 | |
| 431 | |
| 432 | |
| 433 | |
| 434 | |
| 435 | |
| 436 | |
| 437 | |
| 438 | |
| 439 | |
| 440 | |
| 441 | |
| 442 | |
| 443 | |
| 444 | |
| 445 | |
| 446 | |
| 447 | |
| 448 | |
| 449 | |
| 450 | |
| 451 | |
| 452 | |
| 453 | |
| 454 | |
| 455 | |
| 456 | |
| 457 | /// Write the course link and enroll the class's whole roster into it, or |
| 458 | /// write nothing at all. |
| 459 | /// |
| 460 | /// Students already in the course keep the rows they have — no seat charged, |
| 461 | /// `source` untouched — and a roster that does not fit refuses the whole |
| 462 | /// attach rather than filling the course to its cap and stopping. |
| 463 | /// |
| 464 | /// `source` is the blueprint whose behalf this attach runs on, and supplying |
| 465 | /// it adds one more claim: that it is still there when the transaction runs |
| 466 | /// ([`Attached::SourceGone`]) — the `FOR KEY SHARE` lock that serializes this |
| 467 | /// transaction against the blueprint's own delete. A hand attach owns itself |
| 468 | /// and passes `None`. |
| 469 | pub async |
| 470 | |
| 471 | |
| 472 | |
| 473 | |
| 474 | |
| 475 | |
| 476 | |
| 477 | |
| 478 | |
| 479 | |
| 480 | |
| 481 | |
| 482 | |
| 483 | |
| 484 | |
| 485 | |
| 486 | |
| 487 | |
| 488 | |
| 489 | |
| 490 | |
| 491 | |
| 492 | |
| 493 | |
| 494 | |
| 495 | |
| 496 | |
| 497 | |
| 498 | |
| 499 | |
| 500 | |
| 501 | |
| 502 | |
| 503 | |
| 504 | |
| 505 | |
| 506 | |
| 507 | |
| 508 | |
| 509 | |
| 510 | |
| 511 | |
| 512 | |
| 513 | |
| 514 | |
| 515 | |
| 516 | |
| 517 | |
| 518 | |
| 519 | |
| 520 | |
| 521 | |
| 522 | |
| 523 | |
| 524 | |
| 525 | |
| 526 | |
| 527 | |
| 528 | |
| 529 | |
| 530 | |
| 531 | |
| 532 | |
| 533 | |
| 534 | |
| 535 | |
| 536 | |
| 537 | |
| 538 | |
| 539 | |
| 540 | |
| 541 | |
| 542 | |
| 543 | |
| 544 | |
| 545 | |
| 546 | |
| 547 | |
| 548 | |
| 549 | |
| 550 | |
| 551 | |
| 552 | |
| 553 | |
| 554 | |
| 555 | /// What the shared enrollment loop settled for its pairs. |
| 556 | |
| 557 | |
| 558 | |
| 559 | |
| 560 | |
| 561 | |
| 562 | |
| 563 | |
| 564 | |
| 565 | /// Enroll every `(course, user)` pair that has no row yet, each against its |
| 566 | /// own course's capacity, skipping — never charging — the pairs that do. |
| 567 | /// |
| 568 | /// Per pair, in the order the refusals outrank each other: the pair's own row |
| 569 | /// answers "already enrolled" (skip, no seat); the course row answers "gone" |
| 570 | /// *before* the seat claim, so a stale link is never mis-reported as a |
| 571 | /// capacity problem; the seat claim is a conditional `UPDATE` on the course |
| 572 | /// row (live cap — `capacity` as it stands at write time, `NULL` reading as |
| 573 | /// unlimited); and the insert rides the seat it claimed. A rival that lands |
| 574 | /// between the gate and the insert answers `23505`, and the bump is given |
| 575 | /// back before the skip — the outcome a re-sent transaction used to reach by |
| 576 | /// seeing the rival's row at its gate. |
| 577 | /// |
| 578 | /// Every abort stops the loop inside the caller's transaction: not one of the |
| 579 | /// earlier seats in the same run survives, which is the whole point of doing |
| 580 | /// this in a transaction. |
| 581 | async |
| 582 | |
| 583 | |
| 584 | |
| 585 | |
| 586 | |
| 587 | |
| 588 | |
| 589 | |
| 590 | |
| 591 | |
| 592 | |
| 593 | |
| 594 | |
| 595 | |
| 596 | |
| 597 | |
| 598 | |
| 599 | |
| 600 | |
| 601 | |
| 602 | |
| 603 | |
| 604 | |
| 605 | |
| 606 | |
| 607 | |
| 608 | |
| 609 | |
| 610 | |
| 611 | |
| 612 | |
| 613 | |
| 614 | |
| 615 | |
| 616 | |
| 617 | |
| 618 | |
| 619 | |
| 620 | |
| 621 | |
| 622 | |
| 623 | |
| 624 | |
| 625 | |
| 626 | |
| 627 | |
| 628 | |
| 629 | |
| 630 | |
| 631 | |
| 632 | |
| 633 | |
| 634 | |
| 635 | |
| 636 | |
| 637 | |
| 638 | |
| 639 | |
| 640 | |
| 641 | |
| 642 | |
| 643 | |
| 644 | |
| 645 | |
| 646 | |
| 647 | |
| 648 | |
| 649 | |
| 650 | |
| 651 | |
| 652 | |
| 653 | |
| 654 | |
| 655 | |
| 656 | |
| 657 | |
| 658 | |
| 659 | |
| 660 | |
| 661 | // The sweep a role change *off` `student` owes — every class membership (each |
| 662 | // class getting its member count back) and every enrollment row (each course |
| 663 | // getting its seat back) — is two of the arms of |
| 664 | // [`crate::service::user::set_role`], because it belongs in the same |
| 665 | // transaction as the role write that invalidates them. It stays one fact with |
| 666 | // the counters either way: released separately, a failure between the halves |
| 667 | // left enrollment rows tagged `source = class_group:X` while the class had its |
| 668 | // counters back, so the class passed its zero-zero delete guard and the rows |
| 669 | // were left pointing at a class no sweep could ever reach again. |
| 670 | |
| 671 | /// Take a student out of a class and sweep the enrollments the class pumped |
| 672 | /// for them. Answers how many link rows went (0 or 1), so the caller can turn |
| 673 | /// zero into a 404. |
| 674 | /// |
| 675 | /// The sweep is *repair-first*: an enrollment this class wrote is only deleted |
| 676 | /// once no other class still claims it. Two classes attached to the same |
| 677 | /// course share a student — the second attach skipped the row the first had |
| 678 | /// already written, so the row carries only the first class's name — and |
| 679 | /// deleting it on the first class's way out would unenroll a student the |
| 680 | /// second class is still responsible for. So the row is re-tagged to that |
| 681 | /// rival instead, and only a row nobody is left to claim is deleted and its |
| 682 | /// seat given back. The heir is the lowest class id among the claimants: a |
| 683 | /// deterministic pick (uuid order is mint order), so a repeat of the same |
| 684 | /// sweep lands on the same class. |
| 685 | /// |
| 686 | /// That pick is then **claimed** — a `FOR NO KEY UPDATE` read of the heir's |
| 687 | /// class row, no counter moved — before the row is handed over. Both reads |
| 688 | /// behind it are pure, and this sweep is long — one pass per enrollment row |
| 689 | /// the link implies — so `DELETE /classes/{heir}/members/{user}` and |
| 690 | /// `DELETE /classes/{heir}/courses/{course}` could both commit inside it and |
| 691 | /// leave the row tagged with a class holding neither link: a `class_group` |
| 692 | /// whose own 0/0 delete guard then passes, stranding an enrollment nothing can |
| 693 | /// ever sweep. Every one of those writers moves a counter on the heir's own |
| 694 | /// row, so the row lock here puts this transaction on the record they write |
| 695 | /// and the two settle in either order. A claim that matches nothing is an |
| 696 | /// heir whose class row is gone — a stale link outliving its class — and it |
| 697 | /// takes the release arm rather than tagging the row with an id no route can |
| 698 | /// reach. |
| 699 | /// |
| 700 | /// Sweeps tolerate rows that are already gone. A course delete wipes a |
| 701 | /// course's enrollments wholesale while the `class_member` rows survive it, so |
| 702 | /// "this class has a member" and "that member has a live pumped row" are |
| 703 | /// independent facts and the loop simply finds nothing to sweep. |
| 704 | pub async |
| 705 | |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 | |
| 712 | |
| 713 | |
| 714 | |
| 715 | |
| 716 | |
| 717 | |
| 718 | |
| 719 | |
| 720 | |
| 721 | |
| 722 | |
| 723 | |
| 724 | |
| 725 | |
| 726 | |
| 727 | |
| 728 | |
| 729 | |
| 730 | |
| 731 | |
| 732 | |
| 733 | |
| 734 | |
| 735 | |
| 736 | |
| 737 | |
| 738 | |
| 739 | |
| 740 | |
| 741 | |
| 742 | |
| 743 | |
| 744 | |
| 745 | |
| 746 | |
| 747 | |
| 748 | /// Detach `course` from `class` and sweep the enrollments the class pumped |
| 749 | /// into it. `source`, when given, re-asserts the provenance tag on the link's |
| 750 | /// own delete — a blueprint sweep may only take back rows its own tag owns. |
| 751 | /// Answers how many link rows went, so a caller whose link was a single pair |
| 752 | /// can turn zero into a 404. The sweep underneath is the shared one: a student |
| 753 | /// a second class still claims is re-tagged rather than unenrolled. |
| 754 | pub async |
| 755 | |
| 756 | |
| 757 | |
| 758 | |
| 759 | |
| 760 | |
| 761 | |
| 762 | |
| 763 | |
| 764 | |
| 765 | |
| 766 | |
| 767 | |
| 768 | |
| 769 | |
| 770 | |
| 771 | |
| 772 | |
| 773 | |
| 774 | |
| 775 | |
| 776 | |
| 777 | |
| 778 | |
| 779 | |
| 780 | |
| 781 | |
| 782 | |
| 783 | |
| 784 | |
| 785 | |
| 786 | |
| 787 | |
| 788 | |
| 789 | |
| 790 | |
| 791 | |
| 792 | |
| 793 | |
| 794 | |
| 795 | |
| 796 | |
| 797 | |
| 798 | |
| 799 | |
| 800 | |
| 801 | |
| 802 | |
| 803 | |
| 804 | |
| 805 | |
| 806 | |
| 807 | |
| 808 | |
| 809 | |
| 810 | |
| 811 | |
| 812 | |
| 813 | |
| 814 | |
| 815 | /// The repair-first tail both detaches share: for every enrollment row the |
| 816 | /// deleted link owned, hand it to a rival class that still claims it, or |
| 817 | /// delete it and give the course its seat back. |
| 818 | /// |
| 819 | /// The heir is the lowest class id among the rivals that carry both this |
| 820 | /// course *and* the student — the same deterministic pick on every repeat. Its |
| 821 | /// class row is read `FOR NO KEY UPDATE` (a claim that moves no counter: the |
| 822 | /// class_member row already covers the student, and the enrollment is counted |
| 823 | /// on the course) so a concurrent member/course write on the heir serializes |
| 824 | /// behind this transaction; a claim matching nothing is a gone heir, and the |
| 825 | /// row takes the release arm. |
| 826 | async |
| 827 | |
| 828 | |
| 829 | |
| 830 | |
| 831 | |
| 832 | |
| 833 | |
| 834 | |
| 835 | |
| 836 | |
| 837 | |
| 838 | |
| 839 | |
| 840 | |
| 841 | |
| 842 | |
| 843 | |
| 844 | |
| 845 | |
| 846 | |
| 847 | |
| 848 | |
| 849 | |
| 850 | |
| 851 | |
| 852 | |
| 853 | |
| 854 | |
| 855 | |
| 856 | |
| 857 | |
| 858 | |
| 859 | |
| 860 | |
| 861 | |
| 862 | |
| 863 | |
| 864 | |
| 865 | |
| 866 | |
| 867 | |
| 868 | |
| 869 | |
| 870 | |
| 871 | |
| 872 | /// Nobody is left to claim the row: it goes, and its seat with it. The seat |
| 873 | /// is only given back when the delete actually took the row — a course |
| 874 | /// delete's wholesale sweep may have taken both while this transaction read |
| 875 | /// them, and both halves vanish together there. |
| 876 | async |
| 877 | |
| 878 | |
| 879 | |
| 880 | |
| 881 | |
| 882 | |
| 883 | |
| 884 | |
| 885 | |
| 886 | |
| 887 | |
| 888 | |
| 889 | |
| 890 | |
| 891 | |
| 892 | |
| 893 | |
| 894 | |
| 895 | |
| 896 | |
| 897 | |
| 898 | |
| 899 | |
| 900 | |
| 901 | |
| 902 | |
| 903 | |
| 904 | |
| 905 | |
| 906 | |
| 907 | |
| 908 | |
| 909 | |
| 910 | |
| 911 | |
| 912 | |
| 913 | |
| 914 | |
| 915 | |
| 916 | |
| 917 | |
| 918 | |
| 919 | |
| 920 | |
| 921 | |
| 922 | |
| 923 | |
| 924 | |
| 925 | |
| 926 | |
| 927 | |
| 928 | |
| 929 | |
| 930 | |
| 931 | |
| 932 | |
| 933 | |
| 934 | |
| 935 | |
| 936 | |
| 937 | |
| 938 | |
| 939 | |
| 940 | |
| 941 | |
| 942 | |
| 943 | |
| 944 | |
| 945 | |
| 946 | |
| 947 | |
| 948 | |
| 949 | |
| 950 | |
| 951 | |
| 952 | |
| 953 | |
| 954 | |
| 955 | |
| 956 | |
| 957 | |
| 958 | |
| 959 | |
| 960 | |
| 961 | |
| 962 | |
| 963 | |
| 964 | |
| 965 | |
| 966 | |
| 967 | |
| 968 | |
| 969 | |
| 970 | |
| 971 | |
| 972 | |
| 973 | |
| 974 | |
| 975 | |
| 976 | |
| 977 | |
| 978 | |
| 979 | |
| 980 | |
| 981 | |
| 982 | |
| 983 | |
| 984 | |
| 985 | |
| 986 | |
| 987 | |
| 988 | |
| 989 | |
| 990 | |
| 991 | |
| 992 | |
| 993 | |
| 994 | |
| 995 | |
| 996 | |
| 997 | |
| 998 | |
| 999 | |
| 1000 | |
| 1001 | |
| 1002 | |
| 1003 | |
| 1004 | |
| 1005 | |
| 1006 | |
| 1007 | |
| 1008 | |
| 1009 | |
| 1010 | |
| 1011 | |
| 1012 | |
| 1013 | |
| 1014 | |
| 1015 | |
| 1016 | |
| 1017 | |
| 1018 | |
| 1019 | |
| 1020 | |
| 1021 | |
| 1022 | |
| 1023 | |
| 1024 | |
| 1025 | |
| 1026 | |
| 1027 | |
| 1028 | |
| 1029 | |
| 1030 | |
| 1031 | |
| 1032 | |
| 1033 | |
| 1034 | |
| 1035 | |
| 1036 | |
| 1037 | |
| 1038 | |
| 1039 | |
| 1040 | |
| 1041 | |
| 1042 | |
| 1043 | |
| 1044 | |
| 1045 | |
| 1046 | |
| 1047 | |
| 1048 | |
| 1049 | |
| 1050 | |
| 1051 | |
| 1052 | |
| 1053 | |
| 1054 | |
| 1055 | |
| 1056 | |
| 1057 | |
| 1058 | |
| 1059 | |
| 1060 | |
| 1061 | |
| 1062 | |
| 1063 | |
| 1064 | |
| 1065 | |
| 1066 | |
| 1067 | |
| 1068 | |
| 1069 | |
| 1070 | |
| 1071 | |
| 1072 | |
| 1073 | |
| 1074 | |
| 1075 | |
| 1076 | |
| 1077 | |
| 1078 | |
| 1079 | |
| 1080 | |
| 1081 | |
| 1082 | |
| 1083 | |
| 1084 | |
| 1085 | |
| 1086 | |
| 1087 | |
| 1088 | |
| 1089 | |
| 1090 | |
| 1091 | |
| 1092 | |
| 1093 | |
| 1094 | |
| 1095 | |
| 1096 | |
| 1097 | |
| 1098 | |
| 1099 | |
| 1100 | |
| 1101 | |
| 1102 | |
| 1103 | |
| 1104 | |
| 1105 |