spree_razorpay 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +79 -70
- data/app/assets/javascripts/spree/frontend/checkout.js +1 -0
- data/app/assets/javascripts/spree/frontend/jquery-1.12.4.min.js +5 -0
- data/app/assets/javascripts/spree/frontend/jquery.blockUI.js +620 -0
- data/app/views/spree/checkout/payment/_razorpay.html.erb +16 -17
- data/lib/generators/spree_razorpay/install/install_generator.rb +6 -0
- data/lib/spree_razorpay/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f5dc3317cc1ea898ec2753d558512a01d38630a13b0c99d6fbf0e70c5d25ab6
|
4
|
+
data.tar.gz: 3433413904c4b90f0e638ab5b8722304a470254096e81f3e7d8169b1b187158b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 932ce916fe6af190f2bdc561362822b259a70866ae2fb6d1d081ad91cb0f14770a610a7ce7a69682d609d2aba2bbd974318c2e4554f137bfcfcb3b8f78eb1b42
|
7
|
+
data.tar.gz: 45528df1e376b8cf0840821bbed1d119cb8520ebf1df6fb56d6e745c3c66581516b57f232080f4100dedaba61dcc57b47671a2099f91f6e11320d242c78eea5f
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
spree_razorpay (0.2.
|
4
|
+
spree_razorpay (0.2.2)
|
5
5
|
razorpay
|
6
6
|
spree_core
|
7
7
|
|
@@ -34,7 +34,7 @@ GEM
|
|
34
34
|
activejob (5.2.3)
|
35
35
|
activesupport (= 5.2.3)
|
36
36
|
globalid (>= 0.3.6)
|
37
|
-
activemerchant (1.
|
37
|
+
activemerchant (1.100.0)
|
38
38
|
activesupport (>= 4.2)
|
39
39
|
builder (>= 2.1.2, < 4.0.0)
|
40
40
|
i18n (>= 0.6.9)
|
@@ -58,14 +58,14 @@ GEM
|
|
58
58
|
activerecord (~> 5.0)
|
59
59
|
acts_as_list (0.9.19)
|
60
60
|
activerecord (>= 3.0)
|
61
|
-
addressable (2.
|
62
|
-
public_suffix (>= 2.0.2, <
|
61
|
+
addressable (2.7.0)
|
62
|
+
public_suffix (>= 2.0.2, < 5.0)
|
63
63
|
arel (9.0.0)
|
64
|
-
autoprefixer-rails (9.
|
64
|
+
autoprefixer-rails (9.7.1)
|
65
65
|
execjs
|
66
66
|
awesome_nested_set (3.1.4)
|
67
67
|
activerecord (>= 4.0.0, < 5.3)
|
68
|
-
bcrypt (3.1.
|
68
|
+
bcrypt (3.1.13)
|
69
69
|
bootstrap-sass (3.4.1)
|
70
70
|
autoprefixer-rails (>= 5.2.1)
|
71
71
|
sassc (>= 2.0.0)
|
@@ -73,7 +73,7 @@ GEM
|
|
73
73
|
byebug (11.0.1)
|
74
74
|
camertron-eprun (1.1.1)
|
75
75
|
cancancan (2.3.0)
|
76
|
-
canonical-rails (0.2.
|
76
|
+
canonical-rails (0.2.6)
|
77
77
|
rails (>= 4.1, < 6.1)
|
78
78
|
carmen (1.0.2)
|
79
79
|
activesupport (>= 3.0.0)
|
@@ -87,49 +87,49 @@ GEM
|
|
87
87
|
execjs
|
88
88
|
coffee-script-source (1.12.2)
|
89
89
|
concurrent-ruby (1.1.5)
|
90
|
-
crass (1.0.
|
90
|
+
crass (1.0.5)
|
91
91
|
css_parser (1.7.0)
|
92
92
|
addressable
|
93
93
|
database_cleaner (1.7.0)
|
94
|
-
deface (1.3
|
94
|
+
deface (1.5.3)
|
95
95
|
nokogiri (>= 1.6)
|
96
96
|
polyglot
|
97
97
|
rails (>= 4.1)
|
98
98
|
rainbow (>= 2.1.0)
|
99
|
-
devise (4.
|
99
|
+
devise (4.7.1)
|
100
100
|
bcrypt (~> 3.0)
|
101
101
|
orm_adapter (~> 0.1)
|
102
|
-
railties (>= 4.1.0
|
102
|
+
railties (>= 4.1.0)
|
103
103
|
responders
|
104
104
|
warden (~> 1.2.3)
|
105
105
|
devise-encryptable (0.2.0)
|
106
106
|
devise (>= 2.1.0)
|
107
107
|
diff-lcs (1.3)
|
108
|
-
doorkeeper (5.1
|
108
|
+
doorkeeper (5.2.1)
|
109
109
|
railties (>= 5)
|
110
|
-
erubi (1.
|
110
|
+
erubi (1.9.0)
|
111
111
|
execjs (2.7.0)
|
112
|
-
factory_bot (5.
|
112
|
+
factory_bot (5.1.1)
|
113
113
|
activesupport (>= 4.2.0)
|
114
|
-
factory_bot_rails (5.
|
115
|
-
factory_bot (~> 5.0
|
114
|
+
factory_bot_rails (5.1.1)
|
115
|
+
factory_bot (~> 5.1.0)
|
116
116
|
railties (>= 4.2.0)
|
117
117
|
fast_jsonapi (1.5)
|
118
118
|
activesupport (>= 4.2)
|
119
|
-
ffaker (2.
|
120
|
-
ffi (1.
|
119
|
+
ffaker (2.13.0)
|
120
|
+
ffi (1.11.1)
|
121
121
|
friendly_id (5.2.5)
|
122
122
|
activerecord (>= 4.0.0)
|
123
123
|
globalid (0.4.2)
|
124
124
|
activesupport (>= 4.2.0)
|
125
|
-
highline (2.0.
|
125
|
+
highline (2.0.3)
|
126
126
|
htmlentities (4.3.4)
|
127
|
-
httparty (0.17.
|
127
|
+
httparty (0.17.1)
|
128
128
|
mime-types (~> 3.0)
|
129
129
|
multi_xml (>= 0.5.2)
|
130
|
-
i18n (1.
|
130
|
+
i18n (1.7.0)
|
131
131
|
concurrent-ruby (~> 1.0)
|
132
|
-
jquery-rails (4.3.
|
132
|
+
jquery-rails (4.3.5)
|
133
133
|
rails-dom-testing (>= 1, < 3)
|
134
134
|
railties (>= 4.2.0)
|
135
135
|
thor (>= 0.14, < 2.0)
|
@@ -145,7 +145,7 @@ GEM
|
|
145
145
|
activerecord
|
146
146
|
kaminari-core (= 1.0.1)
|
147
147
|
kaminari-core (1.0.1)
|
148
|
-
loofah (2.
|
148
|
+
loofah (2.3.1)
|
149
149
|
crass (~> 1.0.2)
|
150
150
|
nokogiri (>= 1.5.9)
|
151
151
|
mail (2.7.1)
|
@@ -153,21 +153,21 @@ GEM
|
|
153
153
|
marcel (0.3.3)
|
154
154
|
mimemagic (~> 0.3.2)
|
155
155
|
method_source (0.9.2)
|
156
|
-
mime-types (3.
|
156
|
+
mime-types (3.3)
|
157
157
|
mime-types-data (~> 3.2015)
|
158
|
-
mime-types-data (3.2019.
|
158
|
+
mime-types-data (3.2019.1009)
|
159
159
|
mimemagic (0.3.3)
|
160
|
-
mini_magick (4.
|
161
|
-
mini_mime (1.0.
|
160
|
+
mini_magick (4.9.5)
|
161
|
+
mini_mime (1.0.2)
|
162
162
|
mini_portile2 (2.4.0)
|
163
|
-
minitest (5.
|
164
|
-
monetize (1.9.
|
163
|
+
minitest (5.13.0)
|
164
|
+
monetize (1.9.2)
|
165
165
|
money (~> 6.12)
|
166
|
-
money (6.13.
|
166
|
+
money (6.13.4)
|
167
167
|
i18n (>= 0.6.4, <= 2)
|
168
168
|
multi_xml (0.6.0)
|
169
|
-
nio4r (2.
|
170
|
-
nokogiri (1.10.
|
169
|
+
nio4r (2.5.2)
|
170
|
+
nokogiri (1.10.5)
|
171
171
|
mini_portile2 (~> 2.4.0)
|
172
172
|
orm_adapter (0.5.0)
|
173
173
|
paperclip (6.1.0)
|
@@ -183,10 +183,10 @@ GEM
|
|
183
183
|
addressable
|
184
184
|
css_parser (>= 1.6.0)
|
185
185
|
htmlentities (>= 4.0.0)
|
186
|
-
premailer-rails (1.10.
|
187
|
-
actionmailer (>= 3
|
186
|
+
premailer-rails (1.10.3)
|
187
|
+
actionmailer (>= 3)
|
188
188
|
premailer (~> 1.7, >= 1.7.9)
|
189
|
-
public_suffix (
|
189
|
+
public_suffix (4.0.1)
|
190
190
|
rabl (0.13.1)
|
191
191
|
activesupport (>= 2.3.14)
|
192
192
|
rack (2.0.7)
|
@@ -212,8 +212,8 @@ GEM
|
|
212
212
|
rails-dom-testing (2.0.3)
|
213
213
|
activesupport (>= 4.2.0)
|
214
214
|
nokogiri (>= 1.6)
|
215
|
-
rails-html-sanitizer (1.0
|
216
|
-
loofah (~> 2.
|
215
|
+
rails-html-sanitizer (1.3.0)
|
216
|
+
loofah (~> 2.3)
|
217
217
|
railties (5.2.3)
|
218
218
|
actionpack (= 5.2.3)
|
219
219
|
activesupport (= 5.2.3)
|
@@ -229,41 +229,47 @@ GEM
|
|
229
229
|
i18n
|
230
230
|
razorpay (2.4.1)
|
231
231
|
httparty (~> 0.14)
|
232
|
-
responders (
|
233
|
-
actionpack (>=
|
234
|
-
railties (>=
|
235
|
-
rspec-core (3.
|
236
|
-
rspec-support (~> 3.
|
237
|
-
rspec-expectations (3.
|
232
|
+
responders (3.0.0)
|
233
|
+
actionpack (>= 5.0)
|
234
|
+
railties (>= 5.0)
|
235
|
+
rspec-core (3.9.0)
|
236
|
+
rspec-support (~> 3.9.0)
|
237
|
+
rspec-expectations (3.9.0)
|
238
238
|
diff-lcs (>= 1.2.0, < 2.0)
|
239
|
-
rspec-support (~> 3.
|
240
|
-
rspec-mocks (3.
|
239
|
+
rspec-support (~> 3.9.0)
|
240
|
+
rspec-mocks (3.9.0)
|
241
241
|
diff-lcs (>= 1.2.0, < 2.0)
|
242
|
-
rspec-support (~> 3.
|
243
|
-
rspec-rails (3.
|
242
|
+
rspec-support (~> 3.9.0)
|
243
|
+
rspec-rails (3.9.0)
|
244
244
|
actionpack (>= 3.0)
|
245
245
|
activesupport (>= 3.0)
|
246
246
|
railties (>= 3.0)
|
247
|
-
rspec-core (~> 3.
|
248
|
-
rspec-expectations (~> 3.
|
249
|
-
rspec-mocks (~> 3.
|
250
|
-
rspec-support (~> 3.
|
251
|
-
rspec-support (3.
|
252
|
-
sassc (2.
|
247
|
+
rspec-core (~> 3.9.0)
|
248
|
+
rspec-expectations (~> 3.9.0)
|
249
|
+
rspec-mocks (~> 3.9.0)
|
250
|
+
rspec-support (~> 3.9.0)
|
251
|
+
rspec-support (3.9.0)
|
252
|
+
sassc (2.2.1)
|
253
253
|
ffi (~> 1.9)
|
254
|
-
|
255
|
-
|
254
|
+
sassc-rails (2.1.2)
|
255
|
+
railties (>= 4.0.0)
|
256
|
+
sassc (>= 2.0)
|
257
|
+
sprockets (> 3.0)
|
258
|
+
sprockets-rails
|
259
|
+
tilt
|
260
|
+
spree_api (3.7.7)
|
256
261
|
doorkeeper (~> 5.0)
|
257
262
|
fast_jsonapi (~> 1.5)
|
258
263
|
rabl (~> 0.13.1)
|
259
|
-
spree_core (= 3.7.
|
264
|
+
spree_core (= 3.7.7)
|
260
265
|
versioncake (~> 3.4.0)
|
261
|
-
spree_auth_devise (
|
262
|
-
|
266
|
+
spree_auth_devise (4.0.0)
|
267
|
+
deface (~> 1.0)
|
268
|
+
devise (~> 4.7)
|
263
269
|
devise-encryptable (= 0.2.0)
|
264
|
-
spree_core (>= 3.1.0, <
|
270
|
+
spree_core (>= 3.1.0, < 5.0)
|
265
271
|
spree_extension
|
266
|
-
spree_core (3.7.
|
272
|
+
spree_core (3.7.7)
|
267
273
|
activemerchant (~> 1.67)
|
268
274
|
acts-as-taggable-on (~> 6.0)
|
269
275
|
acts_as_list (~> 0.8)
|
@@ -275,7 +281,7 @@ GEM
|
|
275
281
|
friendly_id (~> 5.2.1)
|
276
282
|
highline (~> 2.0.0)
|
277
283
|
kaminari (~> 1.0.1)
|
278
|
-
mini_magick (~> 4.
|
284
|
+
mini_magick (~> 4.9.4)
|
279
285
|
monetize (~> 1.9)
|
280
286
|
money (~> 6.13)
|
281
287
|
paperclip (~> 6.1.0)
|
@@ -284,6 +290,7 @@ GEM
|
|
284
290
|
rails (~> 5.2.1, >= 5.2.1.1)
|
285
291
|
ransack (~> 2.1.1)
|
286
292
|
responders
|
293
|
+
sprockets (~> 3.7)
|
287
294
|
sprockets-rails
|
288
295
|
state_machines-activerecord (~> 0.5)
|
289
296
|
stringex
|
@@ -291,12 +298,12 @@ GEM
|
|
291
298
|
spree_extension (0.0.9)
|
292
299
|
activerecord (>= 4.2)
|
293
300
|
spree_core
|
294
|
-
spree_frontend (3.7.
|
301
|
+
spree_frontend (3.7.7)
|
295
302
|
bootstrap-sass (~> 3.4)
|
296
303
|
canonical-rails (~> 0.2.3)
|
297
304
|
jquery-rails (~> 4.3)
|
298
|
-
spree_api (= 3.7.
|
299
|
-
spree_core (= 3.7.
|
305
|
+
spree_api (= 3.7.7)
|
306
|
+
spree_core (= 3.7.7)
|
300
307
|
sprockets (3.7.2)
|
301
308
|
concurrent-ruby (~> 1.0)
|
302
309
|
rack (> 1, < 3)
|
@@ -304,10 +311,10 @@ GEM
|
|
304
311
|
actionpack (>= 4.0)
|
305
312
|
activesupport (>= 4.0)
|
306
313
|
sprockets (>= 3.0.0)
|
307
|
-
sqlite3 (1.4.
|
314
|
+
sqlite3 (1.4.1)
|
308
315
|
state_machines (0.5.0)
|
309
|
-
state_machines-activemodel (0.
|
310
|
-
activemodel (>= 4.1
|
316
|
+
state_machines-activemodel (0.7.1)
|
317
|
+
activemodel (>= 4.1)
|
311
318
|
state_machines (>= 0.5.0)
|
312
319
|
state_machines-activerecord (0.6.0)
|
313
320
|
activerecord (>= 4.1)
|
@@ -317,7 +324,8 @@ GEM
|
|
317
324
|
climate_control (>= 0.0.3, < 1.0)
|
318
325
|
thor (0.20.3)
|
319
326
|
thread_safe (0.3.6)
|
320
|
-
|
327
|
+
tilt (2.0.10)
|
328
|
+
twitter_cldr (4.4.5)
|
321
329
|
camertron-eprun
|
322
330
|
cldr-plurals-runtime-rb (~> 1.0)
|
323
331
|
tzinfo
|
@@ -330,9 +338,9 @@ GEM
|
|
330
338
|
tzinfo
|
331
339
|
warden (1.2.8)
|
332
340
|
rack (>= 2.0.6)
|
333
|
-
websocket-driver (0.7.
|
341
|
+
websocket-driver (0.7.1)
|
334
342
|
websocket-extensions (>= 0.1.0)
|
335
|
-
websocket-extensions (0.1.
|
343
|
+
websocket-extensions (0.1.4)
|
336
344
|
|
337
345
|
PLATFORMS
|
338
346
|
ruby
|
@@ -349,6 +357,7 @@ DEPENDENCIES
|
|
349
357
|
rake (~> 10.0)
|
350
358
|
razorpay
|
351
359
|
rspec-rails
|
360
|
+
sassc-rails
|
352
361
|
spree_auth_devise
|
353
362
|
spree_core (>= 3.1.0, < 4.0)
|
354
363
|
spree_extension
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(){"use strict";!function(){var s=window,c=s.document,i=s.Array,l=s.Object,r=s.String,m=s.Number,u=s.Date,d=s.Math,a=s.setTimeout,n=s.setInterval,t=s.clearTimeout,f=s.parseInt,h=s.encodeURIComponent,v=s.btoa,p=s.unescape,_=s.TypeError,y=s.navigator,b=s.location,e=s.XMLHttpRequest,o=s.FormData;function g(t){return function(e,n){return arguments.length<2?function(n){return t.call(null,n,e)}:t.call(null,e,n)}}function D(i){return function(e,t,n){return arguments.length<3?function(n){return i.call(null,n,e,t)}:i.call(null,e,t,n)}}function S(){for(var n=arguments.length,e=new i(n),t=0;t<n;t++)e[t]=arguments[t];return function(n){return function(){var t=arguments;return e.every(function(n,e){if(n(t[e]))return!0;!function(){console.error.apply(console,arguments)}("wrong "+e+"th argtype",t[e]),s.dispatchEvent(Z("rzp_error",{detail:new Error("wrong "+e+"th argtype "+t[e])}))})?n.apply(null,t):t[0]}}}function R(n){return B(n)&&1===n.nodeType}var k=g(function(n,e){return typeof n===e}),M=k("boolean"),w=k("number"),P=k("string"),K=k("function"),N=k("object"),L=i.isArray,B=(k("undefined"),function(n){return!(null===n)&&N(n)}),A=function(n){return!C(l.keys(n))},T=g(function(n,e){return n&&n[e]}),C=T("length"),E=T("prototype"),x=g(function(n,e){return n instanceof e}),G=u.now,z=d.random,F=d.floor;function O(n,e){return{error:(t=e,i={description:r(n)},t&&(i.field=t),i)};var t,i}function $(n){throw new Error(n)}var I=function(n){return/data:image\/[^;]+;base64/.test(n)};function H(n){var e=function a(o,r){var m={};if(!B(o))return m;var u=null==r;return l.keys(o).forEach(function(n){var e,t=o[n],i=u?n:r+"["+n+"]";"object"==typeof t?(e=a(t,i),l.keys(e).forEach(function(n){m[n]=e[n]})):m[i]=t}),m}(n);return l.keys(e).map(function(n){return h(n)+"="+h(e[n])}).join("&")}function U(n,e){return B(e)&&(e=H(e)),e&&(n+=0<n.indexOf("?")?"&":"?",n+=e),n}function Z(n,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var t=c.createEvent("CustomEvent");return t.initCustomEvent(n,e.bubbles,e.cancelable,e.detail),t}function Y(n){return l.keys(n||{})}function j(n){return Nn(Kn(n))}function W(e,i,a,o){return x(e,An)?console.error("use el |> _El.on(e, cb)"):function(t){var n=i;return P(a)?n=function(n){for(var e=n.target;!ne(e,a)&&e!==t;)e=Cn(e);e!==t&&(n.delegateTarget=e,i(n))}:o=a,o=!!o,t.addEventListener(e,n,o),function(){return t.removeEventListener(e,n,o)}}}function q(n){return P(n)?ue(n):n}var V,J,Q,X,nn,en,tn,an,on,rn,mn,un,cn,ln=E(i),sn=ln.slice,dn=g(function(n,e){return n&&ln.forEach.call(n,e),n}),fn=(V="indexOf",g(function(n,e){return ln[V].call(n,e)})),hn=g(function(n,e){return 0<=fn(n,e)}),vn=g(function(n,e){return sn.call(n,e)}),pn=D(function(n,e,t){return ln.reduce.call(n,e,t)}),_n=function(n){return n},yn=(E(Function),Q=function(n,e){return n.bind(e)},J=function(n){if(K(n))return Q.apply(null,arguments);throw new _("not a function")},g(function(n,e){var t=arguments;return P(n)&&((t=vn(t,0))[0]=e[n]),J.apply(null,t)})),bn=E(r).slice,gn=D(function(n,e,t){return bn.call(n,e,t)}),Dn=g(function(n,e){return bn.call(n,e)}),Sn=g(function(n,e){return e in n}),Rn=g(function(n,e){return n&&n.hasOwnProperty(e)}),kn=D(function(n,e,t){return n[e]=t,n}),Mn=D(function(n,e,t){return t&&(n[e]=t),n}),wn=g(function(n,e){return delete n[e],n}),Pn=g(function(e,t){return dn(Y(e),function(n){return t(e[n],n,e)}),e}),Kn=JSON.stringify,Nn=function(n){try{return JSON.parse(n)}catch(n){}},Ln=g(function(t,n){return Pn(n,function(n,e){return t[e]=n}),t}),Bn=function(n){var e={};return Pn(n,function(t,n){var i=(n=n.replace(/\[([^[\]]+)\]/g,".$1")).split("."),a=e;dn(i,function(n,e){e<i.length-1?(a[n]||(a[n]={}),a=a[n]):a[n]=t})}),e},An=s.Element,Tn=function(n){return c.createElement(n||"div")},Cn=function(n){return n.parentNode},En=S(R),xn=S(R,R),Gn=S(R,P),zn=S(R,P,function(){return!0}),Fn=S(R,B),On=(X=xn(function(n,e){return e.appendChild(n)}),g(X)),$n=(nn=xn(function(n,e){var t=e;return On(n)(t),n}),g(nn)),In=En(function(n){var e=Cn(n);return e&&e.removeChild(n),n}),Hn=(En(T("selectionStart")),En(T("selectionEnd")),tn=function(n,e){return n.selectionStart=n.selectionEnd=e,n},en=S(R,w)(tn),g(en),En(function(n){return n.submit(),n})),Un=D(zn(function(n,e,t){return n.setAttribute(e,t),n})),Zn=D(zn(function(n,e,t){return n.style[e]=t,n})),Yn=(an=Fn(function(i,n){var e=n;return Pn(function(n,e){var t=i;return Un(e,n)(t)})(e),i}),g(an)),jn=(on=Fn(function(i,n){var e=n;return Pn(function(n,e){var t=i;return Zn(e,n)(t)})(e),i}),g(on)),Wn=(rn=Gn(function(n,e){return n.innerHTML=e,n}),g(rn)),qn=(mn=Gn(function(n,e){var t=n;return Zn("display",e)(t)}),g(mn)),Vn=(qn("none"),qn("block"),qn("inline-block"),T("offsetWidth")),Jn=T("offsetHeight"),Qn=E(An),Xn=Qn.matches||Qn.matchesSelector||Qn.webkitMatchesSelector||Qn.mozMatchesSelector||Qn.msMatchesSelector||Qn.oMatchesSelector,ne=(un=Gn(function(n,e){return Xn.call(n,e)}),g(un)),ee=c.documentElement,te=c.body,ie=s.innerHeight,ae=s.pageYOffset,oe=s.scrollBy,re=s.scrollTo,me=s.requestAnimationFrame,ue=yn("querySelector",c),ce=yn("querySelectorAll",c);yn("getElementById",c),yn("getComputedStyle",s);function le(n,e,t,i){var a,o,r,m,u,c;t&&"get"===t.toLowerCase()?(n=U(n,e),i?s.open(n,i):s.location=n):(c={action:n,method:t},i&&(c.target=i),u=Tn("form"),m=Yn(c)(u),r=Wn(se(e))(m),o=On(ee)(r),a=Hn(o),In(a))}function se(n,t){if(B(n)){var i="";return Pn(n,function(n,e){t&&(e=t+"["+e+"]"),i+=se(n,e)}),i}var e=Tn("input");return e.type="hidden",e.value=n,e.name=t,e.outerHTML}function de(n){!function(m){if(!s.requestAnimationFrame)return oe(0,m);cn&&t(cn);cn=a(function(){var i=ae,a=d.min(i+m,Jn(te)-ie);m=a-i;var o=0,r=s.performance.now();me(function n(e){if(1<=(o+=(e-r)/300))return re(0,a);var t=d.sin(fe*o/2);re(0,i+d.round(m*t)),r=e,me(n)})},100)}(n-ae)}var fe=d.PI;var he,ve,pe,_e,ye=e,be=O("Network error"),ge=0;function De(n){if(!x(this,De))return new De(n);this.options=function(n){P(n)&&(n={url:n});var e=n.method,t=n.headers,i=n.callback,a=n.data;t||(n.headers={});e||(n.method="get");i||(n.callback=_n);B(a)&&!x(a,o)&&(a=H(a));return n.data=a,n}(n),this.defer()}((pe={setReq:function(n,e){return this.abort(),this.type=n,this.req=e,this},till:function(e,t){var i=this;return void 0===t&&(t=0),this.setReq("timeout",a(function(){i.call(function(n){n.error&&0<t?i.till(e,t-1):e(n)?i.till(e,t):i.options.callback(n)})},3e3))},abort:function(){var n=this.req,e=this.type;n&&("ajax"===e?this.req.abort():"jsonp"===e?s.Razorpay[this.req]=_n:t(this.req),this.req=null)},defer:function(){var n=this;this.req=a(function(){return n.call()})},call:function(e){var n,t,i;void 0===e&&(e=this.options.callback);var a=this.options,o=a.url,r=a.method,m=a.data,u=a.headers,c=new ye;this.setReq("ajax",c),c.open(r,o,!0),c.onreadystatechange=function(){var n;4===c.readyState&&c.status&&((n=Nn(c.responseText))||((n=O("Parsing error")).xhr={status:c.status,text:c.responseText}),n.error&&s.dispatchEvent(Z("rzp_network_error",{detail:{method:r,url:o,baseUrl:o.split("?")[0],status:c.status,xhrErrored:!1,response:n}})),e(n))},c.onerror=function(){var n=be;n.xhr={status:0},s.dispatchEvent(Z("rzp_network_error",{detail:{method:r,url:o,baseUrl:o.split("?")[0],status:0,xhrErrored:!0,response:n}})),e(n)},i=u,t=Mn("X-Razorpay-SessionId",he)(i),n=Mn("X-Razorpay-TrackId",ve)(t),Pn(function(n,e){return c.setRequestHeader(e,n)})(n),c.send(m)}}).constructor=De).prototype=pe,De.post=function(n){return n.method="post",n.headers||(n.headers={}),n.headers["Content-type"]||(n.headers["Content-type"]="application/x-www-form-urlencoded"),De(n)},De.setSessionId=function(n){he=n},De.setTrackId=function(n){ve=n},De.jsonp=function(u){u.data||(u.data={});var c=ge++,l=0,n=new De(u);return u=n.options,n.call=function(e){void 0===e&&(e=u.callback);function n(){i||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(i=!0,this.onload=this.onreadystatechange=null,In(this))}var t="jsonp"+c+"_"+ ++l,i=!1,a=s.Razorpay[t]=function(n){wn(n,"http_status_code"),e(n),wn(s.Razorpay,t)};this.setReq("jsonp",a);var o=U(u.url,u.data),o=U(o,H({callback:"Razorpay."+t})),r=Tn("script"),m=Ln({src:o,async:!0,onerror:function(){return e(be)},onload:n,onreadystatechange:n})(r);On(ee)(m)},n};var Se=function(n){return console.warn("Promise error:",n)},Re=function(n){return x(n,ke)};function ke(n){if(!Re(this))throw"new Promise";this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Le(n,this)}function Me(t,i){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,a(function(){var n,e=1===t._state?i.onFulfilled:i.onRejected;if(null!==e){try{n=e(t._value)}catch(n){return void Pe(i.promise,n)}we(i.promise,n)}else(1===t._state?we:Pe)(i.promise,t._value)})):t._deferreds.push(i)}function we(e,n){try{if(n===e)throw new _("promise resolved by itself");if(B(n)||K(n)){var t=n.then;if(Re(n))return e._state=3,e._value=n,void Ke(e);if(K(t))return void Le(yn(t,n),e)}e._state=1,e._value=n,Ke(e)}catch(n){Pe(e,n)}}function Pe(n,e){n._state=2,n._value=e,Ke(n)}function Ke(e){var n;2===e._state&&0===e._deferreds.length&&a(function(){e._handled||Se(e._value)}),n=e._deferreds,dn(function(n){return Me(e,n)})(n),e._deferreds=null}function Ne(n,e,t){this.onFulfilled=K(n)?n:null,this.onRejected=K(e)?e:null,this.promise=t}function Le(n,e){var t=!1;try{n(function(n){t||(t=!0,we(e,n))},function(n){t||(t=!0,Pe(e,n))})}catch(n){if(t)return;t=!0,Pe(e,n)}}_e=ke.prototype,Ln({catch:function(n){return this.then(null,n)},then:function(n,e){var t=new ke(_n);return Me(this,new Ne(n,e,t)),t},finally:function(e){return this.then(function(n){return ke.resolve(e()).then(function(){return n})},function(n){return ke.resolve(e()).then(function(){return ke.reject(n)})})}})(_e),ke.all=function(r){return new ke(function(i,a){if(!r||void 0===r.length)throw new _("Promise.all accepts an array");if(0===r.length)return i([]);var o=r.length,n=r;dn(function e(n,t){try{if((B(n)||K(n))&&K(n.then))return n.then(function(n){return e(n,t)},a);r[t]=n,0==--o&&i(r)}catch(n){a(n)}})(n)})},ke.resolve=function(e){return Re(e)?e:new ke(function(n){return n(e)})},ke.reject=function(t){return new ke(function(n,e){return e(t)})},ke.race=function(i){return new ke(function(e,t){var n=i;return dn(function(n){return n.then(e,t)})(n)})};var Be=s.Promise,Ae=Be&&K(E(Be).then)&&Be||ke;K(Ae.prototype.finally)||(Ae.prototype.finally=ke.prototype.finally);var Te={_storage:{},setItem:function(n,e){this._storage[n]=e},getItem:function(n){return this._storage[n]||null},removeItem:function(n){delete this._storage[n]}};var Ce,Ee=function(){var n=G();try{s.localStorage.setItem("_storage",n);var e=s.localStorage.getItem("_storage");return s.localStorage.removeItem("_storage"),n!==f(e)?Te:s.localStorage}catch(n){return Te}}(),xe="rzp_checkout_exp";var Ge="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ze=(Ce=Ge,pn(function(n,e,t){return kn(n,e,t)},{})(Ce));function Fe(n){for(var e="";n;)e=Ge[n%62]+e,n=F(n/62);return e}function Oe(){var t,i=Fe(r(G()-13885344e5)+Dn("000000"+F(1e6*z()),-6))+Fe(F(238328*z()))+"0",a=0,n=i;return dn(function(n,e){t=ze[i[i.length-1-e]],(i.length-e)%2&&(t*=2),62<=t&&(t=t%62+1),a+=t})(n),t=(t=a%62)&&Ge[62-t],gn(i,0,13)+t}var $e=Oe(),Ie={library:"checkoutjs",platform:"browser",referer:b.href};function He(n){var t={checkout_id:n?n.id:$e},e=["device","env","integration","library","os_version","os","platform_version","platform","referer"];return dn(function(n){var e=t;return Mn(n,Ie[n])(e)})(e),t}var Ue,Ze=[],Ye=[],je=function(n){return Ze.push(n)},We=function(n){Ue=n},qe=function(){var n,e,t,i;if(Ze.length){var a=Sn(y,"sendBeacon"),o={context:Ue,addons:[{name:"ua_parser",input_key:"user_agent",output_key:"user_agent_parsed"}],events:Ze.splice(0,Ze.length)},r={url:"https://lumberjack.razorpay.com/v1/track",data:{key:"ZmY5N2M0YzVkN2JiYzkyMWM1ZmVmYWJk",data:(i=Kn(o),t=h(i),e=p(t),n=v(e),h(n))}};try{a?y.sendBeacon(r.url,Kn(r.data)):De.post(r)}catch(n){}}};n(function(){qe()},1e3);function Ve(r,m,u,c){r?r.isLiveMode()&&a(function(){var n;u instanceof Error&&(u={message:u.message,stack:u.stack});var e=He(r);e.user_agent=null,e.mode="live";var t=r.get("order_id");t&&(e.order_id=t);var i={},a={options:i};u&&(a.data=u),i=Ln(i,Bn(r.get())),Sn(i,"prefill")&&dn(["card"],function(n){Sn(i.prefill,n)&&(i.prefill[n]=!0)}),i.image&&I(i.image)&&(i.image="base64");var o=r.get("external.wallets")||[];i.external_wallets=(n=o,pn(function(n,e){var t=n;return kn(e,!0)(t)},{})(n)),$e&&(a.local_order_id=$e),a.build_number=10474,a.experiments=function(){try{var n=Ee.getItem(xe),e=Nn(n)}catch(n){}return B(e)&&!L(e)?e:{}}(),je({event:m,properties:a,timestamp:G()}),We(e),c&&qe()}):Ye.push([m,u,c])}Ve.dispatchPendingEvents=function(n){var e;n&&(e=Ve.bind(Ve,n),Ye.splice(0,Ye.length).forEach(function(n){e.apply(Ve,n)}))},Ve.parseAnalyticsData=function(n){var e;B(n)&&(e=n,Pn(function(n,e){Ie[n]=e})(e))},Ve.makeUid=Oe,Ve.common=He,Ve.props=Ie,Ve.id=$e,Ve.updateUid=function(n){Ve.id=$e=n},Ve.flush=qe;function Je(n){var t=function i(n,a){void 0===a&&(a="");var o={};return Pn(n,function(n,e){var t=a?a+"."+e:e;B(n)?Ln(o,i(n,t)):o[t]=n}),o}(n);return Pn(t,function(n,e){K(n)&&(t[e]=n.call())}),t}var Qe,Xe={},nt={},et={setR:function(n){Ve.dispatchPendingEvents(Qe=n)},track:function(n,e){var t,i=void 0===e?{}:e,a=i.type,o=i.data,r=void 0===o?{}:o,m=i.r,u=void 0===m?Qe:m,c=i.immediately,l=void 0!==c&&c,s=Je(Xe);t=j(r||{}),["token"].forEach(function(n){t[n]&&(t[n]="__REDACTED__")}),(r=B(r=t)?j(r):{data:r}).meta&&B(r.meta)&&(s=Ln(s,r.meta)),r.meta=s,a&&(n=a+":"+n),Ve(u,n,r,l)},setMeta:function(n,e){kn(Xe,n,e)},removeMeta:function(n){wn(Xe,n)},getMeta:function(){return Bn(Xe)},updateRequestIndex:function(n){if(!Qe||!n)return 0;Sn(nt,Qe.id)||(nt[Qe.id]={});var e=nt[Qe.id];return Sn(e,n)||(e[n]=-1),e[n]+=1,e[n]}};function tt(){return this._evts={},this._defs={},this}tt.prototype={onNew:_n,def:function(n,e){this._defs[n]=e},on:function(n,e){var t;return P(n)&&K(e)&&((t=this._evts)[n]||(t[n]=[]),!1!==this.onNew(n,e)&&t[n].push(e)),this},once:function(e,n){var t=n,i=this;return n=function n(){t.apply(i,arguments),i.off(e,n)},this.on(e,n)},off:function(t,n){var e=arguments.length;if(!e)return tt.call(this);var i=this._evts;if(2===e){var a=i[t];if(!K(n)||!L(a))return;if(a.splice(fn(a,n),1),a.length)return}return i[t]?delete i[t]:(t+=".",Pn(i,function(n,e){e.indexOf(t)||delete i[e]})),this},emit:function(n,e){var t=this;return dn(this._evts[n],function(n){try{n.call(t,e)}catch(n){console.error}}),this},emitter:function(){var n=arguments,e=this;return function(){e.emit.apply(e,n)}}};var it=y.userAgent,at=y.vendor;function ot(n){return n.test(it)}function rt(n){return n.test(at)}ot(/MSIE |Trident\//);var mt=ot(/iPhone/),ut=mt||ot(/iPad/),ct=(ot(/Android/),ot(/iPad/),ot(/Windows NT/),ot(/Linux/),ot(/Mac OS/),ot(/^((?!chrome|android).)*safari/i)||rt(/Apple/),ot(/firefox/),ot(/Chrome/)&&rt(/Google Inc/),ot(/; wv\) |Gecko\) Version\/[^ ]+ Chrome/),ot(/Instagram/)),lt=ot(/FB_IAB\/FB4A/),st=ot(/FBAN\/FBIOS/),dt=lt||st;var ft=ot(/; wv\) |Gecko\) Version\/[^ ]+ Chrome|Windows Phone|Opera Mini|UCBrowser|CriOS/)||dt||ct||ut||ot(/Android 4/),ht=(ot(/iPhone/),(ht=it.match(/Chrome\/(\d+)/))&&f(ht[1],10)),vt=(ot(/(Vivo|HeyTap|Realme|Oppo)Browser/),{key:"",account_id:"",image:"",amount:100,currency:"INR",order_id:"",invoice_id:"",subscription_id:"",auth_link_id:"",payment_link_id:"",notes:null,callback_url:"",redirect:!1,description:"",customer_id:"",recurring:null,payout:null,contact_id:"",signature:"",retry:!0,target:"",subscription_card_change:null,display_currency:"",display_amount:"",recurring_token:{max_amount:0,expire_by:0},checkout_config_id:"",send_sms_hash:!1});function pt(n,e,t,i){var a=e[t=t.toLowerCase()],o=typeof a;"object"==o&&null===a?P(i)&&("true"===i||"1"===i?i=!0:"false"!==i&&"0"!==i||(i=!1)):"string"==o&&(w(i)||M(i))?i=r(i):"number"==o?i=m(i):"boolean"==o&&(P(i)?"true"===i||"1"===i?i=!0:"false"!==i&&"0"!==i||(i=!1):w(i)&&(i=!!i)),null!==a&&o!=typeof i||(n[t]=i)}function _t(i,a,o){Pn(i[a],function(n,e){var t=typeof n;"string"!=t&&"number"!=t&&"boolean"!=t||(e=a+o[0]+e,1<o.length&&(e+=o[1]),i[e]=n)}),delete i[a]}function yt(n,i){var a={};return Pn(n,function(n,t){t in bt?Pn(n,function(n,e){pt(a,i,t+"."+e,n)}):pt(a,i,t,n)}),a}var bt={};function gt(t){Pn(vt,function(n,t){B(n)&&!A(n)&&(bt[t]=!0,Pn(n,function(n,e){vt[t+"."+e]=n}),delete vt[t])}),(t=yt(t,vt)).callback_url&&ft&&(t.redirect=!0),this.get=function(n){return arguments.length?n in t?t[n]:vt[n]:t},this.set=function(n,e){t[n]=e},this.unset=function(n){delete t[n]}}var Dt,St,Rt,kt="",Mt=s.screen;try{Rt=[y.userAgent,y.language,(new u).getTimezoneOffset(),y.platform,y.cpuClass,y.hardwareConcurrency,Mt.colorDepth,y.deviceMemory,Mt.width+Mt.height,Mt.width*Mt.height,s.devicePixelRatio],Dt=Rt.join(),St=new s.TextEncoder("utf-8").encode(Dt),kt=void s.crypto.subtle.digest("SHA-1",St).then(function(n){return kt=function(n){for(var e=[],t=new s.DataView(n),i=0;i<t.byteLength;i+=4){var a=t.getUint32(i).toString(16),o="00000000",r=(o+a).slice(-o.length);e.push(r)}return e.join("")}(n)})}catch(n){}var wt={api:"https://api.razorpay.com/",version:"v1/",frameApi:"/",cdn:"https://cdn.razorpay.com/"};try{Ln(wt,s.Razorpay.config)}catch(n){}function Pt(n,t,e){var i;void 0===e&&(e={});var a=j(n);e.feesRedirect&&(a.view="html");var o=t.get;dn(["amount","currency","signature","description","order_id","account_id","notes","subscription_id","auth_link_id","payment_link_id","customer_id","recurring","subscription_card_change","recurring_token.max_amount","recurring_token.expire_by"],function(n){var e,t=a;Rn(n)(t)||(e=o(n))&&(M(e)&&(e=1),a[n.replace(/\.(\w+)/g,"[$1]")]=e)});var r=o("key");!a.key_id&&r&&(a.key_id=r),e.avoidPopup&&"wallet"===a.method&&(a["_[source]"]="checkoutjs"),(e.tez||e.gpay)&&(a["_[flow]"]="intent",a["_[app]"]="com.google.android.apps.nbu.paisa.user"),dn(["integration","integration_version","integration_parent_version"],function(n){var e=t.get("_."+n);e&&(a["_["+n+"]"]=e)}),kt&&(a["_[shield][fhash]"]=kt),a["_[shield][tz]"]=-(new u).getTimezoneOffset(),i=Tt,Pn(function(n,e){a["_[shield]["+e+"]"]=n})(i),a["_[build]"]=10474,_t(a,"notes","[]"),_t(a,"card","[]");var m=a["card[expiry]"];return P(m)&&(a["card[expiry_month]"]=m.slice(0,2),a["card[expiry_year]"]=m.slice(-2),delete a["card[expiry]"]),a._=Ve.common(),_t(a,"_","[]"),a}function Kt(i,a){return void 0===a&&(a="."),function(n){for(var e=a,t=0;t<i;t++)e+="0";return n.replace(e,"")}}function Nt(n,e){return void 0===e&&(e=","),n.replace(/\./,e)}function Lt(a){Pn(a,function(n,e){var t,i;xt[e]=(i={},t=Ln(xt.default)(i),Ln(xt[e]||{})(t)),xt[e].code=e,a[e]&&(xt[e].symbol=a[e])})}var Bt,At,Tt={},Ct={AED:{code:"784",denomination:100,min_value:10,min_auth_value:100,symbol:"د.إ",name:"Emirati Dirham"},ALL:{code:"008",denomination:100,min_value:221,min_auth_value:100,symbol:"Lek",name:"Albanian Lek"},AMD:{code:"051",denomination:100,min_value:975,min_auth_value:100,symbol:"֏",name:"Armenian Dram"},ARS:{code:"032",denomination:100,min_value:80,min_auth_value:100,symbol:"ARS",name:"Argentine Peso"},AUD:{code:"036",denomination:100,min_value:50,min_auth_value:100,symbol:"A$",name:"Australian Dollar"},AWG:{code:"533",denomination:100,min_value:10,min_auth_value:100,symbol:"Afl.",name:"Aruban or Dutch Guilder"},BBD:{code:"052",denomination:100,min_value:10,min_auth_value:100,symbol:"Bds$",name:"Barbadian or Bajan Dollar"},BDT:{code:"050",denomination:100,min_value:168,min_auth_value:100,symbol:"৳",name:"Bangladeshi Taka"},BMD:{code:"060",denomination:100,min_value:10,min_auth_value:100,symbol:"$",name:"Bermudian Dollar"},BND:{code:"096",denomination:100,min_value:10,min_auth_value:100,symbol:"BND",name:"Bruneian Dollar"},BOB:{code:"068",denomination:100,min_value:14,min_auth_value:100,symbol:"Bs",name:"Bolivian Bolíviano"},BSD:{code:"044",denomination:100,min_value:10,min_auth_value:100,symbol:"BSD",name:"Bahamian Dollar"},BWP:{code:"072",denomination:100,min_value:22,min_auth_value:100,symbol:"P",name:"Botswana Pula"},BZD:{code:"084",denomination:100,min_value:10,min_auth_value:100,symbol:"BZ$",name:"Belizean Dollar"},CAD:{code:"124",denomination:100,min_value:50,min_auth_value:100,symbol:"C$",name:"Canadian Dollar"},CHF:{code:"756",denomination:100,min_value:50,min_auth_value:100,symbol:"CHf",name:"Swiss Franc"},CNY:{code:"156",denomination:100,min_value:14,min_auth_value:100,symbol:"¥",name:"Chinese Yuan Renminbi"},COP:{code:"170",denomination:100,min_value:1e3,min_auth_value:100,symbol:"COL$",name:"Colombian Peso"},CRC:{code:"188",denomination:100,min_value:1e3,min_auth_value:100,symbol:"₡",name:"Costa Rican Colon"},CUP:{code:"192",denomination:100,min_value:53,min_auth_value:100,symbol:"$MN",name:"Cuban Peso"},CZK:{code:"203",denomination:100,min_value:46,min_auth_value:100,symbol:"Kč",name:"Czech Koruna"},DKK:{code:"208",denomination:100,min_value:250,min_auth_value:100,symbol:"DKK",name:"Danish Krone"},DOP:{code:"214",denomination:100,min_value:102,min_auth_value:100,symbol:"RD$",name:"Dominican Peso"},DZD:{code:"012",denomination:100,min_value:239,min_auth_value:100,symbol:"د.ج",name:"Algerian Dinar"},EGP:{code:"818",denomination:100,min_value:35,min_auth_value:100,symbol:"E£",name:"Egyptian Pound"},ETB:{code:"230",denomination:100,min_value:57,min_auth_value:100,symbol:"ብር",name:"Ethiopian Birr"},EUR:{code:"978",denomination:100,min_value:50,min_auth_value:100,symbol:"€",name:"Euro"},FJD:{code:"242",denomination:100,min_value:10,min_auth_value:100,symbol:"FJ$",name:"Fijian Dollar"},GBP:{code:"826",denomination:100,min_value:30,min_auth_value:100,symbol:"£",name:"British Pound"},GIP:{code:"292",denomination:100,min_value:10,min_auth_value:100,symbol:"GIP",name:"Gibraltar Pound"},GMD:{code:"270",denomination:100,min_value:100,min_auth_value:100,symbol:"D",name:"Gambian Dalasi"},GTQ:{code:"320",denomination:100,min_value:16,min_auth_value:100,symbol:"Q",name:"Guatemalan Quetzal"},GYD:{code:"328",denomination:100,min_value:418,min_auth_value:100,symbol:"G$",name:"Guyanese Dollar"},HKD:{code:"344",denomination:100,min_value:400,min_auth_value:100,symbol:"HK$",name:"Hong Kong Dollar"},HNL:{code:"340",denomination:100,min_value:49,min_auth_value:100,symbol:"HNL",name:"Honduran Lempira"},HRK:{code:"191",denomination:100,min_value:14,min_auth_value:100,symbol:"kn",name:"Croatian Kuna"},HTG:{code:"332",denomination:100,min_value:167,min_auth_value:100,symbol:"G",name:"Haitian Gourde"},HUF:{code:"348",denomination:100,min_value:555,min_auth_value:100,symbol:"Ft",name:"Hungarian Forint"},IDR:{code:"360",denomination:100,min_value:1e3,min_auth_value:100,symbol:"Rp",name:"Indonesian Rupiah"},ILS:{code:"376",denomination:100,min_value:10,min_auth_value:100,symbol:"₪",name:"Israeli Shekel"},INR:{code:"356",denomination:100,min_value:100,min_auth_value:100,symbol:"₹",name:"Indian Rupee"},JMD:{code:"388",denomination:100,min_value:250,min_auth_value:100,symbol:"J$",name:"Jamaican Dollar"},KES:{code:"404",denomination:100,min_value:201,min_auth_value:100,symbol:"Ksh",name:"Kenyan Shilling"},KGS:{code:"417",denomination:100,min_value:140,min_auth_value:100,symbol:"Лв",name:"Kyrgyzstani Som"},KHR:{code:"116",denomination:100,min_value:1e3,min_auth_value:100,symbol:"៛",name:"Cambodian Riel"},KYD:{code:"136",denomination:100,min_value:10,min_auth_value:100,symbol:"CI$",name:"Caymanian Dollar"},KZT:{code:"398",denomination:100,min_value:759,min_auth_value:100,symbol:"₸",name:"Kazakhstani Tenge"},LAK:{code:"418",denomination:100,min_value:1e3,min_auth_value:100,symbol:"₭",name:"Lao Kip"},LBP:{code:"422",denomination:100,min_value:1e3,min_auth_value:100,symbol:"ل.ل.",name:"Lebanese Pound"},LKR:{code:"144",denomination:100,min_value:358,min_auth_value:100,symbol:"රු",name:"Sri Lankan Rupee"},LRD:{code:"430",denomination:100,min_value:325,min_auth_value:100,symbol:"L$",name:"Liberian Dollar"},LSL:{code:"426",denomination:100,min_value:29,min_auth_value:100,symbol:"LSL",name:"Basotho Loti"},MAD:{code:"504",denomination:100,min_value:20,min_auth_value:100,symbol:"د.م.",name:"Moroccan Dirham"},MDL:{code:"498",denomination:100,min_value:35,min_auth_value:100,symbol:"MDL",name:"Moldovan Leu"},MKD:{code:"807",denomination:100,min_value:109,min_auth_value:100,symbol:"ден",name:"Macedonian Denar"},MMK:{code:"104",denomination:100,min_value:1e3,min_auth_value:100,symbol:"MMK",name:"Burmese Kyat"},MNT:{code:"496",denomination:100,min_value:1e3,min_auth_value:100,symbol:"₮",name:"Mongolian Tughrik"},MOP:{code:"446",denomination:100,min_value:17,min_auth_value:100,symbol:"MOP$",name:"Macau Pataca"},MUR:{code:"480",denomination:100,min_value:70,min_auth_value:100,symbol:"₨",name:"Mauritian Rupee"},MVR:{code:"462",denomination:100,min_value:31,min_auth_value:100,symbol:"Rf",name:"Maldivian Rufiyaa"},MWK:{code:"454",denomination:100,min_value:1e3,min_auth_value:100,symbol:"MK",name:"Malawian Kwacha"},MXN:{code:"484",denomination:100,min_value:39,min_auth_value:100,symbol:"Mex$",name:"Mexican Peso"},MYR:{code:"458",denomination:100,min_value:10,min_auth_value:100,symbol:"RM",name:"Malaysian Ringgit"},NAD:{code:"516",denomination:100,min_value:29,min_auth_value:100,symbol:"N$",name:"Namibian Dollar"},NGN:{code:"566",denomination:100,min_value:723,min_auth_value:100,symbol:"₦",name:"Nigerian Naira"},NIO:{code:"558",denomination:100,min_value:66,min_auth_value:100,symbol:"NIO",name:"Nicaraguan Cordoba"},NOK:{code:"578",denomination:100,min_value:300,min_auth_value:100,symbol:"NOK",name:"Norwegian Krone"},NPR:{code:"524",denomination:100,min_value:221,min_auth_value:100,symbol:"रू",name:"Nepalese Rupee"},NZD:{code:"554",denomination:100,min_value:50,min_auth_value:100,symbol:"NZ$",name:"New Zealand Dollar"},PEN:{code:"604",denomination:100,min_value:10,min_auth_value:100,symbol:"S/",name:"Peruvian Sol"},PGK:{code:"598",denomination:100,min_value:10,min_auth_value:100,symbol:"PGK",name:"Papua New Guinean Kina"},PHP:{code:"608",denomination:100,min_value:106,min_auth_value:100,symbol:"₱",name:"Philippine Peso"},PKR:{code:"586",denomination:100,min_value:227,min_auth_value:100,symbol:"₨",name:"Pakistani Rupee"},QAR:{code:"634",denomination:100,min_value:10,min_auth_value:100,symbol:"QR",name:"Qatari Riyal"},RUB:{code:"643",denomination:100,min_value:130,min_auth_value:100,symbol:"₽",name:"Russian Ruble"},SAR:{code:"682",denomination:100,min_value:10,min_auth_value:100,symbol:"SR",name:"Saudi Arabian Riyal"},SCR:{code:"690",denomination:100,min_value:28,min_auth_value:100,symbol:"SRe",name:"Seychellois Rupee"},SEK:{code:"752",denomination:100,min_value:300,min_auth_value:100,symbol:"SEK",name:"Swedish Krona"},SGD:{code:"702",denomination:100,min_value:50,min_auth_value:100,symbol:"S$",name:"Singapore Dollar"},SLL:{code:"694",denomination:100,min_value:1e3,min_auth_value:100,symbol:"Le",name:"Sierra Leonean Leone"},SOS:{code:"706",denomination:100,min_value:1e3,min_auth_value:100,symbol:"Sh.so.",name:"Somali Shilling"},SSP:{code:"728",denomination:100,min_value:100,min_auth_value:100,symbol:"SS£",name:"South Sudanese Pound"},SVC:{code:"222",denomination:100,min_value:18,min_auth_value:100,symbol:"₡",name:"Salvadoran Colon"},SZL:{code:"748",denomination:100,min_value:29,min_auth_value:100,symbol:"E",name:"Swazi Lilangeni"},THB:{code:"764",denomination:100,min_value:64,min_auth_value:100,symbol:"฿",name:"Thai Baht"},TTD:{code:"780",denomination:100,min_value:14,min_auth_value:100,symbol:"TT$",name:"Trinidadian Dollar"},TZS:{code:"834",denomination:100,min_value:1e3,min_auth_value:100,symbol:"Sh",name:"Tanzanian Shilling"},USD:{code:"840",denomination:100,min_value:50,min_auth_value:100,symbol:"$",name:"US Dollar"},UYU:{code:"858",denomination:100,min_value:67,min_auth_value:100,symbol:"$U",name:"Uruguayan Peso"},UZS:{code:"860",denomination:100,min_value:1e3,min_auth_value:100,symbol:"so'm",name:"Uzbekistani Som"},YER:{code:"886",denomination:100,min_value:501,min_auth_value:100,symbol:"﷼",name:"Yemeni Rial"},ZAR:{code:"710",denomination:100,min_value:29,min_auth_value:100,symbol:"R",name:"South African Rand"}},Et={three:function(n,e){var t=r(n).replace(new RegExp("(.{1,3})(?=(...)+(\\..{"+e+"})$)","g"),"$1,");return Kt(e)(t)},threecommadecimal:function(n,e){var t=Nt(r(n)).replace(new RegExp("(.{1,3})(?=(...)+(\\,.{"+e+"})$)","g"),"$1.");return Kt(e,",")(t)},threespaceseparator:function(n,e){var t=r(n).replace(new RegExp("(.{1,3})(?=(...)+(\\..{"+e+"})$)","g"),"$1 ");return Kt(e)(t)},threespacecommadecimal:function(n,e){var t=Nt(r(n)).replace(new RegExp("(.{1,3})(?=(...)+(\\,.{"+e+"})$)","g"),"$1 ");return Kt(e,",")(t)},szl:function(n,e){var t=r(n).replace(new RegExp("(.{1,3})(?=(...)+(\\..{"+e+"})$)","g"),"$1, ");return Kt(e)(t)},chf:function(n,e){var t=r(n).replace(new RegExp("(.{1,3})(?=(...)+(\\..{"+e+"})$)","g"),"$1'");return Kt(e)(t)},inr:function(n,e){var t=r(n).replace(new RegExp("(.{1,2})(?=.(..)+(\\..{"+e+"})$)","g"),"$1,");return Kt(e)(t)},none:function(n){return r(n)}},xt={default:{decimals:2,format:Et.three,minimum:100},AED:{minor:"fil",minimum:10},AFN:{minor:"pul"},ALL:{minor:"qindarka",minimum:221},AMD:{minor:"luma",minimum:975},ANG:{minor:"cent"},AOA:{minor:"lwei"},ARS:{format:Et.threecommadecimal,minor:"centavo",minimum:80},AUD:{format:Et.threespaceseparator,minimum:50,minor:"cent"},AWG:{minor:"cent",minimum:10},AZN:{minor:"qäpik"},BAM:{minor:"fenning"},BBD:{minor:"cent",minimum:10},BDT:{minor:"paisa",minimum:168},BGN:{minor:"stotinki"},BHD:{decimals:3,minor:"fils"},BIF:{decimals:0,major:"franc",minor:"centime"},BMD:{minor:"cent",minimum:10},BND:{minor:"sen",minimum:10},BOB:{minor:"centavo",minimum:14},BRL:{format:Et.threecommadecimal,minimum:50,minor:"centavo"},BSD:{minor:"cent",minimum:10},BTN:{minor:"chetrum"},BWP:{minor:"thebe",minimum:22},BYR:{decimals:0,major:"ruble"},BZD:{minor:"cent",minimum:10},CAD:{minimum:50,minor:"cent"},CDF:{minor:"centime"},CHF:{format:Et.chf,minimum:50,minor:"rappen"},CLP:{decimals:0,format:Et.none,major:"peso",minor:"centavo"},CNY:{minor:"jiao",minimum:14},COP:{format:Et.threecommadecimal,minor:"centavo",minimum:1e3},CRC:{format:Et.threecommadecimal,minor:"centimo",minimum:1e3},CUC:{minor:"centavo"},CUP:{minor:"centavo",minimum:53},CVE:{minor:"centavo"},CZK:{format:Et.threecommadecimal,minor:"haler",minimum:46},DJF:{decimals:0,major:"franc",minor:"centime"},DKK:{minimum:250,minor:"øre"},DOP:{minor:"centavo",minimum:102},DZD:{minor:"centime",minimum:239},EGP:{minor:"piaster",minimum:35},ERN:{minor:"cent"},ETB:{minor:"cent",minimum:57},EUR:{minimum:50,minor:"cent"},FJD:{minor:"cent",minimum:10},FKP:{minor:"pence"},GBP:{minimum:30,minor:"pence"},GEL:{minor:"tetri"},GHS:{minor:"pesewas",minimum:3},GIP:{minor:"pence",minimum:10},GMD:{minor:"butut"},GTQ:{minor:"centavo",minimum:16},GYD:{minor:"cent",minimum:418},HKD:{minimum:400,minor:"cent"},HNL:{minor:"centavo",minimum:49},HRK:{format:Et.threecommadecimal,minor:"lipa",minimum:14},HTG:{minor:"centime",minimum:167},HUF:{decimals:0,format:Et.none,major:"forint",minimum:555},IDR:{format:Et.threecommadecimal,minor:"sen",minimum:1e3},ILS:{minor:"agorot",minimum:10},INR:{format:Et.inr,minor:"paise"},IQD:{decimals:3,minor:"fil"},IRR:{minor:"rials"},ISK:{decimals:0,format:Et.none,major:"króna",minor:"aurar"},JMD:{minor:"cent",minimum:250},JOD:{decimals:3,minor:"fil"},JPY:{decimals:0,minimum:50,minor:"sen"},KES:{minor:"cent",minimum:201},KGS:{minor:"tyyn",minimum:140},KHR:{minor:"sen",minimum:1e3},KMF:{decimals:0,major:"franc",minor:"centime"},KPW:{minor:"chon"},KRW:{decimals:0,major:"won",minor:"chon"},KWD:{decimals:3,minor:"fil"},KYD:{minor:"cent",minimum:10},KZT:{minor:"tiyn",minimum:759},LAK:{minor:"at",minimum:1e3},LBP:{format:Et.threespaceseparator,minor:"piastre",minimum:1e3},LKR:{minor:"cent",minimum:358},LRD:{minor:"cent",minimum:325},LSL:{minor:"lisente",minimum:29},LTL:{format:Et.threespacecommadecimal,minor:"centu"},LVL:{minor:"santim"},LYD:{decimals:3,minor:"dirham"},MAD:{minor:"centime",minimum:20},MDL:{minor:"ban",minimum:35},MGA:{decimals:0,major:"ariary"},MKD:{minor:"deni"},MMK:{minor:"pya",minimum:1e3},MNT:{minor:"mongo",minimum:1e3},MOP:{minor:"avo",minimum:17},MRO:{minor:"khoum"},MUR:{minor:"cent",minimum:70},MVR:{minor:"lari",minimum:31},MWK:{minor:"tambala",minimum:1e3},MXN:{minor:"centavo",minimum:39},MYR:{minor:"sen",minimum:10},MZN:{decimals:0,major:"metical"},NAD:{minor:"cent",minimum:29},NGN:{minor:"kobo",minimum:723},NIO:{minor:"centavo",minimum:66},NOK:{format:Et.threecommadecimal,minimum:300,minor:"øre"},NPR:{minor:"paise",minimum:221},NZD:{minimum:50,minor:"cent"},OMR:{minor:"baiza",decimals:3},PAB:{minor:"centesimo"},PEN:{minor:"centimo",minimum:10},PGK:{minor:"toea",minimum:10},PHP:{minor:"centavo",minimum:106},PKR:{minor:"paisa",minimum:227},PLN:{format:Et.threespacecommadecimal,minor:"grosz"},PYG:{decimals:0,major:"guarani",minor:"centimo"},QAR:{minor:"dirham",minimum:10},RON:{format:Et.threecommadecimal,minor:"bani"},RUB:{format:Et.threecommadecimal,minor:"kopeck",minimum:130},RWF:{decimals:0,major:"franc",minor:"centime"},SAR:{minor:"halalat",minimum:10},SBD:{minor:"cent"},SCR:{minor:"cent",minimum:28},SEK:{format:Et.threespacecommadecimal,minimum:300,minor:"öre"},SGD:{minimum:50,minor:"cent"},SHP:{minor:"new pence"},SLL:{minor:"cent",minimum:1e3},SOS:{minor:"centesimi",minimum:1e3},SRD:{minor:"cent"},STD:{minor:"centimo"},SSP:{minor:"piaster"},SVC:{minor:"centavo",minimum:18},SYP:{minor:"piaster"},SZL:{format:Et.szl,minor:"cent",minimum:29},THB:{minor:"satang",minimum:64},TJS:{minor:"diram"},TMT:{minor:"tenga"},TND:{decimals:3,minor:"millime"},TOP:{minor:"seniti"},TRY:{minor:"kurus"},TTD:{minor:"cent",minimum:14},TWD:{minor:"cent"},TZS:{minor:"cent",minimum:1e3},UAH:{format:Et.threespacecommadecimal,minor:"kopiyka"},UGX:{minor:"cent"},USD:{minimum:50,minor:"cent"},UYU:{format:Et.threecommadecimal,minor:"centé",minimum:67},UZS:{minor:"tiyin",minimum:1e3},VND:{format:Et.none,minor:"hao,xu"},VUV:{decimals:0,major:"vatu",minor:"centime"},WST:{minor:"sene"},XAF:{decimals:0,major:"franc",minor:"centime"},XCD:{minor:"cent"},XPF:{decimals:0,major:"franc",minor:"centime"},YER:{minor:"fil",minimum:501},ZAR:{format:Et.threespaceseparator,minor:"cent",minimum:29},ZMK:{minor:"ngwee"}},Gt=function(n){return xt[n]?xt[n]:xt.default},zt=["AED","ALL","AMD","ARS","AUD","AWG","BBD","BDT","BMD","BND","BOB","BSD","BWP","BZD","CAD","CHF","CNY","COP","CRC","CUP","CZK","DKK","DOP","DZD","EGP","ETB","EUR","FJD","GBP","GHS","GIP","GMD","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","JMD","KES","KGS","KHR","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MKD","MMK","MNT","MOP","MUR","MVR","MWK","MXN","MYR","NAD","NGN","NIO","NOK","NPR","NZD","PEN","PGK","PHP","PKR","QAR","RUB","SAR","SCR","SEK","SGD","SLL","SOS","SSP","SVC","SZL","THB","TTD","TZS","USD","UYU","UZS","YER","ZAR"],Ft={AED:"د.إ",AFN:"؋",ALL:"Lek",AMD:"֏",ANG:"NAƒ",AOA:"Kz",ARS:"ARS",AUD:"A$",AWG:"Afl.",AZN:"ман",BAM:"KM",BBD:"Bds$",BDT:"৳",BGN:"лв",BHD:"د.ب",BIF:"FBu",BMD:"$",BND:"BND",BOB:"Bs.",BRL:"R$",BSD:"BSD",BTN:"Nu.",BWP:"P",BYR:"Br",BZD:"BZ$",CAD:"C$",CDF:"FC",CHF:"CHf",CLP:"CLP$",CNY:"¥",COP:"COL$",CRC:"₡",CUC:"₱",CUP:"$MN",CVE:"Esc",CZK:"Kč",DJF:"Fdj",DKK:"DKK",DOP:"RD$",DZD:"د.ج",EGP:"E£",ERN:"Nfa",ETB:"ብር",EUR:"€",FJD:"FJ$",FKP:"FK£",GBP:"£",GEL:"ლ",GHS:"₵",GIP:"GIP",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"G$",HKD:"HK$",HNL:"HNL",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"ISK",JMD:"J$",JOD:"د.ا",JPY:"¥",KES:"Ksh",KGS:"Лв",KHR:"៛",KMF:"CF",KPW:"KPW",KRW:"KRW",KWD:"د.ك",KYD:"CI$",KZT:"₸",LAK:"₭",LBP:"ل.ل.",LD:"LD",LKR:"රු",LRD:"L$",LSL:"LSL",LTL:"Lt",LVL:"Ls",LYD:"LYD",MAD:"د.م.",MDL:"MDL",MGA:"Ar",MKD:"ден",MMK:"MMK",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"Mex$",MYR:"RM",MZN:"MT",NAD:"N$",NGN:"₦",NIO:"NIO",NOK:"NOK",NPR:"रू",NZD:"NZ$",OMR:"ر.ع.",PAB:"B/.",PEN:"S/",PGK:"PGK",PHP:"₱",PKR:"₨",PLN:"Zł",PYG:"₲",QAR:"QR",RON:"RON",RSD:"Дин.",RUB:"₽",RWF:"RF",SAR:"SR",SBD:"SI$",SCR:"SRe",SDG:"£Sd",SEK:"SEK",SFR:"Fr",SGD:"S$",SHP:"£",SLL:"Le",SOS:"Sh.so.",SRD:"Sr$",SSP:"SS£",STD:"Db",SVC:"₡",SYP:"S£",SZL:"E",THB:"฿",TJS:"SM",TMT:"M",TND:"د.ت",TOP:"T$",TRY:"TL",TTD:"TT$",TWD:"NT$",TZS:"Sh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"so'm",VEF:"Bs",VND:"₫",VUV:"VT",WST:"T",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF",YER:"﷼",ZAR:"R",ZMK:"ZK",ZWL:"Z$"};At={},Pn(Bt=Ct,function(n,e){Ct[e]=n,xt[e]=xt[e]||{},Bt[e].min_value&&(xt[e].minimum=Bt[e].min_value),Bt[e].denomination&&(xt[e].decimals=d.LOG10E*d.log(Bt[e].denomination)),At[e]=Bt[e].symbol}),Ln(Ft,At),Lt(At),Lt(Ft);pn(zt,function(n,e){return n[e]=Ft[e],n},{});function Ot(n,e,t){return void 0===t&&(t=!0),[Ft[e],(i=n,a=Gt(e),o=i/d.pow(10,a.decimals),a.format(o.toFixed(a.decimals),a.decimals))].join(t?" ":"");var i,a,o}function $t(n){return void 0===n&&(n=""),wt.api+wt.version+n}var It=["key","order_id","invoice_id","subscription_id","auth_link_id","payment_link_id","contact_id","checkout_config_id"];function Ht(e){var t,i=this;if(!x(this,Ht))return new Ht(e);tt.call(this),this.id=Ve.makeUid(),et.setR(this);try{t=function(n){n&&"object"==typeof n||$("Invalid options");var e=new gt(n);return function(i,a){void 0===a&&(a=[]);var o=!0;i=i.get(),Pn(jt,function(n,e){var t;hn(a,e)||e in i&&((t=n(i[e],i))&&(o=!1,$("Invalid "+e+" ("+t+")")))})}(e,["amount"]),function(n){var t=n.get("notes");Pn(t,function(n,e){P(n)?254<n.length&&(t[e]=n.slice(0,254)):w(n)||M(n)||delete t[e]})}(e),e}(e),this.get=t.get,this.set=t.set}catch(n){var a=n.message;this.get&&this.isLiveMode()||B(e)&&!e.parent&&s.alert(a),$(a)}dn(["integration","integration_version","integration_parent_version"],function(n){var e=i.get("_."+n);e&&(Ve.props[n]=e)}),It.every(function(n){return!t.get(n)})&&$("No key passed"),this.postInit()}var Ut=Ht.prototype=new tt;function Zt(n,e){return De.jsonp({url:$t("preferences"),data:n,callback:e})}Ut.postInit=_n,Ut.onNew=function(n,e){var t=this;"ready"===n&&(this.prefs?e(n,this.prefs):Zt(Yt(this),function(n){n.methods&&(t.prefs=n,t.methods=n.methods),e(t.prefs,n)}))},Ut.emi_calculator=function(n,e){return Ht.emi.calculator(this.get("amount")/100,n,e)},Ht.emi={calculator:function(n,e,t){if(!t)return d.ceil(n/e);t/=1200;var i=d.pow(1+t,e);return f(n*t*i/(i-1),10)}};Ht.payment={getMethods:function(e){return Zt({key_id:Ht.defaults.key},function(n){e(n.methods||n)})},getPrefs:function(e,t){var i,a=(i=G(),function(n){return G()-i});return et.track("prefs:start",{type:"metric"}),B(e)&&(e["_[request_index]"]=et.updateRequestIndex("preferences")),De({url:U($t("preferences"),e),callback:function(n){if(et.track("prefs:end",{type:"metric",data:{time:a()}}),n.xhr&&0===n.xhr.status)return Zt(e,t);t(n)}})}};function Yt(n){if(n){var t=n.get,i={},e=t("key");e&&(i.key_id=e);var a=[t("currency")],o=t("display_currency"),r=t("display_amount");return o&&(""+r).length&&a.push(o),i.currency=a,dn(["order_id","customer_id","invoice_id","payment_link_id","subscription_id","auth_link_id","recurring","subscription_card_change","account_id","contact_id","checkout_config_id","amount"],function(n){var e=t(n);e&&(i[n]=e)}),i["_[build]"]=10474,i["_[checkout_id]"]=n.id,i["_[library]"]=Ve.props.library,i["_[platform]"]=Ve.props.platform,i}}Ut.isLiveMode=function(){var n=this.preferences;return!n&&/^rzp_l/.test(this.get("key"))||n&&"live"===n.mode},Ut.calculateFees=function(n){var i=this;return new Ae(function(e,t){n=Pt(n,i),De.post({url:$t("payments/calculate/fees"),data:n,callback:function(n){return(n.error?t:e)(n)}})})};var jt={notes:function(n){if(B(n)&&15<C(Y(n)))return"At most 15 notes are allowed"},amount:function(n,e){var t,i,a=e.display_currency||e.currency||"INR",o=Gt(a),r=o.minimum,m="";if(o.decimals&&o.minor?m=" "+o.minor:o.major&&(m=" "+o.major),void 0===(i=r)&&(i=100),(/[^0-9]/.test(t=n)||!(i<=(t=f(t,10))))&&!e.recurring)return"should be passed in integer"+m+". Minimum value is "+r+m+", i.e. "+Ot(r,a)},currency:function(n){if(!hn(zt,n))return"The provided currency is not currently supported"},display_currency:function(n){if(!(n in Ft)&&n!==Ht.defaults.display_currency)return"This display currency is not supported"},display_amount:function(n){if(!(n=r(n).replace(/([^0-9.])/g,""))&&n!==Ht.defaults.display_amount)return""},payout:function(n,e){if(n){if(!e.key)return"key is required for a Payout";if(!e.contact_id)return"contact_id is required for a Payout"}}};Ht.configure=function(n){Pn(yt(n,vt),function(n,e){typeof vt[e]==typeof n&&(vt[e]=n)})},Ht.defaults=vt,s.Razorpay=Ht,vt.timeout=0,vt.name="",vt.partnership_logo="",vt.nativeotp=!0,vt.remember_customer=!1,vt.personalization=!1,vt.paused=!1,vt.fee_label="",vt.min_amount_label="",vt.partial_payment={min_amount_label:"",full_amount_label:"",partial_amount_label:"",partial_amount_description:"",select_partial:!1},vt.method={netbanking:null,card:!0,credit_card:!0,debit_card:!0,cardless_emi:null,wallet:null,emi:!0,upi:null,upi_intent:!0,qr:!0,bank_transfer:!0,upi_otm:!0},vt.prefill={amount:"",wallet:"",provider:"",method:"",name:"",contact:"",email:"",vpa:"","card[number]":"","card[expiry]":"","card[cvv]":"",bank:"","bank_account[name]":"","bank_account[account_number]":"","bank_account[account_type]":"","bank_account[ifsc]":"",auth_type:""},vt.features={cardsaving:!0},vt.readonly={contact:!1,email:!1,name:!1},vt.hidden={contact:!1,email:!1},vt.modal={confirm_close:!1,ondismiss:_n,onhidden:_n,escape:!0,animation:!s.matchMedia("(prefers-reduced-motion: reduce)").matches,backdropclose:!1,handleback:!0},vt.external={wallets:[],handler:_n},vt.theme={upi_only:!1,color:"",backdrop_color:"rgba(0,0,0,0.6)",image_padding:!0,image_frame:!0,close_button:!0,close_method_back:!1,hide_topbar:!1,branding:"",debit_card:!1},vt._={integration:null,integration_version:null,integration_parent_version:null},vt.config={display:{}};var Wt,qt,Vt,Jt,Qt=s.screen,Xt=s.scrollTo,ni=mt,ei={overflow:"",metas:null,orientationchange:function(){ei.resize.call(this),ei.scroll.call(this)},resize:function(){var n=s.innerHeight||Qt.height;ai.container.style.position=n<450?"absolute":"fixed",this.el.style.height=d.max(n,460)+"px"},scroll:function(){var n;"number"==typeof s.pageYOffset&&(s.innerHeight<460?(n=460-s.innerHeight,s.pageYOffset>120+n&&de(n)):this.isFocused||de(0))}};function ti(){return ei.metas||(ei.metas=ce('head meta[name=viewport],head meta[name="theme-color"]')),ei.metas}function ii(n){try{ai.backdrop.style.background=n}catch(n){}}function ai(n){if(Wt=c.body,qt=c.head,Vt=Wt.style,n)return this.getEl(n),this.openRzp(n);this.getEl(),this.time=G()}ai.prototype={getEl:function(n){var e,t,i,a,o,r;return this.el||(t={style:"opacity: 1; height: 100%; position: relative; background: none; display: block; border: 0 none transparent; margin: 0px; padding: 0px; z-index: 2;",allowtransparency:!0,frameborder:0,width:"100%",height:"100%",allowpaymentrequest:!0,src:(i=n,o=wt.frame,r=z()<.05,o||(o=$t("checkout"),(a=Yt(i))?o=U(o,a):(o+="/public",r&&(o+="/canary"))),r&&(o=U(o,{canary:1})),o),class:"razorpay-checkout-frame"},this.el=(e=Tn("iframe"),Yn(t)(e))),this.el},openRzp:function(n){var e,t,i,a,o,r=(e=this.el,jn({width:"100%",height:"100%"})(e)),m=n.get("parent"),u=(m=m&&q(m))||ai.container;!function(n,e){if(!Jt)try{var t;(Jt=c.createElement("div")).className="razorpay-loader";var i="margin:-25px 0 0 -25px;height:50px;width:50px;animation:rzp-rot 1s infinite linear;-webkit-animation:rzp-rot 1s infinite linear;border: 1px solid rgba(255, 255, 255, 0.2);border-top-color: rgba(255, 255, 255, 0.7);border-radius: 50%;";i+=e?"margin: 100px auto -150px;border: 1px solid rgba(0, 0, 0, 0.2);border-top-color: rgba(0, 0, 0, 0.7);":"position:absolute;left:50%;top:50%;",Jt.setAttribute("style",i),t=Jt,On(n)(t)}catch(n){}}(u,m),n!==this.rzp&&(Cn(r)!==u&&(t=u,$n(r)(t)),this.rzp=n),m?(i=r,Zn("minHeight","530px")(i),this.embedded=!0):(a=u,o=Zn("display","block")(a),Vn(o),ii(n.get("theme.backdrop_color")),/^rzp_t/.test(n.get("key"))&&ai.ribbon&&(ai.ribbon.style.opacity=1),this.setMetaAndOverflow()),this.bind(),this.onload()},makeMessage:function(){var n=this.rzp,t=n.get(),e={integration:Ve.props.integration,referer:b.href,options:t,id:n.id};return n.metadata&&(e.metadata=n.metadata),Pn(n.modal.options,function(n,e){t["modal."+e]=n}),this.embedded&&(delete t.parent,e.embedded=!0),function(n){var e,t,i=n.image;if(i&&P(i)){if(I(i))return;i.indexOf("http")&&(e=b.protocol+"//"+b.hostname+(b.port?":"+b.port:""),t="","/"!==i[0]&&"/"!==(t+=b.pathname.replace(/[^/]*$/g,""))[0]&&(t="/"+t),n.image=e+t+i)}}(t),e},close:function(){ii(""),ai.ribbon&&(ai.ribbon.style.opacity=0),function(n){n&&dn(n,In);var e=ti();e&&dn(e,On(qt))}(this.$metas),Vt.overflow=ei.overflow,this.unbind(),ni&&Xt(0,ei.oldY),Ve.flush()},bind:function(){var n,i=this;this.listeners||(this.listeners=[],n={},ni&&(n.orientationchange=ei.orientationchange,this.rzp.get("parent")||(n.resize=ei.resize)),Pn(n,function(n,e){var t;i.listeners.push((t=window,W(e,yn(n,i))(t)))}))},unbind:function(){var n=this.listeners;dn(n,function(n){return n()}),this.listeners=null},setMetaAndOverflow:function(){var n,e;qt&&(dn(ti(),function(n){return In(n)}),this.$metas=[(n=Tn("meta"),Yn({name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"})(n)),(e=Tn("meta"),Yn({name:"theme-color",content:this.rzp.get("theme.color")})(e))],dn(this.$metas,On(qt)),ei.overflow=Vt.overflow,Vt.overflow="hidden",ni&&(ei.oldY=s.pageYOffset,s.scrollTo(0,0),ei.orientationchange.call(this)))},postMessage:function(n){n.id=this.rzp.id,n=Kn(n),this.el.contentWindow.postMessage(n,"*")},onmessage:function(n){var e,t,i=Nn(n.data);i&&(e=i.event,t=this.rzp,n.origin&&"frame"===i.source&&n.source===this.el.contentWindow&&(i=i.data,this["on"+e](i),"dismiss"!==e&&"fault"!==e||et.track(e,{data:i,r:t,immediately:!0})))},onload:function(){this.rzp&&this.postMessage(this.makeMessage())},onfocus:function(){this.isFocused=!0},onblur:function(){this.isFocused=!1,ei.orientationchange.call(this)},onrender:function(){Jt&&(In(Jt),Jt=null),this.rzp.emit("render")},onevent:function(n){this.rzp.emit(n.event,n.data)},onredirect:function(n){Ve.flush(),n.target||(n.target=this.rzp.get("target")||"_top"),function(n){if(!n.target&&s!==s.parent)return s.Razorpay.sendMessage({event:"redirect",data:n});le(n.url,n.content,n.method,n.target)}(n)},onsubmit:function(e){Ve.flush();var t=this.rzp;"wallet"===e.method&&dn(t.get("external.wallets"),function(n){if(n===e.wallet)try{t.get("external.handler").call(t,e)}catch(n){}}),t.emit("payment.submit",{method:e.method})},ondismiss:function(n){this.close();var e=this.rzp.get("modal.ondismiss");K(e)&&a(function(){return e(n)})},onhidden:function(){Ve.flush(),this.afterClose();var n=this.rzp.get("modal.onhidden");K(n)&&n()},oncomplete:function(n){this.close();var e=this.rzp,t=e.get("handler");et.track("checkout_success",{r:e,data:n,immediately:!0}),K(t)&&a(function(){t.call(e,n)},200)},onpaymenterror:function(n){Ve.flush();try{this.rzp.emit("payment.error",n),this.rzp.emit("payment.failed",n)}catch(n){}},onfailure:function(n){this.ondismiss(),s.alert("Payment Failed.\n"+n.error.description),this.onhidden()},onfault:function(n){var e="Something went wrong.";P(n)?e=n:N(n)&&(n.message||n.description)&&(e=n.message||n.description),Ve.flush(),this.rzp.close();var t=this.rzp.get("callback_url");(this.rzp.get("redirect")||ft)&&t?le(t,{error:n},"post"):s.alert("Oops! Something went wrong.\n"+e),this.afterClose()},afterClose:function(){ai.container.style.display="none"},onflush:function(){Ve.flush()}};var oi,ri=E(Ht);function mi(e){return function n(){return oi?e.call(this):(a(yn(n,this),99),this)}}!function n(){(oi=c.body||c.getElementsByTagName("body")[0])||a(n,99)}();var ui,ci=c.currentScript||(ui=ce("script"))[ui.length-1];function li(n){var e,t=Cn(ci),i=$n((e=Tn(),Wn(se(n))(e)))(t),a=kn("onsubmit",_n)(i);Hn(a)}function si(m){var n,e=Cn(ci),t=$n((n=Tn("input"),Ln({type:"submit",value:m.get("buttontext"),className:"razorpay-payment-button"})(n)))(e);kn("onsubmit",function(n){n.preventDefault();var e=this.action,t=this.method,i=this.target,a=m.get();if(P(e)&&e&&!a.callback_url){var o={url:e,content:pn(this.querySelectorAll("[name]"),function(n,e){return n[e.name]=e.value,n},{}),method:P(t)?t:"get",target:P(i)&&i};try{var r=v(Kn({request:o,options:Kn(a),back:b.href}));a.callback_url=$t("checkout/onyx")+"?data="+r}catch(n){}}return m.open(),!1})(t)}var di,fi;function hi(){var n,e,t,i,a,o,r,m,u,c,l,s,d,f,h,v;return di||(n=Tn(),e=kn("className","razorpay-container")(n),t=kn("innerHTML","<style>@keyframes rzp-rot{to{transform: rotate(360deg);}}@-webkit-keyframes rzp-rot{to{-webkit-transform: rotate(360deg);}}</style>")(e),i=jn({zIndex:1e9,position:"fixed",top:0,display:"none",left:0,height:"100%",width:"100%","-webkit-overflow-scrolling":"touch","-webkit-backface-visibility":"hidden","overflow-y":"visible"})(t),di=On(oi)(i),d=ai.container=di,v=Tn(),h=kn("className","razorpay-backdrop")(v),f=jn({"min-height":"100%",transition:"0.3s ease-out",position:"fixed",top:0,left:0,width:"100%",height:"100%"})(h),a=On(d)(f),r=ai.backdrop=a,l="rotate(45deg)",s="opacity 0.3s ease-in",c=Tn("span"),u=kn("innerHTML","Test Mode")(c),m=jn({"text-decoration":"none",background:"#D64444",border:"1px dashed white",padding:"3px",opacity:"0","-webkit-transform":l,"-moz-transform":l,"-ms-transform":l,"-o-transform":l,transform:l,"-webkit-transition":s,"-moz-transition":s,transition:s,"font-family":"lato,ubuntu,helvetica,sans-serif",color:"white",position:"absolute",width:"200px","text-align":"center",right:"-50px",top:"50px"})(u),o=On(r)(m),ai.ribbon=o),di}function vi(n){var e,t;return fi?fi.openRzp(n):(fi=new ai(n),e=s,W("message",yn("onmessage",fi))(e),t=di,$n(fi.el)(t)),fi}Ht.open=function(n){return Ht(n).open()},ri.postInit=function(){this.modal={options:{}},this.get("parent")&&this.open()};var pi=ri.onNew;ri.onNew=function(n,e){"payment.error"===n&&Ve(this,"event_paymenterror",b.href),K(pi)&&pi.call(this,n,e)},ri.open=mi(function(){this.metadata||(this.metadata={}),this.metadata.openedAt=u.now();var n=this.checkoutFrame=vi(this);return Ve(this,"open"),n.el.contentWindow||(n.close(),n.afterClose(),s.alert("This browser is not supported.\nPlease try payment in another browser.")),"-new.js"===ci.src.slice(-7)&&Ve(this,"oldscript",b.href),this}),ri.resume=function(n){var e=this.checkoutFrame;e&&e.postMessage({event:"resume",data:n})},ri.close=function(){var n=this.checkoutFrame;n&&n.postMessage({event:"close"})};var _i=mi(function(){hi(),fi=vi();try{!function(){var a={};Pn(ci.attributes,function(n){var e,t,i=n.name.toLowerCase();/^data-/.test(i)&&(e=a,i=i.replace(/^data-/,""),"true"===(t=n.value)?t=!0:"false"===t&&(t=!1),/^notes\./.test(i)&&(a.notes||(a.notes={}),e=a.notes,i=i.replace(/^notes\./,"")),e[i]=t)});var n,e=a.key;e&&0<e.length&&(a.handler=li,n=Ht(a),a.parent||si(n))}()}catch(n){}});s.addEventListener("rzp_error",function(n){var e=n.detail;et.track("cfu_error",{data:{error:e},immediately:!0})}),s.addEventListener("rzp_network_error",function(n){var e=n.detail;e&&"https://lumberjack.razorpay.com/v1/track"===e.baseUrl||et.track("network_error",{data:e,immediately:!0})}),Ve.props.library="checkoutjs",vt.handler=function(n){var e;!x(this,Ht)||(e=this.get("callback_url"))&&le(e,n,"post")},vt.buttontext="Pay Now",vt.parent=null,jt.parent=function(n){if(!q(n))return"parent provided for embedded mode doesn't exist"},_i()}()}();
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
|
2
|
+
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0;
|
3
|
+
}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return c=d.getElementsByTagName("body")[0],c&&c.style?(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],W=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function X(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&U.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var Y=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)Y(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/<tbody/i;function ia(a){Z.test(a.type)&&(a.defaultChecked=a.checked)}function ja(a,b,c,d,e){for(var f,g,h,i,j,k,m,o=a.length,p=ca(b),q=[],r=0;o>r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?"<table>"!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ma.test(f)?this.mouseHooks:la.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=g.srcElement||d),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,h.filter?h.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button,h=b.fromElement;return null==a.pageX&&null!=b.clientX&&(e=a.target.ownerDocument||d,f=e.documentElement,c=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||c&&c.scrollLeft||0)-(f&&f.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||c&&c.scrollTop||0)-(f&&f.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ra()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ra()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=d.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)}:function(a,b,c){var d="on"+b;a.detachEvent&&("undefined"==typeof a[d]&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?pa:qa):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:qa,isPropagationStopped:qa,isImmediatePropagationStopped:qa,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=pa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=pa,a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=pa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submit||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?n.prop(b,"form"):void 0;c&&!n._data(c,"submit")&&(n.event.add(c,"submit._submit",function(a){a._submitBubble=!0}),n._data(c,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.change||(n.event.special.change={setup:function(){return ka.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,a)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;ka.test(b.nodeName)&&!n._data(b,"change")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a)}),n._data(b,"change",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!ka.test(this.nodeName)}}),l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d){return sa(this,a,b,c,d)},one:function(a,b,c,d){return sa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=qa),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ta=/ jQuery\d+="(?:null|\d+)"/g,ua=new RegExp("<(?:"+ba+")[\\s/>]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/<script|<style|<link/i,xa=/checked\s*(?:[^=]|=\s*.checked.)/i,ya=/^true\/(.*)/,za=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ja[0].contentWindow||Ja[0].contentDocument).document,b.write(),b.close(),c=La(a,b),Ja.detach()),Ka[a]=c),c}var Na=/^margin/,Oa=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Pa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Qa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");if(j.style){j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}});function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="<table><tr><td></td><td>t</td></tr></table>",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",f=0===k[0].offsetHeight,f&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}}}();var Ra,Sa,Ta=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ra=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Oa.test(g)&&Na.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0===g?g:g+""}):Qa.currentStyle&&(Ra=function(a){return a.currentStyle},Sa=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Oa.test(g)&&!Ta.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Ua(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Va=/alpha\([^)]*\)/i,Wa=/opacity\s*=\s*([^)]*)/i,Xa=/^(none|table(?!-c[ea]).+)/,Ya=new RegExp("^("+T+")(.*)$","i"),Za={position:"absolute",visibility:"hidden",display:"block"},$a={letterSpacing:"0",fontWeight:"400"},_a=["Webkit","O","Moz","ms"],ab=d.createElement("div").style;function bb(a){if(a in ab)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=_a.length;while(c--)if(a=_a[c]+b,a in ab)return a}function cb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&W(d)&&(f[g]=n._data(d,"olddisplay",Ma(d.nodeName)))):(e=W(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function db(a,b,c){var d=Ya.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function eb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+V[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+V[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+V[f]+"Width",!0,e))):(g+=n.css(a,"padding"+V[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+V[f]+"Width",!0,e)));return g}function fb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g=l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Sa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Oa.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+eb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Sa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=U.exec(c))&&e[1]&&(c=X(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=bb(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Sa(a,b,d)),"normal"===f&&b in $a&&(f=$a[b]),""===c||c?(e=parseFloat(f),c===!0||isFinite(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Xa.test(n.css(a,"display"))&&0===a.offsetWidth?Pa(a,Za,function(){return fb(a,b,d)}):fb(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return db(a,c,d?eb(a,b,d,l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Wa.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Va,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Va.test(f)?f.replace(Va,e):f+" "+e)}}),n.cssHooks.marginRight=Ua(l.reliableMarginRight,function(a,b){return b?Pa(a,{display:"inline-block"},Sa,[a,"marginRight"]):void 0}),n.cssHooks.marginLeft=Ua(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Sa(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Pa(a,{
|
4
|
+
marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+V[d]+b]=f[d]||f[d-2]||f[0];return e}},Na.test(a)||(n.cssHooks[a+b].set=db)}),n.fn.extend({css:function(a,b){return Y(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return cb(this,!0)},hide:function(){return cb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){W(this)?n(this).show():n(this).hide()})}});function gb(a,b,c,d,e){return new gb.prototype.init(a,b,c,d,e)}n.Tween=gb,gb.prototype={constructor:gb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=gb.propHooks[this.prop];return a&&a.get?a.get(this):gb.propHooks._default.get(this)},run:function(a){var b,c=gb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):gb.propHooks._default.set(this),this}},gb.prototype.init.prototype=gb.prototype,gb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},gb.propHooks.scrollTop=gb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=gb.prototype.init,n.fx.step={};var hb,ib,jb=/^(?:toggle|show|hide)$/,kb=/queueHooks$/;function lb(){return a.setTimeout(function(){hb=void 0}),hb=n.now()}function mb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=V[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function nb(a,b,c){for(var d,e=(qb.tweeners[b]||[]).concat(qb.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ob(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&W(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k="none"===j?n._data(a,"olddisplay")||Ma(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==Ma(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],jb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?Ma(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=nb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function pb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function qb(a,b,c){var d,e,f=0,g=qb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=hb||lb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:hb||lb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(pb(k,j.opts.specialEasing);g>f;f++)if(d=qb.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,nb,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(qb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return X(c.elem,a,U.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],qb.tweeners[c]=qb.tweeners[c]||[],qb.tweeners[c].unshift(b)},prefilters:[ob],prefilter:function(a,b){b?qb.prefilters.unshift(a):qb.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(W).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=qb(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&kb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(mb(b,!0),a,d,e)}}),n.each({slideDown:mb("show"),slideUp:mb("hide"),slideToggle:mb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(hb=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),hb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ib||(ib=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(ib),ib=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a,b=d.createElement("input"),c=d.createElement("div"),e=d.createElement("select"),f=e.appendChild(d.createElement("option"));c=d.createElement("div"),c.setAttribute("className","t"),c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var rb=/\r/g,sb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(sb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var tb,ub,vb=n.expr.attrHandle,wb=/^(?:checked|selected)$/i,xb=l.getSetAttribute,yb=l.input;n.fn.extend({attr:function(a,b){return Y(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ub:tb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?yb&&xb||!wb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(xb?c:d)}}),ub={set:function(a,b,c){return b===!1?n.removeAttr(a,c):yb&&xb||!wb.test(c)?a.setAttribute(!xb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=vb[b]||n.find.attr;yb&&xb||!wb.test(b)?vb[b]=function(a,b,d){var e,f;return d||(f=vb[b],vb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,vb[b]=f),e}:vb[b]=function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),yb&&xb||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void(a.defaultValue=b):tb&&tb.set(a,b,c)}}),xb||(tb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},vb.id=vb.name=vb.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:tb.set},n.attrHooks.contenteditable={set:function(a,b,c){tb.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var zb=/^(?:input|select|textarea|button|object)$/i,Ab=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return Y(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):zb.test(a.nodeName)||Ab.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Bb=/[\t\r\n\f]/g;function Cb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Cb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Cb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=Cb(c),d=1===c.nodeType&&(" "+e+" ").replace(Bb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Cb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Cb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||a===!1?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Cb(c)+" ").replace(Bb," ").indexOf(b)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Db=a.location,Eb=n.now(),Fb=/\?/,Gb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Gb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Hb=/#.*$/,Ib=/([?&])_=[^&]*/,Jb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Kb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Lb=/^(?:GET|HEAD)$/,Mb=/^\/\//,Nb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ob={},Pb={},Qb="*/".concat("*"),Rb=Db.href,Sb=Nb.exec(Rb.toLowerCase())||[];function Tb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Ub(a,b,c,d){var e={},f=a===Pb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Vb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Wb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Xb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rb,type:"GET",isLocal:Kb.test(Sb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Vb(Vb(a,n.ajaxSettings),b):Vb(n.ajaxSettings,a)},ajaxPrefilter:Tb(Ob),ajaxTransport:Tb(Pb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Jb.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),y(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Rb)+"").replace(Hb,"").replace(Mb,Sb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(G)||[""],null==l.crossDomain&&(d=Nb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Sb[1]&&d[2]===Sb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Sb[3]||("http:"===Sb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Ub(Ob,l,c,w),2===u)return w;i=n.event&&l.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Lb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Fb.test(f)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Ib.test(f)?f.replace(Ib,"$1_="+Eb++):f+(Fb.test(f)?"&":"?")+"_="+Eb++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Qb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(l.beforeSend.call(m,w,l)===!1||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Ub(Pb,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,y)}catch(x){if(!(2>u))throw x;y(-1,x)}}else y(-1,"No Transport");function y(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&300>b||304===b,d&&(v=Wb(l,w,d)),v=Xb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),x=w.getResponseHeader("etag"),x&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Yb(a){return a.style&&a.style.display||n.css(a,"display")}function Zb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Yb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Zb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var $b=/%20/g,_b=/\[\]$/,ac=/\r?\n/g,bc=/^(?:submit|button|image|reset|file)$/i,cc=/^(?:input|select|textarea|keygen)/i;function dc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||_b.test(a)?d(a,e):dc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)dc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)dc(c,a[c],b,e);return d.join("&").replace($b,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&cc.test(this.nodeName)&&!bc.test(a)&&(this.checked||!Z.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(ac,"\r\n")}}):{name:b.name,value:c.replace(ac,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?ic():d.documentMode>8?hc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&hc()||ic()}:hc;var ec=0,fc={},gc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in fc)fc[a](void 0,!0)}),l.cors=!!gc&&"withCredentials"in gc,gc=l.ajax=!!gc,gc&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++ec;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete fc[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=fc[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function hc(){try{return new a.XMLHttpRequest}catch(b){}}function ic(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var jc=[],kc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=jc.pop()||n.expando+"_"+Eb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(kc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&kc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(kc,"$1"+e):b.jsonp!==!1&&(b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,jc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ja([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var lc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&lc)return lc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function mc(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?("undefined"!=typeof e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=mc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Qa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return Y(this,function(a,d,e){var f=mc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ua(l.pixelPosition,function(a,c){return c?(c=Sa(a,b),Oa.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({
|
5
|
+
padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Y(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var nc=a.jQuery,oc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=oc),b&&a.jQuery===n&&(a.jQuery=nc),n},b||(a.jQuery=a.$=n),n});
|
@@ -0,0 +1,620 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery blockUI plugin
|
3
|
+
* Version 2.70.0-2014.11.23
|
4
|
+
* Requires jQuery v1.7 or later
|
5
|
+
*
|
6
|
+
* Examples at: http://malsup.com/jquery/block/
|
7
|
+
* Copyright (c) 2007-2013 M. Alsup
|
8
|
+
* Dual licensed under the MIT and GPL licenses:
|
9
|
+
* http://www.opensource.org/licenses/mit-license.php
|
10
|
+
* http://www.gnu.org/licenses/gpl.html
|
11
|
+
*
|
12
|
+
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
|
13
|
+
*/
|
14
|
+
|
15
|
+
;(function() {
|
16
|
+
/*jshint eqeqeq:false curly:false latedef:false */
|
17
|
+
"use strict";
|
18
|
+
|
19
|
+
function setup($) {
|
20
|
+
$.fn._fadeIn = $.fn.fadeIn;
|
21
|
+
|
22
|
+
var noOp = $.noop || function() {};
|
23
|
+
|
24
|
+
// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
|
25
|
+
// confusing userAgent strings on Vista)
|
26
|
+
var msie = /MSIE/.test(navigator.userAgent);
|
27
|
+
var ie6 = /MSIE 6.0/.test(navigator.userAgent) && ! /MSIE 8.0/.test(navigator.userAgent);
|
28
|
+
var mode = document.documentMode || 0;
|
29
|
+
var setExpr = $.isFunction( document.createElement('div').style.setExpression );
|
30
|
+
|
31
|
+
// global $ methods for blocking/unblocking the entire page
|
32
|
+
$.blockUI = function(opts) { install(window, opts); };
|
33
|
+
$.unblockUI = function(opts) { remove(window, opts); };
|
34
|
+
|
35
|
+
// convenience method for quick growl-like notifications (http://www.google.com/search?q=growl)
|
36
|
+
$.growlUI = function(title, message, timeout, onClose) {
|
37
|
+
var $m = $('<div class="growlUI"></div>');
|
38
|
+
if (title) $m.append('<h1>'+title+'</h1>');
|
39
|
+
if (message) $m.append('<h2>'+message+'</h2>');
|
40
|
+
if (timeout === undefined) timeout = 3000;
|
41
|
+
|
42
|
+
// Added by konapun: Set timeout to 30 seconds if this growl is moused over, like normal toast notifications
|
43
|
+
var callBlock = function(opts) {
|
44
|
+
opts = opts || {};
|
45
|
+
|
46
|
+
$.blockUI({
|
47
|
+
message: $m,
|
48
|
+
fadeIn : typeof opts.fadeIn !== 'undefined' ? opts.fadeIn : 700,
|
49
|
+
fadeOut: typeof opts.fadeOut !== 'undefined' ? opts.fadeOut : 1000,
|
50
|
+
timeout: typeof opts.timeout !== 'undefined' ? opts.timeout : timeout,
|
51
|
+
centerY: false,
|
52
|
+
showOverlay: false,
|
53
|
+
onUnblock: onClose,
|
54
|
+
css: $.blockUI.defaults.growlCSS
|
55
|
+
});
|
56
|
+
};
|
57
|
+
|
58
|
+
callBlock();
|
59
|
+
var nonmousedOpacity = $m.css('opacity');
|
60
|
+
$m.mouseover(function() {
|
61
|
+
callBlock({
|
62
|
+
fadeIn: 0,
|
63
|
+
timeout: 30000
|
64
|
+
});
|
65
|
+
|
66
|
+
var displayBlock = $('.blockMsg');
|
67
|
+
displayBlock.stop(); // cancel fadeout if it has started
|
68
|
+
displayBlock.fadeTo(300, 1); // make it easier to read the message by removing transparency
|
69
|
+
}).mouseout(function() {
|
70
|
+
$('.blockMsg').fadeOut(1000);
|
71
|
+
});
|
72
|
+
// End konapun additions
|
73
|
+
};
|
74
|
+
|
75
|
+
// plugin method for blocking element content
|
76
|
+
$.fn.block = function(opts) {
|
77
|
+
if ( this[0] === window ) {
|
78
|
+
$.blockUI( opts );
|
79
|
+
return this;
|
80
|
+
}
|
81
|
+
var fullOpts = $.extend({}, $.blockUI.defaults, opts || {});
|
82
|
+
this.each(function() {
|
83
|
+
var $el = $(this);
|
84
|
+
if (fullOpts.ignoreIfBlocked && $el.data('blockUI.isBlocked'))
|
85
|
+
return;
|
86
|
+
$el.unblock({ fadeOut: 0 });
|
87
|
+
});
|
88
|
+
|
89
|
+
return this.each(function() {
|
90
|
+
if ($.css(this,'position') == 'static') {
|
91
|
+
this.style.position = 'relative';
|
92
|
+
$(this).data('blockUI.static', true);
|
93
|
+
}
|
94
|
+
this.style.zoom = 1; // force 'hasLayout' in ie
|
95
|
+
install(this, opts);
|
96
|
+
});
|
97
|
+
};
|
98
|
+
|
99
|
+
// plugin method for unblocking element content
|
100
|
+
$.fn.unblock = function(opts) {
|
101
|
+
if ( this[0] === window ) {
|
102
|
+
$.unblockUI( opts );
|
103
|
+
return this;
|
104
|
+
}
|
105
|
+
return this.each(function() {
|
106
|
+
remove(this, opts);
|
107
|
+
});
|
108
|
+
};
|
109
|
+
|
110
|
+
$.blockUI.version = 2.70; // 2nd generation blocking at no extra cost!
|
111
|
+
|
112
|
+
// override these in your code to change the default behavior and style
|
113
|
+
$.blockUI.defaults = {
|
114
|
+
// message displayed when blocking (use null for no message)
|
115
|
+
message: '<h1>Please wait...</h1>',
|
116
|
+
|
117
|
+
title: null, // title string; only used when theme == true
|
118
|
+
draggable: true, // only used when theme == true (requires jquery-ui.js to be loaded)
|
119
|
+
|
120
|
+
theme: false, // set to true to use with jQuery UI themes
|
121
|
+
|
122
|
+
// styles for the message when blocking; if you wish to disable
|
123
|
+
// these and use an external stylesheet then do this in your code:
|
124
|
+
// $.blockUI.defaults.css = {};
|
125
|
+
css: {
|
126
|
+
padding: 0,
|
127
|
+
margin: 0,
|
128
|
+
width: '30%',
|
129
|
+
top: '40%',
|
130
|
+
left: '35%',
|
131
|
+
textAlign: 'center',
|
132
|
+
color: '#000',
|
133
|
+
border: '3px solid #aaa',
|
134
|
+
backgroundColor:'#fff',
|
135
|
+
cursor: 'wait'
|
136
|
+
},
|
137
|
+
|
138
|
+
// minimal style set used when themes are used
|
139
|
+
themedCSS: {
|
140
|
+
width: '30%',
|
141
|
+
top: '40%',
|
142
|
+
left: '35%'
|
143
|
+
},
|
144
|
+
|
145
|
+
// styles for the overlay
|
146
|
+
overlayCSS: {
|
147
|
+
backgroundColor: '#000',
|
148
|
+
opacity: 0.6,
|
149
|
+
cursor: 'wait'
|
150
|
+
},
|
151
|
+
|
152
|
+
// style to replace wait cursor before unblocking to correct issue
|
153
|
+
// of lingering wait cursor
|
154
|
+
cursorReset: 'default',
|
155
|
+
|
156
|
+
// styles applied when using $.growlUI
|
157
|
+
growlCSS: {
|
158
|
+
width: '350px',
|
159
|
+
top: '10px',
|
160
|
+
left: '',
|
161
|
+
right: '10px',
|
162
|
+
border: 'none',
|
163
|
+
padding: '5px',
|
164
|
+
opacity: 0.6,
|
165
|
+
cursor: 'default',
|
166
|
+
color: '#fff',
|
167
|
+
backgroundColor: '#000',
|
168
|
+
'-webkit-border-radius':'10px',
|
169
|
+
'-moz-border-radius': '10px',
|
170
|
+
'border-radius': '10px'
|
171
|
+
},
|
172
|
+
|
173
|
+
// IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
|
174
|
+
// (hat tip to Jorge H. N. de Vasconcelos)
|
175
|
+
/*jshint scripturl:true */
|
176
|
+
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
|
177
|
+
|
178
|
+
// force usage of iframe in non-IE browsers (handy for blocking applets)
|
179
|
+
forceIframe: false,
|
180
|
+
|
181
|
+
// z-index for the blocking overlay
|
182
|
+
baseZ: 1000,
|
183
|
+
|
184
|
+
// set these to true to have the message automatically centered
|
185
|
+
centerX: true, // <-- only effects element blocking (page block controlled via css above)
|
186
|
+
centerY: true,
|
187
|
+
|
188
|
+
// allow body element to be stetched in ie6; this makes blocking look better
|
189
|
+
// on "short" pages. disable if you wish to prevent changes to the body height
|
190
|
+
allowBodyStretch: true,
|
191
|
+
|
192
|
+
// enable if you want key and mouse events to be disabled for content that is blocked
|
193
|
+
bindEvents: true,
|
194
|
+
|
195
|
+
// be default blockUI will supress tab navigation from leaving blocking content
|
196
|
+
// (if bindEvents is true)
|
197
|
+
constrainTabKey: true,
|
198
|
+
|
199
|
+
// fadeIn time in millis; set to 0 to disable fadeIn on block
|
200
|
+
fadeIn: 200,
|
201
|
+
|
202
|
+
// fadeOut time in millis; set to 0 to disable fadeOut on unblock
|
203
|
+
fadeOut: 400,
|
204
|
+
|
205
|
+
// time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
|
206
|
+
timeout: 0,
|
207
|
+
|
208
|
+
// disable if you don't want to show the overlay
|
209
|
+
showOverlay: true,
|
210
|
+
|
211
|
+
// if true, focus will be placed in the first available input field when
|
212
|
+
// page blocking
|
213
|
+
focusInput: true,
|
214
|
+
|
215
|
+
// elements that can receive focus
|
216
|
+
focusableElements: ':input:enabled:visible',
|
217
|
+
|
218
|
+
// suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
|
219
|
+
// no longer needed in 2012
|
220
|
+
// applyPlatformOpacityRules: true,
|
221
|
+
|
222
|
+
// callback method invoked when fadeIn has completed and blocking message is visible
|
223
|
+
onBlock: null,
|
224
|
+
|
225
|
+
// callback method invoked when unblocking has completed; the callback is
|
226
|
+
// passed the element that has been unblocked (which is the window object for page
|
227
|
+
// blocks) and the options that were passed to the unblock call:
|
228
|
+
// onUnblock(element, options)
|
229
|
+
onUnblock: null,
|
230
|
+
|
231
|
+
// callback method invoked when the overlay area is clicked.
|
232
|
+
// setting this will turn the cursor to a pointer, otherwise cursor defined in overlayCss will be used.
|
233
|
+
onOverlayClick: null,
|
234
|
+
|
235
|
+
// don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
|
236
|
+
quirksmodeOffsetHack: 4,
|
237
|
+
|
238
|
+
// class name of the message block
|
239
|
+
blockMsgClass: 'blockMsg',
|
240
|
+
|
241
|
+
// if it is already blocked, then ignore it (don't unblock and reblock)
|
242
|
+
ignoreIfBlocked: false
|
243
|
+
};
|
244
|
+
|
245
|
+
// private data and functions follow...
|
246
|
+
|
247
|
+
var pageBlock = null;
|
248
|
+
var pageBlockEls = [];
|
249
|
+
|
250
|
+
function install(el, opts) {
|
251
|
+
var css, themedCSS;
|
252
|
+
var full = (el == window);
|
253
|
+
var msg = (opts && opts.message !== undefined ? opts.message : undefined);
|
254
|
+
opts = $.extend({}, $.blockUI.defaults, opts || {});
|
255
|
+
|
256
|
+
if (opts.ignoreIfBlocked && $(el).data('blockUI.isBlocked'))
|
257
|
+
return;
|
258
|
+
|
259
|
+
opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
|
260
|
+
css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
|
261
|
+
if (opts.onOverlayClick)
|
262
|
+
opts.overlayCSS.cursor = 'pointer';
|
263
|
+
|
264
|
+
themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {});
|
265
|
+
msg = msg === undefined ? opts.message : msg;
|
266
|
+
|
267
|
+
// remove the current block (if there is one)
|
268
|
+
if (full && pageBlock)
|
269
|
+
remove(window, {fadeOut:0});
|
270
|
+
|
271
|
+
// if an existing element is being used as the blocking content then we capture
|
272
|
+
// its current place in the DOM (and current display style) so we can restore
|
273
|
+
// it when we unblock
|
274
|
+
if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
|
275
|
+
var node = msg.jquery ? msg[0] : msg;
|
276
|
+
var data = {};
|
277
|
+
$(el).data('blockUI.history', data);
|
278
|
+
data.el = node;
|
279
|
+
data.parent = node.parentNode;
|
280
|
+
data.display = node.style.display;
|
281
|
+
data.position = node.style.position;
|
282
|
+
if (data.parent)
|
283
|
+
data.parent.removeChild(node);
|
284
|
+
}
|
285
|
+
|
286
|
+
$(el).data('blockUI.onUnblock', opts.onUnblock);
|
287
|
+
var z = opts.baseZ;
|
288
|
+
|
289
|
+
// blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
|
290
|
+
// layer1 is the iframe layer which is used to supress bleed through of underlying content
|
291
|
+
// layer2 is the overlay layer which has opacity and a wait cursor (by default)
|
292
|
+
// layer3 is the message content that is displayed while blocking
|
293
|
+
var lyr1, lyr2, lyr3, s;
|
294
|
+
if (msie || opts.forceIframe)
|
295
|
+
lyr1 = $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>');
|
296
|
+
else
|
297
|
+
lyr1 = $('<div class="blockUI" style="display:none"></div>');
|
298
|
+
|
299
|
+
if (opts.theme)
|
300
|
+
lyr2 = $('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+ (z++) +';display:none"></div>');
|
301
|
+
else
|
302
|
+
lyr2 = $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
|
303
|
+
|
304
|
+
if (opts.theme && full) {
|
305
|
+
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:fixed">';
|
306
|
+
if ( opts.title ) {
|
307
|
+
s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || ' ')+'</div>';
|
308
|
+
}
|
309
|
+
s += '<div class="ui-widget-content ui-dialog-content"></div>';
|
310
|
+
s += '</div>';
|
311
|
+
}
|
312
|
+
else if (opts.theme) {
|
313
|
+
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:absolute">';
|
314
|
+
if ( opts.title ) {
|
315
|
+
s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || ' ')+'</div>';
|
316
|
+
}
|
317
|
+
s += '<div class="ui-widget-content ui-dialog-content"></div>';
|
318
|
+
s += '</div>';
|
319
|
+
}
|
320
|
+
else if (full) {
|
321
|
+
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage" style="z-index:'+(z+10)+';display:none;position:fixed"></div>';
|
322
|
+
}
|
323
|
+
else {
|
324
|
+
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement" style="z-index:'+(z+10)+';display:none;position:absolute"></div>';
|
325
|
+
}
|
326
|
+
lyr3 = $(s);
|
327
|
+
|
328
|
+
// if we have a message, style it
|
329
|
+
if (msg) {
|
330
|
+
if (opts.theme) {
|
331
|
+
lyr3.css(themedCSS);
|
332
|
+
lyr3.addClass('ui-widget-content');
|
333
|
+
}
|
334
|
+
else
|
335
|
+
lyr3.css(css);
|
336
|
+
}
|
337
|
+
|
338
|
+
// style the overlay
|
339
|
+
if (!opts.theme /*&& (!opts.applyPlatformOpacityRules)*/)
|
340
|
+
lyr2.css(opts.overlayCSS);
|
341
|
+
lyr2.css('position', full ? 'fixed' : 'absolute');
|
342
|
+
|
343
|
+
// make iframe layer transparent in IE
|
344
|
+
if (msie || opts.forceIframe)
|
345
|
+
lyr1.css('opacity',0.0);
|
346
|
+
|
347
|
+
//$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
|
348
|
+
var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el);
|
349
|
+
$.each(layers, function() {
|
350
|
+
this.appendTo($par);
|
351
|
+
});
|
352
|
+
|
353
|
+
if (opts.theme && opts.draggable && $.fn.draggable) {
|
354
|
+
lyr3.draggable({
|
355
|
+
handle: '.ui-dialog-titlebar',
|
356
|
+
cancel: 'li'
|
357
|
+
});
|
358
|
+
}
|
359
|
+
|
360
|
+
// ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
|
361
|
+
var expr = setExpr && (!$.support.boxModel || $('object,embed', full ? null : el).length > 0);
|
362
|
+
if (ie6 || expr) {
|
363
|
+
// give body 100% height
|
364
|
+
if (full && opts.allowBodyStretch && $.support.boxModel)
|
365
|
+
$('html,body').css('height','100%');
|
366
|
+
|
367
|
+
// fix ie6 issue when blocked element has a border width
|
368
|
+
if ((ie6 || !$.support.boxModel) && !full) {
|
369
|
+
var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
|
370
|
+
var fixT = t ? '(0 - '+t+')' : 0;
|
371
|
+
var fixL = l ? '(0 - '+l+')' : 0;
|
372
|
+
}
|
373
|
+
|
374
|
+
// simulate fixed position
|
375
|
+
$.each(layers, function(i,o) {
|
376
|
+
var s = o[0].style;
|
377
|
+
s.position = 'absolute';
|
378
|
+
if (i < 2) {
|
379
|
+
if (full)
|
380
|
+
s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"');
|
381
|
+
else
|
382
|
+
s.setExpression('height','this.parentNode.offsetHeight + "px"');
|
383
|
+
if (full)
|
384
|
+
s.setExpression('width','jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"');
|
385
|
+
else
|
386
|
+
s.setExpression('width','this.parentNode.offsetWidth + "px"');
|
387
|
+
if (fixL) s.setExpression('left', fixL);
|
388
|
+
if (fixT) s.setExpression('top', fixT);
|
389
|
+
}
|
390
|
+
else if (opts.centerY) {
|
391
|
+
if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
|
392
|
+
s.marginTop = 0;
|
393
|
+
}
|
394
|
+
else if (!opts.centerY && full) {
|
395
|
+
var top = (opts.css && opts.css.top) ? parseInt(opts.css.top, 10) : 0;
|
396
|
+
var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
|
397
|
+
s.setExpression('top',expression);
|
398
|
+
}
|
399
|
+
});
|
400
|
+
}
|
401
|
+
|
402
|
+
// show the message
|
403
|
+
if (msg) {
|
404
|
+
if (opts.theme)
|
405
|
+
lyr3.find('.ui-widget-content').append(msg);
|
406
|
+
else
|
407
|
+
lyr3.append(msg);
|
408
|
+
if (msg.jquery || msg.nodeType)
|
409
|
+
$(msg).show();
|
410
|
+
}
|
411
|
+
|
412
|
+
if ((msie || opts.forceIframe) && opts.showOverlay)
|
413
|
+
lyr1.show(); // opacity is zero
|
414
|
+
if (opts.fadeIn) {
|
415
|
+
var cb = opts.onBlock ? opts.onBlock : noOp;
|
416
|
+
var cb1 = (opts.showOverlay && !msg) ? cb : noOp;
|
417
|
+
var cb2 = msg ? cb : noOp;
|
418
|
+
if (opts.showOverlay)
|
419
|
+
lyr2._fadeIn(opts.fadeIn, cb1);
|
420
|
+
if (msg)
|
421
|
+
lyr3._fadeIn(opts.fadeIn, cb2);
|
422
|
+
}
|
423
|
+
else {
|
424
|
+
if (opts.showOverlay)
|
425
|
+
lyr2.show();
|
426
|
+
if (msg)
|
427
|
+
lyr3.show();
|
428
|
+
if (opts.onBlock)
|
429
|
+
opts.onBlock.bind(lyr3)();
|
430
|
+
}
|
431
|
+
|
432
|
+
// bind key and mouse events
|
433
|
+
bind(1, el, opts);
|
434
|
+
|
435
|
+
if (full) {
|
436
|
+
pageBlock = lyr3[0];
|
437
|
+
pageBlockEls = $(opts.focusableElements,pageBlock);
|
438
|
+
if (opts.focusInput)
|
439
|
+
setTimeout(focus, 20);
|
440
|
+
}
|
441
|
+
else
|
442
|
+
center(lyr3[0], opts.centerX, opts.centerY);
|
443
|
+
|
444
|
+
if (opts.timeout) {
|
445
|
+
// auto-unblock
|
446
|
+
var to = setTimeout(function() {
|
447
|
+
if (full)
|
448
|
+
$.unblockUI(opts);
|
449
|
+
else
|
450
|
+
$(el).unblock(opts);
|
451
|
+
}, opts.timeout);
|
452
|
+
$(el).data('blockUI.timeout', to);
|
453
|
+
}
|
454
|
+
}
|
455
|
+
|
456
|
+
// remove the block
|
457
|
+
function remove(el, opts) {
|
458
|
+
var count;
|
459
|
+
var full = (el == window);
|
460
|
+
var $el = $(el);
|
461
|
+
var data = $el.data('blockUI.history');
|
462
|
+
var to = $el.data('blockUI.timeout');
|
463
|
+
if (to) {
|
464
|
+
clearTimeout(to);
|
465
|
+
$el.removeData('blockUI.timeout');
|
466
|
+
}
|
467
|
+
opts = $.extend({}, $.blockUI.defaults, opts || {});
|
468
|
+
bind(0, el, opts); // unbind events
|
469
|
+
|
470
|
+
if (opts.onUnblock === null) {
|
471
|
+
opts.onUnblock = $el.data('blockUI.onUnblock');
|
472
|
+
$el.removeData('blockUI.onUnblock');
|
473
|
+
}
|
474
|
+
|
475
|
+
var els;
|
476
|
+
if (full) // crazy selector to handle odd field errors in ie6/7
|
477
|
+
els = $('body').children().filter('.blockUI').add('body > .blockUI');
|
478
|
+
else
|
479
|
+
els = $el.find('>.blockUI');
|
480
|
+
|
481
|
+
// fix cursor issue
|
482
|
+
if ( opts.cursorReset ) {
|
483
|
+
if ( els.length > 1 )
|
484
|
+
els[1].style.cursor = opts.cursorReset;
|
485
|
+
if ( els.length > 2 )
|
486
|
+
els[2].style.cursor = opts.cursorReset;
|
487
|
+
}
|
488
|
+
|
489
|
+
if (full)
|
490
|
+
pageBlock = pageBlockEls = null;
|
491
|
+
|
492
|
+
if (opts.fadeOut) {
|
493
|
+
count = els.length;
|
494
|
+
els.stop().fadeOut(opts.fadeOut, function() {
|
495
|
+
if ( --count === 0)
|
496
|
+
reset(els,data,opts,el);
|
497
|
+
});
|
498
|
+
}
|
499
|
+
else
|
500
|
+
reset(els, data, opts, el);
|
501
|
+
}
|
502
|
+
|
503
|
+
// move blocking element back into the DOM where it started
|
504
|
+
function reset(els,data,opts,el) {
|
505
|
+
var $el = $(el);
|
506
|
+
if ( $el.data('blockUI.isBlocked') )
|
507
|
+
return;
|
508
|
+
|
509
|
+
els.each(function(i,o) {
|
510
|
+
// remove via DOM calls so we don't lose event handlers
|
511
|
+
if (this.parentNode)
|
512
|
+
this.parentNode.removeChild(this);
|
513
|
+
});
|
514
|
+
|
515
|
+
if (data && data.el) {
|
516
|
+
data.el.style.display = data.display;
|
517
|
+
data.el.style.position = data.position;
|
518
|
+
data.el.style.cursor = 'default'; // #59
|
519
|
+
if (data.parent)
|
520
|
+
data.parent.appendChild(data.el);
|
521
|
+
$el.removeData('blockUI.history');
|
522
|
+
}
|
523
|
+
|
524
|
+
if ($el.data('blockUI.static')) {
|
525
|
+
$el.css('position', 'static'); // #22
|
526
|
+
}
|
527
|
+
|
528
|
+
if (typeof opts.onUnblock == 'function')
|
529
|
+
opts.onUnblock(el,opts);
|
530
|
+
|
531
|
+
// fix issue in Safari 6 where block artifacts remain until reflow
|
532
|
+
var body = $(document.body), w = body.width(), cssW = body[0].style.width;
|
533
|
+
body.width(w-1).width(w);
|
534
|
+
body[0].style.width = cssW;
|
535
|
+
}
|
536
|
+
|
537
|
+
// bind/unbind the handler
|
538
|
+
function bind(b, el, opts) {
|
539
|
+
var full = el == window, $el = $(el);
|
540
|
+
|
541
|
+
// don't bother unbinding if there is nothing to unbind
|
542
|
+
if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
|
543
|
+
return;
|
544
|
+
|
545
|
+
$el.data('blockUI.isBlocked', b);
|
546
|
+
|
547
|
+
// don't bind events when overlay is not in use or if bindEvents is false
|
548
|
+
if (!full || !opts.bindEvents || (b && !opts.showOverlay))
|
549
|
+
return;
|
550
|
+
|
551
|
+
// bind anchors and inputs for mouse and key events
|
552
|
+
var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove';
|
553
|
+
if (b)
|
554
|
+
$(document).bind(events, opts, handler);
|
555
|
+
else
|
556
|
+
$(document).unbind(events, handler);
|
557
|
+
|
558
|
+
// former impl...
|
559
|
+
// var $e = $('a,:input');
|
560
|
+
// b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
|
561
|
+
}
|
562
|
+
|
563
|
+
// event handler to suppress keyboard/mouse events when blocking
|
564
|
+
function handler(e) {
|
565
|
+
// allow tab navigation (conditionally)
|
566
|
+
if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) {
|
567
|
+
if (pageBlock && e.data.constrainTabKey) {
|
568
|
+
var els = pageBlockEls;
|
569
|
+
var fwd = !e.shiftKey && e.target === els[els.length-1];
|
570
|
+
var back = e.shiftKey && e.target === els[0];
|
571
|
+
if (fwd || back) {
|
572
|
+
setTimeout(function(){focus(back);},10);
|
573
|
+
return false;
|
574
|
+
}
|
575
|
+
}
|
576
|
+
}
|
577
|
+
var opts = e.data;
|
578
|
+
var target = $(e.target);
|
579
|
+
if (target.hasClass('blockOverlay') && opts.onOverlayClick)
|
580
|
+
opts.onOverlayClick(e);
|
581
|
+
|
582
|
+
// allow events within the message content
|
583
|
+
if (target.parents('div.' + opts.blockMsgClass).length > 0)
|
584
|
+
return true;
|
585
|
+
|
586
|
+
// allow events for content that is not being blocked
|
587
|
+
return target.parents().children().filter('div.blockUI').length === 0;
|
588
|
+
}
|
589
|
+
|
590
|
+
function focus(back) {
|
591
|
+
if (!pageBlockEls)
|
592
|
+
return;
|
593
|
+
var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
|
594
|
+
if (e)
|
595
|
+
e.focus();
|
596
|
+
}
|
597
|
+
|
598
|
+
function center(el, x, y) {
|
599
|
+
var p = el.parentNode, s = el.style;
|
600
|
+
var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
|
601
|
+
var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
|
602
|
+
if (x) s.left = l > 0 ? (l+'px') : '0';
|
603
|
+
if (y) s.top = t > 0 ? (t+'px') : '0';
|
604
|
+
}
|
605
|
+
|
606
|
+
function sz(el, p) {
|
607
|
+
return parseInt($.css(el,p),10)||0;
|
608
|
+
}
|
609
|
+
|
610
|
+
}
|
611
|
+
|
612
|
+
|
613
|
+
/*global define:true */
|
614
|
+
if (typeof define === 'function' && define.amd && define.amd.jQuery) {
|
615
|
+
define(['jquery'], setup);
|
616
|
+
} else {
|
617
|
+
setup(jQuery);
|
618
|
+
}
|
619
|
+
|
620
|
+
})();
|