!function(r){function t(){var t=r.Vue,o=r.Translator,a=t.util,l=r.$config;t.url.options.root=l.url,t.http.headers.custom["X-XSRF-TOKEN"]=l.csrf,t.http.options.emulateHTTP=!0,t.http.options.beforeSend=function(r,t){"string"!=typeof t.url||t.url.match(/^(https?:)?\//)||(t.params.p=t.url,t.url=l.route)},t.url.base=function(r,o){var u=r;return a.isPlainObject(u)||(u={url:r,params:o}),u.root||(u.root=l.base),t.url(u)},t.url.route=function(r,o){var u=r;return a.isPlainObject(o)||(o={}),a.isPlainObject(u)||(u={url:r,params:o}),u={url:l.route,params:a.extend(u.params,{p:u.url})},t.url(u)},o.locale=l.locale;for(var u in l.locales)for(var e in l.locales[u])o.add(e,l.locales[u][e])}r.Vue&&jQuery(t)}(this);