mdarray-sol 0.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +35 -0
- data/LICENSE.txt~ +73 -0
- data/README.md +140 -0
- data/README.md~ +290 -0
- data/Rakefile +80 -0
- data/config.rb +223 -0
- data/doc/Nashorn.html +1406 -0
- data/doc/Sol.html +692 -0
- data/doc/Sol/BarChart.html +181 -0
- data/doc/Sol/BaseChart.html +799 -0
- data/doc/Sol/Bootstrap.html +1134 -0
- data/doc/Sol/Bridge.html +448 -0
- data/doc/Sol/Chart.html +1162 -0
- data/doc/Sol/CoordinateChart.html +673 -0
- data/doc/Sol/DCFX.html +807 -0
- data/doc/Sol/Dashboard.html +1967 -0
- data/doc/Sol/ExecMessages.html +332 -0
- data/doc/Sol/GuiCommunication.html +230 -0
- data/doc/Sol/Interval.html +1213 -0
- data/doc/Sol/JS.html +448 -0
- data/doc/Sol/LineChart.html +344 -0
- data/doc/Sol/LinearScale.html +334 -0
- data/doc/Sol/Margins.html +219 -0
- data/doc/Sol/OrdinalScale.html +263 -0
- data/doc/Sol/ReadBuffer.html +302 -0
- data/doc/Sol/Scale.html +462 -0
- data/doc/Sol/Stack.html +199 -0
- data/doc/Sol/TimeScale.html +396 -0
- data/doc/_index.html +362 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +95 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +95 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +849 -0
- data/doc/top-level-namespace.html +135 -0
- data/examples/bar_chart/bar_chart.rb +268 -0
- data/examples/bar_plot.rb +96 -0
- data/examples/charts/area.rb +25 -0
- data/examples/charts/area_script.rb +69 -0
- data/examples/charts/env.rb +8 -0
- data/examples/charts/monthly-move.csv +6725 -0
- data/examples/charts/morley.csv +101 -0
- data/examples/charts/morley2.csv +81 -0
- data/examples/charts/morley3.csv +121 -0
- data/examples/d3_tutorial.rb +98 -0
- data/examples/sc_plot.rb +57 -0
- data/examples/scatterplot/axes.rb +111 -0
- data/examples/scatterplot/scatterplot.rb +221 -0
- data/examples/us_states/map.rb +90 -0
- data/examples/us_states/us-ag-productivity2004.csv +49 -0
- data/examples/us_states/us-cities.csv +51 -0
- data/examples/util/linear_scale.rb +83 -0
- data/examples/util/ordinal_scale.rb +72 -0
- data/init.rb +39 -0
- data/lib/jx/array_handler.js +70 -0
- data/lib/jx/callback.rb +255 -0
- data/lib/jx/hash_handler.js +87 -0
- data/lib/jx/irbobject.rb +121 -0
- data/lib/jx/js.rb +442 -0
- data/lib/jx/js_array.rb +31 -0
- data/lib/jx/js_hash.rb +76 -0
- data/lib/jx/js_init.rb +62 -0
- data/lib/jx/jsarray.rb +66 -0
- data/lib/jx/jsfunction.rb +73 -0
- data/lib/jx/jsobject.rb +188 -0
- data/lib/jx/jsstyle_sheet.rb +231 -0
- data/lib/jx/jsundefined.rb +46 -0
- data/lib/jx/proxy_array.rb +62 -0
- data/lib/jx/rbobject.rb +80 -0
- data/lib/jx/ruby_proxy.js +176 -0
- data/lib/jx/ruby_rich.js +70 -0
- data/lib/jx/sol.rb +109 -0
- data/lib/mdarray-sol.rb +34 -0
- data/lib/mdarray/jsmdarray.rb +39 -0
- data/lib/ruby_rich/bootstrap.rb +230 -0
- data/lib/ruby_rich/config.html +22 -0
- data/lib/ruby_rich/dashboard.rb +299 -0
- data/lib/ruby_rich/ruby_rich.rb +120 -0
- data/lib/sol/bar_chart.rb +35 -0
- data/lib/sol/base_chart.rb +148 -0
- data/lib/sol/chart.rb +138 -0
- data/lib/sol/coordinate_chart.rb +128 -0
- data/lib/sol/interval.rb +156 -0
- data/lib/sol/line_chart.rb +58 -0
- data/lib/sol/margins.rb +52 -0
- data/lib/sol/scale.rb +212 -0
- data/lib/sol/stack.rb +44 -0
- data/node_modules/bootstrap/Gruntfile.js +533 -0
- data/node_modules/bootstrap/dist/js/bootstrap.js +2363 -0
- data/node_modules/bootstrap/dist/js/bootstrap.min.js +7 -0
- data/node_modules/bootstrap/dist/js/npm.js +13 -0
- data/node_modules/bootstrap/grunt/bs-commonjs-generator.js +30 -0
- data/node_modules/bootstrap/grunt/bs-glyphicons-data-generator.js +42 -0
- data/node_modules/bootstrap/grunt/bs-lessdoc-parser.js +237 -0
- data/node_modules/bootstrap/grunt/bs-raw-files-generator.js +44 -0
- data/node_modules/bootstrap/js/affix.js +162 -0
- data/node_modules/bootstrap/js/alert.js +94 -0
- data/node_modules/bootstrap/js/button.js +120 -0
- data/node_modules/bootstrap/js/carousel.js +237 -0
- data/node_modules/bootstrap/js/collapse.js +211 -0
- data/node_modules/bootstrap/js/dropdown.js +165 -0
- data/node_modules/bootstrap/js/modal.js +337 -0
- data/node_modules/bootstrap/js/popover.js +108 -0
- data/node_modules/bootstrap/js/scrollspy.js +172 -0
- data/node_modules/bootstrap/js/tab.js +155 -0
- data/node_modules/bootstrap/js/tooltip.js +514 -0
- data/node_modules/bootstrap/js/transition.js +59 -0
- data/node_modules/chai/chai.js +6142 -0
- data/node_modules/chai/index.js +1 -0
- data/node_modules/chai/karma.conf.js +28 -0
- data/node_modules/chai/karma.sauce.js +41 -0
- data/node_modules/chai/lib/chai.js +93 -0
- data/node_modules/chai/lib/chai/assertion.js +131 -0
- data/node_modules/chai/lib/chai/config.js +55 -0
- data/node_modules/chai/lib/chai/core/assertions.js +1860 -0
- data/node_modules/chai/lib/chai/interface/assert.js +1645 -0
- data/node_modules/chai/lib/chai/interface/expect.js +34 -0
- data/node_modules/chai/lib/chai/interface/should.js +201 -0
- data/node_modules/chai/lib/chai/utils/addChainableMethod.js +112 -0
- data/node_modules/chai/lib/chai/utils/addMethod.js +44 -0
- data/node_modules/chai/lib/chai/utils/addProperty.js +48 -0
- data/node_modules/chai/lib/chai/utils/expectTypes.js +42 -0
- data/node_modules/chai/lib/chai/utils/flag.js +33 -0
- data/node_modules/chai/lib/chai/utils/getActual.js +20 -0
- data/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +26 -0
- data/node_modules/chai/lib/chai/utils/getMessage.js +51 -0
- data/node_modules/chai/lib/chai/utils/getName.js +22 -0
- data/node_modules/chai/lib/chai/utils/getPathInfo.js +111 -0
- data/node_modules/chai/lib/chai/utils/getPathValue.js +43 -0
- data/node_modules/chai/lib/chai/utils/getProperties.js +36 -0
- data/node_modules/chai/lib/chai/utils/hasProperty.js +64 -0
- data/node_modules/chai/lib/chai/utils/index.js +130 -0
- data/node_modules/chai/lib/chai/utils/inspect.js +335 -0
- data/node_modules/chai/lib/chai/utils/objDisplay.js +50 -0
- data/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +54 -0
- data/node_modules/chai/lib/chai/utils/overwriteMethod.js +52 -0
- data/node_modules/chai/lib/chai/utils/overwriteProperty.js +55 -0
- data/node_modules/chai/lib/chai/utils/test.js +28 -0
- data/node_modules/chai/lib/chai/utils/transferFlags.js +45 -0
- data/node_modules/chai/node_modules/assertion-error/index.js +116 -0
- data/node_modules/chai/node_modules/deep-eql/index.js +1 -0
- data/node_modules/chai/node_modules/deep-eql/karma.conf.js +20 -0
- data/node_modules/chai/node_modules/deep-eql/lib/eql.js +257 -0
- data/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/index.js +1 -0
- data/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/lib/type.js +142 -0
- data/node_modules/chai/node_modules/type-detect/index.js +1 -0
- data/node_modules/chai/node_modules/type-detect/lib/type.js +134 -0
- data/node_modules/chai/sauce.browsers.js +128 -0
- data/node_modules/dc/Gruntfile.js +437 -0
- data/node_modules/dc/dc.js +10477 -0
- data/node_modules/dc/dc.min.js +23 -0
- data/node_modules/dc/docs/coverage.js +203 -0
- data/node_modules/dc/grunt/format-file-list.js +33 -0
- data/node_modules/dc/index.js +5 -0
- data/node_modules/dc/node_modules/crossfilter2/crossfilter.js +1401 -0
- data/node_modules/dc/node_modules/crossfilter2/crossfilter.min.js +1 -0
- data/node_modules/dc/node_modules/crossfilter2/index.js +1 -0
- data/node_modules/dc/node_modules/crossfilter2/src/array.js +46 -0
- data/node_modules/dc/node_modules/crossfilter2/src/bisect.js +44 -0
- data/node_modules/dc/node_modules/crossfilter2/src/crossfilter.js +872 -0
- data/node_modules/dc/node_modules/crossfilter2/src/filter.js +19 -0
- data/node_modules/dc/node_modules/crossfilter2/src/heap.js +44 -0
- data/node_modules/dc/node_modules/crossfilter2/src/heapselect.js +36 -0
- data/node_modules/dc/node_modules/crossfilter2/src/identity.js +3 -0
- data/node_modules/dc/node_modules/crossfilter2/src/insertionsort.js +18 -0
- data/node_modules/dc/node_modules/crossfilter2/src/null.js +3 -0
- data/node_modules/dc/node_modules/crossfilter2/src/permute.js +8 -0
- data/node_modules/dc/node_modules/crossfilter2/src/quicksort.js +283 -0
- data/node_modules/dc/node_modules/crossfilter2/src/reduce.js +19 -0
- data/node_modules/dc/node_modules/crossfilter2/src/zero.js +3 -0
- data/node_modules/dc/node_modules/d3/d3.js +9554 -0
- data/node_modules/dc/node_modules/d3/d3.min.js +5 -0
- data/node_modules/dc/node_modules/d3/package.js +13 -0
- data/node_modules/dc/node_modules/d3/src/arrays/ascending.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/bisect.js +36 -0
- data/node_modules/dc/node_modules/d3/src/arrays/descending.js +3 -0
- data/node_modules/dc/node_modules/d3/src/arrays/deviation.js +6 -0
- data/node_modules/dc/node_modules/d3/src/arrays/entries.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/extent.js +21 -0
- data/node_modules/dc/node_modules/d3/src/arrays/index.js +25 -0
- data/node_modules/dc/node_modules/d3/src/arrays/keys.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/map.js +84 -0
- data/node_modules/dc/node_modules/d3/src/arrays/max.js +14 -0
- data/node_modules/dc/node_modules/d3/src/arrays/mean.js +15 -0
- data/node_modules/dc/node_modules/d3/src/arrays/median.js +16 -0
- data/node_modules/dc/node_modules/d3/src/arrays/merge.js +21 -0
- data/node_modules/dc/node_modules/d3/src/arrays/min.js +14 -0
- data/node_modules/dc/node_modules/d3/src/arrays/nest.js +97 -0
- data/node_modules/dc/node_modules/d3/src/arrays/pairs.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/permute.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/quantile.js +8 -0
- data/node_modules/dc/node_modules/d3/src/arrays/range.js +26 -0
- data/node_modules/dc/node_modules/d3/src/arrays/set.js +27 -0
- data/node_modules/dc/node_modules/d3/src/arrays/shuffle.js +9 -0
- data/node_modules/dc/node_modules/d3/src/arrays/sum.js +14 -0
- data/node_modules/dc/node_modules/d3/src/arrays/transpose.js +15 -0
- data/node_modules/dc/node_modules/d3/src/arrays/values.js +5 -0
- data/node_modules/dc/node_modules/d3/src/arrays/variance.js +29 -0
- data/node_modules/dc/node_modules/d3/src/arrays/zip.js +5 -0
- data/node_modules/dc/node_modules/d3/src/behavior/behavior.js +1 -0
- data/node_modules/dc/node_modules/d3/src/behavior/drag.js +88 -0
- data/node_modules/dc/node_modules/d3/src/behavior/index.js +3 -0
- data/node_modules/dc/node_modules/d3/src/behavior/zoom.js +348 -0
- data/node_modules/dc/node_modules/d3/src/color/color.js +7 -0
- data/node_modules/dc/node_modules/d3/src/color/hcl.js +34 -0
- data/node_modules/dc/node_modules/d3/src/color/hsl.js +56 -0
- data/node_modules/dc/node_modules/d3/src/color/index.js +6 -0
- data/node_modules/dc/node_modules/d3/src/color/lab.js +60 -0
- data/node_modules/dc/node_modules/d3/src/color/rgb.js +301 -0
- data/node_modules/dc/node_modules/d3/src/color/xyz.js +7 -0
- data/node_modules/dc/node_modules/d3/src/compat/array.js +15 -0
- data/node_modules/dc/node_modules/d3/src/compat/date.js +3 -0
- data/node_modules/dc/node_modules/d3/src/compat/index.js +3 -0
- data/node_modules/dc/node_modules/d3/src/compat/style.js +23 -0
- data/node_modules/dc/node_modules/d3/src/core/array.js +2 -0
- data/node_modules/dc/node_modules/d3/src/core/class.js +8 -0
- data/node_modules/dc/node_modules/d3/src/core/document.js +15 -0
- data/node_modules/dc/node_modules/d3/src/core/functor.js +5 -0
- data/node_modules/dc/node_modules/d3/src/core/identity.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/index.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/noop.js +1 -0
- data/node_modules/dc/node_modules/d3/src/core/ns.js +18 -0
- data/node_modules/dc/node_modules/d3/src/core/rebind.js +16 -0
- data/node_modules/dc/node_modules/d3/src/core/source.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/subclass.js +11 -0
- data/node_modules/dc/node_modules/d3/src/core/target.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/true.js +3 -0
- data/node_modules/dc/node_modules/d3/src/core/vendor.js +10 -0
- data/node_modules/dc/node_modules/d3/src/core/zero.js +3 -0
- data/node_modules/dc/node_modules/d3/src/d3.js +23 -0
- data/node_modules/dc/node_modules/d3/src/dsv/csv.js +3 -0
- data/node_modules/dc/node_modules/d3/src/dsv/dsv.js +136 -0
- data/node_modules/dc/node_modules/d3/src/dsv/index.js +3 -0
- data/node_modules/dc/node_modules/d3/src/dsv/tsv.js +3 -0
- data/node_modules/dc/node_modules/d3/src/end.js +4 -0
- data/node_modules/dc/node_modules/d3/src/event/dispatch.js +69 -0
- data/node_modules/dc/node_modules/d3/src/event/drag.js +36 -0
- data/node_modules/dc/node_modules/d3/src/event/event.js +50 -0
- data/node_modules/dc/node_modules/d3/src/event/index.js +6 -0
- data/node_modules/dc/node_modules/d3/src/event/mouse.js +39 -0
- data/node_modules/dc/node_modules/d3/src/event/timer.js +82 -0
- data/node_modules/dc/node_modules/d3/src/event/touch.js +11 -0
- data/node_modules/dc/node_modules/d3/src/event/touches.js +12 -0
- data/node_modules/dc/node_modules/d3/src/format/collapse.js +3 -0
- data/node_modules/dc/node_modules/d3/src/format/format.js +3 -0
- data/node_modules/dc/node_modules/d3/src/format/formatPrefix.js +24 -0
- data/node_modules/dc/node_modules/d3/src/format/index.js +4 -0
- data/node_modules/dc/node_modules/d3/src/format/precision.js +3 -0
- data/node_modules/dc/node_modules/d3/src/format/requote.js +5 -0
- data/node_modules/dc/node_modules/d3/src/format/round.js +5 -0
- data/node_modules/dc/node_modules/d3/src/geo/albers-usa.js +129 -0
- data/node_modules/dc/node_modules/d3/src/geo/albers.js +11 -0
- data/node_modules/dc/node_modules/d3/src/geo/area.js +69 -0
- data/node_modules/dc/node_modules/d3/src/geo/azimuthal-equal-area.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/azimuthal-equidistant.js +13 -0
- data/node_modules/dc/node_modules/d3/src/geo/azimuthal.js +25 -0
- data/node_modules/dc/node_modules/d3/src/geo/bounds.js +168 -0
- data/node_modules/dc/node_modules/d3/src/geo/cartesian.js +47 -0
- data/node_modules/dc/node_modules/d3/src/geo/centroid.js +149 -0
- data/node_modules/dc/node_modules/d3/src/geo/circle.js +81 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip-antimeridian.js +95 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip-circle.js +178 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip-extent.js +196 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip-polygon.js +104 -0
- data/node_modules/dc/node_modules/d3/src/geo/clip.js +149 -0
- data/node_modules/dc/node_modules/d3/src/geo/compose.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/conic-conformal.js +39 -0
- data/node_modules/dc/node_modules/d3/src/geo/conic-equal-area.js +33 -0
- data/node_modules/dc/node_modules/d3/src/geo/conic-equidistant.js +36 -0
- data/node_modules/dc/node_modules/d3/src/geo/conic.js +16 -0
- data/node_modules/dc/node_modules/d3/src/geo/distance.js +13 -0
- data/node_modules/dc/node_modules/d3/src/geo/equirectangular.js +10 -0
- data/node_modules/dc/node_modules/d3/src/geo/geo.js +1 -0
- data/node_modules/dc/node_modules/d3/src/geo/gnomonic.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/graticule.js +103 -0
- data/node_modules/dc/node_modules/d3/src/geo/greatArc.js +42 -0
- data/node_modules/dc/node_modules/d3/src/geo/index.js +33 -0
- data/node_modules/dc/node_modules/d3/src/geo/interpolate.js +38 -0
- data/node_modules/dc/node_modules/d3/src/geo/length.js +44 -0
- data/node_modules/dc/node_modules/d3/src/geo/mercator.js +48 -0
- data/node_modules/dc/node_modules/d3/src/geo/orthographic.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-area.js +41 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-bounds.js +21 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-buffer.js +59 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-centroid.js +78 -0
- data/node_modules/dc/node_modules/d3/src/geo/path-context.js +49 -0
- data/node_modules/dc/node_modules/d3/src/geo/path.js +87 -0
- data/node_modules/dc/node_modules/d3/src/geo/point-in-polygon.js +71 -0
- data/node_modules/dc/node_modules/d3/src/geo/projection.js +121 -0
- data/node_modules/dc/node_modules/d3/src/geo/resample.js +109 -0
- data/node_modules/dc/node_modules/d3/src/geo/rotation.js +79 -0
- data/node_modules/dc/node_modules/d3/src/geo/spherical.js +13 -0
- data/node_modules/dc/node_modules/d3/src/geo/stereographic.js +12 -0
- data/node_modules/dc/node_modules/d3/src/geo/stream.js +71 -0
- data/node_modules/dc/node_modules/d3/src/geo/transform.js +36 -0
- data/node_modules/dc/node_modules/d3/src/geo/transverse-mercator.js +31 -0
- data/node_modules/dc/node_modules/d3/src/geom/clip-line.js +66 -0
- data/node_modules/dc/node_modules/d3/src/geom/delaunay.js +6 -0
- data/node_modules/dc/node_modules/d3/src/geom/geom.js +1 -0
- data/node_modules/dc/node_modules/d3/src/geom/hull.js +91 -0
- data/node_modules/dc/node_modules/d3/src/geom/index.js +6 -0
- data/node_modules/dc/node_modules/d3/src/geom/point.js +7 -0
- data/node_modules/dc/node_modules/d3/src/geom/polygon.js +105 -0
- data/node_modules/dc/node_modules/d3/src/geom/quadtree.js +243 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi.js +110 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/beach.js +186 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/cell.js +64 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/circle.js +73 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/clip.js +80 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/edge.js +50 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/index.js +59 -0
- data/node_modules/dc/node_modules/d3/src/geom/voronoi/red-black.js +235 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/array.js +19 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/ease.js +111 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/hcl.js +20 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/hsl.js +20 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/index.js +14 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/interpolate.js +26 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/lab.js +17 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/number.js +6 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/object.js +25 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/rgb.js +20 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/round.js +6 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/string.js +54 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/transform.js +59 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/uninterpolate.js +9 -0
- data/node_modules/dc/node_modules/d3/src/interpolate/zoom.js +53 -0
- data/node_modules/dc/node_modules/d3/src/layout/bundle.js +59 -0
- data/node_modules/dc/node_modules/d3/src/layout/chord.js +157 -0
- data/node_modules/dc/node_modules/d3/src/layout/cluster.js +92 -0
- data/node_modules/dc/node_modules/d3/src/layout/force.js +372 -0
- data/node_modules/dc/node_modules/d3/src/layout/hierarchy.js +136 -0
- data/node_modules/dc/node_modules/d3/src/layout/histogram.js +110 -0
- data/node_modules/dc/node_modules/d3/src/layout/index.js +13 -0
- data/node_modules/dc/node_modules/d3/src/layout/layout.js +1 -0
- data/node_modules/dc/node_modules/d3/src/layout/pack.js +211 -0
- data/node_modules/dc/node_modules/d3/src/layout/partition.js +51 -0
- data/node_modules/dc/node_modules/d3/src/layout/pie.js +78 -0
- data/node_modules/dc/node_modules/d3/src/layout/stack.js +247 -0
- data/node_modules/dc/node_modules/d3/src/layout/tree.js +240 -0
- data/node_modules/dc/node_modules/d3/src/layout/treemap.js +229 -0
- data/node_modules/dc/node_modules/d3/src/locale/ca-ES.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/de-CH.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/de-DE.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/en-CA.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/en-GB.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/en-US.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/es-ES.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/fi-FI.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/fr-CA.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/fr-FR.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/he-IL.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/hu-HU.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/it-IT.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/ja-JP.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/ko-KR.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/locale.js +9 -0
- data/node_modules/dc/node_modules/d3/src/locale/mk-MK.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/nl-NL.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/number-format.js +155 -0
- data/node_modules/dc/node_modules/d3/src/locale/pl-PL.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/pt-BR.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/ru-RU.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/sv-SE.js +16 -0
- data/node_modules/dc/node_modules/d3/src/locale/time-format.js +370 -0
- data/node_modules/dc/node_modules/d3/src/locale/time-scale.js +0 -0
- data/node_modules/dc/node_modules/d3/src/locale/zh-CN.js +16 -0
- data/node_modules/dc/node_modules/d3/src/math/abs.js +1 -0
- data/node_modules/dc/node_modules/d3/src/math/adder.js +34 -0
- data/node_modules/dc/node_modules/d3/src/math/index.js +2 -0
- data/node_modules/dc/node_modules/d3/src/math/number.js +7 -0
- data/node_modules/dc/node_modules/d3/src/math/random.js +34 -0
- data/node_modules/dc/node_modules/d3/src/math/transform.js +64 -0
- data/node_modules/dc/node_modules/d3/src/math/trigonometry.js +44 -0
- data/node_modules/dc/node_modules/d3/src/scale/bilinear.js +7 -0
- data/node_modules/dc/node_modules/d3/src/scale/category.js +58 -0
- data/node_modules/dc/node_modules/d3/src/scale/identity.js +33 -0
- data/node_modules/dc/node_modules/d3/src/scale/index.js +11 -0
- data/node_modules/dc/node_modules/d3/src/scale/linear.js +160 -0
- data/node_modules/dc/node_modules/d3/src/scale/log.js +92 -0
- data/node_modules/dc/node_modules/d3/src/scale/nice.js +30 -0
- data/node_modules/dc/node_modules/d3/src/scale/ordinal.js +102 -0
- data/node_modules/dc/node_modules/d3/src/scale/polylinear.js +24 -0
- data/node_modules/dc/node_modules/d3/src/scale/pow.js +57 -0
- data/node_modules/dc/node_modules/d3/src/scale/quantile.js +55 -0
- data/node_modules/dc/node_modules/d3/src/scale/quantize.js +44 -0
- data/node_modules/dc/node_modules/d3/src/scale/scale.js +10 -0
- data/node_modules/dc/node_modules/d3/src/scale/sqrt.js +6 -0
- data/node_modules/dc/node_modules/d3/src/scale/threshold.js +36 -0
- data/node_modules/dc/node_modules/d3/src/selection/append.js +28 -0
- data/node_modules/dc/node_modules/d3/src/selection/attr.js +62 -0
- data/node_modules/dc/node_modules/d3/src/selection/call.js +8 -0
- data/node_modules/dc/node_modules/d3/src/selection/classed.js +76 -0
- data/node_modules/dc/node_modules/d3/src/selection/data.js +117 -0
- data/node_modules/dc/node_modules/d3/src/selection/datum.js +7 -0
- data/node_modules/dc/node_modules/d3/src/selection/each.js +16 -0
- data/node_modules/dc/node_modules/d3/src/selection/empty.js +5 -0
- data/node_modules/dc/node_modules/d3/src/selection/enter-insert.js +20 -0
- data/node_modules/dc/node_modules/d3/src/selection/enter-select.js +27 -0
- data/node_modules/dc/node_modules/d3/src/selection/enter.js +21 -0
- data/node_modules/dc/node_modules/d3/src/selection/filter.js +28 -0
- data/node_modules/dc/node_modules/d3/src/selection/html.js +10 -0
- data/node_modules/dc/node_modules/d3/src/selection/index.js +1 -0
- data/node_modules/dc/node_modules/d3/src/selection/insert.js +9 -0
- data/node_modules/dc/node_modules/d3/src/selection/interrupt.js +27 -0
- data/node_modules/dc/node_modules/d3/src/selection/node.js +11 -0
- data/node_modules/dc/node_modules/d3/src/selection/on.js +106 -0
- data/node_modules/dc/node_modules/d3/src/selection/order.js +13 -0
- data/node_modules/dc/node_modules/d3/src/selection/property.js +43 -0
- data/node_modules/dc/node_modules/d3/src/selection/remove.js +13 -0
- data/node_modules/dc/node_modules/d3/src/selection/select.js +32 -0
- data/node_modules/dc/node_modules/d3/src/selection/selectAll.js +27 -0
- data/node_modules/dc/node_modules/d3/src/selection/selection.js +81 -0
- data/node_modules/dc/node_modules/d3/src/selection/size.js +7 -0
- data/node_modules/dc/node_modules/d3/src/selection/sort.js +15 -0
- data/node_modules/dc/node_modules/d3/src/selection/style.js +59 -0
- data/node_modules/dc/node_modules/d3/src/selection/text.js +10 -0
- data/node_modules/dc/node_modules/d3/src/selection/transition.js +21 -0
- data/node_modules/dc/node_modules/d3/src/start.js +2 -0
- data/node_modules/dc/node_modules/d3/src/svg/arc.js +292 -0
- data/node_modules/dc/node_modules/d3/src/svg/area-radial.js +14 -0
- data/node_modules/dc/node_modules/d3/src/svg/area.js +121 -0
- data/node_modules/dc/node_modules/d3/src/svg/axis.js +160 -0
- data/node_modules/dc/node_modules/d3/src/svg/brush.js +429 -0
- data/node_modules/dc/node_modules/d3/src/svg/chord.js +90 -0
- data/node_modules/dc/node_modules/d3/src/svg/diagonal-radial.js +27 -0
- data/node_modules/dc/node_modules/d3/src/svg/diagonal.js +43 -0
- data/node_modules/dc/node_modules/d3/src/svg/index.js +12 -0
- data/node_modules/dc/node_modules/d3/src/svg/line-radial.js +27 -0
- data/node_modules/dc/node_modules/d3/src/svg/line.js +432 -0
- data/node_modules/dc/node_modules/d3/src/svg/svg.js +1 -0
- data/node_modules/dc/node_modules/d3/src/svg/symbol.js +105 -0
- data/node_modules/dc/node_modules/d3/src/time/day.js +21 -0
- data/node_modules/dc/node_modules/d3/src/time/format-iso.js +19 -0
- data/node_modules/dc/node_modules/d3/src/time/format-utc.js +3 -0
- data/node_modules/dc/node_modules/d3/src/time/format.js +4 -0
- data/node_modules/dc/node_modules/d3/src/time/hour.js +14 -0
- data/node_modules/dc/node_modules/d3/src/time/index.js +14 -0
- data/node_modules/dc/node_modules/d3/src/time/interval.js +71 -0
- data/node_modules/dc/node_modules/d3/src/time/minute.js +13 -0
- data/node_modules/dc/node_modules/d3/src/time/month.js +16 -0
- data/node_modules/dc/node_modules/d3/src/time/scale-utc.js +25 -0
- data/node_modules/dc/node_modules/d3/src/time/scale.js +155 -0
- data/node_modules/dc/node_modules/d3/src/time/second.js +13 -0
- data/node_modules/dc/node_modules/d3/src/time/time.js +33 -0
- data/node_modules/dc/node_modules/d3/src/time/week.js +31 -0
- data/node_modules/dc/node_modules/d3/src/time/year.js +16 -0
- data/node_modules/dc/node_modules/d3/src/transition/attr.js +58 -0
- data/node_modules/dc/node_modules/d3/src/transition/delay.js +10 -0
- data/node_modules/dc/node_modules/d3/src/transition/duration.js +10 -0
- data/node_modules/dc/node_modules/d3/src/transition/each.js +26 -0
- data/node_modules/dc/node_modules/d3/src/transition/ease.js +10 -0
- data/node_modules/dc/node_modules/d3/src/transition/filter.js +22 -0
- data/node_modules/dc/node_modules/d3/src/transition/index.js +1 -0
- data/node_modules/dc/node_modules/d3/src/transition/remove.js +9 -0
- data/node_modules/dc/node_modules/d3/src/transition/select.js +28 -0
- data/node_modules/dc/node_modules/d3/src/transition/selectAll.js +31 -0
- data/node_modules/dc/node_modules/d3/src/transition/style.js +53 -0
- data/node_modules/dc/node_modules/d3/src/transition/subtransition.js +25 -0
- data/node_modules/dc/node_modules/d3/src/transition/text.js +11 -0
- data/node_modules/dc/node_modules/d3/src/transition/transition.js +161 -0
- data/node_modules/dc/node_modules/d3/src/transition/tween.js +17 -0
- data/node_modules/dc/node_modules/d3/src/xhr/html.js +12 -0
- data/node_modules/dc/node_modules/d3/src/xhr/index.js +5 -0
- data/node_modules/dc/node_modules/d3/src/xhr/json.js +9 -0
- data/node_modules/dc/node_modules/d3/src/xhr/text.js +5 -0
- data/node_modules/dc/node_modules/d3/src/xhr/xhr.js +126 -0
- data/node_modules/dc/node_modules/d3/src/xhr/xml.js +5 -0
- data/node_modules/dc/regression/inject-serializer.js +6 -0
- data/node_modules/dc/regression/stock-regression-test.js +140 -0
- data/node_modules/dc/spec/bar-chart-spec.js +1230 -0
- data/node_modules/dc/spec/base-mixin-spec.js +611 -0
- data/node_modules/dc/spec/biggish-data-spec.js +136 -0
- data/node_modules/dc/spec/box-plot-spec.js +211 -0
- data/node_modules/dc/spec/bubble-chart-spec.js +450 -0
- data/node_modules/dc/spec/bubble-overlay-spec.js +102 -0
- data/node_modules/dc/spec/color-spec.js +89 -0
- data/node_modules/dc/spec/composite-chart-spec.js +691 -0
- data/node_modules/dc/spec/coordinate-grid-chart-spec.js +962 -0
- data/node_modules/dc/spec/core-spec.js +301 -0
- data/node_modules/dc/spec/data-addition-spec.js +122 -0
- data/node_modules/dc/spec/data-count-spec.js +180 -0
- data/node_modules/dc/spec/data-grid-spec.js +124 -0
- data/node_modules/dc/spec/data-table-spec.js +251 -0
- data/node_modules/dc/spec/event-spec.js +41 -0
- data/node_modules/dc/spec/filter-dates-spec.js +92 -0
- data/node_modules/dc/spec/filters-spec.js +140 -0
- data/node_modules/dc/spec/geo-choropleth-chart-spec.js +225 -0
- data/node_modules/dc/spec/heatmap-spec.js +363 -0
- data/node_modules/dc/spec/helpers/custom_matchers.js +213 -0
- data/node_modules/dc/spec/helpers/fixtures.js +81 -0
- data/node_modules/dc/spec/helpers/geoFixtures.js +113 -0
- data/node_modules/dc/spec/helpers/load-jsreporter.js +37 -0
- data/node_modules/dc/spec/helpers/spec-helper.js +53 -0
- data/node_modules/dc/spec/legend-spec.js +266 -0
- data/node_modules/dc/spec/line-chart-spec.js +709 -0
- data/node_modules/dc/spec/logger-spec.js +80 -0
- data/node_modules/dc/spec/number-display-spec.js +168 -0
- data/node_modules/dc/spec/pie-chart-spec.js +677 -0
- data/node_modules/dc/spec/row-chart-spec.js +362 -0
- data/node_modules/dc/spec/scatter-plot-spec.js +336 -0
- data/node_modules/dc/spec/series-chart-spec.js +133 -0
- data/node_modules/dc/spec/utils-spec.js +110 -0
- data/node_modules/dc/src/banner.js +2 -0
- data/node_modules/dc/src/bar-chart.js +374 -0
- data/node_modules/dc/src/base-mixin.js +1478 -0
- data/node_modules/dc/src/box-plot.js +240 -0
- data/node_modules/dc/src/bubble-chart.js +177 -0
- data/node_modules/dc/src/bubble-mixin.js +244 -0
- data/node_modules/dc/src/bubble-overlay.js +207 -0
- data/node_modules/dc/src/cap-mixin.js +151 -0
- data/node_modules/dc/src/color-mixin.js +172 -0
- data/node_modules/dc/src/composite-chart.js +544 -0
- data/node_modules/dc/src/coordinate-grid-mixin.js +1300 -0
- data/node_modules/dc/src/core.js +425 -0
- data/node_modules/dc/src/d3.box.js +317 -0
- data/node_modules/dc/src/data-count.js +110 -0
- data/node_modules/dc/src/data-grid.js +243 -0
- data/node_modules/dc/src/data-table.js +419 -0
- data/node_modules/dc/src/errors.js +28 -0
- data/node_modules/dc/src/events.js +37 -0
- data/node_modules/dc/src/filters.js +124 -0
- data/node_modules/dc/src/footer.js +35 -0
- data/node_modules/dc/src/geo-choropleth-chart.js +279 -0
- data/node_modules/dc/src/heatmap.js +378 -0
- data/node_modules/dc/src/legend.js +277 -0
- data/node_modules/dc/src/line-chart.js +504 -0
- data/node_modules/dc/src/logger.js +40 -0
- data/node_modules/dc/src/margin-mixin.js +44 -0
- data/node_modules/dc/src/number-display.js +141 -0
- data/node_modules/dc/src/pie-chart.js +571 -0
- data/node_modules/dc/src/row-chart.js +425 -0
- data/node_modules/dc/src/scatter-plot.js +338 -0
- data/node_modules/dc/src/series-chart.js +192 -0
- data/node_modules/dc/src/stack-mixin.js +319 -0
- data/node_modules/dc/src/utils.js +290 -0
- data/node_modules/dc/web/docs/html/scripts/docstrap.lib.js +11 -0
- data/node_modules/dc/web/docs/html/scripts/fulltext-search-ui.js +89 -0
- data/node_modules/dc/web/docs/html/scripts/fulltext-search.js +36 -0
- data/node_modules/dc/web/docs/html/scripts/lunr.min.js +7 -0
- data/node_modules/dc/web/docs/html/scripts/prettify/jquery.min.js +6 -0
- data/node_modules/dc/web/docs/html/scripts/prettify/lang-css.js +21 -0
- data/node_modules/dc/web/docs/html/scripts/prettify/prettify.js +496 -0
- data/node_modules/dc/web/docs/html/scripts/sunlight.js +1157 -0
- data/node_modules/dc/web/docs/html/scripts/toc.js +203 -0
- data/node_modules/dc/web/ep/list.js +106 -0
- data/node_modules/dc/web/examples/lysenko-interval-tree.js +447 -0
- data/node_modules/dc/web/highlighter/shAutoloader.js +17 -0
- data/node_modules/dc/web/highlighter/shBrushJScript.js +52 -0
- data/node_modules/dc/web/highlighter/shBrushXml.js +69 -0
- data/node_modules/dc/web/highlighter/shCore.js +17 -0
- data/node_modules/dc/web/js/colorbrewer.js +1 -0
- data/node_modules/dc/web/js/crossfilter.js +1401 -0
- data/node_modules/dc/web/js/d3.js +9554 -0
- data/node_modules/dc/web/js/dc.js +10477 -0
- data/node_modules/dc/web/js/dc.min.js +23 -0
- data/node_modules/dc/web/js/env-data.js +218 -0
- data/node_modules/dc/web/js/jasmine-jsreporter.js +394 -0
- data/node_modules/dc/web/stock.js +685 -0
- data/node_modules/dc/web/transitions/transition-test.js +45 -0
- data/node_modules/jquery/dist/jquery.js +9814 -0
- data/node_modules/jquery/dist/jquery.min.js +4 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/node_modules/jquery/src/ajax.js +845 -0
- data/node_modules/jquery/src/ajax/jsonp.js +100 -0
- data/node_modules/jquery/src/ajax/load.js +83 -0
- data/node_modules/jquery/src/ajax/parseJSON.js +13 -0
- data/node_modules/jquery/src/ajax/parseXML.js +27 -0
- data/node_modules/jquery/src/ajax/script.js +68 -0
- data/node_modules/jquery/src/ajax/var/location.js +3 -0
- data/node_modules/jquery/src/ajax/var/nonce.js +5 -0
- data/node_modules/jquery/src/ajax/var/rquery.js +3 -0
- data/node_modules/jquery/src/ajax/xhr.js +167 -0
- data/node_modules/jquery/src/attributes.js +11 -0
- data/node_modules/jquery/src/attributes/attr.js +142 -0
- data/node_modules/jquery/src/attributes/classes.js +177 -0
- data/node_modules/jquery/src/attributes/prop.js +125 -0
- data/node_modules/jquery/src/attributes/support.js +36 -0
- data/node_modules/jquery/src/attributes/val.js +177 -0
- data/node_modules/jquery/src/callbacks.js +232 -0
- data/node_modules/jquery/src/core.js +494 -0
- data/node_modules/jquery/src/core/access.js +65 -0
- data/node_modules/jquery/src/core/init.js +134 -0
- data/node_modules/jquery/src/core/parseHTML.js +41 -0
- data/node_modules/jquery/src/core/ready.js +103 -0
- data/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
- data/node_modules/jquery/src/css.js +502 -0
- data/node_modules/jquery/src/css/addGetHookIf.js +24 -0
- data/node_modules/jquery/src/css/adjustCSS.js +65 -0
- data/node_modules/jquery/src/css/curCSS.js +60 -0
- data/node_modules/jquery/src/css/defaultDisplay.js +72 -0
- data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/node_modules/jquery/src/css/showHide.js +48 -0
- data/node_modules/jquery/src/css/support.js +121 -0
- data/node_modules/jquery/src/css/var/cssExpand.js +3 -0
- data/node_modules/jquery/src/css/var/getStyles.js +15 -0
- data/node_modules/jquery/src/css/var/isHidden.js +16 -0
- data/node_modules/jquery/src/css/var/rmargin.js +3 -0
- data/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
- data/node_modules/jquery/src/css/var/swap.js +24 -0
- data/node_modules/jquery/src/data.js +187 -0
- data/node_modules/jquery/src/data/Data.js +200 -0
- data/node_modules/jquery/src/data/var/acceptData.js +18 -0
- data/node_modules/jquery/src/data/var/dataPriv.js +5 -0
- data/node_modules/jquery/src/data/var/dataUser.js +5 -0
- data/node_modules/jquery/src/deferred.js +158 -0
- data/node_modules/jquery/src/deprecated.js +32 -0
- data/node_modules/jquery/src/dimensions.js +54 -0
- data/node_modules/jquery/src/effects.js +629 -0
- data/node_modules/jquery/src/effects/Tween.js +121 -0
- data/node_modules/jquery/src/effects/animatedSelector.js +13 -0
- data/node_modules/jquery/src/event.js +711 -0
- data/node_modules/jquery/src/event/ajax.js +20 -0
- data/node_modules/jquery/src/event/alias.js +27 -0
- data/node_modules/jquery/src/event/focusin.js +53 -0
- data/node_modules/jquery/src/event/support.js +9 -0
- data/node_modules/jquery/src/event/trigger.js +183 -0
- data/node_modules/jquery/src/exports/amd.js +24 -0
- data/node_modules/jquery/src/exports/global.js +26 -0
- data/node_modules/jquery/src/intro.js +44 -0
- data/node_modules/jquery/src/jquery.js +37 -0
- data/node_modules/jquery/src/manipulation.js +481 -0
- data/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
- data/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
- data/node_modules/jquery/src/manipulation/getAll.js +21 -0
- data/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/node_modules/jquery/src/manipulation/support.js +33 -0
- data/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
- data/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
- data/node_modules/jquery/src/offset.js +218 -0
- data/node_modules/jquery/src/outro.js +2 -0
- data/node_modules/jquery/src/queue.js +143 -0
- data/node_modules/jquery/src/queue/delay.js +22 -0
- data/node_modules/jquery/src/selector-native.js +211 -0
- data/node_modules/jquery/src/selector-sizzle.js +14 -0
- data/node_modules/jquery/src/selector.js +1 -0
- data/node_modules/jquery/src/serialize.js +125 -0
- data/node_modules/jquery/src/traversing.js +175 -0
- data/node_modules/jquery/src/traversing/findFilter.js +100 -0
- data/node_modules/jquery/src/traversing/var/dir.js +20 -0
- data/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/node_modules/jquery/src/traversing/var/siblings.js +15 -0
- data/node_modules/jquery/src/var/arr.js +3 -0
- data/node_modules/jquery/src/var/class2type.js +5 -0
- data/node_modules/jquery/src/var/concat.js +5 -0
- data/node_modules/jquery/src/var/document.js +3 -0
- data/node_modules/jquery/src/var/documentElement.js +5 -0
- data/node_modules/jquery/src/var/hasOwn.js +5 -0
- data/node_modules/jquery/src/var/indexOf.js +5 -0
- data/node_modules/jquery/src/var/pnum.js +3 -0
- data/node_modules/jquery/src/var/push.js +5 -0
- data/node_modules/jquery/src/var/rcssNum.js +7 -0
- data/node_modules/jquery/src/var/rnotwhite.js +3 -0
- data/node_modules/jquery/src/var/slice.js +5 -0
- data/node_modules/jquery/src/var/support.js +5 -0
- data/node_modules/jquery/src/var/toString.js +5 -0
- data/node_modules/jquery/src/wrap.js +79 -0
- data/target/mdarray_sol.jar +0 -0
- data/test/jx/test_complete.rb +35 -0
- data/test/jx/test_js.rb +543 -0
- data/test/jx/test_proxy_array.rb +239 -0
- data/test/jx/test_proxy_hash.rb +160 -0
- data/test/jx/test_proxy_lambda.rb +80 -0
- data/test/jx/test_rb_js_compat.rb +135 -0
- data/test/jx/test_style_sheets.rb +90 -0
- data/test/mdarray/test_mdarray.rb +75 -0
- data/util/cacert.pem +4095 -0
- data/util/download.rb +256 -0
- data/vendor/jxbrowser-6.8.jar +0 -0
- data/vendor/licence.jar +0 -0
- data/version.rb +2 -0
- metadata +817 -0
@@ -0,0 +1,3 @@
|
|
1
|
+
/*! Sizzle v2.2.1 | (c) jQuery Foundation, Inc. | jquery.org/license */
|
2
|
+
!function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=R.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),"function"==typeof define&&define.amd?define(function(){return fa}):"undefined"!=typeof module&&module.exports?module.exports=fa:a.Sizzle=fa}(window);
|
3
|
+
//# sourceMappingURL=sizzle.min.map
|
@@ -0,0 +1,845 @@
|
|
1
|
+
define( [
|
2
|
+
"./core",
|
3
|
+
"./var/document",
|
4
|
+
"./var/rnotwhite",
|
5
|
+
"./ajax/var/location",
|
6
|
+
"./ajax/var/nonce",
|
7
|
+
"./ajax/var/rquery",
|
8
|
+
|
9
|
+
"./core/init",
|
10
|
+
"./ajax/parseJSON",
|
11
|
+
"./ajax/parseXML",
|
12
|
+
"./event/trigger",
|
13
|
+
"./deferred"
|
14
|
+
], function( jQuery, document, rnotwhite, location, nonce, rquery ) {
|
15
|
+
|
16
|
+
var
|
17
|
+
rhash = /#.*$/,
|
18
|
+
rts = /([?&])_=[^&]*/,
|
19
|
+
rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
|
20
|
+
|
21
|
+
// #7653, #8125, #8152: local protocol detection
|
22
|
+
rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
|
23
|
+
rnoContent = /^(?:GET|HEAD)$/,
|
24
|
+
rprotocol = /^\/\//,
|
25
|
+
|
26
|
+
/* Prefilters
|
27
|
+
* 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
|
28
|
+
* 2) These are called:
|
29
|
+
* - BEFORE asking for a transport
|
30
|
+
* - AFTER param serialization (s.data is a string if s.processData is true)
|
31
|
+
* 3) key is the dataType
|
32
|
+
* 4) the catchall symbol "*" can be used
|
33
|
+
* 5) execution will start with transport dataType and THEN continue down to "*" if needed
|
34
|
+
*/
|
35
|
+
prefilters = {},
|
36
|
+
|
37
|
+
/* Transports bindings
|
38
|
+
* 1) key is the dataType
|
39
|
+
* 2) the catchall symbol "*" can be used
|
40
|
+
* 3) selection will start with transport dataType and THEN go to "*" if needed
|
41
|
+
*/
|
42
|
+
transports = {},
|
43
|
+
|
44
|
+
// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
|
45
|
+
allTypes = "*/".concat( "*" ),
|
46
|
+
|
47
|
+
// Anchor tag for parsing the document origin
|
48
|
+
originAnchor = document.createElement( "a" );
|
49
|
+
originAnchor.href = location.href;
|
50
|
+
|
51
|
+
// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
|
52
|
+
function addToPrefiltersOrTransports( structure ) {
|
53
|
+
|
54
|
+
// dataTypeExpression is optional and defaults to "*"
|
55
|
+
return function( dataTypeExpression, func ) {
|
56
|
+
|
57
|
+
if ( typeof dataTypeExpression !== "string" ) {
|
58
|
+
func = dataTypeExpression;
|
59
|
+
dataTypeExpression = "*";
|
60
|
+
}
|
61
|
+
|
62
|
+
var dataType,
|
63
|
+
i = 0,
|
64
|
+
dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
|
65
|
+
|
66
|
+
if ( jQuery.isFunction( func ) ) {
|
67
|
+
|
68
|
+
// For each dataType in the dataTypeExpression
|
69
|
+
while ( ( dataType = dataTypes[ i++ ] ) ) {
|
70
|
+
|
71
|
+
// Prepend if requested
|
72
|
+
if ( dataType[ 0 ] === "+" ) {
|
73
|
+
dataType = dataType.slice( 1 ) || "*";
|
74
|
+
( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
|
75
|
+
|
76
|
+
// Otherwise append
|
77
|
+
} else {
|
78
|
+
( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
};
|
83
|
+
}
|
84
|
+
|
85
|
+
// Base inspection function for prefilters and transports
|
86
|
+
function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
|
87
|
+
|
88
|
+
var inspected = {},
|
89
|
+
seekingTransport = ( structure === transports );
|
90
|
+
|
91
|
+
function inspect( dataType ) {
|
92
|
+
var selected;
|
93
|
+
inspected[ dataType ] = true;
|
94
|
+
jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
|
95
|
+
var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
|
96
|
+
if ( typeof dataTypeOrTransport === "string" &&
|
97
|
+
!seekingTransport && !inspected[ dataTypeOrTransport ] ) {
|
98
|
+
|
99
|
+
options.dataTypes.unshift( dataTypeOrTransport );
|
100
|
+
inspect( dataTypeOrTransport );
|
101
|
+
return false;
|
102
|
+
} else if ( seekingTransport ) {
|
103
|
+
return !( selected = dataTypeOrTransport );
|
104
|
+
}
|
105
|
+
} );
|
106
|
+
return selected;
|
107
|
+
}
|
108
|
+
|
109
|
+
return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
|
110
|
+
}
|
111
|
+
|
112
|
+
// A special extend for ajax options
|
113
|
+
// that takes "flat" options (not to be deep extended)
|
114
|
+
// Fixes #9887
|
115
|
+
function ajaxExtend( target, src ) {
|
116
|
+
var key, deep,
|
117
|
+
flatOptions = jQuery.ajaxSettings.flatOptions || {};
|
118
|
+
|
119
|
+
for ( key in src ) {
|
120
|
+
if ( src[ key ] !== undefined ) {
|
121
|
+
( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
|
122
|
+
}
|
123
|
+
}
|
124
|
+
if ( deep ) {
|
125
|
+
jQuery.extend( true, target, deep );
|
126
|
+
}
|
127
|
+
|
128
|
+
return target;
|
129
|
+
}
|
130
|
+
|
131
|
+
/* Handles responses to an ajax request:
|
132
|
+
* - finds the right dataType (mediates between content-type and expected dataType)
|
133
|
+
* - returns the corresponding response
|
134
|
+
*/
|
135
|
+
function ajaxHandleResponses( s, jqXHR, responses ) {
|
136
|
+
|
137
|
+
var ct, type, finalDataType, firstDataType,
|
138
|
+
contents = s.contents,
|
139
|
+
dataTypes = s.dataTypes;
|
140
|
+
|
141
|
+
// Remove auto dataType and get content-type in the process
|
142
|
+
while ( dataTypes[ 0 ] === "*" ) {
|
143
|
+
dataTypes.shift();
|
144
|
+
if ( ct === undefined ) {
|
145
|
+
ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
// Check if we're dealing with a known content-type
|
150
|
+
if ( ct ) {
|
151
|
+
for ( type in contents ) {
|
152
|
+
if ( contents[ type ] && contents[ type ].test( ct ) ) {
|
153
|
+
dataTypes.unshift( type );
|
154
|
+
break;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
// Check to see if we have a response for the expected dataType
|
160
|
+
if ( dataTypes[ 0 ] in responses ) {
|
161
|
+
finalDataType = dataTypes[ 0 ];
|
162
|
+
} else {
|
163
|
+
|
164
|
+
// Try convertible dataTypes
|
165
|
+
for ( type in responses ) {
|
166
|
+
if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
|
167
|
+
finalDataType = type;
|
168
|
+
break;
|
169
|
+
}
|
170
|
+
if ( !firstDataType ) {
|
171
|
+
firstDataType = type;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
// Or just use first one
|
176
|
+
finalDataType = finalDataType || firstDataType;
|
177
|
+
}
|
178
|
+
|
179
|
+
// If we found a dataType
|
180
|
+
// We add the dataType to the list if needed
|
181
|
+
// and return the corresponding response
|
182
|
+
if ( finalDataType ) {
|
183
|
+
if ( finalDataType !== dataTypes[ 0 ] ) {
|
184
|
+
dataTypes.unshift( finalDataType );
|
185
|
+
}
|
186
|
+
return responses[ finalDataType ];
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
/* Chain conversions given the request and the original response
|
191
|
+
* Also sets the responseXXX fields on the jqXHR instance
|
192
|
+
*/
|
193
|
+
function ajaxConvert( s, response, jqXHR, isSuccess ) {
|
194
|
+
var conv2, current, conv, tmp, prev,
|
195
|
+
converters = {},
|
196
|
+
|
197
|
+
// Work with a copy of dataTypes in case we need to modify it for conversion
|
198
|
+
dataTypes = s.dataTypes.slice();
|
199
|
+
|
200
|
+
// Create converters map with lowercased keys
|
201
|
+
if ( dataTypes[ 1 ] ) {
|
202
|
+
for ( conv in s.converters ) {
|
203
|
+
converters[ conv.toLowerCase() ] = s.converters[ conv ];
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
current = dataTypes.shift();
|
208
|
+
|
209
|
+
// Convert to each sequential dataType
|
210
|
+
while ( current ) {
|
211
|
+
|
212
|
+
if ( s.responseFields[ current ] ) {
|
213
|
+
jqXHR[ s.responseFields[ current ] ] = response;
|
214
|
+
}
|
215
|
+
|
216
|
+
// Apply the dataFilter if provided
|
217
|
+
if ( !prev && isSuccess && s.dataFilter ) {
|
218
|
+
response = s.dataFilter( response, s.dataType );
|
219
|
+
}
|
220
|
+
|
221
|
+
prev = current;
|
222
|
+
current = dataTypes.shift();
|
223
|
+
|
224
|
+
if ( current ) {
|
225
|
+
|
226
|
+
// There's only work to do if current dataType is non-auto
|
227
|
+
if ( current === "*" ) {
|
228
|
+
|
229
|
+
current = prev;
|
230
|
+
|
231
|
+
// Convert response if prev dataType is non-auto and differs from current
|
232
|
+
} else if ( prev !== "*" && prev !== current ) {
|
233
|
+
|
234
|
+
// Seek a direct converter
|
235
|
+
conv = converters[ prev + " " + current ] || converters[ "* " + current ];
|
236
|
+
|
237
|
+
// If none found, seek a pair
|
238
|
+
if ( !conv ) {
|
239
|
+
for ( conv2 in converters ) {
|
240
|
+
|
241
|
+
// If conv2 outputs current
|
242
|
+
tmp = conv2.split( " " );
|
243
|
+
if ( tmp[ 1 ] === current ) {
|
244
|
+
|
245
|
+
// If prev can be converted to accepted input
|
246
|
+
conv = converters[ prev + " " + tmp[ 0 ] ] ||
|
247
|
+
converters[ "* " + tmp[ 0 ] ];
|
248
|
+
if ( conv ) {
|
249
|
+
|
250
|
+
// Condense equivalence converters
|
251
|
+
if ( conv === true ) {
|
252
|
+
conv = converters[ conv2 ];
|
253
|
+
|
254
|
+
// Otherwise, insert the intermediate dataType
|
255
|
+
} else if ( converters[ conv2 ] !== true ) {
|
256
|
+
current = tmp[ 0 ];
|
257
|
+
dataTypes.unshift( tmp[ 1 ] );
|
258
|
+
}
|
259
|
+
break;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
|
265
|
+
// Apply converter (if not an equivalence)
|
266
|
+
if ( conv !== true ) {
|
267
|
+
|
268
|
+
// Unless errors are allowed to bubble, catch and return them
|
269
|
+
if ( conv && s.throws ) {
|
270
|
+
response = conv( response );
|
271
|
+
} else {
|
272
|
+
try {
|
273
|
+
response = conv( response );
|
274
|
+
} catch ( e ) {
|
275
|
+
return {
|
276
|
+
state: "parsererror",
|
277
|
+
error: conv ? e : "No conversion from " + prev + " to " + current
|
278
|
+
};
|
279
|
+
}
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
return { state: "success", data: response };
|
287
|
+
}
|
288
|
+
|
289
|
+
jQuery.extend( {
|
290
|
+
|
291
|
+
// Counter for holding the number of active queries
|
292
|
+
active: 0,
|
293
|
+
|
294
|
+
// Last-Modified header cache for next request
|
295
|
+
lastModified: {},
|
296
|
+
etag: {},
|
297
|
+
|
298
|
+
ajaxSettings: {
|
299
|
+
url: location.href,
|
300
|
+
type: "GET",
|
301
|
+
isLocal: rlocalProtocol.test( location.protocol ),
|
302
|
+
global: true,
|
303
|
+
processData: true,
|
304
|
+
async: true,
|
305
|
+
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
306
|
+
/*
|
307
|
+
timeout: 0,
|
308
|
+
data: null,
|
309
|
+
dataType: null,
|
310
|
+
username: null,
|
311
|
+
password: null,
|
312
|
+
cache: null,
|
313
|
+
throws: false,
|
314
|
+
traditional: false,
|
315
|
+
headers: {},
|
316
|
+
*/
|
317
|
+
|
318
|
+
accepts: {
|
319
|
+
"*": allTypes,
|
320
|
+
text: "text/plain",
|
321
|
+
html: "text/html",
|
322
|
+
xml: "application/xml, text/xml",
|
323
|
+
json: "application/json, text/javascript"
|
324
|
+
},
|
325
|
+
|
326
|
+
contents: {
|
327
|
+
xml: /\bxml\b/,
|
328
|
+
html: /\bhtml/,
|
329
|
+
json: /\bjson\b/
|
330
|
+
},
|
331
|
+
|
332
|
+
responseFields: {
|
333
|
+
xml: "responseXML",
|
334
|
+
text: "responseText",
|
335
|
+
json: "responseJSON"
|
336
|
+
},
|
337
|
+
|
338
|
+
// Data converters
|
339
|
+
// Keys separate source (or catchall "*") and destination types with a single space
|
340
|
+
converters: {
|
341
|
+
|
342
|
+
// Convert anything to text
|
343
|
+
"* text": String,
|
344
|
+
|
345
|
+
// Text to html (true = no transformation)
|
346
|
+
"text html": true,
|
347
|
+
|
348
|
+
// Evaluate text as a json expression
|
349
|
+
"text json": jQuery.parseJSON,
|
350
|
+
|
351
|
+
// Parse text as xml
|
352
|
+
"text xml": jQuery.parseXML
|
353
|
+
},
|
354
|
+
|
355
|
+
// For options that shouldn't be deep extended:
|
356
|
+
// you can add your own custom options here if
|
357
|
+
// and when you create one that shouldn't be
|
358
|
+
// deep extended (see ajaxExtend)
|
359
|
+
flatOptions: {
|
360
|
+
url: true,
|
361
|
+
context: true
|
362
|
+
}
|
363
|
+
},
|
364
|
+
|
365
|
+
// Creates a full fledged settings object into target
|
366
|
+
// with both ajaxSettings and settings fields.
|
367
|
+
// If target is omitted, writes into ajaxSettings.
|
368
|
+
ajaxSetup: function( target, settings ) {
|
369
|
+
return settings ?
|
370
|
+
|
371
|
+
// Building a settings object
|
372
|
+
ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
|
373
|
+
|
374
|
+
// Extending ajaxSettings
|
375
|
+
ajaxExtend( jQuery.ajaxSettings, target );
|
376
|
+
},
|
377
|
+
|
378
|
+
ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
|
379
|
+
ajaxTransport: addToPrefiltersOrTransports( transports ),
|
380
|
+
|
381
|
+
// Main method
|
382
|
+
ajax: function( url, options ) {
|
383
|
+
|
384
|
+
// If url is an object, simulate pre-1.5 signature
|
385
|
+
if ( typeof url === "object" ) {
|
386
|
+
options = url;
|
387
|
+
url = undefined;
|
388
|
+
}
|
389
|
+
|
390
|
+
// Force options to be an object
|
391
|
+
options = options || {};
|
392
|
+
|
393
|
+
var transport,
|
394
|
+
|
395
|
+
// URL without anti-cache param
|
396
|
+
cacheURL,
|
397
|
+
|
398
|
+
// Response headers
|
399
|
+
responseHeadersString,
|
400
|
+
responseHeaders,
|
401
|
+
|
402
|
+
// timeout handle
|
403
|
+
timeoutTimer,
|
404
|
+
|
405
|
+
// Url cleanup var
|
406
|
+
urlAnchor,
|
407
|
+
|
408
|
+
// To know if global events are to be dispatched
|
409
|
+
fireGlobals,
|
410
|
+
|
411
|
+
// Loop variable
|
412
|
+
i,
|
413
|
+
|
414
|
+
// Create the final options object
|
415
|
+
s = jQuery.ajaxSetup( {}, options ),
|
416
|
+
|
417
|
+
// Callbacks context
|
418
|
+
callbackContext = s.context || s,
|
419
|
+
|
420
|
+
// Context for global events is callbackContext if it is a DOM node or jQuery collection
|
421
|
+
globalEventContext = s.context &&
|
422
|
+
( callbackContext.nodeType || callbackContext.jquery ) ?
|
423
|
+
jQuery( callbackContext ) :
|
424
|
+
jQuery.event,
|
425
|
+
|
426
|
+
// Deferreds
|
427
|
+
deferred = jQuery.Deferred(),
|
428
|
+
completeDeferred = jQuery.Callbacks( "once memory" ),
|
429
|
+
|
430
|
+
// Status-dependent callbacks
|
431
|
+
statusCode = s.statusCode || {},
|
432
|
+
|
433
|
+
// Headers (they are sent all at once)
|
434
|
+
requestHeaders = {},
|
435
|
+
requestHeadersNames = {},
|
436
|
+
|
437
|
+
// The jqXHR state
|
438
|
+
state = 0,
|
439
|
+
|
440
|
+
// Default abort message
|
441
|
+
strAbort = "canceled",
|
442
|
+
|
443
|
+
// Fake xhr
|
444
|
+
jqXHR = {
|
445
|
+
readyState: 0,
|
446
|
+
|
447
|
+
// Builds headers hashtable if needed
|
448
|
+
getResponseHeader: function( key ) {
|
449
|
+
var match;
|
450
|
+
if ( state === 2 ) {
|
451
|
+
if ( !responseHeaders ) {
|
452
|
+
responseHeaders = {};
|
453
|
+
while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
|
454
|
+
responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
|
455
|
+
}
|
456
|
+
}
|
457
|
+
match = responseHeaders[ key.toLowerCase() ];
|
458
|
+
}
|
459
|
+
return match == null ? null : match;
|
460
|
+
},
|
461
|
+
|
462
|
+
// Raw string
|
463
|
+
getAllResponseHeaders: function() {
|
464
|
+
return state === 2 ? responseHeadersString : null;
|
465
|
+
},
|
466
|
+
|
467
|
+
// Caches the header
|
468
|
+
setRequestHeader: function( name, value ) {
|
469
|
+
var lname = name.toLowerCase();
|
470
|
+
if ( !state ) {
|
471
|
+
name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
|
472
|
+
requestHeaders[ name ] = value;
|
473
|
+
}
|
474
|
+
return this;
|
475
|
+
},
|
476
|
+
|
477
|
+
// Overrides response content-type header
|
478
|
+
overrideMimeType: function( type ) {
|
479
|
+
if ( !state ) {
|
480
|
+
s.mimeType = type;
|
481
|
+
}
|
482
|
+
return this;
|
483
|
+
},
|
484
|
+
|
485
|
+
// Status-dependent callbacks
|
486
|
+
statusCode: function( map ) {
|
487
|
+
var code;
|
488
|
+
if ( map ) {
|
489
|
+
if ( state < 2 ) {
|
490
|
+
for ( code in map ) {
|
491
|
+
|
492
|
+
// Lazy-add the new callback in a way that preserves old ones
|
493
|
+
statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
|
494
|
+
}
|
495
|
+
} else {
|
496
|
+
|
497
|
+
// Execute the appropriate callbacks
|
498
|
+
jqXHR.always( map[ jqXHR.status ] );
|
499
|
+
}
|
500
|
+
}
|
501
|
+
return this;
|
502
|
+
},
|
503
|
+
|
504
|
+
// Cancel the request
|
505
|
+
abort: function( statusText ) {
|
506
|
+
var finalText = statusText || strAbort;
|
507
|
+
if ( transport ) {
|
508
|
+
transport.abort( finalText );
|
509
|
+
}
|
510
|
+
done( 0, finalText );
|
511
|
+
return this;
|
512
|
+
}
|
513
|
+
};
|
514
|
+
|
515
|
+
// Attach deferreds
|
516
|
+
deferred.promise( jqXHR ).complete = completeDeferred.add;
|
517
|
+
jqXHR.success = jqXHR.done;
|
518
|
+
jqXHR.error = jqXHR.fail;
|
519
|
+
|
520
|
+
// Remove hash character (#7531: and string promotion)
|
521
|
+
// Add protocol if not provided (prefilters might expect it)
|
522
|
+
// Handle falsy url in the settings object (#10093: consistency with old signature)
|
523
|
+
// We also use the url parameter if available
|
524
|
+
s.url = ( ( url || s.url || location.href ) + "" ).replace( rhash, "" )
|
525
|
+
.replace( rprotocol, location.protocol + "//" );
|
526
|
+
|
527
|
+
// Alias method option to type as per ticket #12004
|
528
|
+
s.type = options.method || options.type || s.method || s.type;
|
529
|
+
|
530
|
+
// Extract dataTypes list
|
531
|
+
s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
|
532
|
+
|
533
|
+
// A cross-domain request is in order when the origin doesn't match the current origin.
|
534
|
+
if ( s.crossDomain == null ) {
|
535
|
+
urlAnchor = document.createElement( "a" );
|
536
|
+
|
537
|
+
// Support: IE8-11+
|
538
|
+
// IE throws exception if url is malformed, e.g. http://example.com:80x/
|
539
|
+
try {
|
540
|
+
urlAnchor.href = s.url;
|
541
|
+
|
542
|
+
// Support: IE8-11+
|
543
|
+
// Anchor's host property isn't correctly set when s.url is relative
|
544
|
+
urlAnchor.href = urlAnchor.href;
|
545
|
+
s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
|
546
|
+
urlAnchor.protocol + "//" + urlAnchor.host;
|
547
|
+
} catch ( e ) {
|
548
|
+
|
549
|
+
// If there is an error parsing the URL, assume it is crossDomain,
|
550
|
+
// it can be rejected by the transport if it is invalid
|
551
|
+
s.crossDomain = true;
|
552
|
+
}
|
553
|
+
}
|
554
|
+
|
555
|
+
// Convert data if not already a string
|
556
|
+
if ( s.data && s.processData && typeof s.data !== "string" ) {
|
557
|
+
s.data = jQuery.param( s.data, s.traditional );
|
558
|
+
}
|
559
|
+
|
560
|
+
// Apply prefilters
|
561
|
+
inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
|
562
|
+
|
563
|
+
// If request was aborted inside a prefilter, stop there
|
564
|
+
if ( state === 2 ) {
|
565
|
+
return jqXHR;
|
566
|
+
}
|
567
|
+
|
568
|
+
// We can fire global events as of now if asked to
|
569
|
+
// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
|
570
|
+
fireGlobals = jQuery.event && s.global;
|
571
|
+
|
572
|
+
// Watch for a new set of requests
|
573
|
+
if ( fireGlobals && jQuery.active++ === 0 ) {
|
574
|
+
jQuery.event.trigger( "ajaxStart" );
|
575
|
+
}
|
576
|
+
|
577
|
+
// Uppercase the type
|
578
|
+
s.type = s.type.toUpperCase();
|
579
|
+
|
580
|
+
// Determine if request has content
|
581
|
+
s.hasContent = !rnoContent.test( s.type );
|
582
|
+
|
583
|
+
// Save the URL in case we're toying with the If-Modified-Since
|
584
|
+
// and/or If-None-Match header later on
|
585
|
+
cacheURL = s.url;
|
586
|
+
|
587
|
+
// More options handling for requests with no content
|
588
|
+
if ( !s.hasContent ) {
|
589
|
+
|
590
|
+
// If data is available, append data to url
|
591
|
+
if ( s.data ) {
|
592
|
+
cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
|
593
|
+
|
594
|
+
// #9682: remove data so that it's not used in an eventual retry
|
595
|
+
delete s.data;
|
596
|
+
}
|
597
|
+
|
598
|
+
// Add anti-cache in url if needed
|
599
|
+
if ( s.cache === false ) {
|
600
|
+
s.url = rts.test( cacheURL ) ?
|
601
|
+
|
602
|
+
// If there is already a '_' parameter, set its value
|
603
|
+
cacheURL.replace( rts, "$1_=" + nonce++ ) :
|
604
|
+
|
605
|
+
// Otherwise add one to the end
|
606
|
+
cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
|
607
|
+
}
|
608
|
+
}
|
609
|
+
|
610
|
+
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
|
611
|
+
if ( s.ifModified ) {
|
612
|
+
if ( jQuery.lastModified[ cacheURL ] ) {
|
613
|
+
jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
|
614
|
+
}
|
615
|
+
if ( jQuery.etag[ cacheURL ] ) {
|
616
|
+
jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
|
617
|
+
}
|
618
|
+
}
|
619
|
+
|
620
|
+
// Set the correct header, if data is being sent
|
621
|
+
if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
|
622
|
+
jqXHR.setRequestHeader( "Content-Type", s.contentType );
|
623
|
+
}
|
624
|
+
|
625
|
+
// Set the Accepts header for the server, depending on the dataType
|
626
|
+
jqXHR.setRequestHeader(
|
627
|
+
"Accept",
|
628
|
+
s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
|
629
|
+
s.accepts[ s.dataTypes[ 0 ] ] +
|
630
|
+
( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
|
631
|
+
s.accepts[ "*" ]
|
632
|
+
);
|
633
|
+
|
634
|
+
// Check for headers option
|
635
|
+
for ( i in s.headers ) {
|
636
|
+
jqXHR.setRequestHeader( i, s.headers[ i ] );
|
637
|
+
}
|
638
|
+
|
639
|
+
// Allow custom headers/mimetypes and early abort
|
640
|
+
if ( s.beforeSend &&
|
641
|
+
( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
|
642
|
+
|
643
|
+
// Abort if not done already and return
|
644
|
+
return jqXHR.abort();
|
645
|
+
}
|
646
|
+
|
647
|
+
// Aborting is no longer a cancellation
|
648
|
+
strAbort = "abort";
|
649
|
+
|
650
|
+
// Install callbacks on deferreds
|
651
|
+
for ( i in { success: 1, error: 1, complete: 1 } ) {
|
652
|
+
jqXHR[ i ]( s[ i ] );
|
653
|
+
}
|
654
|
+
|
655
|
+
// Get transport
|
656
|
+
transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
|
657
|
+
|
658
|
+
// If no transport, we auto-abort
|
659
|
+
if ( !transport ) {
|
660
|
+
done( -1, "No Transport" );
|
661
|
+
} else {
|
662
|
+
jqXHR.readyState = 1;
|
663
|
+
|
664
|
+
// Send global event
|
665
|
+
if ( fireGlobals ) {
|
666
|
+
globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
|
667
|
+
}
|
668
|
+
|
669
|
+
// If request was aborted inside ajaxSend, stop there
|
670
|
+
if ( state === 2 ) {
|
671
|
+
return jqXHR;
|
672
|
+
}
|
673
|
+
|
674
|
+
// Timeout
|
675
|
+
if ( s.async && s.timeout > 0 ) {
|
676
|
+
timeoutTimer = window.setTimeout( function() {
|
677
|
+
jqXHR.abort( "timeout" );
|
678
|
+
}, s.timeout );
|
679
|
+
}
|
680
|
+
|
681
|
+
try {
|
682
|
+
state = 1;
|
683
|
+
transport.send( requestHeaders, done );
|
684
|
+
} catch ( e ) {
|
685
|
+
|
686
|
+
// Propagate exception as error if not done
|
687
|
+
if ( state < 2 ) {
|
688
|
+
done( -1, e );
|
689
|
+
|
690
|
+
// Simply rethrow otherwise
|
691
|
+
} else {
|
692
|
+
throw e;
|
693
|
+
}
|
694
|
+
}
|
695
|
+
}
|
696
|
+
|
697
|
+
// Callback for when everything is done
|
698
|
+
function done( status, nativeStatusText, responses, headers ) {
|
699
|
+
var isSuccess, success, error, response, modified,
|
700
|
+
statusText = nativeStatusText;
|
701
|
+
|
702
|
+
// Called once
|
703
|
+
if ( state === 2 ) {
|
704
|
+
return;
|
705
|
+
}
|
706
|
+
|
707
|
+
// State is "done" now
|
708
|
+
state = 2;
|
709
|
+
|
710
|
+
// Clear timeout if it exists
|
711
|
+
if ( timeoutTimer ) {
|
712
|
+
window.clearTimeout( timeoutTimer );
|
713
|
+
}
|
714
|
+
|
715
|
+
// Dereference transport for early garbage collection
|
716
|
+
// (no matter how long the jqXHR object will be used)
|
717
|
+
transport = undefined;
|
718
|
+
|
719
|
+
// Cache response headers
|
720
|
+
responseHeadersString = headers || "";
|
721
|
+
|
722
|
+
// Set readyState
|
723
|
+
jqXHR.readyState = status > 0 ? 4 : 0;
|
724
|
+
|
725
|
+
// Determine if successful
|
726
|
+
isSuccess = status >= 200 && status < 300 || status === 304;
|
727
|
+
|
728
|
+
// Get response data
|
729
|
+
if ( responses ) {
|
730
|
+
response = ajaxHandleResponses( s, jqXHR, responses );
|
731
|
+
}
|
732
|
+
|
733
|
+
// Convert no matter what (that way responseXXX fields are always set)
|
734
|
+
response = ajaxConvert( s, response, jqXHR, isSuccess );
|
735
|
+
|
736
|
+
// If successful, handle type chaining
|
737
|
+
if ( isSuccess ) {
|
738
|
+
|
739
|
+
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
|
740
|
+
if ( s.ifModified ) {
|
741
|
+
modified = jqXHR.getResponseHeader( "Last-Modified" );
|
742
|
+
if ( modified ) {
|
743
|
+
jQuery.lastModified[ cacheURL ] = modified;
|
744
|
+
}
|
745
|
+
modified = jqXHR.getResponseHeader( "etag" );
|
746
|
+
if ( modified ) {
|
747
|
+
jQuery.etag[ cacheURL ] = modified;
|
748
|
+
}
|
749
|
+
}
|
750
|
+
|
751
|
+
// if no content
|
752
|
+
if ( status === 204 || s.type === "HEAD" ) {
|
753
|
+
statusText = "nocontent";
|
754
|
+
|
755
|
+
// if not modified
|
756
|
+
} else if ( status === 304 ) {
|
757
|
+
statusText = "notmodified";
|
758
|
+
|
759
|
+
// If we have data, let's convert it
|
760
|
+
} else {
|
761
|
+
statusText = response.state;
|
762
|
+
success = response.data;
|
763
|
+
error = response.error;
|
764
|
+
isSuccess = !error;
|
765
|
+
}
|
766
|
+
} else {
|
767
|
+
|
768
|
+
// Extract error from statusText and normalize for non-aborts
|
769
|
+
error = statusText;
|
770
|
+
if ( status || !statusText ) {
|
771
|
+
statusText = "error";
|
772
|
+
if ( status < 0 ) {
|
773
|
+
status = 0;
|
774
|
+
}
|
775
|
+
}
|
776
|
+
}
|
777
|
+
|
778
|
+
// Set data for the fake xhr object
|
779
|
+
jqXHR.status = status;
|
780
|
+
jqXHR.statusText = ( nativeStatusText || statusText ) + "";
|
781
|
+
|
782
|
+
// Success/Error
|
783
|
+
if ( isSuccess ) {
|
784
|
+
deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
|
785
|
+
} else {
|
786
|
+
deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
|
787
|
+
}
|
788
|
+
|
789
|
+
// Status-dependent callbacks
|
790
|
+
jqXHR.statusCode( statusCode );
|
791
|
+
statusCode = undefined;
|
792
|
+
|
793
|
+
if ( fireGlobals ) {
|
794
|
+
globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
|
795
|
+
[ jqXHR, s, isSuccess ? success : error ] );
|
796
|
+
}
|
797
|
+
|
798
|
+
// Complete
|
799
|
+
completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
|
800
|
+
|
801
|
+
if ( fireGlobals ) {
|
802
|
+
globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
|
803
|
+
|
804
|
+
// Handle the global AJAX counter
|
805
|
+
if ( !( --jQuery.active ) ) {
|
806
|
+
jQuery.event.trigger( "ajaxStop" );
|
807
|
+
}
|
808
|
+
}
|
809
|
+
}
|
810
|
+
|
811
|
+
return jqXHR;
|
812
|
+
},
|
813
|
+
|
814
|
+
getJSON: function( url, data, callback ) {
|
815
|
+
return jQuery.get( url, data, callback, "json" );
|
816
|
+
},
|
817
|
+
|
818
|
+
getScript: function( url, callback ) {
|
819
|
+
return jQuery.get( url, undefined, callback, "script" );
|
820
|
+
}
|
821
|
+
} );
|
822
|
+
|
823
|
+
jQuery.each( [ "get", "post" ], function( i, method ) {
|
824
|
+
jQuery[ method ] = function( url, data, callback, type ) {
|
825
|
+
|
826
|
+
// Shift arguments if data argument was omitted
|
827
|
+
if ( jQuery.isFunction( data ) ) {
|
828
|
+
type = type || callback;
|
829
|
+
callback = data;
|
830
|
+
data = undefined;
|
831
|
+
}
|
832
|
+
|
833
|
+
// The url can be an options object (which then must have .url)
|
834
|
+
return jQuery.ajax( jQuery.extend( {
|
835
|
+
url: url,
|
836
|
+
type: method,
|
837
|
+
dataType: type,
|
838
|
+
data: data,
|
839
|
+
success: callback
|
840
|
+
}, jQuery.isPlainObject( url ) && url ) );
|
841
|
+
};
|
842
|
+
} );
|
843
|
+
|
844
|
+
return jQuery;
|
845
|
+
} );
|