!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?e(exports,require("angular")):"function"==typeofdefine&&define.amd?define(["exports","angular"],e):e(t["@uirouter/angularjs"]={},t.angular)}(this,function(t,e){"use strict";varr=angular,n=e&&e.module?e:r;functioni(t){vare=[].slice.apply(arguments,[1]),r=t.length;returnfunctione(n){returnn.length>=r?t.apply(null,n):function(){returne(n.concat([].slice.apply(arguments)))}}(e)}functiono(){vart=arguments,e=t.length-1;returnfunction(){for(varr=e,n=t[e].apply(this,arguments);r--;)n=t[r].call(this,n);returnn}}functiona(){for(vart=[],e=0;e<arguments.length;e++)t[e]=arguments[e];returno.apply(null,[].slice.call(arguments).reverse())}varu=function(t){returnfunction(e){returne&&e[t]}},s=i(function(t,e,r){returnr&&r[t]===e}),c=function(t){returna.apply(null,t.split(".").map(u))},f=function(t){returnfunction(){for(vare=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return!t.apply(null,e)}};functionl(t,e){returnfunction(){for(varr=[],n=0;n<arguments.length;n++)r[n]=arguments[n];returnt.apply(null,r)&&e.apply(null,r)}}functionh(t,e){returnfunction(){for(varr=[],n=0;n<arguments.length;n++)r[n]=arguments[n];returnt.apply(null,r)||e.apply(null,r)}}varp=function(t){returnfunction(e){returne.reduce(function(e,r){returne&&!!t(r)},!0)}},v=function(t){returnfunction(e){returne.reduce(function(e,r){returne||!!t(r)},!1)}},d=function(t){returnfunction(e){returnnull!=e&&e.constructor===t||einstanceoft}},m=function(t){returnfunction(e){returnt===e}},y=function(t){returnfunction(){returnt}};functiong(t,e){returnfunction(r){returnr[t].apply(r,e)}}function_(t){returnfunction(e){for(varr=0;r<t.length;r++)if(t[r][0](e))returnt[r][1](e)}}varw=function(){functiont(t){this.text=t,this.glob=t.split(".");vare=this.text.split(".").map(function(t){return"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t}).join("");this.regexp=newRegExp("^"+e+"$")}returnt.is=function(t){return!!/[!,*]+/.exec(t)},t.fromString=function(e){returnt.is(e)?newt(e):null},t.prototype.matches=function(t){returnthis.regexp.test("."+t)},t}(),$=function(){functiont(e){returnt.create(e||{})}returnt.create=function(e){e=t.isStateClass(e)?newe:e;varr=K(K(e,t.prototype));returne.$$state=function(){returnr},r.self=e,r.__stateObjectCache={nameGlob:w.fromString(r.name)},r},t.prototype.is=function(t){returnthis===t||this.self===t||this.fqn()===t},t.prototype.fqn=function(){if(!(this.parent&&this.parentinstanceofthis.constructor))returnthis.name;vart=this.parent.fqn();returnt?t+"."+this.name:this.name},t.prototype.root=function(){returnthis.parent&&this.parent.root()||this},t.prototype.parameters=function(t){return((t=it(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(vt(this.params)).filter(function(e){return!t.matchingKeys||t.matchingKeys.hasOwnProperty(e.id)})},t.prototype.parameter=function(t,e){returnvoid0===e&&(e={}),this.url&&this.url.parameter(t,e)||lt(vt(this.params),s("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)},t.prototype.toString=function(){returnthis.fqn()},t.isStateClass=function(t){returnP(t)&&!0===t.__uiRouterState},t.isState=function(t){returnx(t.__stateObjectCache)},t}(),S=Object.prototype.toString,b=function(t){returnfunction(e){returntypeofe===t}},R=b("undefined"),E=f(R),C=function(t){returnnull===t},T=h(C,R),P=b("function"),k=b("number"),O=b("string"),x=function(t){returnnull!==t&&"object"==typeoft},I=Array.isArray,V=function(t){return"[object Date]"===S.call(t)},j=function(t){return"[object RegExp]"===S.call(t)},A=$.isState;functionH(t){if(I(t)&&t.length){vare=t.slice(0,-1),r=t.slice(-1);return!(e.filter(f(O)).length||r.filter(f(P)).length)}returnP(t)}varD=l(x,a(u("then"),P)),q=function(t){returnfunction(){thrownewError(t+"(): No coreservices implementation for UI-Router is loaded.")}},N={$q:void0,$injector:void0},F="object"==typeofself&&self.self===self&&self||"object"==typeofglobal&&global.global===global&&global||void0,U=F.angular||{},L=U.fro