function d21_track_api(){var t=this;t.name="Track",t.variables={events:[]},t.fn={start:function(){setInterval(function(){t.variables.events.length>0&&t.variables.events.forEach(function(e){t.fn.sendEvents(e)})},1500)},push:function(e,n,a){t.variables.events.push({Project:e,Type:n,Data:JSON.stringify(a),URL:document.location.href,Timestamp:(new Date).toISOString(),Status:"New"})},sendEvents:function(e){JSON.parse(JSON.stringify(t.variables.events));var n=d21_app.fn.getWidget("Base");t.variables.events=[],null!=n&&n.api.fn.post("https://api-default.dirs21.de/v1/data/Entity.TOTracking",JSON.stringify(e),!0)}}}d21_app.fn.register(new d21_track_api);function d21_GoogleAnalyticsController(){this.name="GoogleAnalytics",this.isPrivate=!1,this.trackers=[],this._D21_UACODE="UA-2582620-13",this.fn={start:function(){},decorateUrl:function(t){if("undefined"==typeof ga||void 0===ga.getAll||0==ga.getAll().length)return t;var e=ga.getAll()[0].get("linkerParam");return e&&(-1===t.indexOf("?")?t+="?":t+="&",t+=e),t}}}d21_app.fn.register(new d21_GoogleAnalyticsController);function d21_baseController(){var e=this;e.name="Base",e.baseToccDataUrl="/api/tocc/search/aggregate/",e.toccEntityParameter="?_aid="+(d21_app.widgetOptions.isGroupSDK?d21_app.widgetOptions.Group_Token:d21_app.widgetOptions.Property_Token)+"&filter=_Culture eq 'de-DE'",e.apiHostInfoUrl=d21_app.widgetUrl+e.baseToccDataUrl+"View.HostInfo"+e.toccEntityParameter,e.api=new d21_apiController,e.var={hotels:[],hotelsLoaded:!1,isChrome:navigator.userAgent.indexOf("Chrome")>-1,isSafari:navigator.userAgent.indexOf("Safari")>-1},e.widgets={validKeys:{d:!1,two:!1,one:!1}},e.fn={start:function(n){if(d21_app.widgetOptions.isGroupSDK&&d21_app.widgetOptions.needHostInfo&&e.fn.helper.callHotels(),document.location.host.indexOf(".local")<0){var t={Sdk_id:d21_app.widgetOptions.id};d21_app.widgetOptions.isGroupSDK?t.Group_id=d21_app.widgetOptions.Group_Token:t.Property_id=d21_app.widgetOptions.Property_Token}window.addEventListener("message",e.fn.handler.onPostMessage),e.fn.events.bind(),e.fn.helper.addOptionsOverlay(),window.d21LogTime&&window.d21LogTime("d21_widgets_core_started")},events:{bind:function(){if(!d21_app.isMinimal){if(window.addEventListener("keydown",function(n){68==n.keyCode&&(e.widgets.validKeys.d=!0),50==n.keyCode&&(e.widgets.validKeys.two=!0),49==n.keyCode&&(e.widgets.validKeys.one=!0)}),window.addEventListener("keyup",function(n){e.widgets.validKeys.d&&e.widgets.validKeys.one&&e.widgets.validKeys.two&&e.fn.handler.onOptionFrameShow(),68==n.keyCode&&(n.preventDefault(),e.widgets.validKeys.d=!1),50==n.keyCode&&(n.preventDefault(),e.widgets.validKeys.two=!1),49==n.keyCode&&(n.preventDefault(),e.widgets.validKeys.one=!1)}),"onhashchange"in window)window.onhashchange=function(){var n=window.location.hash.replace(/#/g,"");-1!=n.indexOf("d21_api")&&(e.fn.handler.onAnchorCommand(n),window.location.hash="")};else{var n=window.location.hash;window.setInterval(function(){if(window.location.hash!=n){var t=window.location.hash.replace(/#/g,"");-1!=t.indexOf("d21_api")&&(e.fn.handler.onAnchorCommand(t),window.location.hash="")}},100)}e.fn.handler.onDOMSubtreeModified()}}},handler:{onDOMSubtreeModified:function(){},onPostMessage:function(n){null!=n&&null!=n.data&&("d21-close-overlay"===n.data.type?e.fn.handler.onOptionFrameClose():d21_app.fn.getWidgets().forEach(function(e){void 0!=e.fn.events&&void 0!=e.fn.events.onPostMessage&&e.fn.events.onPostMessage(n)}))},onAnchorCommand:function(e){e=e.substring(e.indexOf(".")+1),d21_app.fn.getWidgets().forEach(function(n){void 0!=n.fn.events&&void 0!=n.fn.events.onAnchorCommand&&n.fn.events.onAnchorCommand(e)})},onOptionFrameShow:function(){if(0==d21_jq("#d21-options-overlay iframe").length){var e=document.createElement("iframe");e.src=window.d21_app.widgetUrl+"/form/Detail?repositoryName=Entity.Widgets.SDK&_id="+window.d21_app.widgetOptions.id+"&isAdmin=true",d21_jq("#d21-options-overlay").append(e)}d21_jq("#d21-options-overlay").fadeToggle()},onOptionFrameClose:function(){d21_jq("#d21-options-overlay").fadeToggle()},onPopUpOpen:function(n,t,o,i){i=i||d21_jq("body");var a=n.indexOf("=0,r="d21-defaultPopUp",d=navigator.userAgent.indexOf("Safari")>=0&&navigator.userAgent.indexOf("Chrome")<0||/iPhone OS/i.test(navigator.userAgent),s=!1;(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))||/iPhone OS/i.test(navigator.userAgent))&&(s=!0);var l=d21_jq("body").attr("style");if(d21_jq("body").attr("style","overflow: hidden; "+(void 0==l?"":l)),d21_app.widgets.GoogleAnalytics&&(o=d21_app.widgets.GoogleAnalytics.fn.decorateUrl(o)),a&&(d&&s||d21_app.widgetOptions.isWIX)){o+=null==o?"?":"&",o+="in_tab=true";var p=d21_app.ibeBaseUrl+"channels"+d21_app.widgetOptions.Directory+o,c=d21_app.widgets.Base.fn.helper.getUrlParam(),f=d21_app.widgets.Base.fn.helper.getParamByName(c,"d21_ibe_open");if(f&&"true"===f.value){p+="&referrer="+window.location.protocol+"//"+window.location.host+window.location.pathname;g='
';d21_jq(i).append(g),d21_jq("#"+t).append('
').css("visibility","visible").show(),window.location.href=p}else window.open(p,",_blank")}else{if(null!=t){var u=function(e){d21_jq("#"+e+" .d21-frame-close-trigger").css("visibility","visible").show();var t=d21_jq("#"+e+" .d21-content");a?(d21_jq(t).html(n),d21_jq("#"+e+" .d21-iframe-overlay").hide(),d21_jq(t).show()):(d21_jq("#"+e+" .d21-iframe-overlay").hide(),d21_jq(t).html(n).show())};if(d21_jq("#"+t).length>0)d21_jq("#"+t).css("visibility","visible").show().removeClass("d21-small").addClass("d21-big"),u(t);else{g='
';d21_jq(i).append(g),d21_jq("#"+t).append('').removeClass("d21-small").addClass("d21-big"),a&&d21_jq("#"+t),d21_jq("#"+t).show().css("visibility","visible"),u(t)}d21_jq("#"+t+" .d21-frame-close-trigger").click(function(){e.fn.handler.onPopUpClose(this)})}else{if(d21_jq("#"+r).length>0)d21_jq("#"+r).removeClass("d21-small").addClass("d21-big"),d21_jq("#"+r+" .d21-popup .d21-content").html(n).show();else{var g='
';d21_jq(i).append(g),d21_jq("#"+r).append('
'),d21_jq("#"+r+" .d21-content").html(n),d21_jq("#"+r+" .d21-content iframe").load(function(){d21_jq("#defaultPopUp .d21-content").show()})}d21_jq("#"+r+" .d21-frame-close-trigger").click(function(){e.fn.handler.onPopUpClose(this)})}}},onPopUpClose:function(e){var n=d21_jq(e=e||".d21-content"),t=d21_jq("body").attr("style");n.prop("class").indexOf("d21-popup")<=0&&(n=d21_jq(e).closest(".d21-popup")),d21_jq("body").attr("style",t.replaceAll("overflow: hidden;","")),d21_jq(".d21-content, .d21-frame-close-trigger",n).hide(),n.addClass("d21-small").removeClass("d21-big")}},helper:{getParam:function(e){var n,t=null;return null==d21_jq(e).attr("d21-data")&&null==d21_jq(e).attr("title")&&null==d21_jq(e).attr("data-d21")||(null!=d21_jq(e).attr("title")&&d21_jq(e).attr("title").indexOf("{")>=0&&(n=window.d21_app.fn.getWidget("Base").fn.helper.replaceAll("'",'"',d21_jq(e).attr("title"))),null!=d21_jq(e).attr("d21-data")&&(n=window.d21_app.fn.getWidget("Base").fn.helper.replaceAll("'",'"',d21_jq(e).attr("d21-data"))),null!=d21_jq(e).attr("data-d21")&&(n=window.d21_app.fn.getWidget("Base").fn.helper.replaceAll("'",'"',d21_jq(e).attr("data-d21"))),n&&n.length>0&&(t=JSON.parse(n))),t},getHotels:function(n){var t=setInterval(function(){e.var.hotelsLoaded&&(clearInterval(t),n&&n(e.var.hotels))},200)},detectIsPrivateMode:function(){var e=!1;try{localStorage.setItem("TO.ls_exist_test"," Test")}catch(n){e=!0}return e},getParamByName:function(e,n){return e.find(function(e){return e.key===n})},getMultipleParamsByName:function(e,n){var t=e.filter(function(e){return e.key===n});if(t.length)return t.map(function(e){return e.value})},getUrlParam:function(){var e=window.location.search.replace("?","").split("&"),n=[];return e.length>=1&&""!==e[0]&&e.forEach(function(e){var t=e.split("=");2===t.length&&n.push({key:t[0],value:t[1].replaceAll("+"," ")})}),n},closest:function(e,n){for(;e;){if(n(e))return e;e=e.parentNode}},replaceAll:function(e,n,t){return t.replace(new RegExp(e,t),n)},find:function(e,n){for(;e;){if(fn(e))return e;e=e.parentNode}},getDateDiff:function(e,n){var t=Math.abs(n.getTime()-e.getTime());return Math.ceil(t/864e5)},addZero:function(e){return e<=9?"0"+e:e},dateToIsoDatestring:function(e){return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()},isoDatestringToDate:function(e,n){var t=null;return"Invalid Date"==(t=(n=n||!1)?new Date(e.substring(6,10)+"-"+e.substring(3,5)+"-"+e.substring(0,2)):new Date(e)).toString()&&(t=null),t},frameworkExist:function(e){return void 0===e},addOptionsOverlay:function(){d21_jq("body").append('
')},replaceAll:function(e,n,t){for(var o=t;o.indexOf(e)>=0;)o=o.replace(e,n);return o},isSafariBrowser:function(){var n=!1;return e.var.isSafari&&(n=!e.var.isChrome),n},callHotels:function(){e.api.fn.get(e.apiHostInfoUrl,function(n){e.var.hotelsLoaded=!0,e.var.hotels=n.Value.Properties})},registerCall:function(){var e={channel:d21_app.widgetOptions.Directory,version:"V4",isGroup:d21_app.widgetOptions.isGroupSDK,rList:!1};window.location.origin,d21_app.widgetOptions.isGroupSDK?d21_app.widgetOptions.Group_Token:d21_app.widgetOptions.Property_Token;JSON.stringify(e)},makeIconsCompatible:function(){function e(){var e=-1;if("Microsoft Internet Explorer"==navigator.appName){n=navigator.userAgent;null!=(t=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(n)&&(e=parseFloat(RegExp.$1))}else if("Netscape"==navigator.appName){var n=navigator.userAgent,t=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})");null!=t.exec(n)&&(e=parseFloat(RegExp.$1))}return e}var n=d21_jq("i.material-icons").toArray();if(n.length>0){var t={access_time:"",date_range:"",hotel:"",remove:"",add:"",delete:"",location_city:"",flight_takeoff:"",keyboard_arrow_up:"",keyboard_arrow_down:"",keyboard_arrow_left:"",keyboard_arrow_right:"",people:"",star_rate:"",phone:""},o=function(){n.forEach(function(e){var n=void 0!=e.innerHTML?t[e.innerHTML]:void 0;void 0!=n&&(e.innerHTML=n)})},i=navigator.userAgent;["Android 4.","Android 3.","Android 2.","Android 1.","Windows NT 6.1"].forEach(function(n){if(n.indexOf("Windows")>=0){if(i.indexOf(n)>=0&&e()>=0)return o(),!1}else if(i.indexOf(n)>=0)return o(),!1})}},textLengthOf:function(e,n){return n.length-1>=e?n.substring(0,e):n}}}}function d21_apiController(){var e=this;e.fn={post:function(e,n,t,o){return d21_jq.ajax({url:e,method:"POST",data:n,beforeSend:function(e){t&&(e.setRequestHeader("access_token",access_token),e.setRequestHeader("content-type","application/json"))},success:function(e){o&&o()},error:function(e,n,t){console.log(e)}})},get:function(n,t){!function(){var o=n;e.fn.request({url:o,method:"GET",success:function(e){t&&t(e)},error:function(e,n,t){console.error(e)}})}()},request:function(e){e.method=void 0!==e.method?e.method:"GET",e.async=void 0===e.async||e.async;var n=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHttpRequest");n.onload=function(t){if(4===n.readyState)if(200===n.status){var o=n.responseText;0===o.indexOf("{")&&(o=JSON.parse(o)),e.success(o)}else console.error(n.statusText)},n.onerror=function(e){console.error(n.statusText)},"POST"===e.method?(n.open(e.method,e.url,e.async),e.contentType&&n.setRequestHeader("Content-Type",e.contentType),n.send(e.data)):(n.open(e.method,e.url,e.async),n.send(null))}}}function d21_paginationController(e){var n=this;n.parent=d21_jq(e),n.variables={pageCount:0,page:1},n.fn={update:function(){d21_jq(".d21-pagination",n.parent).html(n.render)},render:{container:function(){n.variables.page=1;var e='
';return e+=n.fn.render.pages(),e+="
"},pages:function(){for(var e=1;e<=n.variables.pageCount;e++)html}}}}var access_token="hj/xKliW7kqecHHKF4ZW3w==";console.log("jQuery(default) version: ",jQuery.fn.jquery),console.log("jQuery(d21_jq) version: ",jQuery.fn.jquery);var d21_jq=d21_app.widgetOptions.hasJquery?jQuery:jQuery.noConflict();void 0==window.orgJQuery||d21_app.widgetOptions.hasJquery||(jQuery=window.orgJQuery),"function"!=typeof JSON.parse&&(JSON.parse=JSON.decode),"function"!=typeof JSON.stringify&&(JSON.stringify=JSON.encode),String.prototype.replaceAll=function(e,n){return this.split(e).join(n)},Array.prototype.move=function(e,n){if(n>=this.length)for(var t=n-this.length;1+t--;)this.push(void 0);return this.splice(n,0,this.splice(e,1)[0]),this},window.d21_api={track:{event:function(e,n,t){d21_app.fn.onWidgetCommand("Track",function(o){o.fn.push(e,n,t)})}},ibe:{open:function(e){"string"==typeof e&&(e=JSON.parse("{"+window.d21_app.fn.getWidget("Base").fn.helper.replaceAll("'",'"',e)+"}")),d21_app.fn.onWidgetCommand("Ibe",function(n){if(e&&e.departure&&moment(e.departure).isBefore(e.arrival)){var t=e.arrival;e.arrival=e.departure,e.departure=t}n.fn.handler.onIbeOpen(e)})},rebindIbeTrigger:function(){d21_app.fn.onWidgetCommand("Ibe",function(e){e.fn.events.bind()})}},quickBook:{render:function(){d21_app.fn.onWidgetCommand("QuickBook",function(e){e.fn.start()})}},packageList:{render:function(){d21_app.fn.onWidgetCommand("PackageList",function(e){e.fn.start()})}},roomList:{render:function(){d21_app.fn.onWidgetCommand("RoomList",function(e){e.fn.start()})}},roomAvailCalendar:{render:function(){d21_app.fn.onWidgetCommand("SmallAvailCalendar",function(e){e.fn.start()}),d21_app.fn.onWidgetCommand("BigAvailCalendar",function(e){e.fn.start()})}},hostDirectory:{render:function(){d21_app.fn.onWidgetCommand("HostDirectory",function(e){e.fn.start()})}},popUp:{open:function(e){d21_app.fn.onWidgetCommand("Base",function(n){n.fn.handler.onPopUpOpen(e.content,e.id,null,e.output_selector)})},close:function(){d21_app.fn.onWidgetCommand("Base",function(e){e.fn.handler.onPopUpClose(d21_jq(".d21-popup"))})}}},d21_app.fn.register(new d21_baseController);!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return xt.apply(null,arguments)}function e(t){return"[object Array]"===Object.prototype.toString.call(t)}function n(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t,e){for(var n in e)i(e,n)&&(t[n]=e[n]);return i(e,"toString")&&(t.toString=e.toString),i(e,"valueOf")&&(t.valueOf=e.valueOf),t}function s(t,e,n,i){return tt(t,e,n,i,!0).utc()}function o(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),t._pf}function a(t){if(null==t._isValid){var e=o(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function u(t){var e=s(NaN);return null!=t?r(o(e),t):o(e).userInvalidated=!0,e}function d(t,e){var n,i,r;if(void 0!==e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),void 0!==e._i&&(t._i=e._i),void 0!==e._f&&(t._f=e._f),void 0!==e._l&&(t._l=e._l),void 0!==e._strict&&(t._strict=e._strict),void 0!==e._tzm&&(t._tzm=e._tzm),void 0!==e._isUTC&&(t._isUTC=e._isUTC),void 0!==e._offset&&(t._offset=e._offset),void 0!==e._pf&&(t._pf=o(e)),void 0!==e._locale&&(t._locale=e._locale),Lt.length>0)for(n in Lt)i=Lt[n],void 0!==(r=e[i])&&(t[i]=r);return t}function l(e){d(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===It&&(It=!0,t.updateOffset(this),It=!1)}function c(t){return t instanceof l||null!=t&&null!=t._isAMomentObject}function h(t){return 0>t?Math.ceil(t):Math.floor(t)}function f(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=h(e)),n}function m(t,e,n){var i,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),o=0;for(i=0;r>i;i++)(n&&t[i]!==e[i]||!n&&f(t[i])!==f(e[i]))&&o++;return o+s}function _(){}function y(t){return t?t.toLowerCase().replace("_","-"):t}function p(t){var e=null;if(!At[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Ht._abbr,require("./locale/"+t),g(e)}catch(t){}return At[t]}function g(t,e){var n;return t&&(n=void 0===e?D(t):v(t,e))&&(Ht=n),Ht._abbr}function v(t,e){return null!==e?(e.abbr=t,At[t]=At[t]||new _,At[t].set(e),g(t),At[t]):(delete At[t],null)}function D(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ht;if(!e(t)){if(n=p(t))return n;t=[t]}return function(t){for(var e,n,i,r,s=0;s0;){if(i=p(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&m(r,n,!0)>=e-1)break;e--}s++}return null}(t)}function M(t,e){var n=t.toLowerCase();zt[n]=zt[n+"s"]=zt[e]=t}function Y(t){return"string"==typeof t?zt[t]||zt[t.toLowerCase()]:void 0}function w(t){var e,n,r={};for(n in t)i(t,n)&&(e=Y(n))&&(r[e]=t[n]);return r}function S(e,n){return function(i){return null!=i?(T(this,e,i),t.updateOffset(this,n),this):k(this,e)}}function k(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function T(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function b(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=Y(t),"function"==typeof this[t])return this[t](e);return this}function O(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function U(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(Et[t]=r),e&&(Et[e[0]]=function(){return O(r.apply(this,arguments),e[1],e[2])}),n&&(Et[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function W(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function C(t,e){return t.isValid()?(e=G(e,t.localeData()),jt[e]=jt[e]||function(t){var e,n,i=t.match(Nt);for(e=0,n=i.length;n>e;e++)Et[i[e]]?i[e]=Et[i[e]]:i[e]=W(i[e]);return function(r){var s="";for(e=0;n>e;e++)s+=i[e]instanceof Function?i[e].call(r,t):i[e];return s}}(e),jt[e](t)):t.localeData().invalidDate()}function G(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(Zt.lastIndex=0;i>=0&&Zt.test(t);)t=t.replace(Zt,n),Zt.lastIndex=0,i-=1;return t}function F(t,e,n){re[t]=function(t){return"function"==typeof t&&"[object Function]"===Object.prototype.toString.call(t)}(e)?e:function(t){return t&&n?n:e}}function P(t,e){return i(re,t)?re[t](e._strict,e._locale):new RegExp(function(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(t))}function x(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(i=function(t,n){n[e]=f(t)}),n=0;n11?ae:n[ue]<1||n[ue]>I(n[oe],n[ae])?ue:n[de]<0||n[de]>24||24===n[de]&&(0!==n[le]||0!==n[ce]||0!==n[he])?de:n[le]<0||n[le]>59?le:n[ce]<0||n[ce]>59?ce:n[he]<0||n[he]>999?he:-1,o(t)._overflowDayOfYear&&(oe>e||e>ue)&&(e=ue),o(t).overflow=e),t}function Z(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function j(t,e){var n=!0;return r(function(){return n&&(Z(t+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}function E(t){var e,n,i=t._i,r=ye.exec(i);if(r){for(o(t).iso=!0,e=0,n=pe.length;n>e;e++)if(pe[e][1].exec(i)){t._f=pe[e][0];break}for(e=0,n=ge.length;n>e;e++)if(ge[e][1].exec(i)){t._f+=(r[6]||" ")+ge[e][0];break}i.match(ne)&&(t._f+="Z"),Q(t)}else t._isValid=!1}function V(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function q(t){return J(t)?366:365}function J(t){return t%4==0&&t%100!=0||t%400==0}function $(t,e,n){var i,r=n-e,s=n-t.day();return s>r&&(s-=7),r-7>s&&(s+=7),i=et(t).add(s,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function R(t,e,n){return null!=t?t:null!=e?e:n}function B(t){var e,n,i,r,s=[];if(!t._d){for(i=function(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[ue]&&null==t._a[ae]&&function(t){var e,n,i,r,s,o,a;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,o=4,n=R(e.GG,t._a[oe],$(et(),1,4).year),i=R(e.W,1),r=R(e.E,1)):(s=t._locale._week.dow,o=t._locale._week.doy,n=R(e.gg,t._a[oe],$(et(),s,o).year),i=R(e.w,1),null!=e.d?(r=e.d,s>r&&++i):r=null!=e.e?e.e+s:s),a=function(t,e,n,i,r){var s,o=6+r-i,a=V(t,0,1+o).getUTCDay();return r>a&&(a+=7),n=null!=n?1*n:r,s=1+o+7*(e-1)-a+n,{year:s>0?t:t-1,dayOfYear:s>0?s:q(t-1)+s}}(n,i,r,o,s),t._a[oe]=a.year,t._dayOfYear=a.dayOfYear}(t),t._dayOfYear&&(r=R(t._a[oe],i[oe]),t._dayOfYear>q(r)&&(o(t)._overflowDayOfYear=!0),n=V(r,0,t._dayOfYear),t._a[ae]=n.getUTCMonth(),t._a[ue]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;7>e;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[de]&&0===t._a[le]&&0===t._a[ce]&&0===t._a[he]&&(t._nextDay=!0,t._a[de]=0),t._d=(t._useUTC?V:function(t,e,n,i,r,s,o){var a=new Date(t,e,n,i,r,s,o);return 1970>t&&a.setFullYear(t),a}).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[de]=24)}}function Q(e){if(e._f!==t.ISO_8601){e._a=[],o(e).empty=!0;var n,i,r,s,a,u=""+e._i,d=u.length,l=0;for(r=G(e._f,e._locale).match(Nt)||[],n=0;n0&&o(e).unusedInput.push(a),u=u.slice(u.indexOf(i)+i.length),l+=i.length),Et[s]?(i?o(e).empty=!1:o(e).unusedTokens.push(s),L(s,i,e)):e._strict&&!i&&o(e).unusedTokens.push(s);o(e).charsLeftOver=d-l,u.length>0&&o(e).unusedInput.push(u),!0===o(e).bigHour&&e._a[de]<=12&&e._a[de]>0&&(o(e).bigHour=void 0),e._a[de]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&12>e&&(e+=12),i||12!==e||(e=0),e):e}(e._locale,e._a[de],e._meridiem),B(e),N(e)}else E(e)}function X(t){var i=t._i,s=t._f;return t._locale=t._locale||D(t._l),null===i||void 0===s&&""===i?u({nullInput:!0}):("string"==typeof i&&(t._i=i=t._locale.preparse(i)),c(i)?new l(N(i)):(e(s)?function(t){var e,n,i,s,u;if(0===t._f.length)return o(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;su)&&(i=u,n=e));r(t,n||e)}(t):s?Q(t):n(i)?t._d=i:K(t),t))}function K(i){var r=i._i;void 0===r?i._d=new Date:n(r)?i._d=new Date(+r):"string"==typeof r?function(e){var n=ve.exec(e._i);null!==n?e._d=new Date(+n[1]):(E(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}(i):e(r)?(i._a=function(t,e){var n,i=[];for(n=0;nt&&(t=-t,n="-"),n+O(~~(t/60),2)+e+O(~~t%60,2)})}function ot(t){var e=(t||"").match(ne)||[],n=((e[e.length-1]||[])+"").match(we)||["-",0,0],i=60*n[1]+f(n[2]);return"+"===n[0]?i:-i}function at(e,i){var r,s;return i._isUTC?(r=i.clone(),s=(c(e)||n(e)?+e:+et(e))-+r,r._d.setTime(+r._d+s),t.updateOffset(r,!1),r):et(e).local()}function ut(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function dt(){return this._isUTC&&0===this._offset}function lt(t,e){var n,r,s,o=t,a=null;return rt(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(a=Se.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:f(a[ue])*n,h:f(a[de])*n,m:f(a[le])*n,s:f(a[ce])*n,ms:f(a[he])*n}):(a=ke.exec(t))?(n="-"===a[1]?-1:1,o={y:ct(a[2],n),M:ct(a[3],n),d:ct(a[4],n),h:ct(a[5],n),m:ct(a[6],n),s:ct(a[7],n),w:ct(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(s=function(t,e){var n;return e=at(e,t),t.isBefore(e)?n=ht(t,e):(n=ht(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}(et(o.from),et(o.to)),o={},o.ms=s.milliseconds,o.M=s.months),r=new it(o),rt(t)&&i(t,"_locale")&&(r._locale=t._locale),r}function ct(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function ht(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function ft(t,e){return function(n,i){var r,s;return null===i||isNaN(+i)||(function(t,e){_e[t]||(Z(e),_e[t]=!0)}(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),s=n,n=i,i=s),n="string"==typeof n?+n:n,r=lt(n,i),mt(this,r,t),this}}function mt(e,n,i,r){var s=n._milliseconds,o=n._days,a=n._months;r=null==r||r,s&&e._d.setTime(+e._d+s*i),o&&T(e,"Date",k(e,"Date")+o*i),a&&A(e,k(e,"Month")+a*i),r&&t.updateOffset(e,o||a)}function _t(){var t=this.clone().utc();return 0s;s++)o[s]=kt(t,s,n,r);return o}function bt(t,e,n,i){var r=lt(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Ot(t){return 0>t?Math.floor(t):Math.ceil(t)}function Ut(t){return 4800*t/146097}function Wt(t){return 146097*t/4800}function Ct(t){return function(){return this.as(t)}}function Gt(t){return function(){return this._data[t]}}function Ft(t){var e=this.localeData(),n=function(t,e,n){var i=lt(t).abs(),r=rn(i.as("s")),s=rn(i.as("m")),o=rn(i.as("h")),a=rn(i.as("d")),u=rn(i.as("M")),d=rn(i.as("y")),l=r0,l[4]=n,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,l)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Pt(){var t,e,n,i=on(this._milliseconds)/1e3,r=on(this._days),s=on(this._months);e=h((t=h(i/60))/60),i%=60,t%=60;var o=n=h(s/12),a=s%=12,u=r,d=e,l=t,c=i,f=this.asSeconds();return f?(0>f?"-":"")+"P"+(o?o+"Y":"")+(a?a+"M":"")+(u?u+"D":"")+(d||l||c?"T":"")+(d?d+"H":"")+(l?l+"M":"")+(c?c+"S":""):"P0D"}var xt,Ht,Lt=t.momentProperties=[],It=!1,At={},zt={},Nt=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Zt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,jt={},Et={},Vt=/\d/,qt=/\d\d/,Jt=/\d{3}/,$t=/\d{4}/,Rt=/[+-]?\d{6}/,Bt=/\d\d?/,Qt=/\d{1,3}/,Xt=/\d{1,4}/,Kt=/[+-]?\d{1,6}/,te=/\d+/,ee=/[+-]?\d+/,ne=/Z|[+-]\d\d:?\d\d/gi,ie=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,re={},se={},oe=0,ae=1,ue=2,de=3,le=4,ce=5,he=6;U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),U("MMMM",0,0,function(t){return this.localeData().months(this,t)}),M("month","M"),F("M",Bt),F("MM",Bt,qt),F("MMM",ie),F("MMMM",ie),x(["M","MM"],function(t,e){e[ae]=f(t)-1}),x(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[ae]=r:o(n).invalidMonth=t});var fe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_e={};t.suppressDeprecationWarnings=!1;var ye=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ge=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],ve=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=j("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),M("year","y"),F("Y",ee),F("YY",Bt,qt),F("YYYY",Xt,$t),F("YYYYY",Kt,Rt),F("YYYYYY",Kt,Rt),x(["YYYYY","YYYYYY"],oe),x("YYYY",function(e,n){n[oe]=2===e.length?t.parseTwoDigitYear(e):f(e)}),x("YY",function(e,n){n[oe]=t.parseTwoDigitYear(e)}),t.parseTwoDigitYear=function(t){return f(t)+(f(t)>68?1900:2e3)};var De=S("FullYear",!1);U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),M("week","w"),M("isoWeek","W"),F("w",Bt),F("ww",Bt,qt),F("W",Bt),F("WW",Bt,qt),H(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=f(t)});U("DDD",["DDDD",3],"DDDo","dayOfYear"),M("dayOfYear","DDD"),F("DDD",Qt),F("DDDD",Jt),x(["DDD","DDDD"],function(t,e,n){n._dayOfYear=f(t)}),t.ISO_8601=function(){};var Me=j("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=et.apply(null,arguments);return this>t?this:t}),Ye=j("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=et.apply(null,arguments);return t>this?this:t});st("Z",":"),st("ZZ",""),F("Z",ne),F("ZZ",ne),x(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=ot(t)});var we=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Se=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,ke=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;lt.fn=it.prototype;var Te=ft(1,"add"),be=ft(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Oe=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gt("gggg","weekYear"),gt("ggggg","weekYear"),gt("GGGG","isoWeekYear"),gt("GGGGG","isoWeekYear"),M("weekYear","gg"),M("isoWeekYear","GG"),F("G",ee),F("g",ee),F("GG",Bt,qt),F("gg",Bt,qt),F("GGGG",Xt,$t),F("gggg",Xt,$t),F("GGGGG",Kt,Rt),F("ggggg",Kt,Rt),H(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=f(t)}),H(["gg","GG"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),U("Q",0,0,"quarter"),M("quarter","Q"),F("Q",Vt),x("Q",function(t,e){e[ae]=3*(f(t)-1)}),U("D",["DD",2],"Do","date"),M("date","D"),F("D",Bt),F("DD",Bt,qt),F("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),x(["D","DD"],ue),x("Do",function(t,e){e[ue]=f(t.match(Bt)[0])});var Ue=S("Date",!0);U("d",0,"do","day"),U("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),U("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),U("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),M("day","d"),M("weekday","e"),M("isoWeekday","E"),F("d",Bt),F("e",Bt),F("E",Bt),F("dd",ie),F("ddd",ie),F("dddd",ie),H(["dd","ddd","dddd"],function(t,e,n){var i=n._locale.weekdaysParse(t);null!=i?e.d=i:o(n).invalidWeekday=t}),H(["d","e","E"],function(t,e,n,i){e[i]=f(t)});var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ce="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_");U("H",["HH",2],0,"hour"),U("h",["hh",2],0,function(){return this.hours()%12||12}),Mt("a",!0),Mt("A",!1),M("hour","h"),F("a",Yt),F("A",Yt),F("H",Bt),F("h",Bt),F("HH",Bt,qt),F("hh",Bt,qt),x(["H","HH"],de),x(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),x(["h","hh"],function(t,e,n){e[de]=f(t),o(n).bigHour=!0});var Fe=S("Hours",!0);U("m",["mm",2],0,"minute"),M("minute","m"),F("m",Bt),F("mm",Bt,qt),x(["m","mm"],le);var Pe=S("Minutes",!1);U("s",["ss",2],0,"second"),M("second","s"),F("s",Bt),F("ss",Bt,qt),x(["s","ss"],ce);var xe=S("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),M("millisecond","ms"),F("S",Qt,Vt),F("SS",Qt,qt),F("SSS",Qt,Jt);var He;for(He="SSSS";He.length<=9;He+="S")F(He,te);for(He="S";He.length<=9;He+="S")x(He,wt);var Le=S("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Ie=l.prototype;Ie.add=Te,Ie.calendar=function(t,e){var n=t||et(),i=at(n,this).startOf("day"),r=this.diff(i,"days",!0),s=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(e&&e[s]||this.localeData().calendar(s,this,et(n)))},Ie.clone=function(){return new l(this)},Ie.diff=function(t,e,n){var i,r,s=at(t,this),o=6e4*(s.utcOffset()-this.utcOffset());return"year"===(e=Y(e))||"month"===e||"quarter"===e?(r=function(t,e){var n,i,r=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(r,"months");return 0>e-s?(n=t.clone().add(r-1,"months"),i=(e-s)/(s-n)):(n=t.clone().add(r+1,"months"),i=(e-s)/(n-s)),-(r+i)}(this,s),"quarter"===e?r/=3:"year"===e&&(r/=12)):(i=this-s,r="second"===e?i/1e3:"minute"===e?i/6e4:"hour"===e?i/36e5:"day"===e?(i-o)/864e5:"week"===e?(i-o)/6048e5:i),n?r:h(r)},Ie.endOf=function(t){return void 0===(t=Y(t))||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},Ie.format=function(e){var n=C(this,e||t.defaultFormat);return this.localeData().postformat(n)},Ie.from=function(t,e){return this.isValid()?lt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ie.fromNow=function(t){return this.from(et(),t)},Ie.to=function(t,e){return this.isValid()?lt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ie.toNow=function(t){return this.to(et(),t)},Ie.get=b,Ie.invalidAt=function(){return o(this).overflow},Ie.isAfter=function(t,e){return"millisecond"===(e=Y(void 0!==e?e:"millisecond"))?(t=c(t)?t:et(t),+this>+t):(c(t)?+t:+et(t))<+this.clone().startOf(e)},Ie.isBefore=function(t,e){var n;return"millisecond"===(e=Y(void 0!==e?e:"millisecond"))?+(t=c(t)?t:et(t))>+this:(n=c(t)?+t:+et(t),+this.clone().endOf(e)this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ie.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var t={};if(d(t,this),(t=X(t))._a){var e=t._isUTC?s(t._a):et(t._a);this._isDSTShifted=this.isValid()&&m(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted},Ie.isLocal=function(){return!this._isUTC},Ie.isUtcOffset=function(){return this._isUTC},Ie.isUtc=dt,Ie.isUTC=dt,Ie.zoneAbbr=function(){return this._isUTC?"UTC":""},Ie.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ie.dates=j("dates accessor is deprecated. Use date instead.",Ue),Ie.months=j("months accessor is deprecated. Use month instead",z),Ie.years=j("years accessor is deprecated. Use year instead",De),Ie.zone=j("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()});var Ae=Ie,ze=_.prototype;ze._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ze.calendar=function(t,e,n){var i=this._calendar[t];return"function"==typeof i?i.call(e,n):i},ze._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"},ze.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},ze._invalidDate="Invalid date",ze.invalidDate=function(){return this._invalidDate},ze._ordinal="%d",ze.ordinal=function(t){return this._ordinal.replace("%d",t)},ze._ordinalParse=/\d{1,2}/,ze.preparse=St,ze.postformat=St,ze._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ze.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(t,e,n,i):r.replace(/%d/i,t)},ze.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ze.set=function(t){var e,n;for(n in t)"function"==typeof(e=t[n])?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},ze.months=function(t){return this._months[t.month()]},ze._months=fe,ze.monthsShort=function(t){return this._monthsShort[t.month()]},ze._monthsShort=me,ze.monthsParse=function(t,e,n){var i,r,o;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(r=s([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},ze.week=function(t){return $(t,this._week.dow,this._week.doy).week},ze._week={dow:0,doy:6},ze.firstDayOfYear=function(){return this._week.doy},ze.firstDayOfWeek=function(){return this._week.dow},ze.weekdays=function(t){return this._weekdays[t.day()]},ze._weekdays=We,ze.weekdaysMin=function(t){return this._weekdaysMin[t.day()]},ze._weekdaysMin=Ge,ze.weekdaysShort=function(t){return this._weekdaysShort[t.day()]},ze._weekdaysShort=Ce,ze.weekdaysParse=function(t){var e,n,i;for(this._weekdaysParse=this._weekdaysParse||[],e=0;7>e;e++)if(this._weekdaysParse[e]||(n=et([2e3,1]).day(e),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},ze.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},ze._meridiemParse=/[ap]\.?m?\.?/i,ze.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},g("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===f(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=j("moment.lang is deprecated. Use moment.locale instead.",g),t.langData=j("moment.langData is deprecated. Use moment.localeData instead.",D);var Ne=Math.abs,Ze=Ct("ms"),je=Ct("s"),Ee=Ct("m"),Ve=Ct("h"),qe=Ct("d"),Je=Ct("w"),$e=Ct("M"),Re=Ct("y"),Be=Gt("milliseconds"),Qe=Gt("seconds"),Xe=Gt("minutes"),Ke=Gt("hours"),tn=Gt("days"),en=Gt("months"),nn=Gt("years"),rn=Math.round,sn={s:45,m:45,h:22,d:26,M:11},on=Math.abs,an=it.prototype;an.abs=function(){var t=this._data;return this._milliseconds=Ne(this._milliseconds),this._days=Ne(this._days),this._months=Ne(this._months),t.milliseconds=Ne(t.milliseconds),t.seconds=Ne(t.seconds),t.minutes=Ne(t.minutes),t.hours=Ne(t.hours),t.months=Ne(t.months),t.years=Ne(t.years),this},an.add=function(t,e){return bt(this,t,e,1)},an.subtract=function(t,e){return bt(this,t,e,-1)},an.as=function(t){var e,n,i=this._milliseconds;if("month"===(t=Y(t))||"year"===t)return e=this._days+i/864e5,n=this._months+Ut(e),"month"===t?n:n/12;switch(e=this._days+Math.round(Wt(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},an.asMilliseconds=Ze,an.asSeconds=je,an.asMinutes=Ee,an.asHours=Ve,an.asDays=qe,an.asWeeks=Je,an.asMonths=$e,an.asYears=Re,an.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12)},an._bubble=function(){var t,e,n,i,r,s=this._milliseconds,o=this._days,a=this._months,u=this._data;return s>=0&&o>=0&&a>=0||0>=s&&0>=o&&0>=a||(s+=864e5*Ot(Wt(a)+o),o=0,a=0),u.milliseconds=s%1e3,t=h(s/1e3),u.seconds=t%60,e=h(t/60),u.minutes=e%60,n=h(e/60),u.hours=n%24,o+=h(n/24),r=h(Ut(o)),a+=r,o-=Ot(Wt(r)),i=h(a/12),a%=12,u.days=o,u.months=a,u.years=i,this},an.get=function(t){return t=Y(t),this[t+"s"]()},an.milliseconds=Be,an.seconds=Qe,an.minutes=Xe,an.hours=Ke,an.days=tn,an.weeks=function(){return h(this.days()/7)},an.months=en,an.years=nn,an.humanize=Ft,an.toISOString=Pt,an.toString=Pt,an.toJSON=Pt,an.locale=yt,an.localeData=pt,an.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pt),an.lang=Oe,U("X",0,0,"unix"),U("x",0,0,"valueOf"),F("x",ee),F("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),x("x",function(t,e,n){n._d=new Date(f(t))}),t.version="2.10.6",xt=et,t.fn=Ae,t.min=function(){return nt("isBefore",[].slice.call(arguments,0))},t.max=function(){return nt("isAfter",[].slice.call(arguments,0))},t.utc=s,t.unix=function(t){return et(1e3*t)},t.months=function(t,e){return Tt(t,e,"months",12,"month")},t.isDate=n,t.locale=g,t.invalid=u,t.duration=lt,t.isMoment=c,t.weekdays=function(t,e){return Tt(t,e,"weekdays",7,"day")},t.parseZone=function(){return et.apply(null,arguments).parseZone()},t.localeData=D,t.isDuration=rt,t.monthsShort=function(t,e){return Tt(t,e,"monthsShort",12,"month")},t.weekdaysMin=function(t,e){return Tt(t,e,"weekdaysMin",7,"day")},t.defineLocale=v,t.weekdaysShort=function(t,e){return Tt(t,e,"weekdaysShort",7,"day")},t.normalizeUnits=Y,t.relativeTimeThreshold=function(t,e){return void 0!==sn[t]&&(void 0===e?sn[t]:(sn[t]=e,!0))};return t});!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(d21_require("../moment")):"function"==typeof d21_define&&d21_define.amd?d21_define(["moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e,n,t,a){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return n?i[t][0]:i[t][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),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("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});