trusty-cms 4.2.2 → 4.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +98 -89
  4. data/app/assets/config/trusty-cms/manifest.js +7 -0
  5. data/app/assets/javascripts/admin/custom_file_upload.js +7 -0
  6. data/app/controllers/admin/assets_controller.rb +1 -1
  7. data/app/models/page.rb +2 -2
  8. data/app/views/admin/assets/new.html.haml +2 -0
  9. data/config/database.yml +4 -0
  10. data/config/initializers/assets.rb +0 -4
  11. data/coverage/index.html +155 -155
  12. data/lib/trusty_cms.rb +1 -1
  13. data/node_modules/hosted-git-info/CHANGELOG.md +10 -0
  14. data/node_modules/hosted-git-info/index.js +2 -2
  15. data/node_modules/hosted-git-info/package.json +1 -1
  16. data/node_modules/lodash/README.md +2 -2
  17. data/node_modules/lodash/_baseClone.js +2 -1
  18. data/node_modules/lodash/_baseOrderBy.js +17 -2
  19. data/node_modules/lodash/_baseSet.js +4 -0
  20. data/node_modules/lodash/_baseSortedIndexBy.js +7 -4
  21. data/node_modules/lodash/_baseTrim.js +19 -0
  22. data/node_modules/lodash/_equalArrays.js +5 -4
  23. data/node_modules/lodash/_equalObjects.js +5 -4
  24. data/node_modules/lodash/_trimmedEndIndex.js +19 -0
  25. data/node_modules/lodash/core.js +48 -6
  26. data/node_modules/lodash/core.min.js +9 -9
  27. data/node_modules/lodash/filter.js +4 -0
  28. data/node_modules/lodash/flake.lock +40 -0
  29. data/node_modules/lodash/flake.nix +20 -0
  30. data/node_modules/lodash/lodash.js +59 -11
  31. data/node_modules/lodash/lodash.min.js +126 -125
  32. data/node_modules/lodash/matches.js +7 -0
  33. data/node_modules/lodash/matchesProperty.js +7 -0
  34. data/node_modules/lodash/overEvery.js +4 -0
  35. data/node_modules/lodash/overSome.js +7 -0
  36. data/node_modules/lodash/package.json +1 -1
  37. data/node_modules/lodash/parseInt.js +1 -1
  38. data/node_modules/lodash/release.md +48 -0
  39. data/node_modules/lodash/sortBy.js +3 -3
  40. data/node_modules/lodash/template.js +24 -5
  41. data/node_modules/lodash/toNumber.js +3 -5
  42. data/node_modules/lodash/trim.js +2 -4
  43. data/node_modules/lodash/trimEnd.js +3 -5
  44. data/node_modules/lodash/trimStart.js +1 -1
  45. data/spec/dummy/log/development.log +9 -163
  46. data/spec/dummy/log/test.log +536 -0
  47. data/spec/dummy/node_modules/jquery-ui-bundle/AUTHORS.txt +333 -0
  48. data/spec/dummy/node_modules/jquery-ui-bundle/LICENSE.txt +43 -0
  49. data/spec/dummy/node_modules/jquery-ui-bundle/external/jquery/jquery.js +11008 -0
  50. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_444444_256x240.png +0 -0
  51. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_555555_256x240.png +0 -0
  52. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777620_256x240.png +0 -0
  53. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777777_256x240.png +0 -0
  54. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_cc0000_256x240.png +0 -0
  55. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_ffffff_256x240.png +0 -0
  56. data/spec/dummy/node_modules/jquery-ui-bundle/index.html +559 -0
  57. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.css +1312 -0
  58. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.js +18706 -0
  59. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.css +7 -0
  60. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.js +13 -0
  61. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.css +886 -0
  62. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.min.css +5 -0
  63. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.css +443 -0
  64. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.min.css +5 -0
  65. data/spec/dummy/node_modules/jquery-ui-bundle/package.json +33 -0
  66. data/spec/dummy/node_modules/jquery-ujs/CONTRIBUTING.md +109 -0
  67. data/spec/dummy/node_modules/jquery-ujs/MIT-LICENSE +20 -0
  68. data/spec/dummy/node_modules/jquery-ujs/README.md +86 -0
  69. data/spec/dummy/node_modules/jquery-ujs/RELEASE.md +23 -0
  70. data/spec/dummy/node_modules/jquery-ujs/bower.json +19 -0
  71. data/spec/dummy/node_modules/jquery-ujs/package.json +26 -0
  72. data/spec/dummy/node_modules/jquery-ujs/src/rails.js +555 -0
  73. data/spec/dummy/node_modules/jquery/AUTHORS.txt +327 -0
  74. data/spec/dummy/node_modules/jquery/LICENSE.txt +20 -0
  75. data/spec/dummy/node_modules/jquery/README.md +62 -0
  76. data/spec/dummy/node_modules/jquery/bower.json +14 -0
  77. data/spec/dummy/node_modules/jquery/dist/jquery.js +10872 -0
  78. data/spec/dummy/node_modules/jquery/dist/jquery.min.js +2 -0
  79. data/spec/dummy/node_modules/jquery/dist/jquery.min.map +1 -0
  80. data/spec/dummy/node_modules/jquery/dist/jquery.slim.js +8777 -0
  81. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.js +2 -0
  82. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.map +1 -0
  83. data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
  84. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +2478 -0
  85. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  86. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  87. data/spec/dummy/node_modules/jquery/package.json +117 -0
  88. data/spec/dummy/node_modules/jquery/src/ajax.js +873 -0
  89. data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +103 -0
  90. data/spec/dummy/node_modules/jquery/src/ajax/load.js +77 -0
  91. data/spec/dummy/node_modules/jquery/src/ajax/script.js +74 -0
  92. data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +5 -0
  93. data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  94. data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +5 -0
  95. data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +170 -0
  96. data/spec/dummy/node_modules/jquery/src/attributes.js +13 -0
  97. data/spec/dummy/node_modules/jquery/src/attributes/attr.js +141 -0
  98. data/spec/dummy/node_modules/jquery/src/attributes/classes.js +186 -0
  99. data/spec/dummy/node_modules/jquery/src/attributes/prop.js +143 -0
  100. data/spec/dummy/node_modules/jquery/src/attributes/support.js +33 -0
  101. data/spec/dummy/node_modules/jquery/src/attributes/val.js +191 -0
  102. data/spec/dummy/node_modules/jquery/src/callbacks.js +236 -0
  103. data/spec/dummy/node_modules/jquery/src/core.js +400 -0
  104. data/spec/dummy/node_modules/jquery/src/core/DOMEval.js +43 -0
  105. data/spec/dummy/node_modules/jquery/src/core/access.js +72 -0
  106. data/spec/dummy/node_modules/jquery/src/core/camelCase.js +23 -0
  107. data/spec/dummy/node_modules/jquery/src/core/init.js +129 -0
  108. data/spec/dummy/node_modules/jquery/src/core/isAttached.js +26 -0
  109. data/spec/dummy/node_modules/jquery/src/core/nodeName.js +13 -0
  110. data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +65 -0
  111. data/spec/dummy/node_modules/jquery/src/core/parseXML.js +30 -0
  112. data/spec/dummy/node_modules/jquery/src/core/ready-no-deferred.js +97 -0
  113. data/spec/dummy/node_modules/jquery/src/core/ready.js +86 -0
  114. data/spec/dummy/node_modules/jquery/src/core/readyException.js +13 -0
  115. data/spec/dummy/node_modules/jquery/src/core/stripAndCollapse.js +14 -0
  116. data/spec/dummy/node_modules/jquery/src/core/support.js +20 -0
  117. data/spec/dummy/node_modules/jquery/src/core/toType.js +20 -0
  118. data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +7 -0
  119. data/spec/dummy/node_modules/jquery/src/css.js +494 -0
  120. data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +26 -0
  121. data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +74 -0
  122. data/spec/dummy/node_modules/jquery/src/css/curCSS.js +65 -0
  123. data/spec/dummy/node_modules/jquery/src/css/finalPropName.js +42 -0
  124. data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  125. data/spec/dummy/node_modules/jquery/src/css/showHide.js +105 -0
  126. data/spec/dummy/node_modules/jquery/src/css/support.js +133 -0
  127. data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +5 -0
  128. data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +17 -0
  129. data/spec/dummy/node_modules/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  130. data/spec/dummy/node_modules/jquery/src/css/var/rboxStyle.js +7 -0
  131. data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +7 -0
  132. data/spec/dummy/node_modules/jquery/src/css/var/swap.js +26 -0
  133. data/spec/dummy/node_modules/jquery/src/data.js +180 -0
  134. data/spec/dummy/node_modules/jquery/src/data/Data.js +162 -0
  135. data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +19 -0
  136. data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +7 -0
  137. data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +7 -0
  138. data/spec/dummy/node_modules/jquery/src/deferred.js +399 -0
  139. data/spec/dummy/node_modules/jquery/src/deferred/exceptionHook.js +21 -0
  140. data/spec/dummy/node_modules/jquery/src/deprecated.js +87 -0
  141. data/spec/dummy/node_modules/jquery/src/deprecated/ajax-event-alias.js +22 -0
  142. data/spec/dummy/node_modules/jquery/src/deprecated/event.js +48 -0
  143. data/spec/dummy/node_modules/jquery/src/dimensions.js +57 -0
  144. data/spec/dummy/node_modules/jquery/src/effects.js +701 -0
  145. data/spec/dummy/node_modules/jquery/src/effects/Tween.js +125 -0
  146. data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +15 -0
  147. data/spec/dummy/node_modules/jquery/src/event.js +892 -0
  148. data/spec/dummy/node_modules/jquery/src/event/focusin.js +58 -0
  149. data/spec/dummy/node_modules/jquery/src/event/support.js +11 -0
  150. data/spec/dummy/node_modules/jquery/src/event/trigger.js +201 -0
  151. data/spec/dummy/node_modules/jquery/src/exports/amd.js +26 -0
  152. data/spec/dummy/node_modules/jquery/src/exports/global.js +34 -0
  153. data/spec/dummy/node_modules/jquery/src/jquery.js +41 -0
  154. data/spec/dummy/node_modules/jquery/src/manipulation.js +480 -0
  155. data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +32 -0
  156. data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +106 -0
  157. data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +32 -0
  158. data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +22 -0
  159. data/spec/dummy/node_modules/jquery/src/manipulation/support.js +41 -0
  160. data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +5 -0
  161. data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +8 -0
  162. data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +30 -0
  163. data/spec/dummy/node_modules/jquery/src/offset.js +238 -0
  164. data/spec/dummy/node_modules/jquery/src/queue.js +145 -0
  165. data/spec/dummy/node_modules/jquery/src/queue/delay.js +24 -0
  166. data/spec/dummy/node_modules/jquery/src/selector-native.js +241 -0
  167. data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +19 -0
  168. data/spec/dummy/node_modules/jquery/src/selector.js +3 -0
  169. data/spec/dummy/node_modules/jquery/src/serialize.js +136 -0
  170. data/spec/dummy/node_modules/jquery/src/traversing.js +198 -0
  171. data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +97 -0
  172. data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +22 -0
  173. data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +8 -0
  174. data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +17 -0
  175. data/spec/dummy/node_modules/jquery/src/var/ObjectFunctionString.js +7 -0
  176. data/spec/dummy/node_modules/jquery/src/var/arr.js +5 -0
  177. data/spec/dummy/node_modules/jquery/src/var/class2type.js +6 -0
  178. data/spec/dummy/node_modules/jquery/src/var/document.js +5 -0
  179. data/spec/dummy/node_modules/jquery/src/var/documentElement.js +7 -0
  180. data/spec/dummy/node_modules/jquery/src/var/flat.js +16 -0
  181. data/spec/dummy/node_modules/jquery/src/var/fnToString.js +7 -0
  182. data/spec/dummy/node_modules/jquery/src/var/getProto.js +5 -0
  183. data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +7 -0
  184. data/spec/dummy/node_modules/jquery/src/var/indexOf.js +7 -0
  185. data/spec/dummy/node_modules/jquery/src/var/isFunction.js +13 -0
  186. data/spec/dummy/node_modules/jquery/src/var/isWindow.js +8 -0
  187. data/spec/dummy/node_modules/jquery/src/var/pnum.js +5 -0
  188. data/spec/dummy/node_modules/jquery/src/var/push.js +7 -0
  189. data/spec/dummy/node_modules/jquery/src/var/rcheckableType.js +5 -0
  190. data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +9 -0
  191. data/spec/dummy/node_modules/jquery/src/var/rnothtmlwhite.js +8 -0
  192. data/spec/dummy/node_modules/jquery/src/var/slice.js +7 -0
  193. data/spec/dummy/node_modules/jquery/src/var/support.js +6 -0
  194. data/spec/dummy/node_modules/jquery/src/var/toString.js +7 -0
  195. data/spec/dummy/node_modules/jquery/src/wrap.js +78 -0
  196. data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +5 -0
  197. data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +1 -0
  198. data/trusty_cms.gemspec +3 -2
  199. data/yarn.lock +9 -9
  200. metadata +354 -50
