Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated min.js

  • Loading branch information...
commit 976b8f81a119eafbbdb5dbae79491cec307aeb56 1 parent c554f00
InfinitiesLoop authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery.glob.min.js
View
2  jquery.glob.min.js
@@ -1 +1 @@
-(function(a){var d={en:{}};d["default"]=d.en;a.extend({findClosestCulture:function(b){var d;if(!b)d=a.culture||a.cultures["default"];else if(a.isPlainObject(b))d=b;else{for(var f,k=a.cultures,m=a.isArray(b)?b:b.split(","),j=m.length,h=[],c=0;c<j;c++){b=e(m[c]);var g,i=b.split(";");f=e(i[0]);if(i.length===1)g=1;else{b=e(i[1]);if(b.indexOf("q=")===0){b=b.substr(2);g=parseFloat(b,10);g=isNaN(g)?0:g}else g=1}h.push({lang:f,pri:g})}h.sort(function(a,b){return a.pri<b.pri?1:-1});for(c=0;c<j;c++){f=h[c].lang;d=k[f];if(d)return d}for(c=0;c<j;c++){f=h[c].lang;do{var l=f.lastIndexOf("-");if(l===-1)break;f=f.substr(0,l);d=k[f];if(d)return d}while(1)}}return d||null},preferCulture:function(b){a.culture=a.findClosestCulture(b)||a.cultures["default"]},localize:function(f,b,c){if(typeof b==="string"){b=b||"default";b=a.cultures[b]||{name:b}}var e=d[b.name];if(arguments.length===3){if(!e)e=d[b.name]={};e[f]=c}else{if(e)c=e[f];if(typeof c==="undefined"){var g=d[b.language];if(g)c=g[f];if(typeof c==="undefined")c=d["default"][f]}}return typeof c==="undefined"?null:c},format:function(b,d,c){c=a.findClosestCulture(c);if(typeof b==="number")b=y(b,d,c);else if(b instanceof Date)b=r(b,d,c);return b},parseInt:function(d,c,b){return Math.floor(a.parseFloat(d,c,b))},parseFloat:function(b,x,r){r=a.findClosestCulture(r);var n=NaN,d=r.numberFormat;b=e(b);if(w.test(b))n=parseFloat(b,x);else if(!x&&C.test(b))n=parseInt(b,16);else{var i=j(b,d,d.pattern[0]),k=i[0],g=i[1];if(k===""&&d.pattern[0]!=="-n"){i=j(b,d,"-n");k=i[0];g=i[1]}k=k||"+";var l,f,h=g.indexOf("e");if(h<0)h=g.indexOf("E");if(h<0){f=g;l=null}else{f=g.substr(0,h);l=g.substr(h+1)}var c,m,v=d["."],p=f.indexOf(v);if(p<0){c=f;m=null}else{c=f.substr(0,p);m=f.substr(p+v.length)}var q=d[","];c=c.split(q).join("");var s=q.replace(/\u00A0/g," ");if(q!==s)c=c.split(s).join("");var o=k+c;if(m!==null)o+="."+m;if(l!==null){var u=j(l,d,"-n");o+="e"+(u[0]||"+")+u[1]}if(t.test(o))n=parseFloat(o)}return n},parseDate:function(g,b,c){c=a.findClosestCulture(c);var d;if(b){if(typeof b==="string")b=[b];if(b.length)for(var e=0,h=b.length;e<h;e++){var f=b[e];if(f){d=s(g,f,c);if(d)break}}}else a.each(c.calendar.patterns,function(b,a){d=s(g,a,c);if(d)return false});return d||null}});var l=a.cultures=a.cultures||{},o=l["default"]=l.en=a.extend(true,{name:"en",englishName:"English",nativeName:"English",isRTL:false,language:"en",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSizes:[3],"+":"+","-":"-",percent:{pattern:["-n %","n %"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"$"}},calendars:{standard:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss"}}}},l.en);o.calendar=o.calendar||o.calendars.standard;var B=/^\s+|\s+$/g,w=/^[+-]?infinity$/i,C=/^0x[a-f0-9]+$/i,t=/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/;function f(b,a){return b.indexOf(a)===0}function m(b,a){return b.substr(b.length-a.length)===a}function e(a){return(a+"").replace(B,"")}function g(a,c,d){for(var b=a.length;b<c;b++)a=d?"0"+a:a+"0";return a}function x(j,h,l){var m=l.groupSizes,i=m[0],k=1,p=Math.pow(10,h),n=Math.round(j*p)/p;if(!isFinite(n))n=j;j=n;var b=j+"",a="",e=b.split(/e/i),c=e.length>1?parseInt(e[1],10):0;b=e[0];e=b.split(".");b=e[0];a=e.length>1?e[1]:"";var q;if(c>0){a=g(a,c,false);b+=a.slice(0,c);a=a.substr(c)}else if(c<0){c=-c;b=g(b,c+1);a=b.slice(-c,b.length)+a;b=b.slice(0,-c)}if(h>0)a=l["."]+(a.length>h?a.slice(0,h):g(a,h));else a="";var d=b.length-1,o=l[","],f="";while(d>=0){if(i===0||i>d)return b.slice(0,d+1)+(f.length?o+f+a:a);f=b.slice(d-i+1,d+1)+(f.length?o+f:"");d-=i;if(k<m.length){i=m[k];k++}}return b.slice(0,d+1)+o+f+a}function j(a,e,g){var b=e["-"],c=e["+"],d;switch(g){case"n -":b=" "+b;c=" "+c;case"n-":if(m(a,b))d=["-",a.substr(0,a.length-b.length)];else if(m(a,c))d=["+",a.substr(0,a.length-c.length)];break;case"- n":b+=" ";c+=" ";case"-n":if(f(a,b))d=["-",a.substr(b.length)];else if(f(a,c))d=["+",a.substr(c.length)];break;case"(n)":if(f(a,"(")&&m(a,")"))d=["-",a.substr(1,a.length-2)]}return d||["",a]}function y(j,d,n){if(!d||d==="i")return n.name.length?j.toLocaleString():j.toString();d=d||"D";var h=n.numberFormat,c=Math.abs(j),e=-1,i;if(d.length>1)e=parseInt(d.slice(1),10);var l=d.charAt(0).toUpperCase(),b;switch(l){case"D":i="n";if(e!==-1)c=g(""+c,e,true);if(j<0)c=-c;break;case"N":b=h;case"C":b=b||h.currency;case"P":b=b||h.percent;i=j<0?b.pattern[0]:b.pattern[1]||"n";if(e===-1)e=b.decimals;c=x(c*(l==="P"?100:1),e,b);break;default:a.error("Bad number format specifier: "+l)}for(var m=/n|\$|-|%/g,f="";true;){var o=m.lastIndex,k=m.exec(i);f+=i.slice(o,k?k.index:i.length);if(!k)break;switch(k[0]){case"n":f+=c;break;case"$":f+=h.currency.symbol;break;case"-":if(/[1-9]/.test(c))f+=h["-"];break;case"%":f+=h.percent.symbol}}return f}function b(a,c,b){return a<c||a>b}function A(d,b){var e=new Date,f=h(e);if(b<100){var a=d.twoDigitYearMax;a=typeof a==="string"?(new Date).getFullYear()%100+parseInt(a,10):a;var c=k(e,d,f);b+=c-c%100;if(b>a)b-=100}return b}function h(e,c){if(!c)return 0;for(var b,d=e.getTime(),a=0,f=c.length;a<f;a++){b=c[a].start;if(b===null||d>=b)return a}return 0}function n(a){return a.split("\u00a0").join(" ").toUpperCase()}function c(b){return a.map(b,function(a){return n(a)})}function k(d,b,e,c){var a=d.getFullYear();if(!c&&b.eras)a-=b.eras[e].offset;return a}function z(g,d,h){var e,f=g.days,b=g._upperDays;if(!b)g._upperDays=b=[c(f.names),c(f.namesAbbr),c(f.namesShort)];d=n(d);if(h){e=a.inArray(d,b[1]);if(e===-1)e=a.inArray(d,b[2])}else e=a.inArray(d,b[0]);return e}function v(b,e,j){var i=b.months,h=b.monthsGenitive||b.months,d=b._upperMonths,f=b._upperMonthsGen;if(!d){b._upperMonths=d=[c(i.names),c(i.namesAbbr)];b._upperMonthsGen=f=[c(h.names),c(h.namesAbbr)]}e=n(e);var g=a.inArray(e,j?d[1]:d[0]);if(g<0)g=a.inArray(e,j?f[1]:f[0]);return g}function i(e,b){for(var d=0,a=false,c=0,g=e.length;c<g;c++){var f=e.charAt(c);switch(f){case"'":if(a)b.push("'");else d++;a=false;break;case"\\":a&&b.push("\\");a=!a;break;default:b.push(f);a=false}}return d}function q(f,b){b=b||"F";var c,e=f.patterns,d=b.length;if(d===1){c=e[b];!c&&a.error("Invalid date format string '"+b+"'.");b=c}else if(d===2&&b.charAt(0)==="%")b=b.charAt(1);return b}function u(e,h){var f=e._parseRegExp;if(!f)e._parseRegExp=f={};else{var n=f[h];if(n)return n}var g=q(e,h).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),c=["^"],o=[],j=0,m=0,l=p(),d;while((d=l.exec(g))!==null){var t=g.slice(j,d.index);j=l.lastIndex;m+=i(t,c);if(m%2){c.push(d[0]);continue}var k=d[0],u=k.length,b;switch(k){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":b="(\\D+)";break;case"tt":case"t":b="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":b="(\\d{"+u+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":b="(\\d\\d?)";break;case"zzz":b="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":b="([+-]?\\d\\d?)";break;case"/":b="(\\"+e["/"]+")";break;default:a.error("Invalid date format pattern '"+k+"'.")}b&&c.push(b);o.push(d[0])}i(g.slice(j),c);c.push("$");var s=c.join("").replace(/\s+/g,"\\s+"),r={regExp:s,groups:o};return f[h]=r}function p(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g}function s(y,M,L){y=e(y);var a=L.calendar,H=u(a,M),K=(new RegExp(H.regExp)).exec(y);if(K===null)return null;for(var J=H.groups,C=null,k=null,i=null,j=null,q=null,h=0,l,D=0,E=0,B=0,m=null,x=false,s=0,N=J.length;s<N;s++){var c=K[s+1];if(c){var I=J[s],n=I.length,g=parseInt(c,10);switch(I){case"dd":case"d":j=g;if(b(j,1,31))return null;break;case"MMM":case"MMMM":i=v(a,c,n===3);if(b(i,0,11))return null;break;case"M":case"MM":i=g-1;if(b(i,0,11))return null;break;case"y":case"yy":case"yyyy":k=n<4?A(a,g):g;if(b(k,0,9999))return null;break;case"h":case"hh":h=g;if(h===12)h=0;if(b(h,0,11))return null;break;case"H":case"HH":h=g;if(b(h,0,23))return null;break;case"m":case"mm":D=g;if(b(D,0,59))return null;break;case"s":case"ss":E=g;if(b(E,0,59))return null;break;case"tt":case"t":x=a.PM&&(c===a.PM[0]||c===a.PM[1]||c===a.PM[2]);if(!x&&(!a.AM||c!==a.AM[0]&&c!==a.AM[1]&&c!==a.AM[2]))return null;break;case"f":case"ff":case"fff":B=g*Math.pow(10,3-n);if(b(B,0,999))return null;break;case"ddd":case"dddd":q=z(a,c,n===3);if(b(q,0,6))return null;break;case"zzz":var w=c.split(/:/);if(w.length!==2)return null;l=parseInt(w[0],10);if(b(l,-12,13))return null;var t=parseInt(w[1],10);if(b(t,0,59))return null;m=l*60+(f(c,"-")?-t:t);break;case"z":case"zz":l=g;if(b(l,-12,13))return null;m=l*60;break;case"g":case"gg":var p=c;if(!p||!a.eras)return null;p=e(p.toLowerCase());for(var r=0,O=a.eras.length;r<O;r++)if(p===a.eras[r].name.toLowerCase()){C=r;break}if(C===null)return null}}}var d=new Date,G,o=a.convert;G=o?o.fromGregorian(d)[0]:d.getFullYear();if(k===null)k=G;else if(a.eras)k+=a.eras[C||0].offset;if(i===null)i=0;if(j===null)j=1;if(o){d=o.toGregorian(k,i,j);if(d===null)return null}else{d.setFullYear(k,i,j);if(d.getDate()!==j)return null;if(q!==null&&d.getDay()!==q)return null}if(x&&h<12)h+=12;d.setHours(h,D,E,B);if(m!==null){var F=d.getMinutes()-(m+d.getTimezoneOffset());d.setHours(d.getHours()+parseInt(F/60,10),F%60)}return d}function r(c,g,s){var d=s.calendar,t=d.convert;if(!g||!g.length||g==="i"){var b;if(s&&s.name.length)if(t)b=r(c,d.patterns.F,s);else{var A=new Date(c.getTime()),H=h(c,d.eras);A.setFullYear(k(c,d,H));b=A.toLocaleString()}else b=c.toString();return b}var B=d.eras,z=g==="s";g=q(d,g);b=[];var j,G=["0","00","000"],n,x,C=/([^d]|^)(d|dd)([^d]|$)/g,y=0,w=p(),m;function f(d,a){var b,c=d+"";if(a>1&&c.length<a){b=G[a-2]+c;return b.substr(b.length-a,a)}else b=c;return b}function E(){if(n||x)return n;n=C.test(g);x=true;return n}function v(a,b){if(m)return m[b];switch(b){case 0:return a.getFullYear();case 1:return a.getMonth();case 2:return a.getDate()}}if(!z&&t)m=t.fromGregorian(c);for(;true;){var F=w.lastIndex,o=w.exec(g),D=g.slice(F,o?o.index:g.length);y+=i(D,b);if(!o)break;if(y%2){b.push(o[0]);continue}var u=o[0],e=u.length;switch(u){case"ddd":case"dddd":names=e===3?d.days.namesAbbr:d.days.names;b.push(names[c.getDay()]);break;case"d":case"dd":n=true;b.push(f(v(c,2),e));break;case"MMM":case"MMMM":var l=v(c,1);b.push(d.monthsGenitive&&E()?d.monthsGenitive[e===3?"namesAbbr":"names"][l]:d.months[e===3?"namesAbbr":"names"][l]);break;case"M":case"MM":b.push(f(v(c,1)+1,e));break;case"y":case"yy":case"yyyy":l=m?m[0]:k(c,d,h(c,B),z);if(e<4)l=l%100;b.push(f(l,e));break;case"h":case"hh":j=c.getHours()%12;if(j===0)j=12;b.push(f(j,e));break;case"H":case"HH":b.push(f(c.getHours(),e));break;case"m":case"mm":b.push(f(c.getMinutes(),e));break;case"s":case"ss":b.push(f(c.getSeconds(),e));break;case"t":case"tt":l=c.getHours()<12?d.AM?d.AM[0]:" ":d.PM?d.PM[0]:" ";b.push(e===1?l.charAt(0):l);break;case"f":case"ff":case"fff":b.push(f(c.getMilliseconds(),3).substr(0,e));break;case"z":case"zz":j=c.getTimezoneOffset()/60;b.push((j<=0?"+":"-")+f(Math.floor(Math.abs(j)),e));break;case"zzz":j=c.getTimezoneOffset()/60;b.push((j<=0?"+":"-")+f(Math.floor(Math.abs(j)),2)+":"+f(Math.abs(c.getTimezoneOffset()%60),2));break;case"g":case"gg":d.eras&&b.push(d.eras[h(c,B)].name);break;case"/":b.push(d["/"]);break;default:a.error("Invalid date format pattern '"+u+"'.")}}return b.join("")}})(jQuery)
+(function(){var a={},d={en:{}};d["default"]=d.en;a.extend=function(g){for(var c=arguments[1]||{},f=2,i=arguments.length;f<i;f++){var e=arguments[f];if(e)for(var d in e){var a=e[d];if(typeof a!=="undefined")if(g&&(w(a)||h(a))){var b=c[d];b=b&&(w(b)||h(b))?b:h(a)?[]:{};c[d]=this.extend(true,b,a)}else c[d]=a}}return c};a.findClosestCulture=function(a){var d;if(!a)return this.culture||this.cultures["default"];if(G(a))a=a.split(",");if(h(a)){for(var c,k=this.cultures,m=a,j=m.length,g=[],b=0;b<j;b++){a=e(m[b]);var f,i=a.split(";");c=e(i[0]);if(i.length===1)f=1;else{a=e(i[1]);if(a.indexOf("q=")===0){a=a.substr(2);f=parseFloat(a,10);f=isNaN(f)?0:f}else f=1}g.push({lang:c,pri:f})}g.sort(function(a,b){return a.pri<b.pri?1:-1});for(b=0;b<j;b++){c=g[b].lang;d=k[c];if(d)return d}for(b=0;b<j;b++){c=g[b].lang;do{var l=c.lastIndexOf("-");if(l===-1)break;c=c.substr(0,l);d=k[c];if(d)return d}while(1)}}else if(typeof a==="object")return a;return d||null};a.preferCulture=function(a){this.culture=this.findClosestCulture(a)||this.cultures["default"]};a.localize=function(e,a,b){if(typeof a==="string"){a=a||"default";a=this.cultures[a]||{name:a}}var c=d[a.name];if(arguments.length===3){if(!c)c=d[a.name]={};c[e]=b}else{if(c)b=c[e];if(typeof b==="undefined"){var f=d[a.language];if(f)b=f[e];if(typeof b==="undefined")b=d["default"][e]}}return typeof b==="undefined"?null:b};a.format=function(a,c,b){b=this.findClosestCulture(b);if(typeof a==="number")a=C(a,c,b);else if(a instanceof Date)a=u(a,c,b);return a};a.parseInt=function(c,b,a){return Math.floor(this.parseFloat(c,b,a))};a.parseFloat=function(a,u,q){q=this.findClosestCulture(q);var m=NaN,c=q.numberFormat;a=e(a);if(A.test(a))m=parseFloat(a,u);else if(!u&&H.test(a))m=parseInt(a,16);else{var h=l(a,c,c.pattern[0]),i=h[0],f=h[1];if(i===""&&c.pattern[0]!=="-n"){h=l(a,c,"-n");i=h[0];f=h[1]}i=i||"+";var j,d,g=f.indexOf("e");if(g<0)g=f.indexOf("E");if(g<0){d=f;j=null}else{d=f.substr(0,g);j=f.substr(g+1)}var b,k,t=c["."],o=d.indexOf(t);if(o<0){b=d;k=null}else{b=d.substr(0,o);k=d.substr(o+t.length)}var p=c[","];b=b.split(p).join("");var r=p.replace(/\u00A0/g," ");if(p!==r)b=b.split(r).join("");var n=i+b;if(k!==null)n+="."+k;if(j!==null){var s=l(j,c,"-n");n+="e"+(s[0]||"+")+s[1]}if(x.test(n))m=parseFloat(n)}return m};a.parseDate=function(g,a,b){b=this.findClosestCulture(b);var c,h,d;if(a){if(typeof a==="string")a=[a];if(a.length)for(var e=0,i=a.length;e<i;e++){var f=a[e];if(f){c=v(g,f,b);if(c)break}}}else{d=b.calendar.patterns;for(h in d){c=v(g,d[h],b);if(c)break}}return c||null};var n=a.cultures=a.cultures||{},r=n["default"]=n.en=a.extend(true,{name:"en",englishName:"English",nativeName:"English",isRTL:false,language:"en",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSizes:[3],"+":"+","-":"-",percent:{pattern:["-n %","n %"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"$"}},calendars:{standard:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss"}}}},n.en);r.calendar=r.calendar||r.calendars.standard;var F=/^\s+|\s+$/g,A=/^[+-]?infinity$/i,H=/^0x[a-f0-9]+$/i,x=/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/,p=Object.prototype.toString;function g(b,a){return b.indexOf(a)===0}function o(b,a){return b.substr(b.length-a.length)===a}function e(a){return(a+"").replace(F,"")}function i(a,c,d){for(var b=a.length;b<c;b++)a=d?"0"+a:a+"0";return a}function h(a){return p.call(a)==="[object Array]"}function G(a){return p.call(a)==="[object String]"}function w(a){return p.call(a)==="[object Object]"}function f(a,c){if(a.indexOf)return a.indexOf(c);for(var b=0,d=a.length;b<d;b++)if(a[b]===c)return b;return-1}function B(j,g,l){var m=l.groupSizes,h=m[0],k=1,p=Math.pow(10,g),n=Math.round(j*p)/p;if(!isFinite(n))n=j;j=n;var b=j+"",a="",e=b.split(/e/i),c=e.length>1?parseInt(e[1],10):0;b=e[0];e=b.split(".");b=e[0];a=e.length>1?e[1]:"";var q;if(c>0){a=i(a,c,false);b+=a.slice(0,c);a=a.substr(c)}else if(c<0){c=-c;b=i(b,c+1);a=b.slice(-c,b.length)+a;b=b.slice(0,-c)}if(g>0)a=l["."]+(a.length>g?a.slice(0,g):i(a,g));else a="";var d=b.length-1,o=l[","],f="";while(d>=0){if(h===0||h>d)return b.slice(0,d+1)+(f.length?o+f+a:a);f=b.slice(d-h+1,d+1)+(f.length?o+f:"");d-=h;if(k<m.length){h=m[k];k++}}return b.slice(0,d+1)+o+f+a}function l(a,e,f){var b=e["-"],c=e["+"],d;switch(f){case"n -":b=" "+b;c=" "+c;case"n-":if(o(a,b))d=["-",a.substr(0,a.length-b.length)];else if(o(a,c))d=["+",a.substr(0,a.length-c.length)];break;case"- n":b+=" ";c+=" ";case"-n":if(g(a,b))d=["-",a.substr(b.length)];else if(g(a,c))d=["+",a.substr(c.length)];break;case"(n)":if(g(a,"(")&&o(a,")"))d=["-",a.substr(1,a.length-2)]}return d||["",a]}function C(h,c,m){if(!c||c==="i")return m.name.length?h.toLocaleString():h.toString();c=c||"D";var f=m.numberFormat,b=Math.abs(h),d=-1,g;if(c.length>1)d=parseInt(c.slice(1),10);var k=c.charAt(0).toUpperCase(),a;switch(k){case"D":g="n";if(d!==-1)b=i(""+b,d,true);if(h<0)b=-b;break;case"N":a=f;case"C":a=a||f.currency;case"P":a=a||f.percent;g=h<0?a.pattern[0]:a.pattern[1]||"n";if(d===-1)d=a.decimals;b=B(b*(k==="P"?100:1),d,a);break;default:throw"Bad number format specifier: "+k;}for(var l=/n|\$|-|%/g,e="";true;){var n=l.lastIndex,j=l.exec(g);e+=g.slice(n,j?j.index:g.length);if(!j)break;switch(j[0]){case"n":e+=b;break;case"$":e+=f.currency.symbol;break;case"-":if(/[1-9]/.test(b))e+=f["-"];break;case"%":e+=f.percent.symbol}}return e}function b(a,c,b){return a<c||a>b}function E(d,b){var e=new Date,f=j(e);if(b<100){var a=d.twoDigitYearMax;a=typeof a==="string"?(new Date).getFullYear()%100+parseInt(a,10):a;var c=m(e,d,f);b+=c-c%100;if(b>a)b-=100}return b}function j(e,c){if(!c)return 0;for(var b,d=e.getTime(),a=0,f=c.length;a<f;a++){b=c[a].start;if(b===null||d>=b)return a}return 0}function q(a){return a.split("\u00a0").join(" ").toUpperCase()}function c(c){for(var b=[],a=0,d=c.length;a<d;a++)b[a]=q(c[a]);return b}function m(d,b,e,c){var a=d.getFullYear();if(!c&&b.eras)a-=b.eras[e].offset;return a}function D(g,b,h){var d,e=g.days,a=g._upperDays;if(!a)g._upperDays=a=[c(e.names),c(e.namesAbbr),c(e.namesShort)];b=q(b);if(h){d=f(a[1],b);if(d===-1)d=f(a[2],b)}else d=f(a[0],b);return d}function z(a,d,j){var i=a.months,h=a.monthsGenitive||a.months,b=a._upperMonths,e=a._upperMonthsGen;if(!b){a._upperMonths=b=[c(i.names),c(i.namesAbbr)];a._upperMonthsGen=e=[c(h.names),c(h.namesAbbr)]}d=q(d);var g=f(j?b[1]:b[0],d);if(g<0)g=f(j?e[1]:e[0],d);return g}function k(e,b){for(var d=0,a=false,c=0,g=e.length;c<g;c++){var f=e.charAt(c);switch(f){case"'":if(a)b.push("'");else d++;a=false;break;case"\\":a&&b.push("\\");a=!a;break;default:b.push(f);a=false}}return d}function t(e,a){a=a||"F";var b,d=e.patterns,c=a.length;if(c===1){b=d[a];if(!b)throw"Invalid date format string '"+a+"'.";a=b}else if(c===2&&a.charAt(0)==="%")a=a.charAt(1);return a}function y(d,g){var e=d._parseRegExp;if(!e)d._parseRegExp=e={};else{var m=e[g];if(m)return m}var f=t(d,g).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),b=["^"],n=[],h=0,l=0,j=s(),c;while((c=j.exec(f))!==null){var q=f.slice(h,c.index);h=j.lastIndex;l+=k(q,b);if(l%2){b.push(c[0]);continue}var i=c[0],r=i.length,a;switch(i){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":a="(\\D+)";break;case"tt":case"t":a="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":a="(\\d{"+r+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":a="(\\d\\d?)";break;case"zzz":a="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":a="([+-]?\\d\\d?)";break;case"/":a="(\\"+d["/"]+")";break;default:throw"Invalid date format pattern '"+i+"'.";}a&&b.push(a);n.push(c[0])}k(f.slice(h),b);b.push("$");var p=b.join("").replace(/\s+/g,"\\s+"),o={regExp:p,groups:n};return e[g]=o}function s(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g}function v(w,M,L){w=e(w);var a=L.calendar,H=y(a,M),K=(new RegExp(H.regExp)).exec(w);if(K===null)return null;for(var J=H.groups,A=null,k=null,i=null,j=null,q=null,h=0,l,B=0,C=0,x=0,m=null,v=false,s=0,N=J.length;s<N;s++){var c=K[s+1];if(c){var I=J[s],n=I.length,f=parseInt(c,10);switch(I){case"dd":case"d":j=f;if(b(j,1,31))return null;break;case"MMM":case"MMMM":i=z(a,c,n===3);if(b(i,0,11))return null;break;case"M":case"MM":i=f-1;if(b(i,0,11))return null;break;case"y":case"yy":case"yyyy":k=n<4?E(a,f):f;if(b(k,0,9999))return null;break;case"h":case"hh":h=f;if(h===12)h=0;if(b(h,0,11))return null;break;case"H":case"HH":h=f;if(b(h,0,23))return null;break;case"m":case"mm":B=f;if(b(B,0,59))return null;break;case"s":case"ss":C=f;if(b(C,0,59))return null;break;case"tt":case"t":v=a.PM&&(c===a.PM[0]||c===a.PM[1]||c===a.PM[2]);if(!v&&(!a.AM||c!==a.AM[0]&&c!==a.AM[1]&&c!==a.AM[2]))return null;break;case"f":case"ff":case"fff":x=f*Math.pow(10,3-n);if(b(x,0,999))return null;break;case"ddd":case"dddd":q=D(a,c,n===3);if(b(q,0,6))return null;break;case"zzz":var u=c.split(/:/);if(u.length!==2)return null;l=parseInt(u[0],10);if(b(l,-12,13))return null;var t=parseInt(u[1],10);if(b(t,0,59))return null;m=l*60+(g(c,"-")?-t:t);break;case"z":case"zz":l=f;if(b(l,-12,13))return null;m=l*60;break;case"g":case"gg":var p=c;if(!p||!a.eras)return null;p=e(p.toLowerCase());for(var r=0,O=a.eras.length;r<O;r++)if(p===a.eras[r].name.toLowerCase()){A=r;break}if(A===null)return null}}}var d=new Date,G,o=a.convert;G=o?o.fromGregorian(d)[0]:d.getFullYear();if(k===null)k=G;else if(a.eras)k+=a.eras[A||0].offset;if(i===null)i=0;if(j===null)j=1;if(o){d=o.toGregorian(k,i,j);if(d===null)return null}else{d.setFullYear(k,i,j);if(d.getDate()!==j)return null;if(q!==null&&d.getDay()!==q)return null}if(v&&h<12)h+=12;d.setHours(h,B,C,x);if(m!==null){var F=d.getMinutes()-(m+d.getTimezoneOffset());d.setHours(d.getHours()+parseInt(F/60,10),F%60)}return d}function u(b,f,o){var c=o.calendar,p=c.convert;if(!f||!f.length||f==="i"){var a;if(o&&o.name.length)if(p)a=u(b,c.patterns.F,o);else{var z=new Date(b.getTime()),G=j(b,c.eras);z.setFullYear(m(b,c,G));a=z.toLocaleString()}else a=b.toString();return a}var A=c.eras,y=f==="s";f=t(c,f);a=[];var g,F=["0","00","000"],l,w,B=/([^d]|^)(d|dd)([^d]|$)/g,x=0,v=s(),i;function e(d,a){var b,c=d+"";if(a>1&&c.length<a){b=F[a-2]+c;return b.substr(b.length-a,a)}else b=c;return b}function D(){if(l||w)return l;l=B.test(f);w=true;return l}function r(a,b){if(i)return i[b];switch(b){case 0:return a.getFullYear();case 1:return a.getMonth();case 2:return a.getDate()}}if(!y&&p)i=p.fromGregorian(b);for(;true;){var E=v.lastIndex,n=v.exec(f),C=f.slice(E,n?n.index:f.length);x+=k(C,a);if(!n)break;if(x%2){a.push(n[0]);continue}var q=n[0],d=q.length;switch(q){case"ddd":case"dddd":names=d===3?c.days.namesAbbr:c.days.names;a.push(names[b.getDay()]);break;case"d":case"dd":l=true;a.push(e(r(b,2),d));break;case"MMM":case"MMMM":var h=r(b,1);a.push(c.monthsGenitive&&D()?c.monthsGenitive[d===3?"namesAbbr":"names"][h]:c.months[d===3?"namesAbbr":"names"][h]);break;case"M":case"MM":a.push(e(r(b,1)+1,d));break;case"y":case"yy":case"yyyy":h=i?i[0]:m(b,c,j(b,A),y);if(d<4)h=h%100;a.push(e(h,d));break;case"h":case"hh":g=b.getHours()%12;if(g===0)g=12;a.push(e(g,d));break;case"H":case"HH":a.push(e(b.getHours(),d));break;case"m":case"mm":a.push(e(b.getMinutes(),d));break;case"s":case"ss":a.push(e(b.getSeconds(),d));break;case"t":case"tt":h=b.getHours()<12?c.AM?c.AM[0]:" ":c.PM?c.PM[0]:" ";a.push(d===1?h.charAt(0):h);break;case"f":case"ff":case"fff":a.push(e(b.getMilliseconds(),3).substr(0,d));break;case"z":case"zz":g=b.getTimezoneOffset()/60;a.push((g<=0?"+":"-")+e(Math.floor(Math.abs(g)),d));break;case"zzz":g=b.getTimezoneOffset()/60;a.push((g<=0?"+":"-")+e(Math.floor(Math.abs(g)),2)+":"+e(Math.abs(b.getTimezoneOffset()%60),2));break;case"g":case"gg":c.eras&&a.push(c.eras[j(b,A)].name);break;case"/":a.push(c["/"]);break;default:throw"Invalid date format pattern '"+q+"'.";}}return a.join("")}jQuery.findClosestCulture=a.findClosestCulture;jQuery.culture=a.culture;jQuery.cultures=a.cultures;jQuery.preferCulture=a.preferCulture;jQuery.localize=a.localize;jQuery.format=a.format;jQuery.parseInt=a.parseInt;jQuery.parseFloat=a.parseFloat;jQuery.parseDate=a.parseDate})()
Please sign in to comment.
Something went wrong with that request. Please try again.