(function(){(function(){if(!Function.prototype.bind){Function.prototype.bind=function(g){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")}var c=Array.prototype.slice.call(arguments,1),f=this,e=function(){},d=function(){return f.apply((this.prototype&&this instanceof e)?this:g||window,c.concat(Array.prototype.slice.call(arguments)))};e.prototype=this.prototype;d.prototype=new e();return d}}})();(function(){if(window.requestAnimationFrame){return}var c=16,g=0,h=0,e=false,i={},d=function(){var j=c+g-Date.now();if(j<0){j=0}e=true;window.setTimeout(f,j)},f=function(){var j=i;g=Date.now();i={};e=false;Object.keys(j).forEach(function(k){j[k](g)})};window.requestAnimationFrame=function(j){if(typeof j!=="function"){return}var k=h++;if(!e){d()}i[k]=j;return k};window.cancelAnimationFrame=function(j){delete i[j]}}());if(typeof Object.size!=="function"){Object.size=function(d){var e=0,c;for(c in d){if(d.hasOwnProperty(c)){e++}}return e}}if(!Date.now){Date.now=function b(){return new Date().getTime()}}if(!window.location.origin){window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}if(typeof document.getElementsByClassName!="function"){document.getElementsByClassName=function(k){var c=[],d=document.getElementsByTagName("*"),e=d.length,h=new RegExp("(^|\\s)"+k+"(\\s|$)"),f=0,g=0;for(;ff;d--){this[d]=this[d-1]}}this[f]=e}return this};if(typeof Array.prototype.remove!="function"){Array.prototype.remove=function(){var f,c=arguments,e=c.length,d;while(e&&this.length){f=c[--e];while((d=this.indexOf(f))!==-1){this.splice(d,1)}}return this}}if(typeof String.prototype.startsWith!="function"){String.prototype.startsWith=function(c){return this.slice(0,c.length)==c}}if(typeof String.prototype.endsWith!="function"){String.prototype.endsWith=function(c){return this.slice(-c.length)==c}}if(typeof String.prototype.trim!=="function"){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}if(typeof(Array.isArray)!="function"){Array.isArray=function a(c){return Object.prototype.toString.call(c)=="[object Array]"}}if(typeof(Array.prototype.indexOf)!="function"){Array.prototype.indexOf=function(e){for(var c=0,d=this.length;cc;c+=2){var a=a6[c],b=a6[c+1];a(b),a6[c]=void 0,a6[c+1]=void 0}aF=0}function ar(){try{var c=require,a=c("vertx");return ah=a.runOnLoop||a.runOnContext,aB()}catch(b){return ai()}}function aI(g,a){var c=this,f=new this.constructor(aT);void 0===f[a0]&&aG(f);var d=c._state;if(d){var b=arguments[d-1];aX(function(){bf(d,f,b,c._result)})}else{ap(c,f,g,a)}return f}function ay(c){var a=this;if(c&&"object"==typeof c&&c.constructor===a){return c}var b=new a(aT);return aw(b,c),b}function aT(){}function ab(){return new TypeError("You cannot resolve a promise with itself")}function al(){return new TypeError("A promises callback cannot return that same promise.")}function ba(b){try{return b.then}catch(a){return a9.error=a,a9}}function bh(f,a,b,d){try{f.call(a,b,d)}catch(c){return c}}function aL(c,a,b){aX(function(f){var e=!1,d=bh(b,a,function(g){e||(e=!0,a!==g?aw(f,g):a2(f,g))},function(g){e||(e=!0,aE(f,g))},"Settle: "+(f._label||" unknown promise"));!e&&d&&(e=!0,aE(f,d))},c)}function ag(b,a){a._state===aD?a2(b,a._result):a._state===a3?aE(b,a._result):ap(a,void 0,function(c){aw(b,c)},function(c){aE(b,c)})}function bd(c,a,b){a.constructor===c.constructor&&b===aq&&constructor.resolve===aP?ag(c,a):b===a9?aE(c,a9.error):void 0===b?a2(c,a):ao(b)?aL(c,a,b):a2(c,a)}function aw(a,b){a===b?aE(a,ab()):a4(b)?bd(a,b,ba(b)):a2(a,b)}function ae(a){a._onerror&&a._onerror(a._result),a5(a)}function a2(b,a){b._state===aS&&(b._result=a,b._state=aD,0!==b._subscribers.length&&aX(a5,b))}function aE(b,a){b._state===aS&&(b._state=a3,b._result=a,aX(ae,b))}function ap(g,a,c,f){var d=g._subscribers,b=d.length;g._onerror=null,d[b]=a,d[b+aD]=c,d[b+a3]=f,0===b&&g._state&&aX(a5,g)}function a5(h){var a=h._subscribers,c=h._state;if(0!==a.length){for(var f,d,b=h._result,g=0;gc;c++){a.resolve(b[c]).then(d,f)}}:function(d,c){c(new TypeError("You must pass an array to race."))})}function au(c){var a=this,b=new a(aT);return aE(b,c),b}function am(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function aH(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function aJ(a){this[a0]=aR(),this._result=this._state=void 0,this._subscribers=[],aT!==a&&("function"!=typeof a&&am(),this instanceof aJ?aj(this,a):aH())}function aO(b,a){this._instanceConstructor=b,this.promise=new b(aT),this.promise[a0]||aG(this.promise),Array.isArray(a)?(this._input=a,this.length=a.length,this._remaining=a.length,this._result=new Array(this.length),0===this.length?a2(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&a2(this.promise,this._result))):aE(this.promise,a8())}function a8(){return new Error("Array Methods must be provided an Array")}function be(){var c;if("undefined"!=typeof global){c=global}else{if("undefined"!=typeof self){c=self}else{try{c=Function("return this")()}catch(a){throw new Error("polyfill failed because global object is unavailable in this environment")}}}var b=c.Promise;(!b||"[object Promise]"!==Object.prototype.toString.call(b.resolve())||b.cast)&&(c.Promise=aV)}var bj;bj=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)};var ah,ax,az,aC=bj,aF=0,aX=function(b,a){a6[aF]=b,a6[aF+1]=a,aF+=2,2===aF&&(ax?ax(ad):az())},aZ="undefined"!=typeof window?window:void 0,bb=aZ||{},bg=bb.MutationObserver||bb.WebKitMutationObserver,bk="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),aa="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,a6=new Array(1000);az=bk?aQ():bg?a1():aa?a7():void 0===aZ&&"function"==typeof require?ar():ai();var aq=aI,aP=ay,a0=Math.random().toString(36).substring(16),aS=void 0,aD=1,a3=2,a9=new aM,ak=new aM,af=0,av=bi,aK=aW,aA=au,aV=aJ;aJ.all=av,aJ.race=aK,aJ.resolve=aP,aJ.reject=aA,aJ._setScheduler=aN,aJ._setAsap=aY,aJ._asap=aX,aJ.prototype={constructor:aJ,then:aq,"catch":function(a){return this.then(null,a)}};var ac=aO;aO.prototype._enumerate=function(){for(var c=this.length,a=this._input,b=0;this._state===aS&&c>b;b++){this._eachEntry(a[b],b)}},aO.prototype._eachEntry=function(g,a){var c=this._instanceConstructor,f=c.resolve;if(f===aP){var d=ba(g);if(d===aq&&g._state!==aS){this._settledAt(g._state,a,g._result)}else{if("function"!=typeof d){this._remaining--,this._result[a]=g}else{if(c===aV){var b=new c(aT);bd(b,g,d),this._willSettleAt(b,a)}else{this._willSettleAt(new c(function(h){h(g)}),a)}}}}else{this._willSettleAt(f(g),a)}},aO.prototype._settledAt=function(d,a,b){var c=this.promise;c._state===aS&&(this._remaining--,d===a3?aE(c,b):this._result[a]=b),0===this._remaining&&a2(c,this._result)},aO.prototype._willSettleAt=function(c,a){var b=this;ap(c,void 0,function(d){b._settledAt(aD,a,d)},function(d){b._settledAt(a3,a,d)})};var an=be,bc={Promise:aV,polyfill:an};"function"==typeof define&&define.amd?define(function(){return bc}):"undefined"!=typeof module&&module.exports?module.exports=bc:"undefined"!=typeof this&&(this.ES6Promise=bc),an()}).call(this);(function(a){if(typeof(a=a||Promise||window.Promise).prototype.log==="function"){return}a.prototype.log=function(b){b=b||"";return this.then(function(c){console.log(b,c);return c})["catch"](function(c){console.error(b,c.stack||c);return a.reject(c)})}})(Promise); /* @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */ (function(d){d.URL=d.URL||d.webkitURL;if(d.Blob&&d.URL){try{new Blob();return}catch(b){}}var a=d.BlobBuilder||d.WebKitBlobBuilder||d.MozBlobBuilder||(function(y){var r=function(z){return Object.prototype.toString.call(z).match(/^\[object\s(.*)\]$/)[1]},k=function h(){this.data=[]},j=function g(z,B,A){this.data=z;this.size=z.length;this.type=B;this.encoding=A},m=k.prototype,l=j.prototype,q=y.FileReaderSync,p=function(z){this.code=this[this.name=z]},o=("NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR").split(" "),n=o.length,v=y.URL||y.webkitURL||y,t=v.createObjectURL,u=v.revokeObjectURL,x=v,i=y.btoa,f=y.atob,e=y.ArrayBuffer,w=y.Uint8Array,s=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;j.fake=l.fake=true;while(n--){p.prototype[o[n]]=n+1}if(!v.createObjectURL){x=y.URL=function(z){var A=document.createElementNS("http://www.w3.org/1999/xhtml","a"),B;A.href=z;if(!("origin" in A)){if(A.protocol.toLowerCase()==="data:"){A.origin=null}else{B=z.match(s);A.origin=B&&B[1]}}return A}}x.createObjectURL=function(z){var B=z.type,A;if(B===null){B="application/octet-stream"}if(z instanceof j){A="data:"+B;if(z.encoding==="base64"){return A+";base64,"+z.data}else{if(z.encoding==="URI"){return A+","+decodeURIComponent(z.data)}}if(i){return A+";base64,"+i(z.data)}else{return A+","+encodeURIComponent(z.data)}}else{if(t){return t.call(v,z)}}};x.revokeObjectURL=function(z){if(z.substring(0,5)!=="data:"&&u){u.call(v,z)}};m.append=function(C){var z=this.data;if(w&&(C instanceof e||C instanceof w)){var F="",A=new w(C),E=0,B=A.length;for(;E1?A:this.data.length),C,this.encoding)};l.toString=function(){return"[object Blob]"};l.close=function(){this.size=0;delete this.data};return k}(d));d.Blob=function(f,k){var l=k?(k.type||""):"";var g=new a();if(f){for(var h=0,j=f.length;h"&&n>=3)?atlas.parseHTML(q):p()}if(atlas.isElement(q)||atlas.isObject(q)){return[q]}if(r.constructor===Array||atlas.isArray(q)){return q}if(q.call){return atlas.ready(q)}return p()},b=function(){var o=e.sessionStorage,n="__ssc-test__",p=n,l=true;try{o.setItem(n,p);o.removeItem(n);l=true}catch(m){l=false}return l},c=function(){var m,n,l;if(!b()){atlas.suppressLog=true;return}m=e.sessionStorage;n=m.getItem(j);if(typeof n==="string"){l=(n==="true")}else{l=(atlas.environment.toLowerCase()!=="development");m.setItem(j,l)}return(atlas.suppressLog=l)},g=function(l){if(typeof l!=="boolean"){return}b()&&e.sessionStorage.setItem(j,l);atlas.suppressLog=l};atlas.fn=atlas.prototype={init:function(p){var o,m,n;this.length=0;this.selector=p||"";if(!p){return this}if(p.constructor===atlas){return p}o=a(p);if(o){m=0;n=this.length=o.length;for(;m=0&&nk&&(d=b.tooShort||this.tooShort||"is too short (minimum is %{count} characters)",j.push(e.format(d,{count:h}))),e.isNumber(g)&&k>g&&(d=b.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",j.push(e.format(d,{count:g}))),j.length>0?b.message||j:void 0):(e.error(e.format("Attribute %{attr} has a non numeric value for `length`",{attr:c})),b.message||this.notValid||"has an incorrect length")}},numericality:function(a,b){if(e.isDefined(a)){b=e.extend({},this.options,b);var c,d,f=[],g={greaterThan:function(a,b){return a>b},greaterThanOrEqualTo:function(a,b){return a>=b},equalTo:function(a,b){return a===b},lessThan:function(a,b){return b>a},lessThanOrEqualTo:function(a,b){return b>=a},divisibleBy:function(a,b){return a%b===0}};if(e.isString(a)&&b.strict){var h="^(0|[1-9]\\d*)";if(b.onlyInteger||(h+="(\\.\\d+)?"),h+="$",!new RegExp(h).test(a))return b.message||b.notValid||this.notValid||this.message||"must be a valid number"}if(b.noStrings!==!0&&e.isString(a)&&!e.isEmpty(a)&&(a=+a),!e.isNumber(a))return b.message||b.notValid||this.notValid||this.message||"is not a number";if(b.onlyInteger&&!e.isInteger(a))return b.message||b.notInteger||this.notInteger||this.message||"must be an integer";for(c in g)if(d=b[c],e.isNumber(d)&&!g[c](a,d)){var i="not"+e.capitalize(c),j=b[i]||this[i]||this.message||"must be %{type} %{count}";f.push(e.format(j,{count:d,type:e.prettify(c)}))}return b.odd&&a%2!==1&&f.push(b.notOdd||this.notOdd||this.message||"must be odd"),b.even&&a%2!==0&&f.push(b.notEven||this.notEven||this.message||"must be even"),f.length?b.message||f:void 0}},datetime:e.extend(function(a,b){if(!e.isFunction(this.parse)||!e.isFunction(this.format))throw new Error("Both the parse and format functions needs to be set to use the datetime/date validator");if(e.isDefined(a)){b=e.extend({},this.options,b);var c,d=[],f=b.earliest?this.parse(b.earliest,b):NaN,g=b.latest?this.parse(b.latest,b):NaN;return a=this.parse(a,b),isNaN(a)||b.dateOnly&&a%864e5!==0?(c=b.notValid||b.message||this.notValid||"must be a valid date",e.format(c,{value:arguments[0]})):(!isNaN(f)&&f>a&&(c=b.tooEarly||b.message||this.tooEarly||"must be no earlier than %{date}",c=e.format(c,{value:this.format(a,b),date:this.format(f,b)}),d.push(c)),!isNaN(g)&&a>g&&(c=b.tooLate||b.message||this.tooLate||"must be no later than %{date}",c=e.format(c,{date:this.format(g,b),value:this.format(a,b)}),d.push(c)),d.length?e.unique(d):void 0)}},{parse:null,format:null}),date:function(a,b){return b=e.extend({},b,{dateOnly:!0}),e.validators.datetime.call(e.validators.datetime,a,b)},format:function(a,b){(e.isString(b)||b instanceof RegExp)&&(b={pattern:b}),b=e.extend({},this.options,b);var c,d=b.message||this.message||"is invalid",f=b.pattern;return e.isDefined(a)?e.isString(a)?(e.isString(f)&&(f=new RegExp(b.pattern,b.flags)),c=f.exec(a),c&&c[0].length==a.length?void 0:d):d:void 0},inclusion:function(a,b){if(e.isDefined(a)&&(e.isArray(b)&&(b={within:b}),b=e.extend({},this.options,b),!e.contains(b.within,a))){var c=b.message||this.message||"^%{value} is not included in the list";return e.format(c,{value:a})}},exclusion:function(a,b){if(e.isDefined(a)&&(e.isArray(b)&&(b={within:b}),b=e.extend({},this.options,b),e.contains(b.within,a))){var c=b.message||this.message||"^%{value} is restricted";return e.format(c,{value:a})}},email:e.extend(function(a,b){b=e.extend({},this.options,b);var c=b.message||this.message||"is not a valid email";if(e.isDefined(a))return e.isString(a)&&this.PATTERN.exec(a)?void 0:c},{PATTERN:/^[a-z0-9\u007F-\uffff!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9\u007F-\uffff!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}$/i}),equality:function(a,b,c,d){if(e.isDefined(a)){e.isString(b)&&(b={attribute:b}),b=e.extend({},this.options,b);var f=b.message||this.message||"is not equal to %{attribute}";if(e.isEmpty(b.attribute)||!e.isString(b.attribute))throw new Error("The attribute must be a non empty string");var g=e.getDeepObjectValue(d,b.attribute),h=b.comparator||function(a,b){return a===b};return h(a,g,b,c,d)?void 0:e.format(f,{attribute:e.prettify(b.attribute)})}},url:function(a,b){if(e.isDefined(a)){b=e.extend({},this.options,b);var c=b.message||this.message||"is not a valid url",d=b.schemes||this.schemes||["http","https"],f=b.allowLocal||this.allowLocal||!1;if(!e.isString(a))return c;var g="^(?:(?:"+d.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";f?h+="?":g+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",g+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+h+")(?::\\d{2,5})?(?:[/?#]\\S*)?$";var i=new RegExp(g,"i");return i.exec(a)?void 0:c}}},d.formatters={detailed:function(a){return a},flat:e.flattenErrorsToArray,grouped:function(a){var b;a=e.groupErrorsByAttribute(a);for(b in a)a[b]=e.flattenErrorsToArray(a[b]);return a},constraint:function(a){var b;a=e.groupErrorsByAttribute(a);for(b in a)a[b]=a[b].map(function(a){return a.validator}).sort();return a}},d.exposeModule(d,this,a,b,c)}).call(this,"undefined"!=typeof exports?exports:null,"undefined"!=typeof module?module:null,"undefined"!=typeof define?define:null); //# sourceMappingURL=validate.min.map (function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["cs-cz"]={name:"cs-CZ",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"Kč",code:"CZK"}},calendars:{standard:{days:{names:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],namesAbbr:["ne","po","út","st","čt","pá","so"],namesShort:["ne","po","út","st","čt","pá","so"]},months:{names:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],namesAbbr:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"]},AM:["dop.","dop.","DOP."],PM:["odp.","odp.","ODP."],patterns:{d:"d. M. yyyy",D:"d. MMMM yyyy",F:"d. MMMM yyyy H:mm:ss",g:"d. M. yyyy H:mm",G:"d. M. yyyy H:mm:ss",m:"d. MMMM",M:"d. MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":". ",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.cs={name:"cs",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"Kč",code:"CSD"}},calendars:{standard:{days:{names:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],namesAbbr:["ne","po","út","st","čt","pá","so"],namesShort:["ne","po","út","st","čt","pá","so"]},months:{names:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],namesAbbr:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"]},AM:["dop.","dop.","DOP."],PM:["odp.","odp.","ODP."],patterns:{d:"d. M. yyyy",D:"d. MMMM yyyy",F:"d. MMMM yyyy H:mm:ss",g:"d. M. yyyy H:mm",G:"d. M. yyyy H:mm:ss",m:"d. MMMM",M:"d. MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":". ",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["de-de"]={name:"de-DE",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":".",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],namesAbbr:["So","Mo","Di","Mi","Do","Fr","Sa"],namesShort:["So","Mo","Di","Mi","Do","Fr","Sa"]},months:{names:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],namesAbbr:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},AM:[""],PM:[""],patterns:{d:"dd.MM.yyyy",D:"dddd, d. MMMM yyyy",F:"dddd, d. MMMM yyyy HH:mm:ss",g:"dd.MM.yyyy HH:mm",G:"dd.MM.yyyy HH:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":".",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.de={name:"de",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":".",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],namesAbbr:["So","Mo","Di","Mi","Do","Fr","Sa"],namesShort:["So","Mo","Di","Mi","Do","Fr","Sa"]},months:{names:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],namesAbbr:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},AM:[""],PM:[""],patterns:{d:"dd.MM.yyyy",D:"dddd, d. MMMM yyyy",F:"dddd, d. MMMM yyyy HH:mm:ss",g:"dd.MM.yyyy HH:mm",G:"dd.MM.yyyy HH:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":".",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["en-gb"]={name:"en-GB",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["-$n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"£",code:"GBP"}},calendars:{standard:{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"],patterns:{d:"dd/MM/yyyy",D:"dd MMMM yyyy",F:"dd MMMM yyyy HH:mm:ss",g:"dd/MM/yyyy HH:mm",G:"dd/MM/yyyy HH:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["en-au"]={name:"en-AU",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["-$n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$",code:"AUD"}},calendars:{standard:{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"],patterns:{d:"d/MM/yyyy",D:"dddd, d MMMM yyyy",F:"dddd, d MMMM yyyy h:mm:ss tt",g:"d/MM/yyyy h:mm tt",G:"d/MM/yyyy h:mm:ss tt",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["es-es"]={name:"es-ES",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":".",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],namesAbbr:["dom","lun","mar","mié","jue","vie","sáb"],namesShort:["do","lu","ma","mi","ju","vi","sá"]},months:{names:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],namesAbbr:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]},AM:[""],PM:[""],patterns:{d:"dd/MM/yyyy",D:"dddd, dd' de 'MMMM' de 'yyyy",F:"dddd, dd' de 'MMMM' de 'yyyy H:mm:ss",g:"dd/MM/yyyy H:mm",G:"dd/MM/yyyy H:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM' de 'yyyy",Y:"MMMM' de 'yyyy"},"/":"/",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.es={name:"es",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":".",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],namesAbbr:["dom","lun","mar","mié","jue","vie","sáb"],namesShort:["do","lu","ma","mi","ju","vi","sá"]},months:{names:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],namesAbbr:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]},AM:[""],PM:[""],patterns:{d:"dd/MM/yyyy",D:"dddd, dd' de 'MMMM' de 'yyyy",F:"dddd, dd' de 'MMMM' de 'yyyy H:mm:ss",g:"dd/MM/yyyy H:mm",G:"dd/MM/yyyy H:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM' de 'yyyy",Y:"MMMM' de 'yyyy"},"/":"/",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["fr-fr"]={name:"fr-FR",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],namesAbbr:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],namesShort:["di","lu","ma","me","je","ve","sa"]},months:{names:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],namesAbbr:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]},AM:[""],PM:[""],patterns:{d:"dd/MM/yyyy",D:"dddd d MMMM yyyy",F:"dddd d MMMM yyyy HH:mm:ss",g:"dd/MM/yyyy HH:mm",G:"dd/MM/yyyy HH:mm:ss",m:"d MMMM",M:"d MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.fr={name:"fr",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],namesAbbr:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],namesShort:["di","lu","ma","me","je","ve","sa"]},months:{names:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],namesAbbr:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]},AM:[""],PM:[""],patterns:{d:"dd/MM/yyyy",D:"dddd d MMMM yyyy",F:"dddd d MMMM yyyy HH:mm:ss",g:"dd/MM/yyyy HH:mm",G:"dd/MM/yyyy HH:mm:ss",m:"d MMMM",M:"d MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["hu-hu"]={name:"hu-HU",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"Ft",code:"HUF"}},calendars:{standard:{days:{names:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],namesAbbr:["V","H","K","Sze","Cs","P","Szo"],namesShort:["V","H","K","Sze","Cs","P","Szo"]},months:{names:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],namesAbbr:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."]},AM:["de.","de.","DE."],PM:["du.","du.","DU."],patterns:{d:"yyyy.MM.dd.",D:"yyyy. MMMM d.",F:"yyyy. MMMM d. H:mm:ss",g:"yyyy.MM.dd. H:mm",G:"yyyy.MM.dd. H:mm:ss",m:"MMMM d.",M:"MMMM d.",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy. MMMM",Y:"yyyy. MMMM"},"/":".",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.hu={name:"hu",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"Ft",code:"HUF"}},calendars:{standard:{days:{names:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],namesAbbr:["V","H","K","Sze","Cs","P","Szo"],namesShort:["V","H","K","Sze","Cs","P","Szo"]},months:{names:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],namesAbbr:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."]},AM:["de.","de.","DE."],PM:["du.","du.","DU."],patterns:{d:"yyyy.MM.dd.",D:"yyyy. MMMM d.",F:"yyyy. MMMM d. H:mm:ss",g:"yyyy.MM.dd. H:mm",G:"yyyy.MM.dd. H:mm:ss",m:"MMMM d.",M:"MMMM d.",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy. MMMM",Y:"yyyy. MMMM"},"/":".",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["it-it"]={name:"it-IT",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-$ n","$ n"],decimals:2,",":".",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],namesAbbr:["dom","lun","mar","mer","gio","ven","sab"],namesShort:["do","lu","ma","me","gi","ve","sa"]},months:{names:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],namesAbbr:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"]},AM:[""],PM:[""],patterns:{d:"dd/MM/yyyy",D:"dddd d MMMM yyyy",F:"dddd d MMMM yyyy HH:mm:ss",g:"dd/MM/yyyy HH:mm",G:"dd/MM/yyyy HH:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.it={name:"it",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-$ n","$ n"],decimals:2,",":".",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],namesAbbr:["dom","lun","mar","mer","gio","ven","sab"],namesShort:["do","lu","ma","me","gi","ve","sa"]},months:{names:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],namesAbbr:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"]},AM:[""],PM:[""],patterns:{d:"dd/MM/yyyy",D:"dddd d MMMM yyyy",F:"dddd d MMMM yyyy HH:mm:ss",g:"dd/MM/yyyy HH:mm",G:"dd/MM/yyyy HH:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["ja-jp"]={name:"ja-JP",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["-$n","$n"],decimals:0,",":",",".":".",groupSize:[3],symbol:"¥",code:"JPY"}},calendars:{standard:{days:{names:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],namesAbbr:["日","月","火","水","木","金","土"],namesShort:["日","月","火","水","木","金","土"]},months:{names:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],namesAbbr:["1","2","3","4","5","6","7","8","9","10","11","12"]},AM:["午前","午前","午前"],PM:["午後","午後","午後"],patterns:{d:"yyyy/MM/dd",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/MM/dd H:mm",G:"yyyy/MM/dd H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.ja={name:"ja",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["-$n","$n"],decimals:0,",":",",".":".",groupSize:[3],symbol:"¥",code:"JPY"}},calendars:{standard:{days:{names:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],namesAbbr:["日","月","火","水","木","金","土"],namesShort:["日","月","火","水","木","金","土"]},months:{names:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],namesAbbr:["1","2","3","4","5","6","7","8","9","10","11","12"]},AM:["午前","午前","午前"],PM:["午後","午後","午後"],patterns:{d:"yyyy/MM/dd",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/MM/dd H:mm",G:"yyyy/MM/dd H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["ko-kr"]={name:"ko-KR",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["-$n","$n"],decimals:0,",":",",".":".",groupSize:[3],symbol:"₩",code:"KRW"}},calendars:{standard:{days:{names:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],namesAbbr:["일","월","화","수","목","금","토"],namesShort:["일","월","화","수","목","금","토"]},months:{names:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],namesAbbr:["1","2","3","4","5","6","7","8","9","10","11","12"]},AM:["오전","오전","오전"],PM:["오후","오후","오후"],patterns:{d:"yyyy-MM-dd",D:"yyyy'년' M'월' d'일' dddd",F:"yyyy'년' M'월' d'일' dddd tt h:mm:ss",g:"yyyy-MM-dd tt h:mm",G:"yyyy-MM-dd tt h:mm:ss",m:"M'월' d'일'",M:"M'월' d'일'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"tt h:mm",T:"tt h:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'년' M'월'",Y:"yyyy'년' M'월'"},"/":"-",":":":",firstDay:0}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.ko={name:"ko",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["-$n","$n"],decimals:0,",":",",".":".",groupSize:[3],symbol:"₩",code:"KRW"}},calendars:{standard:{days:{names:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],namesAbbr:["일","월","화","수","목","금","토"],namesShort:["일","월","화","수","목","금","토"]},months:{names:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],namesAbbr:["1","2","3","4","5","6","7","8","9","10","11","12"]},AM:["오전","오전","오전"],PM:["오후","오후","오후"],patterns:{d:"yyyy-MM-dd",D:"yyyy'년' M'월' d'일' dddd",F:"yyyy'년' M'월' d'일' dddd tt h:mm:ss",g:"yyyy-MM-dd tt h:mm",G:"yyyy-MM-dd tt h:mm:ss",m:"M'월' d'일'",M:"M'월' d'일'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"tt h:mm",T:"tt h:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'년' M'월'",Y:"yyyy'년' M'월'"},"/":"-",":":":",firstDay:0}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["nl-nl"]={name:"nl-NL",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["$ -n","$ n"],decimals:2,",":".",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],namesAbbr:["zo","ma","di","wo","do","vr","za"],namesShort:["zo","ma","di","wo","do","vr","za"]},months:{names:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],namesAbbr:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"]},AM:[""],PM:[""],patterns:{d:"d-M-yyyy",D:"dddd d MMMM yyyy",F:"dddd d MMMM yyyy H:mm:ss",g:"d-M-yyyy H:mm",G:"d-M-yyyy H:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"-",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.nl={name:"nl",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["$ -n","$ n"],decimals:2,",":".",".":",",groupSize:[3],symbol:"€",code:"EUR"}},calendars:{standard:{days:{names:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],namesAbbr:["zo","ma","di","wo","do","vr","za"],namesShort:["zo","ma","di","wo","do","vr","za"]},months:{names:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],namesAbbr:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"]},AM:[""],PM:[""],patterns:{d:"d-M-yyyy",D:"dddd d MMMM yyyy",F:"dddd d MMMM yyyy H:mm:ss",g:"d-M-yyyy H:mm",G:"d-M-yyyy H:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"-",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["pl-pl"]={name:"pl-PL",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"zł",code:"PLN"}},calendars:{standard:{days:{names:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],namesAbbr:["N","Pn","Wt","Śr","Cz","Pt","So"],namesShort:["N","Pn","Wt","Śr","Cz","Pt","So"]},months:{names:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],namesAbbr:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"]},AM:[""],PM:[""],patterns:{d:"yyyy-MM-dd",D:"d MMMM yyyy",F:"d MMMM yyyy HH:mm:ss",g:"yyyy-MM-dd HH:mm",G:"yyyy-MM-dd HH:mm:ss",m:"d MMMM",M:"d MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"-",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.pl={name:"pl",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"zł",code:"PLN"}},calendars:{standard:{days:{names:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],namesAbbr:["N","Pn","Wt","Śr","Cz","Pt","So"],namesShort:["N","Pn","Wt","Śr","Cz","Pt","So"]},months:{names:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],namesAbbr:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"]},AM:[""],PM:[""],patterns:{d:"yyyy-MM-dd",D:"d MMMM yyyy",F:"d MMMM yyyy HH:mm:ss",g:"yyyy-MM-dd HH:mm",G:"yyyy-MM-dd HH:mm:ss",m:"d MMMM",M:"d MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"-",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["pt-br"]={name:"pt-BR",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-$ n","$ n"],decimals:2,",":".",".":",",groupSize:[3],symbol:"R$",code:"BRL"}},calendars:{standard:{days:{names:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],namesAbbr:["dom","seg","ter","qua","qui","sex","sáb"],namesShort:["D","S","T","Q","Q","S","S"]},months:{names:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],namesAbbr:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"]},AM:[""],PM:[""],patterns:{d:"dd/MM/yyyy",D:"dddd, d' de 'MMMM' de 'yyyy",F:"dddd, d' de 'MMMM' de 'yyyy HH:mm:ss",g:"dd/MM/yyyy HH:mm",G:"dd/MM/yyyy HH:mm:ss",m:"dd' de 'MMMM",M:"dd' de 'MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM' de 'yyyy",Y:"MMMM' de 'yyyy"},"/":"/",":":":",firstDay:0}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.pt={name:"pt",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-$ n","$ n"],decimals:2,",":".",".":",",groupSize:[3],symbol:"R$",code:"EUR"}},calendars:{standard:{days:{names:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],namesAbbr:["dom","seg","ter","qua","qui","sex","sáb"],namesShort:["D","S","T","Q","Q","S","S"]},months:{names:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],namesAbbr:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"]},AM:[""],PM:[""],patterns:{d:"dd/MM/yyyy",D:"dddd, d' de 'MMMM' de 'yyyy",F:"dddd, d' de 'MMMM' de 'yyyy HH:mm:ss",g:"dd/MM/yyyy HH:mm",G:"dd/MM/yyyy HH:mm:ss",m:"dd' de 'MMMM",M:"dd' de 'MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM' de 'yyyy",Y:"MMMM' de 'yyyy"},"/":"/",":":":",firstDay:0}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["ru-ru"]={name:"ru-RU",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n$","n$"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"р.",code:"RUB"}},calendars:{standard:{days:{names:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],namesAbbr:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],namesShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"]},months:{names:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],namesAbbr:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"]},AM:[""],PM:[""],patterns:{d:"dd.MM.yyyy",D:"d MMMM yyyy 'г.'",F:"d MMMM yyyy 'г.' H:mm:ss",g:"dd.MM.yyyy H:mm",G:"dd.MM.yyyy H:mm:ss",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":".",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.ru={name:"ru",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n$","n$"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"р.",code:"RUB"}},calendars:{standard:{days:{names:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],namesAbbr:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],namesShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"]},months:{names:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],namesAbbr:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"]},AM:[""],PM:[""],patterns:{d:"dd.MM.yyyy",D:"d MMMM yyyy 'г.'",F:"d MMMM yyyy 'г.' H:mm:ss",g:"dd.MM.yyyy H:mm",G:"dd.MM.yyyy H:mm:ss",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":".",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["tr-tr"]={name:"tr-TR",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-%n","%n"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":".",".":",",groupSize:[3],symbol:"TL",code:"TRY"}},calendars:{standard:{days:{names:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],namesAbbr:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],namesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"]},months:{names:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],namesAbbr:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"]},AM:[""],PM:[""],patterns:{d:"dd.MM.yyyy",D:"dd MMMM yyyy dddd",F:"dd MMMM yyyy dddd HH:mm:ss",g:"dd.MM.yyyy HH:mm",G:"dd.MM.yyyy HH:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":".",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures.tr={name:"tr",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-%n","%n"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":".",".":",",groupSize:[3],symbol:"TL",code:"TRY"}},calendars:{standard:{days:{names:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],namesAbbr:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],namesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"]},months:{names:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],namesAbbr:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"]},AM:[""],PM:[""],patterns:{d:"dd.MM.yyyy",D:"dd MMMM yyyy dddd",F:"dd MMMM yyyy dddd HH:mm:ss",g:"dd.MM.yyyy HH:mm",G:"dd.MM.yyyy HH:mm:ss",m:"dd MMMM",M:"dd MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":".",":":":",firstDay:1}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["zh-cn"]={name:"zh-CN",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["$-n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"¥",code:"CNY"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["周日","周一","周二","周三","周四","周五","周六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' H:mm:ss",g:"yyyy/M/d H:mm",G:"yyyy/M/d H:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});(function(b,a){a([],b)})(function(){(function(c,b){var a=c.atlas||(c.atlas={cultures:{}});a.cultures["zh-tw"]={name:"zh-TW",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n%","n%"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["-$n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"NT$",code:"TWD"}},calendars:{standard:{days:{names:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],namesAbbr:["週日","週一","週二","週三","週四","週五","週六"],namesShort:["日","一","二","三","四","五","六"]},months:{names:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],namesAbbr:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},AM:["上午","上午","上午"],PM:["下午","下午","下午"],patterns:{d:"yyyy/M/d",D:"yyyy'年'M'月'd'日'",F:"yyyy'年'M'月'd'日' tt hh:mm:ss",g:"yyyy/M/d tt hh:mm",G:"yyyy/M/d tt hh:mm:ss",m:"M'月'd'日'",M:"M'月'd'日'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"tt hh:mm",T:"tt hh:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"yyyy'年'M'月'",Y:"yyyy'年'M'月'"},"/":"/",":":":",firstDay:0}}}})(this);return atlas},typeof define=="function"&&define.amd?define:function(a,b){b()});atlas.domReady=false;(function(){var b=false,a=[],c=function(){if(!b){while(a.length){a.shift().call(document)}b=true;atlas.domReady=true}},d=window;if(!d.addEventListener){d.addEventListener=function(f,e){return d.attachEvent("on"+f,e)}}if(document.attachEvent?document.readyState==="complete":document.readyState!=="loading"){c()}else{if(!d.document.addEventListener){d.document.attachEvent("DOMContentLoaded",c);d.document.attachEvent("onreadystatechange",c)}else{d.document.addEventListener("DOMContentLoaded",c,false);d.document.addEventListener("readystatechange",c,false)}d.addEventListener("load",c,false)}atlas.ready=function(e){if(b&&e&&atlas.isFunction(e)){e.call(document)}else{if(e){a.push(e)}else{c()}}return[document]}})();(function(){var a=function(){var h=arguments[0]||{},j=this,i=BLS.references,e=i.environmentInfo,g=i.metaInfo,k="data-tracking-",b=(function(){var l=(atlas.isAtlas(j))?j:{},m=(Object.keys(l).length>0)?atlas.registry.get(l.selector):{};return(m)?m:l})(),c=(b.attr)?{category:b.attr(k+"category"),action:b.attr(k+"action"),label:b.attr(k+"label"),value:b.attr(k+"value")}:{},d={category:h.category||c.category||b._subscription||"",action:h.action||c.action||"",label:h.label||c.label||b.target||"",value:h.value||c.value||"",role:h.role||e.roleTitle||"",company:h.company||g.companyName||"",version:h.version||e.version||""},f=":num-"+BLS.core.googleAnalytics.analUsage+++":value-"+d.value+":company-"+d.company+":role-"+d.role+":version-"+d.version;_gaq.push(["_setAccount",BLS.core.googleAnalytics.acctNum]);_gaq.push(["_trackEvent",d.category,d.action,d.label+f]);return d};atlas.beacon=atlas.fn.beacon=a})();(function(c,a,b){a[c]=b()})("pubsub",atlas,function(){var h=-1,i={},g=false,f=function(n){return function m(){throw n}},a=function(q,p,m,o){try{if(atlas.isFunction(q)){q(p,m)}}catch(n){if(o&&typeof o==="boolean"&&o===true){f(n)()}else{setTimeout(f(n),0)}}},d=function(r,q,m,o){var t=i[q],n,p,s;if(!i.hasOwnProperty(q)){return}for(n=0,p=t.length;n0},e=function(p,n,q,o){var m=c(p,n,o);if(!b(p)){return false}if(q&&q===true){m()}else{setTimeout(m,0)}return true},j=function(o,n,m){m=(m===true);return e(o,n,m,this.instantExceptions)},k=function(n,m){var o;if(!i.hasOwnProperty(n)){i[n]=[]}o=String(++h);i[n].push({token:o,func:m});return o},l=function(r){var n=typeof r==="string",o=n?"token":"func",t=n?r:true,q=false,p,s,m;for(p in i){s=i[p];m=s.length-1;for(;m>=0;m--){if(s[m][o]===r){s.splice(m,1);q=t;if(n){return q}}}}return q};return{subscriptions:i,instantExceptions:g,publish:j,subscribe:k,unsubscribe:l}});(function(){var b=function(){var c=document.querySelector("input[name=__RequestVerificationToken]");return c&&c.value||null},a=function(){atlas.antiCsrf.token=b()};atlas.antiCsrf={token:null};a()})();(function(){function d(q){var r={},s=r.info={},p=0,g,f,k=atlas.pubsub.publish,j=atlas.performance,l=["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"],m=l.length||0,h=atlas.antiCsrf||{};q=q||{};s.nStart=j.now();s.xDomain=false;s.bLegacyXHR=false;r.xhr=(function(){var t=q.url;try{if(typeof XDomainRequest!=="undefined"&&atlas.startsWith(t,"http")&&((t).indexOf(window.location.origin))<0){s.xDomain=true;return new XDomainRequest()}return new XMLHttpRequest()}catch(i){s.bLegacyXHR=true;for(;p=0)}d.hasValidContentType=b;function c(f,g){if(typeof f==="undefined"){atlas.logError("Type Error","Cannot parameterize an undefined parameter");return""}f=encodeURIComponent(""+f);return(typeof g==="undefined")?f:(atlas.isArray(g)?g.map(function(h){return f+"="+encodeURIComponent(""+h)}).join("&"):f+"="+encodeURIComponent(""+g))}d.parameterize=c;function e(j,f,k){var i,h="?",g="&";if(!atlas.isString(j)){atlas.logError("Type Error",atlas.format("Parameter `url` is expected to be a string, but {0} received.",[typeof j]));return""}if(atlas.isObject(f)){i=Object.keys(f).map(function(l){return c(l,f[l])}).join(g)}else{i=c(f,k)}if(!i){return j}return j+((j.indexOf(h)<0)?h:g)+i}d.updateQueryString=e;function a(g,i){var h,f;if(!g){atlas.logWarn("`atlas.utils.getQueryParameter` expects a non-empty string as a parameter name, but {0} was received",[g]);return null}i=i||window.location.href;g=g.replace(/[[\]]/g,"\\$&");h=new RegExp("[?&]"+g+"(=([^&#]*)|&|#|$)","i");f=h.exec(i);return !f?null:(!f[2]?"":decodeURIComponent(f[2].replace(/\+/g," ")))}d.getQueryParameter=a;atlas.solicit=d;atlas.solicitAsync=function(f){var g=null,h=new Promise(function(j,i){g=atlas.solicit(atlas.extend({},f,{onSuccess:j,onError:i,async:true}))});h.promise=h;h.xhr=g;return h}}());(function(a){var d="atlas.i18n",b=(typeof BLS!=="undefined"&&BLS.modules&&BLS.modules._getConfig&&BLS.modules._getConfig(d)||{}),c=a.extend(a.i18n||(a.i18n={}),b.resources),e=b.url;c.getAsync=function(h){var f;if(!e){a.logger(d).logError("CRITICAL: Resource API URL not defined, cannot remotely retrieve resources.");return Promise.reject()}f=h&&h.resources;if(!f){a.logger(d).logWarn("No resources specified, aborting...");return Promise.resolve({})}a.isArray(f)||(f=[f]);return a.solicitAsync({url:a.solicit.updateQueryString(e,{keys:f,lang:h.lang})}).then(function g(i){return JSON.parse(i.responseText)})}}(atlas));(function(a){var c=a,b=function(h,f,g){var d=g||{},e=d.operatorsToReduce||[];if(f&&f.hasOwnProperty("filters")&&!atlas.isEmptyObject(f.filters)){f.filters=atlas.dataStore.filter.reduce(f.filters,e)}return{url:h,method:"POST",data:f}};c=c.strategy||(c.strategy={});c=c.solicit||(c.solicit={});c.dataRequest=b})(atlas);(function(a){var c=a,b=function(B,y,z){var f=atlas.isNumber,g=atlas.isObject,e=atlas.isArray,h=atlas.isString,i=atlas.extend(z,{bustCache:true}),v=i.valueDelim||"~",q=i.sortDelim||"-",r=i.stringQuotes||"%27",k=i.operatorsToReduce||["between","in"],j={contains:"contains",notContains:"doesnotcontain",equal:"eq",notEqual:"neq",startsWith:"startswith",endsWith:"endswith",lessThan:"lt",greaterThan:"gt",lessThanOrEqual:"lte",greaterThanOrEqual:"gte",empty:"isempty",notEmpty:"isnotempty"},l={sort:"sort=",pageSize:"pageSize=",pageNumber:"page=",filter:"filter=",cacheBust:"_="},o=/\d+-\d+-\d+T\d+:\d+:\d+/,m=/:/g,n=/['@#$%^&+{}|:?`=;,[\]\\/]/g,p=/'/g,A={sort:function(C){var D;C=e(C)?C:g(C)?[C]:[];D=(C||[]).reduce(function(G,E,F){if(F!==0){G+=v}G+=E.field+q+E.dir;return G},"");return D?l.sort+D:""},pageSize:function(C){return f(C)?l.pageSize+C:""},pageNumber:function(C){return f(C)?l.pageNumber+C:""},filters:function(C){var D;if(!(g(C)||e(C))){return}return(D=u(C))?l.filter+D:""},cacheBust:function(){return i.bustCache?(new Date()).getTime():""}},d=function(C){return j[C]||C},u=function(C){return e(C.filters)?t(C):s(C)},s=function(E){var G=E.value,D=h(G),C=D&&o.test(G),F=D&&!C?r:"";C&&(G="datetime"+r+G.replace(m,"-")+r);if(D&&!C){G=G.replace(p,"''");G=G.replace(n,function(H){return"%"+H.charCodeAt(0).toString(16).toUpperCase()})}return E.field+v+d(E.op)+v+F+G+F},t=function(D){var C=D.filters;if(C.length===2&&!(C[1].conditionalOp||C[0].conditionalOp)&&C[0].op==="greaterThanOrEqual"&&C[1].op==="lessThanOrEqual"&&C[0].field===C[1].field){C[1].op="lessThan"}return C.reduce(function(G,E,F){if(F!==0){G+=v+d((D.conditionalOp||"").toLowerCase())+v}G+=u(E);return G},"(")+")"},w=Object.keys(A),x=!!~B.indexOf("?");if(y.hasOwnProperty("filters")){y.filters=atlas.dataStore.filter.reduce(y.filters,k)}return{url:w.reduce(function(D,E){var C=A[E](y[E]);if(C){D+=(x?"&":(x=true,"?"))+C}return D},B),method:"GET"}};c=c.strategy||(c.strategy={});c=c.solicit||(c.solicit={});c.kendo=b})(atlas);//! moment.js //! version : 2.15.2 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com !function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b();a.moment=b();}(this,function(){"use strict";function a(){return je.apply(null,arguments)} // This is done to register the method called with moment() // without creating circular dependencies. function b(a){je=a}function c(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function d(a){ // IE8 will treat undefined and null as object if it wasn't for // input != null return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function e(a){var b;for(b in a) // even if its not own property I'd still call it non-empty return!1;return!0}function f(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function g(a,b){var c,d=[];for(c=0;c0)for(c in le)d=le[c],e=b[d],o(e)||(a[d]=e);return a} // Moment prototype object function q(b){p(this,b),this._d=new Date(null!=b._d?b._d.getTime():NaN), // Prevent infinite loop in case updateOffset creates new moment // objects. me===!1&&(me=!0,a.updateOffset(this),me=!1)}function r(a){return a instanceof q||null!=a&&null!=a._isAMomentObject}function s(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function t(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=s(b)),c} // compare two arrays, return the number of differences function u(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;d0?"future":"past"];return y(c)?c(b):c.replace(/%s/i,b)}function I(a,b){var c=a.toLowerCase();we[c]=we[c+"s"]=we[b]=a}function J(a){return"string"==typeof a?we[a]||we[a.toLowerCase()]:void 0}function K(a){var b,c,d={};for(c in a)h(a,c)&&(b=J(c),b&&(d[b]=a[c]));return d}function L(a,b){xe[a]=b}function M(a){var b=[];for(var c in a)b.push({unit:c,priority:xe[c]});return b.sort(function(a,b){return a.priority-b.priority}),b}function N(b,c){return function(d){return null!=d?(P(this,b,d),a.updateOffset(this,c),this):O(this,b)}}function O(a,b){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+b]():NaN}function P(a,b,c){a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+b](c)} // MOMENTS function Q(a){return a=J(a),y(this[a])?this[a]():this}function R(a,b){if("object"==typeof a){a=K(a);for(var c=M(a),d=0;d=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d} // token: 'M' // padded: ['MM', 2] // ordinal: 'Mo' // callback: function () { this.month() + 1 } function T(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Be[a]=e),b&&(Be[b[0]]=function(){return S(e.apply(this,arguments),b[1],b[2])}),c&&(Be[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function U(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function V(a){var b,c,d=a.match(ye);for(b=0,c=d.length;b=0&&ze.test(a);)a=a.replace(ze,c),ze.lastIndex=0,d-=1;return a}function Y(a,b,c){Te[a]=y(b)?b:function(a,d){return a&&c?c:b}}function Z(a,b){return h(Te,a)?Te[a](b._strict,b._locale):new RegExp($(a))} // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript function $(a){return _(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}))}function _(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function aa(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),"number"==typeof b&&(d=function(a,c){c[b]=t(a)}),c=0;c=0&&isFinite(h.getFullYear())&&h.setFullYear(a),h}function sa(a){var b=new Date(Date.UTC.apply(null,arguments)); //the Date.UTC function remaps years 0-99 to 1900-1999 return a<100&&a>=0&&isFinite(b.getUTCFullYear())&&b.setUTCFullYear(a),b} // start-of-first-week - start-of-year function ta(a,b,c){var// first-week day -- which january is always in the first week (4 for iso, 1 for other) d=7+b-c, // first-week day local weekday -- which local weekday is fwd e=(7+sa(a,0,d).getUTCDay()-b)%7;return-e+d-1} //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday function ua(a,b,c,d,e){var f,g,h=(7+c-d)%7,i=ta(a,d,e),j=1+7*(b-1)+h+i;return j<=0?(f=a-1,g=oa(f)+j):j>oa(a)?(f=a+1,g=j-oa(a)):(f=a,g=j),{year:f,dayOfYear:g}}function va(a,b,c){var d,e,f=ta(a.year(),b,c),g=Math.floor((a.dayOfYear()-f-1)/7)+1;return g<1?(e=a.year()-1,d=g+wa(e,b,c)):g>wa(a.year(),b,c)?(d=g-wa(a.year(),b,c),e=a.year()+1):(e=a.year(),d=g),{week:d,year:e}}function wa(a,b,c){var d=ta(a,b,c),e=ta(a+1,b,c);return(oa(a)-d+e)/7} // HELPERS // LOCALES function xa(a){return va(a,this._week.dow,this._week.doy).week}function ya(){return this._week.dow}function za(){return this._week.doy} // MOMENTS function Aa(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function Ba(a){var b=va(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")} // HELPERS function Ca(a,b){return"string"!=typeof a?a:isNaN(a)?(a=b.weekdaysParse(a),"number"==typeof a?a:null):parseInt(a,10)}function Da(a,b){return"string"==typeof a?b.weekdaysParse(a)%7||7:isNaN(a)?null:a}function Ea(a,b){return a?c(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(b)?"format":"standalone"][a.day()]:this._weekdays}function Fa(a){return a?this._weekdaysShort[a.day()]:this._weekdaysShort}function Ga(a){return a?this._weekdaysMin[a.day()]:this._weekdaysMin}function Ha(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;d<7;++d)f=j([2e3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(f,"").toLocaleLowerCase();return c?"dddd"===b?(e=pe.call(this._weekdaysParse,g),e!==-1?e:null):"ddd"===b?(e=pe.call(this._shortWeekdaysParse,g),e!==-1?e:null):(e=pe.call(this._minWeekdaysParse,g),e!==-1?e:null):"dddd"===b?(e=pe.call(this._weekdaysParse,g),e!==-1?e:(e=pe.call(this._shortWeekdaysParse,g),e!==-1?e:(e=pe.call(this._minWeekdaysParse,g),e!==-1?e:null))):"ddd"===b?(e=pe.call(this._shortWeekdaysParse,g),e!==-1?e:(e=pe.call(this._weekdaysParse,g),e!==-1?e:(e=pe.call(this._minWeekdaysParse,g),e!==-1?e:null))):(e=pe.call(this._minWeekdaysParse,g),e!==-1?e:(e=pe.call(this._weekdaysParse,g),e!==-1?e:(e=pe.call(this._shortWeekdaysParse,g),e!==-1?e:null)))}function Ia(a,b,c){var d,e,f;if(this._weekdaysParseExact)return Ha.call(this,a,b,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;d<7;d++){ // test the regex if( // make the regex if we don't have it already e=j([2e3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(e,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(e,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(e,"").replace(".",".?")+"$","i")),this._weekdaysParse[d]||(f="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[d]=new RegExp(f.replace(".",""),"i")),c&&"dddd"===b&&this._fullWeekdaysParse[d].test(a))return d;if(c&&"ddd"===b&&this._shortWeekdaysParse[d].test(a))return d;if(c&&"dd"===b&&this._minWeekdaysParse[d].test(a))return d;if(!c&&this._weekdaysParse[d].test(a))return d}} // MOMENTS function Ja(a){if(!this.isValid())return null!=a?this:NaN;var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=Ca(a,this.localeData()),this.add(a-b,"d")):b}function Ka(a){if(!this.isValid())return null!=a?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function La(a){if(!this.isValid())return null!=a?this:NaN; // behaves the same as moment#day except // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) // as a setter, sunday should belong to the previous week. if(null!=a){var b=Da(a,this.localeData());return this.day(this.day()%7?b:b-7)}return this.day()||7}function Ma(a){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Pa.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=nf),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function Na(a){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Pa.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=of),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Oa(a){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Pa.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=pf),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Pa(){function a(a,b){return b.length-a.length}var b,c,d,e,f,g=[],h=[],i=[],k=[];for(b=0;b<7;b++) // make the regex if we don't have it already c=j([2e3,1]).day(b),d=this.weekdaysMin(c,""),e=this.weekdaysShort(c,""),f=this.weekdays(c,""),g.push(d),h.push(e),i.push(f),k.push(d),k.push(e),k.push(f);for( // Sorting makes sure if one weekday (or abbr) is a prefix of another it // will match the longer piece. g.sort(a),h.sort(a),i.sort(a),k.sort(a),b=0;b<7;b++)h[b]=_(h[b]),i[b]=_(i[b]),k[b]=_(k[b]);this._weekdaysRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")} // FORMATTING function Qa(){return this.hours()%12||12}function Ra(){return this.hours()||24}function Sa(a,b){T(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})} // PARSING function Ta(a,b){return b._meridiemParse} // LOCALES function Ua(a){ // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays // Using charAt should be more compatible. return"p"===(a+"").toLowerCase().charAt(0)}function Va(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function Wa(a){return a?a.toLowerCase().replace("_","-"):a} // pick the locale from the array // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root function Xa(a){for(var b,c,d,e,f=0;f0;){if(d=Ya(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&u(e,c,!0)>=b-1) //the next array item is better than a shallower substring of this one break;b--}f++}return null}function Ya(a){var b=null; // TODO: Find a better way to register and load all the locales in Node if(!uf[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=qf._abbr,require("./locale/"+a), // because defineLocale currently also sets the global locale, we // want to undo that for lazy loaded locales Za(b)}catch(a){}return uf[a]} // This function will load locale and then set the global locale. If // no arguments are passed in, it will simply return the current global // locale key. function Za(a,b){var c; // moment.duration._locale = moment._locale = data; return a&&(c=o(b)?ab(a):$a(a,b),c&&(qf=c)),qf._abbr}function $a(a,b){if(null!==b){var c=tf; // treat as if there is no base config // backwards compat for now: also set the locale return b.abbr=a,null!=uf[a]?(x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=uf[a]._config):null!=b.parentLocale&&(null!=uf[b.parentLocale]?c=uf[b.parentLocale]._config:x("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),uf[a]=new B(A(c,b)),Za(a),uf[a]} // useful for testing return delete uf[a],null}function _a(a,b){if(null!=b){var c,d=tf; // MERGE null!=uf[a]&&(d=uf[a]._config),b=A(d,b),c=new B(b),c.parentLocale=uf[a],uf[a]=c, // backwards compat for now: also set the locale Za(a)}else // pass null for config to unupdate, useful for tests null!=uf[a]&&(null!=uf[a].parentLocale?uf[a]=uf[a].parentLocale:null!=uf[a]&&delete uf[a]);return uf[a]} // returns locale data function ab(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return qf;if(!c(a)){if( //short-circuit everything else b=Ya(a))return b;a=[a]}return Xa(a)}function bb(){return oe(uf)}function cb(a){var b,c=a._a;return c&&l(a).overflow===-2&&(b=c[We]<0||c[We]>11?We:c[Xe]<1||c[Xe]>da(c[Ve],c[We])?Xe:c[Ye]<0||c[Ye]>24||24===c[Ye]&&(0!==c[Ze]||0!==c[$e]||0!==c[_e])?Ye:c[Ze]<0||c[Ze]>59?Ze:c[$e]<0||c[$e]>59?$e:c[_e]<0||c[_e]>999?_e:-1,l(a)._overflowDayOfYear&&(bXe)&&(b=Xe),l(a)._overflowWeeks&&b===-1&&(b=af),l(a)._overflowWeekday&&b===-1&&(b=bf),l(a).overflow=b),a} // date from iso format function db(a){var b,c,d,e,f,g,h=a._i,i=vf.exec(h)||wf.exec(h);if(i){for(l(a).iso=!0,b=0,c=yf.length;boa(e)&&(l(a)._overflowDayOfYear=!0),c=sa(e,0,a._dayOfYear),a._a[We]=c.getUTCMonth(),a._a[Xe]=c.getUTCDate()),b=0;b<3&&null==a._a[b];++b)a._a[b]=f[b]=d[b]; // Zero out whatever was not defaulted, including time for(;b<7;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b]; // Check for 24:00:00.000 24===a._a[Ye]&&0===a._a[Ze]&&0===a._a[$e]&&0===a._a[_e]&&(a._nextDay=!0,a._a[Ye]=0),a._d=(a._useUTC?sa:ra).apply(null,f), // Apply timezone offset from input. The actual utcOffset can be changed // with parseZone. null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[Ye]=24)}}function ib(a){var b,c,d,e,f,g,h,i;b=a._w,null!=b.GG||null!=b.W||null!=b.E?(f=1,g=4, // TODO: We need to take the current isoWeekYear, but that depends on // how we interpret now (local, utc, fixed offset). So create // a now version of current config (take local/utc/offset flags, and // create now). c=fb(b.GG,a._a[Ve],va(rb(),1,4).year),d=fb(b.W,1),e=fb(b.E,1),(e<1||e>7)&&(i=!0)):(f=a._locale._week.dow,g=a._locale._week.doy,c=fb(b.gg,a._a[Ve],va(rb(),f,g).year),d=fb(b.w,1),null!=b.d?( // weekday -- low day numbers are considered next week e=b.d,(e<0||e>6)&&(i=!0)):null!=b.e?( // local weekday -- counting starts from begining of week e=b.e+f,(b.e<0||b.e>6)&&(i=!0)): // default to begining of week e=f),d<1||d>wa(c,f,g)?l(a)._overflowWeeks=!0:null!=i?l(a)._overflowWeekday=!0:(h=ua(c,d,e,f,g),a._a[Ve]=h.year,a._dayOfYear=h.dayOfYear)} // date from string and format string function jb(b){ // TODO: Move this to another part of the creation flow to prevent circular deps if(b._f===a.ISO_8601)return void db(b);b._a=[],l(b).empty=!0; // This array is used to make a Date, either with `new Date` or `Date.UTC` var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=X(b._f,b._locale).match(ye)||[],c=0;c0&&l(b).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length), // don't parse if it's not a known token Be[f]?(d?l(b).empty=!1:l(b).unusedTokens.push(f),ca(f,d,b)):b._strict&&!d&&l(b).unusedTokens.push(f); // add remaining unparsed input length to the string l(b).charsLeftOver=i-j,h.length>0&&l(b).unusedInput.push(h), // clear _12h flag if hour is <= 12 b._a[Ye]<=12&&l(b).bigHour===!0&&b._a[Ye]>0&&(l(b).bigHour=void 0),l(b).parsedDateParts=b._a.slice(0),l(b).meridiem=b._meridiem, // handle meridiem b._a[Ye]=kb(b._locale,b._a[Ye],b._meridiem),hb(b),cb(b)}function kb(a,b,c){var d; // Fallback return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&b<12&&(b+=12),d||12!==b||(b=0),b):b} // date from string and array of format strings function lb(a){var b,c,d,e,f;if(0===a._f.length)return l(a).invalidFormat=!0,void(a._d=new Date(NaN));for(e=0;e // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset // +0200, so we adjust the time as needed, to be valid. // // Keeping the time actually adds/subtracts (one hour) // from the actual represented time. That is why we call updateOffset // a second time. In case it wants us to change the offset again // _changeInProgress == true case, then we have to adjust, because // there is no such time in the given timezone. function Cb(b,c){var d,e=this._offset||0;return this.isValid()?null!=b?("string"==typeof b?b=zb(Qe,b):Math.abs(b)<16&&(b=60*b),!this._isUTC&&c&&(d=Bb(this)),this._offset=b,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==b&&(!c||this._changeInProgress?Sb(this,Nb(b-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?e:Bb(this):null!=b?this:NaN}function Db(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function Eb(a){return this.utcOffset(0,a)}function Fb(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Bb(this),"m")),this}function Gb(){if(this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var a=zb(Pe,this._i);0===a?this.utcOffset(0,!0):this.utcOffset(zb(Pe,this._i))}return this}function Hb(a){return!!this.isValid()&&(a=a?rb(a).utcOffset():0,(this.utcOffset()-a)%60===0)}function Ib(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Jb(){if(!o(this._isDSTShifted))return this._isDSTShifted;var a={};if(p(a,this),a=ob(a),a._a){var b=a._isUTC?j(a._a):rb(a._a);this._isDSTShifted=this.isValid()&&u(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Kb(){return!!this.isValid()&&!this._isUTC}function Lb(){return!!this.isValid()&&this._isUTC}function Mb(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Nb(a,b){var c,d,e,f=a, // matching against regexp is expensive, do it on demand g=null;// checks for null or undefined return wb(a)?f={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(f={},b?f[b]=a:f.milliseconds=a):(g=Ff.exec(a))?(c="-"===g[1]?-1:1,f={y:0,d:t(g[Xe])*c,h:t(g[Ye])*c,m:t(g[Ze])*c,s:t(g[$e])*c,ms:t(xb(1e3*g[_e]))*c}):(g=Gf.exec(a))?(c="-"===g[1]?-1:1,f={y:Ob(g[2],c),M:Ob(g[3],c),w:Ob(g[4],c),d:Ob(g[5],c),h:Ob(g[6],c),m:Ob(g[7],c),s:Ob(g[8],c)}):null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(e=Qb(rb(f.from),rb(f.to)),f={},f.ms=e.milliseconds,f.M=e.months),d=new vb(f),wb(a)&&h(a,"_locale")&&(d._locale=a._locale),d}function Ob(a,b){ // We'd normally use ~~inp for this, but unfortunately it also // converts floats to ints. // inp may be undefined, so careful calling replace on it. var c=a&&parseFloat(a.replace(",",".")); // apply sign while we're at it return(isNaN(c)?0:c)*b}function Pb(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function Qb(a,b){var c;return a.isValid()&&b.isValid()?(b=Ab(b,a),a.isBefore(b)?c=Pb(a,b):(c=Pb(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}} // TODO: remove 'name' arg after deprecation is removed function Rb(a,b){return function(c,d){var e,f; //invert the arguments, but complain about it return null===d||isNaN(+d)||(x(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=Nb(c,d),Sb(this,e,a),this}}function Sb(b,c,d,e){var f=c._milliseconds,g=xb(c._days),h=xb(c._months);b.isValid()&&(e=null==e||e,f&&b._d.setTime(b._d.valueOf()+f*d),g&&P(b,"Date",O(b,"Date")+g*d),h&&ia(b,O(b,"Month")+h*d),e&&a.updateOffset(b,g||h))}function Tb(a,b){var c=a.diff(b,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function Ub(b,c){ // We want to compare the start of today, vs this. // Getting start-of-today depends on whether we're local/utc/offset or not. var d=b||rb(),e=Ab(d,this).startOf("day"),f=a.calendarFormat(this,e)||"sameElse",g=c&&(y(c[f])?c[f].call(this,d):c[f]);return this.format(g||this.localeData().calendar(f,this,rb(d)))}function Vb(){return new q(this)}function Wb(a,b){var c=r(a)?a:rb(a);return!(!this.isValid()||!c.isValid())&&(b=J(o(b)?"millisecond":b),"millisecond"===b?this.valueOf()>c.valueOf():c.valueOf()f&&(b=f),Dc.call(this,a,b,c,d,e))}function Dc(a,b,c,d,e){var f=ua(a,b,c,d,e),g=sa(f.year,0,f.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this} // MOMENTS function Ec(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)} // HELPERS // MOMENTS function Fc(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")}function Gc(a,b){b[_e]=t(1e3*("0."+a))} // MOMENTS function Hc(){return this._isUTC?"UTC":""}function Ic(){return this._isUTC?"Coordinated Universal Time":""}function Jc(a){return rb(1e3*a)}function Kc(){return rb.apply(null,arguments).parseZone()}function Lc(a){return a}function Mc(a,b,c,d){var e=ab(),f=j().set(d,b);return e[c](f,a)}function Nc(a,b,c){if("number"==typeof a&&(b=a,a=void 0),a=a||"",null!=b)return Mc(a,b,c,"month");var d,e=[];for(d=0;d<12;d++)e[d]=Mc(a,d,c,"month");return e} // () // (5) // (fmt, 5) // (fmt) // (true) // (true, 5) // (true, fmt, 5) // (true, fmt) function Oc(a,b,c,d){"boolean"==typeof a?("number"==typeof b&&(c=b,b=void 0),b=b||""):(b=a,c=b,a=!1,"number"==typeof b&&(c=b,b=void 0),b=b||"");var e=ab(),f=a?e._week.dow:0;if(null!=c)return Mc(b,(c+f)%7,d,"day");var g,h=[];for(g=0;g<7;g++)h[g]=Mc(b,(g+f)%7,d,"day");return h}function Pc(a,b){return Nc(a,b,"months")}function Qc(a,b){return Nc(a,b,"monthsShort")}function Rc(a,b,c){return Oc(a,b,c,"weekdays")}function Sc(a,b,c){return Oc(a,b,c,"weekdaysShort")}function Tc(a,b,c){return Oc(a,b,c,"weekdaysMin")}function Uc(){var a=this._data;return this._milliseconds=Sf(this._milliseconds),this._days=Sf(this._days),this._months=Sf(this._months),a.milliseconds=Sf(a.milliseconds),a.seconds=Sf(a.seconds),a.minutes=Sf(a.minutes),a.hours=Sf(a.hours),a.months=Sf(a.months),a.years=Sf(a.years),this}function Vc(a,b,c,d){var e=Nb(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()} // supports only 2.0-style add(1, 's') or add(duration) function Wc(a,b){return Vc(this,a,b,1)} // supports only 2.0-style subtract(1, 's') or subtract(duration) function Xc(a,b){return Vc(this,a,b,-1)}function Yc(a){return a<0?Math.floor(a):Math.ceil(a)}function Zc(){var a,b,c,d,e,f=this._milliseconds,g=this._days,h=this._months,i=this._data; // if we have a mix of positive and negative values, bubble down first // check: https://github.com/moment/moment/issues/2166 // The following code bubbles up values, see the tests for // examples of what that means. // convert days to months // 12 months -> 1 year return f>=0&&g>=0&&h>=0||f<=0&&g<=0&&h<=0||(f+=864e5*Yc(_c(h)+g),g=0,h=0),i.milliseconds=f%1e3,a=s(f/1e3),i.seconds=a%60,b=s(a/60),i.minutes=b%60,c=s(b/60),i.hours=c%24,g+=s(c/24),e=s($c(g)),h+=e,g-=Yc(_c(e)),d=s(h/12),h%=12,i.days=g,i.months=h,i.years=d,this}function $c(a){ // 400 years have 146097 days (taking into account leap year rules) // 400 years have 12 months === 4800 return 4800*a/146097}function _c(a){ // the reverse of daysToMonths return 146097*a/4800}function ad(a){var b,c,d=this._milliseconds;if(a=J(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+$c(b),"month"===a?c:c/12;switch( // handle milliseconds separately because of floating point math errors (issue #1867) b=this._days+Math.round(_c(this._months)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 1440*b+d/6e4;case"second":return 86400*b+d/1e3; // Math.floor prevents floating point math errors here case"millisecond":return Math.floor(864e5*b)+d;default:throw new Error("Unknown unit "+a)}} // TODO: Use this.as('ms')? function bd(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*t(this._months/12)}function cd(a){return function(){return this.as(a)}}function dd(a){return a=J(a),this[a+"s"]()}function ed(a){return function(){return this._data[a]}}function fd(){return s(this.days()/7)} // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize function gd(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function hd(a,b,c){var d=Nb(a).abs(),e=gg(d.as("s")),f=gg(d.as("m")),g=gg(d.as("h")),h=gg(d.as("d")),i=gg(d.as("M")),j=gg(d.as("y")),k=e0,k[4]=c,gd.apply(null,k)} // This function allows you to set the rounding function for relative time strings function id(a){return void 0===a?gg:"function"==typeof a&&(gg=a,!0)} // This function allows you to set a threshold for relative time strings function jd(a,b){return void 0!==hg[a]&&(void 0===b?hg[a]:(hg[a]=b,!0))}function kd(a){var b=this.localeData(),c=hd(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function ld(){ // for ISO strings we do not use the normal bubbling rules: // * milliseconds bubble up until they become hours // * days do not bubble at all // * months bubble up until they become years // This is because there is no context-free conversion between hours and days // (think of clock changes) // and also not between days and months (28-31 days per month) var a,b,c,d=ig(this._milliseconds)/1e3,e=ig(this._days),f=ig(this._months); // 3600 seconds -> 60 minutes -> 1 hour a=s(d/60),b=s(a/60),d%=60,a%=60, // 12 months -> 1 year c=s(f/12),f%=12; // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js var g=c,h=f,i=e,j=b,k=a,l=d,m=this.asSeconds();return m?(m<0?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}function md(a,b){var c=a.split("_");return b%10===1&&b%100!==11?c[0]:b%10>=2&&b%10<=4&&(b%100<10||b%100>=20)?c[1]:c[2]}function nd(a,b,c){var d={mm:b?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:b?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===c?b?"хвіліна":"хвіліну":"h"===c?b?"гадзіна":"гадзіну":a+" "+md(d[c],+a)}function od(a,b,c){var d={mm:"munutenn",MM:"miz",dd:"devezh"};return a+" "+rd(d[c],a)}function pd(a){switch(qd(a)){case 1:case 3:case 4:case 5:case 9:return a+" bloaz";default:return a+" vloaz"}}function qd(a){return a>9?qd(a%10):a}function rd(a,b){return 2===b?sd(a):a}function sd(a){var b={m:"v",b:"v",d:"z"};return void 0===b[a.charAt(0)]?a:b[a.charAt(0)]+a.substring(1)}function td(a,b,c){var d=a+" ";switch(c){case"m":return b?"jedna minuta":"jedne minute";case"mm":return d+=1===a?"minuta":2===a||3===a||4===a?"minute":"minuta";case"h":return b?"jedan sat":"jednog sata";case"hh":return d+=1===a?"sat":2===a||3===a||4===a?"sata":"sati";case"dd":return d+=1===a?"dan":"dana";case"MM":return d+=1===a?"mjesec":2===a||3===a||4===a?"mjeseca":"mjeseci";case"yy":return d+=1===a?"godina":2===a||3===a||4===a?"godine":"godina"}}function ud(a){return a>1&&a<5&&1!==~~(a/10)}function vd(a,b,c,d){var e=a+" ";switch(c){case"s":// a few seconds / in a few seconds / a few seconds ago return b||d?"pár sekund":"pár sekundami";case"m":// a minute / in a minute / a minute ago return b?"minuta":d?"minutu":"minutou";case"mm":// 9 minutes / in 9 minutes / 9 minutes ago // 9 minutes / in 9 minutes / 9 minutes ago return b||d?e+(ud(a)?"minuty":"minut"):e+"minutami";break;case"h":// an hour / in an hour / an hour ago return b?"hodina":d?"hodinu":"hodinou";case"hh":// 9 hours / in 9 hours / 9 hours ago // 9 hours / in 9 hours / 9 hours ago return b||d?e+(ud(a)?"hodiny":"hodin"):e+"hodinami";break;case"d":// a day / in a day / a day ago return b||d?"den":"dnem";case"dd":// 9 days / in 9 days / 9 days ago // 9 days / in 9 days / 9 days ago return b||d?e+(ud(a)?"dny":"dní"):e+"dny";break;case"M":// a month / in a month / a month ago return b||d?"měsíc":"měsícem";case"MM":// 9 months / in 9 months / 9 months ago // 9 months / in 9 months / 9 months ago return b||d?e+(ud(a)?"měsíce":"měsíců"):e+"měsíci";break;case"y":// a year / in a year / a year ago return b||d?"rok":"rokem";case"yy":// 9 years / in 9 years / 9 years ago // 9 years / in 9 years / 9 years ago return b||d?e+(ud(a)?"roky":"let"):e+"lety"}}function wd(a,b,c,d){var e={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[a+" Tage",a+" Tagen"],M:["ein Monat","einem Monat"],MM:[a+" Monate",a+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[a+" Jahre",a+" Jahren"]};return b?e[c][0]:e[c][1]}function xd(a,b,c,d){var e={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[a+" Tage",a+" Tagen"],M:["ein Monat","einem Monat"],MM:[a+" Monate",a+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[a+" Jahre",a+" Jahren"]};return b?e[c][0]:e[c][1]}function yd(a,b,c,d){var e={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[a+" minuti",a+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[a+" tunni",a+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[a+" kuu",a+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[a+" aasta",a+" aastat"]};return b?e[c][2]?e[c][2]:e[c][1]:d?e[c][0]:e[c][1]}function zd(a,b,c,d){var e="";switch(c){case"s":return d?"muutaman sekunnin":"muutama sekunti";case"m":return d?"minuutin":"minuutti";case"mm":e=d?"minuutin":"minuuttia";break;case"h":return d?"tunnin":"tunti";case"hh":e=d?"tunnin":"tuntia";break;case"d":return d?"päivän":"päivä";case"dd":e=d?"päivän":"päivää";break;case"M":return d?"kuukauden":"kuukausi";case"MM":e=d?"kuukauden":"kuukautta";break;case"y":return d?"vuoden":"vuosi";case"yy":e=d?"vuoden":"vuotta"}return e=Ad(a,d)+" "+e}function Ad(a,b){return a<10?b?Og[a]:Ng[a]:a}function Bd(a,b,c){var d=a+" ";switch(c){case"m":return b?"jedna minuta":"jedne minute";case"mm":return d+=1===a?"minuta":2===a||3===a||4===a?"minute":"minuta";case"h":return b?"jedan sat":"jednog sata";case"hh":return d+=1===a?"sat":2===a||3===a||4===a?"sata":"sati";case"dd":return d+=1===a?"dan":"dana";case"MM":return d+=1===a?"mjesec":2===a||3===a||4===a?"mjeseca":"mjeseci";case"yy":return d+=1===a?"godina":2===a||3===a||4===a?"godine":"godina"}}function Cd(a,b,c,d){var e=a;switch(c){case"s":return d||b?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(d||b?" perc":" perce");case"mm":return e+(d||b?" perc":" perce");case"h":return"egy"+(d||b?" óra":" órája");case"hh":return e+(d||b?" óra":" órája");case"d":return"egy"+(d||b?" nap":" napja");case"dd":return e+(d||b?" nap":" napja");case"M":return"egy"+(d||b?" hónap":" hónapja");case"MM":return e+(d||b?" hónap":" hónapja");case"y":return"egy"+(d||b?" év":" éve");case"yy":return e+(d||b?" év":" éve")}return""}function Dd(a){return(a?"":"[múlt] ")+"["+Yg[this.day()]+"] LT[-kor]"}function Ed(a){return a%100===11||a%10!==1}function Fd(a,b,c,d){var e=a+" ";switch(c){case"s":return b||d?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return b?"mínúta":"mínútu";case"mm":return Ed(a)?e+(b||d?"mínútur":"mínútum"):b?e+"mínúta":e+"mínútu";case"hh":return Ed(a)?e+(b||d?"klukkustundir":"klukkustundum"):e+"klukkustund";case"d":return b?"dagur":d?"dag":"degi";case"dd":return Ed(a)?b?e+"dagar":e+(d?"daga":"dögum"):b?e+"dagur":e+(d?"dag":"degi");case"M":return b?"mánuður":d?"mánuð":"mánuði";case"MM":return Ed(a)?b?e+"mánuðir":e+(d?"mánuði":"mánuðum"):b?e+"mánuður":e+(d?"mánuð":"mánuði");case"y":return b||d?"ár":"ári";case"yy":return Ed(a)?e+(b||d?"ár":"árum"):e+(b||d?"ár":"ári")}}function Gd(a,b,c,d){var e={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return b?e[c][0]:e[c][1]}function Hd(a){var b=a.substr(0,a.indexOf(" "));return Jd(b)?"a "+a:"an "+a}function Id(a){var b=a.substr(0,a.indexOf(" "));return Jd(b)?"viru "+a:"virun "+a}/** * Returns true if the word before the given number loses the '-n' ending. * e.g. 'an 10 Deeg' but 'a 5 Deeg' * * @param number {integer} * @returns {boolean} */ function Jd(a){if(a=parseInt(a,10),isNaN(a))return!1;if(a<0) // Negative Number --> always true return!0;if(a<10) // Only 1 digit return 4<=a&&a<=7;if(a<100){ // 2 digits var b=a%10,c=a/10;return Jd(0===b?c:b)}if(a<1e4){ // 3 or 4 digits --> recursively check first digit for(;a>=10;)a/=10;return Jd(a)} // Anything larger than 4 digits: recursively check first n-3 digits return a/=1e3,Jd(a)}function Kd(a,b,c,d){return b?"kelios sekundės":d?"kelių sekundžių":"kelias sekundes"}function Ld(a,b,c,d){return b?Nd(c)[0]:d?Nd(c)[1]:Nd(c)[2]}function Md(a){return a%10===0||a>10&&a<20}function Nd(a){return _g[a].split("_")}function Od(a,b,c,d){var e=a+" ";return 1===a?e+Ld(a,b,c[0],d):b?e+(Md(a)?Nd(c)[1]:Nd(c)[0]):d?e+Nd(c)[1]:e+(Md(a)?Nd(c)[1]:Nd(c)[2])}/** * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. */ function Pd(a,b,c){return c?b%10===1&&b%100!==11?a[2]:a[3]:b%10===1&&b%100!==11?a[0]:a[1]}function Qd(a,b,c){return a+" "+Pd(ah[c],a,b)}function Rd(a,b,c){return Pd(ah[c],a,b)}function Sd(a,b){return b?"dažas sekundes":"dažām sekundēm"}function Td(a,b,c,d){var e="";if(b)switch(c){case"s":e="काही सेकंद";break;case"m":e="एक मिनिट";break;case"mm":e="%d मिनिटे";break;case"h":e="एक तास";break;case"hh":e="%d तास";break;case"d":e="एक दिवस";break;case"dd":e="%d दिवस";break;case"M":e="एक महिना";break;case"MM":e="%d महिने";break;case"y":e="एक वर्ष";break;case"yy":e="%d वर्षे"}else switch(c){case"s":e="काही सेकंदां";break;case"m":e="एका मिनिटा";break;case"mm":e="%d मिनिटां";break;case"h":e="एका तासा";break;case"hh":e="%d तासां";break;case"d":e="एका दिवसा";break;case"dd":e="%d दिवसां";break;case"M":e="एका महिन्या";break;case"MM":e="%d महिन्यां";break;case"y":e="एका वर्षा";break;case"yy":e="%d वर्षां"}return e.replace(/%d/i,a)}function Ud(a){return a%10<5&&a%10>1&&~~(a/10)%10!==1}function Vd(a,b,c){var d=a+" ";switch(c){case"m":return b?"minuta":"minutę";case"mm":return d+(Ud(a)?"minuty":"minut");case"h":return b?"godzina":"godzinę";case"hh":return d+(Ud(a)?"godziny":"godzin");case"MM":return d+(Ud(a)?"miesiące":"miesięcy");case"yy":return d+(Ud(a)?"lata":"lat")}}function Wd(a,b,c){var d={mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},e=" ";return(a%100>=20||a>=100&&a%100===0)&&(e=" de "),a+e+d[c]}function Xd(a,b){var c=a.split("_");return b%10===1&&b%100!==11?c[0]:b%10>=2&&b%10<=4&&(b%100<10||b%100>=20)?c[1]:c[2]}function Yd(a,b,c){var d={mm:b?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===c?b?"минута":"минуту":a+" "+Xd(d[c],+a)}function Zd(a){return a>1&&a<5}function $d(a,b,c,d){var e=a+" ";switch(c){case"s":// a few seconds / in a few seconds / a few seconds ago return b||d?"pár sekúnd":"pár sekundami";case"m":// a minute / in a minute / a minute ago return b?"minúta":d?"minútu":"minútou";case"mm":// 9 minutes / in 9 minutes / 9 minutes ago // 9 minutes / in 9 minutes / 9 minutes ago return b||d?e+(Zd(a)?"minúty":"minút"):e+"minútami";break;case"h":// an hour / in an hour / an hour ago return b?"hodina":d?"hodinu":"hodinou";case"hh":// 9 hours / in 9 hours / 9 hours ago // 9 hours / in 9 hours / 9 hours ago return b||d?e+(Zd(a)?"hodiny":"hodín"):e+"hodinami";break;case"d":// a day / in a day / a day ago return b||d?"deň":"dňom";case"dd":// 9 days / in 9 days / 9 days ago // 9 days / in 9 days / 9 days ago return b||d?e+(Zd(a)?"dni":"dní"):e+"dňami";break;case"M":// a month / in a month / a month ago return b||d?"mesiac":"mesiacom";case"MM":// 9 months / in 9 months / 9 months ago // 9 months / in 9 months / 9 months ago return b||d?e+(Zd(a)?"mesiace":"mesiacov"):e+"mesiacmi";break;case"y":// a year / in a year / a year ago return b||d?"rok":"rokom";case"yy":// 9 years / in 9 years / 9 years ago // 9 years / in 9 years / 9 years ago return b||d?e+(Zd(a)?"roky":"rokov"):e+"rokmi"}}function _d(a,b,c,d){var e=a+" ";switch(c){case"s":return b||d?"nekaj sekund":"nekaj sekundami";case"m":return b?"ena minuta":"eno minuto";case"mm":return e+=1===a?b?"minuta":"minuto":2===a?b||d?"minuti":"minutama":a<5?b||d?"minute":"minutami":b||d?"minut":"minutami";case"h":return b?"ena ura":"eno uro";case"hh":return e+=1===a?b?"ura":"uro":2===a?b||d?"uri":"urama":a<5?b||d?"ure":"urami":b||d?"ur":"urami";case"d":return b||d?"en dan":"enim dnem";case"dd":return e+=1===a?b||d?"dan":"dnem":2===a?b||d?"dni":"dnevoma":b||d?"dni":"dnevi";case"M":return b||d?"en mesec":"enim mesecem";case"MM":return e+=1===a?b||d?"mesec":"mesecem":2===a?b||d?"meseca":"mesecema":a<5?b||d?"mesece":"meseci":b||d?"mesecev":"meseci";case"y":return b||d?"eno leto":"enim letom";case"yy":return e+=1===a?b||d?"leto":"letom":2===a?b||d?"leti":"letoma":a<5?b||d?"leta":"leti":b||d?"let":"leti"}}function ae(a){var b=a;return b=a.indexOf("jaj")!==-1?b.slice(0,-3)+"leS":a.indexOf("jar")!==-1?b.slice(0,-3)+"waQ":a.indexOf("DIS")!==-1?b.slice(0,-3)+"nem":b+" pIq"}function be(a){var b=a;return b=a.indexOf("jaj")!==-1?b.slice(0,-3)+"Hu’":a.indexOf("jar")!==-1?b.slice(0,-3)+"wen":a.indexOf("DIS")!==-1?b.slice(0,-3)+"ben":b+" ret"}function ce(a,b,c,d){var e=de(a);switch(c){case"mm":return e+" tup";case"hh":return e+" rep";case"dd":return e+" jaj";case"MM":return e+" jar";case"yy":return e+" DIS"}}function de(a){var b=Math.floor(a%1e3/100),c=Math.floor(a%100/10),d=a%10,e="";return b>0&&(e+=xh[b]+"vatlh"),c>0&&(e+=(""!==e?" ":"")+xh[c]+"maH"),d>0&&(e+=(""!==e?" ":"")+xh[d]),""===e?"pagh":e}function ee(a,b,c,d){var e={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[a+" míuts",""+a+" míuts"],h:["'n þora","'iensa þora"],hh:[a+" þoras",""+a+" þoras"],d:["'n ziua","'iensa ziua"],dd:[a+" ziuas",""+a+" ziuas"],M:["'n mes","'iens mes"],MM:[a+" mesen",""+a+" mesen"],y:["'n ar","'iens ar"],yy:[a+" ars",""+a+" ars"]};return d?e[c][0]:b?e[c][0]:e[c][1]}function fe(a,b){var c=a.split("_");return b%10===1&&b%100!==11?c[0]:b%10>=2&&b%10<=4&&(b%100<10||b%100>=20)?c[1]:c[2]}function ge(a,b,c){var d={mm:b?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:b?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===c?b?"хвилина":"хвилину":"h"===c?b?"година":"годину":a+" "+fe(d[c],+a)}function he(a,b){var c={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},d=/(\[[ВвУу]\]) ?dddd/.test(b)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(b)?"genitive":"nominative";return c[d][a.day()]}function ie(a){return function(){return a+"о"+(11===this.hours()?"б":"")+"] LT"}}var je,ke;ke=Array.prototype.some?Array.prototype.some:function(a){for(var b=Object(this),c=b.length>>>0,d=0;d68?1900:2e3)}; // MOMENTS var hf=N("FullYear",!0); // FORMATTING T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"), // ALIASES I("week","w"),I("isoWeek","W"), // PRIORITIES L("week",5),L("isoWeek",5), // PARSING Y("w",He),Y("ww",He,De),Y("W",He),Y("WW",He,De),ba(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=t(a)});var jf={dow:0,// Sunday is the first day of the week. doy:6}; // FORMATTING T("d",0,"do","day"),T("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),T("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),T("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"), // ALIASES I("day","d"),I("weekday","e"),I("isoWeekday","E"), // PRIORITY L("day",11),L("weekday",11),L("isoWeekday",11), // PARSING Y("d",He),Y("e",He),Y("E",He),Y("dd",function(a,b){return b.weekdaysMinRegex(a)}),Y("ddd",function(a,b){return b.weekdaysShortRegex(a)}),Y("dddd",function(a,b){return b.weekdaysRegex(a)}),ba(["dd","ddd","dddd"],function(a,b,c,d){var e=c._locale.weekdaysParse(a,d,c._strict); // if we didn't get a weekday name, mark the date as invalid null!=e?b.d=e:l(c).invalidWeekday=a}),ba(["d","e","E"],function(a,b,c,d){b[d]=t(a)}); // LOCALES var kf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),lf="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),mf="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),nf=Se,of=Se,pf=Se;T("H",["HH",2],0,"hour"),T("h",["hh",2],0,Qa),T("k",["kk",2],0,Ra),T("hmm",0,0,function(){return""+Qa.apply(this)+S(this.minutes(),2)}),T("hmmss",0,0,function(){return""+Qa.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)}),T("Hmm",0,0,function(){return""+this.hours()+S(this.minutes(),2)}),T("Hmmss",0,0,function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)}),Sa("a",!0),Sa("A",!1), // ALIASES I("hour","h"), // PRIORITY L("hour",13),Y("a",Ta),Y("A",Ta),Y("H",He),Y("h",He),Y("HH",He,De),Y("hh",He,De),Y("hmm",Ie),Y("hmmss",Je),Y("Hmm",Ie),Y("Hmmss",Je),aa(["H","HH"],Ye),aa(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),aa(["h","hh"],function(a,b,c){b[Ye]=t(a),l(c).bigHour=!0}),aa("hmm",function(a,b,c){var d=a.length-2;b[Ye]=t(a.substr(0,d)),b[Ze]=t(a.substr(d)),l(c).bigHour=!0}),aa("hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[Ye]=t(a.substr(0,d)),b[Ze]=t(a.substr(d,2)),b[$e]=t(a.substr(e)),l(c).bigHour=!0}),aa("Hmm",function(a,b,c){var d=a.length-2;b[Ye]=t(a.substr(0,d)),b[Ze]=t(a.substr(d))}),aa("Hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[Ye]=t(a.substr(0,d)),b[Ze]=t(a.substr(d,2)),b[$e]=t(a.substr(e))});var qf,rf=/[ap]\.?m?\.?/i,sf=N("Hours",!0),tf={calendar:qe,longDateFormat:re,invalidDate:se,ordinal:te,ordinalParse:ue,relativeTime:ve,months:df,monthsShort:ef,week:jf,weekdays:kf,weekdaysMin:mf,weekdaysShort:lf,meridiemParse:rf},uf={},vf=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,wf=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,xf=/Z|[+-]\d\d(?::?\d\d)?/,yf=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/], // YYYYMM is NOT allowed by the standard ["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],zf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Af=/^\/?Date\((\-?\d+)/i;a.createFromInputFallback=w("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}), // constant that refers to the ISO standard a.ISO_8601=function(){};var Bf=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=rb.apply(null,arguments);return this.isValid()&&a.isValid()?athis?this:a:n()}),Df=function(){return Date.now?Date.now():+new Date};yb("Z",":"),yb("ZZ",""), // PARSING Y("Z",Qe),Y("ZZ",Qe),aa(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=zb(Qe,a)}); // HELPERS // timezone chunker // '+10:00' > ['10', '00'] // '-1530' > ['-15', '30'] var Ef=/([\+\-]|\d\d)/gi; // HOOKS // This function will be called whenever a moment is mutated. // It is intended to keep the offset in sync with the timezone. a.updateOffset=function(){}; // ASP.NET json date format regex var Ff=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Gf=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Nb.fn=vb.prototype;var Hf=Rb(1,"add"),If=Rb(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Jf=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)}); // FORMATTING T(0,["gg",2],0,function(){return this.weekYear()%100}),T(0,["GG",2],0,function(){return this.isoWeekYear()%100}),xc("gggg","weekYear"),xc("ggggg","weekYear"),xc("GGGG","isoWeekYear"),xc("GGGGG","isoWeekYear"), // ALIASES I("weekYear","gg"),I("isoWeekYear","GG"), // PRIORITY L("weekYear",1),L("isoWeekYear",1), // PARSING Y("G",Oe),Y("g",Oe),Y("GG",He,De),Y("gg",He,De),Y("GGGG",Le,Fe),Y("gggg",Le,Fe),Y("GGGGG",Me,Ge),Y("ggggg",Me,Ge),ba(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=t(a)}),ba(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}), // FORMATTING T("Q",0,"Qo","quarter"), // ALIASES I("quarter","Q"), // PRIORITY L("quarter",7), // PARSING Y("Q",Ce),aa("Q",function(a,b){b[We]=3*(t(a)-1)}), // FORMATTING T("D",["DD",2],"Do","date"), // ALIASES I("date","D"), // PRIOROITY L("date",9), // PARSING Y("D",He),Y("DD",He,De),Y("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient}),aa(["D","DD"],Xe),aa("Do",function(a,b){b[Xe]=t(a.match(He)[0],10)}); // MOMENTS var Kf=N("Date",!0); // FORMATTING T("DDD",["DDDD",3],"DDDo","dayOfYear"), // ALIASES I("dayOfYear","DDD"), // PRIORITY L("dayOfYear",4), // PARSING Y("DDD",Ke),Y("DDDD",Ee),aa(["DDD","DDDD"],function(a,b,c){c._dayOfYear=t(a)}), // FORMATTING T("m",["mm",2],0,"minute"), // ALIASES I("minute","m"), // PRIORITY L("minute",14), // PARSING Y("m",He),Y("mm",He,De),aa(["m","mm"],Ze); // MOMENTS var Lf=N("Minutes",!1); // FORMATTING T("s",["ss",2],0,"second"), // ALIASES I("second","s"), // PRIORITY L("second",15), // PARSING Y("s",He),Y("ss",He,De),aa(["s","ss"],$e); // MOMENTS var Mf=N("Seconds",!1); // FORMATTING T("S",0,0,function(){return~~(this.millisecond()/100)}),T(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),T(0,["SSS",3],0,"millisecond"),T(0,["SSSS",4],0,function(){return 10*this.millisecond()}),T(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),T(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),T(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),T(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),T(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}), // ALIASES I("millisecond","ms"), // PRIORITY L("millisecond",16), // PARSING Y("S",Ke,Ce),Y("SS",Ke,De),Y("SSS",Ke,Ee);var Nf;for(Nf="SSSS";Nf.length<=9;Nf+="S")Y(Nf,Ne);for(Nf="S";Nf.length<=9;Nf+="S")aa(Nf,Gc); // MOMENTS var Of=N("Milliseconds",!1); // FORMATTING T("z",0,0,"zoneAbbr"),T("zz",0,0,"zoneName");var Pf=q.prototype;Pf.add=Hf,Pf.calendar=Ub,Pf.clone=Vb,Pf.diff=ac,Pf.endOf=mc,Pf.format=ec,Pf.from=fc,Pf.fromNow=gc,Pf.to=hc,Pf.toNow=ic,Pf.get=Q,Pf.invalidAt=vc,Pf.isAfter=Wb,Pf.isBefore=Xb,Pf.isBetween=Yb,Pf.isSame=Zb,Pf.isSameOrAfter=$b,Pf.isSameOrBefore=_b,Pf.isValid=tc,Pf.lang=Jf,Pf.locale=jc,Pf.localeData=kc,Pf.max=Cf,Pf.min=Bf,Pf.parsingFlags=uc,Pf.set=R,Pf.startOf=lc,Pf.subtract=If,Pf.toArray=qc,Pf.toObject=rc,Pf.toDate=pc,Pf.toISOString=dc,Pf.toJSON=sc,Pf.toString=cc,Pf.unix=oc,Pf.valueOf=nc,Pf.creationData=wc, // Year Pf.year=hf,Pf.isLeapYear=qa, // Week Year Pf.weekYear=yc,Pf.isoWeekYear=zc, // Quarter Pf.quarter=Pf.quarters=Ec, // Month Pf.month=ja,Pf.daysInMonth=ka, // Week Pf.week=Pf.weeks=Aa,Pf.isoWeek=Pf.isoWeeks=Ba,Pf.weeksInYear=Bc,Pf.isoWeeksInYear=Ac, // Day Pf.date=Kf,Pf.day=Pf.days=Ja,Pf.weekday=Ka,Pf.isoWeekday=La,Pf.dayOfYear=Fc, // Hour Pf.hour=Pf.hours=sf, // Minute Pf.minute=Pf.minutes=Lf, // Second Pf.second=Pf.seconds=Mf, // Millisecond Pf.millisecond=Pf.milliseconds=Of, // Offset Pf.utcOffset=Cb,Pf.utc=Eb,Pf.local=Fb,Pf.parseZone=Gb,Pf.hasAlignedHourOffset=Hb,Pf.isDST=Ib,Pf.isLocal=Kb,Pf.isUtcOffset=Lb,Pf.isUtc=Mb,Pf.isUTC=Mb, // Timezone Pf.zoneAbbr=Hc,Pf.zoneName=Ic, // Deprecations Pf.dates=w("dates accessor is deprecated. Use date instead.",Kf),Pf.months=w("months accessor is deprecated. Use month instead",ja),Pf.years=w("years accessor is deprecated. Use year instead",hf),Pf.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Db),Pf.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Jb);var Qf=Pf,Rf=B.prototype;Rf.calendar=C,Rf.longDateFormat=D,Rf.invalidDate=E,Rf.ordinal=F,Rf.preparse=Lc,Rf.postformat=Lc,Rf.relativeTime=G,Rf.pastFuture=H,Rf.set=z, // Month Rf.months=ea,Rf.monthsShort=fa,Rf.monthsParse=ha,Rf.monthsRegex=ma,Rf.monthsShortRegex=la, // Week Rf.week=xa,Rf.firstDayOfYear=za,Rf.firstDayOfWeek=ya, // Day of Week Rf.weekdays=Ea,Rf.weekdaysMin=Ga,Rf.weekdaysShort=Fa,Rf.weekdaysParse=Ia,Rf.weekdaysRegex=Ma,Rf.weekdaysShortRegex=Na,Rf.weekdaysMinRegex=Oa, // Hours Rf.isPM=Ua,Rf.meridiem=Va,Za("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===t(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}), // Side effect imports a.lang=w("moment.lang is deprecated. Use moment.locale instead.",Za),a.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ab);var Sf=Math.abs,Tf=cd("ms"),Uf=cd("s"),Vf=cd("m"),Wf=cd("h"),Xf=cd("d"),Yf=cd("w"),Zf=cd("M"),$f=cd("y"),_f=ed("milliseconds"),ag=ed("seconds"),bg=ed("minutes"),cg=ed("hours"),dg=ed("days"),eg=ed("months"),fg=ed("years"),gg=Math.round,hg={s:45,// seconds to minute m:45,// minutes to hour h:22,// hours to day d:26,// days to month M:11},ig=Math.abs,jg=vb.prototype;jg.abs=Uc,jg.add=Wc,jg.subtract=Xc,jg.as=ad,jg.asMilliseconds=Tf,jg.asSeconds=Uf,jg.asMinutes=Vf,jg.asHours=Wf,jg.asDays=Xf,jg.asWeeks=Yf,jg.asMonths=Zf,jg.asYears=$f,jg.valueOf=bd,jg._bubble=Zc,jg.get=dd,jg.milliseconds=_f,jg.seconds=ag,jg.minutes=bg,jg.hours=cg,jg.days=dg,jg.weeks=fd,jg.months=eg,jg.years=fg,jg.humanize=kd,jg.toISOString=ld,jg.toString=ld,jg.toJSON=ld,jg.locale=jc,jg.localeData=kc, // Deprecations jg.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ld),jg.lang=Jf, // Side effect imports // FORMATTING T("X",0,0,"unix"),T("x",0,0,"valueOf"), // PARSING Y("x",Oe),Y("X",Re),aa("X",function(a,b,c){c._d=new Date(1e3*parseFloat(a,10))}),aa("x",function(a,b,c){c._d=new Date(t(a))}),a.version="2.15.2",b(rb),a.fn=Qf,a.min=tb,a.max=ub,a.now=Df,a.utc=j,a.unix=Jc,a.months=Pc,a.isDate=f,a.locale=Za,a.invalid=n,a.duration=Nb,a.isMoment=r,a.weekdays=Rc,a.parseZone=Kc,a.localeData=ab,a.isDuration=wb,a.monthsShort=Qc,a.weekdaysMin=Tc,a.defineLocale=$a,a.updateLocale=_a,a.locales=bb,a.weekdaysShort=Sc,a.normalizeUnits=J,a.relativeTimeRounding=id,a.relativeTimeThreshold=jd,a.calendarFormat=Tb,a.prototype=Qf;var kg=a,lg=(kg.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(a){return/^nm$/i.test(a)},meridiem:function(a,b,c){return a<12?c?"vm":"VM":c?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(a){return a+(1===a||8===a||a>=20?"ste":"de")},week:{dow:1,// Maandag is die eerste dag van die week. doy:4}}),{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"}),mg=function(a){return 0===a?0:1===a?1:2===a?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5},ng={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},og=function(a){return function(b,c,d,e){var f=mg(b),g=ng[a][mg(b)];return 2===f&&(g=g[c?0:1]),g.replace(/%d/i,b)}},pg=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],qg=(kg.defineLocale("ar-ly",{months:pg,monthsShort:pg,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(a){return"م"===a},meridiem:function(a,b,c){return a<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:og("s"),m:og("m"),mm:og("m"),h:og("h"),hh:og("h"),d:og("d"),dd:og("d"),M:og("M"),MM:og("M"),y:og("y"),yy:og("y")},preparse:function(a){return a.replace(/\u200f/g,"").replace(/،/g,",")},postformat:function(a){return a.replace(/\d/g,function(a){return lg[a]}).replace(/,/g,"،")},week:{dow:6,// Saturday is the first day of the week. doy:12}}),kg.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,// Saturday is the first day of the week. doy:12}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),rg={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},sg=(kg.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(a){return"م"===a},meridiem:function(a,b,c){return a<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(a){return a.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(a){return rg[a]}).replace(/،/g,",")},postformat:function(a){return a.replace(/\d/g,function(a){return qg[a]}).replace(/,/g,"،")},week:{dow:6,// Saturday is the first day of the week. doy:12}}),kg.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,// Monday is the first day of the week. doy:4}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),tg={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ug=function(a){return 0===a?0:1===a?1:2===a?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5},vg={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},wg=function(a){return function(b,c,d,e){var f=ug(b),g=vg[a][ug(b)];return 2===f&&(g=g[c?0:1]),g.replace(/%d/i,b)}},xg=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],yg=(kg.defineLocale("ar",{months:xg,monthsShort:xg,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(a){return"م"===a},meridiem:function(a,b,c){return a<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:wg("s"),m:wg("m"),mm:wg("m"),h:wg("h"),hh:wg("h"),d:wg("d"),dd:wg("d"),M:wg("M"),MM:wg("M"),y:wg("y"),yy:wg("y")},preparse:function(a){return a.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(a){return tg[a]}).replace(/،/g,",")},postformat:function(a){return a.replace(/\d/g,function(a){return sg[a]}).replace(/,/g,"،")},week:{dow:6,// Saturday is the first day of the week. doy:12}}),{1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"}),zg=(kg.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(a){return/^(gündüz|axşam)$/.test(a)},meridiem:function(a,b,c){return a<4?"gecə":a<12?"səhər":a<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(a){if(0===a)// special case for zero return a+"-ıncı";var b=a%10,c=a%100-b,d=a>=100?100:null;return a+(yg[b]||yg[c]||yg[d])},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:nd,mm:nd,h:nd,hh:nd,d:"дзень",dd:nd,M:"месяц",MM:nd,y:"год",yy:nd},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(a){return/^(дня|вечара)$/.test(a)},meridiem:function(a,b,c){return a<4?"ночы":a<12?"раніцы":a<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(a,b){switch(b){case"M":case"d":case"DDD":case"w":case"W":return a%10!==2&&a%10!==3||a%100===12||a%100===13?a+"-ы":a+"-і";case"D":return a+"-га";default:return a}},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(a){var b=a%10,c=a%100;return 0===a?a+"-ев":0===c?a+"-ен":c>10&&c<20?a+"-ти":1===b?a+"-ви":2===b?a+"-ри":7===b||8===b?a+"-ми":a+"-ти"},week:{dow:1,// Monday is the first day of the week. doy:7}}),{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}),Ag={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},Bg=(kg.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(a){return a.replace(/[১২৩৪৫৬৭৮৯০]/g,function(a){return Ag[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return zg[a]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(a,b){return 12===a&&(a=0),"রাত"===b&&a>=4||"দুপুর"===b&&a<5||"বিকাল"===b?a+12:a},meridiem:function(a,b,c){return a<4?"রাত":a<10?"সকাল":a<17?"দুপুর":a<20?"বিকাল":"রাত"},week:{dow:0,// Sunday is the first day of the week. doy:6}}),{1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"}),Cg={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},Dg=(kg.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(a){return a.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(a){return Cg[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return Bg[a]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(a,b){return 12===a&&(a=0),"མཚན་མོ"===b&&a>=4||"ཉིན་གུང"===b&&a<5||"དགོང་དག"===b?a+12:a},meridiem:function(a,b,c){return a<4?"མཚན་མོ":a<10?"ཞོགས་ཀས":a<17?"ཉིན་གུང":a<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,// Sunday is the first day of the week. doy:6}}),kg.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:od,h:"un eur",hh:"%d eur",d:"un devezh",dd:od,M:"ur miz",MM:od,y:"ur bloaz",yy:pd},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(a){var b=1===a?"añ":"vet";return a+b},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:td,mm:td,h:td,hh:td,d:"dan",dd:td,M:"mjesec",MM:td,y:"godinu",yy:td},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(a,b){var c=1===a?"r":2===a?"n":3===a?"r":4===a?"t":"è";return"w"!==b&&"W"!==b||(c="a"),a+c},week:{dow:1,// Monday is the first day of the week. doy:4}}),"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_")),Eg="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),Fg=(kg.defineLocale("cs",{months:Dg,monthsShort:Eg,monthsParse:function(a,b){var c,d=[];for(c=0;c<12;c++) // use custom parser to solve problem with July (červenec) d[c]=new RegExp("^"+a[c]+"$|^"+b[c]+"$","i");return d}(Dg,Eg),shortMonthsParse:function(a){var b,c=[];for(b=0;b<12;b++)c[b]=new RegExp("^"+a[b]+"$","i");return c}(Eg),longMonthsParse:function(a){var b,c=[];for(b=0;b<12;b++)c[b]=new RegExp("^"+a[b]+"$","i");return c}(Dg),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:vd,m:vd,mm:vd,h:vd,hh:vd,d:vd,dd:vd,M:vd,MM:vd,y:vd,yy:vd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(a){var b=/сехет$/i.exec(a)?"рен":/ҫул$/i.exec(a)?"тан":"ран";return a+b},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0, // time formats are the same as en-gb longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh ordinal:function(a){var b=a,c="",d=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed",// 1af to 10fed "eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return b>20?c=40===b||50===b||60===b||80===b||100===b?"fed":"ain":b>0&&(c=d[b]),a+c},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:wd,mm:"%d Minuten",h:wd,hh:"%d Stunden",d:wd,dd:wd,M:wd,MM:wd,y:wd,yy:wd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:xd,mm:"%d Minuten",h:xd,hh:"%d Stunden",d:xd,dd:xd,M:xd,MM:xd,y:xd,yy:xd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"]),Gg=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],Hg=(kg.defineLocale("dv",{months:Fg,monthsShort:Fg,weekdays:Gg,weekdaysShort:Gg,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(a){return"މފ"===a},meridiem:function(a,b,c){return a<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(a){return a.replace(/،/g,",")},postformat:function(a){return a.replace(/,/g,"،")},week:{dow:7,// Sunday is the first day of the week. doy:12}}),kg.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(a,b){return/D/.test(b.substring(0,b.indexOf("MMMM")))?this._monthsGenitiveEl[a.month()]:this._monthsNominativeEl[a.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(a,b,c){return a>11?c?"μμ":"ΜΜ":c?"πμ":"ΠΜ"},isPM:function(a){return"μ"===(a+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(a,b){var c=this._calendarEl[a],d=b&&b.hours();return y(c)&&(c=c.apply(b)),c.replace("{}",d%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),kg.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(a){return"p"===a.charAt(0).toLowerCase()},meridiem:function(a,b,c){return a>11?c?"p.t.m.":"P.T.M.":c?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",//ne 'diurno', ĉar estas uzita por proksimumo dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,// Monday is the first day of the week. doy:7}}),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_")),Ig="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Jg=(kg.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(a,b){return/-MMM-/.test(b)?Ig[a.month()]:Hg[a.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,// Monday is the first day of the week. doy:4}}),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_")),Kg="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Lg=(kg.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(a,b){return/-MMM-/.test(b)?Kg[a.month()]:Jg[a.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:yd,m:yd,mm:yd,h:yd,hh:yd,d:yd,dd:"%d päeva",M:yd,MM:yd,y:yd,yy:yd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:7}}),{1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"}),Mg={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},Ng=(kg.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(a){return/بعد از ظهر/.test(a)},meridiem:function(a,b,c){return a<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(a){return a.replace(/[۰-۹]/g,function(a){return Mg[a]}).replace(/،/g,",")},postformat:function(a){return a.replace(/\d/g,function(a){return Lg[a]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,// Saturday is the first day of the week. doy:12}}),"nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" ")),Og=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Ng[7],Ng[8],Ng[9]],Pg=(kg.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:zd,m:zd,mm:zd,h:zd,hh:zd,d:zd,dd:zd,M:zd,MM:zd,y:zd,yy:zd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(a){return a+(1===a?"er":"e")}}),kg.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(a){return a+(1===a?"er":"e")},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(a){return a+(1===a?"er":"")},week:{dow:1,// Monday is the first day of the week. doy:4}}),"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_")),Qg="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),Rg=(kg.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(a,b){return/-MMM-/.test(b)?Qg[a.month()]:Pg[a.month()]},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(a){return a+(1===a||8===a||a>=20?"ste":"de")},week:{dow:1,// Monday is the first day of the week. doy:4}}),["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"]),Sg=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],Tg=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],Ug=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],Vg=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],Wg=(kg.defineLocale("gd",{months:Rg,monthsShort:Sg,monthsParseExact:!0,weekdays:Tg,weekdaysShort:Ug,weekdaysMin:Vg,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(a){var b=1===a?"d":a%10===2?"na":"mh";return a+b},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(a){return 0===a.indexOf("un")?"n"+a:"en "+a},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(a){return 2===a?"שעתיים":a+" שעות"},d:"יום",dd:function(a){return 2===a?"יומיים":a+" ימים"},M:"חודש",MM:function(a){return 2===a?"חודשיים":a+" חודשים"},y:"שנה",yy:function(a){return 2===a?"שנתיים":a%10===0&&10!==a?a+" שנה":a+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(a){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(a)},meridiem:function(a,b,c){return a<5?"לפנות בוקר":a<10?"בבוקר":a<12?c?'לפנה"צ':"לפני הצהריים":a<18?c?'אחה"צ':"אחרי הצהריים":"בערב"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),Xg={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},Yg=(kg.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(a){return a.replace(/[१२३४५६७८९०]/g,function(a){return Xg[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return Wg[a]})}, // Hindi notation for meridiems are quite fuzzy in practice. While there exists // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(a,b){return 12===a&&(a=0),"रात"===b?a<4?a:a+12:"सुबह"===b?a:"दोपहर"===b?a>=10?a:a+12:"शाम"===b?a+12:void 0},meridiem:function(a,b,c){return a<4?"रात":a<10?"सुबह":a<17?"दोपहर":a<20?"शाम":"रात"},week:{dow:0,// Sunday is the first day of the week. doy:6}}),kg.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:Bd,mm:Bd,h:Bd,hh:Bd,d:"dan",dd:Bd,M:"mjesec",MM:Bd,y:"godinu",yy:Bd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:7}}),"vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ")),Zg=(kg.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(a){return"u"===a.charAt(1).toLowerCase()},meridiem:function(a,b,c){return a<12?c===!0?"de":"DE":c===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return Dd.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return Dd.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:Cd,m:Cd,mm:Cd,h:Cd,hh:Cd,d:Cd,dd:Cd,M:Cd,MM:Cd,y:Cd,yy:Cd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(a){return/^(ցերեկվա|երեկոյան)$/.test(a)},meridiem:function(a){return a<4?"գիշերվա":a<12?"առավոտվա":a<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(a,b){switch(b){case"DDD":case"w":case"W":case"DDDo":return 1===a?a+"-ին":a+"-րդ";default:return a}},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(a,b){return 12===a&&(a=0),"pagi"===b?a:"siang"===b?a>=11?a:a+12:"sore"===b||"malam"===b?a+12:void 0},meridiem:function(a,b,c){return a<11?"pagi":a<15?"siang":a<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:Fd,m:Fd,mm:Fd,h:"klukkustund",hh:Fd,d:Fd,dd:Fd,M:Fd,MM:Fd,y:Fd,yy:Fd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"Do_Lu_Ma_Me_Gi_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(a){return(/^[0-9].+$/.test(a)?"tra":"in")+" "+a},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(a){return"午後"===a},meridiem:function(a,b,c){return a<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},ordinalParse:/\d{1,2}日/,ordinal:function(a,b){switch(b){case"d":case"D":case"DDD":return a+"日";default:return a}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),kg.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(a,b){return 12===a&&(a=0),"enjing"===b?a:"siyang"===b?a>=11?a:a+12:"sonten"===b||"ndalu"===b?a+12:void 0},meridiem:function(a,b,c){return a<11?"enjing":a<15?"siyang":a<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(a){return/(წამი|წუთი|საათი|წელი)/.test(a)?a.replace(/ი$/,"ში"):a+"ში"},past:function(a){return/(წამი|წუთი|საათი|დღე|თვე)/.test(a)?a.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(a)?a.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(a){return 0===a?a:1===a?a+"-ლი":a<20||a<=100&&a%20===0||a%100===0?"მე-"+a:a+"-ე"},week:{dow:1,doy:7}}),{0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"}),$g=(kg.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(a){var b=a%10,c=a>=100?100:null;return a+(Zg[a]||Zg[b]||Zg[c])},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"일분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(a){return"오후"===a},meridiem:function(a,b,c){return a<12?"오전":"오후"}}),{0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"}),_g=(kg.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(a){var b=a%10,c=a>=100?100:null;return a+($g[a]||$g[b]||$g[c])},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){ // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:Hd,past:Id,s:"e puer Sekonnen",m:Gd,mm:"%d Minutten",h:Gd,hh:"%d Stonnen",d:Gd,dd:"%d Deeg",M:Gd,MM:"%d Méint",y:Gd,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(a){return"ຕອນແລງ"===a},meridiem:function(a,b,c){return a<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(a){return"ທີ່"+a}}),{m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"}),ah=(kg.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:Kd,m:Ld,mm:Od,h:Ld,hh:Od,d:Ld,dd:Od,M:Ld,MM:Od,y:Ld,yy:Od},ordinalParse:/\d{1,2}-oji/,ordinal:function(a){return a+"-oji"},week:{dow:1,// Monday is the first day of the week. doy:4}}),{m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")}),bh=(kg.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:Sd,m:Rd,mm:Qd,h:Rd,hh:Qd,d:Rd,dd:Qd,M:Rd,MM:Qd,y:Rd,yy:Qd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),{words:{//Different grammatical cases m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(a,b){return 1===a?b[0]:a>=2&&a<=4?b[1]:b[2]},translate:function(a,b,c){var d=bh.words[c];return 1===c.length?b?d[0]:d[1]:a+" "+bh.correctGrammaticalCase(a,d)}}),ch=(kg.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var a=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return a[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:bh.translate,mm:bh.translate,h:bh.translate,hh:bh.translate,d:"dan",dd:bh.translate,M:"mjesec",MM:bh.translate,y:"godinu",yy:bh.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(a){var b=a%10,c=a%100;return 0===a?a+"-ев":0===c?a+"-ен":c>10&&c<20?a+"-ти":1===b?a+"-ви":2===b?a+"-ри":7===b||8===b?a+"-ми":a+"-ти"},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(a,b){return 12===a&&(a=0),"രാത്രി"===b&&a>=4||"ഉച്ച കഴിഞ്ഞ്"===b||"വൈകുന്നേരം"===b?a+12:a},meridiem:function(a,b,c){return a<4?"രാത്രി":a<12?"രാവിലെ":a<17?"ഉച്ച കഴിഞ്ഞ്":a<20?"വൈകുന്നേരം":"രാത്രി"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),dh={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},eh=(kg.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:Td,m:Td,mm:Td,h:Td,hh:Td,d:Td,dd:Td,M:Td,MM:Td,y:Td,yy:Td},preparse:function(a){return a.replace(/[१२३४५६७८९०]/g,function(a){return dh[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return ch[a]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(a,b){return 12===a&&(a=0),"रात्री"===b?a<4?a:a+12:"सकाळी"===b?a:"दुपारी"===b?a>=10?a:a+12:"सायंकाळी"===b?a+12:void 0},meridiem:function(a,b,c){return a<4?"रात्री":a<10?"सकाळी":a<17?"दुपारी":a<20?"सायंकाळी":"रात्री"},week:{dow:0,// Sunday is the first day of the week. doy:6}}),kg.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(a,b){return 12===a&&(a=0),"pagi"===b?a:"tengahari"===b?a>=11?a:a+12:"petang"===b||"malam"===b?a+12:void 0},meridiem:function(a,b,c){return a<11?"pagi":a<15?"tengahari":a<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(a,b){return 12===a&&(a=0),"pagi"===b?a:"tengahari"===b?a>=11?a:a+12:"petang"===b||"malam"===b?a+12:void 0},meridiem:function(a,b,c){return a<11?"pagi":a<15?"tengahari":a<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,// Monday is the first day of the week. doy:7}}),{1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"}),fh={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},gh=(kg.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(a){return a.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(a){return fh[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return eh[a]})},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),hh={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},ih=(kg.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(a){return a.replace(/[१२३४५६७८९०]/g,function(a){return hh[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return gh[a]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(a,b){return 12===a&&(a=0),"राति"===b?a<4?a:a+12:"बिहान"===b?a:"दिउँसो"===b?a>=10?a:a+12:"साँझ"===b?a+12:void 0},meridiem:function(a,b,c){return a<3?"राति":a<12?"बिहान":a<16?"दिउँसो":a<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,// Sunday is the first day of the week. doy:6}}),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_")),jh="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),kh=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],lh=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,mh=(kg.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(a,b){return/-MMM-/.test(b)?jh[a.month()]:ih[a.month()]},monthsRegex:lh,monthsShortRegex:lh,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:kh,longMonthsParse:kh,shortMonthsParse:kh,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(a){return a+(1===a||8===a||a>=20?"ste":"de")},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),{1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"}),nh={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"},oh=(kg.defineLocale("pa-in",{ // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi. months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(a){return a.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(a){return nh[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return mh[a]})}, // Punjabi notation for meridiems are quite fuzzy in practice. While there exists // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(a,b){return 12===a&&(a=0),"ਰਾਤ"===b?a<4?a:a+12:"ਸਵੇਰ"===b?a:"ਦੁਪਹਿਰ"===b?a>=10?a:a+12:"ਸ਼ਾਮ"===b?a+12:void 0},meridiem:function(a,b,c){return a<4?"ਰਾਤ":a<10?"ਸਵੇਰ":a<17?"ਦੁਪਹਿਰ":a<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,// Sunday is the first day of the week. doy:6}}),"styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_")),ph="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),qh=(kg.defineLocale("pl",{months:function(a,b){return""===b?"("+ph[a.month()]+"|"+oh[a.month()]+")":/D MMMM/.test(b)?ph[a.month()]:oh[a.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:Vd,mm:Vd,h:Vd,hh:Vd,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:Vd,y:"rok",yy:Vd},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){// Saturday + Sunday return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"}),kg.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){// Saturday + Sunday return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:Wd,h:"o oră",hh:Wd,d:"o zi",dd:Wd,M:"o lună",MM:Wd,y:"un an",yy:Wd},week:{dow:1,// Monday is the first day of the week. doy:7}}),[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i]),rh=(kg.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{ // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ? format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:qh,longMonthsParse:qh,shortMonthsParse:qh, // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, // копия предыдущего monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, // полные названия с падежами monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, // Выражение, которое соотвествует только сокращённым формам monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(a){if(a.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(a){if(a.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:Yd,mm:Yd,h:"час",hh:Yd,d:"день",dd:Yd,M:"месяц",MM:Yd,y:"год",yy:Yd},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(a){return/^(дня|вечера)$/.test(a)},meridiem:function(a,b,c){return a<4?"ночи":a<12?"утра":a<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(a,b){switch(b){case"M":case"d":case"DDD":return a+"-й";case"D":return a+"-го";case"w":case"W":return a+"-я";default:return a}},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(a){return a+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(a){return"ප.ව."===a||"පස් වරු"===a},meridiem:function(a,b,c){return a>11?c?"ප.ව.":"පස් වරු":c?"පෙ.ව.":"පෙර වරු"}}),"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_")),sh="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),th=(kg.defineLocale("sk",{months:rh,monthsShort:sh,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:$d,m:$d,mm:$d,h:$d,hh:$d,d:$d,dd:$d,M:$d,MM:$d,y:$d,yy:$d},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:_d,m:_d,mm:_d,h:_d,hh:_d,d:_d,dd:_d,M:_d,MM:_d,y:_d,yy:_d},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(a){return"M"===a.charAt(0)},meridiem:function(a,b,c){return a<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),{words:{//Different grammatical cases m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(a,b){return 1===a?b[0]:a>=2&&a<=4?b[1]:b[2]},translate:function(a,b,c){var d=th.words[c];return 1===c.length?b?d[0]:d[1]:a+" "+th.correctGrammaticalCase(a,d)}}),uh=(kg.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var a=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return a[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:th.translate,mm:th.translate,h:th.translate,hh:th.translate,d:"дан",dd:th.translate,M:"месец",MM:th.translate,y:"годину",yy:th.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:7}}),{words:{//Different grammatical cases m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(a,b){return 1===a?b[0]:a>=2&&a<=4?b[1]:b[2]},translate:function(a,b,c){var d=uh.words[c];return 1===c.length?b?d[0]:d[1]:a+" "+uh.correctGrammaticalCase(a,d)}}),vh=(kg.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var a=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return a[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:uh.translate,mm:uh.translate,h:uh.translate,hh:uh.translate,d:"dan",dd:uh.translate,M:"mesec",MM:uh.translate,y:"godinu",yy:uh.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(a,b,c){return a<11?"ekuseni":a<15?"emini":a<19?"entsambama":"ebusuku"},meridiemHour:function(a,b){return 12===a&&(a=0),"ekuseni"===b?a:"emini"===b?a>=11?a:a+12:"entsambama"===b||"ebusuku"===b?0===a?0:a+12:void 0},ordinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"e":1===b?"a":2===b?"a":"e";return a+c},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,// Monday is the first day of the week. doy:7}}),{1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"}),wh={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},xh=(kg.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(a){return a+"வது"},preparse:function(a){return a.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(a){return wh[a]})},postformat:function(a){return a.replace(/\d/g,function(a){return vh[a]})}, // refer http://ta.wikipedia.org/s/1er1 meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(a,b,c){return a<2?" யாமம்":a<6?" வைகறை":a<10?" காலை":a<14?" நண்பகல்":a<18?" எற்பாடு":a<22?" மாலை":" யாமம்"},meridiemHour:function(a,b){return 12===a&&(a=0),"யாமம்"===b?a<2?a:a+12:"வைகறை"===b||"காலை"===b?a:"நண்பகல்"===b&&a>=10?a:a+12},week:{dow:0,// Sunday is the first day of the week. doy:6}}),kg.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(a,b){return 12===a&&(a=0),"రాత్రి"===b?a<4?a:a+12:"ఉదయం"===b?a:"మధ్యాహ్నం"===b?a>=10?a:a+12:"సాయంత్రం"===b?a+12:void 0},meridiem:function(a,b,c){return a<4?"రాత్రి":a<10?"ఉదయం":a<17?"మధ్యాహ్నం":a<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,// Sunday is the first day of the week. doy:6}}),kg.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),// yes, three characters difference weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(a){return"หลังเที่ยง"===a},meridiem:function(a,b,c){return a<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),kg.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(a){return a},week:{dow:1,// Monday is the first day of the week. doy:4}}),"pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_")),yh=(kg.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:ae,past:be,s:"puS lup",m:"wa’ tup",mm:ce,h:"wa’ rep",hh:ce,d:"wa’ jaj",dd:ce,M:"wa’ jar",MM:ce,y:"wa’ DIS",yy:ce},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),{1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"}),zh=(kg.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(a){if(0===a)// special case for zero return a+"'ıncı";var b=a%10,c=a%100-b,d=a>=100?100:null;return a+(yh[b]||yh[c]||yh[d])},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(a){return"d'o"===a.toLowerCase()},meridiem:function(a,b,c){return a>11?c?"d'o":"D'O":c?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:ee,m:ee,mm:ee,h:ee,hh:ee,d:ee,dd:ee,M:ee,MM:ee,y:ee,yy:ee},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,// Saturday is the first day of the week. doy:12}}),kg.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,// Saturday is the first day of the week. doy:12}}),kg.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:he,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:ie("[Сьогодні "),nextDay:ie("[Завтра "),lastDay:ie("[Вчора "),nextWeek:ie("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return ie("[Минулої] dddd [").call(this);case 1:case 2:case 4:return ie("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:ge,mm:ge,h:"годину",hh:ge,d:"день",dd:ge,M:"місяць",MM:ge,y:"рік",yy:ge}, // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(a){return/^(дня|вечора)$/.test(a)},meridiem:function(a,b,c){return a<4?"ночі":a<12?"ранку":a<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(a,b){switch(b){case"M":case"d":case"DDD":case"w":case"W":return a+"-й";case"D":return a+"-го";default:return a}},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,// Monday is the first day of the week. doy:7}}),kg.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(a){return/^ch$/i.test(a)},meridiem:function(a,b,c){return a<12?c?"sa":"SA":c?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(a){return a},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c},week:{dow:1,// Monday is the first day of the week. doy:4}}),kg.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(a,b){return 12===a&&(a=0),"凌晨"===b||"早上"===b||"上午"===b?a:"下午"===b||"晚上"===b?a+12:a>=11?a:a+12},meridiem:function(a,b,c){var d=100*a+b;return d<600?"凌晨":d<900?"早上":d<1130?"上午":d<1230?"中午":d<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var a,b;return a=kg().startOf("week"),b=this.diff(a,"days")>=7?"[下]":"[本]",0===this.minutes()?b+"dddAh点整":b+"dddAh点mm"},lastWeek:function(){var a,b;return a=kg().startOf("week"),b=this.unix()=11?a:a+12:"下午"===b||"晚上"===b?a+12:void 0},meridiem:function(a,b,c){var d=100*a+b;return d<600?"凌晨":d<900?"早上":d<1130?"上午":d<1230?"中午":d<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(a,b){switch(b){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"週";default:return a}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),kg.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(a,b){return 12===a&&(a=0),"凌晨"===b||"早上"===b||"上午"===b?a:"中午"===b?a>=11?a:a+12:"下午"===b||"晚上"===b?a+12:void 0},meridiem:function(a,b,c){var d=100*a+b;return d<600?"凌晨":d<900?"早上":d<1130?"上午":d<1230?"中午":d<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(a,b){switch(b){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"週";default:return a}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),kg);return zh.locale("en"),zh}); /*! * numbro.js * version : 1.9.3 * author : Företagsplatsen AB * license : MIT * http://www.foretagsplatsen.se */ (function(){"use strict";/************************************ Constructors ************************************/ // Numbro prototype object function a(a){this._value=a}function b(a){var b,c="";for(b=0;a>b;b++)c+="0";return c}/** * Implementation of toFixed() for numbers with exponents * This function may return negative representations for zero values e.g. "-0.0" */ function c(a,c){var d,e,f,g,h,i,j,k; // exponent is positive - add zeros after the numbers // exponent is negative // tack on the decimal point if needed // substring off the end to satisfy the precision // only add percision 0's if the exponent is positive return k=a.toString(),d=k.split("e")[0],g=k.split("e")[1],e=d.split(".")[0],f=d.split(".")[1]||"",+g>0?k=e+f+b(g-f.length):(h=0>+e?"-0":"0",c>0&&(h+="."),j=b(-1*g-1),i=(j+Math.abs(e)+f).substr(0,c),k=h+i),+g>0&&c>0&&(k+="."+b(c)),k}/** * Implementation of toFixed() that treats floats more like decimals * * Fixes binary rounding issues (eg. (0.615).toFixed(2) === '0.61') that present * problems for accounting- and finance-related software. * * Also removes negative signs for zero-formatted numbers. e.g. -0.01 w/ precision 1 -> 0.0 */ function d(a,b,d,e){var f,g,h=Math.pow(10,b); // toFixed returns scientific notation for numbers above 1e21 and below 1e-7 // remove the leading negative sign if it exists and should not be present (e.g. -0.00) // Multiply up by precision, round accurately, then divide and use native toFixed(): return a.toString().indexOf("e")>-1?(g=c(a,b),"-"===g.charAt(0)&&+g>=0&&(g=g.substr(1))):g=(d(a+"e+"+b)/h).toFixed(b),e&&(f=new RegExp("0{1,"+e+"}$"),g=g.replace(f,"")),g}/************************************ Formatting ************************************/ // determine what type of formatting we need to do function e(a,b,c){var d,e=b.replace(/\{[^\{\}]*\}/g,""); // return string // figure out what kind of format we are dealing with // currency!!!!! return d=e.indexOf("$")>-1?g(a,y[A].currency.symbol,b,c):e.indexOf("%")>-1?i(a,b,c):e.indexOf(":")>-1?j(a,b):m(a._value,b,c)} // revert to number function f(a,b){var c,d,e,f,g,h=b,i=!1;if(b.indexOf(":")>-1)a._value=k(b);else if(b===B)a._value=0;else{ // see if bytes are there so that we can multiply to the correct number for("."!==y[A].delimiters.decimal&&(b=b.replace(/\./g,"").replace(y[A].delimiters.decimal,".")),c=new RegExp("[^a-zA-Z]"+y[A].abbreviations.thousand+"(?:\\)|(\\"+y[A].currency.symbol+")?(?:\\))?)?$"),d=new RegExp("[^a-zA-Z]"+y[A].abbreviations.million+"(?:\\)|(\\"+y[A].currency.symbol+")?(?:\\))?)?$"),e=new RegExp("[^a-zA-Z]"+y[A].abbreviations.billion+"(?:\\)|(\\"+y[A].currency.symbol+")?(?:\\))?)?$"),f=new RegExp("[^a-zA-Z]"+y[A].abbreviations.trillion+"(?:\\)|(\\"+y[A].currency.symbol+")?(?:\\))?)?$"),g=1;g-1?i=Math.pow(1024,g):b.indexOf(v[g])>-1&&(i=Math.pow(1e3,g));var j=b.replace(/[^0-9\.]+/g,"");""===j? // An empty string is not a number. a._value=NaN:( // do some math to create our number a._value=(i?i:1)*(h.match(c)?Math.pow(10,3):1)*(h.match(d)?Math.pow(10,6):1)*(h.match(e)?Math.pow(10,9):1)*(h.match(f)?Math.pow(10,12):1)*(b.indexOf("%")>-1?.01:1)*((b.split("-").length+Math.min(b.split("(").length-1,b.split(")").length-1))%2?1:-1)*Number(j), // round if we are talking about bytes a._value=i?Math.ceil(a._value):a._value)}return a._value}function g(a,b,c,d){var e,f,g=c,h=g.indexOf("$"),i=g.indexOf("("),j=g.indexOf("+"),k=g.indexOf("-"),l="",n="";if(-1===g.indexOf("$")? // Use defaults instead of the format provided "infix"===y[A].currency.position?(n=b,y[A].currency.spaceSeparated&&(n=" "+n+" ")):y[A].currency.spaceSeparated&&(l=" "):g.indexOf(" $")>-1?(l=" ",g=g.replace(" $","")):g.indexOf("$ ")>-1?(l=" ",g=g.replace("$ ","")):g=g.replace("$",""),f=m(a._value,g,d,n),-1===c.indexOf("$")) // Use defaults instead of the format provided switch(y[A].currency.position){case"postfix":f.indexOf(")")>-1?(f=f.split(""),f.splice(-1,0,l+b),f=f.join("")):f=f+l+b;break;case"infix":break;case"prefix":f.indexOf("(")>-1||f.indexOf("-")>-1?(f=f.split(""),e=Math.max(i,k)+1,f.splice(e,0,b+l),f=f.join("")):f=b+l+f;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else // position the symbol 1>=h?f.indexOf("(")>-1||f.indexOf("+")>-1||f.indexOf("-")>-1?(f=f.split(""),e=1,(i>h||j>h||k>h)&&(e=0),f.splice(e,0,b+l),f=f.join("")):f=b+l+f:f.indexOf(")")>-1?(f=f.split(""),f.splice(-1,0,l+b),f=f.join("")):f=f+l+b;return f}function h(a,b,c,d){return g(a,b,c,d)}function i(a,b,c){var d,e="",f=100*a._value; // check for space before % return b.indexOf(" %")>-1?(e=" ",b=b.replace(" %","")):b=b.replace("%",""),d=m(f,b,c),d.indexOf(")")>-1?(d=d.split(""),d.splice(-1,0,e+"%"),d=d.join("")):d=d+e+"%",d}function j(a){var b=Math.floor(a._value/60/60),c=Math.floor((a._value-60*b*60)/60),d=Math.round(a._value-60*b*60-60*c);return b+":"+(10>c?"0"+c:c)+":"+(10>d?"0"+d:d)}function k(a){var b=a.split(":"),c=0; // turn hours and minutes into seconds and add them all up // hours // minutes // seconds // minutes // seconds return 3===b.length?(c+=60*Number(b[0])*60,c+=60*Number(b[1]),c+=Number(b[2])):2===b.length&&(c+=60*Number(b[0]),c+=Number(b[1])),Number(c)}function l(a,b,c){var d,e,f,g=b[0],h=Math.abs(a);if(h>=c){for(d=1;d=e&&f>h){g=b[d],a/=e;break} // values greater than or equal to [scale] YB never set the suffix g===b[0]&&(a/=Math.pow(c,b.length-1),g=b[b.length-1])}return{value:a,suffix:g}}function m(a,c,e,f){var g,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w,z,C=!1,D=!1,E=!1,F="",G=!1,// force abbreviation to thousands H=!1,// force abbreviation to millions I=!1,// force abbreviation to billions J=!1,// force abbreviation to trillions K=!1,// force abbreviation L="",M="",N=Math.abs(a),O="",P=!1,Q=!1,R=""; // check if number is zero and a custom zero format has been set if(0===a&&null!==B)return B;if(!isFinite(a))return""+a;if(0===c.indexOf("{")){var S=c.indexOf("}");if(-1===S)throw Error('Format should also contain a "}"');q=c.slice(1,S),c=c.slice(S+1)}else q="";if(c.indexOf("}")===c.length-1){var T=c.indexOf("{");if(-1===T)throw Error('Format should also contain a "{"');r=c.slice(T+1,-1),c=c.slice(0,T+1)}else r=""; // check for min length var U; // see if we are formatting // binary-decimal bytes (1024 MB), binary bytes (1024 MiB), or decimal bytes (1000 MB) for(U=-1===c.indexOf(".")?c.match(/([0-9]+).*/):c.match(/([0-9]+)\..*/),w=null===U?-1:U[1].length,-1!==c.indexOf("-")&&(P=!0),c.indexOf("(")>-1?(C=!0,c=c.slice(1,-1)):c.indexOf("+")>-1&&(D=!0,c=c.replace(/\+/g,"")),c.indexOf("a")>-1&&(o=c.split(".")[0].match(/[0-9]+/g)||["0"],o=parseInt(o[0],10),G=c.indexOf("aK")>=0,H=c.indexOf("aM")>=0,I=c.indexOf("aB")>=0,J=c.indexOf("aT")>=0,K=G||H||I||J,c.indexOf(" a")>-1?(F=" ",c=c.replace(" a","")):c=c.replace("a",""),i=Math.floor(Math.log(N)/Math.LN10)+1,k=i%3,k=0===k?3:k,o&&0!==N&&(j=Math.floor(Math.log(N)/Math.LN10)+1-o,m=3*~~((Math.min(o,i)-k)/3),N/=Math.pow(10,m),-1===c.indexOf(".")&&o>3&&(c+="[.]",u=0===j?0:3*~~(j/3)-j,u=0>u?u+3:u,c+=b(u))),Math.floor(Math.log(Math.abs(a))/Math.LN10)+1!==o&&(N>=Math.pow(10,12)&&!K||J?(F+=y[A].abbreviations.trillion,a/=Math.pow(10,12)):N=Math.pow(10,9)&&!K||I?(F+=y[A].abbreviations.billion,a/=Math.pow(10,9)):N=Math.pow(10,6)&&!K||H?(F+=y[A].abbreviations.million,a/=Math.pow(10,6)):(N=Math.pow(10,3)&&!K||G)&&(F+=y[A].abbreviations.thousand,a/=Math.pow(10,3)))),z=0;z-1){ // check for space before c.indexOf(" "+g.marker)>-1&&(L=" "), // remove the marker (with the space if it had one) c=c.replace(L+g.marker,""),h=l(a,g.suffixes,g.scale),a=h.value,L+=h.suffix;break}if( // see if ordinal is wanted c.indexOf("o")>-1&&( // check for space before c.indexOf(" o")>-1?(M=" ",c=c.replace(" o","")):c=c.replace("o",""),y[A].ordinal&&(M+=y[A].ordinal(a))),c.indexOf("[.]")>-1&&(E=!0,c=c.replace("[.]",".")),n=a.toString().split(".")[0],p=c.split(".")[1],s=c.indexOf(","),p){if(-1!==p.indexOf("*")?O=d(a,a.toString().split(".")[1].length,e):p.indexOf("[")>-1?(p=p.replace("]",""),p=p.split("["),O=d(a,p[0].length+p[1].length,e,p[1].length)):O=d(a,p.length,e),n=O.split(".")[0],O.split(".")[1].length){var V=f?F+f:y[A].delimiters.decimal;O=V+O.split(".")[1]}else O="";E&&0===Number(O.slice(1))&&(O="")}else n=d(a,0,e); // format number return n.indexOf("-")>-1&&(n=n.slice(1),Q=!0),n.length-1&&(n=n.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+y[A].delimiters.thousands)),0===c.indexOf(".")&&(n=""),t=c.indexOf("("),v=c.indexOf("-"),R=v>t?(C&&Q?"(":"")+(P&&Q||!C&&Q?"-":""):(P&&Q||!C&&Q?"-":"")+(C&&Q?"(":""),q+R+(!Q&&D&&0!==a?"+":"")+n+O+(M?M:"")+(F&&!f?F:"")+(L?L:"")+(C&&Q?")":"")+r}/************************************ Helpers ************************************/ function n(a,b){y[a]=b}function o(a){A=a;var b=y[a].defaults;b&&b.format&&s.defaultFormat(b.format),b&&b.currencyFormat&&s.defaultCurrencyFormat(b.currencyFormat)}function p(){return"undefined"!=typeof process&&void 0===process.browser&&process.title&&(0===process.title.indexOf("node")||process.title.indexOf("meteor-tool")>0||"grunt"===process.title||"gulp"===process.title)&&"undefined"!=typeof require}/** * Computes the multiplier necessary to make x >= 1, * effectively eliminating miscalculations caused by * finite precision. */ function q(a){var b=a.toString().split(".");return b.length<2?1:Math.pow(10,b[1].length)}/** * Given a variable number of arguments, returns the maximum * multiplier that must be used to normalize an operation involving * all of them. */ function r(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(a,b){var c=q(a),d=q(b);return c>d?c:d},-(1/0))}/************************************ Constants ************************************/ var s,t="1.9.3",u=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],v=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],w={general:{scale:1024,suffixes:v,marker:"bd"},binary:{scale:1024,suffixes:u,marker:"b"},decimal:{scale:1e3,suffixes:v,marker:"d"}}, // general must be before the others because it reuses their characters! x=[w.general,w.binary,w.decimal], // internal storage for culture config files y={}, // Todo: Remove in 2.0.0 z=y,A="en-US",B=null,C="0,0",D="0$", // check for nodeJS E="undefined"!=typeof module&&module.exports, // default culture F={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}};s=function(b){return s.isNumbro(b)?b=b.value():0===b||"undefined"==typeof b?b=0:Number(b)||(b=s.fn.unformat(b)),new a(Number(b))},s.version=t,s.isNumbro=function(b){return b instanceof a},s.setLanguage=function(a,b){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var c=a,d=a.split("-")[0],e=null;z[c]||(Object.keys(z).forEach(function(a){e||a.split("-")[0]!==d||(e=a)}),c=e||b||"en-US"),o(c)},s.setCulture=function(a,b){var c=a,d=a.split("-")[1],e=null;y[c]||(d&&Object.keys(y).forEach(function(a){e||a.split("-")[1]!==d||(e=a)}),c=e||b||"en-US"),o(c)},s.language=function(a,b){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!a)return A;if(a&&!b){if(!z[a])throw new Error("Unknown language : "+a);o(a)}return!b&&z[a]||n(a,b),s},s.culture=function(a,b){if(!a)return A;if(a&&!b){if(!y[a])throw new Error("Unknown culture : "+a);o(a)}return!b&&y[a]||n(a,b),s},s.languageData=function(a){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!a)return z[A];if(!z[a])throw new Error("Unknown language : "+a);return z[a]},s.cultureData=function(a){if(!a)return y[A];if(!y[a])throw new Error("Unknown culture : "+a);return y[a]},s.culture("en-US",F),s.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),z},s.cultures=function(){return y},s.zeroFormat=function(a){B="string"==typeof a?a:null},s.defaultFormat=function(a){C="string"==typeof a?a:"0.0"},s.defaultCurrencyFormat=function(a){D="string"==typeof a?a:"0$"},s.validate=function(a,b){var c,d,e,f,g,h,i,j;if("string"!=typeof a&&(a+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a=a.replace(/^[+-]?/,""),a.match(/^\d+$/))return!0;if(""===a)return!1;try{i=s.cultureData(b)}catch(k){i=s.cultureData(s.culture())}return e=i.currency.symbol,g=i.abbreviations,c=i.delimiters.decimal,d="."===i.delimiters.thousands?"\\.":i.delimiters.thousands,j=a.match(/^[^\d\.\,]+/),null!==j&&(a=a.substr(1),j[0]!==e)?!1:(j=a.match(/[^\d]+$/),null!==j&&(a=a.slice(0,-1),j[0]!==g.thousand&&j[0]!==g.million&&j[0]!==g.billion&&j[0]!==g.trillion)?!1:(h=new RegExp(d+"{2}"),a.match(/[^\d.,]/g)?!1:(f=a.split(c),f.length>2?!1:f.length<2?!!f[0].match(/^\d+.*\d$/)&&!f[0].match(h):""===f[0]?!f[0].match(h)&&!!f[1].match(/^\d+$/):1===f[0].length?!!f[0].match(/^\d+$/)&&!f[0].match(h)&&!!f[1].match(/^\d+$/):!!f[0].match(/^\d+.*\d$/)&&!f[0].match(h)&&!!f[1].match(/^\d+$/))))},s.loadLanguagesInNode=function(){console.warn("`loadLanguagesInNode` is deprecated since version 1.6.0. Use `loadCulturesInNode` instead"),s.loadCulturesInNode()},s.loadCulturesInNode=function(){var a=require("./languages");for(var b in a)b&&s.culture(b,a[b])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(a,b){if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof a)throw new TypeError(a+" is not a function");var c,d,e=this.length>>>0,f=!1;for(1c;++c)this.hasOwnProperty(c)&&(f?d=a(d,this[c],c,this):(d=this[c],f=!0));if(!f)throw new TypeError("Reduce of empty array with no initial value");return d}),s.fn=a.prototype={clone:function(){return s(this)},format:function(a,b){return e(this,a?a:C,void 0!==b?b:Math.round)},formatCurrency:function(a,b){return g(this,y[A].currency.symbol,a?a:D,void 0!==b?b:Math.round)},formatForeignCurrency:function(a,b,c){return h(this,a,b?b:D,void 0!==c?c:Math.round)},unformat:function(a){if("number"==typeof a)return a;if("string"==typeof a){var b=f(this,a);return isNaN(b)?void 0:b}},binaryByteUnits:function(){return l(this._value,w.binary.suffixes,w.binary.scale).suffix},byteUnits:function(){return l(this._value,w.general.suffixes,w.general.scale).suffix},decimalByteUnits:function(){return l(this._value,w.decimal.suffixes,w.decimal.scale).suffix},value:function(){return this._value},valueOf:function(){return this._value},set:function(a){return this._value=Number(a),this},add:function(a){function b(a,b){return a+c*b}var c=r.call(null,this._value,a);return this._value=[this._value,a].reduce(b,0)/c,this},subtract:function(a){function b(a,b){return a-c*b}var c=r.call(null,this._value,a);return this._value=[a].reduce(b,this._value*c)/c,this},multiply:function(a){function b(a,b){var c=r(a,b),d=a*c;return d*=b*c,d/=c*c}return this._value=[this._value,a].reduce(b,1),this},divide:function(a){function b(a,b){var c=r(a,b);return a*c/(b*c)}return this._value=[this._value,a].reduce(b),this},difference:function(a){return Math.abs(s(this._value).subtract(a).value())}},p()&&s.loadCulturesInNode(),E?module.exports=s:("undefined"==typeof ender&&(this.numbro=s),"function"==typeof define&&define.amd&&define([],function(){return s}))}).call("undefined"==typeof window?this:window); /*! * numbro.js language configuration * language : Czech * locale: Czech Republic * author : Anatoli Papirovski : https://github.com/apapirovski */ (function(){"use strict";var a={langLocaleCode:"cs-CZ",cultureCode:"cs-CZ",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}).call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Danish * locale: Denmark * author : Michael Storgaard : https://github.com/mstorgaard */ function(){"use strict";var a={langLocaleCode:"da-DK",cultureCode:"da-DK",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : German * locale: Switzerland * author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky) */ function(){"use strict";var a={langLocaleCode:"de-CH",cultureCode:"de-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : German * locale: Germany * author : Marco Krage : https://github.com/sinky * * Generally useful in Germany, Austria, Luxembourg, Belgium */ function(){"use strict";var a={langLocaleCode:"de-DE",cultureCode:"de-DE",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",spaceSeparated:!0},defaults:{currencyFormat:",4"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : English * locale: Australia * author : Benedikt Huss : https://github.com/ben305 */ function(){"use strict";var a={langLocaleCode:"en-AU",cultureCode:"en-AU",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : English * locale: United Kingdom of Great Britain and Northern Ireland * author : Dan Ristic : https://github.com/dristic */ function(){"use strict";var a={langLocaleCode:"en-GB",cultureCode:"en-GB",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"£",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : English * locale: New Zealand * author : Benedikt Huss : https://github.com/ben305 */ function(){"use strict";var a={langLocaleCode:"en-NZ",cultureCode:"en-NZ",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : English * locale: South Africa * author : Stewart Scott https://github.com/stewart42 */ function(){"use strict";var a={langLocaleCode:"en-ZA",cultureCode:"en-ZA",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"R",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Spanish * locale: Argentina * author : Hernan Garcia : https://github.com/hgarcia */ function(){"use strict";var a={langLocaleCode:"es-AR",cultureCode:"es-AR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"$",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Spanish * locale: Spain * author : Hernan Garcia : https://github.com/hgarcia */ function(){"use strict";var a={langLocaleCode:"es-ES",cultureCode:"es-ES",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Estonian * locale: Estonia * author : Illimar Tambek : https://github.com/ragulka * * Note: in Estonian, abbreviations are always separated * from numbers with a space */ function(){"use strict";var a={langLocaleCode:"et-EE",cultureCode:"et-EE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Farsi * locale: Iran * author : neo13 : https://github.com/neo13 */ function(){"use strict";var a={langLocaleCode:"fa-IR",cultureCode:"fa-IR",delimiters:{thousands:"،",decimal:"."},abbreviations:{thousand:"هزار",million:"میلیون",billion:"میلیارد",trillion:"تریلیون"},ordinal:function(){return"ام"},currency:{symbol:"﷼"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Finnish * locale: Finland * author : Sami Saada : https://github.com/samitheberber */ function(){"use strict";var a={langLocaleCode:"fi-FI",cultureCode:"fi-FI",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Filipino (Pilipino) * locale: Philippines * author : Michael Abadilla : https://github.com/mjmaix */ function(){"use strict";var a={langLocaleCode:"fil-PH",cultureCode:"fil-PH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"₱"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : French * locale: Canada * author : Léo Renaud-Allaire : https://github.com/renaudleo */ function(){"use strict";var a={langLocaleCode:"fr-CA",cultureCode:"fr-CA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return 1===a?"er":"ème"},currency:{symbol:"$",position:"postfix",spaceSeparated:!0},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : French * locale: Switzerland * author : Adam Draper : https://github.com/adamwdraper */ function(){"use strict";var a={langLocaleCode:"fr-CH",cultureCode:"fr-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"ème"},currency:{symbol:"CHF",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : French * locale: France * author : Adam Draper : https://github.com/adamwdraper */ function(){"use strict";var a={langLocaleCode:"fr-FR",cultureCode:"fr-FR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"ème"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Hebrew * locale : IL * author : Eli Zehavi : https://github.com/eli-zehavi */ function(){"use strict";var a={langLocaleCode:"he-IL",cultureCode:"he-IL",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"אלף",million:"מליון",billion:"בליון",trillion:"טריליון"},currency:{symbol:"₪",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"₪ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"₪ ,0"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Hungarian * locale: Hungary * author : Peter Bakondy : https://github.com/pbakondy */ function(){"use strict";var a={langLocaleCode:"hu-HU",cultureCode:"hu-HU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",// ezer million:"M",// millió billion:"Mrd",// milliárd trillion:"T"},ordinal:function(){return"."},currency:{symbol:" Ft",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Italian * locale: Italy * author : Giacomo Trombi : http://cinquepunti.it */ function(){"use strict";var a={langLocaleCode:"it-IT",cultureCode:"it-IT",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Japanese * locale: Japan * author : teppeis : https://github.com/teppeis */ function(){"use strict";var a={langLocaleCode:"ja-JP",cultureCode:"ja-JP",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Korean * author (numbro.js Version): Randy Wilander : https://github.com/rocketedaway * author (numeral.js Version) : Rich Daley : https://github.com/pedantic-git */ function(){"use strict";var a={langLocaleCode:"ko-KR",cultureCode:"ko-KR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"천",million:"백만",billion:"십억",trillion:"일조"},ordinal:function(){return"."},currency:{symbol:"₩"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Latvian * locale: Latvia * author : Lauris Bukšis-Haberkorns : https://github.com/Lafriks */ function(){"use strict";var a={langLocaleCode:"lv-LV",cultureCode:"lv-LV",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language: Norwegian Bokmål * locale: Norway * author : Benjamin Van Ryseghem */ function(){"use strict";var a={langLocaleCode:"nb-NO",cultureCode:"nb-NO",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"t"},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Dutch * locale: Belgium * author : Dieter Luypaert : https://github.com/moeriki */ function(){"use strict";var a={langLocaleCode:"nl-BE",cultureCode:"nl-BE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Dutch * locale: Netherlands * author : Dave Clayton : https://github.com/davedx */ function(){"use strict";var a={langLocaleCode:"nl-NL",cultureCode:"nl-NL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Polish * locale : Poland * author : Dominik Bulaj : https://github.com/dominikbulaj */ function(){"use strict";var a={langLocaleCode:"pl-PL",cultureCode:"pl-PL",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" zł",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Portuguese * locale : Brazil * author : Ramiro Varandas Jr : https://github.com/ramirovjr */ function(){"use strict";var a={langLocaleCode:"pt-BR",cultureCode:"pt-BR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"R$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Portuguese * locale : Portugal * author : Diogo Resende : https://github.com/dresende */ function(){"use strict";var a={langLocaleCode:"pt-PT",cultureCode:"pt-PT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Russian * locale : Russsia * author : Anatoli Papirovski : https://github.com/apapirovski */ function(){"use strict";var a={langLocaleCode:"ru-RU",cultureCode:"ru-RU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){ // not ideal, but since in Russian it can taken on // different forms (masculine, feminine, neuter) // this is all we can do return"."},currency:{symbol:"руб.",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Russian * locale : Ukraine * author : Anatoli Papirovski : https://github.com/apapirovski */ function(){"use strict";var a={langLocaleCode:"ru-UA",cultureCode:"ru-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){ // not ideal, but since in Russian it can taken on // different forms (masculine, feminine, neuter) // this is all we can do return"."},currency:{symbol:"₴",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Slovak * locale : Slovakia * author : Ahmed Al Hafoudh : http://www.freevision.sk */ function(){"use strict";var a={langLocaleCode:"sk-SK",cultureCode:"sk-SK",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Swedish * locale : Sweden * author : Benjamin Van Ryseghem (benjamin.vanryseghem.com) */ function(){"use strict";var a={langLocaleCode:"sv-SE",cultureCode:"sv-SE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"tmd"},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Thai * locale : Thailand * author : Sathit Jittanupat : https://github.com/jojosati */ function(){"use strict";var a={langLocaleCode:"th-TH",cultureCode:"th-TH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(){return"."},currency:{symbol:"฿",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Turkish * locale : Turkey * author : Ecmel Ercan : https://github.com/ecmel, * Erhan Gundogan : https://github.com/erhangundogan, * Burak Yiğit Kaya: https://github.com/BYK */ function(){"use strict";var a={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},b={langLocaleCode:"tr-TR",cultureCode:"tr-TR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(b){if(0===b)// special case for zero return"'ıncı";var c=b%10,d=b%100-c,e=b>=100?100:null;return a[c]||a[d]||a[e]},currency:{symbol:"₺",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=b), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(b.cultureCode,b)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Ukrainian * locale : Ukraine * author : Michael Piefel : https://github.com/piefel (with help from Tetyana Kuzmenko) */ function(){"use strict";var a={langLocaleCode:"uk-UA",cultureCode:"uk-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){ // not ideal, but since in Ukrainian it can taken on // different forms (masculine, feminine, neuter) // this is all we can do return""},currency:{symbol:"₴",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : simplified chinese * locale : China * author : badplum : https://github.com/badplum */ function(){"use strict";var a={langLocaleCode:"zh-CN",cultureCode:"zh-CN",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window),/*! * numbro.js language configuration * language : Chinese (Taiwan) * author (numbro.js Version): Randy Wilander : https://github.com/rocketedaway * author (numeral.js Version) : Rich Daley : https://github.com/pedantic-git */ function(){"use strict";var a={langLocaleCode:"zh-TW",cultureCode:"zh-TW",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"第"},currency:{symbol:"NT$"}}; // CommonJS "undefined"!=typeof module&&module.exports&&(module.exports=a), // Browser "undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(a.cultureCode,a)}.call("undefined"==typeof window?this:window); atlas.performance=this.performance||{};atlas.performance.now=(atlas.performance.now||atlas.performance.webkitNow||function(){return new Date().getTime()});(function(h){var c=function(l,j,k){var i=["","0","00","000","0000"];l=l+"";j=j||2;k=j-l.length;if(k){return i[j].substring(0,k)+l}return l},a=function(i,j){j=j||"log";atlas.log.push({time:new Date(),type:j,log:i});if(atlas.suppressLog||!console||!console[j]){return}return console[j]("Atlas "+atlas.caseUpperFirst(j)+": "+i)},g=function(j,k,i){if(typeof i==="undefined"||+i===0){return Math[j](k)}k=+k;i=+i;if(isNaN(k)||!(typeof i==="number"&&i%1===0)){return NaN}k=k.toString().split("e");k=Math[j](+(k[0]+"e"+(k[1]?(+k[1]-i):-i)));k=k.toString().split("e");return +(k[0]+"e"+(k[1]?(+k[1]+i):i))},d=function(j,m){var l,n,k,i;if(atlas.isDate(j)){return h(j)}if(atlas.isString(m)){n=m.toLowerCase();m=atlas.cultures.hasOwnProperty(n)?{culture:m}:{format:m}}else{if(atlas.isArray(m)){m={format:m}}else{if(!m){m={}}}}n=m.culture;i=m.strict!==false;k=m.format;atlas.getCulture(n,function(o){l=o;n=l.name.toLowerCase()});if(!l){l=atlas.culture();n=l.name.toLowerCase()}if(!k){k=[h.ISO_8601,"d"]}if(atlas.isString(k)){k=f(k,l)}else{if(atlas.isArray(k)){k=k.map(function(o){return atlas.isString(o)?f(o,l):o})}}return h(j,k,n,i)},f=function(m,k){var p=k.calendars.standard.patterns,j=false,r="",q,s="",t="",n=0,o;if(p.hasOwnProperty(m)){m=p[m]}o=m.length;for(;n<=o;n+=1){q=m[n];if(q!==s){switch(s){case"d":r+=(t.length>2)?t:t.toUpperCase();break;default:break}t=""}if(n===o){break}switch(q){case"'":r+=j?"]":"[";j=!j;break;case"y":r+=j?q:q.toUpperCase();break;case"d":if(j){r+=q}else{t+=q}break;case"t":if(j){r+=q}else{!t&&(r+="a");t+=q}break;default:r+=q;break}s=q}return r},b=100,e="\uFEFF";atlas.log=[];atlas.logError=function(j,i){return arguments.length?a(atlas.format("{0} - Details: {1}",[j,i]),"error"):undefined};atlas.logInfo=function(j,k,i){return arguments.length?a(atlas.format(j,k||"")+(i?" - Data: "+i:""),"info"):undefined};atlas.logWarn=function(j,k,i){return arguments.length?a(atlas.format(j,k||"")+(i?" - Details: "+i:""),"warn"):undefined};if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){var i=this;return isFinite(i.valueOf())?c(i.getUTCFullYear(),4)+"-"+c(i.getUTCMonth()+1)+"-"+c(i.getUTCDate())+"T"+c(i.getUTCHours())+":"+c(i.getUTCMinutes())+":"+c(i.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}atlas.toInt=function(i){return parseInt(i,10)};atlas.floor=function(j,i){return g("floor",j,i)};atlas.ceil=function(j,i){return g("ceil",j,i)};atlas.round=function(j,i){return g("round",j,i)};(function(){var j=["boolean","number","string","function","array","date","regexp","object","file","symbol"],k=0,m=j.length||0,o,n={};for(;k+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i,whiteSpace:/\s+/,allWhitespace:/\s+/g,leadingWhitespace:/^\s+/,specialAttribs:/^(readonly|value|checked|selected|disabled)$/i,stateAttribs:/^(readonly|value|checked|selected|disabled)$/,specialTags:/^(select|fieldset|table|tbody|tfoot|td|tr|colgroup)$/i,parentsprev:/^(?:parents|prev(?:Until|All))/,number:/^-?[\d.]+$/,html:/<|&#?\w+;/,tagName:/<([\w:]+)/,xhtmlTag:/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,tbody:/
a";i=j.getElementsByTagName("a")[0];i.style.cssText="top:1px;float:left;opacity:.5";o=j.getElementsByTagName("input")[0];r=document.createElement("select");p=r.appendChild(document.createElement("option"));q={tbody:!j.getElementsByTagName("tbody").length,leadingWhitespace:j.firstChild.nodeType===3,computedStyle:!!(k.defaultView&&k.defaultView.getComputedStyle),opacity:(function(){return typeof k.createElement("a").style.opacity!=="undefined"}()),transform:(function(){var s=["transform","webkitTransform","MozTransform","OTransform","msTransform"],t=0,u=s.length,v;for(;t",formEncType:!!k.createElement("form").enctype,boxModel:k.compatMode==="CSS1Compat"};o.checked=true;q.noCloneChecked=o.cloneNode(true).checked;r.disabled=true;q.optDisabled=!p.disabled;try{delete j.test}catch(m){q.deleteGUID=false}o.value="t";o.setAttribute("type","radio");q.radioValue=o.value==="t";o.setAttribute("checked","t");o.setAttribute("name","t");n=k.createDocumentFragment();n.appendChild(o);q.appendChecked=o.checked;q.checkClone=n.cloneNode(true).cloneNode(true).lastChild.checked;q.tagNameNoComments=atlas.assert(function(s){s.appendChild(k.createComment(""));return !s.getElementsByTagName("*").length});q.retrieveAttribs=atlas.assert(function(s){var t;s.innerHTML="";t=typeof s.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"});q.getByClassName=atlas.assert(function(s){s.innerHTML='';if(!s.getElementsByClassName||!s.getElementsByClassName("e").length){return false}s.lastChild.className="e";return s.getElementsByClassName("e").length===2});q.getByName=atlas.assert(function(t){var s;t.id=atlas.guid+0;t.innerHTML='
';l.insertBefore(t,l.firstChild);s=k.getElementsByName&&k.getElementsByName(atlas.guid).length===2+k.getElementsByName(atlas.guid+0).length;q.getIdNotName=!k.getElementById(atlas.guid);l.removeChild(t);return s});return q},noOp:function(){},identity:function(i){return i},functor:function(i){return atlas.isFunction(i)?i:function(){return i}},padZeros:c,date:(function(){var j=60000,i=86400000;return{adjustDST:function(k,l){var m=k.getHours();if(l===0&&m===23){k.setHours(m+2);return true}return false},setDayOfWeek:function(k,l,m){var n;m=m||1;l=((l-k.getDay())+(7*m))%7;n=k.getHours();k.setDate(k.getDate()+l);this.adjustDST(k,n)},dayOfweek:function(k,l,m){k=new Date(k);this.setDayOfWeek(k,l,m);return k},firstDayOfMonth:function(k){return new Date(k.getFullYear(),k.getMonth(),1)},lastDayOfMonth:function(k){var m=new Date(k.getFullYear(),k.getMonth()+1,0),l=this.firstDayOfMonth(k),n=Math.abs(m.getTimezoneOffset()-l.getTimezoneOffset());if(n){m.setHours(l.getHours()+(n/60))}return m},equals:function(k,m){var l,n,o;if(k===m){return true}l=atlas.getType(k);n=atlas.getType(m);if(l!==n){return false}if(l==="date"){return k.getTime()===m.getTime()}if(l!=="object"&&n!=="array"){return false}for(o in k){if(k.hasOwnProperty(o)){if(!atlas.equal(k[o],m[o])){return false}}}return true},getDate:function(k){k=new Date(k.getFullYear(),k.getMonth(),k.getDate(),0,0,0);this.adjustDST(k,0);return k},getDateFromISO:(function(){var l="2016-09-07T18:26:49-0700",m=1473298009000,n=Date.parse(l),k=function(r){var q=r.slice(0,-5).split(/\D/).map(function(s){return parseInt(s,10)||0}),p=r.slice(-5),o=parseInt(p,10)/100;q[1]-=1;q=new Date(Date.UTC.apply(Date,q));if(p.slice(0,1)==="+"){q.setHours(q.getHours()+o)}return q.getTime()};if(n===m){return function(o){return new Date(Date.parse(o))}}if(k(l)===m){return k}return function(s){var q,r,p=atlas.rx.ISO8601,o=p.exec(s)||[];if(o[1]){q=o[1].split(/\D/).map(function(t){return parseInt(t,10)||0});q[1]-=1;q=new Date(Date.UTC.apply(Date,q));if(!q.getDate()){return NaN}if(o[5]){r=parseInt(o[5],10)/100*60;o[6]&&(r+=parseInt(o[6],10));(o[4]==="+")&&(r*=-1);r&&q.setUTCMinutes(q.getUTCMinutes()+r)}return q}return NaN}})(),toISOString:function(k){return h(k).format("YYYY-MM-DDTHH:mm:ss.SSS")},toUTCTime:function(k){return Date.UTC(k.getFullYear(),k.getMonth(),k.getDate(),k.getHours(),k.getMinutes(),k.getSeconds(),k.getMilliseconds())},getMilliseconds:function(k){return k.getTime()-this.getDate(k)},isInTimeRange:function(p,l,k){var n=this.getMilliseconds(l),m=this.getMilliseconds(k),o;if(!p||n==m){return true}if(l>=k){k+=i}o=this.getMilliseconds(p);if(n>o){o+=i}if(m=n&&o<=m},isInDateRange:function(p,l,k){var n=l.getTime(),m=k.getTime(),o;if(n>=m){m+=i}o=p.getTime();return o>=n&&o<=m},parse:function(k,l){return d(k,l).toDate()},format:function(k,m,n){var o=atlas.culture(),l;h.locale(o.name);m=f(m,o);l=h(k);if(!n){l=l.utcOffset(0)}return l.format(m)},isValid:function(k,l){if(arguments.length===0){atlas.logError("atlas.date.isValid requires a date to check against");return false}return d(k,l).isValid()},addSeconds:function(k,l){k.setSeconds(k.getSeconds()+l);return k},addMinutes:function(k,m){var l=k.getMinutes();k.setMinutes(l+m);this.adjustDST(k,l/60);return k},addHours:function(k,m){var l=k.getHours();k.setHours(l+m);this.adjustDST(k,l);return k},addDays:function(k,m){var l=k.getHours();k=new Date(k);this.setTime(k,m*i);this.adjustDST(k,l);return k},addMonths:function(k,l){k.setMonth(k.getMonth()+l);return k},addYears:function(k,l){k.setFullYear(k.getFullYear()+l);return k},setTime:function(k,n,m){var o=k.getTimezoneOffset(),l;k.setTime(k.getTime()+n);if(!m){l=k.getTimezoneOffset()-o;k.setTime(k.getTime()+l*j)}},today:function(){return this.getDate(new Date())},isToday:function(k){return this.getDate(k).getTime()==this.today().getTime()},nextDay:function(k){return this.addDays(k,1)},previousDay:function(k){return this.addDays(k,-1)},toInvariantTime:function(k){var l=new Date(1980,1,1,0,0,0);if(k){l.setHours(k.getHours(),k.getMinutes(),k.getSeconds(),k.getMilliseconds())}return l},ms:{day:i,minute:j,hour:60*j},now:new Date()}}()),proxy:function(k,j){var i,l,m;if(atlas.isString(j)){m=k[j];j=k;k=m}if(!atlas.isFunction(k)){return undefined}i=[].slice.call(arguments,2);l=function(){return k.apply(j||this,i.concat([].slice.call(arguments)))};return l},htmlEncode:function(j){var i;if(atlas.isNullOrUndefined(j)){return undefined}if(!atlas.isString(j)){return j}i={"<":"<",">":">","&":"&",'"':""","'":"'"};return j.replace(/[<>&'"]/g,function(k){return i[k]})},removeHTML:function(i){return i?i.replace(/<(?:.|\n)*?>/gm,""):undefined},browser:(function(){var q=navigator.userAgent.toLowerCase(),r=navigator.userAgent||navigator.vendor||window.opera,j=/(chrome)[ /]([\w.]+)/.exec(q)||/(webkit)[ /]([\w.]+)/.exec(q)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(q)||/(msie) ([\w.]+)/.exec(q)||q.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(q)||[],i={webkit:false,safari:false,opera:false,chrome:false,msie:false,mozilla:false,version:"unknown",mobile:false},m=navigator.appVersion,o=navigator.userAgent,p=""+parseFloat(m),l=atlas.toInt(m),n,k;if(j[1]){i[j[1]]=true;i.version=j[2]||0;i.majorVersion=i.version}if(i.version){i.majorVersion=atlas.toInt(i.version.split(".")[0])}if(i.chrome){i.webkit=true}else{if(i.webkit){i.safari=true}}if(i.webkit){i.webkitVersion=i.majorVersion}if(i.mozilla&&q.indexOf("trident")!==-1){i.msie=true;i.mozilla=false}if(i.webkit===true){if(i.safari===true){n=o.indexOf("Safari");p=o.substring(n+7)}else{n=o.indexOf("AppleWebKit");p=o.substring(n+12)}if((n=o.indexOf("Version"))!=-1){p=o.substring(n+8)}if((k=p.indexOf(";"))!=-1){p=p.substring(0,k)}if((k=p.indexOf(" "))!=-1){p=p.substring(0,k)}l=atlas.toInt(""+p);if(isNaN(l)){l=atlas.toInt(navigator.appVersion)}if(i.safari===true){i.majorVersion=l}else{i.webkitVersion=l}}if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(r.substr(0,4))){i.mobile=true}return i}()),getType:function(j){var i;if(j===null){return String(j)}i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object File]":"file","[object Symbol]":"symbol"};return typeof j==="object"||typeof j==="function"?i[Object.prototype.toString.call(j)]||"object":typeof j},isElement:function(i){return !!(typeof HTMLElement==="object"?i instanceof HTMLElement:i&&typeof i==="object"&&i!==null&&i.nodeType===1&&typeof i.nodeName==="string")},isNode:function(i){return !!(i&&i.nodeName&&(i.nodeType==1||i.nodeType==11))},isArrayLike:function(i){var j,k;if(!i){return false}j=i.length;k=atlas.getType(i);if(atlas.isWindow(i)){return false}if(i.nodeType===1&&j){return true}return k==="array"||k!=="function"&&(j===0||typeof j==="number"&&j>0&&(j-1) in i)},isWindow:function(i){return i!==null&&i==i.window},isEmptyObject:function(j,i){var k;if(atlas.getType(j)!=="object"){return false}i=i||false;for(k in j){if(j.hasOwnProperty(k)){return false}if(i){return false}}return true},isPlainObject:function(i){var k;if(!i||atlas.getType(i)!=="object"||i.nodeType||atlas.isWindow(i)){return false}try{if(i.constructor&&!i.hasOwnProperty("constructor")&&!i.constructor.prototype.hasOwnProperty("isPrototypeOf")){return false}}catch(j){return false}for(k in i){}return k===undefined||i.hasOwnProperty(k)},isUndefined:function(i){return(typeof i==="undefined")},isNull:function(i){return(i===null)},isNullOrUndefined:function(i){return(atlas.isNull(i)||atlas.isUndefined(i))},isPromise:function(i){return atlas.isObject(i)&&atlas.isFunction(i.then)},isEmptyString:function(i){return atlas.isString(i)&&/^\s*$/.test(i)},isPropertyDefined:function(l,m){var j,k,i;if(!atlas.isObject(l)||!atlas.isString(m)){atlas.logError("atlas.isPropertyDefined: must be provided a valid object as the first argument, and a string property name or path of property names as the second argument");return undefined}k=String(m).split(".");i=l;while((j=k.shift())){if(!(j in i)){return false}i=i[j]}return true},isTruthy:function(i){return !!i},isFalsy:function(i){return !i},isPrimitive:function(i){return(atlas.isNumber(i)||atlas.isString(i)||atlas.isBoolean(i)||atlas.isNullOrUndefined(i)||atlas.isSymbol(i))},isOdd:function(i){return atlas.isNumber(i)&&!!(i&1)},isEven:function(i){return atlas.isNumber(i)&&!(i&1)},isInfinite:function(i){return i===+1/0||i===-1/0},isFinite:function(i){return atlas.isNumber(i)&&isFinite(i)},isInteger:function(i){return atlas.isNumber(i)&&Math.floor(i)===i},isSafeInteger:function(k){var i=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,j=Number.MIN_SAFE_INTEGER||-i;return atlas.isInteger(k)&&(k>=j&&k<=i)},isNumeral:function(i){if((!atlas.isNumber(i)&&!atlas.isString(i))||atlas.isEmptyString(i)){return false}try{i=Number(i)}catch(j){return false}return atlas.isFinite(i)},isSubstring:function(k,l,j){var i;if(!atlas.isString(l)){return false}i=l.length;j=atlas.isInteger(j)?j:0;if(j<0){j=i+j}if(j<0||j>=i){return false}return !!(~l.indexOf(k,j))},isSameType:function(i,j){return typeof i===typeof j&&atlas.getType(i)===atlas.getType(j)},isEqual:function(i,j){return i===j||(i!==i&&j!==j)},isDeepEqual:function(i,j){var k;if(!atlas.isSameType(i,j)){return false}if(atlas.isPrimitive(i)){return atlas.isEqual(i,j)}k=atlas.isDeepEqual;if(atlas.isArray(i)){if(i.length!==j.length){return false}return(function(){var m=0,n=i.length||0;for(;m0){if(i&1){k+=j}i>>=1;j+=j}return k},escapeRegExp:function(k,i){var j;i=i||false;j=i?"\\":"";return k.replace(/[-/\\^$*+?.()|[\]{}]/g,j+"\\$&")},startsWith:function(i,j){if(!i||!j){return false}i=atlas.isString(i)?atlas.trim(i):i;j=atlas.isString(j)?atlas.trim(j):j;if(atlas.isNumber(i)&&atlas.isNumber(j)){i+="";j+=""}if(atlas.isString(i)&&atlas.isString(j)){return i.slice(0,j.length)==j}else{if(atlas.isArray(i)&&j){return i[0]==j}}return false},endsWith:function(i,j){if(!i||!j){return false}i=atlas.isString(i)?atlas.trim(i):i;j=atlas.isString(j)?atlas.trim(j):j;if(atlas.isNumber(i)&&atlas.isNumber(j)){i+="";j+=""}if(atlas.isString(i)&&atlas.isString(j)){return i.slice(-j.length)==j}else{if(atlas.isArray(i)&&j){return i[i.length-1]==j}}return false},arrayContains:function(k,j,m){var n=j.length||0;if(j){if(Array.prototype.indexOf){return Array.prototype.indexOf.call(j,k,m)}m=m?m<0?Math.max(0,n+m):m:0;for(;m=0)===l})},reduceExpr:function(j,i,k){atlas.logWarn("Deprecated: As of atlas v1.2.0 the `atlas.reduceExpr` functionality is deprecated and will soon be removed. Please change your methods to use `atlas.filter` instead.");return atlas.filter(j,i,k)},merge:function(){var r,q,s,k,m,j,t=arguments[0]||{},o=1,p=arguments.length,n=false;if(atlas.isBoolean(t)){n=t;t=arguments[1]||{};o=2}if(typeof t!=="object"&&!atlas.isFunction(t)){t={}}if(p===o){t=this;--o}for(;on){if(v){clearTimeout(v);v=null}q=x;r=l.apply(j,i);if(!v){j=i=null}}else{if(!v&&t){v=setTimeout(m,y)}}return r};u.cancel=function(){clearTimeout(v);q=0;v=j=i=null};return u},throttleToAnimationFrame:(function(){var l={},k=0,j=this.requestAnimationFrame,i=this.cancelAnimationFrame;return function m(n){var o;if(!n){atlas.logError("function is needed to throttle");return atlas.noOp}o=k++;return function(){var q=this,p=arguments;if(l.hasOwnProperty(o)){i(l[o])}l[o]=j(function(){n.apply(q,p)})}}}()),runDatePatterns:function(G,x,p){var E,s,o,r,n,H,B,m,t,v,K,u,q,A,J,w,C,z,F,I,y,D,k,l,j;if((!G||(G.trim&&G.trim()===""))||(!atlas.isString(G)&&!atlas.isNumber(G))){return{error:"Invalid input"}}o=[". ","-","/","."];t=0;A=atlas.browser;J=G;C=atlas.cultures.current.calendars.standard.patterns;k=function(i){return atlas.toString(new Date(i),"s").split("T")[0]+"T00:00:00"};l=function(i){D={};for(H in C){D[H]=atlas.formatDate(i,H,p,true)}return{formats:D,rawDate:i}};j=function(i){D={};if(typeof p!=="undefined"&&atlas.cultures[p]){s=atlas.cultures[p].calendars.standard.patterns.d}else{s=atlas.culture().calendars.standard.patterns.d}if(atlas.isNumber(i)){return l(new Date(J))}r=J.match(/[^\w*]/);if((!atlas.isArray(r)||r===null)||s.indexOf(r)===-1||o.indexOf(r[0])===-1){return{error:"No or Non-Supported Culture Delimiter Found."}}r=r[0];n=s.split(r);m=J.split(r).filter(Boolean);if(m.length!==3){return{error:"Improper date format"}}if(m[0]===""||m[1]===""||m[2]===""){return{error:"Improper date format"}}v=m.length||0;for(;t-1){if(w.toLowerCase().indexOf("y")>-1){K=t}if(w.toLowerCase().indexOf("m")>-1){u=t}if(w.toLowerCase().indexOf("d")>-1){q=t}}}y=m[K];if(y<100){y+=2000}if(A.msie===true&&A.majorVersion<10){I=new Date(y,m[u],m[q]).getDate()}else{I=m[q]}return l(new Date(y,m[u]-1,I))};E=function(L){var i=Math.abs(Math.floor(L));return i<10?("0"+i).slice(-2):i};B=j(J);if(B.error){return B}F=B.rawDate;z=B.formats;z.timeStamp=F.getTime();z.timezoneOffset=F.getTimezoneOffset();if(atlas.isNumber(x)){z.timezoneOffset=x;z.timeStamp-=F.getTimezoneOffset()*60*1000;z.timeStamp+=x*60*1000}z.zeroIso=k(z.timeStamp);z.timeStampNoOffset=z.timeStamp-(z.timezoneOffset*60*1000);if(z.timezoneOffset<0){z.zeroIsoNoOffset=k(z.timeStampNoOffset)}else{z.zeroIsoNoOffset=z.zeroIso}return z},deleteProperty:function(m,n){var k,l,j;if(!atlas.isObject(m)){return}k=0;j=function(i,o){var p;if(!i.hasOwnProperty(o)){return}i[o]=undefined;p=setTimeout((function(q,r){delete q[r];clearTimeout(p);return function(){}}(i,o)),10)};if(atlas.isArray(n)){l=n.length||0;for(;k9){return j.navigator.msSaveBlob(new Blob([e,v]),w)}t=j.frames.oWindowContent;if(!t){t=document.createElement("iframe");t.id="oWindowContent";t.style.display="none";o.insertBefore(t,null);t=j.frames.oWindowContent;if(!t){t=j.open("","_temp","width=100,height=100");if(!t){atlas.logError("Sorry, download file could not be created.");return false}}}x=(v||"").replace(/\r?\n/g,"\r\n");p=t.document;p.open("text/plain","replace");p.charset=u;if(atlas.endsWith(w,".html")){p.close();p.body.innerHTML="\r\n"+x+"\r\n"}else{w+=".txt";p.write(x);p.close()}q=p.execCommand("SaveAs",null,w);t.close();return q}s=document.createElement("a");s.style="display: none";y=j.URL.createObjectURL(n);s.href=y;s.download=w;o.appendChild(s);s.click();setTimeout(function(){j.URL.revokeObjectURL(y);o.removeChild(s)},m)}}},validateOptions:function(q,j,o,n){var r,k,p,m,s,l,t;o=o||"Atlas Component";if(!atlas.isObject(q)||!atlas.isObject(j)){atlas.logError(o+" expects passed options to be in object format. Failing");return{valid:false}}r=Object.keys(j);k=r.length;s={valid:true,invalidFields:[]};l=function(i,u){n&&atlas.logError(u);s.valid=false;s.invalidFields.push(i)};t={required:function(u,i){if(i.required&&!q.hasOwnProperty(u)){l(u,o+" options."+u+" configuration option is required")}},types:function(v,w){var u,x=false;w=atlas.isArray(w)?w:[w];u=w.length;while(u--){if((x=atlas["is"+atlas.caseUpperFirst(w[u])](q[v]))){break}}if(!x){l(v,o+" "+v+" does not have a valid type. Expected: "+w.join(" OR "))}},values:function(i,u){u=atlas.isArray(u)?u:[u];if(u.indexOf(q[i])===-1){l(i,o+" "+i+" does not have a valid value. Expected: "+u.join(" OR "))}}};while(k--){m=r[k];p=j[m]||{};t.required(m,p);if(q.hasOwnProperty(m)){p.types&&t.types(m,p.types);p.values&&t.values(m,p.values)}if(p.fn&&!p.fn(m,p)){l(m)}}return s},JSONfn:{stringify:function(i){return JSON.stringify(i,function(j,k){if(atlas.isFunction(k)||atlas.isNode(k)){return k.toString()}if(k instanceof RegExp){return"_PxEgEr_"+k}return k})}},utils:{values:function(i){if(!atlas.isObject(i)){atlas.logError("Invalid parameter","`atlas.utils.values` expects an object, but received "+(typeof i)+".");return[]}return Object.keys(i).map(function(j){return i[j]})},invert:function(j){if(!atlas.isObject(j)){atlas.logError(atlas.format("`atlas.invert` expects an object, but {0} was received.",[typeof j]));return null}return Object.keys(j).reduce(function i(l,k){l[j[k]]=k;return l},{})}}});atlas.ops=(function(){var i=false,j=function(m){return new Function("return "+m)()},l=function(m){return m.replace(atlas.rx.quote,"\\").replace(atlas.rx.newline,"")},k=function(q,m,n,p){var o;if(n!=null){if(atlas.isString(n)){n=n.replace(atlas.rx.quote,"\\").replace(atlas.rx.newline,"");o=atlas.rx.date.exec(n);if(o){n=new Date(+o[1])}else{if(p){n="'"+n.toLowerCase()+"'";m="("+m+' || "").toLowerCase()'}else{n="'"+n+"'"}}}if(n.getTime){m="("+m+"?"+m+".getTime():"+m+")";n=n.getTime()}}return m+" "+q+" "+n};return{_operator:k,_exec:i,_fnOp:j,_quoter:l,equal:function(m,n,o){var p=this._operator("==",m,n,o);return this._exec?this._fnOp(p):p},greaterThan:function(m,n,o){var p=this._operator(">",m,n,o);return this._exec?this._fnOp(p):p},greaterThanOrEqual:function(m,n,o){return this._operator(">=",m,n,o)},lessThan:function(m,n,o){return this._operator("<",m,n,o)},lessThanOrEqual:function(m,n,o){return this._operator("<=",m,n,o)},startsWith:function(m,n,o){if(o){m="("+m+" || '').toLowerCase()";if(n){n=n.toLowerCase()}}if(n){n=this._quoter(n)}return m+".lastIndexOf('"+n+"', 0) == 0"},endsWith:function(m,n,o){if(o){m="("+m+" || '').toLowerCase()";if(n){n=n.toLowerCase()}}if(n){n=this._quoter(n)}return m+".indexOf('"+n+"', "+m+".length - "+(n||"").length+") >= 0"},contains:function(m,n,o){if(o){m="("+m+" || '').toLowerCase()";if(n){n=n.toLowerCase()}}if(n){n=this._quoter(n)}return m+".indexOf('"+n+"') >= 0"},notEqual:function(m,n,o){return this._operator("!=",m,n,o)},notContains:function(m,n,o){if(o){m="("+m+" || '').toLowerCase()";if(n){n=n.toLowerCase()}}if(n){n=this._quoter(n)}return m+".indexOf('"+n+"') == -1"},isContainedIn:function(m,n,o){if(o){m="("+m+' || "").toLowerCase()';if(n){n=n.toLowerCase()}}return"'"+n+'".indexOf('+m+".toLowerCase()) > -1"}}}());atlas.isAtlas=function(i){return i instanceof atlas};atlas.support=atlas.support();atlas.fn.extend({filter:function(i){return this.updateStack(atlas.reduce(this,i,true),"filter",i)},is:function(i){return !!i&&(atlas.isString(i)?atlas.rx.needsContext.test(i)?atlas(i).index(this[0])>=0:this.filter(i,this.elements).get().length>0:this.filter(i).get().length>0)},dim:function(){var j,k,i,m,l;if(!this.length){return{height:0,width:0}}j=this[0];k=j.nodeType===9&&j.documentElement;i=!k&&!j.style&&!j.offsetWidth&&!j.offsetHeight?(function(n){var o={position:j.style.position||"",visibility:j.style.visibility||"",display:j.style.display||""};n.first().css({position:"absolute",visibility:"hidden",display:"block"});return o}(this)):null;m=k?Math.max(j.body.scrollWidth,j.body.offsetWidth,k.scrollWidth,k.offsetWidth,k.clientWidth):j.offsetWidth;l=k?Math.max(j.body.scrollHeight,j.body.offsetHeight,k.scrollHeight,k.offsetHeight,k.clientHeight):j.offsetHeight;i&&this.first().css(i);return{width:m,height:l}}})})(moment);(function(d){var b=d.logInfo,c=d.logWarn,a=d.logError,e=function(f){if(!(this instanceof e)){return new e(f)}f&&(this.namespace=f)};e.prototype.namespace="atlas";e.prototype.logInfo=function(g,h,f){b(this.namespace+": "+g,h,f)};e.prototype.logWarn=function(g,h,f){c(this.namespace+": "+g,h,f)};e.prototype.logError=function(g,f){a(this.namespace+": "+g,f)};d.Logger=d.logger=e}(atlas));(function(c,a,b){atlas[c]=b(a)}("runWorker",this,function(context){var _ISFUNCTION=atlas.isFunction,_ISOBJECT=atlas.isObject,_OBROWSER=atlas.browser,_NOSUPPORT=(_OBROWSER.msie===true&&_OBROWSER.majorVersion<11),FauxWorker=function(sourceScript){var self=this,_execScript=function(src,context){return function(){return eval(src)}.call(context)},_timer=null,_data=null,_iterate=function(data){if(_ISOBJECT(data)&&data.complete===true){self.onmessage(data);return self.close()}_timer=setTimeout((function(data){return function(){_iterateOn(data)}}(_data)),20);return true},_iterateOn=function(data){try{if(_ISFUNCTION(onmessage)){onmessage({data:data})}return true}catch(err){if(_ISFUNCTION(self.onerror)){return self.onerror(err)}}return false};self.postMessage=function(data){_data=data;_iterate(data);return true};self.terminate=self.close=function(){clearTimeout(_timer);return true};self.importScripts=function(src){var script=document.createElement("SCRIPT");script.src=src;script.setAttribute("type","text/javascript");document.getElementsByTagName("HEAD")[0].appendChild(script);return true};self.polyfill=true;_execScript(sourceScript,self)},_SOURCE=(function _workerEnvironment(){var rxFunction=/^function\s*([a-zA-Z0-9_$]*)\s*\(([a-zA-Z0-9_$,\s]*)\)\s*[^{]*\{\s*([\d\D]*)\s*}[^}]*$/gim,postResult=function(result){var ret=(self.polyfill&&self.polyfill===true)?{complete:true,data:result}:result;self.postMessage(ret);self.close()},deserializeFunction=function(fnText){var aParts=rxFunction.exec(fnText),args=aParts[2].split(/\s*,\s*/),content=aParts[3];return Function.apply(null,args.concat(content))};self.onmessage=function(evt){var oCommand=evt.data,handlerInvoke,argsInvoke,resultInvoke;switch(oCommand.command.toLowerCase()){case"import":self.importScripts.apply(null,oCommand.arguments);break;case"invoke":handlerInvoke=deserializeFunction(oCommand.arguments[0]);argsInvoke=oCommand.arguments.slice(1);resultInvoke=handlerInvoke.apply(self,argsInvoke);if(resultInvoke&&typeof resultInvoke.then==="function"){resultInvoke.then(postResult)}else{postResult(resultInvoke)}break;default:console.warn("atlas.runWorker: there was no `import` or `invoke` command set, currently in unknown state. Ending.");break}}}).toString().replace(/^[^{]*\{\s*([\d\D]*)\s*}[^}]*$/,"$1"),_SETSCRIPTPATH=function(path){return/^https?:/.test(path)?path:location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+(path.charAt(0)==="/"?"":"/")+path},Defer=function Defer(Promise){var d={};Promise=Promise||context.Promise;d.promise=new Promise(function(resolve,reject){d.resolve=resolve;d.reject=reject});return d};return function runWorker(handleWork,imports){var _WORKERBLOB=new Blob([_SOURCE]),_WORKERURL=window.URL.createObjectURL(_WORKERBLOB);return function(){var work=_NOSUPPORT?new FauxWorker(_SOURCE):new Worker(_WORKERURL),defer=new Defer();work.onmessage=function(evt){defer.resolve(evt.data)};work.onerror=function(err){defer.reject(err)};work.postMessage({command:"import",arguments:(imports||[]).map(_SETSCRIPTPATH)});work.postMessage({command:"invoke",arguments:[handleWork.toString()].concat([].slice.call(arguments))});return defer.promise}}}));(function(d){var c=Math.min,b=Math.max,a=d.geom;a||(a=d.geom={});a.offsetToBox=function e(k){var i=k.top||0,h=k.left||0,j=k.width||0,g=k.height||0;return{top:i,left:h,bottom:i+g,right:h+j}};a.overlap=function f(g,j){var h=c(g.right,j.right)-b(g.left,j.left),i=c(g.bottom,j.bottom)-b(g.top,j.top);return{x:(h<0)?0:h,y:(i<0)?0:i}}}(atlas));(function(){var J=window,t={},m=/[^\.]*(?=\..*)\.|.*/,l=/\..*/,a="addEventListener",w="removeEventListener",f=document||{},z=f.documentElement||{},H=z[a],h=H?a:"attachEvent",s={},D=Array.prototype.slice,F=function(L,K){return L.split(K||" ")},E="click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll ",I="show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinputreadystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ",n=(function(L,K){var M=0,N=K.length||0;for(;M0){R=F(R);for(M=R.length;M--;){o(K,R[M],L)}return K}Q=N&&R.replace(l,"");if(Q&&d[Q]){Q=d[Q].base}if(!R||N){if(P=N&&R.replace(m,"")){P=F(P,".")}x(K,Q,L,P)}else{if(atlas.isFunction(R)){x(K,null,R)}else{for(O in R){if(R.hasOwnProperty(O)){o(K,O,R[O])}}}}return K},p=function(S,K,M,T,O,R,W){var Q=O,U,V,P,L,N;S=(S!==false);if(T===undefined&&typeof M=="object"){for(U in M){if(M.hasOwnProperty(U)){p.call(this,S,K,U,M[U])}}return}if(typeof T!=="undefined"&&atlas.isString(T)){O=e(T,O,B)}if(atlas.isFunction(T)){O=Q=T}V=F(M);if(this===s){O=q(o,S,K,M,O,Q,W)}for(P=V.length;P--;){N=v.put(L=new u(K,V[P].replace(l,""),O,Q,F(V[P].replace(m,""),"."),R,false,S,W));if(L[h]&&N){k(K,L.eventType,true,L.customType,W||false)}}return K},r=function(){return p.apply(s,arguments)},i=function(L,T,K){var U=F(T),N=U.length||0,O=0,P=0,Q,M,R,S;for(N=U.length;N--;){S=U[N];T=S.replace(l,"");if(Q=S.replace(m,"")){Q=F(Q,".")}if(!Q&&!K&&L[h]){j(n[T],T,L)}else{M=v.get(L,T,null,false);P=M.length;K=atlas.isArray(K)?K:[K];for(;O0){k.loaded.push(n);this.checkComplete();return}if(o==="js"&&atlas.arrayContains(n,k.existingJS)>0){k.loaded.push(n);this.checkComplete();return}if(o==="tmpl"&&atlas.arrayContains(n,k.existingTMPL)>0){k.loaded.push(n);this.checkComplete();return}i=j[o].target;if(i===e&&!document.body){this.onError("atlas.require._injectItem was told to load a script into the BODY, but the BODY is not yet available. Failing!")}l=j[o].type||"loadGeneric";m=l+"-"+m;if(o==="css"){f=document.createElement("link");f.setAttribute("rel","stylesheet")}else{if(o==="js"){f=document.createElement("script");f.setAttribute("type","text/javascript")}else{if(o==="tmpl"){if(k.development===true){atlas.solicit({url:n,onSuccess:q,onError:p,async:false})}else{q()}}}}if(f){if(f.attachEvent){f.attachEvent("onreadystatechange",function(r){k.onItemLoad(r)})}else{f.addEventListener("error",this.onError,false);f.addEventListener("load",function(r){k.onItemLoad(r)},false)}f.setAttribute(j[o].srcAttrib,n);f.setAttribute("id",m);i.appendChild(f)}}},onItemLoad:function(f){function e(i){var h=i.currentTarget||i.srcElement,j=h.getAttribute("src")||h.getAttribute("href");return j}var g=e(f);if(f.type==="load"||(/^(complete|loaded)$/.test((f.currentTarget||f.srcElement).readyState))){atlas.pubsub.publish("assets.loaded:",{file:g});this.loaded.push(g);this.checkComplete()}},_getFileExtension:function(e){return e.split(".").pop()},_get:function(h,m){var e;if(Object.prototype.toString.call(h)=="[object Array]"){e=h}else{if(typeof h==="string"){e=[h]}else{m.onError("atlas.require was not passed a string or an array of keys to load!")}}var n=m.bundles,g=0,j=e.length,o=m.environment,q,p,f=(o.toLowerCase()==="development")?true:false,k={css:[],js:[],tmpl:[]},r="";for(;g";var q=typeof p.lastChild.getAttribute("multiple");return !atlas.isBoolean(q)&&!atlas.isString(q)});atlas.support.getByClassName=atlas.assert(function(p){p.innerHTML='';if(!p.getElementsByClassName||!p.getElementsByClassName("e").length){return false}p.lastChild.className="e";return p.getElementsByClassName("e").length===2})},d=function(n){return typeof n=="string"&&n!==""?(function(){var x=["","
",1],B=["","
",3],u=["",1],s=["_","",0,1],z={thead:x,tbody:x,tfoot:x,colgroup:x,caption:x,tr:["","
",2],th:B,td:B,col:["","
",2],fieldset:["
","
",1],legend:["
","
",2],option:u,optgroup:u,script:s,style:s,link:s,param:s,base:s},y=n.match(/^\s*<([^\s>]+)/),q=document.createElement("div"),r=[],v=y?z[y[1].toLowerCase()]:null,o=v?v[2]+1:1,t=v&&v[3],w="parentNode",A=atlas.support.tbody&&v&&v[0]==""&&!(/0?cloneNode(v,z):z)},null,u)},this,u);x.length=p;atlas.each(t,function(r){x[--p]=r},null,!u);return x};atlas.nodeEquals=function(n,o){return n&&o&&n.nodeName?n.nodeName&&n.nodeName.toLowerCase()===o.toLowerCase():undefined};atlas.getWindowScroll=function(){return{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}};atlas.getViewportSize=function(){var q=document.body.clientWidth,p=document.body.clientHeight,r=document.documentElement,o=(typeof window.innerWidth!=="undefined"),n=(r&&r.clientWidth);if(o||n){q=r.clientWidth;p=r.clientHeight}return{width:q,height:p}};atlas.isAncestor=function(n,o){if(!n||!o){return undefined}if(n.compareDocumentPosition in g){return(n.compareDocumentPosition(o)&16)==16}else{if("contains" in g){return n!==o&&n.contains(o)}else{while(o=o.parentNode){if(o===n){return true}}return false}}};atlas.focused=function(){return e.activeElement||undefined};atlas.extend({contains:function(n,o){if((n.ownerDocument||n)!==document){k(n)}return contains(n,o)},filter:function(o,n,p){if(p){o=":not("+o+")"}return n.length===1?atlas.selectorEngine.matchesSelector(n[0],o)?[n[0]]:[]:atlas.selectorEngine.matches(o,n)}});atlas.fn.append=function(n){if(!n){atlas.logError("a node must be provided to the append function");return this}var o=this;return this.each(function(p,q){atlas.each(c(n,o,q),function(r){p.appendChild(r)})})};atlas.fn.appendTo=function(o,n){if(!o){atlas.logError("a target must be provided to the appendTo function");return this}return h.call(this,o,n,function(q,p){q.appendChild(p)})};atlas.fn.prepend=function(n){if(!n){atlas.logError("a node must be provided to the prepend function");return this}var o=this;return this.each(function(p,r){var q=p.firstChild;atlas.each(c(n,o,r),function(s){p.insertBefore(s,q)})})};atlas.fn.prependTo=function(o,n){if(!o){atlas.logError("a target must be provided to the prependTo function");return this}return h.call(this,o,n,function(q,p){q.insertBefore(p,q.firstChild)},1)};atlas.fn.html=function(s,q){var o=q?e.documentElement.textContent===undefined?"innerText":"textContent":"innerHTML",p=this,n=function(t,u){p.each(c(s,p,u),function(v){t.appendChild(v)})},r=function(u,v){try{if(q||(typeof s==="string"&&!atlas.rx.specialTags.test(u.tagName))){return(u[o]=s)}}catch(t){}n(u,v)};if(typeof s!=="undefined"){this.removeChildren().each(r);return this}return(this[0])?this[0][o]:""};atlas.fn.text=function(o){var n=this.html(o,true)||"";return arguments.length?this:n};atlas.fn.addClass=function(n){if(!n){return atlas.logError("a className must be provided to the addClass function")}n=l.call(n).split(atlas.rx.whiteSpace);return this.each(function(o){atlas.each(n,function(p){a(o,p)})})};atlas.fn.removeClass=function(n){if(!n){return atlas.logError("a className must be provided to the removeClass function")}n=l.call(n).split(atlas.rx.whiteSpace);return this.each(function(o){atlas.each(n,function(p){j(o,p)})})};atlas.fn.hasClass=function(n){if(!n){return atlas.logError("a className must be provided to the hasClass function")}n=l.call(n).split(atlas.rx.whiteSpace);return atlas.has(this,function(o){return atlas.has(n,function(p){return p&&f(o,p)})})};atlas.fn.val=function(o){var n;if(!this.length){return this}if(typeof o!=="undefined"){return this.each(function(){var q,t,u,p,r,s;if(this.tagName.toLowerCase()==="select"){u=this.options;r=u.length;p=[];q=false;p[0]=o;while(r--){t=u[r];if((t.selected=!!(atlas.arrayContains(t.value,p)!==-1))){q=true;s=r}}this.selectedIndex=!q?-1:s}else{this.value=o}})}else{n=this[0];if(n.tagName.toLowerCase()==="select"){if(n.selectedIndex<0){return""}return n.options[n.selectedIndex].value}else{return n.value}}};atlas.propFix={readonly:"readOnly",tabindex:"tabIndex",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"};atlas.fn.attr=function(q,v){var n=this[0],s,r=atlas.rx.specialAttribs,t=this,p=atlas.isUndefined,o,u;if(!this.length||!q){return this}if(atlas.isObject(q)){Object.keys(q).forEach(function(w){t.attr(w,q[w])});return this}o=r.test(q);if(o){u=atlas.propFix[q.toLowerCase()]||q}if(p(v)){s=n.getAttribute(q);return o?n[u]:(p(s)||s===""?null:s)}return this.each(function(w){if(v===null||(o&&v===false)){t.attrRemove(q)}else{o?(w[u]=v):w.setAttribute(q,v)}})};atlas.fn.attrRemove=function(o){var n,q,p,r;if(!o){atlas.logError("a key must be provided to the attrRemove function");return this}p=atlas.propFix;o=l.call(o).split(atlas.rx.whiteSpace);q=atlas.rx.specialAttribs;return this.each(function(s){atlas.each(o,function(t){if(n=q.test(t)){r=p[t.toLowerCase()]||t}n?(s[r]=false):s.removeAttribute(t)})})};atlas.fn.remove=function(){return this.each(function(n){atlas(n).off();n.parentNode&&n.parentNode.removeChild(n)})};atlas.fn.removeChildren=function(n){n=n===true;return this.each(function(o){while(o.firstChild){!n&&atlas(o.firstChild).off();o.removeChild(o.firstChild)}})};atlas.fn.focus=function(){this.length&&this[0].focus();return this};atlas.fn.blur=function(){this.length&&this[0].blur();return this};atlas.fn.replaceWith=function(o){o=atlas.isAtlas(o)?o:atlas(o);var p=[],n;this.each(function(q){n=o[0].cloneNode(true);q.parentNode.replaceChild(n,q);p.push(n)});if(p.length){this.remove()}return atlas(p)};atlas.fn.insertBefore=function(t){if(!t){return false}var o,n,p=0,q=atlas(t),r=q.length||0,s=[];this.each(function(){for(;p-1){a.push(e)}}});return atlas(a)};atlas.fn.is=function(b){var a=false;this.each(function(d,e,c){if(atlas.arrayContains(d,atlas(b))>-1){a=true}});return a};atlas.fn.not=function(b){var a=[];this.each(function(e,f,d){var c=atlas(b,e.parentNode);if(atlas.arrayContains(e,c)===-1){a.push(e)}});return atlas(a)};atlas._dimension=function(a,c,d){var b;if(typeof d==="undefined"){b=c.replace(/^[a-z]/,function(e){return e.toUpperCase()});return a[0]["offset"+b]}else{d=atlas.isString(d)?d:d+"px";return a.css(c,d)}};atlas.fn.width=function(a){return atlas._dimension(this,"width",a)};atlas.fn.height=function(a){return atlas._dimension(this,"height",a)};atlas.fn.outerWidth=function(a){return atlas._dimension(this,"outerWidth",a)};atlas.fn.offset=function(){return{top:this[0].offsetTop,left:this[0].offsetLeft}};atlas.fn.detach=function(d,a){var c,b;this.each(function(e){c=e.parentNode;b=e.nextSibling;if(!c){return false}e.parentNode.removeChild(e);if(d&&a){d.call(e,f)}else{if(d){d.call(e);f()}}function f(){c.insertBefore(e,b)}});return this};atlas.fn.add=function(b){var a=[];this.each(function(){a.push(this)});atlas(b).each(function(){a.push(this)});return atlas(a)};atlas.getWindowScroll=function(){return{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}};atlas.scroll=function(c,d,b){var a=this[0]||document.body;if(!a){return this}c=typeof c!=="undefined"?c:null;d=typeof d!=="undefined"?d:null;if(c===null&&d===null){return(atlas.isBody(a)?atlas.getWindowScroll():{x:a.scrollLeft,y:a.scrollTop})[b]}if(atlas.isBody(a)){window.scrollTo(c,d)}else{c!==null&&(a.scrollLeft=c);d!==null&&(a.scrollTop=d)}return this};atlas.fn.scrollTop=function(a){return atlas.scroll.call(this,null,a,"y")};atlas.fn.scrollLeft=function(a){return atlas.scroll.call(this,a,null,"x")};atlas.isBody=atlas.fn.isBody=function(a){a=a||this[0]||undefined;return !!(a&&a.tagName&&(/^(?:body|html)$/i).test(a.tagName))};atlas.isWindow=atlas.fn.isWindow=function(a){a=a||this[0]||null;return !!(a!==null&&a==a.window)};atlas.isIframe=atlas.fn.isIframe=function(a){a=a||this[0]||undefined;return !!(a!==null&&a.tagName&&a.tagName.toLowerCase()==="iframe")};atlas.isDocument=atlas.fn.isDocument=function(a){a=a||this[0]||undefined;return !!(a&&a.nodeType&&a.nodeType===9)};atlas.fn.map=function(a){return this.updateStack(atlas.map(this,function(b,c){return a.call(b,c,b)}))};atlas.clone=function(d,c,a){var e,f,h,j,b=d.cloneNode(true),g=function(i,l){var k=i.getElementsByTagName?i.getElementsByTagName(l||"*"):i.querySelectorAll?i.querySelectorAll(l||"*"):[];return l===undefined||l&&atlas.nodeEquals(i,l)?atlas.extend([i],k):k};if(c){if(a){e=e||g(d);f=f||g(b);j=e.length||0;for(;h0&&p>0)){return false}h=(p/q>=u);i=(o/n>=v);if(e){return h}else{if(f){return i}else{return(h&&i)}}};atlas.fn.horizontallyContainedBy=function(a,b){return this.onScreen({x:b,axis:"x",selector:a})};atlas.fn.verticallyContainedBy=function(a,b){return this.onScreen({y:b,axis:"y",selector:a})};(function(){var b={boxFlex:true,columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,lineHeight:true,mozBoxFlex:true,opacity:true,order:true,orphans:true,webkitBoxFlex:true,widows:true,zIndex:true,zoom:true};function c(d){(d==="transform"&&(d=atlas.support.transform))||(/^transform-?[Oo]rigin$/.test(d)&&(d=atlas.support.transform+"Origin"))||(d=="float"&&(d=atlas.support.cssFloat?"cssFloat":"styleFloat"));return d?atlas.camelCase(d):null}atlas.extend({getStyle:atlas.support.computedStyle?function(e,f){var g=null,d=document.defaultView.getComputedStyle(e,"");d&&(g=d[f]);return e.style[f]||g}:!(!atlas.browser.msie&&document.documentElement.currentStyle)?function(d,e){return d.style[e]}:function(d,g){var h,i;if(g=="opacity"&&!atlas.support.opacity){h=100;try{h=d.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(e){try{h=d.filters("alpha").opacity}catch(f){}}return h/100}i=d.currentStyle?d.currentStyle[g]:null;return d.style[g]||i},xy:function(f,l,m){var d=atlas(f),k=d.css("position"),h=d.offset(),j="relative",e=k==j,g=[parseInt(d.css("left"),10),parseInt(d.css("top"),10)],i;if(k=="static"){d.css("position",j);k=j}i=f.style;isNaN(g[0])&&(g[0]=e?0:f.offsetLeft);isNaN(g[1])&&(g[1]=e?0:f.offsetTop);l!==null&&(i.left=l-h.left+g[0]+"px");m!==null&&(i.top=m-h.top+g[1]+"px")}});atlas.fn.extend({show:function(d){d=atlas.isString(d)?d:"";return this.each(function(e){e.style.display=d})},hide:function(){return this.each(function(d){d.style.display="none"})},toggle:function(){return this.each(function(d){d.style.display=(d.offsetWidth||d.offsetHeight)?"none":""})},xy:function(d,e){return this.each(function(f){atlas.xy(f,d,e)})},offset:function(l,m){if(l&&atlas.isObject(l)&&(atlas.isNumber(l.top)||atlas.isNumber(l.left))){return this.each(function(n){atlas.xy(n,l.left,l.top)})}else{if(atlas.isNumber(l)||atlas.isNumber(m)){return this.each(function(n){atlas.xy(n,l,m)})}}if(!this[0]){return{top:0,left:0,width:0,height:0}}var d=this[0],f=d.ownerDocument.documentElement,e=d.getBoundingClientRect(),k=atlas.getWindowScroll(),j=d.offsetWidth,g=d.offsetHeight,i=e.top+k.y-Math.max(0,f&&f.clientTop,document.body.clientTop),h=e.left+k.x-Math.max(0,f&&f.clientLeft,document.body.clientLeft);return{top:i,left:h,height:g,width:j}},css:function(e,h){var g,f=e;if(typeof h==="undefined"&&atlas.isString(e)){if(!this[0]){return null}h=this[0];if(h===document||h===window){g=h===document?atlas.dimDocument():atlas.dimViewport();return e==="width"?g.width:e==="height"?g.height:""}return e=c(e)?atlas.getStyle(h,e):null}if(atlas.isString(e)){f={};f[e]=h}if(!atlas.support.opacity&&"opacity" in f){f.filter=f.opacity!==null&&f.opacity!==""?"alpha(opacity="+(f.opacity*100)+")":"";f.zoom=e.zoom||1;delete f.opacity}function d(i,l,m){var k;for(k in f){if(f.hasOwnProperty(k)){m=f[k];(l=c(k))&&atlas.rx.number.test(m)&&!(l in b)&&(m+="px");try{i.style[l]=(m===null)?"":m}catch(j){atlas.logError("Could not set style property on element","Property: "+l+", Element: "+i+", Value: "+m)}}}}return this.each(d)},scrollHeight:function(){var d=this[0];return(d&&d.scrollHeight)||0},scrollWidth:function(){var d=this[0];return(d&&d.scrollWidth)||0}});function a(e,i,f){if(!e){return false}var d=atlas.getStyle,g=e[i==="height"?"offsetHeight":"offsetWidth"],h=atlas.toInt;if(i==="height"){g+=h(d(e,"marginTop")||0)+h(d(e,"marginBottom")||0)}else{g+=h(d(e,"marginLeft")||0)+h(d(e,"marginRight")||0)}return g}atlas.fn.offsetHeight=function(d){return !this.length?false:a(this[0],"height",d)};atlas.fn.offsetWidth=function(d){return !this.length?false:a(this[0],"width",d)};atlas.fn.getActualSize=function(){if(!this.length){return this}var d,f,e=this[0];if(!e){return false}d=atlas(e.cloneNode(true)).show().css("visibility","hidden").appendTo(document.body);f={width:d.offsetWidth(),height:d.offsetHeight()};d.remove();return f}})();(function(c){var b=c.isObject,a=c.isFunction,d=function(e){if(!(this instanceof d)){return new d(e)}if(b(e)){this.to=e.to||c.identity;this.from=e.from||c.identity}else{if(a(e)){this.to=this.from=e}else{this.to=this.from=c.identity}}return this};c.transform=d}(atlas));(function(i){var c=atlas.logger("atlas.view.state"),b=atlas.isFunction,d={state:"onState",stateSelect:"onStateSelect",stateUpdate:"onStateUpdate"},j=function(l){return new k(l)},k=function(m){var l=m.stores||[];this._composite=m.component||atlas.state.composite();this._stores=[];this._subscriptions=[];l.forEach(h.bind(this));this._composite.onState(e.bind(this))},h=function(l){g.call(this,l,d.stateSelect,f.bind(this,l));this._stores.push(l)},g=function(n,o,l){var m=n[o];if(!b(m)){c.logInfo("Component does not contain a channel for: "+o);return}this._subscriptions.push(m.call(n,l,n))},f=function(p,n,o){var m=this._stores,l=m.slice(0,m.indexOf(p));l.forEach(function(r){var q=r.setState;if(b(q)){q.call(r,o)}});this._composite.setState(o)},e=function(m,l){this._stores.forEach(function(o){var n=o.setState;if(b(n)){n.call(o,l)}})},a=function(){var m=this._stores,l=m.map(function(n){return b(n.get)?Promise.resolve(n.get()):n.getStateAsync()});return Promise.all(l)};k.prototype={_composite:null,_stores:null,unsubscribeEvents:function(){this._subscriptions.forEach(function(l){atlas.pubsub.unsubscribe(l)});this._subscriptions=null},destroy:function(){var l=this._composite;l.destroy.apply(l,arguments);this.unsubscribeEvents()},getAsync:function(){var l=this._composite;return a.call(this).then(function(m){return l._mergeState.apply(l,m.slice().reverse())})},set:function(m){var l=this._composite;l.set.apply(l,arguments)},addComponent:function(o,m,n){var l=this._composite;l.addComponent.apply(l,arguments)}};(i.view||(i.view={})).state=j})(atlas);atlas.fn.data=function(a,b){if(typeof a!=="undefined"){if(typeof b!=="undefined"){return this.each(function(){if(!this.atlasData){this.atlasData={}}this.atlasData[a]=b})}else{return this[0]&&this[0].atlasData?this[0].atlasData[a]:undefined}}else{return this[0]?this[0].atlasData||{}:undefined}};atlas.fn.dataRemove=function(a){return this.length?this.each(function(){if(typeof a!=="undefined"&&this.atlasData){this.atlasData[a]=undefined;delete this.atlasData[a]}else{this.atlasData={}}}):undefined};(function(a){var b={};b.isComparisonExp=function(c){return atlas.isObject(c)&&c.hasOwnProperty("field")&&c.hasOwnProperty("op")};b.isConditionalExp=function(c){return atlas.isObject(c)&&c.hasOwnProperty("filters")&&c.hasOwnProperty("conditionalOp")};b.reduce=function(e,c){var d,f=atlas.dataStore.filter,g=this;e=atlas.extend(true,{},e);if(f.isConditionalExp(e)){e.filters=e.filters.map(function(h){return f.reduce.call(g,h,c)})}else{if(f.isComparisonExp(e)){d=atlas.isFunction(c)?c:f.reduceComparer;e=d.call(this,e,c)}}return e};b.reduceComparer=function(e,c){var f=e.op,d;if(atlas.isArray(c)&&!c.filter(function(g){return g.toLowerCase()===f.toLowerCase()})[0]){return e}d=atlas.dataStore.filter.comparerReducers[f];return atlas.isFunction(d)?d.call(this,e):e};b.comparerReducers={between:function(c){var d=c.field,e=c.value;return atlas.dataStore.filter.merge({field:d,op:"greaterThanOrEqual",value:e[0]},{field:d,op:"lessThanOrEqual",value:e[1]})},"in":function(d){var e=d.field,f=atlas.isArray(d.value)?d.value:[d.value],c=f.map(function(g){return{field:e,op:"equal",value:g}});return atlas.dataStore.filter.merge(c,"OR")}};b.merge=function(){var c=Array.prototype.slice.call(arguments),e=atlas.isArray,i=atlas.dataStore.filter,f=i.isComparisonExp,g=i.isConditionalExp,k=atlas.isString(k=c[c.length-1])?k:"AND",d=c.reduce(function(l,m){return l.concat(e(m)?m:[m])},[]).filter(function(l){return g(l)||f(l)}),h=d.length,j;if(!h){j=null}else{if(h===1){j=d[0]}else{j={conditionalOp:k,filters:d}}}return j};(a.dataStore||(a.dataStore={})).filter=b})(atlas);(function(){var a={},b={paramName:"atlasData",_templateCompilePart:function(e,g){var d,f;if(g){return"'"+e.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'"}d=e.charAt(0);f=e.substring(1);if(d==="="){return"+("+f+")+"}else{if(d===":"){return"+e("+f+")+"}}return";"+e+";o+="},oTemplates:{rx:{argumentName:/^\w+/,encode:/\$\{([^}]*)\}/g,escapedCurly:/\\\}/g,curly:/__CURLY__/g,escapedSharp:/\\#/g,sharp:/__SHARP__/g,zeros:["","0","00","000","0000"],regions:/#region\s(.*?\w+)#/g}},useWithBlock:true,render:function(h,d){var f=0,g=d.length||0,e="";for(;f0;f-=m.groupSize[0]){d.push(e[0].substring(f,f-m.groupSize[0]))}e[0]=d.reverse().join(m[l.COMMA]);if(h>0){if(typeof e[1]!=="undefined"){n=e[1]}if(n.length0){n[o.substr(0,o.indexOf("-"))]=m}return n},{}))};f.parseNumber=function(o,m){var n=(m||f.culture().name).toLowerCase();j.culture(h()[n]);return j().unformat(o)};f.parseDate=function(o,n){var m;if(a(o)){m=f.date.parse(o,n)}else{m=new Date(o)}return m};f.pubsub.subscribe(e,function(n,m){j&&l(m);i&&k(m)})}(atlas,numbro,moment));(function(c,a,b){if(typeof module!="undefined"&&module.exports){module.exports=b()}else{a[c]=b()}})("registry",atlas,function(e,d){var c="data-atlas-id",b=function(){return new Date().getTime()},a="atlas",f={uuid:0,entries:{},get:function(h){var g=this.entries,i;for(i in g){if(g.hasOwnProperty(i)){if(Number(i)===h||g[i].target===h||g[i].guid===h||g[i]===h){return g[i]}}}return undefined},set:function(l,k,o){var o=o||{},k=k||{},n=++this.uuid,g=atlas(l),m=o.module||null,p=o.plugin||null,j=o.component||null,q=g.target||k.target||k.guid||null,h,i;if(q===null){atlas.logError("No target set for registry item",o);return null}if((m||p||j)===null){atlas.logError("No Atlas Type has been set (module, plugin or component)",o);return null}k.id=n;k.created=b();if(p){h="plugin";i=p}if(m){h="module";i=m}if(j){h="component";i=j}k._breed=h;k._breedName=i;k._subscription=a+"."+q+"."+k._breed+"."+k._breedName;g.attr(c,n);return this.entries[n]=k},purge:function(){atlas("["+c+"]").attrRemove(c);return this.entries=undefined},destroy:function(h){var g=this.get(h);if(g){h=g.id;atlas.pubsub.unsubscribe(g._subscribeToken);if(g.element){atlas(g.element).first().attrRemove(c)}atlas.deleteProperty(this.entries,h);return true}return false},update:function(i,g){var h=this.get(i);if(h){h.updated=b();return atlas.extend(h,g)}return false}};return f});(function(c,a,b){if(typeof module!="undefined"&&module.exports){module.exports=b()}else{a[c]=b()}})("storage",atlas,function(b,a){var c=function(){var d=atlas,f,g,e,t=function(){var N="__ssc-test__",P=N,O=window.sessionStorage;if(typeof g==="boolean"){return g}try{O.setItem(N,P);O.removeItem(N);g=true}catch(M){g=false}return g}(),s=function(){var O="__lsc-test__",P=O,N=window.localStorage;if(typeof f==="boolean"){return f}try{N.setItem(O,P);N.removeItem(O);f=true}catch(M){f=false}return f}(),z=function(N){var N=N.toLowerCase()||"ls",M=undefined;if(N=="ls"){if(f){M=window.localStorage}}else{if(g){M=window.sessionStorage}}return A=M},A=z("ss"),h=true,x=".",w="",i="atlas"+x,j=x+"expiry",m=10,k=60*1000,l=Math.floor(8640000000000000/k),r=function(){if(typeof e=="boolean"){return e}return e=!!(window.JSON!=null)}(),n=function(M){return M+j},o=function(M){return i+w+M},q=function(){return new Date().getTime()},p=function(M){return A.getItem(o(M))},y=function(M,N){v(M);A.setItem(o(M),N)},v=function(M){A.removeItem(o(M))},u=function(N,M){if(!h){return}d.logInfo("atlas.storage: "+N);if(M){d.logError("atlas.storage",M.message)}},J=function(P){if(!P||!d.isObject(P)||!P.key||typeof P.val==="undefined"){u(".set() must be invoked with an object of data!");return false}var S=P.key,aa=P.val,Z=P.time,N=z(P.storageType)||N,M=K(P.ns)||M;if(typeof aa!=="string"){if(!e){return}try{aa=JSON.stringify(aa)}catch(Q){return}}try{y(S,aa)}catch(Q){if(Q.name==="QUOTA_EXCEEDED_ERR"||Q.name==="NS_ERROR_DOM_QUOTA_REACHED"||Q.name==="QuotaExceededError"){var O=[],R=0,T=N.length||0,V=(aa||"").length,Y,U,X,W;for(;R0){Y=O.pop();u(".set() - Cache is full. Removing key `"+S+"` to free up space");v(Y.key);v(n(Y.key));V-=Y.size}try{y(S,aa)}catch(Q){u(".set() - Could not add item with the key `"+S+"`, not enough space?",Q);return}}else{u(".set() - Could not add item with the key `"+S+"`, for an unknown reason!",Q);return}}if(Z){y(n(S),(new Date().getTime()+Z).toString(m))}else{v(n(S))}return this},D=function(N){if(!f||!N){return}var Q=n(N),P=p(Q),O,R;if(P){O=parseInt(P,m);if(q()>=O){v(N);v(Q);return null}}R=p(N);if(!R||!e){return R}try{return JSON.parse(R)}catch(M){return R}},G=function(M){return !!(D(M))},I=function(M){if((!f||!g)||!M){return}v(M);v(n(M));return this},L=function(){return{localStorage:f,sessionStorage:g}},H=function(){if(!f||!g){return}var M,N=i+w;for(M in A){if(A.hasOwnProperty(M)){if(M&&(atlas.startsWith(M,N))&&(!atlas.endsWith(M,j))){I(M.split(N)[1])}}}return this},E=function(){return w},K=function(M){if(!M){return}w=M+x;return this},B=function(){w="";return this},C=function(M){h=!!M;return this},F=function(){return A};return{setStorageType:z,set:J,get:D,has:G,remove:I,supported:L,purge:H,getNS:E,setNS:K,clearNS:B,enableWarnings:C}};return c()});(function(c,a,b){if(typeof module!="undefined"&&module.exports){module.exports=b()}else{a[c]=b()}})("state",atlas,function(){var b=atlas.storage,e="ss",c={},a={has:function(h){var i=atlas.registry.get(h),g=(i&&i._breedName)||"";return !!b.get((g&&g+".")+h)},create:function(h){var i=h&&h.target,g=c[i];if(!i){atlas.logError("Cannot instantiate a State Manager without a target");return}if(!b.supported().sessionStorage){atlas.logError("Session storage not enabled. Cannot create State Manager");return}if(g){h.data&&g.set(h.data);return g}return c[i]=new d(h)},cleanAll:function(){if(atlas.isEmptyObject(c)){return}var g;for(g in c){c[g].clean()}}},f=function(h,k){if(!atlas.isArray(k)){k=[k]}var g,m={},j=0,l=k.length;for(;j>>0,g=[],f=atlas.rx.needsContext.test(h)||atlas.isString(h)?atlas(h):0,b=atlas.selectorEngine.matchesSelector;for(;d-1:b(c,h)){c=g.push(c);break}}}return this.updateStack(g.length>1?atlas.arrayUnique(g):g)};atlas.fn.add=function(b){return this.updateStack(atlas.extend(this.get(),atlas(b).get()))};atlas.each({parent:function(b){return b&&b.parentNode&&b.parentNode.nodeType!==11?b.parentNode:null},parents:function(b){return atlas.traverse(b,"parentNode")},parentsUntil:function(b,c,d){return atlas.traverse(b,"parentNode",d)},next:function(b){return a(b,"nextSibling")},nextAll:function(b){return atlas.traverse(b,"nextSibling")},nextUntil:function(b,c,d){return atlas.traverse(b,"nextSibling",d)},prev:function(b){return a(b,"previousSibling")},prevAll:function(b){return atlas.traverse(b,"previousSibling")},prevUntil:function(b,c,d){return atlas.traverse(b,"previousSibling",d)},siblings:function(b){return atlas.sibling((b.parentNode||{}).firstChild,b)},children:function(b){return atlas.sibling(b.firstChild)},contents:function(b){return b.contentDocument||atlas.merge([],b.childNodes)}},function(b,c){atlas.fn[c]=function(f,e){var d=atlas.map(this,b,f);if(c.slice(-5)!=="Until"){e=f}if(e&&atlas.isString(e)){d=atlas.filter(e,d)}if(this.length>1){d=atlas.arrayUnique(d)}if(atlas.rx.parentsprev.test(c)){d.reverse()}return this.updateStack(d)}})})();(function(){atlas.ui=atlas.ui||{};atlas.ui.processors={};atlas.ui.processors.createWebWorkerAsync=function(e){var d=atlas.browser;if(!atlas.isString(e)){return atlas.logError("No Url found for web worker",e)}if(d.msie===true&&d.majorVersion<11){return Promise.resolve(new Worker(e))}return atlas.solicitAsync({url:e,ignoreDefaultHeaders:true}).promise.then(function(g){var f={data:g.responseText,contentType:{type:"application/javascript"}};return atlas.blobs().worker(f)},function(f){atlas.logError("Failed to load worker file. ",f);return Promise.reject(f)})};function c(e,f){var d;f=f||"disable";d=f.toLowerCase()==="disable";return atlas(e)[d?"addClass":"removeClass"]("atlas--ui-disabled").attr("disabled",d)}atlas.fn.disableElement=function(){return this.each(function(d){c(d,"disable")})};atlas.fn.enableElement=function(){return this.each(function(d){c(d,"enable")})};atlas.makeGUID=function(g){var e=Date.now(),h="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="",j="",f;if(g){if(atlas.isString(g)){i=g}else{if(atlas.isObject(g)){h=g.pattern||h;i=g.prefix||i;j=g.suffix||j}}}f=h.replace(/[xy]/g,function(d){var k=(e+Math.random()*16)%16|0;e=Math.floor(e/16);return(d=="x"?k:(k&3|8)).toString(16)});return i+f+j};atlas.fn.api=function(e){if(!this.length){return atlas.logError("atlas.api requires a valid DOM selector matching at least one element")}var d=this.first(),f=atlas.isObject(e)&&e.kind?e.kind:"true";if(e){d.data("api",e);d.tagComponent(f);return this}else{return this.first().data("api")}};atlas.fn.removeApi=function(){if(!this.length){return atlas.logError("atlas.removeApi requires a valid DOM selector matching at least one element")}var d=this.first();d.dataRemove("api");d.removeComponent();return this};atlas.fn.tagComponent=function(d){return this.each(function(e){atlas(e).attr("atlas-component",d||"true")})};atlas.fn.removeComponent=function(){return this.each(function(d){atlas(d).attrRemove("atlas-component")})};atlas.fn.tagGuid=function(d){d&&this.first().attr("atlas-guid",d);return this};atlas.fn.removeGuid=function(){this.first().attrRemove("atlas-guid");return this};atlas.fn.isComponent=function(){return !!(this&&this[0]&&this.attr("atlas-component"))};atlas.fn.animate=function(h,d){var j=this,f=1000,i="animationend",g=atlas.browser,e;d=(d!==false);if(d){e=function(){j.off(i,e).removeClass(h)};if(g.msie&&g.majorVersion<10){setTimeout(e,f)}else{j.on(i,e)}}j.addClass(h)};atlas.showMessage=function(n){n=n||{};var h=document,o="atlas--ui-notification",m={wrap:o+"-wrap",notification:o,close:o+"-close",message:o+"-message",alert:o+"-alert",messageOn:o+"-message-on"},p=atlas('
'),l=null,d=["info","preview","warning","error","danger","success"],g=n.cssClass||"",k=300000,j={},i;j.type=(n.type&&atlas.arrayContains(n.type,d)!==-1)?n.type:"info";j.target=atlas.isElement(n.target)||atlas.isString(n.target)?n.target:h.getElementsByTagName("body")[0];j.onBeforeClose=atlas.isFunction(n.onBeforeClose)?n.onBeforeClose:null;j.onClose=atlas.isFunction(n.onClose)?n.onClose:null;j.message=atlas.isString(n.message)?n.message:"BlackLine Systems Notification";j.icon=atlas.isString(n.icon)?n.icon:"";j.duration=atlas.isNumber(n.duration)?n.duration:"";j.element=p[0].cloneNode(true);i=j.element.children[0];j.element.id=o+"-message-"+Math.random();j.messageInfo=i.children[0];j.close=i.children[1];i.className=(i.className||m.notification)+" "+m.alert+"-"+j.type+" "+m.messageOn+" "+g;i.style.cssText=n.cssText||"";j.messageInfo.innerHTML=j.message;j.checkEvent=function e(r){var q=r.target||r.srcElement;if(q!=j.close){return false}atlas.isFunction(j.onBeforeClose)&&j.onBeforeClose(j);j.closeMessageView()};j.closeMessageView=function f(q){atlas(j.element).removeChildren().remove();atlas.isFunction(j.onClose)&&j.onClose(j);if(l){clearTimeout(l);l=null}};atlas(j.element).on("click",j.checkEvent,null,true);atlas(j.target).prepend(j.element);if(j.duration&&!isNaN(j.duration)&&j.duration>0){j.duration=(j.duration>k)?k:j.duration;l=setTimeout(function(){atlas.isFunction(j.onBeforeClose)&&j.onBeforeClose(j);j.closeMessageView()},j.duration)}return j};atlas.isolateScroll=function(f){var d=f||window.event,g=d.deltaY*-30||d.wheelDeltaY/4||(typeof d.wheelDeltaY==="undefined"&&d.wheelDelta/4)||d.detail*-10||0;d.currentTarget.scrollTop-=g;d.stop();d.preventDefault();d.cancelBubble=true;d.returnValue=false;return false};atlas.setBrowserClasses=function(){var g=atlas.browser,i=g.majorVersion,f=g.webkitVersion,d=atlas("html"),e,h={msie:function(){return"ie ie"+i},webkit:function(){return(f)?"webkit webkit"+f:"webkit"},chrome:function(){return"chrome chrome"+i},safari:function(){return"safari safari"+i},mozilla:function(){return"mozilla mozilla"+i},opera:function(){return"opera opera"+i},mobile:function(){return"mobile"}};d.removeClass("no-js");for(e in h){if(h.hasOwnProperty(e)&&g.hasOwnProperty(e)&&g[e]===true){d.addClass(h[e]())}}};function a(){var f=atlas.browser,e=f.majorVersion,d=function(g){g.stop();return false};if(f.msie===true&&e<11){atlas(document).on("click",".atlas--ui-disabled",d,null,true,true)}}function b(){var d=".atlas--ui-prevent-scroll-outer";(atlas.browser.msie===true)&&atlas(document).on("mousewheel mousemultiwheel DOMMouseScroll",d,atlas.isolateScroll,null,false,true)}atlas.ready(function(){atlas.setBrowserClasses();a();b()})})();(function(c,a,b){if(typeof module!="undefined"&&module.exports){module.exports=b()}else{a[c]=b()}})("deeds",atlas,function(e,b){var a=false,d=["onCollapse","onCreate","onDataLoad","onDataEnd","onDataStart","onDelete","onExpand","onFilter","onPurgeFilter","onInit","onDestroy","onLoad","onPoll","onReady","onScroll","onSort","onPurgeSort","onToggle","onUnload","onUpdate","onError","onFieldFormat","onPurgeFieldFormat","onRender","onFieldIndex","onXhr","onGridReady","onPage","onPageNext","onPagePrev","onPageFirst","onPageLast","onGridReady","onChange","onOpen","onBeforeOpen","onClose","onBeforeClose","onSelectRangeStart","onSelectRangeEnd","onRangeClose","onRangeOpen","onApply","onSelection"],f=function(){},c=(function(){var h={};atlas.each(d,function(i){h[i]=(function(j){return function(k,n){var l=atlas.isFunction(k)?k:f,m=atlas.registry.get(n)._subscription;if(!n||!m){return null}return atlas.pubsub.subscribe(m+"."+j,l)}})(i)});return h}()),g=atlas.extend({},c,{events:d});g.emit=function(i,h){return atlas.pubsub.publish(i,h,a)};return g});if(atlas.browser.majorVersion<11&&atlas.browser.msie===true){atlas.logInfo("IE Worker Polyfill Running.");window.Worker=function(scriptFile){var self=this,__timer=null,__text=null,onmessage,postMessage,__iterate,__onIterate;self.onerror=null;self.onmessage=null;postMessage=function(text){if(typeof self.onmessage=="function"){return self.onmessage({data:text})}return false};self.postMessage=function(text){__text=text;__iterate(__text);return true};__iterate=function(){__timer=setTimeout((function(txt){return function(){__onIterate(txt)}}(__text)),1);return true};__onIterate=function(txt){try{if(typeof onmessage=="function"){onmessage({data:txt})}return true}catch(ex){if(typeof self.onerror=="function"){return self.onerror(ex)}}return false};self.terminate=function(){clearTimeout(__timer);return true}; /* * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE * @version 3.2.1 */ /* THIS IS HERE ONLY FOR IE11... EEEEEVERYONE ELSE IS FINE INSIDE OF THE POLYFILL FILE */ (function(){function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function e(t){return"function"==typeof t}function n(t){G=t}function r(t){Q=t}function o(){return function(){process.nextTick(a)}}function i(){return function(){B(a)}}function s(){var t=0,e=new X(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){t.port2.postMessage(0)}}function c(){return function(){setTimeout(a,1)}}function a(){for(var t=0;J>t;t+=2){var e=tt[t],n=tt[t+1];e(n),tt[t]=void 0,tt[t+1]=void 0}J=0}function f(){try{var t=require,e=t("vertx");return B=e.runOnLoop||e.runOnContext,i()}catch(n){return c()}}function l(t,e){var n=this,r=new this.constructor(p);void 0===r[rt]&&k(r);var o=n._state;if(o){var i=arguments[o-1];Q(function(){x(o,r,i,n._result)})}else{E(n,r,t,e)}return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e){return t}var n=new e(p);return g(n,t),n}function p(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function v(t){try{return t.then}catch(e){return ut.error=e,ut}}function y(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function m(t,e,n){Q(function(t){var r=!1,o=y(n,e,function(n){r||(r=!0,e!==n?g(t,n):S(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function b(t,e){e._state===it?S(t,e._result):e._state===st?j(t,e._result):E(e,void 0,function(e){g(t,e)},function(e){j(t,e)})}function w(t,n,r){n.constructor===t.constructor&&r===et&&constructor.resolve===nt?b(t,n):r===ut?j(t,ut.error):void 0===r?S(t,n):e(r)?m(t,n,r):S(t,n)}function g(e,n){e===n?j(e,_()):t(n)?w(e,n,v(n)):S(e,n)}function A(t){t._onerror&&t._onerror(t._result),T(t)}function S(t,e){t._state===ot&&(t._result=e,t._state=it,0!==t._subscribers.length&&Q(T,t))}function j(t,e){t._state===ot&&(t._state=st,t._result=e,Q(A,t))}function E(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+it]=n,o[i+st]=r,0===i&&t._state&&Q(T,t)}function T(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,s=0;si;i++){e.resolve(t[i]).then(n,r)}}:function(t,e){e(new TypeError("You must pass an array to race."))})}function F(t){var e=this,n=new e(p);return j(n,t),n}function D(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function K(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function L(t){this[rt]=O(),this._result=this._state=void 0,this._subscribers=[],p!==t&&("function"!=typeof t&&D(),this instanceof L?C(this,t):K())}function N(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[rt]||k(this.promise),Array.isArray(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&S(this.promise,this._result))):j(this.promise,U())}function U(){return new Error("Array Methods must be provided an Array")}function W(){var t;if("undefined"!=typeof global){t=global}else{if("undefined"!=typeof self){t=self}else{try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}}}var n=t.Promise;(!n||"[object Promise]"!==Object.prototype.toString.call(n.resolve())||n.cast)&&(t.Promise=pt)}var z;z=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var B,G,H,I=z,J=0,Q=function(t,e){tt[J]=t,tt[J+1]=e,J+=2,2===J&&(G?G(a):H())},R="undefined"!=typeof window?window:void 0,V=R||{},X=V.MutationObserver||V.WebKitMutationObserver,Z="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),$="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,tt=new Array(1000);H=Z?o():X?s():$?u():void 0===R&&"function"==typeof require?f():c();var et=l,nt=h,rt=Math.random().toString(36).substring(16),ot=void 0,it=1,st=2,ut=new M,ct=new M,at=0,ft=Y,lt=q,ht=F,pt=L;L.all=ft,L.race=lt,L.resolve=nt,L.reject=ht,L._setScheduler=n,L._setAsap=r,L._asap=Q,L.prototype={constructor:L,then:et,"catch":function(t){return this.then(null,t)}};var _t=N;N.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ot&&t>n;n++){this._eachEntry(e[n],n)}},N.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===nt){var o=v(t);if(o===et&&t._state!==ot){this._settledAt(t._state,e,t._result)}else{if("function"!=typeof o){this._remaining--,this._result[e]=t}else{if(n===pt){var i=new n(p);w(i,t,o),this._willSettleAt(i,e)}else{this._willSettleAt(new n(function(e){e(t)}),e)}}}}else{this._willSettleAt(r(t),e)}},N.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ot&&(this._remaining--,t===st?j(r,n):this._result[e]=n),0===this._remaining&&S(r,this._result)},N.prototype._willSettleAt=function(t,e){var n=this;E(t,void 0,function(t){n._settledAt(it,e,t)},function(t){n._settledAt(st,e,t)})};var dt=W,vt={Promise:pt,polyfill:dt};"function"==typeof define&&define.amd?define(function(){return vt}):"undefined"!=typeof module&&module.exports?module.exports=vt:"undefined"!=typeof this&&(this.ES6Promise=vt),dt()}).call(this);(function(context){var atlasWorker=(function(){var _SRENDERING_POLICY_PAGINATE="paginate",_SRENDERING_POLICY_INFINITE="infinite",_DEFAULT_SPINNER_OPTIONS={threshold:250,min:250,max:60*1000},_OI18N={noResultsFound:"No Results Found",pageLabel:"Page"},_parse=function(){return atlasWorker.parse.apply(this,arguments)},_fnRemovePrivates=function(oGrid){var oWKey,oWGrid={},_ISFUNCTION=atlas.isFunction,_ISPROMISE=atlas.isPromise;for(oWKey in oGrid){if(oGrid.hasOwnProperty(oWKey)&&(oWKey.indexOf("_")===-1)&&!(_ISFUNCTION(oGrid[oWKey])||_ISPROMISE(oGrid[oWKey]))){oWGrid[oWKey]=oGrid[oWKey]}}return oWGrid},_performance=(function(){if(typeof performance==="undefined"){performance={};performance.now=function(){return new Date().getTime()}}return performance})(),_grids={},_createGrid=function(options){var oGrid;options=options||{};if(!options.target){return{error:"no name provided"}}oGrid=_grids[options.target];if(typeof oGrid!=="undefined"){return{error:"grid name already exists",grid:oGrid}}oGrid=_grids[options.target]=options;if(typeof options.data==="undefined"&&typeof options.url==="undefined"){return{error:"data error",grid:oGrid}}return oGrid},_getGrid=function(grid){if(!grid||typeof grid!=="string"||typeof _grids[grid]==="undefined"){return{error:"grid name does not exist"}}return _grids[grid]},_fnValidateOptions=function(options,aActions){var aInvalidFields,oFieldErrors,oValidationResult=atlas.validateOptions(options,{filterIt:{types:"object"},sortIt:{types:"object"},fieldFormat:{types:"object"},title:{types:"string"},spinner:{types:"object",fn:function(sKey){_fnValidateSpinnerOptions(options[sKey],aActions);return true}},setCulture:{types:"object"},refresh:{types:"boolean"},fieldMap:{types:"object"},renderingPolicy:{types:"string",values:[_SRENDERING_POLICY_PAGINATE,_SRENDERING_POLICY_INFINITE]},useFilterBar:{types:"boolean"},useConditionalFiltering:{types:"boolean"}});if(!oValidationResult.valid){aInvalidFields=oValidationResult.invalidFields;oFieldErrors={filterIt:"Filter configuration is malformed - object expected",sortIt:"Sort configuration is malformed - object expected",fieldFormat:"Field format configuration is malformed - object expected",getPage:"Get last page is not available for grids with hidden/unknown total count of elements.",title:"Grid title configuration is malformed - string expected",pagination:"Pagination options are malformed - object expected",spinner:"Spinner options are malformed - object expected",setCulture:"Culture sent is malformed - object expected",refresh:"Refresh setting is malformed - boolean expected",fieldMap:"Field mapping configuration is malformed - object expected",renderingPolicy:"Rendering policy configuration is malformed - string expected",useFilterBar:"Filter bar usage flag is malformed - boolean expected",useConditionalFiltering:"Conditional filtering usage flag is malformed - boolean expected"};aInvalidFields.forEach(function(sField){_reportError(oFieldErrors[sField],aActions)});atlas.deleteProperty(options,aInvalidFields)}options.spinner=atlas.extend({},_DEFAULT_SPINNER_OPTIONS,options.spinner)},_reportError=function(sMessage,aActions){aActions.push({action:"onError",error:sMessage})},_buildOptionValidator=function(blueprint,category){return function(oOptions,aActions){var oValidOptionConfig,aBlueprintFields,oValidationConfig,oValidationResult;if(!atlas.isObject(oOptions)){return null}oValidOptionConfig={fn:function(sKey){var bValid=blueprint.hasOwnProperty(sKey);!bValid&&_reportError('"'+sKey+'" '+category+" option is not valid and will be removed.",aActions);return bValid}};aBlueprintFields=Object.keys(oOptions);oValidationConfig={};aBlueprintFields.forEach(function(sKey){oValidationConfig[sKey]=oValidOptionConfig});oValidationResult=atlas.validateOptions(oOptions,{});!oValidationResult.valid&&atlas.deleteProperty(oOptions,oValidationResult.invalidFields);return oOptions}},_fnValidateSpinnerOptions=_buildOptionValidator(_DEFAULT_SPINNER_OPTIONS,"spinner"),_fnUpdateGridSettings=function(oGrid,options){var aOptionsToOverwrite;if(oGrid!==options){aOptionsToOverwrite=["data","columnInputValues","vault"];aOptionsToOverwrite.forEach(function(key){if(options.hasOwnProperty(key)){oGrid[key]=null}});atlas.extend(true,oGrid,options)}},_addDeprecatedDataEvents=function(options,aActions){var sPurgeAction=options.purge,oAction,sUpperPurgeActionName;if(atlas.isString(sPurgeAction)){sUpperPurgeActionName=atlas.caseUpperFirst(sPurgeAction);oAction={action:"onPurge"+sUpperPurgeActionName};oAction["purge"+sUpperPurgeActionName]=true;aActions.push(oAction)}},_getDataProviderAsync=function(oGrid,aActions){var pDataProvider=oGrid.dataProviderPromise,dataMap=oGrid.dataMap,oSolicitFromOpts=oGrid._solicitData,oSolicitOpts=atlas.isObject(oSolicitFromOpts)&&oSolicitFromOpts,oSolicitStrategy;if(pDataProvider){return pDataProvider}oSolicitStrategy=atlas.isFunction(oSolicitFromOpts)?oSolicitFromOpts:atlas.strategy.solicit.kendo;oGrid.dataProviderPromise=pDataProvider=_dataProviderFactoryAsync({data:oGrid.data,url:oGrid.url,origin:oGrid.origin,dataMap:atlas.isObject(dataMap)?dataMap:dataMap&&_parse(dataMap),solicitOptions:oSolicitOpts,solicitStrategy:function(sUrl,oDataRequestModel){return oSolicitStrategy.call(oGrid,sUrl,oDataRequestModel)},bypassLocalProcessing:oGrid.bypassLocalProcessing},aActions);return pDataProvider},_dataProviderFactoryAsync=function(options,aActions){var dataProvider,aData=options.data,sUrl=options.url,sOrigin=options.origin,oDataMap=options.dataMap,oSolicitOpts=options.solicitOptions,fnSolicitStrategy=options.solicitStrategy,bBypassLocalProcessing=options.bypassLocalProcessing;if(dataProvider){return Promise.resolve(dataProvider)}if(aData){return Promise.resolve(atlasWorker.dataProviderArray(aData))}dataProvider=atlasWorker.dataProviderSolicit({url:sUrl,origin:sOrigin,dataMap:oDataMap,solicitStrategy:fnSolicitStrategy,solicitOptions:oSolicitOpts});if(bBypassLocalProcessing){return Promise.resolve(dataProvider)}return dataProvider.getDataAsync({},aActions).then(function(oResult){return atlasWorker.dataProviderArray(oResult.data)})["catch"](function(error){aActions.push({action:"onError",error:"Could not retrieve data: "+error})})},_initGrid=function(oWorkerData,aActions){var oGrid;if((typeof atlas!=="undefined")&&atlas.browser&&atlas.browser.msie===true&&atlas.browser.version<10){if(!oWorkerData._solicitData){oWorkerData._solicitData=oWorkerData.solicitData}}else{self.atlas=_parse(oWorkerData.ns)||{};self.BLSbundles2=_parse(oWorkerData.BLSbundles2)||{};self.BLSenvironment=_parse(oWorkerData.BLSenvironment)||{};atlas.performance=_performance;atlas.deleteProperty(oWorkerData,["ns","BLSbundles2","BLSenvironment"]);if(oWorkerData.solicitData){oWorkerData._solicitData=_parse(oWorkerData.solicitData)}atlas.extend(true,_OI18N,atlas.i18n&&atlas.i18n.grid)}atlas.deleteProperty(oWorkerData,["solicitData"]);oGrid=_createGrid(oWorkerData);if(!oGrid.error){aActions.push({action:"onInit",gridInited:true})}oGrid.fieldsMeta=(((((oGrid.meta||{}).gridConfiguration||{}).dataSource||{}).schema||{}).model||{}).fields||{};oGrid.fieldMap=oGrid.fieldMap||{};oGrid.fieldFormat=oGrid.fieldFormat||{};return oGrid},_destroyGrid=function(oGrid){var oWGrid={},bGridDestroyed=false,sTarget=oGrid.target;if(_getGrid(sTarget)){bGridDestroyed=true;delete _grids[sTarget]}if(!bGridDestroyed){return _createErrorResponse({error:"problem removing grid from worker",grid:oGrid})}oWGrid.destroyed=true;oWGrid.target=sTarget;oWGrid.id=oGrid.id;oWGrid.aAction=[];oWGrid.aAction.push({action:"onDestroy",gridDestroyed:oWGrid.target,gridId:oWGrid.id});return{oGrid:oWGrid}},_createErrorResponse=function(oError){var oWGrid=_fnRemovePrivates(oError.grid);if(oError.grid&&oError.grid.aAction){oError.grid.aAction.push({action:"onError",error:oError.error})}return{oGrid:oWGrid}},_updateGrid=function(oWorkerData,oGrid){var aActions=[];if(oWorkerData._init===true){oGrid=_initGrid(oWorkerData,aActions)}_fnValidateOptions(oWorkerData,aActions);if(oWorkerData.data||oWorkerData.refresh){delete oGrid.dataProviderPromise}_fnUpdateGridSettings(oGrid,oWorkerData);_addDeprecatedDataEvents(oWorkerData,aActions);oGrid._init=false;return{grid:oGrid,actions:aActions}},_getGridDataAsync=function(dataRequestModel,oGrid){var aActions=[];return _getDataProviderAsync(oGrid,aActions).then(function(dataProvider){return dataProvider.getDataAsync(dataRequestModel,aActions,oGrid.fieldMap,oGrid.fieldsMeta).then(function(oResult){oResult.aAction=aActions;return oResult})})};return{destroyGrid:_destroyGrid,getGrid:_getGrid,updateGrid:_updateGrid,getGridDataAsync:_getGridDataAsync,removePrivates:_fnRemovePrivates}})(),OMESSAGE_TYPE={UPDATE_GRID:"UPDATE_GRID",DESTROY_GRID:"DESTROY_GRID",KILL_WORKER:"KILL_WORKER",GET_DATA:"GET_DATA",SET_CULTURE:"SET_CULTURE"};context.atlasWorker=atlasWorker;context.onmessage=function(ev){var oWorkerData=ev.data,sMessageType=oWorkerData.type,sTarget=oWorkerData.target,oResponseMessage,oGrid,oResult,oWGrid;if(sTarget){oGrid=atlasWorker.getGrid(sTarget)}if(!sMessageType){if(ev.data.closeWorker){sMessageType=OMESSAGE_TYPE.KILL_WORKER}else{if(oWorkerData.destroy===true){sMessageType=OMESSAGE_TYPE.DESTROY_GRID}else{if(oWorkerData.getData){sMessageType=OMESSAGE_TYPE.GET_DATA}else{if(oWorkerData.setCulture){sMessageType=OMESSAGE_TYPE.SET_CULTURE}else{sMessageType=OMESSAGE_TYPE.UPDATE_GRID}}}}}if(oGrid.error&&sMessageType!==OMESSAGE_TYPE.UPDATE_GRID){return}switch(sMessageType){case OMESSAGE_TYPE.KILL_WORKER:return self.close&&self.close();case OMESSAGE_TYPE.DESTROY_GRID:oResponseMessage=atlasWorker.destroyGrid(oGrid);oResponseMessage.requestId=oWorkerData.requestId;oResponseMessage.rec=oWorkerData.startTime;return postMessage(oResponseMessage);case OMESSAGE_TYPE.UPDATE_GRID:oResult=atlasWorker.updateGrid(oWorkerData,oGrid);oWGrid=atlasWorker.removePrivates(oResult.grid);oWGrid.aAction=oResult.actions;postMessage({type:sMessageType,oGrid:oWGrid,rec:oGrid.startTime,requestId:oWorkerData.requestId});break;case OMESSAGE_TYPE.GET_DATA:atlasWorker.getGridDataAsync(oWorkerData.getData,oGrid).then(function(oResult){postMessage({type:sMessageType,result:oResult,requestId:oWorkerData.requestId,oGrid:{target:oGrid.target,id:oGrid.id,aAction:oResult.aAction}})});break;case OMESSAGE_TYPE.SET_CULTURE:(typeof atlas!=="undefined")&&(atlas.cultures.current=oWorkerData.setCulture);break;default:break}};atlasWorker.parse=function(str,date2obj){var iso8061=date2obj?/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/:false,strTrimmed=str.replace(/(^\s*|\s*$)/g,""),strPrefix="";return JSON.parse(strTrimmed,function(key,value){if(typeof value!="string"){return value}if(value.length<8){return value}if(iso8061&&value.match(iso8061)){return new Date(value)}strPrefix=value.substring(0,8);if(strPrefix==="function"){return value.substr(9).indexOf("native code")>-1?undefined:eval("("+value+")")}if(strPrefix==="_PxEgEr_"){return eval(value.slice(8))}return value})};atlasWorker.dataProviderSolicit=(function(){var _fnRequestDataFromUrlAsync=function(sUrl,oDataRequestModel,aActions){var self=this,_handlerXhrData=function(result){var oXhrResult=_fnSetDataFromXhr(result);aActions.push({action:"onXhr",value:oMergedSolicit,solicit:oXHR.info,time:oXHR.nEnd-oXHR.nStart});if(oXhrResult.error){aActions.push({action:"onError",value:oXhrResult.error,time:oXHR.nEnd-oXHR.nStart});aActions.push({action:"onError.xhr"+oXhrResult.action||"",value:oXhrResult.error,time:oXHR.nEnd-oXHR.nStart});return{data:[]}}return atlas.extend({data:oXhrResult.success,actions:aActions},_fnSetResponseData.call(self,oXhrResult.success))},oRequestDefaults={header:{"Content-Type":"application/json"},method:"GET"},sFullyQualifiedUrl=_sanitizeUrl.call(this,sUrl),oSolicitStrategyResults=this._options.solicitStrategy.call(this,sFullyQualifiedUrl,oDataRequestModel),oMergedSolicit=atlas.extend(true,{},oRequestDefaults,oSolicitStrategyResults,this._options.solicitOptions),oSolicit,oXHR;oMergedSolicit.url=oSolicitStrategyResults.url;oSolicit=atlas.solicitAsync(oMergedSolicit);oXHR=oSolicit.xhr||{};return oSolicit.promise.then(_handlerXhrData)["catch"](_handlerXhrData)},_fnSetResponseData=function(response){var oMap=this._options.dataMap,result={_response:response,data:response.rows||response,totalCount:response.totalCount},data,_fnCheckKeyChain;if(!oMap||(!oMap.fn&&!oMap.dataKey)){return result}_fnCheckKeyChain=function(key,data){var keys,i,len;if(key.indexOf(".")===-1){return data[key]}keys=key.split(".");i=0;len=keys.length;for(;ib?1:ab?-1:0}return 0},_fnSortMultiple=function(props){return function(obj1,obj2){var iProp=0,result=0,numberOfProperties=props.length||0;while(result===0&&iProp0){Array.prototype.push.apply(aActions,oResult.errors);return aData}aActions.push({action:"onFilter",value:oFilter,data:oResult.data,time:oResult.nEnd-oResult.nStart});return oResult.data},_sortIt=function(aData,oDataRequestModel,oFieldMaps,oGridFieldsMeta,aActions){var aSort=oDataRequestModel.sort,oSort,oResult;if(!atlas.isArray(aSort)){return aData}oSort=aSort.reduce(function(sort,entry){sort[entry.field]=entry.dir;return sort},{});oResult=_fnSortIt(aData,oSort,oFieldMaps,oGridFieldsMeta);aActions.push({action:"onSort",value:oSort,data:oResult.data,time:oResult.nEnd-oResult.nStart});return oResult.data},_getPage=function(aData,oDataRequestModel,aActions){var oResult,nPage=oDataRequestModel.pageNumber,nPageEnd=oDataRequestModel.pageNumberEnd,nPageSize=oDataRequestModel.pageSize;if(!atlas.isNumber(nPage)||!atlas.isNumber(nPageSize)){return aData}oResult=_fnPaginateIt(aData,nPage,nPageEnd,nPageSize);aActions.push({action:"onPagination",value:{page:nPage,pageSize:nPageSize},data:oResult.data,time:oResult.nEnd-oResult.nStart});return oResult.data},DataProvider=function(aData,options){if(!atlas.isArray(aData)){aData=[]}this._options=options;this._data=aData};DataProvider.prototype.getDataAsync=function(oDataRequestModel,aActions,oFieldMaps,oGridFieldsMeta){var aFilteredData=_filterIt(this._data,oDataRequestModel,oFieldMaps,oGridFieldsMeta,aActions),aSortedData=_sortIt(aFilteredData,oDataRequestModel,oFieldMaps,oGridFieldsMeta,aActions),aPagedData=_getPage(aSortedData,oDataRequestModel,aActions);return Promise.resolve({data:aPagedData,totalCount:aFilteredData.length})};return function(aData,options){return new DataProvider(aData,options)}})();(atlasWorker.grid={}).filter=(function(){var _createFilterOptions=function(oFieldMap,oGridFieldsMeta){var oFields=oGridFieldsMeta||{},oFieldMaps=oFieldMap||{},oDataTypeMap=Object.keys(oFields).reduce(function(obj,field){obj[field]=oFields[field].type;return obj},{}),fnValueAccessorFactory=function(oComparativeExp){var sFieldName=oComparativeExp.field,oFieldMap=oFieldMaps[sFieldName];return atlas.isObject(oFieldMap)?function(entry){return oFieldMap[entry[sFieldName]]}:function(entry){return entry[sFieldName]}};return{valueAccessorFactory:fnValueAccessorFactory,dataTypes:oDataTypeMap}},_validateFilter=function(oFilter,oGridFieldsMeta){var oFields=oGridFieldsMeta||{},isValid=true,aErrors=[],isComparisonExp=atlas.dataStore.filter.isComparisonExp,_walkFilterExpression=function(oFilter){if(isComparisonExp(oFilter)){if(!oFields[oFilter.field]){aErrors.push({action:"onError.filter",value:"invalid field name - "+oFilter.field});isValid=false}}else{(oFilter.filters||[]).forEach(_walkFilterExpression)}};_walkFilterExpression(oFilter);return{isValid:isValid,errors:aErrors}},_filter=function(aData,oFilter,oFieldMap,oGridFieldsMeta){var nStart=atlas.performance.now(),aFilteredData=[],oOpts=_createFilterOptions(oFieldMap,oGridFieldsMeta),oFilters=atlas.isObject(oFilter)?oFilter:{},oValidationResult=_validateFilter(oFilters,oGridFieldsMeta),fnFilter=atlasWorker.dataStore.filter.createFilter(oFilters,oOpts),entry,i=0,l=aData.length;for(;ib}},{name:"greaterThanOrEqual",fn:function(a,b){return a>=b}},{name:"equal",fn:function(a,b){return a==b}},{name:"notEqual",fn:function(a,b){return a!=b}},{name:"empty",fn:function(a){return !atlas.isDefined(a)||a===null}},{name:"notEmpty",fn:function(a){return atlas.isDefined(a)&&a!==null}},{name:"contains",fn:function(str,pattern){return !!~(""+str).indexOf(""+pattern)}},{name:"notContains",type:"string",fn:function(str,pattern){return !~str.indexOf(""+pattern)}},{name:"startsWith",type:"string",fn:function(str,pattern){return str.lastIndexOf(pattern,0)===0}},{name:"endsWith",type:"string",fn:function(str,pattern){return str.indexOf(pattern,str.length-pattern.length)>=0}},{name:"empty",type:"string",fn:function(a){return !atlas.isDefined(a)||a===null||a===""}},{name:"notEmpty",type:"string",fn:function(a){return atlas.isDefined(a)&&a!==null&&a!==""}}];_aDataTypes.map(function(sType){var Comparer=function TypeComparer(){};Comparer.prototype=Object.create(oBaseComparerProto);oComparers[sType]=new Comparer();oComparers[sType].fn=Comparer});_aComparers.forEach(function(oComparer){var aTypes=oComparer.type;aTypes=typeof aTypes=="undefined"?["base"]:typeof aTypes=="string"?[aTypes]:aTypes;aTypes.forEach(function(sType){oComparers[sType].fn.prototype[oComparer.name]=oComparer.fn})});oComparers.string.fn.prototype.compare=function(str,pattern,flags){var isFactory=arguments.length===1&&atlas.isObject(str),oFlags=isFactory?str:flags,oOp=oFlags.comparison,isCaseInsensitive=oFlags.caseInsensitive!==false,isCoerce=oFlags.coerce!==false,isTrim=oFlags.trim!==false,fnComparer=this[oOp]||function(){return true};if(oOp==="empty"&&oOp==="notEmpty"){isCaseInsensitive=isCoerce=isTrim=false}if(isCaseInsensitive){fnComparer=(function(fnComparer){return function(str,pattern){return fnComparer(str.toLowerCase(),pattern.toLowerCase())}})(fnComparer)}if(isTrim){fnComparer=(function(fnComparer){return function(str,pattern){return fnComparer(str.trim(),pattern.trim())}})(fnComparer)}if(isCoerce){fnComparer=(function(fnComparer){return function(str,pattern){return fnComparer(""+str,""+pattern)}})(fnComparer)}return isFactory?fnComparer:fnComparer(str,pattern)};oComparers.number.fn.prototype.compare=function(a,b,flags){var isFactory=arguments.length===1,oFlags=isFactory?a:flags,oOp=oFlags.comparison,fnComparer=this[oOp]||function(){return true};if(oFlags.coerce&&oOp!=="empty"&&oOp!=="notEmpty"){fnComparer=(function(fnComparer){return function(a,b){return fnComparer(+a,+b)}})(fnComparer)}return isFactory?fnComparer:fnComparer(a,b)};oComparers.date.fn.prototype.compare=function(a,b,flags){var isFactory=arguments.length===1,oFlags=isFactory?a:flags,oOp=oFlags.comparison,fnComparer=this[oOp]||function(){return true},normalizeDate=function normalizeDate(value){if(atlas.endsWith(value,"Z")){return value.slice(0,-1)}return value};if(!oFlags.hasTime&&oOp!=="empty"&&oOp!=="notEmpty"){fnComparer=(function(fnComparer){return function(a,b){if(atlas.isString(a)&&atlas.isString(b)){return fnComparer(normalizeDate(a),normalizeDate(b))}return false}})(fnComparer)}return isFactory?fnComparer:fnComparer(a,b)};oComparers.date.fn.prototype.contains=function contains(a,b){var dFull,sDate,aPatterns,i,l;if(!b){return true}if(!a){return false}if(a===b){return true}dFull=new Date(a);aPatterns=["d","D","F","g","G","m","M","s","t","T","u","y","Y"];i=0;l=aPatterns.length;for(;i1?arguments[1]:{},j=this,N={},ah={EXPRESSION:V},ag=V,l={type:"other",description:"OR"},m="or",x={type:"literal",value:"OR",description:'"OR"'},C=function(ak){return"OR"},D=function(ak,al,am){return d("OR",am)},E=function(ak,al){return ai(ak,al)},F={type:"other",description:"AND"},G="and",H={type:"literal",value:"AND",description:'"AND"'},I=function(ak){return"AND"},n=function(ak,al,am){return d("AND",am)},o=function(ak){return ak},p={type:"other",description:"filter id"},q=function(ak){return ak},r=function(ak){return +ak.join("")},s=/^[0-9]/,t={type:"class",value:"[0-9]",description:"[0-9]"},u="(",v={type:"literal",value:"(",description:'"("'},w=")",y={type:"literal",value:")",description:'")"'},z={type:"other",description:"whitespace"},A=/^[ \t\n\r]/,B={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},L=0,ae=0,ac=[{line:1,column:1,seenCR:false}],P=0,O=[],af=0,ad;if("startRule" in i){if(!(i.startRule in ah)){throw new Error("Can't start parsing from rule \""+i.startRule+'".')}ag=ah[i.startRule]}function aj(){return g.substring(ae,L)}function h(){return J(ae,L)}function f(ak){throw k(null,[{type:"other",description:ak}],g.substring(ae,L),J(ae,L))}function e(ak){throw k(ak,null,g.substring(ae,L),J(ae,L))}function K(an){var al=ac[an],am,ak;if(al){return al}else{am=an-1;while(!ac[am]){am--}al=ac[am];al={line:al.line,column:al.column,seenCR:al.seenCR};while(amP){P=L;O=[]}O.push(ak)}function k(ap,am,an,ao){function al(aq){var ar=1;aq.sort(function(at,au){if(at.descriptionau.description){return 1}else{return 0}}});while(ar1?at.slice(0,-1).join(", ")+" or "+at[aq.length-1]:at[0];av=au?'"'+ax(au)+'"':"end of input";return"Expected "+ar+" but "+av+" found."}if(am!==null){al(am)}return new c(ap!==null?ap:ak(am,an),am,an,ao)}function V(){var ak;ak=Z();return ak}function aa(){var ak,al,am,an;af++;ak=L;al=ab();if(al!==N){if(g.substr(L,2).toLowerCase()===m){am=g.substr(L,2);L+=2}else{am=N;if(af===0){M(x)}}if(am!==N){an=ab();if(an!==N){ae=ak;al=C(am);ak=al}else{L=ak;ak=N}}else{L=ak;ak=N}}else{L=ak;ak=N}af--;if(ak===N){al=N;if(af===0){M(l)}}return ak}function Z(){var ak,al,am,an,ao,ap;ak=L;al=Q();if(al!==N){am=[];an=L;ao=aa();if(ao!==N){ap=Q();if(ap!==N){ae=an;ao=D(al,ao,ap);an=ao}else{L=an;an=N}}else{L=an;an=N}while(an!==N){am.push(an);an=L;ao=aa();if(ao!==N){ap=Q();if(ap!==N){ae=an;ao=D(al,ao,ap);an=ao}else{L=an;an=N}}else{L=an;an=N}}if(am!==N){ae=ak;al=E(al,am);ak=al}else{L=ak;ak=N}}else{L=ak;ak=N}return ak}function R(){var ak,al,am,an;af++;ak=L;al=ab();if(al!==N){if(g.substr(L,3).toLowerCase()===G){am=g.substr(L,3);L+=3}else{am=N;if(af===0){M(H)}}if(am!==N){an=ab();if(an!==N){ae=ak;al=I(am);ak=al}else{L=ak;ak=N}}else{L=ak;ak=N}}else{L=ak;ak=N}af--;if(ak===N){al=N;if(af===0){M(F)}}return ak}function Q(){var ak,al,am,an,ao,ap;ak=L;al=Y();if(al!==N){am=[];an=L;ao=R();if(ao!==N){ap=Y();if(ap!==N){ae=an;ao=n(al,ao,ap);an=ao}else{L=an;an=N}}else{L=an;an=N}while(an!==N){am.push(an);an=L;ao=R();if(ao!==N){ap=Y();if(ap!==N){ae=an;ao=n(al,ao,ap);an=ao}else{L=an;an=N}}else{L=an;an=N}}if(am!==N){ae=ak;al=E(al,am);ak=al}else{L=ak;ak=N}}else{L=ak;ak=N}return ak}function Y(){var ak,al,am,an;ak=W();if(ak===N){ak=L;al=X();if(al!==N){am=Z();if(am!==N){an=S();if(an!==N){ae=ak;al=o(am);ak=al}else{L=ak;ak=N}}else{L=ak;ak=N}}else{L=ak;ak=N}}return ak}function W(){var ak,al,am,an;af++;ak=L;al=ab();if(al!==N){am=U();if(am!==N){an=ab();if(an!==N){ae=ak;al=q(am);ak=al}else{L=ak;ak=N}}else{L=ak;ak=N}}else{L=ak;ak=N}af--;if(ak===N){al=N;if(af===0){M(p)}}return ak}function U(){var ak,al,am;ak=L;al=[];am=T();if(am!==N){while(am!==N){al.push(am);am=T()}}else{al=N}if(al!==N){ae=ak;al=r(al)}ak=al;return ak}function T(){var ak;if(s.test(g.charAt(L))){ak=g.charAt(L);L++}else{ak=N;if(af===0){M(t)}}return ak}function X(){var ak,al,am,an;ak=L;al=ab();if(al!==N){if(g.charCodeAt(L)===40){am=u;L++}else{am=N;if(af===0){M(v)}}if(am!==N){an=ab();if(an!==N){al=[al,am,an];ak=al}else{L=ak;ak=N}}else{L=ak;ak=N}}else{L=ak;ak=N}return ak}function S(){var ak,al,am,an;ak=L;al=ab();if(al!==N){if(g.charCodeAt(L)===41){am=w;L++}else{am=N;if(af===0){M(y)}}if(am!==N){an=ab();if(an!==N){al=[al,am,an];ak=al}else{L=ak;ak=N}}else{L=ak;ak=N}}else{L=ak;ak=N}return ak}function ab(){var ak,al;af++;ak=[];if(A.test(g.charAt(L))){al=g.charAt(L);L++}else{al=N;if(af===0){M(B)}}while(al!==N){ak.push(al);if(A.test(g.charAt(L))){al=g.charAt(L);L++}else{al=N;if(af===0){M(B)}}}af--;if(ak===N){al=N;if(af===0){M(z)}}return ak}function ai(ak,al){if(!al){return ak}return al.reduce(function(am,an){return{conditionalOp:an.op,leftOperand:am,rightOperand:an.right}},ak)}function d(ak,al){return{op:ak,right:al}}ad=ag();if(ad!==N&&L===g.length){return ad}else{if(ad!==N&&L"),n;if(!this.length){o=atlas(p(q));if(!o.length){o=atlas("
")}return o[m].apply(o,r)}n=atlas.isFunction;return this.each(function(t){var s=Array.prototype.concat.apply([null,t],r);if(!atlas(t).isComponent()){if(n(j.create)){j.create(t,q)}else{new (Function.prototype.bind.apply(j,s))()}}else{c(l+": {0} is already an atlas ui component, atlas will not turn an existing component into another component",[t.id||t.tagName+"."+t.className.replace(" ",".")],"Already an instanceof "+atlas(t).attr("atlas-component"))}})}},i=function(l,j){var m,n,o,k;l=l||{};m=l.componentId;n=e(m||"");o=l.factoryName||n;k=l.extend||h;if(!atlas.isString(m)||!atlas.startsWith(m,"atlas")){return c("Component must have a name and be of type string")}if(m.split(".").length<2){return c(m+": Must be split by a period and contain at least two parts.")}if(!atlas.isFunction(j)){return c(m+" must have a constructor of type function")}if(atlas.fn[o]||atlas[o]){return c(o+" component name already exists on the atlas namespace.")}if(!atlas.isFunction(k)||!atlas.isObject(k.prototype)){return c(m+" extends must be a function with a prototype")}j.prototype=j.fn=Object.create(k.prototype);j.prototype.base=k;j.prototype.kind=l.componentId;j.prototype.version=l.version||f;j.COMPONENT_ID=l.componentId;a(m)[n]=j;atlas.fn["is"+atlas.caseUpperFirst(o)]=d(m);atlas.fn[o]=g(j,o,m,l);if(l.plugins){atlas.component.pluginMixin(j,l.plugins)}b.call(j.prototype,l);return j},h=function(j,k){this.guid="A-"+atlas.makeGUID();this.container=j;this.options=k;atlas(j).api(this)};h.prototype.guid=null;h.prototype.container=null;h.prototype.options=null;h.prototype.destroy=function(){if(atlas.isFunction(this.unsubscribeEvents)){this.unsubscribeEvents()}atlas(this.container).removeChildren().removeApi()};return i})();atlas.component.pubsubEventMixin=function(h,i){var d,e,f,c,a,b;if(!i||!atlas.isArray(i.events)){return atlas.logError("atlas.component.pubsubEventMixin: No events provided")}d=atlas.pubsub.publish;e=atlas.pubsub.subscribe;f=atlas.pubsub.unsubscribe;c=atlas.isFunction;a=function(j){var k=this;j.forEach(function(l){k[l]=b.call(k,l)})};b=function g(k){return function j(l){return this.subscribe(k,l)}};h.publish=function(k,j,l){d(this.baseChannel()+"."+k,j,l)};h.subscribeEvents=function(k){var j;if(!k){atlas.logError("atlas.component.pubsubEventMixin.subscribeEvents: No events provided");return}j=this;i.events.forEach(function(m){var l=k[m];if(l&&c(l)){j[m](l)}})};h.subscribe=function(l,j){var k=this.baseChannel()+(l?"."+l:""),m;(this._pubsubSubscriptions||(this._pubsubSubscriptions=[])).push({token:m=e(k,j.bind(this)),channel:k});return m};h.unsubscribe=function(j){f(j);this._pubsubSubscriptions=this._pubsubSubscriptions.filter(function(k){return k.token!==j})};h.subscriptions=function(){return this._pubsubSubscriptions};h.unsubscribeAll=function(l){var k=this.baseChannel()+(l?"."+l:""),j=function(m){if(m.channel===k){f(m.token);return false}return true};this._pubsubSubscriptions=this._pubsubSubscriptions.filter(j)};h.unsubscribeEvents=function(){(this._pubsubSubscriptions||[]).forEach(function(j){f(j.token)});this._pubsubSubscriptions=[]};a.call(h,i.events);h.events=i.events;h.baseChannel=atlas.functor(i.baseChannel||atlas.makeGUID())};atlas.component.domEventMixin=function(d,e){if(!e||!atlas.isArray(e.events)){return atlas.logError("atlas.component.domEventMixin: No events provided")}var c=function(){return e.element||this.container},a=function(f){var g=this;f.forEach(function(h){g[h]=b.call(g,h)})},b=function(f){return function(g){atlas(c.call(this)).on(f,g)}};d.trigger=function(f){var g;if(!f||!(g=f.type)){return}atlas(f.element||c.call(this)).fireEvents(g,f.payload)};d.subscribeEvents=function(g){if(!g){return atlas.logError("atlas.component.domEventMixin.subscribeEvents: Must provide events object")}var f=atlas(c.call(this));e.events.forEach(function(i){var h=g[i];if(h&&atlas.isFunction(h)){f.on(i,h)}})};d.unsubscribeEvents=function(){var g=atlas(c.call(this)),f=atlas.isArray(this.events)?this.events:[];f.length&&g.off(f.join(" "))};d.events=e.events;a.call(d,e.events)};(function(a){a.component.pluginMixin=function b(k,p){var g=a.isFunction,f=a.isArray,d=function d(v,r){var u,s,t;if(f(v)){s=0;t=v.length>>>0;for(;s>>0};c.prototype.flatten=function(h,g){var f=Array.isArray(h)?h:[h],i=this;return f.reduce(function(j,k){j.push(k);if(k[g]){j=j.concat(i.flatten(k[g],g));delete k[g]}return j},[])};e.array=function(f){return new c(f)}})(atlas||{});(function(c){var f=c.dataProvider||(c.dataProvider={}),b="api/filters/values",a={treeView:0,listView:1},d=c.dataProvider.cachedValues,e=function(g){d.call(this,g);g.url=g.url||b};e.prototype=Object.create(d.prototype);e.prototype._getFilterCriteria=function(g){var h=g||{};return{filterIdentifier:h.filterIdentifier,levels:c.isNumber(h.levels)?h.levels:101,filterListType:h.filterListType||a.treeView,parameters:h.parameters||{}}};e.prototype._validateDataRequest=function(g){return c.validateOptions(g,{filterIdentifier:{types:["string","number"],required:true}}).valid};e.prototype._shouldCache=function(g){return(!g.filter&&g.filterListType!==0)};e.prototype._shouldUseCache=function(g){return(g.filterListType!==0&&!g.levels&&this._bCachedData===true)};f.filterValues=function(g){return new e(g)}})(atlas||{});(function(m){var d=m.isObject,e=m.isString,c=m.isArray,a=m.arrayContains,b=m.utils.values,f=m.logger("Operator Helper"),g={contains:"FPO Contains",doesNotContain:"FPO Does not contain",equals:"FPO Equals",notEqual:"FPO Does Not Equal",startsWith:"FPO Starts with",endsWith:"FPO Ends with",lessThan:"FPO Less than",greaterThan:"FPO Greater than",lessOrEqual:"FPO Less or Equal",greaterOrEqual:"FPO Greater or Equal",isEmpty:"FPO Is Empty",isNotEmpty:"FPO Is Not Empty","in":"FPO In",notIn:"FPO Not In",inHierarchy:"FPO In Hierarchy",notInHierarchy:"FPO Not In Hierarchy",between:"FPO Between"},j=m.extend(true,{},g,m.i18n&&m.i18n.filters),l={contains:{name:"contains",operator:"()",title:j.contains,exclude:["date","datetime","number"]},notContains:{name:"notContains",operator:"(/)",title:j.doesNotContain,exclude:["date","datetime","number"]},equal:{name:"equal",operator:"=",title:j.equals},notEqual:{name:"notEqual",operator:"!=",title:j.notEqual},startsWith:{name:"startsWith",operator:"x/",title:j.startsWith,exclude:["date","datetime","number"]},endsWith:{name:"endsWith",operator:"/x",title:j.endsWith,exclude:["date","datetime","number"]},lessThan:{name:"lessThan",operator:"<",title:j.lessThan,exclude:["string"]},greaterThan:{name:"greaterThan",operator:">",title:j.greaterThan,exclude:["string"]},lessThanOrEqual:{name:"lessThanOrEqual",operator:"<=",title:j.lessOrEqual,exclude:["string"]},greaterThanOrEqual:{name:"greaterThanOrEqual",operator:">=",title:j.greaterOrEqual,exclude:["string"]},empty:{name:"empty",operator:"*",title:j.isEmpty,exclude:[]},notEmpty:{name:"notEmpty",operator:")*(",title:j.isNotEmpty,exclude:[]},"in":{name:"in",operator:"|=|",title:j["in"],exclude:["date","datetime","number"]},notIn:{name:"notIn",operator:"|!=|",title:j.notIn,exclude:["date","datetime","number"]},between:{name:"between",operator:"><",title:j.between,exclude:["string"]},inHierarchy:{name:"inHierarchy",operator:"{",title:j.inHierarchy,exclude:[]},notInHierarchy:{name:"notInHierarchy",operator:"!{",title:j.notInHierarchy,exclude:[]}},i=l.contains,h=l.equal,k=Object.keys(l).reduce(function(p,o){var q=l[o];p[q.name.toLowerCase()]=q;return p},{}),n=function(o){this.options=o||{}};n.prototype.getOperator=function(o){if(!m.isString(o)){f.logError("Valid argument not provided for getOperator",o);return}return this.getLowerCaseOperatorMap()[o.toLowerCase()]};n.prototype.getOperatorMap=function(){return l};n.prototype.getLowerCaseOperatorMap=function(){return k};n.prototype.getOperatorsArray=function(){return b(l)};n.prototype.getNonHierarchicalOperators=function(){var o=this;return this.getOperatorsArray().filter(function(p){return !o.isHierarchyOperator(p.name)})};n.prototype.getOperatorsForField=function(r){var o,t;if(d(r)){o=r.operators;if(c(o)){o=o.map(function(u){return u.toLowerCase()});return o.map(function p(u){return k[u]}).filter(function s(u){return u})}else{if(e(t=r.dataType)){t=t.toLowerCase();return this.getNonHierarchicalOperators().filter(function q(v){var u=v.exclude;return !c(u)||a(t,u)<0})}}}return this.getNonHierarchicalOperators()};n.prototype.isUnaryOperator=function(o){return(o===l.empty.name||o===l.notEmpty.name)};n.prototype.isHierarchyOperator=function(o){o=(this.getOperator(o)||{}).name;return(o===l.inHierarchy.name||o===l.notInHierarchy.name)};n.prototype.getScrubOperator=function(){return i};n.prototype.getDefaultOperator=function(){return h};m.operatorHelper=function(o){return new n(o)}}(window.atlas));(function(B){var i=B.isObject,j=B.isString,f=B.isArray,h=B.isNumber,g=B.isNullOrUndefined,b=B.arrayContains,n=10,r=B.operatorHelper(),s=r.getDefaultOperator().name,q=r.getOperatorMap(),v=q["in"].name,t=q.between.name,y=q.notIn.name,w=q.inHierarchy.name,z=q.notInHierarchy.name,u=q.equal.name,x=q.notEqual.name,m=B.logger("atlas.FilterBuilder"),o={field:"FPO Field",operator:"FPO Operator",value:"FPO Value",nSelected:"FPO {0} Selected"},c=B.i18n,p=B.extend(true,{},o,c&&c.common),k=function(E){var D;if(!j(E)){return false}E=(r.getOperator(E)||{}).name;if(r.isHierarchyOperator(E)){return true}D=this.getOperators().map(function(F){return F.name});return b(E,D)>=0},A=function(){var D,E,F,G;if(!this.hasField()){this._operator=undefined;return}if(this.hasOperator()&&!k.call(this,this._operator)){this._operator=undefined}if(!this.hasOperator()){F=s.toLowerCase();D=this.getOperators()||[];E=D.filter(function(H){return(H.name||"").toLowerCase()===F})[0]||D[0]||{};this._operator=E.name;this.clearValue()}if(!this.hasValue()){this.clearText()}G=d.call(this);if(G==="number"){this.setText(B.formatNumber(this.value(),"n"))}a.call(this)},d=function(){var D=this.field(),E=(D||{}).dataType||"";return E},e=function(){var E=this._operator?r.getOperator(this._operator):null,F=this._text||(this.hasField()&&this._field.getFilterValueText(this._value))||"",D;if(!E){return F}switch(E.name){case v:case y:case w:case z:if(f(F)){D=F.length;F=D>n?B.format(p.nSelected,[D]):F.join(", ")}break;case t:if(f(F)){F=F.join(" - ")}break;default:break}return F},a=function(){var G=this.value(),F,D,E;if(g(G)){return}F=(r.getOperator(this._operator)||{}).name;D=d.call(this);switch(F){case v:case t:if(!f(G)){E=u}break;case y:if(!f(G)){E=x}break;case u:if(f(G)){E=(D.toLowerCase()==="date")?t:v}break;case x:if(f(G)){E=y}break;default:break}if(f(G)&&G.length===2&&(D.toLowerCase()==="date")){E=t}if(k.call(this,E)){this._operator=E}},l=function(D){return j(D)||f(D)||h(D)},C=function(E){var D,F,H,G;if(!i(E)){return}D=E.field;F=E.op;H=E.value;G=E.text;if(!i(D)&&!j(D)){return}this.setField(D);if(!j(F)){return}this.setOperator(F);if(!l(H)){return}this.setValue(H);if(j(G)||f(G)){this.setText(G)}};C.prototype.hasField=function(){return B.data.Field.isField(this._field)};C.prototype.hasOperator=function(){return j(this._operator)};C.prototype.hasValue=function(){var D=this._value;return !!(j(D)&&D.trim()||f(D)&&D.length||h(D))};C.prototype.setField=function(D){if(j(D)){D={name:D}}if(!i(D)){m.logError("The field is not valid object");return this}if(!B.data.Field.isField(D)){D=B.data.field(D)}this._field=D;A.call(this);return this};C.prototype.setOperator=function(D){if(!this.hasField()){m.logError("The field must be set before the operator.");return this}if(!j(D)){m.logError("The operator must be a string.");return this}if(!k.call(this,D)){m.logError('Unsupported operator: "'+D+'"');return this}D=r.getOperator(D).name;if(this._operator===D){return this}this._operator=D;this.clearValue();this.clearText();return this};C.prototype.setValue=function(D){if(!l(D)){m.logError("The value must be either a string, an array, or a number.");return this}if(!this.hasField()){m.logError("The field and operator must be set before the value.");return this}if(!this.hasOperator()){m.logError("The operator must be set before the value.");return this}this._value=D;A.call(this);return this};C.prototype.setText=function(D){if(!j(D)&&!f(D)){m.logError("The text must be either a string or an array.");return this}if(!this.hasField()){m.logError("The field and operator must be set before the text.");return this}if(!this.hasOperator()){m.logError("The operator must be set before the text.");return this}this._text=D;return this};C.prototype.field=function(D){return arguments.length?this.setField(D):this._field};C.prototype.operator=function(D){return arguments.length?this.setOperator(D):this._operator};C.prototype.value=function(D){return arguments.length?this.setValue(D):this._value};C.prototype.text=function(D){return arguments.length?this.setText(D):this._text};C.prototype.getCurrentText=function(){var F=this._value,D=this._field&&this._field.filter&&this._field.filter.filters,E=null;if(this.hasField()&&f(D)&&D.length&&F&&h(B.parseNumber(F))&&F!==this._text){if(!f(F)){F=[F]}E=D.reduce(function(G,H){if(F.indexOf(H.nodeId)!==-1){G.push(H.text)}return G},[]);if(E.length===1){E=E[0]}this._text=E}return this._text};C.prototype.clearValue=function(){this._value=undefined;return this};C.prototype.clearText=function(){this._text=undefined;return this};C.prototype.getFilter=function(){var D={field:(this._field||{}).name,op:this._operator,value:(h(this._value)||this._value)?this._value:"",text:this.getCurrentText()||(this.hasField()&&this._field.getFilterValueText(this._value))||""};return D};C.prototype.getDisplayFilter=function(){var F=this._field||{},D,H=this._operator,G,E=!!(f(this._value)&&this._value.length);switch(H&&(r.getOperator(H)||{}).name){case w:D=true;G=E?v:u;break;case z:D=true;G=E?y:x;break;default:G=H;break}return{field:F.text||F.name||"",op:(G&&r.getOperator(G)||{}).title||p.operator,value:e.call(this),includeChildren:!!D}};C.prototype.isComplete=function(){if(this.hasValue()){return true}return(this.hasOperator()&&r.isUnaryOperator(this.operator()))};C.prototype.getOperators=function(){if(this.hasField()){return r.getOperatorsForField(this._field)}return r.getNonHierarchicalOperators()};B.filterBuilder=function(D){return new C(D)}}(window.atlas));(function(a){a.data={}}(atlas));(function(l){var n=l.data||(l.data={}),a="atlas.data.Field",f=l.isFunction,g=l.isObject,e=l.isArray,h=l.logger(a),k={none:0,hierarchy:1,listSingle:2,listMultiple:3},j={name:{types:"string",required:true},text:{types:"string"},dataType:{types:"string"},operators:{types:"array"},sortable:{types:"boolean"},filterable:{types:"boolean"},visible:{types:"boolean"},filter:{types:"object"}},i={filterMode:{types:"number"},filters:{types:"array"},defaultOperator:{types:"string"}},b=function(o,s){var p=0,q=o.length,r;for(;p1,q=(this.isHierarchical()||d.call(this)||this.isFilterByIdEnabled())?p:r,u=t.includeChildren?"inHierarchy":(s?"in":"equal");if(String(t.operator).toLowerCase().startsWith("not")){u=l.camelCase("not-"+u)}return{field:this,op:u||this._operatorHelper.getDefaultOperator().name,value:s?q:q[0],text:s?r:r[0]}};m.prototype.getVisibleFilterValues=function(){var o=(this.filter||{}).filters;return e(o)?o.filter(function(p){return p.visible!==false}):[]};m.prototype.isFilterByIdEnabled=function(){var o=!!(this.filter||{}).filterById;return o};m.prototype.getFilterValueText=function(p){var o=this.filter&&this.filter.filters;if(!e(o)){return p||""}return(e(p)?p.map(function(q){return b(o,q)}):b(o,p))||p||""};m.prototype.isHierarchical=function(){var o=this.filter||{};return(o.filterMode===k.hierarchy)};m.prototype.getFilterField=function(p){var o=(this.filter||{}).fields,q;return p&&e(o)?o.filter(function(r){q||(q=String(p).toLowerCase());return q===r.name.toLowerCase()})[0]:undefined};m.prototype.supportsValueLookups=function(){return d.call(this)};m.prototype.getFilterValuesAsync=function(o){return c.call(this).getDataAsync(o)};m.prototype.getFilterValuesTotalCount=function(o){return c.call(this).totalCount(o)};m.prototype.getOperationModeAsync=function(){return Promise.resolve({isRecommendedHierarchical:false})};m.isField=function(o){return g(o)&&f(o.supportsValueLookups)};n.Field=m;n.field=function(o){return new m(o)}}(window.atlas));(function(d){var a=d.data.Field,c=d.isObject,e=function(g,f){a.call(this,g);this._endpoints=f||{}},b=function(){var h=this.filter,f=this.getVisibleFilterValues(),g;if(this._filterValuesDataProvider){return this._filterValuesDataProvider}if(f&&f.length){g=d.dataProvider.array(f)}else{g=d.dataProvider.filterValues({type:"filterValues",url:this._endpoints.filterValues||"",dataRequest:{filterIdentifier:h.filterId,parameters:h.parameters||{}}})}return(this._filterValuesDataProvider=g)};e.prototype=Object.create(a.prototype);e.prototype.supportsValueLookups=function(){return c(this.filter)&&!!this.filter.filterId};e.prototype.getFilterValuesAsync=function(f){return b.call(this).getDataAsync(f)};e.prototype.getFilterValuesTotalCount=function(f){return b.call(this).totalCount(f)};e.prototype.getOperationModeAsync=function(){return d.service.filterValueOperationMode({filterIdentifier:this.filter.filterId,url:this._endpoints.filterValueOperationMode||""}).get()};d.data.LazyField=e})(window.atlas);(function(x,B){var e=x.extend,i=x.isElement,u=x.date.toUTCTime,j="atlas.data.validator",d={change:"onChange",valid:"onValid",invalid:"onInvalid"},a="atlas--ui-error",p="label",b="data-advanced-tooltip",c={notification:{error:"FPO {0} Error(s) Found"}},k=e(true,{},c,x.i18n),y=B.validators.datetime,A=function(D){return{format:D.format||(D.dateOnly?"d":["g","yyyy-MM-ddTHH:mm:ss.SSS"])}},z=function(D){return D.format||(D.dateOnly?"d":"g")},f=function(){var E="."+this._options.rootElement,D=x(this._target).parents(E);if(!D.length){D=x(E)}return D[0]},g=function(){var E="."+this._options.scrollElement,D=x(this._target).find(E);if(!D.length){D=x(E)}return D[0]},h=function(K,F){var E,D,J,G,H,I;if(!(K&&F)){return}E=x(K);D=Object.keys(F);G=0;H=D.length;I={};this._tooltip||(this._tooltip=s.call(this,K));for(;G1)?(parseInt(K[H-1],10)+"").length:0;F+=D}G=x.formatNumber(J,F);if(typeof J==="undefined"){return"is not a number"}if(G!==L){return I.notFormatted||I.message||"digits should be separated into thousands. Expected value is: "+G}}return B.validators.numericality.call(B.validators.numericality,J,I)};x.data.validator=C}(atlas,validate));(function(a){a.managers={}}(atlas));(function(m){var c={change:"onChange",select:"onSelect",deselect:"onDeselect",selectAll:"onSelectAll",deselectAll:"onDeselectAll"},i="atlas.managers.selectionManager",n="id",f=m.isObject,g=m.isString,e=m.isFunction,h=m.isUndefined,a=function(p){this._selectionMap=(p||[]).reduce(function(r,q){r[this.getItemID(q)]=true;return r}.bind(this),{})},k=function(r,s,p,q){var t;if(this.isSelected(r)===s){return}t=this.getItemID(r);this._selectionMap[t]=s;if(s){this._selectedItems.push(r)}else{j.call(this,r,this._selectedItems)}if(p){this._actionableItems.push(r)}else{j.call(this,r,this._actionableItems)}l.call(this);this.publish(q,r)},l=function(){var q=this._actionableItems.length>>>0,r=this.totalCount(),p=(q===r&&!this.isFiltered());if(p){this._hasAllSelected=!this._hasAllSelected;this._actionableItems=[]}},d=function(){return this._hasAllSelected?(this.totalCount()-this._actionableItems.length>>>0):this._selectedItems.length>>>0},b=function(){this.publish(c.change,{selectedCount:d.call(this),totalCount:this.totalCount()})},j=function(s,p){var r=0,t=p.length>>>0,u,q=this.getItemID,v=q(s);for(;r=2?{conditionalOp:s,filters:y}:y[0]:null};w.prototype.parseLogicString=function(D,y){var C,B,x,z;if(!h(D)||!d(y)){j("Invalid params, parseLogicString");return{isValid:false,errors:[],warnings:null}}C=u.call(this,D,y.length);x=null;z=null;if(C.isValid===false){z=C.warnings}try{D=b(D);B=q(D)}catch(A){x=[p.errors.invalidQuery];return{isValid:false,errors:x,warnings:z}}return{isValid:true,result:m.call(this,B,y),errors:x,warnings:z}};w.prototype.getCleanedLogicString=function(x){var y=x||this._logicString||"";return a(y)};w.prototype.reduceFilterExpression=function(B){var y=[],z=[],A=function(E){var F=l(E),G=JSON.stringify(F),D=z.indexOf(G);if(!~D){D=y.length;z.push(G);y.push(l(F))}return D+1},x=function(D){var E;if(!D){return""}if(D.op){return""+A(D)}else{if(D.conditionalOp){E=(D.filters||[]).map(function(F){return x(F)}).join(" "+D.conditionalOp.toUpperCase()+" ");if(E.trim()){return"("+E+")"}return E}}return""},C=x(B);return{logicString:C,filters:y}};function i(x){var y=t(x);return !isNaN(y)&&y>0}function c(x){return x.match(/\d+/g)||[]}function b(x){return !h(x)?x:x.replace(/\s/g," ")}function m(B,x){var A=x.length||0,y=function(C){if((C>0)&&(C<=A)){return l(x[C-1])}return null},z=function(C){return{conditionalOp:C.conditionalOp,filters:[C.leftOperand,C.rightOperand]}};return n(B,y,z)}function n(z,x,y,B){var C,A,D;if(f(z)){return e(x)?x(z):z}if(!g(z)){return null}A=n(z.leftOperand,x,y,z);D=n(z.rightOperand,x,y,z);if(!A){C=D}else{if(!D){C=A}else{C={conditionalOp:z.conditionalOp,leftOperand:A,rightOperand:D};if(e(y)){C=y(C,B)}}}return C}function a(A,y){var z;try{A=b(A);z=q(A)}catch(x){return A}if(e(y)){z=y.call(this,z)}return k.call(this,z)}function r(z,y){var x=function(A){if(A===y){return null}if(A>y){return A-1}return A};return n(z,x)}function k(z){var x=function(A){return""+A},y=function(A,B){var C=A.conditionalOp,D=B&&B.conditionalOp,E=A.leftOperand+" "+C+" "+A.rightOperand;if(D&&D!==C){return"("+E+")"}return E};return n(z,x,y)}function l(y){var x={op:y.op,field:y.field,value:y.value};y.text&&(x.text=y.text);return x}function u(D,A){var y=[],x=c(D),C=Math.min.apply(null,x),B=Math.max.apply(null,x),z=(B<=A)&&(C>0);z||y.push(p.warnings.missingFilter);return{isValid:z,warnings:y}}v.expressionBuilder=function(x){return new w(x)}}(window.atlas));(function(c,a,b){a[c]=b()}("limitless",atlas,function(){var u=50,p=atlas.isObject,j=atlas.isArray,n=atlas.isInfinite,l=atlas.isFunction,o=atlas.isNumber,k=atlas.isElement,q=atlas.isString,i=atlas.noOp,m=(atlas.browser.msie===true),w="atlas.limitless",r=atlas.logger(w),s=function(C,B,A){C=C.toLowerCase();r["log"+atlas.caseUpperFirst(C)](B,A||"");if(C==="error"){return{error:true,errorMessage:B}}},y="up",x="down",h={NOSOURCE:"You must provide a `source` object or constructor with the required functions exposed",NOSOURCEFETCH:"You must provide a `fetch` function on the instance of your source Constructor/object",NOSOURCECREATESHIM:"You must provide a `createShim` function on the instance of your source Constructor/object",NOSOURCERENDER:"You must provide a `render` function on the instance of your source Constructor/object",NOPAGESIZE:'You must provide a pageSize, as a `typeof number`, denoting how many records are loaded per "page"/API response',SCROLLERNOTANELEMENT:"You must specify a valid `HTMLElement` as the target for the `scroller`",ITEMDOESNOTEXIST:"No item exists in the currently loaded data at that index position",PAGEDOESNOTEXIST:"No page exists at the requested page number",INVALIDTYPE:"The type you provided was invalid",INVALIDSEPARATORFORMAT:"The page separator, when provided as a setter function, must return a valid string",INVALIDSEPARATORTYPE:"The page separator must be provided a valid string formatted for use in `atlas.format`, or a setter function that returns a valid string",NODATA:"The data returned was empty, malformed, or otherwise resulted in no data"},g={scrollerAdditionalHeight:2000,autoStart:true,pageSize:50,pagesToLoadAfter:1,pagesToLoadBefore:1,pageStartAt:1,rowStartAt:undefined,animationDuration:200,appendTo:undefined,onScroll:undefined,onResize:undefined,onPageChange:undefined,ignoreHorizontalScroll:true,showPageSeparators:false,pageSeparatorFormat:"{0}",suppressFirstSeparator:false,shimWidth:0,shimHeight:0,separatorWidth:0,separatorHeight:0},v={ROWNUMBER:"atlas-limitless-row",PAGENUMBER:"atlas-limitless-page",FIRSTOFPAGE:"atlas-limitless-page-start",SEPARATORTITLE:"atlas-limitless-page-title",THISINSTANCE:"atlas-limitless-instance"},a="atlas--limitless",c=a+"-item",d=a+"-scroller",e=a+"-sentinel",f=a+"-shim",b=a+"-hidden",t=function(F){var E=F.onScroll,D=F.onResize,C=F.onRender,B=F.onPageChange,G=atlas(F.appendTo)[0],H=F.pageStartAt,K=F.shimHeight,L=F.shimWidth,I=F.separatorHeight,J=F.separatorWidth,A=F.showPageSeparators===true;if(!o(F.pageSize)){return s("error",h.NOPAGESIZE,"options.pageSize was `"+typeof F.pageSize+"`")}F.appendTo=atlas.isElement(G)?G:this.scroller;F.onResize=l(D)?D:i;F.onScroll=l(E)?E:i;F.onRender=l(C)?C:i;F.onPageChange=l(B)?B:i;F.pageStartAt=o(H)&&H>1?H:1;this.shimHeight=o(K)||q(K)?K:0;this.shimWidth=o(L)||q(L)?L:0;if(A){this.separatorHeight=o(I)||q(I)?I:K;this.separatorWidth=o(J)||q(J)?J:L}return F},z=function(H,I,G){var F,D,C,B,A,E;if(!(this instanceof z)){return new z(H,I,G)}s=s.bind(this);if(!k(H=atlas(H).addClass(d)[0])){return s("error",h.SCROLLERNOTANELEMENT,"scroller was `"+typeof H+"`")}if(!I||!l(I.constructor)){return s("error",h.NOSOURCE,"source was `"+typeof I+"`")}if(!l(I.render)){return s("error",h.NOSOURCERENDER,"source.render was `"+typeof I.render+"`")}if(!l(I.createShim)){return s("error",h.NOSOURCECREATESHIM,"source.createShim was `"+typeof I.createShim+"`")}if(!l(I.fetch)){return s("error",h.NOSOURCEFETCH,"source.fetch was `"+typeof I.fetch+"`")}this.scroller=H;this.shimHeight=0;this.shimWidth=0;this.separatorHeight=0;this.separatorWidth=0;this.config=F=t.call(this,atlas.extend({},g,G));if(F===false){this.error=true;return}this.source=I;this.allRecordsLoaded=false;this.anchorItem={index:0,offset:0};this.firstAttachedItem=0;this.lastAttachedItem=0;this._supportsTextWrap=this.config.supportsTextWrap;this.anchorScrollTop=0;this.shims=[];this.items=[];this.loadedItems=0;this.requestInProgress=false;this.initialized=false;this.ignoreScrollEvents=false;this.skippedItems=0;this.lastScrollDirection=undefined;this.dataInsertionPoint=undefined;this.currentPage=1;this.jumpingPage=false;this.lastPage=undefined;this.guid=atlas.makeGUID({prefix:"limitless-"});F.appendTo.setAttribute(v.THISINSTANCE,this.guid);E=F.rowStartAt;D=F.pageStartAt;if((o(E)&&(E=(E-1))>0)||(o(D)&&D>1)){B=F.pageSize;if(E){this.currentPage=D=this._getPageFromItem(E)}else{this.currentPage=D}A=(D-1)*B;C=A-(F.pagesToLoadBefore*B);this.skippedItems=C;while(C-->0){this.addItem()}this.loadedItems=this.items.length>>>0;this.anchorItem={index:E||A,offset:0}}this.scrollRunway=document.createElement("div");this.scrollRunway.textContent=" ";this.scrollRunwayEnd=0;this.prevScrollLeft=this.scroller.scrollLeft;atlas(this.scrollRunway).css("transition","transform "+F.animationDuration+"ms").addClass(e).appendTo(F.appendTo);this.scrollTimer=undefined;F.autoStart&&this.initialize();this._handleScroll=this.onScroll.bind(this);this._handleResize=this.onResize.bind(this);this.destroyed=false;this.totalCount=undefined;atlas(this.scroller).on("scroll",this._handleScroll,null,false);atlas(window).on("resize",this._handleResize,null,false)};z.prototype={initialize:function(){this.onResize({})},_getEstimatedScrollRunwayHeight:function(A){return(this.shimHeight*A)},setTotalCount:function(D){var A,E,B,F,C;if(!o(D)){return s("error",h.INVALIDTYPE,"Expected `num` to be `typeof number`, instead received `"+typeof D+"`")}A=this.items;B=A.length>>>0;F=v.PAGENUMBER;this.lastPage=C=this._getPageFromItem(D);this.totalCount=D;if(DC){G.parentNode.removeChild(G)}})}E=A[D-1];this.scrollRunwayEnd=(E&&E.top)||this._getEstimatedScrollRunwayHeight(D);this._setScrollRunwayHeight()},_itemIsFirstOfPage:function(A){A--;return(A<=0||(A%this.config.pageSize===0))},_roundToPage:function(A){var B=this.config.pageSize;return Math.ceil(A/B)*B},_updatePages:function(){var C=this.currentPage,B=this.getCurrentPage(),A=this.allRecordsLoaded===true&&B===this.lastPage;if(o(B)&&C!==B){this.config.onPageChange.call(this,C,B,A)}},_getPageFromItem:function(A){return this._roundToPage(Math.max(1,A))/this.config.pageSize},_setPageSeparator:function(A,B,C){var E=this.config.pageSeparatorFormat,F="method `_setPageSeparator` ",D;if(q(E)){D=atlas.format(E,[B])}else{if(l(E)){D=E.call(this,B,C,this.allRecordsLoaded);!q(D)&&s("error",F+h.INVALIDSEPARATORFORMAT,"Expected the setter function provided to return a valid string, received `"+typeof D+"`")}else{s("error",F+h.INVALIDSEPARATORTYPE,"Expected the setter to be a `string` or `function`, received `"+typeof E+"`");D=B}}return A.setAttribute(v.SEPARATORTITLE,D)},getLastKnownPage:function(){return this._getPageFromItem(this.items.length-1)},getCurrentPage:function(){var B=this.allRecordsLoaded,D=this.items.length>>>0,H=this.loadedItems,E=this.anchorItem.index,G=this.lastAttachedItem,A=this.items,F=B&&E>H?D-1:E,I,C=this.scroller,J;if(!D){return s("error",h.NODATA)}J=A[F===D?F-=1:F].pageNumber;if(B&&G===D){I=A[H-1];if(atlas(this.config.appendTo).find("["+v.ROWNUMBER+'="'+G+'"]')[0]&&I&&(C.clientHeight+C.scrollTop)>=I.top){J=I.pageNumber}}return(this.currentPage=J)},gotoRow:function(E){var C=this._getPageFromItem(E),F="method `gotoRow` - ",B=this.getLastKnownPage(),D,A=function(){var G;this.jumpingPage=true;D=this.items.filter(function(H){return H.rowNumber===E})[0];this.anchorItem={index:(G=(E-1)),offset:0};this.firstAttachedItem=D;this._commitCurrentPage(C);this.scroller.scrollTop=(D&&D.top)||this._getEstimatedScrollRunwayHeight(G)};if(!o(E)){return s("error",F+h.INVALIDTYPE,"Must be given a `typeof number`, but a `typeof "+atlas.getType(E)+"` was provided")}else{if(E<=0){return s("error",F+h.PAGEDOESNOTEXIST,"Row numbers start at 1, but `"+E+"` was requested")}}if(C>B&&this.allRecordsLoaded===true){return s("error",F+h.PAGEDOESNOTEXIST,"Attempted to load row `"+E+"` on page `"+C+"` when there are only `"+B+"` pages total")}return A.call(this)},_commitCurrentPage:function(){},gotoPage:function(D){var B=this.lastPage||this.getLastKnownPage(),C=this.config.pageSize,F="method `gotoPage` - ",E,A=function(){var G;this.jumpingPage=true;E=this.items.filter(function(H){return H.pageNumber===D})[0];this.anchorItem={index:(G=C*(D-1)),offset:0};this.firstAttachedItem=G;this._commitCurrentPage(D);this.scroller.scrollTop=((E&&E.top)||this._getEstimatedScrollRunwayHeight(G))};if(!o(D)){return s("error",F+h.INVALIDTYPE,"Must be given a `typeof number`, but a `typeof "+atlas.getType(D)+"` was provided")}else{if(D<=0){return s("error",F+h.PAGEDOESNOTEXIST,"Page numbers start at 1, but `"+D+"` was requested")}else{if(D===this.currentPage){return}}}if(D>B&&(this.allRecordsLoaded===true||o(this.totalCount))){return s("error",F+h.PAGEDOESNOTEXIST,"Attempted to load page `"+D+"` when there are only `"+B+"` pages total")}return A.call(this)},gotoPagePrev:function(){return this.gotoPage(this.currentPage-1)},gotoPageNext:function(){return this.gotoPage(this.currentPage+1)},onResize:function(E){var I=this.config,C=I.appendTo,A=this.items,F=0,H=A.length>>>0,G,B,D;B=atlas(this.source.createShim()).css("position","absolute").appendTo(C).removeClass(b);D=B[0];this.shimHeight=D.offsetHeight;this.shimWidth=D.offsetWidth;B.remove();if(I.showPageSeparators===true){this.separatorHeight=this.separatorHeight||this.shimHeight;this.separatorWidth=this.separatorWidth||this.shimWidth}for(;F>>0,E;if(this.allRecordsLoaded===true&&H.index>=this.loadedItems){return{index:this.firstAttachedItem,offset:0}}if(D===0){return H}D+=H.offset;B=H.index;if(D<0){while(D<0&&B>0&&(E=A[B-1].height)){D+=E;B--}G=Math.max(-B,Math.ceil(Math.min(D,0)/F))}else{while(D>0&&B=C||!A[B].height){G=Math.floor(Math.max(D,0)/F)}}B+=G;D-=G*F;if(n(B)){B=0}return{index:B,offset:D}},_commitAttachedItems:function(D,A){var B=this.loadedItems,C=this.totalCount;this.firstAttachedItem=Math.max(0,D);this.lastAttachedItem=(C&&A>C)?C:A;if(this.allRecordsLoaded===true){this.lastAttachedItem=A>B?B:A}},fill:function(B,A){this._commitAttachedItems(B,A);this.attachContent()},getShim:function(){return atlas(this.shims.pop()||this.source.createShim()).removeClass(b).css({transform:null,msTransform:null,transition:null}).addClass(f).addClass(c)[0]},_padScrollRunwayHeight:function(A){this.scrollRunwayEnd=Math.max(this.scrollRunwayEnd,A+this.config.scrollerAdditionalHeight)},attachContent:function(){var ab=this,B=this.items,Z=this.config,I=0,L=B.length>>>0,P=this.firstAttachedItem,T=this.lastAttachedItem,N=Z.animationDuration,H=Z.showPageSeparators===true,G=Z.suppressFirstSeparator===true,W=this.shimHeight,V=this.separatorHeight,X=this.totalCount,F=this.allRecordsLoaded===true,E=[],aa={},U,C,J,K,D,O,Y,R,Q,S,M=this.anchorItem.index,A=function(){this.scrollTimer=setTimeout(this.maybeRequestContent.bind(this),u)}.bind(this);if(!m&&this._supportsTextWrap){R=0;I=P;for(;Ithis.loadedItems){T=this.lastAttachedItem=this.loadedItems}for(;IP){J=B[I-1];O-=(J&&J.height)||W;I--}while(I0)&&A()}},_adjustScrollRunwayHeight:function(){this.scrollRunwayEnd=this.items.reduce(function A(C,B){C+=B.height||this.shimHeight;return C},0);this._setScrollRunwayHeight()},applyForVisibleRows:function(B){var C=this.firstAttachedItem,A=this.items,D=this.lastAttachedItem;if(!B){return}for(;CF){D=A[C-1];E-=(D&&D.height)||H;C--}while(C>>0,J=L.pageSize,C=function(M){this.dataInsertionPoint=Math.max(0,(M-1)*J)}.bind(this),B=function(O){var M=(O-1)*J,N=M<=G?D[M]:undefined;return !(N&&(p(N.data)||j(N.data))&&N.pageNumber===O)},A;if(this.requestInProgress||(this.lastPage&&this.currentPage>this.lastPage)){return}if(!B(E)){if(I>this.lastPage||!B(I)){return}E=this.currentPage+1;K=E-1;I=E+1}this.requestInProgress=true;if(this.skippedItems>0&&this.lastScrollDirection===y){A=this.prependData.bind(this)}else{A=this.appendData.bind(this)}F=B(K)?K:E;H=B(I)?I:E;C(F);this.source.fetch(Math.max(1,F),H,J).then(A)},addItem:function(){var H=this.config,C=H.showPageSeparators===true,B=H.suppressFirstSeparator===true,E=this.items.length>>>0,F=E+1,G=this._getPageFromItem(F),A,D={data:null,node:null,height:0,width:0,top:0,rowNumber:F,pageNumber:Math.max(1,G)};if(C){A=this._itemIsFirstOfPage(F);D.firstRowOfPage=A;D.pageSeparator=B&&F===1?false:A}this.items.push(D)},prependData:function(G){var B=this.items,F=this.dataInsertionPoint,C=0,A=G.data,E=A.length>>>0,D,H;this.requestInProgress=false;this.dataInsertionPoint=undefined;if(this.destroyed===true){return}for(;C>>0,D,F=o(this.dataInsertionPoint)?Math.max(0,this.dataInsertionPoint):this.loadedItems;this.requestInProgress=false;if(!E){if(!B){return s("warn",h.NODATA)}this.onDataComplete();return}if(this.destroyed===true){return}for(;C>>0;if(!D){return s("error",h.NODATA)}this.lastPage=this._getPageFromItem(D);atlas(this.config.appendTo).find("."+f).remove();this.scrollRunwayEnd=A[D-1].top||this._getEstimatedScrollRunwayHeight(D);this._setScrollRunwayHeight();if(C>this.lastPage){this.gotoPage(this.lastPage);setTimeout(B.bind(this),500)}},_setScrollRunwayHeight:function(){var A=this.scrollRunwayEnd;atlas(this.scrollRunway).css({transform:"translate3d(0,"+A+"px, 0)",msTransform:"translateY("+A+"px)"});(m===true)&&atlas(this.config.appendTo).height(A)},destroy:function(){var A=atlas(this.scrollRunway);this.destroyed=true;atlas(this.scroller).off("scroll",this._handleScroll);atlas(window).off("resize",this._handleResize);A.css({transform:null,msTransform:null});(m===true)&&A.height("");this.purge();this.scrollTimer&&clearTimeout(this.scrollTimer);this.source&&l(this.source.destroy)&&this.source.destroy()},purge:function(D){var C=this.items,A=function(F,G){C.forEach((l(F)&&F)||function(H){H[F]=G})},E={top:function(){A("top",0)},height:function(){A("height",0)},width:function(){A("width",0)},nodes:function(){A("node",null)},data:function(){A("data",null);this.allRecordsLoaded=false;this.lastPage=undefined;this.loadedItems=0;this.items=[];E.elements.call(this)},shims:function(){this.shims=[]},elements:function(){var G=this.currentPage,F=atlas(this.scrollRunway);atlas(this.config.appendTo).removeChildren();this.anchorItem={index:0,offset:0};this.currentPage=1;this.loadedItems=0;this.skippedItems=0;this.lastScrollDirection=undefined;this.anchorScrollTop=0;this.firstAttachedItem=0;this.lastAttachedItem=0;this.prevScrollLeft=0;this.allRecordsLoaded=false;this.lastPage=undefined;F.css({transform:null,msTransform:null});(m===true)&&F.height("");if(this.destroyed){return}if(G===1){this.onScroll({})}else{this.gotoPage(1)}this.config.onPageChange.call(this,G,this.currentPage,false)},all:function(){this.items=[];E.shims.call(this);E.elements.call(this)}},B=E[(D||"all").toLowerCase()];B&&B.call(this)}};return z}));(function(c){var d=c.limitless,a=d.prototype,e=function(g,h,f){d.call(this,g,h,f)},b=e.prototype=Object.create(a);b._getEstimatedScrollRunwayHeight=function(f){return(this.shimHeight*(f%this.config.pageSize))};b._commitCurrentPage=function(f){this.currentPage=f;if(!this.scroller.scrollTop){this.onScroll({})}};b._getDefaultAnchorItemIndex=function(){return((this.currentPage-1)*this.config.pageSize)};b.calculateAnchoredItem=function(h,f){var i=a.calculateAnchoredItem.call(this,h,f),g=(this.currentPage*this.config.pageSize)-1;if(i.index>g){i.index=g}return i};b._commitAttachedItems=function(k,f){var g=this.currentPage,i=this.config.pageSize,j=(g-1)*i,h=(g*i);a._commitAttachedItems.call(this,k,f);this.firstAttachedItem=Math.min(Math.max(this.firstAttachedItem,j),h);this.lastAttachedItem=Math.min(Math.max(this.lastAttachedItem,j),h)};b._padScrollRunwayHeight=function(){};b._adjustScrollRunwayHeight=function(){var h=(this.currentPage-1)*this.config.pageSize,f=(this.currentPage)*this.config.pageSize,g=this.items.slice(h,f);this.scrollRunwayEnd=g.reduce(function(j,i){j+=i.node?i.height:this.shimHeight;return j},0);this._setScrollRunwayHeight()};c.limitless.factory=function(f){var g;switch(f.renderingPolicy){case"paginate":g=e;break;case"infinite":default:g=d;break}return new g(f.scroller,f.source,f.options)}}(window.atlas));(function(){var c=atlas.noOp,a=atlas.isFunction,b=atlas.logger("atlas.gate"),d=new Promise(c),e=function(){};e.prototype.ignoreOutstanding=function(){this._expirationIncrementer++};e.prototype.gate=function(f,g){var i=this._expirationIncrementer,h=this;if(!a(f)){return b(".gate: callback must be of type function")}return function(){return(h._expirationIncrementer===i?f:g||c).apply(this,arguments)}};e.prototype.thenGate=function(f){return this.gate(f,function(){return d})};e.prototype._expirationIncrementer=0;atlas.gate=function(){return new e()}}());(function(f){var c="atlas.dynamicStyleSheet",d="atlas-dynamic-sheet",a=f.isObject,b=f.logger(c),e=function(i){return Object.keys(i).reduce(function(k,j){return k+=j+"{"+i[j]+";}"},"")},h=function(j,i){this._parentSheet=j;this.update(i)},g=function(l){var j=f(""),i=f("head"),k={type:"text/css"};if(!i.length){b.logError("Could not find the head element");return}if(!l.name){b.logWarn("A name should be provided to allow association between the sheet and the creator")}k[d]=l.name;j.attr(k);j.appendTo(i);this._sheet=j;this._options=l;this._entries=[]};g.prototype.addRule=function(j){if(!a(j)){return b.logError("oRules must be of type object")}var i=new h(this,j);this._entries.push(i);this.throttledWrite();return i};g.prototype.removeRule=function(j){var i=this._entries.indexOf(j);if(~i){this._entries.splice(i,1);this.throttledWrite()}};g.prototype.write=function(){this._sheet[0].innerHTML=this._entries.reduce(function(j,i){return j+=i.getRuleAsString()},"")};g.prototype.throttledWrite=function(){var i=this._throttledWrite;i||(i=this._throttledWrite=f.throttleToAnimationFrame(this.write.bind(this)));i()};g.prototype.destroy=function(){this._sheet.remove()};h.prototype.remove=function(){this._parentSheet.removeRule(this)};h.prototype.update=function(i){this._styleString=e(i);this._parentSheet.throttledWrite()};h.prototype.getRuleAsString=function(){return this._styleString};f.dynamicStyleSheet=function(i){return new g(i)}})(atlas);(function(){var a=atlas.noOp,b=function(c){};b.prototype.getValue=function(){return""};b.prototype.getText=function(){return""};b.prototype.setFocus=a;b.prototype.destroy=a;atlas.ui.emptyValueSelector=function(c){return new b(c)}})();(function(){var i,d,a="atlas.ui.textboxValueSelector",b=atlas.logger(a),f={onApply:{types:"function",required:true},placeholder:{types:"string"},value:{types:["string","number"]}},c=13,e={valueInput:"atlas--ui-filter-console-value-input",atlasUIInput:"atlas--ui-input"},g=function(k){var l=k.keyCode||k.which,m=k.type.toLowerCase();switch(m.toLowerCase()){case"keyup":case"input":case"change":this._onApply();break;case"keypress":if(l===c){k.preventDefault();this._onApply(true)}break;default:break}},h=function(){return atlas(d({placeholder:this._placeholder||"",value:this._text||this._value||""}))},j=function(k){if(!atlas.validateOptions(k,f,a,true).valid){return b.logError("Invalid options.",JSON.stringify(k))}if(!(this instanceof j)){return new j(k)}this._placeholder=k.placeholder;this._value=k.value;this._text=k.text||k.value;this._onApply=k.onApply;d||(d=atlas.Template.compile(i));this.element=this._input=h.call(this);this._input.on("keyup keypress input change",g.bind(this),null,false)};j.prototype.getValue=function(){return this._input.val()};j.prototype.getText=function(){return this._input.val()};j.prototype.setFocus=function(){var k=this._input[0];k&&k.focus()};j.prototype.destroy=function(){this._input&&this._input.remove();this._input=null};atlas.ui.textboxValueSelector=j;i=''})();(function(){var a=function(b){var c,d=[];this.valueSelectors=[];Array.prototype.slice.call(b).map(function(e){c=e.element;if(atlas.isAtlas(c)){c=c.toArray()}this.valueSelectors.push(e);d=d.concat(c)},this);this.element=atlas(d)};a.prototype.getValue=function(){return this.valueSelectors.map(function(b){return b.getValue()})};a.prototype.getText=function(){return this.valueSelectors.map(function(b){return b.getText()})};a.prototype.setFocus=function(){this.valueSelectors[0].setFocus()};a.prototype.destroy=function(){this.valueSelectors.map(function(b){return b.destroy()});this.valueSelectors=[]};atlas.ui.multipleValueSelector=function(){return new a(arguments)}})();(function(){var a=atlas.ui.textboxValueSelector,b=function(c){a.call(this,c)};b.prototype=Object.create(a.prototype);b.prototype.getValue=function(){return atlas.parseNumber(this._input.val())};atlas.ui.numericValueSelector=function(c){return new b(c)}})();(function(){var p,f,d=atlas.isArray,a="atlas.ui.lookupValueSelector",e=atlas.logger(a),h={onApply:{types:"function",required:true},field:{types:"object",required:true},value:{types:["object","number","string","array","null","undefined"]},text:{types:["string","number","array","null","undefined"]},placeholder:{types:"string"}},l=atlas.operatorHelper(),g={valueInput:"atlas--ui-filter-console-value-input",valueWrapper:"atlas--ui-filter-console-value-wrapper",atlasUIInput:"atlas--ui-input",atlasUIToggleButton:"atlas--ui-toggle-button",atlasUIDropdownToggle:"atlas--ui-dropdown-toggle"},m=function(){return atlas(f({placeholder:this._placeholder||"",value:this._value||""}))},c=function(){return{field:this._field,operatorHelper:l,onApply:j.bind(this),toggle:this._toggle,appendTarget:"body",operatorList:false,useTether:true}},j=function i(t,u){var w=this._filterPanel,r=w.getSelectedItems(),s=w.hasChildrenIncluded(),v=this._field.getFilterFromSelectedItems({items:r,includeChildren:s,operator:this._operator});this._operator=v.op;this._value=v.value;this._text=v.text;n.call(this,this._text);this._onApply()},n=function(r){this._input.val(d(r)?r.join(", "):r)},k=function(r){var s=this._filterPanel,t={};if(s.isOpen()){s.close();return}if(this._value){t.includeChildren=l.isHierarchyOperator(this._operator)}s.open(r,{target:this.element,preSelected:{field:this._field,value:this._value,text:this._text},options:t});s.positionToElement(this.element);r&&r.stop()},o=function(r){var s;if(!this._filterPanel){s=c.call(this);this._filterPanel=r.filterPanel(s).api()}this._toggle.off();this._toggle.on("click",k.bind(this),null,true)},b=function(r){var s=r||window.event,t=s.currentTarget||s.srcElement;t.blur()},q=function(r){if(!atlas.validateOptions(r,h,a,true).valid){return e.logError("Invalid options.",JSON.stringify(r))}if(!atlas.data.Field.isField(r.field)){return e.logError("field must be an instance of atlas.data.Field")}this._placeholder=r.placeholder;this._field=r.field;this._operator=r.operator;this._value=r.value;this._text=r.text;this._onApply=r.onApply;f||(f=atlas.Template.compile(p));this.element=m.call(this);this._input=this.element.find("input");this._toggle=this.element.find("button");o.call(this,this.element);n.call(this,this._text);this._input.on("focus",b)};q.prototype.getValue=function(){return this._value};q.prototype.getText=function(){return this._text};q.prototype.getOperator=function(){return this._operator};q.prototype.setFocus=function(){};q.prototype.destroy=function(){this._filterPanel&&this._filterPanel.destroy();this._filterPanel=null;this._toggle&&this._toggle.off();this._toggle=null;this._input&&this._input.off()&&this._input.remove();this._input=null;this.element&&this.element.remove();this.element=null};atlas.ui.lookupValueSelector=function(r){return new q(r)};p='
'})();(function(){var g=atlas.isArray,d=atlas.formatDate,r=atlas.date.toISOString,a="atlas.ui.dateValueSelector",h=atlas.logger(a),k={filter:{types:"object",required:true},onApply:{types:"function",required:true},placeholder:{types:"string"}},l=atlas.operatorHelper().getOperatorMap(),n=l.equal.name,m=l.between.name,j={valueInput:"atlas--ui-filter-console-value-input",valueWrapper:"atlas--ui-filter-console-value-wrapper",atlasUIInput:"atlas--ui-input",atlasUIToggleButton:"atlas--ui-toggle-button",atlasUIDropdownToggle:"atlas--ui-dropdown-toggle"},q,i,p=" - ",f=function(){this._dateSelector.open()},e=function(t){var u;if(!t){return""}u=atlas.parseDate(t);return d(u,"d","",true)},b=function(t){if(g(t)){return t.map(e).join(p)}return e(t)},c=function(t,u){var v=u.dateRange,x=v.start.value(),w=v.end.value(),B=u.start,y=u.end||"",z,A=v.input;z=y.length?B+p+y:B;A.value=z;this._value=w?[r(x),r(w)]:r(x);this._onApply()},o=function(t){var u=this;this.element=atlas(i({placeholder:this._placeholder||"",value:b.call(this,t.value)||""}));this._input=this.element.find("."+j.valueInput);this._atlToggle=this.element.find("button").on("click",this._boundHandleInputButtonClick);if(t.op==="between"){this._input.data("range","true")}this._input.dateRange({appendTarget:"body",showDateInInput:false,onApply:function(){c.apply(u,arguments)},openOnFocus:false});this._dateSelector=this._input.api()},s=function(t){if(!atlas.validateOptions(t,k,a,true).valid){return h.logError("Invalid options.",JSON.stringify(t))}i||(i=atlas.Template.compile(q));this._filter=t.filter;this._value=t.filter.value;this._placeholder=t.placeholder;this._onApply=t.onApply;this._boundHandleInputButtonClick=f.bind(this);o.call(this,t.filter)};s.prototype.getFilterForm=function(v){var w=atlas.extend({},v),x=w.op.toLowerCase(),y=w.value,u=atlas.isString(y),t=!u&&atlas.isArray(y);switch(x){case m:if(t&&y.length===1){x=n;y=y[0]}if(u&&y.indexOf(p)<0){x=n}break;case n:if(t&&y.length===2){x=m}if(u&&y.indexOf(p)>-1){x=m;y=y.split(p)}break;default:break}return{field:w.field,op:x,value:y}};s.prototype.getValue=function(){return this._value||""};s.prototype.setFocus=function(){};s.prototype.getText=function(){return this._input.val()};s.prototype.destroy=function(){this._atlToggle&&this._atlToggle.off();this._atlToggle=null;this._dateSelector&&this._dateSelector.destroy&&this._dateSelector.destroy();this._dateSelector=null;this._input&&this._input.off();this._input=null};atlas.ui.dateValueSelector=function(t){return new s(t)};q='
'})();(function(t){var b="atlas.ui.valueSelectorFactory",d={value:"FPO Value"},a=t.i18n,f=t.extend(true,{},d,a&&a.common),h=t.operatorHelper(),g=h.getOperatorMap(),m=g["in"].name,r=g.notIn.name,n=g.inHierarchy.name,s=g.notInHierarchy.name,j=g.equal.name,q=g.notEqual.name,i=g.between.name,k=g.greaterThan.name,l=g.greaterThanOrEqual.name,o=g.lessThan.name,p=g.lessThanOrEqual.name,c=t.logger(b),e={},u=function(v){if(!t.validateOptions(v,e,b,true).valid){return c.logError("Invalid options.")}this._operatorHelper=t.operatorHelper()};u.prototype.getValueSelector=function(v,w){var D,A=this,x=v.field(),y=v.getFilter(),C=y.value,B=y.text,z;if(v.hasOperator()){if(this._operatorHelper.isUnaryOperator(y.op)){return t.ui.emptyValueSelector({})}z=(x.dataType+="").toLowerCase();if(z.startsWith("date")){return t.ui.dateValueSelector({placeholder:f.value,field:x,filter:y,onApply:w.bind(this)})}if(z==="number"){if(y.op===i){return t.ui.multipleValueSelector(t.ui.numericValueSelector({placeholder:f.value,value:C&&C.length?C[0]:"",text:B&&B.length?B[0]:C[0],onApply:w.bind(this)}),t.ui.numericValueSelector({placeholder:f.value,value:C&&C.length?C[1]:"",text:B&&B.length?B[1]:C[1],onApply:w.bind(this)}))}return t.ui.numericValueSelector({placeholder:f.value,value:C,text:B?B:C,onApply:w.bind(this)})}if(z==="string"){switch(y.op){case i:return t.ui.multipleValueSelector(t.ui.textboxValueSelector({placeholder:f.value,value:C&&C.length?C[0]:"",text:B&&B.length?B[0]:C[0],onApply:w.bind(this)}),t.ui.textboxValueSelector({placeholder:f.value,value:C&&C.length?C[1]:"",text:B&&B.length?B[1]:C[1],onApply:w.bind(this)}));case k:case l:case o:case p:return t.ui.textboxValueSelector({placeholder:f.value,value:C,text:B?B:C,onApply:w.bind(this)})}}switch(y.op){case m:case r:case j:case q:case n:case s:if(x.supportsValueLookups()){D=t.ui.lookupValueSelector({field:x,operator:y.op,value:C,text:B||C||"",placeholder:f.value,onApply:function(E){var F=D.getOperator();v.setOperator(F);w.call(A,E)}});return D}}}D=t.ui.textboxValueSelector({placeholder:f.value,value:y.value?String(y.value):"",onApply:w.bind(this)});return D};u.prototype.destroy=function(){};t.ui.valueSelectorFactory=function(v){return new u(v)}}(window.atlas));(function(k){var a="atlas.ui.counter",i="atlas--ui-counter",b="data-count",d=k.format,f={pillInline:"atlas--pill-inline",animationStart:"counter-start"},m="~/bundles/libs/d3/d3/js",g={count:0,displayFormat:"{0:n0}",duration:1000,easeFn:"poly",easeValue:0.5},h=function(){var p=k(this.container).addClass(i+" "+f.pillInline);j(p,this.currentCount,this.options)},j=function(p,q,s){var r=d(s.displayFormat,[q]);p.attr(b,q).html(r)},c=function(p,r,q){d3.select(p).transition().duration(q.duration).ease(q.easeFn,q.easeValue).each("start",function(){d3.select(this).classed(f.animationStart,true)}).each("end",function(){d3.select(this).classed(f.animationStart,false)}).tween("text",function(){var s=d3.select(this),t=s.attr(b);s.attr(b,r);return e(t,r,function(v){var u=v;if(u!==t){s.text(d(q.displayFormat,[u]))}})})},e=function(p,q,s){var r=d3.interpolate(p,q);return function(u){s.call(this,r(u))}},l=function(q,p){p=k.extend({},g,p);l.prototype.base.call(this,q,p);this.currentCount=+p.count;h.call(this);if(typeof d3==="undefined"){k.require(m,{onError:function(r){k.logError("Failed to load D3 in "+a+"due to:",r)}})}};k.component({componentId:a},l);l.prototype.count=function o(p){var q,r;if(typeof p==="undefined"){return this.currentCount}this.currentCount=+p;q=this.container;r=this.options;if(typeof d3==="undefined"){j(k(q),this.currentCount,r)}else{c(q,this.currentCount,r)}};l.prototype.destroy=function n(){var p=k(this.container);p.removeGuid().removeApi().removeChildren()}})(window.atlas);(function(K){var d="atlas.ui.smartBar",i=function(R,O){var Q=O.length||0,P=function(T){var U=null,S,V;if(K.isNumber(T)){if((T>0)&&(T<=Q)){U=h(O[T-1])}}else{S=P(T.leftOperand);V=P(T.rightOperand);if(!S){U=V}else{if(!V){U=S}else{U={conditionalOp:T.conditionalOp,filters:[S,V]}}}}return U};return P(R)},h=function(O){return{op:O.op,field:O.field,value:O.value}},g=function(O){return O.match(/\d+/g)||[]},J=function(U,R){var P=[],O=g(U),T=Math.min.apply(null,O),S=Math.max.apply(null,O),Q=(S<=R)&&(T>0);Q||P.push(q.warnings.missingFilter);return{isValid:Q,warnings:P}},s=function(U,P){if(!K.isString(U)||!K.isArray(P)){K.logError("Invalid params, _parseSmartBarQuery");return{isValid:false,errors:[],warnings:null}}var T=J(U,P.length),S,O=null,Q=null;if(T.isValid===false){Q=T.warnings}try{S=K.parsers.conditional.parse(U)}catch(R){O=[q.errors.invalidQuery];return{isValid:false,errors:O,warnings:Q}}return{isValid:true,result:i(S,P),errors:O,warnings:Q}},y="atlas--ui-smart-bar",B="atlas--ui-tooltip",l={active:y+"-active",filterBar:y+"-filter-bar",filterPillContainer:y+"-filter-pills",filterPill:y+"-filter-pill",filterRemove:y+"-filter-remove",filterRemoveAll:y+"-filter-remove-all",conditionalFilter:y+"-conditional-filter",conditionalFilterActive:y+"-conditional-filter-active",conditionalFilterAvailable:y+"-conditional-filter-available",conditionalFilterToggle:y+"-conditional-filter-toggle",conditionalFilterInput:y+"-conditional-filter-input",tooltipBottom:B+"-bottom",tooltipError:B+"-error",tooltipWarning:B+"-warning",tooltipAlways:B+"-always"},k={dataIndex:"data-index",tooltip:"data-tooltip"},o={filterAdd:"onFilterAdd",filterRemove:"onFilterRemove",filterRemoveAll:"onFilterRemoveAll",filterChange:"onFilterChange"},p={name:{required:true,types:"string"},field:{required:true,types:"string"},op:{required:true,types:"string"},label:{required:false,types:"string"},value:{required:true,types:["string","array"]},alias:{required:true,types:"string"}},m={filterLogic:"Filter Logic",warnings:{missingFilter:"You have referred to a filter that is not present. That filter will be ignored."},errors:{invalidQuery:"Your filter query isn't valid. Please edit it and try again."}},q=K.extend(true,{},m,K.i18n&&K.i18n.smartBar),C=null,D=null,L=13,j=250,a=function(){var Q=K(this.container),O=Q.find("."+l.conditionalFilterInput),P=Q.find("."+l.conditionalFilterToggle),R=Q.find("."+l.filterRemoveAll);Q.on("click","."+l.filterRemove,u.bind(this),null,false);R.on("click",t.bind(this),null,false);P.on("click",K.debounce(E.bind(this),j,true));O.on("blur",b.bind(this)).on("keypress",r.bind(this),null,false)},v=function(P){var O=this.filters,Q=O[P];O.splice(P,1);H.call(this,P);F.call(this);G.call(this,this.conditionalFilterQuery,true,false,true);this.publish(o.filterRemove,Q);this.publish(o.filterChange,null)},u=function(Q){var P=K(Q.target),O=P.parent("."+l.filterPill),R=O.attr(k.dataIndex)-1;O.remove();v.call(this,R)},t=function(O){this.filters=[];K(this.container).find("."+l.filterPillContainer).removeChildren();F.call(this);G.call(this,"",false,false);this.publish(o.filterRemoveAll,null);this.publish(o.filterChange,null)},z="AND",c=function(){var P,O=this.filters||[];P=O.map(function(R,Q){return Q+1}).join(" "+z+" ");return P},f=function(){var O=this.filters||[],Q=O.length||0,P=O.map(h);return Q?Q>=2?{conditionalOp:z,filters:P}:P[0]:null},E=function(Q){var P=!this.isConditionalFilterActive,O=K(this.container),R;this.isConditionalFilterActive=P;if(P){O.addClass(l.conditionalFilterActive);R=this.conditionalFilterQuery;if(!R){R=c.call(this);G.call(this,R,false,false)}else{this.publish(o.filterChange,null)}}else{O.removeClass(l.conditionalFilterActive);this.publish(o.filterChange,null)}},A="\n",e=function(Q,T){var O=Q||T,R=K.isArray(O)?O.join(A):null,S=l.tooltipAlways+" "+l.tooltipBottom,P=K(this.container).find("."+l.conditionalFilter);if(R){P.attr(k.tooltip,R).addClass((Q?l.tooltipError:l.tooltipWarning)+" "+S)}else{P.attrRemove(k.tooltip).removeClass(l.tooltipError+" "+l.tooltipWarning+" "+S)}},b=function(){var P=K(this.container),O=P.find("."+l.conditionalFilterInput),Q=O.val();G.call(this,Q)},r=function(O){var P=O.keyCode||O.which;if(P===L){O.preventDefault();b.call(this)}else{e.call(this,null)}},I=function(P){var Q=K.validateOptions(P,{broadcast:{types:"boolean"},filters:{types:"array"},useConditionalFiltering:{types:"boolean"},isConditionalFilterActive:{types:"boolean"},conditionalFilterQuery:{types:"string"},onFilterAdd:{types:"function"},onFilterRemove:{types:"function"},onFilterRemoveAll:{types:"function"},onFilterChange:{types:"function"}},y),O=Q.invalidFields||[];if(O.length){K.deleteProperty(P,O)}return Q.valid},x=function(){if(C===null){C=K.Template.compile(K.templates["#atlas-smart-bar-template"])}var O=C({filters:this.filters,labels:q,useConditionalFiltering:this.options.useConditionalFiltering,query:this.conditionalFilterQuery});K(this.container).html(O).addClass(y)},M=2,w=function(){if(D===null){D=K.Template.compile(K.templates["#atlas-filter-pill-template"])}var S="",O=this.filters||[],Q=0,R=O.length||0,P=K(this.container);for(;Q=Q){return false}P=K(this.container).find("."+l.filterPill).eq(R);P.remove();v.call(this,R);return true};N.prototype.render=function(){w.call(this);F.call(this)};N.prototype.getCurrentFilter=function(){return(this.isConditionalFilterActive&&this.conditionalFilter)?this.conditionalFilter:f.call(this)};N.prototype.destroy=function(){var P=K(this.container),O=P.find("."+l.conditionalFilterInput);O.off();P.removeGuid().removeApi().removeChildren();this.unsubscribeEvents()}}(window.atlas));atlas.templates["#atlas-smart-bar-template"]='
# if (useConditionalFiltering) { ## } #
×
# if (useConditionalFiltering) { #
# } #';atlas.templates["#atlas-filter-pill-template"]='# var sFilterValue = "" + (filter.label || filter.value), sFilterName = filter.name, sFilterAlias = filter.alias; #
#: sFilterName # # if (sFilterAlias) { ##: sFilterAlias # # } ## if (sFilterValue) { ##: sFilterValue # # } #×
';(function(b,a){typeof exports==="object"&&typeof module!=="undefined"?module.exports=a():typeof define==="function"&&define.amd?define(a):(b.Popper=a());if(typeof window!=="undefined"&&!window.Popper){window.Popper=a()}}(this,(function(){var ai=["native code","[object MutationObserverConstructor]"];var ab=(function(i){return ai.some(function(aD){return(i||"").toString().indexOf(aD)>-1})});var U=typeof window!=="undefined";var af=["Edge","Trident","Firefox"];var az=0;for(var R=0;R=0){az=1;break}}function ag(aE){var aH=false;var aF=0;var aD=document.createElement("span");var aG=new MutationObserver(function(){aE();aH=false});aG.observe(aD,{attributes:true});return function(){if(!aH){aH=true;aD.setAttribute("x-index",aF);aF=aF+1}}}function ay(i){var aD=false;return function(){if(!aD){aD=true;setTimeout(function(){aD=false;i()},az)}}}var ax=U&&ab(window.MutationObserver);var l=ax?ag:ay;function ac(i){return i!==""&&!isNaN(parseFloat(i))&&isFinite(i)}function au(i,aD){Object.keys(aD).forEach(function(aE){var aF="";if(["width","height","top","right","bottom","left"].indexOf(aE)!==-1&&ac(aD[aE])){aF="px"}i.style[aE]=aD[aE]+aF})}function W(i){var aD={};return i&&aD.toString.call(i)==="[object Function]"}function M(aD,aE){if(aD.nodeType!==1){return[]}var i=window.getComputedStyle(aD,null);return aE?i[aE]:i}function F(i){if(i.nodeName==="HTML"){return i}return i.parentNode||i.host}function K(aD){if(!aD||["HTML","BODY","#document"].indexOf(aD.nodeName)!==-1){return window.document.body}var i=M(aD),aE=i.overflow,aF=i.overflowX,aG=i.overflowY;if(/(auto|scroll)/.test(aE+aG+aF)){return aD}return K(F(aD))}function ad(i){var aD=i.nodeName;if(aD==="BODY"){return false}return aD==="HTML"||i.firstElementChild.offsetParent===i}function I(i){if(i.parentNode!==null){return I(i.parentNode)}return i}function A(i){var aE=i&&i.offsetParent;var aD=aE&&aE.nodeName;if(!aD||aD==="BODY"||aD==="HTML"){return window.document.documentElement}return aE}function s(aD,aF){if(!aD||!aD.nodeType||!aF||!aF.nodeType){return window.document.documentElement}var aH=aD.compareDocumentPosition(aF)&Node.DOCUMENT_POSITION_FOLLOWING;var aJ=aH?aD:aF;var aG=aH?aF:aD;var aI=document.createRange();aI.setStart(aJ,0);aI.setEnd(aG,0);var i=aI.commonAncestorContainer;if(aD!==i&&aF!==i||aJ.contains(aG)){if(ad(i)){return i}return A(i)}var aE=I(aD);if(aE.host){return s(aE.host,aF)}else{return s(aD,I(aF).host)}}function J(i){var aG=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";var aH=aG==="top"?"scrollTop":"scrollLeft";var aE=i.nodeName;if(aE==="BODY"||aE==="HTML"){var aD=window.document.documentElement;var aF=window.document.scrollingElement||aD;return aF[aH]}return i[aH]}function S(aE,i){var aH=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var aG=J(i,"top");var aF=J(i,"left");var aD=aH?-1:1;aE.top+=aG*aD;aE.bottom+=aG*aD;aE.left+=aF*aD;aE.right+=aF*aD;return aE}function w(aF,i){var aD=i==="x"?"Left":"Top";var aE=aD==="Left"?"Right":"Bottom";return +aF["border"+aD+"Width"].split("px")[0]+ +aF["border"+aE+"Width"].split("px")[0]}var X=undefined;var Y=function(){if(X===undefined){X=navigator.appVersion.indexOf("MSIE 10")!==-1}return X};function L(i,aD,aF,aE){return Math.max(aD["offset"+i],aF["client"+i],aF["offset"+i],Y()?aF["offset"+i]+aE["margin"+(i==="Height"?"Top":"Left")]+aE["margin"+(i==="Height"?"Bottom":"Right")]:0)}function P(){var i=window.document.body;var aE=window.document.documentElement;var aD=Y()&&window.getComputedStyle(aE);return{height:L("Height",i,aE,aD),width:L("Width",i,aE,aD)}}var g=function(aD,i){if(!(aD instanceof i)){throw new TypeError("Cannot call a class as a function")}};var k=function(){function i(aG,aF){for(var aE=0;aE5&&arguments[5]!==undefined?arguments[5]:0;if(aH.indexOf("auto")===-1){return aH}var i=x(aI,aK,aG,aD);var aJ={top:{width:i.width,height:aL.top-i.top},right:{width:i.right-aL.right,height:i.height},bottom:{width:i.width,height:i.bottom-aL.bottom},left:{width:aL.left-i.left,height:i.height}};var aM=Object.keys(aJ).map(function(aO){return a({key:aO},aJ[aO],{area:v(aJ[aO])})}).sort(function(aO,aP){return aP.area-aO.area});var aF=aM.filter(function(aO){var aQ=aO.width,aP=aO.height;return aQ>=aI.clientWidth&&aP>=aI.clientHeight});var aE=aF.length>0?aF[0].key:aM[0].key;var aN=aH.split("-")[1];return aE+(aN?"-"+aN:"")}function H(aF,aD,aE){var i=s(aD,aE);return B(aE,i)}function E(i){var aE=window.getComputedStyle(i);var aF=parseFloat(aE.marginTop)+parseFloat(aE.marginBottom);var aG=parseFloat(aE.marginLeft)+parseFloat(aE.marginRight);var aD={width:i.offsetWidth+aG,height:i.offsetHeight+aF};return aD}function C(aD){var i={left:"right",right:"left",bottom:"top",top:"bottom"};return aD.replace(/left|right|bottom|top/g,function(aE){return i[aE]})}function G(aG,aJ,aF){aF=aF.split("-")[0];var aI=E(aG);var aH={width:aI.width,height:aI.height};var i=["right","left"].indexOf(aF)!==-1;var aD=i?"top":"left";var aL=i?"left":"top";var aE=i?"height":"width";var aK=!i?"height":"width";aH[aD]=aJ[aD]+aJ[aE]/2-aI[aE]/2;if(aF===aL){aH[aL]=aJ[aL]-aI[aK]}else{aH[aL]=aJ[C(aL)]}return aH}function r(i,aD){if(Array.prototype.find){return i.find(aD)}return i.filter(aD)[0]}function t(i,aE,aF){if(Array.prototype.findIndex){return i.findIndex(function(aG){return aG[aE]===aF})}var aD=r(i,function(aG){return aG[aE]===aF});return i.indexOf(aD)}function ar(aE,i,aD){var aF=aD===undefined?aE:aE.slice(0,t(aE,"name",aD));aF.forEach(function(aH){if(aH["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var aG=aH["function"]||aH.fn;if(aH.enabled&&W(aG)){i=aG(i,aH)}});return i}function aB(){if(this.state.isDestroyed){return}var i={instance:this,styles:{},attributes:{},flipped:false,offsets:{}};i.offsets.reference=H(this.state,this.popper,this.reference);i.placement=j(this.options.placement,i.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);i.originalPlacement=i.placement;i.offsets.popper=G(this.popper,i.offsets.reference,i.placement);i.offsets.popper.position="absolute";i=ar(this.modifiers,i);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(i)}else{this.options.onUpdate(i)}}function Z(aD,i){return aD.some(function(aE){var aG=aE.name,aF=aE.enabled;return aF&&aG===i})}function N(aG){var aF=[false,"ms","webkit","moz","o"];var aI=aG.charAt(0).toUpperCase()+aG.slice(1);for(var aD=0;aDaM[aJ]){aG.offsets.popper[aO]+=aN[aO]+aE-aM[aJ]}var aF=aN[aO]+aN[aI]/2-aE/2;var aP=aF-z(aG.offsets.popper)[aO];aP=Math.max(Math.min(aM[aI]-aE,aP),0);aG.arrowElement=aD;aG.offsets.arrow={};aG.offsets.arrow[aO]=Math.floor(aP);aG.offsets.arrow[i]="";return aG}function D(i){if(i==="end"){return"start"}else{if(i==="start"){return"end"}}return i}var an=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];var aC=an.slice(3);function h(aF){var aD=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var aE=aC.indexOf(aF);var i=aC.slice(aE+1).concat(aC.slice(0,aE));return aD?i.reverse():i}var f={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function u(aD,aF){if(Z(aD.instance.modifiers,"inner")){return aD}if(aD.flipped&&aD.placement===aD.originalPlacement){return aD}var i=x(aD.instance.popper,aD.instance.reference,aF.padding,aF.boundariesElement);var aG=aD.placement.split("-")[0];var aH=C(aG);var aI=aD.placement.split("-")[1]||"";var aE=[];switch(aF.behavior){case f.FLIP:aE=[aG,aH];break;case f.CLOCKWISE:aE=h(aG);break;case f.COUNTERCLOCKWISE:aE=h(aG,true);break;default:aE=aF.behavior}aE.forEach(function(aV,aL){if(aG!==aV||aE.length===aL+1){return aD}aG=aD.placement.split("-")[0];aH=C(aG);var aT=z(aD.offsets.popper);var aU=aD.offsets.reference;var aK=Math.floor;var aS=aG==="left"&&aK(aT.right)>aK(aU.left)||aG==="right"&&aK(aT.left)aK(aU.top)||aG==="bottom"&&aK(aT.top)aK(i.right);var aR=aK(aT.top)aK(i.bottom);var aO=aG==="left"&&aP||aG==="right"&&aQ||aG==="top"&&aR||aG==="bottom"&&aN;var aM=["top","bottom"].indexOf(aG)!==-1;var aJ=!!aF.flipVariations&&(aM&&aI==="start"&&aP||aM&&aI==="end"&&aQ||!aM&&aI==="start"&&aR||!aM&&aI==="end"&&aN);if(aS||aO||aJ){aD.flipped=true;if(aS||aO){aG=aE[aL+1]}if(aJ){aI=D(aI)}aD.placement=aG+(aI?"-"+aI:"");aD.offsets.popper=a({},aD.offsets.popper,G(aD.instance.popper,aD.offsets.reference,aD.placement));aD=ar(aD.instance.modifiers,aD,"flip")}});return aD}function ae(i){var aI=z(i.offsets.popper);var aJ=i.offsets.reference;var aH=i.placement.split("-")[0];var aD=Math.floor;var aE=["top","bottom"].indexOf(aH)!==-1;var aK=aE?"right":"bottom";var aG=aE?"left":"top";var aF=aE?"width":"height";if(aI[aK]aD(aJ[aK])){i.offsets.popper[aG]=aD(aJ[aK])}return i}function aA(aJ,aD,aE,aG){var aI=aJ.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var aL=+aI[1];var aK=aI[2];if(!aL){return aJ}if(aK.indexOf("%")===0){var i=void 0;switch(aK){case"%p":i=aE;break;case"%":case"%r":default:i=aG}var aF=z(i);return aF[aD]/100*aL}else{if(aK==="vh"||aK==="vw"){var aH=void 0;if(aK==="vh"){aH=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{aH=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return aH/100*aL}else{return aL}}}function am(aF,aI,aJ,i){var aG=[0,0];var aL=["right","left"].indexOf(i)!==-1;var aE=aF.split(/(\+|\-)/).map(function(aM){return aM.trim()});var aD=aE.indexOf(r(aE,function(aM){return aM.search(/,|\s/)!==-1}));if(aE[aD]&&aE[aD].indexOf(",")===-1){console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.")}var aK=/\s*,\s*|\s+/;var aH=aD!==-1?[aE.slice(0,aD).concat([aE[aD].split(aK)[0]]),[aE[aD].split(aK)[1]].concat(aE.slice(aD+1))]:[aE];aH=aH.map(function(aP,aM){var aN=(aM===1?!aL:aL)?"height":"width";var aO=false;return aP.reduce(function(aQ,aR){if(aQ[aQ.length-1]===""&&["+","-"].indexOf(aR)!==-1){aQ[aQ.length-1]=aR;aO=true;return aQ}else{if(aO){aQ[aQ.length-1]+=aR;aO=false;return aQ}else{return aQ.concat(aR)}}},[]).map(function(aQ){return aA(aQ,aN,aI,aJ)})});aH.forEach(function(aN,aM){aN.forEach(function(aO,aP){if(ac(aO)){aG[aM]+=aO*(aN[aP-1]==="-"?-1:1)}})});return aG}function aj(aF,aD){var aG=aD.offset;var aI=aF.placement,i=aF.offsets,aJ=i.popper,aK=i.reference;var aE=aI.split("-")[0];var aH=void 0;if(ac(+aG)){aH=[+aG,0]}else{aH=am(aG,aJ,aK,aE)}if(aE==="left"){aJ.top+=aH[0];aJ.left-=aH[1]}else{if(aE==="right"){aJ.top+=aH[0];aJ.left+=aH[1]}else{if(aE==="top"){aJ.left+=aH[0];aJ.top-=aH[1]}else{if(aE==="bottom"){aJ.left+=aH[0];aJ.top+=aH[1]}}}}aF.popper=aJ;return aF}function ap(aF,aG){var aD=aG.boundariesElement||A(aF.instance.popper);var i=x(aF.instance.popper,aF.instance.reference,aG.padding,aD);aG.boundaries=i;var aH=aG.priority;var aI=z(aF.offsets.popper);var aE={primary:function aJ(aL){var aM=aI[aL];if(aI[aL]i[aM]&&!aG.escapeWithReference){aN=Math.min(aI[aL],i[aM]-(aM==="right"?aI.width:aI.height))}return n({},aL,aN)}};aH.forEach(function(aL){var aM=["left","top"].indexOf(aL)!==-1?"primary":"secondary";aI=a({},aI,aE[aM](aL))});aF.offsets.popper=aI;return aF}function aw(aD){var aG=aD.placement;var i=aG.split("-")[0];var aK=aG.split("-")[1];if(aK){var aI=aD.offsets.reference;var aH=z(aD.offsets.popper);var aE=["bottom","top"].indexOf(i)!==-1;var aL=aE?"left":"top";var aF=aE?"width":"height";var aJ={start:n({},aL,aI[aL]),end:n({},aL,aI[aL]+aI[aF]-aH[aF])};aD.offsets.popper=a({},aH,aJ[aK])}return aD}function Q(aD){if(!aa(aD.instance.modifiers,"hide","preventOverflow")){return aD}var aE=aD.offsets.reference;var i=r(aD.instance.modifiers,function(aF){return aF.name==="preventOverflow"}).boundaries;if(aE.bottomi.right||aE.top>i.bottom||aE.right2&&arguments[2]!==undefined?arguments[2]:{};g(this,aF);this.scheduleUpdate=function(){return requestAnimationFrame(aH.update)};this.update=l(this.update.bind(this));this.options=a({},aF.Defaults,aJ);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=aL.jquery?aL[0]:aL;this.popper=aK.jquery?aK[0]:aK;au(this.popper,{position:"absolute"});this.options.modifiers={};Object.keys(a({},aF.Defaults.modifiers,aJ.modifiers)).forEach(function(aM){aH.options.modifiers[aM]=a({},aF.Defaults.modifiers[aM]||{},aJ.modifiers?aJ.modifiers[aM]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(aM){return a({name:aM},aH.options.modifiers[aM])}).sort(function(aM,aN){return aM.order-aN.order});this.modifiers.forEach(function(aM){if(aM.enabled&&W(aM.onLoad)){aM.onLoad(aH.reference,aH.popper,aH.options,aM,aH.state)}});this.update();var aI=this.options.eventsEnabled;if(aI){this.enableEventListeners()}this.state.eventsEnabled=aI}k(aF,[{key:"update",value:function aG(){return aB.call(this)}},{key:"destroy",value:function i(){return o.call(this)}},{key:"enableEventListeners",value:function aE(){return q.call(this)}},{key:"disableEventListeners",value:function aD(){return p.call(this)}}]);return aF}();ao.Utils=(typeof window!=="undefined"?window:global).PopperUtils;ao.placements=an;ao.Defaults=m;return ao})));(function(i,j){var b="atlas.ui.tether",e=j,f=new i.Logger(b),c=i.isElement,d=i.isFunction,a=i.extend,h={elRef:{types:["atlas","element"],required:true},elTar:{types:["atlas","element"],required:true},options:{types:["object"],required:false}},g={options:{placement:"bottom-start"}};function l(m,o,q){var n=c(m)?m:m[0],p=c(o)?o:o[0];this._DOM={ref:n,tar:p};this._library=new e(n,p,q);return this}l.prototype.update=function(){if(d(this._library.update)){this._library.update();return true}return false};l.prototype.destroy=function(){this._library.destroy();this._library=null;this._DOM=null;return true};function k(m,n,p){var o={elRef:m,elTar:n,options:p},r=a({},g.options,o.options),q=a({},g,o);if(!i.validateOptions(q,h,b,true).valid){return f.logError("Invalid options.",JSON.stringify(p))}if(!d(e)){return f.logError("Library unavailable.")}return new l(m,n,r)}i.ui.tether=k}(window.atlas,Popper));(function(K){var n=K.isNumber,k=K.extend,c=K.template,f="atlas.ui.filterConsole",q=K.logger(f),x={addFilter:"Invalid filter, disregarding..."},E="atlas--ui-filter-console",s={consoleContainer:E,tools:E+"-tools",status:E+"-status",statusLogicText:E+"-status-logic-text",value:E+"-value",valueInput:E+"-value-input",valueInputWrapper:E+"-value-input-wrapper",consoleBar:E+"-bar",statusHasFilters:E+"-has-filters",filterItemsContainer:E+"-items",filterItem:E+"-item",filterStatusText:E+"-status-text",logicMessageContainer:E+"-logic-message",noIconButton:"atlas--ui-icon-button",removeAllActions:E+"-remove-all-actions",clearFilterText:E+"-clear-filter-text",consoleBarOpen:"atlas--console-is-open",hasFilter:"atlas--console-has-filter",hasMultiFilters:"atlas--console-has-multiple-filters",fullExpandedMode:"atlas--console-show-all-filters",hasEditMode:E+"-filter-edit-mode",atlasUIButtonAddFilter:"atlas--ui-button-add-filter",atlasUIButtonAddPrimary:"atlas--ui-button-add-primary",atlasUIButtonRemove:"atlas--ui-button-remove-no-bg",atlasUIButtonRemoveAll:"atlas--ui-button-remove-all",atlasUIButtonToggleCollapse:"atlas--ui-button-toggle-collapse",atlasUIToggleCollapseText:"atlas--ui-toggle-collapse-text",atlasUIFilterButton:"atlas--ui-filter-button",logicBarDisabled:E+"-logic-bar-disabled atlas--ui-tooltip atlas--ui-tooltip-warning atlas--ui-tooltip-top"},r={tooltip:"data-tooltip"},v={filterChange:"onFilterChange",expand:"onExpand",collapse:"onCollapse"},t={filterApplied:"FPO Filter applied",filtersApplied:"FPO Filters applied",childrenSelected:"FPO Indicates {0} Children are Selected",apply:"FPO apply",cancel:"FPO Cancel",clearAll:"FPO Clear All",clearFilters:"FPO Clear Filters",confirm:"FPO Confirm",collapse:"FPO Collapse",createAFilterWithExample:"FPO Create a filter (i.e. GL Balance > 2,000)",lDefault:"FPO Default",lDelete:"FPO Delete",edit:"FPO Edit",expand:"FPO Expand",field:"FPO Field",logic:"FPO Logic",nonVisibleColumns:"FPO Non-Visible Columns",operator:"FPO Operator",value:"FPO Value",selected:"FPO Selected",conditionalFilteringDisabled:"FPO Conditional filtering is currently unavailable"},b=K.i18n,w=k(true,{},t,b&&b.common,b&&b.filterConsole),F=null,u={useConditionalFiltering:true,disableConditionalFiltering:false,conditionalFilterQuery:null,filters:null,onFilterChange:null},J=function(N){var O=K.validateOptions(N,{fieldProvider:{types:["function"],required:true},getField:{types:"function",required:true},valueSelectorFactory:{types:["object","function"]},filters:{types:"array"},useConditionalFiltering:{types:"boolean"},conditionalFilterQuery:{types:"string"},onFilterChange:{types:"function"}},E),M=O.invalidFields||[];if(M.length){K.deleteProperty(N,M)}return O.valid},D=function(){var M=F({labels:w});return K(this.container).html(M).addClass(E)},h=function(M){var R=this,O=M.find("."+s.statusLogicText),Q=this._options.conditionalFilterQuery,P=this._options.disableConditionalFiltering,N=O.filterConsoleLogicBar({conditionalFilterQuery:Q,disabled:P,container:M,filterProvider:function(){return R.getFilters()},onApply:function(){R.publish(v.filterChange,null);I.call(R);R._elems.consoleBarToggleBtn.focus()}});if(P){N.addClass(s.logicBarDisabled).attr(r.tooltip,this._i18n.conditionalFilteringDisabled)}return N.api()},C=function(M){var N=this;this._filterItems=[];(M||[]).forEach(function(P){var O=B.call(N,K.filterBuilder(P));N._elems.filterItemsContainer.append(O);N._filterItems.push(O.api())})},B=function(N){var P=this,M=K('
  • ').filterConsoleItem({fieldProvider:this._fieldProvider,getField:this._getField,hideSearchItemsPanelButtons:this.options&&this.options.hideSearchItemsPanelButtons,valueSelectorFactory:this._valueSelectorFactory,filterBuilder:N,onApply:function(T,S){var Q=S.isNew,R=M.index();if(Q){P._logicBar&&P._logicBar.addCondition(R+1)}P.publish(v.filterChange,null);p.call(P)},onCancel:function(){p.call(P)},onDelete:function(R,Q){e.call(P,O);O.destroy();A.call(P,Q.index);!P.isInEditMode()&&p.call(P)},onEdit:function(){e.call(P,O);j.call(P);O.setFocus()}}),O=M.api();return M},a=function(){var M=this._elems;M.addBtn.on("click",l.bind(this),null,true);M.consoleBarToggleBtn.on("click",G.bind(this),null,true);M.removeAllButton.on("click",z.bind(this),null,true);M.filterStatusText.on("click",l.bind(this),null,true)},m=function(M){var N=this._elems;N.consoleContainer=M;N.consoleBar=M.find("."+s.consoleBar);N.addBtn=M.find("."+s.atlasUIButtonAddFilter);N.consoleBarToggleBtn=M.find("."+s.atlasUIButtonToggleCollapse);N.filterItemsContainer=M.find("."+s.filterItemsContainer);N.removeAllButton=M.find("."+s.atlasUIButtonRemoveAll);N.filterStatusText=M.find("."+s.filterStatusText);N.logicMessageContainer=M.find("."+s.logicMessageContainer);N.filterAddBtnPrimary=M.find("."+s.atlasUIButtonAddPrimary)},z=function(){this._filterItems.forEach(function(M){M.destroy()});this._filterItems=[];this._elems.filterItemsContainer.removeChildren();this._logicBar.removeAll();this.publish(v.filterChange,null);i.call(this);H.call(this);d.call(this)},e=function(N){var M=this._filterItems||[],O=M.length-1,P;for(;O>=0;O--){P=M[O];if(P!==N&&P.isInEditMode()){if(P.getAppliedFilter()){P.cancel()}else{P.destroy();M.splice(O,1)}}}},l=function(Q){var M=K(Q.target),O=M.hasClass(s.statusHasFilters),P=this.isInEditMode(),N;if(P||O){y.call(this);return}N=B.call(this,K.filterBuilder());N.appendTo(this._elems.filterItemsContainer);this._filterItems.push(N.api());H.call(this)},p=function(){i.call(this);H.call(this)},j=function(){y.call(this);K(this.container).addClass(s.hasEditMode)},i=function(){K(this.container).removeClass(s.hasEditMode)},G=function(){var M=this._elems.consoleContainer,N=s.consoleBarOpen;M.toggleClass(N);if(M.hasClass(N)){this.publish(v.expand,null)}else{this.publish(v.collapse,null)}},y=function(){var M=this._elems.consoleContainer,N=s.consoleBarOpen;if(!M.hasClass(N)){M.addClass(N);this.publish(v.expand,null)}},d=function(){var M=this._elems.consoleContainer,N=s.consoleBarOpen;if(M.hasClass(N)){M.removeClass(N);this.publish(v.collapse,null)}},g=function(M){var P=this,R=M.length,Z="("+R+") ",Y=w.filterApplied+" – ",X=w.filtersApplied+" – ",V,Q=0,T={},O=[],S,W,U;V=Z+(R>1?X:Y);for(;Q0){O.addClass(s.statusHasFilters).html(g.call(this,M))}else{O.removeClass(s.statusHasFilters).html(O.attr("data-placeholder-text"))}},A=function(N){var M=this._filterItems;M.splice(N,1);this._logicBar.removeCondition(N+1);!M.length&&d.call(this);this.publish(v.filterChange,null)},H=function(){var N=this.getFilters(),O=N.length>>>0,M=this._elems.consoleContainer;O>=1?M.addClass(s.hasFilter):M.removeClass(s.hasFilter);O>=2?M.addClass(s.hasMultiFilters):M.removeClass(s.hasMultiFilters);O>=4?M.addClass(s.fullExpandedMode):M.removeClass(s.fullExpandedMode);I.call(this)},o=function(M){return !!this._getField(M.field)},L=function(O,N){var M;F||(F=c(K.templates["#atlas-filter-console-template"]));N||(N={});J(N);this._options=N=k({},u,N);L.prototype.base.call(this,O,N);this._i18n=k({},w,N.i18n);this.target=K.makeGUID();K.registry.set(O,this,{component:"filterConsole"});this._fieldProvider=N.fieldProvider;this._getField=N.getField;this._valueSelectorFactory=N.valueSelectorFactory;this._filters=N.filters?N.filters.filter(o.bind(this)):[];this._filterItems=[];this._elems={consoleBar:undefined,addBtn:undefined,consoleBarToggleBtn:undefined,filterItemInputsContainer:undefined,consoleContainer:undefined,filterItemsContainer:undefined,filterStatusText:undefined,logicMessageContainer:undefined,filterAddBtnPrimary:undefined};M=D.call(this);this._logicBar=h.call(this,M);m.call(this,M);this.render();a.call(this);this.subscribeEvents(N)};K.component({componentId:f,events:K.utils.values(v)},L);L.prototype.getFilters=function(){return(this._filterItems||[]).map(function M(N){return N.getAppliedFilter()}).filter(K.identity)};L.prototype.isInEditMode=function(){return(this._filterItems||[]).some(function M(N){return N.isInEditMode()})};L.prototype.getEditingFilter=function(){var M=(this._filterItems||[]).filter(function(N){return N.isInEditMode()});return M.length?M[0]:null};L.prototype.addFilter=function(P){var N=K.filterBuilder(P),M,O;if(!this._getField(N.field().name)){q.logWarn(x.addFilter,P);return false}e.call(this);M=B.call(this,N);M.appendTo(this._elems.filterItemsContainer);O=M.api();this._filterItems.push(O);if(!O.isInEditMode()){this._logicBar.addCondition(M.index()+1);this.publish(v.filterChange,null)}H.call(this);return true};L.prototype.removeFilter=function(R){var M=this.getFilters(),P=(M&&M.length)||0,Q,N,O;if(!P){return false}Q=n(R)?R:M.indexOf(R);if(Q<0||Q>=P){return false}N=K(this.container).find("."+s.filterItem).eq(Q);O=N.api();O.destroy();A.call(this,Q);H.call(this);return true};L.prototype.open=function(){y.call(this)};L.prototype.close=function(){d.call(this)};L.prototype.closeEditMode=function(){e.call(this);p.call(this)};L.prototype.render=function(){C.call(this,this._filters);this._logicBar&&this._logicBar.updateLogic();H.call(this)};L.prototype.state=function(N){var O,M,P;if(N){O=k(true,{},N)||{};M=(O.filters||[]).filter(o.bind(this));z.call(this);if((P=O.conditionalFilterQuery)){this._logicBar.setConditionalFilterQuery(P)}this._filters=M;this.render()}else{O={filters:this.getFilters(),conditionalFilterQuery:this._logicBar.getConditionalFilterQuery()}}return O};L.prototype.getCurrentFilter=function(){return this._logicBar.getConditionalFilter()};L.prototype.destroy=function(){var M=K(this.container),N=this._elems;this._filterItems.forEach(function(O){O.destroy()});this._filterItems=[];N.consoleContainer.off();this._logicBar.destroy();N.addBtn.off();N.consoleBarToggleBtn.off();N.removeAllButton.off();N.filterStatusText.off();N.filterItemsContainer.off();M.removeGuid().removeApi().removeChildren();this.unsubscribeEvents()};K.templates["#atlas-filter-console-template"]='
      '}(window.atlas));(function(K){var q=K.isObject,r=K.isUndefined,i=K.extend,d=K.template,g="atlas.ui.filterConsoleItem",s=K.logger(g),w={fieldProvider:{types:"function",required:true},getField:{types:"function",required:true},valueSelectorFactory:{types:["object","function","null","undefined"]},filterBuilder:{types:["object","null","undefined"]}},D="atlas--ui-filter-console",t={filterItemContent:D+"-item-content",filterActionCancel:D+"-filter-action-cancel",filterActionConfirm:D+"-filter-action-confirm",filterActionDelete:D+"-inline-action-delete",filterActionEdit:D+"-inline-action-edit",inlineActions:D+"-inline-actions",column:D+"-column",editableElement:D+"-editable-element",columnInput:D+"-column-input",columnSearchPanel:D+"-column-search-panel",operator:D+"-operator",operatorDropdown:D+"-operator-dropdown",value:D+"-value",valueInput:D+"-value-input",valueInputWrapper:D+"-value-input-wrapper",filterItem:D+"-item",filterItemInputsContainer:D+"-item-condition-container",detachedOperatorDropdown:"atlas--ui-operator-selection-dropdown",atlasUIButtonTextStyle:"atlas--ui-button-text-style",atlasUIIconChildren:"atlas--ui-icon-children-indicator",atlasUIInput:"atlas--ui-input",atlasUIToolTip:"atlas--ui-tooltip"},v={onApply:"onApply",onDelete:"onDelete",onEdit:"onEdit",onCancel:"onCancel"},u={filterApplied:"FPO Filter applied",filtersApplied:"FPO Filters applied",childrenSelected:"FPO Indicates {0} Children are Selected",apply:"FPO apply",cancel:"FPO Cancel",clearAll:"FPO Clear All",clearFilters:"FPO Clear Filters",confirm:"FPO Confirm",collapse:"FPO Collapse",createAFilterWithExample:"FPO Create a filter (i.e. GL Balance > 2,000)",lDefault:"FPO Default",lDelete:"FPO Delete",edit:"FPO Edit",expand:"FPO Expand",field:"FPO Field",logic:"FPO Logic",nonVisibleColumns:"FPO Non-Visible Columns",operator:"FPO Operator",value:"FPO Value",selected:"FPO Selected"},c=K.i18n,x=i(true,{},u,c&&c.common,c&&c.filterConsole),H=null,G=null,a=function(){this._atlFilterItem.on("click","."+t.column+" ."+t.columnInput,j.bind(this),null,true).on("click","."+t.filterActionCancel,f.bind(this),null,true).on("click","."+t.filterActionConfirm,k.bind(this),null,true).on("click","."+t.filterActionDelete,l.bind(this),null,true).on("click","."+t.filterItemContent,m.bind(this),null,true).on("click","."+t.filterActionEdit,m.bind(this),null,true)},m=function(){A.call(this)},l=function(N){var M=K(N.target),O=M.parents("."+t.filterItem).index(),P=this._filterBuilder.getFilter();this.publish(v.onDelete,{filter:P,index:O})},j=function(O){var N=K(O.target),M=N.parent("."+t.column);M.api().toggle()},k=function(){b.call(this)},h=function(){this._searchItemsPanel&&this._searchItemsPanel.destroy();this._searchItemsPanel=null;this._operatorDropdown&&this._operatorDropdown.destroy();this._operatorDropdown=null;this._currentValueSelector&&this._currentValueSelector.destroy();this._currentValueSelector=null},F=function(){var M=this._atlFilterItem,N=M.find("."+t.valueInputWrapper),O,P;if(this._currentValueSelector){this._currentValueSelector.destroy()}if(N){N.children().remove()}this._currentValueSelector=P=this._valueSelectorFactory.getValueSelector(this._filterBuilder,o.bind(this));O=K(P.element);if(O.length){N.append(O)}this.setFocus()},f=function(){var N=this._filterBuilder.getFilter(),M=this._atlFilterItem.index();h.call(this);if(!this._appliedFilter){this.publish(v.onDelete,{filter:N,index:M})}else{this._filterBuilder=K.filterBuilder(this._appliedFilter);I.call(this);B.call(this);this.publish(v.onCancel,{filter:this._appliedFilter,index:M})}},o=function(M){var N=this._filterBuilder,P=this._currentValueSelector.getValue(),O=this._currentValueSelector.getText();P=!r(P)?P:"";N.setValue(P);N.setText(O);J.call(this);if(M===true){b.call(this)}},J=function(){var Q=this._filterBuilder,M=this._atlFilterItem,O=M.find("."+t.filterActionConfirm),P=M.find("."+t.valueInputWrapper+" ."+t.valueInput),N=M.find("."+t.operator);E(Q.isComplete(),O);E(Q.hasOperator(),P);E(Q.hasField(),N)},E=function(N,M){M[(N?"enable":"disable")+"Element"]()},b=function(){var N=this._filterBuilder,M=!this._appliedFilter;if(!N.isComplete()){return}this._appliedFilter=N.getFilter();h.call(this);B.call(this);this.publish(v.onApply,{isNew:M})},n=function(O,M){var N;if(!M||!q(N=M.selectedItem)){return s.logError("Selected item object not returned from onItemSelected event")}y.call(this,N)},C=function(){var N=this._atlFilterItem.find("."+t.operator),M;this._operatorDropdown&&this._operatorDropdown.destroy();N.removeChildren();M=e.call(this,this._filterBuilder);M.appendTo(N);this._operatorDropdown=M.api()},e=function(P){var R=this,N=P.getOperators().map(function M(S){return{title:S.title,handler:function(){var U=S.name,T=R._filterBuilder;T.setOperator(U);F.call(R);J.call(R)},options:{value:S}}}),Q={title:P.getDisplayFilter().op,data:N,classNames:t.operatorDropdown,dropdownClassNames:t.detachedOperatorDropdown,appendTarget:K("body"),swapTitles:true},O=K().dropdown(Q);return O},y=function(P){var Q=P.name,O=this._getField(Q),M=this._filterBuilder,N;if(!M){return s.logError("FilterBuilder could not be found.")}M.setField(O);M.clearValue();M.clearText();N=M.getDisplayFilter();K(this._searchItemsPanel.container).find("."+t.columnInput).text(N.field).attr("title",N.field);C.call(this);F.call(this);J.call(this)},p=function(){var N=this._atlFilterItem.find("."+t.column),M,O;if(N.isSearchItemsPanel()){return s.logWarn("Instance of searchItemsPanel already exists on target. Skipping _initFieldSelector().")}M=this._fieldProvider().map(function(P){return{text:P.text||P.name,details:P}}).sort(function(P,Q){var R=P.text.toLowerCase(),S=Q.text.toLowerCase();return(RS)?1:0});O={data:M,dataToggleSwitch:this.options&&this.options.hideSearchItemsPanelButtons?false:"visible",classNames:t.columnSearchPanel,labels:{title:x.columns,showAll:x.showHiddenFields,search:x.search},onItemSelected:n.bind(this),appendTarget:K("body")};this._searchItemsPanel=N.searchItemsPanel(O).api()},B=function(){var M=this._filterBuilder.getDisplayFilter(),N=H({data:M,labels:x});this._atlFilterItem.removeChildren().append(N);this._isInEditMode=false},A=function(){var N=this._filterBuilder,M=K(G({labels:x,data:N.getDisplayFilter()}));this._atlFilterItem.removeChildren().append(M);p.call(this);C.call(this);F.call(this);J.call(this,M);this._isInEditMode=true;this.publish(v.onEdit)},I=function(){var M=this._filterBuilder,O=(M.field()||{}).name,N;if(M.hasField()&&(N=this._getField(O))){M.setField(N)}},z=function(){if(this._appliedFilter){B.call(this)}else{A.call(this)}},L=function(N,M){if(!K.validateOptions(M,w,g,true).valid){return s.logError("Invalid options.")}H||(H=d(K.templates["#atlas-filter-console-filter-view-template"]));G||(G=d(K.templates["#atlas-filter-console-filter-edit-template"]));L.prototype.base.call(this,N,M);this.subscribeEvents(M);this._atlFilterItem=K(this.container);this._fieldProvider=M.fieldProvider;this._getField=M.getField;this._filterBuilder=M.filterBuilder||K.filterBuilder();this._valueSelectorFactory=M.valueSelectorFactory||K.ui.valueSelectorFactory({});I.call(this);if(this._filterBuilder.isComplete()){this._appliedFilter=this._filterBuilder.getFilter()}z.call(this);a.call(this)};K.component({componentId:g,events:K.utils.values(v)},L);L.prototype.setFocus=function(){if(!this.isInEditMode()){return}if(!this._filterBuilder.hasField()){this._searchItemsPanel&&this._searchItemsPanel.openFocused();return}if(this._filterBuilder.hasOperator()){this._currentValueSelector&&this._currentValueSelector.setFocus()}};L.prototype.isInEditMode=function(){return !!this._isInEditMode};L.prototype.cancel=function(){f.call(this)};L.prototype.getAppliedFilter=function(){return this._appliedFilter};L.prototype.destroy=function(){this.unsubscribeEvents();h.call(this);this._atlFilterItem.remove();this._isInEditMode=false};L.prototype.updatePanelPosition=function(){this._searchItemsPanel.updatePosition()};K.templates["#atlas-filter-console-filter-edit-template"]='
      #if (data.field) {##:data.field ##} else {# #:labels.column# #}#
      ';K.templates["#atlas-filter-console-filter-view-template"]='
      #:data.field# #:data.op# #if (data.value) {##:data.value##}##if (data.includeChildren) {##}#
      '}(window.atlas));(function(E){var m=E.isString,l=E.isArray,f="atlas.ui.filterConsoleLogicBar",n=E.logger(f),x="atlas--ui-filter-console",r={consoleContainer:x,inlineActions:x+"-inline-actions",consoleBar:x+"-bar",logicContent:x+"-logic-content",logicLabel:x+"-logic-label",editLogicInput:x+"-logic-values",editLogicMode:x+"-logic-edit",editLogicCancel:x+"-logic-edit-cancel",editLogicApply:x+"-logic-edit-apply",operator:x+"-operator",logicMessageContainer:x+"-logic-message",hasLogicErrors:x+"-has-logic-error",hasLogicWarnings:x+"-has-logic-warning",hasLogicMessage:x+"-has-logic-",atlasUIButtonTextStyle:"atlas--ui-button-text-style",componentDisabled:"atlas--ui-component-disabled"},t={onApply:"onApply"},q=9,o=13,p=27,y="\n",z,s={apply:"FPO apply",cancel:"FPO Cancel",confirm:"FPO Confirm",edit:"FPO Edit",logic:"FPO Logic"},c=E.i18n||{},v=E.extend(true,{},s,c.common,c.filterConsole),u={container:{types:"object",required:true},filterProvider:{types:"function",required:true}},a=function(){var G=this._elems;G.editLogicInput.on("click",j.bind(this),null,true).on("keydown",w.bind(this),null,false);G.editLogicCancel.on("click",d.bind(this),null,true);G.editLogicApply.on("click",b.bind(this),null,true)},k=function(){var H=this._elems,G=this._filterConsoleContainer;H.consoleContainer=G;H.consoleBar=G.find("."+r.consoleBar);H.editLogicInput=G.find("."+r.editLogicInput);H.editLogicApply=G.find("."+r.editLogicApply);H.editLogicCancel=G.find("."+r.editLogicCancel);H.logicMessageContainer=G.find("."+r.logicMessageContainer);if(this.options.disabled){G.find("."+r.logicContent).disableElement().addClass(r.componentDisabled)}},B=function(){var I=this._expressionBuilder.getCleanedLogicString(),G=this._filterProvider(),H=G.length>>>0;if((!I&&H)||H===1){I=this._expressionBuilder.getDefaultLogicString(G)}this._elems.editLogicInput.html(i(I));A.call(this,I)},j=function(){var H=this._elems.editLogicInput,G=this._elems.consoleBar,I;if(!G.hasClass(r.editLogicMode)){G.addClass(r.editLogicMode);H.attr("contentEditable","true");I=H.text();H.html(I);H.attr("data-value",H.text()).focus()}},d=function(){var G=this._elems.editLogicInput,H=G.attr("data-value")||"";G.html(i(H));D.call(this,H);g.call(this)},b=function(){var H=this._elems.editLogicInput,I=E.trim(H.text()),J=E.trim(H.attr("data-value")||""),G=this._filterProvider();if(!I){I=this._expressionBuilder.getDefaultLogicString(G)}if(I===J){d.call(this);return}if(A.call(this,I)){I=this._expressionBuilder.getCleanedLogicString();H.html(i(I));g.call(this);this.publish(t.onApply,this.conditionalFilter)}},i=function(G){return G.replace(/ (OR|AND) /gi,' $1 ')},g=function(){var G=this._elems;G.consoleBar.removeClass(r.editLogicMode);G.editLogicInput.attr("contentEditable","false")},C=function(H,K){var G=H||K,I=l(G)?G.join(y):null,J=H?"error":"warning";if(I){h.call(this,I,J)}else{e.call(this)}},h=function(G,H){if(m(G)){this._elems.logicMessageContainer.html(G);this._elems.consoleContainer.addClass(r.hasLogicMessage+H)}},e=function(){this._elems.logicMessageContainer.html("");this._elems.consoleContainer.removeClass(r.hasLogicErrors+" "+r.hasLogicWarnings)},w=function(G){var H=G.keyCode||G.which;if(H===o||H===q){G.preventDefault();b.call(this)}else{if(H===p){G.preventDefault();d.call(this)}else{e.call(this)}}},A=function(H){var G;if(!m(H)){return}if(H&&(H=E.trim(H))){G=this._expressionBuilder.parseLogicString(H,this._filterProvider());C.call(this,G.errors,G.warnings);if(G.isValid){this.conditionalFilter=G.result;this.conditionalFilterQuery=this._expressionBuilder.setLogicString(H);return true}}else{this.conditionalFilter=null;this.conditionalFilterQuery=this._expressionBuilder.setLogicString("");return true}return false},D=function(H){var G;if(!m(H)){return}if(H&&(H=E.trim(H))){G=this._expressionBuilder.parseLogicString(H,this._filterProvider());C.call(this,G.errors,G.warnings)}},F=function(H,G){if(!E.validateOptions(G,u,f,true).valid){return n.logError("Invalid options.")}z||(z=E.Template.compile(E.templates["#atlas-filter-console-logic-bar-template"]));F.prototype.base.call(this,H,G);this._filterConsoleContainer=G.container;this._filterProvider=E.functor(G.filterProvider);this._expressionBuilder=E.expressionBuilder({logicString:G.conditionalFilterQuery});this._elems={consoleBar:undefined,consoleContainer:undefined,editLogicInput:undefined,editLogicCancel:undefined,editLogicApply:undefined,logicMessageContainer:undefined};E(this.container).html(z({}));k.call(this);a.call(this);this.subscribeEvents(G)};E.component({componentId:f,events:E.utils.values(t)},F);F.prototype.getConditionalFilter=function(){this.updateLogic();return this.conditionalFilter||this._expressionBuilder.getDefaultFilter(this._filterProvider())};F.prototype.getConditionalFilterQuery=function(){this.updateLogic();return this.conditionalFilterQuery};F.prototype.setConditionalFilterQuery=function(G){this._expressionBuilder.setLogicString(G);this.updateLogic()};F.prototype.updateLogic=function(){B.call(this)};F.prototype.addCondition=function(G){this._expressionBuilder.addCondition(G);B.call(this)};F.prototype.removeCondition=function(G){this._expressionBuilder.removeCondition(G);B.call(this)};F.prototype.removeAll=function(){this._expressionBuilder.removeAll();B.call(this)};F.prototype.destroy=function(){var G=this._elems;G.editLogicInput.off();G.editLogicCancel.off();G.editLogicApply.off();E(this.container).remove();this.unsubscribeEvents()};E.templates["#atlas-filter-console-logic-bar-template"]='
      '+v.logic+'
      '}(window.atlas));(function(k){var a="atlas.ui.button",i="atlas--ui-button",e={type:"button",model:"small",handler:k.noOp(),classNames:"",title:null,cta:false,id:""},d={large:i,small:i+"-small",secondaryLarge:i+"-secondary",secondarySmall:i+"-secondary-small",text:i+"-text-style",sidebar:"atlas--ui-sidebar-toggle-button",isToggled:"atlas--ui-is-toggled",fullscreen:"atlas--ui-fullscreen-button",isFullscreen:"atlas--ui-is-fullscreen",disabled:"atlas--ui-disabled"},h=k.templates||(k.templates={}),g={templateButton:"#atlas-button-button",templateInput:"#atlas-button-input",templateText:"#atlas-button-text",templateLink:"#atlas-button-link"},f={templateButton:null,templateInput:null,templateText:null,templateLink:null},c=k.isFunction,b=function(n){var m=g[n]||n;return f[n]||(f[n]=k.Template.compile(h[m]))},j=function(q,o){var m,p={},n;n=o;switch(q.tagName.toLowerCase()){case"a":p.type="link";break;case"button":p.type="button";break;case"input":p.type="input";break;default:p.type="text";break}m=k(q);p.classNames=m.attr("class");p.id=m.attr("id");p.value=m.attr("value");if(p.type==="input"){p.title=m.attr("value")}else{p.title=m.text()}return k.extend({},e,p,n)},l=function(n,m){m=k.isObject(m)?k.extend({},e,m):e;l.prototype.base.call(this,n,m);this.target=k.makeGUID();k.registry.set(n,this,{component:a});this._subscription=a+"."+this.guid;k.extend(this.options,j(n,this.options));return this.update()};l.createContainer=function(o){var n,m;n=k.extend({},e,o);switch((n.type||e.type).toLowerCase()){case"button":m=b(g.templateButton);break;case"link":m=b(g.templateLink);break;case"text":m=b(g.templateText);break;case"input":m=b(g.templateInput);break}return k(m(n))};k.component({componentId:a,container:l.createContainer},l);l.prototype.destroy=function(){var m=k(this.container);m.remove()};l.prototype.update=function(){var m,p,o,s,r,q,n;o=this.options||{};p=k.extend(true,{classNames:""},o);if(c(o.handler)){n=o.handler}r=(o.model||e.model).toLowerCase();switch(r){case"small":q=(o.cta)?d.small:d.secondarySmall;break;case"large":q=(o.cta)?d.large:d.secondaryLarge;break;case"text":q=d.text;break;case"sidebar":q=d.sidebar;n=function(u){var t=k(u.target),v=d.isToggled;t.toggleClass(v);if(c(o.handler)){o.handler.apply(this,arguments)}};break;case"fullscreen":q=d.fullscreen;n=function(u){var t=k(u.target),v=d.isFullscreen;t.toggleClass(v);if(c(o.handler)){o.handler.apply(this,arguments)}};break}p.classNames=k.trim(q+" "+o.classNames);m=k(this.container);m.addClass(p.classNames).attr({id:p.id,title:p.title});s=(o.type||e.type).toLowerCase();if(s==="input"){m.attr({value:p.title})}else{m.text(p.title)}if(c(n)){m.on("click",n,null,true)}return m};l.prototype.disable=function(){return k(this.container).disableElement()};l.prototype.enable=function(){return k(this.container).enableElement()};h[g.templateButton]='';h[g.templateInput]='';h[g.templateText]='';h[g.templateLink]=""})(atlas);(function(x){var c="atlas.ui.modal",t="atlas--ui-modal",m={autoOpen:true,allowBtnClose:true,allowEscClose:true,allowOverlayClose:true,buttons:[],buttonCloseText:"Close",close:null,model:"medium",classNames:"",contentHeader:undefined,contentBody:undefined,contentType:w,contentOnly:false,compileContent:false,contentFooter:undefined,modalClass:"",position:"center",displayOverlay:true,draggable:true,modal:false,disabled:"disabled",focus:null,onClose:x.noOp,onBeforeClose:x.noOp,onOpen:x.noOp,onBeforeOpen:x.noOp,performAnimations:true,resizable:true,show:null,styleOverride:undefined,multiStep:{id:undefined,rememberDismiss:false,labels:{nextLabel:"Next >",skipLabel:"Skip",prevLabel:"< Prev",doneLabel:"Done",dismissLabel:"Never Show Again"}}},n={width:300,height:"auto",minWidth:300,minHeight:150,maxWidth:null,maxHeight:null},l={modalAnimation:"animatetop",modalCta:t+"-cta",modalStart:t+"-start",modalInside:t+"-inside",modalEnd:t+"-end",modalOpen:t+"-open",modalActive:t+"-active",modalAlignCenter:t+"-center",modalOverlay:t+"-overlay",modalOverlayActive:t+"-overlay-active",modalContainer:t+"-container",modalHeader:t+"-header",modalFooter:t+"-footer",modalInner:t+"-wrap",modalContent:t+"-content",modalCustomHeader:t+"-custom-header",modalCustomContent:t+"-custom-content",contentOnly:t+"-content-only",modalCustomFooter:t+"-custom-footer",modalCloseButton:t+"-btn-close",modalButtonGroup:"atlas--button-group",modalNextButton:t+"-next-button",modalPrevButton:t+"-prev-button",modalSkipButton:t+"-skip-button",modalMultiStepContainer:t+"-multi-step-container",modalMultiStepActiveStep:t+"-multiStepActiveStep",modalMultStepCurrentStep:t+"-multi-step-current-step",modalWindowOverlay:t+"-window-overlay",modalWindowOpen:t+"-window-open",modalWindow:t+"-window",modalWindowSize:{small:t+"-window-small",medium:t+"-window-medium",full:t+"-window-full-page"},modalWindowHeader:t+"-window-header",modalWindowInner:t+"-window-inner",modalWindowContent:t+"-window-content",modalWindowFooter:t+"-window-footer",modalWindowActions:t+"-window-actions",loader:"atlas--ui-loader",blockingOverlay:"atlas--ui-blocking-overlay",blockingOverlayVisible:"atlas--ui-blocking-overlay-is-visible"},k={title:"title",disabled:"disabled"},o={onOpen:"onOpen",onBeforeOpen:"onBeforeOpen",onBeforeClose:"onBeforeClose",onClose:"onClose"},i=27,w="text",u="skip",j="next",s="prev",v="template",b=null,r=x.templates||(x.templates={}),q={templateModal:"#atlas-modal-template",templateWindowModal:"#atlas-modal-template-window-modal",templateWindowModalButton:"#atlas-modal-template-window-modal-button",templateWindowModalButtonGroup:"#atlas-modal-template-window-modal-button-group"},p={templateModal:null,templateWindowModal:null,templateWindowModalButtonGroup:null},f=function(A){var z=q[A]||A;return p[A]||(p[A]=x.Template.compile(r[z]))},e=function(z){var B=x.isString(z)?z.toLowerCase():"",A;switch(B){case"small":A=l.modalWindowSize.small;break;case"full":A=l.modalWindowSize.full;break;case"custom":A="";break;default:A=l.modalWindowSize.medium;break}return A},g=x.isArray,h=x.logger(c),a=[],d=function(z){return h.logError("could not extract data",z.error)},y=function(A,z){z=x.extend({},m,(z&&z.model?null:n),z);y.prototype.base.call(this,A,z);this.target=x.makeGUID();x.registry.set(A,this,{component:c});this._subscription=c+"."+this.guid;this.subscribeEvents(z);b=b||x("body");this._isOpen=false;if(this.options.autoOpen===true){return this.open()}};x.component({componentId:c,events:x.utils.values(o)},y);y.prototype.setContentDimensions=function(){var z=x(this.container).find("."+l.modalWindow),A=this.options;z.css({width:A.width,height:A.height,"min-width":A.minWidth,"min-height":A.minHeight})};y.prototype.createButtons=function(z,A){var B,C;if(!g(z)){h.logError(" no buttons specified for "+z+". This is required. Failing.");return}C=f(q.templateWindowModalButtonGroup);B=x(C({}));z.forEach(function(D){B.append(x().button(D))});if(A){x(A).append(B)}return B};y.prototype.setPosition=function(){var F=this.options.position||"center",z=x(this.container),E=x.getViewportSize(),C=E.width,B=E.height,D={},A=function(H){var G,I;for(G in H){if(H.hasOwnProperty(G)){I=Math.round(H[G]);if(I||I===0){H[G]=I+"px"}}}return H};z.removeClass(l.modalAlignCenter);switch(F.toLowerCase()){case"topleft":D.left=0;D.top=0;break;case"topright":D.right=0;D.top=0;break;case"bottomleft":D.left=0;D.bottom=0;break;case"bottomright":D.right=0;D.bottom=0;break;case"center":z.addClass(l.modalAlignCenter);break;default:D.left=Math.max(0,(C-z.offsetWidth())/2);D.top=Math.max(0,(B-z.offsetHeight())/2);break}z.css(A(D))};y.prototype.handleMultiStepNavNext=function(){return this.handleMultiStepNav(j)};y.prototype.handleMultiStepNavPrev=function(){return this.handleMultiStepNav(s)};y.prototype.handleMultiStepNavSkip=function(){return this.handleMultiStepNav(u)};y.prototype.handleMultiStepNav=function(J){var K=k.diasabled,z=x(this.container),A=z.find("."+l.modalMultiStepContainer),M=l.modalMultiStepActiveStep,E=z.find("."+M),B=z.find("#"+l.modalNextButton),C=z.find("#"+l.modalPrevButton),D=z.find("#"+l.modalSkipButton),H=this.options.contentBody.length,G=parseInt(E.attr(this.options.dataMultiStep),10),I=(J===s)?G-1:G+1,F=z.find("."+l.modalMultStepCurrentStep+"["+this.options.dataMultiStep+'="'+I+'"]'),L=this.options.multiStep.labels.doneLabel,N=this.options.multiStep.labels.skipLabel;if(J===u){return this.close()}if(F.length){A.css("left","-"+(I*100)+"%");F.addClass(M);E.removeClass(M)}if(I===0&&H>1){C.addClass(K).attr(this.options.disabled,this.options.disabled);B.removeClass(K);D.html(N).attr(k.title,N).removeClass(l.modalCta)}else{if(H-1===I||H===1){C.removeClass(K);B.addClass(K).attr(this.options.disabled,this.options.disabled);D.html(L).attr(k.title,L).addClass(l.modalCta)}else{C.removeClass(K);B.removeClass(K);D.html(N).attr(k.title,N).removeClass(l.modalCta)}}};y.prototype.setMultiStepButtons=function(A){var B=this.options.multiStep.labels,z=[{title:B.prevLabel,id:l.modalPrevButton,disabled:true,handler:this.handleMultiStepNavPrev.bind(this)},{title:B.nextLabel,id:l.modalNextButton,handler:this.handleMultiStepNavNext.bind(this)},{title:B.skipLabel,cta:false,id:l.modalSkipButton,handler:this.handleMultiStepNavSkip.bind(this)}];this.createButtons(z,A)};y.prototype.handleEscClose=function(z){if(a[a.length-1]===this){z=z||window.event;(z.keyCode===i)&&this.close()}};y.prototype.destroy=function(){var z=x(this.container);z.off();x(document.body).off("keyup",this.handleEscape);z.remove()};y.prototype.handleDismissCallback=function(){var z=x("."+t+"-multiStepRememberCheckbox").first(true);if(z.attr("checked")===true){x.logInfo("MultiStep remembered")}else{x.logInfo("MultiStep not remembered")}x.logInfo("atlCheck",z)};y.prototype.setMultiStepActions=function(){if(this.bStoreDismissal===true){if(this.options.multiStep.rememberDismiss===true){this.options.contentFooter=' '+this.options.multiStep.labels.dismissLabel}}};y.prototype.setModalContent=function(B){var F=this,E=this.options,C=0,D,z,A;if(x.isObject(E)&&!E.contentBody&&this.length){E.contentBody=this.first(true).html()}if(typeof E.contentType!=="undefined"&&x.caseLower(E.contentType)===v){x.solicitAsync({url:F.options.contentBody}).promise.then(function(G){if(F.options.compileContent===true){return B.html(x.Template.compile(G.responseText))}return B.html(G.responseText)})["catch"](d)}else{if(g(E.contentBody)){this.setMultiStepActions();D=E.contentBody.length;z=x('
      ');B.css("padding","0");for(;C'+E.contentBody[C]+"");if(C===0){A.addClass(l.modalMultiStepActiveStep);A.css("left","0")}else{A.css("left",(C*100)+"%")}z.append(A)}return B.html(z[0])}return B.html(E.contentBody)}};y.prototype.setSuicidalClosers=function(){var A=this,z;if(this.options.allowEscClose){A.handleEscape=A.handleEsc.bind(A);x(document.body).on("keyup",A.handleEscape,null,false)}if(this.options.allowBtnClose){z=A.handleClose.bind(A);x(this.container).find("."+l.modalWindowHeader+" button.atlas--ui-button-x").one("click",z,null,true)}};y.prototype.handleClose=function(){return this.close()};y.prototype.isOpen=function(){return this._isOpen};y.prototype.handleEsc=function(z){this.handleEscClose(z)};y.prototype.open=function(){var z,D={},C,A,B;if(this._isOpen){return}a.push(this);C=this.options||{};B=g(C.contentBody);x.extend(true,D,{labels:{buttonCloseText:C.buttonCloseText},content:{header:C.contentHeader,footer:C.contentFooter,body:C.contentBody,classNames:C.classNames+(C.contentOnly?" "+l.contentOnly:"")},showCloseButton:C.allowBtnClose,showHeader:!!C.contentHeader,showFooter:!!C.contentFooter,showContent:!!C.contentBody,showOverlay:C.displayOverlay,contentOnly:C.contentOnly,modalSize:e(C.model)});z=x(this.container);z.addClass(l.modalWindowOverlay);z.html(f(q.templateWindowModal)(D));A=z.find("."+l.modalWindowFooter);if(B){this.setMultiStepButtons(A)}else{if(g(this.options.buttons)&&this.options.buttons.length){this.createButtons(this.options.buttons,A)}}if(x.isObject(this.options.styleOverride)){z.css(this.options.styleOverride)}b.prepend(z);this.publish(o.onBeforeOpen,this);this.setModalContent(z.find("."+l.modalWindowContent));this.setPosition();this.setContentDimensions();this.setSuicidalClosers(this);this.publish(o.onOpen,this);if(x.browser.msie===true){this.setContentDimensions()}b.addClass(l.modalWindowOpen);this._isOpen=true};y.prototype.close=function(){if(!this._isOpen){return}a.splice(a.indexOf(this),1);a.length||b.removeClass(l.modalWindowOpen);this.publish(o.onBeforeClose,this);if(this.options.multiStep.rememberDismiss===true){this.handleDismissCallback()}if(this.options.performAnimations){setTimeout(this.destroy.bind(this),250)}else{this.destroy()}this._isOpen=false;this.publish(o.onClose,this)};y.prototype.setContentFromRender=function(A){var z=x(this.container).find("."+l.modalWindowContent);z.html(A)};r[q.templateWindowModal]='
      # if (!contentOnly) {#
      #if (showCloseButton) {##}#
      #if (showHeader) {#
      #= content.header #
      #}#
      #}#
      #if (showContent) {# #= content.body # #}#
      # if (!contentOnly) {#
      #if (showFooter) {#
      #= content.footer #
      #}#
      #}## if (showOverlay) {#
      #}#
      ';r[q.templateWindowModalButtonGroup]='
      '})(atlas);(function(){atlas.ui=atlas.ui||{};var j="atlas.ui.hierarchy",k="hierarchy",n="1.1.0",l="atlas--ui-hierarchy",d={selector:l,popup:l+"-popup",active:l+"-active",noAnimation:l+"-no-animation",menu:l+"-menu",menuItems:l+"-menu-items",menuItemsHidden:l+"-menu-items-hidden",menuItem:l+"-item",menuItemUp:l+"-level-up",menuItemRoot:l+"-first-level",menuItemBtn:l+"-item-button",menuItemTitleBox:l+"-item-title-box",menuItemTitle:l+"-item-title",nav:l+"-nav",navItems:l+"-nav-items",navItemsHidden:l+"-nav-items-hidden",navItem:l+"-nav-item",navItemHidden:l+"-nav-item-hidden",breadcSeparator:l+"-breadcrumb-separator",navCount:l+"-nav-count",switchView:l+"-switch-view"},m="data-atlas-hierarchy-nav-index",g=(atlas.uiComponents||{}).hierarchyConfig||{},h=atlas.i18n&&atlas.i18n.hierarchyView||{},e={data:[],autoOpen:false,enabled:true,readOnly:false,enableOnReadOnly:true,inputDebounce:true,openRoot:true,allowEscClose:true,closeOnSelect:true,noAnimation:false,onInit:atlas.noOp,onClose:atlas.noOp,onBeforeClose:atlas.noOp,onOpen:atlas.noOp,onBeforeOpen:atlas.noOp,onSelection:atlas.noOp,onDestroy:atlas.noOp,navigationTitle:g.navigationTitle||h.hierarchyView||"Hierarchy View",navCountTitle:g.navCountTitle||h.clickToExpandX||"Click to expand all {0} level(s)",allText:g.allText||h.all||"All"},f={init:"onInit",open:"onOpen",close:"onClose",toggle:"onToggle",selection:"onSelection",destroy:"onDestroy"},p=function(q){if(!atlas.isNode(q[0])||!q.is("input")){atlas.logWarn("The Hierarchy Menu must be targeted to an input field");return false}if(q.isComponent()){atlas.logWarn(q[0]+" is already an Atlas UI Component, Atlas will not turn an existing component into another component");return false}return true},o=function(q,w,u,r){w=w||"";u=u||false;r=r||[];var t=0,v=q.length||0,s;for(;t"),r=atlas("
      ").addClass(d.menu),s=atlas("
      ").addClass(d.nav),z=function(){var R=this.config;this._input=Q[0];this._popup=q[0];Q.addClass(d.selector).tagGuid(this.guid);C.enabled=R.enabled;C.readOnly=R.readOnly;q.append(r).append(s).addClass(d.popup+(R.noAnimation?" "+d.noAnimation:""));s.append('
      ');atlas(document.body).append(q);Q.attr("autocomplete","off");Q.api(this);N.call(this);R.target=R.target||this.guid;this.subscription=atlas.registry.set(this._input,R,{component:k})._subscription;L.call(this);u("init",this);C.readOnly&&this.readOnly(C.readOnly);R.autoOpen&&this.open()},N=function(){var T=atlas(this._popup),S=atlas(this._input),X=this,R=[{selector:"."+d.menuItemBtn+", ."+d.navItem,event:"click",stop:true,fn:function(aa){var Y=atlas(aa.currentTarget||aa.srcElement),ab=Y.attr(m),Z=Y.parent("."+d.menuItemUp).length===1||Y.hasClass(d.navItem);if(typeof ab!=="undefined"){this.goToItem(ab,Z)}}},{selector:"."+d.menuItemTitle,event:"click",stop:false,fn:function(Z){var Y=atlas(Z.currentTarget),aa=Y.attr(m);!C.readOnly&&this.selectItem(aa)}},{selector:"."+d.navCount,event:"click",stop:true,fn:function(Y){s.find("."+d.navItemHidden).removeClass(d.navItemHidden);s.find("."+d.navCount).remove()}},{event:"focus",inputListener:true,fn:function(Y){this.open()}},{event:"keydown",inputListener:true,fn:function(Y){if(Y.keyCode===9&&C.open){q.find("button").focus();Y.preventDefault()}}},{event:"keyup",inputListener:true,useDebounce:this.inputDebounce,fn:function(Y){Y=Y||window.event;if(atlas(this._input).val()){return this.close()}(Y.keyCode!==27)&&this.open()}}],V=0,W=R.length||0,U;for(;V").addClass(d.menuItems),U,T,S=r.find("."+d.menuItems),ab=C.menuData,W=ab.parent?false:true,Y=0,Z=ab.subs.length||0,ac=V?"100%":"-100%",X=function(){S.removeChildren().remove();r[0].scrollTop=0;r.append(R);r.css({height:"auto"});setTimeout(function(){R.removeClass(d.menuItemsHidden)},10)};if(atlas.isObject(ab.parent)&&atlas.isString(ab.parent.title)){U=x.call(this,ab.parent,true,W);R.append(U)}for(;Y").addClass(d.menuItem),R=atlas(" # } ## if (clearLabel) { # # } #
      # } #
      # } ## if (showDateSelector && showTimeSelector) { #
      #= timeLabel ##= dateLabel #
      # } ## if (showTimeSelector) { #
      # } #
      #region popup##region headerActions#
      #= advOptsLabel #
      #= headerLabel #
      # if (todayLabel) { #
      #= todayLabel #
      # } #
      #region headerActions##region tableRowStart#
      # if (withCell) { # # } ##region tableRowEnd##region calendar#
      # } ##region tableRowStart##region tableRowEnd## if (withCell) { #
      # if (dayNames && dayNames.length) { ## if (calendarWeeks) { # # } ## var dowCount = weekStart; ## while (dowCount < weekStart + 7) { ## } ## } ##= content #
      #=dayNames[(dowCount++) % 7] #
      #region calendar##region calendarCell##= value ##region calendarCell##region calendarInnerCell##= value ##region calendarInnerCell##region timepicker#
      #region timepicker##region timeColumn#
      # if (showSeparator) { #
      # } ##region timeColumn##region timeView## var i = 0, l = cells.length || 0, cell; ## for (; i < l; i += 1) { ## cell = cells[i]; ## if (cell.rowStart) { # # } ## if (cell.rowEnd) { # # } ## } #
      #= cell.value #
      #region timeView##region footerActions## if (filterControls) {## } ##region footerActions#'}());(function(){atlas.ui=atlas.ui||{};var z="atlas.ui.dateRange",e="dateRange",A="atlas--ui-date-range",n=27,m=13,i=atlas.noOp,o={popup:A+"-popup",input:A+"-input",inputStart:A+"-input-start",inputEnd:A+"-input-end",container:A+"-container",active:A+"-active",endDateActive:A+"-end-date-active",dateRangeBtn:A+"-dateRange",clearBtn:A+"-clear",applyBtn:A+"-apply",topPos:A+"-position-top",bottomPos:A+"-position-bottom",leftPos:A+"-position-left",rightPos:A+"-position-right",gridScroller:"atlasGrid--scroller",animationBounceUp:"atlas--ui-animation-bounce-up",dateRangeCheck:A+"-check-toggle",cancelBtn:A+"-cancel",gridContainer:"atlasGrid--grid-elements",alternatePlacement:A+"-popup-alternate-placement",dateRangeExpanded:A+"-is-expanded"},I=" - ",G="#atlas-ui-date-range",u=null,c="><",r=atlas.i18n&&atlas.i18n.dateRange||{},p={start:{isRange:true,autoClose:false,type:"date",format:"d",todayButton:true,applyButton:false},end:{isRange:true,autoClose:false,type:"date",orientation:"right",defaultViewDate:"1M",format:"d",todayButton:true,applyButton:false},format:"d",dateRange:true,clear:false,cancel:true,i18n:{today:r.today||"Today",dateRange:r.dateRange||"Date Range",singleDate:r.singleDate||"Single Date",clear:r.clear||"Clear",apply:r.apply||"Apply",dateAdvancedOptions:r.dateAdvancedOptions||"Date Advanced Options",selectADate:r.selectADate||"Select a Date",cancel:r.cancel||"Cancel",range:r.range||"Range"},openOnFocus:true,showDateInInput:true,orientation:"bottom left",onApply:false,onInit:i,onBeforeOpen:i,onOpen:i,onBeforeClose:i,onClose:i,onChange:i,onSelectRangeStart:i,onSelectRangeEnd:i,onDestroy:i,appendTarget:undefined},L={format:{types:["String"]},today:{types:["Boolean"]},dateRange:{types:["Boolean"]},orientation:{types:["String"]},onInit:{types:"Function"},onBeforeOpen:{types:"Function"},onOpen:{types:"Function"},onBeforeClose:{types:"Function"},onClose:{types:"Function"},onChange:{types:"Function"},onSelectRangeStart:{types:"Function"},onSelectRangeEnd:{types:"Function"},onDestroy:{types:"Function"},onApply:{types:["Function","Boolean"]}},K=function(M){return atlas.validateOptions(M,L,"atlas.ui.dateRange",true).valid},w=atlas.pubsub.publish,H=atlas.pubsub.subscribe,J=atlas.pubsub.unsubscribe,l=atlas.isFunction,q={open:"onOpen",close:"onClose",value:"onChange",range:"onChange",clear:"onChange",init:"onInit",destroy:"onDestroy",onApply:"onApply"},g=atlas.deeds.emit,h=function(P,N){var M=P,O=atlas.deeds&&atlas.deeds.events||[];if(q.hasOwnProperty(P)){M=q[P]}if(O.indexOf(M)>-1){g(this.subscription+"."+M,N)}if(O.indexOf(P)===-1){P=(typeof P!=="undefined")?("."+P):"";w(this.kind+"."+this.guid+P,N)}},D=function(){var N=atlas(this.input),O=this.popup,P="dom",M=atlas([this.start._input,this.end._input]);C.call(this,P,N,"focus",undefined,k.bind(this),true);C.call(this,P,O,"change","."+o.dateRangeCheck,this.openEndSelector.bind(this),true);C.call(this,P,O,"click","."+o.clearBtn,this.clear.bind(this),true);C.call(this,P,O,"click","."+o.cancelBtn,this.cancel.bind(this),true);C.call(this,P,O,"click","."+o.applyBtn,b.bind(this),true);C.call(this,P,M,"blur",undefined,a.bind(this),true);C.call(this,P,M,"keydown",undefined,y.bind(this,[m],a),true)},C=function(P,Q,M,O,N,R){Q.on(M,O,N,null,false,R);this._subscriptions[P].push({type:M,fn:N,selector:Q})},f=function(){var M=this._subscriptions.html||[],N=0,O=M.length,P;for(;NV.getTime()){S.end.clear()}}}],M=0,N=P.length,O;if(this.config.onApply){P.push({key:"onApply",event:"onApply",fn:this.config.onApply})}for(;M-1){N.call(this,O)}},a=function(O){O.preventDefault();O.stopImmediatePropagation();var V=O.target,Y=V.value,T=V.value&&atlas.runDatePatterns(Y),S=T.timeStamp,P=this.end.isOpen&&this.end.isOpen(),R=V===this.start._input,Q=P&&V===this.end._input,X,U,W,N,M=function(aa,Z){if(!aa&&atlas.isDate(aa)||!Z&&atlas.isDate(Z)){return false}return aa<=Z};if(!R&&!Q||!T){return}if(T.error){atlas(V).animate(o.animationBounceUp);return}if(R){N=new Date(S);if(P){X=this.end._input;U=atlas.runDatePatterns(X.value).timeStamp;if(U&&!M(S,U)){this.end.clear()}else{if(U&&M(S,U)&&!this.end.value()){X.focus()}}this.end.min(N)}this.setStartValue(N);this.start.goToDate(N)}if(Q){N=new Date(T.timeStamp);if(P){W=atlas.runDatePatterns(this.start._input.value).timeStamp;if(W&&!M(W,S)){atlas(V).animate(o.animationBounceUp);this.end.clear();V.value=Y;return}}this.setEndValue(N);this.end.goToDate(N)}},v={auto:function(M,N){return atlas.extend({},v.autoV(M,N),v.autoH(M,N))},autoH:function(O,P){var N=v.left(O),M=window.scrollX+document.documentElement.clientWidth;if(M-P.width<(O.left)){N=v.right(O,P)}return N},autoV:function(O,P){var N=v.bottom(O),M=window.scrollY+document.documentElement.clientHeight;if((O.top-window.scrollY)>P.height&&(O.top+O.height+P.height)>M){N=v.top(O,P)}return N},top:function(M,N){return{top:true}},bottom:function(M){return{bottom:true}},left:function(M){return{left:true}},right:function(M){return{right:true}}};atlas.ui.dateRange=function(N,M){M=M||{};if(!K(M)){atlas.logWarn("Passed in configuration options are invalid. Bailing out...");return}if(!u){u=atlas.Template.getTemplateRegions(atlas.templates[G])}atlas.extend(this,{guid:"A-"+atlas.makeGUID(),popup:atlas(u.popup.compiled({})),kind:z,input:N,config:atlas.extend(true,{},p,M),enabled:false,opened:false,stillOpen:false,_subscriptions:{range:[],interaction:[],dom:[],html:[]},open:function(){var R,P,O,T,S,U,Q;if(this.isOpen()){return}R=new RegExp("^"+c+"|\\(\\)");P=atlas(this.input);O=this.input.value.replace(R,"").split(I);T=O[0];S=O[1];U=T&&new Date(atlas.runDatePatterns(T.trim()).timeStamp);Q=S&&new Date(atlas.runDatePatterns(S.trim()).timeStamp);h.call(this,"onBeforeOpen");this.popup.addClass(o.active);if(U){this.start.value(U,true);this.start.goToDate(this.start.value())}if(Q){this.end.value(Q,true);this.end.goToDate(this.end.value())}this.start.open();this.start._input.focus();this.opened=true;h.call(this,"open");this.setPopupPosition();atlas(this.input).addClass(o.dateRangeExpanded);if(this.stillOpen===true||P.data("range")){return this.openEndSelector()}F.call(this)},openEndSelector:function(){if(!this.start.isOpen()){atlas.logError("Cannot open End Range selector if Start Range is closed");return}if(this.end.isOpen()){this.closeEndSelector();this.setPopupPosition();return}if(this.start.value()){this.end.min(this.start.value())}this.end.open();this._isRange=true;this.popup.addClass(o.endDateActive);h.call(this,"onRangeOpen");this.setPopupPosition();!this.toggleCheckbox.attr("checked")&&this.toggleCheckbox.attr("checked",true);this.stillOpen=true},setPopupPosition:function(){var T=this.popup,U=T.offset(),R=T.closest("."+o.gridContainer).offset().width-this.container.offset().left,Q=(R-U.width)-16,O=atlas(this.input),S,P;if(this.appendTarget){if(l(atlas.ui.tether)){if(!this._tether){this._tether=atlas.ui.tether(O,this.popup)}else{this._tether.update()}}else{S=O.offset();P=O.height();this.popup.css({top:S.top+P,left:S.left})}}else{if(Q<0){T.css("left",Q+"px")}}},isOpen:function(){return this.opened},toggle:function(){this.isOpen()?this.close():this.open()},closeEndSelector:function(){this.end.close();this._isRange=false;this.popup.removeClass(o.endDateActive);this.toggleCheckbox.attr("checked",false);this.stillOpen=false;h.call(this,"onRangeClose")},clear:function(){var O=this.popup.find("."+o.input);O.val("");this.input.value="";this.start.value()&&this.start.clear();this.end.value()&&this.end.clear();this.toggle()},cancel:function(){var O=new Date(),Q=new Date(O.getFullYear(),O.getMonth(),O.getDate()),P=new Date(O.getFullYear(),O.getMonth()+1,O.getDate());this.closeEndSelector();!atlas(this.input).val()&&this.clear();this.close();this.start.clear();this.start.goToDate(Q);this.end.clear();this.end.goToDate(P)},close:function(){if(!this.isOpen()){return}this.stillOpen=(this._isRange&&this.stillOpen);h.call(this,"onBeforeClose");this.start.close();if(this.end.isOpen()){this.closeEndSelector()}this.popup.removeClass(o.active);this.opened=false;f.call(this);atlas(this.input).removeClass(o.dateRangeExpanded);h.call(this,"close",this)},setStartValue:function(O){this.start.value(O,true);h.call(this,"onSelectRangeStart",O)},setEndValue:function(O){this.end.value(O,true);h.call(this,"onSelectRangeEnd",O)},getValueSeparator:function(){return I},destroy:function(){this._tether&&this._tether.destroy();this.start.destroy();this.end.destroy();this.popup.remove();atlas.registry.destroy(this.guid);h.call(this,"onDestroy");x.call(this)}});j.call(this)};atlas.fn.dateRange=function(M){M=M||{};if(!this.length){return atlas('').dateRange(M)}return this.each(function(N){if(atlas(N).isComponent()){atlas.logWarn(z+": {0} is already an atlas ui component, atlas will not turn an existing component into another component",[N.id||N.tagName+"."+N.className.replace(" ",".")],"Already an instanceof "+atlas(N).attr("atlas-component"));return}return new atlas.ui.dateRange(N,M)})};atlas.fn.isDateRange=function(){var M=true;if(!this.length){return false}this.each(function(N){if(!M){return}M=atlas(N).attr("atlas-component")===z});return M};atlas.ui.dateRange.COMPONENT_ID=z;atlas.templates["#atlas-ui-date-range"]='#region popup#
      #region popup##region inputs#
      #:i18n.dateAdvancedOptions#
      #if (dateRange) {##}#
      #region inputs##region actions##var options = options || [];var i = 0, l = options.length || 0;#
      #if (clear) {##}##if (cancel) {##}##for (; i < l; i += 1) {option = options[i];#
      #:option.label#
      #}#
      #region actions#'}());(function(){var d="atlas.ui.dropdown",m=atlas.isUndefined,l=atlas.isFunction,k=atlas.htmlEncode,o={button:"atlas--ui-button",drop:"atlas--ui-dropdown",dropActive:"atlas--ui-dropdown-active",dropToggle:"atlas--ui-dropdown-toggle",dropToggleActive:"atlas--ui-dropdown-toggle-active",dropMenu:"atlas--ui-dropdown-menu",dropSubMenu:"atlas--ui-dropdown-submenu",dropMenuItemContainer:"atlas--ui-dropdown-menu-item-container",dropMenuItem:"atlas--ui-dropdown-menu-item",dropMenuItemSelected:"atlas--ui-dropdown-menu-item-selected",dropMenuGroup:"atlas--ui-dropdown-menu-group",dropMenuGroupContainer:"atlas--ui-dropdown-menu-group-container",dropMenuGroupNoScrollable:"atlas--ui-dropdown-menu-group-noscrollable",dropMenuItemHeader:"atlas--ui-dropdown-menu-header",dropMenuItemDivider:"atlas--ui-dropdown-menu-divider",dropMenuItemDisabled:"atlas--ui-disabled",dropCaret:"atlas--ui-dropdown-toggle-caret",dropTitle:"atlas--ui-dropdown-title",dropLabel:"atlas--ui-dropdown-label",dropOrientRight:"atlas--ui-dropdown-orient-right",dropMenuItemHide:"atlas--ui-dropdown-menu-item-inactive",dropMenuItemGroupHide:"atlas--ui-dropdown-menu-item-bind-inactive",hasOverridePosition:"atlas--ui-dropdown-has-append-override",dropdownIsVisible:"atlas--ui-dropdown-is-visible"},a=[27,8],u="data-atlas-dropdown-index",t="_default",q={"aria-expanded":"true","aria-haspopup":"true"},n={"aria-expanded":"false","aria-haspopup":"false"},p={name:t,title:undefined,disabled:false,isScrollable:false,classNames:undefined},e={title:undefined,data:undefined,swapTitles:false,hideSelected:true,useFirstAsTitle:false,bindGroup:undefined,classNames:undefined,dropdownClassNames:undefined,attr:undefined,disableOnSelect:undefined,groups:[p],appendTarget:undefined},s="parent-instance",h=function(){var y=this,A,z=y.config.disableOnSelect;if(z&&l(z)){A=y.active();y.items.map(function(D,C){var B=z(A,D)===false;atlas(y._contentChildren[C])[B?"disableElement":"enableElement"]().children()[B?"disableElement":"enableElement"]()})}},g=function(y,z){var A=z.self;A.close();z.handler.call(y.target||y.srcElement,y,A);if(A.config&&A.config.disableOnSelect){h.call(A)}},i=function(y){if(y.keyCode&&(a.indexOf(y.keyCode)!==-1)){y.stop&&y.stop();return c()}return},f=function(G){var z=atlas(G.srcTarget||G.target),y=z.closest("."+o.drop).api(),B=atlas(y._toggle).attr(u)||-1,E=atlas(y._contentChildren[B]).find("."+o.dropMenuItem).html(),F=z.html(),C=y.config.bindGroup,A=atlas("."+o.drop).not("."+o.dropActive).find("[data-atlas-dropdown-group="+C+"] ."+o.dropMenuItem),D=o.dropMenuItemGroupHide;A.each(function(){var H=this.innerHTML;if(E==H){atlas(this).removeClass(D)}if(F==H){atlas(this).addClass(D)}})},j=function(M){var A=atlas(M.srcTarget||M.target),H=atlas(A.closest("."+o.dropMenu)),E=H.data(s),z=E?atlas(E).api():A.closest("."+o.drop).api(),B=atlas(z._toggle),y=z._contentChildren,F=A.html(),G=A.text(),C=B.attr(u)||-1,D=A.parent().attr(u),L=z.config,K=(L.hideSelected===true),I,J,N;if(atlas(y[D]).attr("data-no-swap-title")==="true"){return}B.html(F).attr("title",G).attr(u,D);I=atlas(y[C]);J=atlas(y[D]);if(K){N=o.dropMenuItemHide}else{I=I.find("span");J=J.find("span");N=o.dropMenuItemSelected}I.removeClass(N);J.addClass(N)},c=function(z){var y;if(z){y=atlas(z.target||z.srcElement);if(!y.hasClass(o.button)){y=y.parents("."+o.button)}if(y.parent().hasClass(o.dropActive)){z.stopPropagation()}}v("."+o.dropActive,"close")},r=function(A){var z=atlas(A.target||A.srcElement),y;if(!z.hasClass(o.button)){z=z.parents("."+o.button)}y=z.parent().api();if(!y.enabled){return}if(z.parent().hasClass(o.dropActive)){return c()}v("."+o.dropActive,"close");v(z[0],"open")},v=function(H,O){var A=atlas(H),C=A.parent(),y,B=atlas("html"),N=o.dropToggleActive,M=o.dropActive,z,D,G,E,F,J,L,K,I;if(C.isDropdown()){y=C.api()}else{if(A.isDropdown()){y=A.api()}}O=O.toLowerCase();if(y){b(y.guid+"."+O,{guid:y.guid,container:y._container,action:O});z=atlas(y._content);D=atlas(y._toggle);G=y.config;F=(G.swapTitles===true);E=!!(G.bindGroup);I=y.config.appendTarget}switch(O){case"open":E&&B.on("click","."+o.dropMenuItem,f,null,false,true);F&&B.on("click","."+o.dropMenuItem,j,null,false,true);A.addClass(N).focus().parent().addClass(M);D&&D.attr(q);B.on("keydown",i,null,false).on("click",c,null,false,true);if(I){if(l(atlas.ui.tether)){if(!y._tether){y._tether=atlas.ui.tether(A,z,{modifiers:{offset:{offset:"0, 5"}}})}else{y._tether.update()}z.addClass(o.dropdownIsVisible)}else{L=A.offset();K=A.height();z.css({top:L.top+K,left:L.left}).addClass(o.dropdownIsVisible)}}if((J=x(z))<0){z.addClass(o.dropOrientRight).css({"margin-left":J})}break;case"close":E&&B.off("click",f);F&&B.off("click",j);A.removeClass(M);z&&z.removeClass(o.dropOrientRight).css({"margin-left":0});A.find("."+o.dropToggle).removeClass(N).blur();D&&D.attr(n);I&&z.removeClass(o.dropdownIsVisible);B.off("keydown",i).off("click",c);break}},b=function(z,y){z=typeof z!=="undefined"?"."+z:"";return atlas.pubsub.publish(d+z,y)},x=function(y){var D=atlas(window)[0].innerWidth,A=y.offset(),B=A.left,z=y[0].offsetWidth,C=z+B;return D-C};atlas.ui||(atlas.ui={});atlas.ui.dropdown=function w(G,I){var H,z,F,y,D,E,A,C,B;this.enabled=false;this.config=atlas.extend({},e,I);this.guid=atlas.makeGUID("A-");this.kind=d;H=atlas.performance.now();z=function(P){var N=this.config,K,O=N.appendTarget,L,M,J;if(!atlas.isAtlas(P)){P=atlas(P)}if(!P.length){return atlas.logError(d+" could not find its target to create a dropdown from","Target: `"+P+"`")}P.addClass(o.drop).tagGuid(this.guid);if(this.config.classNames){P.addClass(N.classNames)}this._container=P[0];K=atlas(this._container);M=P.find("."+o.dropToggle).first();J=P.find("."+o.dropMenu).first();this._toggle=M.length?M[0]:document.createElement("button");this._toggle=F.call(this);this._content=J.length?J[0]:atlas(document.createElement("ul")).addClass(o.dropMenu)[0];L=atlas(this._content);this._contentChildren=E.call(this);this.enabled=true;if(O){atlas(O).append(this._content);L.addClass(o.hasOverridePosition).data(s,this._container)}else{K.append(this._content)}if(N.dropdownClassNames){L.addClass(N.dropdownClassNames)}P.api(this)};F=function(){var J=atlas(this._toggle),L=this.config,N=k(L.title)||J.html()||"",M=L.label||"",K=L.attr||undefined;if(L.useFirstAsTitle===true){N=k(L.data[0].title)}if(L.swapTitles===true){J.attr(u,-1)}J.attr("type","button");J.addClass(o.button+" "+o.dropToggle).attr(n);N&&J.html(" ").append(atlas('').html(N));M&&J.prepend(atlas('').html(M));if(!J.attr("id")){this.guid&&J.attr("id",this.guid)}K&&J.attr(K);if(J.parent()[0]!==this._container){J.appendTo(this._container)}return J.on("click",r)[0]};y=function(J,K){var M=K&&K.name||undefined,L;if(m(M)){return undefined}L=atlas.extend(true,{},K);L.data=J.filter(function(N){return(M===t&&m(N.group))||(N.group&&N.group===M)});return L};D=function(L,N){var Q=N&&N.title,O=y(this.config.data,N),J,K,M,P=o.dropMenuGroup;if(O.data&&!O.data.length){return undefined}if(O.name===t&&m(O.title)){A.call(this,L,O.data);return undefined}!O.isScrollable&&(P+=" "+o.dropMenuGroupNoScrollable);O.disabled&&(P+=" "+o.dropMenuItemDisabled);O.classNames&&(P+=" "+O.classNames);K=atlas('
      ');J=atlas('
    1. ').append(K);if(Q){K.append(atlas(''+Q+""))}M=atlas('
        ');K.append(M);A.call(this,M.children(),O.data);if(O.handler&&l(O.handler)){J.on("click",g,{self:this,handler:O.handler},true)}return J};E=function(L){var M=L||atlas(this._content),J=this.config.groups||[],N=J.length,O=0,P,K;this.nItemsIndex=0;this.items=[];if(!J.filter(function(Q){return Q.name===t}).length){J.push(p);N=J.length}M.attr({role:"menu","aria-labelledby":atlas(this._toggle).attr("id")});for(;O'),N=L.type?L.type.toLowerCase():undefined,K=(L.swapTitles===false);switch(N){case"header":this.nItemsIndex-=1;return J.addClass(o.dropMenuItemHeader).html(k(L.title))[0];case"disabled":J.disableElement();break;case"divider":this.nItemsIndex-=1;return J.addClass(o.dropMenuItemDivider)[0]}if(this.config.useFirstAsTitle===true&&M===0){J.addClass(o.dropMenuItemHide)}K&&J.attr("data-no-swap-title",K);this.items.push(L);J.attr(u,M).append(B.call(this,L));if(N==="disabled"){J.children().disableElement()}return J[0]};B=function(P){var J=m(P.link)?atlas(""):atlas("").attr("href",P.link),K=this.config.attr,R=P.value,L=P.attr,M=m(K),O=m(R),N=m(L),Q=!!P.active;J.addClass(o.dropMenuItem).html(k(P.title)).attr({tabindex:"-1",role:"menuitem",title:P.title}).data("info",(P.options)?P.options:"");M&&J.attr(K);N&&J.attr(L);O&&J.attr("data-value",R);if(Q){J.addClass(o.dropMenuItemSelected);atlas(this._toggle).attr(u,this.nItemsIndex-1)}(P.isBound===true)&&J.addClass(o.dropMenuItemGroupHide);if(P.handler&&l(P.handler)){J.on("click",g,{self:this,handler:P.handler},true)}return J[0]};this.destroy=function(){var L=atlas(this._toggle),K=atlas(this._content),J=atlas(this._container);this._tether&&this._tether.destroy();L.remove();K.children().removeChildren().remove();K.remove();J.removeChildren().remove()};this.active=function(){var K=atlas(this._toggle),L=K.attr(u),J=this.items||[];return(L===null||L==-1)?null:J[L]};this.getDropdownSelector=function(){return this._content};this.enable=function(){atlas(this._container).enableElement();b(this.guid+".enabled",{guid:this.guid,container:this._container});return(this.enabled=true)};this.disable=function(){this.isOpen()&&this.close();atlas(this._container).disableElement();b(this.guid+".disabled",{guid:this.guid,container:this._container});return(this.enabled=false)};this.close=function(){c({})};this.open=function(){if(!this.isOpen()){this.enabled&&r({target:atlas(this._toggle)[0]})}};this.isOpen=function(){return(atlas(this._toggle).attr("aria-expanded")==="true")};this.toggle=function(){if(!this.enabled){return}return this.isOpen()?this.close():this.open()};z.call(this,G);this.enabled=true;b(this.guid+".timing",{type:"ready",time:atlas.performance.now()-H,container:this._container,guid:this.guid});return this._container};atlas.ui.dropdown.COMPONENT_ID=d;atlas.fn.dropdown=function(A){var y="atlas.fn.dropdown",z;if(atlas.isObject(A)){if(!atlas.isArray(A.data)||!A.data.length){atlas.logError(y+" was not provided data to create the dropdown content. The configuration object did not have a data node, or the data node was not an array, or the data node had no length",JSON.stringify(A));return this}}else{atlas.logError(y+" was not provided an object for its configuration.","Type was `"+atlas.getType(A)+"`");return this}z=atlas.ui.dropdown;return !this.length?atlas('
        ').dropdown(A):this.each(function(C){var B=atlas(C);if(!B.isComponent()){new z(C,A)}else{atlas.logWarn(y+": {0} is already an atlas ui component, atlas will not turn an existing component into another component",[C.id||C.tagName+"."+C.className.replace(" ",".")],"Already an instanceof "+B.attr("atlas-component"))}})};atlas.fn.isDropdown=function(){return !!(this[0]&&this.first().attr("atlas-component")===d)}})();(function(){var a="atlas.ui.panelSlider",e=atlas.isFunction,f=atlas.isObject,d=atlas.format,c=atlas.extend,k="atlas--ui-panelSlider",j={active:k+"-active",top:k+"-top",right:k+"-right",bottom:k+"-bottom",left:k+"-left",overlay:k+"-overlay",overlayActive:k+"-overlayActive",header:k+"-header",subheader:k+"-subheader",content:k+"-content",body:k+"-body"},b={honorBlackLineHeader:true,honorBlackLineHeaderSelector:".bl--global-header",position:"left",positionOffset:"340px",width:"340px",height:undefined,push:false,top:0,bottom:0,target:document.body,header:undefined,subheader:undefined,content:undefined,autoOpen:false,zIndex:2000,overlay:true,closeOnEsc:true,closeOnOverlayClick:true,overlayColor:"rgba(0, 0, 0, 0.25)",trigger:undefined,onBeforeClose:undefined,onClose:undefined,onBeforeOpen:undefined,onOpen:undefined,onBeforeDestroy:undefined,onDestroy:undefined,onTrigger:undefined},h=atlas.logError,i=atlas.logWarn,g=function(l,m){l=l||i;m=m||"Log message not specified";return l(a+": "+m)};atlas.ui=atlas.ui||{};atlas.ui.panelSlider=function(x,y){var w=atlas(x),q=function(z,A){m("onTrigger");return A.toggle()},t=function(z,A){z.attr("aria-expanded",!!A)},m=function(z){var A=this.config,B=A[z];return e(B)?B.call(this.element,z,this):undefined}.bind(this),p=function(z,B){var A=z.keyCode||undefined;if(A){return A===27?B.close():undefined}return B.close()},u=function(E){var D=this.config,C=!!D.closeOnEsc,B=D.overlay===true?!!D.closeOnOverlayClick:false,z=atlas("html"),A=B?atlas(this.overlay):undefined;E=!!E;if(E){A&&A.one("click",p,this,false);C&&z.on("keydown",p,this,false)}else{A&&A.off("click",p);C&&z.off("keydown",p)}}.bind(this),l=function(){var z=this;atlas("."+k).each(function(A){if(z.element!==A){atlas(A).api().close()}})}.bind(this),v=function(G){var B=this.config,F=B.position,z=atlas(document.body),E,A=this.isOpen(),D=F==="left"?"-":"",C=B.classes;G=!!G;if(G&&A){G=false}if(G===true){if(A){return}m("onBeforeOpen");E=n(w);l();w.css("top",o()).addClass(j.active).css("transform","translateX(0)");C&&w.addClass(C);r(true);u(true);z.css("overflow","hidden");if(B.push===true){z.addClass(j.body).css("transform","translateX("+D+E+")").css(F,0)}m("onOpen")}else{z.css("overflow",null);if(B.push){z.removeClass(j.body).css("transform","translateX(0)").css(F,null)}if(!A){return}m("onBeforeClose");E=n(w);w.removeClass(j.active).css("transform","translateX("+D+E+")");r(false);u(false);m("onClose")}t(w,G)}.bind(this),s=function(B){var z=this.config,C=z.trigger,A=B?"on":"off";atlas(C)[A]("click",q,this,false)}.bind(this),r=function(B){var A,C,z;if(!this.overlay){return}A=this.config;C=A.zIndex-1;z=atlas(this.overlay);B=!!B;if(B){z.css("zIndex",C).addClass(j.overlayActive)}else{z.css("zIndex","-1").removeClass(j.overlayActive)}}.bind(this),o=function(){var A=this.config,B=A.honorBlackLineHeaderSelector||"#global--header",z=document.querySelector(B);if(!z){return A.top}return A.honorBlackLineHeader?atlas(B)[0].getBoundingClientRect().bottom+"px":A.top}.bind(this),n=function(z){var D=this.config,E=D.position.toLowerCase(),F=(E==="left")?"":"-",A=function(H){var G=z.css("padding-"+H);return G?+G.substring(0,G.length-2):0},B=A("left"),C=A("right");this.config.positionOffset=F+D.width;return(z.getActualSize().width+B+C)+"px"}.bind(this);this.guid=atlas.makeGUID();this.kind=a;this.config=c({},b,y);this.element=w[0];this.overlay=undefined;this.defaults=b;this.header=undefined;this.subheader=undefined;this.content=undefined;this.init=function(){var E=this.config,A=atlas(this.element),F=E.content||undefined,G=E.header||undefined,I=E.subheader||undefined,J=E.trigger,z=atlas('
        '),B,C,D=0,H=E.position;A.addClass(k);this.content=z[0];if(G){B=atlas('
        ').append(G).appendTo(A);this.header=B[0];D+=B.offsetHeight(true)}if(I){C=atlas('
        ').append(I).appendTo(A);this.subheader=C[0]}F&&z.append(F);z.appendTo(A);A.css({top:o(),width:E.width,height:E.height}).css(E.position,0);A.css("transform","translateX("+(H==="left"?"-":"")+n(A)+")").prependTo(E.target);if(G||I){if(B){D+=B.offsetHeight(true)}if(C){D+=C.offsetHeight(true)}D&&A.css("padding-bottom",D+20)}t(A,false);if(E.overlay===true){this.overlay=atlas('
        ').css({"z-index":"-1",top:E.top,"background-color":E.overlayColor}).prependTo(E.target)[0]}J&&s(true);A.api(this);E.autoOpen&&this.open()};this.isOpen=function(){return(atlas(this.element).attr("aria-expanded")==="true")};this.open=function(){return v(true)};this.close=function(){return v(false)};this.destroy=function(){var A=atlas(this.overlay),z=atlas(this.element);m("onBeforeDestroy");this.close();s(false);if(z.length){z.removeChildren().removeClass(k).remove()}if(A.length){A.remove()}m("onDestroy")};this.toggle=function(){return this.isOpen()?this.close():this.open()};this.init()};atlas.fn.isPanelSlider=function(){return !!(this[0]&&this.first().attr("atlas-component")===a)};atlas.fn.panelSlider=function(l){if(l&&!f(l)){g(h,d("Missing configuration object (literal type). Type was {0}.",[atlas.getType(l)]));return this}return !this.length?atlas('
        ').panelSlider(l):this.each(function(n){var m=atlas(n),o;if(m.isComponent()){g(h,d("{0} is already an atlas ui component, atlas will not turn an existing component into another component",[n.id||n.tagName+"."+n.className.replace(" ",".")],"Already an instanceof "+m.attr("atlas-component")));return}o=atlas.ui.panelSlider;new o(n,l)})}})();(function(z){var v={actions:"Actions",expandAll:"Expand All",collapseAll:"Collapse All",selectAll:"Select All",clearAll:"Clear All",selectAllLevel:"Select All Level {0}",selectThisLevel:"Select Only This Level",selectLevelAndChildren:"Select Level and Children",cancel:"Cancel",apply:"Apply"},u=z.extend(v,z.i18n&&z.i18n.treeView),a="atlas.ui.treeView",y,s=200,p=function(B,C,A){B=B||r;C=C||"Log message not specified";return B(a+": "+C,A)},c=z.each,j=z.isArray,m=z.isNumber,l=z.isFunction,o=z.isString,k=z.isAtlas,n=z.isObject,e=z.extend,r=z.logWarn,q=z.logError,f=z.format,g="atlas--ui-icon",i=g+"-expand",h=g+"-check",w="atlas--ui-treeView",x=w+"-node",t={icon:w+"-icon",iconExpand:"icon-triangle-right",iconCheck:"icon-checkbox-checked",iconUncheck:"icon-checkbox-unchecked",iconCollapse:"icon-triangle-down",iconEmpty:w+"-icon-empty",iconNode:w+"-icon-node",iconActivateParentOptions:"icon-angle-down",treeGroup:w+"-group",treeSubGroup:w+"-subGroup",treeItem:w+"-item",treeIndent:w+"-indent",treeLink:w+"-link",nodeChecked:x+"-checked",nodeDisabled:x+"-disabled",nodeSelected:x+"-selected",hasParentOptions:w+"-hasParentOptions",parentOptions:w+"-parentOptions",parentOptionsActive:w+"-parentOptions-active",parentOptionsActionParent:w+"-parentOptions-action-parent",parentOptionsActionAll:w+"-parentOptions-action-all",configHover:w+"-use-hover",configBorder:w+"-use-border",configSelected:w+"-use-selected",treePanel:w+"-tree-panel",controlPanel:w+"-control-panel",selectItems:w+"-select",expandItems:w+"-expand",preventOuterScroll:"atlas--ui-prevent-scroll-outer",spinner:"atlas--ui-spinner-show",nodeText:w+"-node-text"},b={levels:1,enableLinks:false,highlightSelected:false,displayCheckboxes:false,multiSelect:false,suppressEvents:false,ignoreChildren:true,displayParentOptions:false,rowHoverHighlight:false,displayBorders:false,allowExpansionToggle:true,toggleChildChecksFromParent:false,disableChildrenOnSelect:false,loadDataOnScroll:false,loadDataOnScrollSize:50,displayTopOptions:false,displayTopControls:false,displayExpandCollapseAll:false,displayTopOptionsLevels:false,displaySubTreeStructure:false,topOptionsLevelsCallback:undefined,allowSelectAll:false,deferRender:false,icons:{expandIcon:t.icon+" "+t.iconExpand,collapseIcon:t.icon+" "+t.iconCollapse,emptyIcon:t.icon+" "+t.iconEmpty,nodeIcon:"",selectedIcon:t.icon,checkedIcon:t.icon+" "+t.iconCheck,uncheckedIcon:t.icon+" "+t.iconUncheck},events:{},selected:[]},d=["nodeChecked","nodeCollapsed","nodeDisabled","nodeEnabled","nodeExpanded","nodeSelected","nodeUnchecked","nodeUnselected","searchComplete","searchCleared","render","init","destroy"];c(d,function(A){b.events["on"+z.caseUpperFirst(A)]=undefined});z.ui.treeView=function(B,C){var D=this,A=function(H,F,G){D._forEachId(F,G,function E(I,J){D._setSelectedState(I,H,J)});D._render()};C=C||this.treeConfig;this.loadData=false;this.initialLoadComplete=false;this.kind=a;this.guid="A-"+z.makeGUID();!B.hasAttribute("id")&&B.setAttribute("id",this.guid);this.element=B;this.elementId=this.element.id;this.treeConfig=e(true,{},b,C);this.getNodeValue=function(F,E){var G=E.split(".").reduce(function(H,I){return(n(H)&&H.hasOwnProperty(I))?H[I]:undefined},F);return G!==undefined&&G!==null?""+G+"":undefined};this.getParent=function(E){return this.nodes[this.identifyNode(E).parentId]};this.getSiblings=function(E){var F=this.identifyNode(E),H=this.getParent(F),G=H?H.nodes:this.tree;return G.filter(function(I){return I.nodeId!==F.nodeId})};this.getSelected=function(){return this.findNodes("true","g","state.selected")};this.getUnselected=function(){return this.findNodes("false","g","state.selected")};this.getLevelNodes=function(E){E=m(E)?E:z.toInt(E);return this.findNodes(E,"g","level")};this.checkLevelNodes=function(E){var F=this.getLevelNodes(E);if(j(F)&&F.length){this.checkNode(F);this._render()}};this.getChecked=function(){return this.findNodes("true","g","state.checked")};this.selectedItems=function(){var E=this.treeConfig.selected||[],F=this.getChecked().filter(function(G){return !G.state.disabled});return F.concat(E)};this.getUnchecked=function(){return this.findNodes("false","g","state.checked")};this.getExpanded=function(){return this.findNodes("true","g","state.expanded")};this.getCollapsed=function(){return this.findNodes("false","g","state.expanded")};this.getDisabled=function(){return this.findNodes("true","g","state.disabled")};this.getEnabled=function(){return this.findNodes("false","g","state.disabled")};this.selectNode=function(E,F){return A(true,E,F)};this.deselectNode=function(E,F){return A(false,E,F)};this.toggleNodeSelect=function(F,G){var H=this;this._forEachId(F,G,function E(I,J){H._toggleSelectedState(I,J)});this._render()};this.disableAll=function(G){var F=this.findNodes("false","g","state.disabled"),H=this;this._forEachId(F,G,function E(I,J){H._setDisabledState(I,true,J)});this._render()};this.disableNode=function(F,G){var H=this;this._forEachId(F,G,function E(I,J){H._setDisabledState(I,true,J)});this._render()};this.enableAll=function(G){var F=this.findNodes("true","g","state.disabled"),H=this;this._forEachId(F,G,function E(I,J){H._setDisabledState(I,false,J)});this._render()};this.enableNode=function(F,G){var H=this;this._forEachId(F,G,function E(I,J){H._setDisabledState(I,false,J)});this._render()};this.toggleNodeDisabled=function(F,G){var H=this;this._forEachId(F,G,function E(I,J){H._setDisabledState(I,!I.state.disabled,J)});this._render()};this.collapseAll=function(G){var F=this.findNodes("true","g","state.expanded"),H=this;this._forEachId(F,G,function E(I,J){H._setExpandedState(I,false,J)});this._render()};this.collapseNode=function(F,G){var H=this;this._forEachId(F,G,function E(I,J){H._setExpandedState(I,false,J)});this._render()};this.expandAll=function(H){var F,I=this,G=e(true,{},this.treeConfig,(m(H)?{levels:H}:H||{levels:Infinity}));if(m(G.levels)){this._expandLevels(this.tree,G.levels,G)}else{F=this.findNodes("false","g","state.expanded");this._forEachId(F,G,function E(J,K){I._setExpandedState(J,true,K)})}this._render()};this.expandNode=function(G,H){var I=this,E;this._forEachId(G,H,function F(J,K){E=J.nodes;I._setExpandedState(J,true,K);if(E&&(K&&K.levels)){I._expandLevels(E,K.levels-1,K)}});this._render()};this.revealNode=function(F,G){var H=this;this._forEachId(F,G,function E(I,J){var K=H.getParent(I);while(K){H._setExpandedState(K,true,J);K=H.getParent(K)}});this._render()};this.toggleNodeExpand=function(F,G){var H=this;this._forEachId(F,G,function E(I,J){H._toggleExpandedState(I,J)});this._render()};this.checkAll=function(G){var F=this.findNodes("false","g","state.checked"),H=this;this._forEachId(F,G,function E(I,J){H._setCheckedState(I,true,J)});this._render()};this.checkNode=function(F,G){var H=this;this._forEachId(F,G,function E(I,J){H._setCheckedState(I,true,J)});this._render()};this.checkChildren=function(H,G,J){var F=this.getNode(H),I=this,E=function(L){c(L.nodes,function K(M){I._setCheckedState(M,J,G);M.nodes&&E(M)})};F.nodes&&E(F);this._render()};this.uncheckAll=function(G){var F=this.findNodes("true","g","state.checked"),H=this;this._forEachId(F,G,function E(I,J){H._setCheckedState(I,false,J)});this._render()};this.toggleBranchChecks=function(J,I){var H,F,L=this,G,K,E=I&&I.disableChildrenOnSelect;if(!(m(J)||n(J)||o(J))){return}H=n(J)?J:this.getNode(J);if(!H){return}this._toggleCheckedState(H,I);G=H.nodes;if(!G||!G.length){this._render();return}F=(this.getNodeValue(H,"state.checked")==="true");K=function(N){c(N.nodes,function M(O){L._setCheckedState(O,F,I);E&&L._setDisabledState(O,F,I);O.nodes&&K(O)})};K(H);this._render()};this.uncheckNode=function(E,F){var G=this;this._forEachId(E,F,function(H,I){G._setCheckedState(H,false,I)});this._render()};this.toggleNodeCheck=function(E,F){var G=this;this._forEachId(E,F,function(H,I){G._toggleCheckedState(H,I)});this._render()};this.identifyNode=function(E){return m(E)?this.nodes[E]:E};this.findNode=function(E){var G=(k(E)?E:z(E)).closest("."+t.treeItem).attr("data-nodeid"),F=this.nodes[G];return F};this.findNodes=function(G,F,E){var I=this,H=new RegExp(G,F||"g");E=E||"text";return z.grep(this.nodes,function(J){var K=I.getNodeValue(J,E);if(o(K)){return K.match(H)}})};this.resetSelection=function(F){var E=this.treeConfig;this.uncheckAll();this.enableAll();E.selected=[];this.treeConfig=z.extend({},E,F)};this.destroy=function(){if(!this.initialized){return false}this._unsubscribeEvents();z(this.wrapper).remove();z(this.element).remove();(this.dropdown&&l(this.dropdown.destroy))&&this.dropdown.destroy();this.controlPanel&&this.controlPanel.off().remove();this.initialized=false;this.tree=[];this.nodes=[];this._emitEvent(this.treeConfig,"destroy",this.tree)};if(C.dataProvider){this.loadData=true;if(!j(this.treeConfig.data)||this.treeConfig.data.length>0){this.initialLoadComplete=true}}this._init(C);return this.element};z.ui.treeView.prototype={_defaultConfig:b,_emitEvent:function(C,A,B){C=C||this.treeConfig;if((C&&C.suppressEvents===true)||(!A||!B)){return}z(this.element).fireEvents(A,[A,B,this])},extendTree:function(A,B){var C=this;A=j(A)?A:[A];if(!B){this.tempTree=[].concat(A);this._setInitialStates({nodes:C.tempTree},0);this.tree=this.tree.concat(this.tempTree);this.tempTree=undefined}else{B.nodes=A[0].nodes;B.nodesCount=A[0].nodes.length;this._setInitialStates(B,B.level)}if(this.dropdown&&l(this.dropdown.destroy)){this.dropdown.destroy();this._setupOptionsDrop()}this._render()},_setupControlPanel:function(){var K=this,N=K._template,D=z(N.controlPanel),M=u.selectAll,H=u.clearAll,L=u.expandAll,I=u.collapseAll,A=z(N.expandControl),B=z(N.selectControl),C=K.treeConfig.allowSelectAll===true,G=false,F=false;D.on("click","."+t.expandItems,E);D.append(A);if(C){D.on("click","."+t.selectItems,J);D.append(B)}function J(P){var O=z(P.target);if(!G){O.text(H);G=true;K.checkAll()}else{O.text(M);G=false;K.uncheckAll()}}function E(P){var O=z(P.target);if(!F){O.text(I);F=true;K.expandAll({levels:Infinity})}else{O.text(L);F=false;K.collapseAll({suppressEvents:true})}}D.prependTo(this.element);this.controlPanel=D},_setupOptionsDrop:function(){var G=this,C=G.treeConfig,H=u.selectAllLevel,B=this.levels,D=[],E,F=function(J){var I=C.topOptionsLevelsCallback||undefined;G.checkLevelNodes(J);l(I)&&I(J)},A=z.format;if(C.displayExpandCollapseAll===true){D.push({title:u.collapseAll,handler:function(){G.collapseAll({suppressEvents:true})}},{title:u.expandAll,handler:function(){G.expandAll({levels:Infinity})}})}if(C.displayTopOptionsLevels===true&&(B&&B.length)){D.length&&D.push({type:"divider"});B.forEach(function(I){D.push({title:A(H,[I]),handler:function(){return F(I)}})})}if(D.length){E=z().dropdown({title:u.actions,data:D}).prependTo(this.element);this.dropdown=E.api()}},_init:function(C){var B=C.data||undefined,A=this.treeConfig;this.levels=[];this.tree=[];this.nodes=[];this.tempTree=undefined;if(B){this.tree=B.slice(0);delete C.data;delete A.data}this._setInitialStates({nodes:this.tree},0);if(A.displayTopOptions&&!this.dropdown){if(!l(z.fn.dropdown)){p(q,"Top Options was configured to be displayed, but the dropdown component is not available!")}else{this._setupOptionsDrop()}}if(A.displayTopControls){this._setupControlPanel()}this._emitEvent(A,"init",this.tree);z(this.element).api(this);this._subscribeEvents();!A.deferRender&&this._render()},_unsubscribeEvents:function(){z(this.element).off("click "+d.join(" "))},_subscribeEvents:function(){var A=z(this.element),B=this.treeConfig,C=B.events,G=this,F=function(H,I){return G._handleOptionsClicks(H,I)},D,E;this._unsubscribeEvents();A.on("click",function(H){G._handleClicks(H);H.stop()});if(B.displayCheckboxes===true&&B.displayParentOptions===true){A.on("click","."+t.parentOptionsActionParent,F,"parent",true).on("click","."+t.parentOptionsActionAll,F,"all",true)}for(D in C){if(C.hasOwnProperty(D)){E=C[D];l(E)&&A.on(z.caseLowerFirst(D.substring(2)),E)}}},_setInitialStates:function(E,C){var I,J,F,D,H,A,G,B;if(!E.nodes){return}C+=1;I=E;J=this;F=this.treeConfig;D=F.levels;A=this.levels;G=I.state||{};B=(F.displayCheckboxes===true&&F.toggleChildChecksFromParent===true&&G.checked===true);(A.indexOf(C)===-1)&&A.push(C);c(E.nodes,function K(L){if(L.nodes&&L.nodes.length===0&&m(L.nodesCount)&&L.nodesCount===0){delete L.nodes}L.level=C;L.nodeId=L.nodeId||J.nodes.length;L.parentId=I.nodeId;H=L.state=L.state||{};F.selected=F.selected.filter(function(M){if(L.nodeId===M.nodeId){H.checked=true;return false}return true});if(B){H.checked=true;H.disabled=true}if(!L.hasOwnProperty("selectable")){L.selectable=true}if(!H.hasOwnProperty("checked")){H.checked=false}if(!H.hasOwnProperty("disabled")){H.disabled=false}if(!H.hasOwnProperty("expanded")){H.expanded=(!H.disabled&&(C0))}if(!H.hasOwnProperty("selected")){H.selected=false}J.nodes[L.nodeId]=L;L.nodes&&J._setInitialStates(L,C)})},_handleOptionsClicks:function(D,G){var A=z(D.target||D.srcElement),B=A.closest("div."+t.parentOptionsActive),F=B.length?z.toInt(B.attr("data-parent-nodeid")):null,E,C=this.treeConfig;if(!B.length||F===null){p(q,"Could not determine the treeView Node ID to turn checkboxes on, failing.");return}G=G.toLowerCase();E=this.getNode(F);this._setCheckedState(E,true,C);if(G==="parent"){this.checkChildren(F,C,false);return}this.checkChildren(F,C,true)},_handleOptionsPop:function(G,I){var C=z(this.element),E=C.find("[data-parent-nodeid='"+I+"']"),B=E.parent().find("."+h),H=(B.offset().left-B.parent().offset().left)||0,F=t.parentOptionsActive,D=z("."+t.treeItem).not(E.parent()),J=function(){y=setTimeout(function(){A()},s)},A=function(){clearTimeout(y);C.find("."+F).removeClass(F);C.off("mouseleave",J);E.off("mouseleave",J);D.off("mouseover",J)};y&&clearTimeout(y);E.css("left",H+"px");C.find("."+F).not(E).removeClass(F);if(E.hasClass(F)){J()}else{clearTimeout(y);E.addClass(t.parentOptionsActive);E.one("mouseleave",J);C.one("mouseleave",J);D.one("mouseover",J)}},_loadChildNodesAsync:function(C,E,A){var H=this,B=z(H.wrapper).parent(),F=setTimeout(function(){B.addClass(t.spinner)},250),D=function(){clearTimeout(F);B.removeClass(t.spinner)},G={levels:1,currentNodeValue:E.nodeId||undefined};return this.treeConfig.dataProvider.getDataAsync(G).then(function(I){if(!I||!j(I)){p(q,"Response from API could not be parsed into valid object.");return}if(!H.initialLoadComplete){H._init({data:I});H.initialLoadComplete=true}else{H.extendTree(I,E||undefined)}H._handleClicks(C,E,A);D()})["catch"](function(I){p(q,"API error! Failing!",I);D()})},_handleClicks:function(D,G,F){var B,A,E,H,C;if(!this.treeConfig.enableLinks){D.preventDefault()}B=F||z(D.target||D.srcElement);A=B.classesToArray();E=G||this.findNode(B);H="data-parent-nodeid";if(B.hasClass(t.nodeDisabled)){D.stop();return}if(B.hasClass(t.treeGroup)||B.hasClass(t.treeSubGroup)){return}if(this.loadData&&E){if(E.nodesCount>0&&E.nodes.length===0){this._loadChildNodesAsync(D,E,B);return}}C=this.treeConfig;if(C.displayParentOptions===true&&C.displayCheckboxes===true){if(B.hasClass(t.iconActivateParentOptions)){return this._handleOptionsPop(D,B.parent().children("["+H+"]").first().attr(H))}if(B.hasClass(t.parentOptionsActionAll)||B.hasClass(t.parentOptionsActionParent)){return}}if(!E){return}if(A.indexOf(i)!==-1){this._toggleExpandedState(E,C);this._render()}else{if(A.indexOf(h)!==-1){if(!E.state.disabled){if(C.displayCheckboxes===true&&C.toggleChildChecksFromParent===true){this.toggleBranchChecks(E,C)}else{this._toggleCheckedState(E,C);this._render()}}}else{if(E.selectable&&C.highlightSelected){this._toggleSelectedState(E,C)}else{this._toggleExpandedState(E,C)}this._render()}}},_setDisabledState:function(A,C,B){if(C===A.state.disabled){return}B=B||this.treeConfig;if(C){A.state.disabled=true;this._emitEvent(B,"nodeDisabled",e(true,{},A))}else{A.state.disabled=false;this._emitEvent(B,"nodeEnabled",e(true,{},A))}},_forEachId:function(C,E,A){var B=0,D;E=e(true,{},b,E);C=j(C)?C:[C];D=C.length||0;for(;B'+S+"
        ")):M.append(''+S+"");if(K&&F.displayParentOptions===true&&F.displayCheckboxes===true){M.append(Q([t.iconActivateParentOptions,t.icon]));z(H._template.parentOptions).attr("data-parent-nodeId",P.nodeId).appendTo(M)}if(F.displaySubTreeStructure&&C>1){A.appendChild(M[0]);G.appendChild(A)}else{B.appendChild(M[0])}if(K&&T.expanded){return H._buildTree(P.nodes,C,B,M[0])}});H.wrapper.appendChild(B)},_expandLevels:function(D,C,E){var F=this,A;E=e(true,{},b,E);c(D,function B(G){A=G.nodes;F._setExpandedState(G,C>0,E);A&&F._expandLevels(A,C-1,E)})},_template:{list:'
          ',item:'
        • ',indent:'',icon:'',link:'
          ',parentOptions:'",treePanel:'
          ',controlPanel:'
          ',expandControl:'
          '+u.expandAll+"
          ",selectControl:'
          '+u.selectAll+"
          "},getNode:function(A){return this.nodes[A]}};z.fn.isTreeView=function(){return !!(this[0]&&this.first().attr("atlas-component")===a)};z.fn.treeView=function(C){var A,B;if(!n(C)){A="If providing a configuration, it must be of type object";B="type was "+typeof C;p(q,A,B);return this}if((!j(C.data)||!C.data.length)&&!C.endpoint){A="If providing a configuration, it must contain a `data` property that is an array and has at least one entry, or an API endpoint";B="type was "+typeof C.data;p(q,A,B);return this}return !this.length?z('
          ').treeView(C):this.each(function(F){var E=z(F),G="{0} is already an atlas ui component,atlas will not turn an existing component into another component",D=[F.id||F.tagName+"."+F.className.replace(" ",".")],H="Already an instanceof "+E.attr("atlas-component"),I=z.ui.treeView;if(!E.isComponent()){new I(F,C)}else{p(q,f(G,D,H))}})}})(atlas||{});(function(m){m.ui=m.ui||{};var c="atlas.ui.searchItems",e=m.isArray,i=m.isString,g=m.isFunction,h=m.isObject,f=m.isAtlas,l=m.pubsub.publish,d={searchDebounceTime:300,hideDelayTime:25},j={component:"atlas-component",dataGUID:"data-searchItemsGUID"},a=[{title:"records",rule:"isArray"},{title:"elems",rule:"isObject"},{title:"elems.inputEl",rule:"isString"},{title:"elems.itemEls",rule:"isString"},{title:"filterCollections",rule:"isArray"}],k={fnCount:function(o,n){return''+n+""}},b=function(u){var t=u,p,r,o,q,n=0,s=a.length;for(;n")[0]||!K.attr("placeholder")){return}var W=K.attr("placeholder");L=m("").attr("id",R.config.id+"-placeholder").addClass("atlasSearchItems-placeholder").html(W).insertAfter(K);C(K,"focus",U,null,false);C(K,"blur",V,null,false);C(L,"click",T,null,false);function V(){if(this.value===""){L.show()}return this}function U(){if(this.value===""){L.hide()}return this}function T(){K.focus()}},y=function(){var U,T=0;if(O.inputEl&&(U=K[0].value)!==P.currentSearch){P.currentSearch=U;T=s();if(P.searchCycleTime){setTimeout(function(){l("searchItems.DOM.filterDone")},P.searchCycleTime)}else{l("searchItems.DOM.filterDone")}E(T)}},q=function(T){return B(T)?D(T,true,I):D(T,false,G)},B=function(T){return r(T)},r=function(T){if(!i(P.currentSearch)||P.currentSearch===""){return true}var U=P.currentSearch.trim().toLowerCase();if(!e(T.searchables)){T.searchables=o(T)}return !!T.searchables.filter(function(V){return V.indexOf(U)>=0}).length},D=function(aa,V,T){var Z=t(aa);if(!Z||!T||!T.length){return m.logError("Error in _showItemElem: all params are required; at least one is missing.")}var U=m(Z),X=0,Y=T.length,ab,W=(V)?"removeClass":"addClass";for(;X'+u.text+"").data("info",u).appendTo(r)}return r},e=function(){var r=this._dataToggleBtn,q=this._panel;if(r.is(":checked")){r.attrRemove("checked");q.removeClass(g.extendedData)}else{r.attr("checked","checked");q.addClass(g.extendedData)}},d=function(r){var q=o(r.target),s=q.data("info");if(this.options.closeOnSelection){this.close()}this.publish(i.onItemSelected,{searchItemsPanel:this,selectedItem:s.details})},a=function(q){var r={data:{required:true,types:"Array"},dataToggleSwitch:{types:["String","Boolean"]},closeOnSelection:{types:"Boolean"},onItemSelected:{required:true,types:"Function"},labels:{required:true,types:"Object"}},s=o.validateOptions(q,r);if(s.valid===true){return true}f.logError("searchItemsPanel validation failed. The following are invalid:"+s.invalidFields.toString());return false},j=function(t,u){var s=o(t.target),r=u._panel,q=o(u.container);if(!s.closest(r).length&&!s.closest(q).length){u.close()}},p=function(r,q){if(!a(q)){return f.logError("Instance of searchItemsPanel not instantiated! See requirements for details.")}this._data=q.data;q=o.extend({},h,q);p.prototype.base.call(this,r,q);this._isOpen=false;this.render(r,q).initSearch(r,q);this.subscribeEvents(q)};o.component({componentId:b,events:o.utils.values(i)},p);p.prototype.render=function(v,t){var r=n||(n=o.Template.compile(o.templates[k.searchItemsPanel])),q=o(v),s=t,u=this.options.appendTarget;s.guid=this.guid;this._panel=o(r(s));if(u){o(u).append(this._panel);this._panel.addClass(g.hasOverridePosition);this._panel.data(m,this.container)}else{q.append(this._panel)}this._dataToggleBtn=this._panel.find("."+g.toggleCheckbox);if(this.options.dataToggleSwitch){this._panel.on("click","."+g.toggleLbl,e.bind(this),null,true).find("."+g.btnsContainer).removeClass(g.hide)}this._panel.find("."+g.panelListContainer).append(c.call(this));this._panel.addClass(g.container).on("click","."+g.panelListItem,d.bind(this),null,true);return this};p.prototype.initSearch=function(v,s){var q=this._panel.find("."+g.panelListContainer),u=g.inputIDPrefix+"-"+s.guid,r={hideActions:[{sClass:g.hide}],showActions:[{sClass:g.hide}]},t={id:u,records:s.data,elems:{inputEl:"#"+u,itemEls:"."+g.panelListItem},filterCollections:["text"],displayClasses:s.displayClasses||r};q.searchItems(t);return this};p.prototype.open=function(){var u=this.options.appendTarget,q=o(this.container),t,r=o("html"),s;r.on("click",j,this,false);this._panel.removeClass(g.hide);q.addClass(g.panelActive);if(u){if(o.ui.tether){s=function(){if(this._focus){this.focus();this._focus=false}}.bind(this);this._tether=this._tether||o.ui.tether(q,this._panel,{onCreate:s,onUpdate:s})}else{t=q.offset();this._panel.css({top:t.top,left:t.left})}}this._isOpen=true;return this};p.prototype.focus=function(){o(this._panel).find("."+g.input).focus()};p.prototype.openFocused=function(){this.open();if(this._tether){this._focus=true}else{this.focus()}return this};p.prototype.close=function(){var r=o("html"),q=o(this.container);this._panel.addClass(g.hide);r.off("click",j);q.removeClass(g.panelActive);this._isOpen=false;return this};p.prototype.toggle=function(){this._isOpen?this.close():this.open();return this};p.prototype.getPopup=function(){return this._panel};p.prototype.destroy=function(){var q=o(this.container),r=o(this._panel).find("."+g.panelListContainer),s=r.api();this._tether&&this._tether.destroy();q.off().removeGuid().removeApi();s.off();this._panel.off().removeChildren();this._panel.remove()};p.prototype.updatePosition=function(){this._tether.update()};p.prototype.getDropdownSelector=function(){return this._panel};o.templates[k.searchItemsPanel]='
          #:labels.title || "FPO - Title"#
          '})(atlas);(function(N){var K="atlas.ui.draggable",G="atlas--ui-draggable",B={html:"html",dragging:G+"-dragging",handle:G+"-handle"},x={draggable:"draggable"},p=N.isFunction,q=N.isString,o=N.isElement,n=N.isAtlas,L=N.validateOptions,d=N.debounce,r=function(R,S){R=R||t;S=S||"Log message not specified";R(K+": "+S)},t=N.logWarn,s=N.logError,j=N.extend,e=N.deleteProperty,k=N.format,l=N.utils.values,D={horizontal:"horizontal",vertical:"vertical",both:"both"},C={broadcast:true,debounceTimeout:100,constraints:null,direction:D.both,handles:null,dropzone:null,movable:true,onDrag:null,onDragStart:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDrop:null},A={broadcast:{types:"boolean"},debounceTimeout:{types:"number"},constraints:{types:["atlas","array","string","element"]},direction:{types:"string"},handles:{types:["atlas","array","string","element"]},dropzone:{types:["atlas","array","string","element"]},movable:{types:"boolean"},onDrag:{types:"function"},onDragStart:{types:"function"},onDragEnd:{types:"function"},onDragEnter:{types:"function"},onDragExit:{types:"function"},onDragLeave:{types:"function"},onDragOver:{types:"function"},onDrop:{types:"function"}},E={drag:"drag",dragStart:"dragstart",dragEnd:"dragend"},F={mouseDown:"mousedown",mouseUp:"mouseup",mouseMove:"mousemove"},y={drag:"onDrag",dragstart:"onDragStart",dragend:"onDragEnd"},z=l(y),a=[y.drag],P=null,Q=null;function M(S){var T=L(S,A,K),R=T.invalidFields||[];if(R.length){r(t,k("Removing invalid field(s) {0} from configuration settings.",[R.join(", ")]));e(S,R)}return T.valid}function m(){var U=this.options||{},R=N(this.container),T=U.handles,S;if(q(T)){return R.find(T)}if(T){return N(T)}S=R.find("."+B.handle);return S.length?S:R}function u(T){var S=this.container,R=N(S),U=this.options.isDraggable;if(p(U)&&!U.apply(this,arguments)){return false}this._mouseUpTempReference=v.bind(this);N(B.html).one(F.mouseUp+" "+E.dragEnd,this._mouseUpTempReference);R.attr(x.draggable,true);if(p(S.dragDrop)){this._mouseMoveTempReference=function(){S.dragDrop()};N(B.html).one(F.mouseMove,this._mouseMoveTempReference)}}function v(R){N(this.container).attrRemove(x.draggable);N(B.html).off({mouseup:this._mouseUpTempReference,dragend:this._mouseUpTempReference,mousemove:this._mouseMoveTempReference});delete this._mouseUpTempReference;delete this._mouseMoveTempReference}function i(R){this.trigger({type:y[R.type]})}function c(S,V,R){var T=S.offsetX-P.x,U=S.offsetY-P.y;switch(R){case D.horizontal:V.left+=T;break;case D.vertical:V.top+=U;break;default:V.left+=T;V.top+=U;break}return V}function w(aa,R){var V=R.top,T=R.left,S=V+R.height,U=T+R.width,Y=aa.top,X=aa.left,W=aa.height,Z=aa.width;if(XU){aa.left=U-Z}}if(YS){aa.top=S-W}}return aa}function g(T){if(T.screenX===0&&T.screenY===0){return}var S=N(this.container),V=this.options||{},R=V.constraints,W,U;if(V.movable){W=Q;W=c(T,W,V.direction);if(R){R=!n(R)?N(R):R;U=R.offset();W=w(W,U)}S.offset(W)}i.call(this,T)}function h(T){var S=N(T.target||T.srcElement),R=N(this.container),U=T.dataTransfer;if(U&&!N.browser.msie){U.setData("text/plain",S.text());U.setData("text/html",S.html())}R.addClass(B.dragging);P={x:T.offsetX,y:T.offsetY};Q=R.offset();i.call(this,T)}function f(R){N(this.container).removeClass(B.dragging);P=null;i.call(this,R)}function J(){var R=N(this.container),S=m.call(this);S.on(F.mouseDown,u.bind(this),null,false);R.on(E.drag,g.bind(this),null,false).on(E.dragStart,h.bind(this),null,false).on(E.dragEnd,f.bind(this),null,false)}function b(){var R=N(this.container),S=m.call(this),T=l(E).join(" ");R.off(T);S.off(F.mouseDown)}function I(){var S=this.options,R=S.dropzone;if(R){R=!n(R)?N(R):R;this._dropzone=R.dropzone({debounceTimeout:S.debounceTimeout,onDragEnter:S.onDragEnter,onDragOver:S.onDragOver,onDragLeave:S.onDragLeave,onDragExit:S.onDragExit,onDrop:S.onDrop}).dropzoneAPI()}}function H(S){var R=S.debounceTimeout;if(R){a.forEach(function(U){var T=S[U];p(T)&&(S[U]=d(T,R,true))})}}function O(U,T){var R,S;if(!o(U)){r(s,k("{0} requires a target container for instantiation. Aborting...",[K]));return}T=T||{};M(T);T=j({},C,T);this.options=T;this.container=U;H(T);R=N(U);R.addClass(G);S=m.call(this);S.addClass(B.handle);I.call(this);J.call(this);this.subscribeEvents(T)}N.ui.draggable=O;N.component.domEventMixin(O.prototype,{events:z});O.prototype.kind=K;O.prototype.destroy=function(){var R=N(this.container);b.call(this);this._dropzone&&this._dropzone.destroy();this.unsubscribeEvents();R.removeGuid().removeApi().attrRemove(x.draggable)};N.fn.draggable=function(R){if(!this.length){return this}return this.each(function(T){var S=new N.ui.draggable(T,R);N(T).data("draggable",S)})};N.fn.draggableAPI=function(){return this.data("draggable")}}(window.atlas));(function(I){var t=I.i18n&&I.extend({renameCurrent:"FPO Rename Current",updateCurrent:"FPO Update Current",deleteCurrent:"FPO Delete Current",saveAs:"FPO Save As",makeDefault:"FPO Make Current View My Default",options:"FPO Options",myview:"FPO My View",name:"FPO Name",namePlaceholder:"FPO Enter a formal title.",makeThisViewDefault:"FPO Make This View My Default View",description:"FPO Description:",descriptionPlaceholder:"FPO Enter a description.",confirm:"FPO Confirm",cancel:"FPO Cancel",lDelete:"FPO Delete",deleteMyViewConfirmation:"FPO Are you sure you want to delete the current My View ({0})? The grid filters and presets will be reverted to their default state.",rename:"FPO Rename",makeThisViewDefaultConfirmation:"FPO Are you sure? This My View will be presented to you every time you access this page.",updateViewConfirmation:"FPO Updating the current My View will replace all presets and filters. Please confirm if you want to proceed.",renameView:"FPO Enter a new name for your My View",saveViewTitle:"FPO Save View",renameViewTitle:"FPO Rename View",deleteViewTitle:"FPO Delete View",confirmDefaultViewTitle:"FPO Confirm Default View",updateViewTitle:"FPO Update View",defaultView:"FPO Default View",updateViewWarningMessage:"FPO Warning: Updating this view will replace all presets and filters",updateViewMessage:'FPO Are you sure you want to update "{0}"?',defaultViewWarningMessage:"FPO Warning: This view will be presented to you each time you access this page",defaultViewMessage:'FPO Are you sure you want to make "{0}" your default view?',deleteViewWarningMessage:"FPO Warning: All grid filters and presets will revert to their default state",deleteViewMessage:'FPO Are you sure you want to delete "{0}"?'},I.i18n.common,I.i18n.dataView)||{},b="atlas.ui.dataView",G="0",n=500,m=30000,u={Id:G,Content:{name:t.none,isDefault:false}},h=I.extend,F="atlas--ui-dataview",s={dataviews:"dataviews",options:"options"},v={renameCurrentView:"RenameCurrentView",deleteCurrentView:"DeleteCurrentView",saveCurrentView:"SaveCurrentView",makeCurrentViewDefault:"MakeCurrentViewDefault",updateCurrentView:"UpdateCurrentView"},w={renameCurrentView:{endpoint:null,method:"PUT"},deleteCurrentView:{endpoint:null,method:"DELETE"},saveCurrentView:{endpoint:null,method:"POST"},makeCurrentViewDefault:{endpoint:null,method:"PUT"},updateCurrentView:{endpoint:null,method:"PUT"}},o={dialog:F+"-dialog",dialogLeft:F+"-dialog-left",dialogRight:F+"-dialog-right",dialogNameInput:F+"-dialog-input",dialogMakeDefault:F+"-dialog-input-make-default",dialogDescriptionTextarea:F+"-dialog-textarea",dialogMessage:F+"-dialog-message",dialogConfirm:F+"-dialog-confirm",atlasSecondaryButton:"atlas--ui-button-secondary"},p={icons:{expandIcon:o.icon+" "+o.iconExpand},events:{},noneView:null,dataViews:[],endpoints:{dataView:null},solicit:I.solicitAsync},x={id:"{id}"},r={state:"onState",stateUpdate:"onStateUpdate",stateSelect:"onStateSelect",viewAdd:"onViewAdd",noneSelected:"onNoneSelected",viewDelete:"onViewDelete",viewSave:"onViewSave",viewDefault:"onViewDefault",render:"onRender"},A=I.templates||(I.templates={}),z={template:"#atlas-data-view-template",templateSave:"#atlas-data-view-save",templateDefault:"#atlas-data-view-default",templateRename:"#atlas-data-view-rename",templateDelete:"#atlas-data-view-delete",templateUpdate:"#atlas-data-view-update"},y={template:"#atlas-data-view-template",templateSave:"#atlas-data-view-save",templateDefault:"#atlas-data-view-default",templateRename:"#atlas-data-view-rename",templateDelete:"#atlas-data-view-delete",templateUpdate:"#atlas-data-view-update"},j=function(M){var L=z[M]||M;return y[M]||(y[M]=I.Template.compile(A[L]))},k=I.logger(b),a=function(L){return(""+L+"").toLowerCase()},i=function(){return this.dataViewRequest||(this.dataViewRequest=D.call(this))},D=function(){var M=this.options,N=M.endpoints.dataView,L=M.timeout||m;if(!N){k.logError(q.missingAPIURL);return Promise.reject(null)}return M.solicit({url:N.replace(x.id,""),header:{"Content-Type":"application/json; charset=utf-8"},timeout:L}).promise.then(function(P){var O=JSON.parse(P.response)||[];return O.map(function(R){var T=R.Content,S=null;try{R.Content=JSON.parse(T);S=R}catch(Q){k.logError(q.notJSON,T)}return S}).filter(function(Q){return Q!==null}).sort(function(Q,R){var S=(Q.Content.name||"").toLowerCase(),T=(R.Content.name||"").toLowerCase();return((ST?1:0))})},function(O){k.logError(q.dataRetrieval,O&&O.responseText);return[]})},c=function(P){var O=P.Content||P,S=P.Id||null,N=this,Q=N.defaultView(),R=a(G),L=(S===Q.Id),M=L;if(a(P.Id)===R){S=G}if(N._selectedView!==null){M=(S===N._selectedView.Id)}return{title:O.name+(L?" ("+t.lDefault+")":""),id:S,active:M,group:s.dataviews,handler:d(N,P)}},d=function(L,M){return function N(){var Q=M.Id,P=L._transform.to(h({},M.Content)),O=a(Q)===a(G);L._selectedView=M;if(O){L.setNoneState()}else{L.setState(P)}L.publish(r.state,P);L.publish(r.stateSelect,P);O&&L.publish(r.noneSelected,L._selectedView)}},q={missingAPIURL:"Missing API endpoint URL. Aborting...",notJSON:"Content is not json",dataRetrieval:"Error retrieving data.",updateNoneView:"Default view cannot be updated.",save:"Failed to save data view","delete":"Failed to delete data view"},e="custom",g=function(S,N){var O=this,M=S.confirmSave||false,R=S.labels||{},W=R.title||"",U=R.confirm||t.confirm,T=R.cancel||t.cancel,V=S.content||"",X=S.model||e,L,P=function(Y,Z){return function(){var ad={},ac=L.api(),ab=L.find("."+o.dialogNameInput+" input"),aa=L.find("."+o.dialogMakeDefault+" input");ad.name=(ab.length&&ab.val())||null;ad.isDefault=(aa.length&&aa[0].checked)||false;I.isFunction(Z)&&Z.call(Y,ad);ac.close();return ad}},Q=function(){L.find("."+o.dialogConfirm)[this.value?"enableElement":"disableElement"]()};L=I().modal({contentHeader:W,buttons:[{title:T,classNames:o.atlasSecondaryButton,handler:function(){L.api().close()}},{title:U,classNames:o.dialogConfirm,cta:true,handler:P(O,N)}],model:X,width:S.width||n,classNames:o.dialog,contentBody:V,onClose:function(){L.off("keyup change")}});this.modal=L;if(M){L.on("keyup change","."+o.dialogNameInput+" input",Q);Q.call(S)}},E=function(){var L=this,M=h(true,{},L._currentState),N=j(z.templateSave),O=function(P){var Q=P.isDefault||false;if(P.name){M.name=P.name}if(Q){L.removeDefaultViewAsync()}M.isDefault=Q;L.addViewAsync(M)};g.call(L,{confirmSave:true,content:N({name:t.name,defaultView:t.defaultView}),labels:{title:t.saveViewTitle,confirm:t.save}},O)},f=function(){var L=this,O=L.selectedView(),N=j(z.templateDelete),M=function(){L.deleteViewAsync(O.Id)};g.call(L,{content:N({warningMessage:t.deleteViewWarningMessage,message:I.format(t.deleteViewMessage,[O.Content.name])}),model:"custom",labels:{confirm:t.lDelete,title:t.deleteViewTitle}},M)},B=function(){var L=this,N=L.selectedView(),M=j(z.templateRename),O=function(P){if(P.name){N.Content.name=P.name;L.updateViewAsync(N)}};g.call(L,{confirmSave:true,content:M({name:t.name,value:N.Content.name}),labels:{confirm:t.rename,title:t.renameViewTitle},value:N.Content.name},O)},H=function(){var L=this,O=L.selectedView(),N=j(z.templateUpdate),M=L._currentState||{},P=function(){var R=O.Content,Q={Id:O.Id,Content:M};Q.Content.name=R.name;Q.Content.isDefault=R.isDefault;L.updateViewAsync(Q)};g.call(L,{content:N({warningMessage:t.updateViewWarningMessage,message:I.format(t.updateViewMessage,[O.Content.name])}),model:"custom",labels:{confirm:t.confirm,title:t.updateViewTitle}},P)},l=function(){var L=this,M=j(z.templateDefault),O=L.selectedView(),N=function(){L.removeDefaultViewAsync(function(){if(a(O.Id)!==a(G)){O.Content.isDefault=true;L.updateViewAsync(O)}else{L.renderAsync()}})};g.call(L,{content:M({warningMessage:t.defaultViewWarningMessage,message:I.format(t.defaultViewMessage,[O.Content.name])}),model:"custom",labels:{confirm:t.confirm,title:t.confirmDefaultViewTitle}},N)},C=function(M,L){var N=this,O=N._endpoints;N.getDefaultViewAsync().then(function(W){var P=L.map(c.bind(N)),Z=N.selectedView(),ac=a(Z.Id),aa=a(W.Id),ab=a(G),V=function(ae,af){var ag=a(ae.id);if(af.disabledDefault===true){return(aa!==ag)}if(af.disabledOnNone===true){return ag!==ab}return true},T=(Z!==null&&Z.Content)||W.Content,ad=(ac===ab)?"disabled":"",U=(aa===ac)?"disabled":"",S=T.isDefault||(T.isDefault=(ac===aa)),X={title:T.name+(S?" ("+t.lDefault+")":""),swapTitles:true,hideSelected:false,disableOnSelect:V,groups:[],data:[]},Y=N.options.data||{},R=Y.groups||[],Q=Y.data||[];R.map(function(ae){var af={name:I.htmlEncode(ae.name),title:I.htmlEncode(ae.title),isScrollable:true};switch(ae.name){case s.options:af.isScrollable=false;break}X.groups.push(af)});Q.map(function(ae){var ag={title:I.htmlEncode(ae.title),group:s.options,swapTitles:false,disabledOnNone:true},ah=ae.options,af={method:ae.method,endpoint:ae.link};switch(ah){case v.renameCurrentView:ag.handler=B.bind(N);ag.type=ad;h(O.renameCurrentView,af);break;case v.deleteCurrentView:ag.handler=f.bind(N);ag.type=ad;h(O.deleteCurrentView,af);break;case v.updateCurrentView:ag.handler=H.bind(N);ag.type=ad;h(O.updateCurrentView,af);break;case v.saveCurrentView:ag.handler=E.bind(N);ag.disabledOnNone=false;h(O.saveCurrentView,af);break;case v.makeCurrentViewDefault:ag.handler=l.bind(N);ag.type=U;ag.disabledDefault=true;h(O.makeCurrentViewDefault,af);break}X.data.push(ag)});X.data=X.data.concat(P);N._dropdown=M.dropdown(X).api();N.publish(r.render,N)})},J=function(N,M){var L=this;M=h({},p,M);this.target=I.makeGUID();I.registry.set(N,this,{component:"dataView"});this._selectedView=null;this._noneView=h(true,{},u,{Content:M.noneView||{}});this.options=M;this._endpoints=w;J.prototype.base.call(this,N,M);this.subscribeEvents(M);this._transform=M.hasOwnProperty("transform")?I.transform(M.transform):I.transform();L.renderAsync()},K;I.component({componentId:b,events:I.utils.values(r)},J);K=J.prototype;K.options=null;K.destroy=function(){var N=this._dropdown,L=this.modal,M;N&&N.destroy();if(L){M=L.api();M&&M.destroy()}this.unsubscribeEvents()};K.setNoneState=function(M){var L=this._noneView.Content;if(M){h(L,M)}else{this.setState(L)}};J.prototype.selectedView=function(L){if(arguments.length){this._selectedView=L;this.renderAsync()}else{return this._selectedView||this.defaultView()}};J.prototype.noneView=function(L){if(arguments.length){this._noneView=L}else{return this._noneView}};J.prototype.selectNoneView=function(){this.selectedView(this._noneView)};K.setState=function(L){L=this._transform.to(L);this._currentState=L;this.publish(r.stateUpdate,L)};K.getDefaultViewAsync=function(){var L=this,M=L._defaultView;if(M){return Promise.resolve(M)}return i.call(L).then(function(N){return(L._defaultView=(N.filter(function(O){return O.Content&&O.Content.isDefault})[0]||h(true,{},L._noneView,{Content:{isDefault:true}})))})};K.getStateAsync=function(){var L,M=this._currentState;if(M){return Promise.resolve(M)}L=this;return this.getDefaultViewAsync().then(function(N){return(L._currentState=L._transform.from(N.Content))})};K.getDataView=function(N){var M=N.Id||N,L=this;return i.call(this).then(function(O){return([L._noneView].concat(O).filter(function(P){return P.Id===M})[0]||null)})};K.removeDefaultViewAsync=function(L){var M=this;i.call(M).then(function(N){N.map(function(P){var O=P.Content&&P.Content.isDefault;if(O){P.Content.isDefault=false;M.updateViewAsync(P)}});I.isFunction(L)&&L()})};K.updateViewAsync=function(P){var L=this,O=L.options,M=L._endpoints.updateCurrentView,Q=M.endpoint||(O.endpoints&&O.endpoints.dataView),R=P.Id,N=P.Content;if(!R||a(R)===a(G)){k.logError(q.updateNoneView);return null}if(!Q){k.logError(q.missingAPIURL);return null}return O.solicit({url:Q.replace(x.id,R),method:M.method,dataType:"json",data:N}).promise.then(function(){L.publish(r.viewSave,P);L.dataViewRequest=null;L.renderAsync()})};K.addViewAsync=function(P){var N=h(true,{},P),L=this,M=L._endpoints.saveCurrentView,O=L.options,Q=M.endpoint||(O.endpoints&&O.endpoints.dataView);if(!Q){k.logError(q.missingAPIURL);return null}return O.solicit({url:Q.replace(x.id,""),method:M.method,dataType:"json",data:P,header:{Accept:"application/json"}}).promise.then(function(S){var R=JSON.parse(S.response);L._selectedView={Id:R,Content:N};L.publish(r.viewAdd,L._selectedView);L.publish(r.stateSelect,N);L.dataViewRequest=null;L.renderAsync()},function(R){k.logError(q.save,R)})};K.deleteViewAsync=function(P){var L=this,N=L.options,M=L._endpoints.deleteCurrentView,O=M.endpoint||(N.endpoints&&N.endpoints.dataView);if(!O){k.logError(q.missingAPIURL);return null}return N.solicit({url:O.replace(x.id,P),method:M.method}).promise.then(function(){L.publish(r.viewDelete,P);L._selectedView=L._defaultView=L._currentState=null;L.dataViewRequest=null;L.getDefaultViewAsync().then(function(Q){d(L,Q)();L.renderAsync()})},function(Q){k.logError(q["delete"],Q)})};K.defaultView=function(L){if(arguments.length){this._defaultView=L;this.publish(r.viewDefault,L);this.renderAsync()}else{return this._defaultView||this.noneView()}};K.render=function(L){var O,M,N=j(z.template);O=N({labels:t});M=I(this.container).html(O).addClass(F);C.call(this,M.find("div"),L||[this._noneView])};K.renderAsync=function(){var L=this,M=this.options;L._defaultView=null;i.call(L).then(function(O){var N=[L._noneView].concat(O);if(L._dropdown){L._dropdown.destroy()}L.render(N,M)},function(N){k.logError(q.dataRetrieval,N)})};I.templates[z.template]="
          ";I.templates[z.templateSave]='
          ';I.templates[z.templateDefault]='
          #:message# #=warningMessage#
          ';I.templates[z.templateRename]='
          ';I.templates[z.templateDelete]='
          #:message# #=warningMessage#
          ';I.templates[z.templateUpdate]='
          #:message# #=warningMessage#
          '})(atlas);(function(F){var C="atlas.ui.dropzone",z="atlas--ui-dropzone",w={active:z+"-active"},o=F.isFunction,n=F.isElement,D=F.validateOptions,c=F.debounce,q=function(H,I){H=H||s;I=I||"Log message not specified";H(C+": "+I)},s=F.logWarn,r=F.logError,k=F.extend,d=F.deleteProperty,l=F.format,m=F.utils.values,x={broadcast:true,debounceTimeout:100,accepts:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDrop:null},v={broadcast:{types:"boolean"},debounceTimeout:{types:"number"},accepts:{types:["atlas","array","string","element","function"]},onDragEnter:{types:"function"},onDragExit:{types:"function"},onDragLeave:{types:"function"},onDragOver:{types:"function"},onDrop:{types:"function"}},y={dragEnter:"dragenter",dragExit:"dragexit",dragLeave:"dragleave",dragOver:"dragover",drop:"drop"},t={dragenter:"onDragEnter",dragexit:"onDragExit",dragleave:"onDragLeave",dragover:"onDragOver",drop:"onDrop"},u=m(t),a=[t.dragover];function E(I){var J=D(I,v,C),H=J.invalidFields||[];if(H.length){q(s,l("Removing invalid field(s) {0} from configuration settings.",[H.join(", ")]));d(I,H)}return J.valid}function j(H){this.trigger({type:t[H.type]})}function p(J){var H=this.options&&this.options.accepts,I;if(!H){return true}if(o(H)){return H.call(this,J)}else{I=F(J.target||J.srcElement);return(I.filter(H).length>0)}}function e(H){if(p.call(this,H)){F(this.container).addClass(w.active);H.preventDefault()}j.call(this,H)}function f(H){j.call(this,H)}function g(H){F(this.container).removeClass(w.active);j.call(this,H)}function h(H){if(p.call(this,H)){H.preventDefault()}j.call(this,H)}function i(H){j.call(this,H)}function B(){F(this.container).on(y.drop,i.bind(this)).on(y.dragEnter,e.bind(this)).on(y.dragOver,c(h.bind(this),this.options.debounceTimeout,true)).on(y.dragLeave,g.bind(this)).on(y.dragExit,f.bind(this))}function b(){var H=m(y).join(" ");F(this.container).off(H)}function A(I){var H=I.debounceTimeout;if(H){a.forEach(function(K){var J=I[K];o(J)&&(I[K]=c(J,H,true))})}}function G(J,I){var H;if(!n(J)){q(r,l("{0} requires a target container for instantiation. Aborting...",[C]));return}H=F(J);I=I||{};E(I);I=k({},x,I);this.options=I;this.container=J;A(I);H.addClass(z);B.call(this);this.subscribeEvents(I)}F.ui.dropzone=G;F.component.domEventMixin(G.prototype,{events:u});G.prototype.kind=C;G.prototype.destroy=function(){var H=F(this.container);b.call(this);this.unsubscribeEvents();H.removeGuid().removeApi()};F.fn.dropzone=function(H){if(!this.length){return this}return this.each(function(J){var I=new F.ui.dropzone(J,H);F(J).data("dropzone",I)})};F.fn.dropzoneAPI=function(){return this.data("dropzone")}}(window.atlas));(function(u){u.ui=u.ui||{};var a="atlas.ui.slider",t="1.0.0",q="atlas--ui-slider",s="data-value",n={sliderHorizontal:"atlas--ui-slider-horizontal",sliderVertical:"atlas--ui-slider-vertical",sliderHandle:"atlas--ui-slider-handle",sliderRail:"atlas--ui-slider-rail",sliderHandleDrag:"atlas--ui-slider-handle-drag",sliderContainer:"atlas--ui-slider"},o={broadcast:true,min:0,max:100,step:1,orientation:"horizontal",value:0,debounceTimeout:20},p={change:"onChange",drag:"onDrag"},g=u.isFunction,i=u.isObject,e=u.isArray,f=u.isElement,h=u.isNumber,j=u.isString,r=null,k=function(x,y){x=x||m;y=y||"Log message not specified";x(a+": "+y)},m=u.logWarn,l=u.logError,b=u.extend,c=u.format,d=function(){var x=this.container,y=x.find("."+n.sliderHandle),B=this,A=B.options,z=function(F,D){var C,E;if(j(D)){if((E=A[D])&&g(E)){F.on(D,E)}return}C=[];if(i(D)){C=u.utils.values(D)}if(e(D)){C=D}if(C.length){C.map(function(G){z(F,G)})}};if(r===null){r=u.Template.compile(u.templates["#atlas-slider-template"])}x.addClass((B.isHorizontal()?n.sliderHorizontal:n.sliderVertical));if(!y.length){y=x.html(r({options:A})).find("."+n.sliderHandle)}this.sliderHandle=y;y.draggable({constraints:x.selector,direction:A.orientation,debounceTimeout:A.debounceTimeout,movable:true,onDragEnd:function(C){B.update({event:p.change})},onDrag:function(C){B.update({event:p.drag})}});x.on("click",function(D){var F=D.target,C=B.sliderHandle,E;if(F==C[0]||F==C.find("."+n.sliderHandleDrag)[0]){return false}E=(B.isHorizontal()?D.offsetX:D.offsetY);B.update({updateOffset:E})});z(x,p);B.update({updateValue:A.value})},w=function(z,y){var x;if(!f(z)){k(l,c("{0} requires a target container for instantiation. Aborting...",[a]));return false}x=u(z);this.originalElement=x;y=y||{};if(x[0].nodeName==="INPUT"){x=u("
          ").insertAfter(x[0]);this.originalElement.attr("old-type",this.originalElement.attr("type"));this.originalElement.attr("type","hidden");y.value=y.value||this.originalElement.val();this.isInput=true}else{this.isInput=false}y=b({},o,y);if(!j(y.orientation)||["horizontal","vertical"].indexOf(y.orientation)===-1){k(m,c('{0} requires orientation to be "horizontal" or "vertical" ... defaulting to "horizontal"',[a]));y.orientation=o.orientation}if(!h(y.debounceTimeout)||y.debounceTimeout<0){k(m,c("{0} requires debounceTimeout to be numeric ... defaulting to debounceTimeout = 20 ",[a]));y.debounceTimeout=o.debounceTimeout}if(!h(y.min)||y.min!=""+y.min){k(m,c("{0} requires min to be numeric ... defaulting to min = 0 ",[a]));y.min=o.min}if(!h(y.max)||y.max!=""+y.max){k(m,c("{0} requires max to be numeric ... defaulting to max = 100 ",[a]));y.max=o.max}if(y.min>=y.max){k(m,c("{0} requires min to be smaller than max... defaulting to min = 0 and max =100 ",[a]));y.min=o.min;y.max=o.max}if(y.step>y.max-y.min){k(m,c("{0} requires step to be smaller than max-min... defaulting to 1% of the max-min",[a]));y.step=Math.round((y.max-y.min)/100,2)}w.prototype.base.call(this,z,y);if(y[p.change]&&!g(y[p.change])){k(m,c("{0} requires onChange to be function, removed",[a]));delete this.options[p.change]}if(y[p.drag]&&!g(y[p.drag])){k(m,c("{0} requires onDrag to be function, removed",[a]));delete this.options[p.drag]}this.container=x.addClass(q);if(j(y.className)&&y.className){x.addClass(y.className)}this.sliderHandle=null;d.call(this);this._subscription=a+"."+this.guid;this.subscribeEvents(y)};u.component({componentId:a,version:t,events:u.utils.values(p)},w);u.ui.slider=w;w.prototype.update=function(J){J=J||{};var K=this.sliderHandle[0],E=J&&J.updateOffset,F=J&&J.updateValue,M=J&&J.event,H=this.container[0],L=this,I=L.options,D=I.step,y=function(N,O){return Math.round(N/O)*O},x=function(N,Q,P){var O=y(N/Q*100,P);return(O>100)?100:((O<0)?0:O)},z=E||(this.isHorizontal()?K.offsetLeft:K.offsetTop),B=(this.isHorizontal()?(H.offsetWidth-K.offsetWidth):(H.offsetHeight-K.offsetHeight)),C=x(z,B,D),A=Math.round(B*C/100),G;if(F){G=F-I.min;C=x(G,(I.max-I.min),D);A=Math.round(B*C/100)}G=I.min+y((I.max-I.min)*C/100,D);K.style[this.isHorizontal()?"left":"top"]=A+"px";if(u.utils.values(p).indexOf(M)===-1){M=p.change}if(M==p.change){this.container.attr(s,G);if(this.isInput){this.originalElement.val(G)}}this.publish(M,{value:G})};w.prototype.isHorizontal=function(){return this.options.orientation==="horizontal"};w.prototype.isVertical=function(){return this.options.orientation==="vertical"};w.prototype.destroy=function v(){var x=u(this.container);if(this.isInput){this.originalElement.attr("type",this.originalElement.attr("old-type"))}x.off().removeGuid().removeApi().removeChildren()};u.fn.slider=function(x){if(!this.length){return this}return this.each(function(z){var y=u(z);if(!y.isComponent()){new u.ui.slider(z,x)}else{k(l,c("{0} is already an atlas ui component, atlas will not turn an existing component into another component. Already an instanceof {1}",[y,y.attr("atlas-component")]))}})};u.templates["#atlas-slider-template"]="
          "})(window.atlas);(function(a){window.Sortable=a()})(function(){if(typeof window=="undefined"||typeof window.document=="undefined"){return function(){throw new Error("Sortable.js requires a window with a document")}}var A,K,C,y,M,I,O,P,E,D,F,J,H,w,x={},U,W,G,N=/\s+/g,B="Sortable"+(new Date).getTime(),X=window,z=X.document,L=X.parseInt,T=!!("draggable" in z.createElement("div")),S=(function(Y){Y=z.createElement("x");Y.style.cssText="pointer-events:auto";return Y.style.pointerEvents==="auto"})(),r=false,v=Math.abs,Q=[].slice,V=[],a=s(function(Z,aa,ac){if(ac&&aa.scroll){var Y,ab,ad=aa.scrollSensitivity,ae=aa.scrollSpeed,aj=Z.clientX,ak=Z.clientY,ai=window.innerWidth,ah=window.innerHeight,af,ag;if(P!==ac){O=aa.scroll;P=ac;if(O===true){O=ac;do{if((O.offsetWidth*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(ad,ae){ad.setData("Text",ae.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false};for(var ab in Y){!(ab in ac)&&(ac[ab]=Y[ab])}q(ac);for(var aa in this){if(aa.charAt(0)==="_"){this[aa]=this[aa].bind(this)}}this.nativeDraggable=ac.forceFallback?false:T;o(Z,"mousedown",this._onTapStart);o(Z,"touchstart",this._onTapStart);if(this.nativeDraggable){o(Z,"dragover",this);o(Z,"dragenter",this)}V.push(this._onDragOver);ac.store&&this.sort(ac.store.get(this))}R.prototype={constructor:R,_onTapStart:function(aa){var Y=this,Z=this.el,ac=this.options,ag=aa.type,af=aa.touches&&aa.touches[0],ae=(af||aa).target,ad=ae,ab=ac.filter;if(ag==="mousedown"&&aa.button!==0||ac.disabled){return}ae=c(ae,ac.draggable,Z);if(!ae){return}J=l(ae,ac.draggable);if(typeof ab==="function"){if(ab.call(this,aa,ae,this)){f(Y,ad,"filter",ae,Z,J);aa.preventDefault();return}}else{if(ab){ab=ab.split(",").some(function(ah){ah=c(ad,ah.trim(),Z);if(ah){f(Y,ah,"filter",ae,Z,J);return true}});if(ab){aa.preventDefault();return}}}if(ac.handle&&!c(ad,ac.handle,Z)){return}this._prepareDragStart(aa,af,ae)},_prepareDragStart:function(ab,af,ae){var Y=this,aa=Y.el,ac=Y.options,ad=aa.ownerDocument,Z;if(ae&&!A&&(ae.parentNode===aa)){U=ab;M=aa;A=ae;K=A.parentNode;I=A.nextSibling;w=ac.group;Z=function(){Y._disableDelayedDrag();A.draggable=true;t(A,Y.options.chosenClass,true);Y._triggerDragStart(af)};ac.ignore.split(",").forEach(function(ag){h(A,ag.trim(),e)});o(ad,"mouseup",Y._onDrop);o(ad,"touchend",Y._onDrop);o(ad,"touchcancel",Y._onDrop);if(ac.delay){o(ad,"mouseup",Y._disableDelayedDrag);o(ad,"touchend",Y._disableDelayedDrag);o(ad,"touchcancel",Y._disableDelayedDrag);o(ad,"mousemove",Y._disableDelayedDrag);o(ad,"touchmove",Y._disableDelayedDrag);Y._dragStartTimer=setTimeout(Z,ac.delay)}else{Z()}}},_disableDelayedDrag:function(){var Y=this.el.ownerDocument;clearTimeout(this._dragStartTimer);n(Y,"mouseup",this._disableDelayedDrag);n(Y,"touchend",this._disableDelayedDrag);n(Y,"touchcancel",this._disableDelayedDrag);n(Y,"mousemove",this._disableDelayedDrag);n(Y,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(Z){if(Z){U={target:A,clientX:Z.clientX,clientY:Z.clientY};this._onDragStart(U,"touch")}else{if(!this.nativeDraggable){this._onDragStart(U,true)}else{o(A,"dragend",this);o(M,"dragstart",this._onDragStart)}}try{if(z.selection){z.selection.empty()}else{window.getSelection().removeAllRanges()}}catch(Y){}},_dragStarted:function(){if(M&&A){t(A,this.options.ghostClass,true);R.active=this;f(this,M,"start",A,M,J)}},_emulateDragOver:function(){if(W){if(this._lastX===W.clientX&&this._lastY===W.clientY){return}this._lastX=W.clientX;this._lastY=W.clientY;if(!S){d(C,"display","none")}var ab=z.elementFromPoint(W.clientX,W.clientY),aa=ab,Y=" "+this.options.group.name+"",Z=V.length;if(aa){do{if(aa[B]&&aa[B].options.groups.indexOf(Y)>-1){while(Z--){V[Z]({clientX:W.clientX,clientY:W.clientY,target:ab,rootEl:aa})}break}ab=aa}while(aa=aa.parentNode)}if(!S){d(C,"display","")}}},_onTouchMove:function(aa){if(U){if(!R.active){this._dragStarted()}this._appendGhost();var ab=aa.touches?aa.touches[0]:aa,Y=ab.clientX-U.clientX,Z=ab.clientY-U.clientY,ac=aa.touches?"translate3d("+Y+"px,"+Z+"px,0)":"translate("+Y+"px,"+Z+"px)";G=true;W=ab;d(C,"webkitTransform",ac);d(C,"mozTransform",ac);d(C,"msTransform",ac);d(C,"transform",ac);aa.preventDefault()}},_appendGhost:function(){if(!C){var ab=A.getBoundingClientRect(),Y=d(A),aa=this.options,Z;C=A.cloneNode(true);t(C,aa.ghostClass,false);t(C,aa.fallbackClass,true);d(C,"top",ab.top-L(Y.marginTop,10));d(C,"left",ab.left-L(Y.marginLeft,10));d(C,"width",ab.width);d(C,"height",ab.height);d(C,"opacity","0.8");d(C,"position","fixed");d(C,"zIndex","100000");d(C,"pointerEvents","none");aa.fallbackOnBody&&z.body.appendChild(C)||M.appendChild(C);Z=C.getBoundingClientRect();d(C,"width",ab.width*2-Z.width);d(C,"height",ab.height*2-Z.height)}},_onDragStart:function(Z,ab){var Y=Z.dataTransfer,aa=this.options;this._offUpEvents();if(w.pull=="clone"){y=A.cloneNode(true);d(y,"display","none");M.insertBefore(y,A)}if(ab){if(ab==="touch"){o(z,"touchmove",this._onTouchMove);o(z,"touchend",this._onDrop);o(z,"touchcancel",this._onDrop)}else{o(z,"mousemove",this._onTouchMove);o(z,"mouseup",this._onDrop)}this._loopId=setInterval(this._emulateDragOver,50)}else{if(Y){Y.effectAllowed="move";aa.setData&&aa.setData.call(this,Y,A)}o(z,"drop",this);setTimeout(this._dragStarted,0)}},_onDragOver:function(ad){var ab=this.el,aq,aa,ap,ao=this.options,af=ao.group,ag=af.put,ak=(w===af),Z=ao.sort;if(ad.preventDefault!==void 0){ad.preventDefault();!ao.dragoverBubble&&ad.stopPropagation()}G=true;if(w&&!ao.disabled&&(ak?Z||(ap=!M.contains(A)):w.pull&&ag&&((w.name===af.name)||(ag.indexOf&&~ag.indexOf(w.name))))&&(ad.rootEl===void 0||ad.rootEl===this.el)){a(ad,ao,this.el);if(r){return}aq=c(ad.target,ao.draggable,ab);aa=A.getBoundingClientRect();if(ap){b(true);if(y||I){M.insertBefore(A,y||I)}else{if(!Z){M.appendChild(A)}}return}if((ab.children.length===0)||(ab.children[0]===C)||(ab===ad.target)&&(aq=j(ab,ad))){if(aq){if(aq.animated){return}ar=aq.getBoundingClientRect()}b(ak);if(p(M,ab,A,aa,aq,ar)!==false){if(!A.contains(ab)){ab.appendChild(A);K=ab}this._animate(aa,A);aq&&this._animate(ar,aq)}}else{if(aq&&!aq.animated&&aq!==A&&(aq.parentNode[B]!==void 0)){if(E!==aq){E=aq;D=d(aq);F=d(aq.parentNode)}var ar=aq.getBoundingClientRect(),au=ar.right-ar.left,ai=ar.bottom-ar.top,ae=/left|right|inline/.test(D.cssFloat+D.display)||(F.display=="flex"&&F["flex-direction"].indexOf("row")===0),al=(aq.offsetWidth>A.offsetWidth),aj=(aq.offsetHeight>A.offsetHeight),ah=(ae?(ad.clientX-ar.left)/au:(ad.clientY-ar.top)/ai)>0.5,an=aq.nextElementSibling,am=p(M,ab,A,aa,aq,ar),Y;if(am!==false){r=true;setTimeout(u,30);b(ak);if(am===1||am===-1){Y=(am===1)}else{if(ae){var ac=A.offsetTop,at=aq.offsetTop;if(ac===at){Y=(aq.previousElementSibling===A)&&!al||ah&&al}else{Y=at>ac}}else{Y=(an!==A)&&!aj||ah&&aj}}if(!A.contains(ab)){if(Y&&!an){ab.appendChild(A)}else{aq.parentNode.insertBefore(A,Y?an:aq)}}K=A.parentNode;this._animate(aa,A);this._animate(ar,aq)}}}}},_animate:function(aa,ab){var Z=this.options.animation;if(Z){var Y=ab.getBoundingClientRect();d(ab,"transition","none");d(ab,"transform","translate3d("+(aa.left-Y.left)+"px,"+(aa.top-Y.top)+"px,0)");ab.offsetWidth;d(ab,"transition","all "+Z+"ms");d(ab,"transform","translate3d(0,0,0)");clearTimeout(ab.animated);ab.animated=setTimeout(function(){d(ab,"transition","");d(ab,"transform","");ab.animated=false},Z)}},_offUpEvents:function(){var Y=this.el.ownerDocument;n(z,"touchmove",this._onTouchMove);n(Y,"mouseup",this._onDrop);n(Y,"touchend",this._onDrop);n(Y,"touchcancel",this._onDrop)},_onDrop:function(Z){var Y=this.el,aa=this.options;clearInterval(this._loopId);clearInterval(x.pid);clearTimeout(this._dragStartTimer);n(z,"mousemove",this._onTouchMove);if(this.nativeDraggable){n(z,"drop",this);n(Y,"dragstart",this._onDragStart)}this._offUpEvents();if(Z){if(G){Z.preventDefault();!aa.dropBubble&&Z.stopPropagation()}C&&C.parentNode.removeChild(C);if(A){if(this.nativeDraggable){n(A,"dragend",this)}e(A);t(A,this.options.ghostClass,false);t(A,this.options.chosenClass,false);if(M!==K){H=l(A,aa.draggable);if(H>=0){f(null,K,"sort",A,M,J,H);f(this,M,"sort",A,M,J,H);f(null,K,"add",A,M,J,H);f(this,M,"remove",A,M,J,H)}}else{y&&y.parentNode.removeChild(y);if(A.nextSibling!==I){H=l(A,aa.draggable);if(H>=0){f(this,M,"update",A,M,J,H);f(this,M,"sort",A,M,J,H)}}}if(R.active){if(H===null||H===-1){H=J}f(this,M,"end",A,M,J,H);this.save()}}}this._nulling()},_nulling:function(){M=A=K=C=I=y=O=P=U=W=G=H=E=D=w=R.active=null},handleEvent:function(Y){var Z=Y.type;if(Z==="dragover"||Z==="dragenter"){if(A){this._onDragOver(Y);k(Y)}}else{if(Z==="drop"||Z==="dragend"){this._onDrop(Y)}}},toArray:function(){var ad=[],Z,Y=this.el.children,aa=0,ab=Y.length,ac=this.options;for(;aa*"&&Z.parentNode===Y)||m(Z,aa)){return Z}}while(Z!==Y&&(Z=Z.parentNode))}return null}function k(Y){if(Y.dataTransfer){Y.dataTransfer.dropEffect="move"}Y.preventDefault()}function o(Y,Z,aa){Y.addEventListener(Z,aa,false)}function n(Y,Z,aa){Y.removeEventListener(Z,aa,false)}function t(Z,aa,ab){if(Z){if(Z.classList){Z.classList[ab?"add":"remove"](aa)}else{var Y=(" "+Z.className+" ").replace(N," ").replace(" "+aa+" "," ");Z.className=(Y+(ab?" "+aa:"")).replace(N," ")}}}function d(Y,Z,ab){var aa=Y&&Y.style;if(aa){if(ab===void 0){if(z.defaultView&&z.defaultView.getComputedStyle){ab=z.defaultView.getComputedStyle(Y,"")}else{if(Y.currentStyle){ab=Y.currentStyle}}return Z===void 0?ab:ab[Z]}else{if(!(Z in aa)){Z="-webkit-"+Z}aa[Z]=ab+(typeof ab==="string"?"":"px")}}}function h(Y,ad,aa){if(Y){var ab=Y.getElementsByTagName(ad),Z=0,ac=ab.length;if(aa){for(;Z5)||(Z.clientX-(ab.right+ab.width)>5))&&aa}function i(Y){var aa=Y.tagName+Y.className+Y.src+Y.href+Y.textContent,Z=aa.length,ab=0;while(Z--){ab+=aa.charCodeAt(Z)}return ab.toString(36)}function l(Y,aa){var Z=0;if(!Y||!Y.parentNode){return -1}while(Y&&(Y=Y.previousElementSibling)){if(Y.nodeName.toUpperCase()!=="TEMPLATE"&&m(Y,aa)){Z++}}return Z}function m(Y,aa){if(Y){aa=aa.split(".");var ab=aa.shift().toUpperCase(),Z=new RegExp("\\s("+aa.join("|")+")(?=\\s)","g");return((ab===""||Y.nodeName.toUpperCase()==ab)&&(!aa.length||((" "+Y.className+" ").match(Z)||[]).length==aa.length))}return false}function s(aa,ab){var Z,Y;return function(){if(Z===void 0){Z=arguments;Y=this;setTimeout(function(){if(Z.length===1){aa.call(Y,Z[0])}else{aa.apply(Y,Z)}Z=void 0},ab)}}}function g(Y,aa){if(Y&&aa){for(var Z in aa){if(aa.hasOwnProperty(Z)){Y[Z]=aa[Z]}}}return Y}R.utils={on:o,off:n,css:d,find:h,is:function(Y,Z){return !!c(Y,Z,Y)},extend:g,throttle:s,closest:c,toggleClass:t,index:l};R.create=function(Y,Z){return new R(Y,Z)};R.version="1.4.2";return R});(function(f,g){var b="atlas.ui.sortable",c=new f.Logger(b),a=f.extend,e="atlas--ui-sortable",d={ghostClass:e+"-ghost",chosenClass:e+"-chosen",fallbackClass:e+"-fallback"};function h(k,i){var j=a({},d,i);return new g(k,j)}f.ui.sortable=h}(window.atlas,Sortable));(function(t){var j=t.i18n&&t.i18n.sortableListSelector||{removeThisField:"FPO Remove this Field",title:"FPO Sortable List"},b="atlas.ui.sortableListSelector",c=t.extend,l="atlas--ui-sortableListSelector",f={addButton:"atlas--ui-button-add-no-bg",addItemButton:"js-atlas--list-add",disabled:"atlas--ui-component-disabled",sidebarTitle:"atlas--sidebar-title",count:l+"-count",list:l+"-list",listItem:l+"-listItem",pillInline:"atlas--pill-inline",removeInline:l+"-remove",listItemText:l+"-item-text",listItemActions:l+"-listItem-actions",contextActions:l+"-context-actions",sortDirection:l+"-sort-direction"},g={icons:{expandIcon:f.icon+" "+f.iconExpand},labels:j,maxItems:Infinity},h={draggable:"."+f.listItem},i={onUpdate:"onUpdate",onItemsAdded:"onItemsAdded",onItemRemoved:"onItemRemoved",onItemSorted:"onItemSorted"},o=null,p=null,k={sortableListSelector:"#atlas-sortableListSelector-template",sortableListSelectorItem:"#atlas-sortableListSelectorItem-template"},m="itemInfo",d=100,e=0,a=function(){t(this.container).on("click","."+f.addItemButton,this.onAddClickHandler.bind(this),null,false).on("click","."+f.removeInline,this.onRemoveInlineHandler.bind(this),null,false)},n=function(x){var w=c({onUpdate:this.onSortedHandler.bind(this),onAdd:this.onDropAddHandler.bind(this),onStart:this.onStartDragHandler.bind(this),onRemove:this.onRemoveDragHandler.bind(this),animation:d,delay:e},h,x),v=t(this.container).find("."+f.list);return t.ui.sortable(v[0],w)},q=function(y){var x=this._addButtonEnabled!==false,w=y>=this.options.maxItems(),v=this._addButton;if(x===w){this._addButtonEnabled=!w;v&&v[(w?"add":"remove")+"Class"](f.disabled)}},r=function(){var v=this._items.length;s.call(this,v);q.call(this,v)},s=function(w){var v=this._countPill;v&&v.html(""+w)},u=function(x,w){this._items=[];w=c({},g,w,{allItems:t.functor(w.allItems),maxItems:t.functor(w.maxItems||g.maxItems)});u.prototype.base.call(this,x,w);this.labels=c({},j,w.labels);var v=this.fieldSelector=t().fieldSelector(w);v.api().onFieldsSelected(this.onFieldsSelectedHandler.bind(this));this.render(w);this.sortable=n.call(this,this.options.sortableOpts)};t.component({componentId:b,events:t.utils.values(i)},u);u.prototype.render=function(w){var v=t(this.container);if(o===null){o=t.Template.compile(t.templates[k.sortableListSelector])}var x=o({labels:this.labels});v.html(x).addClass(l);this._countPill=v.find("."+f.count+"."+f.pillInline);this._addButton=v.find("."+f.addButton);a.call(this);if(t.isArray(w.items)){this.items(w.items,false)}};u.prototype.renderItem=function(w){var x,v;if(p===null){p=t.Template.compile(t.templates[k.sortableListSelectorItem])}x=p({oItem:w});v=t(x);return v};u.prototype.removeItem=function(w){var x=this,v=this.items().filter(function(y){return !x.itemComparer(y,w)});this.items(v)};u.prototype.addItem=function(x,w){var v=this.renderItem(x);v.appendTo(t(this.container).find("."+f.list)[0]);v.data(m,x);this._items.push(x);w!==false&&r.call(this)};u.prototype.items=function(v,w){var x,y;if(!arguments.length){return this._items}this._items=[];t(this.container).find("."+f.list).removeChildren();x=0;y=v.length;for(;x#:labels.title#
            ";t.templates[k.sortableListSelectorItem]="
          • #:oItem.text#
          • '})(atlas||{});(function(l){var a="atlas.ui.contextPanel",j="atlas--ui-context-panel",c={active:j+"-active",content:j+"-content",toggle:j+"-toggle",offsetHorizontal:j+"-alt-horiz",offsetVertical:j+"-alt-vert",hasOverridePosition:j+"-has-append-override"},h="parent-instance",e={onOpen:"onOpen",onClose:"onClose"},d={},b=27,f=function(q){var n=l(q.target),r=q.keyCode,s=q.type,u="."+c.content+", ."+c.toggle,t="."+c.content+" input",o=(s==="click")&&(n.is(u)||!!n.closest(u).length),p=(s==="keydown")&&(n.is(t)||b!==r);if(o||p){return}m.closeAll()},i=function(){l("html").on("keydown",f,null,false).on("click",f,null,false)},k=function(){l("html").off("keydown",f).off("click",f)},g=(function(){var n=[];return{add:function o(r){if(!n.length){i()}n.push(r)},remove:function q(s){var r=n.indexOf(s);~r&&n.splice(r,1);if(!n.length){k()}},each:function p(){var r=n.slice();Array.prototype.forEach.apply(r,arguments)}}})(),m=function(q,p){var o,n;p=l.extend({},d,p);m.prototype.base.call(this,q,p);n=this.container;this._toggle=l(p.toggle?p.toggle:n).addClass(c.toggle).on("click",this.onOpenClickHandler.bind(this));o=this.contentContainer=this.renderContentContainer();if(p.appendTarget){this._appendTarget=l(p.appendTarget);o.addClass(c.hasOverridePosition).data(h,n);o.appendTo(this._appendTarget)}else{o.appendTo(n)}};l.component({componentId:a,events:l.utils.values(e)},m);m.prototype.getBoundingElement=function(){return this.options.bounds||"html"};m.prototype.positionWithinBounds=function(){var o=this.getBoundingElement(),n=this.contentContainer;if(!n.verticallyContainedBy(o)){n.addClass(c.offsetVertical)}if(!n.horizontallyContainedBy(o)){n.addClass(c.offsetHorizontal)}};m.prototype.open=function(n){if(!this.isOpen()){this.contentContainer.addClass(c.active);l(this.container).addClass(c.active);this._toggle.addClass(c.active);this.positionWithinBounds();g.add(this);this.publish(e.onOpen,{event:n,context:this})}};m.prototype.close=function(){if(this.isOpen()){g.remove(this);this._toggle.removeClass(c.active);l(this.container).removeClass(c.active);this.contentContainer.removeClass([c.active,c.offsetVertical,c.offsetHorizontal].join(" "));this.publish(e.onClose,this)}};m.prototype.isOpen=function(){return this._toggle.hasClass(c.active)};m.prototype.renderContentContainer=function(){return l("
            ").addClass(c.content)};m.prototype.onOpenClickHandler=function(n){var o=!this.isOpen();m.closeAll();o&&this.open(n)};m.prototype.toggle=function(){return this.isOpen()?this.close():this.open()};m.prototype.destroy=function(){l(this.container).remove();g.remove(this);this._toggle.off();this.unsubscribeEvents()};m.closeAll=function(){g.each(function(n){n.close()})}})(atlas);(function(D){var f=D.isArray,o={apply:"FPO Apply",cancel:"FPO Cancel",list:"FPO List",tree:"FPO Tree",treeView:"FPO Tree view",treeViewNotAvailable:"FPO Tree not available",includeFieldChildren:"FPO Include {0} Children",advancedOptions:"FPO Advanced Options"},n=D.i18n&&D.extend(o,D.i18n.common,D.i18n.filterPanel),w=D.Template,a="atlas.ui.filterPanel",v="atlas--ui-filter-panel",r={listView:"list",treeView:"tree"},m={treeView:0,listView:1},p={buttonApply:v+"-apply",buttonCancel:v+"-cancel",contextContent:"atlas--ui-context-panel-content",contextToggle:"atlas--ui-context-panel-toggle",viewToggleCheck:v+"-viewToggle-checkbox",operators:v+"-operators",contentWrapper:v+"-content-wrapper",content:v+"-content",container:v+"-container",operatorsColumn:v+"-operators-column",header:v+"-header",inputGroup:"atlasGrid--input-group",title:v+"-title",advanced:v+"-advanced",advancedHierarchical:v+"-advanced-hierarchical",view:v+"-view",toggleContainer:v+"-toggle-container",toggleView:v+"-toggle-view",toggleNode:v+"-toggle-node",toggleText:v+"-toggle-text",list:v+"-list",tree:v+"-tree",toggleDisabled:v+"-toggle-disabled",spinner:"atlas--ui-spinner-show",preventOuterScroll:"atlas--ui-prevent-scroll-outer",hasHierarchy:v+"-has-hierarchy",panelActions:v+"-actions",atlasButton:"atlas--ui-button",atlasSecondaryButton:"atlas--ui-button-secondary",atlasTextLabel:"atlas--ui-text-label",atlasDisabled:"atlas--ui-disabled",atlasCheckboxToggle:"atlas--ui-checkbox-toggle",atlasToggleLeft:"atlas--ui-toggle-left-orient",checkboxToggleRadio:"atlas--ui-checkbox-toggle-radio",checkboxToggleSmall:"atlas--ui-toggle-small",atlasToggleUi:"atlas--ui-toggle-ui",atlasToggleText:"atlas--ui-toggle-text"},j={none:0,hierarchy:1,listSingle:2,listMultiple:3},q={filterPanel:"#atlas-filterPanel-template",advancedFilterView:"#atlas-filterPanel-advancedFilterView-template",operators:"#atlas-filterPanel-operators-template",filterViewToggle:"#atlas-filterView-toggle-template",selectionModeToggle:"#atlas-filterPanel-selection-mode-template"},k={onOpen:"onOpen",onClose:"onClose",onFilterSelected:"onFilterSelected",onOperatorSelected:"onOperatorSelected",onApply:"onApply",onCancel:"onCancel",onRender:"onRender"},h=D.logger(a),i={operatorList:true,filterView:true,filterType:r.listView,includeChildren:true,treeAvailable:false},l={field:{types:"object",required:true},operatorList:{types:"boolean"},filterView:{types:"boolean"},filterType:{types:"number"},includeChildren:{types:"boolean"},treeAvailable:{types:"boolean"}},g=D.isFunction,y,x,z=null,C=function(G){var F=this._viewToggleBtn.find("input"),H=this.currentView;this._preselected=H?e.call(this,H):this._preselected;if(G){if(F.is(":checked")){F.attrRemove("checked");this.options.filterType=r.listView}else{F.attr("checked","checked");this.options.filterType=r.treeView}}else{F.attrRemove("checked");this.options.filterType=i.filterType}this.createFilters()},B=function(G){var F=this._nodeToggleBtn.find("input");if(G){if(F.is(":checked")){F.attrRemove("checked");this.options.includeChildren=false}else{F.attr("checked","checked");this.options.includeChildren=true}}else{F.attrRemove("checked");this.options.includeChildren=i.includeChildren}this.resetSelection()},s=function(){var K=D.templates,I=x||(x=w.compile(K[q.advancedFilterView])),G=this.filterPanelContainer,F=G.find("."+p.container),H=this.currentView,J=this.options.field;F.append(I(this.options));if(J.filter&&J.filter.filterMode===j.hierarchy){z||(z=w.compile(K[q.selectionModeToggle]));G.find("."+p.header).append(K[q.filterViewToggle]).append(z({labels:n,title:(J.text||J.name)})).addClass(p.hasHierarchy);G.find("."+p.advanced).addClass(p.advancedHierarchical)}this._viewToggleBtn=G.find("."+p.toggleView);this._nodeToggleBtn=G.find("."+p.toggleNode);this._applyBtn=G.find("."+p.buttonApply).hide();this._atlView=G.find("."+p.view);A.call(this);!H&&this.createFilters()},t=function(){var G=D(D.templates[q.operators]),F=this.filterPanelContainer.find("."+p.container);this._operatorHelper=this.options.operatorHelper;this._operatorList=this._operatorList||this.createOperatorList(G.find("."+p.content));F.append(G)},c=function(K,I){var O,H,J,N=this,G=function(){K.applyHandler(O&&e.call(N,O).length>0)},F=function(){N.publish(k.onRender)},M,L;switch(K.type){case r.listView:J=(K.filterMode===j.listSingle);L={type:J?"radio":"checkbox",autoStart:false,hasSearchFilter:!J,dataProvider:K.dataProvider,onSelect:G,onSelectAll:G,onClearAll:G,onFilter:function(P){u.call(N,true)},onData:function(P){u.call(N,false)},onRender:F};if(N._preselected&&N._preselected.length){M={all:false,preSelected:N._preselected};L.selected=M}H=D().listView(L);break;case r.treeView:H=D().treeView({displayCheckboxes:true,toggleChildChecksFromParent:K.includeChildren,disableChildrenOnSelect:K.includeChildren,displaySubTreeStructure:true,displayTopControls:false,data:I,dataProvider:K.dataProvider,loadData:true,events:{onNodeChecked:G,onNodeUnchecked:G,onRender:F},selected:N._preselected});break;default:h.logError("View type mismatch in filter panel")}H&&(O=H.api());G();return H},e=function(G){var F=(this.options.filterType==r.listView)?G.items():G.selectedItems();return F.map(function(H){return{nodeId:H.nodeId,text:H.text}})},A=function(){var H,F,G,J=this._options,I=J.field.filter;if(I.filterMode===j.hierarchy){H=this._viewToggleBtn;F=this._nodeToggleBtn;G=H.find("."+p.toggleText);this._field.getOperationModeAsync().then(function(K){J.treeAvailable=K.isRecommendedHierarchical;if(!J.treeAvailable){G.html(n.treeViewNotAvailable);H.disableElement().addClass(p.toggleDisabled)}else{G.html(n.treeView);H.removeClass(p.toggleDisabled).enableElement()}F.enableElement()})["catch"](function(K){h.logError("Failed to retrieve filter mode",K)})}},b=function(){this.filterPanelContainer.on("click","."+p.toggleView,C.bind(this),null,true).on("click","."+p.toggleNode,B.bind(this),null,true).on("click","."+p.buttonApply,this.onApplyClickHandler.bind(this)).on("click","."+p.buttonCancel,this.onCancelClickHandler.bind(this))},d=function(){this.filterPanelContainer&&this.filterPanelContainer.off()},u=function(G){var F=D(this._atlView);(this._isLoading=G)?F.addClass(p.spinner):F.removeClass(p.spinner)},E=function(G,F){if(!D.validateOptions(F,l,a,true).valid){return h.logError("Invalid options.")}if(!D.data.Field.isField(F.field)){return h.logError("field must be an instance of atlas.data.Field")}this._options=F=D.extend({},i,F);E.prototype.base.call(this,G,F);this._itemsSelected=[];this._preselected=[];this._closeSelected=[];this._isLoading=false;this._useTether=F.useTether||false;this.subscribeEvents(F)};D.component({extend:D.ui.contextPanel,componentId:a,events:D.utils.values(k)},E);E.prototype.currentView=null;E.prototype.render=function(){var J,I,F,G,H;if(this.filterPanelContainer){return}J=this.options;I=y||(y=w.compile(D.templates[q.filterPanel]));F=D(I(J));this._field=H=J.field;G=this._hasFilterView=!!(J.filterView&&H.supportsValueLookups());this.filterPanelContainer=F;if(G){s.call(this)}if(J.operatorList){t.call(this);!G&&F.addClass(p.operatorsColumn)}};E.prototype.createOperatorList=function(F){return F.operatorList({operators:this._operatorHelper&&this._operatorHelper.getOperatorsForField(this._field),onOperatorSelected:this.onOperatorSelectedHandler.bind(this),labels:this._options.labels})};E.prototype.isLoading=function(){return this._isLoading};E.prototype.createFilters=function(){var K=this.options,F,L=this,J=K.field.filter,I,G,H,M=K.filterType;if(!this._hasFilterView){return}G={getDataAsync:function(N){return L._field.getFilterValuesAsync(N)},totalCount:function(N){return L._field.getFilterValuesTotalCount(N)}};F=this._atlView;this._nodeToggleBtn.find("input").attr("checked",K.includeChildren);this._viewToggleBtn.find("input").attr("checked",(this.options.filterType!==r.listView));I={type:M,filterMode:J.filterMode,applyHandler:D.debounce(function(N){L._applyBtn[N?"show":"hide"]();L.publish(k.onFilterSelected)},50),includeChildren:K.includeChildren,dataProvider:G};u.call(L,true);H=function(P){var O=L.currentView,N,Q=function(){O&&g(O.initialize)&&O.initialize()};O&&O.destroy();N=c.call(L,I,P);O=L.currentView=N.api();F.append(N);requestAnimationFrame(Q);u.call(L,false)};switch(M){case r.treeView:G.getDataAsync({filterListType:m.treeView,levels:0}).then(H)["catch"](function(N){u.call(L,false);h.logError("Data provider failure",N)});break;case r.listView:H([]);break;default:u.call(L,false);h.logError(D.format("Unknown view type: {0}",[M]));break}};E.prototype.onOperatorSelectedHandler=function(F,G){this.publish(k.onOperatorSelected,{field:this._field,op:G.operator})};E.prototype.hasChildrenIncluded=function(){return !!(this._field.isHierarchical()&&this.options.includeChildren)};E.prototype.getSelectedItems=function(){return this._itemsSelected};E.prototype.hideOperators=function(){this.filterPanelContainer.find("."+p.operators).hide()};E.prototype.showOperators=function(){this.filterPanelContainer.find("."+p.operators).show()};E.prototype.open=function(J,M){var G,L=M||{},K=L.preSelected||[],O=K.value||[],N=K.text||K.value,I=f(O)?O:[O],F=f(N)?N:[N],H;if(L.preSelected){this._preselected=I.map(function(Q,P){return{nodeId:Q,text:F[P]||Q}})}else{this._preselected=this._closeSelected}this.options=D.extend({},i,this.options,L.options);if(!(this.currentView||this.filterPanelContainer)){this.render()}else{this.createFilters()}E.prototype.base.closeAll.call(this);this._toggle=D((M&&M.toggle)||(J&&D(J.target))||this.container).addClass(p.contextToggle);H=J&&D(J.target).closest("."+p.inputGroup);this.container=D((M&&M.target)||(H&&H.length?H:undefined)||this.container);b.call(this);(G=this.contentContainer).length&&G.append(this.filterPanelContainer);E.prototype.base.prototype.open.apply(this,arguments)};E.prototype.positionToElement=function(F){var H,G=this.contentContainer;if(g(D.ui.tether)&&this._useTether){if(!this._tether){this._tether=D.ui.tether(F,G)}else{this._tether.update()}return this._tether}H=F.offset();G.css({top:Math.ceil(H.top),left:Math.ceil(H.left)});return D};E.prototype.close=function(F){this._closeSelected=this.getFilters();if(F===true){this.resetSelection();this._closeSelected=[]}E.prototype.base.prototype.close.apply(this,arguments);d.call(this)};E.prototype.onCancelClickHandler=function(){this.close(true);this.publish(k.onCancel)};E.prototype.onApplyClickHandler=function(F){this._itemsSelected=this.getFilters();this.publish(k.onApply,{event:F,context:this});this.close(true)};E.prototype.resetPanelContent=function(){this.resetFilters();d.call(this);this.filterPanelContainer.remove()};E.prototype.resetState=function(){var G=this.options,I=this.currentView,H=this._operatorList,F=this.filterPanelContainer;if(I){I.destroy();this.currentView=null}if(H){H.api().destroy();this._operatorList=null}if(F){F.remove();this.filterPanelContainer=null}G.filterType=i.filterType;G.includeChildren=i.includeChildren;G.treeAvailable=i.treeAvailable};E.prototype.getFilters=function(){var F,G=this.currentView;if(G){F=e.call(this,G)}return F};E.prototype.resetFilters=function(){var F=this.currentView;if(F){F.uncheckAll();F.collapseAll?F.collapseAll():F.clearFilters()}};E.prototype.resetSelection=function(){var F=this.currentView;this._preselected=[];if(F){g(F.uncheckAll)&&F.uncheckAll();F.treeConfig&&g(F.resetSelection)&&F.resetSelection({toggleChildChecksFromParent:this.options.includeChildren,disableChildrenOnSelect:this.options.includeChildren})}};E.prototype.destroy=function(){var G=D(this.container),F=[this._operatorList],H=this.currentView;H&&H.destroy();F.forEach(function(J){var I=J&&J.api();I&&I.destroy()});d.call(this);G.off().removeGuid().removeApi().removeChildren();this.contentContainer.remove()};D.templates=D.templates||{};D.templates[q.advancedFilterView]='
            ";D.templates[q.filterViewToggle]='
            ";D.templates[q.selectionModeToggle]='
            ';D.templates[q.operators]='
            ';D.templates[q.filterPanel]='
            '})(atlas);(function(l){var h=l.i18n&&l.i18n.filters||{between:"between",contains:"contains",doesNotContain:"does not contain",endsWith:"ends with",equals:"equals",greaterOrEqual:"greater or equal",greaterThan:"greater than",isEmpty:"is empty",isNotEmpty:"is not empty",lessOrEqual:"less or equal",lessThan:"less than",notEqual:"not equal to",startsWith:"starts with"},b="atlas.ui.operatorList",d=new l.Logger(b),e={container:"atlas--ui-operatorList-container",item:"atlas--ui-operatorList-item"},c=l.extend,f={labels:h},j="info",g={onOperatorSelected:"onOperatorSelected"},i={operatorListContainer:"#atlas-operatorList-container-template",operatorListItem:"#atlas-operatorList-item-template"},k=null,a=function(){var n=this;l(this.container).on("click","."+e.item,n.onOperatorClickHandler.bind(this))},m=function(p,o){o=c({},f,o);var n=o.operators;if(!l.isArray(o.operators)){return d.logError("Is missing the operators parameters.")}m.prototype.base.call(this,p,o);this.labels=o.labels;this._subscription=b+"."+this.guid;this.subscribeEvents(o);this.renderOperatorList();this.renderOperatorItems(n);a.call(this)};l.component({componentId:b,events:l.utils.values(g)},m);m.prototype.onOperatorClickHandler=function(o){var n=l(o.target);this.publish(g.onOperatorSelected,n.data(j))};m.prototype.destroy=function(){this.unsubscribeEvents();l(this.container).remove()};m.prototype.renderOperatorList=function(){var n=k||(k=l.Template.compile(l.templates[i.operatorListContainer])),o=n({});l(this.container).html(o)};m.prototype.renderOperatorItems=function(n){var o=l("
              "),p=l.templates[i.operatorListItem];n.forEach(function(s){var q=l(p),r={operator:s.name};q.data(j,r).text(s.title);o.append(q)});l(this.container).find("."+e.container).append(o.children())};l.templates[i.operatorListContainer]='
                ';l.templates[i.operatorListItem]="
              • "})(atlas||{});(function(H){var v=H.i18n&&H.i18n.listView||{},b="atlas.ui.listView",C="atlas--ui-listView",p=200,o=20,B={checkbox:"checkbox",radio:"radio"},u={treeView:0,listView:1},A=H.templates||(H.templates={}),z={list:"#atlas-listView-template-list",shim:"#atlas-listView-template-shim",checkbox:"#atlas-listView-template-checkbox",radio:"#atlas-listView-template-radio",filter:"#atlas-listView-template-filter",container:"#atlas-listView-template-container",selectAll:"#atlas-listView-template-selectAll",highlight:"#atlas-listView-template-highlight"},r={panel:C+"-panel",container:C+"-container",selectAll:C+"-selectall",list:C+"-list",item:C+"-item",input:C+"-input",customCheckbox:"atlas--ui-checkbox",customRadio:"atlas--ui-radio",filtered:C+"-filtered",filterbox:C+"-filterbox",label:"atlas--ui-input-label",preventOuterScroll:"atlas--ui-prevent-scroll-outer",highlight:"atlas--ui-highlight"},x={scroller:"."+r.list,scrollTarget:"."+r.list+" ul",label:"."+r.item+" ."+r.label,input:"."+r.item+" ."+r.input},s={hasSelectAll:false,hasSearchFilter:true,autoStart:true,type:"checkbox",keywords:"",prevFilterValue:"",items:[],selected:{all:false,items:[],saveWhenChecked:true},labels:{selectAll:v.selectAll||"FPO Select all",clearAll:v.clearAll||"FPO Clear all ({0})",clear:v.clear||"FPO Clear ({0})",filterPlaceholder:v.filter||"FPO Filter"}},F=H.validateOptions,d=H.extend,q={type:{types:"string",required:true,values:H.utils.values(B)},keywords:{type:"string",required:false},dataProvider:{type:"object",required:false},items:{type:"array",required:false},selected:{type:"object",required:false},hasSelectAll:{types:"boolean",required:false},hasSearchFilter:{types:"boolean",required:false},labels:{types:"object"}},t={select:"onSelect",clearAll:"onClearAll",selectAll:"onSelectAll",filter:"onFilter",scroll:"onScroll",render:"onRender",data:"onData"},n=H.logger(b),y={list:null,checkbox:null,radio:null,filter:null,selectAll:null,container:null},G=function(P){var Q=F(P,q,b),O=Q.invalidFields||[];if(O.length){n.logError(H.format("Removing invalid field(s) {0} from configuration settings.",[O.join(", ")]));H.deleteProperty(P,O)}return Q.valid},f=function(O){return this.guid+"_"+String(O).replace(/\.\|#:/g,"-")},m=function(S){var T=this.selected||{},O=T.items||[],P=T.saveWhenChecked||false,Q=T.all||false,R;if(Q===true||(O.indexOf(S.nodeId)>=0)===P){return true}R=O.indexOf(S.text);if((R>=0)===P){O.splice(R,1);O.push(S.nodeId);return true}},i=function(Q){var T=this,P=Q,O=!Q,S=T.selected,R=T.listItems&&T.listItems.length||0;S.all=P;S.allCleared=O;if(S.allCleared){S.items=[]}S.number=O?0:R},h=function(R,Q,W){var V=this,U=V.selected,P=U.saveWhenChecked?Q:!Q,O=U.items,T,S=V.listItems&&V.listItems.length||0;R.map(function(X){var Y=O.indexOf(X);if(P&&Y===-1){O.push(X)}else{if(!P&&Y!==-1){O.splice(Y,1)}}if(W!==null){K.call(V,W,"#"+f.call(V,X))}});T=O.length;U.number=U.saveWhenChecked?T:(S-T);U.items=O},g=function(Y){var aa=this,Z=aa.selected,X=aa.options,S=Y.selectAll||false,R=Y.clearAll||false,Q=Y.checked||false,P,U=Y.items,V=aa.listItems&&aa.listItems.length||0,O=aa.listItems||[],W=O.length||0,T=(V!==W);if(S&&R){n.logError("Only one of bSelectAll or bClearAll can be set at one point");return}U=H.isArray(U)?U:[U];if(T&&Y.checked===null){U=O.reduce(function(ac,ab){ac.push(ab.nodeId);return ac},[]);Q=P=S;S=false;R=false}if(!(S||R)){if(Z.all&&!Q){Z.all=false}if(Z.allCleared&&Q){Z.allCleared=false}h.call(aa,U,Q,(T&&Y.checked===null)?P:null);R=(Z.number===0);S=aa.prevFilterValue?false:(Z.number===V)}if(S||R){i.call(aa,S);if(Y.selectAll||Y.clearAll){K.call(aa,S)}}if(X.hasSelectAll){J.call(aa)}E.call(this)},K=function(O,P){P=P||"."+r.list+" input[type=checkbox]";H(this.container).find(P).each(function(Q){Q.checked=O})},J=function(){var O=H(this.container).find("."+r.selectAll+" button"),Q=this.selected,P=d(true,{},s.labels,this.options.labels),R=P.clear;if(Q.all){R=P.clearAll}if(Q.allCleared||Q.number===0){R=P.selectAll}O.text(H.format(R,[Q.number]))},e=function(Q){var P=Q.target,U=t.select,S={},R=null,T=this.selected||{},O=H(P).parent();if(Q.type==="click"&&O.hasClass(r.selectAll)){R=!T.number}if(P.nodeName==="LABEL"){P=O.find(x.input)[0]}if(R!==null){U=R?t.selectAll:t.clearAll;S.selectAll=R;S.clearAll=!R;S.checked=null}else{S.items=P.value;S.checked=P.checked}g.call(this,S);return U},w=function(O){var R=O.target,P=t.select,Q={};if(this.type===B.checkbox){P=e.call(this,O);Q=this.selected}else{if(this.type===B.radio){Q=this.selected={items:[R.value],all:false,saveWhenChecked:true}}}E.call(this);this.publish(P,Q);O.stopImmediatePropagation()},a=function(){var O=H(this.container);O.on("click",x.label,w.bind(this),null,false);if(this.options.hasSelectAll){O.on("click","."+r.selectAll+" button",w.bind(this),null,false)}},l=function(P){var O=z[P]||P;return y[P]||(y[P]=H.Template.compile(A[O]))},j=H.debounce(function(O){var P=this,Q=O.target||{},R=Q.value;if(P.prevFilterValue===R){return false}P.prevFilterValue=R;P.limitless&&P.limitless.destroy();D.call(P);P.publish(t.filter,R)},p),c=function(){var U=this,O=H(U.container),T=d(true,{},s.labels,U.options.labels),W="",V=U.keywords||"",Q,P,R,S;U.prevFilterValue=V;U.listItems=[];O.addClass(r.panel);P=l(z.container);R=l(z.list);Q=l(z.selectAll);S=U.filterBarSetup(V);if(U.type===B.checkbox){if(U.options.hasSelectAll){W=Q({label:T.selectAll})}}O.html(P({filtersCode:S.code,selectAllCode:W,listCode:R({})}));S.handleFilters();D.call(U);a.call(U);if(U.options.hasSelectAll){J.call(U)}},D=function(){var O=H(this.container).find(x.scroller);this.limitless=H.limitless(O,new I(this),{appendTo:O.find(x.scrollTarget),autoStart:this.initialized||this.options.autoStart,onRender:M.bind(this),onScroll:N.bind(this)});this.listItems=[]},k=function(R){var O=this.listItems||[],P=0,Q=O.length,S;for(;P#= listCode #';A[z.filter]='
                ';A[z.selectAll]='
                ';A[z.list]="
                  ";A[z.highlight]='{0}';A[z.checkbox]='# var sText = atlas.htmlEncode(item.text), sQuery, rxQuery; #
                • ";A[z.shim]='
                •  
                • ';A[z.radio]='# var sText = atlas.htmlEncode(item.text), sQuery, rxQuery; #
                • "})(window.atlas);(function(f){var a="atlas.ui.columnSelector",d=f.i18n&&f.i18n.columnSelector||{title:"Fields FPO"},b=new f.Logger(a),c=function(h){return h._options},e=function(h,l){var j=l.newIndex-l.oldIndex,m=l.item.name,i=this.grid.columnManager,k=i.getVisibleIndex(m)+j;i.moveColumn(l.item.name,k)},g=function(m,l){var j=this.grid=l.grid,h=j.columnManager,k=this.onColumnUpdateHandler.bind(this);if(!j){return b.logError("Requires a grid object")}this.target=f.makeGUID();f.registry.set(m,this,{component:"columnSelector"});l=f.extend({items:h.hideableColumns().map(c),allItems:function i(){return h.hiddenColumns().map(c)},labels:d},l);g.prototype.base.call(this,m,l);this.onItemsAdded(this.onItemsAddedHandler.bind(this));this.onItemRemoved(this.onItemRemovedHandler.bind(this));this.onItemSorted(e.bind(this));h.onColumnUpdate(k);h.onColumnsShown(k);h.onColumnHidden(k);h.onColumnMove(k)};f.component({extend:f.ui.sortableListSelector,componentId:a},g);g.prototype.onItemsAddedHandler=function(j,i){var k=this.grid.columnManager,h=i.map(function(l){return k.getColumn(l.name)});k.showColumns(h)};g.prototype.onItemRemovedHandler=function(h,i){this.grid.columnManager.hideColumn(i.name)};g.prototype.onColumnUpdateHandler=function(i,h){this.items(this.grid.columnManager.hideableColumns().map(c),false)};g.prototype.itemComparer=function(h,i){return h.name===i.name}})(atlas||{});(function(p){var b="atlas.ui.fieldSelector",c=p.extend,n="atlas--ui-fieldSelector",m="atlas--ui-panelSlider-active",o=n,l,g=200,h=25,i={configSelected:n+"-use-selected",addRemove:n+"-add-remove",animateIn:n+"-animate-in",fieldContainer:n+"-sidebar-stage-fields-container",cancelButtonId:n+"-sidebar-stage-fields-btnCancel",applyButtonId:n+"-sidebar-stage-fields-btnApply",hidden:n+"-hidden",field:n+"-field",searchInput:n+"-sidebar-stage-addFields-search",dataTypeDD:n+"-sidebar-stage-addFields-typeDD",sidebarComponents:"atlas--ui-sidebar-components",sidebarColumn:"atlas--ui-sidebar-column",sidebarComponentActions:"atlas--ui-sidebar-component-actions",sidebarSection:"atlas--sidebar-section",sidebarScrollableContent:"atlas--ui-sidebar-scrollable-content",sidebarTitle:"atlas--sidebar-title",atlasButtonGroup:"atlas--button-group",atlasDualCol:"atlas--dual-col",atlasUIButton:"atlas--ui-button",atlasUIButtonSecondary:"atlas--ui-button-secondary",blTextInput:"bl--text-input",blInputIcon:"bl--input-icon",blIconSearch:"bl-icon-search",blListBox:"bl--list-box"},j,k={onFieldsSelected:"onFieldsSelected"},d,f=function(){l=p.extend({},p.i18n.common,p.i18n.fieldSelector);j={labels:{title:"FPO - Column Selector",apply:l.apply||"FPO - Apply",cancel:l.cancel||"FPO - Cancel",search:l.search||"FPO - Search",addFields:l.addFields||"FPO - Add Fields",addSort:l.addSort||"FPO - Add Sort",allFieldTypes:l.allFieldTypes||"FPO - All Field Types",textFields:l.textFields||"FPO - Text Fields",numericFields:l.numericFields||"FPO - Numeric Fields",dateFields:l.dateFields||"FPO - Date Fields"}};d=p.Template.compile(p.templates[o]);f=p.noOp},e=function(r){var v=this,t=this._labels,u={id:"field-selector-search",records:r,searchDebounceTime:150,labels:{},elems:{inputEl:"."+i.searchInput,itemEls:"."+i.fieldContainer+" ."+i.field},filterCollections:["text"],displayClasses:{hideActions:[{sClass:i.hidden,delay:null}],showActions:[{sClass:i.hidden,delay:null}]}},s=this.container;this._atlSearchComponent=s.find("."+i.fieldContainer).searchItems(u);this._atlTypeDropdown=s.find("."+i.dataTypeDD).dropdown({title:t.allFieldTypes,useFirstAsTitle:false,swapTitles:true,hideSelected:false,data:[{title:t.allFieldTypes,handler:function(){v._atlSearchComponent.resetSubfilter()}},{title:t.textFields,handler:function(){v._atlSearchComponent.resetSubfilter();v._atlSearchComponent.subFilter({field:"dataType",criteria:"String"})}},{title:t.numericFields,handler:function(){v._atlSearchComponent.resetSubfilter();v._atlSearchComponent.subFilter({field:"dataType",criteria:"Number"})}},{title:t.dateFields,handler:function(){v._atlSearchComponent.resetSubfilter();v._atlSearchComponent.subFilter(function(w){return p.startsWith(String(w.dataType).toLowerCase(),"date")})}}]})},q=function(s,r){f();r=c({},j,r);this._isOpen=false;this._labels=c({},j.labels,r.labels);this.target=p.makeGUID();p.registry.set(s,this,{component:"fieldSelector"});q.prototype.base.call(this,s,r);this.subscribeEvents(r)},a=function(){var r=p(this.container);r.find("."+i.cancelButtonId).on("click",this.close.bind(this),"cancel",true);r.find("."+i.applyButtonId).on("click",this.onApplyHandler.bind(this),"apply",true);if(this.options.singleSelectMode){r.on("change","."+i.fieldContainer+" input",this.onItemSelectedHandler.bind(this))}};p.component({componentId:b,events:p.utils.values(k)},q);q.prototype.open=function(r){var u,t=p("."+m);this.container=p('
                  ');u=d({items:r,labels:this._labels});this.container.html(u);t.append(this.container);e.call(this,r);this._selectableItems=r;a.call(this);setTimeout(function s(){t.find("."+i.fieldContainer).addClass(i.animateIn)},h);this._isOpen=true};q.prototype.isOpen=function(){return this._isOpen};q.prototype.onApplyHandler=function(){var r=this._selectableItems||[],t=p(this.container).find("."+i.fieldContainer+" input:checked"),s;if(!t.length){return}s=t.toArray().map(function(u){var v=u.value;return r.filter(function(w){return v===w.name})[0]});this.publish(k.onFieldsSelected,s);this.close()};q.prototype.onItemSelectedHandler=function(t){var s=t.target,v=s.value,r=this._selectableItems||[],u;if(!v){return}u=r.filter(function(w){return v===w.name})[0];if(!u){return}this.publish(k.onFieldsSelected,[u]);this.close()};q.prototype.close=function(){var s=p(this.container),t=this;s.find("."+i.fieldContainer).removeClass(i.animateIn);this._isOpen=false;setTimeout(function r(){t._atlTypeDropdown.api().destroy();t._atlSearchComponent.off();s.find("."+i.cancelButtonId).remove();s.find("."+i.applyButtonId).remove();s.find("."+i.fieldContainer).remove();s.remove()},g)};q.prototype.destroy=function(){this.close()};p.templates[o]='
                  #=labels.addFields #
                  # var iField = 0, iFieldLen = items.length || 0, field, fieldText, fieldName; for (; iField < iFieldLen; iField += 1 ) {field = items[iField]; fieldText = field.text;fieldName = field.name; ## } #
                  '})(atlas||{});(function(i){var b="atlas.ui.sortSelector",e=i.i18n&&i.i18n.sortSelector||{title:"Sorting FPO"},g="atlas--ui-sort-selector",d={filterDirectionBtn:"atlas--ui-button-sort-direction",sortListItem:"atlas--ui-sortableListSelector-listItem",isAscending:"atlas--is-ascending",isDescending:"atlas--is-descending",contextActions:g+"-context-actions",iconArrowSolid:"atlas--ui-icon-sort-arrow"},f={sortableDirectionToggle:"#atlas-sortSelectorToggle-template"},a=function(k){i(k).on("click","."+d.filterDirectionBtn,h.bind(this))},h=function(n){var l=i(n.target),m=l.closest("."+d.sortListItem),p=c(l.attr("data-sort-direction")),q,o=m.index(),k=this._items;if(p==="asc"){l.removeClass(d.isAscending).addClass(d.isDescending).attr("data-sort-direction","desc");q="desc"}else{if(p==="desc"){l.removeClass(d.isDescending).addClass(d.isAscending).attr("data-sort-direction","asc");q="asc"}}k[o].dir=q;this.publish("onUpdate",k)},c=function(k){return String(k).toLowerCase().startsWith("desc")?"desc":"asc"},j=function(l,k){a.call(this,l);this.target=i.makeGUID();i.registry.set(l,this,{component:"sortSelector"});k=i.extend({labels:e},k);j.prototype.base.call(this,l,k)};i.component({extend:i.ui.sortableListSelector,componentId:b},j);j.prototype.renderItem=function(m){var l=j.prototype.base.prototype.renderItem.apply(this,arguments),p=i.Template.compile(i.templates[f.sortableDirectionToggle]),o=c(m.dir),n=o==="asc"?d.isAscending:d.isDescending,k=p({sortDirection:o,directionClass:n});l.prepend(k);return l};j.prototype.itemComparer=function(k,l){return k.name===l.name};i.templates[f.sortableDirectionToggle]='
                  '})(atlas||{});(function(C){var c="atlas.ui.advancedTooltip",A="atlas--ui-advanced-tooltip",m={showTooltip:A+"-show",defaultClass:A+"-default",errorClass:A+"-error",warningClass:A+"-warning"},l=new C.Logger(c),o={tooltips:{types:["array","object"],required:true}},n={locationTransitionBuffer:0,contentDataAttr:"data-advanced-tooltip",typeDataAttr:"data-advanced-tooltip-type",locations:"right",type:"default",triggerEvent:"hover",positionTarget:undefined},s={top:20,right:5,bottom:10,left:5},j=C.isArray,k=C.isFunction,t=C.pubsub.publish,b,a=0,d=function(){if(b){return b}b=C('
                  ').appendTo("body");return b},v=function(D,E){var F=this.options,G=E||F.locations;e.call(this,D,G)},e=function(D,L){var J=D[0].getBoundingClientRect(),F=D.width(),E=D.height(),H=b.width(),G=b.height(),I={top:{x:J.left,y:J.top-G+E-s.top-this.options.locationTransitionBuffer},right:{x:J.left+F+s.right,y:J.top-E/2+this.options.locationTransitionBuffer*2},bottom:{x:J.left,y:J.top+E+s.bottom},left:{x:J.left-H-s.left,y:J.top-E/2+this.options.locationTransitionBuffer*2}},K=I[L];b.css({left:Math.floor(K.x),top:Math.floor(K.y)})},w=function(E,D){var F=E.currentTarget,G=k(D)?D.call(this,F):D;b.text(G)},h=function(E){var D={};if(E==="focus"){D={triggerEvent:"focusin focus",removeEvent:"focusout blur"}}else{if(E==="hover"){D={triggerEvent:"mouseenter",removeEvent:"mouseleave"}}}return D},x=function(D,E){this.typeClass=m[E+"Class"];D.addClass(this.typeClass)},z=function(D){b.addClass(m.showTooltip);t(c+".showTooltip",{instance:this,target:D.currentTarget})},i=function(D){b.removeClass(m.showTooltip).attrRemove("style");t(c+".hideTooltip",{instance:this,target:D.currentTarget})},u=function(){b[0].className=A},q=function(F,J){var E,K,L,D,H,I,G;if(!this._enabled){return}u.call(this);I=this.options;E=C(F.currentTarget);K=J.content||E.attr(I.contentDataAttr);L=J.type||E.attr(I.typeDataAttr)||I.type;H=J.positionTarget||I.positionTarget;D=J.positionTarget&&k(H)?H(E):E;if(!K){return l.logWarn("Tooltip content missing! Either explicitly pass in content for tooltip set or make sure either your specified or default data attribute ('"+n.contentDataAttr+"') is available in the DOM and contains the information.")}this._preboundScroll=r.bind(this,{atlOffsetTarget:D,locations:J.locations});if((G=J.scrollElement)){G.addEventListener("scroll",this._preboundScroll)}x.call(this,b,L);w.call(this,F,K);v.call(this,D,J.locations);z.call(this,F);return this},p=function(D,F){var E;if(!this._enabled){return}i.call(this,D);if((E=F.scrollElement)){E.removeEventListener("scroll",this._preboundScroll)}},r=function(D){if(!b.hasClass(m.showTooltip)){return}v.call(this,D.atlOffsetTarget,D.locations)},y=function(){var L=this,M,F=[],G=L._tooltips,I=G.length,H=0,J,K,N,E,D;this._preboundShow=E=q.bind(L);this._preboundHide=D=p.bind(L);for(;H 1, i = 0, l = actions ? actions.length : 0, action; #
                  #: title || "" #
                  # if (closeable || actions || bMultipleMessages) { #
                  # if (bMultipleMessages) { #
                  #: (index + 1) # / #: messages.length #
                  # } ## for (; i < l; i += 1) {action = actions[i]; #
                  # } ## if (bMultipleMessages || allowNavigation) { #
                  # } ## if (closeable) { #
                  # } #
                  # } #
                  '}(atlas));(function(){var z=atlas.isObject,s=atlas.isArray,t=atlas.isAtlas,B=atlas.isString,y=atlas.isNumber,w=atlas.isFunction,u=atlas.isElement,v=atlas.isEmptyObject,o=atlas.definePropertyDefault,S="atlasGrid",C=atlas.logger(S),am="infinite",ax=13,ay=350,G={columnReorder:false,multiFilter:true,rowNumbers:false,dataRequestDebounce:500,title:false,scrubSearchDebounceTimeout:ay,renderingPolicy:am},I={contains:"()",notContains:"(/)",equal:"=",notEqual:"!=",startsWith:"x/",endsWith:"/x",lessThan:"<",greaterThan:">",lessThanOrEqual:"<=",greaterThanOrEqual:">=",empty:"*",notEmpty:")*("},H={onCommandSetup:"onCommandSetup",onCreate:"onCreate",onError:"onError",onFilter:"onFilter",onGridReady:"onGridReady",onInit:"onInit",onPurgeFilter:"onPurgeFilter",onPurgeSort:"onPurgeSort",onRefresh:"onRefresh",onRender:"onRender",onSort:"onSort",onSortSelected:"onSortSelected",onState:"onState",onVaultUpdated:"onVaultUpdated",onXhr:"onXhr"},J=atlas.utils.invert(I),c=[I.empty,I.notEmpty],K=atlas.operatorHelper(),T=K.getScrubOperator().operator,at=K.getNonHierarchicalOperators(),au=at.map(function(az){return az.operator}),p=function(aA){var az=at.filter(function(aB){return aB.operator===I[aA]})[0];return az&&az.title||" "},a=function(aB,aA){var az=this._excludedOperators[aB]||(this._excludedOperators[aB]={});az[aA]=true},A=function(aB,aA){var az=this._excludedOperators[aB];return !!(az&&az[aA])},F={grid:S+"--grid",scroller:S+"--scroller",tableHead:S+"--header",gridHeaderTable:S+"--header-table",dropdown:S+"--filter-dropdown",inputGroup:S+"--input-group",inputGroupActive:S+"--group-active",filterInput:S+"--filter-input",filterRadio:S+"--filter-radio",filterCheckbox:S+"--filter-checkbox",filterCustom:S+"--filter-custom",filterCustomClear:S+"--filter-custom-clear",filterCustomApply:S+"--filter-custom-apply",filterIcon:"icon-filter-angled",addIcon:"atlas-icon-plus",filterCalendarIcon:"icon-calendar",title:S+"--title",fixedWidth:S+"--fixed-width",columnSorted:S+"--header-sorted",smartBar:"atlas--ui-smart-bar",filterConsole:"atlas--ui-filter-console",gridElements:S+"--grid-elements",gridHeader:"atlas-grid--header",gridFooter:"atlas--ui-grid-footer",gridContent:"atlas--ui-grid-body",gridRow:"atlas--ui-grid-row",gridCell:"atlas--ui-grid-cell",pager:"atlas-grid--pager",pagerDropdown:"atlas-grid--pager-page-size",pagerArrow:"atlas-grid--pager-arrow",pagerNumber:"atlas-grid--pager-number",pagerNumberInput:"atlas-grid--pager-number-input",dateSelector:"atlas--ui-date-selector",dateRange:"atlas--ui-date-range-input",wrapper:S+"--wrapper",columnConfig:"atlas-grid--column-config",columnConfigActive:"atlas-grid--column-config-active",columnConfigApply:"atlas-grid--column-config-apply",columnConfigCancel:"atlas-grid--column-config-cancel",spinner:S+"--spinner",spinnerShow:S+"--spinner-show",spinnerIcon:S+"--spinner-icon",saveView:"atlas-grid--save-view",saveViewActive:"atlas-grid--save-view-active",filterBar:"atlas-grid--filter-bar",atlasButton:"atlas--ui-button",smallPrimaryButton:"atlas--ui-button-small",smallSecButton:"atlas--ui-button-secondary-small",loading:S+"--loading",batchRegion:S+"--batch-template",batchRegionCached:S+"--batch-template-cached",staticTableHeader:S+"--sticky-header",pageSeparator:S+"--page-separator",pageNumber:S+"--page-number",animationBounceUp:"atlas--ui-animation-bounce-up",ddStopYScroll:S+"--colreorder-stopYScroll",activeClass:"atlas--is-active"},E={dataPage:"data-page",dataBatch:"data-batch",dataItemIndex:"data-item-index"},L={gridContainer:"#atlas-gridContainer-template",header:"#atlas-grid-header-template",batch:"#atlas-grid-batch-template",columnConfig:"#atlas-column-config-template",saveView:"#atlas-save-view-template",aggregates:"#atlas-aggregates-template",gridTitle:"#atlas-gridTitle-template"},D=function(aA,az){var aB;if(atlas.suppressLog){return}aB=this.target;if(aB!==x){console.groupEnd();console.group(aB);x=aB}return console.log(aA,az)},x="",i=function(az){var aA=j.call(this,az),aB=atlas.ui.grid.columnManager({columns:aA});return aB},R=function(){var az=this.columnManager.visibleColumns().reduce(function(aA,aB){aA.push({name:aB._options.name,width:aB.width(),visible:true});return aA},[]);this._updateState({columns:az});this.filterConsole&&this.filterConsole.closeEditMode()},j=function(az){var aA=this,aB=aA.columnInputValues||{};if(!s(az)){C.logError("columns should be of type array");return[]}return az.map(function(aC){aC.inputValue=aB[aC.name]||"";return atlas.ui.grid.columnFactory(aA,aC)})},q=function(az,aB){var aD,aA,aC;if(B(az)){az=az?atlas.trim(az):"";aA=az.charAt(1);for(aD in J){if(J.hasOwnProperty(aD)&&az.indexOf(aD)===0){if(J.hasOwnProperty(aD+aA)){aD=aD+aA}if(A.call(this,aB,aD)){continue}return{op:J[aD],value:atlas.trim(az.slice(aD.length)),alias:aD}}}}aC=this.filterDropdownDefaults[aB];return{op:J[aC],value:B(az)?atlas.trim(az):az,alias:aC}},ao=function(aA,az){var aB;if(v(az)===true||B(az[aA])===false){return"asc"}aB=az[aA].toLowerCase();if(aB==="asc"){return"desc"}if(aB==="desc"){return null}return null},V=function(){var az=this.getDataRequestModel();az=atlas.extend(true,{},az);this.dataRequestModel=az;this.queryString=atlas.strategy.solicit.kendo("",az).url;delete az.pageNumber;delete az.pageSize;this.queryStringForExport=atlas.strategy.solicit.kendo("",az).url},aq=function(aP){var aO=aP.sortIt||{},aM=aP.filterIt||{},aH=aP.hasOwnProperty("sortIt"),aF=aP.hasOwnProperty("purge"),aC=aP.hasOwnProperty("filterIt"),aE=aP.hasOwnProperty("pageSize"),aD=aP.hasOwnProperty("getPage"),aG=aP.hasOwnProperty("refresh")||aP.hasOwnProperty("refreshIt"),aI=aP.hasOwnProperty("vault"),aB=aP.hasOwnProperty("data"),aS=aG&&(aP.refresh===true||aP.refreshIt===true),aA=aP.getPage,aT=aF&&aP.purge.toLowerCase(),aK=aT==="sort",aJ=aT==="filter",aN=atlas.ui.grid.dataManager.normalizers,az=this.dataManager,aL=az.sort()||{},aR={},aQ=this.worker;if(aB||aS){aS=true;aR.refresh=true;aB&&(aR.data=aP.data);aQ&&aQ.update(aR)}if(aH){Object.keys(aO).forEach(function(aU){if(B(aO[aU])&&aO[aU].toLowerCase()==="toggle"){aP.sortIt[aU]=ao(aU,aL)}})}if(aH||(aF&&aK)){if(this._options.multiSort&&!aK){aO=atlas.extend({},aL,aO)}az.sort(aO)}if(aC||(aF&&aT==="filter")){aN.filterValues(aM,this);aM=aN.filter(aM);az.filter(aM)}if(aJ){this.publish(H.onPurgeFilter)}if(aK){this.publish(H.onPurgeSort)}if(aE){this.pager.pageSize(aP.pageSize)}if(aS){this.publish(H.onRefresh)}if(aI){this.vault=atlas.extend(this.vault,aP.vault);aQ&&aQ.update({vault:this.vault});this._updateState({vault:this.vault});this.publish(H.onVaultUpdated,this.vault)}if(aD){if(B(aA)){this.pager[aA]()}else{this.pager.page(aA)}}},al=function(aA,az){atlas.showMessage({type:"error",message:(z(az)&&B(az.value))?az.value:null,duration:5000})},n=function(aA,az){this.work({setCulture:az})},ap=function(){var az=atlas(this.container),aA="."+F.filterCustom;P.call(this);Y(atlas(this.container));az.find(aA).dropdown({data:[{title:""}]})},P=function(){var az=this._elements.header,aA=this.renderer.header(az)[0];this._elements.header=aA;if(aA!==az){atlas(az).remove();atlas(this.container).find("."+F.gridElements).prepend(aA)}},W=function(aB){var az=atlas(this.container),aA=az.find("."+F.gridHeaderTable);az.find("."+F.gridContent).css("width",aB);aA.css("width",aB)},e=function(az){var aA=this._totalWidth+=az;W.call(this,aA)},aj=function(az){var aB=az.find("."+F.gridHeaderTable),aA=az.find("."+F.gridContent),aC=az.find("."+F.scroller),aE=this.columnManager,aD=aE.visibleColumns(),aG=0,aF=this;aD.forEach(function(aH){var aI=aH.width();aH.width(aI);aG+=aI});az.addClass(F.staticTableHeader);this._totalWidth=aG;aA.css("width",aG);aB.css("width",aG);aC.on("scroll",atlas.throttleToAnimationFrame(function(aH){M.call(aF,aH.target.scrollLeft,aB)}))},M=function(aA,az){if(aA!==this._prevScrollLeft){this._prevScrollLeft=aA;az.css("transform","translateX("+(aA*-1)+"px)")}},ar=function(){var az=atlas(this.container),aB=az.find("."+F.scroller),aA=az.find("."+F.gridHeaderTable);M.call(this,aB.scrollLeft(),aA)},ab=function(aD){var aC,aA,aB=this,aE=aB.options.title,az;if(!z(aD)){return null}az=aD.components;if(!(s(az)&&az.length)){return null}(aE&&aE.length)&&ac(aE,az);aC=atlas.Template.compile(atlas.templates[L.header]);aA=atlas(aC(aD));if(!aA.length){C.logWarn("Header template is invalid. Aborting header setup...");return null}az.forEach(function(aH){var aF,aG;if(!z(aH)){return}aG=B(aH.region)?aA.find('[data-region="'+aH.region+'"]'):aA;if(!aG.length){C.logWarn("Header region not found. Skipping component descriptor...");return}switch(aH.type){case atlas.ui.dropdown.COMPONENT_ID:aF=af.call(aB,aH);break;case atlas.ui.counter.COMPONENT_ID:aF=ae.call(aB,aH);break;case"atlas.ui.button":aF=ad(aH);break;default:aF=d(aH);break}aF&&aG.append(aF)});atlas(this.container).prepend(aA);return aA},aa=function aa(){return atlas().footer({pager:this.pager,gridCss:F}).api()},d=function(aA){var aB=aA.content,az;if(!(B(aB)||u(aB)||t(aB))){return null}az=atlas(aB);if(!az.length){C.logWarn("Component setup is invalid. Aborting component setup...");return null}if(B(aA.id)){az.attr("id",aA.id)}if(B(aA.classNames)){az.addClass(aA.classNames)}return az},af=function(aA){var aB=aA.options,az;if(!aB){return null}if(!aA.content){aA.content="
                  "}az=d(aA);if(!az){return null}az.dropdown(aB);return az},ae=function(){var az=atlas().counter({count:0}),aB=az.api();this.totalCountService.onTotalCountChange(function aA(aC,aD){aB.count(aD)});return az},ac=function(aD,aA){var aC=atlas.Template.compile(atlas.templates[L.gridTitle]),az=atlas(aC({title:aD})),aB={content:az,region:"title"};aA&&aA.push(aB)},ad=function(aA){var aD='',aC="active-text",aE="idle-text",az=atlas(aD),aB=function(){var aF=az.data(aC),aG=az.data(aE);az.hasClass(F.activeClass)?az.removeClass(F.activeClass).html(aG):az.addClass(F.activeClass).html(aF)};if(B(aA.id)){az.attr("id",aA.id)}if(B(aA.classNames)){az.addClass(aA.classNames)}if(B(aA.text)){az.text(aA.text)}if(aA.primary){az.addClass(F.smallPrimaryButton)}else{az.addClass(F.smallSecButton)}if(w(aA.handler)){az.on("click",aA.handler)}if(B(aA.activeText)){az.data(aC,aA.activeText).data(aE,aA.text);az.on("click",aB)}return az},Z=function(){var aA,aB,aC,aD,az=atlas(this.container);if(!this._options.useFilterBar){return null}aA=atlas('
                  ');aB=this.columnManager;aC=function(){return aB.filterableColumns().map(function(aE){return aE.getField()})};aD=atlas.extend({onFilterChange:r(az),fieldProvider:aC,getField:function(aG){var aF=aG.toLowerCase();return aC().filter(function aE(aH){return aH&&(aH.name.toLowerCase()===aF||aH.getFilterField(aG))})[0]}},this.options.filterConsole);this.filterConsole=aA.filterConsole(aD).api();az.append(aA);return aA},Y=function(aA){var az=aA.find('input[data-type="date"]:not([atlas-component])'),aB=r(aA);atlas.each(az,function(aD){var aC=atlas(aD);if(aC.attr("data-range")){aC.dateRange({format:"d",type:"date",onChange:aB,openOnFocus:false});return}aC.dateSelector({autoClose:true,format:"d",type:"date",clearButton:true,onChange:aB})})},r=function(aB,aC){var az=aB.api(),aD=az,aF=az.target,aE=function(aH){var aI,aG;for(aI in aH){if(aH.hasOwnProperty(aI)){aG=q.call(aD,aH[aI],aI);aH[aI]={};aH[aI][aG.op]=aG.value}}return aH},aA=function(aI){var aG,aU,aR,aV,aH,aO,aP,aM,aN,aL,aQ,aS,aT;if(w(aC)&&!aC(aI)){return}aG=az.columns;aR=az.filterConsole;aH=[];aO=function(aX){var aW=atlas(aX),aY;if(aW.isDateRange()){aY=aM}else{if(aW.isDateSelector()){aY=aN}else{aY=aP}}return aY(aX)};aP=function(aW){var a0,aX,aZ=aW.name,aY;if(!(a0=aW.value)){return null}aX=q.call(aD,a0,aZ);aY=aD.columnManager.getColumn(aZ).getField().dataType;if(B(aY)&&aY.toLowerCase()==="number"){aX.value=atlas.parseNumber(a0)}return{field:aZ,op:aX.op,value:aX.value}};aM=function(aW){var aX=atlas(aW).api(),aZ=aL(aX.start),aY=aL(aX.end);if(!aZ&&!aY){aZ=atlas.runDatePatterns(String(aW.value).trim()).zeroIsoNoOffset}return aZ?{field:aW.name,op:aY?"between":"equal",value:aY?[aZ,aY]:aZ}:null};aN=function(aW){var aX=aL(atlas(aW).api());return aX?{field:aW.name,op:"equal",value:aX}:null};aL=function(aW){var aX=aW.value();return aX&&atlas.runDatePatterns(aX.getTime()).zeroIsoNoOffset};aQ=function(aX){var aW=atlas(aX),a1=aW.val(),a0=aW.parents("th").attr("data-name"),aY=aG.filter(function(a2){return a2.name===a0})[0],aZ=((aY||{}).filters||[])[a1];return{field:a0,op:aZ.operator||"contains",value:aZ.value}};aS=(function aJ(){var aW=aB.find("."+F.filterInput+'[data-target="'+aF+'"]').toArray().map(aO),aX=aB.find("."+F.filterRadio+'[data-target="'+aF+'"]:checked').toArray().map(aQ);return aW.concat(aX)}());aT=(function aK(){return aB.find("."+F.filterInput+'[data-target="'+aF+'"]').toArray().reduce(function(aX,aW){var aY=aW.value;aY&&(aX[aW.name]=aY);return aX},{})})();if(aR){aH.push(aR.getCurrentFilter());aD._state.filterConsole=aR.state()}if(aV){aH.push(aE(aV))}if(aS){aH.push(aS)}aD.columnInputValues=aD._state.columnInputValues=aT;aU=atlas.dataStore.filter.merge.apply(az,aH);az.dataManager.filter(aU||{})};return aA},ag=function(){var aQ=this,aN=atlas(this.container),aO=aN,aF=r(aO,function(aY){var aV=atlas(aY.target||aY.srcElement),a2=aV.val(),a3=aM(a2),a0=a3.length,aX,aW,a1,aZ;if(a0){aZ=aY.keyCode;aX=aV.isDateSelector()||aV.isDateRange();aW=aX&&atlas.date.isValid(a3);if(aK(a3)&&c.indexOf(a3)===-1){return false}if(aX){if(aZ===ax){if(!aW){aV.animate(F.animationBounceUp)}else{a1=atlas(aV).api();a1.start.clear();a1.end.clear();aG.call(aQ,aO,aV,a3);return true}}return !a3}if(aZ===ax&&!aX){return true}}return(!a2||a0>1)}),aI=r(aN),aB=function(aW){var aV=atlas(aW.target),aX=F.filterCheckbox;if(aV.hasClass(aX)||aV.find("."+aX).length>0){aW.stopImmediatePropagation()}},aH=function(aV){aV.keyCode===ax&&aV.stop()},aD=function(aX,aY){var aZ=aX.api(),a5,a6,aV,a1,a0,a2,aW,a4,a3;if(!aZ.useFilterBar||!atlas.isObject(aY)){return}a5=aY.field;aV=aZ.columns;a1=aV.length;a0=0;aW=aZ.filterConsole.filters||[];if(c.indexOf(aY.alias)>-1){aY.label=p(aY.op);aY.alias=" "}for(;a00){a1=aW.join(", ");aZ={field:a0,op:"in",value:aV,label:a1,alias:"="};aD(aN,aZ)}},aJ=function(aX){var aW=atlas(aX.target||aX.srcElement),aV=aW.parent();if(aX.type==="focus"){aV.addClass(F.inputGroupActive)}else{if(aX.type==="blur"){aV.removeClass(F.inputGroupActive)}}},aK=function(aV){return au.indexOf(aV)>-1},aM=function(aV){return(aV&&B(aV))?aV.trim():""},az=function(aW){var aZ=aW.target||aW.srcElement,aV=atlas(aZ),aY=aM(aV.val()),aX=aY.length;if(aX){if(aK(aY)){aV.val("")}}},aL=function(){var aV=aN.find("."+F.gridElements);aV&&aV.scrollLeft(0)},aE=function(aV){var aX=aV.target.value,aW=(aQ.columnInputValues&&aQ.columnInputValues[aV.target.name])||"";if(aX===aW){return}aF.apply(this,arguments)},aR=aQ.options&&atlas.toInt(aQ.options.scrubSearchDebounceTimeout),aS=aR
                  ").atlasGrid(aA)}this.each(function(aE){if(!atlas(aE).isComponent()){aw.create(aE,aA)}else{C.logError("{0} is already an atlas ui component, atlas will not turn an existing component into another component",[aE.id||aE.tagName+"."+aE.className.replace(" ",".")],"Already an instanceof "+atlas(aE).attr("atlas-component"))}});return this.api()};atlas.templates=atlas.templates||{};atlas.templates[L.batch]='
                  ';atlas.templates[L.aggregates]='# var i = 0, len = data.length, item;for (; i < len; i++) { item = data[i]; ##=item##}#';atlas.templates[L.columnConfig]='

                  #:labels.addRemoveColumns#

                    # var i = 0, l = columns.length || 0, oColumn, sGuid;for (; i < l; i += 1) {oColumn = columns[i];sGuid = "A-" + atlas.makeGUID(); #
                  • # } #
                  #:labels.apply#
                  #:labels.cancel#
                  ';atlas.templates[L.saveView]='

                  #:labels.saveCurrentView#

                  #:labels.save#
                  #:labels.cancel#
                  ';atlas.templates[L.header]='
                  # var i = 0, aRegions = (typeof regions !== "undefined") ? regions : [], l = aRegions.length || 0;for (; i < l; i += 1) { #
                  # } #
                  ';atlas.templates[L.gridTitle]='
                  #: title #
                  '})();(function(){var a=atlas.isString,e="atlas.ui.grid.dataManager",b=new atlas.Logger(e),d={onFilterSelected:"onFilterSelected",onSortSelected:"onSortSelected"},c=function(g){return new f(g)},f=function(g){g=g||{};this._options=g;this._filter=g.filter;this._sort=g.sort;this.subscribeEvents(g)};atlas.component.pubsubEventMixin(f.prototype,{baseChannel:function(){return this._subscription||(this._subscription=e+"."+atlas.makeGUID())},events:atlas.utils.values(d)});f.prototype.filter=function(g){if(arguments.length===0){return this._filter}this._filter=g;this.publish("onFilterSelected",g)};f.prototype.isFiltered=function(){var g=this._filter;return !!(g&&(g.field||g.filters))};f.prototype.sort=function(g){if(arguments.length===0){return this._sort}this._sort=g;this.publish("onSortSelected",g)};f.prototype.addSort=function(j,h){var g=this._sort||{},i=(h+"").trim().toLowerCase().startsWith("desc")?"desc":"asc";if(!a(j)){b.logError("addSort - invalid field name");return this}g[j]=i;this.sort(g);return this};f.prototype._filter=null;f.prototype._sort=null;f.prototype.destroy=function(){this.unsubscribeEvents()};atlas.ui.grid.dataManager=c})();(function(){var e={"<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual","!=":"notEqual","=":"equal","()":"contains","(/)":"notContains","x/":"startsWith","/x":"endsWith","*":"empty",")*(":"notEmpty"},f="~&&~",c=function(m,n){var l=(p=n.meta)&&(o=p.gridConfiguration)&&(j=o.dataSource)&&(r=j.schema)&&(q=r.model)&&q.fields||{},p,o,j,r,q,k=Object.keys(l).reduce(function(t,s){t[s]=l[s].type;return t},{}),i=atlas.dataStore.filter.isConditionalExp,g=function(s){if(!atlas.isObject(s)){return}if(i(s)){s.filters.forEach(g)}else{s.value=h(k[s.field],s.value)}},h=function(t,u){var s=u;if(t==="date"){if(atlas.isString(u)&&!~u.indexOf("T")||atlas.isDate(u)){s=atlas.runDatePatterns(u).s||""}}return s};g(m)},a={comparison:"contains"},b=(function(){var i=function(n,o){return atlas.dataStore.filter.merge(n.map(b),o)},m=function(o){var n;if(atlas.dataStore.filter.isComparisonExp(o)){return g(o)}n=j(o);return atlas.dataStore.filter.merge(n)},h=(function(){var n=Object.keys(e).sort(function(o,p){return o.length-p.length});return function(p){var o="";n.forEach(function(q){if(atlas.startsWith(p,q)){o=q}});return{alias:o||null,value:p.slice(o.length)}}})(),j=function(n){n=atlas.extend(true,{},n);return Object.keys(n).reduce(function(o,r){var q=n[r],p;if(!atlas.isObject(q)){p={value:q,alias:null};if(atlas.isString(q)){p=h(q)}q={};q[p.alias||a.comparison]=p.value}Object.keys(q).forEach(function(s){var t=e[s],u;if(t){u=q[s];delete q[s];if(q[t]){q[t]+=f+u}else{q[t]=u}}});return o.concat(k(r,q))},[])},k=function(o,n){return Object.keys(n).reduce(function(p,q){return p.concat(l(o,q,n[q]))},[])},l=function(o,p,q){var n=atlas.isString(q)?q.split(f):[q];return n.map(function(r){return g({field:o,op:p,value:r})})},g=function(n){return atlas.extend({op:a.comparison,coerce:true,caseInsensitive:true},n)};return function(o){var n;if(atlas.isArray(o)){return i(o)}else{if(atlas.isObject(o)){n=o.filters;return atlas.isArray(n)?i(n,o.conditionalOp):m(o)}}}})(),d=function(g){if(atlas.isArray(g)||!atlas.isObject(g)||g.hasOwnProperty("dir")&&g.hasOwnProperty("field")){return g}return Object.keys(g).reduce(function(h,j){var i=g[j];if(i==="asc"||i==="desc"){h.push({field:j,dir:i})}return h},[])};atlas.ui.grid.dataManager.normalizers={filterValues:c,filter:b,sort:d}})();(function(){var a=50,e="atlas.ui.grid.pager",b=new atlas.Logger(e),d={onPageChange:"onPageChange",onPageSizeChange:"onPageSizeChange",onLastPageChange:"onLastPageChange",onRowChange:"onRowChange"},c=function(g){return new f(g)},f=function(g){g=g||{};this._options=g;this._pageCurrent=g.getPage||g.currentPage||g.page||1;this._rowCurrent=g.currentRow||null;this._pageLast=null;this._pageSize=g.pageSize||a;this._logger=g.logger||b;this.subscribeEvents(g)};atlas.component.pubsubEventMixin(f.prototype,{baseChannel:function(){return this._subscription||(this._subscription=e+"."+atlas.makeGUID())},events:atlas.utils.values(d)});f.prototype.pageSize=function(g){if(arguments.length===0){return this._pageSize}this._pageSize=g;this.publish("onPageSizeChange",g)};f.prototype.lastPage=function(g){if(arguments.length===0){return this._pageLast}if(this._pageLast===g){return}this._pageLast=g;this.publish("onLastPageChange",g);if(atlas.isFinite(g)&&gthis._pageLast){return this._logger.logError("page: The page must be less than or equal to the last page.",g)}if(g<=0){return this._logger.logError("page: The page must be greater than or equal to one.",g)}if(this._pageCurrent===g){return}this._pageCurrent=g;this.publish("onPageChange"+i,g)};f.prototype.row=function(g,h){var i=h?"."+h:"";if(!arguments.length){return this._rowCurrent}if(g===null){this._rowCurrent=null;return}if(!atlas.isFinite(g)){return this._logger.logError("row: The row must be of type number and finite.",g)}if(g<=0){return this._logger.logError("row: The row must be greater than or equal to one.",g)}this._rowCurrent=g;this.publish("onRowChange"+i,g)};f.prototype.next=function(){this.page(this._pageCurrent+1)};f.prototype.prev=function(){this.page(this._pageCurrent-1)};f.prototype.last=function(){if(!this._pageLast){this._logger.logError("pageLast: The last page is not known")}this.page(this._pageLast)};f.prototype.first=function(){this.page(1)};atlas.ui.grid.pager=c})();(function(s){var x=s.ui||(s.ui={}),u=x.grid||(x.grid={}),w=function(){},v=u.metadata=new w(),e=s.solicit.hasValidContentType,q=s.solicitAsync,h=s.isObject,i=s.isString,g=s.isBoolean,f=s.isArray,a=["application/json","application/javascript","application/x-javascript","text/javascript","application/ecmascript","application/x-ecmascript"],k=v.dataType={NONE:0,BOOLEAN:1,DATE:2,DATETIME:3,ID:4,INTEGER:5,MONEY:6,STRING:7},n="{0:d}",p="atlas.ui.grid.metadata",j=s.logger(p),l={retrieval:"Error retrieving metadata",parse:"Error parsing metadata",invalidContentType:"Invalid response content type"},m={invalidColumn:"Invalid column descriptor. Skipping..."},r=function(A){var z,C=A.response,B;if(!e(A,a)){B=l.invalidContentType;j.logError(B,C);throw new Error(B)}try{z=JSON.parse(C)}catch(y){B=l.parse;j.logError(B,y);throw y}return z},b=function(y){var z=JSON.parse(y.responseText)||{message:l.retrieval};j.logError(l.retrieval,z.message);throw z},c=function(y){switch(y.type){case k.BOOLEAN:return"boolean";case k.DATE:case k.DATETIME:return"date";case k.INTEGER:case k.MONEY:return"number";case k.ID:case k.STRING:return"string";default:return""}},d=function(y){switch(y.type){case k.DATE:case k.DATETIME:return n;default:return""}},t=function(y,B,z,A){return z},o=function(z,A,D,E,C){var F=this,y=A.components||(A.components=[]),B=C&&C.components;D||(D=[]);D.forEach(function(G){y.push(F.buildDropdownMenu(z,G,E,C))});B&&(A.components=B.call(this,z,D,y,E));return z};v.Parser=w;w.prototype.retrieveAsync=function(A){var y=i(A)?{url:A}:A,z=q(y).promise;return z.then(r,b)};w.prototype.buildColumnDescriptor=function(z,y,C,B){var G=c(y),D={name:y.name,text:y.text,sortable:(y.sortable!==false),visible:(y.visible!==false),type:G,dataType:G},F=y.filter,A=B&&B.column,E;g(y.filterable)&&(D.filterable=y.filterable);g(y.draggable)&&(D.draggable=y.draggable);f(y.operators)&&y.operators.length&&(D.operators=y.operators);if(F){D.filter={filterId:F.id,filters:F.items||[],filterMode:F.displayMode,fields:F.fields||[]};(E=C&&C.endpoints)&&(D.field=new s.data.LazyField(D,E))}return A?A.call(this,z,y,D,C):D};w.prototype.setupColumns=function(A,z,F,E){var B=0,C,G,J,K,L,M,I=A.meta.gridConfiguration.dataSource.schema.model.fields,y=A.columns||(A.columns=[]),H=A.fieldFormat||(A.fieldFormat={}),D=E&&E.columns||t;z||(z=[]);C=z.length||0;for(;B{0}";U=S({column:this._options,target:this._grid.target,columnReorder:!!this._grid._options.columnReorder});T=b(V,[U]);R=atlas(T).find("th");return R};P.prototype.renderCell=function(R){var T=this._cellTemplateOpts,S=j(G.gridCell);T.cellContent=this.renderCellContent(R);T.rowNumber=R.rowNumber;return S(T)};P.prototype.renderCellContent=function(S){var U=this.accessor(S.data),R=!t(U),T=R&&this.formatter(U);return R?T:""};P.prototype.setupHeader=function(){var R=this._options;if(R.command){return this.setupHeaderCommand()}return this.setupHeaderDefault()};P.prototype.setupHeaderCommand=function(){};P.prototype.setupHeaderDefault=function(){var S=this.header.find("."+y.inputGroup),R=h.call(this,S),U=k.call(this),T=this;U.toggle=R.find("button");this._filterPanel=R.filterPanel(U).api();this._filterPanel.positionWithinBounds=H.bind(this._filterPanel,atlas(T._grid.container))};P.prototype.setDisplayName=function(R){if(!u(R)||!R.trim()){return v.logError("setDisplayName: invalid sDisplayName",R)}this._options.text=R;this.header.find("."+y.columnLabel).text(R).attr("title",R);this._grid.columnManager.publish("onColumnDisplayNameChanged",this)};P.prototype.setInputValue=function(R){this.header.find("."+y.input).val((this._inputValue=""+R+""))};P.prototype.width=function(){return arguments.length?this.setWidth.apply(this,arguments):this.getWidth()};P.prototype.setWidth=function(T,U){var S,R=U!==false;if(!r(T)){return v.logError(".setWidth, width must be finite",T)}if(R){S=this.width()}this._width=T;K.call(this,T);R&&(U||T!==S)&&this._grid.columnManager.publish("onColumnWidth",i({width:T,prevWidth:S,column:this},U));return T};P.prototype.getWidth=function(){var R=this._width||this._options.width;if(!R){R=this.header[0].offsetWidth}return R};P.prototype.getMinWidth=function(){var R=this._minWidth;R=(R||this._options.minWidth);return(this._minWidth=(R||x))};P.prototype.getCompiledTemplate=function(R){return j(R)};P.prototype.visible=function(R){return arguments.length?this.setVisible(R):this.getVisible()};P.prototype.setVisible=function(R){if(!q(R)){return v.logError("The value must be a boolean.")}return(this._visible=R)};P.prototype.getVisible=function(){return this._visible};P.prototype.resizable=function(){return this._resizable};P.prototype.setupEventListeners=function(){this.header.find("."+y.sortable).on("click",this.onSortClickHandler.bind(this),null,false);this._grid.onSortSelected(this.onSortSelectedHandler.bind(this))};P.prototype.onSortClickHandler=function(){var R={purge:"sort",sortIt:{}};R.sortIt[this._options.name]="toggle";this._grid.work(R)};P.prototype.onSortSelectedHandler=function(U,T){var V=(T||{})[this._options.name]||undefined,S=!!V,R=this._sortDirection!==V;if(R){I.call(this);S&&a.call(this,V);this._sortDirection=V}};P.prototype._buildFormatter=function(R){return function S(T){return atlas.toString(T,R)}};P.prototype.destroy=function(){this.header&&this.header.remove();this._widthStyleEntry&&this._widthStyleEntry.remove()};P.isColumn=function(R){return !!(R&&R.renderHeader&&R.width)};P._OCSS=y;atlas.templates=atlas.templates||{};atlas.templates[G.header]='# var sClassNames = column.classNames || "", sColumnCss = column.css, sColumnText = column.text, sColumnName = column.name, sAttributes = column.attributes, sColumnDraggable = (column.draggable === true && columnReorder === true) ? " atlas--ui-grid-drag-target atlas--ui-grid-drag" : "", sFilterType = column.filter && column.filter.type, sInputType = sFilterType === "multiple" ? "checkbox" : "radio", oCommand = column.command, filters, sTitleClass; ## filters = column.filters;sTitleClass = (column.filterable !== false && filters) ? "atlasGrid-title-center" : "";if (column.sortable !== false && sColumnText != " " && !oCommand) { ##: sColumnText || sColumnName # # } else { ##: sColumnText || sColumnName # # }if (column.filterable !== false && !oCommand) {if (filters || !(filters && (column.dataType + "").toLowerCase() !== "date")) { #
                  # }} #';atlas.templates[G.headerFilterInput]='';atlas.templates[G.headerFilterInputDate]='
                  ';atlas.templates[G.headerTextInput]='# var sInputValue = column.inputValue; #';atlas.templates[G.gridCell]='
                  #= cellContent #
                  ';atlas.ui.grid.column=P})();(function(x){var a,l=120,p="atlas--ui-grid",m={header:"atlasGrid-header-cell",headerName:"atlasGrid--column-name",draggable:p+"-drag",dropzone:p+"-drag-target",dragContainer:p+"-drag-container",dropIndicator:p+"-drop-indicator",activeDragColumn:p+"-drag-active-column",sortIcons:"atlas-icon-arrow-solid",scrollArea:"atlasGrid--scroller"},o="."+m.header+", ."+m.draggable,r="."+m.header+"."+m.draggable+", ."+m.headerName,s="."+m.header+"."+m.dropzone,n={activeColumnBackgroundColor:"#E9FAFF !important",activeColumnBorderColor:"#dff0f5 !important",dragRight:"atlas--ui-grid-drag-target-right",dragLeft:"atlas--ui-grid-drag-target-left"},q="atlas.ui.grid.column.drag",k=x.logger(q),j=x.isElement,f=x.isAtlas,g=x.isBoolean,d=x.extend,v=x.validateOptions,w={scrollPageXOnDrag:{types:"boolean"}},b={scrollPageXOnDrag:true,scrollTarget:"body"},t=function(z){z&&x(this.container).find("."+m.sortIcons).css("display",z.toLowerCase()==="enable"?null:"none")},e=function(A){var z=x(A);return{inner:z.find("."+m.scrollArea).offset().height,console:z.find(".atlas--ui-filter-console").offset().height,footer:z.find(".atlas--ui-grid-footer").offset().height,header:z.find(".atlasGrid--header").offset().height}},c=function(z){var A=e(z);return A.inner},u=function(B){var z=x(this.config.scrollTarget),A=z.scrollLeft(),C=this;z.scrollLeft(A+B);if(this.stopScroll===false){setTimeout(function(){u.call(C,B)},20)}},h=function(z){return x(z).is(r)},i=function(z){return x(z).is(s)},y=function(B,z){var A=v(z||{},w,q,true);a||(a=x(document.body));if(!j(B)&&!f(B)){k.logError("Incorrect type provided, failing!","Expected an HTMLElement for `target`, received `"+x.getType(B)+"` instead.");return undefined}if(g(z.scrollPageXOnDrag)&&z.scrollPageXOnDrag===true){this.scrollTarget=x(z.scrollTarget);if(!this.scrollTarget.length){k.logError("Scrolling was configured to be updated on x-drag, yet a valid scroll target was not provided. Failing!");return undefined}}if(A.valid===false){k.logError("Fatal errors encountered. Please correct.");return undefined}this.config=d({},b,z);this.container=B;this.draggableProxy=undefined;this.dropIndicator=undefined;this.columnManager=this.config.columnManager;this.grid=this.config.grid;this.gridStyler=undefined;this.selectedColumn=undefined;this.selectedColumnWidth=undefined;this._boundSelectColumn=this.selectColumn.bind(this);this._boundMoveColumn=this.moveColumn.bind(this);this._boundDropColumn=this.dropColumn.bind(this);this._boundCancelColumn=this.cancelColumn.bind(this);this._boundInvalidMove=this.invalidMove.bind(this);this._boundValidMove=this.validMove.bind(this);this.boundingLeft=undefined;this.boundingRight=undefined;this.columnSelector=undefined;this._activeSortStyleEntry=undefined;this.stopScroll=true;this.invalidDropTarget=false;this.setup()};y.prototype.setup=function(){x(this.container).on("mousedown",o,this._boundSelectColumn,null,false)};y.prototype._setDropIndicator=function(z){z=Math.max(z,this.boundingLeft);if(z>=this.boundingRight){z-=2}x(this.dropIndicator).css("transform","translateX("+z+"px)").appendTo("body")};y.prototype._setProxyPosition=function(z,A){z=Math.max(z,this.boundingLeft);if(z>this.boundingRight){z=A.width-this.boundingRight}x(this.draggableProxy).css("transform","translateX("+z+"px)")};y.prototype.highlightColumn=function(){var z={},A,B="background-color:"+n.activeColumnBackgroundColor+"; border-bottom-color:"+n.activeColumnBorderColor;if((A=this.gridStyler)){z[this.columnSelector]=B;this._activeSortStyleEntry=A.addRule(z)}};y.prototype.unhighlightColumn=function(){var z=this._activeSortStyleEntry;z&&z.remove();this._activeSortStyleEntry=undefined};y.prototype.setBoundaries=function(){var z=x(this.container).find(o);this.boundingLeft=z.first().offset().left;this.boundingRight=(function(){var C=z.last().offset(),A=C.left,B=C.width;return(A+B)})()};y.prototype.selectColumn=function(E){var C,z,I,H,G,F,B,A,D=E.currentTarget;if((E.rightClick&&E.rightClick===true)||!h(E.target)){return}E.preventDefault();t.call(this,"disable");C=h(D)?D:x(D).closest(r)[0];if(!C){return}z=x(this.container);this.setBoundaries();I=this.columnManager.getColumn(C.getAttribute("data-name"));H=x(C).offset();G=H.top;F=c(this.grid);this.gridStyler=!this.gridStyler&&x.isPropertyDefined(I,"_grid.styleSheet")?I._grid.styleSheet:undefined;this.columnSelector=I._getSelectorForColumnCell();this.selectedColumn=C;this.selectedColumnWidth=H.width;this.highlightColumn();B=x("
                  ").addClass(m.dragContainer).css({width:H.width,height:F,top:G+H.height});this.draggableProxy=B[0];A=x("
                  ").addClass(m.dropIndicator).css({height:F+H.height,top:G});this.dropIndicator=A[0];this._setProxyPosition(H.left,H);B.appendTo("body")[0];x(C).addClass(m.activeDragColumn);z.on("mousemove",this._boundMoveColumn,C,false).on("mouseup",this._boundDropColumn,C,false).on("mouseleave",this._boundInvalidMove,C,false).on("mouseenter",this._boundValidMove,C,false);B.on("mouseup",this._boundCancelColumn,null,true).on("mouseenter",this._boundInvalidMove,C,false);x("body").one("mouseup mouseleave",this._boundCancelColumn,null,false)};y.prototype.invalidMove=function(){if(this.invalidDropTarget!==true){this.invalidDropTarget=true;x(this.draggableProxy).hide();x(this.dropIndicator).hide()}};y.prototype.validMove=function(){if(this.invalidDropTarget===true){this.invalidDropTarget=undefined;x(this.draggableProxy).show();x(this.dropIndicator).show()}};y.prototype.moveColumn=function(C,A){var J=this.config,B=C.target,z=x(B),E=C.clientX,D=a.width(),I=this.columnManager,K,F,G,H;C.preventDefault();this.stopScroll=true;if(!i(B)){z=z.closest(s)}if(J.scrollPageXOnDrag===true){if(E(D-l)){this.stopScroll=false;u.call(this,10)}}if(!i(z)||(z[0]===A)){this.invalidMove(C,A);return}this.validMove(C,A);K=z.offset();F=K.left;G=I.getVisibleIndex(this.selectedColumn.getAttribute("data-name"));H=I.getVisibleIndex(z.attr("data-name"));if(G>H){this._setDropIndicator(F);this._setProxyPosition(F,K)}else{if(G';atlas.ui.grid.columnRowNumber=h})();(function(){var g="atlasGrid--col-date",b={input:g+"-filter-input",inputGroup:"atlasGrid--input-group",dateToggle:"atlas--ui-dropdown-toggle",dateSelector:"atlas--ui-date-selector",inputAddon:"atlasGrid--input-addon",valueInput:"atlas--ui-filter-console-value-input",atlasUIInput:"atlas--ui-input",atlasFilterDateInput:"atlas--filter-date-element",columnInput:g+"-console-value-input",valueWrapper:"atlas--ui-filter-console-value-wrapper"},e=atlas.operatorHelper(),d=e.getOperatorMap(),c={classNames:g,dataType:"date",draggable:true,filterable:true},h="#atlas-grid-column-date-header",f={headerTextInput:h+"-text-input-template",headerFilterInput:h+"-filter-input-date-template"},a=function k(n){var m=Object.keys(f).reduce(function(p,o){var q=f[o];p[q]=atlas.Template.compile(atlas.templates[q]);return p},{});a=function l(o){return m[o]};return a(n)},i=atlas.ui.grid.column,j=function(l,m){var n;if(!i.isColumn(this)){return new j(l,m)}n=atlas.extend({},c,m);i.call(this,l,n)};j.prototype=Object.create(i.prototype);j.prototype.destroy=function(){var l=this.header,m,n;if(l){m=l.find("."+i._OCSS.inputGroup);(n=m.api())&&atlas.isFunction(n.destroy)&&n.destroy();m.off()}i.prototype.destroy.apply(this,arguments)};j.prototype.setupHeader=function(){var m=this.header.find("."+i._OCSS.inputGroup),s,n,o,r=this,q={column:this._options,target:this._grid.target},l=function(t,u){var C=u.start,z=u.end,y=d.between.name,A=d.equal.name,B=d.empty.name,w=u.dateRange,v=u.dateRange.start.config.isEmptyChecked,x;if(!r._grid.filterConsole){r._grid.columnManager.publish("onColumnFilterChange",r);return}if(v){x={field:r._options.name,op:B,value:""}}else{x={field:r._options.name,op:z?y:A,value:z?[C,z]:C}}r._grid.filterConsole.addFilter(x);w.cancel()},p=d.empty.name;m.append(a(f.headerTextInput)(q)).append(a(f.headerFilterInput)(q));n=m.find("."+b.input);n.dateRange({format:"d",type:"date",openOnFocus:false,showDateInInput:false,start:{isEmptyFilter:e.getOperatorsForField(this._field).some(function(t){return t.name===p})},onApply:l});o=n.api();m.on("click","."+b.dateToggle,function(){if(n.isDateSelector()||n.isDateRange()){if(!(s=n.val())||atlas.date.isValid(s)){o.toggle()}}},null,true)};j.prototype._buildFormatter=function(l){l||(l="d");return function(m){if(!m){return""}return atlas.formatDate(atlas.date.getDateFromISO(m),l)}};atlas.templates[f.headerFilterInput]='
                  ';atlas.templates[f.headerTextInput]='# var sInputValue = column.inputValue; #';atlas.ui.grid.columnDate=j})();(function(i){var k=i.ui.grid.column,j=k.prototype,e=i.template.get,c=i.isObject,b=i.extend,h=i.templates,g="#atlas-grid-column-select",f={header:g+"-header",cellContent:g+"-cell-content"},d={headerCell:"atlasGrid-header-cell",gridContainer:"atlasGrid--grid-elements",gridRow:"atlas--ui-grid-row",gridCell:"atlas--ui-grid-cell",selectAll:"atlas--ui-grid-select-all",selectItem:"atlas--ui-grid-select-item",selectBox:"atlas--ui-grid-select-item-box",itemSelected:"atlas--ui-grid-item-selected"},a="__datum__",l=function(m,o){var p;if(!k.isColumn(this)){return new l(m,o)}k.call(this,m,o);p=c((p=o.command.selectable))?b({},p):{itemID:p};p.totalCount||(p.totalCount=function q(){var r=m.totalCountService;return r?r.getCount():-1});p.isFiltered||(p.isFiltered=function n(){return m.dataManager.isFiltered()});this.selectionManager=m.selectionManager||(m.selectionManager=i.managers.selectionManager(p))};l.prototype=Object.create(j);l.prototype.setupHeader=function(){var m=this,n=i(this._grid.container);this._onAllItemsSelectionChange=function p(t){var s=t.target,r=s.checked;if(r){m.selectionManager.selectAll()}else{m.selectionManager.deselectAll()}s.indeterminate=false;m.isIndeterminate(false);n.find("."+d.selectItem).attr("checked",r)};this.header.on("change","."+d.selectAll,this._onAllItemsSelectionChange);if(i.browser.msie){this._onAllItemsClicked=function o(){var r=m._elSelectAll;if(m.isIndeterminate()){r.checked=!r.checked;i(r).fireEvents("change")}};this.header.on("click","."+d.selectAll,this._onAllItemsClicked,null,true)}this._onItemSelectionChange=function q(v){var u=v.target,r=i(u),s=r.parentsUntil("."+d.gridContainer,"."+d.gridRow),w=s[0][a],t=u.checked,x=m.selectionManager;if(t){x.select(w);s.addClass(d.itemSelected)}else{x.deselect(w);s.removeClass(d.itemSelected)}};n.on("change","."+d.selectItem,this._onItemSelectionChange);this._grid.onRender(function(){m.selectionManager.onFilterChanged()});this.selectionManager.onChange(function(u,y){var v=m._elSelectAll,z=m.selectionManager,w=y.selectedCount,x=y.totalCount,s,r,t;if(v){s=z.hasAllSelected();r=(x!==0&&x===w);t=s?!r:(w>0&&!r);v.indeterminate=t;m.isIndeterminate(t);!t&&(v.checked=r)}})};l.prototype.renderHeader=function(){var n,m;if((m=this.header)){return m}n=e(f.header);m=i(""+n({column:this._options,target:this._grid.target})+"
                  ").find("."+d.headerCell);this._elSelectAll=m.find("."+d.selectAll)[0];return m};l.prototype.isIndeterminate=function(m){if(i.isUndefined(m)){return this._isIndeterminate}this._isIndeterminate=m};l.prototype.renderCellContent=function(m){var q=e(f.cellContent),p=this.selectionManager,n=m.data,o={data:n,selected:p.isSelected(n),id:p.getItemID(n)};return q(o)};l.prototype.resizable=function(){return false};l.prototype.destroy=function(){var m=this._grid;j.destroy.call(this);this._onAllItemsSelectionChange&&this.header.off("change","."+d.selectAll,this._onAllItemsSelectionChange);this._onAllItemsClicked&&this.header.off("click","."+d.selectAll,this._onAllItemsClicked);this._onItemSelectionChange&&i(m.container).off("change","."+d.selectItem,this._onItemSelectionChange);this.selectionManager.destroy();this.selectionManager=m.selectionManager=null};i.ui.grid.columnSelectable=l;h[f.header]='#var sClassNames = column.classNames || "", sColumnCss = column.css, sColumnName = column.name, sColumnText = column.text || column.name, bSelectAll = column.selectAll; ##: sColumnText #';h[f.cellContent]=''}(atlas));(function(e){var g=e.ui.grid.column,f=g.prototype,a=e.template.get,d=e.templates,c="#atlas-grid-column-command",b={cellContent:c+"-cell-content"},h=function(i,j){if(!g.isColumn(this)){return new h(i,j)}g.call(this,i,j)};h.prototype=Object.create(f);h.prototype.renderCellContent=function(i){var l=a(b.cellContent),j=i.data,k={data:j,column:this._options,commandDataAttribs:this.commandDataAttribs,commandText:this.commandText};return l(k)};e.ui.grid.columnCommand=h;d[b.cellContent]='# var sComKey,oCommAttrDataVal,oCommandTracking,oCommand = column.command,oCommandText = commandText;oCommandAttribs = oCommand.attribs;oCommandAttribsData = commandDataAttribs;if (atlas.isFunction(oCommandText) && oCommandText(data) !== "" ) { ## } #'}(atlas));(function(){var a=atlas.ui.grid.column.isColumn,b=new atlas.Logger("atlas.ui.grid.columnFactory"),c=function(e,d){if(atlas.isFunction(d)){return d(e,{})}if(!atlas.isObject(d)){return b.logError("Col must be of type object")}if(a(d)){return d}if(d.command){if(d.command.selectable){return atlas.ui.grid.columnSelectable(e,d)}return atlas.ui.grid.columnCommand(e,d)}switch(d.type){case"rowNumbers":return atlas.ui.grid.columnRowNumber(e,d);case"date":return atlas.ui.grid.columnDate(e,d);default:return atlas.ui.grid.column(e,d)}};atlas.ui.grid.columnFactory=c})();(function(b){var a={pageSize:20,renderingPolicy:"paginate",sidebar:{},autoWidth:true};b.ui.grid.registerPlugin({name:"atlas.ui.grid.embedded",shouldRun:function(c){return !!(c&&c.embedded)},dependencies:["atlas.ui.grid.sidebar"],options:function(c){return b.extend({},a,c)},after:function(c){b(c).addClass("atlas--ui-grid-embedded")}})}(atlas));(function(b,d){var a="atlas.ui.grid",c=function c(f){var e=f&&f.notifier;if(!e){e=b.ui.notifier()}else{if(b.isFunction(e)){e=e()}}return e};d.prototype.exportAsync=function(h){var i=h||{},j=i.url||(this.meta&&this.meta.endpoints&&this.meta.endpoints["export"]),g,e;if(!j){b.logger(a).logWarn("No export API URL defined. Aborting...");return Promise.reject()}g=i.data;if(!g){g=this.getDataRequestModel(["filters","sort"]);g.columns=this.columnManager.hideableColumns().map(function(k){var l=k._options;return{field:l.name,text:l.text}})}e=b.i18n.grid["export"];return b.solicitAsync({url:j,data:g,method:g.method||"POST",header:i.headers}).then(function f(l){var k=l.responseText,m=i.filename||e.filename,o=b.formatDate(new Date(),"s"),n=b.format(m,[o,i.extension||"csv"]);b.blobs().createFile({data:k,filename:n.replace(/[~#%&*{}[\]\\:<>?/|"]/g,"-")});c(i).success(e.success);return k})["catch"](function(k){b.logger(a).logError("Failed to export grid data.",k);c(i).error(e.error);throw k})}}(atlas,atlas.ui.grid));(function(){var g="atlas.ui.grid.columnManager",b=new atlas.Logger(g),a=atlas.ui.grid.column.isColumn,e={onColumnUpdate:"onColumnUpdate",onColumnWidth:"onColumnWidth",onColumnsAdded:"onColumnsAdded",onColumnRemoved:"onColumnRemoved",onColumnsShown:"onColumnsShown",onColumnHidden:"onColumnHidden",onColumnMove:"onColumnMove",onColumnDisplayNameChanged:"onColumnDisplayNameChanged",onColumnFilterChange:"onColumnFilterChange"},d=20,f=function(i,k){var j=i.indexOf(k);if(~j){i.splice(j,1);return true}return false},c=function(i){return new h(i)},h=function(k){var j=k||{},i=this;this._options=j;this._visibleColumns=[];this._hiddenColumns=[];this._columns=[];i.addColumns(j.columns||[],false);this.subscribeEvents(k)};atlas.component.pubsubEventMixin(h.prototype,{baseChannel:function(){return this._subscription||(this._subscription=g+"."+atlas.makeGUID())},events:atlas.utils.values(e)});h.prototype.columns=function(i){return arguments.length?this.setColumns.apply(this,arguments):this.getColumns()};h.prototype.setColumns=function(i){var j=this;this.removeAllColumns();i.forEach(function(k){j.addColumns(k,false)});this.publish(e.onColumnUpdate,i)};h.prototype.getColumns=function(){return this._columns.slice(0)};h.prototype.getColumn=function(i){if(a(i)){return i}else{if(atlas.isString(i)){return this.columns().filter(function(j){return j._options.name===i})[0]}else{if(atlas.isFinite(i)){return this.visibleColumns()[i]}}}return null};h.prototype.removeAllColumns=function(){var i=this;this.getColumns().forEach(function(j){i.removeColumn(j,false)})};h.prototype.removeColumn=function(j,i){var k=this.getColumn(j),l=f(this._visibleColumns,k);if(!f(this._columns,k)){return b.logWarn("removeColumn: the column did not exist",k)}if(!l){f(this._hiddenColumns,k)}if(i===false){return}this.publish(e.onColumnRemoved,k);if(l){this.publish(e.onColumnHidden,k)}};h.prototype.addColumns=function(n,m){var j=atlas.isArray(n)?n:[n],q=this,i=[],k=[],o=b.logError,p=b.logWarn;j.forEach(function l(s){var r;if(!a(s)){return o("addColumns: col must be a column object",s)}if(~q._columns.indexOf(s)){return p("addColumns: the column object already exists",s)}i.push(s);q._columns.push(s);r=s.visible()!==false;q._hiddenColumns.push(s);r&&k.push(s)});if(m!==false){i.length&&this.publish(e.onColumnsAdded,i)}k.length&&this.showColumns(k,m)};h.prototype.showColumns=function(l,k){var i=atlas.isArray(l)?l:[l],j=i.map(this.getColumn.bind(this)),m=this,n=b.logWarn;j.forEach(function o(p){if(!f(m._hiddenColumns,p)){return n("showColumns: Column is already shown",p)}p.visible(true);m._visibleColumns.push(p);p.render()});if(k!==false){this.publish(e.onColumnsShown,j)}};h.prototype.hideColumn=function(i){i=this.getColumn(i);if(!i||i.hideable===false){return b.logWarn("hideColumn: Cannot hide specified column",i)}if(!f(this._visibleColumns,i)){return b.logWarn("hideColumn: Column is already hidden",i)}i.visible(false);this._hiddenColumns.push(i);this.publish(e.onColumnHidden,i)};h.prototype.moveColumn=function(i,j){var o=this._visibleColumns,k=this.getColumn(i),m=this.getColumn(j),l=this.getVisibleIndex(k),n=~(n=this.getVisibleIndex(m))?n:o.length-1;if(!~l){return b.logWarn("moveColumn: the column from is not a valid index or column")}o.move(l,n);this.publish(e.onColumnMove,{column:k,fromIdx:l,toIdx:n})};h.prototype.getVisibleIndex=function(i){var j=this.getColumn(i);return this.visibleColumns().indexOf(j)};h.prototype.hideableColumns=function(){return this.visibleColumns().filter(function(i){var j=i._options;return j.hideable!==false&&!j.command})};h.prototype.filterableColumns=function(){return this.columns().filter(function(i){var j=i._options;return j.filterable!==false&&!j.command})};h.prototype.hiddenColumns=function(){return this._hiddenColumns};h.prototype.visibleColumns=function(){return this._visibleColumns};h.prototype.resizableColumns=function(){return this._visibleColumns.filter(function(i){return i.resizable()})};h.prototype.fixedColumns=function(){return this._visibleColumns.filter(function(i){return !i.resizable()})};h.prototype.columnWidths=function(i){return(i||this._visibleColumns).reduce(function(k,j){return k+j.width()},0)};h.prototype.sortableColumns=function(){return this._columns.filter(function(i){var j=i._options;return !j.command&&j.sortable!==false})};h.prototype.setAutoWidth=function(l){var k=this.visibleColumns()||[],j,o=this.columnWidths(),q=l-d,p=0,r,m=0,n;if(o>=q){return}j=k.filter(function(i){if(!i._useDefaultWidth&&i._resizable&&i._width){p+=i._width}return i._useDefaultWidth&&i._resizable});if(j.length){r=Math.floor((q-p)/j.length);n=j.length;for(;m9),q="atlas.ui.grid.worker",j=atlas.logger(q),h=atlas.isPrimitive,g=atlas.isObject,d=atlas.isArray,f=atlas.isNumber,i=atlas.isUndefined,x=function(z){var A=(typeof BLSbundles2==="object"&&BLSbundles2[z]),C,B;if(!A){return}C=A.filePath;B=(atlas.isObject(BLSenvironment)&&BLSenvironment.environmentName||"").toLowerCase();return(B==="development")?A.includes:[C]},t=(function(){var z;return function(){var A,B;if(z){return z}A={};for(B in atlas){if(atlas.hasOwnProperty(B)){switch(B){case"atlasGrid":case"blobs":case"collections":case"data":case"dataProvider":case"dimDocument":case"dimViewport":case"dynamicStyleSheet":case"expressionBuilder":case"Event":case"filterBuilder":case"fn":case"focused":case"formFieldTests":case"formFields":case"geom":case"getStyle":case"getViewportSize":case"getWindowScroll":case"isolateScroll":case"JSONfn":case"limitless":case"log":case"logger":case"Logger":case"managers":case"nodeEquals":case"normalizeKendo":case"operatorHelper":case"parsers":case"performance":case"registry":case"scroll":case"selectorEngine":case"service":case"sessionTimer":case"setBrowserClasses":case"setSuppressLog":case"showMessage":case"sibling":case"state":case"storage":case"transform":case"traverse":case"ui":case"utils":case"view":case"xy":case"_":case"_cultureFn":case"_dimension":continue;default:A[B]=atlas[B];break}}}return(z=s(A))}}()),p=(function(){var z;return{getAsync:function(){var A;if(z){return z}A=(x(u)||x(r))[0];A||j.logError("CRITICAL: Path to worker file not found!");return(z=atlas.ui.processors.createWebWorkerAsync(A).then(function(B){B.onmessage=w;B.onerror=function(C){j.logError("Worker error - "+JSON.stringify(C),C)};return B}))},destroy:function(){if(!z){return}z.getAsync(function(A){A.postMessage({closeWorker:true})})}}})(),v=(function(){var A=0,B={},z=function(){var E,D,F;F=new Promise(function(H,G){E=H;D=G});B[++A]={resolve:E,reject:D};return{promise:F,id:A}},C=function(D,F){var E=B[D];delete B[D];F(E.resolve,E.reject)};return{create:z,reveal:C}})(),o=function(z){var A=v.create();z.requestId=A.id;z.target=!i(this.target)?this.target:z.target;n.call(this,z);return A.promise},n=function(A){var z=!!A._init;A=a?m(A):atlas.extend({},A);A.target=this.target;A.startTime=atlas.performance.now();if(z){this._initWorkerTask=c.call(this,A);return}Promise.all([p.getAsync(),this._initWorkerTask]).then(function(C){var D=C[0];D.postMessage(A)},function B(C){j.logError(C)});atlas.sessionTimer().tick()},c=function(D){var z=this._initWorkerTask,A=!!D._init,C,B;if(!A&&z){j.logError("Multiple worker initializations have been requested.")}z=new Promise(function(F,E){C=F;B=E});z.resolve=C;z.reject=B;p.getAsync().then(function(E){E.postMessage(D)});return z},m=function(E){var A,z,B,C,D;if(h(E)){return E}else{if(d(E)){return E.map(m)}else{if(g(E)){A={};z=Object.keys(E);B=0;C=z.length;for(;B*{cursor:'+this._options.dragCursor+"!important}");atlas("head").append(m);this._cursorStyle=m;atlas(document.body).on("mousemove."+i,this.onMouseMoveHandler.bind(this),null,true).on("mouseup."+i,this.onMouseUpHandler.bind(this),null,true);n=b.call(this,p);n.addClass(e.handleMove);o=n.data(a);this._activeHandle={origPageX:p.pageX,origColumnWidth:o.width(),handle:n,column:o,minWidth:o.getMinWidth()};c&&this._grid.hasWrappableColumns&&this._grid.lockRowHeights()};l.prototype.onMouseMoveHandler=function(m){var q,n,p,o;if(!(q=this._activeHandle)){return}n=m.pageX-q.origPageX;p=q.origColumnWidth+n;o=q.minWidth;if(p
                  ';atlas.ui.grid.column.resizer=function(m,n){return new l(m,n)}})();atlas.normalizeKendo=(function(){var d,e,f,g=Object.create(null,{}),h=function(m){var i=(atlas.isObject(m))?m:g,k=i&&i.gridConfiguration&&i.gridConfiguration.dataSource&&atlas.isArray(i.gridConfiguration.dataSource.sort)?i.gridConfiguration.dataSource.sort:[],l=k.length||0,j={},n=0;for(;n# if (count) {#Count: #=count# # } #
                  ",sum:"
                  # if (sum) {#Sum: #=sum# # } #
                  ",average:"
                  # if (average) {#Average: #=average# # } #
                  ",min:"
                  # if (min) {#Min: #=min# # } #
                  ",max:"
                  # if (max) {#Max: #=max# # } #
                  "},setAggregates:function(f,e){f.aggregate=f.aggregate||{};f.aggregate.type=f.aggregate.type?c.arrayUnique(f.aggregate.type.concat(e)):e;return f},runAggregates:function(h,m,j){var l=0,n,g,f,e=h.aggregate||{},k=m&&m.type.toLowerCase()||"";e.genTemplate="";if(c.isString(e.type)){e.type=[e.type]}n=e.type.length||0;for(;l-1?undefined:eval("("+value+")")}if(strPrefix==="_PxEgEr_"){return eval(value.slice(8))}return value})},_parseColumnsTemplate=function(columns,oMetaFields){var i=0,nLen=columns.length||0,oCol,oColCommand,oColTemplate,sCommandText,oCommandAttribs,sCommandAttribsVal,oCommandAttribsHolder,sComKey;for(;i>> 0, column, sClassNames;#
                  # for (; iCol < lCol; iCol += 1) {column = columns[iCol]._options;sClassNames = column.classNames;#
                  # } #
                  ';atlas.templates[_OTEMPLATE.gridTableHeader]='
                  ';atlas.templates[_OTEMPLATE.gridContainer]='
                  ';atlas.templates[_OTEMPLATE.pagination]='#region pagerBase#
                  #= pager #
                  #region pagerBase##region pageSize#
                  #region pageSize##region resultsRange#
                  (#= data.pagesSet #)# if (data.totalRecords > 0) { # of #= data.totalRecords# # } #
                  #region resultsRange##region arrow#
                  #region arrow##region numbers## if (data.showFirst) { #
                  1
                  # } ## if (data.startEllipsis) { #
                  ...
                  # } ## for (var i = 0, len = data.numbers.length; i < len; i += 1) { #
                  #= data.numbers[i] #
                  # } ## if (data.endEllipsis) { #
                  ...
                  # } ## if (data.showLast) { #
                  #= data.lastPage #
                  # } ##region numbers##region numberInput#
                  #region numberInput#'})(atlas);(function(g){var a="atlas.ui.grid.renderer",b=g.logger(a),e={grid:{types:"object",required:true},options:{types:["object","undefined"]}},f="atlasGrid",d={tableHead:f+"--header"},c=function(i){var j=this;Object.keys(i).forEach(function(k){if(k in j){j[k]=i[k]}})},h=function(i,j){if(!g.validateOptions({grid:i,options:j},e,a,true).valid){return b.logError("Invalid options.",JSON.stringify(j))}this._grid=i;this._options=j=j||{};c.call(this,j)};h.prototype={table:undefined,tableShim:undefined,tbody:undefined,tbodyShim:undefined,row:function(i,j){j=j||this._cachedRowTemplate.cloneNode(true);j.innerHTML=this._grid.columnManager.visibleColumns().reduce(function(l,k){return l+=k.renderCell(i)},"");return j},rowShim:function(){var i=this._grid,j;if(i.columnManager.visibleColumns().length!==this._lastColumnLength){j=i._template.gridRowShim({target:i.target,columns:i.columnManager.visibleColumns()});this._lastColumnLength===i.columnManager.visibleColumns().length;this._cachedRowTemplate=g(j)[0]}return this._cachedRowTemplate.cloneNode(true)},fetch:undefined,pagination:undefined,header:function(l){var k=g(l||this._grid._template.gridTableHeader({})),j=k.find("."+d.tableHead),m=document.createElement("tr");j.removeChildren(true);j.append(m);this._grid.columnManager.visibleColumns().forEach(function i(n){n.header.appendTo(m)});return k},footer:undefined,aggregateRow:undefined,aggregateRowShim:undefined,pageSeparators:undefined,rowNumbers:undefined,noData:undefined,errorStateFatal:undefined,errorStateRecoverable:undefined};h.isRenderer=function(i){return !!(i&&i.row&&i.rowShim&&i.header)};g.ui.grid.Renderer=h;g.ui.grid.renderer=function(i,j){return new h(i,j)}})(atlas);(function(b){var d=b.ui.grid.Renderer,c=b.ui.grid.Renderer.prototype,a="__datum__",e=function(f,g){if(!d.isRenderer(this)){return new e(f,g)}d.call(this,f,g)};e.prototype=Object.create(c);e.prototype.row=function(f,g){g=c.row.call(this,f,g);g[a]=f.data;return g};b.ui.grid.rendererSelectable=e}(atlas));(function(){var c=atlas.isNumber,f="#atlas-grid-row-legacy",d={gridCell:"atlas--ui-grid-cell",oldGridCell:"atlasGrid-cell"},b=function(i,k,l){var n,h,m,j;if(!k){return i}j=atlas.extend({},i);Object.keys(k).forEach(function(o){n=k[o];if(typeof j[o]==="undefined"||j[o]===null||!atlas.isString(n)){return}e(l,j,o);m=j[o];h=atlas.isArray(m)?m:[m];j[o]=atlas.format(n,h)});return j},e=function(l,k,j,i){var h=j?[j]:Object.keys(l);i=!!i;h.forEach(function m(o){var n=l[o]||{},p=n.type;if(typeof k[o]==="undefined"||k[o]===null||!p){return}k[o]=a(k[o],p,i)})},a=function(j,k,h){var i;switch(k){case"string":i=j.toString();return !atlas.isString(i)?j:h?i.toLowerCase():i;case"number":if(atlas.isString(j)){j=j.replace(new RegExp(",","g"),"");if(atlas.startsWith(j,"(")&&atlas.endsWith(j,")")){j="-"+j.substr(1,j.length-1)}}i=parseFloat(j);return(c(i)&&!isNaN(i))?i:j;case"date":return atlas.date.getDateFromISO(j)}return j},g=function(){atlas.ui.grid.Renderer.apply(this,arguments)};g.prototype=Object.create(atlas.ui.grid.Renderer.prototype);g.prototype.row=function(h,i){var k=this._grid,m=k.target,j,l=h.data;i=i||this._cachedRowTemplate.cloneNode(true);j=this._compiledRowTemplate||(this._compiledRowTemplate=atlas.Template.compile(atlas.templates[f]));i.innerHTML=j({columns:k.columnManager.visibleColumns().map(function(n){var o=n._options;return{classNames:o.classNames,css:o.css,template:n.template,command:o.command,commandText:n.commandText,commandDataAttribs:n.commandDataAttribs,type:o.type,name:o.name}}),data:b(l,k._options.fieldFormat,k._fieldsMeta),target:m});return i};atlas.ui.grid.LegacyRowRenderer=g;atlas.ui.grid.legacyRowRenderer=function(h,i){return new g(h,i)};atlas.templates["#atlas-grid-row-legacy"]='# var iCol = 0, lCol = columns.length >>> 0, column, oCommand, oCommandAttribs, oCommandAttribsData, oCommandTracking, oCommandText, oCommAttrDataVal, sComKey, sComKeyTra, sClassNames, sItemLabel; ## for (; iCol < lCol; iCol += 1) {column = columns[iCol];sClassNames = column.classNames;#
                  # if (column.template) { # #= column.template(data) ## } else if (column.command) {oCommand = column.command;oCommandText = column.commandText;oCommandAttribs = oCommand.attribs;oCommandAttribsData = column.commandDataAttribs;if (atlas.isFunction(oCommandText) && oCommandText(data) !== "" ) { ## } } else if (column.type === "rowNumbers") { ##: nDataItemIndex ## } else {sItemLabel = data[column.name]; ##: (typeof sItemLabel !== "undefined" && sItemLabel !== null) ? sItemLabel : "" ## } #
                  # } #'})();(function(i){var d=i.browser.msie===true,e=i.isNumber,c=i.extend,h=".atlasGrid--scroller",g=".atlas--ui-grid-body",a="atlasGrid--no-results",b="onRender",f=function(){var j=document.createElement("div");j.innerText=i.i18n.grid.noResultsFound;this.publish(b);this.limitless&&this.limitless.destroy();i(j).appendTo(i(this.container).find(g)).addClass(a)};i.ui.grid.scrollerFactory=function(m){var o=m.totalCountService.getCount(),l=m._dataRequestGate,s=m.target,p=m.pager,n,k=i(m.container).find(h),r="limitless",q=function(){var u=m._template.gridRowShim({target:s,columns:m.columnManager.visibleColumns()});this.shim=i(u)[0];this.template=this.shim.cloneNode(true)},j=l.thenGate(function(x,v,w){var y=i.extend({},m.getDataRequestModel(),{pageSize:w,pageNumber:x,pageNumberEnd:v}),u=m._usingAsyncTotalCount,z=m.totalCountService;u&&z.getCountAsync();return m.dataProvider.getDataAsync(y).then(l.thenGate(function(D){var A=D.data,C=D.totalCount,B=A.length!==(v-x+1)*w;if(e(C)&&!u){z.setCount(C)}if(!A.length&&B&&!(m.limitless&&m.limitless.totalCount)){f.call(m)}return{data:A,endOfData:B}}))}),t=m.totalCountService.onTotalCountChange(function(u,v){!v&&f.call(m)});q.prototype.destroy=function(){this._requestTimeoutID&&clearTimeout(this._requestTimeoutID);m.totalCountService.unsubscribe(t)};q.prototype.fetch=function(){var v=this,u=arguments;q.prototype.fetch=j;if(!m._hasRequestedInitialData){m._hasRequestedInitialData=true;return j.apply(this,arguments)}return new Promise(function(w){v._requestTimeoutID=setTimeout(function(){var x=j.apply(v,u);if(x&&x.then){x.then(function(y){w(y)})}},m.options.dataRequestDebounce)})};q.prototype.render=m.renderer.row.bind(m.renderer);q.prototype.createShim=m.renderer.rowShim.bind(m.renderer);n=i.limitless.factory({scroller:k,source:new q(m),options:c({appendTo:k.find(g),pageStartAt:p.page(),rowStartAt:p.row(),pageSize:p.pageSize(),showPageSeparators:m.usePageSeparators,pageSeparatorFormat:((((i.i18n||{}).grid)||{}).pageLabel||"")+" {0}",suppressFirstSeparator:true,shimWidth:m._totalWidth,separatorWidth:m._totalWidth,animationDuration:(d===true?0:200),onPageChange:function(w,v,u){p.page(v,r);p.row(null,r);u&&p.lastPage(v)},onScroll:function(){var x=this.shimHeight,u=this.anchorItem.offset,v=x*Math.round(u/x),w=this.anchorItem.index+(v===x?2:1);p.row(w,r)},onRender:function(u){m.publish(b,u)}},m._options.scroller),renderingPolicy:m.renderingPolicy});if(e(o)){n.setTotalCount(o)}p.onPageChange(function(u,v){if(~u.indexOf(r)){return}n.gotoPage(v)});p.onRowChange(function(u,v){if(~u.indexOf(r)){return}n.gotoRow(v)});return n}}(window.atlas));(function(s,v){var k=atlas.logger(v),a=["pagination","currentPage","currentRow","pageSize","pageData","filterIt","sortIt","filterConsole","columnInputValues","vault","currentBatchInView","currentPageInView","currentIndexInView"],r={vault:"options"},j=atlas.isArray,g=atlas.extend,m=atlas.ui.grid.dataManager.normalizers.filter,f=atlas.expressionBuilder(),w=function(z){var y;if(atlas.isNullOrUndefined(z)){return null}y=a.reduce(function A(C,B){if(z.hasOwnProperty(B)){C[(r[B]||B)]=z[B]}return C},{version:atlas.version});q(z,y);o(z,y);z.hasOwnProperty("columns")&&(y.columns=n(z.columns));return y},t=function(z){var y;if(atlas.isNullOrUndefined(z)){return null}y={};e(z,y);c(z,y);z.hasOwnProperty("columns")&&(y.columns=b(z.columns));a.forEach(function A(B){var C;if(y.hasOwnProperty(B)){return}C=r[B];if(z.hasOwnProperty(C)){y[B]=z[C]}else{if(z.hasOwnProperty(B)){y[B]=z[B]}}});return y},u=function(A,H,G){var D,E,F,y;if(!H){return A}D=g({},A);E=(G?(j(G)?G:[G]):[]).reduce(function C(J,I){switch(I){case"filters":J.filters=true;J.filterIt=true;J.filterConsole=true;J.columnInputValues=true;break;case"sort":J.sort=true;J.sortIt=true;break;default:J[I]=true;break}return J},{columns:"default"});F=t(H);y=Object.keys(F).filter(function B(I){return !E[I]});y.forEach(function z(I){if(I==="filterConsole"&&D[I]){g(D[I],F[I])}else{D[I]=F[I]}});if((E.columns!==true)&&H.hasOwnProperty("columns")&&A.hasOwnProperty("columns")){D.columns=l(H.columns,A.columns)}return D},q=function(A,y){var z;if(A.hasOwnProperty("sortIt")){z=A.sortIt;y.sort=Object.keys(z).map(function(B){return{field:B,dir:z[B]}})}return y},e=function(A,z){var y;if(!A.hasOwnProperty("sortIt")&&A.hasOwnProperty("sort")){y=A.sort;z.sortIt=y.reduce(function(B,C){B[C.field]=C.dir;return B},{})}return z},o=function(B,z){var A,y;if(B.hasOwnProperty("filterIt")){A=f.reduceFilterExpression(m(B.filterIt));z.filters=p(A.filters);z.conditionalFilterQuery=A.logicString}else{if(B.hasOwnProperty("filterConsole")&&(A=B.filterConsole)&&(y=A.filters)&&y.length){z.filters=p(y);z.conditionalFilterQuery=A.conditionalFilterQuery}else{if(B.hasOwnProperty("filters")){z.filters=p(B.filters)}}}return z},p=function(y){return j(y)?y.map(function(z){var A={name:z.name||z.field,op:z.op,value:z.value};z.text&&(A.text=z.text);return A}):[]},c=function(D,A){var y,z=false,C="",B;if(D.hasOwnProperty("filters")){z=true;y=d(D.filters,D.columns);C=D.conditionalFilterQuery||f.getDefaultLogicString(y);A.filterConsole=g({filters:y,conditionalFilterQuery:C},D.filterConsole);if(!D.hasOwnProperty("filterIt")){B=f.parseLogicString(C,y);A.filterIt=B.isValid?B.result:f.getDefaultFilter(y)}}if(z||D.hasOwnProperty("filterIt")){A.columnInputValues=(D.hasOwnProperty("columnInputValues")?D.columnInputValues:{})}return A},d=function(z,y){j(y)||(y=[]);return j(z)?z.map(function(A){var D=A.field||A.name,B=h(y,D),C={field:B?B.name:D,op:A.op,value:A.value};A.text&&(C.text=A.text);return C}):[]},n=function(y){if(!j(y)){k.logError("Cannot normalize column configuration. Expected array, but got "+(typeof y)+".");return[]}return y.map(function(z){return["name","width","visible"].reduce(function(A,B){if(z.hasOwnProperty(B)){A[B]=z[B]}return A},{})})},b=function(y){if(!j(y)){k.logError("Cannot de-normalize column configuration. Expected array, but got "+(typeof y)+".");return[]}return y.slice()},i=function(y){return(y.name||"").toLowerCase()},h=function(y,B){var C,D,z=0,A=y.length>>>0;B=(B||"").toLowerCase();for(;z
                  '+(o?('
                  '+p.common.defaultFilters+'
                  '):"")+'
                  '},a=function(q,o,p){return atlas(q).columnSelector({grid:o,sortableOpts:{group:{name:h,pull:"clone",put:false},scroll:this.content,scrollSensitivity:50},labels:{addFields:p.common.addFields,title:p.columnSelector.title}})},c=function(q,o,p){return atlas(q).gridSortSelector({grid:o,sortableOpts:{group:{name:h,put:true},scroll:this.content,scrollSensitivity:50},labels:{addFields:p.common.addSort,title:p.sortSelector.title}})},b=function(o){return atlas.extend({position:"right",overlay:false,autoOpen:false,closeOnEsc:false,content:f.call(this,o),closeOnOverlayClick:false},o,{onClose:function(){atlas(o.ancestor).removeClass(o.css.expanded);this.publish(l.close)}.bind(this),onOpen:function(){atlas(o.ancestor).addClass(o.css.expanded);this.publish(l.open)}.bind(this)})},i=function(q){var r=0,s=q.length,p=atlas(this.container).find("."+e.dropdownsContainer).find("."+e.sidebarList),t,o;for(;r').dropdown(t.options);o.attr("id",t.id);p.append(o)}},j=function j(){return{classNames:e.toggle,handler:function(){var p=atlas(this),o=p.parents(e.grid),q=o.api(),r=q.sidebar;if(r.isOpen()){r.close()}else{r.open()}},region:"actions",type:"atlas.ui.button"}},n=function(t,w){var v=atlas.extend({},w),p=v.components||[],o=this._i18n=atlas.extend({},atlas.i18n,v.i18n),u=v.grid,r,s,q;v.css||(v.css={});n.prototype.base.call(this,t,b.call(this,v));this.container=t;this.options=v;this.kind=d;atlas.compose.call(this,{destroy:atlas.compose.after(n.prototype.destroy)});r=atlas(this.container);r.api(this);this.render();this.content=r.find("."+e.sidebarContent)[0];s=c.call(this,r.find("."+e.sortSelector),u,o);this.sortSelector=s.api();q=a.call(this,r.find("."+e.columnSelector),u,o);this.columnSelector=q.api();p.length&&i.call(this,p);this.subscribeEvents(w)};atlas.component({componentId:d,factoryName:"gridSidebar",extend:atlas.ui.panelSlider,events:atlas.utils.values(l)},n);n.prototype.render=function(){atlas(this.container).addClass(e.sidebar+" "+e.sidebarLayout)};atlas.ui.grid.registerPlugin({name:d,shouldRun:function m(o){return o&&o.sidebar},extend:{destroy:atlas.compose.after(function k(){if(this.sidebar){this.sidebar.destroy();this.sidebar=null}})},options:function(p){var o=p&&p.header&&p.header.components;if(atlas.isArray(o)){p=atlas.extend({},p);p.header=atlas.extend({},p.header);p.header.components=o.concat(j())}return p},after:function(q,s){var r=atlas.extend({grid:this},s.sidebar),t=atlas().gridSidebar(r).api(),o=atlas(this.container),p=o.find("."+e.toggle),u=e.toggleOn;this.sidebar=t;t.onOpen(function(){p.addClass(u);o.addClass(e.gridPanelOpen)});t.onClose(function(){p.removeClass(u);o.removeClass(e.gridPanelOpen)})}});n.prototype.destroy=function(){atlas(this.container).removeClass(e.sidebar+" "+e.sidebarLayout);if(this.sortSelector){this.sortSelector.destroy();this.sortSelector=null}if(this.columnSelector){this.columnSelector.destroy();this.columnSelector=null}}}());(function(m){var b="atlas.ui.footer",e=m.logger(b),d=m.extend,i="atlas--ui-grid-footer",j=null,g={navBtn:i+"-nav-btn",prevBtn:i+"-nav-btn-prev",nextBtn:i+"-nav-btn-next",jump:i+"-nav-jump-to-page",gridFooter:i,counter:"atlas--ui-counter",batch:"tbody",countSeparator:i+"-count-separator"},h=(m.i18n&&m.i18n.grid&&m.i18n.grid.footer)||{of:"FPO of"},k=m.toInt,f=350,a=function(){var r=this._pager,o=this._jumpPage;this._prevBtn.on("click",function s(){r.prev()},null,false);this._nextBtn.on("click",function q(){r.next()},null,false);o.on("keyup",m.debounce(function p(){var t=k(o.val());r.page(t)},f),null,false);r.onPageChange(l.bind(this));r.onLastPageChange(l.bind(this))},l=function(){var q=this._prevBtn,p=this._nextBtn,o=this._jumpPage,t=this._pager,r=t.page(),s=t.lastPage();(r<=1)?q.disableElement():q.enableElement();(s&&r>=s)?p.disableElement():p.enableElement();o.val(r);s&&o.css("width",s.toString().length*10+"px")},c=function(){var o=m().counter({count:0}),p=o.api();this._pager.onLastPageChange(function q(r,s){p.count(s)});return o},n=function(s,q){var o,r,p;q=d({},q);n.prototype.base.call(this,s,q);this._pager=r=q.pager;if(!r){return e.logError("Requires a pager object")}m.registry.set(s,this,{component:b});o=this.render(q);this._prevBtn=o.find("."+g.prevBtn);this._nextBtn=o.find("."+g.nextBtn);this._jumpPage=o.find("."+g.jump);a.call(this);this._counter=p=c.call(this);o.find("."+g.gridFooter+"-counter-holder").append(p);l.call(this)};m.component({componentId:b},n);n.prototype.render=function(){var o=m(this.container),p;if(j===null){j=m.Template.compile(m.templates["#atlas-grid-footer-template"])}p=j({labels:h});o.html(p).addClass(i);return o};m.templates["#atlas-grid-footer-template"]='
                  #:labels.of#
                  '})(atlas);(function(){var k="infinite",c={pageSize:50,refresh:true,renderingPolicy:k,usePageSeparators:true},l="atlas.ui.grid.fullScreen",h={modalInner:"atlas--ui-modal-window-inner",btnFullScreen:"atlas--ui-fullscreen-button",isFullScreen:"atlas--ui-is-fullscreen",btnSidebarToggle:"atlas--ui-sidebar-toggle-button",embedded:"atlas--ui-grid-embedded",gridWrapper:"atlasGrid--wrapper",atlasGridModal:"atlas--ui-modal-grid-container"},i={onEnter:"onEnter",onExit:"onExit"},d=function(o){return new m(o)},g=function(){var o=this._grid;if(this.isInitialized){return}if(!this._parent){this._parent=atlas(o.container).parent()}this._backup={renderingPolicy:this._grid.renderingPolicy,usePageSeparators:this._grid.usePageSeparators,pageSize:this._grid.pageSize};if(!this._modal){this.createModal()}this.isInitialized=true},b=function(){var o=this._grid;this.isFullScreen=!this.isFullScreen;g.call(this);this._backup.prevRender=o.renderingPolicy;o.limitless.destroy();o.renderingPolicy=this.isFullScreen?this._config.renderingPolicy:this._backup.renderingPolicy;o.usePageSeparators=this.isFullScreen?this._config.usePageSeparators:this._backup.usePageSeparators},e=function(){var q,p=this._grid.pager.row(),o=this._grid.pager.page();if(this._backup.prevRender===k){if(!p){p=this._config.pageSize*(o-1)+1}return Math.ceil(p/(this.isFullScreen?this._config.pageSize:this._backup.pageSize))}q=(this._backup.pageSize*o)/this._config.pageSize;return Math.ceil(q)},f=function(){var o=this._grid.totalCountService.getCount(),p=this.isFullScreen?this._config.pageSize:this._backup.pageSize;return Math.ceil(o/p)},a=function(q){var o=f.call(this),p=Math.min(e.call(this),o),r=this._grid.pager;q.refresh=true;atlas(this._grid.container).find("."+h.btnFullScreen).toggleClass(h.isFullScreen);this._grid.work(q);r.invalidate(["pageCurrent","pageLast"]);r.lastPage(o);r.page(p)},j=function(){var q=this.fullScreen,p=this.filterConsole,o;!q.isFullScreen&&q.toggle();p.open();(o=p.getEditingFilter())&&o.updatePanelPosition()},m=function(o){var p=o.options||{};this._grid=o;this._config=atlas.extend({},c,p.fullScreen)};m.prototype.toggle=function(){b.call(this);if(this.isFullScreen){this.goToFullScreen()}else{this.goToEmbedded()}};m.prototype.goToFullScreen=function(){var q=atlas.extend({},this._config),p=this._modal,o;p.open();this.publish(i.onEnter);o=atlas(p.container).find("."+h.modalInner);o.append(this._grid.container);this._grid.sidebar&&o.append(this._grid.sidebar.container);atlas(this._grid.container).removeClass(h.embedded);a.call(this,q)};m.prototype.goToEmbedded=function(){var p=atlas.extend({},this._backup),o=this._grid.filterConsole,q=this._grid.sidebar;this._parent.append(this._grid.container);if(q){if(q.isOpen()){q.close()}q&&atlas("body").append(q.container)}atlas(this._grid.container).addClass(h.embedded);o&&o.close();this.publish(i.onExit);this._modal.close();a.call(this,p)};m.prototype.createModal=function(){this._modal=atlas().modal({model:"full",autoOpen:false,allowBtnClose:false,contentOnly:true,onClose:(function(){if(this.isFullScreen){this.goToEmbedded()}}).bind(this)}).api();atlas(this._modal.container).addClass(h.atlasGridModal)};m.prototype.destroy=function(){var o=this._modal;if(this.isFullScreen){this.isFullScreen=false;this.goToEmbedded()}o&&o.destroy()};atlas.component.pubsubEventMixin(m.prototype,{baseChannel:function(){return this._subscription||(this._subscription=l+"."+atlas.makeGUID())},events:atlas.utils.values(i)});atlas.ui.grid.registerPlugin({name:"atlas.ui.grid.fullScreen",shouldRun:function n(o){return o&&o.fullScreen},before:function(o,p){if(p.sidebar){p.sidebar=atlas.extend({honorBlackLineHeader:false},p.sidebar)}p.header.components.push({region:"actions",classNames:h.btnFullScreen,type:"atlas.ui.button",handler:function(){var q=atlas(this).parents("."+h.gridWrapper).last().api();q.fullScreen.toggle()}})},after:function(){this.fullScreen=atlas.ui.grid.fullScreen(this);if(this.filterConsole&&this.options.embedded){this.filterConsole.onExpand(j.bind(this))}}});atlas.ui.grid.fullScreen=d})();(function(d){var a="atlas.ui.grid.gridSortSelector",b=new d.Logger(a),c=function(f,g){return Object.keys(g||{}).filter(function(h){return f.getColumn(h)&&g[h]}).map(function(h){return{text:f.getColumn(h)._options.text,name:h,dir:g[h]}})},e=function(k,i){var h=i.grid,f,g,j=this;if(!h){return b.logError("Requires a grid object")}f=this._columnManager=h.columnManager;g=this._dataManager=h.dataManager;this.target=d.makeGUID();d.registry.set(k,this,{component:"gridSortSelector"});i=d.extend({},{items:c.call(this,f,g.sort()),allItems:function(){return f.sortableColumns().map(function(l){return l._options})}},i);e.prototype.base.call(this,k,i);this.onUpdate(this.onUpdateHandler.bind(this));g.onSortSelected(this.onSortSelectedHandler.bind(this));f.onColumnDisplayNameChanged(function(m,l){j.items(c.call(j,f,g.sort()),false)})};d.component({extend:d.ui.sortSelector,componentId:a},e);e.prototype.onSortSelectedHandler=function(f,g){this.items(c.call(this,this._columnManager,g),false)};e.prototype.onUpdateHandler=function(g,f){var h=f.reduce(function(j,i){j[i.name]=i.dir||"asc";return j},{});this._dataManager.sort(h)}})(atlas||{});(function(l){var e={selector:"#atlas-template-selector",checkbox:"#atlas-template-checkbox",message:"#atlas-template-message",textInput:"#atlas-template-textInput",textarea:"#atlas-template-textarea"},c={selector:null,checkbox:null,message:null,textInput:null,textarea:null},d={selector:"selector",checkbox:"checkbox",message:"message",textarea:"textarea",textInput:"textInput"},b={checkbox:"atlas--ui-checkbox",label:"atlas--ui-text-label"},a=function(n){var m=e[n];return c[n]||(c[n]=l.Template.compile(l.templates[m]))},h=function(n){var m,o;m=a(d.message);o=m({text:(n.message?n.message:""),className:(n.className?n.className:""),id:(n.id?n.id:"")});return o},i=function(n){var m,o;m=a(d.selector);o=m({label:(n.label?n.label:""),className:(n.className?n.className:""),id:(n.id?n.id:"1"),items:(n.items?n.items:"1")});return o},k=function(n){var m,o;m=a(d.textInput);o=m({label:(n.label?n.label:""),className:(n.className?n.className:""),id:(n.id?n.id:""),value:(n.value?n.value:""),name:(n.name?n.name:""),placeholder:(n.placeholder?n.placeholder:"")});return o},f=function(n){var m,o;m=a(d.checkbox);o=m({text:(n.text?n.text:""),className:(n.className?n.className:""),id:(n.id?n.id:""),name:(n.name?n.name:"")});return o},j=function(o){var m,n;m=a(d.textarea);n=m({label:(o.label?o.label:""),className:(o.className?o.className:""),id:(o.id?o.id:""),value:(o.value?o.value:""),placeholder:(o.placeholder?o.placeholder:"")});return n},g=function(m){var n=0,o=m.length||0,p,q="",r;for(;n';l.templates[e.checkbox]='
                  ';l.templates[e.message]='
                  #= text #
                  ';l.templates[e.textInput]='
                  ';l.templates[e.textarea]='
                  '})(atlas);(function(){atlas.collections||(atlas.collections={});var b;function e(f){f||(f={});b||(b=new atlas.Logger("atlas.collections.bufferedCollection"));this.size=f.size;this.source=[];f.bufferSize&&(this.bufferSize=f.bufferSize);atlas.isFunction(f.fetchItem)&&(this.fetchItem=f.fetchItem)}e.prototype.size=0;e.prototype.source=null;e.prototype.bufferSize=0;e.prototype.fetchItem=null;e.prototype.getItemAt=function(f){var i,h,g=this.size;if(f<0||f>=g){return Promise.reject(new Error(atlas.format("Index {0} out of bounds",[f])))}if(this.hasItemAt(f)){h=this.source[f];i=atlas.isPromise(h)?h:Promise.resolve(h)}else{if(this.fetchItem){i=d.call(this,f)}}c.call(this,f);return i};function a(f){return function(g){this.setItemAt(f,g);return g}.bind(this)}function c(g){var f=1,k=this.size,j=this.bufferSize,h;for(;f<=j;f+=1){h=g-f;if(h>-1&&!this.hasItemAt(h)){d.call(this,h)}h=g+f;if(h=0&&c