@@ -0,0 +1,198 @@
1
+ define( [
2
+ "./core",
3
+ "./var/getProto",
4
+ "./var/indexOf",
5
+ "./traversing/var/dir",
6
+ "./traversing/var/siblings",
7
+ "./traversing/var/rneedsContext",
8
+ "./core/nodeName",
9
+
10
+ "./core/init",
11
+ "./traversing/findFilter",
12
+ "./selector"
13
+ ], function( jQuery, getProto, indexOf, dir, siblings, rneedsContext, nodeName ) {
14
+
15
+ "use strict";
16
+
17
+ var rparentsprev = /^(?:parents|prev(?:Until|All))/,
18
+
19
+ // Methods guaranteed to produce a unique set when starting from a unique set
20
+ guaranteedUnique = {
21
+ children: true,
22
+ contents: true,
23
+ next: true,
24
+ prev: true
25
+ };
26
+
27
+ jQuery.fn.extend( {
28
+ has: function( target ) {
29
+ var targets = jQuery( target, this ),
30
+ l = targets.length;
31
+
32
+ return this.filter( function() {
33
+ var i = 0;
34
+ for ( ; i < l; i++ ) {
35
+ if ( jQuery.contains( this, targets[ i ] ) ) {
36
+ return true;
37
+ }
38
+ }
39
+ } );
40
+ },
41
+
42
+ closest: function( selectors, context ) {
43
+ var cur,
44
+ i = 0,
45
+ l = this.length,
46
+ matched = [],
47
+ targets = typeof selectors !== "string" && jQuery( selectors );
48
+
49
+ // Positional selectors never match, since there's no _selection_ context
50
+ if ( !rneedsContext.test( selectors ) ) {
51
+ for ( ; i < l; i++ ) {
52
+ for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
53
+
54
+ // Always skip document fragments
55
+ if ( cur.nodeType < 11 && ( targets ?
56
+ targets.index( cur ) > -1 :
57
+
58
+ // Don't pass non-elements to Sizzle
59
+ cur.nodeType === 1 &&
60
+ jQuery.find.matchesSelector( cur, selectors ) ) ) {
61
+
62
+ matched.push( cur );
63
+ break;
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
70
+ },
71
+
72
+ // Determine the position of an element within the set
73
+ index: function( elem ) {
74
+
75
+ // No argument, return index in parent
76
+ if ( !elem ) {
77
+ return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
78
+ }
79
+
80
+ // Index in selector
81
+ if ( typeof elem === "string" ) {
82
+ return indexOf.call( jQuery( elem ), this[ 0 ] );
83
+ }
84
+
85
+ // Locate the position of the desired element
86
+ return indexOf.call( this,
87
+
88
+ // If it receives a jQuery object, the first element is used
89
+ elem.jquery ? elem[ 0 ] : elem
90
+ );
91
+ },
92
+
93
+ add: function( selector, context ) {
94
+ return this.pushStack(
95
+ jQuery.uniqueSort(
96
+ jQuery.merge( this.get(), jQuery( selector, context ) )
97
+ )
98
+ );
99
+ },
100
+
101
+ addBack: function( selector ) {
102
+ return this.add( selector == null ?
103
+ this.prevObject : this.prevObject.filter( selector )
104
+ );
105
+ }
106
+ } );
107
+
108
+ function sibling( cur, dir ) {
109
+ while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
110
+ return cur;
111
+ }
112
+
113
+ jQuery.each( {
114
+ parent: function( elem ) {
115
+ var parent = elem.parentNode;
116
+ return parent && parent.nodeType !== 11 ? parent : null;
117
+ },
118
+ parents: function( elem ) {
119
+ return dir( elem, "parentNode" );
120
+ },
121
+ parentsUntil: function( elem, _i, until ) {
122
+ return dir( elem, "parentNode", until );
123
+ },
124
+ next: function( elem ) {
125
+ return sibling( elem, "nextSibling" );
126
+ },
127
+ prev: function( elem ) {
128
+ return sibling( elem, "previousSibling" );
129
+ },
130
+ nextAll: function( elem ) {
131
+ return dir( elem, "nextSibling" );
132
+ },
133
+ prevAll: function( elem ) {
134
+ return dir( elem, "previousSibling" );
135
+ },
136
+ nextUntil: function( elem, _i, until ) {
137
+ return dir( elem, "nextSibling", until );
138
+ },
139
+ prevUntil: function( elem, _i, until ) {
140
+ return dir( elem, "previousSibling", until );
141
+ },
142
+ siblings: function( elem ) {
143
+ return siblings( ( elem.parentNode || {} ).firstChild, elem );
144
+ },
145
+ children: function( elem ) {
146
+ return siblings( elem.firstChild );
147
+ },
148
+ contents: function( elem ) {
149
+ if ( elem.contentDocument != null &&
150
+
151
+ // Support: IE 11+
152
+ // <object> elements with no `data` attribute has an object
153
+ // `contentDocument` with a `null` prototype.
154
+ getProto( elem.contentDocument ) ) {
155
+
156
+ return elem.contentDocument;
157
+ }
158
+
159
+ // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
160
+ // Treat the template element as a regular one in browsers that
161
+ // don't support it.
162
+ if ( nodeName( elem, "template" ) ) {
163
+ elem = elem.content || elem;
164
+ }
165
+
166
+ return jQuery.merge( [], elem.childNodes );
167
+ }
168
+ }, function( name, fn ) {
169
+ jQuery.fn[ name ] = function( until, selector ) {
170
+ var matched = jQuery.map( this, fn, until );
171
+
172
+ if ( name.slice( -5 ) !== "Until" ) {
173
+ selector = until;
174
+ }
175
+
176
+ if ( selector && typeof selector === "string" ) {
177
+ matched = jQuery.filter( selector, matched );
178
+ }
179
+
180
+ if ( this.length > 1 ) {
181
+
182
+ // Remove duplicates
183
+ if ( !guaranteedUnique[ name ] ) {
184
+ jQuery.uniqueSort( matched );
185
+ }
186
+
187
+ // Reverse order for parents* and prev-derivatives
188
+ if ( rparentsprev.test( name ) ) {
189
+ matched.reverse();
190
+ }
191
+ }
192
+
193
+ return this.pushStack( matched );
194
+ };
195
+ } );
196
+
197
+ return jQuery;
198
+ } );
@@ -0,0 +1,97 @@
1
+ define( [
2
+ "../core",
3
+ "../var/indexOf",
4
+ "../var/isFunction",
5
+ "./var/rneedsContext",
6
+ "../selector"
7
+ ], function( jQuery, indexOf, isFunction, rneedsContext ) {
8
+
9
+ "use strict";
10
+
11
+ // Implement the identical functionality for filter and not
12
+ function winnow( elements, qualifier, not ) {
13
+ if ( isFunction( qualifier ) ) {
14
+ return jQuery.grep( elements, function( elem, i ) {
15
+ return !!qualifier.call( elem, i, elem ) !== not;
16
+ } );
17
+ }
18
+
19
+ // Single element
20
+ if ( qualifier.nodeType ) {
21
+ return jQuery.grep( elements, function( elem ) {
22
+ return ( elem === qualifier ) !== not;
23
+ } );
24
+ }
25
+
26
+ // Arraylike of elements (jQuery, arguments, Array)
27
+ if ( typeof qualifier !== "string" ) {
28
+ return jQuery.grep( elements, function( elem ) {
29
+ return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
30
+ } );
31
+ }
32
+
33
+ // Filtered directly for both simple and complex selectors
34
+ return jQuery.filter( qualifier, elements, not );
35
+ }
36
+
37
+ jQuery.filter = function( expr, elems, not ) {
38
+ var elem = elems[ 0 ];
39
+
40
+ if ( not ) {
41
+ expr = ":not(" + expr + ")";
42
+ }
43
+
44
+ if ( elems.length === 1 && elem.nodeType === 1 ) {
45
+ return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
46
+ }
47
+
48
+ return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
49
+ return elem.nodeType === 1;
50
+ } ) );
51
+ };
52
+
53
+ jQuery.fn.extend( {
54
+ find: function( selector ) {
55
+ var i, ret,
56
+ len = this.length,
57
+ self = this;
58
+
59
+ if ( typeof selector !== "string" ) {
60
+ return this.pushStack( jQuery( selector ).filter( function() {
61
+ for ( i = 0; i < len; i++ ) {
62
+ if ( jQuery.contains( self[ i ], this ) ) {
63
+ return true;
64
+ }
65
+ }
66
+ } ) );
67
+ }
68
+
69
+ ret = this.pushStack( [] );
70
+
71
+ for ( i = 0; i < len; i++ ) {
72
+ jQuery.find( selector, self[ i ], ret );
73
+ }
74
+
75
+ return len > 1 ? jQuery.uniqueSort( ret ) : ret;
76
+ },
77
+ filter: function( selector ) {
78
+ return this.pushStack( winnow( this, selector || [], false ) );
79
+ },
80
+ not: function( selector ) {
81
+ return this.pushStack( winnow( this, selector || [], true ) );
82
+ },
83
+ is: function( selector ) {
84
+ return !!winnow(
85
+ this,
86
+
87
+ // If this is a positional/relative selector, check membership in the returned set
88
+ // so $("p:first").is("p:last") won't return true for a doc with two "p".
89
+ typeof selector === "string" && rneedsContext.test( selector ) ?
90
+ jQuery( selector ) :
91
+ selector || [],
92
+ false
93
+ ).length;
94
+ }
95
+ } );
96
+
97
+ } );
@@ -0,0 +1,22 @@
1
+ define( [
2
+ "../../core"
3
+ ], function( jQuery ) {
4
+
5
+ "use strict";
6
+
7
+ return function( elem, dir, until ) {
8
+ var matched = [],
9
+ truncate = until !== undefined;
10
+
11
+ while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
12
+ if ( elem.nodeType === 1 ) {
13
+ if ( truncate && jQuery( elem ).is( until ) ) {
14
+ break;
15
+ }
16
+ matched.push( elem );
17
+ }
18
+ }
19
+ return matched;
20
+ };
21
+
22
+ } );
@@ -0,0 +1,8 @@
1
+ define( [
2
+ "../../core",
3
+ "../../selector"
4
+ ], function( jQuery ) {
5
+ "use strict";
6
+
7
+ return jQuery.expr.match.needsContext;
8
+ } );
@@ -0,0 +1,17 @@
1
+ define( function() {
2
+
3
+ "use strict";
4
+
5
+ return function( n, elem ) {
6
+ var matched = [];
7
+
8
+ for ( ; n; n = n.nextSibling ) {
9
+ if ( n.nodeType === 1 && n !== elem ) {
10
+ matched.push( n );
11
+ }
12
+ }
13
+
14
+ return matched;
15
+ };
16
+
17
+ } );
@@ -0,0 +1,7 @@
1
+ define( [
2
+ "./fnToString"
3
+ ], function( fnToString ) {
4
+ "use strict";
5
+
6
+ return fnToString.call( Object );
7
+ } );
@@ -0,0 +1,5 @@
1
+ define( function() {
2
+ "use strict";
3
+
4
+ return [];
5
+ } );
@@ -0,0 +1,6 @@
1
+ define( function() {
2
+ "use strict";
3
+
4
+ // [[Class]] -> type pairs
5
+ return {};
6
+ } );
@@ -0,0 +1,5 @@
1
+ define( function() {
2
+ "use strict";
3
+
4
+ return window.document;
5
+ } );
@@ -0,0 +1,7 @@
1
+ define( [
2
+ "./document"
3
+ ], function( document ) {
4
+ "use strict";
5
+
6
+ return document.documentElement;
7
+ } );
@@ -0,0 +1,16 @@
1
+ define( [
2
+ "./arr"
3
+ ], function( arr ) {
4
+
5
+ "use strict";
6
+
7
+ // Support: IE 9 - 11+, Edge 18+, Android Browser 4.0 - 4.3 only, iOS 7 - 11 only, Safari 11 only,
8
+ // Firefox <= 61 only
9
+ // Provide fallback for browsers without Array#flat.
10
+ return arr.flat ? function( array ) {
11
+ return arr.flat.call( array );
12
+ } : function( array ) {
13
+ return arr.concat.apply( [], array );
14
+ };
15
+
16
+ } );
@@ -0,0 +1,7 @@
1
+ define( [
2
+ "./hasOwn"
3
+ ], function( hasOwn ) {
4
+ "use strict";
5
+
6
+ return hasOwn.toString;
7
+ } );
@@ -0,0 +1,5 @@
1
+ define( function() {
2
+ "use strict";
3
+
4
+ return Object.getPrototypeOf;
5
+ } );
@@ -0,0 +1,7 @@
1
+ define( [
2
+ "./class2type"
3
+ ], function( class2type ) {
4
+ "use strict";
5
+
6
+ return class2type.hasOwnProperty;
7
+ } );
@@ -0,0 +1,7 @@
1
+ define( [
2
+ "./arr"
3
+ ], function( arr ) {
4
+ "use strict";
5
+
6
+ return arr.indexOf;
7
+ } );
@@ -0,0 +1,13 @@
1
+ define( function() {
2
+ "use strict";
3
+
4
+ return function isFunction( obj ) {
5
+
6
+ // Support: Chrome <=57, Firefox <=52
7
+ // In some browsers, typeof returns "function" for HTML <object> elements
8
+ // (i.e., `typeof document.createElement( "object" ) === "function"`).
9
+ // We don't want to classify *any* DOM node as a function.
10
+ return typeof obj === "function" && typeof obj.nodeType !== "number";
11
+ };
12
+
13
+ } );