{
  "type": "Program",
  "body": [
    {
      "type": "ExportDefaultDeclaration",
      "declaration": {
        "type": "FunctionDeclaration",
        "id": null,
        "params": [],
        "body": {
          "type": "BlockStatement",
          "body": [
            {
              "type": "ReturnStatement",
              "argument": {
                "type": "ObjectExpression",
                "properties": [
                  {
                    "type": "Property",
                    "key": {
                      "type": "Identifier",
                      "name": "name",
                      "range": [
                        158,
                        162
                      ],
                      "loc": {
                        "start": {
                          "line": 7,
                          "column": 4
                        },
                        "end": {
                          "line": 7,
                          "column": 8
                        }
                      }
                    },
                    "value": {
                      "type": "Literal",
                      "value": "sum",
                      "raw": "'sum'",
                      "range": [
                        164,
                        169
                      ],
                      "loc": {
                        "start": {
                          "line": 7,
                          "column": 10
                        },
                        "end": {
                          "line": 7,
                          "column": 15
                        }
                      }
                    },
                    "kind": "init",
                    "method": false,
                    "shorthand": false,
                    "computed": false,
                    "range": [
                      158,
                      169
                    ],
                    "loc": {
                      "start": {
                        "line": 7,
                        "column": 4
                      },
                      "end": {
                        "line": 7,
                        "column": 15
                      }
                    }
                  },
                  {
                    "type": "Property",
                    "key": {
                      "type": "Identifier",
                      "name": "initialValue",
                      "range": [
                        175,
                        187
                      ],
                      "loc": {
                        "start": {
                          "line": 8,
                          "column": 4
                        },
                        "end": {
                          "line": 8,
                          "column": 16
                        }
                      }
                    },
                    "value": {
                      "type": "Literal",
                      "value": 0,
                      "raw": "0",
                      "range": [
                        189,
                        190
                      ],
                      "loc": {
                        "start": {
                          "line": 8,
                          "column": 18
                        },
                        "end": {
                          "line": 8,
                          "column": 19
                        }
                      }
                    },
                    "kind": "init",
                    "method": false,
                    "shorthand": false,
                    "computed": false,
                    "range": [
                      175,
                      190
                    ],
                    "loc": {
                      "start": {
                        "line": 8,
                        "column": 4
                      },
                      "end": {
                        "line": 8,
                        "column": 19
                      }
                    }
                  },
                  {
                    "type": "Property",
                    "key": {
                      "type": "Identifier",
                      "name": "onUpdate",
                      "range": [
                        196,
                        204
                      ],
                      "loc": {
                        "start": {
                          "line": 9,
                          "column": 4
                        },
                        "end": {
                          "line": 9,
                          "column": 12
                        }
                      }
                    },
                    "value": {
                      "type": "FunctionExpression",
                      "id": null,
                      "params": [
                        {
                          "type": "Identifier",
                          "name": "prev",
                          "range": [
                            216,
                            220
                          ],
                          "loc": {
                            "start": {
                              "line": 9,
                              "column": 24
                            },
                            "end": {
                              "line": 9,
                              "column": 28
                            }
                          }
                        },
                        {
                          "type": "Identifier",
                          "name": "state",
                          "range": [
                            222,
                            227
                          ],
                          "loc": {
                            "start": {
                              "line": 9,
                              "column": 30
                            },
                            "end": {
                              "line": 9,
                              "column": 35
                            }
                          }
                        },
                        {
                          "type": "Identifier",
                          "name": "val",
                          "range": [
                            229,
                            232
                          ],
                          "loc": {
                            "start": {
                              "line": 9,
                              "column": 37
                            },
                            "end": {
                              "line": 9,
                              "column": 40
                            }
                          }
                        }
                      ],
                      "body": {
                        "type": "BlockStatement",
                        "body": [
                          {
                            "type": "ReturnStatement",
                            "argument": {
                              "type": "BinaryExpression",
                              "operator": "+",
                              "left": {
                                "type": "Identifier",
                                "name": "prev",
                                "range": [
                                  249,
                                  253
                                ],
                                "loc": {
                                  "start": {
                                    "line": 10,
                                    "column": 13
                                  },
                                  "end": {
                                    "line": 10,
                                    "column": 17
                                  }
                                }
                              },
                              "right": {
                                "type": "Identifier",
                                "name": "val",
                                "range": [
                                  256,
                                  259
                                ],
                                "loc": {
                                  "start": {
                                    "line": 10,
                                    "column": 20
                                  },
                                  "end": {
                                    "line": 10,
                                    "column": 23
                                  }
                                }
                              },
                              "range": [
                                249,
                                259
                              ],
                              "loc": {
                                "start": {
                                  "line": 10,
                                  "column": 13
                                },
                                "end": {
                                  "line": 10,
                                  "column": 23
                                }
                              }
                            },
                            "range": [
                              242,
                              260
                            ],
                            "loc": {
                              "start": {
                                "line": 10,
                                "column": 6
                              },
                              "end": {
                                "line": 10,
                                "column": 24
                              }
                            }
                          }
                        ],
                        "range": [
                          234,
                          266
                        ],
                        "loc": {
                          "start": {
                            "line": 9,
                            "column": 42
                          },
                          "end": {
                            "line": 11,
                            "column": 5
                          }
                        }
                      },
                      "generator": false,
                      "expression": false,
                      "range": [
                        206,
                        266
                      ],
                      "loc": {
                        "start": {
                          "line": 9,
                          "column": 14
                        },
                        "end": {
                          "line": 11,
                          "column": 5
                        }
                      }
                    },
                    "kind": "init",
                    "method": false,
                    "shorthand": false,
                    "computed": false,
                    "range": [
                      196,
                      266
                    ],
                    "loc": {
                      "start": {
                        "line": 9,
                        "column": 4
                      },
                      "end": {
                        "line": 11,
                        "column": 5
                      }
                    }
                  }
                ],
                "range": [
                  152,
                  270
                ],
                "loc": {
                  "start": {
                    "line": 6,
                    "column": 9
                  },
                  "end": {
                    "line": 12,
                    "column": 3
                  }
                }
              },
              "range": [
                145,
                271
              ],
              "loc": {
                "start": {
                  "line": 6,
                  "column": 2
                },
                "end": {
                  "line": 12,
                  "column": 4
                }
              }
            }
          ],
          "range": [
            141,
            273
          ],
          "loc": {
            "start": {
              "line": 5,
              "column": 27
            },
            "end": {
              "line": 13,
              "column": 1
            }
          }
        },
        "generator": false,
        "expression": false,
        "range": [
          129,
          273
        ],
        "loc": {
          "start": {
            "line": 5,
            "column": 15
          },
          "end": {
            "line": 13,
            "column": 1
          }
        },
        "leadingComments": [
          {
            "type": "Block",
            "value": "*\n * Returns the definition of a collector that captures `sum`\n * @return {Object} A `sum` collector object\n ",
            "range": [
              0,
              113
            ],
            "loc": {
              "start": {
                "line": 1,
                "column": 0
              },
              "end": {
                "line": 4,
                "column": 3
              }
            }
          }
        ],
        "trailingComments": []
      },
      "range": [
        114,
        273
      ],
      "loc": {
        "start": {
          "line": 5,
          "column": 0
        },
        "end": {
          "line": 13,
          "column": 1
        }
      },
      "leadingComments": [
        {
          "type": "Block",
          "value": "*\n * Returns the definition of a collector that captures `sum`\n * @return {Object} A `sum` collector object\n ",
          "range": [
            0,
            113
          ],
          "loc": {
            "start": {
              "line": 1,
              "column": 0
            },
            "end": {
              "line": 4,
              "column": 3
            }
          }
        }
      ]
    }
  ],
  "sourceType": "module",
  "range": [
    114,
    273
  ],
  "loc": {
    "start": {
      "line": 5,
      "column": 0
    },
    "end": {
      "line": 13,
      "column": 1
    }
  },
  "comments": [
    {
      "type": "Block",
      "value": "*\n * Returns the definition of a collector that captures `sum`\n * @return {Object} A `sum` collector object\n ",
      "range": [
        0,
        113
      ],
      "loc": {
        "start": {
          "line": 1,
          "column": 0
        },
        "end": {
          "line": 4,
          "column": 3
        }
      }
    }
  ]
}