{
  "version": 3,
  "sources": ["../dist-src/createLogger.js", "../dist-src/generated/webhook-names.js", "../dist-src/event-handler/on.js", "../dist-src/event-handler/receive.js", "../dist-src/event-handler/wrap-error-handler.js", "../dist-src/event-handler/remove-listener.js", "../dist-src/event-handler/index.js", "../dist-src/index.js", "../dist-src/verify-and-receive.js", "../dist-src/middleware/node/get-missing-headers.js", "../dist-src/middleware/node/get-payload.js", "../dist-src/middleware/node/on-unhandled-request-default.js", "../dist-src/middleware/node/middleware.js", "../dist-src/middleware/node/index.js"],
  "sourcesContent": ["const createLogger = (logger) => ({\n  debug: () => {\n  },\n  info: () => {\n  },\n  warn: console.warn.bind(console),\n  error: console.error.bind(console),\n  ...logger\n});\nexport {\n  createLogger\n};\n", "const emitterEventNames = [\n  \"branch_protection_rule\",\n  \"branch_protection_rule.created\",\n  \"branch_protection_rule.deleted\",\n  \"branch_protection_rule.edited\",\n  \"check_run\",\n  \"check_run.completed\",\n  \"check_run.created\",\n  \"check_run.requested_action\",\n  \"check_run.rerequested\",\n  \"check_suite\",\n  \"check_suite.completed\",\n  \"check_suite.requested\",\n  \"check_suite.rerequested\",\n  \"code_scanning_alert\",\n  \"code_scanning_alert.appeared_in_branch\",\n  \"code_scanning_alert.closed_by_user\",\n  \"code_scanning_alert.created\",\n  \"code_scanning_alert.fixed\",\n  \"code_scanning_alert.reopened\",\n  \"code_scanning_alert.reopened_by_user\",\n  \"commit_comment\",\n  \"commit_comment.created\",\n  \"create\",\n  \"delete\",\n  \"dependabot_alert\",\n  \"dependabot_alert.created\",\n  \"dependabot_alert.dismissed\",\n  \"dependabot_alert.fixed\",\n  \"dependabot_alert.reintroduced\",\n  \"dependabot_alert.reopened\",\n  \"deploy_key\",\n  \"deploy_key.created\",\n  \"deploy_key.deleted\",\n  \"deployment\",\n  \"deployment.created\",\n  \"deployment_protection_rule\",\n  \"deployment_protection_rule.requested\",\n  \"deployment_status\",\n  \"deployment_status.created\",\n  \"discussion\",\n  \"discussion.answered\",\n  \"discussion.category_changed\",\n  \"discussion.created\",\n  \"discussion.deleted\",\n  \"discussion.edited\",\n  \"discussion.labeled\",\n  \"discussion.locked\",\n  \"discussion.pinned\",\n  \"discussion.transferred\",\n  \"discussion.unanswered\",\n  \"discussion.unlabeled\",\n  \"discussion.unlocked\",\n  \"discussion.unpinned\",\n  \"discussion_comment\",\n  \"discussion_comment.created\",\n  \"discussion_comment.deleted\",\n  \"discussion_comment.edited\",\n  \"fork\",\n  \"github_app_authorization\",\n  \"github_app_authorization.revoked\",\n  \"gollum\",\n  \"installation\",\n  \"installation.created\",\n  \"installation.deleted\",\n  \"installation.new_permissions_accepted\",\n  \"installation.suspend\",\n  \"installation.unsuspend\",\n  \"installation_repositories\",\n  \"installation_repositories.added\",\n  \"installation_repositories.removed\",\n  \"installation_target\",\n  \"installation_target.renamed\",\n  \"issue_comment\",\n  \"issue_comment.created\",\n  \"issue_comment.deleted\",\n  \"issue_comment.edited\",\n  \"issues\",\n  \"issues.assigned\",\n  \"issues.closed\",\n  \"issues.deleted\",\n  \"issues.demilestoned\",\n  \"issues.edited\",\n  \"issues.labeled\",\n  \"issues.locked\",\n  \"issues.milestoned\",\n  \"issues.opened\",\n  \"issues.pinned\",\n  \"issues.reopened\",\n  \"issues.transferred\",\n  \"issues.unassigned\",\n  \"issues.unlabeled\",\n  \"issues.unlocked\",\n  \"issues.unpinned\",\n  \"label\",\n  \"label.created\",\n  \"label.deleted\",\n  \"label.edited\",\n  \"marketplace_purchase\",\n  \"marketplace_purchase.cancelled\",\n  \"marketplace_purchase.changed\",\n  \"marketplace_purchase.pending_change\",\n  \"marketplace_purchase.pending_change_cancelled\",\n  \"marketplace_purchase.purchased\",\n  \"member\",\n  \"member.added\",\n  \"member.edited\",\n  \"member.removed\",\n  \"membership\",\n  \"membership.added\",\n  \"membership.removed\",\n  \"merge_group\",\n  \"merge_group.checks_requested\",\n  \"meta\",\n  \"meta.deleted\",\n  \"milestone\",\n  \"milestone.closed\",\n  \"milestone.created\",\n  \"milestone.deleted\",\n  \"milestone.edited\",\n  \"milestone.opened\",\n  \"org_block\",\n  \"org_block.blocked\",\n  \"org_block.unblocked\",\n  \"organization\",\n  \"organization.deleted\",\n  \"organization.member_added\",\n  \"organization.member_invited\",\n  \"organization.member_removed\",\n  \"organization.renamed\",\n  \"package\",\n  \"package.published\",\n  \"package.updated\",\n  \"page_build\",\n  \"ping\",\n  \"project\",\n  \"project.closed\",\n  \"project.created\",\n  \"project.deleted\",\n  \"project.edited\",\n  \"project.reopened\",\n  \"project_card\",\n  \"project_card.converted\",\n  \"project_card.created\",\n  \"project_card.deleted\",\n  \"project_card.edited\",\n  \"project_card.moved\",\n  \"project_column\",\n  \"project_column.created\",\n  \"project_column.deleted\",\n  \"project_column.edited\",\n  \"project_column.moved\",\n  \"projects_v2_item\",\n  \"projects_v2_item.archived\",\n  \"projects_v2_item.converted\",\n  \"projects_v2_item.created\",\n  \"projects_v2_item.deleted\",\n  \"projects_v2_item.edited\",\n  \"projects_v2_item.reordered\",\n  \"projects_v2_item.restored\",\n  \"public\",\n  \"pull_request\",\n  \"pull_request.assigned\",\n  \"pull_request.auto_merge_disabled\",\n  \"pull_request.auto_merge_enabled\",\n  \"pull_request.closed\",\n  \"pull_request.converted_to_draft\",\n  \"pull_request.demilestoned\",\n  \"pull_request.dequeued\",\n  \"pull_request.edited\",\n  \"pull_request.enqueued\",\n  \"pull_request.labeled\",\n  \"pull_request.locked\",\n  \"pull_request.milestoned\",\n  \"pull_request.opened\",\n  \"pull_request.ready_for_review\",\n  \"pull_request.reopened\",\n  \"pull_request.review_request_removed\",\n  \"pull_request.review_requested\",\n  \"pull_request.synchronize\",\n  \"pull_request.unassigned\",\n  \"pull_request.unlabeled\",\n  \"pull_request.unlocked\",\n  \"pull_request_review\",\n  \"pull_request_review.dismissed\",\n  \"pull_request_review.edited\",\n  \"pull_request_review.submitted\",\n  \"pull_request_review_comment\",\n  \"pull_request_review_comment.created\",\n  \"pull_request_review_comment.deleted\",\n  \"pull_request_review_comment.edited\",\n  \"pull_request_review_thread\",\n  \"pull_request_review_thread.resolved\",\n  \"pull_request_review_thread.unresolved\",\n  \"push\",\n  \"registry_package\",\n  \"registry_package.published\",\n  \"registry_package.updated\",\n  \"release\",\n  \"release.created\",\n  \"release.deleted\",\n  \"release.edited\",\n  \"release.prereleased\",\n  \"release.published\",\n  \"release.released\",\n  \"release.unpublished\",\n  \"repository\",\n  \"repository.archived\",\n  \"repository.created\",\n  \"repository.deleted\",\n  \"repository.edited\",\n  \"repository.privatized\",\n  \"repository.publicized\",\n  \"repository.renamed\",\n  \"repository.transferred\",\n  \"repository.unarchived\",\n  \"repository_dispatch\",\n  \"repository_import\",\n  \"repository_vulnerability_alert\",\n  \"repository_vulnerability_alert.create\",\n  \"repository_vulnerability_alert.dismiss\",\n  \"repository_vulnerability_alert.reopen\",\n  \"repository_vulnerability_alert.resolve\",\n  \"secret_scanning_alert\",\n  \"secret_scanning_alert.created\",\n  \"secret_scanning_alert.reopened\",\n  \"secret_scanning_alert.resolved\",\n  \"secret_scanning_alert.revoked\",\n  \"secret_scanning_alert_location\",\n  \"secret_scanning_alert_location.created\",\n  \"security_advisory\",\n  \"security_advisory.performed\",\n  \"security_advisory.published\",\n  \"security_advisory.updated\",\n  \"security_advisory.withdrawn\",\n  \"sponsorship\",\n  \"sponsorship.cancelled\",\n  \"sponsorship.created\",\n  \"sponsorship.edited\",\n  \"sponsorship.pending_cancellation\",\n  \"sponsorship.pending_tier_change\",\n  \"sponsorship.tier_changed\",\n  \"star\",\n  \"star.created\",\n  \"star.deleted\",\n  \"status\",\n  \"team\",\n  \"team.added_to_repository\",\n  \"team.created\",\n  \"team.deleted\",\n  \"team.edited\",\n  \"team.removed_from_repository\",\n  \"team_add\",\n  \"watch\",\n  \"watch.started\",\n  \"workflow_dispatch\",\n  \"workflow_job\",\n  \"workflow_job.completed\",\n  \"workflow_job.in_progress\",\n  \"workflow_job.queued\",\n  \"workflow_job.waiting\",\n  \"workflow_run\",\n  \"workflow_run.completed\",\n  \"workflow_run.in_progress\",\n  \"workflow_run.requested\"\n];\nexport {\n  emitterEventNames\n};\n", "import { emitterEventNames } from \"../generated/webhook-names.js\";\nfunction handleEventHandlers(state, webhookName, handler) {\n  if (!state.hooks[webhookName]) {\n    state.hooks[webhookName] = [];\n  }\n  state.hooks[webhookName].push(handler);\n}\nfunction receiverOn(state, webhookNameOrNames, handler) {\n  if (Array.isArray(webhookNameOrNames)) {\n    webhookNameOrNames.forEach(\n      (webhookName) => receiverOn(state, webhookName, handler)\n    );\n    return;\n  }\n  if ([\"*\", \"error\"].includes(webhookNameOrNames)) {\n    const webhookName = webhookNameOrNames === \"*\" ? \"any\" : webhookNameOrNames;\n    const message = `Using the \"${webhookNameOrNames}\" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${webhookName.charAt(0).toUpperCase() + webhookName.slice(1)}() method instead`;\n    throw new Error(message);\n  }\n  if (!emitterEventNames.includes(webhookNameOrNames)) {\n    state.log.warn(\n      `\"${webhookNameOrNames}\" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`\n    );\n  }\n  handleEventHandlers(state, webhookNameOrNames, handler);\n}\nfunction receiverOnAny(state, handler) {\n  handleEventHandlers(state, \"*\", handler);\n}\nfunction receiverOnError(state, handler) {\n  handleEventHandlers(state, \"error\", handler);\n}\nexport {\n  receiverOn,\n  receiverOnAny,\n  receiverOnError\n};\n", "import AggregateError from \"aggregate-error\";\nimport { wrapErrorHandler } from \"./wrap-error-handler.js\";\nfunction getHooks(state, eventPayloadAction, eventName) {\n  const hooks = [state.hooks[eventName], state.hooks[\"*\"]];\n  if (eventPayloadAction) {\n    hooks.unshift(state.hooks[`${eventName}.${eventPayloadAction}`]);\n  }\n  return [].concat(...hooks.filter(Boolean));\n}\nfunction receiverHandle(state, event) {\n  const errorHandlers = state.hooks.error || [];\n  if (event instanceof Error) {\n    const error = Object.assign(new AggregateError([event]), {\n      event,\n      errors: [event]\n    });\n    errorHandlers.forEach((handler) => wrapErrorHandler(handler, error));\n    return Promise.reject(error);\n  }\n  if (!event || !event.name) {\n    throw new AggregateError([\"Event name not passed\"]);\n  }\n  if (!event.payload) {\n    throw new AggregateError([\"Event payload not passed\"]);\n  }\n  const hooks = getHooks(\n    state,\n    \"action\" in event.payload ? event.payload.action : null,\n    event.name\n  );\n  if (hooks.length === 0) {\n    return Promise.resolve();\n  }\n  const errors = [];\n  const promises = hooks.map((handler) => {\n    let promise = Promise.resolve(event);\n    if (state.transform) {\n      promise = promise.then(state.transform);\n    }\n    return promise.then((event2) => {\n      return handler(event2);\n    }).catch((error) => errors.push(Object.assign(error, { event })));\n  });\n  return Promise.all(promises).then(() => {\n    if (errors.length === 0) {\n      return;\n    }\n    const error = new AggregateError(errors);\n    Object.assign(error, {\n      event,\n      errors\n    });\n    errorHandlers.forEach((handler) => wrapErrorHandler(handler, error));\n    throw error;\n  });\n}\nexport {\n  receiverHandle\n};\n", "function wrapErrorHandler(handler, error) {\n  let returnValue;\n  try {\n    returnValue = handler(error);\n  } catch (error2) {\n    console.log('FATAL: Error occurred in \"error\" event handler');\n    console.log(error2);\n  }\n  if (returnValue && returnValue.catch) {\n    returnValue.catch((error2) => {\n      console.log('FATAL: Error occurred in \"error\" event handler');\n      console.log(error2);\n    });\n  }\n}\nexport {\n  wrapErrorHandler\n};\n", "function removeListener(state, webhookNameOrNames, handler) {\n  if (Array.isArray(webhookNameOrNames)) {\n    webhookNameOrNames.forEach(\n      (webhookName) => removeListener(state, webhookName, handler)\n    );\n    return;\n  }\n  if (!state.hooks[webhookNameOrNames]) {\n    return;\n  }\n  for (let i = state.hooks[webhookNameOrNames].length - 1; i >= 0; i--) {\n    if (state.hooks[webhookNameOrNames][i] === handler) {\n      state.hooks[webhookNameOrNames].splice(i, 1);\n      return;\n    }\n  }\n}\nexport {\n  removeListener\n};\n", "import { createLogger } from \"../createLogger.js\";\nimport {\n  receiverOn as on,\n  receiverOnAny as onAny,\n  receiverOnError as onError\n} from \"./on.js\";\nimport { receiverHandle as receive } from \"./receive.js\";\nimport { removeListener } from \"./remove-listener.js\";\nfunction createEventHandler(options) {\n  const state = {\n    hooks: {},\n    log: createLogger(options && options.log)\n  };\n  if (options && options.transform) {\n    state.transform = options.transform;\n  }\n  return {\n    on: on.bind(null, state),\n    onAny: onAny.bind(null, state),\n    onError: onError.bind(null, state),\n    removeListener: removeListener.bind(null, state),\n    receive: receive.bind(null, state)\n  };\n}\nexport {\n  createEventHandler\n};\n", "import { createLogger } from \"./createLogger.js\";\nimport { createEventHandler } from \"./event-handler/index.js\";\nimport { sign, verify } from \"@octokit/webhooks-methods\";\nimport { verifyAndReceive } from \"./verify-and-receive.js\";\nimport { createNodeMiddleware } from \"./middleware/node/index.js\";\nimport { emitterEventNames } from \"./generated/webhook-names.js\";\nclass Webhooks {\n  constructor(options) {\n    if (!options || !options.secret) {\n      throw new Error(\"[@octokit/webhooks] options.secret required\");\n    }\n    const state = {\n      eventHandler: createEventHandler(options),\n      secret: options.secret,\n      hooks: {},\n      log: createLogger(options.log)\n    };\n    this.sign = sign.bind(null, options.secret);\n    this.verify = verify.bind(null, options.secret);\n    this.on = state.eventHandler.on;\n    this.onAny = state.eventHandler.onAny;\n    this.onError = state.eventHandler.onError;\n    this.removeListener = state.eventHandler.removeListener;\n    this.receive = state.eventHandler.receive;\n    this.verifyAndReceive = verifyAndReceive.bind(null, state);\n  }\n}\nexport {\n  Webhooks,\n  createEventHandler,\n  createNodeMiddleware,\n  emitterEventNames\n};\n", "import AggregateError from \"aggregate-error\";\nimport { verify } from \"@octokit/webhooks-methods\";\nasync function verifyAndReceive(state, event) {\n  const matchesSignature = await verify(\n    state.secret,\n    event.payload,\n    event.signature\n  ).catch(() => false);\n  if (!matchesSignature) {\n    const error = new Error(\n      \"[@octokit/webhooks] signature does not match event payload and secret\"\n    );\n    return state.eventHandler.receive(\n      Object.assign(error, { event, status: 400 })\n    );\n  }\n  let payload;\n  try {\n    payload = JSON.parse(event.payload);\n  } catch (error) {\n    error.message = \"Invalid JSON\";\n    error.status = 400;\n    throw new AggregateError([error]);\n  }\n  return state.eventHandler.receive({\n    id: event.id,\n    name: event.name,\n    payload\n  });\n}\nexport {\n  verifyAndReceive\n};\n", "const WEBHOOK_HEADERS = [\n  \"x-github-event\",\n  \"x-hub-signature-256\",\n  \"x-github-delivery\"\n];\nfunction getMissingHeaders(request) {\n  return WEBHOOK_HEADERS.filter((header) => !(header in request.headers));\n}\nexport {\n  getMissingHeaders\n};\n", "import AggregateError from \"aggregate-error\";\nfunction getPayload(request) {\n  if (\"body\" in request) {\n    if (typeof request.body === \"object\" && \"rawBody\" in request && request.rawBody instanceof Buffer) {\n      return Promise.resolve(request.rawBody.toString(\"utf8\"));\n    } else {\n      return Promise.resolve(request.body);\n    }\n  }\n  return new Promise((resolve, reject) => {\n    let data = [];\n    request.on(\"error\", (error) => reject(new AggregateError([error])));\n    request.on(\"data\", (chunk) => data.push(chunk));\n    request.on(\n      \"end\",\n      () => (\n        // setImmediate improves the throughput by reducing the pressure from\n        // the event loop\n        setImmediate(\n          resolve,\n          data.length === 1 ? data[0].toString(\"utf8\") : Buffer.concat(data).toString(\"utf8\")\n        )\n      )\n    );\n  });\n}\nexport {\n  getPayload\n};\n", "function onUnhandledRequestDefault(request, response) {\n  response.writeHead(404, {\n    \"content-type\": \"application/json\"\n  });\n  response.end(\n    JSON.stringify({\n      error: `Unknown route: ${request.method} ${request.url}`\n    })\n  );\n}\nexport {\n  onUnhandledRequestDefault\n};\n", "import { getMissingHeaders } from \"./get-missing-headers.js\";\nimport { getPayload } from \"./get-payload.js\";\nimport { onUnhandledRequestDefault } from \"./on-unhandled-request-default.js\";\nasync function middleware(webhooks, options, request, response, next) {\n  let pathname;\n  try {\n    pathname = new URL(request.url, \"http://localhost\").pathname;\n  } catch (error) {\n    response.writeHead(422, {\n      \"content-type\": \"application/json\"\n    });\n    response.end(\n      JSON.stringify({\n        error: `Request URL could not be parsed: ${request.url}`\n      })\n    );\n    return true;\n  }\n  if (pathname !== options.path) {\n    next?.();\n    return false;\n  } else if (request.method !== \"POST\") {\n    onUnhandledRequestDefault(request, response);\n    return true;\n  }\n  if (!request.headers[\"content-type\"] || !request.headers[\"content-type\"].startsWith(\"application/json\")) {\n    response.writeHead(415, {\n      \"content-type\": \"application/json\",\n      accept: \"application/json\"\n    });\n    response.end(\n      JSON.stringify({\n        error: `Unsupported \"Content-Type\" header value. Must be \"application/json\"`\n      })\n    );\n    return true;\n  }\n  const missingHeaders = getMissingHeaders(request).join(\", \");\n  if (missingHeaders) {\n    response.writeHead(400, {\n      \"content-type\": \"application/json\"\n    });\n    response.end(\n      JSON.stringify({\n        error: `Required headers missing: ${missingHeaders}`\n      })\n    );\n    return true;\n  }\n  const eventName = request.headers[\"x-github-event\"];\n  const signatureSHA256 = request.headers[\"x-hub-signature-256\"];\n  const id = request.headers[\"x-github-delivery\"];\n  options.log.debug(`${eventName} event received (id: ${id})`);\n  let didTimeout = false;\n  const timeout = setTimeout(() => {\n    didTimeout = true;\n    response.statusCode = 202;\n    response.end(\"still processing\\n\");\n  }, 9e3).unref();\n  try {\n    const payload = await getPayload(request);\n    await webhooks.verifyAndReceive({\n      id,\n      name: eventName,\n      payload,\n      signature: signatureSHA256\n    });\n    clearTimeout(timeout);\n    if (didTimeout)\n      return true;\n    response.end(\"ok\\n\");\n    return true;\n  } catch (error) {\n    clearTimeout(timeout);\n    if (didTimeout)\n      return true;\n    const err = Array.from(error)[0];\n    const errorMessage = err.message ? `${err.name}: ${err.message}` : \"Error: An Unspecified error occurred\";\n    response.statusCode = typeof err.status !== \"undefined\" ? err.status : 500;\n    options.log.error(error);\n    response.end(\n      JSON.stringify({\n        error: errorMessage\n      })\n    );\n    return true;\n  }\n}\nexport {\n  middleware\n};\n", "import { createLogger } from \"../../createLogger.js\";\nimport { middleware } from \"./middleware.js\";\nfunction createNodeMiddleware(webhooks, {\n  path = \"/api/github/webhooks\",\n  log = createLogger()\n} = {}) {\n  return middleware.bind(null, webhooks, {\n    path,\n    log\n  });\n}\nexport {\n  createNodeMiddleware\n};\n"],
  "mappings": ";AAAA,IAAM,eAAe,CAAC,YAAY;AAAA,EAChC,OAAO,MAAM;AAAA,EACb;AAAA,EACA,MAAM,MAAM;AAAA,EACZ;AAAA,EACA,MAAM,QAAQ,KAAK,KAAK,OAAO;AAAA,EAC/B,OAAO,QAAQ,MAAM,KAAK,OAAO;AAAA,EACjC,GAAG;AACL;;;ACRA,IAAM,oBAAoB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA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