From 14ccf8a5c481e933951944ba4884ad8b340a1256 Mon Sep 17 00:00:00 2001 From: Mario Mulansky Date: Thu, 13 Jul 2023 21:43:40 -0700 Subject: [PATCH] Clean up docs from master branch Generated documentation files were accidentally checked into the master branch but they should only go into the gh-page branch for website updates. This PR removes the unnecessary files. --- doc/.DS_Store | Bin 6148 -> 0 bytes doc/_build/.DS_Store | Bin 6148 -> 0 bytes doc/_build/doctrees/.DS_Store | Bin 6148 -> 0 bytes doc/_build/doctrees/environment.pickle | Bin 194446 -> 0 bytes doc/_build/doctrees/index.doctree | Bin 90661 -> 0 bytes doc/_build/doctrees/pyspike.doctree | Bin 405720 -> 0 bytes doc/_build/doctrees/tutorial.doctree | Bin 53483 -> 0 bytes doc/_build/html/.buildinfo | 4 - doc/_build/html/_modules/index.html | 92 - .../html/_modules/pyspike/DiscreteFunc.html | 331 - .../_modules/pyspike/PieceWiseConstFunc.html | 306 - .../_modules/pyspike/PieceWiseLinFunc.html | 351 - .../html/_modules/pyspike/SpikeTrain.html | 159 - .../html/_modules/pyspike/isi_distance.html | 329 - doc/_build/html/_modules/pyspike/psth.html | 118 - .../pyspike/spike_directionality.html | 637 - .../html/_modules/pyspike/spike_distance.html | 327 - .../html/_modules/pyspike/spike_sync.html | 447 - doc/_build/html/_modules/pyspike/spikes.html | 279 - doc/_build/html/_sources/index.rst.txt | 26 - doc/_build/html/_sources/pyspike.rst.txt | 79 - doc/_build/html/_sources/tutorial.rst.txt | 353 - .../_sphinx_javascript_frameworks_compat.js | 134 - doc/_build/html/_static/basic.css | 900 -- doc/_build/html/_static/classic.css | 269 - doc/_build/html/_static/default.css | 1 - doc/_build/html/_static/doctools.js | 156 - .../html/_static/documentation_options.js | 14 - doc/_build/html/_static/file.png | Bin 286 -> 0 bytes doc/_build/html/_static/jquery-3.6.0.js | 10881 ---------------- doc/_build/html/_static/jquery.js | 2 - doc/_build/html/_static/language_data.js | 199 - doc/_build/html/_static/minus.png | Bin 90 -> 0 bytes doc/_build/html/_static/plus.png | Bin 90 -> 0 bytes doc/_build/html/_static/pygments.css | 74 - doc/_build/html/_static/searchtools.js | 566 - doc/_build/html/_static/sidebar.js | 70 - doc/_build/html/_static/sphinx_highlight.js | 144 - doc/_build/html/_static/underscore-1.13.1.js | 2042 --- doc/_build/html/_static/underscore.js | 6 - doc/_build/html/genindex.html | 453 - doc/_build/html/index.html | 574 - doc/_build/html/objects.inv | Bin 857 -> 0 bytes doc/_build/html/py-modindex.html | 152 - doc/_build/html/pyspike.html | 1786 --- doc/_build/html/search.html | 106 - doc/_build/html/searchindex.js | 1 - doc/_build/html/tutorial.html | 397 - index.html | 574 - tutorial.html | 397 - 50 files changed, 23736 deletions(-) delete mode 100644 doc/.DS_Store delete mode 100644 doc/_build/.DS_Store delete mode 100644 doc/_build/doctrees/.DS_Store delete mode 100644 doc/_build/doctrees/environment.pickle delete mode 100644 doc/_build/doctrees/index.doctree delete mode 100644 doc/_build/doctrees/pyspike.doctree delete mode 100644 doc/_build/doctrees/tutorial.doctree delete mode 100644 doc/_build/html/.buildinfo delete mode 100644 doc/_build/html/_modules/index.html delete mode 100644 doc/_build/html/_modules/pyspike/DiscreteFunc.html delete mode 100644 doc/_build/html/_modules/pyspike/PieceWiseConstFunc.html delete mode 100644 doc/_build/html/_modules/pyspike/PieceWiseLinFunc.html delete mode 100644 doc/_build/html/_modules/pyspike/SpikeTrain.html delete mode 100644 doc/_build/html/_modules/pyspike/isi_distance.html delete mode 100644 doc/_build/html/_modules/pyspike/psth.html delete mode 100644 doc/_build/html/_modules/pyspike/spike_directionality.html delete mode 100644 doc/_build/html/_modules/pyspike/spike_distance.html delete mode 100644 doc/_build/html/_modules/pyspike/spike_sync.html delete mode 100644 doc/_build/html/_modules/pyspike/spikes.html delete mode 100644 doc/_build/html/_sources/index.rst.txt delete mode 100644 doc/_build/html/_sources/pyspike.rst.txt delete mode 100644 doc/_build/html/_sources/tutorial.rst.txt delete mode 100644 doc/_build/html/_static/_sphinx_javascript_frameworks_compat.js delete mode 100644 doc/_build/html/_static/basic.css delete mode 100644 doc/_build/html/_static/classic.css delete mode 100644 doc/_build/html/_static/default.css delete mode 100644 doc/_build/html/_static/doctools.js delete mode 100644 doc/_build/html/_static/documentation_options.js delete mode 100644 doc/_build/html/_static/file.png delete mode 100644 doc/_build/html/_static/jquery-3.6.0.js delete mode 100644 doc/_build/html/_static/jquery.js delete mode 100644 doc/_build/html/_static/language_data.js delete mode 100644 doc/_build/html/_static/minus.png delete mode 100644 doc/_build/html/_static/plus.png delete mode 100644 doc/_build/html/_static/pygments.css delete mode 100644 doc/_build/html/_static/searchtools.js delete mode 100644 doc/_build/html/_static/sidebar.js delete mode 100644 doc/_build/html/_static/sphinx_highlight.js delete mode 100644 doc/_build/html/_static/underscore-1.13.1.js delete mode 100644 doc/_build/html/_static/underscore.js delete mode 100644 doc/_build/html/genindex.html delete mode 100644 doc/_build/html/index.html delete mode 100644 doc/_build/html/objects.inv delete mode 100644 doc/_build/html/py-modindex.html delete mode 100644 doc/_build/html/pyspike.html delete mode 100644 doc/_build/html/search.html delete mode 100644 doc/_build/html/searchindex.js delete mode 100644 doc/_build/html/tutorial.html delete mode 100644 index.html delete mode 100644 tutorial.html diff --git a/doc/.DS_Store b/doc/.DS_Store deleted file mode 100644 index dd207720646fa1d7ab01cbfbafd10533797bcbec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKOKJi^5Uo-X!Hr9oeFbmOh&h1=P|QFG3=SmddR94Cj+R%SMTXIh;6`3S_3N&# z*G<30)Rc(m_R?%bRwA;18_JIjW3zqpkxepUsD4H(P4oTUp1Q6bW#0}McPi--3PX9k7aYY5Fz)LBhv)z8T#gnqOjvi;Vw!n{Y%lUlb|P3!}mj=0l-{24G^XjI_Y3j6`5DjP`v diff --git a/doc/_build/.DS_Store b/doc/_build/.DS_Store deleted file mode 100644 index 360a3e48516037b841d5a4d35984658aa80466bb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5T317TSVwV(PO}?Vha@oFQMuS7}0}DZJJ_(F)K}K52cW+zL0O?^Z3o~ zDoXSwB4wt`ezWtFbiah%3=yf$IBF3!h^Pi-tkf}lBOGTfNyT}pKxM8mq5*zcILRJL z+2Z(*4Dhq7QAC>hl+&l@7bZGH>?M3i;w*1AUsYwHy129qSy{dghI$g@y?mT?dZSC8 zooStf?{+Udj|Y=(W9>+%c`r@}BU2DZ1EgGC#A&1_9X(E?%+v-pP=|CI8`J4dbKBc# z&bGa2tKEiuu)jB()obfpyN9RUyW~FAPnJuC*UreQ!*_UwQCe1%^^*{PlZ#5h$6%Bu zI=w}V<5e1hk9$f!7r`$g3p^dzESy(Z l{3wB8j$-8UQM?H?0>8%w(05o^ga;xY0)_?|gn>V0;0-7~Scw1t diff --git a/doc/_build/doctrees/.DS_Store b/doc/_build/doctrees/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0;8OFfUSo*qfI+|tM%Yb1Hxnz2xiA7nJDxm|U; z>-JPvmFrf`bW0hq!NwM;#0JV)*uXj=1lX`Z%tFX7Z1@3Y9UPp%k|mENaqwaw1U4Ju zg#5^lEc^ey^S+Pjd#k$CBS-VI)!p};^PTT}=R4o)eCM2xZvE`dTW;7w|9bnPRxNC- zmV(BWu-$B|1dUF=cl&#~VZHi{_33;1hdr|OE|sV)1fZq+McaJAB`2K}J7yA!Om>V7AP$}LnySH10J{jKi< z?Pj-K3CdA-aWMp(9hGLi9#lGvSZ~Ms+tr{QR8NPMP9GzAvERG7)Q&p+b5Udc81Yv8T{;dn2v#fgZZ)8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m!X;S60MR^Z zY=F2qf;mMCDB0?{1YMB=Du7)MgZ4)V2g3wz{%U)7^G7G;uWuGVBD>M;k#_Y0+}V5q z4q-+?d=n{X9FH*%ick?JF`J)*u(bM}Q7g`AQ$IqJo_H4YTvkzlbMH6L;CDu~-Vbj5 zVsPsc)N3iaoE@vx)#}+Xvy+sZf=y<pFX@1)Tfj=n+ z4EPcp{!AyMB5NSW2!tZlRiY#svPrP|4N0$n(+AH8E!!)Vl%BH|f{d{G5WB^tm?%iO zC>e;%zND1`0(?Dk1WW8Ph6<0~svoM>R#DuWzV7zA9n@1(WWZTeP6&N1sRF$OA{j^7KaRuhiOEjX*V;iD?g&5EJHw zrfQ^7?_+8}NdSB#Rdv_}qe4IM@Ns98s%xeCd8i1rvvLCWHoJBf#7c4++rwyQM!PHxc;I z!WAZb-`d%{i#SR-3%6nDXK3FYo6EXs(Vw=pw0qtWkynd4`g@Jk!c%oJ>~EH@M-ZR} zlWwPnw{LIp-5UjhLb>&8m>W`?&_qYV{t7Z3EN)z|A)&NFJ|)O;4zdr>yx$5hTQ7d1 zA&L>W%oU91jXh*gzCH}1%)v_9hi?~%spKc~7io|*z}m6eOXfw6H0|f>k=cc|`av1V z*q54>tdCf$LIR_@oX)EC0|Hu2N%1C;BJPO9g~;%3o#>Z1jUJvG8J&n~8)C z^MD9-qFovSVnN3$E-QjW8zE1V9x^d*#I2uV`4 zjZP)~vb7HSC;XH`m7cQ$iKBdTdg0-MtoB{;L28i>znBvMwh;|h`FdF9PO7+Y( zu#dlW z;Pd;&D90zjTLu1cQH aTaPrD1Alqmj2?VEorx=&d^w#y-~2yexKS4X diff --git a/doc/_build/doctrees/index.doctree b/doc/_build/doctrees/index.doctree deleted file mode 100644 index 5d46bd7eadb5d368bd2db508989266c9885813f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 90661 zcmeHw3!Gb5d1n%P>>2qH+ew^+kmSZm@QfL0X8ejX-~`8xiR0KYwv#wDMsr8HGrF=y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}T<~Kzbz? z_L1s?gtztq&J+6f1J)B>ei(3;Fn9=XE8+dafZq`I905E;SgZot2|_uzLS3ON4T$3h zGbG~2?gpfzWZ8P%@xhxO4@jfr!5UJ!jvy48k2G90WoDqB84^*SYk+!BXsIniFI01e zJz2Lk(`EKr$2Q2;EoDnq5?Zu~Nx&rn6~XMeX8`oU#P&ZkB;w#Ti}Oi3C6_Le+Fugh{wm-d0?$hn zhdX8&LRrLn&NASbh>n)!mUXeeKFjSxVy{z{Ye>X`m$K6yG>(L}-kvgGVo}|P2JfcO z2KMr~WgyyoQ@$ zC4SBs@w3@5;-`%=B6|T(_*}T}ai0r40WNGny5s`0fD7IK8!lX$4Hy1!m0VziBu^F= z2DspbOM)!OAWB%{r8zw{f0j2)#Bg0wOBSAlB}O5YE2rtX7^nBCHBFbB^iH`G+0cIh Dt`v!Q diff --git a/doc/_build/doctrees/tutorial.doctree b/doc/_build/doctrees/tutorial.doctree deleted file mode 100644 index f62bb9d5909b92e91541aade4c9b99860098714a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 53483 zcmeHwd5|3EbstHbJGcpQ$?$A}qOl9_%mM^SL2Ho~L=qMV0-^~>-h_c>duMvLdoUNL zdw^Xgv?y1pOeAev6-}yq$%o1Zt;*$6WJ`(jN0dZSoNzxPsaDxK)~SK?N;Qwe(MO=wXGqk6RyGsp;Wklo=dHIy>%sOE@K(hz^iluAIIdy-Ad^BYAHO_ zl_&|lxYY=-hQ$cz(pgo%(^BUcb*93}bY?w(>q(TtdCrRSJQv;vtO;*Qcek-ltgO5O z1h5V#y=@S*73S`!M@i7}>sE*Gdl;)H(}Fo2Yu@j*=k>$;fuiA?a0?!w+qIP^Pj6|j z;@-7ai+s+#Abb!F4&%RR;AQyT;bU0;TY>9NZ@W>t9h(3aVibjkJ=|-0*1$pa!l%<6 z_?E1;amTlbS<+p260EfAQ6)-xSGmCzzthB@6YbTxMyuMzRX#`S5)i@P)Fo~Qm1rrd z^j_f^aO%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O+To0G2O5j5y1pjd^tQ}H-Fm_qaYD_?oo;o;2N&uj#P)8_jwOG&DJ_7o zR$5&me!X;81-4*;tzfP@o{-N!1dRJY?>P_&q*j330NG+(3o)Ulug>FL`Y~hnuBch5 YcdK-hmIT2fq4cd_*U0saF0OaK4? diff --git a/doc/_build/html/.buildinfo b/doc/_build/html/.buildinfo deleted file mode 100644 index 1f06685..0000000 --- a/doc/_build/html/.buildinfo +++ /dev/null @@ -1,4 +0,0 @@ -# Sphinx build info version 1 -# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 98671151e54325d32a557dbd7e078772 -tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/doc/_build/html/_modules/index.html b/doc/_build/html/_modules/index.html deleted file mode 100644 index 3825eb2..0000000 --- a/doc/_build/html/_modules/index.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - Overview: module code — PySpike 0.8.0 documentation - - - - - - - - - - - - - -

- -
- - -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/DiscreteFunc.html b/doc/_build/html/_modules/pyspike/DiscreteFunc.html deleted file mode 100644 index 12c5935..0000000 --- a/doc/_build/html/_modules/pyspike/DiscreteFunc.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - - - pyspike.DiscreteFunc — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.DiscreteFunc

-# Class representing discrete functions.
-# Copyright 2014-2015, Mario Mulansky <mario.mulansky@gmx.net>
-# Distributed under the BSD License
-
-from __future__ import absolute_import, print_function
-
-import numpy as np
-import collections.abc
-import pyspike
-
-
-##############################################################
-# DiscreteFunc
-##############################################################
-
[docs]class DiscreteFunc(object): - """ A class representing values defined on a discrete set of points. - """ - -
[docs] def __init__(self, x, y, multiplicity): - """ Constructs the discrete function. - - :param x: array of length N defining the points at which the values are - defined. - :param y: array of length N degining the values at the points x. - :param multiplicity: array of length N defining the multiplicity of the - values. - """ - # convert parameters to arrays, also ensures copying - self.x = np.array(x) - self.y = np.array(y) - self.mp = np.array(multiplicity)
- -
[docs] def copy(self): - """ Returns a copy of itself - - :rtype: :class:`DiscreteFunc` - """ - return DiscreteFunc(self.x, self.y, self.mp)
- -
[docs] def almost_equal(self, other, decimal=14): - """ Checks if the function is equal to another function up to `decimal` - precision. - - :param other: another :class:`DiscreteFunc` - :returns: True if the two functions are equal up to `decimal` decimals, - False otherwise - :rtype: bool - """ - eps = 10.0**(-decimal) - return np.allclose(self.x, other.x, atol=eps, rtol=0.0) and \ - np.allclose(self.y, other.y, atol=eps, rtol=0.0) and \ - np.allclose(self.mp, other.mp, atol=eps, rtol=0.0)
- -
[docs] def get_plottable_data(self, averaging_window_size=0): - """ Returns two arrays containing x- and y-coordinates for plotting - the interval sequence. The optional parameter `averaging_window_size` - determines the size of an averaging window to smoothen the profile. If - this value is 0, no averaging is performed. - - :param averaging_window_size: size of the averaging window, default=0. - :returns: (x_plot, y_plot) containing plottable data - :rtype: pair of np.array - - Example:: - - x, y = f.get_plottable_data() - plt.plot(x, y, '-o', label="Discrete function") - """ - - if averaging_window_size > 0: - # for the averaged profile we have to take the multiplicity into - # account. values with higher multiplicity should be consider as if - # they appeared several times. Hence we can not know how many - # entries we have to consider to the left and right. Rather, we - # will iterate until some wanted multiplicity is reached. - - # the first value in self.mp contains the number of averaged - # profiles without any possible extra multiplicities - # (by implementation) - expected_mp = (averaging_window_size+1) * int(self.mp[0]) - y_plot = np.zeros_like(self.y) - # compute the values in a loop, could be done in cython if required - for i in range(len(y_plot)): - - if self.mp[i] >= expected_mp: - # the current value contains already all the wanted - # multiplicity - y_plot[i] = self.y[i]/self.mp[i] - continue - - # first look to the right - y = self.y[i] - mp_r = self.mp[i] - j = i+1 - while j < len(y_plot): - if mp_r+self.mp[j] < expected_mp: - # if we still dont reach the required multiplicity - # we take the whole value - y += self.y[j] - mp_r += self.mp[j] - else: - # otherwise, just some fraction - y += self.y[j] * (expected_mp - mp_r)/self.mp[j] - mp_r += (expected_mp - mp_r) - break - j += 1 - - # same story to the left - mp_l = self.mp[i] - j = i-1 - while j >= 0: - if mp_l+self.mp[j] < expected_mp: - y += self.y[j] - mp_l += self.mp[j] - else: - y += self.y[j] * (expected_mp - mp_l)/self.mp[j] - mp_l += (expected_mp - mp_l) - break - j -= 1 - y_plot[i] = y/(mp_l+mp_r-self.mp[i]) - return 1.0*self.x, y_plot - - else: # k = 0 - - return 1.0*self.x, 1.0*self.y/self.mp
- -
[docs] def integral(self, interval=None): - """ Returns the integral over the given interval. For the discrete - function, this amounts to two values: the sum over all values and the - sum over all multiplicities. - - :param interval: integration interval given as a pair of floats, or a - sequence of pairs in case of multiple intervals, if - None the integral over the whole function is computed. - :type interval: Pair, sequence of pairs, or None. - :returns: the summed values and the summed multiplicity - :rtype: pair of float - """ - - value = 0.0 - multiplicity = 0.0 - - def get_indices(ival): - """ Retuns the indeces surrounding the given interval""" - start_ind = np.searchsorted(self.x, ival[0], side='right') - end_ind = np.searchsorted(self.x, ival[1], side='left') - assert start_ind > 0 and end_ind < len(self.x), \ - "Invalid averaging interval" - return start_ind, end_ind - - if interval is None: - # no interval given, integrate over the whole spike train - # don't count the first value, which is zero by definition - value = 1.0 * np.sum(self.y[1:-1]) - multiplicity = np.sum(self.mp[1:-1]) - else: - # check if interval is as sequence - assert isinstance(interval, collections.abc.Sequence), \ - "Invalid value for `interval`. None, Sequence or Tuple \ -expected." - # check if interval is a sequence of intervals - if not isinstance(interval[0], collections.abc.Sequence): - # find the indices corresponding to the interval - start_ind, end_ind = get_indices(interval) - value = np.sum(self.y[start_ind:end_ind]) - multiplicity = np.sum(self.mp[start_ind:end_ind]) - else: - for ival in interval: - # find the indices corresponding to the interval - start_ind, end_ind = get_indices(ival) - value += np.sum(self.y[start_ind:end_ind]) - multiplicity += np.sum(self.mp[start_ind:end_ind]) - return (value, multiplicity)
- -
[docs] def avrg(self, interval=None, normalize=True): - """ Computes the average of the interval sequence: - :math:`a = 1/N \\sum f_n` where N is the number of intervals. - - :param interval: averaging interval given as a pair of floats, a - sequence of pairs for averaging multiple intervals, or - None, if None the average over the whole function is - computed. - :type interval: Pair, sequence of pairs, or None. - :returns: the average a. - :rtype: float - """ - val, mp = self.integral(interval) - if normalize: - if mp > 0: - return val/mp - else: - return 1.0 - else: - return val
- -
[docs] def add(self, f): - """ Adds another `DiscreteFunc` function to this function. - Note: only functions defined on the same interval can be summed. - - :param f: :class:`DiscreteFunc` function to be added. - :rtype: None - """ - assert self.x[0] == f.x[0], "The functions have different intervals" - assert self.x[-1] == f.x[-1], "The functions have different intervals" - - # cython version - try: - from .cython.cython_add import add_discrete_function_cython as \ - add_discrete_function_impl - except ImportError: - pyspike.NoCythonWarn() - - # use python backend - from .cython.python_backend import add_discrete_function_python as \ - add_discrete_function_impl - - self.x, self.y, self.mp = \ - add_discrete_function_impl(self.x, self.y, self.mp, - f.x, f.y, f.mp)
- -
[docs] def mul_scalar(self, fac): - """ Multiplies the function with a scalar value - - :param fac: Value to multiply - :type fac: double - :rtype: None - """ - self.y *= fac
- - -
[docs]def average_profile(profiles): - """ Computes the average profile from the given ISI- or SPIKE-profiles. - - :param profiles: list of :class:`PieceWiseConstFunc` or - :class:`PieceWiseLinFunc` representing ISI- or - SPIKE-profiles to be averaged. - :returns: the averages profile :math:`<S_{isi}>` or :math:`<S_{spike}>`. - :rtype: :class:`PieceWiseConstFunc` or :class:`PieceWiseLinFunc` - """ - assert len(profiles) > 1 - - avrg_profile = profiles[0].copy() - for i in range(1, len(profiles)): - avrg_profile.add(profiles[i]) - avrg_profile.mul_scalar(1.0/len(profiles)) # normalize - - return avrg_profile
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/PieceWiseConstFunc.html b/doc/_build/html/_modules/pyspike/PieceWiseConstFunc.html deleted file mode 100644 index 5e2f2a0..0000000 --- a/doc/_build/html/_modules/pyspike/PieceWiseConstFunc.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - - - - pyspike.PieceWiseConstFunc — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.PieceWiseConstFunc

-# Class representing piece-wise constant functions.
-# Copyright 2014-2015, Mario Mulansky <mario.mulansky@gmx.net>
-# Distributed under the BSD License
-
-from __future__ import absolute_import, print_function
-
-import numpy as np
-import collections.abc
-import pyspike
-
-
-##############################################################
-# PieceWiseConstFunc
-##############################################################
-
[docs]class PieceWiseConstFunc(object): - """ A class representing a piece-wise constant function. """ - -
[docs] def __init__(self, x, y): - """ Constructs the piece-wise const function. - - :param x: array of length N+1 defining the edges of the intervals of - the pwc function. - :param y: array of length N defining the function values at the - intervals. - """ - # convert parameters to arrays, also ensures copying - self.x = np.array(x) - self.y = np.array(y)
- - def __call__(self, t): - """ Returns the function value for the given time t. If t is a list of - times, the corresponding list of values is returned. - - :param: time t, or list of times - :returns: function value(s) at that time(s). - """ - assert np.all(t >= self.x[0]) and np.all(t <= self.x[-1]), \ - "Invalid time: " + str(t) - - ind = np.searchsorted(self.x, t, side='right') - - if isinstance(t, collections.abc.Sequence): - # t is a sequence of values - # correct the cases t == x[0], t == x[-1] - ind[ind == 0] = 1 - ind[ind == len(self.x)] = len(self.x)-1 - value = self.y[ind-1] - # correct the values at exact spike times: there the value should - # be the at half of the step - # obtain the 'left' side indices for t - ind_l = np.searchsorted(self.x, t, side='left') - # if left and right side indices differ, the time t has to appear - # in self.x - ind_at_spike = np.logical_and(np.logical_and(ind != ind_l, - ind > 1), - ind < len(self.x)) - # get the corresponding indices for the resulting value array - val_ind = np.arange(len(ind))[ind_at_spike] - # and for the arrays self.x, y1, y2 - xy_ind = ind[ind_at_spike] - # use the middle of the left and right ISI value - value[val_ind] = 0.5 * (self.y[xy_ind-1] + self.y[xy_ind-2]) - return value - else: # t is a single value - # specific check for interval edges - if t == self.x[0]: - return self.y[0] - if t == self.x[-1]: - return self.y[-1] - # check if we are on any other exact spike time - if sum(self.x == t) > 0: - # use the middle of the left and right ISI value - return 0.5 * (self.y[ind-1] + self.y[ind-2]) - return self.y[ind-1] - -
[docs] def copy(self): - """ Returns a copy of itself - - :rtype: :class:`PieceWiseConstFunc` - """ - return PieceWiseConstFunc(self.x, self.y)
- -
[docs] def almost_equal(self, other, decimal=14): - """ Checks if the function is equal to another function up to `decimal` - precision. - - :param other: another :class:`PieceWiseConstFunc` - :returns: True if the two functions are equal up to `decimal` decimals, - False otherwise - :rtype: bool - """ - eps = 10.0**(-decimal) - return np.allclose(self.x, other.x, atol=eps, rtol=0.0) and \ - np.allclose(self.y, other.y, atol=eps, rtol=0.0)
- -
[docs] def get_plottable_data(self): - """ Returns two arrays containing x- and y-coordinates for immeditate - plotting of the piece-wise function. - - :returns: (x_plot, y_plot) containing plottable data - :rtype: pair of np.array - - Example:: - - x, y = f.get_plottable_data() - plt.plot(x, y, '-o', label="Piece-wise const function") - """ - - x_plot = np.empty(2*len(self.x)-2) - x_plot[0] = self.x[0] - x_plot[1::2] = self.x[1:] - x_plot[2::2] = self.x[1:-1] - y_plot = np.empty(2*len(self.y)) - y_plot[::2] = self.y - y_plot[1::2] = self.y - - return x_plot, y_plot
- -
[docs] def integral(self, interval=None): - """ Returns the integral over the given interval. - - :param interval: integration interval given as a pair of floats, if - None the integral over the whole function is computed. - :type interval: Pair of floats or None. - :returns: the integral - :rtype: float - """ - if interval is None: - # no interval given, integrate over the whole spike train - a = np.sum((self.x[1:]-self.x[:-1]) * self.y) - else: - if interval[0]>interval[1]: - raise ValueError("Invalid averaging interval: interval[0]>=interval[1]") - if interval[0]<self.x[0]: - raise ValueError("Invalid averaging interval: interval[0]<self.x[0]") - if interval[1]>self.x[-1]: - raise ValueError("Invalid averaging interval: interval[0]<self.x[-1]") - # find the indices corresponding to the interval - start_ind = np.searchsorted(self.x, interval[0], side='right') - end_ind = np.searchsorted(self.x, interval[1], side='left')-1 - if start_ind > end_ind: - # contribution from between two closest edges - a = (self.x[start_ind]-self.x[end_ind]) * self.y[end_ind] - # minus the part that is not within the interval - a -= ((interval[0]-self.x[end_ind])+(self.x[start_ind]-interval[1])) * self.y[end_ind] - else: - assert start_ind > 0 and end_ind < len(self.x), \ - "Invalid averaging interval" - # first the contribution from between the indices - a = np.sum((self.x[start_ind+1:end_ind+1] - - self.x[start_ind:end_ind]) * - self.y[start_ind:end_ind]) - # correction from start to first index - a += (self.x[start_ind]-interval[0]) * self.y[start_ind-1] - # correction from last index to end - a += (interval[1]-self.x[end_ind]) * self.y[end_ind] - return a
- -
[docs] def avrg(self, interval=None): - """ Computes the average of the piece-wise const function: - :math:`a = 1/T \int_0^T f(x) dx` where T is the length of the interval. - - :param interval: averaging interval given as a pair of floats, a - sequence of pairs for averaging multiple intervals, or - None, if None the average over the whole function is - computed. - :type interval: Pair, sequence of pairs, or None. - :returns: the average a. - :rtype: float - """ - if interval is None: - # no interval given, average over the whole spike train - return self.integral() / (self.x[-1]-self.x[0]) - - # check if interval is as sequence - assert isinstance(interval, collections.abc.Sequence), \ - "Invalid value for `interval`. None, Sequence or Tuple expected." - # check if interval is a sequence of intervals - if not isinstance(interval[0], collections.abc.Sequence): - # just one interval - a = self.integral(interval) / (interval[1]-interval[0]) - else: - # several intervals - a = 0.0 - int_length = 0.0 - for ival in interval: - a += self.integral(ival) - int_length += ival[1] - ival[0] - a /= int_length - return a
- -
[docs] def add(self, f): - """ Adds another PieceWiseConst function to this function. - Note: only functions defined on the same interval can be summed. - - :param f: :class:`PieceWiseConstFunc` function to be added. - :rtype: None - """ - assert self.x[0] == f.x[0], "The functions have different intervals" - assert self.x[-1] == f.x[-1], "The functions have different intervals" - - # cython version - try: - from .cython.cython_add import add_piece_wise_const_cython as \ - add_piece_wise_const_impl - except ImportError: - pyspike.NoCythonWarn() - - # use python backend - from .cython.python_backend import add_piece_wise_const_python as \ - add_piece_wise_const_impl - - self.x, self.y = add_piece_wise_const_impl(self.x, self.y, f.x, f.y)
- -
[docs] def mul_scalar(self, fac): - """ Multiplies the function with a scalar value - - :param fac: Value to multiply - :type fac: double - :rtype: None - """ - self.y *= fac
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/PieceWiseLinFunc.html b/doc/_build/html/_modules/pyspike/PieceWiseLinFunc.html deleted file mode 100644 index 94ef760..0000000 --- a/doc/_build/html/_modules/pyspike/PieceWiseLinFunc.html +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - - - pyspike.PieceWiseLinFunc — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.PieceWiseLinFunc

-# Class representing piece-wise linear functions.
-# Copyright 2014-2015, Mario Mulansky <mario.mulansky@gmx.net>
-# Distributed under the BSD License
-
-from __future__ import absolute_import, print_function
-
-import numpy as np
-import collections.abc
-import pyspike
-
-
-##############################################################
-# PieceWiseLinFunc
-##############################################################
-
[docs]class PieceWiseLinFunc: - """ A class representing a piece-wise linear function. """ - -
[docs] def __init__(self, x, y1, y2): - """ Constructs the piece-wise linear function. - - :param x: array of length N+1 defining the edges of the intervals of - the pwc function. - :param y1: array of length N defining the function values at the left - of the intervals. - :param y2: array of length N defining the function values at the right - of the intervals. - """ - # convert to array, which also ensures copying - self.x = np.array(x) - self.y1 = np.array(y1) - self.y2 = np.array(y2)
- - def __call__(self, t): - """ Returns the function value for the given time t. If t is a list of - times, the corresponding list of values is returned. - - :param: time t, or list of times - :returns: function value(s) at that time(s). - """ - def intermediate_value(x0, x1, y0, y1, x): - """ computes the intermediate value of a linear function """ - return y0 + (y1-y0)*(x-x0)/(x1-x0) - - assert np.all(t >= self.x[0]) and np.all(t <= self.x[-1]), \ - "Invalid time: " + str(t) - - ind = np.searchsorted(self.x, t, side='right') - - if isinstance(t, collections.abc.Sequence): - # t is a sequence of values - # correct the cases t == x[0], t == x[-1] - ind[ind == 0] = 1 - ind[ind == len(self.x)] = len(self.x)-1 - value = intermediate_value(self.x[ind-1], - self.x[ind], - self.y1[ind-1], - self.y2[ind-1], - t) - # correct the values at exact spike times: there the value should - # be the at half of the step - # obtain the 'left' side indices for t - ind_l = np.searchsorted(self.x, t, side='left') - # if left and right side indices differ, the time t has to appear - # in self.x - ind_at_spike = np.logical_and(np.logical_and(ind != ind_l, - ind > 1), - ind < len(self.x)) - # get the corresponding indices for the resulting value array - val_ind = np.arange(len(ind))[ind_at_spike] - # and for the values in self.x, y1, y2 - xy_ind = ind[ind_at_spike] - # the values are defined as the average of the left and right limit - value[val_ind] = 0.5 * (self.y1[xy_ind-1] + self.y2[xy_ind-2]) - return value - else: # t is a single value - # specific check for interval edges - if t == self.x[0]: - return self.y1[0] - if t == self.x[-1]: - return self.y2[-1] - # check if we are on any other exact spike time - if sum(self.x == t) > 0: - # use the middle of the left and right Spike value - return 0.5 * (self.y1[ind-1] + self.y2[ind-2]) - return intermediate_value(self.x[ind-1], - self.x[ind], - self.y1[ind-1], - self.y2[ind-1], - t) - -
[docs] def copy(self): - """ Returns a copy of itself - - :rtype: :class:`PieceWiseLinFunc` - """ - return PieceWiseLinFunc(self.x, self.y1, self.y2)
- -
[docs] def almost_equal(self, other, decimal=14): - """ Checks if the function is equal to another function up to `decimal` - precision. - - :param other: another :class:`PieceWiseLinFunc` - :returns: True if the two functions are equal up to `decimal` decimals, - False otherwise - :rtype: bool - """ - eps = 10.0**(-decimal) - return np.allclose(self.x, other.x, atol=eps, rtol=0.0) and \ - np.allclose(self.y1, other.y1, atol=eps, rtol=0.0) and \ - np.allclose(self.y2, other.y2, atol=eps, rtol=0.0)
- -
[docs] def get_plottable_data(self): - """ Returns two arrays containing x- and y-coordinates for immeditate - plotting of the piece-wise function. - - :returns: (x_plot, y_plot) containing plottable data - :rtype: pair of np.array - - Example:: - - x, y = f.get_plottable_data() - plt.plot(x, y, '-o', label="Piece-wise const function") - """ - x_plot = np.empty(2*len(self.x)-2) - x_plot[0] = self.x[0] - x_plot[1::2] = self.x[1:] - x_plot[2::2] = self.x[1:-1] - y_plot = np.empty_like(x_plot) - y_plot[0::2] = self.y1 - y_plot[1::2] = self.y2 - return x_plot, y_plot
- -
[docs] def integral(self, interval=None): - """ Returns the integral over the given interval. - - :param interval: integration interval given as a pair of floats, if - None the integral over the whole function is computed. - :type interval: Pair of floats or None. - :returns: the integral - :rtype: float - """ - - def intermediate_value(x0, x1, y0, y1, x): - """ computes the intermediate value of a linear function """ - return y0 + (y1-y0)*(x-x0)/(x1-x0) - - if interval is None: - # no interval given, integrate over the whole spike train - return np.sum((self.x[1:]-self.x[:-1]) * 0.5*(self.y1+self.y2)) - - # find the indices corresponding to the interval - start_ind = np.searchsorted(self.x, interval[0], side='right') - end_ind = np.searchsorted(self.x, interval[1], side='left')-1 - assert start_ind > 0 and end_ind < len(self.x), \ - "Invalid averaging interval" - if start_ind > end_ind: - print(start_ind, end_ind, self.x[start_ind]) - # contribution from between two closest edges - y_x0 = intermediate_value(self.x[start_ind-1], - self.x[start_ind], - self.y1[start_ind-1], - self.y2[start_ind-1], - interval[0]) - y_x1 = intermediate_value(self.x[start_ind-1], - self.x[start_ind], - self.y1[start_ind-1], - self.y2[start_ind-1], - interval[1]) - print(y_x0, y_x1, interval[1] - interval[0]) - integral = (y_x0 + y_x1) * 0.5 * (interval[1] - interval[0]) - print(integral) - else: - # first the contribution from between the indices - integral = np.sum((self.x[start_ind+1:end_ind+1] - - self.x[start_ind:end_ind]) * - 0.5*(self.y1[start_ind:end_ind] + - self.y2[start_ind:end_ind])) - # correction from start to first index - integral += (self.x[start_ind]-interval[0]) * 0.5 * \ - (self.y2[start_ind-1] + - intermediate_value(self.x[start_ind-1], - self.x[start_ind], - self.y1[start_ind-1], - self.y2[start_ind-1], - interval[0])) - # correction from last index to end - integral += (interval[1]-self.x[end_ind]) * 0.5 * \ - (self.y1[end_ind] + - intermediate_value(self.x[end_ind], self.x[end_ind+1], - self.y1[end_ind], self.y2[end_ind], - interval[1] - )) - return integral
- -
[docs] def avrg(self, interval=None): - """ Computes the average of the piece-wise linear function: - :math:`a = 1/T \int_0^T f(x) dx` where T is the interval length. - - :param interval: averaging interval given as a pair of floats, a - sequence of pairs for averaging multiple intervals, or - None, if None the average over the whole function is - computed. - :type interval: Pair, sequence of pairs, or None. - :returns: the average a. - :rtype: float - - """ - - if interval is None: - # no interval given, average over the whole spike train - return self.integral() / (self.x[-1]-self.x[0]) - - # check if interval is as sequence - assert isinstance(interval, collections.abc.Sequence), \ - "Invalid value for `interval`. None, Sequence or Tuple expected." - # check if interval is a sequence of intervals - if not isinstance(interval[0], collections.abc.Sequence): - # just one interval - a = self.integral(interval) / (interval[1]-interval[0]) - else: - # several intervals - a = 0.0 - int_length = 0.0 - for ival in interval: - a += self.integral(ival) - int_length += ival[1] - ival[0] - a /= int_length - return a
- -
[docs] def add(self, f): - """ Adds another PieceWiseLin function to this function. - Note: only functions defined on the same interval can be summed. - - :param f: :class:`PieceWiseLinFunc` function to be added. - :rtype: None - """ - assert self.x[0] == f.x[0], "The functions have different intervals" - assert self.x[-1] == f.x[-1], "The functions have different intervals" - - # python implementation - # from .python_backend import add_piece_wise_lin_python - # self.x, self.y1, self.y2 = add_piece_wise_lin_python( - # self.x, self.y1, self.y2, f.x, f.y1, f.y2) - - # cython version - try: - from .cython.cython_add import add_piece_wise_lin_cython as \ - add_piece_wise_lin_impl - except ImportError: - pyspike.NoCythonWarn() - - # use python backend - from .cython.python_backend import add_piece_wise_lin_python as \ - add_piece_wise_lin_impl - - self.x, self.y1, self.y2 = add_piece_wise_lin_impl( - self.x, self.y1, self.y2, f.x, f.y1, f.y2)
- -
[docs] def mul_scalar(self, fac): - """ Multiplies the function with a scalar value - - :param fac: Value to multiply - :type fac: double - :rtype: None - """ - self.y1 *= fac - self.y2 *= fac
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/SpikeTrain.html b/doc/_build/html/_modules/pyspike/SpikeTrain.html deleted file mode 100644 index e448ae3..0000000 --- a/doc/_build/html/_modules/pyspike/SpikeTrain.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - pyspike.SpikeTrain — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.SpikeTrain

-# Module containing the class representing spike trains for PySpike.
-# Copyright 2015, Mario Mulansky <mario.mulansky@gmx.net>
-# Distributed under the BSD License
-
-import numpy as np
-
-
-
[docs]class SpikeTrain(object): - """ Class representing spike trains for the PySpike Module.""" - -
[docs] def __init__(self, spike_times, edges, is_sorted=True): - """ Constructs the SpikeTrain. - - :param spike_times: ordered array of spike times. - :param edges: The edges of the spike train. Given as a pair of floats - (T0, T1) or a single float T1, where then T0=0 is - assumed. - :param is_sorted: If `False`, the spike times will sorted by `np.sort`. - - """ - - # TODO: sanity checks - if is_sorted: - self.spikes = np.array(spike_times, dtype=float) - else: - self.spikes = np.sort(np.array(spike_times, dtype=float)) - - try: - self.t_start = float(edges[0]) - self.t_end = float(edges[1]) - except: - self.t_start = 0.0 - self.t_end = float(edges)
- - def __getitem__(self, index): - """ Returns the time of the spike given by index. - - :param index: Index of the spike. - :return: spike time. - """ - return self.spikes[index] - - def __len__(self): - """ Returns the number of spikes. - - :return: Number of spikes. - """ - return len(self.spikes) - -
[docs] def sort(self): - """ Sorts the spike times of this spike train using `np.sort` - """ - self.spikes = np.sort(self.spikes)
- -
[docs] def copy(self): - """ Returns a copy of this spike train. - Use this function if you want to create a real (deep) copy of this - spike train. Simple assignment `t2 = t1` does not create a copy of the - spike train data, but a reference as `numpy.array` is used for storing - the data. - - :return: :class:`.SpikeTrain` copy of this spike train. - - """ - return SpikeTrain(self.spikes.copy(), [self.t_start, self.t_end])
- -
[docs] def get_spikes_non_empty(self): - """Returns the spikes of this spike train with auxiliary spikes in case - of empty spike trains. - """ - if len(self.spikes) < 1: - return np.unique(np.insert([self.t_start, self.t_end], 1, - self.spikes)) - else: - return self.spikes
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/isi_distance.html b/doc/_build/html/_modules/pyspike/isi_distance.html deleted file mode 100644 index 6cff5be..0000000 --- a/doc/_build/html/_modules/pyspike/isi_distance.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - - - pyspike.isi_distance — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.isi_distance

-""" isi_distance.py
-    Module containing several functions to compute the ISI profiles and distances
-    Copyright 2014-2015, Mario Mulansky <mario.mulansky@gmx.net>
-    Distributed under the BSD License
-"""
-
-from __future__ import absolute_import
-
-import pyspike
-from pyspike import PieceWiseConstFunc
-from pyspike.generic import _generic_profile_multi, _generic_distance_multi, \
-    _generic_distance_matrix, resolve_keywords
-from pyspike.isi_lengths import default_thresh
-from pyspike.spikes import reconcile_spike_trains, reconcile_spike_trains_bi
-
-############################################################
-# isi_profile
-############################################################
-
[docs]def isi_profile(*args, **kwargs): - """ Computes the isi-distance profile :math:`I(t)` of the given - spike trains. Returns the profile as a PieceWiseConstFunc object. The - ISI-values are defined positive :math:`I(t)>=0`. - - Valid call structures:: - - isi_profile(st1, st2) # returns the bi-variate profile - isi_profile(st1, st2, st3) # multi-variate profile of 3 spike trains - - spike_trains = [st1, st2, st3, st4] # list of spike trains - isi_profile(spike_trains) # profile of the list of spike trains - isi_profile(spike_trains, indices=[0, 1]) # use only the spike trains - # given by the indices - - The multivariate ISI distance profile for a set of spike trains is defined - as the average ISI-profile of all pairs of spike-trains: - - .. math:: <I(t)> = \\frac{2}{N(N-1)} \\sum_{<i,j>} I^{i,j}, - - where the sum goes over all pairs <i,j> - - - :returns: The isi-distance profile :math:`I(t)` - :rtype: :class:`.PieceWiseConstFunc` - """ - if len(args) == 1: - return isi_profile_multi(args[0], **kwargs) - elif len(args) == 2: - return isi_profile_bi(args[0], args[1], **kwargs) - else: - return isi_profile_multi(args, **kwargs)
- - -############################################################ -# isi_profile_bi -############################################################ -
[docs]def isi_profile_bi(spike_train1, spike_train2, **kwargs): - """ Specific function to compute a bivariate ISI-profile. This is a - deprecated function and should not be called directly. Use - :func:`.isi_profile` to compute ISI-profiles. - - :param spike_train1: First spike train. - :type spike_train1: :class:`.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`.SpikeTrain` - :returns: The isi-distance profile :math:`I(t)` - :rtype: :class:`.PieceWiseConstFunc` - - """ - if kwargs.get('Reconcile', True): - spike_train1, spike_train2 = reconcile_spike_trains_bi(spike_train1, spike_train2) - kwargs['Reconcile'] = False - - MRTS,RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh([spike_train1, spike_train2]) - kwargs['MRTS'] = MRTS - - # load cython implementation - try: - from .cython.cython_profiles import isi_profile_cython \ - as isi_profile_impl - except ImportError: - pyspike.NoCythonWarn() - - # use python backend - from .cython.python_backend import isi_distance_python \ - as isi_profile_impl - - times, values = isi_profile_impl(spike_train1.get_spikes_non_empty(), - spike_train2.get_spikes_non_empty(), - spike_train1.t_start, spike_train1.t_end, - MRTS) - return PieceWiseConstFunc(times, values)
- - -############################################################ -# isi_profile_multi -############################################################ -
[docs]def isi_profile_multi(spike_trains, indices=None, **kwargs): - """ Specific function to compute the multivariate ISI-profile for a set of - spike trains. This is a deprecated function and should not be called - directly. Use :func:`.isi_profile` to compute ISI-profiles. - - - :param spike_trains: list of :class:`.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type state: list or None - :returns: The averaged isi profile :math:`<I(t)>` - :rtype: :class:`.PieceWiseConstFunc` - """ - average_dist, M = _generic_profile_multi(spike_trains, isi_profile_bi, - indices, **kwargs) - average_dist.mul_scalar(1.0/M) # normalize - return average_dist
- - -############################################################ -# isi_distance -############################################################ -
[docs]def isi_distance(*args, **kwargs): - """ Computes the ISI-distance :math:`D_I` of the given spike trains. The - isi-distance is the integral over the isi distance profile - :math:`I(t)`: - - .. math:: D_I = \\int_{T_0}^{T_1} I(t) dt. - - In the multivariate case it is the integral over the multivariate - ISI-profile, i.e. the average profile over all spike train pairs: - - .. math:: D_I = \\int_0^T \\frac{2}{N(N-1)} \\sum_{<i,j>} I^{i,j}, - - where the sum goes over all pairs <i,j> - - - - Valid call structures:: - - isi_distance(st1, st2) # returns the bi-variate distance - isi_distance(st1, st2, st3) # multi-variate distance of 3 spike trains - - spike_trains = [st1, st2, st3, st4] # list of spike trains - isi_distance(spike_trains) # distance of the list of spike trains - isi_distance(spike_trains, indices=[0, 1]) # use only the spike trains - # given by the indices - - :returns: The isi-distance :math:`D_I`. - :rtype: double - """ - - if len(args) == 1: - return isi_distance_multi(args[0], **kwargs) - elif len(args) == 2: - return isi_distance_bi(args[0], args[1], **kwargs) - else: - return isi_distance_multi(args, **kwargs)
- - -############################################################ -# _isi_distance_bi -############################################################ -
[docs]def isi_distance_bi(spike_train1, spike_train2, interval=None, **kwargs): - """ Specific function to compute the bivariate ISI-distance. - This is a deprecated function and should not be called directly. Use - :func:`.isi_distance` to compute ISI-distances. - - :param spike_train1: First spike train. - :type spike_train1: :class:`.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`.SpikeTrain` - :param interval: averaging interval given as a pair of floats (T0, T1), - if None the average over the whole function is computed. - :type interval: Pair of floats or None. - :returns: The isi-distance :math:`D_I`. - :rtype: double - """ - if kwargs.get('Reconcile', True): - spike_train1, spike_train2 = reconcile_spike_trains_bi(spike_train1, spike_train2) - kwargs['Reconcile'] = False - - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh([spike_train1, spike_train2]) - kwargs['MRTS'] = MRTS - - if interval is None: - # distance over the whole interval is requested: use specific function - # for optimal performance - try: - from .cython.cython_distances import isi_distance_cython \ - as isi_distance_impl - - return isi_distance_impl(spike_train1.get_spikes_non_empty(), - spike_train2.get_spikes_non_empty(), - spike_train1.t_start, spike_train1.t_end, - MRTS) - except ImportError: - # Cython backend not available: fall back to profile averaging - return isi_profile_bi(spike_train1, spike_train2, **kwargs).avrg(interval) - else: - # some specific interval is provided: use profile - return isi_profile_bi(spike_train1, spike_train2, **kwargs).avrg(interval)
- - -############################################################ -# isi_distance_multi -############################################################ -
[docs]def isi_distance_multi(spike_trains, indices=None, interval=None, **kwargs): - """ Specific function to compute the multivariate ISI-distance. - This is a deprecfated function and should not be called directly. Use - :func:`.isi_distance` to compute ISI-distances. - - :param spike_trains: list of :class:`.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :param interval: averaging interval given as a pair of floats, if None - the average over the whole function is computed. - :type interval: Pair of floats or None. - :returns: The time-averaged multivariate ISI distance :math:`D_I` - :rtype: double - """ - return _generic_distance_multi(spike_trains, isi_distance_bi, indices, - interval, **kwargs)
- - -############################################################ -# isi_distance_matrix -############################################################ -
[docs]def isi_distance_matrix(spike_trains, indices=None, interval=None, **kwargs): - """ Computes the time averaged isi-distance of all pairs of spike-trains. - - :param spike_trains: list of :class:`.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param interval: averaging interval given as a pair of floats, if None - the average over the whole function is computed. - :type interval: Pair of floats or None. - :returns: 2D array with the pair wise time average isi distances - :math:`D_{I}^{ij}` - :rtype: np.array - """ - return _generic_distance_matrix(spike_trains, isi_distance_bi, - indices=indices, interval=interval, - **kwargs)
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/psth.html b/doc/_build/html/_modules/pyspike/psth.html deleted file mode 100644 index ec9f48a..0000000 --- a/doc/_build/html/_modules/pyspike/psth.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - pyspike.psth — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.psth

-# Module containing functions to compute the PSTH profile
-# Copyright 2015, Mario Mulansky <mario.mulansky@gmx.net>
-# Distributed under the BSD License
-
-import numpy as np
-from pyspike import PieceWiseConstFunc
-
-
-# Computes the peri-stimulus time histogram of a set of spike trains
-
[docs]def psth(spike_trains, bin_size): - """ Computes the peri-stimulus time histogram of a set of - :class:`.SpikeTrain`. The PSTH is simply the histogram of merged spike - events. The :code:`bin_size` defines the width of the histogram bins. - - :param spike_trains: list of :class:`.SpikeTrain` - :param bin_size: width of the histogram bins. - :return: The PSTH as a :class:`.PieceWiseConstFunc` - """ - - bin_count = int((spike_trains[0].t_end - spike_trains[0].t_start) / - bin_size) - bins = np.linspace(spike_trains[0].t_start, spike_trains[0].t_end, - bin_count+1) - - # N = len(spike_trains) - combined_spike_train = spike_trains[0].spikes - for i in range(1, len(spike_trains)): - combined_spike_train = np.append(combined_spike_train, - spike_trains[i].spikes) - - vals, edges = np.histogram(combined_spike_train, bins, density=False) - - bin_size = edges[1]-edges[0] - return PieceWiseConstFunc(edges, vals) # /(N*bin_size))
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/spike_directionality.html b/doc/_build/html/_modules/pyspike/spike_directionality.html deleted file mode 100644 index edcdd4c..0000000 --- a/doc/_build/html/_modules/pyspike/spike_directionality.html +++ /dev/null @@ -1,637 +0,0 @@ - - - - - - - - pyspike.spike_directionality — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.spike_directionality

-# Module containing functions to compute the SPIKE directionality and the
-# spike train order profile
-# Copyright 2015, Mario Mulansky <mario.mulansky@gmx.net>
-# Distributed under the BSD License
-
-from __future__ import absolute_import
-
-import numpy as np
-import pyspike
-from pyspike import DiscreteFunc
-from functools import partial
-from pyspike.generic import _generic_profile_multi, resolve_keywords
-from pyspike.isi_lengths import default_thresh
-from pyspike.spikes import reconcile_spike_trains, reconcile_spike_trains_bi
-
-
-############################################################
-# spike_directionality_values
-############################################################
-
-
[docs]def spike_directionality_values(*args, **kwargs): - """ Computes the spike directionality value for each spike in - each spike train. Returns a list containing an array of spike directionality - values for every given spike train. - - Valid call structures:: - - spike_directionality_values(st1, st2) # returns the bi-variate profile - spike_directionality_values(st1, st2, st3) # multi-variate profile of 3 - # spike trains - - spike_trains = [st1, st2, st3, st4] # list of spike trains - spike_directionality_values(spike_trains) # profile of the list of spike trains - spike_directionality_values(spike_trains, indices=[0, 1]) # use only the spike trains - # given by the indices - - Additonal arguments: - :param max_tau: Upper bound for coincidence window (default=None). - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - - :returns: The spike directionality values :math:`D^n_i` as a list of arrays. - """ - if len(args) == 1: - return _spike_directionality_values_impl(args[0], **kwargs) - else: - return _spike_directionality_values_impl(args, **kwargs)
- - -def _spike_directionality_values_impl(spike_trains, indices=None, - interval=None, max_tau=None, **kwargs): - """ Computes the multi-variate spike directionality profile - of the given spike trains. - - :param spike_trains: List of spike trains. - :type spike_trains: List of :class:`pyspike.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The spike-directionality values. - """ - if kwargs.get('Reconcile', True): - spike_trains = reconcile_spike_trains(spike_trains) - ## get the keywords: - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh(spike_trains) - - if interval is not None: - raise NotImplementedError("Parameter `interval` not supported.") - if indices is None: - indices = np.arange(len(spike_trains)) - indices = np.array(indices) - # check validity of indices - assert (indices < len(spike_trains)).all() and (indices >= 0).all(), \ - "Invalid index list." - # list of arrays for resulting asymmetry values - asymmetry_list = [np.zeros_like(spike_trains[n].spikes) for n in indices] - # generate a list of possible index pairs - pairs = [(indices[i], j) for i in range(len(indices)) - for j in indices[i+1:]] - - # cython implementation - try: - from .cython.cython_directionality import \ - spike_directionality_profiles_cython as profile_impl - except ImportError: - pyspike.NoCythonWarn() - - # use python backend - from .cython.directionality_python_backend import \ - spike_directionality_profile_python as profile_impl - - if max_tau is None: - max_tau = 0.0 - - for i, j in pairs: - d1, d2 = profile_impl(spike_trains[i].spikes, spike_trains[j].spikes, - spike_trains[i].t_start, spike_trains[i].t_end, - max_tau, MRTS) - asymmetry_list[i] += d1 - asymmetry_list[j] += d2 - for a in asymmetry_list: - a /= len(spike_trains)-1 - return asymmetry_list - - -############################################################ -# spike_directionality -############################################################ -
[docs]def spike_directionality(spike_train1, spike_train2, normalize=True, - interval=None, max_tau=None, **kwargs): - """ Computes the overall spike directionality of the first spike train with - respect to the second spike train. - - :param spike_train1: First spike train. - :type spike_train1: :class:`pyspike.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`pyspike.SpikeTrain` - :param normalize: Normalize by the number of spikes (multiplicity). - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The spike train order profile :math:`E(t)`. - """ - if kwargs.get('Reconcile', True): - spike_train1, spike_train2 = reconcile_spike_trains_bi(spike_train1, spike_train2) - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh([spike_train1, spike_train2]) - - if interval is None: - # distance over the whole interval is requested: use specific function - # for optimal performance - try: - from .cython.cython_directionality import \ - spike_directionality_cython as spike_directionality_impl - if max_tau is None: - max_tau = 0.0 - d = spike_directionality_impl(spike_train1.spikes, - spike_train2.spikes, - spike_train1.t_start, - spike_train1.t_end, - max_tau, MRTS) - c = len(spike_train1.spikes) - except ImportError: - pyspike.NoCythonWarn() - - # use profile. - d1, x = spike_directionality_values([spike_train1, spike_train2], - interval=interval, - max_tau=max_tau, - MRTS=MRTS) - d = np.sum(d1) - c = len(spike_train1.spikes) - if normalize: - return 1.0*d/c - else: - return d - else: - # some specific interval is provided: not yet implemented - raise NotImplementedError("Parameter `interval` not supported.")
- - -############################################################ -# spike_directionality_matrix -############################################################ -
[docs]def spike_directionality_matrix(spike_trains, normalize=True, indices=None, - interval=None, max_tau=None, **kwargs): - """ Computes the spike directionality matrix for the given spike trains. - - :param spike_trains: List of spike trains. - :type spike_trains: List of :class:`pyspike.SpikeTrain` - :param normalize: Normalize by the number of spikes (multiplicity). - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The spike-directionality values. - """ - if kwargs.get('Reconcile', True): - spike_trains = reconcile_spike_trains(spike_trains) - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh(spike_trains) - if indices is None: - indices = np.arange(len(spike_trains)) - indices = np.array(indices) - # check validity of indices - assert (indices < len(spike_trains)).all() and (indices >= 0).all(), \ - "Invalid index list." - # generate a list of possible index pairs - pairs = [(indices[i], j) for i in range(len(indices)) - for j in indices[i+1:]] - - distance_matrix = np.zeros((len(indices), len(indices))) - for i, j in pairs: - d = spike_directionality(spike_trains[i], spike_trains[j], normalize, - interval, max_tau=max_tau, - MRTS=MRTS, RI=RI, Reconcile=False) - distance_matrix[i, j] = d - distance_matrix[j, i] = -d - return distance_matrix
- - -############################################################ -# spike_train_order_profile -############################################################ -
[docs]def spike_train_order_profile(*args, **kwargs): - """ Computes the spike train order profile :math:`E(t)` of the given - spike trains. Returns the profile as a DiscreteFunction object. - - Valid call structures:: - - spike_train_order_profile(st1, st2) # returns the bi-variate profile - spike_train_order_profile(st1, st2, st3) # multi-variate profile of 3 - # spike trains - - spike_trains = [st1, st2, st3, st4] # list of spike trains - spike_train_order_profile(spike_trains) # profile of the list of spike trains - spike_train_order_profile(spike_trains, indices=[0, 1]) # use only the spike trains - # given by the indices - - Additonal arguments: - :param max_tau: Upper bound for coincidence window, `default=None`. - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - - :returns: The spike train order profile :math:`E(t)` - :rtype: :class:`.DiscreteFunction` - """ - if len(args) == 1: - return spike_train_order_profile_multi(args[0], **kwargs) - elif len(args) == 2: - return spike_train_order_profile_bi(args[0], args[1], **kwargs) - else: - return spike_train_order_profile_multi(args, **kwargs)
- - -############################################################ -# spike_train_order_profile_bi -############################################################ -
[docs]def spike_train_order_profile_bi(spike_train1, spike_train2, - max_tau=None, **kwargs): - """ Computes the spike train order profile P(t) of the two given - spike trains. Returns the profile as a DiscreteFunction object. - - :param spike_train1: First spike train. - :type spike_train1: :class:`pyspike.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`pyspike.SpikeTrain` - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The spike train order profile :math:`E(t)`. - :rtype: :class:`pyspike.function.DiscreteFunction` - """ - if kwargs.get('Reconcile', True): - spike_train1, spike_train2 = reconcile_spike_trains_bi(spike_train1, spike_train2) - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh([spike_train1, spike_train2]) - - # check whether the spike trains are defined for the same interval - assert spike_train1.t_start == spike_train2.t_start, \ - "Given spike trains are not defined on the same interval!" - assert spike_train1.t_end == spike_train2.t_end, \ - "Given spike trains are not defined on the same interval!" - - # cython implementation - try: - from .cython.cython_directionality import \ - spike_train_order_profile_cython as \ - spike_train_order_profile_impl - except ImportError: - # raise NotImplementedError() - pyspike.NoCythonWarn() - - # use python backend - from .cython.directionality_python_backend import \ - spike_train_order_profile_python as spike_train_order_profile_impl - - if max_tau is None: - max_tau = 0.0 - - times, coincidences, multiplicity \ - = spike_train_order_profile_impl(spike_train1.spikes, - spike_train2.spikes, - spike_train1.t_start, - spike_train1.t_end, - max_tau, MRTS) - - return DiscreteFunc(times, coincidences, multiplicity)
- - -############################################################ -# spike_train_order_profile_multi -############################################################ -
[docs]def spike_train_order_profile_multi(spike_trains, indices=None, - max_tau=None, **kwargs): - """ Computes the multi-variate spike train order profile for a set of - spike trains. For each spike in the set of spike trains, the multi-variate - profile is defined as the sum of asymmetry values divided by the number of - spike trains pairs involving the spike train of containing this spike, - which is the number of spike trains minus one (N-1). - - :param spike_trains: list of :class:`pyspike.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The multi-variate spike sync profile :math:`<S_{sync}>(t)` - :rtype: :class:`pyspike.function.DiscreteFunction` - """ - prof_func = partial(spike_train_order_profile_bi, max_tau=max_tau) - average_prof, M = _generic_profile_multi(spike_trains, prof_func, - indices, **kwargs) - return average_prof
- - - -############################################################ -# _spike_train_order_impl -############################################################ -def _spike_train_order_impl(spike_train1, spike_train2, - interval=None, max_tau=None, **kwargs): - """ Implementation of bi-variatae spike train order value (Synfire Indicator). - - :param spike_train1: First spike train. - :type spike_train1: :class:`pyspike.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`pyspike.SpikeTrain` - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The spike train order value (Synfire Indicator) - """ - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh([spike_train1, spike_train2]) - if interval is None: - # distance over the whole interval is requested: use specific function - # for optimal performance - try: - from .cython.cython_directionality import \ - spike_train_order_cython as spike_train_order_func - if max_tau is None: - max_tau = 0.0 - c, mp = spike_train_order_func(spike_train1.spikes, - spike_train2.spikes, - spike_train1.t_start, - spike_train1.t_end, - max_tau, MRTS) - except ImportError: - # Cython backend not available: fall back to profile averaging - c, mp = spike_train_order_profile(spike_train1, spike_train2, - max_tau=max_tau, - MRTS=MRTS).integral(interval) - return c, mp - else: - # some specific interval is provided: not yet implemented - raise NotImplementedError("Parameter `interval` not supported.") - - -############################################################ -# spike_train_order -############################################################ -
[docs]def spike_train_order(*args, **kwargs): - """ Computes the spike train order (Synfire Indicator) of the given - spike trains. - - Valid call structures:: - - spike_train_order(st1, st2, normalize=True) # normalized bi-variate - # spike train order - spike_train_order(st1, st2, st3) # multi-variate result of 3 spike trains - - spike_trains = [st1, st2, st3, st4] # list of spike trains - spike_train_order(spike_trains) # result for the list of spike trains - spike_train_order(spike_trains, indices=[0, 1]) # use only the spike trains - # given by the indices - - Additonal arguments: - - `max_tau` Upper bound for coincidence window, `default=None`. - - `normalize` Flag indicating if the reslut should be normalized by the - number of spikes , default=`False` - - - :returns: The spike train order value (Synfire Indicator) - """ - if len(args) == 1: - return spike_train_order_multi(args[0], **kwargs) - elif len(args) == 2: - return spike_train_order_bi(args[0], args[1], **kwargs) - else: - return spike_train_order_multi(args, **kwargs)
- - -############################################################ -# spike_train_order_bi -############################################################ -
[docs]def spike_train_order_bi(spike_train1, spike_train2, normalize=True, - interval=None, max_tau=None, **kwargs): - """ Computes the overall spike train order value (Synfire Indicator) - for two spike trains. - - :param spike_train1: First spike train. - :type spike_train1: :class:`pyspike.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`pyspike.SpikeTrain` - :param normalize: Normalize by the number of spikes (multiplicity). - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The spike train order value (Synfire Indicator) - """ - c, mp = _spike_train_order_impl(spike_train1, spike_train2, interval, max_tau, **kwargs) - if normalize: - return 1.0*c/mp - else: - return c
- -############################################################ -# spike_train_order_multi -############################################################ -
[docs]def spike_train_order_multi(spike_trains, indices=None, normalize=True, - interval=None, max_tau=None, **kwargs): - """ Computes the overall spike train order value (Synfire Indicator) - for many spike trains. - - :param spike_trains: list of :class:`.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :param normalize: Normalize by the number of spike (multiplicity). - :param interval: averaging interval given as a pair of floats, if None - the average over the whole function is computed. - :type interval: Pair of floats or None. - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: Spike train order values (Synfire Indicator) F for the given spike trains. - :rtype: double - """ - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh(spike_trains) - if indices is None: - indices = np.arange(len(spike_trains)) - indices = np.array(indices) - # check validity of indices - assert (indices < len(spike_trains)).all() and (indices >= 0).all(), \ - "Invalid index list." - # generate a list of possible index pairs - pairs = [(indices[i], j) for i in range(len(indices)) - for j in indices[i+1:]] - - e_total = 0.0 - m_total = 0.0 - for (i, j) in pairs: - e, m = _spike_train_order_impl(spike_trains[i], spike_trains[j], - interval, max_tau, MRTS=MRTS, RI=RI) - e_total += e - m_total += m - - if m == 0.0: - return 1.0 - else: - return e_total/m_total
- - - -############################################################ -# optimal_spike_train_sorting_from_matrix -############################################################ -def _optimal_spike_train_sorting_from_matrix(D, full_output=False): - """ Finds the best sorting via simulated annealing. - Returns the optimal permutation p and A value. - Not for direct use, call :func:`.optimal_spike_train_sorting` instead. - - :param D: The directionality (Spike-ORDER) matrix. - :param full_output: If true, then function will additionally return the - number of performed iterations (default=False) - :return: (p, F) - tuple with the optimal permutation and synfire indicator. - if `full_output=True` , (p, F, iter) is returned. - """ - N = len(D) - A = np.sum(np.triu(D, 0)) - - p = np.arange(N) - - T_start = 2*np.max(D) # starting temperature - T_end = 1E-5 * T_start # final temperature - alpha = 0.9 # cooling factor - - try: - from .cython.cython_simulated_annealing import sim_ann_cython as sim_ann - except ImportError: - raise NotImplementedError("PySpike with Cython required for computing spike train" - " sorting!") - - p, A, total_iter = sim_ann(D, T_start, T_end, alpha) - - if full_output: - return p, A, total_iter - else: - return p, A - - -############################################################ -# optimal_spike_train_sorting -############################################################ -
[docs]def optimal_spike_train_sorting(spike_trains, indices=None, interval=None, - max_tau=None, full_output=False, **kwargs): - """ Finds the best sorting of the given spike trains by computing the spike - directionality matrix and optimize the order using simulated annealing. - For a detailed description of the algorithm see: - `http://iopscience.iop.org/article/10.1088/1367-2630/aa68c3/meta` - - :param spike_trains: list of :class:`.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param interval: time interval filter given as a pair of floats, if None - the full spike trains are used (default=None). - :type interval: Pair of floats or None. - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound (default=None). - :param full_output: If true, then function will additionally return the - number of performed iterations (default=False) - :return: (p, F) - tuple with the optimal permutation and synfire indicator. - if `full_output=True` , (p, F, iter) is returned. - """ - D = spike_directionality_matrix(spike_trains, normalize=False, - indices=indices, interval=interval, - max_tau=max_tau, **kwargs) - return _optimal_spike_train_sorting_from_matrix(D, full_output)
- -############################################################ -# permutate_matrix -############################################################ -
[docs]def permutate_matrix(D, p): - """ Helper function that applies the permutation p to the columns and rows - of matrix D. Return the permutated matrix :math:`D'[n,m] = D[p[n], p[m]]`. - - :param D: The matrix. - :param d: The permutation. - :return: The permuated matrix D', ie :math:`D'[n,m] = D[p[n], p[m]]` - """ - N = len(D) - D_p = np.empty_like(D) - for n in range(N): - for m in range(N): - D_p[n, m] = D[p[n], p[m]] - return D_p
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/spike_distance.html b/doc/_build/html/_modules/pyspike/spike_distance.html deleted file mode 100644 index 3acaf94..0000000 --- a/doc/_build/html/_modules/pyspike/spike_distance.html +++ /dev/null @@ -1,327 +0,0 @@ - - - - - - - - pyspike.spike_distance — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.spike_distance

-# Module containing several functions to compute SPIKE profiles and distances
-# Copyright 2014-2015, Mario Mulansky <mario.mulansky@gmx.net>
-# Distributed under the BSD License
-
-from __future__ import absolute_import
-
-import pyspike
-from pyspike import PieceWiseLinFunc
-from pyspike.generic import _generic_profile_multi, _generic_distance_multi, \
-    _generic_distance_matrix, resolve_keywords
-from pyspike.isi_lengths import default_thresh
-from pyspike.spikes import reconcile_spike_trains, reconcile_spike_trains_bi
-
-
-############################################################
-# spike_profile
-############################################################
-
[docs]def spike_profile(*args, **kwargs): - """ Computes the spike-distance profile :math:`S(t)` of the given - spike trains. Returns the profile as a PieceWiseConstLin object. The - SPIKE-values are defined positive :math:`S(t)>=0`. - - Valid call structures:: - - spike_profile(st1, st2) # returns the bi-variate profile - spike_profile(st1, st2, st3) # multi-variate profile of 3 spike trains - - spike_trains = [st1, st2, st3, st4] # list of spike trains - spike_profile(spike_trains) # profile of the list of spike trains - spike_profile(spike_trains, indices=[0, 1]) # use only the spike trains - # given by the indices - - The multivariate spike-distance profile is defined as the average of all - pairs of spike-trains: - - .. math:: <S(t)> = \\frac{2}{N(N-1)} \\sum_{<i,j>} S^{i, j}`, - - where the sum goes over all pairs <i,j> - - :returns: The spike-distance profile :math:`S(t)` - :rtype: :class:`.PieceWiseConstLin` - """ - if len(args) == 1: - return spike_profile_multi(args[0], **kwargs) - elif len(args) == 2: - return spike_profile_bi(args[0], args[1], **kwargs) - else: - return spike_profile_multi(args, **kwargs)
- - -############################################################ -# spike_profile_bi -############################################################ -
[docs]def spike_profile_bi(spike_train1, spike_train2, **kwargs): - """ Specific function to compute a bivariate SPIKE-profile. This is a - deprecated function and should not be called directly. Use - :func:`.spike_profile` to compute SPIKE-profiles. - - :param spike_train1: First spike train. - :type spike_train1: :class:`.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`.SpikeTrain` - :returns: The spike-distance profile :math:`S(t)`. - :rtype: :class:`.PieceWiseLinFunc` - - """ - if kwargs.get('Reconcile', True): - spike_train1, spike_train2 = reconcile_spike_trains_bi(spike_train1, spike_train2) - MRTS, RI = resolve_keywords(**kwargs) - - if isinstance(MRTS, str): - MRTS = default_thresh([spike_train1, spike_train2]) - - # cython implementation - try: - from .cython.cython_profiles import spike_profile_cython \ - as spike_profile_impl - except ImportError: - pyspike.NoCythonWarn() - - # use python backend - from .cython.python_backend import spike_distance_python \ - as spike_profile_impl - - times, y_starts, y_ends = spike_profile_impl( - spike_train1.get_spikes_non_empty(), - spike_train2.get_spikes_non_empty(), - spike_train1.t_start, spike_train1.t_end, - MRTS, RI) - - return PieceWiseLinFunc(times, y_starts, y_ends)
- - -############################################################ -# spike_profile_multi -############################################################ -
[docs]def spike_profile_multi(spike_trains, indices=None, **kwargs): - """ Specific function to compute a multivariate SPIKE-profile. This is a - deprecated function and should not be called directly. Use - :func:`.spike_profile` to compute SPIKE-profiles. - - :param spike_trains: list of :class:`.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :returns: The averaged spike profile :math:`<S>(t)` - :rtype: :class:`.PieceWiseLinFunc` - - """ - average_dist, M = _generic_profile_multi(spike_trains, spike_profile_bi, - indices, **kwargs) - average_dist.mul_scalar(1.0/M) # normalize - return average_dist
- - -############################################################ -# spike_distance -############################################################ -
[docs]def spike_distance(*args, **kwargs): - """ Computes the SPIKE-distance :math:`D_S` of the given spike trains. The - spike-distance is the integral over the spike distance profile - :math:`D(t)`: - - .. math:: D_S = \\int_{T_0}^{T_1} S(t) dt. - - - Valid call structures:: - - spike_distance(st1, st2) # returns the bi-variate distance - spike_distance(st1, st2, st3) # multi-variate distance of 3 spike trains - - spike_trains = [st1, st2, st3, st4] # list of spike trains - spike_distance(spike_trains) # distance of the list of spike trains - spike_distance(spike_trains, indices=[0, 1]) # use only the spike trains - # given by the indices - - In the multivariate case, the spike distance is given as the integral over - the multivariate profile, that is the average profile of all spike train - pairs: - - .. math:: D_S = \\int_0^T \\frac{2}{N(N-1)} \\sum_{<i,j>} - S^{i, j} dt - - :returns: The spike-distance :math:`D_S`. - :rtype: double - """ - - if len(args) == 1: - return spike_distance_multi(args[0], **kwargs) - elif len(args) == 2: - return spike_distance_bi(args[0], args[1], **kwargs) - else: - return spike_distance_multi(args, **kwargs)
- - -############################################################ -# spike_distance_bi -############################################################ -
[docs]def spike_distance_bi(spike_train1, spike_train2, interval=None, **kwargs): - """ Specific function to compute a bivariate SPIKE-distance. This is a - deprecated function and should not be called directly. Use - :func:`.spike_distance` to compute SPIKE-distances. - - :param spike_train1: First spike train. - :type spike_train1: :class:`.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`.SpikeTrain` - :param interval: averaging interval given as a pair of floats (T0, T1), - if None the average over the whole function is computed. - :type interval: Pair of floats or None. - :returns: The spike-distance. - :rtype: double - - """ - if kwargs.get('Reconcile', True): - spike_train1, spike_train2 = reconcile_spike_trains_bi(spike_train1, spike_train2) - kwargs['Reconcile'] = False - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh([spike_train1, spike_train2]) - - if interval is None: - # distance over the whole interval is requested: use specific function - # for optimal performance - try: - from .cython.cython_distances import spike_distance_cython \ - as spike_distance_impl - return spike_distance_impl(spike_train1.get_spikes_non_empty(), - spike_train2.get_spikes_non_empty(), - spike_train1.t_start, - spike_train1.t_end, - MRTS, RI) - except ImportError: - # Cython backend not available: fall back to average profile - return spike_profile_bi(spike_train1, spike_train2, - **kwargs).avrg(interval) - else: - # some specific interval is provided: compute the whole profile - return spike_profile_bi(spike_train1, spike_train2, - **kwargs).avrg(interval)
- - -############################################################ -# spike_distance_multi -############################################################ -
[docs]def spike_distance_multi(spike_trains, indices=None, interval=None, **kwargs): - """ Specific function to compute a multivariate SPIKE-distance. This is a - deprecated function and should not be called directly. Use - :func:`.spike_distance` to compute SPIKE-distances. - - :param spike_trains: list of :class:`.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param interval: averaging interval given as a pair of floats, if None - the average over the whole function is computed. - :type interval: Pair of floats or None. - :returns: The averaged multi-variate spike distance :math:`D_S`. - :rtype: double - """ - return _generic_distance_multi(spike_trains, spike_distance_bi, indices, - interval, **kwargs)
- - -############################################################ -# spike_distance_matrix -############################################################ -
[docs]def spike_distance_matrix(spike_trains, indices=None, interval=None, **kwargs): - """ Computes the time averaged spike-distance of all pairs of spike-trains. - - :param spike_trains: list of :class:`.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param interval: averaging interval given as a pair of floats, if None - the average over the whole function is computed. - :type interval: Pair of floats or None. - :returns: 2D array with the pair wise time average spike distances - :math:`D_S^{ij}` - :rtype: np.array - """ - return _generic_distance_matrix(spike_trains, spike_distance_bi, - indices, interval, **kwargs)
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/spike_sync.html b/doc/_build/html/_modules/pyspike/spike_sync.html deleted file mode 100644 index 84fadbb..0000000 --- a/doc/_build/html/_modules/pyspike/spike_sync.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - - - pyspike.spike_sync — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.spike_sync

-# Module containing several functions to compute SPIKE-Synchronization profiles
-# and distances
-# Copyright 2014-2015, Mario Mulansky <mario.mulansky@gmx.net>
-# Distributed under the BSD License
-
-from __future__ import absolute_import
-
-import numpy as np
-from functools import partial
-import pyspike
-from pyspike import DiscreteFunc, SpikeTrain
-from pyspike.generic import _generic_profile_multi, _generic_distance_matrix, resolve_keywords
-from pyspike.isi_lengths import default_thresh
-from pyspike.spikes import reconcile_spike_trains, reconcile_spike_trains_bi
-
-
-############################################################
-# spike_sync_profile
-############################################################
-
[docs]def spike_sync_profile(*args, **kwargs): - """ Computes the spike-synchronization profile S_sync(t) of the given - spike trains. Returns the profile as a DiscreteFunction object. In the - bivariate case, he S_sync values are either 1 or 0, indicating the presence - or absence of a coincidence. For multi-variate cases, each spike in the set - of spike trains, the profile is defined as the number of coincidences - divided by the number of spike trains pairs involving the spike train of - containing this spike, which is the number of spike trains minus one (N-1). - - Valid call structures:: - - spike_sync_profile(st1, st2) # returns the bi-variate profile - spike_sync_profile(st1, st2, st3) # multi-variate profile of 3 sts - - sts = [st1, st2, st3, st4] # list of spike trains - spike_sync_profile(sts) # profile of the list of spike trains - spike_sync_profile(sts, indices=[0, 1]) # use only the spike trains - # given by the indices - - In the multivariate case, the profile is defined as the number of - coincidences for each spike in the set of spike trains divided by the - number of spike trains pairs involving the spike train of containing this - spike, which is the number of spike trains minus one (N-1). - - :returns: The spike-sync profile :math:`S_{sync}(t)`. - :rtype: :class:`pyspike.function.DiscreteFunction` - """ - if len(args) == 1: - return spike_sync_profile_multi(args[0], **kwargs) - elif len(args) == 2: - return spike_sync_profile_bi(args[0], args[1], **kwargs) - else: - return spike_sync_profile_multi(args, **kwargs)
- - -############################################################ -# spike_sync_profile_bi -############################################################ -
[docs]def spike_sync_profile_bi(spike_train1, spike_train2, max_tau=None, **kwargs): - """ Specific function to compute a bivariate SPIKE-Sync-profile. This is a - deprecated function and should not be called directly. Use - :func:`.spike_sync_profile` to compute SPIKE-Sync-profiles. - - :param spike_train1: First spike train. - :type spike_train1: :class:`pyspike.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`pyspike.SpikeTrain` - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The spike-sync profile :math:`S_{sync}(t)`. - :rtype: :class:`pyspike.function.DiscreteFunction` - - """ - if kwargs.get('Reconcile', True): - spike_train1, spike_train2 = reconcile_spike_trains_bi(spike_train1, spike_train2) - - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh([spike_train1, spike_train2]) - - # cython implementation - try: - from .cython.cython_profiles import coincidence_profile_cython \ - as coincidence_profile_impl - except ImportError: - pyspike.NoCythonWarn() - - # use python backend - from .cython.python_backend import coincidence_python \ - as coincidence_profile_impl - - if max_tau is None: - max_tau = 0.0 - - times, coincidences, multiplicity \ - = coincidence_profile_impl(spike_train1.spikes, spike_train2.spikes, - spike_train1.t_start, spike_train1.t_end, - max_tau, MRTS) - - return DiscreteFunc(times, coincidences, multiplicity)
- - -############################################################ -# spike_sync_profile_multi -############################################################ -
[docs]def spike_sync_profile_multi(spike_trains, indices=None, max_tau=None, **kwargs): - """ Specific function to compute a multivariate SPIKE-Sync-profile. - This is a deprecated function and should not be called directly. Use - :func:`.spike_sync_profile` to compute SPIKE-Sync-profiles. - - :param spike_trains: list of :class:`pyspike.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The multi-variate spike sync profile :math:`<S_{sync}>(t)` - :rtype: :class:`pyspike.function.DiscreteFunction` - - """ - prof_func = partial(spike_sync_profile_bi, max_tau=max_tau) - average_prof, M = _generic_profile_multi(spike_trains, prof_func, - indices, **kwargs) - # average_dist.mul_scalar(1.0/M) # no normalization here! - return average_prof
- - -############################################################ -# _spike_sync_values -############################################################ -def _spike_sync_values(spike_train1, spike_train2, interval, max_tau, **kwargs): - """" Internal function. Computes the summed coincidences and multiplicity - for spike synchronization of the two given spike trains. - - Do not call this function directly, use `spike_sync` or `spike_sync_multi` - instead. - """ - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh([spike_train1, spike_train2]) - if interval is None: - # distance over the whole interval is requested: use specific function - # for optimal performance - try: - from .cython.cython_distances import coincidence_value_cython \ - as coincidence_value_impl - if max_tau is None: - max_tau = 0.0 - c, mp = coincidence_value_impl(spike_train1.spikes, - spike_train2.spikes, - spike_train1.t_start, - spike_train1.t_end, - max_tau, MRTS) - return c, mp - except ImportError: - # Cython backend not available: fall back to profile averaging - return spike_sync_profile_bi(spike_train1, spike_train2, - max_tau, **kwargs).integral(interval) - else: - # some specific interval is provided: use profile - return spike_sync_profile_bi(spike_train1, spike_train2, - max_tau, **kwargs).integral(interval) - - -############################################################ -# spike_sync -############################################################ -
[docs]def spike_sync(*args, **kwargs): - """ Computes the spike synchronization value of the given spike - trains. The spike synchronization value is the computed as the total number - of coincidences divided by the total number of spikes: - - .. math:: SYNC = \sum_n C_n / N. - - - Valid call structures:: - - spike_sync(st1, st2) # returns the bi-variate spike synchronization - spike_sync(st1, st2, st3) # multi-variate result for 3 spike trains - - spike_trains = [st1, st2, st3, st4] # list of spike trains - spike_sync(spike_trains) # spike-sync of the list of spike trains - spike_sync(spike_trains, indices=[0, 1]) # use only the spike trains - # given by the indices - - The multivariate SPIKE-Sync is again defined as the overall ratio of all - coincidence values divided by the total number of spikes. - - :returns: The spike synchronization value. - :rtype: `double` - """ - - if len(args) == 1: - return spike_sync_multi(args[0], **kwargs) - elif len(args) == 2: - return spike_sync_bi(args[0], args[1], **kwargs) - else: - return spike_sync_multi(args, **kwargs)
- - -############################################################ -# spike_sync_bi -############################################################ -
[docs]def spike_sync_bi(spike_train1, spike_train2, interval=None, max_tau=None, **kwargs): - """ Specific function to compute a bivariate SPIKE-Sync value. - This is a deprecated function and should not be called directly. Use - :func:`.spike_sync` to compute SPIKE-Sync values. - - :param spike_train1: First spike train. - :type spike_train1: :class:`pyspike.SpikeTrain` - :param spike_train2: Second spike train. - :type spike_train2: :class:`pyspike.SpikeTrain` - :param interval: averaging interval given as a pair of floats (T0, T1), - if `None` the average over the whole function is computed. - :type interval: Pair of floats or None. - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The spike synchronization value. - :rtype: `double` - - """ - if kwargs.get('Reconcile', True): - spike_train1, spike_train2 = reconcile_spike_trains_bi(spike_train1, spike_train2) - kwargs['Reconcile'] = False - c, mp = _spike_sync_values(spike_train1, spike_train2, interval, max_tau, **kwargs) - if mp == 0: - return 1.0 - else: - return 1.0*c/mp
- - -############################################################ -# spike_sync_multi -############################################################ -
[docs]def spike_sync_multi(spike_trains, indices=None, interval=None, max_tau=None, **kwargs): - """ Specific function to compute a multivariate SPIKE-Sync value. - This is a deprecated function and should not be called directly. Use - :func:`.spike_sync` to compute SPIKE-Sync values. - - :param spike_trains: list of :class:`pyspike.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param interval: averaging interval given as a pair of floats, if None - the average over the whole function is computed. - :type interval: Pair of floats or None. - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: The multi-variate spike synchronization value SYNC. - :rtype: double - - """ - if kwargs.get('Reconcile', True): - spike_trains = reconcile_spike_trains(spike_trains) - kwargs['Reconcile'] = False - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - kwargs['MRTS'] = default_thresh(spike_trains) - - if indices is None: - indices = np.arange(len(spike_trains)) - indices = np.array(indices) - # check validity of indices - assert (indices < len(spike_trains)).all() and (indices >= 0).all(), \ - "Invalid index list." - # generate a list of possible index pairs - pairs = [(indices[i], j) for i in range(len(indices)) - for j in indices[i+1:]] - - coincidence = 0.0 - mp = 0.0 - for (i, j) in pairs: - c, m = _spike_sync_values(spike_trains[i], spike_trains[j], - interval, max_tau, - **kwargs) - coincidence += c - mp += m - - if mp == 0.0: - return 1.0 - else: - return coincidence/mp
- - -############################################################ -# spike_sync_matrix -############################################################ -
[docs]def spike_sync_matrix(spike_trains, indices=None, interval=None, max_tau=None, **kwargs): - """ Computes the overall spike-synchronization value of all pairs of - spike-trains. - - :param spike_trains: list of :class:`pyspike.SpikeTrain` - :param indices: list of indices defining which spike trains to use, - if None all given spike trains are used (default=None) - :type indices: list or None - :param interval: averaging interval given as a pair of floats, if None - the average over the whole function is computed. - :type interval: Pair of floats or None. - :param max_tau: Maximum coincidence window size. If 0 or `None`, the - coincidence window has no upper bound. - :returns: 2D array with the pair wise time spike synchronization values - :math:`SYNC_{ij}` - :rtype: np.array - - """ - dist_func = partial(spike_sync_bi, max_tau=max_tau) - ShouldBeSync = _generic_distance_matrix(spike_trains, dist_func, - indices, interval, **kwargs) - # These elements are not really distances, but spike-sync values - # The diagonal needs to reflect that: - for i in range(ShouldBeSync.shape[0]): - ShouldBeSync[i][i] = 1.0 - return ShouldBeSync
- - -############################################################ -# filter_by_spike_sync -############################################################ -
[docs]def filter_by_spike_sync(spike_trains, threshold, indices=None, max_tau=None, - return_removed_spikes=False, **kwargs): - """ Removes the spikes with a multi-variate spike_sync value below - threshold. - """ - if kwargs.get('Reconcile', True): - spike_trains = reconcile_spike_trains(spike_trains) - MRTS, RI = resolve_keywords(**kwargs) - if isinstance(MRTS, str): - MRTS = default_thresh(spike_trains) - N = len(spike_trains) - filtered_spike_trains = [] - removed_spike_trains = [] - - # cython implementation - try: - from .cython.cython_profiles import coincidence_single_profile_cython \ - as coincidence_impl - except ImportError: - pyspike.NoCythonWarn() - - # use python backend - from .cython.python_backend import coincidence_single_python \ - as coincidence_impl - - if max_tau is None: - max_tau = 0.0 - - for i, st in enumerate(spike_trains): - coincidences = np.zeros_like(st) - for j in range(N): - if i == j: - continue - coincidences += coincidence_impl(st.spikes, spike_trains[j].spikes, - st.t_start, st.t_end, max_tau, MRTS) - filtered_spikes = st[coincidences > threshold*(N-1)] - filtered_spike_trains.append(SpikeTrain(filtered_spikes, - [st.t_start, st.t_end])) - if return_removed_spikes: - removed_spikes = st[coincidences <= threshold*(N-1)] - removed_spike_trains.append(SpikeTrain(removed_spikes, - [st.t_start, st.t_end])) - if return_removed_spikes: - return [filtered_spike_trains, removed_spike_trains] - else: - return filtered_spike_trains
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_modules/pyspike/spikes.html b/doc/_build/html/_modules/pyspike/spikes.html deleted file mode 100644 index e3bbee4..0000000 --- a/doc/_build/html/_modules/pyspike/spikes.html +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - - - pyspike.spikes — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -

Source code for pyspike.spikes

-# Module containing several function to load and transform spike trains
-# Copyright 2014, Mario Mulansky <mario.mulansky@gmx.net>
-# Distributed under the BSD License
-
-import numpy as np
-from pyspike import SpikeTrain
-
-
-############################################################
-# spike_train_from_string
-############################################################
-
[docs]def spike_train_from_string(s, edges, sep=' ', is_sorted=False): - """ Converts a string of times into a :class:`.SpikeTrain`. - - :param s: the string with (ordered) spike times. - :param edges: interval defining the edges of the spike train. - Given as a pair of floats (T0, T1) or a single float T1, - where T0=0 is assumed. - :param sep: The separator between the time numbers, default=' '. - :param is_sorted: if True, the spike times are not sorted after loading, - if False, spike times are sorted with `np.sort` - :returns: :class:`.SpikeTrain` - """ - return SpikeTrain(np.fromstring(s, sep=sep), edges, is_sorted)
- - -############################################################ -# load_spike_trains_from_txt -############################################################ -
[docs]def load_spike_trains_from_txt(file_name, edges, - separator=' ', comment='#', is_sorted=False, - ignore_empty_lines=True): - """ Loads a number of spike trains from a text file. Each line of the text - file should contain one spike train as a sequence of spike times separated - by `separator`. Empty lines as well as lines starting with `comment` are - neglected. The `edges` represents the start and the end of the - spike trains. - - :param file_name: The name of the text file. - :param edges: A pair (T_start, T_end) of values representing the - start and end time of the spike train measurement - or a single value representing the end time, the - T_start is then assuemd as 0. - :param separator: The character used to seprate the values in the text file - :param comment: Lines starting with this character are ignored. - :param sort: If true, the spike times are order via `np.sort`, default=True - :returns: list of :class:`.SpikeTrain` - """ - spike_trains = [] - with open(file_name, 'r') as spike_file: - for line in spike_file: - if not line.startswith(comment): # ignore comments - if len(line) > 1: - # ignore empty lines - spike_train = spike_train_from_string(line, edges, - separator, is_sorted) - spike_trains.append(spike_train) - elif not(ignore_empty_lines): - # add empty spike train - spike_trains.append(SpikeTrain([], edges)) - return spike_trains
- - -
[docs]def import_spike_trains_from_time_series(file_name, start_time, time_bin, - separator=None, comment='#'): - """ Imports spike trains from time series consisting of 0 and 1 denoting - the absence or presence of a spike. Each line in the data file represents - one spike train. - - :param file_name: The name of the data file containing the time series. - :param edges: A pair (T_start, T_end) of values representing the - start and end time of the spike train measurement - or a single value representing the end time, the - T_start is then assuemd as 0. - :param separator: The character used to seprate the values in the text file - :param comment: Lines starting with this character are ignored. - - """ - data = np.loadtxt(file_name, comments=comment, delimiter=separator) - time_points = start_time + time_bin + np.arange(len(data[0, :]))*time_bin - spike_trains = [] - for time_series in data: - spike_trains.append(SpikeTrain(time_points[time_series > 0], - edges=[start_time, - time_points[-1]])) - return spike_trains
- - -############################################################ -# save_spike_trains_to_txt -############################################################ -
[docs]def save_spike_trains_to_txt(spike_trains, file_name, - separator=' ', precision=8): - """ Saves the given spike trains into a file with the given file name. - Each spike train will be stored in one line in the text file with the times - separated by `separator`. - - :param spike_trains: List of :class:`.SpikeTrain` objects - :param file_name: The name of the text file. - """ - # format string to print the spike times with given precision - format_str = "{0:.%de}" % precision - with open(file_name, 'w') as spike_file: - for st in spike_trains: - s = separator.join(map(format_str.format, st.spikes)) - spike_file.write(s+'\n')
- - -############################################################ -# merge_spike_trains -############################################################ -
[docs]def merge_spike_trains(spike_trains): - """ Merges a number of spike trains into a single spike train. - - :param spike_trains: list of :class:`.SpikeTrain` - :returns: spike train with the merged spike times - """ - # concatenating and sorting with numpy is fast, it also means we can handle - # empty spike trains - merged_spikes = np.concatenate([st.spikes for st in spike_trains]) - merged_spikes.sort() - return SpikeTrain(merged_spikes, [spike_trains[0].t_start, - spike_trains[0].t_end])
- - -############################################################ -# generate_poisson_spikes -############################################################ -
[docs]def generate_poisson_spikes(rate, interval): - """ Generates a Poisson spike train with the given rate in the given time - interval - - :param rate: The rate of the spike trains - :param interval: A pair (T_start, T_end) of values representing the - start and end time of the spike train measurement or - a single value representing the end time, the T_start - is then assuemd as 0. Auxiliary spikes will be added - to the spike train at the beginning and end of this - interval, if they are not yet present. - :type interval: pair of doubles or double - :returns: Poisson spike train as a :class:`.SpikeTrain` - """ - try: - T_start = interval[0] - T_end = interval[1] - except: - T_start = 0 - T_end = interval - # roughly how many spikes are required to fill the interval - N = max(1, int(1.2 * rate * (T_end-T_start))) - N_append = max(1, int(0.1 * rate * (T_end-T_start))) - intervals = np.random.exponential(1.0/rate, N) - # make sure we have enough spikes - while T_start + sum(intervals) < T_end: - # print T_start + sum(intervals) - intervals = np.append(intervals, - np.random.exponential(1.0/rate, N_append)) - spikes = T_start + np.cumsum(intervals) - spikes = spikes[spikes < T_end] - return SpikeTrain(spikes, interval)
- -
[docs]def reconcile_spike_trains(spike_trains): - """ make sure that Spike trains meet PySpike rules - In: spike_trains - a list of SpikeTrain objects - Out: spike_trains - same list with some fixes: - 1) t_start and t_end are the same for every train - 2) The spike times are sorted - 3) No duplicate times in any train - 4) spike times outside of t_start,t_end removed - """ - ## handle sorting and uniqueness first (np.unique() does a sort) - spike_trains = [SpikeTrain(np.unique(s.spikes), - [s.t_start, s.t_end], - is_sorted=True) for s in spike_trains] - - ## find global start and end times - Starts = [s.t_start for s in spike_trains] - tStart = min(Starts) - - Ends = [s.t_end for s in spike_trains] - tEnd = max(Ends) - - ## remove spike times outside of the bounds - Eps = 1e-6 #beware precision change - for s in spike_trains: - s.spikes = [t for t in s.spikes if t > tStart-Eps and t < tEnd+Eps] - - ## Apply start and end times to every train - return [SpikeTrain(s.spikes, [tStart, tEnd], is_sorted=True) for s in spike_trains]
- -
[docs]def reconcile_spike_trains_bi(spike_train1, spike_train2): - """ fix up a pair of spike trains""" - trains_in = [spike_train1, spike_train2] - trains_out = reconcile_spike_trains(trains_in) - return trains_out[0], trains_out[1]
-
- -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/_sources/index.rst.txt b/doc/_build/html/_sources/index.rst.txt deleted file mode 100644 index f34690b..0000000 --- a/doc/_build/html/_sources/index.rst.txt +++ /dev/null @@ -1,26 +0,0 @@ -.. PySpike documentation master file, created by - sphinx-quickstart on Thu Oct 16 15:56:58 2014. - You can adapt this file completely to your liking, but it should at least - contain the root `toctree` directive. - -.. include:: ../Readme.rst - -Tutorial -=================================== - -.. include:: tutorial.rst - -Reference -=================================== - -.. toctree:: - :maxdepth: 2 - - pyspike - -Indices and tables -=================================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/doc/_build/html/_sources/pyspike.rst.txt b/doc/_build/html/_sources/pyspike.rst.txt deleted file mode 100644 index 3b10d2a..0000000 --- a/doc/_build/html/_sources/pyspike.rst.txt +++ /dev/null @@ -1,79 +0,0 @@ -pyspike package -=============== - - -Classes ----------------------------------------- - -SpikeTrain -........................................ -.. automodule:: pyspike.SpikeTrain - :members: - :undoc-members: - :show-inheritance: - -PieceWiseConstFunc -........................................ -.. automodule:: pyspike.PieceWiseConstFunc - :members: - :undoc-members: - :show-inheritance: - -PieceWiseLinFunc -........................................ -.. automodule:: pyspike.PieceWiseLinFunc - :members: - :undoc-members: - :show-inheritance: - -DiscreteFunc -........................................ -.. automodule:: pyspike.DiscreteFunc - :members: - :undoc-members: - :show-inheritance: - -Functions ----------- - -ISI-distance -........................................ -.. automodule:: pyspike.isi_distance - :members: - :undoc-members: - :show-inheritance: - -SPIKE-distance -........................................ -.. automodule:: pyspike.spike_distance - :members: - :undoc-members: - :show-inheritance: - -SPIKE-synchronization -........................................ -.. automodule:: pyspike.spike_sync - :members: - :undoc-members: - :show-inheritance: - -PSTH -........................................ -.. automodule:: pyspike.psth - :members: - :undoc-members: - :show-inheritance: - -Directionality -........................................ -.. automodule:: pyspike.spike_directionality - :members: - :undoc-members: - :show-inheritance: - -Helper functions -........................................ -.. automodule:: pyspike.spikes - :members: - :undoc-members: - :show-inheritance: diff --git a/doc/_build/html/_sources/tutorial.rst.txt b/doc/_build/html/_sources/tutorial.rst.txt deleted file mode 100644 index c663ad8..0000000 --- a/doc/_build/html/_sources/tutorial.rst.txt +++ /dev/null @@ -1,353 +0,0 @@ -Spike trains ------------- - -In PySpike, spike trains are represented by :class:`.SpikeTrain` objects. -A :class:`.SpikeTrain` object consists of the spike times given as `numpy` arrays as well as the edges of the spike train as :code:`[t_start, t_end]`. -The following code creates such a spike train with some arbitrary spike times: - -.. code:: python - - import numpy as np - from pyspike import SpikeTrain - - spike_train = SpikeTrain(np.array([0.1, 0.3, 0.45, 0.6, 0.9], [0.0, 1.0])) - -Loading from text files -....................... - -Typically, spike train data is loaded into PySpike from data files. -The most straight-forward data files are text files where each line represents one spike train given as an sequence of spike times. -An exemplary file with several spike trains is `PySpike_testdata.txt `_. -To quickly obtain spike trains from such files, PySpike provides the function :func:`.load_spike_trains_from_txt`. - -.. code:: python - - import numpy as np - import pyspike as spk - - spike_trains = spk.load_spike_trains_from_txt("SPIKY_testdata.txt", - edges=(0, 4000)) - -This function expects the name of the data file as first parameter. -Furthermore, the time interval of the spike train measurement (edges of the spike trains) should be provided as a pair of start- and end-time values. -Furthermore, the spike trains are sorted via :code:`np.sort` (disable this feature by providing :code:`is_sorted=True` as a parameter to the load function). -As result, :func:`.load_spike_trains_from_txt` returns a *list of arrays* containing the spike trains in the text file. - - -**Important note:** - ------------------------------- - -Spike trains are expected to be *sorted*! -For performance reasons, the PySpike distance functions do not check if the spike trains provided are indeed sorted. -Make sure that all your spike trains are sorted, which is ensured if you use the :func:`.load_spike_trains_from_txt` function with the parameter `is_sorted=False` (default). -If in doubt, use :meth:`.SpikeTrain.sort()` to ensure a correctly sorted spike train. - -Alternatively the function :func:`.reconcile_spike_trains` applies three fixes to a list of SpikeTrain objects. It sorts -the times, it removes all but one of any duplicated time, and it ensures all t_start and t_end values are compatible - -.. code:: python - - from pyspike.spikes import reconcile_spike_trains - spike_trains = reconcile_spike_trains(spike_trains) - -If you need to copy a spike train, use the :meth:`.SpikeTrain.copy()` method. -Simple assignment `t2 = t1` does not create a copy of the spike train data, but a reference as `numpy.array` is used for storing the data. - -PySpike algorithms -------------------- - -PySpike supports four basic algorithms for comparing spike trains and their adaptive generalizations - -The basic algorithms are: - -1) ISI-distance (Inter Spike Intervals) -2) SPIKE-distance -3) Rate-Independent SPIKE-distance (RI-SPIKE) -4) SPIKE sychronization - -plus - -(5-8) Adaptive generalizations of 1-4 based on the MRTS (Minimum Relevant Time Scale) parameter - -Algorithms 3 and 5-8 are new in version 0.8.0. - -ISI-distance -............ - -The following code loads some exemplary spike trains, computes the dissimilarity profile of the ISI-distance of the first two :class:`.SpikeTrain` s, and plots it with matplotlib: - -.. code:: python - - import matplotlib.pyplot as plt - import pyspike as spk - - spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", - edges=(0, 4000)) - isi_profile = spk.isi_profile(spike_trains[0], spike_trains[1]) - x, y = isi_profile.get_plottable_data() - plt.plot(x, y, '--k') - print("ISI distance: %.8f" % isi_profile.avrg()) - plt.show() - -The ISI-profile is a piece-wise constant function, and hence the function :func:`.isi_profile` returns an instance of the :class:`.PieceWiseConstFunc` class. -As shown above, this class allows you to obtain arrays that can be used to plot the function with :code:`plt.plt`, but also to compute the time average, which amounts to the final scalar ISI-distance. -By default, the time average is computed for the whole :class:`.PieceWiseConstFunc` function. -However, it is also possible to obtain the average of a specific interval by providing a pair of floats defining the start and end of the interval. -For the above example, the following code computes the ISI-distances obtained from averaging the ISI-profile over four different intervals: - -.. code:: python - - isi1 = isi_profile.avrg(interval=(0, 1000)) - isi2 = isi_profile.avrg(interval=(1000, 2000)) - isi3 = isi_profile.avrg(interval=[(0, 1000), (2000, 3000)]) - isi4 = isi_profile.avrg(interval=[(1000, 2000), (3000, 4000)]) - -Note, how also multiple intervals can be supplied by giving a list of tuples. - -If you are only interested in the scalar ISI-distance and not the profile, you can simply use: - -.. code:: python - - isi_dist = spk.isi_distance(spike_trains[0], spike_trains[1], interval=(0, 1000)) - -where :code:`interval` is optional, as above, and if omitted the ISI-distance is computed for the complete spike train. - -SPIKE-distance -.............. - -To compute for the spike distance profile you use the function :func:`.spike_profile` instead of :code:`isi_profile` above. -But the general approach is very similar: - -.. code:: python - - import matplotlib.pyplot as plt - import pyspike as spk - - spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", - edges=(0, 4000)) - spike_profile = spk.spike_profile(spike_trains[0], spike_trains[1]) - x, y = spike_profile.get_plottable_data() - plt.plot(x, y, '--k') - print("SPIKE distance: %.8f" % spike_profile.avrg()) - plt.show() - -This short example computes and plots the SPIKE-profile of the first two spike trains in the file :code:`PySpike_testdata.txt`. - -In contrast to the ISI-profile, a SPIKE-profile is a piece-wise *linear* function and is therefore represented by a :class:`.PieceWiseLinFunc` object. -Just like the :class:`.PieceWiseConstFunc` for the ISI-profile, the :class:`.PieceWiseLinFunc` provides a :meth:`.PieceWiseLinFunc.get_plottable_data` member function that returns arrays that can be used directly to plot the function. -Furthermore, the :meth:`.PieceWiseLinFunc.avrg` member function returns the average of the profile defined as the overall SPIKE distance. -As above, you can provide an interval as a pair of floats as well as a sequence of such pairs to :code:`avrg` to specify the averaging interval if required. - -Again, you can use: - -.. code:: python - - spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], interval=ival) - -to compute the SPIKE distance directly, if you are not interested in the profile at all. -The parameter :code:`interval` is optional and if neglected the whole time interval is used. - - -Rate-Independent SPIKE-distance -............................... - -This variant of the SPIKE-distance disregards any differences in base rates and focuses purely on spike timing. -It can be calculated by setting the optional parameter "RI=True": - -.. code:: python - - ri_spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], RI=True) - - -SPIKE synchronization -..................... - -**Important note:** - ------------------------------- - - SPIKE-Synchronization measures *similarity*. - That means, a value of zero indicates absence of synchrony, while a value of one denotes the presence of synchrony. - This is exactly opposite to the other two measures: ISI- and SPIKE-distance. - ----------------------- - - -SPIKE synchronization is another approach to measure spike synchrony. -In contrast to the SPIKE- and ISI-distance, it measures similarity instead of dissimilarity, i.e. higher values represent larger synchrony. -Another difference is that the SPIKE synchronization profile is only defined exactly at the spike times, not for the whole interval of the spike trains. -Therefore, it is represented by a :class:`.DiscreteFunction`. - -To compute for the spike synchronization profile, PySpike provides the function :func:`.spike_sync_profile`. -The general handling of the profile, however, is similar to the other profiles above: - -.. code:: python - - import matplotlib.pyplot as plt - import pyspike as spk - - spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", - edges=(0, 4000)) - spike_profile = spk.spike_sync_profile(spike_trains[0], spike_trains[1]) - x, y = spike_profile.get_plottable_data() - -For the direct computation of the overall spike synchronization value within some interval, the :func:`.spike_sync` function can be used: - -.. code:: python - - spike_sync = spk.spike_sync(spike_trains[0], spike_trains[1], interval=ival) - - -Adaptive generalizations -........................ - -The adaptive generalizations for all four of these basic measures can be calculated by setting the optional parameter "MRTS=" (MRTS - Minimum Relevant Time Scale). -If is greater than zero the respective basic algorithm is modified to reduce emphasis on smaller spike time differences. -If MRTS is set to 'auto', the threshold is automatically extracted from the data. - -Here are a few example lines: - -.. code:: python - - a_isi_dist = spk.isi_distance(spike_trains, MRTS=10) - - a_spike_profile = spk.spike_profile(spike_trains, MRTS=20) - - a_ri_spike_matrix = spk.spike_distance_matrix(spike_trains[0], spike_trains[1], RI=True, MRTS=50) - - a_spike_sync_auto = spk.spike_sync(spike_trains[0], spike_trains[1], MRTS='auto') - - -Computing multivariate profiles and distances ----------------------------------------------- - -To compute the multivariate ISI-profile, SPIKE-profile or SPIKE-Synchronization profile for a set of spike trains, simply provide a list of spike trains to the profile or distance functions. -The following example computes the multivariate ISI-, SPIKE- and SPIKE-Sync-profile for a list of spike trains: - -.. code:: python - - spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", - edges=(0, 4000)) - avrg_isi_profile = spk.isi_profile(spike_trains) - avrg_spike_profile = spk.spike_profile(spike_trains) - avrg_spike_sync_profile = spk.spike_sync_profile(spike_trains) - -All functions also take an optional parameter :code:`indices`, a list of indices that allows to define the spike trains that should be used for the multivariate profile. -As before, if you are only interested in the distance values, and not in the profile, you can call the functions: :func:`.isi_distance`, :func:`.spike_distance` and :func:`.spike_sync` with a list of spike trains. -They return the scalar overall multivariate ISI-, SPIKE-distance or the SPIKE-Synchronization value. - -The following code is equivalent to the bivariate example above, computing the ISI-Distance between the first two spike trains in the given interval using the :code:`indices` parameter: - -.. code:: python - - isi_dist = spk.isi_distance(spike_trains, indices=[0, 1], interval=(0, 1000)) - -As you can see, the distance functions also accept an :code:`interval` parameter that can be used to specify the begin and end of the averaging interval as a pair of floats, if neglected the complete interval is used. - -**Note:** - ------------------------------- - - Instead of providing lists of spike trains to the profile or distance functions, you can also call those functions with many spike trains as (unnamed) parameters, e.g.: - - .. code:: python - - # st1, st2, st3, st4 are spike trains - spike_prof = spk.spike_profile(st1, st2, st3, st4) - ------------------------------- - - -Another option to characterize large sets of spike trains are distance matrices. -Each entry in the distance matrix represents a bivariate distance (similarity for SPIKE-Synchronization) of two spike trains. -The distance matrix is symmetric and has zero values (ones) at the diagonal and is computed with the functions :func:`.isi_distance_matrix`, :func:`.spike_distance_matrix` and :func:`.spike_sync_matrix`. -The following example computes and plots the ISI- and SPIKE-distance matrix as well as the SPIKE-Synchronization-matrix, with different intervals. - -.. code:: python - - spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", 4000) - - plt.figure() - isi_distance = spk.isi_distance_matrix(spike_trains) - plt.imshow(isi_distance, interpolation='none') - plt.title("ISI-distance") - - plt.figure() - spike_distance = spk.spike_distance_matrix(spike_trains, interval=(0,1000)) - plt.imshow(spike_distance, interpolation='none') - plt.title("SPIKE-distance") - - plt.figure() - spike_sync = spk.spike_sync_matrix(spike_trains, interval=(2000,4000)) - plt.imshow(spike_sync, interpolation='none') - plt.title("SPIKE-Sync") - - plt.show() - - -Quantifying Leaders and Followers: Spike Train Order ------------------------------------------------------ - -PySpike provides functionality to quantify how much a set of spike trains -resembles a synfire pattern (ie perfect leader-follower pattern). For details -on the algorithms please see -`our article in NJP `_. - -The following example computes the Spike Order profile and Synfire Indicator -of two Poissonian spike trains. - -.. code:: python - - import numpy as np - from matplotlib import pyplot as plt - import pyspike as spk - - - st1 = spk.generate_poisson_spikes(1.0, [0, 20]) - st2 = spk.generate_poisson_spikes(1.0, [0, 20]) - - d = spk.spike_directionality(st1, st2) - - print "Spike Directionality of two Poissonian spike trains:", d - - E = spk.spike_train_order_profile(st1, st2) - - plt.figure() - x, y = E.get_plottable_data() - plt.plot(x, y, '-ob') - plt.ylim(-1.1, 1.1) - plt.xlabel("t") - plt.ylabel("E") - plt.title("Spike Train Order Profile") - - plt.show() - -Additionally, PySpike can also compute the optimal ordering of the spike trains, -ie the ordering that most resembles a synfire pattern. The following example -computes the optimal order of a set of 20 Poissonian spike trains: - -.. code:: python - - M = 20 - spike_trains = [spk.generate_poisson_spikes(1.0, [0, 100]) for m in xrange(M)] - - F_init = spk.spike_train_order(spike_trains) - print "Initial Synfire Indicator for 20 Poissonian spike trains:", F_init - - D_init = spk.spike_directionality_matrix(spike_trains) - phi, _ = spk.optimal_spike_train_sorting(spike_trains) - F_opt = spk.spike_train_order(spike_trains, indices=phi) - print "Synfire Indicator of optimized spike train sorting:", F_opt - - D_opt = spk.permutate_matrix(D_init, phi) - - plt.figure() - plt.imshow(D_init) - plt.title("Initial Directionality Matrix") - - plt.figure() - plt.imshow(D_opt) - plt.title("Optimized Directionality Matrix") - - plt.show() diff --git a/doc/_build/html/_static/_sphinx_javascript_frameworks_compat.js b/doc/_build/html/_static/_sphinx_javascript_frameworks_compat.js deleted file mode 100644 index 8549469..0000000 --- a/doc/_build/html/_static/_sphinx_javascript_frameworks_compat.js +++ /dev/null @@ -1,134 +0,0 @@ -/* - * _sphinx_javascript_frameworks_compat.js - * ~~~~~~~~~~ - * - * Compatability shim for jQuery and underscores.js. - * - * WILL BE REMOVED IN Sphinx 6.0 - * xref RemovedInSphinx60Warning - * - */ - -/** - * select a different prefix for underscore - */ -$u = _.noConflict(); - - -/** - * small helper function to urldecode strings - * - * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL - */ -jQuery.urldecode = function(x) { - if (!x) { - return x - } - return decodeURIComponent(x.replace(/\+/g, ' ')); -}; - -/** - * small helper function to urlencode strings - */ -jQuery.urlencode = encodeURIComponent; - -/** - * This function returns the parsed url parameters of the - * current request. Multiple values per key are supported, - * it will always return arrays of strings for the value parts. - */ -jQuery.getQueryParameters = function(s) { - if (typeof s === 'undefined') - s = document.location.search; - var parts = s.substr(s.indexOf('?') + 1).split('&'); - var result = {}; - for (var i = 0; i < parts.length; i++) { - var tmp = parts[i].split('=', 2); - var key = jQuery.urldecode(tmp[0]); - var value = jQuery.urldecode(tmp[1]); - if (key in result) - result[key].push(value); - else - result[key] = [value]; - } - return result; -}; - -/** - * highlight a given string on a jquery object by wrapping it in - * span elements with the given class name. - */ -jQuery.fn.highlightText = function(text, className) { - function highlight(node, addItems) { - if (node.nodeType === 3) { - var val = node.nodeValue; - var pos = val.toLowerCase().indexOf(text); - if (pos >= 0 && - !jQuery(node.parentNode).hasClass(className) && - !jQuery(node.parentNode).hasClass("nohighlight")) { - var span; - var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); - if (isInSVG) { - span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); - } else { - span = document.createElement("span"); - span.className = className; - } - span.appendChild(document.createTextNode(val.substr(pos, text.length))); - node.parentNode.insertBefore(span, node.parentNode.insertBefore( - document.createTextNode(val.substr(pos + text.length)), - node.nextSibling)); - node.nodeValue = val.substr(0, pos); - if (isInSVG) { - var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); - var bbox = node.parentElement.getBBox(); - rect.x.baseVal.value = bbox.x; - rect.y.baseVal.value = bbox.y; - rect.width.baseVal.value = bbox.width; - rect.height.baseVal.value = bbox.height; - rect.setAttribute('class', className); - addItems.push({ - "parent": node.parentNode, - "target": rect}); - } - } - } - else if (!jQuery(node).is("button, select, textarea")) { - jQuery.each(node.childNodes, function() { - highlight(this, addItems); - }); - } - } - var addItems = []; - var result = this.each(function() { - highlight(this, addItems); - }); - for (var i = 0; i < addItems.length; ++i) { - jQuery(addItems[i].parent).before(addItems[i].target); - } - return result; -}; - -/* - * backward compatibility for jQuery.browser - * This will be supported until firefox bug is fixed. - */ -if (!jQuery.browser) { - jQuery.uaMatch = function(ua) { - ua = ua.toLowerCase(); - - var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || - /(webkit)[ \/]([\w.]+)/.exec(ua) || - /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || - /(msie) ([\w.]+)/.exec(ua) || - ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || - []; - - return { - browser: match[ 1 ] || "", - version: match[ 2 ] || "0" - }; - }; - jQuery.browser = {}; - jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; -} diff --git a/doc/_build/html/_static/basic.css b/doc/_build/html/_static/basic.css deleted file mode 100644 index 4e9a9f1..0000000 --- a/doc/_build/html/_static/basic.css +++ /dev/null @@ -1,900 +0,0 @@ -/* - * basic.css - * ~~~~~~~~~ - * - * Sphinx stylesheet -- basic theme. - * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -/* -- main layout ----------------------------------------------------------- */ - -div.clearer { - clear: both; -} - -div.section::after { - display: block; - content: ''; - clear: left; -} - -/* -- relbar ---------------------------------------------------------------- */ - -div.related { - width: 100%; - font-size: 90%; -} - -div.related h3 { - display: none; -} - -div.related ul { - margin: 0; - padding: 0 0 0 10px; - list-style: none; -} - -div.related li { - display: inline; -} - -div.related li.right { - float: right; - margin-right: 5px; -} - -/* -- sidebar --------------------------------------------------------------- */ - -div.sphinxsidebarwrapper { - padding: 10px 5px 0 10px; -} - -div.sphinxsidebar { - float: left; - width: 230px; - margin-left: -100%; - font-size: 90%; - word-wrap: break-word; - overflow-wrap : break-word; -} - -div.sphinxsidebar ul { - list-style: none; -} - -div.sphinxsidebar ul ul, -div.sphinxsidebar ul.want-points { - margin-left: 20px; - list-style: square; -} - -div.sphinxsidebar ul ul { - margin-top: 0; - margin-bottom: 0; -} - -div.sphinxsidebar form { - margin-top: 10px; -} - -div.sphinxsidebar input { - border: 1px solid #98dbcc; - font-family: sans-serif; - font-size: 1em; -} - -div.sphinxsidebar #searchbox form.search { - overflow: hidden; -} - -div.sphinxsidebar #searchbox input[type="text"] { - float: left; - width: 80%; - padding: 0.25em; - box-sizing: border-box; -} - -div.sphinxsidebar #searchbox input[type="submit"] { - float: left; - width: 20%; - border-left: none; - padding: 0.25em; - box-sizing: border-box; -} - - -img { - border: 0; - max-width: 100%; -} - -/* -- search page ----------------------------------------------------------- */ - -ul.search { - margin: 10px 0 0 20px; - padding: 0; -} - -ul.search li { - padding: 5px 0 5px 20px; - background-image: url(file.png); - background-repeat: no-repeat; - background-position: 0 7px; -} - -ul.search li a { - font-weight: bold; -} - -ul.search li p.context { - color: #888; - margin: 2px 0 0 30px; - text-align: left; -} - -ul.keywordmatches li.goodmatch a { - font-weight: bold; -} - -/* -- index page ------------------------------------------------------------ */ - -table.contentstable { - width: 90%; - margin-left: auto; - margin-right: auto; -} - -table.contentstable p.biglink { - line-height: 150%; -} - -a.biglink { - font-size: 1.3em; -} - -span.linkdescr { - font-style: italic; - padding-top: 5px; - font-size: 90%; -} - -/* -- general index --------------------------------------------------------- */ - -table.indextable { - width: 100%; -} - -table.indextable td { - text-align: left; - vertical-align: top; -} - -table.indextable ul { - margin-top: 0; - margin-bottom: 0; - list-style-type: none; -} - -table.indextable > tbody > tr > td > ul { - padding-left: 0em; -} - -table.indextable tr.pcap { - height: 10px; -} - -table.indextable tr.cap { - margin-top: 10px; - background-color: #f2f2f2; -} - -img.toggler { - margin-right: 3px; - margin-top: 3px; - cursor: pointer; -} - -div.modindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -div.genindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -/* -- domain module index --------------------------------------------------- */ - -table.modindextable td { - padding: 2px; - border-collapse: collapse; -} - -/* -- general body styles --------------------------------------------------- */ - -div.body { - min-width: 360px; - max-width: 800px; -} - -div.body p, div.body dd, div.body li, div.body blockquote { - -moz-hyphens: auto; - -ms-hyphens: auto; - -webkit-hyphens: auto; - hyphens: auto; -} - -a.headerlink { - visibility: hidden; -} - -h1:hover > a.headerlink, -h2:hover > a.headerlink, -h3:hover > a.headerlink, -h4:hover > a.headerlink, -h5:hover > a.headerlink, -h6:hover > a.headerlink, -dt:hover > a.headerlink, -caption:hover > a.headerlink, -p.caption:hover > a.headerlink, -div.code-block-caption:hover > a.headerlink { - visibility: visible; -} - -div.body p.caption { - text-align: inherit; -} - -div.body td { - text-align: left; -} - -.first { - margin-top: 0 !important; -} - -p.rubric { - margin-top: 30px; - font-weight: bold; -} - -img.align-left, figure.align-left, .figure.align-left, object.align-left { - clear: left; - float: left; - margin-right: 1em; -} - -img.align-right, figure.align-right, .figure.align-right, object.align-right { - clear: right; - float: right; - margin-left: 1em; -} - -img.align-center, figure.align-center, .figure.align-center, object.align-center { - display: block; - margin-left: auto; - margin-right: auto; -} - -img.align-default, figure.align-default, .figure.align-default { - display: block; - margin-left: auto; - margin-right: auto; -} - -.align-left { - text-align: left; -} - -.align-center { - text-align: center; -} - -.align-default { - text-align: center; -} - -.align-right { - text-align: right; -} - -/* -- sidebars -------------------------------------------------------------- */ - -div.sidebar, -aside.sidebar { - margin: 0 0 0.5em 1em; - border: 1px solid #ddb; - padding: 7px; - background-color: #ffe; - width: 40%; - float: right; - clear: right; - overflow-x: auto; -} - -p.sidebar-title { - font-weight: bold; -} -nav.contents, -aside.topic, -div.admonition, div.topic, blockquote { - clear: left; -} - -/* -- topics ---------------------------------------------------------------- */ -nav.contents, -aside.topic, -div.topic { - border: 1px solid #ccc; - padding: 7px; - margin: 10px 0 10px 0; -} - -p.topic-title { - font-size: 1.1em; - font-weight: bold; - margin-top: 10px; -} - -/* -- admonitions ----------------------------------------------------------- */ - -div.admonition { - margin-top: 10px; - margin-bottom: 10px; - padding: 7px; -} - -div.admonition dt { - font-weight: bold; -} - -p.admonition-title { - margin: 0px 10px 5px 0px; - font-weight: bold; -} - -div.body p.centered { - text-align: center; - margin-top: 25px; -} - -/* -- content of sidebars/topics/admonitions -------------------------------- */ - -div.sidebar > :last-child, -aside.sidebar > :last-child, -nav.contents > :last-child, -aside.topic > :last-child, -div.topic > :last-child, -div.admonition > :last-child { - margin-bottom: 0; -} - -div.sidebar::after, -aside.sidebar::after, -nav.contents::after, -aside.topic::after, -div.topic::after, -div.admonition::after, -blockquote::after { - display: block; - content: ''; - clear: both; -} - -/* -- tables ---------------------------------------------------------------- */ - -table.docutils { - margin-top: 10px; - margin-bottom: 10px; - border: 0; - border-collapse: collapse; -} - -table.align-center { - margin-left: auto; - margin-right: auto; -} - -table.align-default { - margin-left: auto; - margin-right: auto; -} - -table caption span.caption-number { - font-style: italic; -} - -table caption span.caption-text { -} - -table.docutils td, table.docutils th { - padding: 1px 8px 1px 5px; - border-top: 0; - border-left: 0; - border-right: 0; - border-bottom: 1px solid #aaa; -} - -th { - text-align: left; - padding-right: 5px; -} - -table.citation { - border-left: solid 1px gray; - margin-left: 1px; -} - -table.citation td { - border-bottom: none; -} - -th > :first-child, -td > :first-child { - margin-top: 0px; -} - -th > :last-child, -td > :last-child { - margin-bottom: 0px; -} - -/* -- figures --------------------------------------------------------------- */ - -div.figure, figure { - margin: 0.5em; - padding: 0.5em; -} - -div.figure p.caption, figcaption { - padding: 0.3em; -} - -div.figure p.caption span.caption-number, -figcaption span.caption-number { - font-style: italic; -} - -div.figure p.caption span.caption-text, -figcaption span.caption-text { -} - -/* -- field list styles ----------------------------------------------------- */ - -table.field-list td, table.field-list th { - border: 0 !important; -} - -.field-list ul { - margin: 0; - padding-left: 1em; -} - -.field-list p { - margin: 0; -} - -.field-name { - -moz-hyphens: manual; - -ms-hyphens: manual; - -webkit-hyphens: manual; - hyphens: manual; -} - -/* -- hlist styles ---------------------------------------------------------- */ - -table.hlist { - margin: 1em 0; -} - -table.hlist td { - vertical-align: top; -} - -/* -- object description styles --------------------------------------------- */ - -.sig { - font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; -} - -.sig-name, code.descname { - background-color: transparent; - font-weight: bold; -} - -.sig-name { - font-size: 1.1em; -} - -code.descname { - font-size: 1.2em; -} - -.sig-prename, code.descclassname { - background-color: transparent; -} - -.optional { - font-size: 1.3em; -} - -.sig-paren { - font-size: larger; -} - -.sig-param.n { - font-style: italic; -} - -/* C++ specific styling */ - -.sig-inline.c-texpr, -.sig-inline.cpp-texpr { - font-family: unset; -} - -.sig.c .k, .sig.c .kt, -.sig.cpp .k, .sig.cpp .kt { - color: #0033B3; -} - -.sig.c .m, -.sig.cpp .m { - color: #1750EB; -} - -.sig.c .s, .sig.c .sc, -.sig.cpp .s, .sig.cpp .sc { - color: #067D17; -} - - -/* -- other body styles ----------------------------------------------------- */ - -ol.arabic { - list-style: decimal; -} - -ol.loweralpha { - list-style: lower-alpha; -} - -ol.upperalpha { - list-style: upper-alpha; -} - -ol.lowerroman { - list-style: lower-roman; -} - -ol.upperroman { - list-style: upper-roman; -} - -:not(li) > ol > li:first-child > :first-child, -:not(li) > ul > li:first-child > :first-child { - margin-top: 0px; -} - -:not(li) > ol > li:last-child > :last-child, -:not(li) > ul > li:last-child > :last-child { - margin-bottom: 0px; -} - -ol.simple ol p, -ol.simple ul p, -ul.simple ol p, -ul.simple ul p { - margin-top: 0; -} - -ol.simple > li:not(:first-child) > p, -ul.simple > li:not(:first-child) > p { - margin-top: 0; -} - -ol.simple p, -ul.simple p { - margin-bottom: 0; -} -aside.footnote > span, -div.citation > span { - float: left; -} -aside.footnote > span:last-of-type, -div.citation > span:last-of-type { - padding-right: 0.5em; -} -aside.footnote > p { - margin-left: 2em; -} -div.citation > p { - margin-left: 4em; -} -aside.footnote > p:last-of-type, -div.citation > p:last-of-type { - margin-bottom: 0em; -} -aside.footnote > p:last-of-type:after, -div.citation > p:last-of-type:after { - content: ""; - clear: both; -} - -dl.field-list { - display: grid; - grid-template-columns: fit-content(30%) auto; -} - -dl.field-list > dt { - font-weight: bold; - word-break: break-word; - padding-left: 0.5em; - padding-right: 5px; -} - -dl.field-list > dd { - padding-left: 0.5em; - margin-top: 0em; - margin-left: 0em; - margin-bottom: 0em; -} - -dl { - margin-bottom: 15px; -} - -dd > :first-child { - margin-top: 0px; -} - -dd ul, dd table { - margin-bottom: 10px; -} - -dd { - margin-top: 3px; - margin-bottom: 10px; - margin-left: 30px; -} - -dl > dd:last-child, -dl > dd:last-child > :last-child { - margin-bottom: 0; -} - -dt:target, span.highlighted { - background-color: #fbe54e; -} - -rect.highlighted { - fill: #fbe54e; -} - -dl.glossary dt { - font-weight: bold; - font-size: 1.1em; -} - -.versionmodified { - font-style: italic; -} - -.system-message { - background-color: #fda; - padding: 5px; - border: 3px solid red; -} - -.footnote:target { - background-color: #ffa; -} - -.line-block { - display: block; - margin-top: 1em; - margin-bottom: 1em; -} - -.line-block .line-block { - margin-top: 0; - margin-bottom: 0; - margin-left: 1.5em; -} - -.guilabel, .menuselection { - font-family: sans-serif; -} - -.accelerator { - text-decoration: underline; -} - -.classifier { - font-style: oblique; -} - -.classifier:before { - font-style: normal; - margin: 0 0.5em; - content: ":"; - display: inline-block; -} - -abbr, acronym { - border-bottom: dotted 1px; - cursor: help; -} - -/* -- code displays --------------------------------------------------------- */ - -pre { - overflow: auto; - overflow-y: hidden; /* fixes display issues on Chrome browsers */ -} - -pre, div[class*="highlight-"] { - clear: both; -} - -span.pre { - -moz-hyphens: none; - -ms-hyphens: none; - -webkit-hyphens: none; - hyphens: none; - white-space: nowrap; -} - -div[class*="highlight-"] { - margin: 1em 0; -} - -td.linenos pre { - border: 0; - background-color: transparent; - color: #aaa; -} - -table.highlighttable { - display: block; -} - -table.highlighttable tbody { - display: block; -} - -table.highlighttable tr { - display: flex; -} - -table.highlighttable td { - margin: 0; - padding: 0; -} - -table.highlighttable td.linenos { - padding-right: 0.5em; -} - -table.highlighttable td.code { - flex: 1; - overflow: hidden; -} - -.highlight .hll { - display: block; -} - -div.highlight pre, -table.highlighttable pre { - margin: 0; -} - -div.code-block-caption + div { - margin-top: 0; -} - -div.code-block-caption { - margin-top: 1em; - padding: 2px 5px; - font-size: small; -} - -div.code-block-caption code { - background-color: transparent; -} - -table.highlighttable td.linenos, -span.linenos, -div.highlight span.gp { /* gp: Generic.Prompt */ - user-select: none; - -webkit-user-select: text; /* Safari fallback only */ - -webkit-user-select: none; /* Chrome/Safari */ - -moz-user-select: none; /* Firefox */ - -ms-user-select: none; /* IE10+ */ -} - -div.code-block-caption span.caption-number { - padding: 0.1em 0.3em; - font-style: italic; -} - -div.code-block-caption span.caption-text { -} - -div.literal-block-wrapper { - margin: 1em 0; -} - -code.xref, a code { - background-color: transparent; - font-weight: bold; -} - -h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { - background-color: transparent; -} - -.viewcode-link { - float: right; -} - -.viewcode-back { - float: right; - font-family: sans-serif; -} - -div.viewcode-block:target { - margin: -1px -10px; - padding: 0 10px; -} - -/* -- math display ---------------------------------------------------------- */ - -img.math { - vertical-align: middle; -} - -div.body div.math p { - text-align: center; -} - -span.eqno { - float: right; -} - -span.eqno a.headerlink { - position: absolute; - z-index: 1; -} - -div.math:hover a.headerlink { - visibility: visible; -} - -/* -- printout stylesheet --------------------------------------------------- */ - -@media print { - div.document, - div.documentwrapper, - div.bodywrapper { - margin: 0 !important; - width: 100%; - } - - div.sphinxsidebar, - div.related, - div.footer, - #top-link { - display: none; - } -} \ No newline at end of file diff --git a/doc/_build/html/_static/classic.css b/doc/_build/html/_static/classic.css deleted file mode 100644 index 92cac9f..0000000 --- a/doc/_build/html/_static/classic.css +++ /dev/null @@ -1,269 +0,0 @@ -/* - * classic.css_t - * ~~~~~~~~~~~~~ - * - * Sphinx stylesheet -- classic theme. - * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -@import url("basic.css"); - -/* -- page layout ----------------------------------------------------------- */ - -html { - /* CSS hack for macOS's scrollbar (see #1125) */ - background-color: #FFFFFF; -} - -body { - font-family: sans-serif; - font-size: 100%; - background-color: #11303d; - color: #000; - margin: 0; - padding: 0; -} - -div.document { - display: flex; - background-color: #1c4e63; -} - -div.documentwrapper { - float: left; - width: 100%; -} - -div.bodywrapper { - margin: 0 0 0 230px; -} - -div.body { - background-color: #ffffff; - color: #000000; - padding: 0 20px 30px 20px; -} - -div.footer { - color: #ffffff; - width: 100%; - padding: 9px 0 9px 0; - text-align: center; - font-size: 75%; -} - -div.footer a { - color: #ffffff; - text-decoration: underline; -} - -div.related { - background-color: #133f52; - line-height: 30px; - color: #ffffff; -} - -div.related a { - color: #ffffff; -} - -div.sphinxsidebar { -} - -div.sphinxsidebar h3 { - font-family: 'Trebuchet MS', sans-serif; - color: #ffffff; - font-size: 1.4em; - font-weight: normal; - margin: 0; - padding: 0; -} - -div.sphinxsidebar h3 a { - color: #ffffff; -} - -div.sphinxsidebar h4 { - font-family: 'Trebuchet MS', sans-serif; - color: #ffffff; - font-size: 1.3em; - font-weight: normal; - margin: 5px 0 0 0; - padding: 0; -} - -div.sphinxsidebar p { - color: #ffffff; -} - -div.sphinxsidebar p.topless { - margin: 5px 10px 10px 10px; -} - -div.sphinxsidebar ul { - margin: 10px; - padding: 0; - color: #ffffff; -} - -div.sphinxsidebar a { - color: #98dbcc; -} - -div.sphinxsidebar input { - border: 1px solid #98dbcc; - font-family: sans-serif; - font-size: 1em; -} - - - -/* -- hyperlink styles ------------------------------------------------------ */ - -a { - color: #355f7c; - text-decoration: none; -} - -a:visited { - color: #355f7c; - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - - - -/* -- body styles ----------------------------------------------------------- */ - -div.body h1, -div.body h2, -div.body h3, -div.body h4, -div.body h5, -div.body h6 { - font-family: 'Trebuchet MS', sans-serif; - background-color: #f2f2f2; - font-weight: normal; - color: #20435c; - border-bottom: 1px solid #ccc; - margin: 20px -20px 10px -20px; - padding: 3px 0 3px 10px; -} - -div.body h1 { margin-top: 0; font-size: 200%; } -div.body h2 { font-size: 160%; } -div.body h3 { font-size: 140%; } -div.body h4 { font-size: 120%; } -div.body h5 { font-size: 110%; } -div.body h6 { font-size: 100%; } - -a.headerlink { - color: #c60f0f; - font-size: 0.8em; - padding: 0 4px 0 4px; - text-decoration: none; -} - -a.headerlink:hover { - background-color: #c60f0f; - color: white; -} - -div.body p, div.body dd, div.body li, div.body blockquote { - text-align: justify; - line-height: 130%; -} - -div.admonition p.admonition-title + p { - display: inline; -} - -div.admonition p { - margin-bottom: 5px; -} - -div.admonition pre { - margin-bottom: 5px; -} - -div.admonition ul, div.admonition ol { - margin-bottom: 5px; -} - -div.note { - background-color: #eee; - border: 1px solid #ccc; -} - -div.seealso { - background-color: #ffc; - border: 1px solid #ff6; -} -nav.contents, -aside.topic, - -div.topic { - background-color: #eee; -} - -div.warning { - background-color: #ffe4e4; - border: 1px solid #f66; -} - -p.admonition-title { - display: inline; -} - -p.admonition-title:after { - content: ":"; -} - -pre { - padding: 5px; - background-color: unset; - color: unset; - line-height: 120%; - border: 1px solid #ac9; - border-left: none; - border-right: none; -} - -code { - background-color: #ecf0f3; - padding: 0 1px 0 1px; - font-size: 0.95em; -} - -th, dl.field-list > dt { - background-color: #ede; -} - -.warning code { - background: #efc2c2; -} - -.note code { - background: #d6d6d6; -} - -.viewcode-back { - font-family: sans-serif; -} - -div.viewcode-block:target { - background-color: #f4debf; - border-top: 1px solid #ac9; - border-bottom: 1px solid #ac9; -} - -div.code-block-caption { - color: #efefef; - background-color: #1c4e63; -} \ No newline at end of file diff --git a/doc/_build/html/_static/default.css b/doc/_build/html/_static/default.css deleted file mode 100644 index 81b9363..0000000 --- a/doc/_build/html/_static/default.css +++ /dev/null @@ -1 +0,0 @@ -@import url("classic.css"); diff --git a/doc/_build/html/_static/doctools.js b/doc/_build/html/_static/doctools.js deleted file mode 100644 index 527b876..0000000 --- a/doc/_build/html/_static/doctools.js +++ /dev/null @@ -1,156 +0,0 @@ -/* - * doctools.js - * ~~~~~~~~~~~ - * - * Base JavaScript utilities for all Sphinx HTML documentation. - * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ -"use strict"; - -const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([ - "TEXTAREA", - "INPUT", - "SELECT", - "BUTTON", -]); - -const _ready = (callback) => { - if (document.readyState !== "loading") { - callback(); - } else { - document.addEventListener("DOMContentLoaded", callback); - } -}; - -/** - * Small JavaScript module for the documentation. - */ -const Documentation = { - init: () => { - Documentation.initDomainIndexTable(); - Documentation.initOnKeyListeners(); - }, - - /** - * i18n support - */ - TRANSLATIONS: {}, - PLURAL_EXPR: (n) => (n === 1 ? 0 : 1), - LOCALE: "unknown", - - // gettext and ngettext don't access this so that the functions - // can safely bound to a different name (_ = Documentation.gettext) - gettext: (string) => { - const translated = Documentation.TRANSLATIONS[string]; - switch (typeof translated) { - case "undefined": - return string; // no translation - case "string": - return translated; // translation exists - default: - return translated[0]; // (singular, plural) translation tuple exists - } - }, - - ngettext: (singular, plural, n) => { - const translated = Documentation.TRANSLATIONS[singular]; - if (typeof translated !== "undefined") - return translated[Documentation.PLURAL_EXPR(n)]; - return n === 1 ? singular : plural; - }, - - addTranslations: (catalog) => { - Object.assign(Documentation.TRANSLATIONS, catalog.messages); - Documentation.PLURAL_EXPR = new Function( - "n", - `return (${catalog.plural_expr})` - ); - Documentation.LOCALE = catalog.locale; - }, - - /** - * helper function to focus on search bar - */ - focusSearchBar: () => { - document.querySelectorAll("input[name=q]")[0]?.focus(); - }, - - /** - * Initialise the domain index toggle buttons - */ - initDomainIndexTable: () => { - const toggler = (el) => { - const idNumber = el.id.substr(7); - const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`); - if (el.src.substr(-9) === "minus.png") { - el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`; - toggledRows.forEach((el) => (el.style.display = "none")); - } else { - el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`; - toggledRows.forEach((el) => (el.style.display = "")); - } - }; - - const togglerElements = document.querySelectorAll("img.toggler"); - togglerElements.forEach((el) => - el.addEventListener("click", (event) => toggler(event.currentTarget)) - ); - togglerElements.forEach((el) => (el.style.display = "")); - if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler); - }, - - initOnKeyListeners: () => { - // only install a listener if it is really needed - if ( - !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && - !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS - ) - return; - - document.addEventListener("keydown", (event) => { - // bail for input elements - if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; - // bail with special keys - if (event.altKey || event.ctrlKey || event.metaKey) return; - - if (!event.shiftKey) { - switch (event.key) { - case "ArrowLeft": - if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; - - const prevLink = document.querySelector('link[rel="prev"]'); - if (prevLink && prevLink.href) { - window.location.href = prevLink.href; - event.preventDefault(); - } - break; - case "ArrowRight": - if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; - - const nextLink = document.querySelector('link[rel="next"]'); - if (nextLink && nextLink.href) { - window.location.href = nextLink.href; - event.preventDefault(); - } - break; - } - } - - // some keyboard layouts may need Shift to get / - switch (event.key) { - case "/": - if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; - Documentation.focusSearchBar(); - event.preventDefault(); - } - }); - }, -}; - -// quick alias for translations -const _ = Documentation.gettext; - -_ready(Documentation.init); diff --git a/doc/_build/html/_static/documentation_options.js b/doc/_build/html/_static/documentation_options.js deleted file mode 100644 index 458dc5f..0000000 --- a/doc/_build/html/_static/documentation_options.js +++ /dev/null @@ -1,14 +0,0 @@ -var DOCUMENTATION_OPTIONS = { - URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '0.8.0', - LANGUAGE: 'en', - COLLAPSE_INDEX: false, - BUILDER: 'html', - FILE_SUFFIX: '.html', - LINK_SUFFIX: '.html', - HAS_SOURCE: true, - SOURCELINK_SUFFIX: '.txt', - NAVIGATION_WITH_KEYS: false, - SHOW_SEARCH_SUMMARY: true, - ENABLE_SEARCH_SHORTCUTS: true, -}; \ No newline at end of file diff --git a/doc/_build/html/_static/file.png b/doc/_build/html/_static/file.png deleted file mode 100644 index a858a410e4faa62ce324d814e4b816fff83a6fb3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 286 zcmV+(0pb3MP)s`hMrGg#P~ix$^RISR_I47Y|r1 z_CyJOe}D1){SET-^Amu_i71Lt6eYfZjRyw@I6OQAIXXHDfiX^GbOlHe=Ae4>0m)d(f|Me07*qoM6N<$f}vM^LjV8( diff --git a/doc/_build/html/_static/jquery-3.6.0.js b/doc/_build/html/_static/jquery-3.6.0.js deleted file mode 100644 index fc6c299..0000000 --- a/doc/_build/html/_static/jquery-3.6.0.js +++ /dev/null @@ -1,10881 +0,0 @@ -/*! - * jQuery JavaScript Library v3.6.0 - * https://jquery.com/ - * - * Includes Sizzle.js - * https://sizzlejs.com/ - * - * Copyright OpenJS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2021-03-02T17:08Z - */ -( function( global, factory ) { - - "use strict"; - - if ( typeof module === "object" && typeof module.exports === "object" ) { - - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? - factory( global, true ) : - function( w ) { - if ( !w.document ) { - throw new Error( "jQuery requires a window with a document" ); - } - return factory( w ); - }; - } else { - factory( global ); - } - -// Pass this if window is not defined yet -} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { - -// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 -// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode -// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common -// enough that all such attempts are guarded in a try block. -"use strict"; - -var arr = []; - -var getProto = Object.getPrototypeOf; - -var slice = arr.slice; - -var flat = arr.flat ? function( array ) { - return arr.flat.call( array ); -} : function( array ) { - return arr.concat.apply( [], array ); -}; - - -var push = arr.push; - -var indexOf = arr.indexOf; - -var class2type = {}; - -var toString = class2type.toString; - -var hasOwn = class2type.hasOwnProperty; - -var fnToString = hasOwn.toString; - -var ObjectFunctionString = fnToString.call( Object ); - -var support = {}; - -var isFunction = function isFunction( obj ) { - - // Support: Chrome <=57, Firefox <=52 - // In some browsers, typeof returns "function" for HTML elements - // (i.e., `typeof document.createElement( "object" ) === "function"`). - // We don't want to classify *any* DOM node as a function. - // Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5 - // Plus for old WebKit, typeof returns "function" for HTML collections - // (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756) - return typeof obj === "function" && typeof obj.nodeType !== "number" && - typeof obj.item !== "function"; - }; - - -var isWindow = function isWindow( obj ) { - return obj != null && obj === obj.window; - }; - - -var document = window.document; - - - - var preservedScriptAttributes = { - type: true, - src: true, - nonce: true, - noModule: true - }; - - function DOMEval( code, node, doc ) { - doc = doc || document; - - var i, val, - script = doc.createElement( "script" ); - - script.text = code; - if ( node ) { - for ( i in preservedScriptAttributes ) { - - // Support: Firefox 64+, Edge 18+ - // Some browsers don't support the "nonce" property on scripts. - // On the other hand, just using `getAttribute` is not enough as - // the `nonce` attribute is reset to an empty string whenever it - // becomes browsing-context connected. - // See https://github.com/whatwg/html/issues/2369 - // See https://html.spec.whatwg.org/#nonce-attributes - // The `node.getAttribute` check was added for the sake of - // `jQuery.globalEval` so that it can fake a nonce-containing node - // via an object. - val = node[ i ] || node.getAttribute && node.getAttribute( i ); - if ( val ) { - script.setAttribute( i, val ); - } - } - } - doc.head.appendChild( script ).parentNode.removeChild( script ); - } - - -function toType( obj ) { - if ( obj == null ) { - return obj + ""; - } - - // Support: Android <=2.3 only (functionish RegExp) - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call( obj ) ] || "object" : - typeof obj; -} -/* global Symbol */ -// Defining this global in .eslintrc.json would create a danger of using the global -// unguarded in another place, it seems safer to define global only for this module - - - -var - version = "3.6.0", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }; - -jQuery.fn = jQuery.prototype = { - - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - - // Return all the elements in a clean array - if ( num == null ) { - return slice.call( this ); - } - - // Return just the one element from the set - return num < 0 ? this[ num + this.length ] : this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - each: function( callback ) { - return jQuery.each( this, callback ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map( this, function( elem, i ) { - return callback.call( elem, i, elem ); - } ) ); - }, - - slice: function() { - return this.pushStack( slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - even: function() { - return this.pushStack( jQuery.grep( this, function( _elem, i ) { - return ( i + 1 ) % 2; - } ) ); - }, - - odd: function() { - return this.pushStack( jQuery.grep( this, function( _elem, i ) { - return i % 2; - } ) ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: arr.sort, - splice: arr.splice -}; - -jQuery.extend = jQuery.fn.extend = function() { - var options, name, src, copy, copyIsArray, clone, - target = arguments[ 0 ] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // Skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !isFunction( target ) ) { - target = {}; - } - - // Extend jQuery itself if only one argument is passed - if ( i === length ) { - target = this; - i--; - } - - for ( ; i < length; i++ ) { - - // Only deal with non-null/undefined values - if ( ( options = arguments[ i ] ) != null ) { - - // Extend the base object - for ( name in options ) { - copy = options[ name ]; - - // Prevent Object.prototype pollution - // Prevent never-ending loop - if ( name === "__proto__" || target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject( copy ) || - ( copyIsArray = Array.isArray( copy ) ) ) ) { - src = target[ name ]; - - // Ensure proper type for the source value - if ( copyIsArray && !Array.isArray( src ) ) { - clone = []; - } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { - clone = {}; - } else { - clone = src; - } - copyIsArray = false; - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend( { - - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - isPlainObject: function( obj ) { - var proto, Ctor; - - // Detect obvious negatives - // Use toString instead of jQuery.type to catch host objects - if ( !obj || toString.call( obj ) !== "[object Object]" ) { - return false; - } - - proto = getProto( obj ); - - // Objects with no prototype (e.g., `Object.create( null )`) are plain - if ( !proto ) { - return true; - } - - // Objects with prototype are plain iff they were constructed by a global Object function - Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; - return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; - }, - - isEmptyObject: function( obj ) { - var name; - - for ( name in obj ) { - return false; - } - return true; - }, - - // Evaluates a script in a provided context; falls back to the global one - // if not specified. - globalEval: function( code, options, doc ) { - DOMEval( code, { nonce: options && options.nonce }, doc ); - }, - - each: function( obj, callback ) { - var length, i = 0; - - if ( isArrayLike( obj ) ) { - length = obj.length; - for ( ; i < length; i++ ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } else { - for ( i in obj ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } - - return obj; - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArrayLike( Object( arr ) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - return arr == null ? -1 : indexOf.call( arr, elem, i ); - }, - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - for ( ; j < len; j++ ) { - first[ i++ ] = second[ j ]; - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var length, value, - i = 0, - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArrayLike( elems ) ) { - length = elems.length; - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return flat( ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support -} ); - -if ( typeof Symbol === "function" ) { - jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; -} - -// Populate the class2type map -jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), - function( _i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); - } ); - -function isArrayLike( obj ) { - - // Support: real iOS 8.2 only (not reproducible in simulator) - // `in` check used to prevent JIT error (gh-2145) - // hasOwn isn't used here due to false negatives - // regarding Nodelist length in IE - var length = !!obj && "length" in obj && obj.length, - type = toType( obj ); - - if ( isFunction( obj ) || isWindow( obj ) ) { - return false; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.3.6 - * https://sizzlejs.com/ - * - * Copyright JS Foundation and other contributors - * Released under the MIT license - * https://js.foundation/ - * - * Date: 2021-02-16 - */ -( function( window ) { -var i, - support, - Expr, - getText, - isXML, - tokenize, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - nonnativeSelectorCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - // Instance methods - hasOwn = ( {} ).hasOwnProperty, - arr = [], - pop = arr.pop, - pushNative = arr.push, - push = arr.push, - slice = arr.slice, - - // Use a stripped-down indexOf as it's faster than native - // https://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[ i ] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" + - "ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - - // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram - identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + - "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", - - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + - - // Operator (capture 2) - "*([*^$|!~]?=)" + whitespace + - - // "Attribute values must be CSS identifiers [capture 5] - // or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + - whitespace + "*\\]", - - pseudos = ":(" + identifier + ")(?:\\((" + - - // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: - // 1. quoted (capture 3; capture 4 or capture 5) - "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + - - // 2. simple (capture 6) - "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + - - // 3. anything else (capture 2) - ".*" + - ")\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + - whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + - "*" ), - rdescend = new RegExp( whitespace + "|>" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + identifier + ")" ), - "CLASS": new RegExp( "^\\.(" + identifier + ")" ), - "TAG": new RegExp( "^(" + identifier + "|[*])" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + - whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + - whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + - "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + - "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rhtml = /HTML$/i, - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - - // CSS escapes - // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ), - funescape = function( escape, nonHex ) { - var high = "0x" + escape.slice( 1 ) - 0x10000; - - return nonHex ? - - // Strip the backslash prefix from a non-hex escape sequence - nonHex : - - // Replace a hexadecimal escape sequence with the encoded Unicode code point - // Support: IE <=11+ - // For values outside the Basic Multilingual Plane (BMP), manually construct a - // surrogate pair - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // CSS string/identifier serialization - // https://drafts.csswg.org/cssom/#common-serializing-idioms - rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, - fcssescape = function( ch, asCodePoint ) { - if ( asCodePoint ) { - - // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - if ( ch === "\0" ) { - return "\uFFFD"; - } - - // Control characters and (dependent upon position) numbers get escaped as code points - return ch.slice( 0, -1 ) + "\\" + - ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; - } - - // Other potentially-special ASCII characters get backslash-escaped - return "\\" + ch; - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }, - - inDisabledFieldset = addCombinator( - function( elem ) { - return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset"; - }, - { dir: "parentNode", next: "legend" } - ); - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - ( arr = slice.call( preferredDoc.childNodes ) ), - preferredDoc.childNodes - ); - - // Support: Android<4.0 - // Detect silently failing push.apply - // eslint-disable-next-line no-unused-expressions - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - pushNative.apply( target, slice.call( els ) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - - // Can't trust NodeList.length - while ( ( target[ j++ ] = els[ i++ ] ) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var m, i, elem, nid, match, groups, newSelector, - newContext = context && context.ownerDocument, - - // nodeType defaults to 9, since context defaults to document - nodeType = context ? context.nodeType : 9; - - results = results || []; - - // Return early from calls with invalid selector or context - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - // Try to shortcut find operations (as opposed to filters) in HTML documents - if ( !seed ) { - setDocument( context ); - context = context || document; - - if ( documentIsHTML ) { - - // If the selector is sufficiently simple, try using a "get*By*" DOM method - // (excepting DocumentFragment context, where the methods don't exist) - if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) { - - // ID selector - if ( ( m = match[ 1 ] ) ) { - - // Document context - if ( nodeType === 9 ) { - if ( ( elem = context.getElementById( m ) ) ) { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - - // Element context - } else { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( newContext && ( elem = newContext.getElementById( m ) ) && - contains( context, elem ) && - elem.id === m ) { - - results.push( elem ); - return results; - } - } - - // Type selector - } else if ( match[ 2 ] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Class selector - } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName && - context.getElementsByClassName ) { - - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // Take advantage of querySelectorAll - if ( support.qsa && - !nonnativeSelectorCache[ selector + " " ] && - ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) && - - // Support: IE 8 only - // Exclude object elements - ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) { - - newSelector = selector; - newContext = context; - - // qSA considers elements outside a scoping root when evaluating child or - // descendant combinators, which is not what we want. - // In such cases, we work around the behavior by prefixing every selector in the - // list with an ID selector referencing the scope context. - // The technique has to be used as well when a leading combinator is used - // as such selectors are not recognized by querySelectorAll. - // Thanks to Andrew Dupont for this technique. - if ( nodeType === 1 && - ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) { - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; - - // We can use :scope instead of the ID hack if the browser - // supports it & if we're not changing the context. - if ( newContext !== context || !support.scope ) { - - // Capture the context ID, setting it first if necessary - if ( ( nid = context.getAttribute( "id" ) ) ) { - nid = nid.replace( rcssescape, fcssescape ); - } else { - context.setAttribute( "id", ( nid = expando ) ); - } - } - - // Prefix every selector in the list - groups = tokenize( selector ); - i = groups.length; - while ( i-- ) { - groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " + - toSelector( groups[ i ] ); - } - newSelector = groups.join( "," ); - } - - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch ( qsaError ) { - nonnativeSelectorCache( selector, true ); - } finally { - if ( nid === expando ) { - context.removeAttribute( "id" ); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {function(string, object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return ( cache[ key + " " ] = value ); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created element and returns a boolean result - */ -function assert( fn ) { - var el = document.createElement( "fieldset" ); - - try { - return !!fn( el ); - } catch ( e ) { - return false; - } finally { - - // Remove from its parent by default - if ( el.parentNode ) { - el.parentNode.removeChild( el ); - } - - // release memory in IE - el = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split( "|" ), - i = arr.length; - - while ( i-- ) { - Expr.attrHandle[ arr[ i ] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - a.sourceIndex - b.sourceIndex; - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( ( cur = cur.nextSibling ) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return ( name === "input" || name === "button" ) && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for :enabled/:disabled - * @param {Boolean} disabled true for :disabled; false for :enabled - */ -function createDisabledPseudo( disabled ) { - - // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable - return function( elem ) { - - // Only certain elements can match :enabled or :disabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled - if ( "form" in elem ) { - - // Check for inherited disabledness on relevant non-disabled elements: - // * listed form-associated elements in a disabled fieldset - // https://html.spec.whatwg.org/multipage/forms.html#category-listed - // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled - // * option elements in a disabled optgroup - // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled - // All such elements have a "form" property. - if ( elem.parentNode && elem.disabled === false ) { - - // Option elements defer to a parent optgroup if present - if ( "label" in elem ) { - if ( "label" in elem.parentNode ) { - return elem.parentNode.disabled === disabled; - } else { - return elem.disabled === disabled; - } - } - - // Support: IE 6 - 11 - // Use the isDisabled shortcut property to check for disabled fieldset ancestors - return elem.isDisabled === disabled || - - // Where there is no isDisabled, check manually - /* jshint -W018 */ - elem.isDisabled !== !disabled && - inDisabledFieldset( elem ) === disabled; - } - - return elem.disabled === disabled; - - // Try to winnow out elements that can't be disabled before trusting the disabled property. - // Some victims get caught in our net (label, legend, menu, track), but it shouldn't - // even exist on them, let alone have a boolean value. - } else if ( "label" in elem ) { - return elem.disabled === disabled; - } - - // Remaining elements are neither :enabled nor :disabled - return false; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction( function( argument ) { - argument = +argument; - return markFunction( function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ ( j = matchIndexes[ i ] ) ] ) { - seed[ j ] = !( matches[ j ] = seed[ j ] ); - } - } - } ); - } ); -} - -/** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ -function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; -} - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - var namespace = elem && elem.namespaceURI, - docElem = elem && ( elem.ownerDocument || elem ).documentElement; - - // Support: IE <=8 - // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes - // https://bugs.jquery.com/ticket/4833 - return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" ); -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, subWindow, - doc = node ? node.ownerDocument || node : preferredDoc; - - // Return early if doc is invalid or already selected - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Update global variables - document = doc; - docElem = document.documentElement; - documentIsHTML = !isXML( document ); - - // Support: IE 9 - 11+, Edge 12 - 18+ - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( preferredDoc != document && - ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) { - - // Support: IE 11, Edge - if ( subWindow.addEventListener ) { - subWindow.addEventListener( "unload", unloadHandler, false ); - - // Support: IE 9 - 10 only - } else if ( subWindow.attachEvent ) { - subWindow.attachEvent( "onunload", unloadHandler ); - } - } - - // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only, - // Safari 4 - 5 only, Opera <=11.6 - 12.x only - // IE/Edge & older browsers don't support the :scope pseudo-class. - // Support: Safari 6.0 only - // Safari 6.0 supports :scope but it's an alias of :root there. - support.scope = assert( function( el ) { - docElem.appendChild( el ).appendChild( document.createElement( "div" ) ); - return typeof el.querySelectorAll !== "undefined" && - !el.querySelectorAll( ":scope fieldset div" ).length; - } ); - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert( function( el ) { - el.className = "i"; - return !el.getAttribute( "className" ); - } ); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert( function( el ) { - el.appendChild( document.createComment( "" ) ); - return !el.getElementsByTagName( "*" ).length; - } ); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( document.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programmatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert( function( el ) { - docElem.appendChild( el ).id = expando; - return !document.getElementsByName || !document.getElementsByName( expando ).length; - } ); - - // ID filter and find - if ( support.getById ) { - Expr.filter[ "ID" ] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute( "id" ) === attrId; - }; - }; - Expr.find[ "ID" ] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var elem = context.getElementById( id ); - return elem ? [ elem ] : []; - } - }; - } else { - Expr.filter[ "ID" ] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && - elem.getAttributeNode( "id" ); - return node && node.value === attrId; - }; - }; - - // Support: IE 6 - 7 only - // getElementById is not reliable as a find shortcut - Expr.find[ "ID" ] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var node, i, elems, - elem = context.getElementById( id ); - - if ( elem ) { - - // Verify the id attribute - node = elem.getAttributeNode( "id" ); - if ( node && node.value === id ) { - return [ elem ]; - } - - // Fall back on getElementsByName - elems = context.getElementsByName( id ); - i = 0; - while ( ( elem = elems[ i++ ] ) ) { - node = elem.getAttributeNode( "id" ); - if ( node && node.value === id ) { - return [ elem ]; - } - } - } - - return []; - } - }; - } - - // Tag - Expr.find[ "TAG" ] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( ( elem = results[ i++ ] ) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See https://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) { - - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert( function( el ) { - - var input; - - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // https://bugs.jquery.com/ticket/12359 - docElem.appendChild( el ).innerHTML = "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !el.querySelectorAll( "[selected]" ).length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ - if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push( "~=" ); - } - - // Support: IE 11+, Edge 15 - 18+ - // IE 11/Edge don't find elements on a `[name='']` query in some cases. - // Adding a temporary attribute to the document before the selection works - // around the issue. - // Interestingly, IE 10 & older don't seem to have the issue. - input = document.createElement( "input" ); - input.setAttribute( "name", "" ); - el.appendChild( input ); - if ( !el.querySelectorAll( "[name='']" ).length ) { - rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" + - whitespace + "*(?:''|\"\")" ); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !el.querySelectorAll( ":checked" ).length ) { - rbuggyQSA.push( ":checked" ); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibling-combinator selector` fails - if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push( ".#.+[+~]" ); - } - - // Support: Firefox <=3.6 - 5 only - // Old Firefox doesn't throw on a badly-escaped identifier. - el.querySelectorAll( "\\\f" ); - rbuggyQSA.push( "[\\r\\n\\f]" ); - } ); - - assert( function( el ) { - el.innerHTML = "" + - ""; - - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = document.createElement( "input" ); - input.setAttribute( "type", "hidden" ); - el.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( el.querySelectorAll( "[name=d]" ).length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( el.querySelectorAll( ":enabled" ).length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: IE9-11+ - // IE's :disabled selector does not pick up the children of disabled fieldsets - docElem.appendChild( el ).disabled = true; - if ( el.querySelectorAll( ":disabled" ).length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: Opera 10 - 11 only - // Opera 10-11 does not throw on post-comma invalid pseudos - el.querySelectorAll( "*,:x" ); - rbuggyQSA.push( ",.*:" ); - } ); - } - - if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector ) ) ) ) { - - assert( function( el ) { - - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( el, "*" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( el, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - } ); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully self-exclusive - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - ) ); - } : - function( a, b ) { - if ( b ) { - while ( ( b = b.parentNode ) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) { - - // Choose the first element that is related to our preferred document - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( a == document || a.ownerDocument == preferredDoc && - contains( preferredDoc, a ) ) { - return -1; - } - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( b == document || b.ownerDocument == preferredDoc && - contains( preferredDoc, b ) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - /* eslint-disable eqeqeq */ - return a == document ? -1 : - b == document ? 1 : - /* eslint-enable eqeqeq */ - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( ( cur = cur.parentNode ) ) { - ap.unshift( cur ); - } - cur = b; - while ( ( cur = cur.parentNode ) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[ i ] === bp[ i ] ) { - i++; - } - - return i ? - - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[ i ], bp[ i ] ) : - - // Otherwise nodes in our document sort first - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - /* eslint-disable eqeqeq */ - ap[ i ] == preferredDoc ? -1 : - bp[ i ] == preferredDoc ? 1 : - /* eslint-enable eqeqeq */ - 0; - }; - - return document; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - setDocument( elem ); - - if ( support.matchesSelector && documentIsHTML && - !nonnativeSelectorCache[ expr + " " ] && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch ( e ) { - nonnativeSelectorCache( expr, true ); - } - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - - // Set document vars if needed - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( ( context.ownerDocument || context ) != document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - - // Set document vars if needed - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( ( elem.ownerDocument || elem ) != document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - ( val = elem.getAttributeNode( name ) ) && val.specified ? - val.value : - null; -}; - -Sizzle.escape = function( sel ) { - return ( sel + "" ).replace( rcssescape, fcssescape ); -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( ( elem = results[ i++ ] ) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - - // If no nodeType, this is expected to be an array - while ( ( node = elem[ i++ ] ) ) { - - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[ 1 ] = match[ 1 ].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[ 3 ] = ( match[ 3 ] || match[ 4 ] || - match[ 5 ] || "" ).replace( runescape, funescape ); - - if ( match[ 2 ] === "~=" ) { - match[ 3 ] = " " + match[ 3 ] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[ 1 ] = match[ 1 ].toLowerCase(); - - if ( match[ 1 ].slice( 0, 3 ) === "nth" ) { - - // nth-* requires argument - if ( !match[ 3 ] ) { - Sizzle.error( match[ 0 ] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[ 4 ] = +( match[ 4 ] ? - match[ 5 ] + ( match[ 6 ] || 1 ) : - 2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) ); - match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" ); - - // other types prohibit arguments - } else if ( match[ 3 ] ) { - Sizzle.error( match[ 0 ] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[ 6 ] && match[ 2 ]; - - if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[ 3 ] ) { - match[ 2 ] = match[ 4 ] || match[ 5 ] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - - // Get excess from tokenize (recursively) - ( excess = tokenize( unquoted, true ) ) && - - // advance to the next closing parenthesis - ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) { - - // excess is a negative index - match[ 0 ] = match[ 0 ].slice( 0, excess ); - match[ 2 ] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { - return true; - } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - ( pattern = new RegExp( "(^|" + whitespace + - ")" + className + "(" + whitespace + "|$)" ) ) && classCache( - className, function( elem ) { - return pattern.test( - typeof elem.className === "string" && elem.className || - typeof elem.getAttribute !== "undefined" && - elem.getAttribute( "class" ) || - "" - ); - } ); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - /* eslint-disable max-len */ - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - /* eslint-enable max-len */ - - }; - }, - - "CHILD": function( type, what, _argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, _context, xml ) { - var cache, uniqueCache, outerCache, node, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType, - diff = false; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( ( node = node[ dir ] ) ) { - if ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) { - - return false; - } - } - - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - - // Seek `elem` from a previously-cached index - - // ...in a gzip-friendly way - node = parent; - outerCache = node[ expando ] || ( node[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - ( outerCache[ node.uniqueID ] = {} ); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex && cache[ 2 ]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( ( node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - ( diff = nodeIndex = 0 ) || start.pop() ) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - } else { - - // Use previously-cached element index if available - if ( useCache ) { - - // ...in a gzip-friendly way - node = elem; - outerCache = node[ expando ] || ( node[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - ( outerCache[ node.uniqueID ] = {} ); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex; - } - - // xml :nth-child(...) - // or :nth-last-child(...) or :nth(-last)?-of-type(...) - if ( diff === false ) { - - // Use the same loop as above to seek `elem` from the start - while ( ( node = ++nodeIndex && node && node[ dir ] || - ( diff = nodeIndex = 0 ) || start.pop() ) ) { - - if ( ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) && - ++diff ) { - - // Cache the index of each encountered element - if ( useCache ) { - outerCache = node[ expando ] || - ( node[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - ( outerCache[ node.uniqueID ] = {} ); - - uniqueCache[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction( function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[ i ] ); - seed[ idx ] = !( matches[ idx ] = matched[ i ] ); - } - } ) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - - // Potentially complex pseudos - "not": markFunction( function( selector ) { - - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction( function( seed, matches, _context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( ( elem = unmatched[ i ] ) ) { - seed[ i ] = !( matches[ i ] = elem ); - } - } - } ) : - function( elem, _context, xml ) { - input[ 0 ] = elem; - matcher( input, null, xml, results ); - - // Don't keep the element (issue #299) - input[ 0 ] = null; - return !results.pop(); - }; - } ), - - "has": markFunction( function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - } ), - - "contains": markFunction( function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1; - }; - } ), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - - // lang value must be a valid identifier - if ( !ridentifier.test( lang || "" ) ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( ( elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 ); - return false; - }; - } ), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && - ( !document.hasFocus || document.hasFocus() ) && - !!( elem.type || elem.href || ~elem.tabIndex ); - }, - - // Boolean properties - "enabled": createDisabledPseudo( false ), - "disabled": createDisabledPseudo( true ), - - "checked": function( elem ) { - - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return ( nodeName === "input" && !!elem.checked ) || - ( nodeName === "option" && !!elem.selected ); - }, - - "selected": function( elem ) { - - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - // eslint-disable-next-line no-unused-expressions - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos[ "empty" ]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( ( attr = elem.getAttribute( "type" ) ) == null || - attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo( function() { - return [ 0 ]; - } ), - - "last": createPositionalPseudo( function( _matchIndexes, length ) { - return [ length - 1 ]; - } ), - - "eq": createPositionalPseudo( function( _matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - } ), - - "even": createPositionalPseudo( function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ), - - "odd": createPositionalPseudo( function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ), - - "lt": createPositionalPseudo( function( matchIndexes, length, argument ) { - var i = argument < 0 ? - argument + length : - argument > length ? - length : - argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ), - - "gt": createPositionalPseudo( function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - } ) - } -}; - -Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || ( match = rcomma.exec( soFar ) ) ) { - if ( match ) { - - // Don't consume trailing commas as valid - soFar = soFar.slice( match[ 0 ].length ) || soFar; - } - groups.push( ( tokens = [] ) ); - } - - matched = false; - - // Combinators - if ( ( match = rcombinators.exec( soFar ) ) ) { - matched = match.shift(); - tokens.push( { - value: matched, - - // Cast descendant combinators to space - type: match[ 0 ].replace( rtrim, " " ) - } ); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] || - ( match = preFilters[ type ]( match ) ) ) ) { - matched = match.shift(); - tokens.push( { - value: matched, - type: type, - matches: match - } ); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[ i ].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - skip = combinator.next, - key = skip || dir, - checkNonElements = base && key === "parentNode", - doneName = done++; - - return combinator.first ? - - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( ( elem = elem[ dir ] ) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - return false; - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, uniqueCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching - if ( xml ) { - while ( ( elem = elem[ dir ] ) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( ( elem = elem[ dir ] ) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || ( elem[ expando ] = {} ); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ elem.uniqueID ] || - ( outerCache[ elem.uniqueID ] = {} ); - - if ( skip && skip === elem.nodeName.toLowerCase() ) { - elem = elem[ dir ] || elem; - } else if ( ( oldCache = uniqueCache[ key ] ) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return ( newCache[ 2 ] = oldCache[ 2 ] ); - } else { - - // Reuse newcache so results back-propagate to previous elements - uniqueCache[ key ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) { - return true; - } - } - } - } - } - return false; - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[ i ]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[ 0 ]; -} - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[ i ], results ); - } - return results; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( ( elem = unmatched[ i ] ) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction( function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( - selector || "*", - context.nodeType ? [ context ] : context, - [] - ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( ( elem = temp[ i ] ) ) { - matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem ); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( ( elem = matcherOut[ i ] ) ) { - - // Restore matcherIn since elem is not yet a final match - temp.push( ( matcherIn[ i ] = elem ) ); - } - } - postFinder( null, ( matcherOut = [] ), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( ( elem = matcherOut[ i ] ) && - ( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) { - - seed[ temp ] = !( results[ temp ] = elem ); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - } ); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[ 0 ].type ], - implicitRelative = leadingRelative || Expr.relative[ " " ], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - ( checkContext = context ).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) { - matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ]; - } else { - matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[ j ].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens - .slice( 0, i - 1 ) - .concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } ) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ), - - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ), - len = elems.length; - - if ( outermost ) { - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - outermostContext = context == document || context || outermost; - } - - // Add elements passing elementMatchers directly to results - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( !context && elem.ownerDocument != document ) { - setDocument( elem ); - xml = !documentIsHTML; - } - while ( ( matcher = elementMatchers[ j++ ] ) ) { - if ( matcher( elem, context || document, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - - // They will have gone through all possible matchers - if ( ( elem = !matcher && elem ) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // `i` is now the count of elements visited above, and adding it to `matchedCount` - // makes the latter nonnegative. - matchedCount += i; - - // Apply set filters to unmatched elements - // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` - // equals `i`), unless we didn't visit _any_ elements in the above loop because we have - // no element matchers and no seed. - // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that - // case, which will result in a "00" `matchedCount` that differs from `i` but is also - // numerically zero. - if ( bySet && i !== matchedCount ) { - j = 0; - while ( ( matcher = setMatchers[ j++ ] ) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !( unmatched[ i ] || setMatched[ i ] ) ) { - setMatched[ i ] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[ i ] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( - selector, - matcherFromGroupMatchers( elementMatchers, setMatchers ) - ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; -}; - -/** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against - */ -select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( ( selector = compiled.selector || selector ) ); - - results = results || []; - - // Try to minimize operations if there is only one selector in the list and no seed - // (the latter of which guarantees us context) - if ( match.length === 1 ) { - - // Reduce context if the leading compound selector is an ID - tokens = match[ 0 ] = match[ 0 ].slice( 0 ); - if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" && - context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) { - - context = ( Expr.find[ "ID" ]( token.matches[ 0 ] - .replace( runescape, funescape ), context ) || [] )[ 0 ]; - if ( !context ) { - return results; - - // Precompiled matchers will still verify ancestry, so step up a level - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[ i ]; - - // Abort if we hit a combinator - if ( Expr.relative[ ( type = token.type ) ] ) { - break; - } - if ( ( find = Expr.find[ type ] ) ) { - - // Search, expanding context for leading sibling combinators - if ( ( seed = find( - token.matches[ 0 ].replace( runescape, funescape ), - rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) || - context - ) ) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - // Compile and execute a filtering function if one is not provided - // Provide `match` to avoid retokenization if we modified the selector above - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - !context || rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; -}; - -// One-time assignments - -// Sort stability -support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert( function( el ) { - - // Should return 1, but returns 4 (following) - return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1; -} ); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert( function( el ) { - el.innerHTML = ""; - return el.firstChild.getAttribute( "href" ) === "#"; -} ) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - } ); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert( function( el ) { - el.innerHTML = ""; - el.firstChild.setAttribute( "value", "" ); - return el.firstChild.getAttribute( "value" ) === ""; -} ) ) { - addHandle( "value", function( elem, _name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - } ); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert( function( el ) { - return el.getAttribute( "disabled" ) == null; -} ) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - ( val = elem.getAttributeNode( name ) ) && val.specified ? - val.value : - null; - } - } ); -} - -return Sizzle; - -} )( window ); - - - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; - -// Deprecated -jQuery.expr[ ":" ] = jQuery.expr.pseudos; -jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; -jQuery.escapeSelector = Sizzle.escape; - - - - -var dir = function( elem, dir, until ) { - var matched = [], - truncate = until !== undefined; - - while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { - if ( elem.nodeType === 1 ) { - if ( truncate && jQuery( elem ).is( until ) ) { - break; - } - matched.push( elem ); - } - } - return matched; -}; - - -var siblings = function( n, elem ) { - var matched = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - matched.push( n ); - } - } - - return matched; -}; - - -var rneedsContext = jQuery.expr.match.needsContext; - - - -function nodeName( elem, name ) { - - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - -} -var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); - - - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - return !!qualifier.call( elem, i, elem ) !== not; - } ); - } - - // Single element - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - } ); - } - - // Arraylike of elements (jQuery, arguments, Array) - if ( typeof qualifier !== "string" ) { - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) > -1 ) !== not; - } ); - } - - // Filtered directly for both simple and complex selectors - return jQuery.filter( qualifier, elements, not ); -} - -jQuery.filter = function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - if ( elems.length === 1 && elem.nodeType === 1 ) { - return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; - } - - return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - } ) ); -}; - -jQuery.fn.extend( { - find: function( selector ) { - var i, ret, - len = this.length, - self = this; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter( function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - } ) ); - } - - ret = this.pushStack( [] ); - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - return len > 1 ? jQuery.uniqueSort( ret ) : ret; - }, - filter: function( selector ) { - return this.pushStack( winnow( this, selector || [], false ) ); - }, - not: function( selector ) { - return this.pushStack( winnow( this, selector || [], true ) ); - }, - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - } -} ); - - -// Initialize a jQuery object - - -// A central reference to the root jQuery(document) -var rootjQuery, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - // Shortcut simple #id case for speed - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, - - init = jQuery.fn.init = function( selector, context, root ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Method init() accepts an alternate rootjQuery - // so migrate can support jQuery.sub (gh-2101) - root = root || rootjQuery; - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector[ 0 ] === "<" && - selector[ selector.length - 1 ] === ">" && - selector.length >= 3 ) { - - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && ( match[ 1 ] || !context ) ) { - - // HANDLE: $(html) -> $(array) - if ( match[ 1 ] ) { - context = context instanceof jQuery ? context[ 0 ] : context; - - // Option to run scripts is true for back-compat - // Intentionally let the error be thrown if parseHTML is not present - jQuery.merge( this, jQuery.parseHTML( - match[ 1 ], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - - // Properties of context are called as methods if possible - if ( isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[ 2 ] ); - - if ( elem ) { - - // Inject the element directly into the jQuery object - this[ 0 ] = elem; - this.length = 1; - } - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || root ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this[ 0 ] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( isFunction( selector ) ) { - return root.ready !== undefined ? - root.ready( selector ) : - - // Execute immediately if ready is not present - selector( jQuery ); - } - - return jQuery.makeArray( selector, this ); - }; - -// Give the init function the jQuery prototype for later instantiation -init.prototype = jQuery.fn; - -// Initialize central reference -rootjQuery = jQuery( document ); - - -var rparentsprev = /^(?:parents|prev(?:Until|All))/, - - // Methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend( { - has: function( target ) { - var targets = jQuery( target, this ), - l = targets.length; - - return this.filter( function() { - var i = 0; - for ( ; i < l; i++ ) { - if ( jQuery.contains( this, targets[ i ] ) ) { - return true; - } - } - } ); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - matched = [], - targets = typeof selectors !== "string" && jQuery( selectors ); - - // Positional selectors never match, since there's no _selection_ context - if ( !rneedsContext.test( selectors ) ) { - for ( ; i < l; i++ ) { - for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { - - // Always skip document fragments - if ( cur.nodeType < 11 && ( targets ? - targets.index( cur ) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector( cur, selectors ) ) ) { - - matched.push( cur ); - break; - } - } - } - } - - return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); - }, - - // Determine the position of an element within the set - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; - } - - // Index in selector - if ( typeof elem === "string" ) { - return indexOf.call( jQuery( elem ), this[ 0 ] ); - } - - // Locate the position of the desired element - return indexOf.call( this, - - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[ 0 ] : elem - ); - }, - - add: function( selector, context ) { - return this.pushStack( - jQuery.uniqueSort( - jQuery.merge( this.get(), jQuery( selector, context ) ) - ) - ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter( selector ) - ); - } -} ); - -function sibling( cur, dir ) { - while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} - return cur; -} - -jQuery.each( { - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, _i, until ) { - return dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, _i, until ) { - return dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, _i, until ) { - return dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return siblings( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return siblings( elem.firstChild ); - }, - contents: function( elem ) { - if ( elem.contentDocument != null && - - // Support: IE 11+ - // elements with no `data` attribute has an object - // `contentDocument` with a `null` prototype. - getProto( elem.contentDocument ) ) { - - return elem.contentDocument; - } - - // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only - // Treat the template element as a regular one in browsers that - // don't support it. - if ( nodeName( elem, "template" ) ) { - elem = elem.content || elem; - } - - return jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var matched = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - matched = jQuery.filter( selector, matched ); - } - - if ( this.length > 1 ) { - - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - jQuery.uniqueSort( matched ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - matched.reverse(); - } - } - - return this.pushStack( matched ); - }; -} ); -var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); - - - -// Convert String-formatted options into Object-formatted ones -function createOptions( options ) { - var object = {}; - jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { - object[ flag ] = true; - } ); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - createOptions( options ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - - // Last fire value for non-forgettable lists - memory, - - // Flag to know if list was already fired - fired, - - // Flag to prevent firing - locked, - - // Actual callback list - list = [], - - // Queue of execution data for repeatable lists - queue = [], - - // Index of currently firing callback (modified by add/remove as needed) - firingIndex = -1, - - // Fire callbacks - fire = function() { - - // Enforce single-firing - locked = locked || options.once; - - // Execute callbacks for all pending executions, - // respecting firingIndex overrides and runtime changes - fired = firing = true; - for ( ; queue.length; firingIndex = -1 ) { - memory = queue.shift(); - while ( ++firingIndex < list.length ) { - - // Run callback and check for early termination - if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && - options.stopOnFalse ) { - - // Jump to end and forget the data so .add doesn't re-fire - firingIndex = list.length; - memory = false; - } - } - } - - // Forget the data if we're done with it - if ( !options.memory ) { - memory = false; - } - - firing = false; - - // Clean up if we're done firing for good - if ( locked ) { - - // Keep an empty list if we have data for future add calls - if ( memory ) { - list = []; - - // Otherwise, this object is spent - } else { - list = ""; - } - } - }, - - // Actual Callbacks object - self = { - - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - - // If we have memory from a past run, we should fire after adding - if ( memory && !firing ) { - firingIndex = list.length - 1; - queue.push( memory ); - } - - ( function add( args ) { - jQuery.each( args, function( _, arg ) { - if ( isFunction( arg ) ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && toType( arg ) !== "string" ) { - - // Inspect recursively - add( arg ); - } - } ); - } )( arguments ); - - if ( memory && !firing ) { - fire(); - } - } - return this; - }, - - // Remove a callback from the list - remove: function() { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - - // Handle firing indexes - if ( index <= firingIndex ) { - firingIndex--; - } - } - } ); - return this; - }, - - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? - jQuery.inArray( fn, list ) > -1 : - list.length > 0; - }, - - // Remove all callbacks from the list - empty: function() { - if ( list ) { - list = []; - } - return this; - }, - - // Disable .fire and .add - // Abort any current/pending executions - // Clear all callbacks and values - disable: function() { - locked = queue = []; - list = memory = ""; - return this; - }, - disabled: function() { - return !list; - }, - - // Disable .fire - // Also disable .add unless we have memory (since it would have no effect) - // Abort any pending executions - lock: function() { - locked = queue = []; - if ( !memory && !firing ) { - list = memory = ""; - } - return this; - }, - locked: function() { - return !!locked; - }, - - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( !locked ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - queue.push( args ); - if ( !firing ) { - fire(); - } - } - return this; - }, - - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; - - -function Identity( v ) { - return v; -} -function Thrower( ex ) { - throw ex; -} - -function adoptValue( value, resolve, reject, noValue ) { - var method; - - try { - - // Check for promise aspect first to privilege synchronous behavior - if ( value && isFunction( ( method = value.promise ) ) ) { - method.call( value ).done( resolve ).fail( reject ); - - // Other thenables - } else if ( value && isFunction( ( method = value.then ) ) ) { - method.call( value, resolve, reject ); - - // Other non-thenables - } else { - - // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: - // * false: [ value ].slice( 0 ) => resolve( value ) - // * true: [ value ].slice( 1 ) => resolve() - resolve.apply( undefined, [ value ].slice( noValue ) ); - } - - // For Promises/A+, convert exceptions into rejections - // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in - // Deferred#then to conditionally suppress rejection. - } catch ( value ) { - - // Support: Android 4.0 only - // Strict mode functions invoked without .call/.apply get global-object context - reject.apply( undefined, [ value ] ); - } -} - -jQuery.extend( { - - Deferred: function( func ) { - var tuples = [ - - // action, add listener, callbacks, - // ... .then handlers, argument index, [final state] - [ "notify", "progress", jQuery.Callbacks( "memory" ), - jQuery.Callbacks( "memory" ), 2 ], - [ "resolve", "done", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 0, "resolved" ], - [ "reject", "fail", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 1, "rejected" ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - "catch": function( fn ) { - return promise.then( null, fn ); - }, - - // Keep pipe for back-compat - pipe: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - - return jQuery.Deferred( function( newDefer ) { - jQuery.each( tuples, function( _i, tuple ) { - - // Map tuples (progress, done, fail) to arguments (done, fail, progress) - var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; - - // deferred.progress(function() { bind to newDefer or newDefer.notify }) - // deferred.done(function() { bind to newDefer or newDefer.resolve }) - // deferred.fail(function() { bind to newDefer or newDefer.reject }) - deferred[ tuple[ 1 ] ]( function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && isFunction( returned.promise ) ) { - returned.promise() - .progress( newDefer.notify ) - .done( newDefer.resolve ) - .fail( newDefer.reject ); - } else { - newDefer[ tuple[ 0 ] + "With" ]( - this, - fn ? [ returned ] : arguments - ); - } - } ); - } ); - fns = null; - } ).promise(); - }, - then: function( onFulfilled, onRejected, onProgress ) { - var maxDepth = 0; - function resolve( depth, deferred, handler, special ) { - return function() { - var that = this, - args = arguments, - mightThrow = function() { - var returned, then; - - // Support: Promises/A+ section 2.3.3.3.3 - // https://promisesaplus.com/#point-59 - // Ignore double-resolution attempts - if ( depth < maxDepth ) { - return; - } - - returned = handler.apply( that, args ); - - // Support: Promises/A+ section 2.3.1 - // https://promisesaplus.com/#point-48 - if ( returned === deferred.promise() ) { - throw new TypeError( "Thenable self-resolution" ); - } - - // Support: Promises/A+ sections 2.3.3.1, 3.5 - // https://promisesaplus.com/#point-54 - // https://promisesaplus.com/#point-75 - // Retrieve `then` only once - then = returned && - - // Support: Promises/A+ section 2.3.4 - // https://promisesaplus.com/#point-64 - // Only check objects and functions for thenability - ( typeof returned === "object" || - typeof returned === "function" ) && - returned.then; - - // Handle a returned thenable - if ( isFunction( then ) ) { - - // Special processors (notify) just wait for resolution - if ( special ) { - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ) - ); - - // Normal processors (resolve) also hook into progress - } else { - - // ...and disregard older resolution values - maxDepth++; - - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ), - resolve( maxDepth, deferred, Identity, - deferred.notifyWith ) - ); - } - - // Handle all other returned values - } else { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Identity ) { - that = undefined; - args = [ returned ]; - } - - // Process the value(s) - // Default process is resolve - ( special || deferred.resolveWith )( that, args ); - } - }, - - // Only normal processors (resolve) catch and reject exceptions - process = special ? - mightThrow : - function() { - try { - mightThrow(); - } catch ( e ) { - - if ( jQuery.Deferred.exceptionHook ) { - jQuery.Deferred.exceptionHook( e, - process.stackTrace ); - } - - // Support: Promises/A+ section 2.3.3.3.4.1 - // https://promisesaplus.com/#point-61 - // Ignore post-resolution exceptions - if ( depth + 1 >= maxDepth ) { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Thrower ) { - that = undefined; - args = [ e ]; - } - - deferred.rejectWith( that, args ); - } - } - }; - - // Support: Promises/A+ section 2.3.3.3.1 - // https://promisesaplus.com/#point-57 - // Re-resolve promises immediately to dodge false rejection from - // subsequent errors - if ( depth ) { - process(); - } else { - - // Call an optional hook to record the stack, in case of exception - // since it's otherwise lost when execution goes async - if ( jQuery.Deferred.getStackHook ) { - process.stackTrace = jQuery.Deferred.getStackHook(); - } - window.setTimeout( process ); - } - }; - } - - return jQuery.Deferred( function( newDefer ) { - - // progress_handlers.add( ... ) - tuples[ 0 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onProgress ) ? - onProgress : - Identity, - newDefer.notifyWith - ) - ); - - // fulfilled_handlers.add( ... ) - tuples[ 1 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onFulfilled ) ? - onFulfilled : - Identity - ) - ); - - // rejected_handlers.add( ... ) - tuples[ 2 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onRejected ) ? - onRejected : - Thrower - ) - ); - } ).promise(); - }, - - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 5 ]; - - // promise.progress = list.add - // promise.done = list.add - // promise.fail = list.add - promise[ tuple[ 1 ] ] = list.add; - - // Handle state - if ( stateString ) { - list.add( - function() { - - // state = "resolved" (i.e., fulfilled) - // state = "rejected" - state = stateString; - }, - - // rejected_callbacks.disable - // fulfilled_callbacks.disable - tuples[ 3 - i ][ 2 ].disable, - - // rejected_handlers.disable - // fulfilled_handlers.disable - tuples[ 3 - i ][ 3 ].disable, - - // progress_callbacks.lock - tuples[ 0 ][ 2 ].lock, - - // progress_handlers.lock - tuples[ 0 ][ 3 ].lock - ); - } - - // progress_handlers.fire - // fulfilled_handlers.fire - // rejected_handlers.fire - list.add( tuple[ 3 ].fire ); - - // deferred.notify = function() { deferred.notifyWith(...) } - // deferred.resolve = function() { deferred.resolveWith(...) } - // deferred.reject = function() { deferred.rejectWith(...) } - deferred[ tuple[ 0 ] ] = function() { - deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); - return this; - }; - - // deferred.notifyWith = list.fireWith - // deferred.resolveWith = list.fireWith - // deferred.rejectWith = list.fireWith - deferred[ tuple[ 0 ] + "With" ] = list.fireWith; - } ); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( singleValue ) { - var - - // count of uncompleted subordinates - remaining = arguments.length, - - // count of unprocessed arguments - i = remaining, - - // subordinate fulfillment data - resolveContexts = Array( i ), - resolveValues = slice.call( arguments ), - - // the primary Deferred - primary = jQuery.Deferred(), - - // subordinate callback factory - updateFunc = function( i ) { - return function( value ) { - resolveContexts[ i ] = this; - resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( !( --remaining ) ) { - primary.resolveWith( resolveContexts, resolveValues ); - } - }; - }; - - // Single- and empty arguments are adopted like Promise.resolve - if ( remaining <= 1 ) { - adoptValue( singleValue, primary.done( updateFunc( i ) ).resolve, primary.reject, - !remaining ); - - // Use .then() to unwrap secondary thenables (cf. gh-3000) - if ( primary.state() === "pending" || - isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { - - return primary.then(); - } - } - - // Multiple arguments are aggregated like Promise.all array elements - while ( i-- ) { - adoptValue( resolveValues[ i ], updateFunc( i ), primary.reject ); - } - - return primary.promise(); - } -} ); - - -// These usually indicate a programmer mistake during development, -// warn about them ASAP rather than swallowing them by default. -var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; - -jQuery.Deferred.exceptionHook = function( error, stack ) { - - // Support: IE 8 - 9 only - // Console exists when dev tools are open, which can happen at any time - if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { - window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); - } -}; - - - - -jQuery.readyException = function( error ) { - window.setTimeout( function() { - throw error; - } ); -}; - - - - -// The deferred used on DOM ready -var readyList = jQuery.Deferred(); - -jQuery.fn.ready = function( fn ) { - - readyList - .then( fn ) - - // Wrap jQuery.readyException in a function so that the lookup - // happens at the time of error handling instead of callback - // registration. - .catch( function( error ) { - jQuery.readyException( error ); - } ); - - return this; -}; - -jQuery.extend( { - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - } -} ); - -jQuery.ready.then = readyList.then; - -// The ready event handler and self cleanup method -function completed() { - document.removeEventListener( "DOMContentLoaded", completed ); - window.removeEventListener( "load", completed ); - jQuery.ready(); -} - -// Catch cases where $(document).ready() is called -// after the browser event has already occurred. -// Support: IE <=9 - 10 only -// Older IE sometimes signals "interactive" too soon -if ( document.readyState === "complete" || - ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { - - // Handle it asynchronously to allow scripts the opportunity to delay ready - window.setTimeout( jQuery.ready ); - -} else { - - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed ); -} - - - - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - len = elems.length, - bulk = key == null; - - // Sets many values - if ( toType( key ) === "object" ) { - chainable = true; - for ( i in key ) { - access( elems, fn, i, key[ i ], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, _key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < len; i++ ) { - fn( - elems[ i ], key, raw ? - value : - value.call( elems[ i ], i, fn( elems[ i ], key ) ) - ); - } - } - } - - if ( chainable ) { - return elems; - } - - // Gets - if ( bulk ) { - return fn.call( elems ); - } - - return len ? fn( elems[ 0 ], key ) : emptyGet; -}; - - -// Matches dashed string for camelizing -var rmsPrefix = /^-ms-/, - rdashAlpha = /-([a-z])/g; - -// Used by camelCase as callback to replace() -function fcamelCase( _all, letter ) { - return letter.toUpperCase(); -} - -// Convert dashed to camelCase; used by the css and data modules -// Support: IE <=9 - 11, Edge 12 - 15 -// Microsoft forgot to hump their vendor prefix (#9572) -function camelCase( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); -} -var acceptData = function( owner ) { - - // Accepts only: - // - Node - // - Node.ELEMENT_NODE - // - Node.DOCUMENT_NODE - // - Object - // - Any - return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); -}; - - - - -function Data() { - this.expando = jQuery.expando + Data.uid++; -} - -Data.uid = 1; - -Data.prototype = { - - cache: function( owner ) { - - // Check if the owner object already has a cache - var value = owner[ this.expando ]; - - // If not, create one - if ( !value ) { - value = {}; - - // We can accept data for non-element nodes in modern browsers, - // but we should not, see #8335. - // Always return an empty object. - if ( acceptData( owner ) ) { - - // If it is a node unlikely to be stringify-ed or looped over - // use plain assignment - if ( owner.nodeType ) { - owner[ this.expando ] = value; - - // Otherwise secure it in a non-enumerable property - // configurable must be true to allow the property to be - // deleted when data is removed - } else { - Object.defineProperty( owner, this.expando, { - value: value, - configurable: true - } ); - } - } - } - - return value; - }, - set: function( owner, data, value ) { - var prop, - cache = this.cache( owner ); - - // Handle: [ owner, key, value ] args - // Always use camelCase key (gh-2257) - if ( typeof data === "string" ) { - cache[ camelCase( data ) ] = value; - - // Handle: [ owner, { properties } ] args - } else { - - // Copy the properties one-by-one to the cache object - for ( prop in data ) { - cache[ camelCase( prop ) ] = data[ prop ]; - } - } - return cache; - }, - get: function( owner, key ) { - return key === undefined ? - this.cache( owner ) : - - // Always use camelCase key (gh-2257) - owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; - }, - access: function( owner, key, value ) { - - // In cases where either: - // - // 1. No key was specified - // 2. A string key was specified, but no value provided - // - // Take the "read" path and allow the get method to determine - // which value to return, respectively either: - // - // 1. The entire cache object - // 2. The data stored at the key - // - if ( key === undefined || - ( ( key && typeof key === "string" ) && value === undefined ) ) { - - return this.get( owner, key ); - } - - // When the key is not a string, or both a key and value - // are specified, set or extend (existing objects) with either: - // - // 1. An object of properties - // 2. A key and value - // - this.set( owner, key, value ); - - // Since the "set" path can have two possible entry points - // return the expected data based on which path was taken[*] - return value !== undefined ? value : key; - }, - remove: function( owner, key ) { - var i, - cache = owner[ this.expando ]; - - if ( cache === undefined ) { - return; - } - - if ( key !== undefined ) { - - // Support array or space separated string of keys - if ( Array.isArray( key ) ) { - - // If key is an array of keys... - // We always set camelCase keys, so remove that. - key = key.map( camelCase ); - } else { - key = camelCase( key ); - - // If a key with the spaces exists, use it. - // Otherwise, create an array by matching non-whitespace - key = key in cache ? - [ key ] : - ( key.match( rnothtmlwhite ) || [] ); - } - - i = key.length; - - while ( i-- ) { - delete cache[ key[ i ] ]; - } - } - - // Remove the expando if there's no more data - if ( key === undefined || jQuery.isEmptyObject( cache ) ) { - - // Support: Chrome <=35 - 45 - // Webkit & Blink performance suffers when deleting properties - // from DOM nodes, so set to undefined instead - // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) - if ( owner.nodeType ) { - owner[ this.expando ] = undefined; - } else { - delete owner[ this.expando ]; - } - } - }, - hasData: function( owner ) { - var cache = owner[ this.expando ]; - return cache !== undefined && !jQuery.isEmptyObject( cache ); - } -}; -var dataPriv = new Data(); - -var dataUser = new Data(); - - - -// Implementation Summary -// -// 1. Enforce API surface and semantic compatibility with 1.9.x branch -// 2. Improve the module's maintainability by reducing the storage -// paths to a single mechanism. -// 3. Use the same single mechanism to support "private" and "user" data. -// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) -// 5. Avoid exposing implementation details on user objects (eg. expando properties) -// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 - -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /[A-Z]/g; - -function getData( data ) { - if ( data === "true" ) { - return true; - } - - if ( data === "false" ) { - return false; - } - - if ( data === "null" ) { - return null; - } - - // Only convert to a number if it doesn't change the string - if ( data === +data + "" ) { - return +data; - } - - if ( rbrace.test( data ) ) { - return JSON.parse( data ); - } - - return data; -} - -function dataAttr( elem, key, data ) { - var name; - - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = getData( data ); - } catch ( e ) {} - - // Make sure we set the data so it isn't changed later - dataUser.set( elem, key, data ); - } else { - data = undefined; - } - } - return data; -} - -jQuery.extend( { - hasData: function( elem ) { - return dataUser.hasData( elem ) || dataPriv.hasData( elem ); - }, - - data: function( elem, name, data ) { - return dataUser.access( elem, name, data ); - }, - - removeData: function( elem, name ) { - dataUser.remove( elem, name ); - }, - - // TODO: Now that all calls to _data and _removeData have been replaced - // with direct calls to dataPriv methods, these can be deprecated. - _data: function( elem, name, data ) { - return dataPriv.access( elem, name, data ); - }, - - _removeData: function( elem, name ) { - dataPriv.remove( elem, name ); - } -} ); - -jQuery.fn.extend( { - data: function( key, value ) { - var i, name, data, - elem = this[ 0 ], - attrs = elem && elem.attributes; - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = dataUser.get( elem ); - - if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { - i = attrs.length; - while ( i-- ) { - - // Support: IE 11 only - // The attrs elements can be null (#14894) - if ( attrs[ i ] ) { - name = attrs[ i ].name; - if ( name.indexOf( "data-" ) === 0 ) { - name = camelCase( name.slice( 5 ) ); - dataAttr( elem, name, data[ name ] ); - } - } - } - dataPriv.set( elem, "hasDataAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each( function() { - dataUser.set( this, key ); - } ); - } - - return access( this, function( value ) { - var data; - - // The calling jQuery object (element matches) is not empty - // (and therefore has an element appears at this[ 0 ]) and the - // `value` parameter was not undefined. An empty jQuery object - // will result in `undefined` for elem = this[ 0 ] which will - // throw an exception if an attempt to read a data cache is made. - if ( elem && value === undefined ) { - - // Attempt to get data from the cache - // The key will always be camelCased in Data - data = dataUser.get( elem, key ); - if ( data !== undefined ) { - return data; - } - - // Attempt to "discover" the data in - // HTML5 custom data-* attrs - data = dataAttr( elem, key ); - if ( data !== undefined ) { - return data; - } - - // We tried really hard, but the data doesn't exist. - return; - } - - // Set the data... - this.each( function() { - - // We always store the camelCased key - dataUser.set( this, key, value ); - } ); - }, null, value, arguments.length > 1, null, true ); - }, - - removeData: function( key ) { - return this.each( function() { - dataUser.remove( this, key ); - } ); - } -} ); - - -jQuery.extend( { - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = dataPriv.get( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || Array.isArray( data ) ) { - queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // Clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // Not public - generate a queueHooks object, or return the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { - empty: jQuery.Callbacks( "once memory" ).add( function() { - dataPriv.remove( elem, [ type + "queue", key ] ); - } ) - } ); - } -} ); - -jQuery.fn.extend( { - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[ 0 ], type ); - } - - return data === undefined ? - this : - this.each( function() { - var queue = jQuery.queue( this, type, data ); - - // Ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - } ); - }, - dequeue: function( type ) { - return this.each( function() { - jQuery.dequeue( this, type ); - } ); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while ( i-- ) { - tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -} ); -var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; - -var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); - - -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; - -var documentElement = document.documentElement; - - - - var isAttached = function( elem ) { - return jQuery.contains( elem.ownerDocument, elem ); - }, - composed = { composed: true }; - - // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only - // Check attachment across shadow DOM boundaries when possible (gh-3504) - // Support: iOS 10.0-10.2 only - // Early iOS 10 versions support `attachShadow` but not `getRootNode`, - // leading to errors. We need to check for `getRootNode`. - if ( documentElement.getRootNode ) { - isAttached = function( elem ) { - return jQuery.contains( elem.ownerDocument, elem ) || - elem.getRootNode( composed ) === elem.ownerDocument; - }; - } -var isHiddenWithinTree = function( elem, el ) { - - // isHiddenWithinTree might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - - // Inline style trumps all - return elem.style.display === "none" || - elem.style.display === "" && - - // Otherwise, check computed style - // Support: Firefox <=43 - 45 - // Disconnected elements can have computed display: none, so first confirm that elem is - // in the document. - isAttached( elem ) && - - jQuery.css( elem, "display" ) === "none"; - }; - - - -function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, scale, - maxIterations = 20, - currentValue = tween ? - function() { - return tween.cur(); - } : - function() { - return jQuery.css( elem, prop, "" ); - }, - initial = currentValue(), - unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - initialInUnit = elem.nodeType && - ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && - rcssNum.exec( jQuery.css( elem, prop ) ); - - if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { - - // Support: Firefox <=54 - // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) - initial = initial / 2; - - // Trust units reported by jQuery.css - unit = unit || initialInUnit[ 3 ]; - - // Iteratively approximate from a nonzero starting point - initialInUnit = +initial || 1; - - while ( maxIterations-- ) { - - // Evaluate and update our best guess (doubling guesses that zero out). - // Finish if the scale equals or crosses 1 (making the old*new product non-positive). - jQuery.style( elem, prop, initialInUnit + unit ); - if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { - maxIterations = 0; - } - initialInUnit = initialInUnit / scale; - - } - - initialInUnit = initialInUnit * 2; - jQuery.style( elem, prop, initialInUnit + unit ); - - // Make sure we update the tween properties later on - valueParts = valueParts || []; - } - - if ( valueParts ) { - initialInUnit = +initialInUnit || +initial || 0; - - // Apply relative offset (+=/-=) if specified - adjusted = valueParts[ 1 ] ? - initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : - +valueParts[ 2 ]; - if ( tween ) { - tween.unit = unit; - tween.start = initialInUnit; - tween.end = adjusted; - } - } - return adjusted; -} - - -var defaultDisplayMap = {}; - -function getDefaultDisplay( elem ) { - var temp, - doc = elem.ownerDocument, - nodeName = elem.nodeName, - display = defaultDisplayMap[ nodeName ]; - - if ( display ) { - return display; - } - - temp = doc.body.appendChild( doc.createElement( nodeName ) ); - display = jQuery.css( temp, "display" ); - - temp.parentNode.removeChild( temp ); - - if ( display === "none" ) { - display = "block"; - } - defaultDisplayMap[ nodeName ] = display; - - return display; -} - -function showHide( elements, show ) { - var display, elem, - values = [], - index = 0, - length = elements.length; - - // Determine new display value for elements that need to change - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - display = elem.style.display; - if ( show ) { - - // Since we force visibility upon cascade-hidden elements, an immediate (and slow) - // check is required in this first loop unless we have a nonempty display value (either - // inline or about-to-be-restored) - if ( display === "none" ) { - values[ index ] = dataPriv.get( elem, "display" ) || null; - if ( !values[ index ] ) { - elem.style.display = ""; - } - } - if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { - values[ index ] = getDefaultDisplay( elem ); - } - } else { - if ( display !== "none" ) { - values[ index ] = "none"; - - // Remember what we're overwriting - dataPriv.set( elem, "display", display ); - } - } - } - - // Set the display of the elements in a second loop to avoid constant reflow - for ( index = 0; index < length; index++ ) { - if ( values[ index ] != null ) { - elements[ index ].style.display = values[ index ]; - } - } - - return elements; -} - -jQuery.fn.extend( { - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each( function() { - if ( isHiddenWithinTree( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - } ); - } -} ); -var rcheckableType = ( /^(?:checkbox|radio)$/i ); - -var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); - -var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); - - - -( function() { - var fragment = document.createDocumentFragment(), - div = fragment.appendChild( document.createElement( "div" ) ), - input = document.createElement( "input" ); - - // Support: Android 4.0 - 4.3 only - // Check state lost if the name is set (#11217) - // Support: Windows Web Apps (WWA) - // `name` and `type` must use .setAttribute for WWA (#14901) - input.setAttribute( "type", "radio" ); - input.setAttribute( "checked", "checked" ); - input.setAttribute( "name", "t" ); - - div.appendChild( input ); - - // Support: Android <=4.1 only - // Older WebKit doesn't clone checked state correctly in fragments - support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE <=11 only - // Make sure textarea (and checkbox) defaultValue is properly cloned - div.innerHTML = ""; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; - - // Support: IE <=9 only - // IE <=9 replaces "; - support.option = !!div.lastChild; -} )(); - - -// We have to close these tags to support XHTML (#13200) -var wrapMap = { - - // XHTML parsers do not magically insert elements in the - // same way that tag soup parsers do. So we cannot shorten - // this by omitting or other required elements. - thead: [ 1, "", "
" ], - col: [ 2, "", "
" ], - tr: [ 2, "", "
" ], - td: [ 3, "", "
" ], - - _default: [ 0, "", "" ] -}; - -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -// Support: IE <=9 only -if ( !support.option ) { - wrapMap.optgroup = wrapMap.option = [ 1, "" ]; -} - - -function getAll( context, tag ) { - - // Support: IE <=9 - 11 only - // Use typeof to avoid zero-argument method invocation on host objects (#15151) - var ret; - - if ( typeof context.getElementsByTagName !== "undefined" ) { - ret = context.getElementsByTagName( tag || "*" ); - - } else if ( typeof context.querySelectorAll !== "undefined" ) { - ret = context.querySelectorAll( tag || "*" ); - - } else { - ret = []; - } - - if ( tag === undefined || tag && nodeName( context, tag ) ) { - return jQuery.merge( [ context ], ret ); - } - - return ret; -} - - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - dataPriv.set( - elems[ i ], - "globalEval", - !refElements || dataPriv.get( refElements[ i ], "globalEval" ) - ); - } -} - - -var rhtml = /<|&#?\w+;/; - -function buildFragment( elems, context, scripts, selection, ignored ) { - var elem, tmp, tag, wrap, attached, j, - fragment = context.createDocumentFragment(), - nodes = [], - i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( toType( elem ) === "object" ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; - - // Descend through wrappers to the right content - j = wrap[ 0 ]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, tmp.childNodes ); - - // Remember the top-level container - tmp = fragment.firstChild; - - // Ensure the created nodes are orphaned (#12392) - tmp.textContent = ""; - } - } - } - - // Remove wrapper from fragment - fragment.textContent = ""; - - i = 0; - while ( ( elem = nodes[ i++ ] ) ) { - - // Skip elements already in the context collection (trac-4087) - if ( selection && jQuery.inArray( elem, selection ) > -1 ) { - if ( ignored ) { - ignored.push( elem ); - } - continue; - } - - attached = isAttached( elem ); - - // Append to fragment - tmp = getAll( fragment.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( attached ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( ( elem = tmp[ j++ ] ) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - return fragment; -} - - -var rtypenamespace = /^([^.]*)(?:\.(.+)|)/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -// Support: IE <=9 - 11+ -// focus() and blur() are asynchronous, except when they are no-op. -// So expect focus to be synchronous when the element is already active, -// and blur to be synchronous when the element is not already active. -// (focus and blur are always synchronous in other supported browsers, -// this just defines when we can count on it). -function expectSync( elem, type ) { - return ( elem === safeActiveElement() ) === ( type === "focus" ); -} - -// Support: IE <=9 only -// Accessing document.activeElement can throw unexpectedly -// https://bugs.jquery.com/ticket/13393 -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -function on( elem, types, selector, data, fn, one ) { - var origFn, type; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - on( elem, type, selector, data, types[ type ], one ); - } - return elem; - } - - if ( data == null && fn == null ) { - - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return elem; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return elem.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - } ); -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.get( elem ); - - // Only attach events to objects that accept data - if ( !acceptData( elem ) ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Ensure that invalid selectors throw exceptions at attach time - // Evaluate against documentElement in case elem is a non-element node (e.g., document) - if ( selector ) { - jQuery.find.matchesSelector( documentElement, selector ); - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !( events = elemData.events ) ) { - events = elemData.events = Object.create( null ); - } - if ( !( eventHandle = elemData.handle ) ) { - eventHandle = elemData.handle = function( e ) { - - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? - jQuery.event.dispatch.apply( elem, arguments ) : undefined; - }; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend( { - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join( "." ) - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !( handlers = events[ type ] ) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener if the special events handler returns false - if ( !special.setup || - special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - - var j, origCount, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); - - if ( !elemData || !( events = elemData.events ) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[ 2 ] && - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || - selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || - special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove data and the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - dataPriv.remove( elem, "handle events" ); - } - }, - - dispatch: function( nativeEvent ) { - - var i, j, ret, matched, handleObj, handlerQueue, - args = new Array( arguments.length ), - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( nativeEvent ), - - handlers = ( - dataPriv.get( this, "events" ) || Object.create( null ) - )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[ 0 ] = event; - - for ( i = 1; i < arguments.length; i++ ) { - args[ i ] = arguments[ i ]; - } - - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( ( handleObj = matched.handlers[ j++ ] ) && - !event.isImmediatePropagationStopped() ) { - - // If the event is namespaced, then each handler is only invoked if it is - // specially universal or its namespaces are a superset of the event's. - if ( !event.rnamespace || handleObj.namespace === false || - event.rnamespace.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || - handleObj.handler ).apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( ( event.result = ret ) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var i, handleObj, sel, matchedHandlers, matchedSelectors, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - if ( delegateCount && - - // Support: IE <=9 - // Black-hole SVG instance trees (trac-13180) - cur.nodeType && - - // Support: Firefox <=42 - // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) - // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click - // Support: IE 11 only - // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) - !( event.type === "click" && event.button >= 1 ) ) { - - for ( ; cur !== this; cur = cur.parentNode || this ) { - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { - matchedHandlers = []; - matchedSelectors = {}; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matchedSelectors[ sel ] === undefined ) { - matchedSelectors[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) > -1 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matchedSelectors[ sel ] ) { - matchedHandlers.push( handleObj ); - } - } - if ( matchedHandlers.length ) { - handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); - } - } - } - } - - // Add the remaining (directly-bound) handlers - cur = this; - if ( delegateCount < handlers.length ) { - handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); - } - - return handlerQueue; - }, - - addProp: function( name, hook ) { - Object.defineProperty( jQuery.Event.prototype, name, { - enumerable: true, - configurable: true, - - get: isFunction( hook ) ? - function() { - if ( this.originalEvent ) { - return hook( this.originalEvent ); - } - } : - function() { - if ( this.originalEvent ) { - return this.originalEvent[ name ]; - } - }, - - set: function( value ) { - Object.defineProperty( this, name, { - enumerable: true, - configurable: true, - writable: true, - value: value - } ); - } - } ); - }, - - fix: function( originalEvent ) { - return originalEvent[ jQuery.expando ] ? - originalEvent : - new jQuery.Event( originalEvent ); - }, - - special: { - load: { - - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - click: { - - // Utilize native event to ensure correct state for checkable inputs - setup: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Claim the first handler - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - // dataPriv.set( el, "click", ... ) - leverageNative( el, "click", returnTrue ); - } - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Force setup before triggering a click - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - leverageNative( el, "click" ); - } - - // Return non-false to allow normal event-path propagation - return true; - }, - - // For cross-browser consistency, suppress native .click() on links - // Also prevent it if we're currently inside a leveraged native-event stack - _default: function( event ) { - var target = event.target; - return rcheckableType.test( target.type ) && - target.click && nodeName( target, "input" ) && - dataPriv.get( target, "click" ) || - nodeName( target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - } -}; - -// Ensure the presence of an event listener that handles manually-triggered -// synthetic events by interrupting progress until reinvoked in response to -// *native* events that it fires directly, ensuring that state changes have -// already occurred before other listeners are invoked. -function leverageNative( el, type, expectSync ) { - - // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add - if ( !expectSync ) { - if ( dataPriv.get( el, type ) === undefined ) { - jQuery.event.add( el, type, returnTrue ); - } - return; - } - - // Register the controller as a special universal handler for all event namespaces - dataPriv.set( el, type, false ); - jQuery.event.add( el, type, { - namespace: false, - handler: function( event ) { - var notAsync, result, - saved = dataPriv.get( this, type ); - - if ( ( event.isTrigger & 1 ) && this[ type ] ) { - - // Interrupt processing of the outer synthetic .trigger()ed event - // Saved data should be false in such cases, but might be a leftover capture object - // from an async native handler (gh-4350) - if ( !saved.length ) { - - // Store arguments for use when handling the inner native event - // There will always be at least one argument (an event object), so this array - // will not be confused with a leftover capture object. - saved = slice.call( arguments ); - dataPriv.set( this, type, saved ); - - // Trigger the native event and capture its result - // Support: IE <=9 - 11+ - // focus() and blur() are asynchronous - notAsync = expectSync( this, type ); - this[ type ](); - result = dataPriv.get( this, type ); - if ( saved !== result || notAsync ) { - dataPriv.set( this, type, false ); - } else { - result = {}; - } - if ( saved !== result ) { - - // Cancel the outer synthetic event - event.stopImmediatePropagation(); - event.preventDefault(); - - // Support: Chrome 86+ - // In Chrome, if an element having a focusout handler is blurred by - // clicking outside of it, it invokes the handler synchronously. If - // that handler calls `.remove()` on the element, the data is cleared, - // leaving `result` undefined. We need to guard against this. - return result && result.value; - } - - // If this is an inner synthetic event for an event with a bubbling surrogate - // (focus or blur), assume that the surrogate already propagated from triggering the - // native event and prevent that from happening again here. - // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the - // bubbling surrogate propagates *after* the non-bubbling base), but that seems - // less bad than duplication. - } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { - event.stopPropagation(); - } - - // If this is a native event triggered above, everything is now in order - // Fire an inner synthetic event with the original arguments - } else if ( saved.length ) { - - // ...and capture the result - dataPriv.set( this, type, { - value: jQuery.event.trigger( - - // Support: IE <=9 - 11+ - // Extend with the prototype to reset the above stopImmediatePropagation() - jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), - saved.slice( 1 ), - this - ) - } ); - - // Abort handling of the native event - event.stopImmediatePropagation(); - } - } - } ); -} - -jQuery.removeEvent = function( elem, type, handle ) { - - // This "if" is needed for plain objects - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle ); - } -}; - -jQuery.Event = function( src, props ) { - - // Allow instantiation without the 'new' keyword - if ( !( this instanceof jQuery.Event ) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - - // Support: Android <=2.3 only - src.returnValue === false ? - returnTrue : - returnFalse; - - // Create target properties - // Support: Safari <=6 - 7 only - // Target should not be a text node (#504, #13143) - this.target = ( src.target && src.target.nodeType === 3 ) ? - src.target.parentNode : - src.target; - - this.currentTarget = src.currentTarget; - this.relatedTarget = src.relatedTarget; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || Date.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - constructor: jQuery.Event, - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - isSimulated: false, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - - if ( e && !this.isSimulated ) { - e.preventDefault(); - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopPropagation(); - } - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Includes all common event props including KeyEvent and MouseEvent specific props -jQuery.each( { - altKey: true, - bubbles: true, - cancelable: true, - changedTouches: true, - ctrlKey: true, - detail: true, - eventPhase: true, - metaKey: true, - pageX: true, - pageY: true, - shiftKey: true, - view: true, - "char": true, - code: true, - charCode: true, - key: true, - keyCode: true, - button: true, - buttons: true, - clientX: true, - clientY: true, - offsetX: true, - offsetY: true, - pointerId: true, - pointerType: true, - screenX: true, - screenY: true, - targetTouches: true, - toElement: true, - touches: true, - which: true -}, jQuery.event.addProp ); - -jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { - jQuery.event.special[ type ] = { - - // Utilize native event if possible so blur/focus sequence is correct - setup: function() { - - // Claim the first handler - // dataPriv.set( this, "focus", ... ) - // dataPriv.set( this, "blur", ... ) - leverageNative( this, type, expectSync ); - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function() { - - // Force setup before trigger - leverageNative( this, type ); - - // Return non-false to allow normal event-path propagation - return true; - }, - - // Suppress native focus or blur as it's already being fired - // in leverageNative. - _default: function() { - return true; - }, - - delegateType: delegateType - }; -} ); - -// Create mouseenter/leave events using mouseover/out and event-time checks -// so that event delegation works in jQuery. -// Do the same for pointerenter/pointerleave and pointerover/pointerout -// -// Support: Safari 7 only -// Safari sends mouseenter too often; see: -// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 -// for the description of the bug (it existed in older Chrome versions as well). -jQuery.each( { - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mouseenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -} ); - -jQuery.fn.extend( { - - on: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn ); - }, - one: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? - handleObj.origType + "." + handleObj.namespace : - handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each( function() { - jQuery.event.remove( this, types, fn, selector ); - } ); - } -} ); - - -var - - // Support: IE <=10 - 11, Edge 12 - 13 only - // In IE/Edge using regex groups here causes severe slowdowns. - // See https://connect.microsoft.com/IE/feedback/details/1736512/ - rnoInnerhtml = /\s*$/g; - -// Prefer a tbody over its parent table for containing new rows -function manipulationTarget( elem, content ) { - if ( nodeName( elem, "table" ) && - nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { - - return jQuery( elem ).children( "tbody" )[ 0 ] || elem; - } - - return elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { - elem.type = elem.type.slice( 5 ); - } else { - elem.removeAttribute( "type" ); - } - - return elem; -} - -function cloneCopyEvent( src, dest ) { - var i, l, type, pdataOld, udataOld, udataCur, events; - - if ( dest.nodeType !== 1 ) { - return; - } - - // 1. Copy private data: events, handlers, etc. - if ( dataPriv.hasData( src ) ) { - pdataOld = dataPriv.get( src ); - events = pdataOld.events; - - if ( events ) { - dataPriv.remove( dest, "handle events" ); - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - } - - // 2. Copy user data - if ( dataUser.hasData( src ) ) { - udataOld = dataUser.access( src ); - udataCur = jQuery.extend( {}, udataOld ); - - dataUser.set( dest, udataCur ); - } -} - -// Fix IE bugs, see support tests -function fixInput( src, dest ) { - var nodeName = dest.nodeName.toLowerCase(); - - // Fails to persist the checked state of a cloned checkbox or radio button. - if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - dest.checked = src.checked; - - // Fails to return the selected option to the default selected state when cloning options - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -function domManip( collection, args, callback, ignored ) { - - // Flatten any nested arrays - args = flat( args ); - - var fragment, first, scripts, hasScripts, node, doc, - i = 0, - l = collection.length, - iNoClone = l - 1, - value = args[ 0 ], - valueIsFunction = isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( valueIsFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return collection.each( function( index ) { - var self = collection.eq( index ); - if ( valueIsFunction ) { - args[ 0 ] = value.call( this, index, self.html() ); - } - domManip( self, args, callback, ignored ); - } ); - } - - if ( l ) { - fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - // Require either new content or an interest in ignored elements to invoke the callback - if ( first || ignored ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item - // instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( collection[ i ], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !dataPriv.access( node, "globalEval" ) && - jQuery.contains( doc, node ) ) { - - if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { - - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl && !node.noModule ) { - jQuery._evalUrl( node.src, { - nonce: node.nonce || node.getAttribute( "nonce" ) - }, doc ); - } - } else { - DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); - } - } - } - } - } - } - - return collection; -} - -function remove( elem, selector, keepData ) { - var node, - nodes = selector ? jQuery.filter( selector, elem ) : elem, - i = 0; - - for ( ; ( node = nodes[ i ] ) != null; i++ ) { - if ( !keepData && node.nodeType === 1 ) { - jQuery.cleanData( getAll( node ) ); - } - - if ( node.parentNode ) { - if ( keepData && isAttached( node ) ) { - setGlobalEval( getAll( node, "script" ) ); - } - node.parentNode.removeChild( node ); - } - } - - return elem; -} - -jQuery.extend( { - htmlPrefilter: function( html ) { - return html; - }, - - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var i, l, srcElements, destElements, - clone = elem.cloneNode( true ), - inPage = isAttached( elem ); - - // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && - !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixInput( srcElements[ i ], destElements[ i ] ); - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - cloneCopyEvent( srcElements[ i ], destElements[ i ] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - // Return the cloned set - return clone; - }, - - cleanData: function( elems ) { - var data, elem, type, - special = jQuery.event.special, - i = 0; - - for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { - if ( acceptData( elem ) ) { - if ( ( data = elem[ dataPriv.expando ] ) ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataPriv.expando ] = undefined; - } - if ( elem[ dataUser.expando ] ) { - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataUser.expando ] = undefined; - } - } - } - } -} ); - -jQuery.fn.extend( { - detach: function( selector ) { - return remove( this, selector, true ); - }, - - remove: function( selector ) { - return remove( this, selector ); - }, - - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().each( function() { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.textContent = value; - } - } ); - }, null, value, arguments.length ); - }, - - append: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - } ); - }, - - prepend: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - } ); - }, - - before: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - } ); - }, - - after: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - } ); - }, - - empty: function() { - var elem, - i = 0; - - for ( ; ( elem = this[ i ] ) != null; i++ ) { - if ( elem.nodeType === 1 ) { - - // Prevent memory leaks - jQuery.cleanData( getAll( elem, false ) ); - - // Remove any remaining nodes - elem.textContent = ""; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - } ); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined && elem.nodeType === 1 ) { - return elem.innerHTML; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { - - value = jQuery.htmlPrefilter( value ); - - try { - for ( ; i < l; i++ ) { - elem = this[ i ] || {}; - - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch ( e ) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var ignored = []; - - // Make the changes, replacing each non-ignored context element with the new content - return domManip( this, arguments, function( elem ) { - var parent = this.parentNode; - - if ( jQuery.inArray( this, ignored ) < 0 ) { - jQuery.cleanData( getAll( this ) ); - if ( parent ) { - parent.replaceChild( elem, this ); - } - } - - // Force callback invocation - }, ignored ); - } -} ); - -jQuery.each( { - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1, - i = 0; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone( true ); - jQuery( insert[ i ] )[ original ]( elems ); - - // Support: Android <=4.0 only, PhantomJS 1 only - // .get() because push.apply(_, arraylike) throws on ancient WebKit - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -} ); -var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); - -var getStyles = function( elem ) { - - // Support: IE <=11 only, Firefox <=30 (#15098, #14150) - // IE throws on elements created in popups - // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" - var view = elem.ownerDocument.defaultView; - - if ( !view || !view.opener ) { - view = window; - } - - return view.getComputedStyle( elem ); - }; - -var swap = function( elem, options, callback ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.call( elem ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; -}; - - -var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); - - - -( function() { - - // Executing both pixelPosition & boxSizingReliable tests require only one layout - // so they're executed at the same time to save the second computation. - function computeStyleTests() { - - // This is a singleton, we need to execute it only once - if ( !div ) { - return; - } - - container.style.cssText = "position:absolute;left:-11111px;width:60px;" + - "margin-top:1px;padding:0;border:0"; - div.style.cssText = - "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + - "margin:auto;border:1px;padding:1px;" + - "width:60%;top:1%"; - documentElement.appendChild( container ).appendChild( div ); - - var divStyle = window.getComputedStyle( div ); - pixelPositionVal = divStyle.top !== "1%"; - - // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 - reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; - - // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 - // Some styles come back with percentage values, even though they shouldn't - div.style.right = "60%"; - pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; - - // Support: IE 9 - 11 only - // Detect misreporting of content dimensions for box-sizing:border-box elements - boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; - - // Support: IE 9 only - // Detect overflow:scroll screwiness (gh-3699) - // Support: Chrome <=64 - // Don't get tricked when zoom affects offsetWidth (gh-4029) - div.style.position = "absolute"; - scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; - - documentElement.removeChild( container ); - - // Nullify the div so it wouldn't be stored in the memory and - // it will also be a sign that checks already performed - div = null; - } - - function roundPixelMeasures( measure ) { - return Math.round( parseFloat( measure ) ); - } - - var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, - reliableTrDimensionsVal, reliableMarginLeftVal, - container = document.createElement( "div" ), - div = document.createElement( "div" ); - - // Finish early in limited (non-browser) environments - if ( !div.style ) { - return; - } - - // Support: IE <=9 - 11 only - // Style of cloned element affects source element cloned (#8908) - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - jQuery.extend( support, { - boxSizingReliable: function() { - computeStyleTests(); - return boxSizingReliableVal; - }, - pixelBoxStyles: function() { - computeStyleTests(); - return pixelBoxStylesVal; - }, - pixelPosition: function() { - computeStyleTests(); - return pixelPositionVal; - }, - reliableMarginLeft: function() { - computeStyleTests(); - return reliableMarginLeftVal; - }, - scrollboxSize: function() { - computeStyleTests(); - return scrollboxSizeVal; - }, - - // Support: IE 9 - 11+, Edge 15 - 18+ - // IE/Edge misreport `getComputedStyle` of table rows with width/height - // set in CSS while `offset*` properties report correct values. - // Behavior in IE 9 is more subtle than in newer versions & it passes - // some versions of this test; make sure not to make it pass there! - // - // Support: Firefox 70+ - // Only Firefox includes border widths - // in computed dimensions. (gh-4529) - reliableTrDimensions: function() { - var table, tr, trChild, trStyle; - if ( reliableTrDimensionsVal == null ) { - table = document.createElement( "table" ); - tr = document.createElement( "tr" ); - trChild = document.createElement( "div" ); - - table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate"; - tr.style.cssText = "border:1px solid"; - - // Support: Chrome 86+ - // Height set through cssText does not get applied. - // Computed height then comes back as 0. - tr.style.height = "1px"; - trChild.style.height = "9px"; - - // Support: Android 8 Chrome 86+ - // In our bodyBackground.html iframe, - // display for all div elements is set to "inline", - // which causes a problem only in Android 8 Chrome 86. - // Ensuring the div is display: block - // gets around this issue. - trChild.style.display = "block"; - - documentElement - .appendChild( table ) - .appendChild( tr ) - .appendChild( trChild ); - - trStyle = window.getComputedStyle( tr ); - reliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) + - parseInt( trStyle.borderTopWidth, 10 ) + - parseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight; - - documentElement.removeChild( table ); - } - return reliableTrDimensionsVal; - } - } ); -} )(); - - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - - // Support: Firefox 51+ - // Retrieving style before computed somehow - // fixes an issue with getting wrong values - // on detached elements - style = elem.style; - - computed = computed || getStyles( elem ); - - // getPropertyValue is needed for: - // .css('filter') (IE 9 only, #12537) - // .css('--customProperty) (#3144) - if ( computed ) { - ret = computed.getPropertyValue( name ) || computed[ name ]; - - if ( ret === "" && !isAttached( elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Android Browser returns percentage for some values, - // but width seems to be reliably pixels. - // This is against the CSSOM draft spec: - // https://drafts.csswg.org/cssom/#resolved-values - if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - - // Support: IE <=9 - 11 only - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - - -function addGetHookIf( conditionFn, hookFn ) { - - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return ( this.get = hookFn ).apply( this, arguments ); - } - }; -} - - -var cssPrefixes = [ "Webkit", "Moz", "ms" ], - emptyStyle = document.createElement( "div" ).style, - vendorProps = {}; - -// Return a vendor-prefixed property or undefined -function vendorPropName( name ) { - - // Check for vendor prefixed names - var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in emptyStyle ) { - return name; - } - } -} - -// Return a potentially-mapped jQuery.cssProps or vendor prefixed property -function finalPropName( name ) { - var final = jQuery.cssProps[ name ] || vendorProps[ name ]; - - if ( final ) { - return final; - } - if ( name in emptyStyle ) { - return name; - } - return vendorProps[ name ] = vendorPropName( name ) || name; -} - - -var - - // Swappable if display is none or starts with table - // except "table", "table-cell", or "table-caption" - // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rcustomProp = /^--/, - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: "0", - fontWeight: "400" - }; - -function setPositiveNumber( _elem, value, subtract ) { - - // Any relative (+/-) values have already been - // normalized at this point - var matches = rcssNum.exec( value ); - return matches ? - - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : - value; -} - -function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { - var i = dimension === "width" ? 1 : 0, - extra = 0, - delta = 0; - - // Adjustment may not be necessary - if ( box === ( isBorderBox ? "border" : "content" ) ) { - return 0; - } - - for ( ; i < 4; i += 2 ) { - - // Both box models exclude margin - if ( box === "margin" ) { - delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); - } - - // If we get here with a content-box, we're seeking "padding" or "border" or "margin" - if ( !isBorderBox ) { - - // Add padding - delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // For "border" or "margin", add border - if ( box !== "padding" ) { - delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - - // But still keep track of it otherwise - } else { - extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - - // If we get here with a border-box (content + padding + border), we're seeking "content" or - // "padding" or "margin" - } else { - - // For "content", subtract padding - if ( box === "content" ) { - delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // For "content" or "padding", subtract border - if ( box !== "margin" ) { - delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - // Account for positive content-box scroll gutter when requested by providing computedVal - if ( !isBorderBox && computedVal >= 0 ) { - - // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border - // Assuming integer scroll gutter, subtract the rest and round down - delta += Math.max( 0, Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - computedVal - - delta - - extra - - 0.5 - - // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter - // Use an explicit zero to avoid NaN (gh-3964) - ) ) || 0; - } - - return delta; -} - -function getWidthOrHeight( elem, dimension, extra ) { - - // Start with computed style - var styles = getStyles( elem ), - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). - // Fake content-box until we know it's needed to know the true value. - boxSizingNeeded = !support.boxSizingReliable() || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - valueIsBorderBox = isBorderBox, - - val = curCSS( elem, dimension, styles ), - offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); - - // Support: Firefox <=54 - // Return a confounding non-pixel value or feign ignorance, as appropriate. - if ( rnumnonpx.test( val ) ) { - if ( !extra ) { - return val; - } - val = "auto"; - } - - - // Support: IE 9 - 11 only - // Use offsetWidth/offsetHeight for when box sizing is unreliable. - // In those cases, the computed value can be trusted to be border-box. - if ( ( !support.boxSizingReliable() && isBorderBox || - - // Support: IE 10 - 11+, Edge 15 - 18+ - // IE/Edge misreport `getComputedStyle` of table rows with width/height - // set in CSS while `offset*` properties report correct values. - // Interestingly, in some cases IE 9 doesn't suffer from this issue. - !support.reliableTrDimensions() && nodeName( elem, "tr" ) || - - // Fall back to offsetWidth/offsetHeight when value is "auto" - // This happens for inline elements with no explicit setting (gh-3571) - val === "auto" || - - // Support: Android <=4.1 - 4.3 only - // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) - !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && - - // Make sure the element is visible & connected - elem.getClientRects().length ) { - - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // Where available, offsetWidth/offsetHeight approximate border box dimensions. - // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the - // retrieved value as a content box dimension. - valueIsBorderBox = offsetProp in elem; - if ( valueIsBorderBox ) { - val = elem[ offsetProp ]; - } - } - - // Normalize "" and auto - val = parseFloat( val ) || 0; - - // Adjust for the element's box model - return ( val + - boxModelAdjustment( - elem, - dimension, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles, - - // Provide the current computed size to request scroll gutter calculation (gh-3589) - val - ) - ) + "px"; -} - -jQuery.extend( { - - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "animationIterationCount": true, - "columnCount": true, - "fillOpacity": true, - "flexGrow": true, - "flexShrink": true, - "fontWeight": true, - "gridArea": true, - "gridColumn": true, - "gridColumnEnd": true, - "gridColumnStart": true, - "gridRow": true, - "gridRowEnd": true, - "gridRowStart": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: {}, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ), - style = elem.style; - - // Make sure that we're working with the right name. We don't - // want to query the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Gets hook for the prefixed version, then unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // Convert "+=" or "-=" to relative numbers (#7345) - if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { - value = adjustCSS( elem, name, ret ); - - // Fixes bug #9237 - type = "number"; - } - - // Make sure that null and NaN values aren't set (#7116) - if ( value == null || value !== value ) { - return; - } - - // If a number was passed in, add the unit (except for certain CSS properties) - // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append - // "px" to a few hardcoded values. - if ( type === "number" && !isCustomProp ) { - value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); - } - - // background-* props affect original clone's values - if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !( "set" in hooks ) || - ( value = hooks.set( elem, value, extra ) ) !== undefined ) { - - if ( isCustomProp ) { - style.setProperty( name, value ); - } else { - style[ name ] = value; - } - } - - } else { - - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && - ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { - - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var val, num, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ); - - // Make sure that we're working with the right name. We don't - // want to modify the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Try prefixed name followed by the unprefixed name - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - // Convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Make numeric if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || isFinite( num ) ? num || 0 : val; - } - - return val; - } -} ); - -jQuery.each( [ "height", "width" ], function( _i, dimension ) { - jQuery.cssHooks[ dimension ] = { - get: function( elem, computed, extra ) { - if ( computed ) { - - // Certain elements can have dimension info if we invisibly show them - // but it must have a current display style that would benefit - return rdisplayswap.test( jQuery.css( elem, "display" ) ) && - - // Support: Safari 8+ - // Table columns in Safari have non-zero offsetWidth & zero - // getBoundingClientRect().width unless display is changed. - // Support: IE <=11 only - // Running getBoundingClientRect on a disconnected node - // in IE throws an error. - ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? - swap( elem, cssShow, function() { - return getWidthOrHeight( elem, dimension, extra ); - } ) : - getWidthOrHeight( elem, dimension, extra ); - } - }, - - set: function( elem, value, extra ) { - var matches, - styles = getStyles( elem ), - - // Only read styles.position if the test has a chance to fail - // to avoid forcing a reflow. - scrollboxSizeBuggy = !support.scrollboxSize() && - styles.position === "absolute", - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) - boxSizingNeeded = scrollboxSizeBuggy || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - subtract = extra ? - boxModelAdjustment( - elem, - dimension, - extra, - isBorderBox, - styles - ) : - 0; - - // Account for unreliable border-box dimensions by comparing offset* to computed and - // faking a content-box to get border and padding (gh-3699) - if ( isBorderBox && scrollboxSizeBuggy ) { - subtract -= Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - parseFloat( styles[ dimension ] ) - - boxModelAdjustment( elem, dimension, "border", false, styles ) - - 0.5 - ); - } - - // Convert to pixels if value adjustment is needed - if ( subtract && ( matches = rcssNum.exec( value ) ) && - ( matches[ 3 ] || "px" ) !== "px" ) { - - elem.style[ dimension ] = value; - value = jQuery.css( elem, dimension ); - } - - return setPositiveNumber( elem, value, subtract ); - } - }; -} ); - -jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, - function( elem, computed ) { - if ( computed ) { - return ( parseFloat( curCSS( elem, "marginLeft" ) ) || - elem.getBoundingClientRect().left - - swap( elem, { marginLeft: 0 }, function() { - return elem.getBoundingClientRect().left; - } ) - ) + "px"; - } - } -); - -// These hooks are used by animate to expand properties -jQuery.each( { - margin: "", - padding: "", - border: "Width" -}, function( prefix, suffix ) { - jQuery.cssHooks[ prefix + suffix ] = { - expand: function( value ) { - var i = 0, - expanded = {}, - - // Assumes a single number if not a string - parts = typeof value === "string" ? value.split( " " ) : [ value ]; - - for ( ; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - - return expanded; - } - }; - - if ( prefix !== "margin" ) { - jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; - } -} ); - -jQuery.fn.extend( { - css: function( name, value ) { - return access( this, function( elem, name, value ) { - var styles, len, - map = {}, - i = 0; - - if ( Array.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - } -} ); - - -function Tween( elem, options, prop, end, easing ) { - return new Tween.prototype.init( elem, options, prop, end, easing ); -} -jQuery.Tween = Tween; - -Tween.prototype = { - constructor: Tween, - init: function( elem, options, prop, end, easing, unit ) { - this.elem = elem; - this.prop = prop; - this.easing = easing || jQuery.easing._default; - this.options = options; - this.start = this.now = this.cur(); - this.end = end; - this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); - }, - cur: function() { - var hooks = Tween.propHooks[ this.prop ]; - - return hooks && hooks.get ? - hooks.get( this ) : - Tween.propHooks._default.get( this ); - }, - run: function( percent ) { - var eased, - hooks = Tween.propHooks[ this.prop ]; - - if ( this.options.duration ) { - this.pos = eased = jQuery.easing[ this.easing ]( - percent, this.options.duration * percent, 0, 1, this.options.duration - ); - } else { - this.pos = eased = percent; - } - this.now = ( this.end - this.start ) * eased + this.start; - - if ( this.options.step ) { - this.options.step.call( this.elem, this.now, this ); - } - - if ( hooks && hooks.set ) { - hooks.set( this ); - } else { - Tween.propHooks._default.set( this ); - } - return this; - } -}; - -Tween.prototype.init.prototype = Tween.prototype; - -Tween.propHooks = { - _default: { - get: function( tween ) { - var result; - - // Use a property on the element directly when it is not a DOM element, - // or when there is no matching style property that exists. - if ( tween.elem.nodeType !== 1 || - tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { - return tween.elem[ tween.prop ]; - } - - // Passing an empty string as a 3rd parameter to .css will automatically - // attempt a parseFloat and fallback to a string if the parse fails. - // Simple values such as "10px" are parsed to Float; - // complex values such as "rotate(1rad)" are returned as-is. - result = jQuery.css( tween.elem, tween.prop, "" ); - - // Empty strings, null, undefined and "auto" are converted to 0. - return !result || result === "auto" ? 0 : result; - }, - set: function( tween ) { - - // Use step hook for back compat. - // Use cssHook if its there. - // Use .style if available and use plain properties where available. - if ( jQuery.fx.step[ tween.prop ] ) { - jQuery.fx.step[ tween.prop ]( tween ); - } else if ( tween.elem.nodeType === 1 && ( - jQuery.cssHooks[ tween.prop ] || - tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { - jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); - } else { - tween.elem[ tween.prop ] = tween.now; - } - } - } -}; - -// Support: IE <=9 only -// Panic based approach to setting things on disconnected nodes -Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { - set: function( tween ) { - if ( tween.elem.nodeType && tween.elem.parentNode ) { - tween.elem[ tween.prop ] = tween.now; - } - } -}; - -jQuery.easing = { - linear: function( p ) { - return p; - }, - swing: function( p ) { - return 0.5 - Math.cos( p * Math.PI ) / 2; - }, - _default: "swing" -}; - -jQuery.fx = Tween.prototype.init; - -// Back compat <1.8 extension point -jQuery.fx.step = {}; - - - - -var - fxNow, inProgress, - rfxtypes = /^(?:toggle|show|hide)$/, - rrun = /queueHooks$/; - -function schedule() { - if ( inProgress ) { - if ( document.hidden === false && window.requestAnimationFrame ) { - window.requestAnimationFrame( schedule ); - } else { - window.setTimeout( schedule, jQuery.fx.interval ); - } - - jQuery.fx.tick(); - } -} - -// Animations created synchronously will run synchronously -function createFxNow() { - window.setTimeout( function() { - fxNow = undefined; - } ); - return ( fxNow = Date.now() ); -} - -// Generate parameters to create a standard animation -function genFx( type, includeWidth ) { - var which, - i = 0, - attrs = { height: type }; - - // If we include width, step value is 1 to do all cssExpand values, - // otherwise step value is 2 to skip over Left and Right - includeWidth = includeWidth ? 1 : 0; - for ( ; i < 4; i += 2 - includeWidth ) { - which = cssExpand[ i ]; - attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; - } - - if ( includeWidth ) { - attrs.opacity = attrs.width = type; - } - - return attrs; -} - -function createTween( value, prop, animation ) { - var tween, - collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), - index = 0, - length = collection.length; - for ( ; index < length; index++ ) { - if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { - - // We're done with this property - return tween; - } - } -} - -function defaultPrefilter( elem, props, opts ) { - var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, - isBox = "width" in props || "height" in props, - anim = this, - orig = {}, - style = elem.style, - hidden = elem.nodeType && isHiddenWithinTree( elem ), - dataShow = dataPriv.get( elem, "fxshow" ); - - // Queue-skipping animations hijack the fx hooks - if ( !opts.queue ) { - hooks = jQuery._queueHooks( elem, "fx" ); - if ( hooks.unqueued == null ) { - hooks.unqueued = 0; - oldfire = hooks.empty.fire; - hooks.empty.fire = function() { - if ( !hooks.unqueued ) { - oldfire(); - } - }; - } - hooks.unqueued++; - - anim.always( function() { - - // Ensure the complete handler is called before this completes - anim.always( function() { - hooks.unqueued--; - if ( !jQuery.queue( elem, "fx" ).length ) { - hooks.empty.fire(); - } - } ); - } ); - } - - // Detect show/hide animations - for ( prop in props ) { - value = props[ prop ]; - if ( rfxtypes.test( value ) ) { - delete props[ prop ]; - toggle = toggle || value === "toggle"; - if ( value === ( hidden ? "hide" : "show" ) ) { - - // Pretend to be hidden if this is a "show" and - // there is still data from a stopped show/hide - if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { - hidden = true; - - // Ignore all other no-op show/hide data - } else { - continue; - } - } - orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); - } - } - - // Bail out if this is a no-op like .hide().hide() - propTween = !jQuery.isEmptyObject( props ); - if ( !propTween && jQuery.isEmptyObject( orig ) ) { - return; - } - - // Restrict "overflow" and "display" styles during box animations - if ( isBox && elem.nodeType === 1 ) { - - // Support: IE <=9 - 11, Edge 12 - 15 - // Record all 3 overflow attributes because IE does not infer the shorthand - // from identically-valued overflowX and overflowY and Edge just mirrors - // the overflowX value there. - opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; - - // Identify a display type, preferring old show/hide data over the CSS cascade - restoreDisplay = dataShow && dataShow.display; - if ( restoreDisplay == null ) { - restoreDisplay = dataPriv.get( elem, "display" ); - } - display = jQuery.css( elem, "display" ); - if ( display === "none" ) { - if ( restoreDisplay ) { - display = restoreDisplay; - } else { - - // Get nonempty value(s) by temporarily forcing visibility - showHide( [ elem ], true ); - restoreDisplay = elem.style.display || restoreDisplay; - display = jQuery.css( elem, "display" ); - showHide( [ elem ] ); - } - } - - // Animate inline elements as inline-block - if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { - if ( jQuery.css( elem, "float" ) === "none" ) { - - // Restore the original display value at the end of pure show/hide animations - if ( !propTween ) { - anim.done( function() { - style.display = restoreDisplay; - } ); - if ( restoreDisplay == null ) { - display = style.display; - restoreDisplay = display === "none" ? "" : display; - } - } - style.display = "inline-block"; - } - } - } - - if ( opts.overflow ) { - style.overflow = "hidden"; - anim.always( function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - } ); - } - - // Implement show/hide animations - propTween = false; - for ( prop in orig ) { - - // General show/hide setup for this element animation - if ( !propTween ) { - if ( dataShow ) { - if ( "hidden" in dataShow ) { - hidden = dataShow.hidden; - } - } else { - dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); - } - - // Store hidden/visible for toggle so `.stop().toggle()` "reverses" - if ( toggle ) { - dataShow.hidden = !hidden; - } - - // Show elements before animating them - if ( hidden ) { - showHide( [ elem ], true ); - } - - /* eslint-disable no-loop-func */ - - anim.done( function() { - - /* eslint-enable no-loop-func */ - - // The final step of a "hide" animation is actually hiding the element - if ( !hidden ) { - showHide( [ elem ] ); - } - dataPriv.remove( elem, "fxshow" ); - for ( prop in orig ) { - jQuery.style( elem, prop, orig[ prop ] ); - } - } ); - } - - // Per-property setup - propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); - if ( !( prop in dataShow ) ) { - dataShow[ prop ] = propTween.start; - if ( hidden ) { - propTween.end = propTween.start; - propTween.start = 0; - } - } - } -} - -function propFilter( props, specialEasing ) { - var index, name, easing, value, hooks; - - // camelCase, specialEasing and expand cssHook pass - for ( index in props ) { - name = camelCase( index ); - easing = specialEasing[ name ]; - value = props[ index ]; - if ( Array.isArray( value ) ) { - easing = value[ 1 ]; - value = props[ index ] = value[ 0 ]; - } - - if ( index !== name ) { - props[ name ] = value; - delete props[ index ]; - } - - hooks = jQuery.cssHooks[ name ]; - if ( hooks && "expand" in hooks ) { - value = hooks.expand( value ); - delete props[ name ]; - - // Not quite $.extend, this won't overwrite existing keys. - // Reusing 'index' because we have the correct "name" - for ( index in value ) { - if ( !( index in props ) ) { - props[ index ] = value[ index ]; - specialEasing[ index ] = easing; - } - } - } else { - specialEasing[ name ] = easing; - } - } -} - -function Animation( elem, properties, options ) { - var result, - stopped, - index = 0, - length = Animation.prefilters.length, - deferred = jQuery.Deferred().always( function() { - - // Don't match elem in the :animated selector - delete tick.elem; - } ), - tick = function() { - if ( stopped ) { - return false; - } - var currentTime = fxNow || createFxNow(), - remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - - // Support: Android 2.3 only - // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) - temp = remaining / animation.duration || 0, - percent = 1 - temp, - index = 0, - length = animation.tweens.length; - - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( percent ); - } - - deferred.notifyWith( elem, [ animation, percent, remaining ] ); - - // If there's more to do, yield - if ( percent < 1 && length ) { - return remaining; - } - - // If this was an empty animation, synthesize a final progress notification - if ( !length ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - } - - // Resolve the animation and report its conclusion - deferred.resolveWith( elem, [ animation ] ); - return false; - }, - animation = deferred.promise( { - elem: elem, - props: jQuery.extend( {}, properties ), - opts: jQuery.extend( true, { - specialEasing: {}, - easing: jQuery.easing._default - }, options ), - originalProperties: properties, - originalOptions: options, - startTime: fxNow || createFxNow(), - duration: options.duration, - tweens: [], - createTween: function( prop, end ) { - var tween = jQuery.Tween( elem, animation.opts, prop, end, - animation.opts.specialEasing[ prop ] || animation.opts.easing ); - animation.tweens.push( tween ); - return tween; - }, - stop: function( gotoEnd ) { - var index = 0, - - // If we are going to the end, we want to run all the tweens - // otherwise we skip this part - length = gotoEnd ? animation.tweens.length : 0; - if ( stopped ) { - return this; - } - stopped = true; - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( 1 ); - } - - // Resolve when we played the last frame; otherwise, reject - if ( gotoEnd ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - deferred.resolveWith( elem, [ animation, gotoEnd ] ); - } else { - deferred.rejectWith( elem, [ animation, gotoEnd ] ); - } - return this; - } - } ), - props = animation.props; - - propFilter( props, animation.opts.specialEasing ); - - for ( ; index < length; index++ ) { - result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); - if ( result ) { - if ( isFunction( result.stop ) ) { - jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = - result.stop.bind( result ); - } - return result; - } - } - - jQuery.map( props, createTween, animation ); - - if ( isFunction( animation.opts.start ) ) { - animation.opts.start.call( elem, animation ); - } - - // Attach callbacks from options - animation - .progress( animation.opts.progress ) - .done( animation.opts.done, animation.opts.complete ) - .fail( animation.opts.fail ) - .always( animation.opts.always ); - - jQuery.fx.timer( - jQuery.extend( tick, { - elem: elem, - anim: animation, - queue: animation.opts.queue - } ) - ); - - return animation; -} - -jQuery.Animation = jQuery.extend( Animation, { - - tweeners: { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ); - adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); - return tween; - } ] - }, - - tweener: function( props, callback ) { - if ( isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.match( rnothtmlwhite ); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length; index++ ) { - prop = props[ index ]; - Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; - Animation.tweeners[ prop ].unshift( callback ); - } - }, - - prefilters: [ defaultPrefilter ], - - prefilter: function( callback, prepend ) { - if ( prepend ) { - Animation.prefilters.unshift( callback ); - } else { - Animation.prefilters.push( callback ); - } - } -} ); - -jQuery.speed = function( speed, easing, fn ) { - var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || - isFunction( speed ) && speed, - duration: speed, - easing: fn && easing || easing && !isFunction( easing ) && easing - }; - - // Go to the end state if fx are off - if ( jQuery.fx.off ) { - opt.duration = 0; - - } else { - if ( typeof opt.duration !== "number" ) { - if ( opt.duration in jQuery.fx.speeds ) { - opt.duration = jQuery.fx.speeds[ opt.duration ]; - - } else { - opt.duration = jQuery.fx.speeds._default; - } - } - } - - // Normalize opt.queue - true/undefined/null -> "fx" - if ( opt.queue == null || opt.queue === true ) { - opt.queue = "fx"; - } - - // Queueing - opt.old = opt.complete; - - opt.complete = function() { - if ( isFunction( opt.old ) ) { - opt.old.call( this ); - } - - if ( opt.queue ) { - jQuery.dequeue( this, opt.queue ); - } - }; - - return opt; -}; - -jQuery.fn.extend( { - fadeTo: function( speed, to, easing, callback ) { - - // Show any hidden elements after setting opacity to 0 - return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() - - // Animate to the value specified - .end().animate( { opacity: to }, speed, easing, callback ); - }, - animate: function( prop, speed, easing, callback ) { - var empty = jQuery.isEmptyObject( prop ), - optall = jQuery.speed( speed, easing, callback ), - doAnimation = function() { - - // Operate on a copy of prop so per-property easing won't be lost - var anim = Animation( this, jQuery.extend( {}, prop ), optall ); - - // Empty animations, or finishing resolves immediately - if ( empty || dataPriv.get( this, "finish" ) ) { - anim.stop( true ); - } - }; - - doAnimation.finish = doAnimation; - - return empty || optall.queue === false ? - this.each( doAnimation ) : - this.queue( optall.queue, doAnimation ); - }, - stop: function( type, clearQueue, gotoEnd ) { - var stopQueue = function( hooks ) { - var stop = hooks.stop; - delete hooks.stop; - stop( gotoEnd ); - }; - - if ( typeof type !== "string" ) { - gotoEnd = clearQueue; - clearQueue = type; - type = undefined; - } - if ( clearQueue ) { - this.queue( type || "fx", [] ); - } - - return this.each( function() { - var dequeue = true, - index = type != null && type + "queueHooks", - timers = jQuery.timers, - data = dataPriv.get( this ); - - if ( index ) { - if ( data[ index ] && data[ index ].stop ) { - stopQueue( data[ index ] ); - } - } else { - for ( index in data ) { - if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { - stopQueue( data[ index ] ); - } - } - } - - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && - ( type == null || timers[ index ].queue === type ) ) { - - timers[ index ].anim.stop( gotoEnd ); - dequeue = false; - timers.splice( index, 1 ); - } - } - - // Start the next in the queue if the last step wasn't forced. - // Timers currently will call their complete callbacks, which - // will dequeue but only if they were gotoEnd. - if ( dequeue || !gotoEnd ) { - jQuery.dequeue( this, type ); - } - } ); - }, - finish: function( type ) { - if ( type !== false ) { - type = type || "fx"; - } - return this.each( function() { - var index, - data = dataPriv.get( this ), - queue = data[ type + "queue" ], - hooks = data[ type + "queueHooks" ], - timers = jQuery.timers, - length = queue ? queue.length : 0; - - // Enable finishing flag on private data - data.finish = true; - - // Empty the queue first - jQuery.queue( this, type, [] ); - - if ( hooks && hooks.stop ) { - hooks.stop.call( this, true ); - } - - // Look for any active animations, and finish them - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && timers[ index ].queue === type ) { - timers[ index ].anim.stop( true ); - timers.splice( index, 1 ); - } - } - - // Look for any animations in the old queue and finish them - for ( index = 0; index < length; index++ ) { - if ( queue[ index ] && queue[ index ].finish ) { - queue[ index ].finish.call( this ); - } - } - - // Turn off finishing flag - delete data.finish; - } ); - } -} ); - -jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) { - var cssFn = jQuery.fn[ name ]; - jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" ? - cssFn.apply( this, arguments ) : - this.animate( genFx( name, true ), speed, easing, callback ); - }; -} ); - -// Generate shortcuts for custom animations -jQuery.each( { - slideDown: genFx( "show" ), - slideUp: genFx( "hide" ), - slideToggle: genFx( "toggle" ), - fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" }, - fadeToggle: { opacity: "toggle" } -}, function( name, props ) { - jQuery.fn[ name ] = function( speed, easing, callback ) { - return this.animate( props, speed, easing, callback ); - }; -} ); - -jQuery.timers = []; -jQuery.fx.tick = function() { - var timer, - i = 0, - timers = jQuery.timers; - - fxNow = Date.now(); - - for ( ; i < timers.length; i++ ) { - timer = timers[ i ]; - - // Run the timer and safely remove it when done (allowing for external removal) - if ( !timer() && timers[ i ] === timer ) { - timers.splice( i--, 1 ); - } - } - - if ( !timers.length ) { - jQuery.fx.stop(); - } - fxNow = undefined; -}; - -jQuery.fx.timer = function( timer ) { - jQuery.timers.push( timer ); - jQuery.fx.start(); -}; - -jQuery.fx.interval = 13; -jQuery.fx.start = function() { - if ( inProgress ) { - return; - } - - inProgress = true; - schedule(); -}; - -jQuery.fx.stop = function() { - inProgress = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - - // Default speed - _default: 400 -}; - - -// Based off of the plugin by Clint Helfers, with permission. -// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ -jQuery.fn.delay = function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = window.setTimeout( next, time ); - hooks.stop = function() { - window.clearTimeout( timeout ); - }; - } ); -}; - - -( function() { - var input = document.createElement( "input" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - input.type = "checkbox"; - - // Support: Android <=4.3 only - // Default value for a checkbox should be "on" - support.checkOn = input.value !== ""; - - // Support: IE <=11 only - // Must access selectedIndex to make default options select - support.optSelected = opt.selected; - - // Support: IE <=11 only - // An input loses its value after becoming a radio - input = document.createElement( "input" ); - input.value = "t"; - input.type = "radio"; - support.radioValue = input.value === "t"; -} )(); - - -var boolHook, - attrHandle = jQuery.expr.attrHandle; - -jQuery.fn.extend( { - attr: function( name, value ) { - return access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each( function() { - jQuery.removeAttr( this, name ); - } ); - } -} ); - -jQuery.extend( { - attr: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set attributes on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === "undefined" ) { - return jQuery.prop( elem, name, value ); - } - - // Attribute hooks are determined by the lowercase version - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - hooks = jQuery.attrHooks[ name.toLowerCase() ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); - } - - if ( value !== undefined ) { - if ( value === null ) { - jQuery.removeAttr( elem, name ); - return; - } - - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - elem.setAttribute( name, value + "" ); - return value; - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? undefined : ret; - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !support.radioValue && value === "radio" && - nodeName( elem, "input" ) ) { - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - removeAttr: function( elem, value ) { - var name, - i = 0, - - // Attribute names can contain non-HTML whitespace characters - // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 - attrNames = value && value.match( rnothtmlwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( ( name = attrNames[ i++ ] ) ) { - elem.removeAttribute( name ); - } - } - } -} ); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else { - elem.setAttribute( name, name ); - } - return name; - } -}; - -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) { - var getter = attrHandle[ name ] || jQuery.find.attr; - - attrHandle[ name ] = function( elem, name, isXML ) { - var ret, handle, - lowercaseName = name.toLowerCase(); - - if ( !isXML ) { - - // Avoid an infinite loop by temporarily removing this function from the getter - handle = attrHandle[ lowercaseName ]; - attrHandle[ lowercaseName ] = ret; - ret = getter( elem, name, isXML ) != null ? - lowercaseName : - null; - attrHandle[ lowercaseName ] = handle; - } - return ret; - }; -} ); - - - - -var rfocusable = /^(?:input|select|textarea|button)$/i, - rclickable = /^(?:a|area)$/i; - -jQuery.fn.extend( { - prop: function( name, value ) { - return access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - return this.each( function() { - delete this[ jQuery.propFix[ name ] || name ]; - } ); - } -} ); - -jQuery.extend( { - prop: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set properties on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - return ( elem[ name ] = value ); - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - return elem[ name ]; - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - - // Support: IE <=9 - 11 only - // elem.tabIndex doesn't always return the - // correct value when it hasn't been explicitly set - // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - if ( tabindex ) { - return parseInt( tabindex, 10 ); - } - - if ( - rfocusable.test( elem.nodeName ) || - rclickable.test( elem.nodeName ) && - elem.href - ) { - return 0; - } - - return -1; - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - } -} ); - -// Support: IE <=11 only -// Accessing the selectedIndex property -// forces the browser to respect setting selected -// on the option -// The getter ensures a default option is selected -// when in an optgroup -// eslint rule "no-unused-expressions" is disabled for this code -// since it considers such accessions noop -if ( !support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent && parent.parentNode ) { - parent.parentNode.selectedIndex; - } - return null; - }, - set: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent ) { - parent.selectedIndex; - - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - } - }; -} - -jQuery.each( [ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -} ); - - - - - // Strip and collapse whitespace according to HTML spec - // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace - function stripAndCollapse( value ) { - var tokens = value.match( rnothtmlwhite ) || []; - return tokens.join( " " ); - } - - -function getClass( elem ) { - return elem.getAttribute && elem.getAttribute( "class" ) || ""; -} - -function classesToArray( value ) { - if ( Array.isArray( value ) ) { - return value; - } - if ( typeof value === "string" ) { - return value.match( rnothtmlwhite ) || []; - } - return []; -} - -jQuery.fn.extend( { - addClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( !arguments.length ) { - return this.attr( "class", "" ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) > -1 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value, - isValidValue = type === "string" || Array.isArray( value ); - - if ( typeof stateVal === "boolean" && isValidValue ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( isFunction( value ) ) { - return this.each( function( i ) { - jQuery( this ).toggleClass( - value.call( this, i, getClass( this ), stateVal ), - stateVal - ); - } ); - } - - return this.each( function() { - var className, i, self, classNames; - - if ( isValidValue ) { - - // Toggle individual class names - i = 0; - self = jQuery( this ); - classNames = classesToArray( value ); - - while ( ( className = classNames[ i++ ] ) ) { - - // Check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( value === undefined || type === "boolean" ) { - className = getClass( this ); - if ( className ) { - - // Store className if set - dataPriv.set( this, "__className__", className ); - } - - // If the element has a class name or if we're passed `false`, - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - if ( this.setAttribute ) { - this.setAttribute( "class", - className || value === false ? - "" : - dataPriv.get( this, "__className__" ) || "" - ); - } - } - } ); - }, - - hasClass: function( selector ) { - var className, elem, - i = 0; - - className = " " + selector + " "; - while ( ( elem = this[ i++ ] ) ) { - if ( elem.nodeType === 1 && - ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { - return true; - } - } - - return false; - } -} ); - - - - -var rreturn = /\r/g; - -jQuery.fn.extend( { - val: function( value ) { - var hooks, ret, valueIsFunction, - elem = this[ 0 ]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || - jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && - "get" in hooks && - ( ret = hooks.get( elem, "value" ) ) !== undefined - ) { - return ret; - } - - ret = elem.value; - - // Handle most common string cases - if ( typeof ret === "string" ) { - return ret.replace( rreturn, "" ); - } - - // Handle cases where value is null/undef or number - return ret == null ? "" : ret; - } - - return; - } - - valueIsFunction = isFunction( value ); - - return this.each( function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( valueIsFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - - } else if ( typeof val === "number" ) { - val += ""; - - } else if ( Array.isArray( val ) ) { - val = jQuery.map( val, function( value ) { - return value == null ? "" : value + ""; - } ); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - } ); - } -} ); - -jQuery.extend( { - valHooks: { - option: { - get: function( elem ) { - - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - - // Support: IE <=10 - 11 only - // option.text throws exceptions (#14686, #14858) - // Strip and collapse whitespace - // https://html.spec.whatwg.org/#strip-and-collapse-whitespace - stripAndCollapse( jQuery.text( elem ) ); - } - }, - select: { - get: function( elem ) { - var value, option, i, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one", - values = one ? null : [], - max = one ? index + 1 : options.length; - - if ( index < 0 ) { - i = max; - - } else { - i = one ? index : 0; - } - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // Support: IE <=9 only - // IE8-9 doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - - // Don't return options that are disabled or in a disabled optgroup - !option.disabled && - ( !option.parentNode.disabled || - !nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - - /* eslint-disable no-cond-assign */ - - if ( option.selected = - jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 - ) { - optionSet = true; - } - - /* eslint-enable no-cond-assign */ - } - - // Force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - } -} ); - -// Radios and checkboxes getter/setter -jQuery.each( [ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( Array.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); - } - } - }; - if ( !support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - return elem.getAttribute( "value" ) === null ? "on" : elem.value; - }; - } -} ); - - - - -// Return jQuery for attributes-only inclusion - - -support.focusin = "onfocusin" in window; - - -var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - stopPropagationCallback = function( e ) { - e.stopPropagation(); - }; - -jQuery.extend( jQuery.event, { - - trigger: function( event, data, elem, onlyHandlers ) { - - var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; - - cur = lastElement = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf( "." ) > -1 ) { - - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split( "." ); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf( ":" ) < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join( "." ); - event.rnamespace = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === ( elem.ownerDocument || document ) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { - lastElement = cur; - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( dataPriv.get( cur, "events" ) || Object.create( null ) )[ event.type ] && - dataPriv.get( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( ( !special._default || - special._default.apply( eventPath.pop(), data ) === false ) && - acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name as the event. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - - if ( event.isPropagationStopped() ) { - lastElement.addEventListener( type, stopPropagationCallback ); - } - - elem[ type ](); - - if ( event.isPropagationStopped() ) { - lastElement.removeEventListener( type, stopPropagationCallback ); - } - - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - // Piggyback on a donor event to simulate a different one - // Used only for `focus(in | out)` events - simulate: function( type, elem, event ) { - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true - } - ); - - jQuery.event.trigger( e, null, elem ); - } - -} ); - -jQuery.fn.extend( { - - trigger: function( type, data ) { - return this.each( function() { - jQuery.event.trigger( type, data, this ); - } ); - }, - triggerHandler: function( type, data ) { - var elem = this[ 0 ]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -} ); - - -// Support: Firefox <=44 -// Firefox doesn't have focus(in | out) events -// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 -// -// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 -// focus(in | out) events fire after focus & blur events, -// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order -// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 -if ( !support.focusin ) { - jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - - // Handle: regular nodes (via `this.ownerDocument`), window - // (via `this.document`) & document (via `this`). - var doc = this.ownerDocument || this.document || this, - attaches = dataPriv.access( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this.document || this, - attaches = dataPriv.access( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - dataPriv.remove( doc, fix ); - - } else { - dataPriv.access( doc, fix, attaches ); - } - } - }; - } ); -} -var location = window.location; - -var nonce = { guid: Date.now() }; - -var rquery = ( /\?/ ); - - - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml, parserErrorElem; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE 9 - 11 only - // IE throws on parseFromString with invalid input. - try { - xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); - } catch ( e ) {} - - parserErrorElem = xml && xml.getElementsByTagName( "parsererror" )[ 0 ]; - if ( !xml || parserErrorElem ) { - jQuery.error( "Invalid XML: " + ( - parserErrorElem ? - jQuery.map( parserErrorElem.childNodes, function( el ) { - return el.textContent; - } ).join( "\n" ) : - data - ) ); - } - return xml; -}; - - -var - rbracket = /\[\]$/, - rCRLF = /\r?\n/g, - rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, - rsubmittable = /^(?:input|select|textarea|keygen)/i; - -function buildParams( prefix, obj, traditional, add ) { - var name; - - if ( Array.isArray( obj ) ) { - - // Serialize array item. - jQuery.each( obj, function( i, v ) { - if ( traditional || rbracket.test( prefix ) ) { - - // Treat each array item as a scalar. - add( prefix, v ); - - } else { - - // Item is non-scalar (array or object), encode its numeric index. - buildParams( - prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", - v, - traditional, - add - ); - } - } ); - - } else if ( !traditional && toType( obj ) === "object" ) { - - // Serialize object item. - for ( name in obj ) { - buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); - } - - } else { - - // Serialize scalar item. - add( prefix, obj ); - } -} - -// Serialize an array of form elements or a set of -// key/values into a query string -jQuery.param = function( a, traditional ) { - var prefix, - s = [], - add = function( key, valueOrFunction ) { - - // If value is a function, invoke it and use its return value - var value = isFunction( valueOrFunction ) ? - valueOrFunction() : - valueOrFunction; - - s[ s.length ] = encodeURIComponent( key ) + "=" + - encodeURIComponent( value == null ? "" : value ); - }; - - if ( a == null ) { - return ""; - } - - // If an array was passed in, assume that it is an array of form elements. - if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { - - // Serialize the form elements - jQuery.each( a, function() { - add( this.name, this.value ); - } ); - - } else { - - // If traditional, encode the "old" way (the way 1.3.2 or older - // did it), otherwise encode params recursively. - for ( prefix in a ) { - buildParams( prefix, a[ prefix ], traditional, add ); - } - } - - // Return the resulting serialization - return s.join( "&" ); -}; - -jQuery.fn.extend( { - serialize: function() { - return jQuery.param( this.serializeArray() ); - }, - serializeArray: function() { - return this.map( function() { - - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); - return elements ? jQuery.makeArray( elements ) : this; - } ).filter( function() { - var type = this.type; - - // Use .is( ":disabled" ) so that fieldset[disabled] works - return this.name && !jQuery( this ).is( ":disabled" ) && - rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && - ( this.checked || !rcheckableType.test( type ) ); - } ).map( function( _i, elem ) { - var val = jQuery( this ).val(); - - if ( val == null ) { - return null; - } - - if ( Array.isArray( val ) ) { - return jQuery.map( val, function( val ) { - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ); - } - - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ).get(); - } -} ); - - -var - r20 = /%20/g, - rhash = /#.*$/, - rantiCache = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - - // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Anchor tag for parsing the document origin - originAnchor = document.createElement( "a" ); - -originAnchor.href = location.href; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; - - if ( isFunction( func ) ) { - - // For each dataType in the dataTypeExpression - while ( ( dataType = dataTypes[ i++ ] ) ) { - - // Prepend if requested - if ( dataType[ 0 ] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); - - // Otherwise append - } else { - ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && - !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - } ); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes #9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { - state: "parsererror", - error: conv ? e : "No conversion from " + prev + " to " + current - }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend( { - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: location.href, - type: "GET", - isLocal: rlocalProtocol.test( location.protocol ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /\bxml\b/, - html: /\bhtml/, - json: /\bjson\b/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": JSON.parse, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - - // URL without anti-cache param - cacheURL, - - // Response headers - responseHeadersString, - responseHeaders, - - // timeout handle - timeoutTimer, - - // Url cleanup var - urlAnchor, - - // Request state (becomes false upon send and true upon completion) - completed, - - // To know if global events are to be dispatched - fireGlobals, - - // Loop variable - i, - - // uncached part of the url - uncached, - - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - - // Callbacks context - callbackContext = s.context || s, - - // Context for global events is callbackContext if it is a DOM node or jQuery collection - globalEventContext = s.context && - ( callbackContext.nodeType || callbackContext.jquery ) ? - jQuery( callbackContext ) : - jQuery.event, - - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks( "once memory" ), - - // Status-dependent callbacks - statusCode = s.statusCode || {}, - - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - - // Default abort message - strAbort = "canceled", - - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( completed ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( ( match = rheaders.exec( responseHeadersString ) ) ) { - responseHeaders[ match[ 1 ].toLowerCase() + " " ] = - ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) - .concat( match[ 2 ] ); - } - } - match = responseHeaders[ key.toLowerCase() + " " ]; - } - return match == null ? null : match.join( ", " ); - }, - - // Raw string - getAllResponseHeaders: function() { - return completed ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - if ( completed == null ) { - name = requestHeadersNames[ name.toLowerCase() ] = - requestHeadersNames[ name.toLowerCase() ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( completed == null ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( completed ) { - - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } else { - - // Lazy-add the new callbacks in a way that preserves old ones - for ( code in map ) { - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ); - - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || location.href ) + "" ) - .replace( rprotocol, location.protocol + "//" ); - - // Alias method option to type as per ticket #12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; - - // A cross-domain request is in order when the origin doesn't match the current origin. - if ( s.crossDomain == null ) { - urlAnchor = document.createElement( "a" ); - - // Support: IE <=8 - 11, Edge 12 - 15 - // IE throws exception on accessing the href property if url is malformed, - // e.g. http://example.com:80x/ - try { - urlAnchor.href = s.url; - - // Support: IE <=8 - 11 only - // Anchor's host property isn't correctly set when s.url is relative - urlAnchor.href = urlAnchor.href; - s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== - urlAnchor.protocol + "//" + urlAnchor.host; - } catch ( e ) { - - // If there is an error parsing the URL, assume it is crossDomain, - // it can be rejected by the transport if it is invalid - s.crossDomain = true; - } - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( completed ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger( "ajaxStart" ); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - // Remove hash to simplify url manipulation - cacheURL = s.url.replace( rhash, "" ); - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // Remember the hash so we can put it back - uncached = s.url.slice( cacheURL.length ); - - // If data is available and should be processed, append data to url - if ( s.data && ( s.processData || typeof s.data === "string" ) ) { - cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - - // #9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add or update anti-cache param if needed - if ( s.cache === false ) { - cacheURL = cacheURL.replace( rantiCache, "$1" ); - uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) + - uncached; - } - - // Put hash and anti-cache on the URL that will be requested (gh-1732) - s.url = cacheURL + uncached; - - // Change '%20' to '+' if this is encoded form body content (gh-2658) - } else if ( s.data && s.processData && - ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { - s.data = s.data.replace( r20, "+" ); - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? - s.accepts[ s.dataTypes[ 0 ] ] + - ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && - ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { - - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - completeDeferred.add( s.complete ); - jqXHR.done( s.success ); - jqXHR.fail( s.error ); - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - - // If request was aborted inside ajaxSend, stop there - if ( completed ) { - return jqXHR; - } - - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = window.setTimeout( function() { - jqXHR.abort( "timeout" ); - }, s.timeout ); - } - - try { - completed = false; - transport.send( requestHeaders, done ); - } catch ( e ) { - - // Rethrow post-completion exceptions - if ( completed ) { - throw e; - } - - // Propagate others as results - done( -1, e ); - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Ignore repeat invocations - if ( completed ) { - return; - } - - completed = true; - - // Clear timeout if it exists - if ( timeoutTimer ) { - window.clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Use a noop converter for missing script but not if jsonp - if ( !isSuccess && - jQuery.inArray( "script", s.dataTypes ) > -1 && - jQuery.inArray( "json", s.dataTypes ) < 0 ) { - s.converters[ "text script" ] = function() {}; - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader( "Last-Modified" ); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader( "etag" ); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger( "ajaxStop" ); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -} ); - -jQuery.each( [ "get", "post" ], function( _i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - - // Shift arguments if data argument was omitted - if ( isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - // The url can be an options object (which then must have .url) - return jQuery.ajax( jQuery.extend( { - url: url, - type: method, - dataType: type, - data: data, - success: callback - }, jQuery.isPlainObject( url ) && url ) ); - }; -} ); - -jQuery.ajaxPrefilter( function( s ) { - var i; - for ( i in s.headers ) { - if ( i.toLowerCase() === "content-type" ) { - s.contentType = s.headers[ i ] || ""; - } - } -} ); - - -jQuery._evalUrl = function( url, options, doc ) { - return jQuery.ajax( { - url: url, - - // Make this explicit, since user can override this through ajaxSetup (#11264) - type: "GET", - dataType: "script", - cache: true, - async: false, - global: false, - - // Only evaluate the response if it is successful (gh-4126) - // dataFilter is not invoked for failure responses, so using it instead - // of the default converter is kludgy but it works. - converters: { - "text script": function() {} - }, - dataFilter: function( response ) { - jQuery.globalEval( response, options, doc ); - } - } ); -}; - - -jQuery.fn.extend( { - wrapAll: function( html ) { - var wrap; - - if ( this[ 0 ] ) { - if ( isFunction( html ) ) { - html = html.call( this[ 0 ] ); - } - - // The elements to wrap the target around - wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); - - if ( this[ 0 ].parentNode ) { - wrap.insertBefore( this[ 0 ] ); - } - - wrap.map( function() { - var elem = this; - - while ( elem.firstElementChild ) { - elem = elem.firstElementChild; - } - - return elem; - } ).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( isFunction( html ) ) { - return this.each( function( i ) { - jQuery( this ).wrapInner( html.call( this, i ) ); - } ); - } - - return this.each( function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - } ); - }, - - wrap: function( html ) { - var htmlIsFunction = isFunction( html ); - - return this.each( function( i ) { - jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); - } ); - }, - - unwrap: function( selector ) { - this.parent( selector ).not( "body" ).each( function() { - jQuery( this ).replaceWith( this.childNodes ); - } ); - return this; - } -} ); - - -jQuery.expr.pseudos.hidden = function( elem ) { - return !jQuery.expr.pseudos.visible( elem ); -}; -jQuery.expr.pseudos.visible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); -}; - - - - -jQuery.ajaxSettings.xhr = function() { - try { - return new window.XMLHttpRequest(); - } catch ( e ) {} -}; - -var xhrSuccessStatus = { - - // File protocol always yields status code 0, assume 200 - 0: 200, - - // Support: IE <=9 only - // #1450: sometimes IE returns 1223 when it should be 204 - 1223: 204 - }, - xhrSupported = jQuery.ajaxSettings.xhr(); - -support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); -support.ajax = xhrSupported = !!xhrSupported; - -jQuery.ajaxTransport( function( options ) { - var callback, errorCallback; - - // Cross domain only allowed if supported through XMLHttpRequest - if ( support.cors || xhrSupported && !options.crossDomain ) { - return { - send: function( headers, complete ) { - var i, - xhr = options.xhr(); - - xhr.open( - options.type, - options.url, - options.async, - options.username, - options.password - ); - - // Apply custom fields if provided - if ( options.xhrFields ) { - for ( i in options.xhrFields ) { - xhr[ i ] = options.xhrFields[ i ]; - } - } - - // Override mime type if needed - if ( options.mimeType && xhr.overrideMimeType ) { - xhr.overrideMimeType( options.mimeType ); - } - - // X-Requested-With header - // For cross-domain requests, seeing as conditions for a preflight are - // akin to a jigsaw puzzle, we simply never set it to be sure. - // (it can always be set on a per-request basis or even using ajaxSetup) - // For same-domain requests, won't change header if already provided. - if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { - headers[ "X-Requested-With" ] = "XMLHttpRequest"; - } - - // Set headers - for ( i in headers ) { - xhr.setRequestHeader( i, headers[ i ] ); - } - - // Callback - callback = function( type ) { - return function() { - if ( callback ) { - callback = errorCallback = xhr.onload = - xhr.onerror = xhr.onabort = xhr.ontimeout = - xhr.onreadystatechange = null; - - if ( type === "abort" ) { - xhr.abort(); - } else if ( type === "error" ) { - - // Support: IE <=9 only - // On a manual native abort, IE9 throws - // errors on any property access that is not readyState - if ( typeof xhr.status !== "number" ) { - complete( 0, "error" ); - } else { - complete( - - // File: protocol always yields status 0; see #8605, #14207 - xhr.status, - xhr.statusText - ); - } - } else { - complete( - xhrSuccessStatus[ xhr.status ] || xhr.status, - xhr.statusText, - - // Support: IE <=9 only - // IE9 has no XHR2 but throws on binary (trac-11426) - // For XHR2 non-text, let the caller handle it (gh-2498) - ( xhr.responseType || "text" ) !== "text" || - typeof xhr.responseText !== "string" ? - { binary: xhr.response } : - { text: xhr.responseText }, - xhr.getAllResponseHeaders() - ); - } - } - }; - }; - - // Listen to events - xhr.onload = callback(); - errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); - - // Support: IE 9 only - // Use onreadystatechange to replace onabort - // to handle uncaught aborts - if ( xhr.onabort !== undefined ) { - xhr.onabort = errorCallback; - } else { - xhr.onreadystatechange = function() { - - // Check readyState before timeout as it changes - if ( xhr.readyState === 4 ) { - - // Allow onerror to be called first, - // but that will not handle a native abort - // Also, save errorCallback to a variable - // as xhr.onerror cannot be accessed - window.setTimeout( function() { - if ( callback ) { - errorCallback(); - } - } ); - } - }; - } - - // Create the abort callback - callback = callback( "abort" ); - - try { - - // Do send the request (this may raise an exception) - xhr.send( options.hasContent && options.data || null ); - } catch ( e ) { - - // #14683: Only rethrow if this hasn't been notified as an error yet - if ( callback ) { - throw e; - } - } - }, - - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -} ); - - - - -// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -jQuery.ajaxPrefilter( function( s ) { - if ( s.crossDomain ) { - s.contents.script = false; - } -} ); - -// Install script dataType -jQuery.ajaxSetup( { - accepts: { - script: "text/javascript, application/javascript, " + - "application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -} ); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -} ); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - - // This transport only deals with cross domain or forced-by-attrs requests - if ( s.crossDomain || s.scriptAttrs ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery( " - - - - - - - - - - - -
-
-
-
- - -

Index

- -
- _ - | A - | C - | D - | F - | G - | I - | L - | M - | O - | P - | R - | S - -
-

_

- - -
- -

A

- - - -
- -

C

- - -
- -

D

- - -
- -

F

- - -
- -

G

- - - -
- -

I

- - - -
- -

L

- - -
- -

M

- - - -
- -

O

- - -
- -

P

- - - -
    -
  • - pyspike.psth - -
  • -
  • - pyspike.spike_directionality - -
  • -
  • - pyspike.spike_distance - -
  • -
  • - pyspike.spike_sync - -
  • -
  • - pyspike.spikes - -
  • -
  • - pyspike.SpikeTrain - -
  • -
- -

R

- - - -
- -

S

- - - -
- - - -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/index.html b/doc/_build/html/index.html deleted file mode 100644 index 038977c..0000000 --- a/doc/_build/html/index.html +++ /dev/null @@ -1,574 +0,0 @@ - - - - - - - - - PySpike — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - - -
-
-
-
- -
-

PySpike

-https://badge.fury.io/py/pyspike.png -https://travis-ci.org/mariomulansky/PySpike.svg?branch=master -

PySpike is a Python library for the numerical analysis of spike train similarity. -Its core functionality is the implementation of the ISI-distance [1] and SPIKE-distance [2], SPIKE-Synchronization [3], as well as their adaptive generalizations [4]. -It provides functions to compute multivariate profiles, distance matrices, as well as averaging and general spike train processing. -All computation intensive parts are implemented in C via cython to reach a competitive performance (factor 100-200 over plain Python).

-

PySpike provides the same fundamental functionality as the SPIKY framework for Matlab, which additionally contains spike-train generators, more spike train distance measures and many visualization routines.

-

All source codes are available on Github and are published under the BSD_License.

-
-

Citing PySpike

-
-
If you use PySpike in your research, please cite our SoftwareX publication on PySpike:

Mario Mulansky, Thomas Kreuz, PySpike - A Python library for analyzing spike train synchrony, Software X 5, 183 (2016) [pdf]

-
-
-

Additionally, depending on the used methods: ISI-distance [1], SPIKE-distance [2], SPIKE-Synchronization [3], or their adaptive generalizations [4], please cite one or more of the following publications:

- -
-
-

Important Changelog

-

With version 0.8.0, Adaptive and Rate Independent algorithms are supported.

-

With version 0.7.0, support for Python 2 was dropped, PySpike now officially supports -Python 3.7, 3.8, 3.9, 3.10.

-

With version 0.6.0, the spike directionality and spike train order function have been added.

-

With version 0.5.0, the interfaces have been unified and the specific functions for multivariate computations have become deprecated.

-

With version 0.2.0, the SpikeTrain class has been introduced to represent spike trains. -This is a breaking change in the function interfaces. -Hence, programs written for older versions of PySpike (0.1.x) will not run with newer versions.

-
-
-

Requirements and Installation

-

PySpike is available at Python Package Index and this is the easiest way to obtain the PySpike package. -If you have pip installed, just run

-
sudo pip install pyspike
-
-
-

to install pyspike. -PySpike requires numpy as minimal requirement, as well as a C compiler to generate the binaries.

-
-

Install from Github sources

-

You can also obtain the latest PySpike developer version from the github repository. -For that, make sure you have the following Python libraries installed:

-
    -
  • numpy

  • -
  • cython

  • -
  • matplotlib (for the examples)

  • -
  • pytest (for running the tests)

  • -
  • scipy (also for the tests)

  • -
-

In particular, make sure that cython is configured properly and able to locate a C compiler, otherwise PySpike will use the much slower Python implementations.

-

To install PySpike, simply download the source, e.g. from Github, and run the setup.py script:

-
git clone https://github.com/mariomulansky/PySpike.git
-cd PySpike
-python setup.py build_ext --inplace
-
-
-

Then you can run the tests using the pytest test framework:

-
pytest
-
-
-

Finally, you should make PySpike’s installation folder known to Python to be able to import pyspike in your own projects. -Therefore, add your /path/to/PySpike to the $PYTHONPATH environment variable.

-
-
-
-

Examples

-

The following code loads some exemplary spike trains, computes the dissimilarity profile of the ISI-distance of the first two SpikeTrain objects, and plots it with matplotlib:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-isi_profile = spk.isi_profile(spike_trains[0], spike_trains[1])
-x, y = isi_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("ISI distance: %.8f" % isi_profile.avrg())
-plt.show()
-
-
-

The following example computes the multivariate ISI-, SPIKE- and SPIKE-Sync-profile for a list of spike trains loaded from a text file:

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-avrg_isi_profile = spk.isi_profile(spike_trains)
-avrg_spike_profile = spk.spike_profile(spike_trains)
-avrg_spike_sync_profile = spk.spike_sync_profile(spike_trains)
-
-
-

More examples with detailed descriptions can be found in the tutorial section.

-
-

The work on PySpike was supported by the European Comission through the Marie -Curie Initial Training Network Neural Engineering Transformative Technologies -(NETT) under the project number 289146.

-
-
Python/C Programming:
    -
  • Mario Mulansky

  • -
  • Edmund J Butler

  • -
-
-
Scientific Methods:
    -
  • Thomas Kreuz

  • -
  • Daniel Chicharro

  • -
  • Conor Houghton

  • -
  • Nebojsa Bozanic

  • -
  • Mario Mulansky

  • -
-
-
-
-
-
-

Tutorial

-
-

Spike trains

-

In PySpike, spike trains are represented by SpikeTrain objects. -A SpikeTrain object consists of the spike times given as numpy arrays as well as the edges of the spike train as [t_start, t_end]. -The following code creates such a spike train with some arbitrary spike times:

-
import numpy as np
-from pyspike import SpikeTrain
-
-spike_train = SpikeTrain(np.array([0.1, 0.3, 0.45, 0.6, 0.9], [0.0, 1.0]))
-
-
-
-

Loading from text files

-

Typically, spike train data is loaded into PySpike from data files. -The most straight-forward data files are text files where each line represents one spike train given as an sequence of spike times. -An exemplary file with several spike trains is PySpike_testdata.txt. -To quickly obtain spike trains from such files, PySpike provides the function load_spike_trains_from_txt().

-
import numpy as np
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("SPIKY_testdata.txt",
-                                              edges=(0, 4000))
-
-
-

This function expects the name of the data file as first parameter. -Furthermore, the time interval of the spike train measurement (edges of the spike trains) should be provided as a pair of start- and end-time values. -Furthermore, the spike trains are sorted via np.sort (disable this feature by providing is_sorted=True as a parameter to the load function). -As result, load_spike_trains_from_txt() returns a list of arrays containing the spike trains in the text file.

-

Important note:

-
-

Spike trains are expected to be sorted! -For performance reasons, the PySpike distance functions do not check if the spike trains provided are indeed sorted. -Make sure that all your spike trains are sorted, which is ensured if you use the load_spike_trains_from_txt() function with the parameter is_sorted=False (default). -If in doubt, use SpikeTrain.sort() to ensure a correctly sorted spike train.

-

Alternatively the function reconcile_spike_trains() applies three fixes to a list of SpikeTrain objects. It sorts -the times, it removes all but one of any duplicated time, and it ensures all t_start and t_end values are compatible

-
from pyspike.spikes import reconcile_spike_trains
-spike_trains = reconcile_spike_trains(spike_trains)
-
-
-

If you need to copy a spike train, use the SpikeTrain.copy() method. -Simple assignment t2 = t1 does not create a copy of the spike train data, but a reference as numpy.array is used for storing the data.

-
-
-
-

PySpike algorithms

-

PySpike supports four basic algorithms for comparing spike trains and their adaptive generalizations

-

The basic algorithms are:

-
    -
  1. ISI-distance (Inter Spike Intervals)

  2. -
  3. SPIKE-distance

  4. -
  5. Rate-Independent SPIKE-distance (RI-SPIKE)

  6. -
  7. SPIKE sychronization

  8. -
-

plus

-

(5-8) Adaptive generalizations of 1-4 based on the MRTS (Minimum Relevant Time Scale) parameter

-

Algorithms 3 and 5-8 are new in version 0.8.0.

-
-

ISI-distance

-

The following code loads some exemplary spike trains, computes the dissimilarity profile of the ISI-distance of the first two SpikeTrain s, and plots it with matplotlib:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-isi_profile = spk.isi_profile(spike_trains[0], spike_trains[1])
-x, y = isi_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("ISI distance: %.8f" % isi_profile.avrg())
-plt.show()
-
-
-

The ISI-profile is a piece-wise constant function, and hence the function isi_profile() returns an instance of the PieceWiseConstFunc class. -As shown above, this class allows you to obtain arrays that can be used to plot the function with plt.plt, but also to compute the time average, which amounts to the final scalar ISI-distance. -By default, the time average is computed for the whole PieceWiseConstFunc function. -However, it is also possible to obtain the average of a specific interval by providing a pair of floats defining the start and end of the interval. -For the above example, the following code computes the ISI-distances obtained from averaging the ISI-profile over four different intervals:

-
isi1 = isi_profile.avrg(interval=(0, 1000))
-isi2 = isi_profile.avrg(interval=(1000, 2000))
-isi3 = isi_profile.avrg(interval=[(0, 1000), (2000, 3000)])
-isi4 = isi_profile.avrg(interval=[(1000, 2000), (3000, 4000)])
-
-
-

Note, how also multiple intervals can be supplied by giving a list of tuples.

-

If you are only interested in the scalar ISI-distance and not the profile, you can simply use:

-
isi_dist = spk.isi_distance(spike_trains[0], spike_trains[1], interval=(0, 1000))
-
-
-

where interval is optional, as above, and if omitted the ISI-distance is computed for the complete spike train.

-
-
-

SPIKE-distance

-

To compute for the spike distance profile you use the function spike_profile() instead of isi_profile above. -But the general approach is very similar:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-spike_profile = spk.spike_profile(spike_trains[0], spike_trains[1])
-x, y = spike_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("SPIKE distance: %.8f" % spike_profile.avrg())
-plt.show()
-
-
-

This short example computes and plots the SPIKE-profile of the first two spike trains in the file PySpike_testdata.txt.

-

In contrast to the ISI-profile, a SPIKE-profile is a piece-wise linear function and is therefore represented by a PieceWiseLinFunc object. -Just like the PieceWiseConstFunc for the ISI-profile, the PieceWiseLinFunc provides a PieceWiseLinFunc.get_plottable_data() member function that returns arrays that can be used directly to plot the function. -Furthermore, the PieceWiseLinFunc.avrg() member function returns the average of the profile defined as the overall SPIKE distance. -As above, you can provide an interval as a pair of floats as well as a sequence of such pairs to avrg to specify the averaging interval if required.

-

Again, you can use:

-
spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], interval=ival)
-
-
-

to compute the SPIKE distance directly, if you are not interested in the profile at all. -The parameter interval is optional and if neglected the whole time interval is used.

-
-
-

Rate-Independent SPIKE-distance

-

This variant of the SPIKE-distance disregards any differences in base rates and focuses purely on spike timing. -It can be calculated by setting the optional parameter “RI=True”:

-
ri_spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], RI=True)
-
-
-
-
-

SPIKE synchronization

-

Important note:

-
-
-

SPIKE-Synchronization measures similarity. -That means, a value of zero indicates absence of synchrony, while a value of one denotes the presence of synchrony. -This is exactly opposite to the other two measures: ISI- and SPIKE-distance.

-
-
-

SPIKE synchronization is another approach to measure spike synchrony. -In contrast to the SPIKE- and ISI-distance, it measures similarity instead of dissimilarity, i.e. higher values represent larger synchrony. -Another difference is that the SPIKE synchronization profile is only defined exactly at the spike times, not for the whole interval of the spike trains. -Therefore, it is represented by a DiscreteFunction.

-

To compute for the spike synchronization profile, PySpike provides the function spike_sync_profile(). -The general handling of the profile, however, is similar to the other profiles above:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-spike_profile = spk.spike_sync_profile(spike_trains[0], spike_trains[1])
-x, y = spike_profile.get_plottable_data()
-
-
-

For the direct computation of the overall spike synchronization value within some interval, the spike_sync() function can be used:

-
spike_sync = spk.spike_sync(spike_trains[0], spike_trains[1], interval=ival)
-
-
-
-
-

Adaptive generalizations

-

The adaptive generalizations for all four of these basic measures can be calculated by setting the optional parameter “MRTS=<value>” (MRTS - Minimum Relevant Time Scale). -If <value> is greater than zero the respective basic algorithm is modified to reduce emphasis on smaller spike time differences. -If MRTS is set to ‘auto’, the threshold is automatically extracted from the data.

-

Here are a few example lines:

-
a_isi_dist = spk.isi_distance(spike_trains, MRTS=10)
-
-a_spike_profile = spk.spike_profile(spike_trains, MRTS=20)
-
-a_ri_spike_matrix = spk.spike_distance_matrix(spike_trains[0], spike_trains[1], RI=True, MRTS=50)
-
-a_spike_sync_auto = spk.spike_sync(spike_trains[0], spike_trains[1], MRTS='auto')
-
-
-
-
-
-

Computing multivariate profiles and distances

-

To compute the multivariate ISI-profile, SPIKE-profile or SPIKE-Synchronization profile for a set of spike trains, simply provide a list of spike trains to the profile or distance functions. -The following example computes the multivariate ISI-, SPIKE- and SPIKE-Sync-profile for a list of spike trains:

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-avrg_isi_profile = spk.isi_profile(spike_trains)
-avrg_spike_profile = spk.spike_profile(spike_trains)
-avrg_spike_sync_profile = spk.spike_sync_profile(spike_trains)
-
-
-

All functions also take an optional parameter indices, a list of indices that allows to define the spike trains that should be used for the multivariate profile. -As before, if you are only interested in the distance values, and not in the profile, you can call the functions: isi_distance(), spike_distance() and spike_sync() with a list of spike trains. -They return the scalar overall multivariate ISI-, SPIKE-distance or the SPIKE-Synchronization value.

-

The following code is equivalent to the bivariate example above, computing the ISI-Distance between the first two spike trains in the given interval using the indices parameter:

-
isi_dist = spk.isi_distance(spike_trains, indices=[0, 1], interval=(0, 1000))
-
-
-

As you can see, the distance functions also accept an interval parameter that can be used to specify the begin and end of the averaging interval as a pair of floats, if neglected the complete interval is used.

-

Note:

-
-
-

Instead of providing lists of spike trains to the profile or distance functions, you can also call those functions with many spike trains as (unnamed) parameters, e.g.:

-
# st1, st2, st3, st4 are spike trains
-spike_prof = spk.spike_profile(st1, st2, st3, st4)
-
-
-
-
-

Another option to characterize large sets of spike trains are distance matrices. -Each entry in the distance matrix represents a bivariate distance (similarity for SPIKE-Synchronization) of two spike trains. -The distance matrix is symmetric and has zero values (ones) at the diagonal and is computed with the functions isi_distance_matrix(), spike_distance_matrix() and spike_sync_matrix(). -The following example computes and plots the ISI- and SPIKE-distance matrix as well as the SPIKE-Synchronization-matrix, with different intervals.

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", 4000)
-
-plt.figure()
-isi_distance = spk.isi_distance_matrix(spike_trains)
-plt.imshow(isi_distance, interpolation='none')
-plt.title("ISI-distance")
-
-plt.figure()
-spike_distance = spk.spike_distance_matrix(spike_trains, interval=(0,1000))
-plt.imshow(spike_distance, interpolation='none')
-plt.title("SPIKE-distance")
-
-plt.figure()
-spike_sync = spk.spike_sync_matrix(spike_trains, interval=(2000,4000))
-plt.imshow(spike_sync, interpolation='none')
-plt.title("SPIKE-Sync")
-
-plt.show()
-
-
-
-
-

Quantifying Leaders and Followers: Spike Train Order

-

PySpike provides functionality to quantify how much a set of spike trains -resembles a synfire pattern (ie perfect leader-follower pattern). For details -on the algorithms please see -our article in NJP.

-

The following example computes the Spike Order profile and Synfire Indicator -of two Poissonian spike trains.

-
import numpy as np
-from matplotlib import pyplot as plt
-import pyspike as spk
-
-
-st1 = spk.generate_poisson_spikes(1.0, [0, 20])
-st2 = spk.generate_poisson_spikes(1.0, [0, 20])
-
-d = spk.spike_directionality(st1, st2)
-
-print "Spike Directionality of two Poissonian spike trains:", d
-
-E = spk.spike_train_order_profile(st1, st2)
-
-plt.figure()
-x, y = E.get_plottable_data()
-plt.plot(x, y, '-ob')
-plt.ylim(-1.1, 1.1)
-plt.xlabel("t")
-plt.ylabel("E")
-plt.title("Spike Train Order Profile")
-
-plt.show()
-
-
-

Additionally, PySpike can also compute the optimal ordering of the spike trains, -ie the ordering that most resembles a synfire pattern. The following example -computes the optimal order of a set of 20 Poissonian spike trains:

-
M = 20
-spike_trains = [spk.generate_poisson_spikes(1.0, [0, 100]) for m in xrange(M)]
-
-F_init = spk.spike_train_order(spike_trains)
-print "Initial Synfire Indicator for 20 Poissonian spike trains:", F_init
-
-D_init = spk.spike_directionality_matrix(spike_trains)
-phi, _ = spk.optimal_spike_train_sorting(spike_trains)
-F_opt = spk.spike_train_order(spike_trains, indices=phi)
-print "Synfire Indicator of optimized spike train sorting:", F_opt
-
-D_opt = spk.permutate_matrix(D_init, phi)
-
-plt.figure()
-plt.imshow(D_init)
-plt.title("Initial Directionality Matrix")
-
-plt.figure()
-plt.imshow(D_opt)
-plt.title("Optimized Directionality Matrix")
-
-plt.show()
-
-
-
-
-
-

Reference

- -
-
-

Indices and tables

- -
- - -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/objects.inv b/doc/_build/html/objects.inv deleted file mode 100644 index d4ef9be121d15513a68bf138aabcd1491dcddce8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 857 zcmV-f1E%~VAX9K?X>NERX>N99Zgg*Qc_4OWa&u{KZXhxWBOp+6Z)#;@bUGkVc~fv{ zYh?-}AXa5^b7^mGIv_AEI0_>mRA^-&a%F8{X>Md?av*PJAarPHb0B7EY-J#6b0A}H zZE$jBb8}^6Aa!$TZf78RY-wUH3V7PJm%)zPAP|P{c?wJIHCFe!*H)D(wNj+5)FWc; zSqCi!3gc+~_QiIxaT3!o;JsKjp8o@e`3*L`GvXD>Z^Bg;5WaV+Dop>_>bjFqeDU{F zz#d!qX=>emF18!9AiSYek~>#CTtcGMC1XMfWNaJ^;9l2h9A4Mi2-#|f4E}apX0r~q z$z@d9^tp@%kQu2F`LhI8bL6>1p%5CIpP{ys%vD@+n?T|Ru)G0gtbP%`em&vEx1-SN ze~g`g3jPQOU$t^b_Q0(?K)maRC=$^dam;9+MB>PviR4E6Cyp2Ir8r)yuj1%5kHs;m zetSp!6e`^*NAV&p-X$SQszZW2x;w(CbZ3N_bXNpf362P|vfU6QCpsa>qq^W}xc;_W zC{q2OWmkl|HNU7N*7-6ce!-XZ!y=FG9aCB{XbooZoVFOJ7f!HRIOM7V(lX42H@$&*J$VjPqy##ziBB%x1zy*m2@Y{!0)vzY3 zL#Wl_O2-dZ2-FElneT#QUY&R1{gb4x7NKf*D;(C3l0SniwhzUrb&M;147ZzeSgore zXcn>S$N#yFugV3Q>9?mBQ~0l`q$lp|?H$>!_dkg0T0Kr^KCby3PY;FR)hlmc9C diff --git a/doc/_build/html/py-modindex.html b/doc/_build/html/py-modindex.html deleted file mode 100644 index 2ab8a42..0000000 --- a/doc/_build/html/py-modindex.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - - - Python Module Index — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - - - - -
-
-
-
- - -

Python Module Index

- -
- p -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
- p
- pyspike -
    - pyspike.DiscreteFunc -
    - pyspike.isi_distance -
    - pyspike.PieceWiseConstFunc -
    - pyspike.PieceWiseLinFunc -
    - pyspike.psth -
    - pyspike.spike_directionality -
    - pyspike.spike_distance -
    - pyspike.spike_sync -
    - pyspike.spikes -
    - pyspike.SpikeTrain -
- - -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/pyspike.html b/doc/_build/html/pyspike.html deleted file mode 100644 index b0a510b..0000000 --- a/doc/_build/html/pyspike.html +++ /dev/null @@ -1,1786 +0,0 @@ - - - - - - - - - pyspike package — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - - - -
-
-
-
- -
-

pyspike package

-
-

Classes

-
-

SpikeTrain

-
-
-class pyspike.SpikeTrain.SpikeTrain(spike_times, edges, is_sorted=True)[source]
-

Bases: object

-

Class representing spike trains for the PySpike Module.

-
-
-__init__(spike_times, edges, is_sorted=True)[source]
-

Constructs the SpikeTrain.

-
-
Parameters:
-
    -
  • spike_times – ordered array of spike times.

  • -
  • edges – The edges of the spike train. Given as a pair of floats -(T0, T1) or a single float T1, where then T0=0 is -assumed.

  • -
  • is_sorted – If False, the spike times will sorted by np.sort.

  • -
-
-
-
- -
-
-copy()[source]
-

Returns a copy of this spike train. -Use this function if you want to create a real (deep) copy of this -spike train. Simple assignment t2 = t1 does not create a copy of the -spike train data, but a reference as numpy.array is used for storing -the data.

-
-
Returns:
-

SpikeTrain copy of this spike train.

-
-
-
- -
-
-get_spikes_non_empty()[source]
-

Returns the spikes of this spike train with auxiliary spikes in case -of empty spike trains.

-
- -
-
-sort()[source]
-

Sorts the spike times of this spike train using np.sort

-
- -
- -
-
-

PieceWiseConstFunc

-
-
-class pyspike.PieceWiseConstFunc.PieceWiseConstFunc(x, y)[source]
-

Bases: object

-

A class representing a piece-wise constant function.

-
-
-__init__(x, y)[source]
-

Constructs the piece-wise const function.

-
-
Parameters:
-
    -
  • x – array of length N+1 defining the edges of the intervals of -the pwc function.

  • -
  • y – array of length N defining the function values at the -intervals.

  • -
-
-
-
- -
-
-add(f)[source]
-

Adds another PieceWiseConst function to this function. -Note: only functions defined on the same interval can be summed.

-
-
Parameters:
-

fPieceWiseConstFunc function to be added.

-
-
Return type:
-

None

-
-
-
- -
-
-almost_equal(other, decimal=14)[source]
-

Checks if the function is equal to another function up to decimal -precision.

-
-
Parameters:
-

other – another PieceWiseConstFunc

-
-
Returns:
-

True if the two functions are equal up to decimal decimals, -False otherwise

-
-
Return type:
-

bool

-
-
-
- -
-
-avrg(interval=None)[source]
-

Computes the average of the piece-wise const function: -\(a = 1/T \int_0^T f(x) dx\) where T is the length of the interval.

-
-
Parameters:
-

interval (Pair, sequence of pairs, or None.) – averaging interval given as a pair of floats, a -sequence of pairs for averaging multiple intervals, or -None, if None the average over the whole function is -computed.

-
-
Returns:
-

the average a.

-
-
Return type:
-

float

-
-
-
- -
-
-copy()[source]
-

Returns a copy of itself

-
-
Return type:
-

PieceWiseConstFunc

-
-
-
- -
-
-get_plottable_data()[source]
-

Returns two arrays containing x- and y-coordinates for immeditate -plotting of the piece-wise function.

-
-
Returns:
-

(x_plot, y_plot) containing plottable data

-
-
Return type:
-

pair of np.array

-
-
-

Example:

-
x, y = f.get_plottable_data()
-plt.plot(x, y, '-o', label="Piece-wise const function")
-
-
-
- -
-
-integral(interval=None)[source]
-

Returns the integral over the given interval.

-
-
Parameters:
-

interval (Pair of floats or None.) – integration interval given as a pair of floats, if -None the integral over the whole function is computed.

-
-
Returns:
-

the integral

-
-
Return type:
-

float

-
-
-
- -
-
-mul_scalar(fac)[source]
-

Multiplies the function with a scalar value

-
-
Parameters:
-

fac (double) – Value to multiply

-
-
Return type:
-

None

-
-
-
- -
- -
-
-

PieceWiseLinFunc

-
-
-class pyspike.PieceWiseLinFunc.PieceWiseLinFunc(x, y1, y2)[source]
-

Bases: object

-

A class representing a piece-wise linear function.

-
-
-__init__(x, y1, y2)[source]
-

Constructs the piece-wise linear function.

-
-
Parameters:
-
    -
  • x – array of length N+1 defining the edges of the intervals of -the pwc function.

  • -
  • y1 – array of length N defining the function values at the left -of the intervals.

  • -
  • y2 – array of length N defining the function values at the right -of the intervals.

  • -
-
-
-
- -
-
-add(f)[source]
-

Adds another PieceWiseLin function to this function. -Note: only functions defined on the same interval can be summed.

-
-
Parameters:
-

fPieceWiseLinFunc function to be added.

-
-
Return type:
-

None

-
-
-
- -
-
-almost_equal(other, decimal=14)[source]
-

Checks if the function is equal to another function up to decimal -precision.

-
-
Parameters:
-

other – another PieceWiseLinFunc

-
-
Returns:
-

True if the two functions are equal up to decimal decimals, -False otherwise

-
-
Return type:
-

bool

-
-
-
- -
-
-avrg(interval=None)[source]
-

Computes the average of the piece-wise linear function: -\(a = 1/T \int_0^T f(x) dx\) where T is the interval length.

-
-
Parameters:
-

interval (Pair, sequence of pairs, or None.) – averaging interval given as a pair of floats, a -sequence of pairs for averaging multiple intervals, or -None, if None the average over the whole function is -computed.

-
-
Returns:
-

the average a.

-
-
Return type:
-

float

-
-
-
- -
-
-copy()[source]
-

Returns a copy of itself

-
-
Return type:
-

PieceWiseLinFunc

-
-
-
- -
-
-get_plottable_data()[source]
-

Returns two arrays containing x- and y-coordinates for immeditate -plotting of the piece-wise function.

-
-
Returns:
-

(x_plot, y_plot) containing plottable data

-
-
Return type:
-

pair of np.array

-
-
-

Example:

-
x, y = f.get_plottable_data()
-plt.plot(x, y, '-o', label="Piece-wise const function")
-
-
-
- -
-
-integral(interval=None)[source]
-

Returns the integral over the given interval.

-
-
Parameters:
-

interval (Pair of floats or None.) – integration interval given as a pair of floats, if -None the integral over the whole function is computed.

-
-
Returns:
-

the integral

-
-
Return type:
-

float

-
-
-
- -
-
-mul_scalar(fac)[source]
-

Multiplies the function with a scalar value

-
-
Parameters:
-

fac (double) – Value to multiply

-
-
Return type:
-

None

-
-
-
- -
- -
-
-

DiscreteFunc

-
-
-class pyspike.DiscreteFunc.DiscreteFunc(x, y, multiplicity)[source]
-

Bases: object

-

A class representing values defined on a discrete set of points.

-
-
-__init__(x, y, multiplicity)[source]
-

Constructs the discrete function.

-
-
Parameters:
-
    -
  • x – array of length N defining the points at which the values are -defined.

  • -
  • y – array of length N degining the values at the points x.

  • -
  • multiplicity – array of length N defining the multiplicity of the -values.

  • -
-
-
-
- -
-
-add(f)[source]
-

Adds another DiscreteFunc function to this function. -Note: only functions defined on the same interval can be summed.

-
-
Parameters:
-

fDiscreteFunc function to be added.

-
-
Return type:
-

None

-
-
-
- -
-
-almost_equal(other, decimal=14)[source]
-

Checks if the function is equal to another function up to decimal -precision.

-
-
Parameters:
-

other – another DiscreteFunc

-
-
Returns:
-

True if the two functions are equal up to decimal decimals, -False otherwise

-
-
Return type:
-

bool

-
-
-
- -
-
-avrg(interval=None, normalize=True)[source]
-

Computes the average of the interval sequence: -\(a = 1/N \sum f_n\) where N is the number of intervals.

-
-
Parameters:
-

interval (Pair, sequence of pairs, or None.) – averaging interval given as a pair of floats, a -sequence of pairs for averaging multiple intervals, or -None, if None the average over the whole function is -computed.

-
-
Returns:
-

the average a.

-
-
Return type:
-

float

-
-
-
- -
-
-copy()[source]
-

Returns a copy of itself

-
-
Return type:
-

DiscreteFunc

-
-
-
- -
-
-get_plottable_data(averaging_window_size=0)[source]
-

Returns two arrays containing x- and y-coordinates for plotting -the interval sequence. The optional parameter averaging_window_size -determines the size of an averaging window to smoothen the profile. If -this value is 0, no averaging is performed.

-
-
Parameters:
-

averaging_window_size – size of the averaging window, default=0.

-
-
Returns:
-

(x_plot, y_plot) containing plottable data

-
-
Return type:
-

pair of np.array

-
-
-

Example:

-
x, y = f.get_plottable_data()
-plt.plot(x, y, '-o', label="Discrete function")
-
-
-
- -
-
-integral(interval=None)[source]
-

Returns the integral over the given interval. For the discrete -function, this amounts to two values: the sum over all values and the -sum over all multiplicities.

-
-
Parameters:
-

interval (Pair, sequence of pairs, or None.) – integration interval given as a pair of floats, or a -sequence of pairs in case of multiple intervals, if -None the integral over the whole function is computed.

-
-
Returns:
-

the summed values and the summed multiplicity

-
-
Return type:
-

pair of float

-
-
-
- -
-
-mul_scalar(fac)[source]
-

Multiplies the function with a scalar value

-
-
Parameters:
-

fac (double) – Value to multiply

-
-
Return type:
-

None

-
-
-
- -
- -
-
-pyspike.DiscreteFunc.average_profile(profiles)[source]
-

Computes the average profile from the given ISI- or SPIKE-profiles.

-
-
Parameters:
-

profiles – list of PieceWiseConstFunc or -PieceWiseLinFunc representing ISI- or -SPIKE-profiles to be averaged.

-
-
Returns:
-

the averages profile \(<S_{isi}>\) or \(<S_{spike}>\).

-
-
Return type:
-

PieceWiseConstFunc or PieceWiseLinFunc

-
-
-
- -
-
-
-

Functions

-
-

ISI-distance

-

isi_distance.py -Module containing several functions to compute the ISI profiles and distances -Copyright 2014-2015, Mario Mulansky <mario.mulansky@gmx.net> -Distributed under the BSD License

-
-
-pyspike.isi_distance.isi_distance(*args, **kwargs)[source]
-

Computes the ISI-distance \(D_I\) of the given spike trains. The -isi-distance is the integral over the isi distance profile -\(I(t)\):

-
-\[D_I = \int_{T_0}^{T_1} I(t) dt.\]
-

In the multivariate case it is the integral over the multivariate -ISI-profile, i.e. the average profile over all spike train pairs:

-
-\[D_I = \int_0^T \frac{2}{N(N-1)} \sum_{<i,j>} I^{i,j},\]
-

where the sum goes over all pairs <i,j>

-

Valid call structures:

-
isi_distance(st1, st2)  # returns the bi-variate distance
-isi_distance(st1, st2, st3)  # multi-variate distance of 3 spike trains
-
-spike_trains = [st1, st2, st3, st4]  # list of spike trains
-isi_distance(spike_trains)  # distance of the list of spike trains
-isi_distance(spike_trains, indices=[0, 1])  # use only the spike trains
-                                            # given by the indices
-
-
-
-
Returns:
-

The isi-distance \(D_I\).

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.isi_distance.isi_distance_bi(spike_train1, spike_train2, interval=None, **kwargs)[source]
-

Specific function to compute the bivariate ISI-distance. -This is a deprecated function and should not be called directly. Use -isi_distance() to compute ISI-distances.

-
-
Parameters:
-
    -
  • spike_train1 (SpikeTrain) – First spike train.

  • -
  • spike_train2 (SpikeTrain) – Second spike train.

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats (T0, T1), -if None the average over the whole function is computed.

  • -
-
-
Returns:
-

The isi-distance \(D_I\).

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.isi_distance.isi_distance_matrix(spike_trains, indices=None, interval=None, **kwargs)[source]
-

Computes the time averaged isi-distance of all pairs of spike-trains.

-
-
Parameters:
-
    -
  • spike_trains – list of SpikeTrain

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats, if None -the average over the whole function is computed.

  • -
-
-
Returns:
-

2D array with the pair wise time average isi distances -\(D_{I}^{ij}\)

-
-
Return type:
-

np.array

-
-
-
- -
-
-pyspike.isi_distance.isi_distance_multi(spike_trains, indices=None, interval=None, **kwargs)[source]
-

Specific function to compute the multivariate ISI-distance. -This is a deprecfated function and should not be called directly. Use -isi_distance() to compute ISI-distances.

-
-
Parameters:
-
    -
  • spike_trains – list of SpikeTrain

  • -
  • indices – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats, if None -the average over the whole function is computed.

  • -
-
-
Returns:
-

The time-averaged multivariate ISI distance \(D_I\)

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.isi_distance.isi_profile(*args, **kwargs)[source]
-

Computes the isi-distance profile \(I(t)\) of the given -spike trains. Returns the profile as a PieceWiseConstFunc object. The -ISI-values are defined positive \(I(t)>=0\).

-

Valid call structures:

-
isi_profile(st1, st2)       # returns the bi-variate profile
-isi_profile(st1, st2, st3)  # multi-variate profile of 3 spike trains
-
-spike_trains = [st1, st2, st3, st4]  # list of spike trains
-isi_profile(spike_trains)   # profile of the list of spike trains
-isi_profile(spike_trains, indices=[0, 1])  # use only the spike trains
-                                           # given by the indices
-
-
-

The multivariate ISI distance profile for a set of spike trains is defined -as the average ISI-profile of all pairs of spike-trains:

-
-\[<I(t)> = \frac{2}{N(N-1)} \sum_{<i,j>} I^{i,j},\]
-

where the sum goes over all pairs <i,j>

-
-
Returns:
-

The isi-distance profile \(I(t)\)

-
-
Return type:
-

PieceWiseConstFunc

-
-
-
- -
-
-pyspike.isi_distance.isi_profile_bi(spike_train1, spike_train2, **kwargs)[source]
-

Specific function to compute a bivariate ISI-profile. This is a -deprecated function and should not be called directly. Use -isi_profile() to compute ISI-profiles.

-
-
Parameters:
-
    -
  • spike_train1 (SpikeTrain) – First spike train.

  • -
  • spike_train2 (SpikeTrain) – Second spike train.

  • -
-
-
Returns:
-

The isi-distance profile \(I(t)\)

-
-
Return type:
-

PieceWiseConstFunc

-
-
-
- -
-
-pyspike.isi_distance.isi_profile_multi(spike_trains, indices=None, **kwargs)[source]
-

Specific function to compute the multivariate ISI-profile for a set of -spike trains. This is a deprecated function and should not be called -directly. Use isi_profile() to compute ISI-profiles.

-
-
Parameters:
-
    -
  • spike_trains – list of SpikeTrain

  • -
  • indices – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
-
-
Returns:
-

The averaged isi profile \(<I(t)>\)

-
-
Return type:
-

PieceWiseConstFunc

-
-
-
- -
-
-

SPIKE-distance

-
-
-pyspike.spike_distance.spike_distance(*args, **kwargs)[source]
-

Computes the SPIKE-distance \(D_S\) of the given spike trains. The -spike-distance is the integral over the spike distance profile -\(D(t)\):

-
-\[D_S = \int_{T_0}^{T_1} S(t) dt.\]
-

Valid call structures:

-
spike_distance(st1, st2)  # returns the bi-variate distance
-spike_distance(st1, st2, st3)  # multi-variate distance of 3 spike trains
-
-spike_trains = [st1, st2, st3, st4]  # list of spike trains
-spike_distance(spike_trains)  # distance of the list of spike trains
-spike_distance(spike_trains, indices=[0, 1])  # use only the spike trains
-                                              # given by the indices
-
-
-

In the multivariate case, the spike distance is given as the integral over -the multivariate profile, that is the average profile of all spike train -pairs:

-
-\[D_S = \int_0^T \frac{2}{N(N-1)} \sum_{<i,j>} -S^{i, j} dt\]
-
-
Returns:
-

The spike-distance \(D_S\).

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.spike_distance.spike_distance_bi(spike_train1, spike_train2, interval=None, **kwargs)[source]
-

Specific function to compute a bivariate SPIKE-distance. This is a -deprecated function and should not be called directly. Use -spike_distance() to compute SPIKE-distances.

-
-
Parameters:
-
    -
  • spike_train1 (SpikeTrain) – First spike train.

  • -
  • spike_train2 (SpikeTrain) – Second spike train.

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats (T0, T1), -if None the average over the whole function is computed.

  • -
-
-
Returns:
-

The spike-distance.

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.spike_distance.spike_distance_matrix(spike_trains, indices=None, interval=None, **kwargs)[source]
-

Computes the time averaged spike-distance of all pairs of spike-trains.

-
-
Parameters:
-
    -
  • spike_trains – list of SpikeTrain

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats, if None -the average over the whole function is computed.

  • -
-
-
Returns:
-

2D array with the pair wise time average spike distances -\(D_S^{ij}\)

-
-
Return type:
-

np.array

-
-
-
- -
-
-pyspike.spike_distance.spike_distance_multi(spike_trains, indices=None, interval=None, **kwargs)[source]
-

Specific function to compute a multivariate SPIKE-distance. This is a -deprecated function and should not be called directly. Use -spike_distance() to compute SPIKE-distances.

-
-
Parameters:
-
    -
  • spike_trains – list of SpikeTrain

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats, if None -the average over the whole function is computed.

  • -
-
-
Returns:
-

The averaged multi-variate spike distance \(D_S\).

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.spike_distance.spike_profile(*args, **kwargs)[source]
-

Computes the spike-distance profile \(S(t)\) of the given -spike trains. Returns the profile as a PieceWiseConstLin object. The -SPIKE-values are defined positive \(S(t)>=0\).

-

Valid call structures:

-
spike_profile(st1, st2)  # returns the bi-variate profile
-spike_profile(st1, st2, st3)  # multi-variate profile of 3 spike trains
-
-spike_trains = [st1, st2, st3, st4]  # list of spike trains
-spike_profile(spike_trains)  # profile of the list of spike trains
-spike_profile(spike_trains, indices=[0, 1])  # use only the spike trains
-                                             # given by the indices
-
-
-

The multivariate spike-distance profile is defined as the average of all -pairs of spike-trains:

-
-\[<S(t)> = \frac{2}{N(N-1)} \sum_{<i,j>} S^{i, j}`,\]
-

where the sum goes over all pairs <i,j>

-
-
Returns:
-

The spike-distance profile \(S(t)\)

-
-
Return type:
-

PieceWiseConstLin

-
-
-
- -
-
-pyspike.spike_distance.spike_profile_bi(spike_train1, spike_train2, **kwargs)[source]
-

Specific function to compute a bivariate SPIKE-profile. This is a -deprecated function and should not be called directly. Use -spike_profile() to compute SPIKE-profiles.

-
-
Parameters:
-
    -
  • spike_train1 (SpikeTrain) – First spike train.

  • -
  • spike_train2 (SpikeTrain) – Second spike train.

  • -
-
-
Returns:
-

The spike-distance profile \(S(t)\).

-
-
Return type:
-

PieceWiseLinFunc

-
-
-
- -
-
-pyspike.spike_distance.spike_profile_multi(spike_trains, indices=None, **kwargs)[source]
-

Specific function to compute a multivariate SPIKE-profile. This is a -deprecated function and should not be called directly. Use -spike_profile() to compute SPIKE-profiles.

-
-
Parameters:
-
    -
  • spike_trains – list of SpikeTrain

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
-
-
Returns:
-

The averaged spike profile \(<S>(t)\)

-
-
Return type:
-

PieceWiseLinFunc

-
-
-
- -
-
-

SPIKE-synchronization

-
-
-pyspike.spike_sync.filter_by_spike_sync(spike_trains, threshold, indices=None, max_tau=None, return_removed_spikes=False, **kwargs)[source]
-

Removes the spikes with a multi-variate spike_sync value below -threshold.

-
- -
-
-pyspike.spike_sync.spike_sync(*args, **kwargs)[source]
-

Computes the spike synchronization value of the given spike -trains. The spike synchronization value is the computed as the total number -of coincidences divided by the total number of spikes:

-
-\[SYNC = \sum_n C_n / N.\]
-

Valid call structures:

-
spike_sync(st1, st2)  # returns the bi-variate spike synchronization
-spike_sync(st1, st2, st3)  # multi-variate result for 3 spike trains
-
-spike_trains = [st1, st2, st3, st4]  # list of spike trains
-spike_sync(spike_trains)  # spike-sync of the list of spike trains
-spike_sync(spike_trains, indices=[0, 1])  # use only the spike trains
-                                          # given by the indices
-
-
-

The multivariate SPIKE-Sync is again defined as the overall ratio of all -coincidence values divided by the total number of spikes.

-
-
Returns:
-

The spike synchronization value.

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.spike_sync.spike_sync_bi(spike_train1, spike_train2, interval=None, max_tau=None, **kwargs)[source]
-

Specific function to compute a bivariate SPIKE-Sync value. -This is a deprecated function and should not be called directly. Use -spike_sync() to compute SPIKE-Sync values.

-
-
Parameters:
-
    -
  • spike_train1 (pyspike.SpikeTrain) – First spike train.

  • -
  • spike_train2 (pyspike.SpikeTrain) – Second spike train.

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats (T0, T1), -if None the average over the whole function is computed.

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

The spike synchronization value.

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.spike_sync.spike_sync_matrix(spike_trains, indices=None, interval=None, max_tau=None, **kwargs)[source]
-

Computes the overall spike-synchronization value of all pairs of -spike-trains.

-
-
Parameters:
-
    -
  • spike_trains – list of pyspike.SpikeTrain

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats, if None -the average over the whole function is computed.

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

2D array with the pair wise time spike synchronization values -\(SYNC_{ij}\)

-
-
Return type:
-

np.array

-
-
-
- -
-
-pyspike.spike_sync.spike_sync_multi(spike_trains, indices=None, interval=None, max_tau=None, **kwargs)[source]
-

Specific function to compute a multivariate SPIKE-Sync value. -This is a deprecated function and should not be called directly. Use -spike_sync() to compute SPIKE-Sync values.

-
-
Parameters:
-
    -
  • spike_trains – list of pyspike.SpikeTrain

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats, if None -the average over the whole function is computed.

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

The multi-variate spike synchronization value SYNC.

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.spike_sync.spike_sync_profile(*args, **kwargs)[source]
-

Computes the spike-synchronization profile S_sync(t) of the given -spike trains. Returns the profile as a DiscreteFunction object. In the -bivariate case, he S_sync values are either 1 or 0, indicating the presence -or absence of a coincidence. For multi-variate cases, each spike in the set -of spike trains, the profile is defined as the number of coincidences -divided by the number of spike trains pairs involving the spike train of -containing this spike, which is the number of spike trains minus one (N-1).

-

Valid call structures:

-
spike_sync_profile(st1, st2)  # returns the bi-variate profile
-spike_sync_profile(st1, st2, st3)  # multi-variate profile of 3 sts
-
-sts = [st1, st2, st3, st4]  # list of spike trains
-spike_sync_profile(sts)  # profile of the list of spike trains
-spike_sync_profile(sts, indices=[0, 1])  # use only the spike trains
-                                         # given by the indices
-
-
-

In the multivariate case, the profile is defined as the number of -coincidences for each spike in the set of spike trains divided by the -number of spike trains pairs involving the spike train of containing this -spike, which is the number of spike trains minus one (N-1).

-
-
Returns:
-

The spike-sync profile \(S_{sync}(t)\).

-
-
Return type:
-

pyspike.function.DiscreteFunction

-
-
-
- -
-
-pyspike.spike_sync.spike_sync_profile_bi(spike_train1, spike_train2, max_tau=None, **kwargs)[source]
-

Specific function to compute a bivariate SPIKE-Sync-profile. This is a -deprecated function and should not be called directly. Use -spike_sync_profile() to compute SPIKE-Sync-profiles.

-
-
Parameters:
-
    -
  • spike_train1 (pyspike.SpikeTrain) – First spike train.

  • -
  • spike_train2 (pyspike.SpikeTrain) – Second spike train.

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

The spike-sync profile \(S_{sync}(t)\).

-
-
Return type:
-

pyspike.function.DiscreteFunction

-
-
-
- -
-
-pyspike.spike_sync.spike_sync_profile_multi(spike_trains, indices=None, max_tau=None, **kwargs)[source]
-

Specific function to compute a multivariate SPIKE-Sync-profile. -This is a deprecated function and should not be called directly. Use -spike_sync_profile() to compute SPIKE-Sync-profiles.

-
-
Parameters:
-
    -
  • spike_trains – list of pyspike.SpikeTrain

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

The multi-variate spike sync profile \(<S_{sync}>(t)\)

-
-
Return type:
-

pyspike.function.DiscreteFunction

-
-
-
- -
-
-

PSTH

-
-
-pyspike.psth.psth(spike_trains, bin_size)[source]
-

Computes the peri-stimulus time histogram of a set of -SpikeTrain. The PSTH is simply the histogram of merged spike -events. The bin_size defines the width of the histogram bins.

-
-
Parameters:
-
    -
  • spike_trains – list of SpikeTrain

  • -
  • bin_size – width of the histogram bins.

  • -
-
-
Returns:
-

The PSTH as a PieceWiseConstFunc

-
-
-
- -
-
-

Directionality

-
-
-pyspike.spike_directionality.optimal_spike_train_sorting(spike_trains, indices=None, interval=None, max_tau=None, full_output=False, **kwargs)[source]
-

Finds the best sorting of the given spike trains by computing the spike -directionality matrix and optimize the order using simulated annealing. -For a detailed description of the algorithm see: -http://iopscience.iop.org/article/10.1088/1367-2630/aa68c3/meta

-
-
Parameters:
-
    -
  • spike_trains – list of SpikeTrain

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • interval (Pair of floats or None.) – time interval filter given as a pair of floats, if None -the full spike trains are used (default=None).

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound (default=None).

  • -
  • full_output – If true, then function will additionally return the -number of performed iterations (default=False)

  • -
-
-
Returns:
-

(p, F) - tuple with the optimal permutation and synfire indicator. -if full_output=True , (p, F, iter) is returned.

-
-
-
- -
-
-pyspike.spike_directionality.permutate_matrix(D, p)[source]
-

Helper function that applies the permutation p to the columns and rows -of matrix D. Return the permutated matrix \(D'[n,m] = D[p[n], p[m]]\).

-
-
Parameters:
-
    -
  • D – The matrix.

  • -
  • d – The permutation.

  • -
-
-
Returns:
-

The permuated matrix D’, ie \(D'[n,m] = D[p[n], p[m]]\)

-
-
-
- -
-
-pyspike.spike_directionality.spike_directionality(spike_train1, spike_train2, normalize=True, interval=None, max_tau=None, **kwargs)[source]
-

Computes the overall spike directionality of the first spike train with -respect to the second spike train.

-
-
Parameters:
-
    -
  • spike_train1 (pyspike.SpikeTrain) – First spike train.

  • -
  • spike_train2 (pyspike.SpikeTrain) – Second spike train.

  • -
  • normalize – Normalize by the number of spikes (multiplicity).

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

The spike train order profile \(E(t)\).

-
-
-
- -
-
-pyspike.spike_directionality.spike_directionality_matrix(spike_trains, normalize=True, indices=None, interval=None, max_tau=None, **kwargs)[source]
-

Computes the spike directionality matrix for the given spike trains.

-
-
Parameters:
-
    -
  • spike_trains (List of pyspike.SpikeTrain) – List of spike trains.

  • -
  • normalize – Normalize by the number of spikes (multiplicity).

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

The spike-directionality values.

-
-
-
- -
-
-pyspike.spike_directionality.spike_directionality_values(*args, **kwargs)[source]
-

Computes the spike directionality value for each spike in -each spike train. Returns a list containing an array of spike directionality -values for every given spike train.

-

Valid call structures:

-
spike_directionality_values(st1, st2)       # returns the bi-variate profile
-spike_directionality_values(st1, st2, st3)  # multi-variate profile of 3
-                                             # spike trains
-
-spike_trains = [st1, st2, st3, st4]          # list of spike trains
-spike_directionality_values(spike_trains)    # profile of the list of spike trains
-spike_directionality_values(spike_trains, indices=[0, 1])  # use only the spike trains
-                                                            # given by the indices
-
-
-

Additonal arguments: -:param max_tau: Upper bound for coincidence window (default=None). -:param indices: list of indices defining which spike trains to use,

-
-

if None all given spike trains are used (default=None)

-
-
-
Returns:
-

The spike directionality values \(D^n_i\) as a list of arrays.

-
-
-
- -
-
-pyspike.spike_directionality.spike_train_order(*args, **kwargs)[source]
-

Computes the spike train order (Synfire Indicator) of the given -spike trains.

-

Valid call structures:

-
spike_train_order(st1, st2, normalize=True)  # normalized bi-variate
-                                              # spike train order
-spike_train_order(st1, st2, st3)  # multi-variate result of 3 spike trains
-
-spike_trains = [st1, st2, st3, st4]       # list of spike trains
-spike_train_order(spike_trains)   # result for the list of spike trains
-spike_train_order(spike_trains, indices=[0, 1])  # use only the spike trains
-                                                 # given by the indices
-
-
-
-
Additonal arguments:
    -
  • max_tau Upper bound for coincidence window, default=None.

  • -
  • normalize Flag indicating if the reslut should be normalized by the -number of spikes , default=`False`

  • -
-
-
-
-
Returns:
-

The spike train order value (Synfire Indicator)

-
-
-
- -
-
-pyspike.spike_directionality.spike_train_order_bi(spike_train1, spike_train2, normalize=True, interval=None, max_tau=None, **kwargs)[source]
-

Computes the overall spike train order value (Synfire Indicator) -for two spike trains.

-
-
Parameters:
-
    -
  • spike_train1 (pyspike.SpikeTrain) – First spike train.

  • -
  • spike_train2 (pyspike.SpikeTrain) – Second spike train.

  • -
  • normalize – Normalize by the number of spikes (multiplicity).

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

The spike train order value (Synfire Indicator)

-
-
-
- -
-
-pyspike.spike_directionality.spike_train_order_multi(spike_trains, indices=None, normalize=True, interval=None, max_tau=None, **kwargs)[source]
-

Computes the overall spike train order value (Synfire Indicator) -for many spike trains.

-
-
Parameters:
-
    -
  • spike_trains – list of SpikeTrain

  • -
  • indices – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • normalize – Normalize by the number of spike (multiplicity).

  • -
  • interval (Pair of floats or None.) – averaging interval given as a pair of floats, if None -the average over the whole function is computed.

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

Spike train order values (Synfire Indicator) F for the given spike trains.

-
-
Return type:
-

double

-
-
-
- -
-
-pyspike.spike_directionality.spike_train_order_profile(*args, **kwargs)[source]
-

Computes the spike train order profile \(E(t)\) of the given -spike trains. Returns the profile as a DiscreteFunction object.

-

Valid call structures:

-
spike_train_order_profile(st1, st2)       # returns the bi-variate profile
-spike_train_order_profile(st1, st2, st3)  # multi-variate profile of 3
-                                          # spike trains
-
-spike_trains = [st1, st2, st3, st4]       # list of spike trains
-spike_train_order_profile(spike_trains)   # profile of the list of spike trains
-spike_train_order_profile(spike_trains, indices=[0, 1])  # use only the spike trains
-                                                         # given by the indices
-
-
-

Additonal arguments: -:param max_tau: Upper bound for coincidence window, default=None. -:param indices: list of indices defining which spike trains to use,

-
-

if None all given spike trains are used (default=None)

-
-
-
Returns:
-

The spike train order profile \(E(t)\)

-
-
Return type:
-

DiscreteFunction

-
-
-
- -
-
-pyspike.spike_directionality.spike_train_order_profile_bi(spike_train1, spike_train2, max_tau=None, **kwargs)[source]
-

Computes the spike train order profile P(t) of the two given -spike trains. Returns the profile as a DiscreteFunction object.

-
-
Parameters:
-
    -
  • spike_train1 (pyspike.SpikeTrain) – First spike train.

  • -
  • spike_train2 (pyspike.SpikeTrain) – Second spike train.

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

The spike train order profile \(E(t)\).

-
-
Return type:
-

pyspike.function.DiscreteFunction

-
-
-
- -
-
-pyspike.spike_directionality.spike_train_order_profile_multi(spike_trains, indices=None, max_tau=None, **kwargs)[source]
-

Computes the multi-variate spike train order profile for a set of -spike trains. For each spike in the set of spike trains, the multi-variate -profile is defined as the sum of asymmetry values divided by the number of -spike trains pairs involving the spike train of containing this spike, -which is the number of spike trains minus one (N-1).

-
-
Parameters:
-
    -
  • spike_trains – list of pyspike.SpikeTrain

  • -
  • indices (list or None) – list of indices defining which spike trains to use, -if None all given spike trains are used (default=None)

  • -
  • max_tau – Maximum coincidence window size. If 0 or None, the -coincidence window has no upper bound.

  • -
-
-
Returns:
-

The multi-variate spike sync profile \(<S_{sync}>(t)\)

-
-
Return type:
-

pyspike.function.DiscreteFunction

-
-
-
- -
-
-

Helper functions

-
-
-pyspike.spikes.generate_poisson_spikes(rate, interval)[source]
-

Generates a Poisson spike train with the given rate in the given time -interval

-
-
Parameters:
-
    -
  • rate – The rate of the spike trains

  • -
  • interval (pair of doubles or double) – A pair (T_start, T_end) of values representing the -start and end time of the spike train measurement or -a single value representing the end time, the T_start -is then assuemd as 0. Auxiliary spikes will be added -to the spike train at the beginning and end of this -interval, if they are not yet present.

  • -
-
-
Returns:
-

Poisson spike train as a SpikeTrain

-
-
-
- -
-
-pyspike.spikes.import_spike_trains_from_time_series(file_name, start_time, time_bin, separator=None, comment='#')[source]
-

Imports spike trains from time series consisting of 0 and 1 denoting -the absence or presence of a spike. Each line in the data file represents -one spike train.

-
-
Parameters:
-
    -
  • file_name – The name of the data file containing the time series.

  • -
  • edges – A pair (T_start, T_end) of values representing the -start and end time of the spike train measurement -or a single value representing the end time, the -T_start is then assuemd as 0.

  • -
  • separator – The character used to seprate the values in the text file

  • -
  • comment – Lines starting with this character are ignored.

  • -
-
-
-
- -
-
-pyspike.spikes.load_spike_trains_from_txt(file_name, edges, separator=' ', comment='#', is_sorted=False, ignore_empty_lines=True)[source]
-

Loads a number of spike trains from a text file. Each line of the text -file should contain one spike train as a sequence of spike times separated -by separator. Empty lines as well as lines starting with comment are -neglected. The edges represents the start and the end of the -spike trains.

-
-
Parameters:
-
    -
  • file_name – The name of the text file.

  • -
  • edges – A pair (T_start, T_end) of values representing the -start and end time of the spike train measurement -or a single value representing the end time, the -T_start is then assuemd as 0.

  • -
  • separator – The character used to seprate the values in the text file

  • -
  • comment – Lines starting with this character are ignored.

  • -
  • sort – If true, the spike times are order via np.sort, default=True

  • -
-
-
Returns:
-

list of SpikeTrain

-
-
-
- -
-
-pyspike.spikes.merge_spike_trains(spike_trains)[source]
-

Merges a number of spike trains into a single spike train.

-
-
Parameters:
-

spike_trains – list of SpikeTrain

-
-
Returns:
-

spike train with the merged spike times

-
-
-
- -
-
-pyspike.spikes.reconcile_spike_trains(spike_trains)[source]
-

make sure that Spike trains meet PySpike rules -In: spike_trains - a list of SpikeTrain objects -Out: spike_trains - same list with some fixes:

-
-
    -
  1. t_start and t_end are the same for every train

  2. -
  3. The spike times are sorted

  4. -
  5. No duplicate times in any train

  6. -
  7. spike times outside of t_start,t_end removed

  8. -
-
-
- -
-
-pyspike.spikes.reconcile_spike_trains_bi(spike_train1, spike_train2)[source]
-

fix up a pair of spike trains

-
- -
-
-pyspike.spikes.save_spike_trains_to_txt(spike_trains, file_name, separator=' ', precision=8)[source]
-

Saves the given spike trains into a file with the given file name. -Each spike train will be stored in one line in the text file with the times -separated by separator.

-
-
Parameters:
-
    -
  • spike_trains – List of SpikeTrain objects

  • -
  • file_name – The name of the text file.

  • -
-
-
-
- -
-
-pyspike.spikes.spike_train_from_string(s, edges, sep=' ', is_sorted=False)[source]
-

Converts a string of times into a SpikeTrain.

-
-
Parameters:
-
    -
  • s – the string with (ordered) spike times.

  • -
  • edges – interval defining the edges of the spike train. -Given as a pair of floats (T0, T1) or a single float T1, -where T0=0 is assumed.

  • -
  • sep – The separator between the time numbers, default=’ ‘.

  • -
  • is_sorted – if True, the spike times are not sorted after loading, -if False, spike times are sorted with np.sort

  • -
-
-
Returns:
-

SpikeTrain

-
-
-
- -
-
-
- - -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/search.html b/doc/_build/html/search.html deleted file mode 100644 index 58845ef..0000000 --- a/doc/_build/html/search.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - Search — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- -

Search

- - - - -

- Searching for multiple words only shows matches that contain - all words. -

- - -
- - - -
- - - -
- -
- - -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/doc/_build/html/searchindex.js b/doc/_build/html/searchindex.js deleted file mode 100644 index 5f1e4aa..0000000 --- a/doc/_build/html/searchindex.js +++ /dev/null @@ -1 +0,0 @@ -Search.setIndex({"docnames": ["index", "pyspike", "tutorial"], "filenames": ["index.rst", "pyspike.rst", "tutorial.rst"], "titles": ["PySpike", "pyspike package", "Spike trains"], "terms": {"i": [0, 1, 2], "python": 0, "librari": 0, "numer": 0, "analysi": 0, "similar": [0, 2], "Its": 0, "core": 0, "function": [0, 2], "implement": 0, "1": [0, 1, 2], "2": [0, 1], "3": [0, 1, 2], "well": [0, 1, 2], "4": [0, 2], "It": [0, 2], "provid": [0, 2], "matric": [0, 2], "averag": [0, 1, 2], "process": 0, "all": [0, 1, 2], "intens": 0, "part": 0, "ar": [0, 1, 2], "c": 0, "via": [0, 1, 2], "cython": 0, "reach": 0, "competit": 0, "perform": [0, 1, 2], "factor": 0, "100": [0, 2], "200": 0, "over": [0, 1, 2], "plain": 0, "same": [0, 1], "fundament": 0, "spiki": 0, "framework": 0, "matlab": 0, "which": [0, 1, 2], "addition": [0, 1, 2], "contain": [0, 1, 2], "more": 0, "measur": [0, 1, 2], "mani": [0, 1, 2], "visual": 0, "routin": 0, "code": [0, 2], "avail": 0, "publish": 0, "under": [0, 1], "bsd_licens": 0, "If": [0, 1, 2], "you": [0, 1, 2], "us": [0, 1, 2], "your": [0, 2], "research": 0, "pleas": [0, 2], "our": [0, 2], "softwarex": 0, "public": 0, "mario": [0, 1], "mulanski": [0, 1], "thoma": 0, "kreuz": 0, "A": [0, 1, 2], "analyz": 0, "synchroni": [0, 2], "softwar": 0, "x": [0, 1, 2], "5": [0, 2], "183": 0, "2016": 0, "pdf": 0, "depend": 0, "method": [0, 2], "one": [0, 1, 2], "t": [0, 1, 2], "haa": 0, "j": [0, 1], "morelli": 0, "abarbanel": 0, "hdi": 0, "politi": 0, "neurosci": 0, "165": 0, "151": 0, "2007": 0, "chicharro": 0, "d": [0, 1, 2], "houghton": 0, "andrzejak": 0, "rg": 0, "mormann": 0, "f": [0, 1], "monitor": 0, "neurophysiol": 0, "109": 0, "1457": 0, "2013": 0, "m": [0, 1, 2], "bozan": 0, "n": [0, 1], "graphic": 0, "user": 0, "interfac": 0, "113": 0, "3432": 0, "2015": [0, 1], "satuvuori": 0, "e": [0, 1, 2], "malvestio": 0, "zeldenrust": 0, "lenk": 0, "k": [0, 2], "data": [0, 1, 2], "multipl": [0, 1, 2], "time": [0, 1, 2], "scale": [0, 2], "287": 0, "25": 0, "2017": 0, "With": 0, "version": [0, 2], "0": [0, 1, 2], "8": [0, 1, 2], "support": [0, 2], "7": 0, "wa": 0, "drop": 0, "now": 0, "offici": 0, "9": [0, 2], "10": [0, 1, 2], "6": [0, 2], "direction": [0, 2], "have": 0, "been": 0, "ad": [0, 1], "unifi": 0, "specif": [0, 1, 2], "becom": 0, "deprec": [0, 1], "spiketrain": [0, 2], "class": [0, 2], "ha": [0, 1, 2], "introduc": 0, "repres": [0, 1, 2], "thi": [0, 1, 2], "break": 0, "chang": 0, "henc": [0, 2], "program": 0, "written": 0, "older": 0, "run": 0, "newer": 0, "packag": 0, "index": 0, "easiest": 0, "wai": 0, "obtain": [0, 2], "pip": 0, "just": [0, 2], "sudo": 0, "numpi": [0, 1, 2], "minim": 0, "compil": 0, "binari": 0, "can": [0, 1, 2], "also": [0, 2], "latest": 0, "develop": 0, "repositori": 0, "For": [0, 1, 2], "make": [0, 1, 2], "sure": [0, 1, 2], "matplotlib": [0, 2], "pytest": 0, "test": 0, "scipi": 0, "In": [0, 1, 2], "particular": 0, "configur": 0, "properli": 0, "abl": 0, "locat": 0, "otherwis": [0, 1], "much": [0, 2], "slower": 0, "To": [0, 2], "simpli": [0, 1, 2], "download": 0, "g": [0, 2], "setup": 0, "py": [0, 1], "script": 0, "git": 0, "clone": 0, "http": [0, 1], "com": 0, "mariomulanski": 0, "cd": 0, "build_ext": 0, "inplac": 0, "Then": 0, "final": [0, 2], "should": [0, 1, 2], "": [0, 1, 2], "folder": 0, "known": 0, "own": 0, "project": 0, "therefor": [0, 2], "add": [0, 1], "path": 0, "pythonpath": 0, "environ": 0, "variabl": 0, "The": [0, 1, 2], "some": [0, 1, 2], "exemplari": [0, 2], "dissimilar": [0, 2], "first": [0, 1, 2], "two": [0, 1, 2], "object": [0, 1, 2], "plot": [0, 1, 2], "pyplot": [0, 2], "plt": [0, 1, 2], "spk": [0, 2], "spike_train": [0, 1, 2], "load_spike_trains_from_txt": [0, 1, 2], "pyspike_testdata": [0, 2], "txt": [0, 2], "edg": [0, 1, 2], "4000": [0, 2], "isi_profil": [0, 1, 2], "y": [0, 1, 2], "get_plottable_data": [0, 1, 2], "print": [0, 2], "8f": [0, 2], "avrg": [0, 1, 2], "show": [0, 2], "sync": [0, 1, 2], "list": [0, 1, 2], "avrg_isi_profil": [0, 2], "avrg_spike_profil": [0, 2], "spike_profil": [0, 1, 2], "avrg_spike_sync_profil": [0, 2], "spike_sync_profil": [0, 1, 2], "detail": [0, 1, 2], "descript": [0, 1], "found": 0, "section": 0, "work": 0, "european": 0, "comiss": 0, "through": 0, "mari": 0, "curi": 0, "initi": [0, 2], "network": 0, "neural": 0, "engin": 0, "transform": 0, "technologi": 0, "nett": 0, "number": [0, 1], "289146": 0, "edmund": 0, "butler": 0, "scientif": 0, "daniel": 0, "conor": 0, "nebojsa": 0, "consist": [0, 1, 2], "given": [0, 1, 2], "arrai": [0, 1, 2], "t_start": [0, 1, 2], "t_end": [0, 1, 2], "creat": [0, 1, 2], "arbitrari": [0, 2], "np": [0, 1, 2], "45": [0, 2], "typic": [0, 2], "most": [0, 2], "straight": [0, 2], "forward": [0, 2], "where": [0, 1, 2], "each": [0, 1, 2], "line": [0, 1, 2], "an": [0, 1, 2], "sequenc": [0, 1, 2], "sever": [0, 1, 2], "quickli": [0, 2], "spiky_testdata": [0, 2], "expect": [0, 2], "name": [0, 1, 2], "paramet": [0, 1, 2], "furthermor": [0, 2], "interv": [0, 1, 2], "pair": [0, 1, 2], "start": [0, 1, 2], "end": [0, 1, 2], "valu": [0, 1, 2], "sort": [0, 1, 2], "disabl": [0, 2], "featur": [0, 2], "is_sort": [0, 1, 2], "true": [0, 1, 2], "As": [0, 2], "result": [0, 1, 2], "return": [0, 1, 2], "note": [0, 1, 2], "reason": [0, 2], "do": [0, 2], "check": [0, 1, 2], "inde": [0, 2], "ensur": [0, 2], "fals": [0, 1, 2], "default": [0, 1, 2], "doubt": [0, 2], "correctli": [0, 2], "altern": [0, 2], "reconcile_spike_train": [0, 1, 2], "appli": [0, 1, 2], "three": [0, 2], "fix": [0, 1, 2], "remov": [0, 1, 2], "ani": [0, 1, 2], "duplic": [0, 1, 2], "compat": [0, 2], "need": [0, 2], "copi": [0, 1, 2], "simpl": [0, 1, 2], "assign": [0, 1, 2], "t2": [0, 1, 2], "t1": [0, 1, 2], "doe": [0, 1, 2], "store": [0, 1, 2], "four": [0, 2], "basic": [0, 2], "compar": [0, 2], "inter": [0, 2], "ri": [0, 2], "sychron": [0, 2], "plu": [0, 2], "base": [0, 1, 2], "mrt": [0, 2], "minimum": [0, 2], "relev": [0, 2], "new": [0, 2], "piec": [0, 1, 2], "wise": [0, 1, 2], "constant": [0, 1, 2], "instanc": [0, 2], "piecewiseconstfunc": [0, 2], "shown": [0, 2], "abov": [0, 2], "allow": [0, 2], "amount": [0, 1, 2], "scalar": [0, 1, 2], "By": [0, 2], "whole": [0, 1, 2], "howev": [0, 2], "possibl": [0, 2], "float": [0, 1, 2], "defin": [0, 1, 2], "differ": [0, 2], "isi1": [0, 2], "1000": [0, 2], "isi2": [0, 2], "2000": [0, 2], "isi3": [0, 2], "3000": [0, 2], "isi4": [0, 2], "how": [0, 2], "suppli": [0, 2], "give": [0, 2], "tupl": [0, 1, 2], "onli": [0, 1, 2], "interest": [0, 2], "isi_dist": [0, 1, 2], "option": [0, 1, 2], "omit": [0, 2], "complet": [0, 2], "instead": [0, 2], "But": [0, 2], "approach": [0, 2], "veri": [0, 2], "short": [0, 2], "contrast": [0, 2], "linear": [0, 1, 2], "piecewiselinfunc": [0, 2], "like": [0, 2], "member": [0, 2], "directli": [0, 1, 2], "overal": [0, 1, 2], "specifi": [0, 2], "again": [0, 1, 2], "spike_dist": [0, 1, 2], "ival": [0, 2], "neglect": [0, 1, 2], "variant": [0, 2], "disregard": [0, 2], "focus": [0, 2], "pure": [0, 2], "calcul": [0, 2], "set": [0, 1, 2], "ri_spike_dist": [0, 2], "That": [0, 2], "mean": [0, 2], "zero": [0, 2], "absenc": [0, 1, 2], "while": [0, 2], "denot": [0, 1, 2], "presenc": [0, 1, 2], "exactli": [0, 2], "opposit": [0, 2], "other": [0, 1, 2], "anoth": [0, 1, 2], "higher": [0, 2], "larger": [0, 2], "discretefunct": [0, 1, 2], "handl": [0, 2], "direct": [0, 2], "within": [0, 2], "spike_sync": [0, 1, 2], "greater": [0, 2], "than": [0, 2], "respect": [0, 1, 2], "modifi": [0, 2], "reduc": [0, 2], "emphasi": [0, 2], "smaller": [0, 2], "auto": [0, 2], "threshold": [0, 1, 2], "automat": [0, 2], "extract": [0, 2], "here": [0, 2], "few": [0, 2], "a_isi_dist": [0, 2], "a_spike_profil": [0, 2], "20": [0, 2], "a_ri_spike_matrix": [0, 2], "spike_distance_matrix": [0, 1, 2], "50": [0, 2], "a_spike_sync_auto": [0, 2], "take": [0, 2], "befor": [0, 2], "call": [0, 1, 2], "thei": [0, 1, 2], "equival": [0, 2], "between": [0, 1, 2], "see": [0, 1, 2], "accept": [0, 2], "begin": [0, 1, 2], "those": [0, 2], "unnam": [0, 2], "st1": [0, 1, 2], "st2": [0, 1, 2], "st3": [0, 1, 2], "st4": [0, 1, 2], "spike_prof": [0, 2], "character": [0, 2], "larg": [0, 2], "entri": [0, 2], "matrix": [0, 1, 2], "symmetr": [0, 2], "ones": [0, 2], "diagon": [0, 2], "isi_distance_matrix": [0, 1, 2], "spike_sync_matrix": [0, 1, 2], "figur": [0, 2], "imshow": [0, 2], "interpol": [0, 2], "none": [0, 1, 2], "titl": [0, 2], "resembl": [0, 2], "synfir": [0, 1, 2], "pattern": [0, 2], "ie": [0, 1, 2], "perfect": [0, 2], "articl": [0, 1, 2], "njp": [0, 2], "poissonian": [0, 2], "generate_poisson_spik": [0, 1, 2], "spike_direction": [0, 1, 2], "spike_train_order_profil": [0, 1, 2], "ob": [0, 2], "ylim": [0, 2], "xlabel": [0, 2], "ylabel": [0, 2], "optim": [0, 1, 2], "xrang": [0, 2], "f_init": [0, 2], "spike_train_ord": [0, 1, 2], "d_init": [0, 2], "spike_directionality_matrix": [0, 1, 2], "phi": [0, 2], "_": [0, 2], "optimal_spike_train_sort": [0, 1, 2], "f_opt": [0, 2], "d_opt": [0, 2], "permutate_matrix": [0, 1, 2], "modul": [0, 1], "search": 0, "page": 0, "spike_tim": 1, "sourc": 1, "train": 1, "__init__": 1, "construct": 1, "order": 1, "t0": 1, "singl": 1, "assum": 1, "want": 1, "real": 1, "deep": 1, "refer": [1, 2], "get_spikes_non_empti": 1, "auxiliari": 1, "case": 1, "empti": 1, "const": 1, "length": 1, "pwc": 1, "piecewiseconst": 1, "sum": 1, "type": 1, "almost_equ": 1, "decim": 1, "14": 1, "equal": 1, "up": 1, "precis": 1, "bool": 1, "comput": 1, "int_0": 1, "dx": 1, "itself": 1, "coordin": 1, "immedit": 1, "x_plot": 1, "y_plot": 1, "plottabl": 1, "exampl": [1, 2], "o": 1, "label": 1, "integr": 1, "mul_scalar": 1, "fac": 1, "multipli": 1, "doubl": 1, "y1": 1, "y2": 1, "left": 1, "right": 1, "piecewiselin": 1, "discret": 1, "point": 1, "degin": 1, "normal": 1, "f_n": 1, "averaging_window_s": 1, "determin": 1, "size": 1, "window": 1, "smoothen": 1, "profil": 1, "average_profil": 1, "from": 1, "s_": 1, "copyright": 1, "2014": 1, "gmx": 1, "net": 1, "distribut": 1, "bsd": 1, "licens": 1, "arg": 1, "kwarg": 1, "d_i": 1, "int_": 1, "t_0": 1, "t_1": 1, "dt": 1, "multivari": 1, "frac": 1, "sum_": 1, "goe": 1, "valid": 1, "structur": 1, "bi": 1, "variat": 1, "multi": 1, "indic": [1, 2], "isi_distance_bi": 1, "spike_train1": 1, "spike_train2": 1, "bivari": [0, 1, 2], "second": 1, "2d": 1, "d_": 1, "ij": 1, "isi_distance_multi": 1, "deprecf": 1, "posit": 1, "isi_profile_bi": 1, "isi_profile_multi": 1, "spike_distance_bi": 1, "spike_distance_multi": 1, "piecewiseconstlin": 1, "spike_profile_bi": 1, "spike_profile_multi": 1, "filter_by_spike_sync": 1, "max_tau": 1, "return_removed_spik": 1, "below": 1, "total": 1, "coincid": 1, "divid": 1, "sum_n": 1, "c_n": 1, "ratio": 1, "spike_sync_bi": 1, "maximum": 1, "upper": 1, "bound": 1, "sync_": 1, "spike_sync_multi": 1, "s_sync": 1, "he": 1, "either": 1, "involv": 1, "minu": 1, "st": 1, "spike_sync_profile_bi": 1, "spike_sync_profile_multi": 1, "bin_siz": 1, "peri": 1, "stimulu": 1, "histogram": 1, "merg": 1, "event": 1, "width": 1, "bin": 1, "full_output": 1, "find": 1, "best": 1, "simul": 1, "anneal": 1, "algorithm": 1, "iopscienc": 1, "iop": 1, "org": 1, "1088": 1, "1367": 1, "2630": 1, "aa68c3": 1, "meta": 1, "filter": 1, "full": 1, "iter": 1, "p": 1, "permut": 1, "column": 1, "row": 1, "permuat": 1, "spike_directionality_valu": 1, "everi": 1, "additon": 1, "argument": 1, "param": 1, "n_i": 1, "flag": 1, "reslut": 1, "spike_train_order_bi": 1, "spike_train_order_multi": 1, "spike_train_order_profile_bi": 1, "spike_train_order_profile_multi": 1, "asymmetri": 1, "rate": 1, "gener": 1, "poisson": 1, "assuemd": 1, "yet": 1, "present": 1, "import_spike_trains_from_time_seri": 1, "file_nam": 1, "start_tim": 1, "time_bin": 1, "separ": 1, "comment": 1, "import": [1, 2], "seri": 1, "file": 1, "charact": 1, "seprat": 1, "text": 1, "ignor": 1, "ignore_empty_lin": 1, "load": 1, "merge_spike_train": 1, "meet": 1, "rule": 1, "out": 1, "No": 1, "outsid": 1, "reconcile_spike_trains_bi": 1, "save_spike_trains_to_txt": 1, "save": 1, "spike_train_from_str": 1, "sep": 1, "convert": 1, "string": 1, "after": 1, "requir": 2}, "objects": {"pyspike": [[1, 0, 0, "-", "DiscreteFunc"], [1, 0, 0, "-", "PieceWiseConstFunc"], [1, 0, 0, "-", "PieceWiseLinFunc"], [1, 0, 0, "-", "SpikeTrain"], [1, 0, 0, "-", "isi_distance"], [1, 0, 0, "-", "psth"], [1, 0, 0, "-", "spike_directionality"], [1, 0, 0, "-", "spike_distance"], [1, 0, 0, "-", "spike_sync"], [1, 0, 0, "-", "spikes"]], "pyspike.DiscreteFunc": [[1, 1, 1, "", "DiscreteFunc"], [1, 3, 1, "", "average_profile"]], "pyspike.DiscreteFunc.DiscreteFunc": [[1, 2, 1, "", "__init__"], [1, 2, 1, "", "add"], [1, 2, 1, "", "almost_equal"], [1, 2, 1, "", "avrg"], [1, 2, 1, "", "copy"], [1, 2, 1, "", "get_plottable_data"], [1, 2, 1, "", "integral"], [1, 2, 1, "", "mul_scalar"]], "pyspike.PieceWiseConstFunc": [[1, 1, 1, "", "PieceWiseConstFunc"]], "pyspike.PieceWiseConstFunc.PieceWiseConstFunc": [[1, 2, 1, "", "__init__"], [1, 2, 1, "", "add"], [1, 2, 1, "", "almost_equal"], [1, 2, 1, "", "avrg"], [1, 2, 1, "", "copy"], [1, 2, 1, "", "get_plottable_data"], [1, 2, 1, "", "integral"], [1, 2, 1, "", "mul_scalar"]], "pyspike.PieceWiseLinFunc": [[1, 1, 1, "", "PieceWiseLinFunc"]], "pyspike.PieceWiseLinFunc.PieceWiseLinFunc": [[1, 2, 1, "", "__init__"], [1, 2, 1, "", "add"], [1, 2, 1, "", "almost_equal"], [1, 2, 1, "", "avrg"], [1, 2, 1, "", "copy"], [1, 2, 1, "", "get_plottable_data"], [1, 2, 1, "", "integral"], [1, 2, 1, "", "mul_scalar"]], "pyspike.SpikeTrain": [[1, 1, 1, "", "SpikeTrain"]], "pyspike.SpikeTrain.SpikeTrain": [[1, 2, 1, "", "__init__"], [1, 2, 1, "", "copy"], [1, 2, 1, "", "get_spikes_non_empty"], [1, 2, 1, "", "sort"]], "pyspike.isi_distance": [[1, 3, 1, "", "isi_distance"], [1, 3, 1, "", "isi_distance_bi"], [1, 3, 1, "", "isi_distance_matrix"], [1, 3, 1, "", "isi_distance_multi"], [1, 3, 1, "", "isi_profile"], [1, 3, 1, "", "isi_profile_bi"], [1, 3, 1, "", "isi_profile_multi"]], "pyspike.psth": [[1, 3, 1, "", "psth"]], "pyspike.spike_directionality": [[1, 3, 1, "", "optimal_spike_train_sorting"], [1, 3, 1, "", "permutate_matrix"], [1, 3, 1, "", "spike_directionality"], [1, 3, 1, "", "spike_directionality_matrix"], [1, 3, 1, "", "spike_directionality_values"], [1, 3, 1, "", "spike_train_order"], [1, 3, 1, "", "spike_train_order_bi"], [1, 3, 1, "", "spike_train_order_multi"], [1, 3, 1, "", "spike_train_order_profile"], [1, 3, 1, "", "spike_train_order_profile_bi"], [1, 3, 1, "", "spike_train_order_profile_multi"]], "pyspike.spike_distance": [[1, 3, 1, "", "spike_distance"], [1, 3, 1, "", "spike_distance_bi"], [1, 3, 1, "", "spike_distance_matrix"], [1, 3, 1, "", "spike_distance_multi"], [1, 3, 1, "", "spike_profile"], [1, 3, 1, "", "spike_profile_bi"], [1, 3, 1, "", "spike_profile_multi"]], "pyspike.spike_sync": [[1, 3, 1, "", "filter_by_spike_sync"], [1, 3, 1, "", "spike_sync"], [1, 3, 1, "", "spike_sync_bi"], [1, 3, 1, "", "spike_sync_matrix"], [1, 3, 1, "", "spike_sync_multi"], [1, 3, 1, "", "spike_sync_profile"], [1, 3, 1, "", "spike_sync_profile_bi"], [1, 3, 1, "", "spike_sync_profile_multi"]], "pyspike.spikes": [[1, 3, 1, "", "generate_poisson_spikes"], [1, 3, 1, "", "import_spike_trains_from_time_series"], [1, 3, 1, "", "load_spike_trains_from_txt"], [1, 3, 1, "", "merge_spike_trains"], [1, 3, 1, "", "reconcile_spike_trains"], [1, 3, 1, "", "reconcile_spike_trains_bi"], [1, 3, 1, "", "save_spike_trains_to_txt"], [1, 3, 1, "", "spike_train_from_string"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "function", "Python function"]}, "titleterms": {"pyspik": [0, 1, 2], "cite": 0, "import": 0, "changelog": 0, "requir": 0, "instal": 0, "from": [0, 2], "github": 0, "sourc": 0, "exampl": 0, "tutori": 0, "spike": [0, 1, 2], "train": [0, 2], "load": [0, 2], "text": [0, 2], "file": [0, 2], "comput": [0, 2], "bivari": [], "distanc": [0, 1, 2], "profil": [0, 2], "algorithm": [0, 2], "isi": [0, 1, 2], "rate": [0, 2], "independ": [0, 2], "synchron": [0, 1, 2], "adapt": [0, 2], "gener": [0, 2], "multivari": [0, 2], "quantifi": [0, 2], "leader": [0, 2], "follow": [0, 2], "order": [0, 2], "refer": 0, "indic": 0, "tabl": 0, "packag": 1, "class": 1, "spiketrain": 1, "piecewiseconstfunc": 1, "piecewiselinfunc": 1, "discretefunc": 1, "function": 1, "psth": 1, "direction": 1, "helper": 1}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1, "sphinx": 57}, "alltitles": {"PySpike": [[0, "pyspike"]], "Citing PySpike": [[0, "citing-pyspike"]], "Important Changelog": [[0, "important-changelog"]], "Requirements and Installation": [[0, "requirements-and-installation"]], "Install from Github sources": [[0, "install-from-github-sources"]], "Examples": [[0, "examples"]], "Tutorial": [[0, "tutorial"]], "Spike trains": [[0, "spike-trains"], [2, "spike-trains"]], "Loading from text files": [[0, "loading-from-text-files"], [2, "loading-from-text-files"]], "PySpike algorithms": [[0, "pyspike-algorithms"], [2, "pyspike-algorithms"]], "ISI-distance": [[0, "isi-distance"], [1, "module-pyspike.isi_distance"], [2, "isi-distance"]], "SPIKE-distance": [[0, "spike-distance"], [1, "module-pyspike.spike_distance"], [2, "spike-distance"]], "Rate-Independent SPIKE-distance": [[0, "rate-independent-spike-distance"], [2, "rate-independent-spike-distance"]], "SPIKE synchronization": [[0, "id13"], [2, "spike-synchronization"]], "Adaptive generalizations": [[0, "adaptive-generalizations"], [2, "adaptive-generalizations"]], "Computing multivariate profiles and distances": [[0, "computing-multivariate-profiles-and-distances"], [2, "computing-multivariate-profiles-and-distances"]], "Quantifying Leaders and Followers: Spike Train Order": [[0, "quantifying-leaders-and-followers-spike-train-order"], [2, "quantifying-leaders-and-followers-spike-train-order"]], "Reference": [[0, "reference"]], "Indices and tables": [[0, "indices-and-tables"]], "pyspike package": [[1, "pyspike-package"]], "Classes": [[1, "classes"]], "SpikeTrain": [[1, "module-pyspike.SpikeTrain"]], "PieceWiseConstFunc": [[1, "module-pyspike.PieceWiseConstFunc"]], "PieceWiseLinFunc": [[1, "module-pyspike.PieceWiseLinFunc"]], "DiscreteFunc": [[1, "module-pyspike.DiscreteFunc"]], "Functions": [[1, "functions"]], "SPIKE-synchronization": [[1, "module-pyspike.spike_sync"]], "PSTH": [[1, "module-pyspike.psth"]], "Directionality": [[1, "module-pyspike.spike_directionality"]], "Helper functions": [[1, "module-pyspike.spikes"]]}, "indexentries": {"discretefunc (class in pyspike.discretefunc)": [[1, "pyspike.DiscreteFunc.DiscreteFunc"]], "piecewiseconstfunc (class in pyspike.piecewiseconstfunc)": [[1, "pyspike.PieceWiseConstFunc.PieceWiseConstFunc"]], "piecewiselinfunc (class in pyspike.piecewiselinfunc)": [[1, "pyspike.PieceWiseLinFunc.PieceWiseLinFunc"]], "spiketrain (class in pyspike.spiketrain)": [[1, "pyspike.SpikeTrain.SpikeTrain"]], "__init__() (pyspike.discretefunc.discretefunc method)": [[1, "pyspike.DiscreteFunc.DiscreteFunc.__init__"]], "__init__() (pyspike.piecewiseconstfunc.piecewiseconstfunc method)": [[1, "pyspike.PieceWiseConstFunc.PieceWiseConstFunc.__init__"]], "__init__() (pyspike.piecewiselinfunc.piecewiselinfunc method)": [[1, "pyspike.PieceWiseLinFunc.PieceWiseLinFunc.__init__"]], "__init__() (pyspike.spiketrain.spiketrain method)": [[1, "pyspike.SpikeTrain.SpikeTrain.__init__"]], "add() (pyspike.discretefunc.discretefunc method)": [[1, "pyspike.DiscreteFunc.DiscreteFunc.add"]], "add() (pyspike.piecewiseconstfunc.piecewiseconstfunc method)": [[1, "pyspike.PieceWiseConstFunc.PieceWiseConstFunc.add"]], "add() (pyspike.piecewiselinfunc.piecewiselinfunc method)": [[1, "pyspike.PieceWiseLinFunc.PieceWiseLinFunc.add"]], "almost_equal() (pyspike.discretefunc.discretefunc method)": [[1, "pyspike.DiscreteFunc.DiscreteFunc.almost_equal"]], "almost_equal() (pyspike.piecewiseconstfunc.piecewiseconstfunc method)": [[1, "pyspike.PieceWiseConstFunc.PieceWiseConstFunc.almost_equal"]], "almost_equal() (pyspike.piecewiselinfunc.piecewiselinfunc method)": [[1, "pyspike.PieceWiseLinFunc.PieceWiseLinFunc.almost_equal"]], "average_profile() (in module pyspike.discretefunc)": [[1, "pyspike.DiscreteFunc.average_profile"]], "avrg() (pyspike.discretefunc.discretefunc method)": [[1, "pyspike.DiscreteFunc.DiscreteFunc.avrg"]], "avrg() (pyspike.piecewiseconstfunc.piecewiseconstfunc method)": [[1, "pyspike.PieceWiseConstFunc.PieceWiseConstFunc.avrg"]], "avrg() (pyspike.piecewiselinfunc.piecewiselinfunc method)": [[1, "pyspike.PieceWiseLinFunc.PieceWiseLinFunc.avrg"]], "copy() (pyspike.discretefunc.discretefunc method)": [[1, "pyspike.DiscreteFunc.DiscreteFunc.copy"]], "copy() (pyspike.piecewiseconstfunc.piecewiseconstfunc method)": [[1, "pyspike.PieceWiseConstFunc.PieceWiseConstFunc.copy"]], "copy() (pyspike.piecewiselinfunc.piecewiselinfunc method)": [[1, "pyspike.PieceWiseLinFunc.PieceWiseLinFunc.copy"]], "copy() (pyspike.spiketrain.spiketrain method)": [[1, "pyspike.SpikeTrain.SpikeTrain.copy"]], "filter_by_spike_sync() (in module pyspike.spike_sync)": [[1, "pyspike.spike_sync.filter_by_spike_sync"]], "generate_poisson_spikes() (in module pyspike.spikes)": [[1, "pyspike.spikes.generate_poisson_spikes"]], "get_plottable_data() (pyspike.discretefunc.discretefunc method)": [[1, "pyspike.DiscreteFunc.DiscreteFunc.get_plottable_data"]], "get_plottable_data() (pyspike.piecewiseconstfunc.piecewiseconstfunc method)": [[1, "pyspike.PieceWiseConstFunc.PieceWiseConstFunc.get_plottable_data"]], "get_plottable_data() (pyspike.piecewiselinfunc.piecewiselinfunc method)": [[1, "pyspike.PieceWiseLinFunc.PieceWiseLinFunc.get_plottable_data"]], "get_spikes_non_empty() (pyspike.spiketrain.spiketrain method)": [[1, "pyspike.SpikeTrain.SpikeTrain.get_spikes_non_empty"]], "import_spike_trains_from_time_series() (in module pyspike.spikes)": [[1, "pyspike.spikes.import_spike_trains_from_time_series"]], "integral() (pyspike.discretefunc.discretefunc method)": [[1, "pyspike.DiscreteFunc.DiscreteFunc.integral"]], "integral() (pyspike.piecewiseconstfunc.piecewiseconstfunc method)": [[1, "pyspike.PieceWiseConstFunc.PieceWiseConstFunc.integral"]], "integral() (pyspike.piecewiselinfunc.piecewiselinfunc method)": [[1, "pyspike.PieceWiseLinFunc.PieceWiseLinFunc.integral"]], "isi_distance() (in module pyspike.isi_distance)": [[1, "pyspike.isi_distance.isi_distance"]], "isi_distance_bi() (in module pyspike.isi_distance)": [[1, "pyspike.isi_distance.isi_distance_bi"]], "isi_distance_matrix() (in module pyspike.isi_distance)": [[1, "pyspike.isi_distance.isi_distance_matrix"]], "isi_distance_multi() (in module pyspike.isi_distance)": [[1, "pyspike.isi_distance.isi_distance_multi"]], "isi_profile() (in module pyspike.isi_distance)": [[1, "pyspike.isi_distance.isi_profile"]], "isi_profile_bi() (in module pyspike.isi_distance)": [[1, "pyspike.isi_distance.isi_profile_bi"]], "isi_profile_multi() (in module pyspike.isi_distance)": [[1, "pyspike.isi_distance.isi_profile_multi"]], "load_spike_trains_from_txt() (in module pyspike.spikes)": [[1, "pyspike.spikes.load_spike_trains_from_txt"]], "merge_spike_trains() (in module pyspike.spikes)": [[1, "pyspike.spikes.merge_spike_trains"]], "module": [[1, "module-pyspike.DiscreteFunc"], [1, "module-pyspike.PieceWiseConstFunc"], [1, "module-pyspike.PieceWiseLinFunc"], [1, "module-pyspike.SpikeTrain"], [1, "module-pyspike.isi_distance"], [1, "module-pyspike.psth"], [1, "module-pyspike.spike_directionality"], [1, "module-pyspike.spike_distance"], [1, "module-pyspike.spike_sync"], [1, "module-pyspike.spikes"]], "mul_scalar() (pyspike.discretefunc.discretefunc method)": [[1, "pyspike.DiscreteFunc.DiscreteFunc.mul_scalar"]], "mul_scalar() (pyspike.piecewiseconstfunc.piecewiseconstfunc method)": [[1, "pyspike.PieceWiseConstFunc.PieceWiseConstFunc.mul_scalar"]], "mul_scalar() (pyspike.piecewiselinfunc.piecewiselinfunc method)": [[1, "pyspike.PieceWiseLinFunc.PieceWiseLinFunc.mul_scalar"]], "optimal_spike_train_sorting() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.optimal_spike_train_sorting"]], "permutate_matrix() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.permutate_matrix"]], "psth() (in module pyspike.psth)": [[1, "pyspike.psth.psth"]], "pyspike.discretefunc": [[1, "module-pyspike.DiscreteFunc"]], "pyspike.piecewiseconstfunc": [[1, "module-pyspike.PieceWiseConstFunc"]], "pyspike.piecewiselinfunc": [[1, "module-pyspike.PieceWiseLinFunc"]], "pyspike.spiketrain": [[1, "module-pyspike.SpikeTrain"]], "pyspike.isi_distance": [[1, "module-pyspike.isi_distance"]], "pyspike.psth": [[1, "module-pyspike.psth"]], "pyspike.spike_directionality": [[1, "module-pyspike.spike_directionality"]], "pyspike.spike_distance": [[1, "module-pyspike.spike_distance"]], "pyspike.spike_sync": [[1, "module-pyspike.spike_sync"]], "pyspike.spikes": [[1, "module-pyspike.spikes"]], "reconcile_spike_trains() (in module pyspike.spikes)": [[1, "pyspike.spikes.reconcile_spike_trains"]], "reconcile_spike_trains_bi() (in module pyspike.spikes)": [[1, "pyspike.spikes.reconcile_spike_trains_bi"]], "save_spike_trains_to_txt() (in module pyspike.spikes)": [[1, "pyspike.spikes.save_spike_trains_to_txt"]], "sort() (pyspike.spiketrain.spiketrain method)": [[1, "pyspike.SpikeTrain.SpikeTrain.sort"]], "spike_directionality() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.spike_directionality"]], "spike_directionality_matrix() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.spike_directionality_matrix"]], "spike_directionality_values() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.spike_directionality_values"]], "spike_distance() (in module pyspike.spike_distance)": [[1, "pyspike.spike_distance.spike_distance"]], "spike_distance_bi() (in module pyspike.spike_distance)": [[1, "pyspike.spike_distance.spike_distance_bi"]], "spike_distance_matrix() (in module pyspike.spike_distance)": [[1, "pyspike.spike_distance.spike_distance_matrix"]], "spike_distance_multi() (in module pyspike.spike_distance)": [[1, "pyspike.spike_distance.spike_distance_multi"]], "spike_profile() (in module pyspike.spike_distance)": [[1, "pyspike.spike_distance.spike_profile"]], "spike_profile_bi() (in module pyspike.spike_distance)": [[1, "pyspike.spike_distance.spike_profile_bi"]], "spike_profile_multi() (in module pyspike.spike_distance)": [[1, "pyspike.spike_distance.spike_profile_multi"]], "spike_sync() (in module pyspike.spike_sync)": [[1, "pyspike.spike_sync.spike_sync"]], "spike_sync_bi() (in module pyspike.spike_sync)": [[1, "pyspike.spike_sync.spike_sync_bi"]], "spike_sync_matrix() (in module pyspike.spike_sync)": [[1, "pyspike.spike_sync.spike_sync_matrix"]], "spike_sync_multi() (in module pyspike.spike_sync)": [[1, "pyspike.spike_sync.spike_sync_multi"]], "spike_sync_profile() (in module pyspike.spike_sync)": [[1, "pyspike.spike_sync.spike_sync_profile"]], "spike_sync_profile_bi() (in module pyspike.spike_sync)": [[1, "pyspike.spike_sync.spike_sync_profile_bi"]], "spike_sync_profile_multi() (in module pyspike.spike_sync)": [[1, "pyspike.spike_sync.spike_sync_profile_multi"]], "spike_train_from_string() (in module pyspike.spikes)": [[1, "pyspike.spikes.spike_train_from_string"]], "spike_train_order() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.spike_train_order"]], "spike_train_order_bi() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.spike_train_order_bi"]], "spike_train_order_multi() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.spike_train_order_multi"]], "spike_train_order_profile() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.spike_train_order_profile"]], "spike_train_order_profile_bi() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.spike_train_order_profile_bi"]], "spike_train_order_profile_multi() (in module pyspike.spike_directionality)": [[1, "pyspike.spike_directionality.spike_train_order_profile_multi"]]}}) \ No newline at end of file diff --git a/doc/_build/html/tutorial.html b/doc/_build/html/tutorial.html deleted file mode 100644 index bc73a49..0000000 --- a/doc/_build/html/tutorial.html +++ /dev/null @@ -1,397 +0,0 @@ - - - - - - - - - Spike trains — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -
-

Spike trains

-

In PySpike, spike trains are represented by SpikeTrain objects. -A SpikeTrain object consists of the spike times given as numpy arrays as well as the edges of the spike train as [t_start, t_end]. -The following code creates such a spike train with some arbitrary spike times:

-
import numpy as np
-from pyspike import SpikeTrain
-
-spike_train = SpikeTrain(np.array([0.1, 0.3, 0.45, 0.6, 0.9], [0.0, 1.0]))
-
-
-
-

Loading from text files

-

Typically, spike train data is loaded into PySpike from data files. -The most straight-forward data files are text files where each line represents one spike train given as an sequence of spike times. -An exemplary file with several spike trains is PySpike_testdata.txt. -To quickly obtain spike trains from such files, PySpike provides the function load_spike_trains_from_txt().

-
import numpy as np
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("SPIKY_testdata.txt",
-                                              edges=(0, 4000))
-
-
-

This function expects the name of the data file as first parameter. -Furthermore, the time interval of the spike train measurement (edges of the spike trains) should be provided as a pair of start- and end-time values. -Furthermore, the spike trains are sorted via np.sort (disable this feature by providing is_sorted=True as a parameter to the load function). -As result, load_spike_trains_from_txt() returns a list of arrays containing the spike trains in the text file.

-

Important note:

-
-

Spike trains are expected to be sorted! -For performance reasons, the PySpike distance functions do not check if the spike trains provided are indeed sorted. -Make sure that all your spike trains are sorted, which is ensured if you use the load_spike_trains_from_txt() function with the parameter is_sorted=False (default). -If in doubt, use SpikeTrain.sort() to ensure a correctly sorted spike train.

-

Alternatively the function reconcile_spike_trains() applies three fixes to a list of SpikeTrain objects. It sorts -the times, it removes all but one of any duplicated time, and it ensures all t_start and t_end values are compatible

-
from pyspike.spikes import reconcile_spike_trains
-spike_trains = reconcile_spike_trains(spike_trains)
-
-
-

If you need to copy a spike train, use the SpikeTrain.copy() method. -Simple assignment t2 = t1 does not create a copy of the spike train data, but a reference as numpy.array is used for storing the data.

-
-
-
-

PySpike algorithms

-

PySpike supports four basic algorithms for comparing spike trains and their adaptive generalizations

-

The basic algorithms are:

-
    -
  1. ISI-distance (Inter Spike Intervals)

  2. -
  3. SPIKE-distance

  4. -
  5. Rate-Independent SPIKE-distance (RI-SPIKE)

  6. -
  7. SPIKE sychronization

  8. -
-

plus

-

(5-8) Adaptive generalizations of 1-4 based on the MRTS (Minimum Relevant Time Scale) parameter

-

Algorithms 3 and 5-8 are new in version 0.8.0.

-
-

ISI-distance

-

The following code loads some exemplary spike trains, computes the dissimilarity profile of the ISI-distance of the first two SpikeTrain s, and plots it with matplotlib:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-isi_profile = spk.isi_profile(spike_trains[0], spike_trains[1])
-x, y = isi_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("ISI distance: %.8f" % isi_profile.avrg())
-plt.show()
-
-
-

The ISI-profile is a piece-wise constant function, and hence the function isi_profile() returns an instance of the PieceWiseConstFunc class. -As shown above, this class allows you to obtain arrays that can be used to plot the function with plt.plt, but also to compute the time average, which amounts to the final scalar ISI-distance. -By default, the time average is computed for the whole PieceWiseConstFunc function. -However, it is also possible to obtain the average of a specific interval by providing a pair of floats defining the start and end of the interval. -For the above example, the following code computes the ISI-distances obtained from averaging the ISI-profile over four different intervals:

-
isi1 = isi_profile.avrg(interval=(0, 1000))
-isi2 = isi_profile.avrg(interval=(1000, 2000))
-isi3 = isi_profile.avrg(interval=[(0, 1000), (2000, 3000)])
-isi4 = isi_profile.avrg(interval=[(1000, 2000), (3000, 4000)])
-
-
-

Note, how also multiple intervals can be supplied by giving a list of tuples.

-

If you are only interested in the scalar ISI-distance and not the profile, you can simply use:

-
isi_dist = spk.isi_distance(spike_trains[0], spike_trains[1], interval=(0, 1000))
-
-
-

where interval is optional, as above, and if omitted the ISI-distance is computed for the complete spike train.

-
-
-

SPIKE-distance

-

To compute for the spike distance profile you use the function spike_profile() instead of isi_profile above. -But the general approach is very similar:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-spike_profile = spk.spike_profile(spike_trains[0], spike_trains[1])
-x, y = spike_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("SPIKE distance: %.8f" % spike_profile.avrg())
-plt.show()
-
-
-

This short example computes and plots the SPIKE-profile of the first two spike trains in the file PySpike_testdata.txt.

-

In contrast to the ISI-profile, a SPIKE-profile is a piece-wise linear function and is therefore represented by a PieceWiseLinFunc object. -Just like the PieceWiseConstFunc for the ISI-profile, the PieceWiseLinFunc provides a PieceWiseLinFunc.get_plottable_data() member function that returns arrays that can be used directly to plot the function. -Furthermore, the PieceWiseLinFunc.avrg() member function returns the average of the profile defined as the overall SPIKE distance. -As above, you can provide an interval as a pair of floats as well as a sequence of such pairs to avrg to specify the averaging interval if required.

-

Again, you can use:

-
spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], interval=ival)
-
-
-

to compute the SPIKE distance directly, if you are not interested in the profile at all. -The parameter interval is optional and if neglected the whole time interval is used.

-
-
-

Rate-Independent SPIKE-distance

-

This variant of the SPIKE-distance disregards any differences in base rates and focuses purely on spike timing. -It can be calculated by setting the optional parameter “RI=True”:

-
ri_spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], RI=True)
-
-
-
-
-

SPIKE synchronization

-

Important note:

-
-
-

SPIKE-Synchronization measures similarity. -That means, a value of zero indicates absence of synchrony, while a value of one denotes the presence of synchrony. -This is exactly opposite to the other two measures: ISI- and SPIKE-distance.

-
-
-

SPIKE synchronization is another approach to measure spike synchrony. -In contrast to the SPIKE- and ISI-distance, it measures similarity instead of dissimilarity, i.e. higher values represent larger synchrony. -Another difference is that the SPIKE synchronization profile is only defined exactly at the spike times, not for the whole interval of the spike trains. -Therefore, it is represented by a DiscreteFunction.

-

To compute for the spike synchronization profile, PySpike provides the function spike_sync_profile(). -The general handling of the profile, however, is similar to the other profiles above:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-spike_profile = spk.spike_sync_profile(spike_trains[0], spike_trains[1])
-x, y = spike_profile.get_plottable_data()
-
-
-

For the direct computation of the overall spike synchronization value within some interval, the spike_sync() function can be used:

-
spike_sync = spk.spike_sync(spike_trains[0], spike_trains[1], interval=ival)
-
-
-
-
-

Adaptive generalizations

-

The adaptive generalizations for all four of these basic measures can be calculated by setting the optional parameter “MRTS=<value>” (MRTS - Minimum Relevant Time Scale). -If <value> is greater than zero the respective basic algorithm is modified to reduce emphasis on smaller spike time differences. -If MRTS is set to ‘auto’, the threshold is automatically extracted from the data.

-

Here are a few example lines:

-
a_isi_dist = spk.isi_distance(spike_trains, MRTS=10)
-
-a_spike_profile = spk.spike_profile(spike_trains, MRTS=20)
-
-a_ri_spike_matrix = spk.spike_distance_matrix(spike_trains[0], spike_trains[1], RI=True, MRTS=50)
-
-a_spike_sync_auto = spk.spike_sync(spike_trains[0], spike_trains[1], MRTS='auto')
-
-
-
-
-
-

Computing multivariate profiles and distances

-

To compute the multivariate ISI-profile, SPIKE-profile or SPIKE-Synchronization profile for a set of spike trains, simply provide a list of spike trains to the profile or distance functions. -The following example computes the multivariate ISI-, SPIKE- and SPIKE-Sync-profile for a list of spike trains:

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-avrg_isi_profile = spk.isi_profile(spike_trains)
-avrg_spike_profile = spk.spike_profile(spike_trains)
-avrg_spike_sync_profile = spk.spike_sync_profile(spike_trains)
-
-
-

All functions also take an optional parameter indices, a list of indices that allows to define the spike trains that should be used for the multivariate profile. -As before, if you are only interested in the distance values, and not in the profile, you can call the functions: isi_distance(), spike_distance() and spike_sync() with a list of spike trains. -They return the scalar overall multivariate ISI-, SPIKE-distance or the SPIKE-Synchronization value.

-

The following code is equivalent to the bivariate example above, computing the ISI-Distance between the first two spike trains in the given interval using the indices parameter:

-
isi_dist = spk.isi_distance(spike_trains, indices=[0, 1], interval=(0, 1000))
-
-
-

As you can see, the distance functions also accept an interval parameter that can be used to specify the begin and end of the averaging interval as a pair of floats, if neglected the complete interval is used.

-

Note:

-
-
-

Instead of providing lists of spike trains to the profile or distance functions, you can also call those functions with many spike trains as (unnamed) parameters, e.g.:

-
# st1, st2, st3, st4 are spike trains
-spike_prof = spk.spike_profile(st1, st2, st3, st4)
-
-
-
-
-

Another option to characterize large sets of spike trains are distance matrices. -Each entry in the distance matrix represents a bivariate distance (similarity for SPIKE-Synchronization) of two spike trains. -The distance matrix is symmetric and has zero values (ones) at the diagonal and is computed with the functions isi_distance_matrix(), spike_distance_matrix() and spike_sync_matrix(). -The following example computes and plots the ISI- and SPIKE-distance matrix as well as the SPIKE-Synchronization-matrix, with different intervals.

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", 4000)
-
-plt.figure()
-isi_distance = spk.isi_distance_matrix(spike_trains)
-plt.imshow(isi_distance, interpolation='none')
-plt.title("ISI-distance")
-
-plt.figure()
-spike_distance = spk.spike_distance_matrix(spike_trains, interval=(0,1000))
-plt.imshow(spike_distance, interpolation='none')
-plt.title("SPIKE-distance")
-
-plt.figure()
-spike_sync = spk.spike_sync_matrix(spike_trains, interval=(2000,4000))
-plt.imshow(spike_sync, interpolation='none')
-plt.title("SPIKE-Sync")
-
-plt.show()
-
-
-
-
-

Quantifying Leaders and Followers: Spike Train Order

-

PySpike provides functionality to quantify how much a set of spike trains -resembles a synfire pattern (ie perfect leader-follower pattern). For details -on the algorithms please see -our article in NJP.

-

The following example computes the Spike Order profile and Synfire Indicator -of two Poissonian spike trains.

-
import numpy as np
-from matplotlib import pyplot as plt
-import pyspike as spk
-
-
-st1 = spk.generate_poisson_spikes(1.0, [0, 20])
-st2 = spk.generate_poisson_spikes(1.0, [0, 20])
-
-d = spk.spike_directionality(st1, st2)
-
-print "Spike Directionality of two Poissonian spike trains:", d
-
-E = spk.spike_train_order_profile(st1, st2)
-
-plt.figure()
-x, y = E.get_plottable_data()
-plt.plot(x, y, '-ob')
-plt.ylim(-1.1, 1.1)
-plt.xlabel("t")
-plt.ylabel("E")
-plt.title("Spike Train Order Profile")
-
-plt.show()
-
-
-

Additionally, PySpike can also compute the optimal ordering of the spike trains, -ie the ordering that most resembles a synfire pattern. The following example -computes the optimal order of a set of 20 Poissonian spike trains:

-
M = 20
-spike_trains = [spk.generate_poisson_spikes(1.0, [0, 100]) for m in xrange(M)]
-
-F_init = spk.spike_train_order(spike_trains)
-print "Initial Synfire Indicator for 20 Poissonian spike trains:", F_init
-
-D_init = spk.spike_directionality_matrix(spike_trains)
-phi, _ = spk.optimal_spike_train_sorting(spike_trains)
-F_opt = spk.spike_train_order(spike_trains, indices=phi)
-print "Synfire Indicator of optimized spike train sorting:", F_opt
-
-D_opt = spk.permutate_matrix(D_init, phi)
-
-plt.figure()
-plt.imshow(D_init)
-plt.title("Initial Directionality Matrix")
-
-plt.figure()
-plt.imshow(D_opt)
-plt.title("Optimized Directionality Matrix")
-
-plt.show()
-
-
-
- - -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/index.html b/index.html deleted file mode 100644 index 038977c..0000000 --- a/index.html +++ /dev/null @@ -1,574 +0,0 @@ - - - - - - - - - PySpike — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - - -
-
-
-
- -
-

PySpike

-https://badge.fury.io/py/pyspike.png -https://travis-ci.org/mariomulansky/PySpike.svg?branch=master -

PySpike is a Python library for the numerical analysis of spike train similarity. -Its core functionality is the implementation of the ISI-distance [1] and SPIKE-distance [2], SPIKE-Synchronization [3], as well as their adaptive generalizations [4]. -It provides functions to compute multivariate profiles, distance matrices, as well as averaging and general spike train processing. -All computation intensive parts are implemented in C via cython to reach a competitive performance (factor 100-200 over plain Python).

-

PySpike provides the same fundamental functionality as the SPIKY framework for Matlab, which additionally contains spike-train generators, more spike train distance measures and many visualization routines.

-

All source codes are available on Github and are published under the BSD_License.

-
-

Citing PySpike

-
-
If you use PySpike in your research, please cite our SoftwareX publication on PySpike:

Mario Mulansky, Thomas Kreuz, PySpike - A Python library for analyzing spike train synchrony, Software X 5, 183 (2016) [pdf]

-
-
-

Additionally, depending on the used methods: ISI-distance [1], SPIKE-distance [2], SPIKE-Synchronization [3], or their adaptive generalizations [4], please cite one or more of the following publications:

- -
-
-

Important Changelog

-

With version 0.8.0, Adaptive and Rate Independent algorithms are supported.

-

With version 0.7.0, support for Python 2 was dropped, PySpike now officially supports -Python 3.7, 3.8, 3.9, 3.10.

-

With version 0.6.0, the spike directionality and spike train order function have been added.

-

With version 0.5.0, the interfaces have been unified and the specific functions for multivariate computations have become deprecated.

-

With version 0.2.0, the SpikeTrain class has been introduced to represent spike trains. -This is a breaking change in the function interfaces. -Hence, programs written for older versions of PySpike (0.1.x) will not run with newer versions.

-
-
-

Requirements and Installation

-

PySpike is available at Python Package Index and this is the easiest way to obtain the PySpike package. -If you have pip installed, just run

-
sudo pip install pyspike
-
-
-

to install pyspike. -PySpike requires numpy as minimal requirement, as well as a C compiler to generate the binaries.

-
-

Install from Github sources

-

You can also obtain the latest PySpike developer version from the github repository. -For that, make sure you have the following Python libraries installed:

-
    -
  • numpy

  • -
  • cython

  • -
  • matplotlib (for the examples)

  • -
  • pytest (for running the tests)

  • -
  • scipy (also for the tests)

  • -
-

In particular, make sure that cython is configured properly and able to locate a C compiler, otherwise PySpike will use the much slower Python implementations.

-

To install PySpike, simply download the source, e.g. from Github, and run the setup.py script:

-
git clone https://github.com/mariomulansky/PySpike.git
-cd PySpike
-python setup.py build_ext --inplace
-
-
-

Then you can run the tests using the pytest test framework:

-
pytest
-
-
-

Finally, you should make PySpike’s installation folder known to Python to be able to import pyspike in your own projects. -Therefore, add your /path/to/PySpike to the $PYTHONPATH environment variable.

-
-
-
-

Examples

-

The following code loads some exemplary spike trains, computes the dissimilarity profile of the ISI-distance of the first two SpikeTrain objects, and plots it with matplotlib:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-isi_profile = spk.isi_profile(spike_trains[0], spike_trains[1])
-x, y = isi_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("ISI distance: %.8f" % isi_profile.avrg())
-plt.show()
-
-
-

The following example computes the multivariate ISI-, SPIKE- and SPIKE-Sync-profile for a list of spike trains loaded from a text file:

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-avrg_isi_profile = spk.isi_profile(spike_trains)
-avrg_spike_profile = spk.spike_profile(spike_trains)
-avrg_spike_sync_profile = spk.spike_sync_profile(spike_trains)
-
-
-

More examples with detailed descriptions can be found in the tutorial section.

-
-

The work on PySpike was supported by the European Comission through the Marie -Curie Initial Training Network Neural Engineering Transformative Technologies -(NETT) under the project number 289146.

-
-
Python/C Programming:
    -
  • Mario Mulansky

  • -
  • Edmund J Butler

  • -
-
-
Scientific Methods:
    -
  • Thomas Kreuz

  • -
  • Daniel Chicharro

  • -
  • Conor Houghton

  • -
  • Nebojsa Bozanic

  • -
  • Mario Mulansky

  • -
-
-
-
-
-
-

Tutorial

-
-

Spike trains

-

In PySpike, spike trains are represented by SpikeTrain objects. -A SpikeTrain object consists of the spike times given as numpy arrays as well as the edges of the spike train as [t_start, t_end]. -The following code creates such a spike train with some arbitrary spike times:

-
import numpy as np
-from pyspike import SpikeTrain
-
-spike_train = SpikeTrain(np.array([0.1, 0.3, 0.45, 0.6, 0.9], [0.0, 1.0]))
-
-
-
-

Loading from text files

-

Typically, spike train data is loaded into PySpike from data files. -The most straight-forward data files are text files where each line represents one spike train given as an sequence of spike times. -An exemplary file with several spike trains is PySpike_testdata.txt. -To quickly obtain spike trains from such files, PySpike provides the function load_spike_trains_from_txt().

-
import numpy as np
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("SPIKY_testdata.txt",
-                                              edges=(0, 4000))
-
-
-

This function expects the name of the data file as first parameter. -Furthermore, the time interval of the spike train measurement (edges of the spike trains) should be provided as a pair of start- and end-time values. -Furthermore, the spike trains are sorted via np.sort (disable this feature by providing is_sorted=True as a parameter to the load function). -As result, load_spike_trains_from_txt() returns a list of arrays containing the spike trains in the text file.

-

Important note:

-
-

Spike trains are expected to be sorted! -For performance reasons, the PySpike distance functions do not check if the spike trains provided are indeed sorted. -Make sure that all your spike trains are sorted, which is ensured if you use the load_spike_trains_from_txt() function with the parameter is_sorted=False (default). -If in doubt, use SpikeTrain.sort() to ensure a correctly sorted spike train.

-

Alternatively the function reconcile_spike_trains() applies three fixes to a list of SpikeTrain objects. It sorts -the times, it removes all but one of any duplicated time, and it ensures all t_start and t_end values are compatible

-
from pyspike.spikes import reconcile_spike_trains
-spike_trains = reconcile_spike_trains(spike_trains)
-
-
-

If you need to copy a spike train, use the SpikeTrain.copy() method. -Simple assignment t2 = t1 does not create a copy of the spike train data, but a reference as numpy.array is used for storing the data.

-
-
-
-

PySpike algorithms

-

PySpike supports four basic algorithms for comparing spike trains and their adaptive generalizations

-

The basic algorithms are:

-
    -
  1. ISI-distance (Inter Spike Intervals)

  2. -
  3. SPIKE-distance

  4. -
  5. Rate-Independent SPIKE-distance (RI-SPIKE)

  6. -
  7. SPIKE sychronization

  8. -
-

plus

-

(5-8) Adaptive generalizations of 1-4 based on the MRTS (Minimum Relevant Time Scale) parameter

-

Algorithms 3 and 5-8 are new in version 0.8.0.

-
-

ISI-distance

-

The following code loads some exemplary spike trains, computes the dissimilarity profile of the ISI-distance of the first two SpikeTrain s, and plots it with matplotlib:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-isi_profile = spk.isi_profile(spike_trains[0], spike_trains[1])
-x, y = isi_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("ISI distance: %.8f" % isi_profile.avrg())
-plt.show()
-
-
-

The ISI-profile is a piece-wise constant function, and hence the function isi_profile() returns an instance of the PieceWiseConstFunc class. -As shown above, this class allows you to obtain arrays that can be used to plot the function with plt.plt, but also to compute the time average, which amounts to the final scalar ISI-distance. -By default, the time average is computed for the whole PieceWiseConstFunc function. -However, it is also possible to obtain the average of a specific interval by providing a pair of floats defining the start and end of the interval. -For the above example, the following code computes the ISI-distances obtained from averaging the ISI-profile over four different intervals:

-
isi1 = isi_profile.avrg(interval=(0, 1000))
-isi2 = isi_profile.avrg(interval=(1000, 2000))
-isi3 = isi_profile.avrg(interval=[(0, 1000), (2000, 3000)])
-isi4 = isi_profile.avrg(interval=[(1000, 2000), (3000, 4000)])
-
-
-

Note, how also multiple intervals can be supplied by giving a list of tuples.

-

If you are only interested in the scalar ISI-distance and not the profile, you can simply use:

-
isi_dist = spk.isi_distance(spike_trains[0], spike_trains[1], interval=(0, 1000))
-
-
-

where interval is optional, as above, and if omitted the ISI-distance is computed for the complete spike train.

-
-
-

SPIKE-distance

-

To compute for the spike distance profile you use the function spike_profile() instead of isi_profile above. -But the general approach is very similar:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-spike_profile = spk.spike_profile(spike_trains[0], spike_trains[1])
-x, y = spike_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("SPIKE distance: %.8f" % spike_profile.avrg())
-plt.show()
-
-
-

This short example computes and plots the SPIKE-profile of the first two spike trains in the file PySpike_testdata.txt.

-

In contrast to the ISI-profile, a SPIKE-profile is a piece-wise linear function and is therefore represented by a PieceWiseLinFunc object. -Just like the PieceWiseConstFunc for the ISI-profile, the PieceWiseLinFunc provides a PieceWiseLinFunc.get_plottable_data() member function that returns arrays that can be used directly to plot the function. -Furthermore, the PieceWiseLinFunc.avrg() member function returns the average of the profile defined as the overall SPIKE distance. -As above, you can provide an interval as a pair of floats as well as a sequence of such pairs to avrg to specify the averaging interval if required.

-

Again, you can use:

-
spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], interval=ival)
-
-
-

to compute the SPIKE distance directly, if you are not interested in the profile at all. -The parameter interval is optional and if neglected the whole time interval is used.

-
-
-

Rate-Independent SPIKE-distance

-

This variant of the SPIKE-distance disregards any differences in base rates and focuses purely on spike timing. -It can be calculated by setting the optional parameter “RI=True”:

-
ri_spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], RI=True)
-
-
-
-
-

SPIKE synchronization

-

Important note:

-
-
-

SPIKE-Synchronization measures similarity. -That means, a value of zero indicates absence of synchrony, while a value of one denotes the presence of synchrony. -This is exactly opposite to the other two measures: ISI- and SPIKE-distance.

-
-
-

SPIKE synchronization is another approach to measure spike synchrony. -In contrast to the SPIKE- and ISI-distance, it measures similarity instead of dissimilarity, i.e. higher values represent larger synchrony. -Another difference is that the SPIKE synchronization profile is only defined exactly at the spike times, not for the whole interval of the spike trains. -Therefore, it is represented by a DiscreteFunction.

-

To compute for the spike synchronization profile, PySpike provides the function spike_sync_profile(). -The general handling of the profile, however, is similar to the other profiles above:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-spike_profile = spk.spike_sync_profile(spike_trains[0], spike_trains[1])
-x, y = spike_profile.get_plottable_data()
-
-
-

For the direct computation of the overall spike synchronization value within some interval, the spike_sync() function can be used:

-
spike_sync = spk.spike_sync(spike_trains[0], spike_trains[1], interval=ival)
-
-
-
-
-

Adaptive generalizations

-

The adaptive generalizations for all four of these basic measures can be calculated by setting the optional parameter “MRTS=<value>” (MRTS - Minimum Relevant Time Scale). -If <value> is greater than zero the respective basic algorithm is modified to reduce emphasis on smaller spike time differences. -If MRTS is set to ‘auto’, the threshold is automatically extracted from the data.

-

Here are a few example lines:

-
a_isi_dist = spk.isi_distance(spike_trains, MRTS=10)
-
-a_spike_profile = spk.spike_profile(spike_trains, MRTS=20)
-
-a_ri_spike_matrix = spk.spike_distance_matrix(spike_trains[0], spike_trains[1], RI=True, MRTS=50)
-
-a_spike_sync_auto = spk.spike_sync(spike_trains[0], spike_trains[1], MRTS='auto')
-
-
-
-
-
-

Computing multivariate profiles and distances

-

To compute the multivariate ISI-profile, SPIKE-profile or SPIKE-Synchronization profile for a set of spike trains, simply provide a list of spike trains to the profile or distance functions. -The following example computes the multivariate ISI-, SPIKE- and SPIKE-Sync-profile for a list of spike trains:

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-avrg_isi_profile = spk.isi_profile(spike_trains)
-avrg_spike_profile = spk.spike_profile(spike_trains)
-avrg_spike_sync_profile = spk.spike_sync_profile(spike_trains)
-
-
-

All functions also take an optional parameter indices, a list of indices that allows to define the spike trains that should be used for the multivariate profile. -As before, if you are only interested in the distance values, and not in the profile, you can call the functions: isi_distance(), spike_distance() and spike_sync() with a list of spike trains. -They return the scalar overall multivariate ISI-, SPIKE-distance or the SPIKE-Synchronization value.

-

The following code is equivalent to the bivariate example above, computing the ISI-Distance between the first two spike trains in the given interval using the indices parameter:

-
isi_dist = spk.isi_distance(spike_trains, indices=[0, 1], interval=(0, 1000))
-
-
-

As you can see, the distance functions also accept an interval parameter that can be used to specify the begin and end of the averaging interval as a pair of floats, if neglected the complete interval is used.

-

Note:

-
-
-

Instead of providing lists of spike trains to the profile or distance functions, you can also call those functions with many spike trains as (unnamed) parameters, e.g.:

-
# st1, st2, st3, st4 are spike trains
-spike_prof = spk.spike_profile(st1, st2, st3, st4)
-
-
-
-
-

Another option to characterize large sets of spike trains are distance matrices. -Each entry in the distance matrix represents a bivariate distance (similarity for SPIKE-Synchronization) of two spike trains. -The distance matrix is symmetric and has zero values (ones) at the diagonal and is computed with the functions isi_distance_matrix(), spike_distance_matrix() and spike_sync_matrix(). -The following example computes and plots the ISI- and SPIKE-distance matrix as well as the SPIKE-Synchronization-matrix, with different intervals.

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", 4000)
-
-plt.figure()
-isi_distance = spk.isi_distance_matrix(spike_trains)
-plt.imshow(isi_distance, interpolation='none')
-plt.title("ISI-distance")
-
-plt.figure()
-spike_distance = spk.spike_distance_matrix(spike_trains, interval=(0,1000))
-plt.imshow(spike_distance, interpolation='none')
-plt.title("SPIKE-distance")
-
-plt.figure()
-spike_sync = spk.spike_sync_matrix(spike_trains, interval=(2000,4000))
-plt.imshow(spike_sync, interpolation='none')
-plt.title("SPIKE-Sync")
-
-plt.show()
-
-
-
-
-

Quantifying Leaders and Followers: Spike Train Order

-

PySpike provides functionality to quantify how much a set of spike trains -resembles a synfire pattern (ie perfect leader-follower pattern). For details -on the algorithms please see -our article in NJP.

-

The following example computes the Spike Order profile and Synfire Indicator -of two Poissonian spike trains.

-
import numpy as np
-from matplotlib import pyplot as plt
-import pyspike as spk
-
-
-st1 = spk.generate_poisson_spikes(1.0, [0, 20])
-st2 = spk.generate_poisson_spikes(1.0, [0, 20])
-
-d = spk.spike_directionality(st1, st2)
-
-print "Spike Directionality of two Poissonian spike trains:", d
-
-E = spk.spike_train_order_profile(st1, st2)
-
-plt.figure()
-x, y = E.get_plottable_data()
-plt.plot(x, y, '-ob')
-plt.ylim(-1.1, 1.1)
-plt.xlabel("t")
-plt.ylabel("E")
-plt.title("Spike Train Order Profile")
-
-plt.show()
-
-
-

Additionally, PySpike can also compute the optimal ordering of the spike trains, -ie the ordering that most resembles a synfire pattern. The following example -computes the optimal order of a set of 20 Poissonian spike trains:

-
M = 20
-spike_trains = [spk.generate_poisson_spikes(1.0, [0, 100]) for m in xrange(M)]
-
-F_init = spk.spike_train_order(spike_trains)
-print "Initial Synfire Indicator for 20 Poissonian spike trains:", F_init
-
-D_init = spk.spike_directionality_matrix(spike_trains)
-phi, _ = spk.optimal_spike_train_sorting(spike_trains)
-F_opt = spk.spike_train_order(spike_trains, indices=phi)
-print "Synfire Indicator of optimized spike train sorting:", F_opt
-
-D_opt = spk.permutate_matrix(D_init, phi)
-
-plt.figure()
-plt.imshow(D_init)
-plt.title("Initial Directionality Matrix")
-
-plt.figure()
-plt.imshow(D_opt)
-plt.title("Optimized Directionality Matrix")
-
-plt.show()
-
-
-
-
-
-

Reference

- -
-
-

Indices and tables

- -
- - -
-
-
-
- -
-
- - - - \ No newline at end of file diff --git a/tutorial.html b/tutorial.html deleted file mode 100644 index bc73a49..0000000 --- a/tutorial.html +++ /dev/null @@ -1,397 +0,0 @@ - - - - - - - - - Spike trains — PySpike 0.8.0 documentation - - - - - - - - - - - - - - - -
-
-
-
- -
-

Spike trains

-

In PySpike, spike trains are represented by SpikeTrain objects. -A SpikeTrain object consists of the spike times given as numpy arrays as well as the edges of the spike train as [t_start, t_end]. -The following code creates such a spike train with some arbitrary spike times:

-
import numpy as np
-from pyspike import SpikeTrain
-
-spike_train = SpikeTrain(np.array([0.1, 0.3, 0.45, 0.6, 0.9], [0.0, 1.0]))
-
-
-
-

Loading from text files

-

Typically, spike train data is loaded into PySpike from data files. -The most straight-forward data files are text files where each line represents one spike train given as an sequence of spike times. -An exemplary file with several spike trains is PySpike_testdata.txt. -To quickly obtain spike trains from such files, PySpike provides the function load_spike_trains_from_txt().

-
import numpy as np
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("SPIKY_testdata.txt",
-                                              edges=(0, 4000))
-
-
-

This function expects the name of the data file as first parameter. -Furthermore, the time interval of the spike train measurement (edges of the spike trains) should be provided as a pair of start- and end-time values. -Furthermore, the spike trains are sorted via np.sort (disable this feature by providing is_sorted=True as a parameter to the load function). -As result, load_spike_trains_from_txt() returns a list of arrays containing the spike trains in the text file.

-

Important note:

-
-

Spike trains are expected to be sorted! -For performance reasons, the PySpike distance functions do not check if the spike trains provided are indeed sorted. -Make sure that all your spike trains are sorted, which is ensured if you use the load_spike_trains_from_txt() function with the parameter is_sorted=False (default). -If in doubt, use SpikeTrain.sort() to ensure a correctly sorted spike train.

-

Alternatively the function reconcile_spike_trains() applies three fixes to a list of SpikeTrain objects. It sorts -the times, it removes all but one of any duplicated time, and it ensures all t_start and t_end values are compatible

-
from pyspike.spikes import reconcile_spike_trains
-spike_trains = reconcile_spike_trains(spike_trains)
-
-
-

If you need to copy a spike train, use the SpikeTrain.copy() method. -Simple assignment t2 = t1 does not create a copy of the spike train data, but a reference as numpy.array is used for storing the data.

-
-
-
-

PySpike algorithms

-

PySpike supports four basic algorithms for comparing spike trains and their adaptive generalizations

-

The basic algorithms are:

-
    -
  1. ISI-distance (Inter Spike Intervals)

  2. -
  3. SPIKE-distance

  4. -
  5. Rate-Independent SPIKE-distance (RI-SPIKE)

  6. -
  7. SPIKE sychronization

  8. -
-

plus

-

(5-8) Adaptive generalizations of 1-4 based on the MRTS (Minimum Relevant Time Scale) parameter

-

Algorithms 3 and 5-8 are new in version 0.8.0.

-
-

ISI-distance

-

The following code loads some exemplary spike trains, computes the dissimilarity profile of the ISI-distance of the first two SpikeTrain s, and plots it with matplotlib:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-isi_profile = spk.isi_profile(spike_trains[0], spike_trains[1])
-x, y = isi_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("ISI distance: %.8f" % isi_profile.avrg())
-plt.show()
-
-
-

The ISI-profile is a piece-wise constant function, and hence the function isi_profile() returns an instance of the PieceWiseConstFunc class. -As shown above, this class allows you to obtain arrays that can be used to plot the function with plt.plt, but also to compute the time average, which amounts to the final scalar ISI-distance. -By default, the time average is computed for the whole PieceWiseConstFunc function. -However, it is also possible to obtain the average of a specific interval by providing a pair of floats defining the start and end of the interval. -For the above example, the following code computes the ISI-distances obtained from averaging the ISI-profile over four different intervals:

-
isi1 = isi_profile.avrg(interval=(0, 1000))
-isi2 = isi_profile.avrg(interval=(1000, 2000))
-isi3 = isi_profile.avrg(interval=[(0, 1000), (2000, 3000)])
-isi4 = isi_profile.avrg(interval=[(1000, 2000), (3000, 4000)])
-
-
-

Note, how also multiple intervals can be supplied by giving a list of tuples.

-

If you are only interested in the scalar ISI-distance and not the profile, you can simply use:

-
isi_dist = spk.isi_distance(spike_trains[0], spike_trains[1], interval=(0, 1000))
-
-
-

where interval is optional, as above, and if omitted the ISI-distance is computed for the complete spike train.

-
-
-

SPIKE-distance

-

To compute for the spike distance profile you use the function spike_profile() instead of isi_profile above. -But the general approach is very similar:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-spike_profile = spk.spike_profile(spike_trains[0], spike_trains[1])
-x, y = spike_profile.get_plottable_data()
-plt.plot(x, y, '--k')
-print("SPIKE distance: %.8f" % spike_profile.avrg())
-plt.show()
-
-
-

This short example computes and plots the SPIKE-profile of the first two spike trains in the file PySpike_testdata.txt.

-

In contrast to the ISI-profile, a SPIKE-profile is a piece-wise linear function and is therefore represented by a PieceWiseLinFunc object. -Just like the PieceWiseConstFunc for the ISI-profile, the PieceWiseLinFunc provides a PieceWiseLinFunc.get_plottable_data() member function that returns arrays that can be used directly to plot the function. -Furthermore, the PieceWiseLinFunc.avrg() member function returns the average of the profile defined as the overall SPIKE distance. -As above, you can provide an interval as a pair of floats as well as a sequence of such pairs to avrg to specify the averaging interval if required.

-

Again, you can use:

-
spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], interval=ival)
-
-
-

to compute the SPIKE distance directly, if you are not interested in the profile at all. -The parameter interval is optional and if neglected the whole time interval is used.

-
-
-

Rate-Independent SPIKE-distance

-

This variant of the SPIKE-distance disregards any differences in base rates and focuses purely on spike timing. -It can be calculated by setting the optional parameter “RI=True”:

-
ri_spike_dist = spk.spike_distance(spike_trains[0], spike_trains[1], RI=True)
-
-
-
-
-

SPIKE synchronization

-

Important note:

-
-
-

SPIKE-Synchronization measures similarity. -That means, a value of zero indicates absence of synchrony, while a value of one denotes the presence of synchrony. -This is exactly opposite to the other two measures: ISI- and SPIKE-distance.

-
-
-

SPIKE synchronization is another approach to measure spike synchrony. -In contrast to the SPIKE- and ISI-distance, it measures similarity instead of dissimilarity, i.e. higher values represent larger synchrony. -Another difference is that the SPIKE synchronization profile is only defined exactly at the spike times, not for the whole interval of the spike trains. -Therefore, it is represented by a DiscreteFunction.

-

To compute for the spike synchronization profile, PySpike provides the function spike_sync_profile(). -The general handling of the profile, however, is similar to the other profiles above:

-
import matplotlib.pyplot as plt
-import pyspike as spk
-
-spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-spike_profile = spk.spike_sync_profile(spike_trains[0], spike_trains[1])
-x, y = spike_profile.get_plottable_data()
-
-
-

For the direct computation of the overall spike synchronization value within some interval, the spike_sync() function can be used:

-
spike_sync = spk.spike_sync(spike_trains[0], spike_trains[1], interval=ival)
-
-
-
-
-

Adaptive generalizations

-

The adaptive generalizations for all four of these basic measures can be calculated by setting the optional parameter “MRTS=<value>” (MRTS - Minimum Relevant Time Scale). -If <value> is greater than zero the respective basic algorithm is modified to reduce emphasis on smaller spike time differences. -If MRTS is set to ‘auto’, the threshold is automatically extracted from the data.

-

Here are a few example lines:

-
a_isi_dist = spk.isi_distance(spike_trains, MRTS=10)
-
-a_spike_profile = spk.spike_profile(spike_trains, MRTS=20)
-
-a_ri_spike_matrix = spk.spike_distance_matrix(spike_trains[0], spike_trains[1], RI=True, MRTS=50)
-
-a_spike_sync_auto = spk.spike_sync(spike_trains[0], spike_trains[1], MRTS='auto')
-
-
-
-
-
-

Computing multivariate profiles and distances

-

To compute the multivariate ISI-profile, SPIKE-profile or SPIKE-Synchronization profile for a set of spike trains, simply provide a list of spike trains to the profile or distance functions. -The following example computes the multivariate ISI-, SPIKE- and SPIKE-Sync-profile for a list of spike trains:

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
-                                              edges=(0, 4000))
-avrg_isi_profile = spk.isi_profile(spike_trains)
-avrg_spike_profile = spk.spike_profile(spike_trains)
-avrg_spike_sync_profile = spk.spike_sync_profile(spike_trains)
-
-
-

All functions also take an optional parameter indices, a list of indices that allows to define the spike trains that should be used for the multivariate profile. -As before, if you are only interested in the distance values, and not in the profile, you can call the functions: isi_distance(), spike_distance() and spike_sync() with a list of spike trains. -They return the scalar overall multivariate ISI-, SPIKE-distance or the SPIKE-Synchronization value.

-

The following code is equivalent to the bivariate example above, computing the ISI-Distance between the first two spike trains in the given interval using the indices parameter:

-
isi_dist = spk.isi_distance(spike_trains, indices=[0, 1], interval=(0, 1000))
-
-
-

As you can see, the distance functions also accept an interval parameter that can be used to specify the begin and end of the averaging interval as a pair of floats, if neglected the complete interval is used.

-

Note:

-
-
-

Instead of providing lists of spike trains to the profile or distance functions, you can also call those functions with many spike trains as (unnamed) parameters, e.g.:

-
# st1, st2, st3, st4 are spike trains
-spike_prof = spk.spike_profile(st1, st2, st3, st4)
-
-
-
-
-

Another option to characterize large sets of spike trains are distance matrices. -Each entry in the distance matrix represents a bivariate distance (similarity for SPIKE-Synchronization) of two spike trains. -The distance matrix is symmetric and has zero values (ones) at the diagonal and is computed with the functions isi_distance_matrix(), spike_distance_matrix() and spike_sync_matrix(). -The following example computes and plots the ISI- and SPIKE-distance matrix as well as the SPIKE-Synchronization-matrix, with different intervals.

-
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt", 4000)
-
-plt.figure()
-isi_distance = spk.isi_distance_matrix(spike_trains)
-plt.imshow(isi_distance, interpolation='none')
-plt.title("ISI-distance")
-
-plt.figure()
-spike_distance = spk.spike_distance_matrix(spike_trains, interval=(0,1000))
-plt.imshow(spike_distance, interpolation='none')
-plt.title("SPIKE-distance")
-
-plt.figure()
-spike_sync = spk.spike_sync_matrix(spike_trains, interval=(2000,4000))
-plt.imshow(spike_sync, interpolation='none')
-plt.title("SPIKE-Sync")
-
-plt.show()
-
-
-
-
-

Quantifying Leaders and Followers: Spike Train Order

-

PySpike provides functionality to quantify how much a set of spike trains -resembles a synfire pattern (ie perfect leader-follower pattern). For details -on the algorithms please see -our article in NJP.

-

The following example computes the Spike Order profile and Synfire Indicator -of two Poissonian spike trains.

-
import numpy as np
-from matplotlib import pyplot as plt
-import pyspike as spk
-
-
-st1 = spk.generate_poisson_spikes(1.0, [0, 20])
-st2 = spk.generate_poisson_spikes(1.0, [0, 20])
-
-d = spk.spike_directionality(st1, st2)
-
-print "Spike Directionality of two Poissonian spike trains:", d
-
-E = spk.spike_train_order_profile(st1, st2)
-
-plt.figure()
-x, y = E.get_plottable_data()
-plt.plot(x, y, '-ob')
-plt.ylim(-1.1, 1.1)
-plt.xlabel("t")
-plt.ylabel("E")
-plt.title("Spike Train Order Profile")
-
-plt.show()
-
-
-

Additionally, PySpike can also compute the optimal ordering of the spike trains, -ie the ordering that most resembles a synfire pattern. The following example -computes the optimal order of a set of 20 Poissonian spike trains:

-
M = 20
-spike_trains = [spk.generate_poisson_spikes(1.0, [0, 100]) for m in xrange(M)]
-
-F_init = spk.spike_train_order(spike_trains)
-print "Initial Synfire Indicator for 20 Poissonian spike trains:", F_init
-
-D_init = spk.spike_directionality_matrix(spike_trains)
-phi, _ = spk.optimal_spike_train_sorting(spike_trains)
-F_opt = spk.spike_train_order(spike_trains, indices=phi)
-print "Synfire Indicator of optimized spike train sorting:", F_opt
-
-D_opt = spk.permutate_matrix(D_init, phi)
-
-plt.figure()
-plt.imshow(D_init)
-plt.title("Initial Directionality Matrix")
-
-plt.figure()
-plt.imshow(D_opt)
-plt.title("Optimized Directionality Matrix")
-
-plt.show()
-
-
-
- - -
-
-
-
- -
-
- - - - \ No newline at end of file