HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/zeusxp5/tour.kamille.us/wp-content/plugins/weforms/assets/js/vendor/vue-router.min.js
/**
  * vue-router v2.3.1
  * (c) 2017 Evan You
  * @license MIT
  */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueRouter=e()}(this,function(){"use strict";function t(t,e){if(!t)throw new Error("[vue-router] "+e)}function e(t,e){t||"undefined"!=typeof console&&console.warn("[vue-router] "+e)}var n={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,n){var r=n.props,o=n.children,i=n.parent,a=n.data;a.routerView=!0;for(var u=r.name,c=i.$route,s=i._routerViewCache||(i._routerViewCache={}),p=0,f=!1;i;)i.$vnode&&i.$vnode.data.routerView&&p++,i._inactive&&(f=!0),i=i.$parent;if(a.routerViewDepth=p,f)return t(s[u],a,o);var h=c.matched[p];if(!h)return s[u]=null,t();var l=s[u]=h.components[u],d=a.hook||(a.hook={});return d.init=function(t){h.instances[u]=t.child},d.prepatch=function(t,e){h.instances[u]=e.child},d.destroy=function(t){h.instances[u]===t.child&&(h.instances[u]=void 0)},a.props=function(t,n){switch(typeof n){case"undefined":return;case"object":return n;case"function":return n(t);case"boolean":return n?t.params:void 0;default:e(!1,'props in "'+t.path+'" is a '+typeof n+", expecting an object, function or boolean.")}}(c,h.props&&h.props[u]),t(l,a,o)}};var r=/[!'()*]/g,o=function(t){return"%"+t.charCodeAt(0).toString(16)},i=/%2C/g,a=function(t){return encodeURIComponent(t).replace(r,o).replace(i,",")},u=decodeURIComponent;function c(t,n){if(void 0===n&&(n={}),t){var r;try{r=function(t){var e={};if(!(t=t.trim().replace(/^(\?|#|&)/,"")))return e;return t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=u(n.shift()),o=n.length>0?u(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e}(t)}catch(t){e(!1,t.message),r={}}for(var o in n)r[o]=n[o];return r}return n}var s=/\/?$/;function p(t,e,n){var r={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:e.query||{},params:e.params||{},fullPath:h(e),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(r.redirectedFrom=h(n)),Object.freeze(r)}var f=p(null,{path:"/"});function h(t){var e=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(e||"/")+function(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return a(e);if(Array.isArray(n)){var r=[];return n.slice().forEach(function(t){void 0!==t&&(null===t?r.push(a(e)):r.push(a(e)+"="+a(t)))}),r.join("&")}return a(e)+"="+a(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}(n)+r}function l(t,e){return e===f?t===e:!!e&&(t.path&&e.path?t.path.replace(s,"")===e.path.replace(s,"")&&t.hash===e.hash&&d(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&d(t.query,e.query)&&d(t.params,e.params)))}function d(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){return String(t[n])===String(e[n])})}var v=[String,Object],y=[String,Array],m={name:"router-link",props:{to:{type:v,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,event:{type:y,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,u=o.href,c={},f=this.activeClass||n.options.linkActiveClass||"router-link-active",h=i.path?p(null,i):a;c[f]=this.exact?l(r,h):(d=r,v=h,0===d.path.replace(s,"/").indexOf(v.path.replace(s,"/"))&&(!v.hash||d.hash===v.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(d.query,v.query));var d,v,y=function(t){g(t)&&(e.replace?n.replace(i):n.push(i))},m={click:g};Array.isArray(this.event)?this.event.forEach(function(t){m[t]=y}):m[this.event]=y;var x={class:c};if("a"===this.tag)x.on=m,x.attrs={href:u};else{var k=w(this.$slots.default);if(k){k.isStatic=!1;var R=b.util.extend;(k.data=R({},k.data)).on=m;(k.data.attrs=R({},k.data.attrs)).href=u}else x.on=m}return t(this.tag,x,this.$slots.default)}};function g(t){if(!(t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.target&&t.target.getAttribute){var e=t.target.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function w(t){if(t)for(var e,n=0;n<t.length;n++){if("a"===(e=t[n]).tag)return e;if(e.children&&(e=w(e.children)))return e}}var b;function x(t){if(!x.installed){x.installed=!0,b=t,Object.defineProperty(t.prototype,"$router",{get:function(){return this.$root._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this.$root._route}}),t.mixin({beforeCreate:function(){this.$options.router&&(this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current))}}),t.component("router-view",n),t.component("router-link",m);var e=t.config.optionMergeStrategies;e.beforeRouteEnter=e.beforeRouteLeave=e.created}}var k="undefined"!=typeof window;function R(t,e,n){if("/"===t.charAt(0))return t;if("?"===t.charAt(0)||"#"===t.charAt(0))return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),i=0;i<o.length;i++){var a=o[i];"."!==a&&(".."===a?r.pop():r.push(a))}return""!==r[0]&&r.unshift(""),r.join("/")}function O(t){return t.replace(/\/\//g,"/")}function E(t,e,n){var r=e||Object.create(null),o=n||Object.create(null);return t.forEach(function(t){j(r,o,t)}),{pathMap:r,nameMap:o}}function j(n,r,o,i,a){var u=o.path,c=o.name;t(null!=u,'"path" is required in a route configuration.'),t("string"!=typeof o.component,'route config "component" for path: '+String(u||c)+" cannot be a string id. Use an actual component instead.");var s={path:function(t,e){if("/"===(t=t.replace(/\/$/,""))[0])return t;if(null==e)return t;return O(e.path+"/"+t)}(u,i),components:o.components||{default:o.component},instances:{},name:c,parent:i,matchAs:a,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};if(o.children&&(o.name&&o.children.some(function(t){return/^\/?$/.test(t.path)})&&e(!1,"Named Route '"+o.name+"' has a default child route. When navigating to this named route (:to=\"{name: '"+o.name+"'\"), the default child route will not be rendered. Remove the name from this route and use the name of the default child route for named links instead."),o.children.forEach(function(t){var e=a?O(a+"/"+t.path):void 0;j(n,r,t,s,e)})),void 0!==o.alias)if(Array.isArray(o.alias))o.alias.forEach(function(t){var e={path:t,children:o.children};j(n,r,e,i,s.path)});else{var p={path:o.alias,children:o.children};j(n,r,p,i,s.path)}n[s.path]||(n[s.path]=s),c&&(r[c]?a||e(!1,'Duplicate named routes definition: { name: "'+c+'", path: "'+s.path+'" }'):r[c]=s)}var A=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},C=H,_=L,$=function(t,e){return U(L(t,e))},T=U,S=B,q=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function L(t,e){for(var n,r=[],o=0,i=0,a="",u=e&&e.delimiter||"/";null!=(n=q.exec(t));){var c=n[0],s=n[1],p=n.index;if(a+=t.slice(i,p),i=p+c.length,s)a+=s[1];else{var f=t[i],h=n[2],l=n[3],d=n[4],v=n[5],y=n[6],m=n[7];a&&(r.push(a),a="");var g=null!=h&&null!=f&&f!==h,w="+"===y||"*"===y,b="?"===y||"*"===y,x=n[2]||u,k=d||v;r.push({name:l||o++,prefix:h||"",delimiter:x,optional:b,repeat:w,partial:g,asterisk:!!m,pattern:k?(R=k,R.replace(/([=!:$\/()])/g,"\\$1")):m?".*":"[^"+V(x)+"]+?"})}}var R;return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function P(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function U(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",i=n||{},a=(r||{}).pretty?P:encodeURIComponent,u=0;u<t.length;u++){var c=t[u];if("string"!=typeof c){var s,p=i[c.name];if(null==p){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(A(p)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(s=a(p[f]),!e[u].test(s))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(s)+"`");o+=(0===f?c.prefix:c.delimiter)+s}}else{if(s=c.asterisk?(h=p,encodeURI(h).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):a(p),!e[u].test(s))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+s+'"');o+=c.prefix+s}}else o+=c}var h;return o}}function V(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function M(t,e){return t.keys=e,t}function z(t){return t.sensitive?"":"i"}function B(t,e,n){A(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=V(u);else{var c=V(u.prefix),s="(?:"+u.pattern+")";e.push(u),u.repeat&&(s+="(?:"+c+s+")*"),i+=s=u.optional?u.partial?c+"("+s+")?":"(?:"+c+"("+s+"))?":c+"("+s+")"}}var p=V(n.delimiter||"/"),f=i.slice(-p.length)===p;return r||(i=(f?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":r&&f?"":"(?="+p+"|$)",M(new RegExp("^"+i,z(n)),e)}function H(t,e,n){return A(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return M(t,e)}(t,e):A(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(H(t[o],e,n).source);return M(new RegExp("(?:"+r.join("|")+")",z(n)),e)}(t,e,n):(r=e,B(L(t,o=n),r,o));var r,o}C.parse=_,C.compile=$,C.tokensToFunction=T,C.tokensToRegExp=S;var I=Object.create(null);function D(t){var e,n,r=I[t];return r?(e=r.keys,n=r.regexp):(n=C(t,e=[]),I[t]={keys:e,regexp:n}),{keys:e,regexp:n}}var F=Object.create(null);function N(t,n,r){try{return(F[t]||(F[t]=C.compile(t)))(n||{},{pretty:!0})}catch(t){return e(!1,"missing param for "+r+": "+t.message),""}}function J(t,n,r){var o="string"==typeof t?{path:t}:t;if(o.name||o._normalized)return o;if(!o.path&&o.params&&n){(o=K({},o))._normalized=!0;var i=K(K({},n.params),o.params);if(n.name)o.name=n.name,o.params=i;else if(n.matched){var a=n.matched[n.matched.length-1].path;o.path=N(a,i,"path "+n.path)}else e(!1,"relative params navigation requires a current route.");return o}var u=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),s=n&&n.path||"/",p=u.path?R(u.path,s,r||o.append):n&&n.path||"/",f=c(u.query,o.query),h=o.hash||u.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:p,query:f,hash:h}}function K(t,e){for(var n in e)t[n]=e[n];return t}function W(n){var r=E(n),o=r.pathMap,i=r.nameMap;function a(t,n,r){var a=J(t,n),u=a.name;if(u){var s=i[u];e(s,"Route with name '"+u+"' does not exist");var p=D(s.path).keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var f in n.params)!(f in a.params)&&p.indexOf(f)>-1&&(a.params[f]=n.params[f]);if(s)return a.path=N(s.path,a.params,'named route "'+u+'"'),c(s,a,r)}else if(a.path){a.params={};for(var h in o)if(X(h,a.params,a.path))return c(o[h],a,r)}return c(null,a)}function u(n,r){var o=n.redirect,u="function"==typeof o?o(p(n,r)):o;if("string"==typeof u&&(u={path:u}),!u||"object"!=typeof u)return e(!1,"invalid redirect option: "+JSON.stringify(u)),c(null,r);var s=u,f=s.name,h=s.path,l=r.query,d=r.hash,v=r.params;if(l=s.hasOwnProperty("query")?s.query:l,d=s.hasOwnProperty("hash")?s.hash:d,v=s.hasOwnProperty("params")?s.params:v,f){return t(i[f],'redirect failed: named route "'+f+'" not found.'),a({_normalized:!0,name:f,query:l,hash:d,params:v},void 0,r)}if(h){var y=(m=h,g=n,R(m,g.parent?g.parent.path:"/",!0));return a({_normalized:!0,path:N(y,v,'redirect route with path "'+y+'"'),query:l,hash:d},void 0,r)}return e(!1,"invalid redirect option: "+JSON.stringify(u)),c(null,r);var m,g}function c(t,e,n){return t&&t.redirect?u(t,n||e):t&&t.matchAs?function(t,e,n){var r=a({_normalized:!0,path:N(n,e.params,'aliased route with path "'+n+'"')});if(r){var o=r.matched,i=o[o.length-1];return e.params=r.params,c(i,e)}return c(null,e)}(0,e,t.matchAs):p(t,e,n)}return{match:a,addRoutes:function(t){E(t,o,i)}}}function X(t,e,n){var r=D(t),o=r.regexp,i=r.keys,a=n.match(o);if(!a)return!1;if(!e)return!0;for(var u=1,c=a.length;u<c;++u){var s=i[u-1],p="string"==typeof a[u]?decodeURIComponent(a[u]):a[u];s&&(e[s.name]=p)}return!0}var Y=Object.create(null);function G(){window.addEventListener("popstate",function(t){Z(),t.state&&t.state.key&&(e=t.state.key,it=e);var e})}function Q(e,n,r,o){if(e.app){var i=e.options.scrollBehavior;i&&(t("function"==typeof i,"scrollBehavior must be a function"),e.app.$nextTick(function(){var t=function(){var t=ut();if(t)return Y[t]}(),e=i(n,r,o?t:null);if(e){var a="object"==typeof e;if(a&&"string"==typeof e.selector){var u=document.querySelector(e.selector);u?t=function(t){var e=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{x:n.left-e.left,y:n.top-e.top}}(u):tt(e)&&(t=et(e))}else a&&tt(e)&&(t=et(e));t&&window.scrollTo(t.x,t.y)}}))}}function Z(){var t=ut();t&&(Y[t]={x:window.pageXOffset,y:window.pageYOffset})}function tt(t){return nt(t.x)||nt(t.y)}function et(t){return{x:nt(t.x)?t.x:window.pageXOffset,y:nt(t.y)?t.y:window.pageYOffset}}function nt(t){return"number"==typeof t}var rt=k&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),ot=k&&window.performance&&window.performance.now?window.performance:Date,it=at();function at(){return ot.now().toFixed(3)}function ut(){return it}function ct(t,e){Z();var n=window.history;try{e?n.replaceState({key:it},"",t):(it=at(),n.pushState({key:it},"",t))}catch(n){window.location[e?"replace":"assign"](t)}}function st(t){ct(t,!0)}function pt(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}var ft=function(t,e){this.router=t,this.base=function(t){if(!t)if(k){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/"}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=f,this.pending=null,this.ready=!1,this.readyCbs=[]};ft.prototype.listen=function(t){this.cb=t},ft.prototype.onReady=function(t){this.ready?t():this.readyCbs.push(t)},ft.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},n)},ft.prototype.confirmTransition=function(t,n,r){var o=this,i=this.current,a=function(){r&&r()};if(l(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),a();var u,c,s,p=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),f=p.updated,h=p.deactivated,d=p.activated,v=[].concat((s=h,ht(s,"beforeRouteLeave",lt,!0)),this.router.beforeHooks,(c=f,ht(c,"beforeRouteUpdate",lt)),d.map(function(t){return t.beforeEnter}),(u=d,vt(u,function(t,n,r,o){if("function"==typeof t&&!t.options)return function(n,i,a){var u=mt(function(t){r.components[o]=t,a()}),c=mt(function(t){e(!1,"Failed to resolve async component "+o+": "+t),a(!1)}),s=t(u,c);s&&"function"==typeof s.then&&s.then(u,c)}})));this.pending=t;var y=function(e,n){if(o.pending!==t)return a();e(t,i,function(t){!1===t?(o.ensureURL(!0),a()):"string"==typeof t||"object"==typeof t?("object"==typeof t&&t.replace?o.replace(t):o.push(t),a()):n(t)})};pt(v,y,function(){var e,r,i=[];pt((e=i,r=function(){return o.current===t},ht(d,"beforeRouteEnter",function(t,n,o,i){return a=t,u=o,c=i,s=e,p=r,function(t,e,n){return a(t,e,function(t){n(t),"function"==typeof t&&s.push(function(){dt(t,u.instances,c,p)})})};var a,u,c,s,p})),y,function(){if(o.pending!==t)return a();o.pending=null,n(t),o.router.app&&o.router.app.$nextTick(function(){i.forEach(function(t){return t()})})})})},ft.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};function ht(t,e,n,r){var o=vt(t,function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=b.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,o,i)}):n(a,r,o,i)});return yt(r?o.reverse():o)}function lt(t,e){return function(){return t.apply(e,arguments)}}function dt(t,e,n,r){e[n]?t(e[n]):r()&&setTimeout(function(){dt(t,e,n,r)},16)}function vt(t,e){return yt(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function yt(t){return Array.prototype.concat.apply([],t)}function mt(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var gt=function(t){function e(e,n){var r=this;t.call(this,e,n);var o=e.options.scrollBehavior;o&&G(),window.addEventListener("popstate",function(t){r.transitionTo(wt(r.base),function(t){o&&Q(e,t,r.current,!0)})})}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){ct(O(r.base+t.fullPath)),Q(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){st(O(r.base+t.fullPath)),Q(r.router,t,o,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(wt(this.base)!==this.current.fullPath){var e=O(this.base+this.current.fullPath);t?ct(e):st(e)}},e.prototype.getCurrentLocation=function(){return wt(this.base)},e}(ft);function wt(t){var e=window.location.pathname;return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var bt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=wt(t);if(!/^\/#/.test(e))return window.location.replace(O(t+"/#"+e)),!0}(this.base)||xt()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setupListeners=function(){var t=this;window.addEventListener("hashchange",function(){xt()&&t.transitionTo(kt(),function(t){Ot(t.fullPath)})})},e.prototype.push=function(t,e,n){this.transitionTo(t,function(t){Rt(t.fullPath),e&&e(t)},n)},e.prototype.replace=function(t,e,n){this.transitionTo(t,function(t){Ot(t.fullPath),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;kt()!==e&&(t?Rt(e):Ot(e))},e.prototype.getCurrentLocation=function(){return kt()},e}(ft);function xt(){var t=kt();return"/"===t.charAt(0)||(Ot("/"+t),!1)}function kt(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.slice(e+1)}function Rt(t){window.location.hash=t}function Ot(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)}var Et=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(ft),jt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.afterHooks=[],this.matcher=W(e.routes||[]);var n=e.mode||"hash";switch(this.fallback="history"===n&&!rt,this.fallback&&(n="hash"),k||(n="abstract"),this.mode=n,n){case"history":this.history=new gt(this,e.base);break;case"hash":this.history=new bt(this,e.base,this.fallback);break;case"abstract":this.history=new Et(this,e.base);break;default:t(!1,"invalid mode: "+n)}},At={currentRoute:{}};jt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},At.currentRoute.get=function(){return this.history&&this.history.current},jt.prototype.init=function(e){var n=this;if(t(x.installed,"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."),this.apps.push(e),!this.app){this.app=e;var r=this.history;if(r instanceof gt)r.transitionTo(r.getCurrentLocation());else if(r instanceof bt){var o=function(){r.setupListeners()};r.transitionTo(r.getCurrentLocation(),o,o)}r.listen(function(t){n.apps.forEach(function(e){e._route=t})})}},jt.prototype.beforeEach=function(t){this.beforeHooks.push(t)},jt.prototype.afterEach=function(t){this.afterHooks.push(t)},jt.prototype.onReady=function(t){this.history.onReady(t)},jt.prototype.push=function(t,e,n){this.history.push(t,e,n)},jt.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},jt.prototype.go=function(t){this.history.go(t)},jt.prototype.back=function(){this.go(-1)},jt.prototype.forward=function(){this.go(1)},jt.prototype.getMatchedComponents=function(t){var e=t?this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},jt.prototype.resolve=function(t,e,n){var r=J(t,e||this.history.current,n),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?O(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},jt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==f&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(jt.prototype,At);return jt.install=x,jt.version="2.3.1",k&&window.Vue&&window.Vue.use(jt),jt});