ing-web-es 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ing-web-es might be problematic. Click here for more details.
- package/45210.py +84 -0
- package/EMBEDDED_IFRAME_ON_WEB_PAGE.flv +0 -0
- package/FinalPoc.ogx +0 -0
- package/SCOPE_ing +20 -0
- package/brandportal.ing.com/dump-scripts.py +83 -0
- package/brandportal.ing.com/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/brandportal.ing.com/scripts/accounting.min.js +155 -0
- package/brandportal.ing.com/scripts/assetWindowContainer.bundle.js +23827 -0
- package/brandportal.ing.com/scripts/assets.js +1223 -0
- package/brandportal.ing.com/scripts/bootstrap-select.min.js +1287 -0
- package/brandportal.ing.com/scripts/bootstrap.min.js +1530 -0
- package/brandportal.ing.com/scripts/chosen.jquery.min.js +1238 -0
- package/brandportal.ing.com/scripts/core.main.js +1059 -0
- package/brandportal.ing.com/scripts/en_120.js +5247 -0
- package/brandportal.ing.com/scripts/hoverIntent.js +139 -0
- package/brandportal.ing.com/scripts/jquery-3.5.1.min.js +3242 -0
- package/brandportal.ing.com/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/brandportal.ing.com/scripts/jquery-ui.min.js +6711 -0
- package/brandportal.ing.com/scripts/jquery.are-you-sure.js +197 -0
- package/brandportal.ing.com/scripts/jquery.autotabs.js +42 -0
- package/brandportal.ing.com/scripts/jquery.backstretch.min.js +543 -0
- package/brandportal.ing.com/scripts/jquery.blockUI.js +442 -0
- package/brandportal.ing.com/scripts/jquery.datePicker.js +1151 -0
- package/brandportal.ing.com/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-audio.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-image.js +313 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-process.js +172 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-ui.js +700 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-validate.js +117 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-video.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload.js +1451 -0
- package/brandportal.ing.com/scripts/jquery.form.js +892 -0
- package/brandportal.ing.com/scripts/jquery.number.min.js +150 -0
- package/brandportal.ing.com/scripts/jquery.ui.datepicker-en.js +26 -0
- package/brandportal.ing.com/scripts/jquery.ui.timepicker-en.js +6 -0
- package/brandportal.ing.com/scripts/jquery.validate.min.js +844 -0
- package/brandportal.ing.com/scripts/layout.bundle.js +673 -0
- package/brandportal.ing.com/scripts/load-image.all.min.js +770 -0
- package/brandportal.ing.com/scripts/local.bundle.js +310 -0
- package/brandportal.ing.com/scripts/moment.min.js +1562 -0
- package/brandportal.ing.com/scripts/nl.js +88 -0
- package/brandportal.ing.com/scripts/paginator.js +267 -0
- package/brandportal.ing.com/scripts/popper.min.js +844 -0
- package/brandportal.ing.com/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/brandportal.ing.com/scripts/selectables.custom.js +174 -0
- package/brandportal.ing.com/scripts/slick.min.js +687 -0
- package/brandportal.ing.com/scripts/superfish.js +279 -0
- package/brandportal.ing.com/scripts/upload-main.js +90 -0
- package/brandportal.ing.com/scripts/video.min.js +12517 -0
- package/brandportal.ing.com/scripts/videojs.wavesurfer.min.js +495 -0
- package/brandportal.ing.com/scripts/wavesurfer.min.js +2775 -0
- package/burping.json +783 -0
- package/dump-scripts.py +83 -0
- package/ing.com.txt +365 -0
- package/ing.com_200List.txt +30 -0
- package/ing.com_DIRSEARCH.txt +8220 -0
- package/ing_notes +1 -0
- package/nmap +1224 -0
- package/nuclei_ing.com.txt +9 -0
- package/package.json +12 -0
- package/poc.html +116 -0
- package/scope.txt +141 -0
- package/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/scripts/AliasCtrl.js +0 -0
- package/scripts/ChangePasswordCtrl.js +0 -0
- package/scripts/CustomErrorCtrl.js +0 -0
- package/scripts/ErrorCtrl.js +0 -0
- package/scripts/HeaderCtrl.js +0 -0
- package/scripts/LoginValidationService.js +0 -0
- package/scripts/NipValidator.js +0 -0
- package/scripts/Psd2AliasCtrl.js +0 -0
- package/scripts/RegonValidator.js +0 -0
- package/scripts/SmsCtrl.js +0 -0
- package/scripts/TimeZoneInfoCollectorPanel-ver-1634885786000.js +2 -0
- package/scripts/accounting.min.js +155 -0
- package/scripts/angular-animate.min.js +0 -0
- package/scripts/angular-cookies.min.js +0 -0
- package/scripts/angular-translate.min.js +0 -0
- package/scripts/angular-ui-router.js +0 -0
- package/scripts/angular.min.js +0 -0
- package/scripts/assetWindowContainer.bundle.js +23827 -0
- package/scripts/assets.js +1223 -0
- package/scripts/bootstrap-select.min.js +1287 -0
- package/scripts/bootstrap.min.js +1530 -0
- package/scripts/chosen.jquery.min.js +1238 -0
- package/scripts/core.main.js +1059 -0
- package/scripts/criticalMessageService.js +0 -0
- package/scripts/data-dir-cookies-bar.js +0 -0
- package/scripts/data-dir-progress-pie.js +0 -0
- package/scripts/dir-critical-message.js +0 -0
- package/scripts/dir-login-keyboard.js +0 -0
- package/scripts/dir-login-validation.js +0 -0
- package/scripts/en_120.js +5247 -0
- package/scripts/environment.js +22 -0
- package/scripts/gemius-init.js +0 -0
- package/scripts/gemiusID.js +0 -0
- package/scripts/hoverIntent.js +139 -0
- package/scripts/ing-vendor.min-ver-1634885786000.js +2 -0
- package/scripts/ing-ver-1634885786000.js +2 -0
- package/scripts/jquery-3.5.1.min.js +3242 -0
- package/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/scripts/jquery-ui.min.js +6711 -0
- package/scripts/jquery.are-you-sure.js +197 -0
- package/scripts/jquery.autotabs.js +42 -0
- package/scripts/jquery.backstretch.min.js +543 -0
- package/scripts/jquery.blockUI.js +442 -0
- package/scripts/jquery.datePicker.js +1151 -0
- package/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/scripts/jquery.fileupload-audio.js +103 -0
- package/scripts/jquery.fileupload-image.js +313 -0
- package/scripts/jquery.fileupload-process.js +172 -0
- package/scripts/jquery.fileupload-ui.js +700 -0
- package/scripts/jquery.fileupload-validate.js +117 -0
- package/scripts/jquery.fileupload-video.js +103 -0
- package/scripts/jquery.fileupload.js +1451 -0
- package/scripts/jquery.form.js +892 -0
- package/scripts/jquery.number.min.js +150 -0
- package/scripts/jquery.ui.datepicker-en.js +26 -0
- package/scripts/jquery.ui.timepicker-en.js +6 -0
- package/scripts/jquery.validate.min.js +844 -0
- package/scripts/jsbn-ver-1634886518000.js +2 -0
- package/scripts/layout.bundle.js +673 -0
- package/scripts/load-image.all.min.js +770 -0
- package/scripts/local.bundle.js +310 -0
- package/scripts/login-app.js +0 -0
- package/scripts/login-en.js +0 -0
- package/scripts/login-pl.js +0 -0
- package/scripts/login-states.js +0 -0
- package/scripts/main.js +23 -0
- package/scripts/mobileAuthCtrl.js +0 -0
- package/scripts/moment.min.js +1562 -0
- package/scripts/mon_ing_init.js +22 -0
- package/scripts/nl.js +88 -0
- package/scripts/paginator.js +267 -0
- package/scripts/pinLoginDefault-ver-1634885786000.js +2 -0
- package/scripts/popper.min.js +844 -0
- package/scripts/prng4-ver-1634886518000.js +2 -0
- package/scripts/psd2-states.js +0 -0
- package/scripts/rng-ver-1634886518000.js +2 -0
- package/scripts/rsa_jsbn-ver-1634886518000.js +2 -0
- package/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/scripts/selectables.custom.js +174 -0
- package/scripts/sgemius.js +0 -0
- package/scripts/sha1.js +0 -0
- package/scripts/slick.min.js +687 -0
- package/scripts/superfish.js +279 -0
- package/scripts/upload-main.js +90 -0
- package/scripts/video.min.js +12517 -0
- package/scripts/videojs.wavesurfer.min.js +495 -0
- package/scripts/wavesurfer.min.js +2775 -0
- package/scripts/webtrekk_v4-ver-1634885786000.js +2 -0
- package/setup-feature.js +47 -0
- package/start.ingbusiness.pl/dump-scripts.py +83 -0
- package/start.ingbusiness.pl/form.html_v=202110040949 +52 -0
- package/start.ingbusiness.pl/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/start.ingbusiness.pl/scripts/AliasCtrl.js +136 -0
- package/start.ingbusiness.pl/scripts/ChangePasswordCtrl.js +162 -0
- package/start.ingbusiness.pl/scripts/CustomErrorCtrl.js +9 -0
- package/start.ingbusiness.pl/scripts/ErrorCtrl.js +30 -0
- package/start.ingbusiness.pl/scripts/HeaderCtrl.js +84 -0
- package/start.ingbusiness.pl/scripts/LoginService.js +86 -0
- package/start.ingbusiness.pl/scripts/LoginValidationService.js +52 -0
- package/start.ingbusiness.pl/scripts/NipValidator.js +30 -0
- package/start.ingbusiness.pl/scripts/PasswordCtrl.js +179 -0
- package/start.ingbusiness.pl/scripts/Psd2AliasCtrl.js +12 -0
- package/start.ingbusiness.pl/scripts/RegonValidator.js +73 -0
- package/start.ingbusiness.pl/scripts/RequestService.js +26 -0
- package/start.ingbusiness.pl/scripts/SmsCtrl.js +91 -0
- package/start.ingbusiness.pl/scripts/UnlockUserCtrl.js +79 -0
- package/start.ingbusiness.pl/scripts/angular-animate.min.js +1535 -0
- package/start.ingbusiness.pl/scripts/angular-cookies.min.js +62 -0
- package/start.ingbusiness.pl/scripts/angular-translate.min.js +871 -0
- package/start.ingbusiness.pl/scripts/angular-ui-router.js +1561 -0
- package/start.ingbusiness.pl/scripts/angular.min.js +9845 -0
- package/start.ingbusiness.pl/scripts/criticalMessageService.js +24 -0
- package/start.ingbusiness.pl/scripts/data-dir-button-loader.js +30 -0
- package/start.ingbusiness.pl/scripts/data-dir-compile-template.js +17 -0
- package/start.ingbusiness.pl/scripts/data-dir-cookies-bar.js +37 -0
- package/start.ingbusiness.pl/scripts/data-dir-progress-pie.js +102 -0
- package/start.ingbusiness.pl/scripts/data-dir-svg-icon.js +633 -0
- package/start.ingbusiness.pl/scripts/data-gemius-event.js +119 -0
- package/start.ingbusiness.pl/scripts/dir-critical-message.js +9 -0
- package/start.ingbusiness.pl/scripts/dir-help-panel-content.js +29 -0
- package/start.ingbusiness.pl/scripts/dir-login-keyboard.js +346 -0
- package/start.ingbusiness.pl/scripts/dir-login-validation.js +20 -0
- package/start.ingbusiness.pl/scripts/dir-nav-links.js +26 -0
- package/start.ingbusiness.pl/scripts/dir-title.js +21 -0
- package/start.ingbusiness.pl/scripts/gemius-init.js +12 -0
- package/start.ingbusiness.pl/scripts/gemiusID.js +32 -0
- package/start.ingbusiness.pl/scripts/hashService.js +91 -0
- package/start.ingbusiness.pl/scripts/helpPanelPasswordService.js +26 -0
- package/start.ingbusiness.pl/scripts/helpPanelService.js +92 -0
- package/start.ingbusiness.pl/scripts/jquery-3.5.1.min.js +3242 -0
- package/start.ingbusiness.pl/scripts/login-app.js +107 -0
- package/start.ingbusiness.pl/scripts/login-en.js +73 -0
- package/start.ingbusiness.pl/scripts/login-pl.js +74 -0
- package/start.ingbusiness.pl/scripts/login-states.js +156 -0
- package/start.ingbusiness.pl/scripts/maskService.js +194 -0
- package/start.ingbusiness.pl/scripts/maskUtilService.js +302 -0
- package/start.ingbusiness.pl/scripts/mobileAuthCtrl.js +189 -0
- package/start.ingbusiness.pl/scripts/psd2-states.js +67 -0
- package/start.ingbusiness.pl/scripts/securityPolicyService.js +119 -0
- package/start.ingbusiness.pl/scripts/sgemius.js +257 -0
- package/start.ingbusiness.pl/scripts/sha1.js +210 -0
- package/start.ingbusiness.pl/scripts/sprintf.js +115 -0
- package/start.ingbusiness.pl/scripts/tabletScalingService.js +59 -0
- package/start.ingbusiness.pl/scripts/userAgentResolverService.js +12 -0
@@ -0,0 +1,1561 @@
|
|
1
|
+
/**
|
2
|
+
* State-based routing for AngularJS
|
3
|
+
* @version v0.4.2
|
4
|
+
* @link http://angular-ui.github.com/
|
5
|
+
* @license MIT License, http://www.opensource.org/licenses/MIT
|
6
|
+
*/
|
7
|
+
"undefined" != typeof module && "undefined" != typeof exports && module.exports === exports && (module.exports = "ui.router"),
|
8
|
+
function(a, b, c) {
|
9
|
+
"use strict";
|
10
|
+
|
11
|
+
function d(a, b) {
|
12
|
+
return T(new(T(function() {}, {
|
13
|
+
prototype: a
|
14
|
+
})), b)
|
15
|
+
}
|
16
|
+
|
17
|
+
function e(a) {
|
18
|
+
return S(arguments, function(b) {
|
19
|
+
b !== a && S(b, function(b, c) {
|
20
|
+
a.hasOwnProperty(c) || (a[c] = b)
|
21
|
+
})
|
22
|
+
}), a
|
23
|
+
}
|
24
|
+
|
25
|
+
function f(a, b) {
|
26
|
+
var c = [];
|
27
|
+
for (var d in a.path) {
|
28
|
+
if (a.path[d] !== b.path[d]) break;
|
29
|
+
c.push(a.path[d])
|
30
|
+
}
|
31
|
+
return c
|
32
|
+
}
|
33
|
+
|
34
|
+
function g(a) {
|
35
|
+
if (Object.keys) return Object.keys(a);
|
36
|
+
var b = [];
|
37
|
+
return S(a, function(a, c) {
|
38
|
+
b.push(c)
|
39
|
+
}), b
|
40
|
+
}
|
41
|
+
|
42
|
+
function h(a, b) {
|
43
|
+
if (Array.prototype.indexOf) return a.indexOf(b, Number(arguments[2]) || 0);
|
44
|
+
var c = a.length >>> 0,
|
45
|
+
d = Number(arguments[2]) || 0;
|
46
|
+
for (d = d < 0 ? Math.ceil(d) : Math.floor(d), d < 0 && (d += c); d < c; d++)
|
47
|
+
if (d in a && a[d] === b) return d;
|
48
|
+
return -1
|
49
|
+
}
|
50
|
+
|
51
|
+
function i(a, b, c, d) {
|
52
|
+
var e, i = f(c, d),
|
53
|
+
j = {},
|
54
|
+
k = [];
|
55
|
+
for (var l in i)
|
56
|
+
if (i[l] && i[l].params && (e = g(i[l].params), e.length))
|
57
|
+
for (var m in e) h(k, e[m]) >= 0 || (k.push(e[m]), j[e[m]] = a[e[m]]);
|
58
|
+
return T({}, j, b)
|
59
|
+
}
|
60
|
+
|
61
|
+
function j(a, b, c) {
|
62
|
+
if (!c) {
|
63
|
+
c = [];
|
64
|
+
for (var d in a) c.push(d)
|
65
|
+
}
|
66
|
+
for (var e = 0; e < c.length; e++) {
|
67
|
+
var f = c[e];
|
68
|
+
if (a[f] != b[f]) return !1
|
69
|
+
}
|
70
|
+
return !0
|
71
|
+
}
|
72
|
+
|
73
|
+
function k(a, b) {
|
74
|
+
var c = {};
|
75
|
+
return S(a, function(a) {
|
76
|
+
c[a] = b[a]
|
77
|
+
}), c
|
78
|
+
}
|
79
|
+
|
80
|
+
function l(a) {
|
81
|
+
var b = {},
|
82
|
+
c = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
|
83
|
+
return S(c, function(c) {
|
84
|
+
c in a && (b[c] = a[c])
|
85
|
+
}), b
|
86
|
+
}
|
87
|
+
|
88
|
+
function m(a) {
|
89
|
+
var b = {},
|
90
|
+
c = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
|
91
|
+
for (var d in a) h(c, d) == -1 && (b[d] = a[d]);
|
92
|
+
return b
|
93
|
+
}
|
94
|
+
|
95
|
+
function n(a, b) {
|
96
|
+
var c = R(a),
|
97
|
+
d = c ? [] : {};
|
98
|
+
return S(a, function(a, e) {
|
99
|
+
b(a, e) && (d[c ? d.length : e] = a)
|
100
|
+
}), d
|
101
|
+
}
|
102
|
+
|
103
|
+
function o(a, b) {
|
104
|
+
var c = R(a) ? [] : {};
|
105
|
+
return S(a, function(a, d) {
|
106
|
+
c[d] = b(a, d)
|
107
|
+
}), c
|
108
|
+
}
|
109
|
+
|
110
|
+
function p(a) {
|
111
|
+
return a.then(c, function() {}) && a
|
112
|
+
}
|
113
|
+
|
114
|
+
function q(a, b) {
|
115
|
+
var d = 1,
|
116
|
+
f = 2,
|
117
|
+
i = {},
|
118
|
+
j = [],
|
119
|
+
k = i,
|
120
|
+
l = T(a.when(i), {
|
121
|
+
$$promises: i,
|
122
|
+
$$values: i
|
123
|
+
});
|
124
|
+
this.study = function(i) {
|
125
|
+
function n(a, c) {
|
126
|
+
if (t[c] !== f) {
|
127
|
+
if (s.push(c), t[c] === d) throw s.splice(0, h(s, c)), new Error("Cyclic dependency: " + s.join(" -> "));
|
128
|
+
if (t[c] = d, P(a)) r.push(c, [function() {
|
129
|
+
return b.get(a)
|
130
|
+
}], j);
|
131
|
+
else {
|
132
|
+
var e = b.annotate(a);
|
133
|
+
S(e, function(a) {
|
134
|
+
a !== c && i.hasOwnProperty(a) && n(i[a], a)
|
135
|
+
}), r.push(c, a, e)
|
136
|
+
}
|
137
|
+
s.pop(), t[c] = f
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
function o(a) {
|
142
|
+
return Q(a) && a.then && a.$$promises
|
143
|
+
}
|
144
|
+
if (!Q(i)) throw new Error("'invocables' must be an object");
|
145
|
+
var q = g(i || {}),
|
146
|
+
r = [],
|
147
|
+
s = [],
|
148
|
+
t = {};
|
149
|
+
return S(i, n), i = s = t = null,
|
150
|
+
function(d, f, g) {
|
151
|
+
function h() {
|
152
|
+
--v || (w || e(u, f.$$values), s.$$values = u, s.$$promises = s.$$promises || !0, delete s.$$inheritedValues, n.resolve(u))
|
153
|
+
}
|
154
|
+
|
155
|
+
function i(a) {
|
156
|
+
s.$$failure = a, n.reject(a)
|
157
|
+
}
|
158
|
+
|
159
|
+
function j(c, e, f) {
|
160
|
+
function j(a) {
|
161
|
+
l.reject(a), i(a)
|
162
|
+
}
|
163
|
+
|
164
|
+
function k() {
|
165
|
+
if (!N(s.$$failure)) try {
|
166
|
+
l.resolve(b.invoke(e, g, u)), l.promise.then(function(a) {
|
167
|
+
u[c] = a, h()
|
168
|
+
}, j)
|
169
|
+
} catch (a) {
|
170
|
+
j(a)
|
171
|
+
}
|
172
|
+
}
|
173
|
+
var l = a.defer(),
|
174
|
+
m = 0;
|
175
|
+
S(f, function(a) {
|
176
|
+
t.hasOwnProperty(a) && !d.hasOwnProperty(a) && (m++, t[a].then(function(b) {
|
177
|
+
u[a] = b, --m || k()
|
178
|
+
}, j))
|
179
|
+
}), m || k(), t[c] = p(l.promise)
|
180
|
+
}
|
181
|
+
if (o(d) && g === c && (g = f, f = d, d = null), d) {
|
182
|
+
if (!Q(d)) throw new Error("'locals' must be an object")
|
183
|
+
} else d = k;
|
184
|
+
if (f) {
|
185
|
+
if (!o(f)) throw new Error("'parent' must be a promise returned by $resolve.resolve()")
|
186
|
+
} else f = l;
|
187
|
+
var n = a.defer(),
|
188
|
+
s = p(n.promise),
|
189
|
+
t = s.$$promises = {},
|
190
|
+
u = T({}, d),
|
191
|
+
v = 1 + r.length / 3,
|
192
|
+
w = !1;
|
193
|
+
if (p(s), N(f.$$failure)) return i(f.$$failure), s;
|
194
|
+
f.$$inheritedValues && e(u, m(f.$$inheritedValues, q)), T(t, f.$$promises), f.$$values ? (w = e(u, m(f.$$values, q)), s.$$inheritedValues = m(f.$$values, q), h()) : (f.$$inheritedValues && (s.$$inheritedValues = m(f.$$inheritedValues, q)), f.then(h, i));
|
195
|
+
for (var x = 0, y = r.length; x < y; x += 3) d.hasOwnProperty(r[x]) ? h() : j(r[x], r[x + 1], r[x + 2]);
|
196
|
+
return s
|
197
|
+
}
|
198
|
+
}, this.resolve = function(a, b, c, d) {
|
199
|
+
return this.study(a)(b, c, d)
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
function r() {
|
204
|
+
var a = b.version.minor < 3;
|
205
|
+
this.shouldUnsafelyUseHttp = function(b) {
|
206
|
+
a = !!b
|
207
|
+
}, this.$get = ["$http", "$templateCache", "$injector", function(b, c, d) {
|
208
|
+
return new s(b, c, d, a)
|
209
|
+
}]
|
210
|
+
}
|
211
|
+
|
212
|
+
function s(a, b, c, d) {
|
213
|
+
this.fromConfig = function(a, b, c) {
|
214
|
+
return N(a.template) ? this.fromString(a.template, b) : N(a.templateUrl) ? this.fromUrl(a.templateUrl, b) : N(a.templateProvider) ? this.fromProvider(a.templateProvider, b, c) : null
|
215
|
+
}, this.fromString = function(a, b) {
|
216
|
+
return O(a) ? a(b) : a
|
217
|
+
}, this.fromUrl = function(e, f) {
|
218
|
+
return O(e) && (e = e(f)), null == e ? null : d ? a.get(e, {
|
219
|
+
cache: b,
|
220
|
+
headers: {
|
221
|
+
Accept: "text/html"
|
222
|
+
}
|
223
|
+
}).then(function(a) {
|
224
|
+
return a.data
|
225
|
+
}) : c.get("$templateRequest")(e)
|
226
|
+
}, this.fromProvider = function(a, b, d) {
|
227
|
+
return c.invoke(a, null, d || {
|
228
|
+
params: b
|
229
|
+
})
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
function t(a, b, e) {
|
234
|
+
function f(b, c, d, e) {
|
235
|
+
if (q.push(b), o[b]) return o[b];
|
236
|
+
if (!/^\w+([-.]+\w+)*(?:\[\])?$/.test(b)) throw new Error("Invalid parameter name '" + b + "' in pattern '" + a + "'");
|
237
|
+
if (p[b]) throw new Error("Duplicate parameter name '" + b + "' in pattern '" + a + "'");
|
238
|
+
return p[b] = new W.Param(b, c, d, e), p[b]
|
239
|
+
}
|
240
|
+
|
241
|
+
function g(a, b, c, d) {
|
242
|
+
var e = ["", ""],
|
243
|
+
f = a.replace(/[\\\[\]\^$*+?.()|{}]/g, "\\$&");
|
244
|
+
if (!b) return f;
|
245
|
+
switch (c) {
|
246
|
+
case !1:
|
247
|
+
e = ["(", ")" + (d ? "?" : "")];
|
248
|
+
break;
|
249
|
+
case !0:
|
250
|
+
f = f.replace(/\/$/, ""), e = ["(?:/(", ")|/)?"];
|
251
|
+
break;
|
252
|
+
default:
|
253
|
+
e = ["(" + c + "|", ")?"]
|
254
|
+
}
|
255
|
+
return f + e[0] + b + e[1]
|
256
|
+
}
|
257
|
+
|
258
|
+
function h(e, f) {
|
259
|
+
var g, h, i, j, k;
|
260
|
+
return g = e[2] || e[3], k = b.params[g], i = a.substring(m, e.index), h = f ? e[4] : e[4] || ("*" == e[1] ? ".*" : null), h && (j = W.type(h) || d(W.type("string"), {
|
261
|
+
pattern: new RegExp(h, b.caseInsensitive ? "i" : c)
|
262
|
+
})), {
|
263
|
+
id: g,
|
264
|
+
regexp: h,
|
265
|
+
segment: i,
|
266
|
+
type: j,
|
267
|
+
cfg: k
|
268
|
+
}
|
269
|
+
}
|
270
|
+
b = T({
|
271
|
+
params: {}
|
272
|
+
}, Q(b) ? b : {});
|
273
|
+
var i, j = /([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,
|
274
|
+
k = /([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,
|
275
|
+
l = "^",
|
276
|
+
m = 0,
|
277
|
+
n = this.segments = [],
|
278
|
+
o = e ? e.params : {},
|
279
|
+
p = this.params = e ? e.params.$$new() : new W.ParamSet,
|
280
|
+
q = [];
|
281
|
+
this.source = a;
|
282
|
+
for (var r, s, t;
|
283
|
+
(i = j.exec(a)) && (r = h(i, !1), !(r.segment.indexOf("?") >= 0));) s = f(r.id, r.type, r.cfg, "path"), l += g(r.segment, s.type.pattern.source, s.squash, s.isOptional), n.push(r.segment), m = j.lastIndex;
|
284
|
+
t = a.substring(m);
|
285
|
+
var u = t.indexOf("?");
|
286
|
+
if (u >= 0) {
|
287
|
+
var v = this.sourceSearch = t.substring(u);
|
288
|
+
if (t = t.substring(0, u), this.sourcePath = a.substring(0, m + u), v.length > 0)
|
289
|
+
for (m = 0; i = k.exec(v);) r = h(i, !0), s = f(r.id, r.type, r.cfg, "search"), m = j.lastIndex
|
290
|
+
} else this.sourcePath = a, this.sourceSearch = "";
|
291
|
+
l += g(t) + (b.strict === !1 ? "/?" : "") + "$", n.push(t), this.regexp = new RegExp(l, b.caseInsensitive ? "i" : c), this.prefix = n[0], this.$$paramNames = q
|
292
|
+
}
|
293
|
+
|
294
|
+
function u(a) {
|
295
|
+
T(this, a)
|
296
|
+
}
|
297
|
+
|
298
|
+
function v() {
|
299
|
+
function a(a) {
|
300
|
+
return null != a ? a.toString().replace(/(~|\/)/g, function(a) {
|
301
|
+
return {
|
302
|
+
"~": "~~",
|
303
|
+
"/": "~2F"
|
304
|
+
} [a]
|
305
|
+
}) : a
|
306
|
+
}
|
307
|
+
|
308
|
+
function e(a) {
|
309
|
+
return null != a ? a.toString().replace(/(~~|~2F)/g, function(a) {
|
310
|
+
return {
|
311
|
+
"~~": "~",
|
312
|
+
"~2F": "/"
|
313
|
+
} [a]
|
314
|
+
}) : a
|
315
|
+
}
|
316
|
+
|
317
|
+
function f() {
|
318
|
+
return {
|
319
|
+
strict: p,
|
320
|
+
caseInsensitive: m
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
function i(a) {
|
325
|
+
return O(a) || R(a) && O(a[a.length - 1])
|
326
|
+
}
|
327
|
+
|
328
|
+
function j() {
|
329
|
+
for (; w.length;) {
|
330
|
+
var a = w.shift();
|
331
|
+
if (a.pattern) throw new Error("You cannot override a type's .pattern at runtime.");
|
332
|
+
b.extend(r[a.name], l.invoke(a.def))
|
333
|
+
}
|
334
|
+
}
|
335
|
+
|
336
|
+
function k(a) {
|
337
|
+
T(this, a || {})
|
338
|
+
}
|
339
|
+
W = this;
|
340
|
+
var l, m = !1,
|
341
|
+
p = !0,
|
342
|
+
q = !1,
|
343
|
+
r = {},
|
344
|
+
s = !0,
|
345
|
+
w = [],
|
346
|
+
x = {
|
347
|
+
string: {
|
348
|
+
encode: a,
|
349
|
+
decode: e,
|
350
|
+
is: function(a) {
|
351
|
+
return null == a || !N(a) || "string" == typeof a
|
352
|
+
},
|
353
|
+
pattern: /[^\/]*/
|
354
|
+
},
|
355
|
+
int: {
|
356
|
+
encode: a,
|
357
|
+
decode: function(a) {
|
358
|
+
return parseInt(a, 10)
|
359
|
+
},
|
360
|
+
is: function(a) {
|
361
|
+
return a !== c && null !== a && this.decode(a.toString()) === a
|
362
|
+
},
|
363
|
+
pattern: /\d+/
|
364
|
+
},
|
365
|
+
bool: {
|
366
|
+
encode: function(a) {
|
367
|
+
return a ? 1 : 0
|
368
|
+
},
|
369
|
+
decode: function(a) {
|
370
|
+
return 0 !== parseInt(a, 10)
|
371
|
+
},
|
372
|
+
is: function(a) {
|
373
|
+
return a === !0 || a === !1
|
374
|
+
},
|
375
|
+
pattern: /0|1/
|
376
|
+
},
|
377
|
+
date: {
|
378
|
+
encode: function(a) {
|
379
|
+
return this.is(a) ? [a.getFullYear(), ("0" + (a.getMonth() + 1)).slice(-2), ("0" + a.getDate()).slice(-2)].join("-") : c
|
380
|
+
},
|
381
|
+
decode: function(a) {
|
382
|
+
if (this.is(a)) return a;
|
383
|
+
var b = this.capture.exec(a);
|
384
|
+
return b ? new Date(b[1], b[2] - 1, b[3]) : c
|
385
|
+
},
|
386
|
+
is: function(a) {
|
387
|
+
return a instanceof Date && !isNaN(a.valueOf())
|
388
|
+
},
|
389
|
+
equals: function(a, b) {
|
390
|
+
return this.is(a) && this.is(b) && a.toISOString() === b.toISOString()
|
391
|
+
},
|
392
|
+
pattern: /[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,
|
393
|
+
capture: /([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/
|
394
|
+
},
|
395
|
+
json: {
|
396
|
+
encode: b.toJson,
|
397
|
+
decode: b.fromJson,
|
398
|
+
is: b.isObject,
|
399
|
+
equals: b.equals,
|
400
|
+
pattern: /[^\/]*/
|
401
|
+
},
|
402
|
+
any: {
|
403
|
+
encode: b.identity,
|
404
|
+
decode: b.identity,
|
405
|
+
equals: b.equals,
|
406
|
+
pattern: /.*/
|
407
|
+
}
|
408
|
+
};
|
409
|
+
v.$$getDefaultValue = function(a) {
|
410
|
+
if (!i(a.value)) return a.value;
|
411
|
+
if (!l) throw new Error("Injectable functions cannot be called at configuration time");
|
412
|
+
return l.invoke(a.value)
|
413
|
+
}, this.caseInsensitive = function(a) {
|
414
|
+
return N(a) && (m = a), m
|
415
|
+
}, this.strictMode = function(a) {
|
416
|
+
return N(a) && (p = a), p
|
417
|
+
}, this.defaultSquashPolicy = function(a) {
|
418
|
+
if (!N(a)) return q;
|
419
|
+
if (a !== !0 && a !== !1 && !P(a)) throw new Error("Invalid squash policy: " + a + ". Valid policies: false, true, arbitrary-string");
|
420
|
+
return q = a, a
|
421
|
+
}, this.compile = function(a, b) {
|
422
|
+
return new t(a, T(f(), b))
|
423
|
+
}, this.isMatcher = function(a) {
|
424
|
+
if (!Q(a)) return !1;
|
425
|
+
var b = !0;
|
426
|
+
return S(t.prototype, function(c, d) {
|
427
|
+
O(c) && (b = b && N(a[d]) && O(a[d]))
|
428
|
+
}), b
|
429
|
+
}, this.type = function(a, b, c) {
|
430
|
+
if (!N(b)) return r[a];
|
431
|
+
if (r.hasOwnProperty(a)) throw new Error("A type named '" + a + "' has already been defined.");
|
432
|
+
return r[a] = new u(T({
|
433
|
+
name: a
|
434
|
+
}, b)), c && (w.push({
|
435
|
+
name: a,
|
436
|
+
def: c
|
437
|
+
}), s || j()), this
|
438
|
+
}, S(x, function(a, b) {
|
439
|
+
r[b] = new u(T({
|
440
|
+
name: b
|
441
|
+
}, a))
|
442
|
+
}), r = d(r, {}), this.$get = ["$injector", function(a) {
|
443
|
+
return l = a, s = !1, j(), S(x, function(a, b) {
|
444
|
+
r[b] || (r[b] = new u(a))
|
445
|
+
}), this
|
446
|
+
}], this.Param = function(a, d, e, f) {
|
447
|
+
function j(a) {
|
448
|
+
var b = Q(a) ? g(a) : [],
|
449
|
+
c = h(b, "value") === -1 && h(b, "type") === -1 && h(b, "squash") === -1 && h(b, "array") === -1;
|
450
|
+
return c && (a = {
|
451
|
+
value: a
|
452
|
+
}), a.$$fn = i(a.value) ? a.value : function() {
|
453
|
+
return a.value
|
454
|
+
}, a
|
455
|
+
}
|
456
|
+
|
457
|
+
function k(c, d, e) {
|
458
|
+
if (c.type && d) throw new Error("Param '" + a + "' has two type configurations.");
|
459
|
+
return d ? d : c.type ? b.isString(c.type) ? r[c.type] : c.type instanceof u ? c.type : new u(c.type) : "config" === e ? r.any : r.string
|
460
|
+
}
|
461
|
+
|
462
|
+
function m() {
|
463
|
+
var b = {
|
464
|
+
array: "search" === f && "auto"
|
465
|
+
},
|
466
|
+
c = a.match(/\[\]$/) ? {
|
467
|
+
array: !0
|
468
|
+
} : {};
|
469
|
+
return T(b, c, e).array
|
470
|
+
}
|
471
|
+
|
472
|
+
function p(a, b) {
|
473
|
+
var c = a.squash;
|
474
|
+
if (!b || c === !1) return !1;
|
475
|
+
if (!N(c) || null == c) return q;
|
476
|
+
if (c === !0 || P(c)) return c;
|
477
|
+
throw new Error("Invalid squash policy: '" + c + "'. Valid policies: false, true, or arbitrary string")
|
478
|
+
}
|
479
|
+
|
480
|
+
function s(a, b, d, e) {
|
481
|
+
var f, g, i = [{
|
482
|
+
from: "",
|
483
|
+
to: d || b ? c : ""
|
484
|
+
}, {
|
485
|
+
from: null,
|
486
|
+
to: d || b ? c : ""
|
487
|
+
}];
|
488
|
+
return f = R(a.replace) ? a.replace : [], P(e) && f.push({
|
489
|
+
from: e,
|
490
|
+
to: c
|
491
|
+
}), g = o(f, function(a) {
|
492
|
+
return a.from
|
493
|
+
}), n(i, function(a) {
|
494
|
+
return h(g, a.from) === -1
|
495
|
+
}).concat(f)
|
496
|
+
}
|
497
|
+
|
498
|
+
function t() {
|
499
|
+
if (!l) throw new Error("Injectable functions cannot be called at configuration time");
|
500
|
+
var a = l.invoke(e.$$fn);
|
501
|
+
if (null !== a && a !== c && !x.type.is(a)) throw new Error("Default value (" + a + ") for parameter '" + x.id + "' is not an instance of Type (" + x.type.name + ")");
|
502
|
+
return a
|
503
|
+
}
|
504
|
+
|
505
|
+
function v(a) {
|
506
|
+
function b(a) {
|
507
|
+
return function(b) {
|
508
|
+
return b.from === a
|
509
|
+
}
|
510
|
+
}
|
511
|
+
|
512
|
+
function c(a) {
|
513
|
+
var c = o(n(x.replace, b(a)), function(a) {
|
514
|
+
return a.to
|
515
|
+
});
|
516
|
+
return c.length ? c[0] : a
|
517
|
+
}
|
518
|
+
return a = c(a), N(a) ? x.type.$normalize(a) : t()
|
519
|
+
}
|
520
|
+
|
521
|
+
function w() {
|
522
|
+
return "{Param:" + a + " " + d + " squash: '" + A + "' optional: " + z + "}"
|
523
|
+
}
|
524
|
+
var x = this;
|
525
|
+
e = j(e), d = k(e, d, f);
|
526
|
+
var y = m();
|
527
|
+
d = y ? d.$asArray(y, "search" === f) : d, "string" !== d.name || y || "path" !== f || e.value !== c || (e.value = "");
|
528
|
+
var z = e.value !== c,
|
529
|
+
A = p(e, z),
|
530
|
+
B = s(e, y, z, A);
|
531
|
+
T(this, {
|
532
|
+
id: a,
|
533
|
+
type: d,
|
534
|
+
location: f,
|
535
|
+
array: y,
|
536
|
+
squash: A,
|
537
|
+
replace: B,
|
538
|
+
isOptional: z,
|
539
|
+
value: v,
|
540
|
+
dynamic: c,
|
541
|
+
config: e,
|
542
|
+
toString: w
|
543
|
+
})
|
544
|
+
}, k.prototype = {
|
545
|
+
$$new: function() {
|
546
|
+
return d(this, T(new k, {
|
547
|
+
$$parent: this
|
548
|
+
}))
|
549
|
+
},
|
550
|
+
$$keys: function() {
|
551
|
+
for (var a = [], b = [], c = this, d = g(k.prototype); c;) b.push(c), c = c.$$parent;
|
552
|
+
return b.reverse(), S(b, function(b) {
|
553
|
+
S(g(b), function(b) {
|
554
|
+
h(a, b) === -1 && h(d, b) === -1 && a.push(b)
|
555
|
+
})
|
556
|
+
}), a
|
557
|
+
},
|
558
|
+
$$values: function(a) {
|
559
|
+
var b = {},
|
560
|
+
c = this;
|
561
|
+
return S(c.$$keys(), function(d) {
|
562
|
+
b[d] = c[d].value(a && a[d])
|
563
|
+
}), b
|
564
|
+
},
|
565
|
+
$$equals: function(a, b) {
|
566
|
+
var c = !0,
|
567
|
+
d = this;
|
568
|
+
return S(d.$$keys(), function(e) {
|
569
|
+
var f = a && a[e],
|
570
|
+
g = b && b[e];
|
571
|
+
d[e].type.equals(f, g) || (c = !1)
|
572
|
+
}), c
|
573
|
+
},
|
574
|
+
$$validates: function(a) {
|
575
|
+
var d, e, f, g, h, i = this.$$keys();
|
576
|
+
for (d = 0; d < i.length && (e = this[i[d]], f = a[i[d]], f !== c && null !== f || !e.isOptional); d++) {
|
577
|
+
if (g = e.type.$normalize(f), !e.type.is(g)) return !1;
|
578
|
+
if (h = e.type.encode(g), b.isString(h) && !e.type.pattern.exec(h)) return !1
|
579
|
+
}
|
580
|
+
return !0
|
581
|
+
},
|
582
|
+
$$parent: c
|
583
|
+
}, this.ParamSet = k
|
584
|
+
}
|
585
|
+
|
586
|
+
function w(a, d) {
|
587
|
+
function e(a) {
|
588
|
+
var b = /^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(a.source);
|
589
|
+
return null != b ? b[1].replace(/\\(.)/g, "$1") : ""
|
590
|
+
}
|
591
|
+
|
592
|
+
function f(a, b) {
|
593
|
+
return a.replace(/\$(\$|\d{1,2})/, function(a, c) {
|
594
|
+
return b["$" === c ? 0 : Number(c)]
|
595
|
+
})
|
596
|
+
}
|
597
|
+
|
598
|
+
function g(a, b, c) {
|
599
|
+
if (!c) return !1;
|
600
|
+
var d = a.invoke(b, b, {
|
601
|
+
$match: c
|
602
|
+
});
|
603
|
+
return !N(d) || d
|
604
|
+
}
|
605
|
+
|
606
|
+
function h(d, e, f, g, h) {
|
607
|
+
function m(a, b, c) {
|
608
|
+
return "/" === q ? a : b ? q.slice(0, -1) + a : c ? q.slice(1) + a : a
|
609
|
+
}
|
610
|
+
|
611
|
+
function n(a) {
|
612
|
+
function b(a) {
|
613
|
+
var b = a(f, d);
|
614
|
+
return !!b && (P(b) && d.replace().url(b), !0)
|
615
|
+
}
|
616
|
+
if (!a || !a.defaultPrevented) {
|
617
|
+
p && d.url() === p;
|
618
|
+
p = c;
|
619
|
+
var e, g = j.length;
|
620
|
+
for (e = 0; e < g; e++)
|
621
|
+
if (b(j[e])) return;
|
622
|
+
k && b(k)
|
623
|
+
}
|
624
|
+
}
|
625
|
+
|
626
|
+
function o() {
|
627
|
+
return i = i || e.$on("$locationChangeSuccess", n)
|
628
|
+
}
|
629
|
+
var p, q = g.baseHref(),
|
630
|
+
r = d.url();
|
631
|
+
return l || o(), {
|
632
|
+
sync: function() {
|
633
|
+
n()
|
634
|
+
},
|
635
|
+
listen: function() {
|
636
|
+
return o()
|
637
|
+
},
|
638
|
+
update: function(a) {
|
639
|
+
return a ? void(r = d.url()) : void(d.url() !== r && (d.url(r), d.replace()))
|
640
|
+
},
|
641
|
+
push: function(a, b, e) {
|
642
|
+
var f = a.format(b || {});
|
643
|
+
null !== f && b && b["#"] && (f += "#" + b["#"]), d.url(f), p = e && e.$$avoidResync ? d.url() : c, e && e.replace && d.replace()
|
644
|
+
},
|
645
|
+
href: function(c, e, f) {
|
646
|
+
if (!c.validates(e)) return null;
|
647
|
+
var g = a.html5Mode();
|
648
|
+
b.isObject(g) && (g = g.enabled), g = g && h.history;
|
649
|
+
var i = c.format(e);
|
650
|
+
if (f = f || {}, g || null === i || (i = "#" + a.hashPrefix() + i), null !== i && e && e["#"] && (i += "#" + e["#"]), i = m(i, g, f.absolute), !f.absolute || !i) return i;
|
651
|
+
var j = !g && i ? "/" : "",
|
652
|
+
k = d.port();
|
653
|
+
return k = 80 === k || 443 === k ? "" : ":" + k, [d.protocol(), "://", d.host(), k, j, i].join("")
|
654
|
+
}
|
655
|
+
}
|
656
|
+
}
|
657
|
+
var i, j = [],
|
658
|
+
k = null,
|
659
|
+
l = !1;
|
660
|
+
this.rule = function(a) {
|
661
|
+
if (!O(a)) throw new Error("'rule' must be a function");
|
662
|
+
return j.push(a), this
|
663
|
+
}, this.otherwise = function(a) {
|
664
|
+
if (P(a)) {
|
665
|
+
var b = a;
|
666
|
+
a = function() {
|
667
|
+
return b
|
668
|
+
}
|
669
|
+
} else if (!O(a)) throw new Error("'rule' must be a function");
|
670
|
+
return k = a, this
|
671
|
+
}, this.when = function(a, b) {
|
672
|
+
var c, h = P(b);
|
673
|
+
if (P(a) && (a = d.compile(a)), !h && !O(b) && !R(b)) throw new Error("invalid 'handler' in when()");
|
674
|
+
var i = {
|
675
|
+
matcher: function(a, b) {
|
676
|
+
return h && (c = d.compile(b), b = ["$match", function(a) {
|
677
|
+
return c.format(a)
|
678
|
+
}]), T(function(c, d) {
|
679
|
+
return g(c, b, a.exec(d.path(), d.search()))
|
680
|
+
}, {
|
681
|
+
prefix: P(a.prefix) ? a.prefix : ""
|
682
|
+
})
|
683
|
+
},
|
684
|
+
regex: function(a, b) {
|
685
|
+
if (a.global || a.sticky) throw new Error("when() RegExp must not be global or sticky");
|
686
|
+
return h && (c = b, b = ["$match", function(a) {
|
687
|
+
return f(c, a)
|
688
|
+
}]), T(function(c, d) {
|
689
|
+
return g(c, b, a.exec(d.path()))
|
690
|
+
}, {
|
691
|
+
prefix: e(a)
|
692
|
+
})
|
693
|
+
}
|
694
|
+
},
|
695
|
+
j = {
|
696
|
+
matcher: d.isMatcher(a),
|
697
|
+
regex: a instanceof RegExp
|
698
|
+
};
|
699
|
+
for (var k in j)
|
700
|
+
if (j[k]) return this.rule(i[k](a, b));
|
701
|
+
throw new Error("invalid 'what' in when()")
|
702
|
+
}, this.deferIntercept = function(a) {
|
703
|
+
a === c && (a = !0), l = a
|
704
|
+
}, this.$get = h, h.$inject = ["$location", "$rootScope", "$injector", "$browser", "$sniffer"]
|
705
|
+
}
|
706
|
+
|
707
|
+
function x(a, e) {
|
708
|
+
function f(a) {
|
709
|
+
return 0 === a.indexOf(".") || 0 === a.indexOf("^")
|
710
|
+
}
|
711
|
+
|
712
|
+
function m(a, b) {
|
713
|
+
if (!a) return c;
|
714
|
+
var d = P(a),
|
715
|
+
e = d ? a : a.name,
|
716
|
+
g = f(e);
|
717
|
+
if (g) {
|
718
|
+
if (!b) throw new Error("No reference point given for path '" + e + "'");
|
719
|
+
b = m(b);
|
720
|
+
for (var h = e.split("."), i = 0, j = h.length, k = b; i < j; i++)
|
721
|
+
if ("" !== h[i] || 0 !== i) {
|
722
|
+
if ("^" !== h[i]) break;
|
723
|
+
if (!k.parent) throw new Error("Path '" + e + "' not valid for state '" + b.name + "'");
|
724
|
+
k = k.parent
|
725
|
+
} else k = b;
|
726
|
+
h = h.slice(i).join("."), e = k.name + (k.name && h ? "." : "") + h
|
727
|
+
}
|
728
|
+
var l = A[e];
|
729
|
+
return !l || !d && (d || l !== a && l.self !== a) ? c : l
|
730
|
+
}
|
731
|
+
|
732
|
+
function n(a, b) {
|
733
|
+
B[a] || (B[a] = []), B[a].push(b)
|
734
|
+
}
|
735
|
+
|
736
|
+
function q(a) {
|
737
|
+
for (var b = B[a] || []; b.length;) r(b.shift())
|
738
|
+
}
|
739
|
+
|
740
|
+
function r(b) {
|
741
|
+
b = d(b, {
|
742
|
+
self: b,
|
743
|
+
resolve: b.resolve || {},
|
744
|
+
toString: function() {
|
745
|
+
return this.name
|
746
|
+
}
|
747
|
+
});
|
748
|
+
var c = b.name;
|
749
|
+
if (!P(c) || c.indexOf("@") >= 0) throw new Error("State must have a valid name");
|
750
|
+
if (A.hasOwnProperty(c)) throw new Error("State '" + c + "' is already defined");
|
751
|
+
var e = c.indexOf(".") !== -1 ? c.substring(0, c.lastIndexOf(".")) : P(b.parent) ? b.parent : Q(b.parent) && P(b.parent.name) ? b.parent.name : "";
|
752
|
+
if (e && !A[e]) return n(e, b.self);
|
753
|
+
for (var f in D) O(D[f]) && (b[f] = D[f](b, D.$delegates[f]));
|
754
|
+
return A[c] = b, !b[C] && b.url && a.when(b.url, ["$match", "$stateParams", function(a, c) {
|
755
|
+
z.$current.navigable == b && j(a, c) || z.transitionTo(b, a, {
|
756
|
+
inherit: !0,
|
757
|
+
location: !1
|
758
|
+
})
|
759
|
+
}]), q(c), b
|
760
|
+
}
|
761
|
+
|
762
|
+
function s(a) {
|
763
|
+
return a.indexOf("*") > -1
|
764
|
+
}
|
765
|
+
|
766
|
+
function t(a) {
|
767
|
+
for (var b = a.split("."), c = z.$current.name.split("."), d = 0, e = b.length; d < e; d++) "*" === b[d] && (c[d] = "*");
|
768
|
+
return "**" === b[0] && (c = c.slice(h(c, b[1])), c.unshift("**")), "**" === b[b.length - 1] && (c.splice(h(c, b[b.length - 2]) + 1, Number.MAX_VALUE), c.push("**")), b.length == c.length && c.join("") === b.join("")
|
769
|
+
}
|
770
|
+
|
771
|
+
function u(a, b) {
|
772
|
+
return P(a) && !N(b) ? D[a] : O(b) && P(a) ? (D[a] && !D.$delegates[a] && (D.$delegates[a] = D[a]), D[a] = b, this) : this
|
773
|
+
}
|
774
|
+
|
775
|
+
function v(a, b) {
|
776
|
+
return Q(a) ? b = a : b.name = a, r(b), this
|
777
|
+
}
|
778
|
+
|
779
|
+
function w(a, e, f, h, j, l, n, q, r) {
|
780
|
+
function u(b, c, d, f) {
|
781
|
+
var g = a.$broadcast("$stateNotFound", b, c, d);
|
782
|
+
if (g.defaultPrevented) return n.update(), E;
|
783
|
+
if (!g.retry) return null;
|
784
|
+
if (f.$retry) return n.update(), F;
|
785
|
+
var h = z.transition = e.when(g.retry);
|
786
|
+
return h.then(function() {
|
787
|
+
return h !== z.transition ? (a.$broadcast("$stateChangeCancel", b.to, b.toParams, c, d), B) : (b.options.$retry = !0, z.transitionTo(b.to, b.toParams, b.options))
|
788
|
+
}, function() {
|
789
|
+
return E
|
790
|
+
}), n.update(), h
|
791
|
+
}
|
792
|
+
|
793
|
+
function v(a, c, d, g, i, l) {
|
794
|
+
function m() {
|
795
|
+
var c = [];
|
796
|
+
return S(a.views, function(d, e) {
|
797
|
+
var g = d.resolve && d.resolve !== a.resolve ? d.resolve : {};
|
798
|
+
g.$template = [function() {
|
799
|
+
return f.load(e, {
|
800
|
+
view: d,
|
801
|
+
locals: i.globals,
|
802
|
+
params: n,
|
803
|
+
notify: l.notify
|
804
|
+
}) || ""
|
805
|
+
}], c.push(j.resolve(g, i.globals, i.resolve, a).then(function(c) {
|
806
|
+
if (O(d.controllerProvider) || R(d.controllerProvider)) {
|
807
|
+
var f = b.extend({}, g, i.globals);
|
808
|
+
c.$$controller = h.invoke(d.controllerProvider, null, f)
|
809
|
+
} else c.$$controller = d.controller;
|
810
|
+
c.$$state = a, c.$$controllerAs = d.controllerAs, c.$$resolveAs = d.resolveAs, i[e] = c
|
811
|
+
}))
|
812
|
+
}), e.all(c).then(function() {
|
813
|
+
return i.globals
|
814
|
+
})
|
815
|
+
}
|
816
|
+
var n = d ? c : k(a.params.$$keys(), c),
|
817
|
+
o = {
|
818
|
+
$stateParams: n
|
819
|
+
};
|
820
|
+
i.resolve = j.resolve(a.resolve, o, i.resolve, a);
|
821
|
+
var p = [i.resolve.then(function(a) {
|
822
|
+
i.globals = a
|
823
|
+
})];
|
824
|
+
return g && p.push(g), e.all(p).then(m).then(function(a) {
|
825
|
+
return i
|
826
|
+
})
|
827
|
+
}
|
828
|
+
var w = new Error("transition superseded"),
|
829
|
+
B = p(e.reject(w)),
|
830
|
+
D = p(e.reject(new Error("transition prevented"))),
|
831
|
+
E = p(e.reject(new Error("transition aborted"))),
|
832
|
+
F = p(e.reject(new Error("transition failed")));
|
833
|
+
return y.locals = {
|
834
|
+
resolve: null,
|
835
|
+
globals: {
|
836
|
+
$stateParams: {}
|
837
|
+
}
|
838
|
+
}, z = {
|
839
|
+
params: {},
|
840
|
+
current: y.self,
|
841
|
+
$current: y,
|
842
|
+
transition: null
|
843
|
+
}, z.reload = function(a) {
|
844
|
+
return z.transitionTo(z.current, l, {
|
845
|
+
reload: a || !0,
|
846
|
+
inherit: !1,
|
847
|
+
notify: !0
|
848
|
+
})
|
849
|
+
}, z.go = function(a, b, c) {
|
850
|
+
return z.transitionTo(a, b, T({
|
851
|
+
inherit: !0,
|
852
|
+
relative: z.$current
|
853
|
+
}, c))
|
854
|
+
}, z.transitionTo = function(b, c, f) {
|
855
|
+
c = c || {}, f = T({
|
856
|
+
location: !0,
|
857
|
+
inherit: !1,
|
858
|
+
relative: null,
|
859
|
+
notify: !0,
|
860
|
+
reload: !1,
|
861
|
+
$retry: !1
|
862
|
+
}, f || {});
|
863
|
+
var g, j = z.$current,
|
864
|
+
o = z.params,
|
865
|
+
q = j.path,
|
866
|
+
r = m(b, f.relative),
|
867
|
+
s = c["#"];
|
868
|
+
if (!N(r)) {
|
869
|
+
var t = {
|
870
|
+
to: b,
|
871
|
+
toParams: c,
|
872
|
+
options: f
|
873
|
+
},
|
874
|
+
A = u(t, j.self, o, f);
|
875
|
+
if (A) return A;
|
876
|
+
if (b = t.to, c = t.toParams, f = t.options, r = m(b, f.relative), !N(r)) {
|
877
|
+
if (!f.relative) throw new Error("No such state '" + b + "'");
|
878
|
+
throw new Error("Could not resolve '" + b + "' from state '" + f.relative + "'")
|
879
|
+
}
|
880
|
+
}
|
881
|
+
if (r[C]) throw new Error("Cannot transition to abstract state '" + b + "'");
|
882
|
+
if (f.inherit && (c = i(l, c || {}, z.$current, r)), !r.params.$$validates(c)) return F;
|
883
|
+
c = r.params.$$values(c), b = r;
|
884
|
+
var E = b.path,
|
885
|
+
G = 0,
|
886
|
+
H = E[G],
|
887
|
+
I = y.locals,
|
888
|
+
J = [];
|
889
|
+
if (f.reload) {
|
890
|
+
if (P(f.reload) || Q(f.reload)) {
|
891
|
+
if (Q(f.reload) && !f.reload.name) throw new Error("Invalid reload state object");
|
892
|
+
var K = f.reload === !0 ? q[0] : m(f.reload);
|
893
|
+
if (f.reload && !K) throw new Error("No such reload state '" + (P(f.reload) ? f.reload : f.reload.name) + "'");
|
894
|
+
for (; H && H === q[G] && H !== K;) I = J[G] = H.locals, G++, H = E[G]
|
895
|
+
}
|
896
|
+
} else
|
897
|
+
for (; H && H === q[G] && H.ownParams.$$equals(c, o);) I = J[G] = H.locals, G++, H = E[G];
|
898
|
+
if (x(b, c, j, o, I, f)) return s && (c["#"] = s), z.params = c, U(z.params, l), U(k(b.params.$$keys(), l), b.locals.globals.$stateParams), f.location && b.navigable && b.navigable.url && (n.push(b.navigable.url, c, {
|
899
|
+
$$avoidResync: !0,
|
900
|
+
replace: "replace" === f.location
|
901
|
+
}), n.update(!0)), z.transition = null, e.when(z.current);
|
902
|
+
if (c = k(b.params.$$keys(), c || {}), s && (c["#"] = s), f.notify && a.$broadcast("$stateChangeStart", b.self, c, j.self, o, f).defaultPrevented) return a.$broadcast("$stateChangeCancel", b.self, c, j.self, o), null == z.transition && n.update(), D;
|
903
|
+
for (var L = e.when(I), M = G; M < E.length; M++, H = E[M]) I = J[M] = d(I), L = v(H, c, H === b, L, I, f);
|
904
|
+
var O = z.transition = L.then(function() {
|
905
|
+
var d, e, g;
|
906
|
+
if (z.transition !== O) return a.$broadcast("$stateChangeCancel", b.self, c, j.self, o), B;
|
907
|
+
for (d = q.length - 1; d >= G; d--) g = q[d], g.self.onExit && h.invoke(g.self.onExit, g.self, g.locals.globals), g.locals = null;
|
908
|
+
for (d = G; d < E.length; d++) e = E[d], e.locals = J[d], e.self.onEnter && h.invoke(e.self.onEnter, e.self, e.locals.globals);
|
909
|
+
return z.transition !== O ? (a.$broadcast("$stateChangeCancel", b.self, c, j.self, o), B) : (z.$current = b, z.current = b.self, z.params = c, U(z.params, l), z.transition = null, f.location && b.navigable && n.push(b.navigable.url, b.navigable.locals.globals.$stateParams, {
|
910
|
+
$$avoidResync: !0,
|
911
|
+
replace: "replace" === f.location
|
912
|
+
}), f.notify && a.$broadcast("$stateChangeSuccess", b.self, c, j.self, o), n.update(!0), z.current)
|
913
|
+
}).then(null, function(d) {
|
914
|
+
return d === w ? B : z.transition !== O ? (a.$broadcast("$stateChangeCancel", b.self, c, j.self, o), B) : (z.transition = null, g = a.$broadcast("$stateChangeError", b.self, c, j.self, o, d), g.defaultPrevented || n.update(), e.reject(d))
|
915
|
+
});
|
916
|
+
return p(O), O
|
917
|
+
}, z.is = function(a, b, d) {
|
918
|
+
d = T({
|
919
|
+
relative: z.$current
|
920
|
+
}, d || {});
|
921
|
+
var e = m(a, d.relative);
|
922
|
+
return N(e) ? z.$current === e && (!b || g(b).reduce(function(a, c) {
|
923
|
+
var d = e.params[c];
|
924
|
+
return a && !d || d.type.equals(l[c], b[c])
|
925
|
+
}, !0)) : c
|
926
|
+
}, z.includes = function(a, b, d) {
|
927
|
+
if (d = T({
|
928
|
+
relative: z.$current
|
929
|
+
}, d || {}), P(a) && s(a)) {
|
930
|
+
if (!t(a)) return !1;
|
931
|
+
a = z.$current.name
|
932
|
+
}
|
933
|
+
var e = m(a, d.relative);
|
934
|
+
if (!N(e)) return c;
|
935
|
+
if (!N(z.$current.includes[e.name])) return !1;
|
936
|
+
if (!b) return !0;
|
937
|
+
for (var f = g(b), h = 0; h < f.length; h++) {
|
938
|
+
var i = f[h],
|
939
|
+
j = e.params[i];
|
940
|
+
if (j && !j.type.equals(l[i], b[i])) return !1
|
941
|
+
}
|
942
|
+
return g(b).reduce(function(a, c) {
|
943
|
+
var d = e.params[c];
|
944
|
+
return a && !d || d.type.equals(l[c], b[c])
|
945
|
+
}, !0)
|
946
|
+
}, z.href = function(a, b, d) {
|
947
|
+
d = T({
|
948
|
+
lossy: !0,
|
949
|
+
inherit: !0,
|
950
|
+
absolute: !1,
|
951
|
+
relative: z.$current
|
952
|
+
}, d || {});
|
953
|
+
var e = m(a, d.relative);
|
954
|
+
if (!N(e)) return null;
|
955
|
+
d.inherit && (b = i(l, b || {}, z.$current, e));
|
956
|
+
var f = e && d.lossy ? e.navigable : e;
|
957
|
+
return f && f.url !== c && null !== f.url ? n.href(f.url, k(e.params.$$keys().concat("#"), b || {}), {
|
958
|
+
absolute: d.absolute
|
959
|
+
}) : null
|
960
|
+
}, z.get = function(a, b) {
|
961
|
+
if (0 === arguments.length) return o(g(A), function(a) {
|
962
|
+
return A[a].self
|
963
|
+
});
|
964
|
+
var c = m(a, b || z.$current);
|
965
|
+
return c && c.self ? c.self : null
|
966
|
+
}, z
|
967
|
+
}
|
968
|
+
|
969
|
+
function x(a, b, c, d, e, f) {
|
970
|
+
function g(a, b, c) {
|
971
|
+
function d(b) {
|
972
|
+
return "search" != a.params[b].location
|
973
|
+
}
|
974
|
+
var e = a.params.$$keys().filter(d),
|
975
|
+
f = l.apply({}, [a.params].concat(e)),
|
976
|
+
g = new W.ParamSet(f);
|
977
|
+
return g.$$equals(b, c)
|
978
|
+
}
|
979
|
+
if (!f.reload && a === c && (e === c.locals || a.self.reloadOnSearch === !1 && g(c, d, b))) return !0
|
980
|
+
}
|
981
|
+
var y, z, A = {},
|
982
|
+
B = {},
|
983
|
+
C = "abstract",
|
984
|
+
D = {
|
985
|
+
parent: function(a) {
|
986
|
+
if (N(a.parent) && a.parent) return m(a.parent);
|
987
|
+
var b = /^(.+)\.[^.]+$/.exec(a.name);
|
988
|
+
return b ? m(b[1]) : y
|
989
|
+
},
|
990
|
+
data: function(a) {
|
991
|
+
return a.parent && a.parent.data && (a.data = a.self.data = d(a.parent.data, a.data)), a.data
|
992
|
+
},
|
993
|
+
url: function(a) {
|
994
|
+
var b = a.url,
|
995
|
+
c = {
|
996
|
+
params: a.params || {}
|
997
|
+
};
|
998
|
+
if (P(b)) return "^" == b.charAt(0) ? e.compile(b.substring(1), c) : (a.parent.navigable || y).url.concat(b, c);
|
999
|
+
if (!b || e.isMatcher(b)) return b;
|
1000
|
+
throw new Error("Invalid url '" + b + "' in state '" + a + "'")
|
1001
|
+
},
|
1002
|
+
navigable: function(a) {
|
1003
|
+
return a.url ? a : a.parent ? a.parent.navigable : null
|
1004
|
+
},
|
1005
|
+
ownParams: function(a) {
|
1006
|
+
var b = a.url && a.url.params || new W.ParamSet;
|
1007
|
+
return S(a.params || {}, function(a, c) {
|
1008
|
+
b[c] || (b[c] = new W.Param(c, null, a, "config"))
|
1009
|
+
}), b
|
1010
|
+
},
|
1011
|
+
params: function(a) {
|
1012
|
+
var b = l(a.ownParams, a.ownParams.$$keys());
|
1013
|
+
return a.parent && a.parent.params ? T(a.parent.params.$$new(), b) : new W.ParamSet
|
1014
|
+
},
|
1015
|
+
views: function(a) {
|
1016
|
+
var b = {};
|
1017
|
+
return S(N(a.views) ? a.views : {
|
1018
|
+
"": a
|
1019
|
+
}, function(c, d) {
|
1020
|
+
d.indexOf("@") < 0 && (d += "@" + a.parent.name), c.resolveAs = c.resolveAs || a.resolveAs || "$resolve", b[d] = c
|
1021
|
+
}), b
|
1022
|
+
},
|
1023
|
+
path: function(a) {
|
1024
|
+
return a.parent ? a.parent.path.concat(a) : []
|
1025
|
+
},
|
1026
|
+
includes: function(a) {
|
1027
|
+
var b = a.parent ? T({}, a.parent.includes) : {};
|
1028
|
+
return b[a.name] = !0, b
|
1029
|
+
},
|
1030
|
+
$delegates: {}
|
1031
|
+
};
|
1032
|
+
y = r({
|
1033
|
+
name: "",
|
1034
|
+
url: "^",
|
1035
|
+
views: null,
|
1036
|
+
abstract: !0
|
1037
|
+
}), y.navigable = null, this.decorator = u, this.state = v, this.$get = w, w.$inject = ["$rootScope", "$q", "$view", "$injector", "$resolve", "$stateParams", "$urlRouter", "$location", "$urlMatcherFactory"]
|
1038
|
+
}
|
1039
|
+
|
1040
|
+
function y() {
|
1041
|
+
function a(a, b) {
|
1042
|
+
return {
|
1043
|
+
load: function(a, c) {
|
1044
|
+
var d, e = {
|
1045
|
+
template: null,
|
1046
|
+
controller: null,
|
1047
|
+
view: null,
|
1048
|
+
locals: null,
|
1049
|
+
notify: !0,
|
1050
|
+
async: !0,
|
1051
|
+
params: {}
|
1052
|
+
};
|
1053
|
+
return c = T(e, c), c.view && (d = b.fromConfig(c.view, c.params, c.locals)), d
|
1054
|
+
}
|
1055
|
+
}
|
1056
|
+
}
|
1057
|
+
this.$get = a, a.$inject = ["$rootScope", "$templateFactory"]
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
function z() {
|
1061
|
+
var a = !1;
|
1062
|
+
this.useAnchorScroll = function() {
|
1063
|
+
a = !0
|
1064
|
+
}, this.$get = ["$anchorScroll", "$timeout", function(b, c) {
|
1065
|
+
return a ? b : function(a) {
|
1066
|
+
return c(function() {
|
1067
|
+
a[0].scrollIntoView()
|
1068
|
+
}, 0, !1)
|
1069
|
+
}
|
1070
|
+
}]
|
1071
|
+
}
|
1072
|
+
|
1073
|
+
function A(a, c, d, e, f) {
|
1074
|
+
function g() {
|
1075
|
+
return c.has ? function(a) {
|
1076
|
+
return c.has(a) ? c.get(a) : null
|
1077
|
+
} : function(a) {
|
1078
|
+
try {
|
1079
|
+
return c.get(a)
|
1080
|
+
} catch (a) {
|
1081
|
+
return null
|
1082
|
+
}
|
1083
|
+
}
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
function h(a, c) {
|
1087
|
+
var d = function() {
|
1088
|
+
return {
|
1089
|
+
enter: function(a, b, c) {
|
1090
|
+
b.after(a), c()
|
1091
|
+
},
|
1092
|
+
leave: function(a, b) {
|
1093
|
+
a.remove(), b()
|
1094
|
+
}
|
1095
|
+
}
|
1096
|
+
};
|
1097
|
+
if (k) return {
|
1098
|
+
enter: function(a, c, d) {
|
1099
|
+
b.version.minor > 2 ? k.enter(a, null, c).then(d) : k.enter(a, null, c, d)
|
1100
|
+
},
|
1101
|
+
leave: function(a, c) {
|
1102
|
+
b.version.minor > 2 ? k.leave(a).then(c) : k.leave(a, c)
|
1103
|
+
}
|
1104
|
+
};
|
1105
|
+
if (j) {
|
1106
|
+
var e = j && j(c, a);
|
1107
|
+
return {
|
1108
|
+
enter: function(a, b, c) {
|
1109
|
+
e.enter(a, null, b), c()
|
1110
|
+
},
|
1111
|
+
leave: function(a, b) {
|
1112
|
+
e.leave(a), b()
|
1113
|
+
}
|
1114
|
+
}
|
1115
|
+
}
|
1116
|
+
return d()
|
1117
|
+
}
|
1118
|
+
var i = g(),
|
1119
|
+
j = i("$animator"),
|
1120
|
+
k = i("$animate"),
|
1121
|
+
l = {
|
1122
|
+
restrict: "ECA",
|
1123
|
+
terminal: !0,
|
1124
|
+
priority: 400,
|
1125
|
+
transclude: "element",
|
1126
|
+
compile: function(c, g, i) {
|
1127
|
+
return function(c, g, j) {
|
1128
|
+
function k() {
|
1129
|
+
if (m && (m.remove(), m = null), o && (o.$destroy(), o = null), n) {
|
1130
|
+
var a = n.data("$uiViewAnim");
|
1131
|
+
s.leave(n, function() {
|
1132
|
+
a.$$animLeave.resolve(), m = null
|
1133
|
+
}), m = n, n = null
|
1134
|
+
}
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
function l(h) {
|
1138
|
+
var l, m = C(c, j, g, e),
|
1139
|
+
t = m && a.$current && a.$current.locals[m];
|
1140
|
+
if (h || t !== p) {
|
1141
|
+
l = c.$new(), p = a.$current.locals[m], l.$emit("$viewContentLoading", m);
|
1142
|
+
var u = i(l, function(a) {
|
1143
|
+
var e = f.defer(),
|
1144
|
+
h = f.defer(),
|
1145
|
+
i = {
|
1146
|
+
$animEnter: e.promise,
|
1147
|
+
$animLeave: h.promise,
|
1148
|
+
$$animLeave: h
|
1149
|
+
};
|
1150
|
+
a.data("$uiViewAnim", i), s.enter(a, g, function() {
|
1151
|
+
e.resolve(), o && o.$emit("$viewContentAnimationEnded"), (b.isDefined(r) && !r || c.$eval(r)) && d(a)
|
1152
|
+
}), k()
|
1153
|
+
});
|
1154
|
+
n = u, o = l, o.$emit("$viewContentLoaded", m), o.$eval(q)
|
1155
|
+
}
|
1156
|
+
}
|
1157
|
+
var m, n, o, p, q = j.onload || "",
|
1158
|
+
r = j.autoscroll,
|
1159
|
+
s = h(j, c);
|
1160
|
+
g.inheritedData("$uiView");
|
1161
|
+
c.$on("$stateChangeSuccess", function() {
|
1162
|
+
l(!1)
|
1163
|
+
}), l(!0)
|
1164
|
+
}
|
1165
|
+
}
|
1166
|
+
};
|
1167
|
+
return l
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
function B(a, c, d, e) {
|
1171
|
+
return {
|
1172
|
+
restrict: "ECA",
|
1173
|
+
priority: -400,
|
1174
|
+
compile: function(f) {
|
1175
|
+
var g = f.html();
|
1176
|
+
return f.empty ? f.empty() : f[0].innerHTML = null,
|
1177
|
+
function(f, h, i) {
|
1178
|
+
var j = d.$current,
|
1179
|
+
k = C(f, i, h, e),
|
1180
|
+
l = j && j.locals[k];
|
1181
|
+
if (!l) return h.html(g), void a(h.contents())(f);
|
1182
|
+
h.data("$uiView", {
|
1183
|
+
name: k,
|
1184
|
+
state: l.$$state
|
1185
|
+
}), h.html(l.$template ? l.$template : g);
|
1186
|
+
var m = b.extend({}, l);
|
1187
|
+
f[l.$$resolveAs] = m;
|
1188
|
+
var n = a(h.contents());
|
1189
|
+
if (l.$$controller) {
|
1190
|
+
l.$scope = f, l.$element = h;
|
1191
|
+
var o = c(l.$$controller, l);
|
1192
|
+
l.$$controllerAs && (f[l.$$controllerAs] = o, f[l.$$controllerAs][l.$$resolveAs] = m), O(o.$onInit) && o.$onInit(), h.data("$ngControllerController", o), h.children().data("$ngControllerController", o)
|
1193
|
+
}
|
1194
|
+
n(f)
|
1195
|
+
}
|
1196
|
+
}
|
1197
|
+
}
|
1198
|
+
}
|
1199
|
+
|
1200
|
+
function C(a, b, c, d) {
|
1201
|
+
var e = d(b.uiView || b.name || "")(a),
|
1202
|
+
f = c.inheritedData("$uiView");
|
1203
|
+
return e.indexOf("@") >= 0 ? e : e + "@" + (f ? f.state.name : "")
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
function D(a, b) {
|
1207
|
+
var c, d = a.match(/^\s*({[^}]*})\s*$/);
|
1208
|
+
if (d && (a = b + "(" + d[1] + ")"), c = a.replace(/\n/g, " ").match(/^([^(]+?)\s*(\((.*)\))?$/), !c || 4 !== c.length) throw new Error("Invalid state ref '" + a + "'");
|
1209
|
+
return {
|
1210
|
+
state: c[1],
|
1211
|
+
paramExpr: c[3] || null
|
1212
|
+
}
|
1213
|
+
}
|
1214
|
+
|
1215
|
+
function E(a) {
|
1216
|
+
var b = a.parent().inheritedData("$uiView");
|
1217
|
+
if (b && b.state && b.state.name) return b.state
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
function F(a) {
|
1221
|
+
var b = "[object SVGAnimatedString]" === Object.prototype.toString.call(a.prop("href")),
|
1222
|
+
c = "FORM" === a[0].nodeName;
|
1223
|
+
return {
|
1224
|
+
attr: c ? "action" : b ? "xlink:href" : "href",
|
1225
|
+
isAnchor: "A" === a.prop("tagName").toUpperCase(),
|
1226
|
+
clickable: !c
|
1227
|
+
}
|
1228
|
+
}
|
1229
|
+
|
1230
|
+
function G(a, b, c, d, e) {
|
1231
|
+
return function(f) {
|
1232
|
+
var g = f.which || f.button,
|
1233
|
+
h = e();
|
1234
|
+
if (!(g > 1 || f.ctrlKey || f.metaKey || f.shiftKey || a.attr("target"))) {
|
1235
|
+
var i = c(function() {
|
1236
|
+
b.go(h.state, h.params, h.options)
|
1237
|
+
});
|
1238
|
+
f.preventDefault();
|
1239
|
+
var j = d.isAnchor && !h.href ? 1 : 0;
|
1240
|
+
f.preventDefault = function() {
|
1241
|
+
j-- <= 0 && c.cancel(i)
|
1242
|
+
}
|
1243
|
+
}
|
1244
|
+
}
|
1245
|
+
}
|
1246
|
+
|
1247
|
+
function H(a, b) {
|
1248
|
+
return {
|
1249
|
+
relative: E(a) || b.$current,
|
1250
|
+
inherit: !0
|
1251
|
+
}
|
1252
|
+
}
|
1253
|
+
|
1254
|
+
function I(a, c) {
|
1255
|
+
return {
|
1256
|
+
restrict: "A",
|
1257
|
+
require: ["?^uiSrefActive", "?^uiSrefActiveEq"],
|
1258
|
+
link: function(d, e, f, g) {
|
1259
|
+
var h, i = D(f.uiSref, a.current.name),
|
1260
|
+
j = {
|
1261
|
+
state: i.state,
|
1262
|
+
href: null,
|
1263
|
+
params: null
|
1264
|
+
},
|
1265
|
+
k = F(e),
|
1266
|
+
l = g[1] || g[0],
|
1267
|
+
m = null;
|
1268
|
+
j.options = T(H(e, a), f.uiSrefOpts ? d.$eval(f.uiSrefOpts) : {});
|
1269
|
+
var n = function(c) {
|
1270
|
+
c && (j.params = b.copy(c)), j.href = a.href(i.state, j.params, j.options), m && m(), l && (m = l.$$addStateInfo(i.state, j.params)), null !== j.href && f.$set(k.attr, j.href)
|
1271
|
+
};
|
1272
|
+
i.paramExpr && (d.$watch(i.paramExpr, function(a) {
|
1273
|
+
a !== j.params && n(a)
|
1274
|
+
}, !0), j.params = b.copy(d.$eval(i.paramExpr))), n(), k.clickable && (h = G(e, a, c, k, function() {
|
1275
|
+
return j
|
1276
|
+
}), e[e.on ? "on" : "bind"]("click", h), d.$on("$destroy", function() {
|
1277
|
+
e[e.off ? "off" : "unbind"]("click", h)
|
1278
|
+
}))
|
1279
|
+
}
|
1280
|
+
}
|
1281
|
+
}
|
1282
|
+
|
1283
|
+
function J(a, b) {
|
1284
|
+
return {
|
1285
|
+
restrict: "A",
|
1286
|
+
require: ["?^uiSrefActive", "?^uiSrefActiveEq"],
|
1287
|
+
link: function(c, d, e, f) {
|
1288
|
+
function g(b) {
|
1289
|
+
m.state = b[0], m.params = b[1], m.options = b[2], m.href = a.href(m.state, m.params, m.options), n && n(), j && (n = j.$$addStateInfo(m.state, m.params)), m.href && e.$set(i.attr, m.href)
|
1290
|
+
}
|
1291
|
+
var h, i = F(d),
|
1292
|
+
j = f[1] || f[0],
|
1293
|
+
k = [e.uiState, e.uiStateParams || null, e.uiStateOpts || null],
|
1294
|
+
l = "[" + k.map(function(a) {
|
1295
|
+
return a || "null"
|
1296
|
+
}).join(", ") + "]",
|
1297
|
+
m = {
|
1298
|
+
state: null,
|
1299
|
+
params: null,
|
1300
|
+
options: null,
|
1301
|
+
href: null
|
1302
|
+
},
|
1303
|
+
n = null;
|
1304
|
+
c.$watch(l, g, !0), g(c.$eval(l)), i.clickable && (h = G(d, a, b, i, function() {
|
1305
|
+
return m
|
1306
|
+
}), d[d.on ? "on" : "bind"]("click", h), c.$on("$destroy", function() {
|
1307
|
+
d[d.off ? "off" : "unbind"]("click", h)
|
1308
|
+
}))
|
1309
|
+
}
|
1310
|
+
}
|
1311
|
+
}
|
1312
|
+
|
1313
|
+
function K(a, b, c) {
|
1314
|
+
return {
|
1315
|
+
restrict: "A",
|
1316
|
+
controller: ["$scope", "$element", "$attrs", "$timeout", function(b, d, e, f) {
|
1317
|
+
function g(b, c, e) {
|
1318
|
+
var f = a.get(b, E(d)),
|
1319
|
+
g = h(b, c),
|
1320
|
+
i = {
|
1321
|
+
state: f || {
|
1322
|
+
name: b
|
1323
|
+
},
|
1324
|
+
params: c,
|
1325
|
+
hash: g
|
1326
|
+
};
|
1327
|
+
return p.push(i), q[g] = e,
|
1328
|
+
function() {
|
1329
|
+
var a = p.indexOf(i);
|
1330
|
+
a !== -1 && p.splice(a, 1)
|
1331
|
+
}
|
1332
|
+
}
|
1333
|
+
|
1334
|
+
function h(a, c) {
|
1335
|
+
if (!P(a)) throw new Error("state should be a string");
|
1336
|
+
return Q(c) ? a + V(c) : (c = b.$eval(c), Q(c) ? a + V(c) : a)
|
1337
|
+
}
|
1338
|
+
|
1339
|
+
function i() {
|
1340
|
+
for (var a = 0; a < p.length; a++) l(p[a].state, p[a].params) ? j(d, q[p[a].hash]) : k(d, q[p[a].hash]), m(p[a].state, p[a].params) ? j(d, n) : k(d, n)
|
1341
|
+
}
|
1342
|
+
|
1343
|
+
function j(a, b) {
|
1344
|
+
f(function() {
|
1345
|
+
a.addClass(b)
|
1346
|
+
})
|
1347
|
+
}
|
1348
|
+
|
1349
|
+
function k(a, b) {
|
1350
|
+
a.removeClass(b)
|
1351
|
+
}
|
1352
|
+
|
1353
|
+
function l(b, c) {
|
1354
|
+
return a.includes(b.name, c)
|
1355
|
+
}
|
1356
|
+
|
1357
|
+
function m(b, c) {
|
1358
|
+
return a.is(b.name, c)
|
1359
|
+
}
|
1360
|
+
var n, o, p = [],
|
1361
|
+
q = {};
|
1362
|
+
n = c(e.uiSrefActiveEq || "", !1)(b);
|
1363
|
+
try {
|
1364
|
+
o = b.$eval(e.uiSrefActive)
|
1365
|
+
} catch (a) {}
|
1366
|
+
o = o || c(e.uiSrefActive || "", !1)(b), Q(o) && S(o, function(c, d) {
|
1367
|
+
if (P(c)) {
|
1368
|
+
var e = D(c, a.current.name);
|
1369
|
+
g(e.state, b.$eval(e.paramExpr), d)
|
1370
|
+
}
|
1371
|
+
}), this.$$addStateInfo = function(a, b) {
|
1372
|
+
if (!(Q(o) && p.length > 0)) {
|
1373
|
+
var c = g(a, b, o);
|
1374
|
+
return i(), c
|
1375
|
+
}
|
1376
|
+
}, b.$on("$stateChangeSuccess", i), i()
|
1377
|
+
}]
|
1378
|
+
}
|
1379
|
+
}
|
1380
|
+
|
1381
|
+
function L(a) {
|
1382
|
+
var b = function(b, c) {
|
1383
|
+
return a.is(b, c)
|
1384
|
+
};
|
1385
|
+
return b.$stateful = !0, b
|
1386
|
+
}
|
1387
|
+
|
1388
|
+
function M(a) {
|
1389
|
+
var b = function(b, c, d) {
|
1390
|
+
return a.includes(b, c, d)
|
1391
|
+
};
|
1392
|
+
return b.$stateful = !0, b
|
1393
|
+
}
|
1394
|
+
var N = b.isDefined,
|
1395
|
+
O = b.isFunction,
|
1396
|
+
P = b.isString,
|
1397
|
+
Q = b.isObject,
|
1398
|
+
R = b.isArray,
|
1399
|
+
S = b.forEach,
|
1400
|
+
T = b.extend,
|
1401
|
+
U = b.copy,
|
1402
|
+
V = b.toJson;
|
1403
|
+
b.module("ui.router.util", ["ng"]), b.module("ui.router.router", ["ui.router.util"]), b.module("ui.router.state", ["ui.router.router", "ui.router.util"]), b.module("ui.router", ["ui.router.state"]), b.module("ui.router.compat", ["ui.router"]), q.$inject = ["$q", "$injector"], b.module("ui.router.util").service("$resolve", q), b.module("ui.router.util").provider("$templateFactory", r);
|
1404
|
+
var W;
|
1405
|
+
t.prototype.concat = function(a, b) {
|
1406
|
+
var c = {
|
1407
|
+
caseInsensitive: W.caseInsensitive(),
|
1408
|
+
strict: W.strictMode(),
|
1409
|
+
squash: W.defaultSquashPolicy()
|
1410
|
+
};
|
1411
|
+
return new t(this.sourcePath + a + this.sourceSearch, T(c, b), this)
|
1412
|
+
}, t.prototype.toString = function() {
|
1413
|
+
return this.source
|
1414
|
+
}, t.prototype.exec = function(a, b) {
|
1415
|
+
function c(a) {
|
1416
|
+
function b(a) {
|
1417
|
+
return a.split("").reverse().join("")
|
1418
|
+
}
|
1419
|
+
|
1420
|
+
function c(a) {
|
1421
|
+
return a.replace(/\\-/g, "-")
|
1422
|
+
}
|
1423
|
+
var d = b(a).split(/-(?!\\)/),
|
1424
|
+
e = o(d, b);
|
1425
|
+
return o(e, c).reverse()
|
1426
|
+
}
|
1427
|
+
var d = this.regexp.exec(a);
|
1428
|
+
if (!d) return null;
|
1429
|
+
b = b || {};
|
1430
|
+
var e, f, g, h = this.parameters(),
|
1431
|
+
i = h.length,
|
1432
|
+
j = this.segments.length - 1,
|
1433
|
+
k = {};
|
1434
|
+
if (j !== d.length - 1) throw new Error("Unbalanced capture group in route '" + this.source + "'");
|
1435
|
+
var l, m;
|
1436
|
+
for (e = 0; e < j; e++) {
|
1437
|
+
for (g = h[e], l = this.params[g], m = d[e + 1], f = 0; f < l.replace.length; f++) l.replace[f].from === m && (m = l.replace[f].to);
|
1438
|
+
m && l.array === !0 && (m = c(m)), N(m) && (m = l.type.decode(m)), k[g] = l.value(m)
|
1439
|
+
}
|
1440
|
+
for (; e < i; e++) {
|
1441
|
+
for (g = h[e], k[g] = this.params[g].value(b[g]), l = this.params[g], m = b[g], f = 0; f < l.replace.length; f++) l.replace[f].from === m && (m = l.replace[f].to);
|
1442
|
+
N(m) && (m = l.type.decode(m)), k[g] = l.value(m)
|
1443
|
+
}
|
1444
|
+
return k
|
1445
|
+
}, t.prototype.parameters = function(a) {
|
1446
|
+
return N(a) ? this.params[a] || null : this.$$paramNames
|
1447
|
+
}, t.prototype.validates = function(a) {
|
1448
|
+
return this.params.$$validates(a)
|
1449
|
+
}, t.prototype.format = function(a) {
|
1450
|
+
function b(a) {
|
1451
|
+
return encodeURIComponent(a).replace(/-/g, function(a) {
|
1452
|
+
return "%5C%" + a.charCodeAt(0).toString(16).toUpperCase()
|
1453
|
+
})
|
1454
|
+
}
|
1455
|
+
a = a || {};
|
1456
|
+
var c = this.segments,
|
1457
|
+
d = this.parameters(),
|
1458
|
+
e = this.params;
|
1459
|
+
if (!this.validates(a)) return null;
|
1460
|
+
var f, g = !1,
|
1461
|
+
h = c.length - 1,
|
1462
|
+
i = d.length,
|
1463
|
+
j = c[0];
|
1464
|
+
for (f = 0; f < i; f++) {
|
1465
|
+
var k = f < h,
|
1466
|
+
l = d[f],
|
1467
|
+
m = e[l],
|
1468
|
+
n = m.value(a[l]),
|
1469
|
+
p = m.isOptional && m.type.equals(m.value(), n),
|
1470
|
+
q = !!p && m.squash,
|
1471
|
+
r = m.type.encode(n);
|
1472
|
+
if (k) {
|
1473
|
+
var s = c[f + 1],
|
1474
|
+
t = f + 1 === h;
|
1475
|
+
if (q === !1) null != r && (j += R(r) ? o(r, b).join("-") : encodeURIComponent(r)), j += s;
|
1476
|
+
else if (q === !0) {
|
1477
|
+
var u = j.match(/\/$/) ? /\/?(.*)/ : /(.*)/;
|
1478
|
+
j += s.match(u)[1]
|
1479
|
+
} else P(q) && (j += q + s);
|
1480
|
+
t && m.squash === !0 && "/" === j.slice(-1) && (j = j.slice(0, -1))
|
1481
|
+
} else {
|
1482
|
+
if (null == r || p && q !== !1) continue;
|
1483
|
+
if (R(r) || (r = [r]), 0 === r.length) continue;
|
1484
|
+
r = o(r, encodeURIComponent).join("&" + l + "="), j += (g ? "&" : "?") + (l + "=" + r), g = !0
|
1485
|
+
}
|
1486
|
+
}
|
1487
|
+
return j
|
1488
|
+
}, u.prototype.is = function(a, b) {
|
1489
|
+
return !0
|
1490
|
+
}, u.prototype.encode = function(a, b) {
|
1491
|
+
return a
|
1492
|
+
}, u.prototype.decode = function(a, b) {
|
1493
|
+
return a
|
1494
|
+
}, u.prototype.equals = function(a, b) {
|
1495
|
+
return a == b
|
1496
|
+
}, u.prototype.$subPattern = function() {
|
1497
|
+
var a = this.pattern.toString();
|
1498
|
+
return a.substr(1, a.length - 2)
|
1499
|
+
}, u.prototype.pattern = /.*/, u.prototype.toString = function() {
|
1500
|
+
return "{Type:" + this.name + "}"
|
1501
|
+
}, u.prototype.$normalize = function(a) {
|
1502
|
+
return this.is(a) ? a : this.decode(a)
|
1503
|
+
}, u.prototype.$asArray = function(a, b) {
|
1504
|
+
function d(a, b) {
|
1505
|
+
function d(a, b) {
|
1506
|
+
return function() {
|
1507
|
+
return a[b].apply(a, arguments)
|
1508
|
+
}
|
1509
|
+
}
|
1510
|
+
|
1511
|
+
function e(a) {
|
1512
|
+
return R(a) ? a : N(a) ? [a] : []
|
1513
|
+
}
|
1514
|
+
|
1515
|
+
function f(a) {
|
1516
|
+
switch (a.length) {
|
1517
|
+
case 0:
|
1518
|
+
return c;
|
1519
|
+
case 1:
|
1520
|
+
return "auto" === b ? a[0] : a;
|
1521
|
+
default:
|
1522
|
+
return a
|
1523
|
+
}
|
1524
|
+
}
|
1525
|
+
|
1526
|
+
function g(a) {
|
1527
|
+
return !a
|
1528
|
+
}
|
1529
|
+
|
1530
|
+
function h(a, b) {
|
1531
|
+
return function(c) {
|
1532
|
+
if (R(c) && 0 === c.length) return c;
|
1533
|
+
c = e(c);
|
1534
|
+
var d = o(c, a);
|
1535
|
+
return b === !0 ? 0 === n(d, g).length : f(d)
|
1536
|
+
}
|
1537
|
+
}
|
1538
|
+
|
1539
|
+
function i(a) {
|
1540
|
+
return function(b, c) {
|
1541
|
+
var d = e(b),
|
1542
|
+
f = e(c);
|
1543
|
+
if (d.length !== f.length) return !1;
|
1544
|
+
for (var g = 0; g < d.length; g++)
|
1545
|
+
if (!a(d[g], f[g])) return !1;
|
1546
|
+
return !0
|
1547
|
+
}
|
1548
|
+
}
|
1549
|
+
this.encode = h(d(a, "encode")), this.decode = h(d(a, "decode")), this.is = h(d(a, "is"), !0), this.equals = i(d(a, "equals")), this.pattern = a.pattern, this.$normalize = h(d(a, "$normalize")), this.name = a.name, this.$arrayMode = b
|
1550
|
+
}
|
1551
|
+
if (!a) return this;
|
1552
|
+
if ("auto" === a && !b) throw new Error("'auto' array mode is for query parameters only");
|
1553
|
+
return new d(this, a)
|
1554
|
+
}, b.module("ui.router.util").provider("$urlMatcherFactory", v), b.module("ui.router.util").run(["$urlMatcherFactory", function(a) {}]), w.$inject = ["$locationProvider", "$urlMatcherFactoryProvider"], b.module("ui.router.router").provider("$urlRouter", w), x.$inject = ["$urlRouterProvider", "$urlMatcherFactoryProvider"], b.module("ui.router.state").factory("$stateParams", function() {
|
1555
|
+
return {}
|
1556
|
+
}).constant("$state.runtime", {
|
1557
|
+
autoinject: !0
|
1558
|
+
}).provider("$state", x).run(["$injector", function(a) {
|
1559
|
+
a.get("$state.runtime").autoinject && a.get("$state")
|
1560
|
+
}]), y.$inject = [], b.module("ui.router.state").provider("$view", y), b.module("ui.router.state").provider("$uiViewScroll", z), A.$inject = ["$state", "$injector", "$uiViewScroll", "$interpolate", "$q"], B.$inject = ["$compile", "$controller", "$state", "$interpolate"], b.module("ui.router.state").directive("uiView", A), b.module("ui.router.state").directive("uiView", B), I.$inject = ["$state", "$timeout"], J.$inject = ["$state", "$timeout"], K.$inject = ["$state", "$stateParams", "$interpolate"], b.module("ui.router.state").directive("uiSref", I).directive("uiSrefActive", K).directive("uiSrefActiveEq", K).directive("uiState", J), L.$inject = ["$state"], M.$inject = ["$state"], b.module("ui.router.state").filter("isState", L).filter("includedByState", M)
|
1561
|
+
}(window, window.angular);
|