/*! * vue-format v0.3.1 * (c) 2016 Haixing Hu * Released under the MIT License. */ !function(r){function t(e){if(n[e])return n[e].exports;var o=n[e]={exports:{},id:e,loaded:!1};return r[e].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=r,t.c=n,t.p="",t(0)}([function(r,t,n){t.install=function(r,t){var e=n(1);r.prototype.$format=e,r.filter("format",e)}},function(r,t){var n=/\{([0-9a-zA-Z]+)\}/g;r.exports=function(){if(0===arguments.length)return"";if(1===arguments.length)return arguments[0];var r=arguments,t=r[0];return t.replace(n,function(n,e,o){if("{"===t[o-1]&&"}"===t[o+n.length])return e;var u=parseInt(e),a=r[u+1];return null===a||void 0===a?"":a})}}]);