{
  "version": 3,
  "sources": ["/cdn/shop/t/2/assets/twc-events-source.js?twc_revision=20260817_5"],
  "sourcesContent": ["/*\n * TwcEventsSource \u2014 every published event, once per page.\n *\n * WHY THIS EXISTS: Liquid's `shop.metaobjects.twc_event.values` stops at 50\n * entries, and the archive holds ~300 published events. An event outside that\n * first 50 reaches no Liquid-rendered surface. Liquid cannot page\n * metaobjects. The public Storefront GraphQL API can, so the events surfaces\n * read it.\n *\n * This module owns the READ and the MODEL. It owns no DOM, no words and no\n * layout. ONE surface consumes it:\n *\n *   sections/twc-events-index.liquid  (assets/twc-events.js)  full index\n *\n * The two small teaser cards do not: the server renders them from the\n * engine's content digest \u2014 the complete upcoming set, restamped every five\n * minutes \u2014 so they need no browser read at all. The index still reads here,\n * because a pager that walks ~300 past events cannot live inside a 60-entry\n * digest.\n *\n * CONTRACT\n *\n *   TwcEventsSource.load(options) -> Promise<model | null>\n *\n *     options {token, domain, version, timeZone}. Resolves to null \u2014 never\n *     rejects \u2014 when the token is missing or ANY part of the read fails. A null\n *     answer means \"keep exactly what the server rendered\". No consumer may\n *     blank out its Liquid content on a failure: a member with a slow network\n *     or a rotated token still sees the events Liquid could reach.\n *\n *   model {\n *     events            every entry, normalized, in cursor order\n *     upcoming(nowMs)   NEW array, soonest first\n *     past(nowMs)       NEW array, newest first\n *   }\n *\n * ONE FETCH PER PAGE. The promise is cached on the endpoint + token, so two\n * consumers on one page share a single in-flight request. That cache is also\n * why no caller's AbortSignal is passed to fetch(): one island unmounting must\n * not cancel the read another island is waiting on. Each consumer instead\n * checks its OWN signal after the promise settles and drops the answer if it\n * has since disconnected. A failed read clears its cache entry, so a later\n * mount may try again.\n *\n * THE SPLIT is the store's, not the browser's. An event runs on wall-clock\n * time in `Australia/Sydney` (SHOP `twc.content_timezone`), so \"does this event\n * span more than one day\" is answered in that zone and never in the visitor's.\n * A multi-day event stays upcoming until its END passes; a single-day event\n * until its START passes; an entry with no dates at all has not passed.\n *\n * Exposure follows assets/twc-cta-resolver.js and assets/twc-geo.js: one IIFE,\n * one global, idempotent under duplicate script tags. Every function below the\n * fetch is pure, so dev/test-events-source.mjs exercises the model and the\n * split with no network at all.\n */\n(function (global) {\n  'use strict';\n\n  if (global.TwcEventsSource) return; // idempotent under duplicate script tags\n\n  /* ---- 1. constants ----------------------------------------------------- */\n\n  var DEFAULT_VERSION = '2026-07';\n  var DEFAULT_TIMEZONE = 'Australia/Sydney';\n  var METAOBJECT_TYPE = 'twc_event';\n\n  // 250 is the Storefront API's ceiling for `first` on a metaobjects\n  // connection; 304 entries therefore cost two round trips, not seven.\n  var PAGE_SIZE = 250;\n\n  // 5000 entries. A cursor that never reports hasNextPage:false would\n  // otherwise spin forever against the member's data plan.\n  var MAX_PAGES = 20;\n\n  /* The document. `sortKey: \"id\"` gives the cursor a stable total order, so a\n   * page boundary cannot drop or repeat an entry while an editor saves.\n   * Verified against shopify.dev/docs/api/storefront/2026-07 \u2014\n   * MetaobjectConnection takes (type!, first, after, sortKey \"id\"|\"updated_at\").\n   *\n   * `fields { key value }` returns every populated field as a string; the\n   * IMAGES are file references, and a reference resolves to a URL only through\n   * the `reference { ... on MediaImage { image { url } } }` shape, which needs\n   * the token's `unauthenticated_read_product_listings` scope on top of\n   * `unauthenticated_read_metaobjects`. `twc_event` names its hero\n   * `event_image`; `hero_image` is asked for too so a later rename cannot\n   * silently drop the art. */\n  var QUERY =\n    'query TwcEventsSource($first: Int!, $after: String) {' +\n    ' metaobjects(type: \"' + METAOBJECT_TYPE + '\", first: $first, after: $after, sortKey: \"id\") {' +\n    '  nodes {' +\n    '   handle' +\n    '   onlineStoreUrl' +\n    '   fields { key value }' +\n    '   eventImage: field(key: \"event_image\") {' +\n    '    reference { ... on MediaImage { image { url altText width height } } }' +\n    '   }' +\n    '   heroImage: field(key: \"hero_image\") {' +\n    '    reference { ... on MediaImage { image { url altText width height } } }' +\n    '   }' +\n    '  }' +\n    '  pageInfo { hasNextPage endCursor }' +\n    ' }' +\n    '}';\n\n  /* ---- 2. small pure helpers -------------------------------------------- */\n\n  function textFrom(map, key) {\n    var value = map[key];\n    return value == null ? '' : String(value).trim();\n  }\n\n  function fieldMap(node) {\n    var map = {};\n    (node.fields || []).forEach(function (field) {\n      if (field && field.key) map[field.key] = field.value == null ? '' : field.value;\n    });\n    return map;\n  }\n\n  /** A Shopify rich_text_field is a JSON document, not HTML. Flatten it to the\n   *  one sentence a card can hold. Anything unparseable is already plain. */\n  function plainText(value) {\n    if (!value) return '';\n    var document;\n    try {\n      document = JSON.parse(value);\n    } catch (error) {\n      return String(value).trim();\n    }\n\n    function read(node) {\n      if (!node) return '';\n      if (node.type === 'text') return node.value || '';\n      var children = (node.children || []).map(read).filter(Boolean);\n      var joiner = node.type === 'root' || node.type === 'list' ? ' ' : '';\n      return children.join(joiner);\n    }\n\n    return read(document).replace(/\\s+/g, ' ').trim();\n  }\n\n  /** Matches Liquid's `truncate: n, '\u2026'`: the ellipsis is INSIDE the budget. */\n  function truncate(text, limit) {\n    var clean = String(text || '').trim();\n    if (clean.length <= limit) return clean;\n    return clean.slice(0, Math.max(0, limit - 1)).replace(/\\s+$/, '') + '\u2026';\n  }\n\n  /** Shopify CDN URLs already carry `?v=`, so the separator is decided, not\n   *  assumed. The BASE url is what the model holds; sizing is the host's. */\n  function imageUrl(url, width) {\n    if (!url) return '';\n    return url + (url.indexOf('?') === -1 ? '?' : '&') + 'width=' + String(width);\n  }\n\n  function pathOf(url, origin) {\n    if (!url) return '';\n    try {\n      return new URL(url, origin).pathname;\n    } catch (error) {\n      return url;\n    }\n  }\n\n  /** An event's ticket link may point back at this store or out at a promoter.\n   *  A same-store link becomes a path so it never leaves the current origin\n   *  (and never bounces a member through the myshopify domain). */\n  function sameStorePath(url, storeDomain, origin, currentHost) {\n    if (!url) return '';\n    try {\n      var parsed = new URL(url, origin);\n      if (parsed.hostname !== currentHost && parsed.hostname !== storeDomain) return url;\n      return parsed.pathname + parsed.search + parsed.hash;\n    } catch (error) {\n      return url;\n    }\n  }\n\n  function epochOf(value) {\n    if (!value) return 0;\n    var time = Date.parse(value);\n    return Number.isNaN(time) ? 0 : time;\n  }\n\n  function decimalOf(value) {\n    if (value === '' || value == null) return null;\n    var number = Number(value);\n    return Number.isFinite(number) ? number : null;\n  }\n\n  /** The location key the index filter and the Liquid `data-twc-location`\n   *  attribute agree on. Same transform as twc-events-index.liquid. */\n  function locationKey(label) {\n    return String(label || '')\n      .toLowerCase()\n      .replace(/ /g, '-')\n      .replace(/,/g, '')\n      .replace(/\\//g, '-');\n  }\n\n  /* ---- 3. store-local calendar ------------------------------------------ */\n\n  /* These labels must READ THE SAME as the ones Liquid writes beside them, and\n   * Liquid's `date:` filter is strftime in English. Intl is not: `en-AU` and\n   * `en-GB` abbreviate September as \"Sept\" where strftime's %b gives \"Sep\", so\n   * a card rebuilt by this module would silently disagree with the card the\n   * server rendered. Intl is therefore used ONLY to move an instant into the\n   * store's timezone; every WORD comes from the tables below.\n   *\n   *   MONTHS[n]              %B   \"September\"    MONTHS[n].slice(0, 3)  %b  \"Sep\"\n   *   WEEKDAYS[n]            %A   \"Thursday\"     WEEKDAYS[n].slice(0,3) %a  \"Thu\"\n   */\n  var MONTHS = [\n    'January', 'February', 'March', 'April', 'May', 'June',\n    'July', 'August', 'September', 'October', 'November', 'December',\n  ];\n  var WEEKDAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n\n  var ZONED = {\n    year: 'numeric',\n    month: 'numeric',\n    day: 'numeric',\n    weekday: 'long',\n    hour: '2-digit',\n    minute: '2-digit',\n    hour12: false,\n  };\n\n  var pad = function (value) {\n    return String(value).length < 2 ? '0' + value : String(value);\n  };\n\n  /** An instant, as the store's wall clock reads it. */\n  function partsIn(timeZone, time) {\n    var values = {};\n    // 'en-US' is fixed on purpose: only the NUMBERS and the weekday slot are\n    // read from it, and its 24-hour midnight is \"00\", not the \"24\" some\n    // locales return.\n    new Intl.DateTimeFormat('en-US', Object.assign({ timeZone: timeZone }, ZONED))\n      .formatToParts(new Date(time))\n      .forEach(function (part) {\n        values[part.type] = part.value;\n      });\n\n    var hour24 = Number(values.hour) % 24;\n    var monthIndex = Number(values.month) - 1;\n    var weekdayIndex = WEEKDAYS.indexOf(values.weekday);\n\n    return {\n      year: values.year,\n      monthIndex: monthIndex,\n      monthLong: MONTHS[monthIndex] || '',\n      monthShort: (MONTHS[monthIndex] || '').slice(0, 3),\n      day: String(Number(values.day)),\n      dayPadded: pad(Number(values.day)),\n      weekdayLong: weekdayIndex === -1 ? '' : WEEKDAYS[weekdayIndex],\n      weekdayShort: weekdayIndex === -1 ? '' : WEEKDAYS[weekdayIndex].slice(0, 3),\n      hour: pad(hour24),\n      hour12: String(hour24 % 12 === 0 ? 12 : hour24 % 12),\n      minute: pad(Number(values.minute)),\n      period: hour24 < 12 ? 'am' : 'pm',\n    };\n  }\n\n  function dayKey(parts) {\n    return [parts.year, parts.monthIndex, parts.day].join('|');\n  }\n\n  /* ---- 4. one entry ------------------------------------------------------ */\n\n  function imageFrom(node) {\n    var field = node.eventImage || node.heroImage;\n    var found = field && field.reference && field.reference.image;\n    if (!found || !found.url) return null;\n    return {\n      url: found.url,\n      alt: found.altText || '',\n      width: found.width || null,\n      height: found.height || null,\n    };\n  }\n\n  /**\n   * One `twc_event` node -> the shape every events surface reads.\n   *\n   * The two DATE LABELS are built here because all three surfaces need them\n   * and each derives them the same way the Liquid does:\n   *\n   *   datetimeLabel  the \"Date & Time\" row of snippets/twc-event-details-table\n   *                  (\"Monday, 25 August 2026 \u00B7 19:00\u201319:30\", or the day range\n   *                  when the event spans days). An IMPORTED entry (it carries\n   *                  a magento_id) derives the label from its timestamps and\n   *                  honours `hide_date`; a hand-authored entry shows its own\n   *                  `datetime_label` verbatim, which is what that field is for.\n   *   rowMeta        the one meta line of snippets/twc-event-row\n   *                  (\"Tue 25 Aug \u00B7 7:00 pm \u00B7 South Melbourne VIC\").\n   */\n  function normalizeEntry(node, options) {\n    var map = fieldMap(node);\n    var handle = node.handle || '';\n    var timeZone = options.timeZone;\n\n    var startsAt = textFrom(map, 'starts_at');\n    var endsAt = textFrom(map, 'ends_at');\n    var startsAtMs = epochOf(startsAt) || epochOf(endsAt);\n    var endsAtMs = epochOf(endsAt) || epochOf(startsAt);\n\n    var startParts = startsAtMs ? partsIn(timeZone, startsAtMs) : null;\n    var endParts = endsAtMs ? partsIn(timeZone, endsAtMs) : null;\n    var multiDay = Boolean(startParts && endParts && dayKey(startParts) !== dayKey(endParts));\n\n    // The moment this event stops being upcoming. A week-long event keeps its\n    // place until its last hour; a one-night event goes past when it starts.\n    var cutoffMs = multiDay ? endsAtMs : startsAtMs || endsAtMs;\n\n    var imported = textFrom(map, 'magento_id') !== '';\n    var hideDate = textFrom(map, 'hide_date') === 'true';\n\n    var datetimeLabel = '';\n    if (!imported) {\n      datetimeLabel = textFrom(map, 'datetime_label');\n    } else if (!hideDate && startParts) {\n      var startLabel =\n        startParts.weekdayLong + ', ' + startParts.day + ' ' + startParts.monthLong + ' ' + startParts.year +\n        ' \u00B7 ' + startParts.hour + ':' + startParts.minute;\n      if (!endParts || !epochOf(endsAt)) {\n        datetimeLabel = startLabel;\n      } else if (!multiDay) {\n        datetimeLabel = startLabel + '\u2013' + endParts.hour + ':' + endParts.minute;\n      } else {\n        datetimeLabel =\n          startParts.day + '\u2013' + endParts.day + ' ' + endParts.monthLong + ' ' + endParts.year +\n          ' \u00B7 ' + startParts.hour + ':' + startParts.minute + '\u2013' + endParts.hour + ':' + endParts.minute;\n      }\n    }\n\n    var badge = startsAtMs && !(imported && hideDate) ? startParts : null;\n\n    var suburb = textFrom(map, 'suburb');\n    var state = textFrom(map, 'state');\n    var locationLabel = textFrom(map, 'location_label');\n    var eventType = textFrom(map, 'event_type');\n\n    // \"Suburb STATE\" when the entry names both \u2014 the shape the board draws.\n    // Otherwise the entry's own label, then whichever single field is filled,\n    // then the eyebrow. Identical ladder to snippets/twc-event-row.liquid.\n    var placeLabel = '';\n    if (suburb && state) {\n      placeLabel = suburb + ' ' + state;\n    } else {\n      placeLabel = locationLabel || suburb || state || eventType;\n    }\n\n    var rowMeta = '';\n    if (badge) {\n      rowMeta =\n        badge.weekdayShort + ' ' + badge.day + ' ' + badge.monthShort +\n        ' \u00B7 ' + badge.hour12 + ':' + badge.minute + ' ' + badge.period;\n    }\n    if (placeLabel) rowMeta = rowMeta ? rowMeta + ' \u00B7 ' + placeLabel : placeLabel;\n\n    var image = imageFrom(node);\n\n    // Corrected imports omit Magento's 0/0 sentinel. Keep this read-side guard\n    // for stale or hand-entered values: an online live stream is not in the\n    // Gulf of Guinea, so both-zero still means \"no place on the map\".\n    var lat = decimalOf(textFrom(map, 'lat'));\n    var lng = decimalOf(textFrom(map, 'lng'));\n    if (lat === 0 && lng === 0) {\n      lat = null;\n      lng = null;\n    }\n\n    var minimumAge = textFrom(map, 'minimum_age');\n    var registerUsingFacebook = textFrom(map, 'register_using_facebook') === 'true';\n    var ticketUrl = textFrom(map, 'ticket_url');\n    var facebookUrl = textFrom(map, 'facebook_event_url');\n    var usesFacebookFallback = !registerUsingFacebook && !ticketUrl && Boolean(facebookUrl);\n\n    return {\n      handle: handle,\n      // The Online Store capability publishes every entry at\n      // /pages/event/<handle>; the API's absolute URL is preferred because it\n      // already carries whatever prefix the shop uses.\n      url: pathOf(node.onlineStoreUrl || '', options.origin) || '/pages/event/' + handle,\n      title: textFrom(map, 'title'),\n      eventType: eventType,\n      locationLabel: locationLabel,\n      suburb: suburb,\n      state: state,\n      country: textFrom(map, 'country'),\n      clubhouseId: textFrom(map, 'clubhouse'),\n      placeLabel: placeLabel,\n      // The index filter groups by state, and falls back to the free-text\n      // location when the entry names no state.\n      filterLabel: state || locationLabel,\n      filterKey: locationKey(state || locationLabel),\n      startsAt: startsAt,\n      endsAt: endsAt,\n      startsAtMs: startsAtMs,\n      endsAtMs: endsAtMs,\n      cutoffMs: cutoffMs,\n      datetimeLabel: datetimeLabel,\n      // The index badge draws \"Aug\" over \"25\" (Liquid `%b` / `%d`); the\n      // dashboard row draws the month upper-cased, which its CSS already does.\n      badgeMonth: badge ? badge.monthShort : '',\n      badgeDay: badge ? badge.dayPadded : '',\n      rowMeta: rowMeta,\n      memberPrice: textFrom(map, 'member_price'),\n      regularPrice: textFrom(map, 'regular_price'),\n      discountCode: textFrom(map, 'discount_code'),\n      discountPercent: textFrom(map, 'member_discount').replace(/%$/, ''),\n      ageRestriction: minimumAge ? minimumAge + '+' : '',\n      // A hand-authored entry may name its own button; an imported one never\n      // does, so the host supplies its translated default.\n      ctaLabel: imported ? '' : textFrom(map, 'download_label'),\n      registerUsingFacebook: registerUsingFacebook,\n      usesFacebookFallback: usesFacebookFallback,\n      ctaUrl: sameStorePath(registerUsingFacebook ? facebookUrl : ticketUrl || facebookUrl, options.domain, options.origin, options.host),\n      heroImageUrl: image ? image.url : '',\n      heroImageAlt: image ? image.alt : '',\n      heroImageWidth: image ? image.width : null,\n      heroImageHeight: image ? image.height : null,\n      description: plainText(map.description),\n      lat: lat,\n      lng: lng,\n    };\n  }\n\n  /* ---- 5. the model ------------------------------------------------------ */\n\n  function byHandle(left, right) {\n    return String(left.handle).localeCompare(String(right.handle), 'en');\n  }\n\n  function sortTime(event) {\n    return event.startsAtMs || event.endsAtMs;\n  }\n\n  function upcomingOf(events, nowMs) {\n    return events\n      .filter(function (event) {\n        return !(event.cutoffMs && event.cutoffMs <= nowMs);\n      })\n      .sort(function (a, b) {\n        return sortTime(a) - sortTime(b) || byHandle(a, b);\n      });\n  }\n\n  function pastOf(events, nowMs) {\n    return events\n      .filter(function (event) {\n        return Boolean(event.cutoffMs && event.cutoffMs <= nowMs);\n      })\n      .sort(function (a, b) {\n        return sortTime(b) - sortTime(a) || byHandle(a, b);\n      });\n  }\n\n  function model(events) {\n    return {\n      events: events,\n      upcoming: function (nowMs) {\n        return upcomingOf(events, typeof nowMs === 'number' ? nowMs : Date.now());\n      },\n      past: function (nowMs) {\n        return pastOf(events, typeof nowMs === 'number' ? nowMs : Date.now());\n      },\n    };\n  }\n\n  function normalize(nodes, options) {\n    var settings = resolveOptions(options);\n    return (nodes || []).map(function (node) {\n      return normalizeEntry(node, settings);\n    });\n  }\n\n  /* ---- 6. the read ------------------------------------------------------- */\n\n  function resolveOptions(options) {\n    var given = options || {};\n    var location = global.location || {};\n    return {\n      token: String(given.token || '').trim(),\n      domain: String(given.domain || '').trim(),\n      version: String(given.version || '').trim() || DEFAULT_VERSION,\n      timeZone: String(given.timeZone || '').trim() || DEFAULT_TIMEZONE,\n      origin: given.origin || location.origin || '',\n      host: given.host || location.hostname || '',\n      fetch: given.fetch || (global.fetch ? global.fetch.bind(global) : null),\n    };\n  }\n\n  async function readAll(settings) {\n    var nodes = [];\n    var after = null;\n    var pages = 0;\n    var endpoint = 'https://' + settings.domain + '/api/' + settings.version + '/graphql.json';\n\n    do {\n      pages += 1;\n      if (pages > MAX_PAGES) throw new Error('Events cursor did not terminate');\n\n      var response = await settings.fetch(endpoint, {\n        method: 'POST',\n        headers: {\n          'Content-Type': 'application/json',\n          'X-Shopify-Storefront-Access-Token': settings.token,\n        },\n        body: JSON.stringify({ query: QUERY, variables: { first: PAGE_SIZE, after: after } }),\n      });\n\n      if (!response.ok) throw new Error('Events request failed');\n      var body = await response.json();\n      if (body.errors && body.errors.length) throw new Error('Events query failed');\n      var connection = body.data && body.data.metaobjects;\n      if (!connection) throw new Error('Events response was incomplete');\n\n      nodes = nodes.concat(connection.nodes || []);\n      var info = connection.pageInfo || {};\n      after = info.hasNextPage ? info.endCursor : null;\n      if (info.hasNextPage && !after) throw new Error('Events response omitted its next cursor');\n    } while (after);\n\n    return nodes;\n  }\n\n  var inFlight = {};\n\n  function load(options) {\n    var settings = resolveOptions(options);\n    if (!settings.token || !settings.domain || !settings.fetch) return Promise.resolve(null);\n\n    var key = [settings.domain, settings.version, settings.timeZone, settings.token].join('|');\n    if (!inFlight[key]) {\n      inFlight[key] = readAll(settings).then(\n        function (nodes) {\n          return model(\n            nodes.map(function (node) {\n              return normalizeEntry(node, settings);\n            })\n          );\n        },\n        function () {\n          // Deliberately generic and deliberately swallowed. The consumers keep\n          // their Liquid-rendered content, and the public token never reaches a\n          // console line where it could be pasted into a bug report.\n          delete inFlight[key];\n          if (global.console && global.console.warn) {\n            global.console.warn('The complete events list could not be loaded.');\n          }\n          return null;\n        }\n      );\n    }\n    return inFlight[key];\n  }\n\n  /** Read the island configuration a section or block put on its host node. */\n  function options(host) {\n    if (!host || !host.getAttribute) return {};\n    return {\n      token: host.getAttribute('data-storefront-token') || '',\n      domain: host.getAttribute('data-store-domain') || '',\n      version: host.getAttribute('data-storefront-api-version') || '',\n      timeZone: host.getAttribute('data-content-timezone') || '',\n    };\n  }\n\n  global.TwcEventsSource = {\n    load: load,\n    options: options,\n    // Pure surface \u2014 dev/test-events-source.mjs drives these with no network.\n    normalize: normalize,\n    normalizeEntry: normalizeEntry,\n    model: model,\n    upcomingOf: upcomingOf,\n    pastOf: pastOf,\n    plainText: plainText,\n    truncate: truncate,\n    imageUrl: imageUrl,\n    locationKey: locationKey,\n    query: QUERY,\n  };\n})(window);\n"],
  "mappings": "CAuDC,SAAU,OAAQ,CACjB,aAEA,GAAI,OAAO,gBAAiB,OAI5B,IAAI,gBAAkB,UAClB,iBAAmB,mBACnB,gBAAkB,YAIlB,UAAY,IAIZ,UAAY,GAcZ,MACF,4EACyB,gBAAkB,sYAkB7C,SAAS,SAAS,IAAK,IAAK,CAC1B,IAAI,MAAQ,IAAI,GAAG,EACnB,OAAO,OAAS,KAAO,GAAK,OAAO,KAAK,EAAE,KAAK,CACjD,CAEA,SAAS,SAAS,KAAM,CACtB,IAAI,IAAM,CAAC,EACX,OAAC,KAAK,QAAU,CAAC,GAAG,QAAQ,SAAU,MAAO,CACvC,OAAS,MAAM,MAAK,IAAI,MAAM,GAAG,EAAI,MAAM,OAAS,KAAO,GAAK,MAAM,MAC5E,CAAC,EACM,GACT,CAIA,SAAS,UAAU,MAAO,CACxB,GAAI,CAAC,MAAO,MAAO,GACnB,IAAI,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