vendor: 5,312 bytes, line 1
1!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define(factory):global.moment=factory()}(this,(function(){"use strict";var hookCallback,some;function hooks(){return hookCallback.apply(null,arguments)}function isArray(input){return input instanceof Array||"[object Array]"===Object.prototype.toString.call(input)}function isObject(input){return null!=input&&"[object Object]"===Object.prototype.toString.call(input)}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function isObjectEmpty(obj){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(obj).length;var k;for(k in obj)if(hasOwnProp(obj,k))return!1;return!0}function isUndefined(input){return void 0===input}function isNumber(input){return"number"==typeof input||"[object Number]"===Object.prototype.toString.call(input)}function isDate(input){return input instanceof Date||"[object Date]"===Object.prototype.toString.call(input)}function map(arr,fn){var i,res=[];for(i=0;i<arr.length;++i)res.push(fn(arr[i],i));return res}function extend(a,b){for(var i in b)hasOwnProp(b,i)&&(a[i]=b[i]);return hasOwnProp(b,"toString")&&(a.toString=b.toString),hasOwnProp(b,"valueOf")&&(a.valueOf=b.valueOf),a}function createUTC(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,!0).utc()}function getParsingFlags(m){return null==m._pf&&(m._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),m._pf}function isValid(m){if(null==m._isValid){var flags=getParsingFlags(m),parsedParts=some.call(flags.parsedDateParts,(function(i){return null!=i})),isNowValid=!isNaN(m._d.getTime())&&flags.overflow<0&&!flags.empty&&!flags.invalidEra&&!flags.invalidMonth&&!flags.invalidWeekday&&!flags.weekdayMismatch&&!flags.nullInput&&!flags.invalidFormat&&!flags.userInvalidated&&(!flags.meridiem||flags.meridiem&&parsedParts);if(m._strict&&(isNowValid=isNowValid&&0===flags.charsLeftOver&&0===flags.unusedTokens.length&&void 0===flags.bigHour),null!=Object.isFrozen&&Object.isFrozen(m))return isNowValid;m._isValid=isNowValid}return m._isValid}function createInvalid(flags){var m=createUTC(NaN);return null!=flags?extend(getParsingFlags(m),flags):getParsingFlags(m).userInvalidated=!0,m}some=Array.prototype.some?Array.prototype.some:function(fun){var i,t=Object(this),len=t.length>>>0;for(i=0;i<len;i++)if(i in t&&fun.call(this,t[i],i,t))return!0;return!1};var momentProperties=hooks.momentProperties=[],updateInProgress=!1;function copyConfig(to,from){var i,prop,val;if(isUndefined(from._isAMomentObject)||(to._isAMomentObject=from._isAMomentObject),isUndefined(from._i)||(to._i=from._i),isUndefined(from._f)||(to._f=from._f),isUndefined(from._l)||(to._l=from._l),isUndefined(from._strict)||(to._strict=from._strict),isUndefined(from._tzm)||(to._tzm=from._tzm),isUndefined(from._isUTC)||(to._isUTC=from._isUTC),isUndefined(from._offset)||(to._offset=from._offset),isUndefined(from._pf)||(to._pf=getParsingFlags(from)),isUndefined(from._locale)||(to._locale=from._locale),momentProperties.length>0)for(i=0;i<momentProperties.length;i++)isUndefined(val=from[prop=momentProperties[i]])||(to[prop]=val);return to}function Moment(config){copyConfig(this,config),this._d=new Date(null!=config._d?config._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===updateInProgress&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(obj){return obj instanceof Moment||null!=obj&&null!=obj._isAMomentObject}function warn(msg){!1===hooks.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+msg)}function deprecate(msg,fn){var firstTime=!0;return extend((function(){if(null!=hooks.deprecationHandler&&hooks.deprecationHandler(null,msg),firstTime){var arg,i,key,args=[];for(i=0;i<arguments.length;i++){if(arg="","object"==typeof arguments[i]){for(key in arg+="\n["+i+"] ",arguments[0])hasOwnProp(arguments[0],key)&&(arg+=key+": "+arguments[0][key]+", ");arg=arg.slice(0,-2)}else arg=arguments[i];args.push(arg)}warn(msg+"\nArguments: "+Array.prototype.slice.call(args).join("")+"\n"+(new Error).stack),firstTime=!1}return fn.apply(this,arguments)}),fn)}var keys,deprecations={};function deprecateSimple(name,msg){null!=hooks.deprecationHandler&&hooks.deprecationHandler(name,msg),deprecations[name]||(warn(msg),deprecations[name]=!0)}function isFunction(input){return"undefined"!=typeof Function&&input instanceof Function||"[object Function]"===Object.prototype.toString.call(input)}function mergeConfigs(parentConfig,childConfig){var prop,res=extend({},parentConfig);for(prop in childConfig)hasOwnProp(childConfig,prop)&&(isObject(parentConfig[prop])&&isObject(childConfig[prop])?(res[prop]={},extend(res[prop],parentConfig[prop]),extend(res[prop],childConfig[prop])):null!=childConfig[prop]?res[prop]=childConfig[prop]:delete res[prop]);for(prop in parentConfig)hasOwnProp(parentConfig,prop)&&!hasOwnProp(childConfig,prop)&&isObject(parentConfig[prop])&&(res[prop]=extend({},res[prop]));return res}function Locale(config){null!=config&&this.set(config)}
vendor: 8,851 bytes, line 1
1hooks.suppressDeprecationWarnings=!1,hooks.deprecationHandler=null,keys=Object.keys?Object.keys:function(obj){var i,res=[];for(i in obj)hasOwnProp(obj,i)&&res.push(i);return res};function zeroFill(number,targetLength,forceSign){var absNumber=""+Math.abs(number),zerosToFill=targetLength-absNumber.length;return(number>=0?forceSign?"+":"":"-")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(token,padded,ordinal,callback){var func=callback;"string"==typeof callback&&(func=function(){return this[callback]()}),token&&(formatTokenFunctions[token]=func),padded&&(formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}),ordinal&&(formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token)})}function formatMoment(m,format){return m.isValid()?(format=expandFormat(format,m.localeData()),formatFunctions[format]=formatFunctions[format]||function makeFormatFunction(format){var i,length,input,array=format.match(formattingTokens);for(i=0,length=array.length;i<length;i++)formatTokenFunctions[array[i]]?array[i]=formatTokenFunctions[array[i]]:array[i]=(input=array[i]).match(/\[[\s\S]/)?input.replace(/^\[|\]$/g,""):input.replace(/\\/g,"");return function(mom){var i,output="";for(i=0;i<length;i++)output+=isFunction(array[i])?array[i].call(mom,format):array[i];return output}}(format),formatFunctions[format](m)):m.localeData().invalidDate()}function expandFormat(format,locale){var i=5;function replaceLongDateFormatTokens(input){return locale.longDateFormat(input)||input}for(localFormattingTokens.lastIndex=0;i>=0&&localFormattingTokens.test(format);)format=format.replace(localFormattingTokens,replaceLongDateFormatTokens),localFormattingTokens.lastIndex=0,i-=1;return format}var aliases={};function addUnitAlias(unit,shorthand){var lowerCase=unit.toLowerCase();aliases[lowerCase]=aliases[lowerCase+"s"]=aliases[shorthand]=unit}function normalizeUnits(units){return"string"==typeof units?aliases[units]||aliases[units.toLowerCase()]:void 0}function normalizeObjectUnits(inputObject){var normalizedProp,prop,normalizedInput={};for(prop in inputObject)hasOwnProp(inputObject,prop)&&(normalizedProp=normalizeUnits(prop))&&(normalizedInput[normalizedProp]=inputObject[prop]);return normalizedInput}var priorities={};function addUnitPriority(unit,priority){priorities[unit]=priority}function isLeapYear(year){return year%4==0&&year%100!=0||year%400==0}function absFloor(number){return number<0?Math.ceil(number)||0:Math.floor(number)}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;return 0!==coercedNumber&&isFinite(coercedNumber)&&(value=absFloor(coercedNumber)),value}function makeGetSet(unit,keepTime){return function(value){return null!=value?(set$1(this,unit,value),hooks.updateOffset(this,keepTime),this):get(this,unit)}}function get(mom,unit){return mom.isValid()?mom._d["get"+(mom._isUTC?"UTC":"")+unit]():NaN}function set$1(mom,unit,value){mom.isValid()&&!isNaN(value)&&("FullYear"===unit&&isLeapYear(mom.year())&&1===mom.month()&&29===mom.date()?(value=toInt(value),mom._d["set"+(mom._isUTC?"UTC":"")+unit](value,mom.month(),daysInMonth(value,mom.month()))):mom._d["set"+(mom._isUTC?"UTC":"")+unit](value))}var regexes,match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token,config){return hasOwnProp(regexes,token)?regexes[token](config._strict,config._locale):new RegExp(function unescapeFormat(s){return regexEscape(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(matched,p1,p2,p3,p4){return p1||p2||p3||p4})))}(token))}function regexEscape(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}regexes={};var tokens={};function addParseToken(token,callback){var i,func=callback;for("string"==typeof token&&(token=[token]),isNumber(callback)&&(func=function(input,array){array[callback]=toInt(input)}),i=0;i<token.length;i++)tokens[token[i]]=func}function addWeekParseToken(token,callback){addParseToken(token,(function(input,array,config,token){config._w=config._w||{},callback(input,config._w,config,token)}))}function addTimeToArrayFromToken(token,input,config){null!=input&&hasOwnProp(tokens,token)&&tokens[token](input,config._a,config,token)}var indexOf;function daysInMonth(year,month){if(isNaN(year)||isNaN(month))return NaN;var modMonth=function mod(n,x){return(n%x+x)%x}(month,12);return year+=(month-modMonth)/12,1===modMonth?isLeapYear(year)?29:28:31-modMonth%7%2}indexOf=Array.prototype.indexOf?Array.prototype.indexOf:function(o){var i;for(i=0;i<this.length;++i)if(this[i]===o)return i;return-1},addFormatToken("M",["MM",2],"Mo",(function(){return this.month()+1})),addFormatToken("MMM",0,0,(function(format){return this.localeData().monthsShort(this,format)})),addFormatToken("MMMM",0,0,(function(format){return this.localeData().months(this,format)})),addUnitAlias("month","M"),addUnitPriority("month",8),addRegexToken("M",match1to2),addRegexToken("MM",match1to2,match2),addRegexToken("MMM",(function(isStrict,locale){return locale.monthsShortRegex(isStrict)})),addRegexToken("MMMM",(function(isStrict,locale){return locale.monthsRegex(isStrict)})),addParseToken(["M","MM"],(function(input,array){array[1]=toInt(input)-1})),addParseToken(["MMM","MMMM"],(function(input,array,config,token){var month=config._locale.monthsParse(input,token,config._strict);null!=month?array[1]=month:getParsingFlags(config).invalidMonth=input}));var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function handleStrictParse(monthName,format,strict){var i,ii,mom,llc=monthName.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)mom=createUTC([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(mom,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(mom,"").toLocaleLowerCase();return strict?"MMM"===format?-1!==(ii=indexOf.call(this._shortMonthsParse,llc))?ii:null:-1!==(ii=indexOf.call(this._longMonthsParse,llc))?ii:null:"MMM"===format?-1!==(ii=indexOf.call(this._shortMonthsParse,llc))||-1!==(ii=indexOf.call(this._longMonthsParse,llc))?ii:null:-1!==(ii=indexOf.call(this._longMonthsParse,llc))||-1!==(ii=indexOf.call(this._shortMonthsParse,llc))?ii:null}function setMonth(mom,value){var dayOfMonth;if(!mom.isValid())return mom;if("string"==typeof value)if(/^\d+$/.test(value))value=toInt(value);else if(!isNumber(value=mom.localeData().monthsParse(value)))return mom;return dayOfMonth=Math.min(mom.date(),daysInMonth(mom.year(),value)),mom._d["set"+(mom._isUTC?"UTC":"")+"Month"](value,dayOfMonth),mom}function getSetMonth(value){return null!=value?(setMonth(this,value),hooks.updateOffset(this,!0),this):get(this,"Month")}function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length}var i,mom,shortPieces=[],longPieces=[],mixedPieces=[];for(i=0;i<12;i++)mom=createUTC([2e3,i]),shortPieces.push(this.monthsShort(mom,"")),longPieces.push(this.months(mom,"")),mixedPieces.push(this.months(mom,"")),mixedPieces.push(this.monthsShort(mom,""));for(shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),i=0;i<12;i++)shortPieces[i]=regexEscape(shortPieces[i]),longPieces[i]=regexEscape(longPieces[i]);for(i=0;i<24;i++)mixedPieces[i]=regexEscape(mixedPieces[i]);this._monthsRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+longPieces.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i")}function daysInYear(year){return isLeapYear(year)?366:365}
vendor: 15,117 bytes, line 1
1addFormatToken("Y",0,0,(function(){var y=this.year();return y<=9999?zeroFill(y,4):"+"+y})),addFormatToken(0,["YY",2],0,(function(){return this.year()%100})),addFormatToken(0,["YYYY",4],0,"year"),addFormatToken(0,["YYYYY",5],0,"year"),addFormatToken(0,["YYYYYY",6,!0],0,"year"),addUnitAlias("year","y"),addUnitPriority("year",1),addRegexToken("Y",matchSigned),addRegexToken("YY",match1to2,match2),addRegexToken("YYYY",match1to4,match4),addRegexToken("YYYYY",match1to6,match6),addRegexToken("YYYYYY",match1to6,match6),addParseToken(["YYYYY","YYYYYY"],0),addParseToken("YYYY",(function(input,array){array[0]=2===input.length?hooks.parseTwoDigitYear(input):toInt(input)})),addParseToken("YY",(function(input,array){array[0]=hooks.parseTwoDigitYear(input)})),addParseToken("Y",(function(input,array){array[0]=parseInt(input,10)})),hooks.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function createDate(y,m,d,h,M,s,ms){var date;return y<100&&y>=0?(date=new Date(y+400,m,d,h,M,s,ms),isFinite(date.getFullYear())&&date.setFullYear(y)):date=new Date(y,m,d,h,M,s,ms),date}function createUTCDate(y){var date,args;return y<100&&y>=0?((args=Array.prototype.slice.call(arguments))[0]=y+400,date=new Date(Date.UTC.apply(null,args)),isFinite(date.getUTCFullYear())&&date.setUTCFullYear(y)):date=new Date(Date.UTC.apply(null,arguments)),date}function firstWeekOffset(year,dow,doy){var fwd=7+dow-doy;return-((7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7)+fwd-1}function dayOfYearFromWeeks(year,week,weekday,dow,doy){var resYear,resDayOfYear,dayOfYear=1+7*(week-1)+(7+weekday-dow)%7+firstWeekOffset(year,dow,doy);return dayOfYear<=0?resDayOfYear=daysInYear(resYear=year-1)+dayOfYear:dayOfYear>daysInYear(year)?(resYear=year+1,resDayOfYear=dayOfYear-daysInYear(year)):(resYear=year,resDayOfYear=dayOfYear),{year:resYear,dayOfYear:resDayOfYear}}function weekOfYear(mom,dow,doy){var resWeek,resYear,weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1;return week<1?resWeek=week+weeksInYear(resYear=mom.year()-1,dow,doy):week>weeksInYear(mom.year(),dow,doy)?(resWeek=week-weeksInYear(mom.year(),dow,doy),resYear=mom.year()+1):(resYear=mom.year(),resWeek=week),{week:resWeek,year:resYear}}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return(daysInYear(year)-weekOffset+weekOffsetNext)/7}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",match1to2),addRegexToken("ww",match1to2,match2),addRegexToken("W",match1to2),addRegexToken("WW",match1to2,match2),addWeekParseToken(["w","ww","W","WW"],(function(input,week,config,token){week[token.substr(0,1)]=toInt(input)}));function shiftWeekdays(ws,n){return ws.slice(n,7).concat(ws.slice(0,n))}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,(function(format){return this.localeData().weekdaysMin(this,format)})),addFormatToken("ddd",0,0,(function(format){return this.localeData().weekdaysShort(this,format)})),addFormatToken("dddd",0,0,(function(format){return this.localeData().weekdays(this,format)})),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",match1to2),addRegexToken("e",match1to2),addRegexToken("E",match1to2),addRegexToken("dd",(function(isStrict,locale){return locale.weekdaysMinRegex(isStrict)})),addRegexToken("ddd",(function(isStrict,locale){return locale.weekdaysShortRegex(isStrict)})),addRegexToken("dddd",(function(isStrict,locale){return locale.weekdaysRegex(isStrict)})),addWeekParseToken(["dd","ddd","dddd"],(function(input,week,config,token){var weekday=config._locale.weekdaysParse(input,token,config._strict);null!=weekday?week.d=weekday:getParsingFlags(config).invalidWeekday=input})),addWeekParseToken(["d","e","E"],(function(input,week,config,token){week[token]=toInt(input)}));var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function handleStrictParse$1(weekdayName,format,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)mom=createUTC([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(mom,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(mom,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(mom,"").toLocaleLowerCase();return strict?"dddd"===format?-1!==(ii=indexOf.call(this._weekdaysParse,llc))?ii:null:"ddd"===format?-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:null:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:null:"dddd"===format?-1!==(ii=indexOf.call(this._weekdaysParse,llc))||-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))||-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:null:"ddd"===format?-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))||-1!==(ii=indexOf.call(this._weekdaysParse,llc))||-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:null:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))||-1!==(ii=indexOf.call(this._weekdaysParse,llc))||-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:null}function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length}var i,mom,minp,shortp,longp,minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[];for(i=0;i<7;i++)mom=createUTC([2e3,1]).day(i),minp=regexEscape(this.weekdaysMin(mom,"")),shortp=regexEscape(this.weekdaysShort(mom,"")),longp=regexEscape(this.weekdays(mom,"")),minPieces.push(minp),shortPieces.push(shortp),longPieces.push(longp),mixedPieces.push(minp),mixedPieces.push(shortp),mixedPieces.push(longp);minPieces.sort(cmpLenRev),shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),this._weekdaysRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+longPieces.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+minPieces.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function meridiem(token,lowercase){addFormatToken(token,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase)}))}function matchMeridiem(isStrict,locale){return locale._meridiemParse}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,(function kFormat(){return this.hours()||24})),addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)})),addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)})),addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",match1to2),addRegexToken("h",match1to2),addRegexToken("k",match1to2),addRegexToken("HH",match1to2,match2),addRegexToken("hh",match1to2,match2),addRegexToken("kk",match1to2,match2),addRegexToken("hmm",match3to4),addRegexToken("hmmss",match5to6),addRegexToken("Hmm",match3to4),addRegexToken("Hmmss",match5to6),addParseToken(["H","HH"],3),addParseToken(["k","kk"],(function(input,array,config){var kInput=toInt(input);array[3]=24===kInput?0:kInput})),addParseToken(["a","A"],(function(input,array,config){config._isPm=config._locale.isPM(input),config._meridiem=input})),addParseToken(["h","hh"],(function(input,array,config){array[3]=toInt(input),getParsingFlags(config).bigHour=!0})),addParseToken("hmm",(function(input,array,config){var pos=input.length-2;array[3]=toInt(input.substr(0,pos)),array[4]=toInt(input.substr(pos)),getParsingFlags(config).bigHour=!0})),addParseToken("hmmss",(function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[3]=toInt(input.substr(0,pos1)),array[4]=toInt(input.substr(pos1,2)),array[5]=toInt(input.substr(pos2)),getParsingFlags(config).bigHour=!0})),addParseToken("Hmm",(function(input,array,config){var pos=input.length-2;array[3]=toInt(input.substr(0,pos)),array[4]=toInt(input.substr(pos))})),addParseToken("Hmmss",(function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[3]=toInt(input.substr(0,pos1)),array[4]=toInt(input.substr(pos1,2)),array[5]=toInt(input.substr(pos2))}));var getSetHour=makeGetSet("Hours",!0);var globalLocale,baseConfig={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:{dow:0,doy:6},weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:/[ap]\.?m?\.?/i},locales={},localeFamilies={};function commonPrefix(arr1,arr2){var i,minl=Math.min(arr1.length,arr2.length);for(i=0;i<minl;i+=1)if(arr1[i]!==arr2[i])return i;return minl}function normalizeLocale(key){return key?key.toLowerCase().replace("_","-"):key}function loadLocale(name){var oldLocale=null;if(void 0===locales[name]&&"undefined"!=typeof module&&module&&module.exports)try{oldLocale=globalLocale._abbr,require("./locale/"+name),getSetGlobalLocale(oldLocale)}catch(e){locales[name]=null}return locales[name]}function getSetGlobalLocale(key,values){var data;return key&&((data=isUndefined(values)?getLocale(key):defineLocale(key,values))?globalLocale=data:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+key+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(name,config){if(null!==config){var locale,parentConfig=baseConfig;if(config.abbr=name,null!=locales[name])deprecateSimple("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."),parentConfig=locales[name]._config;else if(null!=config.parentLocale)if(null!=locales[config.parentLocale])parentConfig=locales[config.parentLocale]._config;else{if(null==(locale=loadLocale(config.parentLocale)))return localeFamilies[config.parentLocale]||(localeFamilies[config.parentLocale]=[]),localeFamilies[config.parentLocale].push({name:name,config:config}),null;parentConfig=locale._config}return locales[name]=new Locale(mergeConfigs(parentConfig,config)),localeFamilies[name]&&localeFamilies[name].forEach((function(x){defineLocale(x.name,x.config)})),getSetGlobalLocale(name),locales[name]}return delete locales[name],null}function getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr&&(key=key._locale._abbr),!key)return globalLocale;if(!isArray(key)){if(locale=loadLocale(key))return locale;key=[key]}return function chooseLocale(names){for(var j,next,locale,split,i=0;i<names.length;){for(j=(split=normalizeLocale(names[i]).split("-")).length,next=(next=normalizeLocale(names[i+1]))?next.split("-"):null;j>0;){if(locale=loadLocale(split.slice(0,j).join("-")))return locale;if(next&&next.length>=j&&commonPrefix(split,next)>=j-1)break;j--}i++}return globalLocale}(key)}function checkOverflow(m){var overflow,a=m._a;return a&&-2===getParsingFlags(m).overflow&&(overflow=a[1]<0||a[1]>11?1:a[2]<1||a[2]>daysInMonth(a[0],a[1])?2:a[3]<0||a[3]>24||24===a[3]&&(0!==a[4]||0!==a[5]||0!==a[6])?3:a[4]<0||a[4]>59?4:a[5]<0||a[5]>59?5:a[6]<0||a[6]>999?6:-1,getParsingFlags(m)._overflowDayOfYear&&(overflow<0||overflow>2)&&(overflow=2),getParsingFlags(m)._overflowWeeks&&-1===overflow&&(overflow=7),getParsingFlags(m)._overflowWeekday&&-1===overflow&&(overflow=8),getParsingFlags(m).overflow=overflow),m}var extendedIsoRegex=/^\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)?)?$/,basicIsoRegex=/^\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)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["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}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["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/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function configFromISO(config){var i,l,allowTime,dateFormat,timeFormat,tzFormat,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string);if(match){for(getParsingFlags(config).iso=!0,i=0,l=isoDates.length;i<l;i++)if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0],allowTime=!1!==isoDates[i][2];break}if(null==dateFormat)return void(config._isValid=!1);if(match[3]){for(i=0,l=isoTimes.length;i<l;i++)if(isoTimes[i][1].exec(match[3])){timeFormat=(match[2]||" ")+isoTimes[i][0];break}if(null==timeFormat)return void(config._isValid=!1)}if(!allowTime&&null!=timeFormat)return void(config._isValid=!1);if(match[4]){if(!tzRegex.exec(match[4]))return void(config._isValid=!1);tzFormat="Z"}config._f=dateFormat+(timeFormat||"")+(tzFormat||""),configFromStringAndFormat(config)}
vendor: 5,087 bytes, lines 1-2
1else config._isValid=!1}function untruncateYear(yearStr){var year=parseInt(yearStr,10);return year<=49?2e3+year:year<=999?1900+year:year}function configFromRFC2822(config){var parsedArray,match=rfc2822.exec(function preprocessRFC2822(s){return s.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(config._i));if(match){if(parsedArray=function extractFromRFC2822Strings(yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){var result=[untruncateYear(yearStr),defaultLocaleMonthsShort.indexOf(monthStr),parseInt(dayStr,10),parseInt(hourStr,10),parseInt(minuteStr,10)];return secondStr&&result.push(parseInt(secondStr,10)),result}(match[4],match[3],match[2],match[5],match[6],match[7]),!function checkWeekday(weekdayStr,parsedInput,config){return!weekdayStr||defaultLocaleWeekdaysShort.indexOf(weekdayStr)===new Date(parsedInput[0],parsedInput[1],parsedInput[2]).getDay()||(getParsingFlags(config).weekdayMismatch=!0,config._isValid=!1,!1)}(match[1],parsedArray,config))return;config._a=parsedArray,config._tzm=function calculateOffset(obsOffset,militaryOffset,numOffset){if(obsOffset)return obsOffsets[obsOffset];if(militaryOffset)return 0;var hm=parseInt(numOffset,10),m=hm%100;return(hm-m)/100*60+m}(match[8],match[9],match[10]),config._d=createUTCDate.apply(null,config._a),config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm),getParsingFlags(config).rfc2822=!0}else config._isValid=!1}function defaults(a,b,c){return null!=a?a:null!=b?b:c}function configFromArray(config){var i,date,currentDate,expectedWeekday,yearToUse,input=[];if(!config._d){for(currentDate=function currentDateArray(config){var nowValue=new Date(hooks.now());return config._useUTC?[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()]:[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()]}(config),config._w&&null==config._a[2]&&null==config._a[1]&&function dayOfYearFromWeekInfo(config){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow,curWeek;null!=(w=config._w).GG||null!=w.W||null!=w.E?(dow=1,doy=4,weekYear=defaults(w.GG,config._a[0],weekOfYear(createLocal(),1,4).year),week=defaults(w.W,1),((weekday=defaults(w.E,1))<1||weekday>7)&&(weekdayOverflow=!0)):(dow=config._locale._week.dow,doy=config._locale._week.doy,curWeek=weekOfYear(createLocal(),dow,doy),weekYear=defaults(w.gg,config._a[0],curWeek.year),week=defaults(w.w,curWeek.week),null!=w.d?((weekday=w.d)<0||weekday>6)&&(weekdayOverflow=!0):null!=w.e?(weekday=w.e+dow,(w.e<0||w.e>6)&&(weekdayOverflow=!0)):weekday=dow) 2;week<1||week>weeksInYear(weekYear,dow,doy)?getParsingFlags(config)._overflowWeeks=!0:null!=weekdayOverflow?getParsingFlags(config)._overflowWeekday=!0:(temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),config._a[0]=temp.year,config._dayOfYear=temp.dayOfYear)}(config),null!=config._dayOfYear&&(yearToUse=defaults(config._a[0],currentDate[0]),(config._dayOfYear>daysInYear(yearToUse)||0===config._dayOfYear)&&(getParsingFlags(config)._overflowDayOfYear=!0),date=createUTCDate(yearToUse,0,config._dayOfYear),config._a[1]=date.getUTCMonth(),config._a[2]=date.getUTCDate()),i=0;i<3&&null==config._a[i];++i)config._a[i]=input[i]=currentDate[i];for(;i<7;i++)config._a[i]=input[i]=null==config._a[i]?2===i?1:0:config._a[i];24===config._a[3]&&0===config._a[4]&&0===config._a[5]&&0===config._a[6]&&(config._nextDay=!0,config._a[3]=0),config._d=(config._useUTC?createUTCDate:createDate).apply(null,input),expectedWeekday=config._useUTC?config._d.getUTCDay():config._d.getDay(),null!=config._tzm&&config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm),config._nextDay&&(config._a[3]=24),config._w&&void 0!==config._w.d&&config._w.d!==expectedWeekday&&(getParsingFlags(config).weekdayMismatch=!0)}}function configFromStringAndFormat(config){if(config._f!==hooks.ISO_8601)if(config._f!==hooks.RFC_2822){config._a=[],getParsingFlags(config).empty=!0;var i,parsedInput,tokens,token,skipped,era,string=""+config._i,stringLength=string.length,totalParsedInputLength=0;for(tokens=expandFormat(config._f,config._locale).match(formattingTokens)||[],i=0;i<tokens.length;i++)token=tokens[i],(parsedInput=(string.match(getParseRegexForToken(token,config))||[])[0])&&((skipped=string.substr(0,string.indexOf(parsedInput))).length>0&&getParsingFlags(config).unusedInput.push(skipped),string=string.slice(string.indexOf(parsedInput)+parsedInput.length),totalParsedInputLength+=parsedInput.length),formatTokenFunctions[token]?(parsedInput?getParsingFlags(config).empty=!1:getParsingFlags(config).unusedTokens.push(token),addTimeToArrayFromToken(token,parsedInput,config)):config._strict&&!parsedInput&&getParsingFlags(config).unusedTokens.push(token);getParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength,string.length>0&&getParsingFlags(config).unusedInput.push(string),config._a[3]<=12&&!0===getParsingFlags(config).bigHour&&config._a[3]>0&&(getParsingFlags(config).bigHour=void 0),getParsingFlags(config).parsedDateParts=config._a.slice(0),getParsingFlags(config).meridiem=config._meridiem,config._a[3]=function meridiemFixWra
vendor: 5,432 bytes, line 2
2p(locale,hour,meridiem){var isPm;if(null==meridiem)return hour;return null!=locale.meridiemHour?locale.meridiemHour(hour,meridiem):null!=locale.isPM?((isPm=locale.isPM(meridiem))&&hour<12&&(hour+=12),isPm||12!==hour||(hour=0),hour):hour}(config._locale,config._a[3],config._meridiem),null!==(era=getParsingFlags(config).era)&&(config._a[0]=config._locale.erasConvertYear(era,config._a[0])),configFromArray(config),checkOverflow(config)}else configFromRFC2822(config);else configFromISO(config)}function prepareConfig(config){var input=config._i,format=config._f;return config._locale=config._locale||getLocale(config._l),null===input||void 0===format&&""===input?createInvalid({nullInput:!0}):("string"==typeof input&&(config._i=input=config._locale.preparse(input)),isMoment(input)?new Moment(checkOverflow(input)):(isDate(input)?config._d=input:isArray(format)?function configFromStringAndArray(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore,validFormatFound,bestFormatIsValid=!1;if(0===config._f.length)return getParsingFlags(config).invalidFormat=!0,void(config._d=new Date(NaN));for(i=0;i<config._f.length;i++)currentScore=0,validFormatFound=!1,tempConfig=copyConfig({},config),null!=config._useUTC&&(tempConfig._useUTC=config._useUTC),tempConfig._f=config._f[i],configFromStringAndFormat(tempConfig),isValid(tempConfig)&&(validFormatFound=!0),currentScore+=getParsingFlags(tempConfig).charsLeftOver,currentScore+=10*getParsingFlags(tempConfig).unusedTokens.length,getParsingFlags(tempConfig).score=currentScore,bestFormatIsValid?currentScore<scoreToBeat&&(scoreToBeat=currentScore,bestMoment=tempConfig):(null==scoreToBeat||currentScore<scoreToBeat||validFormatFound)&&(scoreToBeat=currentScore,bestMoment=tempConfig,validFormatFound&&(bestFormatIsValid=!0));extend(config,bestMoment||tempConfig)}(config):format?configFromStringAndFormat(config):function configFromInput(config){var input=config._i;isUndefined(input)?config._d=new Date(hooks.now()):isDate(input)?config._d=new Date(input.valueOf()):"string"==typeof input?function configFromString(config){var matched=aspNetJsonRegex.exec(config._i);null===matched?(configFromISO(config),!1===config._isValid&&(delete config._isValid,configFromRFC2822(config),!1===config._isValid&&(delete config._isValid,config._strict?config._isValid=!1:hooks.createFromInputFallback(config)))):config._d=new Date(+matched[1])}(config):isArray(input)?(config._a=map(input.slice(0),(function(obj){return parseInt(obj,10)})),configFromArray(config)):isObject(input)?function configFromObject(config){if(!config._d){var i=normalizeObjectUnits(config._i),dayOrDate=void 0===i.day?i.date:i.day;config._a=map([i.year,i.month,dayOrDate,i.hour,i.minute,i.second,i.millisecond],(function(obj){return obj&&parseInt(obj,10)})),configFromArray(config)}}(config):isNumber(input)?config._d=new Date(input):hooks.createFromInputFallback(config)}(config),isValid(config)||(config._d=null),config))}function createLocalOrUTC(input,format,locale,strict,isUTC){var c={};return!0!==format&&!1!==format||(strict=format,format=void 0),!0!==locale&&!1!==locale||(strict=locale,locale=void 0),(isObject(input)&&isObjectEmpty(input)||isArray(input)&&0===input.length)&&(input=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=isUTC,c._l=locale,c._i=input,c._f=format,c._strict=strict,function createFromConfig(config){var res=new Moment(checkOverflow(prepareConfig(config)));return res._nextDay&&(res.add(1,"d"),res._nextDay=void 0),res}(c)}function createLocal(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,!1)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/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(config){config._d=new Date(config._i+(config._useUTC?" UTC":""))})),hooks.ISO_8601=function(){},hooks.RFC_2822=function(){};var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var other=createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?other<this?this:other:createInvalid()})),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var other=createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?other>this?this:other:createInvalid()}));function pickBy(fn,moments){var res,i;if(1===moments.length&&isArray(moments[0])&&(moments=moments[0]),!moments.length)return createLocal();for(res=moments[0],i=1;i<moments.length;++i)moments[i].isValid()&&!moments[i][fn](res)||(res=moments[i]);return res}var ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Duration(duration){var normalizedInput=normalizeObjectUnits(duration),years=normalizedInput.year||0,quarters=normalizedInput.quarter||0,months=normalizedInput.month||0,weeks=normalizedInput.week||normalizedInput.isoWeek||0,days=normalizedInput.day||0,hours=normalizedInput.hour||0,minutes=normalizedInput.minute||0,seconds=normalizedInput.second||0,milliseconds=normalizedInput.millisecond||0;this._isValid=function isDurationValid(m){var key,i,unitHasDecimal=!1;
vendor: 4,828 bytes, line 2
2for(key in m)if(hasOwnProp(m,key)&&(-1===indexOf.call(ordering,key)||null!=m[key]&&isNaN(m[key])))return!1;for(i=0;i<ordering.length;++i)if(m[ordering[i]]){if(unitHasDecimal)return!1;parseFloat(m[ordering[i]])!==toInt(m[ordering[i]])&&(unitHasDecimal=!0)}return!0}(normalizedInput),this._milliseconds=+milliseconds+1e3*seconds+6e4*minutes+1e3*hours*60*60,this._days=+days+7*weeks,this._months=+months+3*quarters+12*years,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(obj){return obj instanceof Duration}function absRound(number){return number<0?-1*Math.round(-1*number):Math.round(number)}function offset(token,separator){addFormatToken(token,0,0,(function(){var offset=this.utcOffset(),sign="+";return offset<0&&(offset=-offset,sign="-"),sign+zeroFill(~~(offset/60),2)+separator+zeroFill(~~offset%60,2)}))}offset("Z",":"),offset("ZZ",""),addRegexToken("Z",matchShortOffset),addRegexToken("ZZ",matchShortOffset),addParseToken(["Z","ZZ"],(function(input,array,config){config._useUTC=!0,config._tzm=offsetFromString(matchShortOffset,input)}));var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(matcher,string){var parts,minutes,matches=(string||"").match(matcher);return null===matches?null:0===(minutes=60*(parts=((matches[matches.length-1]||[])+"").match(chunkOffset)||["-",0,0])[1]+toInt(parts[2]))?0:"+"===parts[0]?minutes:-minutes}function cloneWithOffset(input,model){var res,diff;return model._isUTC?(res=model.clone(),diff=(isMoment(input)||isDate(input)?input.valueOf():createLocal(input).valueOf())-res.valueOf(),res._d.setTime(res._d.valueOf()+diff),hooks.updateOffset(res,!1),res):createLocal(input).local()}function getDateOffset(m){return-Math.round(m._d.getTimezoneOffset())}function isUtc(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}hooks.updateOffset=function(){};var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(input,key){var sign,ret,diffRes,duration=input,match=null;return isDuration(input)?duration={ms:input._milliseconds,d:input._days,M:input._months}:isNumber(input)||!isNaN(+input)?(duration={},key?duration[key]=+input:duration.milliseconds=+input):(match=aspNetRegex.exec(input))?(sign="-"===match[1]?-1:1,duration={y:0,d:toInt(match[2])*sign,h:toInt(match[3])*sign,m:toInt(match[4])*sign,s:toInt(match[5])*sign,ms:toInt(absRound(1e3*match[6]))*sign}):(match=isoRegex.exec(input))?(sign="-"===match[1]?-1:1,duration={y:parseIso(match[2],sign),M:parseIso(match[3],sign),w:parseIso(match[4],sign),d:parseIso(match[5],sign),h:parseIso(match[6],sign),m:parseIso(match[7],sign),s:parseIso(match[8],sign)}):null==duration?duration={}:"object"==typeof duration&&("from"in duration||"to"in duration)&&(diffRes=function momentsDifference(base,other){var res;if(!base.isValid()||!other.isValid())return{milliseconds:0,months:0};other=cloneWithOffset(other,base),base.isBefore(other)?res=positiveMomentsDifference(base,other):((res=positiveMomentsDifference(other,base)).milliseconds=-res.milliseconds,res.months=-res.months);return res}(createLocal(duration.from),createLocal(duration.to)),(duration={}).ms=diffRes.milliseconds,duration.M=diffRes.months),ret=new Duration(duration),isDuration(input)&&hasOwnProp(input,"_locale")&&(ret._locale=input._locale),isDuration(input)&&hasOwnProp(input,"_isValid")&&(ret._isValid=input._isValid),ret}function parseIso(inp,sign){var res=inp&&parseFloat(inp.replace(",","."));return(isNaN(res)?0:res)*sign}function positiveMomentsDifference(base,other){var res={};return res.months=other.month()-base.month()+12*(other.year()-base.year()),base.clone().add(res.months,"M").isAfter(other)&&--res.months,res.milliseconds=+other-+base.clone().add(res.months,"M"),res}function createAdder(direction,name){return function(val,period){var tmp;return null===period||isNaN(+period)||(deprecateSimple(name,"moment()."+name+"(period, number) is deprecated. Please use moment()."+name+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),tmp=val,val=period,period=tmp),addSubtract(this,createDuration(val,period),direction),this}}function addSubtract(mom,duration,isAdding,updateOffset){var milliseconds=duration._milliseconds,days=absRound(duration._days),months=absRound(duration._months);mom.isValid()&&(updateOffset=null==updateOffset||updateOffset,months&&setMonth(mom,get(mom,"Month")+months*isAdding),days&&set$1(mom,"Date",get(mom,"Date")+days*isAdding),milliseconds&&mom._d.setTime(mom._d.valueOf()+milliseconds*isAdding),updateOffset&&hooks.updateOffset(mom,days||months))}createDuration.fn=Duration.prototype,createDuration.invalid=function createInvalid$
vendor: 5,430 bytes, line 2
21(){return createDuration(NaN)};var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString(input){return"string"==typeof input||input instanceof String}function isMomentInput(input){return isMoment(input)||isDate(input)||isString(input)||isNumber(input)||function isNumberOrStringArray(input){var arrayTest=isArray(input),dataTypeTest=!1;arrayTest&&(dataTypeTest=0===input.filter((function(item){return!isNumber(item)&&isString(input)})).length);return arrayTest&&dataTypeTest}(input)||function isMomentInputObject(input){var i,property,objectTest=isObject(input)&&!isObjectEmpty(input),propertyTest=!1,properties=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(i=0;i<properties.length;i+=1)property=properties[i],propertyTest=propertyTest||hasOwnProp(input,property);return objectTest&&propertyTest}(input)||null==input}function isCalendarSpec(input){var i,property,objectTest=isObject(input)&&!isObjectEmpty(input),propertyTest=!1,properties=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(i=0;i<properties.length;i+=1)property=properties[i],propertyTest=propertyTest||hasOwnProp(input,property);return objectTest&&propertyTest}function monthDiff(a,b){if(a.date()<b.date())return-monthDiff(b,a);var wholeMonthDiff=12*(b.year()-a.year())+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,"months");return-(wholeMonthDiff+(b-anchor<0?(b-anchor)/(anchor-a.clone().add(wholeMonthDiff-1,"months")):(b-anchor)/(a.clone().add(wholeMonthDiff+1,"months")-anchor)))||0}function locale(key){var newLocaleData;return void 0===key?this._locale._abbr:(null!=(newLocaleData=getLocale(key))&&(this._locale=newLocaleData),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(key){return void 0===key?this.localeData():this.locale(key)}));function localeData(){return this._locale}function mod$1(dividend,divisor){return(dividend%divisor+divisor)%divisor}function localStartOfDate(y,m,d){return y<100&&y>=0?new Date(y+400,m,d)-126227808e5:new Date(y,m,d).valueOf()}function utcStartOfDate(y,m,d){return y<100&&y>=0?Date.UTC(y+400,m,d)-126227808e5:Date.UTC(y,m,d)}function matchEraAbbr(isStrict,locale){return locale.erasAbbrRegex(isStrict)}function computeErasParse(){var i,l,abbrPieces=[],namePieces=[],narrowPieces=[],mixedPieces=[],eras=this.eras();for(i=0,l=eras.length;i<l;++i)namePieces.push(regexEscape(eras[i].name)),abbrPieces.push(regexEscape(eras[i].abbr)),narrowPieces.push(regexEscape(eras[i].narrow)),mixedPieces.push(regexEscape(eras[i].name)),mixedPieces.push(regexEscape(eras[i].abbr)),mixedPieces.push(regexEscape(eras[i].narrow));this._erasRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+namePieces.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+abbrPieces.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+narrowPieces.join("|")+")","i")}function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter)}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;return null==input?weekOfYear(this,dow,doy).year:(week>(weeksTarget=weeksInYear(input,dow,doy))&&(week=weeksTarget),setWeekAll.call(this,input,week,weekday,dow,doy))}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);return this.year(date.getUTCFullYear()),this.month(date.getUTCMonth()),this.date(date.getUTCDate()),this}addFormatToken("N",0,0,"eraAbbr"),addFormatToken("NN",0,0,"eraAbbr"),addFormatToken("NNN",0,0,"eraAbbr"),addFormatToken("NNNN",0,0,"eraName"),addFormatToken("NNNNN",0,0,"eraNarrow"),addFormatToken("y",["y",1],"yo","eraYear"),addFormatToken("y",["yy",2],0,"eraYear"),addFormatToken("y",["yyy",3],0,"eraYear"),addFormatToken("y",["yyyy",4],0,"eraYear"),addRegexToken("N",matchEraAbbr),addRegexToken("NN",matchEraAbbr),addRegexToken("NNN",matchEraAbbr),addRegexToken("NNNN",(function matchEraName(isStrict,locale){return locale.erasNameRegex(isStrict)})),addRegexToken("NNNNN",(function matchEraNarrow(isStrict,locale){return locale.erasNarrowRegex(isStrict)})),addParseToken(["N","NN","NNN","NNNN","NNNNN"],(function(input,array,config,token){var era=config._locale.erasParse(input,token,config._strict);era?getParsingFlags(config).era=era:getParsingFlags(config).invalidEra=input})),addRegexToken("y",matchUnsigned),addRegexToken("yy",matchUnsigned),addRegexToken("yyy",matchUnsigned),addRegexToken("yyyy",matchUnsigned),addRegexToken("yo",(function matchEraYearOrdinal(isStrict,locale){return locale._eraYearOrdinalRegex||matchUnsigned})),addParseToken(["y","yy","yyy","yyyy"],0),addParseToken(["yo"],(function(input,array,config,token){var match;config._locale._eraYearOrdinalRegex&&(match=input.match(config._locale._eraYearOrdinalRegex)),config._locale.eraYearOrdinalParse?array[0]=config._locale.eraYearOrdinalParse(input,match):array[0]=parseInt(input,10)})),addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100})),addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100}
vendor: 4,312 bytes, line 2
2)),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",matchSigned),addRegexToken("g",matchSigned),addRegexToken("GG",match1to2,match2),addRegexToken("gg",match1to2,match2),addRegexToken("GGGG",match1to4,match4),addRegexToken("gggg",match1to4,match4),addRegexToken("GGGGG",match1to6,match6),addRegexToken("ggggg",match1to6,match6),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(input,week,config,token){week[token.substr(0,2)]=toInt(input)})),addWeekParseToken(["gg","GG"],(function(input,week,config,token){week[token]=hooks.parseTwoDigitYear(input)})),addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",match1),addParseToken("Q",(function(input,array){array[1]=3*(toInt(input)-1)})),addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",match1to2),addRegexToken("DD",match1to2,match2),addRegexToken("Do",(function(isStrict,locale){return isStrict?locale._dayOfMonthOrdinalParse||locale._ordinalParse:locale._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],2),addParseToken("Do",(function(input,array){array[2]=toInt(input.match(match1to2)[0])}));var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",match1to3),addRegexToken("DDDD",match3),addParseToken(["DDD","DDDD"],(function(input,array,config){config._dayOfYear=toInt(input)})),addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",match1to2),addRegexToken("mm",match1to2,match2),addParseToken(["m","mm"],4);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",match1to2),addRegexToken("ss",match1to2,match2),addParseToken(["s","ss"],5);var token,getSetMillisecond,getSetSecond=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)})),addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),addFormatToken(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),addFormatToken(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),addFormatToken(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),addFormatToken(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),addFormatToken(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",match1to3,match1),addRegexToken("SS",match1to3,match2),addRegexToken("SSS",match1to3,match3),token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(input,array){array[6]=toInt(1e3*("0."+input))}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var proto=Moment.prototype;function preParsePostFormat(string){return string}proto.add=add,proto.calendar=function calendar$1(time,formats){1===arguments.length&&(isMomentInput(arguments[0])?(time=arguments[0],formats=void 0):isCalendarSpec(arguments[0])&&(formats=arguments[0],time=void 0));var now=time||createLocal(),sod=cloneWithOffset(now,this).startOf("day"),format=hooks.calendarFormat(this,sod)||"sameElse",output=formats&&(isFunction(formats[format])?formats[format].call(this,now):formats[format]);return this.format(output||this.localeData().calendar(format,this,createLocal(now)))},proto.clone=function clone(){return new Moment(this)},proto.diff=function diff(input,units,asFloat){var that,zoneDelta,output;if(!this.isValid())return NaN;if(!(that=cloneWithOffset(input,this)).isValid())return NaN;switch(zoneDelta=6e4*(that.utcOffset()-this.utcOffset()),units=normalizeUnits(units)
vendor: 2,435 bytes, line 2
2){case"year":output=monthDiff(this,that)/12;break;case"month":output=monthDiff(this,that);break;case"quarter":output=monthDiff(this,that)/3;break;case"second":output=(this-that)/1e3;break;case"minute":output=(this-that)/6e4;break;case"hour":output=(this-that)/36e5;break;case"day":output=(this-that-zoneDelta)/864e5;break;case"week":output=(this-that-zoneDelta)/6048e5;break;default:output=this-that}return asFloat?output:absFloor(output)},proto.endOf=function endOf(units){var time,startOfDate;if(void 0===(units=normalizeUnits(units))||"millisecond"===units||!this.isValid())return this;switch(startOfDate=this._isUTC?utcStartOfDate:localStartOfDate,units){case"year":time=startOfDate(this.year()+1,0,1)-1;break;case"quarter":time=startOfDate(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":time=startOfDate(this.year(),this.month()+1,1)-1;break;case"week":time=startOfDate(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":time=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":time=startOfDate(this.year(),this.month(),this.date()+1)-1;break;case"hour":time=this._d.valueOf(),time+=36e5-mod$1(time+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":time=this._d.valueOf(),time+=6e4-mod$1(time,6e4)-1;break;case"second":time=this._d.valueOf(),time+=1e3-mod$1(time,1e3)-1}return this._d.setTime(time),hooks.updateOffset(this,!0),this},proto.format=function format(inputString){inputString||(inputString=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var output=formatMoment(this,inputString);return this.localeData().postformat(output)},proto.from=function from(time,withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())?createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()},proto.fromNow=function fromNow(withoutSuffix){return this.from(createLocal(),withoutSuffix)},proto.to=function to(time,withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())?createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()},proto.toNow=function toNow(withoutSuffix){return this.to(createLocal(),withoutSuffix)},proto.get=function stringGet(units){return isFunction(this[units=normalizeUnits(units)])?this[units]():this}
vendor: 4,428 bytes, line 2
2,proto.invalidAt=function invalidAt(){return getParsingFlags(this).overflow},proto.isAfter=function isAfter(input,units){var localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&("millisecond"===(units=normalizeUnits(units)||"millisecond")?this.valueOf()>localInput.valueOf():localInput.valueOf()<this.clone().startOf(units).valueOf())},proto.isBefore=function isBefore(input,units){var localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&("millisecond"===(units=normalizeUnits(units)||"millisecond")?this.valueOf()<localInput.valueOf():this.clone().endOf(units).valueOf()<localInput.valueOf())},proto.isBetween=function isBetween(from,to,units,inclusivity){var localFrom=isMoment(from)?from:createLocal(from),localTo=isMoment(to)?to:createLocal(to);return!!(this.isValid()&&localFrom.isValid()&&localTo.isValid())&&(("("===(inclusivity=inclusivity||"()")[0]?this.isAfter(localFrom,units):!this.isBefore(localFrom,units))&&(")"===inclusivity[1]?this.isBefore(localTo,units):!this.isAfter(localTo,units)))},proto.isSame=function isSame(input,units){var inputMs,localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&("millisecond"===(units=normalizeUnits(units)||"millisecond")?this.valueOf()===localInput.valueOf():(inputMs=localInput.valueOf(),this.clone().startOf(units).valueOf()<=inputMs&&inputMs<=this.clone().endOf(units).valueOf()))},proto.isSameOrAfter=function isSameOrAfter(input,units){return this.isSame(input,units)||this.isAfter(input,units)},proto.isSameOrBefore=function isSameOrBefore(input,units){return this.isSame(input,units)||this.isBefore(input,units)},proto.isValid=function isValid$2(){return isValid(this)},proto.lang=lang,proto.locale=locale,proto.localeData=localeData,proto.max=prototypeMax,proto.min=prototypeMin,proto.parsingFlags=function parsingFlags(){return extend({},getParsingFlags(this))},proto.set=function stringSet(units,value){if("object"==typeof units){var i,prioritized=function getPrioritizedUnits(unitsObj){var u,units=[];for(u in unitsObj)hasOwnProp(unitsObj,u)&&units.push({unit:u,priority:priorities[u]});return units.sort((function(a,b){return a.priority-b.priority})),units}(units=normalizeObjectUnits(units));for(i=0;i<prioritized.length;i++)this[prioritized[i].unit](units[prioritized[i].unit])}else if(isFunction(this[units=normalizeUnits(units)]))return this[units](value);return this},proto.startOf=function startOf(units){var time,startOfDate;if(void 0===(units=normalizeUnits(units))||"millisecond"===units||!this.isValid())return this;switch(startOfDate=this._isUTC?utcStartOfDate:localStartOfDate,units){case"year":time=startOfDate(this.year(),0,1);break;case"quarter":time=startOfDate(this.year(),this.month()-this.month()%3,1);break;case"month":time=startOfDate(this.year(),this.month(),1);break;case"week":time=startOfDate(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":time=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":time=startOfDate(this.year(),this.month(),this.date());break;case"hour":time=this._d.valueOf(),time-=mod$1(time+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":time=this._d.valueOf(),time-=mod$1(time,6e4);break;case"second":time=this._d.valueOf(),time-=mod$1(time,1e3)}return this._d.setTime(time),hooks.updateOffset(this,!0),this},proto.subtract=subtract,proto.toArray=function toArray(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]},proto.toObject=function toObject(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()}},proto.toDate=function toDate(){return new Date(this.valueOf())},proto.toISOString=function toISOString(keepOffset){if(!this.isValid())return null;var utc=!0!==keepOffset,m=utc?this.clone().utc():this;return m.year()<0||m.year()>9999?formatMoment(m,utc?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?utc?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(m,"Z")):formatMoment(m,utc?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},proto.inspect=function inspect(){if(!this.isValid())return"moment.invali
vendor: 8,316 bytes, lines 2-3
2d(/* "+this._i+" */)";var prefix,year,suffix,func="moment",zone="";return this.isLocal()||(func=0===this.utcOffset()?"moment.utc":"moment.parseZone",zone="Z"),prefix="["+func+'("]',year=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",suffix=zone+'[")]',this.format(prefix+year+"-MM-DD[T]HH:mm:ss.SSS"+suffix)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),proto.toJSON=function toJSON(){return this.isValid()?this.toISOString():null},proto.toString=function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},proto.unix=function unix(){return Math.floor(this.valueOf()/1e3)},proto.valueOf=function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)},proto.creationData=function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},proto.eraName=function getEraName(){var i,l,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i){if(val=this.startOf("day").valueOf(),eras[i].since<=val&&val<=eras[i].until)return eras[i].name;if(eras[i].until<=val&&val<=eras[i].since)return eras[i].name}return""},proto.eraNarrow=function getEraNarrow(){var i,l,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i){if(val=this.startOf("day").valueOf(),eras[i].since<=val&&val<=eras[i].until)return eras[i].narrow;if(eras[i].until<=val&&val<=eras[i].since)return eras[i].narrow}return""},proto.eraAbbr=function getEraAbbr(){var i,l,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i){if(val=this.startOf("day").valueOf(),eras[i].since<=val&&val<=eras[i].until)return eras[i].abbr;if(eras[i].until<=val&&val<=eras[i].since)return eras[i].abbr}return""},proto.eraYear=function getEraYear(){var i,l,dir,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i)if(dir=eras[i].since<=eras[i].until?1:-1,val=this.startOf("day").valueOf(),eras[i].since<=val&&val<=eras[i].until||eras[i].until<=val&&val<=eras[i].since)return(this.year()-hooks(eras[i].since).year())*dir+eras[i].offset;return this.year()},proto.year=getSetYear,proto.isLeapYear=function getIsLeapYear(){return isLeapYear(this.year())},proto.weekYear=function getSetWeekYear(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},proto.isoWeekYear=function getSetISOWeekYear(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)}, 3proto.quarter=proto.quarters=function getSetQuarter(input){return null==input?Math.ceil((this.month()+1)/3):this.month(3*(input-1)+this.month()%3)},proto.month=getSetMonth,proto.daysInMonth=function getDaysInMonth(){return daysInMonth(this.year(),this.month())},proto.week=proto.weeks=function getSetWeek(input){var week=this.localeData().week(this);return null==input?week:this.add(7*(input-week),"d")},proto.isoWeek=proto.isoWeeks=function getSetISOWeek(input){var week=weekOfYear(this,1,4).week;return null==input?week:this.add(7*(input-week),"d")},proto.weeksInYear=function getWeeksInYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy)},proto.weeksInWeekYear=function getWeeksInWeekYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.weekYear(),weekInfo.dow,weekInfo.doy)},proto.isoWeeksInYear=function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)},proto.isoWeeksInISOWeekYear=function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)},proto.date=getSetDayOfMonth,proto.day=proto.days=function getSetDayOfWeek(input){if(!this.isValid())return null!=input?this:NaN;var day=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=input?(input=function parseWeekday(input,locale){return"string"!=typeof input?input:isNaN(input)?"number"==typeof(input=locale.weekdaysParse(input))?input:null:parseInt(input,10)}(input,this.localeData()),this.add(input-day,"d")):day},proto.weekday=function getSetLocaleDayOfWeek(input){if(!this.isValid())return null!=input?this:NaN;var weekday=(this.day()+7-this.localeData()._week.dow)%7;return null==input?weekday:this.add(input-weekday,"d")},proto.isoWeekday=function getSetISODayOfWeek(input){if(!this.isValid())return null!=input?this:NaN;if(null!=input){var weekday=function parseIsoWeekday(input,locale){return"string"==typeof input?locale.weekdaysParse(input)%7||7:isNaN(input)?null:input}(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7)}return this.day()||7},proto.dayOfYear=function getSetDayOfYear(input){var dayOfYear=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==input?dayOfYear:this.add(input-dayOfYear,"d")},proto.hour=proto.hours=getSetHour,proto.minute=proto.minutes=getSetMinute,proto.second=proto.seconds=getSetSecond,proto.millisecond=proto.milliseconds=getSetMillisecond,proto.utcOffset=function getSetOffset(input,keepLocalTime,keepMinutes){var localAdjust,offset=this._offset||0;if(!this.isValid())return null!=input?this:NaN;if(null!=input){if("string"==typeof input){if(null===(input=offsetFromString(matchShortOffset,input)))return this}else Math.abs(input)<16&&!keepMinutes&&(input*=60);return!this._isUTC&&keepLocalTime&&(localAdjust=getDateOffset(this)),this._offset=input,this._isUTC=!0,null!=localAdjust&&this.add(localAdjust,"m"),offset!==input&&(!keepLocalTime||this._changeInProgress?addSubtract(this,createDuration(input-offset,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?offset:getDateOffset(this)},proto.utc=function setOffsetToUTC(keepLocalTime){return this.utcOffset(0,keepLocalTime)},proto.local=function setOffsetToLocal(keepLocalTime){return this._isUTC&&(this.utcOffset(0,keepLocalTime),this._isUTC=!1,keepLocalTime&&this.subtract(getDateOffset(this),"m")),this},proto.parseZone=function setOffsetToParsedOffset(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var tZone=offsetFromString(matchOffset,this._i);null!=tZone?this.utcOffset(tZone):this.utcOffset(0,!0)}return this},proto.hasAlignedHourOffset=function hasAlignedHourOffset(input){return!!this.isValid()&&(input=input?createLocal(input).utcOffset():0,(this.utcOffset()-input)%60==0)},proto.isDST=function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},proto.isLocal=function isLocal(){return!!this.isValid()&&!this._isUTC},proto.isUtcOffset=function isUtcOffset(){return!!this.isValid()&&this._isUTC},proto.isUtc=isUtc,proto.isUTC=isUtc,proto.zoneAbbr=function getZoneAbbr(){return this._isUTC?"UTC":""},proto.zoneName=function getZoneName(){return this._isUTC?"Coordinated Universal Time":""},proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth),proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear),proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function getSetZone(input,keepLocalTime){return null!=input?("string"!=typeof input&&(input=-input),this.utcOffset(input,keepLocalTime),this):-this.utcOffset()})),proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var other,c={};return copyConfig(c,this),(c=prepareConfig(c))._a?(other=c._isUTC?createUTC(c._a):createLocal(c._a),this._isDSTShifted=this.isValid()&&function compareArrays(array1,array2,dontConvert){var i,len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0;for(i=0;i<len;i++)(dontConvert&&array1[i]!==array2[i]||!dontConvert&&toInt(array1[i])!==toInt(array2[i]))&&diffs++;return diffs+lengthDiff}(c._a,other.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var proto$1=Locale.prototype;function get$1(format,index,field,setter){var locale=getLocale(),utc=createUTC().set(setter,index);
vendor: 1,278 bytes, line 3
3return locale[field](utc,format)}function listMonthsImpl(format,index,field){if(isNumber(format)&&(index=format,format=void 0),format=format||"",null!=index)return get$1(format,index,field,"month");var i,out=[];for(i=0;i<12;i++)out[i]=get$1(format,i,field,"month");return out}function listWeekdaysImpl(localeSorted,format,index,field){"boolean"==typeof localeSorted?(isNumber(format)&&(index=format,format=void 0),format=format||""):(index=format=localeSorted,localeSorted=!1,isNumber(format)&&(index=format,format=void 0),format=format||"");var i,locale=getLocale(),shift=localeSorted?locale._week.dow:0,out=[];if(null!=index)return get$1(format,(index+shift)%7,field,"day");for(i=0;i<7;i++)out[i]=get$1(format,(i+shift)%7,field,"day");return out}proto$1.calendar=function calendar(key,mom,now){var output=this._calendar[key]||this._calendar.sameElse;return isFunction(output)?output.call(mom,now):output},proto$1.longDateFormat=function longDateFormat(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];return format||!formatUpper?format:(this._longDateFormat[key]=formatUpper.match(formattingTokens).map((function(tok){return"MMMM"===tok||"MM"===tok||"DD"===tok||"dddd"===tok?tok.slice(1):tok})).join(""),this._longDateFormat[key])}
vendor: 9,338 bytes, line 3
3,proto$1.invalidDate=function invalidDate(){return this._invalidDate},proto$1.ordinal=function ordinal(number){return this._ordinal.replace("%d",number)},proto$1.preparse=preParsePostFormat,proto$1.postformat=preParsePostFormat,proto$1.relativeTime=function relativeTime(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number)},proto$1.pastFuture=function pastFuture(diff,output){var format=this._relativeTime[diff>0?"future":"past"];return isFunction(format)?format(output):format.replace(/%s/i,output)},proto$1.set=function set(config){var prop,i;for(i in config)hasOwnProp(config,i)&&(isFunction(prop=config[i])?this[i]=prop:this["_"+i]=prop);this._config=config,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},proto$1.eras=function localeEras(m,format){var i,l,date,eras=this._eras||getLocale("en")._eras;for(i=0,l=eras.length;i<l;++i){if("string"==typeof eras[i].since)date=hooks(eras[i].since).startOf("day"),eras[i].since=date.valueOf();switch(typeof eras[i].until){case"undefined":eras[i].until=1/0;break;case"string":date=hooks(eras[i].until).startOf("day").valueOf(),eras[i].until=date.valueOf()}}return eras},proto$1.erasParse=function localeErasParse(eraName,format,strict){var i,l,name,abbr,narrow,eras=this.eras();for(eraName=eraName.toUpperCase(),i=0,l=eras.length;i<l;++i)if(name=eras[i].name.toUpperCase(),abbr=eras[i].abbr.toUpperCase(),narrow=eras[i].narrow.toUpperCase(),strict)switch(format){case"N":case"NN":case"NNN":if(abbr===eraName)return eras[i];break;case"NNNN":if(name===eraName)return eras[i];break;case"NNNNN":if(narrow===eraName)return eras[i]}else if([name,abbr,narrow].indexOf(eraName)>=0)return eras[i]},proto$1.erasConvertYear=function localeErasConvertYear(era,year){var dir=era.since<=era.until?1:-1;return void 0===year?hooks(era.since).year():hooks(era.since).year()+(year-era.offset)*dir},proto$1.erasAbbrRegex=function erasAbbrRegex(isStrict){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),isStrict?this._erasAbbrRegex:this._erasRegex},proto$1.erasNameRegex=function erasNameRegex(isStrict){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),isStrict?this._erasNameRegex:this._erasRegex},proto$1.erasNarrowRegex=function erasNarrowRegex(isStrict){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),isStrict?this._erasNarrowRegex:this._erasRegex},proto$1.months=function localeMonths(m,format){return m?isArray(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format)?"format":"standalone"][m.month()]:isArray(this._months)?this._months:this._months.standalone},proto$1.monthsShort=function localeMonthsShort(m,format){return m?isArray(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format)?"format":"standalone"][m.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},proto$1.monthsParse=function localeMonthsParse(monthName,format,strict){var i,mom,regex;if(this._monthsParseExact)return handleStrictParse.call(this,monthName,format,strict);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(mom=createUTC([2e3,i]),strict&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(mom,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(mom,"").replace(".","")+"$","i")),strict||this._monthsParse[i]||(regex="^"+this.months(mom,"")+"|^"+this.monthsShort(mom,""),this._monthsParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&"MMMM"===format&&this._longMonthsParse[i].test(monthName))return i;if(strict&&"MMM"===format&&this._shortMonthsParse[i].test(monthName))return i;if(!strict&&this._monthsParse[i].test(monthName))return i}},proto$1.monthsRegex=function monthsRegex(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex)},proto$1.monthsShortRegex=function monthsShortRegex(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex)},proto$1.week=function localeWeek(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week},proto$1.firstDayOfYear=function localeFirstDayOfYear(){return this._week.doy},proto$1.firstDayOfWeek=function localeFirstDayOfWeek(){return this._week.dow},proto$1.weekdays=function localeWeekdays(m,format){var weekdays=isArray(this._weekdays)?this._weekdays:this._weekdays[m&&!0!==m&&this._weekdays.isFormat.test(format)?"format":"standalone"];return!0===m?shiftWeekdays(weekdays,this._week.dow):m?weekdays[m.day()]:weekdays},proto$1.weekdaysMin=function localeWeekdaysMin(m){return!0===m?shiftWeekdays(this._weekdaysMin,this._week.dow):m?this._weekdaysMin[m.day()]:this._weekdaysMin},proto$1.weekdaysShort=function localeWeekdaysShort(m){return!0===m?shiftWeekdays(this._weekdaysShort,this._week.dow):m?this._weekdaysShort[m.day()]:this._weekdaysShort},proto$1.weekdaysParse=function localeWeekdaysParse(weekdayName,format,strict){var i,mom,regex;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,weekdayName,format,strict);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(mom=createUTC([2e3,1]).day(i),strict&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(mom,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(mom,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(mom,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(regex="^"+this.weekdays(mom,"")+"|^"+this.weekdaysShort(mom,"")+"|^"+this.weekdaysMin(mom,""),this._weekdaysParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&"dddd"===format&&this._fullWeekdaysParse[i].test(weekdayName))return i;if(strict&&"ddd"===format&&this._shortWeekdaysParse[i].test(weekdayName))return i;if(strict&&"dd"===format&&this._minWeekdaysParse[i].test(weekdayName))return i;if(!strict&&this._weekdaysParse[i].test(weekdayName))return i}},proto$1.weekdaysRegex=function weekdaysRegex(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex)},proto$1.weekdaysShortRegex=function weekdaysShortRegex(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},proto$1.weekdaysMinRegex=function weekdaysMinRegex(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},proto$1.isPM=function localeIsPM(input){return"p"===(input+"").toLowerCase().charAt(0)},proto$1.meridiem=function localeMeridiem(hours,minutes,isLower){return hours>11?isLower?"pm":"PM":isLower?"am":"AM"},getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10;return number+(1===toInt(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function addSubtract$1(duration,input,value,direction){var other=createDuration(input,value);return duration._milliseconds+=direction*other._milliseconds,duration._days+=direction*other._days,duration._months+=direction*other._months,duration._bubble()}function absCeil(number){return number<0?Math.floor(number):Math.ceil(number)}function daysToMonths(days){return 4800*days/146097}function monthsToDays(months){return 146097*months/4800}function makeAs(alias){return function(){return this.as(alias)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),as
vendor: 8,198 bytes, lines 3-5
3Hours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function makeGetter(name){return function(){return this.isValid()?this._data[name]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}var abs$1=Math.abs;function sign(x){return(x>0)-(x<0)||+x}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var minutes,hours,years,s,totalSign,ymSign,daysSign,hmsSign,seconds=abs$1(this._milliseconds)/1e3,days=abs$1(this._days),months=abs$1(this._months),total=this.asSeconds();return total?(minutes=absFloor(seconds/60),hours=absFloor(minutes/60),seconds%=60,minutes%=60,years=absFloor(months/12),months%=12,s=seconds?seconds.toFixed(3).replace(/\.?0+$/,""):"",totalSign=total<0?"-":"",ymSign=sign(this._months)!==sign(total)?"-":"",daysSign=sign(this._days)!==sign(total)?"-":"",hmsSign=sign(this._milliseconds)!==sign(total)?"-":"",totalSign+"P"+(years?ymSign+years+"Y":"")+(months?ymSign+months+"M":"")+(days?daysSign+days+"D":"")+(hours||minutes||seconds?"T":"")+(hours?hmsSign+hours+"H":"")+(minutes?hmsSign+minutes+"M":"")+(seconds?hmsSign+s+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=function isValid$1(){return this._isValid},proto$2.abs=function abs(){var data=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),data.milliseconds=mathAbs(data.milliseconds),data.seconds=mathAbs(data.seconds),data.minutes=mathAbs(data.minutes),data.hours=mathAbs(data.hours),data.months=mathAbs(data.months),data.years=mathAbs(data.years),this},proto$2.add=function add$1(input,value){return addSubtract$1(this,input,value,1)},proto$2.subtract=function subtract$1(input,value){return addSubtract$1(this,input,value,-1)},proto$2.as=function as(units){if(!this.isValid())return NaN;var days,months,milliseconds=this._milliseconds;if("month"===(units=normalizeUnits(units))||"quarter"===units||"year"===units)switch(days=this._days+milliseconds/864e5,months=this._months+daysToMonths(days),units){case"month":return months;case"quarter":return months/3;case"year":return months/12}else switch(days=this._days+Math.round(monthsToDays(this._months)),units){case"week":return days/7+milliseconds/6048e5;case"day":return days+milliseconds/864e5;case"hour":return 24*days+milliseconds/36e5;case"minute":return 1440*days+milliseconds/6e4;case"second":return 86400*days+milliseconds/1e3;case"millisecond":return Math.floor(864e5*days)+milliseconds;default:throw new Error("Unknown unit "+units)}},proto$2.asMilliseconds=asMilliseconds,proto$2.asSeconds=asSeconds,proto$2.asMinutes=asMinutes,proto$2.asHours=asHours,proto$2.asDays=asDays,proto$2.asWeeks=asWeeks,proto$2.asMonths=asMonths,proto$2.asQuarters=asQuarters,proto$2.asYears=asYears,proto$2.valueOf=function valueOf$1(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12):NaN},proto$2._bubble=function bubble(){var seconds,minutes,hours,years,monthsFromDays,milliseconds=this._milliseconds,days=this._days,months=this._months,data=this._data;return milliseconds>=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0||(milliseconds+=864e5*absCeil(monthsToDays(months)+days),days=0,months=0),data.milliseconds=milliseconds%1e3,seconds=absFloor(milliseconds/1e3),data.seconds=seconds%60,minutes=absFloor(seconds/60),data.minutes=minutes%60,hours=absFloor(minutes/60),data.hours=hours%24,days+=absFloor(hours/24),months+=monthsFromDays=absFloor(daysToMonths(days)),days-=absCeil(monthsToDays(monthsFromDays)),years=absFloor(months/12),months%=12,data.days=days,data.months=months,data.years=years,this},proto$2.clone=function clone$1(){return createDuration(this)},proto$2.get=function get$2(units){return units=normalizeUnits(units),this.isValid()?this[units+"s"]():NaN},proto$2.milliseconds=milliseconds,proto$2.seconds=seconds,proto$2.minutes=minutes,proto$2.hours=hours,proto$2.days=days,proto$2.weeks=function weeks(){return absFloor(this.days()/7)},proto$2.months=months,proto$2.years=years,proto$2.humanize=function humanize(argWithSuffix,argThresholds){if(!this.isValid())return this.localeData().invalidDate();var locale,output,withSuffix=!1,th=thresholds;return"object"==typeof argWithSuffix&&(argThresholds=argWithSuffix,argWithSuffix=!1),"boolean"==typeof argWithSuffix&&(withSuffix=argWithSuffix),"object"==typeof argThresholds&&(th=Object.assign({},thresholds,argThresholds),null!=argThresholds.s&&null==argThresholds.ss&&(th.ss=argThresholds.s-1)),output=function relativeTime$1(posNegDuration,withoutSuffix,thresholds,locale){var duration=createDuration(posNegDuration).abs(),seconds=round(duration.as("s")),minutes=round(duration.as("m")),hours=round(duration.as("h")),days=round(duration.as("d")),months=round(duration.as("M")),weeks=round(duration.as("w")),years=round(duration.as("y")),a=seconds<=thresholds.ss&&["s",seconds]||seconds<thresholds.s&&["ss",seconds]||minutes<=1&&["m"]||minutes<thresholds.m&&["mm",minutes]||hours<=1&&["h"]||hours<thresholds.h&&["hh",hours]||days<=1&&["d"]||days<thresholds.d&&["dd",days];return null!=thresholds.w&&(a=a||weeks<=1&&["w"]||weeks<thresholds.w&&["ww",weeks]),(a=a||months<=1&&["M"]||months<thresholds.M&&["MM",months]||years<=1&&["y"]||["yy",years])[2]=withoutSuffix,a[3]=+posNegDuration>0,a[4]=locale,substituteTimeAgo.apply(null,a)}(this,!withSuffix,th,locale=this.localeData()),withSuffix&&(output=locale.pastFuture(+this,output)),locale.postformat(output)},proto$2.toISOString=toISOString$1,proto$2.toString=toISOString$1,proto$2.toJSON=toISOString$1,proto$2.locale=locale,proto$2.localeData=localeData,proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),proto$2.lang=lang,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",matchSigned),addRegexToken("X",/[+-]?\d+(\.\d{1,3})?/),addParseToken("X",(function(input,array,config){config._d=new Date(1e3*parseFloat(input))})),addParseToken("x",(function(input,array,config){config._d=new Date(toInt(input))})), 4//! moment.js 5hooks.version="2.26.0",function setHookCallback(callback){hookCallback=callback}(createLocal),hooks.fn=proto,hooks.min=function min(){var args=[].slice.call(arguments,0);return pickBy("isBefore",args)},hooks.max=function max(){var args=[].slice.call(arguments,0);return pickBy("isAfter",args)},hooks.now=function(){return Date.now?Date.now():+new Date},hooks.utc=createUTC,hooks.unix=function createUnix(input){return createLocal(1e3*input)},hooks.months=function listMonths(format,index){return listMonthsImpl(format,index,"months")},hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=function listWeekdays(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdays")},hooks.parseZone=function createInZone(){return createLocal.apply(null,arguments).parseZone()},hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=function listMonthsShort(format,index){return listMonthsImpl(format,index,"monthsShort")},hooks.weekdaysMin=function listWeekdaysMin(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysMin")},hooks.defineLocale=defineLocale,hooks.updateLocale=function updateLocale(name,config){if(null!=config){var locale,tmpLocale,parentConfig=baseConfig;null!=locales[name]&&null!=locales[name].parentLocale?locales[name].set(mergeConfigs(locales[name]._config,config)):(null!=(tmpLocale=loadLocale(name))&&(parentConfig=tmpLocale._config),config=mergeConfigs(parentConfig,config),null==tmpLocale&&(config.abbr=name),(locale=new Locale(config)).parentLocale=locales[name],locales[name]=locale),get
vendor: 16,384 bytes, lines 5-23
5SetGlobalLocale(name)}else null!=locales[name]&&(null!=locales[name].parentLocale?(locales[name]=locales[name].parentLocale,name===getSetGlobalLocale()&&getSetGlobalLocale(name)):null!=locales[name]&&delete locales[name]);return locales[name]},hooks.locales=function listLocales(){return keys(locales)},hooks.weekdaysShort=function listWeekdaysShort(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysShort")},hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=function getSetRelativeTimeRounding(roundingFunction){return void 0===roundingFunction?round:"function"==typeof roundingFunction&&(round=roundingFunction,!0)},hooks.relativeTimeThreshold=function getSetRelativeTimeThreshold(threshold,limit){return void 0!==thresholds[threshold]&&(void 0===limit?thresholds[threshold]:(thresholds[threshold]=limit,"s"===threshold&&(thresholds.ss=limit-1),!0))},hooks.calendarFormat=function getCalendarFormat(myMoment,now){var diff=myMoment.diff(now,"days",!0);return diff<-6?"sameElse":diff<-1?"lastWeek":diff<0?"lastDay":diff<1?"sameDay":diff<2?"nextDay":diff<7?"nextWeek":"sameElse"},hooks.prototype=proto,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"}, 6//! moment.js locale configuration 7hooks.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(input){return/^nm$/i.test(input)},meridiem:function(hours,minutes,isLower){return hours<12?isLower?"vm":"VM":isLower?"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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(number){return number+(1===number||8===number||number>=20?"ste":"de")},week:{dow:1,doy:4}}); 8//! moment.js locale configuration 9var pluralForm=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},plurals={s:["Ø£Ù٠٠٠ثاÙÙØ©","ثاÙÙØ© ÙØ§ØØ¯Ø©",["ثاÙÙØªØ§Ù","ثاÙÙØªÙÙ"],"%d Ø«ÙØ§Ù","%d ثاÙÙØ©","%d ثاÙÙØ©"],m:["Ø£Ù٠٠٠دÙÙÙØ©","دÙÙÙØ© ÙØ§ØØ¯Ø©",["دÙÙÙØªØ§Ù","دÙÙÙØªÙÙ"],"%d Ø¯ÙØ§Ø¦Ù","%d دÙÙÙØ©","%d دÙÙÙØ©"],h:["Ø£Ù٠٠٠ساعة","ساعة ÙØ§ØØ¯Ø©",["ساعتاÙ","ساعتÙÙ"],"%d ساعات","%d ساعة","%d ساعة"],d:["Ø£ÙÙ Ù Ù ÙÙÙ ","ÙÙÙ ÙØ§ØØ¯",["ÙÙ٠اÙ","ÙÙÙ ÙÙ"],"%d Ø£ÙØ§Ù ","%d ÙÙÙ ÙØ§","%d ÙÙÙ "],M:["Ø£ÙÙ Ù Ù Ø´ÙØ±","Ø´ÙØ± ÙØ§ØØ¯",["Ø´ÙØ±Ø§Ù","Ø´ÙØ±ÙÙ"],"%d Ø£Ø´ÙØ±","%d Ø´ÙØ±Ø§","%d Ø´ÙØ±"],y:["Ø£Ù٠٠٠عا٠","Ø¹Ø§Ù ÙØ§ØØ¯",["عا٠اÙ","عا٠ÙÙ"],"%d Ø£Ø¹ÙØ§Ù ","%d Ø¹Ø§Ù ÙØ§","%d عا٠"]},pluralize=function(u){return function(number,withoutSuffix,string,isFuture){var f=pluralForm(number),str=plurals[u][pluralForm(number)];return 2===f&&(str=str[withoutSuffix?0:1]),str.replace(/%d/i,number)}},months$1=["جاÙÙÙ","ÙÙÙØ±Ù","٠ارس","Ø£ÙØ±ÙÙ","٠اÙ","Ø¬ÙØ§Ù","جÙÙÙÙØ©","Ø£ÙØª","سبت٠بر","Ø£ÙØªÙبر","ÙÙÙ٠بر","Ø¯ÙØ³Ù بر"];hooks.defineLocale("ar-dz",{months:months$1,monthsShort:months$1,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(input){return"Ù "===input},meridiem:function(hour,minute,isLower){return hour<12?"ص":"Ù "},calendar:{sameDay:"[اÙÙÙÙ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[أ٠س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"Ù ÙØ° %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},postformat:function(string){return string.replace(/,/g,"Ø")},week:{dow:0,doy:4}}), 10//! moment.js locale configuration 11hooks.defineLocale("ar-kw",{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:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ ",dd:"%d Ø£ÙØ§Ù ",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},week:{dow:0,doy:12}}); 12//! moment.js locale configuration 13var symbolMap={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},pluralForm$1=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},plurals$1={s:["Ø£Ù٠٠٠ثاÙÙØ©","ثاÙÙØ© ÙØ§ØØ¯Ø©",["ثاÙÙØªØ§Ù","ثاÙÙØªÙÙ"],"%d Ø«ÙØ§Ù","%d ثاÙÙØ©","%d ثاÙÙØ©"],m:["Ø£Ù٠٠٠دÙÙÙØ©","دÙÙÙØ© ÙØ§ØØ¯Ø©",["دÙÙÙØªØ§Ù","دÙÙÙØªÙÙ"],"%d Ø¯ÙØ§Ø¦Ù","%d دÙÙÙØ©","%d دÙÙÙØ©"],h:["Ø£Ù٠٠٠ساعة","ساعة ÙØ§ØØ¯Ø©",["ساعتاÙ","ساعتÙÙ"],"%d ساعات","%d ساعة","%d ساعة"],d:["Ø£ÙÙ Ù Ù ÙÙÙ ","ÙÙÙ ÙØ§ØØ¯",["ÙÙ٠اÙ","ÙÙÙ ÙÙ"],"%d Ø£ÙØ§Ù ","%d ÙÙÙ ÙØ§","%d ÙÙÙ "],M:["Ø£ÙÙ Ù Ù Ø´ÙØ±","Ø´ÙØ± ÙØ§ØØ¯",["Ø´ÙØ±Ø§Ù","Ø´ÙØ±ÙÙ"],"%d Ø£Ø´ÙØ±","%d Ø´ÙØ±Ø§","%d Ø´ÙØ±"],y:["Ø£Ù٠٠٠عا٠","Ø¹Ø§Ù ÙØ§ØØ¯",["عا٠اÙ","عا٠ÙÙ"],"%d Ø£Ø¹ÙØ§Ù ","%d Ø¹Ø§Ù ÙØ§","%d عا٠"]},pluralize$1=function(u){return function(number,withoutSuffix,string,isFuture){var f=pluralForm$1(number),str=plurals$1[u][pluralForm$1(number)];return 2===f&&(str=str[withoutSuffix?0:1]),str.replace(/%d/i,number)}},months$2=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","٠ارس","أبرÙÙ","٠اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبت٠بر","Ø£ÙØªÙبر","ÙÙÙ٠بر","Ø¯ÙØ³Ù بر"];hooks.defineLocale("ar-ly",{months:months$2,monthsShort:months$2,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(input){return"Ù "===input},meridiem:function(hour,minute,isLower){return hour<12?"ص":"Ù "},calendar:{sameDay:"[اÙÙÙÙ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[أ٠س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"Ù ÙØ° %s",s:pluralize$1("s"),ss:pluralize$1("s"),m:pluralize$1("m"),mm:pluralize$1("m"),h:pluralize$1("h"),hh:pluralize$1("h"),d:pluralize$1("d"),dd:pluralize$1("d"),M:pluralize$1("M"),MM:pluralize$1("M"),y:pluralize$1("y"),yy:pluralize$1("y")},preparse:function(string){return string.replace(/Ø/g,",")},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap[match]})).replace(/,/g,"Ø")},week:{dow:6,doy:12}}), 14//! moment.js locale configuration 15hooks.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:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ ",dd:"%d Ø£ÙØ§Ù ",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},week:{dow:6,doy:12}}); 16//! moment.js locale configuration 17var symbolMap$1={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},numberMap={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"};hooks.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(input){return"Ù "===input},meridiem:function(hour,minute,isLower){return hour<12?"ص":"Ù "},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 سÙÙØ§Øª"},preparse:function(string){return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(match){return numberMap[match]})).replace(/Ø/g,",")},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$1[match]})).replace(/,/g,"Ø")},week:{dow:0,doy:6}}), 18//! moment.js locale configuration 19hooks.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:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ ",dd:"%d Ø£ÙØ§Ù ",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},week:{dow:1,doy:4}}); 20//! moment.js locale configuration 21var symbolMap$2={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},numberMap$1={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"},pluralForm$2=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},plurals$2={s:["Ø£Ù٠٠٠ثاÙÙØ©","ثاÙÙØ© ÙØ§ØØ¯Ø©",["ثاÙÙØªØ§Ù","ثاÙÙØªÙÙ"],"%d Ø«ÙØ§Ù","%d ثاÙÙØ©","%d ثاÙÙØ©"],m:["Ø£Ù٠٠٠دÙÙÙØ©","دÙÙÙØ© ÙØ§ØØ¯Ø©",["دÙÙÙØªØ§Ù","دÙÙÙØªÙÙ"],"%d Ø¯ÙØ§Ø¦Ù","%d دÙÙÙØ©","%d دÙÙÙØ©"],h:["Ø£Ù٠٠٠ساعة","ساعة ÙØ§ØØ¯Ø©",["ساعتاÙ","ساعتÙÙ"],"%d ساعات","%d ساعة","%d ساعة"],d:["Ø£ÙÙ Ù Ù ÙÙÙ ","ÙÙÙ ÙØ§ØØ¯",["ÙÙ٠اÙ","ÙÙÙ ÙÙ"],"%d Ø£ÙØ§Ù ","%d ÙÙÙ ÙØ§","%d ÙÙÙ "],M:["Ø£ÙÙ Ù Ù Ø´ÙØ±","Ø´ÙØ± ÙØ§ØØ¯",["Ø´ÙØ±Ø§Ù","Ø´ÙØ±ÙÙ"],"%d Ø£Ø´ÙØ±","%d Ø´ÙØ±Ø§","%d Ø´ÙØ±"],y:["Ø£Ù٠٠٠عا٠","Ø¹Ø§Ù ÙØ§ØØ¯",["عا٠اÙ","عا٠ÙÙ"],"%d Ø£Ø¹ÙØ§Ù ","%d Ø¹Ø§Ù ÙØ§","%d عا٠"]},pluralize$2=function(u){return function(number,withoutSuffix,string,isFuture){var f=pluralForm$2(number),str=plurals$2[u][pluralForm$2(number)];return 2===f&&(str=str[withoutSuffix?0:1]),str.replace(/%d/i,number)}},months$3=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","٠ارس","أبرÙÙ","٠اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبت٠بر","Ø£ÙØªÙبر","ÙÙÙ٠بر","Ø¯ÙØ³Ù بر"];hooks.defineLocale("ar",{months:months$3,monthsShort:months$3,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(input){return"Ù "===input},meridiem:function(hour,minute,isLower){return hour<12?"ص":"Ù "},calendar:{sameDay:"[اÙÙÙÙ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[أ٠س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"Ù ÙØ° %s",s:pluralize$2("s"),ss:pluralize$2("s"),m:pluralize$2("m"),mm:pluralize$2("m"),h:pluralize$2("h"),hh:pluralize$2("h"),d:pluralize$2("d"),dd:pluralize$2("d"),M:pluralize$2("M"),MM:pluralize$2("M"),y:pluralize$2("y"),yy:pluralize$2("y")},preparse:function(string){return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(match){return numberMap$1[match]})).replace(/Ø/g,",")},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$2[match]})).replace(/,/g,"Ø")},week:{dow:6,doy:12}}); 22//! moment.js locale configuration 23var suffixes={1:"-inci",5:"-inci",8:"-inci",70:"-
vendor: 6,011 bytes, lines 23-27
23inci",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ı"};function relativeTimeWithPlural(number,withoutSuffix,key){return"m"===key?withoutSuffix?"Ñ Ð²ÑлÑна":"Ñ Ð²ÑлÑнÑ":"h"===key?withoutSuffix?"гадзÑна":"гадзÑнÑ":number+" "+ 24//! moment.js locale configuration 25function plural(word,num){var forms=word.split("_");return num%10==1&&num%100!=11?forms[0]:num%10>=2&&num%10<=4&&(num%100<10||num%100>=20)?forms[1]:forms[2]}({ss:withoutSuffix?"ÑекÑнда_ÑекÑндÑ_ÑекÑнд":"ÑекÑндÑ_ÑекÑндÑ_ÑекÑнд",mm:withoutSuffix?"Ñ Ð²ÑлÑна_Ñ Ð²ÑлÑнÑ_Ñ Ð²ÑлÑн":"Ñ Ð²ÑлÑнÑ_Ñ Ð²ÑлÑнÑ_Ñ Ð²ÑлÑн",hh:withoutSuffix?"гадзÑна_гадзÑнÑ_гадзÑн":"гадзÑнÑ_гадзÑнÑ_гадзÑн",dd:"дзенÑ_днÑ_дзÑн",MM:"меÑÑÑ_меÑÑÑÑ_меÑÑÑаÑ",yy:"год_гадÑ_гадоÑ"}[key],+number)}hooks.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Ã§É saniyÉ",ss:"%d saniyÉ",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(input){return/^(gündüz|axÅam)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<4?"gecÉ":hour<12?"sÉhÉr":hour<17?"gündüz":"axÅam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(number){if(0===number)return number+"-ıncı";var a=number%10,b=number%100-a,c=number>=100?100:null;return number+(suffixes[a]||suffixes[b]||suffixes[c])},week:{dow:1,doy:7}}),hooks.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:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:relativeTimeWithPlural,hh:relativeTimeWithPlural,d:"дзенÑ",dd:relativeTimeWithPlural,M:"меÑÑÑ",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},meridiemParse:/ноÑÑ|ÑанÑÑÑ|днÑ|веÑаÑа/,isPM:function(input){return/^(днÑ|веÑаÑа)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<4?"ноÑÑ":hour<12?"ÑанÑÑÑ":hour<17?"днÑ":"веÑаÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(Ñ|Ñ|га)/,ordinal:function(number,period){switch(period){case"M":case"d":case"DDD":case"w":case"W":return number%10!=2&&number%10!=3||number%100==12||number%100==13?number+"-Ñ":number+"-Ñ";case"D":return number+"-га";default:return number}},week:{dow:1,doy:7}}), 26//! moment.js locale configuration 27hooks.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:"нÑколко ÑекÑнди",ss:"%d ÑекÑнди",m:"минÑÑа",mm:"%d минÑÑи",h:"ÑаÑ",hh:"%
27d ÑаÑа",d:"ден",dd:"%d дена",M:"меÑеÑ",MM:"%d меÑеÑа",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|Ñи|ви|Ñи|ми)/,ordinal:function(number){var lastDigit=number%10,last2Digits=number%100;return 0===number?number+"-ев":0===last2Digits?number+"-ен":last2Digits>10&&last2Digits<20?number+"-Ñи":1===lastDigit?number+"-ви":2===lastDigit?number+"-Ñи":7===lastDigit||8===lastDigit?number+"-ми":number+"-Ñи"},week:{dow:1,doy:7}}), 28//! moment.js locale configuration 29hooks.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_MÉkalo_ZuwÉnkalo_Zuluyekalo_Utikalo_SÉtanburukalo_ÉkutÉburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_MÉ_Zuw_Zul_Uti_SÉt_Éku_Now_Des".split("_"),weekdays:"Kari_NtÉnÉn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_NtÉ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lÉrÉ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lÉrÉ] HH:mm"},calendar:{sameDay:"[Bi lÉrÉ] LT",nextDay:"[Sini lÉrÉ] LT",nextWeek:"dddd [don lÉrÉ] LT",lastDay:"[Kunu lÉrÉ] LT",lastWeek:"dddd [tÉmÉnen lÉrÉ] LT",sameElse:"L"},relativeTime:{future:"%s kÉnÉ",past:"a bÉ %s bÉ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lÉrÉ kelen",hh:"lÉrÉ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}}); 30//! moment.js locale configuration 31var symbolMap$3={1:"à§§",2:"২",3:"à§©",4:"৪",5:"à§«",6:"৬",7:"à§",8:"à§®",9:"৯",0:"০"},numberMap$2={"à§§":"1","২":"2","à§©":"3","৪":"4","à§«":"5","৬":"6","à§":"7","à§®":"8","৯":"9","০":"0"};hooks.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:"à¦à§à§à¦ সà§à¦à§à¦¨à§à¦¡",ss:"%d সà§à¦à§à¦¨à§à¦¡",m:"à¦à¦ মিনিà¦",mm:"%d মিনিà¦",h:"à¦à¦ à¦à¦¨à§à¦à¦¾",hh:"%d à¦à¦¨à§à¦à¦¾",d:"à¦à¦ দিন",dd:"%d দিন",M:"à¦à¦ মাস",MM:"%d মাস",y:"à¦à¦ বà¦à¦°",yy:"%d বà¦à¦°"},preparse:function(string){return string.replace(/[১২৩৪৫৬à§à§®à§¯à§¦]/g,(function(match){return numberMap$2[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$3[match]}))},meridiemParse:/রাত|সà¦à¦¾à¦²|দà§à¦ªà§à¦°|বিà¦à¦¾à¦²|রাত/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"রাত"===meridiem&&hour>=4||"দà§à¦ªà§à¦°"===meridiem&&hour<5||"বিà¦à¦¾à¦²"===meridiem?hour+12:hour},meridiem:function(hour,minute,isLower){return hour<4?"রাত":hour<10?"সà¦à¦¾à¦²":hour<17?"দà§à¦ªà§à¦°":hour<20?"বিà¦à¦¾à¦²":"রাত"},week:{dow:0,doy:6}}); 32//! moment.js locale configuration 33var symbolMap$4={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},numberMap$3={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"}; 34//! moment.js locale configuration 35function relativeTimeWithMutation(number,withoutSuffix,key){return number+" "+function mutation(text,number){if(2===number)return function softMutation(text){var mutationTable={m:"v",b:"v",d:"z"};if(void 0===mutationTable[text.charAt(0)])return text;return mutationTable[text.charAt(0)]+text.substring(1)}(text);return text}({mm:"munutenn",MM:"miz",dd:"devezh"}[key],number)}function lastNumber(number){return number>9?lastNumber(number%10):number}hooks.defineLocale("bo",{months:"à½à¾³à¼à½à¼à½à½à¼à½à½¼_à½à¾³à¼à½à¼à½à½à½²à½¦à¼à½_à½à¾³à¼à½à¼à½à½¦à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½²à¼à½_à½à¾³à¼à½à¼à½£à¾à¼à½_à½à¾³à¼à½à¼à½à¾²à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à½à¼à½_à½à¾³à¼à½à¼à½à½¢à¾à¾±à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à¼à½_à½à¾³à¼à½à¼à½à½ ུà¼à½_à½à¾³à¼à½à¼à½à½ ུà¼à½à½ ིà½à¼à½_à½à¾³à¼à½à¼à½à½ ུà¼à½à½à½²à½¦à¼à½".split("_"),monthsShort:"à½à¾³à¼1_à½à¾³à¼2_à½à¾³à¼3_à½à¾³à¼4_à½à¾³à¼5_à½à¾³à¼6_à½à¾³à¼7_à½à¾³à¼8_à½à¾³à¼9_à½à¾³à¼10_à½à¾³à¼11_à½à¾³à¼12".split("_"),monthsShortRegex:/^(à½à¾³à¼\d{1,2})/,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:"[à½à½à½´à½à¼à½à¾²à½à¼à½¢à¾à½ºà½¦à¼à½], LT",lastDay:"[à½à¼à½¦à½] LT",lastWeek:"[à½à½à½´à½à¼à½à¾²à½à¼à½à½à½ à¼à½] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལà¼",past:"%s སà¾à½à¼à½£",s:"ལà½à¼à½¦à½",ss:"%d སà¾à½¢à¼à½à¼",m:"སà¾à½¢à¼à½à¼à½à½ ིà½",mm:"%d སà¾à½¢à¼à½",h:"à½à½´à¼à½à½¼à½à¼à½à½ ིà½",hh:"%
vendor: 13,042 bytes, lines 35-49
35d à½à½´à¼à½à½¼à½",d:"à½à½²à½à¼à½à½ ིà½",dd:"%d à½à½²à½à¼",M:"à½à¾³à¼à½à¼à½à½ ིà½",MM:"%d à½à¾³à¼à½",y:"ལོà¼à½à½ ིà½",yy:"%d ལོ"},preparse:function(string){return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(match){return numberMap$3[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$4[match]}))},meridiemParse:/à½à½à½à¼à½à½¼|à½à½¼à½à½¦à¼à½à½¦|à½à½²à½à¼à½à½´à½|à½à½à½¼à½à¼à½à½|à½à½à½à¼à½à½¼/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"à½à½à½à¼à½à½¼"===meridiem&&hour>=4||"à½à½²à½à¼à½à½´à½"===meridiem&&hour<5||"à½à½à½¼à½à¼à½à½"===meridiem?hour+12:hour},meridiem:function(hour,minute,isLower){return hour<4?"à½à½à½à¼à½à½¼":hour<10?"à½à½¼à½à½¦à¼à½à½¦":hour<17?"à½à½²à½à¼à½à½´à½":hour<20?"à½à½à½¼à½à¼à½à½":"à½à½à½à¼à½à½¼"},week:{dow:0,doy:6}});var monthsParse=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],monthsRegex$1=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,minWeekdaysParse=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i]; 36//! moment.js locale configuration 37function translate(number,withoutSuffix,key){var result=number+" ";switch(key){case"ss":return result+=1===number?"sekunda":2===number||3===number||4===number?"sekunde":"sekundi";case"m":return withoutSuffix?"jedna minuta":"jedne minute";case"mm":return result+=1===number?"minuta":2===number||3===number||4===number?"minute":"minuta";case"h":return withoutSuffix?"jedan sat":"jednog sata";case"hh":return result+=1===number?"sat":2===number||3===number||4===number?"sata":"sati";case"dd":return result+=1===number?"dan":"dana";case"MM":return result+=1===number?"mjesec":2===number||3===number||4===number?"mjeseca":"mjeseci";case"yy":return result+=1===number?"godina":2===number||3===number||4===number?"godine":"godina"}}hooks.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("_"),weekdaysParse:minWeekdaysParse,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:minWeekdaysParse,monthsRegex:monthsRegex$1,monthsShortRegex:monthsRegex$1,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:monthsParse,longMonthsParse:monthsParse,shortMonthsParse:monthsParse,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},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ù",ss:"%d eilenn",m:"ur vunutenn",mm:relativeTimeWithMutation,h:"un eur",hh:"%d eur",d:"un devezh",dd:relativeTimeWithMutation,M:"ur miz",MM:relativeTimeWithMutation,y:"ur bloaz",yy:function specialMutationForYears(number){switch(lastNumber(number)){case 1:case 3:case 4:case 5:case 9:return number+" bloaz";default:return number+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(number){return number+(1===number?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(token){return"g.m."===token},meridiem:function(hour,minute,isLower){return hour<12?"a.m.":"g.m."}}),hooks.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",ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:"dan",dd:translate,M:"mjesec",MM:translate,y:"godinu",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}), 38//! moment.js locale configuration 39hooks.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_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 [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM 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:"d'aquà %s",past:"fa %s",s:"uns segons",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(number,period){var output=1===number?"r":2===number?"n":3===number?"r":4===number?"t":"è";return"w"!==period&&"W"!==period||(output="a"),number+output},week:{dow:1,doy:4}}); 40//! moment.js locale configuration 41var months$4="leden_únor_bÅezen_duben_kvÄten_Äerven_Äervenec_srpen_záÅÃ_ÅÃjen_listopad_prosinec".split("_"),monthsShort="led_úno_bÅe_dub_kvÄ_Ävn_Ävc_srp_záÅ_ÅÃj_lis_pro".split("_"),monthsParse$1=[/^led/i,/^úno/i,/^bÅe/i,/^dub/i,/^kvÄ/i,/^(Ävn|Äerven$|Äervna)/i,/^(Ävc|Äervenec|Äervence)/i,/^srp/i,/^záÅ/i,/^ÅÃj/i,/^lis/i,/^pro/i],monthsRegex$2=/^(leden|únor|bÅezen|duben|kvÄten|Äervenec|Äervence|Äerven|Äervna|srpen|záÅÃ|ÅÃjen|listopad|prosinec|led|úno|bÅe|dub|kvÄ|Ävn|Ävc|srp|záÅ|ÅÃj|lis|pro)/i;function plural$1(n){return n>1&&n<5&&1!=~~(n/10)}function translate$1(number,withoutSuffix,key,isFuture){var result=number+" ";switch(key){case"s":return withoutSuffix||isFuture?"pár sekund":"pár sekundami";case"ss":return withoutSuffix||isFuture?result+(plural$1(number)?"sekundy":"sekund"):result+"sekundami";case"m":return withoutSuffix?"minuta":isFuture?"minutu":"minutou";case"mm":return withoutSuffix||isFuture?result+(plural$1(number)?"minuty":"minut"):result+"minutami";case"h":return withoutSuffix?"hodina":isFuture?"hodinu":"hodinou";case"hh":return withoutSuffix||isFuture?result+(plural$1(number)?"hodiny":"hodin"):result+"hodinami";case"d":return withoutSuffix||isFuture?"den":"dnem";case"dd":return withoutSuffix||isFuture?result+(plural$1(number)?"dny":"dnÃ"):result+"dny";case"M":return withoutSuffix||isFuture?"mÄsÃc":"mÄsÃcem";case"MM":return withoutSuffix||isFuture?result+(plural$1(number)?"mÄsÃce":"mÄsÃců"):result+"mÄsÃci";case"y":return withoutSuffix||isFuture?"rok":"rokem";case"yy":return withoutSuffix||isFuture?result+(plural$1(number)?"roky":"let"):result+"lety"}} 42//! moment.js locale configuration 43function processRelativeTime(number,withoutSuffix,key,isFuture){var format={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[number+" Tage",number+" Tagen"],M:["ein Monat","einem Monat"],MM:[number+" Monate",number+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[number+" Jahre",number+" Jahren"]};return withoutSuffix?format[key][0]:format[key][1]} 44//! moment.js locale configuration 45function processRelativeTime$1(number,withoutSuffix,key,isFuture){var format={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[number+" Tage",number+" Tagen"],M:["ein Monat","einem Monat"],MM:[number+" Monate",number+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[number+" Jahre",number+" Jahren"]};return withoutSuffix?format[key][0]:format[key][1]} 46//! moment.js locale configuration 47function processRelativeTime$2(number,withoutSuffix,key,isFuture){var format={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[number+" Tage",number+" Tagen"],M:["ein Monat","einem Monat"],MM:[number+" Monate",number+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[number+" Jahre",number+" Jahren"]};return withoutSuffix?format[key][0]:format[key][1]}hooks.defineLocale("cs",{months:months$4,monthsShort:monthsShort,monthsRegex:monthsRegex$2,monthsShortRegex:monthsRegex$2,monthsStrictRegex:/^(leden|ledna|února|únor|bÅezen|bÅezna|duben|dubna|kvÄten|kvÄtna|Äervenec|Äervence|Äerven|Äervna|srpen|srpna|záÅÃ|ÅÃjen|ÅÃjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bÅe|dub|kvÄ|Ävn|Ävc|srp|záÅ|ÅÃj|lis|pro)/i,monthsParse:monthsParse$1,longMonthsParse:monthsParse$1,shortMonthsParse:monthsParse$1,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:translate$1,ss:translate$1,m:translate$1,mm:translate$1,h:translate$1,hh:translate$1,d:translate$1,dd:translate$1,M:translate$1,MM:translate$1,y:translate$1,yy:translate$1},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 48//! moment.js locale configuration 49hooks.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(output){return output+(/ÑÐµÑ ÐµÑ$/i.exec(output)?"Ñен":/Ò«Ñл$/i.exec(output)?"Ñан":"Ñан")},past:"%s каÑлла",s:"пÓÑ-ик ҫеккÑнÑ",ss:"%d ҫеккÑнÑ",m:"пÓÑ Ð¼Ð¸Ð½ÑÑ",mm:"%d минÑÑ",h:"пÓÑ ÑÐµÑ ÐµÑ",hh:"%
vendor: 7,029 bytes, lines 49-55
49d ÑÐµÑ ÐµÑ",d:"пÓÑ ÐºÑн",dd:"%d кÑн",M:"пÓÑ ÑйÓÑ ",MM:"%d ÑйÓÑ ",y:"пÓÑ Ò«Ñл",yy:"%d Ò«Ñл"},dayOfMonthOrdinalParse:/\d{1,2}-мÓÑ/,ordinal:"%d-мÓÑ",week:{dow:1,doy:7}}), 50//! moment.js locale configuration 51hooks.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,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",ss:"%d eiliad",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"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(number){var output="";return number>20?output=40===number||50===number||60===number||80===number||100===number?"fed":"ain":number>0&&(output=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][number]),number+output},week:{dow:1,doy:4}}), 52//! moment.js locale configuration 53hooks.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 [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"pÃ¥ dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"fÃ¥ sekunder",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),hooks.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._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",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),hooks.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._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",ss:"%d Sekunden",m:processRelativeTime$1,mm:"%d Minuten",h:processRelativeTime$1,hh:"%d Stunden",d:processRelativeTime$1,dd:processRelativeTime$1,M:processRelativeTime$1,MM:processRelativeTime$1,y:processRelativeTime$1,yy:processRelativeTime$1},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),hooks.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._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",ss:"%d Sekunden",m:processRelativeTime$2,mm:"%d Minuten",h:processRelativeTime$2,hh:"%d Stunden",d:processRelativeTime$2,dd:processRelativeTime$2,M:processRelativeTime$2,MM:processRelativeTime$2,y:processRelativeTime$2,yy:processRelativeTime$2},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}); 54//! moment.js locale configuration 55var months$5=["ÞÞ¬ÞÞªÞÞ¦ÞÞ©","ÞÞ¬ÞÞ°ÞÞªÞÞ¦ÞÞ©","ÞÞ§ÞÞ¨ÞÞª","ÞÞÞÞ°ÞÞ©ÞÞª","ÞÞ","ÞÞ«ÞÞ°","ÞÞªÞÞ¦ÞÞ¨","ÞÞ¯ÞÞ¦ÞÞ°ÞÞª","ÞÞ¬ÞÞ°ÞÞ¬ÞÞ°ÞÞ¦ÞÞª","ÞÞ®ÞÞ°ÞÞ¯ÞÞ¦ÞÞª","ÞÞ®ÞÞ¬ÞÞ°ÞÞ¦ÞÞª","ÞÞ¨ÞÞ¬ÞÞ°ÞÞ¦ÞÞª"],weekdays=["ÞÞ§ÞÞ¨ÞÞ°ÞÞ¦","ÞÞ¯ÞÞ¦","ÞÞ¦ÞÞ°ÞÞ§ÞÞ¦","ÞÞªÞÞ¦","ÞÞªÞÞ§ÞÞ°ÞÞ¦ÞÞ¨","ÞÞªÞÞªÞÞª","ÞÞ®ÞÞ¨ÞÞ¨ÞÞª"];hooks.defineLocale("dv",{months:months$5,monthsShort:months$5,weekdays:weekdays,weekdaysShort:weekdays,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(input){return"ÞÞ"===input},meridiem:function(hour,minute,isLower){return hour<12?"ÞÞ":"ÞÞ"},calendar:{sameDay:"[ÞÞ¨ÞÞ¦ÞÞª] LT",nextDay:"[ÞÞ§ÞÞ¦ÞÞ§] LT",nextWeek:"dddd LT",lastDay:"[ÞÞ¨ÞÞ°ÞÞ¬] LT",lastWeek:"[ÞÞ§ÞÞ¨ÞÞªÞÞ¨] dddd LT",sameElse:"L"},relativeTime:{future:"ÞÞ¬ÞÞÞÞ¦ÞÞ¨ %s",past:"ÞÞªÞÞ¨ÞÞ° %s",
vendor: 4,507 bytes, lines 55-61
55s:"ÞÞ¨ÞÞªÞÞ°ÞÞªÞÞ®Þ Þ¬ÞÞ°",ss:"d% ÞÞ¨ÞÞªÞÞ°ÞÞª",m:"ÞÞ¨ÞÞ¨ÞÞ¬ÞÞ°",mm:"ÞÞ¨ÞÞ¨ÞÞª %d",h:"ÞÞ¦ÞÞ¨ÞÞ¨ÞÞ¬ÞÞ°",hh:"ÞÞ¦ÞÞ¨ÞÞ¨ÞÞª %d",d:"ÞÞªÞÞ¦ÞÞ¬ÞÞ°",dd:"ÞÞªÞÞ¦ÞÞ° %d",M:"ÞÞ¦ÞÞ¬ÞÞ°",MM:"ÞÞ¦ÞÞ° %d",y:"ÞÞ¦ÞÞ¦ÞÞ¬ÞÞ°",yy:"ÞÞ¦ÞÞ¦ÞÞª %d"},preparse:function(string){return string.replace(/Ø/g,",")},postformat:function(string){return string.replace(/,/g,"Ø")},week:{dow:7,doy:12}}),hooks.defineLocale("el",{monthsNominativeEl:"ÎÎ±Î½Î¿Ï Î¬ÏιοÏ_ΦεβÏÎ¿Ï Î¬ÏιοÏ_ÎάÏÏιοÏ_ÎÏÏίλιοÏ_ÎάιοÏ_ÎοÏνιοÏ_ÎοÏλιοÏ_ÎÏÎ³Î¿Ï ÏÏοÏ_ΣεÏÏÎμβÏιοÏ_ÎκÏÏβÏιοÏ_ÎοÎμβÏιοÏ_ÎεκÎμβÏιοÏ".split("_"),monthsGenitiveEl:"ÎÎ±Î½Î¿Ï Î±ÏÎ¯Î¿Ï _ΦεβÏÎ¿Ï Î±ÏÎ¯Î¿Ï _ÎαÏÏÎ¯Î¿Ï _ÎÏÏÎ¹Î»Î¯Î¿Ï _ÎαÎÎ¿Ï _ÎÎ¿Ï Î½Î¯Î¿Ï _ÎÎ¿Ï Î»Î¯Î¿Ï _ÎÏ Î³Î¿ÏÏÏÎ¿Ï _ΣεÏÏεμβÏÎ¯Î¿Ï _ÎκÏÏβÏÎ¯Î¿Ï _ÎοεμβÏÎ¯Î¿Ï _ÎεκεμβÏÎ¯Î¿Ï ".split("_"),months:function(momentToFormat,format){return momentToFormat?"string"==typeof format&&/D/.test(format.substring(0,format.indexOf("MMMM")))?this._monthsGenitiveEl[momentToFormat.month()]:this._monthsNominativeEl[momentToFormat.month()]:this._monthsNominativeEl},monthsShort:"Îαν_Φεβ_ÎαÏ_ÎÏÏ_ÎαÏ_ÎÎ¿Ï Î½_ÎÎ¿Ï Î»_ÎÏ Î³_ΣεÏ_ÎκÏ_Îοε_Îεκ".split("_"),weekdays:"ÎÏ Ïιακή_ÎÎµÏ ÏÎÏα_ΤÏίÏη_ΤεÏάÏÏη_Î ÎμÏÏη_ΠαÏαÏÎºÎµÏ Î®_ΣάββαÏο".split("_"),weekdaysShort:"ÎÏ Ï_ÎÎµÏ _ΤÏι_ΤεÏ_Πεμ_ΠαÏ_Σαβ".split("_"),weekdaysMin:"ÎÏ _Îε_ΤÏ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(hours,minutes,isLower){return hours>11?isLower?"μμ":"ÎÎ":isLower?"Ïμ":"Î Î"},isPM:function(input){return"μ"===(input+"").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(){return 6===this.day()?"[Ïο ÏÏοηγοÏμενο] dddd [{}] LT":"[Ïην ÏÏοηγοÏμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(key,mom){var output=this._calendarEl[key],hours=mom&&mom.hours(); 56//! moment.js locale configuration 57return function isFunction$1(input){return"undefined"!=typeof Function&&input instanceof Function||"[object Function]"===Object.prototype.toString.call(input)}(output)&&(output=output.apply(mom)),output.replace("{}",hours%12==1?"ÏÏη":"ÏÏιÏ")},relativeTime:{future:"Ïε %s",past:"%s ÏÏιν",s:"λίγα Î´ÎµÏ ÏεÏÏλεÏÏα",ss:"%d Î´ÎµÏ ÏεÏÏλεÏÏα",m:"Îνα λεÏÏÏ",mm:"%d λεÏÏά",h:"μία ÏÏα",hh:"%d ÏÏεÏ",d:"μία μÎÏα",dd:"%d μÎÏεÏ",M:"ÎÎ½Î±Ï Î¼Î®Î½Î±Ï",MM:"%d μήνεÏ",y:"ÎÎ½Î±Ï ÏÏÏνοÏ",yy:"%d ÏÏÏνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}), 58//! moment.js locale configuration 59hooks.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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")},week:{dow:0,doy:4}}), 60//! moment.js locale configuration 61hooks.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",LT
61S:"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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}), 62//! moment.js locale configuration 63hooks.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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")},week:{dow:1,doy:4}}), 64//! moment.js locale configuration 65hooks.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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")},week:{dow:1,doy:4}}), 66//! moment.js locale configuration 67hooks.defineLocale("en-il",{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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}), 68//! moment.js locale configuration 69hooks.defineLocale("en-in",{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",LT
vendor: 11,277 bytes, lines 69-83
69S:"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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")},week:{dow:0,doy:6}}), 70//! moment.js locale configuration 71hooks.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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")},week:{dow:1,doy:4}}), 72//! moment.js locale configuration 73hooks.defineLocale("en-sg",{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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")},week:{dow:1,doy:4}}), 74//! moment.js locale configuration 75hooks.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aÅgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aÅg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(input){return"p"===input.charAt(0).toLowerCase()},meridiem:function(hours,minutes,isLower){return hours>11?isLower?"p.t.m.":"P.T.M.":isLower?"a.t.m.":"A.T.M."},calendar:{sameDay:"[HodiaÅ je] LT",nextDay:"[MorgaÅ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[HieraÅ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaÅ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}}); 76//! moment.js locale configuration 77var monthsShortDot="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),monthsShort$1="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),monthsParse$2=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],monthsRegex$3=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;hooks.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(m,format){return m?/-MMM-/.test(format)?monthsShort$1[m.month()]:monthsShortDot[m.month()]:monthsShortDot},monthsRegex:monthsRegex$3,monthsShortRegex:monthsRegex$3,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:monthsParse$2,longMonthsParse:monthsParse$2,shortMonthsParse:monthsParse$2,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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}); 78//! moment.js locale configuration 79var monthsShortDot$1="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),monthsShort$2="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),monthsParse$3=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],monthsRegex$4=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;hooks.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(m,format){return m?/-MMM-/.test(format)?monthsShort$2[m.month()]:monthsShortDot$1[m.month()]:monthsShortDot$1},monthsRegex:monthsRegex$4,monthsShortRegex:monthsRegex$4,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:monthsParse$3,longMonthsParse:monthsParse$3,shortMonthsParse:monthsParse$3,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:"MM/DD/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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}}); 80//! moment.js locale configuration 81var monthsShortDot$2="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),monthsShort$3="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),monthsParse$4=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],monthsRegex$5=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; 82//! moment.js locale configuration 83function processRelativeTime$3(number,withoutSuffix,key,isFuture){var format={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[number+"sekundi",number+"sekundit"],m:["ühe minuti","üks minut"],mm:[number+" minuti",number+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[number+" tunni",number+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[number+" kuu",number+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[number+" aasta",number+" aastat"]};return withoutSuffix?format[key][2]?format[key][2]:format[key][1]:isFuture?format[key][0]:format[key][1]}hooks.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(m,format){return m?/-MMM-/.test(format)?monthsShort$3[m.month()]:monthsShortDot$2[m.month()]:monthsShortDot$2},monthsRegex:monthsRegex$5,monthsShortRegex:monthsRegex$5,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:monthsParse$4,longMonthsParse:monthsParse$4,shortMonthsParse:monthsParse$4,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",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%
83d horas",d:"un dÃa",dd:"%d dÃas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha invalida"}),hooks.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:processRelativeTime$3,ss:processRelativeTime$3,m:processRelativeTime$3,mm:processRelativeTime$3,h:processRelativeTime$3,hh:processRelativeTime$3,d:processRelativeTime$3,dd:"%d päeva",M:processRelativeTime$3,MM:processRelativeTime$3,y:processRelativeTime$3,yy:processRelativeTime$3},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 84//! moment.js locale configuration 85hooks.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",ss:"%d segundo",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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}); 86//! moment.js locale configuration 87var symbolMap$5={1:"Û±",2:"Û²",3:"Û³",4:"Û´",5:"Ûµ",6:"Û¶",7:"Û·",8:"Û¸",9:"Û¹",0:"Û°"},numberMap$4={"Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","Û°":"0"};hooks.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(input){return/بعد از Ø¸ÙØ±/.test(input)},meridiem:function(hour,minute,isLower){return hour<12?"ÙØ¨Ù از Ø¸ÙØ±":"بعد از Ø¸ÙØ±"},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 ساÙ"},preparse:function(string){return string.replace(/[Û°-Û¹]/g,(function(match){return numberMap$4[match]})).replace(/Ø/g,",")},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$5[match]})).replace(/,/g,"Ø")},dayOfMonthOrdinalParse:/\d{1,2}Ù /,ordinal:"%dÙ ",week:{dow:6,doy:12}}); 88//! moment.js locale configuration 89var numbersPast="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),numbersFuture=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",numbersPast[7],numbersPast[8],numbersPast[9]];function translate$2(number,withoutSuffix,key,isFuture){var result="";switch(key){case"s":return isFuture?"muutaman sekunnin":"muutama sekunti";case"ss":return isFuture?"sekunnin":"sekuntia";case"m":return isFuture?"minuutin":"minuutti";case"mm":result=isFuture?"minuutin":"minuuttia";break;case"h":return isFuture?"tunnin":"tunti";case"hh":result=isFuture?"tunnin":"tuntia";break;case"d":return isFuture?"päivän":"päivä";case"dd":result=isFuture?"päivän":"päivää";break;case"M":return isFuture?"kuukauden":"kuukausi";case"MM":result=isFuture?"kuukauden":"kuukautta";break;case"y":return isFuture?"vuoden":"vuosi";case"yy":result=isFuture?"vuoden":"vuotta"}return result=function verbalNumber(number,isFuture){return number<10?isFuture?numbersFuture[number]:numbersPast[number]:number}(number,isFuture)+" "+result,result}hooks.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_t
89i_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:translate$2,ss:translate$2,m:translate$2,mm:translate$2,h:translate$2,hh:translate$2,d:translate$2,dd:translate$2,M:translate$2,MM:translate$2,y:translate$2,yy:translate$2},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 90//! moment.js locale configuration 91hooks.defineLocale("fil",{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:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(number){return number},week:{dow:1,doy:4}}), 92//! moment.js locale configuration 93hooks.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",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tÃmi",hh:"%d tÃmar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 94//! moment.js locale configuration 95hooks.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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(number,period){switch(period){default:case"M":case"Q":case"D":case"DDD":case"d":return number+(1===number?"er":"e");case"w":case"W":return number+(1===number?"re":"e")}}}), 96//! moment.js locale configuration 97hooks.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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(number,period){switch(period){default:case"M":case"Q":case"D":case"DDD":case"d":return number+(1===number?"er":"e");case"w":case"W":return number+(1===number?"re":"e")}},week:{dow:1,doy:4}}), 98//! moment.js locale configuration 99hooks.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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(number,period){switch(period){case"D":return number+(1===number?"er":"");default:case"M":case"Q":case"DDD":case"d":return number+(1===number?"er":"e");case"w":case"W":return number+(1===number?"re":"e")}},week:{dow:1,doy:4}}); 100//! moment.js locale configuration 101var monthsShortWithDots="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),monthsShortWithoutDots="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");hooks.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(m,format){return m?/-MMM-/.test(format)?monthsShortWithoutDots[m.month()]:monthsShortWithDots[m.month()]:monthsShortWithDots},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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(number){return number+(1===number||8===number||number>=20?"ste":"de")},week:{dow:1,doy:4}});hooks.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],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:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mÃ",MM:"%d mÃonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(number){return number+(1===number?"d":number%10==2?"na":"mh")},week:{dow:1,doy:4}}); 102//! moment.js locale configuration 103function processRelativeTime$4(number,withoutSuffix,key,isFuture){var format={s:["थà¥à¤¡à¤¯à¤¾ सॠà¤à¤à¤¡à¤¾à¤à¤¨à¥","थà¥à¤¡à¥ सॠà¤à¤à¤¡"],ss:[number+" सॠà¤à¤à¤¡à¤¾à¤à¤¨à¥",number+" सॠà¤à¤à¤¡"],m:["à¤à¤à¤¾ मिणà¤à¤¾à¤¨","à¤à¤ मिनà¥à¤"],mm:[number+" मिणà¤à¤¾à¤à¤¨à¥",number+" मिणà¤à¤¾à¤"],h:["à¤à¤à¤¾ वरान","à¤à¤ वर"],hh:[number+" वराà¤à¤¨à¥",number+" वराà¤"],d:["à¤à¤à¤¾ दिसान","à¤à¤ दà¥à¤¸"],dd:[number+" दिसाà¤à¤¨à¥",number+" दà¥à¤¸"],M:["à¤à¤à¤¾ मà¥à¤¹à¤¯à¤¨à¥à¤¯à¤¾à¤¨","à¤à¤ मà¥à¤¹à¤¯à¤¨à¥"],MM:[number+" मà¥à¤¹à¤¯à¤¨à¥à¤¯à¤¾à¤¨à¥",number+" मà¥à¤¹à¤¯à¤¨à¥"],y:["à¤à¤à¤¾ वरà¥à¤¸à¤¾à¤¨","à¤à¤ वरà¥à¤¸"],yy:[number+" वरà¥à¤¸à¤¾à¤à¤¨à¥",number+" वरà¥à¤¸à¤¾à¤"]};return isFuture?format[key][0]:format[key][1]} 104//! moment.js locale configuration 105function processRelativeTime$5(number,withoutSuffix,key,isFuture){var format={s:["thoddea sekondamni","thodde sekond"],ss:[number+" sekondamni",number+" sekond"],m:["eka mintan","ek minut"],mm:[number+" mintamni",number+" mintam"],h:["eka voran","ek vor"],hh:[number+" voramni",number+" voram"],d:["eka disan","ek dis"],dd:[number+" disamni",number+" dis"],M:["eka mhoinean","ek mhoino"],MM:[number+" mhoineamni",number+" mhoine"],y:["eka vorsan","ek voros"],yy:[number+" vorsamni",number+" vorsam"]};return isFuture?format[key][0]:format[key][1]}hooks.defineLocale("gd",{months:["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"],monthsShort:["Faoi","Gear","Mà rt","Gibl","Cèit","Ãgmh","Iuch","Lùn","Sult","Dà mh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimà irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà ","Ci","Ar","Ha","Sa"],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]
105LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(number){return number+(1===number?"d":number%10==2?"na":"mh")},week:{dow:1,doy:4}}), 106//! moment.js locale configuration 107hooks.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(str){return 0===str.indexOf("un")?"n"+str:"en "+str},past:"hai %s",s:"uns segundos",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),hooks.defineLocale("gom-deva",{months:{standalone:"à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥_मारà¥à¤_à¤à¤ªà¥à¤°à¥à¤²_मà¥_à¤à¥à¤¨_à¤à¥à¤²à¤¯_à¤à¤à¤¸à¥à¤_सपà¥à¤à¥à¤à¤¬à¤°_à¤à¤à¥à¤à¥à¤¬à¤°_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°_डिसà¥à¤à¤¬à¤°".split("_"),format:"à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥à¤à¥à¤¯à¤¾_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥à¤à¥à¤¯à¤¾_मारà¥à¤à¤¾à¤à¥à¤¯à¤¾_à¤à¤ªà¥à¤°à¥à¤²à¤¾à¤à¥à¤¯à¤¾_मà¥à¤¯à¤¾à¤à¥à¤¯à¤¾_à¤à¥à¤¨à¤¾à¤à¥à¤¯à¤¾_à¤à¥à¤²à¤¯à¤¾à¤à¥à¤¯à¤¾_à¤à¤à¤¸à¥à¤à¤¾à¤à¥à¤¯à¤¾_सपà¥à¤à¥à¤à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾_à¤à¤à¥à¤à¥à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾_डिसà¥à¤à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾".split("_"),isFormat:/MMMM(\s)+D[oD]?/},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, MMMM Do, YYYY, A h:mm [वाà¤à¤¤à¤¾à¤]",llll:"ddd, D MMM 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:processRelativeTime$4,ss:processRelativeTime$4,m:processRelativeTime$4,mm:processRelativeTime$4,h:processRelativeTime$4,hh:processRelativeTime$4,d:processRelativeTime$4,dd:processRelativeTime$4,M:processRelativeTime$4,MM:processRelativeTime$4,y:processRelativeTime$4,yy:processRelativeTime$4},dayOfMonthOrdinalParse:/\d{1,2}(वà¥à¤°)/,ordinal:function(number,period){return"D"===period?number+"वà¥à¤°":number},week:{dow:1,doy:4},meridiemParse:/रातà¥|सà¤à¤¾à¤³à¥à¤|दनपाराà
vendor: 5,810 bytes, lines 107-111
107¤|साà¤à¤à¥/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"रातà¥"===meridiem?hour<4?hour:hour+12:"सà¤à¤¾à¤³à¥à¤"===meridiem?hour:"दनपाराà¤"===meridiem?hour>12?hour:hour+12:"साà¤à¤à¥"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"रातà¥":hour<12?"सà¤à¤¾à¤³à¥à¤":hour<16?"दनपाराà¤":hour<20?"साà¤à¤à¥":"रातà¥"}}),hooks.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:processRelativeTime$5,ss:processRelativeTime$5,m:processRelativeTime$5,mm:processRelativeTime$5,h:processRelativeTime$5,hh:processRelativeTime$5,d:processRelativeTime$5,dd:processRelativeTime$5,M:processRelativeTime$5,MM:processRelativeTime$5,y:processRelativeTime$5,yy:processRelativeTime$5},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(number,period){return"D"===period?number+"er":number},week:{dow:1,doy:4},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"rati"===meridiem?hour<4?hour:hour+12:"sokallim"===meridiem?hour:"donparam"===meridiem?hour>12?hour:hour+12:"sanje"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"rati":hour<12?"sokallim":hour<16?"donparam":hour<20?"sanje":"rati"}}); 108//! moment.js locale configuration 109var symbolMap$6={1:"à«§",2:"૨",3:"à«©",4:"૪",5:"à««",6:"૬",7:"à«",8:"à«®",9:"૯",0:"૦"},numberMap$5={"à«§":"1","૨":"2","à«©":"3","૪":"4","à««":"5","૬":"6","à«":"7","à«®":"8","૯":"9","૦":"0"};hooks.defineLocale("gu",{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:"ઠમà«àª પળà«",ss:"%d સà«àªàªàª¡",m:"àªàª મિનિàª",mm:"%d મિનિàª",h:"àªàª àªàª²àª¾àª",hh:"%d àªàª²àª¾àª",d:"àªàª દિવસ",dd:"%d દિવસ",M:"àªàª મહિનà«",MM:"%d મહિનà«",y:"àªàª વરà«àª·",yy:"%d વરà«àª·"},preparse:function(string){return string.replace(/[૧૨૩૪૫૬à«à«®à«¯à«¦]/g,(function(match){return numberMap$5[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$6[match]}))},meridiemParse:/રાત|બપà«àª°|સવાર|સાàªàª/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"રાત"===meridiem?hour<4?hour:hour+12:"સવાર"===meridiem?hour:"બપà«àª°"===meridiem?hour>=10?hour:hour+12:"સાàªàª"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"રાત":hour<10?"સવાર":hour<17?"બપà«àª°":hour<20?"સાàªàª":"રાત"},week:{dow:0,doy:6}}), 110//! moment.js locale configuration 111hooks.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:"×ספר ×©× ××ת",
vendor: 6,915 bytes, lines 111-119
111ss:"%d ×©× ××ת",m:"××§×",mm:"%d ××§×ת",h:"שע×",hh:function(number){return 2===number?"שעת×××":number+" שע×ת"},d:"×××",dd:function(number){return 2===number?"××××××":number+" ××××"},M:"×××ש",MM:function(number){return 2===number?"×××ש×××":number+" ×××ש××"},y:"×©× ×",yy:function(number){return 2===number?"×©× ×ª×××":number%10==0&&10!==number?number+" ×©× ×":number+" ×©× ××"}},meridiemParse:/×××"צ|××¤× ×"צ|×××¨× ×צ×ר×××|××¤× × ×צ×ר×××|××¤× ×ת ××קר|×××קר|×ער×/i,isPM:function(input){return/^(×××"צ|×××¨× ×צ×ר×××|×ער×)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<5?"××¤× ×ת ××קר":hour<10?"×××קר":hour<12?isLower?'××¤× ×"צ':"××¤× × ×צ×ר×××":hour<18?isLower?'×××"צ':"×××¨× ×צ×ר×××":"×ער×"}}); 112//! moment.js locale configuration 113var symbolMap$7={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"à¥",8:"८",9:"९",0:"०"},numberMap$6={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","à¥":"7","८":"8","९":"9","०":"0"}; 114//! moment.js locale configuration 115function translate$3(number,withoutSuffix,key){var result=number+" ";switch(key){case"ss":return result+=1===number?"sekunda":2===number||3===number||4===number?"sekunde":"sekundi";case"m":return withoutSuffix?"jedna minuta":"jedne minute";case"mm":return result+=1===number?"minuta":2===number||3===number||4===number?"minute":"minuta";case"h":return withoutSuffix?"jedan sat":"jednog sata";case"hh":return result+=1===number?"sat":2===number||3===number||4===number?"sata":"sati";case"dd":return result+=1===number?"dan":"dana";case"MM":return result+=1===number?"mjesec":2===number||3===number||4===number?"mjeseca":"mjeseci";case"yy":return result+=1===number?"godina":2===number||3===number||4===number?"godine":"godina"}}hooks.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:"à¤à¥à¤ हॠà¤à¥à¤·à¤£",ss:"%d सà¥à¤à¤à¤¡",m:"à¤à¤ मिनà¤",mm:"%d मिनà¤",h:"à¤à¤ à¤à¤à¤à¤¾",hh:"%d à¤à¤à¤à¥",d:"à¤à¤ दिन",dd:"%d दिन",M:"à¤à¤ महà¥à¤¨à¥",MM:"%d महà¥à¤¨à¥",y:"à¤à¤ वरà¥à¤·",yy:"%d वरà¥à¤·"},preparse:function(string){return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,(function(match){return numberMap$6[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$7[match]}))},meridiemParse:/रात|सà¥à¤¬à¤¹|दà¥à¤ªà¤¹à¤°|शाम/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"रात"===meridiem?hour<4?hour:hour+12:"सà¥à¤¬à¤¹"===meridiem?hour:"दà¥à¤ªà¤¹à¤°"===meridiem?hour>=10?hour:hour+12:"शाम"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"रात":hour<10?"सà¥à¤¬à¤¹":hour<17?"दà¥à¤ªà¤¹à¤°":hour<20?"शाम":"रात"},week:{dow:0,doy:6}}),hooks.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:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[proÅ¡lu] [nedjelju] [u] LT";case 3:return"[proÅ¡lu] [srijedu] [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",ss:translate$3,m:translate$3,mm:translate$3,h:translate$3,hh:translate$3,d:"dan",dd:translate$3,M:"mjesec",MM:translate$3,y:"godinu",yy:translate$3},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}); 116//! moment.js locale configuration 117var weekEndings="vasárnap hétfÅn kedden szerdán csütörtökön pénteken szombaton".split(" ");function translate$4(number,withoutSuffix,key,isFuture){var num=number;switch(key){case"s":return isFuture||withoutSuffix?"néhány másodperc":"néhány másodperce";case"ss":return num+(isFuture||withoutSuffix)?" másodperc":" másodperce";case"m":return"egy"+(isFuture||withoutSuffix?" perc":" perce");case"mm":return num+(isFuture||withoutSuffix?" perc":" perce");case"h":return"egy"+(isFuture||withoutSuffix?" óra":" órája");case"hh":return num+(isFuture||withoutSuffix?" óra":" órája");case"d":return"egy"+(isFuture||withoutSuffix?" nap":" napja");case"dd":return num+(isFuture||withoutSuffix?" nap":" napja");case"M":return"egy"+(isFuture||withoutSuffix?" hónap":" hónapja");case"MM":return num+(isFuture||withoutSuffix?" hónap":" hónapja");case"y":return"egy"+(isFuture||withoutSuffix?" év":" éve");case"yy":return num+(isFuture||withoutSuffix?" év":" éve")}return""}function week(isFuture){return(isFuture?"":"[múlt] ")+"["+weekEndings[this.day()]+"] LT[-kor]"} 118//! moment.js locale configuration 119function plural$2(n){return n%100==11||n%10!=1}function translate$5(number,withoutSuffix,key,isFuture){var result=number+" ";switch(key){case"s":return withoutSuffix||isFuture?"nokkrar sekúndur":"nokkrum sekúndum";
vendor: 18,050 bytes, lines 119-137
119case"ss":return plural$2(number)?result+(withoutSuffix||isFuture?"sekúndur":"sekúndum"):result+"sekúnda";case"m":return withoutSuffix?"mÃnúta":"mÃnútu";case"mm":return plural$2(number)?result+(withoutSuffix||isFuture?"mÃnútur":"mÃnútum"):withoutSuffix?result+"mÃnúta":result+"mÃnútu";case"hh":return plural$2(number)?result+(withoutSuffix||isFuture?"klukkustundir":"klukkustundum"):result+"klukkustund";case"d":return withoutSuffix?"dagur":isFuture?"dag":"degi";case"dd":return plural$2(number)?withoutSuffix?result+"dagar":result+(isFuture?"daga":"dögum"):withoutSuffix?result+"dagur":result+(isFuture?"dag":"degi");case"M":return withoutSuffix?"mánuður":isFuture?"mánuð":"mánuði";case"MM":return plural$2(number)?withoutSuffix?result+"mánuðir":result+(isFuture?"mánuði":"mánuðum"):withoutSuffix?result+"mánuður":result+(isFuture?"mánuð":"mánuði");case"y":return withoutSuffix||isFuture?"ár":"ári";case"yy":return plural$2(number)?result+(withoutSuffix||isFuture?"ár":"árum"):result+(withoutSuffix||isFuture?"ár":"ári")}}hooks.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(input){return"u"===input.charAt(1).toLowerCase()},meridiem:function(hours,minutes,isLower){return hours<12?!0===isLower?"de":"DE":!0===isLower?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return week.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return week.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:translate$4,ss:translate$4,m:translate$4,mm:translate$4,h:translate$4,hh:translate$4,d:translate$4,dd:translate$4,M:translate$4,MM:translate$4,y:translate$4,yy:translate$4},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 120//! moment.js locale configuration 121hooks.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:"Õ´Õ« ÖÕ¡Õ¶Õ« Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶",ss:"%d Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶",m:"ÖÕ¸ÕºÕ¥",mm:"%d ÖÕ¸ÕºÕ¥",h:"ÕªÕ¡Õ´",hh:"%d ÕªÕ¡Õ´",d:"Ö Ö",dd:"%d Ö Ö",M:"Õ¡Õ´Õ«Õ½",MM:"%d Õ¡Õ´Õ«Õ½",y:"Õ¿Õ¡ÖÕ«",yy:"%d Õ¿Õ¡ÖÕ«"},meridiemParse:/Õ£Õ«Õ·Õ¥ÖÕ¾Õ¡|Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡|ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡|Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶/,isPM:function(input){return/^(ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡|Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶)$/.test(input)},meridiem:function(hour){return hour<4?"Õ£Õ«Õ·Õ¥ÖÕ¾Õ¡":hour<12?"Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡":hour<17?"ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡":"Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(Õ«Õ¶|ÖÕ¤)/,ordinal:function(number,period){switch(period){case"DDD":case"w":case"W":case"DDDo":return 1===number?number+"-Õ«Õ¶":number+"-ÖÕ¤";default:return number}},week:{dow:1,doy:7}}), 122//! moment.js locale configuration 123hooks.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_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(hour,meridiem){return 12===hour&&(hour=0),"pagi"===meridiem?hour:"siang"===meridiem?hour>=11?hour:hour+12:"sore"===meridiem||"malam"===meridiem?hour+12:void 0},meridiem:function(hours,minutes,isLower){return hours<11?"pagi":hours<15?"siang":hours<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",ss:"%d 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:0,doy:6}}),hooks.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:translate$5,ss:translate$5,m:translate$5,mm:translate$5,h:"klukkustund",hh:translate$5,d:translate$5,dd:translate$5,M:translate$5,MM:translate$5,y:translate$5,yy:translate$5},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 124//! moment.js locale configuration 125hooks.defineLocale("it-ch",{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(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(s){return(/^[0-9].+$/.test(s)?"tra":"in")+" "+s},past:"%s fa",s:"alcuni secondi",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}), 126//! moment.js locale configuration 127hooks.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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:function(s){return(/^[0-9].+$/.test(s)?"tra":"in")+" "+s},past:"%s fa",s:"alcuni secondi",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}), 128//! moment.js locale configuration 129hooks.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令å",narrow:"ã¿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"å¹³æ",narrow:"ã»",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"æå",narrow:"ã¼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大æ£",narrow:"ã½",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"ææ²»",narrow:"ã¾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西æ¦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"ç´å å",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(å |\d+)å¹´/,eraYearOrdinalParse:function(input,match){return"å "===match[1]?1:parseInt(match[1]||input,10)},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:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥ dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥(ddd) HH:mm"},meridiemParse:/åå|åå¾/i,isPM:function(input){return"åå¾"===input},meridiem:function(hour,minute,isLower){return hour<12?"åå":"åå¾"},calendar:{sameDay:"[仿¥] LT",nextDay:"[ææ¥] LT",nextWeek:function(now){return now.week()!==this.week()?"[æ¥é±]dddd LT":"dddd LT"},lastDay:"[æ¨æ¥] LT",lastWeek:function(now){return this.week()!==now.week()?"[å é±]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}æ¥/,ordinal:function(number,period){switch(period){case"y":return 1===number?"å å¹´":number+"å¹´";case"d":case"D":case"DDD":return number+"æ¥";default:return number}},relativeTime:{future:"%så¾",past:"%så",s:"æ°ç§",ss:"%dç§",m:"1å",mm:"%då",h:"1æé",hh:"%dæé",d:"1æ¥",dd:"%dæ¥",M:"1ã¶æ",MM:"%dã¶æ",y:"1å¹´",yy:"%då¹´"}}), 130//! moment.js locale configuration 131hooks.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(hour,meridiem){return 12===hour&&(hour=0),"enjing"===meridiem?hour:"siyang"===meridiem?hour>=11?hour:hour+12:"sonten"===meridiem||"ndalu"===meridiem?hour+12:void 0},meridiem:function(hours,minutes,isLower){return hours<11?"enjing":hours<15?"siyang":hours<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",ss:"%d 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,doy:7}}), 132//! moment.js locale configuration 133hooks.defineLocale("ka",{months:"áááááá á_ááááá áááá_ááá á¢á_ááá ááá_áááá¡á_ááááá¡á_ááááá¡á_ááááá¡á¢á_á¡áá¥á¢ááááá á_áá¥á¢ááááá á_ááááááá á_áááááááá á".split("_"),monthsShort:"ááá_ááá_ááá _ááá _ááá_ááá_ááá_ááá_á¡áá¥_áá¥á¢_ááá_ááá".split("_"),weekdays:{standalone:"áááá á_áá á¨ááááá_á¡ááá¨ááááá_ááá®á¨ááááá_á®á£áá¨ááááá_ááá áá¡áááá_á¨ááááá".split("_"),format:"áááá áá¡_áá á¨ááááá¡_á¡ááá¨ááááá¡_ááá®á¨ááááá¡_á®á£áá¨ááááá¡_ááá áá¡áááá¡_á¨ááááá¡".split("_"),isFormat:/(á¬ááá|á¨ááááá)/},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:"[á¨ááááá] dddd LT[-áá]",lastWeek:"[á¬ááá] dddd LT-áá",sameElse:"L"},relativeTime:{future:function(s){return s.replace(/(á¬áá|á¬á£á|á¡ááá|á¬áá|áá¦|áá)(á|á)/,(function($0,$1,$2){return"á"===$2?$1+"á¨á":$1+$2+"á¨á"}))},past:function(s){return/(á¬ááá|á¬á£áá|á¡áááá|áá¦á|ááá)/.test(s)?s.replace(/(á|á)$/,"áá¡ á¬áá"):/á¬ááá/.test(s)?s.replace(/á¬ááá$/,"á¬ááá¡ á¬áá"):s},s:"á áááááááá á¬ááá",ss:"%d á¬ááá",m:"á¬á£áá",mm:"%d á¬á£áá",h:"á¡áááá",hh:"%d á¡áááá",d:"áá¦á",dd:"%d áá¦á",M:"ááá",MM:"%d ááá",y:"á¬ááá",yy:"%d á¬ááá"},dayOfMonthOrdinalParse:/0|1-áá|áá-\d{1,2}|\d{1,2}-á/,ordinal:function(number){return 0===number?number:1===number?number+"-áá":number<20||number<=100&&number%20==0||number%100==0?"áá-"+number:number+"-á"},week:{dow:1,doy:7}}); 134//! moment.js locale configuration 135var suffixes$1={0:"-ÑÑ",1:"-ÑÑ",2:"-ÑÑ",3:"-ÑÑ",4:"-ÑÑ",5:"-ÑÑ",6:"-ÑÑ",7:"-ÑÑ",8:"-ÑÑ",9:"-ÑÑ",10:"-ÑÑ",20:"-ÑÑ",30:"-ÑÑ",40:"-ÑÑ",50:"-ÑÑ",60:"-ÑÑ",70:"-ÑÑ",80:"-ÑÑ",90:"-ÑÑ",100:"-ÑÑ"};hooks.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:"бÑÑнеÑе ÑекÑнд",ss:"%d ÑекÑнд",m:"бÑÑ Ð¼Ð¸Ð½ÑÑ",mm:"%d минÑÑ",h:"бÑÑ ÑаÒаÑ",hh:"%d ÑаÒаÑ",d:"бÑÑ ÐºÒ¯Ð½",dd:"%d күн",M:"бÑÑ Ð°Ð¹",MM:"%d ай",y:"бÑÑ Ð¶Ñл",yy:"%d жÑл"},dayOfMonthOrdinalParse:/\d{1,2}-(ÑÑ|ÑÑ)/,ordinal:function(number){var a=number%10,b=number>=100?100:null;return number+(suffixes$1[number]||suffixes$1[a]||suffixes$1[b])},week:{dow:1,doy:7}}); 136//! moment.js locale configuration 137var symbolMap$8={1:"á¡",2:"á¢",3:"á£",4:"á¤",5:"á¥",6:"á¦",7:"á§",8:"á¨",9:"á©",0:"á "},numberMap$7={"á¡":"1","á¢":"2","á£":"3","á¤":"4","á¥":"5","á¦":"6","á§":"7","á¨":"8","á©":"9","á ":"0"};hooks.defineLocale("km",{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(input){return"áááá¶á "===in
vendor: 9,343 bytes, lines 137-147
137put},meridiem:function(hour,minute,isLower){return hour<12?"áááá¹á":"áááá¶á "},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 áááá¶á"},dayOfMonthOrdinalParse:/áá¸\d{1,2}/,ordinal:"áá¸%d",preparse:function(string){return string.replace(/[á¡á¢á£á¤á¥á¦á§á¨á©á ]/g,(function(match){return numberMap$7[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$8[match]}))},week:{dow:1,doy:4}}); 138//! moment.js locale configuration 139var symbolMap$9={1:"à³§",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"à³",8:"à³®",9:"೯",0:"೦"},numberMap$8={"à³§":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","à³":"7","à³®":"8","೯":"9","೦":"0"};hooks.defineLocale("kn",{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:"à²à³à²²à²µà³ à²à³à²·à²£à²à²³à³",ss:"%d ಸà³à²à³à²à²¡à³à²à²³à³",m:"à²à²à²¦à³ ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"à²à²à²¦à³ à²à²à²à³",hh:"%d à²à²à²à³",d:"à²à²à²¦à³ ದಿನ",dd:"%d ದಿನ",M:"à²à²à²¦à³ ತಿà²à²à²³à³",MM:"%d ತಿà²à²à²³à³",y:"à²à²à²¦à³ ವರà³à²·",yy:"%d ವರà³à²·"},preparse:function(string){return string.replace(/[೧೨೩೪೫೬à³à³®à³¯à³¦]/g,(function(match){return numberMap$8[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$9[match]}))},meridiemParse:/ರಾತà³à²°à²¿|ಬà³à²³à²¿à²à³à²à³|ಮಧà³à²¯à²¾à²¹à³à²¨|ಸà²à²à³/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"ರಾತà³à²°à²¿"===meridiem?hour<4?hour:hour+12:"ಬà³à²³à²¿à²à³à²à³"===meridiem?hour:"ಮಧà³à²¯à²¾à²¹à³à²¨"===meridiem?hour>=10?hour:hour+12:"ಸà²à²à³"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"ರಾತà³à²°à²¿":hour<10?"ಬà³à²³à²¿à²à³à²à³":hour<17?"ಮಧà³à²¯à²¾à²¹à³à²¨":hour<20?"ಸà²à²à³":"ರಾತà³à²°à²¿"},dayOfMonthOrdinalParse:/\d{1,2}(ನà³à³)/,ordinal:function(number){return number+"ನà³à³"},week:{dow:0,doy:6}}), 140//! moment.js locale configuration 141hooks.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: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",l:"YYYY.MM.DD.",ll:"YYYYë MMMM Dì¼",lll:"YYYYë MMMM Dì¼ A h:mm",llll:"YYYYë MMMM Dì¼ dddd A h:mm"},calendar:{sameDay:"ì¤ë LT",nextDay:"ë´ì¼ LT",nextWeek:"dddd LT",lastDay:"ì´ì LT",lastWeek:"ì§ë주 dddd LT",sameElse:"L"},relativeTime:{future:"%s í",past:"%s ì ",s:"ëª ì´",ss:"%dì´",m:"1ë¶",mm:"%dë¶",h:"í ìê°",hh:"%dìê°",d:"í루",dd:"%dì¼",M:"í ë¬",MM:"%dë¬",y:"ì¼ ë ",yy:"%dë "},dayOfMonthOrdinalParse:/\d{1,2}(ì¼|ì|주)/,ordinal:function(number,period){switch(period){case"d":case"D":case"DDD":return number+"ì¼";case"M":return number+"ì";case"w":case"W":return number+"주";default:return number}},meridiemParse:/ì¤ì |ì¤í/,isPM:function(token){return"ì¤í"===token},meridiem:function(hour,minute,isUpper){return hour<12?"ì¤ì ":"ì¤í"}}); 142//! moment.js locale configuration 143var symbolMap$a={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},numberMap$9={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"},months$8=["کاÙÙÙÛ Ø¯ÙÙÛÙ ","Ø´ÙØ¨Ø§Øª","ئازار","ÙÛØ³Ø§Ù","Ø¦Ø§ÛØ§Ø±","ØÙزÛÛØ±Ø§Ù","تÛÙ Ù ÙØ²","ئاب","ئÛÛÙÙÙÙ","تشرÛÙÛ ÛÛÙÛÙ ","تشرÛÙÛ Ø¯ÙÙÛÙ ","ÙØ§ÙÙÙÛ ÛÛÚ©ÛÙ "];hooks.defineLocale("ku",{months:months$8,monthsShort:months$8,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(input){return/ئÛÙØ§Ø±Ùâ/.test(input)},meridiem:function(hour,minute,isLower){return hour<12?"بÙâÛØ§ÙÛ":"ئÛÙØ§Ø±Ùâ"},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 ساڵ"},preparse:function(string){return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(match){return numberMap$9[match]})).replace(/Ø/g,",")},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$a[match]})).replace(/,/g,"Ø")},week:{dow:6,doy:12}}); 144//! moment.js locale configuration 145var suffixes$2={0:"-ÑÒ¯",1:"-Ñи",2:"-Ñи",3:"-ÑÒ¯",4:"-ÑÒ¯",5:"-Ñи",6:"-ÑÑ",7:"-Ñи",8:"-Ñи",9:"-ÑÑ",10:"-ÑÑ",20:"-ÑÑ",30:"-ÑÑ",40:"-ÑÑ",50:"-ÑÒ¯",60:"-ÑÑ",70:"-Ñи",80:"-Ñи",90:"-ÑÑ",100:"-ÑÒ¯"}; 146//! moment.js locale configuration 147function processRelativeTime$6(number,withoutSuffix,key,isFuture){var format={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 withoutSuffix?format[key][0]:format[key][1]}function eifelerRegelAppliesToNumber(number){if(number=parseInt(number,10),isNaN(number))return!1;if(number<0)return!0;if(number<10)return 4<=number&&number<=7;if(number<100){var lastDigit=number%10;return eifelerRegelAppliesToNumber(0===lastDigit?number/10:lastDigit)}if(number<1e4){for(;number>=10;)number/=10;return eifelerRegelAppliesToNumber(number)}return eifelerRegelAppliesToNumber(number/=1e3)}hooks.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:"биÑнеÑе ÑекÑнд",ss:"%d ÑекÑнд",m:"Ð±Ð¸Ñ Ð¼Ò¯Ð½Ó©Ñ",mm:"%d мүнөÑ",h:"Ð±Ð¸Ñ ÑааÑ",hh:"%
147d ÑааÑ",d:"Ð±Ð¸Ñ ÐºÒ¯Ð½",dd:"%d күн",M:"Ð±Ð¸Ñ Ð°Ð¹",MM:"%d ай",y:"Ð±Ð¸Ñ Ð¶Ñл",yy:"%d жÑл"},dayOfMonthOrdinalParse:/\d{1,2}-(Ñи|ÑÑ|ÑÒ¯|ÑÑ)/,ordinal:function(number){var a=number%10,b=number>=100?100:null;return number+(suffixes$2[number]||suffixes$2[a]||suffixes$2[b])},week:{dow:1,doy:7}}),hooks.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(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function processFutureTime(string){return eifelerRegelAppliesToNumber(string.substr(0,string.indexOf(" ")))?"a "+string:"an "+string},past:function processPastTime(string){return eifelerRegelAppliesToNumber(string.substr(0,string.indexOf(" ")))?"viru "+string:"virun "+string},s:"e puer Sekonnen",ss:"%d Sekonnen",m:processRelativeTime$6,mm:"%d Minutten",h:processRelativeTime$6,hh:"%d Stonnen",d:processRelativeTime$6,dd:"%d Deeg",M:processRelativeTime$6,MM:"%d Méint",y:processRelativeTime$6,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 148//! moment.js locale configuration 149hooks.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(input){return"àºàºàºà»àº¥àº"===input},meridiem:function(hour,minute,isLower){return hour<12?"àºàºàºà»àºàº»à»àº²":"àºàºàºà»àº¥àº"},calendar:{sameDay:"[ມືà»àºàºµà»à»àº§àº¥àº²] LT",nextDay:"[ມືà»àºàº·à»àºà»àº§àº¥àº²] LT",nextWeek:"[ວັàº]dddd[à»à»àº²à»àº§àº¥àº²] LT",lastDay:"[ມືà»àº§àº²àºàºàºµà»à»àº§àº¥àº²] LT",lastWeek:"[ວັàº]dddd[à»àº¥à»àº§àºàºµà»à»àº§àº¥àº²] LT",sameElse:"L"},relativeTime:{future:"àºàºµàº %s",past:"%sàºà»àº²àºàº¡àº²",s:"àºà»à»à»àºàº»à»àº²à»àºàº§àº´àºàº²àºàºµ",ss:"%d ວິàºàº²àºàºµ",m:"1 àºàº²àºàºµ",mm:"%d àºàº²àºàºµ",h:"1 àºàº»à»àº§à»àº¡àº",hh:"%d àºàº»à»àº§à»àº¡àº",d:"1 ມືà»",dd:"%d ມືà»",M:"1 à»àºàº·àºàº",MM:"%d à»àºàº·àºàº",y:"1 àºàºµ",yy:"%d àºàºµ"},dayOfMonthOrdinalParse:/(àºàºµà»)\d{1,2}/,ordinal:function(number){return"àºàºµà»"+number}}); 150//! moment.js locale configuration 151var units={ss:"sekundÄ_sekundžių_sekundes",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"};function translateSingular(number,withoutSuffix,key,isFuture){return withoutSuffix?forms(key)[0]:isFuture?forms(key)[1]:forms(key)[2]}function special(number){return number%10==0||number>10&&number<20}function forms(key){return units[key].split("_")}function translate$6(number,withoutSuffix,key,isFuture){var result=number+" ";return 1===number?result+translateSingular(0,withoutSuffix,key[0],isFuture):withoutSuffix?result+(special(number)?forms(key)[1]:forms(key)[0]):isFuture?result+forms(key)[1]:result+(special(number)?forms(key)[1]:forms(key)[2])}hooks.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:function translateSeconds(number,withoutSuffix,key,isFuture){return withoutSuffix?"kelios sekundÄs":isFuture?"kelių sekundžių":"kelias sekundes"},ss:translate$6,m:translateSingular,mm:translate$6,h:translateSingular,hh:translate$6,d:translateSingular,dd:translate$6,M:translateSingular,MM:translate$6,y:translateSingular,yy:translate$6},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(number){return number+"-oji"},week:{dow:1,doy:4}}); 152//! moment.js locale configuration 153var units$1={ss:"sekundes_sekundÄm_sekunde_sekundes".split("_"),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_die
153nÄ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("_")};function format$1(forms,number,withoutSuffix){return withoutSuffix?number%10==1&&number%100!=11?forms[2]:forms[3]:number%10==1&&number%100!=11?forms[0]:forms[1]}function relativeTimeWithPlural$1(number,withoutSuffix,key){return number+" "+format$1(units$1[key],number,withoutSuffix)}function relativeTimeWithSingular(number,withoutSuffix,key){return format$1(units$1[key],number,withoutSuffix)}hooks.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:function relativeSeconds(number,withoutSuffix){return withoutSuffix?"dažas sekundes":"dažÄm sekundÄm"},ss:relativeTimeWithPlural$1,m:relativeTimeWithSingular,mm:relativeTimeWithPlural$1,h:relativeTimeWithSingular,hh:relativeTimeWithPlural$1,d:relativeTimeWithSingular,dd:relativeTimeWithPlural$1,M:relativeTimeWithSingular,MM:relativeTimeWithPlural$1,y:relativeTimeWithSingular,yy:relativeTimeWithPlural$1},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}); 154//! moment.js locale configuration 155var translator={words:{ss:["sekund","sekunda","sekundi"],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(number,wordKey){return 1===number?wordKey[0]:number>=2&&number<=4?wordKey[1]:wordKey[2]},translate:function(number,withoutSuffix,key){var wordKey=translator.words[key];return 1===key.length?withoutSuffix?wordKey[0]:wordKey[1]:number+" "+translator.correctGrammaticalCase(number,wordKey)}}; 156//! moment.js locale configuration 157function translate$7(number,withoutSuffix,key,isFuture){switch(key){case"s":return withoutSuffix?"Ñ ÑÐ´Ñ Ñн ÑекÑнд":"Ñ ÑÐ´Ñ Ñн ÑекÑндÑн";case"ss":return number+(withoutSuffix?" ÑекÑнд":" ÑекÑндÑн");case"m":case"mm":return number+(withoutSuffix?" минÑÑ":" минÑÑÑн");case"h":case"hh":return number+(withoutSuffix?" Ñаг":" Ñагийн");case"d":case"dd":return number+(withoutSuffix?" өдөÑ":" өдÑийн");case"M":case"MM":return number+(withoutSuffix?" ÑаÑ":" ÑаÑÑн");case"y":case"yy":return number+(withoutSuffix?" жил":" жилийн");default:return number}}hooks.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(){return["[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"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:translator.translate,m:translator.translate,mm:translator.translate,h:translator.translate,hh:translator.translate,d:"dan",dd:translator.translate,M:"mjesec",MM:translator.translate,y:"godinu",yy:translator.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}), 158//! moment.js locale configuration 159hooks.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",ss:"%d hÄkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%
vendor: 5,417 bytes, lines 159-163
159d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}), 160//! moment.js locale configuration 161hooks.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:"Ð½ÐµÐºÐ¾Ð»ÐºÑ ÑекÑнди",ss:"%d ÑекÑнди",m:"една минÑÑа",mm:"%d минÑÑи",h:"еден ÑаÑ",hh:"%d ÑаÑа",d:"еден ден",dd:"%d дена",M:"еден меÑеÑ",MM:"%d меÑеÑи",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|Ñи|ви|Ñи|ми)/,ordinal:function(number){var lastDigit=number%10,last2Digits=number%100;return 0===number?number+"-ев":0===last2Digits?number+"-ен":last2Digits>10&&last2Digits<20?number+"-Ñи":1===lastDigit?number+"-ви":2===lastDigit?number+"-Ñи":7===lastDigit||8===lastDigit?number+"-ми":number+"-Ñи"},week:{dow:1,doy:7}}), 162//! moment.js locale configuration 163hooks.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:"ഠൽപ നിമിഷà´àµà´àµ¾",ss:"%d à´¸àµà´àµà´àµ»à´¡àµ",m:"à´à´°àµ മിനിറàµà´±àµ",mm:"%d മിനിറàµà´±àµ",h:"à´à´°àµ മണിà´àµà´àµàµ¼",hh:"%d മണിà´àµà´àµàµ¼",d:"à´à´°àµ ദിവസà´",dd:"%d ദിവസà´",M:"à´à´°àµ മാസà´",MM:"%d മാസà´",y:"à´à´°àµ വർഷà´",yy:"%d വർഷà´"},meridiemParse:/രാതàµà´°à´¿|രാവിലàµ|à´à´àµà´ à´à´´à´¿à´àµà´àµ|à´µàµà´àµà´¨àµà´¨àµà´°à´|രാതàµà´°à´¿/i,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"രാതàµà´°à´¿"===meridiem&&hour>=4||"à´à´àµà´ à´à´´à´¿à´àµà´àµ"===meridiem||"à´µàµà´àµà´¨àµà´¨àµà´°à´"===meridiem?hour+12:hour},meridiem:function(hour,minute,isLower){return hour<4?"രാതàµà´°à´¿":hour<12?"രാവിലàµ":hour<17?"à´à´àµà´ à´à´´à´¿à´àµà´àµ":hour<20?"à´µàµà´àµà´¨àµà´¨àµà´°à´":"രാതàµà´°à´¿"}}),hooks.defineLocale("mn",{months:"ÐÑгдүгÑÑÑ ÑаÑ_ХоÑÑдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑÑавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÓ©ÑөвдүгÑÑÑ ÑаÑ_ТавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑÑгадÑÐ³Ð°Ð°Ñ ÑаÑ_ÐолдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐаймдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑдүгÑÑÑ ÑаÑ_ÐÑавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑван нÑгдүгÑÑÑ ÑаÑ_ÐÑван Ñ Ð¾ÑÑдÑÐ³Ð°Ð°Ñ ÑаÑ".split("_"),monthsShort:"1 ÑаÑ_2 ÑаÑ_3 ÑаÑ_4 ÑаÑ_5 ÑаÑ_6 ÑаÑ_7 ÑаÑ_8 ÑаÑ_9 ÑаÑ_10 ÑаÑ_11 ÑаÑ_12 ÑаÑ".split("_"),monthsParseExact:!0,weekdays:"ÐÑм_Ðаваа_ÐÑгмаÑ_ÐÑ Ð°Ð³Ð²Ð°_ÐÒ¯ÑÑв_ÐааÑан_ÐÑмба".split("_"),weekdaysShort:"ÐÑм_Ðав_ÐÑг_ÐÑ Ð°_ÐÒ¯Ñ_Ðаа_ÐÑм".split("_"),weekdaysMin:"ÐÑ_Ðа_ÐÑ_ÐÑ _ÐÒ¯_Ðа_ÐÑ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY Ð¾Ð½Ñ MMMMÑн D",LLL:"YYYY Ð¾Ð½Ñ MMMMÑн D HH:mm",LLLL:"dddd, YYYY Ð¾Ð½Ñ MMMMÑн D HH:mm"},meridiemParse:/Ò®Ó¨|ҮХ/i,isPM:function(input){return"ҮХ"===input},meridiem:function(hour,minute,isLower){return hour<12?"Ò®Ó¨":"ҮХ"},calendar:{sameDay:"[ӨнөөдөÑ] LT",nextDay:"[ÐаÑгааÑ
vendor: 18,153 bytes, lines 163-183
163] LT",nextWeek:"[ÐÑÑÑ ] dddd LT",lastDay:"[Ó¨ÑигдөÑ] LT",lastWeek:"[ӨнгөÑÑөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s даÑаа",past:"%s өмнө",s:translate$7,ss:translate$7,m:translate$7,mm:translate$7,h:translate$7,hh:translate$7,d:translate$7,dd:translate$7,M:translate$7,MM:translate$7,y:translate$7,yy:translate$7},dayOfMonthOrdinalParse:/\d{1,2} өдөÑ/,ordinal:function(number,period){switch(period){case"d":case"D":case"DDD":return number+" өдөÑ";default:return number}}}); 164//! moment.js locale configuration 165var symbolMap$b={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"à¥",8:"८",9:"९",0:"०"},numberMap$a={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","à¥":"7","८":"8","९":"9","०":"0"};function relativeTimeMr(number,withoutSuffix,string,isFuture){var output="";if(withoutSuffix)switch(string){case"s":output="à¤à¤¾à¤¹à¥ सà¥à¤à¤à¤¦";break;case"ss":output="%d सà¥à¤à¤à¤¦";break;case"m":output="à¤à¤ मिनिà¤";break;case"mm":output="%d मिनिà¤à¥";break;case"h":output="à¤à¤ तास";break;case"hh":output="%d तास";break;case"d":output="à¤à¤ दिवस";break;case"dd":output="%d दिवस";break;case"M":output="à¤à¤ महिना";break;case"MM":output="%d महिनà¥";break;case"y":output="à¤à¤ वरà¥à¤·";break;case"yy":output="%d वरà¥à¤·à¥"}else switch(string){case"s":output="à¤à¤¾à¤¹à¥ सà¥à¤à¤à¤¦à¤¾à¤";break;case"ss":output="%d सà¥à¤à¤à¤¦à¤¾à¤";break;case"m":output="à¤à¤à¤¾ मिनिà¤à¤¾";break;case"mm":output="%d मिनिà¤à¤¾à¤";break;case"h":output="à¤à¤à¤¾ तासा";break;case"hh":output="%d तासाà¤";break;case"d":output="à¤à¤à¤¾ दिवसा";break;case"dd":output="%d दिवसाà¤";break;case"M":output="à¤à¤à¤¾ महिनà¥à¤¯à¤¾";break;case"MM":output="%d महिनà¥à¤¯à¤¾à¤";break;case"y":output="à¤à¤à¤¾ वरà¥à¤·à¤¾";break;case"yy":output="%d वरà¥à¤·à¤¾à¤"}return output.replace(/%d/i,number)}hooks.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:relativeTimeMr,ss:relativeTimeMr,m:relativeTimeMr,mm:relativeTimeMr,h:relativeTimeMr,hh:relativeTimeMr,d:relativeTimeMr,dd:relativeTimeMr,M:relativeTimeMr,MM:relativeTimeMr,y:relativeTimeMr,yy:relativeTimeMr},preparse:function(string){return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,(function(match){return numberMap$a[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$b[match]}))},meridiemParse:/पहाà¤à¥|सà¤à¤¾à¤³à¥|दà¥à¤ªà¤¾à¤°à¥|सायà¤à¤à¤¾à¤³à¥|रातà¥à¤°à¥/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"पहाà¤à¥"===meridiem||"सà¤à¤¾à¤³à¥"===meridiem?hour:"दà¥à¤ªà¤¾à¤°à¥"===meridiem||"सायà¤à¤à¤¾à¤³à¥"===meridiem||"रातà¥à¤°à¥"===meridiem?hour>=12?hour:hour+12:void 0},meridiem:function(hour,minute,isLower){return hour>=0&&hour<6?"पहाà¤à¥":hour<12?"सà¤à¤¾à¤³à¥":hour<17?"दà¥à¤ªà¤¾à¤°à¥":hour<20?"सायà¤à¤à¤¾à¤³à¥":"रातà¥à¤°à¥"},week:{dow:0,doy:6}}), 166//! moment.js locale configuration 167hooks.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(hour,meridiem){return 12===hour&&(hour=0),"pagi"===meridiem?hour:"tengahari"===meridiem?hour>=11?hour:hour+12:"petang"===meridiem||"malam"===meridiem?hour+12:void 0},meridiem:function(hours,minutes,isLower){return hours<11?"pagi":hours<15?"tengahari":hours<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",ss:"%d 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,doy:7}}), 168//! moment.js locale configuration 169hooks.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(hour,meridiem){return 12===hour&&(hour=0),"pagi"===meridiem?hour:"tengahari"===meridiem?hour>=11?hour:hour+12:"petang"===meridiem||"malam"===meridiem?hour+12:void 0},meridiem:function(hours,minutes,isLower){return hours<11?"pagi":hours<15?"tengahari":hours<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",ss:"%d 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,doy:7}}), 170//! moment.js locale configuration 171hooks.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ä unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_DiÄembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ä un_Lul_Aww_Set_Ott_Nov_DiÄ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ä imgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ä im_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ä i_Si".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:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"fâ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"Ä¡urnata",dd:"%d Ä¡ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}); 172//! moment.js locale configuration 173var symbolMap$c={1:"á",2:"á",3:"á",4:"á",5:"á ",6:"á",7:"á",8:"á",9:"á",0:"á"},numberMap$b={"á":"1","á":"2","á":"3","á":"4","á ":"5","á":"6","á":"7","á":"8","á":"9","á":"0"};hooks.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:"á áá¹áááº.á¡áááºá¸áááº",ss:"%d á áá¹ááá·áº",m:"áá áºáááá áº",mm:"%d áááá áº",h:"áá áºáá¬áá®",hh:"%d áá¬áá®",d:"áá áºáááº",dd:"%d áááº",M:"áá áºá",MM:"%d á",y:"áá áºáá¾á áº",yy:"%d áá¾á áº"},preparse:function(string){return string.replace(/[ááááá ááááá]/g,(function(match){return numberMap$b[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$c[match]}))},week:{dow:1,doy:4}}), 174//! moment.js locale configuration 175hooks.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}); 176//! moment.js locale configuration 177var symbolMap$d={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"à¥",8:"८",9:"९",0:"०"},numberMap$c={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","à¥":"7","८":"8","९":"9","०":"0"};hooks.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(string){return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,(function(match){return numberMap$c[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$d[match]}))},meridiemParse:/राति|बिहान|दिà¤à¤à¤¸à¥|साà¤à¤/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"राति"===meridiem?hour<4?hour:hour+12:"बिहान"===meridiem?hour:"दिà¤à¤à¤¸à¥"===meridiem?hour>=10?hour:hour+12:"साà¤à¤"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<3?"राति":hour<12?"बिहान":hour<16?"दिà¤à¤à¤¸à¥":hour<20?"साà¤à¤":"राति"},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 बरà¥à¤·"},week:{dow:0,doy:6}}); 178//! moment.js locale configuration 179var monthsShortWithDots$1="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsShortWithoutDots$1="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),monthsParse$5=[/^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],monthsRegex$6=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;hooks.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(m,format){return m?/-MMM-/.test(format)?monthsShortWithoutDots$1[m.month()]:monthsShortWithDots$1[m.month()]:monthsShortWithDots$1},monthsRegex:monthsRegex$6,monthsShortRegex:monthsRegex$6,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:monthsParse$5,longMonthsParse:monthsParse$5,shortMonthsParse:monthsParse$5,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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(number){return number+(1===number||8===number||number>=20?"ste":"de")},week:{dow:1,doy:4}}); 180//! moment.js locale configuration 181var monthsShortWithDots$2="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsShortWithoutDots$2="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),monthsParse$6=[/^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],monthsRegex$7=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;hooks.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(m,format){return m?/-MMM-/.test(format)?monthsShortWithoutDots$2[m.month()]:monthsShortWithDots$2[m.month()]:monthsShortWithDots$2},monthsRegex:monthsRegex$7,monthsShortRegex:monthsRegex$7,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:monthsParse$6,longMonthsParse:monthsParse$6,shortMonthsParse:monthsParse$6,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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(number){return number+(1===number||8===number||number>=20?"ste":"de")},week:{dow:1,doy:4}}), 182//! moment.js locale configuration 183hooks.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._mÃ¥._t
183y._on._to._fr._lau.".split("_"),weekdaysMin:"su_mÃ¥_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 184//! moment.js locale configuration 185hooks.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquà %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(number,period){var output=1===number?"r":2===number?"n":3===number?"r":4===number?"t":"è";return"w"!==period&&"W"!==period||(output="a"),number+output},week:{dow:1,doy:4}}); 186//! moment.js locale configuration 187var symbolMap$e={1:"à©§",2:"੨",3:"à©©",4:"੪",5:"à©«",6:"੬",7:"à©",8:"à©®",9:"੯",0:"੦"},numberMap$d={"à©§":"1","੨":"2","à©©":"3","੪":"4","à©«":"5","੬":"6","à©":"7","à©®":"8","੯":"9","੦":"0"};hooks.defineLocale("pa-in",{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:"à¨à©à¨ ਸà¨à¨¿à©°à¨",ss:"%d ਸà¨à¨¿à©°à¨",m:"à¨à¨ ਮਿੰà¨",mm:"%d ਮਿੰà¨",h:"à¨à©±à¨ à¨à©°à¨à¨¾",hh:"%d à¨à©°à¨à©",d:"à¨à©±à¨ ਦਿਨ",dd:"%d ਦਿਨ",M:"à¨à©±à¨ ਮਹà©à¨¨à¨¾",MM:"%d ਮਹà©à¨¨à©",y:"à¨à©±à¨ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(string){return string.replace(/[੧੨੩੪੫੬à©à©®à©¯à©¦]/g,(function(match){return numberMap$d[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$e[match]}))},meridiemParse:/ਰਾਤ|ਸਵà©à¨°|ਦà©à¨ªà¨¹à¨¿à¨°|ਸ਼ਾਮ/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"ਰਾਤ"===meridiem?hour<4?hour:hour+12:"ਸਵà©à¨°"===meridiem?hour:"ਦà©à¨ªà¨¹à¨¿à¨°"===meridiem?hour>=10?hour:hour+12:"ਸ਼ਾਮ"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"ਰਾਤ":hour<10?"ਸਵà©à¨°":hour<17?"ਦà©à¨ªà¨¹à¨¿à¨°":hour<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}}); 188//! moment.js locale configuration
vendor: 4,265 bytes, lines 189-195
189var monthsNominative="styczeÅ_luty_marzec_kwiecieÅ_maj_czerwiec_lipiec_sierpieÅ_wrzesieÅ_październik_listopad_grudzieÅ".split("_"),monthsSubjective="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅnia_października_listopada_grudnia".split("_");function plural$3(n){return n%10<5&&n%10>1&&~~(n/10)%10!=1}function translate$8(number,withoutSuffix,key){var result=number+" ";switch(key){case"ss":return result+(plural$3(number)?"sekundy":"sekund");case"m":return withoutSuffix?"minuta":"minutÄ";case"mm":return result+(plural$3(number)?"minuty":"minut");case"h":return withoutSuffix?"godzina":"godzinÄ";case"hh":return result+(plural$3(number)?"godziny":"godzin");case"MM":return result+(plural$3(number)?"miesiÄ ce":"miesiÄcy");case"yy":return result+(plural$3(number)?"lata":"lat")}} 190//! moment.js locale configuration 191function relativeTimeWithPlural$2(number,withoutSuffix,key){var separator=" ";return(number%100>=20||number>=100&&number%100==0)&&(separator=" de "),number+separator+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[key]}function relativeTimeWithPlural$3(number,withoutSuffix,key){return"m"===key?withoutSuffix?"минÑÑа":"минÑÑÑ":number+" "+ 192//! moment.js locale configuration 193function plural$4(word,num){var forms=word.split("_");return num%10==1&&num%100!=11?forms[0]:num%10>=2&&num%10<=4&&(num%100<10||num%100>=20)?forms[1]:forms[2]}({ss:withoutSuffix?"ÑекÑнда_ÑекÑндÑ_ÑекÑнд":"ÑекÑндÑ_ÑекÑндÑ_ÑекÑнд",mm:withoutSuffix?"минÑÑа_минÑÑÑ_минÑÑ":"минÑÑÑ_минÑÑÑ_минÑÑ",hh:"ÑаÑ_ÑаÑа_ÑаÑов",dd:"денÑ_днÑ_дней",MM:"меÑÑÑ_меÑÑÑа_меÑÑÑев",yy:"год_года_леÑ"}[key],+number)}hooks.defineLocale("pl",{months:function(momentToFormat,format){return momentToFormat?""===format?"("+monthsSubjective[momentToFormat.month()]+"|"+monthsNominative[momentToFormat.month()]+")":/D MMMM/.test(format)?monthsSubjective[momentToFormat.month()]:monthsNominative[momentToFormat.month()]:monthsNominative},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:"ndz_pon_wt_År_czw_pt_sob".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:function(){switch(this.day()){case 0:return"[W niedzielÄ o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W ÅrodÄ o] LT";case 6:return"[W sobotÄ o] LT";default:return"[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",ss:translate$8,m:translate$8,mm:translate$8,h:translate$8,hh:translate$8,d:"1 dzieÅ",dd:"%d dni",M:"miesiÄ c",MM:translate$8,y:"rok",yy:translate$8},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 194//! moment.js locale configuration 195hooks.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:"do_2ª_3ª_4ª_5ª_6ª_sá".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(){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:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%
195d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"}), 196//! moment.js locale configuration 197hooks.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:"Do_2ª_3ª_4ª_5ª_6ª_Sá".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(){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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),hooks.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._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",ss:relativeTimeWithPlural$2,m:"un minut",mm:relativeTimeWithPlural$2,h:"o orÄ",hh:relativeTimeWithPlural$2,d:"o zi",dd:relativeTimeWithPlural$2,M:"o lunÄ",MM:relativeTimeWithPlural$2,y:"un an",yy:relativeTimeWithPlural$2},week:{dow:1,doy:7}});var monthsParse$7=[/^Ñнв/i,/^Ñев/i,/^маÑ/i,/^апÑ/i,/^ма[йÑ]/i,/^иÑн/i,/^иÑл/i,/^авг/i,/^Ñен/i,/^окÑ/i,/^ноÑ/i,/^дек/i];hooks.defineLocale("ru",{months:{format:"ÑнваÑÑ_ÑевÑалÑ_маÑÑа_апÑелÑ_маÑ_иÑнÑ_иÑлÑ_авгÑÑÑа_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),standalone:"ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_")},monthsShort:{format:"Ñнв._ÑевÑ._маÑ._апÑ._маÑ_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_"),standalone:"Ñнв._ÑевÑ._маÑÑ_апÑ._май_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_")},weekdays:{standalone:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑеда_ÑеÑвеÑг_пÑÑниÑа_ÑÑббоÑа".split("_"),format:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑедÑ_ÑеÑвеÑг_пÑÑниÑÑ_ÑÑббоÑÑ".split("_"),isFormat:/\[ ?[Ðв] ?(?:пÑоÑлÑÑ|ÑледÑÑÑÑÑ|ÑÑÑ)? ?] ?dddd/},weekdaysShort:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),weekdaysMin:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),monthsParse:monthsParse$7,longMonthsParse:monthsParse$7,shortMonthsParse:monthsParse$7,monthsRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsShortRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsStrictRegex:/^(ÑнваÑ[ÑÑ]|ÑевÑал[ÑÑ]|маÑÑа?|апÑел[ÑÑ]|ма[Ñй]|иÑн[ÑÑ]|иÑл[ÑÑ]|авгÑÑÑа?|ÑенÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|ноÑбÑ[ÑÑ]|декабÑ[ÑÑ])/i,monthsShortStrictRegex:/^(Ñнв\.|ÑевÑ?\.|маÑ[Ñ.]|апÑ\.|ма[Ñй]|иÑн[ÑÑ.]|иÑл[ÑÑ.]|авг\.|ÑенÑ?\.|ок
vendor: 4,704 bytes, lines 197-203
197Ñ\.|ноÑб?\.|дек\.)/i,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",lastDay:"[ÐÑеÑа, в] LT",nextWeek:function(now){if(now.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(now){if(now.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:"неÑколÑко ÑекÑнд",ss:relativeTimeWithPlural$3,m:relativeTimeWithPlural$3,mm:relativeTimeWithPlural$3,h:"ÑаÑ",hh:relativeTimeWithPlural$3,d:"денÑ",dd:relativeTimeWithPlural$3,M:"меÑÑÑ",MM:relativeTimeWithPlural$3,y:"год",yy:relativeTimeWithPlural$3},meridiemParse:/ноÑи|ÑÑÑа|днÑ|веÑеÑа/i,isPM:function(input){return/^(днÑ|веÑеÑа)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<4?"ноÑи":hour<12?"ÑÑÑа":hour<17?"днÑ":"веÑеÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|Ñ)/,ordinal:function(number,period){switch(period){case"M":case"d":case"DDD":return number+"-й";case"D":return number+"-го";case"w":case"W":return number+"-Ñ";default:return number}},week:{dow:1,doy:4}}); 198//! moment.js locale configuration 199var months$9=["جÙÙØ±Ù","ÙÙØ¨Ø±ÙرÙ","٠ارÚ","اپرÙÙ","٠ئÙ","جÙÙ","جÙÙØ§Ø¡Ù","آگسٽ","سÙپٽ٠بر","Ø¢ÚªÙ½ÙØ¨Ø±","ÙÙ٠بر","ÚØ³Ù بر"],days$1=["Ø¢ÚØ±","سÙ٠ر","اڱارÙ","اربع","Ø®Ù ÙØ³","ج٠ع","ÚÙÚØ±"];hooks.defineLocale("sd",{months:months$9,monthsShort:months$9,weekdays:days$1,weekdaysShort:days$1,weekdaysMin:days$1,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(input){return"شا٠"===input},meridiem:function(hour,minute,isLower){return hour<12?"صبØ":"شا٠"},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 ساÙ"},preparse:function(string){return string.replace(/Ø/g,",")},postformat:function(string){return string.replace(/,/g,"Ø")},week:{dow:1,doy:4}}), 200//! moment.js locale configuration 201hooks.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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}), 202//! moment.js locale configuration 203hooks.defineLocale("si",{months:"ජනà·à·à¶»à·_à¶´à·à¶¶à¶»à·à·à¶»à·_මà·à¶»à·à¶à·_à¶ à¶´à·âà¶»à·à¶½à·_මà·à¶ºà·_à¶¢à·à¶±à·_à¶¢à·à¶½à·_à¶ à¶à·à·à·à¶à·_à·à·à¶´à·à¶à·à¶¸à·à¶¶à¶»à·_à¶à¶à·à¶à·à¶¶à¶»à·_à¶±à·à·à·à¶¸à·à¶¶à¶»à·_දà·à·à·à¶¸à·à¶¶à¶»à·".split("_"),monthsShort:"ජන_à¶´à·à¶¶_මà·à¶»à·_à¶ à¶´à·_මà·à¶ºà·_à¶¢à·à¶±à·_à¶¢à·à¶½à·_à¶ à¶à·_à·à·à¶´à·_à¶à¶à·_à¶±à·à·à·_දà·à·à·".
vendor: 9,278 bytes, lines 203-211
203split("_"),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:"à¶à¶à·à¶´à¶» à¶à·à·à·à¶´à¶º",ss:"à¶à¶à·à¶´à¶» %d",m:"මà·à¶±à·à¶à·à¶à·à·",mm:"මà·à¶±à·à¶à·à¶à· %d",h:"à¶´à·à¶º",hh:"à¶´à·à¶º %d",d:"දà·à¶±à¶º",dd:"දà·à¶± %d",M:"මà·à·à¶º",MM:"මà·à· %d",y:"à·à·à¶»",yy:"à·à·à¶» %d"},dayOfMonthOrdinalParse:/\d{1,2} à·à·à¶±à·/,ordinal:function(number){return number+" à·à·à¶±à·"},meridiemParse:/à¶´à·à¶» à·à¶»à·|à¶´à·à· à·à¶»à·|à¶´à·.à·|à¶´.à·./,isPM:function(input){return"à¶´.à·."===input||"à¶´à·à· à·à¶»à·"===input},meridiem:function(hours,minutes,isLower){return hours>11?isLower?"à¶´.à·.":"à¶´à·à· à·à¶»à·":isLower?"à¶´à·.à·.":"à¶´à·à¶» à·à¶»à·"}}); 204//! moment.js locale configuration 205var months$a="január_február_marec_aprÃl_máj_jún_júl_august_september_október_november_december".split("_"),monthsShort$6="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function plural$5(n){return n>1&&n<5}function translate$9(number,withoutSuffix,key,isFuture){var result=number+" ";switch(key){case"s":return withoutSuffix||isFuture?"pár sekúnd":"pár sekundami";case"ss":return withoutSuffix||isFuture?result+(plural$5(number)?"sekundy":"sekúnd"):result+"sekundami";case"m":return withoutSuffix?"minúta":isFuture?"minútu":"minútou";case"mm":return withoutSuffix||isFuture?result+(plural$5(number)?"minúty":"minút"):result+"minútami";case"h":return withoutSuffix?"hodina":isFuture?"hodinu":"hodinou";case"hh":return withoutSuffix||isFuture?result+(plural$5(number)?"hodiny":"hodÃn"):result+"hodinami";case"d":return withoutSuffix||isFuture?"deÅ":"dÅom";case"dd":return withoutSuffix||isFuture?result+(plural$5(number)?"dni":"dnÃ"):result+"dÅami";case"M":return withoutSuffix||isFuture?"mesiac":"mesiacom";case"MM":return withoutSuffix||isFuture?result+(plural$5(number)?"mesiace":"mesiacov"):result+"mesiacmi";case"y":return withoutSuffix||isFuture?"rok":"rokom";case"yy":return withoutSuffix||isFuture?result+(plural$5(number)?"roky":"rokov"):result+"rokmi"}} 206//! moment.js locale configuration 207function processRelativeTime$7(number,withoutSuffix,key,isFuture){var result=number+" ";switch(key){case"s":return withoutSuffix||isFuture?"nekaj sekund":"nekaj sekundami";case"ss":return result+=1===number?withoutSuffix?"sekundo":"sekundi":2===number?withoutSuffix||isFuture?"sekundi":"sekundah":number<5?withoutSuffix||isFuture?"sekunde":"sekundah":"sekund";case"m":return withoutSuffix?"ena minuta":"eno minuto";case"mm":return result+=1===number?withoutSuffix?"minuta":"minuto":2===number?withoutSuffix||isFuture?"minuti":"minutama":number<5?withoutSuffix||isFuture?"minute":"minutami":withoutSuffix||isFuture?"minut":"minutami";case"h":return withoutSuffix?"ena ura":"eno uro";case"hh":return result+=1===number?withoutSuffix?"ura":"uro":2===number?withoutSuffix||isFuture?"uri":"urama":number<5?withoutSuffix||isFuture?"ure":"urami":withoutSuffix||isFuture?"ur":"urami";case"d":return withoutSuffix||isFuture?"en dan":"enim dnem";case"dd":return result+=1===number?withoutSuffix||isFuture?"dan":"dnem":2===number?withoutSuffix||isFuture?"dni":"dnevoma":withoutSuffix||isFuture?"dni":"dnevi";case"M":return withoutSuffix||isFuture?"en mesec":"enim mesecem";case"MM":return result+=1===number?withoutSuffix||isFuture?"mesec":"mesecem":2===number?withoutSuffix||isFuture?"meseca":"mesecema":number<5?withoutSuffix||isFuture?"mesece":"meseci":withoutSuffix||isFuture?"mesecev":"meseci";case"y":return withoutSuffix||isFuture?"eno leto":"enim letom";case"yy":return result+=1===number?withoutSuffix||isFuture?"leto":"letom":2===number?withoutSuffix||isFuture?"leti":"letoma":number<5?withoutSuffix||isFuture?"leta":"leti":withoutSuffix||isFuture?"let":"leti"}}hooks.defineLocale("sk",{months:months$a,monthsShort:monthsShort$6,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:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:translate$9,ss:translate$9,m:translate$9,mm:translate$9,h:translate$9,hh:translate$9,d:translate$9,dd:translate$9,M:translate$9,MM:translate$9,y:translate$9,yy:translate$9},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),hooks.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:processRelativeTime$7,ss:processRelativeTime$7,m:processRelativeTime$7,mm:processRelativeTime$7,h:processRelativeTime$7,hh:processRelativeTime$7,d:processRelativeTime$7,dd:processRelativeTime$7,M:processRelativeTime$7,MM:processRelativeTime$7,y:processRelativeTime$7,yy:processRelativeTime$7},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}), 208//! moment.js locale configuration 209hooks.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(input){return"M"===input.charAt(0)},meridiem:function(hours,minutes,isLower){return hours<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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}); 210//! moment.js locale configuration 211var translator$1={words:{ss:["ÑекÑнда","ÑекÑнде","ÑекÑнди"],m:["Ñедан минÑÑ","Ñедне минÑÑе"],mm:["минÑÑ","минÑÑе","минÑÑа"],h:["Ñедан ÑаÑ","Ñедног ÑаÑа"],hh:["ÑаÑ","ÑаÑа","ÑаÑи"],dd:["дан","дана","дана"],MM:["меÑеÑ","меÑеÑа","меÑеÑи"],yy:["година","године","година"]},correctGrammaticalCase:function(number,wordKey){return 1===number?wordKey[0]:number>=2&&number<=4?wordKey[1]:wordKey[2]},translate:function(number,withoutSuffix,key){var wordKey=translator$1.words[key];return 1===key.length?withoutSuffix?wordKey[0]:wordKey[1]:number+" "+translator$1.correctGrammaticalCase(number,wordKey)}};hooks.defineLocale("sr-cyrl",{months:"ÑанÑаÑ_ÑебÑÑаÑ_маÑÑ_апÑил_маÑ_ÑÑн_ÑÑл_авгÑÑÑ_ÑепÑембаÑ_ок
211ÑобаÑ_новембаÑ_деÑембаÑ".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(){return["[пÑоÑле] [недеÑе] [Ñ] LT","[пÑоÑлог] [понедеÑка] [Ñ] LT","[пÑоÑлог] [ÑÑоÑка] [Ñ] LT","[пÑоÑле] [ÑÑеде] [Ñ] LT","[пÑоÑлог] [ÑеÑвÑÑка] [Ñ] LT","[пÑоÑлог] [пеÑка] [Ñ] LT","[пÑоÑле] [ÑÑбоÑе] [Ñ] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пÑе %s",s:"неколико ÑекÑнди",ss:translator$1.translate,m:translator$1.translate,mm:translator$1.translate,h:translator$1.translate,hh:translator$1.translate,d:"дан",dd:translator$1.translate,M:"меÑеÑ",MM:translator$1.translate,y:"годинÑ",yy:translator$1.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}); 212//! moment.js locale configuration 213var translator$2={words:{ss:["sekunda","sekunde","sekundi"],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(number,wordKey){return 1===number?wordKey[0]:number>=2&&number<=4?wordKey[1]:wordKey[2]},translate:function(number,withoutSuffix,key){var wordKey=translator$2.words[key];return 1===key.length?withoutSuffix?wordKey[0]:wordKey[1]:number+" "+translator$2.correctGrammaticalCase(number,wordKey)}};hooks.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(){return["[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"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:translator$2.translate,m:translator$2.translate,mm:translator$2.translate,h:translator$2.translate,hh:translator$2.translate,d:"dan",dd:translator$2.translate,M:"mesec",MM:translator$2.translate,y:"godinu",yy:translator$2.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}), 214//! moment.js locale configuration 215hooks.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",LT
vendor: 5,536 bytes, lines 215-221
215S:"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",ss:"%d mzuzwana",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(hours,minutes,isLower){return hours<11?"ekuseni":hours<15?"emini":hours<19?"entsambama":"ebusuku"},meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"ekuseni"===meridiem?hour:"emini"===meridiem?hour>=11?hour:hour+12:"entsambama"===meridiem||"ebusuku"===meridiem?0===hour?0:hour+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}), 216//! moment.js locale configuration 217hooks.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",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?":e":1===b||2===b?":a":":e")},week:{dow:1,doy:4}}), 218//! moment.js locale configuration 219hooks.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",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}}); 220//! moment.js locale configuration 221var symbolMap$f={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"à¯",8:"௮",9:"௯",0:"௦"},numberMap$e={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","à¯":"7","௮":"8","௯":"9","௦":"0"};hooks.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:"à®à®°à¯ à®à®¿à®² விநாà®à®¿à®à®³à¯",ss:"%d விநாà®à®¿à®à®³à¯",m:"à®à®°à¯ நிமிà®à®®à¯",mm:"%d நிமிà®à®à¯à®à®³à¯",h:"à®à®°à¯ மணி நà¯à®°à®®à¯",hh:"%d மணி நà¯à®°à®®à¯",d:"à®à®°à¯ நாளà¯",dd:"%d நாà®à¯à®à®³à¯",M:"à®à®°à¯ மாதமà¯",MM:"%d மாதà®à¯à®à®³à¯",y:"à®à®°à¯ வரà¯à®à®®à¯",yy:"%d à®à®£à¯à®à¯à®à®³à¯"},dayOfMonthOrdinalParse:/\d{1,2}வதà¯/,ordinal:function(number){return number+"வதà¯"},preparse:function(string){return string.replace(/[௧௨௩௪௫௬à¯à¯®à¯¯à¯¦]/g,(function(match){return numberMap$e[match]}))},postformat:function(string){return string.replace(/\d/g,(function(match){return symbolMap$f[match]}))}
vendor: 4,530 bytes, lines 221-227
221,meridiemParse:/யாமமà¯|வà¯à®à®±à¯|à®à®¾à®²à¯|நணà¯à®ªà®à®²à¯|à®à®±à¯à®ªà®¾à®à¯|மாலà¯/,meridiem:function(hour,minute,isLower){return hour<2?" யாமமà¯":hour<6?" வà¯à®à®±à¯":hour<10?" à®à®¾à®²à¯":hour<14?" நணà¯à®ªà®à®²à¯":hour<18?" à®à®±à¯à®ªà®¾à®à¯":hour<22?" மாலà¯":" யாமமà¯"},meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"யாமமà¯"===meridiem?hour<2?hour:hour+12:"வà¯à®à®±à¯"===meridiem||"à®à®¾à®²à¯"===meridiem||"நணà¯à®ªà®à®²à¯"===meridiem&&hour>=10?hour:hour+12},week:{dow:0,doy:6}}), 222//! moment.js locale configuration 223hooks.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:"à°à±à°¨à±à°¨à°¿ à°à±à°·à°£à°¾à°²à±",ss:"%d à°¸à±à°à°¨à±à°²à±",m:"à°à° నిమిషà°",mm:"%d నిమిషాలà±",h:"à°à° à°à°à°",hh:"%d à°à°à°à°²à±",d:"à°à° à°°à±à°à±",dd:"%d à°°à±à°à±à°²à±",M:"à°à° à°¨à±à°²",MM:"%d à°¨à±à°²à°²à±",y:"à°à° à°¸à°à°µà°¤à±à°¸à°°à°",yy:"%d à°¸à°à°µà°¤à±à°¸à°°à°¾à°²à±"},dayOfMonthOrdinalParse:/\d{1,2}à°µ/,ordinal:"%dà°µ",meridiemParse:/రాతà±à°°à°¿|à°à°¦à°¯à°|మధà±à°¯à°¾à°¹à±à°¨à°|సాయà°à°¤à±à°°à°/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"రాతà±à°°à°¿"===meridiem?hour<4?hour:hour+12:"à°à°¦à°¯à°"===meridiem?hour:"మధà±à°¯à°¾à°¹à±à°¨à°"===meridiem?hour>=10?hour:hour+12:"సాయà°à°¤à±à°°à°"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"రాతà±à°°à°¿":hour<10?"à°à°¦à°¯à°":hour<17?"మధà±à°¯à°¾à°¹à±à°¨à°":hour<20?"సాయà°à°¤à±à°°à°":"రాతà±à°°à°¿"},week:{dow:0,doy:6}}), 224//! moment.js locale configuration 225hooks.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_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:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")},week:{dow:1,doy:4}}); 226//! moment.js locale configuration 227var suffixes$3={0:"-Ñм",1:"-Ñм",2:"-Ñм",3:"-Ñм",4:"-Ñм",5:"-Ñм",6:"-Ñм",7:"-Ñм",8:"-Ñм",9:"-Ñм",10:"-Ñм",12:"-Ñм",13:"-Ñм",20:"-Ñм",30:"-Ñм",40:"-Ñм",50:"-Ñм",60:"-Ñм",70:"-Ñм",80:"-Ñм",90:"-Ñм",100:"-Ñм"};hooks.defineLocale("tg",{months:"ÑнваÑ_ÑевÑал_маÑÑ_апÑел_май_иÑн_иÑл_авгÑÑÑ_ÑенÑÑбÑ_окÑÑбÑ_ноÑбÑ_декабÑ".split("_"),monthsShort:"Ñнв_Ñев_маÑ_апÑ_май_иÑн_иÑл_авг_Ñен_окÑ_ноÑ_дек".split("_"),weekdays:"Ñ
227кÑанбе_дÑÑанбе_ÑеÑанбе_ÑоÑÑанбе_панҷÑанбе_Ò·ÑмÑа_Ñанбе".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:"dddd[и] [ҳаÑÑаи оÑнда ÑоаÑи] 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:/Ñаб|ÑÑбҳ|Ñӯз|бегоҳ/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"Ñаб"===meridiem?hour<4?hour:hour+12:"ÑÑбҳ"===meridiem?hour:"Ñӯз"===meridiem?hour>=11?hour:hour+12:"бегоҳ"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){return hour<4?"Ñаб":hour<11?"ÑÑбҳ":hour<16?"Ñӯз":hour<19?"бегоҳ":"Ñаб"},dayOfMonthOrdinalParse:/\d{1,2}-(Ñм|Ñм)/,ordinal:function(number){var a=number%10,b=number>=100?100:null;return number+(suffixes$3[number]||suffixes$3[a]||suffixes$3[b])},week:{dow:1,doy:7}}), 228//! moment.js locale configuration 229hooks.defineLocale("th",{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"},meridiemParse:/à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸|หลัà¸à¹à¸à¸µà¹à¸¢à¸/,isPM:function(input){return"หลัà¸à¹à¸à¸µà¹à¸¢à¸"===input},meridiem:function(hour,minute,isLower){return hour<12?"à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸":"หลัà¸à¹à¸à¸µà¹à¸¢à¸"},calendar:{sameDay:"[วัà¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT",nextDay:"[à¸à¸£à¸¸à¹à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT",nextWeek:"dddd[หà¸à¹à¸² à¹à¸§à¸¥à¸²] LT",lastDay:"[à¹à¸¡à¸·à¹à¸à¸§à¸²à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT",lastWeek:"[วัà¸]dddd[à¸à¸µà¹à¹à¸¥à¹à¸§ à¹à¸§à¸¥à¸²] LT",sameElse:"L"},relativeTime:{future:"à¸à¸µà¸ %s",past:"%sà¸à¸µà¹à¹à¸¥à¹à¸§",s:"à¹à¸¡à¹à¸à¸µà¹à¸§à¸´à¸à¸²à¸à¸µ",ss:"%d วิà¸à¸²à¸à¸µ",m:"1 à¸à¸²à¸à¸µ",mm:"%d à¸à¸²à¸à¸µ",h:"1 à¸à¸±à¹à¸§à¹à¸¡à¸",hh:"%d à¸à¸±à¹à¸§à¹à¸¡à¸",d:"1 วัà¸",dd:"%d วัà¸",M:"1 à¹à¸à¸·à¸à¸",MM:"%d à¹à¸à¸·à¸à¸",y:"1 à¸à¸µ",yy:"%d à¸à¸µ"}}), 230//! moment.js locale configuration 231hooks.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:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%
231d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(number){return number},week:{dow:1,doy:4}}); 232//! moment.js locale configuration 233var numbersNouns="pagh_waâ_chaâ_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function translate$a(number,withoutSuffix,string,isFuture){var numberNoun=function numberAsNoun(number){var hundred=Math.floor(number%1e3/100),ten=Math.floor(number%100/10),one=number%10,word="";hundred>0&&(word+=numbersNouns[hundred]+"vatlh");ten>0&&(word+=(""!==word?" ":"")+numbersNouns[ten]+"maH");one>0&&(word+=(""!==word?" ":"")+numbersNouns[one]);return""===word?"pagh":word}(number);switch(string){case"ss":return numberNoun+" lup";case"mm":return numberNoun+" tup";case"hh":return numberNoun+" rep";case"dd":return numberNoun+" jaj";case"MM":return numberNoun+" jar";case"yy":return numberNoun+" DIS"}}hooks.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:function translateFuture(output){var time=output;return time=-1!==output.indexOf("jaj")?time.slice(0,-3)+"leS":-1!==output.indexOf("jar")?time.slice(0,-3)+"waQ":-1!==output.indexOf("DIS")?time.slice(0,-3)+"nem":time+" pIq"},past:function translatePast(output){var time=output;return time=-1!==output.indexOf("jaj")?time.slice(0,-3)+"Huâ":-1!==output.indexOf("jar")?time.slice(0,-3)+"wen":-1!==output.indexOf("DIS")?time.slice(0,-3)+"ben":time+" ret"},s:"puS lup",ss:translate$a,m:"waâ tup",mm:translate$a,h:"waâ rep",hh:translate$a,d:"waâ jaj",dd:translate$a,M:"waâ jar",MM:translate$a,y:"waâ DIS",yy:translate$a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}); 234//! moment.js locale configuration 235var suffixes$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ı"};function processRelativeTime$8(number,withoutSuffix,key,isFuture){var format={s:["viensas secunds","'iensas secunds"],ss:[number+" secunds",number+" secunds"],m:["'n mÃut","'iens mÃut"],mm:[number+" mÃuts",number+" mÃuts"],h:["'n þora","'iensa þora"],hh:[number+" þoras",number+" þoras"],d:["'n ziua","'iensa ziua"],dd:[number+" ziuas",number+" ziuas"],M:["'n mes","'iens mes"],MM:[number+" mesen",number+" mesen"],y:["'n ar","'iens ar"],yy:[number+" ars",number+" ars"]};return isFuture||withoutSuffix?format[key][0]:format[key][1]} 236//! moment.js locale configuration 237function relativeTimeWithPlural$4(number,withoutSuffix,key){return"m"===key?withoutSuffix?"Ñ Ð²Ð¸Ð»Ð¸Ð½Ð°":"Ñ Ð²Ð¸Ð»Ð¸Ð½Ñ":"h"===key?withoutSuffix?"година":"годинÑ":number+" "+ 238//! moment.js locale configuration 239function plural$6(word,num){var forms=word.split("_");return num%10==1&&num%100!=11?forms[0]:num%10>=2&&num%10<=4&&(num%100<10||num%100>=20)?forms[1]:forms[2]}({ss:withoutSuffix?"ÑекÑнда_ÑекÑнди_ÑекÑнд":"ÑекÑндÑ_ÑекÑнди_ÑекÑнд",mm:withoutSuffix?"Ñ Ð²Ð¸Ð»Ð¸Ð½Ð°_Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸_Ñ Ð²Ð¸Ð»Ð¸Ð½":"Ñ Ð²Ð¸Ð»Ð¸Ð½Ñ_Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸_Ñ Ð²Ð¸Ð»Ð¸Ð½",hh:withoutSuffix?"година_години_годин":"годинÑ_години_годин",dd:"денÑ_днÑ_днÑв",MM:"мÑÑÑÑÑ_мÑÑÑÑÑ_мÑÑÑÑÑв",yy:"ÑÑк_Ñоки_ÑокÑв"}[key],+number)}function processHoursFunction(str){return function(){return str+"о"+(11===this.hours()?"б":"")+"] LT"}}hooks.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("_"),meridiem:function(hours,minutes,isLower){return hours<12?isLower?"öö":"ÃÃ":isLower?"ös":"ÃS"},meridiemParse:/öö|ÃÃ|ös|ÃS/,isPM:function(input){return"ös"===input||"ÃS"===input},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:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d 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"},ordinal:function(number,period){switch(period){case"d":case"D":case"Do":case"DD":return number;default:if(0===number)return number+"'ıncı";var a=number%10,b=number%100-a,c=number>=100?100:null;return number+(suffixes$4[a]||suffixes$4[b]||suffixes$4[c])}},week:{dow:1,doy:7}}), 240//! moment.js locale configuration 241hooks.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(input){return"d'o"===input.toLowerCase()},meridiem:function(hours,minutes,isLower){return hours>11?isLower?"d'o":"D'O":isLower?"d'a":"D'A"}
241,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:processRelativeTime$8,ss:processRelativeTime$8,m:processRelativeTime$8,mm:processRelativeTime$8,h:processRelativeTime$8,hh:processRelativeTime$8,d:processRelativeTime$8,dd:processRelativeTime$8,M:processRelativeTime$8,MM:processRelativeTime$8,y:processRelativeTime$8,yy:processRelativeTime$8},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),hooks.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",ss:"%d 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,doy:12}}), 242//! moment.js locale configuration 243hooks.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:"âµâµâµâ´½",ss:"%d âµâµâµâ´½",m:"âµâµâµâµâ´º",mm:"%d âµâµâµâµâ´º",h:"âµâ´°âµâ´°",hh:"%d âµâ´°âµâµâ´°âµâµâµ",d:"â´°âµâµ",dd:"%d oâµâµâ´°âµ",M:"â´°âµ¢oâµâµ",MM:"%d âµâµ¢âµ¢âµâµâµ",y:"â´°âµâ´³â´°âµ",yy:"%d âµâµâ´³â´°âµâµ"},week:{dow:6,doy:12}}), 244//! moment.js language configuration 245hooks.defineLocale("ug-cn",{months:"ÙØ§ÙÛØ§Ø±_ÙÛÛØ±Ø§Ù_٠ارت_ئاپرÛÙ_٠اÙ_ئÙÙÛÙ_ئÙÙÛÙ_Ø¦Ø§ÛØºÛست_سÛÙØªÛØ¨ÙØ±_ئÛÙØªÛØ¨ÙØ±_ÙÙÙØ§Ø¨Ùر_دÛÙØ§Ø¨Ùر".split("_"),monthsShort:"ÙØ§ÙÛØ§Ø±_ÙÛÛØ±Ø§Ù_٠ارت_ئاپرÛÙ_٠اÙ_ئÙÙÛÙ_ئÙÙÛÙ_Ø¦Ø§ÛØºÛست_سÛÙØªÛØ¨ÙØ±_ئÛÙØªÛØ¨ÙØ±_ÙÙÙØ§Ø¨Ùر_دÛÙØ§Ø¨Ùر".split("_"),weekdays:"ÙÛÙØ´ÛÙØ¨Û_Ø¯ÛØ´ÛÙØ¨Û_سÛÙØ´ÛÙØ¨Û_ÚØ§Ø±Ø´ÛÙØ¨Û_Ù¾ÛÙØ´ÛÙØ¨Û_جÛÙ Û_Ø´ÛÙØ¨Û".split("_"),weekdaysShort:"ÙÛ_دÛ_سÛ_ÚØ§_Ù¾Û_جÛ_Ø´Û".split("_"),weekdaysMin:"ÙÛ_دÛ_سÛ_ÚØ§_Ù¾Û_جÛ_Ø´Û".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙ",LLL:"YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙØ HH:mm",LLLL:"ddddØ YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙØ HH:mm"}
vendor: 7,661 bytes, lines 245-251
245,meridiemParse:/ÙÛØ±ÙÙ ÙÛÚÛ|سÛÚ¾ÛØ±|ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ|ÚÛØ´|ÚÛØ´ØªÙÙ ÙÛÙÙÙ|ÙÛÚ/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"ÙÛØ±ÙÙ ÙÛÚÛ"===meridiem||"سÛÚ¾ÛØ±"===meridiem||"ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ"===meridiem?hour:"ÚÛØ´ØªÙÙ ÙÛÙÙÙ"===meridiem||"ÙÛÚ"===meridiem?hour+12:hour>=11?hour:hour+12},meridiem:function(hour,minute,isLower){var hm=100*hour+minute;return hm<600?"ÙÛØ±ÙÙ ÙÛÚÛ":hm<900?"سÛÚ¾ÛØ±":hm<1130?"ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ":hm<1230?"ÚÛØ´":hm<1800?"ÚÛØ´ØªÙÙ ÙÛÙÙÙ":"ÙÛÚ"},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 ÙÙÙ"},dayOfMonthOrdinalParse:/\d{1,2}(-ÙÛÙÙ|-ئاÙ|-Ú¾ÛپتÛ)/,ordinal:function(number,period){switch(period){case"d":case"D":case"DDD":return number+"-ÙÛÙÙ";case"w":case"W":return number+"-Ú¾ÛپتÛ";default:return number}},preparse:function(string){return string.replace(/Ø/g,",")},postformat:function(string){return string.replace(/,/g,"Ø")},week:{dow:1,doy:7}}),hooks.defineLocale("uk",{months:{format:"ÑÑÑнÑ_лÑÑого_беÑезнÑ_квÑÑнÑ_ÑÑавнÑ_ÑеÑвнÑ_липнÑ_ÑеÑпнÑ_веÑеÑнÑ_жовÑнÑ_лиÑÑопада_гÑÑднÑ".split("_"),standalone:"ÑÑÑенÑ_лÑÑий_беÑезенÑ_квÑÑенÑ_ÑÑавенÑ_ÑеÑвенÑ_липенÑ_ÑеÑпенÑ_веÑеÑенÑ_жовÑенÑ_лиÑÑопад_гÑÑденÑ".split("_")},monthsShort:"ÑÑÑ_лÑÑ_беÑ_квÑÑ_ÑÑав_ÑеÑв_лип_ÑеÑп_веÑ_жовÑ_лиÑÑ_гÑÑд".split("_"),weekdays:function weekdaysCaseReplace(m,format){var weekdays={nominative:"недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑеда_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑа".split("_"),accusative:"недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑедÑ_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑÑ".split("_"),genitive:"недÑлÑ_понедÑлка_вÑвÑоÑка_ÑеÑеди_ÑеÑвеÑга_пâÑÑниÑÑ_ÑÑбоÑи".split("_")};return!0===m?weekdays.nominative.slice(1,7).concat(weekdays.nominative.slice(0,1)):m?weekdays[/(\[[ÐвУÑ]\]) ?dddd/.test(format)?"accusative":/\[?(?:минÑлоÑ|наÑÑÑпноÑ)? ?\] ?dddd/.test(format)?"genitive":"nominative"][m.day()]:weekdays.nominative},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:processHoursFunction("[СÑÐ¾Ð³Ð¾Ð´Ð½Ñ "),nextDay:processHoursFunction("[ÐавÑÑа "),lastDay:processHoursFunction("[ÐÑоÑа "),nextWeek:processHoursFunction("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return processHoursFunction("[ÐинÑлоÑ] dddd [").call(this);case 1:case 2:case 4:return processHoursFunction("[ÐинÑлого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s ÑомÑ",s:"декÑлÑка ÑекÑнд",ss:relativeTimeWithPlural$4,m:relativeTimeWithPlural$4,mm:relativeTimeWithPlural$4,h:"годинÑ",hh:relativeTimeWithPlural$4,d:"денÑ",dd:relativeTimeWithPlural$4,M:"мÑÑÑÑÑ",MM:relativeTimeWithPlural$4,y:"ÑÑк",yy:relativeTimeWithPlural$4},meridiemParse:/ноÑÑ|ÑанкÑ|днÑ|веÑоÑа/,isPM:function(input){return/^(днÑ|веÑоÑа)$/.test(input)},meridiem:function(hour,minute,isLower){return hour<4?"ноÑÑ":hour<12?"ÑанкÑ":hour<17?"днÑ":"веÑоÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(number,period){switch(period){case"M":case"d":case"DDD":case"w":case"W":return number+"-й";case"D":return number+"-го";default:return number}},week:{dow:1,doy:7}}); 246//! moment.js locale configuration 247var months$b=["جÙÙØ±Û","ÙØ±ÙرÛ","٠ارÚ","اپرÛÙ","٠ئÛ","جÙÙ","جÙÙØ§Ø¦Û","اگست","ست٠بر","Ø§Ú©ØªÙØ¨Ø±","ÙÙ٠بر","دس٠بر"],days$2=["Ø§ØªÙØ§Ø±","Ù¾ÛØ±","Ù ÙÚ¯Ù","بدھ","ج٠عرات","ج٠عÛ","ÛÙØªÛ"];return hooks.defineLocale("ur",{months:months$b,monthsShort:months$b,weekdays:days$2,weekdaysShort:days$2,weekdaysMin:days$2,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(input){return"شا٠"===input},meridiem:function(hour,minute,isLower){return hour<12?"صبØ":"شا٠"},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 ساÙ"},preparse:function(string){return string.replace(/Ø/g,",")},postformat:function(string){return string.replace(/,/g,"Ø")},week:{dow:1,doy:4}}), 248//! moment.js locale configuration 249hooks.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".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:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}), 250//! moment.js locale configuration 251hooks.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:"ÑÑÑÑаÑ",ss:"%d ÑÑÑÑаÑ",m:"Ð±Ð¸Ñ Ð´Ð°ÐºÐ¸ÐºÐ°",mm:"%d дакика",h:"Ð±Ð¸Ñ ÑоаÑ",hh:"%
vendor: 2,588 bytes, lines 251-255
251d ÑоаÑ",d:"Ð±Ð¸Ñ ÐºÑн",dd:"%d кÑн",M:"Ð±Ð¸Ñ Ð¾Ð¹",MM:"%d ой",y:"Ð±Ð¸Ñ Ð¹Ð¸Ð»",yy:"%d йил"},week:{dow:1,doy:7}}), 252//! moment.js locale configuration 253hooks.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(input){return/^ch$/i.test(input)},meridiem:function(hours,minutes,isLower){return hours<12?isLower?"sa":"SA":isLower?"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 trưá»c lúc] LT",sameElse:"L"},relativeTime:{future:"%s tá»i",past:"%s trưá»c",s:"và i giây",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(number){return number},week:{dow:1,doy:4}}), 254//! moment.js locale configuration 255hooks.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",ss:"%d s~écóñ~ds",m:"á ~mÃñ~út
vendor: 4,505 bytes, lines 255-261
255é",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"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10;return number+(1==~~(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")},week:{dow:1,doy:4}}), 256//! moment.js locale configuration 257hooks.defineLocale("yo",{months:"SẹÌrẹÌ_EÌreÌleÌ_ẸrẹÌnaÌ_IÌgbeÌ_EÌbibi_OÌkuÌdu_Agẹmo_OÌguÌn_Owewe_á»ÌwaÌraÌ_BeÌluÌ_á»ÌpẹÌÌ".split("_"),monthsShort:"SẹÌr_EÌrl_Ẹrn_IÌgb_EÌbi_OÌkuÌ_Agẹ_OÌguÌ_Owe_á»ÌwaÌ_BeÌl_á»ÌpẹÌÌ".split("_"),weekdays:"AÌiÌkuÌ_AjeÌ_IÌsẹÌgun_á»já»ÌruÌ_á»já»Ìbá»_ẸtiÌ_AÌbaÌmẹÌta".split("_"),weekdaysShort:"AÌiÌk_AjeÌ_IÌsẹÌ_á»jr_á»jb_ẸtiÌ_AÌbaÌ".split("_"),weekdaysMin:"AÌiÌ_Aj_IÌs_á»r_á»b_Ẹt_AÌb".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:"[OÌniÌ ni] LT",nextDay:"[á»Ìla ni] LT",nextWeek:"dddd [á»sáº¹Ì toÌn'bá»] [ni] LT",lastDay:"[AÌna ni] LT",lastWeek:"dddd [á»sáº¹Ì toÌlá»Ì] [ni] LT",sameElse:"L"},relativeTime:{future:"niÌ %s",past:"%s ká»jaÌ",s:"iÌsẹjuÌ aayaÌ die",ss:"aayaÌ %d",m:"iÌsẹjuÌ kan",mm:"iÌsẹjuÌ %d",h:"waÌkati kan",hh:"waÌkati %d",d:"á»já»Ì kan",dd:"á»já»Ì %d",M:"osuÌ kan",MM:"osuÌ %d",y:"á»duÌn kan",yy:"á»duÌn %d"},dayOfMonthOrdinalParse:/á»já»Ì\s\d{1,2}/,ordinal:"á»já»Ì %d",week:{dow:1,doy:4}}), 258//! moment.js locale configuration 259hooks.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:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥Ahç¹mmå",LLLL:"YYYYå¹´MæDæ¥ddddAhç¹mmå",l:"YYYY/M/D",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"忍"===meridiem||"æ©ä¸"===meridiem||"ä¸å"===meridiem?hour:"ä¸å"===meridiem||"æä¸"===meridiem?hour+12:hour>=11?hour:hour+12},meridiem:function(hour,minute,isLower){var hm=100*hour+minute;return hm<600?"忍":hm<900?"æ©ä¸":hm<1130?"ä¸å":hm<1230?"ä¸å":hm<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©]LT",nextDay:"[æå¤©]LT",nextWeek:function(now){return now.week()!==this.week()?"[ä¸]dddLT":"[æ¬]dddLT"},lastDay:"[æ¨å¤©]LT",lastWeek:function(now){return this.week()!==now.week()?"[ä¸]dddLT":"[æ¬]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|å¨)/,ordinal:function(number,period){switch(period){case"d":case"D":case"DDD":return number+"æ¥";case"M":return number+"æ";case"w":case"W":return number+"å¨";default:return number}},relativeTime:{future:"%så",past:"%så",s:"å ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ¶",hh:"%d å°æ¶",d:"1 天",dd:"%d 天",M:"1 个æ",MM:"%d 个æ",y:"1 å¹´",yy:"%d å¹´"},week:{dow:1,doy:4}}), 260//! moment.js locale configuration 261hooks.defineLocale("zh-hk",{months:"䏿_äºæ_䏿_åæ_äºæ_å æ_䏿_å «æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå ".split("_"),weekdaysShort:"鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å ".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥dddd HH:mm",l:"YYYY/M/D",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"忍"===meridiem||"æ©ä¸"===meridiem||"ä¸å"===meridiem?hour:"ä¸å"===meridiem?hour>=11?hour:hour+12:"ä¸å"===meridiem||"æä¸"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){var hm=100*hour+minute;
261return hm<600?"忍":hm<900?"æ©ä¸":hm<1200?"ä¸å":1200===hm?"ä¸å":hm<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©]LT",nextDay:"[æå¤©]LT",nextWeek:"[ä¸]ddddLT",lastDay:"[æ¨å¤©]LT",lastWeek:"[ä¸]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|é±)/,ordinal:function(number,period){switch(period){case"d":case"D":case"DDD":return number+"æ¥";case"M":return number+"æ";case"w":case"W":return number+"é±";default:return number}},relativeTime:{future:"%så¾",past:"%så",s:"å¹¾ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ",hh:"%d å°æ",d:"1 天",dd:"%d 天",M:"1 åæ",MM:"%d åæ",y:"1 å¹´",yy:"%d å¹´"}}), 262//! moment.js locale configuration 263hooks.defineLocale("zh-mo",{months:"䏿_äºæ_䏿_åæ_äºæ_å æ_䏿_å «æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå ".split("_"),weekdaysShort:"鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å ".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥dddd HH:mm",l:"D/M/YYYY",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"忍"===meridiem||"æ©ä¸"===meridiem||"ä¸å"===meridiem?hour:"ä¸å"===meridiem?hour>=11?hour:hour+12:"ä¸å"===meridiem||"æä¸"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){var hm=100*hour+minute;return hm<600?"忍":hm<900?"æ©ä¸":hm<1130?"ä¸å":hm<1230?"ä¸å":hm<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©] LT",nextDay:"[æå¤©] LT",nextWeek:"[ä¸]dddd LT",lastDay:"[æ¨å¤©] LT",lastWeek:"[ä¸]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|é±)/,ordinal:function(number,period){switch(period){case"d":case"D":case"DDD":return number+"æ¥";case"M":return number+"æ";case"w":case"W":return number+"é±";default:return number}},relativeTime:{future:"%så §",past:"%så",s:"å¹¾ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ",hh:"%d å°æ",d:"1 天",dd:"%d 天",M:"1 åæ",MM:"%d åæ",y:"1 å¹´",yy:"%d å¹´"}}), 264//! moment.js locale configuration 265hooks.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:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥dddd HH:mm",l:"YYYY/M/D",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(hour,meridiem){return 12===hour&&(hour=0),"忍"===meridiem||"æ©ä¸"===meridiem||"ä¸å"===meridiem?hour:"ä¸å"===meridiem?hour>=11?hour:hour+12:"ä¸å"===meridiem||"æä¸"===meridiem?hour+12:void 0},meridiem:function(hour,minute,isLower){var hm=100*hour+minute;return hm<600?"忍":hm<900?"æ©ä¸":hm<1130?"ä¸å":hm<1230?"ä¸å":hm<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©] LT",nextDay:"[æå¤©] LT",nextWeek:"[ä¸]dddd LT",lastDay:"[æ¨å¤©] LT",lastWeek:"[ä¸]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|é±)/,ordinal:function(number,period){switch(period){case"d":case"D":case"DDD":return number+"æ¥";case"M":return number+"æ";case"w":case"W":return number+"é±";default:return number}},relativeTime:{future:"%så¾",past:"%så",s:"å¹¾ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ",hh:"%d å°æ",d:"1 天",dd:"%d 天",M:"1 åæ",MM:"%d åæ",y:"1 å¹´",yy:"%d å¹´"}}),hooks.locale("en"),hooks})),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function assign(target,varArgs){"use strict";if(null==target)throw new TypeError("Cannot convert undefined or null to object");for(var to=Object(target),index=1;index<arguments.length;index++){var nextSource=arguments[index];if(null!=nextSource)for(var nextKey in nextSource)Object.prototype.hasOwnProperty.call(nextSource,nextKey)&&(to[nextKey]=nextSource[nextKey])}return to},writable:!0,configurable:!0}),void 0===Number.parseInt&&(Number.parseInt=window.parseInt),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(s){var el=this;do{if(Element.prototype.matches.call(el,s))return el;el=el.parentElement||el.parentNode}while(null!==el&&1===el.nodeType);return null}), 266/** 267* @author: Rinat G. http://coding.kz 268* @copyright: Copyright (c) 2019 Rinat G. 269* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php 270*/ 271function(root,factory){if("function"==typeof define&&define.amd)define(["moment"],(function(moment){return factory(moment)}));else if("object"==typeof module&&module.exports){var moment="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=factory(moment)}else root.Lightpick=factory(root.moment)}(this,(function(moment){"use strict";var document=window.document,defaults={field:null,secondField:null,firstDay:1,parentEl:"body",lang:"auto",format:"DD/MM/YYYY",separator:" - ",numberOfMonths:1,numberOfColumns:2,singleDate:!0,autoclose:!1,repick:!1,startDate:null,endD
271ate:null,minDate:null,maxDate:null,disableDates:null,selectForward:!1,selectBackward:!1,minDays:null,maxDays:null,hoveringTooltip:!0,hideOnBodyClick:!0,footer:!1,disabledDatesInRange:!0,tooltipNights:!1,orientation:"auto",disableWeekends:!1,inline:!1,weekdayStyle:"short",dropdowns:{years:{min:1900,max:null},months:!0},locale:{buttons:{prev:"←",next:"→",close:"×",reset:"Reset",apply:"Apply"},tooltip:{one:"day",other:"days"},tooltipOnDisabled:null,pluralize:function(i,locale){return"string"==typeof i&&(i=parseInt(i,10)),1===i&&"one"in locale?locale.one:"other"in locale?locale.other:""}},onSelect:null,onSelectStart:null,onSelectEnd:null,onOpen:null,onClose:null,onError:null,onMonthsChange:null,onYearsChange:null},renderTopButtons=function(opts){return'<div class="lightpick__toolbar"><button type="button" class="lightpick__previous-action">'+opts.locale.buttons.prev+'</button><button type="button" class="lightpick__next-action">'+opts.locale.buttons.next+"</button>"+(opts.autoclose||opts.inline?"":'<button type="button" class="lightpick__close-action">'+opts.locale.buttons.close+"</button>")+"</div>"},weekdayName=function(opts,day,weekdayStyle){return new Date(1970,0,day,12,0,0,0).toLocaleString(opts.lang,{weekday:weekdayStyle||opts.weekdayStyle})},renderDay=function(opts,date,dummy,extraClass){if(dummy)return"<div></div>";date=moment(date);var prevMonth=moment(date).subtract(1,"month"),nextMonth=moment(date).add(1,"month"),day={time:moment(date).valueOf(),className:["lightpick__day","is-available"]};if(extraClass instanceof Array||"[object Array]"===Object.prototype.toString.call(extraClass)?(extraClass=extraClass.filter((function(el){return["lightpick__day","is-available","is-previous-month","is-next-month"].indexOf(el)>=0})),day.className=day.className.concat(extraClass)):day.className.push(extraClass),opts.disableDates)for(var i=0;i<opts.disableDates.length;i++){if(opts.disableDates[i]instanceof Array||"[object Array]"===Object.prototype.toString.call(opts.disableDates[i])){var _from=moment(opts.disableDates[i][0],opts.format),_to=moment(opts.disableDates[i][1],opts.format);_from.isValid()&&_to.isValid()&&date.isBetween(_from,_to,"day","[]")&&day.className.push("is-disabled")}else moment(opts.disableDates[i],opts.format).isValid()&&moment(opts.disableDates[i],opts.format).isSame(date,"day")&&day.className.push("is-disabled");day.className.indexOf("is-disabled")>=0&&(opts.locale.tooltipOnDisabled&&(!opts.startDate||date.isAfter(opts.startDate)||opts.startDate&&opts.endDate)&&day.className.push("disabled-tooltip"),day.className.indexOf("is-start-date")>=0?(this.setStartDate(null),this.setEndDate(null)):day.className.indexOf("is-end-date")>=0&&this.setEndDate(null))}if(opts.minDays&&opts.startDate&&!opts.endDate&&date.isBetween(moment(opts.startDate).subtract(opts.minDays-1,"day"),moment(opts.startDate).add(opts.minDays-1,"day"),"day")&&(day.className.push("is-disabled"),opts.selectForward&&date.isSameOrAfter(opts.startDate)&&(day.className.push("is-forward-selected"),day.className.push("is-in-range"))),opts.maxDays&&opts.startDate&&!opts.endDate&&(date.isSameOrBefore(moment(opts.startDate).subtract(opts.maxDays,"day"),"day")||date.isSameOrAfter(moment(opts.startDate).add(opts.maxDays,"day"),"day"))&&day.className.push("is-disabled"),opts.repick&&(opts.minDays||opts.maxDays)&&opts.startDate&&opts.endDate){var tempStartDate=moment(opts.repickTrigger==opts.field?opts.endDate:opts.startDate);opts.minDays&&date.isBetween(moment(tempStartDate).subtract(opts.minDays-1,"day"),moment(tempStartDate).add(opts.minDays-1,"day"),"day")&&day.className.push("is-disabled"),opts.maxDays&&(date.isSameOrBefore(moment(tempStartDate).subtract(opts.maxDays,"day"),"day")||date.isSameOrAfter(moment(tempStartDate).add(opts.maxDays,"day"),"day"))&&day.className.push("is-disabled")}date.isSame(new Date,"day")&&day.className.push("is-today"),date.isSame(opts.startDate,"day")&&day.className.push("is-start-date"),date.isSame(opts.endDate,"day")&&day.className.push("is-end-date"),opts.startDate&&opts.endDate&&date.isBetween(opts.startDate,opts.endDate,"day","[]")&&day.className.push("is-in-range"),moment().isSame(date,"month")||(prevMonth.isSame(date,"month")?day.className.push("is-previous-month"):nextMonth.isSame(date,"month")&&day.className.push("is-next-month")),opts.minDate&&date.isBefore(opts.minDate,"day")&&day.className.push("is-disabled"),opts.maxDate&&date.isAfter(opts.maxDate,"day")&&day.className.push("is-disabled"),opts.selectForward&&!opts.singleDate&&opts.startDate&&!opts.endDate&&date.isBefore(opts.startDate,"day")&&day.className.push("is-disabled"),opts.selectBackward&&!opts.singleDate&&opts.startDate&&!opts.endDate&&date.isAfter(opts.startDate,"day")&&day.className.push("is-disabled"),!opts.disableWeekends||6!=date.isoWeekday()&&7!=date.isoWeekday()||day.className.push("is-disabled"),day.className=day.className.filter((function(value,index,self){return self.indexOf(value)===index})),day.className.indexOf("is-disabled")>=0&&day.className.indexOf("is-available")>=0&&day.className.splice(day.className.indexOf("is-available"),1);var div=document.createElement("div");return div.className=day.className.join(" "),div.innerHTML=date.get("date"),div.setAttribute("data-time",day.time),div.outerHTML},renderMonthsList=function(date,opts){for(var d=moment(date),select=document.createElement("select"),idx=0;idx<12;idx++){d.set("month",idx);var option=document.createElement("option");option.value=d.toDate().getMonth(),option.text=d.toDate().toLocaleStr
271ing(opts.lang,{month:"long"}),idx===date.toDate().getMonth()&&option.setAttribute("selected","selected"),select.appendChild(option)}return select.className="lightpick__select lightpick__select-months",select.dir="rtl",opts.dropdowns&&opts.dropdowns.months||(select.disabled=!0),select.outerHTML},renderYearsList=function(date,opts){var d=moment(date),select=document.createElement("select"),years=opts.dropdowns&&opts.dropdowns.years?opts.dropdowns.years:null,minYear=years&&years.min?years.min:1900,maxYear=years&&years.max?years.max:Number.parseInt(moment().format("YYYY"));Number.parseInt(date.format("YYYY"))<minYear&&(minYear=Number.parseInt(date.format("YYYY"))),Number.parseInt(date.format("YYYY"))>maxYear&&(maxYear=Number.parseInt(date.format("YYYY")));for(var idx=minYear;idx<=maxYear;idx++){d.set("year",idx);var option=document.createElement("option");option.value=d.toDate().getFullYear(),option.text=d.toDate().getFullYear(),idx===date.toDate().getFullYear()&&option.setAttribute("selected","selected"),select.appendChild(option)}return select.className="lightpick__select lightpick__select-years",opts.dropdowns&&opts.dropdowns.years||(select.disabled=!0),select.outerHTML},renderCalendar=function(el,opts){for(var html="",monthDate=moment(opts.calendar[0]),i=0;i<opts.numberOfMonths;i++){var day=moment(monthDate);html+='<section class="lightpick__month">',html+='<header class="lightpick__month-title-bar">',html+='<div class="lightpick__month-title">'+renderMonthsList(day,opts)+renderYearsList(day,opts)+"</div>",1===opts.numberOfMonths&&(html+=renderTopButtons(opts)),html+="</header>",html+='<div class="lightpick__days-of-the-week">';for(var w=opts.firstDay+4;w<7+opts.firstDay+4;++w)html+='<div class="lightpick__day-of-the-week" title="'+weekdayName(opts,w,"long")+'">'+weekdayName(opts,w)+"</div>";if(html+="</div>",html+='<div class="lightpick__days">',day.isoWeekday()!==opts.firstDay)for(var prevDays=day.isoWeekday()-opts.firstDay>0?day.isoWeekday()-opts.firstDay:day.isoWeekday(),prevMonth=moment(day).subtract(prevDays,"day"),daysInMonth=prevMonth.daysInMonth(),d=prevMonth.get("date");d<=daysInMonth;d++)html+=renderDay(opts,prevMonth,i>0,"is-previous-month"),prevMonth.add(1,"day");for(daysInMonth=day.daysInMonth(),new Date,d=0;d<daysInMonth;d++)html+=renderDay(opts,day),day.add(1,"day");var nextMonth=moment(day),nextDays=7-nextMonth.isoWeekday()+opts.firstDay;if(nextDays<7)for(d=nextMonth.get("date");d<=nextDays;d++)html+=renderDay(opts,nextMonth,i<opts.numberOfMonths-1,"is-next-month"),nextMonth.add(1,"day");html+="</div>",html+="</section>",monthDate.add(1,"month")}opts.calendar[1]=moment(monthDate),el.querySelector(".lightpick__months").innerHTML=html},updateDates=function(el,opts){var days=el.querySelectorAll(".lightpick__day");[].forEach.call(days,(function(day){day.outerHTML=renderDay(opts,parseInt(day.getAttribute("data-time")),!1,day.className.split(" "))})),checkDisabledDatesInRange(el,opts)},checkDisabledDatesInRange=function(el,opts){if(!opts.disabledDatesInRange&&opts.startDate&&!opts.endDate&&opts.disableDates){var days=el.querySelectorAll(".lightpick__day"),disabledArray=opts.disableDates.map((function(entry){return entry instanceof Array||"[object Array]"===Object.prototype.toString.call(entry)?entry[0]:entry})),closestPrev=moment(disabledArray.filter((function(d){return moment(d).isBefore(opts.startDate)})).sort((function(a,b){return moment(b).isAfter(moment(a))}))[0]),closestNext=moment(disabledArray.filter((function(d){return moment(d).isAfter(opts.startDate)})).sort((function(a,b){return moment(a).isAfter(moment(b))}))[0]);[].forEach.call(days,(function(dayCell){var day=moment(parseInt(dayCell.getAttribute("data-time")));(closestPrev&&day.isBefore(closestPrev)&&opts.startDate.isAfter(closestPrev)||closestNext&&day.isAfter(closestNext)&&closestNext.isAfter(opts.startDate))&&(dayCell.classList.remove("is-available"),dayCell.classList.add("is-disabled"))}))}},Lightpick=function(options){var self=this,opts=self.config(options);self.el=document.createElement("section"),self.el.className="lightpick lightpick--"+opts.numberOfColumns+"-columns is-hidden",opts.inline&&(self.el.className+=" lightpick--inlined");var html='<div class="lightpick__inner">'+(opts.numberOfMonths>1?renderTopButtons(opts):"")+'<div class="lightpick__months"></div><div class="lightpick__tooltip" style="visibility: hidden"></div>';opts.footer&&(html+='<div class="lightpick__footer">',!0===opts.footer?(html+='<button type="button" class="lightpick__reset-action">'+opts.locale.buttons.reset+"</button>",html+='<div class="lightpick__footer-message"></div>',html+='<button type="button" class="lightpick__apply-action">'+opts.locale.buttons.apply+"</button>"):html+=opts.footer,html+="</div>"),html+="</div>",self.el.innerHTML=html,opts.parentEl instanceof Node?opts.parentEl.appendChild(self.el):"body"===opts.parentEl&&opts.inline?opts.field.parentNode.appendChild(self.el):document.querySelector(opts.parentEl).appendChild(self.el),self._onMouseDown=function(e){if(self.isShowing){var target=(e=e||window.event).target||e.srcElement;if(target){e.stopPropagation(),target.classList.contains("lightpick__select")||e.preventDefault();var opts=self._opts;if(target.classList.contains("lightpick__day")&&target.classList.contains("is-available")){var day=moment(parseInt(target.getAttribute("data-time")));if(!opts.disabledDatesInRange&&opts.disableDates&&opts.startDate){var start=day.isAfter(opts.startDate)?moment(opts.startDate):moment(day),end=day.isAfter(opts.startDate)?moment(day):moment(opts.startDate);if(opts.disableDates.filter((function(d){if(d instanceof Array||"[object Array]"===Object.prototype.toString.call(d)){var _from=moment(d[0]),_to=moment(d[1]);return _from.isValid()&&_to.isValid()&&(_from.isBetween(start,end,"day","[]")||_to.isBetween(start,end,"day","[]"))}return moment(d).isBetween(start,end,"day","[]")})).length)return self.setStartDate(null),self.setEndDate(null),target.dispatchEvent(new Event("mousedown")),self.el.querySelector(".lightpick__tooltip").style.visibility="hidden",void updateDates(self.el,opts)}if(opts.singleDate||!opts.startDate&&!opts.endDate||opts.startDate&&opts.endDate?opts.repick&&opts.startDate&&opts.endDate?(opts.repickTrigger===opts.field?(self.setStartDate(day),target.classList.add("is-start-date")):(self.setEndDate(day),target.classList.add("is-end-date")),opts.startDate.isAfter(opts.endDate)&&self.swapDate(),opts.autoclose&&setTimeout((function(){self.hide()}),100)):(self.setStartDate(day),self.setEndDate(null),target.classList.add("is-start-date"),opts.singleDate&&opts.autoclose?setTimeout((function(){self.hide()}),100):opts.singleDate&&!opts.inline&&opts.autoclose||updateDates(self.el,opts)):opts.startDate&&!opts.endDate&&(self.setEndDate(day),opts.startDate.isAfter(opts.endDate)&&self.swapDate(),target.classList.add("is-end-date"),opts.autoclose?setTimeout((function(){self.hide()}),100):updateDates(self.el,opts)),!opts.disabledDatesInRange&&0===self.el.querySelectorAll(".lightpick__day.is-available").length&&(self.setStartDate(null),updateDates(self.el,opts),opts.footer))if("function"==typeof self._opts.onError)self._opts.onError.call(self,"Invalid range");else{var footerMessage=self.el.querySelector(".lightpick__footer-message");footerMessage&&(footerMessage.innerHTML=opts.locale.not_allowed_range,setTimeout((function(){footerMessage.innerHTML=""}),3e3))}}else target.classList.contains("lightpick__previous-action")?self.prevMonth():target.classList.contains("lightpick__next-action")?self.nextMonth():target.classList.contains("lightpick__close-action")||target.classList.contains("lightpick__apply-action")?self.hide():target.classList.contains("lightpick__reset-action")&&self.reset()}}},self._onMouseEnter=function(e){if(self.isShowing){var target=(e=e||window.event).target||e.srcElement;if(target){var opts=self._opts;if(target.classList.contains("lightpick__day")&&target.classList.contains("disabled-tooltip")&&opts.locale.tooltipOnDisabled)self.showTooltip(target,opts.locale.tooltipOnDisabled);
271else if(self.hideTooltip(),!opts.singleDate&&(opts.startDate||opts.endDate)&&(target.classList.contains("lightpick__day")||target.classList.contains("is-available"))&&(opts.startDate&&!opts.endDate||opts.repick)){var hoverDate=moment(parseInt(target.getAttribute("data-time")));if(!hoverDate.isValid())return;var startDate=opts.startDate&&!opts.endDate||opts.repick&&opts.repickTrigger===opts.secondField?opts.startDate:opts.endDate,days=self.el.querySelectorAll(".lightpick__day");if([].forEach.call(days,(function(day){var dt=moment(parseInt(day.getAttribute("data-time")));day.classList.remove("is-flipped"),dt.isValid()&&dt.isSameOrAfter(startDate,"day")&&dt.isSameOrBefore(hoverDate,"day")?(day.classList.add("is-in-range"),opts.repickTrigger===opts.field&&dt.isSameOrAfter(opts.endDate)&&day.classList.add("is-flipped")):dt.isValid()&&dt.isSameOrAfter(hoverDate,"day")&&dt.isSameOrBefore(startDate,"day")?(day.classList.add("is-in-range"),(opts.startDate&&!opts.endDate||opts.repickTrigger===opts.secondField)&&dt.isSameOrBefore(opts.startDate)&&day.classList.add("is-flipped")):day.classList.remove("is-in-range"),opts.startDate&&opts.endDate&&opts.repick&&opts.repickTrigger===opts.field?day.classList.remove("is-start-date"):day.classList.remove("is-end-date")})),opts.hoveringTooltip){days=Math.abs(hoverDate.isAfter(startDate)?hoverDate.diff(startDate,"day"):startDate.diff(hoverDate,"day")),opts.tooltipNights||(days+=1);self.el.querySelector(".lightpick__tooltip");if(days>0&&!target.classList.contains("is-disabled")){var pluralText="";"function"==typeof opts.locale.pluralize&&(pluralText=opts.locale.pluralize.call(self,days,opts.locale.tooltip)),self.showTooltip(target,days+" "+pluralText)}else self.hideTooltip()}opts.startDate&&opts.endDate&&opts.repick&&opts.repickTrigger===opts.field?target.classList.add("is-start-date"):target.classList.add("is-end-date")}}}},self._onChange=function(e){var target=(e=e||window.event).target||e.srcElement;target&&(target.classList.contains("lightpick__select-months")?("function"==typeof self._opts.onMonthsChange&&self._opts.onMonthsChange.call(this,target.value),self.gotoMonth(target.value)):target.classList.contains("lightpick__select-years")&&("function"==typeof self._opts.onYearsChange&&self._opts.onYearsChange.call(this,target.value),self.gotoYear(target.value)))},self._onInputChange=function(e){e.target||e.srcElement;self._opts.singleDate&&(self._opts.autoclose||self.gotoDate(opts.field.value)),self.syncFields(),self.isShowing||self.show()},self._onInputFocus=function(e){var target=e.target||e.srcElement;self.show(target)},self._onInputClick=function(e){var target=e.target||e.srcElement;self.show(target)},self._onClick=function(e){var target=(e=e||window.event).target||e.srcElement,parentEl=target;if(target){do{if(parentEl.classList&&parentEl.classList.contains("lightpick")||parentEl===opts.field||opts.secondField&&parentEl===opts.secondField)return}while(parentEl=parentEl.parentNode);self.isShowing&&opts.hideOnBodyClick&&target!==opts.field&&parentEl!==opts.field&&self.hide()}},self._onClose=function(e){var target=(e=e||window.event).target||e.srcElement;target&&self.hide()},self.showTooltip=function(target,text){var tooltip=self.el.querySelector(".lightpick__tooltip"),hasParentEl=self.el.classList.contains("lightpick--inlined"),dayBounding=target.getBoundingClientRect(),pickerBouding=hasParentEl?self.el.parentNode.getBoundingClientRect():self.el.getBoundingClientRect(),_left=dayBounding.left-pickerBouding.left+dayBounding.width/2,_top=dayBounding.top-pickerBouding.top;tooltip.style.visibility="visible",tooltip.textContent=text;var tooltipBounding=tooltip.getBoundingClientRect();_top-=tooltipBounding.height,_left-=tooltipBounding.width/2,setTimeout((function(){tooltip.style.top=_top+"px",tooltip.style.left=_left+"px"}),10)},self.hideTooltip=function(){self.el.querySelector(".lightpick__tooltip").style.visibility="hidden"},self.el.addEventListener("mousedown",self._onMouseDown,!0),self.el.addEventListener("mouseenter",self._onMouseEnter,!0),self.el.addEventListener("touchend",self._onMouseDown,!0),self.el.addEventListener("change",self._onChange,!0),opts.inline?self.show():self.hide(),opts.field.addEventListener("change",self._onInputChange),opts.field.addEventListener("click",
271self._onInputClick),opts.field.addEventListener("focus",self._onInputFocus),opts.secondField&&(opts.secondField.addEventListener("change",self._onInputChange),opts.secondField.addEventListener("click",self._onInputClick),opts.secondField.addEventListener("focus",self._onInputFocus))};return Lightpick.prototype={config:function(options){var opts=Object.assign({},defaults,options);if(opts.field=opts.field&&opts.field.nodeName?opts.field:null,opts.calendar=[moment().set("date",1)],1===opts.numberOfMonths&&opts.numberOfColumns>1&&(opts.numberOfColumns=1),opts.minDate=opts.minDate&&moment(opts.minDate,opts.format).isValid()?moment(opts.minDate,opts.format):null,opts.maxDate=opts.maxDate&&moment(opts.maxDate,opts.format).isValid()?moment(opts.maxDate,opts.format):null,"auto"===opts.lang){var browserLang=navigator.language||navigator.userLanguage;opts.lang=browserLang||"en-US"}return opts.secondField&&opts.singleDate&&(opts.singleDate=!1),opts.hoveringTooltip&&opts.singleDate&&(opts.hoveringTooltip=!1),"[object Object]"===Object.prototype.toString.call(options.locale)&&(opts.locale=Object.assign({},defaults.locale,options.locale)),window.innerWidth<480&&opts.numberOfMonths>1&&(opts.numberOfMonths=1,opts.numberOfColumns=1),opts.repick&&!opts.secondField&&(opts.repick=!1),opts.inline&&(opts.autoclose=!1,opts.hideOnBodyClick=!1),this._opts=Object.assign({},opts),this.syncFields(),this.setStartDate(this._opts.startDate,!0),this.setEndDate(this._opts.endDate,!0),this._opts},syncFields:function(){if(this._opts.singleDate||this._opts.secondField)moment(this._opts.field.value,this._opts.format).isValid()&&(this._opts.startDate=moment(this._opts.field.value,this._opts.format)),this._opts.secondField&&moment(this._opts.secondField.value,this._opts.format).isValid()&&(this._opts.endDate=moment(this._opts.secondField.value,this._opts.format));else{var dates=this._opts.field.value.split(this._opts.separator);2===dates.length&&(moment(dates[0],this._opts.format).isValid()&&(this._opts.startDate=moment(dates[0],this._opts.format)),moment(dates[1],this._opts.format).isValid()&&(this._opts.endDate=moment(dates[1],this._opts.format)))}},swapDate:function(){var tmp=moment(this._opts.startDate);this.setDateRange(this._opts.endDate,tmp)},gotoToday:function(){this.gotoDate(new Date)},gotoDate:function(date){(date=moment(date,this._opts.format)).isValid()||(date=moment()),date.set("date",1),this._opts.calendar=[moment(date)],renderCalendar(this.el,this._opts)},gotoMonth:function(month){isNaN(month)||(this._opts.calendar[0].set("month",month),renderCalendar(this.el,this._opts))},gotoYear:function(year){isNaN(year)||(this._opts.calendar[0].set("year",year),renderCalendar(this.el,this._opts))},prevMonth:function(){this._opts.calendar[0]=moment(this._opts.calendar[0]).subtract(this._opts.numberOfMonths,"month"),renderCalendar(this.el,this._opts),checkDisabledDatesInRange(this.el,this._opts)},nextMonth:function(){this._opts.calendar[0]=moment(this._opts.calendar[1]),renderCalendar(this.el,this._opts),checkDisabledDatesInRange(this.el,this._opts)},updatePosition:function(){if(!this.el.classList.contains("lightpick--inlined")){this.el.classList.remove("is-hidden");var rect=this._opts.field.getBoundingClientRect(),calRect=this.el.getBoundingClientRect(),orientation=this._opts.orientation.split(" "),top=0,left=0;"auto"!=orientation[0]&&/top|bottom/.test(orientation[0])?(top=rect[orientation[0]]+window.pageYOffset,"top"==orientation[0]&&(top-=calRect.height)):top=rect.bottom+calRect.height>window.innerHeight&&window.pageYOffset>calRect.height?rect.top+window.pageYOffset-calRect.height:rect.bottom+window.pageYOffset,/left|right/.test(orientation[0])||orientation[1]&&"auto"!=orientation[1]&&/left|right/.test(orientation[1])?(left=/left|right/.test(orientation[0])?rect[orientation[0]]+window.pageXOffset:rect[orientation[1]]+window.pageXOffset,"right"!=orientation[0]&&"right"!=orientation[1]||(left-=calRect.width)):left=rect.left+calRect.width>window.innerWidth?rect.right+window.pageXOffset-calRect.width:rect.left+window.pageXOffset,this.el.classList.add("is-hidden"),this.el.style.top=top+"px",this.el.style.left=left+"px"}},setStartDate:function(date,preventOnSelect){var dateISO=moment(date,moment.ISO_8601),dateOptFormat=moment(date,this._opts.format);if(!dateISO.isValid()&&!dateOptFormat.isValid())return this._opts.startDate=null,void(this._opts.field.value="");this._opts.startDate=moment(dateISO.isValid()?dateISO:dateOptFormat),this._opts.singleDate||this._opts.secondField?this._opts.field.value=this._opts.startDate.format(this._opts.format):this._opts.field.value=this._opts.startDate.format(this._opts.format)+this._opts.separator+"...",preventOnSelect||"function"!=typeof this._opts.onSelect||this._opts.onSelect.call(this,this.get
271StartDate(),this.getEndDate()),preventOnSelect||this._opts.singleDate||"function"!=typeof this._opts.onSelectStart||this._opts.onSelectStart.call(this,this.getStartDate())},setEndDate:function(date,preventOnSelect){var dateISO=moment(date,moment.ISO_8601),dateOptFormat=moment(date,this._opts.format);if(!dateISO.isValid()&&!dateOptFormat.isValid())return this._opts.endDate=null,void(this._opts.secondField?this._opts.secondField.value="":!this._opts.singleDate&&this._opts.startDate&&(this._opts.field.value=this._opts.startDate.format(this._opts.format)+this._opts.separator+"..."));this._opts.endDate=moment(dateISO.isValid()?dateISO:dateOptFormat),this._opts.secondField?(this._opts.field.value=this._opts.startDate.format(this._opts.format),this._opts.secondField.value=this._opts.endDate.format(this._opts.format)):this._opts.field.value=this._opts.startDate.format(this._opts.format)+this._opts.separator+this._opts.endDate.format(this._opts.format),preventOnSelect||"function"!=typeof this._opts.onSelect||this._opts.onSelect.call(this,this.getStartDate(),this.getEndDate()),preventOnSelect||this._opts.singleDate||"function"!=typeof this._opts.onSelectEnd||this._opts.onSelectEnd.call(this,this.getEndDate())},setDate:function(date,preventOnSelect){this._opts.singleDate&&(this.setStartDate(date,preventOnSelect),this.isShowing&&updateDates(this.el,this._opts))},setDateRange:function(start,end,preventOnSelect){this._opts.singleDate||(this.setStartDate(start,!0),this.setEndDate(end,!0),this.isShowing&&updateDates(this.el,this._opts),preventOnSelect||"function"!=typeof this._opts.onSelect||this._opts.onSelect.call(this,this.getStartDate(),this.getEndDate()))},setDisableDates:function(dates){this._opts.disableDates=dates,this.isShowing&&updateDates(this.el,this._opts)},getStartDate:function(){return moment(this._opts.startDate).isValid()?this._opts.startDate.clone():null},getEndDate:function(){return moment(this._opts.endDate).isValid()?this._opts.endDate.clone():null},getDate:function(){return moment(this._opts.startDate).isValid()?this._opts.startDate.clone():null},toString:function(format){return this._opts.singleDate?moment(this._opts.startDate).isValid()?this._opts.startDate.format(format):"":moment(this._opts.startDate).isValid()&&moment(this._opts.endDate).isValid()?this._opts.startDate.format(format)+this._opts.separator+this._opts.endDate.format(format):moment(this._opts.startDate).isValid()&&!moment(this._opts.endDate).isValid()?this._opts.startDate.format(format)+this._opts.separator+"...":!moment(this._opts.startDate).isValid()&&moment(this._opts.endDate).isValid()?"..."+this._opts.separator+this._opts.endDate.format(format):""},show:function(target){this.isShowing||(this.isShowing=!0,this._opts.repick&&(this._opts.repickTrigger=target),this.syncFields(),this._opts.secondField&&this._opts.secondField===target&&this._opts.endDate?this.gotoDate(this._opts.endDate):this.gotoDate(this._opts.startDate),document.addEventListener("click",this._onClick),this.updatePosition(),this.el.classList.remove("is-hidden"),"function"==typeof this._opts.onOpen&&this._opts.onOpen.call(this),document.activeElement&&document.activeElement!=document.body&&document.activeElement.blur())},hide:function(){this.isShowing&&(this.isShowing=!1,document.removeEventListener("click",this._onClick),this.el.classList.add("is-hidden"),this.el.querySelector(".lightpick__tooltip").style.visibility="hidden","function"==typeof this._opts.onClose&&this._opts.onClose.call(this))},destroy:function(){var opts=this._opts;this.hide(),this.el.removeEventListener("mousedown",self._onMouseDown,!0),this.el.removeEventListener("mouseenter",self._onMouseEnter,!0),this.el.removeEventListener("touchend",self._onMouseDown,!0),this.el.removeEventListener("change",self._onChange,!0),opts.field.removeEventListener("change",this._onInputChange),opts.field.removeEventListener("click",this._onInputClick),opts.field.removeEventListener("focus",this._onInputFocus),opts.secondField&&(opts.secondField.removeEventListener("change",this._onInputChange),opts.secondField.removeEventListener("click",this._onInputClick),opts.secondField.removeEventListener("focus",this._onInputFocus)),this.el.parentNode&&this.el.parentNode.removeChild(this.el)},reset:function(){this.setStartDate(null,!0),this.setEndDate(null,!0),updateDates(this.el,this._opts),"function"==typeof this._opts.onSelect&&this._opts.onSelect.call(this,this.get
271StartDate(),this.getEndDate()),this.el.querySelector(".lightpick__tooltip").style.visibility="hidden"},reloadOptions:function(options){var dropdowns=this._opts.dropdowns,locale=this._opts.locale;Object.assign(this._opts,this._opts,options),Object.assign(this._opts.dropdowns,dropdowns,options.dropdowns),Object.assign(this._opts.locale,locale,options.locale)}},Lightpick})),BW=window.BW||{},DEBUG=!1,winW=window.winW?window.winW:0,initialWinW=null,winH=window.winH?window.winH:0,initialWinH=null;var isIE6,isIE7,isIE8,isIE9,isIE10,isIE11,isEdge=!1,brokenIE=!1,breakpoint={xs:320,s:480,sm:600,m:768,l:1024},mobileBreakPoint=667,currentBreakPoint="xs",isHotelView=!1,isHotelView2021=!1,isJobboerse=!1,isV2020=!1,isWSBK=!1,loadgallery="",geoCoderPoint,siteInfoAccordion=null,sliderInitiated=!1;clusterSearchInit=!1;var dev=-1!==window.location.href.indexOf("bw-dev.selbstdenker.com"),staging=-1!==window.location.href.indexOf("bw-staging.selbstdenker.com"),isLive=-1!==window.location.href.indexOf("bestwestern.de"),ua=navigator.userAgent.toLowerCase(),isAndroid=ua.indexOf("mozilla/5.0")>-1&&ua.indexOf("android ")>-1&&ua.indexOf("applewebkit")>-1,androidVersion=parseFloat(ua.slice(ua.indexOf("android")+8));if(isAndroid&&androidVersion&&(document.documentElement.classList.add("android"),document.documentElement.classList.add("android"+10*androidVersion),androidVersion<=4.3&&document.getElementById("select.form-control").classList.remove("form-control")),-1!==ua.indexOf("safari/")&&-1!==ua.indexOf("windows")&&-1===ua.indexOf("chrom")&&document.documentElement.classList.add("winSafari"),-1!==ua.indexOf("edge/")){isEdge=!0;var edgeVersion=parseFloat(ua.slice(ua.indexOf("edge/")+5,ua.indexOf("edge/")+7));console.log("edgeVersion:",edgeVersion),document.documentElement.classList.add("edge"),document.documentElement.classList.add("ie"+edgeVersion)}if(Browser.Platform.ios){var iOSDevice=ua.match(/(ip(ad|od|hone))/)[0];iOSDevice&&document.documentElement.classList.add(iOSDevice)}"firefox"==Browser.name&&(document.documentElement.classList.add("ff"),document.documentElement.classList.add("ff"+Browser.version)),Browser.devicePixelRatio=this.devicePixelRatio;var ieversion=document.documentMode/*@cc_on || 7 @*/;ieversion&&(document.documentElement.classList.add("ie"+ieversion),6==ieversion&&(isIE6=!0),7==ieversion&&(isIE7=!0),8==ieversion&&(isIE8=!0),9==ieversion&&(isIE9=!0),10==ieversion&&(isIE10=!0),11==ieversion&&(isIE11=!0)),(ieversion||edgeVersion<79)&&(brokenIE=!0,document.documentElement.classList.add("brokenIE")),BW.brokenIE=brokenIE;var hasWebGL=function(){var supported,canvas;try{canvas=document.createElement("canvas"),supported=!!window.WebGLRenderingContext&&(canvas.getContext("webgl")||canvas.getContext("experimental-webgl"))}catch(e){supported=!1}try{eval("let foo = 123;")}catch(e){supported=!1}return!1===supported&&console.log("WebGL is not supported"),canvas=void 0,supported},is_touch_device=function(){var prefixes=" -webkit- -moz- -o- -ms- ".split(" ");return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||function(query){return window.matchMedia(query).matches}(["(",prefixes.join("touch-enabled),("),"heartz",")"].join(""))},isIOS=function(){return!!/iPad|iPhone|iPod/.test(navigator.platform)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform)},isIpadOS=function(){return navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform)},BrowserSupportsTouch=is_touch_device();isIOS()&&isIpadOS()&&BrowserSupportsTouch&&document.documentElement.classList.add("ipad");var readDeviceOrientation=function(){90===Math.abs(window.orientation)?console.info("LANDSCAPE"):console.info("PORTRAIT")};const mediaQuery=window.matchMedia("(min-width: 768px)");mediaQuery.matches;var handleTabletChange=function(e){e.matches};mediaQuery.addListener(handleTabletChange),handleTabletChange(mediaQuery);var ajaxLoader=document.createElement("IMG");ajaxLoader.src="/bw/v6/img/ajax-loader32.gif",mobileLayout=!!window.mobileLayout&&window.mobileLayout,deviceOrientation=window.deviceOrientation?window.deviceOrientation:"undefined";var setScreenWidthData=function(){winW=getScreenWidth(),null===initialWinW&&(initialWinW=winW), 272document.body.setAttribute("data-screenwidth",winW),winH=getScreenHeight(),null===initialWinH&&(initialWinH=winH),document.body.setAttribute("data-screenheight",winH),winW<=mobileBreakPoint||"iphone"==iOSDevice||isAndroid&&winW<768?(mobileLayout=!0,winW<winH?(deviceOrientation="portrait",document.documentElement.classList.add("portrait")):(deviceOrientation="landscape",document.documentElement.classList.add("landscape"))):mobileLayout=!1},getScreenWidth=function(){return document.body&&document.body.offsetWidth&&(winW=document.body.offsetWidth),"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth&&(winW=document.documentElement.offsetWidth),window.innerWidth&&window.innerHeight&&(winW=window.innerWidth),winW},getScreenHeight=function(){return document.body&&document.body.offsetHeight&&(winH=document.body.offsetHeight),"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetHeight&&(winH=document.documentElement.offsetHeight),window.innerHeight&&(winH=window.innerHeight),winH},arrivalDepartureDatePicker=function(arrivalInput,departureInput,nightsSelect,tweakX,tweakY,ct){var ctNights,arrive=document.getElementById(arrivalInput),depart=document.getElementById(departureInput);if(ctNights="object"==typeof nightsSelect?nightsSelect:document.getElementById(nightsSelect),void 0===ct)ct=0;else if(ct>=10)return;if(arrive&&depart){document.getElementById("quickSearchSubmit");var dateArr=[];tweakX||(tweakX=0),tweakY||(tweakY=0);var myTweak={x:tweakX,y:tweakY},fixedNights=!1;ctNights&&1===ctNights.querySelectorAll("option:enabled").length&&(fixedNights=!0);var arrivalFormGroup=arrive.parentElement;if(arrivalFormGroup.dataset.calendarTweak){var tw=arrivalFormGroup.dataset.calendarTweak.split(",");myTweak={x:parseInt(tw[0]),y:parseInt(tw[1])}}(arrive.closest(".bookingBoxInLine.noStickyHeader")||depart.closest(".bookingBoxInLine.noStickyHeader"))&&(myTweak={x:-111,y:63});var dateFormat="d.m.Y",splitter=".",isEN=!1,calendarLanguage="DE";"English"==(window.sessionLanguage?window.sessionLanguage:"German")&&(
272dateFormat="m/d/Y",splitter="/",isEN=!0,calendarLanguage="EN");var initParams={},ai={};ai[arrivalInput]=dateFormat,initParams[arrivalInput]=ai;var di={};di[departureInput]=dateFormat,initParams[departureInput]=di;var myCal=new Calendar(initParams,{language:calendarLanguage,tweak:myTweak,pad:1,timeout:500,onShowComplete:function(evt){myCal.calendars.forEach((function(kal){if(kal.val&&""===kal.el.defaultValue){var d=kal.val,dYear=d.getYear()<2e3?d.getYear()+1900:d.getYear(),dMonth=d.getMonth()+1;dMonth=dMonth<10?"0"+dMonth:dMonth;var dDay=d.getDate()<10?"0"+d.getDate():d.getDate();kal.el.defaultValue=isEN?dMonth+"/"+dDay+"/"+dYear:dDay+"."+dMonth+"."+dYear}}))},onHideStart:function(evt){if(ctNights){var oldValArr=[],arrivalIsSet=!1;myCal.calendars.forEach((function(kal,i){var oldValue,oldDate,newDate,newDepart,newArrive,naechte;kal.val&&(dateArr[i]=kal.val,oldValArr[i]=kal.el.defaultValue,fixedNights?(oldValue=oldValArr[0].split(splitter),oldDate=isEN?new Date(oldValue):new Date(oldValue[2],oldValue[1]-1,oldValue[0]),newDate=dateArr[0],0!==oldDate.getTime()-newDate.getTime()?(newDepart=new Date(myCal.calendars[0].val.getTime()+1e3*ctNights.value*3600*24+36e5),myCal.calendars[1].val=newDepart,myCal.write(myCal.calendars[1]),myCal.check(myCal.calendars[1]),kal.el.defaultValue=myCal.format(newDate,dateFormat)):(newDate=dateArr[1],newArrive=new Date(myCal.calendars[1].val.getTime()-1e3*ctNights.value*3600*24+36e5),myCal.calendars[0].val=newArrive,myCal.calendars[0].el.defaultValue=myCal.format(newArrive,dateFormat),myCal.write(myCal.calendars[0]),myCal.check(myCal.calendars[0]),kal.el.defaultValue=myCal.format(newDate,dateFormat))):0===i?(oldValue=oldValArr[0].split(splitter),(oldDate=isEN?new Date(oldValue):new Date(oldValue[2],oldValue[1]-1,oldValue[0]))>(newDate=dateArr[0])?(newDepart=new Date(myCal.calendars[0].val.getTime()+1e3*ctNights.value*3600*24+36e5),myCal.calendars[1].val=newDepart,myCal.write(myCal.calendars[1]),myCal.check(myCal.calendars[1]),kal.el.defaultValue=myCal.format(newDate,dateFormat)):oldDate<newDate&&(arrivalIsSet=!0,newDepart=new Date(myCal.calendars[0].val.getTime()+1e3*ctNights.value*3600*24+36e5),myCal.calendars[1].val=newDepart,myCal.write(myCal.calendars[1]),myCal.check(myCal.calendars[1]),kal.el.defaultValue=myCal.format(newDate,dateFormat))):arrivalIsSet||""===oldValArr[1]||(oldValue=oldValArr[1].split(splitter),(oldDate=isEN?new Date(oldValue):new Date(oldValue[2],oldValue[1]-1,oldValue[0]))>(newDate=dateArr[1])?(naechte=Math.round((newDate.getTime()-dateArr[0].getTime())/864e5),isNaN(naechte)||(ctNights.selectedIndex=naechte-1)):(naechte=Math.round((dateArr[1].getTime()-dateArr[0].getTime())/864e5),isNaN(naechte)||(ctNights.selectedIndex=naechte-1))))}))}}});window.myCal||(window.myCal=myCal),ctNights&&(ctNights.addEventListener("change",(function(){var newDepart=new Date(myCal.calendars[0].val.getTime()+1e3*ctNights.value*3600*24+36e5);depart.value=myCal.format(newDepart,dateFormat),myCal.calendars[1].val=newDepart})),ctNights.addEventListener("focus",(function(){var cal=myCal.calendars[1];cal.visible&&myCal.toggle(cal)})))}else window.setTimeout((function(){initArrivalDepartureDatePicker(arrivalInput,departureInput,nightsSelect,tweakX,tweakY,ct+=1)}),200)},initArrivalDepartureDatePicker=arrivalDepartureDatePicker,AvailabilityCalendar=new Class({initialize:function(element,options){document.getElement(element)&&(this.calendarTable=element,this.rangeStart=null,this.rangeEnd=null,this.rangeStartId,this.rangeEndId,this.requestedId,this.startTD,this.endTD,this.blockedDays=[],this.hoverIsOn=!1,this.container=this.calendarTable.getParent("#availability"),this.allTDs=this.calendarTable.getElements("td.cal"),this.availableTDs=this.calendarTable.getElements("td.cal:not(.notfree)"),this.notFreeTDs=this.calendarTable.getElements("td.notfree"),this.requested=this.calendarTable.getElements(".requested"),this.datePicker=myCal,this.arrivalDatePicker=$("anreise_dp"),this.departureDatePicker=$("abreise_dp"),this.nightSelect=$("ss_nights"),this.ctNights=this.nightSelect.value,this.submitBtn=$("bookingUpdateBtn"),this.dateFormat="%m.%d.%Y",this.correctDateFormat="%d.%m.%Y",this.language=window.sessionLanguage?window.sessionLanguage:"German","English"==this.language&&(this.dateFormat="%m/%d/%Y",this.correctDateFormat="%m/%d/%Y"),this.datePicker.initialState={},this.datePicker.initialState.values=[this.datePicker.calendars[0].val,this.datePicker.calendars[1].val],this.arrivalDatePicker.initialState={},this.arrivalDatePicker.initialState.value=this.arrivalDatePicker.value,this.arrivalDatePicker.initialState.class=this.arrivalDatePicker.getProperty("class"),this.departureDatePicker.initialState={},this.departureDatePicker.initialState.value=this.departureDatePicker.value,this.departureDatePicker.initialState.class=this.departureDatePicker.getProperty("class"),this.nightSelect.initialState={},this.nightSelect.initialState.value=this.nightSelect.value,this.nightSelect.initialState.class=this.nightSelect.getProperty("class"),this.submitBtn.initialState={},this.submitBtn.initialState.disabled=this.submitBtn.getProperty("disabled"),this.datePickerClicked=null,this.searchOptions=$("search-options"),this.calForm=$("updateform"),this.minMaxNights=this.getMinMaxNightsFromQuery(),(this.minMaxNights.min||this.minMaxNights.max)&&(this.restrictNightSelect(),this.setCalendarPad()),this.fillNixTDs(),this.checkRequested(),Browser.Features.Touch||Browser.Features.iOSTouch?this.calendarTable.getElements("td.cal a[data-behavior=BS.Tooltip]").removeEvents("mouseover"):this.calendarTable.addEvent("mouseleave",function(evt){this.clearHighlighting(
272)}.bind(this)),"firefox"==Browser.name&&this.cleanLeftoverToolTips(),this.boundSetRangeOnClick=this.setRangeOnClick.bind(this),this.allTDs.removeEvents("click"),this.allTDs.addEvent("click",this.boundSetRangeOnClick),this.trackDatePickerChange())},trackAdultsCountChange:function(){this.adultsCount.addEvent("change",function(){this.submitBtn&&(this.submitBtn.disabled=!1)}.bind(this))},trackDatePickerChange:function(){this.departureDatePicker.addEvent("click",function(){this.datePickerClicked="departure"}.bind(this)),this.arrivalDatePicker.addEvent("click",function(){this.datePickerClicked="arrival"}.bind(this))},cleanLeftoverToolTips:function(){this.allTDs.addEvent("mouseenter",(function(evt){$$("div.tooltip.fade.out").destroy()})),this.calendarTable.addEvent("mouseleave",(function(evt){$$("div.tooltip.fade.out").destroy()}))},checkRequested:function(){var badDates=!1;this.requested.each((function(requested){requested.hasClass("notfree")&&(badDates=!0)})),!0===badDates&&[this.arrivalDatePicker,this.departureDatePicker,this.nightSelect].each((function(elem){elem.addClass("badDate"),elem.initialState.badDate=!0,elem.initialState.class+=" badDate"}))},fillNixTDs:function(){var firstAvailable=this.availableTDs[0],lastAvailable=this.availableTDs[this.availableTDs.length-1];firstAvailable||(firstAvailable=this.calendarTable.getElements("td.cal:not(#nix)")[0]),lastAvailable||(lastAvailable=this.calendarTable.getElements("td.cal:not(#nix)")[this.calendarTable.getElements("td.cal:not(#nix)").length-1]),this.notFreeTDs.each(function(notFree){var nixDate=null;if("nix"==notFree.id){if(this.allTDs.indexOf(notFree)<this.allTDs.indexOf(firstAvailable)){var diff=this.allTDs.indexOf(firstAvailable)-this.allTDs.indexOf(notFree);nixDate=Date.parse(firstAvailable.id).decrement("day",diff)}else if(this.allTDs.indexOf(notFree)>this.allTDs.indexOf(lastAvailable)){diff=this.allTDs.indexOf(notFree)-this.allTDs.indexOf(lastAvailable);nixDate=Date.parse(lastAvailable.id).increment("day",diff)}notFree.set("id",nixDate.format("%Y-%m-%d")),notFree.getElement(".day").set("text",nixDate.format("%d")),notFree.getElement(".month").set("text",nixDate.format("%b"));var blocked=nixDate.getDate()+" "+parseInt(nixDate.getMonth()+1)+" "+nixDate.getFullYear();this.blockedDays.push(blocked)}else{var myDate;if("German"==this.language){var split=notFree.id.split(".");myDate=Date.parse(split[1]+"."+split[0]+"."+split[2])}else myDate=Date.parse(notFree.id);blocked=myDate.getDate()+" "+parseInt(myDate.getMonth()+1)+" "+myDate.getFullYear();this.blockedDays.push(blocked)}}.bind(this)),this.addBlockedToCalendars(this.blockedDays)},addBlockedToCalendars:function(d){d&&this.datePicker.setOptions({blocked:d})},clearHighlighting:function(){this.allTDs.removeClass("range-hilite"),this.allTDs.removeClass("range-hilite-start"),this.allTDs.removeClass("range-hilite-end"),this.allTDs.removeClass("notfree-hilite"),this.startTD=$(this.rangeStartId),this.endTD=$(this.rangeEndId),this.startTD&&(this.startTD.removeClass("range-end"),this.startTD.addClass("range-start")),this.endTD&&this.endTD.addClass("range-end")},setRangeStart:function(startTD){if(this.startTD=startTD,this.rangeStartId=startTD.id,"German"==this.language){var split=this.rangeStartId.split(".");this.rangeStart=Date.parse(split[1]+"."+split[0]+"."+split[2])}else this.rangeStart=Date.parse(this.rangeStartId);myCal.calendars[0].val=this.rangeStart,this.calendarTable.getElement(".range-start")&&this.calendarTable.getElement(".range-start").removeClass("range-start"),this.startTD.hasClass("range")||this.startTD.addClass("range"),this.startTD.addClass("range-start"),this.arrivalDatePicker&&(this.arrivalDatePicker.set("value",this.rangeStart.format(this.correctDateFormat)),this.arrivalDatePicker.removeClass("badDate"))},setRangeEnd:function(triggerSubmit){if(void 0===triggerSubmit&&(triggerSubmit=!0),this.rangeEndId=this.endTD.id,"German"==this.language){var split=this.rangeEndId.split(".");this.rangeEnd=Date.parse(split[1]+"."+split[0]+"."+split[2])}else this.rangeEnd=Date.parse(this.rangeEndId);myCal.calendars[1].val=this.rangeEnd,this.endTD.hasClass("range")||this.endTD.addClass("range"),this.endTD.addClass("range-end"),this.setRange(triggerSubmit)},unsetRangeEnd:function(){this.endTD.removeClass("range-end"),this.endTD=null,this.rangeEndId=null,this.rangeEnd=null,this.clearHighlighting(
272),this.calendarTable.getElements("td.cal:not(.range-start)").removeClass("range")},unsetRangeStart:function(){this.rangeStartId=null,this.rangeStart=null,this.startTD.removeClass("range range-start"),this.calendarTable.getElements("td.range")&&this.calendarTable.getElements("td.range").removeClass("range"),this.rangeEnd=null,null!==this.rangeEndId&&(this.startTD=$(this.rangeEndId),this.rangeEndId=null,this.startTD&&(this.startTD.removeClass("range-end"),this.setRangeStart(this.startTD)))},setRange:function(triggerSubmit){if(void 0===triggerSubmit&&(triggerSubmit=!0),this.rangeEnd<this.rangeStart){if(this.startTD=$(this.rangeEndId),this.endTD=$(this.rangeStartId),this.rangeStartId=this.startTD.id,"German"==this.language){var split=this.rangeStartId.split(".");this.rangeStart=Date.parse(split[1]+"."+split[0]+"."+split[2])}else this.rangeStart=Date.parse(this.rangeStartId);if(this.startTD.removeClass("range-end"),this.startTD.addClass("range-start"),this.rangeEndId=this.endTD.id,"German"==this.language){split=this.rangeEndId.split(".");this.rangeEnd=Date.parse(split[1]+"."+split[0]+"."+split[2])}else this.rangeEnd=Date.parse(this.rangeEndId);this.endTD.removeClass("range-start"),this.endTD.addClass("range-end")}this.rangeIsFree()?(this.availableTDs.each(function(td){var spanDate;if("German"==this.language){var split=td.id.split(".");spanDate=Date.parse(split[1]+"."+split[0]+"."+split[2])}else spanDate=Date.parse(td.id);spanDate>this.rangeStart&&spanDate<this.rangeEnd&&!td.hasClass("range")&&td.addClass("range")}.bind(this)),this.updateArrivalDeparture(triggerSubmit)):this.unsetRangeEnd(this.endTD)},rangeIsFree:function(){return!(this.allTDs.filter(function(item,index){return this.allTDs.indexOf(item)>=this.allTDs.indexOf(this.startTD)&&this.allTDs.indexOf(item)<this.allTDs.indexOf(this.endTD)&&item.hasClass("notfree")}.bind(this)).length>0)},clearRequested:function(){this.requested.length&&(this.requested.removeClass("requested"),[this.arrivalDatePicker,this.departureDatePicker,this.nightSelect].each((function(elem){elem.removeClass("badDate")})))},possibleRangeIsFree:function(myIndex){return!(this.allTDs.filter(function(item,index){return(this.allTDs.indexOf(item)>this.allTDs.indexOf(this.startTD)&&this.allTDs.indexOf(item)<=myIndex||this.allTDs.indexOf(item)<this.allTDs.indexOf(this.startTD)&&this.allTDs.indexOf(item)>=myIndex)&&item.hasClass("notfree")}.bind(this)).length>0)},markRangeAsNotFree:function(start,end){for(var i=start;i<=end;i++)this.allTDs[i].addClass("notfree-hilite")},isWithinMaxRange:function(hoverTD,negative){if(!this.minMaxNights.max&&!this.minMaxNights.min)return!0;if(!0===negative){var max=this.allTDs.indexOf(this.startTD)-this.minMaxNights.max.toInt();if(this.allTDs.indexOf(hoverTD)<max)return!1}else{max=this.allTDs.indexOf(this.startTD)+this.minMaxNights.max.toInt();if(this.allTDs.indexOf(hoverTD)>max)return!1}return!0},isWithinMinRange:function(hoverTD,negative){if(!this.minMaxNights.max&&!this.minMaxNights.min)return!0;if(!0===negative){var min=this.allTDs.indexOf(this.startTD)-this.minMaxNights.min.toInt();if(this.allTDs.indexOf(hoverTD)>min)return!1}else{min=this.allTDs.indexOf(this.startTD)+this.minMaxNights.min.toInt();if(this.allTDs.indexOf(hoverTD)<min)return!1}return!0},isWithinMinMaxRange:function(td,negative){return this.isWithinMaxRange(td,negative)&&this.isWithinMinRange(td,negative)},highlightPossibleRange:function(){this.allTDs.addEvent("mouseenter",function(evt){var hoverTD=evt.target;if(null!==this.rangeStart){this.startTD=$(this.rangeStartId),this.clearHighlighting();var myIndex=this.allTDs.indexOf(hoverTD),diff=this.allTDs.indexOf(this.startTD)-myIndex;if(diff>0)if(null===this.rangeEnd){this.startTD.removeClass("range-start"),this.startTD.addClass("range-end"),hoverTD.hasClass("notfree")?this.markRangeAsNotFree(this.allTDs.indexOf(hoverTD),this.allTDs.indexOf(this.startTD)):hoverTD.addClass("range-hilite-start");for(var i=myIndex+1;i<=this.allTDs.indexOf(this.startTD);i++)this.allTDs[i].hasClass("range")||this.allTDs[i].addClass("range-hilite"),this.possibleRangeIsFree(myIndex)&&this.isWithinMinMaxRange(hoverTD,!0)||this.markRangeAsNotFree(this.allTDs.indexOf(hoverTD),this.allTDs.indexOf(this.startTD))}else{this.endTD=$(this.rangeEndId),hoverTD.hasClass("notfree")&&this.markRangeAsNotFree(this.allTDs.indexOf(this.startTD),this.allTDs.indexOf(hoverTD));for(i=myIndex;i<this.allTDs.indexOf(this.startTD);i++)this.allTDs[i].hasClass("range")||this.allTDs[i].addClass("range-hilite"),this.possibleRangeIsFree(myIndex)||this.markRangeAsNotFree(this.allTDs.indexOf(hoverTD),this.allTDs.indexOf(this.endTD))}else if(diff<0){hoverTD.hasClass("range")||hoverTD.addClass("range-hilite-end");var beforeTD=this.allTDs[this.allTDs.indexOf(hoverTD)-1];if(hoverTD.hasClass("notfree")&&beforeTD.hasClass("notfree")){this.markRangeAsNotFree(this.allTDs.indexOf(this.startTD),this.allTDs.indexOf(hoverTD));for(i=myIndex;i>this.allTDs.indexOf(this.startTD);i--)this.allTDs[i].hasClass("range")||this.allTDs[i].addClass("range-hilite"),this.possibleRangeIsFree(myIndex)||this.markRangeAsNotFree(this.allTDs.indexOf(this.startTD),this.allTDs.indexOf(hoverTD))}else for(i=myIndex;i>this.allTDs.indexOf(this.startTD);i--)this.allTDs[i].hasClass("range")||this.allTDs[i].addClass("range-hilite"),this.possibleRangeIsFree(myIndex-1)&&this.isWithinMaxRange(hoverTD)&&this.isWithinMinRange(hoverTD)||this.markRangeAsNotFree(this.allTDs.indexOf(this.startTD),this.allTDs.indexOf(hoverTD))}}this.hoverIsOn=!0}.bind(this))},isPossibleDepartureDay:function(clickedTD){var dayBeforeTD=this.allTDs[this.allTDs.indexOf(clickedTD)-1];return this.allTDs.indexOf(this.startTD)<this.allTDs.indexOf(clickedTD)&&!dayBeforeTD.hasClass("notfree")},setRangeOnClick:function(evt){evt.stop();var clickedTD=null;if((clickedTD="TD"==evt.target.tagName?evt.target:evt.target.getParent("td")).hasClass("range"))this.rangeEndId==clickedTD.id?this.unsetRangeEnd():this.rangeStartId==clickedTD.id&&this.unsetRangeStart(clickedTD);else if(null!==this.rangeStart||null!==this.rangeEnd||clickedTD.hasClass("notfree"))if(null!==this.rangeStart&&null===this.rangeEnd)this.allTDs.indexOf(this.startTD)<this.allTDs.indexOf(clickedTD)&&this.isWithinMinMaxRange(clickedTD)?this.isPossibleDepartureDay(clickedTD)&&(this.endTD=clickedTD,this.setRangeEnd(),this.clearHighlighting(
272)):clickedTD.hasClass("notfree-hilite")||(this.endTD=clickedTD,this.setRangeEnd(),this.clearHighlighting());else{var clickedDate;if("German"==this.language){var split=clickedTD.id.split(".");clickedDate=Date.parse(split[1]+"."+split[0]+"."+split[2])}else clickedDate=Date.parse(clickedTD.id);clickedDate>this.rangeEnd?(this.possibleRangeIsFree(this.allTDs.indexOf(clickedTD))&&this.isWithinMinMaxRange(clickedTD)&&(this.unsetRangeEnd(this.endTD),this.endTD=clickedTD,this.setRangeEnd()),this.clearHighlighting()):clickedDate<this.rangeStart&&(this.possibleRangeIsFree(this.allTDs.indexOf(clickedTD))&&this.isWithinMinMaxRange(clickedTD)&&(this.setRangeStart(clickedTD),this.setRangeEnd()),this.clearHighlighting())}else this.setRangeStart(clickedTD),Browser.Features.Touch||Browser.Features.iOSTouch||this.highlightPossibleRange();this.minMaxNights.min||this.minMaxNights.max||this.updateNightSelect()},updateArrivalDeparture:function(triggerSubmit){void 0===triggerSubmit&&(triggerSubmit=!0),this.arrivalDatePicker&&(this.arrivalDatePicker.set("value",this.rangeStart.format(this.correctDateFormat)),this.arrivalDatePicker.removeClass("badDate"),this.arrivalDatePicker.addClass("hilighted")),this.departureDatePicker&&(this.departureDatePicker.set("value",this.rangeEnd.format(this.correctDateFormat)),this.departureDatePicker.removeClass("badDate"),this.departureDatePicker.addClass("hilighted")),this.nightSelect&&(this.nightSelect.set("value",(this.rangeEnd-this.rangeStart)/86400/1e3),1==this.nightSelect.value&&this.nightSelect.getElements("option")[this.nightSelect.selectedIndex].set("text","1 "+LS("NIGHT")),this.nightSelect.removeClass("badDate"),this.nightSelect.addClass("hilighted")),this.submitBtn&&(this.submitBtn.disabled=!1),this.setLinkParameter(),!0===triggerSubmit&&this.calForm.submit()},setLinkParameter:function(){if(this.calendarTable.getElement("td.cal a")){var myHref=this.calendarTable.getElement("td.cal a").get("href"),queryObj=myHref.substr(myHref.indexOf("?")+1).parseQueryString();Object.erase(queryObj,"arrival"),Object.erase(queryObj,"departure"),Object.erase(queryObj,"nights"),Object.erase(queryObj,"adults"),Object.erase(queryObj,"children"),Object.erase(queryObj,"single"),Object.erase(queryObj,"double"),Object.erase(queryObj,"wosid"),Object.each(queryObj,function(val,key){var myHiddenInput=document.getElement("input[name="+key+"]");myHiddenInput?myHiddenInput.value!=val&&myHiddenInput.set("value",val):myHiddenInput=new Element("input",{type:"hidden",name:key,value:val}).inject(this.calForm)}.bind(this))}},updateNightSelect:function(){if(console.info("function updateNightSelect"),this.rangeStart&&this.rangeEnd){$(this.rangeStartId);var startIndex=this.allTDs.indexOf(this.startTD),nightsAvailable=this.getAvailableNightsCount(startIndex),nightsBeforeMonthEnds=this.allTDs.length-startIndex-1;if(nightsAvailable<=nightsBeforeMonthEnds&&nightsAvailable>0){var nightSelectOptions=this.nightSelect.getElements("option");this.nightSelect.getElement("option[selected]");if(nightSelectOptions.length<nightsAvailable)for(var i=nightSelectOptions.length+1;i<=nightsAvailable;i++)new Element("option",{value:i,text:i+(1==i?" "+LS("NIGHT"):" "+LS("NIGHTS"))}).inject(this.nightSelect);else if(nightSelectOptions.length>nightsAvailable){nightSelectOptions.filter((function(item,index){return item.value>nightsAvailable})).dispose()}}}else this.resetCalendar(),this.restoreInitialStates()},restoreInitialStates:function(){[this.arrivalDatePicker,this.departureDatePicker,this.nightSelect].each((function(elem){elem.value=elem.initialState.value,elem.setProperty("class",elem.initialState.class)})),this.submitBtn.setProperty("disabled",this.submitBtn.initialState.disabled),this.datePicker.calendars[0].val=this.datePicker.initialState.values[0],this.datePicker.calendars[1].val=this.datePicker.initialState.values[1]},resetCalendar:function(){this.rangeStart&&(this.rangeStart=null),this.rangeEnd&&(this.rangeEnd=null),this.rangeEndId&&(this.rangeEndId=null),this.rangeStartId&&(this.rangeStartId=null),this.startTD&&(this.startTD=null),this.endTD&&(this.endTD=null),this.allTDs.removeClass("range-start"),this.allTDs.removeClass("range-end"),this.allTDs.removeClass("range")},restrictNightSelect:function(){if(this.nightSelect){var selectedOption=this.nightSelect.getSelected(),selectedOptionValue=selectedOption.length>0?selectedOption[0].value:this.minMaxNights.min;if(this.minMaxNights.min==this.minMaxNights.max){this.nightSelect.getElements("option").dispose();var txt=1==this.minMaxNights.max?" "+LS("NIGHT"):" "+LS("NIGHTS"),opt=new Element("option",{value:this.minMaxNights.max,text:this.minMaxNights.max+txt}).inject(this.nightSelect)}
272else{this.nightSelect.getElements("option").dispose();for(var i=this.minMaxNights.min;i<=this.minMaxNights.max;i++){var n=1==i?" "+LS("NIGHT"):" "+LS("NIGHTS");(opt=new Element("option",{value:i,text:i+n})).selected=i==selectedOptionValue,opt.inject(this.nightSelect)}}}else console.error("nightSelect ist nicht gesetzt!")},setCalendarPad:function(){this.minMaxNights.min&&(myCal.options.pad=this.minMaxNights.min),this.minMaxNights.max&&(myCal.options.limit=this.minMaxNights.max)},getMinMaxNightsFromQuery:function(){var minMaxNights={},queryObj=document.location.search.substr(1,document.location.search.length).parseQueryString();return queryObj.minNights?minMaxNights.min=queryObj.minNights:minMaxNights.min=1,queryObj.maxNights?minMaxNights.max=queryObj.maxNights:minMaxNights.max=30,minMaxNights},getAvailableNightsCount:function(startIndex){var nightsAvailable=0;if(this.minMaxNights.max)nightsAvailable=this.minMaxNights.max;else for(var i=startIndex;i<this.allTDs.length;i++)(this.allTDs[i]&&this.allTDs[i].hasClass("notfree")||i==this.allTDs.length-1)&&(nightsAvailable=i-startIndex);return nightsAvailable},updateAvailabilityCalendar:function(){var dateArr=[],oldValArr=[];myCal.calendars.each(function(kal,i){if(dateArr[i]=kal.val,oldValArr[i]=kal.el.defaultValue,0===i){var oldValue,toCheck;if(oldValue="German"==this.language?oldValArr[0].split("."):oldValArr[0].split("/"),!this.startTD)(toCheck="German"==this.language?$(oldValue[1]+"."+oldValue[0]+"."+oldValue[2]):$(oldValue[0]+"."+oldValue[1]+"."+oldValue[2])).hasClass("notfree")||(this.rangeStartId=toCheck,this.startTD=$(this.rangeStartId),this.setRangeStart(this.startTD),!1===this.hoverIsOn&&this.highlightPossibleRange());if(this.nightSelect&&this.rangeStart){var ctNights=this.nightSelect.value;if((endDate=this.rangeStart.clone()).increment("day",parseInt(ctNights)),this.endTD){var tempEndTD=$(endDate.format(this.dateFormat));tempEndTD!==this.endTD&&(this.unsetRangeEnd(),this.endTD=tempEndTD)}else this.endTD=$(endDate.format(this.dateFormat));this.possibleRangeIsFree(this.allTDs.indexOf(this.endTD))&&(this.setRangeStart(this.startTD),!1===this.hoverIsOn&&this.highlightPossibleRange(),this.setRangeEnd(!1)),this.updateNightSelect()}else this.startTD&&(this.setRangeStart(this.startTD),!1===this.hoverIsOn&&this.highlightPossibleRange())}else{var endDate=dateArr[i].format(this.dateFormat);this.endTD=$(endDate),this.endTD&&(!1===this.hoverIsOn&&this.highlightPossibleRange(),this.setRangeEnd(!1))}}.bind(this))},handleArrivalDatePickerData:function(newDate,oldVal){var ctNights=this.nightSelect.value?this.nightSelect.value:this.ctNights,oldValue=oldVal.split("."),checkStart=$(oldValue[1]+"."+oldValue[0]+"."+oldValue[2]);if(checkStart){if(this.startTD&&this.unsetRangeStart(this.startTD),!checkStart.hasClass("notfree")){this.rangeStartId=checkStart,this.startTD=$(this.rangeStartId);var testEndDate=newDate.clone().increment("day",parseInt(ctNights)),testIndex=this.allTDs.indexOf[$(testEndDate.format(this.dateFormat))];if(myCal.options.limit&&!this.possibleRangeIsFree(testIndex))return this.startTD=null,void this.restoreInitialStates();this.setRangeStart(this.startTD),!1===this.hoverIsOn&&this.highlightPossibleRange()}var lastAvailableDate,endDate=this.rangeStart.clone().increment("day",parseInt(ctNights)),lastAvailable=this.availableTDs[this.availableTDs.length-1];if("German"==this.language){var split=lastAvailable.id.split(".");lastAvailableDate=Date.parse(split[1]+"."+split[0]+"."+split[2])}else lastAvailableDate=Date.parse(lastAvailable.id);if(endDate>lastAvailableDate&&(endDate=lastAvailableDate),this.endTD){var tempEndTD=$(endDate.format(this.dateFormat));tempEndTD!==this.endTD&&(this.unsetRangeEnd(),this.endTD=tempEndTD)}else this.endTD=$(endDate.format(this.dateFormat));this.possibleRangeIsFree(this.allTDs.indexOf(this.endTD)-1)&&(this.setRangeStart(this.startTD),!1===this.hoverIsOn&&this.highlightPossibleRange(),this.setRangeEnd(!1)),this.minMaxNights.min||this.minMaxNights.max||this.updateNightSelect()}else this.setLinkParameter(),this.calForm.submit()},handleDepartureDatePickerData:function(newDate,oldVal){var ctNights=this.nightSelect.value?this.nightSelect.value:this.ctNights;
272if(this.startTD){var testStartDate=newDate.clone().decrement("day",ctNights),testStartTD=$(testStartDate.format(this.dateFormat)),endDate=newDate.format(this.dateFormat);if(testStartTD&&this.rangeStart!=testStartDate){var toCheck=$(testStartDate.format(this.dateFormat));if(toCheck){if(toCheck.hasClass("notfree"))return this.unsetRangeStart(this.startTD),this.startTD=null,this.updateNightSelect(),void this.restoreInitialStates();if(this.unsetRangeStart(this.startTD),this.rangeStartId=toCheck,this.startTD=$(this.rangeStartId),myCal.options.limit&&!this.possibleRangeIsFree(this.allTDs.indexOf($(endDate))-1))return this.unsetRangeStart(this.startTD),this.startTD=null,void this.restoreInitialStates();this.setRangeStart(this.startTD),!1===this.hoverIsOn&&this.highlightPossibleRange()}this.endTD=$(endDate),this.endTD&&(!1===this.hoverIsOn&&this.highlightPossibleRange(),this.setRangeEnd(!1))}else this.resetCalendar(),this.restoreInitialStates()}else this.resetCalendar(),this.restoreInitialStates()},updateAvailabilityCalendarFromDatePicker:function(){var dateArr=[],oldValArr=[];myCal.calendars.each(function(kal,i){kal.val&&(dateArr[i]=kal.val,oldValArr[i]=kal.el.defaultValue,0===i?this.handleArrivalDatePickerData(kal.val,kal.el.defaultValue):this.handleDepartureDatePickerData(kal.val,kal.el.defaultValue))}.bind(this))}}),initAvailabilityCalendar=function(){if($("availability_calendarselector")){var calendarTable=document.getElement("table.availabiltyCalendar");if(calendarTable){var myAvailabilityCalendar=new AvailabilityCalendar(calendarTable);console.log("myAvailabilityCalendar: ",myAvailabilityCalendar),window.myAvailabilityCalendar=myAvailabilityCalendar}}},hideUmkreissuche=function(){document.querySelectorAll(".show-on-map, .map-lightbox").forEach((function(el){el.style.display="none"}))},reloadSearchResults=function(val){var locationSearchHyperlink=document.getElementById("locationSearchHyperlink");if(locationSearchHyperlink){var locationSearchUrl=locationSearchHyperlink.getAttribute("href"),exchangeableHotelList=document.getElementById("exchangeableHotelList");if(exchangeableHotelList){document.getElementById("locationSearchMaxDistance").value=val,void 0===BW.geoCodeObj?(console.error("geoCodeObj is undefined"),queryStr="cityRegion="+addressStr+"&max="+val):queryStr="cityRegion="+addressStr+"&max="+val;var suchText="Suche nach Hotels im Umkreis von <b>"+val+"km</b>.";"German"!==language&&(suchText="Searching for hotels within a radius of <b>"+val+"km</b>."),exchangeableHotelList.innerHTML='<div class="suchhinweis">'+suchText+"</div>",console.log("queryStr",queryStr);var queryStr="&max="+val;queryStr+="&arrival="+document.getElementById("anreise_dp").value,queryStr+="&departure="+document.getElementById("abreise_dp").value,queryStr+="&nights="+document.getElementById("ss_nights").value,queryStr+="&adults1="+document.getElementById("adults1").value,queryStr+="&children1="+document.getElementById("children1").value,queryStr+="&adults2="+document.getElementById("adults2").value,queryStr+="&children2="+document.getElementById("children2").value,queryStr+="&adults3="+document.getElementById("adults3").value,queryStr+="&children3="+document.getElementById("children3").value,new Request.HTML({url:locationSearchUrl,onSuccess:function(responseTree,responseElements,responseHTML,responseJavaScript){exchangeableHotelList.innerHTML=responseHTML,afterAjaxCalls()},onFailure:function(){exchangeableHotelList.set("text","ERROR")}}).send(queryStr)}}},initSlider2020=function(map){var slider=document.getElementById("slider");if(slider){var distance=document.getElementById("distance"),knob=slider.querySelector(".knob"),sliderSpan=slider.querySelector("span");if(map){var startZoom=map.getZoom(),currentZoom=startZoom,circleOptions={clickable:!1,fillColor:"#ffffff",fillOpacity:.2,strokeColor:"#003c7e",strokeOpacity:.7,strokeWeight:1,visible:!1,radius:8e4,map:map,center:map.getCenter()},circle=new google.maps.Circle;if(circle.setOptions(circleOptions),slider){var valueChanged=!1,initiated=!1,initialStep=80,valueFromMaxDistance=0,maxDistance=0,maxDistanceInput=document.getElementById("locationSearchMaxDistance");return maxDistanceInput&&(maxDistance=parseInt(maxDistanceInput.value),!isNaN(maxDistance)&&maxDistance>=10&&maxDistance<=80&&(initialStep=maxDistance,valueFromMaxDistance=maxDistance)),umkSlider=new Slider(slider,knob,{steps:80,range:[10],initialStep:initialStep,onChange:function(value){val=!valueChanged&&valueFromMaxDistance>0?valueFromMaxDistance:value,map&&(distance.set("html","+"+val+" km"),circle.setRadius(1e3*val),val>=10&&val<=80&&(val<=20?currentZoom!=startZoom+1&&(map.setZoom(startZoom+1), 273currentZoom=startZoom+1):val>20&&val<=35?currentZoom!=startZoom&&(map.setZoom(startZoom),currentZoom=startZoom):val>35&&val<=55?currentZoom!=startZoom-1&&(map.setZoom(startZoom-1),currentZoom=startZoom-1):val>55&&val<=80?currentZoom!=startZoom-2&&(map.setZoom(startZoom-2),currentZoom=startZoom-2):currentZoom!=startZoom-3&&(map.setZoom(startZoom-3),currentZoom=startZoom-3))),sliderSpan.style.width=(val-10)/.7+"%",valueChanged||value===initialStep||(valueChanged=!0)},onComplete:function(value){value>=10&&value<=80&&(circle.setRadius(1e3*value),initiated&&parseInt(value)!==initialStep&&reloadSearchResults(value),initiated=!0)}}),!0}return!1}}};function initUmkreissuche2020(){var umkreismap=document.getElementById("umkreismap");if(umkreismap){var ssOrt=document.getElementById("ss_ort")?document.getElementById("ss_ort"):document.getElementById("ss_ort_demo");addressStr=ssOrt.value.toString();var h="100px";if(mobileLayout||document.documentElement.classList.contains("ipad"))h="200px";umkreismap.setStyles({height:h,width:"100%"});if(void 0===google.maps){var myKey=mapsKeyForDomain(),langKey="de";"English"==(window.sessionLanguage?window.sessionLanguage:"German")&&(langKey="en");
273try{console.info("trying to load google maps api..."),google.load("maps","3",{other_params:"key="+myKey+"&language="+langKey,callback:function(){console.info("maps api loaded"),startUmkreissuche2020(),umkreismap.closest(".radius-search").style.display="block"}})}catch(exception){console.log("Exception: ",exception)}}if(void 0===google.maps)return;map=new google.maps.Map(document.getElementById("umkreismap"),{zoom:8,disableDefaultUI:!0}),initBWCustomIcons(),initBWPushPinIcon(),bounds=new google.maps.LatLngBounds;myKey=mapsKeyForDomain();if(""!==addressStr)var geocoder=new google.maps.Geocoder("",myKey);if(""!==addressStr&&geocoder){addressStr=fixForMuenchenFlughafen(addressStr),function Geocode(addressStr){BW.geoCodeObj&&BW.geoCodeObj.addressStr===addressStr?(addMarkerArrayV6(),map.setCenter({lat:BW.geoCodeObj.lat,lng:BW.geoCodeObj.lng}),map.setZoom(8),window.setTimeout((function(){initSlider2020(map)}),1e3)):geocoder.geocode({address:addressStr},(function(results,status){status==google.maps.GeocoderStatus.OK?(point=results[0].geometry.location,geoCoderPoint=point,BW.geoCoderPoint=point,BW.geoCodeObj={addressStr:addressStr,lat:point.lat(),lng:point.lng()},addMarkerArrayV6(),map.setCenter(point),map.setZoom(8),window.setTimeout((function(){initSlider2020(map)}),1500)):status===google.maps.GeocoderStatus.OVER_QUERY_LIMIT?(console.info("Geocode was not successful for the following reason: ",status),document.querySelector(".map-lightbox").innerHTML=""):console.info("Geocode was not successful for the following reason: ",status)}))}(addressStr)}else map.setCenter(new google.maps.LatLng(50.109527,8.663802)),addMarkerArrayV6(),bounds?map.fitBounds(bounds):map.setZoom(8),window.setTimeout((function(){initSlider2020(map)}),1e3)}}var searchResultMap2020=function(){var lightBoxMap=document.getElementById("lightbox_googlemap");if(lightBoxMap){var cmpData=__cmp("getCMPData");if("vendorConsents"in cmpData)if("s1104"in cmpData.vendorConsents&&cmpData.vendorConsents.s1104);else if(lightBoxMap.querySelectorAll("div").length>0)return lightBoxMap.innerHTML='<div class="cmplazyload" data-cmp-vendor="s1104" data-cmp-preview="600x600"></div>',void __cmp("checkBlocking");if(void 0===google.maps){var myKey=mapsKeyForDomain(),langKey="de",language=window.sessionLanguage?window.sessionLanguage:"German";"English"==language&&(langKey="en");try{console.info("trying to load google maps api..."),google.load("maps","3",{other_params:"key="+myKey+"&language="+langKey,callback:function(){console.info("maps api loaded"),searchResultMap2020()}})}catch(exception){console.log("Exception: ",exception)}}if(void 0===google.maps)return void console.log("google maps api could not be loaded!");initBWCustomIcons(),initBWClusterIcons(),lightBoxMap.style.height="600px",lightBoxMap.style.width="600px",lightBoxMap.style.visibility="hidden",mobileLayout&&(lightBoxMap.style.width="100%",lightBoxMap.style.height="92vh");var options={zoom:9,scrollwheel:!1,streetViewControl:!1,mapTypeId:google.maps.MapTypeId.ROADMAP},mapForLightbox=new google.maps.Map(lightBoxMap,options);mapForLightbox.setCenter(new google.maps.LatLng(51,10));var bounds=new google.maps.LatLngBounds;hotelArray.each((function(data){var bwIcon,hotelId=data[0],latitude=data[1],longitude=data[2],icon=data[3],stars=data[4],hotelViewLink=data[5],roomSelectLink=data[6],hotelTitle=data[7],hotelAddress=data[8],hotelPrice=data[9];""===stars&&(stars="hl"),"English"==language&&hotelViewLink.indexOf("/en/")<0&&(hotelViewLink="/en"+hotelViewLink);var infoWindowContent='<div id="HI-'+hotelId+'"><div class="v3InfoWindow hitlistMapsInfoWindow"><a href="'+hotelViewLink+'" target="_blank" class="'+stars+'" title="'+hotelTitle+'">'+hotelTitle+'<span> </span></a><p class="adresse">'+hotelAddress+'</p><a href="'+hotelViewLink+'" class="detail" title="'+LS("HOTELDETAILS")+'" target="_blank">'+LS("HOTELDETAILS")+"</a>";if(infoWindowContent=hotelPrice?(infoWindowContent=infoWindowContent+'<div class="priceInfo"><strong>'+hotelPrice+"*</strong><br />"+LS("PER_ROOM_NIGHT")+"</div>")+'<a href="'+roomSelectLink+'" class="buchenbtn" title="'+LS("BOOKNOW")+'"><img src="/bw/v6/img/btn/buchen79.gif" alt="'+LS("BOOKNOW")+'"></a></div></div>':(infoWindowContent+='<div class="priceInfo"></div>')+'<a href="'+roomSelectLink+'" class="buchenbtn" title="'+LS("ALTERNATIVE_DATES")+'"><img src="/bw/v6/img/btn/buchen79.gif" alt="'+LS("ALTERNATIVE_DATES")+'"></a></div></div>',checkVar(latitude)&&checkVar(longitude)){var position=new google.maps.LatLng(latitude,longitude);"string"==typeof icon?(""===icon&&(icon="coreIcon"),bwIcon=BWIcons[icon]):bwIcon=BWIcons.coreIcon;var infoWindow=new google.maps.InfoWindow({content:infoWindowContent,maxWidth:200,pixelOffset:new google.maps.Size(-2,47)}),marker=new google.maps.Marker({position:position,map:mapForLightbox,icon:bwIcon});google.maps.event.addListener(marker,"click",(function(){infoWindow.open(mapForLightbox,marker)})),bounds.extend(position)}})),BW.geoCodeObj&&BW.geoCodeObj.addressStr===addressStr&&map.setCenter({lat:BW.geoCodeObj.lat,lng:BW.geoCodeObj.lng});var zoomLevel=9;addressStr&&BW.geoCodeObj||(zoomLevel=16),mapForLightbox.setZoom(zoomLevel),bounds&&window.setTimeout((function(){mapForLightbox.fitBounds(bounds),bounds.getNorthEast().equals(bounds.getSouthWest
273())&&google.maps.event.addListenerOnce(mapForLightbox,"bounds_changed",(function(){mapForLightbox.setZoom(zoomLevel)})),lightBoxMap.style.visibility="visible"}),500)}},initSlider=function(){var slide=$("slider"),distance=$("distance");return!!distance&&(distance.set("html","10 "+LS("KMPERRING")),umkSlider=new Slider(slide,slide.getElement(".knob"),{steps:101,range:[10],onChange:function(value){UKSOverlay&&(distance.set("html",value+" "+LS("KMPERRING")),value<101&&UKSOverlay.draw("",value),$defined(drawUmkreisSlider)&&drawUmkreisSlider())},onComplete:function(value){$defined(umkreisSucheHookUp)&&(slidervalue=value,!0===sliderInitiated&&showAddress($("uks_ort").value,$("uks_adresse").value),sliderInitiated=!0)}}),!0)},startUmkreissuche=function(){var umkreismap=$("umkreismap");if(umkreismap){if(initSlider(),addressStr=$("cityRegionSearchString").value.toString(),""!==$("cityRegionSearchString").value&&($("uks_ort").value=$("cityRegionSearchString").value),alert("addressStr: ",addressStr),console.log("addressStr: ",addressStr),""===addressStr)return;addressStr=fixForMuenchenFlughafen(addressStr),initBWCustomIcons(),initBWPushPinIcon();var s={x:460,y:349},divSize=umkreismap.getParent("div.col-lg-6").getSize();s.x=divSize.x-divSize.x/100*4,s.y=349*s.x/460,umkreismap.setStyles({height:s.y,width:s.x});var myOptions={zoom:7,scrollwheel:!1,streetViewControl:!1,panControl:!1,zoomControl:!0,scaleControl:!0,mapTypeId:google.maps.MapTypeId.HYBRID};map=new google.maps.Map(document.getElementById("umkreismap"),myOptions),bounds=new google.maps.LatLngBounds;var myKey=mapsKeyForDomain(),geocoder=new google.maps.Geocoder("",myKey);if(""!==addressStr&&geocoder){!function Geocode(addressStr){geocoder.geocode({address:addressStr},(function(results,status){status==google.maps.GeocoderStatus.OK?(point=results[0].geometry.location,geoCoderPoint=point,pushpinMarker&&pushpinMarker.setMap(null),pushpinMarker=new google.maps.Marker({map:map,position:results[0].geometry.location,icon:pushpinIcon,shadow:pushpinIconShadow,title:addressStr}),addAllMarkerArrayV3(),UKSOverlay&&(UKSOverlay.setMap(null),UKSOverlay=null),map.setCenter(point),BWCustomOverlay(),map.setZoom(9)):(google.maps.GeocoderStatus.OVER_QUERY_LIMIT,console.info("Geocode was not successful for the following reason: ",status))}))}(addressStr)}else map.setCenter(new google.maps.LatLng(50.109527,8.663802)),addAllMarkerArrayV3(),UKSOverlay&&(UKSOverlay.setMap(null),UKSOverlay=null),BWCustomOverlay(),map.setZoom(9);var crss=$("uks_ort");crss&&(crss.removeEvents("keyup"),crss.addEvent("keydown",(function(evt){13==evt.code&&(slidervalue=10,showAddress($("uks_ort").value,$("uks_adresse").value))})))}},refreshUmkreisSuche=function(){var umkreismap=umkreismap||window.umkreismap;if(umkreismap){console.info("refreshUmkreisSuche");var s={x:460,y:349},divSize=umkreismap.getParent("div.col-lg-6").getSize();s.x=divSize.x-divSize.x/100*4,s.y=349*s.x/460,umkreismap.setStyles({height:s.y,width:s.x}),map=new google.maps.Map(document.getElementById("umkreismap"),{zoom:void 0===currentZoom?9:currentZoom,scrollwheel:!1,streetViewControl:!1,panControl:!1,zoomControl:!1,scaleControl:!1,mapTypeId:google.maps.MapTypeId.HYBRID}),pushpinMarker&&pushpinMarker.setMap(map),addAllMarkerArrayV3(),UKSOverlay&&UKSOverlay.setMap(map),map.setCenter(currentBounds.getCenter())}},showAddress=function(stadt,adresse){var myAddress="";void 0!==adresse&&(myAddress=""===adresse||"Adresse, Bahnhof, POI, o.ä."==adresse?"":adresse);var tempAddressStr=(""!==myAddress?myAddress+", ":"")+(stadt=""===stadt||"Stadt"==stadt?"":stadt);if(""!==tempAddressStr&&tempAddressStr.toLowerCase()!=addressStr){addressStr=tempAddressStr,addressStr=fixForMuenchenFlughafen(addressStr);var myKey=mapsKeyForDomain(),geocoder=new google.maps.Geocoder("",myKey);if(""!==addressStr&&geocoder){!function Geocode(addressStr){geocoder.geocode({address:addressStr},(function(results,status){status==google.maps.GeocoderStatus.OK?(point=results[0].geometry.location,geoCoderPoint.lng()!=point.lng()||geoCoderPoint.lat()!=point.lat()?(geoCoderPoint=point,map.setZoom(7),pushpinMarker&&pushpinMarker.setMap(null),pushpinMarker=new google.maps.Marker({map:map,position:results[0].geometry.location,icon:pushpinIcon,shadow:pushpinIconShadow,title:addressStr}),sliderInitiated=!1,umkreisSucheHookUp(10),addAllMarkerArrayV3(),UKSOverlay&&(UKSOverlay.setMap(null),UKSOverlay=null),map.setCenter(point),BW
273CustomOverlay(),map.setZoom(9),initSlider()):status===google.maps.GeocoderStatus.OVER_QUERY_LIMIT?console.info("Geocode was not successful for the following reason: ",status):umkreisSucheHookUp(slidervalue)):console.info("Geocode was not successful for the following reason: ",status)}))}(addressStr);var crss=$("uks_ort");crss&&(crss.removeEvents("keyup"),crss.addEvent("keyup",(function(evt){13==evt.code&&(evt.stop(),slidervalue=10,showAddress($("uks_ort").value,""))})))}geocoderAddress=addressStr}else umkreisSucheHookUp(slidervalue)},buildClusterKartensuche=function(){var mapOpener=$("mapOpener");if(mapOpener){var searchResultsMap=$("searchresultsmap").hide(),revealFx=new Fx.Reveal(searchResultsMap,{onComplete:function(){initializeClusterKartensuche("searchresults","ROADMAP",false)}});mapOpener.addEvent("click",(function(evt){evt.stop(),revealFx.reveal(),mapOpener.hide()}))}else initializeClusterKartensuche("searchresults","ROADMAP",false)},initSliderWithoutMap=function(){var slider=document.getElementById("slider"),distance=document.getElementById("distance"),mdf=document.getElementById("maxDistanceField"),sliderIsLoaded=!1;if(slider){var sliderSpan=slider.querySelector("span"),size=slider.measure((function(){return this.getSize()}));return console.log("parent size:",size),slider.style.width=size.x+"px",new Slider(slider,slider.getElement(".knob"),{steps:70,range:[10,80],onChange:function(value){distance.set("html","+"+value+" km"),mdf.value=value,sliderSpan.style.width=parseInt(value/.8-(80-value)/7)+"%",sliderHasChanged=!0},onComplete:function(value){if(sliderIsLoaded)return sliderHasChanged=!1,console.info("--------------"),mdf.value=value,submitFormInDiv(document.getElementById("searchRefinementForm"),"exchangeableHotelList"),showLoading(),!1}}).set(initialSliderValue),sliderIsLoaded=!0,slider.setStyles({visibility:"visible"}),!0}return!1},checkMaxChildren=function(adultsInput,kidsInput,singleRoomInput,doubleRoomInput){var anzErw=parseInt(adultsInput.value),anzKinder=parseInt(kidsInput.value),anzEZ=parseInt(singleRoomInput.value),anzDZ=parseInt(doubleRoomInput.value),erwInDZ=anzErw-anzEZ,maxKinder=1==erwInDZ?1:(erwInDZ/2).round();return!(anzKinder>0&&maxKinder<anzKinder||1==anzErw&&anzKinder>=1&&anzDZ>1)},checkRoomPersonsCount=function(adultsInput,kidsInput,singleRoomInput,doubleRoomInput){var anzErw=parseInt(adultsInput.value),anzKinder=parseInt(kidsInput.value),anzEZ=parseInt(singleRoomInput.value),anzDZ=parseInt(doubleRoomInput.value);return!(0===anzKinder&&anzErw<anzEZ+anzDZ)},checkMaxRooms=function(singleRoomInput,doubleRoomInput){var anzEZ=parseInt(singleRoomInput.value),anzDZ=parseInt(doubleRoomInput.value);return!(anzEZ+anzDZ>3||anzEZ>3||anzDZ>3)},dimBtn=function(btnId){var al=$(ajaxLoader);al.setStyles({width:"32px",height:"32px",marginRight:"45px"}),$(btnId)&&al.replaces($(btnId))},showToolTip=function(containerId,evt,x,y){var cont=$(containerId);checkVar(x)&&checkVar(y)?cont.setStyles({display:"block",top:x+"px",left:y+"px"}):$defined(evt.page)?cont.setStyles({display:"block",top:evt.page.x+"px",left:evt.page.y+"px"}):cont.setStyle("display","block"),cont.getElement("a.tt_close").addEvent("click",(function(evt){evt.stop(),cont.setStyle("display","none"),isIE6&&iefixIframe.setStyle("display","none")}))},initSubmenus=function(){var screenWidth=document.body.getAttribute("data-screenwidth"),navbar=document.getElementById("navbar"),navbarList=navbar.querySelector("ul.nav");if(navbarList&&navbar&&navbarList)if(screenWidth<768){var openSubmenu,openLi=null;$$("#navbar ul li:not(#navbar ul li ul li)").each((function(li){li.addClass("collapsed")})),(pointer=document.id("pointer"))&&pointer.hide(),$$("#navbar ul li ul").each((function(submenu){var submenuFx=new Fx.Reveal(submenu),pli=submenu.getParent("li");if(pli){pli.removeEvents("mouseenter"),pli.removeEvents("mouseleave");var p=pli.getElement("span.toggle-submenu");p&&p.addEvent("click",(function(evt){evt.stop(),submenu.isDisplayed()?(this.removeClass("active"),submenuFx.toggle(),openSubmenu=null,openLi=null):(null!=openSubmenu&&openSubmenu.toggle(),null!=openLi&&openLi.removeClass("active"),this.addClass("active"),submenuFx.reveal(),openSubmenu=submenuFx,openLi=this)}))}}))}else{var pointer,navbarWidth=navbar.getSize().x;(pointer=document.id("pointer"))||(pointer=new Element("li",{id:"pointer"}).inject(navbar.getElement("ul.nav")));var current,currentFx,myPeriodical,moveFx=new Fx.Morph("pointer",{transition:Fx.Transitions.Sine.easeInOut}),selected=null,status="up",openSub=(selected=null,null),openSubFx=null;navigator.userAgent,navigator.appName,navigator.appVersion;$$("#navbar ul li ul").each((function(submenu){var submenuFx=new Fx.Reveal(submenu),p=submenu.getParent("li"),position=p.getPosition(navbar);p.store("pLeft",position.x);
273var mSize=submenu.measure((function(){return this.getSize()}));if(submenu.store("mWidth",mSize.x),p.hasClass("selected")){selected=current=p;var size=current.getSize();null!=currentFx&¤tFx.cancel(),currentFx=moveFx,"up"==status&&(currentFx.set({left:position.x,width:size.x,top:"0px"}),status="down"),currentFx.start({left:position.x,width:size.x})}p.removeClass("collapsed"),isAndroid||Browser.Features.Touch||Browser.Features.iOSTouch?p.addEvent("click",(function(evt){if(null==openSub)evt.stop(),(pLeft=p.retrieve("pLeft"))+(el=submenuFx.element).retrieve("mWidth")<navbarWidth&&el.setStyles({left:pLeft,right:"auto"}),p.addClass("active"),submenuFx.reveal(),openSub=submenu,openSubFx=submenuFx;else if(openSub!=submenu){var pLeft,el;evt.stop(),openSub.getParent("li").removeClass("active"),"block"==openSub.style.display&&openSubFx.toggle(),(pLeft=p.retrieve("pLeft"))+(el=submenuFx.element).retrieve("mWidth")<navbarWidth&&el.setStyles({left:pLeft,right:"auto"}),p.addClass("active"),submenuFx.reveal(),openSub=submenu,openSubFx=submenuFx;var position=(current=this).getPosition(navbar),size=current.getSize();null!=currentFx&¤tFx.cancel(),currentFx=moveFx,"up"==status&&(currentFx.set({left:position.x,width:size.x,top:"0px"}),status="down"),currentFx.start({left:position.x,width:size.x})}})):(p.removeEvents("click"),p.addEvent("mouseenter",(function(evt){var pLeft=evt.target.retrieve("pLeft"),el=submenuFx.element;pLeft+el.retrieve("mWidth")<navbarWidth&&el.setStyles({left:pLeft,right:"auto"}),this.addClass("active"),submenuFx.reveal()})),p.addEvent("mouseleave",(function(evt){this.removeClass("active"),"block"==submenu.style.display&&submenuFx.toggle()})))}));var checkMouseOver=function(){var p=pointer.getPosition(navbar);null==current&&"up"==status&&0==p.y&&(pointer.setStyle("top","-7px"),myPeriodical&&clearInterval(myPeriodical))},topLevelItems=$$("#navbar ul li.top-level)");topLevelItems.each((function(li){li.addEvent("mouseenter",(function(){if(null==selected||0==selected.length){var position=(current=this).getPosition(navbar),size=current.getSize();null!=currentFx&¤tFx.cancel(),currentFx=moveFx,"up"==status&&(currentFx.set({left:position.x,width:size.x,top:"0px"}),status="down"),currentFx.start({left:position.x,width:size.x}),myPeriodical&&clearInterval(myPeriodical),myPeriodical=checkMouseOver.periodical(100)}})),li.addEvent("mouseleave",(function(){null!=selected&&0!=selected.length||(current=null,function(){null==current&&(moveFx.start({top:"-7px"}),status="up")}.delay(50))})),li.addEvent("click",(function(evt){topLevelItems.removeClass("selected"),li.addClass("selected"),selected=li})),document.id("home-button")&&document.id("home-button").addEvent("click",(function(evt){topLevelItems.removeClass("selected"),selected=null}))}))}},siteInfoInit=function(){var siteinfo=document.id("siteinfo");if(siteinfo){var accordionSections=siteinfo.getElements("p.panel-collapse"),accordionToggles=[];accordionSections.each((function(section){var toggle=section.getPrevious("h3.accordion-toggle");toggle&&accordionToggles.push(toggle)}));var setAccordionStyles=function(evt){evt.stop(),accordionToggles.each((function(toggle){toggle.removeClass("open")})),1==this.getNext("p.panel-collapse").getStyle("opacity")?this.removeClass("open"):this.addClass("open")};winW<600?(null===siteInfoAccordion?siteInfoAccordion=new Fx.Accordion(accordionToggles,accordionSections,{display:-1,alwaysHide:!0}):accordionToggles.each((function(toggle){toggle.addEvent("click",toggle.retrieve("accordion:display"))})),accordionToggles.each((function(toggle){var panel=toggle.getNext("p.panel-collapse");panel&&panel.setStyles({opacity:0,height:0}),toggle.addEvent("click",setAccordionStyles)}))):(null!==siteInfoAccordion&&siteInfoAccordion.detach(),accordionSections.setStyles({opacity:1,height:"auto"}),accordionToggles.each((function(toggle){toggle.removeEvent("click",setAccordionStyles)})))}},checkforH1Headlines=function(slider){if(slider&&0==slider.getElements("h1").length){var secondLevelHeadlines=slider.getElements("h2");if(secondLevelHeadlines.length>0){var firstH2=secondLevelHeadlines[0],h2Html=firstH2.get("html"),h2Class=firstH2.get("class");new Element("h1",{html:h2Html,class:h2Class}).replaces(firstH2)}}},carouselInit=function(resize){var slider=document.id("carousel");if(slider){var carouselImgs=[],sliderInit=(mobileLayout,function(){new uSlider(slider,{directionnav:!0,centercrop:!1,delay:1e4,duration:1500,effect:"fade",swipeformobile:!1})}),items=slider.getElements("div.item");if(0==items.length&&document.body.addClass("carousel-deact"),!0!==resize&&items.hide(),items.each((function(item){if(winW<768){var imgUrlNew=item.getStyle("background-image").slice(4,-1).replace(/["|']/g,"").replace(/w2000/,"w960");
273if(carouselImgs.push(imgUrlNew),!0!==resize)Asset.image(imgUrlNew,{onLoad:function(){item.setStyle("background-image","url("+imgUrlNew+")")}})}})),!0!==resize)if(carouselImgs.length>0)Asset.images(carouselImgs,{onComplete:function(){items.show(),slider.getElements("div.item .slide-content").show(),items.length>1&&sliderInit()}});else items.show(),items.length>1?sliderInit():slider.getElements("div.item .slide-content").show();checkforH1Headlines(slider)}},slideshowPageboxInit=function(slider,resize){if(slider){var carouselImgs=[],sliderInit=(mobileLayout,function(){new uSlider(slider,{directionnav:!0,centercrop:!1,delay:1e4,duration:1500,effect:"fade",swipeformobile:!1})}),items=slider.getElements("div.item");if(0==items.length&&document.body.addClass("carousel-deact"),items.each((function(item){if(winW<768){var imgUrlNew=item.getStyle("background-image").slice(4,-1).replace(/["|']/g,"").replace(/w2000/,"w960");if(carouselImgs.push(imgUrlNew),!0!==resize)Asset.image(imgUrlNew,{onLoad:function(){item.setStyle("background-image","url("+imgUrlNew+")")}})}})),!0!==resize)if(carouselImgs.length>0)Asset.images(carouselImgs,{onComplete:function(){console.log("All images loaded!"),console.log("items: ",items),items.show(),slider.getElements("div.item .slide-content").show(),items.length>1&&sliderInit()}});else items.show(),items.length>1?sliderInit():slider.getElements("div.item .slide-content").show();checkforH1Headlines(slider)}},slideshowPagebox=function(resize){const collection=Array.from(document.querySelectorAll(".slideshowPagebox"));collection&&collection.forEach((function(carousel){slideshowPageboxInit(carousel)}))},closeAllOtherClampMes=function(el){var clampMes=el.getElements(".clampMe");BW.mooTruncateInstance&&clampMes.each((function(clampMe){BW.mooTruncateInstance.showCutText(clampMe)}))},initAccordionIdsAndAria=function(){function slug(s){return(s||"").toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/\-+/g,"-").replace(/^\-+|\-+$/g,"").substring(0,50)}function ensureIdsAndAria(accordion,groupIdx){const btns=accordion.querySelectorAll(":scope > .panel > .panel-heading .accordion-toggle, :scope > div.hotelviewArrangementPackage > .panel > .panel-heading .accordion-toggle"),used=new Set;btns.forEach((function(btn,idx){if("button"!==btn.tagName.toLowerCase()){const b=document.createElement("button");b.type="button",b.className=btn.className,b.innerHTML=btn.innerHTML,btn.parentNode.replaceChild(b,btn),btn=b}const panel=function getPanelFor(trigger){const heading=trigger.closest(".panel-heading");if(!heading)return null;const n=heading.nextElementSibling,p=heading.previousElementSibling;return n&&n.classList.contains("panel-collapse")?n:p&&p.classList.contains("panel-collapse")?p:null}(btn);if(!panel)return;const base=btn.getAttribute("data-name")||btn.getAttribute("name")||btn.textContent||"item-"+idx;let tid="acc-"+groupIdx+"-"+idx+"-"+slug(base),pid="panel-"+groupIdx+"-"+idx+"-"+slug(base);for(;used.has(tid);)tid+="-x";for(;used.has(pid);)pid+="-x";used.add(tid),used.add(pid),btn.id||(btn.id=tid),panel.id||(panel.id=pid),btn.setAttribute("aria-controls",panel.id),panel.setAttribute("role","region"),panel.setAttribute("aria-labelledby",btn.id);const open=function isOpenPanel(panel){const cs=window.getComputedStyle(panel),op=parseFloat(cs.opacity||"0"),h=parseFloat(cs.height||"0");return op>.5||h>0}(panel)||btn.classList.contains("active");btn.setAttribute("aria-expanded",open?"true":"false"),open?panel.removeAttribute("hidden"):panel.setAttribute("hidden","")}))}document.querySelectorAll("div.accordion-toggle-class").forEach((function(acc,i){ensureIdsAndAria(acc,i)})),function wireSync(){document.__accSyncAttached||(document.addEventListener("click",(function(e){const btn=e.target.closest(".accordion-toggle");if(!btn)return;const panel=document.getElementById(btn.getAttribute("aria-controls"));panel&&setTimeout((function(){const active=btn.classList.contains("active");btn.setAttribute("aria-expanded",active?"true":"false"),active?panel.removeAttribute("hidden"):setTimeout((function(){panel.setAttribute("hidden","")}),300)}),0)}),!0),document.__accSyncAttached=!0)}()},toggleAccordionClasses=function(){openAccordionElements(),function(){$$("div.accordion-toggle-class").each((function(accord){var i,len,option,options,toggles=accord.getElements("> .panel > .panel-heading .accordion-toggle, > div.hotelviewArrangementPackage > .panel > .panel-heading .accordion-toggle"),optionsObject={},alwaysHide=!1;for(i=0,len=(options=(options=((options=accord.get("data-accordion-options"))||"").replace(/\s/g,"")).replace(/\'/g,"").split(",")).length;i<len;i++)optionsObject[(option=options[i].split(":"))[0]]=option[1];optionsObject.alwaysHide&&"true"==optionsObject.alwaysHide&&(alwaysHide=!0);var sections=accord.getElements("> .panel > .panel-collapse"),openIndex=-1;if(accord.getParent("div.accordion-toggle-class")){toggles.each((function(toggle,index){var collapsable=toggle.getParent(".panel-heading").getNext(".panel-collapse");collapsable||(collapsable=toggle.getParent(".panel-heading").getPrevious(".panel-collapse")),collapsable&&(collapsable.getStyle("opacity")>0&&(toggle.addClass("active"),openIndex=index),toggle.removeEvents("click"),toggle.addEvent("click",(function(evt){evt.stop(),toggles.each(function(tg){tg==this?tg.hasClass("active")?tg.removeClass("active"):tg.addClass("active"):tg.removeClass("active")}.bind(this))})))}));new Fx.Accordion(toggles,sections,{display:openIndex,alwaysHide:!0})}else toggles.each((function(toggle,index){var collapsable=toggle.getParent(".panel-heading").getNext(".panel-collapse");if(collapsable||(collapsable=toggle.getParent(".panel-heading").getPrevious(".panel-collapse")),collapsable){collapsable.getStyle("opacity")>0&&toggle.addClass("active");var clampMe=null,hotelviewArrangementBookOnline=collapsable.getParent(".hotelviewArrangementBookOnline, .hotelviewArrangementPackage");null!==hotelviewArrangementBookOnline&&(clampMe=hotelviewArrangementBookOnline.getElement(".clampMe")),toggle.classList.contains("eventAttached")||(toggle.addEvent("click",(function(evt){evt.stop(),toggles.each(function(tg){tg==this?tg.hasClass("active")?(alwaysHide&&1==collapsable.getStyle("opacity")?tg.removeClass("active"):alwaysHide||1==collapsable.getStyle("opacity")||tg.removeClass("active"),clampMe&&BW.mooTruncateInstance.showCutText(clampMe)):(tg.addClass("active"),function(){"function"==typeof et_vm_reload&&et_vm_reload()}.delay(1e3),clampMe&&(closeAllOtherClampMes(accord),BW.mooTruncateInstance.showFullText(clampMe)),collapsable.getElements("a.accordion-toggle").each((function(childToggle){var childSection;if(childToggle.hasClass("active")){if((childSection=childToggle.getParent(".panel-heading").getNext(".panel-collapse"))||(childSection=childToggle.getParent(".panel-heading").getPrevious(".panel-collapse")),childSection){var myHeight="auto";if(childSection.retrieve("myHeight"))myHeight=childSection.retrieve("myHeight");
273else{var size=childSection.measure((function(){return this.getSize()}));myHeight=size.y,childSection.store("myHeight",myHeight)}var myEffect=new Fx.Morph(childSection,{duration:"long",transition:Fx.Transitions.Sine.easeOut});(function(){myEffect.start({opacity:1,height:myHeight})}).delay(300)}}else if((childSection=childToggle.getParent(".panel-heading").getNext(".panel-collapse"))||(childSection=childToggle.getParent(".panel-heading").getPrevious(".panel-collapse")),childSection){myHeight="auto";if(childSection.retrieve("myHeight"))myHeight=childSection.retrieve("myHeight");else{size=childSection.measure((function(){return childSection.setStyle("height","auto"),this.getSize()}));myHeight=size.y,childSection.store("myHeight",myHeight)}}}))):tg.removeClass("active")}.bind(this))})),toggle.classList.add("eventAttached"))}}))}))}.delay(500),setRoomCountForAdultsInAccordionForms()},setRoomCountForAdultsInAccordionForms=function(){$$(".panel input[name=adults]").each((function(adultsInput){var parentForm=adultsInput.getParent("form"),dz=parentForm.getElement("input[name=double]"),ez=parentForm.getElement("input[name=single]");adultsInput.addEvent("change",(function(evt){ez.value=adultsInput.value%2,dz.value=(adultsInput.value/2).toInt()}))}))},setAccordionNameAttribute=function(){$$("div.accordion-toggle-class").each((function(accord){accord.getElements(".accordion-toggle").each((function(toggle){if(!toggle.get("name")||""==toggle.get("name")){var toggleTitle=validID(toggle.get("text"));toggle.set("name",toggleTitle)}}))}))},openAccordionByURLParam=function(){var locHash=self.document.location.hash;if(locHash){var kkName=-1!=locHash.indexOf("?")?locHash.substr(1,locHash.indexOf("?")-1):locHash.substr(1);if(-1!=(kkName=decodeURIComponent(kkName)).indexOf("|")){var hashParts=kkName.split("|");kkName=hashParts[1]}if(kkName)$$("div.accordion-toggle-class").each((function(accord){var toggle=accord.getElement('> .panel > .panel-heading .accordion-toggle[name="'+kkName+'"], > div.hotelviewArrangementPackage > .panel > .panel-heading .accordion-toggle[name="'+kkName+'"]');if(toggle){"true"===toggle.getAttribute("aria-expanded")||toggle.hasClass("active")?toggle.addClass("active"):toggle.click();var panelId=toggle.getAttribute("aria-controls"),panel=panelId?document.getElementById(panelId):null;(function(){var posEl=panel?$(panel):$(toggle);if(posEl){var pos=posEl.getPosition();$(document.body).scrollTo(0,Math.max(0,pos.y-105))}}).delay(100)}}))}},openAccordionElements=function(){var elementsToOpen=$$(".accordion .panel-group .panel-open"),easyForms=$$(".accordion .panel-group .panel-body .easyform");(function(){if(elementsToOpen.length>0&&$$(".accordion .panel-group").each((function(accordion){var elementIndex=-1;accordion.getElements("> .panel").each((function(panel,index){panel.hasClass("panel-open")&&(elementIndex=index)}));var togglers=accordion.getElements("> .panel > .panel-heading a.accordion-toggle"),sections=accordion.getElements("> .panel > .panel-collapse");if(accordion.getParent(".accordion .panel-group"))sections[elementIndex]&§ions[elementIndex].setStyles({opacity:1,height:"auto"});else new Fx.Accordion(togglers,sections,{display:elementIndex,alwaysHide:!0});togglers[elementIndex]&&togglers[elementIndex].addClass("active")})),easyForms.length>0){var formErrors=[];easyForms.each((function(easyForm){easyForm.getParent(".accordion").getElements(".panel-group").each((function(panelGroup){panelGroup.getElements("> .panel").each((function(panel,index){formErrors=panel.getElements('.formerror, img[src="/sd3cadmin/img/icons/icon_formwarnung.gif"]'),console.log("formErrors:",formErrors),formErrors.length>0&&(elementIndex=index)}));var togglers=panelGroup.getElements("> .panel > .panel-heading a.accordion-toggle"),sections=panelGroup.getElements("> .panel > .panel-collapse");if(panelGroup.getParent(".accordion .panel-group"))sections[elementIndex]&§ions[elementIndex].setStyles({opacity:1,height:"auto"});else new Fx.Accordion(togglers,sections,{display:elementIndex,alwaysHide:!0});if(togglers[elementIndex]&&togglers[elementIndex].addClass("active"),formErrors.length>0){var pos=panelGroup.getPosition();$(document.body).scrollTo(0,pos.y-50)}}))}))}}).delay(1e3)},collapseHitlistQuickSearch=function(){if(document.body.hasClass("trefferliste")&&document.id("searchpanel")){var searchPanel=document.id("searchpanel"),searchWra
273p=document.id("hotelsearch-wrap"),screenWidth=document.body.getAttribute("data-screenwidth"),searchToggle=document.id("searchToggle");if(screenWidth<768){ 274var searchPanelFx=new Fx.Reveal(searchPanel);if(searchPanelFx.dissolve(),searchWrap.addClass("collapsed"),searchToggle)searchToggle.show();else searchToggle=new Element("a",{id:"searchToggle",text:LS("ADJUSTSEARCH"),events:{click:function(evt){evt.stop(),searchPanelFx.toggle()}}}).inject(searchWrap,"top")}else searchPanel.show(),searchWrap.removeClass("collapsed"),searchToggle&&searchToggle.hide()}},deactivateLightboxPopups=function(){var screenWidth=document.body.getAttribute("data-screenwidth"),ratingLinks=$$("a.mediaboxlink_rating"),hotelMapLinks=$$("a.hotelMap");screenWidth<480?(ratingLinks.each((function(rl){rl.removeEvents("click")})),hotelMapLinks.hide()):(hotelMapLinks.show(),Mediabox.scanPage())},disableLightboxOnSmallScreens=function(){winW<=640&&($$("a").filter((function(el){return el.rel&&el.rel.test(/^lightbox/i)||el.target&&el.target.test(/^lightbox/i)})).each((function(lbLink){lbLink.removeProperty("rel");var searchIcon=lbLink.getElement("span.icon-search");searchIcon&&searchIcon.dispose(),lbLink.removeEvents("click"),lbLink.addEvent("click",(function(evt){evt.stop()}))})),Mediabox.scanPage())},setCurrentBreakPoint=function(){var screenWidth=document.body.getAttribute("data-screenwidth");Object.each(breakpoint,(function(bp,key,value){screenWidth>bp&&(currentBreakPoint=key)}))},observeBreakpointChange=function(){var screenWidth=document.body.getAttribute("data-screenwidth"),newBreakPoint="xs";Object.each(breakpoint,(function(bp,key,value){screenWidth>bp&&(newBreakPoint=key)})),newBreakPoint!=currentBreakPoint&&(currentBreakPoint=newBreakPoint,window.fireEvent("breakpointChange"))},activateButtonSelectBoxes=function(){var buttonClasses=["btn-primary","btn-green","btn-orange","btn-blue","btn-gray","btn-burgundy","btn-yellow"],btnFormGroup=new Element("div",{class:"form-group",styles:{position:"relative"}}),buttonStyleSelect=new Element("select",{class:"selectButton form-control"}).inject(btnFormGroup);Object.each({"btn-orange":"#f26531","btn-green":"#afce21","btn-blue":"#1a49a6","btn-gray":"#525252","btn-burgundy":"#943d5a","btn-yellow":"#ffcc00"},(function(optionKey,optionValue){new Element("option",{value:optionValue,text:optionKey}).inject(buttonStyleSelect)})),$$(".layoutexamples a.btn").each((function(myBtn,index){var myBtnName="button["+index+"]",myBtnFormGroup=btnFormGroup.clone();myBtnFormGroup.inject(myBtn,"after").grab(myBtn,"top"),localStorage.getItem(myBtnName)&&(buttonClasses.each((function(btnClass){myBtn.removeClass(btnClass)})),myBtn.addClass(localStorage.getItem(myBtnName)),myBtn.getNext("select.selectButton")&&(myBtn.getNext("select.selectButton").value=localStorage.getItem(myBtnName))),myBtnFormGroup.getElement("select").addEvent("change",(function(evt){var newBtnClass=evt.target.value;buttonClasses.each((function(btnClass){myBtn.removeClass(btnClass)})),myBtn.addClass(newBtnClass),localStorage.removeItem(myBtnName),localStorage.setItem(myBtnName,newBtnClass)}))}));var buttonSelectToggle=document.id("buttonSelectToggle");buttonSelectToggle&&(localStorage.getItem("buttonSelects")&&"hidden"==localStorage.getItem("buttonSelects")&&($$(".selectButton").hide(),buttonSelectToggle.set("text",LS("SHOWCOLORPICKER"))),buttonSelectToggle.addEvent("click",(function(evt){evt.stop(),$$(".selectButton").toggle(),evt.target.get("text")==LS("HIDECOLORPICKER")?(evt.target.set("text",LS("SHOWCOLORPICKER")),localStorage.setItem("buttonSelects","hidden")):(evt.target.set("text",LS("HIDECOLORPICKER")),localStorage.setItem("buttonSelects","visible"))})))},loginInit=function(){var screenWidth=document.body.getAttribute("data-screenwidth"),loginPanel=document.id("mb_login"),mbCenter=document.id("mbCenter");if(loginPanel){var loginOpener=document.id("login-opener");if(screenWidth<=480){mbCenter.isVisible()&&Mediabox.close(),loginOpener.removeEvents("click");var loginFx=new Fx.Reveal(loginPanel);loginOpener.addEvent("click",(function(evt){evt.stop(),loginFx.toggle()}))}else loginPanel.isVisible()&&loginPanel.hide(),Mediabox.scanPage();var rewardsLoginRadio=loginPanel.getElement("#rewardslogin-radio"),companyLoginRadio=loginPanel.getElement("#companylogin-radio"),userLoginRadio=loginPanel.getElement("#userlogin-radio"),inputUser=loginPanel.getElement("#inputUser"),inputPassword=loginPanel.getElement("#inputPassword"),helpLinks=loginPanel.getElements("div.account-help").hide(),rewardsLinks=loginPanel.getElements("div.account-help[data-show-at=rewards-login]").show(),companyLinks=loginPanel.getElements("div.account-help[data-show-at=company-login]"),userLinks=loginPanel.getElements("div.account-help[data-show-at=user-login]");companyLoginRadio&&rewardsLoginRadio&&userLoginRadio&&inputUser&&inputPassword&&(companyLoginRadio.addEvent("click",(function(evt){evt.target;inputUser.set("placeholder",LS("COMPANYID")),helpLinks.hide(),companyLinks.show()})),rewardsLoginRadio.addEvent("click",(function(evt){evt.target;inputUser.set("placeholder",LS("MEMBERNROREMAIL")),helpLinks.hide(),rewardsLinks.show()})),userLoginRadio.addEvent("click",(function(evt){evt.target;inputUser.set("placeholder",LS("USERNAMEOREMAIL")),helpLinks.hide(),userLinks.show()})))}},switchToggleRevealClass=function(){$$("a[data-trigger=toggleReveal]").each((function(a){a.addEvent("click",(function(evt){a.hasClass("icon-plus-circled")?(a.removeClass("icon-plus-circled"),a.addClass("icon-minus-circled")):(a.addClass("icon-plus-circled"),a.removeClass("icon-minus-circled"))}))}))},initSubNavigation=function(){var subnavi=document.getElement("ul.navi_sidebar");subnavi&&(subnavi.getElements("ul").hide(),subnavi.getElements("span.down").each((function(arrow){arrow.set("class","right"),arrow.addEvent("click",(function(evt){evt.stop();var subUl=arrow.getParent("li").getElement("ul");subUl.isVisible()?(subUl.hide(),arrow.set("class","right")):(subUl.show(),arrow.set("class","down"))}))})),subnavi.getElements("li.active").each((function(aLi){var activeUl=aLi.getElement("ul");activeUl&&(activeUl.show(),aLi.getElement("span.right").set("class","down"))})))},initToolTippsForMobile=function(){if(Browser.Features.Touch){var toolTips=$$("span[data-behavior=BS.Tooltip]"),currentToolTip=null;toolTips.each((function(ttip){var myTitle=ttip.get("title");ttip.removeEvents(),ttip.addEvent("click",(function(evt){null!=currentToolTip&¤tToolTip.hide();var myToolTip=new Bootstrap.Tooltip(ttip,{content:"Blah"}).show();currentToolTip=myToolTip,this.set("title",myTitle)}))}))}},organizeDropColumnLayout=function(){winW>=768?$$("div.drop-column-layout").each((function(row){var minHeight=0,divs=row.getElements("div.drop-column");divs.each((function(div){var rounded=div.getComputedSize().totalHeight.round()+1;rounded>minHeight&&(minHeight=rounded)})),divs.setStyle("min-height",minHeight)})):$$("div.drop-column-layout div.drop-column").setStyle("min-height",0)},loadAvailabilityLink=function(urly,div,message,param){var divXs=div.replace("availabilityCalendarDiv_","availabilityCalendarDivXs_");null!=message&&(message.length>0?($(div).innerHTML="<div class='ajaxloader'><img src='/bw/v6/img/ajax-loader32.gif' class='ajaxloader32'><br/>"+message+"</div>",$(divXs).innerHTML="<div class='ajaxloader'><img src='/bw/v6/img/ajax-loader32.gif' class='ajaxloader32'><br/>"+message+"</div>"):($(div).innerHTML="<div class='ajaxloader'><img src='/bw/v6/img/ajax-loader32.gif' class='ajaxloader32'></div>",$(divXs).innerHTML="<div class='ajaxloader'><img src='/bw/v6/img/ajax-loader32.gif' class='ajaxloader32'></div>"));var req=new Request.HTML({url:urly,onSuccess:function(responseTree,responseElements,responseHTML,responseJavaScript){$(div).innerHTML=responseHTML,$(divXs).innerHTML=responseHTML,afterAjaxCalls()},onFailure:function(){$(div).set("text","ERROR"),$(divXs).set("text","ERROR")}});param?req.send(param):req.send()},setClassesForValidationErrors=function(){var firstError=null;if($$(".formerror").each((function(input,index){var parent=input.getParent();parent.addClass("has-error"),0==index&&(firstError=parent);var img=input.getNext("img");if(img){img.addClass("error-icon");var title=img.get("title");new Element("span",{class:"error-warning",text:title}).inject(input,"after").grab(img)}})),null!=firstError){var pos=firstError.getPosition();window.scrollTo(0,pos.y)}},removeOpenToolTips=function(){$$(".tooltip.in").destroy()},maskSingleTicks=function(){$$(".rate-info").each((function(rateInfo){var poOptions=rateInfo.get("data-bs-popover-options");poOptions=(poOptions=(poOptions=(poOptions=(poOptions=(poOptions=(poOptions=(poOptions=(poOptions=poOptions.replace(/\'s/g,"'s")).replace(/\'re/g,"'re")).replace(/n\'t/g,"n't")).replace(/\'ll/g,"'ll")).replace(/\'d/g,"'d")).replace(/\'n/g,"'n")).replace(/(?:\r\n|\r|\n)/g,"")).replace(/\s\s+/g," ")).replace(/ \'content\'/g,"'content'"),rateInfo.set("data-bs-popover-options",poOptions)}))},closePopoversOnBodyClick=function(){Browser.Features.iOSTouch},initSearchResultTouchGalleries=function(){if((Browser.Features.Touch||Browser.Features.iOSTouch)&&winW<=640){$$("div.hitlist-gallery").each((function(galleryDiv,galleryIndex){var titleBox,imgTitle,imgCaption,galleryReady=!1,moveBack=0,moveFwd=0,fitImage=function(img){var viewportSize=overlay.getDimensions();img.setStyle("max-width","none");var imgSize=img.getDimensions(),aspectRatio=imgSize.x/imgSize.y;
274img.store("aspectRatio",aspectRatio),imgSize.y>imgSize.x?img.setStyles({height:viewportSize.y,width:viewportSize.y*aspectRatio}):img.setStyles({width:viewportSize.x,height:"auto","margin-top":viewportSize.y-viewportSize.x/aspectRatio})},loadImgLeft=function(atScreen){var leftListItem=imageList.getElements("li")[atScreen-1];if(!leftListItem.getElement("img")){var imgToLoad=atScreen%imageArray.length-1;Asset.image(imageArray[imgToLoad].href,{title:imageArray[imgToLoad].title,onLoad:function(){this.inject(leftListItem),fitImage(this)}})}},loadImgRight=function(atScreen){var rightListItem=imageList.getElements("li")[atScreen+1];if(!rightListItem.getElement("img")){var imgToLoad=atScreen%imageArray.length+1;Asset.image(imageArray[imgToLoad].href,{title:imageArray[imgToLoad].title,onLoad:function(){this.inject(rightListItem),fitImage(this)}})}},setTitle=function(atScreen){var toLoad=atScreen%imageArray.length,captionSplit=imageArray[toLoad].title.split("::");null!=captionSplit[0]&&captionSplit[0],imgTitle.set("text",captionSplit[0]);var captionText=null!=captionSplit[1]?captionSplit[1]:"";imgCaption.set("text",captionText),titleBox.addClass("active")},setUpSlider=function(aBlock){aBlock||(aBlock=galleryDiv.getElement("a.content-block")),aBlock.removeEvents("click"),aBlock.addEvent("click",(function(event){event.stop()}));var viewportSize=aBlock.getDimensions(),myTouchSlider=new SDSlider(imageList,{idPrevious:"previous_"+galleryIndex,idNext:"next_"+galleryIndex,idToggle:"undefined",iCarouselAttached:!0,item:{klass:"t-gal-item_"+galleryIndex,size:viewportSize.x},onInit:function(){galleryReady=!0,1==moveBack?function(){this.goTo(this.atScreen-1)}.delay(200,this):1==moveFwd&&function(){this.goTo(this.atScreen+1)}.delay(200,this),setTitle(this.atScreen)},onPrevious:function(){loadImgLeft(this.atScreen),setTitle(this.atScreen)},onNext:function(){loadImgRight(this.atScreen),setTitle(this.atScreen)},onGoTo:function(){loadImgLeft(this.atScreen),loadImgRight(this.atScreen),setTitle(this.atScreen)}});(Browser.Features.Touch||Browser.Features.iOSTouch)&&myTouchSlider.aItems.each((function(item){item.addEvent("swipe",(function(event){item.store("swipe:cancelVertical",!0),"left"==event.direction&&myTouchSlider.goTo(myTouchSlider.atScreen+1),"right"==event.direction&&myTouchSlider.goTo(myTouchSlider.atScreen-1)}))})),galleryDiv.store("myTouchSlider",myTouchSlider)};galleryDiv.addClass("touch-gallery");var overlay=galleryDiv.getElement("a.content-block .text-overlay"),viewportSize=overlay.getDimensions();overlay.setStyles({height:viewportSize.y,overflow:"hidden"}),overlay.store("ratio",viewportSize.y/viewportSize.x),overlay.getElement("span.icon-search").dispose(),new Element("span",{class:"icon-left-open",id:"previous_"+galleryIndex,events:{click:function(evt){evt.stop(),galleryReady||(moveBack=1,setUpSlider())}}}).inject(overlay),new Element("span",{class:"icon-right-open",id:"next_"+galleryIndex,events:{click:function(evt){evt.stop(),galleryReady||(moveFwd=1,setUpSlider())}}}).inject(overlay);var imageArray=new Array;galleryDiv.getElements("a.content-block, a.gallery-image-link").each((function(imageLink){var imgObj={href:imageLink.get("href"),title:imageLink.get("title")};imageArray.push(imgObj)}));var imageList=new Element("ul",{styles:{width:viewportSize.x*imageArray.length*3,height:viewportSize.y}}).inject(overlay);imageArray.each((function(imgObj,imgIndex){var listItem=new Element("li",{class:"t-gal-item_"+galleryIndex,styles:{width:viewportSize.x,height:viewportSize.y,background:"transparent"}});0!=imgIndex&&1!=imgIndex&&imgIndex!=imageArray.length-1||Asset.image(imgObj.href,{title:imgObj.title,onLoad:function(){this.inject(listItem),fitImage(this)}}),listItem.store("src",imgObj.href),listItem.store("text",imgObj.titel),imageList.adopt(listItem)})),galleryDiv.getElements("a.gallery-image-link").dispose(),galleryDiv.getElements("a.content-block").each((function(aBlock){aBlock.getElement("picture").setStyle("opacity",0),aBlock.setStyles({height:viewportSize.y+40,"padding-bottom":"40px","margin-bottom":"20px"}),aBlock.set("rel",""),aBlock.removeEvents("click"),aBlock.addEvent("click",(function(evt){evt.stop(),setUpSlider(this)})),(Browser.Features.Touch||Browser.Features.iOSTouch)&&aBlock.addEvent("swipe",(function(event){aBlock.store("swipe:cancelVertical",!0),"left"==event.direction&&(moveFwd=1,setUpSlider()),"right"==event.direction&&(moveBack=1,setUpSlider())})),titleBox=new Element("div",{class:"title-box"}).inject(aBlock,"bottom"),imgTitle=new Element("span",{class:"title"}).inject(titleBox),imgCaption=new Element("span",{class:"caption"}).inject(titleBox)}
274)),Mediabox.scanPage();var resetSizeForTouchGalleries=function(){var aBlock=galleryDiv.getElement("a.content-block"),viewportSize=aBlock.getDimensions();viewportSize.y=viewportSize.x*overlay.retrieve("ratio"),overlay.setStyles({height:viewportSize.y,width:viewportSize.x}),aBlock.setStyles({height:viewportSize.y+40});var listItems=galleryDiv.getElements("ul li");listItems.setStyles({height:viewportSize.y,width:viewportSize.x});var imageList=galleryDiv.getElement("ul");imageList.setStyles({height:viewportSize.y,width:viewportSize.x*listItems.length*3}),imageList.getElements("li img").each((function(img){var imgSize=img.getDimensions(),aspectRatio=imgSize.x/imgSize.y;imgSize.y>imgSize.x?img.setStyles({height:viewportSize.y,width:viewportSize.y*aspectRatio}):img.setStyles({width:viewportSize.x,height:viewportSize.x/aspectRatio,"margin-top":viewportSize.y-viewportSize.x/aspectRatio})}));var myTouchSlider=galleryDiv.retrieve("myTouchSlider");myTouchSlider&&(myTouchSlider.options.item.size=viewportSize.x,myTouchSlider.goTo(myTouchSlider.atScreen))};isAndroid?window.addEvent("resize",resetSizeForTouchGalleries):Browser.Platform.ios&&window.addEvent("orientationchange",resetSizeForTouchGalleries)}))}},initSliderGalleries=function(){var showImgs=1,showArrows=!1,colClass="",allGalleryDivs=$$("div.pb-img-gallery");allGalleryDivs.each((function(galleryDiv,galleryIndex){var wrapper=galleryDiv.getElement("div.gallery-wrap"),imageList=galleryDiv.getElement("ul.pagebox-imagegallery"),imageLinks=imageList.getElements("li a.zoom"),colDiv=galleryDiv.getParent(".col-xs-12");colDiv&&(colClass=colDiv.get("class"));var hasH3Titles=!1;if(imageList&&imageList.querySelector("li")){-1!=colClass.indexOf("col-lg-12")?(showImgs=4,showArrows=imageLinks.length>showImgs):-1!=colClass.indexOf("col-lg-9")||-1!=colClass.indexOf("col-lg-8")?(showImgs=3,showArrows=imageLinks.length>showImgs):-1!=colClass.indexOf("col-lg-6")?(showImgs=2,showArrows=imageLinks.length>showImgs):(-1!=colClass.indexOf("col-lg-4")||-1!=colClass.indexOf("col-lg-3"))&&(showImgs=1,showArrows=!1);var totalWidth=galleryDiv.getDimensions().width;if(!0===showArrows){imageList.setStyles({width:totalWidth-30});var itemHeight=(itemWidth=(totalWidth-30)/showImgs)/4*3,itemSize=imageList.getElement("li").getDimensions(),listItems=imageList.getElements("li");listItems.each((function(li){li.setStyles({width:itemSize.width,height:itemHeight}),li.addClass("t-gal-item_"+galleryIndex);var lightboxLink=li.getElement("a.zoom"),galleryText=li.getElement(".gallery-text");if(galleryText){var paragraph=li.getElement(".gallery-text p");if(paragraph){var text=paragraph.get("text");""!=text.clean()&&lightboxLink.set("title",lightboxLink.get("title")+"::"+text)}galleryText.setStyle("bottom",0)}li.querySelector("h3")&&""!==li.querySelector("h3").innerText.clean()&&(hasH3Titles=!0)})),imageList.setStyles({width:listItems.length*itemSize.width*3,position:"absolute"}),galleryDiv.setStyles({position:"relative"}),wrapper.setStyles({width:totalWidth-50,margin:"0 25px",height:itemHeight-20}),!0===hasH3Titles&&(galleryDiv.classList.add("has-titles"),wrapper.setStyles({height:itemHeight}),imageList.getElements("li").each((function(li){li.setStyles({height:itemHeight+20})})));new Element("a",{class:"icon-left-dir",id:"previous_"+galleryIndex}).inject(wrapper,"before"),new Element("a",{class:"icon-right-dir",id:"next_"+galleryIndex}).inject(wrapper,"after");var myGallerySlider=new SDSlider(imageList,{idPrevious:"previous_"+galleryIndex,idNext:"next_"+galleryIndex,idToggle:"undefined",iCarouselAttached:!0,item:{klass:"t-gal-item_"+galleryIndex,size:itemSize.width},onInit:function(){Mediabox.scanPage()}});galleryDiv.store("gallerySlider",myGallerySlider)}else if(imageList.addClass("no-arrows"),1==showImgs){var dim=imageLinks[0].getDimensions();wrapper.setStyles({width:dim.width,height:dim.height}),imageList.getElements("li .gallery-text").setStyle("bottom",20)}else{var firstLi=imageList.getElement("li");if(!firstLi)return;var itemWidth=(itemSize=firstLi.getDimensions()).width-1;imageList.getElements("li").each((function(li){li.setStyle("width",itemWidth),li.addClass("t-gal-item_"+galleryIndex);var galleryText=li.getElement(".gallery-text");if(galleryText){var paragraph=li.getElement(".gallery-text p");if(paragraph){var text=paragraph.get("text");if(""!=text.clean()){var lightboxLink=li.getElement("a.zoom");lightboxLink.set("title",lightboxLink.get("title")+"::"+text)}}galleryText.setStyle("bottom",0)}li.querySelector("h3")&&""!==li.querySelector("h3").innerText.clean()&&(hasH3Titles=!0)})),imageList.setStyles({position:"absolute"});dim=imageLinks[0].getDimensions();galleryDiv.setStyles({position:"relative"}),wrapper.setStyles({height:dim.height}),!0===hasH3Titles&&(galleryDiv.classList.add("has-titles"),imageList.getElements("li").each((function(li){li.setStyles({height:itemHeight+20})})))}}})),window.addEvent("resize:throttle(500)",(function(){winW<=640?window.location=window.location:allGalleryDivs.each((function(galleryDiv,galleryIndex){var wrapper=galleryDiv.getElement("div.gallery-wrap"),imageList=galleryDiv.getElement("ul.pagebox-imagegallery"),imageLinks=imageList.getElements("li a.zoom"),colClass=galleryDiv.getParent(".col-xs-12").get("class"),hasH3Titles=!1;-1!=colClass.indexOf("col-lg-12")?(showImgs=4,showArrows=imageLinks.length>showImgs):-1!=colClass.indexOf("col-lg-9")||-1!=colClass.indexOf("col-lg-8")?(showImgs=3,showArrows=imageLinks.length>showImgs):-1!=colClass.indexOf("col-lg-6")?(showImgs=2,showArrows=imageLinks.length>showImgs):(-1!=colClass.indexOf("col-lg-4")||-1!=colClass.indexOf("col-lg-3"))&&(showImgs=1,showArrows=!1);var sz=galleryDiv.getDimensions(),totalWidth=sz.width;if(!0===showArrows){var itemHeight=(itemWidth=(totalWidth-30)/showImgs)/4*3+20,listItems=imageList.getElements("li");imageList.getElements("li").each((function(li){li.setStyles({width:itemWidth,height:itemHeight});var galleryText=li.getElement(".gallery-text");galleryText&&galleryText.setStyle("bottom",0),li.querySelector("h3")&&""!==li.querySelector("h3").innerText.clean()&&(hasH3Titles=!0)})),imageList.setStyles({width:listItems.length*itemWidth*3,height:itemHeight}),wrapper.setStyles({width:totalWidth-50,height:itemHeight-20}),!0===hasH3Titles&&(galleryDiv.classList.add("has-titles"),wrapper.setStyles({height:itemHeight}),imageList.getElements("li").each((function(li){li.setStyles({height:itemHeight+20})})));var mySlider=galleryDiv.retrieve("gallerySlider");mySlider.options.item.size=itemWidth,mySlider.goTo(mySlider.atScreen)}else if(1==showImgs){itemHeight=sz.width/4*3;wrapper.setStyles({width:sz.width,height:itemHeight}),imageList.getElements("li .gallery-text").setStyle("bottom",20)}else{var itemWidth;itemHeight=(itemWidth=(totalWidth/showImgs).floor())/4*3;itemWidth-=1,imageList.getElements("li").each((function(li){li.setStyle("width",itemWidth);var galleryText=li.getElement(".gallery-text");galleryText&&galleryText.setStyle("bottom",0),li.querySelector("h3")&&""!==li.querySelector("h3").innerText.clean()&&(hasH3Titles=!0)})),wrapper.setStyles({width:totalWidth,height:itemHeight}),!0===hasH3Titles&&(galleryDiv.classList.add("has-titles"),imageList.getElements("li").each((function(li){li.setStyles({height:itemHeight+20})})))}}))}))},initPageBoxTouchGalleries=function(){if(winW<=640){$$("div.pb-img-gallery").each((function(galleryDiv,galleryIndex){var titleBox,imgCaption,galleryReady=!1,moveBack=0,moveFwd=0,imageList=galleryDiv.getElement("ul.pagebox-imagegallery"),imageArray=new Array,imageLinks=imageList.getElements("li a.zoom"),fitImage=function(img){var viewportSize=overlay.getDimensions();img.setStyles({"max-width":"none",height:"auto"});var imgSize=img.getDimensions(),aspectRatio=imgSize.x/imgSize.y;
274img.store("aspectRatio",aspectRatio),imgSize.y>imgSize.x?img.setStyles({height:viewportSize.y,width:viewportSize.y*aspectRatio}):img.setStyles({width:viewportSize.x,height:"auto"})},loadImgLeft=function(atScreen){var leftListItem=imageList.getElements("li a.zoom")[atScreen-1];if(leftListItem&&!leftListItem.getElement("img")){var imgToLoad=atScreen%imageArray.length-1;Asset.image(imageArray[imgToLoad].href,{title:imageArray[imgToLoad].title,onLoad:function(){this.inject(leftListItem),fitImage(this)},onError:function(){console.log("ERROR LOADING: ",imageArray[imgToLoad].title)},onAbort:function(){console.log("ERROR ABORTED: ",imageArray[imgToLoad].title)}})}},loadImgRight=function(atScreen){var rightListItem=imageList.getElements("li a.zoom")[atScreen+1];if(rightListItem&&!rightListItem.getElement("img")){var imgToLoad=atScreen%imageArray.length+1;Asset.image(imageArray[imgToLoad].href,{title:imageArray[imgToLoad].title,onLoad:function(){this.inject(rightListItem),fitImage(this)},onError:function(){console.log("ERROR LOADING: ",imageArray[imgToLoad].title)},onAbort:function(){console.log("ERROR ABORTED: ",imageArray[imgToLoad].title)}})}},setTitle=function(atScreen){var toLoad=atScreen%imageArray.length;if(imageArray&&imageArray.length>0){var myTitle=imageArray[toLoad].title;if(myTitle){var captionSplit=myTitle.split("::");null!=captionSplit[0]&&captionSplit[0],imgTitle.set("text",captionSplit[0]);var captionText=null!=captionSplit[1]?captionSplit[1]:"";imgCaption.set("text",captionText),titleBox.addClass("active")}else imgTitle.set("text","")}},setUpSlider=function(aBlock){aBlock||(aBlock=galleryDiv.getElement("div.gallery-wrap")),aBlock.removeEvents("click"),aBlock.addEvent("click",(function(event){event.stop()}));var viewportSize=aBlock.getDimensions(),myTouchSlider=new SDSlider(imageList,{idPrevious:"previous_"+galleryIndex,idNext:"next_"+galleryIndex,idToggle:"undefined",iCarouselAttached:!0,item:{klass:"t-gal-item_"+galleryIndex,size:viewportSize.x},onInit:function(){galleryReady=!0,1==moveBack?function(){this.goTo(this.atScreen-1)}.delay(200,this):1==moveFwd&&function(){this.goTo(this.atScreen+1)}.delay(200,this),setTitle(this.atScreen)},onPrevious:function(){loadImgLeft(this.atScreen),setTitle(this.atScreen)},onNext:function(){loadImgRight(this.atScreen),setTitle(this.atScreen)},onGoTo:function(){loadImgLeft(this.atScreen),loadImgRight(this.atScreen),setTitle(this.atScreen)}});(Browser.Features.Touch||Browser.Features.iOSTouch)&&myTouchSlider.aItems.each((function(item){item.addEvent("swipe",(function(event){item.store("swipe:cancelVertical",!0),"left"==event.direction&&myTouchSlider.goTo(myTouchSlider.atScreen+1),"right"==event.direction&&myTouchSlider.goTo(myTouchSlider.atScreen-1)}))})),galleryDiv.store("myTouchSlider",myTouchSlider)},overlay=galleryDiv.getElement("div.gallery-wrap"),viewportSize=overlay.getDimensions(),viewportHeight=viewportSize.x/4*3;if(overlay.setStyles({height:viewportHeight,overflow:"hidden","padding-bottom":"60px"}),overlay.store("ratio",viewportHeight/viewportSize.x),imageLinks.length>1){galleryDiv.addClass("touch-gallery"),new Element("span",{class:"icon-left-open",id:"previous_"+galleryIndex,events:{click:function(evt){evt.stop(),galleryReady||(moveBack=1,setUpSlider())}}}).inject(overlay),new Element("span",{class:"icon-right-open",id:"next_"+galleryIndex,events:{click:function(evt){evt.stop(),galleryReady||(moveFwd=1,setUpSlider())}}}).inject(overlay),imageList.setStyles({position:"absolute",width:viewportSize.x*imageLinks.length*3,height:viewportHeight});var imageListItems=imageList.getElements("li");imageListItems.each((function(listItem,imgIndex){var iconSearch=listItem.getElement("span.icon-search");iconSearch&&iconSearch.dispose(),listItem.setStyles({width:viewportSize.x,height:viewportHeight,border:"none",display:"block",float:"left"}).addClass("t-gal-item_"+galleryIndex);var aBlock=listItem.getElement("a.zoom"),imgHref="";if(aBlock.classList.contains("pano-single")){var bgImg=aBlock.getStyle("background-image");imgHref=bgImg.substring(5,bgImg.length-2)}else(imgHref=aBlock.get("href"))&&(imgHref=imgHref.replace(/w1500/,"w960"));aBlock.set({rel:"",styles:{background:"transparent"}});var imgTitle=aBlock.get("title"),imgObj={href:imgHref,title:imgTitle};imageArray.push(imgObj),!imgHref||0!=imgIndex&&1!=imgIndex&&imgIndex!=imageListItems.length-1||Asset.image(imgHref,{title:imgObj.title,onLoad:function(){this.inject(aBlock),fitImage(this)}}),listItem.store("src",imgHref),listItem.store("text",imgTitle),aBlock.set("rel",""),aBlock.removeEvents("click"),(Browser.Features.Touch||Browser.Features.iOSTouch)&&aBlock.addEvent("swipe",(function(event){aBlock.store("swipe:cancelVertical",!0),"left"==event.direction&&(moveFwd=1,setUpSlider()),"right"==event.direction&&(moveBack=1,setUpSlider())}))}))}else{var listItem=imageLinks[0];listItem.getElement("span.icon-search").dispose(),listItem.set({rel:"",styles:{background:"transparent",curs
274or:"default"}}).removeEvents("click");var imgHref=listItem.get("href"),imgTitle=listItem.get("title");Asset.image(imgHref,{onLoad:function(){this.inject(listItem),fitImage(this)}}),listItem.addEvent("click",(function(evt){evt.stop()}))}galleryDiv.setStyles({"padding-bottom":"60px"}),titleBox=new Element("div",{class:"title-box",styles:{height:"40px",width:viewportSize.x,position:"absolute",bottom:"0px"}}).inject(galleryDiv,"bottom"),imgTitle=new Element("span",{class:"title"}).inject(titleBox),imgCaption=new Element("span",{class:"caption"}).inject(titleBox),setTitle(0);var resetSizeForTouchGalleries=function(){if(winW>640)window.location=window.location;else{var viewportSize=galleryDiv.getDimensions();viewportSize.y=viewportSize.x*overlay.retrieve("ratio"),overlay.setStyles({height:viewportSize.y,width:viewportSize.x});var listItems=galleryDiv.getElements("ul li");listItems.setStyles({height:viewportSize.y,width:viewportSize.x}),titleBox.setStyle("width",viewportSize.x);var imageList=galleryDiv.getElement("ul");imageList.setStyles({height:viewportSize.y,width:viewportSize.x*listItems.length*3}),imageList.getElements("li img").each((function(img){var imgSize=img.getDimensions(),aspectRatio=imgSize.x/imgSize.y;imgSize.y>imgSize.x?img.setStyles({height:viewportSize.y,width:viewportSize.y*aspectRatio}):img.setStyles({width:viewportSize.x,height:viewportSize.x/aspectRatio})}));var myTouchSlider=galleryDiv.retrieve("myTouchSlider");myTouchSlider&&(myTouchSlider.options.item.size=viewportSize.x,myTouchSlider.goTo(myTouchSlider.atScreen))}};window.addEvent("resize",resetSizeForTouchGalleries),isAndroid||Browser.Platform.ios&&window.addEvent("orientationchange",resetSizeForTouchGalleries)})),Mediabox.scanPage()}else initSliderGalleries()},http2https=function(){"http:"!=window.location.protocol&&$$("a").each((function(a){var href=a.get("href"),rel=a.get("rel");rel&&-1!=rel.indexOf("lightbox[external")&&-1!=href.indexOf("http:")&&!a.getParent(".v3InfoWindow")&&a.set("href",href.replace(/http:/,"https:"))}))},showQuickSearchSpinner=function(btn){var spinner,counter;Browser.Platform.ios||btn.classList.contains("hitlistArrangementsItem")||("image"==btn.get("type")&&btn.set({src:"/bw/v6/img/ico/search_deakt.png",styles:{height:26,width:26,margin:"4px"}}),btn.setStyles({color:"transparent","background-color":"transparent","background-image":"url(/bw/v6/img/spinner_26x26.png)","background-repeat":"no-repeat","background-position":"center center",border:"none",outline:"none",height:"26px","margin-top":"24px"}),btn.classList.add("show-spinner"),spinner=btn,counter=0,intervalId=window.setInterval((function(){var offset=-26*counter;spinner.style.backgroundPosition="center "+offset+"px",++counter>=19&&(counter=0)}),50))},hideQuickSearchSpinner=function(btn){"undefined"!=typeof intervalId&&window.clearInterval(intervalId),btn.disabled=!1,btn.classList.remove("show-spinner"),btn.setAttribute("style","")},fixSpacesBeforePunctuation=function(){$$("p").each((function(parag){var newHtml=parag.get("html").replace(/(\s+),/g,",");newHtml=newHtml.replace(/(\s+)\./g,"."),parag.set("html",newHtml)}))},initEventTracking=function(){document.getElements("#socialmedia a").each((function(socmdlnk){socmdlnk.set("mousedown","if (typeof ET_Event !== 'undefined') ET_Event.link('Social%20Media%20Footer', '')")}));var mapsearchTab=document.id("mapsearch-tab");mapsearchTab&&mapsearchTab.set("mousedown","if (typeof ET_Event !== 'undefined') ET_Event.click('Kartensuche%20Startseite', '')");var hotelviewMenu=document.getElement(".hotelview #navbar");if(hotelviewMenu){var hotelName=document.getElement("#hotelsearch-wrap #namepanel h1").get("text"),hotelCity=document.getElement("#hotelsearch-wrap #namepanel h5").get("text");hotelCity=hotelCity.substring(hotelCity.lastIndexOf(",")+1).trim(),hotelviewMenu.getElements("ul.navbar-nav li a").each((function(menuItem){var title="",txt=menuItem.get("text");txt=(txt=(txt=(txt=(txt=(txt=(txt=(txt=(txt=(txt=txt.replace(/&/g,"")).replace(/ /g,"")).replace(/\s/g,"")).replace(/\./g,"")).replace(/,/g,"")).replace(/\(/g,"")).replace(/\)/g,"")).replace(/\\/g,"")).replace(/\//g,"")).replace(/-/g,"_"),menuItem.set("onmousedown","if (typeof ET_Event !== 'undefined') ET_Event.eventStart('Hotelview%20Navigation', '"+encodeURIComponent(txt)+"', 'Link')"),title="HotelStartseite"==txt||"HotelStartpage"==txt?hotelName+" - "+hotelCity:"ZimmerService"==txt||"RoomsService"==txt?LS("ROOMS")+" "+hotelName:"LageAnfahrt"==txt||"LocationDirections"==txt?LS("LOCATION")+" "+hotelName:"ErholungFreizeit"==txt||"RecreationLeisure"==txt?LS("INTHEVICINITY")+" "+hotelName:"AngeboteSpecials"==txt||"OffersSpecials"==txt?LS("HOLIDAYOFFERS")+" "+hotelName:"AlleHotels"==txt||"Allhotels"==txt?LS("ALL")+" Best Western Hotels":txt
274+" "+hotelName,menuItem.set("title",title),$(homelink).set("title","Best Western Hotels")}))}isWSBK||document.getElements('div[data-behavior="Accordion"] .panel .panel-heading h4 a').each((function(header){var txt=header.get("text").trim();document.id("SD3CBWHVVacationComponent")?header.set("onmousedown","if (typeof ET_Event !== 'undefined') ET_Event.click('KlippKlappHotelview-"+encodeURIComponent(txt)+"', '')"):header.set("onmousedown","if (typeof ET_Event !== 'undefined') ET_Event.click('KlippKlappAllgemein-"+encodeURIComponent(txt)+"', '')")})) 275},attachEtrackerEventToSportListButtons=function(){if($("exchangeableHotelList")){var sportHitList=$("exchangeableHotelList").getElement(".sport-hitlist");if(sportHitList)sportHitList.getElements('a[data-lightbox-class="sportBookingLightboxLink"]').each((function(relButton){var hotelName=relButton.get("href").split("=")[1].replace(/\+/g,"%20");relButton.addEvent("mousedown",(function(){_etracker.sendEvent(new et_ClickEvent(hotelName,"Anfrage%20Trainingslager"))}))}))}},callEtrackerVmReload=function(){if(document.getElement(".touristicHitlist")){var srcArray=[];$$(".hitlist-item img").each((function(img){srcArray.push(img.get("src"))}));Asset.images(srcArray,{onComplete:function(){"function"==typeof et_vm_reload&&et_vm_reload()}})}},showLoading=function(){$("exchangeableHotelList")&&($("exchangeableHotelList").innerHTML='<div class="suchhinweis"><img src="/bw/v6/img/ajax-loader32.gif"/> '+LS("UPDATINGSEARCHRESULTS")+"</div>")},initPannellumPanos=function(){$$("div.pannellum").each((function(pnlm,index){if(!pnlm.getNext(".panorama")){var panoImg,panoID="panorama_"+index,previewSrc="",panoTitle="",w=pnlm.getSize().x,pict=pnlm.getElement("picture");if(pict){var pictSources=pict.getElements("source");pictSources.push(pict.getElement("img")),pictSources.each((function(el,index){var src;"SOURCE"==el.nodeName?src=el.get("srcset"):"IMG"==el.nodeName&&(src=el.get("src"));var srcW=src.match(/_w\d{3}/)[0].replace(/_w/,"");w<=srcW&&(previewSrc=src)}))}if(pnlm.getElement(".pano-title")&&(panoTitle=pnlm.getElement(".pano-title").get("text")),!1!==hasWebGL()){new Element("div",{class:"panorama",id:panoID}).inject(pnlm,"after");pnlm.getElement(".pano-image img")&&(panoImg=pnlm.getElement(".pano-image img").get("src").replace(/_w880/,""),pannellum.viewer(panoID,{type:"equirectangular",autoLoad:!0,panorama:panoImg,title:panoTitle,preview:previewSrc}))}else new Element("img",{src:previewSrc}).inject(pnlm,"after")}}))},initRoomListGalleries=function(){if(winW<=640){$$("div.roomlist-gallery, div.hitlist-gallery").each((function(galleryDiv,galleryIndex){var titleBox,imgTitle,imgCaption,galleryReady=!1,moveBack=0,moveFwd=0,fitImage=function(img){var viewportSize=overlay.getDimensions();img.setStyle("max-width","none");var imgSize=img.getDimensions(),aspectRatio=imgSize.x/imgSize.y;img.store("aspectRatio",aspectRatio),imgSize.y>imgSize.x?img.setStyles({height:viewportSize.y,width:viewportSize.y*aspectRatio,margin:"0 auto"}):img.setStyles({width:viewportSize.x,height:"auto","margin-top":viewportSize.y-viewportSize.x/aspectRatio})},loadImgLeft=function(atScreen){var leftListItem=imageList.getElements("li")[atScreen-1];if(!leftListItem.getElement("img")){var imgToLoad=atScreen%imageArray.length-1;Asset.image(imageArray[imgToLoad].href,{title:imageArray[imgToLoad].title,onLoad:function(){this.inject(leftListItem),fitImage(this)}})}},loadImgRight=function(atScreen){var rightListItem=imageList.getElements("li")[atScreen+1];if(!rightListItem.getElement("img")){var imgToLoad=atScreen%imageArray.length+1;Asset.image(imageArray[imgToLoad].href,{title:imageArray[imgToLoad].title,onLoad:function(){this.inject(rightListItem),fitImage(this)}})}},setTitle=function(atScreen){var toLoad=atScreen%imageArray.length,myTitle=imageArray[toLoad].title;if(myTitle)if(-1!=myTitle.indexOf("::")){var captionSplit=myTitle.split("::");null!=captionSplit[0]&&captionSplit[0],imgTitle.set("text",captionSplit[0]);var captionText=null!=captionSplit[1]?captionSplit[1]:"";imgCaption.set("text",captionText)}else imgTitle.set("text",myTitle);titleBox.addClass("active")},setUpSlider=function(aBlock){aBlock||(aBlock=galleryDiv.getElements("a")[0]),aBlock.removeEvents("click"),aBlock.addEvent("click",(function(event){event.stop()}));var viewportSize=aBlock.getDimensions(),myTouchSlider=new SDSlider(imageList,{idPrevious:"previous_"+galleryIndex,idNext:"next_"+galleryIndex,idToggle:"undefined",iCarouselAttached:!0,item:{klass:"t-gal-item_"+galleryIndex,size:viewportSize.x},onInit:function(){galleryReady=!0,1==moveBack?function(){this.goTo(this.atScreen-1)}.delay(200,this):1==moveFwd&&function(){this.goTo(this.atScreen+1)}.delay(200,this),setTitle(this.atScreen)},onPrevious:function(){loadImgLeft(this.atScreen),setTitle(this.atScreen)},onNext:function(){loadImgRight(this.atScreen),setTitle(this.atScreen)},onGoTo:function(){loadImgLeft(this.atScreen),loadImgRight(this.atScreen),setTitle(this.atScreen)}});(Browser.Features.Touch||Browser.Features.iOSTouch)&&myTouchSlider.aItems.each((function(item){item.addEvent("swipe",(function(event){item.store("swipe:cancelVertical",!0),"left"==event.direction&&myTouchSlider.goTo(myTouchSlider.atScreen+1),"right"==event.direction&&myTouchSlider.goTo(myTouchSlider.atScreen-1)}))})),galleryDiv.store("myTouchSlider",myTouchSlider)},imageArray=[],imgHrefs=[];if(galleryDiv.getElements("a").each((function(imageLink){var imgHref=imageLink.get("href"),imgTitle=imageLink.get("title");if(!imgHrefs.contains(imgHref)){imgHrefs.push(imgHref);var imgObj={href:imgHref,title:imgTitle};imageArray.push(imgObj)}})),imageArray.length<=1)galleryDiv.getElements("a").each((function(lbLink){lbLink.removeProperty("rel");var searchIcon=lbLink.getElement("span.icon-search");searchIcon&&searchIcon.dispose(),lbLink.removeEvents("click"),lbLink.addEvent("click",(function(evt){evt.stop()})),lbLink.setStyle("cursor","default")}));else if(!galleryDiv.hasClass("touch-gallery")){galleryDiv.addClass("touch-gallery");var overlay=galleryDiv.getElement(".text-overlay");if(overlay){var viewportSize=overlay.getDimensions(),galleryDivHeight=viewportSize.y+45,description=galleryDiv.getElement(".room-description");description&&(descriptionSize=description.getDimensions(),galleryDivHeight+=descriptionSize.y+32),galleryDiv.setStyles({height:galleryDivHeight,overflow:"hidden"}),overlay.store("ratio",viewportSize.y/viewportSize.x);var searchIcon=overlay.getElement("span.icon-search");searchIcon&&searchIcon.dispose(),new Element("span",{class:"icon-left-open",id:"previous_"+galleryIndex,styles:{"margin-top":"-32px"},events:{click:function(evt){evt.stop(),galleryReady||(moveBack=1,setUpSlider())}}}).inject(overlay),new Element("span",{class:"icon-right-open",id:"next_"+galleryIndex,styles:{"margin-top":"-32px"},events:{click:function(evt){evt.stop(),galleryReady||(moveFwd=1,setUpSlider())}}}).inject(overlay);var imageList=new Element("ul",{styles:{width:viewportSize.x*imageArray.length*3,height:viewportSize.y}}).inject(overlay);imageArray.each((function(imgObj,imgIndex){var listItem=new Element("li",{class:"t-gal-item_"+galleryIndex,styles:{width:viewportSize.x,height:viewportSize.y,background:"transparent"}});0!=imgIndex&&1!=imgIndex&&imgIndex!=imageArray.length-1||Asset.image(imgObj.href,{title:imgObj.title,onLoad:function(){this.inject(listItem),fitImage(this)}}),listItem.store("src",imgObj.href),listItem.store("text",imgObj.titel),imageList.adopt(listItem)})),galleryDiv.getElements("a.gallery-image-link").dispose(),galleryDiv.getElements("a").each((function(aBlock){var myImg=aBlock.getElement("img");myImg&&myImg.setStyle("opacity",0),aBlock.setStyles({height:viewportSize.y+40,"padding-bottom":"40px","margin-bottom":"20px"}),aBlock.set("rel",""),aBlock.removeEvents("click"),aBlock.addEvent("click",(function(evt){evt.stop(),setUpSlider(this)})),(Browser.Features.Touch||Browser.Features.iOSTouch)&&aBlock.addEvent("swipe",(function(event){aBlock.store("swipe:cancelVertical",!0),"left"==event.direction&&(moveFwd=1,setUpSlider()),"right"==event.direction&&(moveBack=1,setUpSlider())})),titleBox=new Element("div",{class:"title-box"}).inject(aBlock,"bottom"),imgTitle=new Element("span",{class:"title"}).inject(titleBox),imgCaption=new Element("span",{class:"caption"}).inject(titleBox)}
275)),Mediabox.scanPage(),setTitle(0);var resetSizeForTouchGalleries=function(){var aBlock=galleryDiv.getElement("a.content-block"),viewportSize=aBlock.getDimensions();viewportSize.y=viewportSize.x*overlay.retrieve("ratio"),overlay.setStyles({height:viewportSize.y,width:viewportSize.x}),aBlock.setStyles({height:viewportSize.y+40});var listItems=galleryDiv.getElements("ul li");listItems.setStyles({height:viewportSize.y,width:viewportSize.x});var imageList=galleryDiv.getElement("ul");imageList.setStyles({height:viewportSize.y,width:viewportSize.x*listItems.length*3}),imageList.getElements("li img").each((function(img){var imgSize=img.getDimensions(),aspectRatio=imgSize.x/imgSize.y;imgSize.y>imgSize.x?img.setStyles({height:viewportSize.y,width:viewportSize.y*aspectRatio}):img.setStyles({width:viewportSize.x,height:viewportSize.x/aspectRatio,"margin-top":viewportSize.y-viewportSize.x/aspectRatio})}));var myTouchSlider=galleryDiv.retrieve("myTouchSlider");myTouchSlider&&(myTouchSlider.options.item.size=viewportSize.x,myTouchSlider.goTo(myTouchSlider.atScreen))};isAndroid?window.addEvent("resize",resetSizeForTouchGalleries):Browser.Platform.ios&&window.addEvent("orientationchange",resetSizeForTouchGalleries)}}}))}},truncateClampMe=function(){BW.mooTruncateInstance=new mooTruncate({words:-1,chars:140}),BW.mooTruncateInstance.add(".clampMe")},valueToJSONObject=function(value){var val1,val2,valSplit=(value=value.clean()).split('= { "value" = ');return val1=valSplit[1].substring(1,valSplit[1].indexOf(";")-1),val2=valSplit[2]?valSplit[2].substring(1,valSplit[2].indexOf(";")-1):val1,{ENGLISH:replaceUmlauteCodes(val1),GERMAN:replaceUmlauteCodes(val2)}},initHotelviewArrangementPackagesMooTools=function(){var packageFilterList=$("packageFilterList"),packageListWrap=$("packageListWrap");if(packageFilterList&&packageListWrap){var menuItems=[],allItems=packageListWrap.getElements(".hotelviewArrangementPackage"),filteredItems=allItems;0!=allItems[0].getStyle("opacity")&&allItems.fade("hide");var filterTheList=function(key,el){packageFilterList.getElements(".selected").removeClass("selected"),el.addClass("selected"),"all"==key?filteredItems=allItems:(filteredItems=[],allItems.each((function(item){-1!=item.get("data-package-categories").indexOf(key)&&filteredItems.push(item)}))),allItems.hide(),filteredItems.each((function(item){item.show()}))};allItems.each((function(item){Object.each(hotelviewArrangementCategories,(function(value,key){-1!=item.get("data-package-categories").indexOf(key)&&-1==menuItems.indexOf(key)&&menuItems.push(key)})),function(item){var imgHolder=item.getElement(".imgholder"),img=imgHolder.getElement("img");if(!img&&(img=item.getElement("img"))){var p=img.getParent("p");0==p.get("text").trim().length&&p.setStyles({display:"none"})}img&&imgHolder&&(imgHolder.setStyles({"background-image":"url("+img.get("src")+")"}),img.setStyles({display:"none"})),item.fade("in")}(item),function(item){var language=window.sessionLanguage?window.sessionLanguage:"German",headline=item.getElement("h3 strong"),h3Text=headline.get("text").clean();if(h3Text&&-1!=h3Text.indexOf('"GERMAN" = {')){var jObj=valueToJSONObject(h3Text);"English"==language?headline.set("text",jObj.ENGLISH):headline.set("text",jObj.GERMAN)}var clamped=item.getElement(".clampMe");clampedText=clamped.get("text").clean(),clampedText&&-1!=clampedText.indexOf('"GERMAN" = {')&&(jObj=valueToJSONObject(clampedText),"English"==language?clamped.set("text",jObj.ENGLISH):clamped.set("text",jObj.GERMAN));var overlayStrong=item.getElement(".imgholder .overlay strong");if(overlayStrong){var overlayText=overlayStrong.get("text").clean();-1!=overlayText.indexOf('"GERMAN" = {')&&(jObj=valueToJSONObject(overlayText),"English"==language?overlayStrong.set("text",jObj.ENGLISH):overlayStrong.set("text",jObj.GERMAN))}}(item)})),function(menuItems){Object.each(hotelviewArrangementCategories,(function(value,key){if(-1!=menuItems.indexOf(key)){value.replace(/\s/g,"_");var el=new Element("a",{"data-packagefilter":key,html:value,events:{click:function(evt){evt.stop(),filterTheList(key,this)}}});new Element("li").adopt(el).inject(packageFilterList)}}))}(menuItems);var firstEl=packageFilterList.getElement("li");firstEl.addEvent("click",(function(evt){evt.stop(),filterTheList("all",this)}));var hashFilter="",locHash=self.document.location.hash;if(locHash&&function(locHash){var filterApplied=!1;if(-1!=(locHash=decodeURIComponent(locHash).replace(/#/g,"")).indexOf("|")){var hashParts=locHash.split("|");hashFilter=hashParts[0]}else hashFilter=locHash;hashFilter=hashFilter.replace(/_/g," "),packageFilterList.getElements("li a").each((function(menuItem){var packageFilter=menuItem.get("data-packagefilter");packageFilter==hashFilter&&(filterTheList(packageFilter,menuItem),filterApplied=!0)})),filterApplied||Object.each(hotelviewArrangementCategories,(function(value,key){if(hashFilter==value){var menuItem=packageFilterList.getElement('li a[data-packagefilter="'+key+'"]');filterTheList(key,menuItem)}}))}(locHash),winW<992){var h,listHeight=packageFilterList.getHeight(),myEffect=new Fx.Morph(packageFilterList,{onComplete:function(){this.element.toggleClass("open")}});firstEl.addEvent("click",(function(){h=packageFilterList.hasClass("open")?42:listHeight,myEffect.start({height:[h]})}))}}},initHotelviewArrangementPackages=function(){var packageFilterList=document.getElementById("packageFilterList"),packageListWrap=document.getElementById("packageListWrap");if(packageFilterList&&packageListWrap){var language=window.sessionLanguage?window.sessionLanguage:"German",hvArrangementCategories=hotelviewArrangementCategories[language],menuItems=[],allItems=packageListWrap.querySelectorAll(".hotelviewArrangementPackage"),filteredItems=allItems;if(0!==allItems.length){if(0!=allItems[0].style.opacity)for(var i=0;i<allItems.length;i++)allItems[i].style.opacity=0;var filterTheList=function(key,el){for(var selectedItems=packageFilterList.querySelectorAll(".selected"),i=0;i<selectedItems.length;i++)selectedItems[i].classList.remove("selected");if(el.classList.add("selected"),"all"===key)filteredItems=allItems;else{filteredItems=[];for(i=0;i<allItems.length;i++){var item=allItems[i];-1!=item.getAttribute("data-package-categories").indexOf(key)&&filteredItems.push(item)}}for(i=0;i<allItems.length;i++)allItems[i].style.display="none";for(i=0;i<filteredItems.length;i++)filteredItems[i].style.display="block"},sizeImg=function(item){var imgHolder=item.querySelector(".imgholder"),img=imgHolder.querySelector("img");if(!img&&(img=item.querySelector("img"))){var p=img.closest("p");0==p.innerText.trim().length&&(p.style.display="none")}img&&imgHolder&&(imgHolder.style.backgroundImage="url("+img.get("src")+")",img.style.display="none"),item.classList.add("animated"),item.classList.add("fadeIn")},replaceUmlauteCodes=function(value){return value=(value=(value=(value=(value=(value=(value=(value=(value=(value=(value=(value=(value=(value=value.replace(/\\u00e4/g,"ä")).replace(/\\u00f6/g,"ö")).replace(/\\u00fc/g,"ü")).replace(/\\u00df/g,"Ã")).replace(/\\u00c4/g,"Ã")).replace(/\\u00d6/g,"Ã")).replace(/\\u00dc/g,"Ã")).replace(/\\U00e4/g,"ä")).replace(/\\U00f6/g,"ö")).replace(/\\U00fc/g,"ü")).replace(/\\U00df/g,"Ã")).replace(/\\U00c4/g,"Ã")).replace(/\\U00d6/g,"Ã")).replace(/\\U00dc/g,"Ã")},valueToJSONObject=function(value){var valSplit=(value=value.clean()).split('= { "value" = '),valEN=valSplit[1].substring(1,valSplit[1].indexOf(";")-1),valDE=valSplit[2].substring(1,valSplit[2].indexOf(";")-1);return{ENGLISH:replaceUmlauteCodes(valEN),GERMAN:replaceUmlauteCodes(valDE)}},correctTexts=function(item){var language=window.sessionLanguage?window.sessionLanguage:"German",headline=item.querySelector("h3 strong"),h3Text=cleanString(headline.innerHTML);if(h3Text&&-1!=h3Text.indexOf('"GERMAN" = {')){var jObj=valueToJSONObject(h3Text);headline.innerText="English"==language?jObj.ENGLISH:jObj.GERMAN}var clamped=item.querySelector(".clampMe");if(clampedText=cleanString(clamped.innerHTML),clampedText&&-1!=clampedText.indexOf('"GERMAN" = {')){jObj=valueToJSONObject(clampedText);clamped.innerText="English"==language?jObj.ENGLISH:jObj.GERMAN}var overlayStrong=item.querySelector(".imgholder .overlay strong");if(overlayStrong){var overlayText=cleanString(overlayStrong.innerHTML);if(-1!=overlayText.indexOf('"GERMAN" = {')){jObj=valueToJSONObject(overlayText);overlayStrong.innerText="English"==language?jObj.ENGLISH:jObj.GERMAN}}};for(i=0;i<allItems.length;i++){var item=allItems[i];Object.each(hvArrangementCategories,(function(value,key){"Alltagspause"===key&&(key="Alltagspausen"),-1!=item.get("data-package-categories").indexOf(key)&&-1==menuItems.indexOf(key)&&menuItems.push(key)})),sizeImg(item),correctTexts(item)}!function(menuItems){Object.each(hvArrangementCategories,(function(value,key){if(-1!=menuItems.indexOf(key)){value.replace(/\s/g,"_");var el=document.createElement("a");el.setAttribute("data-packagefilter",key),el.innerHTML=value,el.addEventListener("click",(function(evt){evt.preventDefault(),filterTheList(key,this)}));var li=document.createElement("li");li.insertAdjacentElement("afterbegin",el),packageFilterList.insertAdjacentElement("beforeend",li)}}))}(menuItems);var firstEl=packageFilterList.querySelector("li");firstEl.addEventListener("click",(function(evt){evt.preventDefault(),filterTheList("all",this)}));var hashFilter="",locHash=self.document.location.hash;if(locHash&&function(locHash){var filterApplied=!1;if(-1!=(locHash=decodeURIComponent(locHash).replace(/#/g,"")).indexOf("|")){var hashParts=locHash.split("|");hashFilter=hashParts[0]}else hashFilter=locHash;hashFilter=hashFilter.replace(/_/g," ");for(var menuItems=packageFilterList.querySelectorAll("li a"),i=0;i<menuItems.length;i++){var menuItem=menuItems[i],packageFilter=menuItem.getAttribute("data-packagefilter");packageFilter==hashFilter&&(filterTheList(packageFilter,menuItem),filterApplied=!0)}filterApplied||Object.each(hvArrangementCategories,(function(value,key){if(hashFilter==value){var menuItem=packageFilterList.querySelector('li a[data-packagefilter="'+key+'"]');filterTheList(key,menuItem)}}))}(locHash),winW<992){var h,listHeight=getElementSize(packageFilterList).y;packageFilterList.style.transition="height 350ms ease-in-out",packageFilterList.style.height=listHeight+"px",firstEl.addEventListener("click",(function(){h=packageFilterList.classList.contains("open")?42:listHeight,packageFilterList.style.height=h+"px",packageFilterList.classList.toggle("open")}))}}else packageFilterList.style.display="none"}}
275,scrollToListTop=function(){var exchangeableHotelList=document.querySelector(".exchangeableHotelList-pagebox");exchangeableHotelList&&exchangeableHotelList.scrollIntoView({behavior:"smooth"})},SDSlider=new Class({Implements:[Events,Options],options:{animation:{type:"scroll",direction:"left",amount:1,transition:Fx.Transitions.Cubic.easeInOut,duration:500,rotate:{type:"manual",interval:5e3,onMouseOver:"stop"}},item:{klass:"item",size:100},idPrevious:"previous",idNext:"next",shown:1,onClickPrevious:Class.empty,onClickNext:Class.empty,onPrevious:Class.empty,onNext:Class.empty,onGoTo:Class.empty,onJumpTo:Class.empty,onInit:Class.empty},initialize:function(container,options){this.setOptions(options),this.container=$(container),this.aItems=Array.clone($$("."+this.options.item.klass)),this.isMouseOver=!1,"undefined"!=this.options.idPrevious&&$(this.options.idPrevious)&&(this.previousLink=$(this.options.idPrevious),this.previousLink.addEvent("click",function(event){new Event(event).stop(),this._previous(),this.fireEvent("onClickPrevious",this,20)}.bind(this))),"undefined"!=this.options.idNext&&$(this.options.idNext)&&(this.nextLink=$(this.options.idNext),this.nextLink.addEvent("click",function(event){new Event(event).stop(),this._next(),this.fireEvent("onClickNext",this,20)}.bind(this)));var oAn=this.options.animation;this.aItems=Array.clone($$("."+this.options.item.klass)),this.aItems.each(function(item){item.addEvents({mouseenter:function(){this.isMouseOver=!0,"auto"==this.options.animation.rotate.type&&(this.timer=$clear(this.timer))}.bind(this),mouseleave:function(){this.isMouseOver=!1,"auto"==this.options.animation.rotate.type&&(this.timer=this._autoRotate.periodical(this.options.animation.rotate.interval,this))}.bind(this)})}.bind(this)),this.fx=new Fx.Morph(this.container,{duration:oAn.duration,transition:oAn.transition,wait:!1}),this.atScreen=0,this.disableLink(this.previousLink),1==this.aItems.length&&this.disableLink(this.nextLink),this.container.setStyle("left",0),this.fireEvent("onInit",this,20)},enableLink:function(link){link.removeClass("disabled"),link.addClass("enabled"),link===this.previousLink?this.previousLink.addEvent("click",function(event){event.stop(),this._previous(),this.fireEvent("onClickPrevious",this,20)}.bind(this)):link===this.nextLink&&this.nextLink.addEvent("click",function(event){new Event(event).stop(),this._next(),this.fireEvent("onClickNext",this,20)}.bind(this))},disableLink:function(link){link.removeClass("enabled"),link.addClass("disabled"),link.removeEvents("click")},goTo:function(n){n<0||n>this.aItems.length-1||(this.atScreen=n,this.atScreen>=0&&this.atScreen<this.aItems.length&&(0==this.atScreen?(this.disableLink(this.previousLink),this.nextLink.hasClass("disabled")&&this.aItems.length>1&&this.enableLink(this.nextLink)):(this.previousLink.hasClass("disabled")&&this.enableLink(this.previousLink),this.atScreen==this.aItems.length-1?this.disableLink(this.nextLink):this.nextLink.hasClass("disabled")&&this.aItems.length>1&&this.enableLink(this.nextLink)),this._animate(this.atScreen)),this.fireEvent("onGoTo",this,20))},jumpTo:function(n){n<0||n>this.aItems.length-1||(this.atScreen=n,this.atScreen>=0&&this.atScreen<this.aItems.length&&(0==this.atScreen?(this.disableLink(this.previousLink),this.nextLink.hasClass("disabled")&&this.aItems.length>1&&this.enableLink(this.nextLink)):(this.previousLink.hasClass("disabled")&&this.enableLink(this.previousLink),this.atScreen==this.aItems.length-1?this.disableLink(this.nextLink):this.nextLink.hasClass("disabled")&&this.aItems.length>1&&this.enableLink(this.nextLink)),this._setPosition(this.atScreen)),this.fireEvent("onGoTo",this,20))},_previous:function(){this.atScreen>=1&&(this.atScreen-=this.options.animation.amount,this.nextLink.hasClass("disabled")&&this.enableLink(this.nextLink),0==this.atScreen&&this.disableLink(this.previousLink),this._animate(this.atScreen)),this.fireEvent("onPrevious",this,20)},_next:function(){this.atScreen<this.aItems.length&&(this.atScreen+=this.options.animation.amount,this.previousLink.hasClass("disabled")&&this.enableLink(this.previousLink),this.atScreen==this.aItems.length-1&&this.disableLink(this.nextLink),this._animate(this.atScreen)),this.fireEvent("onNext",this,20)},_autoRotate:function(){"stop"!=this.options.animation.rotate.onMouseOver||this.isMouseOver||this._next()},_animate:function(a,b){var maxLeft=0-(this.aItems.length-this.options.shown)*this.options.item.size;this.aItems.length<this.options.shown&&(maxLeft=0);var left=0-a*this.options.item.size;this.aItems.length>this.options.shown&&maxLeft<=left?this.fx.start({left:left}):0==this.atScreen?this.fx.set({left:0}):this.fx.start({left:maxLeft})},_setPosition:function(a,b){var maxLeft=0-(this.aItems.length-this.options.shown)*this.options.item.size;this.aItems.length<this.options.shown&&(maxLeft=0);var left=0-a*this.options.item.size;this.aItems.length>this.options.shown&&maxLeft<=left?this.fx.set({left:left}):0==this.atScreen?this.fx.set({left:0}):this.fx.set({left:maxLeft})},reset:function(){this.atScreen=0,this.disableLink(this.nextLink),this.aItems.length<=this.options.shown?this.doAnimation=!1:(this.enableLink(this.nextLink),this.doAnimation=!0)}}),setupSpecialHotelSearch=function(){var specialHotelSearch=$("specialhotelsearch");if(specialHotelSearch&&!specialHotelSearch.getParent("div.cWidget")){var adultsInput=specialHotelSearch.querySelector("input[name=adults]"),singleRoomInput=specialHotelSearch.querySelector("input[name=single]"),doubleRoomInput=specialHotelSearch.querySelector("input[name=double]");adultsInput&&singleRoomInput&&doubleRoomInput&&adultsInput.addEvent("change",(function(evt){singleRoomInput.value=adultsInput.value%2,doubleRoomInput.value=(adultsInput.value/2).toInt()}))}},setTrivagoCookie=function(){var trvRef=getURLParam("trv_reference");
275if(""!==trvRef){var cmpData=__cmp("getCMPData");cmpData&&"vendorConsents"in cmpData&&"c12163"in cmpData.vendorConsents&&cmpData.vendorConsents.c12163&&setCookie("trv_reference",trvRef,90,"/",window.location.hostname)}},storeTradeDoublerTDUID=function(){var tduid=getURLParam("tduid");if(""!==tduid){var cmpData=__cmp("getCMPData");cmpData&&"vendorConsents"in cmpData&&"s196"in cmpData.vendorConsents&&cmpData.vendorConsents.s196&&(setCookie("TRADEDOUBLER",tduid,365,"/",window.location.hostname),sessionStorage.setItem("tduid",tduid))}},storeIATANumber=function(){var iataNumber=getURLParam("iata");if("00174150"==iataNumber){var cmpData=__cmp("getCMPData");cmpData&&"vendorConsents"in cmpData&&"c17577"in cmpData.vendorConsents&&cmpData.vendorConsents.c17577&&"c54"in cmpData.purposeConsents&&cmpData.purposeConsents.c54&&setCookie("IATANUMBER",iataNumber,60/1440,"/",window.location.hostname)}},buildCalendarEvents=function(){var language=window.sessionLanguage?window.sessionLanguage:"German",eventCalendarWrap=$("eventCalendarWrap"),defaultLinkText="German"==language?"Mehr erfahren":"Learn more",sortedCalendarEvents=[],filteredCalendarEvents=[],bisText="German"==language?" bis ":" to ",handleIntersect=function(entries,observer){entries.forEach((function(entry){if(entry.isIntersecting){var element=entry.target,blankImg=element.getElement("img.calendarEventImg"),dataImgSrc=blankImg.get("data-imgsrc");if(dataImgSrc&&(dataImgSrc.lastIndexOf("/")==dataImgSrc.length-1&&(dataImgSrc+="image.jpg"),-1!=dataImgSrc.indexOf("/451/")&&(dataImgSrc=dataImgSrc.replace(/451/g,"350")),isValidImageSrc(dataImgSrc)))var eventImg=Asset.image(dataImgSrc,{onLoad:function(){eventImg.replaces(blankImg)},onError:function(source){console.log("ERROR: img src '"+dataImgSrc+"' not found")}});element.fade("in"),observer.unobserve(element)}}))},changeDateFormat=function(dateString,param){var temp;if("DE-EN"==param)return(temp=dateString.split("."))[1]+"/"+temp[0]+"/"+temp[2];if(param="EN-DE"){if(-1!=dateString.indexOf("/"))temp=dateString.split("/");else{if(-1==dateString.indexOf("-"))return!1;temp=dateString.split("-")}return temp[1]+"."+temp[0]+"."+temp[2]}},today=(sortedCalendarEvents=calendarEvents.slice().sort((function(a,b){var formattedStartDateA="German"==language?a.startDate:changeDateFormat(a.startDate,"DE-EN"),formattedStartDateB="German"==language?b.startDate:changeDateFormat(b.startDate,"DE-EN"),dateA=Date.parse(formattedStartDateA),dateB=Date.parse(formattedStartDateB),comparison=0;return dateA>dateB?comparison=1:dateA<dateB&&(comparison=-1),comparison})),new Date);(filteredCalendarEvents=sortedCalendarEvents.filter((function(cEvent){if(cEvent.endDate){var formattedEndDate="German"==language?cEvent.endDate:changeDateFormat(cEvent.endDate,"DE-EN");return Date.parse(formattedEndDate).increment("day",1)>today?cEvent:void 0}var formattedStartDate="German"==language?cEvent.startDate:changeDateFormat(cEvent.startDate,"DE-EN");return Date.parse(formattedStartDate).increment("day",1)>today?cEvent:void 0}))).length<3&&eventCalendarWrap.addClass("flexStart"),filteredCalendarEvents.each((function(cEvent){var eventImgSrc,eventStartDate,eventEndDate,eventTitle,eventInfo,eventHref,eventLinkText="";cEvent.startDate&&""!=cEvent.startDate&&(eventStartDate="German"==language?cEvent.startDate:changeDateFormat(cEvent.startDate,"DE-EN")),cEvent.endDate&&""!=cEvent.endDate&&(eventEndDate="German"==language?cEvent.endDate:changeDateFormat(cEvent.endDate,"DE-EN")),eventImgSrc=cEvent.imgSrc,eventTitle="German"==language?cEvent.title_DE:cEvent.title_EN,eventInfo="German"==language?cEvent.info_DE:cEvent.info_EN,eventHref="German"==language?cEvent.href_DE:cEvent.href_EN,(eventLinkText="German"==language?cEvent.linkText_DE:cEvent.linkText_EN)&&""!=eventLinkText||(eventLinkText=defaultLinkText);var eventDiv=new Element("div",{class:"calendarEvent"}),eventImgWrap=new Element("div",{class:"calendarEventImgWrap"}).inject(eventDiv),eventDateP=(new Element("img",{src:"/bw/v6/img/blank.gif","data-imgsrc":eventImgSrc,class:"calendarEventImg"}).inject(eventImgWrap),new Element("p",{class:"calendarEventDate"}).inject(eventDiv));new Element("h3",{class:"calendarEventName",html:eventTitle}).inject(eventDiv);""!=eventStartDate&&new Element("time",{datetime:eventStartDate,text:eventStartDate}).inject(eventDateP),eventEndDate&&""!=eventEndDate&&(new Element("span",{text:bisText}).inject(eventDateP),new Element("time",{datetime:eventEndDate,text:eventEndDate}).inject(eventDateP)),eventDateP.inject(eventDiv);new Element("p",{class:"calendarEvenInfo",html:eventInfo}).inject(eventDiv);if(eventHref&&""!=eventHref){"www"==eventHref.substr(0,3)&&(eventHref="//"+eventHref);new Element("a",{class:"calendarEventLink",title:eventLinkText,text:eventLinkText,href:eventHref,target:"_blank"}).inject(eventDiv)}eventDiv.inject(eventCalendarWrap)})),function(){for(var io=new IntersectionObserver(handleIntersect,{rootMargin:"0px",threshold:.25}
275),elements=document.getElementsByClassName("calendarEvent"),i=0;i<elements.length;i++)io.observe(elements[i])}()},initBehavior=function(){var behavior=new Behavior({}).apply(document.body);new Delegator({getBehavior:function(){return behavior}}).attach(document.body)},insertLineBreaksInAddress=function(){document.querySelectorAll(".hitlist-item address span").forEach((function(addr){var addrHTML=addr.innerHTML;addr.innerHTML=addrHTML.replace(/\//g,"/​")}))},toggleRewardsLoginPanel=function(){var rewardsLoginPanel=document.getElementById("div_bwr_loginpanel");if(rewardsLoginPanel){var toggle=rewardsLoginPanel.querySelector(".toggle-login");toggle&&toggle.addEventListener("click",(function(evt){var overlay;(evt.preventDefault(),rewardsLoginPanel.classList.toggle("open"),overlay=document.querySelector(".bwr-overlay"))||((overlay=document.createElement("div")).className="bwr-overlay",document.body.append(overlay));rewardsLoginPanel.classList.contains("open")?(overlay.style.height=document.body.clientHeight+"px",overlay.style.display="block"):overlay.style.display="none"}))}},removeEmptyTeaserBoxes=function(){document.querySelectorAll("#carousel .teaser-box, .namepanel-container").forEach((function(teaserbox){var t="";teaserbox.childNodes.forEach((function(el){el.innerText&&(t+=el.innerText)})),""===t.trim()&&(teaserbox.style.display="none")}))},getNodeListIndex=function(nodeList,element){for(var found=-1,i=0;i<nodeList.length;i++)element===nodeList[i]&&(found=i);return found},fillEmptyAvailabilityCalendarTDs=function(){document.querySelectorAll(".availabiltyCalendar").forEach((function(calendarTable){var allTDs=calendarTable.querySelectorAll("td.cal"),notNixTDs=calendarTable.querySelectorAll("td.cal:not(#nix)"),firstAvailable=notNixTDs[0],lastAvailable=notNixTDs[notNixTDs.length-1];calendarTable.querySelectorAll("td.notfree").forEach((function(notFree){var nixDate="";if("nix"===notFree.id){var notFreeIndex=getNodeListIndex(allTDs,notFree),firstAvailableIndex=getNodeListIndex(allTDs,firstAvailable);if(notFreeIndex<firstAvailableIndex){var diff=firstAvailableIndex-notFreeIndex;nixDate=Date.parse(firstAvailable.id).decrement("day",diff)}else if(notFreeIndex>firstAvailableIndex){diff=notFreeIndex-firstAvailableIndex;nixDate=Date.parse(lastAvailable.id).increment("day",diff)}notFree.set("id",nixDate.format("%Y-%m-%d")),notFree.getElement(".day").set("text",nixDate.format("%d")),notFree.getElement(".month").set("text",nixDate.format("%b"))}}))}))},creditCardNumberFormat_old=function(value){var matches=value.replace(/\s+/g,"").replace(/[^0-9]/gi,"").match(/\d{4,16}/g),match=matches&&matches[0]||"",parts=[];for(i=0,len=match.length;i<len;i+=4)parts.push(match.substring(i,i+4));return parts.length?parts.join(" "):value},creditCardNumberFormat=function(value,input){var v=value.replace(/\s+/g,"").replace(/[^0-9]/gi,""),parts=[];if(/^3[47]/.test(v)){input.setAttribute("maxlength",15) 276;var len=(match=(matches=v.match(/\d{4,15}/g))&&matches[0]||"").length;return 4===len?parts.push(match.substring(0,4)):10===len?(parts.push(match.substring(0,4)),parts.push(match.substring(4,10))):15===len&&(parts.push(match.substring(0,4)),parts.push(match.substring(4,10)),parts.push(match.substring(10,15))),parts.length?parts.join(""):value}input.setAttribute("maxlength",19);var matches,match=(matches=v.match(/\d{4,16}/g))&&matches[0]||"";for(i=0,len=match.length;i<len;i+=4)parts.push(match.substring(i,i+4));return parts.length?parts.join(" "):value},initCreditCardNumberFormating=function(){var creditCardInput=document.querySelector('.creditcardInfo input[name="KK-Nummer"]');creditCardInput&&creditCardInput.addEventListener("input",(function(){this.value=creditCardNumberFormat(this.value,this)}))},removeWhiteSpaceFromCreditCardNumber=function(){var creditCardInput=document.querySelector('.creditcardInfo input[name="KK-Nummer"]');creditCardInput&&(creditCardInput.value=creditCardInput.value.replace(/ /g,""))},stylesForCreditCardDropDown=function(){var creditCardDropDown=document.querySelector('select[name="Kreditkarte"]');creditCardDropDown&&(creditCardDropDown.querySelectorAll("option").forEach((function(option){var txt=option.innerText.toLowerCase();txt=txt.replace(/ /g,"-"),option.className=txt})),creditCardDropDown.addEventListener("change",(function(evt){for(var i=0;i<this.options.length;i++){var oldClassName=this.options[i].innerText.toLowerCase();oldClassName=oldClassName.replace(/ /g,"-"),this.classList.remove(oldClassName)}var newClassName=this.options[this.selectedIndex].innerText.toLowerCase();newClassName=newClassName.replace(/ /g,"-"),this.classList.add(newClassName)})))},initStickyElements=function(){var stickyElements=[document.querySelector("nav.navbar"),document.getElementById("hotelsearch-wrap"),document.querySelector("#SD3CBWV6BookingRoomSelectComponent #div_bwr_loginpanel"),document.querySelector("#SD3CBWV6BookingCustomerDataComponent #div_bwr_loginpanel")];
276stickyElements.forEach((function(el){null!==el&&("hotelsearch-wrap"===el.id?el.closest("#booking")?el.setAttribute("data-offset-top",el.offsetTop-110):el.setAttribute("data-offset-top",el.offsetTop+70):"div_bwr_loginpanel"===el.id?winW>768?el.setAttribute("data-offset-top",el.offsetTop-62):el.setAttribute("data-offset-top",el.offsetTop-110):el.setAttribute("data-offset-top",el.offsetTop))}));var setStickyClasses=function(scrollPosition){stickyElements.forEach((function(el){if(el){var offsetTop=el.getAttribute("data-offset-top");if(offsetTop||(offsetTop=0),offsetTop<=scrollPosition){if(!el.classList.contains("stick-on-top")){if(window.stickyLockByDatepicker&&"hotelsearch-wrap"===el.id)return;if("hotelsearch-wrap"===el.id&&el.classList.contains("noStickyHead"))return;el.classList.add("stick-on-top"),"hotelsearch-wrap"===el.id&&("function"==typeof reformatSearchPanel&&reformatSearchPanel(),document.body.classList.contains("sticky-searchpanel")||document.body.classList.add("sticky-searchpanel")),brokenIE&&function(el){el.style.position="fixed"}(el)}}else if(el.classList.contains("stick-on-top")){if(window.stickyLockByDatepicker&&"hotelsearch-wrap"===el.id)return;el.classList.remove("stick-on-top"),"hotelsearch-wrap"===el.id&&("function"==typeof reformatSearchPanel&&reformatSearchPanel(),document.body.classList.contains("sticky-searchpanel")&&document.body.classList.remove("sticky-searchpanel")),brokenIE&&function(el){el.style.position="relative"}(el)}}}))};window.__setStickyClasses=setStickyClasses,document.querySelector(".noStickyHeader")&&(document.querySelector("section.pagehead").style.position="static");var scrollPosition=document.documentElement.scrollTop||document.body.scrollTop;setStickyClasses(scrollPosition),window.onscroll=function(){scrollPosition=document.documentElement.scrollTop||document.body.scrollTop,setStickyClasses(scrollPosition)}},initDropDowns=function(){for(var dropDownToggles=document.querySelectorAll(".dropdown-toggle"),i=0;i<dropDownToggles.length;i++){var toggle=dropDownToggles[i],allNavTabs=[],showDropDown=!1,hideDropDownMenu=function(dropDownMenu,dropDownElement,toggle){dropDownMenu.classList.remove("show"),dropDownElement.classList.remove("show"),toggle.setAttribute("aria-expanded",!1),showDropDown=!1};toggle.addEventListener("click",(function(evt){if(evt.preventDefault(),toggle.parentNode&&toggle.parentNode.classList.contains("dropdown")){var dropDownElement=toggle.closest(".dropdown");if(dropDownElement){var dropDownMenu=dropDownElement.querySelector(".dropdown-menu");if(dropDownMenu&&(dropDownMenu.classList.contains("show")?hideDropDownMenu(dropDownMenu,dropDownElement,toggle):function(dropDownMenu,dropDownElement,toggle){dropDownMenu.classList.add("show"),dropDownElement.classList.add("show"),toggle.setAttribute("aria-expanded",!0),showDropDown=!0}(dropDownMenu,dropDownElement,toggle)),dropDownElement.classList.contains("nav-item")&&dropDownElement.parentNode&&dropDownElement.parentNode.classList.contains("nav-tabs")){var navTabList=dropDownElement.closest(".
276nav-tabs");allNavTabs=navTabList.querySelectorAll(".nav-item");for(var j=0;j<allNavTabs.length;j++){var tab=allNavTabs[j],navLink=tab.querySelector(".nav-link");tab===dropDownElement?(tab.classList.add("selected"),navLink.classList.add("active")):(tab.classList.remove("selected"),navLink.classList.remove("active"))}if(navTabList.parentNode&&navTabList.parentNode.classList.contains("select-a-rate")){var overlay=navTabList.closest(".select-a-rate").querySelector(".overlay");overlay.style.display=!0===showDropDown?"block":"none"}for(var dropDownItems=dropDownMenu.querySelectorAll(".dropdown-item"),k=0;k<dropDownItems.length;k++){dropDownItems[k].addEventListener("click",(function(evt){evt.preventDefault(),toggle.innerHTML=this.innerText;for(var l=0;l<dropDownItems.length;l++)dropDownItems[l]===this?dropDownItems[l].classList.add("selected"):dropDownItems[l].classList.remove("selected");hideDropDownMenu(dropDownMenu,dropDownElement,toggle),overlay&&(overlay.style.display="none")}))}}}}}))}},initNavTabs=function(){for(var tabLists=document.querySelectorAll(".nav-tabs"),i=0;i<tabLists.length;i++)for(var navItems=tabLists[i].querySelectorAll(".nav-item"),j=0;j<navItems.length;j++){var navItem=navItems[j];navItem.classList.contains("selected")&&navItem,navItem.addEventListener("click",(function(evt){evt.preventDefault();for(var k=0;k<navItems.length;k++)navItems[k].classList.remove("selected"),navItems[k].querySelector("a.nav-link").classList.remove("active");this.classList.add("selected"),this.querySelector("a.nav-link").classList.add("active")}))}},initNavigationPanel=function(){var navPanelClose=document.getElementById("navpanel-close"),navPanelOpen=document.getElementById("navpanel-open"),navPanel=document.getElementById("navpanel"),nav=document.querySelector("nav.navbar"),displayStyle=brokenIE?"block":"grid";if(navPanel){var closeNavPanel=function(){brokenIE?navPanel.style.display="none":(navPanel.style.marginTop="-300px",window.setTimeout((function(){navPanel.style.display="none"}),500))};navPanelOpen&&navPanelOpen.addEventListener("click",(function(evt){evt.preventDefault(),evt.stopPropagation(),navPanel.style.display&&"none"!==navPanel.style.display?closeNavPanel():(navPanel.style.marginTop="32px",navPanel.style.display=displayStyle)})),navPanelClose&&navPanelClose.addEventListener("click",(function(evt){evt.preventDefault(),closeNavPanel()})),nav&&nav.addEventListener("click",(function(evt){evt.target===navpanel||evt.target.closest("#navpanel")||"none"===navPanel.style.display||(evt.preventDefault(),closeNavPanel())})),""===navPanel.querySelector("div.column:last-of-type").innerText.trim()&&navPanel.classList.add("no-rewards-box")}},initNavigationPanelMobile=function(){var navPanelClose=document.getElementById("navpanel-close"),navPanelOpen=document.getElementById("navpanel-open"),navPanel=document.getElementById("navpanel");if(navPanel){var current,headerLinks=navPanel.querySelectorAll("strong.nav-header a"),headers=navPanel.querySelectorAll("strong.nav-header"),backToMainNav=document.getElementById("backToMainNav"),showCurrentHideOthers=function(){for(var i=0;i<headers.length;i++){var header=headers[i];if(header!==current)header.classList.remove("active"),header.classList.add("hidden");else{header.classList.add("active");var ul=header.nextElementSibling;ul&&!ul.classList.contains("nav-header")&&(ul.style.display="block"),header.parentElement.classList.add("active")}}backToMainNav&&(navPanel.querySelector("strong.nav-header.active").insertAdjacentElement("beforebegin",backToMainNav),backToMainNav.style.display="inline-block"),navPanel.querySelector("section.top-menu")&&(navPanel.querySelector("section.top-menu").style.display="none")};navPanelOpen&&navPanelOpen.addEventListener("click",(function(evt){evt.preventDefault(),"landscape"==deviceOrientation&&winW>576||isAndroid&&androidVersion>=7&&winW>664?navPanel&&(navPanel.style.display="grid"):navPanel&&(navPanel.style.display="block")})),navPanelClose&&navPanelClose.addEventListener("click",(function(evt){evt.preventDefault(),navPanel&&(navPanel.style.display="none")}));for(var i=0;i<headerLinks.length;i++){var headerLink=headerLinks[i],parent=headerLink.parentElement,nextEl=parent.nextElementSibling,parentParent=(headerLink.closest("section"),parent.parentElement);nextEl&&"UL"===nextEl.tagName&&"SECTION"===parentParent.tagName?headerLink.addEventListener("click",(function(evt){(current=evt.target.parentElement).classList.contains("active")||(evt.preventDefault(),showCurrentHideOthers())})):headerLink.classList.add("no-sub")}backToMainNav.addEventListener("click",(function(evt){evt.preventDefault(),function(){var ul=current.nextElementSibling;ul&&!ul.classList.contains("nav-header")&&(ul.style.display="none");for(var i=0;i<headers.length;i++){var header=headers[i];header.classList.remove("active"),header.classList.remove("hidden"),header.parentElement.classList.remove("active")}backToMainNav&&(backToMainNav.style.display="none"),navPanel.querySelector("section.top-menu")&&(navPanel.querySelector("section.top-menu").style.display="block"),current=-1}()})),""===navPanel.querySelector("div.column:last-of-type").innerText.trim()&&navPanel.classList.add("no-rewards-box");var loginMenu=document.querySelector("#top-menu .login");if(loginMenu){var loginSection=document.createElement("section");loginSection.className="login",loginSection.innerHTML=loginMenu.innerHTML,navPanel.querySelector("div.column:first-of-type > div").insertAdjacentElement("afterbegin",loginSection),Mediabox.scanPage(),loginMenu.remove()}if(languageMenu=document.querySelector("#top-menu .dropdown")){var languageDiv=document.createElement("div");languageDiv.className="languageMenuMobile",languageDiv.id="languageMenuMobile",languageDiv.innerHTML=languageMenu.innerHTML,navPanelOpen.insertAdjacentElement("afterend",languageDiv),languageMenu.remove()}var otherTopMenuLis=document.querySelectorAll("#top-menu li");if(otherTopMenuLis.length>0){var topSection=document.createElement("section");topSection.className="top-menu",otherTopMenuLis.forEach((function(li){var span=document.createElement("span");span.innerHTML=li.innerHTML,topSection.insertAdjacentElement("beforeend",span)})),navPanel.querySelector("div.column").insertAdjacentElement("afterbegin",topSection)}if(document.getElementById("top-menu").remove(),languageDiv){var selectLang=languageDiv.querySelector("#selectLang"),selectLangSpan=selectLang.querySelector("span"),selectLangImg=selectLang.querySelector("span img"),langShort="";selectLangImg&&(langShort=selectLangImg.getAttribute("alt"),selectLangSpan.innerText=langShort,selectLangImg.style.display="none");var languageMenu=languageDiv.querySelector("#languageMenu");selectLang.addEventListener("click",(function(evt){languageDiv.classList.toggle("open")})),languageMenu.querySelectorAll("li a").forEach((function(item){if(""===item.innerText.trim()){var langImg=item.querySelector("img");item.innerText=langImg?langImg.getAttribute("alt"):item.getAttribute("title")}else{item.innerText.trim().length<=2&&(item.innerText=item.getAttribute("title"))}}))}}},setCaretPos=function(domElem,pos){if(domElem.setSelectionRange)domElem.focus(),domElem.setSelectionRange(pos,pos);else if(domElem.createTextRange){var range=domElem.createTextRange();range.collapse(!0),range.moveEnd("character",pos),range.moveStart("character",pos),range.select()}},quickSearchInit2020=function(){var searchSubmit=document.getElementById("quickSearchSubmit")||document.getElementById("searchOptionsSubmit")||document.getElementById("bookingUpdateBtn")||document.getElementById("specialSearchSubmit");
276if(searchSubmit){var cityInput=document.getElementById("ss_ort"),adultsInput=document.getElementById("ss_erwachsene"),kidsInput=document.getElementById("ss_kinder"),singleRoomInput=document.getElementById("ss_einzelzimmer"),doubleRoomInput=document.getElementById("ss_doppelzimmer"),qsForm=searchSubmit.closest("form");searchSubmit.addEventListener("click",(function(evt){evt.preventDefault();var autocompleterList=document.querySelector("ul.autocompleter-choices");if(autocompleterList&&isVisible(autocompleterList)&&cityInput){var selected=autocompleterList.querySelector(".autocompleter-selected");selected&&(cityInput.value=selected.innerText)}var hasError=qsForm.querySelector(".has-error");if(adultsInput&&kidsInput&&singleRoomInput&&doubleRoomInput){if(!1===checkMaxChildren(adultsInput,kidsInput,singleRoomInput,doubleRoomInput)){var maxKinderHinweis=document.getElementById("maxKinderHinweis");maxKinderHinweis&&(maxKinderHinweis.style.display="block"),hasError=!0}if(!1===checkRoomPersonsCount(adultsInput,kidsInput,singleRoomInput,doubleRoomInput)){if(anzZimmerHinweis=document.getElementById("anzZimmerHinweis"))document.querySelector("#anzZimmerHinweis .popover-content").innerHTML="<p>"+LS("MAXROOMSNOTE")+"</p>",anzZimmerHinweis.style.display="block";hasError=!0}}if(singleRoomInput&&doubleRoomInput&&!1===checkMaxRooms(singleRoomInput,doubleRoomInput)){var anzZimmerHinweis,telNr="0800 0001403",strHref=window.location.href;if(strHref.indexOf("bestwestern.ch")>-1?telNr="0800 110310":strHref.indexOf("bestwestern.at")>-1&&(telNr="0800 802319"),anzZimmerHinweis=document.getElementById("anzZimmerHinweis"))document.querySelector("#anzZimmerHinweis .popover-content").innerHTML="<p>"+LS("RESERVATIONNOTE1")+" "+telNr+" "+LS("RESERVATIONNOTE2")+"</p>",anzZimmerHinweis.style.display="block";hasError=!0}if(cityInput&&cityInput.value.length>0&&!hasError)qsForm.get("target")&&"_blank"==qsForm.get("target")||showQuickSearchSpinner(searchSubmit),searchSubmit.disabled=!0,qsForm.querySelector(".hitlist-arrangements-wrapper")||(-1===ua.indexOf("safari/")||document.documentElement.classList.contains("iphone")?qsForm.submit():setTimeout((function(){qsForm.submit()}),200));else if(document.getElementById("wsbk"))qsForm.submit();else if(document.body.classList.contains("hotelview-2021"))qsForm.get("target")&&"_blank"==qsForm.get("target")||showQuickSearchSpinner(searchSubmit),searchSubmit.disabled=!0,-1===ua.indexOf("safari/")||document.documentElement.classList.contains("iphone")?qsForm.submit():setTimeout((function(){qsForm.submit()}),200);else{if(hasError&&("ss_ort"!==hasError.id||"hidden"!==hasError.getAttribute("type")))return!1;showQuickSearchSpinner(searchSubmit),searchSubmit.disabled=!0}})),adultsInput&&singleRoomInput&&doubleRoomInput&&adultsInput.addEvent("change",(function(evt){singleRoomInput.value=adultsInput.value%2,doubleRoomInput.value=(adultsInput.value/2).toInt()})),document.querySelectorAll(".popover .close").forEach((function(closeBtn){closeBtn.addEventListener("click",(function(evt){evt.preventDefault(),this.closest(".popover").hide(),cityInput&&"hidden"===cityInput.getAttribute("type")&&cityInput.classList.contains("has-error")&&cityInput.classList.remove("has-error")}))}))}},closeIENotice=function(){isIE11&&document.querySelector(".ie11-notice span.icon-cancel").addEventListener("click",(function(evt){evt.preventDefault(),document.querySelector(".ie11-notice").style.display="none"}))},showRewardsLoginTooltip=function(ev){ev.target;var rewardsLoginNotice=document.getElementById("rewardsLoginNotice"),size=rewardsLoginNotice.measure((function(){return this.getSize()}));rewardsLoginNotice.style.left=ev.pageX-size.x/2+"px",rewardsLoginNotice.style.top=ev.pageY-size.y+"px",rewardsLoginNotice.style.display="block",rewardsLoginNotice.querySelector(".close").addEventListener("click",(function(evt){rewardsLoginNotice.style.display="none",rewardsLoginNotice.style.left="-1000px",rewardsLoginNotice.style.top="-1000px"}))},isLoggedInRewardsV6=function(){document.querySelectorAll(".rewardsOnlyRate").forEach((function(rewardsOnlyRate){rewardsOnlyRate.style.display="block"})),document.querySelectorAll("h4.rate-tariff.publicRate").forEach((function(promoCodesPublic){promoCodesPublic.style.display="none"})),document.querySelectorAll("h4.rate-tariff.publicRate + h4.rate-tariff.publicRate").forEach((function(promoCodesPublic){promoCodesPublic.style.display="block"}
276)),document.documentElement.addClass("loggedInRewards")},isLoggedInRewards=isLoggedInRewardsV6,isNotLoggedInRewardsV6=function(){document.querySelectorAll("h4.rate-tariff.publicRate").forEach((function(promoCodesPublic){promoCodesPublic.style.display="none"})),document.querySelectorAll("h4.rate-tariff.publicRate + h4.rate-tariff.publicRate").forEach((function(promoCodesPublic){promoCodesPublic.style.display="block"})),document.documentElement.classList.remove("loggedInRewards"),document.querySelectorAll("h4.rewardsOnlyRate").forEach((function(rewardsOnlyRateHidden){var rateOption=rewardsOnlyRateHidden.closest(".rate-option");rateOption.classList.add("disabled");var radioBtn=rateOption.querySelector("input[type=radio]");radioBtn.disabled=!0,radioBtn.removeEventListener("click",BW.setRateOptionSelected,this.target);var checkmark=radioBtn.nextElementSibling;checkmark.classList.contains("eventAttached")||(checkmark.addEventListener("click",showRewardsLoginTooltip,this.target),checkmark.classList.add("eventAttached")),rateOption.querySelector("label").removeEventListener("click",BW.setRateOptionSelected,this.target)}))},isNotLoggedInRewards=isNotLoggedInRewardsV6,storeBWData=function(key,data){var wosInput=document.querySelector('input[name="wosid"]');if(wosInput)wosInput.value;DEBUG&&sessionStorage.setItem("BW["+key+"]",JSON.stringify(data))},retrieveBWData=function(key){var wosIdInput=document.querySelector('input[name="wosid"]');if(wosIdInput){wosIdInput.value;return JSON.parse(sessionStorage.getItem("BW["+key+"]"))}},clearBWDataLocalStorage=function(){var wosIdInput=document.querySelector('input[name="wosid"]');if(wosIdInput){var wosId=wosIdInput.value;wosId!==localStorage.getItem("BW[wosId]")&&(localStorage.removeItem("BW[activeTiles]"),localStorage.removeItem("BW[occupancy]"),localStorage.removeItem("BW[addedExtras]"),localStorage.removeItem("BW[roomItems]"),localStorage.removeItem("BW[roomItemsNoExtras]"),localStorage.setItem("BW[wosId]",wosId))}},clearBWDataSessionStorage=function(){sessionStorage.removeItem("BW[activeTiles]"),sessionStorage.removeItem("BW[occupancy]"),sessionStorage.removeItem("BW[addedExtras]"),sessionStorage.removeItem("BW[roomItems]"),sessionStorage.removeItem("BW[roomItemsNoExtras]")},storeDataWithWosId=function(key,data){var wosId=document.querySelector('input[name="wosid"]').value;DEBUG&&localStorage.setItem(wosId+"["+key+"]",JSON.stringify(data))},retrieveDataWithWosId=function(key){var wosId=document.querySelector('input[name="wosid"]').value;return JSON.parse(localStorage.getItem(wosId+"["+key+"]"))},twoDecimalPlaces=function(num){var n=(Math.round(100*num)/100).toFixed(2);return"German"===language?parseFloat(n).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2}):parseFloat(n).toLocaleString("en-GB",{minimumFractionDigits:2,maximumFractionDigits:2})},zeroDecimalPlaces=function(num){return(Math.round(100*num)/100).toFixed(0)},priceToNumber=function(str){if(str&&"string"==typeof str){var t=str.replace(/â¬/g,"");return t=(t=(t=(t=t.replace(/\$/g,"")).replace(/ /,"")).replace(/\./,"")).replace(/,/,"."),parseFloat(t)}},priceToString=function(num){return"⬠"+twoDecimalPlaces(num)},toggleRadiusSearchVisibility=function(){var radiusSearch=document.querySelector(".radius-search");radiusSearch&&radiusSearch.classList.remove("hidden")},addHotelviewClassesToBody=function(){document.querySelector(".hotelviewImport")&&document.body.classList.add("hotelview","hotelview-2021")},attachCSSToFileUploadIframe=function(){var iframe=document.querySelector("iframe"),contentDoc=iframe.contentDocument,fileInput=contentDoc.querySelector('input[type="file"]');
276if(fileInput){var submitBtn=contentDoc.querySelector('input[type="submit"]'),label=document.createElement("label");label.className="file-upload","German"!==language&&(label.classList.add("en"),submitBtn.classList.add("en"),submitBtn.value="Start upload"),fileInput.insertAdjacentElement("beforebegin",label);var fileCustomSpan=document.createElement("span");fileCustomSpan.className="file-custom",fileCustomSpan.innerHTML="German"===language?"keine Datei ausgewählt...":"no file selected...",label.insertAdjacentElement("beforeend",fileCustomSpan),label.insertAdjacentElement("afterbegin",fileInput);var docHead=contentDoc.querySelector("head"),cssLink=document.createElement("link");cssLink.href="/bw/v6/css/file-upload.css",cssLink.rel="stylesheet",cssLink.type="text/css",docHead.appendChild(cssLink);var iframeName=iframe.getAttribute("name");return resizeFrame(iframeName),fileInput.addEventListener("change",(function(evt){if(""!==fileInput.value.trim()){var fileNameParts=fileInput.value.split("\\"),fileName=fileNameParts[fileNameParts.length-1];fileCustomSpan.innerHTML=fileName}})),!0}},cleanLeftoverToolTips=function(){document.querySelectorAll(".hotelicons span").forEach((function(hotelIcon){hotelIcon.addEventListener("mouseleave",(function(evt){document.querySelectorAll("div.tooltip.fade.out").forEach((function(tooltip){console.log("tooltip:",tooltip),tooltip.remove()}))}))}))},initSearchResultSortAndFilterOptions=function(){for(var optionContainers=document.querySelectorAll(".tl-sortColumn .options"),overlay=document.querySelector(".tl-hitlistColumn .overlay"),i=0;i<optionContainers.length;i++){var header=optionContainers[i].querySelector("h4");header&&header.addEventListener("click",(function(evt){evt.preventDefault();var parentContainer=this.parentElement;if(parentContainer.classList.contains("active"))parentContainer.classList.remove("active"),overlay&&(overlay.style.display="none");else{for(var j=0;j<optionContainers.length;j++)optionContainers[j].classList.remove("active");parentContainer.classList.add("active"),overlay&&(overlay.style.display="block"),mobileLayout&&parentContainer.classList.contains("options-sort")&&startUmkreissuche2020()}}))}var checkBoxes=document.querySelectorAll(".tl-sortColumn .options-filter .checkbox input[type=checkbox]");for(i=0;i<checkBoxes.length;i++){var checkBox=checkBoxes[i],checkBoxContainer=checkBox.closest("label.checkbox");checkBox.checked?checkBoxContainer.classList.add("selected"):checkBoxContainer.classList.remove("selected"),checkBox.addEventListener("change",(function(evt){this.checked?checkBoxContainer.classList.add("selected"):checkBoxContainer.classList.remove("selected")}))}};function hexToRgba(hex,opacity){3===(hex=hex.replace(/^#/,"")).length&&(hex=hex.split("").map((c=>c+c)).join(""));return`rgba(${parseInt(hex.substring(0,2),16)}, ${parseInt(hex.substring(2,4),16)}, ${parseInt(hex.substring(4,6),16)}, ${opacity})`}function applyBackgroundColors(){document.querySelectorAll(".background-box").forEach((box=>{box.style.backgroundColor="";const textBox=box.querySelector(".textBox");textBox&&(textBox.style.backgroundColor="");const hexColor=box.dataset.bgcolor,opacity=box.dataset.bgopacity||"1";if(!hexColor)return;const rgba=hexToRgba(hexColor,opacity),picture=box.querySelector("picture"),hasVisiblePicture=picture&&"none"!==window.getComputedStyle(picture).display,video=box.querySelector("video"),hasVideo=!!video&&"none"!==window.getComputedStyle(video).display,iframe=box.querySelector("iframe"),hasIframe=!!iframe&&"none"!==window.getComputedStyle(iframe).display,hasMedia=hasVisiblePicture||hasVideo||hasIframe;box.classList.toggle("has-media",hasMedia),box.classList.toggle("no-media",!hasMedia),hasMedia&&textBox?textBox.style.backgroundColor=rgba:box.style.backgroundColor=rgba}))}document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5, .page-content h6").forEach((el=>{el.textContent.trim()||el.remove()}))})),document.addEventListener("DOMContentLoaded",(function(){const wrappers=document.querySelectorAll(".wrapBackgroun
276dHorizontalScrollNav .background-box"),teaserBoxes=document.querySelectorAll(".teaserboxWrap .background-box, .imageTeaser .background-box");wrappers.forEach((wrapper=>{const scrollNav=wrapper.querySelector(".scroll-nav-wrapper");if(!scrollNav)return;const bgColor=wrapper.style.backgroundColor,textColor=wrapper.style.color;scrollNav.style.backgroundColor=bgColor,scrollNav.style.color=textColor;scrollNav.querySelectorAll("a").forEach((link=>{link.style.color=textColor})),wrapper.style.backgroundColor="",wrapper.style.color=""})),teaserBoxes.forEach((teaserBox=>{const textBox=teaserBox.querySelector(".textBox");if(!textBox)return;const textColorTeaser=teaserBox.style.color;textBox.style.color=textColorTeaser})),document.querySelectorAll(".background-box picture").forEach((function(picture){const img=picture.querySelector("img");img&&img.getAttribute("src")?img.addEventListener("error",(function(){picture.style.display="none"})):picture.style.display="none"}))})),document.addEventListener("DOMContentLoaded",applyBackgroundColors),BW.roomItems=BW.roomItems?BW.roomItems:[],BW.roomItemsNoExtras=BW.roomItemsNoExtras?BW.roomItemsNoExtras:[],BW.activeTiles=BW.activeTiles?BW.activeTiles:[],BW.addedExtras=BW.addedExtras?BW.addedExtras:[];var activeRoomId="room_1",isInRoomItems=function(k,v){var found=!1;return BW.roomItems.forEach((function(item){item[k]===v&&(found=!0)})),found},triggerOnChangeEvent=function(element){if("createEvent"in document){var evt=document.createEvent("HTMLEvents");evt.initEvent("change",!1,!0),element.dispatchEvent(evt)}else element.fireEvent("onchange")},setAddRemoveButtons=function(){for(var counterDivs=document.querySelectorAll(".select-a-rate .add-a-person"),i=0;i<counterDivs.length;i++)for(var counterDiv=counterDivs[i],buttons=counterDiv.querySelectorAll("button"),j=0;j<buttons.length;j++){var btn=buttons[j];if(btn.classList.contains("add-adult")){var adultsCountInput=(cntSpan=btn.previousElementSibling).querySelector("input[type=text]"),adults=parseInt(adultsCountInput.getAttribute("value")),maxOccupancy=counterDiv.closest(".room-container").querySelector(".rate-option.selected .max-occupancy span");if(maxOccupancy){var maxPersons=maxOccupancy.getAttribute("data-max-persons"),max=parseInt(maxPersons);btn.disabled=adults===max}var adultTxt=adults>1?" Erwachsene":" Erwachsene(r)";"German"!==language&&(adultTxt=adults>1?" Adults":" Adult"),btn.innerHTML="<i>+</i>"+adultTxt}else if(btn.classList.contains("remove-adult")){adultsCountInput=(cntSpan=btn.nextElementSibling).querySelector("input[type=text]"),adults=parseInt(adultsCountInput.getAttribute("value"));btn.disabled=!(adults>1)}else if(btn.classList.contains("add-child")){var childCountInput=(cntSpan=btn.previousElementSibling).querySelector("input[type=text]"),children=parseInt(childCountInput.getAttribute("value"));btn.disabled=2===children}else if(btn.classList.contains("remove-child")){var cntSpan;children=(childCountInput=(cntSpan=btn.nextElementSibling).querySelector("input[type=text]")).getAttribute("value")&&""!==childCountInput.getAttribute("value")?parseInt(childCountInput.getAttribute("value")):0,cntSpan.querySelector("input[type=text]").setAttribute("value",children),btn.disabled=!(children>0)}}},initRoomPersonsCounters=function(){for(var counterDivs=document.querySelectorAll(".select-a-rate .add-a-person"),i=0;i<counterDivs.length;i++)for(var buttons=counterDivs[i].querySelectorAll("button"),j=0;j<buttons.length;j++){var btn=buttons[j];btn.classList.contains("listenerAttached")||(btn.addEventListener("click",(function(evt){evt.preventDefault();if(this.classList.contains("add-adult")){var adultsCountInput=(cntSpan=this.previousElementSibling).querySelector("input[type=text]"),adults=parseInt(adultsCountInput.getAttribute("value"))+1;adultsCountInput.setAttribute("value",adults),triggerOnChangeEvent(adultsCountInput);var maxPersons=(maxOccupancy=this.closest(".room-container").querySelector(".rate-option.selected .max-occupancy span")).getAttribute("data-max-persons"),max=parseInt(maxPersons);this.disabled=adults===max;var adultTxt=adults>1?" Erwachsene":" Erwachsene(r)";"German"!==language&&(adultTxt=adults>1?" Adults":" Adult"),this.innerHTML="<i>+</i>"+adultTxt,cntSpan.previousElementSibling.disabled=1===adults}else if(this.classList.contains("remove-adult")){var maxOccupancy;adultsCountInput=(cntSpan=this.nextElementSibling).querySelector("input[type=text]"),adults=parseInt(adultsCountInput.getAttribute("value"))-1;if(adultsCountInput.setAttribute("value",adults),triggerOnChangeEvent(adultsCountInput),this.disabled=1===adults,maxOccupancy=this.closest(".room-container").querySelector(".rate-option.selected .max-occupancy span")){maxPersons=maxOccupancy.getAttribute("data-max-persons"),max=parseInt(maxPersons);(addBtn=cntSpan.nextElementSibling).disabled=adults===max,this.disabled=1===adults;adultTxt=adults>1?" Erwachsene":" Erwachsene(r)";"German"!==language&&(adultTxt=adults>1?" Adults":" Adult"),addBtn.innerHTML="<i>+</i>"+adultTxt}}else if(this.classList.contains("add-child")){var childCountInput=(cntSpan=this.previousElementSibling).querySelector("input[type=text]"),children=parseInt(childCountInput.getAttribute("value"))+1;childCountInput.setAttribute("value",children),triggerOnChangeEvent(childCountInput),this.disabled=2===children,cntSpan.previousElementSibling.disabled=!(children>0)}else if(this.classList.contains("remove-child")){var cntSpan,addBtn;childCountInput=(cntSpan=this.nextElementSibling).querySelector("input[type=text]"),children=parseInt(childCountInput.getAttribute("value"))-1;childCountInput.setAttribute("value",children),triggerOnChangeEvent(childCountInput),this.disabled=!(children>0),(addBtn=cntSpan.nextElementSibling).disabled=2===children}})),btn.classList.add("listenerAttached"))}},showButtonsForBasket=function(){0===BW.addedExtras.length&&0===BW.activeTiles.length?(document.getElementById("no-extras").style.display="none",document.getElementById("data-and-order").style.display="none"):0===BW.addedExtras.length?(document.getElementById("no-extras").style.display="inline-block",document.getElementById("data-and-order").style.display="none"):(document.getElementById("no-extras").style.display="none",document.getElementById("data-and-order").style.display="inline-block")},showRateSelectionHideExtras=function(){document.getElementById("select-a-rate").style.display="block",document.getElementById("select-extras")&&(document.getElementById("select-extras").style.display="none"),showButtonsForBasket()},showExtrasHideRateSelection=function(uuid){var firstTile;document.querySelectorAll("div.tile.has-extras").forEach((function(tile,index){0===index&&(firstTile=tile);var tileUuid=tile.getAttribute("data-uuid");uuid&&uuid===tileUuid&&tile.classList.add("pick-extras")})),uuid||firstTile.parentElement.classList.add("pick-extras"),document.getElementById("select-a-rate").style.display="none",document.getElementById("select-extras")&&(document.getElementById("select-extras").style.display="block"),showButtonsForBasket()},showSpinnerOverlay=function(){ 277var spinnerOverlay=document.getElementById("spinnerOverlay");spinnerOverlay||((spinnerOverlay=document.createElement("div")).setAttribute("id","spinnerOverlay"),document.body.append(spinnerOverlay)),spinnerOverlay.style.display="block"},hideSpinnerOverlay=function(){var spinnerOverlay=document.getElementById("spinnerOverlay");spinnerOverlay&&(spinnerOverlay.style.display="none")},updateBookingCart=function(){if(BW.bookedRooms&&updateBookingCartURL){var bookingCartIndicator=document.getElementById("bookingCartIndicator"),roomsForCart=[];
277BW.bookedRooms.forEach((function(item){var extras=[];item.extras&&item.extras.forEach((function(ex){var extra={id:ex.id,price:ex.price,price_txt:ex.price_txt,price_type:ex.price_type,quantity:ex.quantity};extras.push(extra)}));var room={adults:item.adults,children:item.children,roomId:item.roomId,uuid:item.uuid,extras:extras};roomsForCart.push(room)}));var url=updateBookingCartURL+"?updateCart="+JSON.stringify(roomsForCart),xhttp=new XMLHttpRequest;xhttp.onreadystatechange=function(){4==this.readyState&&200==this.status&&(bookingCartIndicator.innerHTML=this.responseText)},xhttp.open("GET",url,!0),xhttp.send()}},addSelectedRoomRate=function(){BW.activeTiles;var wrapper=document.querySelector(".select-three-rooms");if(wrapper){var boxes=document.querySelectorAll(".select-three-rooms > div"),targetElement=(document.getElementById("items-in-basket"),document.querySelector(".select-three-rooms .active")),addRoomRateButtons=document.querySelectorAll(".add-selected-room-rate");mobileLayout&&(addRoomRateButtons=document.querySelectorAll(".selected-room-total"));var refreshTiles=function(occupancyFromJSON){if("undefined"!=typeof hotelExtrasJSON&&hotelExtrasJSON||wrapper.querySelectorAll(".add-extras").forEach((function(addExtras){addExtras.style.display="none"})),BW.activeTiles.length>0){for(var i=0;i<BW.activeTiles.length;i++){var tile=buildTileFromObj(BW.activeTiles[i],i),roomId=BW.activeTiles[i].roomId;(firstTile=(box=document.getElementById(roomId)).querySelector(".tile")).classList.contains("default")||box.removeChild(firstTile),box.querySelector(".tile.default").classList.add("hidden"),box.classList.add("selected-room"),box.classList.remove("active"),box.classList.remove("inactive"),box.insertAdjacentElement("afterbegin",tile)}if(BW.activeTiles.length<boxes.length)for(i=BW.activeTiles.length;i<boxes.length;i++){var box,firstTile;if((firstTile=(box=boxes[i]).querySelector(".tile")).classList.contains("default")||box.removeChild(firstTile),box.querySelector(".tile.default").classList.remove("hidden"),box.classList.remove("selected-room"),i===BW.activeTiles.length);else{var defaultHTML='Zimmer hinzufügen <span class="icon-plus"></span>';"German"!==language&&(defaultHTML='add a room <span class="icon-plus"></span>'),box.querySelector(".tile.default h4").innerHTML=defaultHTML}}0===BW.activeTiles.length&&showRateSelectionHideExtras(),totalRooms=BW.activeTiles.length,setActiveTile(activeRoomId),window.scrollTo({top:wrapper.offsetTop-100,left:0,behavior:"smooth"})}else boxes.forEach((function(box,index){var firstTile=box.querySelector(".tile");firstTile.classList.contains("default")||box.removeChild(firstTile);var emptyTile=box.querySelector(".tile.hidden");emptyTile&&emptyTile.classList.remove("hidden"),box.classList.remove("selected-room"),0===index?(box.classList.remove("inactive"),box.classList.add("active")):(box.classList.remove("active"),box.classList.add("inactive"))})),totalRooms=0;BW.updateFields(totalAdults,totalChildren,totalRooms,totalSingleRooms,totalDoubleRooms,occupancyFromJSON),showButtonsForBasket()};BW.refreshTiles=refreshTiles;BW.getItemTitle2=function(btnTxt){var itemTitle=btnTxt.split("â¬")[0].trim();return 10==itemTitle.charCodeAt(1)?itemTitle.substr(2):itemTitle.substr(1)};var removeTile=function(tile){var tileId=tile.getAttribute("data-tile-for");if(activeRoomId===tileId){var tileUuid=tile.getAttribute("data-uuid");BW.roomItems&&BW.roomItems.length>0&&(BW.roomItems.forEach((function(roomItem,index){roomItem.uuid===tileUuid&&roomItem.roomId===tileId&&(BW.roomItems.splice(index,1),BW.roomItemsNoExtras.splice(index,1))})),BW.roomItems.forEach((function(roomItem,index){roomItem.roomId="room_"+(index+1)})),BW.roomItemsNoExtras.forEach((function(roomItem,index){roomItem.roomId="room_"+(index+1)}))),storeBWData("roomItems",BW.roomItems),storeBWData("roomItemsNoExtras",BW.roomItemsNoExtras),BW.bookedRooms&&(BW.bookedRooms=BW.roomItems),updateBookingCart(),BW.activeTiles&&BW.activeTiles.length>0&&(BW.activeTiles.forEach((function(tileItem,index){tileItem.uuid===tileUuid&&tileItem.roomId===tileId&&BW.activeTiles.splice(index,1)}
277)),BW.activeTiles.forEach((function(tileItem,index){tileItem.roomId="room_"+(index+1)})));for(var addedExtras=[],i=0;i<BW.addedExtras.length;i++){var extrasItem=BW.addedExtras[i];if(extrasItem.uuid===tileUuid&&extrasItem.roomId===tileId);else{var numId=parseInt(extrasItem.roomId.substring(5));parseInt(tileId.substring(5))<numId&&numId>1&&(extrasItem.roomId="room_"+(numId-1)),addedExtras.push(extrasItem)}}BW.addedExtras=addedExtras,storeBWData("activeTiles",BW.activeTiles),storeBWData("addedExtras",BW.addedExtras),refreshTiles(occupancyFromJSON=!1),showRateSelectionHideExtras()}};BW.removeTile=removeTile;var buildTileFromObj=function(roomData,index){console.log("buildTileFromObj - roomData:",roomData);var priceIsPoints=!1,newTile=document.createElement("div");if(newTile.className="tile","BWRP"===roomData.currencySign){var pointsPriceP=document.createElement("p");pointsPriceP.className="price-points",pointsPriceP.setAttribute("data-currency-sign","BWRP"),pointsPriceP.innerText=roomData.priceTag,newTile.insertAdjacentElement("afterbegin",pointsPriceP),(priceP=document.createElement("p")).className="price",priceP.setAttribute("data-room-rate","0,00"),priceP.setAttribute("data-total-price","0,00"),priceP.setAttribute("data-currency-sign","â¬"),priceP.setAttribute("data-nights",roomData.nights),newTile.insertAdjacentElement("afterbegin",priceP),priceIsPoints=!0}else{var priceP;(priceP=document.createElement("p")).className="price",priceP.innerText=roomData.priceTag,null!=roomData.payWithPointsPoints&&priceP.setAttribute("data-paywithpointpoints",roomData.payWithPointsPoints),priceP.setAttribute("data-room-rate",roomData.rateNumeric),priceP.setAttribute("data-total-price",roomData.totalPriceNumeric),priceP.setAttribute("data-currency-sign",roomData.currencySign),priceP.setAttribute("data-nights",roomData.nights),newTile.insertAdjacentElement("afterbegin",priceP)}var detailsDiv=document.createElement("div");detailsDiv.className="rate-details",newTile.insertAdjacentElement("afterbegin",detailsDiv),detailsDiv.addEventListener("click",(function(evt){evt.preventDefault(),this.classList.toggle("open")}));var rateP=document.createElement("p");rateP.className="rate",rateP.innerText=roomData.rateType,detailsDiv.insertAdjacentElement("afterbegin",rateP);var personsP=document.createElement("p");personsP.className="persons";var adultTxt=roomData.adultCount>1?" Erwachsene":" Erwachsene(r)",childrenTxt=roomData.childCount>1?" Kinder":" Kind";"German"!==language&&(adultTxt=roomData.adults>1?" Adults":" Adult",childrenTxt=roomData.children>1?" Children":" Child"),personsP.innerHTML=roomData.adultCount+adultTxt+(parseInt(roomData.childCount)>0?", "+roomData.childCount+childrenTxt:""),personsP.setAttribute("data-adults",roomData.adultCount),personsP.setAttribute("data-children",roomData.childCount),detailsDiv.insertAdjacentElement("afterbegin",personsP),console.log("language:",language);var typeP=document.createElement("p");typeP.className="type",typeP.innerText=roomData.roomType,detailsDiv.insertAdjacentElement("afterbegin",typeP);var detailsHeader=document.createElement("h6");detailsHeader.innerText="Details",detailsDiv.insertAdjacentElement("afterbegin",detailsHeader);var headline=document.createElement("h3");headline.innerText="Ihr Zimmer","German"!==language&&(headline.innerText="Your room"),newTile.insertAdjacentElement("afterbegin",headline),newTile.setAttribute("data-tile-for",roomData.roomId),newTile.setAttribute("data-uuid",roomData.uuid);var roomExtrasList=document.createElement("ul");roomExtrasList.className="room-extras";var totalRoomPrice=priceIsPoints?0:roomData.rateNumeric;if(BW.addedExtras&&BW.addedExtras.length>0){for(var i=0;i<BW.addedExtras.length;i++){var extra=BW.addedExtras[i];if(roomData.roomId===extra.roomId){var listItem=document.createElement("li"),extraTitle=decodeURI(extra.title);extraTitle=extraTitle.replace(/\+/g," "),listItem.innerText="+"+extra.quantity+" "+extraTitle,listItem.setAttribute("data-item-title",extraTitle),listItem.setAttribute("data-item-id",extra.id);var itemTotalNum,removeSpan=document.createElement("span");if(removeSpan.classList.add("remove-item"),removeSpan.classList.add("icon-cancel"),removeSpan.addEventListener("click",(function(evt){evt.preventDefault(),BW.removeItemsFromExtrasList(this)})),listItem.insertAdjacentElement("beforeend",removeSpan),roomExtrasList.insertAdjacentElement("beforeend",listItem),itemTotalNum="number"==typeof extra.price_total?extra.price_total:priceToNumber(extra.price_total),totalRoomPrice=parseFloat(totalRoomPrice)+itemTotalNum,priceIsPoints){var pointsText=" Punkte gesamt",extrasText=" Zimmer Extras",nightsText=" für "+roomData.nights+(roomData.nights>1?" Nächte":" Nacht");"German"!==language&&(pointsText=" Points total",extrasText=" Room extras",nightsText=" for "+roomData.nights+(roomData.nights>1?" nights":" night")),pointsPriceP.innerText=roomData.totalAmount+pointsText+nightsText,priceP.innerText=priceToString(totalRoomPrice)+extrasText}else{var nightsCnt=parseInt(roomData.nights);nightsText=" pro Zimmer und Nacht";nightsCnt>1&&(nightsText=" für "+nightsCnt+" Nächte"),"German"!==language&&(nightsText=" per room and night",nightsCnt>1&&(nightsText=" for "+nightsCnt+" nights")),priceP.innerText=priceToString(totalRoomPrice)+nightsText}"0"===extra.quantity&&"none"!==listItem.style.display&&(listItem.style.display="none")}}newTile.classList.add("has-extras")}detailsDiv.insertAdjacentElement("beforeend",roomExtrasList);var close=document.createElement("a");return close.classList.add("cancel"),close.classList.add("icon-cancel"),close.setAttribute("title","Zimmer löschen"),close.addEventListener("click",(function(evt){evt.preventDefault(),removeTile(newTile)})),newTile.insertAdjacentElement("afterbegin",close),newTile};BW.buildTileFromObj=buildTileFromObj;for(var addRoomRateToTile=function(evt){if(console.info("addRoomRateToTile:",evt),console.info("language:",language),"undefined"!=typeof hideNoRoomForMarkedRoomTypeCodeHint&&hideNoRoomForMarkedRoomTypeCodeHint(),evt.preventDefault(),targetElement){var roomSpecs=evt.target.closest("form"),roomType=roomSpecs.querySelector("h2").innerText,selectedRateOption=roomSpecs.querySelector(".rate-option.selected");if(!selectedRateOption.querySelector(".rate-not-available")){var adultCount=roomSpecs.querySelector(".adult-count input").value,childCount=roomSpecs.querySelector(".child-count input").value,rateType=selectedRateOption.querySelector(".rate").innerText,rateNumeric=(selectedRateOption.querySelector(".rate-tariff").innerText,selectedRateOption.querySelector(".price-tag").getAttribute("data-room-rate")),totalPriceTagEl=roomSpecs.querySelector(".total-price-tag"),totalPrice=totalPriceTagEl.innerText,nightsCount=document.getElementById("ss_nights").value,
277nightsText=" für "+nightsCount+(nightsCount>1?" Nächte":" Nacht");"German"!==language&&(nightsText=" for "+nightsCount+(nightsCount>1?" nights":" night"));var priceTotal,totalPriceTag=totalPrice+nightsText,payWithPointsPoints=totalPriceTagEl.getAttribute("data-paywithpointpoints"),totalPriceNumeric=totalPriceTagEl.getAttribute("data-total-price-tag"),priceTotalEl=(totalPriceTagEl.getAttribute("data-total-price-tag-normal"),roomSpecs.querySelector(".price-total"));priceTotalEl||(priceTotalEl=roomSpecs.querySelector(".price-per-night.bwr-points")),priceTotalEl.getAttribute("data-price-total")?priceTotal=priceTotalEl.getAttribute("data-price-total"):priceTotalEl.getAttribute("data-points-price-total")&&(priceTotal=priceTotalEl.getAttribute("data-points-price-total"));var currencySign=priceTotalEl.getAttribute("data-currency-sign");console.log("currencySign:",currencySign);var uuid=roomSpecs.querySelector(".total-price-tag").getAttribute("data-uuid"),pointsText=(BW.activeTiles.length," Punkte + ");if("German"!==language&&(pointsText=" Points + "),payWithPointsPoints>0){var reducedPriceNumeric=totalPriceNumeric;totalPriceTag=formatBWRPoints(payWithPointsPoints)+pointsText+currencySign+" "+twoDecimalPlaces(reducedPriceNumeric)+nightsText}var newTileObj={priceTag:totalPriceTag,rateType:rateType,rateNumeric:rateNumeric,totalPriceNumeric:totalPriceNumeric,adultCount:adultCount,childCount:childCount,roomType:roomType,roomId:activeRoomId,uuid:uuid,currencySign:currencySign,totalAmount:priceTotal,nights:nightsCount,payWithPointsPoints:payWithPointsPoints},newRoomItem={roomId:activeRoomId,uuid:uuid,adults:adultCount,children:childCount,currencySign:currencySign,payWithPointsPoints:payWithPointsPoints};if(isInRoomItems("roomId",activeRoomId)){var myRoomItems=[];BW.roomItems.forEach((function(item,index){item.roomId!==activeRoomId&&myRoomItems.push(item)})),myRoomItems.push(newRoomItem),BW.roomItems=myRoomItems;var myActiveTiles=[];BW.activeTiles.forEach((function(item,index){item.roomId!==activeRoomId&&myActiveTiles.push(item)})),myActiveTiles.push(newTileObj),BW.activeTiles=myActiveTiles}else BW.roomItems.push(newRoomItem),BW.roomItemsNoExtras.push(newRoomItem),BW.activeTiles.push(newTileObj);storeBWData("roomItems",BW.roomItems),storeBWData("roomItemsNoExtras",BW.roomItemsNoExtras),storeBWData("activeTiles",BW.activeTiles),refreshTiles(occupancyFromJSON=!1)}}},i=0;i<addRoomRateButtons.length;i++){var addRoomRateBtn=addRoomRateButtons[i];addRoomRateBtn.classList.contains("hasEventListener")||(otherHotelInBasket&&""!==otherHotelInBasket.trim()?addRoomRateBtn.addEventListener("click",(function(evt){if(evt.preventDefault(),otherHotelInBasket&&""!==otherHotelInBasket.trim()){var confirmBoxHtml=otherHotelInBasket;Confirm.render(confirmBoxHtml,(function(){otherHotelInBasket=null,addRoomRateToTile(evt)}),(function(){var linkToBookingCart=document.querySelector("#bookingCartIndicator a");console.log("linkToBookingCart:",linkToBookingCart),"#"!==linkToBookingCart.getAttribute("href")&&(console.log("Warenkorb anzeigen"),linkToBookingCart.click())}))}else addRoomRateToTile(evt)})):addRoomRateBtn.addEventListener("click",addRoomRateToTile),addRoomRateBtn.classList.add("hasEventListener"))}}},CustomAlert=function(){this.render=function(dialog,showfooter,height){window.innerWidth;var winH=window.innerHeight;if(!document.getElementById("dialogbox")){var dialogoverlay=document.createElement("div");dialogoverlay.id="dialogoverlay";var dialogbox=document.createElement("div");dialogbox.id="dialogbox";var innerDiv=document.createElement("div");height&&(innerDiv.style.height=height+"px");var dialogboxbody=document.createElement("div");dialogboxbody.id="dialogboxbody",dialogboxbody.setStyle("text-align","center"),innerDiv.insertAdjacentElement("beforeend",dialogboxbody);var dialogboxfoot=document.createElement("div");dialogboxfoot.id="dialogboxfoot",dialogboxfoot.setStyle("position","absolute"),dialogboxfoot.setStyle("bottom","0"),dialogboxfoot.setStyle("left","43%"),dialogboxfoot.setStyle("transform","translate(0, -50%)"),innerDiv.insertAdjacentElement("beforeend",dialogboxfoot),dialogbox.insertAdjacentElement("beforeend",innerDiv),document.body.insertAdjacentElement("beforeend",dialogoverlay),document.body.insertAdjacentElement("beforeend",dialogbox)}
277document.getElementById("dialogoverlay").style.display="block",document.getElementById("dialogoverlay").style.height=winH+"px",document.getElementById("dialogbox").style.display="block",document.getElementById("dialogboxbody").innerHTML=dialog,document.getElementById("dialogboxfoot").innerHTML=showfooter?'<button onclick="Alert.ok()">OK</button>':""},this.ok=function(){document.getElementById("dialogbox").remove(),document.getElementById("dialogoverlay").remove()}},CustomConfirm=function(){this.callbackFnYes,this.callbackFnNo,this.render=function(dialog,callbackYes,callbackNo){this.callbackFnYes=callbackYes,this.callbackFnNo=callbackNo;window.innerWidth;var winH=window.innerHeight,dialogoverlay=document.createElement("div");dialogoverlay.id="dialogoverlay";var dialogbox=document.createElement("div");dialogbox.id="dialogbox";var innerDiv=document.createElement("div"),dialogboxbody=document.createElement("div");dialogboxbody.id="dialogboxbody",innerDiv.insertAdjacentElement("beforeend",dialogboxbody);var dialogboxfoot=document.createElement("div");dialogboxfoot.id="dialogboxfoot",innerDiv.insertAdjacentElement("beforeend",dialogboxfoot),dialogbox.insertAdjacentElement("beforeend",innerDiv),document.body.insertAdjacentElement("beforeend",dialogoverlay),document.body.insertAdjacentElement("beforeend",dialogbox),dialogoverlay.style.display="block",dialogoverlay.style.height=winH+"px",dialogbox.style.display="block",document.getElementById("dialogboxbody").innerHTML=dialog,document.getElementById("dialogboxfoot").innerHTML='<button onclick="Confirm.no()">'+otherHotelInBasketShowCart+'</button> <button onclick="Confirm.yes()">'+otherHotelInBasketContinue+"</button>"},this.no=function(evt){this.callbackFnNo(),document.getElementById("dialogbox").remove(),document.getElementById("dialogoverlay").remove()},this.yes=function(evt){console.log("callbackFnYes:",this.callbackFnYes),this.callbackFnYes(),document.getElementById("dialogbox").remove(),document.getElementById("dialogoverlay").remove()}},Confirm=new CustomConfirm,Alert=new CustomAlert,numberWithThousandsSeparator=function(x){return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")},buildTileFromCurrentBookingCartObject=function(roomData,index){console.log("buildTileFromCurrentBookingCartObject - roomData:",roomData);var priceIsPoints=!1,totalRoomPrice=0,newTile=document.createElement("div");if(newTile.className="tile","BWRP"===roomData.currencyCode){var pointsPriceP=document.createElement("p");pointsPriceP.className="price-points",pointsPriceP.setAttribute("data-currency-sign","BWRP"),pointsPriceP.innerText=roomData.priceTag,newTile.insertAdjacentElement("afterbegin",pointsPriceP),(priceP=document.createElement("p")).className="price",priceP.setAttribute("data-room-rate","0,00"),priceP.setAttribute("data-total-price","0,00"),priceP.setAttribute("data-currency-sign","â¬"),priceP.setAttribute("data-nights",roomData.nights),newTile.insertAdjacentElement("afterbegin",priceP),priceIsPoints=!0}else{var priceP;(priceP=document.createElement("p")).className="price",priceP.setAttribute("data-room-rate",twoDecimalPlaces(roomData.singleAmountPerNight)),null!=roomData.payWithPointsPoints&&priceP.setAttribute("data-paywithpointpoints",roomData.payWithPointsPoints),totalRoomPrice=roomData.totalAmount,priceP.setAttribute("data-total-price",twoDecimalPlaces(totalRoomPrice)),priceP.setAttribute("data-nights",roomData.nights),newTile.insertAdjacentElement("afterbegin",priceP)}var nightsText=" für "+roomData.nights+(roomData.nights>1?" Nächte":" Nacht");console.log("language:",language),"German"!==language&&(nightsText=" for "+roomData.nights+(roomData.nights>1?" nights":" night"));var detailsDiv=document.createElement("div");detailsDiv.className="rate-details",newTile.insertAdjacentElement("afterbegin",detailsDiv),detailsDiv.addEventListener("click",(function(evt){evt.preventDefault(),this.classList.toggle("open")}));var personsP=document.createElement("p");personsP.className="persons";var adultTxt=roomData.adults>1?" Erwachsene":" Erwachsene(r)",childrenTxt=roomData.children>1?" Kinder":" Kind";"German"!==language&&(adultTxt=roomData.adults>1?" Adults":" Adult",childrenTxt=roomData.children>1?" Children":" Child"),personsP.innerHTML=roomData.adults+adultTxt+(parseInt(roomData.children)>0?", "+roomData.children+childrenTxt:""),personsP.setAttribute("data-adults",roomData.adults),personsP.setAttribute("data-children",roomData.children),detailsDiv.insertAdjacentElement("afterbegin",personsP);var typeP=document.createElement("p");typeP.className="type",typeP.innerText=roomData.roomType,detailsDiv.insertAdjacentElement("afterbegin",typeP);var detailsHeader=document.createElement("h6");detailsHeader.innerText="Details",detailsDiv.insertAdjacentElement("afterbegin",detailsHeader);var headline=document.createElement("h3");if(headline.innerText="Ihr Zimmer","German"!==language&&(headline.innerText="Your room"),newTile.insertAdjacentElement("afterbegin",headline),newTile.setAttribute("id",roomData.roomId),newTile.setAttribute("data-tile-for","room_"+(index+1)),newTile.setAttribute("data-uuid",roomData.uuid),roomData.additionalServices&&roomData.additionalServices.length>0){var roomExtrasList=document.createElement("ul");roomExtrasList.className="room-extras",roomData.additionalServices.forEac
277h((function(extra){var extraPrice=calculatePriceForExtras(extra.price,extra.price_type,extra.quantity,roomData.adults);totalRoomPrice+=extraPrice;var listItem=document.createElement("li"),extraTitle=extra.title;if(-1!=extra.title.indexOf('"GERMAN" = {')){var jObj=valueToJSONObject(extra.title);extraTitle="English"==language?jObj.ENGLISH:jObj.GERMAN}listItem.innerText="+"+extra.quantity+" "+extraTitle,listItem.setAttribute("data-item-title",extraTitle),listItem.setAttribute("data-item-id",extra.id);var removeSpan=document.createElement("span");removeSpan.classList.add("remove-item"),removeSpan.classList.add("icon-cancel"),removeSpan.addEventListener("click",(function(evt){evt.preventDefault(),BW.removeItemsFromExtrasList(this)})),listItem.insertAdjacentElement("beforeend",removeSpan),roomExtrasList.insertAdjacentElement("beforeend",listItem),"0"===extra.quantity&&"none"!==listItem.style.display&&(listItem.style.display="none");var extraObj={title:extraTitle,quantity:extra.quantity,price_total:extraPrice,price_txt:extra.price_txt,price:extra.price,id:extra.id,roomId:roomData.roomId,uuid:roomData.uuid},found=!1;BW.addedExtras.length>0?(BW.addedExtras.forEach((function(bwExtra){bwExtra.uuid===roomData.uuid&&bwExtra.roomId===roomData.roomId&&bwExtra.id===extra.id&&(found=!0)})),found||BW.addedExtras.push(extraObj)):BW.addedExtras.push(extraObj)})),newTile.classList.add("has-extras"),detailsDiv.insertAdjacentElement("beforeend",roomExtrasList)}var totalPriceTag=priceToString(totalRoomPrice)+nightsText,pointsText=" Punkte + ";if("German"!==language&&(pointsText=" Points + "),roomData.payWithPointsPoints>0){priceToString(totalRoomPrice);totalPriceTag=formatBWRPoints(roomData.payWithPointsPoints)+pointsText+priceToString(totalRoomPrice)+nightsText}if(priceIsPoints){pointsText=" Punkte gesamt";var extrasText=" Zimmer Extras";"German"!==language&&(pointsText=" Points total",extrasText=" Room extras");var totalPoints=numberWithThousandsSeparator(roomData.singleAmountPerNight*roomData.nights);pointsPriceP.innerText=totalPoints+pointsText+nightsText,priceP.innerText=priceToString(totalRoomPrice)+extrasText}else priceP.innerText=totalPriceTag;var close=document.createElement("a");close.classList.add("cancel"),close.classList.add("icon-cancel"),close.setAttribute("title","Zimmer löschen"),close.addEventListener("click",(function(evt){evt.preventDefault(),BW.removeTile(newTile)})),newTile.insertAdjacentElement("afterbegin",close);var newTileObj={priceTag:totalPriceTag,rateType:"",rateNumeric:roomData.singleAmountPerNight,totalPriceNumeric:totalRoomPrice,adultCount:roomData.adults,childCount:roomData.children,roomType:roomData.roomType,roomId:roomData.roomId,uuid:roomData.uuid,currencySign:roomData.currencyCode,totalAmount:roomData.totalAmount,nights:roomData.nights,payWithPointsPoints:roomData.payWithPointsPoints},found=!1;return BW.activeTiles.length>0?(BW.activeTiles.forEach((function(activeTile){activeTile.uuid===roomData.uuid&&activeTile.roomId===roomData.roomId&&(found=!0)})),found||BW.activeTiles.push(newTileObj)):BW.activeTiles.push(newTileObj),storeBWData("activeTiles",BW.activeTiles),storeBWData("addedExtras",BW.addedExtras),newTile},buildRoomItemFromCurrentBookingCartObject=function(roomData){console.log("buildRoomItemFromCurrentBookingCartObject - roomData:",roomData),roomData.additionalServices&&roomData.additionalServices.length>0&&roomData.additionalServices.forEach((function(extra){extra.title=extra.title.replace(/&#{0,1}[a-z0-9]+;/gi,""),extra.price_txt=extra.price_txt.replace(/€/g,"â¬"),extra.price_txt=extra.price_txt.replace(/&#{0,1}[a-z0-9]+;/gi,""),delete extra.currencySignHTML}));var roomItem={adults:roomData.adults,children:roomData.children,roomId:roomData.roomId,uuid:roomData.uuid,currencySign:roomData.currencyCode,extras:roomData.additionalServices,payWithPointsPoints:roomData.payWithPointsPoints},roomItemNoExtras={adults:roomData.adults,children:roomData.children,roomId:roomData.roomId,uuid:roomData.uuid,currencySign:roomData.currencyCode};if(0===BW.roomItems.length)BW.roomItems.push(roomItem);else{var found=!1;
277BW.roomItems.forEach((function(item){item.uuid===roomData.uuid&&item.roomID===roomData.roomId&&(found=!0)})),found||BW.roomItems.push(roomItem)}if(0===BW.roomItemsNoExtras.length)BW.roomItemsNoExtras.push(roomItemNoExtras);else{found=!1;BW.roomItemsNoExtras.forEach((function(item){item.uuid===roomData.uuid&&item.roomID===roomData.roomId&&(found=!0)})),found||BW.roomItemsNoExtras.push(roomItemNoExtras)}storeBWData("roomItems",BW.roomItems),storeBWData("roomItemsNoExtras",BW.roomItemsNoExtras),BW.bookedRooms=BW.roomItems},showTilesWithCurrentBookingCartWasCalled=!1,showTilesWithCurrentBookingCart=function(currentBookingCartJSON){if(console.info("showTilesWithCurrentBookingCart - currentBookingCartJSON:",currentBookingCartJSON),!0!==showTilesWithCurrentBookingCartWasCalled){var selectExtras,tileContainers=document.querySelectorAll(".select-three-rooms > div");if(tileContainers.forEach((function(container){var firstTile=container.querySelector(".tile");firstTile.classList.contains("default")||container.removeChild(firstTile)})),void 0!==currentBookingCartJSON&¤tBookingCartJSON.length>0){for(var i=0;i<currentBookingCartJSON.length;i++){var tile=buildTileFromCurrentBookingCartObject(currentBookingCartJSON[i],i),box=tileContainers[i];box.getAttribute("id");box.querySelector(".tile.default").classList.add("hidden"),box.classList.add("selected-room"),box.insertAdjacentElement("afterbegin",tile),buildRoomItemFromCurrentBookingCartObject(currentBookingCartJSON[i])}var roomIdFromQuery=getURLParam("roomid"),showExtrasFromQuery=getURLParam("showextras");roomIdFromQuery?setActiveTile(roomIdFromQuery,showExtrasFromQuery):setActiveTile("room_"+currentBookingCartJSON.length)}if(showButtonsForBasket(),"undefined"!=typeof hotelExtrasJSON&&hotelExtrasJSON){if(0===("German"!==BW.language?hotelExtrasJSON.EN:hotelExtrasJSON.DE).length)(selectExtras=document.getElementById("select-extras"))&&(selectExtras.style.display="none"),document.querySelectorAll(".select-three-rooms .add-extras").forEach((function(addExtras){addExtras.style.display="none"})),showRateSelectionHideExtras()}else(selectExtras=document.getElementById("select-extras"))&&(selectExtras.style.display="none"),document.querySelectorAll(".select-three-rooms .add-extras").forEach((function(addExtras){addExtras.style.display="none"})),showRateSelectionHideExtras();showTilesWithCurrentBookingCartWasCalled=!0}},checkAvailableRates=function(){for(var roomContainers=document.querySelectorAll(".room-container"),rateFromQuery=getURLParam("preSelectedRatePlanCode"),i=0;i<roomContainers.length;i++){for(var roomTotal,availableRateFound=!1,firstAvailableRateIndex=-1,roomContainer=roomContainers[i],myRateOptionDivs=roomContainer.querySelectorAll(".rate-option:not(.disabled)"),j=0;j<myRateOptionDivs.length;j++){var rateOption=myRateOptionDivs[j],rateNotAvailable=rateOption.querySelector(".rate-not-available"),rateNotEnoughPoints=rateOption.querySelector(".pwp-not-enough-points"),radioBtn=rateOption.querySelector("input[type=radio]");rateNotAvailable&&(rateOption.classList.remove("selected"),rateOption.classList.add("disabled"),radioBtn.disabled=!0),rateNotEnoughPoints&&(rateOption.classList.remove("selected"),rateOption.classList.add("pwp-not-enough-points"),radioBtn.disabled=!0);var rateOptionRatePlanCode=rateOption.getAttribute("data-rateplan-code");if(rateOptionRatePlanCode&&(rateOptionRatePlanCode=rateOptionRatePlanCode.toLowerCase()),rateFromQuery&&rateOptionRatePlanCode===rateFromQuery&&!rateOption.classList.contains("disabled")&&(console.log("rateOption 2:",rateOption),setRateOptionSelected({target:rateOption}),availableRateFound=!0),rateOption.classList.contains("disabled")||(-1===firstAvailableRateIndex&&(firstAvailableRateIndex=j),rateOption.classList.contains("selected")&&(availableRateFound=!0)),!rateOption.classList.contains("disabled"))radioBtn.addEventListener("click",setRateOptionSelected,this.target),rateOption.querySelector("label").addEventListener("click",setRateOptionSelected,this.target)}if(!availableRateFound)if(-1===firstAvailableRateIndex)(roomTotal=roomContainer.querySelector(".selected-room-total"))&&hide(roomTotal);else setRateOptionSelected({target:myRateOptionDivs[firstAvailableRateIndex]}),(roomTotal=roomContainer.querySelector(".selected-room-total"))&&!isVisible(roomTotal)&&show(roomTotal)}},initRateOptionSelection=function(){var roomContainers=document.querySelectorAll(".room-container"),rateOptionDivs=document.querySelectorAll(".rate-option");if(!(roomContainers.length<=0||rateOptionDivs.length<=0)){var selectExtras;if("undefined"!=typeof currentBookingCartJSON&¤tBookingCartJSON.length>0&&showTilesWithCurrentBookingCart(currentBookingCartJSON),checkAvailableRates(),document.querySelectorAll(".select-three-rooms .tile.default h4").forEach((function(plusIcon,index){plusIcon.classList.contains("eventAttached")||(plusIcon.addEventListener("click",(function(evt){evt.preventDefault(),showRateSelectionHideExtras();var roomList,roomId=evt.target.closest(".tile-container").getAttribute("id");"room_1"!==roomId?isInRoomItems("roomId","room_2"===roomId?"room_1":"room_2")&&(setActiveTile(roomId),setTileText(plusIcon),(roomList=document.querySelector(".select-a-rate"))&&window.scrollTo({top:roomList.offsetTop-150,left:0,behavior:"smooth"})):(roomList=document.querySelector(".select-a-rate"))&&window.scrollTo({top:roomList.offsetTop-150,left:0,behavior:"smooth"})})),plusIcon.classList.add("eventAttached"))})),showButtonsForBasket(),"undefined"!=typeof hotelExtrasJSON&&hotelExtrasJSON){if(0===("German"!==BW.language?hotelExtrasJSON.EN:hotelExtrasJSON.DE).length)(selectExtras=document.getElementById("select-extras"))&&(selectExtras.style.display="none"),document.querySelectorAll(".select-three-rooms .add-extras").forEach((function(addExtras){addExtras.style.display="none"}))}else(selectExtras=document.getElementById("select-extras"))&&(selectExtras.style.display="none"),document.querySelectorAll(".select-three-rooms .add-extras").forEach((function(addExtras){addExtras.style.display="none"}));checkTilesForPayWithPointsRates(activeRoomId)}},setTileText=function(h4element){var tile=h4element.parentElement,containers=(tile.closest(".select-three-rooms"),tile.closest(".select-three-rooms").querySelectorAll(".tile-container")),defaultHTML='Zimmer hinzufügen <span class="icon-plus"></span>',chooseRoomHtml_1="Bitte wählen Sie <strong>Zimmer ",chooseRoomHtml_2="</strong> aus.";"German"!==language&&(defaultHTML='Add a room <span class="icon-plus"></span>',chooseRoomHtml_1="Please choose <strong>room ",chooseRoomHtml_2="</strong>
277."),containers.forEach((function(container,index){if(!container.classList.contains("selected-room"))if(container.classList.contains("active")&&container===tile.parentElement){var roomNum=index+1 278;h4element.innerHTML=chooseRoomHtml_1+roomNum+chooseRoomHtml_2}else container.querySelector(".tile.default h4").innerHTML=defaultHTML}))},inactiveRoomClickHandler=function(evt){var tileContainerId,target=evt.target,showExtras="false";tileContainerId=target.classList.contains("selected-room")?target.getAttribute("id"):target.closest(".selected-room").getAttribute("id"),target.classList.contains("add-extras")&&(showExtras="true"),setActiveTile(tileContainerId,showExtras)},reloadRoomList=function(activeRoomId,roomId){var adultsFromNew,childrenFromNew,adultsFromActive,childrenFromActive;if(!document.getElementById(activeRoomId).querySelector(".tile").classList.contains("default")&&"undefined"!=typeof roomOccupancy){var data=JSON.parse(roomOccupancy),numId=parseInt(roomId.substring(5)),index=numId-1;0===(adultsFromNew=data[index]["adults"+numId])&&(adultsFromNew=1),childrenFromNew=data[index]["children"+numId];var actId=parseInt(activeRoomId.substring(5)),index2=actId-1;if(adultsFromActive=data[index2]["adults"+actId],childrenFromActive=data[index2]["children"+actId],updateRoomListURL&&(adultsFromActive!==adultsFromNew||childrenFromActive!==childrenFromNew)){var url=updateRoomListURL+"?roomId="+roomId;adultsForRoomList=adultsFromNew,childrenForRoomList=childrenFromNew,loadLinkInsideRoomList(url,!1)}}},setPayWithPointsRatesStatus=function(activate){console.info("setPayWithPointsRatesStatus - "+activate);var roomContainers=document.querySelectorAll(".room-container"),rateOptionDivs=document.querySelectorAll(".rate-option");if(!(roomContainers.length<=0||rateOptionDivs.length<=0))for(var i=0;i<roomContainers.length;i++)for(var myRateOptionDivs=roomContainers[i].querySelectorAll(".rate-option"),j=0;j<myRateOptionDivs.length;j++){var rateOption=myRateOptionDivs[j],ratePlanType=rateOption.getAttribute("data-rateplan-code"),radioBtn=rateOption.querySelector("input[type=radio]");if("FX2"==ratePlanType&&!rateOption.classList.contains("pwp-not-enough-points")){var pwpWarning=rateOption.querySelector(".pwp-not-available"),optionLabel=rateOption.querySelector("label");activate?(rateOption.classList.remove("disabled"),radioBtn.disabled=!1,radioBtn.addEventListener("click",setRateOptionSelected,this.target),optionLabel.addEventListener("click",setRateOptionSelected,this.target),pwpWarning&&pwpWarning.setStyle("display","none")):(rateOption.classList.remove("selected"),rateOption.classList.add("disabled"),radioBtn.disabled=!0,radioBtn.removeEventListener("click",setRateOptionSelected),optionLabel.removeEventListener("click",setRateOptionSelected),pwpWarning&&pwpWarning.setStyle("display","block"))}}},setRateOptionSelected=function(obj){var target=obj.target;if(target){for(var roomSpecsContainer=target.closest(".right-room-specs"),rateOptions=roomSpecsContainer.querySelectorAll(".rate-option"),selectedRateOption=target.closest(".rate-option"),i=0;i<rateOptions.length;i++)rateOptions[i]===selectedRateOption?(rateOptions[i].classList.add("selected"),selectedRateOption=rateOptions[i]):rateOptions[i].classList.remove("selected");if(target.classList.contains("rate-option"))target.querySelector("input[type=radio]").checked=!0;var priceTag=selectedRateOption.querySelector(".price-tag"),totalPriceTag=roomSpecsContainer.querySelector(".total-price-tag"),priceTotalDiv=selectedRateOption.querySelector(".price-total");priceTotalDiv||(priceTotalDiv=selectedRateOption.querySelector(".price-per-night.bwr-points")),priceTotalDiv||(priceTotalDiv=selectedRateOption.querySelector(".price-per-night.bwr-paywithpoints"));var selectedRoomTotal=roomSpecsContainer.querySelector(".selected-room-total");if(priceTotalDiv){var currencySign="",uuid=priceTotalDiv.getAttribute("data-uuid");priceTotalDiv.classList.contains("bwr-points")?currencySign="BWRP":"EUR"===(currencySign=priceTotalDiv.getAttribute("data-currency-sign"))&&(currencySign="â¬")}if(priceTag&&totalPriceTag&&priceTotalDiv&&uuid){var addRoomRateButton=$(priceTotalDiv.getAttribute("data-addroomratebuttonid")),openPayWithPointsSliderButton=$(priceTotalDiv.getAttribute("data-openpaywithpointssliderbuttonid"));if(priceTag.classList.contains("paywithpoints")){var pointsPriceNumeric=priceTotalDiv.getAttribute("data-points-price-total"),priceNumeric=parseFloat(priceTotalDiv.getAttribute("data-price-total")),priceNumericNormal=parseFloat(priceTotalDiv.getAttribute("data-price-total-normal")),priceSingleNumericNormal=parseFloat(priceTotalDiv.getAttribute("data-price-single-normal")),pointsText=" Punkte",fromText="ab";"German"!==language&&(pointsText=" Points",fromText="from");var nights=priceTotalDiv.getAttribute("data-nights"),totalPrice=priceNumeric;priceTag.setAttribute("data-room-rate",twoDecimalPlaces(priceNumeric)),totalPriceTag.innerText=fromText+" 5.000 "+pointsText+" + "+currencySign+" "+twoDecimalPlaces(totalPrice),totalPriceTag.setAttribute("data-total-price-tag",twoDecimalPlaces(totalPrice)),totalPriceTag.setAttribute("data-total-price-tag-normal",priceNumericNormal),totalPriceTag.setAttribute("data-single-price-tag-normal",priceSingleNumericNormal),totalPriceTag.setAttribute("data-paywithpointpoints",5e3),totalPriceTag.setAttribute("data-uuid",uuid),totalPriceTag.setAttribute("data-nights",nights),addRoomRateButton.style.display="none",openPayWithPointsSliderButton.style.display="block",selectedRoomTotal.addClass("selected-room-pwp")}else if(priceTag.classList.contains("points")){pointsPriceNumeric=priceTotalDiv.getAttribute("data-points-price-total"),pointsText=" Punkte";"German"!==language&&(pointsText=" Points"),priceTag.setAttribute("data-room-rate",pointsPriceNumeric),totalPriceTag.innerText=numberWithThous
278andsSeparator(pointsPriceNumeric)+pointsText,totalPriceTag.setAttribute("data-paywithpointpoints",0),totalPriceTag.setAttribute("data-uuid",uuid),addRoomRateButton.style.display="block",openPayWithPointsSliderButton.style.display="none",selectedRoomTotal.removeClass("selected-room-pwp")}else{priceNumeric=parseFloat(priceTotalDiv.getAttribute("data-price-total"));priceTag.setAttribute("data-room-rate",twoDecimalPlaces(priceNumeric));totalPrice=priceNumeric;totalPriceTag.innerText=currencySign+" "+twoDecimalPlaces(totalPrice),totalPriceTag.setAttribute("data-total-price-tag",twoDecimalPlaces(totalPrice)),totalPriceTag.setAttribute("data-paywithpointpoints",0),totalPriceTag.setAttribute("data-uuid",uuid),addRoomRateButton.style.display="block",openPayWithPointsSliderButton.style.display="none",selectedRoomTotal.removeClass("selected-room-pwp")}}}};BW.setRateOptionSelected=setRateOptionSelected;var checkTilesForPayWithPointsRates=function(roomId){var activatePayWithPoints=!0;document.querySelectorAll(".select-three-rooms .tile-container").forEach((function(box){var boxTileId=box.getAttribute("id");if(price=box.querySelector(".price"),boxTileId===roomId);else if(payWithPointsRateInBackground)activatePayWithPoints=!1;else if(null!=price&&price.getAttribute("data-paywithpointpoints")){parseInt(price.getAttribute("data-paywithpointpoints"))>0&&(activatePayWithPoints=!1)}})),setPayWithPointsRatesStatus(!!activatePayWithPoints),checkAvailableRates()},setActiveTile=function(roomId,showExtras){checkTilesForPayWithPointsRates(roomId),document.querySelectorAll(".select-three-rooms .tile-container").forEach((function(box){box.getAttribute("id")===roomId?(box.classList.remove("inactive"),box.classList.add("active"),box.removeEventListener("click",inactiveRoomClickHandler),showExtras&&"true"===showExtras?(box.classList.add("pick-extras"),box.querySelector(".add-extras").click()):showRateSelectionHideExtras()):(box.classList.remove("pick-extras"),box.classList.remove("active"),box.classList.add("inactive"),box.classList.contains("selected-room")?box.addEventListener("click",inactiveRoomClickHandler):setTileText(box.querySelector("h4")))})),activeRoomId!==roomId&&reloadRoomList(activeRoomId,roomId),activeRoomId=roomId},setInitialTileText=function(){var totalRooms=getRoomOccupancyData().roomsCnt;totalRooms>1&&document.querySelectorAll(".select-three-rooms .tile.default h4").forEach((function(tileHeader,index){if(0!==index&&index<totalRooms){var roomNumber=index+1,headerContent="Bitte wählen Sie <strong>Zimmer "+roomNumber+"</strong> aus.";"German"!==language&&(headerContent="Please choose <strong>room "+roomNumber+"</strong>."),tileHeader.innerHTML=headerContent}}))},BWSlider=new Class({Implements:[Events,Options],Binds:["clickedElement","draggedKnob","scrolledElement"],options:{onTick:function(position){this.setKnobPosition(position)},initialStep:0,snap:!1,offset:0,range:!1,wheel:!1,steps:100,mode:"horizontal"},initialize:function(element,knob,options){this.setOptions(options),options=this.options,this.element=document.id(element),knob=this.knob=document.id(knob),this.previousChange=this.previousEnd=this.step=-1;var limit={},modifiers={x:!1,y:!1};switch(options.mode){case"vertical":this.axis="y",this.property="top",this.offset="offsetHeight";break;case"horizontal":this.axis="x",this.property="left",this.offset="offsetWidth"}this.setSliderDimensions(),this.setRange(options.range),"static"==knob.getStyle("position")&&knob.setStyle("position","relative"),knob.setStyle(this.property,-options.offset),modifiers[this.axis]=this.property,limit[this.axis]=[-options.offset,this.full-options.offset];var dragOptions={snap:0,limit:limit,modifiers:modifiers,onDrag:this.draggedKnob,onStart:this.draggedKnob,onBeforeStart:function(){this.isDragging=!0}.bind(this),onCancel:function(){this.isDragging=!1}.bind(this),onComplete:function(){this.isDragging=!1,this.draggedKnob(),this.end()}.bind(this)};options.snap&&this.setSnap(dragOptions),this.drag=new Drag(knob,dragOptions),this.attach(),null!=options.initialStep&&this.set(options.initialStep)},attach:function(){return this.element.addEvent("mousedown",this.clickedElement),this.options.wheel&&this.element.addEvent("mousewheel",this.scrolledElement),this.drag.attach(),this},detach:function(){return this.element.removeEvent("mousedown",this.clickedElement).removeEvent("mousewheel",this.scrolledElement),this.drag.detach(),this},autosize:function(){return this.setSliderDimensions().setKnobPosition(this.toPosition(this.step)),this.drag.options.limit[this.axis]=[-this.options.offset,this.full-this.options.offset],this.options.snap&&this.setSnap(),this},setSnap:function(options){return options||(options=this.drag.options),options.grid=Math.ceil(this.stepWidth),options.limit[this.axis][1]=this.full,this},setKnobPosition:function(position){return this.options.snap&&(position=this.toPosition(this.step)),this.knob.setStyle(this.property,position),this},setSliderDimensions:function(){return this.full=this.element.measure(function(){return this.half=this.knob[this.offset]/2,this.element[this.offset]-this.knob[this.offset]+2*this.options.offset}.bind(this)),this},setChanged:function(step){return this.range>0^step<this.min||(step=this.min),this.range>0^step>this.max||(step=this.max),this.step=Math.round(step),this.previousChange!=step&&(this.previousChange=step),this.fireEvent("tick",this.toPosition(this.step)).end()},set:function(step){return this.range>0^step<this.min||(step=this.min),this.range>0^step>this.max||(step=this.max),this.step=Math.round(step),this.checkStep().fireEvent("tick",this.toPosition(this.step)).end()},setRange:function(range,pos){return this.min=Array.pick([range[0],0]),this.max=Array.pick([range[1],this.options.steps]),this.range=this.max-this.min,this.steps=this.options.steps||this.full,this.stepSize=Math.abs(this.range)/this.steps,this.stepWidth=this.stepSize*this.full/Math.abs(this.range),range&&this.set(Array.pick([pos,this.step]).limit(this.min,this.max)),this},clickedElement:function(event){if(!this.isDragging&&event.target!=this.knob){var dir=this.range<0?-1:1,position=event.page[this.axis]-this.element.getPosition()[this.axis]-this.half;position=position.limit(-this.options.offset,this.full-this.options.offset),this.step=Math.round(this.min+dir*this.toStep(position)),this.checkStep().fireEvent("tick",position).end()}},scrolledElement:function(event){var mode="horizontal"==this.options.mode?event.wheel<0:event.wheel>0;this.set(this.step+(mode?-1:1)*this.stepSize),event.stop()},draggedKnob:function(){var dir=this.range<0?-1:1,position=this.drag.value.now[this.axis];position=position.limit(-this.options.offset,this.full-this.options.offset),this.step=Math.round(this.min+dir*this.toStep(position)),this.checkStep()},checkStep:function(){var step=this.step;return this.previousChange!=step&&(this.previousChange=step,this.fireEvent("change",step)),this},end:function(){var step=this.step;return this.previousEnd!==step&&(this.previousEnd=step,this.fireEvent("complete",step+"")),this},toStep:function(position){return(position+this.options.offset)*this.stepSize/this.full*this.steps},toPosition:function(step){return this.full*Math.abs(this.min-step)/(this.steps*this.stepSize)-this.options.offset}});function formatBWRPoints(value){return new Intl.NumberFormat("de-DE").format(value)}var itemIsInAddedExtras=function(extra){return BW.addedExtras.forEach((function(item){if(extra.id===item.id&&extra.roomId===item.roomId)return!0})),!1},updateExtrasListForSelectedRoom=function(roomId){console.info("updateSelectedRoomExtras",roomId);var selectedRoom=document.getElementById(roomId);console.log("selectedRoom:",selectedRoom);selectedRoom.querySelector(".tile");var priceIsPoints=!1,roomPriceP=selectedRoom.querySelector("p.price"),roomPrice=roomPriceP.getAttribute("data-total-price"),totalRoomPrice=0,pointsPriceP=roomPriceP.nextElementSibling,nightsCnt=parseInt(roomPriceP.getAttribute("data-nights")),payWithPointsPoints=roomPriceP.getAttribute("data-paywithpointpoints"),currencySign=roomPriceP.getAttribute("data-currency-sign"),extrasText=" Zimmer Extras",priceText=" pro Zimmer und Nacht";if(nightsCnt>1&&(priceText=" für "+nightsCnt+" Nächte"),"German"!==language&&(extrasText=" Room extras",priceText=" per Room and Night",nightsCnt>1&&(priceText=" for "+nightsCnt+" nights")),pointsPriceP||-1===roomPrice.indexOf("Punkte"))if(pointsPriceP)roomPriceP.innerText=roomPrice+extrasText,priceIsPoints=!0;else if(totalRoomPrice=roomPrice,console.log("payWithPointsPoints:",payWithPointsPoints),payWithPointsPoints>0){var pointsText=" Punkte + ";"German"!==language&&(pointsText=" Points + ");var payWithPointsPriceTag=formatBWRPoints(payWithPointsPoints)+pointsText+currencySign+" "+twoDecimalPlaces(totalRoomPrice)+priceText;roomPriceP.innerText=payWithPointsPriceTag}else roomPriceP.innerText="⬠"+totalRoomPrice+priceText;else{if(!selectedRoom.querySelector(".price-points"))(pointsPriceP=document.createElement("p")).className="price-points",pointsPriceP.innerText=roomPrice+extrasText,roomPriceP.insertAdjacentElement("afterend",pointsPriceP);priceIsPoints=!0}var roomExtrasList=selectedRoom.querySelector("ul.room-extras");if(roomExtrasList)for(var listItems=roomExtrasList.querySelectorAll("li"),i=0;i<listItems.length;i++)listItems[i].remove();else(roomExtrasList=document.createElement("ul")).className="room-extras",selectedRoom.querySelector(".rate-details").insertAdjacentElement("afterend",roomExtrasList);if(BW.addedExtras&&BW.addedExtras.length>0)for(i=0;i<BW.addedExtras.length;i++){var extra=BW.addedExtras[i];if(roomId===extra.roomId){var listItem=document.createElement("li"),extraTitle=decodeURI(extra.title);extraTitle=extraTitle.replace(/\+/g," "),listItem.innerText="+"+extra.quantity+" "+extraTitle,listItem.setAttribute("data-item-title",extra.title),listItem.setAttribute("data-item-id",extra.id);var itemTotalNum,removeSpan=document.createElement("span");if(removeSpan.classList.add("remove-item"),removeSpan.classList.add("icon-cancel"),removeSpan.addEventListener("click",(function(evt){evt.preventDefault(),removeItemsFromExtrasList(this)})),listItem.insertAdjacentElement("beforeend",removeSpan),roomExtrasList.insertAdjacentElement("beforeend",listItem),itemTotalNum="number"==typeof extra.price_total?extra.price_total:priceToNumber(extra.price_total),totalRoomPrice=parseFloat(totalRoomPrice)+itemTotalNum,priceIsPoints)roomPriceP.innerText=priceToString(totalRoomPrice)+extrasText;else if(payWithPointsPoints>0){pointsText=" Punkte + ";"German"!==language&&(pointsText=" Points + ");payWithPointsPriceTag=formatBWRPoints(payWithPointsPoints)+pointsText+currencySign+" "+twoDecimalPlaces(totalRoomPrice)+priceText;roomPriceP.innerText=payWithPointsPriceTag}else roomPriceP.innerText=priceToString(totalRoomPrice)+priceText;"0"===extra.quantity&&"none"!==listItem.style.display&&(listItem.style.display="none")}}},buildExtrasArrayFromJSON=function(extrasJSON,roomId){var addedExtras=[];BW.addedExtras.forEach((function(item){item.roomId!==roomId&&addedExtras.push(item)}
278)),extrasJSON.forEach((function(obj){itemIsInAddedExtras(obj)||(obj.roomId=roomId,addedExtras.push(obj))})),BW.addedExtras=addedExtras,storeBWData("addedExtras",BW.addedExtras)},updateRoomItemsExtrasFromJSON=function(extrasJSON,roomId){var selectedItem,roomItems=[];BW.roomItems.forEach((function(item){item.roomId!==roomId?roomItems.push(item):selectedItem=item}));var extras=[];extrasJSON.forEach((function(obj){var extrasObj={quantity:obj.quantity,price:obj.price,price_txt:obj.price_txt,id:obj.id,title:obj.title};extras.push(extrasObj)})),selectedItem.extras=extras,roomItems.push(selectedItem),BW.roomItems=roomItems,storeBWData("roomItems",BW.roomItems),BW.bookedRooms&&(BW.bookedRooms=BW.roomItems,updateBookingCart())},updateExtrasInTileWithRoomID=function(roomId,uuid,extrasJSONArray){var extrasJSON=[];if(extrasJSONArray&&extrasJSONArray.length>0)try{extrasJSON=JSON.parse(extrasJSONArray)}catch(error){console.error("Fehler im extrasJSONArray:",extrasJSONArray)}buildExtrasArrayFromJSON(extrasJSON,roomId),updateRoomItemsExtrasFromJSON(extrasJSON,roomId),extrasJSON.length>0?extrasJSON.forEach((function(extrasObj){updateExtrasListForSelectedRoom(roomId)})):updateExtrasListForSelectedRoom(roomId)},getExtrasForRoomId=function(roomId){var extrasArray=[];return BW.roomItems.forEach((function(roomItem){roomItem.roomId===roomId&&roomItem.extras&&roomItem.extras.length>0&&roomItem.extras.forEach((function(extra){var extraObj={quantity:extra.quantity,id:extra.id};extrasArray.push(extraObj)}))})),extrasArray},sendExtrasForRoomIdToServer=function(roomId,uuid){var extrasForRoomId=getExtrasForRoomId(roomId),selectedExtrasJSONArray=JSON.stringify(extrasForRoomId);loadLinkInsideAdditionalServicesDiv(loadSelectAdditionalServices,!0,roomId,uuid,selectedExtrasJSONArray)},fetchExtras=function(target){var tileContainer=target.closest(".tile-container");if(!tileContainer.classList.contains("inactive")){var roomId=tileContainer.getAttribute("id");setActiveTile(roomId,showExtras="true"),document.getElementById("select-a-rate").style.display="none",document.getElementById("select-extras")&&(document.getElementById("select-extras").style.display="block");var uuid=target.closest(".selected-room").querySelector(".tile").getAttribute("data-uuid");sendExtrasForRoomIdToServer(roomId,uuid)}},resetCounterDivs=function(){document.querySelectorAll(".select-extras .add-an-extra").forEach((function(counterDiv){counterDiv.querySelector(".item-count").innerText="0",counterDiv.closest(".row").querySelector(".items-total").innerText="";var addItemBtn=counterDiv.querySelector(".add-item"),maxQuantity=addItemBtn.getAttribute("data-item-maxquantity");addItemBtn.disabled="0"===maxQuantity,counterDiv.querySelector(".remove-item").disabled=!0}))},updateHotelExtrasList=function(uuid){var counterDivs=document.querySelectorAll(".select-extras .add-an-extra");showExtrasHideRateSelection(uuid);var selectedTile=document.querySelector(".active .tile");uuid||(uuid=selectedTile.getAttribute("data-uuid"));var selectedRoomExtras,roomId=selectedTile.getAttribute("data-tile-for");if("undefined"!=typeof currentBookingCartJSON&¤tBookingCartJSON.length>0)currentBookingCartJSON.forEach((function(item){uuid===item.uuid&&roomId===item.roomId&&(selectedRoomExtras=item.additionalServices)}));else{showExtrasHideRateSelection(uuid);selectedTile=document.querySelector(".pick-extras .tile");uuid||(uuid=selectedTile.getAttribute("data-uuid")),BW.roomItems&&BW.roomItems.length>0&&BW.roomItems.forEach((function(item){uuid===item.uuid&&roomId===item.roomId&&(selectedRoomExtras=item.extras)}))}if(resetCounterDivs(),selectedRoomExtras&&selectedRoomExtras.length>0)for(var i=0;i<selectedRoomExtras.length;i++){var extra=selectedRoomExtras[i];counterDivs.forEach((function(counterDiv){var addItemBtn=counterDiv.querySelector(".add-item"),itemPriceSpan=addItemBtn.querySelector("span.item-price"),totalPrice=priceToNumber(itemPriceSpan.getAttribute("data-item-price"))*extra.quantity,itemId=(BW.getItemTitle2(addItemBtn.innerText),itemPriceSpan.getAttribute("data-item-id")),maxQuantity=parseInt(addItemBtn.getAttribute("data-item-maxquantity"));itemId===extra.id&&(counterDiv.querySelector(".item-count").innerText=extra.quantity,counterDiv.closest(".row").querySelector(".items-total").innerText=""+priceToString(totalPrice),extra.quantity>0&&(counterDiv.querySelector(".remove-item").disabled=!1),extra.quantity>=maxQuantity&&(counterDiv.querySelector(".add-item").disabled=!0)),0===maxQuantity&&(counterDiv.querySelector(".add-item").disabled=!0)}))}},calculatePriceForExtras=function(itemPrice,priceType,itemCount,adults){itemCount||(itemCount=1);var priceForExtras,nightsCount=document.getElementById("ss_nights").value;if(!adults){var roomId=document.querySelector(".select-three-rooms .tile-container.pick-extras").getAttribute("id");
278BW.roomItems.forEach((function(item){item.roomId===roomId&&(adults=item.adults)}))}switch(priceType){case"PER_PERSON_PER_NIGHT":priceForExtras=itemPrice*itemCount*adults;break;case"PER_PERSON_PER_STAY":priceForExtras=itemPrice*adults;break;case"PER_NIGHT":priceForExtras=itemPrice*itemCount*nightsCount;break;default:priceForExtras=itemPrice*itemCount}return priceForExtras},removeItemsFromExtrasList=function(btn){console.log("removeItemsFromExtrasList:",btn),console.log("activeRoomId:",activeRoomId);var tileContainerId=btn.closest(".tile-container").getAttribute("id");if(activeRoomId===tileContainerId&&document.getElementById(tileContainerId).classList.contains("pick-extras")){btn.closest("li").getAttribute("data-item-title"),btn.closest("li");for(var itemId=btn.closest("li").getAttribute("data-item-id"),roomId=btn.closest("div.tile-container").getAttribute("id"),uuid=btn.closest("div.tile").getAttribute("data-uuid"),roomItems=[],i=0;i<BW.addedExtras.length;i++){var extra=BW.addedExtras[i];extra.id===itemId&&extra.roomId===roomId&&BW.addedExtras.splice(i,1)}storeBWData("addedExtras",BW.addedExtras);var selectedItem;roomItems=[];BW.roomItems.forEach((function(item){item.roomId!==roomId?roomItems.push(item):selectedItem=item}));var extras=[];BW.addedExtras.forEach((function(obj){if(obj.roomId===roomId){var extrasObj={quantity:obj.quantity,price:obj.price,price_txt:obj.price_txt,id:obj.id,title:obj.title};extras.push(extrasObj)}})),selectedItem.extras=extras,roomItems.push(selectedItem),BW.roomItems=roomItems,storeBWData("roomItems",BW.roomItems),BW.bookedRooms&&(BW.bookedRooms=BW.roomItems,updateBookingCart()),sendExtrasForRoomIdToServer(roomId,uuid),updateExtrasListForSelectedRoom(roomId)}};BW.removeItemsFromExtrasList=removeItemsFromExtrasList;var initExtrasCounters=function(){document.getElementById("data-and-order"),document.getElementById("no-extras");var updateSelectedRoomExtras=function(btn){var selectedRoom,selectedTileId=(selectedRoom=btn?btn.closest(".selected-room"):document.querySelector(".select-three-rooms > div.pick-extras")).querySelector(".tile").getAttribute("data-tile-for"),roomExtrasList=selectedRoom.querySelector("ul.room-extras"),roomPriceP=selectedRoom.querySelector("p.price"),roomPrice=roomPriceP.getAttribute("data-total-price"),totalRoomPrice=0;if(-1!==roomPrice.indexOf("Punkte")){if(!selectedRoom.querySelector(".price-points")){var roomPricePointsP=document.createElement("p");roomPricePointsP.className="price-points",roomPricePointsP.innerText=roomPrice+" pro Zimmer und Nacht",roomPriceP.insertAdjacentElement("afterend",roomPricePointsP)}}else totalRoomPrice=roomPrice;if(roomPriceP.innerText=priceToString(totalRoomPrice)+" pro Zimmer und Nacht",roomExtrasList)for(var listItems=roomExtrasList.querySelectorAll("li"),i=0;i<listItems.length;i++)listItems[i].remove();else(roomExtrasList=document.createElement("ul")).className="room-extras",selectedRoom.querySelector(".rate-details").insertAdjacentElement("afterend",roomExtrasList);if(BW.addedExtras&&BW.addedExtras.length>0)for(i=0;i<BW.addedExtras.length;i++){var extra=BW.addedExtras[i];if(selectedTileId===extra.tileId){var listItem=document.createElement("li");listItem.innerText="+"+extra.itemCount+" "+extra.itemTitle,listItem.setAttribute("data-item-title",extra.itemTitle),listItem.setAttribute("data-item-id",extra.id);var itemTotalNum,removeSpan=document.createElement("span");removeSpan.classList.add("remove-item"),removeSpan.classList.add("icon-cancel"),removeSpan.addEventListener("click",(function(evt){evt.preventDefault(),removeItemsFromExtrasList(this)})),listItem.insertAdjacentElement("beforeend",removeSpan),roomExtrasList.insertAdjacentElement("beforeend",listItem),itemTotalNum="number"==typeof extra.itemTotal?extra.itemTotal:priceToNumber(extra.itemTotal),totalRoomPrice=parseFloat(totalRoomPrice)+itemTotalNum,roomPriceP.innerText=priceToString(totalRoomPrice)+" pro Zimmer und Nacht","0"===extra.itemCount&&"none"!==listItem.style.display&&(listItem.style.display="none")}}};BW.updateSelectedRoomExtras=updateSelectedRoomExtras;for(var getItemTitle=function(btnTxt){var itemTitle=btnTxt.split("â¬")[0].trim();return 10==itemTitle.charCodeAt(1)?itemTitle.substr(2):itemTitle.substr(1)}
278,addItemHandler=function(btn){var itemCountField=btn.previousElementSibling,itemCount=parseInt(itemCountField.innerText);itemCountField.innerHTML=++itemCount;var maxQuantity=btn.getAttribute("data-item-maxquantity");btn.disabled=itemCount>=maxQuantity,itemCountField.previousElementSibling.disabled=!(itemCount>0);Object.assign({},BW.roomItemsNoExtras);!function(btn){var totalSpan=btn.closest(".row").querySelector(".items-total"),priceSpan=btn.querySelector(".item-price"),itemPrice=priceToNumber(priceSpan.getAttribute("data-item-price")),itemPriceType=priceSpan.getAttribute("data-item-price-type"),priceForExtras=calculatePriceForExtras(itemPrice,itemPriceType),totalPriceTxt=totalSpan.innerText;""==totalPriceTxt?totalPrice=0:(totalPriceTxt=totalSpan.innerText,totalPrice=priceToNumber(totalPriceTxt)),totalSpan.innerText=priceToString(totalPrice+priceForExtras)}(btn),function(btn){var row=btn.closest(".row"),itemCount=row.querySelector(".item-count").innerText,itemTitle=getItemTitle(btn.innerText);itemTitle=itemTitle.replace(/&#{0,1}[a-z0-9]+;/gi,"");var itemTotal=row.querySelector(".items-total").innerText,itemPriceSpan=btn.querySelector(".item-price"),itemPrice=itemPriceSpan.getAttribute("data-item-price"),itemPriceText=itemPriceSpan.innerText;itemPriceText=(itemPriceText=itemPriceText.replace(/€/g,"â¬")).replace(/&#{0,1}[a-z0-9]+;/gi,"");var itemId=itemPriceSpan.getAttribute("data-item-id"),selectedTile=document.querySelector(".select-three-rooms .pick-extras .tile"),uuid=selectedTile.getAttribute("data-uuid"),tileId=selectedTile.getAttribute("data-tile-for"),extra={itemTitle:itemTitle,itemCount:itemCount,itemTotal:itemTotal,itemPrice:itemPrice,itemId:itemId,tileId:tileId,uuid:uuid},isAdded=!1;if(BW.addedExtras&&BW.addedExtras.length>0)for(var i=0;i<BW.addedExtras.length;i++)BW.addedExtras[i].itemTitle===itemTitle&&(BW.addedExtras[i].itemCount=itemCount,BW.addedExtras[i].itemTotal=itemTotal,BW.addedExtras[i].itemPrice=itemPrice,BW.addedExtras[i].tileId=tileId,BW.addedExtras[i].uuid=uuid,isAdded=!0);else BW.addedExtras=[];isAdded||BW.addedExtras.push(extra),BW.roomItems&&BW.roomItems.length>0?BW.roomItems.forEach((function(itemObj){if(itemObj.roomId===tileId){var extrasObj={quantity:parseInt(itemCount),price:parseInt(itemPrice),price_txt:itemPriceText,id:itemId,title:itemTitle};if(itemObj.extras){var itemThere=!1;itemObj.extras.forEach((function(extra){extra.id===itemId&&(extra.quantity=itemCount,itemThere=!0)})),itemThere||itemObj.extras.push(extrasObj)}else itemObj.extras=[],itemObj.extras.push(extrasObj)}})):console.log("no roomItems"),storeBWData("roomItems",BW.roomItems),storeBWData("addedExtras",BW.addedExtras),BW.bookedRooms&&(BW.bookedRooms=BW.roomItems,updateBookingCart()),updateSelectedRoomExtras(),showButtonsForBasket()}(btn)},removeItemHandler=function(btn){var itemCountField=btn.nextElementSibling,itemCount=parseInt(itemCountField.innerText);itemCountField.innerHTML=--itemCount,btn.disabled=itemCount<=0;var addItemButton=itemCountField.nextElementSibling,maxQuantity=addItemButton.getAttribute("data-item-maxquantity");addItemButton.disabled=itemCount>=maxQuantity,function(btn){var row=btn.closest(".row"),totalSpan=row.querySelector(".items-total"),priceSpan=row.querySelector(".item-price"),itemPrice=priceToNumber(priceSpan.getAttribute("data-item-price")),itemPriceType=priceSpan.getAttribute("data-item-price-type"),priceForExtras=calculatePriceForExtras(itemPrice,itemPriceType),totalPriceTxt=totalSpan.innerText;""!=totalPriceTxt&&(totalPriceTxt=totalSpan.innerText,totalPrice=priceToNumber(totalPriceTxt),totalSpan.innerText=priceToString(totalPrice-priceForExtras))}(btn),function(btn){for(var row=btn.closest(".row"),itemCount=row.querySelector(".item-count").innerText,itemTitle=getItemTitle(row.querySelector(".add-item").innerText),itemTotal=row.querySelector(".items-total").innerText,selectedTile=document.querySelector(".select-three-rooms .pick-extras .tile"),tileId=selectedTile.getAttribute("data-tile-for"),itemId=row.querySelector(".item-price").getAttribute("data-item-id"),uuid=selectedTile.getAttribute("data-uuid"),roomItems=[],addedExtras=[],i=0;i<BW.addedExtras.length;i++){var extra=BW.addedExtras[i];extra.uuid===uuid&&extra.tileId===tileId&&extra.id===itemId&&(extra.itemCount=itemCount,extra.itemTotal=itemTotal,extra.tileId=tileId),extra.itemCount>0&&addedExtras.push(extra)}for(BW.addedExtras=addedExtras,i=0;i<BW.roomItems.length;
278i++){var roomItem=BW.roomItems[i];roomItem.uuid===uuid&&roomItem.roomId===tileId&&roomItem.extras.forEach((function(extra,index){extra.title===itemTitle&&(extra.quantity=itemCount,"0"===itemCount&&roomItem.extras.splice(index,1))})),roomItems.push(roomItem)}BW.roomItems=roomItems,storeBWData("roomItems",BW.roomItems),storeBWData("addedExtras",BW.addedExtras),BW.bookedRooms&&(BW.bookedRooms=BW.roomItems,updateBookingCart()),updateSelectedRoomExtras()}(btn)},counterDivs=document.querySelectorAll(".select-extras .add-an-extra"),i=0;i<counterDivs.length;i++)for(var buttons=counterDivs[i].querySelectorAll("button"),j=0;j<buttons.length;j++){buttons[j].addEventListener("click",(function(evt){if(evt.preventDefault(),!evt.target.classList.contains("rate-info")){this.classList.contains("add-item")?addItemHandler(this):this.classList.contains("remove-item")&&removeItemHandler(this)}}))}},initExtrasDropDownForMobile=function(){var dropDownMenu,tabElements,dropDownItems,dropDownToggle,selectedEl,setSelectedTab=function(selectedEl){tabElements.forEach((function(tabEl){var tabLink=tabEl.querySelector("a, strong");selectedEl===tabEl?(tabEl.classList.add("selected"),tabLink&&tabLink.classList.add("active")):(tabEl.classList.remove("selected"),tabLink&&tabLink.classList.remove("active"))}))},showSelectedTabFromDropDown=function(hash){console.log("showSelectedTab:",hash),hash&&(dropDownMenu.querySelectorAll("a").forEach((function(el){el.innerText===hash?(el.classList.add("selected"),dropDownToggle.innerText=el.innerText):el.classList.remove("selected")})),closeDropDown(dropDownToggle))},openDropDown=function(target){dropDownMenu.classList.add("show"),dropDownMenu.style.display="block",target.parentElement.classList.add("show"),dropDownMenu.querySelectorAll("a").forEach((function(el){ 279var hash=el.innerText;el.addEventListener("click",showSelectedTabFromDropDown.bind(this,hash))}))},closeDropDown=function(target){target.classList.remove("active"),dropDownMenu.classList.remove("show"),dropDownMenu.style.display="none",target.parentElement.classList.remove("show")};if(dropDownToggle=document.querySelector("#select-extras .nav-item .dropdown-toggle")){dropDownMenu=document.querySelector("#select-extras .nav-item .dropdown-menu"),dropDownItems=dropDownMenu.querySelectorAll("a.dropdown-item"),tabElements=document.querySelectorAll("#select-extras .nav-item");var selectedTab=dropDownMenu.querySelector("a.dropdown-item.selected");selectedTab===dropDownItems[0]?dropDownToggle.innerText="weitere Extras":(dropDownToggle.innerText=selectedTab.innerText,setSelectedTab(dropDownToggle.parentElement)),selectedEl=selectedTab,dropDownItems.forEach((function(item){selectedEl===item?item.classList.add("selected"):item.classList.remove("selected")})),dropDownToggle.addEventListener("click",(function(evt){var target=evt.target;dropDownMenu.classList.contains("show")?closeDropDown(target):openDropDown(target),setSelectedTab(target.parentElement)}))}},initHotelExtrasFromJSON=function(){if("undefined"!=typeof hotelExtrasJSON&&hotelExtrasJSON){var dropDownToggle,dropDownMenu,extrasJSON="German"!==BW.language?hotelExtrasJSON.EN:hotelExtrasJSON.DE,extrasContainer=document.getElementById("select-extras"),extrasWrap=document.getElementById("extras-wrap"),tabTitles=[],tabElements=[],tabContainers=[],setSelectedTab=function(selectedEl){tabElements.forEach((function(tabEl){var tabLink=tabEl.querySelector("a");selectedEl===tabEl?(tabEl.classList.add("selected"),tabLink.classList.add("active")):(tabEl.classList.remove("selected"),tabLink.classList.remove("active"))}))},showSelectedTab=function(hash){if(hash){var tabId=hash.substr(1);tabContainers.forEach((function(tabContainer){tabContainer.id===tabId?tabContainer.style.display="block":tabContainer.style.display="none"}))}},showSelectedTabFromDropDown=function(hash){if(hash){var tabId=hash.substr(1);tabContainers.forEach((function(tabContainer){tabContainer.id===tabId?tabContainer.style.display="block":tabContainer.style.display="none"})),dropDownMenu.querySelectorAll("a").forEach((function(el){el.getAttribute("href")===hash?(el.classList.add("selected"),dropDownToggle.innerText=el.innerText):el.classList.remove("selected")})),closeDropDown(dropDownToggle)}},openDropDown=function(target){dropDownMenu.classList.add("show"),dropDownMenu.style.display="block",target.parentElement.classList.add("show"),dropDownMenu.querySelectorAll("a").forEach((function(el){var hash=el.getAttribute("href");
279el.addEventListener("click",showSelectedTabFromDropDown.bind(this,hash))}))},closeDropDown=function(target){target.classList.remove("active"),dropDownMenu.classList.remove("show"),dropDownMenu.style.display="none",target.parentElement.classList.remove("show")},dropDownToggleHandler=function(evt){var target=evt.target;target.classList.contains("active")?closeDropDown(target):openDropDown(target),setSelectedTab(target.parentElement)},tabsLinkClickHandler=function(evt){evt.preventDefault();var target=evt.target,hash="";setSelectedTab(target.closest("li.nav-item")),hash=target.hasAttribute("href")?target.getAttribute("href"):target.parentElement.getAttribute("href"),showSelectedTab(hash)},idFromKey=function(key){key.replace(/ /g,"_");return key.replace(/-/g,"_").toLowerCase()},buildSection=function(category){var section=document.createElement("section"),firstRow=document.createElement("div");return firstRow.className="row",firstRow.innerHTML="<div><h3>"+category+"</h3></div><div><h3>Gesamtpreis</h3></div>",section.append(firstRow),section},buildItem=function(item){void 0!==item.info&&""!==item.info||(item.info=" ");var itemRow=document.createElement("div");return itemRow.className="row",itemRow.innerHTML='<div><div class="add-an-extra"><button class="remove-item" disabled=""><i>-</i></button><span class="cnt item-count">0</span><button class="add-item" data-item-maxquantity="'+item.maxQuantity+'"><i>+</i>'+cleanString(item.title)+' <span class="item-price" data-item-price="'+item.price_num+'" data-item-id="'+item.id+'" data-item-price-type="'+item.price_type+'">'+item.price_txt+'</span> <a class="rate-info" data-behavior="BS.Popover" title="" data-bs-popover-options="\'content\' : \'<h6>'+cleanString(item.title)+"</h6>"+cleanString(item.info)+"','location' : 'below'\"></a></button></div></div><div><span class=\"items-total\"></span></div>",itemRow},buildListOfExtras=function(extrasObj){var tmpDiv=document.createElement("div");if(void 0!==extrasObj.length)extrasObj.forEach((function(obj){var categorySection=buildSection(obj.category);obj.items&&obj.items.forEach((function(item){var itemDiv=buildItem(item);categorySection.append(itemDiv),tmpDiv.append(categorySection)}))}));else{var categorySection=buildSection("Extras");extrasObj.items.forEach((function(item){var itemDiv=buildItem(item);categorySection.append(itemDiv)})),tmpDiv.append(categorySection)}return tmpDiv.innerHTML};!function(){var navTabsList=document.createElement("ul");navTabsList.className="nav-tabs",extrasJSON.forEach((function(entry,index,hotelExtras){var tabsListItem=document.createElement("li");tabsListItem.className="nav-item";var tabsListLink=document.createElement("a");for(var key in tabsListLink.className="nav-link",tabsListLink.addEventListener("click",tabsLinkClickHandler),tabsListItem.append(tabsListLink),entry)tabTitles.push(key),tabsListLink.setAttribute("href","#"+idFromKey(key)),tabsListLink.innerHTML="<span>"+key+"</span>";tabElements.push(tabsListItem),navTabsList.append(tabsListItem)}));var mobileDropDown=document.createElement("li");mobileDropDown.className="nav-item",mobileDropDown.classList.add("dropdown"),mobileDropDown.classList.add("mobile-only"),(dropDownToggle=document.createElement("a")).className="nav-link",dropDownToggle.classList.add("dropdown-toggle"),dropDownToggle.setAttribute("data-toggle","dropdown"),dropDownToggle.setAttribute("role","button"),dropDownToggle.setAttribute("aria-haspopup","true"),dropDownToggle.setAttribute("aria-expanded","false"),dropDownToggle.innerText="weitere Extras",dropDownToggle.addEventListener("click",dropDownToggleHandler),mobileDropDown.append(dropDownToggle),(dropDownMenu=document.createElement("div")).className="dropdown-menu";for(var i=1;i<tabTitles.length;i++){var dropDownItem=document.createElement("a");dropDownItem.className="dropdown-item",dropDownItem.setAttribute("href","#"+idFromKey(tabTitles[i])),dropDownItem.innerText=tabTitles[i],dropDownMenu.append(dropDownItem)}mobileDropDown.append(dropDownMenu),tabElements.push(mobileDropDown),navTabsList.append(mobileDropDown),extrasContainer.prepend(navTabsList)}
279(),extrasJSON.forEach((function(entry,index,hotelExtras){for(var key in entry){var value=entry[key],extrasDiv=document.createElement("div");extrasDiv.className="extras",extrasDiv.setAttribute("id",idFromKey(key)),extrasDiv.innerHTML=buildListOfExtras(value),extrasWrap.append(extrasDiv),tabContainers.push(extrasDiv)}})),setSelectedTab(tabElements[0]),showSelectedTab(idFromKey("#"+tabTitles[0]))}},initRateDetails=function(){for(var detailsDivs=document.querySelectorAll(".rate-details"),i=0;i<detailsDivs.length;i++){detailsDivs[i].addEventListener("click",(function(evt){evt.preventDefault(),this.classList.toggle("open")}))}},fixTabsForExtras=function(){var elementsForDropDown=[],composedWidth=0,hasDropDownMenu=!1,extrasTabList=document.querySelector("#select-extras ul.nav-tabs");if(extrasTabList){var availableWidth=getElementWidth(extrasTabList)-90,dropDownMenu=document.createElement("ul");dropDownMenu.className="dropdown-menu",dropDownMenu.setAttribute("aria-labelledby","roomExtrasDropdownMenuButton");var dropDownLi=document.createElement("li");dropDownLi.className="extras-dropdown";var dropDownBtn=document.createElement("button");dropDownBtn.className="btn btn-secondary dropdown-toggle",dropDownBtn.setAttribute("type","button"),dropDownBtn.setAttribute("id","roomExtrasDropdownMenuButton"),dropDownBtn.setAttribute("data-toggle","dropdown"),dropDownBtn.setAttribute("aria-haspopup","true"),dropDownBtn.setAttribute("aria-expanded","false"),dropDownBtn.innerText=t9n[language].more+" ",dropDownLi.insertAdjacentElement("beforeend",dropDownBtn),dropDownLi.insertAdjacentElement("beforeend",dropDownMenu);var extrasContainer=extrasTabList.nextElementSibling,showRoomExtrasDropdownMenu=function(evt){dropDownMenu.classList.add("show"),dropDownBtn.classList.add("show"),evt.target.classList.add("show"),extrasContainer.classList.add("in-back")},hideRoomExtrasDropdownMenu=function(evt){dropDownMenu.classList.remove("show"),dropDownBtn.classList.remove("show"),evt.target.classList.remove("show"),extrasContainer.classList.remove("in-back")};extrasTabList.querySelectorAll("li.nav-item:not(.mobile-only)").forEach((function(tab){var itemWidth=getElementWidth(tab);(composedWidth+=itemWidth)>availableWidth&&(elementsForDropDown.push(tab),tab.className="dropdown-item",dropDownMenu.insertAdjacentElement("afterbegin",tab),hasDropDownMenu=!0,dropDownLi.addEventListener("mouseenter",showRoomExtrasDropdownMenu),dropDownLi.addEventListener("mouseleave",hideRoomExtrasDropdownMenu))})),hasDropDownMenu&&extrasTabList.insertAdjacentElement("beforeend",dropDownLi)}},sendHttpRequest=function(method,url,data,contentType){return new Promise((function(resolve,reject){var xhr=new XMLHttpRequest;xhr.open(method,url,!0),xhr.responseType="json",xhr.onload=function(){xhr.status>=200&&xhr.status<300?resolve(xhr.response):reject(new Error("Something went wrong!"))},xhr.onerror=function(){reject(new Error("Failed to send request!"))},contentType&&xhr.setRequestHeader("Content-Type",contentType),xhr.send(JSON.stringify(data))}))},serializeObject=function(form){var obj={};return Array.prototype.slice.call(form.elements).forEach((function(field){obj[field.name]=field.value})),obj},dev=-1!==window.location.href.indexOf("bw-dev.selbstdenker.com"),staging=-1!==window.location.href.indexOf("bw-staging.selbstdenker.com"),buildPressItemsList=function(){var io,target,language=window.sessionLanguage?window.sessionLanguage:"German",pressItemWrap=document.getElementById("pressItemWrap"),defaultLinkText="German"==language?"zur News":"go to news",currentItemCount=0,handleIntersect=function(entries,observer){entries.forEach((function(entry){if(entry.isIntersecting){entry.target;fetchNextPressItems()}}))},changeDateFormat=function(dateString,param){var temp;if("DE-EN"==param)return(temp=dateString.split("."))[1]+"/"+temp[0]+"/"+temp[2];if(param="EN-DE"){if(-1!=dateString.indexOf("/"))temp=dateString.split("/");else{if(-1==dateString.indexOf("-"))return!1;temp=dateString.split("-")}return temp[1]+"."+temp[0]+"."+temp[2]}},attachPressItem=function(pressItem){var imgSrc,teaserText,href,download="";pressItem.date&&""!=pressItem.date&&("German"==language?pressItem.date:changeDateFormat(pressItem.date,"DE-EN")),imgSrc=pressItem.imgSrc,pressItem.title,teaserText=pressItem.teaserText,href=pressItem.href,download=pressItem.download;var itemDiv=document.createElement("div");itemDiv.className="press-item";var itemImgWrap=document.createElement("div");itemImgWrap.className="img-wrap",itemImgWrap.style.backgroundImage="url("+imgSrc+")",itemDiv.insertAdjacentElement("beforeend",itemImgWrap);var itemContent=document.createElement("div");itemContent.className="item-content",itemDiv.insertAdjacentElement("beforeend",itemContent);var itemDateP=document.createElement("p");itemDateP.className="date",itemDateP.innerText=pressItem.date,itemContent.insertAdjacentElement("beforeend",itemDateP);var itemHeadline=document.createElement("h3");itemHeadline.className="title",itemHeadline.innerText=pressItem.title,itemContent.insertAdjacentElement("beforeend",itemHeadline);var itemTeaserP=document.createElement("p");if(itemTeaserP.className="teaser-text",itemTeaserP.innerText=teaserText,itemContent.insertAdjacentElement("beforeend",itemTeaserP),href&&""!=href){"www"==href.substr(0,3)&&(href="//"+href),dev&&"German"!==language&&(href=href.replace(/seiten\/pressemeldung_details\.html/,"en/press-release-details.html"));var itemLink=document.createElement("a");itemLink.className="icon icon-right-dir",itemLink.setAttribute("href",href),itemLink.innerText=defaultLinkText,itemContent.insertAdjacentElement("beforeend",itemLink)}if(download&&""!=download){"www"==download.substr(0,3)&&(download="//"+download);var itemDownload=document.createElement("a");itemDownload.className="downloadpdf",itemDownload.setAttribute("href",download),itemDownload.setAttribute("target","_blank"),itemDownload.innerText="download PDF",itemContent.insertAdjacentElement("beforeend",itemDownload)}pressItemWrap.insertAdjacentElement("beforeend",itemDiv),currentItemCount+=1},fetchNextPressItems=function(){for(var endIndex=currentItemCount+6,i=currentItemCount;i<endIndex;i++)pressItems[i]&&attachPressItem(pressItems[i])};pressItems.length>
2790&&"object"==typeof pressItems&&pressItems.forEach((function(pressItem,index){index<6&&attachPressItem(pressItem)})),io=new IntersectionObserver(handleIntersect,{rootMargin:"0px",threshold:1}),target=document.getElementById("pressItemEnd"),io.observe(target)},buildPressMediaItemsList=function(){var io,target,language=window.sessionLanguage?window.sessionLanguage:"German",pressMediaItemWrap=document.getElementById("pressMediaItemWrap"),defaultLinkTextImage="German"==language?"Bild herunterladen":"download image",defaultLinkTextVideo="German"==language?"Video herunterladen":"download video",currentItemCount=0,handleIntersect=function(entries,observer){entries.forEach((function(entry){if(entry.isIntersecting){entry.target;fetchNextPressMediaItems()}}))},attachPressMediaItem=function(mediaItem){var previewSrc,downloadSrc,teaserText,mediaType;previewSrc=mediaItem.previewSrc,downloadSrc=mediaItem.downloadSrc,teaserText=mediaItem.teaserText,mediaItem.category,mediaType=mediaItem.mediaType;var itemDiv=document.createElement("div");itemDiv.className="press-item";var itemImgWrap=document.createElement("div");if(itemImgWrap.className="img-wrap",itemImgWrap.style.backgroundImage="url("+previewSrc+")",downloadSrc&&""!=downloadSrc){"www"==downloadSrc.substr(0,3)&&(downloadSrc="//"+downloadSrc);var imgLink=document.createElement("a");imgLink.setAttribute("href",downloadSrc),"video"===mediaType?imgLink.setAttribute("title",defaultLinkTextVideo):imgLink.setAttribute("title",defaultLinkTextImage),imgLink.setAttribute("target","_blank"),imgLink.insertAdjacentElement("beforeend",itemImgWrap),itemDiv.insertAdjacentElement("beforeend",imgLink)}else itemDiv.insertAdjacentElement("beforeend",itemImgWrap);var itemContent=document.createElement("div");itemContent.className="item-content",itemDiv.insertAdjacentElement("beforeend",itemContent);var itemTeaserP=document.createElement("p");if(itemTeaserP.className="teaser-text",itemTeaserP.innerText=teaserText,itemContent.insertAdjacentElement("beforeend",itemTeaserP),downloadSrc&&""!=downloadSrc){"www"==downloadSrc.substr(0,3)&&(downloadSrc="//"+downloadSrc);var itemLink=document.createElement("a");itemLink.className="icon icon-right-dir",itemLink.setAttribute("href",downloadSrc),itemLink.setAttribute("target","_blank"),itemLink.innerText="video"===mediaType?defaultLinkTextVideo:defaultLinkTextImage,itemContent.insertAdjacentElement("beforeend",itemLink)}pressMediaItemWrap.insertAdjacentElement("beforeend",itemDiv),currentItemCount+=1},fetchNextPressMediaItems=function(){for(var endIndex=currentItemCount+6,i=currentItemCount;i<endIndex;i++)pressMediaItems[i]&&attachPressMediaItem(pressMediaItems[i])};pressMediaItems.length>0&&pressMediaItems.forEach((function(mediaItem,index){index<6&&attachPressMediaItem(mediaItem)})),io=new IntersectionObserver(handleIntersect,{rootMargin:"0px",threshold:1}),target=document.getElementById("pressItemEnd"),io.observe(target)},t9n={German:{lang:"de",adult:"Erwachsene(r)",adults:"Erwachsene",child:"Kind",children:"Kinder",room:"Zimmer",rooms:"Zimmer","ad.":"Erw.","ch.":"Ki.","ro.":"Zi.",single:"Einzelzimmer",double:"Doppelzimmer",superior:"Superior",suite:"Suite",suites:"Suiten",night:"Nacht",nights:"Nächte",weekdays:["So","Mo","Di","Mi","Do","Fr","Sa"],dateFormat:"ddd, DD. MM.","more-details":"mehr Details","less-details":"weniger Details",more:"mehr"},English:{lang:"en",adult:"adult",adults:"adults",child:"child",children:"children",room:"room",rooms:"rooms","ad.":"Ad.","ch.":"Ch.","ro.":"Ro.",single:"Single",double:"Double",superior:"Superior",suite:"Suite",night:"night",nights:"nights",weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dateFormat:"DD/MM/YYYY","more-details":"more details","less-details":"less details",more:"more"},French:{lang:"fr",adult:"Adulte",adults:"Adultes",child:"Enfant",children:"Enfants",room:"Chambre",rooms:"Chambres","ad.":"Ad.","ch.":"En.","ro.":"Ch.",single:"Einzelzimmer",double:"Doppelzimmer",superior:"Superior",suite:"Suite",night:"Nuit",nights:"Nuit",weekdays:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dateFormat:"ddd, DD. MM.","more-details":"more details","less-detail
279s":"less details",more:"more"},Italian:{lang:"it",adult:"Adulto",adults:"Adulti",child:"Bambino",children:"Bambini",room:"Camera",rooms:"Camere","ad.":"Ad.","ch.":"Ba.","ro.":"Ca.",single:"Einzelzimmer",double:"Doppelzimmer",superior:"Superior",suite:"Suite",night:"Notte",nights:"Notti",weekdays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dateFormat:"ddd, DD. MM.","more-details":"more details","less-details":"less details",more:"more"},Slovenian:{lang:"sl",adult:"Odrasli",adults:"Odrasli",child:"Otrok",children:"Otroci",room:"Soba",rooms:"Sobi","ad.":"Od.","ch.":"Ot.","ro.":"So.",single:"Einzelzimmer",double:"Doppelzimmer",superior:"Superior",suite:"Suite",night:"NoÄ",nights:"NoÄi",weekdays:["Ned","Pon","Tor","Sre","Äet","Pet","Sob"],dateFormat:"ddd, DD. MM.","more-details":"more details","less-details":"less details",more:"more"}},initHotelViewMenu=function(resize){var screenWidth=document.body.getAttribute("data-screenwidth"),hotelviewMenu=document.id("hotelviewMenuWrap");if(hotelviewMenu)if(screenWidth<768){var menuToggle=document.id("hotelviewMenue-toggle");if(menuToggle){var d=hotelviewMenu.getDimensions(),hotelviewMenuMorph=new Fx.Morph(hotelviewMenu,{transition:Fx.Transitions.Sine.easeOut});hotelviewMenuMorph.set({left:0-d.width/3*2}),hotelviewMenu.removeClass("open"),hotelviewMenu.addClass("closed"),menuToggle.retrieve("hasClickEvent")||menuToggle.addEvent("click",(function(evt){if(evt.stop(),0!=parseInt(hotelviewMenu.getStyle("left")))hotelviewMenuMorph.start({left:0,complete:function(){hotelviewMenu.removeClass("closed"),hotelviewMenu.addClass("open")}});else{var l=0-hotelviewMenu.getDimensions().width/3*2;hotelviewMenuMorph.start({left:l,complete:function(){hotelviewMenu.removeClass("open"),hotelviewMenu.addClass("closed")}})}menuToggle.store("hasClickEvent",!0)}))}var hvmPos=(hotelviewMenuRow=document.id("hotelviewMenuRow")).getPosition(),scrollHotelviewMenu=function(){window.getScroll().y>=hvmPos.y?(hotelviewMenuRow.addClass("fixed"),hotelviewMenuRow.removeClass("unfixed")):(hotelviewMenuRow.removeClass("fixed"),hotelviewMenuRow.addClass("unfixed"))};window.retrieve("hasScrollEvent")||(window.addEvent("scroll",scrollHotelviewMenu),window.store("hasScrollEvent",!0))}else{var hotelviewMenuRow;if(window.retrieve("hasScrollEvent"))window.removeEvents("scroll",scrollHotelviewMenu),window.store("hasScrollEvent",!1),(hotelviewMenuRow=document.id("hotelviewMenuRow")).removeClass("fixed"),hotelviewMenuRow.addClass("unfixed")}var homeLink=$("homelink");homeLink&&homeLink.set("target","_blank")},hotelviewArrangementCategories={German:{"Schnäppchen":"Schnäppchen","Städtereise":"Städtereise",Wellness:"Wellness","Aktiv & Outdoor":"Aktiv & Outdoor","Kultur & Freizeit":"Kultur & Freizeit",Kulinarik:"Kulinarik",Alltagspause:"Alltagspause",Alltagspausen:"Alltagspausen",Specials:"Specials"},English:{"Schnäppchen":"Best Deals","Städtereise":"City Trips",Wellness:"Wellness Retreats","Aktiv & Outdoor":"Outdoor Exploration","Kultur & Freizeit":"Culture Trips",Kulinarik:"Culinary Adventures",Alltagspause:"Take a Break",Alltagspausen:"Take a Break",Specials:"Special packages"},French:{"Schnäppchen":"Best Deals","Städtereise":"City Trips",Wellness:"Wellness Retreats","Aktiv & Outdoor":"Outdoor Exploration","Kultur & Freizeit":"Culture Trips",Kulinarik:"Culinary Adventures",Alltagspause:"Take a Break",Alltagspausen:"Take a Break",Specials:"Special packages"},Italian:{"Schnäppchen":"Best Deals","Städtereise":"City Trips",Wellness:"Wellness Retreats","Aktiv & Outdoor":"Outdoor Exploration","Kultur & Freizeit":"Culture Trips",Kulinarik:"Culinary Adventures",Alltagspause:"Take a Break",Alltagspausen:"Take a Break",Specials:"Special packages"},Slovenian:{"Schnäppchen":"Best Deals","Städtereise":"City Trips",Wellness:"Wellness Retreats","Aktiv & Outdoor":"Outdoor Exploration","Kultur & Freizeit":"Culture Trips",Kulinarik:"Culinary Adventures",Alltagspause:"Take a Break",Alltagspausen:"Take a Break",Specials:"Special packages"}},initNewHotelViewImageGallery=function(){new hotelviewGallery},initHotelViewImageGallery=function(){var baseUrl="",categories=["Hotel","Zimmer","Gastronomie","Tagung","Umfeld","Freizeiteinrichtungen"],thumbnailList=document.id("thumbnailList"),thumbnails=new Array,nextSlide,previousSlide,zoomify,sliderlist=document.id("imgList");if(sliderlist){window.imageUrlArray_movie&&imageUrlArray_movie.length>0&&categories.unshift("Movie"),window.imageUrlArray_tvtrip&&imageUrlArray_tvtrip.length>0&&""!=imageUrlArray_tvtrip[0]&&categories.unshift("tvtrip");var objects=[],galleryNavLinks,galleryNav=document.id("gallerynav").getElement("div.nav"),allLink;(function(){var imgs=[],descs=[],cnt=0;categories.each((function(cat){var imgA=eval("imageUrlArray_"+cat.toLowerCase()),descA=eval("descArray_"+cat.toLowerCase()),catImgA=[],catDescA=[],fullCatDescA=[];if(void 0!==imgA&&imgA.length>0&&(catImgA=imgA),void 0!==descA&&descA.length>0){var fullDescAClean=new Array,descAClean=new Array;descA.each((function(s){descAClean.push(entity2umlaut(s)),fullDescAClean.push(entity2umlaut(s))})),catDescA=descAClean,fullCatDescA=fullDescAClean}if(catImgA.each((function(img,index){var o=new Object;o.src=baseUrl+img,o.desc=catDescA[index],o.fullDesc=fullCatDescA[index],o.category=cat.toLowerCase(),objects.push(o)})),void 0!==imgA&&imgA.length>0){var galleryNavLink=new Element("a",{href:"#",rel:cat.toLowerCase()});galleryNavLink.set("onmousedown","if (typeof ET_Event !== 'undefined') ET_Event.galleryView('Bildergalerie%20Hotelview', 'Thumbnail')");var galleryOption=new Element("option",{value:"movie"==cat||"tvtrip"==cat?"video":cat.toLowerCase(),text:"movie"==cat||"tvtrip"==cat?"Video":cat});galleryNav.grab(galleryNavLink),cnt+=1,"movie"==cat||"tvtrip"==cat?galleryNavLink.set("html","Video"):galleryNavLink.set("html",cat);var threesixty=document.id("threesixty");threesixty&&threesixty.inject(galleryNav,"bottom")}}));var allLinkText="Alle",language=window.sessionLanguage?window.sessionLanguage:"German";"English"==language&&(allLinkText="All"),allLink=new Element("a",{href:"#",title:"Alle",text:allLinkText}).inject(galleryNav,"top")})(),objects.each((function(o,index){var imglink,src=o.src,cat=o.category,li=new Element("li",{class:"slImg",rel:cat});if("movie"==cat)imglink=new Element("a",{href:o.desc,rel:"lightbox",class:"icon-play-circled",title:""});else if("tvtrip"==cat){if(imglink=new Element("a",{href:$("tvtriplink")?$("tvtriplink").get("href"):o.src.replace(/web451/g,"web757"),rel:"lightbox",class:"icon-play-circled",title:""}),winW<768){imglink.set("rel","nix");var winHref=imglink.get("href");imglink.set("href",'javascript:window.open("'+winHref+'","tvtrtp")')}}else imglink=new Element("span",{class:"slideWrap"});0===index?imglink.setStyle("background-image","url("+src+")"):imglink.set("data-bgimgurl",src);var desc="";o.desc&&(desc=o.fullDesc.trim()),""!=desc.trim()&&new Element("span",{class:"caption",text:desc}).inject(imglink),li.grab(imglink).inject(sliderlist)})),galleryNavLinks=$$("div#gallerynav .nav > a"),nextSlide=new Element("div",{class:"nextSlide"}).inject(sliderlist,"after"),previousSlide=new Element("div",{class:"previousSlide"}).inject(sliderlist,"after"),zoomify=new Element("a",{class:"zoomify"}).inject(sliderlist,"after");var highlightGalleryNavLink=function(r){galleryNavLinks.each((function(g){g.get("rel")==r?g.set("class","active"):g.removeClass("active")})),r="tvtrip"==r?"video":r}
279,activeThumbnail=0,setActiveThumbnail=function(atScreenLg){if(activeThumbnail=atScreenLg,smImgSlider){smImgSlider.goTo(activeThumbnail),smImgSlider.aItems.each((function(item){item.removeClass("active")}));var itemAtScreen=smImgSlider.aItems[atScreenLg];itemAtScreen&&itemAtScreen.addClass("active")}else{var smImgSliderElements=thumbnailList.getElements("li");smImgSliderElements.length>0&&smImgSliderElements.each((function(item,index){index==atScreenLg%smImgSliderElements.length&&(smImgSliderElements.removeClass("active"),item.addClass("active"))}))}},setBGImage=function(i){var slide=sliderlist.getElements("li")[i];if(slide){var slideWrap=slide.getElement("span.slideWrap");if("none"===slideWrap.getStyle("background-image")){var url=slideWrap.get("data-bgimgurl");slideWrap.setStyle("background-image","url("+url+")")}}},size=sliderlist.getParent(".viewport").getDimensions(),w=size.x,lgImgSlider=new SDSlider("imgList",{idPrevious:$("previous_lg"),idNext:$("next_lg"),idToggle:"undefined",iCarouselAttached:!0,item:{klass:"slImg",size:w},onPrevious:function(){highlightGalleryNavLink(this.aItems[this.atScreen].get("rel")),setActiveThumbnail(this.atScreen),setBGImage(this.atScreen)},onNext:function(){highlightGalleryNavLink(this.aItems[this.atScreen].get("rel")),setActiveThumbnail(this.atScreen),setBGImage(this.atScreen)},onGoTo:function(){setActiveThumbnail(this.atScreen),setBGImage(this.atScreen)}});isAndroid&&androidVersion<=4.2&&sliderlist.setStyle("left",0);var lgImgSliderElements=sliderlist.getElements("li");if(lgImgSliderElements.setStyle("width",w),sliderlist.setStyle("width",lgImgSlider.aItems.length*w),""!=loadgallery){var goTo;loadgallery=loadgallery||window.loadgallery;var isSet=!1;lgImgSliderElements.each((function(item,index){item.get("rel")!=loadgallery||isSet||(goTo=index,isSet=!0)})),lgImgSlider.goTo(goTo)}highlightGalleryNavLink(lgImgSlider.aItems[lgImgSlider.atScreen].get("rel")),setActiveThumbnail(lgImgSlider.atScreen),galleryNavLinks.length>0&&galleryNavLinks.each((function(gnl){var goTo,rel=gnl.get("rel"),isSet=!1;lgImgSliderElements.each((function(item,index){item.get("rel")!=rel||isSet||(goTo=index,isSet=!0)})),gnl.hasClass("hv_togglePopUp")||"undefined"==goTo||gnl.addEvent("click",(function(evt){evt.stop(),lgImgSlider.goTo(goTo),galleryNavLinks.each((function(g){g!=gnl?g.removeClass("active"):g.set("class","active")})),setActiveThumbnail(goTo)}))}));var videoPopupToggles=$$("a.hv_togglePopUp"),videoPopups=$$("#panoramapopup, #videopopup");if(videoPopupToggles.each((function(tg){tg.addEvent("click",(function(evt){var oP=evt.target.getOffsetParent(),tgP=evt.target.getPosition(oP),rel=document.id(tg.get("rel")),boxSize=rel.measure((function(){return this.getSize()}));videoPopups.each((function(vPopup){rel!=vPopup&&vPopup.hide()})),"block"!=rel.style.display?rel.setStyles({left:tgP.x+20,top:tgP.y-boxSize.y,display:"block"}):rel.setStyles({display:"none"}),evt.stop()}))})),thumbnailList){objects.each((function(o,index){var src=o.src.replace(/\/960\//g,"/141/"),cat=o.category,thumbLink=new Element("a",{class:"thumbholder"});thumbLink.set("mousedown","if (typeof ET_Event !== 'undefined') ET_Event.galleryView('Bildergalerie%20Hotelview', 'Thumbnail')"),"tvtrip"==cat&&thumbLink.addClass("icon-play-circled"),new Element("li",{class:"thumb"}).grab(thumbLink).inject(thumbnailList),index<6?thumbLink.setStyle("background-image","url("+src+")"):thumbLink.set("data-bgimgurl",src)}));var setThumbnailBGImage=function(i){i>2*objects.length&&(i-=objects.length);for(var thumbnails=thumbnailList.getElements("li"),z=i;z<=i+6;z++){var slide=thumbnails[z];if(slide){var slideWrap=slide.getElement("a.thumbholder");if("none"===slideWrap.getStyle("background-image")){var url=slideWrap.get("data-bgimgurl");slideWrap.setStyle("background-image","url("+url+")")}}}},thumbnailViewport=thumbnailList.getParent(".viewport"),size2=thumbnailViewport.getDimensions(),w2=(size2.x/5).round();thumbnailViewport.set("width",6*w2);var smImgSliderElements=thumbnailList.getElements("li");if(smImgSliderElements.length>5){var smImgSlider=new SDSlider("thumbnailList",{idPrevious:"previous",idNext:"next",idToggle:"undefined",item:{klass:"thumb",size:w2},onPrevious:function(){setThumbnailBGImage(this.atScreen)},onNext:function(){setThumbnailBGImage(this.atScreen)},onGoTo:function(){setThumbnailBGImage(this.atScreen)}});thumbnailList.getElements("li").setStyle("width",w2),thumbnailList.setStyle("width",smImgSlider.aItems.length*w2)}else smImgSliderElements.each((function(item,index){item.removeClass("active"),item.addEvent("click",(function(evt){lgImgSlider.goTo(index),smImgSliderElements.removeClass("active"),item.addClass("active")}))})),smImgSliderElements[0].addClass("active"),$("next").hide(),$("previous").hide(),smImgSliderElements.setStyle("width",w2)}
279smImgSlider&&(smImgSlider.goTo(activeThumbnail),smImgSlider.aItems.each((function(item,index){item.removeClass("active"),item.addEvent("click",(function(evt){lgImgSlider.goTo(index),smImgSlider.goTo(index),smImgSlider.aItems.each((function(item){item.removeClass("active")})),smImgSlider.aItems[index].addClass("active")}))})),smImgSlider.aItems[activeThumbnail].addClass("active")),allLink.addEvent("click",(function(evt){lgImgSlider.goTo(0),smImgSlider.goTo(0)})),Browser.Features.Touch||Browser.Features.iOSTouch?lgImgSlider.aItems.each((function(item){item.addEvent("swipe",(function(event){item.store("swipe:cancelVertical",!0),"left"==event.direction&&lgImgSlider.goTo(lgImgSlider.atScreen+1),"right"==event.direction&&lgImgSlider.goTo(lgImgSlider.atScreen-1)}))})):Mediabox.scanPage()}},initInPageNavigation=function(){if(!mobileLayout){var navWrapper=document.getElementById("in-page-navigation");if(navWrapper){var dropDownWidth,rewardsLink,elementsForDropDown=[],composedWidth=0,activeItem=navWrapper.querySelector(".active"),wrapperWidth=getElementWidth(navWrapper),nav1=navWrapper.querySelector("ul.nav1"),navElements=nav1.querySelectorAll("li"),nav2=document.createElement("ul");nav2.className="nav2",navElements.forEach((function(el){var a=el.querySelector("a");-1!==a.innerHTML.indexOf("Rewards")?(a.innerHTML="Best Western Rewards",rewardsLink=el):-1!==a.href.indexOf("/ERROR/NOT_FOUND/")&&el.remove()})),rewardsLink&&nav2.insertAdjacentElement("beforeend",rewardsLink),nav1.insertAdjacentElement("afterend",nav2);var nav2Width=getElementWidth(nav2)+35,dropDown=navWrapper.querySelector(".dropdown");dropDownWidth=getElementWidth(dropDown)+6;var dropDownMenu=dropDown.querySelector(".dropdown-menu"),availableWidth=wrapperWidth-nav2Width-dropDownWidth,allHotelsLink=dropDownMenu.querySelector(".all-hotels");if(nav1.querySelectorAll("li").forEach((function(item){var itemWidth=getElementWidth(item);(composedWidth+=itemWidth)>availableWidth&&(elementsForDropDown.push(item),item.className="dropdown-item",allHotelsLink.insertAdjacentElement("beforebegin",item))})),activeItem){var pageName=activeItem.querySelector("a").innerHTML.trim();pageName=(pageName=pageName.replace(/ /g,"")).replace(/&/g,"-");var sectionPage=navWrapper.closest("section.page");sectionPage&§ionPage.classList.add(pageName.toLowerCase())}dropDown.addEventListener("mouseenter",(function(evt){dropDown.classList.add("show"),dropDownMenu.style.visibility="visible",dropDownMenu.classList.add("show")})),dropDown.addEventListener("mouseleave",(function(evt){dropDownMenu.style.visibility="hidden",dropDownMenu.classList.remove("show"), 280dropDown.classList.remove("show")})),[nav1,nav2,dropDownMenu].forEach((function(el){el.style.visibility="visible"})),"German"!==(window.sessionLanguage?window.sessionLanguage:"German")&&document.body.classList.add("en")}}},wordCount=function(str){var m=str.match(/[^\s]+/g);return m?m.length:0},initRoomSelection=function(){var roomCategories=[],roomContainers=document.querySelectorAll(".room-container"),nav=document.getElementById("room-filter-nav");if(nav&&!(roomContainers.length<=0)){var toggleFormVisibility=function(evt){evt.preventDefault();var myBtn=evt.target;myBtn.classList.toggle("hidden"),myBtn.nextElementSibling.classList.toggle("active")},submitHandler=function(evt){var myForm=evt.target.closest("form"),fd=new FormData(myForm);fd.delete("combined-arrival-departure"),fd.delete("combined-adults-children");for(var formDataEntries=fd.entries(),formDataEntry=formDataEntries.next();!formDataEntry.done;)formDataEntry.value,formDataEntry=formDataEntries.next()},setPlaceHolder=function(displayField,adultsCount,childrenCount){var txtAdults=" "+t9n[language]["ad."],txtChildren=" "+t9n[language]["ch."];winW>768&&(txtAdults=1===adultsCount?" "+t9n[language].adult:" "+t9n[language].adults,txtChildren=1===childrenCount?" "+t9n[language].child:" "+t9n[language].children),displayField.placeholder=adultsCount+txtAdults+" · "+childrenCount+txtChildren,displayField.value=""},setAdultButtonText=function(btn,adultsCount){var txtAdults=1===adultsCount?" "+t9n[language].adult:" "+t9n[language].adults;btn.childNodes[1].nodeValue=txtAdults},updateAdults=function(btn,adultsCount){var myForm=btn.closest("form"),displayField=myForm.querySelector("input.combined-adults-children"),adultsField=myForm.querySelector("input[name=adults1]"),childrenCount=myForm.querySelector("input[name=children1]").value;adultsField.value=adultsCount,adultsField.setAttribute("value",adultsCount),setPlaceHolder(displayField,adultsCount,childrenCount)},updateChildren=function(btn,childrenCount){var myForm=btn.closest("form"),displayField=myForm.querySelector("input.combined-adults-children"),adultsField=myForm.querySelector("input[name=adults1]"),childrenField=myForm.querySelector("input[name=children1]"),adultsCount=adultsField.value;childrenField.value=childrenCount,childrenField.setAttribute("value",childrenCount),setPlaceHolder(displayField,adultsCount,childrenCount)}
280,buttonHandler=function(btn){var maxAdults=1;if(btn.classList.contains("add-adult")){var occupancySpan=btn.closest(".room-container").querySelector("span.max-occupancy");occupancySpan&&(maxAdults=parseInt(occupancySpan.dataset.maxPersons)),1===maxAdults&&(btn.disabled=!0)}btn.addEventListener("click",(function(evt){evt.preventDefault();this.classList.contains("add-adult")?function(btn,maxAdults){var adultCountField=btn.previousElementSibling,adultsCount=parseInt(adultCountField.innerText),adultCountInput=adultCountField.querySelector("input[type=text]");adultCountInput?adultCountInput.value=++adultsCount:adultCountField.innerHTML=++adultsCount,btn.disabled=adultsCount>=maxAdults,adultCountField.previousElementSibling.disabled=adultsCount<=1,setAdultButtonText(btn,adultsCount),updateAdults(btn,adultsCount)}(this,maxAdults):this.classList.contains("remove-adult")?function(btn){var adultCountField=btn.nextElementSibling,adultsCount=parseInt(adultCountField.innerText),adultCountInput=adultCountField.querySelector("input[type=text]");adultCountInput?adultCountInput.value=--adultsCount:adultCountField.innerHTML=--adultsCount,btn.disabled=adultsCount<=1;var adultsAddButton=adultCountField.nextElementSibling;adultsAddButton.disabled=!1,setAdultButtonText(adultsAddButton,adultsCount),updateAdults(btn,adultsCount)}(this):this.classList.contains("add-child")?function(btn){var childCountField=btn.previousElementSibling,childrenCount=parseInt(childCountField.innerText),childCountInput=childCountField.querySelector("input[type=text]");childCountInput?childCountInput.value=++childrenCount:childCountField.innerHTML=++childrenCount,btn.disabled=childrenCount>=2,childCountField.previousElementSibling.disabled=childrenCount<=0,updateChildren(btn,childrenCount)}(this):this.classList.contains("remove-child")&&function(btn){var childCountField=btn.nextElementSibling,childrenCount=parseInt(childCountField.innerText),childCountInput=childCountField.querySelector("input[type=text]");childCountInput?childCountInput.value=--childrenCount:childCountField.innerText=--childrenCount,parseInt(childCountField.innerText),btn.disabled=childrenCount<=0,childCountField.nextElementSibling.disabled=childrenCount>=2,updateChildren(btn,childrenCount)}(this)}))},occupancyPanelHandler=function(evt){var toggle=evt.currentTarget||evt.target,roomContainer=toggle.closest(".room-container"),occupancyPanel=roomContainer?roomContainer.querySelector(".occupancy-panel"):null;occupancyPanel&&(roomContainers.forEach((function(container){var panel=container.querySelector(".occupancy-panel");container!==roomContainer?(container.classList.remove("on-top"),panel&&panel.classList.remove("visible")):(container.classList.add("on-top"),panel&&panel.classList.add("visible"))})),document.body.addEventListener("click",(function(evt){evt.target!==occupancyPanel&&evt.target!==toggle&&evt.target.closest(".occupancy-panel")!==occupancyPanel&&occupancyPanel.classList.remove("visible")})))},showSelectedRoomContainers=function(selectedRoomCategory){roomContainers.forEach((function(container){"all"===selectedRoomCategory||container.dataset.roomCategory.trim()===selectedRoomCategory.trim()?container.classList.remove("hidden"):container.classList.add("hidden")}))},setSelectedTab=function(tab){nav.querySelectorAll("li.nav-item, li.dropdown-item").forEach((function(navItem){navItem===tab?navItem.querySelector("a").classList.add("active"):navItem.querySelector("a").classList.remove("active")}))},filterRoomItems=function(evt){var tab="LI"===evt.target.tagName?evt.target:evt.target.closest("li"),selectedRoomCategory=tab.dataset.selectedRoomCategory;showSelectedRoomContainers(selectedRoomCategory),setSelectedTab(tab)},hashFilter="";roomContainers.forEach((function(container){var formToggle=container.querySelector(".form-toggle");formToggle&&formToggle.addEventListener("click",toggleFormVisibility);var combinedDateField=container.querySelector(".combined-arrive-depart");combinedDateField&&function(combinedDateField){if(combinedDateField){combinedDateField.placeholder=formatDate(firstDay)+" - "+formatDate(lastDay);var arrivalDate,departureDate,startD,endD,nightsCount,myForm=combinedDateField.closest("form"),arrivalInput=myForm.querySelector('input[name="arrival"]'),departureInput=myForm.querySelector('input[name="departure"]'),nightsSelect=myForm.querySelector('select[name="nights"]');arrivalInput.value=formatDateDE(firstDay),arrivalInput.setAttribute("value",formatDateDE(firstDay)),departureInput.value=formatDateDE(lastDay),departureInput.setAttribute("value",formatDateDE(lastDay));var firstDayPicked,lastDayPicked,numberOfMonths=winW<=768?1:2,myPicker=new Lightpick({field:combinedDateField,singleDate:!1,numberOfMonths:numberOfMonths,tooltipNights:!0,lang:lang,format:dateFormat,minDate:today,minDays:2,footer
280:!1,locale:{tooltip:{one:toolTipOne,other:toolTipOther}},dropdowns:{years:{min:currentYear,max:nextYear},months:!0},onOpen:function(){myPicker.setDateRange(firstDay,lastDay),myPicker.gotoDate(firstDay)},onSelectStart:function(firstSelectedDate){firstDayPicked=firstSelectedDate;var lastDiv=this.el.querySelector(".lightpick__month:last-child .lightpick__days > div:last-child");firstSelectedDate._i===+lastDiv.getAttribute("data-time")&&this.nextMonth()},onSelectEnd:function(lastSelectedDate){lastDayPicked=lastSelectedDate},onSelect:function(start,end){start&&end&&(start._d>end._d?(arrivalDate=end.format("DD.MM.YYYY"),departureDate=start.format("DD.MM.YYYY"),startD=end._d,endD=start._d):start._d<end._d&&(arrivalDate=start.format("DD.MM.YYYY"),departureDate=end.format("DD.MM.YYYY"),startD=start._d,endD=end._d),firstDay=start._d,lastDay=end._d,arrivalDate&&departureDate&&(arrivalInput.value=arrivalDate,arrivalInput.setAttribute("value",arrivalDate),departureInput.value=departureDate,departureInput.setAttribute("value",departureDate),nightsCount=((endD.getTime()-startD.getTime())/864e5).round().toInt(),isNaN(nightsCount)||(nightsSelect.selectedIndex=nightsCount-1)),combinedDateField.value="",combinedDateField.placeholder=formatDate(startD)+" - "+formatDate(endD))},onClose:function(){firstDayPicked&&(lastDayPicked||(lastDayPicked=moment(firstDayPicked+864e5),firstDay=firstDayPicked._d,lastDay=lastDayPicked._d,arrivalDate=firstDayPicked.format("DD.MM.YYYY"),departureDate=lastDayPicked.format("DD.MM.YYYY"),startD=firstDayPicked._d,endD=lastDayPicked._d,arrivalDate&&departureDate&&(arrivalInput.value=arrivalDate,departureInput.value=departureDate,nightsCount=((endD.getTime()-startD.getTime())/864e5).round().toInt(),isNaN(nightsCount)||(nightsSelect.selectedIndex=nightsCount-1)),combinedDateField.value="",combinedDateField.placeholder=formatDate(startD)+" - "+formatDate(endD)))}})}}(combinedDateField);var submitButton=container.querySelector("input[type=submit]");submitButton&&submitButton.addEventListener("click",submitHandler);var panelToggle=container.querySelector(".combined-adults-children");panelToggle&&panelToggle.addEventListener("focus",occupancyPanelHandler),container.querySelectorAll("button").forEach((function(button){buttonHandler(button)}));var roomCategory=container.dataset.roomCategory;roomCategories.contains(roomCategory)||roomCategories.push(roomCategory);t9n[language]["ad."],t9n[language]["ch."];winW>768&&(" "+t9n[language].adult,t9n[language].children)})),nav&&!mobileLayout&&function(){var elementsForDropDown=[],composedWidth=0,hasDropDownMenu=!1,wrapperWidth=getElementWidth(nav),firstLink=nav.querySelector("li:first-child"),availableWidth=wrapperWidth-getElementWidth(firstLink)-90,dropDownMenu=document.createElement("ul");dropDownMenu.className="dropdown-menu",dropDownMenu.setAttribute("aria-labelledby","roomCatDropdownMenuButton");var dropDownLi=document.createElement("li");dropDownLi.className="dropdown";var dropDownBtn=document.createElement("button");dropDownBtn.className="btn btn-secondary dropdown-toggle",dropDownBtn.setAttribute("type","button"),dropDownBtn.setAttribute("id","roomCatDropdownMenuButton"),dropDownBtn.setAttribute("data-toggle","dropdown"),dropDownBtn.setAttribute("aria-haspopup","true"),dropDownBtn.setAttribute("aria-expanded","false"),dropDownBtn.innerText=t9n[language].more+" ",dropDownLi.insertAdjacentElement("beforeend",dropDownBtn),dropDownLi.insertAdjacentElement("beforeend",dropDownMenu);var showRoomCatDropdownMenu=function(evt){dropDownMenu.classList.add("show"),dropDownBtn.classList.add("show"),evt.target.classList.add("show")},hideRoomCatDropdownMenu=function(evt){dropDownMenu.classList.remove("show"),dropDownBtn.classList.remove("show"),evt.target.classList.remove("show")};roomCategories.forEach((function(category){var span=document.createElement("span");t9n[language][category]?span.innerText=t9n[language][category]:span.innerText=category;var a=document.createElement("a");a.className="nav-link",a.insertAdjacentElement("beforeend",span);var li=document.createElement("li");li.className="nav-item",li.dataset.selectedRoomCategory=category,li.insertAdjacentElement("beforeend",a),nav.insertAdjacentElement("beforeend",li);var itemWidth=getElementWidth(li);(composedWidth+=itemWidth)>availableWidth&&(elementsForDropDown.push(li),li.className="dropdown-item",dropDownMenu.insertAdjacentElement("afterbegin",li),hasDropDownMenu=!0,dropDownLi.addEventListener("mouseenter",showRoomCatDropdownMenu),dropDownLi.addEventListener("mouseleave",hideRoomCatDropdownMenu))})),hasDropDownMenu&&nav.insertAdjacentElement("beforeend",dropDownLi),nav.querySelectorAll("li.nav-item, li.dropdown-item").forEach((function(navItem){navItem.addEventListener("click",filterRoomItems)}))}();var locHash=self.document.location.hash;locHash&&function(locHash){locHash=decodeURIComponent(locHash).replace(/#/g,""),hashFilter=locHash.replace(/_/g," ");for(var menuItems=document.getElementById("room-filter-nav").querySelectorAll("li a"),i=0;i<menuItems.length;i++){var menuItem=menuItems[i],filterText=menuItem.innerText;if(filterText===hashFilter){showSelectedRoomContainers(filterText);var tab=menuItem.parentElement;setSelectedTab(tab)}}}(locHash)}},initHVArrangementPackages=function(){var packageWrap=document.getElementById("arrangementPackageWrap");if(packageWrap){var menuItems=[],allItems=packageWrap.querySelectorAll(".hotelviewArrangementPackage"),filteredItems=allItems,packageFilterList=document.getElementById("packageFilterList"),filterTheList=function(key,el){!function(el){el&&(packageFilterList.querySelectorAll(".selected").forEach((function(item){item.classList.remove("selected"),item.querySelector("a").classList.remove("active")})),"A"===el.tagName?(el.classList.add("active"),el.parentElement.classList.add("selected")):(el.classList.add("selected"),el.querySelector("a").classList.add("active")))}(el),"all"===key?filteredItems=allItems:(filteredItems=[],allItems.forEac
280h((function(item){-1!=item.getAttribute("data-package-categories").indexOf(key)&&filteredItems.push(item)}))),allItems.forEach((function(item){item.style.display="none"})),filteredItems.forEach((function(item){item.style.display="block"}))},showHideDetails=function(evt){evt.preventDefault();var target=evt.target,toggleTextMore=t9n[language]["more-details"],toggleTextLess=t9n[language]["less-details"];target.classList.toggle("open");var details=target.nextElementSibling;target.classList.contains("open")?(target.innerText=toggleTextLess,details.classList.add("showing")):(target.innerText=toggleTextMore,details.classList.remove("showing"))};allItems.forEach((function(item){var toggleDetails=item.querySelector(".details-toggle");item.querySelector(".details")&&toggleDetails&&(toggleDetails.innerText=t9n[language]["more-details"],toggleDetails.addEventListener("click",showHideDetails)),item.dataset.packageCategories.split("|").forEach((function(cat){-1==menuItems.indexOf(cat)&&menuItems.push(cat)})),function(item){var language=window.sessionLanguage?window.sessionLanguage:"German",headline=item.querySelector("h3");if(headline){var h3Text=cleanString(headline.innerHTML);if(-1!=h3Text.indexOf('"GERMAN" = {')){var jObj=valueToJSONObject(h3Text);headline.innerText="German"!==language?jObj.ENGLISH:jObj.GERMAN}var clamped=item.querySelector("h3 + p")}(clamped=headline.nextElementSibling)&&(clampedText=cleanString(clamped.innerHTML),clampedText&&""!==clampedText&&-1!=clampedText.indexOf('"GERMAN" = {'))&&(jObj=valueToJSONObject(clampedText),clamped.innerText="German"!==language?jObj.ENGLISH:jObj.GERMAN);var overlayStrong=item.querySelector(".imgholder .overlay strong");if(overlayStrong){var overlayText=cleanString(overlayStrong.innerHTML);-1!=overlayText.indexOf('"GERMAN" = {')&&(jObj=valueToJSONObject(overlayText),overlayStrong.innerText="Germna"!==language?jObj.ENGLISH:jObj.GERMAN)}}(item),function(item){var priceParas=item.querySelectorAll("p.preisangabe"),divForPricesHeight=0,divForPricesWidth=0,container=item.querySelector(".container");if(priceParas.length>0){var divForPrices=document.createElement("div");divForPrices.className="preisangabe",priceParas.forEach((function(paragraph){var paraHeight=getElementHeight(paragraph),paraWidth=getElementWidth(paragraph);divForPricesHeight+=paraHeight,divForPricesWidth+=paraWidth,paragraph.classList.remove("preisangabe");var pHTML=paragraph.innerHTML;pHTML=pHTML.replace(/EUR/,"€"),paragraph.innerHTML=pHTML;var strong=paragraph.querySelector("strong");strong&&(/(\d+)/g.test(strong.innerHTML)?divForPrices.style.opacity=1:paragraph.style.display="none"),divForPrices.insertAdjacentElement("beforeend",paragraph)}));var submitBtn=item.querySelector("input[type=submit]");submitBtn.insertAdjacentElement("beforebegin",divForPrices);var submitBtnWidth=getElementWidth(submitBtn);divForPricesWidth+=submitBtnWidth;var containerWidth=getElementWidth(container)-12;divForPricesWidth>containerWidth&&(container.style.paddingBottom=divForPricesHeight+"px")}}(item)})),function(menuItems){var elementsForDropDown=[],composedWidth=0,hasDropDownMenu=!1,wrapperWidth=getElementWidth(packageFilterList),availableWidth=wrapperWidth-130,dropDownMenu=document.createElement("ul");dropDownMenu.className="dropdown-menu",dropDownMenu.setAttribute("aria-labelledby","arrangementDropdownMenuButton");var dropDownLi=document.createElement("li");dropDownLi.className="dropdown";var dropDownBtn=document.createElement("button");dropDownBtn.className="btn btn-secondary dropdown-toggle",dropDownBtn.setAttribute("type","button"),dropDownBtn.setAttribute("id","arrangementDropdownMenuButton"),dropDownBtn.setAttribute("data-toggle","dropdown"),dropDownBtn.setAttribute("aria-haspopup","true"),dropDownBtn.setAttribute("aria-expanded","false"),dropDownBtn.innerText=t9n[language].more+" ",dropDownLi.insertAdjacentElement("beforeend",dropDownBtn),dropDownLi.insertAdjacentElement("beforeend",dropDownMenu);var showArrangementDropdownMenu=function(evt){dropDownMenu.classList.add("show"),dropDownBtn.classList.add("show"),evt.target.classList.add("show")},hideArrangementDropdownMenu=function(evt){dropDownMenu.classList.remove("show"),dropDownBtn.classList.remove("show"),evt.target.classList.remove("show")},translatedArrangementCategories=hotelviewArrangementCategories[language];Object.each(translatedArrangementCategories,(function(value,key){if(-1!=menuItems.indexOf(key)){value.replace(/\s/g,"_");var el=document.createElement("a");el.className="nav-link",el.setAttribute("data-packagefilter",key),el.innerHTML=value,el.addEventListener("click",(function(evt){evt.preventDefault(),filterTheList(key,this)}));var li=document.createElement("li");li.className="nav-item",li.insertAdjacentElement("afterbegin",el),packageFilterList.insertAdjacentElement("beforeend",li);var itemWidth=getElementWidth(li);(composedWidth+=itemWidth)>availableWidth&&(elementsForDropDown.push(li),li.className="dropdown-item",dropDownMenu.insertAdjacentElement("afterbegin",li),hasDropDownMenu=!0,dropDownLi.style.width=wrapperWidth-(composedWidth-itemWidth)-130-6+"px",dropDownLi.addEventListener("mouseenter",showArrangementDropdownMenu),dropDownLi.addEventListener("mouseleave",hideArrangementDropdownMenu))}})),hasDropDownMenu&&packageFilterList.insertAdjacentElement("beforeend",dropDownLi)}(menuItems),packageFilterList.querySelector("li").addEventListener("click",(function(evt){evt.preventDefault(),filterTheList("all",this)}));var hashFilter="",locHash=self.document.location.hash;locHash&&(function(locHash){var filterApplied=!1;if(-1!=(locHash=decodeURIComponent(locHash).replace(/#/g,"")).indexOf("|")){var hashParts=locHash.split("|");hashFilter=hashParts[0]}else hashFilter=locHash;hashFilter=hashFilter.replace(/_/g," ");for(var menuItems=packageFilterList.querySelectorAll("li a"),i=0;i<menuItems.length;i++){var menuItem=menuItems[i],packageFilter=menuItem.getAttribute("data-packagefilter");packageFilter===hashFilter&&(filterTheList(packageFilter,menuItem),filterApplied=!0)}if(!filterApplied){var translatedArrangementCategories=hotelviewArrangementCategories[language];Object.each(translatedArrangementCategories,(function(value,key){if(hashFilter===value){var menuItem=packageFilterList.querySelector('li a[data-packagefilter="'+key+'"]');menuItem&&filterTheList(key,menuItem)}}))}}(locHash),function(locHash){if(-1!=(locHash=decodeURIComponent(locHash).replace(/#/g,"")).indexOf("|")){var hashParts=locHash.split("|");hashFilter=hashParts[0]}else hashFilter=locHash;
280allItems.forEach((function(item){var toggleDetails=item.querySelector(".details-toggle"),details=item.querySelector(".details"),packageIdentifier=item.querySelector(".package-identifier");if(details&&toggleDetails&&packageIdentifier&&packageIdentifier.getAttribute("name")===hashFilter){var offset=function(el){for(var _x=0,_y=0;el&&!isNaN(el.offsetLeft)&&!isNaN(el.offsetTop);)_x+=el.offsetLeft-el.scrollLeft,_y+=el.offsetTop-el.scrollTop,el=el.offsetParent;return{top:_y,left:_x}}(item);window.scrollTo({top:offset.top-100,left:0,behavior:"smooth"}),toggleDetails.click()}}))}(locHash))}},hotelviewGallery=new Class({Implements:[Events,Options],options:{baseUrl:"",sliderlistClass:".imgList",thumbnailListClass:".thumbnailList",galleryNavClass:".gallerynav",galleryJson:"",breakpoint_md:910,breakpoint_sm:768,breakpoint_xs:560,breakpoint_xxs:400,thumbsOnLgScreen:5,thumbsOnMdScreen:4,thumbsOnSmScreen:4,thumbsOnXsScreen:3,thumbsOnXxsScreen:2,thumbsOnLightbox:9,lightboxViewportMaxWidth:1600,virtualTourBtnClass:".virtual-tour-btn"},initialize:function(options){this.setOptions(options);var hv_gallery_json=hv_gallery_json||window.hv_gallery_json;hv_gallery_json&&(this.options.galleryJson=hv_gallery_json,this.firstSetLoa
280ded=!1,this.allImagesLoaded=!1,this.allLightboxImagesLoaded=!1,this.isHotelView2021=!1,this.allImages=[],this.allCaptions=[],this.allImages.Alle=[],this.allThumbnails=[],this.allThumbnails.Alle=[],this.allLightboxImages=[],this.allLightboxImages.Alle=[],this.allCaptions.Alle=[],this.allCategories=[],this.allSlides=[],this.allSlides.Alle=[],this.allThumbSlides=[],this.allThumbSlides.Alle=[],this.allLightboxSlides=[],this.allLightboxSlides.Alle=[],this.previewImages=[],this.tmpPreviewImages=[],this.pannellumPanos=[],this.krPanos=[],this.iframePanos=[],this.iframeUrls=[],this.panoIdIndex=0,this.language=window.sessionLanguage?window.sessionLanguage:"German",this.sliderList=document.getElement(this.options.sliderlistClass),this.sliderList?(this.thumbnailList=document.getElement(this.options.thumbnailListClass),this.viewport=this.sliderList.getParent(".viewport"),this.thumbnailViewport=this.thumbnailList.getParent(".viewport"),this.sectionContainer=this.sliderList.getParent("#hotelview-gallery"),this.isHitListGallery=this.sectionContainer.getParent().hasClass("hitlist-popup"),this.isHitListSingleGallery=this.sectionContainer.getParent().hasClass("single-image-popup"),this.galleryNav=document.getElement(this.options.galleryNavClass),this.galleryNavViewport=this.galleryNav.getElement("div.viewport"),this.galleryNavDiv=this.galleryNav.getElement("div.nav"),this.galleryNavDivMaxHeight=this.galleryNavDiv.getStyle("max-height")):this.isHotelView2021=!0,this.galleryNavLinks=[],this.selectedCategory="Alle",this.showSelected,this.galleryNavLinkAll,this.slideUpLink,this.slideWidth,this.thumbnailWidth,this.sliderElements,this.selectedSlides=[],this.selectedThumbSlides=[],this.AlleIsSelected=!0,this.selectedLightboxCategory="360°",this.selectedLightboxSlides=[],this.selectedLightboxThumbSlides=[],this.jsonObj=this.options.galleryJson,this.jsonObj?(this.isMediumScreen=!1,this.isSmallScreen=!1,this.isXsScreen=!1,this.isXxsScreen=!1,winW<=this.options.breakpoint_md&&(this.isMediumScreen=!0,this.isSmallScreen=!1,this.isXsScreen=!1,this.isXxsScreen=!1),winW<=this.options.breakpoint_sm&&(this.isSmallScreen=!0,this.isMediumScreen=!1,this.isXsScreen=!1,this.isXxsScreen=!1),winW<=this.options.breakpoint_xs&&(this.isXsScreen=!0,this.isMediumScreen=!1,this.isSmallScreen=!1,this.isXxsScreen=!1),winW<=this.options.breakpoint_xxs&&(this.isXxsScreen=!0,this.isMediumScreen=!1,this.isSmallScreen=!1,this.isXsScreen=!1),this.lightboxViewportMaxWidth=this.options.lightboxViewportMaxWidth,this.atScreenIndex=0,this.controlsHidden=!1,this.virtualTourBtns=document.getElements(this.options.virtualTourBtnClass),this.virtualTourOpened=!1,this.parseGalleryJson(),this.isHotelView2021?this.setPreviewImages():this.buildCategoryNavigation(),this.preloadFirstSet(),this.initVirtualTourBtns()):console.error("ERROR: No gallery JSON found!"))},parseGalleryJson:function(){var self=this,jsonObj=self.jsonObj,sortedObj={};["360°","AuÃenanlage","Zimmer","Gastronomie","Tagungen","Wellness","Freizeiteinrichtungen","Umgebung"].each((function(sortKey){jsonObj[sortKey]&&(sortedObj[sortKey]=jsonObj[sortKey])})),Object.each(jsonObj,(function(items,key){void 0===sortedObj[key]&&(sortedObj[key]=jsonObj[key])})),Object.each(sortedObj,(function(items,key){self.allCategories.push(key),items.each((function(item){if(item.type){if("pannellum"==item.type)self.pannellumPanos.push(item.img);else if("krpano"==item.type)self.krPanos.push(item.img);else if("iframe"==item.type){var iFrameData={preview:item.img,url:item.url};self.iframePanos.push(item.img),self.iframeUrls.push(iFrameData)}}else self.tmpPreviewImages.length<3&&!item.galleryPreview&&self.tmpPreviewImages.push(item.img);self.allImages.Alle.push(item.img);var thumbnail=item.img.replace(/\/960\//g,"/141/");
280self.allThumbnails.Alle.push(thumbnail);var lightboxImage=item.img.replace(/\/960\//g,"/1600/");if(self.allLightboxImages.Alle.push(lightboxImage),item.caption?item.caption=entity2umlaut(item.caption):item.caption="",self.allCaptions.Alle.push(item.caption),self.allImages[key]||(self.allImages[key]=[]),self.allCaptions[key]||(self.allCaptions[key]=[]),self.allThumbnails[key]||(self.allThumbnails[key]=[]),self.allLightboxImages[key]||(self.allLightboxImages[key]=[]),self.allImages[key].push(item.img),self.allThumbnails[key].push(thumbnail),self.allLightboxImages[key].push(lightboxImage),self.allCaptions[key].push(item.caption),item.galleryPreview){var indx=3-item.galleryPreview;indx<0&&(indx=-indx),self.previewImages[indx]||(self.previewImages[indx]=item.img)}}))}));for(var j=0,i=0;i<3;i++)self.previewImages[i]||(self.previewImages[i]=self.tmpPreviewImages[j],j++)},preloadFirstSet:function(){var self=this,allImages=this.allImages.Alle,allThumbnails=self.allThumbnails.Alle,firstSetImages=allImages.slice(0,2);firstSetImages.append(allThumbnails.slice(0,6));Asset.images(firstSetImages,{onComplete:function(){self.firstSetLoaded=!0,self.isHotelView2021||self.loadGallery()}})},preloadAll:function(){var self=this,allImages=this.allImages.Alle,allThumbnails=self.allThumbn
280ails.Alle;self.isHitListSingleGallery||(allImages=allImages.append(allThumbnails));Asset.images(allImages,{onComplete:function(){self.allImagesLoaded=!0}})},preloadLightboxImgs:function(){var self=this,allLightboxImages=self.allLightboxImages.Alle;Asset.images(allLightboxImages,{onComplete:function(){self.allLightboxImagesLoaded=!0}})},buildCategoryNavigation:function(){var self=this,titlesEN={Alle:"All","360°":"360°","AuÃenanlage":"Outdoor facilities",Zimmer:"Rooms",Gastronomie:"Restaurants",Tagungen:"Conferences",Wellness:"Wellness",Freizeiteinrichtungen:"Leisure facilities",Umgebung:"Local area"};if(!self.isHitListSingleGallery){var categories=self.allCategories;categories.unshift("Alle"),categories.each((function(category){if(self.allImages[category]&&self.allImages[category].length>0){var cssClass=category.toLowerCase();"360°"==category&&(cssClass="surround"),cssClass+=" nav-item";var title=category;"English"==self.language&&(title=titlesEN[category]);var galleryNavLink=new Element("a",{href:"#",rel:category,class:cssClass,html:title,events:{click:function(evt){evt.stop(),self.selectNavLink(this),self.showCategory(category)}}});category==self.selectedCategory&&galleryNavLink.addClass("selected"),galleryNavLink.inject(self.galleryNavDiv),self.galleryNavLinks.push(galleryNavLink)}})),self.galleryNavLinkAll=self.galleryNavLinks[0],this.isXxsScreen?(this.buildDropdownCategoryMenu(),this.setDropDownMenuItems(self.galleryNavLinkAll)):self.checkNavigationWidth()}},checkNavigationWidth:function(){var navViewportSize=this.galleryNavViewport.getDimensions();this.navViewportWidth=navViewportSize.x;var navSize=this.galleryNavDiv.getDimensions();this.navWidth=navSize.x,this.navWidth>this.navViewportWidth&&this.initNavigationSlider()},initNavigationSlider:function(){var self=this,len=self.galleryNavLinks.length,current=0,navPositionX=0,maxLeft=0-(self.navWidth-(self.navViewportWidth-50)),setCurrent=function(cnt){(current=cnt)<len?current+1:current,current>0?current-1:current,0==current?self.slideRight.addClass("disabled"):self.slideRight.removeClass("disabled"),navPositionX>maxLeft?self.slideLeft.removeClass("disabled"):self.slideLeft.addClass("disabled")};self.galleryNavLinks.each((function(navLink){var linkWidth=navLink.getDimensions(!0).x;navLink.store("linkWidth",linkWidth),navLink.set("data-linkwidth",linkWidth)})),self.slideLeft=self.galleryNavViewport.getElement(".slideLeft"),self.slideLeft||(self.slideLeft=new Element("div",{class:"slideLeft",events:{click:function(){if(navPositionX>maxLeft){var w=self.galleryNavLinks[current].retrieve("linkWidth");navPositionX-=w,self.galleryNavDiv.setStyle("left",navPositionX),setCurrent(current+1)}}}}).inject(self.galleryNavDiv,"after")),self.slideRight=self.galleryNavViewport.getElement(".slideRight"),self.slideRight||(self.slideRight=new Element("div",{class:"slideRight disabled",events:{click:function(){if(current>0){var w=self.galleryNavLinks[current-1].retrieve("linkWidth");navPositionX+=w,self.galleryNavDiv.setStyle("left",navPositionX),setCurrent(current-1)}}}}).inject(self.galleryNavDiv,"after")),self.galleryNavDiv.addClass("sliding");var navPosition=self.galleryNavDiv.getPosition();navPositionX=navPosition.x}
280,loadGallery:function(){!1!==this.firstSetLoaded?(this.buildSliderList(),this.buildControls(),this.initGallery(),this.isHitListSingleGallery||(this.buildThumbnailList(),this.buildThumbControls(),this.initThumbSlider()),this.preloadAll(),this.isHitListSingleGallery||this.preloadLightboxImgs()):console.info("Image loading not completed. Aborting!")},buildSliderList:function(){var self=this,allImages=this.allImages,c=0;Object.each(allImages,(function(items,cat){"Alle"!=cat&&(self.allSlides[cat]=[],items.each((function(imgSrc,index){var title=self.allCaptions[cat][index],imglink=new Element("a",{href:imgSrc,class:"slideWrap",title:title,"data-gallery-category":cat,"data-caption":title,"data-global-index":c,styles:{"background-image":"url("+imgSrc+")"},events:{click:function(evt){evt.stop()}}}),li=new Element("li",{class:"slImg",rel:cat}).grab(imglink);if(self.pannellumPanos.contains(imgSrc))li.set("data-pano-type","pannellum");else if(self.krPanos.contains(imgSrc))li.set("data-pano-type","krpano");else if(self.iframePanos.contains(imgSrc)){li.set("data-pano-type","iframe");var iFrameData=self.iframeUrls.filter((function(item){return item.preview==imgSrc}));li.set("data-iframeurl",iFrameData[0].url)}self.allSlides.Alle.push(li),self.allSlides[cat].push(li),li.inject(self.sliderList),c+=1})))}))},buildControls:function(){var self=this;self.nextSlide=self.viewport.getElement(".nextSlide"),self.nextSlide||(self.nextSlide=new Element("div",{class:"nextSlide"}).inject(self.sliderList,"after")),self.previousSlide=self.viewport.getElement(".previousSlide"),self.previousSlide||(self.previousSlide=new Element("div",{class:"previousSlide"}).inject(self.sliderList,"after"));var galleryContainer=self.viewport.getParent("div");self.isHitListGallery||self.isHitListSingleGallery?(self.caption=new Element("div",{class:"popupCaption",id:"popupCaption"}).inject(self.viewport),self.isHitListSingleGallery&&(self.captionFx=new Fx.Tween(self.caption,{property:"bottom"}).set(-51))):(self.caption=galleryContainer.getElement(".caption"),self.caption||(self.caption=new Element("div",{class:"caption"}).inject(self.viewport,"before")),self.zoomify=self.viewport.getElement(".zoomify"),self.zoomify||(self.zoomify=new Element("a",{class:"zoomify",events:{click:function(evt){evt.stop(),self.openLightbox()}}}).inject(self.sliderList,"after")))},initGallery:function(){var self=this,size=self.viewport.getDimensions();self.slideWidth=size.x,self.imgSlider=new SDSlider(self.sliderList,{idPrevious:self.previousSlide,idNext:self.nextSlide,item:{klass:"slImg",size:self.slideWidth},onPrevious:function(){self.setSelectedCategory(this.aItems[this.atScreen]),self.highlightGalleryNavLink(),self.setActiveThumbnail(this.atScreen),self.setCaption(this.aItems[this.atScreen]),self.setAtScreenIndex(this.aItems[this.atScreen]), 281self.checkForPano(this.aItems[this.atScreen])},onNext:function(){self.setSelectedCategory(this.aItems[this.atScreen]),self.highlightGalleryNavLink(),self.setActiveThumbnail(this.atScreen),self.setCaption(this.aItems[this.atScreen]),self.setAtScreenIndex(this.aItems[this.atScreen]),self.checkForPano(this.aItems[this.atScreen])},onGoTo:function(){self.setSelectedCategory(this.aItems[this.atScreen]),self.highlightGalleryNavLink(),self.setActiveThumbnail(this.atScreen),self.setCaption(this.aItems[this.atScreen]),self.setAtScreenIndex(this.aItems[this.atScreen]),self.checkForPano(this.aItems[this.atScreen])}}),self.sliderElements=self.sliderList.getElements("li"),self.sliderElements.setStyle("width",self.slideWidth),self.sliderList.setStyle("width",self.sliderElements.length*self.slideWidth),self.imgSlider.goTo(0)},checkForPano:function(el,lightbox){var panoType=el.get("data-pano-type");panoType?("pannellum"==panoType?this.initPannellumPano(el,lightbox):"krpano"==panoType?this.initKrPano(el,lightbox):"iframe"==panoType&&this.initIFramePano(el,lightbox),this.zoomify&&this.zoomify.isVisible()&&this.zoomify.hide(),!0===lightbox&&this.lightboxCaption.isVisible()&&this.lightboxCaption.hide(),this.isHitListGallery&&this.caption.isVisible()&&this.caption.hide()):(this.zoomify&&!this.zoomify.isVisible()&&this.zoomify.show(),!0===lightbox&&(this.lightboxCaption.isVisible()||this.lightboxCaption.show()),this.isHitListGallery&&(""==this.caption.get("text")?this.caption.hide():this.caption.isVisible()||this.caption.show()))}
281,initPannellumPano:function(el,lightbox){if(!1!==hasWebGL()&&!el.getElement(".panorama")){var galleryImg=el.getElement("a");galleryImg||(galleryImg=el.getElement("span"));var size=galleryImg.getDimensions();this.panoIdIndex+=1;var panoID="pannellum_"+this.panoIdIndex,panoImgSrc960=(new Element("div",{class:"panorama",id:panoID,styles:{height:size.y}}).inject(el),galleryImg.get("href"));panoImgSrc960||(panoImgSrc960=galleryImg.style.backgroundImage.slice(4,-1).replace(/['"]/g,""));var panoImgSrc=panoImgSrc960.replace(/960/,"pannellum");panoImgSrc=panoImgSrc.replace(/1600/,"pannellum");galleryImg.get("data-caption"),Asset.image(panoImgSrc,{onLoad:function(){pannellum.viewer(panoID,{type:"equirectangular",autoLoad:!0,panorama:panoImgSrc,showControls:!1,autoRotate:1,keyboardZoom:!1,preview:panoImgSrc960}),galleryImg.hide()}})}},initKrPano:function(el,lightbox){var self=this;Asset.javascript("/bw/v6/js/krpano/krpano.js",{onLoad:function(){if(!el.getElement(".panorama")){var galleryImg=el.getElement("a")||el.getElement("span"),href=galleryImg.get("href");href||(href=galleryImg.style.backgroundImage.slice(4,-1).replace(/['"]/g,""),href=decodeURI(href));var ix=href.indexOf("panos/"),xmlFile=href.substr(0,ix)+"tour.xml",size=galleryImg.getDimensions();self.panoIdIndex+=1;var panoID="krpano_"+self.panoIdIndex,settings=(new Element("div",{class:"panorama",id:panoID,styles:{height:size.y}}).inject(el),{});settings["skin_settings.thumbs_width"]="112",settings["skin_settings.thumbs_height"]="73",settings["skin_settings.thumbs_padding"]="8",settings["skin_settings.gyro"]=!1,settings["contextmenu.fullscreen"]=!1,winW<=self.options.breakpoint_sm&&(settings["skin_settings.gyro"]=!1,settings["skin_settings.thumbs_opened"]=!1,settings["skin_settings.thumbs_width"]="112",settings["skin_settings.thumbs_height"]="73",settings["skin_settings.thumbs_padding"]="8",settings["skin_settings.design_bgalpha"]="1"),winW<=self.options.breakpoint_xs&&(settings["skin_settings.gyro"]=!1,settings["skin_settings.thumbs_opened"]=!1,settings["skin_settings.thumbs_width"]="112",settings["skin_settings.thumbs_height"]="73",settings["skin_settings.thumbs_padding"]="8",settings["skin_settings.design_bgalpha"]="1"),embedpano({swf:"/bw/v6/js/krpano/krpano.swf",xml:xmlFile,target:panoID,html5:"prefer",vars:settings,onready:function hidemenu(krpano){winW<=self.options.breakpoint_xs&&krpano.call("skin_hideskin();")}}),galleryImg.hide()}}})},initIFramePano:function(el,lightbox){if(!el.getElement("iframe")){var galleryImg=el.getElement("a");galleryImg||(galleryImg=el.getElement("span"));new Element("div",{class:"spinner"}).inject(galleryImg);var iFrameUrl=el.get("data-iframeurl"),size=galleryImg.getDimensions();new Element("iframe",{src:iFrameUrl,width:"100%",height:size.y,events:{load:function(){galleryImg.hide()}}}).inject(el);__cmp("addEventListener",["vendorconsent",function(e,o){galleryImg.hide()},!1],null)}},setAtScreenIndex:function(el){var index=el.getElement("a").get("data-global-index");this.atScreenIndex=parseInt(index)},setCaption:function(item){var dataCaption=item.getElement(".slideWrap").get("data-caption");dataCaption?this.isHitListSingleGallery&&this.captionFx.start(0):(dataCaption="",this.isHitListSingleGallery&&this.captionFx.set(-51)),this.caption.set("html","<span>"+dataCaption+"</span>")},selectNavLink:function(el){"Alle"==el.get("rel")?this.AlleIsSelected=!0:this.AlleIsSelected=!1,this.galleryNavLinks.each((function(navLink){navLink.removeClass("selected")})),el.addClass("selected"),this.isXxsScreen&&this.setDropDownMenuItems(el)},setActiveThumbnail:function(atScreen){if(!this.isHitListSingleGallery){this.thumbSlider&&this.thumbSlider.goTo(atScreen);var activeThumbnail=this.thumbnailList.getElement("li.active");activeThumbnail&&activeThumbnail.removeClass("active"),this.thumbnailList.getElements("li")[atScreen].addClass("active")}},setSelectedCategory:function(el){var self=this;!0===self.AlleIsSelected?self.selectedCategory="Alle":self.selectedCategory=el.get("rel"),self.galleryNavLinks.each((function(navLink){navLink.removeClass("selected"),navLink.get("rel")==self.selectedCategory&&navLink.addClass("selected")}))},setDropDownMenuItems:function(el){var self=this;self.selectedCategory=el.get("text");var cssClass="showSelected ",category=el.get("rel").toLowerCase();if("360°"==category&&(category="surround"),self.showSelected&&(cssClass=self.showSelected.hasClass("closed")?"showSelected closed "+category:"showSelected "+category,self.showSelected.set({text:self.selectedCategory,class:cssClass})),"Alle"!=self.selectedCategory){var allLinks=Array.clone(self.galleryNavLinks),linksReordered=[el].append(allLinks);self.galleryNavDiv.getElements("a.nav-item").dispose(),linksReordered.each((function(link){link.inject(self.showSelected,"before")})),self.galleryNavDiv.setStyle("padding-top","48px")}else{allLinks=Array.clone(self.galleryNavLinks);self.galleryNavDiv.getElements("a.nav-item").dispose(),allLinks.each((function(link){link.inject(self.showSelected,"before")})),self.galleryNavDiv.setStyle("padding-top","0px")}},showCategory:function(category){this.selectedCategory=category,this.selectedSlides=this.allSlides[category],this.selectedThumbSlides=this.allThumbSlides[category],this.updateSliderList(),this.updateThumbnailList()},updateSliderList:function(){var self=this;self.sliderList.getElements("li").dispose(),self.selectedSlides.each((function(slide){slide.inject(self.sliderList)})),self.imgSlider.aItems=self.selectedSlides,self.sliderList.setStyle("width",self.selectedSlides.length*self.slideWidth),self.imgSlider.goTo(0),self.imgSlider.reset()},updateThumbnailList:function(){var self=this;self.thumbnailList.getElements("li").dispose(),self.selectedThumbSlides.each((function(thumbn
281ail){thumbnail.inject(self.thumbnailList)})),self.thumbSlider.aItems=self.selectedThumbSlides,self.thumbnailList.getElements("li").setStyle("width",self.thumbnailWidth),self.thumbnailList.setStyle("width",self.selectedThumbSlides.length*self.thumbnailWidth),self.thumbSlider.goTo(0),self.setActiveThumbnail(0),self.thumbSlider.reset()},highlightGalleryNavLink:function(rel){var self=this;self.galleryNavLinks.each((function(g){g.get("rel")==self.selectedCategory?g.addClass("selected"):g.removeClass("selected")}))},buildThumbnailList:function(){var self=this,allThumbnails=self.allThumbnails,indexAll=(self.sliderGoTo.bind(self),0),titleTour=LS("TOUR").toUpperCase();Object.each(allThumbnails,(function(items,cat){if("Alle"!=cat){var indexCat=0;self.allThumbSlides[cat]=[],items.each((function(imgSrc,index){var thumbLink=new Element("a",{class:"thumbholder",styles:{"background-image":"url("+imgSrc+")"}});thumbLink.addEvent("click",(function(evt){evt.stop(),self.sliderGoTo(thumbLink)}));var li=new Element("li",{class:"thumb"}).grab(thumbLink),imgSrc960=self.allImages[cat][index];if(self.pannellumPanos.contains(imgSrc960))new Element("em",{text:"PANORAMA"}).inject(thumbLink);else if(self.krPanos.contains(imgSrc960))new Element("em",{text:titleTour}).inject(thumbLink);else if(self.iframePanos.contains(imgSrc960))new Element("em",{text:"PANORAMA"}).inject(thumbLink);self.pannellumPanos.contains(imgSrc)&&li.set("data-pano-type","pannellum"),li.getElement("a.thumbholder").store("index",indexAll++),self.allThumbSlides.Alle.push(li),self.thumbnailList&&li.inject(self.thumbnailList);var liCat=li.clone(),thumbLinkCat=liCat.getElement("a.thumbholder");thumbLinkCat.store("index",indexCat++),thumbLinkCat.addEvent("click",(function(evt){evt.stop(),self.sliderGoTo(thumbLinkCat)})),self.allThumbSlides[cat].push(liCat)}))}}))},sliderGoTo:function(el){var index=el.retrieve("index");this.imgSlider.goTo(index)},buildThumbControls:function(){this.nextThumb=new Element("div",{class:"nextThumb"}).inject(this.thumbnailViewport,"after"),this.previousThumb=new Element("div",{class:"previousThumb"}).inject(this.thumbnailViewport,"after")},initThumbSlider:function(){var self=this,size=self.thumbnailViewport.getDimensions(),thumbsToShow=self.options.thumbsOnLgScreen;self.isMediumScreen?thumbsToShow=self.options.thumbsOnMdScreen:self.isSmallScreen?thumbsToShow=self.options.thumbsOnSmScreen:self.isXsScreen?thumbsToShow=self.options.thumbsOnXsScreen:self.isXxsScreen&&(thumbsToShow=self.options.thumbsOnXxsScreen),self.thumbnailWidth=(size.x/thumbsToShow).round();var smImgSliderElements=self.thumbnailList.getElements("li");smImgSliderElements.length>5?(self.thumbSlider=new SDSlider(self.thumbnailList,{idPrevious:self.previousThumb,idNext:self.nextThumb,item:{klass:"thumb",size:self.thumbnailWidth},shown:thumbsToShow,onPrevious:function(){self.setActiveThumbnail(this.atScreen),self.imgSlider.goTo(this.atScreen)},onNext:function(){self.setActiveThumbnail(this.atScreen),self.imgSlider.goTo(this.atScreen)}}),self.thumbnailList.getElements("li").setStyle("width",self.thumbnailWidth),self.thumbnailList.setStyle("width",smImgSliderElements.length*self.thumbnailWidth),self.setActiveThumbnail(0)):(self.thumbnailWidth=159,self.thumbnailList.getElements("li").setStyle("width",self.thumbnailWidth))},buildDropdownCategoryMenu:function(){var boundToggleNav=this.toggleNav.bind(this),boundToggleNavMaxHeight=this.toggleNavMaxHeight.bind(this);this.showSelected=new Element("a",{class:"showSelected",events:{click:boundToggleNav}}).inject(this.galleryNavDiv),this.galleryNavLinks.length>7&&(this.slideUpLink=new Element("a",{class:"slideUp",events:{click:boundToggleNavMaxHeight}}).inject(this.galleryNavDiv)),this.toggleNav()},toggleNav:function(evt){evt&&evt.stop();this.showSelected.hasClass("closed")?(this.showSelected.removeClass("closed"),this.slideUpLink&&this.slideUpLink.show(),this.galleryNavDiv.setStyle("max-height",this.galleryNavDivMaxHeight)):(this.showSelected.addClass("closed"),this.slideUpLink&&this.slideUpLink.hide(),this.galleryNavDiv.setStyle("max-height","48px"))},toggleNavMaxHeight:function(evt){evt.stop();this.slideUpLink.hasClass("showAll")?(this.slideUpLink.removeClass("showAll"),this.galleryNavDiv.setStyle("max-height",this.galleryNavDivMa
281xHeight)):(this.slideUpLink.addClass("showAll"),this.galleryNavDiv.setStyle("max-height","none"))},getScreenWidth:function(){return document.body&&document.body.offsetWidth&&(winW=document.body.offsetWidth),"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth&&(winW=document.documentElement.offsetWidth),window.innerWidth&&(winW=window.innerWidth),winW},getScreenHeight:function(){return document.body&&document.body.offsetHeight&&(winH=document.body.offsetHeight),"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetHeight&&(winH=document.documentElement.offsetHeight),window.innerHeight&&(winH=window.innerHeight),winH},openLightbox:function(){this.overlay&&this.lightboxSlider&&!this.virtualTourOpened?(this.lightboxSlider.jumpTo(this.atScreenIndex),this.overlay.setStyles({display:"block"})):(this.buildOverlay(),this.buildLightboxGalleryContainer(),this.buildLightboxSliderList(),this.buildLightboxControls(),this.sizeLightboxViewport(),this.initLightboxGallery(),this.buildLightboxThumbnailList(),this.buildLightboxThumbControls(),this.initLightboxThumbSlider()),this.virtualTourOpened=!1,document.body.setStyle("overflow","hidden")},buildOverlay:function(){var self=this;self.overlay=new Element("div",{id:"hvgOverlay"}),self.overlayCloseBtn=new Element("div",{class:"overlayCloseBtn",events:{click:function(evt){evt.stop(),self.closeOverlay()}}}).inject(self.overlay),document.id(document.body).adopt(self.overlay)},closeOverlay:function(){this.overlay.setStyles({display:"none"}),document.body.setStyle("overflow","auto")},buildLightboxGalleryContainer:function(){this.lightboxGalleryContainer=new Element("div",{class:"lightboxGallery",id:"lightboxGallery"}).inject(this.overlay),this.lightboxViewport=new Element("div",{class:"viewport"}).inject(this.lightboxGalleryContainer),this.lightboxSliderList=new Element("ul",{class:"imgList"}).inject(this.lightboxViewport),this.lightboxCaption=new Element("div",{class:"lightboxCaption",id:"lightboxCaption"}).inject(this.lightboxViewport),this.lightboxCaptionFx=new Fx.Tween(this.lightboxCaption,{property:"bottom"}).set(-51)},buildLightboxSliderList:function(){var self=this,allImages=self.allLightboxImages;self.allLightboxSlides.Alle=[],self.lightboxSliderList.getElements("li").dispose(),Object.each(allImages,(function(items,cat){"Alle"!=cat&&(self.allLightboxSlides[cat]=[],items.each((function(imgSrc,index){var title=self.allCaptions[cat][index],imglink=new Element("span",{class:"slideWrap",rel:"lightbox",title:title,"data-gallery-category":cat,"data-caption":title,styles:{"background-image":"url("+imgSrc+")"},events:{click:function(evt){evt.stop()}}}),li=new Element("li",{class:"lightboxImg",rel:cat}).grab(imglink),imgSrc960=self.allImages[cat][index];if(self.pannellumPanos.contains(imgSrc960))li.set("data-pano-type","pannellum");else if(self.krPanos.contains(imgSrc960))li.set("data-pano-type","krpano");else if(self.iframePanos.contains(imgSrc960)){li.set("data-pano-type","iframe");var iFrameData=self.iframeUrls.filter((function(item){return item.preview==imgSrc960}));li.set("data-iframeurl",iFrameData[0].url)}self.allLightboxSlides.Alle.push(li),self.allLightboxSlides[cat].push(li),li.inject(self.lightboxSliderList)})))}))},build360LightboxSliderList:function(){var self=this,all360Images=self.allLightboxImages["360°"];self.allLightboxSlides["360°"]=[],all360Images.each((function(imgSrc,index){var title=self.allCaptions["360°"][index],imglink=new Element("span",{class:"slideWrap",rel:"lightbox",title:title,"data-gallery-category":"360°","data-caption":title,styles:{"background-image":"url("+imgSrc+")"},events:{click:function(evt){evt.stop()}}}),li=new Element("li",{class:"lightboxImg",rel:"360°"}).grab(imglink),imgSrc960=self.allImages["360°"][index];if(self.pannellumPanos.contains(imgSrc960))li.set("data-pano-type","pannellum");else if(self.krPanos.contains(imgSrc960))li.set("data-pano-type","krpano");else if(self.iframePanos.contains(imgSrc960)){li.set("data-pano-type","iframe");var iFrameData=self.iframeUrls.filter((function(item){return item.preview==imgSrc960}));li.set("data-iframeurl",iFrameData[0].url)}self.allLightboxSlides.Alle.push(li),self.allLightboxSlides["360°"].push(li),li.inject(self.lightboxSliderList)}))}
281,buildLightboxControls:function(){this.nextLightboxSlide=new Element("div",{class:"nextSlide"}).inject(this.lightboxSliderList,"after"),this.previousLightboxSlide=new Element("div",{class:"previousSlide"}).inject(this.lightboxSliderList,"after")},sizeLightboxViewport:function(){var size=this.lightboxViewport.getDimensions();this.lightboxSlideWidth=size.x;var ratio=this.lightboxSlideWidth/this.lightboxViewportMaxWidth;this.lightboxSlideHeight=size.y*ratio,this.lightboxSlideHeight<350&&(this.lightboxSlideHeight=350);var winH=winH||this.getScreenHeight(),top=.33*winH-this.lightboxSlideHeight/2;top<22&&(top=22),this.lightboxGalleryContainer.setStyles({top:top,height:this.lightboxSlideHeight}),this.lightboxViewport.setStyle("height",this.lightboxSlideHeight),this.lightboxSliderList.setStyle("height",this.lightboxSlideHeight),this.previousLightboxSlide.setStyle("height",this.lightboxSlideHeight),this.nextLightboxSlide.setStyle("height",this.lightboxSlideHeight),this.lightboxViewport.setStyle("width",this.lightboxSlideWidth)},initLightboxGallery:function(){var self=this;self.lightboxSlider=new SDSlider(self.lightboxSliderList,{idPrevious:self.previousLightboxSlide,idNext:self.nextLightboxSlide,item:{klass:"lightboxImg",size:self.lightboxSlideWidth},onPrevious:function(){self.setActiveLightboxThumbnail(this.atScreen),self.setLightboxCaption(this.aItems[this.atScreen]);var allEls=self.lightboxSliderList.getElements("li");self.checkForPano(allEls[this.atScreen],lightbox=!0)},onNext:function(){self.setActiveLightboxThumbnail(this.atScreen),self.setLightboxCaption(this.aItems[this.atScreen]);var allEls=self.lightboxSliderList.getElements("li");self.checkForPano(allEls[this.atScreen],lightbox=!0)},onGoTo:function(){self.setActiveLightboxThumbnail(this.atScreen),self.setLightboxCaption(this.aItems[this.atScreen]);var allEls=self.lightboxSliderList.getElements("li");self.checkForPano(allEls[this.atScreen],lightbox=!0)}}),self.lightboxSliderElements=self.lightboxSliderList.getElements("li"),self.lightboxSliderElements.setStyle("width",self.lightboxSlideWidth),self.lightboxSliderElements.setStyle("height",self.lightboxSlideHeight),self.lightboxSliderList.getElements("li span").setStyle("height",self.lightboxSlideHeight),self.lightboxSliderList.setStyle("width",self.lightboxSliderElements.length*self.lightboxSlideWidth),self.lightboxSlider.jumpTo(self.atScreenIndex)},buildLightboxThumbnailList:function(){var self=this,winH=winH||self.getScreenHeight(),galleryTop=.33*winH-self.lightboxSlideHeight/2;galleryTop<22&&(galleryTop=22);var thumbTop=galleryTop+self.lightboxSlideHeight;self.lightBoxThumbnailGallery=new Element("div",{class:"thumbnailGallery",styles:{top:thumbTop}}).inject(self.overlay),self.lightboxThumbnailViewportWrap=new Element("div",{class:"viewportWrap"}).inject(self.lightBoxThumbnailGallery),self.lightboxThumbnailViewport=new Element("div",{class:"viewport"}).inject(self.lightboxThumbnailViewportWrap),self.lightboxThumbnailList=new Element("ul",{class:"thumbnailList"}).inject(self.lightboxThumbnailViewport),0===self.allThumbSlides.Alle.length&&self.buildThumbnailList(),self.allThumbSlides.Alle.each((function(thumbSlide,index){var lightboxThumbSlide=thumbSlide.clone();lightboxThumbSlide.set("class","lightboxThumbSlide");var thumbLink=lightboxThumbSlide.getElement("a");thumbLink.addEvent("click",(function(evt){evt.stop(),self.lightboxSliderGoTo(thumbLink)})),thumbLink.store("index",index),lightboxThumbSlide.inject(self.lightboxThumbnailList)}))},build360LightboxThumbnailList:function(){var self=this,winH=winH||self.getScreenHeight(),galleryTop=.33*winH-self.lightboxSlideHeight/2;galleryTop<22&&(galleryTop=22);var thumbTop=galleryTop+self.lightboxSlideHeight;(self.lightBoxThumbnailGallery=new Element("div",{class:"thumbnailGallery",styles:{top:thumbTop}}).inject(self.overlay),self.lightboxThumbnailViewportWrap=new Element("div",{class:"viewportWrap"}).inject(self.lightBoxThumbnailGallery),self.lightboxThumbnailViewport=new Element("div",{class:"viewport"}).inject(self.lightboxThumbnailViewportWrap),self.lightboxThumbnailList=new Element("ul",{class:"thumbnailList"}).inject(self.lightboxThumbnailViewport),self.allThumbSlides["360°"]&&self.allThumbSlides["360°"].length>0)?self.allThumbSlides["360°"].each((function(thumbSlide,index){var lightboxThumbSlide=thumbSlide.clone();lightboxThumbSlide.set("class","lightboxThumbSlide");var thumbLink=lightboxThumbSlide.getElement("a");thumbLink.addEvent("click",(function(evt){evt.stop(),self.lightboxSliderGoTo(thumbLink)})),thumbLink.store("index",index),lightboxThumbSlide.inject(self.lightboxThumbnailList)})):self.lightBoxThumbnailGallery.style.visibility="hidden"},buildLightboxThumbControls:function(){this.nextLightboxThumb=new Element("div",{class:"nextThumb"}).inject(this.lightboxThumbnailViewport,"after"),this.previousLightboxThumb=new Element("div",{class:"previousThumb"}).inject(this.lightboxThumbnailViewport,"after")},initLightboxThumbSlider:function(){var self=this,size=self.lightboxThumbnailViewport.getDimensions(),thumbsToShow=self.options.thumbsOnLightbox;
281for(self.lightboxThumbnailWidth=(size.x/thumbsToShow).round();self.lightboxThumbnailWidth<150;)thumbsToShow-=1,self.lightboxThumbnailWidth=(size.x/thumbsToShow).round();thumbsToShow<1&&(thumbsToShow=1,self.lightboxThumbnailWidth=(size.x/thumbsToShow).round());var lightboxThumbSliderElements=self.lightboxThumbnailList.getElements("li");self.lightboxThumbSlider=new SDSlider(self.lightboxThumbnailList,{idPrevious:self.previousLightboxThumb,idNext:self.nextLightboxThumb,item:{klass:"lightboxThumbSlide",size:self.lightboxThumbnailWidth},shown:thumbsToShow,onPrevious:function(){self.setActiveLightboxThumbnail(this.atScreen),self.lightboxSlider.goTo(this.atScreen)},onNext:function(){self.setActiveLightboxThumbnail(this.atScreen),self.lightboxSlider.goTo(this.atScreen)}}),lightboxThumbSliderElements.setStyle("width",self.lightboxThumbnailWidth),self.lightboxThumbnailList.setStyle("width",lightboxThumbSliderElements.length*self.lightboxThumbnailWidth);var viewportWidth=thumbsToShow*self.lightboxThumbnailWidth;self.lightboxThumbnailViewport.setStyles({width:viewportWidth,marginLeft:"auto",marginRight:"auto"}),self.lightboxThumbSlider.jumpTo(self.atScreenIndex)},setActiveLightboxThumbnail:function(atScreen){if(this.lightboxThumbSlider&&this.lightboxThumbSlider.goTo(atScreen),this.lightboxThumbnailList){var activeThumbnail=this.lightboxThumbnailList.getElement("li.active");activeThumbnail&&activeThumbnail.removeClass("active");var lightboxThumbSliderElements=this.lightboxThumbnailList.getElements("li");lightboxThumbSliderElements.length&&lightboxThumbSliderElements[atScreen]&&lightboxThumbSliderElements[atScreen].addClass("active")}},lightboxSliderGoTo:function(el){var index=el.retrieve("index");this.lightboxSlider.goTo(index)},setLightboxCaption:function(item){if("krpano"==item.get("data-pano-type")||"iframe"==item.get("data-pano-type"))this.lightboxCaptionFx.set(-51);else{var dataCaption=item.getElement(".slideWrap").get("data-caption");dataCaption&&""!=dataCaption.trim()?(this.lightboxCaption.set("html","<span>"+dataCaption+"</span>"),this.lightboxCaptionFx.start(0)):this.lightboxCaptionFx.set(-51)}},initVirtualTourBtns:function(){var self=this;self.virtualTourBtns.each((function(btn){btn.addEvent("click",(function(evt){evt.stop(),self.openVirtualTourLightBox()}))}))},openVirtualTourLightBox:function(){this.selectedLightboxThumbSlides=this.allThumbSlides["360°"],this.overlay&&this.lightboxSlider?(this.selectedLightboxSlides=this.allLightboxSlides["360°"],this.virtualTourOpened||(this.updateLightboxSliderList(),this.updateLightboxThumbnailList()),this.lightboxSlider.goTo(0),this.overlay.setStyles({display:"block"})):(this.buildOverlay(),this.buildLightboxGalleryContainer(),this.build360LightboxSliderList(),this.selectedLightboxSlides=this.allLightboxSlides["360°"],this.buildLightboxControls(),this.sizeLightboxViewport(),this.initLightboxGallery(),this.thumbnailList&&0===this.thumbnailList.getElements("li").length&&this.buildThumbnailList(),this.build360LightboxThumbnailList(),this.buildLightboxThumbControls(),this.initLightboxThumbSlider()),this.virtualTourOpened=!0,document.body.setStyle("overflow","hidden")},updateLightboxSliderList:function(){var self=this;self.lightboxSliderList.getElements("li").dispose(),self.selectedLightboxSlides.each((function(slide){slide.inject(self.lightboxSliderList)})),self.lightboxSlider.aItems=self.selectedLightboxSlides,self.lightboxSliderList.setStyle("width",self.selectedLightboxSlides.length*self.lightboxSlideWidth),self.lightboxSlider.goTo(0),self.lightboxSlider.reset()},updateLightboxThumbnailList:function(){var self=this;self.lightboxThumbnailList.getElements("li").dispose(),self.selectedLightboxThumbSlides.each((function(thumbSlide,index){var lightboxThumbSlide=thumbSlide.clone();lightboxThumbSlide.set("class","lightboxThumbSlide");var thumbLink=lightboxThumbSlide.getElement("a");thumbLink.addEvent("click",(function(evt){evt.stop(),self.lightboxSliderGoTo(thumbLink)})),thumbLink.store("index",index),lightboxThumbSlide.inject(self.lightboxThumbnailList)})),self.lightboxThumbSlider.aItems=self.selectedLightboxThumbSlides,self.lightboxThumbnailList.getElements("li").setStyle("width",self.lightboxThumbnailWidth),self.lightboxThumbnailList.setStyle("width",self.selectedLightboxThumbSlides.length*self.lightboxThumbnailWidth),self.lightboxThumbSlider.goTo(0),self.setActiveLightboxThumbnail(0),self.lightboxThumbSlider.reset()},setPreviewImages:function(){var self=this,galleryPreview=document.querySelector(".gallery-preview div"),indx=1;Object.each(self.previewImages,(function(src,key){-1===key.indexOf("Image")&&(key="Image"+indx);var previewLink=document.createElement("a");previewLink.className=key,previewLink.style.backgroundImage="url("+src+")",previewLink.setAttribute("href","about:blank"),previewLink.addEventListener("click",(function(evt){evt.preventDefault(),self.openLightbox()})),galleryPreview.insertAdjacentElement("beforeend",previewLink),indx+=1}));var galleryOpener=document.querySelector(".gallery-preview .gallery-opener");galleryOpener&&galleryOpener.addEventListener("click",(function(evt){evt.preventDefault(),self.openLightbox()}))}}),initClampedTexts=function(){document.querySelectorAll(".clamped-text").forEach((function(item,i){var readMore=item.nextElementSibling,allReadMoreLinks=item.parentElement.querySelectorAll(".toggle-text-length");if(allReadMoreLinks.length>1){var tagName=item.tagName,allItems=item.parentElement.getElementsByTagName(tagName);for(i=0;i<allItems.length;i++)allItems[i]===item&&(readMore=allReadMoreLinks[i])}else 1===allReadMoreLinks.length?readMore=allReadMoreLinks[0]:((readMore=document.createElement("a")).className="point-right toggle-text-length",item.insertAdjacentElement("afterend",readMore));var showText=item.dataset.showText,hideText=item.dataset.hideText;readMore.innerText=showText;var maxChars=mobileLayout?item.dataset.maxCharsMobile:item.dataset.maxChars,maxWords=mobileLayout?item.dataset.maxWordsMobile:item.dataset.maxWords;if(maxWords){var totalWordsCount=wordCount(item.innerText);item.classList.add("truncateByWords"),(hotelViewTruncateInstance=new mooTruncate({words:maxWords,chars:-1})).add(item),totalWordsCount<=maxWords?hide(readMore):readMore.addEventListener("click",(function(evt){evt.preventDefault(),item.classList.contains("open")?(item.classList.remove("open"),hotelViewTruncateInstance.showCutText(item),readMore.innerText=showText,readMore.classList.remove("collapse-up")):(item.classList.add("open"),hotelViewTruncateInstance.showFullText(item),readMore.innerText=hideText,readMore.classList.add("collapse-up"))}))}else if(maxChars){var hotelViewTruncateInstance,totaCharsCount=item.innerText.length;item.classList.add("truncateByChars"),(hotelViewTruncateInstance=new mooTruncate({words:-1,chars:maxChars})).add(item),totaCharsCount<=maxChars?hide(readMore):readMore.addEventListener("click",(function(evt){evt.preventDefault(),item.classList.contains("open")?(item.classList.remove("open"),hotelViewTruncateInstance.showCutText(item),readMore.innerText=showText,readMore.classList.remove("collapse-up")):(item.classList.add("open"),hotelViewTruncateInstance.showFullText(item),readMore.innerText=hideText,readMore.classList.add("collapse-up"))}))}else readMore.addEventListener("click",(function(evt){evt.preventDefault(),item.classList.contains("open")?(item.classList.remove("open"),readMore.innerText=showText,readMore.classList.remove("collapse-up")):(item.classList.add("open"),readMore.innerText=hideText,readMore.classList.add("collapse-up"))}))}))},buildCalendarEventsV6=function(){var eventCalendarWrap=$("eventCalendarWrap");if(eventCalendarWrap&&calendarEvents&&0!==calendarEvents.length){var filteredCalendarEvents,buttonAddThree,language=window.sessionLanguage?window.sessionLanguage:"German",defaultLinkText="German"==language?"Mehr erfahren":"Learn more",sortedCalendarEvents=[],currentItemCount=0,bisText="German"===language?" bis ":" to ",moreText="German"===language?"weitere Veranstaltungen laden":"load more events",changeDateFormat=function(dateString,param){var temp;if("DE-EN"==param)return(temp=dateString.split("."))[1]+"/"+temp[0]+"/"+temp[2];if(param="EN-DE"){if(-1!=dateString.indexOf("/"))temp=dateString.split("/");else{if(-1==dateString.indexOf("-"))return!1;temp=dateString.split("-")}
281return temp[1]+"."+temp[0]+"."+temp[2]}};sortedCalendarEvents=calendarEvents.length>1?calendarEvents.slice().sort((function(a,b){var formattedStartDateA="German"==language?a.startDate:changeDateFormat(a.startDate,"DE-EN"),formattedStartDateB="German"==language?b.startDate:changeDateFormat(b.startDate,"DE-EN"),dateA=Date.parse(formattedStartDateA),dateB=Date.parse(formattedStartDateB),comparison=0;return dateA>dateB?comparison=1:dateA<dateB&&(comparison=-1),comparison})):calendarEvents;var today=new Date;if((filteredCalendarEvents=sortedCalendarEvents.filter((function(cEvent){if(cEvent.endDate){var formattedEndDate="German"==language?cEvent.endDate:changeDateFormat(cEvent.endDate,"DE-EN");return Date.parse(formattedEndDate).increment("day",1)>today?cEvent:void 0}var formattedStartDate="German"==language?cEvent.startDate:changeDateFormat(cEvent.startDate,"DE-EN");return Date.parse(formattedStartDate).increment("day",1)>today?cEvent:void 0}))).length<3)if(eventCalendarWrap.addClass("flexStart"),0===filteredCalendarEvents.length)eventCalendarWrap.closest(".row").addClass("hidden");var buildEventItem=function(cEvent){var dateStartT,dateEndT,until,eventImgSrc,eventStartDate,eventEndDate,eventTitle,eventInfo,eventHref,eventLinkText="";cEvent.startDate&&""!=cEvent.startDate&&(eventStartDate="German"==language?cEvent.startDate:changeDateFormat(cEvent.startDate,"DE-EN")),cEvent.endDate&&""!=cEvent.endDate&&(eventEndDate="German"==language?cEvent.endDate:changeDateFormat(cEvent.endDate,"DE-EN")),(eventImgSrc=cEvent.imgSrc)?(eventImgSrc.lastIndexOf("/")==eventImgSrc.length-1&&(eventImgSrc+="image.jpg"),-1!=eventImgSrc.indexOf("/451/")&&(eventImgSrc=eventImgSrc.replace(/451/g,"350")),isValidImageSrc(eventImgSrc)||(eventImgSrc="/bw/v6/img/blank.gif")):eventImgSrc="/bw/v6/img/blank.gif",eventTitle="German"==language?cEvent.title_DE:cEvent.title_EN,eventInfo="German"==language?cEvent.info_DE:cEvent.info_EN,eventHref="German"==language?cEvent.href_DE:cEvent.href_EN,(eventLinkText="German"==language?cEvent.linkText_DE:cEvent.linkText_EN)&&""!=eventLinkText||(eventLinkText=defaultLinkText);var eventDiv=document.createElement("div");eventDiv.className="calendarEvent";var eventImgWrap=document.createElement("div");eventImgWrap.className="calendarEventImgWrap",eventDiv.insertAdjacentElement("beforeend",eventImgWrap);var eventImg=document.createElement("img");eventImg.src=eventImgSrc,eventImg.className="calendarEventImg",eventImgWrap.insertAdjacentElement("beforeend",eventImg);var eventDateP=document.createElement("p");eventDateP.className="calendarEventDate",eventDiv.insertAdjacentElement("beforeend",eventDateP), 282""!=eventStartDate&&((dateStartT=document.createElement("time")).setAttribute("datetime",eventStartDate),dateStartT.innerText=eventStartDate,eventDateP.insertAdjacentElement("beforeend",dateStartT)),eventEndDate&&""!=eventEndDate&&((until=document.createElement("span")).innerText=bisText,eventDateP.insertAdjacentElement("beforeend",until),(dateEndT=document.createElement("time")).setAttribute("datetime",eventEndDate),dateEndT.innerText=eventEndDate,eventDateP.insertAdjacentElement("beforeend",dateEndT)),eventDiv.insertAdjacentElement("beforeend",eventDateP);var eventHeadline=document.createElement("h3");eventHeadline.className="calendarEventName",eventHeadline.innerHTML=eventTitle,eventDiv.insertAdjacentElement("beforeend",eventHeadline);var eventInfoP=document.createElement("p");if(eventInfoP.className="calendarEventInfo",eventInfoP.innerHTML=eventInfo,eventDiv.insertAdjacentElement("beforeend",eventInfoP),eventHref&&""!=eventHref){"www"==eventHref.substr(0,3)&&(eventHref="//"+eventHref);var eventLink=document.createElement("a");eventLink.className="calendarEventLink",eventLink.href=eventHref,eventLink.innerText=eventLinkText,eventLink.setAttribute("title",eventLinkText),eventLink.setAttribute("target","_blank"),eventDiv.insertAdjacentElement("beforeend",eventLink)}buttonAddThree?buttonAddThree.before(eventDiv):eventCalendarWrap.insertAdjacentElement("beforeend",eventDiv),window.setTimeout((function(){eventDiv.classList.add("showing")}),100),(currentItemCount+=1)>=filteredCalendarEvents.length&&buttonAddThree&&hide(buttonAddThree)},buildEventItemRow=function(){var startIndex=currentItemCount,endIndex=startIndex+3;endIndex>filteredCalendarEvents.length&&(endIndex=filteredCalendarEvents.length);for(var i=startIndex;i<endIndex;i++){var eventItem=filteredCalendarEvents[i];buildEventItem(eventItem)}};filteredCalendarEvents.length>3&&((buttonAddThree=document.createElement("button")).innerText=moreText,buttonAddThree.addEventListener("click",buildEventItemRow),eventCalendarWrap.insertAdjacentElement("beforeend",buttonAddThree)),buildEventItemRow()}else{eventCalendarWrap&&eventCalendarWrap.closest(".row").classList.add("hidden")}},transferHotelViewClass=function(){window.parent.document.body.classList.contains("hotelview-2021")&&document.body.classList.add("hotelview-2021")},hideEmptyRatingWidget=function(){var widget=document.querySelector(".customer-alliance");widget&&(widget.querySelector(".hide-rating")&&widget.classList.add("hidden"))},initKRSinglePanoramas=function(){var singlePanoLinks=document.querySelectorAll("a.pano-single");if(0!==singlePanoLinks.length){var hidemenu=function(krpano){winW&&winW<=560&&krpano.call("skin_hideskin();")},buildPano=function(evt){var panoLink=evt.target;"A"!=panoLink.tagName&&(panoLink=panoLink.closest("A"));var panoPath=panoLink.getAttribute("data-pano-path"),xmlFile=panoPath+"pano.xml",title=panoLink.getAttribute("title"),panoHolder=document.querySelector(".pano-holder");if(panoHolder){(panoWrap=panoHolder.querySelector("#pano_wrap")).innerHTML=""}else{var panoWrap;(panoHolder=document.createElement("div")).className="pano-holder",panoHolder.id="mb_pano_holder",panoHolder.style.display="none",(panoWrap=document.createElement("div")).id="pano_wrap";var panoW=.8*winW;panoW>1024&&(panoW=1024);var panoH=parseInt(.58181818*panoW);winW<576&&(panoH=(panoW=winW)-26),panoWrap.style.width=panoW+"px",panoWra
282p.style.height=panoH+"px",winW<576&&(panoWrap.style.width=panoW-26+"px",panoWrap.style.height=panoH+"px"),panoHolder.insertAdjacentElement("beforeend",panoWrap),document.body.insertAdjacentElement("beforeend",panoHolder)}var settings={"skin_settings.thumbs_width":"112","skin_settings.thumbs_height":"73","skin_settings.thumbs_padding":"8","skin_settings.gyro":!1,"contextmenu.fullscreen":!1};winW&&winW<=768&&(settings["skin_settings.thumbs_opened"]=!1,settings["skin_settings.design_bgalpha"]="1");embedpano({swf:panoPath+"pano.swf",xml:xmlFile,target:"pano_wrap",html5:"prefer",vars:settings,onready:hidemenu});var popupDimensions="80% 52%";winW<=576&&(popupDimensions="100% 52%"),Mediabox.open("#mb_pano_holder",title,popupDimensions)},panoPath_0=singlePanoLinks[0].getAttribute("data-pano-path");Asset.javascript(panoPath_0+"pano.js",{onLoad:function(){singlePanoLinks.forEach((function(panoLink){panoLink.addEventListener("click",buildPano)}))}})}};window.addEvent("domready",(function(){if(isWSBK=!!$("wsbk"),setLocale(),maskSingleTicks(),!document.body.classList.contains("hotelview-2021")&&document.body.classList.contains("hotelview")&&(isHotelView=!0),document.body.classList.contains("v2020")&&(isV2020=!0),document.body.classList.contains("hotelview-2021")&&(isHotelView2021=!0),document.body.classList.contains("jobboerse")&&(isJobboerse=!0),setScreenWidthData(),setCurrentBreakPoint(),http2https(),document.getElementById("carousel")&&carouselInit(),document.getElementById("open-lightbox-map")&&document.getElementById("open-lightbox-map").addEvent("click",(function(){initializeClusterKartensuche("lightbox")})),quickSearchInit2020(),siteInfoInit(),collapseHitlistQuickSearch(),deactivateLightboxPopups(),loginInit(),switchToggleRevealClass(),isHotelView&&initHotelViewMenu(),(isHotelView||isWSBK)&&initHotelviewArrangementPackages(),setAccordionNameAttribute(),openAccordionByURLParam.delay(1e3),organizeDropColumnLayout(),initSubNavigation(),initToolTippsForMobile(),setClassesForValidationErrors(),closePopoversOnBodyClick(),document.getElementById("anreise_dp")&&document.getElementById("abreise_dp")&&document.getElementById("ss_nights")?initArrivalDepartureDatePicker("anreise_dp","abreise_dp","ss_nights"):document.getElementById("anreise_dp")&&document.getElementById("abreise_dp")&&document.getElement("input[name=nights]")&&initArrivalDepartureDatePicker("anreise_dp","abreise_dp",document.getElement("input[name=nights]")),initPannellumPanos(),$("SD3CBWV5BookingRoomSelectComponent")?initRoomListGalleries():initPageBoxTouchGalleries(),truncateClampMe(),isWSBK&&setupSpecialHotelSearch(),$("eventCalendarWrap")&&(document.body.classList.contains("hotelview-2021")?buildCalendarEventsV6():buildCalendarEvents()),mobileLayout){if(initNavigationPanelMobile(),initSearchResultSortAndFilterOptions(),initSliderWithoutMap(),toggleRewardsLoginPanel(),"undefined"!=typeof bwrMainMenuNavID&&bwrMainMenuNavID){var aElement=document.querySelectorAll(bwrMainMenuNavID)[0];aElement&&aElement.click()}}else initNavigationPanel(),initStickyElements();initDropDowns(),initNavTabs(),initRoomPersonsCounters(),addSelectedRoomRate(),initRateOptionSelection(),initRateDetails(),document.getElementById("searchpanel")||document.body.classList.add("no-searchpanel"),document.querySelector(".visual-wrap")||document.body.classList.add("no-visual-wrap"),closeIENotice(),stylesForCreditCardDropDown(),initCreditCardNumberFormating(),removeEmptyTeaserBoxes(),document.querySelectorAll("a.captchaReload").length>0&&document.querySelectorAll("a.captchaReload").forEach((function(el){el.click()})),document.getElementById("pressItemWrap")&&buildPressItemsList(),document.getElementById("pressMediaItemWrap")&&buildPressMediaItemsList(),initKRSinglePanoramas(),isHotelView2021&&hideEmptyRatingWidget(),"firefox"==Browser.name&&cleanLeftoverToolTips()})),window.addEventListener("hashchange",(function(){openAccordionByURLParam()})),window.addEvent("load",(function(){initAccordionIdsAndAria(),toggleAccordionClasses(),isWSBK&&$("hotelviewGallery")&&initHotelViewImageGallery(),(isHotelView||isWSBK)&&initNewHotelViewImageGallery(),isHotelView2021&&(initInPageNavigation(),initNewHotelViewImageGallery(),initRoomSelection(),initHVArrangementPackages()),isJobboerse&&initNewHotelViewImageGallery(),initAvailabilityCalendar(
282),initBehavior(),toggleRadiusSearchVisibility(),addHotelviewClassesToBody(),window.skipCmpLoad||"function"==typeof window.__cmp&&(__cmp("addEventListener",["consent",setTrivagoCookie,!1],null),__cmp("addEventListener",["consent",storeTradeDoublerTDUID,!1],null),__cmp("addEventListener",["consent",storeIATANumber,!1],null)),initClampedTexts(),window.location!==window.parent.location&&transferHotelViewClass()})),window.addEvent("resize:throttle(500)",(function(){setScreenWidthData(),observeBreakpointChange(),isHotelView&&(initHotelViewMenu(resize=!0),$("hotelview-gallery")&&!iOSDevice&&initialWinW&&initialWinW!=winW&&function(){document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||window.location.reload()}.delay(100),initInPageNavigation()),organizeDropColumnLayout()})),window.addEvent("orientationchange",(function(){readDeviceOrientation(),location.reload()})),window.addEvent("breakpointChange",(function(){carouselInit(resize=!0);var navbar=document.getElement("#navbar");navbar&&(winW>=768?navbar.setStyle("display","block"):navbar.setStyle("display","none")),siteInfoInit(),collapseHitlistQuickSearch(),deactivateLightboxPopups(),loginInit(),isHotelView&&initHotelViewMenu(resize=!0)})),window.addEventListener("error",(function(e){if(e.error&&e.error.stack){var stack=e.error.stack;e.error.toString();stack&&"\n"+stack}}));var afterAjaxCalls=function(){setLocale(),Mediabox.scanPage(),switchToggleRevealClass(),maskSingleTicks();new Behavior({}).apply(document.body);$("searchresultsmap")&&buildClusterKartensuche(),callEtrackerVmReload(),initAvailabilityCalendar(),truncateClampMe(),initAccordionIdsAndAria(),toggleAccordionClasses(),$("SD3CBWV5BookingRoomSelectComponent")&&initRoomListGalleries(),scrollToListTop(),removeOpenToolTips(),attachEtrackerEventToSportListButtons(),initRateOptionSelection(),addSelectedRoomRate(),initRoomPersonsCounters(),fillEmptyAvailabilityCalendarTDs(),document.querySelector(".splide")&&"function"==typeof initializeBookingSplideSliders&&initializeBookingSplideSliders(),window.setTimeout((function(){initSliderWithoutMap()}),2e3),mobileLayout&&(initSearchResultSortAndFilterOptions(),initExtrasDropDownForMobile()),document.getElementById("select-a-rate")&&setAddRemoveButtons();var radiusSearch=document.querySelector(".radius-search");radiusSearch&&radiusSearch.classList.remove("hidden"),!isLive&&"object"==typeof hotelExtrasJSON&&document.querySelector("#select-extras ul.nav-tabs")&&fixTabsForExtras()},afterAjaxCallsDelegator=function(){Mediabox.scanPage(),Console.debug("Ich bin da - afterAjaxCallsDelegator!!"),switchToggleRevealClass(),maskSingleTicks();var behavior=new Behavior({}).apply(document.body);new Delegator({getBehavior:function(){return behavior}}).attach(document.body)},activateToolTips=function(){};async function loadScript(src){return new Promise(((resolve,reject)=>{const script=document.createElement("script");script.src=src,script.async=!0,script.onload=()=>resolve(),script.onerror=()=>reject(new Error(`Fehler beim Laden des Skripts: ${src}`)),document.body.appendChild(script)}))}async function sleep(ms=0){return new Promise((resolve=>setTimeout(resolve,ms)))}var language=window.sessionLanguage&&window.sessionLanguage.length?window.sessionLanguage:"German";void 0===brokenIE&&(brokenIE=document.documentElement.classList.contains("brokenIE"));var dateFormat="ddd, DD. MM.",lang="de",toolTipOne="Nacht",toolTipOther="Nächte",weekDays=["So","Mo","Di","Mi","Do","Fr","Sa"],occupancyFromJSON,roomsPersonsPanel,activeSearchContainer,updateFields,buttons,roomsPersonsField;function initSearchPanel(){if(roomsPersonsPanel=document.getElementById("rooms-persons-panel")){roomsPersonsField=document.getElementById("combined-rooms-persons"),buttons=roomsPersonsPanel.querySelectorAll("button");var rooms=roomsPersonsPanel.querySelectorAll(".room"),addRoomButton=roomsPersonsPanel.querySelector("button.add-room"),removeRoomButton=roomsPersonsPanel.querySelector("button.remove-room"),arrivalInput=(document.getElementById("ss_erwachsene"),document.getElementById("ss_kinder"),document.getElementById("ss_einzelzimmer"),document.getElementById("ss_doppelzimmer"),document.getElementById("anreise_dp")),departureInput=document.getElementById("abreise_dp"),cityInput=document.getElementById("ss_ort")?document.getElementById("ss_ort"):document.getElementById("ss_ort_demo"),adults1=document.getElementById("adults1"),adults2=document.getElementById("adults2"),adults3=document.getElementById("adults3"),children1=document.getElementById("children1"),children2=document.getElementById("children2"),children3=document.getElementById("children3"),combinedDateField=document.getElementById("combined-arrive-depart"),hotelSearchWra
282p=document.getElementById("hotelsearch-wrap");activeSearchContainer=document.getElementById("active-search"),activeSearchField=document.getElementById("activeSearchParams");var specialHotelSearch=document.getElementById("specialhotelsearch"),updateForm=document.getElementById("updateform");let applyBtnRoomsPersons=roomsPersonsPanel.getElementById("applyBtnRoomsPersons");applyBtnRoomsPersons||(setLocale(),applyBtnRoomsPersons=document.createElement("button"),applyBtnRoomsPersons.id="applyBtnRoomsPersons",applyBtnRoomsPersons.textContent=LS("PICKERCHOOSE"),applyBtnRoomsPersons.setAttribute("aria-label","Ausgewähltes Datum übernehmen"),applyBtnRoomsPersons.setAttribute("tabindex","0"),applyBtnRoomsPersons.setAttribute("type","button"),applyBtnRoomsPersons.style.cssText="\n padding: 7px 30px;\n cursor: pointer;\n background-color: #fff;\n color: #033878;\n border: 2px solid #033878;\n border-radius: 4px;\n font-size: 14px;\n margin-top: 10px;\n display: inline-block;\n width: 100%;\n ",applyBtnRoomsPersons.addEventListener("click",(()=>{closePersonsPanelHandler()})),applyBtnRoomsPersons.addEventListener("keydown",(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),closePersonsPanelHandler())})),roomsPersonsPanel.appendChild(applyBtnRoomsPersons));var isSticky=!1,isHotelView=!1,isHotelView2021=!1;!document.body.classList.contains("hotelview-2021")&&document.body.classList.contains("hotelview")&&(isHotelView=!0),document.body.classList.contains("hotelview-2021")&&(isHotelView2021=!0),setScreenWidthData(),winW=window.winW?window.winW:0,mobileLayout=!!window.mobileLayout&&window.mobileLayout,"English"==language?(dateFormat="DD/MM/YYYY",lang="en",toolTipOne="night",toolTipOther="nights",weekDays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]):"French"==language?(dateFormat="ddd, DD. MM.",lang="fr",toolTipOne="nuit",toolTipOther="nuits",weekDays=["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]):"Italian"==language?(dateFormat="ddd, DD. MM.",lang="it",toolTipOne="notte",toolTipOther="notti",weekDays=["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]):"Slovenian"==language?(dateFormat="ddd, DD. MM.",lang="sl",toolTipOne="noÄ",toolTipOther="noÄi",weekDays=["Ned","Pon","Tor","Sre","Äet","Pet","Sob"]):"Romanian"==language?(dateFormat="dd.MM.yyyy",lang="ro",toolTipOne="noapte",toolTipOther="nopÈi",weekDays=["Luni","MarÅ£i","Miercuri","Joi","Vineri","SâmbÄtÄ","DuminicÄ"]):"Hungarian"==language?(dateFormat="yyyy.MM.dd.",lang="hu",toolTipOne="Ãjszaka",toolTipOther="Ãjszakák",weekDays=["H","K","Sze","Csüt","P","Szo","Vas"]):"Bulgarian"==language&&(dateFormat="dd.mm.yyyy",lang="bg",toolTipOne="ÐоÑ",toolTipOther="ÐоÑи",weekDays=["пн","вÑ","ÑÑ","ÑÑ","пÑ","Ñб","нд"]),moment.locale(lang),formatDate=function(date){var month=date.getMonth()+1;month=month<10?"0"+month:month;var day=date.getDate();return day=day<10?"0"+day:day,"English"!==language?weekDays[date.getDay()]+", "+day+"."+month+".":weekDays[date.getDay()]+", "+month+"/"+day+"/"},formatDateDE=function(date){var month=date.getMonth()+1;return month=month<10?"0"+month:month,date.getDate()+"."+month+"."+d
282ate.getFullYear()},formatDateShort=function(date){var month=date.getMonth()+1;month=month<10?"0"+month:month;var day=date.getDate();return day=day<10?"0"+day:day,"English"!==language?day+"."+month+".":month+"/"+day+"/"},today=new Date,firstDay=new Date(today),lastDay=new Date(today),firstDay.setDate(firstDay.getDate()),lastDay.setDate(firstDay.getDate()+1),currentYear=1900+firstDay.getYear(),nextYear=currentYear+1;var arrivalDate,departureDate,startD,endD,nightsCount,hideDeparture=!1;if(specialHotelSearch||updateForm){var tmpArrivalDate=arrivalInput.value.trim(),tmpDepartureDate=-1;if(departureInput?tmpDepartureDate=departureInput.value.trim():hideDeparture=!0,tmpArrivalDate.length>0&&tmpDepartureDate.length>0){if("English"!==language){var split_1=tmpArrivalDate.split(".");firstDay=new Date(split_1[1]+"/"+split_1[0]+"/"+split_1[2]);var split_2=tmpDepartureDate.split(".");lastDay=new Date(split_2[1]+"/"+split_2[0]+"/"+split_2[2])}else firstDay=new Date(tmpArrivalDate),lastDay=new Date(tmpDepartureDate);isValidDate(lastDay)||(hideDeparture=!0)}}hotelSearchWrap.classList.contains("stick-on-top")||mobileLayout?(isSticky=!0,combinedDateField.placeholder=hideDeparture?formatDateShort(firstDay)+" - ...":formatDateShort(firstDay)+" - "+formatDateShort(lastDay)):(isSticky=!1,combinedDateField.placeholder=hideDeparture?formatDate(firstDay)+" - ...":formatDate(firstDay)+" - "+formatDate(lastDay)),specialHotelSearch||updateForm||(arrivalInput.value=formatDateDE(firstDay),departureInput.value=formatDateDE(lastDay));var firstDayPicked,lastDayPicked,numberOfMonths=mobileLayout?1:2;var picker=new Lightpick({field:combinedDateField,singleDate:!1,numberOfMonths:numberOfMonths,tooltipNights:!0,lang:lang,format:dateFormat,minDate:today,minDays:2,footer:!1,locale:{tooltip:{one:toolTipOne,other:toolTipOther}},dropdowns:{years:{min:currentYear,max:nextYear},months:!0},onOpen:function(){window.stickyLockByDatepicker=!0,document.body.classList.add("datepicker-open"),picker.setDateRange(firstDay,lastDay),picker.gotoDate(firstDay);const pickerContainer=document.querySelector(".lightpick");let applyBtn=pickerContainer.querySelector("#applyBtn");if(!applyBtn){applyBtn=document.createElement("button"),applyBtn.id="applyBtn",applyBtn.textContent=LS("PICKERCHOOSE"),applyBtn.setAttribute("aria-label","Ausgewähltes Datum übernehmen"),applyBtn.setAttribute("tabindex","0"),applyBtn.setAttribute("type","button"),applyBtn.style.cssText="\n padding: 7px 30px;\n cursor: pointer;\n background-color: #fff;\n color: #033878;\n border: 2px solid #033878;\n border-radius: 4px;\n font-size: 14px;\n margin-left: 5%;\n display: inline-block;\n float: right;\n width: 50%;\n ",applyBtn.addEventListener("click",(()=>{this._onClose(),roomsPersonsField&&roomsPersonsField.focus()})),applyBtn.addEventListener("keydown",(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this._onClose(),roomsPersonsField&&roomsPersonsField.focus())}));const handleInteraction=e=>{e.preventDefault(),this._onClose(),console.log(e.type),roomsPersonsField&&roomsPersonsField.focus()};applyBtn.addEventListener("touchstart",(e=>e.preventDefault())),applyBtn.addEventListener("touchend",handleInteraction),applyBtn.addEventListener("pointerup",handleInteraction),pickerContainer.appendChild(applyBtn)}applyBtn.focus(),setTimeout((()=>{!function enableKeyboardSelection(){document.querySelectorAll(".lightpick__day.is-available").forEach((day=>{day.setAttribute("tabindex","0"),day.addEventListener("keydown",(function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),day.click())})),day.addEventListener("focus",(()=>day.classList.add("focused"))),day.addEventListener("blur",(()=>day.classList.remove("focused")))}))}();const dayButtons=pickerContainer.querySelectorAll(".lightpick__day.is-available");if(dayButtons.length&&applyBtn){const firstDay=dayButtons[0],lastDay=dayButtons[dayButtons.length-1];lastDay.addEventListener("keydown",(e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),applyBtn.focus())})),applyBtn.addEventListener("keydown",(e=>{"Tab"===e.key&&e.shiftKey&&(e.preventDefault(),lastDay.focus())})),firstDay.addEventListener("keydown",(e=>{"Tab"===e.key&&e.shiftKey&&(e.preventDefault(),applyBtn.focus())})),applyBtn.addEventListener("keydown",(e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),firstDay.focus())}))}}),100)},onSelectStart:function(firstSelectedDate){if(firstDayPicked=firstSelectedDate,!lastDayPicked){var startM=moment(firstSelectedDate),endM=startM.clone().add(1,"day");this.setDateRange(startM.toDate(),endM.toDate()),arrivalInput.value=startM.format("DD.MM.YYYY"),departureInput.value=endM.format("DD.MM.YYYY"),document.querySelectorAll('#combined-arrive-depart, #combined-arrival-departure, [name="combined-arrival-departure"]').forEach((el=>el.value=""))}firstSelectedDate._i===+this.el.querySelector(".lightpick__month:last-child .lightpick__days > div:last-child").getAttribute("data-time")&&this.nextMonth()},onSelectEnd:function(lastSelectedDate){lastDayPicked=lastSelectedDate},onSelect:function(start,end){start&&end&&(start._d>end._d?(arrivalDate=end.format("DD.MM.YYYY"),departureDate=start.format("DD.MM.YYYY"),startD=end._d,endD=start._d):start._d<end._d&&(arrivalDate=start.format("DD.MM.YYYY"),departureDate=end.format("DD.MM.YYYY"),startD=start._d,endD=end._d),firstDay=start._d,lastDay=end._d,arrivalDate&&departureDate&&(arrivalInput.value=arrivalDate,departureInput.value=departureDate,nightsCount=((endD.getTime()-startD.getTime())/864e5).round().toInt(),isNaN(nightsCount)||(document.getElementById("ss_nights").selectedIndex=nightsCount-1)),combinedDateField.value="",isSticky||mobileLayout?combinedDateField.placeholder=formatDateShort(startD)+" - "+formatDateShort(endD):combinedDateField.placeholder=formatDate(startD)+" - "+formatDate(endD),updateActiveSearchField())},onClose:function(){if(window.stickyLockByDatepicker=!1,document.body.classList.remove("datepicker-open"),"function"==typeof window.__setStickyClasse
282s){var sp=document.documentElement.scrollTop||document.body.scrollTop||0;window.__setStickyClasses(sp)}firstDayPicked&&(lastDayPicked||(lastDayPicked=moment(firstDayPicked+864e5),firstDay=firstDayPicked._d,lastDay=lastDayPicked._d,picker.setDateRange(firstDay,lastDay),arrivalDate=firstDayPicked.format("DD.MM.YYYY"),departureDate=lastDayPicked.format("DD.MM.YYYY"),startD=firstDayPicked._d,endD=lastDayPicked._d,arrivalDate&&departureDate&&(arrivalInput.value=arrivalDate,departureInput.value=departureDate,nightsCount=((endD.getTime()-startD.getTime())/864e5).round().toInt(),isNaN(nightsCount)||(document.getElementById("ss_nights").selectedIndex=nightsCount-1)),combinedDateField.value="",isSticky||mobileLayout?combinedDateField.placeholder=formatDateShort(startD)+" - "+formatDateShort(endD):combinedDateField.placeholder=formatDate(startD)+" - "+formatDate(endD),updateActiveSearchField()),lastDayPicked=null)}});const isVisible=el=>!!(el.offsetWidth||el.offsetHeight||el.getClientRects().length);document.addEventListener("keydown",(function(e){const pickerContainer=document.querySelector(".lightpick");if(!pickerContainer||!isVisible(pickerContainer))return;if("Tab"!==e.key)return;const focusable=pickerContainer.querySelectorAll('button, [tabindex="0"]');if(0===focusable.length)return;const first=focusable[0],last=focusable[focusable.length-1];e.shiftKey&&document.activeElement===first?(e.preventDefault(),last.focus()):e.shiftKey||document.activeElement!==last||(e.preventDefault(),first.focus())}));let isKeyboardSelection=!1;document.addEventListener("keydown",(function(e){["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","Enter"," "].includes(e.key)&&(isKeyboardSelection=!0);const calendar=document.querySelector(".lightpick__days");
282if(!calendar||null===calendar.offsetParent)return;let focused=calendar.querySelector(".lightpick__day.focused");if(!focused)return focused=calendar.querySelector(".lightpick__day.is-available"),void(focused&&(focused.classList.add("focused"),focused.setAttribute("tabindex","0"),focused.focus()));let newFocus=null;const getSibling=(el,dir,steps=1)=>{for(;el&&steps>0;)el="next"===dir?el.nextElementSibling:el.previousElementSibling,steps--;return el};switch(e.key){case"ArrowRight":newFocus=getSibling(focused,"next");break;case"ArrowLeft":newFocus=getSibling(focused,"previous");break;case"ArrowDown":newFocus=getSibling(focused,"next",7);break;case"ArrowUp":newFocus=getSibling(focused,"previous",7);break;case"Enter":case" ":return void(focused.classList.contains("is-available")&&!focused.classList.contains("is-disabled")&&(focused.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0})),e.preventDefault()))}newFocus&&(newFocus.classList.contains("is-available")||newFocus.classList.contains("is-start-date"))&&(focused.classList.remove("focused"),focused.removeAttribute("tabindex"),newFocus.classList.add("focused"),newFocus.setAttribute("tabindex","0"),newFocus.focus(),e.preventDefault())}));let panelIsOpen=!1;var closePersonsPanelHandler=function(){panelIsOpen&&(panelIsOpen=!1,roomsPersonsPanel.style.opacity="0",roomsPersonsPanel.style.visibility="hidden",roomsPersonsPanel.classList.remove("show-panel"))};BW.updateOccupancy=function(roomIndex,adultsCnt,childrenCnt){if(console.log("updateOccupancy"),console.log("updateOccupancy:",roomIndex,adultsCnt,childrenCnt),console.log("roomIndex:",roomIndex),console.log("adultsCnt:",adultsCnt),console.log("childrenCnt:",childrenCnt),roomIndex||(roomIndex=0),"undefined"==typeof occupancy)if("undefined"!=typeof roomOccupancy){var data=JSON.parse(roomOccupancy);data&&(occupancy=data)}else occupancy=[{adults1:"1",children1:"0"},{adults2:"0",children2:"0"},{adults3:"0",children3:"0"}];var room=occupancy[roomIndex],n=parseInt(roomIndex)+1;void 0!==adultsCnt&&""!==adultsCnt&&(occupancy[roomIndex]["adults"+n]=""+adultsCnt),void 0!==childrenCnt&&""!==childrenCnt&&(occupancy[roomIndex]["children"+n]=""+childrenCnt),0===adultsCnt&&0===childrenCnt&&(1===roomIndex?(occupancy[roomIndex].adults2=""+occupancy[roomIndex+1].adults3,occupancy[roomIndex].children2=""+occupancy[roomIndex+1].children3,occupancy[roomIndex+1].adults3="0",occupancy[roomIndex+1].children3="0"):0===roomIndex&&(occupancy[roomIndex].adults1=""+occupancy[roomIndex+1].adults2,occupancy[roomIndex].children1=""+occupancy[roomIndex+1].children2,occupancy[roomIndex+1].adults2="0",occupancy[roomIndex+1].children2="0",occupancy[roomIndex+2].adults3="0",occupancy[roomIndex+2].children3="0")),storeBWData("occupancy",occupancy);for(var roomsCnt=0,i=(adultsCnt=0,childrenCnt=0,0);i<occupancy.length;i++){room=occupancy[i],n=i+1;var adultsField=document.getElementById("adults"+n);adultsField&&adultsField.setAttribute("value",room["adults"+n]),adultsCnt+=parseInt(room["adults"+n]);var childrenField=document.getElementById("children"+n);childrenField&&childrenField.setAttribute("value",room["children"+n]),childrenCnt+=parseInt(room["children"+n]),0!==parseInt(room["adults"+n])&&(roomsCnt+=1)}removeRoomButton.style.display=roomsCnt>1?"inline-block":"none",addRoomButton.style.display=3===roomsCnt?"none":"inline-block",roomsCnt>1?addRoomButton.classList.add("active"):addRoomButton.classList.remove("active"),updateFields(adultsCnt,childrenCnt,roomsCnt,!1)};var getRoomOccupancyData=function(){var data;data="undefined"!=typeof roomOccupancy?JSON.parse(roomOccupancy):"undefined"!=typeof occupancy?occupancy:adults1?[{adults1:"0"!==adults1.getAttribute("value")?adults1.getAttribute("value"):"1",children1:children1.getAttribute("value")},{adults2:adults2.getAttribute("value"),children2:children2.getAttribute("value")},{adults3:adults3.getAttribute("value"),children3:children3.getAttribute("value")}]:[{adults1:"1",children1:"0"},{adults2:"0",children2:"0"},{adults3:"0",children3:"0"}];for(var roomsCnt=0,adultsCnt=0,childrenCnt=0,i=0;i<data.length;i++){var room=data[i],n=i+1,adults=parseInt(room["adults"+n]);adultsCnt+=adults,childrenCnt+=parseInt(room["children"+n]),0!==adults&&(roomsCnt+=1)}return{roomsCnt:roomsCnt,adultsCnt:adultsCnt,childrenCnt:childrenCnt}}
282,getRoomIndex=function(btn){var myRoomIndex=btn.getAttribute("data-room-index");if(!myRoomIndex){var roomContainer=btn.closest(".room-container");if(roomContainer&&roomContainer.hasAttribute("data-room-reference")){var roomRef=roomContainer.getAttribute("data-room-reference");myRoomIndex=parseInt(roomRef.substr(-1))-1}else myRoomIndex=-1}return myRoomIndex},updateTile=function(btn){var roomContainer=btn.closest(".room-container");if(roomContainer&&roomContainer.hasAttribute("data-room-reference")){var roomRef=roomContainer.getAttribute("data-room-reference"),myRoomIndex=parseInt(roomRef.substr(-1))-1,myTile=document.getElementById(roomRef),roomData=occupancy[myRoomIndex],adultCount=roomData.adults,childCount=roomData.children,personsP=myTile.querySelector("p.persons"),adultTxt=adultCount>1?" Erwachsene":" Erwachsene(r)",childrenTxt=childCount>1?" Kinder":" Kind";"English"==language?(adultTxt=adultCount>1?" Adults":" Adult",childrenTxt=childCount>1?" Children":" Child"):"French"==language?(adultTxt=adultCount>1?" Adultes":" Adulte",childrenTxt=childCount>1?" Enfants":" Enfant"):"Italian"==language?(adultTxt=adultCount>1?" Adulto":" Adulti",childrenTxt=childCount>1?" Bambini":" Bambino"):"Slovenian"==language&&(adultTxt=" Odrasli",childrenTxt=childCount>1?" Otroci":" Otrok"),personsP&&(personsP.innerHTML=adultCount+adultTxt+(parseInt(childCount)>0?", "+childCount+childrenTxt:""))}},addAdultHandler=function(btn){var adultCountField=btn.previousElementSibling,adultCount=parseInt(adultCountField.innerText),adultCountInput=adultCountField.querySelector("input[type=text]");adultCountInput?adultCountInput.value=++adultCount:adultCountField.innerHTML=++adultCount,adultCountField.previousElementSibling.disabled=adultCount<=1;var txtAdults=1===adultCount?" Erwachsene(r)":" Erwachsene";"English"==language?txtAdults=1===adultCount?" Adult":" Adults":"French"==language?txtAdults=1===adultCount?" Adulte":" Adultes":"Italian"==language?txtAdults=1===adultCount?" Adulto":" Adulti":"Slovenian"==language&&(txtAdults=" Odrasli"),btn.childNodes[1].nodeValue=txtAdults;var myRoomIndex=getRoomIndex(btn);-1!==myRoomIndex&&(BW.updateOccupancy(myRoomIndex,adultCount,""),updateTile(btn))},removeAdultHandler=function(btn){var adultCountField=btn.nextElementSibling,adultCount=parseInt(adultCountField.innerText),adultCountInput=adultCountField.querySelector("input[type=text]");adultCountInput?adultCountInput.value=--adultCount:adultCountField.innerHTML=--adultCount,btn.disabled=adultCount<=1;var txtAdults=1===adultCount?" Erwachsene(r)":" Erwachsene";"English"==language?txtAdults=1===adultCount?" Adult":" Adults":"French"==language?txtAdults=1===adultCount?" Adulte":" Adultes":"Italian"==language?txtAdults=1===adultCount?" Adulto":" Adulti":"Slovenian"==language&&(txtAdults=" Odrasli"),adultCountField.nextElementSibling.childNodes[1].nodeValue=txtAdults;var myRoomIndex=getRoomIndex(btn);-1!==myRoomIndex&&(BW.updateOccupancy(myRoomIndex,adultCount,""),updateTile(btn))},addChildHandler=function(btn){var childCountField=btn.previousElementSibling,childCount=parseInt(childCountField.innerText),childCountInput=childCountField.querySelector("input[type=text]");childCountInput?childCountInput.value=++childCount:childCountField.innerHTML=++childCount,btn.disabled=childCount>=2,childCountField.previousElementSibling.disabled=childCount<=0;var myRoomIndex=getRoomIndex(btn);-1!==myRoomIndex&&(BW.updateOccupancy(myRoomIndex,"",childCount),updateTile(btn))},removeChildHandler=function(btn){var childCountField=btn.nextElementSibling,childCount=parseInt(childCountField.innerText),childCountInput=childCountField.querySelector("input[type=text]");childCountInput?childCountInput.value=--childCount:childCountField.innerText=--childCount;parseInt(childCountField.innerText);btn.disabled=childCount<=0,childCountField.nextElementSibling.disabled=childCount>=2;var myRoomIndex=getRoomIndex(btn);-1!==myRoomIndex&&(BW.updateOccupancy(myRoomIndex,"",childCount), 283updateTile(btn))},addRoomHandler=function(){var roomsIndex=0;
283rooms.forEach((function(room){isVisible(room)&&(roomsIndex+=1)})),rooms[roomsIndex].style.display=displayStyle,BW.updateOccupancy(roomsIndex,1,0)},removeRoomHandler=function(btn){var roomsIndex=-1;rooms.forEach((function(room){isVisible(room)&&(roomsIndex+=1)})),rooms[roomsIndex].style.display="none";var adultCountField=rooms[roomsIndex].querySelector(".adult-count");parseInt(adultCountField.innerText);adultCountField.innerHTML=1,adultCountField.previousElementSibling.disabled=!0,adultCountField.nextElementSibling.disabled=!1;var childCountField=rooms[roomsIndex].querySelector(".child-count");parseInt(childCountField.innerText);childCountField.innerHTML=0,childCountField.previousElementSibling.disabled=!0,childCountField.nextElementSibling.disabled=!1,BW.updateOccupancy(roomsIndex,0,0),roomsIndex-=1};roomsPersonsField.addEventListener("focus",(function(evt){panelIsOpen=!0,roomsPersonsPanel.style.display="block",roomsPersonsPanel.style.opacity="1",roomsPersonsPanel.style.visibility="visible",roomsPersonsPanel.classList.add("show-panel"),roomsPersonsField.setAttribute("aria-expanded","true")})),document.body.addEventListener("click",(function(evt){let applyBtn=document.getElementById("applyBtn");applyBtn&&evt.target===applyBtn||evt.target===roomsPersonsField||evt.target===roomsPersonsPanel||evt.target.closest("#rooms-persons-panel")||panelIsOpen&&(closePersonsPanelHandler(),panelIsOpen=!1)}));var updateActiveSearchField=function(){if(activeSearchField){var arr=[],city=cityInput.value.trim();city.length>0&&arr.push(city);var arrivalDate=arrivalInput.value.trim(),departureDate=departureInput.value.trim();if(arrivalDate.length>0&&departureDate.length>0)if("German"==language){var split_1=arrivalDate.split("."),d_1=new Date(split_1[1]+"/"+split_1[0]+"/"+split_1[2]),split_2=departureDate.split("."),d_2=new Date(split_2[1]+"/"+split_2[0]+"/"+split_2[2]);arr.push(formatDateShort(d_1)+" â "+formatDateShort(d_2))}else{split_1=arrivalDate.split("/"),d_1=new Date(split_1[0]+"/"+split_1[1]+"/"+split_1[2]),split_2=departureDate.split("/"),d_2=new Date(split_2[0]+"/"+split_2[1]+"/"+split_2[2]);arr.push(formatDateShort(d_1)+" â "+formatDateShort(d_2))}var roomData=getRoomOccupancyData(),roomsCnt=roomData.roomsCnt,adultsCnt=roomData.adultsCnt,childrenCnt=roomData.childrenCnt,txtAdults=" Erw.",txtChildren=" Ki.",txtRooms=" Zi.";"English"===language?(txtAdults=" Ad.",txtChildren=" Ch.",txtRooms=" Ro."):"French"===language?(txtAdults=" Ad.",txtChildren=" En.",txtRooms=" Ch."):"Italian"===language?(txtAdults=" Ad.",txtChildren=" Ba.",txtRooms=" Ca."):"Slovenian"===language&&(txtAdults=" Od.",txtChildren=" Ot.",txtRooms=" So."),roomsCnt>0&&arr.push(roomsCnt+txtRooms),adultsCnt>0&&arr.push(adultsCnt+txtAdults),arr.push(childrenCnt+txtChildren),activeSearchField.value=arr.join(", ")}};updateFields=function(totalAdults,totalChildren,totalRooms,occupancyFromJSON){var data;if(!0===occupancyFromJSON){if("undefined"==typeof roomOccupancy)return;data=JSON.parse(roomOccupancy)}else data="undefined"!=typeof occupancy?occupancy:adults1?[{adults1:"0"!==adults1.getAttribute("value")?adults1.getAttribute("value"):"1",children1:children1.getAttribute("value")},{adults2:adults2.getAttribute("value"),children2:children2.getAttribute("value")},{adults3:adults3.getAttribute("value"),children3:children3.getAttribute("value")}]:[{adults1:"1",children1:"0"},{adults2:"0",children2:"0"},{adults3:"0",children3:"0"}];if(data){for(var roomsCnt=0,i=0;i<data.length;i++){var room=data[i];0!==parseInt(room["adults"+(i+1)])&&(roomsCnt+=1)}var txtAdults=1===totalAdults?" Erwachsene(r)":" Erwachsene",txtChildren=1===totalChildren?" Kind":" Kinder",txtRooms=" Zimmer";"English"==language?(txtAdults=1===totalAdults?" Adult":" Adults",txtChildren=1===totalChildren?" Child":" Children",txtRooms=1===totalRooms?" Room":" Rooms"):"French"==language?(txtAdults=1===totalAdults?" Adulte":" Adultes",txtChildren=1===totalChildren?" Enfant":" Enfants",txtRooms=1===totalRooms?" Chambre":" Chambres"):"Italian"==language?(txtAdults=1===totalAdults?" Adulto":" Adulti",txtChildren=1===totalChildren?" Bambino":" Bambini",txtRooms=1===totalRooms?" Camera":" Camere"):"Slovenian"==language&&(txtAdults=" Odrasli",txtChildren=1===totalChildren?" Otrok":" Otroci",txtRooms=1===totalRooms?" Soba":" Sobi"),isSticky&&!mobileLayout&&(txtAdults=" Erw",txtChildren=" Ki",txtRooms=" Zi","English"===language?(txtAdults=" Ad",txtChildren=" Ch",txtRooms=" Ro"):"French"===language?(txtAdults=" Ad",txtChildren=" En",txtRooms=" Ch"):"Ital
283ian"===language?(txtAdults=" Ad",txtChildren=" Ba",txtRooms=" Ca"):"Slovenian"===language&&(txtAdults=" Od",txtChildren=" Ot",txtRooms=" So")),(isHotelView||isHotelView2021)&&mobileLayout&&(txtChildren=" Ki","English"===language?txtChildren=" Ch":"French"===language?txtChildren=" En":"Italian"===language?txtChildren=" Ba":"Slovenian"===language&&(txtChildren=" Ot")),roomsPersonsField.placeholder=roomsCnt+txtRooms+" · "+totalAdults+txtAdults+" · "+totalChildren+txtChildren,roomsPersonsField.value="",totalRooms=roomsCnt,activeSearchField&&updateActiveSearchField(),(specialHotelSearch||updateForm)&&(function(occupancyFromJSON){var data;if(!0===occupancyFromJSON){if("undefined"==typeof roomOccupancy)return;data=JSON.parse(roomOccupancy)}else data="undefined"!=typeof occupancy?occupancy:adults1?[{adults1:"0"!==adults1.getAttribute("value")?adults1.getAttribute("value"):"1",children1:children1.getAttribute("value")},{adults2:adults2.getAttribute("value"),children2:children2.getAttribute("value")},{adults3:adults3.getAttribute("value"),children3:children3.getAttribute("value")}]:[{adults1:"1",children1:"0"},{adults2:"0",children2:"0"},{adults3:"0",children3:"0"}];if(data){for(var roomsCnt=0,i=0;i<data.length;i++){var room=data[i],n=i+1,adults=parseInt(room["adults"+n]);0!==adults&&(roomsCnt+=1);var children=parseInt(room["children"+n]);if(0!==adults||0!==children){if(adults>0){rooms[i].querySelector(".adult-count").innerText=adults,rooms[i].querySelector(".remove-adult").disabled=adults<=1;var txtAdults=1===adults?" Erwachsene(r)":" Erwachsene";"English"===language?txtAdults=1===adults?" Adult":" Adults":"French"===language?txtAdults=1===adults?" Adulte":" Adultes":"Italian"===language?txtAdults=1===adults?" Adulto":" Adulti":"Slovenian"===language&&(txtAdults=" Odrasli"),rooms[i].querySelector(".add-adult").childNodes[1].nodeValue=txtAdults}children>0?(rooms[i].querySelector(".child-count").innerText=children,rooms[i].querySelector(".add-child").disabled=children>=2,rooms[i].querySelector(".remove-child").disabled=children<=0):(rooms[i].querySelector(".child-count").innerText="0",rooms[i].querySelector(".add-child").disabled=!1,rooms[i].querySelector(".remove-child").disabled=!0),rooms[i].style.display=displayStyle}else rooms[i].style.display="none"}removeRoomButton.style.display=roomsCnt>1?"inline-block":"none",addRoomButton.disabled=3===roomsCnt,addRoomButton.style.display=roomsCnt<3?"inline-block":"none"}}(occupancyFromJSON),isHotelView2021&&document.getElementById("room-collection")&&function(){var data,placeHolderText;data=adults1?[{adults1:"0"!==adults1.getAttribute("value")?adults1.getAttribute("value"):"1",children1:children1.getAttribute("value")},{adults2:adults2.getAttribute("value"),children2:children2.getAttribute("value")},{adults3:adults3.getAttribute("value"),children3:children3.getAttribute("value")}]:[{adults1:"1",children1:"0"},{adults2:"0",children2:"0"},{adults3:"0",children3:"0"}];var adultsForRoom1=parseInt(data[0].adults1),childrenForRoom1=parseInt(data[0].children1);document.querySelectorAll(".room-container").forEach((function(container){var maxOccupancy=1,maxOccupancySpan=container.querySelector(".max-occupancy");if(maxOccupancySpan&&(maxOccupancy=parseInt(maxOccupancySpan.getAttribute("data-max-persons"))),maxOccupancy<adultsForRoom1){var adultCountField=container.querySelector(".adult-count"),childCountField=container.querySelector(".child-count");adultCountField.innerHTML=maxOccupancy,adultCountField.previousElementSibling.disabled=maxOccupancy<=1,adultCountField.nextElementSibling.disabled=!0,childCountField.innerHTML=childrenForRoom1,childCountField.previousElementSibling.disabled=childrenForRoom1<=0,childCountField.nextElementSibling.disabled=childrenForRoom1>=2;var txtAdults=1===maxOccupancy?" Erwachsene(r)":" Erwachsene",txtChildren=1===childrenForRoom1?" Kind":" Kinder";"English"==language?(txtAdults=1===maxOccupancy?" Adult":" Adults",txtChildren=1===childrenForRoom1?" Child":" Children"):"French"==language?(txtAdults=1===maxOccupancy?" Adulte":" Adultes",txtChildren=1===childrenForRoom1?" Enfant":" Enfants"):"Ital
283ian"==language?(txtAdults=1===maxOccupancy?" Adulto":" Adulti",txtChildren=1===childrenForRoom1?" Bambino":" Bambini"):"Slovenian"==language&&(txtAdults=" Odrasli",txtChildren=1===childrenForRoom1?" Otrok":" Otroci"),mobileLayout&&(txtAdults=" Erw",txtChildren=" Ki","English"===language?(txtAdults=" Ad",txtChildren=" Ch"):"French"===language?(txtAdults=" Ad",txtChildren=" En"):"Italian"===language?(txtAdults=" Ad",txtChildren=" Ba"):"Slovenian"===language&&(txtAdults=" Od",txtChildren=" Ot")),placeHolderText=maxOccupancy+txtAdults+" · "+childrenForRoom1+txtChildren}else adultCountField=container.querySelector(".adult-count"),childCountField=container.querySelector(".child-count"),adultCountField.innerHTML=adultsForRoom1,adultCountField.previousElementSibling.disabled=adultsForRoom1<=1,adultCountField.nextElementSibling.disabled=maxOccupancy===adultsForRoom1,childCountField.innerHTML=childrenForRoom1,childCountField.previousElementSibling.disabled=childrenForRoom1<=0,childCountField.nextElementSibling.disabled=childrenForRoom1>=2,txtAdults=1===adultsForRoom1?" Erwachsene(r)":" Erwachsene",txtChildren=1===childrenForRoom1?" Kind":" Kinder","English"==language?(txtAdults=1===adultsForRoom1?" Adult":" Adults",txtChildren=1===childrenForRoom1?" Child":" Children"):"French"==language?(txtAdults=1===adultsForRoom1?" Adulte":" Adultes",txtChildren=1===childrenForRoom1?" Enfant":" Enfants"):"Italian"==language?(txtAdults=1===adultsForRoom1?" Adulto":" Adulti",txtChildren=1===childrenForRoom1?" Bambino":" Bambini"):"Slovenian"==language&&(txtAdults=" Odrasli",txtChildren=1===childrenForRoom1?" Otrok":" Otroci"),mobileLayout&&(txtAdults=" Erw",txtChildren=" Ki","English"===language?(txtAdults=" Ad",txtChildren=" Ch"):"French"===language?(txtAdults=" Ad",txtChildren=" En"):"Italian"===language?(txtAdults=" Ad",txtChildren=" Ba"):"Slovenian"===language&&(txtAdults=" Od",txtChildren=" Ot")),placeHolderText=adultsForRoom1+txtAdults+" · "+childrenForRoom1+txtChildren;var combinedAdultsChildrenField=container.querySelector(".combined-adults-children");combinedAdultsChildrenField.setAttribute("placeholder",placeHolderText),combinedAdultsChildrenField.value="";var adultsField=container.querySelector("input[name=adults1]"),childrenField=container.querySelector("input[name=children1]");adultsField.value=adultsForRoom1,childrenField.value=childrenForRoom1}))}())}};for(var displayStyle=brokenIE?"block":"grid",i=0;i<buttons.length;i++){buttons[i].addEventListener("click",(function(evt){evt.preventDefault(),console.log("evt.target:",evt.target," - this: ",this);this.classList.contains("add-room")?addRoomHandler():this.classList.contains("remove-room")?removeRoomHandler():this.classList.contains("add-adult")?addAdultHandler(this):this.classList.contains("remove-adult")?removeAdultHandler(this):this.classList.contains("add-child")?addChildHandler(this):this.classList.contains("remove-child")&&removeChildHandler(this),console.log("roomsIndex:",0)}))}if(specialHotelSearch||updateForm){var roomData=getRoomOccupancyData();occupancyFromJSON=!isHotelView2021,updateFields(roomData.adultsCnt,roomData.childrenCnt,roomData.roomsCnt,occupancyFromJSON)}}}window.stickyLockByDatepicker=!1,initSearchPanel(),documentReady((function(){var cityInput=document.getElementById("ss_ort")?document.getElementById("ss_ort"):document.getElementById("ss_ort_demo");if(cityInput){var searchSubmit=document.getElementById("quickSearchSubmit")||document.getElementById("specialSearchSubmit");searchSubmit&&(cityInput.addEventListener("keyup",(function(event){if(13===event.keyCode&&searchSubmit.click(),this.classList.contains("has-error")&&""!==this.value.trim()){this.classList.remove("has-error");try{this.setCustomValidity("")}catch(e){console.error("error:",e)}}})),searchSubmit.addEventListener("click",(function(evt){if(evt.preventDefault(),""===cityInput.value.trim()){var errorMessage="Bitte geben Sie einen Ort ein!";"English"==language?errorMessage="Please enter a city!":"French"==language?errorMessage="Saisissez une ville!":"Italian"==language?errorMessage="Pregasi indicare una località !":"Slovenian"==language&&(errorMessage="Vnesite lokacijo!");try{cityInput.setCustomValidity(errorMessage)}catch(e){console.error("error:",e)}cityInput.classList.add("has-error"),hideQuickSearchSpinner(searchSubmit),searchSubmit.disabled=!1}})))}var schnellSuche=document.getElementById("schnellsuche");schnellSuche&&activeSearchContainer&&mobileLayout&&isVisible(activeSearchContainer)&&!isVisible(schnellSuche)&&activeSearchField.addEventListener("focus",(function(evt){hide(activeSearchContainer),show(schnellSuche)}));var searchOptionsStyle=document.getElementById("searchOptionsStyle");if(searchOptionsStyle&&"none"===searchOptionsStyle.style.display){var searchpanel=searchOptionsStyle.parentElement;hide(searchpanel)}}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.