text: /**
   * vue-resource v0.5.1
   * https://github.com/vuejs/vue-resource
   * Released under the MIT License.
   */
  
  !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueResource=e():t.VueResource=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(t){var e=n(1)(t);t.url=n(2)(e),t.http=n(4)(e),t.resource=n(18)(e),t.promise=n(5)(e),Object.defineProperties(t.prototype,{$url:{get:function(){return e.options(t.url,this,this.$options.url)}},$http:{get:function(){return e.options(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}}})}window.Vue&&Vue.use(r),t.exports=r},function(t,e){t.exports=function(t){function e(t,r,o){for(var i in r)o&&(n.isPlainObject(r[i])||n.isArray(r[i]))?(n.isPlainObject(r[i])&&!n.isPlainObject(t[i])&&(t[i]={}),n.isArray(r[i])&&!n.isArray(t[i])&&(t[i]=[]),e(t[i],r[i],o)):void 0!==r[i]&&(t[i]=r[i])}var n=t.util.extend({},t.util),r=t.config,o=window.console;return n.warn=function(e){o&&t.util.warn&&(!r.silent||r.debug)&&o.warn("[VueResource warn]: "+e)},n.error=function(t){o&&o.error(t)},n.trim=function(t){return t.replace(/^\s*|\s*$/g,"")},n.toLower=function(t){return t?t.toLowerCase():""},n.isString=function(t){return"string"==typeof t},n.isFunction=function(t){return"function"==typeof t},n.options=function(t,e,r){return r=r||{},n.isFunction(r)&&(r=r.call(e)),n.extend(t.bind({vm:e,options:r}),t,{options:r})},n.each=function(t,e){var r,o;if("number"==typeof t.length)for(r=0;r<t.length;r++)e.call(t[r],t[r],r);else if(n.isObject(t))for(o in t)t.hasOwnProperty(o)&&e.call(t[o],t[o],o);return t},n.extend=function(t){var n,r=[],o=r.slice.call(arguments,1);return"boolean"==typeof t&&(n=t,t=o.shift()),o.forEach(function(r){e(t,r,n)}),t},n}},function(t,e,n){var r=n(3);t.exports=function(t){function e(n,i){var s,u=Object.keys(e.options.params),a={},c=n;return t.isPlainObject(c)||(c={url:n,params:i}),c=t.extend(!0,{},e.options,this.options,c),n=r.expand(c.url,c.params,u),n=n.replace(/(\/?):([a-z]\w*)/gi,function(e,n,r){return t.warn("The `:"+r+"` parameter syntax has been deprecated. Use the `{"+r+"}` syntax instead."),c.params[r]?(u.push(r),n+o(c.params[r])):""}),t.isString(c.root)&&!n.match(/^(https?:)?\//)&&(n=c.root+"/"+n),t.each(c.params,function(t,e){-1===u.indexOf(e)&&(a[e]=t)}),s=e.params(a),s&&(n+=(-1==n.indexOf("?")?"?":"&")+s),n}function n(e,r,o){var i,s=t.isArray(r),u=t.isPlainObject(r);t.each(r,function(r,a){i=t.isObject(r)||t.isArray(r),o&&(a=o+"["+(u||i?a:"")+"]"),!o&&s?e.add(r.name,r.value):i?n(e,r,a):e.add(a,r)})}function o(t){return i(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function i(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,e?"%20":"+")}var s=document.documentMode,u=document.createElement("a");return e.options={url:"",root:null,params:{}},e.params=function(e){var r=[];return r.add=function(e,n){t.isFunction(n)&&(n=n()),null===n&&(n=""),this.push(o(e)+"="+o(n))},n(r,e),r.join("&")},e.parse=function(t){return s&&(u.href=t,t=u.href),u.href=t,{href:u.href,protocol:u.protocol?u.protocol.replace(/:$/,""):"",port:u.port,host:u.host,hostname:u.hostname,pathname:"/"===u.pathname.charAt(0)?u.pathname:"/"+u.pathname,search:u.search?u.search.replace(/^\?/,""):"",hash:u.hash?u.hash.replace(/^#/,""):""}},t.url=e}},function(t,e){e.expand=function(t,e,n){var r=this.parse(t),o=r.expand(e);return n&&n.push.apply(n,r.vars),o},e.parse=function(t){var n=["+","#",".","/",";","?","&"],r=[];return{vars:r,expand:function(o){return t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(t,i,s){if(i){var u=null,a=[];if(-1!==n.indexOf(i.charAt(0))&&(u=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach(function(t){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(t);a.push.apply(a,e.getValues(o,u,n[1],n[2]||n[3])),r.push(n[1])}),u&&"+"!==u){var c=",";return"?"===u?c="&":"#"!==u&&(c=u),(0!==a.length?u:"")+a.join(c)}return a.join(",")}return e.encodeReserved(s)})}}},e.getValues=function(t,e,n,r){var o=t[n],i=[];if(this.isDefined(o)&&""!==o)if("string"==typeof o||"number"==typeof o||"boolean"==typeof o)o=o.toString(),r&&"*"!==r&&(o=o.substring(0,parseInt(r,10))),i.push(this.encodeValue(e,o,this.isKeyOperator(e)?n:null));else if("*"===r)Array.isArray(o)?o.filter(this.isDefined).forEach(function(t){i.push(this.encodeValue(e,t,this.isKeyOperator(e)?n:null))},this):Object.keys(o).forEach(function(t){this.isDefined(o[t])&&i.push(this.encodeValue(e,o[t],t))},this);else{var s=[];Array.isArray(o)?o.filter(this.isDefined).forEach(function(t){s.push(this.encodeValue(e,t))},this):Object.keys(o).forEach(function(t){this.isDefined(o[t])&&(s.push(encodeURIComponent(t)),s.push(this.encodeValue(e,o[t].toString())))},this),this.isKeyOperator(e)?i.push(encodeURIComponent(n)+"="+s.join(",")):0!==s.length&&i.push(s.join(","))}else";"===e?i.push(encodeURIComponent(n)):""!==o||"&"!==e&&"?"!==e?""===o&&i.push(""):i.push(encodeURIComponent(n)+"=");return i},e.isDefined=function(t){return void 0!==t&&null!==t},e.isKeyOperator=function(t){return";"===t||"&"===t||"?"===t},e.encodeValue=function(t,e,n){return e="+"===t||"#"===t?this.encodeReserved(e):encodeURIComponent(e),n?encodeURIComponent(n)+"="+e:e},e.encodeReserved=function(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(t){return/%[0-9A-Fa-f]/.test(t)||(t=encodeURI(t)),t}).join("")}},function(t,e,n){t.exports=function(t){function e(n,s){var u,a,c=i;return t.isPlainObject(n)&&(s=n,n=""),u=t.extend({url:n},s),u=t.extend(!0,{},e.options,this.options,u),e.interceptors.forEach(function(t){c=o(t,this.vm)(c)},this),a=c(u).bind(this.vm).then(function(t){return t.ok=t.status>=200&&t.status<300,t.ok?t:r.reject(t)},function(e){return e instanceof Error&&t.error(e),r.reject(e)}),u.success&&a.success(u.success),u.error&&a.error(u.error),a}var r=n(5)(t),o=n(7)(t),i=n(8)(t),s={"Content-Type":"application/json"};return e.options={method:"get",data:"",params:{},headers:{},xhr:null,jsonp:"callback",beforeSend:null,crossOrigin:null,emulateHTTP:!1,emulateJSON:!1,timeout:0},e.interceptors=[n(10)(t),n(11)(t),n(12)(t),n(14)(t),n(15)(t),n(16)(t),n(17)(t)],e.headers={put:s,post:s,patch:s,"delete":s,common:{Accept:"application/json, text/plain, */*"},custom:{"X-Requested-With":"XMLHttpRequest"}},["get","put","post","patch","delete","jsonp"].forEach(function(n){e[n]=function(e,r,o,i){return t.isFunction(r)&&(i=o,o=r,r=void 0),t.isObject(o)&&(i=o,o=void 0),this(e,t.extend({method:n,data:r,success:o},i))}}),t.http=e}},function(t,e,n){t.exports=function(t){var e=window.Promise||n(6)(t),r=function(t){t instanceof e?this.promise=t:this.promise=new e(t),this.context=void 0};r.all=function(t){return new r(e.all(t))},r.resolve=function(t){return new r(e.resolve(t))},r.reject=function(t){return new r(e.reject(t))},r.race=function(t){return new r(e.race(t))};var o=r.prototype;return o.bind=function(t){return this.context=t,this},o.then=function(t,e){return t&&t.bind&&this.context&&(t=t.bind(this.context)),e&&e.bind&&this.context&&(e=e.bind(this.context)),this.promise=this.promise.then(t,e),this},o["catch"]=function(t){return t&&t.bind&&this.context&&(t=t.bind(this.context)),this.promise=this.promise["catch"](t),this},o["finally"]=function(t){return this.then(function(e){return t.call(this),e},function(n){return t.call(this),e.reject(n)})},o.success=function(e){return t.warn("The `success` method has been deprecated. Use the `then` method instead."),this.then(function(t){return e.call(this,t.data,t.status,t)||t})},o.error=function(e){return t.warn("The `error` method has been deprecated. Use the `catch` method instead."),this["catch"](function(t){return e.call(this,t.data,t.status,t)||t})},o.always=function(e){t.warn("The `always` method has been deprecated. Use the `finally` method instead.");var n=function(t){return e.call(this,t.data,t.status,t)||t};return this.then(n,n)},r}},function(t,e){t.exports=function(t){function e(t){this.state=o,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(n){e.reject(n)}}var n=0,r=1,o=2;e.reject=function(t){return new e(function(e,n){n(t)})},e.resolve=function(t){return new e(function(e,n){e(t)})},e.all=function(t){return new e(function(n,r){function o(e){return function(r){s[e]=r,i+=1,i===t.length&&n(s)}}var i=0,s=[];0===t.length&&n(s);for(var u=0;u<t.length;u+=1)e.resolve(t[u]).then(o(u),r)})},e.race=function(t){return new e(function(n,r){for(var o=0;o<t.length;o+=1)e.resolve(t[o]).then(n,r)})};var i=e.prototype;return i.resolve=function(t){var e=this;if(e.state===o){if(t===e)throw new TypeError("Promise settled with itself.");var r=!1;try{var i=t&&t.then;if(null!==t&&"object"==typeof t&&"function"==typeof i)return void i.call(t,function(t){r||e.resolve(t),r=!0},function(t){r||e.reject(t),r=!0})}catch(s){return void(r||e.reject(s))}e.state=n,e.value=t,e.notify()}},i.reject=function(t){var e=this;if(e.state===o){if(t===e)throw new TypeError("Promise settled with itself.");e.state=r,e.value=t,e.notify()}},i.notify=function(){var e=this;t.nextTick(function(){if(e.state!==o)for(;e.deferred.length;){var t=e.deferred.shift(),i=t[0],s=t[1],u=t[2],a=t[3];try{e.state===n?u("function"==typeof i?i.call(void 0,e.value):e.value):e.state===r&&("function"==typeof s?u(s.call(void 0,e.value)):a(e.value))}catch(c){a(c)}}})},i.then=function(t,n){var r=this;return new e(function(e,o){r.deferred.push([t,n,e,o]),r.notify()})},i["catch"]=function(t){return this.then(void 0,t)},e}},function(t,e,n){t.exports=function(t){function e(t,e,n){var o=r.resolve(t);return arguments.length<2?o:o.then(e,n)}var r=n(5)(t);return function(n,o){return function(i){return t.isFunction(n)&&(n=n.call(o,r)),function(r){return t.isFunction(n.request)&&(r=n.request.call(o,r)),e(r,function(r){return e(i(r),function(e){return t.isFunction(n.response)&&(e=n.response.call(o,e)),e})})}}}}},function(t,e,n){t.exports=function(t){var e=n(9)(t);return function(t){return(t.client||e)(t)}}},function(t,e,n){t.exports=function(t){function e(e){var n;return n||(n=r(e.getAllResponseHeaders())),function(e){return e?n[t.toLower(e)]:n}}function r(e){var n,r,o,i={};return t.isString(e)&&t.each(e.split("\n"),function(e){o=e.indexOf(":"),r=t.trim(t.toLower(e.slice(0,o))),n=t.trim(e.slice(o+1)),i[r]?t.isArray(i[r])?i[r].push(n):i[r]=[i[r],n]:i[r]=n}),i}var o=n(5)(t);return function(n){return new o(function(r){var o,i=new XMLHttpRequest,s={request:n};n.cancel=function(){i.abort()},i.open(n.method,t.url(n),!0),t.isPlainObject(n.xhr)&&t.extend(i,n.xhr),t.each(n.headers||{},function(t,e){i.setRequestHeader(e,t)}),o=function(t){s.data=i.responseText,s.status=i.status,s.statusText=i.statusText,s.headers=e(i),r(s)},i.onload=o,i.onabort=o,i.onerror=o,i.send(n.data)})}}},function(t,e){t.exports=function(t){return{request:function(e){return t.isFunction(e.beforeSend)&&e.beforeSend.call(this,e),e}}}},function(t,e){t.exports=function(t){return function(){var t;return{request:function(e){return e.timeout&&(t=setTimeout(function(){e.cancel()},e.timeout)),e},response:function(e){return clearTimeout(t),e}}}}},function(t,e,n){t.exports=function(t){var e=n(13)(t);return{request:function(t){return"JSONP"==t.method&&(t.client=e),t}}}},function(t,e,n){t.exports=function(t){var e=n(5)(t);return function(n){return new e(function(e){var r,o,i="_jsonp"+Math.random().toString(36).substr(2),s={request:n,data:null};n.params[n.jsonp]=i,n.cancel=function(){r({type:"cancel"})},o=document.createElement("script"),o.src=t.url(n),o.type="text/javascript",o.async=!0,window[i]=function(t){s.data=t},r=function(t){"load"===t.type&&null!==s.data?s.status=200:"error"===t.type?s.status=404:s.status=0,e(s),delete window[i],document.body.removeChild(o)},o.onload=r,o.onerror=r,document.body.appendChild(o)})}}},function(t,e){t.exports=function(t){return{request:function(t){return t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers["X-HTTP-Method-Override"]=t.method,t.method="POST"),t}}}},function(t,e){t.exports=function(t){return{request:function(e){return e.emulateJSON&&t.isPlainObject(e.data)&&(e.headers["Content-Type"]="application/x-www-form-urlencoded",e.data=t.url.params(e.data)),t.isObject(e.data)&&/FormData/i.test(e.data.toString())&&delete e.headers["Content-Type"],t.isPlainObject(e.data)&&(e.data=JSON.stringify(e.data)),e},response:function(t){try{t.data=JSON.parse(t.data)}catch(e){}return t}}}},function(t,e){t.exports=function(t){return{request:function(e){return e.method=e.method.toUpperCase(),e.headers=t.extend({},t.http.headers.common,e.crossOrigin?{}:t.http.headers.custom,t.http.headers[e.method.toLowerCase()],e.headers),t.isPlainObject(e.data)&&/^(GET|JSONP)$/i.test(e.method)&&(t.extend(e.params,e.data),delete e.data),e}}}},function(t,e,n){t.exports=function(t){function e(e){var n=t.url.parse(t.url(e));return n.protocol!==r.protocol||n.host!==r.host}var r=t.url.parse(location.href),o=n(13)(t),i="withCredentials"in new XMLHttpRequest;return{request:function(t){return null===t.crossOrigin&&(t.crossOrigin=e(t)),t.crossOrigin&&(i||(t.client=o),t.emulateHTTP=!1),t}}}},function(t,e){t.exports=function(t){function e(r,o,i,s){var u=this,a={};return i=t.extend({},e.actions,i),t.each(i,function(e,i){e=t.extend(!0,{url:r,params:o||{}},s,e),a[i]=function(){return(u.$http||t.http)(n(e,arguments))}}),a}function n(e,n){var r,o,i,s=t.extend({},e),u={};switch(n.length){case 4:i=n[3],o=n[2];case 3:case 2:if(!t.isFunction(n[1])){u=n[0],r=n[1],o=n[2];break}if(t.isFunction(n[0])){o=n[0],i=n[1];break}o=n[1],i=n[2];case 1:t.isFunction(n[0])?o=n[0]:/^(POST|PUT|PATCH)$/i.test(s.method)?r=n[0]:u=n[0];break;case 0:break;default:throw"Expected up to 4 arguments [params, data, success, error], got "+n.length+" arguments"}return s.data=r,s.params=t.extend({},s.params,u),o&&(s.success=o),i&&(s.error=i),s}return e.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},"delete":{method:"DELETE"}},t.resource=e}}])});