|
|
|
!function(n){var s,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(s=require("jquery"),d=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||s(e),d(e,t),n(t,0,e.document)}:(d(window,s),module.exports=n(s,window,window.document))):n(jQuery,window,document)}(function(e,t,n,r){"use strict";e=e.fn.dataTable;return e.ext.type.order["natural-time-delta-pre"]=function(e){var s=0,d=e.match(/(\d+\s*decades?\s*)?(\d+\s*years?\s*)?(\d+\s*months?\s*)?(\d+\s*weeks?\s*)?(\d+\s*days?\s*)?(\d+\s*hours?\s*)?(\d+\s*minutes?\s*)?(\d+\s*seconds?\s*)?(\d+\s*milliseconds?\s*)?(\d+\s*microseconds?\s*)?/i);d.reverse();return[{splitter:"us",name:"microsecond",mul:1e-6},{splitter:"ms",name:"millisecond",mul:.001},{splitter:"s",name:"second",mul:1},{splitter:"m",name:"minute",mul:60},{splitter:"h",name:"hour",mul:3600},{splitter:"d",name:"day",mul:86400},{splitter:"w",name:"week",mul:604800},{splitter:"w",name:"month",mul:18144e3},{splitter:"w",name:"year",mul:217728e3},{splitter:"w",name:"decade",mul:217728e4}].forEach(function(e,t){t=d[t],n=e.splitter,e=e.mul;var n,t=t===r?0:parseFloat(t.split(n)[0].trim())*e;s+=t}),s||-1},e});
|