text: import aliases from "../../base/aliases"
  import { isExternal } from "../../utils"
  
  export default function (value, page)
  {
      const assets = value.split(',')
  
      assets.forEach(asset => {
          asset = asset.trim()
  
          if (!asset || isExternal(asset))
              return
  
          asset = asset.replace(/ \d{1,2}x$/g, '').trim()
  
          let file = false
  
          asset.replace(/^@([\w-]+)(.*)/i, (str, block, end) => {
              if ([ 'styles', 'symbol', 'scripts', 'static', 'favicons'].includes(block))
                  return
  
              return (file = aliases.get( "@blocks", '*', block, 'assets', end))
          })
  
          if (file && page.assets.indexOf(file) === -1)
              page.assets.push(file)
      })
  }