Browse Source

Added jquery file

Christian 5 years ago
parent
commit
8a2f7d2a32
100 changed files with 31354 additions and 0 deletions
  1. 321
    0
      www/jquery/AUTHORS.txt
  2. 20
    0
      www/jquery/LICENSE.txt
  3. 67
    0
      www/jquery/README.md
  4. 14
    0
      www/jquery/bower.json
  5. 399
    0
      www/jquery/dist/core.js
  6. 10598
    0
      www/jquery/dist/jquery.js
  7. 2
    0
      www/jquery/dist/jquery.min.js
  8. 1
    0
      www/jquery/dist/jquery.min.map
  9. 8495
    0
      www/jquery/dist/jquery.slim.js
  10. 2
    0
      www/jquery/dist/jquery.slim.min.js
  11. 1
    0
      www/jquery/dist/jquery.slim.min.map
  12. 36
    0
      www/jquery/external/sizzle/LICENSE.txt
  13. 2282
    0
      www/jquery/external/sizzle/dist/sizzle.js
  14. 3
    0
      www/jquery/external/sizzle/dist/sizzle.min.js
  15. 1
    0
      www/jquery/external/sizzle/dist/sizzle.min.map
  16. 139
    0
      www/jquery/package.json
  17. 14
    0
      www/jquery/src/.eslintrc.json
  18. 858
    0
      www/jquery/src/ajax.js
  19. 103
    0
      www/jquery/src/ajax/jsonp.js
  20. 77
    0
      www/jquery/src/ajax/load.js
  21. 30
    0
      www/jquery/src/ajax/parseXML.js
  22. 74
    0
      www/jquery/src/ajax/script.js
  23. 5
    0
      www/jquery/src/ajax/var/location.js
  24. 5
    0
      www/jquery/src/ajax/var/nonce.js
  25. 5
    0
      www/jquery/src/ajax/var/rquery.js
  26. 170
    0
      www/jquery/src/ajax/xhr.js
  27. 13
    0
      www/jquery/src/attributes.js
  28. 141
    0
      www/jquery/src/attributes/attr.js
  29. 186
    0
      www/jquery/src/attributes/classes.js
  30. 143
    0
      www/jquery/src/attributes/prop.js
  31. 33
    0
      www/jquery/src/attributes/support.js
  32. 191
    0
      www/jquery/src/attributes/val.js
  33. 236
    0
      www/jquery/src/callbacks.js
  34. 399
    0
      www/jquery/src/core.js
  35. 43
    0
      www/jquery/src/core/DOMEval.js
  36. 72
    0
      www/jquery/src/core/access.js
  37. 23
    0
      www/jquery/src/core/camelCase.js
  38. 129
    0
      www/jquery/src/core/init.js
  39. 26
    0
      www/jquery/src/core/isAttached.js
  40. 13
    0
      www/jquery/src/core/nodeName.js
  41. 65
    0
      www/jquery/src/core/parseHTML.js
  42. 97
    0
      www/jquery/src/core/ready-no-deferred.js
  43. 86
    0
      www/jquery/src/core/ready.js
  44. 13
    0
      www/jquery/src/core/readyException.js
  45. 14
    0
      www/jquery/src/core/stripAndCollapse.js
  46. 20
    0
      www/jquery/src/core/support.js
  47. 20
    0
      www/jquery/src/core/toType.js
  48. 7
    0
      www/jquery/src/core/var/rsingleTag.js
  49. 484
    0
      www/jquery/src/css.js
  50. 26
    0
      www/jquery/src/css/addGetHookIf.js
  51. 74
    0
      www/jquery/src/css/adjustCSS.js
  52. 65
    0
      www/jquery/src/css/curCSS.js
  53. 42
    0
      www/jquery/src/css/finalPropName.js
  54. 15
    0
      www/jquery/src/css/hiddenVisibleSelectors.js
  55. 105
    0
      www/jquery/src/css/showHide.js
  56. 104
    0
      www/jquery/src/css/support.js
  57. 5
    0
      www/jquery/src/css/var/cssExpand.js
  58. 17
    0
      www/jquery/src/css/var/getStyles.js
  59. 34
    0
      www/jquery/src/css/var/isHiddenWithinTree.js
  60. 7
    0
      www/jquery/src/css/var/rboxStyle.js
  61. 7
    0
      www/jquery/src/css/var/rnumnonpx.js
  62. 26
    0
      www/jquery/src/css/var/swap.js
  63. 180
    0
      www/jquery/src/data.js
  64. 162
    0
      www/jquery/src/data/Data.js
  65. 19
    0
      www/jquery/src/data/var/acceptData.js
  66. 7
    0
      www/jquery/src/data/var/dataPriv.js
  67. 7
    0
      www/jquery/src/data/var/dataUser.js
  68. 399
    0
      www/jquery/src/deferred.js
  69. 21
    0
      www/jquery/src/deferred/exceptionHook.js
  70. 98
    0
      www/jquery/src/deprecated.js
  71. 57
    0
      www/jquery/src/dimensions.js
  72. 702
    0
      www/jquery/src/effects.js
  73. 125
    0
      www/jquery/src/effects/Tween.js
  74. 15
    0
      www/jquery/src/effects/animatedSelector.js
  75. 888
    0
      www/jquery/src/event.js
  76. 22
    0
      www/jquery/src/event/ajax.js
  77. 29
    0
      www/jquery/src/event/alias.js
  78. 55
    0
      www/jquery/src/event/focusin.js
  79. 11
    0
      www/jquery/src/event/support.js
  80. 199
    0
      www/jquery/src/event/trigger.js
  81. 26
    0
      www/jquery/src/exports/amd.js
  82. 34
    0
      www/jquery/src/exports/global.js
  83. 40
    0
      www/jquery/src/jquery.js
  84. 489
    0
      www/jquery/src/manipulation.js
  85. 32
    0
      www/jquery/src/manipulation/_evalUrl.js
  86. 106
    0
      www/jquery/src/manipulation/buildFragment.js
  87. 32
    0
      www/jquery/src/manipulation/getAll.js
  88. 22
    0
      www/jquery/src/manipulation/setGlobalEval.js
  89. 35
    0
      www/jquery/src/manipulation/support.js
  90. 5
    0
      www/jquery/src/manipulation/var/rscriptType.js
  91. 8
    0
      www/jquery/src/manipulation/var/rtagName.js
  92. 29
    0
      www/jquery/src/manipulation/wrapMap.js
  93. 233
    0
      www/jquery/src/offset.js
  94. 145
    0
      www/jquery/src/queue.js
  95. 24
    0
      www/jquery/src/queue/delay.js
  96. 237
    0
      www/jquery/src/selector-native.js
  97. 19
    0
      www/jquery/src/selector-sizzle.js
  98. 3
    0
      www/jquery/src/selector.js
  99. 136
    0
      www/jquery/src/serialize.js
  100. 0
    0
      www/jquery/src/traversing.js

+ 321
- 0
www/jquery/AUTHORS.txt View File

@@ -0,0 +1,321 @@
1
+Authors ordered by first contribution.
2
+
3
+John Resig <jeresig@gmail.com>
4
+Gilles van den Hoven <gilles0181@gmail.com>
5
+Michael Geary <mike@geary.com>
6
+Stefan Petre <stefan.petre@gmail.com>
7
+Yehuda Katz <wycats@gmail.com>
8
+Corey Jewett <cj@syntheticplayground.com>
9
+Klaus Hartl <klaus.hartl@gmail.com>
10
+Franck Marcia <franck.marcia@gmail.com>
11
+Jörn Zaefferer <joern.zaefferer@gmail.com>
12
+Paul Bakaus <paul.bakaus@gmail.com>
13
+Brandon Aaron <brandon.aaron@gmail.com>
14
+Mike Alsup <malsup@gmail.com>
15
+Dave Methvin <dave.methvin@gmail.com>
16
+Ed Engelhardt <edengelhardt@gmail.com>
17
+Sean Catchpole <littlecooldude@gmail.com>
18
+Paul Mclanahan <pmclanahan@gmail.com>
19
+David Serduke <davidserduke@gmail.com>
20
+Richard D. Worth <rdworth@gmail.com>
21
+Scott González <scott.gonzalez@gmail.com>
22
+Ariel Flesler <aflesler@gmail.com>
23
+Jon Evans <jon@springyweb.com>
24
+TJ Holowaychuk <tj@vision-media.ca>
25
+Michael Bensoussan <mickey@seesmic.com>
26
+Robert Katić <robert.katic@gmail.com>
27
+Louis-Rémi Babé <lrbabe@gmail.com>
28
+Earle Castledine <mrspeaker@gmail.com>
29
+Damian Janowski <damian.janowski@gmail.com>
30
+Rich Dougherty <rich@rd.gen.nz>
31
+Kim Dalsgaard <kim@kimdalsgaard.com>
32
+Andrea Giammarchi <andrea.giammarchi@gmail.com>
33
+Mark Gibson <jollytoad@gmail.com>
34
+Karl Swedberg <kswedberg@gmail.com>
35
+Justin Meyer <justinbmeyer@gmail.com>
36
+Ben Alman <cowboy@rj3.net>
37
+James Padolsey <cla@padolsey.net>
38
+David Petersen <public@petersendidit.com>
39
+Batiste Bieler <batiste.bieler@gmail.com>
40
+Alexander Farkas <info@corrupt-system.de>
41
+Rick Waldron <waldron.rick@gmail.com>
42
+Filipe Fortes <filipe@fortes.com>
43
+Neeraj Singh <neerajdotname@gmail.com>
44
+Paul Irish <paul.irish@gmail.com>
45
+Iraê Carvalho <irae@irae.pro.br>
46
+Matt Curry <matt@pseudocoder.com>
47
+Michael Monteleone <michael@michaelmonteleone.net>
48
+Noah Sloan <noah.sloan@gmail.com>
49
+Tom Viner <github@viner.tv>
50
+Douglas Neiner <doug@dougneiner.com>
51
+Adam J. Sontag <ajpiano@ajpiano.com>
52
+Dave Reed <dareed@microsoft.com>
53
+Ralph Whitbeck <ralph.whitbeck@gmail.com>
54
+Carl Fürstenberg <azatoth@gmail.com>
55
+Jacob Wright <jacwright@gmail.com>
56
+J. Ryan Stinnett <jryans@gmail.com>
57
+unknown <Igen005@.upcorp.ad.uprr.com>
58
+temp01 <temp01irc@gmail.com>
59
+Heungsub Lee <h@subl.ee>
60
+Colin Snover <github.com@zetafleet.com>
61
+Ryan W Tenney <ryan@10e.us>
62
+Pinhook <contact@pinhooklabs.com>
63
+Ron Otten <r.j.g.otten@gmail.com>
64
+Jephte Clain <Jephte.Clain@univ-reunion.fr>
65
+Anton Matzneller <obhvsbypqghgc@gmail.com>
66
+Alex Sexton <AlexSexton@gmail.com>
67
+Dan Heberden <danheberden@gmail.com>
68
+Henri Wiechers <hwiechers@gmail.com>
69
+Russell Holbrook <russell.holbrook@patch.com>
70
+Julian Aubourg <aubourg.julian@gmail.com>
71
+Gianni Alessandro Chiappetta <gianni@runlevel6.org>
72
+Scott Jehl <scottjehl@gmail.com>
73
+James Burke <jrburke@gmail.com>
74
+Jonas Pfenniger <jonas@pfenniger.name>
75
+Xavi Ramirez <xavi.rmz@gmail.com>
76
+Jared Grippe <jared@deadlyicon.com>
77
+Sylvester Keil <sylvester@keil.or.at>
78
+Brandon Sterne <bsterne@mozilla.com>
79
+Mathias Bynens <mathias@qiwi.be>
80
+Timmy Willison <4timmywil@gmail.com>
81
+Corey Frang <gnarf37@gmail.com>
82
+Digitalxero <digitalxero>
83
+Anton Kovalyov <anton@kovalyov.net>
84
+David Murdoch <david@davidmurdoch.com>
85
+Josh Varner <josh.varner@gmail.com>
86
+Charles McNulty <cmcnulty@kznf.com>
87
+Jordan Boesch <jboesch26@gmail.com>
88
+Jess Thrysoee <jess@thrysoee.dk>
89
+Michael Murray <m@murz.net>
90
+Lee Carpenter <elcarpie@gmail.com>
91
+Alexis Abril <me@alexisabril.com>
92
+Rob Morgan <robbym@gmail.com>
93
+John Firebaugh <john_firebaugh@bigfix.com>
94
+Sam Bisbee <sam@sbisbee.com>
95
+Gilmore Davidson <gilmoreorless@gmail.com>
96
+Brian Brennan <me@brianlovesthings.com>
97
+Xavier Montillet <xavierm02.net@gmail.com>
98
+Daniel Pihlstrom <sciolist.se@gmail.com>
99
+Sahab Yazdani <sahab.yazdani+github@gmail.com>
100
+avaly <github-com@agachi.name>
101
+Scott Hughes <hi@scott-hughes.me>
102
+Mike Sherov <mike.sherov@gmail.com>
103
+Greg Hazel <ghazel@gmail.com>
104
+Schalk Neethling <schalk@ossreleasefeed.com>
105
+Denis Knauf <Denis.Knauf@gmail.com>
106
+Timo Tijhof <krinklemail@gmail.com>
107
+Steen Nielsen <swinedk@gmail.com>
108
+Anton Ryzhov <anton@ryzhov.me>
109
+Shi Chuan <shichuanr@gmail.com>
110
+Berker Peksag <berker.peksag@gmail.com>
111
+Toby Brain <tobyb@freshview.com>
112
+Matt Mueller <mattmuelle@gmail.com>
113
+Justin <drakefjustin@gmail.com>
114
+Daniel Herman <daniel.c.herman@gmail.com>
115
+Oleg Gaidarenko <markelog@gmail.com>
116
+Richard Gibson <richard.gibson@gmail.com>
117
+Rafaël Blais Masson <rafbmasson@gmail.com>
118
+cmc3cn <59194618@qq.com>
119
+Joe Presbrey <presbrey@gmail.com>
120
+Sindre Sorhus <sindresorhus@gmail.com>
121
+Arne de Bree <arne@bukkie.nl>
122
+Vladislav Zarakovsky <vlad.zar@gmail.com>
123
+Andrew E Monat <amonat@gmail.com>
124
+Oskari <admin@o-programs.com>
125
+Joao Henrique de Andrade Bruni <joaohbruni@yahoo.com.br>
126
+tsinha <tsinha@Anthonys-MacBook-Pro.local>
127
+Matt Farmer <matt@frmr.me>
128
+Trey Hunner <treyhunner@gmail.com>
129
+Jason Moon <jmoon@socialcast.com>
130
+Jeffery To <jeffery.to@gmail.com>
131
+Kris Borchers <kris.borchers@gmail.com>
132
+Vladimir Zhuravlev <private.face@gmail.com>
133
+Jacob Thornton <jacobthornton@gmail.com>
134
+Chad Killingsworth <chadkillingsworth@missouristate.edu>
135
+Nowres Rafid <nowres.rafed@gmail.com>
136
+David Benjamin <davidben@mit.edu>
137
+Uri Gilad <antishok@gmail.com>
138
+Chris Faulkner <thefaulkner@gmail.com>
139
+Elijah Manor <elijah.manor@gmail.com>
140
+Daniel Chatfield <chatfielddaniel@gmail.com>
141
+Nikita Govorov <nikita.govorov@gmail.com>
142
+Wesley Walser <waw325@gmail.com>
143
+Mike Pennisi <mike@mikepennisi.com>
144
+Markus Staab <markus.staab@redaxo.de>
145
+Dave Riddle <david@joyvuu.com>
146
+Callum Macrae <callum@lynxphp.com>
147
+Benjamin Truyman <bentruyman@gmail.com>
148
+James Huston <james@jameshuston.net>
149
+Erick Ruiz de Chávez <erickrdch@gmail.com>
150
+David Bonner <dbonner@cogolabs.com>
151
+Akintayo Akinwunmi <aakinwunmi@judge.com>
152
+MORGAN <morgan@morgangraphics.com>
153
+Ismail Khair <ismail.khair@gmail.com>
154
+Carl Danley <carldanley@gmail.com>
155
+Mike Petrovich <michael.c.petrovich@gmail.com>
156
+Greg Lavallee <greglavallee@wapolabs.com>
157
+Daniel Gálvez <dgalvez@editablething.com>
158
+Sai Lung Wong <sai.wong@huffingtonpost.com>
159
+Tom H Fuertes <TomFuertes@gmail.com>
160
+Roland Eckl <eckl.roland@googlemail.com>
161
+Jay Merrifield <fracmak@gmail.com>
162
+Allen J Schmidt Jr <cobrasoft@gmail.com>
163
+Jonathan Sampson <jjdsampson@gmail.com>
164
+Marcel Greter <marcel.greter@ocbnet.ch>
165
+Matthias Jäggli <matthias.jaeggli@gmail.com>
166
+David Fox <dfoxinator@gmail.com>
167
+Yiming He <yiminghe@gmail.com>
168
+Devin Cooper <cooper.semantics@gmail.com>
169
+Paul Ramos <paul.b.ramos@gmail.com>
170
+Rod Vagg <rod@vagg.org>
171
+Bennett Sorbo <bsorbo@gmail.com>
172
+Sebastian Burkhard <sebi.burkhard@gmail.com>
173
+Zachary Adam Kaplan <razic@viralkitty.com>
174
+nanto_vi <nanto@moon.email.ne.jp>
175
+nanto <nanto@moon.email.ne.jp>
176
+Danil Somsikov <danilasomsikov@gmail.com>
177
+Ryunosuke SATO <tricknotes.rs@gmail.com>
178
+Jean Boussier <jean.boussier@gmail.com>
179
+Adam Coulombe <me@adam.co>
180
+Andrew Plummer <plummer.andrew@gmail.com>
181
+Mark Raddatz <mraddatz@gmail.com>
182
+Isaac Z. Schlueter <i@izs.me>
183
+Karl Sieburg <ksieburg@yahoo.com>
184
+Pascal Borreli <pascal@borreli.com>
185
+Nguyen Phuc Lam <ruado1987@gmail.com>
186
+Dmitry Gusev <dmitry.gusev@gmail.com>
187
+Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
188
+Li Xudong <istonelee@gmail.com>
189
+Steven Benner <admin@stevenbenner.com>
190
+Tom H Fuertes <tomfuertes@gmail.com>
191
+Renato Oliveira dos Santos <ros3@cin.ufpe.br>
192
+ros3cin <ros3@cin.ufpe.br>
193
+Jason Bedard <jason+jquery@jbedard.ca>
194
+Kyle Robinson Young <kyle@dontkry.com>
195
+Chris Talkington <chris@talkingtontech.com>
196
+Eddie Monge <eddie@eddiemonge.com>
197
+Terry Jones <terry@jon.es>
198
+Jason Merino <jasonmerino@gmail.com>
199
+Jeremy Dunck <jdunck@gmail.com>
200
+Chris Price <price.c@gmail.com>
201
+Guy Bedford <guybedford@gmail.com>
202
+Amey Sakhadeo <me@ameyms.com>
203
+Mike Sidorov <mikes.ekb@gmail.com>
204
+Anthony Ryan <anthonyryan1@gmail.com>
205
+Dominik D. Geyer <dominik.geyer@gmail.com>
206
+George Kats <katsgeorgeek@gmail.com>
207
+Lihan Li <frankieteardrop@gmail.com>
208
+Ronny Springer <springer.ronny@gmail.com>
209
+Chris Antaki <ChrisAntaki@gmail.com>
210
+Marian Sollmann <marian.sollmann@cargomedia.ch>
211
+njhamann <njhamann@gmail.com>
212
+Ilya Kantor <iliakan@gmail.com>
213
+David Hong <d.hong@me.com>
214
+John Paul <john@johnkpaul.com>
215
+Jakob Stoeck <jakob@pokermania.de>
216
+Christopher Jones <chris@cjqed.com>
217
+Forbes Lindesay <forbes@lindesay.co.uk>
218
+S. Andrew Sheppard <andrew@wq.io>
219
+Leonardo Balter <leonardo.balter@gmail.com>
220
+Roman Reiß <me@silverwind.io>
221
+Benjy Cui <benjytrys@gmail.com>
222
+Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com>
223
+John Hoven <hovenj@gmail.com>
224
+Philip Jägenstedt <philip@foolip.org>
225
+Christian Kosmowski <ksmwsk@gmail.com>
226
+Liang Peng <poppinlp@gmail.com>
227
+TJ VanToll <tj.vantoll@gmail.com>
228
+Senya Pugach <upisfree@outlook.com>
229
+Aurelio De Rosa <aurelioderosa@gmail.com>
230
+Nazar Mokrynskyi <nazar@mokrynskyi.com>
231
+Amit Merchant <bullredeyes@gmail.com>
232
+Jason Bedard <jason+github@jbedard.ca>
233
+Arthur Verschaeve <contact@arthurverschaeve.be>
234
+Dan Hart <danhart@notonthehighstreet.com>
235
+Bin Xin <rhyzix@gmail.com>
236
+David Corbacho <davidcorbacho@gmail.com>
237
+Veaceslav Grimalschi <grimalschi@yandex.ru>
238
+Daniel Husar <dano.husar@gmail.com>
239
+Frederic Hemberger <mail@frederic-hemberger.de>
240
+Ben Toews <mastahyeti@gmail.com>
241
+Aditya Raghavan <araghavan3@gmail.com>
242
+Victor Homyakov <vkhomyackov@gmail.com>
243
+Shivaji Varma <contact@shivajivarma.com>
244
+Nicolas HENRY <icewil@gmail.com>
245
+Anne-Gaelle Colom <coloma@westminster.ac.uk>
246
+George Mauer <gmauer@gmail.com>
247
+Leonardo Braga <leonardo.braga@gmail.com>
248
+Stephen Edgar <stephen@netweb.com.au>
249
+Thomas Tortorini <thomastortorini@gmail.com>
250
+Winston Howes <winstonhowes@gmail.com>
251
+Jon Hester <jon.d.hester@gmail.com>
252
+Alexander O'Mara <me@alexomara.com>
253
+Bastian Buchholz <buchholz.bastian@googlemail.com>
254
+Arthur Stolyar <nekr.fabula@gmail.com>
255
+Calvin Metcalf <calvin.metcalf@gmail.com>
256
+Mu Haibao <mhbseal@163.com>
257
+Richard McDaniel <rm0026@uah.edu>
258
+Chris Rebert <github@rebertia.com>
259
+Gabriel Schulhof <gabriel.schulhof@intel.com>
260
+Gilad Peleg <giladp007@gmail.com>
261
+Martin Naumann <martin@geekonaut.de>
262
+Marek Lewandowski <m.lewandowski@cksource.com>
263
+Bruno Pérel <brunoperel@gmail.com>
264
+Reed Loden <reed@reedloden.com>
265
+Daniel Nill <daniellnill@gmail.com>
266
+Yongwoo Jeon <yongwoo.jeon@navercorp.com>
267
+Sean Henderson <seanh.za@gmail.com>
268
+Richard Kraaijenhagen <stdin+git@riichard.com>
269
+Connor Atherton <c.liam.atherton@gmail.com>
270
+Gary Ye <garysye@gmail.com>
271
+Christian Grete <webmaster@christiangrete.com>
272
+Liza Ramo <liza.h.ramo@gmail.com>
273
+Julian Alexander Murillo <julian.alexander.murillo@gmail.com>
274
+Joelle Fleurantin <joasqueeniebee@gmail.com>
275
+Jae Sung Park <alberto.park@gmail.com>
276
+Jun Sun <klsforever@gmail.com>
277
+Josh Soref <apache@soref.com>
278
+Henry Wong <henryw4k@gmail.com>
279
+Jon Dufresne <jon.dufresne@gmail.com>
280
+Martijn W. van der Lee <martijn@vanderlee.com>
281
+Devin Wilson <dwilson6.github@gmail.com>
282
+Steve Mao <maochenyan@gmail.com>
283
+Zack Hall <zackhall@outlook.com>
284
+Bernhard M. Wiedemann <jquerybmw@lsmod.de>
285
+Todor Prikumov <tono_pr@abv.bg>
286
+Jha Naman <createnaman@gmail.com>
287
+William Robinet <william.robinet@conostix.com>
288
+Alexander Lisianoi <all3fox@gmail.com>
289
+Vitaliy Terziev <vitaliyterziev@gmail.com>
290
+Joe Trumbull <trumbull.j@gmail.com>
291
+Alexander K <xpyro@ya.ru>
292
+Damian Senn <jquery@topaxi.codes>
293
+Ralin Chimev <ralin.chimev@gmail.com>
294
+Felipe Sateler <fsateler@gmail.com>
295
+Christophe Tafani-Dereeper <christophetd@hotmail.fr>
296
+Manoj Kumar <nithmanoj@gmail.com>
297
+David Broder-Rodgers <broder93@gmail.com>
298
+Alex Louden <alex@louden.com>
299
+Alex Padilla <alexonezero@outlook.com>
300
+南漂一卒 <shiy007@qq.com>
301
+karan-96 <karanbatra96@gmail.com>
302
+Boom Lee <teabyii@gmail.com>
303
+Andreas Solleder <asol@num42.de>
304
+CDAGaming <cstack2011@yahoo.com>
305
+Pierre Spring <pierre@nelm.io>
306
+Shashanka Nataraj <shashankan.10@gmail.com>
307
+Erik Lax <erik@datahack.se>
308
+Matan Kotler-Berkowitz <205matan@gmail.com>
309
+Jordan Beland <jordan.beland@gmail.com>
310
+Henry Zhu <hi@henryzoo.com>
311
+Saptak Sengupta <saptak013@gmail.com>
312
+Nilton Cesar <niltoncms@gmail.com>
313
+basil.belokon <basil.belokon@gmail.com>
314
+tmybr11 <tomas.perone@gmail.com>
315
+Luis Emilio Velasco Sanchez <emibloque@gmail.com>
316
+Ed S <ejsanders@gmail.com>
317
+Bert Zhang <enbo@users.noreply.github.com>
318
+Andrei Fangli <andrei_fangli@outlook.com>
319
+Marja Hölttä <marja.holtta@gmail.com>
320
+abnud1 <ahmad13932013@hotmail.com>
321
+buddh4 <mail@jharrer.de>

+ 20
- 0
www/jquery/LICENSE.txt View File

@@ -0,0 +1,20 @@
1
+Copyright JS Foundation and other contributors, https://js.foundation/
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining
4
+a copy of this software and associated documentation files (the
5
+"Software"), to deal in the Software without restriction, including
6
+without limitation the rights to use, copy, modify, merge, publish,
7
+distribute, sublicense, and/or sell copies of the Software, and to
8
+permit persons to whom the Software is furnished to do so, subject to
9
+the following conditions:
10
+
11
+The above copyright notice and this permission notice shall be
12
+included in all copies or substantial portions of the Software.
13
+
14
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 67
- 0
www/jquery/README.md View File

@@ -0,0 +1,67 @@
1
+# jQuery
2
+
3
+> jQuery is a fast, small, and feature-rich JavaScript library.
4
+
5
+For information on how to get started and how to use jQuery, please see [jQuery's documentation](http://api.jquery.com/).
6
+For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery).
7
+
8
+If upgrading, please see the [blog post for 3.4.1](https://blog.jquery.com/2019/05/01/jquery-3-4-1-triggering-focus-events-in-ie-and-finding-root-elements-in-ios-10/). This includes notable differences from the previous version and a more readable changelog.
9
+
10
+## Including jQuery
11
+
12
+Below are some of the most common ways to include jQuery.
13
+
14
+### Browser
15
+
16
+#### Script tag
17
+
18
+```html
19
+<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
20
+```
21
+
22
+#### Babel
23
+
24
+[Babel](http://babeljs.io/) is a next generation JavaScript compiler. One of the features is the ability to use ES6/ES2015 modules now, even though browsers do not yet support this feature natively.
25
+
26
+```js
27
+import $ from "jquery";
28
+```
29
+
30
+#### Browserify/Webpack
31
+
32
+There are several ways to use [Browserify](http://browserify.org/) and [Webpack](https://webpack.github.io/). For more information on using these tools, please refer to the corresponding project's documention. In the script, including jQuery will usually look like this...
33
+
34
+```js
35
+var $ = require("jquery");
36
+```
37
+
38
+#### AMD (Asynchronous Module Definition)
39
+
40
+AMD is a module format built for the browser. For more information, we recommend [require.js' documentation](http://requirejs.org/docs/whyamd.html).
41
+
42
+```js
43
+define(["jquery"], function($) {
44
+
45
+});
46
+```
47
+
48
+### Node
49
+
50
+To include jQuery in [Node](nodejs.org), first install with npm.
51
+
52
+```sh
53
+npm install jquery
54
+```
55
+
56
+For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](https://github.com/tmpvar/jsdom). This can be useful for testing purposes.
57
+
58
+```js
59
+require("jsdom").env("", function(err, window) {
60
+	if (err) {
61
+		console.error(err);
62
+		return;
63
+	}
64
+
65
+	var $ = require("jquery")(window);
66
+});
67
+```

+ 14
- 0
www/jquery/bower.json View File

@@ -0,0 +1,14 @@
1
+{
2
+  "name": "jquery",
3
+  "main": "dist/jquery.js",
4
+  "license": "MIT",
5
+  "ignore": [
6
+    "package.json"
7
+  ],
8
+  "keywords": [
9
+    "jquery",
10
+    "javascript",
11
+    "browser",
12
+    "library"
13
+  ]
14
+}

+ 399
- 0
www/jquery/dist/core.js View File

@@ -0,0 +1,399 @@
1
+/* global Symbol */
2
+// Defining this global in .eslintrc.json would create a danger of using the global
3
+// unguarded in another place, it seems safer to define global only for this module
4
+
5
+define( [
6
+	"./var/arr",
7
+	"./var/document",
8
+	"./var/getProto",
9
+	"./var/slice",
10
+	"./var/concat",
11
+	"./var/push",
12
+	"./var/indexOf",
13
+	"./var/class2type",
14
+	"./var/toString",
15
+	"./var/hasOwn",
16
+	"./var/fnToString",
17
+	"./var/ObjectFunctionString",
18
+	"./var/support",
19
+	"./var/isFunction",
20
+	"./var/isWindow",
21
+	"./core/DOMEval",
22
+	"./core/toType"
23
+], function( arr, document, getProto, slice, concat, push, indexOf,
24
+	class2type, toString, hasOwn, fnToString, ObjectFunctionString,
25
+	support, isFunction, isWindow, DOMEval, toType ) {
26
+
27
+"use strict";
28
+
29
+var
30
+	version = "3.4.1",
31
+
32
+	// Define a local copy of jQuery
33
+	jQuery = function( selector, context ) {
34
+
35
+		// The jQuery object is actually just the init constructor 'enhanced'
36
+		// Need init if jQuery is called (just allow error to be thrown if not included)
37
+		return new jQuery.fn.init( selector, context );
38
+	},
39
+
40
+	// Support: Android <=4.0 only
41
+	// Make sure we trim BOM and NBSP
42
+	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
43
+
44
+jQuery.fn = jQuery.prototype = {
45
+
46
+	// The current version of jQuery being used
47
+	jquery: version,
48
+
49
+	constructor: jQuery,
50
+
51
+	// The default length of a jQuery object is 0
52
+	length: 0,
53
+
54
+	toArray: function() {
55
+		return slice.call( this );
56
+	},
57
+
58
+	// Get the Nth element in the matched element set OR
59
+	// Get the whole matched element set as a clean array
60
+	get: function( num ) {
61
+
62
+		// Return all the elements in a clean array
63
+		if ( num == null ) {
64
+			return slice.call( this );
65
+		}
66
+
67
+		// Return just the one element from the set
68
+		return num < 0 ? this[ num + this.length ] : this[ num ];
69
+	},
70
+
71
+	// Take an array of elements and push it onto the stack
72
+	// (returning the new matched element set)
73
+	pushStack: function( elems ) {
74
+
75
+		// Build a new jQuery matched element set
76
+		var ret = jQuery.merge( this.constructor(), elems );
77
+
78
+		// Add the old object onto the stack (as a reference)
79
+		ret.prevObject = this;
80
+
81
+		// Return the newly-formed element set
82
+		return ret;
83
+	},
84
+
85
+	// Execute a callback for every element in the matched set.
86
+	each: function( callback ) {
87
+		return jQuery.each( this, callback );
88
+	},
89
+
90
+	map: function( callback ) {
91
+		return this.pushStack( jQuery.map( this, function( elem, i ) {
92
+			return callback.call( elem, i, elem );
93
+		} ) );
94
+	},
95
+
96
+	slice: function() {
97
+		return this.pushStack( slice.apply( this, arguments ) );
98
+	},
99
+
100
+	first: function() {
101
+		return this.eq( 0 );
102
+	},
103
+
104
+	last: function() {
105
+		return this.eq( -1 );
106
+	},
107
+
108
+	eq: function( i ) {
109
+		var len = this.length,
110
+			j = +i + ( i < 0 ? len : 0 );
111
+		return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
112
+	},
113
+
114
+	end: function() {
115
+		return this.prevObject || this.constructor();
116
+	},
117
+
118
+	// For internal use only.
119
+	// Behaves like an Array's method, not like a jQuery method.
120
+	push: push,
121
+	sort: arr.sort,
122
+	splice: arr.splice
123
+};
124
+
125
+jQuery.extend = jQuery.fn.extend = function() {
126
+	var options, name, src, copy, copyIsArray, clone,
127
+		target = arguments[ 0 ] || {},
128
+		i = 1,
129
+		length = arguments.length,
130
+		deep = false;
131
+
132
+	// Handle a deep copy situation
133
+	if ( typeof target === "boolean" ) {
134
+		deep = target;
135
+
136
+		// Skip the boolean and the target
137
+		target = arguments[ i ] || {};
138
+		i++;
139
+	}
140
+
141
+	// Handle case when target is a string or something (possible in deep copy)
142
+	if ( typeof target !== "object" && !isFunction( target ) ) {
143
+		target = {};
144
+	}
145
+
146
+	// Extend jQuery itself if only one argument is passed
147
+	if ( i === length ) {
148
+		target = this;
149
+		i--;
150
+	}
151
+
152
+	for ( ; i < length; i++ ) {
153
+
154
+		// Only deal with non-null/undefined values
155
+		if ( ( options = arguments[ i ] ) != null ) {
156
+
157
+			// Extend the base object
158
+			for ( name in options ) {
159
+				copy = options[ name ];
160
+
161
+				// Prevent Object.prototype pollution
162
+				// Prevent never-ending loop
163
+				if ( name === "__proto__" || target === copy ) {
164
+					continue;
165
+				}
166
+
167
+				// Recurse if we're merging plain objects or arrays
168
+				if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
169
+					( copyIsArray = Array.isArray( copy ) ) ) ) {
170
+					src = target[ name ];
171
+
172
+					// Ensure proper type for the source value
173
+					if ( copyIsArray && !Array.isArray( src ) ) {
174
+						clone = [];
175
+					} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
176
+						clone = {};
177
+					} else {
178
+						clone = src;
179
+					}
180
+					copyIsArray = false;
181
+
182
+					// Never move original objects, clone them
183
+					target[ name ] = jQuery.extend( deep, clone, copy );
184
+
185
+				// Don't bring in undefined values
186
+				} else if ( copy !== undefined ) {
187
+					target[ name ] = copy;
188
+				}
189
+			}
190
+		}
191
+	}
192
+
193
+	// Return the modified object
194
+	return target;
195
+};
196
+
197
+jQuery.extend( {
198
+
199
+	// Unique for each copy of jQuery on the page
200
+	expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
201
+
202
+	// Assume jQuery is ready without the ready module
203
+	isReady: true,
204
+
205
+	error: function( msg ) {
206
+		throw new Error( msg );
207
+	},
208
+
209
+	noop: function() {},
210
+
211
+	isPlainObject: function( obj ) {
212
+		var proto, Ctor;
213
+
214
+		// Detect obvious negatives
215
+		// Use toString instead of jQuery.type to catch host objects
216
+		if ( !obj || toString.call( obj ) !== "[object Object]" ) {
217
+			return false;
218
+		}
219
+
220
+		proto = getProto( obj );
221
+
222
+		// Objects with no prototype (e.g., `Object.create( null )`) are plain
223
+		if ( !proto ) {
224
+			return true;
225
+		}
226
+
227
+		// Objects with prototype are plain iff they were constructed by a global Object function
228
+		Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
229
+		return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
230
+	},
231
+
232
+	isEmptyObject: function( obj ) {
233
+		var name;
234
+
235
+		for ( name in obj ) {
236
+			return false;
237
+		}
238
+		return true;
239
+	},
240
+
241
+	// Evaluates a script in a global context
242
+	globalEval: function( code, options ) {
243
+		DOMEval( code, { nonce: options && options.nonce } );
244
+	},
245
+
246
+	each: function( obj, callback ) {
247
+		var length, i = 0;
248
+
249
+		if ( isArrayLike( obj ) ) {
250
+			length = obj.length;
251
+			for ( ; i < length; i++ ) {
252
+				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
253
+					break;
254
+				}
255
+			}
256
+		} else {
257
+			for ( i in obj ) {
258
+				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
259
+					break;
260
+				}
261
+			}
262
+		}
263
+
264
+		return obj;
265
+	},
266
+
267
+	// Support: Android <=4.0 only
268
+	trim: function( text ) {
269
+		return text == null ?
270
+			"" :
271
+			( text + "" ).replace( rtrim, "" );
272
+	},
273
+
274
+	// results is for internal usage only
275
+	makeArray: function( arr, results ) {
276
+		var ret = results || [];
277
+
278
+		if ( arr != null ) {
279
+			if ( isArrayLike( Object( arr ) ) ) {
280
+				jQuery.merge( ret,
281
+					typeof arr === "string" ?
282
+					[ arr ] : arr
283
+				);
284
+			} else {
285
+				push.call( ret, arr );
286
+			}
287
+		}
288
+
289
+		return ret;
290
+	},
291
+
292
+	inArray: function( elem, arr, i ) {
293
+		return arr == null ? -1 : indexOf.call( arr, elem, i );
294
+	},
295
+
296
+	// Support: Android <=4.0 only, PhantomJS 1 only
297
+	// push.apply(_, arraylike) throws on ancient WebKit
298
+	merge: function( first, second ) {
299
+		var len = +second.length,
300
+			j = 0,
301
+			i = first.length;
302
+
303
+		for ( ; j < len; j++ ) {
304
+			first[ i++ ] = second[ j ];
305
+		}
306
+
307
+		first.length = i;
308
+
309
+		return first;
310
+	},
311
+
312
+	grep: function( elems, callback, invert ) {
313
+		var callbackInverse,
314
+			matches = [],
315
+			i = 0,
316
+			length = elems.length,
317
+			callbackExpect = !invert;
318
+
319
+		// Go through the array, only saving the items
320
+		// that pass the validator function
321
+		for ( ; i < length; i++ ) {
322
+			callbackInverse = !callback( elems[ i ], i );
323
+			if ( callbackInverse !== callbackExpect ) {
324
+				matches.push( elems[ i ] );
325
+			}
326
+		}
327
+
328
+		return matches;
329
+	},
330
+
331
+	// arg is for internal usage only
332
+	map: function( elems, callback, arg ) {
333
+		var length, value,
334
+			i = 0,
335
+			ret = [];
336
+
337
+		// Go through the array, translating each of the items to their new values
338
+		if ( isArrayLike( elems ) ) {
339
+			length = elems.length;
340
+			for ( ; i < length; i++ ) {
341
+				value = callback( elems[ i ], i, arg );
342
+
343
+				if ( value != null ) {
344
+					ret.push( value );
345
+				}
346
+			}
347
+
348
+		// Go through every key on the object,
349
+		} else {
350
+			for ( i in elems ) {
351
+				value = callback( elems[ i ], i, arg );
352
+
353
+				if ( value != null ) {
354
+					ret.push( value );
355
+				}
356
+			}
357
+		}
358
+
359
+		// Flatten any nested arrays
360
+		return concat.apply( [], ret );
361
+	},
362
+
363
+	// A global GUID counter for objects
364
+	guid: 1,
365
+
366
+	// jQuery.support is not used in Core but other projects attach their
367
+	// properties to it so it needs to exist.
368
+	support: support
369
+} );
370
+
371
+if ( typeof Symbol === "function" ) {
372
+	jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
373
+}
374
+
375
+// Populate the class2type map
376
+jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
377
+function( i, name ) {
378
+	class2type[ "[object " + name + "]" ] = name.toLowerCase();
379
+} );
380
+
381
+function isArrayLike( obj ) {
382
+
383
+	// Support: real iOS 8.2 only (not reproducible in simulator)
384
+	// `in` check used to prevent JIT error (gh-2145)
385
+	// hasOwn isn't used here due to false negatives
386
+	// regarding Nodelist length in IE
387
+	var length = !!obj && "length" in obj && obj.length,
388
+		type = toType( obj );
389
+
390
+	if ( isFunction( obj ) || isWindow( obj ) ) {
391
+		return false;
392
+	}
393
+
394
+	return type === "array" || length === 0 ||
395
+		typeof length === "number" && length > 0 && ( length - 1 ) in obj;
396
+}
397
+
398
+return jQuery;
399
+} );

+ 10598
- 0
www/jquery/dist/jquery.js
File diff suppressed because it is too large
View File


+ 2
- 0
www/jquery/dist/jquery.min.js
File diff suppressed because it is too large
View File


+ 1
- 0
www/jquery/dist/jquery.min.map
File diff suppressed because it is too large
View File


+ 8495
- 0
www/jquery/dist/jquery.slim.js
File diff suppressed because it is too large
View File


+ 2
- 0
www/jquery/dist/jquery.slim.min.js
File diff suppressed because it is too large
View File


+ 1
- 0
www/jquery/dist/jquery.slim.min.map
File diff suppressed because it is too large
View File


+ 36
- 0
www/jquery/external/sizzle/LICENSE.txt View File

@@ -0,0 +1,36 @@
1
+Copyright JS Foundation and other contributors, https://js.foundation/
2
+
3
+This software consists of voluntary contributions made by many
4
+individuals. For exact contribution history, see the revision history
5
+available at https://github.com/jquery/sizzle
6
+
7
+The following license applies to all parts of this software except as
8
+documented below:
9
+
10
+====
11
+
12
+Permission is hereby granted, free of charge, to any person obtaining
13
+a copy of this software and associated documentation files (the
14
+"Software"), to deal in the Software without restriction, including
15
+without limitation the rights to use, copy, modify, merge, publish,
16
+distribute, sublicense, and/or sell copies of the Software, and to
17
+permit persons to whom the Software is furnished to do so, subject to
18
+the following conditions:
19
+
20
+The above copyright notice and this permission notice shall be
21
+included in all copies or substantial portions of the Software.
22
+
23
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+
31
+====
32
+
33
+All files located in the node_modules and external directories are
34
+externally maintained libraries used by this software which have their
35
+own licenses; we recommend you read them, as their terms may differ from
36
+the terms above.

+ 2282
- 0
www/jquery/external/sizzle/dist/sizzle.js
File diff suppressed because it is too large
View File


+ 3
- 0
www/jquery/external/sizzle/dist/sizzle.min.js
File diff suppressed because it is too large
View File


+ 1
- 0
www/jquery/external/sizzle/dist/sizzle.min.map
File diff suppressed because it is too large
View File


+ 139
- 0
www/jquery/package.json View File

@@ -0,0 +1,139 @@
1
+{
2
+  "_from": "jquery",
3
+  "_id": "jquery@3.4.1",
4
+  "_inBundle": false,
5
+  "_integrity": "sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==",
6
+  "_location": "/jquery",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "tag",
10
+    "registry": true,
11
+    "raw": "jquery",
12
+    "name": "jquery",
13
+    "escapedName": "jquery",
14
+    "rawSpec": "",
15
+    "saveSpec": null,
16
+    "fetchSpec": "latest"
17
+  },
18
+  "_requiredBy": [
19
+    "#USER",
20
+    "/"
21
+  ],
22
+  "_resolved": "https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz",
23
+  "_shasum": "714f1f8d9dde4bdfa55764ba37ef214630d80ef2",
24
+  "_spec": "jquery",
25
+  "_where": "/home/christian",
26
+  "author": {
27
+    "name": "JS Foundation and other contributors",
28
+    "url": "https://github.com/jquery/jquery/blob/3.4.1/AUTHORS.txt"
29
+  },
30
+  "bugs": {
31
+    "url": "https://github.com/jquery/jquery/issues"
32
+  },
33
+  "bundleDependencies": false,
34
+  "commitplease": {
35
+    "nohook": true,
36
+    "components": [
37
+      "Docs",
38
+      "Tests",
39
+      "Build",
40
+      "Support",
41
+      "Release",
42
+      "Core",
43
+      "Ajax",
44
+      "Attributes",
45
+      "Callbacks",
46
+      "CSS",
47
+      "Data",
48
+      "Deferred",
49
+      "Deprecated",
50
+      "Dimensions",
51
+      "Effects",
52
+      "Event",
53
+      "Manipulation",
54
+      "Offset",
55
+      "Queue",
56
+      "Selector",
57
+      "Serialize",
58
+      "Traversing",
59
+      "Wrap"
60
+    ],
61
+    "markerPattern": "^((clos|fix|resolv)(e[sd]|ing))|^(refs?)",
62
+    "ticketPattern": "^((Closes|Fixes) ([a-zA-Z]{2,}-)[0-9]+)|^(Refs? [^#])"
63
+  },
64
+  "dependencies": {},
65
+  "deprecated": false,
66
+  "description": "JavaScript library for DOM operations",
67
+  "devDependencies": {
68
+    "@babel/core": "7.3.3",
69
+    "@babel/plugin-transform-for-of": "7.2.0",
70
+    "commitplease": "3.2.0",
71
+    "core-js": "2.6.5",
72
+    "eslint-config-jquery": "1.0.1",
73
+    "grunt": "1.0.3",
74
+    "grunt-babel": "8.0.0",
75
+    "grunt-cli": "1.3.2",
76
+    "grunt-compare-size": "0.4.2",
77
+    "grunt-contrib-uglify": "3.4.0",
78
+    "grunt-contrib-watch": "1.1.0",
79
+    "grunt-eslint": "21.0.0",
80
+    "grunt-git-authors": "3.2.0",
81
+    "grunt-jsonlint": "1.1.0",
82
+    "grunt-karma": "3.0.1",
83
+    "grunt-newer": "1.3.0",
84
+    "grunt-npmcopy": "0.1.0",
85
+    "gzip-js": "0.3.2",
86
+    "husky": "1.3.1",
87
+    "insight": "0.10.1",
88
+    "jsdom": "13.2.0",
89
+    "karma": "4.0.1",
90
+    "karma-browserstack-launcher": "1.4.0",
91
+    "karma-chrome-launcher": "2.2.0",
92
+    "karma-firefox-launcher": "1.1.0",
93
+    "karma-ie-launcher": "1.0.0",
94
+    "karma-jsdom-launcher": "7.1.0",
95
+    "karma-qunit": "3.0.0",
96
+    "load-grunt-tasks": "4.0.0",
97
+    "native-promise-only": "0.8.1",
98
+    "promises-aplus-tests": "2.1.2",
99
+    "q": "1.5.1",
100
+    "qunit": "2.9.2",
101
+    "raw-body": "2.3.3",
102
+    "requirejs": "2.3.6",
103
+    "sinon": "2.3.7",
104
+    "sizzle": "2.3.4",
105
+    "strip-json-comments": "2.0.1",
106
+    "testswarm": "1.1.0",
107
+    "uglify-js": "3.4.7"
108
+  },
109
+  "homepage": "https://jquery.com",
110
+  "husky": {
111
+    "hooks": {
112
+      "commit-msg": "node node_modules/commitplease",
113
+      "pre-commit": "grunt lint:newer qunit_fixture"
114
+    }
115
+  },
116
+  "keywords": [
117
+    "jquery",
118
+    "javascript",
119
+    "browser",
120
+    "library"
121
+  ],
122
+  "license": "MIT",
123
+  "main": "dist/jquery.js",
124
+  "name": "jquery",
125
+  "repository": {
126
+    "type": "git",
127
+    "url": "git+https://github.com/jquery/jquery.git"
128
+  },
129
+  "scripts": {
130
+    "build": "npm install && grunt",
131
+    "jenkins": "npm run test:browserless",
132
+    "start": "grunt watch",
133
+    "test": "grunt && grunt test:slow && grunt karma:main",
134
+    "test:browser": "grunt && grunt karma:main",
135
+    "test:browserless": "grunt && grunt test:slow"
136
+  },
137
+  "title": "jQuery",
138
+  "version": "3.4.1"
139
+}

+ 14
- 0
www/jquery/src/.eslintrc.json View File

@@ -0,0 +1,14 @@
1
+{
2
+	"root": true,
3
+
4
+	"extends": "../.eslintrc-browser.json",
5
+
6
+	"overrides": [
7
+		{
8
+			"files": "wrapper.js",
9
+			"globals": {
10
+				"jQuery": false
11
+			}
12
+		}
13
+	]
14
+}

+ 858
- 0
www/jquery/src/ajax.js View File

@@ -0,0 +1,858 @@
1
+define( [
2
+	"./core",
3
+	"./var/document",
4
+	"./var/isFunction",
5
+	"./var/rnothtmlwhite",
6
+	"./ajax/var/location",
7
+	"./ajax/var/nonce",
8
+	"./ajax/var/rquery",
9
+
10
+	"./core/init",
11
+	"./ajax/parseXML",
12
+	"./event/trigger",
13
+	"./deferred",
14
+	"./serialize" // jQuery.param
15
+], function( jQuery, document, isFunction, rnothtmlwhite, location, nonce, rquery ) {
16
+
17
+"use strict";
18
+
19
+var
20
+	r20 = /%20/g,
21
+	rhash = /#.*$/,
22
+	rantiCache = /([?&])_=[^&]*/,
23
+	rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
24
+
25
+	// #7653, #8125, #8152: local protocol detection
26
+	rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
27
+	rnoContent = /^(?:GET|HEAD)$/,
28
+	rprotocol = /^\/\//,
29
+
30
+	/* Prefilters
31
+	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
32
+	 * 2) These are called:
33
+	 *    - BEFORE asking for a transport
34
+	 *    - AFTER param serialization (s.data is a string if s.processData is true)
35
+	 * 3) key is the dataType
36
+	 * 4) the catchall symbol "*" can be used
37
+	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
38
+	 */
39
+	prefilters = {},
40
+
41
+	/* Transports bindings
42
+	 * 1) key is the dataType
43
+	 * 2) the catchall symbol "*" can be used
44
+	 * 3) selection will start with transport dataType and THEN go to "*" if needed
45
+	 */
46
+	transports = {},
47
+
48
+	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
49
+	allTypes = "*/".concat( "*" ),
50
+
51
+	// Anchor tag for parsing the document origin
52
+	originAnchor = document.createElement( "a" );
53
+	originAnchor.href = location.href;
54
+
55
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
56
+function addToPrefiltersOrTransports( structure ) {
57
+
58
+	// dataTypeExpression is optional and defaults to "*"
59
+	return function( dataTypeExpression, func ) {
60
+
61
+		if ( typeof dataTypeExpression !== "string" ) {
62
+			func = dataTypeExpression;
63
+			dataTypeExpression = "*";
64
+		}
65
+
66
+		var dataType,
67
+			i = 0,
68
+			dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];
69
+
70
+		if ( isFunction( func ) ) {
71
+
72
+			// For each dataType in the dataTypeExpression
73
+			while ( ( dataType = dataTypes[ i++ ] ) ) {
74
+
75
+				// Prepend if requested
76
+				if ( dataType[ 0 ] === "+" ) {
77
+					dataType = dataType.slice( 1 ) || "*";
78
+					( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
79
+
80
+				// Otherwise append
81
+				} else {
82
+					( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
83
+				}
84
+			}
85
+		}
86
+	};
87
+}
88
+
89
+// Base inspection function for prefilters and transports
90
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
91
+
92
+	var inspected = {},
93
+		seekingTransport = ( structure === transports );
94
+
95
+	function inspect( dataType ) {
96
+		var selected;
97
+		inspected[ dataType ] = true;
98
+		jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
99
+			var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
100
+			if ( typeof dataTypeOrTransport === "string" &&
101
+				!seekingTransport && !inspected[ dataTypeOrTransport ] ) {
102
+
103
+				options.dataTypes.unshift( dataTypeOrTransport );
104
+				inspect( dataTypeOrTransport );
105
+				return false;
106
+			} else if ( seekingTransport ) {
107
+				return !( selected = dataTypeOrTransport );
108
+			}
109
+		} );
110
+		return selected;
111
+	}
112
+
113
+	return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
114
+}
115
+
116
+// A special extend for ajax options
117
+// that takes "flat" options (not to be deep extended)
118
+// Fixes #9887
119
+function ajaxExtend( target, src ) {
120
+	var key, deep,
121
+		flatOptions = jQuery.ajaxSettings.flatOptions || {};
122
+
123
+	for ( key in src ) {
124
+		if ( src[ key ] !== undefined ) {
125
+			( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
126
+		}
127
+	}
128
+	if ( deep ) {
129
+		jQuery.extend( true, target, deep );
130
+	}
131
+
132
+	return target;
133
+}
134
+
135
+/* Handles responses to an ajax request:
136
+ * - finds the right dataType (mediates between content-type and expected dataType)
137
+ * - returns the corresponding response
138
+ */
139
+function ajaxHandleResponses( s, jqXHR, responses ) {
140
+
141
+	var ct, type, finalDataType, firstDataType,
142
+		contents = s.contents,
143
+		dataTypes = s.dataTypes;
144
+
145
+	// Remove auto dataType and get content-type in the process
146
+	while ( dataTypes[ 0 ] === "*" ) {
147
+		dataTypes.shift();
148
+		if ( ct === undefined ) {
149
+			ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
150
+		}
151
+	}
152
+
153
+	// Check if we're dealing with a known content-type
154
+	if ( ct ) {
155
+		for ( type in contents ) {
156
+			if ( contents[ type ] && contents[ type ].test( ct ) ) {
157
+				dataTypes.unshift( type );
158
+				break;
159
+			}
160
+		}
161
+	}
162
+
163
+	// Check to see if we have a response for the expected dataType
164
+	if ( dataTypes[ 0 ] in responses ) {
165
+		finalDataType = dataTypes[ 0 ];
166
+	} else {
167
+
168
+		// Try convertible dataTypes
169
+		for ( type in responses ) {
170
+			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
171
+				finalDataType = type;
172
+				break;
173
+			}
174
+			if ( !firstDataType ) {
175
+				firstDataType = type;
176
+			}
177
+		}
178
+
179
+		// Or just use first one
180
+		finalDataType = finalDataType || firstDataType;
181
+	}
182
+
183
+	// If we found a dataType
184
+	// We add the dataType to the list if needed
185
+	// and return the corresponding response
186
+	if ( finalDataType ) {
187
+		if ( finalDataType !== dataTypes[ 0 ] ) {
188
+			dataTypes.unshift( finalDataType );
189
+		}
190
+		return responses[ finalDataType ];
191
+	}
192
+}
193
+
194
+/* Chain conversions given the request and the original response
195
+ * Also sets the responseXXX fields on the jqXHR instance
196
+ */
197
+function ajaxConvert( s, response, jqXHR, isSuccess ) {
198
+	var conv2, current, conv, tmp, prev,
199
+		converters = {},
200
+
201
+		// Work with a copy of dataTypes in case we need to modify it for conversion
202
+		dataTypes = s.dataTypes.slice();
203
+
204
+	// Create converters map with lowercased keys
205
+	if ( dataTypes[ 1 ] ) {
206
+		for ( conv in s.converters ) {
207
+			converters[ conv.toLowerCase() ] = s.converters[ conv ];
208
+		}
209
+	}
210
+
211
+	current = dataTypes.shift();
212
+
213
+	// Convert to each sequential dataType
214
+	while ( current ) {
215
+
216
+		if ( s.responseFields[ current ] ) {
217
+			jqXHR[ s.responseFields[ current ] ] = response;
218
+		}
219
+
220
+		// Apply the dataFilter if provided
221
+		if ( !prev && isSuccess && s.dataFilter ) {
222
+			response = s.dataFilter( response, s.dataType );
223
+		}
224
+
225
+		prev = current;
226
+		current = dataTypes.shift();
227
+
228
+		if ( current ) {
229
+
230
+			// There's only work to do if current dataType is non-auto
231
+			if ( current === "*" ) {
232
+
233
+				current = prev;
234
+
235
+			// Convert response if prev dataType is non-auto and differs from current
236
+			} else if ( prev !== "*" && prev !== current ) {
237
+
238
+				// Seek a direct converter
239
+				conv = converters[ prev + " " + current ] || converters[ "* " + current ];
240
+
241
+				// If none found, seek a pair
242
+				if ( !conv ) {
243
+					for ( conv2 in converters ) {
244
+
245
+						// If conv2 outputs current
246
+						tmp = conv2.split( " " );
247
+						if ( tmp[ 1 ] === current ) {
248
+
249
+							// If prev can be converted to accepted input
250
+							conv = converters[ prev + " " + tmp[ 0 ] ] ||
251
+								converters[ "* " + tmp[ 0 ] ];
252
+							if ( conv ) {
253
+
254
+								// Condense equivalence converters
255
+								if ( conv === true ) {
256
+									conv = converters[ conv2 ];
257
+
258
+								// Otherwise, insert the intermediate dataType
259
+								} else if ( converters[ conv2 ] !== true ) {
260
+									current = tmp[ 0 ];
261
+									dataTypes.unshift( tmp[ 1 ] );
262
+								}
263
+								break;
264
+							}
265
+						}
266
+					}
267
+				}
268
+
269
+				// Apply converter (if not an equivalence)
270
+				if ( conv !== true ) {
271
+
272
+					// Unless errors are allowed to bubble, catch and return them
273
+					if ( conv && s.throws ) {
274
+						response = conv( response );
275
+					} else {
276
+						try {
277
+							response = conv( response );
278
+						} catch ( e ) {
279
+							return {
280
+								state: "parsererror",
281
+								error: conv ? e : "No conversion from " + prev + " to " + current
282
+							};
283
+						}
284
+					}
285
+				}
286
+			}
287
+		}
288
+	}
289
+
290
+	return { state: "success", data: response };
291
+}
292
+
293
+jQuery.extend( {
294
+
295
+	// Counter for holding the number of active queries
296
+	active: 0,
297
+
298
+	// Last-Modified header cache for next request
299
+	lastModified: {},
300
+	etag: {},
301
+
302
+	ajaxSettings: {
303
+		url: location.href,
304
+		type: "GET",
305
+		isLocal: rlocalProtocol.test( location.protocol ),
306
+		global: true,
307
+		processData: true,
308
+		async: true,
309
+		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
310
+
311
+		/*
312
+		timeout: 0,
313
+		data: null,
314
+		dataType: null,
315
+		username: null,
316
+		password: null,
317
+		cache: null,
318
+		throws: false,
319
+		traditional: false,
320
+		headers: {},
321
+		*/
322
+
323
+		accepts: {
324
+			"*": allTypes,
325
+			text: "text/plain",
326
+			html: "text/html",
327
+			xml: "application/xml, text/xml",
328
+			json: "application/json, text/javascript"
329
+		},
330
+
331
+		contents: {
332
+			xml: /\bxml\b/,
333
+			html: /\bhtml/,
334
+			json: /\bjson\b/
335
+		},
336
+
337
+		responseFields: {
338
+			xml: "responseXML",
339
+			text: "responseText",
340
+			json: "responseJSON"
341
+		},
342
+
343
+		// Data converters
344
+		// Keys separate source (or catchall "*") and destination types with a single space
345
+		converters: {
346
+
347
+			// Convert anything to text
348
+			"* text": String,
349
+
350
+			// Text to html (true = no transformation)
351
+			"text html": true,
352
+
353
+			// Evaluate text as a json expression
354
+			"text json": JSON.parse,
355
+
356
+			// Parse text as xml
357
+			"text xml": jQuery.parseXML
358
+		},
359
+
360
+		// For options that shouldn't be deep extended:
361
+		// you can add your own custom options here if
362
+		// and when you create one that shouldn't be
363
+		// deep extended (see ajaxExtend)
364
+		flatOptions: {
365
+			url: true,
366
+			context: true
367
+		}
368
+	},
369
+
370
+	// Creates a full fledged settings object into target
371
+	// with both ajaxSettings and settings fields.
372
+	// If target is omitted, writes into ajaxSettings.
373
+	ajaxSetup: function( target, settings ) {
374
+		return settings ?
375
+
376
+			// Building a settings object
377
+			ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
378
+
379
+			// Extending ajaxSettings
380
+			ajaxExtend( jQuery.ajaxSettings, target );
381
+	},
382
+
383
+	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
384
+	ajaxTransport: addToPrefiltersOrTransports( transports ),
385
+
386
+	// Main method
387
+	ajax: function( url, options ) {
388
+
389
+		// If url is an object, simulate pre-1.5 signature
390
+		if ( typeof url === "object" ) {
391
+			options = url;
392
+			url = undefined;
393
+		}
394
+
395
+		// Force options to be an object
396
+		options = options || {};
397
+
398
+		var transport,
399
+
400
+			// URL without anti-cache param
401
+			cacheURL,
402
+
403
+			// Response headers
404
+			responseHeadersString,
405
+			responseHeaders,
406
+
407
+			// timeout handle
408
+			timeoutTimer,
409
+
410
+			// Url cleanup var
411
+			urlAnchor,
412
+
413
+			// Request state (becomes false upon send and true upon completion)
414
+			completed,
415
+
416
+			// To know if global events are to be dispatched
417
+			fireGlobals,
418
+
419
+			// Loop variable
420
+			i,
421
+
422
+			// uncached part of the url
423
+			uncached,
424
+
425
+			// Create the final options object
426
+			s = jQuery.ajaxSetup( {}, options ),
427
+
428
+			// Callbacks context
429
+			callbackContext = s.context || s,
430
+
431
+			// Context for global events is callbackContext if it is a DOM node or jQuery collection
432
+			globalEventContext = s.context &&
433
+				( callbackContext.nodeType || callbackContext.jquery ) ?
434
+					jQuery( callbackContext ) :
435
+					jQuery.event,
436
+
437
+			// Deferreds
438
+			deferred = jQuery.Deferred(),
439
+			completeDeferred = jQuery.Callbacks( "once memory" ),
440
+
441
+			// Status-dependent callbacks
442
+			statusCode = s.statusCode || {},
443
+
444
+			// Headers (they are sent all at once)
445
+			requestHeaders = {},
446
+			requestHeadersNames = {},
447
+
448
+			// Default abort message
449
+			strAbort = "canceled",
450
+
451
+			// Fake xhr
452
+			jqXHR = {
453
+				readyState: 0,
454
+
455
+				// Builds headers hashtable if needed
456
+				getResponseHeader: function( key ) {
457
+					var match;
458
+					if ( completed ) {
459
+						if ( !responseHeaders ) {
460
+							responseHeaders = {};
461
+							while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
462
+								responseHeaders[ match[ 1 ].toLowerCase() + " " ] =
463
+									( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] )
464
+										.concat( match[ 2 ] );
465
+							}
466
+						}
467
+						match = responseHeaders[ key.toLowerCase() + " " ];
468
+					}
469
+					return match == null ? null : match.join( ", " );
470
+				},
471
+
472
+				// Raw string
473
+				getAllResponseHeaders: function() {
474
+					return completed ? responseHeadersString : null;
475
+				},
476
+
477
+				// Caches the header
478
+				setRequestHeader: function( name, value ) {
479
+					if ( completed == null ) {
480
+						name = requestHeadersNames[ name.toLowerCase() ] =
481
+							requestHeadersNames[ name.toLowerCase() ] || name;
482
+						requestHeaders[ name ] = value;
483
+					}
484
+					return this;
485
+				},
486
+
487
+				// Overrides response content-type header
488
+				overrideMimeType: function( type ) {
489
+					if ( completed == null ) {
490
+						s.mimeType = type;
491
+					}
492
+					return this;
493
+				},
494
+
495
+				// Status-dependent callbacks
496
+				statusCode: function( map ) {
497
+					var code;
498
+					if ( map ) {
499
+						if ( completed ) {
500
+
501
+							// Execute the appropriate callbacks
502
+							jqXHR.always( map[ jqXHR.status ] );
503
+						} else {
504
+
505
+							// Lazy-add the new callbacks in a way that preserves old ones
506
+							for ( code in map ) {
507
+								statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
508
+							}
509
+						}
510
+					}
511
+					return this;
512
+				},
513
+
514
+				// Cancel the request
515
+				abort: function( statusText ) {
516
+					var finalText = statusText || strAbort;
517
+					if ( transport ) {
518
+						transport.abort( finalText );
519
+					}
520
+					done( 0, finalText );
521
+					return this;
522
+				}
523
+			};
524
+
525
+		// Attach deferreds
526
+		deferred.promise( jqXHR );
527
+
528
+		// Add protocol if not provided (prefilters might expect it)
529
+		// Handle falsy url in the settings object (#10093: consistency with old signature)
530
+		// We also use the url parameter if available
531
+		s.url = ( ( url || s.url || location.href ) + "" )
532
+			.replace( rprotocol, location.protocol + "//" );
533
+
534
+		// Alias method option to type as per ticket #12004
535
+		s.type = options.method || options.type || s.method || s.type;
536
+
537
+		// Extract dataTypes list
538
+		s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ];
539
+
540
+		// A cross-domain request is in order when the origin doesn't match the current origin.
541
+		if ( s.crossDomain == null ) {
542
+			urlAnchor = document.createElement( "a" );
543
+
544
+			// Support: IE <=8 - 11, Edge 12 - 15
545
+			// IE throws exception on accessing the href property if url is malformed,
546
+			// e.g. http://example.com:80x/
547
+			try {
548
+				urlAnchor.href = s.url;
549
+
550
+				// Support: IE <=8 - 11 only
551
+				// Anchor's host property isn't correctly set when s.url is relative
552
+				urlAnchor.href = urlAnchor.href;
553
+				s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
554
+					urlAnchor.protocol + "//" + urlAnchor.host;
555
+			} catch ( e ) {
556
+
557
+				// If there is an error parsing the URL, assume it is crossDomain,
558
+				// it can be rejected by the transport if it is invalid
559
+				s.crossDomain = true;
560
+			}
561
+		}
562
+
563
+		// Convert data if not already a string
564
+		if ( s.data && s.processData && typeof s.data !== "string" ) {
565
+			s.data = jQuery.param( s.data, s.traditional );
566
+		}
567
+
568
+		// Apply prefilters
569
+		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
570
+
571
+		// If request was aborted inside a prefilter, stop there
572
+		if ( completed ) {
573
+			return jqXHR;
574
+		}
575
+
576
+		// We can fire global events as of now if asked to
577
+		// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
578
+		fireGlobals = jQuery.event && s.global;
579
+
580
+		// Watch for a new set of requests
581
+		if ( fireGlobals && jQuery.active++ === 0 ) {
582
+			jQuery.event.trigger( "ajaxStart" );
583
+		}
584
+
585
+		// Uppercase the type
586
+		s.type = s.type.toUpperCase();
587
+
588
+		// Determine if request has content
589
+		s.hasContent = !rnoContent.test( s.type );
590
+
591
+		// Save the URL in case we're toying with the If-Modified-Since
592
+		// and/or If-None-Match header later on
593
+		// Remove hash to simplify url manipulation
594
+		cacheURL = s.url.replace( rhash, "" );
595
+
596
+		// More options handling for requests with no content
597
+		if ( !s.hasContent ) {
598
+
599
+			// Remember the hash so we can put it back
600
+			uncached = s.url.slice( cacheURL.length );
601
+
602
+			// If data is available and should be processed, append data to url
603
+			if ( s.data && ( s.processData || typeof s.data === "string" ) ) {
604
+				cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
605
+
606
+				// #9682: remove data so that it's not used in an eventual retry
607
+				delete s.data;
608
+			}
609
+
610
+			// Add or update anti-cache param if needed
611
+			if ( s.cache === false ) {
612
+				cacheURL = cacheURL.replace( rantiCache, "$1" );
613
+				uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached;
614
+			}
615
+
616
+			// Put hash and anti-cache on the URL that will be requested (gh-1732)
617
+			s.url = cacheURL + uncached;
618
+
619
+		// Change '%20' to '+' if this is encoded form body content (gh-2658)
620
+		} else if ( s.data && s.processData &&
621
+			( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
622
+			s.data = s.data.replace( r20, "+" );
623
+		}
624
+
625
+		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
626
+		if ( s.ifModified ) {
627
+			if ( jQuery.lastModified[ cacheURL ] ) {
628
+				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
629
+			}
630
+			if ( jQuery.etag[ cacheURL ] ) {
631
+				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
632
+			}
633
+		}
634
+
635
+		// Set the correct header, if data is being sent
636
+		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
637
+			jqXHR.setRequestHeader( "Content-Type", s.contentType );
638
+		}
639
+
640
+		// Set the Accepts header for the server, depending on the dataType
641
+		jqXHR.setRequestHeader(
642
+			"Accept",
643
+			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
644
+				s.accepts[ s.dataTypes[ 0 ] ] +
645
+					( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
646
+				s.accepts[ "*" ]
647
+		);
648
+
649
+		// Check for headers option
650
+		for ( i in s.headers ) {
651
+			jqXHR.setRequestHeader( i, s.headers[ i ] );
652
+		}
653
+
654
+		// Allow custom headers/mimetypes and early abort
655
+		if ( s.beforeSend &&
656
+			( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
657
+
658
+			// Abort if not done already and return
659
+			return jqXHR.abort();
660
+		}
661
+
662
+		// Aborting is no longer a cancellation
663
+		strAbort = "abort";
664
+
665
+		// Install callbacks on deferreds
666
+		completeDeferred.add( s.complete );
667
+		jqXHR.done( s.success );
668
+		jqXHR.fail( s.error );
669
+
670
+		// Get transport
671
+		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
672
+
673
+		// If no transport, we auto-abort
674
+		if ( !transport ) {
675
+			done( -1, "No Transport" );
676
+		} else {
677
+			jqXHR.readyState = 1;
678
+
679
+			// Send global event
680
+			if ( fireGlobals ) {
681
+				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
682
+			}
683
+
684
+			// If request was aborted inside ajaxSend, stop there
685
+			if ( completed ) {
686
+				return jqXHR;
687
+			}
688
+
689
+			// Timeout
690
+			if ( s.async && s.timeout > 0 ) {
691
+				timeoutTimer = window.setTimeout( function() {
692
+					jqXHR.abort( "timeout" );
693
+				}, s.timeout );
694
+			}
695
+
696
+			try {
697
+				completed = false;
698
+				transport.send( requestHeaders, done );
699
+			} catch ( e ) {
700
+
701
+				// Rethrow post-completion exceptions
702
+				if ( completed ) {
703
+					throw e;
704
+				}
705
+
706
+				// Propagate others as results
707
+				done( -1, e );
708
+			}
709
+		}
710
+
711
+		// Callback for when everything is done
712
+		function done( status, nativeStatusText, responses, headers ) {
713
+			var isSuccess, success, error, response, modified,
714
+				statusText = nativeStatusText;
715
+
716
+			// Ignore repeat invocations
717
+			if ( completed ) {
718
+				return;
719
+			}
720
+
721
+			completed = true;
722
+
723
+			// Clear timeout if it exists
724
+			if ( timeoutTimer ) {
725
+				window.clearTimeout( timeoutTimer );
726
+			}
727
+
728
+			// Dereference transport for early garbage collection
729
+			// (no matter how long the jqXHR object will be used)
730
+			transport = undefined;
731
+
732
+			// Cache response headers
733
+			responseHeadersString = headers || "";
734
+
735
+			// Set readyState
736
+			jqXHR.readyState = status > 0 ? 4 : 0;
737
+
738
+			// Determine if successful
739
+			isSuccess = status >= 200 && status < 300 || status === 304;
740
+
741
+			// Get response data
742
+			if ( responses ) {
743
+				response = ajaxHandleResponses( s, jqXHR, responses );
744
+			}
745
+
746
+			// Convert no matter what (that way responseXXX fields are always set)
747
+			response = ajaxConvert( s, response, jqXHR, isSuccess );
748
+
749
+			// If successful, handle type chaining
750
+			if ( isSuccess ) {
751
+
752
+				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
753
+				if ( s.ifModified ) {
754
+					modified = jqXHR.getResponseHeader( "Last-Modified" );
755
+					if ( modified ) {
756
+						jQuery.lastModified[ cacheURL ] = modified;
757
+					}
758
+					modified = jqXHR.getResponseHeader( "etag" );
759
+					if ( modified ) {
760
+						jQuery.etag[ cacheURL ] = modified;
761
+					}
762
+				}
763
+
764
+				// if no content
765
+				if ( status === 204 || s.type === "HEAD" ) {
766
+					statusText = "nocontent";
767
+
768
+				// if not modified
769
+				} else if ( status === 304 ) {
770
+					statusText = "notmodified";
771
+
772
+				// If we have data, let's convert it
773
+				} else {
774
+					statusText = response.state;
775
+					success = response.data;
776
+					error = response.error;
777
+					isSuccess = !error;
778
+				}
779
+			} else {
780
+
781
+				// Extract error from statusText and normalize for non-aborts
782
+				error = statusText;
783
+				if ( status || !statusText ) {
784
+					statusText = "error";
785
+					if ( status < 0 ) {
786
+						status = 0;
787
+					}
788
+				}
789
+			}
790
+
791
+			// Set data for the fake xhr object
792
+			jqXHR.status = status;
793
+			jqXHR.statusText = ( nativeStatusText || statusText ) + "";
794
+
795
+			// Success/Error
796
+			if ( isSuccess ) {
797
+				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
798
+			} else {
799
+				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
800
+			}
801
+
802
+			// Status-dependent callbacks
803
+			jqXHR.statusCode( statusCode );
804
+			statusCode = undefined;
805
+
806
+			if ( fireGlobals ) {
807
+				globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
808
+					[ jqXHR, s, isSuccess ? success : error ] );
809
+			}
810
+
811
+			// Complete
812
+			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
813
+
814
+			if ( fireGlobals ) {
815
+				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
816
+
817
+				// Handle the global AJAX counter
818
+				if ( !( --jQuery.active ) ) {
819
+					jQuery.event.trigger( "ajaxStop" );
820
+				}
821
+			}
822
+		}
823
+
824
+		return jqXHR;
825
+	},
826
+
827
+	getJSON: function( url, data, callback ) {
828
+		return jQuery.get( url, data, callback, "json" );
829
+	},
830
+
831
+	getScript: function( url, callback ) {
832
+		return jQuery.get( url, undefined, callback, "script" );
833
+	}
834
+} );
835
+
836
+jQuery.each( [ "get", "post" ], function( i, method ) {
837
+	jQuery[ method ] = function( url, data, callback, type ) {
838
+
839
+		// Shift arguments if data argument was omitted
840
+		if ( isFunction( data ) ) {
841
+			type = type || callback;
842
+			callback = data;
843
+			data = undefined;
844
+		}
845
+
846
+		// The url can be an options object (which then must have .url)
847
+		return jQuery.ajax( jQuery.extend( {
848
+			url: url,
849
+			type: method,
850
+			dataType: type,
851
+			data: data,
852
+			success: callback
853
+		}, jQuery.isPlainObject( url ) && url ) );
854
+	};
855
+} );
856
+
857
+return jQuery;
858
+} );

+ 103
- 0
www/jquery/src/ajax/jsonp.js View File

@@ -0,0 +1,103 @@
1
+define( [
2
+	"../core",
3
+	"../var/isFunction",
4
+	"./var/nonce",
5
+	"./var/rquery",
6
+	"../ajax"
7
+], function( jQuery, isFunction, nonce, rquery ) {
8
+
9
+"use strict";
10
+
11
+var oldCallbacks = [],
12
+	rjsonp = /(=)\?(?=&|$)|\?\?/;
13
+
14
+// Default jsonp settings
15
+jQuery.ajaxSetup( {
16
+	jsonp: "callback",
17
+	jsonpCallback: function() {
18
+		var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
19
+		this[ callback ] = true;
20
+		return callback;
21
+	}
22
+} );
23
+
24
+// Detect, normalize options and install callbacks for jsonp requests
25
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
26
+
27
+	var callbackName, overwritten, responseContainer,
28
+		jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
29
+			"url" :
30
+			typeof s.data === "string" &&
31
+				( s.contentType || "" )
32
+					.indexOf( "application/x-www-form-urlencoded" ) === 0 &&
33
+				rjsonp.test( s.data ) && "data"
34
+		);
35
+
36
+	// Handle iff the expected data type is "jsonp" or we have a parameter to set
37
+	if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
38
+
39
+		// Get callback name, remembering preexisting value associated with it
40
+		callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?
41
+			s.jsonpCallback() :
42
+			s.jsonpCallback;
43
+
44
+		// Insert callback into url or form data
45
+		if ( jsonProp ) {
46
+			s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
47
+		} else if ( s.jsonp !== false ) {
48
+			s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
49
+		}
50
+
51
+		// Use data converter to retrieve json after script execution
52
+		s.converters[ "script json" ] = function() {
53
+			if ( !responseContainer ) {
54
+				jQuery.error( callbackName + " was not called" );
55
+			}
56
+			return responseContainer[ 0 ];
57
+		};
58
+
59
+		// Force json dataType
60
+		s.dataTypes[ 0 ] = "json";
61
+
62
+		// Install callback
63
+		overwritten = window[ callbackName ];
64
+		window[ callbackName ] = function() {
65
+			responseContainer = arguments;
66
+		};
67
+
68
+		// Clean-up function (fires after converters)
69
+		jqXHR.always( function() {
70
+
71
+			// If previous value didn't exist - remove it
72
+			if ( overwritten === undefined ) {
73
+				jQuery( window ).removeProp( callbackName );
74
+
75
+			// Otherwise restore preexisting value
76
+			} else {
77
+				window[ callbackName ] = overwritten;
78
+			}
79
+
80
+			// Save back as free
81
+			if ( s[ callbackName ] ) {
82
+
83
+				// Make sure that re-using the options doesn't screw things around
84
+				s.jsonpCallback = originalSettings.jsonpCallback;
85
+
86
+				// Save the callback name for future use
87
+				oldCallbacks.push( callbackName );
88
+			}
89
+
90
+			// Call if it was a function and we have a response
91
+			if ( responseContainer && isFunction( overwritten ) ) {
92
+				overwritten( responseContainer[ 0 ] );
93
+			}
94
+
95
+			responseContainer = overwritten = undefined;
96
+		} );
97
+
98
+		// Delegate to script
99
+		return "script";
100
+	}
101
+} );
102
+
103
+} );

+ 77
- 0
www/jquery/src/ajax/load.js View File

@@ -0,0 +1,77 @@
1
+define( [
2
+	"../core",
3
+	"../core/stripAndCollapse",
4
+	"../var/isFunction",
5
+	"../core/parseHTML",
6
+	"../ajax",
7
+	"../traversing",
8
+	"../manipulation",
9
+	"../selector"
10
+], function( jQuery, stripAndCollapse, isFunction ) {
11
+
12
+"use strict";
13
+
14
+/**
15
+ * Load a url into a page
16
+ */
17
+jQuery.fn.load = function( url, params, callback ) {
18
+	var selector, type, response,
19
+		self = this,
20
+		off = url.indexOf( " " );
21
+
22
+	if ( off > -1 ) {
23
+		selector = stripAndCollapse( url.slice( off ) );
24
+		url = url.slice( 0, off );
25
+	}
26
+
27
+	// If it's a function
28
+	if ( isFunction( params ) ) {
29
+
30
+		// We assume that it's the callback
31
+		callback = params;
32
+		params = undefined;
33
+
34
+	// Otherwise, build a param string
35
+	} else if ( params && typeof params === "object" ) {
36
+		type = "POST";
37
+	}
38
+
39
+	// If we have elements to modify, make the request
40
+	if ( self.length > 0 ) {
41
+		jQuery.ajax( {
42
+			url: url,
43
+
44
+			// If "type" variable is undefined, then "GET" method will be used.
45
+			// Make value of this field explicit since
46
+			// user can override it through ajaxSetup method
47
+			type: type || "GET",
48
+			dataType: "html",
49
+			data: params
50
+		} ).done( function( responseText ) {
51
+
52
+			// Save response for use in complete callback
53
+			response = arguments;
54
+
55
+			self.html( selector ?
56
+
57
+				// If a selector was specified, locate the right elements in a dummy div
58
+				// Exclude scripts to avoid IE 'Permission Denied' errors
59
+				jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
60
+
61
+				// Otherwise use the full result
62
+				responseText );
63
+
64
+		// If the request succeeds, this function gets "data", "status", "jqXHR"
65
+		// but they are ignored because response was set above.
66
+		// If it fails, this function gets "jqXHR", "status", "error"
67
+		} ).always( callback && function( jqXHR, status ) {
68
+			self.each( function() {
69
+				callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
70
+			} );
71
+		} );
72
+	}
73
+
74
+	return this;
75
+};
76
+
77
+} );

+ 30
- 0
www/jquery/src/ajax/parseXML.js View File

@@ -0,0 +1,30 @@
1
+define( [
2
+	"../core"
3
+], function( jQuery ) {
4
+
5
+"use strict";
6
+
7
+// Cross-browser xml parsing
8
+jQuery.parseXML = function( data ) {
9
+	var xml;
10
+	if ( !data || typeof data !== "string" ) {
11
+		return null;
12
+	}
13
+
14
+	// Support: IE 9 - 11 only
15
+	// IE throws on parseFromString with invalid input.
16
+	try {
17
+		xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
18
+	} catch ( e ) {
19
+		xml = undefined;
20
+	}
21
+
22
+	if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
23
+		jQuery.error( "Invalid XML: " + data );
24
+	}
25
+	return xml;
26
+};
27
+
28
+return jQuery.parseXML;
29
+
30
+} );

+ 74
- 0
www/jquery/src/ajax/script.js View File

@@ -0,0 +1,74 @@
1
+define( [
2
+	"../core",
3
+	"../var/document",
4
+	"../ajax"
5
+], function( jQuery, document ) {
6
+
7
+"use strict";
8
+
9
+// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
10
+jQuery.ajaxPrefilter( function( s ) {
11
+	if ( s.crossDomain ) {
12
+		s.contents.script = false;
13
+	}
14
+} );
15
+
16
+// Install script dataType
17
+jQuery.ajaxSetup( {
18
+	accepts: {
19
+		script: "text/javascript, application/javascript, " +
20
+			"application/ecmascript, application/x-ecmascript"
21
+	},
22
+	contents: {
23
+		script: /\b(?:java|ecma)script\b/
24
+	},
25
+	converters: {
26
+		"text script": function( text ) {
27
+			jQuery.globalEval( text );
28
+			return text;
29
+		}
30
+	}
31
+} );
32
+
33
+// Handle cache's special case and crossDomain
34
+jQuery.ajaxPrefilter( "script", function( s ) {
35
+	if ( s.cache === undefined ) {
36
+		s.cache = false;
37
+	}
38
+	if ( s.crossDomain ) {
39
+		s.type = "GET";
40
+	}
41
+} );
42
+
43
+// Bind script tag hack transport
44
+jQuery.ajaxTransport( "script", function( s ) {
45
+
46
+	// This transport only deals with cross domain or forced-by-attrs requests
47
+	if ( s.crossDomain || s.scriptAttrs ) {
48
+		var script, callback;
49
+		return {
50
+			send: function( _, complete ) {
51
+				script = jQuery( "<script>" )
52
+					.attr( s.scriptAttrs || {} )
53
+					.prop( { charset: s.scriptCharset, src: s.url } )
54
+					.on( "load error", callback = function( evt ) {
55
+						script.remove();
56
+						callback = null;
57
+						if ( evt ) {
58
+							complete( evt.type === "error" ? 404 : 200, evt.type );
59
+						}
60
+					} );
61
+
62
+				// Use native DOM manipulation to avoid our domManip AJAX trickery
63
+				document.head.appendChild( script[ 0 ] );
64
+			},
65
+			abort: function() {
66
+				if ( callback ) {
67
+					callback();
68
+				}
69
+			}
70
+		};
71
+	}
72
+} );
73
+
74
+} );

+ 5
- 0
www/jquery/src/ajax/var/location.js View File

@@ -0,0 +1,5 @@
1
+define( function() {
2
+	"use strict";
3
+
4
+	return window.location;
5
+} );

+ 5
- 0
www/jquery/src/ajax/var/nonce.js View File

@@ -0,0 +1,5 @@
1
+define( function() {
2
+	"use strict";
3
+
4
+	return Date.now();
5
+} );

+ 5
- 0
www/jquery/src/ajax/var/rquery.js View File

@@ -0,0 +1,5 @@
1
+define( function() {
2
+	"use strict";
3
+
4
+	return ( /\?/ );
5
+} );

+ 170
- 0
www/jquery/src/ajax/xhr.js View File

@@ -0,0 +1,170 @@
1
+define( [
2
+	"../core",
3
+	"../var/support",
4
+	"../ajax"
5
+], function( jQuery, support ) {
6
+
7
+"use strict";
8
+
9
+jQuery.ajaxSettings.xhr = function() {
10
+	try {
11
+		return new window.XMLHttpRequest();
12
+	} catch ( e ) {}
13
+};
14
+
15
+var xhrSuccessStatus = {
16
+
17
+		// File protocol always yields status code 0, assume 200
18
+		0: 200,
19
+
20
+		// Support: IE <=9 only
21
+		// #1450: sometimes IE returns 1223 when it should be 204
22
+		1223: 204
23
+	},
24
+	xhrSupported = jQuery.ajaxSettings.xhr();
25
+
26
+support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
27
+support.ajax = xhrSupported = !!xhrSupported;
28
+
29
+jQuery.ajaxTransport( function( options ) {
30
+	var callback, errorCallback;
31
+
32
+	// Cross domain only allowed if supported through XMLHttpRequest
33
+	if ( support.cors || xhrSupported && !options.crossDomain ) {
34
+		return {
35
+			send: function( headers, complete ) {
36
+				var i,
37
+					xhr = options.xhr();
38
+
39
+				xhr.open(
40
+					options.type,
41
+					options.url,
42
+					options.async,
43
+					options.username,
44
+					options.password
45
+				);
46
+
47
+				// Apply custom fields if provided
48
+				if ( options.xhrFields ) {
49
+					for ( i in options.xhrFields ) {
50
+						xhr[ i ] = options.xhrFields[ i ];
51
+					}
52
+				}
53
+
54
+				// Override mime type if needed
55
+				if ( options.mimeType && xhr.overrideMimeType ) {
56
+					xhr.overrideMimeType( options.mimeType );
57
+				}
58
+
59
+				// X-Requested-With header
60
+				// For cross-domain requests, seeing as conditions for a preflight are
61
+				// akin to a jigsaw puzzle, we simply never set it to be sure.
62
+				// (it can always be set on a per-request basis or even using ajaxSetup)
63
+				// For same-domain requests, won't change header if already provided.
64
+				if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
65
+					headers[ "X-Requested-With" ] = "XMLHttpRequest";
66
+				}
67
+
68
+				// Set headers
69
+				for ( i in headers ) {
70
+					xhr.setRequestHeader( i, headers[ i ] );
71
+				}
72
+
73
+				// Callback
74
+				callback = function( type ) {
75
+					return function() {
76
+						if ( callback ) {
77
+							callback = errorCallback = xhr.onload =
78
+								xhr.onerror = xhr.onabort = xhr.ontimeout =
79
+									xhr.onreadystatechange = null;
80
+
81
+							if ( type === "abort" ) {
82
+								xhr.abort();
83
+							} else if ( type === "error" ) {
84
+
85
+								// Support: IE <=9 only
86
+								// On a manual native abort, IE9 throws
87
+								// errors on any property access that is not readyState
88
+								if ( typeof xhr.status !== "number" ) {
89
+									complete( 0, "error" );
90
+								} else {
91
+									complete(
92
+
93
+										// File: protocol always yields status 0; see #8605, #14207
94
+										xhr.status,
95
+										xhr.statusText
96
+									);
97
+								}
98
+							} else {
99
+								complete(
100
+									xhrSuccessStatus[ xhr.status ] || xhr.status,
101
+									xhr.statusText,
102
+
103
+									// Support: IE <=9 only
104
+									// IE9 has no XHR2 but throws on binary (trac-11426)
105
+									// For XHR2 non-text, let the caller handle it (gh-2498)
106
+									( xhr.responseType || "text" ) !== "text"  ||
107
+									typeof xhr.responseText !== "string" ?
108
+										{ binary: xhr.response } :
109
+										{ text: xhr.responseText },
110
+									xhr.getAllResponseHeaders()
111
+								);
112
+							}
113
+						}
114
+					};
115
+				};
116
+
117
+				// Listen to events
118
+				xhr.onload = callback();
119
+				errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" );
120
+
121
+				// Support: IE 9 only
122
+				// Use onreadystatechange to replace onabort
123
+				// to handle uncaught aborts
124
+				if ( xhr.onabort !== undefined ) {
125
+					xhr.onabort = errorCallback;
126
+				} else {
127
+					xhr.onreadystatechange = function() {
128
+
129
+						// Check readyState before timeout as it changes
130
+						if ( xhr.readyState === 4 ) {
131
+
132
+							// Allow onerror to be called first,
133
+							// but that will not handle a native abort
134
+							// Also, save errorCallback to a variable
135
+							// as xhr.onerror cannot be accessed
136
+							window.setTimeout( function() {
137
+								if ( callback ) {
138
+									errorCallback();
139
+								}
140
+							} );
141
+						}
142
+					};
143
+				}
144
+
145
+				// Create the abort callback
146
+				callback = callback( "abort" );
147
+
148
+				try {
149
+
150
+					// Do send the request (this may raise an exception)
151
+					xhr.send( options.hasContent && options.data || null );
152
+				} catch ( e ) {
153
+
154
+					// #14683: Only rethrow if this hasn't been notified as an error yet
155
+					if ( callback ) {
156
+						throw e;
157
+					}
158
+				}
159
+			},
160
+
161
+			abort: function() {
162
+				if ( callback ) {
163
+					callback();
164
+				}
165
+			}
166
+		};
167
+	}
168
+} );
169
+
170
+} );

+ 13
- 0
www/jquery/src/attributes.js View File

@@ -0,0 +1,13 @@
1
+define( [
2
+	"./core",
3
+	"./attributes/attr",
4
+	"./attributes/prop",
5
+	"./attributes/classes",
6
+	"./attributes/val"
7
+], function( jQuery ) {
8
+
9
+"use strict";
10
+
11
+// Return jQuery for attributes-only inclusion
12
+return jQuery;
13
+} );

+ 141
- 0
www/jquery/src/attributes/attr.js View File

@@ -0,0 +1,141 @@
1
+define( [
2
+	"../core",
3
+	"../core/access",
4
+	"../core/nodeName",
5
+	"./support",
6
+	"../var/rnothtmlwhite",
7
+	"../selector"
8
+], function( jQuery, access, nodeName, support, rnothtmlwhite ) {
9
+
10
+"use strict";
11
+
12
+var boolHook,
13
+	attrHandle = jQuery.expr.attrHandle;
14
+
15
+jQuery.fn.extend( {
16
+	attr: function( name, value ) {
17
+		return access( this, jQuery.attr, name, value, arguments.length > 1 );
18
+	},
19
+
20
+	removeAttr: function( name ) {
21
+		return this.each( function() {
22
+			jQuery.removeAttr( this, name );
23
+		} );
24
+	}
25
+} );
26
+
27
+jQuery.extend( {
28
+	attr: function( elem, name, value ) {
29
+		var ret, hooks,
30
+			nType = elem.nodeType;
31
+
32
+		// Don't get/set attributes on text, comment and attribute nodes
33
+		if ( nType === 3 || nType === 8 || nType === 2 ) {
34
+			return;
35
+		}
36
+
37
+		// Fallback to prop when attributes are not supported
38
+		if ( typeof elem.getAttribute === "undefined" ) {
39
+			return jQuery.prop( elem, name, value );
40
+		}
41
+
42
+		// Attribute hooks are determined by the lowercase version
43
+		// Grab necessary hook if one is defined
44
+		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
45
+			hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
46
+				( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
47
+		}
48
+
49
+		if ( value !== undefined ) {
50
+			if ( value === null ) {
51
+				jQuery.removeAttr( elem, name );
52
+				return;
53
+			}
54
+
55
+			if ( hooks && "set" in hooks &&
56
+				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
57
+				return ret;
58
+			}
59
+
60
+			elem.setAttribute( name, value + "" );
61
+			return value;
62
+		}
63
+
64
+		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
65
+			return ret;
66
+		}
67
+
68
+		ret = jQuery.find.attr( elem, name );
69
+
70
+		// Non-existent attributes return null, we normalize to undefined
71
+		return ret == null ? undefined : ret;
72
+	},
73
+
74
+	attrHooks: {
75
+		type: {
76
+			set: function( elem, value ) {
77
+				if ( !support.radioValue && value === "radio" &&
78
+					nodeName( elem, "input" ) ) {
79
+					var val = elem.value;
80
+					elem.setAttribute( "type", value );
81
+					if ( val ) {
82
+						elem.value = val;
83
+					}
84
+					return value;
85
+				}
86
+			}
87
+		}
88
+	},
89
+
90
+	removeAttr: function( elem, value ) {
91
+		var name,
92
+			i = 0,
93
+
94
+			// Attribute names can contain non-HTML whitespace characters
95
+			// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
96
+			attrNames = value && value.match( rnothtmlwhite );
97
+
98
+		if ( attrNames && elem.nodeType === 1 ) {
99
+			while ( ( name = attrNames[ i++ ] ) ) {
100
+				elem.removeAttribute( name );
101
+			}
102
+		}
103
+	}
104
+} );
105
+
106
+// Hooks for boolean attributes
107
+boolHook = {
108
+	set: function( elem, value, name ) {
109
+		if ( value === false ) {
110
+
111
+			// Remove boolean attributes when set to false
112
+			jQuery.removeAttr( elem, name );
113
+		} else {
114
+			elem.setAttribute( name, name );
115
+		}
116
+		return name;
117
+	}
118
+};
119
+
120
+jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
121
+	var getter = attrHandle[ name ] || jQuery.find.attr;
122
+
123
+	attrHandle[ name ] = function( elem, name, isXML ) {
124
+		var ret, handle,
125
+			lowercaseName = name.toLowerCase();
126
+
127
+		if ( !isXML ) {
128
+
129
+			// Avoid an infinite loop by temporarily removing this function from the getter
130
+			handle = attrHandle[ lowercaseName ];
131
+			attrHandle[ lowercaseName ] = ret;
132
+			ret = getter( elem, name, isXML ) != null ?
133
+				lowercaseName :
134
+				null;
135
+			attrHandle[ lowercaseName ] = handle;
136
+		}
137
+		return ret;
138
+	};
139
+} );
140
+
141
+} );

+ 186
- 0
www/jquery/src/attributes/classes.js View File

@@ -0,0 +1,186 @@
1
+define( [
2
+	"../core",
3
+	"../core/stripAndCollapse",
4
+	"../var/isFunction",
5
+	"../var/rnothtmlwhite",
6
+	"../data/var/dataPriv",
7
+	"../core/init"
8
+], function( jQuery, stripAndCollapse, isFunction, rnothtmlwhite, dataPriv ) {
9
+
10
+"use strict";
11
+
12
+function getClass( elem ) {
13
+	return elem.getAttribute && elem.getAttribute( "class" ) || "";
14
+}
15
+
16
+function classesToArray( value ) {
17
+	if ( Array.isArray( value ) ) {
18
+		return value;
19
+	}
20
+	if ( typeof value === "string" ) {
21
+		return value.match( rnothtmlwhite ) || [];
22
+	}
23
+	return [];
24
+}
25
+
26
+jQuery.fn.extend( {
27
+	addClass: function( value ) {
28
+		var classes, elem, cur, curValue, clazz, j, finalValue,
29
+			i = 0;
30
+
31
+		if ( isFunction( value ) ) {
32
+			return this.each( function( j ) {
33
+				jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
34
+			} );
35
+		}
36
+
37
+		classes = classesToArray( value );
38
+
39
+		if ( classes.length ) {
40
+			while ( ( elem = this[ i++ ] ) ) {
41
+				curValue = getClass( elem );
42
+				cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
43
+
44
+				if ( cur ) {
45
+					j = 0;
46
+					while ( ( clazz = classes[ j++ ] ) ) {
47
+						if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
48
+							cur += clazz + " ";
49
+						}
50
+					}
51
+
52
+					// Only assign if different to avoid unneeded rendering.
53
+					finalValue = stripAndCollapse( cur );
54
+					if ( curValue !== finalValue ) {
55
+						elem.setAttribute( "class", finalValue );
56
+					}
57
+				}
58
+			}
59
+		}
60
+
61
+		return this;
62
+	},
63
+
64
+	removeClass: function( value ) {
65
+		var classes, elem, cur, curValue, clazz, j, finalValue,
66
+			i = 0;
67
+
68
+		if ( isFunction( value ) ) {
69
+			return this.each( function( j ) {
70
+				jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
71
+			} );
72
+		}
73
+
74
+		if ( !arguments.length ) {
75
+			return this.attr( "class", "" );
76
+		}
77
+
78
+		classes = classesToArray( value );
79
+
80
+		if ( classes.length ) {
81
+			while ( ( elem = this[ i++ ] ) ) {
82
+				curValue = getClass( elem );
83
+
84
+				// This expression is here for better compressibility (see addClass)
85
+				cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
86
+
87
+				if ( cur ) {
88
+					j = 0;
89
+					while ( ( clazz = classes[ j++ ] ) ) {
90
+
91
+						// Remove *all* instances
92
+						while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
93
+							cur = cur.replace( " " + clazz + " ", " " );
94
+						}
95
+					}
96
+
97
+					// Only assign if different to avoid unneeded rendering.
98
+					finalValue = stripAndCollapse( cur );
99
+					if ( curValue !== finalValue ) {
100
+						elem.setAttribute( "class", finalValue );
101
+					}
102
+				}
103
+			}
104
+		}
105
+
106
+		return this;
107
+	},
108
+
109
+	toggleClass: function( value, stateVal ) {
110
+		var type = typeof value,
111
+			isValidValue = type === "string" || Array.isArray( value );
112
+
113
+		if ( typeof stateVal === "boolean" && isValidValue ) {
114
+			return stateVal ? this.addClass( value ) : this.removeClass( value );
115
+		}
116
+
117
+		if ( isFunction( value ) ) {
118
+			return this.each( function( i ) {
119
+				jQuery( this ).toggleClass(
120
+					value.call( this, i, getClass( this ), stateVal ),
121
+					stateVal
122
+				);
123
+			} );
124
+		}
125
+
126
+		return this.each( function() {
127
+			var className, i, self, classNames;
128
+
129
+			if ( isValidValue ) {
130
+
131
+				// Toggle individual class names
132
+				i = 0;
133
+				self = jQuery( this );
134
+				classNames = classesToArray( value );
135
+
136
+				while ( ( className = classNames[ i++ ] ) ) {
137
+
138
+					// Check each className given, space separated list
139
+					if ( self.hasClass( className ) ) {
140
+						self.removeClass( className );
141
+					} else {
142
+						self.addClass( className );
143
+					}
144
+				}
145
+
146
+			// Toggle whole class name
147
+			} else if ( value === undefined || type === "boolean" ) {
148
+				className = getClass( this );
149
+				if ( className ) {
150
+
151
+					// Store className if set
152
+					dataPriv.set( this, "__className__", className );
153
+				}
154
+
155
+				// If the element has a class name or if we're passed `false`,
156
+				// then remove the whole classname (if there was one, the above saved it).
157
+				// Otherwise bring back whatever was previously saved (if anything),
158
+				// falling back to the empty string if nothing was stored.
159
+				if ( this.setAttribute ) {
160
+					this.setAttribute( "class",
161
+						className || value === false ?
162
+						"" :
163
+						dataPriv.get( this, "__className__" ) || ""
164
+					);
165
+				}
166
+			}
167
+		} );
168
+	},
169
+
170
+	hasClass: function( selector ) {
171
+		var className, elem,
172
+			i = 0;
173
+
174
+		className = " " + selector + " ";
175
+		while ( ( elem = this[ i++ ] ) ) {
176
+			if ( elem.nodeType === 1 &&
177
+				( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) {
178
+					return true;
179
+			}
180
+		}
181
+
182
+		return false;
183
+	}
184
+} );
185
+
186
+} );

+ 143
- 0
www/jquery/src/attributes/prop.js View File

@@ -0,0 +1,143 @@
1
+define( [
2
+	"../core",
3
+	"../core/access",
4
+	"./support",
5
+	"../selector"
6
+], function( jQuery, access, support ) {
7
+
8
+"use strict";
9
+
10
+var rfocusable = /^(?:input|select|textarea|button)$/i,
11
+	rclickable = /^(?:a|area)$/i;
12
+
13
+jQuery.fn.extend( {
14
+	prop: function( name, value ) {
15
+		return access( this, jQuery.prop, name, value, arguments.length > 1 );
16
+	},
17
+
18
+	removeProp: function( name ) {
19
+		return this.each( function() {
20
+			delete this[ jQuery.propFix[ name ] || name ];
21
+		} );
22
+	}
23
+} );
24
+
25
+jQuery.extend( {
26
+	prop: function( elem, name, value ) {
27
+		var ret, hooks,
28
+			nType = elem.nodeType;
29
+
30
+		// Don't get/set properties on text, comment and attribute nodes
31
+		if ( nType === 3 || nType === 8 || nType === 2 ) {
32
+			return;
33
+		}
34
+
35
+		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
36
+
37
+			// Fix name and attach hooks
38
+			name = jQuery.propFix[ name ] || name;
39
+			hooks = jQuery.propHooks[ name ];
40
+		}
41
+
42
+		if ( value !== undefined ) {
43
+			if ( hooks && "set" in hooks &&
44
+				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
45
+				return ret;
46
+			}
47
+
48
+			return ( elem[ name ] = value );
49
+		}
50
+
51
+		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
52
+			return ret;
53
+		}
54
+
55
+		return elem[ name ];
56
+	},
57
+
58
+	propHooks: {
59
+		tabIndex: {
60
+			get: function( elem ) {
61
+
62
+				// Support: IE <=9 - 11 only
63
+				// elem.tabIndex doesn't always return the
64
+				// correct value when it hasn't been explicitly set
65
+				// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
66
+				// Use proper attribute retrieval(#12072)
67
+				var tabindex = jQuery.find.attr( elem, "tabindex" );
68
+
69
+				if ( tabindex ) {
70
+					return parseInt( tabindex, 10 );
71
+				}
72
+
73
+				if (
74
+					rfocusable.test( elem.nodeName ) ||
75
+					rclickable.test( elem.nodeName ) &&
76
+					elem.href
77
+				) {
78
+					return 0;
79
+				}
80
+
81
+				return -1;
82
+			}
83
+		}
84
+	},
85
+
86
+	propFix: {
87
+		"for": "htmlFor",
88
+		"class": "className"
89
+	}
90
+} );
91
+
92
+// Support: IE <=11 only
93
+// Accessing the selectedIndex property
94
+// forces the browser to respect setting selected
95
+// on the option
96
+// The getter ensures a default option is selected
97
+// when in an optgroup
98
+// eslint rule "no-unused-expressions" is disabled for this code
99
+// since it considers such accessions noop
100
+if ( !support.optSelected ) {
101
+	jQuery.propHooks.selected = {
102
+		get: function( elem ) {
103
+
104
+			/* eslint no-unused-expressions: "off" */
105
+
106
+			var parent = elem.parentNode;
107
+			if ( parent && parent.parentNode ) {
108
+				parent.parentNode.selectedIndex;
109
+			}
110
+			return null;
111
+		},
112
+		set: function( elem ) {
113
+
114
+			/* eslint no-unused-expressions: "off" */
115
+
116
+			var parent = elem.parentNode;
117
+			if ( parent ) {
118
+				parent.selectedIndex;
119
+
120
+				if ( parent.parentNode ) {
121
+					parent.parentNode.selectedIndex;
122
+				}
123
+			}
124
+		}
125
+	};
126
+}
127
+
128
+jQuery.each( [
129
+	"tabIndex",
130
+	"readOnly",
131
+	"maxLength",
132
+	"cellSpacing",
133
+	"cellPadding",
134
+	"rowSpan",
135
+	"colSpan",
136
+	"useMap",
137
+	"frameBorder",
138
+	"contentEditable"
139
+], function() {
140
+	jQuery.propFix[ this.toLowerCase() ] = this;
141
+} );
142
+
143
+} );

+ 33
- 0
www/jquery/src/attributes/support.js View File

@@ -0,0 +1,33 @@
1
+define( [
2
+	"../var/document",
3
+	"../var/support"
4
+], function( document, support ) {
5
+
6
+"use strict";
7
+
8
+( function() {
9
+	var input = document.createElement( "input" ),
10
+		select = document.createElement( "select" ),
11
+		opt = select.appendChild( document.createElement( "option" ) );
12
+
13
+	input.type = "checkbox";
14
+
15
+	// Support: Android <=4.3 only
16
+	// Default value for a checkbox should be "on"
17
+	support.checkOn = input.value !== "";
18
+
19
+	// Support: IE <=11 only
20
+	// Must access selectedIndex to make default options select
21
+	support.optSelected = opt.selected;
22
+
23
+	// Support: IE <=11 only
24
+	// An input loses its value after becoming a radio
25
+	input = document.createElement( "input" );
26
+	input.value = "t";
27
+	input.type = "radio";
28
+	support.radioValue = input.value === "t";
29
+} )();
30
+
31
+return support;
32
+
33
+} );

+ 191
- 0
www/jquery/src/attributes/val.js View File

@@ -0,0 +1,191 @@
1
+define( [
2
+	"../core",
3
+	"../core/stripAndCollapse",
4
+	"./support",
5
+	"../core/nodeName",
6
+	"../var/isFunction",
7
+
8
+	"../core/init"
9
+], function( jQuery, stripAndCollapse, support, nodeName, isFunction ) {
10
+
11
+"use strict";
12
+
13
+var rreturn = /\r/g;
14
+
15
+jQuery.fn.extend( {
16
+	val: function( value ) {
17
+		var hooks, ret, valueIsFunction,
18
+			elem = this[ 0 ];
19
+
20
+		if ( !arguments.length ) {
21
+			if ( elem ) {
22
+				hooks = jQuery.valHooks[ elem.type ] ||
23
+					jQuery.valHooks[ elem.nodeName.toLowerCase() ];
24
+
25
+				if ( hooks &&
26
+					"get" in hooks &&
27
+					( ret = hooks.get( elem, "value" ) ) !== undefined
28
+				) {
29
+					return ret;
30
+				}
31
+
32
+				ret = elem.value;
33
+
34
+				// Handle most common string cases
35
+				if ( typeof ret === "string" ) {
36
+					return ret.replace( rreturn, "" );
37
+				}
38
+
39
+				// Handle cases where value is null/undef or number
40
+				return ret == null ? "" : ret;
41
+			}
42
+
43
+			return;
44
+		}
45
+
46
+		valueIsFunction = isFunction( value );
47
+
48
+		return this.each( function( i ) {
49
+			var val;
50
+
51
+			if ( this.nodeType !== 1 ) {
52
+				return;
53
+			}
54
+
55
+			if ( valueIsFunction ) {
56
+				val = value.call( this, i, jQuery( this ).val() );
57
+			} else {
58
+				val = value;
59
+			}
60
+
61
+			// Treat null/undefined as ""; convert numbers to string
62
+			if ( val == null ) {
63
+				val = "";
64
+
65
+			} else if ( typeof val === "number" ) {
66
+				val += "";
67
+
68
+			} else if ( Array.isArray( val ) ) {
69
+				val = jQuery.map( val, function( value ) {
70
+					return value == null ? "" : value + "";
71
+				} );
72
+			}
73
+
74
+			hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
75
+
76
+			// If set returns undefined, fall back to normal setting
77
+			if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
78
+				this.value = val;
79
+			}
80
+		} );
81
+	}
82
+} );
83
+
84
+jQuery.extend( {
85
+	valHooks: {
86
+		option: {
87
+			get: function( elem ) {
88
+
89
+				var val = jQuery.find.attr( elem, "value" );
90
+				return val != null ?
91
+					val :
92
+
93
+					// Support: IE <=10 - 11 only
94
+					// option.text throws exceptions (#14686, #14858)
95
+					// Strip and collapse whitespace
96
+					// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
97
+					stripAndCollapse( jQuery.text( elem ) );
98
+			}
99
+		},
100
+		select: {
101
+			get: function( elem ) {
102
+				var value, option, i,
103
+					options = elem.options,
104
+					index = elem.selectedIndex,
105
+					one = elem.type === "select-one",
106
+					values = one ? null : [],
107
+					max = one ? index + 1 : options.length;
108
+
109
+				if ( index < 0 ) {
110
+					i = max;
111
+
112
+				} else {
113
+					i = one ? index : 0;
114
+				}
115
+
116
+				// Loop through all the selected options
117
+				for ( ; i < max; i++ ) {
118
+					option = options[ i ];
119
+
120
+					// Support: IE <=9 only
121
+					// IE8-9 doesn't update selected after form reset (#2551)
122
+					if ( ( option.selected || i === index ) &&
123
+
124
+							// Don't return options that are disabled or in a disabled optgroup
125
+							!option.disabled &&
126
+							( !option.parentNode.disabled ||
127
+								!nodeName( option.parentNode, "optgroup" ) ) ) {
128
+
129
+						// Get the specific value for the option
130
+						value = jQuery( option ).val();
131
+
132
+						// We don't need an array for one selects
133
+						if ( one ) {
134
+							return value;
135
+						}
136
+
137
+						// Multi-Selects return an array
138
+						values.push( value );
139
+					}
140
+				}
141
+
142
+				return values;
143
+			},
144
+
145
+			set: function( elem, value ) {
146
+				var optionSet, option,
147
+					options = elem.options,
148
+					values = jQuery.makeArray( value ),
149
+					i = options.length;
150
+
151
+				while ( i-- ) {
152
+					option = options[ i ];
153
+
154
+					/* eslint-disable no-cond-assign */
155
+
156
+					if ( option.selected =
157
+						jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
158
+					) {
159
+						optionSet = true;
160
+					}
161
+
162
+					/* eslint-enable no-cond-assign */
163
+				}
164
+
165
+				// Force browsers to behave consistently when non-matching value is set
166
+				if ( !optionSet ) {
167
+					elem.selectedIndex = -1;
168
+				}
169
+				return values;
170
+			}
171
+		}
172
+	}
173
+} );
174
+
175
+// Radios and checkboxes getter/setter
176
+jQuery.each( [ "radio", "checkbox" ], function() {
177
+	jQuery.valHooks[ this ] = {
178
+		set: function( elem, value ) {
179
+			if ( Array.isArray( value ) ) {
180
+				return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
181
+			}
182
+		}
183
+	};
184
+	if ( !support.checkOn ) {
185
+		jQuery.valHooks[ this ].get = function( elem ) {
186
+			return elem.getAttribute( "value" ) === null ? "on" : elem.value;
187
+		};
188
+	}
189
+} );
190
+
191
+} );

+ 236
- 0
www/jquery/src/callbacks.js View File

@@ -0,0 +1,236 @@
1
+define( [
2
+	"./core",
3
+	"./core/toType",
4
+	"./var/isFunction",
5
+	"./var/rnothtmlwhite"
6
+], function( jQuery, toType, isFunction, rnothtmlwhite ) {
7
+
8
+"use strict";
9
+
10
+// Convert String-formatted options into Object-formatted ones
11
+function createOptions( options ) {
12
+	var object = {};
13
+	jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
14
+		object[ flag ] = true;
15
+	} );
16
+	return object;
17
+}
18
+
19
+/*
20
+ * Create a callback list using the following parameters:
21
+ *
22
+ *	options: an optional list of space-separated options that will change how
23
+ *			the callback list behaves or a more traditional option object
24
+ *
25
+ * By default a callback list will act like an event callback list and can be
26
+ * "fired" multiple times.
27
+ *
28
+ * Possible options:
29
+ *
30
+ *	once:			will ensure the callback list can only be fired once (like a Deferred)
31
+ *
32
+ *	memory:			will keep track of previous values and will call any callback added
33
+ *					after the list has been fired right away with the latest "memorized"
34
+ *					values (like a Deferred)
35
+ *
36
+ *	unique:			will ensure a callback can only be added once (no duplicate in the list)
37
+ *
38
+ *	stopOnFalse:	interrupt callings when a callback returns false
39
+ *
40
+ */
41
+jQuery.Callbacks = function( options ) {
42
+
43
+	// Convert options from String-formatted to Object-formatted if needed
44
+	// (we check in cache first)
45
+	options = typeof options === "string" ?
46
+		createOptions( options ) :
47
+		jQuery.extend( {}, options );
48
+
49
+	var // Flag to know if list is currently firing
50
+		firing,
51
+
52
+		// Last fire value for non-forgettable lists
53
+		memory,
54
+
55
+		// Flag to know if list was already fired
56
+		fired,
57
+
58
+		// Flag to prevent firing
59
+		locked,
60
+
61
+		// Actual callback list
62
+		list = [],
63
+
64
+		// Queue of execution data for repeatable lists
65
+		queue = [],
66
+
67
+		// Index of currently firing callback (modified by add/remove as needed)
68
+		firingIndex = -1,
69
+
70
+		// Fire callbacks
71
+		fire = function() {
72
+
73
+			// Enforce single-firing
74
+			locked = locked || options.once;
75
+
76
+			// Execute callbacks for all pending executions,
77
+			// respecting firingIndex overrides and runtime changes
78
+			fired = firing = true;
79
+			for ( ; queue.length; firingIndex = -1 ) {
80
+				memory = queue.shift();
81
+				while ( ++firingIndex < list.length ) {
82
+
83
+					// Run callback and check for early termination
84
+					if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
85
+						options.stopOnFalse ) {
86
+
87
+						// Jump to end and forget the data so .add doesn't re-fire
88
+						firingIndex = list.length;
89
+						memory = false;
90
+					}
91
+				}
92
+			}
93
+
94
+			// Forget the data if we're done with it
95
+			if ( !options.memory ) {
96
+				memory = false;
97
+			}
98
+
99
+			firing = false;
100
+
101
+			// Clean up if we're done firing for good
102
+			if ( locked ) {
103
+
104
+				// Keep an empty list if we have data for future add calls
105
+				if ( memory ) {
106
+					list = [];
107
+
108
+				// Otherwise, this object is spent
109
+				} else {
110
+					list = "";
111
+				}
112
+			}
113
+		},
114
+
115
+		// Actual Callbacks object
116
+		self = {
117
+
118
+			// Add a callback or a collection of callbacks to the list
119
+			add: function() {
120
+				if ( list ) {
121
+
122
+					// If we have memory from a past run, we should fire after adding
123
+					if ( memory && !firing ) {
124
+						firingIndex = list.length - 1;
125
+						queue.push( memory );
126
+					}
127
+
128
+					( function add( args ) {
129
+						jQuery.each( args, function( _, arg ) {
130
+							if ( isFunction( arg ) ) {
131
+								if ( !options.unique || !self.has( arg ) ) {
132
+									list.push( arg );
133
+								}
134
+							} else if ( arg && arg.length && toType( arg ) !== "string" ) {
135
+
136
+								// Inspect recursively
137
+								add( arg );
138
+							}
139
+						} );
140
+					} )( arguments );
141
+
142
+					if ( memory && !firing ) {
143
+						fire();
144
+					}
145
+				}
146
+				return this;
147
+			},
148
+
149
+			// Remove a callback from the list
150
+			remove: function() {
151
+				jQuery.each( arguments, function( _, arg ) {
152
+					var index;
153
+					while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
154
+						list.splice( index, 1 );
155
+
156
+						// Handle firing indexes
157
+						if ( index <= firingIndex ) {
158
+							firingIndex--;
159
+						}
160
+					}
161
+				} );
162
+				return this;
163
+			},
164
+
165
+			// Check if a given callback is in the list.
166
+			// If no argument is given, return whether or not list has callbacks attached.
167
+			has: function( fn ) {
168
+				return fn ?
169
+					jQuery.inArray( fn, list ) > -1 :
170
+					list.length > 0;
171
+			},
172
+
173
+			// Remove all callbacks from the list
174
+			empty: function() {
175
+				if ( list ) {
176
+					list = [];
177
+				}
178
+				return this;
179
+			},
180
+
181
+			// Disable .fire and .add
182
+			// Abort any current/pending executions
183
+			// Clear all callbacks and values
184
+			disable: function() {
185
+				locked = queue = [];
186
+				list = memory = "";
187
+				return this;
188
+			},
189
+			disabled: function() {
190
+				return !list;
191
+			},
192
+
193
+			// Disable .fire
194
+			// Also disable .add unless we have memory (since it would have no effect)
195
+			// Abort any pending executions
196
+			lock: function() {
197
+				locked = queue = [];
198
+				if ( !memory && !firing ) {
199
+					list = memory = "";
200
+				}
201
+				return this;
202
+			},
203
+			locked: function() {
204
+				return !!locked;
205
+			},
206
+
207
+			// Call all callbacks with the given context and arguments
208
+			fireWith: function( context, args ) {
209
+				if ( !locked ) {
210
+					args = args || [];
211
+					args = [ context, args.slice ? args.slice() : args ];
212
+					queue.push( args );
213
+					if ( !firing ) {
214
+						fire();
215
+					}
216
+				}
217
+				return this;
218
+			},
219
+
220
+			// Call all the callbacks with the given arguments
221
+			fire: function() {
222
+				self.fireWith( this, arguments );
223
+				return this;
224
+			},
225
+
226
+			// To know if the callbacks have already been called at least once
227
+			fired: function() {
228
+				return !!fired;
229
+			}
230
+		};
231
+
232
+	return self;
233
+};
234
+
235
+return jQuery;
236
+} );

+ 399
- 0
www/jquery/src/core.js View File

@@ -0,0 +1,399 @@
1
+/* global Symbol */
2
+// Defining this global in .eslintrc.json would create a danger of using the global
3
+// unguarded in another place, it seems safer to define global only for this module
4
+
5
+define( [
6
+	"./var/arr",
7
+	"./var/document",
8
+	"./var/getProto",
9
+	"./var/slice",
10
+	"./var/concat",
11
+	"./var/push",
12
+	"./var/indexOf",
13
+	"./var/class2type",
14
+	"./var/toString",
15
+	"./var/hasOwn",
16
+	"./var/fnToString",
17
+	"./var/ObjectFunctionString",
18
+	"./var/support",
19
+	"./var/isFunction",
20
+	"./var/isWindow",
21
+	"./core/DOMEval",
22
+	"./core/toType"
23
+], function( arr, document, getProto, slice, concat, push, indexOf,
24
+	class2type, toString, hasOwn, fnToString, ObjectFunctionString,
25
+	support, isFunction, isWindow, DOMEval, toType ) {
26
+
27
+"use strict";
28
+
29
+var
30
+	version = "3.4.1",
31
+
32
+	// Define a local copy of jQuery
33
+	jQuery = function( selector, context ) {
34
+
35
+		// The jQuery object is actually just the init constructor 'enhanced'
36
+		// Need init if jQuery is called (just allow error to be thrown if not included)
37
+		return new jQuery.fn.init( selector, context );
38
+	},
39
+
40
+	// Support: Android <=4.0 only
41
+	// Make sure we trim BOM and NBSP
42
+	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
43
+
44
+jQuery.fn = jQuery.prototype = {
45
+
46
+	// The current version of jQuery being used
47
+	jquery: version,
48
+
49
+	constructor: jQuery,
50
+
51
+	// The default length of a jQuery object is 0
52
+	length: 0,
53
+
54
+	toArray: function() {
55
+		return slice.call( this );
56
+	},
57
+
58
+	// Get the Nth element in the matched element set OR
59
+	// Get the whole matched element set as a clean array
60
+	get: function( num ) {
61
+
62
+		// Return all the elements in a clean array
63
+		if ( num == null ) {
64
+			return slice.call( this );
65
+		}
66
+
67
+		// Return just the one element from the set
68
+		return num < 0 ? this[ num + this.length ] : this[ num ];
69
+	},
70
+
71
+	// Take an array of elements and push it onto the stack
72
+	// (returning the new matched element set)
73
+	pushStack: function( elems ) {
74
+
75
+		// Build a new jQuery matched element set
76
+		var ret = jQuery.merge( this.constructor(), elems );
77
+
78
+		// Add the old object onto the stack (as a reference)
79
+		ret.prevObject = this;
80
+
81
+		// Return the newly-formed element set
82
+		return ret;
83
+	},
84
+
85
+	// Execute a callback for every element in the matched set.
86
+	each: function( callback ) {
87
+		return jQuery.each( this, callback );
88
+	},
89
+
90
+	map: function( callback ) {
91
+		return this.pushStack( jQuery.map( this, function( elem, i ) {
92
+			return callback.call( elem, i, elem );
93
+		} ) );
94
+	},
95
+
96
+	slice: function() {
97
+		return this.pushStack( slice.apply( this, arguments ) );
98
+	},
99
+
100
+	first: function() {
101
+		return this.eq( 0 );
102
+	},
103
+
104
+	last: function() {
105
+		return this.eq( -1 );
106
+	},
107
+
108
+	eq: function( i ) {
109
+		var len = this.length,
110
+			j = +i + ( i < 0 ? len : 0 );
111
+		return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
112
+	},
113
+
114
+	end: function() {
115
+		return this.prevObject || this.constructor();
116
+	},
117
+
118
+	// For internal use only.
119
+	// Behaves like an Array's method, not like a jQuery method.
120
+	push: push,
121
+	sort: arr.sort,
122
+	splice: arr.splice
123
+};
124
+
125
+jQuery.extend = jQuery.fn.extend = function() {
126
+	var options, name, src, copy, copyIsArray, clone,
127
+		target = arguments[ 0 ] || {},
128
+		i = 1,
129
+		length = arguments.length,
130
+		deep = false;
131
+
132
+	// Handle a deep copy situation
133
+	if ( typeof target === "boolean" ) {
134
+		deep = target;
135
+
136
+		// Skip the boolean and the target
137
+		target = arguments[ i ] || {};
138
+		i++;
139
+	}
140
+
141
+	// Handle case when target is a string or something (possible in deep copy)
142
+	if ( typeof target !== "object" && !isFunction( target ) ) {
143
+		target = {};
144
+	}
145
+
146
+	// Extend jQuery itself if only one argument is passed
147
+	if ( i === length ) {
148
+		target = this;
149
+		i--;
150
+	}
151
+
152
+	for ( ; i < length; i++ ) {
153
+
154
+		// Only deal with non-null/undefined values
155
+		if ( ( options = arguments[ i ] ) != null ) {
156
+
157
+			// Extend the base object
158
+			for ( name in options ) {
159
+				copy = options[ name ];
160
+
161
+				// Prevent Object.prototype pollution
162
+				// Prevent never-ending loop
163
+				if ( name === "__proto__" || target === copy ) {
164
+					continue;
165
+				}
166
+
167
+				// Recurse if we're merging plain objects or arrays
168
+				if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
169
+					( copyIsArray = Array.isArray( copy ) ) ) ) {
170
+					src = target[ name ];
171
+
172
+					// Ensure proper type for the source value
173
+					if ( copyIsArray && !Array.isArray( src ) ) {
174
+						clone = [];
175
+					} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
176
+						clone = {};
177
+					} else {
178
+						clone = src;
179
+					}
180
+					copyIsArray = false;
181
+
182
+					// Never move original objects, clone them
183
+					target[ name ] = jQuery.extend( deep, clone, copy );
184
+
185
+				// Don't bring in undefined values
186
+				} else if ( copy !== undefined ) {
187
+					target[ name ] = copy;
188
+				}
189
+			}
190
+		}
191
+	}
192
+
193
+	// Return the modified object
194
+	return target;
195
+};
196
+
197
+jQuery.extend( {
198
+
199
+	// Unique for each copy of jQuery on the page
200
+	expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
201
+
202
+	// Assume jQuery is ready without the ready module
203
+	isReady: true,
204
+
205
+	error: function( msg ) {
206
+		throw new Error( msg );
207
+	},
208
+
209
+	noop: function() {},
210
+
211
+	isPlainObject: function( obj ) {
212
+		var proto, Ctor;
213
+
214
+		// Detect obvious negatives
215
+		// Use toString instead of jQuery.type to catch host objects
216
+		if ( !obj || toString.call( obj ) !== "[object Object]" ) {
217
+			return false;
218
+		}
219
+
220
+		proto = getProto( obj );
221
+
222
+		// Objects with no prototype (e.g., `Object.create( null )`) are plain
223
+		if ( !proto ) {
224
+			return true;
225
+		}
226
+
227
+		// Objects with prototype are plain iff they were constructed by a global Object function
228
+		Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
229
+		return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
230
+	},
231
+
232
+	isEmptyObject: function( obj ) {
233
+		var name;
234
+
235
+		for ( name in obj ) {
236
+			return false;
237
+		}
238
+		return true;
239
+	},
240
+
241
+	// Evaluates a script in a global context
242
+	globalEval: function( code, options ) {
243
+		DOMEval( code, { nonce: options && options.nonce } );
244
+	},
245
+
246
+	each: function( obj, callback ) {
247
+		var length, i = 0;
248
+
249
+		if ( isArrayLike( obj ) ) {
250
+			length = obj.length;
251
+			for ( ; i < length; i++ ) {
252
+				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
253
+					break;
254
+				}
255
+			}
256
+		} else {
257
+			for ( i in obj ) {
258
+				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
259
+					break;
260
+				}
261
+			}
262
+		}
263
+
264
+		return obj;
265
+	},
266
+
267
+	// Support: Android <=4.0 only
268
+	trim: function( text ) {
269
+		return text == null ?
270
+			"" :
271
+			( text + "" ).replace( rtrim, "" );
272
+	},
273
+
274
+	// results is for internal usage only
275
+	makeArray: function( arr, results ) {
276
+		var ret = results || [];
277
+
278
+		if ( arr != null ) {
279
+			if ( isArrayLike( Object( arr ) ) ) {
280
+				jQuery.merge( ret,
281
+					typeof arr === "string" ?
282
+					[ arr ] : arr
283
+				);
284
+			} else {
285
+				push.call( ret, arr );
286
+			}
287
+		}
288
+
289
+		return ret;
290
+	},
291
+
292
+	inArray: function( elem, arr, i ) {
293
+		return arr == null ? -1 : indexOf.call( arr, elem, i );
294
+	},
295
+
296
+	// Support: Android <=4.0 only, PhantomJS 1 only
297
+	// push.apply(_, arraylike) throws on ancient WebKit
298
+	merge: function( first, second ) {
299
+		var len = +second.length,
300
+			j = 0,
301
+			i = first.length;
302
+
303
+		for ( ; j < len; j++ ) {
304
+			first[ i++ ] = second[ j ];
305
+		}
306
+
307
+		first.length = i;
308
+
309
+		return first;
310
+	},
311
+
312
+	grep: function( elems, callback, invert ) {
313
+		var callbackInverse,
314
+			matches = [],
315
+			i = 0,
316
+			length = elems.length,
317
+			callbackExpect = !invert;
318
+
319
+		// Go through the array, only saving the items
320
+		// that pass the validator function
321
+		for ( ; i < length; i++ ) {
322
+			callbackInverse = !callback( elems[ i ], i );
323
+			if ( callbackInverse !== callbackExpect ) {
324
+				matches.push( elems[ i ] );
325
+			}
326
+		}
327
+
328
+		return matches;
329
+	},
330
+
331
+	// arg is for internal usage only
332
+	map: function( elems, callback, arg ) {
333
+		var length, value,
334
+			i = 0,
335
+			ret = [];
336
+
337
+		// Go through the array, translating each of the items to their new values
338
+		if ( isArrayLike( elems ) ) {
339
+			length = elems.length;
340
+			for ( ; i < length; i++ ) {
341
+				value = callback( elems[ i ], i, arg );
342
+
343
+				if ( value != null ) {
344
+					ret.push( value );
345
+				}
346
+			}
347
+
348
+		// Go through every key on the object,
349
+		} else {
350
+			for ( i in elems ) {
351
+				value = callback( elems[ i ], i, arg );
352
+
353
+				if ( value != null ) {
354
+					ret.push( value );
355
+				}
356
+			}
357
+		}
358
+
359
+		// Flatten any nested arrays
360
+		return concat.apply( [], ret );
361
+	},
362
+
363
+	// A global GUID counter for objects
364
+	guid: 1,
365
+
366
+	// jQuery.support is not used in Core but other projects attach their
367
+	// properties to it so it needs to exist.
368
+	support: support
369
+} );
370
+
371
+if ( typeof Symbol === "function" ) {
372
+	jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
373
+}
374
+
375
+// Populate the class2type map
376
+jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
377
+function( i, name ) {
378
+	class2type[ "[object " + name + "]" ] = name.toLowerCase();
379
+} );
380
+
381
+function isArrayLike( obj ) {
382
+
383
+	// Support: real iOS 8.2 only (not reproducible in simulator)
384
+	// `in` check used to prevent JIT error (gh-2145)
385
+	// hasOwn isn't used here due to false negatives
386
+	// regarding Nodelist length in IE
387
+	var length = !!obj && "length" in obj && obj.length,
388
+		type = toType( obj );
389
+
390
+	if ( isFunction( obj ) || isWindow( obj ) ) {
391
+		return false;
392
+	}
393
+
394
+	return type === "array" || length === 0 ||
395
+		typeof length === "number" && length > 0 && ( length - 1 ) in obj;
396
+}
397
+
398
+return jQuery;
399
+} );

+ 43
- 0
www/jquery/src/core/DOMEval.js View File

@@ -0,0 +1,43 @@
1
+define( [
2
+	"../var/document"
3
+], function( document ) {
4
+	"use strict";
5
+
6
+	var preservedScriptAttributes = {
7
+		type: true,
8
+		src: true,
9
+		nonce: true,
10
+		noModule: true
11
+	};
12
+
13
+	function DOMEval( code, node, doc ) {
14
+		doc = doc || document;
15
+
16
+		var i, val,
17
+			script = doc.createElement( "script" );
18
+
19
+		script.text = code;
20
+		if ( node ) {
21
+			for ( i in preservedScriptAttributes ) {
22
+
23
+				// Support: Firefox 64+, Edge 18+
24
+				// Some browsers don't support the "nonce" property on scripts.
25
+				// On the other hand, just using `getAttribute` is not enough as
26
+				// the `nonce` attribute is reset to an empty string whenever it
27
+				// becomes browsing-context connected.
28
+				// See https://github.com/whatwg/html/issues/2369
29
+				// See https://html.spec.whatwg.org/#nonce-attributes
30
+				// The `node.getAttribute` check was added for the sake of
31
+				// `jQuery.globalEval` so that it can fake a nonce-containing node
32
+				// via an object.
33
+				val = node[ i ] || node.getAttribute && node.getAttribute( i );
34
+				if ( val ) {
35
+					script.setAttribute( i, val );
36
+				}
37
+			}
38
+		}
39
+		doc.head.appendChild( script ).parentNode.removeChild( script );
40
+	}
41
+
42
+	return DOMEval;
43
+} );

+ 72
- 0
www/jquery/src/core/access.js View File

@@ -0,0 +1,72 @@
1
+define( [
2
+	"../core",
3
+	"../core/toType",
4
+	"../var/isFunction"
5
+], function( jQuery, toType, isFunction ) {
6
+
7
+"use strict";
8
+
9
+// Multifunctional method to get and set values of a collection
10
+// The value/s can optionally be executed if it's a function
11
+var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
12
+	var i = 0,
13
+		len = elems.length,
14
+		bulk = key == null;
15
+
16
+	// Sets many values
17
+	if ( toType( key ) === "object" ) {
18
+		chainable = true;
19
+		for ( i in key ) {
20
+			access( elems, fn, i, key[ i ], true, emptyGet, raw );
21
+		}
22
+
23
+	// Sets one value
24
+	} else if ( value !== undefined ) {
25
+		chainable = true;
26
+
27
+		if ( !isFunction( value ) ) {
28
+			raw = true;
29
+		}
30
+
31
+		if ( bulk ) {
32
+
33
+			// Bulk operations run against the entire set
34
+			if ( raw ) {
35
+				fn.call( elems, value );
36
+				fn = null;
37
+
38
+			// ...except when executing function values
39
+			} else {
40
+				bulk = fn;
41
+				fn = function( elem, key, value ) {
42
+					return bulk.call( jQuery( elem ), value );
43
+				};
44
+			}
45
+		}
46
+
47
+		if ( fn ) {
48
+			for ( ; i < len; i++ ) {
49
+				fn(
50
+					elems[ i ], key, raw ?
51
+					value :
52
+					value.call( elems[ i ], i, fn( elems[ i ], key ) )
53
+				);
54
+			}
55
+		}
56
+	}
57
+
58
+	if ( chainable ) {
59
+		return elems;
60
+	}
61
+
62
+	// Gets
63
+	if ( bulk ) {
64
+		return fn.call( elems );
65
+	}
66
+
67
+	return len ? fn( elems[ 0 ], key ) : emptyGet;
68
+};
69
+
70
+return access;
71
+
72
+} );

+ 23
- 0
www/jquery/src/core/camelCase.js View File

@@ -0,0 +1,23 @@
1
+define( [], function() {
2
+
3
+"use strict";
4
+
5
+// Matches dashed string for camelizing
6
+var rmsPrefix = /^-ms-/,
7
+	rdashAlpha = /-([a-z])/g;
8
+
9
+// Used by camelCase as callback to replace()
10
+function fcamelCase( all, letter ) {
11
+	return letter.toUpperCase();
12
+}
13
+
14
+// Convert dashed to camelCase; used by the css and data modules
15
+// Support: IE <=9 - 11, Edge 12 - 15
16
+// Microsoft forgot to hump their vendor prefix (#9572)
17
+function camelCase( string ) {
18
+	return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
19
+}
20
+
21
+return camelCase;
22
+
23
+} );

+ 129
- 0
www/jquery/src/core/init.js View File

@@ -0,0 +1,129 @@
1
+// Initialize a jQuery object
2
+define( [
3
+	"../core",
4
+	"../var/document",
5
+	"../var/isFunction",
6
+	"./var/rsingleTag",
7
+
8
+	"../traversing/findFilter"
9
+], function( jQuery, document, isFunction, rsingleTag ) {
10
+
11
+"use strict";
12
+
13
+// A central reference to the root jQuery(document)
14
+var rootjQuery,
15
+
16
+	// A simple way to check for HTML strings
17
+	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
18
+	// Strict HTML recognition (#11290: must start with <)
19
+	// Shortcut simple #id case for speed
20
+	rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
21
+
22
+	init = jQuery.fn.init = function( selector, context, root ) {
23
+		var match, elem;
24
+
25
+		// HANDLE: $(""), $(null), $(undefined), $(false)
26
+		if ( !selector ) {
27
+			return this;
28
+		}
29
+
30
+		// Method init() accepts an alternate rootjQuery
31
+		// so migrate can support jQuery.sub (gh-2101)
32
+		root = root || rootjQuery;
33
+
34
+		// Handle HTML strings
35
+		if ( typeof selector === "string" ) {
36
+			if ( selector[ 0 ] === "<" &&
37
+				selector[ selector.length - 1 ] === ">" &&
38
+				selector.length >= 3 ) {
39
+
40
+				// Assume that strings that start and end with <> are HTML and skip the regex check
41
+				match = [ null, selector, null ];
42
+
43
+			} else {
44
+				match = rquickExpr.exec( selector );
45
+			}
46
+
47
+			// Match html or make sure no context is specified for #id
48
+			if ( match && ( match[ 1 ] || !context ) ) {
49
+
50
+				// HANDLE: $(html) -> $(array)
51
+				if ( match[ 1 ] ) {
52
+					context = context instanceof jQuery ? context[ 0 ] : context;
53
+
54
+					// Option to run scripts is true for back-compat
55
+					// Intentionally let the error be thrown if parseHTML is not present
56
+					jQuery.merge( this, jQuery.parseHTML(
57
+						match[ 1 ],
58
+						context && context.nodeType ? context.ownerDocument || context : document,
59
+						true
60
+					) );
61
+
62
+					// HANDLE: $(html, props)
63
+					if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
64
+						for ( match in context ) {
65
+
66
+							// Properties of context are called as methods if possible
67
+							if ( isFunction( this[ match ] ) ) {
68
+								this[ match ]( context[ match ] );
69
+
70
+							// ...and otherwise set as attributes
71
+							} else {
72
+								this.attr( match, context[ match ] );
73
+							}
74
+						}
75
+					}
76
+
77
+					return this;
78
+
79
+				// HANDLE: $(#id)
80
+				} else {
81
+					elem = document.getElementById( match[ 2 ] );
82
+
83
+					if ( elem ) {
84
+
85
+						// Inject the element directly into the jQuery object
86
+						this[ 0 ] = elem;
87
+						this.length = 1;
88
+					}
89
+					return this;
90
+				}
91
+
92
+			// HANDLE: $(expr, $(...))
93
+			} else if ( !context || context.jquery ) {
94
+				return ( context || root ).find( selector );
95
+
96
+			// HANDLE: $(expr, context)
97
+			// (which is just equivalent to: $(context).find(expr)
98
+			} else {
99
+				return this.constructor( context ).find( selector );
100
+			}
101
+
102
+		// HANDLE: $(DOMElement)
103
+		} else if ( selector.nodeType ) {
104
+			this[ 0 ] = selector;
105
+			this.length = 1;
106
+			return this;
107
+
108
+		// HANDLE: $(function)
109
+		// Shortcut for document ready
110
+		} else if ( isFunction( selector ) ) {
111
+			return root.ready !== undefined ?
112
+				root.ready( selector ) :
113
+
114
+				// Execute immediately if ready is not present
115
+				selector( jQuery );
116
+		}
117
+
118
+		return jQuery.makeArray( selector, this );
119
+	};
120
+
121
+// Give the init function the jQuery prototype for later instantiation
122
+init.prototype = jQuery.fn;
123
+
124
+// Initialize central reference
125
+rootjQuery = jQuery( document );
126
+
127
+return init;
128
+
129
+} );

+ 26
- 0
www/jquery/src/core/isAttached.js View File

@@ -0,0 +1,26 @@
1
+define( [
2
+	"../core",
3
+	"../var/documentElement",
4
+	"../selector" // jQuery.contains
5
+], function( jQuery, documentElement ) {
6
+	"use strict";
7
+
8
+	var isAttached = function( elem ) {
9
+			return jQuery.contains( elem.ownerDocument, elem );
10
+		},
11
+		composed = { composed: true };
12
+
13
+	// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
14
+	// Check attachment across shadow DOM boundaries when possible (gh-3504)
15
+	// Support: iOS 10.0-10.2 only
16
+	// Early iOS 10 versions support `attachShadow` but not `getRootNode`,
17
+	// leading to errors. We need to check for `getRootNode`.
18
+	if ( documentElement.getRootNode ) {
19
+		isAttached = function( elem ) {
20
+			return jQuery.contains( elem.ownerDocument, elem ) ||
21
+				elem.getRootNode( composed ) === elem.ownerDocument;
22
+		};
23
+	}
24
+
25
+	return isAttached;
26
+} );

+ 13
- 0
www/jquery/src/core/nodeName.js View File

@@ -0,0 +1,13 @@
1
+define( function() {
2
+
3
+"use strict";
4
+
5
+function nodeName( elem, name ) {
6
+
7
+  return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
8
+
9
+};
10
+
11
+return nodeName;
12
+
13
+} );

+ 65
- 0
www/jquery/src/core/parseHTML.js View File

@@ -0,0 +1,65 @@
1
+define( [
2
+	"../core",
3
+	"../var/document",
4
+	"./var/rsingleTag",
5
+	"../manipulation/buildFragment",
6
+
7
+	// This is the only module that needs core/support
8
+	"./support"
9
+], function( jQuery, document, rsingleTag, buildFragment, support ) {
10
+
11
+"use strict";
12
+
13
+// Argument "data" should be string of html
14
+// context (optional): If specified, the fragment will be created in this context,
15
+// defaults to document
16
+// keepScripts (optional): If true, will include scripts passed in the html string
17
+jQuery.parseHTML = function( data, context, keepScripts ) {
18
+	if ( typeof data !== "string" ) {
19
+		return [];
20
+	}
21
+	if ( typeof context === "boolean" ) {
22
+		keepScripts = context;
23
+		context = false;
24
+	}
25
+
26
+	var base, parsed, scripts;
27
+
28
+	if ( !context ) {
29
+
30
+		// Stop scripts or inline event handlers from being executed immediately
31
+		// by using document.implementation
32
+		if ( support.createHTMLDocument ) {
33
+			context = document.implementation.createHTMLDocument( "" );
34
+
35
+			// Set the base href for the created document
36
+			// so any parsed elements with URLs
37
+			// are based on the document's URL (gh-2965)
38
+			base = context.createElement( "base" );
39
+			base.href = document.location.href;
40
+			context.head.appendChild( base );
41
+		} else {
42
+			context = document;
43
+		}
44
+	}
45
+
46
+	parsed = rsingleTag.exec( data );
47
+	scripts = !keepScripts && [];
48
+
49
+	// Single tag
50
+	if ( parsed ) {
51
+		return [ context.createElement( parsed[ 1 ] ) ];
52
+	}
53
+
54
+	parsed = buildFragment( [ data ], context, scripts );
55
+
56
+	if ( scripts && scripts.length ) {
57
+		jQuery( scripts ).remove();
58
+	}
59
+
60
+	return jQuery.merge( [], parsed.childNodes );
61
+};
62
+
63
+return jQuery.parseHTML;
64
+
65
+} );

+ 97
- 0
www/jquery/src/core/ready-no-deferred.js View File

@@ -0,0 +1,97 @@
1
+define( [
2
+	"../core",
3
+	"../var/document",
4
+	"../var/isFunction"
5
+], function( jQuery, document, isFunction ) {
6
+
7
+"use strict";
8
+
9
+var readyCallbacks = [],
10
+	whenReady = function( fn ) {
11
+		readyCallbacks.push( fn );
12
+	},
13
+	executeReady = function( fn ) {
14
+
15
+		// Prevent errors from freezing future callback execution (gh-1823)
16
+		// Not backwards-compatible as this does not execute sync
17
+		window.setTimeout( function() {
18
+			fn.call( document, jQuery );
19
+		} );
20
+	};
21
+
22
+jQuery.fn.ready = function( fn ) {
23
+	whenReady( fn );
24
+	return this;
25
+};
26
+
27
+jQuery.extend( {
28
+
29
+	// Is the DOM ready to be used? Set to true once it occurs.
30
+	isReady: false,
31
+
32
+	// A counter to track how many items to wait for before
33
+	// the ready event fires. See #6781
34
+	readyWait: 1,
35
+
36
+	ready: function( wait ) {
37
+
38
+		// Abort if there are pending holds or we're already ready
39
+		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
40
+			return;
41
+		}
42
+
43
+		// Remember that the DOM is ready
44
+		jQuery.isReady = true;
45
+
46
+		// If a normal DOM Ready event fired, decrement, and wait if need be
47
+		if ( wait !== true && --jQuery.readyWait > 0 ) {
48
+			return;
49
+		}
50
+
51
+		whenReady = function( fn ) {
52
+			readyCallbacks.push( fn );
53
+
54
+			while ( readyCallbacks.length ) {
55
+				fn = readyCallbacks.shift();
56
+				if ( isFunction( fn ) ) {
57
+					executeReady( fn );
58
+				}
59
+			}
60
+		};
61
+
62
+		whenReady();
63
+	}
64
+} );
65
+
66
+// Make jQuery.ready Promise consumable (gh-1778)
67
+jQuery.ready.then = jQuery.fn.ready;
68
+
69
+/**
70
+ * The ready event handler and self cleanup method
71
+ */
72
+function completed() {
73
+	document.removeEventListener( "DOMContentLoaded", completed );
74
+	window.removeEventListener( "load", completed );
75
+	jQuery.ready();
76
+}
77
+
78
+// Catch cases where $(document).ready() is called
79
+// after the browser event has already occurred.
80
+// Support: IE9-10 only
81
+// Older IE sometimes signals "interactive" too soon
82
+if ( document.readyState === "complete" ||
83
+	( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
84
+
85
+	// Handle it asynchronously to allow scripts the opportunity to delay ready
86
+	window.setTimeout( jQuery.ready );
87
+
88
+} else {
89
+
90
+	// Use the handy event callback
91
+	document.addEventListener( "DOMContentLoaded", completed );
92
+
93
+	// A fallback to window.onload, that will always work
94
+	window.addEventListener( "load", completed );
95
+}
96
+
97
+} );

+ 86
- 0
www/jquery/src/core/ready.js View File

@@ -0,0 +1,86 @@
1
+define( [
2
+	"../core",
3
+	"../var/document",
4
+	"../core/readyException",
5
+	"../deferred"
6
+], function( jQuery, document ) {
7
+
8
+"use strict";
9
+
10
+// The deferred used on DOM ready
11
+var readyList = jQuery.Deferred();
12
+
13
+jQuery.fn.ready = function( fn ) {
14
+
15
+	readyList
16
+		.then( fn )
17
+
18
+		// Wrap jQuery.readyException in a function so that the lookup
19
+		// happens at the time of error handling instead of callback
20
+		// registration.
21
+		.catch( function( error ) {
22
+			jQuery.readyException( error );
23
+		} );
24
+
25
+	return this;
26
+};
27
+
28
+jQuery.extend( {
29
+
30
+	// Is the DOM ready to be used? Set to true once it occurs.
31
+	isReady: false,
32
+
33
+	// A counter to track how many items to wait for before
34
+	// the ready event fires. See #6781
35
+	readyWait: 1,
36
+
37
+	// Handle when the DOM is ready
38
+	ready: function( wait ) {
39
+
40
+		// Abort if there are pending holds or we're already ready
41
+		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
42
+			return;
43
+		}
44
+
45
+		// Remember that the DOM is ready
46
+		jQuery.isReady = true;
47
+
48
+		// If a normal DOM Ready event fired, decrement, and wait if need be
49
+		if ( wait !== true && --jQuery.readyWait > 0 ) {
50
+			return;
51
+		}
52
+
53
+		// If there are functions bound, to execute
54
+		readyList.resolveWith( document, [ jQuery ] );
55
+	}
56
+} );
57
+
58
+jQuery.ready.then = readyList.then;
59
+
60
+// The ready event handler and self cleanup method
61
+function completed() {
62
+	document.removeEventListener( "DOMContentLoaded", completed );
63
+	window.removeEventListener( "load", completed );
64
+	jQuery.ready();
65
+}
66
+
67
+// Catch cases where $(document).ready() is called
68
+// after the browser event has already occurred.
69
+// Support: IE <=9 - 10 only
70
+// Older IE sometimes signals "interactive" too soon
71
+if ( document.readyState === "complete" ||
72
+	( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
73
+
74
+	// Handle it asynchronously to allow scripts the opportunity to delay ready
75
+	window.setTimeout( jQuery.ready );
76
+
77
+} else {
78
+
79
+	// Use the handy event callback
80
+	document.addEventListener( "DOMContentLoaded", completed );
81
+
82
+	// A fallback to window.onload, that will always work
83
+	window.addEventListener( "load", completed );
84
+}
85
+
86
+} );

+ 13
- 0
www/jquery/src/core/readyException.js View File

@@ -0,0 +1,13 @@
1
+define( [
2
+	"../core"
3
+], function( jQuery ) {
4
+
5
+"use strict";
6
+
7
+jQuery.readyException = function( error ) {
8
+	window.setTimeout( function() {
9
+		throw error;
10
+	} );
11
+};
12
+
13
+} );

+ 14
- 0
www/jquery/src/core/stripAndCollapse.js View File

@@ -0,0 +1,14 @@
1
+define( [
2
+	"../var/rnothtmlwhite"
3
+], function( rnothtmlwhite ) {
4
+	"use strict";
5
+
6
+	// Strip and collapse whitespace according to HTML spec
7
+	// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
8
+	function stripAndCollapse( value ) {
9
+		var tokens = value.match( rnothtmlwhite ) || [];
10
+		return tokens.join( " " );
11
+	}
12
+
13
+	return stripAndCollapse;
14
+} );

+ 20
- 0
www/jquery/src/core/support.js View File

@@ -0,0 +1,20 @@
1
+define( [
2
+	"../var/document",
3
+	"../var/support"
4
+], function( document, support ) {
5
+
6
+"use strict";
7
+
8
+// Support: Safari 8 only
9
+// In Safari 8 documents created via document.implementation.createHTMLDocument
10
+// collapse sibling forms: the second one becomes a child of the first one.
11
+// Because of that, this security measure has to be disabled in Safari 8.
12
+// https://bugs.webkit.org/show_bug.cgi?id=137337
13
+support.createHTMLDocument = ( function() {
14
+	var body = document.implementation.createHTMLDocument( "" ).body;
15
+	body.innerHTML = "<form></form><form></form>";
16
+	return body.childNodes.length === 2;
17
+} )();
18
+
19
+return support;
20
+} );

+ 20
- 0
www/jquery/src/core/toType.js View File

@@ -0,0 +1,20 @@
1
+define( [
2
+	"../var/class2type",
3
+	"../var/toString"
4
+], function( class2type, toString ) {
5
+
6
+"use strict";
7
+
8
+function toType( obj ) {
9
+	if ( obj == null ) {
10
+		return obj + "";
11
+	}
12
+
13
+	// Support: Android <=2.3 only (functionish RegExp)
14
+	return typeof obj === "object" || typeof obj === "function" ?
15
+		class2type[ toString.call( obj ) ] || "object" :
16
+		typeof obj;
17
+}
18
+
19
+return toType;
20
+} );

+ 7
- 0
www/jquery/src/core/var/rsingleTag.js View File

@@ -0,0 +1,7 @@
1
+define( function() {
2
+	"use strict";
3
+
4
+	// rsingleTag matches a string consisting of a single HTML element with no attributes
5
+	// and captures the element's name
6
+	return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
7
+} );

+ 484
- 0
www/jquery/src/css.js View File

@@ -0,0 +1,484 @@
1
+define( [
2
+	"./core",
3
+	"./core/access",
4
+	"./core/camelCase",
5
+	"./var/rcssNum",
6
+	"./css/var/rnumnonpx",
7
+	"./css/var/cssExpand",
8
+	"./css/var/getStyles",
9
+	"./css/var/swap",
10
+	"./css/curCSS",
11
+	"./css/adjustCSS",
12
+	"./css/addGetHookIf",
13
+	"./css/support",
14
+	"./css/finalPropName",
15
+
16
+	"./core/init",
17
+	"./core/ready",
18
+	"./selector" // contains
19
+], function( jQuery, access, camelCase, rcssNum, rnumnonpx, cssExpand,
20
+	getStyles, swap, curCSS, adjustCSS, addGetHookIf, support, finalPropName ) {
21
+
22
+"use strict";
23
+
24
+var
25
+
26
+	// Swappable if display is none or starts with table
27
+	// except "table", "table-cell", or "table-caption"
28
+	// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
29
+	rdisplayswap = /^(none|table(?!-c[ea]).+)/,
30
+	rcustomProp = /^--/,
31
+	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
32
+	cssNormalTransform = {
33
+		letterSpacing: "0",
34
+		fontWeight: "400"
35
+	};
36
+
37
+function setPositiveNumber( elem, value, subtract ) {
38
+
39
+	// Any relative (+/-) values have already been
40
+	// normalized at this point
41
+	var matches = rcssNum.exec( value );
42
+	return matches ?
43
+
44
+		// Guard against undefined "subtract", e.g., when used as in cssHooks
45
+		Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
46
+		value;
47
+}
48
+
49
+function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
50
+	var i = dimension === "width" ? 1 : 0,
51
+		extra = 0,
52
+		delta = 0;
53
+
54
+	// Adjustment may not be necessary
55
+	if ( box === ( isBorderBox ? "border" : "content" ) ) {
56
+		return 0;
57
+	}
58
+
59
+	for ( ; i < 4; i += 2 ) {
60
+
61
+		// Both box models exclude margin
62
+		if ( box === "margin" ) {
63
+			delta += jQuery.css( elem, box + cssExpand[ i ], true, styles );
64
+		}
65
+
66
+		// If we get here with a content-box, we're seeking "padding" or "border" or "margin"
67
+		if ( !isBorderBox ) {
68
+
69
+			// Add padding
70
+			delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
71
+
72
+			// For "border" or "margin", add border
73
+			if ( box !== "padding" ) {
74
+				delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
75
+
76
+			// But still keep track of it otherwise
77
+			} else {
78
+				extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
79
+			}
80
+
81
+		// If we get here with a border-box (content + padding + border), we're seeking "content" or
82
+		// "padding" or "margin"
83
+		} else {
84
+
85
+			// For "content", subtract padding
86
+			if ( box === "content" ) {
87
+				delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
88
+			}
89
+
90
+			// For "content" or "padding", subtract border
91
+			if ( box !== "margin" ) {
92
+				delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
93
+			}
94
+		}
95
+	}
96
+
97
+	// Account for positive content-box scroll gutter when requested by providing computedVal
98
+	if ( !isBorderBox && computedVal >= 0 ) {
99
+
100
+		// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border
101
+		// Assuming integer scroll gutter, subtract the rest and round down
102
+		delta += Math.max( 0, Math.ceil(
103
+			elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
104
+			computedVal -
105
+			delta -
106
+			extra -
107
+			0.5
108
+
109
+		// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter
110
+		// Use an explicit zero to avoid NaN (gh-3964)
111
+		) ) || 0;
112
+	}
113
+
114
+	return delta;
115
+}
116
+
117
+function getWidthOrHeight( elem, dimension, extra ) {
118
+
119
+	// Start with computed style
120
+	var styles = getStyles( elem ),
121
+
122
+		// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322).
123
+		// Fake content-box until we know it's needed to know the true value.
124
+		boxSizingNeeded = !support.boxSizingReliable() || extra,
125
+		isBorderBox = boxSizingNeeded &&
126
+			jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
127
+		valueIsBorderBox = isBorderBox,
128
+
129
+		val = curCSS( elem, dimension, styles ),
130
+		offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 );
131
+
132
+	// Support: Firefox <=54
133
+	// Return a confounding non-pixel value or feign ignorance, as appropriate.
134
+	if ( rnumnonpx.test( val ) ) {
135
+		if ( !extra ) {
136
+			return val;
137
+		}
138
+		val = "auto";
139
+	}
140
+
141
+
142
+	// Fall back to offsetWidth/offsetHeight when value is "auto"
143
+	// This happens for inline elements with no explicit setting (gh-3571)
144
+	// Support: Android <=4.1 - 4.3 only
145
+	// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
146
+	// Support: IE 9-11 only
147
+	// Also use offsetWidth/offsetHeight for when box sizing is unreliable
148
+	// We use getClientRects() to check for hidden/disconnected.
149
+	// In those cases, the computed value can be trusted to be border-box
150
+	if ( ( !support.boxSizingReliable() && isBorderBox ||
151
+		val === "auto" ||
152
+		!parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) &&
153
+		elem.getClientRects().length ) {
154
+
155
+		isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
156
+
157
+		// Where available, offsetWidth/offsetHeight approximate border box dimensions.
158
+		// Where not available (e.g., SVG), assume unreliable box-sizing and interpret the
159
+		// retrieved value as a content box dimension.
160
+		valueIsBorderBox = offsetProp in elem;
161
+		if ( valueIsBorderBox ) {
162
+			val = elem[ offsetProp ];
163
+		}
164
+	}
165
+
166
+	// Normalize "" and auto
167
+	val = parseFloat( val ) || 0;
168
+
169
+	// Adjust for the element's box model
170
+	return ( val +
171
+		boxModelAdjustment(
172
+			elem,
173
+			dimension,
174
+			extra || ( isBorderBox ? "border" : "content" ),
175
+			valueIsBorderBox,
176
+			styles,
177
+
178
+			// Provide the current computed size to request scroll gutter calculation (gh-3589)
179
+			val
180
+		)
181
+	) + "px";
182
+}
183
+
184
+jQuery.extend( {
185
+
186
+	// Add in style property hooks for overriding the default
187
+	// behavior of getting and setting a style property
188
+	cssHooks: {
189
+		opacity: {
190
+			get: function( elem, computed ) {
191
+				if ( computed ) {
192
+
193
+					// We should always get a number back from opacity
194
+					var ret = curCSS( elem, "opacity" );
195
+					return ret === "" ? "1" : ret;
196
+				}
197
+			}
198
+		}
199
+	},
200
+
201
+	// Don't automatically add "px" to these possibly-unitless properties
202
+	cssNumber: {
203
+		"animationIterationCount": true,
204
+		"columnCount": true,
205
+		"fillOpacity": true,
206
+		"flexGrow": true,
207
+		"flexShrink": true,
208
+		"fontWeight": true,
209
+		"gridArea": true,
210
+		"gridColumn": true,
211
+		"gridColumnEnd": true,
212
+		"gridColumnStart": true,
213
+		"gridRow": true,
214
+		"gridRowEnd": true,
215
+		"gridRowStart": true,
216
+		"lineHeight": true,
217
+		"opacity": true,
218
+		"order": true,
219
+		"orphans": true,
220
+		"widows": true,
221
+		"zIndex": true,
222
+		"zoom": true
223
+	},
224
+
225
+	// Add in properties whose names you wish to fix before
226
+	// setting or getting the value
227
+	cssProps: {},
228
+
229
+	// Get and set the style property on a DOM Node
230
+	style: function( elem, name, value, extra ) {
231
+
232
+		// Don't set styles on text and comment nodes
233
+		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
234
+			return;
235
+		}
236
+
237
+		// Make sure that we're working with the right name
238
+		var ret, type, hooks,
239
+			origName = camelCase( name ),
240
+			isCustomProp = rcustomProp.test( name ),
241
+			style = elem.style;
242
+
243
+		// Make sure that we're working with the right name. We don't
244
+		// want to query the value if it is a CSS custom property
245
+		// since they are user-defined.
246
+		if ( !isCustomProp ) {
247
+			name = finalPropName( origName );
248
+		}
249
+
250
+		// Gets hook for the prefixed version, then unprefixed version
251
+		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
252
+
253
+		// Check if we're setting a value
254
+		if ( value !== undefined ) {
255
+			type = typeof value;
256
+
257
+			// Convert "+=" or "-=" to relative numbers (#7345)
258
+			if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
259
+				value = adjustCSS( elem, name, ret );
260
+
261
+				// Fixes bug #9237
262
+				type = "number";
263
+			}
264
+
265
+			// Make sure that null and NaN values aren't set (#7116)
266
+			if ( value == null || value !== value ) {
267
+				return;
268
+			}
269
+
270
+			// If a number was passed in, add the unit (except for certain CSS properties)
271
+			// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append
272
+			// "px" to a few hardcoded values.
273
+			if ( type === "number" && !isCustomProp ) {
274
+				value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
275
+			}
276
+
277
+			// background-* props affect original clone's values
278
+			if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
279
+				style[ name ] = "inherit";
280
+			}
281
+
282
+			// If a hook was provided, use that value, otherwise just set the specified value
283
+			if ( !hooks || !( "set" in hooks ) ||
284
+				( value = hooks.set( elem, value, extra ) ) !== undefined ) {
285
+
286
+				if ( isCustomProp ) {
287
+					style.setProperty( name, value );
288
+				} else {
289
+					style[ name ] = value;
290
+				}
291
+			}
292
+
293
+		} else {
294
+
295
+			// If a hook was provided get the non-computed value from there
296
+			if ( hooks && "get" in hooks &&
297
+				( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
298
+
299
+				return ret;
300
+			}
301
+
302
+			// Otherwise just get the value from the style object
303
+			return style[ name ];
304
+		}
305
+	},
306
+
307
+	css: function( elem, name, extra, styles ) {
308
+		var val, num, hooks,
309
+			origName = camelCase( name ),
310
+			isCustomProp = rcustomProp.test( name );
311
+
312
+		// Make sure that we're working with the right name. We don't
313
+		// want to modify the value if it is a CSS custom property
314
+		// since they are user-defined.
315
+		if ( !isCustomProp ) {
316
+			name = finalPropName( origName );
317
+		}
318
+
319
+		// Try prefixed name followed by the unprefixed name
320
+		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
321
+
322
+		// If a hook was provided get the computed value from there
323
+		if ( hooks && "get" in hooks ) {
324
+			val = hooks.get( elem, true, extra );
325
+		}
326
+
327
+		// Otherwise, if a way to get the computed value exists, use that
328
+		if ( val === undefined ) {
329
+			val = curCSS( elem, name, styles );
330
+		}
331
+
332
+		// Convert "normal" to computed value
333
+		if ( val === "normal" && name in cssNormalTransform ) {
334
+			val = cssNormalTransform[ name ];
335
+		}
336
+
337
+		// Make numeric if forced or a qualifier was provided and val looks numeric
338
+		if ( extra === "" || extra ) {
339
+			num = parseFloat( val );
340
+			return extra === true || isFinite( num ) ? num || 0 : val;
341
+		}
342
+
343
+		return val;
344
+	}
345
+} );
346
+
347
+jQuery.each( [ "height", "width" ], function( i, dimension ) {
348
+	jQuery.cssHooks[ dimension ] = {
349
+		get: function( elem, computed, extra ) {
350
+			if ( computed ) {
351
+
352
+				// Certain elements can have dimension info if we invisibly show them
353
+				// but it must have a current display style that would benefit
354
+				return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
355
+
356
+					// Support: Safari 8+
357
+					// Table columns in Safari have non-zero offsetWidth & zero
358
+					// getBoundingClientRect().width unless display is changed.
359
+					// Support: IE <=11 only
360
+					// Running getBoundingClientRect on a disconnected node
361
+					// in IE throws an error.
362
+					( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
363
+						swap( elem, cssShow, function() {
364
+							return getWidthOrHeight( elem, dimension, extra );
365
+						} ) :
366
+						getWidthOrHeight( elem, dimension, extra );
367
+			}
368
+		},
369
+
370
+		set: function( elem, value, extra ) {
371
+			var matches,
372
+				styles = getStyles( elem ),
373
+
374
+				// Only read styles.position if the test has a chance to fail
375
+				// to avoid forcing a reflow.
376
+				scrollboxSizeBuggy = !support.scrollboxSize() &&
377
+					styles.position === "absolute",
378
+
379
+				// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)
380
+				boxSizingNeeded = scrollboxSizeBuggy || extra,
381
+				isBorderBox = boxSizingNeeded &&
382
+					jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
383
+				subtract = extra ?
384
+					boxModelAdjustment(
385
+						elem,
386
+						dimension,
387
+						extra,
388
+						isBorderBox,
389
+						styles
390
+					) :
391
+					0;
392
+
393
+			// Account for unreliable border-box dimensions by comparing offset* to computed and
394
+			// faking a content-box to get border and padding (gh-3699)
395
+			if ( isBorderBox && scrollboxSizeBuggy ) {
396
+				subtract -= Math.ceil(
397
+					elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
398
+					parseFloat( styles[ dimension ] ) -
399
+					boxModelAdjustment( elem, dimension, "border", false, styles ) -
400
+					0.5
401
+				);
402
+			}
403
+
404
+			// Convert to pixels if value adjustment is needed
405
+			if ( subtract && ( matches = rcssNum.exec( value ) ) &&
406
+				( matches[ 3 ] || "px" ) !== "px" ) {
407
+
408
+				elem.style[ dimension ] = value;
409
+				value = jQuery.css( elem, dimension );
410
+			}
411
+
412
+			return setPositiveNumber( elem, value, subtract );
413
+		}
414
+	};
415
+} );
416
+
417
+jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
418
+	function( elem, computed ) {
419
+		if ( computed ) {
420
+			return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
421
+				elem.getBoundingClientRect().left -
422
+					swap( elem, { marginLeft: 0 }, function() {
423
+						return elem.getBoundingClientRect().left;
424
+					} )
425
+				) + "px";
426
+		}
427
+	}
428
+);
429
+
430
+// These hooks are used by animate to expand properties
431
+jQuery.each( {
432
+	margin: "",
433
+	padding: "",
434
+	border: "Width"
435
+}, function( prefix, suffix ) {
436
+	jQuery.cssHooks[ prefix + suffix ] = {
437
+		expand: function( value ) {
438
+			var i = 0,
439
+				expanded = {},
440
+
441
+				// Assumes a single number if not a string
442
+				parts = typeof value === "string" ? value.split( " " ) : [ value ];
443
+
444
+			for ( ; i < 4; i++ ) {
445
+				expanded[ prefix + cssExpand[ i ] + suffix ] =
446
+					parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
447
+			}
448
+
449
+			return expanded;
450
+		}
451
+	};
452
+
453
+	if ( prefix !== "margin" ) {
454
+		jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
455
+	}
456
+} );
457
+
458
+jQuery.fn.extend( {
459
+	css: function( name, value ) {
460
+		return access( this, function( elem, name, value ) {
461
+			var styles, len,
462
+				map = {},
463
+				i = 0;
464
+
465
+			if ( Array.isArray( name ) ) {
466
+				styles = getStyles( elem );
467
+				len = name.length;
468
+
469
+				for ( ; i < len; i++ ) {
470
+					map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
471
+				}
472
+
473
+				return map;
474
+			}
475
+
476
+			return value !== undefined ?
477
+				jQuery.style( elem, name, value ) :
478
+				jQuery.css( elem, name );
479
+		}, name, value, arguments.length > 1 );
480
+	}
481
+} );
482
+
483
+return jQuery;
484
+} );

+ 26
- 0
www/jquery/src/css/addGetHookIf.js View File

@@ -0,0 +1,26 @@
1
+define( function() {
2
+
3
+"use strict";
4
+
5
+function addGetHookIf( conditionFn, hookFn ) {
6
+
7
+	// Define the hook, we'll check on the first run if it's really needed.
8
+	return {
9
+		get: function() {
10
+			if ( conditionFn() ) {
11
+
12
+				// Hook not needed (or it's not possible to use it due
13
+				// to missing dependency), remove it.
14
+				delete this.get;
15
+				return;
16
+			}
17
+
18
+			// Hook needed; redefine it so that the support test is not executed again.
19
+			return ( this.get = hookFn ).apply( this, arguments );
20
+		}
21
+	};
22
+}
23
+
24
+return addGetHookIf;
25
+
26
+} );

+ 74
- 0
www/jquery/src/css/adjustCSS.js View File

@@ -0,0 +1,74 @@
1
+define( [
2
+	"../core",
3
+	"../var/rcssNum"
4
+], function( jQuery, rcssNum ) {
5
+
6
+"use strict";
7
+
8
+function adjustCSS( elem, prop, valueParts, tween ) {
9
+	var adjusted, scale,
10
+		maxIterations = 20,
11
+		currentValue = tween ?
12
+			function() {
13
+				return tween.cur();
14
+			} :
15
+			function() {
16
+				return jQuery.css( elem, prop, "" );
17
+			},
18
+		initial = currentValue(),
19
+		unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
20
+
21
+		// Starting value computation is required for potential unit mismatches
22
+		initialInUnit = elem.nodeType &&
23
+			( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
24
+			rcssNum.exec( jQuery.css( elem, prop ) );
25
+
26
+	if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
27
+
28
+		// Support: Firefox <=54
29
+		// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
30
+		initial = initial / 2;
31
+
32
+		// Trust units reported by jQuery.css
33
+		unit = unit || initialInUnit[ 3 ];
34
+
35
+		// Iteratively approximate from a nonzero starting point
36
+		initialInUnit = +initial || 1;
37
+
38
+		while ( maxIterations-- ) {
39
+
40
+			// Evaluate and update our best guess (doubling guesses that zero out).
41
+			// Finish if the scale equals or crosses 1 (making the old*new product non-positive).
42
+			jQuery.style( elem, prop, initialInUnit + unit );
43
+			if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
44
+				maxIterations = 0;
45
+			}
46
+			initialInUnit = initialInUnit / scale;
47
+
48
+		}
49
+
50
+		initialInUnit = initialInUnit * 2;
51
+		jQuery.style( elem, prop, initialInUnit + unit );
52
+
53
+		// Make sure we update the tween properties later on
54
+		valueParts = valueParts || [];
55
+	}
56
+
57
+	if ( valueParts ) {
58
+		initialInUnit = +initialInUnit || +initial || 0;
59
+
60
+		// Apply relative offset (+=/-=) if specified
61
+		adjusted = valueParts[ 1 ] ?
62
+			initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
63
+			+valueParts[ 2 ];
64
+		if ( tween ) {
65
+			tween.unit = unit;
66
+			tween.start = initialInUnit;
67
+			tween.end = adjusted;
68
+		}
69
+	}
70
+	return adjusted;
71
+}
72
+
73
+return adjustCSS;
74
+} );

+ 65
- 0
www/jquery/src/css/curCSS.js View File

@@ -0,0 +1,65 @@
1
+define( [
2
+	"../core",
3
+	"../core/isAttached",
4
+	"./var/rboxStyle",
5
+	"./var/rnumnonpx",
6
+	"./var/getStyles",
7
+	"./support"
8
+], function( jQuery, isAttached, rboxStyle, rnumnonpx, getStyles, support ) {
9
+
10
+"use strict";
11
+
12
+function curCSS( elem, name, computed ) {
13
+	var width, minWidth, maxWidth, ret,
14
+
15
+		// Support: Firefox 51+
16
+		// Retrieving style before computed somehow
17
+		// fixes an issue with getting wrong values
18
+		// on detached elements
19
+		style = elem.style;
20
+
21
+	computed = computed || getStyles( elem );
22
+
23
+	// getPropertyValue is needed for:
24
+	//   .css('filter') (IE 9 only, #12537)
25
+	//   .css('--customProperty) (#3144)
26
+	if ( computed ) {
27
+		ret = computed.getPropertyValue( name ) || computed[ name ];
28
+
29
+		if ( ret === "" && !isAttached( elem ) ) {
30
+			ret = jQuery.style( elem, name );
31
+		}
32
+
33
+		// A tribute to the "awesome hack by Dean Edwards"
34
+		// Android Browser returns percentage for some values,
35
+		// but width seems to be reliably pixels.
36
+		// This is against the CSSOM draft spec:
37
+		// https://drafts.csswg.org/cssom/#resolved-values
38
+		if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {
39
+
40
+			// Remember the original values
41
+			width = style.width;
42
+			minWidth = style.minWidth;
43
+			maxWidth = style.maxWidth;
44
+
45
+			// Put in the new values to get a computed value out
46
+			style.minWidth = style.maxWidth = style.width = ret;
47
+			ret = computed.width;
48
+
49
+			// Revert the changed values
50
+			style.width = width;
51
+			style.minWidth = minWidth;
52
+			style.maxWidth = maxWidth;
53
+		}
54
+	}
55
+
56
+	return ret !== undefined ?
57
+
58
+		// Support: IE <=9 - 11 only
59
+		// IE returns zIndex value as an integer.
60
+		ret + "" :
61
+		ret;
62
+}
63
+
64
+return curCSS;
65
+} );

+ 42
- 0
www/jquery/src/css/finalPropName.js View File

@@ -0,0 +1,42 @@
1
+define( [
2
+	"../var/document",
3
+	"../core"
4
+], function( document, jQuery ) {
5
+
6
+"use strict";
7
+
8
+var cssPrefixes = [ "Webkit", "Moz", "ms" ],
9
+	emptyStyle = document.createElement( "div" ).style,
10
+	vendorProps = {};
11
+
12
+// Return a vendor-prefixed property or undefined
13
+function vendorPropName( name ) {
14
+
15
+	// Check for vendor prefixed names
16
+	var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
17
+		i = cssPrefixes.length;
18
+
19
+	while ( i-- ) {
20
+		name = cssPrefixes[ i ] + capName;
21
+		if ( name in emptyStyle ) {
22
+			return name;
23
+		}
24
+	}
25
+}
26
+
27
+// Return a potentially-mapped jQuery.cssProps or vendor prefixed property
28
+function finalPropName( name ) {
29
+	var final = jQuery.cssProps[ name ] || vendorProps[ name ];
30
+
31
+	if ( final ) {
32
+		return final;
33
+	}
34
+	if ( name in emptyStyle ) {
35
+		return name;
36
+	}
37
+	return vendorProps[ name ] = vendorPropName( name ) || name;
38
+}
39
+
40
+return finalPropName;
41
+
42
+} );

+ 15
- 0
www/jquery/src/css/hiddenVisibleSelectors.js View File

@@ -0,0 +1,15 @@
1
+define( [
2
+	"../core",
3
+	"../selector"
4
+], function( jQuery ) {
5
+
6
+"use strict";
7
+
8
+jQuery.expr.pseudos.hidden = function( elem ) {
9
+	return !jQuery.expr.pseudos.visible( elem );
10
+};
11
+jQuery.expr.pseudos.visible = function( elem ) {
12
+	return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
13
+};
14
+
15
+} );

+ 105
- 0
www/jquery/src/css/showHide.js View File

@@ -0,0 +1,105 @@
1
+define( [
2
+	"../core",
3
+	"../data/var/dataPriv",
4
+	"../css/var/isHiddenWithinTree"
5
+], function( jQuery, dataPriv, isHiddenWithinTree ) {
6
+
7
+"use strict";
8
+
9
+var defaultDisplayMap = {};
10
+
11
+function getDefaultDisplay( elem ) {
12
+	var temp,
13
+		doc = elem.ownerDocument,
14
+		nodeName = elem.nodeName,
15
+		display = defaultDisplayMap[ nodeName ];
16
+
17
+	if ( display ) {
18
+		return display;
19
+	}
20
+
21
+	temp = doc.body.appendChild( doc.createElement( nodeName ) );
22
+	display = jQuery.css( temp, "display" );
23
+
24
+	temp.parentNode.removeChild( temp );
25
+
26
+	if ( display === "none" ) {
27
+		display = "block";
28
+	}
29
+	defaultDisplayMap[ nodeName ] = display;
30
+
31
+	return display;
32
+}
33
+
34
+function showHide( elements, show ) {
35
+	var display, elem,
36
+		values = [],
37
+		index = 0,
38
+		length = elements.length;
39
+
40
+	// Determine new display value for elements that need to change
41
+	for ( ; index < length; index++ ) {
42
+		elem = elements[ index ];
43
+		if ( !elem.style ) {
44
+			continue;
45
+		}
46
+
47
+		display = elem.style.display;
48
+		if ( show ) {
49
+
50
+			// Since we force visibility upon cascade-hidden elements, an immediate (and slow)
51
+			// check is required in this first loop unless we have a nonempty display value (either
52
+			// inline or about-to-be-restored)
53
+			if ( display === "none" ) {
54
+				values[ index ] = dataPriv.get( elem, "display" ) || null;
55
+				if ( !values[ index ] ) {
56
+					elem.style.display = "";
57
+				}
58
+			}
59
+			if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
60
+				values[ index ] = getDefaultDisplay( elem );
61
+			}
62
+		} else {
63
+			if ( display !== "none" ) {
64
+				values[ index ] = "none";
65
+
66
+				// Remember what we're overwriting
67
+				dataPriv.set( elem, "display", display );
68
+			}
69
+		}
70
+	}
71
+
72
+	// Set the display of the elements in a second loop to avoid constant reflow
73
+	for ( index = 0; index < length; index++ ) {
74
+		if ( values[ index ] != null ) {
75
+			elements[ index ].style.display = values[ index ];
76
+		}
77
+	}
78
+
79
+	return elements;
80
+}
81
+
82
+jQuery.fn.extend( {
83
+	show: function() {
84
+		return showHide( this, true );
85
+	},
86
+	hide: function() {
87
+		return showHide( this );
88
+	},
89
+	toggle: function( state ) {
90
+		if ( typeof state === "boolean" ) {
91
+			return state ? this.show() : this.hide();
92
+		}
93
+
94
+		return this.each( function() {
95
+			if ( isHiddenWithinTree( this ) ) {
96
+				jQuery( this ).show();
97
+			} else {
98
+				jQuery( this ).hide();
99
+			}
100
+		} );
101
+	}
102
+} );
103
+
104
+return showHide;
105
+} );

+ 104
- 0
www/jquery/src/css/support.js View File

@@ -0,0 +1,104 @@
1
+define( [
2
+	"../core",
3
+	"../var/document",
4
+	"../var/documentElement",
5
+	"../var/support"
6
+], function( jQuery, document, documentElement, support ) {
7
+
8
+"use strict";
9
+
10
+( function() {
11
+
12
+	// Executing both pixelPosition & boxSizingReliable tests require only one layout
13
+	// so they're executed at the same time to save the second computation.
14
+	function computeStyleTests() {
15
+
16
+		// This is a singleton, we need to execute it only once
17
+		if ( !div ) {
18
+			return;
19
+		}
20
+
21
+		container.style.cssText = "position:absolute;left:-11111px;width:60px;" +
22
+			"margin-top:1px;padding:0;border:0";
23
+		div.style.cssText =
24
+			"position:relative;display:block;box-sizing:border-box;overflow:scroll;" +
25
+			"margin:auto;border:1px;padding:1px;" +
26
+			"width:60%;top:1%";
27
+		documentElement.appendChild( container ).appendChild( div );
28
+
29
+		var divStyle = window.getComputedStyle( div );
30
+		pixelPositionVal = divStyle.top !== "1%";
31
+
32
+		// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
33
+		reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;
34
+
35
+		// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
36
+		// Some styles come back with percentage values, even though they shouldn't
37
+		div.style.right = "60%";
38
+		pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;
39
+
40
+		// Support: IE 9 - 11 only
41
+		// Detect misreporting of content dimensions for box-sizing:border-box elements
42
+		boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;
43
+
44
+		// Support: IE 9 only
45
+		// Detect overflow:scroll screwiness (gh-3699)
46
+		// Support: Chrome <=64
47
+		// Don't get tricked when zoom affects offsetWidth (gh-4029)
48
+		div.style.position = "absolute";
49
+		scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12;
50
+
51
+		documentElement.removeChild( container );
52
+
53
+		// Nullify the div so it wouldn't be stored in the memory and
54
+		// it will also be a sign that checks already performed
55
+		div = null;
56
+	}
57
+
58
+	function roundPixelMeasures( measure ) {
59
+		return Math.round( parseFloat( measure ) );
60
+	}
61
+
62
+	var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,
63
+		reliableMarginLeftVal,
64
+		container = document.createElement( "div" ),
65
+		div = document.createElement( "div" );
66
+
67
+	// Finish early in limited (non-browser) environments
68
+	if ( !div.style ) {
69
+		return;
70
+	}
71
+
72
+	// Support: IE <=9 - 11 only
73
+	// Style of cloned element affects source element cloned (#8908)
74
+	div.style.backgroundClip = "content-box";
75
+	div.cloneNode( true ).style.backgroundClip = "";
76
+	support.clearCloneStyle = div.style.backgroundClip === "content-box";
77
+
78
+	jQuery.extend( support, {
79
+		boxSizingReliable: function() {
80
+			computeStyleTests();
81
+			return boxSizingReliableVal;
82
+		},
83
+		pixelBoxStyles: function() {
84
+			computeStyleTests();
85
+			return pixelBoxStylesVal;
86
+		},
87
+		pixelPosition: function() {
88
+			computeStyleTests();
89
+			return pixelPositionVal;
90
+		},
91
+		reliableMarginLeft: function() {
92
+			computeStyleTests();
93
+			return reliableMarginLeftVal;
94
+		},
95
+		scrollboxSize: function() {
96
+			computeStyleTests();
97
+			return scrollboxSizeVal;
98
+		}
99
+	} );
100
+} )();
101
+
102
+return support;
103
+
104
+} );

+ 5
- 0
www/jquery/src/css/var/cssExpand.js View File

@@ -0,0 +1,5 @@
1
+define( function() {
2
+	"use strict";
3
+
4
+	return [ "Top", "Right", "Bottom", "Left" ];
5
+} );

+ 17
- 0
www/jquery/src/css/var/getStyles.js View File

@@ -0,0 +1,17 @@
1
+define( function() {
2
+	"use strict";
3
+
4
+	return function( elem ) {
5
+
6
+		// Support: IE <=11 only, Firefox <=30 (#15098, #14150)
7
+		// IE throws on elements created in popups
8
+		// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
9
+		var view = elem.ownerDocument.defaultView;
10
+
11
+		if ( !view || !view.opener ) {
12
+			view = window;
13
+		}
14
+
15
+		return view.getComputedStyle( elem );
16
+	};
17
+} );

+ 34
- 0
www/jquery/src/css/var/isHiddenWithinTree.js View File

@@ -0,0 +1,34 @@
1
+define( [
2
+	"../../core",
3
+	"../../core/isAttached"
4
+
5
+	// css is assumed
6
+], function( jQuery, isAttached ) {
7
+	"use strict";
8
+
9
+	// isHiddenWithinTree reports if an element has a non-"none" display style (inline and/or
10
+	// through the CSS cascade), which is useful in deciding whether or not to make it visible.
11
+	// It differs from the :hidden selector (jQuery.expr.pseudos.hidden) in two important ways:
12
+	// * A hidden ancestor does not force an element to be classified as hidden.
13
+	// * Being disconnected from the document does not force an element to be classified as hidden.
14
+	// These differences improve the behavior of .toggle() et al. when applied to elements that are
15
+	// detached or contained within hidden ancestors (gh-2404, gh-2863).
16
+	return function( elem, el ) {
17
+
18
+		// isHiddenWithinTree might be called from jQuery#filter function;
19
+		// in that case, element will be second argument
20
+		elem = el || elem;
21
+
22
+		// Inline style trumps all
23
+		return elem.style.display === "none" ||
24
+			elem.style.display === "" &&
25
+
26
+			// Otherwise, check computed style
27
+			// Support: Firefox <=43 - 45
28
+			// Disconnected elements can have computed display: none, so first confirm that elem is
29
+			// in the document.
30
+			isAttached( elem ) &&
31
+
32
+			jQuery.css( elem, "display" ) === "none";
33
+	};
34
+} );

+ 7
- 0
www/jquery/src/css/var/rboxStyle.js View File

@@ -0,0 +1,7 @@
1
+define( [
2
+	"./cssExpand"
3
+], function( cssExpand ) {
4
+	"use strict";
5
+
6
+	return new RegExp( cssExpand.join( "|" ), "i" );
7
+} );

+ 7
- 0
www/jquery/src/css/var/rnumnonpx.js View File

@@ -0,0 +1,7 @@
1
+define( [
2
+	"../../var/pnum"
3
+], function( pnum ) {
4
+	"use strict";
5
+
6
+	return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
7
+} );

+ 26
- 0
www/jquery/src/css/var/swap.js View File

@@ -0,0 +1,26 @@
1
+define( function() {
2
+
3
+"use strict";
4
+
5
+// A method for quickly swapping in/out CSS properties to get correct calculations.
6
+return function( elem, options, callback, args ) {
7
+	var ret, name,
8
+		old = {};
9
+
10
+	// Remember the old values, and insert the new ones
11
+	for ( name in options ) {
12
+		old[ name ] = elem.style[ name ];
13
+		elem.style[ name ] = options[ name ];
14
+	}
15
+
16
+	ret = callback.apply( elem, args || [] );
17
+
18
+	// Revert the old values
19
+	for ( name in options ) {
20
+		elem.style[ name ] = old[ name ];
21
+	}
22
+
23
+	return ret;
24
+};
25
+
26
+} );

+ 180
- 0
www/jquery/src/data.js View File

@@ -0,0 +1,180 @@
1
+define( [
2
+	"./core",
3
+	"./core/access",
4
+	"./core/camelCase",
5
+	"./data/var/dataPriv",
6
+	"./data/var/dataUser"
7
+], function( jQuery, access, camelCase, dataPriv, dataUser ) {
8
+
9
+"use strict";
10
+
11
+//	Implementation Summary
12
+//
13
+//	1. Enforce API surface and semantic compatibility with 1.9.x branch
14
+//	2. Improve the module's maintainability by reducing the storage
15
+//		paths to a single mechanism.
16
+//	3. Use the same single mechanism to support "private" and "user" data.
17
+//	4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
18
+//	5. Avoid exposing implementation details on user objects (eg. expando properties)
19
+//	6. Provide a clear path for implementation upgrade to WeakMap in 2014
20
+
21
+var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
22
+	rmultiDash = /[A-Z]/g;
23
+
24
+function getData( data ) {
25
+	if ( data === "true" ) {
26
+		return true;
27
+	}
28
+
29
+	if ( data === "false" ) {
30
+		return false;
31
+	}
32
+
33
+	if ( data === "null" ) {
34
+		return null;
35
+	}
36
+
37
+	// Only convert to a number if it doesn't change the string
38
+	if ( data === +data + "" ) {
39
+		return +data;
40
+	}
41
+
42
+	if ( rbrace.test( data ) ) {
43
+		return JSON.parse( data );
44
+	}
45
+
46
+	return data;
47
+}
48
+
49
+function dataAttr( elem, key, data ) {
50
+	var name;
51
+
52
+	// If nothing was found internally, try to fetch any
53
+	// data from the HTML5 data-* attribute
54
+	if ( data === undefined && elem.nodeType === 1 ) {
55
+		name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
56
+		data = elem.getAttribute( name );
57
+
58
+		if ( typeof data === "string" ) {
59
+			try {
60
+				data = getData( data );
61
+			} catch ( e ) {}
62
+
63
+			// Make sure we set the data so it isn't changed later
64
+			dataUser.set( elem, key, data );
65
+		} else {
66
+			data = undefined;
67
+		}
68
+	}
69
+	return data;
70
+}
71
+
72
+jQuery.extend( {
73
+	hasData: function( elem ) {
74
+		return dataUser.hasData( elem ) || dataPriv.hasData( elem );
75
+	},
76
+
77
+	data: function( elem, name, data ) {
78
+		return dataUser.access( elem, name, data );
79
+	},
80
+
81
+	removeData: function( elem, name ) {
82
+		dataUser.remove( elem, name );
83
+	},
84
+
85
+	// TODO: Now that all calls to _data and _removeData have been replaced
86
+	// with direct calls to dataPriv methods, these can be deprecated.
87
+	_data: function( elem, name, data ) {
88
+		return dataPriv.access( elem, name, data );
89
+	},
90
+
91
+	_removeData: function( elem, name ) {
92
+		dataPriv.remove( elem, name );
93
+	}
94
+} );
95
+
96
+jQuery.fn.extend( {
97
+	data: function( key, value ) {
98
+		var i, name, data,
99
+			elem = this[ 0 ],
100
+			attrs = elem && elem.attributes;
101
+
102
+		// Gets all values
103
+		if ( key === undefined ) {
104
+			if ( this.length ) {
105
+				data = dataUser.get( elem );
106
+
107
+				if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
108
+					i = attrs.length;
109
+					while ( i-- ) {
110
+
111
+						// Support: IE 11 only
112
+						// The attrs elements can be null (#14894)
113
+						if ( attrs[ i ] ) {
114
+							name = attrs[ i ].name;
115
+							if ( name.indexOf( "data-" ) === 0 ) {
116
+								name = camelCase( name.slice( 5 ) );
117
+								dataAttr( elem, name, data[ name ] );
118
+							}
119
+						}
120
+					}
121
+					dataPriv.set( elem, "hasDataAttrs", true );
122
+				}
123
+			}
124
+
125
+			return data;
126
+		}
127
+
128
+		// Sets multiple values
129
+		if ( typeof key === "object" ) {
130
+			return this.each( function() {
131
+				dataUser.set( this, key );
132
+			} );
133
+		}
134
+
135
+		return access( this, function( value ) {
136
+			var data;
137
+
138
+			// The calling jQuery object (element matches) is not empty
139
+			// (and therefore has an element appears at this[ 0 ]) and the
140
+			// `value` parameter was not undefined. An empty jQuery object
141
+			// will result in `undefined` for elem = this[ 0 ] which will
142
+			// throw an exception if an attempt to read a data cache is made.
143
+			if ( elem && value === undefined ) {
144
+
145
+				// Attempt to get data from the cache
146
+				// The key will always be camelCased in Data
147
+				data = dataUser.get( elem, key );
148
+				if ( data !== undefined ) {
149
+					return data;
150
+				}
151
+
152
+				// Attempt to "discover" the data in
153
+				// HTML5 custom data-* attrs
154
+				data = dataAttr( elem, key );
155
+				if ( data !== undefined ) {
156
+					return data;
157
+				}
158
+
159
+				// We tried really hard, but the data doesn't exist.
160
+				return;
161
+			}
162
+
163
+			// Set the data...
164
+			this.each( function() {
165
+
166
+				// We always store the camelCased key
167
+				dataUser.set( this, key, value );
168
+			} );
169
+		}, null, value, arguments.length > 1, null, true );
170
+	},
171
+
172
+	removeData: function( key ) {
173
+		return this.each( function() {
174
+			dataUser.remove( this, key );
175
+		} );
176
+	}
177
+} );
178
+
179
+return jQuery;
180
+} );

+ 162
- 0
www/jquery/src/data/Data.js View File

@@ -0,0 +1,162 @@
1
+define( [
2
+	"../core",
3
+	"../core/camelCase",
4
+	"../var/rnothtmlwhite",
5
+	"./var/acceptData"
6
+], function( jQuery, camelCase, rnothtmlwhite, acceptData ) {
7
+
8
+"use strict";
9
+
10
+function Data() {
11
+	this.expando = jQuery.expando + Data.uid++;
12
+}
13
+
14
+Data.uid = 1;
15
+
16
+Data.prototype = {
17
+
18
+	cache: function( owner ) {
19
+
20
+		// Check if the owner object already has a cache
21
+		var value = owner[ this.expando ];
22
+
23
+		// If not, create one
24
+		if ( !value ) {
25
+			value = {};
26
+
27
+			// We can accept data for non-element nodes in modern browsers,
28
+			// but we should not, see #8335.
29
+			// Always return an empty object.
30
+			if ( acceptData( owner ) ) {
31
+
32
+				// If it is a node unlikely to be stringify-ed or looped over
33
+				// use plain assignment
34
+				if ( owner.nodeType ) {
35
+					owner[ this.expando ] = value;
36
+
37
+				// Otherwise secure it in a non-enumerable property
38
+				// configurable must be true to allow the property to be
39
+				// deleted when data is removed
40
+				} else {
41
+					Object.defineProperty( owner, this.expando, {
42
+						value: value,
43
+						configurable: true
44
+					} );
45
+				}
46
+			}
47
+		}
48
+
49
+		return value;
50
+	},
51
+	set: function( owner, data, value ) {
52
+		var prop,
53
+			cache = this.cache( owner );
54
+
55
+		// Handle: [ owner, key, value ] args
56
+		// Always use camelCase key (gh-2257)
57
+		if ( typeof data === "string" ) {
58
+			cache[ camelCase( data ) ] = value;
59
+
60
+		// Handle: [ owner, { properties } ] args
61
+		} else {
62
+
63
+			// Copy the properties one-by-one to the cache object
64
+			for ( prop in data ) {
65
+				cache[ camelCase( prop ) ] = data[ prop ];
66
+			}
67
+		}
68
+		return cache;
69
+	},
70
+	get: function( owner, key ) {
71
+		return key === undefined ?
72
+			this.cache( owner ) :
73
+
74
+			// Always use camelCase key (gh-2257)
75
+			owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];
76
+	},
77
+	access: function( owner, key, value ) {
78
+
79
+		// In cases where either:
80
+		//
81
+		//   1. No key was specified
82
+		//   2. A string key was specified, but no value provided
83
+		//
84
+		// Take the "read" path and allow the get method to determine
85
+		// which value to return, respectively either:
86
+		//
87
+		//   1. The entire cache object
88
+		//   2. The data stored at the key
89
+		//
90
+		if ( key === undefined ||
91
+				( ( key && typeof key === "string" ) && value === undefined ) ) {
92
+
93
+			return this.get( owner, key );
94
+		}
95
+
96
+		// When the key is not a string, or both a key and value
97
+		// are specified, set or extend (existing objects) with either:
98
+		//
99
+		//   1. An object of properties
100
+		//   2. A key and value
101
+		//
102
+		this.set( owner, key, value );
103
+
104
+		// Since the "set" path can have two possible entry points
105
+		// return the expected data based on which path was taken[*]
106
+		return value !== undefined ? value : key;
107
+	},
108
+	remove: function( owner, key ) {
109
+		var i,
110
+			cache = owner[ this.expando ];
111
+
112
+		if ( cache === undefined ) {
113
+			return;
114
+		}
115
+
116
+		if ( key !== undefined ) {
117
+
118
+			// Support array or space separated string of keys
119
+			if ( Array.isArray( key ) ) {
120
+
121
+				// If key is an array of keys...
122
+				// We always set camelCase keys, so remove that.
123
+				key = key.map( camelCase );
124
+			} else {
125
+				key = camelCase( key );
126
+
127
+				// If a key with the spaces exists, use it.
128
+				// Otherwise, create an array by matching non-whitespace
129
+				key = key in cache ?
130
+					[ key ] :
131
+					( key.match( rnothtmlwhite ) || [] );
132
+			}
133
+
134
+			i = key.length;
135
+
136
+			while ( i-- ) {
137
+				delete cache[ key[ i ] ];
138
+			}
139
+		}
140
+
141
+		// Remove the expando if there's no more data
142
+		if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
143
+
144
+			// Support: Chrome <=35 - 45
145
+			// Webkit & Blink performance suffers when deleting properties
146
+			// from DOM nodes, so set to undefined instead
147
+			// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
148
+			if ( owner.nodeType ) {
149
+				owner[ this.expando ] = undefined;
150
+			} else {
151
+				delete owner[ this.expando ];
152
+			}
153
+		}
154
+	},
155
+	hasData: function( owner ) {
156
+		var cache = owner[ this.expando ];
157
+		return cache !== undefined && !jQuery.isEmptyObject( cache );
158
+	}
159
+};
160
+
161
+return Data;
162
+} );

+ 19
- 0
www/jquery/src/data/var/acceptData.js View File

@@ -0,0 +1,19 @@
1
+define( function() {
2
+
3
+"use strict";
4
+
5
+/**
6
+ * Determines whether an object can have data
7
+ */
8
+return function( owner ) {
9
+
10
+	// Accepts only:
11
+	//  - Node
12
+	//    - Node.ELEMENT_NODE
13
+	//    - Node.DOCUMENT_NODE
14
+	//  - Object
15
+	//    - Any
16
+	return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
17
+};
18
+
19
+} );

+ 7
- 0
www/jquery/src/data/var/dataPriv.js View File

@@ -0,0 +1,7 @@
1
+define( [
2
+	"../Data"
3
+], function( Data ) {
4
+	"use strict";
5
+
6
+	return new Data();
7
+} );

+ 7
- 0
www/jquery/src/data/var/dataUser.js View File

@@ -0,0 +1,7 @@
1
+define( [
2
+	"../Data"
3
+], function( Data ) {
4
+	"use strict";
5
+
6
+	return new Data();
7
+} );

+ 399
- 0
www/jquery/src/deferred.js View File

@@ -0,0 +1,399 @@
1
+define( [
2
+	"./core",
3
+	"./var/isFunction",
4
+	"./var/slice",
5
+	"./callbacks"
6
+], function( jQuery, isFunction, slice ) {
7
+
8
+"use strict";
9
+
10
+function Identity( v ) {
11
+	return v;
12
+}
13
+function Thrower( ex ) {
14
+	throw ex;
15
+}
16
+
17
+function adoptValue( value, resolve, reject, noValue ) {
18
+	var method;
19
+
20
+	try {
21
+
22
+		// Check for promise aspect first to privilege synchronous behavior
23
+		if ( value && isFunction( ( method = value.promise ) ) ) {
24
+			method.call( value ).done( resolve ).fail( reject );
25
+
26
+		// Other thenables
27
+		} else if ( value && isFunction( ( method = value.then ) ) ) {
28
+			method.call( value, resolve, reject );
29
+
30
+		// Other non-thenables
31
+		} else {
32
+
33
+			// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
34
+			// * false: [ value ].slice( 0 ) => resolve( value )
35
+			// * true: [ value ].slice( 1 ) => resolve()
36
+			resolve.apply( undefined, [ value ].slice( noValue ) );
37
+		}
38
+
39
+	// For Promises/A+, convert exceptions into rejections
40
+	// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
41
+	// Deferred#then to conditionally suppress rejection.
42
+	} catch ( value ) {
43
+
44
+		// Support: Android 4.0 only
45
+		// Strict mode functions invoked without .call/.apply get global-object context
46
+		reject.apply( undefined, [ value ] );
47
+	}
48
+}
49
+
50
+jQuery.extend( {
51
+
52
+	Deferred: function( func ) {
53
+		var tuples = [
54
+
55
+				// action, add listener, callbacks,
56
+				// ... .then handlers, argument index, [final state]
57
+				[ "notify", "progress", jQuery.Callbacks( "memory" ),
58
+					jQuery.Callbacks( "memory" ), 2 ],
59
+				[ "resolve", "done", jQuery.Callbacks( "once memory" ),
60
+					jQuery.Callbacks( "once memory" ), 0, "resolved" ],
61
+				[ "reject", "fail", jQuery.Callbacks( "once memory" ),
62
+					jQuery.Callbacks( "once memory" ), 1, "rejected" ]
63
+			],
64
+			state = "pending",
65
+			promise = {
66
+				state: function() {
67
+					return state;
68
+				},
69
+				always: function() {
70
+					deferred.done( arguments ).fail( arguments );
71
+					return this;
72
+				},
73
+				"catch": function( fn ) {
74
+					return promise.then( null, fn );
75
+				},
76
+
77
+				// Keep pipe for back-compat
78
+				pipe: function( /* fnDone, fnFail, fnProgress */ ) {
79
+					var fns = arguments;
80
+
81
+					return jQuery.Deferred( function( newDefer ) {
82
+						jQuery.each( tuples, function( i, tuple ) {
83
+
84
+							// Map tuples (progress, done, fail) to arguments (done, fail, progress)
85
+							var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
86
+
87
+							// deferred.progress(function() { bind to newDefer or newDefer.notify })
88
+							// deferred.done(function() { bind to newDefer or newDefer.resolve })
89
+							// deferred.fail(function() { bind to newDefer or newDefer.reject })
90
+							deferred[ tuple[ 1 ] ]( function() {
91
+								var returned = fn && fn.apply( this, arguments );
92
+								if ( returned && isFunction( returned.promise ) ) {
93
+									returned.promise()
94
+										.progress( newDefer.notify )
95
+										.done( newDefer.resolve )
96
+										.fail( newDefer.reject );
97
+								} else {
98
+									newDefer[ tuple[ 0 ] + "With" ](
99
+										this,
100
+										fn ? [ returned ] : arguments
101
+									);
102
+								}
103
+							} );
104
+						} );
105
+						fns = null;
106
+					} ).promise();
107
+				},
108
+				then: function( onFulfilled, onRejected, onProgress ) {
109
+					var maxDepth = 0;
110
+					function resolve( depth, deferred, handler, special ) {
111
+						return function() {
112
+							var that = this,
113
+								args = arguments,
114
+								mightThrow = function() {
115
+									var returned, then;
116
+
117
+									// Support: Promises/A+ section 2.3.3.3.3
118
+									// https://promisesaplus.com/#point-59
119
+									// Ignore double-resolution attempts
120
+									if ( depth < maxDepth ) {
121
+										return;
122
+									}
123
+
124
+									returned = handler.apply( that, args );
125
+
126
+									// Support: Promises/A+ section 2.3.1
127
+									// https://promisesaplus.com/#point-48
128
+									if ( returned === deferred.promise() ) {
129
+										throw new TypeError( "Thenable self-resolution" );
130
+									}
131
+
132
+									// Support: Promises/A+ sections 2.3.3.1, 3.5
133
+									// https://promisesaplus.com/#point-54
134
+									// https://promisesaplus.com/#point-75
135
+									// Retrieve `then` only once
136
+									then = returned &&
137
+
138
+										// Support: Promises/A+ section 2.3.4
139
+										// https://promisesaplus.com/#point-64
140
+										// Only check objects and functions for thenability
141
+										( typeof returned === "object" ||
142
+											typeof returned === "function" ) &&
143
+										returned.then;
144
+
145
+									// Handle a returned thenable
146
+									if ( isFunction( then ) ) {
147
+
148
+										// Special processors (notify) just wait for resolution
149
+										if ( special ) {
150
+											then.call(
151
+												returned,
152
+												resolve( maxDepth, deferred, Identity, special ),
153
+												resolve( maxDepth, deferred, Thrower, special )
154
+											);
155
+
156
+										// Normal processors (resolve) also hook into progress
157
+										} else {
158
+
159
+											// ...and disregard older resolution values
160
+											maxDepth++;
161
+
162
+											then.call(
163
+												returned,
164
+												resolve( maxDepth, deferred, Identity, special ),
165
+												resolve( maxDepth, deferred, Thrower, special ),
166
+												resolve( maxDepth, deferred, Identity,
167
+													deferred.notifyWith )
168
+											);
169
+										}
170
+
171
+									// Handle all other returned values
172
+									} else {
173
+
174
+										// Only substitute handlers pass on context
175
+										// and multiple values (non-spec behavior)
176
+										if ( handler !== Identity ) {
177
+											that = undefined;
178
+											args = [ returned ];
179
+										}
180
+
181
+										// Process the value(s)
182
+										// Default process is resolve
183
+										( special || deferred.resolveWith )( that, args );
184
+									}
185
+								},
186
+
187
+								// Only normal processors (resolve) catch and reject exceptions
188
+								process = special ?
189
+									mightThrow :
190
+									function() {
191
+										try {
192
+											mightThrow();
193
+										} catch ( e ) {
194
+
195
+											if ( jQuery.Deferred.exceptionHook ) {
196
+												jQuery.Deferred.exceptionHook( e,
197
+													process.stackTrace );
198
+											}
199
+
200
+											// Support: Promises/A+ section 2.3.3.3.4.1
201
+											// https://promisesaplus.com/#point-61
202
+											// Ignore post-resolution exceptions
203
+											if ( depth + 1 >= maxDepth ) {
204
+
205
+												// Only substitute handlers pass on context
206
+												// and multiple values (non-spec behavior)
207
+												if ( handler !== Thrower ) {
208
+													that = undefined;
209
+													args = [ e ];
210
+												}
211
+
212
+												deferred.rejectWith( that, args );
213
+											}
214
+										}
215
+									};
216
+
217
+							// Support: Promises/A+ section 2.3.3.3.1
218
+							// https://promisesaplus.com/#point-57
219
+							// Re-resolve promises immediately to dodge false rejection from
220
+							// subsequent errors
221
+							if ( depth ) {
222
+								process();
223
+							} else {
224
+
225
+								// Call an optional hook to record the stack, in case of exception
226
+								// since it's otherwise lost when execution goes async
227
+								if ( jQuery.Deferred.getStackHook ) {
228
+									process.stackTrace = jQuery.Deferred.getStackHook();
229
+								}
230
+								window.setTimeout( process );
231
+							}
232
+						};
233
+					}
234
+
235
+					return jQuery.Deferred( function( newDefer ) {
236
+
237
+						// progress_handlers.add( ... )
238
+						tuples[ 0 ][ 3 ].add(
239
+							resolve(
240
+								0,
241
+								newDefer,
242
+								isFunction( onProgress ) ?
243
+									onProgress :
244
+									Identity,
245
+								newDefer.notifyWith
246
+							)
247
+						);
248
+
249
+						// fulfilled_handlers.add( ... )
250
+						tuples[ 1 ][ 3 ].add(
251
+							resolve(
252
+								0,
253
+								newDefer,
254
+								isFunction( onFulfilled ) ?
255
+									onFulfilled :
256
+									Identity
257
+							)
258
+						);
259
+
260
+						// rejected_handlers.add( ... )
261
+						tuples[ 2 ][ 3 ].add(
262
+							resolve(
263
+								0,
264
+								newDefer,
265
+								isFunction( onRejected ) ?
266
+									onRejected :
267
+									Thrower
268
+							)
269
+						);
270
+					} ).promise();
271
+				},
272
+
273
+				// Get a promise for this deferred
274
+				// If obj is provided, the promise aspect is added to the object
275
+				promise: function( obj ) {
276
+					return obj != null ? jQuery.extend( obj, promise ) : promise;
277
+				}
278
+			},
279
+			deferred = {};
280
+
281
+		// Add list-specific methods
282
+		jQuery.each( tuples, function( i, tuple ) {
283
+			var list = tuple[ 2 ],
284
+				stateString = tuple[ 5 ];
285
+
286
+			// promise.progress = list.add
287
+			// promise.done = list.add
288
+			// promise.fail = list.add
289
+			promise[ tuple[ 1 ] ] = list.add;
290
+
291
+			// Handle state
292
+			if ( stateString ) {
293
+				list.add(
294
+					function() {
295
+
296
+						// state = "resolved" (i.e., fulfilled)
297
+						// state = "rejected"
298
+						state = stateString;
299
+					},
300
+
301
+					// rejected_callbacks.disable
302
+					// fulfilled_callbacks.disable
303
+					tuples[ 3 - i ][ 2 ].disable,
304
+
305
+					// rejected_handlers.disable
306
+					// fulfilled_handlers.disable
307
+					tuples[ 3 - i ][ 3 ].disable,
308
+
309
+					// progress_callbacks.lock
310
+					tuples[ 0 ][ 2 ].lock,
311
+
312
+					// progress_handlers.lock
313
+					tuples[ 0 ][ 3 ].lock
314
+				);
315
+			}
316
+
317
+			// progress_handlers.fire
318
+			// fulfilled_handlers.fire
319
+			// rejected_handlers.fire
320
+			list.add( tuple[ 3 ].fire );
321
+
322
+			// deferred.notify = function() { deferred.notifyWith(...) }
323
+			// deferred.resolve = function() { deferred.resolveWith(...) }
324
+			// deferred.reject = function() { deferred.rejectWith(...) }
325
+			deferred[ tuple[ 0 ] ] = function() {
326
+				deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
327
+				return this;
328
+			};
329
+
330
+			// deferred.notifyWith = list.fireWith
331
+			// deferred.resolveWith = list.fireWith
332
+			// deferred.rejectWith = list.fireWith
333
+			deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
334
+		} );
335
+
336
+		// Make the deferred a promise
337
+		promise.promise( deferred );
338
+
339
+		// Call given func if any
340
+		if ( func ) {
341
+			func.call( deferred, deferred );
342
+		}
343
+
344
+		// All done!
345
+		return deferred;
346
+	},
347
+
348
+	// Deferred helper
349
+	when: function( singleValue ) {
350
+		var
351
+
352
+			// count of uncompleted subordinates
353
+			remaining = arguments.length,
354
+
355
+			// count of unprocessed arguments
356
+			i = remaining,
357
+
358
+			// subordinate fulfillment data
359
+			resolveContexts = Array( i ),
360
+			resolveValues = slice.call( arguments ),
361
+
362
+			// the master Deferred
363
+			master = jQuery.Deferred(),
364
+
365
+			// subordinate callback factory
366
+			updateFunc = function( i ) {
367
+				return function( value ) {
368
+					resolveContexts[ i ] = this;
369
+					resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
370
+					if ( !( --remaining ) ) {
371
+						master.resolveWith( resolveContexts, resolveValues );
372
+					}
373
+				};
374
+			};
375
+
376
+		// Single- and empty arguments are adopted like Promise.resolve
377
+		if ( remaining <= 1 ) {
378
+			adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,
379
+				!remaining );
380
+
381
+			// Use .then() to unwrap secondary thenables (cf. gh-3000)
382
+			if ( master.state() === "pending" ||
383
+				isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
384
+
385
+				return master.then();
386
+			}
387
+		}
388
+
389
+		// Multiple arguments are aggregated like Promise.all array elements
390
+		while ( i-- ) {
391
+			adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
392
+		}
393
+
394
+		return master.promise();
395
+	}
396
+} );
397
+
398
+return jQuery;
399
+} );

+ 21
- 0
www/jquery/src/deferred/exceptionHook.js View File

@@ -0,0 +1,21 @@
1
+define( [
2
+	"../core",
3
+	"../deferred"
4
+], function( jQuery ) {
5
+
6
+"use strict";
7
+
8
+// These usually indicate a programmer mistake during development,
9
+// warn about them ASAP rather than swallowing them by default.
10
+var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
11
+
12
+jQuery.Deferred.exceptionHook = function( error, stack ) {
13
+
14
+	// Support: IE 8 - 9 only
15
+	// Console exists when dev tools are open, which can happen at any time
16
+	if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
17
+		window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
18
+	}
19
+};
20
+
21
+} );

+ 98
- 0
www/jquery/src/deprecated.js View File

@@ -0,0 +1,98 @@
1
+define( [
2
+	"./core",
3
+	"./core/nodeName",
4
+	"./core/camelCase",
5
+	"./core/toType",
6
+	"./var/isFunction",
7
+	"./var/isWindow",
8
+	"./var/slice",
9
+
10
+	"./event/alias"
11
+], function( jQuery, nodeName, camelCase, toType, isFunction, isWindow, slice ) {
12
+
13
+"use strict";
14
+
15
+jQuery.fn.extend( {
16
+
17
+	bind: function( types, data, fn ) {
18
+		return this.on( types, null, data, fn );
19
+	},
20
+	unbind: function( types, fn ) {
21
+		return this.off( types, null, fn );
22
+	},
23
+
24
+	delegate: function( selector, types, data, fn ) {
25
+		return this.on( types, selector, data, fn );
26
+	},
27
+	undelegate: function( selector, types, fn ) {
28
+
29
+		// ( namespace ) or ( selector, types [, fn] )
30
+		return arguments.length === 1 ?
31
+			this.off( selector, "**" ) :
32
+			this.off( types, selector || "**", fn );
33
+	}
34
+} );
35
+
36
+// Bind a function to a context, optionally partially applying any
37
+// arguments.
38
+// jQuery.proxy is deprecated to promote standards (specifically Function#bind)
39
+// However, it is not slated for removal any time soon
40
+jQuery.proxy = function( fn, context ) {
41
+	var tmp, args, proxy;
42
+
43
+	if ( typeof context === "string" ) {
44
+		tmp = fn[ context ];
45
+		context = fn;
46
+		fn = tmp;
47
+	}
48
+
49
+	// Quick check to determine if target is callable, in the spec
50
+	// this throws a TypeError, but we will just return undefined.
51
+	if ( !isFunction( fn ) ) {
52
+		return undefined;
53
+	}
54
+
55
+	// Simulated bind
56
+	args = slice.call( arguments, 2 );
57
+	proxy = function() {
58
+		return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
59
+	};
60
+
61
+	// Set the guid of unique handler to the same of original handler, so it can be removed
62
+	proxy.guid = fn.guid = fn.guid || jQuery.guid++;
63
+
64
+	return proxy;
65
+};
66
+
67
+jQuery.holdReady = function( hold ) {
68
+	if ( hold ) {
69
+		jQuery.readyWait++;
70
+	} else {
71
+		jQuery.ready( true );
72
+	}
73
+};
74
+jQuery.isArray = Array.isArray;
75
+jQuery.parseJSON = JSON.parse;
76
+jQuery.nodeName = nodeName;
77
+jQuery.isFunction = isFunction;
78
+jQuery.isWindow = isWindow;
79
+jQuery.camelCase = camelCase;
80
+jQuery.type = toType;
81
+
82
+jQuery.now = Date.now;
83
+
84
+jQuery.isNumeric = function( obj ) {
85
+
86
+	// As of jQuery 3.0, isNumeric is limited to
87
+	// strings and numbers (primitives or objects)
88
+	// that can be coerced to finite numbers (gh-2662)
89
+	var type = jQuery.type( obj );
90
+	return ( type === "number" || type === "string" ) &&
91
+
92
+		// parseFloat NaNs numeric-cast false positives ("")
93
+		// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
94
+		// subtraction forces infinities to NaN
95
+		!isNaN( obj - parseFloat( obj ) );
96
+};
97
+
98
+} );

+ 57
- 0
www/jquery/src/dimensions.js View File

@@ -0,0 +1,57 @@
1
+define( [
2
+	"./core",
3
+	"./core/access",
4
+	"./var/isWindow",
5
+	"./css"
6
+], function( jQuery, access, isWindow ) {
7
+
8
+"use strict";
9
+
10
+// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
11
+jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
12
+	jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
13
+		function( defaultExtra, funcName ) {
14
+
15
+		// Margin is only for outerHeight, outerWidth
16
+		jQuery.fn[ funcName ] = function( margin, value ) {
17
+			var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
18
+				extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
19
+
20
+			return access( this, function( elem, type, value ) {
21
+				var doc;
22
+
23
+				if ( isWindow( elem ) ) {
24
+
25
+					// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
26
+					return funcName.indexOf( "outer" ) === 0 ?
27
+						elem[ "inner" + name ] :
28
+						elem.document.documentElement[ "client" + name ];
29
+				}
30
+
31
+				// Get document width or height
32
+				if ( elem.nodeType === 9 ) {
33
+					doc = elem.documentElement;
34
+
35
+					// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
36
+					// whichever is greatest
37
+					return Math.max(
38
+						elem.body[ "scroll" + name ], doc[ "scroll" + name ],
39
+						elem.body[ "offset" + name ], doc[ "offset" + name ],
40
+						doc[ "client" + name ]
41
+					);
42
+				}
43
+
44
+				return value === undefined ?
45
+
46
+					// Get width or height on the element, requesting but not forcing parseFloat
47
+					jQuery.css( elem, type, extra ) :
48
+
49
+					// Set width or height on the element
50
+					jQuery.style( elem, type, value, extra );
51
+			}, type, chainable ? margin : undefined, chainable );
52
+		};
53
+	} );
54
+} );
55
+
56
+return jQuery;
57
+} );

+ 702
- 0
www/jquery/src/effects.js View File

@@ -0,0 +1,702 @@
1
+define( [
2
+	"./core",
3
+	"./core/camelCase",
4
+	"./var/document",
5
+	"./var/isFunction",
6
+	"./var/rcssNum",
7
+	"./var/rnothtmlwhite",
8
+	"./css/var/cssExpand",
9
+	"./css/var/isHiddenWithinTree",
10
+	"./css/var/swap",
11
+	"./css/adjustCSS",
12
+	"./data/var/dataPriv",
13
+	"./css/showHide",
14
+
15
+	"./core/init",
16
+	"./queue",
17
+	"./deferred",
18
+	"./traversing",
19
+	"./manipulation",
20
+	"./css",
21
+	"./effects/Tween"
22
+], function( jQuery, camelCase, document, isFunction, rcssNum, rnothtmlwhite, cssExpand,
23
+	isHiddenWithinTree, swap, adjustCSS, dataPriv, showHide ) {
24
+
25
+"use strict";
26
+
27
+var
28
+	fxNow, inProgress,
29
+	rfxtypes = /^(?:toggle|show|hide)$/,
30
+	rrun = /queueHooks$/;
31
+
32
+function schedule() {
33
+	if ( inProgress ) {
34
+		if ( document.hidden === false && window.requestAnimationFrame ) {
35
+			window.requestAnimationFrame( schedule );
36
+		} else {
37
+			window.setTimeout( schedule, jQuery.fx.interval );
38
+		}
39
+
40
+		jQuery.fx.tick();
41
+	}
42
+}
43
+
44
+// Animations created synchronously will run synchronously
45
+function createFxNow() {
46
+	window.setTimeout( function() {
47
+		fxNow = undefined;
48
+	} );
49
+	return ( fxNow = Date.now() );
50
+}
51
+
52
+// Generate parameters to create a standard animation
53
+function genFx( type, includeWidth ) {
54
+	var which,
55
+		i = 0,
56
+		attrs = { height: type };
57
+
58
+	// If we include width, step value is 1 to do all cssExpand values,
59
+	// otherwise step value is 2 to skip over Left and Right
60
+	includeWidth = includeWidth ? 1 : 0;
61
+	for ( ; i < 4; i += 2 - includeWidth ) {
62
+		which = cssExpand[ i ];
63
+		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
64
+	}
65
+
66
+	if ( includeWidth ) {
67
+		attrs.opacity = attrs.width = type;
68
+	}
69
+
70
+	return attrs;
71
+}
72
+
73
+function createTween( value, prop, animation ) {
74
+	var tween,
75
+		collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
76
+		index = 0,
77
+		length = collection.length;
78
+	for ( ; index < length; index++ ) {
79
+		if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
80
+
81
+			// We're done with this property
82
+			return tween;
83
+		}
84
+	}
85
+}
86
+
87
+function defaultPrefilter( elem, props, opts ) {
88
+	var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
89
+		isBox = "width" in props || "height" in props,
90
+		anim = this,
91
+		orig = {},
92
+		style = elem.style,
93
+		hidden = elem.nodeType && isHiddenWithinTree( elem ),
94
+		dataShow = dataPriv.get( elem, "fxshow" );
95
+
96
+	// Queue-skipping animations hijack the fx hooks
97
+	if ( !opts.queue ) {
98
+		hooks = jQuery._queueHooks( elem, "fx" );
99
+		if ( hooks.unqueued == null ) {
100
+			hooks.unqueued = 0;
101
+			oldfire = hooks.empty.fire;
102
+			hooks.empty.fire = function() {
103
+				if ( !hooks.unqueued ) {
104
+					oldfire();
105
+				}
106
+			};
107
+		}
108
+		hooks.unqueued++;
109
+
110
+		anim.always( function() {
111
+
112
+			// Ensure the complete handler is called before this completes
113
+			anim.always( function() {
114
+				hooks.unqueued--;
115
+				if ( !jQuery.queue( elem, "fx" ).length ) {
116
+					hooks.empty.fire();
117
+				}
118
+			} );
119
+		} );
120
+	}
121
+
122
+	// Detect show/hide animations
123
+	for ( prop in props ) {
124
+		value = props[ prop ];
125
+		if ( rfxtypes.test( value ) ) {
126
+			delete props[ prop ];
127
+			toggle = toggle || value === "toggle";
128
+			if ( value === ( hidden ? "hide" : "show" ) ) {
129
+
130
+				// Pretend to be hidden if this is a "show" and
131
+				// there is still data from a stopped show/hide
132
+				if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
133
+					hidden = true;
134
+
135
+				// Ignore all other no-op show/hide data
136
+				} else {
137
+					continue;
138
+				}
139
+			}
140
+			orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
141
+		}
142
+	}
143
+
144
+	// Bail out if this is a no-op like .hide().hide()
145
+	propTween = !jQuery.isEmptyObject( props );
146
+	if ( !propTween && jQuery.isEmptyObject( orig ) ) {
147
+		return;
148
+	}
149
+
150
+	// Restrict "overflow" and "display" styles during box animations
151
+	if ( isBox && elem.nodeType === 1 ) {
152
+
153
+		// Support: IE <=9 - 11, Edge 12 - 15
154
+		// Record all 3 overflow attributes because IE does not infer the shorthand
155
+		// from identically-valued overflowX and overflowY and Edge just mirrors
156
+		// the overflowX value there.
157
+		opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
158
+
159
+		// Identify a display type, preferring old show/hide data over the CSS cascade
160
+		restoreDisplay = dataShow && dataShow.display;
161
+		if ( restoreDisplay == null ) {
162
+			restoreDisplay = dataPriv.get( elem, "display" );
163
+		}
164
+		display = jQuery.css( elem, "display" );
165
+		if ( display === "none" ) {
166
+			if ( restoreDisplay ) {
167
+				display = restoreDisplay;
168
+			} else {
169
+
170
+				// Get nonempty value(s) by temporarily forcing visibility
171
+				showHide( [ elem ], true );
172
+				restoreDisplay = elem.style.display || restoreDisplay;
173
+				display = jQuery.css( elem, "display" );
174
+				showHide( [ elem ] );
175
+			}
176
+		}
177
+
178
+		// Animate inline elements as inline-block
179
+		if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
180
+			if ( jQuery.css( elem, "float" ) === "none" ) {
181
+
182
+				// Restore the original display value at the end of pure show/hide animations
183
+				if ( !propTween ) {
184
+					anim.done( function() {
185
+						style.display = restoreDisplay;
186
+					} );
187
+					if ( restoreDisplay == null ) {
188
+						display = style.display;
189
+						restoreDisplay = display === "none" ? "" : display;
190
+					}
191
+				}
192
+				style.display = "inline-block";
193
+			}
194
+		}
195
+	}
196
+
197
+	if ( opts.overflow ) {
198
+		style.overflow = "hidden";
199
+		anim.always( function() {
200
+			style.overflow = opts.overflow[ 0 ];
201
+			style.overflowX = opts.overflow[ 1 ];
202
+			style.overflowY = opts.overflow[ 2 ];
203
+		} );
204
+	}
205
+
206
+	// Implement show/hide animations
207
+	propTween = false;
208
+	for ( prop in orig ) {
209
+
210
+		// General show/hide setup for this element animation
211
+		if ( !propTween ) {
212
+			if ( dataShow ) {
213
+				if ( "hidden" in dataShow ) {
214
+					hidden = dataShow.hidden;
215
+				}
216
+			} else {
217
+				dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
218
+			}
219
+
220
+			// Store hidden/visible for toggle so `.stop().toggle()` "reverses"
221
+			if ( toggle ) {
222
+				dataShow.hidden = !hidden;
223
+			}
224
+
225
+			// Show elements before animating them
226
+			if ( hidden ) {
227
+				showHide( [ elem ], true );
228
+			}
229
+
230
+			/* eslint-disable no-loop-func */
231
+
232
+			anim.done( function() {
233
+
234
+			/* eslint-enable no-loop-func */
235
+
236
+				// The final step of a "hide" animation is actually hiding the element
237
+				if ( !hidden ) {
238
+					showHide( [ elem ] );
239
+				}
240
+				dataPriv.remove( elem, "fxshow" );
241
+				for ( prop in orig ) {
242
+					jQuery.style( elem, prop, orig[ prop ] );
243
+				}
244
+			} );
245
+		}
246
+
247
+		// Per-property setup
248
+		propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
249
+		if ( !( prop in dataShow ) ) {
250
+			dataShow[ prop ] = propTween.start;
251
+			if ( hidden ) {
252
+				propTween.end = propTween.start;
253
+				propTween.start = 0;
254
+			}
255
+		}
256
+	}
257
+}
258
+
259
+function propFilter( props, specialEasing ) {
260
+	var index, name, easing, value, hooks;
261
+
262
+	// camelCase, specialEasing and expand cssHook pass
263
+	for ( index in props ) {
264
+		name = camelCase( index );
265
+		easing = specialEasing[ name ];
266
+		value = props[ index ];
267
+		if ( Array.isArray( value ) ) {
268
+			easing = value[ 1 ];
269
+			value = props[ index ] = value[ 0 ];
270
+		}
271
+
272
+		if ( index !== name ) {
273
+			props[ name ] = value;
274
+			delete props[ index ];
275
+		}
276
+
277
+		hooks = jQuery.cssHooks[ name ];
278
+		if ( hooks && "expand" in hooks ) {
279
+			value = hooks.expand( value );
280
+			delete props[ name ];
281
+
282
+			// Not quite $.extend, this won't overwrite existing keys.
283
+			// Reusing 'index' because we have the correct "name"
284
+			for ( index in value ) {
285
+				if ( !( index in props ) ) {
286
+					props[ index ] = value[ index ];
287
+					specialEasing[ index ] = easing;
288
+				}
289
+			}
290
+		} else {
291
+			specialEasing[ name ] = easing;
292
+		}
293
+	}
294
+}
295
+
296
+function Animation( elem, properties, options ) {
297
+	var result,
298
+		stopped,
299
+		index = 0,
300
+		length = Animation.prefilters.length,
301
+		deferred = jQuery.Deferred().always( function() {
302
+
303
+			// Don't match elem in the :animated selector
304
+			delete tick.elem;
305
+		} ),
306
+		tick = function() {
307
+			if ( stopped ) {
308
+				return false;
309
+			}
310
+			var currentTime = fxNow || createFxNow(),
311
+				remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
312
+
313
+				// Support: Android 2.3 only
314
+				// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
315
+				temp = remaining / animation.duration || 0,
316
+				percent = 1 - temp,
317
+				index = 0,
318
+				length = animation.tweens.length;
319
+
320
+			for ( ; index < length; index++ ) {
321
+				animation.tweens[ index ].run( percent );
322
+			}
323
+
324
+			deferred.notifyWith( elem, [ animation, percent, remaining ] );
325
+
326
+			// If there's more to do, yield
327
+			if ( percent < 1 && length ) {
328
+				return remaining;
329
+			}
330
+
331
+			// If this was an empty animation, synthesize a final progress notification
332
+			if ( !length ) {
333
+				deferred.notifyWith( elem, [ animation, 1, 0 ] );
334
+			}
335
+
336
+			// Resolve the animation and report its conclusion
337
+			deferred.resolveWith( elem, [ animation ] );
338
+			return false;
339
+		},
340
+		animation = deferred.promise( {
341
+			elem: elem,
342
+			props: jQuery.extend( {}, properties ),
343
+			opts: jQuery.extend( true, {
344
+				specialEasing: {},
345
+				easing: jQuery.easing._default
346
+			}, options ),
347
+			originalProperties: properties,
348
+			originalOptions: options,
349
+			startTime: fxNow || createFxNow(),
350
+			duration: options.duration,
351
+			tweens: [],
352
+			createTween: function( prop, end ) {
353
+				var tween = jQuery.Tween( elem, animation.opts, prop, end,
354
+						animation.opts.specialEasing[ prop ] || animation.opts.easing );
355
+				animation.tweens.push( tween );
356
+				return tween;
357
+			},
358
+			stop: function( gotoEnd ) {
359
+				var index = 0,
360
+
361
+					// If we are going to the end, we want to run all the tweens
362
+					// otherwise we skip this part
363
+					length = gotoEnd ? animation.tweens.length : 0;
364
+				if ( stopped ) {
365
+					return this;
366
+				}
367
+				stopped = true;
368
+				for ( ; index < length; index++ ) {
369
+					animation.tweens[ index ].run( 1 );
370
+				}
371
+
372
+				// Resolve when we played the last frame; otherwise, reject
373
+				if ( gotoEnd ) {
374
+					deferred.notifyWith( elem, [ animation, 1, 0 ] );
375
+					deferred.resolveWith( elem, [ animation, gotoEnd ] );
376
+				} else {
377
+					deferred.rejectWith( elem, [ animation, gotoEnd ] );
378
+				}
379
+				return this;
380
+			}
381
+		} ),
382
+		props = animation.props;
383
+
384
+	propFilter( props, animation.opts.specialEasing );
385
+
386
+	for ( ; index < length; index++ ) {
387
+		result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
388
+		if ( result ) {
389
+			if ( isFunction( result.stop ) ) {
390
+				jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
391
+					result.stop.bind( result );
392
+			}
393
+			return result;
394
+		}
395
+	}
396
+
397
+	jQuery.map( props, createTween, animation );
398
+
399
+	if ( isFunction( animation.opts.start ) ) {
400
+		animation.opts.start.call( elem, animation );
401
+	}
402
+
403
+	// Attach callbacks from options
404
+	animation
405
+		.progress( animation.opts.progress )
406
+		.done( animation.opts.done, animation.opts.complete )
407
+		.fail( animation.opts.fail )
408
+		.always( animation.opts.always );
409
+
410
+	jQuery.fx.timer(
411
+		jQuery.extend( tick, {
412
+			elem: elem,
413
+			anim: animation,
414
+			queue: animation.opts.queue
415
+		} )
416
+	);
417
+
418
+	return animation;
419
+}
420
+
421
+jQuery.Animation = jQuery.extend( Animation, {
422
+
423
+	tweeners: {
424
+		"*": [ function( prop, value ) {
425
+			var tween = this.createTween( prop, value );
426
+			adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
427
+			return tween;
428
+		} ]
429
+	},
430
+
431
+	tweener: function( props, callback ) {
432
+		if ( isFunction( props ) ) {
433
+			callback = props;
434
+			props = [ "*" ];
435
+		} else {
436
+			props = props.match( rnothtmlwhite );
437
+		}
438
+
439
+		var prop,
440
+			index = 0,
441
+			length = props.length;
442
+
443
+		for ( ; index < length; index++ ) {
444
+			prop = props[ index ];
445
+			Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
446
+			Animation.tweeners[ prop ].unshift( callback );
447
+		}
448
+	},
449
+
450
+	prefilters: [ defaultPrefilter ],
451
+
452
+	prefilter: function( callback, prepend ) {
453
+		if ( prepend ) {
454
+			Animation.prefilters.unshift( callback );
455
+		} else {
456
+			Animation.prefilters.push( callback );
457
+		}
458
+	}
459
+} );
460
+
461
+jQuery.speed = function( speed, easing, fn ) {
462
+	var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
463
+		complete: fn || !fn && easing ||
464
+			isFunction( speed ) && speed,
465
+		duration: speed,
466
+		easing: fn && easing || easing && !isFunction( easing ) && easing
467
+	};
468
+
469
+	// Go to the end state if fx are off
470
+	if ( jQuery.fx.off ) {
471
+		opt.duration = 0;
472
+
473
+	} else {
474
+		if ( typeof opt.duration !== "number" ) {
475
+			if ( opt.duration in jQuery.fx.speeds ) {
476
+				opt.duration = jQuery.fx.speeds[ opt.duration ];
477
+
478
+			} else {
479
+				opt.duration = jQuery.fx.speeds._default;
480
+			}
481
+		}
482
+	}
483
+
484
+	// Normalize opt.queue - true/undefined/null -> "fx"
485
+	if ( opt.queue == null || opt.queue === true ) {
486
+		opt.queue = "fx";
487
+	}
488
+
489
+	// Queueing
490
+	opt.old = opt.complete;
491
+
492
+	opt.complete = function() {
493
+		if ( isFunction( opt.old ) ) {
494
+			opt.old.call( this );
495
+		}
496
+
497
+		if ( opt.queue ) {
498
+			jQuery.dequeue( this, opt.queue );
499
+		}
500
+	};
501
+
502
+	return opt;
503
+};
504
+
505
+jQuery.fn.extend( {
506
+	fadeTo: function( speed, to, easing, callback ) {
507
+
508
+		// Show any hidden elements after setting opacity to 0
509
+		return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
510
+
511
+			// Animate to the value specified
512
+			.end().animate( { opacity: to }, speed, easing, callback );
513
+	},
514
+	animate: function( prop, speed, easing, callback ) {
515
+		var empty = jQuery.isEmptyObject( prop ),
516
+			optall = jQuery.speed( speed, easing, callback ),
517
+			doAnimation = function() {
518
+
519
+				// Operate on a copy of prop so per-property easing won't be lost
520
+				var anim = Animation( this, jQuery.extend( {}, prop ), optall );
521
+
522
+				// Empty animations, or finishing resolves immediately
523
+				if ( empty || dataPriv.get( this, "finish" ) ) {
524
+					anim.stop( true );
525
+				}
526
+			};
527
+			doAnimation.finish = doAnimation;
528
+
529
+		return empty || optall.queue === false ?
530
+			this.each( doAnimation ) :
531
+			this.queue( optall.queue, doAnimation );
532
+	},
533
+	stop: function( type, clearQueue, gotoEnd ) {
534
+		var stopQueue = function( hooks ) {
535
+			var stop = hooks.stop;
536
+			delete hooks.stop;
537
+			stop( gotoEnd );
538
+		};
539
+
540
+		if ( typeof type !== "string" ) {
541
+			gotoEnd = clearQueue;
542
+			clearQueue = type;
543
+			type = undefined;
544
+		}
545
+		if ( clearQueue && type !== false ) {
546
+			this.queue( type || "fx", [] );
547
+		}
548
+
549
+		return this.each( function() {
550
+			var dequeue = true,
551
+				index = type != null && type + "queueHooks",
552
+				timers = jQuery.timers,
553
+				data = dataPriv.get( this );
554
+
555
+			if ( index ) {
556
+				if ( data[ index ] && data[ index ].stop ) {
557
+					stopQueue( data[ index ] );
558
+				}
559
+			} else {
560
+				for ( index in data ) {
561
+					if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
562
+						stopQueue( data[ index ] );
563
+					}
564
+				}
565
+			}
566
+
567
+			for ( index = timers.length; index--; ) {
568
+				if ( timers[ index ].elem === this &&
569
+					( type == null || timers[ index ].queue === type ) ) {
570
+
571
+					timers[ index ].anim.stop( gotoEnd );
572
+					dequeue = false;
573
+					timers.splice( index, 1 );
574
+				}
575
+			}
576
+
577
+			// Start the next in the queue if the last step wasn't forced.
578
+			// Timers currently will call their complete callbacks, which
579
+			// will dequeue but only if they were gotoEnd.
580
+			if ( dequeue || !gotoEnd ) {
581
+				jQuery.dequeue( this, type );
582
+			}
583
+		} );
584
+	},
585
+	finish: function( type ) {
586
+		if ( type !== false ) {
587
+			type = type || "fx";
588
+		}
589
+		return this.each( function() {
590
+			var index,
591
+				data = dataPriv.get( this ),
592
+				queue = data[ type + "queue" ],
593
+				hooks = data[ type + "queueHooks" ],
594
+				timers = jQuery.timers,
595
+				length = queue ? queue.length : 0;
596
+
597
+			// Enable finishing flag on private data
598
+			data.finish = true;
599
+
600
+			// Empty the queue first
601
+			jQuery.queue( this, type, [] );
602
+
603
+			if ( hooks && hooks.stop ) {
604
+				hooks.stop.call( this, true );
605
+			}
606
+
607
+			// Look for any active animations, and finish them
608
+			for ( index = timers.length; index--; ) {
609
+				if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
610
+					timers[ index ].anim.stop( true );
611
+					timers.splice( index, 1 );
612
+				}
613
+			}
614
+
615
+			// Look for any animations in the old queue and finish them
616
+			for ( index = 0; index < length; index++ ) {
617
+				if ( queue[ index ] && queue[ index ].finish ) {
618
+					queue[ index ].finish.call( this );
619
+				}
620
+			}
621
+
622
+			// Turn off finishing flag
623
+			delete data.finish;
624
+		} );
625
+	}
626
+} );
627
+
628
+jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
629
+	var cssFn = jQuery.fn[ name ];
630
+	jQuery.fn[ name ] = function( speed, easing, callback ) {
631
+		return speed == null || typeof speed === "boolean" ?
632
+			cssFn.apply( this, arguments ) :
633
+			this.animate( genFx( name, true ), speed, easing, callback );
634
+	};
635
+} );
636
+
637
+// Generate shortcuts for custom animations
638
+jQuery.each( {
639
+	slideDown: genFx( "show" ),
640
+	slideUp: genFx( "hide" ),
641
+	slideToggle: genFx( "toggle" ),
642
+	fadeIn: { opacity: "show" },
643
+	fadeOut: { opacity: "hide" },
644
+	fadeToggle: { opacity: "toggle" }
645
+}, function( name, props ) {
646
+	jQuery.fn[ name ] = function( speed, easing, callback ) {
647
+		return this.animate( props, speed, easing, callback );
648
+	};
649
+} );
650
+
651
+jQuery.timers = [];
652
+jQuery.fx.tick = function() {
653
+	var timer,
654
+		i = 0,
655
+		timers = jQuery.timers;
656
+
657
+	fxNow = Date.now();
658
+
659
+	for ( ; i < timers.length; i++ ) {
660
+		timer = timers[ i ];
661
+
662
+		// Run the timer and safely remove it when done (allowing for external removal)
663
+		if ( !timer() && timers[ i ] === timer ) {
664
+			timers.splice( i--, 1 );
665
+		}
666
+	}
667
+
668
+	if ( !timers.length ) {
669
+		jQuery.fx.stop();
670
+	}
671
+	fxNow = undefined;
672
+};
673
+
674
+jQuery.fx.timer = function( timer ) {
675
+	jQuery.timers.push( timer );
676
+	jQuery.fx.start();
677
+};
678
+
679
+jQuery.fx.interval = 13;
680
+jQuery.fx.start = function() {
681
+	if ( inProgress ) {
682
+		return;
683
+	}
684
+
685
+	inProgress = true;
686
+	schedule();
687
+};
688
+
689
+jQuery.fx.stop = function() {
690
+	inProgress = null;
691
+};
692
+
693
+jQuery.fx.speeds = {
694
+	slow: 600,
695
+	fast: 200,
696
+
697
+	// Default speed
698
+	_default: 400
699
+};
700
+
701
+return jQuery;
702
+} );

+ 125
- 0
www/jquery/src/effects/Tween.js View File

@@ -0,0 +1,125 @@
1
+define( [
2
+	"../core",
3
+	"../css/finalPropName",
4
+
5
+	"../css"
6
+], function( jQuery, finalPropName ) {
7
+
8
+"use strict";
9
+
10
+function Tween( elem, options, prop, end, easing ) {
11
+	return new Tween.prototype.init( elem, options, prop, end, easing );
12
+}
13
+jQuery.Tween = Tween;
14
+
15
+Tween.prototype = {
16
+	constructor: Tween,
17
+	init: function( elem, options, prop, end, easing, unit ) {
18
+		this.elem = elem;
19
+		this.prop = prop;
20
+		this.easing = easing || jQuery.easing._default;
21
+		this.options = options;
22
+		this.start = this.now = this.cur();
23
+		this.end = end;
24
+		this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
25
+	},
26
+	cur: function() {
27
+		var hooks = Tween.propHooks[ this.prop ];
28
+
29
+		return hooks && hooks.get ?
30
+			hooks.get( this ) :
31
+			Tween.propHooks._default.get( this );
32
+	},
33
+	run: function( percent ) {
34
+		var eased,
35
+			hooks = Tween.propHooks[ this.prop ];
36
+
37
+		if ( this.options.duration ) {
38
+			this.pos = eased = jQuery.easing[ this.easing ](
39
+				percent, this.options.duration * percent, 0, 1, this.options.duration
40
+			);
41
+		} else {
42
+			this.pos = eased = percent;
43
+		}
44
+		this.now = ( this.end - this.start ) * eased + this.start;
45
+
46
+		if ( this.options.step ) {
47
+			this.options.step.call( this.elem, this.now, this );
48
+		}
49
+
50
+		if ( hooks && hooks.set ) {
51
+			hooks.set( this );
52
+		} else {
53
+			Tween.propHooks._default.set( this );
54
+		}
55
+		return this;
56
+	}
57
+};
58
+
59
+Tween.prototype.init.prototype = Tween.prototype;
60
+
61
+Tween.propHooks = {
62
+	_default: {
63
+		get: function( tween ) {
64
+			var result;
65
+
66
+			// Use a property on the element directly when it is not a DOM element,
67
+			// or when there is no matching style property that exists.
68
+			if ( tween.elem.nodeType !== 1 ||
69
+				tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
70
+				return tween.elem[ tween.prop ];
71
+			}
72
+
73
+			// Passing an empty string as a 3rd parameter to .css will automatically
74
+			// attempt a parseFloat and fallback to a string if the parse fails.
75
+			// Simple values such as "10px" are parsed to Float;
76
+			// complex values such as "rotate(1rad)" are returned as-is.
77
+			result = jQuery.css( tween.elem, tween.prop, "" );
78
+
79
+			// Empty strings, null, undefined and "auto" are converted to 0.
80
+			return !result || result === "auto" ? 0 : result;
81
+		},
82
+		set: function( tween ) {
83
+
84
+			// Use step hook for back compat.
85
+			// Use cssHook if its there.
86
+			// Use .style if available and use plain properties where available.
87
+			if ( jQuery.fx.step[ tween.prop ] ) {
88
+				jQuery.fx.step[ tween.prop ]( tween );
89
+			} else if ( tween.elem.nodeType === 1 && (
90
+					jQuery.cssHooks[ tween.prop ] ||
91
+					tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) {
92
+				jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
93
+			} else {
94
+				tween.elem[ tween.prop ] = tween.now;
95
+			}
96
+		}
97
+	}
98
+};
99
+
100
+// Support: IE <=9 only
101
+// Panic based approach to setting things on disconnected nodes
102
+Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
103
+	set: function( tween ) {
104
+		if ( tween.elem.nodeType && tween.elem.parentNode ) {
105
+			tween.elem[ tween.prop ] = tween.now;
106
+		}
107
+	}
108
+};
109
+
110
+jQuery.easing = {
111
+	linear: function( p ) {
112
+		return p;
113
+	},
114
+	swing: function( p ) {
115
+		return 0.5 - Math.cos( p * Math.PI ) / 2;
116
+	},
117
+	_default: "swing"
118
+};
119
+
120
+jQuery.fx = Tween.prototype.init;
121
+
122
+// Back compat <1.8 extension point
123
+jQuery.fx.step = {};
124
+
125
+} );

+ 15
- 0
www/jquery/src/effects/animatedSelector.js View File

@@ -0,0 +1,15 @@
1
+define( [
2
+	"../core",
3
+	"../selector",
4
+	"../effects"
5
+], function( jQuery ) {
6
+
7
+"use strict";
8
+
9
+jQuery.expr.pseudos.animated = function( elem ) {
10
+	return jQuery.grep( jQuery.timers, function( fn ) {
11
+		return elem === fn.elem;
12
+	} ).length;
13
+};
14
+
15
+} );

+ 888
- 0
www/jquery/src/event.js View File

@@ -0,0 +1,888 @@
1
+define( [
2
+	"./core",
3
+	"./var/document",
4
+	"./var/documentElement",
5
+	"./var/isFunction",
6
+	"./var/rnothtmlwhite",
7
+	"./var/rcheckableType",
8
+	"./var/slice",
9
+	"./data/var/dataPriv",
10
+	"./core/nodeName",
11
+
12
+	"./core/init",
13
+	"./selector"
14
+], function( jQuery, document, documentElement, isFunction, rnothtmlwhite,
15
+	rcheckableType, slice, dataPriv, nodeName ) {
16
+
17
+"use strict";
18
+
19
+var
20
+	rkeyEvent = /^key/,
21
+	rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
22
+	rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
23
+
24
+function returnTrue() {
25
+	return true;
26
+}
27
+
28
+function returnFalse() {
29
+	return false;
30
+}
31
+
32
+// Support: IE <=9 - 11+
33
+// focus() and blur() are asynchronous, except when they are no-op.
34
+// So expect focus to be synchronous when the element is already active,
35
+// and blur to be synchronous when the element is not already active.
36
+// (focus and blur are always synchronous in other supported browsers,
37
+// this just defines when we can count on it).
38
+function expectSync( elem, type ) {
39
+	return ( elem === safeActiveElement() ) === ( type === "focus" );
40
+}
41
+
42
+// Support: IE <=9 only
43
+// Accessing document.activeElement can throw unexpectedly
44
+// https://bugs.jquery.com/ticket/13393
45
+function safeActiveElement() {
46
+	try {
47
+		return document.activeElement;
48
+	} catch ( err ) { }
49
+}
50
+
51
+function on( elem, types, selector, data, fn, one ) {
52
+	var origFn, type;
53
+
54
+	// Types can be a map of types/handlers
55
+	if ( typeof types === "object" ) {
56
+
57
+		// ( types-Object, selector, data )
58
+		if ( typeof selector !== "string" ) {
59
+
60
+			// ( types-Object, data )
61
+			data = data || selector;
62
+			selector = undefined;
63
+		}
64
+		for ( type in types ) {
65
+			on( elem, type, selector, data, types[ type ], one );
66
+		}
67
+		return elem;
68
+	}
69
+
70
+	if ( data == null && fn == null ) {
71
+
72
+		// ( types, fn )
73
+		fn = selector;
74
+		data = selector = undefined;
75
+	} else if ( fn == null ) {
76
+		if ( typeof selector === "string" ) {
77
+
78
+			// ( types, selector, fn )
79
+			fn = data;
80
+			data = undefined;
81
+		} else {
82
+
83
+			// ( types, data, fn )
84
+			fn = data;
85
+			data = selector;
86
+			selector = undefined;
87
+		}
88
+	}
89
+	if ( fn === false ) {
90
+		fn = returnFalse;
91
+	} else if ( !fn ) {
92
+		return elem;
93
+	}
94
+
95
+	if ( one === 1 ) {
96
+		origFn = fn;
97
+		fn = function( event ) {
98
+
99
+			// Can use an empty set, since event contains the info
100
+			jQuery().off( event );
101
+			return origFn.apply( this, arguments );
102
+		};
103
+
104
+		// Use same guid so caller can remove using origFn
105
+		fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
106
+	}
107
+	return elem.each( function() {
108
+		jQuery.event.add( this, types, fn, data, selector );
109
+	} );
110
+}
111
+
112
+/*
113
+ * Helper functions for managing events -- not part of the public interface.
114
+ * Props to Dean Edwards' addEvent library for many of the ideas.
115
+ */
116
+jQuery.event = {
117
+
118
+	global: {},
119
+
120
+	add: function( elem, types, handler, data, selector ) {
121
+
122
+		var handleObjIn, eventHandle, tmp,
123
+			events, t, handleObj,
124
+			special, handlers, type, namespaces, origType,
125
+			elemData = dataPriv.get( elem );
126
+
127
+		// Don't attach events to noData or text/comment nodes (but allow plain objects)
128
+		if ( !elemData ) {
129
+			return;
130
+		}
131
+
132
+		// Caller can pass in an object of custom data in lieu of the handler
133
+		if ( handler.handler ) {
134
+			handleObjIn = handler;
135
+			handler = handleObjIn.handler;
136
+			selector = handleObjIn.selector;
137
+		}
138
+
139
+		// Ensure that invalid selectors throw exceptions at attach time
140
+		// Evaluate against documentElement in case elem is a non-element node (e.g., document)
141
+		if ( selector ) {
142
+			jQuery.find.matchesSelector( documentElement, selector );
143
+		}
144
+
145
+		// Make sure that the handler has a unique ID, used to find/remove it later
146
+		if ( !handler.guid ) {
147
+			handler.guid = jQuery.guid++;
148
+		}
149
+
150
+		// Init the element's event structure and main handler, if this is the first
151
+		if ( !( events = elemData.events ) ) {
152
+			events = elemData.events = {};
153
+		}
154
+		if ( !( eventHandle = elemData.handle ) ) {
155
+			eventHandle = elemData.handle = function( e ) {
156
+
157
+				// Discard the second event of a jQuery.event.trigger() and
158
+				// when an event is called after a page has unloaded
159
+				return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
160
+					jQuery.event.dispatch.apply( elem, arguments ) : undefined;
161
+			};
162
+		}
163
+
164
+		// Handle multiple events separated by a space
165
+		types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
166
+		t = types.length;
167
+		while ( t-- ) {
168
+			tmp = rtypenamespace.exec( types[ t ] ) || [];
169
+			type = origType = tmp[ 1 ];
170
+			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
171
+
172
+			// There *must* be a type, no attaching namespace-only handlers
173
+			if ( !type ) {
174
+				continue;
175
+			}
176
+
177
+			// If event changes its type, use the special event handlers for the changed type
178
+			special = jQuery.event.special[ type ] || {};
179
+
180
+			// If selector defined, determine special event api type, otherwise given type
181
+			type = ( selector ? special.delegateType : special.bindType ) || type;
182
+
183
+			// Update special based on newly reset type
184
+			special = jQuery.event.special[ type ] || {};
185
+
186
+			// handleObj is passed to all event handlers
187
+			handleObj = jQuery.extend( {
188
+				type: type,
189
+				origType: origType,
190
+				data: data,
191
+				handler: handler,
192
+				guid: handler.guid,
193
+				selector: selector,
194
+				needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
195
+				namespace: namespaces.join( "." )
196
+			}, handleObjIn );
197
+
198
+			// Init the event handler queue if we're the first
199
+			if ( !( handlers = events[ type ] ) ) {
200
+				handlers = events[ type ] = [];
201
+				handlers.delegateCount = 0;
202
+
203
+				// Only use addEventListener if the special events handler returns false
204
+				if ( !special.setup ||
205
+					special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
206
+
207
+					if ( elem.addEventListener ) {
208
+						elem.addEventListener( type, eventHandle );
209
+					}
210
+				}
211
+			}
212
+
213
+			if ( special.add ) {
214
+				special.add.call( elem, handleObj );
215
+
216
+				if ( !handleObj.handler.guid ) {
217
+					handleObj.handler.guid = handler.guid;
218
+				}
219
+			}
220
+
221
+			// Add to the element's handler list, delegates in front
222
+			if ( selector ) {
223
+				handlers.splice( handlers.delegateCount++, 0, handleObj );
224
+			} else {
225
+				handlers.push( handleObj );
226
+			}
227
+
228
+			// Keep track of which events have ever been used, for event optimization
229
+			jQuery.event.global[ type ] = true;
230
+		}
231
+
232
+	},
233
+
234
+	// Detach an event or set of events from an element
235
+	remove: function( elem, types, handler, selector, mappedTypes ) {
236
+
237
+		var j, origCount, tmp,
238
+			events, t, handleObj,
239
+			special, handlers, type, namespaces, origType,
240
+			elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
241
+
242
+		if ( !elemData || !( events = elemData.events ) ) {
243
+			return;
244
+		}
245
+
246
+		// Once for each type.namespace in types; type may be omitted
247
+		types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
248
+		t = types.length;
249
+		while ( t-- ) {
250
+			tmp = rtypenamespace.exec( types[ t ] ) || [];
251
+			type = origType = tmp[ 1 ];
252
+			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
253
+
254
+			// Unbind all events (on this namespace, if provided) for the element
255
+			if ( !type ) {
256
+				for ( type in events ) {
257
+					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
258
+				}
259
+				continue;
260
+			}
261
+
262
+			special = jQuery.event.special[ type ] || {};
263
+			type = ( selector ? special.delegateType : special.bindType ) || type;
264
+			handlers = events[ type ] || [];
265
+			tmp = tmp[ 2 ] &&
266
+				new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
267
+
268
+			// Remove matching events
269
+			origCount = j = handlers.length;
270
+			while ( j-- ) {
271
+				handleObj = handlers[ j ];
272
+
273
+				if ( ( mappedTypes || origType === handleObj.origType ) &&
274
+					( !handler || handler.guid === handleObj.guid ) &&
275
+					( !tmp || tmp.test( handleObj.namespace ) ) &&
276
+					( !selector || selector === handleObj.selector ||
277
+						selector === "**" && handleObj.selector ) ) {
278
+					handlers.splice( j, 1 );
279
+
280
+					if ( handleObj.selector ) {
281
+						handlers.delegateCount--;
282
+					}
283
+					if ( special.remove ) {
284
+						special.remove.call( elem, handleObj );
285
+					}
286
+				}
287
+			}
288
+
289
+			// Remove generic event handler if we removed something and no more handlers exist
290
+			// (avoids potential for endless recursion during removal of special event handlers)
291
+			if ( origCount && !handlers.length ) {
292
+				if ( !special.teardown ||
293
+					special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
294
+
295
+					jQuery.removeEvent( elem, type, elemData.handle );
296
+				}
297
+
298
+				delete events[ type ];
299
+			}
300
+		}
301
+
302
+		// Remove data and the expando if it's no longer used
303
+		if ( jQuery.isEmptyObject( events ) ) {
304
+			dataPriv.remove( elem, "handle events" );
305
+		}
306
+	},
307
+
308
+	dispatch: function( nativeEvent ) {
309
+
310
+		// Make a writable jQuery.Event from the native event object
311
+		var event = jQuery.event.fix( nativeEvent );
312
+
313
+		var i, j, ret, matched, handleObj, handlerQueue,
314
+			args = new Array( arguments.length ),
315
+			handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
316
+			special = jQuery.event.special[ event.type ] || {};
317
+
318
+		// Use the fix-ed jQuery.Event rather than the (read-only) native event
319
+		args[ 0 ] = event;
320
+
321
+		for ( i = 1; i < arguments.length; i++ ) {
322
+			args[ i ] = arguments[ i ];
323
+		}
324
+
325
+		event.delegateTarget = this;
326
+
327
+		// Call the preDispatch hook for the mapped type, and let it bail if desired
328
+		if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
329
+			return;
330
+		}
331
+
332
+		// Determine handlers
333
+		handlerQueue = jQuery.event.handlers.call( this, event, handlers );
334
+
335
+		// Run delegates first; they may want to stop propagation beneath us
336
+		i = 0;
337
+		while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
338
+			event.currentTarget = matched.elem;
339
+
340
+			j = 0;
341
+			while ( ( handleObj = matched.handlers[ j++ ] ) &&
342
+				!event.isImmediatePropagationStopped() ) {
343
+
344
+				// If the event is namespaced, then each handler is only invoked if it is
345
+				// specially universal or its namespaces are a superset of the event's.
346
+				if ( !event.rnamespace || handleObj.namespace === false ||
347
+					event.rnamespace.test( handleObj.namespace ) ) {
348
+
349
+					event.handleObj = handleObj;
350
+					event.data = handleObj.data;
351
+
352
+					ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
353
+						handleObj.handler ).apply( matched.elem, args );
354
+
355
+					if ( ret !== undefined ) {
356
+						if ( ( event.result = ret ) === false ) {
357
+							event.preventDefault();
358
+							event.stopPropagation();
359
+						}
360
+					}
361
+				}
362
+			}
363
+		}
364
+
365
+		// Call the postDispatch hook for the mapped type
366
+		if ( special.postDispatch ) {
367
+			special.postDispatch.call( this, event );
368
+		}
369
+
370
+		return event.result;
371
+	},
372
+
373
+	handlers: function( event, handlers ) {
374
+		var i, handleObj, sel, matchedHandlers, matchedSelectors,
375
+			handlerQueue = [],
376
+			delegateCount = handlers.delegateCount,
377
+			cur = event.target;
378
+
379
+		// Find delegate handlers
380
+		if ( delegateCount &&
381
+
382
+			// Support: IE <=9
383
+			// Black-hole SVG <use> instance trees (trac-13180)
384
+			cur.nodeType &&
385
+
386
+			// Support: Firefox <=42
387
+			// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
388
+			// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
389
+			// Support: IE 11 only
390
+			// ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
391
+			!( event.type === "click" && event.button >= 1 ) ) {
392
+
393
+			for ( ; cur !== this; cur = cur.parentNode || this ) {
394
+
395
+				// Don't check non-elements (#13208)
396
+				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
397
+				if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
398
+					matchedHandlers = [];
399
+					matchedSelectors = {};
400
+					for ( i = 0; i < delegateCount; i++ ) {
401
+						handleObj = handlers[ i ];
402
+
403
+						// Don't conflict with Object.prototype properties (#13203)
404
+						sel = handleObj.selector + " ";
405
+
406
+						if ( matchedSelectors[ sel ] === undefined ) {
407
+							matchedSelectors[ sel ] = handleObj.needsContext ?
408
+								jQuery( sel, this ).index( cur ) > -1 :
409
+								jQuery.find( sel, this, null, [ cur ] ).length;
410
+						}
411
+						if ( matchedSelectors[ sel ] ) {
412
+							matchedHandlers.push( handleObj );
413
+						}
414
+					}
415
+					if ( matchedHandlers.length ) {
416
+						handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
417
+					}
418
+				}
419
+			}
420
+		}
421
+
422
+		// Add the remaining (directly-bound) handlers
423
+		cur = this;
424
+		if ( delegateCount < handlers.length ) {
425
+			handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
426
+		}
427
+
428
+		return handlerQueue;
429
+	},
430
+
431
+	addProp: function( name, hook ) {
432
+		Object.defineProperty( jQuery.Event.prototype, name, {
433
+			enumerable: true,
434
+			configurable: true,
435
+
436
+			get: isFunction( hook ) ?
437
+				function() {
438
+					if ( this.originalEvent ) {
439
+							return hook( this.originalEvent );
440
+					}
441
+				} :
442
+				function() {
443
+					if ( this.originalEvent ) {
444
+							return this.originalEvent[ name ];
445
+					}
446
+				},
447
+
448
+			set: function( value ) {
449
+				Object.defineProperty( this, name, {
450
+					enumerable: true,
451
+					configurable: true,
452
+					writable: true,
453
+					value: value
454
+				} );
455
+			}
456
+		} );
457
+	},
458
+
459
+	fix: function( originalEvent ) {
460
+		return originalEvent[ jQuery.expando ] ?
461
+			originalEvent :
462
+			new jQuery.Event( originalEvent );
463
+	},
464
+
465
+	special: {
466
+		load: {
467
+
468
+			// Prevent triggered image.load events from bubbling to window.load
469
+			noBubble: true
470
+		},
471
+		click: {
472
+
473
+			// Utilize native event to ensure correct state for checkable inputs
474
+			setup: function( data ) {
475
+
476
+				// For mutual compressibility with _default, replace `this` access with a local var.
477
+				// `|| data` is dead code meant only to preserve the variable through minification.
478
+				var el = this || data;
479
+
480
+				// Claim the first handler
481
+				if ( rcheckableType.test( el.type ) &&
482
+					el.click && nodeName( el, "input" ) ) {
483
+
484
+					// dataPriv.set( el, "click", ... )
485
+					leverageNative( el, "click", returnTrue );
486
+				}
487
+
488
+				// Return false to allow normal processing in the caller
489
+				return false;
490
+			},
491
+			trigger: function( data ) {
492
+
493
+				// For mutual compressibility with _default, replace `this` access with a local var.
494
+				// `|| data` is dead code meant only to preserve the variable through minification.
495
+				var el = this || data;
496
+
497
+				// Force setup before triggering a click
498
+				if ( rcheckableType.test( el.type ) &&
499
+					el.click && nodeName( el, "input" ) ) {
500
+
501
+					leverageNative( el, "click" );
502
+				}
503
+
504
+				// Return non-false to allow normal event-path propagation
505
+				return true;
506
+			},
507
+
508
+			// For cross-browser consistency, suppress native .click() on links
509
+			// Also prevent it if we're currently inside a leveraged native-event stack
510
+			_default: function( event ) {
511
+				var target = event.target;
512
+				return rcheckableType.test( target.type ) &&
513
+					target.click && nodeName( target, "input" ) &&
514
+					dataPriv.get( target, "click" ) ||
515
+					nodeName( target, "a" );
516
+			}
517
+		},
518
+
519
+		beforeunload: {
520
+			postDispatch: function( event ) {
521
+
522
+				// Support: Firefox 20+
523
+				// Firefox doesn't alert if the returnValue field is not set.
524
+				if ( event.result !== undefined && event.originalEvent ) {
525
+					event.originalEvent.returnValue = event.result;
526
+				}
527
+			}
528
+		}
529
+	}
530
+};
531
+
532
+// Ensure the presence of an event listener that handles manually-triggered
533
+// synthetic events by interrupting progress until reinvoked in response to
534
+// *native* events that it fires directly, ensuring that state changes have
535
+// already occurred before other listeners are invoked.
536
+function leverageNative( el, type, expectSync ) {
537
+
538
+	// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
539
+	if ( !expectSync ) {
540
+		if ( dataPriv.get( el, type ) === undefined ) {
541
+			jQuery.event.add( el, type, returnTrue );
542
+		}
543
+		return;
544
+	}
545
+
546
+	// Register the controller as a special universal handler for all event namespaces
547
+	dataPriv.set( el, type, false );
548
+	jQuery.event.add( el, type, {
549
+		namespace: false,
550
+		handler: function( event ) {
551
+			var notAsync, result,
552
+				saved = dataPriv.get( this, type );
553
+
554
+			if ( ( event.isTrigger & 1 ) && this[ type ] ) {
555
+
556
+				// Interrupt processing of the outer synthetic .trigger()ed event
557
+				// Saved data should be false in such cases, but might be a leftover capture object
558
+				// from an async native handler (gh-4350)
559
+				if ( !saved.length ) {
560
+
561
+					// Store arguments for use when handling the inner native event
562
+					// There will always be at least one argument (an event object), so this array
563
+					// will not be confused with a leftover capture object.
564
+					saved = slice.call( arguments );
565
+					dataPriv.set( this, type, saved );
566
+
567
+					// Trigger the native event and capture its result
568
+					// Support: IE <=9 - 11+
569
+					// focus() and blur() are asynchronous
570
+					notAsync = expectSync( this, type );
571
+					this[ type ]();
572
+					result = dataPriv.get( this, type );
573
+					if ( saved !== result || notAsync ) {
574
+						dataPriv.set( this, type, false );
575
+					} else {
576
+						result = {};
577
+					}
578
+					if ( saved !== result ) {
579
+
580
+						// Cancel the outer synthetic event
581
+						event.stopImmediatePropagation();
582
+						event.preventDefault();
583
+						return result.value;
584
+					}
585
+
586
+				// If this is an inner synthetic event for an event with a bubbling surrogate
587
+				// (focus or blur), assume that the surrogate already propagated from triggering the
588
+				// native event and prevent that from happening again here.
589
+				// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the
590
+				// bubbling surrogate propagates *after* the non-bubbling base), but that seems
591
+				// less bad than duplication.
592
+				} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {
593
+					event.stopPropagation();
594
+				}
595
+
596
+			// If this is a native event triggered above, everything is now in order
597
+			// Fire an inner synthetic event with the original arguments
598
+			} else if ( saved.length ) {
599
+
600
+				// ...and capture the result
601
+				dataPriv.set( this, type, {
602
+					value: jQuery.event.trigger(
603
+
604
+						// Support: IE <=9 - 11+
605
+						// Extend with the prototype to reset the above stopImmediatePropagation()
606
+						jQuery.extend( saved[ 0 ], jQuery.Event.prototype ),
607
+						saved.slice( 1 ),
608
+						this
609
+					)
610
+				} );
611
+
612
+				// Abort handling of the native event
613
+				event.stopImmediatePropagation();
614
+			}
615
+		}
616
+	} );
617
+}
618
+
619
+jQuery.removeEvent = function( elem, type, handle ) {
620
+
621
+	// This "if" is needed for plain objects
622
+	if ( elem.removeEventListener ) {
623
+		elem.removeEventListener( type, handle );
624
+	}
625
+};
626
+
627
+jQuery.Event = function( src, props ) {
628
+
629
+	// Allow instantiation without the 'new' keyword
630
+	if ( !( this instanceof jQuery.Event ) ) {
631
+		return new jQuery.Event( src, props );
632
+	}
633
+
634
+	// Event object
635
+	if ( src && src.type ) {
636
+		this.originalEvent = src;
637
+		this.type = src.type;
638
+
639
+		// Events bubbling up the document may have been marked as prevented
640
+		// by a handler lower down the tree; reflect the correct value.
641
+		this.isDefaultPrevented = src.defaultPrevented ||
642
+				src.defaultPrevented === undefined &&
643
+
644
+				// Support: Android <=2.3 only
645
+				src.returnValue === false ?
646
+			returnTrue :
647
+			returnFalse;
648
+
649
+		// Create target properties
650
+		// Support: Safari <=6 - 7 only
651
+		// Target should not be a text node (#504, #13143)
652
+		this.target = ( src.target && src.target.nodeType === 3 ) ?
653
+			src.target.parentNode :
654
+			src.target;
655
+
656
+		this.currentTarget = src.currentTarget;
657
+		this.relatedTarget = src.relatedTarget;
658
+
659
+	// Event type
660
+	} else {
661
+		this.type = src;
662
+	}
663
+
664
+	// Put explicitly provided properties onto the event object
665
+	if ( props ) {
666
+		jQuery.extend( this, props );
667
+	}
668
+
669
+	// Create a timestamp if incoming event doesn't have one
670
+	this.timeStamp = src && src.timeStamp || Date.now();
671
+
672
+	// Mark it as fixed
673
+	this[ jQuery.expando ] = true;
674
+};
675
+
676
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
677
+// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
678
+jQuery.Event.prototype = {
679
+	constructor: jQuery.Event,
680
+	isDefaultPrevented: returnFalse,
681
+	isPropagationStopped: returnFalse,
682
+	isImmediatePropagationStopped: returnFalse,
683
+	isSimulated: false,
684
+
685
+	preventDefault: function() {
686
+		var e = this.originalEvent;
687
+
688
+		this.isDefaultPrevented = returnTrue;
689
+
690
+		if ( e && !this.isSimulated ) {
691
+			e.preventDefault();
692
+		}
693
+	},
694
+	stopPropagation: function() {
695
+		var e = this.originalEvent;
696
+
697
+		this.isPropagationStopped = returnTrue;
698
+
699
+		if ( e && !this.isSimulated ) {
700
+			e.stopPropagation();
701
+		}
702
+	},
703
+	stopImmediatePropagation: function() {
704
+		var e = this.originalEvent;
705
+
706
+		this.isImmediatePropagationStopped = returnTrue;
707
+
708
+		if ( e && !this.isSimulated ) {
709
+			e.stopImmediatePropagation();
710
+		}
711
+
712
+		this.stopPropagation();
713
+	}
714
+};
715
+
716
+// Includes all common event props including KeyEvent and MouseEvent specific props
717
+jQuery.each( {
718
+	altKey: true,
719
+	bubbles: true,
720
+	cancelable: true,
721
+	changedTouches: true,
722
+	ctrlKey: true,
723
+	detail: true,
724
+	eventPhase: true,
725
+	metaKey: true,
726
+	pageX: true,
727
+	pageY: true,
728
+	shiftKey: true,
729
+	view: true,
730
+	"char": true,
731
+	code: true,
732
+	charCode: true,
733
+	key: true,
734
+	keyCode: true,
735
+	button: true,
736
+	buttons: true,
737
+	clientX: true,
738
+	clientY: true,
739
+	offsetX: true,
740
+	offsetY: true,
741
+	pointerId: true,
742
+	pointerType: true,
743
+	screenX: true,
744
+	screenY: true,
745
+	targetTouches: true,
746
+	toElement: true,
747
+	touches: true,
748
+
749
+	which: function( event ) {
750
+		var button = event.button;
751
+
752
+		// Add which for key events
753
+		if ( event.which == null && rkeyEvent.test( event.type ) ) {
754
+			return event.charCode != null ? event.charCode : event.keyCode;
755
+		}
756
+
757
+		// Add which for click: 1 === left; 2 === middle; 3 === right
758
+		if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
759
+			if ( button & 1 ) {
760
+				return 1;
761
+			}
762
+
763
+			if ( button & 2 ) {
764
+				return 3;
765
+			}
766
+
767
+			if ( button & 4 ) {
768
+				return 2;
769
+			}
770
+
771
+			return 0;
772
+		}
773
+
774
+		return event.which;
775
+	}
776
+}, jQuery.event.addProp );
777
+
778
+jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) {
779
+	jQuery.event.special[ type ] = {
780
+
781
+		// Utilize native event if possible so blur/focus sequence is correct
782
+		setup: function() {
783
+
784
+			// Claim the first handler
785
+			// dataPriv.set( this, "focus", ... )
786
+			// dataPriv.set( this, "blur", ... )
787
+			leverageNative( this, type, expectSync );
788
+
789
+			// Return false to allow normal processing in the caller
790
+			return false;
791
+		},
792
+		trigger: function() {
793
+
794
+			// Force setup before trigger
795
+			leverageNative( this, type );
796
+
797
+			// Return non-false to allow normal event-path propagation
798
+			return true;
799
+		},
800
+
801
+		delegateType: delegateType
802
+	};
803
+} );
804
+
805
+// Create mouseenter/leave events using mouseover/out and event-time checks
806
+// so that event delegation works in jQuery.
807
+// Do the same for pointerenter/pointerleave and pointerover/pointerout
808
+//
809
+// Support: Safari 7 only
810
+// Safari sends mouseenter too often; see:
811
+// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
812
+// for the description of the bug (it existed in older Chrome versions as well).
813
+jQuery.each( {
814
+	mouseenter: "mouseover",
815
+	mouseleave: "mouseout",
816
+	pointerenter: "pointerover",
817
+	pointerleave: "pointerout"
818
+}, function( orig, fix ) {
819
+	jQuery.event.special[ orig ] = {
820
+		delegateType: fix,
821
+		bindType: fix,
822
+
823
+		handle: function( event ) {
824
+			var ret,
825
+				target = this,
826
+				related = event.relatedTarget,
827
+				handleObj = event.handleObj;
828
+
829
+			// For mouseenter/leave call the handler if related is outside the target.
830
+			// NB: No relatedTarget if the mouse left/entered the browser window
831
+			if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
832
+				event.type = handleObj.origType;
833
+				ret = handleObj.handler.apply( this, arguments );
834
+				event.type = fix;
835
+			}
836
+			return ret;
837
+		}
838
+	};
839
+} );
840
+
841
+jQuery.fn.extend( {
842
+
843
+	on: function( types, selector, data, fn ) {
844
+		return on( this, types, selector, data, fn );
845
+	},
846
+	one: function( types, selector, data, fn ) {
847
+		return on( this, types, selector, data, fn, 1 );
848
+	},
849
+	off: function( types, selector, fn ) {
850
+		var handleObj, type;
851
+		if ( types && types.preventDefault && types.handleObj ) {
852
+
853
+			// ( event )  dispatched jQuery.Event
854
+			handleObj = types.handleObj;
855
+			jQuery( types.delegateTarget ).off(
856
+				handleObj.namespace ?
857
+					handleObj.origType + "." + handleObj.namespace :
858
+					handleObj.origType,
859
+				handleObj.selector,
860
+				handleObj.handler
861
+			);
862
+			return this;
863
+		}
864
+		if ( typeof types === "object" ) {
865
+
866
+			// ( types-object [, selector] )
867
+			for ( type in types ) {
868
+				this.off( type, selector, types[ type ] );
869
+			}
870
+			return this;
871
+		}
872
+		if ( selector === false || typeof selector === "function" ) {
873
+
874
+			// ( types [, fn] )
875
+			fn = selector;
876
+			selector = undefined;
877
+		}
878
+		if ( fn === false ) {
879
+			fn = returnFalse;
880
+		}
881
+		return this.each( function() {
882
+			jQuery.event.remove( this, types, fn, selector );
883
+		} );
884
+	}
885
+} );
886
+
887
+return jQuery;
888
+} );

+ 22
- 0
www/jquery/src/event/ajax.js View File

@@ -0,0 +1,22 @@
1
+define( [
2
+	"../core",
3
+	"../event"
4
+], function( jQuery ) {
5
+
6
+"use strict";
7
+
8
+// Attach a bunch of functions for handling common AJAX events
9
+jQuery.each( [
10
+	"ajaxStart",
11
+	"ajaxStop",
12
+	"ajaxComplete",
13
+	"ajaxError",
14
+	"ajaxSuccess",
15
+	"ajaxSend"
16
+], function( i, type ) {
17
+	jQuery.fn[ type ] = function( fn ) {
18
+		return this.on( type, fn );
19
+	};
20
+} );
21
+
22
+} );

+ 29
- 0
www/jquery/src/event/alias.js View File

@@ -0,0 +1,29 @@
1
+define( [
2
+	"../core",
3
+
4
+	"../event",
5
+	"./trigger"
6
+], function( jQuery ) {
7
+
8
+"use strict";
9
+
10
+jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
11
+	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
12
+	"change select submit keydown keypress keyup contextmenu" ).split( " " ),
13
+	function( i, name ) {
14
+
15
+	// Handle event binding
16
+	jQuery.fn[ name ] = function( data, fn ) {
17
+		return arguments.length > 0 ?
18
+			this.on( name, null, data, fn ) :
19
+			this.trigger( name );
20
+	};
21
+} );
22
+
23
+jQuery.fn.extend( {
24
+	hover: function( fnOver, fnOut ) {
25
+		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
26
+	}
27
+} );
28
+
29
+} );

+ 55
- 0
www/jquery/src/event/focusin.js View File

@@ -0,0 +1,55 @@
1
+define( [
2
+	"../core",
3
+	"../data/var/dataPriv",
4
+	"./support",
5
+
6
+	"../event",
7
+	"./trigger"
8
+], function( jQuery, dataPriv, support ) {
9
+
10
+"use strict";
11
+
12
+// Support: Firefox <=44
13
+// Firefox doesn't have focus(in | out) events
14
+// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
15
+//
16
+// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
17
+// focus(in | out) events fire after focus & blur events,
18
+// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
19
+// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
20
+if ( !support.focusin ) {
21
+	jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
22
+
23
+		// Attach a single capturing handler on the document while someone wants focusin/focusout
24
+		var handler = function( event ) {
25
+			jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
26
+		};
27
+
28
+		jQuery.event.special[ fix ] = {
29
+			setup: function() {
30
+				var doc = this.ownerDocument || this,
31
+					attaches = dataPriv.access( doc, fix );
32
+
33
+				if ( !attaches ) {
34
+					doc.addEventListener( orig, handler, true );
35
+				}
36
+				dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
37
+			},
38
+			teardown: function() {
39
+				var doc = this.ownerDocument || this,
40
+					attaches = dataPriv.access( doc, fix ) - 1;
41
+
42
+				if ( !attaches ) {
43
+					doc.removeEventListener( orig, handler, true );
44
+					dataPriv.remove( doc, fix );
45
+
46
+				} else {
47
+					dataPriv.access( doc, fix, attaches );
48
+				}
49
+			}
50
+		};
51
+	} );
52
+}
53
+
54
+return jQuery;
55
+} );

+ 11
- 0
www/jquery/src/event/support.js View File

@@ -0,0 +1,11 @@
1
+define( [
2
+	"../var/support"
3
+], function( support ) {
4
+
5
+"use strict";
6
+
7
+support.focusin = "onfocusin" in window;
8
+
9
+return support;
10
+
11
+} );

+ 199
- 0
www/jquery/src/event/trigger.js View File

@@ -0,0 +1,199 @@
1
+define( [
2
+	"../core",
3
+	"../var/document",
4
+	"../data/var/dataPriv",
5
+	"../data/var/acceptData",
6
+	"../var/hasOwn",
7
+	"../var/isFunction",
8
+	"../var/isWindow",
9
+	"../event"
10
+], function( jQuery, document, dataPriv, acceptData, hasOwn, isFunction, isWindow ) {
11
+
12
+"use strict";
13
+
14
+var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
15
+	stopPropagationCallback = function( e ) {
16
+		e.stopPropagation();
17
+	};
18
+
19
+jQuery.extend( jQuery.event, {
20
+
21
+	trigger: function( event, data, elem, onlyHandlers ) {
22
+
23
+		var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
24
+			eventPath = [ elem || document ],
25
+			type = hasOwn.call( event, "type" ) ? event.type : event,
26
+			namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
27
+
28
+		cur = lastElement = tmp = elem = elem || document;
29
+
30
+		// Don't do events on text and comment nodes
31
+		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
32
+			return;
33
+		}
34
+
35
+		// focus/blur morphs to focusin/out; ensure we're not firing them right now
36
+		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
37
+			return;
38
+		}
39
+
40
+		if ( type.indexOf( "." ) > -1 ) {
41
+
42
+			// Namespaced trigger; create a regexp to match event type in handle()
43
+			namespaces = type.split( "." );
44
+			type = namespaces.shift();
45
+			namespaces.sort();
46
+		}
47
+		ontype = type.indexOf( ":" ) < 0 && "on" + type;
48
+
49
+		// Caller can pass in a jQuery.Event object, Object, or just an event type string
50
+		event = event[ jQuery.expando ] ?
51
+			event :
52
+			new jQuery.Event( type, typeof event === "object" && event );
53
+
54
+		// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
55
+		event.isTrigger = onlyHandlers ? 2 : 3;
56
+		event.namespace = namespaces.join( "." );
57
+		event.rnamespace = event.namespace ?
58
+			new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
59
+			null;
60
+
61
+		// Clean up the event in case it is being reused
62
+		event.result = undefined;
63
+		if ( !event.target ) {
64
+			event.target = elem;
65
+		}
66
+
67
+		// Clone any incoming data and prepend the event, creating the handler arg list
68
+		data = data == null ?
69
+			[ event ] :
70
+			jQuery.makeArray( data, [ event ] );
71
+
72
+		// Allow special events to draw outside the lines
73
+		special = jQuery.event.special[ type ] || {};
74
+		if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
75
+			return;
76
+		}
77
+
78
+		// Determine event propagation path in advance, per W3C events spec (#9951)
79
+		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
80
+		if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {
81
+
82
+			bubbleType = special.delegateType || type;
83
+			if ( !rfocusMorph.test( bubbleType + type ) ) {
84
+				cur = cur.parentNode;
85
+			}
86
+			for ( ; cur; cur = cur.parentNode ) {
87
+				eventPath.push( cur );
88
+				tmp = cur;
89
+			}
90
+
91
+			// Only add window if we got to document (e.g., not plain obj or detached DOM)
92
+			if ( tmp === ( elem.ownerDocument || document ) ) {
93
+				eventPath.push( tmp.defaultView || tmp.parentWindow || window );
94
+			}
95
+		}
96
+
97
+		// Fire handlers on the event path
98
+		i = 0;
99
+		while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
100
+			lastElement = cur;
101
+			event.type = i > 1 ?
102
+				bubbleType :
103
+				special.bindType || type;
104
+
105
+			// jQuery handler
106
+			handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
107
+				dataPriv.get( cur, "handle" );
108
+			if ( handle ) {
109
+				handle.apply( cur, data );
110
+			}
111
+
112
+			// Native handler
113
+			handle = ontype && cur[ ontype ];
114
+			if ( handle && handle.apply && acceptData( cur ) ) {
115
+				event.result = handle.apply( cur, data );
116
+				if ( event.result === false ) {
117
+					event.preventDefault();
118
+				}
119
+			}
120
+		}
121
+		event.type = type;
122
+
123
+		// If nobody prevented the default action, do it now
124
+		if ( !onlyHandlers && !event.isDefaultPrevented() ) {
125
+
126
+			if ( ( !special._default ||
127
+				special._default.apply( eventPath.pop(), data ) === false ) &&
128
+				acceptData( elem ) ) {
129
+
130
+				// Call a native DOM method on the target with the same name as the event.
131
+				// Don't do default actions on window, that's where global variables be (#6170)
132
+				if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {
133
+
134
+					// Don't re-trigger an onFOO event when we call its FOO() method
135
+					tmp = elem[ ontype ];
136
+
137
+					if ( tmp ) {
138
+						elem[ ontype ] = null;
139
+					}
140
+
141
+					// Prevent re-triggering of the same event, since we already bubbled it above
142
+					jQuery.event.triggered = type;
143
+
144
+					if ( event.isPropagationStopped() ) {
145
+						lastElement.addEventListener( type, stopPropagationCallback );
146
+					}
147
+
148
+					elem[ type ]();
149
+
150
+					if ( event.isPropagationStopped() ) {
151
+						lastElement.removeEventListener( type, stopPropagationCallback );
152
+					}
153
+
154
+					jQuery.event.triggered = undefined;
155
+
156
+					if ( tmp ) {
157
+						elem[ ontype ] = tmp;
158
+					}
159
+				}
160
+			}
161
+		}
162
+
163
+		return event.result;
164
+	},
165
+
166
+	// Piggyback on a donor event to simulate a different one
167
+	// Used only for `focus(in | out)` events
168
+	simulate: function( type, elem, event ) {
169
+		var e = jQuery.extend(
170
+			new jQuery.Event(),
171
+			event,
172
+			{
173
+				type: type,
174
+				isSimulated: true
175
+			}
176
+		);
177
+
178
+		jQuery.event.trigger( e, null, elem );
179
+	}
180
+
181
+} );
182
+
183
+jQuery.fn.extend( {
184
+
185
+	trigger: function( type, data ) {
186
+		return this.each( function() {
187
+			jQuery.event.trigger( type, data, this );
188
+		} );
189
+	},
190
+	triggerHandler: function( type, data ) {
191
+		var elem = this[ 0 ];
192
+		if ( elem ) {
193
+			return jQuery.event.trigger( type, data, elem, true );
194
+		}
195
+	}
196
+} );
197
+
198
+return jQuery;
199
+} );

+ 26
- 0
www/jquery/src/exports/amd.js View File

@@ -0,0 +1,26 @@
1
+define( [
2
+	"../core"
3
+], function( jQuery ) {
4
+
5
+"use strict";
6
+
7
+// Register as a named AMD module, since jQuery can be concatenated with other
8
+// files that may use define, but not via a proper concatenation script that
9
+// understands anonymous AMD modules. A named AMD is safest and most robust
10
+// way to register. Lowercase jquery is used because AMD module names are
11
+// derived from file names, and jQuery is normally delivered in a lowercase
12
+// file name. Do this after creating the global so that if an AMD module wants
13
+// to call noConflict to hide this version of jQuery, it will work.
14
+
15
+// Note that for maximum portability, libraries that are not jQuery should
16
+// declare themselves as anonymous modules, and avoid setting a global if an
17
+// AMD loader is present. jQuery is a special case. For more information, see
18
+// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
19
+
20
+if ( typeof define === "function" && define.amd ) {
21
+	define( "jquery", [], function() {
22
+		return jQuery;
23
+	} );
24
+}
25
+
26
+} );

+ 34
- 0
www/jquery/src/exports/global.js View File

@@ -0,0 +1,34 @@
1
+define( [
2
+	"../core"
3
+], function( jQuery, noGlobal ) {
4
+
5
+"use strict";
6
+
7
+var
8
+
9
+	// Map over jQuery in case of overwrite
10
+	_jQuery = window.jQuery,
11
+
12
+	// Map over the $ in case of overwrite
13
+	_$ = window.$;
14
+
15
+jQuery.noConflict = function( deep ) {
16
+	if ( window.$ === jQuery ) {
17
+		window.$ = _$;
18
+	}
19
+
20
+	if ( deep && window.jQuery === jQuery ) {
21
+		window.jQuery = _jQuery;
22
+	}
23
+
24
+	return jQuery;
25
+};
26
+
27
+// Expose jQuery and $ identifiers, even in AMD
28
+// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
29
+// and CommonJS for browser emulators (#13566)
30
+if ( !noGlobal ) {
31
+	window.jQuery = window.$ = jQuery;
32
+}
33
+
34
+} );

+ 40
- 0
www/jquery/src/jquery.js View File

@@ -0,0 +1,40 @@
1
+define( [
2
+	"./core",
3
+	"./selector",
4
+	"./traversing",
5
+	"./callbacks",
6
+	"./deferred",
7
+	"./deferred/exceptionHook",
8
+	"./core/ready",
9
+	"./data",
10
+	"./queue",
11
+	"./queue/delay",
12
+	"./attributes",
13
+	"./event",
14
+	"./event/focusin",
15
+	"./manipulation",
16
+	"./manipulation/_evalUrl",
17
+	"./wrap",
18
+	"./css",
19
+	"./css/hiddenVisibleSelectors",
20
+	"./serialize",
21
+	"./ajax",
22
+	"./ajax/xhr",
23
+	"./ajax/script",
24
+	"./ajax/jsonp",
25
+	"./ajax/load",
26
+	"./event/ajax",
27
+	"./effects",
28
+	"./effects/animatedSelector",
29
+	"./offset",
30
+	"./dimensions",
31
+	"./deprecated",
32
+	"./exports/amd",
33
+	"./exports/global"
34
+], function( jQuery ) {
35
+
36
+"use strict";
37
+
38
+return jQuery;
39
+
40
+} );

+ 489
- 0
www/jquery/src/manipulation.js View File

@@ -0,0 +1,489 @@
1
+define( [
2
+	"./core",
3
+	"./core/isAttached",
4
+	"./var/concat",
5
+	"./var/isFunction",
6
+	"./var/push",
7
+	"./var/rcheckableType",
8
+	"./core/access",
9
+	"./manipulation/var/rtagName",
10
+	"./manipulation/var/rscriptType",
11
+	"./manipulation/wrapMap",
12
+	"./manipulation/getAll",
13
+	"./manipulation/setGlobalEval",
14
+	"./manipulation/buildFragment",
15
+	"./manipulation/support",
16
+
17
+	"./data/var/dataPriv",
18
+	"./data/var/dataUser",
19
+	"./data/var/acceptData",
20
+	"./core/DOMEval",
21
+	"./core/nodeName",
22
+
23
+	"./core/init",
24
+	"./traversing",
25
+	"./selector",
26
+	"./event"
27
+], function( jQuery, isAttached, concat, isFunction, push, rcheckableType,
28
+	access, rtagName, rscriptType,
29
+	wrapMap, getAll, setGlobalEval, buildFragment, support,
30
+	dataPriv, dataUser, acceptData, DOMEval, nodeName ) {
31
+
32
+"use strict";
33
+
34
+var
35
+
36
+	/* eslint-disable max-len */
37
+
38
+	// See https://github.com/eslint/eslint/issues/3229
39
+	rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
40
+
41
+	/* eslint-enable */
42
+
43
+	// Support: IE <=10 - 11, Edge 12 - 13 only
44
+	// In IE/Edge using regex groups here causes severe slowdowns.
45
+	// See https://connect.microsoft.com/IE/feedback/details/1736512/
46
+	rnoInnerhtml = /<script|<style|<link/i,
47
+
48
+	// checked="checked" or checked
49
+	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
50
+	rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
51
+
52
+// Prefer a tbody over its parent table for containing new rows
53
+function manipulationTarget( elem, content ) {
54
+	if ( nodeName( elem, "table" ) &&
55
+		nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
56
+
57
+		return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
58
+	}
59
+
60
+	return elem;
61
+}
62
+
63
+// Replace/restore the type attribute of script elements for safe DOM manipulation
64
+function disableScript( elem ) {
65
+	elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
66
+	return elem;
67
+}
68
+function restoreScript( elem ) {
69
+	if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) {
70
+		elem.type = elem.type.slice( 5 );
71
+	} else {
72
+		elem.removeAttribute( "type" );
73
+	}
74
+
75
+	return elem;
76
+}
77
+
78
+function cloneCopyEvent( src, dest ) {
79
+	var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
80
+
81
+	if ( dest.nodeType !== 1 ) {
82
+		return;
83
+	}
84
+
85
+	// 1. Copy private data: events, handlers, etc.
86
+	if ( dataPriv.hasData( src ) ) {
87
+		pdataOld = dataPriv.access( src );
88
+		pdataCur = dataPriv.set( dest, pdataOld );
89
+		events = pdataOld.events;
90
+
91
+		if ( events ) {
92
+			delete pdataCur.handle;
93
+			pdataCur.events = {};
94
+
95
+			for ( type in events ) {
96
+				for ( i = 0, l = events[ type ].length; i < l; i++ ) {
97
+					jQuery.event.add( dest, type, events[ type ][ i ] );
98
+				}
99
+			}
100
+		}
101
+	}
102
+
103
+	// 2. Copy user data
104
+	if ( dataUser.hasData( src ) ) {
105
+		udataOld = dataUser.access( src );
106
+		udataCur = jQuery.extend( {}, udataOld );
107
+
108
+		dataUser.set( dest, udataCur );
109
+	}
110
+}
111
+
112
+// Fix IE bugs, see support tests
113
+function fixInput( src, dest ) {
114
+	var nodeName = dest.nodeName.toLowerCase();
115
+
116
+	// Fails to persist the checked state of a cloned checkbox or radio button.
117
+	if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
118
+		dest.checked = src.checked;
119
+
120
+	// Fails to return the selected option to the default selected state when cloning options
121
+	} else if ( nodeName === "input" || nodeName === "textarea" ) {
122
+		dest.defaultValue = src.defaultValue;
123
+	}
124
+}
125
+
126
+function domManip( collection, args, callback, ignored ) {
127
+
128
+	// Flatten any nested arrays
129
+	args = concat.apply( [], args );
130
+
131
+	var fragment, first, scripts, hasScripts, node, doc,
132
+		i = 0,
133
+		l = collection.length,
134
+		iNoClone = l - 1,
135
+		value = args[ 0 ],
136
+		valueIsFunction = isFunction( value );
137
+
138
+	// We can't cloneNode fragments that contain checked, in WebKit
139
+	if ( valueIsFunction ||
140
+			( l > 1 && typeof value === "string" &&
141
+				!support.checkClone && rchecked.test( value ) ) ) {
142
+		return collection.each( function( index ) {
143
+			var self = collection.eq( index );
144
+			if ( valueIsFunction ) {
145
+				args[ 0 ] = value.call( this, index, self.html() );
146
+			}
147
+			domManip( self, args, callback, ignored );
148
+		} );
149
+	}
150
+
151
+	if ( l ) {
152
+		fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
153
+		first = fragment.firstChild;
154
+
155
+		if ( fragment.childNodes.length === 1 ) {
156
+			fragment = first;
157
+		}
158
+
159
+		// Require either new content or an interest in ignored elements to invoke the callback
160
+		if ( first || ignored ) {
161
+			scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
162
+			hasScripts = scripts.length;
163
+
164
+			// Use the original fragment for the last item
165
+			// instead of the first because it can end up
166
+			// being emptied incorrectly in certain situations (#8070).
167
+			for ( ; i < l; i++ ) {
168
+				node = fragment;
169
+
170
+				if ( i !== iNoClone ) {
171
+					node = jQuery.clone( node, true, true );
172
+
173
+					// Keep references to cloned scripts for later restoration
174
+					if ( hasScripts ) {
175
+
176
+						// Support: Android <=4.0 only, PhantomJS 1 only
177
+						// push.apply(_, arraylike) throws on ancient WebKit
178
+						jQuery.merge( scripts, getAll( node, "script" ) );
179
+					}
180
+				}
181
+
182
+				callback.call( collection[ i ], node, i );
183
+			}
184
+
185
+			if ( hasScripts ) {
186
+				doc = scripts[ scripts.length - 1 ].ownerDocument;
187
+
188
+				// Reenable scripts
189
+				jQuery.map( scripts, restoreScript );
190
+
191
+				// Evaluate executable scripts on first document insertion
192
+				for ( i = 0; i < hasScripts; i++ ) {
193
+					node = scripts[ i ];
194
+					if ( rscriptType.test( node.type || "" ) &&
195
+						!dataPriv.access( node, "globalEval" ) &&
196
+						jQuery.contains( doc, node ) ) {
197
+
198
+						if ( node.src && ( node.type || "" ).toLowerCase()  !== "module" ) {
199
+
200
+							// Optional AJAX dependency, but won't run scripts if not present
201
+							if ( jQuery._evalUrl && !node.noModule ) {
202
+								jQuery._evalUrl( node.src, {
203
+									nonce: node.nonce || node.getAttribute( "nonce" )
204
+								} );
205
+							}
206
+						} else {
207
+							DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc );
208
+						}
209
+					}
210
+				}
211
+			}
212
+		}
213
+	}
214
+
215
+	return collection;
216
+}
217
+
218
+function remove( elem, selector, keepData ) {
219
+	var node,
220
+		nodes = selector ? jQuery.filter( selector, elem ) : elem,
221
+		i = 0;
222
+
223
+	for ( ; ( node = nodes[ i ] ) != null; i++ ) {
224
+		if ( !keepData && node.nodeType === 1 ) {
225
+			jQuery.cleanData( getAll( node ) );
226
+		}
227
+
228
+		if ( node.parentNode ) {
229
+			if ( keepData && isAttached( node ) ) {
230
+				setGlobalEval( getAll( node, "script" ) );
231
+			}
232
+			node.parentNode.removeChild( node );
233
+		}
234
+	}
235
+
236
+	return elem;
237
+}
238
+
239
+jQuery.extend( {
240
+	htmlPrefilter: function( html ) {
241
+		return html.replace( rxhtmlTag, "<$1></$2>" );
242
+	},
243
+
244
+	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
245
+		var i, l, srcElements, destElements,
246
+			clone = elem.cloneNode( true ),
247
+			inPage = isAttached( elem );
248
+
249
+		// Fix IE cloning issues
250
+		if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
251
+				!jQuery.isXMLDoc( elem ) ) {
252
+
253
+			// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
254
+			destElements = getAll( clone );
255
+			srcElements = getAll( elem );
256
+
257
+			for ( i = 0, l = srcElements.length; i < l; i++ ) {
258
+				fixInput( srcElements[ i ], destElements[ i ] );
259
+			}
260
+		}
261
+
262
+		// Copy the events from the original to the clone
263
+		if ( dataAndEvents ) {
264
+			if ( deepDataAndEvents ) {
265
+				srcElements = srcElements || getAll( elem );
266
+				destElements = destElements || getAll( clone );
267
+
268
+				for ( i = 0, l = srcElements.length; i < l; i++ ) {
269
+					cloneCopyEvent( srcElements[ i ], destElements[ i ] );
270
+				}
271
+			} else {
272
+				cloneCopyEvent( elem, clone );
273
+			}
274
+		}
275
+
276
+		// Preserve script evaluation history
277
+		destElements = getAll( clone, "script" );
278
+		if ( destElements.length > 0 ) {
279
+			setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
280
+		}
281
+
282
+		// Return the cloned set
283
+		return clone;
284
+	},
285
+
286
+	cleanData: function( elems ) {
287
+		var data, elem, type,
288
+			special = jQuery.event.special,
289
+			i = 0;
290
+
291
+		for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
292
+			if ( acceptData( elem ) ) {
293
+				if ( ( data = elem[ dataPriv.expando ] ) ) {
294
+					if ( data.events ) {
295
+						for ( type in data.events ) {
296
+							if ( special[ type ] ) {
297
+								jQuery.event.remove( elem, type );
298
+
299
+							// This is a shortcut to avoid jQuery.event.remove's overhead
300
+							} else {
301
+								jQuery.removeEvent( elem, type, data.handle );
302
+							}
303
+						}
304
+					}
305
+
306
+					// Support: Chrome <=35 - 45+
307
+					// Assign undefined instead of using delete, see Data#remove
308
+					elem[ dataPriv.expando ] = undefined;
309
+				}
310
+				if ( elem[ dataUser.expando ] ) {
311
+
312
+					// Support: Chrome <=35 - 45+
313
+					// Assign undefined instead of using delete, see Data#remove
314
+					elem[ dataUser.expando ] = undefined;
315
+				}
316
+			}
317
+		}
318
+	}
319
+} );
320
+
321
+jQuery.fn.extend( {
322
+	detach: function( selector ) {
323
+		return remove( this, selector, true );
324
+	},
325
+
326
+	remove: function( selector ) {
327
+		return remove( this, selector );
328
+	},
329
+
330
+	text: function( value ) {
331
+		return access( this, function( value ) {
332
+			return value === undefined ?
333
+				jQuery.text( this ) :
334
+				this.empty().each( function() {
335
+					if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
336
+						this.textContent = value;
337
+					}
338
+				} );
339
+		}, null, value, arguments.length );
340
+	},
341
+
342
+	append: function() {
343
+		return domManip( this, arguments, function( elem ) {
344
+			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
345
+				var target = manipulationTarget( this, elem );
346
+				target.appendChild( elem );
347
+			}
348
+		} );
349
+	},
350
+
351
+	prepend: function() {
352
+		return domManip( this, arguments, function( elem ) {
353
+			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
354
+				var target = manipulationTarget( this, elem );
355
+				target.insertBefore( elem, target.firstChild );
356
+			}
357
+		} );
358
+	},
359
+
360
+	before: function() {
361
+		return domManip( this, arguments, function( elem ) {
362
+			if ( this.parentNode ) {
363
+				this.parentNode.insertBefore( elem, this );
364
+			}
365
+		} );
366
+	},
367
+
368
+	after: function() {
369
+		return domManip( this, arguments, function( elem ) {
370
+			if ( this.parentNode ) {
371
+				this.parentNode.insertBefore( elem, this.nextSibling );
372
+			}
373
+		} );
374
+	},
375
+
376
+	empty: function() {
377
+		var elem,
378
+			i = 0;
379
+
380
+		for ( ; ( elem = this[ i ] ) != null; i++ ) {
381
+			if ( elem.nodeType === 1 ) {
382
+
383
+				// Prevent memory leaks
384
+				jQuery.cleanData( getAll( elem, false ) );
385
+
386
+				// Remove any remaining nodes
387
+				elem.textContent = "";
388
+			}
389
+		}
390
+
391
+		return this;
392
+	},
393
+
394
+	clone: function( dataAndEvents, deepDataAndEvents ) {
395
+		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
396
+		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
397
+
398
+		return this.map( function() {
399
+			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
400
+		} );
401
+	},
402
+
403
+	html: function( value ) {
404
+		return access( this, function( value ) {
405
+			var elem = this[ 0 ] || {},
406
+				i = 0,
407
+				l = this.length;
408
+
409
+			if ( value === undefined && elem.nodeType === 1 ) {
410
+				return elem.innerHTML;
411
+			}
412
+
413
+			// See if we can take a shortcut and just use innerHTML
414
+			if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
415
+				!wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
416
+
417
+				value = jQuery.htmlPrefilter( value );
418
+
419
+				try {
420
+					for ( ; i < l; i++ ) {
421
+						elem = this[ i ] || {};
422
+
423
+						// Remove element nodes and prevent memory leaks
424
+						if ( elem.nodeType === 1 ) {
425
+							jQuery.cleanData( getAll( elem, false ) );
426
+							elem.innerHTML = value;
427
+						}
428
+					}
429
+
430
+					elem = 0;
431
+
432
+				// If using innerHTML throws an exception, use the fallback method
433
+				} catch ( e ) {}
434
+			}
435
+
436
+			if ( elem ) {
437
+				this.empty().append( value );
438
+			}
439
+		}, null, value, arguments.length );
440
+	},
441
+
442
+	replaceWith: function() {
443
+		var ignored = [];
444
+
445
+		// Make the changes, replacing each non-ignored context element with the new content
446
+		return domManip( this, arguments, function( elem ) {
447
+			var parent = this.parentNode;
448
+
449
+			if ( jQuery.inArray( this, ignored ) < 0 ) {
450
+				jQuery.cleanData( getAll( this ) );
451
+				if ( parent ) {
452
+					parent.replaceChild( elem, this );
453
+				}
454
+			}
455
+
456
+		// Force callback invocation
457
+		}, ignored );
458
+	}
459
+} );
460
+
461
+jQuery.each( {
462
+	appendTo: "append",
463
+	prependTo: "prepend",
464
+	insertBefore: "before",
465
+	insertAfter: "after",
466
+	replaceAll: "replaceWith"
467
+}, function( name, original ) {
468
+	jQuery.fn[ name ] = function( selector ) {
469
+		var elems,
470
+			ret = [],
471
+			insert = jQuery( selector ),
472
+			last = insert.length - 1,
473
+			i = 0;
474
+
475
+		for ( ; i <= last; i++ ) {
476
+			elems = i === last ? this : this.clone( true );
477
+			jQuery( insert[ i ] )[ original ]( elems );
478
+
479
+			// Support: Android <=4.0 only, PhantomJS 1 only
480
+			// .get() because push.apply(_, arraylike) throws on ancient WebKit
481
+			push.apply( ret, elems.get() );
482
+		}
483
+
484
+		return this.pushStack( ret );
485
+	};
486
+} );
487
+
488
+return jQuery;
489
+} );

+ 32
- 0
www/jquery/src/manipulation/_evalUrl.js View File

@@ -0,0 +1,32 @@
1
+define( [
2
+	"../ajax"
3
+], function( jQuery ) {
4
+
5
+"use strict";
6
+
7
+jQuery._evalUrl = function( url, options ) {
8
+	return jQuery.ajax( {
9
+		url: url,
10
+
11
+		// Make this explicit, since user can override this through ajaxSetup (#11264)
12
+		type: "GET",
13
+		dataType: "script",
14
+		cache: true,
15
+		async: false,
16
+		global: false,
17
+
18
+		// Only evaluate the response if it is successful (gh-4126)
19
+		// dataFilter is not invoked for failure responses, so using it instead
20
+		// of the default converter is kludgy but it works.
21
+		converters: {
22
+			"text script": function() {}
23
+		},
24
+		dataFilter: function( response ) {
25
+			jQuery.globalEval( response, options );
26
+		}
27
+	} );
28
+};
29
+
30
+return jQuery._evalUrl;
31
+
32
+} );

+ 106
- 0
www/jquery/src/manipulation/buildFragment.js View File

@@ -0,0 +1,106 @@
1
+define( [
2
+	"../core",
3
+	"../core/toType",
4
+	"../core/isAttached",
5
+	"./var/rtagName",
6
+	"./var/rscriptType",
7
+	"./wrapMap",
8
+	"./getAll",
9
+	"./setGlobalEval"
10
+], function( jQuery, toType, isAttached, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
11
+
12
+"use strict";
13
+
14
+var rhtml = /<|&#?\w+;/;
15
+
16
+function buildFragment( elems, context, scripts, selection, ignored ) {
17
+	var elem, tmp, tag, wrap, attached, j,
18
+		fragment = context.createDocumentFragment(),
19
+		nodes = [],
20
+		i = 0,
21
+		l = elems.length;
22
+
23
+	for ( ; i < l; i++ ) {
24
+		elem = elems[ i ];
25
+
26
+		if ( elem || elem === 0 ) {
27
+
28
+			// Add nodes directly
29
+			if ( toType( elem ) === "object" ) {
30
+
31
+				// Support: Android <=4.0 only, PhantomJS 1 only
32
+				// push.apply(_, arraylike) throws on ancient WebKit
33
+				jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
34
+
35
+			// Convert non-html into a text node
36
+			} else if ( !rhtml.test( elem ) ) {
37
+				nodes.push( context.createTextNode( elem ) );
38
+
39
+			// Convert html into DOM nodes
40
+			} else {
41
+				tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
42
+
43
+				// Deserialize a standard representation
44
+				tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
45
+				wrap = wrapMap[ tag ] || wrapMap._default;
46
+				tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
47
+
48
+				// Descend through wrappers to the right content
49
+				j = wrap[ 0 ];
50
+				while ( j-- ) {
51
+					tmp = tmp.lastChild;
52
+				}
53
+
54
+				// Support: Android <=4.0 only, PhantomJS 1 only
55
+				// push.apply(_, arraylike) throws on ancient WebKit
56
+				jQuery.merge( nodes, tmp.childNodes );
57
+
58
+				// Remember the top-level container
59
+				tmp = fragment.firstChild;
60
+
61
+				// Ensure the created nodes are orphaned (#12392)
62
+				tmp.textContent = "";
63
+			}
64
+		}
65
+	}
66
+
67
+	// Remove wrapper from fragment
68
+	fragment.textContent = "";
69
+
70
+	i = 0;
71
+	while ( ( elem = nodes[ i++ ] ) ) {
72
+
73
+		// Skip elements already in the context collection (trac-4087)
74
+		if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
75
+			if ( ignored ) {
76
+				ignored.push( elem );
77
+			}
78
+			continue;
79
+		}
80
+
81
+		attached = isAttached( elem );
82
+
83
+		// Append to fragment
84
+		tmp = getAll( fragment.appendChild( elem ), "script" );
85
+
86
+		// Preserve script evaluation history
87
+		if ( attached ) {
88
+			setGlobalEval( tmp );
89
+		}
90
+
91
+		// Capture executables
92
+		if ( scripts ) {
93
+			j = 0;
94
+			while ( ( elem = tmp[ j++ ] ) ) {
95
+				if ( rscriptType.test( elem.type || "" ) ) {
96
+					scripts.push( elem );
97
+				}
98
+			}
99
+		}
100
+	}
101
+
102
+	return fragment;
103
+}
104
+
105
+return buildFragment;
106
+} );

+ 32
- 0
www/jquery/src/manipulation/getAll.js View File

@@ -0,0 +1,32 @@
1
+define( [
2
+	"../core",
3
+	"../core/nodeName"
4
+], function( jQuery, nodeName ) {
5
+
6
+"use strict";
7
+
8
+function getAll( context, tag ) {
9
+
10
+	// Support: IE <=9 - 11 only
11
+	// Use typeof to avoid zero-argument method invocation on host objects (#15151)
12
+	var ret;
13
+
14
+	if ( typeof context.getElementsByTagName !== "undefined" ) {
15
+		ret = context.getElementsByTagName( tag || "*" );
16
+
17
+	} else if ( typeof context.querySelectorAll !== "undefined" ) {
18
+		ret = context.querySelectorAll( tag || "*" );
19
+
20
+	} else {
21
+		ret = [];
22
+	}
23
+
24
+	if ( tag === undefined || tag && nodeName( context, tag ) ) {
25
+		return jQuery.merge( [ context ], ret );
26
+	}
27
+
28
+	return ret;
29
+}
30
+
31
+return getAll;
32
+} );

+ 22
- 0
www/jquery/src/manipulation/setGlobalEval.js View File

@@ -0,0 +1,22 @@
1
+define( [
2
+	"../data/var/dataPriv"
3
+], function( dataPriv ) {
4
+
5
+"use strict";
6
+
7
+// Mark scripts as having already been evaluated
8
+function setGlobalEval( elems, refElements ) {
9
+	var i = 0,
10
+		l = elems.length;
11
+
12
+	for ( ; i < l; i++ ) {
13
+		dataPriv.set(
14
+			elems[ i ],
15
+			"globalEval",
16
+			!refElements || dataPriv.get( refElements[ i ], "globalEval" )
17
+		);
18
+	}
19
+}
20
+
21
+return setGlobalEval;
22
+} );

+ 35
- 0
www/jquery/src/manipulation/support.js View File

@@ -0,0 +1,35 @@
1
+define( [
2
+	"../var/document",
3
+	"../var/support"
4
+], function( document, support ) {
5
+
6
+"use strict";
7
+
8
+( function() {
9
+	var fragment = document.createDocumentFragment(),
10
+		div = fragment.appendChild( document.createElement( "div" ) ),
11
+		input = document.createElement( "input" );
12
+
13
+	// Support: Android 4.0 - 4.3 only
14
+	// Check state lost if the name is set (#11217)
15
+	// Support: Windows Web Apps (WWA)
16
+	// `name` and `type` must use .setAttribute for WWA (#14901)
17
+	input.setAttribute( "type", "radio" );
18
+	input.setAttribute( "checked", "checked" );
19
+	input.setAttribute( "name", "t" );
20
+
21
+	div.appendChild( input );
22
+
23
+	// Support: Android <=4.1 only
24
+	// Older WebKit doesn't clone checked state correctly in fragments
25
+	support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
26
+
27
+	// Support: IE <=11 only
28
+	// Make sure textarea (and checkbox) defaultValue is properly cloned
29
+	div.innerHTML = "<textarea>x</textarea>";
30
+	support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
31
+} )();
32
+
33
+return support;
34
+
35
+} );

+ 5
- 0
www/jquery/src/manipulation/var/rscriptType.js View File

@@ -0,0 +1,5 @@
1
+define( function() {
2
+	"use strict";
3
+
4
+	return ( /^$|^module$|\/(?:java|ecma)script/i );
5
+} );

+ 8
- 0
www/jquery/src/manipulation/var/rtagName.js View File

@@ -0,0 +1,8 @@
1
+define( function() {
2
+	"use strict";
3
+
4
+	// rtagName captures the name from the first start tag in a string of HTML
5
+	// https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state
6
+	// https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state
7
+	return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
8
+} );

+ 29
- 0
www/jquery/src/manipulation/wrapMap.js View File

@@ -0,0 +1,29 @@
1
+define( function() {
2
+
3
+"use strict";
4
+
5
+// We have to close these tags to support XHTML (#13200)
6
+var wrapMap = {
7
+
8
+	// Support: IE <=9 only
9
+	option: [ 1, "<select multiple='multiple'>", "</select>" ],
10
+
11
+	// XHTML parsers do not magically insert elements in the
12
+	// same way that tag soup parsers do. So we cannot shorten
13
+	// this by omitting <tbody> or other required elements.
14
+	thead: [ 1, "<table>", "</table>" ],
15
+	col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
16
+	tr: [ 2, "<table><tbody>", "</tbody></table>" ],
17
+	td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
18
+
19
+	_default: [ 0, "", "" ]
20
+};
21
+
22
+// Support: IE <=9 only
23
+wrapMap.optgroup = wrapMap.option;
24
+
25
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
26
+wrapMap.th = wrapMap.td;
27
+
28
+return wrapMap;
29
+} );

+ 233
- 0
www/jquery/src/offset.js View File

@@ -0,0 +1,233 @@
1
+define( [
2
+	"./core",
3
+	"./core/access",
4
+	"./var/document",
5
+	"./var/documentElement",
6
+	"./var/isFunction",
7
+	"./css/var/rnumnonpx",
8
+	"./css/curCSS",
9
+	"./css/addGetHookIf",
10
+	"./css/support",
11
+	"./var/isWindow",
12
+	"./core/init",
13
+	"./css",
14
+	"./selector" // contains
15
+], function( jQuery, access, document, documentElement, isFunction, rnumnonpx,
16
+             curCSS, addGetHookIf, support, isWindow ) {
17
+
18
+"use strict";
19
+
20
+jQuery.offset = {
21
+	setOffset: function( elem, options, i ) {
22
+		var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
23
+			position = jQuery.css( elem, "position" ),
24
+			curElem = jQuery( elem ),
25
+			props = {};
26
+
27
+		// Set position first, in-case top/left are set even on static elem
28
+		if ( position === "static" ) {
29
+			elem.style.position = "relative";
30
+		}
31
+
32
+		curOffset = curElem.offset();
33
+		curCSSTop = jQuery.css( elem, "top" );
34
+		curCSSLeft = jQuery.css( elem, "left" );
35
+		calculatePosition = ( position === "absolute" || position === "fixed" ) &&
36
+			( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
37
+
38
+		// Need to be able to calculate position if either
39
+		// top or left is auto and position is either absolute or fixed
40
+		if ( calculatePosition ) {
41
+			curPosition = curElem.position();
42
+			curTop = curPosition.top;
43
+			curLeft = curPosition.left;
44
+
45
+		} else {
46
+			curTop = parseFloat( curCSSTop ) || 0;
47
+			curLeft = parseFloat( curCSSLeft ) || 0;
48
+		}
49
+
50
+		if ( isFunction( options ) ) {
51
+
52
+			// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
53
+			options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
54
+		}
55
+
56
+		if ( options.top != null ) {
57
+			props.top = ( options.top - curOffset.top ) + curTop;
58
+		}
59
+		if ( options.left != null ) {
60
+			props.left = ( options.left - curOffset.left ) + curLeft;
61
+		}
62
+
63
+		if ( "using" in options ) {
64
+			options.using.call( elem, props );
65
+
66
+		} else {
67
+			curElem.css( props );
68
+		}
69
+	}
70
+};
71
+
72
+jQuery.fn.extend( {
73
+
74
+	// offset() relates an element's border box to the document origin
75
+	offset: function( options ) {
76
+
77
+		// Preserve chaining for setter
78
+		if ( arguments.length ) {
79
+			return options === undefined ?
80
+				this :
81
+				this.each( function( i ) {
82
+					jQuery.offset.setOffset( this, options, i );
83
+				} );
84
+		}
85
+
86
+		var rect, win,
87
+			elem = this[ 0 ];
88
+
89
+		if ( !elem ) {
90
+			return;
91
+		}
92
+
93
+		// Return zeros for disconnected and hidden (display: none) elements (gh-2310)
94
+		// Support: IE <=11 only
95
+		// Running getBoundingClientRect on a
96
+		// disconnected node in IE throws an error
97
+		if ( !elem.getClientRects().length ) {
98
+			return { top: 0, left: 0 };
99
+		}
100
+
101
+		// Get document-relative position by adding viewport scroll to viewport-relative gBCR
102
+		rect = elem.getBoundingClientRect();
103
+		win = elem.ownerDocument.defaultView;
104
+		return {
105
+			top: rect.top + win.pageYOffset,
106
+			left: rect.left + win.pageXOffset
107
+		};
108
+	},
109
+
110
+	// position() relates an element's margin box to its offset parent's padding box
111
+	// This corresponds to the behavior of CSS absolute positioning
112
+	position: function() {
113
+		if ( !this[ 0 ] ) {
114
+			return;
115
+		}
116
+
117
+		var offsetParent, offset, doc,
118
+			elem = this[ 0 ],
119
+			parentOffset = { top: 0, left: 0 };
120
+
121
+		// position:fixed elements are offset from the viewport, which itself always has zero offset
122
+		if ( jQuery.css( elem, "position" ) === "fixed" ) {
123
+
124
+			// Assume position:fixed implies availability of getBoundingClientRect
125
+			offset = elem.getBoundingClientRect();
126
+
127
+		} else {
128
+			offset = this.offset();
129
+
130
+			// Account for the *real* offset parent, which can be the document or its root element
131
+			// when a statically positioned element is identified
132
+			doc = elem.ownerDocument;
133
+			offsetParent = elem.offsetParent || doc.documentElement;
134
+			while ( offsetParent &&
135
+				( offsetParent === doc.body || offsetParent === doc.documentElement ) &&
136
+				jQuery.css( offsetParent, "position" ) === "static" ) {
137
+
138
+				offsetParent = offsetParent.parentNode;
139
+			}
140
+			if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {
141
+
142
+				// Incorporate borders into its offset, since they are outside its content origin
143
+				parentOffset = jQuery( offsetParent ).offset();
144
+				parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
145
+				parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
146
+			}
147
+		}
148
+
149
+		// Subtract parent offsets and element margins
150
+		return {
151
+			top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
152
+			left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
153
+		};
154
+	},
155
+
156
+	// This method will return documentElement in the following cases:
157
+	// 1) For the element inside the iframe without offsetParent, this method will return
158
+	//    documentElement of the parent window
159
+	// 2) For the hidden or detached element
160
+	// 3) For body or html element, i.e. in case of the html node - it will return itself
161
+	//
162
+	// but those exceptions were never presented as a real life use-cases
163
+	// and might be considered as more preferable results.
164
+	//
165
+	// This logic, however, is not guaranteed and can change at any point in the future
166
+	offsetParent: function() {
167
+		return this.map( function() {
168
+			var offsetParent = this.offsetParent;
169
+
170
+			while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
171
+				offsetParent = offsetParent.offsetParent;
172
+			}
173
+
174
+			return offsetParent || documentElement;
175
+		} );
176
+	}
177
+} );
178
+
179
+// Create scrollLeft and scrollTop methods
180
+jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
181
+	var top = "pageYOffset" === prop;
182
+
183
+	jQuery.fn[ method ] = function( val ) {
184
+		return access( this, function( elem, method, val ) {
185
+
186
+			// Coalesce documents and windows
187
+			var win;
188
+			if ( isWindow( elem ) ) {
189
+				win = elem;
190
+			} else if ( elem.nodeType === 9 ) {
191
+				win = elem.defaultView;
192
+			}
193
+
194
+			if ( val === undefined ) {
195
+				return win ? win[ prop ] : elem[ method ];
196
+			}
197
+
198
+			if ( win ) {
199
+				win.scrollTo(
200
+					!top ? val : win.pageXOffset,
201
+					top ? val : win.pageYOffset
202
+				);
203
+
204
+			} else {
205
+				elem[ method ] = val;
206
+			}
207
+		}, method, val, arguments.length );
208
+	};
209
+} );
210
+
211
+// Support: Safari <=7 - 9.1, Chrome <=37 - 49
212
+// Add the top/left cssHooks using jQuery.fn.position
213
+// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
214
+// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
215
+// getComputedStyle returns percent when specified for top/left/bottom/right;
216
+// rather than make the css module depend on the offset module, just check for it here
217
+jQuery.each( [ "top", "left" ], function( i, prop ) {
218
+	jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
219
+		function( elem, computed ) {
220
+			if ( computed ) {
221
+				computed = curCSS( elem, prop );
222
+
223
+				// If curCSS returns percentage, fallback to offset
224
+				return rnumnonpx.test( computed ) ?
225
+					jQuery( elem ).position()[ prop ] + "px" :
226
+					computed;
227
+			}
228
+		}
229
+	);
230
+} );
231
+
232
+return jQuery;
233
+} );

+ 145
- 0
www/jquery/src/queue.js View File

@@ -0,0 +1,145 @@
1
+define( [
2
+	"./core",
3
+	"./data/var/dataPriv",
4
+	"./deferred",
5
+	"./callbacks"
6
+], function( jQuery, dataPriv ) {
7
+
8
+"use strict";
9
+
10
+jQuery.extend( {
11
+	queue: function( elem, type, data ) {
12
+		var queue;
13
+
14
+		if ( elem ) {
15
+			type = ( type || "fx" ) + "queue";
16
+			queue = dataPriv.get( elem, type );
17
+
18
+			// Speed up dequeue by getting out quickly if this is just a lookup
19
+			if ( data ) {
20
+				if ( !queue || Array.isArray( data ) ) {
21
+					queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
22
+				} else {
23
+					queue.push( data );
24
+				}
25
+			}
26
+			return queue || [];
27
+		}
28
+	},
29
+
30
+	dequeue: function( elem, type ) {
31
+		type = type || "fx";
32
+
33
+		var queue = jQuery.queue( elem, type ),
34
+			startLength = queue.length,
35
+			fn = queue.shift(),
36
+			hooks = jQuery._queueHooks( elem, type ),
37
+			next = function() {
38
+				jQuery.dequeue( elem, type );
39
+			};
40
+
41
+		// If the fx queue is dequeued, always remove the progress sentinel
42
+		if ( fn === "inprogress" ) {
43
+			fn = queue.shift();
44
+			startLength--;
45
+		}
46
+
47
+		if ( fn ) {
48
+
49
+			// Add a progress sentinel to prevent the fx queue from being
50
+			// automatically dequeued
51
+			if ( type === "fx" ) {
52
+				queue.unshift( "inprogress" );
53
+			}
54
+
55
+			// Clear up the last queue stop function
56
+			delete hooks.stop;
57
+			fn.call( elem, next, hooks );
58
+		}
59
+
60
+		if ( !startLength && hooks ) {
61
+			hooks.empty.fire();
62
+		}
63
+	},
64
+
65
+	// Not public - generate a queueHooks object, or return the current one
66
+	_queueHooks: function( elem, type ) {
67
+		var key = type + "queueHooks";
68
+		return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
69
+			empty: jQuery.Callbacks( "once memory" ).add( function() {
70
+				dataPriv.remove( elem, [ type + "queue", key ] );
71
+			} )
72
+		} );
73
+	}
74
+} );
75
+
76
+jQuery.fn.extend( {
77
+	queue: function( type, data ) {
78
+		var setter = 2;
79
+
80
+		if ( typeof type !== "string" ) {
81
+			data = type;
82
+			type = "fx";
83
+			setter--;
84
+		}
85
+
86
+		if ( arguments.length < setter ) {
87
+			return jQuery.queue( this[ 0 ], type );
88
+		}
89
+
90
+		return data === undefined ?
91
+			this :
92
+			this.each( function() {
93
+				var queue = jQuery.queue( this, type, data );
94
+
95
+				// Ensure a hooks for this queue
96
+				jQuery._queueHooks( this, type );
97
+
98
+				if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
99
+					jQuery.dequeue( this, type );
100
+				}
101
+			} );
102
+	},
103
+	dequeue: function( type ) {
104
+		return this.each( function() {
105
+			jQuery.dequeue( this, type );
106
+		} );
107
+	},
108
+	clearQueue: function( type ) {
109
+		return this.queue( type || "fx", [] );
110
+	},
111
+
112
+	// Get a promise resolved when queues of a certain type
113
+	// are emptied (fx is the type by default)
114
+	promise: function( type, obj ) {
115
+		var tmp,
116
+			count = 1,
117
+			defer = jQuery.Deferred(),
118
+			elements = this,
119
+			i = this.length,
120
+			resolve = function() {
121
+				if ( !( --count ) ) {
122
+					defer.resolveWith( elements, [ elements ] );
123
+				}
124
+			};
125
+
126
+		if ( typeof type !== "string" ) {
127
+			obj = type;
128
+			type = undefined;
129
+		}
130
+		type = type || "fx";
131
+
132
+		while ( i-- ) {
133
+			tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
134
+			if ( tmp && tmp.empty ) {
135
+				count++;
136
+				tmp.empty.add( resolve );
137
+			}
138
+		}
139
+		resolve();
140
+		return defer.promise( obj );
141
+	}
142
+} );
143
+
144
+return jQuery;
145
+} );

+ 24
- 0
www/jquery/src/queue/delay.js View File

@@ -0,0 +1,24 @@
1
+define( [
2
+	"../core",
3
+	"../queue",
4
+	"../effects" // Delay is optional because of this dependency
5
+], function( jQuery ) {
6
+
7
+"use strict";
8
+
9
+// Based off of the plugin by Clint Helfers, with permission.
10
+// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
11
+jQuery.fn.delay = function( time, type ) {
12
+	time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
13
+	type = type || "fx";
14
+
15
+	return this.queue( type, function( next, hooks ) {
16
+		var timeout = window.setTimeout( next, time );
17
+		hooks.stop = function() {
18
+			window.clearTimeout( timeout );
19
+		};
20
+	} );
21
+};
22
+
23
+return jQuery.fn.delay;
24
+} );

+ 237
- 0
www/jquery/src/selector-native.js View File

@@ -0,0 +1,237 @@
1
+define( [
2
+	"./core",
3
+	"./var/document",
4
+	"./var/documentElement",
5
+	"./var/hasOwn",
6
+	"./var/indexOf"
7
+], function( jQuery, document, documentElement, hasOwn, indexOf ) {
8
+
9
+"use strict";
10
+
11
+/*
12
+ * Optional (non-Sizzle) selector module for custom builds.
13
+ *
14
+ * Note that this DOES NOT SUPPORT many documented jQuery
15
+ * features in exchange for its smaller size:
16
+ *
17
+ * Attribute not equal selector
18
+ * Positional selectors (:first; :eq(n); :odd; etc.)
19
+ * Type selectors (:input; :checkbox; :button; etc.)
20
+ * State-based selectors (:animated; :visible; :hidden; etc.)
21
+ * :has(selector)
22
+ * :not(complex selector)
23
+ * custom selectors via Sizzle extensions
24
+ * Leading combinators (e.g., $collection.find("> *"))
25
+ * Reliable functionality on XML fragments
26
+ * Requiring all parts of a selector to match elements under context
27
+ *   (e.g., $div.find("div > *") now matches children of $div)
28
+ * Matching against non-elements
29
+ * Reliable sorting of disconnected nodes
30
+ * querySelectorAll bug fixes (e.g., unreliable :focus on WebKit)
31
+ *
32
+ * If any of these are unacceptable tradeoffs, either use Sizzle or
33
+ * customize this stub for the project's specific needs.
34
+ */
35
+
36
+var hasDuplicate, sortInput,
37
+	sortStable = jQuery.expando.split( "" ).sort( sortOrder ).join( "" ) === jQuery.expando,
38
+	matches = documentElement.matches ||
39
+		documentElement.webkitMatchesSelector ||
40
+		documentElement.mozMatchesSelector ||
41
+		documentElement.oMatchesSelector ||
42
+		documentElement.msMatchesSelector,
43
+
44
+	// CSS string/identifier serialization
45
+	// https://drafts.csswg.org/cssom/#common-serializing-idioms
46
+	rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,
47
+	fcssescape = function( ch, asCodePoint ) {
48
+		if ( asCodePoint ) {
49
+
50
+			// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
51
+			if ( ch === "\0" ) {
52
+				return "\uFFFD";
53
+			}
54
+
55
+			// Control characters and (dependent upon position) numbers get escaped as code points
56
+			return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
57
+		}
58
+
59
+		// Other potentially-special ASCII characters get backslash-escaped
60
+		return "\\" + ch;
61
+	};
62
+
63
+function sortOrder( a, b ) {
64
+
65
+	// Flag for duplicate removal
66
+	if ( a === b ) {
67
+		hasDuplicate = true;
68
+		return 0;
69
+	}
70
+
71
+	// Sort on method existence if only one input has compareDocumentPosition
72
+	var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
73
+	if ( compare ) {
74
+		return compare;
75
+	}
76
+
77
+	// Calculate position if both inputs belong to the same document
78
+	compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
79
+		a.compareDocumentPosition( b ) :
80
+
81
+		// Otherwise we know they are disconnected
82
+		1;
83
+
84
+	// Disconnected nodes
85
+	if ( compare & 1 ) {
86
+
87
+		// Choose the first element that is related to our preferred document
88
+		if ( a === document || a.ownerDocument === document &&
89
+			jQuery.contains( document, a ) ) {
90
+			return -1;
91
+		}
92
+		if ( b === document || b.ownerDocument === document &&
93
+			jQuery.contains( document, b ) ) {
94
+			return 1;
95
+		}
96
+
97
+		// Maintain original order
98
+		return sortInput ?
99
+			( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
100
+			0;
101
+	}
102
+
103
+	return compare & 4 ? -1 : 1;
104
+}
105
+
106
+function uniqueSort( results ) {
107
+	var elem,
108
+		duplicates = [],
109
+		j = 0,
110
+		i = 0;
111
+
112
+	hasDuplicate = false;
113
+	sortInput = !sortStable && results.slice( 0 );
114
+	results.sort( sortOrder );
115
+
116
+	if ( hasDuplicate ) {
117
+		while ( ( elem = results[ i++ ] ) ) {
118
+			if ( elem === results[ i ] ) {
119
+				j = duplicates.push( i );
120
+			}
121
+		}
122
+		while ( j-- ) {
123
+			results.splice( duplicates[ j ], 1 );
124
+		}
125
+	}
126
+
127
+	// Clear input after sorting to release objects
128
+	// See https://github.com/jquery/sizzle/pull/225
129
+	sortInput = null;
130
+
131
+	return results;
132
+}
133
+
134
+function escape( sel ) {
135
+	return ( sel + "" ).replace( rcssescape, fcssescape );
136
+}
137
+
138
+jQuery.extend( {
139
+	uniqueSort: uniqueSort,
140
+	unique: uniqueSort,
141
+	escapeSelector: escape,
142
+	find: function( selector, context, results, seed ) {
143
+		var elem, nodeType,
144
+			i = 0;
145
+
146
+		results = results || [];
147
+		context = context || document;
148
+
149
+		// Same basic safeguard as Sizzle
150
+		if ( !selector || typeof selector !== "string" ) {
151
+			return results;
152
+		}
153
+
154
+		// Early return if context is not an element or document
155
+		if ( ( nodeType = context.nodeType ) !== 1 && nodeType !== 9 ) {
156
+			return [];
157
+		}
158
+
159
+		if ( seed ) {
160
+			while ( ( elem = seed[ i++ ] ) ) {
161
+				if ( jQuery.find.matchesSelector( elem, selector ) ) {
162
+					results.push( elem );
163
+				}
164
+			}
165
+		} else {
166
+			jQuery.merge( results, context.querySelectorAll( selector ) );
167
+		}
168
+
169
+		return results;
170
+	},
171
+	text: function( elem ) {
172
+		var node,
173
+			ret = "",
174
+			i = 0,
175
+			nodeType = elem.nodeType;
176
+
177
+		if ( !nodeType ) {
178
+
179
+			// If no nodeType, this is expected to be an array
180
+			while ( ( node = elem[ i++ ] ) ) {
181
+
182
+				// Do not traverse comment nodes
183
+				ret += jQuery.text( node );
184
+			}
185
+		} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
186
+
187
+			// Use textContent for elements
188
+			return elem.textContent;
189
+		} else if ( nodeType === 3 || nodeType === 4 ) {
190
+			return elem.nodeValue;
191
+		}
192
+
193
+		// Do not include comment or processing instruction nodes
194
+
195
+		return ret;
196
+	},
197
+	contains: function( a, b ) {
198
+		var adown = a.nodeType === 9 ? a.documentElement : a,
199
+			bup = b && b.parentNode;
200
+		return a === bup || !!( bup && bup.nodeType === 1 && adown.contains( bup ) );
201
+	},
202
+	isXMLDoc: function( elem ) {
203
+
204
+		// documentElement is verified for cases where it doesn't yet exist
205
+		// (such as loading iframes in IE - #4833)
206
+		var documentElement = elem && ( elem.ownerDocument || elem ).documentElement;
207
+		return documentElement ? documentElement.nodeName !== "HTML" : false;
208
+	},
209
+	expr: {
210
+		attrHandle: {},
211
+		match: {
212
+			bool: new RegExp( "^(?:checked|selected|async|autofocus|autoplay|controls|defer" +
213
+				"|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$", "i" ),
214
+			needsContext: /^[\x20\t\r\n\f]*[>+~]/
215
+		}
216
+	}
217
+} );
218
+
219
+jQuery.extend( jQuery.find, {
220
+	matches: function( expr, elements ) {
221
+		return jQuery.find( expr, null, null, elements );
222
+	},
223
+	matchesSelector: function( elem, expr ) {
224
+		return matches.call( elem, expr );
225
+	},
226
+	attr: function( elem, name ) {
227
+		var fn = jQuery.expr.attrHandle[ name.toLowerCase() ],
228
+
229
+			// Don't get fooled by Object.prototype properties (jQuery #13807)
230
+			value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?
231
+				fn( elem, name, jQuery.isXMLDoc( elem ) ) :
232
+				undefined;
233
+		return value !== undefined ? value : elem.getAttribute( name );
234
+	}
235
+} );
236
+
237
+} );

+ 19
- 0
www/jquery/src/selector-sizzle.js View File

@@ -0,0 +1,19 @@
1
+define( [
2
+	"./core",
3
+	"../external/sizzle/dist/sizzle"
4
+], function( jQuery, Sizzle ) {
5
+
6
+"use strict";
7
+
8
+jQuery.find = Sizzle;
9
+jQuery.expr = Sizzle.selectors;
10
+
11
+// Deprecated
12
+jQuery.expr[ ":" ] = jQuery.expr.pseudos;
13
+jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
14
+jQuery.text = Sizzle.getText;
15
+jQuery.isXMLDoc = Sizzle.isXML;
16
+jQuery.contains = Sizzle.contains;
17
+jQuery.escapeSelector = Sizzle.escape;
18
+
19
+} );

+ 3
- 0
www/jquery/src/selector.js View File

@@ -0,0 +1,3 @@
1
+define( [ "./selector-sizzle" ], function() {
2
+	"use strict";
3
+} );

+ 136
- 0
www/jquery/src/serialize.js View File

@@ -0,0 +1,136 @@
1
+define( [
2
+	"./core",
3
+	"./core/toType",
4
+	"./var/rcheckableType",
5
+	"./var/isFunction",
6
+	"./core/init",
7
+	"./traversing", // filter
8
+	"./attributes/prop"
9
+], function( jQuery, toType, rcheckableType, isFunction ) {
10
+
11
+"use strict";
12
+
13
+var
14
+	rbracket = /\[\]$/,
15
+	rCRLF = /\r?\n/g,
16
+	rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
17
+	rsubmittable = /^(?:input|select|textarea|keygen)/i;
18
+
19
+function buildParams( prefix, obj, traditional, add ) {
20
+	var name;
21
+
22
+	if ( Array.isArray( obj ) ) {
23
+
24
+		// Serialize array item.
25
+		jQuery.each( obj, function( i, v ) {
26
+			if ( traditional || rbracket.test( prefix ) ) {
27
+
28
+				// Treat each array item as a scalar.
29
+				add( prefix, v );
30
+
31
+			} else {
32
+
33
+				// Item is non-scalar (array or object), encode its numeric index.
34
+				buildParams(
35
+					prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
36
+					v,
37
+					traditional,
38
+					add
39
+				);
40
+			}
41
+		} );
42
+
43
+	} else if ( !traditional && toType( obj ) === "object" ) {
44
+
45
+		// Serialize object item.
46
+		for ( name in obj ) {
47
+			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
48
+		}
49
+
50
+	} else {
51
+
52
+		// Serialize scalar item.
53
+		add( prefix, obj );
54
+	}
55
+}
56
+
57
+// Serialize an array of form elements or a set of
58
+// key/values into a query string
59
+jQuery.param = function( a, traditional ) {
60
+	var prefix,
61
+		s = [],
62
+		add = function( key, valueOrFunction ) {
63
+
64
+			// If value is a function, invoke it and use its return value
65
+			var value = isFunction( valueOrFunction ) ?
66
+				valueOrFunction() :
67
+				valueOrFunction;
68
+
69
+			s[ s.length ] = encodeURIComponent( key ) + "=" +
70
+				encodeURIComponent( value == null ? "" : value );
71
+		};
72
+
73
+	if ( a == null ) {
74
+		return "";
75
+	}
76
+
77
+	// If an array was passed in, assume that it is an array of form elements.
78
+	if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
79
+
80
+		// Serialize the form elements
81
+		jQuery.each( a, function() {
82
+			add( this.name, this.value );
83
+		} );
84
+
85
+	} else {
86
+
87
+		// If traditional, encode the "old" way (the way 1.3.2 or older
88
+		// did it), otherwise encode params recursively.
89
+		for ( prefix in a ) {
90
+			buildParams( prefix, a[ prefix ], traditional, add );
91
+		}
92
+	}
93
+
94
+	// Return the resulting serialization
95
+	return s.join( "&" );
96
+};
97
+
98
+jQuery.fn.extend( {
99
+	serialize: function() {
100
+		return jQuery.param( this.serializeArray() );
101
+	},
102
+	serializeArray: function() {
103
+		return this.map( function() {
104
+
105
+			// Can add propHook for "elements" to filter or add form elements
106
+			var elements = jQuery.prop( this, "elements" );
107
+			return elements ? jQuery.makeArray( elements ) : this;
108
+		} )
109
+		.filter( function() {
110
+			var type = this.type;
111
+
112
+			// Use .is( ":disabled" ) so that fieldset[disabled] works
113
+			return this.name && !jQuery( this ).is( ":disabled" ) &&
114
+				rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
115
+				( this.checked || !rcheckableType.test( type ) );
116
+		} )
117
+		.map( function( i, elem ) {
118
+			var val = jQuery( this ).val();
119
+
120
+			if ( val == null ) {
121
+				return null;
122
+			}
123
+
124
+			if ( Array.isArray( val ) ) {
125
+				return jQuery.map( val, function( val ) {
126
+					return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
127
+				} );
128
+			}
129
+
130
+			return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
131
+		} ).get();
132
+	}
133
+} );
134
+
135
+return jQuery;
136
+} );

+ 0
- 0
www/jquery/src/traversing.js View File


Some files were not shown because too many files changed in this diff